[cpl-plugin-uves] 11/14: Remove qfits, calib, and html subdirs

Ole Streicher olebole-guest at moszumanska.debian.org
Sat Dec 7 16:54:37 UTC 2013


This is an automated email from the git hooks/post-receive script.

olebole-guest pushed a commit to branch debian
in repository cpl-plugin-uves.

commit 08b0485d09596031e98f69400e5298d7616ad254
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Sat Dec 7 17:46:25 2013 +0100

    Remove qfits, calib, and html subdirs
---
 calib/cal/LINE_INTMON_TABLE.fits                   |   Bin 8640 -> 0 bytes
 calib/cal/atmoexan.fits                            |     3 -
 calib/cal/flxstd.fits                              |  2797 ----
 calib/cal/mask_corvel.fits                         |   104 -
 calib/cal/thar_bright.fits                         |   Bin 8640 -> 0 bytes
 calib/cal/thargood_2.fits                          |    42 -
 calib/cal/thargood_3.fits                          |    78 -
 calib/cal_size                                     |     1 +
 html/annotated.html                                |    74 -
 html/bc_s.png                                      |   Bin 680 -> 0 bytes
 html/bdwn.png                                      |   Bin 147 -> 0 bytes
 html/classes.html                                  |    90 -
 html/closed.png                                    |   Bin 132 -> 0 bytes
 html/cpl__propertylist-test_8c_source.html         |  1347 --
 html/dir_29caecd79ba0d8cf1bf29f8555ca3deb.html     |    60 -
 html/dir_40a404867a1885f5fad756cff9cd9f5a.html     |    68 -
 html/dir_481eb1706afc14ed6b3611394691cd00.html     |    73 -
 html/dir_49fdd486f031bb0e93313e8c1032e148.html     |   202 -
 html/dir_9dbeae34d65cadb5c6915b8c80494485.html     |   107 -
 html/dir_b351cdfeb4656d7d168dc72b273024e7.html     |    98 -
 html/doxygen.css                                   |  1156 --
 html/doxygen.png                                   |   Bin 3779 -> 0 bytes
 html/dynsections.js                                |    78 -
 html/files.html                                    |   302 -
 html/flames__cal__mkmaster_8c_source.html          |   145 -
 html/flames__cal__orderpos_8c_source.html          |   153 -
 html/flames__cal__predict_8c_source.html           |   153 -
 html/flames__cal__prep__sff__ofpos_8c_source.html  |   153 -
 html/flames__cal__wavecal_8c_source.html           |   153 -
 html/flames__corvel_8c_source.html                 |  1407 --
 html/flames__corvel_8h_source.html                 |    93 -
 html/flames__extract_8c_source.html                |   136 -
 html/flames__fillordtab_8c_source.html             |   136 -
 html/flames__mes__slitff__size_8c_source.html      |   136 -
 html/flames__midas__def_8c_source.html             |  4126 -----
 html/flames__midas__def_8h_source.html             |   499 -
 html/flames__newmatrix_8c_source.html              |  2171 ---
 html/flames__newmatrix_8h_source.html              |   199 -
 html/flames__obs__redchain_8c_source.html          |   156 -
 html/flames__obs__scired_8c_source.html            |   153 -
 html/flames__prepbkg_8c_source.html                |   136 -
 html/flames__prepfibreff_8c_source.html            |   136 -
 html/flames__prepnorm_8c_source.html               |   136 -
 html/flames__preppa_8c_source.html                 |   156 -
 html/flames__prepslitff_8c_source.html             |   136 -
 html/flames__recipe_8c_source.html                 |   153 -
 html/flames__reduce__vcorrel_8c_source.html        |   634 -
 html/flames__reduce__vcorrel_8h_source.html        |   108 -
 html/flames__utl__unpack_8c_source.html            |   486 -
 html/ftv2blank.png                                 |   Bin 86 -> 0 bytes
 html/ftv2cl.png                                    |   Bin 453 -> 0 bytes
 html/ftv2doc.png                                   |   Bin 746 -> 0 bytes
 html/ftv2folderclosed.png                          |   Bin 616 -> 0 bytes
 html/ftv2folderopen.png                            |   Bin 597 -> 0 bytes
 html/ftv2lastnode.png                              |   Bin 86 -> 0 bytes
 html/ftv2link.png                                  |   Bin 746 -> 0 bytes
 html/ftv2mlastnode.png                             |   Bin 246 -> 0 bytes
 html/ftv2mnode.png                                 |   Bin 246 -> 0 bytes
 html/ftv2mo.png                                    |   Bin 403 -> 0 bytes
 html/ftv2node.png                                  |   Bin 86 -> 0 bytes
 html/ftv2ns.png                                    |   Bin 388 -> 0 bytes
 html/ftv2plastnode.png                             |   Bin 229 -> 0 bytes
 html/ftv2pnode.png                                 |   Bin 229 -> 0 bytes
 html/ftv2splitbar.png                              |   Bin 314 -> 0 bytes
 html/ftv2vertline.png                              |   Bin 86 -> 0 bytes
 html/functions.html                                |    95 -
 html/functions_vars.html                           |    95 -
 html/group__flames__cal__mkmaster.html             |    51 -
 html/group__flames__cal__orderpos.html             |    51 -
 html/group__flames__cal__predict.html              |    51 -
 html/group__flames__cal__prep__sff__ofpos.html     |    51 -
 html/group__flames__cal__wavecal.html              |    51 -
 html/group__flames__extract.html                   |    51 -
 html/group__flames__fillordtab.html                |    51 -
 html/group__flames__mes__slitff__size.html         |    51 -
 html/group__flames__midas__def.html                |  5778 -------
 html/group__flames__obs__redchain.html             |    51 -
 html/group__flames__obs__scired.html               |    51 -
 html/group__flames__prepbkg.html                   |    51 -
 html/group__flames__prepfibreff.html               |    51 -
 html/group__flames__prepnorm.html                  |    51 -
 html/group__flames__preppa.html                    |    51 -
 html/group__flames__prepslitff.html                |    51 -
 html/group__flames__utl__unpack.html               |   271 -
 html/group__irplib__calib.html                     |   930 --
 html/group__irplib__cat.html                       |   288 -
 html/group__irplib__distortion.html                |    51 -
 html/group__irplib__flat.html                      |   158 -
 html/group__irplib__framelist.html                 |  1039 --
 html/group__irplib__framelist__test.html           |    51 -
 html/group__irplib__oddeven.html                   |   135 -
 html/group__irplib__plugin.html                    |    53 -
 html/group__irplib__plugin__test.html              |    51 -
 html/group__irplib__polynomial.html                |   468 -
 html/group__irplib__ppm.html                       |   151 -
 html/group__irplib__slitpos.html                   |   117 -
 html/group__irplib__spectrum.html                  |   198 -
 html/group__irplib__stdstar.html                   |   631 -
 html/group__irplib__strehl.html                    |    51 -
 html/group__irplib__utils.html                     |  1473 --
 html/group__irplib__utils__test.html               |    51 -
 html/group__irplib__wavecal.html                   |   986 --
 html/group__irplib__wcs.html                       |    51 -
 html/group__irplib__wlcalib__test.html             |    51 -
 html/group__irplib__wlxcorr.html                   |    53 -
 html/group__recipe.html                            |    51 -
 html/group__recipe__main.html                      |    84 -
 html/group__uves__backsub.html                     |    52 -
 html/group__uves__baryvel.html                     |   398 -
 html/group__uves__cal__cd__align.html              |    51 -
 html/group__uves__cal__mkmaster.html               |    52 -
 html/group__uves__cdalign.html                     |    52 -
 html/group__uves__chip.html                        |   279 -
 html/group__uves__chip__type.html                  |    51 -
 html/group__uves__corrbadpix.html                  |   341 -
 html/group__uves__corrbadpix__test.html            |    64 -
 html/group__uves__dfs.html                         |   175 -
 html/group__uves__dump.html                        |   336 -
 html/group__uves__error.html                       |   517 -
 html/group__uves__extract.html                     |  2071 ---
 html/group__uves__extract__iterate.html            |   409 -
 html/group__uves__extract__test.html               |    70 -
 html/group__uves__flatfield.html                   |   172 -
 html/group__uves__infrastructure.html              |    52 -
 html/group__uves__mbias.html                       |    52 -
 html/group__uves__mdark.html                       |    52 -
 html/group__uves__merge.html                       |   212 -
 html/group__uves__mflat.html                       |    52 -
 html/group__uves__mflat__combine.html              |    51 -
 html/group__uves__msg.html                         |   616 -
 html/group__uves__obs__spatred.html                |    52 -
 html/group__uves__orderpos.html                    |  1413 --
 html/group__uves__pfits.html                       |  5404 -------
 html/group__uves__physmod.html                     |  1123 --
 html/group__uves__physmod__cstacen.html            |  1059 --
 html/group__uves__physmod__utils.html              |    51 -
 html/group__uves__plot.html                        |    54 -
 html/group__uves__polynomial__test.html            |    67 -
 html/group__uves__propertylist.html                |  3838 -----
 html/group__uves__qclog.html                       |  1023 --
 html/group__uves__qclog__test.html                 |    64 -
 html/group__uves__rebin.html                       |   408 -
 html/group__uves__redchain.html                    |    52 -
 html/group__uves__reduce.html                      |  1416 --
 html/group__uves__reduce__mflat.html               |   672 -
 html/group__uves__reduce__mflat__combine.html      |   296 -
 html/group__uves__remove__crh__single.html         |   139 -
 html/group__uves__response.html                    |   362 -
 html/group__uves__response__test.html              |    67 -
 html/group__uves__scired.html                      |   684 -
 html/group__uves__test.html                        |    87 -
 html/group__uves__test__simulate.html              |   215 -
 html/group__uves__tflat.html                       |    52 -
 html/group__uves__time.html                        |    86 -
 html/group__uves__utils.html                       |  3253 ----
 html/group__uves__utils__cpl.html                  |   504 -
 html/group__uves__utils__polynomial.html           |  1292 --
 html/group__uves__utils__test.html                 |   173 -
 html/group__uves__utils__wrappers.html             |    52 -
 html/group__uves__utl__ima__arith.html             |   265 -
 html/group__uves__utl__physmod.html                |   265 -
 html/group__uves__utl__rcosmic.html                |   265 -
 html/group__uves__utl__remove__crh__single.html    |   265 -
 html/group__uves__wavecal.html                     |  1490 --
 html/group__uves__wavecal__test.html               |    64 -
 html/index.hhc                                     |  1178 --
 html/index.hhk                                     |  2094 ---
 html/index.hhp                                     |   409 -
 html/index.html                                    |    51 -
 html/irplib__calib_8c_source.html                  |   647 -
 html/irplib__calib_8h_source.html                  |   109 -
 html/irplib__cat-test_8c_source.html               |   158 -
 html/irplib__cat_8c_source.html                    |   459 -
 html/irplib__cat_8h_source.html                    |   117 -
 html/irplib__distortion_8c_source.html             |  1311 --
 html/irplib__distortion_8h_source.html             |   104 -
 html/irplib__flat_8c_source.html                   |   386 -
 html/irplib__flat_8h_source.html                   |   100 -
 html/irplib__framelist-test_8c_source.html         |   152 -
 html/irplib__framelist_8c_source.html              |  1015 --
 html/irplib__framelist_8h_source.html              |   167 -
 html/irplib__hist-test_8c_source.html              |   210 -
 html/irplib__hist_8c_source.html                   |   410 -
 html/irplib__hist_8h_source.html                   |   153 -
 html/irplib__ksigma__clip_8c_source.html           |   267 -
 html/irplib__ksigma__clip_8h_source.html           |   112 -
 html/irplib__ksigma__clip__body_8h_source.html     |   167 -
 html/irplib__match__cats-test_8c_source.html       |   207 -
 html/irplib__match__cats_8c_source.html            |   245 -
 html/irplib__match__cats_8h_source.html            |   106 -
 html/irplib__mkmaster_8c_source.html               |   529 -
 html/irplib__mkmaster_8h_source.html               |   113 -
 html/irplib__oddeven_8c_source.html                |   357 -
 html/irplib__oddeven_8h_source.html                |   100 -
 html/irplib__plugin-test_8c_source.html            |   183 -
 html/irplib__plugin_8c_source.html                 |  1089 --
 html/irplib__plugin_8h_source.html                 |   153 -
 html/irplib__polynomial-test_8c_source.html        |   614 -
 html/irplib__polynomial_8c_source.html             |  1295 --
 html/irplib__polynomial_8h_source.html             |   130 -
 html/irplib__ppm_8c_source.html                    |   513 -
 html/irplib__ppm_8h_source.html                    |   100 -
 html/irplib__slitpos_8c_source.html                |   554 -
 html/irplib__slitpos_8h_source.html                |    99 -
 html/irplib__spectrum_8c_source.html               |   613 -
 html/irplib__spectrum_8h_source.html               |   119 -
 html/irplib__stdstar_8c_source.html                |   774 -
 html/irplib__stdstar_8h_source.html                |   140 -
 html/irplib__strehl_8c_source.html                 |   721 -
 html/irplib__strehl_8h_source.html                 |   135 -
 html/irplib__utils-test_8c_source.html             |   406 -
 html/irplib__utils_8c_source.html                  |  1314 --
 html/irplib__utils_8h_source.html                  |   561 -
 html/irplib__wavecal_8c_source.html                |  1589 --
 html/irplib__wavecal_8h_source.html                |   238 -
 html/irplib__wavecal__impl_8h_source.html          |   116 -
 html/irplib__wcs-test_8c_source.html               |   357 -
 html/irplib__wcs_8c_source.html                    |   355 -
 html/irplib__wcs_8h_source.html                    |   126 -
 html/irplib__wlxcorr-test_8c_source.html           |   520 -
 html/irplib__wlxcorr_8c_source.html                |  1146 --
 html/irplib__wlxcorr_8h_source.html                |   133 -
 html/jquery.js                                     |     8 -
 html/modules.html                                  |   153 -
 html/nav_f.png                                     |   Bin 153 -> 0 bytes
 html/nav_g.png                                     |   Bin 108 -> 0 bytes
 html/nav_h.png                                     |   Bin 98 -> 0 bytes
 html/open.png                                      |   Bin 123 -> 0 bytes
 html/recipe__main_8c_source.html                   |   256 -
 html/struct__irplib__hist__.html                   |    78 -
 html/struct__polynomial.html                       |   148 -
 html/struct__uves__chip.html                       |    72 -
 html/struct__uves__deque__.html                    |    78 -
 html/struct__uves__propertylist__.html             |    72 -
 html/struct__uves__regexp__.html                   |    74 -
 html/structframe.html                              |    91 -
 html/structirplib__base__spectrum__model.html      |    76 -
 html/structirplib__line__spectrum__model.html      |    88 -
 html/structirplib__multimin.html                   |    92 -
 html/structlt__type.html                           |   201 -
 html/structslit__geometry.html                     |    74 -
 html/tab_a.png                                     |   Bin 142 -> 0 bytes
 html/tab_b.png                                     |   Bin 167 -> 0 bytes
 html/tab_h.png                                     |   Bin 192 -> 0 bytes
 html/tab_s.png                                     |   Bin 184 -> 0 bytes
 html/tabs.css                                      |    59 -
 html/uves-test_8c_source.html                      |   455 -
 html/uves_8h_source.html                           |   190 -
 html/uves__backsub_8c_source.html                  |  1480 --
 html/uves__backsub_8h_source.html                  |   168 -
 html/uves__baryvel_8c_source.html                  |  1442 --
 html/uves__baryvel_8h_source.html                  |   115 -
 html/uves__cal__cd__align_8c_source.html           |   142 -
 html/uves__cal__mkmaster_8c_source.html            |   142 -
 html/uves__cal__mkmaster__impl_8c_source.html      |   374 -
 html/uves__cd__align-test_8c_source.html           |   267 -
 html/uves__cd__align__impl_8c_source.html          |   635 -
 html/uves__cd__align__impl_8h_source.html          |   142 -
 html/uves__chip_8c_source.html                     |   196 -
 html/uves__chip_8h_source.html                     |   129 -
 html/uves__chip__type_8c_source.html               |   128 -
 html/uves__chip__type_8h_source.html               |   109 -
 html/uves__corrbadpix-test_8c_source.html          |   256 -
 html/uves__corrbadpix_8c_source.html               |   746 -
 html/uves__corrbadpix_8h_source.html               |   123 -
 html/uves__cpl__size_8h_source.html                |    77 -
 html/uves__deque_8c_source.html                    |   314 -
 html/uves__deque_8h_source.html                    |   114 -
 html/uves__dfs-test_8c_source.html                 |   726 -
 html/uves__dfs_8c_source.html                      |  5797 -------
 html/uves__dfs_8h_source.html                      |  1311 --
 html/uves__dump_8c_source.html                     |   419 -
 html/uves__dump_8h_source.html                     |   114 -
 html/uves__error_8h_source.html                    |   290 -
 html/uves__extract-test_8c_source.html             |   527 -
 html/uves__extract_8c_source.html                  |  5915 --------
 html/uves__extract_8h_source.html                  |   137 -
 html/uves__extract__iterate_8c_source.html         |   299 -
 html/uves__extract__iterate_8h_source.html         |   176 -
 html/uves__extract__profile_8c_source.html         |   809 -
 html/uves__extract__profile_8h_source.html         |   234 -
 html/uves__flatfield_8c_source.html                |   441 -
 html/uves__flatfield_8h_source.html                |   124 -
 html/uves__globals_8h_source.html                  |    92 -
 html/uves__mbias_8c_source.html                    |   139 -
 html/uves__mbias__impl_8c_source.html              |  1010 --
 html/uves__mbias__impl_8h_source.html              |   111 -
 html/uves__mdark_8c_source.html                    |   139 -
 html/uves__mdark__impl_8c_source.html              |  1256 --
 html/uves__mdark__impl_8h_source.html              |   126 -
 html/uves__merge_8c_source.html                    |   816 -
 html/uves__merge_8h_source.html                    |   148 -
 html/uves__mflat_8c_source.html                    |   139 -
 html/uves__mflat__combine_8c_source.html           |   113 -
 html/uves__mflat__combine__impl_8c_source.html     |   169 -
 html/uves__mflat__impl_8c_source.html              |   145 -
 html/uves__msg_8c_source.html                      |   350 -
 html/uves__msg_8h_source.html                      |   170 -
 html/uves__obs__spatred__impl_8c_source.html       |   299 -
 html/uves__orderpos_8c_source.html                 |   139 -
 html/uves__orderpos__body_8c_source.html           |  1764 ---
 html/uves__orderpos__body_8h_source.html           |   122 -
 html/uves__orderpos__follow_8c_source.html         |  1717 ---
 html/uves__orderpos__follow_8h_source.html         |   121 -
 html/uves__orderpos__hough_8c_source.html          |   959 --
 html/uves__orderpos__hough_8h_source.html          |   128 -
 html/uves__orderpos__impl_8c_source.html           |   279 -
 html/uves__parameters_8c_source.html               |  2820 ----
 html/uves__parameters_8h_source.html               |   302 -
 html/uves__pfits_8c_source.html                    |  2550 ----
 html/uves__pfits_8h_source.html                    |   753 -
 html/uves__physmod_8c_source.html                  |   139 -
 html/uves__physmod__body_8c_source.html            |  1894 ---
 html/uves__physmod__body_8h_source.html            |   122 -
 html/uves__physmod__calmap_8c_source.html          |   275 -
 html/uves__physmod__calmap_8h_source.html          |   132 -
 html/uves__physmod__center__gauss_8c_source.html   |   515 -
 html/uves__physmod__center__gauss_8h_source.html   |   101 -
 html/uves__physmod__chop__otab_8c_source.html      |   236 -
 html/uves__physmod__chop__otab_8h_source.html      |   122 -
 html/uves__physmod__create__table_8c_source.html   |  1995 ---
 html/uves__physmod__create__table_8h_source.html   |   134 -
 html/uves__physmod__cstacen_8c_source.html         |  1532 --
 html/uves__physmod__cstacen_8h_source.html         |   105 -
 html/uves__physmod__impl_8c_source.html            |   291 -
 html/uves__physmod__msrawxy_8c_source.html         |   429 -
 html/uves__physmod__msrawxy_8h_source.html         |   126 -
 html/uves__physmod__necregr_8c_source.html         |   224 -
 html/uves__physmod__necregr_8h_source.html         |   103 -
 html/uves__physmod__plotmod_8c_source.html         |   246 -
 html/uves__physmod__plotmod_8h_source.html         |   118 -
 html/uves__physmod__qc1pmtbl_8c_source.html        |   383 -
 html/uves__physmod__qc1pmtbl_8h_source.html        |   102 -
 .../uves__physmod__regress__echelle_8c_source.html |   440 -
 .../uves__physmod__regress__echelle_8h_source.html |   128 -
 .../uves__physmod__stability__check_8c_source.html |   562 -
 .../uves__physmod__stability__check_8h_source.html |   118 -
 html/uves__physmod__utils_8c_source.html           |  1244 --
 html/uves__physmod__utils_8h_source.html           |   229 -
 html/uves__plot_8c_source.html                     |   692 -
 html/uves__plot_8h_source.html                     |   142 -
 html/uves__plugin_8h_source.html                   |   338 -
 html/uves__polynomial-test_8c_source.html          |   289 -
 html/uves__propertylist-test_8c_source.html        |  1135 --
 html/uves__propertylist_8c_source.html             |  3555 -----
 html/uves__propertylist_8h_source.html             |   634 -
 html/uves__qclog-test_8c_source.html               |   180 -
 html/uves__qclog_8c_source.html                    |  1105 --
 html/uves__qclog_8h_source.html                    |   285 -
 html/uves__rebin_8c_source.html                    |  1210 --
 html/uves__rebin_8h_source.html                    |   135 -
 html/uves__recipe_8c_source.html                   |   139 -
 html/uves__recipe_8h_source.html                   |   190 -
 html/uves__redchain_8c_source.html                 |   139 -
 html/uves__redchain__impl_8c_source.html           |  1202 --
 html/uves__reduce_8c_source.html                   |  3218 ----
 html/uves__reduce_8h_source.html                   |   147 -
 html/uves__reduce__mflat_8c_source.html            |  1051 --
 html/uves__reduce__mflat_8h_source.html            |   118 -
 html/uves__reduce__mflat__combine_8c_source.html   |   524 -
 html/uves__reduce__mflat__combine_8h_source.html   |   106 -
 html/uves__reduce__scired_8c_source.html           |  2227 ---
 html/uves__reduce__scired_8h_source.html           |   110 -
 html/uves__reduce__utils_8c_source.html            |   364 -
 html/uves__reduce__utils_8h_source.html            |   127 -
 html/uves__remove__crh__single_8c_source.html      |   527 -
 html/uves__remove__crh__single_8h_source.html      |    67 -
 html/uves__response-test_8c_source.html            |   411 -
 html/uves__response_8c_source.html                 |   139 -
 html/uves__response__efficiency_8c_source.html     |   610 -
 html/uves__response__efficiency_8h_source.html     |   159 -
 html/uves__response__impl_8c_source.html           |  1369 --
 html/uves__response__utils_8c_source.html          |   423 -
 html/uves__response__utils_8h_source.html          |   130 -
 html/uves__scired_8c_source.html                   |   139 -
 html/uves__scired__impl_8c_source.html             |   287 -
 html/uves__test__simulate_8c_source.html           |   353 -
 html/uves__test__simulate_8h_source.html           |   116 -
 html/uves__tflat_8c_source.html                    |   111 -
 html/uves__tflat__impl_8c_source.html              |   238 -
 html/uves__time_8c_source.html                     |   244 -
 html/uves__time_8h_source.html                     |    97 -
 html/uves__utils-test_8c_source.html               |  3718 -----
 html/uves__utils_8c_source.html                    |  4516 ------
 html/uves__utils_8h_source.html                    |   604 -
 html/uves__utils__cpl_8c_source.html               |   755 -
 html/uves__utils__cpl_8h_source.html               |   196 -
 html/uves__utils__polynomial_8c_source.html        |  1579 --
 html/uves__utils__polynomial_8h_source.html        |   189 -
 html/uves__utils__wrappers_8c_source.html          |  2540 ----
 html/uves__utils__wrappers_8h_source.html          |   259 -
 html/uves__utl__ima__arith_8c_source.html          |   456 -
 html/uves__utl__physmod_8c_source.html             |   562 -
 html/uves__utl__rcosmic_8c_source.html             |   572 -
 html/uves__utl__remove__crh__single_8c_source.html |   582 -
 html/uves__wavecal-test_8c_source.html             |   223 -
 html/uves__wavecal_8c_source.html                  |   139 -
 html/uves__wavecal__body_8c_source.html            |  2696 ----
 html/uves__wavecal__body_8h_source.html            |   128 -
 html/uves__wavecal__firstsolution_8c_source.html   |   682 -
 html/uves__wavecal__firstsolution_8h_source.html   |   128 -
 html/uves__wavecal__identify_8c_source.html        |  1320 --
 html/uves__wavecal__identify_8h_source.html        |   140 -
 html/uves__wavecal__impl_8c_source.html            |   291 -
 html/uves__wavecal__search_8c_source.html          |   809 -
 html/uves__wavecal__search_8h_source.html          |   134 -
 html/uves__wavecal__utils_8c_source.html           |   453 -
 html/uves__wavecal__utils_8h_source.html           |   177 -
 libqfits/AUTHORS                                   |     2 -
 libqfits/Doxyfile.in                               |   226 -
 libqfits/Makefile.am                               |    37 -
 libqfits/Makefile.in                               |   887 --
 libqfits/README                                    |    63 -
 libqfits/acinclude.m4                              |    13 -
 libqfits/aclocal.m4                                |   979 --
 libqfits/admin/config.guess                        |  1530 --
 libqfits/admin/config.sub                          |  1773 ---
 libqfits/admin/depcomp                             |   708 -
 libqfits/admin/html.am                             |    78 -
 libqfits/admin/install-sh                          |   527 -
 libqfits/admin/ltmain.sh                           |  9655 ------------
 libqfits/admin/missing                             |   331 -
 libqfits/config.h.in                               |   177 -
 libqfits/configure                                 | 14958 -------------------
 libqfits/configure.ac                              |    80 -
 libqfits/html/annotated.html                       |    67 -
 libqfits/html/bc_s.png                             |   Bin 680 -> 0 bytes
 libqfits/html/bdwn.png                             |   Bin 147 -> 0 bytes
 libqfits/html/classes.html                         |    67 -
 libqfits/html/closed.png                           |   Bin 132 -> 0 bytes
 .../html/dir_68267d1309a1af8e8297ef4c3efbcdba.html |    90 -
 libqfits/html/doxygen.css                          |  1156 --
 libqfits/html/doxygen.png                          |   Bin 3779 -> 0 bytes
 libqfits/html/dynsections.js                       |    78 -
 libqfits/html/files.html                           |    76 -
 libqfits/html/ftv2blank.png                        |   Bin 86 -> 0 bytes
 libqfits/html/ftv2cl.png                           |   Bin 453 -> 0 bytes
 libqfits/html/ftv2doc.png                          |   Bin 746 -> 0 bytes
 libqfits/html/ftv2folderclosed.png                 |   Bin 616 -> 0 bytes
 libqfits/html/ftv2folderopen.png                   |   Bin 597 -> 0 bytes
 libqfits/html/ftv2lastnode.png                     |   Bin 86 -> 0 bytes
 libqfits/html/ftv2link.png                         |   Bin 746 -> 0 bytes
 libqfits/html/ftv2mlastnode.png                    |   Bin 246 -> 0 bytes
 libqfits/html/ftv2mnode.png                        |   Bin 246 -> 0 bytes
 libqfits/html/ftv2mo.png                           |   Bin 403 -> 0 bytes
 libqfits/html/ftv2node.png                         |   Bin 86 -> 0 bytes
 libqfits/html/ftv2ns.png                           |   Bin 388 -> 0 bytes
 libqfits/html/ftv2plastnode.png                    |   Bin 229 -> 0 bytes
 libqfits/html/ftv2pnode.png                        |   Bin 229 -> 0 bytes
 libqfits/html/ftv2splitbar.png                     |   Bin 314 -> 0 bytes
 libqfits/html/ftv2vertline.png                     |   Bin 86 -> 0 bytes
 libqfits/html/functions.html                       |   268 -
 libqfits/html/functions_vars.html                  |   268 -
 libqfits/html/group__md5.html                      |    53 -
 libqfits/html/group__qfits__byteswap.html          |   157 -
 libqfits/html/group__qfits__cache.html             |   139 -
 libqfits/html/group__qfits__card.html              |   238 -
 libqfits/html/group__qfits__error.html             |    53 -
 libqfits/html/group__qfits__filename.html          |   207 -
 libqfits/html/group__qfits__float.html             |    55 -
 libqfits/html/group__qfits__header.html            |   843 --
 libqfits/html/group__qfits__image.html             |   238 -
 libqfits/html/group__qfits__md5.html               |    91 -
 libqfits/html/group__qfits__memory.html            |   483 -
 libqfits/html/group__qfits__rw.html                |   386 -
 libqfits/html/group__qfits__table.html             |   903 --
 libqfits/html/group__qfits__time.html              |    84 -
 libqfits/html/group__qfits__tools.html             |   561 -
 libqfits/html/index.html                           |    51 -
 libqfits/html/jquery.js                            |     8 -
 libqfits/html/md5_8h_source.html                   |    83 -
 libqfits/html/modules.html                         |    70 -
 libqfits/html/nav_f.png                            |   Bin 153 -> 0 bytes
 libqfits/html/nav_g.png                            |   Bin 108 -> 0 bytes
 libqfits/html/nav_h.png                            |   Bin 98 -> 0 bytes
 libqfits/html/open.png                             |   Bin 123 -> 0 bytes
 libqfits/html/qfits__byteswap_8h_source.html       |   105 -
 libqfits/html/qfits__cache_8h_source.html          |   114 -
 libqfits/html/qfits__card_8h_source.html           |   101 -
 libqfits/html/qfits__error_8h_source.html          |   105 -
 libqfits/html/qfits__filename_8h_source.html       |   100 -
 libqfits/html/qfits__float_8h_source.html          |   114 -
 libqfits/html/qfits__header_8h_source.html         |   141 -
 libqfits/html/qfits__image_8h_source.html          |   185 -
 libqfits/html/qfits__md5_8h_source.html            |   105 -
 libqfits/html/qfits__memory_8h_source.html         |   129 -
 libqfits/html/qfits__rw_8h_source.html             |   110 -
 libqfits/html/qfits__std_8h_source.html            |   103 -
 libqfits/html/qfits__table_8h_source.html          |   209 -
 libqfits/html/qfits__time_8h_source.html           |    97 -
 libqfits/html/qfits__tools_8h_source.html          |   135 -
 libqfits/html/structqfits__col-members.html        |    72 -
 libqfits/html/structqfits__col.html                |   264 -
 libqfits/html/structqfits__header-members.html     |    61 -
 libqfits/html/structqfits__header.html             |    71 -
 libqfits/html/structqfits__table-members.html      |    67 -
 libqfits/html/structqfits__table.html              |   193 -
 libqfits/html/structqfitsdumper-members.html       |    68 -
 libqfits/html/structqfitsdumper.html               |   214 -
 libqfits/html/structqfitsloader-members.html       |    79 -
 libqfits/html/structqfitsloader.html               |   409 -
 libqfits/html/tab_a.png                            |   Bin 142 -> 0 bytes
 libqfits/html/tab_b.png                            |   Bin 167 -> 0 bytes
 libqfits/html/tab_h.png                            |   Bin 192 -> 0 bytes
 libqfits/html/tab_s.png                            |   Bin 184 -> 0 bytes
 libqfits/html/tabs.css                             |    59 -
 libqfits/m4macros/eso.m4                           |   902 --
 libqfits/m4macros/libtool.m4                       |  7986 ----------
 libqfits/m4macros/ltoptions.m4                     |   384 -
 libqfits/m4macros/ltsugar.m4                       |   123 -
 libqfits/m4macros/ltversion.m4                     |    23 -
 libqfits/m4macros/lt~obsolete.m4                   |    98 -
 libqfits/m4macros/qfits_memory.m4                  |    63 -
 libqfits/qfits.h                                   |    20 -
 libqfits/src/Makefile.am                           |    44 -
 libqfits/src/Makefile.in                           |   568 -
 libqfits/src/md5.c                                 |   286 -
 libqfits/src/md5.h                                 |    23 -
 libqfits/src/qfits_byteswap.c                      |   111 -
 libqfits/src/qfits_byteswap.h                      |    45 -
 libqfits/src/qfits_cache.c                         |   789 -
 libqfits/src/qfits_cache.h                         |    55 -
 libqfits/src/qfits_card.c                          |   547 -
 libqfits/src/qfits_card.h                          |    41 -
 libqfits/src/qfits_error.c                         |   226 -
 libqfits/src/qfits_error.h                         |    45 -
 libqfits/src/qfits_filename.c                      |   247 -
 libqfits/src/qfits_filename.h                      |    40 -
 libqfits/src/qfits_float.c                         |   242 -
 libqfits/src/qfits_float.h                         |    85 -
 libqfits/src/qfits_header.c                        |  1047 --
 libqfits/src/qfits_header.h                        |    89 -
 libqfits/src/qfits_image.c                         |  1387 --
 libqfits/src/qfits_image.h                         |   268 -
 libqfits/src/qfits_md5.c                           |   198 -
 libqfits/src/qfits_md5.h                           |    45 -
 libqfits/src/qfits_memory.c                        |  1484 --
 libqfits/src/qfits_memory.h                        |    69 -
 libqfits/src/qfits_rw.c                            |   522 -
 libqfits/src/qfits_rw.h                            |    50 -
 libqfits/src/qfits_std.h                           |    44 -
 libqfits/src/qfits_table.c                         |  2425 ---
 libqfits/src/qfits_table.h                         |   250 -
 libqfits/src/qfits_time.c                          |   240 -
 libqfits/src/qfits_time.h                          |    37 -
 libqfits/src/qfits_tools.c                         |   661 -
 libqfits/src/qfits_tools.h                         |    75 -
 libqfits/test/Makefile.am                          |    37 -
 libqfits/test/Makefile.in                          |   665 -
 libqfits/test/asciitable.tfits                     |   156 -
 libqfits/test/bintable.tfits                       |   194 -
 libqfits/test/pixset.h                             |   118 -
 libqfits/test/test_pixio.c                         |   608 -
 libqfits/test/test_pixio.txt                       |    38 -
 libqfits/test/test_qfits.c                         |   660 -
 libqfits/test/test_qfits.txt                       |    39 -
 libqfits/test/test_tfits.c                         |   345 -
 libqfits/test/test_tfits.txt                       |    44 -
 libqfits/test/test_xmem.c                          |   114 -
 libqfits/test/test_xmem_stress.c                   |   119 -
 560 files changed, 1 insertion(+), 262642 deletions(-)

diff --git a/calib/cal/LINE_INTMON_TABLE.fits b/calib/cal/LINE_INTMON_TABLE.fits
deleted file mode 100644
index b1275fb..0000000
Binary files a/calib/cal/LINE_INTMON_TABLE.fits and /dev/null differ
diff --git a/calib/cal/atmoexan.fits b/calib/cal/atmoexan.fits
deleted file mode 100644
index 5d67501..0000000
--- a/calib/cal/atmoexan.fits
+++ /dev/null
@@ -1,3 +0,0 @@
-SIMPLE  =                    T / Standard FITS format: NOST 100-2.0             BITPIX  =                    8 / No. of bits per pixel                          NAXIS   =                    0 / Empty Prime data matrix                        EXTEND  =                    T / FITS extension may be present                                                                                                  ORIGIN  = 'ESO-MIDAS'          / Written by MIDAS                               DATE    = '2 [...]
-EH  ?�  EN@ ?8Q�EO� ?/��ER� ?"�EV ?�jEY0 ?
O�E\P ?��E_p ?%Eb� >�jEe� >�x�Eh� >�(�Ek� >�hsEo >š�Er0 >��7EuP >��#Exp >���E{� >���E~� >���E�� >��uE�x >��E� >�I�E�� >��E�( >��7E�� >vȴE�H >j~�E�� >bM�E�h >Y�E�� >P�`E�� >J��E� >B�\E�� >=p�E�8 >:^5E�� >49XE�X >-VE�� >%�TE�x > ĜE� >�wE�� >
�E�( >�E�� >n�E�H >bNE�� >VE�h >VE�� >	7LE�� >1'E� >$�E�� >�E�8 >
JE�� >oE�X >
�E�� >	7LE�x >+E� =��E�� =��#E�( >   E�� =��#E�H =E�� =�E�h =�/E�� =���Eˆ =��`E� =���EŨ =\E�8 =�jE�� =�{E�X =� �E�� =���E�x =��TE� =�� [...]
-H <�hF
@ <�9X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [...]
\ No newline at end of file
diff --git a/calib/cal/flxstd.fits b/calib/cal/flxstd.fits
deleted file mode 100644
index 1096e8e..0000000
--- a/calib/cal/flxstd.fits
+++ /dev/null
@@ -1,2797 +0,0 @@
-SIMPLE  =                    T / Standard FITS format                           BITPIX  =                  -32 / No. of bits per pixel                          NAXIS   =                    0 / No. of axes in image                           EXTEND  =                    T / FITS extension may be present                  BLOCKED =                    T / FITS file may be blocked                                                                                                       BUNIT   = 'n [...]
-00:01:49.42-03:01:39.0?�-�B7��8Q�
�  �EN@ EO@ EP@ EQ@ ER@ ES@ ET@ EU@ EV@ EW@ EX@ EY@ EZ@ E[@ E\@ E]@ E^@ E_@ E`@ Ea@ Eb@ Ec@ Ed@ Ee@ Ef@ Eg@ Eh@ Ei@ Ej@ Ek@ El@ Em@ En@ Eo@ Ep@ Eq@ Er@ Es@ Et@ Eu@ Ev@ Ew@ Ex@ Ey@ Ez@ E{@ E|@ E}@ E~@ E@ E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  [...]
- F
-P F
-� F
-� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F  F P F � F � F! F!P F!� F!� F" F"P ������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-��I
-� I�IW at I
]�I'�`I5� I2�@IJ0 I86 IFI at I^z`IDx at I4.�IX
 I_\ IZ I=� I'[ II��IQr IQ��IR[@IQG IL�I6ÀIc�I0)�I>��I@� I?��I=1�I;� I9��I7e`I4��I1�@I/a�I,{ I'u`I�@H�S�I% IT�I
�@I
��I
0 I� I�`I\@In�I I�@Ip�I� I
��I
�I
-�`I	~ IK I= I@I��I. at I v�H�� H�9�H�@H�H���HH�ԀH�k�H��@H�� H�X at H�ڀHޑ�Hݽ H��H��Hد@Hո�H��@H���H�G at H��@H�@H�m H�m�H�ҀH H�� H�T H���H��H�� H��@H�'@H�b�H�� H��H�:�H�� H�ȀH�H�H��H�܀H�h H���H��@H��@H�� H���H��@H���H��@H�s�H��H�q�H�,�H��@H�� H�` H��@H�r H�~ H���H���H�
- H�
 H�l at H�� H���H�[�H�� H�r�H~0�H{��Hz��Hx� Hv�Hr��Hp� Hn€Hm
 Hj~ Hg��Hf� He��Hc�HaހH`� H^�H[� HY��HYq HV�HT׀HR� HQ��HO܀HK6�HI�HIY HI�HG��HF"�HD; HCʀHB��H@� H?w H=��H< H9� H8t H6_�H3&�H%P H� H%ԀH.� H.� H.S�H- H+� H*A H)� H(� H'5 H%� H#� H"� H!`�H �H
��H
] H3 H
- H��H	��H|�H HJ Hj�H��H H� H
� H
' H
� H
 H
-Y�H	�H�H߀H� H  G�� G�� G�~ G�w G�� G�L G�u G�
 G�W G� G�9 G�+ G�s G� G� G� G� G�* G�� G� G�M G�| G� G�W G�, G�0�G;� Gq� Gy� G�}�G�g G�k Gϭ G�W G� G�� G�� G� Gɩ G�x G�� G�] G�c G�T�G�L�G�X�G�� G�H G�� G�� G�� G�
 G���G�� G�� G�� G�G G�� G��G�o G���G�
�G�'�G�� G�b G�� G���G�� G�u G� G�рG�6�G�z G�O G�ڀG���G�̀G�� G� G�:�G�ˀG�z G���G�� G�" G�_ G��G�>�G�� G� �G�� G�S�G�� G�΀G���G�.�G�� G�� Gw� G�� G�x G���G���G�� GxA Gf� G���G�e G�ɀG�i�G���G���Gve Ga� GEe GW� Gv� Gx� Gqn Gq? Gq� Go
 Gk: Gh� Gi) Gh� Gd� GG� G<� GX: G_� GX� GKn G2_ G!9 G� G� G'A GA� G<� G, G'# G*� G-� G*� G,� G!} G� G� G)
 G+� G3� G4� G6� G8� G<� GC GD, G@� G<. G8� G9< G<� G: G<� G>� G>y G at R G=k G=� G== G=� G;U G8� G:! G5� G3�  [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-=A�"�A�r�A��RA��\A��
-A�n�A�Q�A�5?A���A�oAв-A�XA�%A���A�ffA�-A�9XA��A���A�jAǕ�A��yA�33A�`BA�$�A�bNA��wA�r�A� �A�VA�
JA�;dA���A�I�A��hA�n�A���A�9XA�I�A�n�A��;Aɴ9A�I�A�+A�O�A���A�r�A�hsA�l�Aȏ\ADžA�A���A�-A�VA���A�XA�G�A�Q�A�G�A���A�Q�A�5?A�E�A�
A̟�A�7LA�\)A�+A��A��-A�XA�M�A�A�A�ƨA��
-A��jA�"�A��FA�\)A�
-=A���A�M�A��A�jA���A�"�A��DA���A�r�A�ȴAŬA��A�p�A��7A�
-=A�Z
A�33A�~�A���A�(�A���A�A�A���A�+A��#A��A��A�33A�S�A�|�Ać+A��A�
�A�^5A�Z
A˰!A�{A�VA��A��yA���A�%A�`BA��AƑhA���A�t�A̸RA�
JAĸRA�%A�p�A��\A��mA�5?A�Z
A�
JA�;dA˛�A��A���A�ffA�`BA���A�9XA�;dA�C�A�ȴAȕ�A�S�A�ffA��A̙�A�M�A�
�A�`BA�hsA�E�A�&�A�C�A��;A�(�A�
-=AӺ^A�%A҃A�dZA�dZA�
-=A��Aח�A�&�A���A̙�A�+A�{A�~�A��;A��!A�
A��yA���A�M�A�E�A�A�AЃA�VA��TA���A�r�AمAؙ�A�oA�ĜA޲-A�v�A�jA�+A�ĜA�jA�I�A���A��A�\)A�ffA��HA���A�n�A�Q�A�%A��mA�ȴA�E�A���A��A�A�ffAϟ�A�O�A��/A���A���AͅA�\)A��A�
�A�I�A��yA�Z
A��A�=qA��`A�A�A���A��A���A�-A���A�"�A���A�`BA���A���A��DA�E�A�+A���A���A�{Aѥ�Aө�A� �A�bNA�1A��yA���A�E�A�Aߺ^A� �A���A��Aӝ�A�ȴA�n�A�  A�r�Aͧ�A�ȴA�`BAԟ�A��HA���AӰ!A�&�A�hsA�K�A�  A�VA״9A�-A۬A���A�9XAӑhA���Aհ!A�"�A���A��`A�`BA�VAۍPA�=qAۃA�dZA݁A�n�A�|�A���A [...]
-Aȩ�AƶFA�bA���A��A��+A��A�C�AĴ9A�jA���A���A�(�Aϴ9A��;A�G�A�Z
A�n�A�"�A�VA�S�A�ĜA�VA�XA��#A�dZA�PA��TA�r�A�+A��A�Q�A�5?A�uA�7LA�ƨA��A��A��;A��HA��`A��yA�Z
A�A��A�-A�"�A�r�A�7LA���A�VA�\)A�dZA��mA�5?A��A�-A��A�+A�Q�A�A�A� �A�(�A�XA�Z
A�\)A�;dA��A���A�Q�A�7LAA�|�A��yA��mA�x�A�A�-A��A�VA�VA��mA�ƨA�x�A�+AԮA�oA��A˺^A�bNA���A�x�A���A��TA� �A���A���A�E�Aܕ�A޸RA�|�A�
-=A�-A�A핁A�
�A���A�?}A���A��\A�l�A�K�A��!A��\A��`A�  A���B ��A�oA�M�A��A���A��DB �#B��B&�BS�Bk�B �%A��^A���A�x�A���A�5?A���A�hsB v�B ��B �A��A��\A�  A�$�A���A��A��A���A�p�A�Q�A�
JA�hA�jA�VA왚A��A��A�33A�33A�n�A��7A�-A���A�%A��A�
A�\)A���B m�B ]/B K�A�
�A��TA�t�A�ȴA�XA�&�A��HA�M�A�%A�?}A�XA�I�A�dZA�r�Aв-A�33A�C�A���A��yA��HA��A���A��A�A�A�bNA�$�A���A�  A�
AӋDA�ƨA�|�A��HA�O�A�`BA�bNA���A�r�A�dZA�C�A��A�
A��uA�^5A��A�
�A���A��A�
A���A��`A�r�Aд9A���A�K�A��9A�
A��!A�z�A��PA [...]
-��B
-��B
gmB
��B
-��B
-�B
�B
�)B[#B�Be`B�RB�yB�
-B=qB+B�B��BK�B�HBVB�1B
�B��B��B�
B��B�B�1B
BXB�DB�}Be`B��BBC�B�B�?B^5BK�B}�B�HB�;B!�B��BcTB
�B
DB�B�hBp�B�BZ
B��B
B�=B�B�;BbB��B��B�Bp�B^5B��B��BB�BE�B33B �B��BɺB��B�7B��BdZB�B��B�B��B6FB5?BuB��B�+B�XBɺB��B.BȴBcTB��B�wB[#BH�B��B�B  BXBD�B��B`BB%B��B�B5?B/BÖB'�B�B��B��B��B
�`B
�hB
~�B
��B�B�B�LB�
-B�?B�uB.BɺB�B�\B.BuB�\B5?B!�B\B��BT�B��Bq�B�B	7BE�BȴB(�B]/BB�1Bu�B
�B
DB�B!�BȴB)�BG�Be`B��B�%B�XB�B�
B�B�BƨB��B�{BVB�B��B�5BĜB�-B��B!�BǮB��B�B�
-BĜBk�BYB�PBs�B� Bm�B�B(�B
�B[#BB��B#�B{�B�B  B49B�PBz�B��B9XB&�B��Bt�B�BO�B�B�)BɺB�uB�Bo�BƨB��B��B%�B{Bk�B�fB>wB�/BoB�RB�B�TB�BǮB��B�yB�BŢBm�B�BI�B|�B��BYBB�+B�B�fB)�B��B��B)�B:^Bm�B��B��Bo�BQ�B6FB�B,B��B��BE�B33B�RB��B��B��Bp�B^5B�?B]/B(�B9XBm�B\)B�\B}�B�BBffB��B
DB>wB�
B
PBA�B/B�uB��B�B\)B+B�-B'�B|�Bk�BZ
BH�B��B��B�}B�B�HB{BBXBF�B��B��B�VB
/B
6FB
� B
-�B
-y�B	��B��B��Bs�B'�BcTB��B �B �A��mA��!A��A��A��\A��mA���A�{B dZB[#BZ
B�}B��B
-�sB
��B\BbNB��B�DB'�B\)B��B.B�%B
B��B�
-Bv�B�B%B�1BĜB�^Bl�BgmB��B�B�{B>wB�yB�BO�B�B\B�B?}B�BB��B$�BuB$�B��BF�B5?Bk�BƨBF�B�B�bB}�B"�BbBG�BȴB%�B�B
B�B�5B��BJ�B8RB�5B�B�}BffB1'B�bB~�B�9B��B�B� B&�B�BJ�B2-B��B�jB��B�5B�Bo�B{B
B�B&�B9XBp�B_;B��B��B�dB��B�dB�B�BB
bNB
1B
�B
W
-B
�bB8RB�jB��B S�B ��B!�B!��B!�B!r�B �B �\B ȴB!'�B!�B"
PB!;dB �/B!�B!��B!�B!�sB""�B"�B"#�B!��B!�DB!x�B!�-B!ŢB!��B!��B!gmB!T�B!B�B!��B!�)B"�B"B!�B!E�B ��B �B�;B�B +B dZB Q�B e`B �B!��B"B�B"ȴB#B#dZB#�B$  B#x�B#�B"�XB!�mB!��B!v�B!��B"��B"��B"7LB!�-B!1B ��B �TB ��B �wB �B �`B!jB"�B"ÖB#$�B#_;B#L�B"ƨB"�9B#aHB#B#�!B#v�B#dZB#P�B"��B"�B!t�B �B �oB!=qB!ÖB"#�B"��B"��B"9XB"&�B"��B"��B"bNB"O�B"�B"B"e`B"�B#  B"�B"�9B"	7B!��B"|�B"�5B"��B"�XB"49B!��B"5?B"�jB#�LB$�B$S�B$A�B$��B%,B$W
-B#6FB"�=B"ĜB"��B#uB#��B#�1B#(�B#cTB#ĜB#�-B#x�B#gmB#z�B#�FB#��B#�5B$�B$+B$�B$��B$�hB$~�B$
�B#��B#�%B#&�B"ǮB#
B"�B#P�B$%�B$:^B$u�B#��B"�
B"#�B"hB!��B"��B#�B"��B"u�B"��B#�B#��B#��B#t�B#bNB$hB%VB%I�B$u�B$�B$B$>wB$�B%(�B$ȴB$�LB$W
-B#��B#�wB#�B#��B#:^B#u�B#cTB#P�B$  B$�B$O�B$�B"��B"$�B"uB"&�B"��B#��B$
DB#��B#�mB#��B#u�B#cTB#��B#�B$�7B$ĜB$�-B$Q�B$@�B#�^B#��B#��B#�B#q�B$ �B$��B%
JB%n�B%\)B%I�B%7LB$�'B$P�B$�JB$ȴB$�/B$��B$�RB$��B%0!B)
�B)��B)��B)^5B)#�B(q�B(_;B(L�B(:^B('�B(dZB(ȴB(�FB(-B(�B(1B(l�B(��B(�fB(�B(q�B(�B)dZB)��B*+B)�B)�hB)+B'�;B'+B(	7B)
PB*:^B+A�B*�B(ÖB'��B&ÖB&�-B'dZB'Q�B&-B%W
-B$\)B#�B$��B%��B&��B'��B'#�B$gmB$�RB$�{B$�wB$��B$ĜB$��B$/B$
DB$5?B$hB$;dB$>wB$�B#��B#�B#=qB#�B"��B# �B##�B#L�B#��B${B$>wB$�\B%+B%
DB%5?B%_;B%<jB%ffB%iyB%�{B%�wB%B%�B&�B&B�B&
�B%�B%�7B%�B$�B$��B$�B$�B$�FB$�BB$�ZB%VB%9XB%�B%@�B%D�B%o�B%��B%v�B%S�B%1'B$��B$(�B#�RB#�TB#�mB$hB$�=B$�#B%S�B%XB%5?B%oB$z�B$
-=B#t�B"�RB!�B!�B ��B!#�B!M�B!�B"��B#�}B$��B&\B'M�B(?}B)33B*&�B*B)�BB)l�B)H�B(�B(�=B(�B'�B'��B'�B'�DB'�B&��B&�%B&cTB&@�B&k�B&I�B&&�B&B%�HB%�}B%�B%ȴB%�B%��B%�B&
B&{�B&�B&�B&�DB&hsB&�{B&q�B&��B&��B&��B&��B&�B&�FB&�uB&"�B&B%�;B%�jB%��B%x�B%��B%�
B%�B%�3B%�;B&
DB&_;B&�DB&�RB&��B&s�B&x�B&W
-B&�B&aHB&?}B&k�B&I�B&��B&ɺB&��B&��B&�-B&�bB&n�B&L�B&+B&	7B%�mB%ŢB%�B%��B%�B%�9B%�BB&
PB%�B%�B&
�B&J�B&(�B&T�B&33B&9XB&ffB&D�B&"�B&B%�BB%�wB%��B%ɺB%��B%��B&(�B&+B&49B&uB%�B&
�B%�B%�VB%l�B%��B%��B%��B%��B&%�B&,B&YB&8RB&�B%��B&"�B&
B%�oB%p�B%O�B%/B$��B$��B$~�B$^5B$=qB$
�B#��B#�#B#�^B#s�B#R�B"�fB"x�B"
JB!�B!��B!�%B!ffB!E�B!K�B!x�B!��B!��B"o�B#\B#�!B$)�B$}�B$��B%L�B%z�B%��B%�B%�PB%m�B%��B%y�B%YB%�+B%�PB%�dB%�sB&�B%��B&J�B&x�B&��B&�%B&�PB&l�B&$�B&B%��B%ÖB%��B%��B%�7B%iyB%��B%v�B%��B%�B%cTB%�hB%q�B%w�B%��B%�%B%�9B&	7B&7LB&�B%��B&$�B&B%�ZB%�B%��B%�B%�DB%k�B%K [...]
PB$�B$��B$�B$�/B$�ZB%oB%@�B%!�B%(�B%W
-B%7LB%ffB%F�B%t�B%T�B%6FB%�B$��B$�=B$jB$K�B$,B$
PB$;dB$
�B$#�B$Q�B$�B$�B$�FB$�`B%uB$�B$��B$�FB$��B$w�B$YB$9XB$�B$H�B$)�B$
DB$uB#�B#��B$B#�ZB#ŢB#�B#�B$B$
JB#�B$�B#��B$,B$
PB${B$C�B$$�B$R�B$49B$�B#��B$%�B$+B#�sB#�B#��B$B$0!B$hB$?}B$ �B$(�B$XB$9XB$�B$I�B$+B$
JB$;dB$
�B#��B#�BB#�sB#��B#��B#�#B#�jB#�B#��B#��B$B#�fB#ǮB#��B#�B$+B#�yB#��B#�B#�VB#p�B#Q�B#49B#�B#
�B#B"�NB#hB"�B#"�B#B#33B#<jB#k�B#L�B#{�B#^5B#@�B#o�B#w�B#Z
B#<jB#
�B#M�B#0!B#_;B#A�B"�B"�RB"��B"|�B"`BB"B�B"$�B"S�B"6FB"e`B"m�B"O�B"~�B"bNB"�bB"s�B"��B"�B"�VB"p�B"R�B"5?B!�B!��B!�LB!��B!��B!�%B!�?B!��B!ƨB!��B!�JB!o�B!w�B![#B!�=B!l�B!O�B!33B!�B ��B!'�B!
DB �B ��B!  B �TB ƨB ��B �JB o� [...]
-=B�B 
�B B�ZB�B 
�B   B�ZBǮB`BBC�B
B
DB:^B
�BM�B|�B�%B�?B��B|�B�B�\Bs�BW
-B�+BjBN�B2-B�B
��B
�5B
B
��B
��B
�;BVB=qBG�B+BZ
B>wB"�B+B
�B
��B
�3B
��B
{�B
`BB
��B
�5B
ÖB
��B
�JB
p�B
T�B
�B
hsB
L�B
2-B
�B
��B
)�B
VB
=qB
G�B
,B
[#B
?}B
n�B
R�B
]/B
A�B
&�B
VB
�B
��B
B
�sB
��B
�-B
�HB
ƨB
�B
�bB
u�B
Z
B
?}B
n�B
R�B
]/B
�JB
q�B
��B
��B
�9B
�wB
�B
��B
�LB
��B
��B
�!B
�;B
�yB
��B
�9B
��B
}�B
cTB
#�B
.B
uB��B
'�B
W
-B
<jB
k�B
u�B
��B
�=B
n�B
��B
�B
hsB
s�B
YB
>wB
#�B
	7B�B�B�XB�sB
�B��B
,B
hB��B�/B�mB��B�VB)�BbB��B�)B��B�B�B�jBƨB��B$�BR�B^5BC�B)�BYB>wB$�B
-=B�B�BB�B�B$�B
DB�B�
-B�qB��B�7Bo�BVB�BjBP�B� BffBK�Bz�BaHBG�B.B��B�-BO�B6FB
�BB2-B�B�9B��BɺB
�BK�B2-BaHBl�B��B�
BhsBN�B5?B�B
B��B�%Bl�BS�B:^B �BO�B6FB
�BB�B�B  B�mB�B �B1B�B�B�jB��B�=Bq�BXB?}B%�BT�B<jB"�B
-=B�B�B+B�B��BB\B��B$�BS�B_;B!�B	7B�B�
-Bw�B^5BE�B�fB��B�?B�TB��B�-B��B�BhsBP�B8RBffBM�B5?B@�Bo�B��B�B�9B�}B�B��BB�B��B�^B��B��B�RB��B�B�uBB��B�B��B��B�
-B�wBɺB�'B��BǮB�!B��B~�BgmBN�B7LB
�B%B�B�B�wB�B��B�qB\B��B%�BVB<jB$�B
JB�B�/BĜB�B��B7LB
�B+B�B�B��B�B��B(�BW
-B?}Bn�BVBbNBI�B2-B��B�BBȴBjBR�B;dB�5BƨB�!B��B�B�B��B�BiyBQ�B� BiyBQ�B:^B�5BƨB�B��B<jB�BB��BK�B��B/B��BYB��B��Bl�BVB
��B
�fB
�PB
w�B

�B
��B

-=B
�hB
-�B	�5B�`B�B�^B��B�RB&�Bv�B#�BM�B9XB�}BF�B
JB��B�)B�fB��B	��B
-�B
=qB
�B
��B
ffB
r�B
��B
��B
�?B
�NB
�B
�
-B
B
0!B
~�B
�B
�B&�B��B�fBuB@�BK�B6FBcTBM�B�B�/BǮB�'B��B�Bo�BZ
B�+Bp�B��B��B�
-B��B�B�BB�B��B�Bk�BT�B
��B
�fB
��B
�dB
�sB
��B  B
DB9XBffBP�B}�BhsBs�B^5BH�BhB
��B
�fB
�PB
w�B
�B
-=B
�B
�;B

JB
��B
#�B
r�B
��B
�B�BH�Bv�B�Bl�BW
-BA�B,B�B
��B
�+B
/B
�B
B
�B
��B
�
B
l�B
XB
B�B
o�B
��B
ɺB
�B
E�B
r�B
~�B
�B
�
B
ĜBuB
��B
�sB
��B
�qB
e`B
/B
�B
B
�B
�
B
�fB
��B
��B
�yB
��B

B
�B
�
-B
B
�B
�
B
ŢB
��B
�jB
��B
�9B
��B
�7B
t�B
�B
k�B
W
-B
cTB
M�B
9XB
E�B
0!B
�B
%B
oB
��B
�yB
��B
�BB
��B
�LB
��B
�B
��B
�B
p�B
[#B
gmB
R�B
>wB
)�B
�B
!�B

JB
-��B
-�TB
-��B
-�#B
-ƨB
-�-B
-��B
-�7B
-t�B
-`BB
-l�B
-XB
-C�B
-/B
-�B
-%B	�B	;dB	G�B	t�B	`BB	�PB	x�B	��B	�'B	��B	ɺB	�?B	��B	��B	x�B	e`B	P�B��B�mB�9B��B�DB7LB#�B\B��B�mB�uB� Bl�B��B�Bp�B]/BI�Bu�B�Bm�BZ
B�%B�-B��B�DB��B�BO�B<jB�sB��B�
Bn�B[#B�+B�3B��BjBv�B��B��B�dB��BT�B@�B�B�^B��B�uB� Bl�BYBE�B2-B
�B+B�BC�Bo�B\)B�1Bt�BaHB�B�
B%BoB>wB+BW
-BC�B1'B�/B�=Bw�BD�B�B�;B��B�RBffBR�B@�B-B�B+B�?B��Bo�B]/BI�B7LB�fB��B�
B2-B
�B
JB7LB$�BO�Bz�B�+B�3B��B��B�BA�Bm�BZ
B�%B�oB~�BM�B:^B�yB��BH�B�BƨBv�B%�B�B��B�uBC�B1'B�B
PB ��B%�BuB=qB�+B�-B�/B&�BQ�B��BƨB�9B�;B��B�^B��BXBE�B49B!�B��B�}B�VB?}B �B �5B ��B �^B ��B ��B �B �B ��B ǮB ��B ��B �B6FB`BB�DB�FB  B�B�BD�B2-B>wBjBXBE�B��BŢB�3BdZB�BB �9B �B 6FB #�B oA��7A��/A��^A���A��B >wB iyB �{B �/B1BQ�B|�B��B��B�;B
DB��B�mB��BB�'B��BO�B>wB-B�B	7B ��B ƨB �?B ��B �hB ��B �JB z�B ��B �{B �
B �B ��B ��B ��B ��B �B �#B%B �B �NB ��B �}B �B _;B M�B   A��/A��^A�
�A���A��A��FA��uA��mA�ĜA���A��� [...]
-A�=qA��A���A���A�;dA��A���A���A�v�A�S�A�1'A�bA��A�S�A� �A���A��#A��^A���A�t�A��\A�l�A�I�A�(�A�%A��`A�A���A�~�A���A�v�A�S�A�33A�bA��A���A��A�ĜA���A��A�`BA�?}A�
�A�7LA�{A��A���A��!A��\A���A��+A�dZA�C�A�"�A�;dA��A���A��A��FA���A��A��PA�l�A�K�A�dZA�C�A�"�A�
A��A���A��A��RA���A��!A��\A�n�A��+A�ffA�E�A�$�A�=qA�
�A���A��A���A���A��9A�XA�ĜA��A�A�bNA�A�A���A�"�A�t�A�
A�VA��TA��7A�hsA�G�A��-A�
�A���A��/A�jA�A�|�A�\)A�;dA��A���A��#A�-A�VA�`BA�?}A�
�A�9XA��A���A��A�RA�A��A�� [...]
-=A��A���A�A�\A�n�A�O�A�1'A��A�A�dZA�E�A�&�A�1A�XA�r�A�Q�A��A�A�ffA�G�A�RA왚A�C�A�$�A�%A��mA�ȴA��A�DA��A���A��
-A�RA뙚A�z�A�\)A�?}A� �A�uA�t�A�ĜA��A�7A�jA�K�AꛦA�|�A�`BA�A�A�hA�r�A�PA��/A�-A�VA��A���A�9AꕁA�x�A�Z
A���A�!A�hA�r�A��mA�ȴA�A�PA�p�A�Q�A�33A��;A�A��A�+A矾A�A���A�9A畁A�x�A�Z
A�=qA�PA�
A��`A�ƨA��A�PA�n�A�Q�A��A�A���A�9A���A�!A�  A��TA�ƨA�{A���A��#A�jA柾A�A�dZA�G�A�+A�x�A�\)A�?}A�"�A�;dA�
�A���A�A�\A�%A��yA���A�!A�uA�v�A�Z
A�=qA�
�A�
A��`A�ȴA�A�A�$�A�1A�A�dZA�G�A���A��A�Q�A���A�A�(�A�
JA��A���A߃A�ffA�K�A�ƨAީ�AލPA�r�A޾wA��
-A�$�A�1A�VA�9XA�
�A�
A��`A�`BA�E�A�(�Aݣ�A݉7A�l�A�Q�A�5?A݃A�ffAݴ9Aݗ�A��`A�ȴA��HA�ƨA�oA���A�C�A�(�A�t�A��A���Aݺ^Aݝ�A݃A�ffA�K�A�/A�{A���A�E�A�(�A�A�A�&�A�r�A�XAݣ�A݉7Aݡ�A��A���A� �A�%A�Q�A���Aݲ-Aݗ�A�z�A���A��/A���Aܥ�A܋DA�1A۸RA۝�A��A�  A�|�A�bNAڮAړuA��;A���A�C�A�(�A�VA��A��A�VA�1A� �A�l�AڸRA�A�
�A�jA۶FAۛ�AہA�ffA�I�A�/A�{AړuA�v�A�\)A�A�A�&�A�
JA��A��
-AټjA١�Aه+A�l�A�Q�A���AضFA؛�A��mA���A��A�dZA�|�A�ȴA�{A���A��;A�ĜA٬AّhA�VA���A��#A���A�
JA��A�p�A�VA�;dA��A�l�A�S�A���A�Q�A�%A��A���AָRA���A��A�
A��mA���Aֲ-A֙�A�~�A�dZA�K�A�1'Aղ-A՗�A�~�A�dZA�I�A�1'A��A�bNA�G�A�/A�{A���A�|�A�1'A��Aә�AӁA�A��yA���AҶFA�
A��mA���AҴ9Aқ�A҃A�%Aщ7A�?}A�$�AЩ�AБhA�x�A�^5A�E�A�-A�v�A�\)A��
-A� �A�jA��`A�/A�x�AґhA��#A�Aҩ�Aҏ\A�v�A�^5A�C�A�ȴAѮA�dZA��yA�n�A�S�A��AϏ\A�v�A�^5A�E�A�-A�E�A�-A�t�A�\)Aϥ�AύPA�oA���A�O�A���A�\)A�C�A̙�A� �A�
-=AˑhA��A���AʸRAʟ�A��A�`BA˧�A˾wA�1A��A��
-A˾wA�E�A���A��mA�n�A�XA�?}A�&�A�n�AʅA���A��A�^5A���A˼jA˥�AˍPA�t�A�\)A�E�A���AʅA�n�A�VA��;A�ƨAɰ!A�7LA�A�z�A�AǏ\A��A�
A��A�1'A�x�A�`BAǧ�A�
�A�dZAȩ�A�A�hsAɰ!A�ƨAɰ!A���A��;A�&�A�bAʇ+A���AʶFA�  A��A�  A��mA���Aʉ7A�oAə�A�S�A�~�A�1A�dZA��A�z�A�33A���A��A�K�A�|�AA��;A��`A��A� �A�
-=A�O�A�9XA���A�v�A�p�A�?}A�VA��/A�~�A��A�9XA�~�Aŗ�AŁA�hsAŰ!Ař�A��;A�$�A�=qA�&�A�l�Aƴ9Aƛ�A�oA�XA�A�A�+A�{A���A��`A���AƸRA�C�Aş�A���A���A���A��A�
JA�oA���A���A�
A�VA���A�^5A�t�A�bA��A�t�A��`A��!A�M�A��A�A�A�bA�VA�ȴA�jA���A
A�n�A�+A��RA���A��PA�v�A�`BA�I�A�33A�
�A��A���A�$�A��7A��wA� �A�XA�dZA���A�A�jA���A��hA�z�A�ffA���A��A�Z
A��A�bNA���A�n�A�XA���A��;A���A��9A���A�VA�S�A�=qA�&�A�oA���A�?}A�XA���A��;A�"�A�9XA�~�A�hsA��A���A��A�l�A�VA�A�A���A�bNA�ȴA�Z
A�ffA���A [...]
-A�A���A���A�$�A��A��\A�1'A�jA���A�Q�A��-A�9XA��yA�"�A��A�VA�p�A��A�bA���A�9XA�&�A�{A�
@�bD�1LTT377      F    A3�00:41:46.82-33:39:08.2@$���qR��@�}֕�G   �EN@ EQ` ET� EW� EZ� E]� Ea  Ed  Eg@ Ej` Em� Ep� Es� Ev� Ez  E}  E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  Eɐ E�  Ḛ E�@ E�� E�` E�� EԀ E� Eנ E�0 E�� E�P E�� E�p E�  E� E�  E� E�@ E [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ F
 F
� F
� F` F ( ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-DG�{DU�RDST{DQ� DO!HDIqHD>�fD>D>>�D@��D>S3D=�qD:�\D8��C�j=D��D.��D0�D.�fD-:�D*A�D'Y�D&.D#��D!5�D�D�RD^D@�D�D|�DP�D\D	I�D
N�D\D	��D��D׮D��D�{C��qC��HC�)C�
�C�o\C��C�(�C÷
-C�:�C��)C�HC�FfC�'�C��3C��RC�0�C�Y�C��C�Cʋ�Cȃ�C���C���C���C�K�Cř�C�N������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ F
 ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-Dm�Ds� Dt�=Dq��Dp3�Dp
Dk�HDhvfDl�Dl�{DkQHDh�
-Dg��Dg�
-Dfs3Dc0 Db\D_(RD^XRD]��D];�DX��DX�DU�3DS�)DR"�DPC3DN� DJ�{DG3DH�3DF>�DDDB%�D7RD>:=D>�\D=j=D;�
-D9��D/u�D$�D0�RD/�D.j=D,D(z�Dg
-D��D�{D"ffD!�RD �)D
��D
Y�C�0�C�J=DN�D��D�{D��D�D|�DθD(RD
�3Dy�D��D�D�
-DG
-D��D5�C��C�4{C��RC�O\C��qC��C�c�C�'�C�Q�Cܫ�C̙�CԪ=C�H�C�9�C��C��C���C���C��C��fC���C�<)C��fC���C�<)C�U�C��C��C�Z�C���C��C��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
@ �f��  �EN@ EO@ EP@ EQ@ ER@ ES@ ET@ EU@ EV@ EW@ EX@ EY@ EZ@ E[@ E\@ E]@ E^@ E_@ E`@ Ea@ Eb@ Ec@ Ed@ Ee@ Ef@ Eg@ Eh@ Ei@ Ej@ Ek@ El@ Em@ En@ Eo@ Ep@ Eq@ Er@ Es@ Et@ Eu@ Ev@ Ew@ Ex@ Ey@ Ez@ E{@ E|@ E}@ E~@ E@ E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  [...]
- F
-P F
-� F
-� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F  F P F � F � F! F!P F!� F!� F" F"P F"� ��������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
@I�d I�� I�_�I�w�I�ˀI�2 I���I�- I��I�h IS� I�*@I���I�� I�* I�� I��@I��`I���I��I���I��@I�� I��I�t I�j at I�; I�4�I���I�~�I�� I��`I���I�� I���I�� I��I���I�@I�^�I{��Ih�@I0s at I&@I_ Io�`Iq;�Ip��Io� Im��Ik�Ig�`IdC�Ia��I_� I]��I\� I[ IY��IW�`IV`IS�`IO��IO
 IN' IL"�II��IH\�IF:�ID��IC�`I@��I?�@I>��I=E I;��I9��I7�@I6L I5@I3V�I1� I0
�I.s`I-`I+U at I)��I(p I&�@I%L at I#��I!��I��I
} I
��I"`I��I�@I��I
-�IA I
 Ip`I~�I��I��ID I
�@I
O I
-�@I	N I� I�@I��I��I��I/�IB�I  H�ÀH�
�H���H�P at H�u H�@H��H�рH��H��@H�K at Hz at H޳@H��@H��H���H�= Hډ H��@H׎�H���HԠ�H�ĀH�g at H- at H˴�H�T at H�� H�݀H�6 at H��H�d H���H�$�H��H��@H�o at H���H���H��@H���H�;�H� H�R�H�# H�̀H�N H�P at H���H�S�H�|�H�a at HZ at H�K�H�% H��H�K�H���H�q�H���H�J�H�#�H���H�K H�+�H�� H���H���H��H�[@H���H���H��@H�R�H���H�@H��H�P H��@H�A at H�*�H��H��@H�� H�� H�'@H��@H�@H���H�o H�h�H~� H}z HzR�HU% Gٲ H� H��H4
- HW( HgJ Hl� Hl��Hl�Hj��HfU Hb݀Hf �Hd� Hci�Ha��H` H]^ HZ� HYÀHY HX6 HU€HUM HS� HR
- HPp HO: HN� HM HK��HI��HG HA� H;�H5o�H5c H7^�H9��H/2 H6 H8 H4*�H3$ H3� H3?�H4a�H4/�H3� H2� H2"�H0� H/  H- H-
 H.&�H)�H,
 H*M�H"� H,-�H*� H
� H$� H.��H)� H� H��H*>�H.��H)y H4�H
� H�H, �H-� H+��H"� H
� Hq�H� H#H H&| H%� H!��H$ H�H z G܌ G� Hy Hv H� H|�H�H� H
؀H
��H
q�H
-r�H�G�_ GӋ G�� H� H��G�� GҠ G���G�� G�H G��G�V G�  G�� G�r G�( G̰ G�� G�� G� G�� G�f G�рGʊ GՄ G�, G� Gߝ G�� G�< G�r G�2 G�� G�[ G�= G�N G� G� G�> G� G�X G� G�@ G�j G�� G� G� G�h G�� G�h G�2 G���G�# G�� G� G֡ G�W G�� G� Gݸ G�4 G�� Gܪ G�� Gְ Gۜ G�6 G� G� G�^ G�� G�f G�L G͹ G�� ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-^fE,�E� D�
�D��fD���D�fD��fD��fD���Ex D��fD�s3E
� E^fD���D��3DؖfD��fD�
�D��fD�ٚDٖfD�� D� D���De�3D�� D�` D�0 D��3D���D�� D���D�ٚD�y�D�� D�s3D���D~9�Dv��Don�Dg��D`eDYDS�)DN��DG��D@�RD;C�D6S�D22�D.�HD)ФD#��D
5�D�=DHD
e�C�nC�
)C�T{C��qC���C�� C�ФC���C֡HC��C�
�C�� C�
�C��=C���C�j=C�7
-C�k�C��C�@ C�� C��{C[aHCpEC�^�C��HC��qC�` C��{C��C���C�Z�C���Cx�RCuxRCrG�Cn}qCnB�CnECj^�Ca�C\p�CXG�CS@ CO޸CI� CCu�CB��C>��C0C �RC'O\C
C�
-C

-=C�3C
�B�.B�� B��B۔{Bٳ3B�  B�Q�C�)CaHC��Cs3C�C 
)������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ F
 ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-CsٚCo�
-CmECg��C^�\Cj(�Cj��Cl^�Ci�qCi0�Cg��Cfz�Ce  Cb� CU�)C_\C_��C\��CZ}qCY�CWaHCU5�CT��CT\)CRW
-CP^�CO8RCM�CJ�RCI�{CF�CCxRCA�CA\)C@��C=
)C<�C:
-C7��C5�=C2��C1Y�C.^�C*��C*�3C)8RC'��C%ECp�C!W
-C"Q�C �fC&fC
�C!HC
��CCB�C�
-Cs3C
�{C�3C�RC�)C�RC�HC33C(�C#�B��yB�K�B�L�B�aHB��
-B�
�B�  B�(�B�(�B�8RB�=BٽqBخB��)B�=qB�ffBמ�B�B�B���B�B�#�B�
-=B�{BĈ1B��B�.B�d�B���B��B���B�޸B�u�B�^�B��B�
/B^
PB��Bt��Bz��B}��B�ՁB�/�B�
)B��mB��)B���B�m�B�o�B���B�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-D
-��C��
-C��C��3C��
-C�>�C�  C�
�C�T{C�g�C�+�D��D
�fD
-��D8RD��Dq�D��D
n�D	D��C�'�C���C�%C��
-D(�DW�D
-g
-D˅D�fD�D	,�D��D � D ��D	�D
)D\)D�)D�{D �fD�{D�D�D�{D��C�q�C��qC�o\C�` C���C�<)C��C�C��)C�#�C�+�C��C��)C�EC��C�  C�L�C�{C��C�˅C�{C�o\C�˅C噚C��C��C��=C�9�C�/\C�W
-C��
-C�h�C�ECڽqC�ФC޽qC�S3C�U�C�
�C��C�w
-C�]qC��C�+�C��\C�=C�C�C���C��C��C��HC�8RC�C��C���C��HC�l�C�
�C�ٚD��D 6fC�t{C��C���C�C�Z�C��)C��qC���C�3C���C킏C�&fC�RCݫ�C�aHC�#�C���C�XRC�ǮC�L�C�!HC�C΅C�'�C�{C�XRC�#�C�{C�O\C�ФC��C�o\C�� C���Cִ{CԜ)C�` C�T{CЌ�C�  Cψ�C͂�CȆfC�4{C�
-Cı�C�  Cź�C�3C��)C���C��\C��)C���C��C�o\C��3C�S3C�C��3C�+�C�p�C��C�|)C��C�y�Cͬ�C�P�C��qC�^�C�=qC��=C�ffCګ�C���C�5�C��CَC���C���C�g�C�� C؃�C�b�C�\C�^�C���C��fC�)C�=Cޏ\C�G�C�)C�q�C�  C���C���C�=qC�!HC���C�B�C۵�C�C��C�
�C��C��3C�'�C��C�eC��3C�H�C�'�C�� C��fC�W
-C���C���C�  C�33C�xRC�K�CК�C�fCЎC�=qC�{C���C�j=C�K�CӀ C�
�C�AHC�<)C�0�C��fCÝqC�#�Cª=CŽC�(�C�C�fCNj�C�nC�C�  C�  C��C��fC�%C��)C˱�C�!HC��C�+�C��C�&fCĎCƠ C�l�C���C�#�C�nC�#�C�^�C��fC�XRC��fC��C��HC�z�C�z�C���C�y�C�C�c�C���C�j=C�\)C�@ C�}qC�b�C�'�C�  Cï\C�ǮC��
-C���C�
)C�w
-C��C�:�C�J=C���C�EC�=qC��C�xRC�U�C�{C���C�� C�0�C�k�C�Q�C���C��=C�~�C�*=C���C�S3C��C�=qC��qC��qC�
�C��{C��RC��)C�K�C���C�~�C�` C��C�C��C�{C��qC�l�C��C��
-C�T{C��C���C�,�C�ffC��C���C�NC���C��fC��qC��\C�o\C�NC�O\C���C�g�C��fC���C��fC��RC��C�=qC��
-C�1�C�RC���C���C���C��C��fC�Q�C�` C�s3C�<)C�33C���C�^�C�c�C���C�� C�#�C��{C���C���C�g�C�1�C�
-=C��=C���C�'�C�"�C�t{C�AHC��C���C��C�s3C�3C���C�1�C��C��C�` C���C���C���C��{C��C��RC�ٚC�AHC���C���C�t{C�(�C��C���C���C�(�C��HC�}qC�<)C���C�g�C�^�C�W
-C�W
-C���C��{C�!HC��RC�
-C���C�AHC�
-=C���C��C��\C�G�C��C�T{C��
-C�'�C��C���C���C�C���C�#�C�C��C�
�C��C�b�C��C��RC�y�C�b�C���C�(�C��C�g�C�0�C�9�C�l�C�W
-C��C��C�RC�  C�33C�
qC��C���C�K�C�~�C�  C��C���C���C��=C��\C�0�C��3C�fC�:�C��
-C��HC�!HC�Q�C��
-C��HC�
�C��fC��=C��)C�` C���C���C�|)C�g�C�S3C��C���C�
-=C�j=C���C��C���C�1�C��C���C�\)C�
�C�C��C��)C��
-C��3C��3C�~�C�^�C���C�+�C�� C��C�aHC�5�C�P�C�!HC��\C��C���C�33C�eC���C�.C�ǮC��{C�EC���C��{C�� C��HC��C�g�C���C�AHC��C��HC��HC��C�� C�\C��RC��C���C�~�C�W
-C�0�C�s3C�t{C��C��C�W
-C���C�Q�C��{C�
)C�nC�Z�C���C�G�C��fC�h�C�O\C�Y�C��C��3C�@ C��C�z�C�K�C�\)C���C�  C��C�C�|)C�h�C��RC�&fC���C�FfC��
-C��=C��C�� C���C�XRC�K�C�  C���C�~�C��C�0�C�8RC���C��\C�|)C���C�� C��\C�  C���C��3C�>�C�˅C���C�G�C��
-C�#�C���C��qC���C�y�C�g�C���C��C���C�� C��C�=qC�*=C��RC�eC�S3C��HC�.C��)C�j=C�:�C��=C��RC�h�C�w
-C��C�7
-C�ffC���C�\)C�ffC��C��HC���C�^�C���C�XRC�FfC��{C��C���C�� C�nC�
qC���C���C�'�C��C��C�P�C�>�C�,�C��qC���C��RC��fC��{C�eC��C�}qC�k�C���C�ǮC�{C���C��C�` C�NC�
)C�j=C��RC��fC�u�C��fC��RC�ǮC���C���C��3C��HC��\C���C��=C��RC�h�C��C��=C�
�C���C�aHC�3C��C���C��C���C��C}��C}
-C|� C|�{C}+�C}
-=C}aHC|Q�C{�Cz��C|ffC}�fC~�3C�qC�)C��C~�fC}!HC|�=C{�3C|G�C|&fC|}qC}\C|:�Cz�CxJ=Cy{Cy�fCy��Cz��Cy��Cxu�Cwk�Cv�
-Cv��Cw� Cw^�Cu5�Cr�
-Cr��Cr�
-Cs�
-Ct�
-CsW
-Cq��CpnCo�)Cn��Cl�qClnCl� Cm�Cm+�Cm
�Ck�
-Cj5�Cj�Ckz�Ck��Cl
�Cl�fCmh�CnaHCo��Cp�=CqǮCrǮCs�CsnCsO\Cs�HCs��Cr�Cr��Cs&fCs@ Cr�fCrǮCr5�Cr
-Cq��Cp�qCo��Cn��Cm��Cm�
-Cm�RCm��Cn\)CoW
-Cp�CoCn��Co��CpJ=Co��Co�)Co}qCpB�Cp��Cq��Cqs3Cp��CpQ�Co�=Cn�=Cl��Ck@ Ck��Cl�=Clk�ClO\Cl��Cm(�Cmz�Cl��Cl(�Ck��Cjh�CjJ=Cj�)Cj\Ci�CiffCh5�Cgu�Cg��Cg޸Cg� Cg  Cg�Cf��Ch\)Ci
)Ch�qChs3CgECf
-Ce!HCeCd��Cd�=Ce�Cd�qCd�HCc��Cb#�Cb=qCb��CbٚCb�qCa�=C`�fC_�C^��C^B�C]!HC[��C[
-CZ�{CY޸CYCX�)CX&fCW@ CV(�CUu�CU�3CUٚCU�qCU=qCS�CR��CR��CSٚCS� CR��CR��CRٚCR� CRB�CQ�CQ
-CP��CP
�CPCPL�CQ(�CQp�CRO\CR�
-CSu�CS� CSB�CS(�CR��CR^�CQ�HCQc�CQJ=CQ�{CR
�CSO\CS��CS}qCSc�CR�fCR��CSxRCS��CS�)CS+�CR�CR�{CR�)CSW
-CS�HCS�CTffCT��CT��CT�HCTǮCT��CT��CT��CUY�CU��CV!HCVCT�CTp�CU
�CV�CT�CT�CTQ�CT�)CT��CTh�CT� CT�=CU��CU��CVٚCV&fCV
�CU�3CVp�CVT{CV�HCV�CV�CVQ�CV�)CV��CW  CV�fCW0�CW
-CV��CV}qCU�=CUL�CU�
-CVxRCV�CVECV+�CW
�CWY�CW��CW�=CV��CU��CT��CS��CTECTCT��CS�RCSz�CSaHCSG�CSCT
�CS�3CSB�CS\)CS�fCS��CS\CSY�CT�CT��CU33CU�CU�{CUz�CUaHCUG�CT�
-CT�CS�CR&fCQxRCP�qCP��CQ+�CQECP�
-CO�=CO\CN�{CN�)CNCN��CN0�CN
-CN� CO:�CO!HCO�COQ�CO8RCN�qCN��CM��CM
�CLu�CL^�CK��CJ�)CJc�CJL�CI�{CJ
)CJc�CI�CI�{CI+�CH��CH��CH&fCH\CF�CF�
-CF}qCFffCECE��CDٚCCٚCCCD�CC�CCٚCCffCB�CB�CB�
-CB}qCB
�CA=qC@��C?�fC?33C>C=��C<}qC;0�C9�fC8��C8�=C7�C7�)C7�C7Y�C6�C6��C6�
-C5�{C4��C4}qC4{C3�{C3� C3T{C3@ C3� C2� C2.C1�C1\)C0�=C0��C/�RC/
-C.33C-Q�C,!HC+h�C*��C)^�C(5�C&�
-C$�{C#��C"k�C!� C �C h�CC
5�C
�\C
C
h�C
�C
J=C
5�C
ٚC
�HC
�\C
�C
nC
��CO\CaHC�fC EC �=C!�fC#+�C#�3C#ǮC$C%� C&p�C&��C'5�C'�
-C(J=C(5�C(s3C)&fC*z�C*��C*Q�C*�\C*�3C+� C+�fC,�)C,��C+��C,aHC,��C,�=C,ǮC-.C-�C-��C.aHC.��C.8RC-��C.\C.ǮC/�C/� C0  C0h�C0T{C/C/�C0{C0  C0@ C0+�C0�fC1&fC1ffC1��C0��C0C/�)C/�)C0B�C0.C0nC0��C0�
-C1  C1@ C1}qC1�fC1� C1@ C0ٚC0�C1�C1k�C1��C1B�C1.C1�C0�3C0��C0aHC0u�C1�C0�3C0�=C0�=C133C1�C20�C2
)C1��C1!HC0�\C0(�C0{C0  C0=qC0T{C0��C0��C0�qC0��C1�C0� C0�C/��C/s3C/aHC/L�C/8RC/��C/�=C/xRC/��C0
�C0
-=C/z�C.� C.��C.p�C-�RC-(�C-=qC-z�C-h�C-T{C-@ C-}qC-�qC-W
-C-B�C,޸C,O\C,=qC,Q�C,=qC,�C+�C+ٚC+ǮC+aHC+O\C*�C*�
-C*C+  C*�C*ٚC*�C*�3C*��C*��C*(�C)�C)�=C)&fC){C(��C(&fC(�=C)
-C)�C(�C(��C(+�C(
-C(C'�C(.C(��C(�\C)
-=C(�RC(��C(��C(nC(\)C'��C'� C(#�C(^�C'��C&�
-C&  C%��C%
-C%C$�C%T{C%�)C&@ C&z�C&�C%��C%� C%nC%�\C%�qC%��C%�
-C$C$aHC#�)C$=qC$+�C$�C#��C#� C#nC#\)C"�qC"�)C"c�C"Q�C"ffC"�HC"�\C"0�C!��C!L�C �=C �RC Y�C G�C 5�CٚCǮC��C��C (�C :�C u�C �C Q�C�\C
�)C
\C
��C
33C
!HC
�C
�3C
�HC
�\C
�=C
�C
�C
޸C
=qC
+�C
c�C
�)C
�=C
��C
c�C

-=C�C�fC

�C�Ch�C�HC��C5�C#�C�fC�C�C(�C�CQ�C�C.C�{CC��C��CEC5�C#�C^�CC�\CxRCffC�)C�RC��C�
-C\Ch�C�HCEC}qCk�C\)C�C:�C+�C�C
-=C�RC��C�
-C\Ch�C��CEC5�C�RC^�CC�3C��C��CCEC5�C#�C��Cs3Cc�C��C�\Cs3C
-CC�CxRCh�CCB�CW
-C!HC� C�qCc�CT{CB�C33Cp�C�fC�
-C@ C��CǮC��C0�C�C�C��C�fC\)C��C:�Cz�CO\C�
-C��C�fC��CxRC��CxRCc�C	\C
B�C��C��C�RC�
-CxRCY�C��C&fC\)C�
-C.C��CG�C�fCaHCB�C
�HC

)C
z�C
T{C
-��C
-�{C
-5�C
-�C	��C
-
�C	^�C!HC�C(�CnCu�C�qCc�Cp�C�RCEC �B�� B���B���B�p�B���B���B�� B�RB��B�33B��fB�(�B�p�B�qB�
-=B�ǮB�
�B�u�B�8RB�  B���B�ǮB�.B�  B���B�u�B�L�B���B�G�B垸B�W
-B�L�B�
-=B� B�qB�33B�p�B�
�B�{B���B�G�B�=B�ǮB�=qB��B�ffB��B��fB�\)B�B�{B��HB�u�B�G�B�{B��B�\)B�G�B�B�p�B�3B�.B�k�B�8RB�B��
-B��B�p�B�=qB�
-=B��
-B��B�u�B�3B���B�B�=qB� B��)B��B�B�B�ffB�B�{B�aHB�.B�  B�=qB�G�B�B�W
-B�#�B���B�B�\B�aHB�.B�\B�#�B���B�Q�B�3B��)B�=qBꞸB�ǮB�.B�\B�aHB�=B�\)B�.B�  B���B�G�B�{B��fB�{B��fB�L�B�
�B��B�W
-B�(�B�B�{B���B�ffBᙚB�k�B���B��B��HB�3B�B�\)B�.B�  B�k�B���Bި�B�z�Bݳ3B݅B��B�\)Bܙ�B�k�Bܨ�B�z�B��fB�Q�B�(�B�aHB���B�=qB�{B��fBؽqB؏\B�ffB�8RB�u�B��fB֊=B�.B���B�p�B�{BԸRB�\)B�  Bӣ�B�z�B�
�B�B�ffB�\Bѳ3B�W
-B���BУ�B�G�B��Bϔ{B�
-=BήB�W
-B���Bͣ�B�L�B�B�8RB�\Bˊ=B�  Bʨ�B�#�B���B���BɮBɅB�  B��
-B�Q�B��^B��uB�NVB�'mBƢ�B�{�B��7B�EB��
Bě�B��B�ĜB�B�B�
)B��FB�,B�%B�jB�D�B�
�B�oB�I7B��1B�G+B��9B�t9B��9B�G�B�"NB��TB�~wB� �B�ۦB�]/B�
JB���B�hB�hsB��B�p!B�LJB�(sB��B���B���B��B��PB��yB�.�B�
-�B��mB��B�
�B���B���B�+B���B��B�s3B�O�B�-B�
-=B�oB��B��PB�}B��B���B��B��FB��yB��+B�d�B�B�B��JB��B��1B�ffB�D�B�"�B�B��;B�iyB�H1B��yB�4�B�uB��B�}�B�\�B��}B�LJB�+�B���B��B�wLB�ۦB���B���B�y�B�Y�B�8�B��B��RB��B���B��
-B�&fB���B�m�B���B��/B�m�B���B��5B���B�'mB�1B���B�z^B�[#B�;�B��fB��+B��B���B���B�n�B�O�B�1'B�oB�~�B�`BB�A�B��B��LB�K�B�-�B���B���B���B��VB�p!B�Q�B��mB��7B���B��PB�o�B�Q�B���B��=B���B�CB��}B��NB�ĜB�[�B�>wB��B�nB�+�B�VB���B��=B�"�B��B���B��JB��B��oB�u�B�YB�<jB��B�B��fB��=B�?}B��
B��qB�X�B�<jB��3B��
-B�2�B�
-B���B�޸B��B��mB��DB�'mB��sB��B�!�B��B���B�e`B�I�B���B��JB�kB�O�B��B��uB���B�49B��uB���B��5B�#B� �B���B��%B�lB�QhB�6�B�
�B��qB��TB���B��B��B��\B�\B���B�S�B���B��dB���B��1B�+�B��B��RB�޸B��B��B��oB�yXB�
/B��B��B��hB��RB���B�"�B�	�B��B�׍B�|�B�c�B�	7B��VB�u�B�]/B�D�B�,B��B�\)B�C�B�+B��'B���B�?}B��fB���B���B��/B��B�mB�T�B�<jB�ĜB���B��{B�|jB�dZB�LJB��B��/B�e�B�NVB�6�B�
�B�+B���B��B���B�+B�uB���B���B��PB�wLB�`BB�)yB�oB���B���B���B�w�B�`�B�I�B��B��5B��+B�S�B�<�B�&fB��oB��d [...]
PB���B��BB��=B���B�B
B�;B�-B
PB~�HB~x�B~L�B~ �B}|�B}P�B|�B|
-=B{��B{w�Bz�Bz��Bz~�By�/By�-Bx�
-Bx�Bx
DBwk�Bv�oBvgmBv=qBvoBu�sBu�qBu�uBuiyBt��Bt.BtBs�
Bs�Bs�Bs\)Bs��Bsz�BsP�Bs&�Br�DBraHBq�JBqcTBq9XBqbBp�mBp�qBp�{Bpk�Bo��Bo��Bo~�Bn�`Bn�jBn[#Bn2-Bn
-=Bmq�BmH�Bm�Bl��Bl��Bl��Bl~�BlVBl.Bl%Bk�/Bk�?Bk�PBke`Bk=qBj��Bj~�Bi�'Bi�7Bh�Bh��Bh��Bh}�Bg�yBg��Bg��Bgs�Bf�;Bf�RBfZ
Bf33Bf
JBey�BeR�Be,Bd��Bdr�Bc�Bc�Bb�Bb��Bb<jBb�Ba�Ba)�BaB`�5B`N�B`(�B`B_t�B_�B^�B_B^�5B^�XB^�uB^n�B^I�B]�B]��B]��B]�B\�B\��B\A�B\
�B[�bB[7LBZ�BZ�+BZcTBZ>wBZ�BZ\)BZ8RBZuBY�BY��BY@�BX�FBW��BW��BXJ�BX&�BWiyBWE�BW!�BV��BVhBU�BU33BU\BT�BTdZBTA�BT
�BS��BSt�BR�jBR6FBRuBQ�BQk�BQ�BP�BP��BPM�BP+BP	7BO�fBOĜBO��BO� BO^5BN�
BN�RBN��BNuBM�BM��BM|�BL��BL�BLW
-BL5?BK�BKBJ�HBJ��BJ��BJ}�BJ]/BJ;dBI�dBI
JBH�JBG�5BG_;BF�BF49BE�LBE9XBE�BD��BD|�BD�XBD��BDx�BDYBD��BDu�BDVBC�BC�XBC��BCy�BCZ
BC:^BC�BCXBB�)BB�jBB��BB|�BB^5BB>wBB
�BB  BA�BBAe`BA�B@��B@$�B@%B?_;B?@�B?!�B?B>�ZB>ŢB>��B>�1B>iyB=�B=��B=Z
B=<jB=
�B<y�B<\)B<=qB<
�B<B;�TB;l�B;M�B:�B:�^B:��B:R�B:49B:�B9��B9�B9ffB8�B8{�B833B7�}B7��B7.B6�^B6r�B6VB5�TB5ŢB5��B5�JB5o�B5Q�B4�BB4ÖB4��B4
-=B3�B3|�B3
DB2p�B2  B1ffB0��B049B/��B/-B.C�B-�B-?}B,�
B+�B+� B*�B*��B*e`B)��B)�BB)ĜB)��B)�\B)t�B)Z
B(ǮB(VB'|�B&ŢB%q�B$G�B#�B"l�B!G�B %�BO�B
{�B
��B
��B
s�BȴB��B�NB{BB�B�;B�BP�BF�B��Bz�Bt�Bp�B+B
+B
-B
1'B
-6FB	}�BƨB1'B\)B�+B��B	>wB	��B
-��B
�B
��B
p�B�1B�B�BȴB]/B�Be`B��B�oB+B��B7LB��B�PB'�BÖB_;B�\B�TB\)B�'B+B[#B�'B�NB8RBiyB��B�B�B��B;dB"�B
DB�B�#BÖB�B
B�yBdZBq�B��B�=B�jB��BC�B+BuB��B��B�Bl�BT�B�B$�B
PB��B&�B\B��B�BBɺB�-BQ�B�B��B�sB��B�XB��BC�B�ZB��B�FB��B�1Bp�BZ
BC�B,B�B��B�mB��B�XB��B�JBu�B^5BG�B1'B�BB�B�B�}B?}B(�B��B�?B��BB�Br�B\)BE�Bu�B_;BH�B2-B
�B��BdZBN�B8RB�^B��B�VB33B�B��B�=Bt�B�BB�B�B1B��B��B�BJ�B5?B��B�sB�'By�BdZB-B��B�HB��B�{B^5B&�BoB
�#B
��B
�\B
YB
"�B
VB
�B
��B
k�B
W
-B
 �B
�B
�
-B
��B
k�B
6FB
B
-�B
-�FB
-�
B
-L�B
-8RB
-B	��B	��B	dZB	O�B	�B�mB�-B}�BI�B�B
B��B[#BG�Bs�B_;B�B��BB�B�#BƨB�3B`BBK�B��B�+B��B�B�B�B2-B�B
JB��B�`B��BcTBO�B=qB)�B�
BƨB�9B�5B��B�
-BB�B�#B%B�B;dB(�B�B@�B�B�/B��B�LBH�B6FB#�B ��B ��B S�B A�A��TA�E�A� �A���A�`BA���A��A��A�C�A���A�r�A�ƨA���A�|�A��;A�C�A���A�G�A��A��7A�dZA�?}A��A���A�I�A��!A��DA��A���A���A���A�;dA��A�~�A�\)A�9XA�ffA�C�A� �A��7A�ffA�C�A�
�A���A�ffA�
-=A��mA�Q�A�jA��A��mA��A��A�jA�33A���A�ĜA�Z
A�&�A�dZA��
-A�I�A�(�A�1A��mA�ƨA�oA�^5A��;A�+A�v�A�ffA�VA�G�A��A�dZA�ȴA��A�+A�dZA���A�C�A�"�A�~�A�K�A��A�
�A�\)A���A�
JA�A���A��
-A�FA╁A�v�A�FAᕁA�
JA�A�\)A�;dA޲-A�^5A�?}A� �Aݙ�A��HA���A�A�A�(�A�r�A�Z
A�;dA�A�ffA�E�A߼jA�  A�v�A�XA���Aݲ-A���A��
-A�O�A�1'A�v�A�XA�l�A۶FAۗ�A��;A���A�?}A܇+A���A�M�Aݗ�A��HA�Aݣ�A݅A�ffA��;A�XA�9XA�~�A���A��#A�VA�7LA��A�`BA��#A�$�A�9XA؁A�dZA�E�A�&�A�
-=A��A���Aװ!A���A�r�Aغ^A�
A��`A�ƨAا�A�$�Aס�A׃A���A��`AՕ�A�x�A�Z
A�=qA� �A�
A��`A�dZA��TA�ĜA�
JA��A���A��A���A��/A���Aӣ�A�"�Aҡ�A�"�A���AѸRA�7LA��A���A��HA�ĜAЧ�AЋDA�n�A�S�AЙ�A�|�A�`BA��HA�ĜA�E�A�+A�VA��A���AθRA�
-=A��A�p�A���A��A�-A�bA̅A�hsA�M�A�1'A��A���A��;A�33A��A���A��;A�ĜA�I�A���Aɴ9Aȩ�A�
A�
AȸRAț�A�Q�A�1A��Aǡ�ALJ+A�=qA�"�A��AƾwA�t�A�Z
A�bA���AŬAőhA�G�A�-A��TAě�AāA�7LA�
�A���Aú^A�r�A�XA�=qA���A��#A“uA�x�A�1'A��A���A��9A�l�A�S�A�
JA��A���A��hA�I�A�/A��A���A��FA�n�A�S�A�VA���A��A���A�z�A�5?A��A���A��jA�v�A�\)A�C�A���A��`A���A��A�l�A�&�A�VA�ȴA��PA�t�A��
-A�dZA��A��#A��A�Z
A��mA�v�A��#A�jA�x�A��-A��A��A���A���A�hsA���A��PA�t�A�\)A�E�A�-A�{A���A��TA�"�A�
-=A��A�A��A���A��\A�x�A�1'A�n�A��A�jA�Q�A�9XA���A��TA�v�A��9A��A��A�?}A�|�A��^A���A��DA��A��#A�A�  A��uA���A�=qA���A�=qA���A�?}A���A�A�A�+A�=qA�x�A��9A���A��A�p�A�%A�t�A�^5A�E�A�/A�A�A�|�A��RA���A��DA�t�A��^A��A���A�ĜA�^5A�~�A�hsA�S�A��PA��A�(�A��#A�ĜA��!A���A��A���A��\A�x�A�oA��A� �A��uA�/A���A�ffA�Q�A�{A��!A�M�A�7LA��wA�l�A���A�VA��FA�?}A��DA�  A���A���A�5?A�
�A�
-=A�~�A��A��\A��;A�S�A�?}A��/A�ȴA��9A���A��7A�t�A��A���A��A� �A�
JA���A��HA���A�jA�VA��A�n�A�
JA���A��TA�^5A��-A���A��A��^A���A��#A�ƨA�"�A�bA���A��mA�bNA�A���A��#A�oA�l�A�Z
A��\A�ƨA��-A���A��7A�t�A��A��RA�5?A��
-A�S�A�A�A�-A��A�r�A���A�A��A��/A�ȴA���A��mA��
-A�VA��-A��A��DA���A�bNA�M�A�;dA�&�A�\)A��hA�|�A�jA�VA�C�A��mA��PA�VA��-A�XA��uA��A��jA�dZA��mA��PA�5?A��/A�bNA�
-=A���A�9XA��HA���A��jA���A���A�
�A�ȴA�r�A�`BA�M�A�;dA�n�A�%A��A��HA�jA�XA�E�A�33A� �A�VA���A��A�?}A�p�A���A���A��`A��A�%A��A�&�A���A�x�A�ffA�hsA��A��A�;dA�bNA��A�?}A���A��7A�ƨA���A�A�l�A��A�Z
A���A���A���A���A��+A��RA�dZA�bA��;A���A�
�A�O�A�=qA�-A��A�ȴA��FA�dZA��uA�ĜA�XA�%A��hA���A��A�^5A��PA��;A�r�A���A��uA�?}A��7A��A�ffA�VA�E�A��\A��#A�I�A�x�A���A��RA��yA�Z
A�jA��#A�-A�
�A�
-=A���A��yA�5?A��HA�p�A�^5A�M�A���A��A�z�A�(�A�Z
A���A��A�1A�Z
A�G�A�x�A�hsA��RA���A���A�ƨA�t�A�A�bA�`BA��hA��TA�r�A�$�A���A�C�A��hA�
�A�M�A�|�A��A���A�
JA��jA�M�A���A�{A�A��A��`A�oA�A�A��\A�~�A�n�A�^5A�M�A�=qA�/A���A�r�A�$�A�{A�%A���A��`A�{A�A�A��\A�~�A��A��#A��PA�?}A�/A��A�9XA��\A��jA�
-=A�7LA�&�A��A�E�A��jA�O�A���A�\)A�bA�7A�TAƨA�bA�=qA�K�A�x�A�  A�/A��RA��`A���A�ƨA��FA�jA���A��-A���A�XA�#A~��A}��A|�!A{��Az^5Ay��Ay�Ay�PAyp�AyS�Ay7LAy�Ax��AyO�Ay33Ax��Ax�AxffAx�jAy�Ay��Az  Ay�TAyAy��Ay�7Ax��Ax(�Aw��Aw%Av�`AvȴAv�Av�\Avr�AvVAv9XAul�AuO�As��ArbNAp�AqG�Aq��Aq�Ar~�Ar��As�
-As�^As��As�Ar�Ar��Ar
JAq|�ApE�Ao�FAo��Ao�Ao��Ao�FAo+AoVAnI�Am�wAm33Aln�AlQ�Al5?Ak��Ak
�Ak%Aj�yAj��Ak
�Akt�Al  AlQ�Al�/Am��Am��Am�#Aln�Ak;dAj
JAhr�Af�Ae�Af  Af�Af�Ag��Ai33Ai�AihsAiO�AhĜAh=qAgVAf�+Af5?Ae�Ae&�Ac��AbA`�HA`Z
A`A�A`�uAb��Ae��Ah�Aj�Al �Am�PAlȴAl=qAk�FAj�AiS�Ah^5Ah
JAg�AghsAf=qAd��Ac�AchsAb�HAbȴAa��A`{A_&�A^r�A^VA^�A^��A_VA_��A`�RAbbAc��Ad^5Ad�`Ae7LAd�!Ac
�Aa��Aat�Ab1'Ab�RAc%Ac��AdI�Ae?}Af1'Ag��Af��Ad��Ac?}AaoA_�A\��AZ��AX$�AUG�AS��AT~�AT��AU�AW+AX�AY [...]
-=AH�AHz�AH5?AFv�AE�AC7LAB
JAAoA?�wA?��A?�hA?|�A>�HA>n�A>  A?&�A at M�AAt�AD=qAG?}AJ�AKS�AK?}AK�FAL  AL�AM�-AM��AM�mAM��ALffAJn�AHM�AFAD
�ABffAAl�AAXAA��AA+A@^5A?A?O�A>Z
A=�A=�
-A>r�A?��A?+A=�A;�A:
JA8ĜA7�A6�uA6(�A5��A6  A7�A:A�A<bA<~�A=�A=�PA<��A;��A:�HA9�A8��A8=qA7��A6�`A6��A7oA7S�A7��A7�A7�A6�A6{A5S�A4jA5+A6E�A6�/A6�A733A7
�A7�FA8$�A8ffA7"�A5�PA4M�A4�\A4��A5�mA6Q�A6�yA7XA7C�A7/A6ĜA6�A5A5XA4ĜA3�#A3
�A2�DA2$�A1�wA1+A0ĜA0^5A0I�A0�+A0v�A0�9A0M�A09XA/��A/C�A.�/A/��A1��A41A5�A.Y�
v�SA95-42     DA   Ay03:53:43.67-00:04:33.0 at M7Ji!s_?�i�6�j  �EH  EH EH  EH0 EH@ EHP EH` EHp EH� EH� EH� EH� EH� EH� EH� EH� EI  EI EI  EI0 EI@ EIP EI` EIp EI� EI� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-B�L�B�3B�B�ǮB�B�\B���B�\)B�\B�
-=B��
-B���B�
�B�ǮB�B�{B�z�B�8RB��B�Bޞ�B�p�B�G�Bܔ{B�\B��fB�B�B܀ Bي=Bգ�B��HB��B���B�z�B�  B�=qB�ǮB��HB�z�Bϳ3B�G�B�{Bۀ B�.Bϣ�B���B���B�Bӏ\B�
-=B��HB�B�L�B���B�z�BЊ=B��
-B�Q�B��B��B��B�=qB�k�B�\)B�=qBͽqBˏ\Bų�B�'�B�	�B��bB�"NB�Q�B�{B��Bг3BΨ�B͔{B�{B�B�BȊ=B� �B��B�u�Bң�B�8RB�k�B�W
-B�(�B�.BDz�B�+B��uBȞ�B�
-=B��)B�\B�\B�=qB�#�B��Bϊ=B�Q�B���B�(�BϞ�B�p�B�
-=Bˣ�Bɨ�B�߾BȮB��)B��B�\)B�=qB�
�B�B�Bƍ�B���BØ�B�z�B�]/B��7B��B�G+B�ffB��1BªB��B��B��{B�
B��B��B�9�B�
/B��DB��B¥�B��RB�;B�^5B�XB›�B���B� �B� BB�ǮB�P�B��\B�QhB��
-BùXBÜ)B�~wB��BB��B�B�K�B�M�B�
B� �B��HB�l�B��B���B���B�1'B�߾B�
PB���B�y�B�ڠB��5B�\)B�ffB�$ZB�o�B��7B�{B�s�B�#TB���B�bNB��B��
B���B���B���B�ǮB��HB�,B���B�~wB���B��B�B��'B�s3B��wB��B�|�B���B��
B�� B�B�z^B��B�6FB���B��B�� B��dB��B��B��jB���B���B�
B��B��wB��?B��#B��!B���B���B��dB�QhB�B�uB�=qB���B��XB��7B���B�PbB��?B�ǮB�)yB�#TB��B���B��
-B��
-B�ؓB�ۦB���B�ݲB�	7B�xRB�\B��wB�E�B�T�B�s�B�Z�B��B�[#B�(sB��LB�F�B��B��RB��VB���B��oB�yXB��'B��B��FB��B��\B���B�ƨB�`�B��uB��dB�)yB�s3B�5�B��B�(sB��B�4�B�
DB��`B�a�B���B��uB�z�B�O\B�%�B�� B���B�dZB��B��B��B�0�B���B��3B���B��^B��
-B�VB�:�B��VB�+B��!B�ٚB�B��sB���B�1'B��B��B�� B��
-B��B��B��TB�B�B���B��
B��B��#B�W
-B���B���B���B��wB��5B��1B�)yB��B��jB�.�B���B�L�B��B�"NB�w�B��yB���B�6�B�h�B��
B��1B�n�B�W
-B���B�1�B���B��}B�49B��uB�6FB��B��hB�{dB��oB��jB��B���B�ƨB���B��#B�;B��B�B��fB��7B�
�B�PbB��B��5B���B��TB�ڠB�
-B�,�B��B�
B���B��B��B�M�B�t�B�bB��9B�X�B���B���B��1B�n�B���B�7LB�"NB�
�B��hB�G+B���B�bNB���B��`B���B�e�B�dZB��XB��\B�i�B��B��B��sB���B�� B��B�ۦB��+B�]�B���B���B���B�9�B�%�B���B��JB�7�B��%B���B�D�B���B��1B�]/B�+B���B�9�B��ZB���B�{dB�g�B��B�ĜB��'B�B�B�Z
B�Q�B��B�mB��B��5B�B�K�B���B�
�B���B���B��B�
JB��B��NB��B��)B�I�B��
-B�E�B���B���B�1�B���B�'�B��B���B�
�B���B��sB��RB���B���B�gmB�oB���B���B�v�B�d�B�uB�d�B�RoB�#B���B���B�f�B�
5B��LB���B�xRB�[#B�^�B�d�B�-�B��RB�B�q'B��wB��B�
/B�&�B��oB��HB�ՁB��B���B��B��B�k�B��;B��ZB�
�B���B�5B���B�ܬB�cTB���B�|�B�.�B�H1B~�JB|ƨB{By��B{�sB}gmB��B�	�B��RB���BhBz��By�!Bz>wBz�uB{��B|dZB{��B{2-Bz_;ByǮBy��By�Bv��Br�mBrƨBt�Bv
�Bw �Bws�BwQ�Bw1'Bw\Bvy�Bv��Bv�Bx!�By��Byy�Bxm�BxK�By�By.Bx\)BwŢBw0!Bv`BBu
�Bt�Bs�Bs'�Bt��Bv�jBw�Bw��BwA�Bv7LBv�Bw�PBx�bBwJ�Bvz�Bv�uBv�mBvŢBv��Bu�Bt��Bs�PBrN�BqI�Bp~�Bo�Bq��Bsu�BsȴBt�Bq��BpH�Bo~�Bn�Bo>wBoȴBp�DBq��BsiyBs�
Bs��Bt&�Bt�3Bt�oBsŢBu9XBv�Bv�BtcTBs��Bs�!Bs�\BtT�Bt�HBt��Bt��BrB�Bp"�Bq�bBs  Br�;BrL�Br-Br
PBqB�Bp+Bn�{Bn<jBn
�Bo�1Bp�Bo�BnG�BmbBkk�Bj�/Bj�Bi�DBhǮBg��Bf2-Bd��BbcTB_ȴBa�qBc� Bb�JB_�B_5?B_�FB`k�Ba��BcO�Bd1Bd��Bf��BhŢBi�XBi��Bi{�Bh�XBh��Bi �Bio�BiQ�Bi33Bh��Bgv�BgXBf��Bg�BgjBh��Bj.BjF�Bj'�Bjw�BjYBi��Bi	7Bh�Biq�Bj��Bi��Bh�;Bi��BjɺBj�Bix�Bh~�BgN�Bf�PBe��Bd�
-BbjB`�BcBeBdB�BcM�Bb�\Bb1B_�B\�/BY�BV��BT�PBU��BW�BU5?BSXBS<jBS �BR
PBP��BO&�BN�BL�BK��BJ7LBI�qBHXBC�B>A�B@��BB�BC
�BC_;BD�fBF��BF�BD=qBC=qBF8RBH�'BH9XBG49BHBI7LBJjBK��BK�`BK
DBKP�BL�mBN�-BQ��BTx�BU�qBWhsBY�BZ��B[�'B\��B]�B\��B]�!B_B`XB`�Ba&�B`��B`�B`��B`�9Ba6FBa�Ba��BbS�Bb��Bc�hBcs�BcW
-Bc:^Bc�Bc�
-BbC�B`�-Ba49Bb�PBb�#Bb�wBb��Bb�BbgmBa@�Ba#�Bc
�Bdw�Bb�TBa�dBa49Ba�B`��B`�;Ba��Bb�Bc�5BdcTBd�-BeBd�ZBcN�BaQ�B_$�B]1'B]}�B]��B\�/B[VBZ��B\�=B]�#B`6FBa��B`��B_w�B^�qB]��B[�BY��BY
DBX�7BX��BY�BX7LBUXBSH�BU�+BW��BW�BV��BS'�BO�{BM33BKgmBK
�BK�BK�BG�
BD��BC��BBz�B@��B>�B;�B7��B6�`B7��B7VB5t�B433B2v�B0�mB/2-B-��B*�hB'�+B(�+B*Q�B)�B(p�B(33B)5?B)�mB)��B*�%B-ĜB1uB1��B2
JB4p�B7]/B9��B;��B<�}B=.B=��B?r�B@�BC  BEoBC�?BB�LBC(�BCȴBD�BG
JBG�;BH$�BH��BG�BG{�BGcTBGJ�BJ&�BL�/BM�%BMl�BL�BLH�B [...]
-=BM�3BM��BNs�BNZ
BN@�BO�BP�^BQ��BQ�BPm�BQ�BR�DBQ�BO��BP�
BQ��BQ��BP��BP�BP
BPJ�BP1'BP�BO��BO�`BP��BQl�BP�BO�HBOȴBO�BP�DBQgmBR{BQ5?BP$�BO�BN;dBN�BNjBM�BL�ZBM�qBO[#BO��BNƨBM�^BM��BM�yBM��BM�RBM=qBM$�BM
JBL�BLy�BK��BL��BN�BPuBP\)BP�
-BP�qBPbBM�;BK�BKɺBLhBK��BJ�hBJ�BJ�BK6FBIp�BHk�BI@�BI�+BH"�BF��BGffBHƨBH �BF�}BF��BGz�BHM�BH6FBH
�BF�VBE0!BE��BE�JBF�dBG�VBG��BH�BGE�BDr�BC��BDq�BEp�BB��B@��BA�BC�BB��BB�fBA�B@�{B?�B at ffB@N�B?�!B>�`B=�B<��B<�1B<�B<[#B="�B<�+B:�NB:s�B;�oB<-B:�7B9@�B9�B9�B7��B5�3B5��B6^5B6��B6�1B6r�B6+B5p�B3�)B2 �B/ÖB-�yB/F�B1$�B/o�B,��B+I�B*�dB)�;B(dZB'�=B(�DB)>wB&�7B#�XB#��B#�oB"K�B J�B
t�B
��B�B� B�qB�-B��B}�B2-B�{B
�wB
�/B
-�B	N�B��B��B(�BhsB"�B��B
-cTB
+B
��B
�`Be`B�B�BĜBbNB��B
�B
�B
"�B
��B
J�B
�B
#�B
]/BƨB �jB ��B!S�B#��B%�-B&{B&N�B({B)�;B)R�B(��B(�JB(x�B){�B+!�B,Q�B,{B,B+�B,B,�\B,��B,�B*�mB*��B+\B+L�B,B,hsB+�#B+u�B+�-B,�B- �B.,B-J�B,�B,��B.��B.�uB,�B*J�B+P�B+�PB+(�B*��B,
�B-v�B-bNB-N�B-:^B-w�B+��B(�B%�`B( �B*;dB*ȴB+}�B*P�B)$�B*(�B+��B,�1B+� B*��B)v�B(�B+	7B,�)B+�B*��B)P�B'�!B(cTB)�5B*�B)�LB)��B)�bB)��B*1'B*�wB*�B*��B)�B'z�B(|�B+oB+��B*!�B)E�B(�TB(��B)�B*bB)�B(��B(�B'F�B'�
B(5?B(!�B&��B&��B'��B(#�B( [...]
-B!D�B!
JB!l�B!��B!�BB"@�B".B ��B��B /B �
B VB�B 2-B �/B!�B �XB ��B �BB �
B�3B
DB
��B
�mB '�B!�hBG�B
��B
��B
{�Bp�B^5B��B�%Bs�B�B
�{B
�B
%�B
{B
�RB
��B
�{B
ɺBl�B�BI�B
9XB
+B
gmB
Q�B
=qB�HBdZB��B�B
��B��By�B��B�B�BB��Bv�B�B��BC�B33BiyB
DB�B�HB�+B1B�BT�B�)B�=B��B�B�fBZ
B&�Be`BK�BJ�B��B��BĜB�
-B
JB��B�\Bv�B�B+B�uB�PB7LB�qB�BK�BF�BD�B�HBO�B�B��B�oB'�B'�BL�B��BA�B1'BffB��BE�B�Bw�B��BI�B�mB?}B�NBJ�B��B^5B��BǮB��B�
BaHB��B2-B{B��B�B6FB��B�FB��B)�Br�B
DB��B�B
JBQ�B2-B��B

JB
o�B	��B
q�B^5B:^B�mB�-B�9B�RBB
1B
��B
�yB

�B

PB

�B
Q�B
�5B
�PB
;dB
ȴB
6FB
&�B
-�?B
-��B
-��B
-�B
-�#B
-��B
-��B
1'B
�B
��B
L�B
��B
�-B
jB
-gmB	��B	�yB	��B	�BL�BO�BS�B6FB�B;dB
�B!�BC�B��B��BɺB��B�B\)B�B��B�qB�ZB+B5?BL�A�oA���A���B 	7B �BBB"�BC�B q�A�~�A��uA�bA�Q�A���B E�B ��B �TA��mA�
JA�5?A��
-A�A�5?A�dZA�oA�A�z�A�RA�A�\)A�
A�Q�A��A䛦A��A��A�x�A��A�=qA�?}A�VAմ9A���A�ffA�5?A��TA���Aģ�A��A�jA�  A���A��PA�(�A›�A�?}A�^5AʸRA���A�?}A�ƨA�VA׉7A���A�dZA���A�l�A�?}A��A���A�7LA�G�A�A�hsA��#A�A��A�XA��A�XA���A�%A�A�A�oA��TA�G�A��A�VA�&�A���A�ȴA♚AᕁA�1'A�/A���A�E�A�A�\)A◍A�
-=A��A�v�A��/A�A�A�Q�A�^A�DA��A�/A�  A�;dAߣ�A��A��AݬA��mA�"�AޑhA�7LA�bA�x�A��HA��A݁AܶFA�"�AۍPA�^5A���Aٟ�A��A�{AځAڼjA���Aٕ�A���A�A�Aղ-AՇ+A�\)A�/A�A��A�oA�~�A�S�A�&�A�ffA�r�AӬA��`A�O�Aԉ7A�Z
A���A�dZA֝�A�r�A��TA�XA�33Aҥ�A��mAѼjAѓuA�hsA�=qA�{A��yA�^5A���A�v�A��A�bNAͥ�A̼jA̓uA�+A͓uA���A�33A���AΣ�A͇+A̝�A�t�A̬A�{A��A�1'A˩�AˁA˸RA�`BA�7LA��;AʶFAʏ\A�7LA�VAɶFAɏ\A�7LA�bA��mAȑhA�hsA�oA��AǓuA�l�A��A���Aƙ�A�C�A�
�A�ƨA�p�A�I�A��Ağ�A�I�A�$�A���A��
-Að!AÉ7A��A�XA��
-A��!A��`A£�A��A�XA���A���A�ĜA��wA��`A��uA�{A��A���A���A��#A�^5A�9XA�{A�t�A�
A�bNA��RA�;dA��hA�{A���A��A�t�A���A�S�A��-A��`A���A���A�z�A�VA��#A��RA�{A��A�v�A���A��+A��`A�l�A���A���A�+A�1A�bA�n�A���A���A��#A�dZA��A���A���A�/A��DA��wA��A�M�A�VA�bNA�n�A���A��A�VA��A�
�A�O�A�/A�
JA��A�$�A��A�{A��A�$�A�
A��HA���A��A���A��!A��\A�
�A���A��wA�K�A��9A�C�A�"�A�
A��HA�I�A��#A��A���A�z�A���A��-A��TA�A���A�
JA��A�|�A�^5A�?}A���A��-A�C�A���A��\A�"�A�A��`A�ƨA���A�;dA�
�A��
-A�
�A�?}A���A��FA���A�z�A�\)A�=qA� �A�M�A�1'A�oA�7LA���A�dZA��hA���A�oA���A�"�A�O�A�33A�{A���A��\A�&�A�1A�z�A�oA��A�hsA�K�A��`A�ƨA�`BA�C�A�&�A�S�A��A��A���A���A�ĜA��A�A�A�$�A���A��A�
�A�  A���A���A��FA�1'A�9XA�dZA�G�A�-A�bA���A��DA��FA��TA�9XA�l�A���A���A��-A���A��`A�bA�^5A��A��wA���A�A�A�&�A�ƨA�C�A���A�
�A�E�A�+A�bA��-A�Q�A�9XA��RA���A��A�$�A�
-=A��A��
-A�ffA��hA�33A��A���A��`A���A��A���A��A��^A���A�Z
A�XA�?}A���A��A��#A���A���A��\A�oA��RA�\)A��A�l�A�S�A�9XA� �A�ƨA��PA�33A��A�`BA�%A��A���A���A�%A�n�A���A�~�A��`A�jA�oA�Z
A�A��A�r�A���A�"�A���A�Q�A���A��HA�jA�{A�;dA�"�A�jA�S�A�;dA�"�A�n�A��A���A��yA�bA���A���A�-A��
-A���A��mA�-A��RA�dZA�K�A��A��A�l�A��A�t�A���A��yA�VA��TA��\A�
�A��PA�wA~ffA}K�A}��A}�;A~jA~=qA~bA}�TA}�FA~z�A~�DA}��A}%A|$�A{��A{XAz�RAz�DAy�Ay�Ax1'Aw
�AvE�AvQ�Av��Av�`Aw/Aw?}Aw�7Av9XAt�As33As%Ar�/Ar�As7LAs|�AsS�As��Asp�AsG�As��At�+Au|�AuS�Au&�At�DAtbNAt��Au+As�TAr��Ap�HAp�RAp�\Ap��Ap�ApbAox�Ao�wApA�Ap��Ap��Ap5?AodZAnȴAn1'Am��AlĜAk�7Aj�AjZ
AkVAk�PAk��Ak��Ak�Aj�AjĜAi��Ai��AjM�Aj$�Ai��Ai��Ai%Ahr�Ah�RAh�\AiVAhA�Ag�Ag�Ae�TAd�Acx�AcS�Ac+Ac%Ab�/Ab�Ac33Ad�Ael�Af��Ae�� [...]
-=Ab�!Ab�+Ab��Abr�A`�A_��A^z�A_\)A_��A`�A_XA^ȴA]��A^z�A^VA^��A^�/A_XA_��A_
-=A^I�A]�^A]/A\jA[�;A[S�AZ-AY��AY|�AYXAY33AYVAX�AXȴAX��AX~�AXZ
AX��AX�HAYS�AY/AXr�AXM�AWƨAW;dAV~�AU`BATr�ASXAS33ASoASO�AS/AR��AR�ARbNAR=qAR~�ARZ
AR9XAQ�-AQ�hAQl�AQK�APĜAPbAO+ANv�AM�hAM?}AM
�AM�PAN^5AN=qAM�7AM%AL�`AL��AL��AL�/AL^5AL9XAL�AKhsAJ�+AI�
-AJE�AJ$�AJbNAJA�AJ �AJ^5AK+ALZ
ALȴAKXAJE�AI7LAH�RAH��AHv�AG��AG�
-AG�7AF�AE��AD��AD
�AC��AB��AC`BAC��ADbNADA�AD$�ADADA�AE%AE��AE�AE%AD�`ADffAC`BAB�`AA�;A@�/A?�#A?�A@$�A@�yA@ȴAA%AA?}AA��ABA�AB�ABAA/A at -A?�-A?�hA?t�A>��A>VA=�-A=�hA=��A=�#A>{A>~�A>^5A>��A>z�A>^5A=�mA=ƨA=��A=%A<5?A;�mA;�A: �A8��A8Z
A8=qA8v�A8�!A9�A9��A:
JA:E�A:�A:�\A9�A9"�A8�A7�PA6��A6$�A61A6jA5��A5XA4�yA4I�A4�A4�\A4r�A3�
-A3oA2v�A2Z
A2=qA2$�A2Z
A2=qA2��A2�A2ffA2��A3
A2�`A2ȴA2-A1�wA1"�A0bNA/x�A/
-=A.�A.VA-�mA-��A-�-A-C�A-x�A-�-A-��A,�A,A�A+�A*(�A(��A't�A&��A%�^A%
A$�yA$��A$�9A#�A �yA
�A
�4A
�YAl"A��A�
-A��A��A�9AB[A:�A5�AS�A
˒A
��A
-e�A	
�Au�A�4A��A�FA	�{A
-��A
jAH�A�A��A�|AZ�A��A4A_pA�hA�_A�A�,A�jA
7LA�gA�<A�A
��A
y�A
qA
�A
4�A
f�A
�wA
��AIRAƨA  �A ��A ��A!+A!\)A �A֡AMA4nA
CA
��A
�
AC-Au�A �A �jA!dZA �DA��AS�A
�A

A
ߤA
�A
��A
��A
~�A

�A
�A
��A
��A
(�A
Z�A
�~A
�TA
�LA
��A
-A�AA�hA��A��Al�A�A=qA%�A
�A?}A�;A
cA��AOvA
Ao AW�A@�A)_AoA�Ax�Ah�A��AC�As�A
�AaAJ�A3�A
A%A�A�A�'AA�A�Av`A�A��A�AqA��A�cA�sA��A�9A�5Ap;A�A�]A�A%�A��Ap�AZ�AD�A/A��A��AVA-�A}�A��ARTA�sA\)A�qA@OA+A�MA�A�LA��AY�A"hA�A�9A��Ah
-AS&A
CA
��A
�OA
�A
c�A
-wA
��A
�A
�A
u�A
?�A
	�A
��A
��A
��A
TaA

�A
	�A
-ԕA
-�VA
-jA
-5?A
-  A	�)A	�SA	�AA	MjA	�A�&A��A{JAF�AoA�jA�eAv�AB�A�A�#A��AtTAƨA��A8�A��A�5A�#A�zA��A��A��A��A�MA�A��A��A�A�ZA �A��A~(AL0A�/APHA �@��+@�+k@��-@��|@�p;@��oA ^5A �LA
A �DA �mA ԕA ��A
-=AR�A�^A}�A�A�9A�XA[�AH�A6zAA�Al"AYKAe,ARTA��A�fA �A �"@���@�*0@��^@��N@��q@���@�&@�=A �A ��A �hA ��@���@��
A J�A 8�A &@�5�@�]d@���@�!�@�a|@���@���@�^5@�:�@��@��@��}@��?@�J#@�B[@�Xy@��@�@�G�@�	�@�u@�
�@��@��@�I�@�(@��g@�w2@���@���@�6z@��@�A@�'R@�]�@��@�:*@�:�@�r�@髟@��@�iD@��)@�˒@�PH@�.�@�V@�F�@�N<@��@��@�-�@�C�@��p@�X�@�6z@�L�@��@�͟@��]@�J�@�@�
-�@�0@繌@�6@��K@��,@�
@��+@�H�@�@��@�ԕ@�V@�6@�M@��Z@�4@�@㕁@�M@�!-@�L@퐗@�o @�Mj@섶@�M@�<@�H@�C�@�Z
@���@���@�F
@�
�@�@�%@��@�'R@�	@ڄ�@�kQ@��)@�z�@߼@��X@�=@���@�?}@߾w@�<�@��@�qv@ಖ@��@�7L@��@�'R@�1@�+@���@��,@ڵ�@ڗ�@�xl@���@ۥ@�"h@�@�J#@�\�@٤@@م�@�g�@�IR@�_@רX@��5@۠�@���@�L0@ܰ�@ٿH@�o�@�!�@�l�@�
@՗$@�ں@��5@�iD@�K�@֖�@ծ�@�1�@ҷ�@Қ�@�}V@�`�@��y@�t�@�G@�xl@�O�@�YK@�<�@��@�4n@��@��@�W�@�͟@ϥ@ЯO@В�@�u�@�YK@�<�@�\)@��@�S�@���@�%@Ѯ�@һ�@�e,@�'�@���@�}V@�a|@�dZ@�Ɇ@�ϫ@�u�@�
@�� [...]
-�@��@��Q@��o@�5�@��)@��z@�a|@��D@��@�#�@�1'@�@O@���@���@���@��;@�ƨ@���@���@��@���@��@���@�H�@�ی@�n/@�W�@��H@�{�@�;d@��6@�^�@��@�Z�@�Y@��g@�@�~(@�g8@�Ov@���@�F�@�/�@��1@�@�q@�dZ@��-@�G@�J�@�	@��@�/�@��Y@��P@���@��V@��@��F@��L@�
�@��o@���@���@�#:@�
-=@���@�ی@�C�@��@��b@�H@��Z@��@��f@��W@��R@��@�U2@�tT@��+@��@@��@�C-@��@�Z
@�C�@�-�@�w2@��y@�\�@�5�@�_�@���@��
@�=q@��	@�W?@�`B@�p�@�p;@��	@���@���@�GE@�1'@�	@�-@��\@�a@���@�J�@�5?@��@�ݘ@�|�@��8@�v�@��@���@�H@���@�p;@�Z�@�� @���@��@��8@�S�@�e,@�2�@��H@�O�@�2a@��:@���@��@�;@���@�`�@��@���@�e,@�8
@�@@���@�q�@��@��@�4�@�!-@�z�@��D@��@�GE@�9�@���@�=q@�l�@�Q�@��5@�H@���@�
�@�z�@�n�@�h
-@�K�@�-w@���@�
@�`B@��)@�S�@���@�5?@��@��@�hs@�Q@��@�,�@�+@��@���@�K�@�;�@��3@��g@��@�|
@�e�@��@�?}@�0U@�
�@���@��@��o@��@�kQ@���@�+@�}V@���@���@���@�Ta@�Vm@��B@���@���@�֡@���@���@��@��D@�w�@�d�@�d�@�'R@��@���@��6@��@���@��s@��j@�.I@�M@���@��>@�A @��'@�	@�tT@���@�|�@��@���@���@��@��W@�ی@�|
@�D�@��@�*0@�'�@��@���@���@�Y�@���@��'@���@���@��1@�ȴ@�?}@��@�PH@�>B@��3@�K�@���@��@��}@���@���@�xl@��D@���@��q@�'R@�8�@��.@�33@�-@���@��8@��@��2@�  @�w�@���@�%�@�{@�u@�Ft@�@ [...]
@�o@�'R@���@�d�@�ѷ@��@��y@�1@�+@�H�@��@�o@�@@�O�@�e,@�c@���@��d@���@�5?@��V@���@�xl@�C�@���@�rG@�u�@��@�ݘ@��
@�Y�@�
x@�
�@�H�@���@���@���@��@�5?@��m@���@�6z@�  @�$
@�1'@� �@�q�@��@�j@~�@w|�@v�!@|PH@�E9@�e@�
O@�l"@���@���@�e@~c @w��@q^�@n)�@r_ at uZ at x!@rZ�@l�|@i�d at o˒@u�o@|G@��@��f@���@���@�]d@��@���@�J#@���@��@~��@}`B@{e�@x��@v�F at v=q at up�@t�
@w{J at z��@}�@{�+ at z8�@w�}@z8�@~��@��6@���@�o�@�zx@��)@��]@��M@�ݘ@��*@��@�]d at sF at f��@c��@h��@m�o at t��@{�@���@�
@��|@}��@{S�@~;�@��
@ [...]
�@:H�@.�<@/$t at 2{�@6d�@6Ov at 5V at 3P�@2�<@3'�@3o at 7)_@>�L at F{@D�$@< �@4>B at 1�#@4�@7�@7�k at 4�@0�f@/�@0(�@17L at 2�@6�]@:�]@:�M at 3�@,g8@)�Z at 4��@?�a at G��@A��@;P�@5��@2ff at .kQ@+y�@+e�@+RT at +>�@/�@@4%�@8�?@?E9 at F��@M�@?��@1��@$��@*@2GE@:�@9�X at 6�!@4D�@2_�@0ѷ@/�@&?@9�@�e@z@��@!�@+�F at 8�@EVm at Lu�@P,=@R��@O��@H�@@�@;��@9�"@7�@5Vm at 2��@0�@1�'@9�H at A��@E7L@>YK at 7��@0�@%�h@qv@��@
��@%F
@,�[@/�@@2�, at 6=q@::*@>{�@B��@D�@E�@Gy�@?� @8u�@1�~@2�@3�@4
~@0C-@,�z@(��@'�@%�
@$I�@)��@0ی@8C-@<!@?.I at B
 [...]
�@6�b@;�g@@��@E�=@I0�A���q�
HZ4         DA4  AhQ�03:55:21.70+09:47:18.7 at Mk���,_@#���  �EH  EH EH  EH0 EH@ EHP EH` EHp EH� EH� EH� EH� EH� EH� EH� EH� EI  EI EI  EI0 EI@ EIP EI` EIp EI� EI� EI� EI� EI� EI� EI� EI� EJ  EJ EJ  EJ0 EJ@ EJP EJ` EJp EJ� EJ� EJ� EJ� EJ� EJ� EJ� EJ� EK  EK EK  EK0 EK@ EKP EK` EKp EK� EK� EK� EK� EK� EK� EK� EK� EL  EL EL  EL0 EL@ ELP EL` ELp EL� EL� EL� EL� EL� EL� EL� EL� EM  EM EM  EM0 EM@ EMP EM` EMp EM� EM� EM� EM� EM� EM� EM� EM� EN  EN EN  EN0 EN@ ENP EN` ENp EN� EN� EN� EN� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-C�C�RC�HC�C
)CJ=C��C�=C�RC�HC0�CaHC�C��Ck�CǮCh�C0�C�{CxRC=qCW
-CٚC� C�C
�C:�C#�C
�C�3Cz�C�)C
�C

�C
�C

-=C
��C
-�RC
-� C	��C	p�CٚC#�C.C:�C�C:�C��CW
-C�qC�fC�{C� C�CO\C
)C�C�CxRC�C�=C�3C=qCffC��C}qCffCQ�C� CL�C�RC�C��C��C�fCQ�C=qC��Cz�C�=C:�C�C�Cz�C  C�C+�C
-C�C��C�)C��Cs3C!HC�\C^�C
�C�RC!HCL�C��C�fC\C�C��CY�C ��C ��C J=B��B���C 
�B���B�W
-B��B�ǮB�(�B��=B�ffB�.B��RB�
-=B�\)B�33B�\B��fB�G�B���B���B���B��{B��qB�
�B���B�\)B�8RB�{B��3B�ǮB�{B�ffB��B�=qB��B�k�B���B��qB�33B�8RB�ǮB��B��HB���B���B���B�G�B���B���B��=B�aHB�B��fB���B�p�B��B�aHB��3B��=B��)B��3B�B�B��{B�k�B��{B���B�\)B��B�p�B���B�  B�ffB���B�k�B�G�B�#�B��B���B���B��qB��
-B��B�Q�B�(�B�B��\B��HB���B��B�aHB�ǮB���B�� B�B��B�G�B�
�B���B�ffB���B�  B�k�B�RB�{B�p�B�L�B���B�
�B���B��
-B�3B�B�=B��
-B�#�B�  B�k�B�qB�z�B�z�B�=qB�B��HB�.B�B�B�\B�k�B�L�B�(�B�B�Q�B��
-B�\B�{B��B���B�B�=B��
-B�3B�
�B�W
-B�B���B�k�B�G�B�(�B�B��HB�Q�B�B瞸B� B�\)B�B��HB�Q�B�33B�\B�\)B�p�B�RB�B��HB�.B�B�B�
�B�ǮB���B�
-=B�\B�L�B�B➸B�{B�Q�B�aHB��B��B���B�L�BᙚB�u�B���B��B�{B��HB�aHB㞸B�z�B�ǮB��)B�#�B�p�B��B��B�qB�B�z�B�RB�qB���B�8RB�B�B�RBߏ\B���B޳3B�(�B�
-=B��B�aHB�=qB۳3B۔{B��)B�Q�B���BخB�(�B�
-=B�Q�B�.B��)B�W
-B�8RBس3B�aHB�u�BؽqB�B��HB���B�=qB�
�B�  B��HB�\)B�
-=B��B�  B��HB�Bף�B�Q�B�33B�G�B�(�B�B�L�B�.B�u�B�W
-B���Bֳ3B֔{B�u�B�W
-B�8RB��B���B֨�B֊=B֞�Bր B�aHB�B�B�#�B�B�L�B�.Bը�BՊ=B�8RB��Bԙ�B�z�B�\)B�=qBԅB�ffB��HB�\)B�=qB��B�k�B�L�B�.B�{B���B�8RB�L�BӔ{B��HB�aHB�z�B���B�L�Bϙ�B�z�B�aHB�B�BϸRB���B�B�B�#�Bϣ�B�#�B�
-=B��B���Bγ3B���B�8RBϮB���B��
-B�W
-BΨ�B�(�BͮB�aHB��HB�B�
-=B��B���B��BʅB�z�Bȣ�B���B��)B�bNBǤZBLj1B���B�=qBȀ B�aHB���B�?}B�#TB��B��B�r-B�V�B�:�BƬB�K�B��B�\)B���B�{B���B��)BȽqB�B�B�(�B�ݲB�c�B��B���B���B�
JB�
-�B�
-=B�8�B�
5B�^5B���B�
�B��-B�2�B�B�YB�=�B�#TB�1B���B�
)B��B���B���B�)yB�\B��B�a�B�G+B���B�mB�RoB�8RB�
�B��B���B�t9B�Y�B�?}B�%`B�e`B��oB�mB���B�v�B�AB�gmB�L�B�1�B»dB�
-B��HB���B���B�nB��XB�W�B�=qB�#TB�	7B��B�z�B�`�B��B�y�B�3�B�
B�  B��fB���B�8RB�
�B�B�
�B��B���B�3�B�q�B���B�#B�Z
B��sB�KDB��
B�iyB�PbB��VB���B���B�CB�)�B���B���B�6FB�
/B���B��uB�z�B�
-�B��-B��B���B�|jB�
PB��9B���B��B�}�B��B�w�B�
-=B��/B��B��B�S�B�ffB��^B���B�"�B��RB�"NB���B���B�	�B�H1B�
DB���B�� B��;B�ŢB�R�B��BB�A�B���B�^5B�h�B�t�B���B�oB���B��B��
B�,B���B�$�B��LB��B�^5B�ǮB�[�B�C�B�,B�hsB���B�
DB���B�B�B��uB���B���B���B�ؓB��B��LB��sB��B�ۦB��B��TB�ɺB���B��
-B�}�B��wB���B���B��oB��+B���B��B��LB�6�B�ŢB���B�^�B�k�B��ZB���B�B���B���B�O�B��qB�.�B���B��B��
-B�B���B�
�B��VB�Z
B���B���B�
DB�CB��B���B�1'B�VB��9B�m�B�uB��{B�kB�ɺB�+B�d�B��DB�4�B�u�B�;dB��
B�O\B�NVB���B�w�Bž�B��+B��B�
5B�K�BǾ�B�aHB�G�B�\)B�  B���B�u�Bʊ=B�p�B�(�BɮB�33B��B�  BȊ=B�k�Bȳ3B�8RB��B��B��B��BöFB�[#B��mB�QhB��hB���B��
B�7LB�l�B��hB��^B���B�LJB���B���B��3B��B�=qB���B�)yB��)B��B��B�\B�ffB�/�B�D�B���B��B���B�ؓB���B��9B���B�1�B��B�u?B��B��B��B���B� BB�@ B���B�(sB���B�`BB� BB�:^B��B���B���B�#B�PbB�7�B�z^B�l�B��jB�`�B�6FB�=qB��B��hBƉ�BǹXB�G�B�z�B˳3B��fB�Q [...]
-B��B���B�G�B�(�B�\B�\)B�\B���B�B�B�.BޮB�aHB��fB�ǮB�{B���B�G�B�(�B�\B��B���B߸RB�33B߀ B�aHB�G�B�(�Bޣ�B�
�B�ffB�z�B�B��
-B�#�B�B�
�B�k�B��B�8RB�Q�B�=qB�ǮB�Q�B�=qB�aHB�B�W
-B��BɅB�
�Bƽ�B�B�
B�e`B��+B���B�T{B���B�dZB�;B���B�,�B�&�B�ևB��PB��qB��5B���B�=qB���B�	�B��oB�$�B���B�E�B���B��B�0!B���B���B��\B|�7Bx	7BtbBp��Bm��BliyBjƨBj��Bj��Bl��Bn�`Bq�HBu�uBy��B~�DB��bB�H�B��PB��/B��B�5�B�<�B��-B��B�u�B���B�=qB�w�B��{B��;B�X�B�e�B�y�B�DB��B��wB��
-B�t�B�ؓB���B�T{B�B�
�B���B���B��bB�O\B�u�B���B�$ZB�P�B�~�B�QhBȀ Bɳ3B��B�Q�B͊=B�(�B�ffB�B�B�
�B�.B�\B��B���B��B���B�G�B���B��HB�ǮBܮB���B�L�B�8RB��B�u�B�.B�3B�k�B��B��B�.B�
�B��)B�aHB�3B�=qB�=B��)B�.B�3B�u�B�  B���B�G�B뙚B�3B�B�\)B�=qB�\B��B�\B��HB�33B�{B�k�B�B�ffB�qB�\B�(�B�z�B���B�3B�B��B�B�W
-B�B�\B��fB�ǮB�Q�B�8RB��B�=B�8RB��B�=B�  B��HB�
�B�  B�u�B��fB���B�
-=B�z�B�aHB�B�B�RB�ffB��)B�Q�B�ǮB�B�{B�=qB�RB�.B�p�B�z�B�qB���B�{B�=B���B��HB�aHB�\B�#�B�k�B��fB�ffBۮB�.B�{B�(�B�u�B�aHB��HB�ǮB��fB�8RB�#�B�B�B�33B�#�B�G�BΞ�B�aHB�W
-B�L�B��fBȅB�"NB� BB�B��B�ƨB�n�B��B�ƨB�
/B�KDB� �B�a�B��#B��B�ĜB�	7B�{�B�EB���B�b�B��NB�d�B�ÖB�MPB�e`B��bB��B�AB�nB���B���B���B���B���B���B���B��B��B��jB��B�
B�B���B|��BxB�BsdZBn��BiJ�Bd�B_��B[;dBWS�BS�NBP�!BM�=BK0!BI;dBHffBH�BI�BK��BM��BQ,BTÖBX��B]'�Ba_;Be?}Bi��BnhBr(�BvƨBz�VB~(�B���B�G�B�1B��B��dB��!B���B���B���B�_�B�1�B�B��;B�:^B�ٚB��%B�$�B��B��B�R�B��B���B��B�N�B�u�B�ƨB��=B� BB���B���B�2-B�B�$�B���B��3B���B��%B���B�H1B�5?B��RB�uB�ؓB���B�e`B� �B�ȴB���B�.�B�� [...]
-B�z�B���B�=qBʳ3B�\)B���B˽qBˣ�B��B�8RB�\B͊=B�33BήB���B�B�BϽqB�B�Q�B�8RBг3BО�B��fB�33B�L�Bє{B��HB�\)B�B�Bҏ\B��)B�B�\B�(�B�p�B�\)Bӣ�Bӏ\BӨ�Bӏ\B�u�B�\)B�G�B�.B�z�B�aHBӮBӔ{B��HB���B�G�B�.B�{B���B�G�B�33B�z�B�ffBԀ B���BԳ3Bԙ�B�
�B���BӽqBӣ�Bӊ=B�p�B�\)B�B�B�(�B�{B���B��HB���B��fB���Bҳ3B�k�B�Q�B�=qB�#�B�=qB�#�B�p�B�W
-B�B�B�(�B�u�BҽqB��
-B�B�\B�W
-B�B�Bӊ=B�u�Bӏ\B�u�B�aHB�G�B�.B��fB�k�B��B�u�B�.Bг3BЙ�BЅB���BиRB���BиRB�B�L�B�8RB�
�B�k�B��B��
-B�aHB��fB���B�#�B�
-=B���B��)B�ǮB�L�B�8RB�
�B�
-=B��B��)B�BͮB͔{B̀ B�B��B̨�B̏\B�z�B�B��B��
-B�aHB�G�B�33B��B�Bʏ\B�u�B�33B��B�B��B��
-B��B��
-B�#�B�z�B�BȔ{B�z�B�ffB��Bǫ�Bǔ�B�~�B�h�Bǁ�B�k�Bdz�Bǝ/BLJ+B�q'B�[#B�D�B�.�Bƺ^B�u�B�_�B�I�B�bNB�LJBƓ�B�}�B�g�B�ŢBŰ!B�<�B�'mB�hB�X�B�B�BŸRBŢ�BŌ�B���BžwBŨsBŒoB��B�	�B�h�B�SuB�=qB�'�B�oB��jB��B�\)B�F�B�1'Bþ�BéyB�e�B�~wB��B�
�B��FB�<�B�'mBõ�BàBB�.�B�B��B�J=B�4�B�;B�	�B˜�BƒB�nB�X�B�CB�.B���B�z^B�
-=B���B���B�o�B��?B��BB���B��wB�D�B�/�B�u?B�`BB��!B�� B��TB��VB�^�B�I�B�4�B�z^B�e`B��B��B��B��9B�9XB�$ZB��B��BB�jB��B�jB���B�@ B���B���B�C�B���B���B�"NB�'�B���B�1B�9�B���B��=B�(sB�]/B�kB�y�B�B��B�NVB��'B��B�
B��B�0!B�p!B��=B�X�B�u?B��uB��B��XB�#B��3B�B��B��oB���B���B�2-B��B���B�@ B��yB�t9B��B�s3B�	�B�bNB�߾B�
B�i�B�ևB���B��B|W
-Bw��Bs�Bo� Bk��BgN�BcO�B_��B[�7BX%�BS��BO��BL5?BH� BD~�B@�B>L�B;�7B8��B7��B6��B5��B6�B7_;B8hB:M�B<�qB?bNBB��BF��BJ�
BM�yBQÖBU�BX�B[�B^��Ba�Bd>wBgBi��Bl:^Bo�Bq�\Bt
DBwByR�B{�TB~{�B�PbB���B���B�X�B�T�B��B��{B�W
-B�B�ܬB�aHB�&fB��B�s3B�;�B��B��PB��B���B�KDB��B�?}B��+B��'B��?B��B�A�B��=B��?B�=�B���B��-B�B�bNB��7B���B�?}B�f�B��'B��oB���B��HB�,B�
PB�5?B�}B�aHB��7B���B��dB��/B�B���B�VB��!B���B�ևB��RB��
B��
B���B���B�gmB�I7B�+B�
PB��B���B��3B���B���B��;B�ƨB���B��DB���B���B��
B�|jB��ZB���B�hsB�KDB�-�B��B���B��\B�q�B�T{B��-B��{B��LB�w�B�Z�B�=qB� �B��B��NB��B�hsB��B��B���B��'B��{B�w�B�[#B�>wB�!�B��B���B��JB��!B��uB�wLB�[#B�>wB�"NB�%B���B���B��bB�t9B�XB�<jB���B���B��+B��B�nB�RoB��B���B��5B���B��%B�I�B�.�B��-B��
-B���B�}B�C�B��B��B��'B��B�Z�B�?}B��ZB��7B��VB�33B��B���B��TB���B�nB��B�ٚB�� B�&fB�
JB���B�x�B�_;B�EB�+B��B��LB��/B�ÖB��yB��B���B�{dB�a�B�H1B�\B���B��)B���B�-B��B���B�G+B�-�B��
-B���B�I7B�0�B�ڠB��
B���B��bB�wLB�^�B�E�B�-B�{B��BƨB��B~�B~�^B~�=B~YB~'�B}��B}ƨB}Z
B}(�B|�
B|P�B| �B{y�B{I�Bz��Bz8RBz	7By�By��Byy�ByI�Bx��Bxu�BxF�Bx�Bw�mBwC�Bw{Bv�`Bv�FBvuBu�`Bu{�BuM�Bu
�Bt�Bt��Bt�uBte`BsÖBs��BsgmBrƨBr��Br2-BrBqdZBq7LBq	7BpjBp<jBp\Bo�NBo�?Bo�1BoZ
Bn�qBn�bBncTBn6FBm��Bm��Bm1Bl�#Bl?}BluBkw�Bk{Bjy�BjM�Bi�3Bi�+Bh�Bh�DBh`BBh49Bh	7Bgp�BgD�Bg�Bf�
BfW
-Bf,Be�{Be49Be	7Bd�5Bd�9Bd
�Bc�BcȴBc��Bcs�BcI�Bc�Bb��Bb��Bb��Bbw�BbL�Bb#�Ba�\Bae`Ba;dB`�)B`H�B`�B_�JB_cTB^��B^��B^I�B^ �B]�\B]ffB]>wB\�B\�B\\)B\33B\
DB[�NB[�^B[�hB[iyB[@�B[�BZ�BZȴBZ��BZw�BZO�BZ'�BZgmBZ>wBY�!BY�1BX��BX��BXw�BW�BWBW��BWVBV�mBV��BV49BU�
BU�3BU'�BT��BTv�BS�BSĜBS��BSw�BS�BR��BR��BRI�BQ��BQiyBP�BBP�^BP2-BP
PBO�mBO��BO��BOv�BOP�BO+BN��BN~�BNZ
BN5?BM�;BMYBM49BM\BL�BLĜBL��BL�BK��BKq�BKL�BJ��BJ��BJ�!BJ,BJ+BI�TBI`BBI<jBI�BH��BHq�BH
�BG��BG�
-BG�3BG1'BG
PBF�BFƨBF��BF� BF\)BF9XBF�BE�BE��BE�BE,BE1BD�LBD�{BD{BC�BC��BC�BC�7BC
-=BB�sBBŢBB��BB� BB^5BB;dBB�BA��BA��BA�-BA�bBAoB@�B@��B@~�B@]/B?�HB?�}B?B�B? �B>��B>�B>5?B=�^B=��B=w�B=VB=5?B={B<�B<��B<�!B<�\B<n�B<M�B<,B;�-B;�hB;p�B;O�B;/B:�FB:jB:I�B9��B9�'B9�bB9�B8��B8�B8�LB8��B8 �B8  B7�BB7��B7��B7�
-B7�LB7��B7v�B7W
-B77LB7�B6��B6�
B6bNB6�B5��B5�B5VB4ĜB4O�B3�)B3�jB3H�B3)�B3
DB2�B2��B20!B2hB1�B1� B1aHB1C�B0��B0�-B0�{B0K�B0.B0\B/�B/��B/�5B/��B/x�B/Z
B/<jB/
�B.�B.�bB.�B.
B-�ZB-ƨB-W
-B-bB,�B,��B,�RB,H�B,+B,VB+�B+��B+�FB+G�B++B+
PB*�B*�B*e`B*H�B*,B*\B)ɺB)�B)�bB)#�B)+B(��B(}�B(:^B'��B'�-B'��B'x�B']/B&�B&��B&�XB&��B&2-B&�B%��B%�5B%B%~�B%�B$��B$�bB$t�B$
DB#ȴB#�B#�hB#u�B#VB"�B"�
-B"�dB"��B"�B"iyB"N�B!�fB!��B!�!B!I�B!1B ��B �+B  �B B�B��BjBO�B\B
�B
�
B
�}B
��B
�=B
p�B
VB
;dB
 �B
�jB
��B
�1B
#�B
	7B
�B
�!B
L�B
2-B��Bk�BQ�BuB��B��B}�BdZBJ�B1'B�B��B��B�BiyB1B��B�'BO�B7LB�B�qB��BC�B+BoB��B'�BVB��B�/BĜBdZBK�B\B��B�5B~�BffB1B�B�9BVB=qB�;BƨB�BP�B�B��B��B�7B,B{B��B�`B�1Bp�BYBA�B)�BoB�B��B��BM�B6FB
�BÖB�B�{B}�BffBN�B�B�/BŢB�Bu�B_;BB
�B
�{B
|�B
#�B
�B
�oB
9XB
"�B

JB
��B
�;B
��B
�hB
z�B
"�B

JB
-��B
-��B
-�1B
-q�B
-�B	��B	�JB�B�wBhsBoB��B�%Bp�B[#B%B�B��B�Bo�BZ
B%B��B�dBgmBoB��BK�B��B�%B33B�HBo�B
�B��B��BF�B ��B �%B 49A�ȴA�bNA�A� �A�E�A���A��hA��RA��A�A�A�/A�XA�I�A�  A�-A� �A��/A�A�hA�Q�A�A�bA�C�A�
-=A�1A���A杲A埾A�
A���A�9XA�n�A�t�A�|�A�XA�jA�O�A�1A���A�
�A̶FA��`AȋDA�9XA�G�A���A���A�\)A�(�A���A�-A��^A���A�t�A���A�1A�M�A�ĜA��uA�hsA��A��jA���A�A�A��jA�ȴA��-A�1'A��#A��7A���A��#A�bA�t�A��\A��#A�A�5?A��A���A��jA��A�v�A��A��jA��uA�?}A���A�t�A���AɶFA�C�A��
-A�
-=A�?}A�t�A�K�A�"�A���A���A�z�A�S�A�/A��A�O�A���A�p�A�
�Aٕ�A��#A�Q�A�  A�x�A۾wA�9XA��mA�bNA�bA�XA���A߃Aߕ�A��/A�"�A�
A��;A߼jA�A��A��A���A��A���A���A�
�A���A��A�S�A�33A�z�A�A��A�-A�\A��
-A�FA�uA�p�A�O�A�-A�t�A��yA�ƨAߥ�A߃A���Aޡ�AށA�^5A�=qA�O�Aޗ�A�t�A޼jAޙ�A��HA���A���A޲-Aޏ\A��
-A޶FAޓuA�r�A�Q�A�/Aݥ�A�O�A�ƨAܥ�A�
�A���A��A�Q�A�/A�VA��A���A�{A��A�9XA��A�^5A�p�A�O�A�/A�VA�S�A�33A٬A��A�jA��TA؏\A�p�A�
�A���Aק�A�VA�5?A��TA�A�p�A�O�A���A��/AվwA�l�A�K�A���A��#AԺ^A�hsA�I�A�+A��AӸRAә�A�z�A�(�A�
-=A��A���AҬAҍPA�;dA�
�A���A��;A���Aџ�AсA�bNA�C�A�$�A�%A��mA�ȴAЩ�AЋDA�l�A�M�A�/A�A�A�"�A�ffA�G�A�ƨAϧ�Aω7A�jAϮAϏ\A�p�A�Q�A�33A�{AΕ�A�v�A�(�Aͩ�A�+A̬A̍PA��;A���A�C�A�$�Aʧ�AʋDA�l�A�
�A�
A��`A�ƨAɩ�AɍPA�n�A�Q�A�33A��A���A�
JA��A�/A�p�A�S�Aɕ�A�x�AɋDA�=qA� �Aȣ�A�(�A�
JA�bNA��mA�l�A��Aŧ�A�-AĴ9Aė�A�
�A�
A��`A�$�A�1A��A�-A�l�A�~�AľwAġ�A��TA�ƨA�M�A�1'A�{AÛ�A�Q�A��A�bNA��jA�E�A�+A��9A���A�M�A�33A��jA���A��A�jA�M�A�33A��A���A��HA�ĜA���A��\A�r�A�XA��TA�ȴA�S�A�
JA�?}A���A��A�oA�E� [...]
-A��wA���A��PA�t�A�\)A�E�A�-A���A���A��hA���A��-A���A��A�hsA���A��DA�r�A�Z
A��A��
-A�n�A�-A�A�Z
A�ȴA�^5A���A��\A�M�A�7LA���A��RA���A��7A�p�A�Z
A�A�A�z�A��DA�t�A�\)A�E�A�-A��A���A��wA���A��RA���A�bNA�K�A�33A���A��FA�O�A�A��A�G�A��HA�VA��A��#A�ĜA�`BA�I�A�33A�
�A�Q�A�;dA�r�A�\)A�E�A�|�A�ffA�O�A�9XA���A��wA���A��hA�z�A��A��FA�x�A��A��9A�+A�ȴA��9A�Q�A�;dA��#A�bA���A��`A��A�A��A��A�A��A�K�A�7LA� �A�
JA���A���A�Z
A�E�A��`A���A��^A�Z
A�E�A�z�A�?}A�+A�{A��#A�ĜA��!A�v�A�`BA�K�A�oA���A��mA��A���A��A�I�A�5?A� �A��mA���A��jA��A�n�A�Z
A� �A�
JA���A��wA���A���A [...]
-A�A��A�t�A�`BA�M�A�{A�
A��A��9A���A��PA�VA�A�A�
-=A���A��HA���A���A��A�K�A�7LA�"�A��A��A�ĜA��PA�z�A��7A�Q�A�?}A�+A���A��wA�dZA�Q�A�=qA��`A��A���A�C�A�/A��
-A���A�I�A��A��;A��+A�t�A���A��mA���A�A��A�XA�E�A�33A�
�A�
JA���A��mA��A�A��A�"�A�VA�
�A�
-=A���A�ĜA��!A���A��DA�x�A��+A�t�A�bNA�-A��A��A�-A���A���A��uA�=qA�+A��
-A�ĜA��-A���A��PA�z�A�hsA���A��+A�t�A�bNA�O�A�=qA��yA��FA���A��uA�?}A�-A��A�
-=A���A��`A���A���A��!A�\)A�
-=A��
-A�ƨA�t�A�bNA�O�A�?}A�-A��#A�ȴA��RA�E�A�5?A��TA���A���A�p�A�^5A�M�A�z�A�hsA���A��A���A�A��!A���A��PA�\)A�K�A���A��yA��A�ƨA��FA���A��uA�C�A�1'A��HA��-A�bNA�Q�A�
A��A��;A��hA�~�A�n�A�^5A��DA�z�A���A���A��A�t�A�dZA�{A�A��FA��A�t�A�&�A��A�%A���A���A���A��A�9XA�
-=A��A�%A�33A�"�A�oA�?}A�-A��HA���A���A��!A���A��\A�~�A�1'A� �A�TAA��A�A��A��A�
-A�FA��At�A~�/A~�jA~^5A~=qA~ �A~9XA~�uA~r�A}�#A}|�A|�`A|ĜA|1'A|bA{�-A{
�Az��AzffAy��Ay�-AyXAxĜAx��Ax�AxffAxE�Ax$�Ax1Awt�AwƨAw��Aw�7Av��Av��AvE�Au�AuXAu7LAu�At��At�/At�jAt��At~�As�As\)As%Ar�`ArVAr5?Ar�Aq��Aq�#Aq�wAq��Aq�Aq`BAqC�Aq&�Aq%Ap�yAp��Ap�Ap�\Apr�ApQ�Ap5?Ao��Ao�7Ao�#Ao�wAo��Ao�Ao��AoC�An�RAm�AmdZAl-Ak��Aj�/AjQ�AiƨAi
Ai�PAi�#AjffAk&�Al
�Al��Al��AmK�Am/Al��Al{Ak�wAjĜAjAi
-=AhE�Ag�wAg33Ag�AfĜAf��Af
�Af  Aex�Ae\)Ae?}Ae"�Ae%AeXAe��Ae�7Ae��Ae�Ae�
-Ae�^Ae��Ae�Ad��Ad��Ad�DAdAc�mAc`BAcC�Ac&�AcVAb�+Ab5?Aa�Aa&�A`��A`Q�A`5?A`
�A`  A`�A`ffA`�9A`��A`~�A`bNA`E�A`-A`bA_�7A_p�A_S�A^��A^~�A]��A]�;A]ƨA]��A]�PA]t�A\�A\��A\�jA\��A\�A\jA\M�A\  A[�TA[��A[G�AZĜAZ�AZ(�AYt�AX��AXr�AX$�AX
JAW�AX
JAXVAX=qAX �AX1AW�AWl�AWS�AW%AV�+AV1AU�AUp�AU"�AU
-=AT�AU%AUO�AU7LAU�AUhsAU�-AU��AU�AUdZAUK�AU33AU�AT��AT�AT��AT�!AT��AT~�AT��AT�HATȴAT�!AT��AT�HATbNATI�AT-AS|�ASdZAR�yAR��AR�9AR9XAR �AR1AQ�7AQp�AQ&�AQVAP��APz�AP��AP�AQ"�AQl�ARM�AR��ASt�AS�wAT=qAT$�AT1AS�AS��ARĜARI�AQ��AP�jAPbAO33AN�+AN
JAM��AMK�AM33AL�RAL��AL(�AK�;AKhsAJ�AJ�AJ��AJ��AJ�\AJv�AJ  AI�mAI��AI&�AH�!AH��AH�AH
JAGƨAG�AG7LAG
�AG
-=AGO�AG7LAG
�AG7LAG
�AF�AF��AF��AF�uAFz�AFbNAF�AF��AGdZAG�#AH~�AH��AH�/AI"�AI;dAH��AH�/AHffAG�AGK�AFz�AE�
-AE
ADbNAC�ACx�AC7LAB��AB �AA�AA?}A@��A at -A?�^A?K�A?33A?
�A?%A>�A>�A>=qA>(�A=�FA=G�A=%A<�A=%A<�A=33A=t�A=�^A=��A=�^A=��A>=qA>(�A>��A>VA>A�A>(�A=�^A=��A=33A<ĜA;��A;7LA:ȴA:A9A9S�A8�`A8M�A89XA8$�A8bA7��A7�TA7��A7dZA6��A6^5A5�A5�7A5K�A4�HA4v�A4bNA3��A3�FA3��A3�PA3��A3�TA4$�A4�HA5��A6�\A6��A6�`A7&�A6ffA6$�A5dZA4��A4�jA4Q�A3�mA3��A3hsA3��A3��A3��A3�wA4(�A4jA4  A3A3XA2��A1�-A0��A0ffA/�
-A/p�A/\)A/G�A/33A/
�A.�RA.(�A-A,�HA,-A+�A+�7A+&�A+oA*��A*�yA*�A*ĜA*^5A*��A*�A+�A++A+�A+S�A*�A*bNA*  A)t�A(��A(5?A'�A&��A&��A&bA%�-A%��A%;dA%+A$��A$�\A$-A$
�A$1A#��A#��A#7LA"ffA!�;A!VA ffA��A
�A&�A�eA�A�fA��A��A��A��A Z
A �uA ~�A �RA!dZA"bA"��A#G�A#��A#�TA$
�A#�^A#\)A"��A"(�A!��A ��A -A��A �A
~(A
!�A
�mA
�"A
2aA
֡A
ĜA
�"A
�
A
��A
4nA��A�WA� A6zA��A�zAK^A:*A(�AYAsA�eA+A��A�HA

CA
TaA
�9A
�yA
!�A
bA
H�A
�)A
یA
�A
IRA��A�uA��A($Aa|A1A҉A [...]
- F
-P F
-� F
-� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F  F P F � F � F! F!P F!� F!� F" F"P F"� F"� ����������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
 I
� I
-�@I	?�I��I}�I�`I	��I	l I� I8 at IA�I��I8�I	`I	W`I	&�I
 `I��I
��I.�@IAf�IW��Iv��IvC�I��`I}� I�
`I�q I�� I�
 I�� I�+ I�� I��I~w�I�P�I��I���I���I�`I�w I��@Iie`I�j at I���I��`I���I�A I�@I��@I���I�d`I�ڠI�� I�~ I���IrC`ID�I|�@I��`I�-�I�� I�| I�I�I���I���I�@I��@I�%�I��`I��`I�c I�4 I�ÀI�3�I��@I�F I���I~��I}  Iy� Ix
�Iu�Ir InC�Im��Ij= Idp IS�@I%n�I�@IH�IY4`IZ�@IY��IY� IW��ITРIR`IM� IL4�IJZ�IIB�IGq�IF��IE~�IC��IA� I? @I;c�I:��I:��I9& I7`I6: I3K`I2�@I2��I/� I.6�I.t I-� I+� I*��I(� I&� [...]
 I
��I
@�I
-|�I
- I	��I��IZ I��I��I_ ID I � H��@H�ǀH��@H��@H�� H�� H�� H�
@H�)�H�u at H�U�H��H�I H�:�H�)�H�V H�P�H�H at H�~�Hܑ H�
@H�\ H�C H�(�H�M�H�>�H�0�Hз@H��H� �H�@Hɛ@H�"�H�? H���H�* H�'@H�� H�h H��@H�^�H��H�	@H�z�H�� H�/@H�z H�n�H�; H�4�H�� H���H�
- at H�� H�� H�L�H��@H�, at H��@H��@H���H�*�H�*�H���H�+�H���H���H��H���H�j H�ۀH�� H�Z at H�@H�	�H��@H� @H�!@H�`@H�� H��@H���H���H�f H�/ H��@H�� H�a�H���H�t H�� H�,�H�{ H��@H��@H�� H�� H�1�H�J�H H} Hy� HQq�G؁ H	��H� H5	 HW��Hh#�Hm7�Hm� Hm7�Hk� Hg� HcF�Hf� Hf>�Hd� Hc��HaŀH_4 H\x H\/�H[L HZk HXV�HW� HV� HTÀHSV�HRM�HQv�HPr�HO
 HM HJ
-�HDL�H=��H8!�H8?�H:�H<
�H1P�H8� H:� H7� H6x�H7u H5� H6� H8
 H7��H7% H6� H5B�H3?�H1l H1g H3� H-� H1� H0^ H&� H1��H2M H#�H)� H6�H1� H
n�H
M H0y�H5�H0��H
�H� H&� H2�H4H�H2O�H*�H H	l H
] H*2 H+�H+, H'I H{�H�H��G�0 H c�Hm H݀H H��HN�HV Hq Hc Hz�H�H
F G�| G�@ H� H	2�H� G�t Gׇ G�� G�.�G� G� G�I G�< GѦ Gʀ G�' G�� G� G�� G�E�G� G���Gɸ G�# G�� G�� G�I G�' G� G�- G�� G�_ G� G� G�� G�C G� G�� G�� G�� G�� G�� G�� G�A G�� G�� G� G�V G�� G�? G� GΤ G�� G҂ G� G� G�v G� G�  [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-D
��D#y�D��Dw
-D�)D
s�D'�D
>�DNDe�DθDfD�{D)�D��D
�fD
��D�D��D	�{D�fD�
-D2�D\)D � C�3C�  C�Y�C�P�C��\C�
�C�T{C���C�eC�qC�C���C��\C�C��3CׅCԏ\C�
-CΦfC��CȥCê=C���C���C��fC���C�%C�RC�9�C���C���C�ФC�XRC�7
-C��{C��RC���C�B�C�z�C��
-C�C�o\C���C�J=C��C�c�C��=C>��CR
-=C�q�C�7
-C���C���C�ФC�  C���C���C�y�Cn��Cm=qCk��Cj!HCl�Cl��Cj^�CeJ=C`�qC_�qC\�=CZB�CV  CU�RCP�CN{CEQ�C4p�C;��C5p�C1��C6(�C/�C  B�=C
��Cz�C�{C�=C
޸C� C��Cu�C
��CY�C aHC\)C

-=����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-=06:45:13.33+02:08:14.1 at YS���y�@�+
   �EN@ EQ` ET� EW� EZ� E]� Ea  Ed  Eg@ Ej` Em� Ep� Es� Ev� Ez  E}  E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  Eɐ E�  Ḛ E�@ E�� E�` E�� EԀ E� Eנ E�0 E�� E�P E�� E�p E�  E� E�  E� E�@ E�� E�` E�� E� E� E� E�0 E�� E�P E�� E�p E�  E�� E�  E�� F   F � F� Fx F@ F F� F� F` F( F� F� F	� F
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ F
 ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
nfE
-y�E� Ed�D�� E �3D�@ D���D�D��3D���D�,�D��fD�vfD���Dӌ�D�ffD�)�DŠ DŌ�D�C3D�� D�i�D�VfD�\�D�|�D�
�D�i�D�
�D�s3D�s3D�\�D��3D� D�ٚD���D���D�� D7�fDJɚD��fD�� D�fD��3D���D~  Dz&fDu�Dp� D^�D\�{DZL�DY�DY�qDY�)DVP DS7
-DO��DKP DHj=DK��D>XRDG��D7�\D>��D7
)D\D(�D&�qD" �D\�D�qD{C�1�C��RC�  C�=C�G�C�.D�qD
�fD��D
q�D
�Dd{D
��D��C�1�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-A�Z
A�E�A�$�B I�BdZB��B gmA���A�$�B +B �BP�B
�B S�B  �B ��BF�B�B�B �bA�&�B ÖBy�B�BP�B��B �B iyB T�A���A�M�A��A�K�A���A��yA�ȴA�
JA�PA�{A�A�A�M�A�|�A�7LA�A���A�hA���A�A�t�A�O�A�RA�A�t�A�+A�?}A�VA�ĜA�M�A�&�A���A�A�A�(�A�\)A���A���B
DB��B�XB �A�
�A��`B �B,BK�B��BjB�3B�B��B �VB0!BN�BoB�RB�B+Bt�B�/B&�BoB��BŢB�BYB#�B�\B��B�+Br�B��B�B  BP�B
�B�qBbNBoB��B\B�FB$�B��B�fBM�B��B��B�B�RB��BǮB�BA�B��B�hB ��B\B- [...]
-A���A�n�A��A���A���A�`BA��A��FA��A�K�A���B �7A�G�A���A�I�B ?}B -A��jA�jA��FA��HA�I�A�A�=qA��A��RA�G�A�oA���A�%A�jA��uA��jA��mA�9XA�{A�z�A�1A��A�=qA��/A�|�A���A�$�A��A��jA�\)A��uA�
-=A��mA�A��-A��/A�jA�33A���B�BaHBN�B�B�B��BȴBw�B��B�HB�B 1'A� �A�
�A�Q�B bNBaHB$�Bn�BBs�B%B �FB +A�|�A���A��hA�^5A���A���A�
A��A�^5A�v�A�bNA�Q�A�z�A�XA�B W
-B �B ��A�ȴA��7A�dZA���A���A��yA��
-A�=qA�-A��A��A��/A��A�A�A�33A���A��#A�VB�By�A��uA�ƨA�XA�bNA���A��A��\A�E�A���A�oA��\A�I�A���A�ƨA��9A��hA�n�A�dZA��mA�I�A��A��
-A�=qA�x�A�C�A��+A�z�A��A�r�A���A�ĜA�Q�A�/A��A�;dA�1'A���A�n�A�\)A�{A�hsA��uA���A��7A��/A��^A���A���A�+A�1A�n�A��yA�1A�oA�9XA���A�|�A�Z
A�bNA�l�A��uA��A�M�A��;A�5?A�oA��;B �uB�{BXB�HB_;B 
�A��A���A��A��A��mB K�B v�A��A��FB A�B 0!A� �A�\)A�&�A�/A�jA�Z
A��+A��A�C�A���A�O�A�z�A��TA�I�A��A��;A�VA��+A�
A��;A�G�A�&�A�z�A�1A�bA��\A���A��;A�C�A���A�C�A��A���A�?}A�
�A�A���A�O�A�/A�A�Z
A�ĜA�  A�7LA�ȴA���A��A��`A�
�A��hA�{A��A�
�A�t�A�?}A�`BA��A��/A�jA�G�A��A�1'A�
�A���A [...]
-A���A�x�A���B m�B ��B K�B :^B ��B(�A���A�
�A�Z
A�oA���A��TA�$�A���A���A�(�A��B �LB{�B��B��B�Bs�B ��A�S�A��A�A�A���A���B '�B S�B B�A�r�A���A��DA�/A��/B �-B8RB��B�BB�B1'B �B\B ��B �B cTA�K�A��+A��A���A��
-A�XA�7LA��A�A�A�1'A���A��A�oA�x�A���A�Z
A���A���A���A��yA�+A��`A�/A�`BA�?}A�A��A���A��A�-A�A�`BA�A�A�A�A���A��A��!A�%A���A�A�1A�VA�x�A���A�z�A��A�;dA���A��;A�`BA�z�A���A��`A�&�A���A�I�A�+A���A�ƨA�1'A���A���A�?}A�
�A�Q�A�33A�{A�bA�-A�\A��A��A���A��HA�ƨAة�A�\)A�/A�+A���A���A�I�A홚AA�\A�p�A��A�+A�{A�5?A��uA���A�S�A��A�-A�
JA�bNA�A�A�"�A�A�p�A��A�1'A���A���A��A�9A�\A��A��A�DA�{A�/AA�A�bNA�C�AA�hA��`A��TA�n�A�A��A�A��A�A�|�A�
-=A�z�A�C�A� �A�r�A��TA��A��A�{A�A���A�wA��A�VA�
-=A�?}A� �A�
A�VA�
�A��A���A�M�A�I�A�^A��A��A�~�A��A�G�A�(�A�"�A�XA�S�A�DA�l�A�M�A�K�A�wA�K�A��A�bNA�&�A�"�A�A�\)A��yA�!A�A�n�A�33A�7A�jA��A�I�A��A�jA�+A�`BA���A�=qA�hA�
�A�  A��TA�ĜA��A���A�M�A�1'A�oA��A�bNA�A�9A�z�A���A�!A���A�hA��mA�VA�ĜA�5?A�jA�wA��A�A�A��A���A�FA�z�A�^5A�^5A�&�A��A��A�G�A�(�A�z�A�^5A�A�A�uA�v�A��yA���A�
�A�
A��A�l�A�ffA���A�|�A��A�bNA�E�A�bA�n�A�t�A�ƨA��A�
�A���A��`A�7LA���A�~�A�bNA�33A��A�
�A�n�A�!A�O�A�1'A��/A�=qA�1'A�RA�
�A�n�A�Q�A�5?A�%A�z�A�M�A [...]
-=A��A���A�"�A�1A��A�=qA�G�A���A�bA�`BA�E�A�+A�VA�+A�5?A�O�A埾A��A�x�A�\)A�A�uA�
-=A�RA�ĜA�=qA�\A�r�A�XA�=qA�/A��A�A���A�{A�"�A���A��#A�XAߥ�A�+A�VA�ȴA�XA�-A�
A�S�A�9XA�
�A�bA�
A���A�FA�?}A�hA��TA��A�-A�oA���A�n�A��mA啁A�VA�^5A�Q�A��A�
�A啁A�^5A�bNA��
-A�K�A�7LA�\A��yA��A�(�A��`A�jA�^5A�A�uA�
JA��A��A�uA�7A��A��`A�(�A�  A�x�A��
-A���A�C�A�(�A�VA�^5A�C�A�(�A�z�A�
A��mA�(�A��A��mA�`BA��#A���A��A���A��#A���A��A�-A�oA�XA���A�PA�oA�PA�=qA�Z
A��A�\A�
-=A�Z
A�K�A�1'A�A�\)A��
-A�jA��A��A��
-A�jA�C�A���A��A�jA��`A�(�A�;dA��A���A��TA��A�A��A��`A�bNA�G�A�/A�~�A�l�A�jA�
JA��A�A��TA�`BA�oA�-A�|�A���A��#A�Z
Aܧ�A���A�E�A�`BAܩ�A܏\A�v�A�^5A�C�AܓuAܮA���A�K�A�7LAޅA�33A�{A�dZAܲ-Aܙ�A��A���A�|�A���AܶFA�A��A�ffA�~�A�  A״9Aכ�A��A�hsAڶFA�%AڅA�jA��A���A� �A�1A�"�A��
-A׾wA�=qA��A��A���A�A�A�\)A�oA�+A��;A�ĜA٬AؓuA��HA�dZA�K�A�33A��A֛�AփA�jA�O�A�AׅA�l�A׺^Aס�A�"�A֥�A֍PA�A�A���Aץ�A��A�t�A���A֬A�/A֮A�`BA��TA���Aֲ-A�dZA��`A���A�M�A֝�A� �A���A�Q�A�%A��A�9XA�S�A�=qA���A�C�A�Z
A��#A�^5A�oA���A�|�A՛�A��A���A�Q�A�A��mA�5?A�
�A�A��A���A�XA��#AՏ\A�x�AՑhA��;A�ƨAծA�  AԃA�1A�S�Aԟ�A�$�A�
JA���A�x�A�ĜA�C�Aԏ\A��/A�(�A�C�A�+A�|�A�
A�M�A���AԃA�%A��A�;dA�VAԡ�AԋDA�x�A���A��A�bA�ffA�Z
A���A� �A�  AѮA�ƨA�oAљ�A��A�t�A� �Aѝ�A��A��A�bNAЮAЕ�Aа!A��� [...]
-=A���Aǟ�A���Aǥ�A�
�AƓuA�hsA�=qA�oA��mA��A�M�A�"�A�$�A�XA�-A�
A��
-A�O�A���A���A�E�A�v�A�M�A�Q�A��;A�oA�t�Ať�A�1A�;dA�bA��`A��A��A�A�ƨAŝ�A���Ať�A�
�A�ƨAě�A�{A��A�dZA�;dA�oA�C�A�v�A�M�AîA��HAöFA��yA���AÕ�A�l�A�C�A�G�A�z�A�O�AÃA��TA�t�A���A�1Aŗ�Aŝ�A���Aŧ�A��#AŰ!AŇ+A�^5A�33A�9XA�VA�A�A�v�Aũ�AŮA��HA��A��
-AǗ�A�(�A��A�O�A��TAɺ^A�1'Aȧ�A��A�|�A�jAć+A���A�ĜA�?}A�`BA�
JA��7A�`BA�7LA�bA�A�A��A�
�A�Q�A�+A�
A�5?A�hsA�?}A��A�
�A���A���A�x�A�~�A��!A��TA��A��A��A���A���A�|�A�VA�/A�%A��;A��RA��A�ĜA���A���A���A��A��9A��PA��hA�jA���A�v�A�O�A�(�A���A��A�Z
A�1A��+A��^A���A���A���A���A��A��-A��DA�dZA��`A��wA�A�A��A���A���A���A��A�\)A�7LA�hsA�C�A�
�A���A�+A�A��;A��RA���A��A���A���A��A��-A��PA�hsA�C�A�
�A���A���A��A��7A�dZA�?}A��A��A���A���A��A��RA��uA�n�A�I�A�$�A�  A��#A��FA��hA�n�A [...]
-=A��yA�ȴA���A��A��RA���A�ȴA���A��
-A��FA���A�t�A�%A��`A�ĜA���A��A��9A��uA�r�A�S�A�33A�oA���A��A�{A��A���A��9A��`A�ĜA��A���A��9A��jA���A�|�A�^5A�?}A�n�A�M�A�/A�^5A�?}A�n�A�O�A�/A���A���A��A�dZA�C�A�$�A�%A���A�z�A�Z
A�;dA���A��!A��hA�r�A���A��A�dZA��uA�t�A�VA�7LA��A�G�A�(�A�
-=A��A��A���A�A��`A�ƨA���A�=qA�
�A�
A��jA���A�33A��A���A��PA�p�A�Q�A�5?A��A�E�A�&�A�VA�7LA�?}A�n�A�O�A�~�A�`BA�C�A�$�A�1A���A��A�dZA�E�A�(�A�
JA�9XA�
�A���A�-A�5?A��A���A�(�A�
JA��A���A��9A���A�/A�bA��A��
-A��^A���A��A��A��hA�t�A�XA�;dA�
�A�
A��`A�ȴA�bNA�E�A�(�A��mA���A���A��FA���A�|�A��A��\A�r�A�
JA��A���A��RA���A�~�A�dZA��hA�t�A���A��+A�jA�M�A�33A��A���A��;A�A���A��DA�p�A�S�A��A�ffA�n�A�Q�A�~�A�dZA�G�A�-A�bA���A��hA�v�A�7LA��A�$�A�1A�5?A��A�  A��TA�ȴA��A��hA�v�A�\)A�A�A�$�A�
-=A��A���A�
A��mA���A��!A���A�33A��A���A��TA�ȴA��A��uA�x�A�^5A�C�A�(�A�VA��A��A�%A��A��A� �A�%A��A���A��FA���A�;dA���A���A��A�jA�O�A�5?A�
�A�
A��mA���A��9A���A�ƨA��A��uA�x�A��A��A��uA�z�A���A��DA�r�A�XA��A�jA�t�A���A��A��-A���A�ĜA���A��hA���A�^5A�C�A��`A���A�l�A�S�A���A��^A���A��+A�n�A�S�A�;dA�"�A�
-=A��A��uA�z�A�bNA�G�A�/A��A�A�A�(�A�bA���A��;A�ƨA��A��uA�z�A�bNA�I�A�1'A�;dA�"�A�M�A�5?A�
�A�G�A�/A��A���A��`A���A��9A���A��A�jA�Q�A�;dA�"�A�
-=A��A��A���A���A��hA�7LA�
�A�%A��A��
-A�  A��yA���A��RA���A��7A�p�A�Z
A�A�A�(�A�S�A�=qA�$�A�
JA���A���A��mA���A���A�~�A�$�A�VA��FA���A��+A�n�A�XA�A�A�(�A�oA���A��TA���A��FA���A��+A�p�A�XA�A�A�+A�S�A�=qA�ffA�O�A�Z
A�A�A�+A�{A���A��mA���A���A��TA���A��9A���A��+A�p�A�Z
A�C�A�-A�{A���A��mA���A��^A��`A��PA�v�A�`BA�I�A�33A��/A�%A��A��A�A�-A�7LA� �A��yA��uA�|�A�&�A�oA��jA���A��\A�z�A�E�A��A��A�ĜA�p�A�Z
A��A�l�A�VA�~�A�jA�S�A�  A��yA���A��A�-A���A�
A��A�{A�  A�&�A�oA���A�$�A�bA��jA���A��hA�|�A�(�A�{A���A��y [...]
-A��A�AXA/A%A~�/A~�9A~�DA~bNA~9XA~bA}�mA}��A}��A~
�A}�A}��A}��A}
A|�A|�!A|M�A|$�A{��A{��A{��A{�Az�`Az�jAz�uAzjAzA�Az�AzffAzA�Az�Ay�AyƨAy��Ayx�AyO�Ay&�Ax��Ax�Ax�!Ax�+Ax^5Ax9XAw��Awt�AwK�Aw&�Awp�AwK�Aw"�Av��AwVAv�yAv��Av��Avr�Av��Av��Avn�AvI�Av �Au�Au`BAu7LAuoAt�yAt�DAtbNAt=qAt{As�AsXAs/As
-=Ar�HAr�jAs%Ar�HAr�jAr�uAq��Aq�
-Aq?}Aq�ApI�Ap �Ao��AodZAo?}An��An�Am�FAm
�Al�DAl-Ak��Ak%Aj=qAi��Ai�Ah�Ah(�Ag��Ag%Afr�Af�Ae�Ae��Ae�Ae�wAf1Ae�TAe�wAf1Ae�TAe�wAe/AeVAd�yAdĜAd5?AdbAc�^Ac��Acp�AcO�Ab��Ac%Ab�`Ab��Ac?}Ac�AcdZAc?}Ac�AcdZAc?}AcS�Ac��Acx�Ac�wAd1Ad�AdbNAd�Ad�Aep�Ae�^AfAf{Ae�Af9XAf�AfbNAf=qAf�Ae�Ae��Ae�Ae�7AehsAeC�Ae"�Ae33Ae|�AeXAe7LAe�Ae\)Ae7LAe�Ad�Ad��Ae�Ad��Ad��Ad�!Ad�DAdffAdE�Ad �Ac��Acp�AcO�Ac+Ac
-=Ab�`Ac/Ac
-=Ab�yAbĜAb��Ab~�Ab�uAbr�AbM�Aa��Aa��Aa�-Aa�PAal�A`�HA`�jA`��A`�`A`��A`��A`�!A`��A`�A`�9A`�uA`�A`�RA`��A`v�A`Q�A`1'A`bA_�A_��A_��A_�7A^��A_C�A_"�A_
A_G�A_\)A_7LA_�A_`BA_;dA_�A_dZA_��A_�wA_��A_x�A_XA_
A^v�A^VA]��A]C�A]"�A\bNA\A�A[�^A[��A[oAZ�AZ��A[�AZ��A[;dA[�A[`BA[t�A[S�A[��A[x�A[�wAZffAZE�AZ$�AZ1AY�mAYƨAY��AY�AYdZAYC�AX�AX��AX�!AX�\AXn�AXM�AX-AX
JAW�AW��AW�AW�PAWl�AWK�AW/AWVAV�AV��AV�AV�\AVn�AVM�AV-AVbAU�AU��AU�AU�hAUp�AUO�AU33AUoAT�AT��AT�9AT�uATv�ATVAT5?AT�AS��AS�
-AS�^AT1'ATbAS�AS��AS�-AS��AS�
-AS�^AS��AS�AR��AR��AR$�AR1AQ�mAQhsAQG�AQ+AQ
-=AP�AP��AQoAP�AP��AQ�AQ+AQVAP�AQ33AQoAQXAQ7LAQ�AQ`BAQ?}AQ"�AQ
AP�`APbNAPE�AOƨAO��AO&�ANv�AM��AMx�AM+AL�AL�\ALn�ALQ�AL5?ALv�ALZ
AL��AL�!AL�AM33AMG�AM+AMl�AMO�AM�hAMt�AMXAM;dAM�AL��AL~�ALbNAK�TAKƨAK�AJ��AJ~�AJAI�FAI��AI|�AI`BAIC�AI&�AI��AI�
-AJI�AJ-AJn�AJQ�AJ5?AJ�AI��AI�;AIAIG�AI+AI
-=AH�AH��AH�9AH��AHz�AH1'AG�FAG��AG|�AG
AF�`AG&�AG
-=AGK�AG`BAGC�AG&�AG
-=AF�AG/AGoAF��AFz�AF^5AFA�AE��AE|�AEdZAEG�AD��AD�!AD9XAD
�AC��AC�FAC?}AC"�AC
-=AB�AB��AB�9AB��AC%ACG�AC+ACoACO�AB�AB�jAB��AB-AA�TAAƨAAO�AA7LA@��A@��A@�+A@ȴA@�A@�uA at vA at Z
A at A�A@$�A@
JA?��A?x�A?%A>�jA>��A>-A>{A=��A=�A=hsA=O�A=�PA=�A<��A<�`A<ȴA=
-=A<�A<��A<�RA<��A<�A<jA<Q�A<5?A<r�A<Z
A<jA<Q�A<�\A<
�A;�
-A;dZA:�A:�A:�uA:v�A:^5A:E�A:VA:=qA:z�A:^5A:E�A:�A:jA:z�A:�RA:��A:�+A:jA:Q�A:9XA: �A:A9�A9��A9`BA9G�A9+A9oA8��A8�9A8��A8�A8ffA7��A7�;A7l�A7S�A7;dA7"�A7
-=A6�A6��A6�jA6��A6�HA6ȴA6�!A6�uA6z�A6bNA6I�A61'A6�A6  A5�mA6 �A61A5�A5�
-A5�wA5��A5�PA5
�A5%A4�A4��A4�jA4��A4�DA4r�A4Z
A4A�A3��A3�^A3��A3�7A3p�A3XA3?}A3|�A3dZA3K�A333A3�A3
A2�uA2z�A2bNA2 �A1�FA1��A1�A1l�A1S�A1;dA1x�A1`BA1G�A1/A1�A0��A0�yA0z�A0bNA/��A/�TA/��A/�-A/��A/XA/?}A/+A/oA.��A.�RA.��A.�DA.r�A.Z
A.A�A.A-�A-��A-�^A-��A-�PA-K�A-7LA-
�A-%A,�A,�A,��A,�A,jA,Q�A,=qA,$�A,
JA+��A+�FA+��A+�7A+p�A+\)A+C�A++A*�A*��A*��A*��A*�uA*z�A*bNA*M�A*5?A)��A)�;A)��A)�-A)��A)�A)p�A)XA)C�A)+A)�A(��A(��A(��A(�uA(z�A(ffA(M�A(9XA'\)A'��A'�A'hsA'��A'�PA't�A'`B [...]
-=A��A�TA+A�A�AAݘAA��A�
A�sA�3Ah�A
�A�DA�VAhsAU2AA�A.�AqA�UA�A��A��A��A��A��A��A�AƨA�hA��AFtA�A�FA�nAJ#A7LA$tA�A��A��A!A
JA?�A-A7A*�A�A�A�BA�jA��A��A�
A�QA��A�
A�A��A��A�!A��A��AxlA�A
A�DA��A�gAA�!A��AE�A�A�]A��AOA=A*�A+A%A�NA�HAh
-AVA�.A�)A��A��Ar�A�A��A�A��A�`A�ZA'�AMAHAXA�rAxlA!�A�AیAA AɆA0UA��AdZAR�AA A/�A
�AOA��A��A~�Al�A��A��A{JA��A��A��A��A�)A��A�YA1�A�A
˒A
w2A
DgA
�oA
�xA
H�A
�A
SA
�A
��A
��A
~�A
m]A
��A
��A
�jA
�6A
�A
��A
��A
�fA
w2A
e�A
T�A
C�A
2�A
!�A
-�BA
-�IA
-�A
-9�A	��A	�
-A	�?A	�tA	�@A	�uA	��A	��A	��A	� A	�4A	oiA	^�A	M�A	=A	,=AںA��A��A��A��A�+A6zA%�A��A�A��A�aAsAbNAQ�AA�A1'A �A�A��A.�A
OA
�A��A�)A�IA��A|�Al�A\)AK�A;dA��A	A
-�A�DA�KA��A��A��A�>A�EA��A�
-A%A�+A��A��A�A�A�&A�,A��A��A�nA�uA�{A�-A�4A��A�vA�A��A�5A�;A�BA��Ao�A_�A4A�AѷA��A��A��A�[A�
A�A=qAMA{�A��A��A��Az�A+�A�/A�A_�A�[A�@A�A�qA!�A�gAjAZ�AJ�A;dA,=AZ
Ah�A�SA�+Aw�Ah
-A��A�aA��A iA-�A
�A(AA��A
A �AA +@��`@��
-@�S@��r@��'@�
�@��@��@���@��@�v�@�YK@�;�@�
O@�  @�Xy@�u�@��p@�&�@��0@��D@��@�
@�[W@��t@�J�@���@��+@��v@���@�-@��$@��?@���@��@��Z@���@�C�@�&@��@��!@��@��]@�k�@��@�
x@�y�@���@�� @��~@��@�z@��@�K�@�<@�@��@�g8@�K^@�@�@�@�j@��@�ݘ@�3�@��@�m�@�Q@�4n@��@���@��;@�@��@��a@�@�	@�m]@�Q�@�4�@���@���@�4n@��@�+@���@�
@�5�@��@���@��@�X@���@�p�@�S�@��@�9X@�q@�X@���@�?@�#:@�_p@��,@�I�@�-�@��#@�P�@�5�@��@�.@�tT@�YK@��}@�#:@�1@��)@�@�@�:�@���@�e@�m�@��'@�L@�D@� �@���@�Z�@�?}@�$t@� [...]
@�h@�
�@�r@�_@߸�@ߟV@�
C@��@��@�a�@��v@��3@�(@���@�u�@�\�@��@��m@ج�@ؔF@�
@�dZ@��@��p@ֵ�@֞@օ�@�m�@�U2@֢4@։�@�q
@֌@��@��U@֨�@�+k@��
@�c�@�K�@��B@� �@�	@ӍP@�u�@�]�@�F
@�.I@��@���@��@��
-@�\)@а�@��g@�\)@�@��P@��`@�͟@ζ�@���@��@�e,@�N<@Ϙ�@��@��@���@�xl@�a|@�J�@�2�@��@��@���@�v`@�_p@�Y@� i@��y@�҉@���@�5�@�
�@�iD@Ͳ�@��d@͵t@͞�@͇�@�@O@�ȴ@̱�@̚�@̃�@�m�@��@���@��@�dZA��L2�BD+75d325   O5p  A��08:10:49.31+74:57:57.5@^�&:���@R��}'�}  �EH  EH EH  EH0 EH@ EHP EH` EHp EH� EH� EH� EH� EH� EH� EH� EH� EI  EI EI  EI0 EI@ EIP EI` EIp EI� EI� EI� EI� EI� EI� EI� EI� EJ  EJ EJ  EJ0 EJ@ EJP EJ` EJp EJ� EJ� EJ� EJ� EJ� EJ� EJ� EJ� EK  EK EK  EK0 EK@ EKP EK` EKp EK� EK� EK� EK [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
 G(T G'$ G&E G%� G$� G#� G"� G!� G � G!W G!� G!� G!W G!> G � G N Gx G
� G
@ G
� G
z G
� G
� G
� G
_ G� G� G] GE G- G G� G� G G� GU G= G� G� G� G� G� Gf G� G� G� G\ G� G| Ge G G� Gp G G� G} Gf GO G8 G� G� G� GS G< G% G G� G� Gd G� G� G� Gb G� Gz Gc G G� G� G] G� GB G� G� Gx G� G� G� Gw Ga G� G� G� GM G7 G
� G
� G
� G
� G
� G
r G
\ G
G G
� G
v G
� G
" G
-i G
- G	� G	� G	s G	
 G	 G� G= G( G G� Gj GV G� G� G� G# G� G� G� G� G� G� G� G	  G	, G	x G	c G	. G� GC G G� Gf G� G| Gh G G� G
 G� G� G� GD G� G� G� G3 G] Gh G� G� G� G� G� Gn G G� G� G G� G� G2 G� G
 G� Gj G8 G% G G � G � G ^ F�h F�� F�� F�� F�X F�2 F�
 F�^ F�� F�� F�� F�& F�v F� F�� F�� F�� F�D F�n F�� F�8 F�b F�� F� F�� F�� F�� F�� F�b F�� F�� F�^ F�8 F�N F�� F�� F�� F� F�z F� F� F�~ F�Z F�6 F� F�b F�> F� F�� F� F� F�� F�J F� F�� F� F�
 F�j F�� F�� F�$ F� F�t F�0 F�" F�p F�� F�@ F� F�� F�� F�0 F� F�� F�� F�8 F�p F�t F� F�
 F� F�n F�L F�* F�v F�T F� F�" F�  F�� F� F� F��  [...]
- F�F F�L F�
 F�� F�� F�: F� F�$ F�� F�� Fݶ F�. F� F�� F�� Fܮ F�� F�j F�� F�* F�
- Fل F�d F�D F�& F� F�� F�� Fب F�� F�j F�J Fْ F�r F�T F�4 F� Fؐ F�p F�R Fؘ F�x F�Z F�: F׶ Fט F�x F�� F֢ Fք F�f F�� F�� Fդ F�" F�� FԲ F�0 F�v F�X F�8 F� FӘ F�z F�\ F�> F�  FҞ F�
 F�� F�N F�� F�
 FϜ F�~ F�  F�D F�& F� F�� F�0 FϤ Fψ F�� F�L FΜ Fͼ F� F̐ F�t F�X F̚ F�~ F�  F�� F�f Fʺ F�� F�4 Fȸ F� F�� F�� FǺ FǞ Fǂ F� F�� F�r F�V FŮ F�� Fļ F� F�� F�� F�� F�L F�0 F� F�� F�� F�� F¨ FŒ F� F�r F�� F�� F�. F�� F�p F�� F�� F�� F�� F�� F�� F�� F�� F�� F�� F�n F�T F�: F�� F�� F�p F�� F�� F�   [...]
- F�l F�T F� F�B F�* F�� F�2 F�z F�� F�
- F�� F�> F�� F�� F�4 F�� F�B F�� F�z F�� F�� F�& F�� F�H F�� F�, F�b F�� F�� F�� F�
 F�z F�� F�� F�� F�� F�� F�� F�� F�� F� F�� F�H F�� F�X F�� F�� F�T F�� F�v F�` F�J F�4 F�
 F�� F�X F�B F�� F� F�L F�8 F�n F�X F�B F�, F�� F�� F�� F�
- F�B F�, F�d F�N F�8 F�" F�Z F�j F�� F�� F�v F�` F�J F�� F�^ F�� F�� F�j F�T F�� F�B F�� F�� F�D F�. F� F�P F�� F�� F�� F�� F�� F�B F�, F�� F�� F�z F� F�� F�� F�d F� F�� F�  F�x F�� F�� F�� F�  F� F�� F�� F�  F�V F�� F�� F�� F� F� F�L F�~ F�j F�� F�@ F�, F�� F�� F�6 F�� F�� F�d F�P F�< F�( F� F�  F�~ F�  F�� F�D F�� F�  F�� F�h F�2 F�
 F�
- F�� F�� F�� F�� F�� F�� F�� F�
 F�
- F�� F�* F� F� F� F�H F�4 F�  F�
 F�� F�� F�� F�T F�� F�6 F�� F�� F�� F�h F�� F�P F�� F� F�� F�j F�� F�V F�� F�� F�( F�� F�� F�� F�t F�b F�P F�� F�� F�� F�� F�` F�p F�� F�� F�" F�R F�� F�p F�� F�� F�$ F�v F�d F�� F�� F�� F� F�� F�� F�� F�z F�F F�� F�� F�� F� F�� F�� F�Z F�H F�� F�~ F�* F�� F�d F�� F�^ F�� F�X F�� F�V F�� F�� F�f F�� F�� F�: F�� F�� F�� F� F�B F�� F�� F�h F�� F�� F�2 F�` F�� F�� F�
 F�: F�� F�� F�� F�� F�$ F� F�B F�0 F�� F�n F�^ F�L F�: F�� F�� F�� F�� F�� F�� F�� [...]
-� F� FfF�Fk�F� FjfF� F	M�F
fF
-� F
-� F
-��F
-� F
-�fF
-�3F
�F
r�F
fF
;3F
G3FfF  F͚F�fFl F՚Fb F� F�F\�F<�FbfF� Fh Fk3F��Fp�FP�F13F�F�F� F�fF��F. FfF�3FϚF�fF��FO�F0fF3F� F��Fo�F
�F�Fi3FJ�F�fF� FhfFJ F+�F
��F
�fF
lfF

�F
�F
ϚF
o3F
0 F
fF
�fF
S3F
5�F
-�fF
-� F
-9�F
-
 F	� F	��F	��F	3F�fF��F-�Fp�FfF�fF` FhfFr�F`fFnfF B E�� E�G3E�q�E��E�k3E�� E�w3E�i�E���E��fF )3F=�F6 F� Fq3F��F�3F��F� F�fF)3F��F��F<�F" F��F� F7�F
�F �3F �fF ��F t�F ZfF ?�F $�E�` E�*fE���E���E�� E�W3E�"fE��fE�l�E�8�E� E��3E��3E�ffE�2fE���E�3E��3E��3E�{3E���E���E�i�E���E���E�Y�E�vfE�D E�� E�h�E�6fE�3E�\�E�� E���E�� E��E�3E�E�� E�fE�x�E�� E�i�E�8 E��E�c3E�2fE�3E�^fE��E�S3EEE���E� E���E�8�E��E�i�E�:fE�d�E��fE�3E���E� E�d�E���E癚E�k3E��3E��E�rfE�D E�� [...]
�E��3Eׅ�E�( E���E֠ E�C3E��Eռ E�_3E�5�E�ٚE�|�E�S3E��3EӜ E�@ E�fEһ3E�` E�h E�� EѲfEщ�E���E���EЬ EЃ3E��fEϞfE�u�E�L�E��fEΚfE��E�� E�.fE�fE�}�E�VfE��fE˦fE�NfE�'3Eʠ E�x E�P�E�)�E�fE��fEɳ3EɌ E�fE��3Eȸ E�33E���E�X E�1�EƬ�EƆfE�� E�P�E�*fEħ3Eā�E���EêfE�(�E§3E�T E�.fE���E���E�c3E�=�E��E���E�s3E�NfE�)�E��E�� E�`�E�fE��fE�k3E��E���E�K3E��fE��fE�Y�E�5�E���E���E���E���E�L�E�њE��fE��3E���E�jfE�G3E��fE�(�E��3E�
 E�� E��fE�$ E���E�� E�� E�~fE�:fE���E��fE�,�E��3E�� E� E�, E�H�E��fE��3E�fE�0�E�_3E [...]
�E���E��3E�d�E��fE�� E�H�E�*fE�
�E��fE�� E�ffE�H E�*fE�
�E��3E�_3E�A�E�$ E�fE���E�3E�fE��3E��fE���E�0�E�3E��3E��fE�q�E�	�E�� E��3E��fE�'3E�
-fE�� E�� E�k3E���E�� E�� E�BfE�%�E���E���E�� E�l E��3E��3E�c3E�G3E��3E�� E�� E�l�E�P�E�5�E��fE��fE�T E�8�E�՚E��3E�| E��E��3E�� E��fE�g3E�fE�� E���E�L�E�2fE�3E��3E���E��fE�g3E���E��3E���E��fE�73E�
�E�fE�� E���E�o3E�U�E�;3E��3E���E��3E�)�E� E��fE���E�3E�e�E�*fE��E��3E��fE���E�h E�
3E��fE��fE�\ E�BfE�)�E��fE���E�ZfE�@�E��fE�͚E�� E�{3E�bfE� E��3E���E�|�E�d�E��fE��fE���E���E�H�E�0 E� E�  E�� E��3E�w3E�_3E�G3E�/3E�3E��3E�� E�p E��E� �E���E���E�zfE�C3E�+3E� E���E��fE�P E�8�E�!�E�� E [...]
�fE
��E
�3E
vfE
@ E
+3E
��E
�fE
��E
s3E
� E
k3E
VfE
� E
�3E
�fE
` E
K3E
-��E
-� E
-��E
-VfE
-A�E
-.fE	� E	�3E	� E	�3E	� E	s3E	
fE		�E�fE��E�fE��E�fEq�E^fEI�E6fE�3E�fE�3EffE3E� E��E9�E&fE��E� ENfE��E� Ex Ed�EQ�E>fE��EٚE�fE�3E� E��E;3E)�EfE3E� E� El�E[3EH E4�E!�E E��E��E��E�fE8 EfE �3E ��E ��E � E 0 E 
fE 
3D��3D�S3D���D��3D�` D�9�D�fD�� D���D��fD�	�D��fD��fD��D��fD�,�D�fD�0 D��fD���D�ٚD�fD�l�D��3D�  D���D�FfD�vfD�� D�I�D�y�D��3D�P D� D�|�D� D��D���D�ffD�FfD���D�ɚD�fD�fD��D�y�D�ɚD�fD�fD��3D� D�9�D�fD�ffD�\�D��D���D�3D��3D�Y�D� [...]
-Dw>Dv��Dv�\Dvq�Du�
-DufDtL)Ds��Ds,�Drd{Dq�fDqG�Dp��Do�3Doe�DoI�Dn�{Dm�RDml)Dl�RDl
qDkZ�DjФDjFfDi�)Dii�DiNDh�Dh��Dh��Dhs3DhXRDh<�Dh!HDhs�Dh�\Dh��Di4{Di�
-DjHDi��DjH�Dj-qDj��Dj�)DiۅDi� Di�{Di�Dh��Dh@�Dg��Dg��Dg{Df��Dfq�Df �Df�De��De� DeH�De.�De�Dd��Dd޸DdXRDd=qDd#3DdRDcL�Dc2�Db��Db��DbDa�3Da9�D`��D`��D`�D_��D_��D_�D_z�D_aHD_|)D_a�D_�HD_��D_�
-D`l)D`��Da
�Da�HDa�HDa�
-Db�Db2�Db�3Dbh�DbO\Db5Da� Da`�D`��D`D`?\D`%D_mqD^�=D^ФD^ND^4{D]}qD\�)D\�D\-qD\�D[�3D[�DZ��DZEDY�DYE�DX�3DX{DW��DW}qDV�)DVN�DV5�DV
qDU� DU��DUn�DT� DT��DT*�DT�DS�fDSL)DS4{DS
)DR��DR�RDRp�DQ�DQ��DQ�DQ�qDQ2�DQ�DQ�DP��DP�3DQ
qDQ�DP�DQ8�DQ!HDP�fDP��DPDOj=DN�HDNxRDN0 DM��DM� DM�RDMqHDMY�DM�3DM�)DMt{DM]qDL�DL�DLVfDK��DK7�DJ1�DI\�DH��DG�{DG@ DF˅DF(�DE�DEA�DE+�DEDD��DD�RDE.�DE�DE_\DEH�DE2�DE�RDE��DE{�DEeDEN�DD�qDD�
-DD${DC��DCHDB� DB.DBRDAy�DARD@�D@��D at lD at W
-D at AHD?�D?��D?�3D?c3D?MqD?8RD?"�D?
qD?Q�D?i�D?��D?��D?�3D?nD>��D>�)D>�fD>7
-D>!�D=�3D=�D=��D=��D=��D=�)D=�
-D=�HD=�)D=�
-D=8RD=#3D<�D<��D<��D=(RD=3D=*=D=n�D=Y�D=D{D=/\D=s3D=^D=H�D=�=D=��D>ɚD?�D?S3A�F�{LTT3218     DA   A=08:41:34.10-32:57:00.1@`L��X�%�@y����n   �EN@ EQ` ET� EW� EZ� E]� Ea  Ed  Eg@ Ej` Em� Ep� Es� Ev� Ez  E}  E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  Eɐ E�  Ḛ E�@ E�� E�` E�� EԀ E� Eנ E�0 E�� E�P E�� E�p E�  E� E�  E� E�@ E�� E�` E�� E� E� [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-D#%D�3D�=DJ=DٚD�)DmqD
��D	��DI�DS�D�qC��{C��fC��C��C���C���C݌�C�aHC�T{C�*=C�NC�aHC�
)C�ǮC�7
-C�u�C��C���C�:�C��
-C�H�C��)C�H�C���C��=C�^�C�h�C��C�.CB��CVW
-C�ǮC��C��3C��=C��3C�ǮC��{C}Cw��Cb5�Ca��C_��C]#�C`��C`�{C\��CY\)CTxRCP�fCM�CH�fCE�CC�C=��C::�C,�\C�)C%�C�RC�=C�fC�B�k�B���B�u�B�ffBѳ3B�z�B�B�B�B�CJ=C� C�fC
�\C  ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
- F
-P F
-� F
-� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F  F P F � F � F! F!P ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
- at I��I���I��`I���I� I�� I��`I}� I]� IT� It�@Iw� Iq;�Ip��Iq�`InǀIk� Ig6�Ia�@I`��I]w�I\�IZ�IXP at IU�@ISE�IQa at IOQ IM� IK�@IIF at IG� IE�`IC��IA\ I?��I=� I;�@I:(@I8�I6��I4��I3�I1 I/`I-d I+�@I*
�I(�@I'6�I%T`I#��I!� I �@I3�I
!�I`�I��I��I��I�I� I�@I��I�@I
�I
H�I
�`I
-��I	ڠI��I@I� I<�I}�I �@H��@H�V�H�s at H���H���H� H���H�`@H� H�T H��@H���H�[�H�5 H��H�= H�x�H�N�Hڑ�H�t�H�� H��@H�f�H�~�H�@H��@Hʣ H��H�>�HƂ�Hņ@Hċ H�5�H���H�
�H�Y�H�	@H���H�T�H��@H�q H��H���H���H�� H�@H��@H�-�H���H�:�H���H�b H���H�� H�ÀH���H�[@H�F�H���H�6 H� H��@H��@H�� H�> H��@H���H�X�H�J�H���H�. at H��H�� H���H�)�H�, H���H}M HsH Hv� H~ Hs��Hr
 Hq� Ho� Hpz�Hq݀Hs�Hs��Hq� Hp� Ho��HnC Hl� Hj�Hi� Hg� Hf��He:�Hc �Ha  H_m�H\ـH8� G��G�� G� H! H>� HK� HP"�HP� HO� HN" HL&�HJ �HI�HH*�HG+�HF [...]
�H?��H?�H>K H=� H;b H:J H9_ H7� H65 H5' H4��H3
�H1��H0 H-f H(* H"U�H
��H
� H   H"
-�HT H�HG H� H*�Hn H� H� H�H��H�Hr�H��HL�Hs HV H. Hr H� H��H
�H��H��H	A�H
��H- H �HF�H= H
6 HA�H
��HD�G�� H� H	� H
-'�HĀH� G�� G�� G�� H$�H	 H{�G�� G� G�
- G�R G�ÀG� G�c G�f G�` G� G� Gߧ Gۜ Gؤ G� G�# G�] G�d G���GϷ G�� G�} G�� G���G�� G���G�c�G� G�] G�C G�� G�2�G�� G�� G�� G�� G�� G��G�� G�� G��G���G�� G�� G�� G�7�G���G�N G�a�G�� G�� G�� G���G��G�׀G�C�G�� G�
 G�M�G�� G�� G�� G�� G�v G�׀G�-�G�$�G�E G�� G�: G��G�8�G�u�G�|�G�C G��G�H G�ӀG�ÀG�U�G��G�
- G�� G��G� G�� G� ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-D"l)D"�)D#��D$9�D$\D#��D#*�D#]qD#j=D#�qD#��D"��D!�{D aHD@ D .�D!
D!P�D!]qD ��D� D
ED
3D��D�\D%D
�DФD�\D3DH�D\Dp D˅DK�D3�Db�D�{DfD{�Dc�DL�D5D�DC�D,�D8RD�fDX�DAHDp�D�D�D5D��D�D��D3D�RDp D�HDU�D,)D� DeD��D��D�HDu�D
�DfD3�D`�Dl)D��D��D� D�qD��DҏD�)DAHD
��D
�\D
�)D
�fD
,�D
��D
�D
�HD
��D
��D
D
\D
�=D
�{D
l)D
-�3D
AHD
� D
��D
1�D
�3D
�qD
3�D
�3D
-��D	[�D{D�\D��DE�D��D��D�D2�D
DhRD��D_\DJ=D�DaHD��D�RD�3D�D	:�D	%�D	�D��D�fD1HD\�DG�D33D�D��DD@ DK�D׮D�DR�D�D�qDy�D��D�DRD��D˅DUD��D
�Dz�D'�D3D>D��D�3D@�D,)Du�D��D.�D��DJ=D��D�D�HD�qD��D7�D��DҏD:=D�3D�qD׮D��D3�D��DfD��D8RD��D${DND�{D��Do\DD ٚD /\D �3D�DaHD��D �\C�xRC�ٚC��3C�C�XRC�1�C��3C���C�
)C�~�C���C�nC�^�C��=C�eC�@ C��=C�C�C��C��C�
�C��)C��HC��
-C���C��3C��qC��3C���C�<)C�RC��3C��\C��3C���C���C��=C�k�C�G�C�C��C���C�c�C���C�o\C�K�C�'�C�C�l�C��RC�AHC��C�P�C�)CC�=qC퐤C�xRC��fC�U�C�HC�\)C�p�C�
-C�+�C��C�k�C�'�C�C��C�P�C뾸C�)C�B�C�  C��qC��C�^�C뫅C��RC�
�C��=C�!HCꐤC�  C�8RC��C�fC�eC谤C��)C���C�J=C�)C���C�g�C�ٚC�RC�
-C��HC�c�C�AHC�  C���C��qC�)C��RC�k�C�޸C�qC��C��C�%C♚C�CႏC�C��C��C��
-C��
-C߷
-C�aHC�o\Cݱ�C�(�C�
-=C݆fC�8RCݯ\C�&fC�fCܳ3C�+�C�
�C��C�˅C۬�C��{C�p�C�P�Cܙ�C��HC���Cܢ�C��C���C��)Cۼ)Cۜ)C�}qC�` C��qC�%C�fC��fC��fC�>�C��C��qC��)C�#�C؞�C؀ C�` C�AHCؼ)C��C�J=C��C�
�C��C�h�Cذ�C�+�C�C�%C�o\C���C�j=C��C��)C��qC�U�C�  C�{C�Z�C�<)Cԇ�C�C�K�C�,�C�\C�"�C��3CӴ{C�33Cұ�Cќ)CЇ�CϦfC��
-C�xRC�Z�CΞ�C�u�C��CϝqC�
�C�nC͏\C��C��{C��RC��C���ĆHC�eÇ�C��C�` Cͣ�C�&fC�ٚC��)C�O\C��3Cʷ
-Cʙ�C��qC�aHC��C�:�C�� C�EC�(�C�
�C��C��{CǸRCǝqC�#�C��RC�HC�Y�C��HC�h�C�NCď\C���C�@ Cł�C�
-=CĐ�C�G�C�,�C��C�#�C�eCĦfCċ�C���Cİ�Cĕ�C�z�CĎC��\C�W
-C�<)CÕ�C�C�
�C�z�C���C��\C��\C�\C�"�C�ٚC�c�C���C�l�C�Q�C��qC�9�C�j=C���C��)C��HC���C���C���C�
�C��RC�}qC��C�h�C���C��qC���C�"�C��fC�C�˅C�
�C�
�C��RC��RC�޸C�j=C��=C��\C���C���C�nC�&fC�9�C�.C��
-C���C�g�C���C���C���C�w
-C�\)C��C��C�Y�C�@ C�� C�ffC���C�~�C�8RC��fC�C�p�C���C��
-C�}qC�c�C�H�C�/\C��C���C�C�9�C�EC�+�C��C�P�C���C�Q�C��C�33C�S3C��C�  C���C�s3C���C��RC���C�+�C���C�C�#�C��C��RC���C���C���C��qC�C�C�
-=C�%C�h�C��RC�:�C���C�C�C�EC�G�C�j=C�@ C�nC���C�` C��)C�u�C�˅C��C���Cô{C��qCŬ�Cő�C�w
-C�RCº�C�aHC��C�,�C�(�C���C���C�g�C���C�
qC�H�C�Y�C��qC���C�.C��RC��C���C��=C�C�S3C�t{C�4{C���C���C�C�C�G�C�]qC�ٚC��3C�j=C���C�C�S3C��C�1�C�ǮC�0�C��RC�
qCϔ{C���C�S3C��)C�t{CѺ�CѠ C�!HC�q�C�aHC�!HC̃�CʸRC��HCơHCĵ�C��)C��qC�,�C�
�C��3C��=C�� C���C��RC�0�C�=qC�}qC��3C�FfC�z�C��RC�Q�C�>�C�� C�(�C�t{C�c�C���C�
�C��C�&fC��C��C���C��qC�>�CæfC�\)C�ECȣ�C�4{C���C�` C��=C�g�C�� Cш�C�ФC��C�˅CѰ�C�c�C�G�C�,�C�L�C��\C�!HC�C�C�(�C�C�T{CΚ�C΀ C��C���C�/\C�u�C���C�޸C���Cͪ=C�.C̳3C��C��qC��{C�
 [...]
-C���C�|)C�Q�C��
-C���C��=C�,�C�� C��C���C�#�C��\C�ǮC�
-C���C��HC�xRC��)C�&fC�U�C�(�C�fC�
�C���C�0�C��HC�
)C��C��RC���C�*=C���C�� C��)C�.C�g�C�P�C�C��RC�
�C��HC��C�*=C��{C�7
-C§�C�G�CøRC��)C�>�C�&fC�
�C��{C��C��C��
-CÐ�C��C��CŒ�C�t{C·
-C���C�k�Cï\C�  C��C��C�1�C��Cã�C�/\C��C�RC���C��fC�(�C��C��RC�� C��fC�S3C�
�C���C�˅C��3C���C���C�k�C�S3C��{C��
-C�FfC���C��C�u�C��C���C��3C��HC�h�C���C��3C��{C���C��C�33C�C�Q�C�C���C��fC�nC���C�b�C��)C�,�C��=C�|)C�C�u�C���C���C��
-C��C�+�C��\C��{C���C�O\C�y�C���C���C�U�C�#�C��RC��{C�H�C�� C���C���C��fC��=C�� C�ǮC�޸C�� C�h�C}��C{��C{�C|��C~��C���C���C���C��qC���C�
�C��C�EC���C�
�C�P�C���C��{C�ffC���C�,�C�y�C�+�C�,�C��
-C��C��C��3C���C��C�HC�=qC�P�C���C���C�/\C��C��C��C�ٚC��C�Q�C�<)C�P�C�� C�XRC�B�C��3C���C���C�"�C��)C��fC���C��C��RC���C��C��=C��{C�� C��=C�u�C���C�s3C�^�C�!HC�
�C��
-C��C���C��RC���C��C�y�C�eC�xRC��3C���C��=C�%C��RC��)C�W
-C��3C�.C�h�C�˅C�W
-C�j=C�,�C�RC��C�� C���C�w
-C�b�C�NC�9�C���C��HC���C�p�C�
�C���C��C���C�nC�
�C��
-C��C��C��C��{C�� C�˅C�fC�@ C�,�C�>�C�+�C�eC�P�C���C�w
-C�c�C�O\C�:�C��=C�HC�� C���C�*=C��\C��\C�.C��C��3C�� C�  C�� C���C���C��C���C��=C���C�ФC��C��\C��)C���C�nC�\C��)C��qC���C�u�C�
-C�޸C�˅C��RC��C���C�~�C�k�C�XRC�EC��C��{C�u�C��3C�� C��C�p�C�]qC��)C�~�C�"�C��fC��qC�4{C�!HC�\C��3C�W
-C��
-C���C���C�U�C��
-C�|)C���C�3C���C�<)C���C��C��)C�B�C�0�C�
�C��fC�nC�9�C��HC��=C�1�C��qC��fC��{C�=qC���C�nC�
-C���C��C���C��C���C�S3C�Y�C�  C��=C�5�C���C�� C�B�C��C{T{Cu�RCpu�Cj��Ce  C_z�CZ}qCV5�CR��CP.CO!HCN{CO�3CQ��CT&fCW��C[� C`�Cd�{Ci^�CnxRCr��Cw33Cz��C\C�>�C��C���C�g�C���C��C���C��C���C�RC��C�!HC��RC��=C�ٚC�O\C���C���C�*=C�\)C�K�C�~�C�nC�C���C��C�RC��C�RC�K�C�:�C��fC��3C��C��C��{C�AHC�t{C�ǮC�>�C��3C���C�q�C�aHC��C��
-C��fC�u�C�eC��RC�C�C�4{C�� C�k�C�RC��fC���C�b�C�S3C��C�t{C�"�C��C�HC��C��HC�ФC�� C��\C�=qC��C��)C���C�Y�C�J=C��RC�*=C��C�
-=C�:�C�+�C��C��=C���C��=C��)C�˅C��)C���C�Z�C�K�C���C��C���C���C�|)C���C��)C��C���C��C���C��C�~�C�o\C�` C�P�C�  C��C��HC���C�b�C�Q�C��C��3C���C���C�&fC���C�K�C�
)C�
�C��qC��\C���C��\C��HC�s3C�eC�
-C��C���C���C�}qC�o\C�!HC�3C��C���C�#�C�{C�%C��C��C�ٚC���C�~�C�o\C�"�C���C��fC��RC���C���C���C��qC�Q�C�B�C�4{C�%C�
-C��C���C��C��)C�
-=C��C�
�C��qC��C�� C���C�C��{C��C��
-C���C�y�C��C��C~�RC~ٚC~
-=C}�C}�\C}�3C~\C~.C~�C}��C}ٚC}��C}��C}��C}ffC}J=C}.C|�{C|B�C{�C{
)Cz�Cz33Cz
-Cy�Cyh�CyL�Cx��Cx��CxG�Cx.CxL�Cx0�Cx{CxnCxQ�Cx5�Cwk�CvٚCvJ=Cv.Cv{Cv�HCv�Cv5�Cv�Cu�=Cu5�Ct�fCt�=Cs��Cs�HCs�Cs8RCr��CrW
-Cr:�Cq�Cq��Cq��Cr@ Cr&fCr
-=Cq}qCqc�CpffCo�HCo{Cn��CoQ�Co�fCo
)Cn�\Cm��Cm�3Cm(�Cm� Cmc�Cm��Cm�
-Cm�qCm��Cm��CmnCmT{Cm8RCl��Cl�{Clz�ClaHClG�Ck��Cj�qCjs3Cj#�Ci�)Ci��CiffCiL�Ci33Ci�Ci  Ch�fCh��ChECg��Cg�)CgCg޸Ch33Ch�ChnChT{Ch:�Ch!HCh�Cg�CgffCf�HCfǮCf�Cf�{Cfz�Cf+�Ce:�Cd�3CdffCdL�Cdh�Ce(�Ce\Cd��Cd�)Ce0�Cd��Cd&fCd
�Cc�3CcٚCcCc=qCb�CaaHC`s3C_�qC_��C_��C_s3C_\)C_B�C^C^��C^��C^xRC^�=C^�fC_5�C_
�C^h�C]�fC^8RC^T{C_
�C_^�C\�C\W
-C[�3C[C[��C[c�CZ��CZ�)CZnCZ=qCZ\CZECZ
-CZ�CY�CY�qCYY�CX�CX�
-CX�CW:�CV�fCVxRCU��CU
�CT��CTaHCS�\CS�HCSs3CS{CR�fCR�RCR��CR^�CR0�CRCQu�CP�fCPW
-CO�RCN�fCM��CM+�CL��CL�CK�fCK��CK�\CKc�CJٚCJ�CJT{CI�=CI@ CH��CH\)CG��CGJ=CG!HCF�
-CF@ CE�RCE0�CDz�CC\CA�fC?��C=�RC<@ C:C7}qC5Q�C2�C/�)C,��C)� C'J=C$�3C"C!G�C��C�=C &fC � C"B�C$�C'&fC)��C-!HC0^�C2�
-C4�C6�=C7��C8�)C8�RC9� C9�)C:
�C:=qC:
-C:
)C:L�C:&fC:W
-C:��C:��C:�qC:�
-C:ǮC:�HC:z�C:T{C:.C:�C9�HC9�RC9��C9�C:!HC9��C:+�C:C9޸C9�RC9:�C9{C8�C8ǮC8J=C7��C7&fC6��C6Y�C5޸C5�RC5=qC5�C4�3C4�\C4��C4ٚC5
-=C5\C5@ C5�C4��C4�\C4W
-C4�C3�HC3h�C3B�C2�=C2�fC2.C1޸C1ffC1B�C0�=C0�fC0Y�C/��C/� C/�)C/#�C/  C.�=C.=qC-�=C-T{C,޸C,�qC,p�C,L�C,+�C,�C+��C+C+��C+}qC+
-=C*�fC*s3C*Q�C*.C)�qC)��C)xRC).C)
�C(��C(ǮC(�fC(�C(aHC(@ C(
�C'�C'��C'
)C&��C&�=C&B�C&!HC%��C%�\C%nC%L�C%+�C%
�C$�)C$z�C$\)C${C#�3C#�C#c�C#EC"�
-C"��C"�{C"u�C".C"\C!ǮC!��C!aHC!B�C ��C ��C �
-C Q�C 0�C�C��C��CB�C!HC
�)C
��C
xRC
33C
{C
��C
��C
nC
(�C
�fC
ǮC
��C
@ C��C�)Cu�CW
-C8RC�\C�3C�{Cu�C33C��CffCG�CC�fC��Cc�C��C(�C
-=C�C��C#�C�)C}qC�C�qC޸CC��C��C��C�{CxRCY�C=qCٚCu�C8RC�{Cs3CW
-C�3C�
-C��C}qCaHCEC��CǮCffC&fCǮC��C�\C0�C{C�RC�)C}qCaHC#�C�C��CL�C0�C
��C
��C
z�C

)C
�C
�fC
��C
��C
�{C
z�C
aHC
EC
+�C
��C
�3C
��C
:�C
!HC
-�fC
-��C
-��C
-W
-C
-:�C
-!HC
-�C	��C	��C	5�C	
)C�HCǮC�C�{Cz�CaHCG�C.C�{C��CaHCG�C.C�3CٚC� C�fCO\C5�C�)CC��CQ�C8RC  C��C�\CxRC!HC�C�C�
-C�qC��CO\C5�C�qC�fC�\CxRC!HC�C�{C}qC&fC ��C ��C �HC O\C 5�C 
�C B�C +�C �B���B�ǮB���B��B�B��\B�#�B���B�ǮB�#�B�z�B�L�B��HB�=qB�\B��HB�=qB�\B��HB��3B��B�W
-B�(�B���B���B���B�p�B���B���B�p�B�B�B�{B��B��qB��\B�aHB�33B�B���B�  B���B�33B�B��
-B�8RB���B��B�
-=B��)B�=qB�\B��fB�G�B�
�B��B�ǮBB�k�B�
-=B��)B�3B��B��B�Q�B�#�B�=B�(�B���B�aHB�8RBꞸB�u�B�G�B��fB�Q�B�#�B���B���B��B�z�B�Q�B�(�B�{B�ffB�=qB�{B� B�W
-B�.B���B�8RB�\B��HB�RB�\B���B���B��B� B��B�\B�ffB�=qB�{B�B�\)B�33B�
-=B�u�B�Q�Bߊ=B�aHB�8RBި�Bހ B�W
-B�33Bݞ�B�z�B�Q�B�(�B���Bܨ�B��B��B�ǮB�=qB�{B��B�ǮB�8RB�{B��B�ǮB�k�B��)BظRB�(�B�B��HB�Q�B�.B���B�G�B֊=B֔{B�p�B�G�B�#�B�  B��
-BՀ B���B���BԨ�B�
�B���B��
-Bӳ3Bӊ=B�B��)B҅B�aHB��)Bѳ3Bя\B�k�B�G�B�#�B�  B��)Bг3B�.B�
-=B��fB�BϞ�B�{B��BΞ�B��B���B�p�B��B̙�B�{Bˏ\B�=qB��B���B�p�B�Q�B�.B�
-=B��fB�#�B�  B��)BɸRBɔ{B�u�B��B���B�L�B�(�Bǩ�BLJ�B�d�B�B�B� BB���BƬ�BƊ=B�g�B�F%B��%BŤZB�$�B�BĄB�49B�oB��'B��\Bí�BË�B�jB�H�B�'mB��B��ZB��B¡�B�$ZB�B���B�e`B�DB�#TB��mB�YB�8RB��B���B��B��?B��{B�s�B�R�B�2-B��B��'B�v�B�V�B��)B���B���B�{dB�.�B���B���B�u?B�U�B�5�B��B��/B�}qB�]�B��`B�ŢB�z^B�B��TB��B�MPB�-�B�VB��B���B�Y�B�\B��!B��hB��-B�<�B�t9B�U�B�6�B���B���B��B�e`B��B��oB�^5B�?}B���B��B�d�B�F�B�(sB�
-=B��
-B�yXB�[#B�<�B�;B�B��TB��B�R�B�
�B��B��bB�^�B�AB���B���B�k�B��dB�ݲB���B�P�B�3�B��B��XB��)B���B�O�B�2�B�B���B��)B��B�yXB�
DB��B���B�c�B��FB��'B�DB�'mB���B���B���B�B���B���B���B�}�B�a�B�E�B�)�B�VB��-B�ևB�kB�O\B�3�B��7B���B���B�N�B��ZB�z�B�_;B�DB�ڠB��}B��ZB�a�B�G+B��5B��B���B��PB�$�B�
-=B��B��+B�l�B�+B�ÖB�\�B���B��?B�N�B�49B��VB��9B�NVB�VB��9B��
B�� B��fB��JB�r�B�X�B�>�B�$�B�
DB��'B�׍B���B�YB�?}B�%�B�
JB��sB���B�u�B�\)B�
�B�B��B���B�n�B�T�B�;�B�"�B�	�B��B�׍B�t�B�[�B�CB�)�B��B��B��B�}qB�@ B�'mB�VB���B��/B�ĜB��B���B�z^B�a�B�B��sB���B�o�B�W�B��LB��dB���B�C�B�+�B�uB���B���B�<�B�$�B��yB���B���B��NB��=B�r�B�Z�B�CB�+B�uB���B���B��%B�(�B�hB��9B�y�B�
/B�%B��yB���B�X�B��jB��`B��VB��LB��BB�D�B�-�B��oB��B�>wB���B��7B�P�B���B��BB��%B�o�B��B�޸B���B�oB��B���B [...]
-Be��Be�/Be�^BebNBe@�Bd�yBdƨBd��BdM�Bd,Bd
-=Bc�sBc�hBco�BcM�Bb��Bb�Ba�;Ba�qBb+Ba�fBb/BbVBa�Ba��Ba��Ba�7B`��B`�/B`�jB`1'B_�#B_P�B_0!B^��B^�%B]��B]�)B]�+B\��B\�5B\�wB\��B\�B\]/B\=qB\
�B[��B\D�B\#�B\8RB\�B[��B[�B[�LB[��B[w�B[#�B[BZ|�BY��BY�
-BYP�BX��BXw�BW�BWm�BW�BV��BVuBU�BU��BU�FBU��BVA�BV�^BW  BWF�BWZ
BW��BW�mBWbNBWC�BV�wBVm�BU�yBUe`BT�NBT�hBTVBS(�BR�BRW
-BQ��BQ�BQgmBP�fBPȴBP�BP�JBPn�BP�3BPŢBP��BP�BP��BQuBP�BP�
-BP�XBP��BP�BO��BO}�BO_;BOhBN�oBNt�BM��BMw�BM(�BL�BL.BK� BKBJ�+BI�#BI_;BH�TBHƨBH
�BH  BG�TBGƨBG�BG�BG��BG�NBGƨBG��BG�PBGA�BFǮBF�BF�\BFr�BFW
-BF:^BF
�BF
BE�fBE��BF
DBE�oBEu�BD��BD�HBDiyBCBC��BC/BB�LBBm�BBQ�BA�#BA��BA��BA.BAuB@��B@�)B@��B@��B at 0!B@�B?��B?�;B?ĜB?{�B?aHB?F�B?+B?bB>��B>&�B=�3B=k�B<��B<�B<=qB;��B;�!B;=qB;"�B:�!B:jB:O�B:6FB:
�B:.B:k�B:��B:�mB;Q�B;7LB;u�B;�1B;ƨB;S�B;9XB;�B:�B:�wB:L�B:33B:�B9��B9�PB9s�B9.B8�qB8��B833B8�B8  B7�\B7u�B7]/B7C�B7� B7ffB7L�B749B7p�B7XB7>wB7$�B7aHB7H�B6�B6�}B6��B6�PB6
�B6B5��B5|�B58RB4ɺB4�'B4��B4)�B4hB3��B3�BB3ƨB3�B3��B3'�B3\B2��B2�5B2ŢB2�B2�sB2��B2�LB2��B2�%B2�B2
B1 [...]
-=B��B��B�1Bs�B�B�NB��Bt�BaHBM�B:^B�BBoB��B�B�BĜB�'B��BD�B1'B�BĜB�VB6FB"�B\B��B�yB�hB}�BjBXBD�Bv�BcTBP�B��B�`B�VBYB
B�B��B�B.B�B	7B��B�TB��B�wB�7Bv�BdZBQ�B?}B�yB�B1B��B�TB��Bz�B�B��B�+Bt�BbNBO�B
��B
�sB
�uB
_;B
-=B
��B
�fB
��B
B
�!B
��B
�JB
y�B
gmB
VB
B
�B
�/B
�=B
W
-B
B
-�!B
-��B
-�JB
-9XB
-+B	��B	�ZB	��B	� B	n�B	]/B	J�B��B�mB�BĜB�3BaHBO�B
�B
PB��B�B�BǮB�BĜB�B��B�hB� Bn�B��B�JBz�BiyB��B�+Bu�BdZBuB
B�-B�Bo�B_;BVB��B�B��B�DB;dB+B�B	7B7LB%�B�BB�B�TB��B��B�'B��BP�B �BbB��B�'BbNB2-B�ZB��BH�B�B��B}�Bm�B]/BbB  B ��B ��B �'B dZB �B 1A�v�A��A���A��#A���A�O�A�/A�VA��A���A�7LA��A��jA�$�A�A�n�A�O�A�/A�bA��A���A�(�A�1A��yA�A�A� �A�=qA���A���A���A��A��A��TA�{A�~�A�$�A��hA�r�A�ȴA��`A�ƨA�
�A���A�S�A�5?A��A���A�dZA�E�A��-A�Z
A�ƨA���A��7A��;A���A�/A�bA� [...]
-=A��A�^5A���A�C�A��A���A�-A���A�x�A�\)A�=qA� �A앁A�v�A���A�A�ȴA��A���A��HA�A��A��A���A��HA�A��A�7A�l�A�O�A��A�A�A�7LA��A�\A���A�C�A�&�A�x�A�\)A�?}A�hA�A�\A�r�A�ĜA��A���A��/A���A�7LA��A�hA���A�I�A���A��A��mA���A�C�A�&�A�
JA��A�?}A�hA��A�\A�r�A�XA�;dA� �A�A��yA���A�-A㕁A�z�A�`BA�C�A�(�A�
JA�jA�5?A��A�  A�x�A�ȴA��A�33A��A�ffA�K�A�/A��A�\A�t�A�^A��A�A���A��TA�ȴA��A���A��HA�1'A�I�A��A��mA�7LA�Q�A�
JA�$�A�
-=A�^A៾A��A���A�1A�O�A�dZAܮA�ĜA�VAڍPA��A�XA��
-A؋DA�p�A�XA�=qA�"�Aף�A׋DA�p�A�VA�=qA�"�A�
-=A��A��
-A�XA�=qA���Aե�A���A��/A�`BAӰ!Aӗ�A�~�A�dZA�K�A�33A��A�33A�|�A�dZA�K�A�1'A��A�  A��mA���AҴ9Aқ�A��mA�bNAӮA�\)A�t�A���A�
JAԍPA�bA�bNA��`A���A�Z
AЬA�1'A��Aϟ�Aχ+A�
JA�AΩ�AΓuA��A�  A͇+A���A͸RA͟�A��yA���A͸RA͟�A͇+A�p�A���A��;A�ƨA̮A̗�A�~�A�ffA�M�A�7LA�
�A˥�A�  Aʇ+A�bA�jA��A�M�A��A�%AƾwA�I�A���A�33A�bNA��Aé�A�7LA�ĜA�
-=A�M�A�ffA�1A�M�A���A�1A�M�A�A�1A�|�A�"�A�
-=A��A�9XA�
-=A�hsA�hsA�=qA›�A���A��7A�r�A�^5A�G�A�1'A�G�A�1'A��A�`BA�I�A��
-A���A���A�ffA�Q�A��HA��yA�
�A�(�A��PA�n�A�-A��wA�Q�A�bA���A��PA�v�A�bNA�K�A��;A���A�^5A�I�A��-A�E�A��#A�ƨA��!A��A��9A���A��^A��
-A���A��jA�  A��yA�-A�ffA���A�`BA�I�A�5?A�ƨA��-A���A��+A�E�A��#A�ĜA�XA���A�VA��A���A��yA�~�A��yA�+A�C�A�\)A�"�A��^A�(�A�p�A�\)A�G�A��+A�r�A�A��A�%A�t�A�VA���A��uA�XA��A��/A�v�A��yA��HA�A��
-A���A���A�I�A��mA��+A�$�A��A��DA�(�A�ȴA�A�A�|�A��hA���A�S�A��RA��A�/A�C�A�~�A�l�A���A��TA���A�33A�n�A��A���A�K�A�`BA�$�A�oA�  A��A��A�ƨA��#A��A�S�A�A�A�|�A�jA���A��jA���A�\)A��yA�O�A�;dA�x�A�ffA�Q�A�?}A�-A��A�%A���A��A��FA�+A�z�A��A��\A�/A���A���A���A�33A�n�A�\)A�p�A�^5A�$�A�A�{A��#A�ȴA��FA�VA�C�A��`A��A���A�9XA�(�A�ȴA��FA�XA�E�A�VA���A�bA�I�A�7LA�r�A�`BA R���rLTT3864     F    AB�R10:32:13.90-35:37:42.4 at c��t
�A�A�p�
�   �EN@ EQ` ET� EW� EZ� E]� Ea  Ed  Eg@ Ej` Em� Ep� Es� Ev� Ez  E}  E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  Eɐ E�  Ḛ E�@ E�� E�` E�� EԀ E� Eנ E�0 E�� E�P E�� E�p E�  E� E�  E� E�@ E�� E�` E�� E� E� E� E�0 E�� E�P E�� E�p E�  E�� E�  E�� F   F � F� Fx F@ F F� F� F` F( F� F� F	� F
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ F
 ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-D

�D

)D�Db�D	�{DfD33D��D,�D�D޸Dp�D�D W�C���C���C���C��qC���C�Y�C�xRC���C�~�C�C�)C�=qC��C�3Cܞ�C�{C���C�<)C��{Cў�C���C̈�C�>�C��C��C�.C�S3C��RC��3C��3C��RC�|)C�9�C��=C��=C���C�g�C��RC��\C���C�L�C��C���CRxRCiJ=C��C���C�+�C�0�C���C�C��)C��HC���C���C��3C��\C�l�C�g�C���C�P�C�l�C}��C�xRCy��C{\CvaHCt�Cp.Cm��Cb#�CO� CY��CP��CM
)CQW
-CL��C,�CǮC"��C:�C^�C�C%  C.T{C<#�C8ٚC9ٚC=L�C=�fC<�=C;�C7����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-fFe�F�fF�fF{�F� F��F��F
-fFj F�fFM3F6fF� F��F�3FvfF
fF F�F
�FfF�fF� F�Fi�FS3F
� F
� F
i�F
�fF
U3F
��F
�3F
�F
?�F
�3F
w3F
3F
�fF
N�F
-��F	��F	E�FϚF9�F�fF�3F� F��Fp Fz�F� F��F| F&�F� F��F* F��FC3F3F� F��F�3F~fFj F� F��F�3F2 F
3F� Fw3F3Ft�F�F�F�3F�3FM�F�fF� F(fF F��F�3F��F��FpfF��F�fFrfF�fF��F|�Fh�F�fF~fF� F�fF F F�fF�F�3F �fF ^ F JfF 6�F #3F  E���E�њE�2fE�
3E�\�E�6fE�3E�`�E�:fE�3E�(�E�zfF "fF -3F V F fE���E��fE�fE�y�E�S3E�-�E���E��fE�
fE�� E��3E���E���E��E�� E��3E��fE���E��fE��3E�fE�{3E� E��E��E�>fE���E��E��fE�X E��fE�d�E�@�E� E� E�d E��3E�3E��3 [...]
�EƓ3E�vfE�+3E�=�E� �E�a�EƢfE�� E��fE�ٚEƽ�EƠ�E�T�E�8�E�
 E�  EņfE�i�E�M�E�1�E��EĜ EĀ E�3Eü�Eà�E�(�E�
�E”�E�y�E�fE�� E�A�E�&fE��3E�� E�x�E�0 E� E���E�ݚE�h E�L�E��3E�bfE���E���E�1�E�fE��fE���E�ŚE��3E���E�u�E�� E��fE� E���E��fE��3E���E�~fE��fE�k3E�� E�ZfE�@ E�%�E��3E��E���E�33E��3E���E��3E�t�E�[3E�fE�� E��fE���E��3E�?3E�%�E��3E�
�E���E�� E�zfE�a�E���E�� E�jfE�P�E��fE�t�E�1�E�p E���E��E��3E�3E��3E�fE�� E��3E�(�E� E��3E�d�E�L�E��fE��fE�`�E��fE��fE��E� �E���E���E���E�x�E���E��fE��3E [...]
�E�k3E��fE�>fE��fE�P�E�zfE���E���E��fE���E�rfE�6fE���E��fE�\�E�G3E��E�� E���E�~fE�
�E���E�\�E�!�E�
 E��fE��fE�73E�!�E�
 E�@�E�, E�fE��3E���E�BfE��E��3E���E��E�"fE���E��fE�/3E���E�fE�5�E��fE�
�E��3E�Q�E��E�t E� E�� E�< E���E�a�E�� E�A�E��3E��3E��3E��E�#3E�x�E��E�H E���E� E�K3E�}�E���E�� E�� E�JfE�~fE�i�E���E�<�E�( E� E��3E��fE�"fE��fE�FfE��3E�� E�4�E��fE�\ E���E��fE�73E��3E�c3E�O3E��3E��3E���E�U�E�BfE�s3E��fE�� E���E��E�\�E��fE��3E�[3E�� E�(�E�~fE�3E���E�� E�� E�
-fE��fE��fE��fE�%�E�X�E�� E�0�E�
�E���E�� E�� E�jfE�VfE���E���E���E� E�� E��fE�@�E�� E�k3E��fE�
�E�M�E�L E��3E�� E�՚E�ٚE�� E�(�E�1�E���E�)�E��3E��E�4�E�� E� E�� E�W3E��E��fE�RfE��fE�| E�� E���E�
 E���E��fE�њE�3E�4�E�!�E�0�E�bfE�O3E���E��fE��3E���E�y�E�ffE�3E�� E���E���E�:fE��E��3E�X�E�$�E��fE�5�E��fE�� E�W3E�D�E�2fE�bfE�P E�=�E�+3E��E�H�E�73E�$�E�� E���E�h�E�VfE�D�E�2fE�  E��3E�W3E���E�)�E��3E���E�3E�C3E�� E��E�8�E�M�E�d�E��E�E|��Ezc3Exl�Ev��Eu8 Etk3EsٚEs��Es��Eta�Eua�Ev� ExQ�Ey [...]
i�E
�fE
A�E
�fE
-�3E
-fE	�E$�E�fE�E� Ey�E� E��E��E��E33E��E�3EX E&fE��E�fEX E�E	\�E	�fE	� E�fEP Es3E�fE� E�3E��E� E��E��E�fEI�E+3EfE� E�3EVfE8 E3E�fE��E��E( E
3E�fE��EVfE�3E�fE��EffEI�E�fE�3EY�E  E�fEk3E�E� E��E��Ed�E
�E �3E �fE �3E C3E ( D�� D�i�D��fD�I�D�3D���D�0 D���D�L�D�fD��fD���D��fD�� D�Y�D�&fD�� D�FfD���D�,�D��3D�,�D� D�I�D�L�D�
�D��3D�fD��3D�9�DቚD�� D�ٚD�C3D�y�D�L�D�#3D���D�fD��3D�fD�ffD���D�  D�vfD�fD��D���D�VfD���D�L�D쩚D�	�D�ٚD� [...]
-Dw�Dw� Dw\Dv�=Dv��Dvc3Du�{Du��Dt�=Dt�\Dtj=Ds��Ds��Ds{Dr�=Dr�\Dr�Dq�RDq�DqZ�Dp��Dp�Dpj�Dp@�Dp
-Do|)DoQ�Do(RDn�Dn,)Dn�Dmh�Dm@ DmfDl�qDlUDl+�Dl�DkٚDkAHDj�HDj�RDj�\Di��Di� Di��Di~�Dh��Dh��DhaHDg˅Dg�3Dg{�Df�fDf��Df�fDfn�DfG
-Df\De��Dec�De<)Dd޸DdK�Dd#�Dc��Dcj=DcC3Dc
)Db�Dbc3Db<)Db�Da�Da��DaHD`��D`�{D`�D_�qD_�
-D_��D_��D^��D^�D^z=D^T{D^.�D^RD]y�D]S�D].D]RD\z�D\UD\/\D[��D[H�D[#�DZ��DZ��DZL�DZ'�DZ�DYw
-DYR�DY-qDX�DX��DX%�DXHDW�)DWQ�DW-qDW�DV�{DV[�DV7
-DV�DU�DU��DU\DT�DT�
-DT?\DT�DS��DS��DSL�DR�
-DR�3DR� DR��DRfDQ�DQ�\DQ8�DQ�DP�3DPmqDPJ=DO�fDO��DO��DO�DO�DN�fDN��DN@ DN
qDM��DMw�DMUDM�DL� DL�DL��DLy�DK�
-DK�DK�3DK1HDK\DJ�qDJ��DJ�DI��DIxRDIVfDI5DH�DH��DHC3DG��DGD{DG#3DF�{DF�3DF3�DF�DE��DEs�DES3DD��DD�DD7�DC��DC��DCL)DC,)DC
�DB� DBp DBO\DB/\DA��DAffDAFfDA&fD@�)D at 1HD@�D?�D?J�D?+�D>��D>��D>s�D=��D=ۅD=�)D=�qD=~D=^�D=@ D<�{D<�D<]qD<>�D<  D;�RD;��D;j�D;L)D;.D:�
-D:l�D:ND9׮D9��D9C�D8θD8�D8g
-D8H�D8*�D8
�D7�D7z=D7\)D7>�D7 �D6��D6�\D6qHD6S�D66fD6�D5��D5�qD5��D5xRD5D4�D4�=D4�qD4� D4r�D4 �D3�3D3�fD3T{D37�D2�D2\D2b�D1��D1�D1eD1HRD1+�D0��D0��D0��D0<�D0 �D0{D/�D/x�D/\�D.�D.��D.��D.
�D.�D-�fD-x�D-\�D-AHD,��D-	�D,�D,ҏD,�
-D,��D,\D,3D+��D+�)D+��D+|�D+aHD+E�D*�=D*��D*��D*8RD*
�D*�D)�
-D)˅D)��D)nD)S3D(�RD(�qD(��D(�RD(}qD(b�D'�RD'�D'�3D'Y�D'?\D'${D&�3D&y�D&_\D&ED%��D%D%�RD%@ D$�\D$�D$}qD$c�D#�)D#�D#UD"�D"�{D"nD!��D!|)D �D @ D��DfD
|�D
�D
G
-D
�{D
��D��D��D7
-D�HDP D��D"�D�D��Dz=Dk�D� D`�D�D�qD
�D
s3D	��D��D�fD�HD|)D�
-D�3D
-�D
S�D
�=DD{D�3D޸D��D�=D�
-DK�D��D|)D��D�D.D�{D��D� D D@ DL)D4{Dd{DMqD5�D
�D
-D� D�RD�HD�=D��D{�Dd{DfD�\D�RD�HD�=Do\DXRD��D�{D�qDp�DY�D�qD�fD� D�fD\D#�D
�D�fD� DɚDnDW�DAHD��D��D�
-D��D%�D D�D�\DED
�D�
-D�qD�
-D.DRD�D��D�D\)DFfD0�D�D�D
� D
�=D
��D
l�D
W
-D
A�D
�=D
�{D
�\D
��D
1HD

)D
fD
�\D
�=D
�D
p D
Z�D
FfD
1HD

)D

-D
-��D
-��D
-�
-D
-q�D
-<)D
-'�D	��D	��D	g
-D	R�D	>D��D�{D�\D��D5�D!HD��D�RD��D� D{�Dg
-DR�D>�D*=D�fDD�Dz=De�DQ�D
D
-=D�fDD��D�=Dg
-DS3D  D
)D�RD�D�HD�qDj�DW
-D#�D�D��D�=D�fD��Dp D\�D*=D
-D�{D�HD��D��DxRDE�D2�D �D�qD��D�RDvfDc3DP�D
�D
)D �=D �
-D ��D �3D Q�D >�D 
qC���C��3C�nC�
�C��fC��HC�#�C�C��qC�w
-C���C���C���C�k�C�FfC�!HC��)C�aHC�<)C�
-C���C��C���C���C�^�C�:�C��C�|)C�W
-C�33C�C��\C���C�ffC�B�C�
�C��C�aHC�=qC��C�� C�"�C���C���C��
-C��3C�o\C��C�b�C�>�C��C��
-C�C�w
-C�� C�H�C�&fC�C�l�C��C�|)C�Y�C���C�HC�
�C��C�\C��)C�ٚC�FfC�#�C�HC�޸C�L�C��3C�ФC�C��C���C��RC�
-C�{C�s3C�P�C�/\CꞸC�|)C�Z�C�{C�q�C��C�S3C���C�l�C�K�C�qC�/\C�\C�
-C�*=C�
-=C���C�ǮC䧮C�fC���C䰤C䐤C�o\C�O\C�c�C�C�C���C���C㫅C�  C�  C�� C⾸C�4{C�{C��C�4{C�{C�=C�  C�� C�� C�7
-C��C���Cޣ�C��C�c�C�y�C�Cޢ�C���C���Cެ�CގC�nC��fC��fCݧ�C݇�C�h�C��HC��HCܢ�C܃�C�c�C�EC�&fC��3C۴{C۔{C�u�C�W
-C�ФCڱ�Cړ3C�t{C��C��\C�~�C�` C���Cؼ)C؝qC��C���C���CؽqC؞�C؀ C�aHC��C׌�C�nC�O\C���C֮C֐�C�q�C��\C�ФCճ3C�c�C��HC�C�AHC�#�CӢ�CӃ�C�ffC�H�C���C��)C�\)C�>�C�!HC��C��fC���CѬ�Cя\C�q�C���C���CиRCК�C�~�C���C��C��CϨ�Cϋ�C�>�C�!HC�CΆfC�j=C��C��\Cͳ3C�5�C��C��)C̰�C̓3C�w
-C�Z�C�޸C�C˦fCˊ=C�nC�Q�C�5�C��C���C��C�ffC�K�C�/\C�3C�ǮC�L�C���Cȷ
-C�<)C�!HC�fCǺ�CǠ Cǃ�C�h�C�NC�1�CƸRCƝqCƂ�C�g�C�K�C�0�C��C���Cł�C�g�C�L�C�1�C��C���Că�C�h�C�  C�C��=C��\C�XRC�=qC�#�C¬�C‘�C�xRC�HC���C���C��C�\C��{C���C��HC��fC���C���C��3C��RC�~�C�c�C�J=C���C��C�G�C�,�C�3C���C��3C�k�C�Q�C�8RC���C��RC���C�xRC�^�C�RC���C��C�� C��fC�@ C�&fC��HC�ǮC���C�h�C�O\C�
-=C��C���C��3C�NC�4{C��\C��
-C���C�y�C�4{C��C��
-C���C�y�C�5�C�
qC�ٚC�� C�|)C�c�C�  C��)C���C�� C�g�C�%C��HC���C��fC�nC�*=C��C��\C���C�J=C�1�C��\C��C���C�S3C��C���C��
-C�u�C�
-=C���C��fC�o\C�W
-C��C���C��3C�|)C��RC�� C���C�q�C��C��\C��RC�nC�W
-C���C���C�C�C�,�C���C���C���C�~�C�g�C�P�C�9�C�"�C�
�C��{C�޸C�ǮC���C�H�C�1�C��C��C��C��C��RC��HC�j=C��C���C��
-C�� C�Y�C�B�C�,�C��fC���C�q�C�
�C���C��\C�y�C�c�C�L�C�\C���C���C���C�h�C�Q�C�<)C�&fC��C���C��
-C��HC�k�C��C���C��)C��fC���C�s3C�^�C�o\C�Y�C�EC�/\C��C��C�ǮC���C�O\C�9�C�#�C�\C���C���C��\C�l�C�W
-C�B�C�,�C�RC��C��C��RC���C��C���C�7
-C�"�C�C���C��qC�\)C�G�C�1�C�
qC��C��{C��3C�~�C�
�C���C��\C���C��fC���C�}qC�h�C�T{C�@ C�� C�˅C��
-C���C��C�y�C�eC�fC���C��qC��=C���C�W
-C�B�C�.C���C��HC���C���C��C���C�|)C�
�C�
�C�AHC�,�C�RC�C��C��3C�� C�k�C�W
-C���C��fC��3C�� C���C�s3C�
-C��C���C��3C�� C�l�C��C��qC��=C�
�C�
�C��
-C���C���C�u�C�b�C�NC�:�C�'�C�{C�HC��=C�o\C�\)C�H�C�5�C���C���C���C���C��\C�|)C�h�C�U�C�B�C�0�C�
qC���C���C���C�ФC���C�eC�Q�C�
)C��C��
-C���C�ФC�xRC�eC�S3C�@ C��C��{C�C��\C��qC��=C�xRC�eC��RC��fC�.C���C��HC��\C�7
-C�%C�3C��)C���C�S3C�
�C�
�C���C���C�L�C��C���C�nC�\)C�fC��{C��C�ФC��C��C�"�C�S3C�c�C�Q�C���C�q�C�` C�NC��RC��HC��=C�t{C��qC�h�C�{C��C���C�� C��C�  C�0�C�
�C�C��)C��C�ٚC�ǮC��
-C��C��{C���C��{C�C���C�� C�L�C��C�
-=C��
-C��fC�T{C�B�C��C���C��C��qC���C�z�C��=C�y�C�h�C��RC���C�w
-C�ffC�T{C�C�C�33C��HC�ФC�� C��\C�=qC�,�C��)C�˅C�z�C�J=C�9�C���C�ٚC���C�xRC�g�C�W
-C�FfC�
-C�ǮC��
-C�g�C�W
-C�FfC�7
-C�&fC��
-C��fC��
-C���C�w
-C�(�C�RC��C��RC��C��RC�ǮC��RC��fC���C��C���C�g�C�XRC�
-=C���C���C�}qC�nC�]qC��C�HC��C���C��{C��C�t{C�'�C���C��=C��qC�Q�C�B�C�{C��C�C��C��C�=C��C��C�fCǮC��C�=Ck�CL�C.C\CffCG�C(�CG�C�HC��C�)C�qC��C� C~��C~Q�C}��C}aHC}B�C|��C|Q�C{�qC{(�C{
-=Cz�CzW
-Cz:�Cz��Czs3Cz��Cz�C{B�C{��C{z�C{�{C{��C{!HC{�Cz��CzQ�Cy��Cyc�Cx��Cx=qCwp�Cv޸CvL�Cv0�Cu�
-CuG�Cu(�Ct��Ctz�Cs�Cs�\Cs��Cs\)CsxRCsY�Cs=qCs!HCr�=Cr�Cr�\Crs3CrW
-CqǮCq8RCp��CpT{CoǮCo:�Cn�fCnY�Cm��Cm��Cm#�Cm�Cl�Cl�\Cl�3Cm�Cl�Cm=qCm��Cm�Cn�CnW
-Cn��Co5�Co�Cp�=Cq
-CqnCqCr
-Cq��CqnCqO\CpCo��Cn�qCn8RCm��Cl��Ck�Ckc�Ck\Cj�Ci��Ch��ChB�Cg��Cgh�Cf�HCfY�Cf=qCe� Cd�RCds3Cc��Cc0�Cc{Cb�\Cb�HCb�Cc
-Cc0�Cc� Cc��Cc��Cd�Cc�Cd�CdY�Cd��Cd�\Cdu�Cd�Cd��Cd�\Cdu�CdY�Cd@ Cd&fCc��Cc�Cc  CbxRCb(�Ca��Ca!HC`�)C`L�C_�=C_�C_+�C^�)C^Y�C]�
-C]�qC]��C]!HC]�C\�C\�HC\��C\C[�C[k�C[Q�C[8RC[
�C[CZ�CZk�CZQ�CZ8RCZ�CZk�CZQ�CZ:�CZ��CZnCZT{CZ�HCZ�qCZ��CZ�C[@ C[��C[�fC[��C[�)C\+�C\�C[�RC[޸C[^�CZ�)CZ(�CYB�CX�\CW��CV��CV}qCU�qCU�3CU5�CT�RCT�HCT#�CT
�CSCS��CS.CR��CR��CQ�CQp�CP��CP޸CP33CO�RCO�HCO�=CO\CN�RCN�HCNǮCN� CN�CM�\CMxRCL�\CLW
-CL@ CKǮCK��CKh�CJ�3CJz�CJCI�qCIG�CH��CH��CH��CH.CH
-CH�CG��CGG�CF��CF��CF�CF�CE��CExRCEaHCEJ=CE33CE
�CE�CD�CDٚCD�CE
-=CD�3CD޸CD��CE:�CE&fCD�3CDnCC��CC��CC
-CB��CB�qCBJ=CB5�CACA�CAh�C@�RC@��C@
-C@�C?�qC?��C?�{C?}qC?�{C?Q�C?=qC?&fC>�RC>�HC>��C>u�C>aHC>L�C>5�C=ǮC=�3C=��C=�HC=�=C>\C=��C>�C=��C=�fC>+�C>{C>Y�C>EC>��C>�HC>��C?(�C?{C?�C?
-C?  C>�qC>O\C=Y�C<��C<�
-C=s3C=��C>(�C>��C>޸C>�=C>�3C>��C>�=C>s3C>^�C>J=C>�\C>xRC>c�C>z�C>ffC>#�C>\C=��C=0�C=
)C<��C<��C<�)C<ǮC=
�C=O\C=:�C=&fC=�C<��C<�fA ��n�KHD93521     O9Vp @�G�10:48:23.51+37:34:12.8 at dC"y��2 at B��
-���  �EH  EH EH  EH0 EH@ EHP EH` EHp EH� EH� EH� EH� EH� EH� EH� EH� EI  EI EI  EI0 EI@ EIP EI` EIp EI� EI� EI� EI� EI� EI� EI� EI� EJ  EJ EJ  EJ0 EJ@ EJP EJ` EJp EJ� EJ� EJ� EJ� EJ� EJ� EJ� EJ� EK  EK EK  EK0 EK@ EKP EK` EKp EK� EK� EK� EK� EK� EK� EK� EK� EL  EL EL  EL0 EL@ ELP EL` ELp EL� EL� EL� EL� EL� EL� EL� EL� EM  EM EM  EM0 EM@ EMP EM` EMp EM� EM� EM� EM� EM� EM� EM� EM� EN  EN EN  EN0 EN@ ENP EN` ENp EN� EN� EN� EN� EN� EN� EN� EN� EO  EO EO  EO0 EO@ EOP EO` EOp EO� E [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
- H��H�x H��@H���H�v�H�߀H���H���H�C H�P�H���H�a at H�f�H�C�H�z�H�.�H�<�H�� H���H�e�H�y�H�d H�'�H�� H���H��H���H�V�H�)�H�L at H��H�|�H�;�H�!�H���H�ǀH���H�F�H� H�y�H�: H��@H���H�.�H�� H��@H�  H�� H�1�H��@H�� H�N�H��H���H�*@H�� H���H�*�H��H�� H�t at H��@H�E H�P at H�\�H��@H�+�H��H���H���H���H��@H�0 at H���H�K�H��H�" H�5�H�'�H�> H�x�H�� H�z�H�A at H�	 H�πH�� H��H�� H��@H�ŀH���H�� H�
�H�� H�ހH�� H���H�x H�?�H���H��@H���H�� H��@H���H�= H��H���H�
@H��@H�8�H��H���H���H�}@H�h H�s at H�~�H���H�؀H��H�v H�* H��@H�
�H��H�G H�u at H���H�� H��@H���H�l�H�4 at H�u H��@H�;@H�^ H�_ H�ƀH�N�H��H���H��H�:�H�� H��@H�~ H�h�H�u at H�� H�@H��H�@H�u�H���H���H���H��@H���H�y at H�C�H�
�H�t H�
�H��H��@H�� H���H�r�H���H���H�P�H���H��@H��@H�
�H�)�H��H� �H�*�H��@H�!�H�� H�z at H�E�H�Q H�� H��@H���H�� H�
- H�� H���H���H�9 at H� H�T�H���H�Q�H�
�H��@H��@H�� H��H��@H�5�H�!�H�j at H�u�H�C�H��@H�e H���H���H�W H�b at Hl at H�w�H���H��@H��H�
�H��@H�
- H�R�H��@H���H�� H���H��@H�e H���H�K�H��HZ H4�HK H_ H��H�@H��H� H��H� H��H# H~I�H}� H}�H{��H{^ HzM�Hy��Hx� Hyg�Hy~ HyЀHz� Hz7 Hy` HxǀHw}�Hv6 Ht� Hs�Hs Hr� Hs HsW Hsm�Ht. HtD�Ht� HuʀHvɀHwȀHx� Hx� Hx	�Hwq Hv)�HuW�Ht� Ht) Hs  Hr� Hq� Hq' Hq Hp� Hqh Hq| HqY Hp� HpـHp��Hp� Hp� Hp� Hpd HpA Hp��Hq�Hq� Hr_�Hr� Hsp Hs� Hs� Hsz Hrq Hq��Hp*�Hn|�HmA�HkπHk>�Hj�Hi� HiW Hh� HgɀHg; HfA He��He� Heq�HeN�Hee He
�Hd� Hd* HcҀHc{ HcZ�Hc�Hby�Ha� Had Ha
�Ha# Ha�H`� H`� H`� H`�H`` H`� Ha\�Has Ha� Ha� HaF Ha%�H`ЀH`� H`��H`o H`Q H_ǀH_	�H^� H^+ H]; H\� H\_ H[��H[
�HZ��HY��HYX HY�HX� HX� HY�HY� HZ6�H[N�H[. HZۀHY� HY��HYK�HY_�HY� HY� HY� HY��HYÀHY� HY� HZh�HZ� HZ��HZr�HZT�HZ4 HZ HY� HY׀HY�HỲHY�HZ* HYq HX�HWπHV��HUf HT}�HSe�HR� HR  HQ��HP� HPO�HO��HO��HO HN��HM� HL� HLy HK� HL� HL��HM� HM��HN��HN��HO] HO��HO�HP\ HPp HP"�HO� HN�HN HM� HMH�HM*�HM HL� HK��HK6�HJ� HJn�HJ��HJg HJI HJ-�HJ HIĀHI� HI��HI [...]
- H>�H>��H>� H?6 H>� H>M�H=) H</ H:��H9i H8v�H7� H8�H9\�H;& H=� H@� HC
 HE�HE��HF�HE��HD� HD� HD��HD΀HD� HD=�HC HA�H@ �H=� H;��H9 H6x�H3� H2  H0��H0$�H0� H1A�H2��H4��H7
�H9��H<9 H>� H?� H@� HAC HA�HB~ HB�HC  HB� HBB H@� H?��H>��H=q�H<��H<4 H< H<Y�H<� H<� H<� H;��H:y�H8� H7�H4�H3�H0� H.�H.[ H-��H.V H/��H1d�H3�H6׀H:' H<� H>πH@� HÀHBƀHC� HD��HD� HÈHE�HE��HF	�HE� HE� HE��HED HD��HDV�HCހHCi HB� HBN�HA� HAf HA
�HA�H@��H@ҀH@� H@� H at X H@? H?��H?��H?�H>C�H= H;̀H9��H8[ H6 H3� H0� H-�� [...]
 H?� H>��H>ހH>ŀH>��H>��H># H=� H<�H;� H:t�H9�H8� H7�H7� H6� H6S H5� H4��H44�H3�H3��H3��H3��H3� H4} H5; H5΀H6� H7M H7��H8L H8` H8��H9
- H9
 H92 H9� H:	 H9� H9� H8� H5B�H4��H3�H2��H2@�H0� H/u�H-� H+� H)ˀH&�H$� H!w H
��H
T H� H� H��H| H� H��H H��H
� H��H!��H#�H%�H'A�H) H*� H+� H,��H-�H-��H-�H-�H. H.B H.V H.g�H.��H/�H/�H//�H/ H.� H.��H.� H-ǀH-� H,� H,? H+؀H+G�H+
�H*� H*f�H*P H)�H)ՀH)� H)X�H)D�H(� H(* H' �H%� H$��H"̀H!� H i H��H8 H
� H[ H �H!
 H"�H#Y�H$ƀH%� H&r H&� H'Z�H'l H'}�H'��H'{ H'��H'�H( H(�H('�H(a H(r�H(��H(p H(4 H(
�H'�H'}�H'g H'+ H' H&؀H&ĀH&��H&� H&^ H&" H%��H%4�H$� H$!�H#��H# H"��H"(�H!ɀ [...]
-�H� H� H
Z H	� H Ht H� H��H� Hn H	 �H
X�H
� H+�H��H4 H��H��H' H� H��H� H� HĀH
 HP�H� H H��H��H~ H� HU H� H� H��H� H� HP H�H� H� Hr�H� H� Hh HŀH%�HˀH� H��HN�H` HL H��H� H
�H
 Hu�H� H� H��Hs H_ HM�H9�H( H� H��H� HQ H?�H+�H H�H�H) H�H�H H�H� H� H̀H� H� H,�H H�H��H� Hi�H5 H݀H� Ht�H@ H
�H��H< H�H��H:�H�H� H�H� H€HрH&�H5�Hg�HV Hg�Hy Hg�HV HD�Hv�He Ht H��Ht Hb�H��H� H� H
- H�Hp�H� H� H�Hn H\�HK H�H��HI�H�H|�H'�H��H� H+ H�H
�H
��H
� H
��H
� H
��H
� H
� H
� H
o�H
=�H
, H
�H
�H
� H
� H
R�H
 �H
 H
� H
� H
��H
��H
X�H
 H
-� H
-��H
-� H
-��H
-r�H
-a H
-O�H
-@�H
-�H	܀H	� H	Z�H	K�H	�H	
-�H� HɀH� H� H��H� Hw He�HV�HE H6 H$�H�H H� HŀH��H��H4�H H�H� H� H��Ht He HS�HD�H5�H$ H H H�H�H� H� H� H��H��H��Hu Hf HW H'�H��Hl H
 H� H� H  H � G�A G�
 G�M G� G�Q G�� G�� G�0 G�  G�> Gߎ G�G G�@ G�G G�] G�^ G�� G�4 G�@ G�k G�� G�� G�� G�_ H 6�H � H � HX�H��H��H��Hv�Hg�H:�H+�H � H � H � H u H f H W H * G�� G�� G�
- G�8 G�� G�� G�: G�� G�� G�� G�� G�� G�� G�� G�_ G� G�� G�� G�� G�, G�� G�� G�W G�� G�y G�� G�� G� G�- G�� G�� G�� G�B G�$ G�� G�� G�5 G�� G� G�� G�- G�� G� G�e G�G G�. G�G G�e G�L G�. G� G� G�f G� G�I G�+ G� G� G� G�2 G� G�� G� G� G�j G� G�3 G� G�8 G� G� G� G� G� G� G� G� G�> G�% G� G�� G� G�D G� G�1 G� G�� G�� G�� G�^ G�[ G�� G�V G�� Gۦ G�! G�� G�[ G�� G�� G�B G�Z G�� G�� G�F G� G�� G� G�@ G�� G� G�> G�� G�� G� G� G� G�Q G�8 G�V G�= G� G� G�� G�� G� G�k G�M G� G�D [...]
- G׌ Gץ G�� G�@ G؋ G�w Gؐ G�w G�^ G�E G�� G�� Gז G�� G֜ G�Q G� G�� G�C G�* G� G�� G�H G�/ G�H G�a G�M G�f G� G�� G�� G�� Gն Gբ G�W G�� Gԏ G�D G�� G�O G� GҌ G�s G�� G�� G�e G�Q G�8 G� G�� GЎ Gϲ GϞ G�S G�
 G�� Gή G�� Gγ G�� G�� G�� GΆ GΟ G΋ G�r G�, G�� G�� G͇ G�n G�Z G� G�� G�Q G�� G�f Gʏ G� G�E GȠ G�� G�[ Gƶ G� Gţ G�� G�� G�4�G�9 G��G��G�ȀG���G�
�G��G�׀G�j�G�� G�m G�6 G�� G�� G��G� G�? G�;�G�
 G�� G�" G�� G�� G�� G�� G�� Gĸ GĤ Gċ G�J G�} G�	�G˜ G�' G��G���G�C G�w G��G��G���G�� G�{�G�� G�I G� G�  G�� G�  G���G��G���G���G�C�G���G�΀G�� G�� G��G�ՀG��G�Q�G� G��G�� G�q�G��G��G�p�G���G�w�G�{ G�~�G�U�G�Y�G���G���G�� G�� G�ĀG�� G�� G�v�G�N G�% G���G�� G��G�W G�/ G��G�
-�G�� G�b G�: G� G���G��G�� G�m G� G�ǀG�t�G�M�G�� G�}�G�V�G� G�� G�� G���G�i�G�C G�
�G�� G���G�T G� G���G�7 G�� G�� G�q G�K G�%�G�)�G� G�� G���G�� G�m�G�G�G�{�G�ـG��G���G�_ G�� G��G�j G�� G�=�G���G�ހG���G�N G��G�� G�4 G�o G�� G�c�G���G�# G�� G�
�G���G���G�b G� G���G� G�� G�!�G�`�G� G�V G�� G�&�G���G�� G�c�G��G�_�G��G�πG�� G���G���G� G�3 G�� G�ՀG�� G��G�V�G�[�G�9�G�>�G�
 G�� G�� G�k G�#�G�� G�n�G�' G� G�� G�x G�
�G�� G�~�G�]�G��G���G�� G�� G�o�G�� G�t�G�/�G�� G�[ G��G���G�� G [...]
 GF� GF� GFs GFO GF, GF GE� GE� GE� GEK GE( GD� GDW GD GC� GC� GCn GC
 GB� GBM GA� GA� GA� GAg GA G@� G@� G@� G@ G?� G?� G?r G?P G? G>� G>� G>n G> G=� G=� G=4 G<� G<� G<w G<U G<4 G< G;� G;w G:� G:� G:d G: G9� G9& G8� G8� G8B G7� G7� G7_ G7 G6� G6� G6� G6� G6r G6R G6 G5� G5� G5| G5] G5 G4� G4� G43 G4 G3� G3� G3` G3A G2� G2� G2 G1� G0� G0 G.� G-� G,� G*� G)� G(< G'1 G&w G%� G%� G&  G&� G'o G(g G)9 G*
 G*� G+� G, G,B G,� G,� G,� G,� G,� G,� G,� G,� G,� G,� G,h G,J G,, G+� G+w  [...]
 G&� G&� G&i G&L G&	 G%� G%� G%� G%p G%T G%8 G$� G$� G$� G$S G$ G#� G#� G#� G#S G# G"� G"� G"q G"/ G" G!� G!� G!� G!� G!d G!I G!. G! G � G � G � G Z G� G� Gr G1 G G
� G
� G
{ G
 G
� G
� G
{ G
a G
F G
, G
 G
� G
� G
x G
 G� G� G| Gb G# G	 G� G� G� GY G? G� G� G� Gk GQ G8 G
 G G� G� G� GW G= G  G� G� GI G
 G� G� G� G� Gk G/ G G� Gz Ga G% G� G� G� GY G
 G� G� Gl G1 G G  G� G� G� G� G� GL G4 G
 G� Gb G G� G� G6  [...]
� G
� G
� G
� G
x G
a G
J G
3 G

 G
 G
� G
� G
} G
$ G
� G
� G
� G
f G
/ G
-� G
-� G
-� G
-r G
-; G
- G	� G	� G	� G	) G� G� G� Go G9 G G� Gw GA G+ G G� G� G� G� G� Gr G= G' G G� G� Gr G= G G� G� G� Gt G! G
 G� G� G� G� Gc GN G9 G$ G G� G� G� G@ G+ G� G� G� G| GI G G � G � G } G J G 6 G ! G 
 F�� F�� F�� F�v F�N F�& F�� F�� F�� F�� F�� F�n F�
- F�� F�� F�� F�h F�@ F�� F�� F�� F�d F� F�� F�v F�� F�v F� F�� F�� F�b F�  F�b F�< F�� F�x F�R F�� F�� F�. F�Z F�� F�` F� F�� F�� F�P F� F�x F�� F�� F�F F�B F� F�� F� F�� F�� F�r F� F� F�� F�b F�d F�0 F�  F�� F� F�� F�
- F�H F�V F�� F�H F�& F�� F�| F�� F�� F�~ F�� F�H Fߔ F�z F�` F�� F�$ F�� F�� F�0 F� F�� F� F� F� F�� F�` F�r F� F�b F�> F� F�� F�� F� F� F�j F�F F�� F�� F�r F�N F�� F� F�F F�" F�� F�r F�P F�� F� Fߪ Fނ F�� F�� F�� Fچ F�d F�B F�$ F�j F� F�� F�> F�� F�, F�� Fײ F�* F�< Fـ F�` Fڦ F�
 F�0 F�D F�" F�  F�� Fڊ F�h F� F�� F�8 F�� Fؐ F�n F�N F�, F�
 F�� F�� Fת F׊ F�h F�H F�& F�� Fր F�. F� FՈ F�6 F� F�� FԢ FԂ F�b F�B F�" F� F�� F�� FӢ F�P F�� F�� F�\ F�
- FѺ Fњ F�z F�* F�� Fк F�h F�J F�� FϨ F�X F�: F�� F�� Fά FΌ F�> F�
 F�� FͰ F�0 F� F�� F̤ F̶ F̖ F�x F�* F�
 F�� F˞ Fˀ F�b F� F�� Fʦ Fʈ F�j F�
 F�� F�� Fɒ F�t F�( F�
- F�� FȞ FȀ F�4 F� F�� FǬ Fǎ F�B F�$ F�� Fƺ F�n F�P F� F�� FŚ F�~ F�` F� F�� FĬ FĐ F�D F�& F�� Fþ F�t F�( F�
 F�� F¤ Fˆ F�l F�N F� F�� F�� F�T F�� F�� F�H F�, F� F�� F�~ F� F�� F�� F�� F�j F�" F�2 F� F�� F�� F�� F�� F�� F�� F�� F�� F�� F�� F� F�� F�� F�h F�  F�� F�� F�
 F�� F�� F�F F�� F�b F� F�� F�� F�� F�� F�� F�
 F�� F�� F�N F�� F� F�� F� F�� F�
 F�
 F�� F�� F�� F�� F�� F�� F�
- F� F�* F� F�� F�� F�� F�~ F�d F�J F�\ F�B F�( F� F�� F�� F�� F�� F�� F�J F�0 F�� F�~ F�< F�� F�� F�r F�0 F�� F�� F�> F�� F�� F�N F�
 F�� F�� F�p F�. F� F�� F�� F�� F�� F�r F�X F�@ F�P F�8 F�H F�0 F�@ F�P F�` F�H F�. F� F�� F�� F�� F�d F�L F�
- F�� F�� F�� F�� F�@ F�( F�� F�� F�h F�P F� F�� F�� F�� F�� F�� F�� F�j F�R F�: F�� F�� F�� F�� F�& F�� F�� F� F�� F� F�P F�� F�: F�� F�r F� F�� F�� F�~ F�� F�� F�� F�� F� F� F� F�  F�
- F�@ F�N F�8 F�H F�0 F� F� F�� F�� F�t F� F�� F�� F�� F�  F�� F�� F�F F�
- F�� F�� F�� F�� F�R F�< F�� F�� F�� F�t F�� F�l F�X F�� F�v F�� F�p F�Z F�D F�. F�� F�� F�~ F�
 F�� F�� F�p F� F�� F�� F�� F�r F�8 F�� F�� F�� F�v F�b F�L F�6 F�" F�
 F�� F�� F�� F�� F�\ F�F F� F�� F�� F�� F�r F� F�� F�� F�� F�| F�h F�0 F�
 F�� F�� F�� F�� F�( F� F�� F�� F�� F�| F�h F�T F�> F� F�� F�� F�� F�� F�: F�& F� F�� F�� F�� F�~ F�F F�2 F�
 F�� F�n F�8 F�$ F� F�� F�� F�� F�� F�� F�V F�B F�� F�� F�� F�l F�8 F� F�� F�� F�� F�r F�> F�* F�� F�� F�� F�� F�f F�2 F�
 F�� F�� F�� [...]
- F�� F�� F�� F�� F�p F�^ F�, F� F� F�� F�� F�� F�b F�P F�> F�, F� F� F�� F�� F�� F�� F�� F�� F�l F�Z F�* F� F�� F�� F�� F�t F�b F� F�� F�� F�� F�� F�| F�l F�Z F�H F�8 F�& F� F� F�� F�� F�� F�� F�2 F�  F�� F�� F�� F�� F�� F�| F�N F�< F�, F� F�
- F�� F�� F�^ F�L F�
 F� F� F\ F  F~� F~ F}� F}P F}, F}
 F|� F|� F|l F|L F{� F{� F{� F{ Fz� Fz� Fz� Fz� Fz8 Fz Fy� Fy� Fy| Fy\ Fy< Fy Fx� Fx� Fx� Fx� Fx< Fx
 Fw� Fw� Fw� Fw( Fv� Fvt Fv Fu� Fu� Fu� Fu$ Ft� Ft� Ft Fs� Fs� Fs� Fs` FsD Fs$ Fs Fr� Fr� Frl FrL Fq� Fq� Fq� Fq� Fqx FqX Fq8 Fq
 Fp� Fp� Fp� Fpd FpH Fo� Fo� Fo@ Fn� Fn� Fnt FnT Fn4 Fm� Fm� Fl� Fl� Fl� Fl0 Fl Fk� Fk� Fk� Fk( Fk
 Fj� Fj� Fjx Fi� Fi� Fi� Fi� Fit FiX Fi8 Fi
 Fi  Fh� Fh� Fh8 Fh Fg� Fg� FgT Fg8 Ff� FfX Ff< Fe� [...]
- F
-P F
-� F
-� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F  F P F � F � ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-C�I��I� I� I��Ii I��I|�IF�I�`I�`Ip`I� I�I� I
@I�@I
a I-*�I>Z�IY��IW��I��@I^� I��`I��IwV�Ifj�I���I�O�I�A�Iqh IU�I���I��`I���I��I�� I�- Iq&`I=�Ir� I�> I�^ I�	�I�݀I�� I��`I��@I�9�I�`I|X Iw|@Il�IG�I
��IL@Idf�Ie�If �Id��Ibf I_T�IY|�IV�@IW2 IT�`IS1�IO��INU at IL$ IK�IH�IE�ID� IB�`I@̀I>ȠI<��I:P at I8	�I6v�I3�I2
�I/�`I,�I!� H���H��@IY`I$�@I$s`I#�@I#�I!��I @`I
y�IS IX at I` I�`IQ�I=�I@I֠I� I��I
� I
��I
-��I	`�I��I��I�`I��I`I �@I o`H��@H��@H���H��@H�� H�= H� H�~@H�6�H�d at H���H��@H�e at H��HⵀH��@Hޯ�H� Hڌ�H׷�H�R Hӈ�H�0�Hϣ H��@H���H�d at HǺ H�� Hŷ H�� HÎ�H��@H���H� �H��@H�%�H�w�H�! H�� H���H�h�H�v H��@H�"�H���H�\�H�&�H��@H�s�H�4�H���H� H�5 H���H�� H�@H��H�� H�
�H���H��@H�t H�K�H���H��H�6 H�@H��@H�v H��H�� H���H�@ H�@@Hhn�HC�HnрH���H��H�� H�� H���H���H�
@H~��H|� Hz� Hxf HvĀHty Hrn�Hp��Hn� Hi��HLe HKp HQ��HZa H]j�H]6 H^�H\� HY��HXc HWi HV:�HT� HS�HR_ HP� HOU�HM HI��H?� H7� H:t�H@� H [...]
o�H
} H
/�H
` H
-/ H� H H��G� G� G�$ G�Q G�� G�p G�� G�� G�f G�
 G�� G�� G�� G�� G� G�� G� G�d G� G�P G� G�q G� G� G� G�
 G�� G�9 GԲ G�{ G� G�! Gʼ Gӳ G�6 G� G� G�] G�p G�  G�! G� G� Gޏ G�1 G�� G�� G� G� G�� Gڢ Gγ G��G�πG�� G�  G�� G�} G�� G��Gê G��G��G�� G�� G��G�"�G�ԀG�� G���G�� G�ڀG�� G�� Gk� Ga� Gm Gz^ G�� G��G�h G G�� G� G�� G�� Gl GQB GU8 G�  G�W G�+ G�� G�� G�� G�� G�} G�� G� G���G��G�F�G�W G�
�G��G�" G���G��G�� G�� G�� G�؀G�� G�� G�� G���G� G���G}n Gg? G�*�G�� G�8�G�� G�� G��G� [...]
Ӡm;�P5ǐ��   �EN@ EQ` ET� EW� EZ� E]� Ea  Ed  Eg@ Ej` Em� Ep� Es� Ev� Ez  E}  E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  Eɐ E�  Ḛ E�@ E�� E�` E�� EԀ E� Eנ E�0 E�� E�P E�� E�p E�  E� E�  E� E�@ E�� E�` E�� E� E� E� E�0 E�� E�P E�� E�p E�  E�� E�  E�� F   F � F� Fx F@ F F� F� F` F( F� F� F	� F
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ F
 F
� F
� ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
qC�C�C�
qC���C�P�C���C�{C琤C��)C�:�C��HC�9�C��qC�>�C�(�C���Cȱ�C�s3C�EC���C�3C��C�@ C�S3C�C��C�&fC���C��\C�l�C���C�RC�K�C���C��C�q�C�k�C��3Cv��C�\Cs0�Cl��Cr!HCq��CA�
-CG�C4޸C$k�C)
)C,�C3B�C>��CLCF�CG�3CL��CP��CL�=CJO\CQ�qCC��CCJ=����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ F
 ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-DIo\D5@ D>g
-D<� D9=D4��D/�D#� D�=D��D
��D� D)�DeD�qDu�D�DX�DnD1�C�c�C�t{C��C�C�@ C�ФC�AHC�4{C�FfC��3C�O\C�G�C�AHC�� C���C���C���C�nC���C�3C��HC�ǮC���C�=qC�C���C�ٚC�C�C�t{C�S3Cp��C�Q�C��fC}ECu�RCg�CP�)C
xRC@�C/^�C1h�C!#�C<ffCG��CU��CN�COCP#�CN�)CO��CK��C>������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-C���C��C��=C���C���C��C��C�ФC�޸C�C�|)C�
�C�FfC���C���C�!HC���C�l�C��qC��\C�J=C���C�
)C�  C��)C��qC�
-C�1�C�u�C��C�xRC���C��C��C���C���C�� C��fC�k�C�(�C���C�fC��C��=C��
-C��qC�Z�C���C��=C���C���C�*=C��)C�4{C��C�AHC��C�HC�*=C��C���C�޸C��C���C��{C�z�C���C���C���C���C���C���C�7
-C��3C���C���C��{C��)C���C���C�q�C�Y�C���C���C�
-C�H�C�|)C�b�C�p�C���C���C��C�aHC�G�C�/\C�b�C�J=C�0�C�RC�  C��C���C���C��
-C�4{C���C���C��HC���C�p�C�XRC���C���C��HC��=C�'�C��fC�AHC�� C�� C�C�C���C���C�#�C���C���C�q�C�3C���C���C���C��qC�.C�:�C�k�C�T{C�=qC�&fC�ǮC���C�u�C�^�C�G�C��=C��3C��)C��C�G�C�0�C��C��C�33C�
)C���C��C�(�C�˅C�o\C�5�C�ٚC�8RC���C�^�C��HC��fC�,�C���C���C��fC��{C�� C��C�
)C�l�C��)C�˅C��{C�Z�C�EC���C���C�'�C���C�T{C�@ C�l�C�y�C�c�C�O\C�9�C�}qC��HC�j=C�U�C�@ C���C��{C�HC���C��RC�C��C�
qC�k�C���C��C��C��qC���C�s3C�
)C��C�nC���C���C���C�33C�޸C�
-=C���C��HC�,�C��RC�%C�0�C�
)C�G�C�s3C�` C�K�C�8RC���C���C�]qC�
-=C�U�C�� C���C��RC���C���C�]qC�
-=C��
-C���C�1�C�޸C�˅C��RC��C�S3C�>�C�+�C�RC��C��{C��HC�nC�Z�C��C�q�C�!HC��\C��)C�k�C�Y�C�FfC�{C��fC�7
-C�C���C���C���C�AHC��C��C��C��C�C~�C~ǮC~��C~}qC~Y�C~��C~C
-Ch�CEC~�fC~��C}�fC}� C}�)C|L�C{  Cy�3Cx��Cw��Cw8RCv�HCv}qCvY�Cv5�Cv�Cu@ Ct��Ct�Cs�Cs��Cs��CrٚCrECr!HCq��Cqh�CqG�Cq�
-Cqs3CqCr�Cr(�CrCq��Cq� Cq�)Cq�Cq�=Cq5�Cph�Co�{Cp#�Cp  Cp��CpffCp
-=Cou�Cn��CnQ�Cn.Cn}qCnY�CmǮCm�fCmL�Cl��Cl(�Cl�Ck�fCk�Cl�Ck�Clu�Cm33Cm� Cm^�Cl��Ck��Cks3Cj��CjCj�HCj� Cj^�Ci�\Ci@ ChxRChW
-Cg�=Cg��Cg��CgffCg�3Cg��Cgp�CgQ�CfCf�HCf{Ce�qCe��Ce�Cd�Cdc�CdECc�RCcc�Cbk�Ca��Ca#�C`��C`xRC`Y�C`:�C_z�C_\)C_�fC_��C_�)C_}qC^� C^��C^
-C]�RC^B�C^� C^k�C]��C]\)C]=qC\��C\�
-C\xRC\Y�C\�C[� CZ��CYٚCYT{CX5�CW� CV��CVxRCV� CV�HCV�CV  CU��CU�CU�fCT�3CTp�CS�CSnCS�3CS�
-CS�)CS� CS�HCS�CS�=CTB�CT#�CTk�CTO\CT�{CTxRCTY�CT=qCT
�CT�CS� CS  CQ��CQ�CPW
-CO�
-CO(�CNG�CM��CM}qCM  CL��CM(�CM
�CMO\CM�CN
-=CN� CM��CMT{CL�
-CL(�CL
�CLQ�CL5�CK�RCK�qCL�CK��CKٚCL
)CL  CK��CKh�CKL�CK0�CK{CJ�RCK=qCJ� CJu�CJY�CJ=qCJ��CJ��CKǮCL
�CL��CLffCK�RCJ�)CI��CI(�CHO\CH�{CICH��CI.CI�CH�
-CH}qCHaHCHECH+�CG��CGffCGL�CF��CFY�CE�3CD�)CD�{CD
)CD�CC��CC��CC�3CC�
-CC}qCCc�CCG�CC�=CCnCCT{CC:�CCL�CC�\CCu�CCY�CC@ CC#�CB&fCAT{C?��C>�{C=��C<.C;�qC;J=C;0�C;
-C:�qC:aHC9�C8�qC85�C7EC5�qC5�fC5��C6
-=C6s3C7C7nC8C<�RC=&fC<�3C<nC<T{C;�HC;p�C:�qC:�RC:G�C:.C:��C:� C9��C9
)C8�
-C8h�C8O\C85�C8
�C8C7�C7}qC7c�C7L�C6�3C6EC6+�C6�C5��C6c�C6�RC7aHC7��C8^�C8�)C933C9EC9�)C9C:.C:{C9�qC9��C9s3C9�3C9��C9�
-C:
-C9�qC:�C9�RC9�3C9�)C9+�C8��C8��C98RC8�=C8Y�C7� C7O\C78RC6�=C7�C6�C6�
-C7{C6�qC6��C6��C6޸C7
�C7C7B�C7+�C6�qC6��C6
�C5G�C4��C3�C3�C1�C0�)C/��C/8RC.�fC/
-=C/��C0Q�C1^�C2�C2�{C3c�C3��C4^�C4G�C4�C4�
-C4� C4ffC4O\C48RC4!HC3�3C3s3C3C2�C2�
-C2� C2��C2��C2z�C2\C1�RC1��C1J=C0�HC0u�C05�C/�=C/aHC.�\C.ffC-�qC-�{C-�C,�)C,33C,
)C,�C,B�C,}qC,ffC,�HC,�=C,s3C,
�C+��C+�\C+&fC+�C*��C+5�C+
�C+
-=C*�HC*c�C)�qC)��C)��C)k�C(޸C(xRC({C'�qC'��C'��C'EC&�HC&}qC&@ C%�\C%z�C%c�C%O\C$�C$aHC#��C#(�C"�HC"@ C"+�C"
-C"s3C"^�C"�
-C"�\C"�RC"��C"�)C"ǮC"�3C"��C"��C"&fC"�C!��C!Q�C!��C!� C"
)C"T{C"��C"��C"�=C"�C!�HC!�C nC 33C�{Cs3C
�C
EC
u�C
^�C�{C�Ck�C\C�qC�HC�
-CY�CnC�Cs3C��CxRC��C\)C&fC��C#�C�)C�3CnC
-=CaHC�)C33Ch�C�)C�=C�qC��C�
-C�C�)C\C�qCT{CB�C.Cc�C�HC�C޸C�C  C��C�\C}qCh�C��C�{C��C�C�qC��Cs3C^�CL�C8RC&fC� Ck�CY�CEC33C
�C
�C�RCz�CffCT{CB�C.C
)CCffC0�C�
-C}qC�C��C�
-C�C+�C�C� CEC�C.C�
-C� CnC�HC�{C}qCk�C{C�HC��C��C��C�qC0�C�=C�qC.C
)C�Cp�C�C�HC�\C8RC&fCY�CG�C�CxRC#�C�\C�)C�=C��C�=C�RCc�C0�C
�)C
��C
33C
�C
�C
Y�C
G�C
8RC
��C
��C
�HC
L�C
=qC
+�C
-ٚC
-ǮC
-u�C
-B�C
-33C
-!HC
-\C
-
�C
-O\C
-@ C
-.C
-
)C
-
�C	��C	G�C��C��Cs3Cc�CQ�CaHCQ�C@ Cp�C^�CO\C�qC��C=qC+�C
)C
-=C��C�=Cz�Ch�CY�CG�C8RC��C�
-C��C�C
-=C��CL�C\)C�=Cz�Ch�CY�CJ=C:�C�C�qCnC!HC\C  C�C
�C\C� C�C޸C�\C� C�C�)C��C�qC�C��C&fCT{C��C��C� Cs3Cc�C{CC��CǮCxRCh�C
)C
�C�qC�C�HCs3C&fC ٚC ��C ^�C O\C ^�C ��C z�C ��C ��C �=C z�C .C 
�B���B�L�B�.B��{B�  B��HB�\B��B���B��3B��{B�u�B���B��3B��{B�u�B��HB�B�.B���B�B�B��B��\B���B��)B�L�B�.B��
-B�B�B���B��RB�\B��B���B��3B�#�B�B�8RB�33B�k�B��)B�\B� B��B��
-B�\B��B��
-B�RB�
-=B��B���B�RB�(�B�
-=B� B�aHB��
-B�RBB� B���B�RBB� B�aHB��
-B�{B���B�k�B�L�B�33B��B�Q�B�ǮB�=qB�3B�aHB��
-B�Q�B�\B晚B��)B�B��B�
�B�B�W
-B��B�B� B晚B��B���B�RB�
-=B��B���B�#�B�
-=B�#�B�
-=B�\)B�=qB�#�B�
-=B�\)B�=qB�\B�u�B�\)B���B�L�B�.B�p�B�W
-B���B�RB䙚B� B�ffB�RB䞸B�{B���B�u�B�\)B➸B��B�  B�z�B�.B��B�#�B�
-=B��B��
-B߽qBߞ�B߅B��
-B߽qBߣ�Bߊ=B�p�B߽qB��
-B߽qBߣ�Bߊ=B���B޸RBޞ�BޅB�k�B�Q�B���Bݳ3Bݙ�B݀ B�ffB�L�B�33Bܳ3Bܙ�B�L�B���B۳3B�.B�{B�  B�z�B�aHB�{B�  Bـ B�  B؀ B�ffB��B�  B׀ B�k�B��B�k�B�W
-B�
-=B��B��
-B�\)B��)B�.Bӳ3B�8RBҊ=B�\B�aHBЅB��
-B�  B��B��fBˀ B��B�{Bdz�B�S�B��LB��XB �B��`B�}�B�+�B��#B���B��B�  B��B�Y�B���B�dZB�B�$ZB�I7B�o�B�=qB”�B�
�B�J�B�
�B�dZBƫ�B�!HB�ƨB��;BȅB���B��fB�.B�{B�\)B�G�Bɏ\Bɨ�B�aHB�L�B��
-BȽqB�G�B�33BǼ�B�wLB��BƎVB�w�B�aHB��Bŧ�B�49B���B� BB�
-=B×�B�%`B��HB�oB��qB��mB��hB�`�B�J�B�4�B�y�B�c�B��3B��/B�?}B�t�B��B�hsB���B�^5B��B�T�B���B�L�B�߾B�r�B��B�H�B���B��^B��B��B��NB�oB�V�B���B��B�p!B�Z�B�E�B�0!B���B��B��!B��#B��%B���B���B�-�B��B��B�G+B�2-B�I7B���B�w�B���B��fB��hB�|jB�gmB��B�B��B��'B��)B��+B��-B�DB�/B�
B�B��!B��#B�A�B��{B�;�B��\B�b�B���B��hB���B��}B��B��B�)�B��B�B���B���B�lB�W�B�CB���B�q'B�\�B��'B�ܬB�G+B��)B�q�B�]/B��3B�5?B�v�B�b�B�NVB��ZB�z�B�;�B��oB��wB�T�B�A�B�-�B��B���B�r�B�
-=B���B��VB���B��yB�ՁB�nB�Z�B��3B��FB�O�B�<jB��B�B�33B�z�B���B�5�B��sB��B��LB�SuB��!B���B��B��;B�{B��-B��=B��3B�ܬB�.�B�Z
B���B�'�B�	�B��B��1B�J�B��B��VB�bB��B���B��7B���B�s�B���B��B�J�B��B���B�gmB�bB�ܬB��JB�%�B�\)B�K�B���B�ܬB�uB��?B�bB��\B��B��B��TB���B��B��oB�iyB��B���B�}qB��'B���B�&fB��
B��B�`�B�c�B��PB���B���B���B���B��B��+B���B��B��B���B�dZB�A�B�
�B���B���B�i�B��dB��B��FB�nB�K�B�ݲB��dB�NVB��HB���B�-B�
DB��;B�}qB�\)B�:^B���B���B�f�B���B��hB��B���B��fB��HB�8RB� [...]
-�B�e`B���B���B�bNB���B�iyB��B�~wB�	�B��
B�ffB�B�^�B�@�B�!�B��wB�8�B��B�QhB��B���B�
-=B���B�H1B��%B�e�B��ZB�B�B��TB�cTB��B���B���B�l�B�O�B�33B�W�B�:�B�_�B��B��1B��B��B�X�B�}qB��B���B�
PB��!B�6FB��B�>�B�!�B�B���B��7B�l�B�O�B�33B���B��B��/B���B��ZB�f�B�J�B��B���B�s�B�
-B�ڠB�~wB�!�B���B�J=B��B�t9B��B���B���B���B�.�B�uB�6�B��B� �B��`B���B��B���B��RB��/B��
B�gmB�LJB�1�B�ؓB�� B�F%B�+�B��uB���B�`�B�F�B�,B��B���B��/B��B���B�33B�ܬB�B�lB�RoB�
B�1BT�B!�B~�B~B�B~bB}�/B}2-B}  B|�hB|_;B|,B{�B{P�B{
�Bzu�BzC�BzoByjBx��Bx��Bx��BxhsBx7LBx%Bw��Bw.Bv��BvXBv&�Bu��BuĜBuZ
Bu)�Bt�}Bt�VBt$�Bs�^Bs�=Bs �Br�LBr�+Br
�Bq�?Bq�%Bq
�Bp�9Bp�Bp
�Bo�?BoL�Bn�`Bn�FBnN�Bm�sBm�Bm�Bl�9BlM�Bk�mBk�XBkS�Bj�FBj�1Bj[#Bi�wBi�bBh�qBh�bBg��BgǮBg-BfɺBf0!BfBeiyBd��Bd��Bdw� [...]
-B6�?B6�uB6q�B6O�B6B5�NB5k�B5I�B4��B4�-B4�bB4o�B3��B3�B3�LB3��B3u�B3T�B349B3uB2�B2��B2�'B2ffB1�B1��B1]/B0�yB0��B0,B0
DB/��B/x�B/YB.�fB.ƨB.}�B.^5B.>wB-��B-�B-�PB-�B,��B,�/B,l�B,M�B,B+�fB+ǮB+��B+�7B+�B*��B*�#B*l�B*M�B*/B)�mB)ɺB)Z
B)<jB)
�B(�B(�hB("�B(B'�}B'Q�B'49B'�B&��B&�DB&m�B&B%�jB%��B%33B%�B$��B$�JB$n�B$B#��B#��B#�%B#�B"��B"�HB"ĜB"��B"=qB" �B"B!��B!XB!;dB ��B �?B ��B 1'B {B��B�FBN�B2-B�B
��B
�oB
v�B
Z
B
�B
�B
�dB
z�B
_;B
��B
�/B
��B
��B
�=B
$�B
	7B�B�1 [...]
-Bt�B6FB��Bq�BW
-B�Bo�BVB�B�uBVB�!B-B��B'�BaHB�BB�
-BuBVB+B
k�B
jB
0!B
�B
{�B
��B
�B
�B
��B
v�B
�ZB�FBE�B�BBM�Bx�B`BBF�B.B�B��B�TB��B�'B��B� B#�B
DB��B�LB\)BC�B+B
��B
�LB
��B
�%B
m�B
T�B
=qB
$�B

JB
�B
�)B
�
B
iyB
Q�B
9XB
  B
�sB
�VB
v�B

�B
B
-�B
-�{B
-\)B
-D�B
--B	��B	�jB	��B	�PB	5?B	
�B	%B�B��B� BH�B1'B�BB�B�{B}�B&�BbB��B�NB��B�9B^5BG�BhB��B�TB�VBw�B!�B
DB��B� BjBS�B��B�sB��B}�BhsBQ�B
�BȴB�3B_;B
JB�B��B�B��B� BjBT�B?}B)�BuB ��B �B ��B D�B /A��^A�Q�A�(�A��A�Z
A��RA��\A�dZA�9XA���A�n�A�C�A��;A��9A��DA�`BA�7LA���A�l�A�C�A���A�?}A���A�v�A��A��!A��+A��yA���A���A�n�A�
JA��TA�E�A�
�A���A�Z
A�1'A�A�l�A�
JA��TA�I�A� �A�+A�`BA�ƨA�dZA�=qA��A�|�A�VA�/AA�n�A�bA�x�A�Q�A�+A�A�l�A�E�A�  [...]
-=A�G�A�"�Aޕ�A�r�A�M�A�Aݝ�A�z�A�VA�33A�VA��A�ȴAܣ�A܁A�^5A�9XA��TA�XA�5?Aک�Aڇ+A���A٥�AكA�`BA�=qA��A���A���A�K�A�(�A�%A�~�A�\)A���A�~�A���A���A�M�A�-A�
-=A��yA�bNA�A�A�
�A���Aө�AӇ+A�
A��HAҾwA�9XA��A���Aѣ�A� �A�  A�z�A�Z
A�9XA϶FAϕ�A�t�A�S�A�33A�bA���A�=qA�
�A͛�A�z�A���A̩�Ả7A�1Aˇ+A�1AʸRA�9XAɸRAə�A��A���A�M�A���AǁA�A�(�A�~�A�
A�XAÁA�z�A���A�  A���A�+A��A��9A�bA�A�A���A�(�A��+A��^A�ĜA�$�A��A��^A�ȴA��A��A���A���A��
-A���A�%A�G�A��9A���A���A��/A�dZA�{A�ƨA�O�A�S�A�\)A�bA��A���A��+A���A�$�A��-A��A���A�33A�l�A���A�
-=A�C�A�~�A��TA�
�A�+A�ffA���A��A��wA���A��A�hsA�K�A�1'A�{A���A��#A��wA���A��+A�jA�O�A�33A���A���A�33A�A�&�A��FA�
�A�XA�jA���A��wA�&�A�hsA�"�A��FA�I�A��A��RA�ƨA�Q�A�A��\A��A�(�A��7A�A���A��;A��A�&�A�
JA��A��
-A��^A�v�A�\)A��A���A��RA�K�A�1'A��A���A��PA�r�A�/A��A���A��\A�t�A�Z
A�?}A�$�A�
JA��A�(�A�VA��A��#A�n�A�S�A�;dA� �A��FA���A��A�hsA�M�A�5?A��A�  A��mA���A�bNA� �A�1A���A��A��A�
A���A�~�A�?}A�$�A��jA���A��DA�"�A�
-=A��A��7A�p�A�XA�=qA�$�A��`A���A��PA�M�A�5?A���A��/A���A��A�E�A�-A��A���A���A�|�A�?}A�&�A��mA���A��hA�x�A�9XA�"�A��TA���A��PA�t�A�7LA� �A��HA���A��PA�t�A�7LA�
�A��HA���A��PA�t�A�7LA� �A��TA���A��\A�x�A�;dA�"�A��mA���A��uA�|�A�?}A�(�A�oA��!A���A��A�jA�
-=A��A��/A�ƨA�ffA�O�A�{A���A���A��+A�&�A�bA���A��TA���A��FA���A��7A�r�A�\)A�"�A�A��A�M�A�9XA��#A�ĜA��DA�-A��A�  A��A���A��wA���A��uA�|�A�ffA�Q�A���A��;A��A�I�A��A��hA�{A�r�A���A�VA��A�;dA��wA�ffA��A��
-A�A��A���A�-A�~�A��A��/A�/A��A�A��A��#A�ĜA��\A�5?A� �A�ȴA��9A���A��7A�1'A�`BA�K�A�7LA��;A���A��FA���A��PA�x�A�C�A��A��
-A�~�A�l�A�{A��;A���A��FA�`BA�
-=A���A�~�A�+A���A�^5A�
-=A��9A��A�-A��A�ĜA��-A���A��DA�v�A���A��\A�|�A�hsA�VA�C�A�/A�
�A�I�A�VA�A�A�n�A���A��7A��FA�A��\A�;dA�(�A���A��A�VA��jA���A�7LA�"�A�bA��wA��A���A��A�r�A� �A�VA���A���A���A�ffA�Q�A�?}A��A��/A��DA�;dA�
-=A��^A�jA�9XA��yA��
-A�ĜA��-A���A��PA�|�A�jA�XA�1A���A��`A���A��A�p�A�`BA�M�A�;dA�(�A�S�A�A�A�l�A�Z
A��A�r�A�bNA�O�A�=qA�;A�^A��At�AO�A+A
-=A~n�A~I�A}�A}�PA}+A|�uA|n�A|M�A{�-A{�hA{l�A{G�A{&�Az�\Az1'Az
JAy�AyƨAy��Ay�Ay`BAy;dAy�Ax��AxbNAx=qAx
�Aw�AwdZAw?}Aw�hAwp�AwO�Aw+Aw
-=Av�yAvĜAv1'Au��Au?}At��At�+As�As\)As
Ar�HArM�Ar-Aq��Aqx�AqXAp��Ap�/Ap�jAp(�Ap1Ao�mAoƨAo33AooAn�AnbNAnA�An �An  Am�;Am�Al��Al��AlE�Al$�Ak��Akt�Ak
�Aj��Ajn�AjM�Aj-Ai��Ai�Ai`BAh��Ah�9Ah^5Ah=qAh
�Ag�hAgp�AgO�Ag33AgoAf�AfffAfI�Af(�Ae��AeG�Ad�jAd��Ad{Ad^5Ad
JAc�Ac��AcC�Ac"�Ab��Ab�!Ab^5Ab=qAa�Aa��Aax�Aa"�Aa%A`�9A`�uA`A�A`$�A_��A_|�A_`BA_VA^�A^��A^~�A^-A^
JA]�^A]��A]K�A]/A\�/A\�jA\jA\M�A[��A[�;A[�PA[p�A[S�A[
AZ�`AZ�uAZv�AZ$�AZ1AY�^AY��AY|�AY/AYoAX��AX��AXQ�AX5?AX�AW��AW�AW [...]
-AQXAQ;dAQ
�AP��AP�+AP1AO�^AO��AO"�AN��AN(�AM�;AMAM��AM�PAM��AM�mAM��ANbAM��AM�#AMAM��AM+AMVAL�ALv�AL-ALbAK��AK�AJ��AJVAJ=qAIAI��AI�PAIt�AH��AH�HAHĜAHz�AHAG�7AGp�AGXAF�/AF��AFz�AFbNAFI�AF-AF{AF(�AFbAE�AE�#AE�hAEx�AE
AD�yADr�ADZ
AD=qAD$�AD
JAC�AC�
-AC�wAC��AC�PACp�AB��AB�`AB��AB�ABbAA�AA�AAhsA@�A@�A@�uA at zA at bNA@��A@�RA@��A@�HAA"�A@�!A@��A@ �A?�A?hsA>��A>�A>=qA=��A=�-A=C�A=+A=oA<��A<�HA<ȴA<�!A<��A<~�A<ffA<��A<�\A<v�A<^5A;�A;��A;dZA;K�A;%A:��A:~�A:ffA:M�A:9XA9ƨA9�-A9�A8��A89XA8 �A7�-A7p�A7XA7?}A6��A6�jA6��A65?A6 �A61A5�A5�#A6�A6  A5�mA5��A5�^A5O�A57LA5
�A5
-=A4�A4�A5�A5
A4�yA4��A4�jA4��A4�`A4v�A4bNA4I�A3�;A3ƨA3�A3��A3�A3l�A3+A2��A2��A2=qA2(�A2bA1��A1�hA1x�A1dZA1"�A0�RA0��A09XA0 �A/�^A/��A/�PA/t�A/7LA/
�A/
-=A.��A.�DA.v�A.^5A.I�A-�TA-x�A-;dA-&�A,�jA,VA,A�A+�#A+ƨA+�A+p�A+\)A+G�A*�HA*ȴA*ffA*M�A*9XA)��A)�mA)��A)l�A)XA(�A(�/A(ȴA(�9A(��A(�+A(r�A(^5A(I�A(5?A( �A(1A'�A'�;A'|�A'?}A&�/A&v�A%�A%�7A%&�A$ĜA$�DA$(�A#ƨA#dZA"�/A"VA!��A!"�A v�A�A�A~�AkQA��A��A 9XA $�A ~�A �RA Z
A E�A 
JA�qA��A9�A&AoA
��A
�'A
ffA
S&A
��A
�$A
�{A
&A
oA
�.A
5�A
"hA
X�A
�\A
|
A
خA
�A
FtA
XA
�\A
{�A
h
-A
TaA
A A
�TA
�eA
MA
�A
l�A
bA�"A��A�PAzAg8AS�A@�A-�A�AP�A�A�A�pA��A��A��A��Ao�A\�AJ#A6�AیAȴA��A~�A$
A4A�]A��A�A�?A��A��A��A{�A!�A(A�PA��Al"AAGEA4�AF
A3�AhsAVA�PA�?Al�A�A�A�5A��A��A��A=A*�A�A�A�}A�xA�rA2aA \AVA��A��AخA
JA@OAtTA��As�A��A��A�{AqvA_pA�A�+A{�A$tA͟A�A��Au�AdZAu%Ac�AQ�A�As�A
A
xA��A�AoiAeA1A��A�`A+AK^A\)A�\AA��A�A:*Am�A\)Am]A[�A'�A��Az� [...]
O�A
��A
f�A
5?A
$tA
4�A
$
A
U2A
DgA
u�A
��A
TaA
C�A
��A
��A
+kA
-�A
-�+A
-v�A
-E�A
-5?A
-$�A
-{A
-A	�A	�TA	��A	�oA	q
A	aA	P�A	@OA�A��An�A
�A�A��A��AݘA͟A��AM�A}�Am�A]dAMjA=qA�)A�IAl�AݘAn�A!A��A#:AԕAg8A�#A��A_A�AuA�tA��A��A��A�A �A R�@�Y�@�;d@���@���A _A �\A+A�A
�A:�A��A��A�A��AGA�A�A�A�?A��AjAZ�A
�A�AV�A
A c�A �@��2@�PH@�~�@�r�@�7@���@��@�_@��@�s@�Vm@���@��h@���@�1@�a|@�C�@�'R@�	�@�w2@��@���@�p;@�R�@���@�e@���@�S@���@�{J@���@��@��k@�|�@��
@��u@��@���@��K@���@���@��@���@��C@���@���@��@��j@���@�@��Z@�V@�@��
-@�IR@�@�@��8@�3�@�X@�P@��X@�}@�$
@�	@�~�@���@���@��@�o@��f@�J�@�/�@��@���@�\�@�/�@�:�@��@��@�a|@��@㋬@�qv@�W?@�=@�R@�@�7@���@���@�I�@�_p@ܩ�@ی~@�s�@�Z�@�A�@��3@۫�@��r@�H@�c @ܱ�@ܘ_@��@��p@�Q�@�8
@݇�@��
-@�Z�@ުe@���@��>@�7�@�S�@��@�r@�p;@߸�@ߟV@�
C@��@ހ�@�h
-@�N�@�5?@ݲ�@��"@�H@�`B@�D�@�_p@�@@���@�{�@���@�L�@��p@��W@�=@���@�@ӖS@��@��@ҹ$@�>B@�&�@��@�Z
@�B[@�*�@��@�-@�M@�`�@Ҭ@��8@��@�]�@��@��X@Ҳ�@���@�J#@�dZ@ӯ�@ӗ�@��&@��d@Ӵ�@Ӝ�@�!-@�	l@��@�ں@���@ҫ6@���@�B�@�\�@ө*@��Z@�A�@�)�@�@��D@�~�@�f�@�O@ӛ=@ӵt@��@���@�� @Ӻ^@�?}@���@�z�@��@�Dg@��@�r�@�U�@�_@�"h@�
-�@��@ըX@�+�@�@��P@��@�0�@Ե
A!�1���AFeige66     sdO  A(  12:37:23.55+25:04:00.3 at g�#�
-=p at 9�+
  �EH  EH EH  EH0 EH@ EHP EH` EHp EH� EH� EH� EH� EH� EH� EH� EH� EI  EI EI  EI0 EI@ EIP EI` EIp EI� EI� EI� EI� EI� EI� EI� EI� EJ  EJ EJ  EJ0 EJ@ EJP EJ` EJp EJ� EJ� EJ� EJ� EJ� EJ� EJ� EJ� EK  EK EK  EK0 EK@ EKP EK` EKp EK� EK� EK� EK� EK� EK� EK� EK� EL  EL EL  EL0 EL@ ELP EL` ELp EL� EL� EL� EL� EL� EL� EL� EL� EM  EM EM  EM0 EM@ EMP EM` EMp EM� EM� EM� EM� EM� EM� EM� EM� EN  EN EN  EN0 EN@ ENP EN` ENp EN� EN� EN� EN� EN� EN� EN� EN� EO  EO EO  EO0 EO@ EOP EO` EO [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
3F�3F<�F
� F
��F
q�F

 F
�3F
��F
<fF
)3F
-� F
-^�F	�3F	TfF	A3F	n�F	| F	h�F	U�F	B�F	/�F	
fF		3F� F��F	fF	> F	�fF	y3F	f F	��F	�3F	� F	��F	� F	t�F	!3F��FZ F�fFfFbfFњF��FN FzfFh F�FŚFU�F�FP F|fFj FW�F3F��FG�F53FfF�fFd�FR�F�F/3F
3FHfF6fF$fF�F �F��F��F'3FR�F@�F.�F
�FHfF6fF$�F�F3F�3F� F�fF��Fj�F
fF � F ��F$ F ՚F � F �fF ��F �3F }�F N F <fE���E���E�
fE�� E���E�.fE�� E�a�E�>fE�
 E���E�^fE�� E�*fE�3E���E��3E��E��3E�33E��E��fE���E�I�E��E��fE�� E�ٚE��3E�
�E�H E�8�E�e�E�͚E��3E�� [...]
�E�� E�RfE�0�E�\�E��3E��3E�$�E��fE�3E�	�E�fE��3E�ٚE��3E�3E޴�E۽�E���Eַ3E�9�E�#3Eԝ�E��E֏3E��E�3E�o3E���E�3E��3E�ŚE饚E�  E�0 E��fE�	�E��3E�d�E�� E�U�E�
�E�3E�� E��3F 0 F 3F ,fF X F � F � F � F �3F3FfF �F ��F �3F 
3E���E��3E��fE�(�E�� E�� E��fE���E���E��3E��fE���E���E�h E�G3E�&fE��E�m�E��3E��E���E�)�E��E�0 E��3E�x E��E�vfE�_3E��E�w3E��3E� E߷3E�!�E�ffE�S3E�| E�BfEΠ Eˀ E��3E®fE�3E��fE�D E��fE�L E�� E��3E�jfE�;3E��3E�� E���E�� E�$ E���E�fE�ffEވ�E�{3E�< E��3E�3E��E�RfE��E��E�fE�bfE� E [...]
-fE�Y�E�� E�3E�fE�y�E�� E��E��E�� E��3E�fE㡚E�� E��3E�3E�/3E�3E�  E�d E�ݚE���E�;3E��E�d�E��3E�%�Eݡ�E���E���E�FfE�\�E٦fEؿ3E�?3E�'3EԬ E�4 Eь�E�U�E�U�E�)�E�4 EƇ3E�@ E�I�E��fE�P�E���E��fE�y�E��3E��fE���E�9�E� E�I�E�� E�� E��3E�:fE�33E��3E�� E��3E���E�p E���E�8�E��3E�fE�73E�i�Eʝ�E�t E̫3E�S3E�, E�t E���E�4�Eϭ�Eϔ E�� E��fEϨ�EϏ3E��3Eϼ�E�A�E�( E�fE���E�y�E�0 E�fE͜ E͂fE�h�E�O3E�6fE�}�E�d E�K3E�1�E̷3E��3E��E�l E�RfE�9�È�E�h E�NfE���E˼ E�C3E��fEʱ�Eʘ�Eʀ E�g3E�NfE��E���E�� E�\ E�C3E�*fE�fE���E�� [...]
�E�T E��fE��3E�3E�@ E�  E��fE��fE���E��E�x�E���E�jfE�e�E��E���E�M�E��fE���E�� E�'3E��fE��fE�fE�fE�RfE�>fE�zfE�ffE��fE��fE�{3E�3E�3E�� E�<�E��E��fE��3E�(�E��3E�=�E�*fE�3E�3E�>fE�+3E�ffE�zfE�ffE���E���E�ɚE��fE��fE��fE��3E�� E��3E�� E�U�E�3E� E���E��E�� E�l�E�Y�E�FfE�33E�  E��3E���E�rfE��E��3E�� E���E��fE�ffE�S3E�@ E���E�͚E��3E���E�"fE� E���E���E��3E�x�E�ffE�S3E�@�E�.fE�
 E�T�E�BfE�� E�њE��3E�`�E�NfE�< E�)�E�3E��E���E�o3E��E���E�|�E�  E�T E���E�� E�њE���E��fE��fE�0�E�(�E�"fE [...]
-fE��3E���E�w3E��E�?3E�$�E�
 E���E��3E��E�(�E�_3E���E���E�s3E�a�E�� E��3E�u�E�� E�vfE���E�� E�BfE�0�E�3E�
�E���E��3E���E�\ E�3E��E���E��3E��fE�e�E�T�E�C3E�fE���E�� E��3E��E���E��3E��fE���E��3E��fE���E�� E��3E���E�� E��3E���E���E�4�E�$ E�3E�� E��3E�vfE�3E�fE�D E���E�� E��3E��fE���E���E��fE���E���E��3E��fE�zfE�jfE�Y�E�H�E�8 E��E���E�zfE�$�E��E���E���E�{3E�jfE�ZfE�I�E�� E�� E�� E��3E��3E�^fE�+3E�3E�
3E��3E��fE��fE��fE��fE���E���E���E�y�E�%�E��E���E���E���E�o3E�
 E�
 E�� E�� E�� E���E�5�E�&fE���E��fE�P E�@ E�0 E� �E��fE��fE���E�< E�,�E��3E��3E�� E�� E���E���E�}�E�nfE�
�E�fE�@ E�rfE�c3E�T  [...]
�E
� E
�fE
Y�E

fE
3E
� E
��E
s3E
Y�E
@ E
&fE
ɚE
� E
�fE
;3E
�E
-� E
-�fE
-��E
-Y�E
-A�E
-( E
-fE	��E	�3E	�3E	��E	P E�fE��E�3EI�E�E� E� E�fE.fEfE��E��E��Et�E
�E�E�3Et�E\�EfE�fE�fE` EH E0 EٚE��E��ET�E<�E$�E
�E� E��Ei�E�E��E��E��E<�E&fE � E ٚE ��E �3E �3E |�E d�E NfD��fD��fD���D�l�D��fD���D�i�D�  D��3D�0 D�  D��3D�0 D�3D��fD���D�fD�ٚD���D�C3D��3D�vfD�I�D��fD�y�D�P D���D�FfD�
�D�� D��3D��fD�l�D���D�� D�vfD�I�D�
�D� D�S3D�)�D���D��3D�fD�	�D�� D�y�D�P D�3D�D���D�� D�\�D��3DD�l�D��3DD� D��fD��D�Y�D�� D�&fD���D�ffD�<�D�3D�3D��D�� D�ɚD�  [...]
-DyW
-Dx��Dx�RDxs3Dx{Dw�DwVfDv��Dv�3Dv�\Du��Du�RDu �Dt��DteDtAHDs�=Ds�fDs(�Ds�Dr��Dr�Dr��Drw
-Dq�HDq�Dq��DqDp��Dp��Dp��Dp?\Dp
)Do�RDoeDn�HDn��Dn�Dm��Dm�qDm
�Dl��Dl�fDl3�Dl�Dk�\Dk]qDk;�Dj��Dj�\Dj�qDjz�DjX�Dj7
-DjDi�3Dib�DiAHDi
�Dh�\Dh �Dg��Dg�Df��Dfi�De�De��Dd�
-Ddi�DdH�Dd'�Dd
-Dc��Dc�Dd\Dc�Dc�qDc�)Dc��Dcj�DcJ=Dc(�DcRDb�Db�
-DcHDb�DbeDbD{Db#�Db3Da�DaDa��Da�HD`�
-D`�fD`�HD_�
-D_�
-D_MqD^�{D^�{D^P D]�
-D]��D]��D]hRD]HRD](�D]�D\�D]1�D]�D]'
-D]�D\�D\�RD\��D\��D\i�D\J=D[�
-D[p D[P�DZ�=DZD{DY�HDYk�DX�fDX.DW�=DW%�DW
-DVP�DV2�DU��DU��DUr�DT�\DT�HDT�3DT�DTw
-DT��DT��DT��DT�
-DT��DT��DTRDS�fDSh�DS�DR��DRy�DR\)DR>DR �DR3DQ�DQeDQG�DQ)�DQ
)DP��DP>DP �DO�HDO"�DN��DNU�DN8�DN
)DM�qDM��DMc�DMG
-DM*=DM
qDL�DM4{DM�DL��DL޸DL��DL�DL'�DL
�DK��DKr�DJ��DJ��DJ�qDJqHDJUDIٚDI�qDI�HDI%�DI	�DH��DHC�DH'�DH
)DG� DG�{DG�RDG��DG��DGeDGH�DF�\DF��DF:�DF\DF�DE�RDE�DE��DEg
-DD�DD�3DD�RDD��DD�HDD
-=DC�DCw
-DC\)DC3DB�RDB�qDBDBK�DB0�DB�DA��DA� DA�DBfDA�DAuDAZ=DA@ DA%D@�\D@�D@  D?�RD?�D?H�D?.�D>�=D>� D>,)D>�D=��D=�HD==qD=#�D=	�D<�fD<|�D<b�D<H�D</\D<D;��D;��D;�RD;�D;�{D;z�D;5D:��D:�=D:��D:
�D:�D9�{D9{�D96fD8��D8��D8�3D8#3D8
-=D7�HD7�HD7hRD7${D7
�D6�D6ٚD6��D6��D6��D6vfD6]qD6D{D6+�D5�qD5�{D5�)D5s3D5Z�D4��D4��D4ffD4ND4
-�D3�D3� D3mqD3UD3�D2�=D2��D2�\D2]qD2ED23D1��D1��D1�HD1O\D17�D0��D0�{D0��D0Z�D0C3D0�D/�=D/��D/��D/P�D/8�D.�RD.�D.� D.��D.G�D.0�D.�D-��D-�HD-�HD-i�D-)�D-�D,ҏD,��D,{�D,d{D,%D,D+�D+�
-D+��D+`�D+J=D+
-�D*��D*�D*�D*�
-D*HRD*1HD)�D)�)D)�qD)�
-D)p�D)1�D)�D(��D(�fD(�RD("�D(
)D'��D'�\D'��D'��D'�)D'�fD'p D'Y�D'C3D'-qD&�RD&��D&uD&�D%�=D%�fD%� D%j=D%fD$�D$��D$�D$:�D$%D$\D#��D#�{D#�HD#l)D#VfD#@�D"�D"��D"�3D"w�D"a�D"L�D"7�D"!�D"
�D!�
-D!��D!��D!\D!
-=D ��D nD 
qD��DL�D�D
�qD
��D
��D
t{D
_\D
J�D
5�D
!HD

�D
��D
�3D
��D
o\D
Z�D
FfD
1�D
�RD
��D
�D
p�D
\)D
HRD
3�D
\D

-�D�fD��D�D��D�DG�D33D\D��D�D��DaHD{D�D�)D� Dl)D D�)D��D� D�)D��DuDaHDMqD9�D%�D�D��D�3D�\D|)D!HD
qD��D{�DhRDUDAHD.D�D�D��D�D�qDs�D`�DMqD9�D�D�qD�=D�
-D��D��DmqD{D޸D˅Ds3D` DMqD:=D��D�\D�)D��D�
-D��DqHD<)D(�D��D�\D�)D��DB�D0 D
qD
-�D�RD��D�\D|�DHRD��D�\D��Dw
-Dd{DR�D@ D.D�D	�D:�D(RDfD�D��D�)DG
-D3DHD
��D
�=D
E�D
3�D
!�D
 D
@�D
�)D
�=D
��D
�
-D
�D
�3D
?\D

)D
��D
�
-D
�D
��D
q�D

�D

qD
-��D
-�=D
-�RD
-�fD
-�{D
-�3D
-q�D
-\D
-
qD	�)D	��D	ٚD	�RD	�
-D	��D	��D	��D	0�D	\D�D��D��D�=D��DW�DfD�D��D�3D��DqHD �D\D޸D�D}qDl�D
�D
�D��D�=D�=Dj=DY�DH�D8RD'�D
-DfD�
-D�fD��D�DuDd{DS�D��DqHD`�DP�D@ D�HD�D��D%D�
-D��DZ=D
)D��D��D��D��D~�D��D��D��D{�Dk�D[�DD �D ��D ��D θD ��D ��D ��D ��D ~�D n�D _\D O\D ?\C��fC��fC���C�K�C�,�C�
�C�t{C�U�C�7
-C�
-C��RC��RC���C���C��C���C��C�/\C��{C���C��
-C�HC��C�NC�/\C�\C�|)C�"�C��C��C�HC��C��=C�k�C�L�C�.C���C�}qC�^�C�@ C�"�C�xRC�Z�C�u�C�XRC�9�C�
)C���C��C�3C��HC�b�C���C�z�C�\)C�˅C�C�C�q�C�T{C�7
-C�fC��C�33C��C�{C��
-C�ٚC�K�C�.C��RC�J=C�,�C� CC�eC�H�C�+�C�\C���C���C�RC�)C�~�C�b�C�EC�(�C�|)C�^�C�B�C��C�C�{C�w
-C�"�C�fC�z�C�]qC�AHC�%C�w
-C�3C�u�C���C��C�!HC��C밤C�%CꙚC��RC�NC���C�9�C��C�^�C�B�C�{C�\C�  C�Q�C��C辸C��C�b�C��C��\C�{C�RC��
-C�NC���C�C�|)C徸C墏C��C�  C�
�C�)C��=C�\C��{C�o\C�T{C��\C�{C��C�J=C�/\Cߪ=Cߐ�C�u�C�Z�C��
-C�S3C�C��=C�g�C��C��=Cܰ�C�.C�{C��fC۫�Cۑ�C�xRCۑ�C�w
-C��C۫�C��RC�޸C�+�C�FfCܔ{C�J=C���C��CޝqC���C�:�C�U�Cߣ�Cߊ=C�o\C��CޝqC��C�b�C�xRC�C���Cپ�C�>�C؋�C�
�C׌�C��)C�C�C�CՓ3C��C�4{C���C�l�C��\C�t{C�(�C��C��RC�� C��RC�B�C�*=C��C�\)C�B�CҎCҦfCҎC��RC�� C�
-=C���C�nC�U�CӡHC�#�C�
�C��HC�EC�,�Cѱ�CјRC�
qC�Cк�C�AHC��fCϮC��CΈ�C��C͗
-C�NC���C̾�C�FfC�.C��fC�o\C�W
-C�@ C�ǮCʰ�C��RC��HC���C��C�*=C��C���C��C�˅Cʃ�C�
�C���C�޸C�&fC�\C�'�C�\C��RC��HC�(�C��C�Y�C�q�Cʹ�Cʢ�C��=C��3Cʺ�C�EC�,�CɆfCȱ�C�
�CǘRC�"�C�~�C�h�C��{C�Q�C�:�C�ǮC�T{C��HCÜ)CÅC�3C��)C��fC��\C¹�C���C���C�  C�EC��3C\C�
qC�fC��C�ٚC���C��C��3C��HC�k�C���C���C�EC��{C�eC�ǮC�XRC��)C�L�C��C�B�C�|)C�C���C��C���C�Y�C��C��HC�AHC���C�j=C��3C�3C�}qC��qC�T{C�{C���C��
-C�.C��C�C�EC�0�C�q�C�]qC�H�C�^�C���C��=C�u�C�aHC�L�C�8RC�ФC���C�}qC��C���C���C�Z�C��3C�� C�xRC�c�C�P�C��\C�z�C�g�C�S3C�@ C��RC��C�^�C�J=C�7
-C�"�C��fC�� C�k�C�fC���C���C�y�C�ffC�(�C��C���C�L�C��=C�w
-C�c�C�P�C��C���C��HC�  C�]qC�s3C�` C�K�C�8RC��)C��
-C�33C�  C���C���C�l�C��C�EC�Z�C�G�C��C�q�C��\C��)C�8RC�%C��HC��\C�"�C��C���C���C�\C���C�J=C��HC�^�C��qC���C�b�C�HC��HC�g�C��C���C��{C���C�p�A!��GN��LTT4816     DA   A\��12:38:50.94-49:47:58.8 at g����o�H�[z2�p   �EN@ EQ` ET� EW� EZ� E]� Ea  Ed  Eg@ Ej` Em� Ep� Es� Ev� Ez  E}  E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  Eɐ E�  Ḛ E�@ E�� E�` [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
#�C;aHCO+�CF{C \)B�k�C(c�C70�C7�qC6��C1aHC+\)C$^�C�=C� B�1�B�CǮC
xRC
#�C�C&fC�3C � B��\B���B���B��
-B�  B�k�B�
�B�ǮBʸRB���B�� B��hB�9XB���B��+B���B�CB���B��B�XB��RB�ٚB�O\B��TBn
-=B2��BL��Ble`Bt{Bs_;Bp+Bc$�BS��B_�B\�wBYk�BT��BL�/B>v�B<B9��B;�ZB;uB78RB2��B0o�A�VA���B$?}B"�NB �B
(�Bv�BD�B�\B`BB
B�JB&�B u�A��B R�A�^5A�`BA��A��TA�hsA���A�jA܋DAأ�A�|�A��A�O�A�r�A�oA�+A�bA���A���A�Q�AE�wA~�Ap^5Ac��AsK�A&�A���A��jA��uA�1A�I�A�p����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-fE��fE�ٚE���E���E���E���E��fE�l�E��fE���E�  E�
 E���E�m�E�U�E�=�E���E���E�@�E���E���E���E��fE�?3E���E�^fE���E�8�E�� E���E�D E�,�E���E�Q�E�� E���E�3E� E��E��3E�| E� �E�� E���E�ݚE�
3E���E�#3E�
�E��fE�X E��3E�
�E�3E��E�� E�T E�
�E�3E�fE�?3E�)�E�VfE�@�E�+3E�y�E�d E���E�{3E�"fE���E�:fE��3E�\�E��fE�t�E�^fE��E��fE���E��3E�K3E��3E�zfE�d�E�O3E�ZfE��3E���E�fE�� E��fE��fE��3E�ٚE�� E�l�E�W3E�A�E�,�E��fE��3E�H E�33E�� E��E�w3E�a�E�
3E��fE���E�� E�u�E��3E�h E���E���E�H E�� E�3E�*fE��fE�c3E�� [...]
4�E
� E
-� E	� Es3E��E��E�Eq�E!�E E>fE	�E�fED�E	t�E
-� E
�E
��E

fE
p E
�E
33E
�fE
��E�fE3E��E��Ea�E��E,�E� EnfE[3EH E3E�E��E� EA�E.fE
�E�fE�3E� E)�E�3E��El�E8 E
�3E
њE
|�E
i�E
�3E
��E
vfE
#3E
�fE
��E
��E
vfE
d�E
S3E
A�E
0 E

fE

3E
��E
� E
��E
A�E
0 E
-��E

�E
-�3E
-�E
-� E
-�fE
-�3E
-��E
-��E
-� E
-� E
-�fE
-K3E
-9�E
-( E	�fE	�3E	�3E	��E	� E	� E	�fE	��E	�3E	{3E	H E	8 E��E��E�3Eq�E` ENfE>fE,�E3E
3E��E� E� E&fE�fEffEfEh EٚE,�E� E��E�fEc3E ~fD�6fD�s3D�vfD���D���D�&fD�3D��3D�9�D�Y�D���D깚D鉚D�Y�D�<�D�  D�3D�y�D�P D��3D�Y�D�` D��3D�p D���D�l�D�vfD�C3D�ٚD��3D��3E a�E �EfEfE �fE ��E ��E ��E y�E i�E Y�E 
�D�� D�&fD�� D�p D�ٚD�|�D��fD��fD�0 D� D��3D��3D�<�D��3D��3D�0 D� D�|�D�\�D�<�D�  D�  D��3D��3D��fD��fD�ffD� D�|�D��D�ɚD�6fD��D���D��3D� D��3D��fD�fD�D�y�D�\�D�@ D�  D�3D�s [...]
-Du�{Dt�Dt˅Dt��Dt.Ds��DsVfDs${Dr�Dr�HDr�\Dq�Dq�=Dq
-Dp��Dp{�DoٚDo�RDow�Dn��Dn�Dn�Dm��Dmk�Dl��Dl��Dlj�Dl:�Dk��Dkk�Dj��DjffDi�RDi�RDh��Dh^Dg�RDg\)Dg-qDf��Df� Df�HDfr�De׮De��DeD{Dd��Dd|�Dc�Dc�{Dc�
-Db�Db��Db��DbeDb�Daj=Da=qD`��D`�D_�qD_� D^�=D^T{D^'�D]��D]ffD]:=D\ٚD\�qD\�HD\UD\)�D[��D[j=D[>D[�DZ�
-DZS�DZ(RDY��DY��DY�fDYz�DY
�DX��DX,�DX�DW�{DWy�DW
)DV��DV�{DV7�DU�=DU� DUS3DT�
-DT��DTp�DT{DS��DS��DS33DR׮DR�DRS3DQ�RDQ�qDQt{DQ�DP�\DPeDP
-�DO��DO�RDN�DN�DNJ�DM��DMɚDM�HDMRDL� DLǮDL?\DL�DK�\DK7�DK DJ��DJ�DI��DI${DH�qDH��DHP�DH)�DG�{DG}qDG'�DG �DF|)DFU�DF/\DF�DE�DE�)DE8RDE�DD`�DD:�DC�RDC��DC�DB��DB;�DB�DA�DAo\DAJ=D@ɚD@�{D@\D@,�D@�D?�RD?c�D?>�D>� D>��D>vfD=�RD=��D=�\D=^D<�D<�)D<?\D;D;r�D;ND:ҏD:VfD9ۅD9��D9hRD9ED9!HD8�D8��D8��D8=qD8=D7��D7}qD7Z=D6�HD6�3D6p�D5��D5\D5\�D4�=D4�RD4!HD3�=D3]qD2�
-D2
�D1}qD1RD0i�D/��D/D.�HD-�D-��D- D,�\D,}qD,�D,޸D- D-�D-H�D-y�D-X�D-�3D-��D-q�D-�3D-��D-a�D-AHD- �D-  D,� D,�\D,��D,~�D,^D+��D+��D+��D+c�D*�3D*�3D*b�D*B�D)�3D)�3D)k�D(�)D(��D(mqD(ND(.�D'��D'�HD'��D';�D&�qD&��D&�\D&p�D&3D%�{D%��D%�
-D%�RD%�D$�fD$��D$��D$,�D$�D#� D#�D#ffD#HRD"�qD"��D"z�D"�D!�D!�RD!j�D!'
-D �qD � D ��D �D��D�D��D�3D��D
D �D
�D
VfD
8�D

)D
�{D
��D
z�D
^D
AHD
${D
�D
�HD
` D
C3D��D��DZ�D>�D��D��D|)D` D��D�\D�3D^�DC3D�\D�3D��D  D{D�HD��DG
-D�{D��DffDK�D0 DD�3D��D|�D>�D�qDD�RDG
-D,)D�D�HDs�DY�D>�D�\D�{DeDJ�D�D�\D�D6fD
)D�D��D��D+�D� D�fD��D�3D��D,)D�D��D�)D��Dh�D.D
��D
�RD
�\D
�fD
*=D
HD
�RD
��D
�3D
j�D
QHD
�D
��D
��D
��D
0�D
RD
-�D
-�{D
-l)D
-S�D
-:�D
-"�D
-*�D
-�D	��D	��D	�RD	O\D	7
-D޸D�fD�D�fD=qD�D�qD��D~D&fD�D�
-D\Dg�DHD��D��D��Dt{D\�DED.D�
-D�HD�=Ds3D
qDfD�\D�=D�3Dl)D5�D\D��D��D��DH�D1�D�DǮD�HD|)DeDmqDW
-D@�D*=D�D �qD �
-D
qD ��D H�D 2�C�� C��C��3C�\C��C��
-C�{C��C��)C�U�C��3C���C��C���C��\C��C�C�]qC�1�C���C�ffC�<)C��)C�q�C�G�C�
qC�~�C�T{C��\C��C�'�C��qC��{C�7
-C�
�C�p�C�
�C���C�C�
qC��{C�˅C�C�xRC�O\C�&fC��qC�b�C�9�C� C�>�C��C���C�T{C�+�C��C���C�AHC��C칚C쐤C���C���C�=C�3C��C�C��C�s3C��qC��C�C�/\C��C�s3C�޸C�RC�#�C��)C枸C�xRC�P�C�*=C��C��)C�J=C�#�C��qC�j=C�C�C�
qC㋅C�0�C�
-=C���C�S3C�,�C�)C�
�C��C��C�ffC��
-C߱�Cߌ�C�ffC��RC޳3CގC�4{CݦfC݁HC�\)C�7
-Cܪ=C܆fC�aHC��{C۰�C�W
-C�33Cڧ�Cڂ�C�^�C�:�C��Cً�C�g�C�B�CظRCؔ{C�=qC��C���C�l�C�H�C�� C֜)C�xRC��C���C�w
-C�T{C�0�C�CԆfC���C��)CӇ�C�  C��qCҺ�C�4{C��C��\C���CѪ=C�%C��C��HCо�C�k�C��fC��CϢ�C�
�C��)C���CθRC�5�C�3C���C�ФCͮC͌�C�:�C̸RC̗
-C��C��{C�s3C�"�CʡHCʀ C�  C�޸CɽqC�=qC�
qC���CȬ�Cȋ�C�
�C��C�l�C�L�C��qC��qC�` C�@ C�
�C���C�޸C�aHC�AHC�!HC�HCąC�eC�EC��
-C�|)C�\)C�<)C�
qC¡HC‚�C�b�C�C�C���C�|)C�\)C�=qC���C���C��C�
�C���C��C��\C���C�
-C��RC���C��C�o\C�P�C��RC���C�B�C�#�C���C��\C�C�C�&fC��C���C�s3C�U�C�� C��HC���C�Y�C��C��fC���C���C�nC�P�C�33C���C��HC���C�\C���C��{C��
-C���C�}qC�` C�RC��C���C�{C��RC���C�h�C�!HC��C���C�!HC��C�h�C�L�C��)C�k�C�O\C��{C��RC�}qC�aHC���C���C�ffC�!HC���C�C�C���C�>�C���C�:�C��C�b�C���C��C�}qC��C���C�{C�Z�C��C��\C�FfC���C�NC�o\C���C�޸C��RC�FfC���C��3C��qC��C���C�
�C��3C�]qC��qC�9�C�  C��
-C�/\C�\C���C��C�h�C���C���C�'�C�{C��RC�\)C���C�33C���C�� C��3C�&fC�� C��3C��fC��C���C�C���C��)C�C��=C���C�w
-C�^�C�EC�,�C��fC��C�o\C�U�C�=qC�#�C�� C��fC�B�C�*=C��C���C�o\C�W
-C�=qC�%C�
�C��{C���C�y�C�aHC�H�C�0�C�RC�  C��qC��C�G�C�0�C��C���C�T{C�<)C�%C���C���C�o\C�C���C���C�~�C�ffC�O\C�8RC�  C��C���C�ٚC�y�C�b�C�'�C��C��RC���C���C�k�C�T{C�=qC�&fC�ǮC���C���C�:�C�#�C��=C��3C��)C��C��C�w
-C�aHC�J=C�W
-C�
qC�fC��\C�ٚC�C���C�O\C�8RC�!HC��C��\C�Q�C��C��C���C���C�z�C�eC�NC�8RC�"�C�
�C���C�� C��C�o\C�Y�C�B�C�,�C�
-C�HC��fC���C�Y�C�C�C�
�C���C��qC���C�p�C�Z�C�#�C�C��
-C��HC��=C�t{C�=qC�'�C���C��)C��C�nC�Y�C�"�C�
�C��
-C�� C���C�T{C�
�C�
-=C��3C��qC���C�S3C�
qC��C��3C��qC�g�C�S3C�
qC��C��3C���C�h�C�4{C���C��C���C��HC�L�C�RC���C��\C�z�C�&fC�3C���C��=C��
-C���C�O\C�:�C��C��3C�� C���C�XRC�EC�1�C���C��=C��
-C��C�p�C�]qC�
�C��RC��C�s3C�` C�L�C�9�C��C��{C��HC��C���C�H�C�5�C�"�C��C�޸C�˅C�z�C�g�C�T{C�AHC�.C�޸C�˅C�|)C�h�C�U�C�%C��C�C��\C��qC��=C�:�C�(�C�
-C�\C��C�qC��Cs3C~�
-C~��C~��C}�3C}�\C|�3C|�\C|33C|\C{�C{�=C{ffC{B�C{
�Cz��Cz�
-Cz�3Cz�\Czk�CzG�Cz!HCy��Cyc�Cy@ Cy
)Cx�CxaHCx=qCw��CwECw#�Cv�=Cvh�CvECu�Cu�=CuffCu
-=Ct�fCtQ�Ct.Cs�
-Csu�Cr޸Cr�qCraHCq��Cq��Cq
-Cp�3Cp&fCpCop�Cn޸CnL�Cm�3Cm�\Cm�Cm��Cmk�CmJ=Cm(�Cm=qCm
)Cmk�CmG�Cm&fCmCl��ClQ�Ck�RCk�
-CkG�Ck&fCj�
-Cj�Ci�Ci��Ch�qCh޸Ch�qCh.Ch
�Cg�Cg��Cg��Cg�=Cg�
-Cg��Cg�{Cgu�CgT{Cg33Cg�Cf�CfffCf\Ce��CeaHCd�{Cd��Cd(�Cd
-=Cc�3Cc(�Cc�Cb��CbǮCb=qCb
�Cb  Ca޸CaT{Ca  C`�HC`C`�HC`��C`c�C`B�C`#�C_�)C_}qC_\)C^�{C^��C^�
-C^xRC]�C]�)C]}qC]^�C]@ C\�RC\��C\z�C[��C[�
-C[O\C[0�CZ޸CZ� CZ��CZ�CZffCZG�CYCY��CY�CYh�CYJ=CY+�CY
�CX�CXk�CXL�CX.CX�CW� CW=qCW
�CW�CV��CVaHCVB�CV&fCV�CU�CUh�CUJ=CU.CU\CT�3CT��CT�CTCS��CSffCSJ=CR�=CRz�CR\)CR@ CQ� CQ��CQ��CQh�CP�CP�\CP��CP33CP
-CO��CO�)CO� CO��CO��COk�COO\CO33CN�fCN�=CNJ=CN.CM�3CMffCL��CL��CL��CL33CL�CK�qCK�HCK�CK��CK��CKp�CKW
-CK:�CJ� CJ��CJ��CJk�CJQ�CJ5�CJ�CI�qCI��CIǮCI��CIaHCIECH��CHQ�CH�CG�CG��CGY�CG=qCF�3CF��CF�\CFECF+�CE�HCE�
-CE}qCE33CE�CD�\CD��CDk�CD#�CD
-=CC� CC�fCC^�CC{CB��CB�3CB��CBQ�CB5�CA�CA�{CA��CAs3CA+�CA�C@�=C@��C at h�C@!HC@�C?� C?�fC?aHC?G�C?.C>�fC>��C>��C>nC>&fC>
�C=ǮC=�C=ffC=O\C=�C<�C<�{C<�\C<u�C<0�C<
-C;��C;��C;�HC;\)C;B�C:�qC:��C:��C:�C9�C9��C9�RC9�HC9��C9nC9W
-C9�{C9}qC9c�C9J=C8�)C8C8(�C8\C7�HC7��C7�C6��C6h�C5�RC5��C5s3C5\)C5�C5  C4��C4��C4�RC4L�C45�C4
)C4C3�C3�
-C3�qC3�fC3�\C3!HC3
-=C2�3C2�)C2�C2��C2�{C2}qC2�C1��C1�RC1O\C0��C0��C08RC0!HC0
-=C/�HC/�=C/s3C/\)C/EC/.C.C.��C.�
-C.+�C.
-C-�
-C-� C-W
-C-@ C-(�C-�C,�qC,�fC,�\C,�RC,�HC,��C,#�C,
�C+�fC+ffC+Q�C+:�C+#�C*�qC*�fC*��C*z�C*{C)�qC)p�C)Y�C(�3C(޸C(ǮC(c�C(L�C(8RC(!HC'��C'�\C'�RC'��C'��C'��C'�=C's3C'��C'�
-C'��C'k�C'W
-C&�C&�)C&��C&:�C%�
-C%C%^�C%!HC%
�C$�RC$�{C$� C$k�C$T{C$@ C$+�C${C$  C#�C#�=C#s3C#�C"�qC"��C"�{C"�
-C"��C"�{C"� C"EC"0�C"�C"C!�C!�)C!ǮC!ffC!Q�C �C �)C W
-C B�C .C �C O\C :�C &fCǮCh�CT{C
�3C
�HC
��C
�RC
��C
�\C
z�C
@ C
�HC
�\C
p�C
\)C
�qC
��C
�
-C
C
�C
��C
�C
s3C
^�C
J=C
5�C
#�C
\C��C�fC�{C�)C��C+�C
-C��C^�C&fC�=C��CY�CG�C33C!HC
�C��C�fC��C� C��C��C�Cs3C^�CL�C8RC&fC�C  C�CٚC\)C  C�fC�{C\)C�C�C�
-C�C+�C�C�)C�=C0�C
�CǮC��C}qCk�C{C�C�C�
-C�Cs3CaHCO\C=qC(�C
-CC�3C�HC�\C�qC��C�
-C�Cs3CaHC
-=C�RC�C�3C�HCJ=C8RC��C��CY�CC�C��Ch�C{C�C
�3C
�HC
�\C
�qC
��C
��C
��C
xRC
ffC
T{C
B�C
0�C

�C
��C
��C
��C
T{C
EC
33C
!HC
Q�C
@ C
.C

�C

�C
��C
��C
�
-C
�C
T{C
  C
-�C
-޸C
-��C
-�qC
-�C
-�qC
-�C
-ٚC
-�=C
-�RC
-�fC
-�
-C
-c�C
-T{C
-B�C
-0�C
-!HC
-\C	�qC	�C	�)C	�=C	8RC	(�C�
-C�fCT{CC�3C��Cs3CaHC��C�HC�\C  C�C޸C��C}qC+�C�)C��C\)C
�C�qC�C�)CnC\)CL�C\)CL�C:�C
�C��C�C�)C��C=qC\C� Cs3C#�C��C�fC�
-C�fC�{C�C�3C��C�{C�C�C�HC��CC�3Cc�CT{C�C�RC�=C��CnC�)C�=C��C�=C�RC��C��C�=Cz�Ch�C
�C �C ��C �{C G�B���B��
-B�� B�aHB�B�B�#�B�B�
�B�z�B���C 
-C &fC T{C B�C p�C aHC Q�C � C 33B���B�8RB��)B���B�  B�ffB���B��3B�
�B�ǮB�33B���B�G�B��3B�
�B�B�p�B��B��B�k�B�L�B��qB�(�B�\B�B�B�#�B�{B�z�B��B�{B�u�B�\)B���B�B�
�B�W
-B�=qB�
�B�B��fB�  B�W
-B�B�\B�p�B�ǮB�W
-B�8RB�  B�\B�W
-B�u�B���B�
�B�u�B�\)B�u�B�\)B�B��fB�W
-B�ǮB�8RB�p�B�p�B��B�u�B��fB�\)B왚B랸B��)B�Q�B�\B虚B��)B�Q�B�ǮB�B�B�{B�z�B�\)B�B�B�{B�z�B�\)B�B�B�(�B�
-=B��B��
-B�(�B�B�B�{B��fB���B�
�B�8RB�=B�p�B�B��B�=B�p�B��fB���B�G�B�=B�  B�z�B�(�B��B�
�B�ffB��HB�\)B��B�
�Bߙ�B��HB���B�=qBܽqB�BۅB�k�B�Q�B�8RB�
�B�k�Bۊ=B��
-B�#�B�p�B�W
-B�=qB�\)B�B�B�(�B�\B�\)Bܨ�B�.B�{B���B�G�Bݙ�Bݳ3B�  B��fB���Bݳ3Bݙ�B��B�  B��fB���Bܳ3B�ffB�L�B�ǮBڮB�ǮB�{B���B��B�ffBՅB��
-B���BӨ�B�.Bҳ3Bҙ�B��fB���B��B�33B��B�  B��fB���BҸRB�p�B��B�u�B�  Bг3B�8RB�#�BϨ�BϏ\B�{B�  BθRBΞ�B΅B�p�B���B̀ B��
-B�  B�W
-Bʀ B��
-B�aHBȽqB��B�u�B�/�B�BƤZBƍ�B��B�Bŏ\B�J=B�3�B�� Bĩ�B�6�B� �B�f�B�PbB�9�BĀ B�i�B�SuB�<�B�&�B�bB�(�B�oB�X�B�B
B�,B�BãTB�^�B�H�B�ևB�d�B� �B���B�>wB���B���B�t9B�B��B�ؓB�B�R�B��FB�G+B�׍B�<jB��PB��RB�J=B�4�B��B���B�p�B�[#B��B��B��B���B��B��B�B�B�B�VB�AB��B��-B�4�B�K�B���B���B�d�B�O�B��TB���B���B�!�B�
�B��RB��JB���B��B�'�B�jB��B�
)B��#B�ƨB���B�EB�ٚB�m�B�-�B�B�W
-B�B�B�B���B��B�o�B�[#B�G+B�2�B�
5B�	�B���B���B�!�B�
�B���B��`B�&fB�g�B��yA!�E��gG60-54      DC   A|��13:00:09.53+03:28:55.7 at haEJi!t@
�k�?B�  �EH  EH EH  EH0 EH@ EHP EH` EHp EH� EH� EH� EH� EH� EH� EH� EH� EI  EI EI  EI0 EI@ EIP EI` EIp EI� EI� EI� EI� EI� EI� EI� EI� EJ  EJ EJ  EJ0 EJ@ EJP EJ` EJp EJ� EJ� EJ� EJ� EJ� EJ� EJ� EJ� EK  EK EK  EK0 EK@ EKP EK` EKp EK� EK� EK� EK� EK� EK� EK� EK� EL  EL EL  EL0 EL@ ELP EL` ELp EL� EL� EL� EL� EL� EL� EL� EL� EM  EM EM  EM0 EM@ EMP EM` EMp EM� EM� EM� EM� EM� EM� EM� EM� EN  EN EN  EN0 E [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
A5?AF�AZ
Ao A IRA�bA:�AE9AX�AC�A%�A��A�.A�A��AF
A	RTA
-@�A	��A��A�A	F�A	Q�A	��A
-	A
-��A
��A

�A
-��A�QAC�A�$AYA�AJ#A�2A��A
�A�8AC-A�CAXA��A�)AxA��ArGA�2AT�A�A+�A�oArGA�AC-A�}A	�A�{An/A
-
�A
��A
��A
�
A
� A
Z�A
�KA
W�A
)�A@�A�A�WA��A5�Ac�A^5A8�A�=A
�.A
�A
}�A
&�A
�A
-��A	�vA	I�ARTA�/A�
A	u�A��AjA��A
	A
�RA
��A
-$�A�A�gA
-�A
6�A
-�HA
-��A
-�FA
-��A
-�)A
-��A
�YA
xlA
�zA
MA
zA
dZA
N�A
sA
]�A
�:A
e,A
��A#�A^5AW�A \A5?A�_A�AƨAB[A��A��A�,A
��A
��A
�"A��A
�A
n/A
�mA
��A
&A
�A
�+A
�A?}A!�A#VA#�FA$�+A%|�A&v�A&��A&�HA&A$�DA%33A&z�A&�A& �A%�hA%�A%�
-A%��A%%A%�7A&
JA&�uA'dZA&�A%�A#�wA!�-A E�Ap;AXA I�A �A =qA��ASA
W�A
�gA�3A�A
�8A
K�A
YKA
��A
�A

A
�gA�vA
:*A
��A:*A A ��A!O�A!��A"A"bA"
�A"v�A#G�A#��A"1'A �`A ^5A��A
�\A
A
��A
m�A
�?A
�7A,�A ��A!�A!hsA �/A Q�A {A �uA!`BA#�7A&v�A't�A'��A'C�A&=qA'VA)A+�-A+A, �A,�A-
-=A/�A2��A2ffA1|�A0�\A0M�A01A/�A/�A.�A.��A.{A-��A-dZA-"�A,�\A+��A+?}A*5?A*n�A*��A+S�A+�#A+�A+
-=A*v�A*�+A*�jA*��A*{A+oA,ffA-�A-��A.��A0  A0�\A0I�A/�FA.��A-�^A-O�A-VA.{A/�A/��A01A0��A1��A2�A3;dA4��A6�A8n�A5��A2�RA2�A3
A3dZA4I�A5
A5hsA6Q�A7VA8 �A9�mA;�A;�A<VA;�FA:�yA:��A;7LA;G�A;�-A;A;|�A:�/A:=qA9��A:1A:E�A8��A7�
-A8=qA8��A8�RA8�A7��A7`BA7�A6��A6�jA6��A6�/A6n�A5��A5�TA6
�A6Z
A6�uA6z�A6
JA5C�A4~�A4ffA5��A7
-=A8I�A9�^A:z�A;hsA:ȴA:(�A:�uA:��A:�HA:A�A:$�A9�;A9l�A9&�A9VA9
�A9
A9A:Z
A:jA:��A;;dA;��A<jA=XA=l�A<��A;��A<ffA<M�A<1'A;�A=%A>$�A>5?A>
�A=x�A<�A<�jA=&�A>�A?dZA@�+A@��AA33A@�\A?�A?K�A>��A?��AAG�AAXAAVAA"�AA�PAB�+AC��AD��AEp�AF=qAEhsAD��AE�AGt�AHr�AIC�AI�AIhsAH�AG�mAF�/AG
�AG33AGt�AG�7AF�/AF1AF��AG��AHr�AH�`AH=qAFv�AEC�AEXAEƨAFffAG33AGG�AG+AG��AHjAH�/AH��AHv�AG��AG"�AG��AGx�AG�PAGp�AG�-AGƨAF�AE�^AF(�AFȴAG7LAG��AG�PAFZ
AE�AEhsAE��AG
AH1'AG�7AF�!AFĜAG33AG�AF��AF�!AG"�AGAHb [...]
-A]C�A[
�A[��A\Q�A\��A]�A[��AY��AW�7AUp�ATZ
ATn�AU�AW�PAY
-=AZVA\1A^��AbbNAc�^Ad=qAd��Ae�AgVAgƨAh�jAjVAkoAlA�Am��Al9XAk
Ah��Ag
�Ag��Ai�TAk�AlAlQ�Aln�Al��Am�An�`AkG�Ah$�AeVAb  Aa�TAc;dAfbAj5?Al�!Aj��Ah��Af�Ad�RAh��Al��Ao�hAq�;AsO�AtĜAv  Av�DAwS�AvbAt��Ar�HAql�ApjAohsAoG�Ap�9Aq?}AqXAp�\AoS�Ap�Av=qAz�yAzȴAz��AvjAs\)Ar�\Ar5?At�DAw��AyA{
Az�HAy`BAw�;Av��Au��Au�Au�PAs�#Aq|�Aq\)Aq�mAsXAv��AxĜAw�^Av9XAu�TAuoArz�Ap$�Ao"�AnZ
AoƨAq33As��Aw?}A{%A}7LA~��A}�TA{p�Ayx�Av^5AuXAu7LAv  Aw;dAx�9Az1'Az��Ay�Axn�Av�9Au�Av�yAxbNAx~�Ax �Ax=qAx��A [...]
-A{�A{33A{�7A}
-=A~�DA\)A�A��A~��A~$�A~A}��A|��Az�Az1Ay�mA{dZA}��A|ĜA{?}Az1'Ax�9AyC�A|$�A}��A{/AxĜAw�^Av�yAxbNAzVA{"�A{
Az1'Ay&�Ay?}A{p�A}��A&�A�VA�dZA��A~��A}
�A|��A|�/A|�jA{�Az��Ay��Ayx�AzA�A{Az�Ay�TAx�Aw
�Aw;dAw��Ay�A|bNA�
�A�\)A�"�A�oA��+A���A�FA\)A�33A��A��jA�1A���A��FA~�9A|A�A{�TA|v�A|Z
A|�yA�&�A���A�hsA�v�A�A�/A�=qA��`A�33A�A�A�n�A��jA��A�\)A���A�bNA�33A�hsA��A��jA��PA��
-A���A�1A���A�bA��A}�;A|��A{Az�A|r�A~1'A~ĜA~��A}��A|ĜA|ffA}7LA~1A�?}A�5?A�1'A��A���A��A�%A�7LA�1A���A��7A�x�A�
-=A�|�A�l�A��HA���A�=qA��7A���A���A�O�A���A���A�
�A�VA���A��!A�ƨA���A��uA��A�+A�9XA���A��A��A�VA�
�A�bNA�l�A��A�jA�~�A��uA�1A���A��9A���A�9XA��A��A�
�A�+A��A��!A���A�33A�%A���A��`A��
-A�?}A�bNA�(�A�oA�`BA���A���A��-A�
�A�l�A�z�A�K�A�;dA��7A���A�  A��\A��wA�M�A��A��A�&�A���A��mA��-A�|�A���A��#A�1A���A��7A���A�O�A�  A��-A���A��uA��;A��A�z�A��mA���A�hsA���A��A��A�(�A�9XA��A�v�A�G�A�7LA��A��-A�^5A�
JA��A�+A��#A�-A�
�A�K�A��^A�1A��A�ffA�{A�$�A��A���A��uA�dZA�{A�ffA�z�A��!A���A��hA��RA�
A��A�A���A�?}A��A�^5A��A��/A���A���A�K�A��jA�K�A�=qA�O�A�`BA���A�z�A�I�A��RA���A���A��yA���A�hsA�x�A�hsA���A�1A��
-A�&�A��FA�E�A�5?A��A���A�ffA�VA�ĜA�t�A�%A�VA�ffA�5?A���A�33A�A��uA�"�A��9A��A�t�A�A��A���A�oA�A���A�%A���A��`A��A� �A�Q�A���A��-A�
A���A�
-=A�|�A��A�"�A�33A�C�A�+A��A��HA�p�A�  A��A�`BA�bA�  A��!A�  A�5?A��\A�bNA�{A�`BA���A�Z
A�$�A��uA�
A��A�dZA���A��TA��!A�?}A�O�A�?}A�/A���A��A�  A��A�?}A��!A�  A�O�A��A�33A�"�A�Q�A�bNA�Q�A�ĜA�v�A��yA��RA�%A��9A�
A���A�%A���A�n�A�$�A�{A��HA�n�A���A�1A���A�ƨA��
-A��mA��
-A�ƨA�5?A�C�A��9A��yA���A�VA���A�l�A��A�ȴA��A��PA�bNA�bA���A��A��A�1A��^A�-A���A��A�^5A�jA�\)A���A��/A�VA��A��A�ffA���A�p�A�A���A���A��A��jA��A��
-A���A�oA�A��A�ffA�;dA��PA�;dA�
-=A���A���A�t�A��`A���A�-A�A���A�`BA��A��/A��A��A�G�A��FA��`A�7LA��+A��A���A�x�A�ȴA�9XA��DA���A��A���A��A�=qA��\A�C�A��A�`BA��A�^5A���A��HA���A�ȴA�=qA��yA���A�ĜA�r�A�A�t�A�ffA��wA���A��A�-A��^A�ȴA��RA���A���A��A�|�A��A���A�-A��wA���A��`A�x�A�
JA��
-A��A�Q�A�A�A��A�bNA�5?A�I�A�z�A��+A���A��mA��A�1A��RA�(�A�Z
A���A�Z
A�l�A�\)A�M�A���A��hA�C�A��A���A�C�A�33A��HA��-A���A��-A���A�Q�A�|�A��A�z�A�I�A��jA�/A���A�-A�~�A��A�C�A��
-A��PA�|�A�
-=A��9A���A��A�ffA��RA�
-=A�7LA�ffA��
-A�G�A��^A�jA�;dA�
JA��#A�n�A�ƨA���A�t�A��A�t�A�E�A�n�A��/A���A��jA��uA��mA�t�A�dZA�VA��+A���A��7A��A��mA��
-A��yA�\)A�oA�M�A�`BA�/A��-A���A�1A���A��7A�x�A�jA�
�A��\A���A��A�"�A�{A�E�A���A�1A�{A�$�A���A��A��A�;dA��!A�$�A�
JA���A��HA�O�A� �A��!A�A�A�1'A�"�A�t�A�ƨA��FA�ȴA�9XA��A�|�A�
JA�|�A�
JA��/A��A�?}A�1'A�A�A�r�A��A���A�G�A�9XA�
-=A�z�A���A��jA��hA�C�A�O�A�`BA�Q�A��mA��jA�A���A��`A��
-A�ȴA��^A���A���A��A���A��A� �A�1'A�
A��9A��A�7LA�1A��A��yA���A�-A�=qA�/A�`BA�O�A�bNA�S�A�C�A�5?A�&�A�7LA�hsA�z�A�l�A���A��A�bA��9A��A��#A��A�%A��PA�oA�XA��
-A�5?A��9A�t�A���A��A��#A�
�A�bNA�ƨA�n�A���A�9XA�~�A��A�A�A�"�A�%A�ƨA�ffA�G�A�l�A�n�A�r�A��FA���A��/A��HA�A�I�A�K�A�O�A�r�A��RA��jA��wA��TA�ĜA�dZA�&�A�1A�ȴA��A�33A�x�A��wA�$�A��DA�7LA���A�%A�+A�/A�bA�5?A�9XA�=qA��A���A��A��A���A���A���A�7LA���A�t�A���A�M�A��7A���A�&�A��mA���A���A�oA�x�A�C�A�O�A�=qA�
JA���A�ffA��DA�l�A�O�A�1'A���A�l�A�-A�1'A�oA���A��
-A��^A���A�~�A�?}A� �A�$�A�I�A�p�A��RA��/A�$�A��PA���A�?}A�ffA��A��A�
�A���A��HA�A���A���A��A���A�
�A���A�$�A�%A��yA���A��A��\A�p�A�S�A�z�A�A��yA���A��A���A��A�  A��HA�1A�Q�A�33A��A���A��#A�
A��TA�ƨA��A���A���A���A��/A��wA��`A�ȴA��A���A��9A���A�x�A��A���A� �A�jA��hA��RA�
A�(�A�ƨA���A��DA�n�A�Q�A�x�A���A��yA�bA��A��A�
�A�
A��TA�ƨA��A���A��9A��#A��wA��`A�ȴA���A��!A��uA��^A���A�ĜA���A��A���A��FA��/A�&�A�O�A�v�A���A��mA���A��A�K�A�/A�oA���A�
�A�  A�&�A�O�A�S�A�Z
A�=qA�C�A [...]
-A��^A���A��A�hsA�M�A�33A�Z
A�?}A�$�A�n�A�S�A�z�A�ƨA���A���A��RA���A�ĜA���A��\A��RA���A���A��7A�K�A��A���A��FA��;A��`A���A��A�
�A�"�A�K�A�1'A��A�?}A�$�A�1A��A���A���A��HA��mA�bA���A�
�A�A��yA�oA���A���A��TA�
JA��A��
-A��jA���A��+A��!A���A��wA�`BA�E�A�+A�bA���A��/A�A���A��PA��FA���A���A��7A��!A���A��wA���A���A��9A���A�~�A��+A�l�A���A�z�A���A��7A�p�A�v�A�\)A�C�A�l�A�Q�A�7LA�`BA�E�A�-A�oA���A� �A�1A�VA���A�
�A�A�-A�oA���A��;A�1A��A���A��#A�A��A���A��RA��;A�ƨA��A���A��jA���A��7A�n�A�VA�;dA�"�A�
-=A�bA���A� �A�1A�/A��A���A�$�A�
JA��A���A��HA�ȴA��A��A�  A��mA��A��A���A��`A���A��-A���A�A���A���A��A�
A�+A�oA���A��;A�ƨA��A�S�A�9XA� �A�1A��A��
-A��wA���A��PA�r�A�Z
A�A�A�(�A�bA�9XA� �A�I�A�Q�A�9XA�`BA�G�A�/A�XA�?}A��7A�p�A���A�A��A���A��^A���A�G�A�/A��A���A��`A���A���A���A��`A���A��9A���A��A�l�A�S�A�;dA�"�A�K�A�t�A�\)A���A���A��FA��;A�ƨA���A��FA���A�ƨA��A���A�~�A�ffA�M�A�5?A�^5A�G�A�/A��A���A��mA���A��FA�^5A�G�A�/A��A�  A��mA�bA���A� �A�(�A�Q�A��^A�A�-A�v�A�^5A��+A�p�A�XA�  A��mA���A�v�A�?}A�(�A�bA��RA���A�I�A�r�A�\)A��A��PA��9A��/A�ƨA��A��
-A���A���A��hA���A�A��A���A���A�A��A��A�  A��mA���A��RA���A���A��9A���A�ĜA��A���A�~�A��+A�p�A�9XA�"�A�+A�{A���A��`A�VA�7LA� �A�I�A�Q�A�z�A�dZA�K�A�5?A�
�A�1A��A��A�A��A���A�~�A���A��\A���A���A���A��uA��jA���A��\A�x�A�bNA�K�A�33A�
�A�%A��A��A�A��A���A��wA�ƨA��A��A�
A��A�{A���A��mA��hA�z�A�dZA�bA���A��TA���A���A��;A�ȴA��A���A�"�A�K�A�r�A�|�A���A��\A�x�A�bNA�K�A�5?A� �A���A��9A���A��7A�S�A���A�&�A�bA��A�C�A�-A�VA�?}A�hsA�Q�A�Z
A�E�A�l�A��A�A��A��RA���A�M�A�v�A�bNA� [...]
-A���A��A���A��A�jA�VA�|�A�hsA�Q�A�z�A�dZA�O�A�;dA�$�A�M�A�7LA�A�A�hsA�S�A�?}A�(�A�{A���A��yA���A��wA���A���A��jA���A��uA��^A���A��A���A�ffA�Q�A�;dA�&�A���A���A��mA���A��wA�ȴA��-A���A�ƨA��A��A�  A�
-=A���A�
�A�1A��A��;A�%A��A��/A�ȴA��9A���A�ƨA���A��jA���A��hA�|�A�I�A�5?A�?}A�+A�Q�A�=qA�(�A�Q�A�=qA�(�A�{A�  A�1A�1'A�
�A�1A�mA�wA��Al�AC�A�A~�A~ȴA~��A~v�A~M�A~��A~�A~ĜA~��A~r�A~I�A~ �A}��A}��A}�TA}�^A~
JA}�TA~1'A~1A~Z
A~n�A~E�A~
�A}�A}��A}��A}|�A}�A|�A|M�A|(�A|  A{�
-A{�A{�7A{`BA{7LA{oAz�yAz��Az��Azr�AzI�Az��Azr�AzI�Ay�AyoAx9XAw��Aw
Av-Av1Aul�At��At�At�At$�At  AsdZAs?}As�Ar~�ArZ
AqAp�Ao�mAn��Aml�Al1'Aj�+Ah�HAg;dAe/Ab�A`�A^�jA\ĜAZ��AYC�AX$�AW%AW�;AX�DAYhsA[K�A\��A^�`Aa%Ab��Ae"�Af�!Ahv�Ai�
-AjVAkVAl  AlI�Al��Am�7An
JAnVAn��Ao&�Ao�TApffAq&�Aq��Aq��Ar~�ArZ
Ar��Ar~�ArZ
Ar5?ArbAqx�AqS�Aq/Aq
-=Ap�Ap��Ap��Apr�Ap��AqVAp�yAp��AqG�Aq"�Ap��AqK�Aq&�Aqt�Aq�7Aq��Aq�Aq��Aq�
-Aq�-Aq�PAqhsAqC�Aq
�Aql�AqG�Aq"�Ap��AqoAp�ApȴAp��Ap~�ApZ
Ap5?ApbAo�Ap9XAp{Ao�Ao��Ao��AoVAn�9An�\AnjAnE�AnZ
An��An�An��Ao�Ao/Ao
-=AoXAo33Ao�Ao\)Ao�;Ao�wAo��Ao�TAoAo��Aox�AoS�Ao/Ao
-=An�yAnQ�An1'Anz�AnȴAn��Ao+Aot�AoO�Ao��Aox�AoXAo33AoVAn�yAnĜAn��AnbAm�AmƨAm33AmVAl�AlȴAm�Al�Am?}AmS�Am��Am�An9XAn{Am�Am\)Amp�AmO�AmdZAm?}AmS�AmhsAmC�AmXAm7LAmK�Am&�Am
Am�Al��Am
-=Al�`Al��Al�Al�9AlȴAl��Al�Al��Alr�AlQ�AlffAlA�Al �Ak��AlbAk�Ak��Ak��Ak�wAk��Akx�AkS�Ak33AkVAk"�Ak
Aj�/Aj�jAj��Ajv�AjQ�Aj1'AjbAi�Ai��Ai��Ah�HAi+Aix�AiS�Ai33AiVAh�Ah^5Ah=qAh�AhffAhz�AhVAh5?Ah~�Ah^5Ah=qAh
�Ag��AghsAgG�Ag&�Ag
Af�HAf�DAfffAfE�Af$�Af9XAf�Ae��AfA�Af �Af  Ae�#Ae�^Ae��Aex�AeXAe7LAeoAe`BAe;dAe�Ae/AeVAd�RAd��Adv�AdVAcƨAc��Ac�Ab��Ab�Ab�RAb��Abv�Ab �Ab  Aa�;Aa�Ab=qAb�+Ab��Ab�`Ac/Acx�AcXAc�#AcK�Ac+Ab��Ab�9Ab(�Aa��Aa|�AaƨAa��Aa�7Aa��Aa�-AaƨAbbAa�Ab9XAb�Ab��Abv� [...]
-=AV�+AVjAVM�AU��AU�AU�PAUp�AUS�AU7LAU�AT��AT�/AU"�AU%AUK�AU��AU��AU�AV9XAV�AV-AVv�AVVAV9XAV
�AV  AU�TAU/AUVAT�\ATr�ATQ�AT5?AT�AS��AS�;ASAS?}AS"�AS%AR�yAR��AR�!AR��AR�AS
�AS
AS�AR��AR�/AR��AS%AR�yAR��ASoASXASl�AS�FAS��AS�;ASAS?}AS"�AR��ARVAR9XAQ�^AQ7LAP�RAP��AP~�APĜAP�AP�AQhsAQ�AQ�hAQ�
-AQ�^AQ��AQ�AQdZAQG�APȴAP�AP�\APr�AP�RAP=qAP �APAO�mAO��AO�AO�hAOt�AOXAO?}AO"�AN��AN�RAN��AN~�ANffANI�AN-ANbAM�AM�#AM�wAM��AM�AMhsAMO�AM33AM�AL��AL�HALĜAL��AL�DALr�ALVAL9XAL
�ALAK�mAK��AK�-AK��AKx�AK`BAKC�AK&�AKVAJ�AJ��AJ�jAJ��AJ�AJjAJM�AJ1'AJ�AI��AI�TAIƨAI��AI�hAI��AI�7AIp�AIS�AI;dAI
�AI
AH�yAH��AH�9AH��AH�AH�uAHv�AH^5AHA�AH(�AH
JAG�AH1AG�AG��AG�FAG��AG�AGhsAGK�AG33AG�AF��AF�HAG&�AG;dAG
�AG%AGG�AG/AG�AF��AF�AF9XAEAEK�AE/AE�AD��AD�HADȴAD�!AD�uAD��AD�jAD��AD�`A [...]
-=A>�A>�A>�A>��A>�jA>��A>�`A?&�A?VA?O�A?`BA?G�A?
A>�\A>v�A>A=�A>-A>n�A>�A>ĜA>�A>�A>��A>�jA>��A>1'A>�A=��A=`BA=t�A=\)A=��A=�;A=�A>5?A>v�A>�RA?&�A?VA>��A>�/A>jA>$�A=�-A=?}A<��A<�DA<�A<  A;�hA;x�A;`BA;G�A;/A;�A;
A:�yA;&�A;hsA;|�A;�wA<  A;�mA<(�A<bA;��A;�;A;ƨA;�A;��A;�A;hsA;O�A;dZA;��A;�PA;��A;�FA;��A;�;A;ƨA;�#A<�A<A;�hA;x�A;`BA;K�A;33A;t�A;�-A;�A<1A;�A;�#A;A;��A;�hA;x�A;�^A;��A;�TA;��A;�-A;�A;�;A;�A;�#A;��A;|�A;VA;O�A;dZA;K�A;�PA;t�A;�FA;��A;�A;l�A:��A:�\A:I�A9�#A9ƨA [...]
-A9�A9��A9�hA9x�A9
-=A8�A8�/A8ĜA8�A8��A8~�A8ffA8Q�A8�\A8��A8�\A8��A9VA8��A8�/A8ȴA8�!A8A�A8-A8{A7��A7�mA7x�A7�^A7��A7�7A7t�A7�-A7��A7�A7p�A7XA7?}A7+A7oA6��A6�`A6��A6�RA6I�A65?A6
�A5�A5�A4�!A4A�A4-A3�A3�A3l�A3S�A3?}A3&�A3oA2��A2�`A3"�A2�RA2��A2�DA2��A333A3p�A3\)A3��A3�A3�A3
A2��A2-A1�A1�A1�A1%A0�A0�A0n�A01'A0
�A/�-A/��A/�7A/p�A/\)A/��A/�A/�A/��A0bA/��A0bNA0��A0�/A0v�A0^5A/��A/�FA/O�A/;dA.��A.A�A-�#A-A-�A-��A-�A-A-��A-�wA-�A-�A,�9A,��A,9XA,$�A,^5A,��A,�+A,r�A,^5A,��A,�A,��A,��A,�j [...]
-=A*��A*�\A*z�A*ffA*Q�A*�\A*�A+/A+hsA+|�A+hsA+S�A+�A*�!A*�A+
A+;dA+x�A+�FA+��A+�FA+��A+dZA*��A*�yA*��A*��A+"�A+`BA+K�A+�A+p�A+\)A+p�A+�A+�A+�
-A,bA,$�A,bA,M�A,9XA+��A+��A+/A*z�A)�A)�#A*{A*v�A*�9A*�A+S�A+�TA+��A,1'A,n�A,��A-oA,��A,�yA,��A,n�A+�;A+x�A*�A*�+A)��A)��A(�HA(~�A'�A'�;A'|�A'hsA'S�A'�A&�9A&��A&�/A&ȴA&�9A&ȴA&�9A&z�A&�A&A%��A%�PA%+A$�A$�\A$1'A$
�A#�^A#�A#l�A#\)A#G�A"�`A#
�A#VA"��A#VA#G�A#�A#�;A$�A$VA$�9A$�A%O�A%�7A&{A&(�A&bNA&M�A&�+A&v�A&bNA&M�A%�A%dZA%
A$��A$�A#�FA#��A#C�A#
-=A"^5A"  A!ƨA!dZA!%A ��A �uA �A n�A ^5A I�A 5?A�]A�'A��Az�A
A
-=AB�A{JA�"AƨA�.A 9XA I�A 9XA $�A ^5A ��A �A �HA!�A!S�A!hsA!��A!�PA!/A ��A M�AȴA�A
RTA
�A
sA
�A
��A
�{A
'RA˒AK^A�A�A�AL�A:�A(�A:�A�Aa�A1A�+A�A҉A	A��A+kA�BA+A�ZA
Q�A
?}A
v�A
d�A
R�A
@OA
.IA

CA��Ae,A.�A��A��A�	AT�A�gA�aA�[AVA��A��A#�A]�A��A��A��Ak�A��At�A@OA�A��A
�A�A
�AB�AxA��A%A��A��A�AkQA�bA�Ay>Ag�AVA��A�4Ao A
A��A�qATaAC-Ax�Ag�AVA�A��A��AA��A|�A�Ac A
xA��A�nAخA
�AffA��A�Aq
A�
A iA6zA%FA[WAm�A\�A��A�Ao�A^�AMjA��Ar�Aa|A��A��A�vA�A�A��AS�A��A8�A��AffA��A��A=�AĜAn/A]dA_A��A�2A�AO�A?AQA��A/�A�PA��A
JA�FAخA�MA
�Au�A!�A�oAY�A�A
�gA
��A
r�A
b�A
��A
��A
u�A
e�A
U�A
GA
�MA
��A
�hA

OA
VA
��A
kQA
[�A
K�A
<6A

�A
-�0A
-(�A	��A	&�A��Af�AYA��AخA��AzxAkQA
CA
A��APHA�AU2AFtA7�A(�A�A
A:�A+�A
AVA��A��A�A�FA��Av�A��A��A�A�A1A ��6C�HR4963      A1IV @�(�13:09:56.96-05:32:20.5 at h��<
[�'���ó  �EN@ EO@ EP@ EQ@ ER@ ES@ ET@ EU@ EV@ EW@ EX@ EY@ EZ@ E[@ E\@ E]@ E^@ E_@ E`@ Ea@ Eb@ Ec@ Ed@ Ee@ Ef@ Eg@ Eh@ Ei@ Ej@ Ek@ El@ Em@ En@ Eo@ Ep@ Eq@ Er@ Es@ Et@ Eu@ Ev@ Ew@ Ex@ Ey@ Ez@ E{@ E|@ E}@ E~@ E@ E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� [...]
- F
-P F
-� F
-� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F  F P F � F � F! F!P F!� F!� F" F"P ������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
��I� I+�@I@�`IU��I{W�Iz��I�, at I�ҠI���I�l at I�
�I���I���I���I�O�I���I�`I���I�� I���I�t�I���I���I�p at IgA@I�M�I��@I��I�m I�M`I�i�I��I��@I���I���I��I�� I��@Iw�@ICJ`I~�@I�� I���I���I�'�I�\�I�@ I�
-�I���I��I�d I��`I�u�I�� I�V I�'@I�\ I�~ I��I~~ I} �I{
�Iv�@Iub�IqE Iom�Ik6`IiۀIf,`I`y�IQ@I ��I
 IGd`IVk�IX��IX��IX, IV0�IT��IQ��IM� IL�IJ� IH� IG�@IF0�ID�`IB� IA I=��I:[�I95 I9B�I7��I4�`I4`I1) I0��I/��I,� I+��I+��I)��I) I'v I%g I$G I#��I"5�I �`Ip�I
^�I
O at I� I7 I��IQ I+`I� I I��I I��IE at I
W�I
��I
-��I	x�I� I� Iu�I�@I:�I?�I0`I U I v�H�M�H���H�{�H���H�[�H���H� H�n at H��H�� H�u�H�9 at H��H�@H��@H�g�H�� H�� H�� H۔�Hا�H�X�H�W�H�O�HЙ@H�O�Hί@Hͦ@H�
�H�ǀHʔ H��H��H�@HÀ�H�I at H���H�� H�� H�� H�@H���H��H�& H���H��@H��H���H�"�H��@H���H���H���H���H�e�H�o at H��H��@H�b�H�* H�� H���H��H�_ H��@H�; H���H�� H���H�� H�*�H�W�H�c�H��@H�] H�*�H��H�{ H�u�H���H�΀H��@H��H��H���H���H��@H�� H���H�s at H���H�0�H�� H��@H�(�H~� H|��H{h Hz� HyD�Hw��Hv@ Ht� Hr(�HJl G�� Hu�H� H/u�HP��H_� Hd� HeˀHeD�Hd H_�H\F H_� H_% H]m H\��HZ HW� HT��HT��HS� HR� HP��HO� HO HM�HLB HK@�HJs�HIE HH�HE}�HB0�H<��H5� H0)�H0��H3 H5$�H)+�H3 H3� H0�H/� H0~�H/� H1? H1� H [...]
� H��H
� H(* H)��H(
 H#T�HI�H�H � G�  G�# H��HE�H H� H�H� H? H
P H
��H
ڀHS�G� G۫ H |�H�H� G�| G� G���G� �G�{ G���G� G�� G�I G�� G���G�v G�S G�� G�M G�� G�  G���GĤ G�= GӤ G�� G�� G� G�� G�� G�� G�� G�7 G�� G� G�� G�% G�] G� G� G�6 G�� G�� G� G�: G�� G�' G�� G�L Gڱ G���G�= G� G�
 G߻ G�9 G�` G�� G� G�� G� G޲ G�� G�� G�v G�� G�� GԞ G�� G� G�� G�
�G�f ��������������������������������������������������������������������������������������������������������������������������� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-C�C�RC�HC�C
)CJ=C��C�=C�RC�HC0�CaHC�C��Ck�CǮCh�C0�C�{CxRC=qCW
-CٚC� C�C
�C:�C#�C
�C�3Cz�C�)C
�C

�C
�C

-=C
��C
-�RC
-� C	��C	p�CٚC#�C.C:�C�C:�C��CW
-C�qC�fC�{C� C�CO\C
)C�C�CxRC�C�=C�3C=qCffC��C}qCffCQ�C� CL�C�RC�C��C��C�fCQ�C=qC��Cz�C�=C:�C�C�Cz�C  C�C+�C
-C�C��C�)C��Cs3C!HC�\C^�C
�C�RC!HCL�C��C�fC\C�C��CY�C ��C ��C J=B��B���C 
�B���B�W
-B��B�ǮB�(�B��=B�ffB�.B��RB�
-=B�\)B�33B�\B��fB�G�B���B���B���B��{B��qB�
�B���B�\)B�8RB�{B��3B�ǮB�{B�ffB��B�=qB��B�k�B���B��qB�33B�8RB�ǮB��B��HB���B���B���B�G�B���B���B��=B�aHB�B��fB���B�p�B��B�aHB��3B��=B��)B��3B�B�B��{B�k�B��{B���B�\)B��B�p�B���B�  B�ffB���B�k�B�G�B�#�B��B���B���B��qB��
-B��B�Q�B�(�B�B��\B��HB���B��B�aHB�ǮB���B�� B�B��B�G�B�
�B���B�ffB���B�  B�k�B�RB�{B�p�B�L�B���B�
�B���B��
-B�3B�B�=B��
-B�#�B�  B�k�B�qB�z�B�z�B�=qB�B��HB�.B�B�B�\B�k�B�L�B�(�B�B�Q�B��
-B�\B�{B��B���B�B�=B��
-B�3B�
�B�W
-B�B���B�k�B�G�B�(�B�B��HB�Q�B�B瞸B� B�\)B�B��HB�Q�B�33B�\B�\)B�p�B�RB�B��HB�.B�B�B�
�B�ǮB���B�
-=B�\B�L�B�B➸B�{B�Q�B�aHB��B��B���B�L�BᙚB�u�B���B��B�{B��HB�aHB㞸B�z�B�ǮB��)B�#�B�p�B��B��B�qB�B�z�B�RB�qB���B�8RB�B�B�RBߏ\B���B޳3B�(�B�
-=B��B�aHB�=qB۳3B۔{B��)B�Q�B���BخB�(�B�
-=B�Q�B�.B��)B�W
-B�8RBس3B�aHB�u�BؽqB�B��HB���B�=qB�
�B�  B��HB�\)B�
-=B��B�  B��HB�Bף�B�Q�B�33B�G�B�(�B�B�L�B�.B�u�B�W
-B���Bֳ3B֔{B�u�B�W
-B�8RB��B���B֨�B֊=B֞�Bր B�aHB�B�B�#�B�B�L�B�.Bը�BՊ=B�8RB��Bԙ�B�z�B�\)B�=qBԅB�ffB��HB�\)B�=qB��B�k�B�L�B�.B�{B���B�8RB�L�BӔ{B��HB�aHB�z�B���B�L�Bϙ�B�z�B�aHB�B�BϸRB���B�B�B�#�Bϣ�B�#�B�
-=B��B���Bγ3B���B�8RBϮB���B��
-B�W
-BΨ�B�(�BͮB�aHB��HB�B�
-=B��B���B��BʅB�z�Bȣ�B���B��)B�bNBǤZBLj1B���B�=qBȀ B�aHB���B�?}B�#TB��B��B�r-B�V�B�:�BƬB�K�B��B�\)B���B�{B���B��)BȽqB�B�B�(�B�ݲB�c�B��B���B���B�
JB�
-�B�
-=B�8�B�
5B�^5B���B�
�B��-B�2�B�B�YB�=�B�#TB�1B���B�
)B��B���B���B�)yB�\B��B�a�B�G+B���B�mB�RoB�8RB�
�B��B���B�t9B�Y�B�?}B�%`B�e`B��oB�mB���B�v�B�AB�gmB�L�B�1�B»dB�
-B��HB���B���B�nB��XB�W�B�=qB�#TB�	7B��B�z�B�`�B��B�y�B�3�B�
B�  B��fB���B�8RB�
�B�B�
�B��B���B�3�B�q�B���B�#B�Z
B��sB�KDB��
B�iyB�PbB��VB���B���B�CB�)�B���B���B�6FB�
/B���B��uB�z�B�
-�B��-B��B���B�|jB�
PB��9B���B��B�}�B��B�w�B�
-=B��/B��B��B�S�B�ffB��^B���B�"�B��RB�"NB���B���B�	�B�H1B�
DB���B�� B��;B�ŢB�R�B��BB�A�B���B�^5B�h�B�t�B���B�oB���B��B��
B�,B���B�$�B��LB��B�^5B�ǮB�[�B�C�B�,B�hsB���B�
DB���B�B�B��uB���B���B���B�ؓB��B��LB��sB��B�ۦB��B��TB�ɺB���B��
-B�}�B��wB���B���B��oB��+B���B��B��LB�6�B�ŢB���B�^�B�k�B��ZB���B�B���B���B�O�B��qB�.�B���B��B��
-B�B���B�
�B��VB�Z
B���B���B�
DB�CB��B���B�1'B�VB��9B�m�B�uB��{B�kB�ɺB�+B�d�B��DB�4�B�u�B�;dB��
B�O\B�NVB���B�w�Bž�B��+B��B�
5B�K�BǾ�B�aHB�G�B�\)B�  B���B�u�Bʊ=B�p�B�(�BɮB�33B��B�  BȊ=B�k�Bȳ3B�8RB��B��B��B��BöFB�[#B��mB�QhB��hB���B��
B�7LB�l�B��hB��^B���B�LJB���B���B��3B��B�=qB���B�)yB��)B��B��B�\B�ffB�/�B�D�B���B��B���B�ؓB���B��9B���B�1�B��B�u?B��B��B��B���B� BB�@ B���B�(sB���B�`BB� BB�:^B��B���B���B�#B�PbB�7�B�z^B�l�B��jB�`�B�6FB�=qB��B��hBƉ�BǹXB�G�B�z�B˳3B��fB�Q [...]
-B��B���B�G�B�(�B�\B�\)B�\B���B�B�B�.BޮB�aHB��fB�ǮB�{B���B�G�B�(�B�\B��B���B߸RB�33B߀ B�aHB�G�B�(�Bޣ�B�
�B�ffB�z�B�B��
-B�#�B�B�
�B�k�B��B�8RB�Q�B�=qB�ǮB�Q�B�=qB�aHB�B�W
-B��BɅB�
�Bƽ�B�B�
B�e`B��+B���B�T{B���B�dZB�;B���B�,�B�&�B�ևB��PB��qB��5B���B�=qB���B�	�B��oB�$�B���B�E�B���B��B�0!B���B���B��\B|�7Bx	7BtbBp��Bm��BliyBjƨBj��Bj��Bl��Bn�`Bq�HBu�uBy��B~�DB��bB�H�B��PB��/B��B�5�B�<�B��-B��B�u�B���B�=qB�w�B��{B��;B�X�B�e�B�y�B�DB��B��wB��
-B�t�B�ؓB���B�T{B�B�
�B���B���B��bB�O\B�u�B���B�$ZB�P�B�~�B�QhBȀ Bɳ3B��B�Q�B͊=B�(�B�ffB�B�B�
�B�.B�\B��B���B��B���B�G�B���B��HB�ǮBܮB���B�L�B�8RB��B�u�B�.B�3B�k�B��B��B�.B�
�B��)B�aHB�3B�=qB�=B��)B�.B�3B�u�B�  B���B�G�B뙚B�3B�B�\)B�=qB�\B��B�\B��HB�33B�{B�k�B�B�ffB�qB�\B�(�B�z�B���B�3B�B��B�B�W
-B�B�\B��fB�ǮB�Q�B�8RB��B�=B�8RB��B�=B�  B��HB�
�B�  B�u�B��fB���B�
-=B�z�B�aHB�B�B�RB�ffB��)B�Q�B�ǮB�B�{B�=qB�RB�.B�p�B�z�B�qB���B�{B�=B���B��HB�aHB�\B�#�B�k�B��fB�ffBۮB�.B�{B�(�B�u�B�aHB��HB�ǮB��fB�8RB�#�B�B�B�33B�#�B�G�BΞ�B�aHB�W
-B�L�B��fBȅB�"NB� BB�B��B�ƨB�n�B��B�ƨB�
/B�KDB� �B�a�B��#B��B�ĜB�	7B�{�B�EB���B�b�B��NB�d�B�ÖB�MPB�e`B��bB��B�AB�nB���B���B���B���B���B���B���B��B��B��jB��B�
B�B���B|��BxB�BsdZBn��BiJ�Bd�B_��B[;dBWS�BS�NBP�!BM�=BK0!BI;dBHffBH�BI�BK��BM��BQ,BTÖBX��B]'�Ba_;Be?}Bi��BnhBr(�BvƨBz�VB~(�B���B�G�B�1B��B��dB��!B���B���B���B�_�B�1�B�B��;B�:^B�ٚB��%B�$�B��B��B�R�B��B���B��B�N�B�u�B�ƨB��=B� BB���B���B�2-B�B�$�B���B��3B���B��%B���B�H1B�5?B��RB�uB�ؓB���B�e`B� �B�ȴB���B�.�B�� [...]
-B�z�B���B�=qBʳ3B�\)B���B˽qBˣ�B��B�8RB�\B͊=B�33BήB���B�B�BϽqB�B�Q�B�8RBг3BО�B��fB�33B�L�Bє{B��HB�\)B�B�Bҏ\B��)B�B�\B�(�B�p�B�\)Bӣ�Bӏ\BӨ�Bӏ\B�u�B�\)B�G�B�.B�z�B�aHBӮBӔ{B��HB���B�G�B�.B�{B���B�G�B�33B�z�B�ffBԀ B���BԳ3Bԙ�B�
�B���BӽqBӣ�Bӊ=B�p�B�\)B�B�B�(�B�{B���B��HB���B��fB���Bҳ3B�k�B�Q�B�=qB�#�B�=qB�#�B�p�B�W
-B�B�B�(�B�u�BҽqB��
-B�B�\B�W
-B�B�Bӊ=B�u�Bӏ\B�u�B�aHB�G�B�.B��fB�k�B��B�u�B�.Bг3BЙ�BЅB���BиRB���BиRB�B�L�B�8RB�
�B�k�B��B��
-B�aHB��fB���B�#�B�
-=B���B��)B�ǮB�L�B�8RB�
�B�
-=B��B��)B�BͮB͔{B̀ B�B��B̨�B̏\B�z�B�B��B��
-B�aHB�G�B�33B��B�Bʏ\B�u�B�33B��B�B��B��
-B��B��
-B�#�B�z�B�BȔ{B�z�B�ffB��Bǫ�Bǔ�B�~�B�h�Bǁ�B�k�Bdz�Bǝ/BLJ+B�q'B�[#B�D�B�.�Bƺ^B�u�B�_�B�I�B�bNB�LJBƓ�B�}�B�g�B�ŢBŰ!B�<�B�'mB�hB�X�B�B�BŸRBŢ�BŌ�B���BžwBŨsBŒoB��B�	�B�h�B�SuB�=qB�'�B�oB��jB��B�\)B�F�B�1'Bþ�BéyB�e�B�~wB��B�
�B��FB�<�B�'mBõ�BàBB�.�B�B��B�J=B�4�B�;B�	�B˜�BƒB�nB�X�B�CB�.B���B�z^B�
-=B���B���B�o�B��?B��BB���B��wB�D�B�/�B�u?B�`BB��!B�� B��TB��VB�^�B�I�B�4�B�z^B�e`B��B��B��B��9B�9XB�$ZB��B��BB�jB��B�jB���B�@ B���B���B�C�B���B���B�"NB�'�B���B�1B�9�B���B��=B�(sB�]/B�kB�y�B�B��B�NVB��'B��B�
B��B�0!B�p!B��=B�X�B�u?B��uB��B��XB�#B��3B�B��B��oB���B���B�2-B��B���B�@ B��yB�t9B��B�s3B�	�B�bNB�߾B�
B�i�B�ևB���B��B|W
-Bw��Bs�Bo� Bk��BgN�BcO�B_��B[�7BX%�BS��BO��BL5?BH� BD~�B@�B>L�B;�7B8��B7��B6��B5��B6�B7_;B8hB:M�B<�qB?bNBB��BF��BJ�
BM�yBQÖBU�BX�B[�B^��Ba�Bd>wBgBi��Bl:^Bo�Bq�\Bt
DBwByR�B{�TB~{�B�PbB���B���B�X�B�T�B��B��{B�W
-B�B�ܬB�aHB�&fB��B�s3B�;�B��B��PB��B���B�KDB��B�?}B��+B��'B��?B��B�A�B��=B��?B�=�B���B��-B�B�bNB��7B���B�?}B�f�B��'B��oB���B��HB�,B�
PB�5?B�}B�aHB��7B���B��dB��/B�B���B�VB��!B���B�ևB��RB��
B��
B���B���B�gmB�I7B�+B�
PB��B���B��3B���B���B��;B�ƨB���B��DB���B���B��
B�|jB��ZB���B�hsB�KDB�-�B��B���B��\B�q�B�T{B��-B��{B��LB�w�B�Z�B�=qB� �B��B��NB��B�hsB��B��B���B��'B��{B�w�B�[#B�>wB�!�B��B���B��JB��!B��uB�wLB�[#B�>wB�"NB�%B���B���B��bB�t9B�XB�<jB���B���B��+B��B�nB�RoB��B���B��5B���B��%B�I�B�.�B��-B��
-B���B�}B�C�B��B��B��'B��B�Z�B�?}B��ZB��7B��VB�33B��B���B��TB���B�nB��B�ٚB�� B�&fB�
JB���B�x�B�_;B�EB�+B��B��LB��/B�ÖB��yB��B���B�{dB�a�B�H1B�\B���B��)B���B�-B��B���B�G+B�-�B��
-B���B�I7B�0�B�ڠB��
B���B��bB�wLB�^�B�E�B�-B�{B��BƨB��B~�B~�^B~�=B~YB~'�B}��B}ƨB}Z
B}(�B|�
B|P�B| �B{y�B{I�Bz��Bz8RBz	7By�By��Byy�ByI�Bx��Bxu�BxF�Bx�Bw�mBwC�Bw{Bv�`Bv�FBvuBu�`Bu{�BuM�Bu
�Bt�Bt��Bt�uBte`BsÖBs��BsgmBrƨBr��Br2-BrBqdZBq7LBq	7BpjBp<jBp\Bo�NBo�?Bo�1BoZ
Bn�qBn�bBncTBn6FBm��Bm��Bm1Bl�#Bl?}BluBkw�Bk{Bjy�BjM�Bi�3Bi�+Bh�Bh�DBh`BBh49Bh	7Bgp�BgD�Bg�Bf�
BfW
-Bf,Be�{Be49Be	7Bd�5Bd�9Bd
�Bc�BcȴBc��Bcs�BcI�Bc�Bb��Bb��Bb��Bbw�BbL�Bb#�Ba�\Bae`Ba;dB`�)B`H�B`�B_�JB_cTB^��B^��B^I�B^ �B]�\B]ffB]>wB\�B\�B\\)B\33B\
DB[�NB[�^B[�hB[iyB[@�B[�BZ�BZȴBZ��BZw�BZO�BZ'�BZgmBZ>wBY�!BY�1BX��BX��BXw�BW�BWBW��BWVBV�mBV��BV49BU�
BU�3BU'�BT��BTv�BS�BSĜBS��BSw�BS�BR��BR��BRI�BQ��BQiyBP�BBP�^BP2-BP
PBO�mBO��BO��BOv�BOP�BO+BN��BN~�BNZ
BN5?BM�;BMYBM49BM\BL�BLĜBL��BL�BK��BKq�BKL�BJ��BJ��BJ�!BJ,BJ+BI�TBI`BBI<jBI�BH��BHq�BH
�BG��BG�
-BG�3BG1'BG
PBF�BFƨBF��BF� BF\)BF9XBF�BE�BE��BE�BE,BE1BD�LBD�{BD{BC�BC��BC�BC�7BC
-=BB�sBBŢBB��BB� BB^5BB;dBB�BA��BA��BA�-BA�bBAoB@�B@��B@~�B@]/B?�HB?�}B?B�B? �B>��B>�B>5?B=�^B=��B=w�B=VB=5?B={B<�B<��B<�!B<�\B<n�B<M�B<,B;�-B;�hB;p�B;O�B;/B:�FB:jB:I�B9��B9�'B9�bB9�B8��B8�B8�LB8��B8 �B8  B7�BB7��B7��B7�
-B7�LB7��B7v�B7W
-B77LB7�B6��B6�
B6bNB6�B5��B5�B5VB4ĜB4O�B3�)B3�jB3H�B3)�B3
DB2�B2��B20!B2hB1�B1� B1aHB1C�B0��B0�-B0�{B0K�B0.B0\B/�B/��B/�5B/��B/x�B/Z
B/<jB/
�B.�B.�bB.�B.
B-�ZB-ƨB-W
-B-bB,�B,��B,�RB,H�B,+B,VB+�B+��B+�FB+G�B++B+
PB*�B*�B*e`B*H�B*,B*\B)ɺB)�B)�bB)#�B)+B(��B(}�B(:^B'��B'�-B'��B'x�B']/B&�B&��B&�XB&��B&2-B&�B%��B%�5B%B%~�B%�B$��B$�bB$t�B$
DB#ȴB#�B#�hB#u�B#VB"�B"�
-B"�dB"��B"�B"iyB"N�B!�fB!��B!�!B!I�B!1B ��B �+B  �B B�B��BjBO�B\B
�B
�
B
�}B
��B
�=B
p�B
VB
;dB
 �B
�jB
��B
�1B
#�B
	7B
�B
�!B
L�B
2-B��Bk�BQ�BuB��B��B}�BdZBJ�B1'B�B��B��B�BiyB1B��B�'BO�B7LB�B�qB��BC�B+BoB��B'�BVB��B�/BĜBdZBK�B\B��B�5B~�BffB1B�B�9BVB=qB�;BƨB�BP�B�B��B��B�7B,B{B��B�`B�1Bp�BYBA�B)�BoB�B��B��BM�B6FB
�BÖB�B�{B}�BffBN�B�B�/BŢB�Bu�B_;BB
�B
�{B
|�B
#�B
�B
�oB
9XB
"�B

JB
��B
�;B
��B
�hB
z�B
"�B

JB
-��B
-��B
-�1B
-q�B
-�B	��B	�JB�B�wBhsBoB��B�%Bp�B[#B%B�B��B�Bo�BZ
B%B��B�dBgmBoB��BK�B��B�%B33B�HBo�B
�B��B��BF�B ��B �%B 49A�ȴA�bNA�A� �A�E�A���A��hA��RA��A�A�A�/A�XA�I�A�  A�-A� �A��/A�A�hA�Q�A�A�bA�C�A�
-=A�1A���A杲A埾A�
A���A�9XA�n�A�t�A�|�A�XA�jA�O�A�1A���A�
�A̶FA��`AȋDA�9XA�G�A���A���A�\)A�(�A���A�-A��^A���A�t�A���A�1A�M�A�ĜA��uA�hsA��A��jA���A�A�A��jA�ȴA��-A�1'A��#A��7A���A��#A�bA�t�A��\A��#A�A�5?A��A���A��jA��A�v�A��A��jA��uA�?}A���A�t�A���AɶFA�C�A��
-A�
-=A�?}A�t�A�K�A�"�A���A���A�z�A�S�A�/A��A�O�A���A�p�A�
�Aٕ�A��#A�Q�A�  A�x�A۾wA�9XA��mA�bNA�bA�XA���A߃Aߕ�A��/A�"�A�
A��;A߼jA�A��A��A���A��A���A���A�
�A���A��A�S�A�33A�z�A�A��A�-A�\A��
-A�FA�uA�p�A�O�A�-A�t�A��yA�ƨAߥ�A߃A���Aޡ�AށA�^5A�=qA�O�Aޗ�A�t�A޼jAޙ�A��HA���A���A޲-Aޏ\A��
-A޶FAޓuA�r�A�Q�A�/Aݥ�A�O�A�ƨAܥ�A�
�A���A��A�Q�A�/A�VA��A���A�{A��A�9XA��A�^5A�p�A�O�A�/A�VA�S�A�33A٬A��A�jA��TA؏\A�p�A�
�A���Aק�A�VA�5?A��TA�A�p�A�O�A���A��/AվwA�l�A�K�A���A��#AԺ^A�hsA�I�A�+A��AӸRAә�A�z�A�(�A�
-=A��A���AҬAҍPA�;dA�
�A���A��;A���Aџ�AсA�bNA�C�A�$�A�%A��mA�ȴAЩ�AЋDA�l�A�M�A�/A�A�A�"�A�ffA�G�A�ƨAϧ�Aω7A�jAϮAϏ\A�p�A�Q�A�33A�{AΕ�A�v�A�(�Aͩ�A�+A̬A̍PA��;A���A�C�A�$�Aʧ�AʋDA�l�A�
�A�
A��`A�ƨAɩ�AɍPA�n�A�Q�A�33A��A���A�
JA��A�/A�p�A�S�Aɕ�A�x�AɋDA�=qA� �Aȣ�A�(�A�
JA�bNA��mA�l�A��Aŧ�A�-AĴ9Aė�A�
�A�
A��`A�$�A�1A��A�-A�l�A�~�AľwAġ�A��TA�ƨA�M�A�1'A�{AÛ�A�Q�A��A�bNA��jA�E�A�+A��9A���A�M�A�33A��jA���A��A�jA�M�A�33A��A���A��HA�ĜA���A��\A�r�A�XA��TA�ȴA�S�A�
JA�?}A���A��A�oA�E� [...]
-A��wA���A��PA�t�A�\)A�E�A�-A���A���A��hA���A��-A���A��A�hsA���A��DA�r�A�Z
A��A��
-A�n�A�-A�A�Z
A�ȴA�^5A���A��\A�M�A�7LA���A��RA���A��7A�p�A�Z
A�A�A�z�A��DA�t�A�\)A�E�A�-A��A���A��wA���A��RA���A�bNA�K�A�33A���A��FA�O�A�A��A�G�A��HA�VA��A��#A�ĜA�`BA�I�A�33A�
�A�Q�A�;dA�r�A�\)A�E�A�|�A�ffA�O�A�9XA���A��wA���A��hA�z�A��A��FA�x�A��A��9A�+A�ȴA��9A�Q�A�;dA��#A�bA���A��`A��A�A��A��A�A��A�K�A�7LA� �A�
JA���A���A�Z
A�E�A��`A���A��^A�Z
A�E�A�z�A�?}A�+A�{A��#A�ĜA��!A�v�A�`BA�K�A�oA���A��mA��A���A��A�I�A�5?A� �A��mA���A��jA��A�n�A�Z
A� �A�
JA���A��wA���A���A [...]
-A�A��A�t�A�`BA�M�A�{A�
A��A��9A���A��PA�VA�A�A�
-=A���A��HA���A���A��A�K�A�7LA�"�A��A��A�ĜA��PA�z�A��7A�Q�A�?}A�+A���A��wA�dZA�Q�A�=qA��`A��A���A�C�A�/A��
-A���A�I�A��A��;A��+A�t�A���A��mA���A�A��A�XA�E�A�33A�
�A�
JA���A��mA��A�A��A�"�A�VA�
�A�
-=A���A�ĜA��!A���A��DA�x�A��+A�t�A�bNA�-A��A��A�-A���A���A��uA�=qA�+A��
-A�ĜA��-A���A��PA�z�A�hsA���A��+A�t�A�bNA�O�A�=qA��yA��FA���A��uA�?}A�-A��A�
-=A���A��`A���A���A��!A�\)A�
-=A��
-A�ƨA�t�A�bNA�O�A�?}A�-A��#A�ȴA��RA�E�A�5?A��TA���A���A�p�A�^5A�M�A�z�A�hsA���A��A���A�A��!A���A��PA�\)A�K�A���A��yA��A�ƨA��FA���A��uA�C�A�1'A��HA��-A�bNA�Q�A�
A��A��;A��hA�~�A�n�A�^5A��DA�z�A���A���A��A�t�A�dZA�{A�A��FA��A�t�A�&�A��A�%A���A���A���A��A�9XA�
-=A��A�%A�33A�"�A�oA�?}A�-A��HA���A���A��!A���A��\A�~�A�1'A� �A�TAA��A�A��A��A�
-A�FA��At�A~�/A~�jA~^5A~=qA~ �A~9XA~�uA~r�A}�#A}|�A|�`A|ĜA|1'A|bA{�-A{
�Az��AzffAy��Ay�-AyXAxĜAx��Ax�AxffAxE�Ax$�Ax1Awt�AwƨAw��Aw�7Av��Av��AvE�Au�AuXAu7LAu�At��At�/At�jAt��At~�As�As\)As%Ar�`ArVAr5?Ar�Aq��Aq�#Aq�wAq��Aq�Aq`BAqC�Aq&�Aq%Ap�yAp��Ap�Ap�\Apr�ApQ�Ap5?Ao��Ao�7Ao�#Ao�wAo��Ao�Ao��AoC�An�RAm�AmdZAl-Ak��Aj�/AjQ�AiƨAi
Ai�PAi�#AjffAk&�Al
�Al��Al��AmK�Am/Al��Al{Ak�wAjĜAjAi
-=AhE�Ag�wAg33Ag�AfĜAf��Af
�Af  Aex�Ae\)Ae?}Ae"�Ae%AeXAe��Ae�7Ae��Ae�Ae�
-Ae�^Ae��Ae�Ad��Ad��Ad�DAdAc�mAc`BAcC�Ac&�AcVAb�+Ab5?Aa�Aa&�A`��A`Q�A`5?A`
�A`  A`�A`ffA`�9A`��A`~�A`bNA`E�A`-A`bA_�7A_p�A_S�A^��A^~�A]��A]�;A]ƨA]��A]�PA]t�A\�A\��A\�jA\��A\�A\jA\M�A\  A[�TA[��A[G�AZĜAZ�AZ(�AYt�AX��AXr�AX$�AX
JAW�AX
JAXVAX=qAX �AX1AW�AWl�AWS�AW%AV�+AV1AU�AUp�AU"�AU
-=AT�AU%AUO�AU7LAU�AUhsAU�-AU��AU�AUdZAUK�AU33AU�AT��AT�AT��AT�!AT��AT~�AT��AT�HATȴAT�!AT��AT�HATbNATI�AT-AS|�ASdZAR�yAR��AR�9AR9XAR �AR1AQ�7AQp�AQ&�AQVAP��APz�AP��AP�AQ"�AQl�ARM�AR��ASt�AS�wAT=qAT$�AT1AS�AS��ARĜARI�AQ��AP�jAPbAO33AN�+AN
JAM��AMK�AM33AL�RAL��AL(�AK�;AKhsAJ�AJ�AJ��AJ��AJ�\AJv�AJ  AI�mAI��AI&�AH�!AH��AH�AH
JAGƨAG�AG7LAG
�AG
-=AGO�AG7LAG
�AG7LAG
�AF�AF��AF��AF�uAFz�AFbNAF�AF��AGdZAG�#AH~�AH��AH�/AI"�AI;dAH��AH�/AHffAG�AGK�AFz�AE�
-AE
ADbNAC�ACx�AC7LAB��AB �AA�AA?}A@��A at -A?�^A?K�A?33A?
�A?%A>�A>�A>=qA>(�A=�FA=G�A=%A<�A=%A<�A=33A=t�A=�^A=��A=�^A=��A>=qA>(�A>��A>VA>A�A>(�A=�^A=��A=33A<ĜA;��A;7LA:ȴA:A9A9S�A8�`A8M�A89XA8$�A8bA7��A7�TA7��A7dZA6��A6^5A5�A5�7A5K�A4�HA4v�A4bNA3��A3�FA3��A3�PA3��A3�TA4$�A4�HA5��A6�\A6��A6�`A7&�A6ffA6$�A5dZA4��A4�jA4Q�A3�mA3��A3hsA3��A3��A3��A3�wA4(�A4jA4  A3A3XA2��A1�-A0��A0ffA/�
-A/p�A/\)A/G�A/33A/
�A.�RA.(�A-A,�HA,-A+�A+�7A+&�A+oA*��A*�yA*�A*ĜA*^5A*��A*�A+�A++A+�A+S�A*�A*bNA*  A)t�A(��A(5?A'�A&��A&��A&bA%�-A%��A%;dA%+A$��A$�\A$-A$
�A$1A#��A#��A#7LA"ffA!�;A!VA ffA��A
�A&�A�eA�A�fA��A��A��A��A Z
A �uA ~�A �RA!dZA"bA"��A#G�A#��A#�TA$
�A#�^A#\)A"��A"(�A!��A ��A -A��A �A
~(A
!�A
�mA
�"A
2aA
֡A
ĜA
�"A
�
A
��A
4nA��A�WA� A6zA��A�zAK^A:*A(�AYAsA�eA+A��A�HA

CA
TaA
�9A
�yA
!�A
bA
H�A
�)A
یA
�A
IRA��A�uA��A($Aa|A1A҉A [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-Ds�Ds��Dsk�DsFfDs!HDr��DreDr@�Dr
)Dri�Dr��Ds>�Dr�
-Dr��Dr� Ds�HDtRDtg
-DsθDr�DpffDo�HDo�DoP�DoeDo�Dn�{Dn��Dn,)DnRDm�{Dm��DnEDn��DnnDn��Dn�
-Dns3Dn� Dn�{DnxRDnT{Dl�Dk�fDk{Dj�=Dk<�Dk��Dk�Dk�HDj��Diy�DhD{Dh!HDg��Dg�)Dg� Dg)�Df�=De�Dd��Dd�RDen�De�Df8�Df
-Dd�fDdXRDd��Dd� Dd^DcФDc��Dc��Dcj�DcI�Db��Dbe�Dao\D_��D_��D`�D`\D`�RDaHD`� D`d{D_�D_�D^��D^��D^��D_  D_3D_[�D_:�D_�D^��D_AHD_ �D_�qD_��D_�D_:�D^3D]U�D\�qD\��D\�)D\l)D[��D[(RDZ9�DY��DY` DY@ DYS3DY��DYz=DY��DY��DY=DX��DX��DXUDX5DX�DW�3DW��DW
�DWd{DWw�DV��DV<)DU��DU�DT�DU��DU� DU��DUa�DUB�DT��DT
-=DS�
-DS�)DS�qDTVfDTi�DT�DS�fDS�DR�DR�
-DS�DR��DR�DQeDP�HDO� DO��DO��DO{DN�{DNE�DM�
-DN
-=DM��DMθDMP�DL��DL�{DL�
-DLy�DL�)DL>�DL!HDK�3DKU�DJ��DJ\)DJ?\DJ!�DJd{DJ�fDJ��DJ�)DJ��DJ1�DJDI�RDJ:=DJ
qDI�HDI�{DIg
-DIJ=DI��DI�\DI�HDJ#�DJ
-DJ�DI��DI� DI�3DIvfDIY�DI<�DI  DI3DH�RDH
�DG�DG��DH�DHW�DH:�DHMqDH1HDH{DG�RDGۅDG� DGs�DF��DF�qDFc3DFRDF*�DF�DE�DE�fDE�=DE��DE�\DE�3DEJ=DE.�DD�
-DC��DC�
-DB�DB�DB��DBB�DA�D at qD at VfD@;�D at z�D@�=D at D{D?θD?�fD?HD>�fD?5�D?�D>��D>1HD>fD=��D>:=D>y�D>{D=��D=
�D=�D<��D<��D<��D<k�D;�RD;�D;k�D;${D:��D:@ D9θD9��D9
-D8�qD8�)D8r�D7�fD7ffD6�fD6�fD6l�D6��D6� D6vfD6\�D5�D6*=D6�D5��D5�D5�{D5��D5��D6${D6��D6�RD7D6�)D6ҏD6�{D6��D6�HD6��D6S�D5�{D5  D4�
-D3�{D3,)D2��D2Q�D2\D1�fD2\)D2C3D2*�D2�D2MqD24{D1�RD1�\D1C3D1HD1�D1MqD15D1
�D0�
-D0n�D03D/��D/ҏD/��D/O\D.��D.QHD.8�D.!HD.[�D.��D.�
-D.�HD.ɚD.^�D.G
-D./\D.
-D-�\D.9�D-�\D-��D-� D-
qD,��D,�D-@�D-(�D-c3D-K�D,��D,��D,8�D,!HD,	�D,l)D,��D,� D,�D,��D,G�D+޸D+ǮD+��D+p D+RD*�D*��D*q�D*
-=D)��D)d{D)MqD)6fD)\D)RD(�HD(�=D(�3D(�)D(�D(~�D(RD(�D't{D']qD'nD&�HD&.D%��D$��D$�D$HD#w
-D#{D"�HD!�)D!RD �fD \Ds3D8RD
׮D
��D
qDR�D�D /\D �
-D%A�D%�HD&'
-D&�fD&p D&Y�D&��D'@ D'xRD'�RD(HD'�=D'��D'~D'�D&ۅD&vfD&�D%��D%!�D$�
-D#�fD#\�D"��D!�RD!�D W
-DФD��D��DED0 D�D�D;�D%�D�Dl)D�qD �D!=qD!� D"
qD"�
-D#J�D$C3D%=qD&8�D']qD(\)D)\)D*^D+�D+��D,O\D-{D,s3D,\)D+�3D+3D*�)D*ED)�fD)�\D)��D)��D*${D*^D*��D+J�D+�D*��D)�qD(� D'��D&
)D$�D#� D"�fD!�D?\D
j=D�\D�Dw�D!HDD��D�
-D�3D� DvfD��D��Dn�D��D�Dh�D

�D
�3D^�D!\D"P�D#�)D%3D&t{D'q�D(qHD)q�D*#�D+'
-D,3D,�D.:=D/C�D/�)D0��D0�HD1-qD1j=D1� D2
�D2J=D22�D2�D1� D1��D1.D0��D0�3D0�D0�D/�RD/�HD.�D.��D.
�D-9�D,��D,AHD+` D*XRD)y�D(��D'��D&�D%�{D$�D#��D"D s�D
��D
\Dj=D��D�\D�DMqD5D�D
��D
-U�D^DNDFfDd{D k�C���C�\)C�~�C�W
-C�
-C�C��RC�l�C��HC�q�D3D8�D��D��DHD	��D
9�D
8�D?\D*�D?\D�DD��D(�D
RD33D �qD"r�D#�
-D$�RD%��D'  D(\D)  D*!�D+%�D,+�D,�D-��D.�D/W�D0�D0� D1Z=D1�
-D1��D2� D2��D3�{D4�)D5D5C3D5��D5��D6)�D6�3D7(�D7<�D7|)D7��D7�=D8D8MqD8�qD8u�D8^�D8G
-D7��D8RD8HD8@�D8(�D8�D7��D7��D7
�D6��D6�D5��D5D4��D4=qD3�
-D3<)D2R�D1�{D1 �D0�
-D0�D/HRD.�fD-ҏD,ǮD+�
-D*�fD)�RD(��D(G
-D&��D%�D$��D#�D"c�D!D{DۅD
P D
�Dj=D��DI�D�D9�D=qD��DnD
��D	e�D1�DffDa�DG�C�j=C�
)C��C�
-C�g�C辸C�RC�C�!HCڗ
-C��C�1�C�Y�C�O\C�4{C��C�L�C׾�C��C�'�C苅C��C�RC���C��C��C�,�D.�D˅D��D�3D��D
-5�D
��D
RD#3D
�D��D
-�D�D)�DT{D�fD�fD��D� D�qD
�
-D
,)D

qD
�{D��D ` D!U�D"L�D"�RD#��D$�qD%��D&q�D'!�D'�3D(��D)�fD*:=D+>�D+˅D,ҏD,��D-s�D-^�D,��D,�D-
�D-Z�D-n�D-��D-�D.MqD.�=D.�
-D/��D0:=D0w�D0�D0�\D1
-D1ED1��D1�
-D1�{D1��D2QHD2eD2��D2�D2w�D2�fD2��D2��D2��D2�3D2ǮD3�D3D{D3.�D3C3D3��D3��D3��D3�D3*=D3{D2��D2��D2�3D2�qD2��D2��D2|)D2ffD2P�D2�\D2y�D2c�D2ND28RD2#3D2
qD1��D1��D2 �D2
-�D1�D1� D1�=D1�{D1��D2�D1��D1�)D1I�D0� D0w�D0\D/� D/hRD/ �D.p D.Z�D-��D-޸D-ɚD-�{D-ND-8�D-${D,�D,� D,=D+�)D+w
-D+�D*�qD*��D*��D*
�D)��D).D(��D(>�D'�3D'P�D&�qD&��D&P D%�qD%=qD%�D$�HD$@ D#�RD#W�D"�
-D"p�D!�D �D !�DR�D
��D
&fD
ɚD
�fD
Y�D
FfD
3�D
hRD�qD��D�3D׮D�D��D�RD� D��D\D}qD8RD:=D_\D
c�D
j�D
1HD
-}qD	HRDVfD�DRD+�D�D�D�D ��C���C�h�C���C��C��C�
�C�W
-C��C�o\C�S3C���C�0�Cܚ�C��HC�Cќ)C��HC�7
-CƝqC¸RC��C�ФC��C��)C�33C�9�C�� C���C��C�
)C���C�q�C�z�C��\C�
-=C�=qC�}qCÞ�CƝqC��C̀ C��C�nC׮C�aHC�Q�C� C�O\C�'�C�w
-C��3C�fC�\C�s3C��C���C�!HC�
-C�K�C�J=D ��D�=D��D��D\DK�DW�D�fD�fDFfD��D	��D	��D
-mqD
!�D
��D
RD
|�D
�D
eD
�=DqHD�D<)Dn�D�D~�D�{D�D]qD�HD,)D` D�
-D��D�=DD�qDT{DC3D��D��D�D�D'
-D�DJ=D9�DK�D� D�D�DA�D�=D��DD��D�)D��DɚD�RD�
-D��D�D��D�RD �D�\D${D3D�D7
-D� DθD�qD��D��D�=D�\D�D�3D�)Dz�Dj=DX�DG�D7
-D%�D�\D�D�3D��DfD(�D�D
-DҏD|)Dk�D� D�\D8�D(RD��D{D�\D��DX�DHRD7�DD
-DJ�D:=D)�D�DRD��D�D�D
-�D�=D.D@ D/\D
�D�DB�D1�D��D�=DU�DED5D${D� D� Dl)D[�DK�D:�D*�D�D
-=D>D-qD
qD
qD��D��Dw�D��D�)D�\D"�D�D�D��D�D��D��D�3D�HDND
��D
�RD
w
-D
g
-D
{D
{D
�{D
�D
�D
�D
��D
�D
׮D
�RD
u�D
ffD
{D
{D
�D
�3D
r�D
b�D
S3D
C�D
3�D
${D
{D
-��D
-�{D
-c3D
-S�D
-D{D
-5D
-%D
-�D
-fD	�
-D	�D	��D	g
-D	W�D	HRD�RD	)�D	=D��D��D�)D��D�qD~�D.�D  D��DaHDR�DC3D3�D%DU�DFfD7�D��D�=D��D
qD�D�\D�D��D�D��D�D�fDX�DI�D�)D�qD�\D��D��D�3D�{Du�Dg
-DX�DJ=D��D�D� D�HDD�D��D�D�RDy�Dk�D\D�3D��D�
-D��Dz=Dl)D]qDO\D@�D2�D${D4{Dc�DUD	�D��D�HDE�D7�D
-�D � D uD ��D ��D ��D y�D .�D  �D �D {C���C�ФC�<)C�  C�C���C���C���C��{C�=qC���C��C�G�C���C���C��C�:�C�4{C���C�NC�33C�RC���C�l�C�Q�C�7
-C�
)C�u�C�Z�C�@ C�%C���C�fC��C��C�` C�
�C��
-C�C�l�C��fC�\C�z�C�)C�  C��fC��C��C�O\C吤C��C�=qC���C�+�C���C�.C�u�CߦfC�
�C��)C�C�Cݫ�C�G�Cܯ\C܀ C���CۆfC��\C��3Cِ�Cؕ�C��C��{C�\C�RC�T{C�^�C�9�CѨ�CІfC��fC�u�Cͷ
-C�9�C�
qCɥC�ФC�]qC�aHC™�C���C��C�  C��\C��C�C���C��HC��C�<)C��)C�
�C�"�C�j=C�s3C���C�c�C�O\C�J=C�u�C��3C��qC�0�C�\C���C���C���C�<)C�� C��fC��{C��=C��{C�k�C�s3C���C��C�+�C�
-C�U�C�u�C�'�C��C���C�}qC��C��C��C�Y�C��C��fC�޸C���C��C��qC��fC���C�ffC�t{C���C���C�{C���C���C��=C��=C�
)C���C��C�<)C��)C��\C�/\C�b�C���C��=C��HC���C�� C��3C���C�c�C��
-C�o\C���C���C�� C��{C��C�� C��3C���C���C��=C��qC���C��C�g�C���C��qC���C���C��HC�z�C�S3C���C��=C���C�\)C�5�C��HC���C�:�C�3C���C�l�C�FfC�ǮC��HC�z�C�T{C��C��)C���C��\C�j=C�p�C�J=C��RC��3C�U�C�/\C�
-=C���C�g�C�B�C�
qC��RC��3C��C���C�
�C��C��
-C�q�C�NC�(�C��C���C�eC�@ C�
)C��
-C��3C��C�4{C��C��
-C�s3C�%C�  C��)C��RC��{C�q�C�NC���C���C��C�k�C�
qC���C���C��=C�<)C��C��
-C��=C��fC�9�C�
-C�˅C���C�\)C�9�C��C�˅C�~�C�]qC��C��\C���C�XRC�7
-C��C��=C�~�C�]qC�3C��C��fC��C�:�C���C���C�5�C�{C��3C���C���C�>�C��
-C���C�eC�C�C��{C�c�C�
)C��)C���C�k�C�K�C�+�C�
-=C��=C��=C��=C��=C�h�C�H�C��)C��)C�'�C��C���C�.C��C�|)C�\)C��C�ФC�eC�FfC�'�C��C�C�XRC�9�C��C��)C��qC���C�� C�5�C�
-C��RC�ٚC�p�C�,�C���C��C�=qC�
�C���C�s3C�
�C��C�ФC�h�C�K�C�.C��C���C��{C��
-C���C�|)C�:�C�
qC��
-C���C�}qC�` C�B�C��qC�� C�Z�C�=qC��qC�� C�|)C�^�C�B�C�&fC�C��C���C�l�C�P�C���C�ФC���C�t{C�XRC���C�ٚC��qC��HC�@ C�#�C�C���C�g�C�fC��=C��\C�nC�S3C�7
-C�
)C��)C�� C��C�G�C�,�C��C���C��
-C�|)C�
)C�HC��C�ffC�K�C���C���C�t{C�Y�C�@ C��C��fC���C�q�C�W
-C�=qC�"�C��C���C���C�w
-C�]qC�C�C��C���C���C���C��HC���C��C�1�C��
-C��qC���C�'�C��C��3C�y�C�  C�fC���C��{C�z�C�aHC�H�C��\C���C��qC���C�k�C�Q�C�9�C�!HC���C��\C��
-C�~�C�eC�L�C��{C��)C���C���C��3C�Z�C��C��C��{C�>�C�fC���C��RC�B�C�+�C�3C��qC��C�o\C�W
-C�@ C��=C��3C���C�ffC�O\C���C���C��C��
-C�~�C�+�C�{C��C��C��C~�RC~�=C~�)C~nC~�C}\)C}0�C}�C|^�C|0�C{��C{^�Cz��CzQ�Cz&fCy�RCyW
-Cy(�Cx�qCx�\Cx.Cx�Cw�{Cw��CwB�Cv�HCvu�Cu�{Cu��Cu
-=Ct�)CtxRCtL�Ct!HCs��CsW
-Cs+�Cs  Cr�{Cr5�Cr
-=Cq�HCqB�Cq
-Cp�3Cp�=Cp^�Cp33Co�
-ConCoB�Co�Cn}qCnQ�Cn(�Cn  Cm�{Cm��Cm� CmW
-Cm+�Cl�=Cl�HCl�Ck޸CkECk
)Cj��CjY�Ci�RCiaHCi8RCi\Ch�fCh�qCh�{Cg�qCg�{Cg��Cg
-Cf��Cf�\CfffCf=qCf{Ce�CeW
-Ce0�Ce�Cd޸Cd�RCd#�Cc��Cc�{Cc��Cc�Cb��Cb�{Cb�CaٚCaG�Ca!HC`��C`h�C`B�C`�C_�3C`5�C`\C_��C`+�C`�C_�)C_��C_&fC^�qC^nC^{C]�C]^�C\�\C\��C\O\C[C[33C[
�CZ� CZ\)CY�)CYu�CYO\CX�CX��CXxRCXT{CWǮCWp�CWJ=CV� CV�)CV�CU�CUc�CU
�CT��CTCT��CTz�CTT{CT0�CT
�CS��CS^�CS:�CS
-CR�3CR�\CR��CR#�CR  CQ�)CQ�RCQ�{CQp�CP��CP�CPp�CPL�CP+�CP�CO��CO^�CO:�CO
-CN�3CNnCNL�CN(�CNCM��CM�\CMk�CL��CL�CL��CL� CK�qCK�)CK�RCK�
-CK{CJ�CJ��CJ
)CI��CIz�CIW
-CI5�CH��CH��CHB�CH!HCG�qCG�)CG��CG��CGxRCGW
-CF�
-CF��CF�{CFs3CFQ�CE��CE��CE�\CE�CD�CD�HCD� CD^�CD=qCD
)CC��CC�)CC��CC=qCC
)CB�qCB�)CB^�CB@ CA�CAu�CAT{CA33CA{C@�3C@�{C@�3C@�{C at s3C?�RC?ٚC?�RC?=qC?
�C?  C>޸C>��C>s3C=�RC=ٚC=aHC=B�C=!HC<��C<�=C<@ C;ǮC;��C;��C;�C:�3C:�{C:��C:�
-C:xRC:  C9�HC9�
-C9xRC9�C8��C8nC8O\C7�)C7��C7s3C7T{C6�HC6C6��C60�C6�C5��C5�
-C5�\C5p�C5Q�C4޸C4C4��C40�C4{C3��C3�C3ffC3J=C3+�C3\C2ǮC2��C28RC2
)C1��C1��C0�3C0�
-C0ffC/��C/��C/B�C.��C.��C.��C.+�C.\C-�3C-�
-C-h�C-L�C-�C,�C,�\C,�3C,�
-C,(�C,
�C+�C+�
-C+��C+��C+��C+ffC*��C*޸C*��C*.C*{C)��C)��C)!HC)C(�C(�fC(��C(!HC(�C'�C'��C'ffC'L�C'0�C'
-C&��C&��C&xRC&\)C&�C%��C%�
-C%.C%{C$��C$��C$O\C$5�C$
)C#�3C#��C#� C#�C#  C"��C"}qC"c�C"#�C"
-=C!��C!�=C!#�C!
-=C �=C ffC   C�fC��Ch�CO\C
�C
�C
J=C
�fC
�fC
��C
+�C
ǮC
�C
&fC
\C��C&fC�C�C�{C�Ch�C�)C��Cs3C{CL�C�CnC��CL�C�C+�C�=C�=C�Ch�CffC
ffC
h�C
J=C
-O\C	
-C  C�=C��Ch�C\)C0�C �B��\B�L�B�\)B�u�B�{B�L�B�\B��HB�{B�\B��fB��HB؅B�
-=B�Bг3B��
-BθRB���B�=qB���B�  B֞�B��HB���B�Q�B�B�=B���B�G�B�33B�3B�=qB�
�B��RB���B�W
-B�G�B�C ޸C�HCc�C&fC�Cs3C��C��C
�Cu�C  CJ=C��C�HC+�C�
-C��C	\C	:�C	�C	p�C	�)C	ǮC	�{C	�qC	��C	�{C
-  C	�C	��C
-#�C
-
�C
-:�C
-#�C
-O\C
-\)C
-��C
-s3C
-��C
-�=C
-u�C
-�HC
-��C
-5�C
-
�C
-
-=C	��C	�HC	��C	��C	aHC	L�C	5�C	!HC	
�C�RC��C�\C�RC��C�\Cz�CffCQ�C=qC(�C�{C� C��C�
-CaHCL�C8RC#�C\C��C�fC��C�qC��C�{C� Ck�CW
-CB�C�C�)CǮC�3CaHCL�CxRCc�CO\C:�C&fC�C  C��C�
-CEC33C  C�C��C�Cp�C^�C
�C�RC�fC��C�qC��C�{C� C�C  C�\C��C��Cu�CB�C0�C �qC ��C ��C ��C u�C B�C 0�C   B���B�u�B�{B��B��=B�ffB�B��HB�z�B�W
-B���B��{B�p�B�\B��B��=B�aHB�B��)B�� B�W
-B���B���B�u�B�{B��B��\B�k�B�
-=B��fB��=B�aHB�B��HB�� B�\)B�  B��)B�B�B�
�B�B�(�B�B��HB�L�B�(�B�u�B�Q�B��B�RB�{B�p�B�L�B�(�B�B��HB�B��B���B�8RB�{B��B�\)B�8RB��)B�G�B�#�B�\B�p�B��)B�RB�\)B�=qB��B���B���B�3B�\B�k�B� B�aHB�B�=B�ffB�G�B�#�B�  B��HB�L�B�(�B���B�B�\B���B��)B�L�B�(�B虚B�B�B�
�B�\B�p�B�L�B�.B�
-=B��B�ǮB��B�B���B��
-B�3B�{B�u�B�Q�B�33B�\B�RB䙚B�u�B�W
-B�ǮB��B�=B�ffB�G�B�(�B�B�z�B�\)B�8RB�B�\B�8RB�B�\B�B��fB�\)B�=qB��B���B��)BޅB�ffB�G�B�(�Bݞ�B݀ B�aHB��
-BܸRB�33B��)B�W
-B���B�{Bُ\B��
-B��B�k�B��B֔{B�\B��B���Bճ3BՔ{B�z�BսqB�Bր B�ǮB�
-=B�
�B�  B�G�B�(�B֨�B֊=B�8RBճ3B�33BԮBԏ\B��)B�\)B��)BҊ=B�k�B��B���B�L�B���BЀ B�aHB��HB�B�G�B�(�B�z�B�\)B�=qB�#�B�B��fB���BͮB͏\B�u�B�W
-B�=qB�L�B�33B��fB�ǮB̨�B̏\B�p�B�W
-B��
-B˽qB˞�B˅B�ffB˨�Bˏ\B�p�B�W
-B�8RB�
�B�  B��HB�ǮBʨ�B�.B�{B���B��)B�aHB�B�B�(�B�
-=B��Bȣ�BȊ=B�k�B�Q�B�33B��B��qB���B��%Bǩ�BǽqBǡ�Bdž%B�jB�N�B��B���B��PBƱ�BƖ�B�z�B�_;B�DB��DBŰ!BŔ�B�
)B�B���B�nB�R�B�7�B��B��uB�\�B�A�B�&�B�
�B��'B��B»dB �B
�B��B��B�ڠB��}B�I�B��B��mB���B��-B��B�}qB��B��B���B���B�EB�+B��B���B�ܬB��
B��sB��VB��B� �B���B���B��%B�lB�RoB�߾B�ŢB��B��oB��B�%B��B��uB�aHB�G�B�
B��sB��\B�]�B�D�B�+�B��^B��HB���B�n�B��wB��`B���B�\)B�CB���B���B���B��7B�D�B�B���B��ZB��DB�G�B�/B��B��uB���B�wLB�49B��B�ؓB�� B�}qB�d�B�"NB�	�B��+B��B��
-B�T{B�<jB���B���B���B���B�p!B�.B�B���B��jB��ZB�b�B�J�B�	7B��B��
B���B��B�iyB�(sB��B��XB��RB���B��7B�q�B�0�B��B�
B���B��B���B�{�B�;dB�$ZB�
�B���B��?B��5B�5�B�p!B�YB�B
B�+B��B���B��{B�}�B�f�B�O�B�9XB�"NB�
DB��JB��?B�M�B�6�B��\B���B�Q�B�;dB�$�B�VB���B��XB���B�<�B�&fB��B���B��uB�}qB�B��B��B��B��B��
B�
�B��B��B���B�vFB�`BB���B���B��yB��uB�/�B�
B��B��B��B�ÖB�`BB�J�B�5?B��B��TB���B��RB��TB���B�+�B�B� �B��5B��7B�'mB��B��
-B�u?B�`BB��}B��B���B���B���B���B���B�l�B�
�B��LB���B���B���B�~wB�iyB�T�B�@ B���B���B�l�B�W�B��uB�t�B�B��B��TB�i�B�VB���B���B���B��B��mB���B�~�B�kB�V�B�B�B�.�B��B��qB���B���B���B�m�B�Y�B��VB�z^B�ffB�RoB�>�B�+B�
-B�B��fB���B�Z�B���B��B��\B�{�B�hsB�
�B��XB��
B���B�SuB�@�B�-B��B�%B�9�B�&fB��B���B��`B�KDB��'B��^B��mB�M�B�:�B�'mB�{B��B��B�ۦB��1B��?B��NB�I7B�6FB�ݲB���B���B���B�o�B�\�B�J=B�7LB�$ZB��B���B��mB��{B��
B�oB�\�B�J=B�7LB�$�B�oB�  B��B�ڠB��1B��^B���B���B�~wB�lB��B��B��B�wLB�e`B��B���B��fB��{B���B�p!B�^5B�K�B�9�B�'�B��B��B��B���B�h�B�W
-B�
B��B���B�g�B�uB��}B��B��)B�H1B�6FB�$�B��-B���B��PB�{�B�(sB�
-B��TB���B�?}B�.B�ۦB��=B��XB�F�B�5?B���B��oB���B�p!B�^�B�M�B�|�B�lB�Z�B�I�B�8�B�'�B��B�E�B�4�B�dZB�s3B���B���B��B��bB�  B��B�|�B�lB��B�ɺB�YB�ȴB���B�H1B��RB��mB��
-B��%B���B��ZB��uB��B��-B���B��hB�� B��B���B���B�}qB�.B�
�B��VB���B�oB�?}B��B���B��bB��
B�q�B�aHB�QhB�AB�0�B� �B�bB� �B��!B��BB���B�� B�r-B�C�B�33B�#TB��B��%B�x�B�h�B�
)B�
JB��jB��B�ܬB��PB���B���B��
B���B���B��B��#B��DB�{dB�lB�\)B�LJB� �B��B�B~�B~��B~8RB~�B}��B}�#B}�dB}��B}}�B}_;B}@�B} �B}
B|�TB|ĜB|��B|�+B|hsB|VB{�B|
JB{�B{��B{t�B{VB{7LBz��Bz�BzffBy��By�3By�BxƨBx33Bw��Bw�
Bv�?Bv��Bvy�Bv[#Bv=qBv�Bv
Bu�ZBuƨBu��Bu�DBum�BuO�Buk�BuN�Bu��Bu�%BuiyBuK�Bu��Bu�BuffBuH�Bu+Bu�B [...]
-BQ�#BQÖBQ�BQ�oBQy�BQbNBQ�BQ  BP�BPm�BPT�BP<jBP�+BP��BP�1BP��BP�^BQBQN�BQgmBQN�BQ��BQ�
BQiyBQP�BQ9XBQ �BP��BP]/BO�NBO��BOP�BN�
-BN�\BN�BM��BM�BM
JBL�BLL�BL5?BK�qBKE�BJ��BJ�1BJhBI��BI�BIl�BI%�BIVBH��BH�
BH
JBGƨBGP�BF�)BFhsBEĜBEP�BD�BD��BD%�BC�3BC��BC)�BB�`BB��BB]/BA�BAL�B@�#B@=qB?q�B?
B>e`B=��B=�+B=D�B<�B<��B<�B<��B<� B<jB<T�B<?}B<)�B<{B;��B;�yB;{�B;ffB;P�B;;dB:��B:�RB:w�B:bNB:x�B:dZB:��B:�hB:{�B:gmB:Q�B9�`B9��B97LB8��B8�FB8
�B8
-=B7��B733B6��B5�/B5��B533B4ɺB4�?B4��B4�HB5L�B58RB5y�B5�^B6&�B6hsB6S�B6�{B6� B6k�B6�
B6m�B6YB6�B6B5��B50!B4��B433B3ɺB3�DB3"�B3VB2��B2�fB2��B3<jB3'�B3{B3  B2�B2�B2E�B21'B2
�B2]/B2I�B25?B2!�B2
PB1��B1>wB1)�B0B0�B0q�B0�+B0ǮB0�3B0�B12-B1H�B15?B0��B0�TB0{�B0�B/�B/q�B/^5B/J�B/7LB/#�B/bB.��B.��B.1'B.o�B.\)B.H�B.5?B.s�B.aHA�;�H+�CD-32d9927  A0   A&�R14:11:46.37-33:03:14.3 at j�.�>g�@��Ы   �EN@ EQ` ET� EW� EZ� E]� Ea  Ed  Eg@ Ej` Em� Ep� Es� Ev� Ez  E}  E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  Eɐ E�  Ḛ E�@ E�� E�` E�� EԀ E� Eנ E�0 E� [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ F
 F
� F
� ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
,�E
3E
-	�Ey�EњEk3D�
�D���D���D� D��D�� D⩚D�` D��D�)�D���D���D�p D���D��fD�c3D�3D�P D�ffD��fD�33D��3D�\�D��3D�� D�l�D��fD� D�� D�vfD�FfDC~�DW�{D���D���D��D�p D�l�D�VfD��D��fD��DofDj+�Dj �Dha�Dir�DifDd˅D`�RD\4{DZۅDT�DZ�fDK5�DX��DC��DN�\DH�fD(�D:&fD6l)D5n�D,�RD#��D��C�� D
j�D9�D` C��D	�=D/\D
�{D'
-D
�
-Dx�D
�RD��D�
-D33D.�D�f������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ [...]
- F
-P F
-� F
-� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F  F P F � F � F! F!P F!� F!� F" ����������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
- H;��H:1 H9� H8Q H8V H94�H9 H8?�H7 H6��H5݀H6�H5��H6�H5)�H4k�H9��HF� HZ�Hs H�� H���H�y�H��@H�� H�� H�*�H�� H�. H�� H�@Hܦ@H���H���HЉ H䁀H�D�H� H��@H�€H�>�H�*@H�\�H�z�H���HД@HΚ H͙�H��@H�a�Hƕ�H��@H���H��@H�a H�� Hj. H���H��@H�� H�ʀH�� H�C H� H�#�H���H���H���H�8�H���H�� H�=�H�J H���H��@H���H�� H�^�H�8�H��@H�	�H�h at H���H���H���H��@H�@@Hv� H=q�H6: Hn�H9�H� Hn H~�H|b Hz� Hv��Hs HqJ Ho��Hm̀Hl Hj� Hh� HgB�Hd� HbO H^: H]�H[� HZ\ HW< HU� HS HQg�HO��HM  HK��HK
�HIY HG� HF
 HD� HBv�HA% H? [...]
؀H
� H
� H
-6�H	� Hc Hn H� H0 H<�HԀH( H!�G�� G�H G�| G�� G�U G�  G� G� G�� G�= G�z G�� G�A G�9 G�� G� G�m G�
 G� G� G��G�L�G�S G�i G�_ Gֺ G�� Gԭ Gө GѰ Gб G�! G͑ G�z G�S Gȥ G�) G�� G�� G���G�7�G���G�� G�? G�j G�n�G�k G��G�� G��G�H�G���G�Y�G� G���G�� G�$ G�
- G� G�p G��G�� G��G�� G�� G�/ G�� G���G�G G���G�� G� G�� G�̀G��G��G��G�؀G�Z G���G���G�� G�̀G�% Gm� F�V G! G$u GP� Gw G�рG���G�� G�T G�� G��G�� G���G�� G�� G� G��G}C Gzb Gz Gy
 GxG Gu� Gt� Gs� Gp� Go� Gn� GnT Gl� Gj Gg� Gdf G] GU� GOb GO� GS� GU� GG� GS5 GS� GO GNH GO� GN� GP� GQ GP8 GP  GN� GMy GJr GJ
 GJ GL GC� GJ� GE0 G=� GL  GH G6� GD� GO� GF� G-G G8# GL� GP� GG� G. G'� GA� GM� GNt GJ� G@* G$� G
� G8; GD( GE� GD` G>� G4K G)^ G� G d G� G.� G.� G(� G(K G*Y G(� G&` G$� G$( G#� G
C G� G � G� G
� GN G
1 F�� F�� Fư F�& F�2 GB GN F�h F�� F�� F� F�� F�x F�b F�� F� F�2 F�� F�< F�� F�X G G G
 G
3 G
Y GS G� G� G} G� G	� G	� G
� G
� G
( G
R G	x G	� G	� Gf G� G� G� F�Z F�t Fƒ F�$ F�� G* Gm G� G� GQ G � F�� F�� F�� G� F�� F�~ F�� F�< F�4 F�. F�X F�� ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ F
 F
� ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-D:�
-D4ɚDMk�DQ>DA_\DPz�DPz�DML)DE@�D<��DI}qDI��DI�fDG!HDG.DF-qDD#�DA�HD?��D2Z=D=�{D?�D>4{D=
�D<��D;
�D8ҏD7��D5��D4�qD2��D1ФD0�3D0�D.j=D,!�D)� D'mqD'MqD'
qD#,�D"�
-D!O\Db�D

-D
c�Dq�D��D��D��D��DɚDAHD�D��D�)D
�RD
eD
-�RD'
-C��fD�{D%�D!HD ��C��C�C�33C�7
-C�C�J=C�.C��C�C��{C�"�C��C���C�h�Cۜ)C��
-Cֵ�C���C�` C�fC�H�C
C�C�S3C��qC��C��qC���C�&fC��C�޸C�H�C�c�C��
-C��C�˅C�˅C��3C��qC�\)C��qC��qC���C�l�CL�qCsO\C`�HCfs3Cd��Cr�3C~{C�9�C�C�Z�C�C�o\C���C��RC���C�� ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-fE�� E��3E�6fE��fE��fE�&fE�� E��3E�g3E�  E�� E���E�h�E�3E��fE��fE��fE��fE�� E��3E���E�*fE�fE�� E�� E�.fE�fE���E���E���E�C3E�+3E��fE�� E�
-fE��fE��fE��3E�8 E� �E���E�X�E�3E� E���E�=�E�&fE�3E�� E�, E��fE�RfE�`�E��3E�(�E�U�E�8 E�� E��fE�9�E�"fE���E��fE�p E�}�E�g3E�P�E��E��fE�� E�њE�� E���E�D�E�.fE��fE�o3E�4�E�
fE��E��fE�  E�2fE�e�E��E���E���E�
 E�d E��3E���E� �E�
-fE�� E�ݚE��E�D E�� E���E���E��fE�� E�u�E�_3E��3E���E��fE�s3E�8 E���E�y�E��fE���E��fE�l E�VfE�@�E�s3E���E�� E���E�� E�3E��E�D E�.fE��3E�M�E�73E�!�E�
 E�>fE�(�E��fE���E��3E�A�E���E��3E�3E��fE�q�E�\ E�G3E�1�E�՚E���E��3E��fE�:fE�fE�`�E��3E�C3E���E���E�X E���E�>fE��E�k3E�VfE�BfE�� E�� E�k3E�VfE�BfE�rfE��fE�� E�� E��3E��3E��fE��fE�zfE�e�E�� E��3E�3E�( E��3E�W3E� �E���E�t�E�`�E�L�E�9�E��3E��3E�� E�� E�� E��3E��3E��3E�� E�fE�I�E�x E�d�E�P�E�^fE�K3E�y�E���E��fE�(�E�X E�e�E���E�>fE��E��fE� [...]
-fE�(�E�� E��3E���E�P�E���E�o3E��fE�� E��3E�� E�0�E��fE�3E�O3E�� E���E�� E�m�E�X E�BfE�,�E�fE�ٚE�u�E�fE��3E�$�E�u�E���E��3E�� E�K3E�zfE���E�JfE�ŚE�g3E��E���E�'3E�\ E�H E��fE�!�E�|�E���E�X E��fE�� E�'3E�^fE��3E��E���E�� E��3E��fE�՚E���E�� E��3E�6fE��fE�P�E�6fE�g3E�fE���E���E�nfE�( E�/3E�P E�]�E��3E�'3E�
 E��fE�� E�rfE�� E���E�L E�\�E���E���E��E��3E�fE��E�BfE��3E�Y�E���E�, E��3E�p E�\ E�H�E�|�E���E��E���E���E�ɚE��fE�2fE�3E�
3E�� E�� E�@�E���E�  E���E� �E��3E�)�E�3E� E�73E�jfE��� [...]
-fE��fE�(�E�8 E�'3E�VfE�E�E�5�E�d E�T E�c3E��fE�BfE�1�E��E��E���E���E���E�p�E�` E��3E�~fE�nfE�^fE�M�E�=�E�-�E�
�E�, E�ZfE�JfE��3E��3E�� E��3E�\�E�L�E�<�E�, E�
 E�JfE�:fE�*fE�fE�
-fE��fE�	�E�8 E�'3E�3E�3E���E���E��3E��3E�y�E�i�E�Y�E�I�E�fE���E���E�p E� E��3E��3E�ZfE�,�E�� E���E�� E�t�E���E��fE��fE�s3E�d E� E� E<�E
fE  E~h E}њE}<�E|�E|�3E|��E|�fE|h E{�3E{��E{  EzP Ez1�Ey�fEy� Eyc3EyD�Ey&fEy~fEy` EyC3Ey$�Ex��Ew�fEw�fEw� Ewk3EvٚEv�3Ev�fEv� Ev� Ev�3Ev�fEw,�Ew Ev�Ev` EvC3Ev$�Eu�fEu<�Eu  Et�fEs�fEs�Es Er�3Erl�Eq��Eq� Eqk3Ep�3Ep� Ep�3Ep�fEpi�EpL�Ep��Ep��Eph EpL�Ep0 EpK3Ep.fEp�3Ep� EqffEq��Er�Eq��ErI�Er,�Er Eq��Ep�3Ep,�En�fEm��Ek@ Eh��Eex Ebl�E]` EX��ES�EM�� [...]
�fE
�3E
�fE
q�E
3E
�fE
ٚE
�fE
^fE
!�E
fE
�E
�fE
��E
T�E
8 E

�E
  E
-��E
-ɚE
-��E
-��E
-4�E
-�E	�fE	�E	�fE	�3E	� E	t�E	Y�E	
�E	�E�fE�3E� Et�EY�E  E�E�E�fE�3Ex E>fE#3E� E�fE�3Ey�E>fE$�E�E� E�fE{3EA�E( E�fE��E�3Ea�E�fE,�E��E��E�3E+3E�E��E� E�fENfE4�E�fE��EnfET�E �fE � E �fE ��E |�E c3E I�E 1�E  E 
�E �D���D�i�D�6fD���D��3D�<�D�� D�&fD�� D�P D�l�D�<�D��fD�ffD�� D�� D�` D��fD�P D�  D�� D�� D��3D�c3D�33D�3D��3D��fD�3D��3D�3D�vfD��3D�i�D�<�D�
�D�l�D�<�D��D�p D�@ D� D�9�D�
�D���D�@ D�3D��3D�fDD�\�D��D� D�c3D�6fD�	�D�l�D�@ D�ٚD��D�  [...]
-Dwp�DwI�Dw#3Dv��Du�qDu�qDt\Ds�qDr��Dq^�Dp��Do��DoaHDo<)Do��Doa�Do�fDp��Dp�\Dq3DqN�Dq)�Dq�Dp�DpG�Do�DoS�Dn�qDn'�Dm��Dm6fDl��Dl|�Dk��Dk�{Dk� Dk{�Dk��Dk�HDk|�DkXRDk3�Dk Dj�Dj�
-Dj��Dj~�Di�)Di�RDil�DiH�Di${Di �Dh��Dh��Dh�Dh�Dg�Dg��Dg+�DgRDfA�De��De"�Dd]qDcc3Db5�Das3D`�fD`Z=D`7�D`D`\)D`:=D`�fDahRDa� DaDb
-�DbR�DbФDb�Db�fDb�3Dc�Db��Db�fDb��Db�HDb{Da��Da�\Da2�Da D`�D`�
-D`
-�D_��D_�fD_;�D_�D^��D^l�D^J�D^(�D]�3D]�HD]'�D]�D\�{D\�3D\9�D\RD[�
-D[��D[L�DZ�RDZ�
-DZ��DZ.DZ
�DY�)DY��DY�=DY#3DY�DX�HDX��DX� DX\DX^�DX>DX
DW�qDW��DWVfDW6fDV�3DVDV��DV��DVa�DU��DU��DU��DURDT�RDT�RDT��DT��DTx�DTX�DT9�DT}qDSǮDSvfDSW
-DS7
-DR��DR�fDR�
-DR��DR6fDR
-DQ��DQ�
-DQ��DQhRDQ�DP��DPٚDP��DPj�DPK�DO��DO��DO�qDOnDON�DN�\DN�DN��DNr�DNS�DN5DM�fDMǮDM��DMZ=DM<)DM
qDL�\DL��DLb�DLC�DL%�DK׮DK��DK��DKMqDK/\DJ�HDJ��DJ��DJXRDJ:=DI��DIp DIR�DI5DI
-DH��DH�)DH��DH�HDH��DHe�DG�=DGn�DGQHDF��DF,�DE��DE��DD��DD� DD�3DD�fDDy�DD]qDD@�DD#�DD
-DC�=DC�qDC�HDC�{DCw�DC[�DC>�DC"�DC�DB�DB�qDB��DB�{DBxRDB[�DB?\DB#3DA��DA3�DA�D@θD at W�D?�HD?=qD>�RD>R�D>7
-D=�D=y�D=D<�D<�D<��D<��D<|)D<��D<�D<�\D<�{D<��D<�fD<��D<��D<�D<��D<��D<l)D<QHD<5�D<�D;�
-D;�)D;p�D:�D:�D:�)D:�HD:�D9�)D9�HD9g
-D8�{D8�=D8��D8y�D8_\D8D{D8U�D8;�D8 �D8fD7�)D7��D7�)D7q�D7HD6��D5��D5�fD5
-D4��D4c3D3�{D3��D3l)D3R�D3�D3\D3fD2��D3'�D3D3H�D3/\D3�D3� D4
�D4p�D4��D4�D4��D55D5�D5HD4�D4ND3� D3G
-D2�D2�D1,�D0�fD0*�D/l)D/)�D.��D.��D.��D.t{D.�D.�D.��D.� D.�
-D.�D.��D.|�D.d{D.K�D-�HD-�\D-�
-D-
�D,�3D, �D,RD+�\D+6fD+
�D*�D*uD*]qD*E�D*-qD)��D)�D)��D)~D)ffD)��D)�
-D)�\D)�\D*�D*@ D*xRD*��D*qHD*��D*��D*y�D*a�D)�=D)�D)R�D):�D(��D(l�D'�D'w�D'�D&�=D&��D&U�D%�D%ٚD%��D%��D%��D%|�D%e�D%O\D%8RD%o\D%XRD%AHD%*=D%3D$��D$��D$�HD$j=D$fD#�\D#��D#��D#��D#nD#W�D#@�D#*=D#�D"� D"��D"7
-D" �D!�D!�HD!j�D!T{D �D �)D �fD � D ��D ��D ��D �3D �qD w
-D aHD�\D�D�3D�qD\)DFfD0�D
�D
�{D
~�D
h�D
�D
�3D
�3D
}qD
g�D
R�D
<�D
�D
��D
׮D
xRD
b�D
MqD
7�D��D��D��D��D��Dn�DY�DD{D�fD�HD��D��DmqD D��D�qD�RD+�DfD�qD��D��DW�DB�D.D�D{D�)D��D\Dj�D2�D
D�fD��D�=D��DMqD9�D%D�qD��D��D�qDU�DA�D-qD�fD�D��D�
-D�3DL)D8RDHD�qDٚD��D��DXRDD{D0�D�=D�fDҏD�)D��DuD>�D+�D�D��D�D�RD�DqHD;�D(RD{D�\D�)D�RD�3Do\D\)DH�D�D �D�qD�RD�D��D~�DJ=D7
-D#�D�D�)D��D׮D�HDnD[�DD
�D
�\D
��D
�=D
�
-D
�{D
`�D
MqD
�RD
��D
��D
~D
k�D
fD
�3D
ФD
�D
i�D
W
-D
ED
2�D
  D

qD
-��D
-��D
-�D
-!HD
-�D	��D	hRD	5�D�3D��D~�D
)D�=D�RD�
-D�D3DHD�\D�qD˅D��D�RDVfDD{D2�D!HD\D�qD�)D�=D��D�
-D��Ds�Db�DP�D?\D-qD
)D˅D��D�RD�
-D��Ds�Db�DQHD@ D.D
�D
�D��D�=D��DI�D�D�D�fD�
-D�fD�D5�D%D�D3D��D�D� D��D�\D~D0 D
�DD�qD�)DۅD�qD|�Dl)D[�DJ=D9�D �)D ۅD ��D �=D �fD ��D �D �{D ��D VfD FfD �C��{C��)C���C�B�C�!HC��C�,�C�
�C��C��=C��=C��=C�h�C�H�C�(�C��C��C�>�C�
qC��qC�ffC�FfC�&fC�fC��C�O\C��C��C�eC�EC�%C�C��C��C��C��C��C�ФC���C���C�p�C��)C���C�b�C�C�C�#�C��C��C��C��fC��fC�g�C�G�C��{C���C�u�C���C���C�C�3C�C��C�|)C�]qC�˅C��C�C��qC�޸C�C�h�C�J=C�+�C��C�}qC��\C��C�3C��C��C��fC��C�=C�k�C�NCC� C�ٚC�K�C쾸C���C�l�C�� C�T{ [...]
-C�'�C�
-=C���C��\C��C��C��C�nC�P�C�HC��3C�
�C��\C���C�{C�C��C��=C��C���C��HC���C�fC��C��qC�� C�U�C�8RC��C��fC�<)C�EC�C�\C�c�C�fC�{C��RC�fC�T{C��C��C�HC��qC�<)C��RC��C�b�C�FfC��C吤C�ffC�=qC�K�C�\C��C��C�^�C�C�C޾�Cޣ�Cއ�C�8RC�
)C�5�C��C�ffC޴{CޘRC��C�  C���C���Cެ�Cޑ�C�AHC�&fCݢ�C݆fC�k�C��C���Cܰ�Cܕ�C�z�C�` C�EC�(�C�C��3C��RC�U�C�:�C���C�j=C�O\C��Cٳ3C٘RC�}qC��)Cد\Cؔ{C�3C���C�޸C���Cת=C׏\C�u�C�Z�C�@ C�&fC�
�C���C��
-CֽqC֢�Cֈ�C�nC�T{C��{Cպ�CաHCՆfC�l�C�S3C��{CԺ�C�nC�T{C�:�C�!HC�fC���C��3Cӹ�C���CӸRC�l�C�S3C���C�XRC�>�Cѐ�C�w
-C�^�C�EC�]qCѦfC��\C���CѽqC�AHC�'�C�z�C���Cσ�C�j=C�Q�C�8RCρHC��=Cϰ�C�+�C���C��C���C�
�C�C�XRC��qC�b�Cη
-C�<)C�Cͪ=C͐�C�ٚC�!HCΚ�C�ECϾ�C�j=C��Cѐ�C�
�C�U�CҠ C�"�C�
-=CюC�� C��C�W
-C�z�C�o\C��
-C�L�C��{C˼)C��C��C�c�C̫�C�#�C�k�Cʹ{C͜)C͂�C��C̐�C��C�� C��C��CǠ CƝqC�@ C�@ C��fC�
-C�w
-C�C�ffC�1�C���C�C�C�nC���C��
-C�'�Cȷ
-C��C�C�j=C�AHC̊=C̡HC̈�C�p�C�(�C˰�C�8RCʐ�C��C�C�C�>�CǙ�C�9�C�9�C��qC�C��C��)C�J=C�P�C�� C��=C�C��
-C�C�` C�,�C���C�#�C��{Cĕ�C���C���C�8RC�!HC�ffC�O\C���C���CĬ�Cĕ�C�"�C�g�CĬ�C�!HC���C�9�C��qC��{C��3C��3C��{C���C�fC�.C��C���C��qC�!HC��{C�t{C���C���C�c�C��
-C���C�u�C��=C��RC��C�,�C�J=C�\C�~�C��C���C�˅C�<)C�~�C�
)C���C��\C�@ C�޸C�P�C��\C�fC��fC��\C��{C��qC�L�C�5�C��C�S3C�\C���C���C�RC�z�C�
�C��C��fC��3C�EC�S3C�b�C���C��\C�l�C�+�C�C�1�C��C���C�k�C�:�C�
�C���C���C�!HC��
-C�� C�<)C�q�C��3C�7
-C�t{C���C���C���C�NC���C�Q�C�� C�HC���C��
-C��C��C��C�ٚC���C�W
-C��C�� C�@ C��{C�h�C��3C�h�C���C�� C�  C��
-C�XRC���C�1�C��{C���C�#�C��)C�}qC�
-C��\C�q�C�
�C��C���C�}qC�h�C���C�\C���C�9�C�&fC��C���C�
)C�c�C��C��fC�xRC�L�C�s3C�J=C�#�C�  C��qC��qC�S3C�8RC�h�C�P�C��C�,�C�eC�\C�O\C��3C���C���C��
-C���C�XRC��3C��\C�  C��C�7
-C�aHC��C��HC�\)C��qC���C�ffC��C���C�U�C��)C�<)C�C�p�C�  C���C�
-=C�EC���C��C�
�C�33C�nC��=C��
-C��C�q�C�^�C�L�C�9�C�&fC�{C��3C��\C��)C�RC�h�C��C��HC�!HC���C�<)C�(�C�c�C�Q�C��3C�:�C��qC��RC��fC��3C�S3C���C�!HC�C��)C�7
-C�%C�` C�L�C�:�C�(�C��C��C���C�� C��C�.C�h�C���C���C�� C�nC��HC��C�  C�P�C�\)C��\C�y�A�F�'�EG274       DA   A0z�16:23:33.75-39:13:47.5 at n��   �C�l�l   �EN@ EQ` ET� EW� EZ� E]� Ea  Ed  Eg@ Ej` Em� Ep� Es� Ev� Ez  E}  E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  Eɐ E�  Ḛ E�@ E�� E�` E�� EԀ E� Eנ E�0 E�� E�P E�� E�p E�  E� E�  E� E�@ E��  [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ F
 F
� ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
I�D�<�D��D�	�D� D�6fD�� D⩚DܦfD�vfD�Y�D�i�D�
�D���D���D���D�
�D�I�D�� D�S3D�i�D��fD��fD�ffD�vfD|ٚDu��Dk��DgQHDa�DZE�DS|)DP��DK�)DC.�D5�HD��D ޸D-mqD-9�D)��D%g
-DθD��D��D'
-D�D
K�DP�C�NC�&fC���C�  C�)C�3C���C���C�#�C�0�C�AHC�
)C�s3C�]qC��C�%C�#�C�3C�&fC�4{C���C���C���C�
�C�4{C�XRC�!HC���C��C���C���C��{C|B�Cvs3Cq�Ca�CO�\CV&fCKCD��CG.CD}qC$��B�ffC�C�HC�C
-�Cp�C^�C'^�C
Y�C5�C%C#\C��C@ CnC&f�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-A�A���A���A�p�A�E�A��PA��A��yA���A��A�n�A��FA��;A��A~�!A|1'A|1A|�uA�-A��A�
-=A~�A}33A{��Ax�Au��Aw�A}XA~Z
A|�Ay�;Ax��Aw�^AuO�As��Ar��Ar��As"�As�;Au�7Awl�Au
ApbNAlI�Ah�`Agx�Aj �Ak�FAh�DAel�Ae�Ae��AlI�As7LAsG�ArAq�;ArbNAt�9AyXA|1'Az��Ay��A~I�A�1'A}�Ax��Ay
-=Ay��Aw��AtE�Ar�\Aq��Aq��Ar
�AqK�An�Al��AmƨAn�Am�FAl�yAo+ArZ
Ap5?AlVAk��AnAohsAp$�Ap�HAp�jAo�FAj��Ae�mAl5?Arv�Asl�As�Ao��Ai��AhVAi�-AkoAl�An�RAp
�Aq�Aq`BAq�mAp5?AnI�Ao%AoƨApI�Ap$�As
�AyO�A}�A|=qAzz�Avn�As"�AtȴAv�A{�AdZA|�Aw�mAu�Au
�At�jAt��AsƨAp�AnbNAq�As�;At��Au`BAv��Ax
JAw7LAux�Ay33A�"�A�Q�A���A���A���A�5?A�t�A��A���A�9XA�O�A}l�A|��A|1'A}p�A�;A�A|��A{7LA{K�A{&�Ay+Av�jAu�mAt�At�9AtȴAv  Awt�Aw�7AvA�Aul�Av1'Av�RAxffAzQ�A{��A}C�A|jAz�HAy
�Aw&�Aw�-Ay"�Az$�Azv�Ay�#Ax� [...]
-=AvbNAs��Av�Ay&�Ax��Aw|�Aw�Av�Au;dAr�Ar1At �Av=qAt��As�-Au��Ax-AuArv�Aql�Aq�Arz�At$�At�ArI�Aq�Au`BAx�/Aw��Av�+Az��A�FA�hA~A�A|v�Az=qAz�A{�hA}�wA;dA��^A�Q�A��uA�"�A���A�A�
�A�FA|�A|^5A~�\AXA~1A}/A}C�A}
�Ay�^Av�Ax�+Az�!Ay��Ax�Ax�HA{�^A|�A{p�A{K�A|ĜA}�hA~��A`BA|1'AyVAu|�Aq��ApbAo|�As\)Az~�A}\)AyG�Au�^Aq��An��Ap��Ar=qAs��AuS�Au��AuVAy;dA��A�-Az��Ay��A�VA� �A�%A���A�bNA���A��\A�?}A�+A���A��mA�z�A�hsA�S�A�$�A33A~�uA�dZA��A~��Az
JAz��A|{A|ffA{��A{��A{�A{`BA{ [...]
-=A}��A}�-A{�Az��Ax�/Aw��A{
�A~z�A}+A{dZA|jA~��A+A
-=A~1'A{�FA{XA}AC�A~-A}XA|E�A{l�A}��A�%A�O�AƨAdZA~ȴA~ffA}S�A}/A~�!A�^AXA~~�A~Z
A}�A|r�Az�!Az�DA{��A}�A�A���A�oA~��A}�A|r�A|�+A|�/A{S�Ay��Ay��Az�yA|ffA}/A&�A��A�5?A|��Aw��Axn�Ayp�Azv�A{�A~ �A�+A�7LA\)A~�A~^5A}oAx�DAu�mAy��A}p�A~�A�9XA��A��\A~bNA{7LAyx�Ax��AxE�Ax$�Ax  Aw�;Aw�wAv�yAv�\Aw�Awl�Ax��Az �Az�A{x�AzjAwAv�A{+A~��A}�mA|�A{O�AzAy33AyVAy��AzffA{/A{�wA|ĜA~�jA�
�A+A~Q�A}?}A{�A|�A}ƨA|�9Azz�Az
�Az�`A{t�A{S�A{/Az �AyO�A{x�A}��A| �Az��AyƨAyl�Ay��A{t�A|=qA [...]
-=A�`BA�x�A�;A�9XA��/A��A��A���A�=qAhsA}��A|��A|�A}x�A�A�1'A�Q�A�v�A��yA�z�A�hsA�XA�  A��`A��A�x�A��`A�p�A���A��A��A���A��A�ƨA��FA�
A���A���A��A���A���A��A���A�bNA�(�A�1'A���A��A���A��A�  A��
-A���A��yA�"�A�/A�
�A~�A}dZA{hsAx��AyoAzVA|
JA~�RA���A��FA���A�ȴA���A�|�A�1A�5?A�"�A���A���A��hA���A��\A�
A���A��A�r�A�9XA��HA�K�A���A�A�Q�A��wA�jA��
-A��A��9A��A�O�A��;A�n�A�~�A��-A�ƨA��/A�(�A�VA��A��HA�O�A�=qA�-A��jA��DA�x�A�hsA��A�%A��
-A�G�A�VA���A��A���A�+A�v�A���A�1'A���A��A���A�+A�
�A�33A�ffA��A��A�(�A��Ax�A~��A~1A|�Az��Ay�FAx5?Aw+Av^5Au�hAt�+Ar�Aq&�Ao�FAq"�As%Au&�AwK�Ay;dA{hsA|�`A~-A~I�A}t�A}�A|��A|�AVA���A�VA���A���A�~�A�(�A��uA��A���A�hsA�"�A�=qA�|�A���A��A���A�I�A��9A��HA���A�bNA�9XA��A��A�A�5?A�ƨA�Z
A��A�9XA���A��A��;A���A���A�
-=A���A���A���A��
-A�hsA��#A�M�A���A�VA�1A���A�`BA��yA�|�A�l�A��RA�ƨA���A�
A��A��HA���A�VA��A�1A���A��mA���A�1A�z�A�jA�x�A�G�A��A�&�A��uA�
�A��DA���A�G�A���A�ĜA�Q�A�
A��A�?}A��A�
�A���A��^A�(�A��RA�G�A��FA�G�A��RA�I�A��^A��A�C�A���A��+A�XA���A��mA�hA}S�A{��Ay�
-AxVAw�7At�yArVAp�HAp�DAqO�As�;Au�AshsAq�^AodZAm�wApz�At(�Ay
-=A~�RA��DA��A���A�&�A���A���A���A��`A�Q�A�x�A���A��A��;A�bA�&�A�=qA��hA��A��`A�jA��A��A�5?A�A�v�A���A��/A�Q�A��`A��FA���A�bA�^5A���A��A�dZA���A��;A�
JA��wA��\A�~�A�+A��FA�dZA�1'A�A��!A�"�A��-A�ƨA�~�A��A��TA���A�G�A��#A�Q�A��`A�O�A�|�A��A���A�O�A���A�O�A��HA��-A�  A�K�A��^A�&�A���A�A�A�1'A�  A�33A�
-=A�|�A�M�A�=qA��DA��RA�dZA��-A���A��A�"�A�9XA��A�A�A�33A�"�A�oA� �A�O�A��A��A�r�A�bNA��!A�
�A�hsA��
-A�ƨA�XA�
-=A��jA��PA���A��yA�7LA�E�A�t�A��A�r�A�bNA�S�A�C�A�33A�"�A�oA���A��A�(�A�XA�
-=A��#A���A�^5A�1'A�ĜA��9A�^5A�ȴA��A�C�A�{A��`A���A�-A���A��A�;dA���A��FA��TA���A�
JA��A�r�A��A�(�A���A��A�VA��A�~�A�{A�%A�33A���A�E�A�S�A���A�S�A�%A���A�%A�{A�C�A�33A�ȴA���A�"�A���A��#A�
-=A��A�(�A���A��PA�`BA���A�jA��HA�v�A�+A��A�I�A�XA���A��A���A�t�A�
JA��A�#A�^A�(�A��A`BAC�A"�A|�A��A|�A��A�A�
-A�^A~�`A}�
-A{hsAx��AwC�At�`As33AqK�Ao��AmXAkVAh�uAe�-Ac�mAa�Aa��Aa�FAa��Aa�A`�uA_��A^�A^��A_"�AaK�AcG�Ad�Afr�Ah1Ai
AkC�An  Ap{Ar��AtĜAvAwC�Aw&�AwC�Aw&�Aw�^Ayp�A{hsA{K�Az�9A{VA{hsA|�yA�
-A��!A���A�
JA���A�t�A~�yA|�!A|VA|�A|��A|  A{�TA|  A|�uA~�A��A��uA�;dA�K�A�;dA��9A��AG�A��A�
�A�ĜA���A�K�A�AhsAK�AhsAK�A�TA�  A�/AƨA��A�
A�bAƨA33AoA~�jA~�A~�jAS�A�mA��Ap�A~�/A~
JA}�-A~�AXA�A�C�A�33A�%A�A��A�FA��A
A}�A}"�A|Q�A{�wA{�;A|r�A|�uA}&�A}G�A}��A}�wA~�A~9XA~
�A}A|�A{�mA|A| �A{��A{p�Az-Ay&�Aw�TAw�Av�+Aw�Aw�Az�DA|��A}�A|��A|-A{��Az�Ax��Ax
JAxbNAx��Az=qA{
-=Ay�PAx�+Av��Au�hAu
At�`Au?}Av1Av��AwhsAw�Aw�;AwAw�;AwƨAwl�Av�/Av{Au�Au��Av5?Av��Aw��AyVAy/Ay�7Ax
JAw?}Aw"�Aw%Av�Av��Aw&�Aw
-=Aw+Ax��Ay�Ax��Ax�Aw��Awl�Ax9XAyC�Ay`BAyC�Ay&�Ax��AxAwt�Av�`Au��Au�At��Au�Au�TAw&�Aw�Ax�+AxjAxM�Aw�wAwhsAwK�Ax�Ax�`Ax��Ax�!AyC�AzbAy��Ay��Ax��Aw�hAvQ�Av�Aw?}Aw\)Aw�Ax��Ax�/AxM�AwVAv1Au�-Au"�Au�FAvI�Au|�Au+AuVAt�AuVAuhsAuAvQ�Av�Av�\Av  Au7LAt�HAu
AuXAu;dAu"�Au%Au&�At��As��Ar�uAq��Aq?}Aq&�AqC�Ar~�AsG�At{At�/AtĜAt��At�DAtr�AtVAt9XAt�uAt�!AuC�AudZAu�^Au+At��At�As�As+Ar-Aq�
-Ar��As33As�Ar��Ar�HArVAr  Aq;dAp�`Ap��Ap�!Aq|�Ar
JAr��AsdZAs�At{As�ArM�AqO�Ap�DApn�ApVAp�`Aq�Ar�yAs|�As��As�AsdZAr��Aq�
-Aq�^ArM�Aq�Ap�DAo�PAm�mAl~�Al-Akl�Al1'Al��Al��Ak�TAln�Am��AnjAn�DAo�An��An�`An �Am��Al��Ak��AkS�Ak7LAjz�Ai�Ah�\Ag��Ag�AgdZAgK�Af�\Ae��AdA�Ag
�AfbNAep�Ad�9Ae%Ae"�Ae
-=Ae&�Ae|�Ae��Af �Af�Agl�Ag��Ah�RAh��Ai+AioAh��Ai�AihsAiO�AiS�AiƨAi��Aj=qAj�!Ak"�Ak&�Ak��AkhsAj�\Ai�FAh�HAhv�AghsAg7LAg�;AhQ�Ah��AjI�Ak��AlE�Al�AlM�Ak�AkC�AjjAj  Ai��Ai/Ah��Aip�Ai�TAj�DAjȴAj��Aj��Aj��Ajn�Aj�Ajv�Aj~�Aj�RAj�+AjVAj$�Ai�AiO�Ai�PAi�hAjAj
JAj~�Aj�Aj��AjĜAj^5Aj-Ai��AiXAh�Ah��Ah�\Ah^5AhbNAh��Ahn�Ag��Af�DAe�^AdbAbjA`�\A^Q�A\�AY�mAX �AV(�AT��AT=qASx�AR�RAR�ARĜAR��AS��AU+AV�uAY/A[��A^{A`(�Ab�Ad^5Ae��Ag+Ah
JAh�9Ai��AjA�AjI�Aj�+Aj�\Aj^5AjbNAj��Aj��Ak�Ak"�Aj�Aj�� [...]
-Ak��Akx�AkG�Aj�/AjA�AjbAi��Aix�AiG�Ai�Ah�yAh�Ai+Ai33Ai
Ai
-=AiG�AiO�Ai�PAi��Aj
JAj�RAj��Aj��Akt�Ak|�AkK�Ak�Aj�yAj�jAj�DAj$�Ai�Ai
�Ah�Ah��Ah�uAhbNAh�Ah�/Ai
�Ai"�Ai+Ah��Ah��AhffAh9XAg��Ag7LAg%Ag|�AgK�AgAg��Ag��Ag�#Ag?}AgVAf=qAe�
-Ae%Ad��Adv�Ac�#Ad�Ad �Ad^5AdffAd�/Ad�`AeXAe`BAe��Ae��Aex�AeG�Ae�Ad�Ad��AdZ
Ad-Ac��AchsAc��Ac�Ac�Ac�Ac��Ad9XAdA�Ad�RAd�+Ad�\Ad��Ad��Ae�Ae
�Ad�jAdĜAd��Ad��Ad�/Ad�`Ad�Ad��AdȴAd��Ad�Ad�`Ad�9Ad��AdȴAd��Ad��Adv�Ad~�AdQ�AdZ
Ad-Ad5?Ad1Ac�#Ac�TAc�^Ac�PAc`BAchsAc;dAbn�Abv�AbI�Ab�+Ab^5Ab1'AbAa�
-Aa��Aa|�AaS�Aa&�A`��A`��A`��A`
JA_�A_�A_S�A_+A_33A_p�A_x�A_�A_A_��A_��A_��A_oA^�yA^�jA^�\A^ffA^1A]�#A]�-A]�A\�A\ȴA\jA\=qA[��A[O�A["�AZĜAZ��AZ��AZ�AZ�yAZ��AZ��A[%A[VAZ�`A[XA[`BA[��A[��A[|�A[S�A[&�AZ��AZ9XAZbAY�-AY�7AY`BAY7LAYVAX�HAX�RAX�\AXffAX=qAX{AX
�AXZ
AXbNAX9XAXbAXM�AX$�AW��AWl�AW��AW�-AW�7AW`BAW7LAWC�AW�AWXAW/AW7LAWVAV�`AW"�AW+AW
AWVAWK�AWS�AW+AWhsAWt�AWK�AV�AVbNAV9XAU�;AUO�AU&�AUdZAU;dAUG�AU
�AT��AT��AU
-=AT�HAT�AT��AU33AU?}AT�`AT�jAT�uAT1AS�;AS�^AS�hAShsASC�AS|�AS�7AS`BAS;dASt�AS�ASXAS33AS
-=AR�!AR$�AR  AQ��AQ
�AP��AP��AP��AP�AP�jAP��APn�API�AP$�AP-AP1AO�;AO�^AO�hAOl�AOG�AO�AO�PAO��AOp�AO�AO�AO`BAO;dAOoAN�ANȴAN��AOVAO�AN�AN��AN��AN~�ANZ
AN5?AN
JAN�ANVAN-AN1AM�TAM�wAM��AMoAL�AL��ALr�AL
�AK�AK��AK�#AK�FAL �AK��AK�
-AK�TAK�wAK��AKp�AKK�AK&�AKdZAK?}AK�AJ�uAJn�AJI�AJ$�AI��AI�AI�7AIdZAI?}AI�AH��AH��AH�!AH�DAHffAHA�AH
�AG��AHAH=qAHI�AH$�AH  AG�;AG�^AG��AGp�AGO�AG+AG%AF�HAF�AG&�AG
AF�HAF�jAF��AF��AF~�AF-AF
JAF{AE�AE��AF1AE�mAE�AE��AE��AE�AEdZAEp�AEK�AE�AE`BAE?}AE�AE&�AE%AE?}AE�AD��AD��AD�!AD�\ADjADI�AD$�AD1'ADbAD�AC��AC�
-AC�-AC�hAC?}AC�AB��AB��AB�+ABffABn�ABM�AB-AB1AB{ABM�AB-AB1AA�mAAƨAAG�AA&�AA%A@�HAA�A@��A@�A@�9A@�uA at rA at QA at -A@
JA@�A at Q�A@^5A@=qA at v�A@~�A@�DA@ĜA@��A@�!A@�\A at jA at I�A@(�A?�#A?�^A?ƨA?��A?�A?`BA?��A?��A?�A?dZA??}A?
�A?+A?
-=A>�jA>��A>z�A>Z
A>
JA=�A=p�A=O�A=
A=VA<�A<��A<�A<�DA<jA<��A<�A<�\A<A�A< �A<  A;�7A;hsA;G�A;&�A;%A:�`A:ȴA:��A;
-=A:�yA:ȴA:�A:�DA:jA:
�A:  A9�;A9�wA9��A9��A9�PA9l�A9x�A9�A9�hA9p�A9|�A9\)A9;dA9
�A8��A8�/A9�A9"�A9
A8�HA8�A8��A9%A8�\A8r�A8$�A81A7�mA7ƨA7��A7�7A7l�A7K�A7+A6�HA6n�A6M�A61'A6bA5�A5��A6
JA6{A6 �A6Z
A6ffA6E�A6~�A6�DA6jA6M�A6-A5�TA5p�A5S�A5
-=A4�yA4��A4�A4�\A4��A4~�A4�9A4��A4��A4�A4�\A4r�A4��A4�DA4jA4M�A41'A3�wA3��A3�
-A3�FA3�A3��A41A3�mA3��A3�A3�PA3p�A3��A3�7A3l�A3x�A3�A3�hA3t�A3��A3�PA3�A2��A2�DA2A�A2$�A21A2{A1��A2-A2bA1�A1��A1dZA1�A0��A1
-=A0�A0��A0�9A0��A0M�A01'A0{A/��A/�7A/l�A/O�A/�A/hsA/K�A/XA/;dA/
�A.�A.�jA.��A.�A.ffA.I�A.-A.bA-�A-�
-A-�^A-��A-�A-dZA-G�A-+A-7LA-�A,��A,�HA,ĜA,�A,ffA+��A+�#A+�wA+��A+�7A+l�A+O�A+�A+�TA+ƨA+��A+�PA+t�A+%A*��A*��A*�DA*n�A*A)�mA*
�A*  A)�TA)��A)�A)�hA)x�A)�A)�FA)�A* �A*A*{A*E�A)�#A)��A)|�A)oA(��A(�DA(n�A(VA(9XA(n�A(Q�A(�+A(�uA(ȴA(�A(�uA(v�A(^5A(A�A($�A(
JA'�A'�
-A'�^A'�A'��A'�^A'��A'33A'�A'O�A'33A'�A'K�A'33A'?}A'"�A'
-=A&�A&��A&�RA&��A&^5A&A�A%�#A%�wA%��A%�7A%�wA%��A%�-A%��A%��A%�A%�TA%��A%�A%��A%|�A%oA$��A$�\A$A#��A#33A"��A"�\A"r�A"
JA!�A!�#A!A!��A!�#A!A!�A!�#A!�wA!��A!?}A �/A Q�A��A
�dA

�A
&A
y�A�MA��A/�A>BA��A~(A֡A�wA_pA$
A~(Ao A�)A4A~�A�AA�A
�RA	��A?}A�AAoiA �h@�8
@���@��
-@�;@��@�b�@���@�$�@��0A��AAC�Al�A
-�VA
��Av�A9�Ax�Au�A��A-�A�?A;dA�[A'RAzxA�AA��A'�A��A�Al�A�2A�Al"A�2AYA$tAU�A=qAn�AV�A?A&�A(A�fA�;A�zA��AOA7LA�A1A�oAخA	�A�A#:A/�A`�A�:A�aA�A�A��A	AGA�A��A��A�
A��A�A�AAj�A.�A��A��AW�A
CA��A�zAF
A.�A�A �A�yA҉A�0A�@A�PA�A�
A�sA�&A�6A��A�AYA$
A
A=�A&�A�KA�PA/A+A�^A��A��Av`A�LA��A�A�*A�:A�VAϫA��A�4A��At�AYA �A�A��AS�A=A&�A��A��A�IA�+A�A��A�rA��A��A��A�kA�XA��A�dA�FA}VAg8AQA:�A%FA(A�rA��A��A�A~�AiDAS�A=�A'�AA�PA�A��A�0A��A�.AzxAd�AOvA9�A$
A�A�	A�A�A��A�nA��AxlA�Ao�AZ�AE9A/�A�A'RAA��A�mA� A��AɆA�9A�VA�A1�A��A_A�A \A
xA9�A$�Au%A_�A��A�<A�XA�	A�AoA��A��AL0A�A�jAd�A
�
A
֡A
~�A
'�A
@A
�]A
��A
�gA
GA
�cA
��A
�A
�MA
  A
-�A
[�A
GEA
2�A

OA
	lA
��A
�vA
��A
u%A
aA
L�A
8
A
�A
͟A
�A
�A
{A
B[A
-�A
:�A
h�A
TaA
�AA
m�A
YKA
E9A
0�A
ںA
�?A
�-A
\)A
HA
u�A
�nA
�\A
��A
ɆA
�fA
�TA
�A
��A
�A
ԕA
�A
�A
��A
��A
o�A
[�A
G�A
-�|A
-�jA
-�7A
-TaA	��A	��A	�$A	�{A	o�A	��A	�7A	u�A	!-A	
�A�$A��Aq�A
�A
-�A7LA$
AbA�"A�yA��A��A/�A
CAɆA��A�{Ap;A\�AJ#A6�A#�A�A�wA��A��A��A�[A��A�KA�
-A�3A�[A�A�DAxlAe�ARTA?}A,�A�A�A�A�A�.A^5AK^A8�A&A�gAArGA_pAMA:�A($AS&A@�Al"AY�AffA��AcA��A��A��AsA`�AN<A��A�A|�A-AݘA˒A�$A�
A�AdZAMAGA �AA �;A �6A ��AA/A
AG�A5�A~�Al�A��A��A��A��A��A֡AĜAu�AD�A ��A �
A X�A (�A �A �@�n/@�@��V@�|
@���@���A �A J#A V�A �oA �qA �
-A �A�A9XA�A�}A�xA��A��A��A��AC-A �A �3A 8�@���@���@�c @��K@�iD@�F
@�#�@� i@��@���@��,@���@���@�l"@���@��I@��@��B@�#�@���@�1@���@�@��'@�%@�l"@�
�@�t�@�RT@���@�!�@��3@�,�@�
-=@���@�Q@�/�@�
@��@��
@�33@���@�dZ@��@�	�@�#:@�u�@�Ɇ@���@���@�c�@���@��@�s�@�Q�@�0U@�
�@��W@��@��T@���@�e�@�Dg@��}@���@��@��8@��s@���@��F@�r�@�Q@�0U@��@���@��d@���@��	@�hs@�G�@�&@�S@��@���@�4@�GE@�&�@��@���@��3@�@��@�a@�@O@��@���@���@�@�I@�C�@�#:@�u@��@���@��@�@�`B@�?}@��@��?@�L@�@�e�@�E�@��)@��6@�q@�~@�l�@�L�@��@��,@�9@�F@�tT@�
�@���@���@��@흲@�F
@�&�@��@��@�\@�p;@��@�h�@�I�@��@���@�Dg@�%F@ꗍ@�xl@�YK@�:*@�	@�j@�K^@��@�{�@�\�@�=q@鯸@�"�@�_�@�@�@索@�)_@�
-=@�X�@秇@�H@�
�@�\�@�@��@�z@�Ov@��a@�8
@��@��@�a@�
�@�A@�d�@�Ft@�($@�
-�@��W@���@㰊@�&�@�	l@”@�c @��@ᇔ@�j@�L�@�Ĝ@�
@��@�l"@�Ov@��@�~(@��X@��@�.I@�|
@���@��
@�@��@��@�ԕ@�@ᙚ@�|
@�^�@�A @�"@�%@��y@�bN@�D�@���@�l�@�O@�ȴ@�B[@݈f@�g8@��T@�^�@�ں@ڋD@ڢ4@�S�@۟V@�
O@�i�@��@�4@�+@�c�@�F�@��'@ܥz@� �@�iD@�~(@�-�@�@َ�@�s@ٽ�@٠�@ٸ�@�i�@ڵ
@���@�Y@���@�F
@�*0@ڦL@ډ�@�m�@�Q�@�5?@ڀ�@�d�@گO@��@��@���@��@ڽ<@ڡb@�
O@�hs@��`@�Ɇ@ح�@ؑ�@�u�@�Z
@�>B@�#:@�_@��@�ϫ@׳�@ט�@�|�@�a@��v@�Ĝ@�@Ցh@�v`@�[W@�ی@�$t@�	l@�RT@՜@ղ�@���@�Ft@���@�rG@׉7@���@�
O@�h�@��@�˒@�J#@�Ɇ@�{�@���@��
@�`B@�E9@��8@�y>@�^5@�C-@�($@�
@�V@�l�@�Q�@�7�@�
�@��@��@�6z@�q@ҝI@҂A@�h
-@�M@�ϫ@ѵt@���@��T@�+k@�tT@ҋD@��,@ҹ$@�
@���@���@Ҳ�@�Ɇ@үO@ҔF@��/@�_�@��@іS@�{J@���@гh@�6�@�
�@�u@υ�@��@ϳ�@ϙ�@��@��z@��j@��3@Ϫ�@ϐ�@�v`@�\)@�B�@Ε�@�|�@� �@��m@�l�@�S&@�8�@��@�%@�L�@͔�@�zx@���@�:*@��@��@��W@���@͹�@͟V@ͅ�@�
�@�a|@��m@��@��9@���@�Xy@��@�j�@�Q�@Ǘ$@���@�Q@���@���@�?@�&�@�l"@�S�@�:*@���@�y�@�
@Ȋr@��@���@�S�@��/@�Ĝ@��@�_@őh@�y�@��@Ď�@�e@���@ÍP@��@�v�@�1'@�e@���@�a@�H�@�0�@���@���@�(�@�l"@ƒ@˜_@�R�@�:�@��Z@�
x@���@��#@�L0@�4n@�xl@�`�@�H�@�1'@���@���@�33@��@�M�@�� [...]
@�}V@�F�@���@�V@��1@��A@�kQ@��r@�[W@��.@���@���@���@��@�M�@��f@�rG@��@���@���@���@���@���@��s@��U@��6@���@���@���@�R�@�<�@��}@���@�"�@���@��b@�5?@��@��	@�IR@��@�H�@��;@�t�@�4�@��b@�
-=@��@��7@���@�1@�GE@�\�@�GE@�1�@���@�1�@�qv@�1�@��@��F@���@�8�@�y>@��\@�y>@�7�@�˒@�_p@��M@�\�@��A@�Z�@���@��@�G�@���@��d@��@�U2@�G�@���@�Z�@���@���@��]@��@�y�@��@�B[@���@�S@���@�
@���@��d@�	@�
~@�YK@�m�@��A@��@�K�@�_p@�K�@�7L@�#�@�(@��@���@�$t@��@�$t@��	@�u�@��#@�ƨ@���@�&@�q
@�Dg@���@��@��d@��B@�8�@��@��!@���@��*@��S@�7@���@��@���@��+@���@��<@���@�u%@��@�g�@�|
@���@�T�@�+@��D@��.@�K�@��_@�
�@�\)@��[@�I�@��k@�8�@�&@�`B@�Mj@���@���@�8�@�%F@�o@���@�c�@��d@�9X@��)@��@��@���@�,=@���@��7@�;�@��@��@��D@�z@�[W@���@��~@� i@���@�=q@���@�
C@�~(@�L�@���@�z�@�ں@�9�@�'�@�:�@��@��@��@���@�GE@�4n@�"h@�Z�@���@���@�g�@�0�@���@�u�@��@�Mj@���@�L0@�M@���@��A@�M�@���@�-w@�ԕ@�W�@� i@�@�rG@���@�N<@�<6@���@���@���@���@��@�e,@�x�@��-@���@��.@��W@�  @���@�E9@���@��D@���@���@��S@�`B@��v@��B@��@��@���@���@�w�@�ff@�Ta@�C-@�
@���@���@�l�@��c@�q
@��@�S�@��
@�
@��=@��"@��@�r�@��)@��/@�5�@��-@�Q�@�c�@�0U@�!@��z@�*0@��!@���@���@�}V@���@���@�A @�v`@�e�@�V@���@�`�@��@�K�@��[@�8�@���@���@��'@��-@�	@�_�@���@��
@�Q@�
O@��@�
�@�u%@��.@��d@�W?@��q@��w@��}@��@��"@�~�@��@��s@�bN@���@���@�IR@�8�@�)_@��@�n/@�c@���@��3@��gA��"

LTT7379     G0   A#�18:36:26.29-44:18:33.0 at qq���> �F'���,`   �EN@ EQ` ET� EW� EZ� E]� Ea  Ed  Eg@ Ej` Em� Ep� Es� Ev� Ez  E}  E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  E�� E�  E�� E�@ E�� E�` E�� E�� E� E�� E�0 E�� E�P E�� E�p E�  Eɐ E�  Ḛ E�@ E�� E�` E�� EԀ E� Eנ E�0 E�� E�P E�� E�p E�  E� E�  E� E�@ [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ F
 F
� F
� ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
P E	NfEnfEɚE�3Ey�E�fE8 Ey�D��3D�S3D�#3D�3D��fD���D�l�D��3D�P D��3D�3D��fD���D���D�� D��3D�3D���D�I�D�ffD�p D˓3D���D���D���D�� D��fD�Y�D��3D�&fD�33D��3D� D�i�D�fD�fDS�D9�Dj��Ds�Dxg
-D��fD��D�)�D���D�<�D���D�� D���D�c3D�i�D��fD�� ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ [...]
-19:54:44.80+00:16:24.6 at r���/�c?с$�/  �EN@ EO@ EP@ EQ@ ER@ ES@ ET@ EU@ EV@ EW@ EX@ EY@ EZ@ E[@ E\@ E]@ E^@ E_@ E`@ Ea@ Eb@ Ec@ Ed@ Ee@ Ef@ Eg@ Eh@ Ei@ Ej@ Ek@ El@ Em@ En@ Eo@ Ep@ Eq@ Er@ Es@ Et@ Eu@ Ev@ Ew@ Ex@ Ey@ Ez@ E{@ E|@ E}@ E~@ E@ E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  [...]
- F
-P F
-� F
-� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F  F P F � F � F! F!P F!� F!� F" F"P F"� ��������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-�H
" H
 H4�H�H[�H_ H H< H� H HB�H� H� H8�H��H.�H`�H݀H=�H� H %�H/_ HE�H]�Hx�H��H���H�� H��H���H̲�H���H�~ H���H՝ H�8 H�C�H���H�( HԪ�Hֳ�H�+�Hӄ�H�' H��H�߀H�ĀH��@Hƴ�H�] H���H‹�H�@H���H��@H�x H�<�H���H�0�H�5 HiO�H��H�P�H�C at H�� H��H��@H���H�g at H�~�H�! H���H�h�H��H��H��@H�m�H�\ H�R�H�� H�@�H�;�H�� H��@H�	�H�h at H�@H�X�H�I at H�[�H�x�HyQ H?�H<4 HsO�H�c�H���H��@H�4�H�?�H�k H}� Hz�Hx��Hv�Hu� Hu- Hs� Hr
 Hpa�Hn Hk�Hf� Hfk�HfF Hd;�Hb6 H`ՀH^s�H]� H]1 HY׀HX� HX� HV�HV�HSӀHQ��H [...]
- H
 H
�H
_�H
B�H߀H�H݀H��H� H
�H4 H HW�Hy H
 H
-��H
2 H
d H
L H
-� H	��H	� H	 H H- H� H� Hy�H� H �G�� G�= G��G�� G�+ G�P G�} G�� G�� G�� G� G�� G� G� G� G�G G� G�, G�j G�� G�� G�� Gţ G�y G�� G� G� G�L G� G� G�� G�� G�� G�m G�x Gу G�� Gή G�2 G�g G�I G�l�G�� G��G�
- G��G�� G��G�� G�( G�i�G�� G�� G�#�G�U�G�2 G��G�q G��G�e G�  G�ހG�
 G�
- G���G�F G�P G� G>} GC� GxU G�
�G�> G���G���G���G�x G�o G�� G���G�
 G�P G��G�J�G���G�M�G���G�| G���G�ԀG�9 G���G�w G�ހG�� G�G�G�J�G�
 G��G�؀G�4 G�� G�� G��G�' G�܀G���G�� G�F G�)�G�+�G�c�G�ÀG�Y G�4�G�w G��G���G�� G|� G|� G|> G�πGs� G�2�Gy� GkQ G�=�G~� Gd Gw� G��G~l GY� Ge G�� G��G�&�G_p GS� Gx� G� G�: G�� Gy( GU� GGg Gm
 G|< GK G}6 Gz� Gp� GeP GL� G+� GC� Gc� Gg� Gc� Gb/ GdQ Gb� Gax G_= G^� G[� GQ� G.� G+ GG� GR� GR� GG� G19 G# G� G � G%� G< G9� G+K G& G*# G,= G'� G)
 G8 G [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-�C�%C��RC��C��)CᇮC��CӰ�C�aHC�EC��qC���C�/\C��\C��fC���C��HC���C���C��3C��=C�aHC�
)C��3Cj��C4�CI�qCeJ=Ck  Ch��Cd�\CVO\CF5�CRO\CN\)CI�3CEJ=C>u�C2�HC/�)C-��C.
-=C+aHC'��C#}qC��B�z�B�p�CO\C��C(�C
�=C��C�\C+�B�ǮB�(�B�u�B�B�B�8RB�L�B�\B�p�B�u�B���B�8RB�#�B��\B�Y�B�aHB��dB�M�B�N�B���B���B���B�AB�dZB��dB� �B�4�BLBh��BV  BZ�'BNy�Bb�7Bn�B~\Bx�Bo�B}
PBh�?Be�+���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-A��wA���A��PA�`BA��A��TA��
-A��!A���A��7A��A�dZA��
-A��A�x�A��A�"�A�(�A�x�A�`BA��;A���A�
�A���A�XA�?}A��#A���A��9A�1'A��A�?}A��RA�VA��+A�K�A�5?A�?}A��^A��A��A��A��;A�ƨA��A��uA���A���A��^A���A��A���A�1A�ȴA�S�A���A�n�A��A�ffA�(�A�?}A�=qA���A�1'A�x�A��
-A��A��^A��A���A�1A�%A�%A���A���A���A�Z
A��FA�9XA��A�5?A��A���A�
�A��hA�A���A��A�hsA�XA�G�A�;dA�-A��A�~�A�  A��A���A��A�bA�1A��PA�^5A�Z
A�
�A�l�A��A�G�A�VA��-A��7A��
-A�K�A���A���A���A���A�
�A�ffA�ȴA�{A���A�n�A��!A�&�A�~�A�  A�
A��HA�S�A�Q�A�oA��A��HA�;dA��wA��A���A���A��hA���A��wA���A���A��PA�VA�"�A�jA�A���A�jA��/A�(�A�A�A�9XA� �A�ȴA���A��PA��yA�|�A��A��A���A�A�A��DA�r�A�XA�?}A�z�A��uA��mA��\A�v�A��RA���A��A�VA�{A�VA��!A�;dA���A���A�O�A���A��uA�z�A�A�A�VA��A�v�A���A�ƨA�I�A�1'A��A��PA�M�A���A�ƨA�$�A���A��A��7A��+A�7LA�n�A�VA�ĜA��uA��A�M�A��A�1'A��;A�M�A��mA�\)A�Z
A��TA�C�A�Q�A���A�%A�ĜA��A�33A��uA�7LA��9A�|�A�/A��A���A��A [...]
-A�C�A���A���A��\A���A�z�A��A�hsA�1'A��A���A��DA���A��FA�A�A���A��7A���A���A�~�A�ffA���A�5?A�=qA�G�A�/A��A�z�A�1A��A�  A���A��RA�~�A���A��HA��jA���A�ȴA�+A�v�A�ȴA��A�M�A�5?A�
�A�%A�ffA��A��A�M�A��jA�
�A���A�%A�1A�VA�
A�
�A��PA���A�^5A��wA��FA�bA�n�A��`A��mA�p�A�K�A�x�A���A���A���A�&�A�
JA�XA���A��PA�oA���A�l�A�|�A�ȴA���A���A��`A�jA��A�ƨA��
-A��A�5?A�
JA���A�
�A���A���A��A���A�;dA��jA�A���A�1'A��wA�%A�+A�|�A�r�A��jA�-A��A�M�A���A�
�A��\A��A��A�5?A�1'A�1'A�A�A��A�
�A�
�A��A��+A��RA�{A��+A��A��
-A��\A�dZA��
-A�I�A���A�1A�z�A�ƨA�K�A��A�1'A��hA���A�
A��
-A��A�
JA�
�A�C�A�
�A���A�t�A��wA��hA��\A�v�A��
-A��A��+A��TA�z�A�x�A��
-A���A��jA�~�A��A��A�(�A��A�VA�
-=A��hA�z�A�bNA�K�A�5?A���A�
�A��uA���A�ffA�7LA� �A�1'A��A�A�ƨA�9XA� �A�
-=A�jA���A�Q�A�;dA�$�A�n�A��TA���A�+A�z�A��A�5?A�E�A���A��A�A���A�VA���A��hA�z�A�dZA��/A�/A�bA��A�l�A�XA�G�A�C�A��^A�=qA���A���A��TA�jA�ffA�bNA��A��A��#A�1A�~�A�-A���A�$�A�VA���A�=qA��A���A��A�jA��#A�ĜA�$�A��+A�p�A�Z
A�jA���A�/A�33A�
�A�%A�
-=A�;dA��A�^5A���A���A�dZA�M�A�7LA�;dA�A�A�7LA��#A�K�A�5?A���A���A���A���A�5?A�{A���A���A��7A� �A�hsA�/A�r�A��A��\A��
-A��7A��HA��A�oA���A�%A��A��A���A���A��hA�z�A��mA���A��RA���A�%A��A�~�A��yA�-A��A�  A�l�A��-A��A�
�A�+A��9A��A�XA��A�VA�A�(�A��RA���A��!A��A���A�bA�"�A��FA���A�%A�ĜA��A�jA�S�A�=qA�O�A�7LA���A��DA�I�A�1'A��A�A�n�A�-A���A��/A�r�A�\)A���A��A�jA�  A�;dA���A�1'A���A�&�A��FA���A��7A�p�A�Z
A�C�A��!A��A��#A�jA�M�A�\)A�l�A���A�bA�x�A�bNA���A��7A�K�A�VA���A��A�
A��hA���A�A��uA�|�A�ffA���A��hA�z�A�
-=A�p�A�Z
A�l�A���A��jA���A��\A�x�A��TA���A��PA�v�A�`BA���A���A�`BA�-A�t�A���A�E�A���A�Z
A�l�A�-A�?}A���A�9XA� �A��-A�
�A��#A�n�A�-A�?}A���A�;dA�O�A�VA�v�A��FA� �A��;A�p�A��A��A�  A���A��A��A�  A���A��A�l�A���A��^A���A��DA�t�A�\)A�E�A�-A��A�  A�ffA�M�A��DA�r�A�\)A�E�A�/A��A�S�A�=qA���A��mA�(�A���A��
-A���A���A�;dA���A��FA�v�A��7A�n�A�~�A�oA�z�A�dZA���A��RA���A��DA�t�A�^5A�G�A��A��A�A�jA�S�A�hsA���A�9XA�"�A�
JA�v�A�`BA�I�A�33A���A�A��A�1'A���A��+A��A��A�C�A��+A�p�A��A��A�Q�A�=qA�&�A�bA���A�
-=A�p�A�Z
A�n�A��
-A�?}A���A��`A���A��\A�x�A�bNA�v�A��9A���A��+A���A��A�E�A��#A�ĜA�
A��A�  A���A�VA�{A�XA�ĜA��9A���A��TA�r�A��#A�A�A�+A�
�A�bNA���A��uA���A�
JA�r�A��
-A�A��
-A�;dA�O�A��PA���A�1A�K�A��TA���A��RA�z�A�n�A�1'A���A��DA�v�A��#A�ƨA�+A��A��!A��\A�
�A�  A�
JA���A�A��A��A�n�A�/A�t�A�A��A�VA��mA���A��jA���A��A�XA���A�VA�r�A�A��DA���A�-A��A�
A�n�A�XA���A���A��A��A�ȴA��DA�t�A��TA�I�A�5?A�ĜA�VA�;dA���A�5?A�
�A�
-=A���A�=qA���A�l�A�x�A��+A�r�A�\)A�G�A�1'A�E�A�-A��A�  A�n�A��#A���A�
-=A�O�A��wA���A�bA���A��A�{A�|�A�hsA�Q�A���A���A��A��+A�p�A�33A�
�A�1A�x�A�dZA�M�A��9A���A��9A��A�`BA�K�A�7LA�"�A��-A��A���A�bA�v�A��`A�+A���A�
-=A�Q�A�=qA��A���A�
-=A���A��HA�E�A�1'A���A��A�bA���A��/A�ȴA�9XA���A��A�dZA��
-A���A�VA���A��`A�I�A��
-A� �A�
JA��A��A��RA���A��hA�|�A�hsA��A�VA�C�A���A�33A�
�A�
-=A���A��A��mA�K�A�
A��HA���A�33A�A���A�oA���A���A��A�n�A�1'A�
�A�1A�z�A�=qA��!A��A�S�A�+A�(�A��A�
A�dZA�ƨA��-A�=qA�(�A��PA��A�|�A�1A���A�r�A��+A�ĜA��!A���A��!A�{A�  A�ffA�Q�A�ffA�Q�A��A��!A��A��A��A�S�A�?}A��!A���A��7A��A��#A�?}A���A�5?A�I�A��!A� �A��TA���A��^A���A��jA���A�jA�VA�A�A���A�7LA�"�A��-A���A�A��A��/A�ȴA�/A�ȴA��DA���A�E�A��RA�+A��A�bNA�ƨA�S�A��TA�G�A�33A���A��+A�r�A�^5A�I�A�7LA�"�A�VA�"�A�`BA���A��7A�t�A�bA��A�n�A���A�oA���A��yA��
-A�p�A�^5A�I�A��+A�ĜA�`BA�K�A��7A��A��-A�M�A��yA��A�p�A�O�A��9A�C�A���A��mA���A���A��A���A��A�
�A��hA�-A��A�VA�l�A���A���A�1A���A�?}A��9A�
A��A��#A��A�z�A�1A�E�A�Z
A�
�A��^A���A��uA���A�5?A� �A�VA���A��mA���A�I�A���A�
JA���A��`A���A��A�A��
-A�A��7A�&�A�A��A�;dA�v�A��-A��A�
A�ȴA�ffA�S�A��\A��A�|�A��HA��TA���A��A�A���A�dZA���A��PA���A��FA���A��hA���A��TA�p�A�
JA���A���A��A���A��A�jA�1A��A�~�A��TA�p�A���A�A�  A�;dA���A��\A��-A�O�A��A��#A��A�A���A�ffA�A��A��;A��A�1A���A��TA���A��`A�p�A���A���A�7LA�$�A�oA���A���A�;dA��-A�Q�A��PA�z�A�hsA���A��hA��A��uA�Z
A�G�A�5?A�I�A��A���A��A�M�A�;dA�(�A��A��9A��A�z�A��\A���A��RA���A��uA��A� �A���A�VA���A��yA�`BA�  A��A�(�A��PA�ȴA�A��A��;A�1'A���A���A���A���A�^5A�A���A� [...]
-=A��A� �A�VA��A���A��7A�ƨA�
A�dZA���A�A�A�A�/A���A��jA���A��`A�"�A�bA���A���A�;dA�(�A���A��\A��A�|�A���A�G�A���A���A��mA��+A���A�O�A�z�A���A�I�A�7LA�33A�n�A�^5A�K�A�9XA���A��7A�x�A�ffA�S�A�|�A���A��A���A��!A��PA�hsA�E�A�n�A���A��yA�Q�A�/A�~�A�\)A�7LA�bNA�=qA�hsA�E�A���A��!A�?}A�
�A���A��
-A��9A��/A�1A�
-=A��A�^5A�;dA��A���A��A��A��A�oA��A���A���A���A���A�M�A�v�A�ƨA�=qA��PA�jA��uA�r�A���A�x�A�ȴA���A��A��A��DA�hsA�E�A�$�A�
A��;A�
-=A�VA�7LA�bNA��DA��/A�%A�1'A��A��A���A��#A��RA���A�  A��hA�n�A�M�A�+A�1A��mA�bA�bNA��A�+A���A�A�A�l�A�I�A�M�A�+A�1A��mA�ĜA�z�A�
JA���A�1A���A�-A�M�A��HA���A�-A�A�VA�bA��A���A���A���A�&�A�%A�S�A�33A�oA��A�bNA���A�hsA���A��/A�t�A��`A�ƨA�^5A�=qA�ffA�jA��uA�t�A�S�A�|�A�^5A�=qA�ffA��9A��/A�+A�S�A�~�A�^5A�=qA���A��FA��;A��wA���A��A��A�?}A� �A�  A��HA��`A�ƨA���A��+A�C�A�$�A��jA�S�A�5?A��A���A��A��RA���A�A���A���A���A���A�$�A�%A��mA�bA��A���A�
�A�  A��HA�A���A��A�ffA [...]
-A��RA���A�|�A���A��+A�hsA�I�A�+A�VA��A���A��-A�  A�(�A�t�A���A�ȴA�{A���A��A��^A��TA�ĜA���A���A��-A��RA�/A�33A��A��A� �A�
A�1A��A��A���A��A��^A���A���A���A��7A��\A�r�A�S�A�Z
A�=qA�A�A�$�A�+A�
JA��A���A��
-A�$�A�%A��yA��A���A�I�A�-A�bA��A���A��RA���A�~�A�`BA�C�A�&�A�
-=A��A��DA�n�A���A��TA�ĜA��A���A���A�E�A�(�A�Q�A�5?A�^5A�A�A��;A�|�A�`BA��#A�z�A��A���A�x�A�\)A���A��HA�ĜA�dZA�G�A�-A�bA�9XA�
�A�E�A�(�A�r�A�XA�;dA�dZA�G�A�-A�S�A���A��A�hsA�K�A�t�A�XA�=qA�dZA��!A��uA�x�A���A��A�jA�M�A��A�l�A�VA��A��
-A��jA��`A�/A�oA�;dA� �A�A��yA��DA�p�A���A�|�A�bNA��7A�n�A��RA���A�ƨA��A��A�
�A�E�A��mA���A��!A�Q�A��A���A��HA��mA���A��A��A��wA���A��7A�n�A���A�|�A�bNA��A��hA�v�A�\)A�A�A�&�A�
JA��PA�r�A�XA���A��TA��+A�K�A�1'A��A���A��TA��+A�n�A�S�A�;dA�bNA�G�A��\A�v�A���A��`A���A��-A���A�~�A�A��yA���A��FA���A��`A���A��-A��A���A���A���A��9A���A��TA�ȴA��!A���A�|�A�dZA��yA���A�v�A�\)A�C�A�+A�oA�9XA� �A�ffA��PA�t�A���A��A��DA�r�A�XA�?}A�ffA�M�A�5?A��#A�A��7A�p�A��A�  A��mA���A���A��/A�ĜA�� [...]
-A���A��+A�n�A�VA�=qA�&�A�VA�{A�;dA�"�A�
JA��A��A�
A��yA���A�z�A�dZA�K�A���A��/A�A��A�oA�9XA� �A�ffA�O�A�t�A�^5A��A�l�A�S�A�=qA�$�A�VA��RA���A�I�A�33A��/A�ƨA��A���A��wA���A���A��9A���A��+A��A���A�~�A�ffA�O�A�9XA� �A�
-=A��A���A��TA�
-=A��FA�~�A�hsA�Q�A�;dA�"�A�
JA�Q�A�v�A��jA���A��PA�v�A���A��+A�n�A��A�A��A�|�A�ffA�oA��A��A��A�mA�^A�PA�
JA�A�wA�hAdZA7LA
-=A~�/A~�!A~��A~��A�A~�At�AG�A�A~�A~��A~�uA~�HA~�9A~�+A~Z
A~��A~A}`BA}33A}%A|�A|�A|�A|VA|��A|�A|��A}G�A}�hA}�;A~ffA~�!A~��AVA~��A~v�A~M�A}��A}|�A|�A|5?A{��A{+A{
Az��Az�Az~�AzQ�Az(�Ay��AzI�Az
�Ay�AzAzM�Az �Ay��Ay��Ay��Ayt�AyK�Ay
�Ax��AxȴAx(�AwƨAw��Av��Av��Av��Av�AvĜAwK�Aw��Aw�;Aw�Ax9XAxbAxZ
Ax1'Aw�hAwdZAvȴAv��Av�`Av�jAv�uAvjAv=qAv�+Av^5Av5?Au��Aul�AuC�Au�At�AtQ�At(�AsƨAs��Ast�AsK�As\)As��As|�AsS�As&�Ar��Ar��Ar�Ar�ArZ
Ar��Arz�Ar��Ar��Ar�Ar�ArZ
Ar1'Ar1Aq�;Aq�FAq� [...]
-=AoO�Ao��Aop�Ao�Ao��Ao��Ao�AoAo��Aot�AoK�An�9An�DAnbNAn=qAn{Am�AmƨAn
JAm�mAm�wAn1Am�;Am�FAm�hAmhsAm?}Am�Al�Al��Al��Al�9Al�DAlffAl=qAl�Ak�^Ak�hAkl�AkC�Ak
�Aj��AjbNAj9XAj{Ai�AiƨAi��Aix�AiS�Ai+Ai%Ahr�AhI�Ah$�Ah  Ag�
-Ah �Ag��AhA�AhQ�Ah��Ahr�AhM�Ah(�Ahn�AhI�Ah �Ag��Ag�
-Ag�-Ag�7Af��Af��Af�Af�Ae�Ae��Ae��Ae�Ae\)Ae��Ae�AeƨAe��Ae�mAeAe��Aex�AeO�Ae+Ae;dAe�Ae`BAe7LAeoAe\)Ae7LAeoAd~�AdZ
Ad5?AdbAc�AcƨAc��Ac|�AcXAc33AcVAcS�Ac/Ac
-=Ac�7AcdZAc?}Ac�Ab��Ab��Ab�Ab�+AbbNAb=qAb�Aa�Aa��Aa�Aa�7AadZA`��A`z�A`Z
A`5?A`�!A`�DA`ffA`A�A` �A`ffA_�
-A_�-A_�hA_l�A_G�A_"�A_
A^�/A^�RA^��A^�A_"�A^��A_x�A_S�A_/A_VA^�yA^ĜA^��A^~�A^Z
A^9XA]x�A]S�A]33A]VA]�7A]dZA]��A]�A]��A]��A^ �A^  A]�#A]�^A]��A\��A\�9A\(�A[��A[|�A[XA[7LA[oAZ�AZ��A[oA[XA[��A[�A[�7A[hsA[C�AZ�+AZ  AYt�AX�RAX1'AW��AW�7AV��AVE�AU�PAU
-=AT�ATbNAS��AS�7AShsASG�AS&�AS
ASx�ASXAS7LAS�AR��AR��AR�9AR-AQ�#AQ�^AQ7LAQ�AP��APr�APQ�AP1'APbAO�AO��AO�-AO�AP5?AP{AP�+APȴAQ
-=AQ�AQ\)AQ;dAQ�AQ`BAQ?}AQ�-AQ�hAQp�AQ�-AQ�hAQp�AQ�FAQ��AQt�AQS�AQƨAQ��AQ�AQ��AQ��AQ�7AQ��AQ��AR
�AR  AQ�;AQ�wAR  ARA�AR �AR5?AR{AQ�AQ��AQ�AP��AP�/APZ
AP=qAP
�AO��AO�#AO�^AO��AO|�AO�wAO��AO|�AO`BAO��AO�AO�hAO��AO�FAO��AOt�AOS�AO7LAO�AN�uAN�AN�RAN��ANz�ANZ
AN9XAM�7AM
-=AL�+ALjALI�AK��AL
JAK�AK��AK�AK�hAK��AK�-AK��AK�
-AK�FAK��AKx�AK�7AK��AK�AK�PAKp�AKO�AK33AKoAJ��AJ��AK�AJ��AK7LAK�AK+AKl�AKK�AK/AKVAJ�AJ��AKoAJ��AJ�AJZ
AJ9XAI�PAIp�AIO�AH��AH�9AH��AHz�AH�RAH��AH~�AH�\AH��AH�!AH�uAHv�AG��AG�AG�AG��AG�-AG�hAGt�AGXAG;dAG�AF��AF�HAFĜAF��AF�+AFjAFM�AF-AFbAE�AE�
-AE�^AE��AE|�AE`BAEC�AE&�AE
-=AD�AD��AD�!AD�uADv�ADZ
AD=qAD �ADAC�mAC��AC�#AC�wAC��AC�ACdZACG�AC+ACVAB�AB��AB�RAB��AB~�ABbNABE�AB(�AB�AB��AB�RAB{AA��AA�#AAdZAAG�A@��A@�A at jA at M�A?�
-A?�^A?��A?�#A?�wA?��A@bA at MA at 1'A@��A@�A at ffA@I�A?��A?/A>�RA>n�A>VA=�;A=A>  A=�TA=��A>5?A>r�A>VA>��A>��A>�DA>n�A>Q�A>5?A>
�A>  A=�TA=ƨA=�A=�hA=��A=�-A=��A=|�A=�^A=��A=�A=VA<�A<�A<bNA<I�A<-A<bA<M�A<5?A<�A<  A;�TA;p�A;S�A;7LA;t�A;\)A;?}A;&�A;
-=A:�A:��A:�RA:��A:�A:jA9��A9�#A9A9"�A9%A8�A8��A8�RA9"�A9%A8�A8��A9VA8�A8�A8��A8M�A81'A7?}A6M�A5\)A4�A3��A3;dA2��A3
-=A2�A3+A3�TA4 �A4Z
A4��A4��A57LA5��A5�#A6A�A6~�A7;dA7��A8�DA9K�A9�;A:I�A:�+A:�A:Q�A9�;A9C�A8$�A6�A5�A4��A3�FA3
�A2^5A2E�A1�
-A1�wA1��A21'A2n�A2~�A2�RA2��A2�A2��A3&�A2�\A2v�A2^5A2E�A2(�A2�\A2v�A2^5A2��A2~�A2�jA3
�A3%A2�A3&�A3VA2��A2�/A2n�A1�
-A1l�A1S�A0�`A0��A0�9A0�A0�A1oA1t�A1�-A1�A1��A29XA2 �A21A2A�A2(�A2bA1��A1�;A1ƨA1XA1?}A0�A0=qA/��A/�^A/&�A/VA.��A.�/A.ĜA.�A.�uA.z�A.bNA.I�A.�A.��A.~�A.ffA.M�A.5?A.
�A.A-�A-��A-�^A-��A-�;A.�A.  A.bNA.I�A.�A.n�A.A-�A-��A-hsA-&�A-VA,��A,�\A,v�A,^5A+��A+�;A+ƨA+7LA+
�A+%A*�A*�A*��A+"�A+
-=A*�A*�A*ĜA*�A*�uA*~�A*ffA*M�A*5?A* �A*1A)�A)�#A)A)��A)�A)%A(�A(��A(��A(��A(�uA(�A(�A(ĜA(�A(��A(1A'�A'�#A'A'�A(
JA'�A'hsA'O�A&�yA&��A&n�A&Z
A&A�A&-A&{A&  A%�mA%��A%�^A%��A%�PA%x�A$�A&5?A&
�A&-A&�A&  A%�A%��A%�wA%��A%�hA%|�A%�PA%t�A%`BA%G�A%33A%�A%%A$�A$�A$ĜA$�A$��A$~�A$jA$z�A$ffA$M�A$9XA$ �A$
JA#��A#�;A#��A#�-A#��A#�7A#p�A#\)A#G�A#/A#�A#%A"�A"�A"ĜA"�A"��A"Z
A"E�A"1'A"�A"A!�A!�#A!A!�A!��A!�A!l�A!XA!C�A!+A �A �/A ĜA �!A ��A �+A r�A Z
A!��A!�A!"�A!VA �+A r [...]
-�Ac�AOvA��Ao�A[�A��A�KA�9AU2AA�A-wAeASA]�AI�A~(AjAVAA�A-�AѷA�A��A*0A�AuA��A�#A�Al"AXyAD�A��A�9AA�OA��A��AtTAaA�FA�A�9A
xA��A�A+A�A��AݘA��AoiA[�AH�A4�AhsA�A�MAߤA@A��A�WAخA~�A �A��AMA9�A��Ac�A
A��A�'A��A�A�A�jA4A��A�
A�EAcAl�A{A��A��A/A
CA��A��A}VA&AXAE9A2�AB[AtTA�LA�uA��A�gA_A��A&�A{AiDAV�AC�A1'Ac�AQA>BA+�A�,A��A�OA�xA��A�jA��A�$A��ArGA_�A [...]
�CA
XyA
%�A
�NA
|�A
kQA
Y�A
HA
�[A
�A
n/A
	A
-��A
-��A
-��A
-sA
-a�A
-PHA
-��A
-�\A
-~(A
-l�A
-[WA
-�DA
-�0A

�A
<6A
l�A
��A
��A

OA
-�A
^5A
��A
��A
�BA
��A
��A
�{A
�9A
��A
�,A&�A�A
��A
�PA
�+A
?A
�fA
-��A	ݘA�yAW�AffA�FAFtA5�AD�AA!-A	2aA
-�
A
�jA
9XAu�AdZA��A�MA
��A
�A
�8A
B[A
-�PA	�A	�+A	u�A	A��A�A��A?}A�cA��Al�A\)A
xA:�Ai�AYKA�XA�sAƨA��A��A�A�A��A��A�[A��AϫA�HA�}A��A��A�jA��A��A�	Ay>Ah�A�RA��A�
-A%AVAE9A4nA#�A�AuA�A��AbA��A��A>�A�cA?A��AA�A��A�A�uA�'A�oA
�A-�A\�AL0A;�A͟A~�A0UA��Au%Ae,AT�A�A��A��A��A��A��AA�A1�A!�AA?�Am�A��A��A��A��A�$Aj�A<6A�cA�jA� AC�A�EA�DA{JAk�A\)AL�A<�A-A
~A
�A �]A ��A �;A
�A �"A*0Au�A�vA�A
A
�A:�A+kA�A
�A�PA��A�/A͟A�A
-=A��A�
A�A	A6�A�{A�5A;�A��A3�AbNA�!Aa�A2aA�A9�A�}ASA\�A xl@��@@��@��a@���@���@�ƨ@�2a@�@���@�bN@���@��x@�~�@��f@�j@��a@�W�@�'�@��@�
@�oi@�S@�2�@�{@�~�@��y@��.@��@���@�H�@�+@�[�@��K@�4@��@��	@�+k@�
�@��A@���@��F@�H@�*�@�
@��@�H@���@��j@��@��@�u%@�c@�a�@��0@��@��@��3@��o@�V�@�@�I�@��@�Y@��H@��@���@��@�33@�e@� �@��@��@���@� �@��@�~(@���@�K�@�@���@�S@���@���@��@���@���@���@��r@���@��@�.I@�h
-@��Q@�Mj@�1�@��@��	@�4n@��@�P@�qv@�U�@�9�@�
�@�rG@�Vm@�:�@�
�@��@���@�\�@��N@�F@�	�@�]d@��y@�=@�:@�
O@�u@�V�@�@��@�@�x@�
@�)�@�V@��/@���@�%F@�x@��@���@禵@�@�M@��D@�M@蟾@軙@�|
@��@��@�>B@��@�v�@�[�@�� @�IR@�.I@�n�@��@�^�@�
�@慈@��]@�w2@�&�@䠐@�7@�  @���@�˒@�[@�$@��>@��@�!@�:�@�@�q�@�W�@�=q@䎊@�tT@�Z
@�iD@�}@�)�@�o�@�o@��
@�F
@�,�@ުe@�[�@�B[@���@�:*@�
�@�6�@ك{@��@؅�@�l�@׻0@�=@�&�@�o@�1�@�7@ӝ�@�S�@��N@Ԁ�@���@կ�@�.�@�{�@���@�G�@ה�@�M@���@�I�@ٖS@��2@�7�@݊�@��v@�7�@�S�@��@�� [...]
-�@�Z�@���@� \@�5?@�~�@ܕ@�x�@��8@�ߤ@�,=@�@@��
@ֲ�@�8�@�,�@�Vm@�H�@�<6@�a|@�X@���@���@Ƀ{@��@Ǭq@�	l@��|@��]@�RT@ȅ�@�͟@ɤ@@�L0@�$t@˜�@��@�/�@��@��@��@�c�@�M@̕�@�ߤ@��	@�B�@�+�@̃�@�
J@˕�@��c@�e@�@�p;@ǜ�@���@ƅ�@�oi@�YK@Ơ�@��@�^�@�H�@�1�@ƾ@Ž�@ľ�@��o@��Q@�9�@�$t@Ø�@��j@�%�@Ě@ă�@�m�@�Xy@�B[@ĉ�@��@�E9@���@�_�@�4@�
�@��@�d�@��A@�}�@�9�@��?@�A�V4�G�HR7950      A1V  @q�20:47:40.55-09:29:44.7 at s~�
�@��"�����  �EN@ EO@ EP@ EQ@ ER@ ES@ ET@ EU@ EV@ EW@ EX@ EY@ EZ@ E[@ E\@ E]@ E^@ E_@ E`@ Ea@ Eb@ Ec@ Ed@ Ee@ Ef@ Eg@ Eh@ Ei@ Ej@ Ek@ El@ Em@ En@ Eo@ Ep@ Eq@ Er@ Es@ Et@ Eu@ Ev@ Ew@ Ex@ Ey@ Ez@ E{@ E|@ E}@ E~@ E@ E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� E�  E�� [...]
- F
-P F
-� F
-� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F  F P F � F � F! F!P F!� F!� F" F"P ������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-�I���I���I��`I�V�I�D J B`I���J�@J
R�I�~�I�#�JW0J �J��I�`Iׯ�J�pJ%� J(��J'� J$��J�pI�z�I‘`JAJM�J�pJ� J�pJ�`JĠJ��J�@J6�J
��J|�J �pI�s�I�t Iܡ@I� J ��J ��J ��J  �I�� I���I�� I�I�I I� I���I��I�C I�#�I�
 I��I�W�I�'�I�o at I�U�I�t�I՜`I�͠I��@I��@I��IȌ�IÔ�I�� I�D`I�<�I��`I�	�I���I�� I�Z�I���I�l�I��`I���I�k I��I� @I�`�I�G�I�1�I� I�*@I���I���I���I�+�I���I�!@I�0�I�[�I�ؠI�� I��I�D�I�v�I� I���I�r�I�-�I�@I�{@I�?�I���I�U I���I��`I��@I�> I���I�r�I�r at I�R�I�@I��`I~9 at I|Q�Iy��Iwo�It� Ir [...]
�IL��IK�IHנIE�`ID IDw IC��IB@I?��I<� I;��I8
�I5֠I6l I6 �I4��I3� I2
 I2
`I1'�I/M�I-��I+�@I*��I)0�I'��I%�I��I
#`H�{�I
� I
l`IJ�I�`I
�I
u I
h�I
� I� I��I��IJ�IK�I�I��I��I��I' H�ɀH��@I u IC at I	�I	"@I	B�I� I�I%@Ii�I��I�@I �IK I ��I  H���H���H�T H�l H�e H�V at H�f H�@H��@H�
 H� H�n H��@H���H���H��H� H���H��H��@H�7 at H�� Hڅ@H�1 at Hy at H֏�H���H�/�H���H2 Hg��Hm<�H�� H�/�H�� H���H�{�H�z H�y�H�@H���H�'�H� �H��@H�`@H�� H���H�Q at H��@H�*@H� H���H�H�H� H���H��@H�r H��@H�>@H��H�� H��@H�`�H���H�@�H�1�H�r�H���H�6�H�y�H�P�H�h H�� H�3 at H���H�'�H�j at H�e H��@H��H�� H��@H�r�H���H�- at H+ at H�~ H���H�� H��@H��@H�� [...]
�H��@H��@Hd H�� H�
�H�� HU H|� HzP Hm
�HF� H=L H_H Hm
 Hn�Hb� HJ� H:G�H1� H9�H>>�HWK HQL HBN�H== HA,�HD� H>��H at I H.ƀH H�H6� H?� HE��HGl�HJD HL8 HN.�HTn�HV��HTȀHP� HL��HNG�HM��HL� HP HN HN�HN=�HM� HL&�HL��HM�HJ� HJF�HH��HFh�HA� H<�H$� HZ H*� H8[ H>%�H@��H@� H?؀HD�HAz H at U�H>%�H;� H:3�H=� H:� H8��H7c�H3Q H1� H/�H,��H-� ������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-fFffF��F��F
 F�fF�fFfF��F�3F��F�3F�fF� F�3F)3FZ�Fi�FU3F@fF, F�fFT F� F�F�fFT�F��F3F& F�fFRfF� F� F� FXfF fF�3FQ�F��FŚF� F�fF� F�fF
fF<fF F�fF��F�3F�F
-�F� FfFJ F6�F#3F F
� F
�3F
r F
^�F
�F
��F
��F
dfF
-��F
-Y3F	��F	��F	~�F	l F	�fF	�fF	u3F	bfF	3F��F�fFךF�3F��F�fF� F{�F�3F��FDfF2 F� F	.�F	�fF
-N�F
-�fF
 F
=3F
l F
� F
�3F
fF
�F
W�F
�fF
�3F
J F
�fF
~ F
��F
�fF
�F
l�F
� F
�3F
vfF
�F
-K�F	v F� F�F�fF
-�F��F�3F��FfFP F}�F˚F��Fg�Fu�F�fF� F	 fF	fF	<�F	k3F	y�F	� F	��F	�fF
-T�FC3F3F
� F
�fF
P�F
�fF
 �F
I�F
-��F	�fF	* F6fF� F2fF��F�3F}�FLfF�3F�F��F(fF� F*�F��FM�F
3F�fF#3F��F*�F �3F � F �3F � F ՚F ��F ��F � Fg3FV F�fF��F~fFm�F\fF,�F �3F �fF �3F �fF �fF �F ��F � F �3F � F � F ��F3F3�F"fF�F � F ��F � F s3F bfF 3E�� E��fE� �E���E�g3E�FfE�%�E� E��3E��fE�e�E�͚E�6fE�� E�3E�#3E�3E�l�E��3E�A�E�q�E�Q�E�1�E���E��E��3E��3E�o3E�O3E� E�(�E�\�E�X�E�
�E��E��E�9�E�3E�� E��E�l E�t E�fE�( E坚E�JfE�� E�3E䅚E�� E�� E�:fE��E�fE�ɚE�P E�3E�%�E�t�E�2fE�K3E�3E��3E�s3E�2fE�fE�{3E [...]
�E�� E��3E�C3E�
 E�ffE��E��fE�
-fE�� E�U�E�D E�2fE� �E�3E���E��3E��fE�� E��3E�8�E�'3E�͚E�� E��3E���E�@ E�.fE�
�E���E��3E�6fE�%�E� E�� E�d E�/3E��3E�� E��E�� E���E�FfE�fE�� E��3E��fE��3E��fE���E�� E��3E�� E��3E� E��3E��fE�� E�3E�nfE�]�E�M�E�<�E�q�E�`�E�P E�?3E��E�p�E��3E�3E�
 E�bfE�ffE�3E�� E�L E���E��E�ٚE�
 E�` E��3E��E�]�E�M�E���E�p E�` E�P E�a�E�Q�E�  E� E�  E���E���E���E�;3E��3E�� E�� E�� E��3E�� E�� E���E���E��3E�� E�� E�� E���E���E�>fE�/3E�3E� E�  E�2fE���E���E�^fE�O3E��fE��fE���E�m�E�
�E���E�\ E�L�E�< [...]
�E�
fE�P E�@�E��fE��3E���E���E��fE�� E�9�E�+3E���E��3E��3E�� E���E��fE�fE�3E�D E��3E��3E��fE�Q�E��E�ZfE�L E�| E�m�E� �E��fE�jfE�
fE��3E�fE�� E�"fE� E�fE��fE���E�BfE��3E��fE�fE~L�E}~fE|s3Ez~fExQ�Et��Ep<�EkQ�EfI�Eb��E`;3E_3E_k3E`[3Eb��Ee��Ek Eq�Et  EvH Ex9�Ez.fE{;3E{њE|,�E�� E�� E���E��E�fE��E���E��E���E���E���E�l�E�P�E�3E~fEFfE E~` E~)�E}{3E|��E{�3E{��E{  Ez� Ey�3Ey�fEy3Ex��Ex� Ew��Ew|�EwH Ev�fEvi�Eu� Eu��Et�3EtvfEtA�Et
�EsffEs1�Er�fErX Er#3Eq� Eq�Ep�fEp9�Eo��Eo)�En�fEm� [...]
�fE
��E
��E
4�E
3E
  E
�3E
h E
NfE
33E
�E
�fE
�3E
��E
.fE
3E
-��E
-� E
-��E
-K3E
-1�E
- E	��E	�3E	��E	p E	fE��E�3E��EP E�fE��E��Ek3E1�EٚE��Eh EP E6fE
fEfE�fE��E|�Ed�EK3E33E�3E�3E�3Es3E[3EC3E��E��E��E�3E�3Es3E
fE�fE�fE�fEa�E
�E��E� Ei�E�E ��E ��E s3E   D��fD�i�D��3D��3D�ffD���D�VfD�&fD��3D�VfD�� D��3D�VfD���D�I�D�
�D���D�I�D�
�D�|�D�3D��fD�FfD��D���D�L�D�  D�� D��D���D�L�D�  D��fD�VfD�)�D�  D��3D�fD�C3D�fD�y�D�P D�#3D���D�\�D�0 D�3D�i�D�@ D���D�@ D�fD�y�D�P D�&fD��D�c3D�  D��fD��D�3D�Y�D�,�D�fD�l�D�C3D��D� D�VfD�� D�fD�6 [...]
-Dxa�Dx<�Dw��Dw}qDwXRDw33DwDv��Dv��Dv��Dv?\Dv�Du��Du\�Du8RDt� Dt{�DtW
-Dt2�DtG�Dt#3Ds�Ds��Ds|)DsW�Dr�=Dr��Dr��DrT{Dr0 Dr
)Dq��Dq��Dq.Dq
-=Dp�fDp��Dpe�Dp	�Do��Do��DoffDoB�Dn�fDn�3Dng�DnD{Dm�RDm�Dmj=DmG
-Dl�Dl�RDlnDlJ�Dk� Dk�qDkr�Dk�Dj��Dj�)Djx�Dj\Di��Di�3DiI�Dh� Dh�Dht{Dh�Dg��Dg��Dg~�Dg\)Df�qDf��Df��De��DeٚDe�HDd��Dd��DdD{Dc��Dc�fDc?\Db��Db�HDbp Da�{Da��Da��Da�HDa��Da��Da�RDag�DaFfD`��D`��D`�D_��D_0�D_�D^�fD^ffD]��D]�RD]hRD\�\D\�\D\�\D\\D\^�D\>�D[�
-D[�
-D[w
-D[W�D[7�D[�DZ��DZqHDZ
DY�DYxRDYXRDXҏDX� DW��DWۅDW�)DW7
-DWRDV��DVٚDV��DV��DV|�DV^DV>�DU��DU�)DU}qDU^�DU@ DU!HDU�DT��DT�DTt{DTU�DS�3DS�{DS�fDSw�DSY�DS:�DR��DR��DR|�DQ��DQ��DQ�qDQo\DP�DPФDP�3DP2�DP{DO�
-DOw
-DO(�DN��DN*�DM|)DL�qDL\DKҏDKUDJ�RDJ��DJn�DJQ�DJd{DJG�DJ�=DJmqDJ� DJ�3DJ��DJ��DK+�DKn�DK��DK�{DLhRDLz�DL��DM�DME�DM(�DL��DL-qDK��DJ��DI�RDH�DH{DG
�DF�3DE��DEq�DD�RDE9�DE
DE^�DEC3DE��DE�
-DEz�DE^�DEC3DE'
-DE
�DD� DDw
-DD-qDDHDC��DC�=DCb�DC�3DC��DCl)DC~�DC�\DC��DC�RDCl�DCQHDB�=DB��DBu�DBZ=DA��DA�RDAQ�D@�)D@�3D at xRD@]qD at B�D@'�D@
�D?��D?�
-D?�)D?�HD?,)D?�D>��D>U�D=�HD=mqD=S3D=8RD<�D<��D<��D<vfD<[�D<D;��D;�RD;�D:�)D:��D:p D:*=D9�RD9��D9�D9j�D9QHD8�D8�
-D8VfD8<�D7��D7�D7nD7T{D7;�D7!�D7�D7E�D7,�D73D6��D6�D6qHD6W�D5��D5� D5`�D5
�D5�D4��D4|�D4\D3�fD3�3D3E�D3-qD3{D2��D2��D2vfD2^D1�HD1��D1��D1~D1e�D0��D0��D0ɚD0�HD0��D0��D0�D/�qD/�D/��D/b�D/!HD/�D.�HD.�
-D.n�D.D-�qD-�D-�qD-S�D-<�D-${D,�{D,��D,�D,�qD,�fD,
qD,�D+�D+�fD+n�D+W�D*�\D*� D*��D*��D*j=D*3D)�)D)�D)mqD)W
-D)�D(�HD(�=D(��D(�{D(U�D(?\D( �D'D'��D'mqD'W
-D'�D'�D&�{D&�qD&p D&Y�D&
)D&D%ǮD%�HD%t{D%^D% �D%
-=D$�qD$�
-D$z=D$c�D$'
-D$HD#�{D#�D#��D#k�D#/\D#�D"��D"�
-D"��D"uD"8�D"#3D!�
-D!��D!��D!� D!D{D!.�D �3D �D ��D ��D QHD <)D &fD�D�fD��D��DJ�D5�D
��D
��D
��D
��D
[�D
FfD

)D
�
-D
��D
��D
��D
}qD
h�D
S�D
�D
�fD
�HD
l�D
W�D

D
�D�{D� D��DmqDXRD��D�fD��Dt{D;�D'
-D�=D��DX�DED�RD�{D� D�)D��D��Do\D[�DG
-D33D��D�
-D�3Dw�Dc�DO\D;�D'�D��D��D�D�HD}qDFfD�D׮D~Dj=D D��D��D��DX�DE�D1�D
�D��D��D��D��DxRD\D
)D�fD~Dj�DW�D  D��DٚD�fD�3D��D�qD5�D �D�D�
-D��D-qD=D��D�\D|�D&fD�D �D�D\D
�D
)DL�D:=D'�DD�D� D�qD��DuDb�DP�D
)D
-=D
��D
�D
� D
}qD
(�D
fD
�3D
�HD
|)D
j=D
XRD
E�D
3�D
� D
�qD
y�D
g�D
U�D
#3D
-� D
-�D
-�)D
-�=D
-�RD
-vfD
-eD
-�{D
-��D
-p�D
-^�D
-
)D	�=D	�RD	��D	C3D	HD�\D�D�)DJ=D8�D'�D��D�{D�3D��Dp�D_\DND<�D+�D=D�D��D�fD�D��D��D��D��D@ D.�D
qD
�D��D��D�=D��D9�D(RD�DfD��D��D�DeDT{DD��D�
-DvfDe�D
-DfD��D�
-DxRDg�DW
-DFfD��D�RD׮DǮD�
-D�
-D�fD��Du�DeD�D�D ��D �=D |)D k�D \C�,�C�ФC�8RC�� C��HC���C���C���C��=C��HC��HC��HC���C�ٚC�0�C��C���C�
�C�eC�EC��qC��{C��{C���C���C�u�C�U�C�5�C�
-C��
-C��
-C�AHC�!HC�HC�k�C�K�C�z�C��fC�P�C��HC�y�C���C�j=C�eC�'�C��C���CﰤC��C�t{C�W
-C�S3C�Q�C�
-C�
-C�k�C�l�C���C��C��3C��C�'�C�RC��\C�AHC�3C��C�@ C�"�C�C��C��=C��C�\C�q�C��C�o\C�Q�C��C��
-C�ٚC��{C��
-C�(�C�
�C��C���C�{C�
-C���C�˅C�>�C�!HC�C��C�Z�C�=qC�  C��C��fC���C�t{C�W
-C�:�C�
qC��C�u�C��=C��C�y�C��\C��3C�H�C�+�C碏C�fC�h�C�L�C���C�޸C��HC�C�� C��C懮C�k�C�)C�33C�
-C���C��C�  C�RC��C��{C��C�
)C�HC�z�C�^�C��RCᇮC�l�C�P�C�˅C�\C�+�C�\Cߋ�C�o\C�  C�C���C��C޳3CޘRC�}qC�b�C�޸C���Cݨ�CݎC�s3C�XRC�=qC�"�C��C���C��3CܸRCܝqC܂�C�  C��C�˅C۰�Cە�C�z�C���C�FfC�+�C��C��
-C��)C�Cڧ�CڎC�@ Cپ�C�=qC�#�Cأ�C��C���C׼)Cע�C׈�C��C�S3Cؠ CمC���CڸRC�fCۆfC��3C۹�C۞�CۅCڜ)C��C�  C��C��\Cչ�Cԣ�C�^�CҰ�C�ФC�#�CЧ�C�^�C��C�h�C��C���C΋�C�s3C���C��HC�ǮCͯ\C͗
-C�~�C�ffC���C��{C̼)C�C�C���C��C��=C�Q�C�9�C�"�C�
-=C���C�ٚC�!HC��C��C��RC��HCʨ�C�� C��C��C�8RC˯\C��
-C�@ C̸RC�aHC���C�"�C�k�C�S3C�:�C��HC��C�޸C��
-C�ФC�l�C�h�C�
-=C�8RCĕ�C��fCÀ C�
�Cš�C�'�C���C���C���C���C���C�U�Cš�C±�Cï\C�"�C��3C�8RC�
-=C�P�C��)C�9�C��C�Q�C�:�CØRCÁHC�j=C�T{C�=qC�&fC�\C��RC†fC�o\C��)C��fC�FfC��{C�c�C��C�T{C��
-C���C�P�C��HC�s3C�]qC�C���C���C�'�C��C��)C�>�C�(�C�k�C��HC�k�C��C���C���C���C�4{C�
�C��C��3C��qC�o\C�Y�C�
-C�HC��C��C���C��
-C��HC���C���C�T{C�>�C�(�C�3C���C���C��3C��qC���C�:�C�&fC��C���C��C�y�C�8RC���C�` C��=C�^�C��{C�޸C�t{C�` C�J=C�5�C�!HC��HC�w
-C�b�C�NC�9�C�y�C��\C�z�C�eC�&fC��qC���C�>�C���C��
-C�/\C��fC�4{C���C�<)C�/\C�L�C��qC�fC�'�C�C�5�C��HC��{C�AHC��
-C�T{C���C��
-C���C���C��C��HC��C��C���C�1�C�ФC��qC��RC�
�C���C�5�C��=C�&fC���C�g�C�
qC�Z�C��HC���C��=C��
-C���C���C��)C���C�%C��C��C�!HC�nC���C�0�C�XRC��HC�\)C��fC�ffC��3C��C�
-C�G�C��=C�ffC�
-=C���C�*=C��C��)C���C���C�AHC�y�C��RC��C���C��=C��C�
)C�z�C���C�{C�O\C���C�w
-C���C���C�@ C�.C�
)C��C��
-C��C��3C�u�C�c�C�fC��C�p�C�{C���C�� C�nC�\)C���C��{C�,�C�AHC�z�C�h�C�W
-C���C�C���C���C��qC��C�ٚC�3C�HC��C��3C�7
-C�%C��C�HC�:�C�s3C���C���C��C��qC�eC�
-=C��RC��)C��=C�y�AE�VMBD+25d4655  O    A
(�21:59:42.02+26:25:58.1 at t��$.k�@:n�XJ�c  �EH  EH EH  EH0 EH@ EHP EH` EHp EH� EH� EH� EH� EH� EH� EH� EH� EI  EI EI  EI0 EI@ EIP EI` EIp EI� EI� EI� EI� EI� EI� EI� EI� EJ  EJ EJ  EJ0 EJ@ EJP EJ` EJp EJ� EJ� EJ� EJ� EJ� EJ� EJ� EJ� EK  EK EK  EK0 EK@ EKP EK` EKp EK� EK� EK� EK� EK� EK� EK� EK� EL  EL EL  EL0 EL@ ELP EL` ELp EL� EL� EL� EL� EL� EL� EL� EL� EM  EM EM  EM0 EM@ EMP EM` EMp EM� EM� EM� EM� EM� EM� EM� EM� EN  EN EN  EN0 EN@  [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
- F�� F�� F�$ F�\ F�� F�@ F�P F�� F�� F�X F�� F�� F� F�� F�� F�b F�& F�� F�� F�� F�� F�h F�R F�� F�j F�� F�8 F�� F�T F�� F�� F�� F�� F�� F�� F� F�v F� F�L F�| F� F�� F�� F� F� F�L F�8 F�� F�X F�B F�, F� F�� F�� F�� F�� F�� F�� F�� F�� F�� F�> F�L F�� F�$ F�� F�� F�� F�
 F�R F�: F�$ F�� F�� F�Z F� F�� F�� F� F�� F�� F�� F�� F�X F�B F�n F�� F�4 F� F�� F�4 F�� F�^ F�� F�� F�� F�
 F�� F�( F�@ F�� F�d F�, F�� F�� F�� F� F�X F�� F�� F�� F� F�� F�b F�, F�8 F�d F�� F�* F�� F�� F�� F�� [...]
- F�\ F� F�� F� F�8 F�" F�� F� F�� F�v F�� F�p F�\ F�H F�z F�� F�� F�v F�� F�� F�� F�� F�� F�d F�P F� F�� F�� F�� F�� F�p F�\ F�� F�� F�� F�� F�� F�\ F�� F�� F�� F�� F�� F�� F�j F� F�  F�� F�r F�� F�� F�
- F�� F�� F�B F�� F�v F�� F�� F�F F�t F�� F�� F�< F�� F�p F�� F�$ F�� F�
 F�h F�� F�$ F�r F� F�N F�� F� F�v F�� F�4 F�D F�X F�. F�& F�� F~� F{� Fx� Fv� Fr� Fn� Fj� Fg
 Fd� Fc� Fd8 Ff  Fhl FkT Fm� Fp� Fs� FvX FxD Fzp F{� F}� F� F�
 F�. F�2 F�6 F�  F�� F�� F�� F�P F�� F�N F�� F� F�\ F�� F�
 F�L F�z F�� F�� F�� F�� F�P F�� F�B F�� F�� F�\ F�h F� F�� F�� F�� F�" F�� F�� F�� F� F�� F� F�Z F�� F� F�@ F�. F�� F�� F�
 F�r F�� F�� F�R F�� F�\ F� F�: F�f F�� F�� F�v F�> F�� F�� F�
 F�H F�v [...]
-��Fu3F� F
 F2 FI3FxfFi3F3�F�fF� F93F�fF	�3F
��F
��F
3F�fF��F��FtfF��F��F�3F�fFn�F�3FK3F� F�3F
�F
3F�3F�F� F� Fc3F,�F3F�fFf F�F�3F3�F�fF��F��F� F(�F�F��F��F�fF��F��F�fF�3F� F|�F$fF�F��F��F.�F��F\fF�F�3F4fF� F3F�3F�fF@�F0 F�F3F��F�fF� F F$ FX�F��F)�F^�F�fF�FC�Fx�F�fF�F� F+�F�F
- F?�F�fF� F�3F�fF��F�3F��F� F�3F��F� F�fF F3F;3F*fF<�FrfFb FQ3F@fF�F��F_3FNfF� F�Fn�F^fFfF��F�fF*fFfF�3FpfF> F��F.�F
�F��F��Fg3F�F� F��F< F, F
��F
�3F
�fF
��F
� F
� F
�fF
��F
:fF
*�F
3F
��F
��F
FfF
��F
@�F
-l�F	� F	��F	[�F	, F�fF,fF�3F� F_3FP Fa3F�fF�3F� F3F�fF'�FX�Fi�F�3FK�F<�Fn F��F��F� F	�F	fF�3F�fF	 F	�F��F	+3F	<fF	n F	_3F	3F� F��F� FrfF�3FtfF�fF� F�3F F
fFz�F
�F� FPfF�3F��F�F��FO3F�F��FJ�F<fF� F� F� Fh�FZfFLfF> F0 F�fF�fF3F FE3FffF�3F3FE3Ff�FJ Fk�F��F��F��F�fF3Fs3F�fF�FVfFxfF�fF��F� Fc3F'3F� Fp�FT F�3F� F��F�3Fh�FLfF0fF F� F�fF�fF(�F
�F��F� F]�F3F �F �3F 3F   E�P�E�� [...]
-fE�3E���E�;3E��Eˈ E�_3E˕�E�l Eˣ3E�y�E���E�3E��fE�$�E�, E�c3E�:fE�p�E�� E˾fE˕�E�
�Eʴ Eʋ3E�bfE��fEɱ�Eɉ�E�`�E�8 E� E��3Eȿ3E�8 E� Eǹ�E�33E�
3Eƅ�E�^fE���Eű�EŊfE�4 E�
�EĈ E��E�ݚE�ZfE��E‚fE�\ E�ٚE��3E���E���E�m�E�G3E��3E���E�y�E�%�E�  E���E��fE�33E���E��fE�h E�BfE�� E���E�x�E�&fE���E��3E�]�E�
 E��3E���E�p�E�  E��3E��fE�Y�E��E�h E� E��3E�  E��3E��3E��fE�8 E�� E�m�E��3E�NfE���E�\ E�8�E���E�q�E���E��fE��3E���E�m�E�JfE�| E�Y�E�`�E��fE�o3E�L�E�)�E��fE�e�E��3E�O3E��fE��E�rfE��3E�`�E���E�x�E [...]
i�E
k3E
њE
X E
C3E
nfE
�3E
K3E
�3E
��E` E6fEɚE\�E� Ec3E�3E�EɚE� E�E�fE�fE�E�fE� EfE� EٚEfE3EA�E+3EY�EA�E+3E�E�fE� EњE�3E��E�fE33E
�EfE�3E��E\�E�fEC3E�fE
�fE
�E
��E
-� E	�fE^fE)�EfE$�E�3EA�E
�EVfE
�E�fEnfE9�E3E� E	<�E	ɚE
-X E
-�3E
-� E
>fE
I�E
� E
��E
� E

�E
 E
�E

fE
	�E
��E
��E
� E
s3E
3E
-�fE
-њE
-�3E
-d�E
-P E
-;3E	��E	� E	�3E	�fE	��E	|�E	h E	S3E	>fE	)�E��E� E�3EvfEa�EL�E� E�3E�fE�3E�fEQ�E<�E)�E�E  E��E� Ed�EP E��E� E��E� El�EY�ED�E1�E�fE�E�fE�3Ep E[3E	�E�fE�3Eq�E  E� Et�EA�E.fE�3E� E��E��E�fE{3EI�E4�E3E� E��E�3E� Ed�EQ�E>fE
�E ��E � E ��E ��E q�E @ E ,�E �D�� D���D�I�D�#3D�� D���D�9�D�3D��3D���D�,�D�fD��fD�� D�  D���D���D�s3D�3D�� D�� D�i�D�	�D��fD�� D���D�vfD���D���D��3D���D��fD�vfD���D���D�#3D���D�,�D�3D�p D�ٚD�fD�3D�l�D�I�D�& [...]
-DmZ=Dm=qDm �Dm{Dl�Dl��Dm
DmHDl�{Dl�RDl��Dl�\Dl3Dk@ Dj�Dj*=Dih�Dh޸DhUDh8�Dh
qDhn�Dh��Di�Di-qDi�qDj��Dk8RDl1�Dl�Dm Dmc3DmFfDm�=Dm
qDl�Dk��Dj�{Di�{Dh�3Dgo\DfC3De�Dd��Dci�Db�Db(RDa��Da
qD`c�D`H�D_�{D_��D_��D_t{D_Y�D^��D^�fD^l)D^QHD^7
-D]��D]��D]
-D\��D\z=D\+�D[�=D[� D[u�DZ�{DZ�=DZ��DZ�fDZ�)DZr�DZ�\DZ��DZ�DZ�RDZ��DZ�RD[%�D[�=D\\)D]�D]�qD^� D_7�D_��D`
-�D`Y�D`?\D`${D_��D^\D]�3D\uD[W�DY�DX��DW��DV��DU�RDU*�DTz�DS�=DS
qDR�3DQ��DQxRDP˅DPP�DP
-DO��DO�DO[�DOC3DO*�DO�DPQHDP�)DQx�DQ�{DR��DR��DR��DRW�DR?\DR&fDQ��DQ�DRDQ��DQ��DR'
-DR�DQ��DQz�DQ0�DP��DO�RDO.DN"�DM��DL�\DL'
-DK\DK
-DJ� DI�DI��DIZ�DIC�DH�qDH��DH��DH�
-DHp DH�
-DH��DH�
-DH��DH�DI.�DI�DI  DH��DH�HDI�DIHDH�=DHҏDH��DH��DH��DHu�DH��DH��DH��DHw
-DH` DHH�DH`�DHI�DH��DHy�DH��DH��DH3�DH
�DH�DG� DGx�DG33DG
)DF��DF��DF
)DE��DEb�DD��DC�DC}qDC
-�DB�{DB��DBk�DB��DB��DB�{DBɚDB�3DB��DB�fDBp DA�DA�DAvfDA2�DA
)DAfD@�D@#�D?�D?p�D?  D>� D>MqD=�D=o\D<z�D;��D;�D:(RD9c�D8˅D8_\D7��D7\�D6�HD6Z�D5��D50�D4�D4�
-D4r�D4^D3�{D3� D3��D37�D3#3D3�D3N�D3eD3�D3�D3��D4;�D4|)D4��D5(RD5�D6*�D6k�D6��D6�3D6��D6�D5��D5D{D4�\D3�HD3]qD2vfD2D1(RD0nD/�=D.�RD-�
-D,�D+�\D+�D*u�D)��D)7
-D(�{D(q�D'�D'��D'r�D'_\D'L�D'9�D'u�D'c3D'�fD(Q�D(g
-D(�D)/\D)��D)�HD)nD)Z�D)G�D)�{D)�HD*&fD*c3D+�D+W
-D+�qD+��D,aHD,�\D-.�D-D{D-0�D-n�D-[�D-HRD-4{D-!HD,�)D,��D,��D,��D,n�D,��D-e�D-��D-��D.J=D.�RD."�D-�qD-��D-�D-RD,��D,��D,|�D,��D,��D,�{D,0 D,
�D+� D+|�D+�D+VfD+C3D+0 D+nD+�3D+p�D+]qD+J=D+7
-D+#�D+aHD+N�A�f-�8NGC7293     V.HotAX(�22:29:38.46-20:50:13.3 at u�bM���4�Gs�f,  �EH  EH EH  EH0 EH@ EHP EH` EHp EH� EH� EH� EH� EH� EH� EH� EH� EI  EI EI  EI0 EI@ EIP EI` EIp EI� EI� EI� EI� EI� EI� EI� EI� EJ  EJ EJ  EJ0 EJ@ EJP EJ` EJp EJ� EJ� EJ� EJ� EJ� EJ� EJ� EJ� EK  EK EK  EK0 EK@ EKP EK` EKp EK� EK� EK� EK� EK� EK� EK� EK� EL  EL EL  EL0 EL@ ELP EL` ELp EL� EL� EL� EL� EL� EL� EL� EL� EM  EM EM  EM0 EM@ EMP EM` EMp EM� EM� EM� EM� EM� EM� EM� EM� EN  EN EN  EN0 EN@ ENP E [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
-Dw��D{�3Dw�)Dpk�Dl�3Dk��Dj�
-DkB�Dk��DlHDk�qDg\Db�Dd�Dh\)Dj(RDk��DjP�Dg-qDc��D_*�D^3D`Y�Dc �Df]qDh\)D`�fDX�\D[�\D^ФDa��Dc�3D_
-�DV�fDQ�{DO��DN�fDN��DO�\DS(�DU�
-DS\DQp DZ,)DdR�DeRDcmqDa��D`��D^E�DY� DW��DX��DZ�=Da�Dh'
-Dg*=De�RDivfDm:=DmO\Dl�{DjnDg{De�)De�fDe�{Dc�qDa�D^'�DZ��D]I�D_4{D[�)DWG�DY��D^��D_b�D\��DZ�=DYR�DW��DWG
-DV� DUs�DT��DSr�DRZ�DT.DVj=DV� DU�RDU��DU��DV1�DVw�DU�3DSfDPC3DP%DOs3DP�)DR|)DS#�DS�=DU�DX{�D[*�D\�qD]Y�D[�qDX��DT�=DP4{DL�=DI�qDLθDQ�DSG
-DU��DUa�DR��DR7
-DRRDR+�DR�3DR�{DQ;�DO�DOEDO'
-DO�)DQ7�DP#3DM��DL��DL�DJaHDF5DB�RDA�D at z=D?!�D>%�D;�3D:K�D=�3DB�)DE��DF��DE�fDB��D@��D?-qD=׮D<��D;��D=�\D@�{DA\)DA�)DB��DDDC��DCQ�DC� DD�RDE(�DCl)DBj=DD��DGEDE��DD"�DF�\DJUDH��DC��DC��DGK�DIe�DJ
-DJ�DI��DH�DG�DF��DC��DA>�D>��D<�\D>FfDB DBٚD@�{D>�=D<�3D;�=D=/\D>�{D=��D<޸D?7
-DB  DB_\DA_\D?QHD<�fD:�D9G�D8��D;!�D=�DA�DE��D at MqD:�D:�3D<N�D;��D:�D9>D8J=D7W�D4�{D3L�D51HD7q�D9aHD;��D;�{D;MqD8vfD4��D4:�D6!�D6��D4�3D3��D3g
-D3ND52�D7
)D2Y�D-� D-uD-׮D.޸D0:�D0!�D/:=D.S�D-
�D,aHD+~�D+�D,j=D-o\D-D,!�D)�D&�)D&e�D'�HD)&fD+�HD,�D*��D(P�D'${D%�)D%�3D&=D'�D(�=D(��D'�D&� D&�HD&�=D'7�D'��D'\D&�3D&��D&�3D%�=D$%D$D$��D$.D"�)D �)D
�fD
�D
��D
DeD �D!I�D!��D"�
-D#�HD#
-D!�RD 
-D4{D�\D"I�D%�D#vfD"S3D#I�D$AHD$*=D#�fD"/\D �D
�qD
ҏD
q�D
W�D
>�D(RD� D��D
�D
ٚD
��D
�D
�D�D!�)D#>�D"hRD!�3D!}qD!�D
��D

qD
vfD
>�D
�3D
��D-qDb�D�RD7
-D
ffD
�D��Dg
-DQ�D
�\D b�D� D
o\D
3D�=D�D
g�D
�qD
<�D
�
-D�Dr�D �D 3D�qD׮DQHD
� D
��D{D>�D)�D�qD �D33D�
-Dz�D��D� D=qDj�D�
-DNDٚD8�D��DHD��D:�D� D��D��D.D��D��D��D�qD�qDUD-qD��D��D
��DE�D�=D�RD �D
qD��D��D��DuD�fD��D�fDҏDH�D��D!�DɚD��D�D
�Dn�D��DHRD
ФD
z�D
%�D
ǮD
-�qD
-�D
�HD
c�D
�3D
��D
mqD
Z�D
��D
ۅD
�fD
 D

-D
-  D
-
qD	�=D
-�D
��D
~�D
��D
X�D
� D
K�D
8�D
�=D
U�D
B�D
0 D

qD
L�D
�qD
��D
xRD
��D
-%D�\D|)D�D��D��D�
-DD�HD޸D�qD
)D.DA�D�{D�D�\D:=D�fDuDc3DxRD��D}qD�Dp�D�qD�DT{D�HD�D�D�
-D��Dc�D3D�3D��D��D�qDX�D�D�HD�D�qDZ�DJ�DX�D�fD�{D${D�3D@�D�\D\D�HD�HD1HDDs�Db�DQHD*�D �RD @ D /\D y�D h�D �{D G
-D 6fD ��D �D @�C��D \D �fD\DY�D��D ��D R�D ~�D ��D �D �{D x�C�ffC���C�C�C�4{C��C�˅C��3C�(�C��RC��qC�� C�>�C�fC��C���C�U�C��HC��{C�aHC�{C�"�C��C���C�33C�h�C�ffC�qC�~�C�ФC�xRC�Z�C��\C���C�W
-C�p�CC���C�K�C�,�C�C��C�u�C��C��C��=C�RC�h�C�.C�.C�\C��C���C�#�C�u�C�HC�S3C�fC�� C�h�C�ٚC�c�C�
-C�RC��\C��\C�RC�
-=C��C�&fC�RC�ffC��fC��C���C�]qC�T{C�)C뾸CꋅC��)C�eC�HC�{C��C�ٚC�)C��RC�l�C�eC�+�C�
)C�C��C��3C��C�q�C�T{C�˅C�B�C䂏C�ffC�W
-C�H�C��C�|)C�^�C��C��fC��C��C���C⾸C�7
-C�z�C�^�C��HC�/\C�3C��
-C�p�C�K�C��Cߨ�C�` C�C�C߽qC�8RC�y�C���C���C۹�C�9�C܆fC��3Cܷ
-C�c�C�� C�ǮC֬�C�,�C�t{C�XRC�>�C��HC��CԐ�C�u�C�\)C��qC�^�C�3C��RC�޸C�` C���C���C��Cє{C�z�C�aHC�FfC�,�C��RCҵ�CҚ�CҁHC���Cԣ�C�%C�t{C��
-C�G�C�^�C�
�CӆfC�l�C�Q�C�@ C�.CѨ�C�T{C�B�C�c�CЬ�C���C�
�C��HC��RC�RC��C�P�C�AHCк�Cї
-CІfC��C�j=C�P�C�7
-Cί\C��RC�޸C��C�
�C��3C�xRC͜)C�S3C�9�C�  C�fC�
�C�ffC�L�C̢�C�(�C�o\C̆fC�/\Cͧ�C��)C���C�ٚC�P�C�8RC�
�C˥C�\)C�C�C˺�C�HCʙ�C�33C�y�C��\C��
-C�}qC�c�C�K�C��3C�\)Cȴ{C�*=C��\C�XRC��HC�'�C�l�C�T{C�<)C�#�Cə�C�"�C�
qC��C�
-C�EC��fCƸRC�B�CŞ�C�3C���C�@ C�'�Cų3CŚ�Cł�C�%Cƙ�C�:�Cð�C�"�C��3C���C���Cī�Cē3C�|)C�c�C��HC�g�C��C���C��HC��=C�XRC��)C�� C���C�9�C�"�C���C��C�T{C��C�&fC�Y�C�aHC��C���C���C���C�\C���C��C�Q�C�:�C�#�C�
�C�p�C���C�+�C���C��3C�@ C��RC�FfC�/\C��C��C�C�C���C���C�HC��C���C�5�C���C�
-=C��3C��qC�
�C�` C�t{C��fC��RC��
-C���C���C�� C��=C��{C��{C�j=C�T{C�j=C���C��C�1�C��=C�aHC�"�C�8RC�u�C��{C���C��qC���C���C���C��RC�C��C��C�fC��C��)C��
-C��\C���C��3C�޸C��=C�:�C��{C���C�u�C��RC��qC��3C���C��)C��qC�.C��C�HC�33C���C�
-=C��C��C���C���C���C���C��)C�~�C��)C�{C��C���C���C���C��)C�<)C�u�C���C��C�J=C���C�4{C���C���C�nC���C�
�C��{C�EC��HC�
�C��{C��HC�nC�Z�C�nC���C���C�FfC���C�4{C�!HC��
-C��C�\)C���C�#�C��C�C���C��C��{C�s3C��=C�<)C�(�C���C�` C�C�K�C��=C�3C��3C�� C���C�y�C�ffC�S3C�@ C�,�C��C���C�� C��3C�L�C�:�C�'�C�{C�t{C��C���C�1�C�aHC��C���C��C���C�˅C�FfC��)C��=C�w
-C�eC�Q�C���C�xRC�ffC��C��C���C�
)C�U�C��{C��HC���C�t{C��C��fC��{C��HC�c�C�fC��{C��C��\C��C���C���C���C�C�]qC��3C�3C�%C�]qC�HC�˅C���C�]qC�K�C��C�(�C��C�T{C���C���C��RC�\C��qC���C��3C�:�C�(�C�ffC�C��qC��C��
-C��C�Y�C�T{C���C��HC�~�C�c�C��RC���C�
�C���C�^�C��C��{C�8RC�� C��\C���C�H�C��3C�'�C�\)C��3C���C���C�<)C��C��RC��C�>�C�s3C�
qC�ǮC��RC��C��)C�˅C���C�U�C��\C�4{C��qC�Y�C��3C�8RC�|)C�k�C���C���C�~�C�(�C��fC��C�1�C�!HC���C���C���C�#�C��)C��RC��C�4{C�8RC��C�C��)C���C�
-C��C�S3C�C�C�u�C���C�=qC���C���C��3C���C�0�C�޸C��\C�HC���C��C��3C�&fC�XRC���C��)C��C�t{C��C�/\C�C�7
-C�G�C�
-C��fC��
-C���C��{C�c�C��3C���C��{C��C�
-C���C�y�C�j=C���C�J=C��)C�NC�}qC��C�� C���C��HC�Q�C��C��3C���C�t{C�ffC�
-C��C���C��=C�|)C�l�C�]qC�\C�C��3C���C�7
-C��=C�>�C��3C��fC��\C�|)C���C��qC�O\C��C��3C��C��)C�y�C���C�4{C��)C���C��qC�o\C�aHC�Q�C���C�5�C���C�>�C��3C�J=C�� C��{C��fC�xRC���C��{C�#�C��C�C�C�s3C�'�C�� C�4{C��=C��)C��C�� C��C�
qC���C�HCL�C~z�C}33C{xRCx�{Cth�Cr\Ct33Cv!HCsQ�CpCq��Cs�Cr�fCrY�Cs�\Cvk�Cw��Cv��Cw=qC{EC�
-C�T{C�޸CEC{��Cy�3Cy�3Cz33Cz8RCzxRCz��C{0�Cz��Cz�Cz�\CzW
-Cz!HCy:�CyCxY�Cx#�CwxRCwECv�{Cv��Cvh�Cv5�Cv  CvxRCv�RCv��CvL�Cv
-CunCt��Css3Cr��Cqz�Cp�)Co�RCp5�Cp:�CpxRCpECp\Cok�Cn�\Cm�Cm�RCm��CmT{Cm!HCl�Cl��Cl�=Ck��Cj�HCiǮCi(�Ch�RCh!HCg{Cf@ Ce8RCe�Cd�
-Cd�fCdu�Cd��Cd� CdO\Cd
�Cc��Cb�3Ca�C`޸C_�)C^��C]p�C[nCY�
-CW��CUO\CS��CQ��CP#�CO�CM��CN��CN�HCO��CQh�CR��CT��CV\)CX�\CYǮCY�)CY�{CZ
�CY޸CY��CY�CY�=CY\)CY�{CYh�CY:�CY
�CYG�CY�CX�CXY�CW��CWffCV�{CV�fCVz�CV�3CV��CVY�CUc�CT=qCS
-CR#�CQffCP�
-CP��CP� CPT{COǮCO��COs3CN��CN(�CM�qCMB�CM�CL��CLc�CL8RCLp�CLu�CL��CL��CL�RCL�\CLc�CL:�CL\CK��CK\)CK33CK
-=CJ� CJ&fCI��CIu�CIL�CH�CH�)CHs3CHJ=CH!HCG�RCG�\CGG�CF�CFk�CFB�CF�CE�{CEk�CEB�CD�\CC��CC��CB�
-CB�CB��CB^�CB8RCB�CA��CACA@ CA�C at h�C?��C?
�C>�RC>8RC>�C=�C>
�C=�RC=��C=ٚC=��C=aHC=:�C<��C<=qC;�qC;k�C:�C:ǮC:J=C:&fC9}qC9W
-C933C9
�C8��C8k�C8G�C8#�C7�qC7ٚC7��C7�\C7k�C6�C6��C6��C6��C6^�C6:�C6
-C6G�C5L�C5(�C4�)C4�RC4h�C4�C3��C3��C3�C38RC2��C2�C2xRC2+�C2�C1��C1nC1!HC0�qC0��C0c�C0B�C/��C/��C/^�C/:�C.�C.��C/&fC.��C.�\C.nC-�RC-�C-:�C,�C,+�C+�RC+�
-C+s3C+�C*h�C)��C)�C):�C)
)C(��C(�=C(h�C(G�C(&fC(T{C(5�C({C'�3C'��C'{C&}qC&\C%�C%� C$�C$�=C$^�C#�C#\)C"�C"��C"c�C"EC"&fC!�{C!(�C!
-=C xRC Y�C�C�C
)C
�qC
޸C
� C
�HC
��C
c�C
EC
  C
��C
�C
\)C
�3C
�{C
�RC
��C
z�C�C��Ch�C�CxRCY�C=qC
�C�C��C33C
-C��CnCQ�C�C�\C��CL�C0�C�C�=CnC
-=C��C
�C�C�fC��CffCJ=C.C��CG�Cz�C�C  C��C��C��C�{C!HCC��C��CJ=C��C�=CnC�C��Cs3CW
-C:�C!HCC�C��CO\C�C�
-CxRC\)C  C
C
ffC
L�C
0�C

-C
�qC
�HC
ǮC
�C
�{C
xRC

)C
�C
�C
(�C
-�\C
-��C
-8RC
-
�C	�C	��C	O\C	8RC	
�C	C�C��C�RC��C#�C��Cs3C8RC!HCǮC�CW
-C�qC�CnCW
-C=qC#�C
�C�3C�)CCk�CT{C޸C#�C
-=C�3CٚCC��C��C
)CC�C�
-CB�C(�C�C��C��C0�C�C �C T{C   B���B���B���B��\B��B�B�B�{B��fB�B�B��=B�\)B�.B�Q�B��B�
-=B�(�B��=B��fB�
-=B�k�B�ǮB�aHB�B�#�B�L�B�B�B�8RB�
-=B�p�B�B�B��B�z�B�B�{B�k�B�B�B�{B��
-B�B� B�W
-B�.B�p�B��
-B�=qB��
-B�=qB��B�z�B�L�B�#�B���B���B��B�z�B��B�{B�z�B�Q�B� B��B�B�(�B���B��B�z�B�Q�B�(�B�  B�k�B�B�B��B��B�ǮB�33B�
-=B�u�B��B�B�\)B�33B�u�B�L�B�#�B�  B�k�B�B�B�3B�
�B���Bߞ�B�u�B�L�B�#�Bޔ{B�p�B��)BݸRBݏ\B�k�B�B�B��B���B�33B�
-=B�z�B�W
-B�ǮBڣ�B�z�B�W
-B�.B�
-=B��HBٽqBٔ{B�p�BخB؊=B�  B��
-B׳3B׏\B�  B֨�BօB�aHB��
-B�{B��B�ǮBգ�BՀ B�\)B�33B�\B��B�aHB��
-B�Q�B���B�p�B��B�ǮB�\B��fB�aHB�=qBϸRBϔ{B�p�B�L�B�(�B�B��HBνqB�BͅB�  B�L�B�ǮBˣ�Bˀ B�  Bʨ�Bʊ=B�BɅB�aHB�=qB��B���B��
-Bȳ3B��B���B�L�B�(�BǪB�YB�6�Bƶ�B�7LB��B��3B��hBů�Bō�B�lB�J=B�(�B�+B�Z
B�8�B��BÙ�B�xRB���B�ٚB¸RB—�B�vFB�T�B�49B��B��-B���B�'mB���B�0!B��NB�gmB�G+B��JB�RoB��B���B�k�B��-B��oB��-B��oB�r�B�R�B�2�B���B�n�B���B�׍B�_�B�@�B���B�~wB��B���B�ɺB��B�49B��B��FB�.�B�\B�G�B�(sB�	�B��B���B��B��VB�o�B�P�B�2-B�uB���B�)�B�
�B�mB���B�ڠB��jB��5B�� B��LB��B�z�B�]/B�>�B��JB�/B���B��B��B��RB���B�|�B�_;B��B���B�^�B��B�SuB��TB�s3B�ڠB�kB�NVB���B�f�B���B��#B��wB�&�B���B�J�B�.�B��B���B�ٚB�C�B�'mB [...]
-�B�yXB��B��fB��B�`BB�E�B���B��)B�49B��B���B��B�}qB�b�B�ՁB��dB�T�B�:�B���B��{B�z�B���B��RB��5B��B�i�B�O�B�5�B�
)B�
B�3�B��B�q'B�W
-B���B��-B���B�~wB��B��?B�vFB��B��RB��;B��B��B�H�B�/B���B���B�+B�[#B�B
B�(�B��B���B�ݲB�ĜB�bNB�I�B�0�B��B���B���B��PB�k�B�R�B��PB�lB�SuB���B�kB�RoB�9�B�ٚB�yXB�`�B�ܬB�|�B�
�B���B�ɺB���B���B��`B��{B��B��B��uB��dB���B�D�B�-B��VB���B�{�B�c�B�%B���B�J�B�bB��3B�VB�ևB�z^B�
5B�+B��7B�-�B��oB�T�B�>wB�'mB��B��^B��TB�2�B��B��;B�EB�ɺB�,�B�oB���B�B�
)B���B��B��{B��qB��+B�1�B���B�f�B��B��jB��1B��B��B���B���B���B�nB�H1B~J�B{��Bz	7Bw��Bv��Bu�Bt��Bt
PBs�fBs��Bt�Bu�Bv�Bx^5Bz�B{��B}t�B~<jB�XB�#TB���B�
JB���B��B�|jB�ĜB��B�6FB�_�B���B���B���B�%�B�oB�Z�B�F%B�1�B�
/B��B��9B�߾B���B��LB���B��VB�z^B�e�B�Q�B���B���B�z�B�f�B�R�B�>�B�hsB�T{B�@ B�,B�B�B��3B��;B��DB�wLB�cTB�O�B�;�B�'�B�׍B��B��!B���B���B�u?B�a�B�M�B�}B��B~��B~Z
B~33B}YB}2-B}
JB|n�B|G�B| �B{H�B{"�Bz��Bz`BBz:^Bz{BzdZBz>wBzR�Bz��Bz|�BzW
-By�dBy[#By5?By\Bx�yBxN�Bx(�Bw�VBv�Bv�{Bu��Bu�Bu=qBu�Bt�Bt��Bt��Bt�Bt_;Bt:^BsiyBr��Br;dBr�Bq�Bq��Br�Bq�Bq`BBq<jBq�BpI�Bp%�BpBol�BoH�Bn�3BnXBn49BnbBm�BmȴBm��Bm�XBn%Bm�NBn/Bn�9Bk�XBk_;Bk;dBj�HBj�+BjcTBj	7Bi�Bi�JBi33BibBh�FBh]/Bh:^Bg�HBg�wBge`Bg
JBf�Bf�hBfo�Bf�Be�wBe��BeC�Be!�BdɺBd��BdO�Bc��Bc�
-Bc~�Bc]/Bc%Bb�ZBb�PBbl�Bb�Ba�Ba��Ba{�Ba%�B`��B`�B`XB`7LB_�HB_�}B_jB_H�B^�B^��B^}�B\�B\ffB\E�B\%�B\B[�ZB[ĜB\
JB[�B\33B\oB[�B[��B[�-B[ŢB[��B[�B[1'B[bBZ�7BZiyBZI�BZ)�BZ
-=BY�yBYɺBYC�BX�=BW��BV�mBU��BT�TBTĜBT��BT�%BTgmBTG�BT�PBTn�BS�BS��BS�BS�BS��BS�?BS��BSuBR`BBQ�5BQ]/BQ>wBQ �BQ
BQF�BQ�=BQ��BQM�BQ/BP�BP.BPbBO_;BOA�BN��BNB�BN$�BN+BM�yBM9XBM
�BL��BL�BLcTBLE�BL'�BLjBL�5BM!�BMdZBMw�BM�dBM��BM� BMbNBL�3BL��BL�BK��BJ�BJq�BJS�BI�BI�dBI\BH�BHw�BHZ
BH=qBH �BHbNBHF�BH�LBH��BH}�BHaHBH��BH�`BIW
-BI:^BI{�BI_;BH�TBH9XBG`BBGC�BF��BF �BE��BE�DBEo�BDǮBDN�BD33BC�JBB�XBBuBA��BA%�B@�
B@�B@��BAn�BA�BA��BB  BB@�BBR�BB�oBBw�BB  BA�LB@�`B at o�B?��B?�'B?��B?z�B?_;B>�B>��B>.B=�XB=E�B<��B<�=B<o�B<T�B<:^B< �B<%B;�oB:�B:�
B:\B9��B9XB9>wB9#�B9
-=B8�B8�B8e`B8��B8�1B8��B8� B8�qB8��B8+B7��B7&�B7
PB6�B6�B6jB6��B6�PB6s�B6Z
B6��B6&�B5�PB5
�B4�B4�B3��B3�\B3��B42-B4�B4  B4;dB3��B3�9B3��B3B2��B2}�B2bB1��B1�;B1H�B10!B1�B0��B0�fB0��B0bNB/��B/�?B/I�B/2-B.ƨB.�B.��B.~�B.�RB.�B/B/>wB/%�B/VB.��B.bNB-��B-<jB,��B,�oB,z�B,hB+��B+�NB,�B,B,=qB+�B+�B*�DB*s�B*\)B)�B)�/B)ŢB)�B)��B)� B(�B(�
B):^B)"�B)
JB(}�B(ffB(O�B(8RB'��B'�dB'��B'�PB'ŢB'�B(VB'��B'�BB'R�B'<jB&�B&�}B&Z
B&C�B&-B%��B$�B$�'B$M�B#�yB#`BB#I�B#��B#�bB#ǮB#�'B#M�B#7LB"��B"��B"6FB"�B"
-=B"�3B"v�B"`BB"$�B"VB!��B!�jB!� B!jB!/B!�B �/B ǮB �DB u�B :^B��B�yB�B��B^5BH�B
PB
��B
�qB
�
B
l�B
2-B
��B
�NB
��B
�oB
XB

�B
	7B
��B
��B
� B
E�B
1'B��B�qB��Bo�B6FB �B�mB�B��BaHB'�BuB�
B��B�JBS�B�B�TB��B��B^5BI�BhB�B��B�PBT�B
�B�`B��B��B{B  B�B�BYB��B��B�bBoB�RB;dB'�B|�B�!BB�1B/B��BYB�dB@�B�mBm�B��B�wB�B��B�B�FB�mB��B&�BYBE�Bv�BcTB
JB��B��B�VB{�B�B��B��B�LB��BM�B�3B}�B�ZBl�B�BB
�B
��B
$�B
��B
{�B
G�B
5?B
"�B
2-B
bNB
�hB
~�B
��B
�qB
�B
��B
�+B
t�B
�jB
hsB
��B
�%B
s�B
aHB
O�B
=qB
+B
�B
+B
-�3B
-� B
-n�B
-�B
-	7B	�FB	cTB	1'B	�B��B�dB��B��BƨB��B��BP�B��BM�B��BK�B��B�By�BhsBW
-BF�B5?B#�Bp�BBS�BƨBXB	7B�^B��B��B�1B�9B�HB�BZ
B�ZBo�B^5BL�B<jB+B�jBm�B]/BK�B��B�B�#B1B��B��By�B+B�
B ��B �DB z�B .B 
�B I�B �{B ��B s�B 1A��A���A��A��PB bB <jB hsB XB G�B 7LA�^5A�bA�x�A���A���A�v�A�XA�7LA��A���A�M�A�-A��A�dZA�C�A��A��A���A��A�1A��yA�x�A���A�$�A�%A��`A�ƨA�1'A���A�|�A��A��A��A�-A�VA��A�\)A�;dA��A�DA�wA�A�A�bNA��A���A�?}A��mA�XA�9XA��A�7A�O�A�jA�wA�oA��A���A�FA�A�x�A�Z
A�;dA�
�A�PA���A��A��A�+A�hsA�K�A�-A�ff [...]
-A�9XA�dZA�~�A�=qA�PA�{A�ffA�FA���A�-A�A�VA�M�A�E�A�(�A��yA�A�VA�ȴA�t�A�x�A��
-A��A�x�A�K�A�A�9XA�7A��A�`BA�!A�  A��A���A��A�PA嗍A��A�Q�A�5?A��A�hA�t�A��A⛦A��A��A�  A��`A�ȴA��A���A��;A�ĜA�?}A�"�A�jA�|�A�^5A�?}AڼjAڡ�A��A�l�AڸRA�AۅA���A�Q�Aܟ�A܃A�hsA�M�A���A�|�A�dZA��`A�7LA�
�A�  A��`A�ƨAۧ�Aډ7A�1A��A���A�Q�A؝�A�Q�A�9XA���A�G�A���A��TA�^5Aӧ�Aԇ+A�hsAմ9A֕�A��HA�-A�oA�+A��/A���A�G�A�ȴA԰!A���A��;A�ƨA�G�A�/A�x�AԑhA�v�A�ƨAҴ9A�7LAҁA���A��TA�5?AѸRA�;dA�-AρAΣ�A΋DA�r�Aκ^A�
A��A�ĜA�I�AΝ�A�$�A�
-=A͑hA�x�A���A�1A� �A�1A��A���A͍PA�r�A�Z
A�A�A�Z
A�A�A͉7A���A͸RA͟�A͇+A�VA�dZA�+A�"�A�
JA�Q�Aʙ�Aʰ!A�XA˟�A��A��A�7LÁA�hsA�M�A�5?A�
�A�A�+A�"�A�
�A��ADz-A��;A��/A�ƨAŮA��A�hsAƮA��A�~�A�
-=A�ffAĕ�A��A�~�A�M�A��A�A�M�A�5?A�
�A�A�ĜA�ȴA���A�\)A�bNA��A��A�jA��A�x�A��jA�  A�p�A��9A�C�A���A�33A�A�$�A�\)A���A�O�A��FA�|�A���A�A��PA���A�A�A�VA��A�
�A�dZA��A��#A��;A�1'A��HA��A�O�A��+A���A��A�
JA���A�  A�9XA�E�A�S�A��PA���A��+A��A��#A�ĜA�XA�C�A��A�A�A���A�jA�VA�?}A�+A�{A�VA��A��A��A�A��A��A��A��A��A��
-A�l�A�XA���A��A���A�XA���A��A�n�A��A��A��A�ĜA��!A�E�A��/A�I�A��PA���A�A�
A�jA���A�bA�O�A�
JA�K�A�
-=A���A��7A�t�A�`BA���A��^A�Q�A�=qA���A�9XA�$�A�bA���A�jA�
A��A�1A���A��wA�XA��A��9A�ȴA�Z
A�oA���A���A��FA�(�A�A�\)A�~�A���A��A�A�p�A���A��A�hsA�"�A�x�A��-A���A��A���A��A�z�A�+A��#A��A�
A�=qA�+A��PA�ȴA�+A��A�S�A�A�A�hsA��hA���A�\)A�I�A��yA��
-A�bA��!A���A�=qA��RA�XA���A�(�A���A��RA�5?A��DA�S�A���A���A�I�A���A�z�A�&�A�`BA�\)A�XA�%A�A�A���A��;A�1A�Z
A��+A�t�A�bNA�O�A��7A��A�$�A�oA�  A��A���A��A��DA��jA���A�M�A�;dA�+A��A�%A��A��TA���A��wA��A���A��A�1A�bNA��TA�=qA�-A��A��`A���A�/A�hsA���A���A��A�p�A�\)A�G�A�Z
A��uA��A�A��RA���A���A��^A���A���A���A�/A�jA�
JA���A���A��A��uA��yA��A���A��A�p�A���A�Q�A��!A�Z
A��uA���A�-A��A�K�A�5?A��-A���A�
JA�
A��A��;A���A��^A���A���A���A��`A�
�A���A��7A�v�A�"�A���A�|�A�jA�X [...]
- F
-P F
-� F
-� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F FP F� F� F
 F
P F
� F
� F
 F
P F
� F
� F
 F
P F
� F
� F FP F� F� F  F P F � F � F! F!P F!� F!� F" F"P F"� ��������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-�I���I��I��@I� I�� I�" I��I�� I�0`I�6 I���I���I�� I�A`I�
 I�r�I�� I�~�I��I���I��@I�d`I�H I��I���I�$�I��I�b�I��`I���I�
-`IX�I|�Iw�@It��It� It��Ir{�Ip� In��In1�Im Ij�`Ii\ Ig#@Ie\@Icd�Iaq I^G IYZ�ID,�I'�ID��IT-�IU�@IT܀IS� IRn�IP��IP
-�IN�@IM
�IKd�II� IG�`IFS at ID��IC�IA�@I=��I&C�I#9 I(��I0W I3��I4
�I4��I3��I1R`I0Y�I/@I-� I,]�I+E�I*� I)C at I'��I&]`I$�I

`I��I\�I
?�I��I@I��I& IQ�I`I��I& I\@I��I�@I��I��IӠI�@I��I�I
R�I
�@I
�I
- �I��H�@Hd�H�[�H�d�H™�H���H���I � I ��I �`H�V at H�� H���H�
 H��H��@H��@H��H�πH�K�H팀H� H�� H�/ H�	@H爀H��H� �H�C�H�]�H��@H��@H�A H��@H���H͔�H�M�HȠ H��H�� H���H�@H��@HŠ�H�� H� H�@H�� HĎ�H�, H³�H�$ H�:@H���H�@H�b H���H�@�H���H���H�t at Ha at H��@H� H���H�h�H���H� H�[�H��@H�
-�H�@H���H�ȀH��@H���H�4 at H���H�� H���H���H���H�H H�
 H�� H�G H�8�H���H��Hu��H�=�H���H�L�H�~�H�� H�� H���H�v at H��H�F at H�� H�X H|� Hmq H�y�H�b�H���H��@Hjt HQ� HF� HO� HXm H|�Hv� H`S�HX� H]`�H`��H[�H`� HM��H5� H3L HX��H_c�HhI Hj�HlV�Hq��Hu� H� H�� H~. Hx HtG Hu� Hx HuA Hy HyV Hx�Hzz�Hx� Hxf Hw� Hz< Hw_�Ht��Hs� Hp��Hn�Hh� HO
 H7'�HT& HdE�Hh5 Hif Hkx Hh��Hi� Hf� Hg�Hg' Hg�HfW�HcP�Hcq Hh�He. H]��HW��HVB HU� HT�HW< �������������������������������������������������������������������������� [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� Fx F
@ F
 F
� F
� ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-�3D��D��C�@ D9�D	|)D�D��D�D*=D=D�DW�D
)D
��D޸Dd{DND��DND	�3D	��D
\)D
�D
��D
-qD
-qD
�D
-�)D�{D��D��D��D�D
�D�=D#3D��DP�D %C��C��\C���C��C�J=C�Y�C�\)C�Q�C�` C��C��\C��C�33C��)C�,�C�g�Cگ\C�+�C�y�C֞�CѰ�C�O\C�NC�޸C�޸C�\)C�C�u�C���C��C�~�C��C�]qC���C��C��\C��{C�xRC���C���C�t{C��C��C���C�Z�C�\)C���C�l�C�g�C�W
-C�
)C�o\C��C���C���C��C�� C�RC���C�RC}�RC�]qC�EC]�=C*CJ�\C=!HCCǮCF��CO&fCY�fCg@ C^p�Cd:�Cg��Ci�RCh�fCg��Ca�qCnp�Ci����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-�fC33Cu�C.B��
-B�33BB��HB�p�B�33B��fB��B�
�B�u�B�
5B�s3B���B�
B���B�z^B�g�B���B�B��B��)B��\B�Z�B��LB���B�@ B�<jB��VB�\�BBzdZBt�+BoE�Bi�Bbv�Bb8RB\
JBX��BTZ
BJ�)BJÖBFq�BB\B at n�B:�B/�B#��B,�JB*�B&t�B#�B��B�B��Bl�B��B&�B
��B
-�B49A�-A��uA�1'A��A���A�l�A�+A��
-A���A��A�v�A��;A��A�-A�ƨA�M�A�(�A��A��9A�-A�33A� �A��A�9XA��!A�Q�A��uA�/A� �A�(�A���A��mA���A��A^��A,�DANbNA>�AFbNAI��AUhsA`�Ai%AL��AP��AU;dAd~������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ [...]
-H F
 F
� F
� F
h F0 F� F� F� FP F F� F� Fp F8 F  F� F� FX F  F� F� ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� [...]
-��E33E9�D�I�D��D��3DڦfD��3D�I�D�C3D�ffD�ffD�fD�
�D���D���D� D���Dq�3D}fDx��Do;�Df
-D^�=DW�DQ�DI5DA�3D;�{D2O\D/
qD)^�D#�\D
�fDI�D8�D
��D
-�Dj=D`�C��)C��C�9�C�H�C��qC��C�u�C�q�C���C��C��{C�` C���C�ffC���C�<)C�NC�XRC�8RC�5�C�W
-C�h�C�]qC|��Cr��Cc�C^��C]
-C[��CW\)CRT{CL� CFٚB�ffC	�HC6�C5c�C2k�C-h�C(�HC%��C!{C

�C�qC�)C

�C�qC�C��C�HC޸B�
-=B�\B�B�B���B�k�B�z�B�z�BՔ{Bҙ�B�@�B��DB�,B��9B�q�B�ڠB�� B��;Bp[#B���B}��Bw�BB}��B�
�B�kB�9XB��RB���B���B�'m������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ [...]
-  F
- F
- F
- F
-  F
-( F
-0 F
-8 F
-@ F
-H F
-P F
-X F
-` F
-h F
-p F
-x F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
-� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
  F
 F
 F
 F
  F
( F
0 F
8 F
@ F
H F
P F
X F
` F
h F
p F
x F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F
� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F� F  F F F F  F( F0 F8 F@ FH FP FX F` Fh Fp Fx F� F� F� F� F� F� F� F� ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  ?�  [...]
�B�
-B��PB�\�B�B�/B��B�ՁB�>�B��3B�B���B�,B�a�B�F�B��ZB�*B���B��B���B�yXB��1B�bB���B�QhB��TB��=B�e�B�L�B�3�B�e�B��B��+B���B�ܬB�\�B�CB���B�v�B��LB� �B��oB���B��uB�U�B�;�B���B�l�B��;B�xRB��B��B�`�B��=B�h�B��^B��B��1B��-B��`B��PB�jB�RoB��DB�h�B�P�B�8RB�!HB�S�B�<jB�$ZB�ĜB��B���B�xRB��yB���B��sB���B��B�1�B�>wB�
B�hB�E�B�B�ǮB���B��B��B��?B��mB���B�
�B��TB�:�B�k�B��}B�9�B���B��B���B���B�E�B��B�
�B�B��BB��DB���B��B�6FB�.�B�-B�2-B�)�B��B�[#B���B���B�
-B���B�+�B�uB��bB��sB��B�B�[�B�J�B���B�z^B�!�B�VB�<�B�$ZB�
DB�33B���B�_�B���B�r�B��B�I�B��B�ևB�B���B�{B��jB�T�B�<�B�$�B���B��B���B�MPB�5�B��DB��B�8RB�#TB�{�B��XB��#B�uB�g�B��B�|�B�
�B�PbB�6�B�C�B�-B��yB� �B���B�b�B�J=B�3�B�f�B�S�B���B��/B��B�\B�?}B��oB�,�B��B��+B�ۦB�ĜB���B��B�ևB�� B�@ B���B�|�B��B�@�B��B��wB���B��B���B�
-B�I7B��BB�dZB�MPB���B��B�ÖB�F�B�0!B���B�!HB�NVB��B� �B�V�B���B���B�(�B��JB���B�ՁB���B���B���B�=�B���B���B�B�B�#TB��wB��B�DB�-�B��B��dB�t9B�]�B�G�B���B��oB��B�n�B��B��B�,�B�
PB��B�hsB��B���B���B��
B��3B��bB�.B���B��
B���B�6�B�+�B��bB���B���B���B�B�X�B���B��XB�
�B���B�nB�XB���B�,�B�
-B�B��B��JB�gmB�B���B��B��B��B�G+B�1'B���B�S�B��PB�ǮB���B�
/B��BB���B��B�o�B���B�oB��B���B���B��mB���B��wB���B���B���B�mB�X�B���B�ևB�H1B�ۦB��+B�oB�9XB�$�B�1�B���B��9B�z�B�ffB��FB���B��B�d�B���B�}B�jB��
B��B�^5B���B�4�B� BB���B���B���B�oB��XB���B�}�B�$�B���B��RB��TB���B�#�B���B�-�B�]�B���B��#B��%B�q�B��FB�YB�޸B��=B���B��HB�6FB��JB���B��mB���B��B��5B��/B�
�B���B�|jB�ݲB�a�B�	7B��!B���B��+B�r�B��RB�\�B���B���B��fB��B�"NB��RB�i�B��wB���B�B�&�B�V�B�B
B�.B�q�B�
B�%B��-B��%B��`B�6�B�"�B��B�
PB���B�<�B���B�+�B�/�B�{B��#B�%�B��hB���B�+B�B���B���B�;B�
�B���B��%B�s3B� BB�
PB��^B�'mB�t9B��HB�n�B��jB��yB�ևB�D�B���B�cTB�5?B�!�B���B�]�B��B�
/B�K�B�ՁB��)B�F%B�O\B�ۦB��1B�4�B�
B��B��)B��7B�vFB���B���B�>wB�k�B�YB�'mB�8�B�K�B���B�aHB�	�B�ՁB�"�B�q'B��BB�oB�
5B���B�\�B�J�B�8RB�d�B��!B���B��=B�T�B�߾B�n�B��B��uB�EB�p�B�8RB�B�-�B�y�B�gmB���B�;B���B���B��PB���B��
-B��+B��B�yXB���B�t�B�C�B��B��ZB��oB���B�  B�+B��-B�9XB�d�B���B�A�B�/�B���B��\B�a�B�PbB��B��3B���B��bB�~�B���B�\)B�J�B�qB!�B~�+B~dZB}�VB}l�B}I�B|9XB{�)Bz�Bx^5BwǮBw��Bw��Bx��ByP�By�;Bz��B{�!B}.B}
JB|�yB|P�B|.B|
JB|aHB|?}B{0!B{VB{bNB{�LB|G�B|��B|�B}��B~P�BZ
B8RB�VBl�BI�BcTB���B�t9B��wB�'�B���B�/B���B��\B�cTB��B��B�fB�
�B�g�B�W
-B�E�B�4�B���B��yB�ՁB� �B���B�d�B�5�B��B�B� BB��1B���B���B�ffB��'B�ܬB��DB��^B���B���B���B���B�c�B�R�B�A�B�0�B�z�B�iyB���B���B�
�B�8RB��yB�|jB��B�)B~�B}B|l�B}9XB~C�B~��B,B�X�B���B�
-�B���B�%`B�{B�@�B�M�B�y�B�
PB��}B���B�`�B�O�B�{dB�jB�Y�B�H�B�7�B�&�B�q'B���B�B��B��B��B�Y�B��HB�
PB�X�B��B���B���B�gmB�VB��7B�\)B�J�B��jB�RoB��1B��B~�B~W
-B~6FB~{B~k�B~I�B~��B~� BoB�NB��B��B~�PB}�XB}��B}�-B}�hB}�sB}ƨB}/B}�B~R�B^5B=qB�B~��B~bNB~�XB~��B}��B}+B{iyBy6FBw{�Bw[#Bw;dBx�?Bz0!B{�B}-B}��B}��B}��B~L�B~�BB�!B��B��BL�B,B~�oB}��B|�B|�VB|�ZB|ÖB|��B}6FB~B~��B~v�B~VB}�B|�yB|ȴB|��B|��B}�B}p�B}P�B|�RB|\)B|<jB|�B|7LB{�#B{D�B{��B{y�B|��B~B~��B~w�B~W
-B}�
B}bNB}�B~ĜB�$�B���B��B���B�z^B��B�
/B���B�u?B�d�B�T{B�DB�3�B�#TB�nB� �B�bBĜB+B�B�
�B�t9B���B�F�B�6FB�b�B�RoB�B
B��B��ZB�<jB��B~�oB}�wB|�B|�\B|o�B|N�B|��B|��B}�bB|F�B{�!ByA�BwuBv� Bv��Bw)�Bx/Bx�Bw�Bw��Bw�'Bw
�Bwr�BwȴBvhBt��Bt�-Bt��Bu!�Bv$�Bv%BvZ
Bv;dBt��Bs��Br�RBq
-=Bq^5Bq�'Br>wBr�oBr�fBss�BsT�BrÖBrl�BrM�Br/Br�jBs�jBs��Bs� BsaHBsB�Brw�Bq=qBp�BqBq�PBq�BBrm�Br��Bs�Br�Bq�Bq,Bp��Bp}�Bp��Bp�3Bq?}Bq!�BqBp�`Bp
�Bp  Bop�Bn��Bn�JBnn�BnP�Bn�)Bn�wBn0!Bm�
Bm�jBm��Bm�
BmdZBm�BnA�Bn#�Bn%Bm�sBns�BnVBl�'Bk|�Bi�/Bh�Bh��Bh�HBg�yBfN�Bg
DBg�oBhP�Bh�Bh�jBg�PBgBf�mBf��Bg�Bgk�Bh`BBiVBi9XBh�Bh�oBhu�Bh!�Bg��BgVBfN�BeƨBe=qBd{BdcTBdG�Be9XBf,Bf�sBgo�Bhe`BiȴBk/Bk�Blz�Bl]/Bl@�Bj��BiBg��BgoBf�7Bf�Bg`BBhVBh9XBh
�Bg\)Bg?}Bg#�Bg+Bf�BfbNBfF�Bf��Bg
�Bg
Bf [...]
-Bd�^Bd��Bd�Be	7BeYBe��Bf0!Beq�Bd�BdbNBdF�Bd+Bd�fBem�Be�qBf�'Be�Be�BeN�BdƨBd�Bd��Bd�;BdÖBd<jBc� Bb�VBbr�BbW
-Bb��Bb��Bb�#Bb�}BcD�Bc(�BcVBbQ�Bb7LBa�'Ba��Baz�Ba_;B`;dB_M�B^��B^y�B^ȴB^�NB_0!B^�B^]/B]�
B]�}B]��B]�B^t�B_aHB_�B_��B_�TB_ȴB^�#B]
�B\33B\�B\ffB\�9B\��B\~�B[��B[�NB[ǮB[F�BZ�hBZbBZ]/BZB�BZ(�BY��BY'�BYVBYZ
BY��BY�PBY��BY�JBY?}BX�}BX��BX%�BV��BU��BU�/BU_;BT�HBT��BT�BT��BT�BBU,BUoBT1'BS�
BRo�BQ�BS6FBT�BT��BV?}BU�\BUu�BU\)BUB�BU��BU��BVXBV�BW!�BV>wBU�BUt�BT��BU��BV$�BVp�BV�jBV��BU�}BU\BT.BS�BS
BR�yBS49BS�'BT_;BT�/BU'�BU\BT��BT�/BT`BBS�'BS49BS�BSffBSL�BR��BSM�BS��BTG�BT.BT�BS [...]
-BB~�B@��B?N�B@�B@�^B@��B@�\B@�B?'�B?��B at 9XBA+BAL�BA6FBA �B@�!B?�RB>�B>�B>ÖB?1B>�B?e`B@B at vB at aHB@��B@�BA_;B@��B?��B@;dB@%�B@bB?s�B>��B=�9B<��B;��B;_;B;J�B;6FB; �B;
JB;{�B;�}B;�B;=qB:��B;uB;W
-B<�B<�yB;��B;B;G�B;�LB;
�B:�'B:��B:�1B:r�B:^5B:I�B:5?B9ȴB:cTB:��B:�wB:��B:�{B9��B9�bB8��B7�;B6�B6]/B5�B549B5u�B5aHB5��B6e`B6��B7��B80!B8r�B8^5B7�B6/B6�B6]/B7�B7�ZB8��B9C�B9/B9�B7~�B5hB3T�B2�B2�B2p�B2]/B4�B5�'B6s�B6`BB6��B7e`B7Q�B6e`B5��B4�oB3T�B2��B1�3B0��B/��B.dZB-33B-�B.}�B/8RB/%�B/�VB/z�B/�^B1��B3W
-B1t�B/n�B-m�B+��B,+B.��B0�B1�wB3%�B1�B1+B0�B0�BB0y�B0R�B/�!B/7LB.�}B.
�B-S�B,�9B,�VB,�TB-aHB.1B/
B/��B0S�B0B/�5B/uB.�B--B,�FB,�hB,k�B,��B,�B-jB-��B-�B.�B-�B-|�B-W
-B,ffB+��B*�'B*�JB*�RB+
JB+�7B,/B-&�B-{�B-W
-B,�LB,�oB,m�B,H�B,#�B+��B+�
B+e`B*v�B)�=B)�B(��B(~�B([#B(�+B(�-B(�FB(�NB)VB)aHB)�PB*2-B*�B+S�B+��B+��B,
B+�/B+�XB+��B+p�B+L�B*�B*�9B*�\B*�jB*��B*s�B*  B)�JB)@�B)
�B(��B(��B)y�B)��B)��B*��B*��B*��B+N�B++B*=qB)Q�B(gmB(D�B( �B'��B(Q�B(}�B([#B(7LB({B'�B'� B&�fB&t�B&B%
�B$:^B$�JB$jB$G�B$%�B$B#�HB#�}B#��B#1B"�fB"ĜB"��B"�
B"��B"�'B"�\B"�^B"��B"w�B"VB"49B"uB!��B!�B �B ��B cTB B�B l�B K�B +B 
-=B Z
BȴB\)B;dB�BE�B��Bt�B�B�B��B��B�B�XB��B-B
�fB
{�B
bB
�B
��B
@�B
 �B
�LB
��B
v�B
VB�B��B�B!�Bo�BO�B1'BhB;dB�B��B�/Bt�BVB6FB�B��B!�BK�B�ZBĜB]/B>wB�3BL�B.BbB�B�B��BH�B+B
JB�B��B�'B�oB	7B�B�%BgmB�bBr�BS�B6FB�B��B�)Bw�B��B�B��B�'B��B�BBB��B��B�JBn�BP�BW
-B9XB�B��BB�fBȴB�B�VB�uBv�BYB;dBA�B#�B+B�yB��B��B�?BF�B)�B
JB5?B�B��B#�B��B^5B�B�jB��B�BffBB�sB��B�B�uBv�BZ
B>wB!�BB�yBhB\)B�B�B�bB�#BW
-B��B��B{B�9BT�B��Bt�B�B
��B
z�B
_;B

B
�fB
��B
�!B
�{B
y�B
��B
�%B
��B
�3B
49B
�B
aHB
F�B
m�B
��B
�/B
B
��B
�JB
VB
�'B
��B
{�B
�B
-��B
-F�B
-,B	��B	��B	{�B	aHB	%B	-B	s�B	��B	� B	ƨB	�B	�oB	x�B��B��B�1B.BT�B:^BaHBF�B�PBs�BZ
B@�BffBL�B33BYB��B�`B��B�-BXB>wB$�B�BS�B:^B �BF�B-B{B��B��BJ�BoB��B��B�1Bo�BW
-B=qB$�B
JB�B�#BBk�BR�B:^B�TB��B�3B�B�}B��BP�B9XB �B�yB��B�XB��B�7B49B�BB �B ��B �dB ��B �JB s�B \)B 1A��HA��-A�
-=A��#A��A�z�A�bA��HA�;dA�
JA�VA�&�A�33A�z�A�M�A�
�A��A���A��A��A��A�VA�&�A�33A�|�A�M�A���A��;A��!A��A�S�A�&�A���A�S�A���A�n�A�?}A���A�n�A���A�(�A�A� �A��A�9XA�
JA��;A��-A���A�XA��RA��A��A�bA�r�A�E�A��A�`BA�33A�1A�+A�\)A�/A�A��
-A�A�~�A�ƨA�A�n�A���A��A�x�A��A�%A�hsA�=qA�oA��mA�jA�hA�ffA�A��A�p�A�E�A��A��A�ĜAA�n�A훦A�p�A���A�A�oA��mA��A��A�S�A�(�A�  A�C�A��A��A�ƨA�/A�%A��#A�-A�7A�`BA�5?A�z�A�O�A�&�A��A�x�A�O�A�&�A���A���A��A�A�XA�/A�%A��/A�9A�DA�bNA�9XA�n�A��A�-A�
�A���A���A�n�A�E�A�9A�DA���A�1'A��A�VA��mA���Aߗ�A��#A߲-A���A���Aߥ�A�~�A�XA�ƨAޟ�A�x�A�Q�AޓuA�l�A�z�A޼jAޕ�A�n�A�G�A� �A���A�jA�bA��AۋDA�1'Aڣ�A��A�XAڗ�A�r�A��mAۏ\A�A�E�AܼjA�ffA�?}AݶFAݏ\A���A�=qA�|�A��A���A�;dA��A؉7A�dZA�?}A��A��A [...]
-AöFA�9XA��A�A�O�A�/A�VA��A���A��A��\A�n�A�M�A�/A�VA��A���A��!A��\A�{A���A���A��FA���A�v�A�XA�7LA��A���A�33A�{A���A���A��FA���A�v�A�XA�9XA��A���A��#A��jA���A�~�A�`BA��mA�ȴA���A��DA�l�A�M�A���A��FA�?}A���A�~�A�1A��yA���A�+A�
JA��A�S�A�5?A��A���A�XA�9XA�ĜA���A��7A�l�A���A�1A�A�A�z�A��7A�?}A� �A��A�9XA��A�|�A�^5A��A���A��!A��uA�v�A�XA�;dA�
�A�  A��TA�
�A�  A��HA�E�A�&�A�
-=A��A���A�1A���A�x�A�\)A���A���A��+A�jA�M�A�/A��wA�M�A�1'A�{A���A��/A���A���A��#A��wA���A��A��jA���A�1'A�{A�K�A�/A�oA���A��+A��A���A�dZA���A��A��wA���A��A��jA�
�A�
A��`A���A��A��`A�ȴA�\)A�?}A�XA��yA�S�A��mA�|�A�bNA�
�A�
A�bA���A�+A�bA�E�A��A�n�A�+A���A�%A�t�A�
-=A��A�`BA���A��PA�r�A���A�%A���A��yA���A�C�A�(�A�A���A�C�A�A��A��A�
�A�%A�z�A���A��-A�(�A�ĜA��A��uA�z�A�bNA�I�A��`A���A��\A���A���A��FA��mA���A�&�A�VA�?}A�&�A�ȴA���A�-A�;dA�"�A�S�A�;dA�"�A�VA��+A��;A�oA���A��HA�ȴA��!A���A�~�A��-A��wA��A�"�A�
-=A�dZA�I�A�1'A��A�  A��mA���A��FA���A��A�l�A�S�A���A��9A�O�A�7LA� �A�1A��A��
-A��wA���A��\A�v�A�^5A��hA�x�A���A��RA��yA���A��^A���A��7A�p�A�VA���A��;A�ƨA��!A���A���A��-A���A�9XA��-A�Q�A��A�l�A�S�A�=qA�n�A�z�A�dZA���A�|�A�ffA�%A���A��9A�S�A�=qA�$�A�VA��A��;A�bA�
�A�M�A�7LA� �A�Q�A�;dA��\A�x�A�bNA�I�A�33A��!A�Q�A��A��RA���A��7A�-A�{A���A��mA��7A�r�A�\)A�  A�ƨA��!A�Q�A�;dA�$�A�VA�?}A�(�A�5?A�ffA�O�A��A��/A���A��PA�v�A�=qA�&�A�oA���A�A��A���A��A�G�A�1'A�
�A�%A���A��RA���A��DA�S�A�=qA�(�A�oA���A�ĜA��A���A��A�n�A�XA� �A�
JA���A��HA���A��FA�~�A�hsA�S�A�= [...]
-=A���A��HA���A��^A���A���A��wA���A���A�A�A�-A��FA�bNA��A���A�C�A�1'A��/A�
-=A�5?A�"�A�M�A���A�(�A�{A�A�A�-A�Z
A���A��uA��A�l�A�XA�E�A��\A�;dA��+A���A�"�A��hA� �A���A�|�A�hsA�VA�C�A��A���A�bNA��A��A���A��A�\)A���A���A�
A��A��#A�ƨA��9A���A�M�A�9XA��mA���A���A�M�A���A���A���A��`A�t�A��`A�7LA���A�v�A�&�A��
-A�ĜA��-A���A��PA�z�A�hsA�VA��A�n�A���A��TA�VA�9XA��A��A��A�ƨA��9A���A�O�A�=qA��A��A�1'A��HA���A��A�O�A�=qA�;AC�A
�A~��A~��A~�9A~�\A~jA~��A~��A~v�A~Q�A~1'A~
JA}�mA}A}��A}|�A}XA}7LA}oA|v�A|Q�A{|�Az�`AzI�Ay
Aw�^Avr�AvQ�Av-Au��Au�AuƨAu�;Av1'Av��AwVAw��AxbNAx=qAx�\Axn�AxM�Ax��Axz�AxZ
Ax5?Aw��Aw|�AwXAw7LAw�Av�Av��Aw"�Av�DAvjAu��Au�-At�HAs�
-As|�Arv�Aq�TAq�7AqdZAqC�Aq"�Aq
Aq�Ap��Ap��Apz�ApZ
Apr�Ap��AqoAqdZAqx�Aq��Aq��Aq�7AqhsAq�FAq��Aqt�AqS�Ap��Ap-Ap
JAo�-Ao�hAop�An�/An�jAn-Am��AmC�Al�9Al�uAlAk�TAl1'AlbAk�Ak��Ak�Ak
�Aj��Aj�/Aj��Aj��Aj~�Aj^5Aj=qAj
�Aj  Ai�;Ai�wAi��Ai|�Ai`BAi?}Ai
�AhZ
Ah9XAh�Ah��Ag�#Ag�^Ag/AgVAg\)Ag�;Ah-Ahz�Ah�uAh�HAhVAh  Ag�;AgO�Ag33Af��Af�+AeAe��Ae�Ad��Adn�Ac�Ac&�Ab��Ad^5AdA�Ad �AdAc�Ac�hAcp�AcO�Ac33Ab�/Ab��Ab��Ab�Ab-AbbAa�Aa��Aa�Aa`BAaC�A`�A`��A`�9A`�uA`A�A`$�A`A_�-A_��A_t�A_XA_% [...]
-=AZ�AZ��AZ~�AZbNAZE�AY�AY�
-AY�7AYl�AYO�AX��AX�HAXĜAXr�AXVAX9XAW�AVjAVM�AV��AVz�AVĜAV��AV$�AU��AU�AU��AV�AV-AVv�AV��AV=qAV �AVAUO�AT��ATQ�AS��AS�AS
AR�`AR��ARM�AR1'AR{AQ��AQ�#AR$�AR1ARQ�ARȴAR�AR�uAQ�;AQdZAP�`APȴAP�AO��AO�AOdZAOK�AN��AN�ANffAM�AM��AM�-AM7LAM
�AL��AL�+AL=qAL �AK��AK+AJ�!AJ��AK;dAK"�AKdZAKK�AK`BAKG�AK+AKoAK�FAK��ALr�ALVAK�#AK�hAK�AJ��AI�AIx�AI
AHZ
AH=qAH$�AH1AH �AHbNAH��AH�\AHr�AHZ
AG�;AGhsAF��AF��AF1'AF�AE��AE�TAF(�AFjAF�/AG"�AGhsAGK�AG33AG�AF��AF(�AFbAFVAF9XAF �AFffAFI�AF1' [...]
-=A@�A@~�A?�;A?l�A?S�A?;dA>ȴA?
-=A>�A?33A?�A?
A>�\A>v�A>^5A>E�A?VA?O�A@�A@  A?�mA?��A?�FA>�jA=ƨA=S�A=;dA="�A=
-=A=K�A=�^A=��A=�7A=p�A=XA=?}A<��A<�DA<r�A<Z
A<A�A;��A;�^A;��A;33A;�A;
A:��A:M�A9�;A9p�A8��A8ffA8��A8�\A8z�A8�RA9"�A9dZA9K�A933A9
�A8�!A8��A8(�A7�mA7��A7�^A7K�A6Z
A5�A6-A6A�A6~�A6��A7+A7hsA7S�A7;dA7"�A7VA6v�A61A5�A5�A5�A5
A5?}A5|�A5hsA5O�A5;dA4��A4bNA3��A3`BA2��A2bNA2I�A25?A2
�A2Z
A2E�A2�A2��A2~�A2jA2VA1�wA1S�A0�A0��A0A�A/�#A0�A0  A0ffA0��A1`BA2
�A2�A3hsA3��A3�hA3|�A3dZA2z�A1�wA0��A/�A.�RA-�A,��A,=qA+\)A+�wA+��A,9XA, �A,5?A, �A,Z
A,E�A,�A,n�A,VA,A�A,-A,�A,A+�A+�A+p�A+
-=A*��A*�RA*��A*�\A*(�A*{A*  A)�A)�
-A)�wA)��A)�mA)�A)
�A)%A)C�A)/A)hsA)S�A)hsA)S�A);dA)&�A(�A(�+A($�A(bA'33A&��A&E�A&1'A&�uA&~�A&�RA&��A'S�A'?}A'+A'�A'S�A'?}A'+A&ĜA&�!A%�#A%x�A$�A$=qA$v�A$�!A%oA$��A$�yA%"�A$��A$9XA#�
-A#t�A"��A"
�A!�^A!\)A ��A!33A!
�A!XA!C�A!33A!hsA!|�A!�FA!�A!�#A"9XA"r�A"^5A"I�A"5?A" �A"bA"I�A!�mA!��A!t�A!`BA �/A ȴA �9A ��A �\A z�A ffA Q�A A�A��A�AAIRA6AH�A5?A
�PA
�yA
�9A
�>A�A
�AD�A1�A
OA
A
�CA
�A
�A
��A
\)A
�.A
3�AiDAVmA�PA�A
h�A
(A
��A
\�A
ߤA��A�A 
�A VA��A�A`BA
��A
�VA
�[A
1AbNA�1A��A�Ac�A��AC-A�mAk�AY�A  A5�Aj�AXyAFtA4nA"hAɆAL�A�CA��A�A�A]�AK�A��A($A��A
�A�A/�A
OAR�A�A�A�sA9�A��AhsAW?A�/A��A�^A4A  A3�A�AA[�A�9A-�Ab�A��A�A�A�A;A?A8
AxA��A
OA`�A�A�KA
�AtTA��A��A@OA��A-�A
�AO�A>�A-�A
�A
xA�FA�zA�FA
A��AVAU2A
�wA
_A
QA
�jA
�A
-�FA
-��A
-��A
-ƨA
Z�A
͟A
 \A
�A
A�A
�5A
:*A
-�YA	�:A�vA�5A��AϫAߤA�A��A��A	c A	��A	ĜA	s�A�oAQ�A�4A��A��A{A�A�-AB[A�uA�{As�A��A�,Ae,A�A�zAY�A�XA��A��A�8A��A
AF
A�SA�A��A�
A��A��A8
A(�A�$AjA��A
�A;�AkQA�0A�
Az�A��A}VAVA"hA��A�AhsA�A7LA($AVmAGEA8�AffA�hAH�A �"A �cA
CAhsA��A��A;�A � A ��A 
@�+�@�V@�iD@�K�@���@���@��@��j@���@��A@�e�@�H�@��4@��@�@O@�6�@�7@���@���@��3@���@���@�n/@�}�@��@�:�@�
�@��@��@�x�@�C�@�($@���@��p@�?@�#:@�z�@�1@�c�@��+@�M�@���@�h [...]
\ No newline at end of file
diff --git a/calib/cal/mask_corvel.fits b/calib/cal/mask_corvel.fits
deleted file mode 100644
index fdf9685..0000000
--- a/calib/cal/mask_corvel.fits
+++ /dev/null
@@ -1,104 +0,0 @@
-SIMPLE  =                    T / Standard FITS format: NOST 100-2.0             BITPIX  =                  -32 / No. of bits per pixel                          NAXIS   =                    0 / Empty Prime data matrix                        EXTEND  =                    T / FITS extension may be present                                                                                                                                                                                  ORIGIN  = 'E [...]
�   ?�      E\�E\�f@���   @����   ?�      E\��E\�
@���`   @���`   ?�      E\��E\�.@��y�   @����   ?�      E\��E] ]@����   @��
�   ?�      E]^E]�@��K�   @��W�   ?�      E]95E]9�@��&�   @��2�   ?�      E]Y�E]Z
@��5@   @��A`   ?�      E]g�E]h(@����   @��    ?�      E]v�E]w(@����   @���    ?�      E]�E]�z@��    @��@   ?�      E]�`E]��@���    @���    ?�      E]�%E]��@���   @����   ?�      E]�7E]��@����   @���    ?�      E]�XE]ٹ@��+    @��7    ?�      E]�NE]�@��i�   @��u�   ?�      E]�>E [...]
    ?�      E^;E^;w@��b�   @��n�   ?�      E^D�E^E9@�Ț�   @�ȧ    ?�      E^W>E^W�@����   @����   ?�      E^wE^wd@���@   @���   ?�      E^�ME^��@�Ӊ�   @�ӕ�   ?�      E^��E^�3@�ֺ    @���`   ?�      E^�E^�i@�ށ    @�ލ    ?�      E_
�E_
R@��    @��@   ?�      E_/�E_0V@����   @��
-�   ?�      E_8�E_9\@��`   @��+�   ?�      E_FE_Fx@����   @���    ?�      E_SSE_S�@��j`   @��v�   ?�      E_��E_�
@��@   @��#�   ?�      E_ÃE_��@��p`   @��|�   ?�      E_�qE_��@��.    @��:`   ?�      E`�E` @� S�   @� `    ?�      E`D�E`E	@���   @��    ?�      E`[�E`\/@�
y�   @�
��   ?�      E`w
E`wn@��   @���   ?�      E`�HE`��@��    @��@   ?�      E`��E`��@��   @���   ?�      E`��E`�@�6    @�B`   ?�      E`׼E`�@���   @��   ?�      E`�E`�
@�
7@   @�
C�   ?�      E`�dE [...]
Ec
z@�a��   @�a�@   ?�      Ec�Ec@�b�    @�b�`   ?�      Ec)Ec)�@�e#�   @�e0@   ?�      Ec6�Ec6�@�fЀ   @�f��   ?�      Ec>�Ec?I@�g��   @�g�    ?�      EcX�EcY@�k`   @�k"�   ?�      Ecv�EcwX@�nޠ   @�n�    ?�      Ec��Ec�-@�ty@   @�t��   ?�      Ec�Ec�d@�w     @�w
�   ?�      Ec�MEc�@�|��   @�|�    ?�      Ed�Ed0@��y�   @���    ?�      Ed�Ed�@��r    @��~�   ?�      Ed,Ed,u@���    @����   ?�      Ed8�Ed9W@��
`   @��*�   ?�      EdBEdB�@��O�   @��\`   ?�      EdY{EdY�@��/`   @��;�   [...]
@��U    @��a�   ?�      Ef'�Ef'�@����   @���`   ?�      EfN�EfO@���@   @����   ?�      EfY2EfY�@��&@   @��2�   ?�      Ef��Ef�.@��9    @��E�   ?�      Ef��Ef�B@���   @��(@   ?�      Ef�mEf��@�ލ�   @�ޚ@   ?�      Ef�bEf��@���@   @����   ?�      Eg!�Eg!�@��0    @��<�   ?�      Eg=�Eg>J@�缠   @���@   ?�      EgOtEgO�@���   @���    ?�      Egs{Egs�@��o`   @��|    ?�      Eg|1Eg|�@��    @���   ?�      Eg�/Eg��@���   @���   ?�      Eg�Eg�y@����   @���    ?�      Eh�Eh	%@��   @�$�   ?�   [...]
I    @�
U�   ?�      Ehv�Ehw'@��@   @���   ?�      Eh�>Eh��@�g�   @�t�   ?�      Eh�Eh�h@��@   @��    ?�      EhˉEh��@�q    @�}�   ?�      Eh�Eh�}@��    @�Ϡ   ?�      Eh�?Eh��@���   @�Ԁ   ?�      EiO�EiO�@�)�    @�)��   ?�      EiZ�EiZ�@�+Q�   @�+^�   ?�      Eii^Eii�@�-+�   @�-8`   ?�      Ei�>Ei��@�1��   @�1Ԁ   ?�      Ei� Ei�f@�3     @�3
�   ?�      Ei�NEi��@�5��   @�5��   ?�      Ei��Ei�&@�7W�   @�7d�   ?�      EiһEi�!@�:W`   @�:d    ?�      Ei�Ei��@�=�`   @�=�    ?�      EjTEj [...]
�   @�G`   ?�      EjDWEjD�@�H��   @�H��   ?�      EjQ&EjQ�@�J$�   @�J1�   ?�      EjY�EjZ@�K6    @�KC    ?�      Ejp'Ejp�@�N�   @�N�   ?�      Ej��Ej�M@�Q
�   @�Q)�   ?�      Ej��Ej�@�Ru�   @�R�@   ?�      Ej�KEj��@�T	`   @�T    ?�      Ej�JEj��@�U)@   @�U6    ?�      Ej�2Ej��@�Vf@   @�Vs    ?�      EjāEj��@�X�    @�X�    ?�      Ej��Ej�N@�[]    @�[i�   ?�      Ej�FEj�@�\��   @�\��   ?�      EkXEk�@�`�    @�`��   ?�      Ekc�Ekdc@�l`   @�l�`   ?�      Ek�oEk��@�s-�   @�s:�   ?�  [...]
-
@��4`   @��A`   ?�      En
)En
�@�å    @�ò    ?�      En'�En(3@���`   @��`   ?�      En/�En0!@���    @��    ?�      EnF(EnF�@���    @���    ?�      EnP�EnQI@��
    @��)    ?�      En\�En]?@�˚�   @�˧�   ?�      Enp:Enp�@��@   @��@   ?�      Enx�EnyB@��@   @��(@   ?�      En��En�,@��X�   @��e�   ?�      En�zEn��@�ُ@   @�ٜ`   ?�      EnְEn�@���    @���    ?�      En�!En�@��D    @��Q    ?�      En��En�I@��
    @��)    ?�      Eo�EoV@��=�   @��J�   ?�      Eo%�Eo&@��@   @���`   ?�   [...]
@��@   @��`   ?�      Ep(Ep�@��    @��    ?�      Ep.%Ep.�@�Ġ   @���   ?�      Ep7�Ep8X@���   @�
    ?�      Epm�Epnh@�
��   @�
�    ?�      Epy�Epz @�6�   @�D    ?�      Ep��Ep�"@�W@   @�d@   ?�      Ep�TEp��@�J�   @�W�   ?�      Ep��Ep�_@�>�   @�K�   ?�      Ep�$Epό@��   @��   ?�      Ep�
-Ep�s@��@   @��`   ?�      Ep��Ep�a@�
�    @�

    ?�      Eq�EqY@�"�    @�#
    ?�      Eq%�Eq& @�$��   @�$�    ?�      Eq.vEq.�@�%��   @�%�    ?�      Eq=:Eq=�@�'�@   @�'��   ?�      EqvJEqv�@�.�@   @�.�`   ?�      Eq��Eq�L@�4
`   @�4)�   ?�      Eq�WEq��@�5��   @�5�    ?�      Eq�hEq��@�;M    @�;Z@   ?�      Er
�Er
]@�C��   @�C��   ?�      Er-�Er-�@�E��   @�E��   ?�      Er5�Er6-@�F�`   @�FŠ   ?�      ErjcErj�@�ML`   @�MY�   ?�      ErzErz�@�OC    @�OP`   ?�      Er��Er�S@�P]    @ [...]
-]�   @�
-k    ?�      Ex�{Ex��@��`   @��    ?�      Ex�
Ex�@�
��   @�
�`   ?�      Ey
�EyI@�!��   @�!�    ?�      Ey_Ey�@�"��   @�"ـ   ?�      Ey �Ey!e@�$    @�$,�   ?�      Ey)wEy)�@�%.�   @�%<�   ?�      Ey3Ey3�@�&b�   @�&p@   ?�      EyBOEyB�@�(I�   @�(W�   ?�      Eyg�Eyh@�,�@   @�-�   ?�      Ey��Ey�@�0�   @�0"@   ?�      Ey�uEy��@�5��   @�5�@   ?�      Ey��Ey�3@�8�   @�8&`   ?�      EzHEz�@�@�    @�@��   ?�      Ez�Ez$@�B�   @�B$�   ?�      Ez
Ez
�@�C    @�C�@   ?�      EzpEzp�@�N�   @�N�   ?�      Ezy�EzzF@�O;    @�OH�   ?�      Ez�'Ez��@�Pd�   @� [...]
-E|�y@��a@   @��o    ?�      E|��E|�
@��U�   @��c�   ?�      E|�E|��@���@   @���    ?�      E|��E|�j@���`   @���@   ?�      E|�}E|��@���   @����   ?�      E}
�E}U@����   @���   ?�      E}-�E}.i@���`   @���    ?�      E}7�E}84@����   @���   ?�      E}C�E}D	@��s@   @���    ?�      E}X:E}X�@��@   @��    ?�      E}h2E}h�@��@   @��    ?�      E}��E}�d@��>�   @��L�   ?�      E}��E}�F@���    @����   ?�      E}��E}�C@��z�   @���`   ?�      E}��E}�9@��9@   @��G    ?�      E}�LE}��@��ɀ   @�� [...]
�E�@���   @���   ?�      E��E��@�q@   @�x`   ?�      E�"�E�"�@�S�   @�Z�   ?�      E�4�E�5
@���   @���   ?�      E�J�E�J�@�	S�   @�	Z�   ?�      E�^�E�_ @�
�    @�
�    ?�      E�c at E�cx@�
h    @�
o    ?�      E�jzE�j�@�
O@   @�
V@   ?�      E�v�E�v�@��    @��    ?�      E���E��@�y�   @���   ?�      E���E��.@���   @���   ?�      E���E��@�y�   @���   ?�      E��HE�Հ@��    @��    ?�      E��0E��h@�f    @�m    ?�      E� JE� �@� 	@   @� @   ?�      E�E�;@� �@   @� �`   ?�      E�
YE�
�@�!�    @�!�@   ?�      E�}E��@�"O�   @�"V�   ?�      E��E�!@�"�    @�#    ?�      E�%�E�&#@�$�`   @�$�`   ?�      E�0oE�0�@�&
�   @�&    ?�      E�;�E�;�@�'w`   @�'~`   ?�      E�P7E�Po@�*�   @�*
�   ?�      E�a�E�a�@�,8�   @�,?�   ?�      E�uE�u�@�.��   @�.�    ?�      E�}E�}N@�/��   @�/��   ?�      E���E��@�0:�   @�0A�   ?�      E��CE��|@�1H`   @�1O�   ?�      E��XE���@�4+    @�42    ?�      E���E���@�4��   @�4��   ?�      E��
E��F@�7!�   @�7(�   ?�      E��|E�̵@�9��   @�9��   ?�      E�էE���@�:��   @�:�    ?�      E��E���@�<`   @�<�   ?�      E��
E��W@�?#�   @�?*�   ?�      E��+E��d@�?�`   @�?��   ?�      E�
�E�@�A��   @�A��   ?�      E��E�/@�B~�   @�B��   ?�      E�
E�
J@�C�    @�C�@   ?�      E�!SE�!�@�D*`   @�D1�   ?�      E�.E�.=@�E��   @�EǠ   ?�      E�G�E�G�@�H�@   @�H�`   ?�      E�N�E�N�@�I�    @�I�    ?�      E�T(E�Ta@�J�    @�J�    ?�      E�Z�E�Z�@�KS�   @�KZ�   ?�      E�d�E�e
@�L��   @�L��   ?�      E�kxE�k�@�Mo    @�Mv    ?�      E�zzE�z�@�OO@   @�OV`   ?�      E��5E��n@�Q&�   @�Q-�   ?�      E��DE��}@�SH�   @�SO�   ?�      E���E��.@�Uޠ   @�U��   ?�      E��]E���@�V�   @�V [...]
-�   @�n    ?�      E�u#E�u\@�n�`   @�n��   ?�      E��E��=@�p�`   @�p�   ?�      E���E���@�q�`   @�q��   ?�      E��FE��@�r��   @�r��   ?�      E��E��<@�s�@   @�s��   ?�      E��mE���@�u
�   @�u�   ?�      E���E���@�vЀ   @�vנ   ?�      E��UE�ˏ@�yj�   @�yq�   ?�      E��5E��n@�z��   @�z��   ?�      E��vE�ܰ@�{��   @�{�    ?�      E��hE��@�|
    @�|@   ?�      E��E���@�|��   @�|�    ?�      E��mE��@�}��   @�}��   ?�      E���E��6@�~��   @�~��   ?�      E��E�
@��:    @��A`   ?�      E�
�E�
@��y�   @����   ?�      E�!'E�!`@��$�   @��,    ?�      E�)E�)K@��"@   @��)`   ?�      E�.�E�/@���    @���@   ?�      E�3ME�3�@��i�   @��p�   ?�      E�=�E�>
@���@   @��À   ?�      E�J0E�Ji@��F    @��M    ?�      E�[�E�[�@��s    @��z@   ?�      E�i�E�i�@��4�   @��;�   ?�      E���E���@����   @����   ?�      E���E���@���   @���   ?�   [...]
E�G@����   @����   ?�      E�"�E�"�@��Q�   @��X�   ?�      E�/�E�/�@����   @���    ?�      E�4�E�5@���    @���`   ?�      E�:�E�:�@��W�   @��^�   ?�      E�B�E�B�@��S`   @��Z�   ?�      E�\
-E�\D@���@   @����   ?�      E�hfE�h�@��
�   @��    ?�      E�onE�o�@����   @���    ?�      E���E��
@���@   @���   ?�      E���E���@��W�   @��_    ?�      E��*E��d@��%@   @��,�   ?�      E��XE���@���    @���`   ?�      E��yE���@��O    @��V`   ?�      E��cE���@��
`   @���   ?�      E��nE�ĩ@����   @���    ?�      E��7E��r@���   @��@   ?�      E��E��L@���    @���   ?�      E��E���@����   @���@   ?�      E���E���@��    @��`   ?�      E�<E�w@����   @����   ?�      E�	E�D@��a    @��h [...]
@��Z@   @��a�   ?�      E��KE���@��)`   @��0�   ?�      E���E��@���   @��"�   ?�      E���E���@�Ԗ    @�ԝ@   ?�      E��eE���@��
�   @��    ?�      E��HE���@���    @���`   ?�      E���E��@����   @��    ?�      E��qE�Ҭ@��N    @��U�   ?�      E���E��&@��=`   @��D�   ?�      E���E���@��`   @���   ?�      E��6E��q@��f�   @��n    ?�      E� �E� @��
�   @��$    ?�      E�*E�*O@��B�   @��I�   ?�      E�.�E�.�@��؀   @����   ?�      E�G5E�Gp@���   @���    ?�      E�KdE�K�@��l�   @��s�   ?� [...]
-
@   @�
-�   ?�      E�^=E�^y@�
Ǡ   @�
�    ?�      E�h
-E�hF@�
@   @�
�   ?�      E�oSE�o�@�
�`   @�
��   ?�      E�~�E�~�@��    @�ؠ   ?�      E���E��@��`   @���   ?�      E���E��$@��    @�Ā   ?�      E���E���@�P�   @�X    ?�      E���E��	@�y�   @��    ?�      E���E��@�
    @�#`   ?�      E���E���@���   @��`   ?�      E���E���@��   @��    ?�      E��LE�ш@�)�   @�1    ?�      E��8E��t@��    @���   ?�      E��,E��h@�
E�   @�
M    ?�      E���E���@�
؀   @�
��   ?�      E��OE���@�
��   @�
�@   ?�      E���E��%@��    @�Ġ   ?�      E�VE��@�!
-�   @�!@   ?�      E�
�E�%@�!�    @�!Ġ   ?�      E�E�K@�"B    @�"I`   ?�      E��E��@�"�   @�"��   ?�      E�'�E�'�@�$�    @�$��   ?�      E�8�E�9 @�'�   @�'     ?�      E�C�E�D@�({`   @�(��   ?�      E�G�E�G�@�(��   @�(�    ?�      E�M�E�N0@�)��   @�)�    ?�      E�g�E�h2@�,��   @�-@   ?�      E���E���@�0    @�0
�   ?�      E���E��@�0��   @�1 @   ?�      E���E��@�2;    @�2B�   ?�      E��ME���@�2�   @�2�    ?�      E���E��@�4    @�4 �   ?�      E��E��V@�4�    @�4��   ?�      E���E���@�6t�   @�6 [...]
�   ?�      E�-�E�-�@����   @���`   ?�      E�7E�7L@����   @���   ?�      E�;�E�<@��{    @����   ?�      E�M2E�Mp@���@   @���    ?�      E�W�E�W�@���`   @���    ?�      E�j�E�j�@��Q�   @��Y@   ?�      E�uhE�u�@���    @����   ?�      E��gE���@��L�   @��T�   ?�      E��2E��o@���@   @����   ?�      E��0E��m@���    @����   ?�      E���E���@����   @����   ?�      E��KE���@���`   @���    ?�      E���E��*@����   @���@   ?�      E�ɝE���@��3�   @��;`   ?�      E�ӪE���@��u@   @��|�   ?�      E�� [...]
%�   @�
-�   ?�      E�x�E�y@�    @�!�   ?�      E��dE���@�L�   @�T`   ?�      E��CE���@�H`   @�P@   ?�      E��gE���@�l�   @�t�   ?�      E��E��G@��    @���   ?�      E��E��@@��    @��    ?�      E��E���@�
7�   @�
?�   ?�      E���E��"@�

@   @�
$@   ?�      E��[E���@�
�`   @�
�@   ?�      E�	�E�
-@�!9�   @�!A�   ?�      E�
TE�
�@�#��   @�#��   ?�      E�%�E�%�@�$�    @�$�    ?�      E�5]E�5�@�&��   @�&��   ?�      E�9�E�:"@�'<@   @�'D@   ?�      E�?�E�?�@�'��   @�'��   ?�      E�Q�E�R @�*8    @�*@    ?�      E�\QE�\�@�+�    @�+�    ?�      E�o�E�p+@�-��   @�.`   ?�      E��JE���@�0�@   @�0�@   ?�      E��oE���@�3��   @�3��   ?�      E���E���@�6�    @�6��   ?�      E��E���@�7/�   @�77�   ?�      E�ǤE���@�8�   @�8�`   ?�      E���E��*@�9�@   @�:@   ?�      E��?E��@�<'�   @�</� [...]
*E�
i@�A�@   @�A�    ?�      E��E�"@�C\@   @�Cd@   ?�      E� RE� �@�D
-@   @�D    ?�      E�'�E�'�@�D��   @�D��   ?�      E�1�E�2@�F8@   @�F@@   ?�      E�K�E�L@�I{@   @�I�@   ?�      E�RE�RU@�JB�   @�JJ�   ?�      E�Z�E�Z�@�KV    @�K^    ?�      E�qoE�q�@�N-�   @�N5�   ?�      E���E��@�R�@   @�R�@   ?�      E���E���@�V`   @�V`   ?�      E��.E��n@�W�   @�W
�   ?�      E�ѬE���@�Z5�   @�Z=�   ?�      E��
E��K@�\�`   @�\�`   ?�      E���E���@�_W�   @�__�   ?�      E�
�E�6@�a��   @�a��   ?�      E�":E�"z@�dG@   @�dO@   ?�      E�6wE�6�@�f��   @�f��   ?�      E�C�E�C�@�hw@   @�h@   ?�      E�N5E�Nu@�iƠ   @�iΠ   ?�      E�U?E�U@�j��   @�j��   ?�      E�[RE�[�@�kj@   @�kr@   ?�      E�`^E�`�@�l
�   @�l�   ?�      E�k E�k@@�m`    @�mh    ?�      E���E���@�r�   @�r�   ?�      E��aE���@�sl    @�st@   ?�      E��E��N@�t��   @�t��   ?�      E���E��'@�y
�   @�y$�   ?�      E��@E�Ձ@�z�    @�z�    ?�      E��=E��~@�~�   @�~�   ?�      E�6E�w@����   @�� [...]
-�   @���   ?�      E�
?E�
�@����   @���    ?�      E�)�E�*@��9�   @��A�   ?�      E�1�E�2<@��?`   @��G�   ?�      E�:`E�:�@��L    @��T@   ?�      E�>:E�>{@���@   @���`   ?�      E�IhE�I�@��-    @��5    ?�      E�R:E�R{@��G@   @��O`   ?�      E�lE�lV@����   @����   ?�      E�u�E�v8@����   @���    ?�      E��E��Q@��!�   @��*    ?�      E��E��P@��!�   @��*    ?�      E��LE���@����   @����   ?�      E���E��9@��^�   @��g    ?�      E��_E���@��k�   @��t    ?�      E���E��A@���   @���     [...]
-@�ə    @�ɡ@   ?�      E�b�E�c"@��\    @��d@   ?�      E�g�E�h/@����   @���   ?�      E��	E��K@��    @��	`   ?�      E��E��O@�ҡ�   @�ҩ�   ?�      E��jE���@��-@   @��5�   ?�      E���E��5@���`   @���   ?�      E���E���@�Ւ`   @�՚�   ?�      E���E���@��֠   @����   ?�      E���E���@�ח    @�ן@   ?�      E��yE�ջ@�گ    @�ڷ`   ?�      E��@E��@���    @���@   ?�      E���E��@���   @��#    ?�      E���E���@�ߔ�   @�ߝ    ?�      E�++E�+m@��e`   @��m�   ?�      E�2�E�2�@��V�   @��^�   ?�      E�F� [...]
-    ?�      E�i,E�in@��%�   @��-�   ?�      E�z{E�z�@��O`   @��W�   ?�      E�~YE�~�@���    @���`   ?�      E���E��@��X�   @��a    ?�      E���E��@��؀   @����   ?�      E��cE���@��l`   @��t�   ?�      E��KE���@��`   @���   ?�      E���E��@���@   @���   ?�      E��E��V@��B`   @��J�   ?�      E�҈E���@��Q    @��Y`   ?�      E��E���@��3`   @��;�   ?�      E��E���@����   @����   ?�      E��OE��@��i�   @��r@   ?�      E��@E���@��(    @��0@   ?�      E�(E�j@��    @��@   ?�      E��E�� [...]
-Y    @�
-a�   ?�      E�g�E�h$@�
�@   @�
�   ?�      E�o�E�p5@�
�@   @��   ?�      E�u�E�u�@���   @���   ?�      E���E���@�0@   @�8�   ?�      E���E��@�:    @�B`   ?�      E��HE���@��    @��`   ?�      E���E��8@�>�   @�G    ?�      E�ӉE���@�q    @�y�   ?�      E��,E��o@��   @�
�   ?�      E��(E��j@��    @��@   ?�      E���E��4@�
�    @�
ƀ   ?�      E��oE��@�
m�   @�
v    ?�      E���E���@�
�`   @�
��   ?�      E��,E��o@���   @���   ?�      E�0NE�0�@�&	�   @�&    ?�      E�69E�6|@�&�    @�&π   ?�      E�E�E�F%@�(�@   @�(Ġ   ?�      E�c�E�d@�,x�   @�,��   ?�      E�q!E�qe@�.$    @�.,�   ?�      E�v6E�vy@�.��   @�.�    ?�      E�z�E�{)@�/\�   @�/e    ?�      E��6E��y@�0�   @�0    ?�      E��E��]@�0�@   @�0��   ?�      E��cE���@�2L`   @�2T�   ?�      E��1E [...]
-@�9��   @�9�@   ?�      E��lE�װ@�:�   @�:�    ?�      E��BE���@�?H@   @�?P�   ?�      E��
E��`@�?à   @�?�    ?�      E��E��@�A�   @�A@   ?�      E��E�@�A�    @�B `   ?�      E�$E�$\@�D�    @�D��   ?�      E�)�E�)�@�E1@   @�E9�   ?�      E�.�E�.�@�E�    @�E�`   ?�      E�2�E�2�@�FP`   @�FX�   ?�      E�@�E�@�@�H�   @�H    ?�      E�FE�FT@�H�    @�Hʀ   ?�      E�N�E�N�@�I�    @�Iؠ   ?�      E�]E�]E@�K�    @�K��   ?�      E�gE�gc@�L��   @�L�`   ?�      E�k2E�kv@�Mf@   @�Mn�   ? [...]
E��Q@�Ua�   @�Uj    ?�      E��=E��@�]G�   @�]P    ?�      E��E���@�^    @�^
�   ?�      E���E���@�^�    @�^��   ?�      E���E���@�_T�   @�_]    ?�      E�
�E�
�@�a��   @�a�    ?�      E�-�E�-�@�e�    @�e��   ?�      E�=E�=[@�g��   @�g�`   ?�      E�E�E�F-@�h�    @�hŠ   ?�      E�PE�P�@�j�   @�j`   ?�      E�a%E�ai@�l$�   @�l-    ?�      E�kE�kF@�m`@   @�mh�   ?�      E�x�E�x�@�o@   @�o�   ?�      E�uE��@�o�   @�o�    ?�      E���E���@�p��   @�p�@   ?�      E���E��B@�q_�   @�qh@   ?�      E��[E���@�t+`   @�t3�   ?�      E���E��@�vx�   @�v�    ?�      E�� E��d@�w�    @�w��   ?�      E���E��
@�y[    @�yc�   ?�      E��uE�Ϲ@�y�   @�y�     [...]
-7�   @�
-@@   ?�      E�XpE�X�@�
    @�
�   ?�      E�m�E�n$@�
��   @�
Ā   ?�      E�u�E�v@���   @��`   ?�      E�|�E�|�@��@   @��    ?�      E���E��@��   @�#`   ?�      E���E���@�t�   @�}�   ?�      E���E��B@�?�   @�H@   ?�      E��E��G@�@    @�H�   ?�      E��2E��x@��@   @��    ?�      E��TE�ʚ@�J�   @�S@   ?�      E��OE�Ж@�	�   @��   ?�      E���E��7@�
    @�&�   ?�      E��E���@�
1�   @�
:�   ?�      E��E���@�
0�   @�
9`   ?�      E��TE��@�
ʀ   @�
�@   ?�      E��E�@� ��   @� ��   ?�      E�
 E�
G@�!�    @�!��   ?�      E��E� [...]
-�   @�-`   ?�      E�n
E�nR@�-�`   @�-�@   ?�      E�uE�ua@�.�`   @�.�    ?�      E���E���@�24�   @�2=`   ?�      E��<E���@�5��   @�5�@   ?�      E��vE���@�7N�   @�7W�   ?�      E���E���@�86@   @�8?    ?�      E�ǍE���@�8�   @�8��   ?�      E���E��@�9�    @�9��   ?�      E�ӴE���@�:v�   @�:@   ?�      E��E���@�<�    @�<�    ?�      E��)E��p@�>    @�>    ?�      E��E��[@�>��   @�>�`   ?�      E�
E�R@�A�`   @�A�@   ?�      E�+E�r@�Be`   @�Bn@   ?�      E�
�E�

@�C��   @�CÀ   ?�    [...]
E�oT@���   @���   ?�      E���E��@��7@   @��@    ?�      E��E��f@����   @����   ?�      E��EE���@����   @����   ?�      E���E��.@����   @����   ?�      E���E��@���   @��"�   ?�      E��!E��i@��d    @��m    ?�      E���E��$@��{�   @����   ?�      E��oE���@��-�   @��6�   ?�      E�iE��@��
    @��    ?�      E�
�E�
+@���`   @���`   ?�      E�E�M@��`�   @��i�   ?�      E�
mE�
�@����   @����   ?�      E�$2E�$z@���@   @���@   ?�      E�6�E�7<@��ހ   @���   ?�      E�^dE�^�@��̀   @��Հ   ?�      E�nXE�n�@���    @���    ?�      E�s	E�sQ@��a    @��j    ?�      E�x�E�x�@��    @��    ?�      E���E���@����   @����   ?�      E���E���@��@   @��`   ?�      E��
E��T@����   @����   ?�      E��E��`@��c    @��l    ?�      E���E��@��w@   @���@   ?�      E��]E�ͥ@����   @����   ?�      E���E��@���    @��    ? [...]
�   @���   ?�      E���E��F@��?�   @��H�   ?�      E���E��@���@   @���@   ?�      E��E��@��1    @��:    ?�      E�@�E�@�@���   @��
�   ?�      E�FE�FM@����   @��ɠ   ?�      E�W
E�WU@���   @���   ?�      E�[E�[X@��a�   @��k    ?�      E�w�E�w�@���@   @���@   ?�      E��qE���@�Ѯ    @�ѷ@   ?�      E��(E��q@��    @��    ?�      E���E�� @�Ӻ�   @���    ?�      E���E��8@��]�   @��g    ?�      E���E��!@��{    @�܄    ?�      E��iE��@��-    @��6@   ?�      E���E���@�ߐ@   @�ߙ`   ?�      E� [...]
-ZE�
-�@��K@   @��T`   ?�      E��E�*@��\    @��e@   ?�      E�6E�@���   @���   ?�      E��E��@���    @���@   ?�      E�8�E�9(@���   @��%    ?�      E�>�E�>�@��Ѡ   @����   ?�      E�M�E�M�@��    @��@   ?�      E�T�E�T�@�ꕀ   @�Ꞡ   ?�      E�\�E�]<@��`   @�맀   ?�      E�xcE�x�@��
`   @���   ?�      E��E��X@��!�   @��+    ?�      E��E��c@��#@   @��,`   ?�      E��uE���@��   @���   ?�      E���E���@���`   @����   ?�      E�ՉE���@���    @���@   ?�      E��zE���@���@   @����   ?�      E [...]
-��   @�
-�    ?�      E�`CE�`�@�
`   @�
�   ?�      E�gE�gd@�
�`   @�
�   ?�      E�k�E�k�@�
p@   @�
y�   ?�      E�smE�s�@�m�   @�v�   ?�      E�xwE�x�@��   @�    ?�      E��pE���@��    @��@   ?�      E���E���@���   @��    ?�      E���E��;@��    @��`   ?�      E���E��
@�@   @�!`   ?�      E���E��F@��   @���   ?�      E��~E���@�/�   @�9    ?�      E��E��O@� �   @�)�   ?�      E��$E��n@���   @���   ?�      E�ԲE���@��@   @��`   ?�      E��sE�ٽ@�.`   @�7�   ?�      E��E���@�
1    @�
:@   ?�      E��'E��p@�
��   @�
�    ?�      E���E��0@�
��   @�
�    ?�      E�� [...]
@��    @��!�   ?�      E���E��
@�٘    @�١�   ?�      E�ӉE���@��q    @��z�   ?�      E��\E�ب@��
�   @��    ?�      E��E���@��u    @��~�   ?�      E��E���@��v    @���   ?�      E��E��c@�ߢ�   @�߬`   ?�      E��E�	@��`   @��#�   ?�      E�
�E�
�@�ᕠ   @��@   ?�      E�UE��@���   @���@   ?�      E�#�E�$F@��    @���   ?�      E�*7E�*�@��F�   @��P�   ?�      E�5�E�6@���   @���`   ?�      E�LwE�L�@���   @��`   ?�      E�`eE�`�@��
�   @��    ?�      E�d�E�e@��@   @���   ?�      E�zhE�z�@��M    @��V�   ?�      E��`E�� [...]
-6E�
-�@�F�   @�P`   ?�      E�
�E�6@��    @���   ?�      E�=�E�>@��@   @���   ?�      E�SGE�S�@�
-h�   @�
-r�   ?�      E�X�E�Y@�
    @�
 �   ?�      E�svE�s�@�n�   @�x`   ?�      E�}�E�}�@��    @���   ?�      E��|E���@���   @��    ?�      E��E��^@��    @���   ?�      E���E���@�p    @�y�   ?�      E���E��4@�<�   @�F�   ?�      E��AE�ώ@��    @���   ?�      E���E��+@��   @�%`   ?�      E���E��H@��@   @�
	    ?�      E�� E��m@�
�    @�
��   ?�      E��/E��}@��   @��   ?�      E��E�@� �    @� ��   ?�      E�	JE�	�@�!)@   @�!2�   ?�      E�2E��@�"f@   @�"p    ?�       [...]
`   @�'    ?�      E�N�E�N�@�)�    @�)��   ?�      E�W�E�X
@�*��   @�+`   ?�      E�hFE�h�@�-�   @�-`   ?�      E�w�E�x1@�.��   @�/    ?�      E��
E��Z@�1�   @�1�@   ?�      E��cE���@�5,`   @�56    ?�      E��eE�ճ@�:��   @�:�`   ?�      E��#E��q@�;�`   @�;�    ?�      E��E�F@�@_    @�@h�   ?�      E�3E��@�BF`   @�BP    ?�      E�5E�5\@�F��   @�F��   ?�      E�B�E�C*@�H[�   @�He@   ?�      E�L�E�M@@�I�@   @�I�    ?�      E�X�E�X�@�K�   @�K@   ?�      E�eHE�e�@�L�    @�L��   ?�      E��E��
@�O�    @�P�   ?�      E��7E���@�U&�   @�U0�   ?�      E���E���@�W    @�W
�   ?�      E���E��"@�W��   @�W�@   ?�      E��OE���@�X)�   @�X [...]
E�z[@�oA�   @�oK`   ?�      E��@E���@�q�    @�q��   ?�      E���E��@�t��   @�t    ?�      E��PE���@�wj    @�ws�   ?�      E��E��^@�y�   @�y
�   ?�      E��AE�Ԑ@�z�    @�z�    ?�      E��E���@�|�@   @�|�    ?�      E�
E�
_@���    @����   ?�      E�3E��@���`   @���@   ?�      E�
E�
c@����   @���`   ?�      E�ALE�A�@��)�   @��3`   ?�      E�P�E�P�@��    @��
�   ?�      E�`�E�a@��`   @��"    ?�      E��0E��@��&    @��/�   ?�      E��
E��\@��a�   @��k�   ?�      E���E���@����   @����   ?�      E��[E���@��K`   @��U@   ?�      E��"E��q@���@   @���    ?�      E�ƿE��@����   @����   ?�      E��JE�ԙ@���@   @���    ?�      E��E��Q@���@   @���    ?�      E��yE���@���    @���    ?�      E�JE��@��i@   @��s    ?�      E� dE� �@��
�   @��`   ?�      E�*gE�*�@��L�   @��V�   ?�      E�3�E�3�@��u`   @��@   ?�      E�=�E�>@����   @��€   ?�      E�F{E�F�@���`   @���`   ?�      E�P|E�P�@���   @��`   ?�      E�V�E�V�@���@   @��� [...]
�   @���   ?�      E�(�E�)@��    @��!    ?�      E�.�E�/@����   @����   ?�      E�6vE�6�@����   @����   ?�      E�B�E�C@��Y�   @��c�   ?�      E�Q�E�RC@��>�   @��H`   ?�      E�wrE�w�@���@   @���@   ?�      E���E��G@�П    @�Ш�   ?�      E��>E���@���   @���   ?�      E��E��S@�� `   @��*`   ?�      E��.E��~@����   @����   ?�      E��,E��|@��ŀ   @��π   ?�      E��2E���@���@   @���@   ?�      E��JE��@�ܩ@   @�ܳ@   ?�      E��E���@��t�   @��~�   ?�      E���E��%@��z�   @�߄�   ?�      E� [...]
`   @�w�   ?�      E�� E��r@�z$    @�z.@   ?�      E��
E��n@�{��   @�{��   ?�      E��CE��@�}�`   @�}��   ?�      E��7E���@�f�   @�q    ?�      E��E�@��V�   @��a    ?�      E��E�@��׀   @����   ?�      E��E�
@���    @���   ?�      E��E�
#@��z    @���`   ?�      E�"E�"U@��@`   @��J�   ?�      E�( E�(r@��    @��@   ?�      E�9�E�9�@��4@   @��>�   ?�      E�I
E�Iq@��#�   @��.    ?�      E�Y�E�Z,@��;    @��E�   ?�      E�bE�bU@��@@   @��J�   ?�      E�sfE�s�@��l�   @��w    ?�  [...]
-�   ?�      E���E���@��R    @��\�   ?�      E�ȫE���@��`   @���   ?�      E���E��%@���@   @���   ?�      E��5E��@��f�   @��q    ?�      E���E���@��3�   @��>@   ?�      E�	�E�
-
@��9    @��C�   ?�      E�*�E�+)@��Z�   @��e    ?�      E�.�E�/3@���    @���`   ?�      E�9�E�:C@��=�   @��H`   ?�      E�@E�@h@���   @��
    ?�      E�V
E�Vq@����   @���    ?�      E��eE���@��,�   @��7    ?�      E���E�� @���   @��$    ?�      E��CE���@���`   @����   ?�      E���E��@����   @��@   ?�      E��!E��t@��$    @��.�   ?�      E���E���@�֓    @�֝`   ?�      E��&E��y@�ׄ�   @�׏    ?�      E�ćE���@�ؐ�   @�؛@   ?�      E���E��>@�ٝ`   @�٧�   ?�      E��E��o@�ۃ`   @�ۍ�   ?�      E��E��f@��B`   @��L�   ?�      E��E��@���    @��۠   ?�      E�
�E�
�@��r    @��|�   ?�      E�9E��@���    @���   ?�      E�!*E�!~@��%@  [...]
-
@   @�
-�   ?�      E�Y�E�Z@�
7�   @�
B`   ?�      E�h�E�h�@�
@   @�
�   ?�      E���E���@�U@   @�_�   ?�      E��2E���@�&@   @�0�   ?�      E���E���@��    @���   ?�      E���E�� @�u�   @��    ?�      E���E��'@�@   @�$�   ?�      E���E���@��@   @���   ?�      E��E��o@��@   @���   ?�      E���E��/@��@   @���   ?�      E��E��m@�    @�
�   ?�      E��E��c@�
A�   @�
L`   ?�      E��E���@�
`   @�

    ?�      E��E��d@�
b    @�
l�   ?�      E�IE��@�"i    @�"s�   ?�      E�JE��@�"�@   @�"��   ?�      E�%yE�%�@�$�    @�$��   ?�      E�4�E�5#@�&��   @�&�`   ?�      E�F'E�F{@�(��   @�(�`   ?�      E�NE�NU@�)�    @�)ʠ   ?�      E�R�E�S1@�*[�   @�*f    ?�      E�X�E�Y?@�+
@   @�+'�   ?�      E�`�E�a*@�,�   @�,%@   ?�      E�h�E�iS@�-�   @�-*`   ?�      E�E�h@�/�   @�/�    ?�      E���E��@�1�    @�1�   ?�      E��gE [...]
-
E�
-b@��A�   @��L@   ?�      E�
E�
m@����   @����   ?�      E�)
E�)s@��#�   @��.`   ?�      E�6PE�6�@���    @����   ?�      E�D�E�E%@����   @����   ?�      E�Q�E�RS@��?�   @��J`   ?�      E�^E�^^@���    @����   ?�      E�iJE�i�@��)@   @��4    ?�      E�y$E�yz@��$�   @��/@   ?�      EŊ<EŊ�@��G�   @��R@   ?�      EŎdEŎ�@��̀   @���`   ?�      EŞ�EŞ�@���    @���    ?�      Eţ)Eţ�@��e    @��p    ?�      EŲ�Eų@��X�   @��c`   ?�      EźEźd@��A�   @��L�   ?�      E��E��q@���`   @���    ?�       [...]
!@���`   @���    ?�      E�
.E�
�@�å�   @�ð�   ?�      E�6�E�7
@��֠   @���`   ?�      E�P�E�Q#@���   @��$`   ?�      E�[(E�[~@��e    @��o�   ?�      E�a�E�b@��6    @��@�   ?�      E�e�E�f@�̷`   @���@   ?�      EƟ
EƟu@����   @���   ?�      EƨEƨZ@�� `   @��
@   ?�      EƭAEƭ�@�ը    @�ճ    ?�      Eƴ�EƵ#@�֙�   @�֤`   ?�      EƸ�Eƹ?@��
    @��'�   ?�      Eƽ:Eƽ�@�ק@   @�ײ    ?�      E���E��/@��;    @��E�   ?�      E���E��R@���`   @���@   ?�      E�
nE�
�@���   @�ᘠ   ?�      E�2E��@���@  [...]
��   @�
��   ?�      E�p�E�qJ@�
@   @�)@   ?�      E�uvE�u�@���   @���   ?�      E�|!E�|x@��    @��    ?�      EȒ�Eȓ"@�Y`   @�d@   ?�      EȰ�Eȱ@�    @�!    ?�      EȷEȷY@��    @��    ?�      E��UE�Ƭ@�ʠ   @�Հ   ?�      E���E��5@�{�   @���   ?�      E��E��\@�
��   @�
ˀ   ?�      E��EE���@���   @���   ?�      E�%0E�%�@�$�    @�$�    ?�      E�,�E�,�@�%�    @�%�    ?�      E�8fE�8�@�'
�   @�'�   ?�      E�OE�O^@�)��   @�)��   ?�      E�^�E�_
@�+֠   @�+�   ?�      E�l�E�mL@�-��   @�-��   ?�      E�p�E�q?@�.
�   @�.'�   ?�      E�u�E�vW@�.��   @�.��   ?�      EɗyEɗ�@�2�    @�2�    ?�      EɠMEɠ�@�4	�   @�4�   ?�      EɧrEɧ�@�4�@   @�4�@   ?�      E��E���@�<t    @�<    ?�      E��NE��@�=	�   @�=�   ?�      E��E��@�>�`   @�>�`   ?�      E�
{E�
�@�A�`   @�A��   ?�      E�?E��@�B��   @�B�    ?�      E� 7E� �@�D�   @�D�   ?�      E�CCE�C�@�Hh`   @�Hs�   ?�      E�V4E�V�@�Jƀ   @�Jр   ?�      E�ZiE�Z�@�KM    @�KX@   ?�      Eʀ [...]
    ?�      E�
�E�

@�ax`   @�a��   ?�      E��E�@�c�   @�c �   ?�      E�
�E�
W@�c��   @�c��   ?�      E�!�E�!�@�d1�   @�d<�   ?�      E�*�E�+@�eV�   @�ea�   ?�      E�;�E�<C@�g}@   @�g�`   ?�      E�P�E�QV@�j�   @�j*�   ?�      E�W�E�X@�j�    @�k    ?�      E�\LE�\�@�k��   @�k��   ?�      E�a3E�a�@�l&`   @�l1�   ?�      E�hnE�h�@�m
�   @�m�   ?�      E˂�E˃@�pW�   @�pb�   ?�      Eˎ�Eˎ�@�q�    @�q�    ?�      E˳aE˳�@�vl    @�vw@   ?�      E��,E�Ѕ@�z�   @�z�   ?�      E��E��i@�~�    @�~�    ?�      E��E��@��Q�   @��]    ?�      E�4�E�5@����   @����   ?�      E�@�E�AT@��@   @��*�   ?�      E�L�E�M@����   @����   ?�      E�cCE�c�@��h`   @��s�   ?�      E̍�E̍�@���`   @����   ?�      E̚�E̛@��U@   @��``   ?�      E̽xE̽�@���    @���@   ?�      E��
E��u@��#�   @��.�   ?�      E��E��
@���`   @����   ?�      E���E�� [...]
-V@   @�
-a�   ?�      E�fZE�f�@�
�@   @�
֠   ?�      E�kjE�k�@�
m@   @�
x�   ?�      EЌvEЌ�@���   @��    ?�      EЕfEЕ�@���   @��    ?�      EеzEе�@��@   @���   ?�      E��xE���@�    @��   ?�      E���E��
@�X`   @�c�   ?�      E��*E��@�
E@   @�
P�   ?�      E���E��X@��   @��    ?�      E�%�E�%�@�$�@   @�$��   ?�      E�/�E�0;@�%�    @�&`   ?�      E�3�E�4'@�&y�   @�&��   ?�      E�M�E�M�@�)��   @�)�    ?�      E�e�E�f-@�,�@   @�,Š   ?�      EѦ�EѦ�@�4р   @�4�    ?�      Eѹ�EѺ2@�7:�   @�7F@   ?�      E�ϕE���@�9�   @�9�    ?�      E���E���@�?2    [...]
`   ?�      E�q�E�rJ@�=`   @�I@   ?�      Eر�Eز=@�;�   @�G�   ?�      E��	E��h@��    @��    ?�      E��!E�̀@��    @��    ?�      E��yE���@�
O    @�
[    ?�      E��]E��@�
��   @�
��   ?�      E��E��}@�
��   @�
��   ?�      E���E��@��`   @��@   ?�      E��E�@� ��   @� �@   ?�      E�
�E�

@�!w�   @�!��   ?�      E��E��@�"0�   @�"<�   ?�      E�!uE�!�@�$.�   @�$:�   ?�      E�;�E�<@�'t`   @�'�@   ?�      E�G�E�G�@�(�   @�(�`   ?�      E�UE�Uo@�*�    @�*��   ?�      E�ZVE [...]
E�Pm@�J�   @�J
�   ?�      E�mE�mn@�M��   @�M��   ?�      Eځ�Eځ�@�P0�   @�P<`   ?�      Eڈ
Eڈ|@�Q�   @�Q�   ?�      Eڏ�Eڐ@�Q��   @�R�   ?�      Eڟ
Eڟ|@�S�   @�S�   ?�      Eڥ�Eڦ?@�T��   @�T��   ?�      Eګ
Eګ~@�Uc�   @�Uo�   ?�      E��>E�ƞ@�X��   @�X��   ?�      E���E��@@�Z�    @�Z�    ?�      E���E���@�_�   @�_
�   ?�      E�T[E�T�@�j�`   @�j�@   ?�      E�c�E�d@�lv    @�l��   ?�      E�jE�jt@�mB�   @�mN�   ?�      E�rhE�r�@�nM    @�nX�   ?�      E�yE�y`@�o     @�o,    ?�      Eۉ�Eۉ�@�q3�   @� [...]
-@�4�    @�5@   ?�      E�ȰE��@�9    @�9"@   ?�      E��QE��@�=�    @�=��   ?�      E���E��@�>֠   @�>��   ?�      E�E�j@�@@�   @�@M@   ?�      E�
E�
|@�A�@   @�A��   ?�      E�
>E�
�@�C��   @�C�    ?�      E�9�E�:O@�G=�   @�GI�   ?�      E�AIE�A�@�H)    @�H5�   ?�      E�P�E�P�@�J`   @�J
�   ?�      E�eaE�e�@�L�    @�L��   ?�      E�p�E�q7@�N�   @�N&�   ?�      E⇊E��@�P�@   @�P��   ?�      E⎎E��@�Q��   @�Q�    ?�      E┆E��@�R��   @�R�    ?�      E�7E⭚@�U��   @�U�@   ?�      E⺤E [...]
-E�Kn@��a@   @��m�   ?�      E�d�E�eT@���    @����   ?�      E�i�E�jA@��;�   @��H    ?�      E�}�E�}�@���    @����   ?�      E�UE䘹@��
-�   @��    ?�      E��E�<@���    @���   ?�      E��}E���@��/�   @��<    ?�      E��DE��@��Ȁ   @���    ?�      E���E��c@���   @��,`   ?�      E�E�z@��B�   @��O@   ?�      E�
�E�
!@��w�   @���    ?�      E�<lE�<�@����   @���    ?�      E�NE�Nr@����   @���@   ?�      E�\�E�]@���@   @����   ?�      E�iE�ih@�� �   @��-    ?�      E�tkE�t�@���`   @���    ?�      E� E�e@��`    @��l�   ?�      E和E��@��Q�   @��^    ?�      E�&E嘊@���   @��@   ?�      E�:E堟@��@   @���   ?�      E�QE嶵@� [...]
-�E�
-�@��R�   @��_    ?�      E�\E��@��+�   @��8    ?�      E�+6E�+�@��f�   @��s`   ?�      E�VhE�V�@���    @��٠   ?�      E�`�E�a%@��    @��$�   ?�      E��E�7@���@   @����   ?�      E��E�L@����   @���   ?�      E�7E棜@��f�   @��s�   ?�      E濦E��
-@����   @��@   ?�      E���E��4@��y�   @�ن�   ?�      E�ҏE���@��Q�   @��^�   ?�      E��E���@��    @��
�   ?�      E��E�
-@���   @��@   ?�      E��E� K@����   @��	`   ?�      E�=�E�=�@��    @���   ?�      E�Q�E�R7@��:@   @��F�   ?�      E牂E��@��0@   @��<�   ?�      E痌E��@���   @���@   ?�      E睱E�@��    @����   ?�      E�E��@��O�   @��\�   ?�      E笒E��@���@   @����   ?�      E��!E�Ά@���    @����   ?�      E��4E�ԙ@����   @���    ?�      E���E��U@��^    @��j�   ?�      E��LE��@��I�   @��V    ?�      E��=E���@��Ǡ   @���@   ?�      E�
-(E�
-�@�E    @�Q�   ?�      E�'SE�'�@��`   @��    ?�      E�1�E�29@�:�   @�G    ?�      E�Z�E�[%@�
X    @�
d�   ?�      E�b-E�b�@�
E�   @�
R`   ?�      E��E�%@�x    @���   ?�      E�)E萏@�    @��   ?�      E��E�3@���   @��`   ?�      E��E�1@��`   @��    ?�      E辘E��@��    @�ߠ   ?�      E��wE���@�.�   @�;�   ?�      E�YE��@� �    @� ��   ?�      E�
E�
m@�!��   @�!��   ?�      E��E�;@�"��   @�"�`   ?�      E�.�E�/2@�%ـ   @�%�@   ?�      E�7�E�8!@�&�`   @�'    ?�      E�KRE�K�@�)j@   @�)w    ?�      E�hAE�h�@�-    @�-�   ?�      E�y
E�y�@�/#�   @�/0`   ?�      E�ʣE��	@�9T`   @�9a    ?�      E���E��L@�:��   @�:��   ?�      E���E��4@�;��   @�;��   ?�      E��jE���@�<M@   @�<Z    ?�      E���E���@�?��   @�?��   ?�      E� �E�!8@�D@   @�D'    ?�      E�+9E�+�@�Eg    @�Es�   ?�      E�1�E�2;@�F:�   @�FG`   ?�      E�<PE�<�@�G�    @�G��  [...]
@   @��@   ?�      E�$�E�$�@�Đ�   @�ĝ�   ?�      E�<XE�<�@�Nj    @�ǘ    ?�      E�BLE�B�@��I�   @��V�   ?�      E�H�E�I)@��    @��%    ?�      E�MpE�M�@�ɮ    @�ɻ    ?�      E�Y2E�Y�@��&@   @��3@   ?�      E�f�E�gB@���@   @���@   ?�      E�rHE�r�@��I    @��V    ?�      E��E�?@���   @��'�   ?�      E��E�S@�ѽ`   @���`   ?�      EE�@���   @��!�   ?�      E�1E@��&    @��3@   ?�      E��E�I@��\    @��i    ?�      E�
-E�s@���@   @���`   ?�      E��E�Ђ@��    @��@   ?�      E���E��G@����   @����   ?�      E��xE���@��o    @��|    ?�      E���E��=@��Z�   @��g�   ?�      E��E�5@����   @���   ?�      E�
�E�
*@��@   @���@   ?�      E�"[E�"�@��K`   @��X�   ?�      E�.lE�.�@��̀   @��ڠ   ?�      E�5eE�5�@�欠   @�湠   ?�      E�ReE�R�@��L�   @��Y�   ?�      E�_�E�`d@����   @��
�   ?�      E�f�E�gT@���`   @���   ?�      E�WE@���   @���   ?�      E�{E��@���`   @����   ?�      E�AEﰪ@��    @��@   ?�      E��� [...]
Ơ   @�
��   ?�      E�0E�@��    @��    ?�      E�E�@�    @�"@   ?�      E�FE�@���   @��    ?�      E��UE�ƾ@�ʠ   @���   ?�      E���E��\@�
>`   @�
K�   ?�      E���E��4@�`   @�&�   ?�      E�	E�r@� a    @� n@   ?�      E�LE��@�!�   @�!��   ?�      E�IiE�I�@�)-    @�):`   ?�      E�gE��@�0��   @�0�    ?�      E�E��@�2r�   @�2�   ?�      E�E�
@�3��   @�3à   ?�      E��E�=@�6�`   @�6��   ?�      E���E��+@�:X    @�:e`   ?�      E��LE��@�>��   @�>��   ?�      E��oE���@�?��   @�?�     [...]
-E��u@���@   @����   ?�      E��E�2@����   @��@   ?�      E�E��@����   @���@   ?�      E�<E�<�@���`   @����   ?�      E�CnE�C�@��m�   @��{    ?�      E��E��~@���@   @����   ?�      E��<E���@��g�   @��u    ?�      E���E��c@����   @��
`   ?�      E���E��K@��;�   @��I`   ?�      E�ύE���@���   @���    ?�      E��LE�ݷ@����   @����   ?�      E��YE���@��+    @��8�   ?�      E��FE��@����   @���    ?�      E��E�C@���    @���`   ?�      E�~E��@��o�   @��}    ?�      E�(eE�(�@��
�   @�� [...]
�E�@��    @�€   ?�      E�-�E�.@��    @���   ?�      E�a3E�a�@�
&`   @�
4    ?�      E�mME�m�@�
��   @�
�@   ?�      E���E���@���   @��`   ?�      E���E��@��   @�     ?�      E�ϧE��@���   @��   ?�      E��
E��@�
��   @�
�`   ?�      E��E�>@�":    @�"G�   ?�      E�$�E�$�@�$��   @�$�`   ?�      E�1E�1|@�&!�   @�&/�   ?�      E�W�E�W�@�*�@   @�*��   ?�      E�i�E�j@�-3    @�-@�   ?�      E�s�E�tG@�.{@   @�.��   ?�      E���E��)@�0W�   @�0e    ?�      E���E���@�3�@   @�3��   ?�      E��
E���@�5#�   @�51@   ?�      E���E��#@�7V�   @�7d`   ?�      E��E��|@�8!�   @�8/�   ?�      E�� [...]
-E�1x@�F!@   @�F/    ?�      E�UcE�U�@�J�`   @�J�    ?�      E�k�E�lC@�Mz�   @�M�`   ?�      E�vE�v�@�N�`   @�N�    ?�      E�}[E�}�@�O�`   @�O�    ?�      E��E��o@�Q�@   @�Q��   ?�      E���E��=@�X9�   @�XG�   ?�      E�؄E���@�[�   @�[
@   ?�      E��dE���@�^,�   @�^:    ?�      E�<E��@�`g�   @�`u@   ?�      E�
�E�
Q@�c�`   @�c�    ?�      E�)�E�)�@�e1    @�e>�   ?�      E�iZE�i�@�m+@   @�m8�   ?�      E�p�E�q&@�n    @�n$�   ?�      E�vyE�v�@�n�    @�n��   ?�      E���E��f@�r�    @ [...]
@��3�   @��A�   ?�      E��fE���@�լ�   @�պ�   ?�      E��tE���@��N�   @��\`   ?�      E���E��F@��Z�   @��h�   ?�      E��!E��@�݄    @�ݒ    ?�      E���E��
-@�߳`   @���@   ?�      E�AE��@��    @��    ?�      E��E�0@��    @��&    ?�      E�*�E�+^@��]�   @��k�   ?�      E�3]E�3�@��k�   @��y�   ?�      E�NE�N�@���`   @���@   ?�      E�`�E�a4@���   @��&�   ?�      E��6E���@��&�   @��4�   ?�      E��XE���@��+    @��9    ?�      E��E��~@���   @���   ?�      E���E��@���`   @���`   ?�      E��E�ׂ@���@   @���@   ?�      E���E��L@��ۀ   @���   ?�      F �F 
@� ��   @� ��   ?�      F 	xF 	�@�/    @�6    ?�      F �F �@��    @��    ?�      F �F �@�5    @�<    ?�      F (zF (�@�@   @�@   ?�      F 4VF 4�@���   @���   ?�      F ;�F ;�@�r�   @�y�   ?�      F =�F >@���   @���   ?�      F E�F E�@���   @���   ?�      F P�F P�@�
-�   @�
-�   ?�      F SF S=@�
-`�   @�
-g�   ?�      F X{F X�@�
`   @�
`   ?�      F d�F e@�
��   @�
��   ?�      F g]F g�@�
�   @�
�   ?�      F ��F ��@�w�   @�~�   ?�      F ��F � @���   @��    ?�      F ��F ��@���   @���   ?�      F �HF ��@�)    @�0    ?�      F ��F ��@�t�   @�{�   ?�      F ��F �@��@   @��`   ?�      F ��F �)@��    @�    ?�      F �wF �@�
.�   @�
5�   ?�      F �ZF ��@�
�@   @�
�@   ?�      F ��F �@�[�   @�b�   ?�      F
�F(@�!�    @�!�    ?�      F�F+@�"~@   @�"�`   ?�      F�F@�"��   @�#�   ?�      F�F�@�#��   @�#��   ?�      F!�F"3@�$?`   @�$F`   ?�      FNeFN�@�)̠   @�)��   ?�      FP�FQ@�*�   @�*"�   ?�      Fh�Fi
@�-
�   @�-#�   ?�      FvFvS@�.�`   @�.�`   ?�      F��F��@�01�   @�08�   ?�      F��F�8@�2?�   @�2G    ?�      F�F�>@�3��   @�3��   ?�      F�F�O@�3��   @�3��   ?�      F��F��@�4�    @�4�    ?�      F��F��@�82�   @�89�   ?�      F��F�.@�:��   @ [...]
�   ?�      F�NF�@�>I�   @�>P�   ?�      FPF�@�@j    @�@q    ?�      F
�F
�@�C�@   @�C�`   ?�      F}F�@�C�   @�C��   ?�      F#�F$@�D|    @�D�@   ?�      F)�F)�@�E6    @�E=    ?�      F5�F5�@�F�`   @�F��   ?�      F>�F>�@�G��   @�G�    ?�      FU�FV@�J��   @�J��   ?�      F`�F`�@�L�   @�L�   ?�      Fd�Fd�@�L�`   @�L��   ?�      Fg]Fg�@�L�   @�L��   ?�      FjFjH@�MA�   @�MI    ?�      F�{F��@�Q�`   @�Q��   ?�      F�*F�c@�R@   @�R
`   ?�      F�; [...]
    ?�      F�wF��@�W��   @�W�    ?�      F�@F�y@�X�    @�X�    ?�      FغF��@�[@   @�[
`   ?�      F��F�3@�[_@   @�[f`   ?�      F�3F�l@�\`   @�\
�   ?�      F��F�@�]�`   @�]��   ?�      F��F�/@�]��   @�]��   ?�      F�>F�w@�_��   @�_��   ?�      F�F@�`Y    @�``@   ?�      F�F@�`٠   @�`��   ?�      F
OF
�@�a��   @�a�    ?�      FFB@�bA    @�bH@   ?�      F8�F8�@�g@   @�g`   ?�      F<�F=%@�g�`   @�g��   ?�      FG�FH@�h�    @�i    ?�      FOFOL@�i�`   @�i�   ?�      F`�F`�@�l@   @�l
`   ?�      FjFjJ@�mB    @�mI@   ?�      Fo�Fo�@�m��   @�m�    ?�      Fs�Ft
@�nz    @�n�`   ?�      F} [...]
-�F
-�@��R�   @��Z    ?�      F�F�@��s@   @��z�   ?�      F!FF!�@��(�   @��0    ?�      F@�FA@���   @��!�   ?�      FB�FC(@��]�   @��e    ?�      FF�FF�@���@   @���`   ?�      F_1F_k@���    @���`   ?�      FbHFb�@��I    @��P@   ?�      FyRFy�@��*@   @��1�   ?�      F�F�R@���    @���@   ?�      F�$F�^@��D�   @��K�   ?�      F��F�
@���@   @����   ?�      F�
F�W@��#�   @��*�   ?�      F�*F�d@���@   @���   ?�      F��F�-@����   @���   ?�      F��F�/@����   @�� [...]
�   @��@   ?�      Fe�Ff@�캀   @����   ?�      Fm�Fm�@��`   @���   ?�      Fo�Fo�@���    @����   ?�      F�zF��@��@   @���   ?�      F��F��@��0�   @��8    ?�      F�mF��@��-�   @��5    ?�      F�]F��@��K�   @��S    ?�      F�GF��@����   @���@   ?�      FĔF��@����   @����   ?�      F�9F�t@���    @����   ?�      F�>F�y@����   @���    ?�      F�DF�@��H�   @��P    ?�      F�^F�@����   @���    ?�      F��F��@���@   @��ݠ   ?�      FSF�@� j`   @� q�   ?�      F
RF
�@��@   @���   ?�      F�F
@��@   @���   ?�      F�F�@�1@   @�8�   ?�      F#LF#�@�i�   @�p�   ?�      F&�F&�@��    @�׀   ?�      F(�F)0@�
�   @�&    ?�      F>fF>�@���   @��@   ?�      FF�FF�@���   @��    ?�      FI�FI�@�	6�   @�	>`   ?�      FN�FN�@�	�    @�	ߠ   ?�      FQcFQ�@�
-,`   @�
-3�   ?�      Fk+Fkg@�
e`   @�
l�   ?�      Fq�Fq�@�2�   @�:    ?�      Fw�Fx6@��@   @��   ?�      F�F�>@��`   @���   ?�      F��F�"@���   @��@   ?�      F�F�>@� @   @��   ?�      F��F��@��    @���   ?�      F��F��@���   @��    ?�      F��F�(@���   @�    ?�      F��F�@�`   @�"�   ?�      F�F��@�
5�   @�
=@   ?�      F�F��@�
�    @�
۠   ?�      F��F�@�[�   @�c    ?�      F	 �F	 �@� �   @� 
    ?�      F	SF	�@�!�`   @�!��   ?�      F	F	V@�"c`   @�"j�   ?�      F	 [...]
-$�F
-$�@�D��   @�D�@   ?�      F
-(.F
-(j@�E�   @�E
@   ?�      F
-AF
-AW@�H#@   @�H*�   ?�      F
-E$F
-Ea@�H��   @�H�    ?�      F
-I%F
-Ib@�I$�   @�I,@   ?�      F
-S
F
-SI@�Ja�   @�Ji    ?�      F
-[�F
-[�@�Kp`   @�Kx    ?�      F
-g`F
-g�@�L�    @�L�   ?�      F
-k�F
-l1@�M~�   @�M�    ?�      F
-s�F
-t@�Ny    @�N��   ?�      F
-��F
-��@�QW�   @�Q_@   ?�      F
-�7F
-�t@�Rf�   @�Rn�   ?�      F
-��F
-�
@�U�    @�U��   ?�      F
-�|F
-Ǹ@�X�   @�X�    ?�      F
-��F
-�*@�Y=�   @�YE@   ?�      F
-�F
-��@�\�    @�\��   ?�      F
-�F
-�>@�]     @�]'�   ?�      F
-��F
-�@�^z�   @�^�    ?�      F
-�
-F
-�G@�^�@   @�^��   ?�      F

F

O@�a�@   @�a��   ?�      F
&�F
&�@�dЀ   @�d�    ?�      F
+�F
,@�e{    @�e��   ?�      F
;OF
;�@�gi�   @�gq�   ?�      F
B�F
C7@�h_@   @�hf�   ?�      F
U�F
V)@�j��   @�j�    ?�      F
`�F
`�@�l    @�l
�   ?�      F
p�F
q@�n�   @�n#@   ?�      F
x/F
xl@�o�   @�o
�   ?�      F
�@F
�}@�p    @�p�   ?�      F
��F
��@�v��   @�v�`   ?�      F
ёF
��@�z2    @�z9�   ?�      F
�_F
Ԝ@�z��   @�z��   ?�      F
�DF
�@�}�   @�}�@   ?�      F
��F
�*@�~=�   @�~E@   ?�      F
��F
�@�~�`   @�    ?�      F
xF
�@��    @���   ?�      F

uF

�@��n�   @��v@   ?�      F
F
U@��    @��
-�   ?�      F
�F

"@��|�   @���@   ?�      F

qF

�@���    @����   ?�      F
#�F
#�@��u@   @��|�   ?�      F
'YF
'�@���    @����   ?�      F
N�F
N�@���    @����   ?�      F
R�F
S@��Z�   @��b�   ?�      F
eF
e>@���    @����   ?�      F
m�F
m�@���`   @���    ?�      F
{tF
{�@��n�   @��v@   ?�      F
��F
��@���`   @���    ?�      F
��F
�4@��^�   @��f�   ?�      F
�cF
��@���`   @���    ?�      F
��F
�:@����   @���@   ?�      F
��F
��@��7�   @��?@   ?�      F
�jF
ǧ@���@   @����   ?�      F [...]
(F
f@���    @����   ?�      F
/�F
/�@����   @����   ?�      F
7tF
7�@���   @���@   ?�      F
:�F
:�@��T�   @��\`   ?�      F
@_F
@�@��
�   @���   ?�      F
UKF
U�@���`   @���    ?�      F
Z�F
Z�@��W`   @��_    ?�      F
`�F
a@��
    @��#�   ?�      F
�4F
�r@���   @��@   ?�      F
��F
�(@��
@   @��%    ?�      F
��F
��@��Ӡ   @���`   ?�      F
�"F
�_@��D@   @��K�   ?�      F
��F
��@���    @����   ?�      F
�SF
��@��
-`   @��    ?�      F
��F
�
@����   @����   ?�      F
��F
�7@���    @���   ?�      F
�5F
�s@��Ơ   @���`   ?�      F
��F
�<@���   @��'�   ?�      F
�uF
ͳ@����   @���`   ?�      F
ШF
��@��    @��
�   ?�      F
�+F
�i@��%`   @��-    ?�      F
'F
e@��d�   @��l�   ?�      F2Fp@��f@   @��n    ?�      F
�F
@����   @���   ?�      F'�F'�@���@   @���    ?�      F46F4t@�Ɔ�   @�Ǝ�   ?�      FL�FM@�ə    @�ɠ�   ?�      F^F^?@���    @����   ?�      Fb�Fb�@��Q�   @��Y�   ?�      Fe�Fe�@�̶@   @�̾    ?�      FxnFx�@��
�   @���   ?�      F~mF~�@��͠   @���`   ?�      F��F��@��w�   @���   ?�      F�2F�p@��&@   @��.    ?�      F��F��@�ԓ`   @�ԛ@   ?�      F��F��@��x    @���   ?�      F��F�8@��    @��'    ?�      F��F��@��T�   @��\�   ?�      F��F��@���    @����   ?�      F��F�
@����   @���   ?�      F�F�X@��C@   @��K    ?�      F��F�.@���    @����   ?�      FXF�@��    @���   ?�      F
F
O@��    @���   ?�      F�F�@��    @���   ?�      F�F�@��r`   @��z    ?�      F�F�@��    @���   ?�      F
F
C@�    @��`   ?�      F7uF7�@���   @����   ?�      F?F?N@����   @����   ?�      FK*FKi@��e@   @��m    ?�      Fj�Fk>@��_�   @��g�   ?�      F�$F�b@��Ā   @���@   ?�      F�AF�@��H    @��O�   ?�      F�@F�~@���    @����   ?�      F�oF��@��M�   @��U�   ?�      F��F�%@����   @����   ?�      F��F��@��Ӡ   @��ۀ   ?�      FϹF��@���    @���    ?�       [...]
�`   @�
�@   ?�      Ft�Fu%@���   @���   ?�      F��F��@��    @��    ?�      F�0F�p@�F    @�N    ?�      F�SF��@�j`   @�r@   ?�      F�.F�m@�%�   @�-�   ?�      F��F��@�Ӏ   @��`   ?�      FȴF��@��   @�
�   ?�      FˎF��@�q�   @�y�   ?�      F΢F��@��@   @��@   ?�      F�zFع@�@   @�    ?�      FܙF��@��    @��    ?�      F��F�7@�
    @�
&�   ?�      F�F��@�
�    @�
�    ?�      F��F��@���   @�ޠ   ?�      FfF�@�#,�   @�#4�   ?�      F& F&` [...]
-@��9    @��A@   ?�      F�&F�h@�դ�   @�խ    ?�      F��F�"@���    @��@   ?�      F�F��@��4`   @��<�   ?�      F�F�F@���   @����   ?�      F�rF��@���@   @��ր   ?�      F�F�@��U@   @��]�   ?�      F	dF	�@��,�   @��4�   ?�      FFQ@��a�   @��j    ?�      F+	F+K@��a    @��i`   ?�      F0IF0�@��	    @��`   ?�      F37F3z@��f�   @��o@   ?�      F8�F9
@��`   @��!�   ?�      FI}FI�@��/�   @��7�   ?�      FSFST@��b@   @��j�   ?�      FV�FV�@��Ҁ   @����   ?�      F{�F|A@���   @��    ?�      F� F�b@��D    @��L@   ?�      F�-F�o@��Š   @����   ?�      F��F�8@��
�   @��'    ?�      F�PFĒ@���    @���@   ?�      F�pFв@��    @��@   ?�      F��F�@��:�   @��C    ?�      F�F�@�U�   @�^    ?�      F �F �@�    @�`   ?�      F*\F*�@�K�   @�S�   ?�      F.�F/6@�ހ   @���   ?�      F>
F>`@���   @��    ?�  [...]
-`   ?�      F�HF��@�U)    @�U1�   ?�      F�LF��@�W)�   @�W1�   ?�      F�nFɲ@�Y-�   @�Y6@   ?�      F˥F��@�Yt�   @�Y}    ?�      F��F�@�Y�    @�Y��   ?�      F�+F�o@�[`   @�[
�   ?�      F�RFܕ@�[�@   @�[��   ?�      F�F��@�\`   @�\
�   ?�      F�]F�@�\ˠ   @�\�    ?�      F�YF�@�^
    @�^�   ?�      F��F��@�_��   @�_�@   ?�      F
+F
o@�c�`   @�c��   ?�      F2�F3;@�f_    @�fg`   ?�      F<�F<�@�g�@   @�g��   ?�      FK6FKy@�if�   @�io    ?�      FO�FO�@�i��   @�i�@   ?�      F\ F\d@�k�    @�k��   ?�      Fl-Flq@�m��   @�m�    ?�      Fp�Fp�@�n@   @�n�   ?�      F��F�<@�q�    @�q�   ?�      F�F�[@�s�   @�s
`   ?�      F��F� [...]
\ No newline at end of file
diff --git a/calib/cal/thar_bright.fits b/calib/cal/thar_bright.fits
deleted file mode 100644
index 5d8c6c0..0000000
Binary files a/calib/cal/thar_bright.fits and /dev/null differ
diff --git a/calib/cal/thargood_2.fits b/calib/cal/thargood_2.fits
deleted file mode 100644
index 0343e48..0000000
--- a/calib/cal/thargood_2.fits
+++ /dev/null
@@ -1,42 +0,0 @@
-SIMPLE  =                    T / Standard FITS format                           BITPIX  =                  -32 / No. of bits per pixel                          NAXIS   =                    0 / No. of axes in image                           EXTEND  =                    T / FITS extension may be present                  BLOCKED =                    T / FITS file may be blocked                                                                                                       BUNIT   = 'n [...]
wE.�E1
E1T�E1��E24#E2A�E3f�E4D�E4P�E4}E5.�E5;�E6��E6��E7E7��E8�RE8ާE9��E9�0E:*�E:}E;
�E;qE;��E<�E=�E>o9E>�zE?GE?[3E?��E@�E at m?E@�yE@��E@�jEA?EA�EA!�EAVVEB�EB�EB0jEBD�EB`VEB��EB�jEC/hECF1ECX
EC�EDuED
DED0FEDDZEDm`ED�1ED��ED�HEE$�EE,fEE�NEEԼEE�EFDEF�EF4jEFV�EFcDEF{�EF��EF��EF�EG/EG�`EG��EG�EG�EH(VEHE#EHPEHy\EH��EH�EH�/EH�3EH�EI
�EIE�EIfwEI��EI�)EI��EJ=qEJa�EJn�EJ��EJ�EJ�/EJ�)EK
�EK>�EK]�EKl�EK�bEK��EK��EK��EK�EK�EL?EL*)ELmEL�oEL�EL��EL�EM�EM�EM;EM\�EMiTEM|�EM��EM��EM�VEM�BEN �EN:�ENZjEN��EN��EN��EN��EO-;EOu�EO~�EO�
EO��EO�EP�EP'�EPREPi�EP��EP˚EQ
%EQ(�EQLJEQn�EQs�EQ��EQ�ER�ERJ�ER�+ER��ER�ES�ES)+ESM�ES��ES�ES��ES�ET �ETK�ETXBETh�ET�`ET�ET��EU
 EUP5EU~)EU��EU��EU� [...]
-Ewt�Ew�NEw�VEw��Ew�{Ew�FExyExEx�ExBwExJ9ExS#Exg�Ex��Ex��Ex�mExѲEyEy3LEy at oEyI�Eyg�Ey{�Ey��Ey��EyʰEy��Ey�EzEz�Ez
JEz4�EzQyEzpJEz�\Ez��Ez�Ez��Ez��Ez��Ez�uE{E{!�E{2E{E�E{a7E{uhE{��E{�{E{�ZE{�%E{ڃE{�3E{�E{�yE|	�E|
�E|7�E|@�E|I
-E|}�E|�?E|��E|�NE|ưE}�E}E}.1E}O
-E}XoE}�
E}��E~LE~73E~S7E~W`E~c�E~�)E~�fE~��E~�
E~�=E~�\E~��E
-�E�E&fE7}EP�EV�EhREt�E��E�1E��E� �E�	3E�
�E�"�E�4�E�?HE�J�E�XfE�^�E�cZE�j�E�v�E��E��E���E�ܓE��LE�3E�E�
�E�
�E�&E�0�E�;�E�BHE�C)E�C}E�PRE�a�E�u�E�}1E��sE���E���E���E��!E��=E��)E��E�
�E�E�!oE�.!E�EE�TDE��yE��E���E��E��E��}E���E��9E��E�!E�}E�2�E�EfE�N�E�`TE��JE��E��E��bE���E���E���E�˚E�ՅE��E��\E���E���E���E�dE��E�)E�E�!qE�)-E�/E�3hE�[�E�i�E���E���E��E�҃E��{E��NE���E��E��`E�E�
�E�)E��E�"�E�RJE�o�E��XE���E���E��1E���E��uE���E��fE���E�ċE�ȉE��PE��TE��3E��E��%E���E�XE�
yE�5�E�JsE�O�E�]E�^�E�`�E�eHE���E���E��hE���E���E�� E���E��dE���E�ҍE��E��RE�E�*1E�GRE�V�E�Z E�`{E�l{E�z�E�}�E��7E���E��)E���E���E�œE��VE���E��}E���E��E��E��E�
�E��E�2�E�:�E�P�E [...]
-E�XE�$�E�PE�d=E�i�E�l7E�}TE���E��3E���E��)E���E���E��E��E��E�ZE��E�-�E�7-E�;�E�BE�EqE�MPE�W�E�j�E��PE��fE���E���E���E�ɺE���E��5E���E�	�E�
qE��E� �E�:E�I�E�R�E���E��E���E���E��oE���E��E��'E��\E���E�
E��E�RE��E�
=E�A9E�^E�r�E���E��JE���E��#E���E��E�E�
�E�)bE�chE�oqE��TE��%E��\E���E��)E��'E��yE��E�
�E�
�E�$XE�,�E�81E�:�E�[�E�iNE��bE���E��E��E�� E��{E� ^E�
-E�%�E�5}E�:E�Q�E�\qE�_�E�y�E���E���E���E��
-E��bE��^E���E�
HE� qE�A�E�E+E�Z�E�q�E��E���E��E���E��NE���E��+E��E���E���E�E�E�"ZE�C�E�F�E���E��5E���E���E���E��FE��-E��HE��E��E��E��qE�
hE�$;E�'�E�0�E�=E�J�E�i�E�o�E��PE��E���E��E���E���E�)�E�2E�>ZE�I�E�RZE�]�E�vE�~�E��?E��/E��E���E��NE�0�E�AE�L�E�c E�hE�m�E�o+E��)E��-E���E���E��E���E���E���E���E�՚E��`E���E���E�jE�	mE�F�E�_�E�iLE�3E���E��E���E���E�ҨE��E��E��`E�
�E�HE�
�E�'
E�:PE�GVE�R�E�bE�pE�u�E�3E���E�� E���E��{E���E��E��E���E��E��E�0oE�6)E�F E�q?E�vXE�{E��;E���E���E���E�� [...]
�E�(�E�-�E�F
-E�P�E�ajE��}E���E���E��-E��wE�
�E�P�E�\�E�aE���E��
E��HE��E�ژE��sE��
-E�%=E�/!E�y�E���E���E���E��XE�ƁE��}E��^E��FE��E���E��E��E�
�E�-?E�0�E�7uE�D�E�G�E�QE�V/E�_�E�j�E�˅E��)E��\E�fE�0�E�8�E�C�E�PXE�WsE�W�E�d�E�iE��9E��E��ZE��E��E�+�E�/�E�C�E�u�E���E��/E��{E��#E��TE���E��E���E��E�4�E�<�E�E�E�LPE�RFE�[�E�n�E���E��`E��^E���E��JE��=E��9E�ǰE���E���E��E�NE��E��E�
�E�6�E�N�E�P)E�S�E�^�E�vfE�yNE���E��7E���E���E���E���E��E�7E��E�'hE�*)E�a�E�yFE���E���E��9E���E��jE���E���E��;E�&JE�2E�R�E�`�E�k�E���E��VE��
E���E�� E��E�^�E�s-E��9E���E��BE��/E��;E���E [...]
-E�=E��E�7jE�BhE�T�E�`fE�s�E���E���E��E���E��`E��E��dE��)E�ՅE�٘E��9E�%E�;�E�K�E�j�E�n�E��E��mE��BE���E��5E��#E��E���E��E��E��E�99E�K�E�]3E�a�E���E���E���E���E��E�
�E��E�8�E�a+E��E��%E���E���E���E��
-E��-E��?E�hE��E�
NE�$wE�/�E�V�E�w�E���E��qE��\E���E�	
-E�
sE��E�E�HE�,�E�7E�afE�z�E���E���E��\E���E���E��!E��E���E��E�#�E�*�E�A�E�M�E�Z�E�`�E�fE�~E��5E�� E���E�؁E���E��E��;E�
�E��E�$E�3E�5�E�L�E�P�E�Q�E�UqE�`�E�z�E���E��`E��E�
-\E�=�E�M�E�mXE�s�E���E���E��fE��
-E��E�	qE�
E�E�W�E�hmE�x
-E��3E���E�ݮE�#�E�'VE�55E�X�E��^E���E��wE��E��E��E�'�E�@;E�\#E�i\E�n�E���E��E��5E�fE�ZE�
;E�>9E�AsE�^E�`�E�o�E��3E��DE��PE��)E�qE� �E�#XE�*�E�3�E�F�E�P�E�a!E�}sE���E��`E��XE�6�E�B�E�RE�w�E��E��uE��XE��qE���E���E�
XE�"�E�=�E�V}E�b�E�n�E�tjE�yuE�� E��E��?E��E��E��E�5�E�:?E�^�E��FE���E��{E���E���E��^E���E���E�jE�+9E�1�E�9
-E�FqE�K�E�OyE�sFE�s�E��E��LE��NE���E��XE��-E��dE��E�
}E�=bE�PsE���E���E��PE���E��3E�!E�PE�(ZE�8E�QE�eE�x E��E���E��RE���E���E��HE��DE��qE��`E�(HE�9�E�IE�s�E���E���E��NE���E���E��qE�ԶE���E��uE�hE�%�E�+
-E�<�E�Z�E�lJE��;E��)E���E���E���E��^E���E�*�E�:E�@=E�VE���E���E��HE���E���E��{E��!E�ċE��)E��DE��E�\E�!TE�=�E�DsE�KBE�Q�E�[
-E�c�E�m�E�{
-E��\E��hE��\E�
qE�5wE�?�E�P�E�T!E�\�E�h�E���E��\E���E�ΓE��=E���E�sE�%�E�4�E�F9E�a E�=E���E���E���E���E���E�}E�$E�?�E�`E�j�E„7E’�E���E���E��E�
-E�C3E�S�EËbEÔ�Eè�EëXE��bE��ZE��E�PE�)�E�9TE�j9E�z
-Eę�Eĩ�E��E��TE�� E�
LE�)E�6{E�^3E�iuEŎ�Eţ�EŲ�Eź7E��NE�
�E�
XE�6�E�e�EƟHE�	
E�
�E��E�GqE�]bEDž�EǛ)E���E�3�E�_1E�l�EȂ�E���E�.E�8�E�O�E�_E�v+Eɐ
Eɗ�E��BE���E�{Eʘ�Eʻ�E��E���E��E��7E�/�E�<E�W�E�hfE˂�Eˎ�E��XE��E�L�E�P�E̍�E̽�E��HE�� E�MÈ�E͉�E͍?E͡�EͿ?E���E��PE���E�
�E��E� �E�;�E�f�E�kTEΪ�E��wE��E��TE�ߑE�q�E�wLE�}�EϞREϥNEϴRE���E�ǪE�jE�%E�2%E�@)E�R�E�f�EЌ�EЕ�EЪBEе�E���E���E��)E�%�E�3�E�AE�M�E�V�EрhEѺE���E��E���E�;�E�@�E�FE�m�EҷE��E�fE�#�E�(�E�1�E�mZE�t{EӡdE��E�� E��NE�
�E�&�E� [...]
�E�*�E�q�E�E��E�M�E�YfE�f�E�r{E��E��E�"�E�.�E�5�E�R�E�gE�RE��E�*uE�dE��{E��'E�E�a�E��E�2�E�gyE��E�2�E�N)E�ӨE��E�TE�<PE��HE���E��E�rDE���E��E�c�E�
�E�-�E�afE�W�E���E�1?E�vJE���E���E�sE�)�E�q
-E��uE��
-E��E�%�E�]7E�}qE���E���E�=�E��}E���E�
=E�S�E�yE���E�NJE���E��JF (�F ,�F ��F �F ��F
F�F"FN�FlF)�F0�F��F��F�\F`�F��F��F��F��F��F�
F@�F_NFyoF�3F�F7F%�F��F�{FwF��F��F�JFԑF�mF��F�sF��F<F!�F$�F?�FX�Fe�Fm�Fo�FpwF��F��F�_F�zF�dF�WF�bF�|F��FqF
pF�F�F#iF&�F>�FF�FI�FN�FQ�FkIFq�FxF� F� F��F��F��F��F��F��F	�F	�F	8F	!F	
KF	:�F	@�F	B at F	B\F	Y�F	`;F	x�F	�\F	��F	�F	�
F	��F	��F	�	F	��F
-$�F
-?�F
-A9F
-ECF
-G�F
-S*F
-[�F
-lF
-s�F
-��F
-�UF
-��F
-ǚF
-��F
-��F
-�)F
;mF
CF
V
-F
~�F
�_F
��F
ѯF
�}F
�cF
��F
�F
�F

�F

F

�F
'xF
N�F
R�F
e F
m�F
y�F
{�F
��F
��F
LjF
�F
�\F
�\F
GF
7�F
:�F
@~F
UiF
Z�F
a F
u�F
�SF
�AF
��F
�rF
��F
�TF
�
F
ͮF
��F	�F
FF4UF^ Fx�F~�F��F�QF��F�F��F��F�9F
0F�F7�F?.FKJFk
F�CF�_F��F��F��F�F�SF��F�F!�F.
FA�FEFGnF]NFo
FuF�PF�MF��F��F��FؚFܹF&@F.RF;�FP
Fo�Fy�F��F�IF�F��F(�F/�FC�F�#F�F��F�WF�[FeF�F[F%�F2{F^fFa!Fs at F��F��FʁF��F
�F;�F]�Fd�Fq3F��F��F��F�F0FG�Fd�Fv<F}FQF�dF�AF�RF�
F�_F�F!�F#�FL�FS�Fd�Fn�FvGFz�F��F��F�GF��F��F�F+*F0jF3XFV�F| F�NF�FБF��F �F>?FI�Ff^Ft�F�$F��F�
F�F�F!tFR�F[�Fl�F��F��F��F�F�dFëFּF��F"dF%�F/�F3�F?�FB�FGCF�1F�jF�mF��F�MF�YF�tF��F�{F
MF:�F<�FKXF\BF�{F��F��F��F
3F
�F
�F
"�F
'tF
:	F
;�F
m [...]
-F`F"(F1�F�"F��F��F��F�
F F 
:F *�F >RF EzF H�F |�F �;F �wF ��F �F! NF!-F!+�F!3�F!{�F!�IF!� F!�&F!�1F!جF"F"%�F"(�F"M�F"�4F"��F"��F#uF#
F#I�F#n�F#�wF#�F#�\F$	�F$[F$@�F$X�F$w[F$%F$��F$��F$�tF$��F$��F$�,F$�XF$��F%8F%AnF%dF%lcF%}eF%��F%�ZF%��F%ՉF%�F%�-F&ZF&��F&�uF'1lF'>�F'��F'��F'��F'��F'�BF'�xF(�F(	RF(Q�F(c�F(lcF(��F(�vF(ϫF(�F(�aF(�
F)RF)H�F)��F)�F)��F)�KF*)#F*T�F*}OF*�QF*��F*��F+�F+K�F+��F+��                                                                        [...]
\ No newline at end of file
diff --git a/calib/cal/thargood_3.fits b/calib/cal/thargood_3.fits
deleted file mode 100644
index 373eddd..0000000
--- a/calib/cal/thargood_3.fits
+++ /dev/null
@@ -1,78 +0,0 @@
-SIMPLE  =                    T / Standard FITS format: NOST 100-2.0             BITPIX  =                    8 / No. of bits per pixel                          NAXIS   =                    0 / Empty Prime data matrix                        EXTEND  =                    T / FITS extension may be present                                                                                                  ORIGIN  = 'ESO-MIDAS'          / Written by MIDAS                               DATE    = '2 [...]
�>��@�|�%��@�|T9�,A@�}Dq�1@�}���@�}�����@�~k���@�?���@�I�*\@���_@��P
_@��a�@����	$l@���p:�@��ئ�X�@��
���H@��w���@����1/M@����
m@��)˫e@���MYO'@��x��ma@����lj@������U@��4��&�@����R~@��j`
�@���),I4@��E���@��2�a@��9k3T�@��Y��n@���Mο�@����E|
@��$je�@��H����@���ܵx
@��sI�
�@����H�@���x̚x@���_k�b@��C�#d@��:^��K@�����M@����@-@���1��@��=�P@��ǫ���@��G)��@��
=�x@���V��7@��0�w�@��̚��@��ߥm�2@��Vt��$@��m���@��Bȣr`@����5&@����}�3@��Kw[�0@��M&�?�@��&uW��@��}���@��m�_9K@��t����@�����ɴ@���s�H�@��
U�� @��?+�D@��'����@����FM�@����'j@��݋ś�@��C��Ԅ@����� [...]
-��
-_@�
o0aǛ@�
�.Y�@�%�f�@��a(9@�o B��@�wl�@��E�X�@�i�{�@��AFm@�
���@�����@�
")��@�*͖ hU@�5t)8�n@�9�b���@�;
5�ʊ@�F
a��@�F��\�5@�H��@�]@�L
-��ض@�N��w��@�P-��`�@�[^6�F@�a�����@�fP�w�@�h�X
��@�jk��l@�l8
��@�nj��y_@�s�w��@�x4�N@�{=Ck��@�|��
�@�}>�
>�@�1�}g@��n�LƂ@�������@��X>-b@��C��ŗ@���-
@���GA1@����-��@����k&�@��F#�1�@��4T�c@��寯��@�����@S@���ENJ@��^6Љ@��o�ǂ
-@���
{�@���!�j@���I+�@��<�D�@��j �@�����z�@��`S~,V@��0���f@��n4�@����l��@������@�¨0y�@��Vu @�ƍ
RC�@��
���@��8�w�@���rd�j@��h�f'|@��	���@��h�@��@�ͭ��su@��s����@��U���@��|�W��@���}��@��c3�j�@�� X�@��ϗ�: @��H�n�@�����s@��W�1�b@��/��C$@��+�
-=q@��Q�>
�@���]	@���r�@������l@��`֐��@��uM
��@�5�7��@��6�s
@��K	�@�
-���
�@�)}��@����@����=@��
Ov`@��6Љ@�c}ǫ�@�	A��@�
&:\
a@�
Ÿ���@�!��s�@�(����@�+�k�v�@�,˸d�@�2�u���@�4<�|I�@�6��zN{@�:�_��@�=�e�vG@�@?��?�@�@�ß�a@�GU��C|@�G���C@�I%�c�4@�Jv�8K�@�L;C0�8@�M�]�\�@�QJ#ᆘ@�Q��mH@�R7E8�5@�T��'B@�W`K�!@�X=���@�X��KM@�Y�T�d@�[�	9d�@�aɤ�,@�b��y$�@�g��'�)@�i�NJm�@�k^#l@�k�\�f@�l"x)�@�m��y��@�p�6�k�@�qd
AV�@�rR�YB�@�r��dӿ@�v*8��@�v}�w>%@�|�Z�c @�}V?�I�@�~]�x��@��>D#�@��A��}@����Կ
-@���F�@��2�ѦP@���}ܥ@��
���@���`o�`@���ֺ�X@��"��@���%��t@��IfY�-@��p�<�	@���7i#@��f��
C@��;��[!@����T�8@���9��@��*sq�@���B�f@��Ro�@��3d�@��z�0@�����@����U��@��}��=�@�¿��M@�ê��gA@������@��z
-RiY@�қt��n@��t��+@��E�d�1@�ڻ
C,�@��E��m@�ݠX6!�@��$	�\@��ǿ@
P@��� }�A@����~�@��/���@���b�K@��=�4��@���}�2�@���6mzW@��b���U@��l����@���k���@�t�s�@��:B��@�s��q@�
-B
��@�
5O7u�@�zz�\@������@���nŰ@��J#9�@�20v�Q@�so;!>@�{5m�@��7��@�%
��8@�&���d�@�'�/��@�*��J�@�-� ��@�.u
I��@�0zA�~@�3�@�G@�4[�/�e@�66V�l/@�7���E�@�:
���@�:xg�
2@�=48���@�@�A��@�A�P3
@�BeS��@�EZ>9�s@�JFq͢�@�K�-fj�@�O*�c�@�[�_�.Q@�]�%Nn"@�e%��m@�e���P�@�f.�
@�i#�r�D@�i��	$@�o,��@�q�B�f@�s.��@�u V���@�u���&@�w�R�
-x@�z!
�:@�z�13~�@�{G��m@�|�z|��@����G�@��v-�p�@������@���dwx�@���8�@��9�
�@����_�@��t�U)�@��@
@����bR@��
��8�@��
g�@��
�
Kj@���V��@���!�@���2�-4@������J@���MU
@��X�+��@��k��
�@��B���@��j9�e@����w��@��|>�Y�@������?@������@���Ne��@��A1eә@�·$RŠ@�Ϟ�D�@��*�ar@��
\�P�@���J@��@�ڝ;�K�@������@���)P@�⺹���@��
��W�@��(t���@�聐��
@��o?�H@��}}��@��L'�@���]�A@����
�@���!L�@��g�M�A@��]8��@��0����@����_x6@��9䒼0@� �*��B@�#h��@��4T�c@�H]��@���b�@�
-	�K<>@�
-o;��
@�
�}At?@�p}�A5@�@��9�@��xl"h@��*c�@�p�~�c@���X��@��s�4
@�
"�.+�@�
 Fb��@�1g�\�@��-M@%@�'�E4�@�)~�"S@�+h��G�@�,�U`��@�/^��;�@�0��/@�2�
l�@�8(�H�@�9����@�:��&Z�@�;Z}E��@�>���oi@�A��
-�6@�B^I+��@�C�%��@�E��{g@�F|ǎ�k@�G:KUi@�G�ӿ/U@�OfR7y@�Q�*�@�S_C�c�@�U=��$�@�Z�r)Z@�_�kr>�@�a�[c�@�b����l@�dC�q�G@�eJ����@�e�=�x@�k�Kf/�@�t�Tqq\@�x���xy@�y'�@�@@�y�
���@�|��;ՙ@���4�
@��
tK+w@�����I@��&��@���`gH�@��[��/�@���S��@��D�b��@�� D�@����;�@�����^F@��Ş@�G@���>�E@����o�@����y@��Q���@��l��I@���Jœ@��,�p�t@��� %9u@��;YnL@���|c'�@��K<>t�@��	1�a�@��0����@�����=�@�����'@��0aǛ@��1�l@����Ӧ@������@��8|���@�Ĝl�f�@����@��hŨ]@�Ƞ���N@��λ�%@��n�>h@���~��@�����@ [...]
��
��@��x)�@���́@��d��@�8�7.@����
�@�<G� @���@�@�
=m��@�

��[@�r�|�n@� �Y��[@�#�^g�@�&h���;@�*c'��@�-
��@�.�d�@�/wQ&cA@�1�j���@�2���5@�6R'�@�7�G
-��@�8�ި�c@�9��'�Z@�>C����@�?�`�$p@�@[ʸ@�CWڃn�@�D�
��@�E1�PaA@�Fl���X@�F�-Y�^@�I�k�Ň@�M�E|
@�P����@�SA�2]J@�[�^�E|@�dmXB�5@�e*�@�f{��Q�@�f�Ƽ�S@�g�!h0@�i"*o?S@�l�w}@�mI�Xq@�n��ưS@�t}s�%@�u%U>��@�wRv�@�w�gQG�@�ymyJn�@�y����@�{�eMa�@�ݯ��@����%�f@���Sr@��h��sT@��'�0@���o6�@��R���@��c>WS�@��
]c�f@���@td@��B>�@���vĂ{@��g�y$�@��.���7@��\�D�@���X>�w@��>b�@��G��/�@�� 6 m@��ebZh@�����D,@��
'��@���Me@���G��@���2�
�@��F?�I�@��"�0�@���"���@���&��{@��a
���@��D�K��@���
��@��k� )�@��
�Mj@���;l��@����A @��ݤ��@��,��oH@��Wf�@����_-@��?k���@���+�@������R@��:l~�\@��"h��@��~�ڝ@�ޓ�.@���h�p@���[��@��|�n?y@��6]	
@��Up@����e�
@�����@�����@��HQ�i@��u�4�T@��tS��@��Q�@����o
�@��q�a@����NP�@��>�4�"@�$!��9@�
���@��
y��@�	*�8�@�ޔ�
P@�n1���@���a��@��b�Ѧ@�� %��@��Sy��@�9Y�%c@��6*^x@�"�� uq@�$����@�)��&_@�+XI�%-@�3j��
@�3�#̍�@�4��s�@�9��܋�@�:]����@�=�����@�?=F�l@�CQxpT&@�C��vĂ@�G� ��@�Q#Pm֝@�Q���$5@�R{��@�T���h@�U/�*�T@�Vl�8��@�X��J4@�[ch�ڔ@�\�&J�@�]i����@�a�K��@�ch���S@�d�K�
k@�hb����@�l���@�p�,�]O@�t
��H@�v��	Z�@�xyQ
��@�yL��+^@�z�%)@�{��N�M@�}w`�ω@�}�M"�@���վ��@�����0@���8��@�����o@��&��8@��3��P@����t�@���
�u@�����@��*�O/@���
3�@��v c|@�����
�@��M?|�@��eY

-�@����ʼ@��5}��@��e���y@����G�@��-rX
1@����
|5@���!��@��e���@����D=G@����=SH@��B�"�@���tK+@�ë��K�@������@��˹�~(@��"�l��@�ˡMP�@��
�9}�@��!��l@��U��@��;����@��^�;ՙ@�ٕ�+�Y@��ܝ��@�ݹ�]��@��"||Ra@���
�0@��XLj;�@���I'�@��Z�?�@������@��
�V@��!�D(@��*���Z@���:�[@��+��e
-@��[B$g�@��k�Su�@��
}�-@���?��G@���?K@�	|��@��#d@����@�r�Y�@�	vY�,�@�
-ϟ#FV@�
}s�%@�
@��Z�@�=	
A@�B7.j@�ґ1�
@�D,�֪@�)�|�@�E4�v�@��э%�@�
@g�
@�#(�4�@�.��'s�@�5�z��@�9���@�;S��\@�?;�\$�@�@FQ�̼@�BK��'�@�C�ꍧ�@�D|���@�E�����@�GJ��;@�N��|�'@�N�9��@�OI�t�9@�R�v_خ@�TI�F��@�T����@�W�-U��@�Y��k&�@�Z�3��@�[�laR*@�c�-�i@�gs���@�g�aM��@�j�K��B@�kM��z@�l�>>)0@�mQ��I�@�n֩�`�@�r�#[N�@�u�f�@�y��8�K@�zN
��)@�{R�if@�~4^ԡ�@�~��\��@��_=�T�@��,��@��.'Z�@��F���q@��
-�l��@���v�I@���8�
-c@��Jv�{1@���X�'�@���u���@��պ+�Y@�����N�@���	��J@�� ��4@����^�@���J���@���	1*@��p6 m
@��l
�@���Jj�]@��ZJ��<@��?EaF@��V�Ǝ�@����S��@��s���8@���`�O@��Қ��@��R���L@���7�@���R�غ@��l���@��OP3
@�����@��d��u:@�̷��/�@��S���@����J�@�ӣ��>6@��E{�i�@�֩Dg8
@��[�D�@���qy��@�ݜ!:
k@��t��
@���ɎS�@���v@������f@��W�7�@��DZ�@�����@�����p�@� �
��@�0Yd@�T���@�v hUT@�Oc�@�	GRT`�@�
� ���@��]��#@��(�C5@��P
^�@�6
-�@��	o�J@�
4�
@� 0�K�}@� ��as�@�!�Gf��@�$&���k@�)3=��@�)���n�@�,�![�[@�/vOv_�@�0kn
$@�0�[c�@�2�(���@�5\�<@�5����@�8�Ĺ@�9V�ԙJ@�=�A�@�@����@�A~e8h�@�B
���@�Cɇ��n@�F6!���@�J/�kP�@�K�~�[�@�L��)�@�Pk��e|@�T�t�G@�VkXl��@�Xb��If@�X���A�@�]n�`�@�fA����@�h�7��]@�jL{�
Z@�k�KZS@�q�����@�{��m�@�|���v@�}�S�y�@��~�-@���f�@����UP@��!��
@��uXdE$@����=^@���7y�@���25�@��h#�@F@����J��@���Cx$�@���	�ܵ@��ڃ
-

@��t�
@���M���@������@���|�@��
�#�
@�����o@���B�& @����`4@��׎�j�@����# �@��
z��@���v���@��E��@���3�U@���v�:�@��@�@��*g�*�@���k�L+@����]B@���L�j@���/�3�@���斢n@�����1@���qG�@��gb��@�˅�!�S@��y��n@��� ��@��H�!�@������@���w��8@��A��Y
@������@��`퀡@��*
�$@��ƃ<`@��H�<X@���Cx@������@����o7@��
-��
@��FvB||@��%�@�������@��W�P��@��~��#�@� ���@��N"��@��٭��@��I�3�@�W]g�#@������@��%1�@�Ѽ3�U@�a���@��ij&�@�

�łV@�
ks�m@�
R٭��@�}^Z�*@��B9`t@���z��@�}d�R@��7�
�@� ���@�"S�-�@�# �LD|@�&R��`W@�'zԀu@�*
-b��@�-j��g@�.�o��@�1
Y1�}@�3�ZWdk@�4.��D$@�7%=�c�@�8�"��@�:�v�@�<�#�k@�?'e�X@�@���@�@�]��m@�A
�!!@�A�&�\�@�C.D4�@�E�/@_l@�F����@�Gݏ��@�H
1��@�H�Q���@�J�x��@�J���g�@�KWL��a@�La�p�@�L�6�N�@�Np�T\y@�R5m�@�R�>-b9@�T�ѕ�j@�U�&�G@�X#;�X�@�Y�*��@�[#����@�_��Ž@�`\���W@�a0�͚@�b���@�b��
�@�l����@�o,�}w�@�o��+� @�piA��}@�q2>��I@�rt�H0@�r�K��@�s��J�G@�u.�h@�w5��?@�w����U@�w����@�ynJ�j3@�|"���@�|�c�@�}'Z���@�}��3a@�~�)oe@���j&�G@��L�:O�@���ˎl@��c%�l�@��(n�)�@��%�w�2@�� [...]
-@������@��v���X@��c蚈�@��N
q@���H!�@�����V�@���M"Ȃ@�����@��B�s��@��F&��I@��R�Z-s@����c��@�����@��<����@��@���@����<�@��U�OU@��Fp��3@��~!t��@����2
�@��W��@��IUO��@�����m]@���F(@����d��@���9ul�@��T���@���$�v�@����4z[@��[�OQ@��Σ�4�@��R�|�@��#��@���X�Rn@���((=6@��r�|�@��j-�p�@���Є�2@�������@���bV@���1~�
@���6z�@���J��@��Ng���@��p �)�@�Ǖ�<�P@�����e�@�ʐ~($
@�ˢ](�@����I��@�̦b�n+@���<�H�@��-@N�@��.��}@��̝'Ó@�ٚ:\
a@��A%��@���l��|@��jh�a9@��Ε�S�@�� ]�23@��n��B>@��p��@��F6K�h@���q@���Zx�Z@��iM/]�@���?��@����ȟ@��V�Na�@���ڵÜ@��F�ka@���)�
u@��
sGy@��q�]_@���
!S7@��a���@�����@��S�-#O@��w
�@���FmD@�r斢n@�{�l~�@�Q�Pm�@���.8"@�
S���@��{j�@��
sщ@�Q���#@�__ô�@�*��Y�@�
-���@�
-xؘ��@�
�sl�&@�
�!�5�@��%k�S@�}QPT�@���Ȇ@�-DVq&@�6�ҝ�@���5��@�
I9�a@�
�(
-�@�!��D�@�#� #@�$�Fb��@�'
b�|�@�(�^���@�)�j�]W@�,#���-@�,zn�p&@�-s��@�0b�VC@�1���D@�2�B�< @�3��S&@�8{T�"u@�9�H�@�>|V!u@�@<�-U�@�@�T%�@�C�:��@�F
Q"1�@�GC	��@�G�[��/@�N�;�@�Oi�z�@�P@���@�P�w��@�Q}�9}�@�Q֕tp�@�S��hj@�TH�R�}@�Uq�q.A@�W��ʆ@�Wv$�<@�X��d�@�Xݴ�� @�_:ʫ�]@�`�8��	@�a�)4��@�b=^(�C@�c
�dύ@�c���z�@�d��M/@�f#�e47@�f��<��@�i<t�8�@�j gY�m@�l��l�u@�m=�I��@�m�
u6@�o��tp�@�p"��[�@�qW
\
�@�tR*M�d@�u0sʒ@�u���I@�v��
>�@�{8�Nv�@�{��
��@�}6�OY@�~�w��8@��D��JZ@���+f�@��+q��@��X��C@��J8� C@�����o@��~�$�@��O�N�@����S.@���4"F|@���F�d�@���n���@����ưS@��<���@��� KZ@���
-k��@�����l�@���Wyc�@���j�8�@��7b0v�@��8�D5@����?>@��
D0�y@�����
-=@���r�0@��B[�Қ@�� �a�@��֣
@��rل@�� �l@���ͻ�@��-P3
:@��q�ʉ�@����{@��h�a�
@���[9�z@��Q����@���e��@��A�+�g@��
{Ԍ�@��g
@@��A
���@���¬�Z@���j~��@�������@����
c@���u�.�@���X>�w@����k��@��՗���@��c�@��ι�=�@��X���7@�����@��O��*@��d�A�@��9m	@�����@��.���@��g��Y�@������@��=m��@��$rm�@�؅��
�@��%�}g4@���ߋr@��8�
�@�ۈ?��@���0���@���f�:�@���1a�@��N'�
�@���ck	@����}��@��4���@�秆]|�@���ݨ�#@��]:@��m)��m@��(@���<�@��o�_ND@���P�+�@���j]k�@��kut�#@����
C-@��$��>@����_�@��`�T\y@� ���t�@�>�x�i@��>݋a@���f<u@�9�
�@�U�Lj<@��G
@�s���@�	L&� @�	�.��@�
>��<@�
r��S;@�
��]@�PyN�w@�Fj"��@�~�־�@�LO;�v@�3��y�@�p腏�@�
 $���@�
�@�n@�#�I@��@�$��y�@�'@
� �@�)�6��>@�*<��/@�+�HE0@�/6}Q@�0.�Z�@�3��"�@�6�H��@�73��O	@�8����I@�:�$�=�@�:̀sW�@�<+�qy�@�=���@�C`4��@�ICä@�J���s�@�KY�Cg^@�M [...]
@�RU�
>�@�R�O��@�S���@�Vq���@�WtV
|@�Y�wWOr@�\�k�7�@�c
��l�@�dK+���@�h�#:G@�j
���=@�j��](�@�kn,#ty@�oq �i�@�o�U�ٌ@�pu&���@�p�אu.@�qF�xg�@�q�
lґ@�r���@�s���r�@�x"@��@�x���p@�y ܨ��@�y�<y-@�z��: @�z�[l7@�{2�R
@�|
�
-��@�~
���y@����C�@��x��W@���>p~@��
��?@���c��@��3(ٺ@��i��h�@��d��Z�@��šM�@��o��y@��
�nD@���n~b�@���^��B@��X�2n@���p��@���ߨq�@���<t�U@��{�`4@��PN
�
@���X:S�@��R6��@��ǀ�lz@��1i�@���C,�z@��JGU��@���ݜ'�@���V6mz@��E�� @�����6@��%�~�1@��b�
�+@��p-fk@���J�?�@��>�t�r@���_���@���`4@����
-�w@��+�xu@��
5Y�@��Y%��@�«�I��@���T��@�ɝZ�S@��`H�|�@��M�\p@��K��ޠ@�ҥ�ߵ@��1suB�@����(@�כU��@���&�2�@�ئ2�f<@��]�b�@�ܨ�
,8@������@��
�/��@�ߘ��D�@��)sd{�@��}s�@��y�u��@��׽�@��)���
@��S����@��\ܨ��@��ܮ��@��p���T@���c���@����zR�@����=.@��U l�@��n�Z:@��w1��@�I���@�
-]>p~@�
~�g׀@�k�v�@����@�@�4e�=>@���n��@�ڝ�%�@�>e���@�%k�S@���3@�C�|�@�}�7��@�ۑĹ@�	��z�@��Ċ�@�
�yW�@�
q�vSC@�
��VW�@�!����R@�!�47?1@�&��P3@�+5m;l�@�,<���@�-5�ZJ�@�.(+0/s@�.�q�1@�0�I���@�1z�4�@�3j��m�@�7��>
�@�?L��M�@�A�ZJ�@�A����Y@�E5���@�KE>���@�K�@
@�Mjj��F@�OAxpT@�R����+@�V at W$�@�V�X�Y�@�X��r�@�Y�KUh�@�[����e@�[�"[t�@�^��3@�aa��-
-@�a�y|�@�c0?��?@�e�rq6�@�gUR���@�h�q:տ@�j���!
@�o��n*�@�r����I@�t/��m@�t�B��Q@�v|���i@�y_<Ĭm@�y���@�zU�6�]@�{%�
>�@�{��<
 @�}N�w�@��  -��@���+��@����A�@��
\
�@��L�"t�@�����
\@��S8`��@���
-è@��?"�
i@���R�@���z�@���D$
?@���O?�@��0���@��U��j@��jӄv�@��zZ��@��*e8h�@��/
��I@��r�i<@��G�P�G@������@���[c��@��@���8@��{B��@���\c�%@���f+�@�����q@���DVq&@���?N�h@��O���@�������@��;}c@����R�
-@������
@�����D�@��W�|�@��?��+@��Zm���@��
2Ήe@��m���@����
�+@��W�{J#@���|��@���~^��@��-&�#�@����L�@���}o�h@���g'V�@�ŧ�]��@���
�&@�ǃ��9z@�Ț
=J�@�����h�@��1*�� @��"����@����fI
-@��#G�J@��U�w�2@��s��y�@���A9�4@�ҥ��ߓ@��wf@��@�ԗ��8.@��u
�@��#�+��@��rE�X�@�ڟ����@����;�@����<
 @����~4�@��
J�b�@���
kn
@��|#��6@��-�Mn@��
�߃@��!#��@���W2@����ۜs@��G
lґ@��
c�r�@���@��ͻ�@�}Y�B�@���0�c@�}�
�@�
-<)�@�����@�yQ֌i@�	��* @�O�8@�:�qG@�
6-r��@�
4�3�@�"=�'-@�$�ܜM�@�&��(| @�)�

Z�@�*I+6�@�+uDVq&@�-��3n@�0��[�@�5�
-Z��@�6̣
��@�7SA�D@�7�lP�3@�:{�$�@�;$�!��@�<�����@�?��'��@�@t:uF�@�Bi�#1]@�D]���$@�F�c�@�Ju
I��@�K�4�o�@�M<X�Y�@�R^Fu@�S�̼�@�U'$�om@�Y�����@�[;	 :2@�\X����@�\����f@�_���=�@�`��w�s@�b� ��d@�c
9��@�dN�� P@�d�mm��@�e�ˎl@�fCQ�I@�l9��
@�l����@�n�
>��@�q9���@�u;�!J�@�u���/�@�v�%k�S@�x2F�V@�z�N�@�z��i@�����~@���2
`@�����׌@���py�@���~VG@��\1�Z>@��Ơ��C@���׌C@���9��{@���ղN�@��)�L�X@�����@��A`؇�@����>��@���R~R@��
ar
@���#l@��h��8�@��%b{�@���e�/@�����}�@����`�@��� �c@���'�0@���!B@��XZ���@��"��d�@��qY>_�@���Ո]1@����
x@��e����@�����c@��hW�@��HNrS�@���r.�@���=�@����蚉@��g��nv@�ڣ��h@���0H@�ߔ���Q@��9櫛@��O�w�@��`���G@���ƴ��@��]���@������@��4�X
�@�� y�JE@����
-@���n�@�����@��ӑ`4@��&FZWd@��'�P�G@��Ap�	@��B�؄@���z�y@���LUC(@������f@����[�~@���ô�@���R7y@��Z>��@@����iP�@� !J���@��Цv!@�
7O�f@��_���@�	���@�
-�W��>@�
�.D��@�

Ɔb@���A@���+8�@�����(@���C�@�
K]�d@��@�8�@�4��3�@����!}@�,��>B@��FB�@�%k ��@������@�3}c@�
�?��?@�
5Pes!@�
�/��@�W��0�@��+f�@�"ķ
-è@�$rEM��@�0�)��@�1��ߨr@�2h��+@�5�&�$@�7
�[�v@�9J��^1@�:&�=�@�;��@�<;BV��@�<�/��@�=cj���@�@���8@�A���d�@�FӪ6�@�HE�jf@�Izӄv�@�K�쿱[@�L7�
�@�NNJj�]@�Q�B���@�R�
)�r@�VVh�a9@�V��i��@�WQ~��@�WĀ�s�@�X4f�l@�Z�K���@�[�,��@�^�=
�	@�_ch7��@�`��
$@�e��#�\@�g
-9@�g�
��k@�hh2��@�iz灃�@�l����b@�o�IMP�@�r���=@�s�I#_�@�t����@�u4SK�o@�u�D�L�@�vT�*(@�w�-fk@�x#9�y�@�{��l	>@�}G쪸�@�}��a�F@�C�W~@��M5 ��@���h{�@�����8 @����:�"@���<Q�@����z
&@��`=�?@��߃���@���=�c@��s�j�9@������F@��8
���@���ۜsi@��Kg�L@���a�@��U�v@���d2�@����m;m@���N7�x@��CS&@����3v@���T��C@���)˫e@��
�@��y2���@���
oz@���X�7@��
�9�
@���v��[@��
�)I�@��"|(o�@��-0
�@���yF<�@����"$�@��Ռ��@��&��@��
��[@�����@��$�
�
@�����+@���5�q@���*<�@��4E4�w@��[� ��@���Y�C@��d#̎@�� [...]
-�%)@� ��Zp�@�!-�a��@�!��{|x@�"kQG�0@�# Ï6i@�'0r��@�)�
-0�j@�-
sd{�@�05�*��@�3�
-èa@�51L���@�6�A5Tv@�7Y3�#S@�:�i��i@�<(�^|�@�=�-���@�>�i�;@�>o>F��@�?"?Fg@�@c�M��@�AD�[F@�BKk~�@�Du��Ŝ@�F23X�@�F��X>�@�GE��]�@�H`mPes@�Kg/�@�M��IMQ@�OK��@�O�
�H�@�S�Sy��@�U+��'�@�U�
�$@�W�
��@�Yl�D�~@�[�M:�@�]
b�@�]c[>8@�]�#3@�_��X��@�a
Q��r@�a���s@�f*;%o�@�gM2��@�h�3?�@�i�X��@�j�� e@�k�+
-o�@�m+��h@�m�L�
�@�n�ꢠ�@�q��ɣM@�tS�4@�t����@�uc�8��@�u�c�Hk@�vE���@�x�V��@�y�a@���H�u`@���Kr�@��.Zݜ(@���

!y@��# �1@��‚)�@��*���@��kD�@��fu@����X�@�����@��f�ER@��nC�Σ@���� q?@����ԝ@��Q�]=�@��z���$@���n;F�@���h�@���^ F�@���Wꢡ@��]�c�@���1�@���!)Et@����ҿU@��k�2@������@��r��/�@�� [�S?@���Dǰ-@����O��@��^AԷ@��
Z
�@���ϑ�+@��^�^��@��C�mL4@���
O� @����B�@��
-=q@���v�@���g]�+@���x �@��7��ȟ@�ܮRX�h@��yy��@��
�oX}@��O�>�E@��.��@�����@��_�<�X@����S`�@��.�9��@��6�$%@��Y\)@��FÆ��@���U�`1@���ڔ5�@������@���{�S@�������@� Cdj�@�sf�3]@��:�@�H
-��@��X�@�\����@�
��F@�� �� @�,䧴�@��
��@�Q��
�@�:��/�@�b��d@�
�
8�g@� �
h�S@�%gz�yl@�&;[��@�)����@�*O���&@�,m#�Հ@�0�����@�1���ڐ@�4��0@�8��JD�@�:<W��6@�<�t���@�A?�+�Q@�A��T��@�C����y@�DA�ʖ�@�H�4� @�Ly��r@�O��r!�@�PQ�5&R@�Q��@��@�W�n&@�X3X��@�_���\�@�a�P
%�@�bD%[\@�cM�p�@�e
}0�G@�e��$�@�fCȎy�@�g���|@�i~-
�@�k8D���@�k���k�@�l�)�
u@�n�����@�q4l*�@�u*VW�j@�w[c��@�xpz|��@�z)+�.@�}�u��d@�~?�ײ@�k��>6@��[��{@���	��@����;@��	4H)@��i3�t@��9����@��&nC�z@��?xx��@� [...]
@��1d���@�����@���|��@���O�
@��:
�@����.n�@����
��@���k��@���:�@���#
��@��a�jΫ@����.@���l
6L@��.
�@��Ǚ��@��<��@��WOag#@��x�>@��1��@��ߚ��@��k�׈@��9 ���@�Ƴ7�
�@��C"X�@�����@���U��@������@��ra���@���SXl�@��
���@��ͣ~��@��Q�X@���F���@��)bZh+@�չ�1��@�֘J�x�@�٢��B>@�ۈ����@���`,��@��w7E@�����0�@��*�E�@��_Ru�@��\�̖F@���^k�"@��z�7��@��3L]�@��
����@��tʣ&�@���j��@�����{�@���Z���@����4H@��9h� �@�����L@��l�v�t@� ���G�@���q��@��>)0{@�
-f���@�
-��!@�
=}��@�
i�{�@�ZO���@�+��(|@���eg@��l���@�
���@�"njDAx@�$�v���@�+"���@�-$�q�@�1�
܇U@�3R/�m@�8nϕ��@�=�$�˟@�?��N�@�@��N�@�A�`�3@�E��� 
@�F�<�3@�G�7�@�L���@�O�F�@�R^�'x@�Z��<�
@�].��3@�_��VC@�`M�Ĥ	@�`��y@�c
�C�@�e
-}�2�@�f,���i@�hg���@�j|1[�@�qlZ���@�r�?���@�t7�U�@�u`gH�@�xPQ��/@�x�	��@�|3>�6z@�����@��
�~k@@��)�jz�@��={0��@��)ο�@���P��1@��C���@��G/���@��AcV�@��|���7@��0�2z�@���%9um@��>fY�@��ߙ,�P@���b�<m@����8�@���)�@��i����@��@;-�x@��><
�@���L�s�@�����@��(����@���c�W @����g�@���X
0�@��.�/@����
Vu@��]ِ)�@��j
-�h@��g�(kY@�����&�@�����'9@��N=���@�ë(�f^@��
��?K@��"J��@�̼�z�@���[�vh@��F*��@�ӡE0��@���%x_�@���
yh@�խ��W@��!�R�<@�׬�{k@��@G�
0@��E�`Z�@��T~�@�����}�@��u�̒@���>��'@��~��}V@���l�&l@��Pzk�@��\B鉜@���i}@��e:>�/@���f{_
@���(�m�@�� ڐ�@��^M	�@����6&@��
NrS�@���Cc,@��5 �i�@� ��c��@�r%���@��\9��@�
�>���@����=@�pt�@����[�@��=]�@�
�7z@� �*�S�@�$��%
R@�)G���@�)挛�U@�."�
��@�.�\���@�2�M"Ȃ@�41�)@�6��W�@�7C¨��@�<y�
�@�@fx��6@�C�Љ�@�G6����@�Hn�
-@�H��qT @�KRƊ�l@�SS&�@�V9��ˎ@�W{�B@�X�
��4@�Z�����@�]2���Z@�_Al�P�@�a}��
-�@�d�L7��@�e\��?d@�e���2@�g�
�NM@�j�����@�q�kHMw@�z
-�	��@�~��I8X@��% ���@��,�>
�@��
�3;�@�����$@��/n��@���{�
Z@�����'g@���3P�e@��q���@����$�@���ض@��f&,�s@����1�@����@��z��d�@��:�ީ@���腏�@�����4�@��vH��&@��
�ýZ@��`��]�@�Ƭ�L�@��{t�f@�Ȼ"��y@��!�^�@���4��j@�˞�h�@���zcsm@��j���@��q�n�F@��?l'@�ل�@��*;�
@���&NHb@��hck	c@��b��
-@��8�[Fx@���ry� @�「�M'@���n��X@��~��E�@���4���@���o�@���!���@���f�@��},'�7@��\1Y>@��
I��@��I�@�
W2@�
-[�
kn@�
��@��z�+�@��l�uS@���M
�@��q�@�^u%F@�
K��J@�
���܌@�$��.�@�&�)�O@�&
���@�)�f#J�@�*��8��@�4�/�:�@�6���K@�7@��+@�9�C�OH@�;0*�i�@�=b�Y�t@�A4m��@�B��'p@�FO��p@�F�1��@�H
I+��@�H�=_��@�I��b�@�K���R@�L�E��@�MP����@�M�� \@�O U�� @�R. F�e@�U��֕@�V�as�@�V�]�\�@�Z#@_k�@�]QaE�@�_mjz�
@�a��o��@�e�9�@�f3���@�j�RP.�@�kT�o��@�n��5��@�u�}��@�zP2�
�@�{R��@�| !��@��\�zN{@�����8�@������@��<�,,@���7�MM@���[��@��|��u�@��w-�>@��� �0�@�����;@����'p@��Qh���@����ҳ@�����}�@������@��ƀϞ8@�����@�����@��x�
@����� �@���wc�@��?΅3�@��	�Z�@��@�;�@��䂾��@�� B��@ [...]
�,�@����0ߜ@��J��'N@��hG��@�ߕ��u@��ŴV�B@��Ϥ
W�@������x@����(@��M��]�@��?ڃn�@����t�@���f�z�@��sպ�@� ��F�@�
-���@�
Hs6Y@����w@����z@�
��j��@��K<>u@�!}~g,@�"6��%@�'z$�h#@�(�q���@�*���=�@�+P��[B@�0?�
��@�EFoP@�M��
�a@�P6J��@�P�S!�@�Q	}|,�@�Q���>@�Ui�D�M@�Xͺ��&@�Z�S X@�_��s�@�gQ/�ek@�j�I�א@�l{��@�mHV!u@�o&
�d,@�q9�D�>@�rv+IY�@�t��L@�v@>Ȓ�@�x�T.U~@�y[�8:�@�|Hu>p~@�~�`ܹ�@���	��B@�����F�@���v�_R@���_���@��d�W��@��s�k�@���Ag�]@����.@��zߤ?�@��d�Ҫ@��A�@�G@��UddI@��+C�G�@���6���@��ҽ<6@��V�>h@����;`@���G���@��z/�3�@���3�U@���=�� @����2D @��e�m�H@�ԏ�Pv:@���ȸk@�ڹ:
kH@��[����@�ܜ(��@��v.� [...]
�w@�R����@�U�
^�@�WZ� ��@�Z-L"�B@�a, ��@�t�<���@�uqsuB�@��D"�s@��$��!@���%��@���p7@��%��t@��5��G�@��Ϊ��B@��&)�Ύ@��H��p�@��}�Io@����� q@����`�O@��&�C @��f+�<�@��W���)@��
 X�@��
��P�@���C��@��J䎊r@��XH{��@��X��@@��m��n@���S�y�@��
,f�X@����6?@���%��@��lC��7@���� 2@��p
Yy@��{�)9@��V~
-�@���qX1�@���Ï6i@��O��T�@�K,�zx@������@�@�kL@�
^'�@�
K��t�@�~+Z �@��4Pj@���Z�@@��J›�@�5@�$@� �x���@�"��H�@�%�㎰2@�&���.@�-x)�@�/)�lv@�9Z�Q�@�;�$�=�@�<Sk*@�?�K�}|@�G�h"�	@�K ����@�L���3�@�Tz��i�@�Vh`�+�@�WY���@�c"|�Y@�e�S�W@�gY+�@�h}:`N
@�k$�ѻI@�kБ��+@�qm�'��@�}PS��@��SLnm�@����7@�����½@����BA�@��Ud�c@��W�v�@��X���&@������G@��mX��@��P� �)@��4�l
o@������@��Ұ1��@�������@��Xl��@�����@�Ǒw1��@�ɴ�� @��,���\@����<�@���Y��@��a�OU@�� #�\%@�㾽]� @��Q�0
�@����z@��"9�@���֥�@����g�@��`���@����w�A@����VX@��AO�;d@��81Y>`@�ԙI�@�N�0]�@�'[���@�
�F^�"@��.��@��Z1��@���y�@�
D�_��@���q@� g�:�M@�!�8��@�0�qT 2@�3�
�ZK@�>�P��@�Q���,=@�R�b��@�[�^g�d@�]��
-�@�`�3�92@�b~ KZ@�eӅ��@�fQ���@�l�")�@�q!�Z��@�sk�$�@�|��y$�@��:�@��y�~˸@���
?�@��R��3Q@��'B��@����@��c@
��@��u.׃�@������@��u�)M�@��ʁ��@��C�"$�@���T��@��tck	c@����s�z@�����@��B�3P�@���B�¤@���4;p�@��vgQG�@��Hq`�l@��E=@��=a�M�@�۟tW��@��Q櫛$@��q
�;@���̷�@���l
�@��İ��@����:�@�����#@��2rC@������@�"@�ϕ�@�$����P@�&(��o@�(,�A9�@�-�[��y@�0^Q~w�@�3��<�@�7]��^�@�8(���Z@�9�H�R7@�B0"��@�X@Ľ3�@�Y�
`=W@�^3M��@�`nfU�o@�e7�a�?@�n
��h@�r��iD@�uN�#��@�v�
��@�~�_�r@����tW�@����/f@��8S @��<�&�
@��.n�T@��B���Z@���,�@@��g��R@����_@���3"l<@��#N�@�ճ�� [...]
-%R��@�>ME�_�@�@m|N/8@�C�ۏ�/@�D�
e@�E9�n�*@�F���|@�G�r:��@�J�
�#�@�L)�=@�L�*�ER@�R�n*�@�S\�n@�T>�t� @�U��6�@�W	z
%�@�W�as�_@�]����X@�]�Hboa@�`\��If@�`�-+�5@�a�y���@�bD���@�eܰa @�h���_�@�oz"pmP@�p]V�@�p��;yS@�r��n�@�~�U⊤@�Ay }N@��v�8@��,c_�@��
JA
@��ag��@����p�@����`�@��L�'x@��''=[�@��O�*��@��L�$N�@��Fﲪ�@��t�
�@�������@��t���@��V�:�"@���~+V@��xԺ��@��9"X�@��,�d�@�����@���l.�D@���L
��@���l��c@���Y�B�@�ȍ�gQH@���>�
@����=@���Hf�@��
ffff@��:Ժ��@�֩F�k�@��
���H@���� &@ [...]
-0"&�@�6C�2
@��~� @��
N�@����ɴ@��蚉@���E��@��c8�|@�<���@�&��Q@�
9�7 G@�
����@�_[Fw�@�!�

Z�@�"g��z@�"��?�@�#�^���@�'[��"@�(G"���@�/)��@�/�`�@�2Kn���@�5 �Mrz@�6Ai���@�8
���@�8�~0�@�:�.�@�>����6@�D�s�z_@�H�T�*@�JeR��@�Kt4�E1@�M�M���@�Rj���D@�Uf�j
-@�U����@�X�<-��@�\��鷿@�^~C�2
@�^�+0/@�a�1Y>`@�d���@�gm����@�p
�A5T@�vԓ�f8@�z��5q�@�}�_|gZ@�~�3�@��kr>�@��rr:��@����U��@��y[�Z�@���퀡{@�����&�@��N�Ti@��r]13@���7�w�@���mq�b@��:vd
-l@���
-E� @����V>�@��C\ �G@��K�G{�@��˳��@����?�@����m�2@���f�:�@������@���4a0�@�� G'�@��_����@��HQ��@������@��C
�@��+��i@���s�W6@���l �@��o@��h�m{@��I��)@�Ɗ�d@�@��HtB�@�ɝ	(��@��U��@��#E=!@��X���T@��G'$18@���R�@��v5&Rz@��2~�M@���[BF@����T�@��i5���@��cŽ@�����v@���^$x�@��K���@��׏.�@��8
}�@��J_k�b@����L�@�~.���@�����@�?yЦv@��
�kv@���Z�@�	3m�@�
��@�
�N��@��
w��@�I��r@�b���j@�)�D=G@�|�C�@��>i�@�3��@��
���@�
[�?��@�
"��JV@�ڻ쪹@�#0���P@�$��&|l@�%����@�'|����@�*��e|@�-�‚�@�/8�Rm�@�2�a�x
@�=bL�W�@�Q�G��@�RRhf�@�S���GR@�T
���@�Vw"�A@�WJ�>��@�X�GZ1�@�`�����@�c
Sޤf@�d�~�
@�k̽�|c@�m��n��@�n
VuW�@�nh)Zl@�w���N@�}��*+@�WE���@p�v5�@ƒ*���@‡vy5v@‹���U @Œ�1@�@�J�x�@‘ӂ���@’9�F��@Ÿӭ
g@ 4~��@¦�?��@¬�a�x
@®DŽV!@¯�����@¯�ٺ@±3yJn�@±�=
�@´�xl"h@ºg;�gf@���j3z�@���m�9�@��>F��@��w��I�@������@��{E�|@�̙b���@����4z[@�����,@��sp?-<@�Ԙ��
@��=�l@��Y`A�7@��eJ�q~@��gw�Z@��ݶ�!%@��f_��@��� [...]
-@�Y2$N��@�Y�bV6m@�\�?c�@�fc)� K@�ij��5@�k�FI�m@�n�=��s@�o�V���@�p/e<��@�u�پL�@�w�~
-��@�y;/�:�@�z*���U@�{X7i"�@À�d4\�@Á�J#9�@Â��g�@Ã��证@ÄS ��@@Çz�YW�@Í���5L@Ó$j㣩@Û�����@Þ����/@à����@ã{
���@ä��i�@ê|�-j�@ûI�zg�@ÿ�����@���f�Q@���v'�@�̱tՔ�@��7&^B@�β̚w�@��!�yF=@�ٰ?��G@�߁uK@��BrKv�@��K�Ĥ@��E GM�@��507�0@���6��
@��7`4P@����^�@��B�u@���P�@�~�03�@�"E�
Ec@�.]���@�/v`o�`@�5D���Y@�6�*�")@�@�R�|�@�Y��K<@�m�>�h8@�s��p�@�wUC(t@�~ ��R�@�k�'��@ā>�e��@Ă���@ą@s`J@ċ����@ċ���8@Ď�M߆�@ď��|(p@ď�
-A�@Đ��u�@Đ�Y�W@ĒG���
@Ē����@Ĕn���@ĕ(�'N#@Ėiʞ�@Ėz'A�i@Ė����@ėdI<��@Ę�y��@Ę��F�@Ě�z�d�@Ĝ�+�D@ĝk
-�6P@ĝ�t�ư@Ğ9���@ğ��xy@ġ�ޜ*@Ģ��.n�@ģ�'��O@Ĩ
*���@Ĩ-�_c=@ĩ�OU@ĩ:�q��@ĩ��Hg@Īښ�s�@Ĭ��n&@ĭv��-@ĭ�h�ĵ@į��s�@į��t�j@İ>�
-ء@ıclX�@ı����@IJs��@ĴK�q�8@Ĵ�;}��@Ķ����V@ķ�o��@ķ��V@ĸ8�6�@ĸ�8d�\@ĺ�#̍�@ĺ�����@Ļ�] l�@Ľ����@ĿE�`4@��q[��@���
�R@��$�^��@�ư:W�@��qu�"@���ڋ�1@��)L+Q�@��B�Ȱ@��ӋX�7@��>��\�@��J�t�j@����S�@��mj�o@�҂_A��@�Ӗ4��@��
��V�@��>� q?@���j�%@��.��B@��PFb��@���ʣ&�@�݄�j�k@�ݳ����@��)�+@��-~��@��~
��@��җc^t@��å�q"@��h
-c0Q@��
R�
-x@���L�@�򵛺�
-@��v�h�p@��Nu�ү@��)���@��9�$�@���p�@��;�?@���:��@���4�
(@��.��;�@����=�@������b@��a@� <>��@�*Eh�@�p�
@��x�Ӏ@�0�
-c0@�	5'�!W@�
-7�$tT@�
-�\��@�
+[��@�
}v���@�
Pzcsm@�
�NΚ,@���S.@���@�.��z�@�Fl�<K@���@�,4;q@�EM��@�D1ί%@���
~@��[��y@�B��M@���ڋ�@��}t@�
#���	@�
r�O��@�
�s�e�@�
�S�k]@� ?����@� �����@�!ßnŰ@�"
-0��/@�&����Y@�([H���@�)/���@�)NeI/�@�)���+�@�)�Y5�;@�-�zԲt@�2�����@�4�z=��@�6�׺f�@�6故7�@�7 at l	=�@�8L-@��@�9y�U�6@�9�!ȧ�@�9�@���@�:۸4�T@�:�V2;�@�=I[��@�@x{E�|@�AIfr��@�A�.���@�A�]�@�E$U�DR@�F.=p��@�Go�� @�G�v[�@�J�5��@@�O�ϳ1@�P� -��@�U��^�@�U�$�/@�V>4�
(@�W�Z��@�Y݂��@�[R�
@�]t`�G@�^���@�_z�N�@�_7�a�?@�a�9��@�bU���@�c]�;�@�c���d@�e%�3�@�e�:!d@�iq$
=@�i�R�4�@�jC��@�ji<��@�j����<@�n�L��@�o1f'|F@�s1Z@�stXՄ+@�s}̅0@�s��LY@�s��γW@�w+�_�                                                                                                                                                                                                                                                                                                                                                                                                                  [...]
\ No newline at end of file
diff --git a/calib/cal_size b/calib/cal_size
new file mode 100644
index 0000000..b86f069
--- /dev/null
+++ b/calib/cal_size
@@ -0,0 +1 @@
+2552
diff --git a/html/annotated.html b/html/annotated.html
deleted file mode 100644
index 4b1d31b..0000000
--- a/html/annotated.html
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Data Structures</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Data Structures</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="textblock">Here are the data structures with brief descriptions:</div><div class="directory">
-<table class="directory">
-<tr id="row_0_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="struct__irplib__hist__.html" target="_self">_irplib_hist_</a></td><td class="desc"></td></tr>
-<tr id="row_1_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="struct__polynomial.html" target="_self">_polynomial</a></td><td class="desc"></td></tr>
-<tr id="row_2_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="struct__uves__chip.html" target="_self">_uves_chip</a></td><td class="desc"></td></tr>
-<tr id="row_3_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="struct__uves__deque__.html" target="_self">_uves_deque_</a></td><td class="desc"></td></tr>
-<tr id="row_4_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="struct__uves__propertylist__.html" target="_self">_uves_propertylist_</a></td><td class="desc"></td></tr>
-<tr id="row_5_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="struct__uves__regexp__.html" target="_self">_uves_regexp_</a></td><td class="desc"></td></tr>
-<tr id="row_6_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structframe.html" target="_self">frame</a></td><td class="desc"></td></tr>
-<tr id="row_7_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structirplib__base__spectrum__model.html" target="_self">irplib_base_spectrum_model</a></td><td class="desc"></td></tr>
-<tr id="row_8_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structirplib__line__spectrum__model.html" target="_self">irplib_line_spectrum_model</a></td><td class="desc"></td></tr>
-<tr id="row_9_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structirplib__multimin.html" target="_self">irplib_multimin</a></td><td class="desc"></td></tr>
-<tr id="row_10_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structlt__type.html" target="_self">lt_type</a></td><td class="desc"></td></tr>
-<tr id="row_11_"><td class="entry"><img src="ftv2lastnode.png" alt="\" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structslit__geometry.html" target="_self">slit_geometry</a></td><td class="desc"></td></tr>
-</table>
-</div><!-- directory -->
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/bc_s.png b/html/bc_s.png
deleted file mode 100644
index 25e3beb..0000000
Binary files a/html/bc_s.png and /dev/null differ
diff --git a/html/bdwn.png b/html/bdwn.png
deleted file mode 100644
index 940a0b9..0000000
Binary files a/html/bdwn.png and /dev/null differ
diff --git a/html/classes.html b/html/classes.html
deleted file mode 100644
index 51119cc..0000000
--- a/html/classes.html
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Data Structure Index</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Data Structure Index</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="qindex"><a class="qindex" href="#letter_F">F</a> | <a class="qindex" href="#letter_I">I</a> | <a class="qindex" href="#letter_L">L</a> | <a class="qindex" href="#letter_S">S</a> | <a class="qindex" href="#letter__">_</a></div>
-<table style="margin: 10px; white-space: nowrap;" align="center" width="95%" border="0" cellspacing="0" cellpadding="0">
-<tr><td rowspan="2" valign="bottom"><a name="letter_F"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  F  </div></td></tr></table>
-</td></tr>
-<tr></tr>
-<tr><td valign="top"><a class="el" href="structframe.html">frame</a>   </td></tr>
-<tr><td rowspan="2" valign="bottom"><a name="letter_I"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  I  </div></td></tr></table>
-</td></tr>
-<tr></tr>
-<tr><td valign="top"><a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a>   </td></tr>
-<tr><td valign="top"><a class="el" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a>   </td></tr>
-<tr><td valign="top"><a class="el" href="structirplib__multimin.html">irplib_multimin</a>   </td></tr>
-<tr><td rowspan="2" valign="bottom"><a name="letter_L"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  L  </div></td></tr></table>
-</td></tr>
-<tr></tr>
-<tr><td valign="top"><a class="el" href="structlt__type.html">lt_type</a>   </td></tr>
-<tr><td rowspan="2" valign="bottom"><a name="letter_S"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  S  </div></td></tr></table>
-</td></tr>
-<tr></tr>
-<tr><td valign="top"><a class="el" href="structslit__geometry.html">slit_geometry</a>   </td></tr>
-<tr><td rowspan="2" valign="bottom"><a name="letter__"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  _  </div></td></tr></table>
-</td></tr>
-<tr></tr>
-<tr><td valign="top"><a class="el" href="struct__irplib__hist__.html">_irplib_hist_</a>   </td></tr>
-<tr><td valign="top"><a class="el" href="struct__polynomial.html">_polynomial</a>   </td></tr>
-<tr><td valign="top"><a class="el" href="struct__uves__chip.html">_uves_chip</a>   </td></tr>
-<tr><td valign="top"><a class="el" href="struct__uves__deque__.html">_uves_deque_</a>   </td></tr>
-<tr><td valign="top"><a class="el" href="struct__uves__propertylist__.html">_uves_propertylist_</a>   </td></tr>
-<tr><td valign="top"><a class="el" href="struct__uves__regexp__.html">_uves_regexp_</a>   </td></tr>
-<tr><td></td></tr>
-</table>
-<div class="qindex"><a class="qindex" href="#letter_F">F</a> | <a class="qindex" href="#letter_I">I</a> | <a class="qindex" href="#letter_L">L</a> | <a class="qindex" href="#letter_S">S</a> | <a class="qindex" href="#letter__">_</a></div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/closed.png b/html/closed.png
deleted file mode 100644
index 98cc2c9..0000000
Binary files a/html/closed.png and /dev/null differ
diff --git a/html/cpl__propertylist-test_8c_source.html b/html/cpl__propertylist-test_8c_source.html
deleted file mode 100644
index 2b68b94..0000000
--- a/html/cpl__propertylist-test_8c_source.html
+++ /dev/null
@@ -1,1347 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: cpl_propertylist-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">cpl_propertylist-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: cpl_propertylist-test.c,v 1.6 2012-01-17 07:53:20 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO Common Pipeline Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2012-01-17 07:53:20 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.6 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#undef CX_DISABLE_ASSERT</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor"></span><span class="preprocessor">#undef CX_LOG_DOMAIN</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">//#include "cpl_init.h"</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">//#include "cpl_error.h"</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">//#include "uves_propertylist_impl.h"</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <cxmemory.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <cxmessages.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <cxdeque.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <qfits.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <fitsio.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#define FLT_EPS  1.0e-6</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor"></span><span class="preprocessor">#define DBL_EPS  1.0e-14</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> test_property_dump(cpl_property *property)</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> {</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>     <span class="keyword">const</span> cxchar *name = cpl_property_get_name(property);</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>     <span class="keyword">const</span> cxchar *comment = cpl_property_get_comment(property);</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     cxchar c;</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     <span class="keywordtype">long</span> size = cpl_property_get_size(property);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     cpl_type type = cpl_property_get_type(property);</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     fprintf(stderr, <span class="stringliteral">"Property at address %p\n"</span>, (<span class="keywordtype">void</span> *)property);</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     fprintf(stderr, <span class="stringliteral">"\tname   : %p '%s'\n"</span>, (<span class="keywordtype">void</span> *)name, name);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     fprintf(stderr, <span class="stringliteral">"\tcomment: %p '%s'\n"</span>, (<span class="keywordtype">void</span> *)comment, comment);</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     fprintf(stderr, <span class="stringliteral">"\ttype   : %#09x\n"</span>, type);</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     fprintf(stderr, <span class="stringliteral">"\tsize   : %ld\n"</span>, size);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>     fprintf(stderr, <span class="stringliteral">"\tvalue  : "</span>);</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>     <span class="keywordflow">switch</span> (type) {</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>         c = cpl_property_get_char(property);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>         <span class="keywordflow">if</span> (!c)</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>             fprintf(stderr, <span class="stringliteral">"''"</span>);</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>             fprintf(stderr, <span class="stringliteral">"'%c'"</span>, c);</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>         fprintf(stderr, <span class="stringliteral">"%d"</span>, cpl_property_get_bool(property));</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>         fprintf(stderr, <span class="stringliteral">"%d"</span>, cpl_property_get_int(property));</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>         fprintf(stderr, <span class="stringliteral">"%ld"</span>, cpl_property_get_long(property));</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>         fprintf(stderr, <span class="stringliteral">"%.7g"</span>, cpl_property_get_float(property));</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>         fprintf(stderr, <span class="stringliteral">"%.15g"</span>, cpl_property_get_double(property));</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>         fprintf(stderr, <span class="stringliteral">"'%s'"</span>, cpl_property_get_string(property));</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>         fprintf(stderr, <span class="stringliteral">"unknown."</span>);</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     }</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     fprintf(stderr, <span class="stringliteral">"\n"</span>);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> }</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> test_plist_dump(cpl_propertylist *plist)</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> {</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     cxlong i;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     cxlong sz = cpl_propertylist_get_size(plist);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     fprintf(stderr, <span class="stringliteral">"Property list at address %p:\n"</span>, (<span class="keywordtype">void</span> *) plist);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     <span class="keywordflow">for</span> (i = 0; i < sz; i++) {</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>         cpl_property *p = cpl_propertylist_get(plist, i);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>         test_property_dump(p);</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     }</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> }</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="keyword">static</span> <span class="keywordtype">int</span> test_main(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> {</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="keyword">const</span> cxchar *keys[] = {</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>         <span class="stringliteral">"a"</span>, <span class="stringliteral">"b"</span>, <span class="stringliteral">"c"</span>, <span class="stringliteral">"d"</span>, <span class="stringliteral">"e"</span>, <span class="stringliteral">"f"</span>, <span class="stringliteral">"g"</span>,</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>         <span class="stringliteral">"A"</span>, <span class="stringliteral">"B"</span>, <span class="stringliteral">"C"</span>, <span class="stringliteral">"D"</span>, <span class="stringliteral">"E"</span>, <span class="stringliteral">"F"</span>, <span class="stringliteral">"G"</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     };</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     <span class="keyword">const</span> cxchar *comments[] = {</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>         <span class="stringliteral">"A character value"</span>,</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>         <span class="stringliteral">"A boolean value"</span>,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>         <span class="stringliteral">"A integer value"</span>,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>         <span class="stringliteral">"A long integer value"</span>,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>         <span class="stringliteral">"A floating point number"</span>,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>         <span class="stringliteral">"A double precision number"</span>,</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>         <span class="stringliteral">"A string value"</span>,</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     };</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     cpl_type types[] = {</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>         CPL_TYPE_CHAR,</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>         CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>         CPL_TYPE_INT,</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>         CPL_TYPE_LONG,</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>         CPL_TYPE_FLOAT,</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>         CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>         CPL_TYPE_STRING</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     };</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     cxlong i;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     cxfloat fval[] = {-1.23456789, 0.};</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     cxdouble dval[] = {-1.23456789, 0.};</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     cpl_propertylist *plist=NULL;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     cpl_propertylist *_plist=NULL;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     cpl_propertylist *header=NULL;</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     <span class="comment">//cpl_propertylist *_header=NULL;</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     cpl_property* p=NULL;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     <span class="keyword">struct </span>fcard {</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>         <span class="keyword">const</span> cxchar *key;</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>         <span class="keyword">const</span> cxchar *val;</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>         <span class="keyword">const</span> cxchar *com;</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>         cpl_type type;</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     };</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     <span class="keyword">struct </span>fcard hdr[] = {</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>         {<span class="stringliteral">"SIMPLE"</span>, <span class="stringliteral">"T"</span>,</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>      <span class="comment">//         "Standard FITS format (NOST-100.0)",</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>          <span class="comment">//"Fits format",</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>          <span class="stringliteral">"file does conform to FITS standard"</span>,</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>          CPL_TYPE_BOOL},</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>         {<span class="stringliteral">"BITPIX"</span>, <span class="stringliteral">"16"</span>,</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>      <span class="comment">//         "# of bits storing pix values",</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>          <span class="comment">//"Bits per pixel",</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>          <span class="stringliteral">"number of bits per data pixel"</span>,</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>         {<span class="stringliteral">"NAXIS"</span>, <span class="stringliteral">"2"</span>,</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>      <span class="comment">//         "# of axes in frame",</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>          <span class="stringliteral">"number of data axes"</span>,</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>         {<span class="stringliteral">"NAXIS1"</span>, <span class="stringliteral">"2148"</span>,</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>      <span class="comment">//         "# pixels/axis",</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>          <span class="stringliteral">"length of data axis 1"</span>,</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>         {<span class="stringliteral">"NAXIS2"</span>, <span class="stringliteral">"2340"</span>,</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>      <span class="comment">//         "# pixels/axis",</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>          <span class="stringliteral">"length of data axis 2"</span>,</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>         {<span class="stringliteral">"EXTEND"</span>, <span class="stringliteral">"T"</span>,</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>      <span class="comment">//         "# pixels/axis",</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>          <span class="stringliteral">"FITS dataset may contain extensions"</span>,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>          CPL_TYPE_BOOL},</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>         {<span class="stringliteral">"ORIGIN"</span>, <span class="stringliteral">"ESO"</span>,</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>          <span class="stringliteral">"European Southern Observatory"</span>,</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>         {<span class="stringliteral">"DATE"</span>, <span class="stringliteral">"2002-03-08T04:27:21.420"</span>,</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>          <span class="stringliteral">"Date this file was written (dd/mm/yyyy)"</span>,</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>         {<span class="stringliteral">"MJD-OBS"</span>, <span class="stringliteral">"52341.17813019"</span>,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>          <span class="stringliteral">"Obs start 2002-03-08T04:16:30.448"</span>,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>         {<span class="stringliteral">"DATE-OBS"</span>, <span class="stringliteral">"2002-03-08T04:16:30.448"</span>,</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>          <span class="stringliteral">"Date of observation"</span>,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>         {<span class="stringliteral">"EXPTIME"</span>, <span class="stringliteral">"600.000"</span>,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>          <span class="stringliteral">"Total integration time. 00:10:00.000"</span>,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         {<span class="stringliteral">"TELESCOP"</span>, <span class="stringliteral">"VLT"</span>,</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>          <span class="stringliteral">"ESO <TEL>"</span>,</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>         {<span class="stringliteral">"RA"</span>, <span class="stringliteral">"181.41734"</span>,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>          <span class="stringliteral">"12:05:40.1 RA (J2000) pointing"</span>,</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>         {<span class="stringliteral">"DEC"</span>, <span class="stringliteral">"-7.65555"</span>,</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>          <span class="stringliteral">"-07:39:19.9  DEC (J2000) pointing"</span>,</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>         {<span class="stringliteral">"EQUINOX"</span>, <span class="stringliteral">"2000."</span>,</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>          <span class="stringliteral">"Standard FK5 (years)"</span>,</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         {<span class="stringliteral">"RADECSYS"</span>, <span class="stringliteral">"FK5"</span>,</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>          <span class="stringliteral">"Coordinate reference frame"</span>,</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>         {<span class="stringliteral">"LST"</span>, <span class="stringliteral">"38309.370"</span>,</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>          <span class="stringliteral">"10:38:29.370 LST at start"</span>,</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>         {<span class="stringliteral">"UTC"</span>, <span class="stringliteral">"15438.000"</span>,</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>          <span class="stringliteral">"04:17:18.000 UT at start"</span>,</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>         {<span class="stringliteral">"OBSERVER"</span>, <span class="stringliteral">"UNKNOWN"</span>,</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>          <span class="stringliteral">"Name of observer"</span>,</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>         {<span class="stringliteral">"INSTRUME"</span>, <span class="stringliteral">"UNKNOWN"</span>,</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>          <span class="stringliteral">"Instrument used"</span>,</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         {<span class="stringliteral">"PI-COI"</span>, <span class="stringliteral">"'555555555'"</span>,</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>          <span class="stringliteral">"Name of PI and COI"</span>,</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>         {<span class="stringliteral">"OBJECT"</span>, <span class="stringliteral">"None"</span>,</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>          <span class="stringliteral">"Original target"</span>,</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>         {<span class="stringliteral">"PCOUNT"</span>, <span class="stringliteral">"0"</span>,</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>          <span class="stringliteral">"Number of parameters per group"</span>,</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>         {<span class="stringliteral">"GCOUNT"</span>, <span class="stringliteral">"1"</span>,</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>          <span class="stringliteral">"Number of groups"</span>,</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>         {<span class="stringliteral">"CRVAL1"</span>, <span class="stringliteral">"181.41734"</span>,</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>          <span class="stringliteral">"12:05:40.1, RA at ref pixel"</span>,</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>         {<span class="stringliteral">"CRPIX1"</span>, <span class="stringliteral">"2341.8585366"</span>,</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>          <span class="stringliteral">"Reference pixel in X"</span>,</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         {<span class="stringliteral">"CDELT1"</span>, <span class="stringliteral">"0.20500000"</span>,</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>          <span class="stringliteral">"SS arcsec per pixel in RA"</span>,</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>         {<span class="stringliteral">"CTYPE1"</span>, <span class="stringliteral">"RA---TAN"</span>,</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>          <span class="stringliteral">"pixel coordinate system"</span>,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>         {<span class="stringliteral">"CRVAL2"</span>, <span class="stringliteral">"-7.65555"</span>,</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>          <span class="stringliteral">"-07:39:19.9, DEC at ref pixel"</span>,</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>         {<span class="stringliteral">"CRPIX2"</span>, <span class="stringliteral">"2487.8585366"</span>,</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>          <span class="stringliteral">"Reference pixel in Y"</span>,</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>         {<span class="stringliteral">"CDELT2"</span>, <span class="stringliteral">"0.20500000"</span>,</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>          <span class="stringliteral">"SS arcsec per pixel in DEC"</span>,</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>         {<span class="stringliteral">"CTYPE2"</span>, <span class="stringliteral">"DEC--TAN"</span>,</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>          <span class="stringliteral">"pixel coordinate system"</span>,</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>         {<span class="stringliteral">"BSCALE"</span>, <span class="stringliteral">"1.0"</span>,</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>          <span class="stringliteral">"pixel=FITS*BSCALE+BZERO"</span>,</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>         {<span class="stringliteral">"BZERO"</span>, <span class="stringliteral">"32768.0"</span>,</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>          <span class="stringliteral">"pixel=FITS*BSCALE+BZERO"</span>,</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>         {<span class="stringliteral">"CD1_1"</span>, <span class="stringliteral">"0.000057"</span>,</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>          <span class="stringliteral">"Translation matrix element"</span>,</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>         {<span class="stringliteral">"CD1_2"</span>, <span class="stringliteral">"0.000000"</span>,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>          <span class="stringliteral">"Translation matrix element"</span>,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>         {<span class="stringliteral">"CD2_1"</span>, <span class="stringliteral">"0.000000"</span>,</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>          <span class="stringliteral">"Translation matrix element"</span>,</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>         {<span class="stringliteral">"CD2_2"</span>, <span class="stringliteral">"0.000057"</span>,</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>          <span class="stringliteral">"Translation matrix element"</span>,</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>         {<span class="stringliteral">"HIERARCH ESO OBS DID"</span>, <span class="stringliteral">"ESO-VLT-DIC.OBS-1.7"</span>,</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>          <span class="stringliteral">"OBS Dictionary"</span>,</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>         {<span class="stringliteral">"HIERARCH ESO OBS OBSERVER"</span>, <span class="stringliteral">"UNKNOWN"</span>,</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>          <span class="stringliteral">"Observer Name"</span>,</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>         {<span class="stringliteral">"HIERARCH ESO OBS PI-COI NAME"</span>, <span class="stringliteral">"UNKNOWN"</span>,</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>          <span class="stringliteral">"PI-COI name"</span>,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>         {<span class="stringliteral">"HIERARCH ESO INS GRAT NAME"</span>, <span class="stringliteral">"HR"</span>,</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>          <span class="stringliteral">"Grating name"</span>,</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>         {<span class="stringliteral">"HIERARCH ESO PRO CATG"</span>, <span class="stringliteral">"X"</span>,</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>          <span class="stringliteral">"Product category"</span>,</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>         {<span class="stringliteral">"HIERARCH ESO TPL NEXP"</span>, <span class="stringliteral">"5"</span>,</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>          <span class="stringliteral">"Number of exposures"</span>,</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>         {<span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"1st history record"</span>, NULL, CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>         {<span class="stringliteral">"COMMENT"</span>, <span class="stringliteral">"1st comment record"</span>, NULL, CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>         {<span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"2st history record"</span>, NULL, CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>         {<span class="stringliteral">"COMMENT"</span>, <span class="stringliteral">"2st comment record"</span>, NULL, CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>         {<span class="stringliteral">"COMMENT"</span>, <span class="stringliteral">"3st comment record"</span>, NULL, CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         {<span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"3st history record"</span>, NULL, CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>         {<span class="stringliteral">"END"</span>, NULL, NULL, CPL_TYPE_STRING}</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     };</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     FILE *file;</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="comment">    const cxchar *longname = "0123456789012345678901234567890123456789"</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> <span class="comment">        "0123456789012345678901234567890123456789";</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment"></span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> <span class="comment">     * Test 1: Create a property list and check its validity.</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     plist = cpl_propertylist_new();</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     cx_assert(plist != NULL);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     cx_assert(cpl_propertylist_is_empty(plist));</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     cx_assert(cpl_propertylist_get_size(plist) == 0);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cpl_error_get_code()   );</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <span class="comment">     * Test 2: Append properties to the list created in the previous test</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="comment">     *         and verify the data.</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     cpl_propertylist_append_char(plist, keys[0], <span class="charliteral">'a'</span>);</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     cpl_propertylist_set_comment(plist, keys[0], comments[0]);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     cpl_propertylist_append_bool(plist, keys[1], 1);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     cpl_propertylist_set_comment(plist, keys[1], comments[1]);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     cpl_propertylist_append_int(plist, keys[2], -1);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     cpl_propertylist_set_comment(plist, keys[2], comments[2]);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     cpl_propertylist_append_long(plist, keys[3], 32768);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     cpl_propertylist_set_comment(plist, keys[3], comments[3]);</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     cpl_propertylist_append_float(plist, keys[4], fval[0]);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     cpl_propertylist_set_comment(plist, keys[4], comments[4]);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     cpl_propertylist_append_double(plist, keys[5], dval[0]);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     cpl_propertylist_set_comment(plist, keys[5], comments[5]);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     cpl_propertylist_append_string(plist, keys[6], comments[6]);</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     cpl_propertylist_set_comment(plist, keys[6], comments[6]);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     cx_assert(!cpl_propertylist_is_empty(plist));</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     cx_assert(cpl_propertylist_get_size(plist) == 7);</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_propertylist_get_size(plist); i++) {</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>         cpl_property *p = cpl_propertylist_get(plist, i);</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>         cx_assert(!strcmp(cpl_property_get_name(p), keys[i]));</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>         cx_assert(!strcmp(cpl_property_get_comment(p), comments[i]));</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>         cx_assert(cpl_property_get_type(p) == types[i]);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>         cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(plist, keys[i]));</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>         cx_assert(!strcmp(cpl_propertylist_get_comment(plist, keys[i]),</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>                           comments[i]));</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>         cx_assert(cpl_propertylist_get_type(plist, keys[i]) == types[i]);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     }</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     cx_assert(cpl_propertylist_get_char(plist, keys[0]) == <span class="charliteral">'a'</span>);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>     cx_assert(cpl_propertylist_get_bool(plist, keys[1]) == 1);</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     cx_assert(cpl_propertylist_get_int(plist, keys[2]) == -1);</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     cx_assert(cpl_propertylist_get_long(plist, keys[3]) == 32768);</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>     fval[1] = cpl_propertylist_get_float(plist, keys[4]);</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>     cx_assert(!memcmp(&fval[0], &fval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)));</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     dval[1] = cpl_propertylist_get_double(plist, keys[5]);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     cx_assert(!strcmp(cpl_propertylist_get_string(plist, keys[6]),</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>                       comments[6]));</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cpl_error_get_code() );</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> <span class="comment">     * Test 3: Modify the values of the property list entries</span></div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> <span class="comment">     *         and verify the data.</span></div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     cx_assert(cpl_propertylist_set_char(plist, keys[0], <span class="charliteral">'b'</span>) == 0);</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     cx_assert(cpl_propertylist_get_char(plist, keys[0]) == <span class="charliteral">'b'</span>);</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     cx_assert(cpl_propertylist_set_bool(plist, keys[1], 0) == 0);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     cx_assert(cpl_propertylist_get_bool(plist, keys[1]) == 0);</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     cx_assert(cpl_propertylist_set_int(plist, keys[2], -1) == 0);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     cx_assert(cpl_propertylist_get_int(plist, keys[2]) == -1);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     cx_assert(cpl_propertylist_set_long(plist, keys[3], 1) == 0);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     cx_assert(cpl_propertylist_get_long(plist, keys[3]) == 1);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     fval[0] = 9.87654321;</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     cx_assert(cpl_propertylist_set_float(plist, keys[4], fval[0]) == 0);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     fval[1] = cpl_propertylist_get_float(plist, keys[4]);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     cx_assert(!memcmp(&fval[0], &fval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)));</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     dval[0] = -9.87654321;</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     cx_assert(cpl_propertylist_set_double(plist, keys[5], dval[0]) == 0);</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     dval[1] = cpl_propertylist_get_double(plist, keys[5]);</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> </div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     cx_assert(cpl_propertylist_set_string(plist, keys[6], comments[0]) == 0);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     cx_assert(!strcmp(cpl_propertylist_get_string(plist, keys[6]),</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>                       comments[0]));</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> <span class="comment">     * Test 4: Check that trying to modify an entry with a different</span></div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> <span class="comment">     *         type is properly failing.</span></div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>  </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()  );</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     <span class="keywordflow">if</span> (0) test_plist_dump(plist);</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()  );</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>     <span class="keywordflow">if</span>(cpl_propertylist_set_char(plist, keys[1], <span class="charliteral">'a'</span>) ==</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>        CPL_ERROR_TYPE_MISMATCH) { cpl_error_reset(); }</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()  );</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>     <span class="keywordflow">if</span> (0) test_plist_dump(plist);</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()  );</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     <span class="keywordflow">if</span>(cpl_propertylist_set_bool(plist, keys[2], 1) ==</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>        CPL_ERROR_TYPE_MISMATCH) { cpl_error_reset(); }</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()  );</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>     <span class="keywordflow">if</span>(cpl_propertylist_set_int(plist, keys[3], 1) ==</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>        CPL_ERROR_TYPE_MISMATCH){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> </div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()  );</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     <span class="keywordflow">if</span>(cpl_propertylist_set_long(plist, keys[4], 1) ==</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>        CPL_ERROR_TYPE_MISMATCH){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()  );</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     <span class="keywordflow">if</span>(cpl_propertylist_set_float(plist, keys[5], 1.) ==</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>        CPL_ERROR_TYPE_MISMATCH){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()  );</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     <span class="keywordflow">if</span>(cpl_propertylist_set_double(plist, keys[6], 1.) ==</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>        CPL_ERROR_TYPE_MISMATCH){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()  );</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     <span class="keywordflow">if</span>(cpl_propertylist_set_string(plist, keys[0], comments[0]) ==</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>        CPL_ERROR_TYPE_MISMATCH){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()  );</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> </div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> <span class="comment">     * Test 5: Verify that values are inserted correctly into the property</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> <span class="comment">     *         list.</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     cx_assert(cpl_propertylist_insert_char(plist, keys[0],</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>                                            keys[7], <span class="charliteral">'a'</span>) == 0);</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     cx_assert(cpl_propertylist_insert_after_char(plist, keys[0],</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>                                                  keys[7], <span class="charliteral">'c'</span>) == 0);</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     cx_assert(cpl_propertylist_insert_bool(plist, keys[1],</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>                                            keys[8], 0) == 0);</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     cx_assert(cpl_propertylist_insert_after_bool(plist, keys[1],</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>                                                  keys[8], 1) == 0);</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     cx_assert(cpl_propertylist_insert_int(plist, keys[2],</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>                                           keys[9], 0) == 0);</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     cx_assert(cpl_propertylist_insert_after_int(plist, keys[2],</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>                                                 keys[9], 1) == 0);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     cx_assert(cpl_propertylist_insert_long(plist, keys[3], keys[10],</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>                                            123456789) == 0);</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>     cx_assert(cpl_propertylist_insert_after_long(plist, keys[3], keys[10],</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>                                                  123456789) == 0);</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> </div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     cx_assert(cpl_propertylist_insert_float(plist, keys[4], keys[11],</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>                                             fval[0]) == 0);</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     cx_assert(cpl_propertylist_insert_after_float(plist, keys[4], keys[11],</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>                                                   -fval[0]) == 0);</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>     cx_assert(cpl_propertylist_insert_double(plist, keys[5], keys[12],</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>                                              dval[0]) == 0);</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>     cx_assert(cpl_propertylist_insert_after_double(plist, keys[5], keys[12],</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                                                    -dval[0]) == 0);</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> </div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     cx_assert(cpl_propertylist_insert_string(plist, keys[6],</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>                                              keys[13], <span class="stringliteral">""</span>) == 0);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     cx_assert(cpl_propertylist_insert_after_string(plist, keys[6],</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>                                                    keys[13], <span class="stringliteral">""</span>) == 0);</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     <span class="keywordflow">for</span> (i = 0; i < 7; i++) {</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>         cpl_property *p0 = cpl_propertylist_get(plist, 3 * i);</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>         cpl_property *p1 = cpl_propertylist_get(plist, 3 * i + 1);</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>         cpl_property *p2 = cpl_propertylist_get(plist, 3 * i + 2);</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> </div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>         cx_assert(!strcmp(cpl_property_get_name(p0), keys[i + 7]));</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>         cx_assert(!strcmp(cpl_property_get_name(p1), keys[i]));</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>         cx_assert(!strcmp(cpl_property_get_name(p2), keys[i + 7]));</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> </div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>         <span class="keywordflow">switch</span> (cpl_property_get_type(p0)) {</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>         <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>             cx_assert(cpl_property_get_char(p0) == <span class="charliteral">'a'</span>);</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>             cx_assert(cpl_property_get_char(p2) == <span class="charliteral">'c'</span>);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> </div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>             cx_assert(cpl_property_get_bool(p0) == 0);</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>             cx_assert(cpl_property_get_bool(p2) == 1);</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> </div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>             cx_assert(cpl_property_get_int(p0) == 0);</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>             cx_assert(cpl_property_get_int(p2) == 1);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> </div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>         <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>             cx_assert(cpl_property_get_long(p0) == 123456789);</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>             cx_assert(cpl_property_get_long(p2) == 123456789);</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> </div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>             fval[1] = cpl_property_get_float(p0);</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>             cx_assert(!memcmp(&fval[0], &fval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)));</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> </div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>             fval[1] = -cpl_property_get_float(p2);</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>             cx_assert(!memcmp(&fval[0], &fval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)));</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>             dval[1] = cpl_property_get_double(p0);</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>             cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> </div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>             dval[1] = -cpl_property_get_double(p2);</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>             cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> </div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>             cx_assert(!strcmp(cpl_property_get_string(p0), <span class="stringliteral">""</span>));</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>             cx_assert(!strcmp(cpl_property_get_string(p2), <span class="stringliteral">""</span>));</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>             <span class="comment">/* This point should never be reached */</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>             cx_log(<span class="stringliteral">"cpl_propertylist-test"</span>, CX_LOG_LEVEL_ERROR, <span class="stringliteral">"file %s: "</span></div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>                    <span class="stringliteral">"line %d: Invalid value type encountered"</span>, __FILE__,</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>                    __LINE__);</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>         }</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>     }</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> </div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> </div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> </div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> <span class="comment">     * Test 6: Verify that modification of or insertion at/after a non</span></div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> <span class="comment">     *         existing elements is reported correctly.</span></div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> </div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(plist, <span class="stringliteral">"Non-existing key"</span>) == 0);</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> </div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>     <span class="keywordflow">if</span>(cpl_propertylist_set_char(plist, <span class="stringliteral">"Non-existing key"</span>, <span class="charliteral">'a'</span>) ==</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>        CPL_ERROR_DATA_NOT_FOUND){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span> </div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     <span class="keywordflow">if</span>(cpl_propertylist_set_bool(plist, <span class="stringliteral">"Non-existing key"</span>, 1) ==</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>               CPL_ERROR_DATA_NOT_FOUND) { cpl_error_reset(); }</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>    <span class="keywordflow">if</span>(cpl_propertylist_set_int(plist, <span class="stringliteral">"Non-existing key"</span>, 1) ==</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>               CPL_ERROR_DATA_NOT_FOUND){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>    <span class="keywordflow">if</span>(cpl_propertylist_set_long(plist, <span class="stringliteral">"Non-existing key"</span>, 1) ==</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>               CPL_ERROR_DATA_NOT_FOUND){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>    <span class="keywordflow">if</span>(cpl_propertylist_set_float(plist, <span class="stringliteral">"Non-existing key"</span>, 1) ==</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>               CPL_ERROR_DATA_NOT_FOUND){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>    <span class="keywordflow">if</span>(cpl_propertylist_set_double(plist, <span class="stringliteral">"Non-existing key"</span>, 1) ==</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>               CPL_ERROR_DATA_NOT_FOUND){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>    <span class="keywordflow">if</span>(cpl_propertylist_set_string(plist, <span class="stringliteral">"Non-existing key"</span>, <span class="stringliteral">""</span>) ==</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>               CPL_ERROR_DATA_NOT_FOUND){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> </div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_char(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>                    <span class="stringliteral">"h"</span>, <span class="charliteral">'a'</span>) == 1){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> </div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_bool(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>                                            <span class="stringliteral">"h"</span>, 1) == 1){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_int(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>                   <span class="stringliteral">"h"</span>, 1) == 1) { cpl_error_reset(); }</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> </div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_long(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>                    <span class="stringliteral">"h"</span>, 1) == 1) { cpl_error_reset(); }</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_float(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>                     <span class="stringliteral">"h"</span>, 1) == 1){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> </div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_double(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>                      <span class="stringliteral">"h"</span>, 1) == 1){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_string(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>                      <span class="stringliteral">"h"</span>, <span class="stringliteral">""</span>) == 1){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> </div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_after_char(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>                      <span class="stringliteral">"h"</span>, <span class="charliteral">'a'</span>) == 1){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_after_bool(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>                      <span class="stringliteral">"h"</span>, 1) == 1){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_after_int(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>                     <span class="stringliteral">"h"</span>, 1) == 1){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_after_long(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>                      <span class="stringliteral">"h"</span>, 1) == 1){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_after_float(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>                       <span class="stringliteral">"h"</span>, 1) == 1){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_after_double(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>                        <span class="stringliteral">"h"</span>, 1) == 1){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>    <span class="keywordflow">if</span>(cpl_propertylist_insert_after_string(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>                        <span class="stringliteral">"h"</span>, <span class="stringliteral">""</span>) == 1){ cpl_error_reset(); }</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> </div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>   </div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> </div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> <span class="comment">     * Test 7: Create a copy of the property list and verify that original</span></div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span> <span class="comment">     *         and copy are identical but do not share any resources.</span></div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span> </div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>     cpl_propertylist_delete(_plist);</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>  </div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>     _plist = cpl_propertylist_duplicate(plist);</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> </div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>     cx_assert(_plist != NULL);</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     cx_assert(_plist != plist);</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> </div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_propertylist_get_size(plist); i++) {</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>         cpl_property *p = cpl_propertylist_get(plist, i);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>         cpl_property *_p = cpl_propertylist_get(_plist, i);</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> </div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> </div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>         cx_assert(cpl_property_get_name(p) != cpl_property_get_name(_p));</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>         cx_assert(!strcmp(cpl_property_get_name(p),</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>                           cpl_property_get_name(_p)));</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>         cx_assert(cpl_property_get_comment(p) == NULL ||</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                   (cpl_property_get_comment(p) !=</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>                    cpl_property_get_comment(_p)));</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>         cx_assert(cpl_property_get_comment(p) == NULL ||</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                   !strcmp(cpl_property_get_comment(p),</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                           cpl_property_get_comment(_p)));</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> </div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>         <span class="keywordflow">switch</span> (cpl_property_get_type(p)) {</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>         <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>             cx_assert(cpl_property_get_char(p) ==</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>                       cpl_property_get_char(_p));</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> </div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>             cx_assert(cpl_property_get_bool(p) ==</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>                       cpl_property_get_bool(_p));</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> </div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>             cx_assert(cpl_property_get_int(p) ==</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>                       cpl_property_get_int(_p));</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span> </div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>         <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>             cx_assert(cpl_property_get_long(p) ==</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                       cpl_property_get_long(_p));</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> </div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>             fval[0] = cpl_property_get_float(p);</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>             fval[1] = cpl_property_get_float(_p);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>             cx_assert(!memcmp(&fval[0], &fval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)));</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> </div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>             dval[0] = cpl_property_get_double(p);</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>             dval[1] = cpl_property_get_double(_p);</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>             cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>             cx_assert(!strcmp(cpl_property_get_string(p),</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>                               cpl_property_get_string(_p)));</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> </div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>             <span class="comment">/* This point should never be reached */</span></div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>             cx_log(<span class="stringliteral">"cpl_propertylist-test"</span>, CX_LOG_LEVEL_ERROR, <span class="stringliteral">"file %s: "</span></div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>                    <span class="stringliteral">"line %d: Invalid value type encountered"</span>, __FILE__,</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>                    __LINE__);</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>         }</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span> </div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>     }</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> </div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>     cpl_propertylist_delete(_plist);</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(   cpl_error_get_code()  );</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>  </div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span> </div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> <span class="comment">     * Test 8: Erase elements from the property list and verify the list</span></div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> <span class="comment">     *         structure and the data.</span></div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> </div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>     <span class="keywordflow">for</span> (i = 0; i < 7; i++) {</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>         cpl_propertylist_erase(plist, keys[i + 7]);</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>         cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(plist, keys[i + 7]) == 1);</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>         cpl_propertylist_erase(plist, keys[i + 7]);</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>         cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(plist, keys[i + 7]) == 0);</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>     }</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>     cx_assert(cpl_propertylist_get_size(plist) == 7);</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span> </div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>     <span class="keywordflow">for</span> (i = 0; i < 7; i++) {</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>         cpl_property *p = cpl_propertylist_get(plist, i);</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>         cx_assert(!strcmp(cpl_property_get_name(p), keys[i]));</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>     }</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> </div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     <span class="keywordflow">if</span> (0) test_plist_dump(plist);</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>     </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>     cx_assert(cpl_propertylist_get_char(plist, keys[0]) == <span class="charliteral">'b'</span>);</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>     cx_assert(cpl_propertylist_get_bool(plist, keys[1]) == 0);</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>     cx_assert(cpl_propertylist_get_int(plist, keys[2]) == -1);</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     cx_assert(cpl_propertylist_get_long(plist, keys[3]) == 1);</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span> </div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>     fval[0] = 9.87654321;</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>     fval[1] = cpl_propertylist_get_float(plist, keys[4]);</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     cx_assert(!memcmp(&fval[0], &fval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)));</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span> </div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>     dval[0] = -9.87654321;</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>     dval[1] = cpl_propertylist_get_double(plist, keys[5]);</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>     cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>     cx_assert(!strcmp(cpl_propertylist_get_string(plist, keys[6]),</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>                       comments[0]));</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>  </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> </div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> <span class="comment">     * Test 9: Erase all elements from the property list and verify that</span></div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span> <span class="comment">     *         the list is empty.</span></div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> </div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> </div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>     cpl_propertylist_empty(plist);</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> </div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     cx_assert(cpl_propertylist_is_empty(plist));</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     cx_assert(cpl_propertylist_get_size(plist) == 0);</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>     cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> </div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span> </div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span> </div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> <span class="comment">     * Test 10: Create a property list from an input (FITS) file. Verify the</span></div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> <span class="comment">     *          loaded data.</span></div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span> </div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>     <span class="comment">/* Create a sample FITS header and save it to a file */</span></div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> </div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span> </div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>     header = cpl_propertylist_new();</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>  </div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>     <span class="keywordflow">for</span> (i = 0; (cxsize)i < <span class="keyword">sizeof</span> hdr / <span class="keyword">sizeof</span>(<span class="keyword">struct</span> fcard); i++) {</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>       cpl_msg_info(cpl_func,<span class="stringliteral">"iter=%d"</span>,(<span class="keywordtype">int</span>)i);</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>         cpl_msg_info(cpl_func,<span class="stringliteral">"key=%s"</span>,hdr[i].key);</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>         cpl_msg_info(cpl_func,<span class="stringliteral">"com=%s"</span>,hdr[i].com);</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>          cpl_msg_info(cpl_func,<span class="stringliteral">"typ=%d"</span>,hdr[i].type);</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>  </div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span> </div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>      <span class="keywordflow">switch</span> (hdr[i].type) {</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>         <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>       cpl_propertylist_append_char(header,hdr[i].key,atoi(hdr[i].val));</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>           p=cpl_propertylist_get_property(header,hdr[i].key);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>       cpl_propertylist_set_comment(header,hdr[i].key,hdr[i].com);</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>           cpl_msg_info(cpl_func,<span class="stringliteral">"val=%d"</span>,atoi(hdr[i].val));</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>  </div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>            <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span> </div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>       cpl_propertylist_append_bool(header,hdr[i].key,atoi(hdr[i].val));</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>           p=cpl_propertylist_get_property(header,hdr[i].key);</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>       cpl_propertylist_set_comment(header,hdr[i].key,hdr[i].com);</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>           cpl_msg_info(cpl_func,<span class="stringliteral">"val=%d"</span>,atoi(hdr[i].val));</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>  </div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span> </div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>       cpl_propertylist_append_int(header,hdr[i].key,atoi(hdr[i].val));</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>           p=cpl_propertylist_get_property(header,hdr[i].key);</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>       cpl_propertylist_set_comment(header,hdr[i].key,hdr[i].com);</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>           cpl_msg_info(cpl_func,<span class="stringliteral">"val=%d"</span>,atoi(hdr[i].val));</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>  </div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span> </div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>         <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>       cpl_propertylist_append_long(header,hdr[i].key,atol(hdr[i].val));</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>           p=cpl_propertylist_get_property(header,hdr[i].key);</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>       cpl_propertylist_set_comment(header,hdr[i].key,hdr[i].com);</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>           cpl_msg_info(cpl_func,<span class="stringliteral">"val=%ld"</span>,atol(hdr[i].val));</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>  </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span> </div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>       cpl_propertylist_append_long(header,hdr[i].key,atof(hdr[i].val));</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>           p=cpl_propertylist_get_property(header,hdr[i].key);</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>       cpl_propertylist_set_comment(header,hdr[i].key,hdr[i].com);</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>           cpl_msg_info(cpl_func,<span class="stringliteral">"val=%f"</span>,atof(hdr[i].val));</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>  </div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span> </div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>       cpl_propertylist_append_double(header,hdr[i].key,atof(hdr[i].val));</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>           p=cpl_propertylist_get_property(header,hdr[i].key);</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>       cpl_propertylist_set_comment(header,hdr[i].key,hdr[i].com);</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>           cpl_msg_info(cpl_func,<span class="stringliteral">"val=%f"</span>,atof(hdr[i].val));</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> </div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>              <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span> </div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>       <span class="keywordflow">if</span>(strcmp(hdr[i].key,<span class="stringliteral">"END"</span>) != 0) {</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>       cpl_propertylist_append_string(header,hdr[i].key,hdr[i].val);</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>           p=cpl_propertylist_get_property(header,hdr[i].key);</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>       cpl_propertylist_set_comment(header,hdr[i].key,hdr[i].com);</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>           cpl_msg_info(cpl_func,<span class="stringliteral">"val=%s"</span>,hdr[i].val);</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>       }</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>  </div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>            <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> </div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>             <span class="comment">/* This point should never be reached */</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>             cx_log(<span class="stringliteral">"uves_propertylist-test"</span>, CX_LOG_LEVEL_ERROR, <span class="stringliteral">"file %s: "</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>                    <span class="stringliteral">"line %d: Invalid value type encountered"</span>, __FILE__,</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>                    __LINE__);</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>         }</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> </div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>     }</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>  </div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     file = fopen(<span class="stringliteral">"cpltest1.fits"</span>, <span class="stringliteral">"w"</span>);</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>     cpl_propertylist_save(header,<span class="stringliteral">"cpltest1.fits"</span>,CPL_IO_CREATE);</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>  </div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span> </div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>     cpl_image* ima=cpl_image_new(2148,2340,CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>     cpl_image_save(ima,<span class="stringliteral">"cpltest1.fits"</span>,CPL_BPP_16_SIGNED,header,CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> </div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>     cpl_image_delete(ima);</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>     fclose(file);</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> </div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span> </div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>     <span class="comment">/* Load the 1st FITS header into a property list */</span></div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>     cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>     plist = cpl_propertylist_load(<span class="stringliteral">"cpltest1.fits"</span>, 0);</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> </div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> </div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span> </div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>     cx_assert(plist != NULL);</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span> </div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>  </div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(plist, <span class="stringliteral">"END"</span>) == 0);</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span> </div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>  </div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>     cpl_msg_info(cpl_func,<span class="stringliteral">"size plist=%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,cpl_propertylist_get_size(plist));</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>     cpl_msg_info(cpl_func,<span class="stringliteral">"size hdr=%d"</span>,<span class="keyword">sizeof</span> hdr);</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>     cpl_msg_info(cpl_func,<span class="stringliteral">"size fcard=%d"</span>,<span class="keyword">sizeof</span>(<span class="keyword">struct</span> fcard));</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span> </div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>     <span class="comment">//cx_assert(cpl_propertylist_get_size(plist) ==</span></div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     <span class="comment">//          (sizeof hdr / sizeof(struct fcard) - 1));</span></div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span> <span class="comment">    for (i = 0; i < cpl_propertylist_get_size(plist); i++) {</span></div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span> <span class="comment">        const cxchar *s = hdr[i].key;</span></div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span> <span class="comment">        cpl_property *p = cpl_propertylist_get(plist, i);</span></div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span> <span class="comment"></span></div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span> <span class="comment">       </span></div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span> <span class="comment">    // Strip HIERARCH from the keyword if it is present. HIERARCH</span></div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span> <span class="comment">        // is not carried over to the property name.</span></div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> <span class="comment">         </span></div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span> <span class="comment">        cpl_msg_info(cpl_func,"key=%s",hdr[i].key);</span></div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span> <span class="comment">        cpl_msg_info(cpl_func,"com=%s",hdr[i].com);</span></div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> <span class="comment">        cpl_msg_info(cpl_func,"typ=%ld",hdr[i].type);</span></div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span> <span class="comment"></span></div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> <span class="comment">        cpl_msg_info(cpl_func,"p name=%s",cpl_property_get_name(p));</span></div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span> <span class="comment">        cpl_msg_info(cpl_func,"p comm=%s",cpl_property_get_comment(p));</span></div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span> <span class="comment"></span></div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span> <span class="comment">        if(strcmp(cpl_property_get_name(p),"COMMENT") == 0) {</span></div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> <span class="comment">      i++;</span></div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span> <span class="comment">        }</span></div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> <span class="comment">        if (strstr(hdr[i].key, "HIERARCH"))</span></div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> <span class="comment">            s = hdr[i].key + strlen("HIERARCH") + 1;</span></div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span> <span class="comment"></span></div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span> <span class="comment">        cx_assert(!strcmp(cpl_property_get_name(p), s));</span></div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> <span class="comment">        cx_assert(hdr[i].com == NULL ||</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span> <span class="comment">                  !strcmp(cpl_property_get_comment(p), hdr[i].com));</span></div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span> <span class="comment">        cx_assert(cpl_property_get_type(p) == hdr[i].type);</span></div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> <span class="comment"></span></div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span> <span class="comment">        switch (hdr[i].type) {</span></div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span> <span class="comment">        case CPL_TYPE_BOOL:</span></div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> <span class="comment">            cx_assert(cpl_property_get_bool(p) ==</span></div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> <span class="comment">                      (*hdr[i].val == 'T' ? 1 : 0));</span></div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> <span class="comment">            break;</span></div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> <span class="comment"></span></div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span> <span class="comment">        case CPL_TYPE_INT:</span></div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> <span class="comment">      cpl_msg_info(cpl_func,"prop name=%s",cpl_property_get_name(p));</span></div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span> <span class="comment">      cpl_msg_info(cpl_func,"prop value=%d",cpl_property_get_int(p));</span></div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span> <span class="comment">      cpl_msg_info(cpl_func,"check value=%d",atoi(hdr[i].val));</span></div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span> <span class="comment"></span></div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span> <span class="comment">            cx_assert(cpl_property_get_int(p) == atoi(hdr[i].val));</span></div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> <span class="comment">            break;</span></div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> <span class="comment"></span></div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span> <span class="comment">        case CPL_TYPE_DOUBLE:</span></div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> <span class="comment">            dval[0] = cpl_property_get_double(p);</span></div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span> <span class="comment">            dval[1] = atof(hdr[i].val);</span></div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span> <span class="comment">            cx_assert(!memcmp(&dval[0], &dval[1], sizeof(double)));</span></div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> <span class="comment">            break;</span></div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span> <span class="comment"></span></div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> <span class="comment">        case CPL_TYPE_STRING:</span></div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span> <span class="comment">            cx_assert(!strcmp(cpl_property_get_string(p),</span></div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> <span class="comment">                              qfits_pretty_string(hdr[i].val)));</span></div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span> <span class="comment">            break;</span></div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span> <span class="comment"></span></div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span> <span class="comment">        default:</span></div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span> <span class="comment">            cx_log("cpl_propertylist-test", CX_LOG_LEVEL_ERROR, "file %s: "</span></div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> <span class="comment">                   "line %d: Invalid value type encountered", __FILE__,</span></div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span> <span class="comment">                   __LINE__);</span></div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span> <span class="comment">            break;</span></div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span> <span class="comment">    }</span></div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span> <span class="comment">    }</span></div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span> </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span> <span class="comment">     * Test 11: Convert the qfits FITS header back into a property list and</span></div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> <span class="comment">     *          verify that the original property list and the one created</span></div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span> <span class="comment">     *          from the FITS header are identical.</span></div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>     fitsfile* fits_file=NULL; </div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>     cxint status = 0;</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span> </div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> </div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>     fits_open_diskfile(&fits_file,(cxchar*)<span class="stringliteral">"cpltest1.fits"</span>, READONLY, &status);</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     _plist = cpl_propertylist_from_fitsfile(fits_file) ;</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>     cx_assert(_plist != NULL);</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>     cx_assert(cpl_propertylist_get_size(plist) ==</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>               cpl_propertylist_get_size(_plist));</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> </div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span> </div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>  </div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_propertylist_get_size(plist); i++) {</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>         cpl_property *p = cpl_propertylist_get(plist, i);</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>         cpl_property *_p = cpl_propertylist_get(_plist, i);</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> </div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>         cx_assert(strcmp(cpl_property_get_name(p),</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>                          cpl_property_get_name(_p)) == 0);</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>         cx_assert(strcmp(cpl_property_get_comment(p),</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>                          cpl_property_get_comment(_p)) == 0);</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>         cx_assert(cpl_property_get_type(p) == cpl_property_get_type(_p));</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> </div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>         <span class="keywordflow">switch</span> (cpl_property_get_type(p)) {</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>             cx_assert(cpl_property_get_bool(p) == cpl_property_get_bool(_p));</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> </div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>             cx_assert(cpl_property_get_int(p) == cpl_property_get_int(_p));</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> </div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>             cx_assert(cpl_property_get_double(p) ==</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>                       cpl_property_get_double(_p));</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> </div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>             cx_assert(strcmp(cpl_property_get_string(p),</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>                              cpl_property_get_string(_p)) == 0);</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> </div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>             cx_log(<span class="stringliteral">"cpl_propertylist-test"</span>, CX_LOG_LEVEL_ERROR,</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>                    <span class="stringliteral">"file %s: line %d: Invalid value type encountered"</span>,</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>                    __FILE__, __LINE__);</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>         }</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>     }</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> </div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>     fits_close_file(fits_file, &status);</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>     cpl_propertylist_delete(_plist);</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span> </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span> </div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span> <span class="comment">     * Test 12: Create a qfits header from the property list and verify</span></div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span> <span class="comment">     *          the header data. Note that cpl_propertylist_to_fits establishes</span></div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span> <span class="comment">     *          the DICB sorting order.</span></div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> <span class="comment">    cx_deque_compare _compare = (cx_deque_compare)compare;</span></div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> <span class="comment">    cpl_propertylist_sort(header,_compare);</span></div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> <span class="comment"></span></div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span> <span class="comment">    fits_open_diskfile(&fits_file,(cxchar*)"cpltest1.fits", READONLY, &status);</span></div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> <span class="comment">    cpl_propertylist_save(header,"cpltest1.fits",CPL_IO_CREATE);</span></div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> <span class="comment">    fits_close_file(fits_file, &status);</span></div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> <span class="comment"></span></div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> <span class="comment"></span></div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> <span class="comment">    _header = cpl_propertylist_to_fits(plist);</span></div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> <span class="comment">    cx_assert(_header != NULL);</span></div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> <span class="comment"></span></div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> <span class="comment">    file = fopen("cpltest2.fits", "w");</span></div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> <span class="comment">    qfits_header_dump(_header, file);</span></div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> <span class="comment">    fclose(file);</span></div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> <span class="comment"></span></div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> <span class="comment"></span></div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> <span class="comment">    for (i = 0; i < header->n; i++) {</span></div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> <span class="comment">        cxchar key[FITS_LINESZ + 1];</span></div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span> <span class="comment">        cxchar val[FITS_LINESZ + 1];</span></div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> <span class="comment">        cxchar com[FITS_LINESZ + 1];</span></div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span> <span class="comment"></span></div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> <span class="comment">        cxchar _key[FITS_LINESZ + 1];</span></div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> <span class="comment">        cxchar _val[FITS_LINESZ + 1];</span></div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> <span class="comment">        cxchar _com[FITS_LINESZ + 1];</span></div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> <span class="comment"></span></div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> <span class="comment"></span></div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> <span class="comment">        qfits_header_getitem(header, i, key, val, com, NULL);</span></div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> <span class="comment">        cx_assert(qfits_header_getitem(_header, i, _key, _val,</span></div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span> <span class="comment">                                       _com, NULL) == 0);</span></div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> <span class="comment"></span></div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span> <span class="comment">        cx_assert(!strcmp(key, _key));</span></div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> <span class="comment">        cx_assert(_com == NULL || !strcmp(com, _com));</span></div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> <span class="comment"></span></div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> <span class="comment">        switch (qfits_get_type(val)) {</span></div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> <span class="comment">        case QFITS_FLOAT:</span></div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> <span class="comment">            fval[0] = atof(val);</span></div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> <span class="comment">            fval[1] = atof(_val);</span></div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span> <span class="comment"></span></div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> <span class="comment">            cx_assert(fabs(fval[0] - fval[1]) < FLT_EPS);</span></div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> <span class="comment">            break;</span></div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> <span class="comment"></span></div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> <span class="comment">        default:</span></div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> <span class="comment">            cx_assert(strlen(val) == 0 ||</span></div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> <span class="comment">                      !strcmp(qfits_pretty_string(val),</span></div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> <span class="comment">                              qfits_pretty_string(_val)));</span></div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> <span class="comment">            break;</span></div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span> <span class="comment">        }</span></div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> <span class="comment"></span></div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> <span class="comment">    }</span></div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> <span class="comment"></span></div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span> <span class="comment">    qfits_header_destroy(header);</span></div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> <span class="comment">    qfits_header_destroy(_header);</span></div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> </div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span> </div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>  </div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span> </div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> <span class="comment">     * Test 13: Copy all propertys matching a given pattern from one</span></div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> <span class="comment">     *          property list to another.</span></div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>      _plist = cpl_propertylist_new();</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> </div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> </div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> </div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>     cpl_propertylist_copy_property_regexp(_plist, plist, <span class="stringliteral">"^ESO .*"</span>, 0);</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> </div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span> </div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> </div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span> </div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>     cx_assert(cpl_propertylist_get_size(_plist) == 6);</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(_plist, <span class="stringliteral">"ESO OBS DID"</span>) != 0);</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(_plist, <span class="stringliteral">"ESO OBS OBSERVER"</span>) != 0);</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(_plist, <span class="stringliteral">"ESO OBS PI-COI NAME"</span>) != 0);</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(_plist, <span class="stringliteral">"ESO INS GRAT NAME"</span>) != 0);</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(_plist, <span class="stringliteral">"ESO PRO CATG"</span>) != 0);</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(_plist, <span class="stringliteral">"ESO TPL NEXP"</span>) != 0);</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>  </div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> </div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span> </div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>     cpl_propertylist_empty(_plist);</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>     cx_assert(cpl_propertylist_is_empty(_plist) != 0);</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span> </div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>     cpl_propertylist_copy_property_regexp(_plist, plist, <span class="stringliteral">"^ESO .*"</span>, 1);</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>     cx_assert(cpl_propertylist_get_size(_plist) ==</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>               (cpl_propertylist_get_size(plist) - 6));</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> </div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> </div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> </div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> </div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> <span class="comment">     * Test 14: Erase all properties matching the given pattern from the</span></div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> <span class="comment">     *          property list.</span></div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span> </div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>     cpl_propertylist_empty(_plist);</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>     cx_assert(cpl_propertylist_is_empty(_plist) != 0);</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> </div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>     cpl_propertylist_copy_property_regexp(_plist, plist, <span class="stringliteral">"^ESO .*"</span>, 0);</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>     cx_assert(cpl_propertylist_get_size(_plist) == 6);</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> </div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>     cpl_propertylist_erase_regexp(_plist, <span class="stringliteral">"^ESO OBS .*"</span>, 0);</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>     cx_assert(cpl_propertylist_get_size(_plist) == 3);</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span> </div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>     cpl_propertylist_erase_regexp(_plist, <span class="stringliteral">"ESO TPL NEXP"</span>, 0);</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>     cx_assert(cpl_propertylist_get_size(_plist) == 2);</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span> </div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>     cpl_propertylist_delete(_plist);</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>     cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> </div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> </div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> </div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span> <span class="comment">     * Test 15: Create a property list from a file. Only properties matching</span></div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span> <span class="comment">     *          the given pattern are loaded.</span></div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> </div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>     plist = NULL;</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> </div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>     plist = cpl_propertylist_load_regexp(<span class="stringliteral">"cpltest1.fits"</span>, 0,</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>                                          <span class="stringliteral">"^ESO .*"</span>, 0);</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>     cx_assert(plist != NULL);</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>     cx_assert(cpl_propertylist_is_empty(plist) == 0);</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>     cx_assert(cpl_propertylist_get_size(plist) == 6);</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(plist, <span class="stringliteral">"ESO OBS DID"</span>) != 0);</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(plist, <span class="stringliteral">"ESO OBS OBSERVER"</span>) != 0);</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(plist, <span class="stringliteral">"ESO OBS PI-COI NAME"</span>) != 0);</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(plist, <span class="stringliteral">"ESO INS GRAT NAME"</span>) != 0);</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(plist, <span class="stringliteral">"ESO PRO CATG"</span>) != 0);</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(plist, <span class="stringliteral">"ESO TPL NEXP"</span>) != 0);</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> </div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>     cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span> </div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span> </div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> </div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> </div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> <span class="comment">     * Test 16: Append a property list to another.</span></div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span> </div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>     plist = cpl_propertylist_new();</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>     _plist = cpl_propertylist_new();</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> </div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>     cpl_propertylist_append_char(plist, keys[0], <span class="charliteral">'a'</span>);</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>     cpl_propertylist_set_comment(plist, keys[0], comments[0]);</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span> </div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>     cpl_propertylist_append_bool(plist, keys[1], 1);</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>     cpl_propertylist_set_comment(plist, keys[1], comments[1]);</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> </div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>     cpl_propertylist_append_int(plist, keys[2], -1);</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>     cpl_propertylist_set_comment(plist, keys[2], comments[2]);</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> </div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>     cpl_propertylist_append_long(plist, keys[3], 32768);</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>     cpl_propertylist_set_comment(plist, keys[3], comments[3]);</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> </div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>     cpl_propertylist_append_float(_plist, keys[4], fval[0]);</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>     cpl_propertylist_set_comment(_plist, keys[4], comments[4]);</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> </div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>     cpl_propertylist_append_double(_plist, keys[5], dval[0]);</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>     cpl_propertylist_set_comment(_plist, keys[5], comments[5]);</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> </div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>     cpl_propertylist_append_string(_plist, keys[6], comments[6]);</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>     cpl_propertylist_set_comment(_plist, keys[6], comments[6]);</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> </div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>     cx_assert(!cpl_propertylist_is_empty(plist));</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>     cx_assert(cpl_propertylist_get_size(plist) == 4);</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> </div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>     cx_assert(!cpl_propertylist_is_empty(_plist));</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>     cx_assert(cpl_propertylist_get_size(_plist) == 3);</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> </div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>     cpl_propertylist_append(plist, _plist);</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> </div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>     cx_assert(!cpl_propertylist_is_empty(plist));</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>     cx_assert(cpl_propertylist_get_size(plist) == 7);</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span> </div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>     cx_assert(!cpl_propertylist_is_empty(_plist));</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>     cx_assert(cpl_propertylist_get_size(_plist) == 3);</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> </div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_propertylist_get_size(plist); i++) {</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>         cpl_property *p = cpl_propertylist_get(plist, i);</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span> </div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>         cx_assert(!strcmp(cpl_property_get_name(p), keys[i]));</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>         cx_assert(!strcmp(cpl_property_get_comment(p), comments[i]));</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>         cx_assert(cpl_property_get_type(p) == types[i]);</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> </div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>         cx_assert(<a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(plist, keys[i]));</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>         cx_assert(!strcmp(cpl_propertylist_get_comment(plist, keys[i]),</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>                           comments[i]));</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>         cx_assert(cpl_propertylist_get_type(plist, keys[i]) == types[i]);</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>     }</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> </div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(  cpl_error_get_code()   );</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> </div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>     cpl_propertylist_delete(_plist);</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>     cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span> </div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> </div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> </div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> <span class="comment">     * Test 17: Create a FITS header using a list containing a property with</span></div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span> <span class="comment">     *          a name of length 80 characters (the length of a FITS card)</span></div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span> </div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span> <span class="comment">    cpl_propertylist_empty(plist);</span></div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> <span class="comment"></span></div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span> <span class="comment">    cpl_propertylist_append_string(plist, longname, comments[6]);</span></div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> <span class="comment"></span></div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> <span class="comment">    qfits_header_destroy(cpl_propertylist_to_fits(plist));</span></div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span> <span class="comment"></span></div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span> <span class="comment"></span></div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span> <span class="comment">    cpl_propertylist_delete(_plist);</span></div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span> <span class="comment">    _plist = NULL;</span></div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span> <span class="comment"></span></div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span> <span class="comment">    cpl_propertylist_delete(plist);</span></div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span> <span class="comment">    plist = NULL;</span></div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span> <span class="comment"></span></div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span> <span class="comment">    cx_assert( cpl_error_get_code() == CPL_ERROR_UNSPECIFIED );</span></div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> <span class="comment">    cpl_error_reset();</span></div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span> <span class="comment">     * All tests succeeded</span></div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>  cleanup:</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> </div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>    <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> </div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span> }</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> </div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> {</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> </div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>   cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>     <span class="comment">//cpl_msg_set_level(CPL_MSG_DEBUG);</span></div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>     test_main();</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span> </div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>      <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/dir_29caecd79ba0d8cf1bf29f8555ca3deb.html b/html/dir_29caecd79ba0d8cf1bf29f8555ca3deb.html
deleted file mode 100644
index 7311b05..0000000
--- a/html/dir_29caecd79ba0d8cf1bf29f8555ca3deb.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: /scratch/data1/uves/releases/uves-cpl/pub/uves-5_3_0/uvesp/recipes/tests/ Directory Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li><li class="navelem"><a class="el" href="dir_29caecd79ba0d8cf1bf29f8555ca3deb.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">tests Directory Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="files"></a>
-Files</h2></td></tr>
-<tr class="memitem:recipe__main_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>recipe_main.c</b> <a href="recipe__main_8c_source.html">[code]</a></td></tr>
-</table>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/dir_40a404867a1885f5fad756cff9cd9f5a.html b/html/dir_40a404867a1885f5fad756cff9cd9f5a.html
deleted file mode 100644
index 0b9e3cd..0000000
--- a/html/dir_40a404867a1885f5fad756cff9cd9f5a.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: /scratch/data1/uves/releases/uves-cpl/pub/uves-5_3_0/uvesp/irplib/tests/ Directory Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li><li class="navelem"><a class="el" href="dir_40a404867a1885f5fad756cff9cd9f5a.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">tests Directory Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="files"></a>
-Files</h2></td></tr>
-<tr class="memitem:irplib__cat-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_cat-test.c</b> <a href="irplib__cat-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__framelist-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_framelist-test.c</b> <a href="irplib__framelist-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__hist-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_hist-test.c</b> <a href="irplib__hist-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__match__cats-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_match_cats-test.c</b> <a href="irplib__match__cats-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__plugin-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_plugin-test.c</b> <a href="irplib__plugin-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__polynomial-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial-test.c</b> <a href="irplib__polynomial-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__utils-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_utils-test.c</b> <a href="irplib__utils-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__wcs-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_wcs-test.c</b> <a href="irplib__wcs-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__wlxcorr-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_wlxcorr-test.c</b> <a href="irplib__wlxcorr-test_8c_source.html">[code]</a></td></tr>
-</table>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/dir_481eb1706afc14ed6b3611394691cd00.html b/html/dir_481eb1706afc14ed6b3611394691cd00.html
deleted file mode 100644
index f8ff1b1..0000000
--- a/html/dir_481eb1706afc14ed6b3611394691cd00.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: /scratch/data1/uves/releases/uves-cpl/pub/uves-5_3_0/uvesp/uves/tests/ Directory Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">tests Directory Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="files"></a>
-Files</h2></td></tr>
-<tr class="memitem:cpl__propertylist-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>cpl_propertylist-test.c</b> <a href="cpl__propertylist-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves-test.c</b> <a href="uves-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__cd__align-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_cd_align-test.c</b> <a href="uves__cd__align-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__corrbadpix-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_corrbadpix-test.c</b> <a href="uves__corrbadpix-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__dfs-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_dfs-test.c</b> <a href="uves__dfs-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__extract-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_extract-test.c</b> <a href="uves__extract-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__polynomial-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_polynomial-test.c</b> <a href="uves__polynomial-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__propertylist-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_propertylist-test.c</b> <a href="uves__propertylist-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__qclog-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_qclog-test.c</b> <a href="uves__qclog-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__response-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_response-test.c</b> <a href="uves__response-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__test__simulate_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_test_simulate.c</b> <a href="uves__test__simulate_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__test__simulate_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_test_simulate.h</b> <a href="uves__test__simulate_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utils-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utils-test.c</b> <a href="uves__utils-test_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal-test_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal-test.c</b> <a href="uves__wavecal-test_8c_source.html">[code]</a></td></tr>
-</table>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/dir_49fdd486f031bb0e93313e8c1032e148.html b/html/dir_49fdd486f031bb0e93313e8c1032e148.html
deleted file mode 100644
index 2f663cc..0000000
--- a/html/dir_49fdd486f031bb0e93313e8c1032e148.html
+++ /dev/null
@@ -1,202 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: /scratch/data1/uves/releases/uves-cpl/pub/uves-5_3_0/uvesp/uves/ Directory Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves Directory Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="subdirs"></a>
-Directories</h2></td></tr>
-<tr class="memitem:dir_481eb1706afc14ed6b3611394691cd00"><td class="memItemLeft" align="right" valign="top">directory  </td><td class="memItemRight" valign="bottom"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="files"></a>
-Files</h2></td></tr>
-<tr class="memitem:flames__corvel_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_corvel.c</b> <a href="flames__corvel_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__corvel_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_corvel.h</b> <a href="flames__corvel_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__midas__def_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_midas_def.c</b> <a href="flames__midas__def_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__midas__def_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_midas_def.h</b> <a href="flames__midas__def_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__newmatrix_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_newmatrix.c</b> <a href="flames__newmatrix_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__newmatrix_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_newmatrix.h</b> <a href="flames__newmatrix_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__reduce__vcorrel_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_reduce_vcorrel.c</b> <a href="flames__reduce__vcorrel_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__reduce__vcorrel_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_reduce_vcorrel.h</b> <a href="flames__reduce__vcorrel_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves.h</b> <a href="uves_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__backsub_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_backsub.c</b> <a href="uves__backsub_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__backsub_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_backsub.h</b> <a href="uves__backsub_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__baryvel_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_baryvel.c</b> <a href="uves__baryvel_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__baryvel_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_baryvel.h</b> <a href="uves__baryvel_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__cal__mkmaster__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_cal_mkmaster_impl.c</b> <a href="uves__cal__mkmaster__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__cd__align__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_cd_align_impl.c</b> <a href="uves__cd__align__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__cd__align__impl_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_cd_align_impl.h</b> <a href="uves__cd__align__impl_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__chip_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_chip.c</b> <a href="uves__chip_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__chip_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_chip.h</b> <a href="uves__chip_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__chip__type_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_chip_type.c</b> <a href="uves__chip__type_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__chip__type_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_chip_type.h</b> <a href="uves__chip__type_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__corrbadpix_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_corrbadpix.c</b> <a href="uves__corrbadpix_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__corrbadpix_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_corrbadpix.h</b> <a href="uves__corrbadpix_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__cpl__size_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_cpl_size.h</b> <a href="uves__cpl__size_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__deque_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_deque.c</b> <a href="uves__deque_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__deque_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_deque.h</b> <a href="uves__deque_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__dfs_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_dfs.c</b> <a href="uves__dfs_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__dfs_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_dfs.h</b> <a href="uves__dfs_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__dump_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_dump.c</b> <a href="uves__dump_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__dump_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_dump.h</b> <a href="uves__dump_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__error_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_error.h</b> <a href="uves__error_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__extract_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_extract.c</b> <a href="uves__extract_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__extract_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_extract.h</b> <a href="uves__extract_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__extract__iterate_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_extract_iterate.c</b> <a href="uves__extract__iterate_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__extract__iterate_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_extract_iterate.h</b> <a href="uves__extract__iterate_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__extract__profile_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_extract_profile.c</b> <a href="uves__extract__profile_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__extract__profile_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_extract_profile.h</b> <a href="uves__extract__profile_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__flatfield_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_flatfield.c</b> <a href="uves__flatfield_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__flatfield_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_flatfield.h</b> <a href="uves__flatfield_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__globals_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_globals.h</b> <a href="uves__globals_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__mbias__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_mbias_impl.c</b> <a href="uves__mbias__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__mbias__impl_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_mbias_impl.h</b> <a href="uves__mbias__impl_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__mdark__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_mdark_impl.c</b> <a href="uves__mdark__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__mdark__impl_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_mdark_impl.h</b> <a href="uves__mdark__impl_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__merge_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_merge.c</b> <a href="uves__merge_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__merge_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_merge.h</b> <a href="uves__merge_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__mflat__combine__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_mflat_combine_impl.c</b> <a href="uves__mflat__combine__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__mflat__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_mflat_impl.c</b> <a href="uves__mflat__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__msg_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_msg.c</b> <a href="uves__msg_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__msg_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_msg.h</b> <a href="uves__msg_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__obs__spatred__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_obs_spatred_impl.c</b> <a href="uves__obs__spatred__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__orderpos__body_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_orderpos_body.c</b> <a href="uves__orderpos__body_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__orderpos__body_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_orderpos_body.h</b> <a href="uves__orderpos__body_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__orderpos__follow_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_orderpos_follow.c</b> <a href="uves__orderpos__follow_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__orderpos__follow_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_orderpos_follow.h</b> <a href="uves__orderpos__follow_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__orderpos__hough_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_orderpos_hough.c</b> <a href="uves__orderpos__hough_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__orderpos__hough_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_orderpos_hough.h</b> <a href="uves__orderpos__hough_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__orderpos__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_orderpos_impl.c</b> <a href="uves__orderpos__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__parameters_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_parameters.c</b> <a href="uves__parameters_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__parameters_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_parameters.h</b> <a href="uves__parameters_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__pfits_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_pfits.c</b> <a href="uves__pfits_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__pfits_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_pfits.h</b> <a href="uves__pfits_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__body_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_body.c</b> <a href="uves__physmod__body_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__body_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_body.h</b> <a href="uves__physmod__body_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__calmap_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_calmap.c</b> <a href="uves__physmod__calmap_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__calmap_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_calmap.h</b> <a href="uves__physmod__calmap_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__center__gauss_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_center_gauss.c</b> <a href="uves__physmod__center__gauss_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__center__gauss_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_center_gauss.h</b> <a href="uves__physmod__center__gauss_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__chop__otab_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_chop_otab.c</b> <a href="uves__physmod__chop__otab_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__chop__otab_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_chop_otab.h</b> <a href="uves__physmod__chop__otab_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__create__table_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_create_table.c</b> <a href="uves__physmod__create__table_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__create__table_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_create_table.h</b> <a href="uves__physmod__create__table_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__cstacen_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_cstacen.c</b> <a href="uves__physmod__cstacen_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__cstacen_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_cstacen.h</b> <a href="uves__physmod__cstacen_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_impl.c</b> <a href="uves__physmod__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__msrawxy_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_msrawxy.c</b> <a href="uves__physmod__msrawxy_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__msrawxy_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_msrawxy.h</b> <a href="uves__physmod__msrawxy_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__necregr_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_necregr.c</b> <a href="uves__physmod__necregr_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__necregr_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_necregr.h</b> <a href="uves__physmod__necregr_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__plotmod_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_plotmod.c</b> <a href="uves__physmod__plotmod_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__plotmod_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_plotmod.h</b> <a href="uves__physmod__plotmod_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__qc1pmtbl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_qc1pmtbl.c</b> <a href="uves__physmod__qc1pmtbl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__qc1pmtbl_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_qc1pmtbl.h</b> <a href="uves__physmod__qc1pmtbl_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__regress__echelle_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_regress_echelle.c</b> <a href="uves__physmod__regress__echelle_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__regress__echelle_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_regress_echelle.h</b> <a href="uves__physmod__regress__echelle_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__stability__check_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_stability_check.c</b> <a href="uves__physmod__stability__check_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__stability__check_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_stability_check.h</b> <a href="uves__physmod__stability__check_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__utils_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_utils.c</b> <a href="uves__physmod__utils_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod__utils_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod_utils.h</b> <a href="uves__physmod__utils_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__plot_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_plot.c</b> <a href="uves__plot_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__plot_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_plot.h</b> <a href="uves__plot_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__plugin_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_plugin.h</b> <a href="uves__plugin_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__propertylist_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_propertylist.c</b> <a href="uves__propertylist_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__propertylist_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_propertylist.h</b> <a href="uves__propertylist_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__qclog_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_qclog.c</b> <a href="uves__qclog_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__qclog_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_qclog.h</b> <a href="uves__qclog_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__rebin_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_rebin.c</b> <a href="uves__rebin_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__rebin_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_rebin.h</b> <a href="uves__rebin_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__recipe_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_recipe.h</b> <a href="uves__recipe_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__redchain__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_redchain_impl.c</b> <a href="uves__redchain__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__reduce_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_reduce.c</b> <a href="uves__reduce_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__reduce_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_reduce.h</b> <a href="uves__reduce_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__reduce__mflat_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_reduce_mflat.c</b> <a href="uves__reduce__mflat_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__reduce__mflat_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_reduce_mflat.h</b> <a href="uves__reduce__mflat_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__reduce__mflat__combine_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_reduce_mflat_combine.c</b> <a href="uves__reduce__mflat__combine_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__reduce__mflat__combine_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_reduce_mflat_combine.h</b> <a href="uves__reduce__mflat__combine_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__reduce__scired_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_reduce_scired.c</b> <a href="uves__reduce__scired_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__reduce__scired_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_reduce_scired.h</b> <a href="uves__reduce__scired_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__reduce__utils_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_reduce_utils.c</b> <a href="uves__reduce__utils_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__reduce__utils_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_reduce_utils.h</b> <a href="uves__reduce__utils_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__remove__crh__single_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_remove_crh_single.c</b> <a href="uves__remove__crh__single_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__remove__crh__single_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_remove_crh_single.h</b> <a href="uves__remove__crh__single_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__response__efficiency_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_response_efficiency.c</b> <a href="uves__response__efficiency_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__response__efficiency_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_response_efficiency.h</b> <a href="uves__response__efficiency_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__response__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_response_impl.c</b> <a href="uves__response__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__response__utils_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_response_utils.c</b> <a href="uves__response__utils_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__response__utils_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_response_utils.h</b> <a href="uves__response__utils_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__scired__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_scired_impl.c</b> <a href="uves__scired__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__tflat__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_tflat_impl.c</b> <a href="uves__tflat__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__time_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_time.c</b> <a href="uves__time_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__time_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_time.h</b> <a href="uves__time_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utils_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utils.c</b> <a href="uves__utils_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utils_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utils.h</b> <a href="uves__utils_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utils__cpl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utils_cpl.c</b> <a href="uves__utils__cpl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utils__cpl_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utils_cpl.h</b> <a href="uves__utils__cpl_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utils__polynomial_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utils_polynomial.c</b> <a href="uves__utils__polynomial_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utils__polynomial_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utils_polynomial.h</b> <a href="uves__utils__polynomial_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utils__wrappers_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utils_wrappers.c</b> <a href="uves__utils__wrappers_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utils__wrappers_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utils_wrappers.h</b> <a href="uves__utils__wrappers_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal__body_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal_body.c</b> <a href="uves__wavecal__body_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal__body_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal_body.h</b> <a href="uves__wavecal__body_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal__firstsolution_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal_firstsolution.c</b> <a href="uves__wavecal__firstsolution_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal__firstsolution_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal_firstsolution.h</b> <a href="uves__wavecal__firstsolution_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal__identify_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal_identify.c</b> <a href="uves__wavecal__identify_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal__identify_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal_identify.h</b> <a href="uves__wavecal__identify_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal__impl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal_impl.c</b> <a href="uves__wavecal__impl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal__search_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal_search.c</b> <a href="uves__wavecal__search_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal__search_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal_search.h</b> <a href="uves__wavecal__search_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal__utils_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal_utils.c</b> <a href="uves__wavecal__utils_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal__utils_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal_utils.h</b> <a href="uves__wavecal__utils_8h_source.html">[code]</a></td></tr>
-</table>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/dir_9dbeae34d65cadb5c6915b8c80494485.html b/html/dir_9dbeae34d65cadb5c6915b8c80494485.html
deleted file mode 100644
index 56f9ec2..0000000
--- a/html/dir_9dbeae34d65cadb5c6915b8c80494485.html
+++ /dev/null
@@ -1,107 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: /scratch/data1/uves/releases/uves-cpl/pub/uves-5_3_0/uvesp/irplib/ Directory Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib Directory Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="subdirs"></a>
-Directories</h2></td></tr>
-<tr class="memitem:dir_40a404867a1885f5fad756cff9cd9f5a"><td class="memItemLeft" align="right" valign="top">directory  </td><td class="memItemRight" valign="bottom"><a class="el" href="dir_40a404867a1885f5fad756cff9cd9f5a.html">tests</a></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="files"></a>
-Files</h2></td></tr>
-<tr class="memitem:irplib__calib_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_calib.c</b> <a href="irplib__calib_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__calib_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_calib.h</b> <a href="irplib__calib_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__cat_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_cat.c</b> <a href="irplib__cat_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__cat_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_cat.h</b> <a href="irplib__cat_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__distortion_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_distortion.c</b> <a href="irplib__distortion_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__distortion_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_distortion.h</b> <a href="irplib__distortion_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__flat_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_flat.c</b> <a href="irplib__flat_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__flat_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_flat.h</b> <a href="irplib__flat_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__framelist_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_framelist.c</b> <a href="irplib__framelist_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__framelist_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_framelist.h</b> <a href="irplib__framelist_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__hist_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_hist.c</b> <a href="irplib__hist_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__hist_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_hist.h</b> <a href="irplib__hist_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__ksigma__clip_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_ksigma_clip.c</b> <a href="irplib__ksigma__clip_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__ksigma__clip_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_ksigma_clip.h</b> <a href="irplib__ksigma__clip_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__ksigma__clip__body_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_ksigma_clip_body.h</b> <a href="irplib__ksigma__clip__body_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__match__cats_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_match_cats.c</b> <a href="irplib__match__cats_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__match__cats_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_match_cats.h</b> <a href="irplib__match__cats_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__mkmaster_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_mkmaster.c</b> <a href="irplib__mkmaster_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__mkmaster_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_mkmaster.h</b> <a href="irplib__mkmaster_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__oddeven_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_oddeven.c</b> <a href="irplib__oddeven_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__oddeven_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_oddeven.h</b> <a href="irplib__oddeven_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__plugin_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_plugin.c</b> <a href="irplib__plugin_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__plugin_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_plugin.h</b> <a href="irplib__plugin_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__polynomial_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial.c</b> <a href="irplib__polynomial_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__polynomial_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial.h</b> <a href="irplib__polynomial_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__ppm_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_ppm.c</b> <a href="irplib__ppm_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__ppm_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_ppm.h</b> <a href="irplib__ppm_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__slitpos_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_slitpos.c</b> <a href="irplib__slitpos_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__slitpos_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_slitpos.h</b> <a href="irplib__slitpos_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__spectrum_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_spectrum.c</b> <a href="irplib__spectrum_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__spectrum_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_spectrum.h</b> <a href="irplib__spectrum_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__stdstar_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_stdstar.c</b> <a href="irplib__stdstar_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__stdstar_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_stdstar.h</b> <a href="irplib__stdstar_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__strehl_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_strehl.c</b> <a href="irplib__strehl_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__strehl_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_strehl.h</b> <a href="irplib__strehl_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__utils_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_utils.c</b> <a href="irplib__utils_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__utils_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_utils.h</b> <a href="irplib__utils_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__wavecal_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_wavecal.c</b> <a href="irplib__wavecal_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__wavecal_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_wavecal.h</b> <a href="irplib__wavecal_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__wavecal__impl_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_wavecal_impl.h</b> <a href="irplib__wavecal__impl_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__wcs_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_wcs.c</b> <a href="irplib__wcs_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__wcs_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_wcs.h</b> <a href="irplib__wcs_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__wlxcorr_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_wlxcorr.c</b> <a href="irplib__wlxcorr_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:irplib__wlxcorr_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>irplib_wlxcorr.h</b> <a href="irplib__wlxcorr_8h_source.html">[code]</a></td></tr>
-</table>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/dir_b351cdfeb4656d7d168dc72b273024e7.html b/html/dir_b351cdfeb4656d7d168dc72b273024e7.html
deleted file mode 100644
index a3713cf..0000000
--- a/html/dir_b351cdfeb4656d7d168dc72b273024e7.html
+++ /dev/null
@@ -1,98 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: /scratch/data1/uves/releases/uves-cpl/pub/uves-5_3_0/uvesp/recipes/ Directory Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">recipes Directory Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="subdirs"></a>
-Directories</h2></td></tr>
-<tr class="memitem:dir_29caecd79ba0d8cf1bf29f8555ca3deb"><td class="memItemLeft" align="right" valign="top">directory  </td><td class="memItemRight" valign="bottom"><a class="el" href="dir_29caecd79ba0d8cf1bf29f8555ca3deb.html">tests</a></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="files"></a>
-Files</h2></td></tr>
-<tr class="memitem:flames__cal__mkmaster_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_cal_mkmaster.c</b> <a href="flames__cal__mkmaster_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__cal__orderpos_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_cal_orderpos.c</b> <a href="flames__cal__orderpos_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__cal__predict_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_cal_predict.c</b> <a href="flames__cal__predict_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__cal__prep__sff__ofpos_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_cal_prep_sff_ofpos.c</b> <a href="flames__cal__prep__sff__ofpos_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__cal__wavecal_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_cal_wavecal.c</b> <a href="flames__cal__wavecal_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__extract_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_extract.c</b> <a href="flames__extract_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__fillordtab_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_fillordtab.c</b> <a href="flames__fillordtab_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__mes__slitff__size_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_mes_slitff_size.c</b> <a href="flames__mes__slitff__size_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__obs__redchain_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_obs_redchain.c</b> <a href="flames__obs__redchain_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__obs__scired_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_obs_scired.c</b> <a href="flames__obs__scired_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__prepbkg_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_prepbkg.c</b> <a href="flames__prepbkg_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__prepfibreff_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_prepfibreff.c</b> <a href="flames__prepfibreff_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__prepnorm_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_prepnorm.c</b> <a href="flames__prepnorm_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__preppa_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_preppa.c</b> <a href="flames__preppa_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__prepslitff_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_prepslitff.c</b> <a href="flames__prepslitff_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__recipe_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_recipe.c</b> <a href="flames__recipe_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:flames__utl__unpack_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>flames_utl_unpack.c</b> <a href="flames__utl__unpack_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__cal__cd__align_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_cal_cd_align.c</b> <a href="uves__cal__cd__align_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__cal__mkmaster_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_cal_mkmaster.c</b> <a href="uves__cal__mkmaster_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__mbias_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_mbias.c</b> <a href="uves__mbias_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__mdark_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_mdark.c</b> <a href="uves__mdark_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__mflat_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_mflat.c</b> <a href="uves__mflat_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__mflat__combine_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_mflat_combine.c</b> <a href="uves__mflat__combine_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__orderpos_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_orderpos.c</b> <a href="uves__orderpos_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__physmod_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_physmod.c</b> <a href="uves__physmod_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__recipe_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_recipe.c</b> <a href="uves__recipe_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__redchain_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_redchain.c</b> <a href="uves__redchain_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__response_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_response.c</b> <a href="uves__response_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__scired_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_scired.c</b> <a href="uves__scired_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__tflat_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_tflat.c</b> <a href="uves__tflat_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utl__ima__arith_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utl_ima_arith.c</b> <a href="uves__utl__ima__arith_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utl__physmod_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utl_physmod.c</b> <a href="uves__utl__physmod_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utl__rcosmic_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utl_rcosmic.c</b> <a href="uves__utl__rcosmic_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__utl__remove__crh__single_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_utl_remove_crh_single.c</b> <a href="uves__utl__remove__crh__single_8c_source.html">[code]</a></td></tr>
-<tr class="memitem:uves__wavecal_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>uves_wavecal.c</b> <a href="uves__wavecal_8c_source.html">[code]</a></td></tr>
-</table>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/doxygen.css b/html/doxygen.css
deleted file mode 100644
index 8589450..0000000
--- a/html/doxygen.css
+++ /dev/null
@@ -1,1156 +0,0 @@
-/* The standard CSS for doxygen */
-
-body, table, div, p, dl {
-	font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif;
-	font-size: 13px;
-	line-height: 1.3;
-}
-
-/* @group Heading Levels */
-
-h1 {
-	font-size: 150%;
-}
-
-.title {
-	font-size: 150%;
-	font-weight: bold;
-	margin: 10px 2px;
-}
-
-h2 {
-	font-size: 120%;
-}
-
-h3 {
-	font-size: 100%;
-}
-
-h1, h2, h3, h4, h5, h6 {
-	-webkit-transition: text-shadow 0.5s linear;
-	-moz-transition: text-shadow 0.5s linear;
-	-ms-transition: text-shadow 0.5s linear;
-	-o-transition: text-shadow 0.5s linear;
-	transition: text-shadow 0.5s linear;
-	margin-right: 15px;
-}
-
-h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow {
-	text-shadow: 0 0 15px cyan;
-}
-
-dt {
-	font-weight: bold;
-}
-
-div.multicol {
-	-moz-column-gap: 1em;
-	-webkit-column-gap: 1em;
-	-moz-column-count: 3;
-	-webkit-column-count: 3;
-}
-
-p.startli, p.startdd, p.starttd {
-	margin-top: 2px;
-}
-
-p.endli {
-	margin-bottom: 0px;
-}
-
-p.enddd {
-	margin-bottom: 4px;
-}
-
-p.endtd {
-	margin-bottom: 2px;
-}
-
-/* @end */
-
-caption {
-	font-weight: bold;
-}
-
-span.legend {
-        font-size: 70%;
-        text-align: center;
-}
-
-h3.version {
-        font-size: 90%;
-        text-align: center;
-}
-
-div.qindex, div.navtab{
-	background-color: #EBEFF6;
-	border: 1px solid #A3B4D7;
-	text-align: center;
-}
-
-div.qindex, div.navpath {
-	width: 100%;
-	line-height: 140%;
-}
-
-div.navtab {
-	margin-right: 15px;
-}
-
-/* @group Link Styling */
-
-a {
-	color: #3D578C;
-	font-weight: normal;
-	text-decoration: none;
-}
-
-.contents a:visited {
-	color: #4665A2;
-}
-
-a:hover {
-	text-decoration: underline;
-}
-
-a.qindex {
-	font-weight: bold;
-}
-
-a.qindexHL {
-	font-weight: bold;
-	background-color: #9CAFD4;
-	color: #ffffff;
-	border: 1px double #869DCA;
-}
-
-.contents a.qindexHL:visited {
-        color: #ffffff;
-}
-
-a.el {
-	font-weight: bold;
-}
-
-a.elRef {
-}
-
-a.code, a.code:visited {
-	color: #4665A2; 
-}
-
-a.codeRef, a.codeRef:visited {
-	color: #4665A2; 
-}
-
-/* @end */
-
-dl.el {
-	margin-left: -1cm;
-}
-
-pre.fragment {
-        border: 1px solid #C4CFE5;
-        background-color: #FBFCFD;
-        padding: 4px 6px;
-        margin: 4px 8px 4px 2px;
-        overflow: auto;
-        word-wrap: break-word;
-        font-size:  9pt;
-        line-height: 125%;
-        font-family: monospace, fixed;
-        font-size: 105%;
-}
-
-div.fragment {
-        padding: 4px;
-        margin: 4px;
-	background-color: #FBFCFD;
-	border: 1px solid #C4CFE5;
-}
-
-div.line {
-	font-family: monospace, fixed;
-        font-size: 13px;
-	min-height: 13px;
-	line-height: 1.0;
-	text-wrap: unrestricted;
-	white-space: -moz-pre-wrap; /* Moz */
-	white-space: -pre-wrap;     /* Opera 4-6 */
-	white-space: -o-pre-wrap;   /* Opera 7 */
-	white-space: pre-wrap;      /* CSS3  */
-	word-wrap: break-word;      /* IE 5.5+ */
-	text-indent: -53px;
-	padding-left: 53px;
-	padding-bottom: 0px;
-	margin: 0px;
-	-webkit-transition-property: background-color, box-shadow;
-	-webkit-transition-duration: 0.5s;
-	-moz-transition-property: background-color, box-shadow;
-	-moz-transition-duration: 0.5s;
-	-ms-transition-property: background-color, box-shadow;
-	-ms-transition-duration: 0.5s;
-	-o-transition-property: background-color, box-shadow;
-	-o-transition-duration: 0.5s;
-	transition-property: background-color, box-shadow;
-	transition-duration: 0.5s;
-}
-
-div.line.glow {
-	background-color: cyan;
-	box-shadow: 0 0 10px cyan;
-}
-
-
-span.lineno {
-	padding-right: 4px;
-	text-align: right;
-	border-right: 2px solid #0F0;
-	background-color: #E8E8E8;
-        white-space: pre;
-}
-span.lineno a {
-	background-color: #D8D8D8;
-}
-
-span.lineno a:hover {
-	background-color: #C8C8C8;
-}
-
-div.ah {
-	background-color: black;
-	font-weight: bold;
-	color: #ffffff;
-	margin-bottom: 3px;
-	margin-top: 3px;
-	padding: 0.2em;
-	border: solid thin #333;
-	border-radius: 0.5em;
-	-webkit-border-radius: .5em;
-	-moz-border-radius: .5em;
-	box-shadow: 2px 2px 3px #999;
-	-webkit-box-shadow: 2px 2px 3px #999;
-	-moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px;
-	background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444));
-	background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000);
-}
-
-div.groupHeader {
-	margin-left: 16px;
-	margin-top: 12px;
-	font-weight: bold;
-}
-
-div.groupText {
-	margin-left: 16px;
-	font-style: italic;
-}
-
-body {
-	background-color: white;
-	color: black;
-        margin: 0;
-}
-
-div.contents {
-	margin-top: 10px;
-	margin-left: 12px;
-	margin-right: 8px;
-}
-
-td.indexkey {
-	background-color: #EBEFF6;
-	font-weight: bold;
-	border: 1px solid #C4CFE5;
-	margin: 2px 0px 2px 0;
-	padding: 2px 10px;
-        white-space: nowrap;
-        vertical-align: top;
-}
-
-td.indexvalue {
-	background-color: #EBEFF6;
-	border: 1px solid #C4CFE5;
-	padding: 2px 10px;
-	margin: 2px 0px;
-}
-
-tr.memlist {
-	background-color: #EEF1F7;
-}
-
-p.formulaDsp {
-	text-align: center;
-}
-
-img.formulaDsp {
-	
-}
-
-img.formulaInl {
-	vertical-align: middle;
-}
-
-div.center {
-	text-align: center;
-        margin-top: 0px;
-        margin-bottom: 0px;
-        padding: 0px;
-}
-
-div.center img {
-	border: 0px;
-}
-
-address.footer {
-	text-align: right;
-	padding-right: 12px;
-}
-
-img.footer {
-	border: 0px;
-	vertical-align: middle;
-}
-
-/* @group Code Colorization */
-
-span.keyword {
-	color: #008000
-}
-
-span.keywordtype {
-	color: #604020
-}
-
-span.keywordflow {
-	color: #e08000
-}
-
-span.comment {
-	color: #800000
-}
-
-span.preprocessor {
-	color: #806020
-}
-
-span.stringliteral {
-	color: #002080
-}
-
-span.charliteral {
-	color: #008080
-}
-
-span.vhdldigit { 
-	color: #ff00ff 
-}
-
-span.vhdlchar { 
-	color: #000000 
-}
-
-span.vhdlkeyword { 
-	color: #700070 
-}
-
-span.vhdllogic { 
-	color: #ff0000 
-}
-
-blockquote {
-        background-color: #F7F8FB;
-        border-left: 2px solid #9CAFD4;
-        margin: 0 24px 0 4px;
-        padding: 0 12px 0 16px;
-}
-
-/* @end */
-
-/*
-.search {
-	color: #003399;
-	font-weight: bold;
-}
-
-form.search {
-	margin-bottom: 0px;
-	margin-top: 0px;
-}
-
-input.search {
-	font-size: 75%;
-	color: #000080;
-	font-weight: normal;
-	background-color: #e8eef2;
-}
-*/
-
-td.tiny {
-	font-size: 75%;
-}
-
-.dirtab {
-	padding: 4px;
-	border-collapse: collapse;
-	border: 1px solid #A3B4D7;
-}
-
-th.dirtab {
-	background: #EBEFF6;
-	font-weight: bold;
-}
-
-hr {
-	height: 0px;
-	border: none;
-	border-top: 1px solid #4A6AAA;
-}
-
-hr.footer {
-	height: 1px;
-}
-
-/* @group Member Descriptions */
-
-table.memberdecls {
-	border-spacing: 0px;
-	padding: 0px;
-}
-
-.memberdecls td {
-	-webkit-transition-property: background-color, box-shadow;
-	-webkit-transition-duration: 0.5s;
-	-moz-transition-property: background-color, box-shadow;
-	-moz-transition-duration: 0.5s;
-	-ms-transition-property: background-color, box-shadow;
-	-ms-transition-duration: 0.5s;
-	-o-transition-property: background-color, box-shadow;
-	-o-transition-duration: 0.5s;
-	transition-property: background-color, box-shadow;
-	transition-duration: 0.5s;
-}
-
-.memberdecls td.glow {
-	background-color: cyan;
-	box-shadow: 0 0 15px cyan;
-}
-
-.mdescLeft, .mdescRight,
-.memItemLeft, .memItemRight,
-.memTemplItemLeft, .memTemplItemRight, .memTemplParams {
-	background-color: #F9FAFC;
-	border: none;
-	margin: 4px;
-	padding: 1px 0 0 8px;
-}
-
-.mdescLeft, .mdescRight {
-	padding: 0px 8px 4px 8px;
-	color: #555;
-}
-
-.memItemLeft, .memItemRight, .memTemplParams {
-	border-top: 1px solid #C4CFE5;
-}
-
-.memItemLeft, .memTemplItemLeft {
-        white-space: nowrap;
-}
-
-.memItemRight {
-	width: 100%;
-}
-
-.memTemplParams {
-	color: #4665A2;
-        white-space: nowrap;
-}
-
-/* @end */
-
-/* @group Member Details */
-
-/* Styles for detailed member documentation */
-
-.memtemplate {
-	font-size: 80%;
-	color: #4665A2;
-	font-weight: normal;
-	margin-left: 9px;
-}
-
-.memnav {
-	background-color: #EBEFF6;
-	border: 1px solid #A3B4D7;
-	text-align: center;
-	margin: 2px;
-	margin-right: 15px;
-	padding: 2px;
-}
-
-.mempage {
-	width: 100%;
-}
-
-.memitem {
-	padding: 0;
-	margin-bottom: 10px;
-	margin-right: 5px;
-        -webkit-transition: box-shadow 0.5s linear;
-        -moz-transition: box-shadow 0.5s linear;
-        -ms-transition: box-shadow 0.5s linear;
-        -o-transition: box-shadow 0.5s linear;
-        transition: box-shadow 0.5s linear;
-        display: table !important;
-        width: 100%;
-}
-
-.memitem.glow {
-         box-shadow: 0 0 15px cyan;
-}
-
-.memname {
-        font-weight: bold;
-        margin-left: 6px;
-}
-
-.memname td {
-	vertical-align: bottom;
-}
-
-.memproto, dl.reflist dt {
-        border-top: 1px solid #A8B8D9;
-        border-left: 1px solid #A8B8D9;
-        border-right: 1px solid #A8B8D9;
-        padding: 6px 0px 6px 0px;
-        color: #253555;
-        font-weight: bold;
-        text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
-        background-image:url('nav_f.png');
-        background-repeat:repeat-x;
-        background-color: #E2E8F2;
-        /* opera specific markup */
-        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
-        border-top-right-radius: 4px;
-        border-top-left-radius: 4px;
-        /* firefox specific markup */
-        -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;
-        -moz-border-radius-topright: 4px;
-        -moz-border-radius-topleft: 4px;
-        /* webkit specific markup */
-        -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
-        -webkit-border-top-right-radius: 4px;
-        -webkit-border-top-left-radius: 4px;
-
-}
-
-.memdoc, dl.reflist dd {
-        border-bottom: 1px solid #A8B8D9;      
-        border-left: 1px solid #A8B8D9;      
-        border-right: 1px solid #A8B8D9; 
-        padding: 6px 10px 2px 10px;
-        background-color: #FBFCFD;
-        border-top-width: 0;
-        background-image:url('nav_g.png');
-        background-repeat:repeat-x;
-        background-color: #FFFFFF;
-        /* opera specific markup */
-        border-bottom-left-radius: 4px;
-        border-bottom-right-radius: 4px;
-        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
-        /* firefox specific markup */
-        -moz-border-radius-bottomleft: 4px;
-        -moz-border-radius-bottomright: 4px;
-        -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;
-        /* webkit specific markup */
-        -webkit-border-bottom-left-radius: 4px;
-        -webkit-border-bottom-right-radius: 4px;
-        -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
-}
-
-dl.reflist dt {
-        padding: 5px;
-}
-
-dl.reflist dd {
-        margin: 0px 0px 10px 0px;
-        padding: 5px;
-}
-
-.paramkey {
-	text-align: right;
-}
-
-.paramtype {
-	white-space: nowrap;
-}
-
-.paramname {
-	color: #602020;
-	white-space: nowrap;
-}
-.paramname em {
-	font-style: normal;
-}
-.paramname code {
-        line-height: 14px;
-}
-
-.params, .retval, .exception, .tparams {
-        margin-left: 0px;
-        padding-left: 0px;
-}       
-
-.params .paramname, .retval .paramname {
-        font-weight: bold;
-        vertical-align: top;
-}
-        
-.params .paramtype {
-        font-style: italic;
-        vertical-align: top;
-}       
-        
-.params .paramdir {
-        font-family: "courier new",courier,monospace;
-        vertical-align: top;
-}
-
-table.mlabels {
-	border-spacing: 0px;
-}
-
-td.mlabels-left {
-	width: 100%;
-	padding: 0px;
-}
-
-td.mlabels-right {
-	vertical-align: bottom;
-	padding: 0px;
-	white-space: nowrap;
-}
-
-span.mlabels {
-        margin-left: 8px;
-}
-
-span.mlabel {
-        background-color: #728DC1;
-        border-top:1px solid #5373B4;
-        border-left:1px solid #5373B4;
-        border-right:1px solid #C4CFE5;
-        border-bottom:1px solid #C4CFE5;
-	text-shadow: none;
-        color: white;
-        margin-right: 4px;
-        padding: 2px 3px;
-        border-radius: 3px;
-        font-size: 7pt;
-	white-space: nowrap;
-}
-
-
-
-/* @end */
-
-/* these are for tree view when not used as main index */
-
-div.directory {
-        margin: 10px 0px;
-        border-top: 1px solid #A8B8D9;
-        border-bottom: 1px solid #A8B8D9;
-        width: 100%;
-}
-
-.directory table {
-        border-collapse:collapse;
-}
-
-.directory td {
-        margin: 0px;
-        padding: 0px;
-	vertical-align: top;
-}
-
-.directory td.entry {
-        white-space: nowrap;
-        padding-right: 6px;
-}
-
-.directory td.entry a {
-        outline:none;
-}
-
-.directory td.entry a img {
-        border: none;
-}
-
-.directory td.desc {
-        width: 100%;
-        padding-left: 6px;
-	padding-right: 6px;
-	border-left: 1px solid rgba(0,0,0,0.05);
-}
-
-.directory tr.even {
-	padding-left: 6px;
-	background-color: #F7F8FB;
-}
-
-.directory img {
-	vertical-align: -30%;
-}
-
-.directory .levels {
-        white-space: nowrap;
-        width: 100%;
-        text-align: right;
-        font-size: 9pt;
-}
-
-.directory .levels span {
-        cursor: pointer;
-        padding-left: 2px;
-        padding-right: 2px;
-	color: #3D578C;
-}
-
-div.dynheader {
-        margin-top: 8px;
-	-webkit-touch-callout: none;
-	-webkit-user-select: none;
-	-khtml-user-select: none;
-	-moz-user-select: none;
-	-ms-user-select: none;
-	user-select: none;
-}
-
-address {
-	font-style: normal;
-	color: #2A3D61;
-}
-
-table.doxtable {
-	border-collapse:collapse;
-        margin-top: 4px;
-        margin-bottom: 4px;
-}
-
-table.doxtable td, table.doxtable th {
-	border: 1px solid #2D4068;
-	padding: 3px 7px 2px;
-}
-
-table.doxtable th {
-	background-color: #374F7F;
-	color: #FFFFFF;
-	font-size: 110%;
-	padding-bottom: 4px;
-	padding-top: 5px;
-}
-
-table.fieldtable {
-        width: 100%;
-        margin-bottom: 10px;
-        border: 1px solid #A8B8D9;
-        border-spacing: 0px;
-        -moz-border-radius: 4px;
-        -webkit-border-radius: 4px;
-        border-radius: 4px;
-        -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px;
-        -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15);
-        box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15);
-}
-
-.fieldtable td, .fieldtable th {
-        padding: 3px 7px 2px;
-}
-
-.fieldtable td.fieldtype, .fieldtable td.fieldname {
-        white-space: nowrap;
-        border-right: 1px solid #A8B8D9;
-        border-bottom: 1px solid #A8B8D9;
-        vertical-align: top;
-}
-
-.fieldtable td.fielddoc {
-        border-bottom: 1px solid #A8B8D9;
-        width: 100%;
-}
-
-.fieldtable tr:last-child td {
-        border-bottom: none;
-}
-
-.fieldtable th {
-        background-image:url('nav_f.png');
-        background-repeat:repeat-x;
-        background-color: #E2E8F2;
-        font-size: 90%;
-        color: #253555;
-        padding-bottom: 4px;
-        padding-top: 5px;
-        text-align:left;
-        -moz-border-radius-topleft: 4px;
-        -moz-border-radius-topright: 4px;
-        -webkit-border-top-left-radius: 4px;
-        -webkit-border-top-right-radius: 4px;
-        border-top-left-radius: 4px;
-        border-top-right-radius: 4px;
-        border-bottom: 1px solid #A8B8D9;
-}
-
-
-.tabsearch {
-	top: 0px;
-	left: 10px;
-	height: 36px;
-	background-image: url('tab_b.png');
-	z-index: 101;
-	overflow: hidden;
-	font-size: 13px;
-}
-
-.navpath ul
-{
-	font-size: 11px;
-	background-image:url('tab_b.png');
-	background-repeat:repeat-x;
-	height:30px;
-	line-height:30px;
-	color:#8AA0CC;
-	border:solid 1px #C2CDE4;
-	overflow:hidden;
-	margin:0px;
-	padding:0px;
-}
-
-.navpath li
-{
-	list-style-type:none;
-	float:left;
-	padding-left:10px;
-	padding-right:15px;
-	background-image:url('bc_s.png');
-	background-repeat:no-repeat;
-	background-position:right;
-	color:#364D7C;
-}
-
-.navpath li.navelem a
-{
-	height:32px;
-	display:block;
-	text-decoration: none;
-	outline: none;
-}
-
-.navpath li.navelem a:hover
-{
-	color:#6884BD;
-}
-
-.navpath li.footer
-{
-        list-style-type:none;
-        float:right;
-        padding-left:10px;
-        padding-right:15px;
-        background-image:none;
-        background-repeat:no-repeat;
-        background-position:right;
-        color:#364D7C;
-        font-size: 8pt;
-}
-
-
-div.summary
-{
-	float: right;
-	font-size: 8pt;
-	padding-right: 5px;
-	width: 50%;
-	text-align: right;
-}       
-
-div.summary a
-{
-	white-space: nowrap;
-}
-
-div.ingroups
-{
-	font-size: 8pt;
-	width: 50%;
-	text-align: left;
-}
-
-div.ingroups a
-{
-	white-space: nowrap;
-}
-
-div.header
-{
-        background-image:url('nav_h.png');
-        background-repeat:repeat-x;
-	background-color: #F9FAFC;
-	margin:  0px;
-	border-bottom: 1px solid #C4CFE5;
-}
-
-div.headertitle
-{
-	padding: 5px 5px 5px 7px;
-}
-
-dl
-{
-        padding: 0 0 0 10px;
-}
-
-/* dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug */
-dl.section
-{
-	margin-left: 0px;
-	padding-left: 0px;
-}
-
-dl.note
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #D0C000;
-}
-
-dl.warning, dl.attention
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #FF0000;
-}
-
-dl.pre, dl.post, dl.invariant
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #00D000;
-}
-
-dl.deprecated
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #505050;
-}
-
-dl.todo
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #00C0E0;
-}
-
-dl.test
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #3030E0;
-}
-
-dl.bug
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #C08050;
-}
-
-dl.section dd {
-	margin-bottom: 6px;
-}
-
-
-#projectlogo
-{
-	text-align: center;
-	vertical-align: bottom;
-	border-collapse: separate;
-}
- 
-#projectlogo img
-{ 
-	border: 0px none;
-}
- 
-#projectname
-{
-	font: 300% Tahoma, Arial,sans-serif;
-	margin: 0px;
-	padding: 2px 0px;
-}
-    
-#projectbrief
-{
-	font: 120% Tahoma, Arial,sans-serif;
-	margin: 0px;
-	padding: 0px;
-}
-
-#projectnumber
-{
-	font: 50% Tahoma, Arial,sans-serif;
-	margin: 0px;
-	padding: 0px;
-}
-
-#titlearea
-{
-	padding: 0px;
-	margin: 0px;
-	width: 100%;
-	border-bottom: 1px solid #5373B4;
-}
-
-.image
-{
-        text-align: center;
-}
-
-.dotgraph
-{
-        text-align: center;
-}
-
-.mscgraph
-{
-        text-align: center;
-}
-
-.caption
-{
-	font-weight: bold;
-}
-
-div.zoom
-{
-	border: 1px solid #90A5CE;
-}
-
-dl.citelist {
-        margin-bottom:50px;
-}
-
-dl.citelist dt {
-        color:#334975;
-        float:left;
-        font-weight:bold;
-        margin-right:10px;
-        padding:5px;
-}
-
-dl.citelist dd {
-        margin:2px 0;
-        padding:5px 0;
-}
-
-div.toc {
-        padding: 14px 25px;
-        background-color: #F4F6FA;
-        border: 1px solid #D8DFEE;
-        border-radius: 7px 7px 7px 7px;
-        float: right;
-        height: auto;
-        margin: 0 20px 10px 10px;
-        width: 200px;
-}
-
-div.toc li {
-        background: url("bdwn.png") no-repeat scroll 0 5px transparent;
-        font: 10px/1.2 Verdana,DejaVu Sans,Geneva,sans-serif;
-        margin-top: 5px;
-        padding-left: 10px;
-        padding-top: 2px;
-}
-
-div.toc h3 {
-        font: bold 12px/1.2 Arial,FreeSans,sans-serif;
-	color: #4665A2;
-        border-bottom: 0 none;
-        margin: 0;
-}
-
-div.toc ul {
-        list-style: none outside none;
-        border: medium none;
-        padding: 0px;
-}       
-
-div.toc li.level1 {
-        margin-left: 0px;
-}
-
-div.toc li.level2 {
-        margin-left: 15px;
-}
-
-div.toc li.level3 {
-        margin-left: 30px;
-}
-
-div.toc li.level4 {
-        margin-left: 45px;
-}
-
-.inherit_header {
-        font-weight: bold;
-        color: gray;
-        cursor: pointer;
-	-webkit-touch-callout: none;
-	-webkit-user-select: none;
-	-khtml-user-select: none;
-	-moz-user-select: none;
-	-ms-user-select: none;
-	user-select: none;
-}
-
-.inherit_header td {
-        padding: 6px 0px 2px 5px;
-}
-
-.inherit {
-        display: none;
-}
-
-tr.heading h2 {
-        margin-top: 12px;
-        margin-bottom: 4px;
-}
-
- at media print
-{
-  #top { display: none; }
-  #side-nav { display: none; }
-  #nav-path { display: none; }
-  body { overflow:visible; }
-  h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
-  .summary { display: none; }
-  .memitem { page-break-inside: avoid; }
-  #doc-content
-  {
-    margin-left:0 !important;
-    height:auto !important;
-    width:auto !important;
-    overflow:inherit;
-    display:inline;
-  }
-}
-
diff --git a/html/doxygen.png b/html/doxygen.png
deleted file mode 100644
index 3ff17d8..0000000
Binary files a/html/doxygen.png and /dev/null differ
diff --git a/html/dynsections.js b/html/dynsections.js
deleted file mode 100644
index 116542f..0000000
--- a/html/dynsections.js
+++ /dev/null
@@ -1,78 +0,0 @@
-function toggleVisibility(linkObj)
-{
- var base = $(linkObj).attr('id');
- var summary = $('#'+base+'-summary');
- var content = $('#'+base+'-content');
- var trigger = $('#'+base+'-trigger');
- var src=$(trigger).attr('src');
- if (content.is(':visible')===true) {
-   content.hide();
-   summary.show();
-   $(linkObj).addClass('closed').removeClass('opened');
-   $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');
- } else {
-   content.show();
-   summary.hide();
-   $(linkObj).removeClass('closed').addClass('opened');
-   $(trigger).attr('src',src.substring(0,src.length-10)+'open.png');
- } 
- return false;
-}
-
-function updateStripes()
-{
-  $('table.directory tr').
-       removeClass('even').filter(':visible:even').addClass('even');
-}
-function toggleLevel(level)
-{
-  $('table.directory tr').each(function(){ 
-    var l = this.id.split('_').length-1;
-    var i = $('#img'+this.id.substring(3));
-    var a = $('#arr'+this.id.substring(3));
-    if (l<level+1) {
-      i.attr('src','ftv2folderopen.png');
-      a.attr('src','ftv2mnode.png');
-      $(this).show();
-    } else if (l==level+1) {
-      i.attr('src','ftv2folderclosed.png');
-      a.attr('src','ftv2pnode.png');
-      $(this).show();
-    } else {
-      $(this).hide();
-    }
-  });
-  updateStripes();
-}
-function toggleFolder(id) 
-{
-  var n = $('[id^=row_'+id+']');
-  var i = $('[id^=img_'+id+']');
-  var a = $('[id^=arr_'+id+']');
-  var c = n.slice(1);
-  if (c.filter(':first').is(':visible')===true) {
-    i.attr('src','ftv2folderclosed.png');
-    a.attr('src','ftv2pnode.png');
-    c.hide();
-  } else {
-    i.attr('src','ftv2folderopen.png');
-    a.attr('src','ftv2mnode.png');
-    c.show();
-  }
-  updateStripes();
-}
-
-function toggleInherit(id)
-{
-  var rows = $('tr.inherit.'+id);
-  var img = $('tr.inherit_header.'+id+' img');
-  var src = $(img).attr('src');
-  if (rows.filter(':first').is(':visible')===true) {
-    rows.css('display','none');
-    $(img).attr('src',src.substring(0,src.length-8)+'closed.png');
-  } else {
-    rows.css('display','table-row'); // using show() causes jump in firefox
-    $(img).attr('src',src.substring(0,src.length-10)+'open.png');
-  }
-}
-
diff --git a/html/files.html b/html/files.html
deleted file mode 100644
index 8a8374e..0000000
--- a/html/files.html
+++ /dev/null
@@ -1,302 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: File List</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li class="current"><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">File List</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="textblock">Here is a list of all documented files with brief descriptions:</div><div class="directory">
-<table class="directory">
-<tr id="row_0_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="cpl__propertylist-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>cpl_propertylist-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_1_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__cal__mkmaster_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_cal_mkmaster.c</b></td><td class="desc"></td></tr>
-<tr id="row_2_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__cal__orderpos_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_cal_orderpos.c</b></td><td class="desc"></td></tr>
-<tr id="row_3_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__cal__predict_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_cal_predict.c</b></td><td class="desc"></td></tr>
-<tr id="row_4_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__cal__prep__sff__ofpos_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_cal_prep_sff_ofpos.c</b></td><td class="desc"></td></tr>
-<tr id="row_5_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__cal__wavecal_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_cal_wavecal.c</b></td><td class="desc"></td></tr>
-<tr id="row_6_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__corvel_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_corvel.c</b></td><td class="desc"></td></tr>
-<tr id="row_7_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__corvel_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_corvel.h</b></td><td class="desc"></td></tr>
-<tr id="row_8_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__extract_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_extract.c</b></td><td class="desc"></td></tr>
-<tr id="row_9_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__fillordtab_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_fillordtab.c</b></td><td class="desc"></td></tr>
-<tr id="row_10_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__mes__slitff__size_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_mes_slitff_size.c</b></td><td class="desc"></td></tr>
-<tr id="row_11_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__midas__def_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_midas_def.c</b></td><td class="desc"></td></tr>
-<tr id="row_12_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__midas__def_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_midas_def.h</b></td><td class="desc"></td></tr>
-<tr id="row_13_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__newmatrix_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_newmatrix.c</b></td><td class="desc"></td></tr>
-<tr id="row_14_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__newmatrix_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_newmatrix.h</b></td><td class="desc"></td></tr>
-<tr id="row_15_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__obs__redchain_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_obs_redchain.c</b></td><td class="desc"></td></tr>
-<tr id="row_16_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__obs__scired_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_obs_scired.c</b></td><td class="desc"></td></tr>
-<tr id="row_17_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__prepbkg_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_prepbkg.c</b></td><td class="desc"></td></tr>
-<tr id="row_18_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__prepfibreff_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_prepfibreff.c</b></td><td class="desc"></td></tr>
-<tr id="row_19_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__prepnorm_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_prepnorm.c</b></td><td class="desc"></td></tr>
-<tr id="row_20_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__preppa_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_preppa.c</b></td><td class="desc"></td></tr>
-<tr id="row_21_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__prepslitff_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_prepslitff.c</b></td><td class="desc"></td></tr>
-<tr id="row_22_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__recipe_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_recipe.c</b></td><td class="desc"></td></tr>
-<tr id="row_23_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__reduce__vcorrel_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_reduce_vcorrel.c</b></td><td class="desc"></td></tr>
-<tr id="row_24_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__reduce__vcorrel_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_reduce_vcorrel.h</b></td><td class="desc"></td></tr>
-<tr id="row_25_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="flames__utl__unpack_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>flames_utl_unpack.c</b></td><td class="desc"></td></tr>
-<tr id="row_26_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__calib_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_calib.c</b></td><td class="desc"></td></tr>
-<tr id="row_27_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__calib_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_calib.h</b></td><td class="desc"></td></tr>
-<tr id="row_28_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__cat-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_cat-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_29_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__cat_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_cat.c</b></td><td class="desc"></td></tr>
-<tr id="row_30_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__cat_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_cat.h</b></td><td class="desc"></td></tr>
-<tr id="row_31_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__distortion_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_distortion.c</b></td><td class="desc"></td></tr>
-<tr id="row_32_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__distortion_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_distortion.h</b></td><td class="desc"></td></tr>
-<tr id="row_33_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__flat_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_flat.c</b></td><td class="desc"></td></tr>
-<tr id="row_34_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__flat_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_flat.h</b></td><td class="desc"></td></tr>
-<tr id="row_35_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__framelist-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_framelist-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_36_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__framelist_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_framelist.c</b></td><td class="desc"></td></tr>
-<tr id="row_37_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__framelist_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_framelist.h</b></td><td class="desc"></td></tr>
-<tr id="row_38_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__hist-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_hist-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_39_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__hist_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_hist.c</b></td><td class="desc"></td></tr>
-<tr id="row_40_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__hist_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_hist.h</b></td><td class="desc"></td></tr>
-<tr id="row_41_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__ksigma__clip_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_ksigma_clip.c</b></td><td class="desc"></td></tr>
-<tr id="row_42_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__ksigma__clip_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_ksigma_clip.h</b></td><td class="desc"></td></tr>
-<tr id="row_43_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__ksigma__clip__body_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_ksigma_clip_body.h</b></td><td class="desc"></td></tr>
-<tr id="row_44_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__match__cats-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_match_cats-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_45_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__match__cats_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_match_cats.c</b></td><td class="desc"></td></tr>
-<tr id="row_46_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__match__cats_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_match_cats.h</b></td><td class="desc"></td></tr>
-<tr id="row_47_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__mkmaster_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_mkmaster.c</b></td><td class="desc"></td></tr>
-<tr id="row_48_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__mkmaster_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_mkmaster.h</b></td><td class="desc"></td></tr>
-<tr id="row_49_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__oddeven_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_oddeven.c</b></td><td class="desc"></td></tr>
-<tr id="row_50_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__oddeven_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_oddeven.h</b></td><td class="desc"></td></tr>
-<tr id="row_51_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__plugin-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_plugin-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_52_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__plugin_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_plugin.c</b></td><td class="desc"></td></tr>
-<tr id="row_53_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__plugin_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_plugin.h</b></td><td class="desc"></td></tr>
-<tr id="row_54_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__polynomial-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_polynomial-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_55_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__polynomial_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_polynomial.c</b></td><td class="desc"></td></tr>
-<tr id="row_56_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__polynomial_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_polynomial.h</b></td><td class="desc"></td></tr>
-<tr id="row_57_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__ppm_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_ppm.c</b></td><td class="desc"></td></tr>
-<tr id="row_58_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__ppm_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_ppm.h</b></td><td class="desc"></td></tr>
-<tr id="row_59_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__slitpos_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_slitpos.c</b></td><td class="desc"></td></tr>
-<tr id="row_60_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__slitpos_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_slitpos.h</b></td><td class="desc"></td></tr>
-<tr id="row_61_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__spectrum_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_spectrum.c</b></td><td class="desc"></td></tr>
-<tr id="row_62_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__spectrum_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_spectrum.h</b></td><td class="desc"></td></tr>
-<tr id="row_63_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__stdstar_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_stdstar.c</b></td><td class="desc"></td></tr>
-<tr id="row_64_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__stdstar_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_stdstar.h</b></td><td class="desc"></td></tr>
-<tr id="row_65_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__strehl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_strehl.c</b></td><td class="desc"></td></tr>
-<tr id="row_66_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__strehl_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_strehl.h</b></td><td class="desc"></td></tr>
-<tr id="row_67_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__utils-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_utils-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_68_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__utils_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_utils.c</b></td><td class="desc"></td></tr>
-<tr id="row_69_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__utils_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_utils.h</b></td><td class="desc"></td></tr>
-<tr id="row_70_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__wavecal_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_wavecal.c</b></td><td class="desc"></td></tr>
-<tr id="row_71_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__wavecal_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_wavecal.h</b></td><td class="desc"></td></tr>
-<tr id="row_72_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__wavecal__impl_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_wavecal_impl.h</b></td><td class="desc"></td></tr>
-<tr id="row_73_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__wcs-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_wcs-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_74_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__wcs_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_wcs.c</b></td><td class="desc"></td></tr>
-<tr id="row_75_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__wcs_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_wcs.h</b></td><td class="desc"></td></tr>
-<tr id="row_76_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__wlxcorr-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_wlxcorr-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_77_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__wlxcorr_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_wlxcorr.c</b></td><td class="desc"></td></tr>
-<tr id="row_78_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="irplib__wlxcorr_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>irplib_wlxcorr.h</b></td><td class="desc"></td></tr>
-<tr id="row_79_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="recipe__main_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>recipe_main.c</b></td><td class="desc"></td></tr>
-<tr id="row_80_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_81_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves.h</b></td><td class="desc"></td></tr>
-<tr id="row_82_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__backsub_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_backsub.c</b></td><td class="desc"></td></tr>
-<tr id="row_83_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__backsub_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_backsub.h</b></td><td class="desc"></td></tr>
-<tr id="row_84_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__baryvel_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_baryvel.c</b></td><td class="desc"></td></tr>
-<tr id="row_85_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__baryvel_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_baryvel.h</b></td><td class="desc"></td></tr>
-<tr id="row_86_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__cal__cd__align_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_cal_cd_align.c</b></td><td class="desc"></td></tr>
-<tr id="row_87_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__cal__mkmaster_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_cal_mkmaster.c</b></td><td class="desc"></td></tr>
-<tr id="row_88_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__cal__mkmaster__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_cal_mkmaster_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_89_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__cd__align-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_cd_align-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_90_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__cd__align__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_cd_align_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_91_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__cd__align__impl_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_cd_align_impl.h</b></td><td class="desc"></td></tr>
-<tr id="row_92_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__chip_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_chip.c</b></td><td class="desc"></td></tr>
-<tr id="row_93_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__chip_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_chip.h</b></td><td class="desc"></td></tr>
-<tr id="row_94_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__chip__type_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_chip_type.c</b></td><td class="desc"></td></tr>
-<tr id="row_95_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__chip__type_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_chip_type.h</b></td><td class="desc"></td></tr>
-<tr id="row_96_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__corrbadpix-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_corrbadpix-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_97_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__corrbadpix_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_corrbadpix.c</b></td><td class="desc"></td></tr>
-<tr id="row_98_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__corrbadpix_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_corrbadpix.h</b></td><td class="desc"></td></tr>
-<tr id="row_99_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__cpl__size_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_cpl_size.h</b></td><td class="desc"></td></tr>
-<tr id="row_100_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__deque_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_deque.c</b></td><td class="desc"></td></tr>
-<tr id="row_101_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__deque_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_deque.h</b></td><td class="desc"></td></tr>
-<tr id="row_102_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__dfs-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_dfs-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_103_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__dfs_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_dfs.c</b></td><td class="desc"></td></tr>
-<tr id="row_104_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__dfs_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_dfs.h</b></td><td class="desc"></td></tr>
-<tr id="row_105_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__dump_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_dump.c</b></td><td class="desc"></td></tr>
-<tr id="row_106_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__dump_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_dump.h</b></td><td class="desc"></td></tr>
-<tr id="row_107_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__error_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_error.h</b></td><td class="desc"></td></tr>
-<tr id="row_108_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__extract-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_extract-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_109_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__extract_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_extract.c</b></td><td class="desc"></td></tr>
-<tr id="row_110_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__extract_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_extract.h</b></td><td class="desc"></td></tr>
-<tr id="row_111_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__extract__iterate_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_extract_iterate.c</b></td><td class="desc"></td></tr>
-<tr id="row_112_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__extract__iterate_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_extract_iterate.h</b></td><td class="desc"></td></tr>
-<tr id="row_113_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__extract__profile_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_extract_profile.c</b></td><td class="desc"></td></tr>
-<tr id="row_114_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__extract__profile_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_extract_profile.h</b></td><td class="desc"></td></tr>
-<tr id="row_115_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__flatfield_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_flatfield.c</b></td><td class="desc"></td></tr>
-<tr id="row_116_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__flatfield_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_flatfield.h</b></td><td class="desc"></td></tr>
-<tr id="row_117_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__globals_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_globals.h</b></td><td class="desc"></td></tr>
-<tr id="row_118_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__mbias_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_mbias.c</b></td><td class="desc"></td></tr>
-<tr id="row_119_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__mbias__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_mbias_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_120_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__mbias__impl_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_mbias_impl.h</b></td><td class="desc"></td></tr>
-<tr id="row_121_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__mdark_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_mdark.c</b></td><td class="desc"></td></tr>
-<tr id="row_122_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__mdark__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_mdark_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_123_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__mdark__impl_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_mdark_impl.h</b></td><td class="desc"></td></tr>
-<tr id="row_124_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__merge_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_merge.c</b></td><td class="desc"></td></tr>
-<tr id="row_125_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__merge_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_merge.h</b></td><td class="desc"></td></tr>
-<tr id="row_126_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__mflat_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_mflat.c</b></td><td class="desc"></td></tr>
-<tr id="row_127_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__mflat__combine_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_mflat_combine.c</b></td><td class="desc"></td></tr>
-<tr id="row_128_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__mflat__combine__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_mflat_combine_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_129_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__mflat__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_mflat_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_130_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__msg_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_msg.c</b></td><td class="desc"></td></tr>
-<tr id="row_131_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__msg_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_msg.h</b></td><td class="desc"></td></tr>
-<tr id="row_132_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__obs__spatred__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_obs_spatred_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_133_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__orderpos_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_orderpos.c</b></td><td class="desc"></td></tr>
-<tr id="row_134_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__orderpos__body_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_orderpos_body.c</b></td><td class="desc"></td></tr>
-<tr id="row_135_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__orderpos__body_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_orderpos_body.h</b></td><td class="desc"></td></tr>
-<tr id="row_136_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__orderpos__follow_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_orderpos_follow.c</b></td><td class="desc"></td></tr>
-<tr id="row_137_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__orderpos__follow_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_orderpos_follow.h</b></td><td class="desc"></td></tr>
-<tr id="row_138_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__orderpos__hough_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_orderpos_hough.c</b></td><td class="desc"></td></tr>
-<tr id="row_139_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__orderpos__hough_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_orderpos_hough.h</b></td><td class="desc"></td></tr>
-<tr id="row_140_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__orderpos__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_orderpos_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_141_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__parameters_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_parameters.c</b></td><td class="desc"></td></tr>
-<tr id="row_142_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__parameters_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_parameters.h</b></td><td class="desc"></td></tr>
-<tr id="row_143_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__pfits_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_pfits.c</b></td><td class="desc"></td></tr>
-<tr id="row_144_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__pfits_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_pfits.h</b></td><td class="desc"></td></tr>
-<tr id="row_145_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod.c</b></td><td class="desc"></td></tr>
-<tr id="row_146_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__body_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_body.c</b></td><td class="desc"></td></tr>
-<tr id="row_147_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__body_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_body.h</b></td><td class="desc"></td></tr>
-<tr id="row_148_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__calmap_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_calmap.c</b></td><td class="desc"></td></tr>
-<tr id="row_149_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__calmap_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_calmap.h</b></td><td class="desc"></td></tr>
-<tr id="row_150_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__center__gauss_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_center_gauss.c</b></td><td class="desc"></td></tr>
-<tr id="row_151_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__center__gauss_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_center_gauss.h</b></td><td class="desc"></td></tr>
-<tr id="row_152_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__chop__otab_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_chop_otab.c</b></td><td class="desc"></td></tr>
-<tr id="row_153_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__chop__otab_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_chop_otab.h</b></td><td class="desc"></td></tr>
-<tr id="row_154_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__create__table_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_create_table.c</b></td><td class="desc"></td></tr>
-<tr id="row_155_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__create__table_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_create_table.h</b></td><td class="desc"></td></tr>
-<tr id="row_156_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__cstacen_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_cstacen.c</b></td><td class="desc"></td></tr>
-<tr id="row_157_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__cstacen_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_cstacen.h</b></td><td class="desc"></td></tr>
-<tr id="row_158_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_159_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__msrawxy_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_msrawxy.c</b></td><td class="desc"></td></tr>
-<tr id="row_160_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__msrawxy_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_msrawxy.h</b></td><td class="desc"></td></tr>
-<tr id="row_161_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__necregr_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_necregr.c</b></td><td class="desc"></td></tr>
-<tr id="row_162_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__necregr_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_necregr.h</b></td><td class="desc"></td></tr>
-<tr id="row_163_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__plotmod_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_plotmod.c</b></td><td class="desc"></td></tr>
-<tr id="row_164_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__plotmod_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_plotmod.h</b></td><td class="desc"></td></tr>
-<tr id="row_165_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__qc1pmtbl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_qc1pmtbl.c</b></td><td class="desc"></td></tr>
-<tr id="row_166_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__qc1pmtbl_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_qc1pmtbl.h</b></td><td class="desc"></td></tr>
-<tr id="row_167_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__regress__echelle_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_regress_echelle.c</b></td><td class="desc"></td></tr>
-<tr id="row_168_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__regress__echelle_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_regress_echelle.h</b></td><td class="desc"></td></tr>
-<tr id="row_169_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__stability__check_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_stability_check.c</b></td><td class="desc"></td></tr>
-<tr id="row_170_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__stability__check_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_stability_check.h</b></td><td class="desc"></td></tr>
-<tr id="row_171_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__utils_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_utils.c</b></td><td class="desc"></td></tr>
-<tr id="row_172_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__physmod__utils_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_physmod_utils.h</b></td><td class="desc"></td></tr>
-<tr id="row_173_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__plot_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_plot.c</b></td><td class="desc"></td></tr>
-<tr id="row_174_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__plot_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_plot.h</b></td><td class="desc"></td></tr>
-<tr id="row_175_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__plugin_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_plugin.h</b></td><td class="desc"></td></tr>
-<tr id="row_176_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__polynomial-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_polynomial-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_177_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__propertylist-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_propertylist-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_178_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__propertylist_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_propertylist.c</b></td><td class="desc"></td></tr>
-<tr id="row_179_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__propertylist_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_propertylist.h</b></td><td class="desc"></td></tr>
-<tr id="row_180_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__qclog-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_qclog-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_181_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__qclog_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_qclog.c</b></td><td class="desc"></td></tr>
-<tr id="row_182_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__qclog_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_qclog.h</b></td><td class="desc"></td></tr>
-<tr id="row_183_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__rebin_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_rebin.c</b></td><td class="desc"></td></tr>
-<tr id="row_184_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__rebin_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_rebin.h</b></td><td class="desc"></td></tr>
-<tr id="row_185_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__recipe_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_recipe.c</b></td><td class="desc"></td></tr>
-<tr id="row_186_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__recipe_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_recipe.h</b></td><td class="desc"></td></tr>
-<tr id="row_187_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__redchain_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_redchain.c</b></td><td class="desc"></td></tr>
-<tr id="row_188_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__redchain__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_redchain_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_189_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__reduce_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_reduce.c</b></td><td class="desc"></td></tr>
-<tr id="row_190_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__reduce_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_reduce.h</b></td><td class="desc"></td></tr>
-<tr id="row_191_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__reduce__mflat_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_reduce_mflat.c</b></td><td class="desc"></td></tr>
-<tr id="row_192_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__reduce__mflat_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_reduce_mflat.h</b></td><td class="desc"></td></tr>
-<tr id="row_193_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__reduce__mflat__combine_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_reduce_mflat_combine.c</b></td><td class="desc"></td></tr>
-<tr id="row_194_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__reduce__mflat__combine_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_reduce_mflat_combine.h</b></td><td class="desc"></td></tr>
-<tr id="row_195_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__reduce__scired_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_reduce_scired.c</b></td><td class="desc"></td></tr>
-<tr id="row_196_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__reduce__scired_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_reduce_scired.h</b></td><td class="desc"></td></tr>
-<tr id="row_197_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__reduce__utils_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_reduce_utils.c</b></td><td class="desc"></td></tr>
-<tr id="row_198_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__reduce__utils_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_reduce_utils.h</b></td><td class="desc"></td></tr>
-<tr id="row_199_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__remove__crh__single_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_remove_crh_single.c</b></td><td class="desc"></td></tr>
-<tr id="row_200_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__remove__crh__single_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_remove_crh_single.h</b></td><td class="desc"></td></tr>
-<tr id="row_201_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__response-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_response-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_202_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__response_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_response.c</b></td><td class="desc"></td></tr>
-<tr id="row_203_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__response__efficiency_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_response_efficiency.c</b></td><td class="desc"></td></tr>
-<tr id="row_204_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__response__efficiency_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_response_efficiency.h</b></td><td class="desc"></td></tr>
-<tr id="row_205_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__response__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_response_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_206_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__response__utils_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_response_utils.c</b></td><td class="desc"></td></tr>
-<tr id="row_207_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__response__utils_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_response_utils.h</b></td><td class="desc"></td></tr>
-<tr id="row_208_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__scired_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_scired.c</b></td><td class="desc"></td></tr>
-<tr id="row_209_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__scired__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_scired_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_210_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__test__simulate_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_test_simulate.c</b></td><td class="desc"></td></tr>
-<tr id="row_211_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__test__simulate_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_test_simulate.h</b></td><td class="desc"></td></tr>
-<tr id="row_212_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__tflat_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_tflat.c</b></td><td class="desc"></td></tr>
-<tr id="row_213_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__tflat__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_tflat_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_214_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__time_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_time.c</b></td><td class="desc"></td></tr>
-<tr id="row_215_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__time_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_time.h</b></td><td class="desc"></td></tr>
-<tr id="row_216_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utils-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utils-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_217_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utils_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utils.c</b></td><td class="desc"></td></tr>
-<tr id="row_218_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utils_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utils.h</b></td><td class="desc"></td></tr>
-<tr id="row_219_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utils__cpl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utils_cpl.c</b></td><td class="desc"></td></tr>
-<tr id="row_220_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utils__cpl_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utils_cpl.h</b></td><td class="desc"></td></tr>
-<tr id="row_221_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utils__polynomial_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utils_polynomial.c</b></td><td class="desc"></td></tr>
-<tr id="row_222_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utils__polynomial_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utils_polynomial.h</b></td><td class="desc"></td></tr>
-<tr id="row_223_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utils__wrappers_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utils_wrappers.c</b></td><td class="desc"></td></tr>
-<tr id="row_224_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utils__wrappers_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utils_wrappers.h</b></td><td class="desc"></td></tr>
-<tr id="row_225_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utl__ima__arith_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utl_ima_arith.c</b></td><td class="desc"></td></tr>
-<tr id="row_226_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utl__physmod_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utl_physmod.c</b></td><td class="desc"></td></tr>
-<tr id="row_227_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utl__rcosmic_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utl_rcosmic.c</b></td><td class="desc"></td></tr>
-<tr id="row_228_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__utl__remove__crh__single_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_utl_remove_crh_single.c</b></td><td class="desc"></td></tr>
-<tr id="row_229_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__wavecal-test_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal-test.c</b></td><td class="desc"></td></tr>
-<tr id="row_230_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__wavecal_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal.c</b></td><td class="desc"></td></tr>
-<tr id="row_231_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__wavecal__body_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal_body.c</b></td><td class="desc"></td></tr>
-<tr id="row_232_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__wavecal__body_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal_body.h</b></td><td class="desc"></td></tr>
-<tr id="row_233_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__wavecal__firstsolution_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal_firstsolution.c</b></td><td class="desc"></td></tr>
-<tr id="row_234_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__wavecal__firstsolution_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal_firstsolution.h</b></td><td class="desc"></td></tr>
-<tr id="row_235_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__wavecal__identify_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal_identify.c</b></td><td class="desc"></td></tr>
-<tr id="row_236_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__wavecal__identify_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal_identify.h</b></td><td class="desc"></td></tr>
-<tr id="row_237_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__wavecal__impl_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal_impl.c</b></td><td class="desc"></td></tr>
-<tr id="row_238_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__wavecal__search_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal_search.c</b></td><td class="desc"></td></tr>
-<tr id="row_239_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__wavecal__search_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal_search.h</b></td><td class="desc"></td></tr>
-<tr id="row_240_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="uves__wavecal__utils_8c_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal_utils.c</b></td><td class="desc"></td></tr>
-<tr id="row_241_"><td class="entry"><img src="ftv2lastnode.png" alt="\" width="16" height="22" /><a href="uves__wavecal__utils_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>uves_wavecal_utils.h</b></td><td class="desc"></td></tr>
-</table>
-</div><!-- directory -->
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__cal__mkmaster_8c_source.html b/html/flames__cal__mkmaster_8c_source.html
deleted file mode 100644
index 8d75db3..0000000
--- a/html/flames__cal__mkmaster_8c_source.html
+++ /dev/null
@@ -1,145 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_cal_mkmaster.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_cal_mkmaster.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-10-24 09:29:10 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.1  2007/02/09 09:51:54  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added recipes</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.7  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor">#include <flames.h></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> {</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     {</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               <span class="stringliteral">"I am flames_cal_mkmaster version %d, but I am linking "</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>     }</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     <span class="keywordflow">return</span> flames_cal_mkmaster_get_info(list);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__cal__orderpos_8c_source.html b/html/flames__cal__orderpos_8c_source.html
deleted file mode 100644
index 2b4200c..0000000
--- a/html/flames__cal__orderpos_8c_source.html
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_cal_orderpos.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_cal_orderpos.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.7  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.1  2006/10/19 08:19:06  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added FLAMES flames_cal_orderpos template</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <flames.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <flames_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> {</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     {</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"I am flames_cal_orderpos version %d, but I am linking "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     }</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != flames_get_version_binary())</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     {</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>               <span class="stringliteral">"I am flames_cal_orderpos version %d, but I am linking "</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>               <span class="stringliteral">"against FLAMES library version %d. "</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>               UVES_BINARY_VERSION, flames_get_version_binary());</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     }</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="keywordflow">return</span> flames_cal_orderpos_get_info(list);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__cal__predict_8c_source.html b/html/flames__cal__predict_8c_source.html
deleted file mode 100644
index e6c4812..0000000
--- a/html/flames__cal__predict_8c_source.html
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_cal_predict.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_cal_predict.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.7  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.1  2006/10/19 08:19:06  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added FLAMES flames_cal_predict template</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <flames.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <flames_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> {</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     {</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"I am flames_cal_predict version %d, but I am linking "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     }</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != flames_get_version_binary())</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     {</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>               <span class="stringliteral">"I am flames_cal_predict version %d, but I am linking "</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>               <span class="stringliteral">"against FLAMES library version %d. "</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>               UVES_BINARY_VERSION, flames_get_version_binary());</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     }</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="keywordflow">return</span> flames_cal_predict_get_info(list);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__cal__prep__sff__ofpos_8c_source.html b/html/flames__cal__prep__sff__ofpos_8c_source.html
deleted file mode 100644
index 113fe75..0000000
--- a/html/flames__cal__prep__sff__ofpos_8c_source.html
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_cal_prep_sff_ofpos.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_cal_prep_sff_ofpos.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.9 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.8  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.1  2006/10/19 08:19:06  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added FLAMES flames_cal_prep_sff_ofpos template</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <flames.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <flames_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> {</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     {</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"I am flames_cal_prep_sff_ofpos version %d, but I am linking "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     }</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != flames_get_version_binary())</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     {</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>               <span class="stringliteral">"I am flames_cal_prep_sff_ofpos version %d, but I am linking "</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>               <span class="stringliteral">"against FLAMES library version %d. "</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>               UVES_BINARY_VERSION, flames_get_version_binary());</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     }</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="keywordflow">return</span> flames_cal_prep_sff_ofpos_get_info(list);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__cal__wavecal_8c_source.html b/html/flames__cal__wavecal_8c_source.html
deleted file mode 100644
index 2c5d44d..0000000
--- a/html/flames__cal__wavecal_8c_source.html
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_cal_wavecal.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_cal_wavecal.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.7  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.1  2006/10/19 08:19:06  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added FLAMES flames_cal_wavecal template</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <flames.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <flames_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> {</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     {</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"I am flames_cal_wavecal version %d, but I am linking "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     }</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != flames_get_version_binary())</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     {</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>               <span class="stringliteral">"I am flames_cal_wavecal version %d, but I am linking "</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>               <span class="stringliteral">"against FLAMES library version %d. "</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>               UVES_BINARY_VERSION, flames_get_version_binary());</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     }</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="keywordflow">return</span> flames_cal_wavecal_get_info(list);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__corvel_8c_source.html b/html/flames__corvel_8c_source.html
deleted file mode 100644
index 7c7b048..0000000
--- a/html/flames__corvel_8c_source.html
+++ /dev/null
@@ -1,1407 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_corvel.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_corvel.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* </span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">  ============================================================================</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">  flames_corvel:</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment">  Purpose: </span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment">  to cross correlate in velocity space a wavelength calibrated spectra with a </span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment">  reference mask to get eventual velocity shift of one with respect to the </span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment">  other.</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"></span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment">  This code implements the Geneva alghorithm as for HARPS. Information and </span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">  reference alghorithms where provided from Claudio Melo, ESO-Paranal.</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment">  ============================================================================</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> </div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/* </span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">  ----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment">  INCLUDES</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment">  ----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment">*/</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor"></span><span class="preprocessor">#include <flames_lfit.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <flames_midas_def.h></span>   <span class="comment">/* MIDAS environment interface functions */</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <flames_corvel.h></span>        <span class="comment">/* FLAMES-UVES functions */</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <flames_newmatrix.h></span>   <span class="comment">/* FLAMES-UVES functions for array manipolation */</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <uves_utils.h></span>         <span class="comment">/* M_PI */</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_msg.h></span>        </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <stdio.h></span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <math.h></span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <stdlib.h></span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment">/* </span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">  ----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">  LOCAL DEFINITIONS</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">  ----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">*/</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#define MAX_LEN 512</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span><span class="preprocessor">#define MAX_DIM 2</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor"></span><span class="preprocessor">#define MAX_ORD 4</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span><span class="preprocessor">#define MAX_PIX 10000</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor"></span><span class="preprocessor">#define MAX_DEG 4</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_SPEED_OF_LIGHT 299792.458 //is defined also in uves_utils.h</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">static void </span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">fpoly(double x,double p[],int np);</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment">static void </span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">get_mask(char*  tpl_name,double in_msk_wgt_min, double in_msk_hole_wid, </span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">         char* log_opt, double** msk_hole_width, double** msk_hole_center,</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">         double** msk_hole_wgt);</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> do_cor_vel(<span class="keywordtype">double</span>* wcal_sol,<span class="keywordtype">float</span>** sp_flux,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>            <span class="keywordtype">double</span>* rv_ccf,<span class="keywordtype">double</span>* msk_hole_siz, <span class="keywordtype">double</span>* msk_hole_cen,</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>            <span class="keywordtype">double</span>* msk_hole_wgt, <span class="keywordtype">double</span> bar_v,<span class="keywordtype">double</span> bar_v_max,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>            <span class="keywordtype">int</span> fit_type,<span class="keywordtype">int</span> in_ima_nrow,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>            <span class="keywordtype">int</span> in_msk_nrow,<span class="keywordtype">int</span> rv_ccf_size, <span class="keywordtype">double</span>* ccf,<span class="keywordtype">double</span>* ccf_max,</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>            <span class="keywordtype">double</span>* pix_passed_ord,<span class="keywordtype">int</span>* tot_line,<span class="keywordtype">double</span>* ll_range_ord,</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>            <span class="keywordtype">int</span> in_ima_id);</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> fit_ccf(<span class="keywordtype">double</span>* rv_ccf,<span class="keywordtype">double</span>* ccf_nor,<span class="keywordtype">int</span> type,<span class="keywordtype">double</span>* ccf_res,</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>         <span class="keywordtype">double</span>* ccf_fit);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment">/* void fgauss(double x,double g[],int ng); */</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">static double </span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">fgauss(double x,double a[],double y,double dyda[],int na);</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> gaussian_fit(<span class="keyword">const</span> <span class="keywordtype">double</span> *   xfit, <span class="keyword">const</span> <span class="keywordtype">double</span> * yfit,<span class="keywordtype">int</span> size,</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                     <span class="keywordtype">double</span> * norm, <span class="keywordtype">double</span> * xcen, <span class="keywordtype">double</span> * sig_x,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                     <span class="keywordtype">double</span> * fwhm_x); </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> correl_bin(<span class="keywordtype">int</span> sp_flux_sz, <span class="keywordtype">float</span>** sp_flux,<span class="keywordtype">double</span>* sp_ll,<span class="keywordtype">double</span>* sp_dll,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                   <span class="keywordtype">int</span> *in_msk_nrow,<span class="keywordtype">double</span>* msk_blu,<span class="keywordtype">double</span>* msk_red,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                   <span class="keywordtype">double</span>* msk_w, <span class="keywordtype">int</span>* i_blue_masques,<span class="keywordtype">int</span>* i_red_masques,</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>                   <span class="keywordtype">double</span>* intensity_s,<span class="keywordtype">double</span>* pix,<span class="keywordtype">double</span>* ll_range);</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> hunt(<span class="keywordtype">double</span>* xx, <span class="keywordtype">int</span> n, <span class="keywordtype">double</span> x, <span class="keywordtype">int</span> jlo);</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> do_ccf_f(<span class="keywordtype">double</span>* mask_ll,<span class="keywordtype">double</span>* mask_d,<span class="keywordtype">double</span>* mask_w,<span class="keywordtype">double</span>* sp_ll,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>          <span class="keywordtype">float</span>** sp_flux,<span class="keywordtype">double</span>* sp_dll,<span class="keywordtype">double</span>* rv_ccf,<span class="keywordtype">double</span>* ccf_o,</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>          <span class="keywordtype">double</span>* pix_passed_ord,<span class="keywordtype">double</span>* wcal_range_ord,<span class="keywordtype">int</span> in_msk_nrow, </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>          <span class="keywordtype">int</span> in_ima_ncol, <span class="keywordtype">int</span> rv_ccf_size, <span class="keywordtype">int</span> in_ima_id);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="keywordtype">int</span> flames_corvel(<span class="keyword">const</span> <span class="keywordtype">char</span> *IN_A,</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *IN_B,</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>                   <span class="keyword">const</span> <span class="keywordtype">int</span>  IN_N,</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *OU_A,</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *OU_B,</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *OU_C,</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> rv_ccf_min,</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> rv_ccf_max,</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> rv_ccf_step)</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> {</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>   <span class="keywordtype">char</span> in_ima[MAX_LEN];   <span class="comment">/* char array for input ima */</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>   <span class="keywordtype">char</span> ou_ima[MAX_LEN];   <span class="comment">/* char array for output ima */</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>   <span class="keywordtype">char</span> ou_tab[MAX_LEN];   <span class="comment">/* char array for output ima */</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>   <span class="keywordtype">char</span> in_msk[MAX_LEN];   <span class="comment">/* char array for input mask */</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>   <span class="comment">/* MIDAS stuff */</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>   <span class="keywordtype">int</span> midas_unit = 0;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>   <span class="keywordtype">int</span> midas_null = 0;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>   <span class="keywordtype">int</span> midas_nval = 0;</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>   <span class="keywordtype">int</span> midas_status = 0;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>   <span class="comment">/* tmp variable used in MIDAS env calls */</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>   <span class="keywordtype">int</span> in_ima_id =0;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>   <span class="keywordtype">int</span> ou_ima_id =0;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>   <span class="keywordtype">int</span> in_msk_id =0;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>   <span class="keywordtype">int</span> in_ima_naxis =0;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>   <span class="keywordtype">int</span> ou_ima_naxis =1;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>   <span class="keywordtype">int</span> ou_ima_npix[2] ={0,0};</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>   <span class="keywordtype">double</span> ou_ima_start[2] ={0.,0.};</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>   <span class="keywordtype">double</span> ou_ima_step[2] ={0.,0.};</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>   <span class="keywordtype">float</span> cuts[4]={0.,0.,0.,0.};</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>   <span class="keywordtype">int</span> tid=0;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>   <span class="keywordtype">int</span> ccf_pos_col=0;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>   <span class="keywordtype">int</span> ccf_nrm_col=0;</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>   <span class="keywordtype">int</span> ccf_out_col=0;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>   </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>   <span class="keywordtype">int</span> in_ima_npix[MAX_DIM];</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>   <span class="keywordtype">int</span> in_msk_ncol=0; </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>   <span class="keywordtype">int</span> in_msk_nrow=0;  </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>   <span class="keywordtype">char</span> ident[73];</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>   <span class="keywordtype">char</span> cunit[3][16];</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>   <span class="comment">/* Other useful variables */</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>   <span class="keywordtype">int</span> in_ima_nx = 0;      <span class="comment">/* No of columns */</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>   <span class="keywordtype">int</span> in_ima_ny = 0;      <span class="comment">/* No of rows */</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>   <span class="keywordtype">int</span> in_ima_ord=0;       <span class="comment">/* order number of input image */</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>   </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>   <span class="keywordtype">float</span> ** m_in_ima=NULL;     <span class="comment">/* input image array */</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>   <span class="keywordtype">double</span>* in_ima_wcal_sol=NULL;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   <span class="keywordtype">double</span>* msk_hole_sta=NULL;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>   <span class="keywordtype">double</span>* msk_hole_end=NULL;</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>   <span class="keywordtype">double</span>* msk_hole_cen=NULL;</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>   <span class="keywordtype">double</span>* msk_hole_siz=NULL;</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>   <span class="keywordtype">double</span>* msk_hole_wgt=NULL;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> </div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>   <span class="keywordtype">double</span>* msk_hole_cen_selw=NULL;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>   <span class="keywordtype">double</span>* msk_hole_siz_selw=NULL;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>   <span class="keywordtype">double</span>* msk_hole_wgt_selw=NULL;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>   </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>   <span class="keywordtype">double</span> in_msk_wgt_min=0.9;  <span class="comment">/*1 */</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>   <span class="keywordtype">double</span> in_msk_hole_wid=0.; <span class="comment">/*0 */</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>   <span class="keywordtype">double</span> tmp_double=0;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>   <span class="keywordtype">double</span> in_ima_wstart =0.;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>   <span class="keywordtype">double</span> in_ima_wstep  =0.;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>   <span class="keywordtype">double</span>* rv_ccf=NULL;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>   <span class="keywordtype">int</span> rv_ccf_size=0;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>   <span class="comment">//double rv_ccf_par[3] ={0.,0.,0.};</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>   <span class="keywordtype">int</span>    wstart_id=0;</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>   <span class="keywordtype">int</span>    wend_id=0;</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>   <span class="keywordtype">int</span>    weight_id=0;</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>   <span class="keywordtype">int</span> counter=0;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>   <span class="keywordtype">double</span>  tmp_dbl=0;</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>   <span class="keywordtype">double</span> ccf_max=0;</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>   <span class="keywordtype">double</span> ccf_avg=0;</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>   <span class="keywordtype">double</span>* ccf_nrm=NULL;</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>   <span class="keywordtype">double</span> pix_passed_ord=0;</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>   <span class="keywordtype">int</span> tot_line=0;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>   <span class="keywordtype">double</span> ll_range_ord=0;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>   <span class="keywordtype">double</span>* ccf_res=NULL;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>   <span class="keywordtype">double</span>* ccf_fit=NULL;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>   <span class="keywordtype">double</span>* ccf_o=NULL;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>   <span class="keywordtype">char</span> wstart_key[80];</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>   <span class="comment">/* Program's Id */</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>   SCSPRO(<span class="stringliteral">"flames_corvel"</span>);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>  </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>   memset(ident, <span class="charliteral">'\0'</span>, 73);</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>   memset(cunit[0], <span class="charliteral">'\0'</span>, 48);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>   strncpy(cunit[1], <span class="stringliteral">"PIXEL           "</span>, 16);</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>   strncpy(cunit[2], <span class="stringliteral">"PIXEL           "</span>, 16);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>   <span class="comment">/* GET INPUT DATA                                                   */</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>   <span class="comment">/* get input ima name */</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>   in_ima_ord=IN_N;</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>   <span class="keywordflow">if</span>((midas_status = SCKGETC(IN_A,1,MAX_LEN,&midas_nval,in_ima)) !=0) {</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>      <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Error reading char keyword %s"</span>,IN_A);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>      <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>   }</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>   <span class="comment">//sprintf(in_ima,IN_A);</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>   <span class="comment">/* get input ima order number */</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>   <span class="comment">//midas_status = SCKRDI(IN_N,1,1,&midas_nval,&in_ima_ord, </span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>   <span class="comment">//          &midas_unit, &midas_null);</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>   <span class="comment">/* Read 2D extracted input spectra */</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>   <span class="comment">/* get input ima frame */</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>   </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>   <span class="keywordflow">if</span>( (midas_status = SCFOPN(in_ima,D_R4_FORMAT,0,F_IMA_TYPE,&in_ima_id))!=0) {</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>      <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Error opening input image %s"</span>,IN_A);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>      <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>   }</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>   <span class="comment">/* get input ima dimension */</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>   <span class="keywordflow">if</span>((midas_status = SCDRDI(in_ima_id,<span class="stringliteral">"NAXIS"</span>,1,1,&midas_nval,</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>                             &in_ima_naxis,&midas_unit,&midas_null)) !=0)</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>   {</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>      <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Error reading NAXIS from image %s"</span>,IN_A);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>      <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>   } </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>   <span class="comment">/* get input ima no of columns and rows */</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>   <span class="keywordflow">if</span>((midas_status = SCDRDI(in_ima_id,<span class="stringliteral">"NPIX"</span>,1,in_ima_naxis,&midas_nval,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                             in_ima_npix,&midas_unit,&midas_null))!=0) {</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>      <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Error reading NPIX from image %s"</span>,IN_A);</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>      <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>   }</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>   <span class="keywordflow">if</span> (in_ima_naxis > 1) {</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>      in_ima_nx = in_ima_npix[0];</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>      in_ima_ny = in_ima_npix[1];</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>   }</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>   <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>      in_ima_nx = in_ima_npix[0];</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>      in_ima_ny = 1;            <span class="comment">/* input image is one extracted order */</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>   }</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>   <span class="comment">/* Prepare memory area to hold input image */</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>   m_in_ima = matrix(0, in_ima_ny-1, 0, in_ima_nx-1);</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>  </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>   memset(&m_in_ima[0][0], <span class="charliteral">'\0'</span>, in_ima_nx*in_ima_ny*<span class="keyword">sizeof</span>(<span class="keywordtype">float</span>));</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> </div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>   <span class="comment">/* get input ima in prepared area */</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>   <span class="keywordflow">if</span>((midas_status = SCFGET(in_ima_id,1,in_ima_nx*in_ima_ny,&midas_nval, </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                             (<span class="keywordtype">char</span> *)&m_in_ima[0][0])) != 0) {</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Error mapping image %s"</span>,IN_A);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>      <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>   }</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>   <span class="comment">/* PREPARE WCAL SOLUTION                                            */</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>   <span class="comment">/* get WSTART and WSTEP values to calculate array of wcal pix values</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="comment">     in_ima_wcal_sol stores the wavelength calibration solution */</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>   sprintf(wstart_key,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"WSTART"</span>,in_ima_ord);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>   <span class="keywordflow">if</span>((midas_status = SCDRDD(in_ima_id,wstart_key,1,1,</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                         &midas_nval,&tmp_double,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                             &midas_unit,&midas_null)) != 0) {</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>      <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Error reading %s from input image %s"</span>,wstart_key,IN_A);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>      <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>   }</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>   </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>  </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>   in_ima_wstart=(float)tmp_double;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>  </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>   <span class="keywordflow">if</span>((midas_status = SCDRDD(in_ima_id,<span class="stringliteral">"CDELT1"</span>,1,1,&midas_nval,&tmp_double,</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>                             &midas_unit,&midas_null))!=0) {</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>      <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Error reading CDELT1 from input image %s"</span>,IN_A);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>      <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>   }</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>  </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>   </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>   in_ima_wstep=(float)tmp_double;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>   in_ima_wcal_sol=dvector(0,in_ima_nx);</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>   <span class="keywordflow">for</span> (i=0; i< in_ima_nx; i++){</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     in_ima_wcal_sol[i]=(double)(in_ima_wstart+in_ima_wstep*i);</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>   }</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>   <span class="comment">/* get input mask table name */</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>   <span class="keywordflow">if</span>((midas_status = SCKGETC(IN_B,1,MAX_LEN,&midas_nval,in_msk))!=0) {</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>      <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Error reading input table %s"</span>,IN_B);</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>      <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>   }</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>   <span class="comment">/* GET INPUT MASK                                                   */</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>   <span class="comment">/*  </span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="comment">   The input mask is as follows. </span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <span class="comment">   First column tells you where the hole begins, </span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="comment">   The second one where the hole ends and the third is the weight of each hole</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="comment">   (this last value is important for the stellar case where one may want to </span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="comment">    give more importance to stellar lines of a given type)</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <span class="comment">   We get from the input mask the following parameters:</span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> <span class="comment">   1) the minimum weight of the holes of the mask used in the CCF </span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="comment">   2) the width of the holes </span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="comment">   3) the weight of the holes </span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="comment"></span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="comment">   After this operation the parameters which counts are:</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> <span class="comment">       msk_hole_siz_selw[i] </span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="comment">       msk_hole_cen_selw[i]  </span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> <span class="comment">       msk_hole_wgt_selw[i]  </span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="comment"></span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="comment">   in_msk_wgt_min=1;</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="comment">   in_msk_hole_wid=1.;</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="comment">   strcpy(log_opt," ");</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment"></span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="comment">   get_mask(in_msk,in_msk_wgt_min,in_msk_hole_wid,log_opt,</span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="comment">           &msk_hole_width,&msk_hole_center,&msk_hole_wgt);</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>   <span class="comment">/* get input mask table frame */</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>   <span class="keywordflow">if</span>((midas_status = TCTOPN(in_msk,F_I_MODE,&in_msk_id))!=0) {</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>      <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Error reading input mask %s"</span>,in_msk);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>      <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>   }</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>   TCIGET (in_msk_id, &in_msk_ncol, &in_msk_nrow);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>   <span class="comment">/* get input mask table column id */</span></div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>   <span class="keywordflow">if</span>((midas_status = TCCSER(in_msk_id,<span class="stringliteral">"WSTART"</span>,&wstart_id))!=0) {</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Error reading WSTART from input mask %s"</span>,in_msk);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>   }</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>   <span class="comment">/* get input mask table column id */</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>   <span class="keywordflow">if</span>((midas_status = TCCSER(in_msk_id,<span class="stringliteral">"WEND"</span>,&wend_id))!=0) {</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Error reading WEND from input mask %s"</span>,in_msk);</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>   }</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>   <span class="comment">/* get input mask table column id */</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>   <span class="keywordflow">if</span>((midas_status = TCCSER(in_msk_id,<span class="stringliteral">"WEIGHT"</span>,&weight_id))!=0) {</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Error reading WEIGHT from input mask %s"</span>,in_msk);</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>     <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>   }</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>   <span class="comment">/* Defines and initializes all necessary vectors */</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>   msk_hole_sta=dvector(0,in_msk_nrow);  </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>   msk_hole_end=dvector(0,in_msk_nrow);    </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>   msk_hole_siz=dvector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>   msk_hole_wgt=dvector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>   msk_hole_cen=dvector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>   <span class="comment">/* selected values...*/</span></div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>   msk_hole_siz_selw=dvector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>   msk_hole_wgt_selw=dvector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>   msk_hole_cen_selw=dvector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>   <span class="keywordflow">for</span>(i=1;i<in_msk_nrow;i++) {</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>      TCERDD(in_msk_id,i,wstart_id,&tmp_dbl,&midas_null); </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>      msk_hole_sta[i-1]=tmp_dbl;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>      TCERDD(in_msk_id,i,wend_id,&tmp_dbl,&midas_null);</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>      msk_hole_end[i-1]=tmp_dbl;</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>      TCERDD(in_msk_id,i,weight_id,&tmp_dbl,&midas_null);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>      msk_hole_wgt[i-1]=tmp_dbl;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>      msk_hole_siz[i-1]=msk_hole_end[i-1]-msk_hole_sta[i-1];</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>      msk_hole_cen[i-1]=msk_hole_sta[i-1]+msk_hole_siz[i-1]*0.5;</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>      <span class="comment">/*</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="comment">     uves_msg_debug("sta=%f end=%f wgt=%f siz=%f cen=%f",</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> <span class="comment">              msk_hole_sta[i-1],</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="comment">              msk_hole_end[i-1],</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> <span class="comment">              msk_hole_wgt[i-1],</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> <span class="comment">              msk_hole_siz[i-1],</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="comment">              msk_hole_cen[i-1]);</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>   }</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>   TCTCLO(in_msk_id);</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>   <span class="comment">/*ADAPTED*****/</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>   <span class="comment">/* </span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> <span class="comment">     If a fixed width is given as input parameter in_msk_hole_wid then</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> <span class="comment">     is calculated msk_hole_siz</span></div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> <span class="comment">     in_msk_hole_wid is the fixed width given in km/s</span></div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <span class="comment">     In our case in_msk_hole_wid=0 and the following if is not entered</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>   </div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>   <span class="keywordflow">if</span> (in_msk_hole_wid > 0) {</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>      <span class="keywordflow">for</span>(i=1;i<in_msk_nrow;i++) {</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>         msk_hole_siz[i-1]=</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>            in_msk_hole_wid*msk_hole_siz[i-1]/FLAMES_SPEED_OF_LIGHT;</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>      }</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>   }</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>   <span class="comment">/* selects mask on in_msk_wgt_min of force weight=1</span></div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> <span class="comment">     in our case in_msk_wgt_min =1 and the following if is not entered</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> <span class="comment">     is executed instead the else part</span></div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>   <span class="keywordflow">if</span> (in_msk_wgt_min < 1) {</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     <span class="comment">/* If a lower limit of the weight of the holes is specified as input </span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> <span class="comment">       parameter in_msk_wgt_min, then selects values of </span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> <span class="comment">       wsize,wcenter,weight</span></div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> <span class="comment">       If no condition is given keep the vectors intact</span></div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>      counter=0;</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>      <span class="keywordflow">for</span>(i=1;i<in_msk_nrow;i++) {</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>        <span class="keywordflow">if</span> (msk_hole_wgt[counter] > in_msk_wgt_min) {</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>           msk_hole_siz_selw[counter] = msk_hole_siz[i];  </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>           msk_hole_cen_selw[counter] = msk_hole_cen[i];  </div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>           msk_hole_wgt_selw[counter] = msk_hole_wgt[i]; </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>           counter++; </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>        }</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>      }</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>   }</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>   <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>      <span class="keywordflow">for</span>(i=1;i<in_msk_nrow;i++) {</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>        <span class="keywordflow">if</span> (msk_hole_wgt[i] > in_msk_wgt_min) {</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>           msk_hole_siz_selw[i] = msk_hole_siz[i];  </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>           msk_hole_cen_selw[i] = msk_hole_cen[i];  </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>           msk_hole_wgt_selw[i] = msk_hole_wgt[i]; </div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>        }</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>      }</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>   }</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>  </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>   <span class="comment">/* END GET INPUT MASK                                               */</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>   <span class="comment">/* COMPUTE CCF                                                      */</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>   <span class="comment">/* ================================================================ */</span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>   <span class="comment">/* we allocate memory and define the vector to be used to evaluate CCF */</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>   <span class="comment">/* this vector defines the points at which the CCF is computed */</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>   <span class="comment">//midas_status = SCKRDD(IN_C,1,3,&midas_nval,rv_ccf_par, </span></div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>   <span class="comment">//        &midas_unit, &midas_null);</span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>   rv_ccf_size=(int)((rv_ccf_max-rv_ccf_min)/rv_ccf_step+1);</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>   rv_ccf=dvector(0,rv_ccf_size);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>   ccf_o=dvector(0,rv_ccf_size);</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>  </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>   rv_ccf[0]=rv_ccf_min;</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>   <span class="keywordflow">for</span>(i=1;i<rv_ccf_size;i++){</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     rv_ccf[i]=rv_ccf[i-1]+rv_ccf_step;</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>   }</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>   <span class="comment">/* </span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> <span class="comment">     ======================================================================= </span></div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> <span class="comment">     Do correlation. Values calculated by this subriutine are:</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="comment">       ccf:            ccf matrix containing the ccf for each order (ccf_i)</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment"></span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="comment">       ccf_max:        vector containing the highest value of each ccf_i, </span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="comment"></span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="comment">       pix_passed_all: number of pixels of the input spectrum used for the</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="comment">                       computation of each ccf_i,</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="comment">       pix_passed_ord is the currespondent order value</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment"></span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="comment">       tot_line:       number of holes used in the computation of each ccf_i, </span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="comment"></span></div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="comment">       ll_range_all:   wavelength interval of each order the input spectrum </span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> <span class="comment">                       used in the computation of each ccf_i</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <span class="comment">       ll_range_ord is the correspondent order value</span></div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> <span class="comment">     ======================================================================= </span></div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> </div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>   do_cor_vel(in_ima_wcal_sol,   <span class="comment">/* wave calibration solution */</span></div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>          m_in_ima,          <span class="comment">/* extracted spectrum */</span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>          rv_ccf,            <span class="comment">/* points at which the CCF is computed */</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>          msk_hole_siz_selw, <span class="comment">/* hole size   selected on weight criteria */</span></div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>          msk_hole_cen_selw, <span class="comment">/* hole center selected on weight criteria */</span></div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>          msk_hole_wgt_selw, <span class="comment">/* hole weight selected on weight criteria */</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>              0,                 <span class="comment">/* barv     :Baricentric Velocity Corr */</span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>              0,                 <span class="comment">/* barv_max :Its maximum               */</span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>              0,                 <span class="comment">/* fit_type (Gaussian): 0/1 emis/absorb */</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>              in_ima_nx,         <span class="comment">/* X sise of input spectra */</span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>              in_msk_nrow,       <span class="comment">/* size of input mask */</span></div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>          rv_ccf_size,       <span class="comment">/* size of CCF */</span></div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>          ccf_o,               <span class="comment">/* out: ccf for each order (ccf_i) */</span>     </div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>              &ccf_max,          <span class="comment">/* out: max(ccf) for each order (ccf_i) */</span></div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>              &pix_passed_ord,   <span class="comment">/* out: each order in sp's no of pix to </span></div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> <span class="comment">                                             get ccf_i */</span></div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>          &tot_line,         <span class="comment">/* out: no of holes used to get ccf_i */</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>          &ll_range_ord,     <span class="comment">/* out: each order's wav interval to get ccf_i */</span></div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>              in_ima_id);        <span class="comment">/* input ima id (to write descriptors) */</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> </div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>  </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>   <span class="comment">/* Sum the individual ccf_i for each bin and normalize the final ccf */</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>   SCFCLO(in_ima_id); <span class="comment">//not needed anymore</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>   ccf_nrm=dvector(0,rv_ccf_size);</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>   <span class="keywordflow">for</span>(i=0;i<rv_ccf_size;i++){</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>      ccf_avg +=ccf_o[i];</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>      <span class="keywordflow">if</span>(!irplib_isinf(ccf_o[i])) {</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>         <span class="keywordflow">if</span>(ccf_o[i] > ccf_max) {</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>            ccf_max=ccf_o[i];</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>         }</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>      }</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>   }</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>  </div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>   <span class="comment">/* Creating a new table for offline plotting of peaks */</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>   SCKGETC(OU_A,1,MAX_LEN,&midas_nval,ou_tab);</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>   <span class="comment">/* jmlarsen: use F_O_MODE for new table</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="comment">     old code: TCTINI(ou_tab,F_IO_MODE,rv_ccf_size,&tid);*/</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>   TCTINI(ou_tab,F_O_MODE,rv_ccf_size,&tid);</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>   </div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>   <span class="comment">/* Creating a new column */</span></div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>   TCCINI(tid, D_R8_FORMAT, 1, <span class="stringliteral">"F8.4"</span>, <span class="stringliteral">" "</span>, <span class="stringliteral">"ccf_pos"</span>, &ccf_pos_col);</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>   TCCINI(tid, D_R8_FORMAT, 1, <span class="stringliteral">"F8.4"</span>, <span class="stringliteral">" "</span>, <span class="stringliteral">"ccf_nrm"</span>, &ccf_nrm_col);</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>   TCCINI(tid, D_R8_FORMAT, 1, <span class="stringliteral">"F8.4"</span>, <span class="stringliteral">" "</span>, <span class="stringliteral">"ccf_out"</span>, &ccf_out_col);</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>   <span class="comment">/* Writing table values */</span></div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> <span class="comment">  if (abs(ccf_max) >= FEPSILON) { </span></div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> <span class="comment">     for(i=0;i<rv_ccf_size;i++){</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="comment">        ccf_nrm[i]=ccf_o[i]/ccf_max;</span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="comment">        TCEWRD(tid, i+1, ccf_pos_col, &rv_ccf[i]);</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> <span class="comment">        TCEWRD(tid, i+1, ccf_nrm_col, &ccf_nrm[i]);</span></div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span> <span class="comment">        TCEWRD(tid, i+1, ccf_out_col, &ccf_o[i]);</span></div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> <span class="comment">     }</span></div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> <span class="comment">  } else {</span></div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> <span class="comment">     for(i=0;i<rv_ccf_size;i++){</span></div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> <span class="comment">        ccf_nrm[i]=0.;</span></div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> <span class="comment">        TCEWRD(tid, i+1, ccf_pos_col, &rv_ccf[i]);</span></div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> <span class="comment">        TCEWRD(tid, i+1, ccf_nrm_col, &ccf_nrm[i]);</span></div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> <span class="comment">        TCEWRD(tid, i+1, ccf_out_col, &ccf_o[i]);</span></div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> <span class="comment">     }</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> <span class="comment">  }</span></div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>  </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>      <span class="keywordflow">for</span>(i=0;i<rv_ccf_size;i++){</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>         ccf_nrm[i]=ccf_o[i]/ccf_max;</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>         TCEWRD(tid, i+1, ccf_pos_col, &rv_ccf[i]);</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>         TCEWRD(tid, i+1, ccf_nrm_col, &ccf_nrm[i]);</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>         TCEWRD(tid, i+1, ccf_out_col, &ccf_o[i]);</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>      }</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>   SCDWRD(tid,<span class="stringliteral">"CCF_MAX"</span>,&ccf_max,1,1,&midas_unit); </div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>   SCDWRD(tid,<span class="stringliteral">"WAV_RNG"</span>,&ll_range_ord,1,1,&midas_unit); </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>   SCDWRD(tid,<span class="stringliteral">"PIX_TOT"</span>,&pix_passed_ord,1,1,&midas_unit); </div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>   SCDWRI(tid,<span class="stringliteral">"LIN_TOT"</span>,&tot_line,1,1,&midas_unit); </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span> </div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>   TCTCLO(tid);</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>  </div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>  </div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>   <span class="comment">/* TO BE IMPLEMENTED */</span></div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>   <span class="comment">/* Gaussian Fit of the normalized CCF */</span></div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>   <span class="comment">/* </span></div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="comment">     one fit normalized_ccf as a function of rv_ccf using as fit type an</span></div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> <span class="comment">     emission Gaussian. Output of the fit are the Gaussian fit coefficients </span></div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> <span class="comment">     ccf_res and ccf_fit is the fitted Gaussian computed on the rv_ccf </span></div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> <span class="comment">     velocity bins</span></div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> </div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>   <span class="comment">/* ccf_res[0]=ccf_res[0]/(1.-ccf_res[3]); */</span></div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>   fit_ccf(rv_ccf,ccf_nrm,1,ccf_res,ccf_fit);</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> </div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>  </div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>   <span class="comment">/* dump results in ouput image*/</span></div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> </div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>   ou_ima_npix[0]=rv_ccf_size;</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>   ou_ima_npix[1]=1;</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>   ou_ima_start[0]=rv_ccf[0];</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>   ou_ima_start[1]=ccf_nrm[0];</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>   ou_ima_step[0]=ccf_max;</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>   ou_ima_step[1]=1;</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>   cuts[0] = 0;</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>   cuts[1] = 0;</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>   cuts[2] = 0;</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>   cuts[3] = 1;</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>  </div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>  </div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>   SCKGETC(OU_B,1,MAX_LEN,&midas_nval,ou_ima);</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> </div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>   SCFCRE(ou_ima,D_R8_FORMAT,F_O_MODE,F_IMA_TYPE,rv_ccf_size,&ou_ima_id);</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>   SCDWRC(ou_ima_id,<span class="stringliteral">"IDENT"</span>, 1, ident, 1, 72, &midas_unit);</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>   SCDWRI(ou_ima_id,<span class="stringliteral">"NAXIS"</span>,&ou_ima_naxis,1,1,&midas_unit); </div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>   SCDWRI(ou_ima_id,<span class="stringliteral">"NPIX"</span>,ou_ima_npix,1,2,&midas_unit); </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>   SCDWRD(ou_ima_id,<span class="stringliteral">"START"</span>,ou_ima_start, 1, 2, &midas_unit);</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>   SCDWRD(ou_ima_id,<span class="stringliteral">"STEP"</span>, ou_ima_step, 1, 2, &midas_unit);</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>   SCDWRC(ou_ima_id,<span class="stringliteral">"CUNIT"</span>, 1, cunit[0], 1, 48, &midas_unit);</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>   SCDWRR(ou_ima_id,<span class="stringliteral">"LHCUTS"</span>, cuts, 1, 4, &midas_unit);</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>   SCFPUT(ou_ima_id,1,rv_ccf_size,(<span class="keywordtype">char</span> *)ccf_o);</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>   SCDWRD(ou_ima_id,<span class="stringliteral">"CCF_MAX"</span>,&ccf_max,1,1,&midas_unit); </div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>   SCDWRD(ou_ima_id,<span class="stringliteral">"WAV_RNG"</span>,&ll_range_ord,1,1,&midas_unit); </div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>   SCDWRD(ou_ima_id,<span class="stringliteral">"PIX_TOT"</span>,&pix_passed_ord,1,1,&midas_unit); </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>   SCDWRI(ou_ima_id,<span class="stringliteral">"LIN_TOT"</span>,&tot_line,1,1,&midas_unit); </div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>   SCFCLO(ou_ima_id);</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> </div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>   cuts[3] = ccf_max;</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>   SCKGETC(OU_C,1,MAX_LEN,&midas_nval,ou_ima);</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>   SCFCRE(ou_ima,D_R8_FORMAT,F_O_MODE,F_IMA_TYPE,rv_ccf_size,&ou_ima_id);</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>   </div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>   SCDWRC(ou_ima_id,<span class="stringliteral">"IDENT"</span>, 1, ident, 1, 72, &midas_unit);</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>   SCDWRI(ou_ima_id,<span class="stringliteral">"NAXIS"</span>,&ou_ima_naxis,1,1,&midas_unit); </div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>   SCDWRI(ou_ima_id,<span class="stringliteral">"NPIX"</span>,ou_ima_npix,1,2,&midas_unit); </div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>   SCDWRD(ou_ima_id,<span class="stringliteral">"START"</span>,ou_ima_start, 1, 2, &midas_unit);</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>   SCDWRD(ou_ima_id,<span class="stringliteral">"STEP"</span>, ou_ima_step, 1, 2, &midas_unit);</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>   SCDWRC(ou_ima_id,<span class="stringliteral">"CUNIT"</span>, 1, cunit[0], 1, 48, &midas_unit);</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>   SCDWRR(ou_ima_id,<span class="stringliteral">"LHCUTS"</span>, cuts, 1, 4, &midas_unit);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>   SCFPUT(ou_ima_id,1,rv_ccf_size,(<span class="keywordtype">char</span> *)ccf_nrm);</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>   SCDWRD(ou_ima_id,<span class="stringliteral">"CCF_MAX"</span>,&ccf_max,1,1,&midas_unit); </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>   SCDWRD(ou_ima_id,<span class="stringliteral">"WAV_RNG"</span>,&ll_range_ord,1,1,&midas_unit); </div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>   SCDWRD(ou_ima_id,<span class="stringliteral">"PIX_TOT"</span>,&pix_passed_ord,1,1,&midas_unit); </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>   SCDWRI(ou_ima_id,<span class="stringliteral">"LIN_TOT"</span>,&tot_line,1,1,&midas_unit); </div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>   SCFCLO(ou_ima_id);</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>   <span class="comment">/* free allocated memory */</span></div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>   <span class="comment">/* free_matrix(m_in_ima,0,in_ima_ny-1,0,in_ima_nx-1); */</span></div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>   free_dvector(msk_hole_sta,0,in_msk_nrow);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>   free_dvector(msk_hole_end,0,in_msk_nrow);</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>   free_dvector(msk_hole_siz,0,in_msk_nrow);</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>   free_dvector(msk_hole_wgt,0,in_msk_nrow);</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>   free_dvector(msk_hole_cen,0,in_msk_nrow);</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>   free_dvector(msk_hole_siz_selw,0,in_msk_nrow);</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>   free_dvector(msk_hole_wgt_selw,0,in_msk_nrow);</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>   free_dvector(msk_hole_cen_selw,0,in_msk_nrow);</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>   free_dvector(rv_ccf,0,rv_ccf_size);</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>   free_dvector(ccf_nrm,0,rv_ccf_size);</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>   free_dvector(in_ima_wcal_sol,0,in_ima_nx);</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>   free_dvector(ccf_o,0,rv_ccf_size);</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> </div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> </div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>   SCSEPI();</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span> </div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> }</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> </div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span> do_cor_vel(<span class="keywordtype">double</span>* wcal_sol,<span class="keywordtype">float</span>** sp_flux,<span class="keywordtype">double</span>* rv_ccf,</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>            <span class="keywordtype">double</span>* msk_hole_siz,<span class="keywordtype">double</span>* msk_hole_cen,</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>            <span class="keywordtype">double</span>* msk_hole_wgt,<span class="keywordtype">double</span> bar_v,<span class="keywordtype">double</span> bar_v_max,</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>            <span class="keywordtype">int</span> fit_type,<span class="keywordtype">int</span> in_ima_ncol,<span class="keywordtype">int</span> in_msk_nrow,</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>            <span class="keywordtype">int</span> rv_ccf_size,</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>        <span class="keywordtype">double</span>* ccf_o,            <span class="comment">/* matrix with ccf_i */</span></div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>        <span class="keywordtype">double</span>* ccf_max,        <span class="comment">/* vector with max(ccf_i) */</span></div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>        <span class="keywordtype">double</span>* pix_passed_ord, <span class="comment">/* no of in spct pixels used to get ccf_i */</span></div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>        <span class="keywordtype">int</span>*    tot_line,       <span class="comment">/* no of holes used to get ccf_i */</span></div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>        <span class="keywordtype">double</span>* wcal_range_ord, <span class="comment">/* wave range of each order in spct used to get ccf_i */</span></div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>            <span class="keywordtype">int</span> in_ima_id)</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> {</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span> </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>   <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>   <span class="keywordtype">double</span>* dw_map=NULL;</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>   <span class="keywordtype">double</span>* ccf_all=NULL;</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>   <span class="keywordtype">double</span>* ccf_all_fit=NULL;</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>   <span class="keywordtype">double</span>* msk_hole_cen_selr=NULL;</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>   <span class="keywordtype">double</span>* msk_hole_siz_selr=NULL;</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>   <span class="keywordtype">double</span>* msk_hole_wgt_selr=NULL;</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> </div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>   <span class="keywordtype">double</span>* ccf_o_results=NULL;</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>   <span class="comment">/* double* ccf_o_fit=NULL; */</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>   <span class="comment">/* ccf_o_fit is commented out as not really used */</span></div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>   <span class="keywordtype">double</span>* rv_ccf_cor=NULL;</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> </div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>   <span class="keywordtype">double</span> wcal_min=0;</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>   <span class="keywordtype">double</span> wcal_max=0;</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>   <span class="keywordtype">double</span> d_secular_red=0;</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>   <span class="keywordtype">double</span> d_secular_blu=0;</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>   <span class="keywordtype">int</span> sel_no=0;</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>   <span class="comment">/* Local Functions */</span></div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> </div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> <span class="comment">/* </span></div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span> <span class="comment">   ==========================================================================</span></div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> <span class="comment">   Subroutine body </span></div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span> <span class="comment">   ==========================================================================</span></div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> </div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> <span class="comment">/* The following 2 lines has de facto no effect as bar_v and bar__max are 0 */</span></div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>   d_secular_red=bar_v_max-bar_v;</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>   d_secular_blu=bar_v_max-bar_v;</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span> </div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span> </div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>   dw_map=dvector(0,in_ima_ncol);</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>   ccf_all=dvector(0,rv_ccf_size);</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>   ccf_all_fit=dvector(0,rv_ccf_size);</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>   rv_ccf_cor=dvector(0,rv_ccf_size);</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>   <span class="comment">/* ccf_o_fit=dvector(0,in_ima_ncol); */</span></div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>   <span class="comment">/* ccf_o_fit is commented out as not really used*/</span></div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>   ccf_o_results=dvector(0,4);</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span> </div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>   msk_hole_cen_selr=dvector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>   msk_hole_siz_selr=dvector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>   msk_hole_wgt_selr=dvector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>   <span class="comment">/* defines delta_lambda vector as delta_lambda=lambda(i+1)-lambda(i) */</span></div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>   <span class="keywordflow">for</span>(i=0;i<in_ima_ncol-1;i++){</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>     dw_map[i]=wcal_sol[i+1]-wcal_sol[i];</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>   }</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>   <span class="comment">/* Not relevant for the ThAr correlation.</span></div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> <span class="comment">     This computes the minimum and the maximum wavelengths given the velocity</span></div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> <span class="comment">     point extremes in which the CCF is going to be computed</span></div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span> <span class="comment">     (rv_ccf[0] is the first velocity bin and rv_ccf[-1] is the last) and the</span></div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span> <span class="comment">     max BAR_V velocity (baricentric velocity) possible</span></div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>   </div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>   <span class="comment">/* Here should start a loop over orders: we do not do it as we assume</span></div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span> <span class="comment">     to have in input the spectra relative to each order */</span></div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span> </div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>   <span class="comment">/* The following two lines are not relevant in case of ThAr spectra */</span></div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>   <span class="comment">/* They are to compute the min and max wavelength being given the velocity</span></div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span> <span class="comment">     point extremes in which the CCF is going to be computed and the max</span></div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> <span class="comment">     baricentric velocity possible */</span></div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> </div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>   wcal_min=wcal_sol[0]-(rv_ccf[0]-bar_v-d_secular_blu)*</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>            wcal_sol[0]/FLAMES_SPEED_OF_LIGHT; </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span> </div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>   wcal_max=wcal_sol[in_ima_ncol-1]-(rv_ccf[rv_ccf_size-1]-bar_v+d_secular_red)*           </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>            wcal_sol[in_ima_ncol-1]/FLAMES_SPEED_OF_LIGHT;</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> </div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span> <span class="comment">>From the python version:</span></div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> <span class="comment"></span></div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span> <span class="comment">ll_max=ll_map[order,-1]-(RV_CCF[-1]-berv+D_secular_red)*ll_map[order,-1]/speed_of_light</span></div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> <span class="comment">*/</span> </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>   <span class="comment">/* Filter wcenter,wsize,weight to include holes whose center is within the</span></div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> <span class="comment">     limits wcal_min and wcal_max</span></div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> </div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>   <span class="keywordflow">for</span>(i=0;i<in_msk_nrow;i++){</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     <span class="keywordflow">if</span>((msk_hole_cen[i]>wcal_min) && (msk_hole_cen[i]<wcal_max)) {</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>       msk_hole_cen_selr[sel_no]=msk_hole_cen[i];</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>       msk_hole_siz_selr[sel_no]=msk_hole_siz[i];</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>       msk_hole_wgt_selr[sel_no]=msk_hole_wgt[i];</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>       sel_no++;</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>     }</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>   }</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>   *tot_line=sel_no;</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>   <span class="keywordflow">if</span>(sel_no) {</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>     <span class="comment">/* If at least one is left after filtering the mask */</span></div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>     *wcal_range_ord=0.;</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>   <span class="comment">/* we get the velocity bins were the CCF is going to be computed </span></div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> <span class="comment">     corrected for bar_v */</span></div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>     <span class="keywordflow">for</span>(i=0;i<rv_ccf_size;i++){</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>         rv_ccf_cor[i]=rv_ccf[i]-bar_v; </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>     }</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span> </div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>     <span class="comment">/* computes the ccf on the order order. </span></div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> <span class="comment"></span></div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span> <span class="comment">       The input arguments are:</span></div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span> <span class="comment">       msk_hole_cen_selr, centers of each hole selected on wave range criteria</span></div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span> <span class="comment">       msk_hole_siz_selr, widths  of each hole selected on wave range criteria</span></div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span> <span class="comment">       msk_hole_wgt_selr, weights of each hole selected on wave range criteria</span></div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span> <span class="comment">       wcal_sol, the vector containing the correspondence pixel to </span></div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> <span class="comment">                 lambda for the order order</span></div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span> <span class="comment">       sp_flux[order] is the vector containing the intensity of each pixel</span></div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span> <span class="comment">                  for the order order</span></div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> <span class="comment">       dw_map is the delta lambda between consecutive pixels</span></div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span> <span class="comment">       rv_ccf-bar_v is the velocity bin where the CCF is going to be </span></div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> <span class="comment">                    computed corrected for the BAR_V.</span></div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span> <span class="comment"></span></div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span> <span class="comment">       OUTPUT arguments are:</span></div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span> <span class="comment">       ccf_o, the ccf of the order order,</span></div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span> <span class="comment">       pix_passed tells you how many pixels have participated in the ccf,</span></div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span> <span class="comment">       wcal_range is the length (in Angstroms) of the region covered by the</span></div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span> <span class="comment">                  holes which participated in the CCF </span></div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span> <span class="comment">                  (i.e., the sum of the vector wcal_msk_size_selr);</span></div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span> <span class="comment"></span></div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>  </div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>   do_ccf_f(msk_hole_cen_selr, msk_hole_siz_selr, msk_hole_wgt_selr,  </div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>        wcal_sol, sp_flux, dw_map, rv_ccf_cor, ccf_o, pix_passed_ord,</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>            wcal_range_ord, sel_no, in_ima_ncol, rv_ccf_size, in_ima_id);</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span> </div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>   }</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>   <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>     <span class="comment">/* there is no mas holes in the wavelength interval wcal_min, wcal_max</span></div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span> <span class="comment">       then everything is set to zero */</span></div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>     printf(<span class="stringliteral">"No hole between wcal_min=%f and wcal_max=%f all set to 0. \n"</span>,</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>             wcal_min,wcal_max);</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>      <span class="keywordflow">for</span>(i=0;i<rv_ccf_size;i++){</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>        <span class="comment">/* rv_ccf[i]=0.; */</span></div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>          ccf_o[i]=rv_ccf[i]*0.;</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>          <span class="comment">/* ccf_o_fit[i]=ccf_o[i]; */</span></div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>          <span class="comment">/* ccf_o_fit is commented out as not really used */</span></div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>      }</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>      *pix_passed_ord=0.;</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>      *wcal_range_ord=0.;</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span> </div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>     ccf_o_results[0]=0.;</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>     ccf_o_results[1]=0.;</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>     ccf_o_results[2]=0.;</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>     ccf_o_results[3]=0.;</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span> </div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>   }</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>  </div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span> </div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>   <span class="comment">/* write results on output table */</span></div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> </div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>   <span class="comment">/* Free memory */</span></div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>   free_dvector(rv_ccf_cor,0,rv_ccf_size);</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>   free_dvector(dw_map,0,in_ima_ncol);</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>   <span class="comment">/* free_dvector(ccf_o_fit,0,in_ima_ncol); */</span></div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>   <span class="comment">/* ccf_o_fit is commented out as not really used */</span></div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>   free_dvector(ccf_o_results,0,4);</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> </div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> </div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>   free_dvector(ccf_all,0,rv_ccf_size);</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>   free_dvector(ccf_all_fit,0,rv_ccf_size);</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> </div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>   free_dvector(msk_hole_cen_selr,0,in_msk_nrow);</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>   free_dvector(msk_hole_siz_selr,0,in_msk_nrow);</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>   free_dvector(msk_hole_wgt_selr,0,in_msk_nrow);</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> </div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>  </div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> } <span class="comment">/* end function do_corvel */</span></div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span> </div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span> </div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> do_ccf_f(<span class="keywordtype">double</span>* mask_ll,<span class="keywordtype">double</span>* mask_d,<span class="keywordtype">double</span>* mask_w,<span class="keywordtype">double</span>* sp_ll,</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>          <span class="keywordtype">float</span>** sp_flux,<span class="keywordtype">double</span>* sp_dll,<span class="keywordtype">double</span>* rv_ccf,<span class="keywordtype">double</span>* ccf_o,</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>          <span class="keywordtype">double</span>* pix_tot,<span class="keywordtype">double</span>* ll_range_tot,<span class="keywordtype">int</span> in_msk_nrow, </div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>          <span class="keywordtype">int</span> in_ima_ncol, <span class="keywordtype">int</span> rv_ccf_size, <span class="keywordtype">int</span> in_ima_id)</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span> {</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span> </div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>   <span class="comment">/* This routine should evaluate and return:</span></div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span> <span class="comment">     ccf_o[rv_ccf_size]-the resulting CCF for a given order (not normalized)</span></div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span> <span class="comment">     pix_passed-a double scalar</span></div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span> <span class="comment">     ll_range-a double scalar</span></div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span> <span class="comment">  */</span> </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>      <span class="comment">/* iter for v */</span> </div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> </div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>   <span class="comment">/* at rest the mask holes are centered on the vector mask_ll.</span></div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span> <span class="comment">     at a velocity rv, they will be centered on </span></div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> <span class="comment">     mask_ll+rv*mask_ll/FLAMES_SPEED_OF_LIGHT</span></div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span> <span class="comment">     The blue edge of the holes (Mask_blue) is then this new center minus</span></div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> <span class="comment">     half of the size of the hole. The same is valid for the red edge of </span></div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span> <span class="comment">     the hole.</span></div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span> <span class="comment"></span></div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> </div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>   <span class="comment">/* local variable definition-initializzation */</span></div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span> </div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>   <span class="keywordtype">double</span>** covar;</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>   <span class="keywordtype">double</span>** alpha;</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span> </div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>   <span class="keywordtype">double</span>* msk_blu=NULL;</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>   <span class="keywordtype">double</span>* msk_red=NULL;</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>   <span class="keywordtype">double</span>* sp_ll_prime=NULL;</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>   <span class="keywordtype">double</span>* sfit=NULL;</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>   <span class="keywordtype">double</span>* xfit=NULL;</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>   <span class="keywordtype">double</span>* yfit=NULL;</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>   <span class="keywordtype">double</span>* aa=NULL;</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>   <span class="keywordtype">double</span>* erraa=NULL;</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span> </div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> </div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>   <span class="keywordtype">int</span>* i_blu_masques=NULL;</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>   <span class="keywordtype">int</span>* i_red_masques=NULL;</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>   <span class="keywordtype">int</span>* ia=NULL;</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span> </div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>   <span class="keywordtype">double</span> intensity_s=0;</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>   <span class="keywordtype">double</span> pix=0;</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>   <span class="keywordtype">double</span> ll_range=0;</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>   <span class="keywordtype">double</span> norm=0;</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>   <span class="keywordtype">double</span> cen=0;</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>   <span class="keywordtype">double</span> sig=0;</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>   <span class="keywordtype">double</span> fwhm=0;</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>   <span class="keywordtype">double</span> rv=0;</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>   <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>   <span class="keywordtype">int</span> first_hole;</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>   <span class="keywordtype">int</span> midas_unit = 0;</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>   <span class="keywordtype">int</span> sp_ll_sz = in_ima_ncol;</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>   <span class="keywordtype">int</span> guess=0;</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>   <span class="keywordtype">int</span> ndeg=6;</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span> </div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>   <span class="comment">/* Function prototype */</span></div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> </div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span> </div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>   xfit=dvector(1,rv_ccf_size);</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>   yfit=dvector(1,rv_ccf_size);</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>   sfit=dvector(1,rv_ccf_size);</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span> </div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>   covar = dmatrix(1,ndeg,1,ndeg);</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>   alpha = dmatrix(1,ndeg,1,ndeg);</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> </div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>   aa=dvector(1,ndeg);</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>   erraa=dvector(1,ndeg);</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>   ia=ivector(1,ndeg);</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>   sp_ll_prime=dvector(0,in_ima_ncol);</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>   msk_blu = dvector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>   msk_red = dvector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>   i_blu_masques = ivector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>   i_red_masques = ivector(0,in_msk_nrow);</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> </div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>   <span class="keywordflow">for</span>(i=0;i<rv_ccf_size;i++) {</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>     rv=rv_ccf[i];</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>     sfit[i]=1.0;</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>   }</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> </div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>   <span class="keywordflow">for</span>(i=0;i<rv_ccf_size;i++) {</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>     rv=rv_ccf[i];</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>     <span class="comment">/* </span></div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> <span class="comment">       we define the 1st derivative: sp_ll_prime[j]=sp_ll[j]+sp_dll[j]*0.5; </span></div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span> <span class="comment">       j is a counter variable of values up to sp_ll_sz equal to the No of</span></div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span> <span class="comment">       extracted spectra definition points</span></div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>     <span class="keywordflow">for</span>(j=0; j<sp_ll_sz; j++) {</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>       sp_ll_prime[j]=sp_ll[j]+sp_dll[j]*0.5;</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>     }</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>     <span class="keywordflow">for</span>(j=0;j<in_msk_nrow;j++) {</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>        <span class="comment">/* shift the mask holes for a velocity RV[i] */</span></div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>       msk_blu[j]=mask_ll[j]+rv*mask_ll[j]/FLAMES_SPEED_OF_LIGHT-0.5*mask_d[j];</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>       msk_red[j]=mask_ll[j]+rv*mask_ll[j]/FLAMES_SPEED_OF_LIGHT+0.5*mask_d[j];</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span> </div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>       <span class="comment">/*  </span></div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span> <span class="comment">      The idea is to know where (i.e. in which pixel) a given hole will start </span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span> <span class="comment">      because we won't want to scan through the vector wave to find the pixel </span></div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> <span class="comment">      i where lambda(i-1) < mask_start <lambda(i). The command search_sorted </span></div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span> <span class="comment">      does it (see below).</span></div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span> <span class="comment">      It returns the position where the element mask_blue will fit in the </span></div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> <span class="comment">      vector lamda+delta_lambda/2.</span></div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span> <span class="comment">      This is done for the blue edge of the mask and for the red edge. </span></div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span> <span class="comment">      The +1 in the end is because phython vectors starts at 0 and F77 at 1.</span></div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> <span class="comment">      */</span></div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>       </div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     }</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> <span class="comment">    Look for the first and the last holes available for the crooss-correlation</span></div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> <span class="comment">    assuming the spectrum has a dimension nspec and sp_ll(nspec) and </span></div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> <span class="comment">    flux(nspec) are the wavelength and spectral flux vectors</span></div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span> <span class="comment"></span></div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span> <span class="comment">    Then finds the first hole such as</span></div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span> <span class="comment">    wave[0]<=mask_blu[first_hole] && mask_red[first_hole-1]<wave[0]</span></div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> <span class="comment">    find last_hole such as </span></div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span> <span class="comment">    wave[nspec]>=mask_red[first_hole] && mask_red[first_hole+1]>wave[nspec]</span></div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> <span class="comment">    </span></div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span> <span class="comment">    This search is done using</span></div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> <span class="comment">    find_pos_d(vector,len(vector),x,i,j,guess)</span></div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> <span class="comment">    which returns the index of the element in the vector such as</span></div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> <span class="comment">    vector[i]<=x<vector[i+1]</span></div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> <span class="comment">    The search is carried out between the elements:</span></div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> <span class="comment">    vector[i] and vector[j]</span></div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> <span class="comment">    and using "guess" and first "guess" for the position of "x" within "vector"</span></div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="comment"></span></div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> <span class="comment">    (see NR F77 chapter 3.4)</span></div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>     </div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>     first_hole=hunt(msk_blu-1, in_msk_nrow, sp_ll[0],0);</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>     guess=first_hole;</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> </div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>     <span class="keywordflow">for</span>(j=0;j<in_msk_nrow;j++) {</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>       <span class="comment">//for(j=0;j<3;j++) {</span></div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> </div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>        i_blu_masques[j]=hunt(sp_ll_prime-1,sp_ll_sz,msk_blu[j],0)+1;</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> </div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>        guess=i_blu_masques[j];</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>        i_red_masques[j]=hunt(sp_ll_prime-1,sp_ll_sz,msk_red[j],guess)+1;</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>        guess=i_red_masques[j];</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>        <span class="comment">//uves_msg_debug("masques: %d %d",i_blu_masques[j],i_red_masques[j]);</span></div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> </div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>     }</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>   correl_bin(sp_ll_sz,sp_flux,sp_ll,sp_dll,</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>             &in_msk_nrow,msk_blu,msk_red,mask_w,i_blu_masques,</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>             i_red_masques,&intensity_s,&pix,&ll_range);</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> </div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>   ccf_o[i]=intensity_s;</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> </div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>   }</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>   *pix_tot+=pix;</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>   *ll_range_tot+=ll_range;</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>   <span class="keywordflow">for</span>(i=0;i<rv_ccf_size;i++) {</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>     j=i+1;</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>     xfit[j]=rv_ccf[i];</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>     yfit[j]=ccf_o[i];</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>     sfit[j]=1;</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>   }</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>   aa[1]=300;</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>   aa[2]=0;</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>   aa[3]=1;</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>   aa[4]=1.;</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> </div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>   ia[1]=1;</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>   ia[2]=1;</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>   ia[3]=1;</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>   ia[4]=0;</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> </div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> <span class="comment">  lfit(xfit,yfit,sfit,rv_ccf_size,aa,ia,3,covar,&chisq,fgauss); </span></div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> <span class="comment">  non_lfit(xfit,yfit,sfit,rv_ccf_size,aa,ndeg,ia,4,fgauss,erraa,&chisq); </span></div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> <span class="comment">  alambda=-1.0;</span></div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> <span class="comment">  mrqmin(xfit,yfit,sfit,rv_ccf_size,aa,ndeg,ia,mfit,covar,alpha,&chisq,</span></div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> <span class="comment">         fgauss,&alambda); </span></div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> </div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>   gaussian_fit(rv_ccf,ccf_o,rv_ccf_size,&norm,&cen,&sig,&fwhm);</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> </div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>   <span class="comment">/* write output in descriptor */</span></div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Position max corvel=%f"</span>,cen);</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>   SCDWRD(in_ima_id,<span class="stringliteral">"CORVEL_MAX"</span>,&cen,1,1,&midas_unit);</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> </div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span> </div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> </div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>   <span class="comment">/* Free allocated memory */</span></div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>   free_dmatrix(covar,1,ndeg,1,ndeg);</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>   free_dmatrix(alpha,1,ndeg,1,ndeg);</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> </div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>   free_dvector(aa,1,ndeg);</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>   free_dvector(erraa,1,ndeg);</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>   free_ivector(ia,1,ndeg);</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>  </div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>   free_dvector(xfit,1,rv_ccf_size);</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>   free_dvector(yfit,1,rv_ccf_size);</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>   free_dvector(sfit,1,rv_ccf_size);</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> </div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>   free_dvector(msk_blu,0,in_msk_nrow);</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>   free_dvector(msk_red,0,in_msk_nrow);</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>   free_ivector(i_blu_masques,0,in_msk_nrow);</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>   free_ivector(i_red_masques,0,in_msk_nrow);</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> </div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>   free_dvector(sp_ll_prime,0,in_ima_ncol);</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>   </div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> } <span class="comment">/* end function do_ccf_f */</span></div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> </div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> correl_bin(<span class="keywordtype">int</span> nx,        <span class="comment">/* in: dimension of flux (is it necessary?) */</span></div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>         <span class="keywordtype">float</span>** flux,   <span class="comment">/* in: Spectral flux (dim nx) */</span></div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>         <span class="keywordtype">double</span> *ll,        <span class="comment">/* in: wavelength (dim nx) */</span></div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>         <span class="keywordtype">double</span> *dll,    <span class="comment">/* in: Delta(lambda) D_ll (dim nx) */</span></div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>         <span class="keywordtype">int</span> *nbr_trou,  <span class="comment">/* in: Number of holes read from the mask file */</span></div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>         <span class="keywordtype">double</span> *ll_s,   <span class="comment">/* in: Mask hole start wavelength (dim nbr_trou) */</span></div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>         <span class="keywordtype">double</span> *ll_e,   <span class="comment">/* in: Mask hole end wavelength (dim nbr_trou) */</span></div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>         <span class="keywordtype">double</span> *ll_wei, <span class="comment">/* in: Mask hole weight wavelength (dim nbr_trou) */</span></div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>         <span class="keywordtype">int</span> *i_start,   <span class="comment">/* in: see python code (page 9 line 76-77)  */</span></div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>         <span class="keywordtype">int</span> *i_end,        <span class="comment">/* in: see python code (page 9 line 76-77)  */</span></div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>         <span class="keywordtype">double</span> *out_ccf, <span class="comment">/* out: Value of the CCF for a given velocity </span></div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> <span class="comment">                                point */</span></div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>         <span class="keywordtype">double</span> *pix,     <span class="comment">/* out: number of pixelx used in the </span></div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> <span class="comment">                                computation of the CCF */</span></div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>         <span class="keywordtype">double</span> *llrange) <span class="comment">/* out: wavelenght interval covered by the </span></div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> <span class="comment">                                pixels used in computation of the CCF */</span></div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span> {</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>     <span class="comment">/* pointers */</span></div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>     </div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>     <span class="keywordtype">float</span> *pflux=NULL;</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>     <span class="keywordtype">double</span> *pll=NULL;</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>     <span class="keywordtype">double</span> *pdll=NULL;</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>     <span class="keywordtype">double</span> *pll_s=NULL;</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>     <span class="keywordtype">double</span> *pll_e=NULL;</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>     <span class="keywordtype">double</span> *pll_wei=NULL;</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>     <span class="keywordtype">int</span> *pi_start=NULL;</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>     <span class="keywordtype">int</span> *pi_end=NULL;</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>     <span class="keywordtype">int</span> trou=0;</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>     <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> </div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>     pflux = *flux;</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>     pll   = ll;</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>     pdll  = dll;</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>     pll_s = ll_s;</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>     pll_e = ll_e;</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>     pll_wei = ll_wei;</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>     pi_start = i_start;</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>     pi_end   = i_end;</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>     </div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span> </div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>     <span class="comment">/*local param */</span></div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>     </div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>     </div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>     *out_ccf=0.0;</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>     *pix=0.0;</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>     *llrange=0.0;</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> </div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>     </div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>     <span class="keywordflow">for</span> (trou=0;trou < *nbr_trou;trou++) {</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>         </div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>       <span class="keywordflow">if</span> (pi_start[trou] == pi_end[trou]) {</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>          *out_ccf=*out_ccf+(pll_e[trou]-pll_s[trou])/pdll[pi_start[trou]]*</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>                pflux[pi_start[trou]]*(pll_wei[trou]);</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>                  </div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>          *pix=*pix+(pll_e[trou]-pll_s[trou])*pll_wei[trou]/</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>                    pdll[pi_start[trou]];</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>             </div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>          *llrange=*llrange+(pll_e[trou]-pll_s[trou])*pll_wei[trou];</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>             </div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pi_start[trou]+1 == pi_end[trou]) {</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>             </div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>          *out_ccf=*out_ccf+</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>                    ((pll[pi_start[trou]]+pdll[pi_start[trou]]*.5-pll_s[trou])*</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>                  pflux[pi_start[trou]]/pdll[pi_start[trou]]+</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>            (pll_e[trou]-(pll[pi_start[trou]]+pdll[pi_start[trou]]*.5))*</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>               pflux[pi_end[trou]]/pdll[pi_start[trou]])*pll_wei[trou];</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>                 </div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>              *pix=*pix+((pll[pi_start[trou]]+pdll[pi_start[trou]]*.5-</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>                   pll_s[trou])/pdll[pi_start[trou]]+</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>         (pll_e[trou]-(pll[pi_start[trou]]+pdll[pi_start[trou]]*.5))/</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>         pdll[pi_end[trou]])*pll_wei[trou];</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>                 </div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>  </div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>          *llrange=*llrange+((pll[pi_start[trou]]+pdll[pi_start[trou]]*.5-</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>                       pll_s[trou])+</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>         (pll_e[trou]-(pll[pi_start[trou]]+pdll[pi_start[trou]]*.5)))*</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>                       pll_wei[trou];</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span> </div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span> </div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>         </div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>          *out_ccf=*out_ccf+((pll[pi_start[trou]]+pdll[pi_start[trou]]*0.5-</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>                       pll_s[trou])*pflux[pi_start[trou]]/pdll[pi_start[trou]]+</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>                (pll_e[trou]-(pll[pi_end[trou]]-pdll[pi_end[trou]]*.5))*</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>             pflux[pi_end[trou]]/pdll[pi_end[trou]])*pll_wei[trou];</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> </div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>               *pix=*pix+</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>            ((pll[pi_start[trou]]+pdll[pi_start[trou]]*0.5-pll_s[trou])/</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>             pdll[pi_start[trou]]+</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>             (pll_e[trou]-(pll[pi_end[trou]]-pdll[pi_end[trou]]*.5))/</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>             pdll[pi_end[trou]])*pll_wei[trou];</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span> </div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>                *llrange=*llrange+</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>           ((pll[pi_start[trou]]+pdll[pi_start[trou]]*0.5-pll_s[trou])+</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>            (pll_e[trou]-(pll[pi_end[trou]]-pdll[pi_end[trou]]*.5)))</div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>             *pll_wei[trou];</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> </div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>           <span class="keywordflow">for</span> (i=pi_start[trou]+1;i<=pi_end[trou]-1;i++) {</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span> </div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>                   *out_ccf=*out_ccf+pflux[i]*pll_wei[trou];</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>                   *pix=*pix+pll_wei[trou];</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>                   *llrange=*llrange+pdll[i]*pll_wei[trou];</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>          }</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>       }</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>         }</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> } <span class="comment">/* end function correl_bin */</span></div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>             </div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>             </div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> fit_ccf(<span class="keywordtype">double</span>* rv_ccf,<span class="keywordtype">double</span>* ccf_nor,<span class="keywordtype">int</span> type,<span class="keywordtype">double</span>* ccf_res,</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>         <span class="keywordtype">double</span>* ccf_fit)</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> {</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>   <span class="comment">/* Gaussian Fit either in emission or in absorbtion depending on the flag, </span></div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> <span class="comment">     emission for the ThAr </span></div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> <span class="comment">     It first computes a single fit in order to find the first guess </span></div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> <span class="comment">     parameters. Then it does the fit again now putting more weight on the </span></div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> <span class="comment">     core of the Gaussian. It returns the fit coefficients and the fitted </span></div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> <span class="comment">     function.</span></div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> <span class="comment"></span></div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> </div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> } <span class="comment">/* end function fit_ccf */</span></div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> </div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> </div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> </div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> </div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>   </div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> hunt(<span class="keywordtype">double</span>* xx, <span class="keywordtype">int</span> n, <span class="keywordtype">double</span> x, <span class="keywordtype">int</span> jlo) {</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span> </div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>     <span class="keywordtype">int</span> jm, jhi, inc;</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>     <span class="keywordtype">int</span> ascnd;</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>     </div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>     ascnd=(xx[n] >= xx[1]);</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>     <span class="keywordflow">if</span> (jlo <= 0 || jlo >n) {</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>         jlo=0;</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>         jhi=n+1;</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>         inc=1;</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>         <span class="keywordflow">if</span> ((x>=xx[jlo]) == ascnd) {</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>             <span class="keywordflow">if</span> (jlo == n) <span class="keywordflow">return</span> jlo-1;</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>             jhi=jlo+1;</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>             <span class="keywordflow">while</span> ((x>=xx[jhi]) == ascnd) {</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>                 jlo=jhi;</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>                 inc +=inc;</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>                 jhi=jlo+inc;</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>                 <span class="keywordflow">if</span> (jhi>n) {</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>                     jhi=n+1;</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>                 }</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>             }</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>             <span class="keywordflow">if</span> (jlo==1) {</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>                 jlo=0;</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>                 <span class="keywordflow">return</span> jlo-1;</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>             }</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>             jhi=jlo--;</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>             <span class="keywordflow">while</span> ((x<xx[jlo])==ascnd) {</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>                 jhi=jlo;</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>                 inc *=2;</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>                 <span class="keywordflow">if</span> (inc >= jhi) {</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>                     jlo=0;</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>                 }</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>                 <span class="keywordflow">else</span> jlo=jhi-inc;</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>             }</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>         }</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>     }</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>     <span class="keywordflow">while</span> ((jhi-jlo) != 1) {</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>         jm=(jhi+jlo) >> 1;</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>         <span class="keywordflow">if</span> ( (x >= xx[jm]) ==ascnd)</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>             jlo=jm;</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>             jhi=jm;</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>     }</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>     <span class="keywordflow">if</span> (x == xx[n]) jlo=n-1;</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>     <span class="keywordflow">if</span> (x == xx[1]) jlo=1;</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> </div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>     <span class="keywordflow">return</span> jlo-1;</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> } <span class="comment">/* end function hunt */</span></div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span> </div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> </div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> <span class="comment">void fgauss(double x,double g[],int ng)</span></div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span> <span class="comment">{</span></div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> <span class="comment">    int i=0;</span></div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span> <span class="comment">    double arg=0.0;</span></div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> <span class="comment">    double ex=0.0;</span></div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span> <span class="comment">    double fac=0.0;</span></div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> <span class="comment">    arg=(x-g[2])/g[3];</span></div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> <span class="comment">    ex=exp(-arg*arg);</span></div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> <span class="comment">    fac=g[4]+g[1]*ex*2.0*arg;</span></div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span> <span class="comment">    return fac;</span></div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> <span class="comment">}</span></div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span> </div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span> </div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>  <span class="comment">/*</span></div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span> <span class="comment">static double </span></div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span> <span class="comment">fgauss(double x,double a[],double y,double dyda[],int na)</span></div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> <span class="comment">{</span></div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> <span class="comment">    double arg=0.0;</span></div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> <span class="comment">    double ex=0.0;</span></div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span> <span class="comment">    double fac=0.0;</span></div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span> <span class="comment">   </span></div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span> <span class="comment">    arg=(x-a[2])/a[3];</span></div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span> <span class="comment">    ex=exp(-arg*arg);</span></div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> <span class="comment">    fac=a[4]+a[1]*ex*2.0*arg;</span></div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span> <span class="comment">    y = a[4]+fac;</span></div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> <span class="comment"></span></div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> <span class="comment">    dyda[1]=ex;</span></div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span> <span class="comment">    dyda[2]=fac/a[2];</span></div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span> <span class="comment">    dyda[3]=fac*arg/a[2];</span></div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span> <span class="comment">    dyda[4]=0;</span></div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span> <span class="comment">    return fac;</span></div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span> <span class="comment">}</span></div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span> </div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span> <span class="comment">static void </span></div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span> <span class="comment">fpoly(double x,double p[],int np)</span></div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span> <span class="comment">{</span></div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span> <span class="comment">    int j=0;</span></div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span> <span class="comment">    p[1]=1;</span></div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span> <span class="comment">    for (j=2; j<=np;j++) p[j]=p[j-1]*x;</span></div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span> <span class="comment">}</span></div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span> </div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span> </div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span> gaussian_fit(<span class="keyword">const</span> <span class="keywordtype">double</span> *   x,</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> *   y,</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>                    <span class="keywordtype">int</span>        size,</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>                    <span class="keywordtype">double</span> *   norm,</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>                    <span class="keywordtype">double</span> *   xcen,</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>                    <span class="keywordtype">double</span> *   sig_x,</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>                    <span class="keywordtype">double</span> *   fwhm_x) </div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span> {</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>     <span class="keywordtype">double</span>          u0, ux, uxx;</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>     <span class="keywordtype">double</span>          max_val ;</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>     <span class="keywordtype">int</span>             i;</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span> </div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>     <span class="comment">/* Extraction zone */</span></div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>     </div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>     <span class="comment">/* Extract the image zone to fit */</span></div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>     <span class="comment">/* Check if there are enough good pixels */</span></div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>     <span class="comment">/* Convert the image to double */</span></div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>     <span class="comment">/* Compute xcen  */</span></div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>     u0 = ux = 0.0 ;</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>     <span class="keywordflow">for</span> (i=0 ; i<size ; i++) {</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>         u0 += y[i] ;</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>         ux += x[i] * y[i] ;</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>     }</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>     <span class="comment">/* Compute sig_x  */</span></div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>     uxx = 0.0 ;</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>     <span class="keywordflow">for</span> (i=0 ; i<size ; i++) {</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>         uxx += (x[i]-(ux/u0)) * (x[i]-(ux/u0)) * y[i] ;</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>     }</div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>     <span class="keywordflow">if</span> (sig_x) *sig_x = sqrt(fabs(uxx/u0)) ;</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>     <span class="keywordflow">if</span> (fwhm_x) *fwhm_x = 2 * sqrt(2 * log(2.0)) * sqrt(fabs(uxx/u0)) ;</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span> </div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>     max_val=y[0];</div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>     <span class="keywordflow">for</span> (i=1 ; i<size ; i++) {</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>       <span class="keywordflow">if</span>(y[i] > max_val) max_val=y[i];</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>     }</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>     <span class="comment">/* Compute norm */</span></div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>     <span class="keywordflow">if</span> (norm) *norm = max_val*2*M_PI*sqrt(fabs(uxx/u0)) ; </div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>     </div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>     <span class="comment">/* Shift xcen and ycen to coordinates in the input big image */</span></div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>     <span class="keywordflow">if</span> (xcen) *xcen = ux/u0;</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>     </div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__corvel_8h_source.html b/html/flames__corvel_8h_source.html
deleted file mode 100644
index 48328d9..0000000
--- a/html/flames__corvel_8h_source.html
+++ /dev/null
@@ -1,93 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_corvel.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_corvel.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* </span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="preprocessor">#ifndef FLAMES_CORVEL_H</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_CORVEL_H</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="keywordtype">int</span> flames_corvel(<span class="keyword">const</span> <span class="keywordtype">char</span> *IN_A,</div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *IN_B,</div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span>                   <span class="keyword">const</span> <span class="keywordtype">int</span>  IN_N,</div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *OU_A,</div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *OU_B,</div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *OU_C,</div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> rv_ccf_min,</div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> rv_ccf_max,</div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> rv_ccf_step);</div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> </div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__extract_8c_source.html b/html/flames__extract_8c_source.html
deleted file mode 100644
index b00f332..0000000
--- a/html/flames__extract_8c_source.html
+++ /dev/null
@@ -1,136 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_extract.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_extract.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2006/10/12 11:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Added FLAMES modules</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> {</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     {</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>               <span class="stringliteral">"I am flames_extract version %d, but I am linking "</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"of UVES and try again."</span>,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     }</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     <span class="keywordflow">return</span> flames_extract_get_info(list);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__fillordtab_8c_source.html b/html/flames__fillordtab_8c_source.html
deleted file mode 100644
index 09f8c92..0000000
--- a/html/flames__fillordtab_8c_source.html
+++ /dev/null
@@ -1,136 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_fillordtab.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_fillordtab.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2006/10/12 11:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Added FLAMES modules</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> {</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     {</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>               <span class="stringliteral">"I am flames_fillordtab version %d, but I am linking "</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"of UVES and try again."</span>,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     }</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     <span class="keywordflow">return</span> flames_fillordtab_get_info(list);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__mes__slitff__size_8c_source.html b/html/flames__mes__slitff__size_8c_source.html
deleted file mode 100644
index 79f9e4f..0000000
--- a/html/flames__mes__slitff__size_8c_source.html
+++ /dev/null
@@ -1,136 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_mes_slitff_size.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_mes_slitff_size.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2006/10/12 11:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Added FLAMES modules</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> {</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     {</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>               <span class="stringliteral">"I am flames_mes_slitff_size version %d, but I am linking "</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"of UVES and try again."</span>,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     }</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     <span class="keywordflow">return</span> flames_mes_slitff_size_get_info(list);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__midas__def_8c_source.html b/html/flames__midas__def_8c_source.html
deleted file mode 100644
index afb7080..0000000
--- a/html/flames__midas__def_8c_source.html
+++ /dev/null
@@ -1,4126 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_midas_def.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_midas_def.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> </div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA  *</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-02-12 10:59:25 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Revision 1.7  2012/11/19 09:16:16  jtaylor</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> * replace all (u)long ints with (u)int32_t in flames</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * except the fitsio arguments in load_frame() from uves/flames_midas_def.c</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> * the rest of uves is unchanged</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * (uves/uves_deque.c must not be changed for compatibility with cpl)</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> * required for 64 bit compatibility</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * the midas fits io does not support 8 byte long integers.</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * longs are 4 byte on 32 bit and 8 byte on 64 bit so the simplest fix is</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> * to replace them all with the size which is known to work.</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * An alternative would be to check and fix all io related functions</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * this would require adding a 4 byte integer tensor</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.6  2012/11/19 09:11:52  jtaylor</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * fix segfauls with -O0</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.5  2012/03/02 16:23:15  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * fixed compiler warnings related to CPL6 upgrade</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.4  2011/12/08 13:58:29  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Fox warnings with CPL6</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.3  2010/09/24 09:32:02  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.1  2009/04/14 07:01:07  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * added to CVS (moded from flames tree)</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.73  2008/09/29 06:50:32  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.72  2008/08/29 09:54:04  amodigli</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * fixed compiler warning</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.71  2008/06/26 08:21:58  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * more silend init/end of MIDAS interface</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.70  2007/12/10 07:33:52  amodigli</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * added support of D_R8_FORMAT</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.69  2007/10/23 06:44:19  amodigli</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * fixed compilation warnings</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.68  2007/10/01 17:19:34  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * added scdprs</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.67  2007/08/30 08:44:16  amodigli</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * fixed problem with null strings in convert_to_history and problems with a lengh of a cards in get_descr_info</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.66  2007/08/21 13:08:25  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.65  2007/08/20 08:56:49  amodigli</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * fixed bug on termination null char in flames_midas_sckgetc</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.64  2007/08/16 06:58:09  amodigli</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * commented out assure check in flames_convert_to_history to prevent problem with slitff_l_sigma01 and CPL4: was that assure really needed?</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.63  2007/08/08 08:00:29  amodigli</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * update frame_new_table to support input in '.tfits'</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.62  2007/07/27 06:44:48  amodigli</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Moved several function declarations from flames_uves.h to other new .h files</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.61  2007/07/26 16:08:28  jmlarsen</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Manually set table column unit to empty string when no unit is given. CPL-3 did that. CPL-4 not</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.60  2007/07/25 15:55:12  amodigli</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * fixed a problem writing char descriptors not null ternimated evidenced with CPL4</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.59  2007/07/18 15:27:17  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Added check for NULL pointer</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.58  2007/07/03 14:04:48  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Fixed fixmes</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.57  2007/06/28 09:34:43  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * More useful error message</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.56  2007/06/26 13:58:07  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Expand list of special MIDAS keywords</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.55  2007/06/25 15:45:33  jmlarsen</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Do not write FIBRESON to HISTORY keyword</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.54  2007/06/22 15:27:49  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Support read/write of D_I2_FORMAT</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.53  2007/06/22 14:52:20  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Exported dtype_to_cpltype function</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.52  2007/06/22 09:45:59  jmlarsen</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Changed interface of uves_save_image</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.51  2007/06/20 13:45:02  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Make sure not to convert some hardcoded FITS keywords to HISTORY format</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.50  2007/06/20 11:10:46  jmlarsen</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Use CFITSIO, also for 2d images</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.49  2007/06/19 12:00:05  jmlarsen</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Changed comment</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.48  2007/06/12 15:19:07  jmlarsen</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Added support for writing CUNIT</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.47  2007/06/08 15:37:53  jmlarsen</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Bugfix in SCDWR when creating new descriptor</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Revision 1.46  2007/06/08 06:41:23  amodigli</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * cleaned output</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Revision 1.45  2007/06/06 15:28:38  jmlarsen</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * And made it compile</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Revision 1.44  2007/06/06 15:14:52  jmlarsen</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Fixed memory error</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Revision 1.43  2007/06/06 14:05:13  jmlarsen</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * SCCADD return value of OBJECT if existing</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Revision 1.42  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Revision 1.41  2007/06/06 07:23:59  jmlarsen</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Use property comments to control conversion to/from HISTORY keywords</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Revision 1.40  2007/06/05 06:53:54  jmlarsen</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Fixed buffer overrun in SCDRDC</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Revision 1.39  2007/06/04 17:08:20  amodigli</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * removed compilation warnings</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> * Revision 1.38  2007/06/04 11:26:42  jmlarsen</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Added SCKGETC_fsp for cpl_frameset pointers</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> * Revision 1.37  2007/06/04 06:34:22  amodigli</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * added CPL_TYPE_FLOAT support in convert_to_history</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> * Revision 1.36  2007/05/30 16:07:53  jmlarsen</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Support reading 3d, 4d FITS images</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> * Revision 1.35  2007/05/30 14:49:02  jmlarsen</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * Support for 3d, 4d FITS images</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> * Revision 1.34  2007/05/29 14:39:48  jmlarsen</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> * Readded 3d table functions but map them to simple (2d) table functions</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"> * Revision 1.33  2007/05/29 13:46:21  jmlarsen</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> * Removed 3d table column stubs which were not needed for FLAMES</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> * Revision 1.32  2007/05/18 15:41:24  amodigli</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> * added some info</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> * Revision 1.31  2007/05/16 15:43:39  jmlarsen</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"> * Initial support for 3d images</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment"> * Revision 1.30  2007/05/16 14:21:52  amodigli</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment"> * added debug statements</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment"> * Revision 1.29  2007/05/16 10:08:38  jmlarsen</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment"> * Added .fits to provided filenames if not given</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment"> * Revision 1.28  2007/05/14 16:13:57  jmlarsen</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment"> * Fixed memory leak</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment"> * Revision 1.27  2007/05/14 16:04:52  jmlarsen</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment"> * Bugfix in SCKRD functions</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment"> * Revision 1.26  2007/05/14 13:25:31  jmlarsen</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment"> * Added support for 'allocated' table rows</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> * Revision 1.25  2007/05/11 13:52:48  jmlarsen</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"> * Implemented image buffer read/write functions</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"> * Revision 1.24  2007/05/11 09:41:38  jmlarsen</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment"> * Support type double in convert_to_history</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> * Revision 1.23  2007/05/10 14:03:15  jmlarsen</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment"> * Added workaround for CPL's TNULL handling</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment"> * Revision 1.22  2007/05/08 14:26:17  jmlarsen</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment"> * Implemented table selection flags</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment"> * Revision 1.21  2007/05/04 14:45:32  amodigli</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment"> * added support for D_I1_FORMAT</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment"> * Revision 1.20  2007/05/04 10:21:13  jmlarsen</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment"> * Set image size properly in SCDCOP</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment"> * Revision 1.19  2007/04/24 12:49:34  jmlarsen</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment"> * Revision 1.18  2007/04/24 09:43:10  jmlarsen</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment"> * Renamed uves_propertylist_append -> uves_propertylist_append_property</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment"> * Revision 1.17  2007/04/23 07:01:10  amodigli</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="comment"> * uncommented BKG_XY_WIN_SZ_X BKG_XY_WIN_SZ_Y BKG_MAX_IO_WIN</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment"> * Revision 1.16  2007/04/20 14:53:29  jmlarsen</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment"> * Allow type conversion in table read/write functions</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment"> * Revision 1.15  2007/04/16 06:50:37  jmlarsen</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="comment"> * Fixed memory leaks</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment"> * Revision 1.14  2007/04/10 07:31:35  jmlarsen</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment"> * Fixed buffer overrun due to use of strcpy</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment"> * Revision 1.13  2007/04/03 11:05:31  jmlarsen</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment"> * Implemented table module</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment"> * Revision 1.12  2007/03/23 14:11:49  jmlarsen</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment"> * Replaced exit system calls with appropriate error handling</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment"> * Revision 1.11  2007/03/23 13:44:37  jmlarsen</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment"> * Implemented SCKWR- functions</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment"> * Revision 1.10  2007/03/23 10:25:32  amodigli</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment"> * implemented sccadd</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment"> * Revision 1.9  2007/03/23 10:10:14  jmlarsen</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment"> * Implemented catalog interface</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment"> * Revision 1.8  2007/03/23 08:04:55  jmlarsen</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="comment"> * Work on conversion</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment"> * Revision 1.7  2007/03/15 15:05:33  jmlarsen</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="comment"> * More implementation</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="comment"> * Revision 1.6  2007/03/05 09:40:53  jmlarsen</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="comment"> * Work on SCDCOP</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment"> * Revision 1.5  2007/02/27 14:09:31  jmlarsen</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment"> * Extended interface of uves_find_property</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment"> * Revision 1.4  2007/01/31 13:14:54  jmlarsen</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment"> * Initial implementation of SCFGET</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment"> * Revision 1.3  2007/01/29 13:09:55  jmlarsen</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment"> * Work on conversion to CPL</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment"> * Revision 1.2  2007/01/15 14:00:23  jmlarsen</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment"> * Imported FLAMES sources from MIDAS pipeline</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment"> * Revision 1.1  2007/01/10 08:06:10  jmlarsen</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment"> * Added source files</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment"> * Revision 1.2  2006/12/01 12:52:31  jmlarsen</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment"> * Added flames_pfits module</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment"> * Revision 1.1  2006/10/20 06:42:09  jmlarsen</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment"> * Moved FLAMES source to flames directory</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="comment"> * Revision 1.114  2006/10/09 13:03:09  jmlarsen</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment"> * Removed explicit uves_msg_softer/louder calls</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment">                            Includes</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="preprocessor">#include <flames_midas_def.h></span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="preprocessor">#include <assert.h></span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="preprocessor">#include <fitsio.h></span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="preprocessor">#include <errno.h></span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="comment">                            Defines</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="preprocessor">#define MAX_OPEN 1024 </span><span class="comment">/* Maximum number of open images/tables files */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="comment">                            Variables</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> </div>
-<div class="line"><a name="l00344"></a><span class="lineno"><a class="code" href="structframe.html">  344</a></span> <span class="keyword">struct </span><a class="code" href="structframe.html">frame</a></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> {</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *filename;      <span class="comment">/* NULL: slot not used */</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     <span class="keywordtype">bool</span> is_image;             <span class="comment">/* Image or table? */</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     <span class="keyword">union </span>{</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>         <span class="keyword">struct </span>{</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>             cpl_image *image;  </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>             cpl_type type;   <span class="comment">/* CPL type of image (cannot store this in</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="comment">                                the CPL image structure, because the image may</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <span class="comment">                                be logically open before it is actually loaded</span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> <span class="comment">                                into memory) */</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>             <span class="keywordtype">int</span> dtype;       <span class="comment">/* MIDAS image type */</span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>         } image;</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>         <span class="keyword">struct </span>{</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>             cpl_table *table;  <span class="comment">/* The actual table columns *and* an</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="comment">                                  'internal' column "Select" to record</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="comment">                                  selections */</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>             cpl_table *colnames;</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>             <span class="keywordtype">int</span> maxrow;        <span class="comment">/* Number of rows actually used</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="comment">                                  (maybe be less than rows allocated) */</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>         } table;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     } data;</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header;  <span class="comment">/* Primary header, also for tables.</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="comment">                                  NULL: not loaded (yet) */</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     <span class="keywordtype">bool</span> need_to_save;         <span class="comment">/* Need to save to disk when closing? */</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     <span class="comment">/* Invariants:</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="comment">       if need_to_save, then image/table is != NULL</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="comment">       For images:</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment">          if image != NULL, then cpl_image_get_type(image) = type </span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="comment">       For tables:</span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="comment">          (table == NULL) == (colnames == NULL)</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="comment">          if table != NULL, then table.ncol-1 == colnames.nrow</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> <span class="comment">          if table != NULL, table has column "Select"</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> };</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> <span class="preprocessor">#define COLNAME "ColName"</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> <span class="comment">/* There are 3(!) different representations of FITS headers</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="comment"></span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> <span class="comment">   1. As seen by the FLAMES code, e.g.</span></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> <span class="comment"></span></div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> <span class="comment">   LHCUTS[3]...</span></div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> <span class="comment">   LHCUTS[4]...</span></div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> <span class="comment">   ORDERLIM[1]...</span></div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> <span class="comment">   ORDERLIM[2]...</span></div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="comment">   ESO OBS ID...</span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> <span class="comment"></span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <span class="comment">   2. CPL propertylist</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> <span class="comment">   </span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> <span class="comment">   DATAMIN...</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> <span class="comment">   DATAMAX...</span></div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> <span class="comment">   ORDERLIM = x</span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> <span class="comment">   ORDERLIM = y</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="comment">   ESO OBS ID...</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="comment"></span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="comment">   3. The actual FITS file</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> <span class="comment">   </span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> <span class="comment">   DATAMIN...</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="comment">   DATAMAX...</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="comment">   HISTORY ORDERLIM </span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> <span class="comment">   HISTORY x y</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> <span class="comment">   HISTORY</span></div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> <span class="comment">   HIERARCH ESO OBS ID...</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> <span class="comment"></span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> <span class="keyword">struct </span><a class="code" href="structframe.html">frame</a> frames[MAX_OPEN];</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *current_caller = NULL;</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> </div>
-<div class="line"><a name="l00436"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66">  436</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>)</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> {</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     <span class="keyword">struct </span><a class="code" href="structframe.html">frame</a> *frm = &frames[id];</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> </div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     <span class="keywordflow">if</span> (frm->is_image)</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>         {</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>             <span class="keywordflow">return</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>                 (!frm->need_to_save || frm->data.image.image != NULL) &&</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>                 (frm->data.image.image == NULL</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>                  || cpl_image_get_type(frm->data.image.image) == frm->data.image.type);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         }</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>         {</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>             <span class="keywordflow">return</span> (!frm->need_to_save || frm->data.table.table != NULL)</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                 &&</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                 ((frm->data.table.table == NULL) == (frm->data.table.colnames == NULL))</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>                 &&</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                 (frm->data.table.table == NULL || </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                  cpl_table_get_ncol(frm->data.table.table) - 1 ==</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                  cpl_table_get_nrow(frm->data.table.colnames)) </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>                 &&</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>                 (frm->data.table.table == NULL || </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>                  cpl_table_has_column(frm->data.table.table, <span class="stringliteral">"Select"</span>));</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> </div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>         }</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> }</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> <span class="keyword">static</span> <span class="keywordtype">bool</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb">  469</a></span> <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>)</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> {</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     <span class="keywordflow">return</span> frames[id].filename != NULL;</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> }</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00482"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga039acefae152f656c10c8f92123dff18">  482</a></span> <a class="code" href="group__flames__midas__def.html#ga039acefae152f656c10c8f92123dff18" title="Create new image frame.">frame_new_image</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>                 <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header,</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>                 <span class="keywordtype">bool</span> need_to_save,</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>                 cpl_image *image,</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>                 cpl_type type,</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>                 <span class="keywordtype">int</span> dtype)</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> {</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     <span class="keywordflow">if</span> (strstr(filename, <span class="stringliteral">".fits"</span>) == filename + strlen(filename) - 5) {</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>         frames[id].filename = uves_sprintf(<span class="stringliteral">"%s"</span>, filename);</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     } </div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strstr(filename, <span class="stringliteral">".bdf"</span>) == filename + strlen(filename) - 4) {</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>         <span class="comment">/* Replace .bdf -> .fits */</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>         frames[id].filename = uves_sprintf(<span class="stringliteral">"%sX"</span>, filename);</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>         ((<span class="keywordtype">char</span> *)frames[<span class="keywordtype">id</span>].filename)[strlen(filename) - 3] = <span class="charliteral">'f'</span>;</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>         ((<span class="keywordtype">char</span> *)frames[<span class="keywordtype">id</span>].filename)[strlen(filename) - 2] = <span class="charliteral">'i'</span>;</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>         ((<span class="keywordtype">char</span> *)frames[<span class="keywordtype">id</span>].filename)[strlen(filename) - 1] = <span class="charliteral">'t'</span>;</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>         ((<span class="keywordtype">char</span> *)frames[<span class="keywordtype">id</span>].filename)[strlen(filename) - 0] = <span class="charliteral">'s'</span>;</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     }</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>         frames[id].filename = uves_sprintf(<span class="stringliteral">"%s.fits"</span>, filename);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     }</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     frames[id].is_image = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     frames[id].data.image.image = image;</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     frames[id].data.image.type  = type;</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     frames[id].data.image.dtype = dtype;</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     frames[id].header = header;</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>     frames[id].need_to_save = need_to_save;</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> </div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> }</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00520"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gab7f90aa20c3ad6bb30b38c96cce9503a">  520</a></span> <a class="code" href="group__flames__midas__def.html#gab7f90aa20c3ad6bb30b38c96cce9503a" title="Create new table frame.">frame_new_table</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, </div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                 <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header,</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                 <span class="keywordtype">bool</span> need_to_save,</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>                 cpl_table *table,</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>                 <span class="keywordtype">int</span> maxrow,</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>                 cpl_table *colnames)</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> {</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     <span class="keywordflow">if</span> (strstr(filename, <span class="stringliteral">".fits"</span>) == filename + strlen(filename) - 5) {</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>         frames[id].filename = uves_sprintf(<span class="stringliteral">"%s"</span>, filename);</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>     } </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strstr(filename, <span class="stringliteral">".tfits"</span>) == filename + strlen(filename) - 6) {</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>         frames[id].filename = uves_sprintf(<span class="stringliteral">"%s"</span>, filename);</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     } </div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strstr(filename, <span class="stringliteral">".tbl"</span>) == filename + strlen(filename) - 4) {</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>         <span class="comment">/* Replace .tbl -> .fits */</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>         frames[id].filename = uves_sprintf(<span class="stringliteral">"%sX"</span>, filename);</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>         ((<span class="keywordtype">char</span> *)frames[<span class="keywordtype">id</span>].filename)[strlen(filename) - 3] = <span class="charliteral">'f'</span>;</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>         ((<span class="keywordtype">char</span> *)frames[<span class="keywordtype">id</span>].filename)[strlen(filename) - 2] = <span class="charliteral">'i'</span>;</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>         ((<span class="keywordtype">char</span> *)frames[<span class="keywordtype">id</span>].filename)[strlen(filename) - 1] = <span class="charliteral">'t'</span>;</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>         ((<span class="keywordtype">char</span> *)frames[<span class="keywordtype">id</span>].filename)[strlen(filename) - 0] = <span class="charliteral">'s'</span>;</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>         frames[id].filename = uves_sprintf(<span class="stringliteral">"%s.fits"</span>, filename);</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>     }</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     frames[id].is_image = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>     frames[id].data.table.table = table;</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>     <span class="keywordflow">if</span> (table != NULL) {</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>         cpl_table_new_column(table, <span class="stringliteral">"Select"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>         cpl_table_fill_column_window_int(table, <span class="stringliteral">"Select"</span>,</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>                                          0, cpl_table_get_nrow(table),</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>                                          1); <span class="comment">/* initialize to all selected */</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     }</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>         <span class="comment">/* Select column will be created when table is loaded from disk */</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     }</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>     frames[id].data.table.maxrow = maxrow;</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     frames[id].data.table.colnames = colnames;</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>     frames[id].header = header;</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>     frames[id].need_to_save = need_to_save;</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> }</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> </div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00569"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga1d9507f11db5958a512c4bfac897d11e">  569</a></span> <a class="code" href="group__flames__midas__def.html#ga1d9507f11db5958a512c4bfac897d11e" title="Deallocate frame.">frame_free</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>)</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> {</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>     <span class="keywordflow">if</span> (<a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(<span class="keywordtype">id</span>))</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>         {</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>             uves_free_string_const(&frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>             <span class="keywordflow">if</span> (frames[<span class="keywordtype">id</span>].is_image)</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                 {</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                     uves_free_image(&frames[<span class="keywordtype">id</span>].data.image.image);</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>                 }</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>                 {</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>                     uves_free_table(&frames[<span class="keywordtype">id</span>].data.table.table);</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>                     uves_free_table(&frames[<span class="keywordtype">id</span>].data.table.colnames);</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>                 }</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>             uves_free_propertylist(&frames[<span class="keywordtype">id</span>].header);</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>         }</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> }</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> </div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> <span class="keyword">static</span> <span class="keywordtype">bool</span></div>
-<div class="line"><a name="l00595"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga62f37c098ceea9f00ff6d148787d94a2">  595</a></span> <a class="code" href="group__flames__midas__def.html#ga62f37c098ceea9f00ff6d148787d94a2" title="Find out if FITS descriptor has a different name from MIDAS.">is_special_midas_descr</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *descr)</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> {</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>     <span class="keywordflow">return</span> </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>         strcmp(descr, <span class="stringliteral">"NPIX"</span>) == 0 ||</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>         strcmp(descr, <span class="stringliteral">"REFPIX"</span>) == 0 ||</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>         strcmp(descr, <span class="stringliteral">"START"</span>) == 0 ||</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>         strcmp(descr, <span class="stringliteral">"STEP"</span>) == 0 ||</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>         strcmp(descr, <span class="stringliteral">"ROTA"</span>) == 0 ||</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>         strcmp(descr, <span class="stringliteral">"CUNIT"</span>) == 0 ||</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>         strcmp(descr, <span class="stringliteral">"IDENT"</span>) == 0 ||</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>         strcmp(descr, <span class="stringliteral">"O_TIME"</span>) == 0 ||</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>         strcmp(descr, <span class="stringliteral">"LHCUTS"</span>) == 0 ||</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>         strcmp(descr, <span class="stringliteral">"O_POS"</span>) == 0;</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> }</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> </div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00620"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gac5996d64d908d2cfa6f94ea779a0ea95">  620</a></span> <a class="code" href="group__flames__midas__def.html#gac5996d64d908d2cfa6f94ea779a0ea95" title="Map MIDAS descriptors to FITS equivalents.">convert_to_fits</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *descr, <span class="keywordtype">int</span> indx)</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> {</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     <span class="comment">/* Special MIDAS keywords are:</span></div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> <span class="comment">       (MIDAS manual volume A p. 7-5)    </span></div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> <span class="comment">       NAXISn -> NPIXn</span></div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> <span class="comment">       CRPIXn -> REFPIXn</span></div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> <span class="comment">       CRVALn -> STARTn</span></div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span> <span class="comment">       CDELTn -> STEPn</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span> <span class="comment">       CROTAn -> ROTAn</span></div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> <span class="comment">       BUNIT  -> CUNIT(1)</span></div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span> <span class="comment">       CTYPEn -> CUNIT(n+1)</span></div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span> <span class="comment">       OBJECT -> IDENT</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> <span class="comment">       DATE_OBS -> O_TIME(1)</span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> <span class="comment"></span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> <span class="comment">                  LHCUTS(1), LHCUTS(2)</span></div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> <span class="comment">          internal in MIDAS,</span></div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> <span class="comment">          not converted</span></div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> <span class="comment">       DATAMIN -> LHCUTS(3)       (and convert double -> float)</span></div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> <span class="comment">       DATAMAX -> LHCUTS(4)</span></div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> <span class="comment">       EPOCH   -> O_POS(3)</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> <span class="comment">       EQUINOX -> O_POS(3)</span></div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *fits_descr = NULL;</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     <span class="keywordflow">if</span>      (strcmp(descr, <span class="stringliteral">"NPIX"</span>  ) == 0) fits_descr = uves_sprintf(<span class="stringliteral">"NAXIS%d"</span>, indx);</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"REFPIX"</span>) == 0) assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"%s"</span>, descr);</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"START"</span> ) == 0) fits_descr = uves_sprintf(<span class="stringliteral">"CRVAL%d"</span>, indx);</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"STEP"</span>  ) == 0) fits_descr = uves_sprintf(<span class="stringliteral">"CDELT%d"</span>, indx);</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"ROTA"</span>  ) == 0) assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"%s"</span>, descr);</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"CUNIT"</span> ) == 0) </div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>         fits_descr = (indx == 1) ? uves_sprintf(<span class="stringliteral">"BUNIT"</span>) : uves_sprintf(<span class="stringliteral">"CTYPE%d"</span>, indx);</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"IDENT"</span> ) == 0) fits_descr = uves_sprintf(<span class="stringliteral">"OBJECT"</span>);</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"O_TIME"</span>) == 0) assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"%s"</span>, descr);</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"LHCUTS"</span>) == 0) </div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>     {</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>         fits_descr = </div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>         (indx == 1) ? uves_sprintf(<span class="stringliteral">"LHCUTS1"</span>) :    <span class="comment">/* For now, write these keywords for indx 1,2 */</span></div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>         (indx == 2) ? uves_sprintf(<span class="stringliteral">"LHCUTS2"</span>) :</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>         (indx == 3) ? uves_sprintf(<span class="stringliteral">"DATAMIN"</span>) : uves_sprintf(<span class="stringliteral">"DATAMAX"</span>);</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>     }</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"O_POS"</span> ) == 0) assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"%s"</span>, descr);</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>         </div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>     <span class="keywordflow">if</span> (fits_descr == NULL)</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>     {</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>         fits_descr = uves_sprintf(<span class="stringliteral">"%s"</span>, descr);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>     }</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>   cleanup:</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>     <span class="keywordflow">return</span> fits_descr;</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span> }</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00698"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gac7d5af5ecd10af15fb036eb988b61527">  698</a></span> <a class="code" href="group__flames__midas__def.html#gac7d5af5ecd10af15fb036eb988b61527" title="Convert header for output.">convert_to_history</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **header)</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span> {</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     <span class="keywordtype">int</span> plist_size, i;</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *new_name  = NULL;</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     <span class="keywordtype">char</span> *v = NULL;</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     cpl_table *new_values = NULL;</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>     cpl_property *new_prop = NULL;</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *result = NULL;  <span class="comment">/* Cannot change type of one property,</span></div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span> <span class="comment">                                         need to copy to new list */</span></div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>     result = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> </div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>     plist_size = <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(*header);</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     <span class="keywordflow">for</span> (i = 0; i < plist_size; i++) {</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>         cpl_property *p = uves_propertylist_get(*header, i);</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *name = cpl_property_get_name(p);</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>         <span class="keywordtype">int</span> j;</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> </div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>         <span class="keywordflow">if</span> (cpl_property_get_comment(p) != NULL &&</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>             strcmp(cpl_property_get_comment(p), <span class="stringliteral">"PROCESSED"</span>) == 0) {</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>             <span class="comment">/* already processed, ignore */</span></div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>         }</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((strlen(name) > 8 && strncmp(name, <span class="stringliteral">"ESO "</span>, 4) != 0) </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>                  ||</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>                  (cpl_property_get_comment(p) != NULL &&</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>                   strcmp(cpl_property_get_comment(p), <span class="stringliteral">"MIDAS_DESC"</span>) == 0)) {</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>             <span class="keywordtype">int</span> n_prop;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>             </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>             uves_free_string_const(&new_name);</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>             <span class="keywordflow">switch</span> (cpl_property_get_type(p)) {</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>             <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>                 new_name = uves_sprintf(<span class="stringliteral">"'%s','C'"</span>, name);</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>             <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>                 new_name = uves_sprintf(<span class="stringliteral">"'%s','I'"</span>, name);</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>             <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>                 new_name = uves_sprintf(<span class="stringliteral">"'%s','R*4'"</span>, name);</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>             <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>                 new_name = uves_sprintf(<span class="stringliteral">"'%s','R*8'"</span>, name);</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>                 assure(<span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me %s %s"</span>, name,</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>                        <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_property_get_type(p)));</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>             }</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> </div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>             uves_free_table(&new_values);</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>             new_values = cpl_table_new(2);</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>             cpl_table_new_column(new_values, <span class="stringliteral">"Val"</span>, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>             n_prop = 0;</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>             </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>             <span class="comment">/* And collect this and any subsequent properties with same name */</span></div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>             <span class="keywordflow">for</span> (j = i; j < plist_size; j++) {</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>           cpl_property *p2;</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span> </div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( p2 = uves_propertylist_get(*header, j) );</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>                 <span class="keywordflow">if</span> (strcmp(cpl_property_get_name(p2), name) == 0) {</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Found %s"</span>, name);</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> </div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>                     <span class="comment">/* Here, we would like to remove p2 from the list</span></div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span> <span class="comment">                       in order not to process it again, but uves_propertylists</span></div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> <span class="comment">                       don't support that */</span></div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>                     cpl_property_set_comment(p2, <span class="stringliteral">"PROCESSED"</span>);</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>             </div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>                     assure( cpl_property_get_type(p2) == cpl_property_get_type(p),</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>                             CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>                             <span class="stringliteral">"Found property %s with type %s and with type %s"</span>,</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>                             name, </div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>                             <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_property_get_type(p)),</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>                             <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_property_get_type(p2)));</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>             </div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>                     uves_free_string(&v);</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>                     <span class="keywordflow">switch</span> (cpl_property_get_type(p2)) {</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>                     <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>                       <span class="keywordflow">if</span>(strlen(cpl_property_get_string(p2)) > 0) {</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>                         v = uves_sprintf(<span class="stringliteral">"%s"</span>, cpl_property_get_string(p2));</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>               } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Empty string descriptor"</span>);</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>             v=cpl_malloc(1);</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>                         *v=<span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>               }</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>               <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>                     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>               v = uves_sprintf(<span class="stringliteral">"%d"</span>, cpl_property_get_int(p2));</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>               <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>                     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>                       v = uves_sprintf(<span class="stringliteral">"%g"</span>, cpl_property_get_float(p2));</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>                       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>                     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>                       v = uves_sprintf(<span class="stringliteral">"%g"</span>, cpl_property_get_double(p2));</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>                       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>                     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>                       assure(<span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, </div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>                              <span class="stringliteral">"Implement me %s %s"</span>, name,</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>                              <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_property_get_type(p2)));</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>                       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>                     }</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>             assure(v != NULL, CPL_ERROR_UNSPECIFIED,<span class="stringliteral">"Allocation failure"</span>);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>                     assure( strlen(v) <= 80 - strlen(<span class="stringliteral">"HISTORY "</span>),</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>                             CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>                             <span class="stringliteral">"Value (%s) too long string"</span>,</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>                             v);</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>           </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>                  </div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span> </div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>                     <span class="comment">/* Increase table size as necessary */</span></div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>                     <span class="keywordflow">if</span> (n_prop >= cpl_table_get_nrow(new_values))</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>                         {</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>                             cpl_table_set_size(new_values, </div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>                                                2*cpl_table_get_nrow(new_values));</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>                         }</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>                         </div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>                     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cpl_table_set_string(new_values, <span class="stringliteral">"Val"</span>, n_prop, v) );</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>                     n_prop += 1;</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>                 }</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>             }</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>             cpl_table_set_size(new_values, n_prop);</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>             <span class="comment">/* if (strcmp(name, "SIGMAFRAME") == 0) {</span></div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span> <span class="comment">               cpl_table_dump(new_values, 0, cpl_table_get_nrow(new_values), stderr);</span></div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span> <span class="comment">               uves_print_uves_propertylist(*header, 0, uves_propertylist_get_size(*header));</span></div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span> <span class="comment">               } */</span></div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>                         </div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>             <span class="comment">/* Convert to 1+n+1 HISTORY entries */</span></div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>             uves_propertylist_append_string(result, <span class="stringliteral">"HISTORY"</span>, new_name);</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>             <span class="keywordflow">for</span> (j = 0; j < cpl_table_get_nrow(new_values); j++)</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>                 {</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>                     uves_propertylist_append_string(result, <span class="stringliteral">"HISTORY"</span>,</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>                                                     cpl_table_get_string(new_values, <span class="stringliteral">"Val"</span>, j));</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>                 }</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>             uves_propertylist_append_string(result, <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span> </div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> </div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>         }</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>             uves_free_property(&new_prop);</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>             new_prop = cpl_property_duplicate(p);</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>             uves_propertylist_append_property(result, new_prop);</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>         }</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span> </div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>     }</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span> </div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>     uves_free_propertylist(header);</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>     *header = <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(result);</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>     </div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>   cleanup:</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>     uves_free_string_const(&new_name);</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>     uves_free_string(&v);</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>     uves_free_table(&new_values);</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>     uves_free_property(&new_prop);</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>     uves_free_propertylist(&result);</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>     <span class="keywordflow">return</span>;    </div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span> }</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span> </div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span> <span class="keyword">static</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *</div>
-<div class="line"><a name="l00878"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga9e7eadf2d9728e691ea6faf51032cd8c">  878</a></span> <a class="code" href="group__flames__midas__def.html#ga9e7eadf2d9728e691ea6faf51032cd8c" title="Load + parse FITS header HISTORY keywords.">load_header</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename,</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>         <span class="keywordtype">int</span> extension)</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> {</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *fitsheader = NULL;</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *result = NULL;</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>     <span class="keywordtype">int</span> plist_size, i;</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *new_name = NULL;</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *new_value = NULL;</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span> </div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *desc_name = NULL;</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>     <span class="keyword">const</span> <span class="keywordtype">void</span> *values = NULL;</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>     </div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( fitsheader = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(filename, extension),</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>        <span class="stringliteral">"Could not load extension %d header from file %s"</span>, extension, filename);</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> </div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>     result = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>     plist_size = <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(fitsheader);</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>     <span class="keywordflow">for</span> (i = 0; i < plist_size; i++) {</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>         cpl_property *p = uves_propertylist_get(fitsheader, i);</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *name = cpl_property_get_name(p);</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>         <span class="keywordtype">bool</span> convert_from_midas = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>         </div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>         <span class="keywordflow">if</span> (strcmp(name, <span class="stringliteral">"HISTORY"</span>) == 0)</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>             {</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>                 <span class="keyword">const</span> <span class="keywordtype">char</span> *value;</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>                 </div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>                 <span class="keywordflow">if</span> (cpl_property_get_type(p) == CPL_TYPE_STRING)</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>                     {</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>                         value = cpl_property_get_string(p);</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>                         </div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>                         <span class="comment">/* If a MIDAS descriptor is encoded here.</span></div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span> <span class="comment">                           Must match "'.+'"</span></div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span> <span class="comment">                        */</span></div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>                         <span class="keywordflow">if</span> ((<span class="keywordtype">int</span>)strlen(value) >= 3 && </div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>                             value[0] == <span class="charliteral">'\''</span> &&</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>                             strstr(value+2, <span class="stringliteral">"'"</span>) != NULL)</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>                             {</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>                                 <span class="comment">/* Get descriptor name. */</span></div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>                                 uves_free_string_const(&desc_name);</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>                                 desc_name = cpl_strdup(value+1);</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>                                 *(strstr(desc_name, <span class="stringliteral">"'"</span>)) = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>                                 </div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>                                 convert_from_midas = !<a class="code" href="group__flames__midas__def.html#ga62f37c098ceea9f00ff6d148787d94a2" title="Find out if FITS descriptor has a different name from MIDAS.">is_special_midas_descr</a>(desc_name);</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>                                 </div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                                 <span class="comment">/* i.e. don't convert e.g</span></div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span> <span class="comment">                                   HISTORY 'LHCUTS'</span></div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> <span class="comment">                                */</span></div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>                             }</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>                     }</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>                     {</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>                         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"%s has HISTORY property of non-string type (%s)"</span>,</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>                                          filename, </div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>                                          <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_property_get_type(p)));</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>                     }</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>             }</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>         </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>         <span class="keywordflow">if</span> (convert_from_midas) {</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>             <span class="keywordtype">int</span> length, j;</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>             <span class="keywordtype">int</span> ncards;</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>             cpl_type type;</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>             </div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>             uves_free(values); values = NULL;</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( values = </div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>                    uves_read_midas_array(fitsheader, desc_name, &length, &type,</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                                          &ncards),</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                    <span class="stringliteral">"Could not get values of HISTORY descriptor '%s'"</span>, desc_name);</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>             </div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>             i += ncards-1;</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>             </div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>             <span class="comment">/* Create new properties */</span></div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>             <span class="keywordflow">for</span> (j = 0; j < ((type == CPL_TYPE_STRING) ? 1 : length); j++) {</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> </div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                 uves_free_string_const(&new_name);</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>                 new_name = uves_sprintf(<span class="stringliteral">"%s"</span>, desc_name);</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>                 </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>                 <span class="keywordflow">switch</span>(type) {</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                 <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                     <a class="code" href="group__uves__propertylist.html#gaad79e5cdd03fa3c809205ca63c8951b9" title="Append an integer value to a property list.">uves_propertylist_append_c_int</a>(result, new_name, ((<span class="keywordtype">int</span>*)values)[j], <span class="stringliteral">"MIDAS_DESC"</span>);</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>                 <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                     <a class="code" href="group__uves__propertylist.html#ga31238b65a9fdb7e3db3d1d0dcf6b6bbe" title="Append a float value to a property list.">uves_propertylist_append_c_float</a>(result, new_name, ((<span class="keywordtype">float</span>*)values)[j], <span class="stringliteral">"MIDAS_DESC"</span>);</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                 <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>                     <a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93" title="Append a double value to a property list.">uves_propertylist_append_c_double</a>(result, new_name, ((<span class="keywordtype">double</span>*)values)[j], <span class="stringliteral">"MIDAS_DESC"</span>);</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>                 <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>                     <a class="code" href="group__uves__propertylist.html#ga39fee1a93e3baa0085017d4870144d7c" title="Append a string value to a property list.">uves_propertylist_append_c_string</a>(result, new_name, (<span class="keywordtype">char</span> *)values, <span class="stringliteral">"MIDAS_DESC"</span>);</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>                 <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>                     assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>                             <span class="stringliteral">"Type is %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>                 }</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>             }</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>         }</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>             uves_propertylist_append_property(result, p);</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>         }</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>     }</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>     </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>   cleanup:</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>     uves_free_string_const(&new_name);</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>     uves_free_string_const(&new_value);</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>     uves_free_string_const(&desc_name);</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>     uves_free_propertylist(&fitsheader);</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>     uves_free(values); values = NULL;</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>     {</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>         uves_free_propertylist(&result);</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>     }</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span> </div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> }</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span> cpl_type</div>
-<div class="line"><a name="l00998"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga6beb815e71b5dc0c97723fea885b87fb">  998</a></span> <a class="code" href="group__flames__midas__def.html#ga6beb815e71b5dc0c97723fea885b87fb" title="Map MIDAS dtypes to CPL types.">flames_midas_image_dtype_to_cpltype</a>(<span class="keywordtype">int</span> dtype)</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span> {</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>     cpl_type type = CPL_TYPE_INVALID;</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> </div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>     <span class="keywordflow">switch</span>(dtype) {</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>     <span class="keywordflow">case</span> D_OLD_FORMAT: type = CPL_TYPE_FLOAT; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>     <span class="keywordflow">case</span> D_R4_FORMAT: type = CPL_TYPE_FLOAT; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>     <span class="keywordflow">case</span> D_R8_FORMAT: type = CPL_TYPE_DOUBLE; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>     <span class="keywordflow">case</span> D_I1_FORMAT: type = CPL_TYPE_INT; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>     <span class="keywordflow">case</span> D_I2_FORMAT: type = CPL_TYPE_INT; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>     <span class="keywordflow">case</span> D_I4_FORMAT: type = CPL_TYPE_INT; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me %d"</span>,</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>                 dtype);</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>     }</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> </div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>   cleanup:</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>     <span class="keywordflow">return</span> type;</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> }</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> </div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01029"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga01414f0f04f79fd8686c2f6f9f478fbc"> 1029</a></span> <a class="code" href="group__flames__midas__def.html#ga01414f0f04f79fd8686c2f6f9f478fbc" title="Load frame FITS header if not already in memory.">load_frame_header</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>)</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> {</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>     <span class="keywordtype">int</span> extension = 0; <span class="comment">/* For tables and images */</span></div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>     <span class="keywordflow">if</span> (frames[<span class="keywordtype">id</span>].header == NULL)</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>     {</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>             <span class="comment">/* Convert MIDAS HISTORY descriptors to internal format */</span></div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( frames[<span class="keywordtype">id</span>].header = <a class="code" href="group__flames__midas__def.html#ga9e7eadf2d9728e691ea6faf51032cd8c" title="Load + parse FITS header HISTORY keywords.">load_header</a>(frames[<span class="keywordtype">id</span>].filename,</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>                                              extension),</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>                    <span class="stringliteral">"Error loading header from %s"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span> </div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Loaded %s header (%ld FITS cards)"</span>,</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>                            frames[<span class="keywordtype">id</span>].filename,</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>                            <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(frames[<span class="keywordtype">id</span>].header));</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>     }</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>     </div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> </div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>   cleanup:</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> }</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> </div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01065"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gac43d4468f847fadb5e9ff0895b0cab16"> 1065</a></span> <a class="code" href="group__flames__midas__def.html#gac43d4468f847fadb5e9ff0895b0cab16" title="CPL workaround DFS03746.">set_column_format_unit_tnull</a>(cpl_table *t, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *theader)</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span> {</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *colname;</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> </div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>     <span class="keywordtype">int</span> tfield; <span class="comment">/* number of columns */</span></div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>     <span class="keywordtype">char</span> *key_type = NULL;</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>     <span class="keywordtype">char</span> *key_form = NULL;</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>     <span class="keywordtype">char</span> *key_unit = NULL;</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>     <span class="keywordtype">char</span> *key_null = NULL;</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>     <span class="keywordtype">char</span> *val_type = NULL;</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>     <span class="keywordtype">char</span> *val_form = NULL;</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>     <span class="keywordtype">char</span> *val_unit = NULL;</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>     <span class="keywordtype">int</span> val_null;</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> </div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( tfield = <a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(theader, <span class="stringliteral">"TFIELDS"</span>));</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> </div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>     <span class="keywordflow">for</span>(colname = cpl_table_get_column_name(t);</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>         colname != NULL;</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>         colname = cpl_table_get_column_name(NULL)) {</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>         <span class="keywordtype">bool</span> found = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>         <span class="keywordflow">for</span> (i = 1; i <= tfield && !found; i++) {</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>             uves_free_string(&key_type);</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>             uves_free_string(&key_form);</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>             uves_free_string(&key_unit);</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>             uves_free_string(&key_null);</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>             uves_free_string(&val_type);</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>             uves_free_string(&val_form);</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>             uves_free_string(&val_unit);</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>             key_type = uves_sprintf(<span class="stringliteral">"TTYPE%d"</span>, i); <span class="comment">/* column name */</span></div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>             key_form = uves_sprintf(<span class="stringliteral">"TFORM%d"</span>, i);</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>             key_unit = uves_sprintf(<span class="stringliteral">"TUNIT%d"</span>, i);</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>             key_null = uves_sprintf(<span class="stringliteral">"TNULL%d"</span>, i);</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>             </div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>             <span class="comment">/* remove trailing blanks */</span></div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>             val_type = cpl_strdup(<a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(theader, key_type));</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>             <span class="keywordflow">if</span> (strlen(val_type) > 0) {</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>                 <span class="keywordflow">while</span> (val_type[strlen(val_type)-1] == <span class="charliteral">' '</span>) {</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>                     val_type[strlen(val_type)-1] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>                 }</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>             }</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>             </div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>             <span class="keywordflow">if</span> (strcmp(val_type, colname) == 0)  {</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>                 found = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>                 <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(theader, key_form))  {</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>                     val_form = cpl_strdup(<a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(theader, key_form));</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>                     <span class="keywordflow">if</span> (strlen(val_form) > 0) {</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>                         <span class="keywordflow">while</span> (val_form[strlen(val_form)-1] == <span class="charliteral">' '</span>) {</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>                             val_form[strlen(val_form)-1] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>                         }</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>                     }</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>                     </div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>                     cpl_table_set_column_format(t, colname, val_form);</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>                 }</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>                 <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(theader, key_unit))  {</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>                     val_unit = cpl_strdup(<a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(theader, key_unit));</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>                     <span class="keywordflow">if</span> (strlen(val_unit) > 0) {</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>                         <span class="keywordflow">while</span> (val_unit[strlen(val_unit)-1] == <span class="charliteral">' '</span>) {</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>                             val_unit[strlen(val_unit)-1] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>                         }</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>                     }</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>                     </div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>                     cpl_table_set_column_unit(t, colname, val_unit);</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>                 }</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>                     <span class="comment">/* FLAMES C code expects the unit to be always non-NULL,</span></div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span> <span class="comment">                       therefore set it to an empty string. </span></div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> <span class="comment"></span></div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> <span class="comment">                       This was guaranteed by CPL-3.x which always wrote </span></div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> <span class="comment">                       the TUNIT keyword when saving.</span></div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> <span class="comment"></span></div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> <span class="comment">                       But with CPL-4, the TUNIT keyword is not always present.</span></div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>                     cpl_table_set_column_unit(t, colname, <span class="stringliteral">"        "</span>);</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>                 }</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> </div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>                 <span class="keywordflow">if</span> (cpl_table_get_column_type(t, colname) == CPL_TYPE_INT &&</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>                     <a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(theader, key_null))  {</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>                     val_null = <a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(theader, key_null);</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span> </div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>                     cpl_table_fill_invalid_int(t, colname, val_null);</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>                 }</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>             }</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>         }</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>     }</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>     </div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>   cleanup:</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>     uves_free_string(&key_type);</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>     uves_free_string(&key_form);</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>     uves_free_string(&key_unit);</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>     uves_free_string(&key_null);</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>     uves_free_string(&val_type);</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     uves_free_string(&val_form);</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>     uves_free_string(&val_unit);</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> }</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> </div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01170"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886"> 1170</a></span> <a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886" title="Load image/table if not already in memory.">load_frame</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>)</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span> {</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *theader = NULL;</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>     cpl_imagelist *ilist = NULL;</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>     fitsfile *fptr = NULL;</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> </div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>     <span class="comment">/* doesn't have to hold here: passure( invariant(id), " "); */</span></div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span> </div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>     <span class="keywordflow">if</span> (frames[<span class="keywordtype">id</span>].is_image) {</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>         <span class="keywordflow">if</span> (frames[<span class="keywordtype">id</span>].data.image.image == NULL) {</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>             <span class="keywordtype">long</span> naxes[4];</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>             <span class="keywordtype">long</span> firstpixel[4] = {1, 1, 1, 1};</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>             <span class="keywordtype">int</span> naxis;</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>             <span class="keywordtype">int</span> fio_status = 0;            </div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>             </div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Loading image %s (type %s) to memory"</span>, </div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>                            frames[<span class="keywordtype">id</span>].filename, </div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>                            <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(frames[<span class="keywordtype">id</span>].data.image.type));</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>             </div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>             <span class="comment">/* Use CFITSIO. CPL doesn't handle 4d images */</span></div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span> </div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>             fits_open_file(&fptr, frames[<span class="keywordtype">id</span>].filename, READONLY, &fio_status);</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>             </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>             assure( fio_status == 0, CPL_ERROR_FILE_IO,</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>                     <span class="stringliteral">"Failed to open %s for reading"</span>, frames[<span class="keywordtype">id</span>].filename );</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>     </div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>             <span class="comment">/* Get the image dimension */</span></div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>             fits_get_img_dim(fptr, &naxis, &fio_status);</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>             assure( naxis == 1 || naxis == 2 || naxis == 3 || naxis == 4,</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>                     CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal dimension: %d"</span>, naxis);</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>             </div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>             <span class="comment">/* Get the file size */</span></div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>             naxes[0] = 1;</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>             naxes[1] = 1;</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>             naxes[2] = 1;</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>             naxes[3] = 1;</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>             fits_get_img_size(fptr, naxis, naxes, &fio_status);</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>             assure( fio_status == 0, CPL_ERROR_FILE_IO,</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>                     <span class="stringliteral">"Failed to get %s image size"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> </div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> </div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>             frames[id].data.image.image = cpl_image_new(naxes[0] * naxes[1] * naxes[2] * naxes[3], 1,</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>                                                         frames[<span class="keywordtype">id</span>].data.image.type);</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> </div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>             <span class="keywordflow">switch</span>(frames[<span class="keywordtype">id</span>].data.image.type) {</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>             <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>                 fits_read_pix(fptr, TDOUBLE, firstpixel, naxes[0] * naxes[1] * naxes[2] * naxes[3],</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>                               NULL, cpl_image_get_data_double(frames[<span class="keywordtype">id</span>].data.image.image),</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>                               NULL, &fio_status);</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>             <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>                 fits_read_pix(fptr, TFLOAT, firstpixel, naxes[0] * naxes[1] * naxes[2] * naxes[3],</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>                               NULL, cpl_image_get_data_float(frames[<span class="keywordtype">id</span>].data.image.image),</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>                               NULL, &fio_status);</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>             <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>                 fits_read_pix(fptr, TINT, firstpixel, naxes[0] * naxes[1] * naxes[2] * naxes[3],</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>                               NULL, cpl_image_get_data_int(frames[<span class="keywordtype">id</span>].data.image.image),</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>                               NULL, &fio_status);</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>                 assure( <span class="keyword">false</span>, CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>                         <span class="stringliteral">"Illegal type %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(frames[<span class="keywordtype">id</span>].data.image.type));</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> </div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>             }</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>             </div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>             fits_close_file(fptr, &fio_status) ;</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>             assure( fio_status == 0, CPL_ERROR_FILE_IO,</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>                     <span class="stringliteral">"Failed to load image %s"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>  </div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>         }</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>     }</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>         {</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>             <span class="keywordflow">if</span> (frames[<span class="keywordtype">id</span>].data.table.table == NULL)</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>                 {</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>                     <span class="keywordtype">int</span> extension = 1;</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>                     <span class="keywordtype">int</span> mark_invalid_values = 1; <span class="comment">/* 1=yes */</span></div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *name;</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>                     <span class="keywordtype">int</span> row;</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span> </div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Loading table %s to memory"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> </div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( frames[<span class="keywordtype">id</span>].data.table.table = </div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>                            cpl_table_load(frames[<span class="keywordtype">id</span>].filename,</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>                                           extension,</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>                                           mark_invalid_values),</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>                            <span class="stringliteral">"Error loading table from %s"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>                     </div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>                     <span class="keywordflow">if</span> (!cpl_table_has_column(frames[<span class="keywordtype">id</span>].data.table.table, <span class="stringliteral">"Select"</span>)) {</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>                         cpl_table_new_column(frames[<span class="keywordtype">id</span>].data.table.table, <span class="stringliteral">"Select"</span>, </div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>                                              CPL_TYPE_INT);</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>                         cpl_table_fill_column_window_int(</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>                             frames[<span class="keywordtype">id</span>].data.table.table, <span class="stringliteral">"Select"</span>,</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>                             0, cpl_table_get_nrow(frames[<span class="keywordtype">id</span>].data.table.table),</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>                             1);</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>                     }</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>                     </div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>                     frames[id].data.table.maxrow = cpl_table_get_nrow(frames[<span class="keywordtype">id</span>].data.table.table);</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> </div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( theader = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(frames[<span class="keywordtype">id</span>].filename, extension),</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>                            <span class="stringliteral">"Error loading table header from %s"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>                     </div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>                     <span class="comment">/* Assign numbers to columns */</span></div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>                     frames[id].data.table.colnames = </div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>                         cpl_table_new(cpl_table_get_ncol(frames[<span class="keywordtype">id</span>].data.table.table) - 1);</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>                     cpl_table_new_column(frames[<span class="keywordtype">id</span>].data.table.colnames, COLNAME, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>                     </div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>                     <span class="keywordflow">for</span>(name = cpl_table_get_column_name(frames[<span class="keywordtype">id</span>].data.table.table), row = 0;</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>                         name != NULL;</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>                         name = cpl_table_get_column_name(NULL)) {</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>                         <span class="keywordflow">if</span> (strcmp(name, <span class="stringliteral">"Select"</span>) != 0) {</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>                             cpl_table_set_string(frames[<span class="keywordtype">id</span>].data.table.colnames, COLNAME, row, name);</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>                             row++;</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>                         }</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>                     }</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>                     </div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>                     <span class="comment">/* Workaround here: cpl_table_load ignores the table column</span></div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span> <span class="comment">                       units/formats and TNULL, so read + set those manually */</span></div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gac43d4468f847fadb5e9ff0895b0cab16" title="CPL workaround DFS03746.">set_column_format_unit_tnull</a>(frames[<span class="keywordtype">id</span>].data.table.table, theader),</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>                            <span class="stringliteral">"Error loading table %s format/units"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>                 }</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>         }</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>     </div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>            </div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>   cleanup:</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>     uves_free_imagelist(&ilist);</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>     uves_free_propertylist(&theader);</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> }</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span> </div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span> <span class="keyword">static</span> cpl_property **</div>
-<div class="line"><a name="l01316"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga660658a114854b46d0dd27605ea01711"> 1316</a></span> <a class="code" href="group__flames__midas__def.html#ga660658a114854b46d0dd27605ea01711" title="Create descriptors.">create_descr</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header,</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>          <span class="keyword">const</span> <span class="keywordtype">char</span> *descr,</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>          <span class="keywordtype">char</span> type, <span class="keywordtype">int</span> length,</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>          <span class="keywordtype">int</span> nexist)</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span> {</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *fits_descr = NULL;</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *previous_descr = NULL;</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>     cpl_property **cards = NULL;</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>     cpl_property *new_prop = NULL;</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span> </div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>     assure( length >= 1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Length = %d"</span>, length);</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span> </div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>     cards = cpl_malloc((length+1) * <span class="keyword">sizeof</span>(cpl_property *));</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span> </div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>     <span class="keywordflow">if</span> (nexist > 0)</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>     {</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>         i = 0;</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( previous_descr = <a class="code" href="group__flames__midas__def.html#gac5996d64d908d2cfa6f94ea779a0ea95" title="Map MIDAS descriptors to FITS equivalents.">convert_to_fits</a>(descr, i + nexist),</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>            <span class="stringliteral">"Could not convert %s to FITS"</span>, descr);</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>     }</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>     {</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>         previous_descr = uves_sprintf(<span class="stringliteral">"----"</span>);</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>     }</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span> </div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>     <span class="keywordflow">for</span> (i = 1; i <= length; i++)</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>     {</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *comment;</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span> </div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>             uves_free_string_const(&fits_descr);</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( fits_descr = <a class="code" href="group__flames__midas__def.html#gac5996d64d908d2cfa6f94ea779a0ea95" title="Map MIDAS descriptors to FITS equivalents.">convert_to_fits</a>(descr, i + nexist),</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>                    <span class="stringliteral">"Could not convert %s to FITS"</span>, descr);</div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span> </div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Creating property %s (%d of %d, type = '%c')"</span>, fits_descr,</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>                            nexist + i, nexist + length, type);</div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> </div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>             <span class="keywordflow">if</span> (strcmp(descr, fits_descr) == 0 &&</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>                 strncmp(descr, <span class="stringliteral">"CTYPE"</span>, 5) != 0 &&</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>                 strncmp(descr, <span class="stringliteral">"CDELT"</span>, 5) != 0 &&</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>                 strncmp(descr, <span class="stringliteral">"CRVAL"</span>, 5) != 0 &&</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>                 strncmp(descr, <span class="stringliteral">"CRPIX"</span>, 5) != 0 &&</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>                 strncmp(descr, <span class="stringliteral">"ESO QC"</span>, 6) != 0 &&</div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>                 strcmp(descr, <span class="stringliteral">"BUNIT"</span>) != 0 &&</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>                 strcmp(descr, <span class="stringliteral">"COLS"</span>) != 0 &&</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>                 strcmp(descr, <span class="stringliteral">"ROWS"</span>) != 0 &&</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>                 strcmp(descr, <span class="stringliteral">"PIXMAX"</span>) != 0 &&</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>                 strcmp(descr, <span class="stringliteral">"STARTX"</span>) != 0 &&</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>                 strcmp(descr, <span class="stringliteral">"STARTY"</span>) != 0 &&</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>                 strcmp(descr, <span class="stringliteral">"STEPX"</span>) != 0 &&</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>                 strcmp(descr, <span class="stringliteral">"STEPY"</span>) != 0 &&</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>                 strcmp(descr, <span class="stringliteral">"YSHIFT"</span>) != 0 &&</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>                 strcmp(descr, <span class="stringliteral">"DATAMIN"</span>) != 0 &&</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>                 strcmp(descr, <span class="stringliteral">"DATAMAX"</span>) != 0 &&</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>                 strcmp(descr, <span class="stringliteral">"NFLATS"</span>) != 0 &&</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>                 strcmp(descr, <span class="stringliteral">"RON"</span>) != 0 &&</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>                 strcmp(descr, <span class="stringliteral">"GAIN"</span>) != 0 &&</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>                 strcmp(descr, <span class="stringliteral">"FIBRESON"</span>) != 0)</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>                 {</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>                 <span class="comment">/* Then it is a MIDAS descriptor which must be</span></div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span> <span class="comment">                   stored in HISTORY keywords */</span></div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>                 comment = <span class="stringliteral">"MIDAS_DESC"</span>;</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>             }</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>             <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>                 <span class="comment">/* It is a descriptor recognized by the FITS format</span></div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span> <span class="comment">                   (such as NAXIS1), which should not be converted</span></div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span> <span class="comment">                   into HISTORY format */</span></div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>                 comment = NULL;</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>             }</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>                 </div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span> </div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>             <span class="keywordflow">switch</span>(type)</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>                 {</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>                 <span class="keywordflow">case</span> <span class="charliteral">'I'</span>: <a class="code" href="group__uves__propertylist.html#gaad79e5cdd03fa3c809205ca63c8951b9" title="Append an integer value to a property list.">uves_propertylist_append_c_int</a>   (header, fits_descr, 0, comment)  ; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>                 <span class="keywordflow">case</span> <span class="charliteral">'R'</span>: <a class="code" href="group__uves__propertylist.html#ga31238b65a9fdb7e3db3d1d0dcf6b6bbe" title="Append a float value to a property list.">uves_propertylist_append_c_float</a> (header, fits_descr, 0.0, comment); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>                 <span class="keywordflow">case</span> <span class="charliteral">'C'</span>: <a class="code" href="group__uves__propertylist.html#ga39fee1a93e3baa0085017d4870144d7c" title="Append a string value to a property list.">uves_propertylist_append_c_string</a>(header, fits_descr, <span class="stringliteral">"0"</span>, comment); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>                 <span class="keywordflow">case</span> <span class="charliteral">'D'</span>: <a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93" title="Append a double value to a property list.">uves_propertylist_append_c_double</a>(header, fits_descr, 0.0, comment); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>                 <span class="keywordflow">default</span>: assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"%c"</span>, type); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>                 }</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span> </div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>             <span class="comment">/* If name changes with index, get the first occurence */</span></div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span> </div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>         cards[i-1] = uves_find_property(header,</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>                         fits_descr, </div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>                         strcmp(fits_descr, previous_descr) != 0 ?</div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>                         0 :  i-1 + nexist);</div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>         </div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cards[i-1] != NULL, <span class="stringliteral">"%s %d %d"</span>, fits_descr, i-1, nexist);</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span> </div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>         uves_free_string_const(&previous_descr);</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>         previous_descr = uves_sprintf(<span class="stringliteral">"%s"</span>, fits_descr);</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>     }</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> </div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>     cards[length] = NULL;</div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span> </div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>   cleanup:</div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>     uves_free_property(&new_prop);</div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>     uves_free_string_const(&fits_descr);</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>     uves_free_string_const(&previous_descr);</div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>     <span class="keywordflow">return</span> cards;</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span> }</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span> </div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="keyword">static</span> cpl_property **</div>
-<div class="line"><a name="l01440"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga39b00de90ed04a8759704d6ad997c30c"> 1440</a></span> <a class="code" href="group__flames__midas__def.html#ga39b00de90ed04a8759704d6ad997c30c" title="Get descriptor information.">get_descr_info</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *descr, </div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>                <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *length, <span class="keywordtype">int</span> *bytelem)</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> {</div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span> </div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> </div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>   *bytelem=*bytelem; <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span> </div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>     cpl_property **cards = NULL;</div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>     cpl_type t;</div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *fits_descr = NULL;</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *previous_fits_descr = NULL;</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>     *type = <span class="charliteral">' '</span>;</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span> </div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span> </div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(<span class="keywordtype">id</span>), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>         <span class="stringliteral">"Frame no. %d is not open"</span>, <span class="keywordtype">id</span>);</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>     </div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#ga01414f0f04f79fd8686c2f6f9f478fbc" title="Load frame FITS header if not already in memory.">load_frame_header</a>(<span class="keywordtype">id</span>),</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>        <span class="stringliteral">"Could not load header of file %s"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span> </div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>     cards = cpl_calloc(1, <span class="keyword">sizeof</span>(cpl_property *));</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( cards );</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>     </div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>     *length = 0;</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>     <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>         *length += 1;</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>         cards = cpl_realloc(cards, (*length)*<span class="keyword">sizeof</span>(cpl_property *));</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>         </div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>         uves_free_string_const(&previous_fits_descr);</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>         previous_fits_descr = uves_sprintf(<span class="stringliteral">"%s"</span>, fits_descr != NULL ? fits_descr : <span class="stringliteral">"----"</span>);</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>         </div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>         uves_free_string_const(&fits_descr);</div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>         fits_descr = <a class="code" href="group__flames__midas__def.html#gac5996d64d908d2cfa6f94ea779a0ea95" title="Map MIDAS descriptors to FITS equivalents.">convert_to_fits</a>(descr, *length);</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>         </div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Searching for %d. occurence of %s"</span>, </div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>                        strcmp(fits_descr, previous_fits_descr) == 0 ?</div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>                        *length : 1,</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>                        fits_descr);</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>         <span class="comment">//uves_msg_debug("prev=%s curr=%s",previous_fits_descr,fits_descr);</span></div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>         cards[*length-1] =</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>             uves_find_property(frames[<span class="keywordtype">id</span>].header,</div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>                                fits_descr, </div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>                                strcmp(fits_descr, previous_fits_descr) == 0 ?</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>                                *length - 1 : 0);</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>     }</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>     <span class="keywordflow">while</span> (cards[*length-1] != NULL);</div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>     </div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>     *length -= 1;</div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span> </div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>     <span class="keywordflow">if</span> (cards[0] != NULL)</div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>     {</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>         t = cpl_property_get_type(cards[0]);</div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>        </div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>         <span class="keywordflow">switch</span>(t)</div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>         {</div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>         <span class="keywordflow">case</span> CPL_TYPE_INT   : *type = <span class="charliteral">'I'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT : *type = <span class="charliteral">'R'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING: *type = <span class="charliteral">'C'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE: *type = <span class="charliteral">'D'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>         <span class="keywordflow">default</span>: *type = <span class="charliteral">' '</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>         }</div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span> </div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Type is %c"</span>, *type);</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>     <span class="comment">//AMO: Here the check on the length was *length == 1</span></div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>         assure( *type != <span class="charliteral">'C'</span> || *length <= 3, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>             <span class="stringliteral">"Cannot handle string array descriptor %s %s of length %d"</span>,</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>         descr, cpl_property_get_string(cards[0]),*length );</div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>     </div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>         <span class="keywordflow">if</span> (*type == <span class="charliteral">'C'</span>)</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>         {</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>     <span class="comment">//AMO: Here the check on the length was *length == 1</span></div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( *length <= 3, <span class="stringliteral">"%d"</span>, *length );</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>             <span class="comment">/* ... but we must return the string length,</span></div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span> <span class="comment">               not the number of cards */</span></div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>             *length = strlen(cpl_property_get_string(cards[0]));</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>         }</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>     }</div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>     {</div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%s not found"</span>, fits_descr);</div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>         cpl_free(cards); cards = NULL;</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>         *length = 0;</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>     }</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span> </div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>     </div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>   cleanup:</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>     uves_free_string_const(&fits_descr);</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>     uves_free_string_const(&previous_fits_descr);</div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>     {</div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>         cpl_free(cards); cards = NULL;</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>     }</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span> </div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>     <span class="keywordflow">return</span> cards;</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span> }</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span> </div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01549"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gafb520332aaae57a6e23cd3004aaf9edd"> 1549</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gafb520332aaae57a6e23cd3004aaf9edd" title="Get into the MIDAS environment.">flames_midas_scspro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name)</div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span> {</div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span> </div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>     assure( current_caller == NULL, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>         <span class="stringliteral">"MIDAS mode already running"</span>);</div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span> </div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Initializing %s"</span>, name);</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>     current_caller = uves_sprintf(<span class="stringliteral">"%s"</span>, name);</div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span> </div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>     assure( strcmp(name, <span class="stringliteral">"-1"</span>) != 0, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>         <span class="stringliteral">"Running outside MIDAS mode not supported"</span>);</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span> </div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>     <span class="comment">/* Reset all file handles */</span></div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>     <span class="keywordflow">for</span> (i = 0; i < MAX_OPEN; i++)</div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>     {</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>         frames[i].filename = NULL;</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>     }</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span> </div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>   cleanup:</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span> }</div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span> </div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span> </div>
-<div class="line"><a name="l01579"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga404f30f6b856c9aef1049281f08821a7"> 1579</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga404f30f6b856c9aef1049281f08821a7" title="Deinitialize interface.">flames_midas_scsepi</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span> {</div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>     <span class="keywordflow">if</span> (current_caller == NULL)</div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>     {</div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"MIDAS mode not running, "</span></div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>                  <span class="stringliteral">"nothing to stop"</span>);</div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>     }</div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>     {</div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>             <span class="comment">/* Check for unallocated resources */</span></div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>             <span class="keywordflow">for</span> (i = 0; i < MAX_OPEN; i++)</div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>                 {</div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>                     <span class="keywordflow">if</span> (<a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(i))</div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>                         {</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>                             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"%s: %s no. %d: %s not deallocated"</span>,</div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>                                              current_caller,</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>                                              frames[i].is_image ? <span class="stringliteral">"Image"</span> : <span class="stringliteral">"Table"</span>,</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>                                              i, frames[i].filename);</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span> </div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>                             <a class="code" href="group__flames__midas__def.html#ga1d9507f11db5958a512c4bfac897d11e" title="Deallocate frame.">frame_free</a>(i);</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>                         }</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>                 }</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span> </div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Ending %s"</span>, current_caller);</div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>         uves_free_string_const(&current_caller);</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>     }</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span> </div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span> }</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span> </div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01627"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga5782950076486effd61983d7e9cfdca7"> 1627</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga5782950076486effd61983d7e9cfdca7" title="Print debugging info when function returns error.">flames_midas_error_macro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keyword">const< [...]
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>                  <span class="keywordtype">int</span> status)</div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span> {</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%s:%s() execution failed at %s:%s():%d"</span>, </div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>            current_caller != NULL ? current_caller : <span class="stringliteral">"???"</span>,</div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>            <span class="keyword">function</span>, file, <span class="keyword">function</span>, line);</div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>     </div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>     <span class="keywordflow">return</span> status;</div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span> }</div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span> </div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span> </div>
-<div class="line"><a name="l01646"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gafb38d16898bedd5466e128e2fc7685ec"> 1646</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gafb38d16898bedd5466e128e2fc7685ec" title="Deinitialize interface, cleanup and return failure.">flames_midas_fail_macro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keyword">const [...]
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span> { </div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *f = cpl_strdup(current_caller != NULL ? current_caller : <span class="stringliteral">"???"</span>);</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"%s execution failed. Exit from MIDAS mode"</span>, f);</div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span> </div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"  at %s:%s():%d"</span>, file, <span class="keyword">function</span>, line);</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span> </div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>     <a class="code" href="group__flames__midas__def.html#ga404f30f6b856c9aef1049281f08821a7" title="Deinitialize interface.">flames_midas_scsepi</a>();</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span> </div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>     assure( <span class="keyword">false</span>, CPL_ERROR_UNSPECIFIED, <span class="stringliteral">"%s failed"</span>, f);</div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span> </div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>   cleanup:</div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>     uves_free_string_const(&f);</div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span> }</div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span> </div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01673"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gac9bb00d4973c0c331c191b7181813603"> 1673</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gac9bb00d4973c0c331c191b7181813603" title="Write data into integer keyword.">flames_midas_sckwri</a>(<span class="keywordtype">int</span> *key, <span class="keyword">const</span> <span class="keywordtype">int</span> *values, </div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, <span class="keywordtype">int</span> *unit)</div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span> {</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>     <span class="keywordflow">if</span> (unit) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span> </div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( key != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span> </div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Writing %d elements to integer keyword"</span>, maxvals);</div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span> </div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>     <span class="keywordflow">for</span> (i = 0; i < maxvals; i++) {</div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>         key[(felem-1) + i] = values[i];</div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>     }</div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span> </div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>   cleanup:</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span> }</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span> </div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01702"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaf92f6c07d3bdb40c5a94cbda4ef5759d"> 1702</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaf92f6c07d3bdb40c5a94cbda4ef5759d" title="Write data into double keyword.">flames_midas_sckwrd</a>(<span class="keywordtype">double</span> *key, <span class="keyword">const</span> <span class="keywordtype">double</span> *values, </div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, <span class="keywordtype">int</span> *unit)</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span> {</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>     <span class="keywordflow">if</span> (unit) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>     </div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( key != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span> </div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Writing %d elements to double keyword"</span>, maxvals);</div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span> </div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>     <span class="keywordflow">for</span> (i = 0; i < maxvals; i++) {</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>         key[(felem-1) + i] = values[i];</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>     }</div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span> </div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>     <span class="comment">//fixme: is unit used? MIDAS doc. says it's unsupported</span></div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span> </div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>   cleanup:</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span> }</div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span> </div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span> </div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01735"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga456cfe0c7a3174be7b4743a50c35af06"> 1735</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga456cfe0c7a3174be7b4743a50c35af06" title="Write data into character keyword.">flames_midas_sckwrc</a>(<span class="keywordtype">char</span> *key, <span class="keywordtype">int</span> noelem,</div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *values, <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, <span class="keywordtype">int</span> *unit)</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span> {</div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>     <span class="keywordflow">if</span> (unit) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( noelem == 1, CPL_ERROR_UNSUPPORTED_MODE); </div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>     <span class="comment">//fixme: remove from interface if this is always the case</span></div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span> </div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Writing %d elements to character keyword"</span>, maxvals);</div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span> </div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>     strncpy(key+(felem-1), values, maxvals);</div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span> </div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>     <span class="comment">//fixme: is unit used?</span></div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>   cleanup:</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span> }</div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span> </div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01763"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gad5428f85c2051eb80233c722be600384"> 1763</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gad5428f85c2051eb80233c722be600384" title="Get data from character keyword.">flames_midas_sckgetc</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, </div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>              <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, </div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>              <span class="keywordtype">int</span> *actvals, <span class="keywordtype">char</span> *values)</div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span> {</div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span> </div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( key    != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( values != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( actvals!= NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span> </div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>     strncpy(values, key + (felem - 1), maxvals);</div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>     values[strlen(key)+1] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>     *actvals = strlen(values);</div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span> </div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span> <span class="comment">      uves_msg_warning("Copy %s to %s",</span></div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span> <span class="comment">                   key, values);</span></div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span> <span class="comment">    </span></div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span> </div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>   cleanup:</div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span> }</div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span> </div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01797"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaa8dd2c0f402ef4d7f25cab80633315d2"> 1797</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaa8dd2c0f402ef4d7f25cab80633315d2" title="Get data from character keyword (catalogue)">flames_midas_sckgetc_fs</a>(<span class="keyword">const</span> cpl_frameset *key, </div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>                             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, </div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>                             <span class="keywordtype">int</span> *actvals, <span class="keyword">const</span> cpl_frameset **values)</div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span> {</div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>     maxvals=maxvals; <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( key != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>     assure( felem == 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>             <span class="stringliteral">"felem = %d"</span>, felem );</div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( actvals != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( values  != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span> </div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>     *values = key;</div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span> </div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>   cleanup:</div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span> }</div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span> </div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01825"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaf5a5ab0dd30aa57b7190dd16282b405c"> 1825</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaf5a5ab0dd30aa57b7190dd16282b405c" title="Get data from character keyword (frame set pointer)">flames_midas_sckgetc_fsp</a>(cpl_frameset **key, </div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>                             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, </div>
-<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>                             <span class="keywordtype">int</span> *actvals, cpl_frameset ***values)</div>
-<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span> {</div>
-<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>     maxvals=maxvals; <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( key != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>     assure( felem == 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>             <span class="stringliteral">"felem = %d"</span>, felem );</div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( actvals != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( values  != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span> </div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>     *values = key;</div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span> </div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>   cleanup:</div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span> }</div>
-<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span> </div>
-<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01855"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gae85c7a6f7d741e6daef4b9b22ac45445"> 1855</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gae85c7a6f7d741e6daef4b9b22ac45445" title="Read data from double precision keyword.">flames_midas_sckrdd</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *key, <span class="keywordtype">int</span> fele [...]
-<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">double</span> *values, <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null)</div>
-<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span> {</div>
-<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>     <span class="keywordflow">if</span> (unit) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>     <span class="keywordflow">if</span> (null) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span> </div>
-<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( key != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span> </div>
-<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>     *actvals = 0;</div>
-<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>     <span class="keywordflow">for</span> (i = 0; i < maxvals; i++)</div>
-<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>     {</div>
-<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>         values[i] = key[(felem-1)+i];</div>
-<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>         (*actvals)++;</div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>     }</div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span> </div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>     <span class="comment">/* unit, null not implemented in MIDAS */</span></div>
-<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span> </div>
-<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>   cleanup:</div>
-<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span> }</div>
-<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span> </div>
-<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01890"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga111509252ea742fbf16c4d1094e50984"> 1890</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga111509252ea742fbf16c4d1094e50984" title="Read data from real precision keyword.">flames_midas_sckrdr</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> *key, <span class="keywordtype">int</span> felem,  [...]
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">float</span> *values, <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null)</div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span> {</div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>     <span class="keywordflow">if</span> (unit) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>     <span class="keywordflow">if</span> (null) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span> </div>
-<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( key != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span> </div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>     *actvals = 0;</div>
-<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>     <span class="keywordflow">for</span> (i = 0; i < maxvals; i++)</div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>     {</div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>         values[i] = key[(felem-1)+i];</div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>         (*actvals)++;</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>     }</div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span> </div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>     <span class="comment">/* unit, null not implemented in MIDAS */</span></div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span> </div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>   cleanup:</div>
-<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span> }</div>
-<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span> </div>
-<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01925"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga9141f1db2730a7ca7017cb6c3f630212"> 1925</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga9141f1db2730a7ca7017cb6c3f630212" title="Read data from integer keyword.">flames_midas_sckrdi</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> *key, <span class="keywordtype">int</span> felem, <span cla [...]
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">int</span> *values, <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null)</div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span> {</div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>     <span class="keywordflow">if</span> (unit) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>     <span class="keywordflow">if</span> (null) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span> </div>
-<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>     *actvals = 0;</div>
-<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>     <span class="keywordflow">for</span> (i = 0; i < maxvals; i++)</div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>     {</div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>         values[i] = key[(felem-1)+i];</div>
-<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>         (*actvals)++;</div>
-<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>     }</div>
-<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span> </div>
-<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>     <span class="comment">/* unit, null not implemented in MIDAS */</span></div>
-<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span> </div>
-<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span> <span class="comment">/*  cleanup: */</span></div>
-<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span> }</div>
-<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span> </div>
-<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01959"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gadf589fba446c3b815b0f3cd2d1ae2313"> 1959</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gadf589fba446c3b815b0f3cd2d1ae2313" title="Read data from string keyword.">flames_midas_sckrdc</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">int</span> noelm, <span cla [...]
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">char</span> *values, <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null)</div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span> {</div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>     <span class="comment">/* This function is only used in calls, like this</span></div>
-<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span> <span class="comment">       </span></div>
-<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span> <span class="comment">         SCKRDC("H_RON_L",16,1,1,&actvals, h_ron_l, &unit, &null)</span></div>
-<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span> <span class="comment"></span></div>
-<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span> <span class="comment">     where  noelm is the string length and felem = maxvals = 1   */</span></div>
-<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>     <span class="keywordflow">if</span> (unit) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>     <span class="keywordflow">if</span> (null) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span> </div>
-<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>     assure( felem == 1, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span> );</div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>     assure( maxvals == 1, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span> );</div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span> </div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>     strncpy(values, key + (felem - 1), noelm);</div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>     values[noelm] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>     *actvals = strlen(values);</div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span> </div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>     <span class="comment">/* unit, null not implemented in MIDAS */</span></div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span> </div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>   cleanup:</div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span> }</div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span> </div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01996"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751"> 1996</a></span> <a class="code" href="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751" title="Find keyword and provide info on it.">sckfnd</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> the_type, <span class="keyword">const</span> <span class="keywordtype">void</span> *key, <span class="k [...]
-<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span> {</div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>     *noelem=*noelem; <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>     *bytelem=*bytelem; <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>     <span class="keywordflow">if</span> (key == NULL)</div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>     {</div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Keyword is NULL"</span>);   </div>
-<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>         *type = <span class="charliteral">' '</span>;</div>
-<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>     }</div>
-<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>     {</div>
-<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>         *type = the_type;</div>
-<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>     }</div>
-<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>     <span class="comment">/* Fixme: what about noelem  (needs to be passed from the caller) */</span></div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>     </div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span> <span class="comment">//  cleanup:</span></div>
-<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span> }</div>
-<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span> </div>
-<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02020"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaebe09f825bea8022029d7228f65ec0bd"> 2020</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaebe09f825bea8022029d7228f65ec0bd">flames_midas_sckfnd_double</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *key, <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> * [...]
-<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span> {</div>
-<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751" title="Find keyword and provide info on it.">sckfnd</a>(<span class="charliteral">'D'</span>, key, type, noelem, bytelem);</div>
-<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span> }</div>
-<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02029"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gad15ddc46cb5cfb84c0712bd4ea711a31"> 2029</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gad15ddc46cb5cfb84c0712bd4ea711a31">flames_midas_sckfnd_float</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> *key, <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *no [...]
-<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span> {</div>
-<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751" title="Find keyword and provide info on it.">sckfnd</a>(<span class="charliteral">'R'</span>, key, type, noelem, bytelem);</div>
-<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span> }</div>
-<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span> </div>
-<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02039"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gac7a6aa9b94f6cc8f3cde2fbdfc196508"> 2039</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gac7a6aa9b94f6cc8f3cde2fbdfc196508">flames_midas_sckfnd_int</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> *key, <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *noelem [...]
-<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span> {</div>
-<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751" title="Find keyword and provide info on it.">sckfnd</a>(<span class="charliteral">'I'</span>, key, type, noelem, bytelem);</div>
-<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span> }</div>
-<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span> </div>
-<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02049"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaa62164a8510ad12d9cc38d7ba63e6ac2"> 2049</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaa62164a8510ad12d9cc38d7ba63e6ac2">flames_midas_sckfnd_string</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *no [...]
-<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span> {</div>
-<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751" title="Find keyword and provide info on it.">sckfnd</a>(<span class="charliteral">'C'</span>, key, type, noelem, bytelem);</div>
-<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span> }</div>
-<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span> </div>
-<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span> </div>
-<div class="line"><a name="l02062"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga16f28e1fc62964ca37121c376f40f217"> 2062</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga16f28e1fc62964ca37121c376f40f217" title="Display message.">flames_midas_sctput</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *msg, </div>
-<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">function</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keywordtype">int</span> line)</div>
-<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span> {</div>
-<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>     <span class="keywordflow">if</span> (strncmp(msg, <span class="stringliteral">"Error"</span>, 5) == 0)</div>
-<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>     {</div>
-<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span>         <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"%s:%d: %s"</span>, file, line, msg);</div>
-<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>     }</div>
-<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strncmp(msg, <span class="stringliteral">"Warning"</span>, 7) == 0)</div>
-<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>     {</div>
-<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"%s: %s"</span>, <span class="keyword">function</span>, msg);</div>
-<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>     }</div>
-<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>     {</div>
-<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>             <span class="comment">/* indented */</span></div>
-<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>         <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"%s: %s"</span>, <span class="keyword">function</span>, msg);</div>
-<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>     }</div>
-<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span> </div>
-<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span> <span class="comment">//  cleanup:</span></div>
-<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span> }</div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span> </div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02112"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga7066ceaa10571003c4f40b9514befa55"> 2112</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga7066ceaa10571003c4f40b9514befa55" title="Open the frame and return file info in buffer up to 5 integers.">flames_midas_scfinf</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywor [...]
-<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span> {</div>
-<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>     FILE *file;</div>
-<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header = NULL;</div>
-<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span> </div>
-<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"fno = %d"</span>, fno);</div>
-<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span> </div>
-<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>     <span class="keywordflow">if</span> (name == NULL) <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>     </div>
-<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>     <span class="comment">/* Test for existence */</span></div>
-<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span>     file = fopen(name, <span class="stringliteral">"r"</span>);</div>
-<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span>     <span class="keywordflow">if</span> (file == NULL)</div>
-<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>         {</div>
-<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"File %s could not be opened"</span>, name);</div>
-<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>             <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>         }</div>
-<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"File %s could be opened"</span>, name);</div>
-<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>     fclose(file);</div>
-<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>     </div>
-<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>     <span class="keywordflow">if</span> (fno == 3) {</div>
-<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>         <span class="comment">/* The FLAMES code needs only the information about the</span></div>
-<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span> <span class="comment">           file type which is written to ibuf[0] */</span></div>
-<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>         <span class="keywordflow">if</span> (uves_get_nextensions(name) > 0) {</div>
-<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>             ibuf[0] = F_TBL_TYPE;</div>
-<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>         }</div>
-<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>             ibuf[0] = F_IMA_TYPE;</div>
-<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span>         }</div>
-<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>     }</div>
-<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (fno == 4)</div>
-<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>     {</div>
-<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>             <span class="comment">/* The FLAMES code needs only the data type</span></div>
-<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span> <span class="comment">               which is written to ibuf[1] */</span></div>
-<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>             <span class="keywordtype">int</span> bitpix;</div>
-<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span> </div>
-<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(name, 0),</div>
-<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>                    <span class="stringliteral">"Could not load %s primary header"</span>, name);</div>
-<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span> </div>
-<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( bitpix = <a class="code" href="group__uves__pfits.html#ga45d7028cbd48f33f7c5589deb4ccd5c4" title="Find out the BITPIX.">uves_pfits_get_bitpix</a>(header),</div>
-<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>                    <span class="stringliteral">"Could not get BITPIX from %s"</span>, name);</div>
-<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span> </div>
-<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"BITPIX is %d"</span>, bitpix);</div>
-<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span> </div>
-<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>             <span class="keywordflow">switch</span> (bitpix) {</div>
-<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>             <span class="keywordflow">case</span>  16: ibuf[1] = D_I2_FORMAT; <span class="keywordflow">break</span>; <span class="comment">/* 16 bit signed integer */</span></div>
-<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>             <span class="keywordflow">case</span>  32: ibuf[1] = D_I4_FORMAT; <span class="keywordflow">break</span>; <span class="comment">/* 32 bit signed integer */</span></div>
-<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>             <span class="keywordflow">case</span> -32: ibuf[1] = D_R4_FORMAT; <span class="keywordflow">break</span>; <span class="comment">/* 32 bit floating point */</span></div>
-<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>             <span class="keywordflow">case</span> -64: ibuf[1] = D_R8_FORMAT; <span class="keywordflow">break</span>; <span class="comment">/* 64 bit floating point */</span></div>
-<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>                 assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>                         <span class="stringliteral">"Cannot convert BITPIX = %d to DATTYPE"</span>,</div>
-<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>                         bitpix);</div>
-<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>             }</div>
-<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>     }</div>
-<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (fno == 99)</div>
-<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>     {</div>
-<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>             <span class="comment">/* Just test for file existence */</span></div>
-<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>     }</div>
-<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span>     {</div>
-<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>                     <span class="stringliteral">"fno = %d is not needed by FLAMES code"</span>, fno);</div>
-<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>     }</div>
-<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>     </div>
-<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>   cleanup:</div>
-<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>     uves_free_propertylist(&header);</div>
-<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span> }</div>
-<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span> </div>
-<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02193"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gade8dcfb4d9b489491251c0a3bdd37c77"> 2193</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gade8dcfb4d9b489491251c0a3bdd37c77" title="Open an existing image and return its internal file no.">flames_midas_scfopn</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">i [...]
-<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>             <span class="keywordtype">int</span> *imno)</div>
-<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span> {</div>
-<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Trying to open %s"</span>, name);</div>
-<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span> </div>
-<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>     <span class="keywordflow">if</span> (filtype == F_IMA_TYPE) {</div>
-<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span> </div>
-<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>         <span class="keywordflow">if</span> (newopn == 0) {</div>
-<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>             </div>
-<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>             <span class="comment">/* Find first open slot */</span></div>
-<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>             <span class="keywordtype">bool</span> found = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>             <span class="keywordflow">for</span> (i = 0; !found && i < MAX_OPEN; i++)</div>
-<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>                 {</div>
-<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>                     <span class="keywordflow">if</span> (!<a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(i))</div>
-<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>                         {</div>
-<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>                             cpl_type type;</div>
-<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>                             </div>
-<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>                             found = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>                             *imno = i;</div>
-<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span>                             </div>
-<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>                             type = <a class="code" href="group__flames__midas__def.html#ga6beb815e71b5dc0c97723fea885b87fb" title="Map MIDAS dtypes to CPL types.">flames_midas_image_dtype_to_cpltype</a>(dattype);</div>
-<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>                             </div>
-<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>                             <a class="code" href="group__flames__midas__def.html#ga039acefae152f656c10c8f92123dff18" title="Create new image frame.">frame_new_image</a>(*imno, name, NULL, <span class="keyword">false</span>,</div>
-<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span>                                             NULL, type, dattype);</div>
-<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span>                             </div>
-<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span>                             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Opened image no. %d: %s as type %s"</span>,</div>
-<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>                                            i, name, </div>
-<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>                                            <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>                         }</div>
-<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>                 }</div>
-<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>             </div>
-<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>             assure( found, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>                     <span class="stringliteral">"Cannot open more than %d image files"</span>,</div>
-<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>                     MAX_OPEN);</div>
-<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>         }</div>
-<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>             {</div>
-<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>                 </div>
-<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>                 assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span>);</div>
-<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>             }</div>
-<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>     }</div>
-<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>     {</div>
-<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>             assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span>);</div>
-<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>     }</div>
-<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span> </div>
-<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>   cleanup:</div>
-<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span> }</div>
-<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span> </div>
-<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02259"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gacc0d2e992be7014e3ee51cd0e5213378"> 2259</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gacc0d2e992be7014e3ee51cd0e5213378" title="Create an image frame with data of given type and return its internal file no.">flames_midas_scfcre</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <spa [...]
-<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>                         <span class="keywordtype">int</span> size, <span class="keywordtype">int</span> *imno)</div>
-<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span> {</div>
-<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>     <span class="keywordflow">if</span> (filtype == F_IMA_TYPE)</div>
-<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>     {</div>
-<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>         <span class="keywordflow">if</span> (iomode == F_O_MODE) <span class="comment">/* output: create empty header */</span></div>
-<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>         {</div>
-<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span> </div>
-<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>             <span class="comment">/* Find first open slot */</span></div>
-<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>             <span class="keywordtype">bool</span> found = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>                     cpl_type type;</div>
-<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span> </div>
-<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>             <span class="keywordflow">for</span> (i = 0; !found && i < MAX_OPEN; i++)</div>
-<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>             {</div>
-<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span> </div>
-<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>                 <span class="keywordflow">if</span> (!<a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(i))</div>
-<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>                 {</div>
-<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span>                     found = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span>                     *imno = i;</div>
-<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>                     </div>
-<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Opened image no. %d: %s"</span>,</div>
-<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>                            i, name);</div>
-<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>                 }</div>
-<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>             }</div>
-<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>             </div>
-<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>             assure( found, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>                 <span class="stringliteral">"Cannot open more than %d image files"</span>,</div>
-<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>                 MAX_OPEN);</div>
-<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>             </div>
-<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>                     type = <a class="code" href="group__flames__midas__def.html#ga6beb815e71b5dc0c97723fea885b87fb" title="Map MIDAS dtypes to CPL types.">flames_midas_image_dtype_to_cpltype</a>(dattype);</div>
-<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>                    </div>
-<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>                     <span class="comment">/* Create Nx1 image, set proper size later */</span></div>
-<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>                     <a class="code" href="group__flames__midas__def.html#ga039acefae152f656c10c8f92123dff18" title="Create new image frame.">frame_new_image</a>(*imno, name, <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>(), <span class="keyword">true</span>,</div>
-<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span>                                     cpl_image_new(size, 1, type), type, dattype);</div>
-<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span> </div>
-<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>                 }</div>
-<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span> </div>
-<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>         {</div>
-<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>             assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span>);</div>
-<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span>         }</div>
-<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>     }</div>
-<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span>     {</div>
-<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span>);</div>
-<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>     }</div>
-<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span> </div>
-<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span> </div>
-<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(*imno), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span> </div>
-<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>   cleanup:</div>
-<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span> }</div>
-<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span> </div>
-<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02322"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga74503a6b522dac56cde3c9371ad720c3"> 2322</a></span> <a class="code" href="group__flames__midas__def.html#ga74503a6b522dac56cde3c9371ad720c3" title="Close a frame, save to disk if necessary.">frame_close</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>)</div>
-<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span> {</div>
-<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>     cpl_property **cards = NULL;</div>
-<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>     fitsfile *fptr = NULL;</div>
-<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>     <span class="keywordtype">int</span> fio_status = 0;</div>
-<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span> </div>
-<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>     <span class="keywordflow">if</span> (!<a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(<span class="keywordtype">id</span>))  {</div>
-<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span> </div>
-<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span> </div>
-<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"%s number %d is not open, cannot close"</span>, </div>
-<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>                          frames[<span class="keywordtype">id</span>].is_image ? <span class="stringliteral">"Image"</span> : <span class="stringliteral">"Table"</span>,</div>
-<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>                          <span class="keywordtype">id</span>);</div>
-<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span> </div>
-<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>     }</div>
-<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>         <span class="keywordflow">if</span> (frames[<span class="keywordtype">id</span>].need_to_save) {</div>
-<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>             <span class="keywordtype">char</span> type;</div>
-<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>             <span class="keywordtype">int</span> bytelem;</div>
-<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>             <span class="keywordtype">int</span> naxis;</div>
-<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>             </div>
-<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Saving frame %s to disk"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>             </div>
-<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886" title="Load image/table if not already in memory.">load_frame</a>(<span class="keywordtype">id</span>),</div>
-<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>                    <span class="stringliteral">"Could not load frame %s"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>                     </div>
-<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#ga01414f0f04f79fd8686c2f6f9f478fbc" title="Load frame FITS header if not already in memory.">load_frame_header</a>(<span class="keywordtype">id</span>),</div>
-<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>                    <span class="stringliteral">"Could not load %s header"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>                     </div>
-<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cards = <a class="code" href="group__flames__midas__def.html#ga39b00de90ed04a8759704d6ad997c30c" title="Get descriptor information.">get_descr_info</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"NPIX"</span>,</div>
-<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>                                           &type, &naxis, &bytelem),</div>
-<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>                    <span class="stringliteral">"Could not get info on descriptor NPIX"</span>);</div>
-<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>                     </div>
-<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gac7d5af5ecd10af15fb036eb988b61527" title="Convert header for output.">convert_to_history</a>(&frames[<span class="keywordtype">id</span>].header),</div>
-<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>                    <span class="stringliteral">"Could not convert header"</span>);</div>
-<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span> </div>
-<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>             <span class="comment">/* Note header is free'd below, so changing it is ok */</span></div>
-<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>              <span class="keywordflow">if</span> (frames[<span class="keywordtype">id</span>].is_image)</div>
-<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>                 {</div>
-<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span> </div>
-<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span> </div>
-<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>                     <span class="keywordtype">bool</span> save_as_bitpix16 =</div>
-<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>                         (frames[id].data.image.dtype == D_I1_FORMAT ||</div>
-<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>                          frames[id].data.image.dtype == D_I2_FORMAT);</div>
-<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>                     <span class="comment">/* Save D_I1_FORMAT / D_I2_FORMAT  (masks) as 16 bit unsigned, </span></div>
-<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span> <span class="comment">                       otherwise 32 bit signed */</span></div>
-<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span> </div>
-<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>                     <span class="keywordtype">bool</span> save_as_1d = (naxis == 1);</div>
-<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>                     <span class="comment">/* Don't save 2d images as 1d, we will loose START/STEP descriptors */</span></div>
-<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span> </div>
-<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>                     assure( naxis == 1 || naxis == 2 || naxis == 3 || naxis == 4,</div>
-<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>                             CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>                             <span class="stringliteral">"Cannot save image with NAXIS = %d"</span>, naxis);</div>
-<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span> </div>
-<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Saving %dd image"</span>, naxis);</div>
-<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>                     </div>
-<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image(frames[<span class="keywordtype">id</span>].data.image.image,</div>
-<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>                                            frames[<span class="keywordtype">id</span>].filename,</div>
-<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>                                            frames[<span class="keywordtype">id</span>].header,</div>
-<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>                                            save_as_bitpix16,</div>
-<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>                                            save_as_1d),</div>
-<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span>                            <span class="stringliteral">"Error saving image %s"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span> </div>
-<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>                     <span class="keywordflow">if</span> (naxis == 2 || naxis == 3 || naxis == 4) {</div>
-<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>                         <span class="keywordtype">int</span> NAXIS[4];</div>
-<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>                         <span class="keywordtype">int</span> unit, null;</div>
-<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>                         <span class="keywordtype">int</span> actvals;</div>
-<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>                         <span class="keywordtype">char</span> dummy[100]; <span class="comment">/* More than length of FITS key record */</span></div>
-<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span>                         <span class="keywordtype">char</span> err_message[81];  <span class="comment">/* long enough according to CFITSIO doc. */</span></div>
-<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>                         <span class="keywordtype">int</span> current_naxis;   <span class="comment">/* As written by the previous uves_save_image()</span></div>
-<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span> <span class="comment">                                                call */</span></div>
-<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>                         </div>
-<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>                         assure( 0 == <a class="code" href="group__flames__midas__def.html#ga0e318315f4db01837b210ed6f121abc9" title="Read contents of integer descriptor.">flames_midas_scdrdi</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"NPIX"</span>,</div>
-<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>                                                          1, naxis,</div>
-<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>                                                          &actvals, NAXIS,</div>
-<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>                                                          &unit, &null), </div>
-<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>                                 CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>                                 <span class="stringliteral">"Failed to read NPIX"</span>);</div>
-<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>                         </div>
-<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>                         assure( actvals == naxis, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>                                 <span class="stringliteral">"naxis = %d but actvals = %d"</span>, naxis, actvals);</div>
-<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>                                 </div>
-<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>                         <span class="comment">/* CPL and QFITS cannot change a FITS header without </span></div>
-<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span> <span class="comment">                           load/saving the data buffer</span></div>
-<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span> <span class="comment">                           so use CFITSIO for this basic task */</span></div>
-<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span> </div>
-<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>                         fits_open_file(&fptr, frames[<span class="keywordtype">id</span>].filename, READWRITE, &fio_status);</div>
-<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>                         </div>
-<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>                         assure( fio_status == 0, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>                                 <span class="stringliteral">"Failed to open file %s"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span> </div>
-<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>                         <span class="comment">/* Move to beginning of header, then to location of NAXIS (which should already exist) */</span></div>
-<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>                         fits_read_record(fptr, 0, dummy, &fio_status);</div>
-<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>                         <span class="comment">/* fits_read_card(fptr, (char*)"NAXIS", dummy, &fio_status); */</span></div>
-<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>                         fits_read_key(fptr, TINT, (<span class="keywordtype">char</span>*)<span class="stringliteral">"NAXIS"</span>, &current_naxis, NULL, &fio_status);</div>
-<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span> </div>
-<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>                         fits_update_key(fptr, TINT, (<span class="keywordtype">char</span>*)<span class="stringliteral">"NAXIS"</span>, &naxis, (<span class="keywordtype">char</span>*)<span class="stringliteral">"Empty unit"</span>, &fio_status);</div>
-<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>                         fits_update_key(fptr, TINT, (<span class="keywordtype">char</span>*)<span class="stringliteral">"NAXIS1"</span>, &NAXIS[0], (<span class="keywordtype">char</span>*)<span class="stringliteral">"Empty unit"</span>, &fio_status);</div>
-<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span> </div>
-<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>                         <span class="keywordflow">if</span> (current_naxis < 2) {</div>
-<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>                             fits_insert_card(fptr, (<span class="keywordtype">char</span>*)<span class="stringliteral">"NAXIS2"</span>, &fio_status);</div>
-<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>                         }</div>
-<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>                         fits_update_key(fptr, TINT, (<span class="keywordtype">char</span>*)<span class="stringliteral">"NAXIS2"</span>, &NAXIS[1], (<span class="keywordtype">char</span>*)<span class="stringliteral">"Empty unit"</span>, &fio_status);</div>
-<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>                         </div>
-<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>                         <span class="keywordflow">if</span> (naxis >= 3) {</div>
-<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>                             fits_insert_card(fptr, (<span class="keywordtype">char</span>*)<span class="stringliteral">"NAXIS3"</span>, &fio_status);</div>
-<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>                             fits_update_key(fptr, TINT, (<span class="keywordtype">char</span>*)<span class="stringliteral">"NAXIS3"</span>, &NAXIS[2], (<span class="keywordtype">char</span>*)<span class="stringliteral">"Empty unit"</span>, &fio_status);</div>
-<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>                         }</div>
-<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>                         </div>
-<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>                         <span class="keywordflow">if</span> (naxis >= 4) {</div>
-<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>                             fits_insert_card(fptr, (<span class="keywordtype">char</span>*)<span class="stringliteral">"NAXIS4"</span>, &fio_status);</div>
-<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>                             fits_update_key(fptr, TINT, (<span class="keywordtype">char</span>*)<span class="stringliteral">"NAXIS4"</span>, &NAXIS[3], (<span class="keywordtype">char</span>*)<span class="stringliteral">"Empty unit"</span>, &fio_status);</div>
-<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>                         }</div>
-<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>                         </div>
-<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>                         fits_close_file(fptr, &fio_status);</div>
-<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>                         </div>
-<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>                         <span class="keywordflow">if</span> (fio_status != 0) fits_read_errmsg(err_message);</div>
-<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>                         assure( fio_status == 0, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span>                                 <span class="stringliteral">"Error '%s' code %d while updating %s FITS header"</span>, </div>
-<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span>                                 err_message, fio_status, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span>                     }</div>
-<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span> </div>
-<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>                 }</div>
-<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>                 {</div>
-<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>                     cpl_table_set_size(frames[<span class="keywordtype">id</span>].data.table.table,</div>
-<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>                                        frames[<span class="keywordtype">id</span>].data.table.maxrow);</div>
-<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>                   </div>
-<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_table_save(frames[<span class="keywordtype">id</span>].data.table.table,</div>
-<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>                                            frames[<span class="keywordtype">id</span>].header, <span class="comment">/* Primary header */</span></div>
-<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>                                            NULL,                <span class="comment">/* Ext. header */</span></div>
-<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>                                            frames[<span class="keywordtype">id</span>].filename,</div>
-<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>                                            CPL_IO_DEFAULT),</div>
-<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>                            <span class="stringliteral">"Error saving table %s"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>                 }</div>
-<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>                     </div>
-<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>             frames[id].need_to_save = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span> </div>
-<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>         }</div>
-<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>             {</div>
-<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Closing %s %s (don't save to disk)"</span>, </div>
-<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>                                frames[<span class="keywordtype">id</span>].is_image ? <span class="stringliteral">"image"</span> : <span class="stringliteral">"table"</span>,</div>
-<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>                                frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>             }</div>
-<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>             </div>
-<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>         <a class="code" href="group__flames__midas__def.html#ga1d9507f11db5958a512c4bfac897d11e" title="Deallocate frame.">frame_free</a>(<span class="keywordtype">id</span>);</div>
-<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span> </div>
-<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>     }</div>
-<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>     </div>
-<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( !<a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span> </div>
-<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>   cleanup:</div>
-<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>     cpl_free(cards); cards = NULL;</div>
-<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span> }</div>
-<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>     </div>
-<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02488"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga5ed8340f5fc416851f180804e976063c"> 2488</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga5ed8340f5fc416851f180804e976063c" title="Close an image frame.">flames_midas_scfclo</a>(<span class="keywordtype">int</span> imno)</div>
-<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span> {</div>
-<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga74503a6b522dac56cde3c9371ad720c3" title="Close a frame, save to disk if necessary.">frame_close</a>(imno);</div>
-<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span> }</div>
-<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span> </div>
-<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02506"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga41facab5fb3ef7e61cd04eb23c221457"> 2506</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga41facab5fb3ef7e61cd04eb23c221457" title="Read data from disk frame into memory.">flames_midas_scfget</a>(<span class="keywordtype">int</span> imno, <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span>  [...]
-<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span> {</div>
-<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>   <span class="comment">//cpl_type type;</span></div>
-<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span> </div>
-<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(imno), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span> </div>
-<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(imno) && frames[imno].is_image, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>             <span class="stringliteral">"Image no. %d is not open"</span>, imno);</div>
-<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span> </div>
-<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886" title="Load image/table if not already in memory.">load_frame</a>(imno),</div>
-<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>        <span class="stringliteral">"Could not load image %s"</span>, frames[imno].filename);</div>
-<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span> </div>
-<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>     assure( (felem-1) + size <=</div>
-<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>         cpl_image_get_size_x(frames[imno].data.image.image)*</div>
-<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>         cpl_image_get_size_y(frames[imno].data.image.image),</div>
-<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>         CPL_ERROR_ACCESS_OUT_OF_RANGE,</div>
-<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>         <span class="stringliteral">"Cannot read %d bytes of CPL image of size %"</span> CPL_SIZE_FORMAT <span class="stringliteral">"x%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" position %d"</span>,</div>
-<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>         size, </div>
-<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>         cpl_image_get_size_x(frames[imno].data.image.image),</div>
-<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>         cpl_image_get_size_y(frames[imno].data.image.image),</div>
-<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>         felem-1);</div>
-<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span> </div>
-<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>     <span class="keywordflow">switch</span>(frames[imno].data.image.type) {</div>
-<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>     {</div>
-<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span>         <span class="keywordtype">int</span> *buffer;</div>
-<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span>         buffer = cpl_image_get_data_int(frames[imno].data.image.image);</div>
-<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span>         buffer += (felem-1);</div>
-<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>         </div>
-<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>         <span class="keywordflow">switch</span>(frames[imno].data.image.dtype) {</div>
-<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>         <span class="keywordflow">case</span> D_I1_FORMAT:</div>
-<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>             <span class="keywordflow">for</span> (i = 0; i < size; i++)</div>
-<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>                 {</div>
-<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>                     ((<span class="keywordtype">char</span> *)bufadr)[i] = buffer[i];</div>
-<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>                 }</div>
-<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>         <span class="keywordflow">case</span> D_I2_FORMAT:</div>
-<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>         <span class="keywordflow">case</span> D_I4_FORMAT:</div>
-<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>             <span class="keywordflow">for</span> (i = 0; i < size; i++)</div>
-<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>                 {</div>
-<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>                     ((int32_t *)bufadr)[i] = buffer[i];</div>
-<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>                 }</div>
-<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>             <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE );</div>
-<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>         }</div>
-<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>         *actsize = size;</div>
-<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>     }</div>
-<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>     {</div>
-<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>         <span class="keywordtype">float</span> *buffer;</div>
-<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span>         buffer = cpl_image_get_data_float(frames[imno].data.image.image);</div>
-<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span>         buffer += (felem-1);</div>
-<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span>         </div>
-<div class="line"><a name="l02564"></a><span class="lineno"> 2564</span>         <span class="keywordflow">for</span> (i = 0; i < size; i++)</div>
-<div class="line"><a name="l02565"></a><span class="lineno"> 2565</span>             {</div>
-<div class="line"><a name="l02566"></a><span class="lineno"> 2566</span>                 ((<span class="keywordtype">float</span> *)bufadr)[i] = buffer[i];</div>
-<div class="line"><a name="l02567"></a><span class="lineno"> 2567</span>             }</div>
-<div class="line"><a name="l02568"></a><span class="lineno"> 2568</span>         *actsize = size;</div>
-<div class="line"><a name="l02569"></a><span class="lineno"> 2569</span>     }</div>
-<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02571"></a><span class="lineno"> 2571</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02572"></a><span class="lineno"> 2572</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Type is %s"</span>,</div>
-<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span>                 <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(frames[imno].data.image.type));</div>
-<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span>     }</div>
-<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span>     </div>
-<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(imno), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span> </div>
-<div class="line"><a name="l02579"></a><span class="lineno"> 2579</span>   cleanup: </div>
-<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l02581"></a><span class="lineno"> 2581</span> }</div>
-<div class="line"><a name="l02582"></a><span class="lineno"> 2582</span> </div>
-<div class="line"><a name="l02583"></a><span class="lineno"> 2583</span> </div>
-<div class="line"><a name="l02584"></a><span class="lineno"> 2584</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02595"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga7fd1da8919a2e4d23d715241851dc531"> 2595</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga7fd1da8919a2e4d23d715241851dc531" title="Write data from memory into disk frame.">flames_midas_scfput</a>(<span class="keywordtype">int</span> imno, <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> [...]
-<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span> {</div>
-<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span> </div>
-<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(imno), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span> </div>
-<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(imno) && frames[imno].is_image, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>         <span class="stringliteral">"Image no. %d is not open"</span>, imno);</div>
-<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span> </div>
-<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>     <span class="comment">/* Load image if necessary, then overwrite part, or all of data buffer */</span></div>
-<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886" title="Load image/table if not already in memory.">load_frame</a>(imno),</div>
-<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>            <span class="stringliteral">"Could not load image %s"</span>, frames[imno].filename);</div>
-<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span> </div>
-<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>     assure( (felem-1) + size <=</div>
-<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>         cpl_image_get_size_x(frames[imno].data.image.image)*</div>
-<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span>         cpl_image_get_size_y(frames[imno].data.image.image),</div>
-<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>         CPL_ERROR_ACCESS_OUT_OF_RANGE,</div>
-<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span>         <span class="stringliteral">"Cannot write %d pixels to CPL image of size %"</span> CPL_SIZE_FORMAT <span class="stringliteral">"x%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" position %d"</span>,</div>
-<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span>         size, </div>
-<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span>         cpl_image_get_size_x(frames[imno].data.image.image),</div>
-<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span>         cpl_image_get_size_y(frames[imno].data.image.image),</div>
-<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span>         felem-1);</div>
-<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span> </div>
-<div class="line"><a name="l02618"></a><span class="lineno"> 2618</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Writing %d pixels to image %s"</span>,</div>
-<div class="line"><a name="l02619"></a><span class="lineno"> 2619</span>                    size, frames[imno].filename);</div>
-<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span> </div>
-<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>     <span class="keywordflow">switch</span>(frames[imno].data.image.type) {</div>
-<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span>     {</div>
-<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span>         <span class="keywordtype">int</span> *buffer;</div>
-<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>         buffer = cpl_image_get_data_int(frames[imno].data.image.image);</div>
-<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span>         buffer += (felem-1);</div>
-<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span> </div>
-<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>         <span class="keywordflow">switch</span>(frames[imno].data.image.dtype) {</div>
-<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span>         <span class="keywordflow">case</span> D_I1_FORMAT:</div>
-<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span>             <span class="keywordflow">for</span> (i = 0; i < size; i++)</div>
-<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span>                 {</div>
-<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span>                     buffer[i] = ((<span class="keywordtype">char</span> *)bufadr)[i];</div>
-<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>                 }</div>
-<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>         <span class="keywordflow">case</span> D_I2_FORMAT:</div>
-<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>         <span class="keywordflow">case</span> D_I4_FORMAT:</div>
-<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>             <span class="keywordflow">for</span> (i = 0; i < size; i++)</div>
-<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span>                 {</div>
-<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>                     buffer[i] = ((<span class="keywordtype">int</span> *)bufadr)[i];</div>
-<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>                 }</div>
-<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>             <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE );</div>
-<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>         }</div>
-<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>     }</div>
-<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>     {</div>
-<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span>         <span class="keywordtype">float</span> *buffer;</div>
-<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>         buffer = cpl_image_get_data_float(frames[imno].data.image.image);</div>
-<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>         buffer += (felem-1);</div>
-<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>         </div>
-<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>         <span class="keywordflow">for</span> (i = 0; i < size; i++)</div>
-<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>             {</div>
-<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>                 buffer[i] = ((<span class="keywordtype">float</span> *)bufadr)[i];</div>
-<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>             }</div>
-<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>     }</div>
-<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>     {</div>
-<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>         <span class="keywordtype">double</span> *buffer;</div>
-<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>         buffer = cpl_image_get_data_double(frames[imno].data.image.image);</div>
-<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>         buffer += (felem-1);</div>
-<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>         </div>
-<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>         <span class="keywordflow">for</span> (i = 0; i < size; i++)</div>
-<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span>             {</div>
-<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>                 buffer[i] = ((<span class="keywordtype">double</span> *)bufadr)[i];</div>
-<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>             }</div>
-<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span>     }</div>
-<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Type is %s"</span>, </div>
-<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>                 <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(frames[imno].data.image.type));</div>
-<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>     }</div>
-<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>     </div>
-<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>     frames[imno].need_to_save = <span class="keyword">true</span>;  <span class="comment">/* Memory buffer has changed */</span></div>
-<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span> </div>
-<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(imno), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span> </div>
-<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>   cleanup:</div>
-<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span> }</div>
-<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span> </div>
-<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02701"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gae2e7cd4c8a5c1bffdbd0323fdb5aac63"> 2701</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gae2e7cd4c8a5c1bffdbd0323fdb5aac63" title="Provide info about descriptor.">flames_midas_scdfnd</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtyp [...]
-<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>             <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *noelem, <span class="keywordtype">int</span> *bytelem)</div>
-<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span> {</div>
-<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>   cpl_property **cards = NULL;</div>
-<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span> </div>
-<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>   <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>   <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( descr != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span> </div>
-<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>   <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"LHCUTS"</span>) == 0)</div>
-<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>     {</div>
-<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>       <span class="keywordtype">int</span> datamin_noelem, datamax_noelem;</div>
-<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>       <span class="keywordtype">char</span> datamin_type, datamax_type;</div>
-<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>                 </div>
-<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>       *noelem = 2; <span class="comment">/* LHCUTS1 and LHCUTS2 always exist */</span></div>
-<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>       *type =<span class="charliteral">'R'</span>;</div>
-<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>             </div>
-<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>       <a class="code" href="group__flames__midas__def.html#gae2e7cd4c8a5c1bffdbd0323fdb5aac63" title="Provide info about descriptor.">flames_midas_scdfnd</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"DATAMIN"</span>, &datamin_type, &datamin_noelem, bytelem);</div>
-<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>       <a class="code" href="group__flames__midas__def.html#gae2e7cd4c8a5c1bffdbd0323fdb5aac63" title="Provide info about descriptor.">flames_midas_scdfnd</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"DATAMAX"</span>, &datamax_type, &datamax_noelem, bytelem);</div>
-<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>             </div>
-<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>       assure( datamin_noelem <= 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span>           <span class="stringliteral">"Multiple (%d) DATAMIN keywords found"</span>, datamin_noelem);</div>
-<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span> </div>
-<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span>       assure( datamax_noelem <= 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span>           <span class="stringliteral">"Multiple (%d) DATAMIN keywords found"</span>, datamax_noelem);</div>
-<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span> </div>
-<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>       <span class="keywordflow">if</span> (datamin_noelem > 0)</div>
-<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>     {</div>
-<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>       *noelem = 3;</div>
-<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>       assure( datamin_type == <span class="charliteral">'D'</span>, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>           <span class="stringliteral">"DATAMIN has type %c, %c expected"</span>, datamin_type, <span class="charliteral">'D'</span>);</div>
-<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span> </div>
-<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>       <span class="keywordflow">if</span> (datamax_noelem > 0)</div>
-<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>         {</div>
-<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>           *noelem = 4;</div>
-<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span>           assure( datamax_type == <span class="charliteral">'D'</span>, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>               <span class="stringliteral">"DATAMAX has type %c, %c expected"</span>, datamax_type, <span class="charliteral">'D'</span>);</div>
-<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span>         }</div>
-<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>     }</div>
-<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span> </div>
-<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>     }</div>
-<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>     {</div>
-<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cards = <a class="code" href="group__flames__midas__def.html#ga39b00de90ed04a8759704d6ad997c30c" title="Get descriptor information.">get_descr_info</a>(<span class="keywordtype">id</span>, descr,</div>
-<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>                     type, noelem, bytelem),</div>
-<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>          <span class="stringliteral">"Could not get info on descriptor %s"</span>, descr);</div>
-<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>             </div>
-<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>       <span class="keywordflow">if</span> (cards == NULL)</div>
-<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>     {</div>
-<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>       *type = <span class="charliteral">' '</span>;</div>
-<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Descriptor %s not found"</span>,descr);</div>
-<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>     }</div>
-<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>     {</div>
-<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Found descriptor %s, type = %c, length = %d"</span>,</div>
-<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>                descr, *type, *noelem);</div>
-<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>     }</div>
-<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>     }</div>
-<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span> </div>
-<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>   <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span> </div>
-<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>  cleanup:</div>
-<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>   cpl_free(cards); cards = NULL;</div>
-<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span> </div>
-<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>   <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span> }</div>
-<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span> </div>
-<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span> </div>
-<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span> </div>
-<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02784"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga6b30560067a69f65864f034fcecf22b8"> 2784</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga6b30560067a69f65864f034fcecf22b8" title="Provide info about descriptor.">flames_midas_scdprs</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtyp [...]
-<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>             <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *noelem, <span class="keywordtype">int</span> *bytelem)</div>
-<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span> {</div>
-<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>   cpl_property **cards = NULL;</div>
-<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span> </div>
-<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>   <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>   <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( descr != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span> </div>
-<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>   <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"LHCUTS"</span>) == 0)</div>
-<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>     {</div>
-<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>       <span class="keywordtype">int</span> datamin_noelem, datamax_noelem;</div>
-<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>       <span class="keywordtype">char</span> datamin_type, datamax_type;</div>
-<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>                 </div>
-<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>       *noelem = 2; <span class="comment">/* LHCUTS1 and LHCUTS2 always exist */</span></div>
-<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>       *type =<span class="charliteral">'R'</span>;</div>
-<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>             </div>
-<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>       <a class="code" href="group__flames__midas__def.html#gae2e7cd4c8a5c1bffdbd0323fdb5aac63" title="Provide info about descriptor.">flames_midas_scdfnd</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"DATAMIN"</span>, &datamin_type, &datamin_noelem, bytelem);</div>
-<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>       <a class="code" href="group__flames__midas__def.html#gae2e7cd4c8a5c1bffdbd0323fdb5aac63" title="Provide info about descriptor.">flames_midas_scdfnd</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"DATAMAX"</span>, &datamax_type, &datamax_noelem, bytelem);</div>
-<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>             </div>
-<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>       assure( datamin_noelem <= 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>           <span class="stringliteral">"Multiple (%d) DATAMIN keywords found"</span>, datamin_noelem);</div>
-<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span> </div>
-<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span>       assure( datamax_noelem <= 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>           <span class="stringliteral">"Multiple (%d) DATAMIN keywords found"</span>, datamax_noelem);</div>
-<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span> </div>
-<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>       <span class="keywordflow">if</span> (datamin_noelem > 0)</div>
-<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>     {</div>
-<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>       *noelem = 3;</div>
-<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span>       assure( datamin_type == <span class="charliteral">'D'</span>, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l02813"></a><span class="lineno"> 2813</span>           <span class="stringliteral">"DATAMIN has type %c, %c expected"</span>, datamin_type, <span class="charliteral">'D'</span>);</div>
-<div class="line"><a name="l02814"></a><span class="lineno"> 2814</span> </div>
-<div class="line"><a name="l02815"></a><span class="lineno"> 2815</span>       <span class="keywordflow">if</span> (datamax_noelem > 0)</div>
-<div class="line"><a name="l02816"></a><span class="lineno"> 2816</span>         {</div>
-<div class="line"><a name="l02817"></a><span class="lineno"> 2817</span>           *noelem = 4;</div>
-<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span>           assure( datamax_type == <span class="charliteral">'D'</span>, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span>               <span class="stringliteral">"DATAMAX has type %c, %c expected"</span>, datamax_type, <span class="charliteral">'D'</span>);</div>
-<div class="line"><a name="l02820"></a><span class="lineno"> 2820</span>         }</div>
-<div class="line"><a name="l02821"></a><span class="lineno"> 2821</span>     }</div>
-<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span> </div>
-<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>     }</div>
-<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span>     {</div>
-<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cards = <a class="code" href="group__flames__midas__def.html#ga39b00de90ed04a8759704d6ad997c30c" title="Get descriptor information.">get_descr_info</a>(<span class="keywordtype">id</span>, descr,</div>
-<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>                     type, noelem, bytelem),</div>
-<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span>          <span class="stringliteral">"Could not get info on descriptor %s"</span>, descr);</div>
-<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span>             </div>
-<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span>       <span class="keywordflow">if</span> (cards == NULL)</div>
-<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span>     {</div>
-<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span>       *type = <span class="charliteral">' '</span>;</div>
-<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Descriptor %s not found"</span>,descr);</div>
-<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>           cpl_free(cards); cards = NULL;</div>
-<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>       <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span>     }</div>
-<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span>     {</div>
-<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Found descriptor %s, type = %c, length = %d"</span>,</div>
-<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span>                descr, *type, *noelem);</div>
-<div class="line"><a name="l02841"></a><span class="lineno"> 2841</span>     }</div>
-<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span>     }</div>
-<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span> </div>
-<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>   <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span> </div>
-<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span>  cleanup:</div>
-<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span>   cpl_free(cards); cards = NULL;</div>
-<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span> </div>
-<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>   <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span> }</div>
-<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span> </div>
-<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02869"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27"> 2869</a></span> <a class="code" href="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27" title="Read contents of integer descriptor.">scdrd</a>(<span class="keywordtype">char</span> expected_type, <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="ke [...]
-<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span>       <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals,</div>
-<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span>       <span class="keywordtype">int</span> *actvals, <span class="keywordtype">void</span> *values,</div>
-<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span>       <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null)</div>
-<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span> {</div>
-<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span>     <span class="keywordtype">char</span> type;</div>
-<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span>     <span class="keywordtype">int</span> length;</div>
-<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span>     <span class="keywordtype">int</span> bytelem;</div>
-<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>     cpl_property **cards = NULL;</div>
-<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>     <span class="keywordflow">if</span> (unit) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>     <span class="keywordflow">if</span> (null) {} <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span> </div>
-<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span> </div>
-<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cards = <a class="code" href="group__flames__midas__def.html#ga39b00de90ed04a8759704d6ad997c30c" title="Get descriptor information.">get_descr_info</a>(<span class="keywordtype">id</span>, descr, &type,</div>
-<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span>                                   &length, &bytelem),</div>
-<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span>        <span class="stringliteral">"Could not get info on descriptor %s"</span>, descr);</div>
-<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span> </div>
-<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span>     assure( cards != NULL, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>         <span class="stringliteral">"Descriptor %s not found in file %s"</span>, descr, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span> </div>
-<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span>     <span class="comment">/* Allow conversion R -> D */</span></div>
-<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span>     assure( (expected_type == <span class="charliteral">'D'</span> && type == <span class="charliteral">'R'</span>) </div>
-<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span>             ||</div>
-<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span>             type == expected_type, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span>         <span class="stringliteral">"Descriptor %s has type %c, %c expected"</span>,</div>
-<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>         descr, type, expected_type);</div>
-<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span> </div>
-<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( type != <span class="charliteral">'C'</span> || felem == 1, <span class="stringliteral">"'%c' %d"</span>, type, felem);</div>
-<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span> </div>
-<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>     *actvals = 0;</div>
-<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span>     <span class="comment">//uves_msg_warning("length=%d",length);</span></div>
-<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span>     <span class="keywordflow">for</span> (i = felem-1; i < length; i++)</div>
-<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span>     {</div>
-<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span>         <span class="keywordflow">if</span> (*actvals < maxvals)</div>
-<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>         {</div>
-<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Getting %d of %d (max %d) values of descriptor %s"</span>,</div>
-<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>                    *actvals + 1, length - (felem-1), maxvals, descr);</div>
-<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span> </div>
-<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>             <span class="keywordflow">switch</span>(type) {</div>
-<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>             <span class="keywordflow">case</span> <span class="charliteral">'I'</span>: </div>
-<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>                 ((<span class="keywordtype">int</span> *)values)[i-(felem-1)]    = cpl_property_get_int(cards[i]); </div>
-<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Value = %d"</span>, ((<span class="keywordtype">int</span> *)values)[i-(felem-1)]);</div>
-<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>             <span class="keywordflow">case</span> <span class="charliteral">'D'</span>: </div>
-<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span>                 ((<span class="keywordtype">double</span> *)values)[i-(felem-1)] = cpl_property_get_double(cards[i]);</div>
-<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Value = %g"</span>, ((<span class="keywordtype">double</span> *)values)[i-(felem-1)]);</div>
-<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span>             <span class="keywordflow">case</span> <span class="charliteral">'R'</span>: </div>
-<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span>                 <span class="keywordflow">switch</span>(expected_type) {</div>
-<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span>                 <span class="keywordflow">case</span> <span class="charliteral">'R'</span>:</div>
-<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span>                     ((<span class="keywordtype">float</span> *)values)[i-(felem-1)]  = cpl_property_get_float(cards[i]); </div>
-<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Value = %g"</span>, ((<span class="keywordtype">float</span> *)values)[i-(felem-1)]);</div>
-<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span>                 <span class="keywordflow">case</span> <span class="charliteral">'D'</span>:</div>
-<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span>                     ((<span class="keywordtype">double</span> *)values)[i-(felem-1)]  = cpl_property_get_float(cards[i]); </div>
-<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Value = %g"</span>, ((<span class="keywordtype">double</span> *)values)[i-(felem-1)]);</div>
-<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span>                 <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>                     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <span class="keyword">false</span>, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span>                 }</div>
-<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>             <span class="keywordflow">case</span> <span class="charliteral">'C'</span>:</div>
-<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>                 ((<span class="keywordtype">char</span> *)values)[i-(felem-1)]   = cpl_property_get_string(cards[0])[i]; </div>
-<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Value = %c"</span>, ((<span class="keywordtype">char</span> *)values)[i-(felem-1)]);</div>
-<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>             <span class="keywordflow">default</span>: </div>
-<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>                 assure( <span class="keyword">false</span>, CPL_ERROR_INVALID_TYPE, <span class="stringliteral">"Type is %c"</span>, type); </div>
-<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>             }</div>
-<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>             *actvals += 1;</div>
-<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>         }</div>
-<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>     }</div>
-<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span> </div>
-<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>     <span class="keywordflow">if</span> (type == <span class="charliteral">'C'</span> && *actvals < maxvals)</div>
-<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>     {</div>
-<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>         <span class="comment">/* length is the string length,</span></div>
-<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span> <span class="comment">           terminate with 0</span></div>
-<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span> <span class="comment">           This character does not count in actvals</span></div>
-<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span> <span class="comment">               but is include in maxvals</span></div>
-<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>         ((<span class="keywordtype">char</span> *)values)[length-(felem-1)] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>     }</div>
-<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>     </div>
-<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>     <span class="comment">/* unit, null not implemented by MIDAS */</span></div>
-<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span> </div>
-<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span> </div>
-<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>   cleanup:</div>
-<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>     cpl_free(cards); cards = NULL;</div>
-<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span> </div>
-<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span> }</div>
-<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02972"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga0e318315f4db01837b210ed6f121abc9"> 2972</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga0e318315f4db01837b210ed6f121abc9" title="Read contents of integer descriptor.">flames_midas_scdrdi</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keyw [...]
-<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals,</div>
-<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">int</span> *values,</div>
-<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>             <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null)</div>
-<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span> {</div>
-<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span>     <span class="keywordtype">char</span> *char_values = NULL;</div>
-<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span> </div>
-<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span> <span class="preprocessor"></span>    <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"MAXFIBRES"</span>) == 0)</div>
-<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>     {</div>
-<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>         char_values = cpl_malloc(maxvals + 1);</div>
-<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( char_values );</div>
-<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>         char_values[0] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span> </div>
-<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>         assure( felem == 1, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>             <span class="stringliteral">"first element no. (%d) is not 1"</span>, felem);</div>
-<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span> </div>
-<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27" title="Read contents of integer descriptor.">scdrd</a>(<span class="charliteral">'C'</span>, imno, descr, felem, maxvals, actvals, char_values, unit, null),</div>
-<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>            <span class="stringliteral">"Reading %s as string failed"</span>, descr);</div>
-<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span> </div>
-<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span>         assure( strlen(char_values) == 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>             <span class="stringliteral">"MAXFIBRES value (%s) has length different from 1"</span>,</div>
-<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>             char_values);</div>
-<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span> </div>
-<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>         <span class="comment">/* We have a string of length 1, convert to integer */</span></div>
-<div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>         errno = 0;</div>
-<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>         values[0] = atoi(char_values);</div>
-<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>         assure( errno == 0, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span>             <span class="stringliteral">"Conversion of %s to integer failed"</span>, char_values);</div>
-<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span> </div>
-<div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>         cpl_msg_debug(<span class="stringliteral">"Got value %s (%d)"</span>, char_values, values[0]);</div>
-<div class="line"><a name="l03003"></a><span class="lineno"> 3003</span>     }</div>
-<div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03005"></a><span class="lineno"> 3005</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03006"></a><span class="lineno"> 3006</span> <span class="preprocessor"></span>    {</div>
-<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span>         <span class="comment">/* Ok to return here, nothing alloc'ed */</span></div>
-<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span>         <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27" title="Read contents of integer descriptor.">scdrd</a>(<span class="charliteral">'I'</span>, <span class="keywordtype">id</span>, descr, felem, maxvals, actvals, values, unit, null);</div>
-<div class="line"><a name="l03009"></a><span class="lineno"> 3009</span>     }</div>
-<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span> </div>
-<div class="line"><a name="l03011"></a><span class="lineno"> 3011</span> <span class="comment">/*  cleanup: */</span></div>
-<div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>     uves_free_string(&char_values);</div>
-<div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l03014"></a><span class="lineno"> 3014</span> }</div>
-<div class="line"><a name="l03015"></a><span class="lineno"> 3015</span> </div>
-<div class="line"><a name="l03016"></a><span class="lineno"> 3016</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03023"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaac0ac727377c28d18f747a7d7c68ba8a"> 3023</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaac0ac727377c28d18f747a7d7c68ba8a" title="Read contents of double descriptor.">flames_midas_scdrdd</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywo [...]
-<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals,</div>
-<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">double</span> *values,</div>
-<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>             <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null)</div>
-<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span> {</div>
-<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27" title="Read contents of integer descriptor.">scdrd</a>(<span class="charliteral">'D'</span>, <span class="keywordtype">id</span>, descr, felem, maxvals, actvals, values, unit, null);</div>
-<div class="line"><a name="l03029"></a><span class="lineno"> 3029</span> }</div>
-<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span> </div>
-<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03038"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaa973227da8437b4a863f3b20c6a48677"> 3038</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaa973227da8437b4a863f3b20c6a48677" title="Read contents of double descriptor.">flames_midas_scdrdr</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywo [...]
-<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals,</div>
-<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">float</span> *values,</div>
-<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span>             <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null)</div>
-<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span> {</div>
-<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>     <span class="keywordflow">if</span> (strcmp(<span class="stringliteral">"LHCUTS"</span>, descr) == 0 && felem < 3)</div>
-<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>     {</div>
-<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span>             <span class="keywordtype">bool</span> success = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>             </div>
-<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span>             <span class="keywordflow">for</span> (i = felem; i < felem+maxvals; i++)</div>
-<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span>                 {</div>
-<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>                     <span class="keywordtype">double</span> val;</div>
-<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>                     <span class="keywordflow">if</span> (1 <= i && i <= 2)</div>
-<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span>                         {</div>
-<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span>                             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Do not read LHCUTS%d"</span>, i);</div>
-<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span>                         }</div>
-<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span>                     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i == 3)</div>
-<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span>                         {</div>
-<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span>                             success = success &&</div>
-<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span>                                 (<a class="code" href="group__flames__midas__def.html#gaac0ac727377c28d18f747a7d7c68ba8a" title="Read contents of double descriptor.">flames_midas_scdrdd</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"DATAMIN"</span>, i, 1,</div>
-<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span>                                                      actvals,</div>
-<div class="line"><a name="l03060"></a><span class="lineno"> 3060</span>                                                      &val,</div>
-<div class="line"><a name="l03061"></a><span class="lineno"> 3061</span>                                                      unit, null)) == 0;</div>
-<div class="line"><a name="l03062"></a><span class="lineno"> 3062</span> </div>
-<div class="line"><a name="l03063"></a><span class="lineno"> 3063</span>                             values[i-felem] = (float) val;</div>
-<div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>                         }</div>
-<div class="line"><a name="l03065"></a><span class="lineno"> 3065</span>                     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i == 4)</div>
-<div class="line"><a name="l03066"></a><span class="lineno"> 3066</span>                         {</div>
-<div class="line"><a name="l03067"></a><span class="lineno"> 3067</span>                             success = success &&</div>
-<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span>                                 (<a class="code" href="group__flames__midas__def.html#gaac0ac727377c28d18f747a7d7c68ba8a" title="Read contents of double descriptor.">flames_midas_scdrdd</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"DATAMAX"</span>, i, 1,</div>
-<div class="line"><a name="l03069"></a><span class="lineno"> 3069</span>                                                      actvals,</div>
-<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span>                                                      &val,</div>
-<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span>                                                      unit, null)) == 0;</div>
-<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span>                             values[i-felem] = (float) val;</div>
-<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span>                         }</div>
-<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span>                         {</div>
-<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span>                             success = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03077"></a><span class="lineno"> 3077</span>                         }</div>
-<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span>                 }</div>
-<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span>             <span class="keywordflow">return</span> success ? 0 : 1;</div>
-<div class="line"><a name="l03080"></a><span class="lineno"> 3080</span>     }</div>
-<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span>     {</div>
-<div class="line"><a name="l03083"></a><span class="lineno"> 3083</span>             <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27" title="Read contents of integer descriptor.">scdrd</a>(<span class="charliteral">'R'</span>, <span class="keywordtype">id</span>, descr, felem, maxvals, actvals, values, unit, null);</div>
-<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span>     }</div>
-<div class="line"><a name="l03085"></a><span class="lineno"> 3085</span> }</div>
-<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span> </div>
-<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03098"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga364fe8ecc22777838c41847bda6ac39d"> 3098</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga364fe8ecc22777838c41847bda6ac39d" title="Read contents of string descriptor.">flames_midas_scdrdc</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywo [...]
-<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>             <span class="keywordtype">int</span> noelem,</div>
-<div class="line"><a name="l03100"></a><span class="lineno"> 3100</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals,</div>
-<div class="line"><a name="l03101"></a><span class="lineno"> 3101</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">char</span> *values,</div>
-<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span>             <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null)</div>
-<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span> {</div>
-<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span>     <span class="keywordtype">int</span> returnvalue = 1;</div>
-<div class="line"><a name="l03105"></a><span class="lineno"> 3105</span>     </div>
-<div class="line"><a name="l03106"></a><span class="lineno"> 3106</span>     assure( noelem == <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>), CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span> );</div>
-<div class="line"><a name="l03107"></a><span class="lineno"> 3107</span>     assure( felem  == 1, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span> );</div>
-<div class="line"><a name="l03108"></a><span class="lineno"> 3108</span>    </div>
-<div class="line"><a name="l03109"></a><span class="lineno"> 3109</span>     returnvalue = <a class="code" href="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27" title="Read contents of integer descriptor.">scdrd</a>(<span class="charliteral">'C'</span>, <span class="keywordtype">id</span>, descr, felem, maxvals, actvals, values, unit, null);</div>
-<div class="line"><a name="l03110"></a><span class="lineno"> 3110</span>     </div>
-<div class="line"><a name="l03111"></a><span class="lineno"> 3111</span>   cleanup:</div>
-<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span>     <span class="keywordflow">return</span> returnvalue;    </div>
-<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span> }</div>
-<div class="line"><a name="l03114"></a><span class="lineno"> 3114</span> </div>
-<div class="line"><a name="l03115"></a><span class="lineno"> 3115</span> </div>
-<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span> </div>
-<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03135"></a><span class="lineno"> 3135</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03136"></a><span class="lineno"> 3136</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l03137"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga3df6bb0a7782b06c85dca025c4bd5682"> 3137</a></span> <a class="code" href="group__flames__midas__def.html#ga3df6bb0a7782b06c85dca025c4bd5682" title="Write a descriptor and its data.">scdwr</a>(<span class="keywordtype">char</span> type_to_write, <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywor [...]
-<div class="line"><a name="l03138"></a><span class="lineno"> 3138</span>       <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> nval, <span class="keyword">const</span> <span class="keywordtype">int</span> *unit)</div>
-<div class="line"><a name="l03139"></a><span class="lineno"> 3139</span> {</div>
-<div class="line"><a name="l03140"></a><span class="lineno"> 3140</span>     <span class="keywordtype">char</span> type = <span class="charliteral">'-'</span>;</div>
-<div class="line"><a name="l03141"></a><span class="lineno"> 3141</span>     <span class="keywordtype">int</span> length, bytelem, i;</div>
-<div class="line"><a name="l03142"></a><span class="lineno"> 3142</span>     cpl_property **cards = NULL;</div>
-<div class="line"><a name="l03143"></a><span class="lineno"> 3143</span>     cpl_property **cards_extra = NULL;</div>
-<div class="line"><a name="l03144"></a><span class="lineno"> 3144</span> </div>
-<div class="line"><a name="l03145"></a><span class="lineno"> 3145</span> </div>
-<div class="line"><a name="l03146"></a><span class="lineno"> 3146</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03147"></a><span class="lineno"> 3147</span> </div>
-<div class="line"><a name="l03148"></a><span class="lineno"> 3148</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(<span class="keywordtype">id</span>), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l03149"></a><span class="lineno"> 3149</span>         <span class="stringliteral">"Frame no. %d is not open"</span>, <span class="keywordtype">id</span>);</div>
-<div class="line"><a name="l03150"></a><span class="lineno"> 3150</span> </div>
-<div class="line"><a name="l03151"></a><span class="lineno"> 3151</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cards = <a class="code" href="group__flames__midas__def.html#ga39b00de90ed04a8759704d6ad997c30c" title="Get descriptor information.">get_descr_info</a>(<span class="keywordtype">id</span>, descr, </div>
-<div class="line"><a name="l03152"></a><span class="lineno"> 3152</span>                                   &type, &length, &bytelem),</div>
-<div class="line"><a name="l03153"></a><span class="lineno"> 3153</span>        <span class="stringliteral">"Could not get info on descriptor %s"</span>, descr);</div>
-<div class="line"><a name="l03154"></a><span class="lineno"> 3154</span>     </div>
-<div class="line"><a name="l03155"></a><span class="lineno"> 3155</span>     <span class="keywordflow">if</span> (cards == NULL) {</div>
-<div class="line"><a name="l03156"></a><span class="lineno"> 3156</span>         <span class="keywordtype">int</span> number_of_cards = (type_to_write == <span class="charliteral">'C'</span>) ? 1 : (felem-1)+nval;</div>
-<div class="line"><a name="l03157"></a><span class="lineno"> 3157</span>         <span class="keywordtype">int</span> nexisting = 0;</div>
-<div class="line"><a name="l03158"></a><span class="lineno"> 3158</span>         </div>
-<div class="line"><a name="l03159"></a><span class="lineno"> 3159</span>         type = type_to_write;</div>
-<div class="line"><a name="l03160"></a><span class="lineno"> 3160</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cards = <a class="code" href="group__flames__midas__def.html#ga660658a114854b46d0dd27605ea01711" title="Create descriptors.">create_descr</a>(frames[<span class="keywordtype">id</span>].header, descr, type,</div>
-<div class="line"><a name="l03161"></a><span class="lineno"> 3161</span>                                     number_of_cards, nexisting),</div>
-<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span>                <span class="stringliteral">"Could not create %d %s descriptors"</span>,</div>
-<div class="line"><a name="l03163"></a><span class="lineno"> 3163</span>                number_of_cards, descr);</div>
-<div class="line"><a name="l03164"></a><span class="lineno"> 3164</span>     }</div>
-<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>         assure( type == type_to_write ||</div>
-<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>                 (type == <span class="charliteral">'D'</span> && type_to_write == <span class="charliteral">'R'</span>),</div>
-<div class="line"><a name="l03168"></a><span class="lineno"> 3168</span>                 CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l03169"></a><span class="lineno"> 3169</span>                 <span class="stringliteral">"Cannot write type %c data to type %c descriptor %s"</span>,</div>
-<div class="line"><a name="l03170"></a><span class="lineno"> 3170</span>                 type_to_write, type, descr);</div>
-<div class="line"><a name="l03171"></a><span class="lineno"> 3171</span>         </div>
-<div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>         <span class="keywordflow">if</span> (type_to_write != <span class="charliteral">'C'</span> &&</div>
-<div class="line"><a name="l03173"></a><span class="lineno"> 3173</span>             (felem-1) + nval > length)</div>
-<div class="line"><a name="l03174"></a><span class="lineno"> 3174</span>             <span class="comment">/* Create additional descriptors */</span></div>
-<div class="line"><a name="l03175"></a><span class="lineno"> 3175</span>             {</div>
-<div class="line"><a name="l03176"></a><span class="lineno"> 3176</span>                 <span class="keywordtype">int</span> number_of_extra = (felem-1) + nval - length;</div>
-<div class="line"><a name="l03177"></a><span class="lineno"> 3177</span>                 <span class="keywordtype">int</span> ncards;</div>
-<div class="line"><a name="l03178"></a><span class="lineno"> 3178</span>                 </div>
-<div class="line"><a name="l03179"></a><span class="lineno"> 3179</span>                 <span class="comment">/* Count existing descriptors */</span></div>
-<div class="line"><a name="l03180"></a><span class="lineno"> 3180</span>                 ncards = 0;</div>
-<div class="line"><a name="l03181"></a><span class="lineno"> 3181</span>                 <span class="keywordflow">while</span>(cards[ncards] != NULL) ncards++;</div>
-<div class="line"><a name="l03182"></a><span class="lineno"> 3182</span>                 </div>
-<div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Only %d existing %s descriptor(s), add another %d"</span>,</div>
-<div class="line"><a name="l03184"></a><span class="lineno"> 3184</span>                                ncards, descr, number_of_extra);</div>
-<div class="line"><a name="l03185"></a><span class="lineno"> 3185</span>                 </div>
-<div class="line"><a name="l03186"></a><span class="lineno"> 3186</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cards_extra</div>
-<div class="line"><a name="l03187"></a><span class="lineno"> 3187</span>                        = <a class="code" href="group__flames__midas__def.html#ga660658a114854b46d0dd27605ea01711" title="Create descriptors.">create_descr</a>(frames[<span class="keywordtype">id</span>].header, descr, type,</div>
-<div class="line"><a name="l03188"></a><span class="lineno"> 3188</span>                                       number_of_extra, ncards),</div>
-<div class="line"><a name="l03189"></a><span class="lineno"> 3189</span>                        <span class="stringliteral">"Could not create %d %s descriptors"</span>,</div>
-<div class="line"><a name="l03190"></a><span class="lineno"> 3190</span>                        number_of_extra, descr);</div>
-<div class="line"><a name="l03191"></a><span class="lineno"> 3191</span>                 </div>
-<div class="line"><a name="l03192"></a><span class="lineno"> 3192</span>                 <span class="comment">/* Append to existing */</span></div>
-<div class="line"><a name="l03193"></a><span class="lineno"> 3193</span>                 cards = cpl_realloc(cards, (ncards + number_of_extra + 1)*<span class="keyword">sizeof</span>(cpl_property *));</div>
-<div class="line"><a name="l03194"></a><span class="lineno"> 3194</span>                 </div>
-<div class="line"><a name="l03195"></a><span class="lineno"> 3195</span>                 <span class="keywordflow">for</span> (i = ncards; i < ncards + number_of_extra; i++)</div>
-<div class="line"><a name="l03196"></a><span class="lineno"> 3196</span>                     {</div>
-<div class="line"><a name="l03197"></a><span class="lineno"> 3197</span>                         cards[i] = cards_extra[i-ncards];</div>
-<div class="line"><a name="l03198"></a><span class="lineno"> 3198</span>                     }</div>
-<div class="line"><a name="l03199"></a><span class="lineno"> 3199</span>                 </div>
-<div class="line"><a name="l03200"></a><span class="lineno"> 3200</span>                 cards[ncards+number_of_extra] = NULL;</div>
-<div class="line"><a name="l03201"></a><span class="lineno"> 3201</span>             }</div>
-<div class="line"><a name="l03202"></a><span class="lineno"> 3202</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03203"></a><span class="lineno"> 3203</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Do not add new cards for descriptor %s"</span>, descr);</div>
-<div class="line"><a name="l03204"></a><span class="lineno"> 3204</span>         }</div>
-<div class="line"><a name="l03205"></a><span class="lineno"> 3205</span>     }</div>
-<div class="line"><a name="l03206"></a><span class="lineno"> 3206</span> </div>
-<div class="line"><a name="l03207"></a><span class="lineno"> 3207</span>     <span class="comment">/* Properties now exist in correct number, with correct type */</span></div>
-<div class="line"><a name="l03208"></a><span class="lineno"> 3208</span>     <span class="keywordflow">for</span> (i = 0; i < ((type_to_write == <span class="charliteral">'C'</span>) ? 1 : nval); i++) {</div>
-<div class="line"><a name="l03209"></a><span class="lineno"> 3209</span>         <span class="keywordflow">if</span> (type_to_write == <span class="charliteral">'I'</span>) {</div>
-<div class="line"><a name="l03210"></a><span class="lineno"> 3210</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Writing %d. of %d values (%d) to cards[%d]"</span>,</div>
-<div class="line"><a name="l03211"></a><span class="lineno"> 3211</span>                            i+1,</div>
-<div class="line"><a name="l03212"></a><span class="lineno"> 3212</span>                            ((type_to_write == <span class="charliteral">'C'</span>) ? 1 : nval),</div>
-<div class="line"><a name="l03213"></a><span class="lineno"> 3213</span>                            ((<span class="keyword">const</span> <span class="keywordtype">int</span> *)values)[i],</div>
-<div class="line"><a name="l03214"></a><span class="lineno"> 3214</span>                            (felem-1) + i);</div>
-<div class="line"><a name="l03215"></a><span class="lineno"> 3215</span>         }</div>
-<div class="line"><a name="l03216"></a><span class="lineno"> 3216</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03217"></a><span class="lineno"> 3217</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Writing %d. of %d values to cards[%d]"</span>, </div>
-<div class="line"><a name="l03218"></a><span class="lineno"> 3218</span>                            i+1,</div>
-<div class="line"><a name="l03219"></a><span class="lineno"> 3219</span>                            ((type_to_write == <span class="charliteral">'C'</span>) ? 1 : nval),</div>
-<div class="line"><a name="l03220"></a><span class="lineno"> 3220</span>                            (felem-1) + i);</div>
-<div class="line"><a name="l03221"></a><span class="lineno"> 3221</span>         }</div>
-<div class="line"><a name="l03222"></a><span class="lineno"> 3222</span>         </div>
-<div class="line"><a name="l03223"></a><span class="lineno"> 3223</span>         <span class="comment">/* Allow conversion float -> double */</span></div>
-<div class="line"><a name="l03224"></a><span class="lineno"> 3224</span>         <span class="keywordflow">switch</span>(type_to_write) {</div>
-<div class="line"><a name="l03225"></a><span class="lineno"> 3225</span>         <span class="keywordflow">case</span> <span class="charliteral">'I'</span>: cpl_property_set_int (cards[(felem-1) + i], ((<span class="keyword">const</span> <span class="keywordtype">int</span> *)values)[i]); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03226"></a><span class="lineno"> 3226</span>         <span class="keywordflow">case</span> <span class="charliteral">'R'</span>: </div>
-<div class="line"><a name="l03227"></a><span class="lineno"> 3227</span>             <span class="keywordflow">switch</span>(type) {</div>
-<div class="line"><a name="l03228"></a><span class="lineno"> 3228</span>             <span class="keywordflow">case</span> <span class="charliteral">'R'</span>:</div>
-<div class="line"><a name="l03229"></a><span class="lineno"> 3229</span>                 cpl_property_set_float (cards[(felem-1) + i], ((<span class="keyword">const</span> <span class="keywordtype">float</span> *)values)[i]); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03230"></a><span class="lineno"> 3230</span>             <span class="keywordflow">case</span> <span class="charliteral">'D'</span>:</div>
-<div class="line"><a name="l03231"></a><span class="lineno"> 3231</span>                 cpl_property_set_double(cards[(felem-1) + i], ((<span class="keyword">const</span> <span class="keywordtype">float</span> *)values)[i]); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03232"></a><span class="lineno"> 3232</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l03233"></a><span class="lineno"> 3233</span>                 assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l03234"></a><span class="lineno"> 3234</span>                         <span class="stringliteral">"Cannot write type '%c' values to type '%c' descriptor"</span>,</div>
-<div class="line"><a name="l03235"></a><span class="lineno"> 3235</span>                         type_to_write, type);</div>
-<div class="line"><a name="l03236"></a><span class="lineno"> 3236</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03237"></a><span class="lineno"> 3237</span>             }</div>
-<div class="line"><a name="l03238"></a><span class="lineno"> 3238</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03239"></a><span class="lineno"> 3239</span>         <span class="keywordflow">case</span> <span class="charliteral">'C'</span>: cpl_property_set_string(cards[(felem-1) + i], (<span class="keyword">const</span> <span class="keywordtype">char</span> *)values); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03240"></a><span class="lineno"> 3240</span>         <span class="keywordflow">case</span> <span class="charliteral">'D'</span>: cpl_property_set_double(cards[(felem-1) + i], ((<span class="keyword">const</span> <span class="keywordtype">double</span> *)values)[i]); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03241"></a><span class="lineno"> 3241</span>         <span class="keywordflow">default</span>: </div>
-<div class="line"><a name="l03242"></a><span class="lineno"> 3242</span>             assure( <span class="keyword">false</span>,CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span>); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03243"></a><span class="lineno"> 3243</span>         }</div>
-<div class="line"><a name="l03244"></a><span class="lineno"> 3244</span> </div>
-<div class="line"><a name="l03245"></a><span class="lineno"> 3245</span>     }</div>
-<div class="line"><a name="l03246"></a><span class="lineno"> 3246</span>     </div>
-<div class="line"><a name="l03247"></a><span class="lineno"> 3247</span>     <span class="comment">/* unit not implemented by MIDAS */</span></div>
-<div class="line"><a name="l03248"></a><span class="lineno"> 3248</span>     </div>
-<div class="line"><a name="l03249"></a><span class="lineno"> 3249</span>     frames[id].need_to_save = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l03250"></a><span class="lineno"> 3250</span>     <span class="comment">/* and in order to be able to save the header with CPL,</span></div>
-<div class="line"><a name="l03251"></a><span class="lineno"> 3251</span> <span class="comment">       we need to also have the image in memory (if not already) */</span></div>
-<div class="line"><a name="l03252"></a><span class="lineno"> 3252</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886" title="Load image/table if not already in memory.">load_frame</a>(<span class="keywordtype">id</span>),</div>
-<div class="line"><a name="l03253"></a><span class="lineno"> 3253</span>            <span class="stringliteral">"Could not load frame %s"</span>, frames[<span class="keywordtype">id</span>].filename );</div>
-<div class="line"><a name="l03254"></a><span class="lineno"> 3254</span> </div>
-<div class="line"><a name="l03255"></a><span class="lineno"> 3255</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03256"></a><span class="lineno"> 3256</span> </div>
-<div class="line"><a name="l03257"></a><span class="lineno"> 3257</span>   cleanup:</div>
-<div class="line"><a name="l03258"></a><span class="lineno"> 3258</span>     cpl_free(cards); cards = NULL;</div>
-<div class="line"><a name="l03259"></a><span class="lineno"> 3259</span>     cpl_free(cards_extra); cards_extra = NULL;</div>
-<div class="line"><a name="l03260"></a><span class="lineno"> 3260</span>     </div>
-<div class="line"><a name="l03261"></a><span class="lineno"> 3261</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l03262"></a><span class="lineno"> 3262</span> }</div>
-<div class="line"><a name="l03263"></a><span class="lineno"> 3263</span> </div>
-<div class="line"><a name="l03264"></a><span class="lineno"> 3264</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03270"></a><span class="lineno"> 3270</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03271"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga13989de7cfac7c2dbf9af19b1474466c"> 3271</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga13989de7cfac7c2dbf9af19b1474466c" title="Write a descriptor and its data.">flames_midas_scdwri</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordt [...]
-<div class="line"><a name="l03272"></a><span class="lineno"> 3272</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> nval, <span class="keyword">const</span> <span class="keywordtype">int</span> *unit)</div>
-<div class="line"><a name="l03273"></a><span class="lineno"> 3273</span> {</div>
-<div class="line"><a name="l03274"></a><span class="lineno"> 3274</span>     <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"NPIX"</span>) == 0)</div>
-<div class="line"><a name="l03275"></a><span class="lineno"> 3275</span>     <span class="comment">/* MIDAS  NPIXi maps to FITS NAXISi */</span></div>
-<div class="line"><a name="l03276"></a><span class="lineno"> 3276</span>     {</div>
-<div class="line"><a name="l03277"></a><span class="lineno"> 3277</span>         cpl_type type;</div>
-<div class="line"><a name="l03278"></a><span class="lineno"> 3278</span>         <span class="keywordtype">int</span> *buffer_int=NULL;</div>
-<div class="line"><a name="l03279"></a><span class="lineno"> 3279</span>         <span class="keywordtype">float</span> *buffer_float=NULL;</div>
-<div class="line"><a name="l03280"></a><span class="lineno"> 3280</span>         <span class="keywordtype">double</span> *buffer_double=NULL;</div>
-<div class="line"><a name="l03281"></a><span class="lineno"> 3281</span>         <span class="keywordtype">int</span> size=0;</div>
-<div class="line"><a name="l03282"></a><span class="lineno"> 3282</span>         </div>
-<div class="line"><a name="l03283"></a><span class="lineno"> 3283</span>         assure( nval == 1 || nval == 2 || nval == 3 || nval == 4, </div>
-<div class="line"><a name="l03284"></a><span class="lineno"> 3284</span>                 CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l03285"></a><span class="lineno"> 3285</span>                 <span class="stringliteral">"Only 2d, 3d and 4d (not %dd) images supported"</span>, </div>
-<div class="line"><a name="l03286"></a><span class="lineno"> 3286</span>                 nval);</div>
-<div class="line"><a name="l03287"></a><span class="lineno"> 3287</span>         </div>
-<div class="line"><a name="l03288"></a><span class="lineno"> 3288</span>         assure( frames[<span class="keywordtype">id</span>].is_image, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l03289"></a><span class="lineno"> 3289</span>                 <span class="stringliteral">"Cannot write NPIX to table %s"</span>, frames[<span class="keywordtype">id</span>].filename);</div>
-<div class="line"><a name="l03290"></a><span class="lineno"> 3290</span>         </div>
-<div class="line"><a name="l03291"></a><span class="lineno"> 3291</span>         <span class="keywordflow">switch</span>(nval) {</div>
-<div class="line"><a name="l03292"></a><span class="lineno"> 3292</span>         <span class="keywordflow">case</span> 1: size = values[0]; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03293"></a><span class="lineno"> 3293</span>         <span class="keywordflow">case</span> 2: size = values[0] * values[1]; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03294"></a><span class="lineno"> 3294</span>         <span class="keywordflow">case</span> 3: size = values[0] * values[1] * values[2]; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03295"></a><span class="lineno"> 3295</span>             <span class="keywordflow">case</span> 4: size = values[0] * values[1] * values[2] * values[3]; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03296"></a><span class="lineno"> 3296</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l03297"></a><span class="lineno"> 3297</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <span class="keyword">false</span>, <span class="stringliteral">"Impossible"</span>);</div>
-<div class="line"><a name="l03298"></a><span class="lineno"> 3298</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03299"></a><span class="lineno"> 3299</span>         }</div>
-<div class="line"><a name="l03300"></a><span class="lineno"> 3300</span> </div>
-<div class="line"><a name="l03301"></a><span class="lineno"> 3301</span>         <span class="keywordflow">if</span> (frames[<span class="keywordtype">id</span>].data.image.image == NULL) {</div>
-<div class="line"><a name="l03302"></a><span class="lineno"> 3302</span>             frames[id].data.image.image = </div>
-<div class="line"><a name="l03303"></a><span class="lineno"> 3303</span>                 cpl_image_new(size, 1, </div>
-<div class="line"><a name="l03304"></a><span class="lineno"> 3304</span>                               frames[<span class="keywordtype">id</span>].data.image.type);</div>
-<div class="line"><a name="l03305"></a><span class="lineno"> 3305</span>         }</div>
-<div class="line"><a name="l03306"></a><span class="lineno"> 3306</span>         </div>
-<div class="line"><a name="l03307"></a><span class="lineno"> 3307</span>         assure( size == </div>
-<div class="line"><a name="l03308"></a><span class="lineno"> 3308</span>                 cpl_image_get_size_x(frames[<span class="keywordtype">id</span>].data.image.image) *</div>
-<div class="line"><a name="l03309"></a><span class="lineno"> 3309</span>                 cpl_image_get_size_y(frames[<span class="keywordtype">id</span>].data.image.image), </div>
-<div class="line"><a name="l03310"></a><span class="lineno"> 3310</span>                 CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l03311"></a><span class="lineno"> 3311</span>                 <span class="stringliteral">"Cannot set image %s NAXIS to %d because the "</span></div>
-<div class="line"><a name="l03312"></a><span class="lineno"> 3312</span>                 <span class="stringliteral">"image memory buffer size is %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l03313"></a><span class="lineno"> 3313</span>                 frames[<span class="keywordtype">id</span>].filename, </div>
-<div class="line"><a name="l03314"></a><span class="lineno"> 3314</span>                 size,</div>
-<div class="line"><a name="l03315"></a><span class="lineno"> 3315</span>                 cpl_image_get_size_x(frames[<span class="keywordtype">id</span>].data.image.image) *</div>
-<div class="line"><a name="l03316"></a><span class="lineno"> 3316</span>                 cpl_image_get_size_y(frames[<span class="keywordtype">id</span>].data.image.image));</div>
-<div class="line"><a name="l03317"></a><span class="lineno"> 3317</span>         </div>
-<div class="line"><a name="l03318"></a><span class="lineno"> 3318</span>         <span class="comment">/* Now unwrap + wrap the image structure, but keep</span></div>
-<div class="line"><a name="l03319"></a><span class="lineno"> 3319</span> <span class="comment">           the buffer unchanged */</span></div>
-<div class="line"><a name="l03320"></a><span class="lineno"> 3320</span>         type = cpl_image_get_type(frames[<span class="keywordtype">id</span>].data.image.image);</div>
-<div class="line"><a name="l03321"></a><span class="lineno"> 3321</span>         <span class="keywordflow">if</span> (nval == 2) {</div>
-<div class="line"><a name="l03322"></a><span class="lineno"> 3322</span>             <span class="comment">/* This is redundant now that NAXIS is overwritten when closing */</span></div>
-<div class="line"><a name="l03323"></a><span class="lineno"> 3323</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Setting image %s (type %s) size to %dx%d"</span>,</div>
-<div class="line"><a name="l03324"></a><span class="lineno"> 3324</span>                            frames[<span class="keywordtype">id</span>].filename,</div>
-<div class="line"><a name="l03325"></a><span class="lineno"> 3325</span>                            <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type),</div>
-<div class="line"><a name="l03326"></a><span class="lineno"> 3326</span>                            values[0], values[1]);</div>
-<div class="line"><a name="l03327"></a><span class="lineno"> 3327</span>             <span class="keywordflow">switch</span>(type) {</div>
-<div class="line"><a name="l03328"></a><span class="lineno"> 3328</span>             <span class="keywordflow">case</span> CPL_TYPE_INT   : buffer_int    = cpl_image_get_data_int(frames[<span class="keywordtype">id</span>].data.image.image); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03329"></a><span class="lineno"> 3329</span>             <span class="keywordflow">case</span> CPL_TYPE_FLOAT : buffer_float  = cpl_image_get_data_float(frames[<span class="keywordtype">id</span>].data.image.image); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03330"></a><span class="lineno"> 3330</span>             <span class="keywordflow">case</span> CPL_TYPE_DOUBLE: buffer_double = cpl_image_get_data_double(frames[<span class="keywordtype">id</span>].data.image.image); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03331"></a><span class="lineno"> 3331</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l03332"></a><span class="lineno"> 3332</span>                 assure( <span class="keyword">false</span>, CPL_ERROR_INVALID_TYPE, <span class="stringliteral">"Type is %s"</span>,</div>
-<div class="line"><a name="l03333"></a><span class="lineno"> 3333</span>                         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l03334"></a><span class="lineno"> 3334</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03335"></a><span class="lineno"> 3335</span>             }</div>
-<div class="line"><a name="l03336"></a><span class="lineno"> 3336</span> </div>
-<div class="line"><a name="l03337"></a><span class="lineno"> 3337</span>                 </div>
-<div class="line"><a name="l03338"></a><span class="lineno"> 3338</span>             <span class="comment">/* Deallocate, except buffer */</span></div>
-<div class="line"><a name="l03339"></a><span class="lineno"> 3339</span>             cpl_image_unwrap(frames[<span class="keywordtype">id</span>].data.image.image);</div>
-<div class="line"><a name="l03340"></a><span class="lineno"> 3340</span>                 </div>
-<div class="line"><a name="l03341"></a><span class="lineno"> 3341</span>             <span class="keywordflow">switch</span>(type) {</div>
-<div class="line"><a name="l03342"></a><span class="lineno"> 3342</span>             <span class="keywordflow">case</span> CPL_TYPE_INT   : frames[id].data.image.image = cpl_image_wrap_int   (values[0], values[1], buffer_int); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03343"></a><span class="lineno"> 3343</span>             <span class="keywordflow">case</span> CPL_TYPE_FLOAT : frames[id].data.image.image = cpl_image_wrap_float (values[0], values[1], buffer_float); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03344"></a><span class="lineno"> 3344</span>             <span class="keywordflow">case</span> CPL_TYPE_DOUBLE: frames[id].data.image.image = cpl_image_wrap_double(values[0], values[1], buffer_double); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03345"></a><span class="lineno"> 3345</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l03346"></a><span class="lineno"> 3346</span>                 assure( <span class="keyword">false</span>, CPL_ERROR_INVALID_TYPE, <span class="stringliteral">"Type is %s"</span>,</div>
-<div class="line"><a name="l03347"></a><span class="lineno"> 3347</span>                         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l03348"></a><span class="lineno"> 3348</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03349"></a><span class="lineno"> 3349</span>             }</div>
-<div class="line"><a name="l03350"></a><span class="lineno"> 3350</span> </div>
-<div class="line"><a name="l03351"></a><span class="lineno"> 3351</span>         }</div>
-<div class="line"><a name="l03352"></a><span class="lineno"> 3352</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03353"></a><span class="lineno"> 3353</span>             <span class="comment">/* for 3d, 4d images don't change the CPL</span></div>
-<div class="line"><a name="l03354"></a><span class="lineno"> 3354</span> <span class="comment">               image axes. NAXISi will be overwritten when saving */</span></div>
-<div class="line"><a name="l03355"></a><span class="lineno"> 3355</span>         }</div>
-<div class="line"><a name="l03356"></a><span class="lineno"> 3356</span>     }</div>
-<div class="line"><a name="l03357"></a><span class="lineno"> 3357</span>     </div>
-<div class="line"><a name="l03358"></a><span class="lineno"> 3358</span>     <a class="code" href="group__flames__midas__def.html#ga3df6bb0a7782b06c85dca025c4bd5682" title="Write a descriptor and its data.">scdwr</a>(<span class="charliteral">'I'</span>, <span class="keywordtype">id</span>, descr, values, felem, nval, unit);</div>
-<div class="line"><a name="l03359"></a><span class="lineno"> 3359</span>     </div>
-<div class="line"><a name="l03360"></a><span class="lineno"> 3360</span>   cleanup:</div>
-<div class="line"><a name="l03361"></a><span class="lineno"> 3361</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l03362"></a><span class="lineno"> 3362</span> }</div>
-<div class="line"><a name="l03363"></a><span class="lineno"> 3363</span> </div>
-<div class="line"><a name="l03364"></a><span class="lineno"> 3364</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03370"></a><span class="lineno"> 3370</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03371"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga2291fd90dbe300f347bdeb8b9406defc"> 3371</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga2291fd90dbe300f347bdeb8b9406defc" title="Write a descriptor and its data.">flames_midas_scdwrd</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordt [...]
-<div class="line"><a name="l03372"></a><span class="lineno"> 3372</span>                         <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> nval, <span class="keyword">const</span> <span class="keywordtype">int</span> *unit)</div>
-<div class="line"><a name="l03373"></a><span class="lineno"> 3373</span> {</div>
-<div class="line"><a name="l03374"></a><span class="lineno"> 3374</span>     <span class="keywordflow">if</span> (strcmp(<span class="stringliteral">"CRPIX"</span>, descr) == 0 ||</div>
-<div class="line"><a name="l03375"></a><span class="lineno"> 3375</span>         strcmp(<span class="stringliteral">"CRVAL"</span>, descr) == 0 ||</div>
-<div class="line"><a name="l03376"></a><span class="lineno"> 3376</span>         strcmp(<span class="stringliteral">"CDELT"</span>, descr) == 0) {</div>
-<div class="line"><a name="l03377"></a><span class="lineno"> 3377</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03378"></a><span class="lineno"> 3378</span>         <span class="keywordtype">bool</span> success = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l03379"></a><span class="lineno"> 3379</span>         </div>
-<div class="line"><a name="l03380"></a><span class="lineno"> 3380</span>         <span class="keywordflow">for</span> (i = felem; i < felem+nval; i++) {</div>
-<div class="line"><a name="l03381"></a><span class="lineno"> 3381</span>             <span class="keywordtype">char</span> descr_i[10];</div>
-<div class="line"><a name="l03382"></a><span class="lineno"> 3382</span>             </div>
-<div class="line"><a name="l03383"></a><span class="lineno"> 3383</span>             sprintf(descr_i, <span class="stringliteral">"%s%i"</span>, descr, i);</div>
-<div class="line"><a name="l03384"></a><span class="lineno"> 3384</span>             success = success &&</div>
-<div class="line"><a name="l03385"></a><span class="lineno"> 3385</span>                 (<a class="code" href="group__flames__midas__def.html#ga2291fd90dbe300f347bdeb8b9406defc" title="Write a descriptor and its data.">flames_midas_scdwrd</a>(<span class="keywordtype">id</span>, descr_i, &values[i-felem], </div>
-<div class="line"><a name="l03386"></a><span class="lineno"> 3386</span>                                      felem, 1, unit) == 0);</div>
-<div class="line"><a name="l03387"></a><span class="lineno"> 3387</span>         }</div>
-<div class="line"><a name="l03388"></a><span class="lineno"> 3388</span> </div>
-<div class="line"><a name="l03389"></a><span class="lineno"> 3389</span>         <span class="keywordflow">return</span> success ? 0 : 1;</div>
-<div class="line"><a name="l03390"></a><span class="lineno"> 3390</span>     }</div>
-<div class="line"><a name="l03391"></a><span class="lineno"> 3391</span>     </div>
-<div class="line"><a name="l03392"></a><span class="lineno"> 3392</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga3df6bb0a7782b06c85dca025c4bd5682" title="Write a descriptor and its data.">scdwr</a>(<span class="charliteral">'D'</span>, <span class="keywordtype">id</span>, descr, values, felem, nval, unit);</div>
-<div class="line"><a name="l03393"></a><span class="lineno"> 3393</span> }</div>
-<div class="line"><a name="l03394"></a><span class="lineno"> 3394</span> </div>
-<div class="line"><a name="l03395"></a><span class="lineno"> 3395</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03401"></a><span class="lineno"> 3401</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03402"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga1529d77bc40fef94b2ff2c3e00c478e1"> 3402</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga1529d77bc40fef94b2ff2c3e00c478e1" title="Write a descriptor and its data.">flames_midas_scdwrr</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordt [...]
-<div class="line"><a name="l03403"></a><span class="lineno"> 3403</span>                         <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> nval, <span class="keyword">const</span> <span class="keywordtype">int</span> *unit)</div>
-<div class="line"><a name="l03404"></a><span class="lineno"> 3404</span> {</div>
-<div class="line"><a name="l03405"></a><span class="lineno"> 3405</span>     <span class="keywordflow">if</span> (strcmp(<span class="stringliteral">"LHCUTS"</span>, descr) == 0 && felem < 3) {</div>
-<div class="line"><a name="l03406"></a><span class="lineno"> 3406</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03407"></a><span class="lineno"> 3407</span>         <span class="keywordtype">bool</span> success = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l03408"></a><span class="lineno"> 3408</span>             </div>
-<div class="line"><a name="l03409"></a><span class="lineno"> 3409</span>         <span class="keywordflow">for</span> (i = felem; i < felem+nval; i++)</div>
-<div class="line"><a name="l03410"></a><span class="lineno"> 3410</span>             {</div>
-<div class="line"><a name="l03411"></a><span class="lineno"> 3411</span>                 <span class="keywordflow">if</span> (1 <= i && i <= 2)</div>
-<div class="line"><a name="l03412"></a><span class="lineno"> 3412</span>                     {</div>
-<div class="line"><a name="l03413"></a><span class="lineno"> 3413</span>                         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Do not write LHCUTS%d"</span>, i);</div>
-<div class="line"><a name="l03414"></a><span class="lineno"> 3414</span>                     }</div>
-<div class="line"><a name="l03415"></a><span class="lineno"> 3415</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i == 3)</div>
-<div class="line"><a name="l03416"></a><span class="lineno"> 3416</span>                     {</div>
-<div class="line"><a name="l03417"></a><span class="lineno"> 3417</span>                         <span class="keywordtype">double</span> val = (double) values[i-felem-1];</div>
-<div class="line"><a name="l03418"></a><span class="lineno"> 3418</span>                         success = success &&</div>
-<div class="line"><a name="l03419"></a><span class="lineno"> 3419</span>                             (<a class="code" href="group__flames__midas__def.html#ga2291fd90dbe300f347bdeb8b9406defc" title="Write a descriptor and its data.">flames_midas_scdwrd</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"DATAMIN"</span>, &val, </div>
-<div class="line"><a name="l03420"></a><span class="lineno"> 3420</span>                                                  1, 1, unit) == 0);</div>
-<div class="line"><a name="l03421"></a><span class="lineno"> 3421</span>                     }</div>
-<div class="line"><a name="l03422"></a><span class="lineno"> 3422</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i == 4)</div>
-<div class="line"><a name="l03423"></a><span class="lineno"> 3423</span>                     {</div>
-<div class="line"><a name="l03424"></a><span class="lineno"> 3424</span>                         <span class="keywordtype">double</span> val = (double) values[i-felem-1];</div>
-<div class="line"><a name="l03425"></a><span class="lineno"> 3425</span>                         success = success &&</div>
-<div class="line"><a name="l03426"></a><span class="lineno"> 3426</span>                             (<a class="code" href="group__flames__midas__def.html#ga2291fd90dbe300f347bdeb8b9406defc" title="Write a descriptor and its data.">flames_midas_scdwrd</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"DATAMAX"</span>, &val,</div>
-<div class="line"><a name="l03427"></a><span class="lineno"> 3427</span>                                                  1, 1, unit) == 0);</div>
-<div class="line"><a name="l03428"></a><span class="lineno"> 3428</span>                     }</div>
-<div class="line"><a name="l03429"></a><span class="lineno"> 3429</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03430"></a><span class="lineno"> 3430</span>                     {</div>
-<div class="line"><a name="l03431"></a><span class="lineno"> 3431</span>                         success = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03432"></a><span class="lineno"> 3432</span>                     }</div>
-<div class="line"><a name="l03433"></a><span class="lineno"> 3433</span>             }</div>
-<div class="line"><a name="l03434"></a><span class="lineno"> 3434</span>         <span class="keywordflow">return</span> success ? 0 : 1;</div>
-<div class="line"><a name="l03435"></a><span class="lineno"> 3435</span>     }</div>
-<div class="line"><a name="l03436"></a><span class="lineno"> 3436</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03437"></a><span class="lineno"> 3437</span>     {</div>
-<div class="line"><a name="l03438"></a><span class="lineno"> 3438</span>         <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga3df6bb0a7782b06c85dca025c4bd5682" title="Write a descriptor and its data.">scdwr</a>(<span class="charliteral">'R'</span>, <span class="keywordtype">id</span>, descr, values, felem, nval, unit);</div>
-<div class="line"><a name="l03439"></a><span class="lineno"> 3439</span>     }</div>
-<div class="line"><a name="l03440"></a><span class="lineno"> 3440</span> }</div>
-<div class="line"><a name="l03441"></a><span class="lineno"> 3441</span> </div>
-<div class="line"><a name="l03442"></a><span class="lineno"> 3442</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03452"></a><span class="lineno"> 3452</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03453"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga44cabf3bf150345b7212c5b7b53b98c2"> 3453</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga44cabf3bf150345b7212c5b7b53b98c2" title="Write a descriptor and its data.">flames_midas_scdwrc</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordt [...]
-<div class="line"><a name="l03454"></a><span class="lineno"> 3454</span>                         <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> nval, <span class="keyword">const</span> <span class="keywordtype">int</span> *unit)</div>
-<div class="line"><a name="l03455"></a><span class="lineno"> 3455</span> {</div>
-<div class="line"><a name="l03456"></a><span class="lineno"> 3456</span>     <span class="keywordtype">int</span> returnvalue = 1;</div>
-<div class="line"><a name="l03457"></a><span class="lineno"> 3457</span>     <span class="keywordtype">char</span>* tmp_string=NULL;</div>
-<div class="line"><a name="l03458"></a><span class="lineno"> 3458</span> </div>
-<div class="line"><a name="l03459"></a><span class="lineno"> 3459</span>     <span class="keywordflow">if</span> (strcmp(descr, <span class="stringliteral">"CUNIT"</span>) == 0) {</div>
-<div class="line"><a name="l03460"></a><span class="lineno"> 3460</span>         <span class="keywordflow">if</span> (noelm == 1) {</div>
-<div class="line"><a name="l03461"></a><span class="lineno"> 3461</span>             <span class="keywordtype">char</span> val[17];</div>
-<div class="line"><a name="l03462"></a><span class="lineno"> 3462</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03463"></a><span class="lineno"> 3463</span> </div>
-<div class="line"><a name="l03464"></a><span class="lineno"> 3464</span>             assure( nval % 16 == 0, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l03465"></a><span class="lineno"> 3465</span>                     <span class="stringliteral">"nval = %d"</span>, nval );</div>
-<div class="line"><a name="l03466"></a><span class="lineno"> 3466</span>             <span class="comment">/* nval used in FLAMES code are 32, 48, 64 and 80 */</span></div>
-<div class="line"><a name="l03467"></a><span class="lineno"> 3467</span> </div>
-<div class="line"><a name="l03468"></a><span class="lineno"> 3468</span> </div>
-<div class="line"><a name="l03469"></a><span class="lineno"> 3469</span>             strncpy(val, values, 16);</div>
-<div class="line"><a name="l03470"></a><span class="lineno"> 3470</span>             val[16] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l03471"></a><span class="lineno"> 3471</span>             returnvalue = <a class="code" href="group__flames__midas__def.html#ga44cabf3bf150345b7212c5b7b53b98c2" title="Write a descriptor and its data.">flames_midas_scdwrc</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"BUNIT"</span>, 1, val, felem, 16, unit);</div>
-<div class="line"><a name="l03472"></a><span class="lineno"> 3472</span>             </div>
-<div class="line"><a name="l03473"></a><span class="lineno"> 3473</span>             <span class="keywordflow">for</span> (i = 1; i < nval/16; i++) {</div>
-<div class="line"><a name="l03474"></a><span class="lineno"> 3474</span>                 <span class="keyword">const</span> <span class="keywordtype">char</span> *ctype_i;</div>
-<div class="line"><a name="l03475"></a><span class="lineno"> 3475</span>                 </div>
-<div class="line"><a name="l03476"></a><span class="lineno"> 3476</span>                 <span class="keywordflow">switch</span>(i) {</div>
-<div class="line"><a name="l03477"></a><span class="lineno"> 3477</span>                 <span class="keywordflow">case</span> 1: ctype_i = <span class="stringliteral">"CTYPE1"</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03478"></a><span class="lineno"> 3478</span>                 <span class="keywordflow">case</span> 2: ctype_i = <span class="stringliteral">"CTYPE2"</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03479"></a><span class="lineno"> 3479</span>                 <span class="keywordflow">case</span> 3: ctype_i = <span class="stringliteral">"CTYPE3"</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03480"></a><span class="lineno"> 3480</span>                 <span class="keywordflow">case</span> 4: ctype_i = <span class="stringliteral">"CTYPE4"</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03481"></a><span class="lineno"> 3481</span>                 <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l03482"></a><span class="lineno"> 3482</span>                     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l03483"></a><span class="lineno"> 3483</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03484"></a><span class="lineno"> 3484</span>                 }</div>
-<div class="line"><a name="l03485"></a><span class="lineno"> 3485</span>                 </div>
-<div class="line"><a name="l03486"></a><span class="lineno"> 3486</span>                 strncpy(val, values+i*16, 16);</div>
-<div class="line"><a name="l03487"></a><span class="lineno"> 3487</span>                 val[16] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l03488"></a><span class="lineno"> 3488</span>                 </div>
-<div class="line"><a name="l03489"></a><span class="lineno"> 3489</span>                 <span class="keywordflow">if</span> (returnvalue == 0) {</div>
-<div class="line"><a name="l03490"></a><span class="lineno"> 3490</span>                     returnvalue = <a class="code" href="group__flames__midas__def.html#ga44cabf3bf150345b7212c5b7b53b98c2" title="Write a descriptor and its data.">flames_midas_scdwrc</a>(<span class="keywordtype">id</span>, ctype_i, 1, val, felem, 16, unit);</div>
-<div class="line"><a name="l03491"></a><span class="lineno"> 3491</span>                 }</div>
-<div class="line"><a name="l03492"></a><span class="lineno"> 3492</span>             }</div>
-<div class="line"><a name="l03493"></a><span class="lineno"> 3493</span>         }</div>
-<div class="line"><a name="l03494"></a><span class="lineno"> 3494</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03495"></a><span class="lineno"> 3495</span>             <span class="comment">/* The FLAMES C code has only one call like this.</span></div>
-<div class="line"><a name="l03496"></a><span class="lineno"> 3496</span> <span class="comment">               Implement it by 3 manual calls.</span></div>
-<div class="line"><a name="l03497"></a><span class="lineno"> 3497</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l03498"></a><span class="lineno"> 3498</span>             assure( nval == 3, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l03499"></a><span class="lineno"> 3499</span>                     <span class="stringliteral">"noelm = %d, nval = %d"</span>, noelm, nval);</div>
-<div class="line"><a name="l03500"></a><span class="lineno"> 3500</span>             </div>
-<div class="line"><a name="l03501"></a><span class="lineno"> 3501</span>             <span class="comment">/* Yes, here noelm and nval are swapped */</span></div>
-<div class="line"><a name="l03502"></a><span class="lineno"> 3502</span>             returnvalue = <a class="code" href="group__flames__midas__def.html#ga44cabf3bf150345b7212c5b7b53b98c2" title="Write a descriptor and its data.">flames_midas_scdwrc</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"BUNIT"</span>,  1, values+0, felem, noelm, unit);</div>
-<div class="line"><a name="l03503"></a><span class="lineno"> 3503</span>             <span class="keywordflow">if</span> (returnvalue == 0) {</div>
-<div class="line"><a name="l03504"></a><span class="lineno"> 3504</span>                 returnvalue = <a class="code" href="group__flames__midas__def.html#ga44cabf3bf150345b7212c5b7b53b98c2" title="Write a descriptor and its data.">flames_midas_scdwrc</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"CTYPE1"</span>, 1, values+1, felem, noelm, unit);</div>
-<div class="line"><a name="l03505"></a><span class="lineno"> 3505</span>             }</div>
-<div class="line"><a name="l03506"></a><span class="lineno"> 3506</span>             <span class="keywordflow">if</span> (returnvalue == 0) {</div>
-<div class="line"><a name="l03507"></a><span class="lineno"> 3507</span>                 returnvalue = <a class="code" href="group__flames__midas__def.html#ga44cabf3bf150345b7212c5b7b53b98c2" title="Write a descriptor and its data.">flames_midas_scdwrc</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"CTYPE2"</span>, 1, values+2, felem, noelm, unit);</div>
-<div class="line"><a name="l03508"></a><span class="lineno"> 3508</span>             }</div>
-<div class="line"><a name="l03509"></a><span class="lineno"> 3509</span>         }</div>
-<div class="line"><a name="l03510"></a><span class="lineno"> 3510</span>     }</div>
-<div class="line"><a name="l03511"></a><span class="lineno"> 3511</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03512"></a><span class="lineno"> 3512</span>         assure( noelm == <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>), CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span> );</div>
-<div class="line"><a name="l03513"></a><span class="lineno"> 3513</span>         assure( felem == 1, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span> );</div>
-<div class="line"><a name="l03514"></a><span class="lineno"> 3514</span>         </div>
-<div class="line"><a name="l03515"></a><span class="lineno"> 3515</span>         <span class="comment">/* nval is the string length */</span></div>
-<div class="line"><a name="l03516"></a><span class="lineno"> 3516</span>         tmp_string=cpl_calloc((nval+1),<span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l03517"></a><span class="lineno"> 3517</span>         strncpy(tmp_string,values,nval);    </div>
-<div class="line"><a name="l03518"></a><span class="lineno"> 3518</span>         returnvalue = <a class="code" href="group__flames__midas__def.html#ga3df6bb0a7782b06c85dca025c4bd5682" title="Write a descriptor and its data.">scdwr</a>(<span class="charliteral">'C'</span>, <span class="keywordtype">id</span>, descr, tmp_string, felem, nval, unit);</div>
-<div class="line"><a name="l03519"></a><span class="lineno"> 3519</span>         </div>
-<div class="line"><a name="l03520"></a><span class="lineno"> 3520</span>     }</div>
-<div class="line"><a name="l03521"></a><span class="lineno"> 3521</span>     </div>
-<div class="line"><a name="l03522"></a><span class="lineno"> 3522</span>   cleanup:</div>
-<div class="line"><a name="l03523"></a><span class="lineno"> 3523</span>     cpl_free(tmp_string);</div>
-<div class="line"><a name="l03524"></a><span class="lineno"> 3524</span>     <span class="keywordflow">return</span> returnvalue;    </div>
-<div class="line"><a name="l03525"></a><span class="lineno"> 3525</span> }</div>
-<div class="line"><a name="l03526"></a><span class="lineno"> 3526</span> </div>
-<div class="line"><a name="l03527"></a><span class="lineno"> 3527</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03534"></a><span class="lineno"> 3534</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03535"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga48f59f2f6c0f646a98df741d3dca5490"> 3535</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga48f59f2f6c0f646a98df741d3dca5490" title="Delete a descriptor.">flames_midas_scddel</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">char</s [...]
-<div class="line"><a name="l03536"></a><span class="lineno"> 3536</span> {</div>
-<div class="line"><a name="l03537"></a><span class="lineno"> 3537</span>     cpl_property **cards = NULL;</div>
-<div class="line"><a name="l03538"></a><span class="lineno"> 3538</span>     <span class="keywordtype">char</span> type;</div>
-<div class="line"><a name="l03539"></a><span class="lineno"> 3539</span>     <span class="keywordtype">int</span> length, bytelem;</div>
-<div class="line"><a name="l03540"></a><span class="lineno"> 3540</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *fits_descr = NULL;</div>
-<div class="line"><a name="l03541"></a><span class="lineno"> 3541</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name_regexp = NULL;</div>
-<div class="line"><a name="l03542"></a><span class="lineno"> 3542</span> </div>
-<div class="line"><a name="l03543"></a><span class="lineno"> 3543</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03544"></a><span class="lineno"> 3544</span> </div>
-<div class="line"><a name="l03545"></a><span class="lineno"> 3545</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(<span class="keywordtype">id</span>), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l03546"></a><span class="lineno"> 3546</span>         <span class="stringliteral">"Frame no. %d is not open"</span>, <span class="keywordtype">id</span> );</div>
-<div class="line"><a name="l03547"></a><span class="lineno"> 3547</span> </div>
-<div class="line"><a name="l03548"></a><span class="lineno"> 3548</span>     <span class="comment">/* Need to convert from MIDAS names to CPL propertylist names */</span></div>
-<div class="line"><a name="l03549"></a><span class="lineno"> 3549</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cards = <a class="code" href="group__flames__midas__def.html#ga39b00de90ed04a8759704d6ad997c30c" title="Get descriptor information.">get_descr_info</a>(<span class="keywordtype">id</span>, descr, &type,</div>
-<div class="line"><a name="l03550"></a><span class="lineno"> 3550</span>                                   &length, &bytelem),</div>
-<div class="line"><a name="l03551"></a><span class="lineno"> 3551</span>        <span class="stringliteral">"Could not get info on descriptor %s"</span>, descr);</div>
-<div class="line"><a name="l03552"></a><span class="lineno"> 3552</span> </div>
-<div class="line"><a name="l03553"></a><span class="lineno"> 3553</span>     <span class="keywordflow">if</span> (cards != NULL)</div>
-<div class="line"><a name="l03554"></a><span class="lineno"> 3554</span>         {</div>
-<div class="line"><a name="l03555"></a><span class="lineno"> 3555</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03556"></a><span class="lineno"> 3556</span>             </div>
-<div class="line"><a name="l03557"></a><span class="lineno"> 3557</span>             frames[id].need_to_save = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l03558"></a><span class="lineno"> 3558</span> </div>
-<div class="line"><a name="l03559"></a><span class="lineno"> 3559</span>             <span class="keywordflow">for</span> (i = 1; i <= length; i++)</div>
-<div class="line"><a name="l03560"></a><span class="lineno"> 3560</span>                 {</div>
-<div class="line"><a name="l03561"></a><span class="lineno"> 3561</span>                     <span class="keywordtype">int</span> invert = 0;</div>
-<div class="line"><a name="l03562"></a><span class="lineno"> 3562</span>                     uves_free_string_const(&fits_descr);        </div>
-<div class="line"><a name="l03563"></a><span class="lineno"> 3563</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( fits_descr = <a class="code" href="group__flames__midas__def.html#gac5996d64d908d2cfa6f94ea779a0ea95" title="Map MIDAS descriptors to FITS equivalents.">convert_to_fits</a>(descr, i),</div>
-<div class="line"><a name="l03564"></a><span class="lineno"> 3564</span>                            <span class="stringliteral">"Could not convert %s to FITS"</span>, descr);</div>
-<div class="line"><a name="l03565"></a><span class="lineno"> 3565</span> </div>
-<div class="line"><a name="l03566"></a><span class="lineno"> 3566</span>                     <span class="comment">/* uves_propertylist_erase() will  erase only the first</span></div>
-<div class="line"><a name="l03567"></a><span class="lineno"> 3567</span> <span class="comment">                       property with the given name. We want to erase all matches</span></div>
-<div class="line"><a name="l03568"></a><span class="lineno"> 3568</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l03569"></a><span class="lineno"> 3569</span> </div>
-<div class="line"><a name="l03570"></a><span class="lineno"> 3570</span>                     uves_free_string_const(&fits_descr);        </div>
-<div class="line"><a name="l03571"></a><span class="lineno"> 3571</span>                     name_regexp = uves_sprintf(<span class="stringliteral">"^%s$"</span>, fits_descr);</div>
-<div class="line"><a name="l03572"></a><span class="lineno"> 3572</span>                     <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(frames[<span class="keywordtype">id</span>].header, name_regexp, invert);</div>
-<div class="line"><a name="l03573"></a><span class="lineno"> 3573</span>                 }</div>
-<div class="line"><a name="l03574"></a><span class="lineno"> 3574</span>     }</div>
-<div class="line"><a name="l03575"></a><span class="lineno"> 3575</span> </div>
-<div class="line"><a name="l03576"></a><span class="lineno"> 3576</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(<span class="keywordtype">id</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03577"></a><span class="lineno"> 3577</span> </div>
-<div class="line"><a name="l03578"></a><span class="lineno"> 3578</span>   cleanup:</div>
-<div class="line"><a name="l03579"></a><span class="lineno"> 3579</span>     uves_free_string_const(&fits_descr);        </div>
-<div class="line"><a name="l03580"></a><span class="lineno"> 3580</span>     uves_free_string_const(&name_regexp);</div>
-<div class="line"><a name="l03581"></a><span class="lineno"> 3581</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l03582"></a><span class="lineno"> 3582</span> }</div>
-<div class="line"><a name="l03583"></a><span class="lineno"> 3583</span> </div>
-<div class="line"><a name="l03584"></a><span class="lineno"> 3584</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03605"></a><span class="lineno"> 3605</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03606"></a><span class="lineno"> 3606</span> </div>
-<div class="line"><a name="l03607"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gae41c12c4d3844865f17d833c1cb1417e"> 3607</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gae41c12c4d3844865f17d833c1cb1417e" title="Copy descriptors from one frame to another.">scdcop</a>(<span class="keywordtype">int</span> from, <span class="keywordtype">int</span> to, <span class= [...]
-<div class="line"><a name="l03608"></a><span class="lineno"> 3608</span> {</div>
-<div class="line"><a name="l03609"></a><span class="lineno"> 3609</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *key = NULL;</div>
-<div class="line"><a name="l03610"></a><span class="lineno"> 3610</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(from), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03611"></a><span class="lineno"> 3611</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(to  ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03612"></a><span class="lineno"> 3612</span> </div>
-<div class="line"><a name="l03613"></a><span class="lineno"> 3613</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(from), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l03614"></a><span class="lineno"> 3614</span>             <span class="stringliteral">"Image no. %d is not open"</span>, from);</div>
-<div class="line"><a name="l03615"></a><span class="lineno"> 3615</span>     </div>
-<div class="line"><a name="l03616"></a><span class="lineno"> 3616</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(to), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l03617"></a><span class="lineno"> 3617</span>             <span class="stringliteral">"Image no. %d is not open"</span>, to);</div>
-<div class="line"><a name="l03618"></a><span class="lineno"> 3618</span>     </div>
-<div class="line"><a name="l03619"></a><span class="lineno"> 3619</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#ga01414f0f04f79fd8686c2f6f9f478fbc" title="Load frame FITS header if not already in memory.">load_frame_header</a>(from),</div>
-<div class="line"><a name="l03620"></a><span class="lineno"> 3620</span>        <span class="stringliteral">"Could not load header of file %s"</span>, frames[from].filename);</div>
-<div class="line"><a name="l03621"></a><span class="lineno"> 3621</span> </div>
-<div class="line"><a name="l03622"></a><span class="lineno"> 3622</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#ga01414f0f04f79fd8686c2f6f9f478fbc" title="Load frame FITS header if not already in memory.">load_frame_header</a>(to),</div>
-<div class="line"><a name="l03623"></a><span class="lineno"> 3623</span>        <span class="stringliteral">"Could not load header of file %s"</span>, frames[to].filename);</div>
-<div class="line"><a name="l03624"></a><span class="lineno"> 3624</span> </div>
-<div class="line"><a name="l03625"></a><span class="lineno"> 3625</span>     <span class="keywordflow">switch</span> (mask) {</div>
-<div class="line"><a name="l03626"></a><span class="lineno"> 3626</span>     <span class="keywordflow">case</span> 1:</div>
-<div class="line"><a name="l03627"></a><span class="lineno"> 3627</span>         <span class="comment">/* copy all */</span></div>
-<div class="line"><a name="l03628"></a><span class="lineno"> 3628</span>         <span class="keywordflow">if</span> (0)</div>
-<div class="line"><a name="l03629"></a><span class="lineno"> 3629</span>             {</div>
-<div class="line"><a name="l03630"></a><span class="lineno"> 3630</span>                 <span class="comment">/* This would just append */</span></div>
-<div class="line"><a name="l03631"></a><span class="lineno"> 3631</span>                 <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(frames[to].header, frames[from].header);</div>
-<div class="line"><a name="l03632"></a><span class="lineno"> 3632</span>             }</div>
-<div class="line"><a name="l03633"></a><span class="lineno"> 3633</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03634"></a><span class="lineno"> 3634</span>             {</div>
-<div class="line"><a name="l03635"></a><span class="lineno"> 3635</span>                 <span class="comment">/* overwrites existing descriptors */</span></div>
-<div class="line"><a name="l03636"></a><span class="lineno"> 3636</span>                 <span class="keywordflow">if</span> (copy_naxis) {</div>
-<div class="line"><a name="l03637"></a><span class="lineno"> 3637</span>                     <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(frames[to].header, </div>
-<div class="line"><a name="l03638"></a><span class="lineno"> 3638</span>                                                            frames[from].header,</div>
-<div class="line"><a name="l03639"></a><span class="lineno"> 3639</span>                                                            <span class="stringliteral">".*"</span>, 0);</div>
-<div class="line"><a name="l03640"></a><span class="lineno"> 3640</span>                 }</div>
-<div class="line"><a name="l03641"></a><span class="lineno"> 3641</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03642"></a><span class="lineno"> 3642</span>                     <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(frames[to].header, </div>
-<div class="line"><a name="l03643"></a><span class="lineno"> 3643</span>                                                            frames[from].header,</div>
-<div class="line"><a name="l03644"></a><span class="lineno"> 3644</span>                                                            <span class="stringliteral">"^NAXIS"</span>, 1);</div>
-<div class="line"><a name="l03645"></a><span class="lineno"> 3645</span>                 }</div>
-<div class="line"><a name="l03646"></a><span class="lineno"> 3646</span>             }</div>
-<div class="line"><a name="l03647"></a><span class="lineno"> 3647</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%s header now contains %ld descriptors"</span>,</div>
-<div class="line"><a name="l03648"></a><span class="lineno"> 3648</span>                        frames[to].filename, <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(frames[to].header));</div>
-<div class="line"><a name="l03649"></a><span class="lineno"> 3649</span>         </div>
-<div class="line"><a name="l03650"></a><span class="lineno"> 3650</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03651"></a><span class="lineno"> 3651</span>     <span class="keywordflow">case</span> 3:</div>
-<div class="line"><a name="l03652"></a><span class="lineno"> 3652</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span>);     </div>
-<div class="line"><a name="l03653"></a><span class="lineno"> 3653</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03654"></a><span class="lineno"> 3654</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l03655"></a><span class="lineno"> 3655</span>         <span class="comment">/* Not needed for FLAMES code */</span></div>
-<div class="line"><a name="l03656"></a><span class="lineno"> 3656</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span>);</div>
-<div class="line"><a name="l03657"></a><span class="lineno"> 3657</span>     }</div>
-<div class="line"><a name="l03658"></a><span class="lineno"> 3658</span> </div>
-<div class="line"><a name="l03659"></a><span class="lineno"> 3659</span>     <span class="comment">/* Need to change size of image */</span></div>
-<div class="line"><a name="l03660"></a><span class="lineno"> 3660</span>     <span class="keywordflow">if</span> (frames[from].is_image && copy_naxis) {</div>
-<div class="line"><a name="l03661"></a><span class="lineno"> 3661</span>         <span class="keywordtype">int</span> naxis = <a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(frames[from].header, <span class="stringliteral">"NAXIS"</span>);</div>
-<div class="line"><a name="l03662"></a><span class="lineno"> 3662</span>         <span class="keywordtype">int</span> axis;</div>
-<div class="line"><a name="l03663"></a><span class="lineno"> 3663</span>         <span class="keywordtype">int</span> unit;</div>
-<div class="line"><a name="l03664"></a><span class="lineno"> 3664</span>         <span class="keywordtype">int</span> n[2];</div>
-<div class="line"><a name="l03665"></a><span class="lineno"> 3665</span> </div>
-<div class="line"><a name="l03666"></a><span class="lineno"> 3666</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Manually propagating NPIX"</span>);</div>
-<div class="line"><a name="l03667"></a><span class="lineno"> 3667</span> </div>
-<div class="line"><a name="l03668"></a><span class="lineno"> 3668</span>         assure( naxis == 2, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l03669"></a><span class="lineno"> 3669</span>                 <span class="stringliteral">"NAXIS = %d"</span>, naxis );</div>
-<div class="line"><a name="l03670"></a><span class="lineno"> 3670</span> </div>
-<div class="line"><a name="l03671"></a><span class="lineno"> 3671</span>         <span class="keywordflow">for</span> (axis = 1; axis <= naxis; axis++) {</div>
-<div class="line"><a name="l03672"></a><span class="lineno"> 3672</span>             uves_free_string_const(&key);</div>
-<div class="line"><a name="l03673"></a><span class="lineno"> 3673</span>             key = uves_sprintf(<span class="stringliteral">"NAXIS%d"</span>, axis);</div>
-<div class="line"><a name="l03674"></a><span class="lineno"> 3674</span>             n[axis-1] = <a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(frames[from].header, key);</div>
-<div class="line"><a name="l03675"></a><span class="lineno"> 3675</span>         }</div>
-<div class="line"><a name="l03676"></a><span class="lineno"> 3676</span> </div>
-<div class="line"><a name="l03677"></a><span class="lineno"> 3677</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__flames__midas__def.html#ga13989de7cfac7c2dbf9af19b1474466c" title="Write a descriptor and its data.">flames_midas_scdwri</a>(to, <span class="stringliteral">"NPIX"</span>, n,</div>
-<div class="line"><a name="l03678"></a><span class="lineno"> 3678</span>                                          1, 2, &unit));</div>
-<div class="line"><a name="l03679"></a><span class="lineno"> 3679</span>     }</div>
-<div class="line"><a name="l03680"></a><span class="lineno"> 3680</span>     </div>
-<div class="line"><a name="l03681"></a><span class="lineno"> 3681</span>     frames[to].need_to_save = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l03682"></a><span class="lineno"> 3682</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886" title="Load image/table if not already in memory.">load_frame</a>(to),</div>
-<div class="line"><a name="l03683"></a><span class="lineno"> 3683</span>        <span class="stringliteral">"Could not load image %s"</span>, frames[to].filename);</div>
-<div class="line"><a name="l03684"></a><span class="lineno"> 3684</span> </div>
-<div class="line"><a name="l03685"></a><span class="lineno"> 3685</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(from), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03686"></a><span class="lineno"> 3686</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(to  ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03687"></a><span class="lineno"> 3687</span> </div>
-<div class="line"><a name="l03688"></a><span class="lineno"> 3688</span>   cleanup:</div>
-<div class="line"><a name="l03689"></a><span class="lineno"> 3689</span>     uves_free_string_const(&key);</div>
-<div class="line"><a name="l03690"></a><span class="lineno"> 3690</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l03691"></a><span class="lineno"> 3691</span> }</div>
-<div class="line"><a name="l03692"></a><span class="lineno"> 3692</span> </div>
-<div class="line"><a name="l03693"></a><span class="lineno"> 3693</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03700"></a><span class="lineno"> 3700</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03701"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga26847f26401dd74af7e09d6e20f3485c"> 3701</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga26847f26401dd74af7e09d6e20f3485c" title="Copy descriptors.">flames_midas_scdcop</a>(<span class="keywordtype">int</span> from, <span class="keywordtype">int</span> to, <span class="keywordtype">int</span> mask)</div>
-<div class="line"><a name="l03702"></a><span class="lineno"> 3702</span> {</div>
-<div class="line"><a name="l03703"></a><span class="lineno"> 3703</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#gae41c12c4d3844865f17d833c1cb1417e" title="Copy descriptors from one frame to another.">scdcop</a>(from, to, mask, <span class="keyword">true</span>);</div>
-<div class="line"><a name="l03704"></a><span class="lineno"> 3704</span> }</div>
-<div class="line"><a name="l03705"></a><span class="lineno"> 3705</span> </div>
-<div class="line"><a name="l03706"></a><span class="lineno"> 3706</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03713"></a><span class="lineno"> 3713</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03714"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga9434f71fab199b6901162d0ef9a3c72c"> 3714</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga9434f71fab199b6901162d0ef9a3c72c" title="Copy descriptors.">flames_midas_scdcop_nonaxis</a>(<span class="keywordtype">int</span> from, <span class="keywordtype">int</span> to, <span class="keywordtype">int</span> mask)</div>
-<div class="line"><a name="l03715"></a><span class="lineno"> 3715</span> {</div>
-<div class="line"><a name="l03716"></a><span class="lineno"> 3716</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#gae41c12c4d3844865f17d833c1cb1417e" title="Copy descriptors from one frame to another.">scdcop</a>(from, to, mask, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l03717"></a><span class="lineno"> 3717</span> }</div>
-<div class="line"><a name="l03718"></a><span class="lineno"> 3718</span> </div>
-<div class="line"><a name="l03719"></a><span class="lineno"> 3719</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03730"></a><span class="lineno"> 3730</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03731"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga015a9de40fda2f9647b47ebcff656176"> 3731</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga015a9de40fda2f9647b47ebcff656176" title="Show size and type of a catalog.">flames_midas_sccsho</a>(<span class="keyword">const</span> cpl_frameset *catfile,</div>
-<div class="line"><a name="l03732"></a><span class="lineno"> 3732</span>                         <span class="keywordtype">int</span> *noent, </div>
-<div class="line"><a name="l03733"></a><span class="lineno"> 3733</span>                         <span class="keywordtype">int</span> *last)</div>
-<div class="line"><a name="l03734"></a><span class="lineno"> 3734</span> {</div>
-<div class="line"><a name="l03735"></a><span class="lineno"> 3735</span>     *last=*last; <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l03736"></a><span class="lineno"> 3736</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( catfile != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03737"></a><span class="lineno"> 3737</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( noent != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03738"></a><span class="lineno"> 3738</span> </div>
-<div class="line"><a name="l03739"></a><span class="lineno"> 3739</span>     *noent = cpl_frameset_get_size(catfile);</div>
-<div class="line"><a name="l03740"></a><span class="lineno"> 3740</span> </div>
-<div class="line"><a name="l03741"></a><span class="lineno"> 3741</span>     <span class="comment">//fixme: is 'last' used by any caller? If so, how is it different from 'noent'?</span></div>
-<div class="line"><a name="l03742"></a><span class="lineno"> 3742</span>     </div>
-<div class="line"><a name="l03743"></a><span class="lineno"> 3743</span>   cleanup:</div>
-<div class="line"><a name="l03744"></a><span class="lineno"> 3744</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l03745"></a><span class="lineno"> 3745</span> }</div>
-<div class="line"><a name="l03746"></a><span class="lineno"> 3746</span> </div>
-<div class="line"><a name="l03747"></a><span class="lineno"> 3747</span> </div>
-<div class="line"><a name="l03748"></a><span class="lineno"> 3748</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03756"></a><span class="lineno"> 3756</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03757"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga615dbb0a3b8642ce7a2fc6dd0f9ccdca"> 3757</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga615dbb0a3b8642ce7a2fc6dd0f9ccdca" title="Find corresponding frame for given entry number.">flames_midas_sccfnd</a>(<span class="keyword">const</span> cpl_frameset *catfile, </div>
-<div class="line"><a name="l03758"></a><span class="lineno"> 3758</span>                         <span class="keywordtype">int</span> frmno, </div>
-<div class="line"><a name="l03759"></a><span class="lineno"> 3759</span>                         <span class="keywordtype">char</span> *<a class="code" href="structframe.html">frame</a>)</div>
-<div class="line"><a name="l03760"></a><span class="lineno"> 3760</span> {</div>
-<div class="line"><a name="l03761"></a><span class="lineno"> 3761</span>     <span class="keyword">const</span> cpl_frame *f;</div>
-<div class="line"><a name="l03762"></a><span class="lineno"> 3762</span>     </div>
-<div class="line"><a name="l03763"></a><span class="lineno"> 3763</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( catfile != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03764"></a><span class="lineno"> 3764</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( frame != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03765"></a><span class="lineno"> 3765</span>     frame[0] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l03766"></a><span class="lineno"> 3766</span> </div>
-<div class="line"><a name="l03767"></a><span class="lineno"> 3767</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( f = cpl_frameset_get_frame_const(catfile, frmno-1), <span class="comment">/* CPL counts from zero */</span></div>
-<div class="line"><a name="l03768"></a><span class="lineno"> 3768</span>            <span class="stringliteral">"Could not get frame no. %d from catalog"</span>, frmno);</div>
-<div class="line"><a name="l03769"></a><span class="lineno"> 3769</span> </div>
-<div class="line"><a name="l03770"></a><span class="lineno"> 3770</span>     strcpy(frame, cpl_frame_get_filename(f));</div>
-<div class="line"><a name="l03771"></a><span class="lineno"> 3771</span> </div>
-<div class="line"><a name="l03772"></a><span class="lineno"> 3772</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Returning frame %s"</span>, cpl_frame_get_filename(f));</div>
-<div class="line"><a name="l03773"></a><span class="lineno"> 3773</span> </div>
-<div class="line"><a name="l03774"></a><span class="lineno"> 3774</span>   cleanup:</div>
-<div class="line"><a name="l03775"></a><span class="lineno"> 3775</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l03776"></a><span class="lineno"> 3776</span> }</div>
-<div class="line"><a name="l03777"></a><span class="lineno"> 3777</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03794"></a><span class="lineno"> 3794</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03795"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga012d8363656f8f4ffbd3715f07e0fe1e"> 3795</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga012d8363656f8f4ffbd3715f07e0fe1e" title="Get next sequential entry from frame catalogue.">flames_midas_sccget</a>(<span class="keyword">const</span> cpl_frameset *catfile,</div>
-<div class="line"><a name="l03796"></a><span class="lineno"> 3796</span>                         <span class="keywordtype">int</span> flag,</div>
-<div class="line"><a name="l03797"></a><span class="lineno"> 3797</span>                         <span class="keywordtype">char</span> *name, <span class="keywordtype">char</span> *ident, </div>
-<div class="line"><a name="l03798"></a><span class="lineno"> 3798</span>                         <span class="keywordtype">int</span> *no)</div>
-<div class="line"><a name="l03799"></a><span class="lineno"> 3799</span> {</div>
-<div class="line"><a name="l03800"></a><span class="lineno"> 3800</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *fits_descr = NULL;</div>
-<div class="line"><a name="l03801"></a><span class="lineno"> 3801</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header = NULL;</div>
-<div class="line"><a name="l03802"></a><span class="lineno"> 3802</span>     </div>
-<div class="line"><a name="l03803"></a><span class="lineno"> 3803</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( catfile != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03804"></a><span class="lineno"> 3804</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( no      != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03805"></a><span class="lineno"> 3805</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( name    != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03806"></a><span class="lineno"> 3806</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( flag == 0 || ident != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03807"></a><span class="lineno"> 3807</span> </div>
-<div class="line"><a name="l03808"></a><span class="lineno"> 3808</span>     <span class="keywordflow">if</span> (*no == cpl_frameset_get_size(catfile))</div>
-<div class="line"><a name="l03809"></a><span class="lineno"> 3809</span>         {</div>
-<div class="line"><a name="l03810"></a><span class="lineno"> 3810</span>             *name = <span class="charliteral">' '</span>;</div>
-<div class="line"><a name="l03811"></a><span class="lineno"> 3811</span>             *no += 1;</div>
-<div class="line"><a name="l03812"></a><span class="lineno"> 3812</span> </div>
-<div class="line"><a name="l03813"></a><span class="lineno"> 3813</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Returning frame ' '"</span>);</div>
-<div class="line"><a name="l03814"></a><span class="lineno"> 3814</span>         }</div>
-<div class="line"><a name="l03815"></a><span class="lineno"> 3815</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03816"></a><span class="lineno"> 3816</span>         {</div>
-<div class="line"><a name="l03817"></a><span class="lineno"> 3817</span>             <span class="keyword">const</span> cpl_frame *f;</div>
-<div class="line"><a name="l03818"></a><span class="lineno"> 3818</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( f = cpl_frameset_get_frame_const(catfile, *no),</div>
-<div class="line"><a name="l03819"></a><span class="lineno"> 3819</span>                    <span class="stringliteral">"Could not get frame no. %d from catalog"</span>, *no);</div>
-<div class="line"><a name="l03820"></a><span class="lineno"> 3820</span>             </div>
-<div class="line"><a name="l03821"></a><span class="lineno"> 3821</span>             *no += 1;</div>
-<div class="line"><a name="l03822"></a><span class="lineno"> 3822</span>             strcpy(name, cpl_frame_get_filename(f));</div>
-<div class="line"><a name="l03823"></a><span class="lineno"> 3823</span> </div>
-<div class="line"><a name="l03824"></a><span class="lineno"> 3824</span>             <span class="keywordflow">if</span> (flag != 0) {</div>
-<div class="line"><a name="l03825"></a><span class="lineno"> 3825</span>                 <span class="keyword">const</span> <span class="keywordtype">char</span> *ident_value;</div>
-<div class="line"><a name="l03826"></a><span class="lineno"> 3826</span>                 </div>
-<div class="line"><a name="l03827"></a><span class="lineno"> 3827</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(name, 0),</div>
-<div class="line"><a name="l03828"></a><span class="lineno"> 3828</span>                        <span class="stringliteral">"Failed to load %s header"</span>, name);</div>
-<div class="line"><a name="l03829"></a><span class="lineno"> 3829</span> </div>
-<div class="line"><a name="l03830"></a><span class="lineno"> 3830</span>                 <span class="keywordflow">if</span> (<span class="keyword">false</span>) {</div>
-<div class="line"><a name="l03831"></a><span class="lineno"> 3831</span>                     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( fits_descr = <a class="code" href="group__flames__midas__def.html#gac5996d64d908d2cfa6f94ea779a0ea95" title="Map MIDAS descriptors to FITS equivalents.">convert_to_fits</a>(ident, 1) );</div>
-<div class="line"><a name="l03832"></a><span class="lineno"> 3832</span>                 }</div>
-<div class="line"><a name="l03833"></a><span class="lineno"> 3833</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03834"></a><span class="lineno"> 3834</span>                     fits_descr = uves_sprintf(<span class="stringliteral">"%s"</span>, <span class="stringliteral">"OBJECT"</span>);</div>
-<div class="line"><a name="l03835"></a><span class="lineno"> 3835</span>                 }</div>
-<div class="line"><a name="l03836"></a><span class="lineno"> 3836</span> </div>
-<div class="line"><a name="l03837"></a><span class="lineno"> 3837</span>                 <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(header, fits_descr)) {</div>
-<div class="line"><a name="l03838"></a><span class="lineno"> 3838</span>                     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( ident_value = </div>
-<div class="line"><a name="l03839"></a><span class="lineno"> 3839</span>                                  <a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(header, fits_descr));</div>
-<div class="line"><a name="l03840"></a><span class="lineno"> 3840</span>                 }</div>
-<div class="line"><a name="l03841"></a><span class="lineno"> 3841</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03842"></a><span class="lineno"> 3842</span>                     ident_value = <span class="stringliteral">" "</span>;</div>
-<div class="line"><a name="l03843"></a><span class="lineno"> 3843</span>                 }</div>
-<div class="line"><a name="l03844"></a><span class="lineno"> 3844</span>                 </div>
-<div class="line"><a name="l03845"></a><span class="lineno"> 3845</span> </div>
-<div class="line"><a name="l03846"></a><span class="lineno"> 3846</span>                 <span class="comment">/* Unsafe by design of this function */</span></div>
-<div class="line"><a name="l03847"></a><span class="lineno"> 3847</span>                 strcpy(ident, ident_value);</div>
-<div class="line"><a name="l03848"></a><span class="lineno"> 3848</span> </div>
-<div class="line"><a name="l03849"></a><span class="lineno"> 3849</span>                 <span class="comment">/* Pad with blanks until strlen = 40 */</span></div>
-<div class="line"><a name="l03850"></a><span class="lineno"> 3850</span>                 {</div>
-<div class="line"><a name="l03851"></a><span class="lineno"> 3851</span>                     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03852"></a><span class="lineno"> 3852</span>                     i = strlen(ident);</div>
-<div class="line"><a name="l03853"></a><span class="lineno"> 3853</span>                     <span class="keywordflow">while</span> (i <= 39) {</div>
-<div class="line"><a name="l03854"></a><span class="lineno"> 3854</span>                         ident[i] = <span class="charliteral">' '</span>;</div>
-<div class="line"><a name="l03855"></a><span class="lineno"> 3855</span>                         i++;</div>
-<div class="line"><a name="l03856"></a><span class="lineno"> 3856</span>                     }</div>
-<div class="line"><a name="l03857"></a><span class="lineno"> 3857</span>                     ident[i] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l03858"></a><span class="lineno"> 3858</span>                 }</div>
-<div class="line"><a name="l03859"></a><span class="lineno"> 3859</span>                 </div>
-<div class="line"><a name="l03860"></a><span class="lineno"> 3860</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Returning ident '%s'"</span>, ident);</div>
-<div class="line"><a name="l03861"></a><span class="lineno"> 3861</span> </div>
-<div class="line"><a name="l03862"></a><span class="lineno"> 3862</span>                 <span class="comment">/* previously </span></div>
-<div class="line"><a name="l03863"></a><span class="lineno"> 3863</span> <span class="comment">                   strcpy(ident, cpl_frame_get_tag(f));</span></div>
-<div class="line"><a name="l03864"></a><span class="lineno"> 3864</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l03865"></a><span class="lineno"> 3865</span>                }</div>
-<div class="line"><a name="l03866"></a><span class="lineno"> 3866</span> </div>
-<div class="line"><a name="l03867"></a><span class="lineno"> 3867</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Returning frame %s"</span>, name);</div>
-<div class="line"><a name="l03868"></a><span class="lineno"> 3868</span>         }</div>
-<div class="line"><a name="l03869"></a><span class="lineno"> 3869</span>     </div>
-<div class="line"><a name="l03870"></a><span class="lineno"> 3870</span> </div>
-<div class="line"><a name="l03871"></a><span class="lineno"> 3871</span>   cleanup: </div>
-<div class="line"><a name="l03872"></a><span class="lineno"> 3872</span>     uves_free_propertylist(&header);</div>
-<div class="line"><a name="l03873"></a><span class="lineno"> 3873</span>     uves_free_string_const(&fits_descr);</div>
-<div class="line"><a name="l03874"></a><span class="lineno"> 3874</span> </div>
-<div class="line"><a name="l03875"></a><span class="lineno"> 3875</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l03876"></a><span class="lineno"> 3876</span> }</div>
-<div class="line"><a name="l03877"></a><span class="lineno"> 3877</span> </div>
-<div class="line"><a name="l03878"></a><span class="lineno"> 3878</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03891"></a><span class="lineno"> 3891</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03892"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga49845ef1180d690d5d3c6aa8645217c9"> 3892</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga49845ef1180d690d5d3c6aa8645217c9" title="Create a catalog.">flames_midas_scccre</a>(cpl_frameset **catfile, </div>
-<div class="line"><a name="l03893"></a><span class="lineno"> 3893</span>                         <span class="keywordtype">int</span> type,</div>
-<div class="line"><a name="l03894"></a><span class="lineno"> 3894</span>                         <span class="keywordtype">int</span> flag)</div>
-<div class="line"><a name="l03895"></a><span class="lineno"> 3895</span> {</div>
-<div class="line"><a name="l03896"></a><span class="lineno"> 3896</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( catfile != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03897"></a><span class="lineno"> 3897</span> </div>
-<div class="line"><a name="l03898"></a><span class="lineno"> 3898</span>     <span class="comment">/* These parameters always have these values in the FLAMES code */</span></div>
-<div class="line"><a name="l03899"></a><span class="lineno"> 3899</span>     assure( type == F_IMA_TYPE, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l03900"></a><span class="lineno"> 3900</span>             <span class="stringliteral">"Implement me"</span>);</div>
-<div class="line"><a name="l03901"></a><span class="lineno"> 3901</span>     assure(flag == 0, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l03902"></a><span class="lineno"> 3902</span>            <span class="stringliteral">"Implement me"</span>);</div>
-<div class="line"><a name="l03903"></a><span class="lineno"> 3903</span> </div>
-<div class="line"><a name="l03904"></a><span class="lineno"> 3904</span>     *catfile = cpl_frameset_new();</div>
-<div class="line"><a name="l03905"></a><span class="lineno"> 3905</span> </div>
-<div class="line"><a name="l03906"></a><span class="lineno"> 3906</span>   cleanup: </div>
-<div class="line"><a name="l03907"></a><span class="lineno"> 3907</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l03908"></a><span class="lineno"> 3908</span> }</div>
-<div class="line"><a name="l03909"></a><span class="lineno"> 3909</span> </div>
-<div class="line"><a name="l03910"></a><span class="lineno"> 3910</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03923"></a><span class="lineno"> 3923</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03924"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga7be4e25a210527efa6a2f35654a883c2"> 3924</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga7be4e25a210527efa6a2f35654a883c2" title="Add catalog entry.">flames_midas_sccadd</a>(cpl_frameset *catfile,</div>
-<div class="line"><a name="l03925"></a><span class="lineno"> 3925</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l03926"></a><span class="lineno"> 3926</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *ident)</div>
-<div class="line"><a name="l03927"></a><span class="lineno"> 3927</span> {</div>
-<div class="line"><a name="l03928"></a><span class="lineno"> 3928</span>   <span class="comment">//const char *fits_descr = NULL;</span></div>
-<div class="line"><a name="l03929"></a><span class="lineno"> 3929</span>     cpl_frame* <a class="code" href="structframe.html">frame</a> = NULL;</div>
-<div class="line"><a name="l03930"></a><span class="lineno"> 3930</span>     <span class="comment">//uves_propertylist *header = NULL;</span></div>
-<div class="line"><a name="l03931"></a><span class="lineno"> 3931</span> </div>
-<div class="line"><a name="l03932"></a><span class="lineno"> 3932</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( catfile != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03933"></a><span class="lineno"> 3933</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( name    != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03934"></a><span class="lineno"> 3934</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( ident   != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03935"></a><span class="lineno"> 3935</span> </div>
-<div class="line"><a name="l03936"></a><span class="lineno"> 3936</span>     frame = cpl_frame_new();</div>
-<div class="line"><a name="l03937"></a><span class="lineno"> 3937</span>     cpl_frame_set_filename(frame, name);</div>
-<div class="line"><a name="l03938"></a><span class="lineno"> 3938</span>     cpl_frame_set_tag(frame, <span class="stringliteral">"dummy"</span>); <span class="comment">/* need for cpl_frameset_insert() */</span></div>
-<div class="line"><a name="l03939"></a><span class="lineno"> 3939</span>     cpl_frameset_insert(catfile, frame);</div>
-<div class="line"><a name="l03940"></a><span class="lineno"> 3940</span> </div>
-<div class="line"><a name="l03941"></a><span class="lineno"> 3941</span>     <span class="comment">/* In principle, we should here update the </span></div>
-<div class="line"><a name="l03942"></a><span class="lineno"> 3942</span> <span class="comment">       OBJECT fits card with the provided ident string.</span></div>
-<div class="line"><a name="l03943"></a><span class="lineno"> 3943</span> <span class="comment">       However this ident string is always a blank. </span></div>
-<div class="line"><a name="l03944"></a><span class="lineno"> 3944</span> <span class="comment">       Therefore do not update OBJECT which is very difficult to do with CPL */</span></div>
-<div class="line"><a name="l03945"></a><span class="lineno"> 3945</span> </div>
-<div class="line"><a name="l03946"></a><span class="lineno"> 3946</span>     {</div>
-<div class="line"><a name="l03947"></a><span class="lineno"> 3947</span>         <span class="keywordtype">int</span> i = 0;</div>
-<div class="line"><a name="l03948"></a><span class="lineno"> 3948</span>         <span class="keywordflow">while</span>(ident[i] != <span class="charliteral">'\0'</span>) {</div>
-<div class="line"><a name="l03949"></a><span class="lineno"> 3949</span>             assure( ident[i] == <span class="charliteral">' '</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l03950"></a><span class="lineno"> 3950</span>                     <span class="stringliteral">"Blank ident string expected. Received '%s'"</span>,</div>
-<div class="line"><a name="l03951"></a><span class="lineno"> 3951</span>                     ident);</div>
-<div class="line"><a name="l03952"></a><span class="lineno"> 3952</span>             i++;</div>
-<div class="line"><a name="l03953"></a><span class="lineno"> 3953</span>         }</div>
-<div class="line"><a name="l03954"></a><span class="lineno"> 3954</span>     }</div>
-<div class="line"><a name="l03955"></a><span class="lineno"> 3955</span> </div>
-<div class="line"><a name="l03956"></a><span class="lineno"> 3956</span>     <span class="comment">/* previously</span></div>
-<div class="line"><a name="l03957"></a><span class="lineno"> 3957</span> <span class="comment">       cpl_frame_set_tag(frame, ident);</span></div>
-<div class="line"><a name="l03958"></a><span class="lineno"> 3958</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l03959"></a><span class="lineno"> 3959</span> </div>
-<div class="line"><a name="l03960"></a><span class="lineno"> 3960</span>   cleanup: </div>
-<div class="line"><a name="l03961"></a><span class="lineno"> 3961</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l03962"></a><span class="lineno"> 3962</span> }</div>
-<div class="line"><a name="l03963"></a><span class="lineno"> 3963</span> </div>
-<div class="line"><a name="l03964"></a><span class="lineno"> 3964</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03970"></a><span class="lineno"> 3970</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03971"></a><span class="lineno"> 3971</span> <span class="keyword">static</span> cpl_type</div>
-<div class="line"><a name="l03972"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gacd8b0d2f194d8ea65feea67f5d59772c"> 3972</a></span> <a class="code" href="group__flames__midas__def.html#gacd8b0d2f194d8ea65feea67f5d59772c" title="Map MIDAS dtypes to CPL types.">table_dtype_to_cpltype</a>(<span class="keywordtype">int</span> dtype, <span class="keywordtype">int</span> alen)</div>
-<div class="line"><a name="l03973"></a><span class="lineno"> 3973</span> {</div>
-<div class="line"><a name="l03974"></a><span class="lineno"> 3974</span>     cpl_type type = CPL_TYPE_INVALID;</div>
-<div class="line"><a name="l03975"></a><span class="lineno"> 3975</span> </div>
-<div class="line"><a name="l03976"></a><span class="lineno"> 3976</span>     <span class="comment">/* Only these combinations are used in FLAMES code */</span></div>
-<div class="line"><a name="l03977"></a><span class="lineno"> 3977</span>     assure( dtype == D_I4_FORMAT ||</div>
-<div class="line"><a name="l03978"></a><span class="lineno"> 3978</span>             dtype == D_R8_FORMAT ||</div>
-<div class="line"><a name="l03979"></a><span class="lineno"> 3979</span>             dtype == D_R4_FORMAT ||</div>
-<div class="line"><a name="l03980"></a><span class="lineno"> 3980</span>             dtype == D_C_FORMAT, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l03981"></a><span class="lineno"> 3981</span>             <span class="stringliteral">"dtype = %d"</span>, dtype);</div>
-<div class="line"><a name="l03982"></a><span class="lineno"> 3982</span>     </div>
-<div class="line"><a name="l03983"></a><span class="lineno"> 3983</span>     assure( dtype == D_C_FORMAT || alen == 1, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l03984"></a><span class="lineno"> 3984</span>             <span class="stringliteral">"dtype = %d, alen = %d"</span>, dtype, alen);</div>
-<div class="line"><a name="l03985"></a><span class="lineno"> 3985</span>     </div>
-<div class="line"><a name="l03986"></a><span class="lineno"> 3986</span>     <span class="keywordflow">switch</span>(dtype) {</div>
-<div class="line"><a name="l03987"></a><span class="lineno"> 3987</span>     <span class="keywordflow">case</span> D_I4_FORMAT: type = CPL_TYPE_INT; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03988"></a><span class="lineno"> 3988</span>     <span class="keywordflow">case</span> D_R4_FORMAT: type = CPL_TYPE_FLOAT; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03989"></a><span class="lineno"> 3989</span>     <span class="keywordflow">case</span> D_R8_FORMAT: type = CPL_TYPE_DOUBLE; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03990"></a><span class="lineno"> 3990</span>     <span class="keywordflow">case</span> D_C_FORMAT: type = CPL_TYPE_STRING; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03991"></a><span class="lineno"> 3991</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l03992"></a><span class="lineno"> 3992</span>         <span class="comment">/* impossible */</span></div>
-<div class="line"><a name="l03993"></a><span class="lineno"> 3993</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <span class="keyword">false</span>, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03994"></a><span class="lineno"> 3994</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l03995"></a><span class="lineno"> 3995</span>     }    </div>
-<div class="line"><a name="l03996"></a><span class="lineno"> 3996</span> </div>
-<div class="line"><a name="l03997"></a><span class="lineno"> 3997</span>   cleanup:</div>
-<div class="line"><a name="l03998"></a><span class="lineno"> 3998</span>     <span class="keywordflow">return</span> type;</div>
-<div class="line"><a name="l03999"></a><span class="lineno"> 3999</span> }</div>
-<div class="line"><a name="l04000"></a><span class="lineno"> 4000</span> </div>
-<div class="line"><a name="l04001"></a><span class="lineno"> 4001</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04007"></a><span class="lineno"> 4007</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04008"></a><span class="lineno"> 4008</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04009"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga719a4f7457ed2683599e5f62a429e1af"> 4009</a></span> <a class="code" href="group__flames__midas__def.html#ga719a4f7457ed2683599e5f62a429e1af" title="Get sizeof CPL types.">sizeof_cpltype</a>(cpl_type type)</div>
-<div class="line"><a name="l04010"></a><span class="lineno"> 4010</span> {</div>
-<div class="line"><a name="l04011"></a><span class="lineno"> 4011</span>     <span class="keywordflow">switch</span>(type) {</div>
-<div class="line"><a name="l04012"></a><span class="lineno"> 4012</span>         <span class="comment">/* These correspondences are documented in CPL */</span></div>
-<div class="line"><a name="l04013"></a><span class="lineno"> 4013</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:    <span class="keywordflow">return</span> <span class="keyword">sizeof</span>(int); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04014"></a><span class="lineno"> 4014</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:  <span class="keywordflow">return</span> <span class="keyword">sizeof</span>(float); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04015"></a><span class="lineno"> 4015</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE: <span class="keywordflow">return</span> <span class="keyword">sizeof</span>(double); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04016"></a><span class="lineno"> 4016</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING: <span class="keywordflow">return</span> <span class="keyword">sizeof</span>(char); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04017"></a><span class="lineno"> 4017</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l04018"></a><span class="lineno"> 4018</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l04019"></a><span class="lineno"> 4019</span>                 <span class="stringliteral">"Cannot convert CPL type %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l04020"></a><span class="lineno"> 4020</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04021"></a><span class="lineno"> 4021</span>     }</div>
-<div class="line"><a name="l04022"></a><span class="lineno"> 4022</span> </div>
-<div class="line"><a name="l04023"></a><span class="lineno"> 4023</span>   cleanup:</div>
-<div class="line"><a name="l04024"></a><span class="lineno"> 4024</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04025"></a><span class="lineno"> 4025</span> }</div>
-<div class="line"><a name="l04026"></a><span class="lineno"> 4026</span> </div>
-<div class="line"><a name="l04027"></a><span class="lineno"> 4027</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04033"></a><span class="lineno"> 4033</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04034"></a><span class="lineno"> 4034</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04035"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaff61faa79a507025396b5ff638457e5b"> 4035</a></span> <a class="code" href="group__flames__midas__def.html#gaff61faa79a507025396b5ff638457e5b" title="Map CPL types to MIDAS dtypes.">table_cpltype_to_dtype</a>(cpl_type type)</div>
-<div class="line"><a name="l04036"></a><span class="lineno"> 4036</span> {</div>
-<div class="line"><a name="l04037"></a><span class="lineno"> 4037</span>     <span class="keywordtype">int</span> dtype = -1;</div>
-<div class="line"><a name="l04038"></a><span class="lineno"> 4038</span>     </div>
-<div class="line"><a name="l04039"></a><span class="lineno"> 4039</span>     <span class="keywordflow">switch</span>(type) {</div>
-<div class="line"><a name="l04040"></a><span class="lineno"> 4040</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:    dtype = D_I4_FORMAT; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04041"></a><span class="lineno"> 4041</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:  dtype = D_R4_FORMAT; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04042"></a><span class="lineno"> 4042</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE: dtype = D_R8_FORMAT; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04043"></a><span class="lineno"> 4043</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING: dtype = D_C_FORMAT; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04044"></a><span class="lineno"> 4044</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l04045"></a><span class="lineno"> 4045</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l04046"></a><span class="lineno"> 4046</span>                 <span class="stringliteral">"Cannot convert CPL type %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l04047"></a><span class="lineno"> 4047</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04048"></a><span class="lineno"> 4048</span>     }</div>
-<div class="line"><a name="l04049"></a><span class="lineno"> 4049</span> </div>
-<div class="line"><a name="l04050"></a><span class="lineno"> 4050</span>   cleanup:</div>
-<div class="line"><a name="l04051"></a><span class="lineno"> 4051</span>     <span class="keywordflow">return</span> dtype;</div>
-<div class="line"><a name="l04052"></a><span class="lineno"> 4052</span> }</div>
-<div class="line"><a name="l04053"></a><span class="lineno"> 4053</span> </div>
-<div class="line"><a name="l04054"></a><span class="lineno"> 4054</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04061"></a><span class="lineno"> 4061</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04062"></a><span class="lineno"> 4062</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l04063"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga638d89407aed0a4641df1ce39f70392a"> 4063</a></span> <a class="code" href="group__flames__midas__def.html#ga638d89407aed0a4641df1ce39f70392a" title="Convert table numer to name.">table_colname_from_number</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> column)</div>
-<div class="line"><a name="l04064"></a><span class="lineno"> 4064</span> {</div>
-<div class="line"><a name="l04065"></a><span class="lineno"> 4065</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = NULL;</div>
-<div class="line"><a name="l04066"></a><span class="lineno"> 4066</span> </div>
-<div class="line"><a name="l04067"></a><span class="lineno"> 4067</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(tid), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l04068"></a><span class="lineno"> 4068</span>     </div>
-<div class="line"><a name="l04069"></a><span class="lineno"> 4069</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(tid) && !frames[tid].is_image, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l04070"></a><span class="lineno"> 4070</span>         <span class="stringliteral">"Table %d is not open"</span>, tid);</div>
-<div class="line"><a name="l04071"></a><span class="lineno"> 4071</span>     </div>
-<div class="line"><a name="l04072"></a><span class="lineno"> 4072</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886" title="Load image/table if not already in memory.">load_frame</a>(tid), <span class="stringliteral">"Could not load table %s"</span>, frames[tid].filename);</div>
-<div class="line"><a name="l04073"></a><span class="lineno"> 4073</span> </div>
-<div class="line"><a name="l04074"></a><span class="lineno"> 4074</span>     assure( 1 <= column && column <= cpl_table_get_nrow(frames[tid].data.table.colnames),</div>
-<div class="line"><a name="l04075"></a><span class="lineno"> 4075</span>             CPL_ERROR_ACCESS_OUT_OF_RANGE,</div>
-<div class="line"><a name="l04076"></a><span class="lineno"> 4076</span>             <span class="stringliteral">"Illegal column number %d. Table has %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" row(s)"</span>,</div>
-<div class="line"><a name="l04077"></a><span class="lineno"> 4077</span>             column, cpl_table_get_nrow(frames[tid].data.table.colnames));</div>
-<div class="line"><a name="l04078"></a><span class="lineno"> 4078</span> </div>
-<div class="line"><a name="l04079"></a><span class="lineno"> 4079</span>     name = cpl_table_get_string(frames[tid].data.table.colnames, COLNAME,</div>
-<div class="line"><a name="l04080"></a><span class="lineno"> 4080</span>                                 column - 1);</div>
-<div class="line"><a name="l04081"></a><span class="lineno"> 4081</span> </div>
-<div class="line"><a name="l04082"></a><span class="lineno"> 4082</span>   cleanup:</div>
-<div class="line"><a name="l04083"></a><span class="lineno"> 4083</span>     <span class="keywordflow">return</span> name;</div>
-<div class="line"><a name="l04084"></a><span class="lineno"> 4084</span> }</div>
-<div class="line"><a name="l04085"></a><span class="lineno"> 4085</span> </div>
-<div class="line"><a name="l04086"></a><span class="lineno"> 4086</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04100"></a><span class="lineno"> 4100</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04101"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga3ef46ff32b2d2f17c817a788076db09a"> 4101</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga3ef46ff32b2d2f17c817a788076db09a" title="Open table.">flames_midas_tctopn</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> mode, <span class="keywordtype">in [...]
-<div class="line"><a name="l04102"></a><span class="lineno"> 4102</span> {</div>
-<div class="line"><a name="l04103"></a><span class="lineno"> 4103</span>     assure( allrow == -1 || mode == F_O_MODE, CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l04104"></a><span class="lineno"> 4104</span>             <span class="stringliteral">"allrow = %d, mode = %d"</span>, allrow, mode);</div>
-<div class="line"><a name="l04105"></a><span class="lineno"> 4105</span> </div>
-<div class="line"><a name="l04106"></a><span class="lineno"> 4106</span>     <span class="keywordflow">if</span> (mode == F_I_MODE || mode == F_IO_MODE || mode == F_O_MODE)</div>
-<div class="line"><a name="l04107"></a><span class="lineno"> 4107</span>     {</div>
-<div class="line"><a name="l04108"></a><span class="lineno"> 4108</span>         <span class="comment">/* Find first open slot */</span></div>
-<div class="line"><a name="l04109"></a><span class="lineno"> 4109</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l04110"></a><span class="lineno"> 4110</span>         <span class="keywordtype">bool</span> found = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l04111"></a><span class="lineno"> 4111</span>         <span class="keywordflow">for</span> (i = 0; !found && i < MAX_OPEN; i++)</div>
-<div class="line"><a name="l04112"></a><span class="lineno"> 4112</span>         {</div>
-<div class="line"><a name="l04113"></a><span class="lineno"> 4113</span>             <span class="keywordflow">if</span> (! <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(i))</div>
-<div class="line"><a name="l04114"></a><span class="lineno"> 4114</span>             {</div>
-<div class="line"><a name="l04115"></a><span class="lineno"> 4115</span>                 found = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l04116"></a><span class="lineno"> 4116</span>                 *tid = i;</div>
-<div class="line"><a name="l04117"></a><span class="lineno"> 4117</span> </div>
-<div class="line"><a name="l04118"></a><span class="lineno"> 4118</span>                 <span class="keywordflow">if</span> (mode == F_I_MODE || mode == F_IO_MODE)   <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l04119"></a><span class="lineno"> 4119</span>                     {</div>
-<div class="line"><a name="l04120"></a><span class="lineno"> 4120</span>                         <a class="code" href="group__flames__midas__def.html#gab7f90aa20c3ad6bb30b38c96cce9503a" title="Create new table frame.">frame_new_table</a>(i, name, NULL, <span class="keyword">false</span>,</div>
-<div class="line"><a name="l04121"></a><span class="lineno"> 4121</span>                                         NULL, 0, NULL);</div>
-<div class="line"><a name="l04122"></a><span class="lineno"> 4122</span>                     }</div>
-<div class="line"><a name="l04123"></a><span class="lineno"> 4123</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (mode == F_O_MODE)   <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l04124"></a><span class="lineno"> 4124</span>                     {</div>
-<div class="line"><a name="l04125"></a><span class="lineno"> 4125</span>                         cpl_table *colnames = cpl_table_new(0);</div>
-<div class="line"><a name="l04126"></a><span class="lineno"> 4126</span>                         cpl_table_new_column(colnames,</div>
-<div class="line"><a name="l04127"></a><span class="lineno"> 4127</span>                                              COLNAME, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l04128"></a><span class="lineno"> 4128</span>                         </div>
-<div class="line"><a name="l04129"></a><span class="lineno"> 4129</span>                         <a class="code" href="group__flames__midas__def.html#gab7f90aa20c3ad6bb30b38c96cce9503a" title="Create new table frame.">frame_new_table</a>(i, name, <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>(), <span class="keyword">true</span>,</div>
-<div class="line"><a name="l04130"></a><span class="lineno"> 4130</span>                                         cpl_table_new(allrow), 0, colnames);</div>
-<div class="line"><a name="l04131"></a><span class="lineno"> 4131</span>                         </div>
-<div class="line"><a name="l04132"></a><span class="lineno"> 4132</span>                     }</div>
-<div class="line"><a name="l04133"></a><span class="lineno"> 4133</span>                 </div>
-<div class="line"><a name="l04134"></a><span class="lineno"> 4134</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Opened table no. %d: %s"</span>,</div>
-<div class="line"><a name="l04135"></a><span class="lineno"> 4135</span>                        i, name);</div>
-<div class="line"><a name="l04136"></a><span class="lineno"> 4136</span>             }</div>
-<div class="line"><a name="l04137"></a><span class="lineno"> 4137</span>         }</div>
-<div class="line"><a name="l04138"></a><span class="lineno"> 4138</span>         </div>
-<div class="line"><a name="l04139"></a><span class="lineno"> 4139</span>         assure( found, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l04140"></a><span class="lineno"> 4140</span>             <span class="stringliteral">"Cannot open more than %d table files"</span>,</div>
-<div class="line"><a name="l04141"></a><span class="lineno"> 4141</span>             MAX_OPEN);</div>
-<div class="line"><a name="l04142"></a><span class="lineno"> 4142</span>     }</div>
-<div class="line"><a name="l04143"></a><span class="lineno"> 4143</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04144"></a><span class="lineno"> 4144</span>     {</div>
-<div class="line"><a name="l04145"></a><span class="lineno"> 4145</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span>);</div>
-<div class="line"><a name="l04146"></a><span class="lineno"> 4146</span>     }</div>
-<div class="line"><a name="l04147"></a><span class="lineno"> 4147</span> </div>
-<div class="line"><a name="l04148"></a><span class="lineno"> 4148</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(*tid), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l04149"></a><span class="lineno"> 4149</span> </div>
-<div class="line"><a name="l04150"></a><span class="lineno"> 4150</span>   cleanup:</div>
-<div class="line"><a name="l04151"></a><span class="lineno"> 4151</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04152"></a><span class="lineno"> 4152</span> }</div>
-<div class="line"><a name="l04153"></a><span class="lineno"> 4153</span> </div>
-<div class="line"><a name="l04154"></a><span class="lineno"> 4154</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04161"></a><span class="lineno"> 4161</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04162"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga682523f91d2e727497904d2abafd4171"> 4162</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga682523f91d2e727497904d2abafd4171" title="Closes a table.">flames_midas_tctclo</a>(<span class="keywordtype">int</span> tid)</div>
-<div class="line"><a name="l04163"></a><span class="lineno"> 4163</span> {</div>
-<div class="line"><a name="l04164"></a><span class="lineno"> 4164</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga74503a6b522dac56cde3c9371ad720c3" title="Close a frame, save to disk if necessary.">frame_close</a>(tid);</div>
-<div class="line"><a name="l04165"></a><span class="lineno"> 4165</span> }</div>
-<div class="line"><a name="l04166"></a><span class="lineno"> 4166</span> </div>
-<div class="line"><a name="l04167"></a><span class="lineno"> 4167</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04181"></a><span class="lineno"> 4181</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04182"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga08eeeb2f1d0362d03eb83612d1407e47"> 4182</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga08eeeb2f1d0362d03eb83612d1407e47" title="Search column by reference.">flames_midas_tccser</a>(<span class="keywordtype">int</span> tid, <span class="keyword">const</span> <span class="keywordtype">char</span> *colref, <span class [...]
-<div class="line"><a name="l04183"></a><span class="lineno"> 4183</span> {</div>
-<div class="line"><a name="l04184"></a><span class="lineno"> 4184</span>     <span class="keywordtype">bool</span> found;</div>
-<div class="line"><a name="l04185"></a><span class="lineno"> 4185</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l04186"></a><span class="lineno"> 4186</span> </div>
-<div class="line"><a name="l04187"></a><span class="lineno"> 4187</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(tid), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l04188"></a><span class="lineno"> 4188</span> </div>
-<div class="line"><a name="l04189"></a><span class="lineno"> 4189</span>     <span class="comment">/* The MIDAS interface supports the following, but there is no reason</span></div>
-<div class="line"><a name="l04190"></a><span class="lineno"> 4190</span> <span class="comment">       to do that for the FLAMES code */</span></div>
-<div class="line"><a name="l04191"></a><span class="lineno"> 4191</span>     assure( colref[0] != <span class="charliteral">':'</span> &&</div>
-<div class="line"><a name="l04192"></a><span class="lineno"> 4192</span>             colref[0] != <span class="charliteral">'#'</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Illegal column name: %s"</span>,</div>
-<div class="line"><a name="l04193"></a><span class="lineno"> 4193</span>             colref);</div>
-<div class="line"><a name="l04194"></a><span class="lineno"> 4194</span> </div>
-<div class="line"><a name="l04195"></a><span class="lineno"> 4195</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(tid) && !frames[tid].is_image, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l04196"></a><span class="lineno"> 4196</span>         <span class="stringliteral">"Table %d is not open"</span>, tid);</div>
-<div class="line"><a name="l04197"></a><span class="lineno"> 4197</span> </div>
-<div class="line"><a name="l04198"></a><span class="lineno"> 4198</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886" title="Load image/table if not already in memory.">load_frame</a>(tid), <span class="stringliteral">"Could not load table %s"</span>, frames[tid].filename);</div>
-<div class="line"><a name="l04199"></a><span class="lineno"> 4199</span> </div>
-<div class="line"><a name="l04200"></a><span class="lineno"> 4200</span>     *column = -1;</div>
-<div class="line"><a name="l04201"></a><span class="lineno"> 4201</span>     found = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l04202"></a><span class="lineno"> 4202</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(frames[tid].data.table.colnames) && !found; i++)</div>
-<div class="line"><a name="l04203"></a><span class="lineno"> 4203</span>         {</div>
-<div class="line"><a name="l04204"></a><span class="lineno"> 4204</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *name = cpl_table_get_string(frames[tid].data.table.colnames, COLNAME, i);</div>
-<div class="line"><a name="l04205"></a><span class="lineno"> 4205</span>             <span class="keywordflow">if</span> (strcmp(name, colref) == 0)</div>
-<div class="line"><a name="l04206"></a><span class="lineno"> 4206</span>                 {</div>
-<div class="line"><a name="l04207"></a><span class="lineno"> 4207</span>                     *column = i + 1; <span class="comment">/* counting from 1 */</span></div>
-<div class="line"><a name="l04208"></a><span class="lineno"> 4208</span>                     found = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l04209"></a><span class="lineno"> 4209</span>                 }</div>
-<div class="line"><a name="l04210"></a><span class="lineno"> 4210</span>     }</div>
-<div class="line"><a name="l04211"></a><span class="lineno"> 4211</span> </div>
-<div class="line"><a name="l04212"></a><span class="lineno"> 4212</span>     <span class="keywordflow">if</span> (!found) </div>
-<div class="line"><a name="l04213"></a><span class="lineno"> 4213</span>         {</div>
-<div class="line"><a name="l04214"></a><span class="lineno"> 4214</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Table %s has no column %s"</span>,</div>
-<div class="line"><a name="l04215"></a><span class="lineno"> 4215</span>                              frames[tid].filename, colref);</div>
-<div class="line"><a name="l04216"></a><span class="lineno"> 4216</span>         }</div>
-<div class="line"><a name="l04217"></a><span class="lineno"> 4217</span> </div>
-<div class="line"><a name="l04218"></a><span class="lineno"> 4218</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(tid), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l04219"></a><span class="lineno"> 4219</span> </div>
-<div class="line"><a name="l04220"></a><span class="lineno"> 4220</span>   cleanup:</div>
-<div class="line"><a name="l04221"></a><span class="lineno"> 4221</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04222"></a><span class="lineno"> 4222</span> }</div>
-<div class="line"><a name="l04223"></a><span class="lineno"> 4223</span> </div>
-<div class="line"><a name="l04224"></a><span class="lineno"> 4224</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04233"></a><span class="lineno"> 4233</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04234"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gac90526c6f62d53d6dda4f12709366401"> 4234</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gac90526c6f62d53d6dda4f12709366401" title="Reads table size information.">flames_midas_tciget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> *column, <span class="keywordtype">int</span> *row)</div>
-<div class="line"><a name="l04235"></a><span class="lineno"> 4235</span> {</div>
-<div class="line"><a name="l04236"></a><span class="lineno"> 4236</span>   <span class="comment">//const char *name;</span></div>
-<div class="line"><a name="l04237"></a><span class="lineno"> 4237</span> </div>
-<div class="line"><a name="l04238"></a><span class="lineno"> 4238</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(tid), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l04239"></a><span class="lineno"> 4239</span> </div>
-<div class="line"><a name="l04240"></a><span class="lineno"> 4240</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(tid) && !frames[tid].is_image, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l04241"></a><span class="lineno"> 4241</span>         <span class="stringliteral">"Table %d is not open"</span>, tid);</div>
-<div class="line"><a name="l04242"></a><span class="lineno"> 4242</span> </div>
-<div class="line"><a name="l04243"></a><span class="lineno"> 4243</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886" title="Load image/table if not already in memory.">load_frame</a>(tid), <span class="stringliteral">"Could not load table %s"</span>, frames[tid].filename);</div>
-<div class="line"><a name="l04244"></a><span class="lineno"> 4244</span> </div>
-<div class="line"><a name="l04245"></a><span class="lineno"> 4245</span>     *column = cpl_table_get_ncol(frames[tid].data.table.table) - 1;</div>
-<div class="line"><a name="l04246"></a><span class="lineno"> 4246</span>     <span class="comment">/* Return actual number of rows, not allocated */</span></div>
-<div class="line"><a name="l04247"></a><span class="lineno"> 4247</span>     <span class="comment">//*row    = cpl_table_get_nrow(frames[tid].data.table.table);</span></div>
-<div class="line"><a name="l04248"></a><span class="lineno"> 4248</span>     *row    = frames[tid].data.table.maxrow;</div>
-<div class="line"><a name="l04249"></a><span class="lineno"> 4249</span> </div>
-<div class="line"><a name="l04250"></a><span class="lineno"> 4250</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(tid), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l04251"></a><span class="lineno"> 4251</span> </div>
-<div class="line"><a name="l04252"></a><span class="lineno"> 4252</span>   cleanup:</div>
-<div class="line"><a name="l04253"></a><span class="lineno"> 4253</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04254"></a><span class="lineno"> 4254</span> }</div>
-<div class="line"><a name="l04255"></a><span class="lineno"> 4255</span> </div>
-<div class="line"><a name="l04256"></a><span class="lineno"> 4256</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04269"></a><span class="lineno"> 4269</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04270"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gabfccd17a94b63af4a405b06f65e8a9c3"> 4270</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gabfccd17a94b63af4a405b06f65e8a9c3" title="Reads binary storage characteristics of column.">flames_midas_tcbget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> column, <span class="keywordtype">in [...]
-<div class="line"><a name="l04271"></a><span class="lineno"> 4271</span> {</div>
-<div class="line"><a name="l04272"></a><span class="lineno"> 4272</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *colname;</div>
-<div class="line"><a name="l04273"></a><span class="lineno"> 4273</span> </div>
-<div class="line"><a name="l04274"></a><span class="lineno"> 4274</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( colname = <a class="code" href="group__flames__midas__def.html#ga638d89407aed0a4641df1ce39f70392a" title="Convert table numer to name.">table_colname_from_number</a>(tid, column) );</div>
-<div class="line"><a name="l04275"></a><span class="lineno"> 4275</span> </div>
-<div class="line"><a name="l04276"></a><span class="lineno"> 4276</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( *dtype = <a class="code" href="group__flames__midas__def.html#gaff61faa79a507025396b5ff638457e5b" title="Map CPL types to MIDAS dtypes.">table_cpltype_to_dtype</a>(</div>
-<div class="line"><a name="l04277"></a><span class="lineno"> 4277</span>                      cpl_table_get_column_type(frames[tid].data.table.table, </div>
-<div class="line"><a name="l04278"></a><span class="lineno"> 4278</span>                                                colname)) );</div>
-<div class="line"><a name="l04279"></a><span class="lineno"> 4279</span> </div>
-<div class="line"><a name="l04280"></a><span class="lineno"> 4280</span>     <span class="comment">/* Note! </span></div>
-<div class="line"><a name="l04281"></a><span class="lineno"> 4281</span> <span class="comment">       This function is only used in flames_create_full_ordertable.c,</span></div>
-<div class="line"><a name="l04282"></a><span class="lineno"> 4282</span> <span class="comment">       so it only has to work in that case.</span></div>
-<div class="line"><a name="l04283"></a><span class="lineno"> 4283</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l04284"></a><span class="lineno"> 4284</span> </div>
-<div class="line"><a name="l04285"></a><span class="lineno"> 4285</span>     *items = 1;</div>
-<div class="line"><a name="l04286"></a><span class="lineno"> 4286</span> </div>
-<div class="line"><a name="l04287"></a><span class="lineno"> 4287</span>     <span class="keywordflow">if</span> (*dtype == D_C_FORMAT) </div>
-<div class="line"><a name="l04288"></a><span class="lineno"> 4288</span>         {</div>
-<div class="line"><a name="l04289"></a><span class="lineno"> 4289</span>             *bytes = 80 * <a class="code" href="group__flames__midas__def.html#ga719a4f7457ed2683599e5f62a429e1af" title="Get sizeof CPL types.">sizeof_cpltype</a>(</div>
-<div class="line"><a name="l04290"></a><span class="lineno"> 4290</span>                 <a class="code" href="group__flames__midas__def.html#gacd8b0d2f194d8ea65feea67f5d59772c" title="Map MIDAS dtypes to CPL types.">table_dtype_to_cpltype</a>(*dtype, *items) );</div>
-<div class="line"><a name="l04291"></a><span class="lineno"> 4291</span>         }</div>
-<div class="line"><a name="l04292"></a><span class="lineno"> 4292</span>     <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l04293"></a><span class="lineno"> 4293</span>         {</div>
-<div class="line"><a name="l04294"></a><span class="lineno"> 4294</span>             *bytes = (*items) * <a class="code" href="group__flames__midas__def.html#ga719a4f7457ed2683599e5f62a429e1af" title="Get sizeof CPL types.">sizeof_cpltype</a>(</div>
-<div class="line"><a name="l04295"></a><span class="lineno"> 4295</span>                 <a class="code" href="group__flames__midas__def.html#gacd8b0d2f194d8ea65feea67f5d59772c" title="Map MIDAS dtypes to CPL types.">table_dtype_to_cpltype</a>(*dtype, *items) );</div>
-<div class="line"><a name="l04296"></a><span class="lineno"> 4296</span>         }</div>
-<div class="line"><a name="l04297"></a><span class="lineno"> 4297</span> </div>
-<div class="line"><a name="l04298"></a><span class="lineno"> 4298</span>   cleanup:</div>
-<div class="line"><a name="l04299"></a><span class="lineno"> 4299</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04300"></a><span class="lineno"> 4300</span> }</div>
-<div class="line"><a name="l04301"></a><span class="lineno"> 4301</span> </div>
-<div class="line"><a name="l04302"></a><span class="lineno"> 4302</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04309"></a><span class="lineno"> 4309</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04310"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga54f9ec2adf2926835533fd239b0ecf07"> 4310</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga54f9ec2adf2926835533fd239b0ecf07" title="Reads table storage format (F_TRANS or F_RECORD)">flames_midas_tcdget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> *store)</div>
-<div class="line"><a name="l04311"></a><span class="lineno"> 4311</span> {</div>
-<div class="line"><a name="l04312"></a><span class="lineno"> 4312</span>     tid=tid; <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l04313"></a><span class="lineno"> 4313</span>     *store=*store; <span class="comment">//to remove compilation warning: this is not used</span></div>
-<div class="line"><a name="l04314"></a><span class="lineno"> 4314</span>     assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Implement me"</span>);</div>
-<div class="line"><a name="l04315"></a><span class="lineno"> 4315</span>   cleanup: <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l04316"></a><span class="lineno"> 4316</span> }</div>
-<div class="line"><a name="l04317"></a><span class="lineno"> 4317</span> </div>
-<div class="line"><a name="l04318"></a><span class="lineno"> 4318</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04327"></a><span class="lineno"> 4327</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04328"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga42b0965ecfa0c67c6e03e34ab9c9f6c3"> 4328</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga42b0965ecfa0c67c6e03e34ab9c9f6c3" title="Reads column format.">flames_midas_tcfget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> column, <span class="keywordtype">char</span> *form, <span clas [...]
-<div class="line"><a name="l04329"></a><span class="lineno"> 4329</span> {</div>
-<div class="line"><a name="l04330"></a><span class="lineno"> 4330</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *colname;</div>
-<div class="line"><a name="l04331"></a><span class="lineno"> 4331</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *format;</div>
-<div class="line"><a name="l04332"></a><span class="lineno"> 4332</span> </div>
-<div class="line"><a name="l04333"></a><span class="lineno"> 4333</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( colname = <a class="code" href="group__flames__midas__def.html#ga638d89407aed0a4641df1ce39f70392a" title="Convert table numer to name.">table_colname_from_number</a>(tid, column));</div>
-<div class="line"><a name="l04334"></a><span class="lineno"> 4334</span>     </div>
-<div class="line"><a name="l04335"></a><span class="lineno"> 4335</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( *dtype = <a class="code" href="group__flames__midas__def.html#gaff61faa79a507025396b5ff638457e5b" title="Map CPL types to MIDAS dtypes.">table_cpltype_to_dtype</a>(</div>
-<div class="line"><a name="l04336"></a><span class="lineno"> 4336</span>                      cpl_table_get_column_type(frames[tid].data.table.table, colname)));</div>
-<div class="line"><a name="l04337"></a><span class="lineno"> 4337</span> </div>
-<div class="line"><a name="l04338"></a><span class="lineno"> 4338</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( format = cpl_table_get_column_format(frames[tid].data.table.table, colname));</div>
-<div class="line"><a name="l04339"></a><span class="lineno"> 4339</span> </div>
-<div class="line"><a name="l04340"></a><span class="lineno"> 4340</span>     strcpy(form, format);</div>
-<div class="line"><a name="l04341"></a><span class="lineno"> 4341</span>     </div>
-<div class="line"><a name="l04342"></a><span class="lineno"> 4342</span>   cleanup: </div>
-<div class="line"><a name="l04343"></a><span class="lineno"> 4343</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04344"></a><span class="lineno"> 4344</span> }</div>
-<div class="line"><a name="l04345"></a><span class="lineno"> 4345</span> </div>
-<div class="line"><a name="l04346"></a><span class="lineno"> 4346</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04354"></a><span class="lineno"> 4354</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04355"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga07f9619101216e3d306e6dc69dd6bce2"> 4355</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga07f9619101216e3d306e6dc69dd6bce2" title="Reads column label.">flames_midas_tclget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> column, <span class="keywordtype">char</span> *label)</div>
-<div class="line"><a name="l04356"></a><span class="lineno"> 4356</span> {</div>
-<div class="line"><a name="l04357"></a><span class="lineno"> 4357</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *colname;</div>
-<div class="line"><a name="l04358"></a><span class="lineno"> 4358</span> </div>
-<div class="line"><a name="l04359"></a><span class="lineno"> 4359</span>     label[0] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l04360"></a><span class="lineno"> 4360</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( colname = <a class="code" href="group__flames__midas__def.html#ga638d89407aed0a4641df1ce39f70392a" title="Convert table numer to name.">table_colname_from_number</a>(tid, column));</div>
-<div class="line"><a name="l04361"></a><span class="lineno"> 4361</span> </div>
-<div class="line"><a name="l04362"></a><span class="lineno"> 4362</span>     <span class="comment">/* It's up to the caller to allocate enough space */</span></div>
-<div class="line"><a name="l04363"></a><span class="lineno"> 4363</span>     strcpy(label, colname);</div>
-<div class="line"><a name="l04364"></a><span class="lineno"> 4364</span>     </div>
-<div class="line"><a name="l04365"></a><span class="lineno"> 4365</span>   cleanup:</div>
-<div class="line"><a name="l04366"></a><span class="lineno"> 4366</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04367"></a><span class="lineno"> 4367</span> }</div>
-<div class="line"><a name="l04368"></a><span class="lineno"> 4368</span> </div>
-<div class="line"><a name="l04369"></a><span class="lineno"> 4369</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04377"></a><span class="lineno"> 4377</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04378"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga2206e126a49362e551a9f6cceb8bc4e6"> 4378</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga2206e126a49362e551a9f6cceb8bc4e6" title="Reads column unit.">flames_midas_tcuget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> column, <span class="keywordtype">char</span> *unit)</div>
-<div class="line"><a name="l04379"></a><span class="lineno"> 4379</span> {</div>
-<div class="line"><a name="l04380"></a><span class="lineno"> 4380</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *colname;</div>
-<div class="line"><a name="l04381"></a><span class="lineno"> 4381</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *u;</div>
-<div class="line"><a name="l04382"></a><span class="lineno"> 4382</span> </div>
-<div class="line"><a name="l04383"></a><span class="lineno"> 4383</span>     unit[0] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l04384"></a><span class="lineno"> 4384</span>     <span class="comment">//uves_msg("column=%s \n",column);</span></div>
-<div class="line"><a name="l04385"></a><span class="lineno"> 4385</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( colname = <a class="code" href="group__flames__midas__def.html#ga638d89407aed0a4641df1ce39f70392a" title="Convert table numer to name.">table_colname_from_number</a>(tid, column));</div>
-<div class="line"><a name="l04386"></a><span class="lineno"> 4386</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( u = cpl_table_get_column_unit(frames[tid].data.table.table, colname));</div>
-<div class="line"><a name="l04387"></a><span class="lineno"> 4387</span>     assure( u != NULL, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Column %s unit not set"</span>, colname);</div>
-<div class="line"><a name="l04388"></a><span class="lineno"> 4388</span>     </div>
-<div class="line"><a name="l04389"></a><span class="lineno"> 4389</span>     strcpy(unit, u);</div>
-<div class="line"><a name="l04390"></a><span class="lineno"> 4390</span>     </div>
-<div class="line"><a name="l04391"></a><span class="lineno"> 4391</span>   cleanup: </div>
-<div class="line"><a name="l04392"></a><span class="lineno"> 4392</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04393"></a><span class="lineno"> 4393</span> }</div>
-<div class="line"><a name="l04394"></a><span class="lineno"> 4394</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04403"></a><span class="lineno"> 4403</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04404"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga2cfaafe6ece41ed12cf798605688c74d"> 4404</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga2cfaafe6ece41ed12cf798605688c74d" title="Searches the sequential number of the column having the given label, case insensitive.">flames_midas_tclser</a>(<span class="keywordtype">int</span> tid, <span class="keyword">const</span> [...]
-<div class="line"><a name="l04405"></a><span class="lineno"> 4405</span> {</div>
-<div class="line"><a name="l04406"></a><span class="lineno"> 4406</span>     <span class="comment">/* This function seems to be the same as flames_midas_tccser(),</span></div>
-<div class="line"><a name="l04407"></a><span class="lineno"> 4407</span> <span class="comment">       except that</span></div>
-<div class="line"><a name="l04408"></a><span class="lineno"> 4408</span> <span class="comment">       flames_midas_tccser() is case sensitive and allows prefixing</span></div>
-<div class="line"><a name="l04409"></a><span class="lineno"> 4409</span> <span class="comment">       the column name with : or #</span></div>
-<div class="line"><a name="l04410"></a><span class="lineno"> 4410</span> <span class="comment"></span></div>
-<div class="line"><a name="l04411"></a><span class="lineno"> 4411</span> <span class="comment">       But these subtle differences are not used by the FLAMES code, so</span></div>
-<div class="line"><a name="l04412"></a><span class="lineno"> 4412</span> <span class="comment">       just call that other function */</span></div>
-<div class="line"><a name="l04413"></a><span class="lineno"> 4413</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga08eeeb2f1d0362d03eb83612d1407e47" title="Search column by reference.">flames_midas_tccser</a>(tid, label, column);</div>
-<div class="line"><a name="l04414"></a><span class="lineno"> 4414</span> }</div>
-<div class="line"><a name="l04415"></a><span class="lineno"> 4415</span> </div>
-<div class="line"><a name="l04416"></a><span class="lineno"> 4416</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04434"></a><span class="lineno"> 4434</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04435"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga056439b490e9f15fb439956f97da18a6"> 4435</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga056439b490e9f15fb439956f97da18a6" title="Initializes table column.">flames_midas_tccini</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> dtype, <span class="keywordtype">int</span> alen, </div>
-<div class="line"><a name="l04436"></a><span class="lineno"> 4436</span>                         <span class="keyword">const</span> <span class="keywordtype">char</span> *form, <span class="keyword">const</span> <span class="keywordtype">char</span> *unit, <span class="keyword">const</span> <span class="keywordtype">char</span> *label, </div>
-<div class="line"><a name="l04437"></a><span class="lineno"> 4437</span>                         <span class="keywordtype">int</span> *column)</div>
-<div class="line"><a name="l04438"></a><span class="lineno"> 4438</span> {</div>
-<div class="line"><a name="l04439"></a><span class="lineno"> 4439</span>     cpl_type type;</div>
-<div class="line"><a name="l04440"></a><span class="lineno"> 4440</span> </div>
-<div class="line"><a name="l04441"></a><span class="lineno"> 4441</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(tid), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l04442"></a><span class="lineno"> 4442</span>     </div>
-<div class="line"><a name="l04443"></a><span class="lineno"> 4443</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(tid) && !frames[tid].is_image, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l04444"></a><span class="lineno"> 4444</span>         <span class="stringliteral">"Table %d is not open"</span>, tid);</div>
-<div class="line"><a name="l04445"></a><span class="lineno"> 4445</span>     </div>
-<div class="line"><a name="l04446"></a><span class="lineno"> 4446</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886" title="Load image/table if not already in memory.">load_frame</a>(tid), <span class="stringliteral">"Could not load table %s"</span>, frames[tid].filename);</div>
-<div class="line"><a name="l04447"></a><span class="lineno"> 4447</span>     </div>
-<div class="line"><a name="l04448"></a><span class="lineno"> 4448</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( type = <a class="code" href="group__flames__midas__def.html#gacd8b0d2f194d8ea65feea67f5d59772c" title="Map MIDAS dtypes to CPL types.">table_dtype_to_cpltype</a>(dtype, alen) );</div>
-<div class="line"><a name="l04449"></a><span class="lineno"> 4449</span> </div>
-<div class="line"><a name="l04450"></a><span class="lineno"> 4450</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Creating column %s (unit = %s, format = %s)"</span>,</div>
-<div class="line"><a name="l04451"></a><span class="lineno"> 4451</span>                    label, unit, form);</div>
-<div class="line"><a name="l04452"></a><span class="lineno"> 4452</span> </div>
-<div class="line"><a name="l04453"></a><span class="lineno"> 4453</span>     <span class="comment">/* Create the column */</span></div>
-<div class="line"><a name="l04454"></a><span class="lineno"> 4454</span>     assure( !cpl_table_has_column(frames[tid].data.table.table, label),</div>
-<div class="line"><a name="l04455"></a><span class="lineno"> 4455</span>             CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l04456"></a><span class="lineno"> 4456</span>             <span class="stringliteral">"Column %s already exists"</span>, label);</div>
-<div class="line"><a name="l04457"></a><span class="lineno"> 4457</span>     cpl_table_new_column       (frames[tid].data.table.table, label, type);</div>
-<div class="line"><a name="l04458"></a><span class="lineno"> 4458</span>     cpl_table_set_column_format(frames[tid].data.table.table, label, form);</div>
-<div class="line"><a name="l04459"></a><span class="lineno"> 4459</span>     cpl_table_set_column_unit  (frames[tid].data.table.table, label, unit);</div>
-<div class="line"><a name="l04460"></a><span class="lineno"> 4460</span> </div>
-<div class="line"><a name="l04461"></a><span class="lineno"> 4461</span>     <span class="comment">/* Initialize column to avoid garbage (CPL doesn't initialize NULL elements) */</span></div>
-<div class="line"><a name="l04462"></a><span class="lineno"> 4462</span>     <span class="keywordflow">switch</span>(type) {</div>
-<div class="line"><a name="l04463"></a><span class="lineno"> 4463</span>     <span class="keywordflow">case</span> CPL_TYPE_INT   : cpl_table_fill_invalid_int   (frames[tid].data.table.table, label, -1); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04464"></a><span class="lineno"> 4464</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT : cpl_table_fill_invalid_float (frames[tid].data.table.table, label, -1); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04465"></a><span class="lineno"> 4465</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE: cpl_table_fill_invalid_double(frames[tid].data.table.table, label, -1); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04466"></a><span class="lineno"> 4466</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING: <span class="comment">/* Do nothing, already NULL */</span> <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04467"></a><span class="lineno"> 4467</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l04468"></a><span class="lineno"> 4468</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <span class="keyword">false</span>, <span class="stringliteral">" "</span> );</div>
-<div class="line"><a name="l04469"></a><span class="lineno"> 4469</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04470"></a><span class="lineno"> 4470</span>     }</div>
-<div class="line"><a name="l04471"></a><span class="lineno"> 4471</span> </div>
-<div class="line"><a name="l04472"></a><span class="lineno"> 4472</span>     <span class="comment">/* Update description of columns */</span></div>
-<div class="line"><a name="l04473"></a><span class="lineno"> 4473</span>     *column = cpl_table_get_ncol(frames[tid].data.table.table) - 1;</div>
-<div class="line"><a name="l04474"></a><span class="lineno"> 4474</span>     cpl_table_set_size  (frames[tid].data.table.colnames, *column);  <span class="comment">/* This is O(n^2) in the number of </span></div>
-<div class="line"><a name="l04475"></a><span class="lineno"> 4475</span> <span class="comment">                                                             columns (i.e. slow if there are</span></div>
-<div class="line"><a name="l04476"></a><span class="lineno"> 4476</span> <span class="comment">                                                             many columns, but the CPL table </span></div>
-<div class="line"><a name="l04477"></a><span class="lineno"> 4477</span> <span class="comment">                                                             handling is like that anyway. */</span></div>
-<div class="line"><a name="l04478"></a><span class="lineno"> 4478</span>     cpl_table_set_string(frames[tid].data.table.colnames, COLNAME, *column-1, label);</div>
-<div class="line"><a name="l04479"></a><span class="lineno"> 4479</span> </div>
-<div class="line"><a name="l04480"></a><span class="lineno"> 4480</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(tid), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l04481"></a><span class="lineno"> 4481</span> </div>
-<div class="line"><a name="l04482"></a><span class="lineno"> 4482</span>   cleanup:</div>
-<div class="line"><a name="l04483"></a><span class="lineno"> 4483</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04484"></a><span class="lineno"> 4484</span> }</div>
-<div class="line"><a name="l04485"></a><span class="lineno"> 4485</span> </div>
-<div class="line"><a name="l04486"></a><span class="lineno"> 4486</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04501"></a><span class="lineno"> 4501</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04502"></a><span class="lineno"> 4502</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04503"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04"> 4503</a></span> <a class="code" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04" title="Reads table element.">tcerd</a>(cpl_type type, <span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column,</div>
-<div class="line"><a name="l04504"></a><span class="lineno"> 4504</span>       <span class="keywordtype">void</span> *value, <span class="keywordtype">int</span> *null)</div>
-<div class="line"><a name="l04505"></a><span class="lineno"> 4505</span> {</div>
-<div class="line"><a name="l04506"></a><span class="lineno"> 4506</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *colname;</div>
-<div class="line"><a name="l04507"></a><span class="lineno"> 4507</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *val_str;</div>
-<div class="line"><a name="l04508"></a><span class="lineno"> 4508</span> </div>
-<div class="line"><a name="l04509"></a><span class="lineno"> 4509</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( colname = <a class="code" href="group__flames__midas__def.html#ga638d89407aed0a4641df1ce39f70392a" title="Convert table numer to name.">table_colname_from_number</a>(tid, column));</div>
-<div class="line"><a name="l04510"></a><span class="lineno"> 4510</span> </div>
-<div class="line"><a name="l04511"></a><span class="lineno"> 4511</span>     <span class="comment">/* Check disabled, allow type conversion </span></div>
-<div class="line"><a name="l04512"></a><span class="lineno"> 4512</span> <span class="comment">    assure( cpl_table_get_column_type(frames[tid].data.table.table, colname)</span></div>
-<div class="line"><a name="l04513"></a><span class="lineno"> 4513</span> <span class="comment">            == type, CPL_ERROR_TYPE_MISMATCH, "Column %s type is %s, type %s expected",</span></div>
-<div class="line"><a name="l04514"></a><span class="lineno"> 4514</span> <span class="comment">            colname, uves_tostring_cpl_type(cpl_table_get_column_type(frames[tid].data.table.table, colname)),</span></div>
-<div class="line"><a name="l04515"></a><span class="lineno"> 4515</span> <span class="comment">            uves_tostring_cpl_type(type) );</span></div>
-<div class="line"><a name="l04516"></a><span class="lineno"> 4516</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l04517"></a><span class="lineno"> 4517</span> </div>
-<div class="line"><a name="l04518"></a><span class="lineno"> 4518</span>     assure( 1 <= row && row <= cpl_table_get_nrow(frames[tid].data.table.table),</div>
-<div class="line"><a name="l04519"></a><span class="lineno"> 4519</span>             CPL_ERROR_ACCESS_OUT_OF_RANGE,</div>
-<div class="line"><a name="l04520"></a><span class="lineno"> 4520</span>             <span class="stringliteral">"Cannot read row %d of %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" row table"</span>,</div>
-<div class="line"><a name="l04521"></a><span class="lineno"> 4521</span>             row, cpl_table_get_nrow(frames[tid].data.table.table));</div>
-<div class="line"><a name="l04522"></a><span class="lineno"> 4522</span> </div>
-<div class="line"><a name="l04523"></a><span class="lineno"> 4523</span>     <span class="keywordflow">switch</span>(type) {</div>
-<div class="line"><a name="l04524"></a><span class="lineno"> 4524</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l04525"></a><span class="lineno"> 4525</span>         ((<span class="keywordtype">int</span> *)value)[0] = cpl_table_get(frames[tid].data.table.table,</div>
-<div class="line"><a name="l04526"></a><span class="lineno"> 4526</span>                                           colname, row - 1,</div>
-<div class="line"><a name="l04527"></a><span class="lineno"> 4527</span>                                           null);</div>
-<div class="line"><a name="l04528"></a><span class="lineno"> 4528</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04529"></a><span class="lineno"> 4529</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l04530"></a><span class="lineno"> 4530</span>         ((<span class="keywordtype">float</span> *)value)[0] = cpl_table_get(frames[tid].data.table.table,</div>
-<div class="line"><a name="l04531"></a><span class="lineno"> 4531</span>                                             colname, row - 1,</div>
-<div class="line"><a name="l04532"></a><span class="lineno"> 4532</span>                                             null);</div>
-<div class="line"><a name="l04533"></a><span class="lineno"> 4533</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04534"></a><span class="lineno"> 4534</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l04535"></a><span class="lineno"> 4535</span>         ((<span class="keywordtype">double</span> *)value)[0] = cpl_table_get(frames[tid].data.table.table,</div>
-<div class="line"><a name="l04536"></a><span class="lineno"> 4536</span>                                              colname, row - 1,</div>
-<div class="line"><a name="l04537"></a><span class="lineno"> 4537</span>                                              null);</div>
-<div class="line"><a name="l04538"></a><span class="lineno"> 4538</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04539"></a><span class="lineno"> 4539</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l04540"></a><span class="lineno"> 4540</span>         val_str = cpl_table_get_string(frames[tid].data.table.table,</div>
-<div class="line"><a name="l04541"></a><span class="lineno"> 4541</span>                                        colname, row - 1);</div>
-<div class="line"><a name="l04542"></a><span class="lineno"> 4542</span>         <span class="keywordflow">if</span> (val_str == NULL)</div>
-<div class="line"><a name="l04543"></a><span class="lineno"> 4543</span>             {</div>
-<div class="line"><a name="l04544"></a><span class="lineno"> 4544</span>                 <span class="keywordflow">if</span> (null != NULL) *null = 1;</div>
-<div class="line"><a name="l04545"></a><span class="lineno"> 4545</span>                 ((<span class="keywordtype">char</span> *)value)[0] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l04546"></a><span class="lineno"> 4546</span>             }</div>
-<div class="line"><a name="l04547"></a><span class="lineno"> 4547</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04548"></a><span class="lineno"> 4548</span>             {</div>
-<div class="line"><a name="l04549"></a><span class="lineno"> 4549</span>                 <span class="keywordflow">if</span> (null != NULL) *null = 0;</div>
-<div class="line"><a name="l04550"></a><span class="lineno"> 4550</span>                 strcpy((<span class="keywordtype">char</span> *)value, val_str);</div>
-<div class="line"><a name="l04551"></a><span class="lineno"> 4551</span>             }</div>
-<div class="line"><a name="l04552"></a><span class="lineno"> 4552</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04553"></a><span class="lineno"> 4553</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l04554"></a><span class="lineno"> 4554</span>         assure( <span class="keyword">false</span>, CPL_ERROR_INVALID_TYPE, <span class="stringliteral">"Type is %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l04555"></a><span class="lineno"> 4555</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04556"></a><span class="lineno"> 4556</span>     }</div>
-<div class="line"><a name="l04557"></a><span class="lineno"> 4557</span> </div>
-<div class="line"><a name="l04558"></a><span class="lineno"> 4558</span>   cleanup:</div>
-<div class="line"><a name="l04559"></a><span class="lineno"> 4559</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04560"></a><span class="lineno"> 4560</span> }</div>
-<div class="line"><a name="l04561"></a><span class="lineno"> 4561</span> </div>
-<div class="line"><a name="l04562"></a><span class="lineno"> 4562</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04569"></a><span class="lineno"> 4569</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04570"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gac6c54281929d88f009f4e4d2de078948"> 4570</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gac6c54281929d88f009f4e4d2de078948">flames_midas_tcerdc</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keywordtype">char</span> *val [...]
-<div class="line"><a name="l04571"></a><span class="lineno"> 4571</span> {</div>
-<div class="line"><a name="l04572"></a><span class="lineno"> 4572</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04" title="Reads table element.">tcerd</a>(CPL_TYPE_STRING, tid, row, column, values, null);</div>
-<div class="line"><a name="l04573"></a><span class="lineno"> 4573</span> }</div>
-<div class="line"><a name="l04574"></a><span class="lineno"> 4574</span> </div>
-<div class="line"><a name="l04575"></a><span class="lineno"> 4575</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04579"></a><span class="lineno"> 4579</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04580"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaf38f1e0716373fba8c2cd7cea07ef7d0"> 4580</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaf38f1e0716373fba8c2cd7cea07ef7d0">flames_midas_tcerdi</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keywordtype">int</span> *valu [...]
-<div class="line"><a name="l04581"></a><span class="lineno"> 4581</span> {</div>
-<div class="line"><a name="l04582"></a><span class="lineno"> 4582</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04" title="Reads table element.">tcerd</a>(CPL_TYPE_INT, tid, row, column, value, null);</div>
-<div class="line"><a name="l04583"></a><span class="lineno"> 4583</span> }</div>
-<div class="line"><a name="l04584"></a><span class="lineno"> 4584</span> </div>
-<div class="line"><a name="l04585"></a><span class="lineno"> 4585</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04589"></a><span class="lineno"> 4589</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04590"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gadce2330c6f7b37cd8694fb195c4d240e"> 4590</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gadce2330c6f7b37cd8694fb195c4d240e">flames_midas_tcerdr</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keywordtype">float</span> *va [...]
-<div class="line"><a name="l04591"></a><span class="lineno"> 4591</span> {</div>
-<div class="line"><a name="l04592"></a><span class="lineno"> 4592</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04" title="Reads table element.">tcerd</a>(CPL_TYPE_FLOAT, tid, row, column, value, null);</div>
-<div class="line"><a name="l04593"></a><span class="lineno"> 4593</span> }</div>
-<div class="line"><a name="l04594"></a><span class="lineno"> 4594</span> </div>
-<div class="line"><a name="l04595"></a><span class="lineno"> 4595</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04599"></a><span class="lineno"> 4599</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04600"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga338a9cb9bd7b9c78c6722879a6a6dcb7"> 4600</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga338a9cb9bd7b9c78c6722879a6a6dcb7">flames_midas_tcerdd</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column,</div>
-<div class="line"><a name="l04601"></a><span class="lineno"> 4601</span>             <span class="keywordtype">double</span> *value, <span class="keywordtype">int</span> *null)</div>
-<div class="line"><a name="l04602"></a><span class="lineno"> 4602</span> {</div>
-<div class="line"><a name="l04603"></a><span class="lineno"> 4603</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04" title="Reads table element.">tcerd</a>(CPL_TYPE_DOUBLE, tid, row, column, value, null);</div>
-<div class="line"><a name="l04604"></a><span class="lineno"> 4604</span> }</div>
-<div class="line"><a name="l04605"></a><span class="lineno"> 4605</span> </div>
-<div class="line"><a name="l04606"></a><span class="lineno"> 4606</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04618"></a><span class="lineno"> 4618</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04619"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e"> 4619</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e" title="Write table element.">tcewr</a>(cpl_type type, <span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordt [...]
-<div class="line"><a name="l04620"></a><span class="lineno"> 4620</span> {</div>
-<div class="line"><a name="l04621"></a><span class="lineno"> 4621</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *colname;</div>
-<div class="line"><a name="l04622"></a><span class="lineno"> 4622</span>     </div>
-<div class="line"><a name="l04623"></a><span class="lineno"> 4623</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( colname = <a class="code" href="group__flames__midas__def.html#ga638d89407aed0a4641df1ce39f70392a" title="Convert table numer to name.">table_colname_from_number</a>(tid, column));</div>
-<div class="line"><a name="l04624"></a><span class="lineno"> 4624</span>     </div>
-<div class="line"><a name="l04625"></a><span class="lineno"> 4625</span>     <span class="comment">/* Check disabled, allow type mismatch and conversion (as in MIDAS)</span></div>
-<div class="line"><a name="l04626"></a><span class="lineno"> 4626</span> <span class="comment">    assure( cpl_table_get_column_type(frames[tid].data.table.table, colname)</span></div>
-<div class="line"><a name="l04627"></a><span class="lineno"> 4627</span> <span class="comment">            == type, CPL_ERROR_TYPE_MISMATCH, "Column %s has type %s; %s expected",</span></div>
-<div class="line"><a name="l04628"></a><span class="lineno"> 4628</span> <span class="comment">            colname, uves_tostring_cpl_type(cpl_table_get_column_type(frames[tid].data.table.table, colname)),</span></div>
-<div class="line"><a name="l04629"></a><span class="lineno"> 4629</span> <span class="comment">            uves_tostring_cpl_type(type) );</span></div>
-<div class="line"><a name="l04630"></a><span class="lineno"> 4630</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l04631"></a><span class="lineno"> 4631</span> </div>
-<div class="line"><a name="l04632"></a><span class="lineno"> 4632</span>     assure( row <= cpl_table_get_nrow(frames[tid].data.table.table),</div>
-<div class="line"><a name="l04633"></a><span class="lineno"> 4633</span>             CPL_ERROR_ACCESS_OUT_OF_RANGE,</div>
-<div class="line"><a name="l04634"></a><span class="lineno"> 4634</span>             <span class="stringliteral">"Cannot write row %d from %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" row table"</span>,</div>
-<div class="line"><a name="l04635"></a><span class="lineno"> 4635</span>             row, cpl_table_get_nrow(frames[tid].data.table.table));</div>
-<div class="line"><a name="l04636"></a><span class="lineno"> 4636</span> </div>
-<div class="line"><a name="l04637"></a><span class="lineno"> 4637</span>     <span class="keywordflow">if</span> (row > frames[tid].data.table.maxrow) {</div>
-<div class="line"><a name="l04638"></a><span class="lineno"> 4638</span>         frames[tid].data.table.maxrow = row;</div>
-<div class="line"><a name="l04639"></a><span class="lineno"> 4639</span>     }</div>
-<div class="line"><a name="l04640"></a><span class="lineno"> 4640</span> </div>
-<div class="line"><a name="l04641"></a><span class="lineno"> 4641</span>     <span class="keywordflow">switch</span>(type) {</div>
-<div class="line"><a name="l04642"></a><span class="lineno"> 4642</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:    </div>
-<div class="line"><a name="l04643"></a><span class="lineno"> 4643</span>         cpl_table_set(frames[tid].data.table.table, colname, row - 1, ((<span class="keyword">const</span> <span class="keywordtype">int</span> *)value)[0]); </div>
-<div class="line"><a name="l04644"></a><span class="lineno"> 4644</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04645"></a><span class="lineno"> 4645</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l04646"></a><span class="lineno"> 4646</span>         cpl_table_set(frames[tid].data.table.table, colname, row - 1, ((<span class="keyword">const</span> <span class="keywordtype">float</span> *)value)[0]); </div>
-<div class="line"><a name="l04647"></a><span class="lineno"> 4647</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04648"></a><span class="lineno"> 4648</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE: </div>
-<div class="line"><a name="l04649"></a><span class="lineno"> 4649</span>         cpl_table_set(frames[tid].data.table.table, colname, row - 1, ((<span class="keyword">const</span> <span class="keywordtype">double</span> *)value)[0]); </div>
-<div class="line"><a name="l04650"></a><span class="lineno"> 4650</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04651"></a><span class="lineno"> 4651</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l04652"></a><span class="lineno"> 4652</span>         cpl_table_set_string(frames[tid].data.table.table, colname, row - 1, (<span class="keyword">const</span> <span class="keywordtype">char</span> *)value); </div>
-<div class="line"><a name="l04653"></a><span class="lineno"> 4653</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04654"></a><span class="lineno"> 4654</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l04655"></a><span class="lineno"> 4655</span>         assure( <span class="keyword">false</span>, CPL_ERROR_INVALID_TYPE, <span class="stringliteral">"Type is %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l04656"></a><span class="lineno"> 4656</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l04657"></a><span class="lineno"> 4657</span>     }</div>
-<div class="line"><a name="l04658"></a><span class="lineno"> 4658</span> </div>
-<div class="line"><a name="l04659"></a><span class="lineno"> 4659</span>   cleanup:</div>
-<div class="line"><a name="l04660"></a><span class="lineno"> 4660</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04661"></a><span class="lineno"> 4661</span> }</div>
-<div class="line"><a name="l04662"></a><span class="lineno"> 4662</span> </div>
-<div class="line"><a name="l04663"></a><span class="lineno"> 4663</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04670"></a><span class="lineno"> 4670</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04671"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gae63b97b3d22a206f5d520d0720e79f05"> 4671</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gae63b97b3d22a206f5d520d0720e79f05">flames_midas_tcewrc</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keyword">const</span> <span c [...]
-<div class="line"><a name="l04672"></a><span class="lineno"> 4672</span> {</div>
-<div class="line"><a name="l04673"></a><span class="lineno"> 4673</span>     <span class="comment">/* Write full string, including commas */</span></div>
-<div class="line"><a name="l04674"></a><span class="lineno"> 4674</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e" title="Write table element.">tcewr</a>(CPL_TYPE_STRING, tid, row, column, value);</div>
-<div class="line"><a name="l04675"></a><span class="lineno"> 4675</span> }</div>
-<div class="line"><a name="l04676"></a><span class="lineno"> 4676</span> </div>
-<div class="line"><a name="l04677"></a><span class="lineno"> 4677</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04681"></a><span class="lineno"> 4681</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04682"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaf56d454eb421323a18cb00a7a238608b"> 4682</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaf56d454eb421323a18cb00a7a238608b">flames_midas_tcewrd</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keyword">const</span> <span c [...]
-<div class="line"><a name="l04683"></a><span class="lineno"> 4683</span> {</div>
-<div class="line"><a name="l04684"></a><span class="lineno"> 4684</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e" title="Write table element.">tcewr</a>(CPL_TYPE_DOUBLE, tid, row, column, value);</div>
-<div class="line"><a name="l04685"></a><span class="lineno"> 4685</span> }</div>
-<div class="line"><a name="l04686"></a><span class="lineno"> 4686</span> </div>
-<div class="line"><a name="l04687"></a><span class="lineno"> 4687</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04691"></a><span class="lineno"> 4691</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04692"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga8ddb72626aebb5ce88e19f3f01f49eed"> 4692</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga8ddb72626aebb5ce88e19f3f01f49eed">flames_midas_tcewri</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keyword">const</span> <span c [...]
-<div class="line"><a name="l04693"></a><span class="lineno"> 4693</span> {</div>
-<div class="line"><a name="l04694"></a><span class="lineno"> 4694</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e" title="Write table element.">tcewr</a>(CPL_TYPE_INT, tid, row, column, value);</div>
-<div class="line"><a name="l04695"></a><span class="lineno"> 4695</span> }</div>
-<div class="line"><a name="l04696"></a><span class="lineno"> 4696</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04700"></a><span class="lineno"> 4700</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04701"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga267fba0020bb3e6ba80f1fca111b3847"> 4701</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga267fba0020bb3e6ba80f1fca111b3847">flames_midas_tcewrr</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keyword">const</span> <span c [...]
-<div class="line"><a name="l04702"></a><span class="lineno"> 4702</span> {</div>
-<div class="line"><a name="l04703"></a><span class="lineno"> 4703</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e" title="Write table element.">tcewr</a>(CPL_TYPE_FLOAT, tid, row, column, value);</div>
-<div class="line"><a name="l04704"></a><span class="lineno"> 4704</span> }</div>
-<div class="line"><a name="l04705"></a><span class="lineno"> 4705</span> </div>
-<div class="line"><a name="l04706"></a><span class="lineno"> 4706</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04710"></a><span class="lineno"> 4710</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04711"></a><span class="lineno"> 4711</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04712"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga8f640b729dc132a3dfb6151317f54ad7"> 4712</a></span> <a class="code" href="group__flames__midas__def.html#ga8f640b729dc132a3dfb6151317f54ad7">tcard</a>(cpl_type type, <span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column,</div>
-<div class="line"><a name="l04713"></a><span class="lineno"> 4713</span>       <span class="keywordtype">int</span> index, <span class="keywordtype">int</span> items, <span class="keywordtype">void</span> *value)</div>
-<div class="line"><a name="l04714"></a><span class="lineno"> 4714</span> {</div>
-<div class="line"><a name="l04715"></a><span class="lineno"> 4715</span>     assure( index == 1 && (</div>
-<div class="line"><a name="l04716"></a><span class="lineno"> 4716</span>                 type == CPL_TYPE_STRING ||</div>
-<div class="line"><a name="l04717"></a><span class="lineno"> 4717</span>                 items == 1),</div>
-<div class="line"><a name="l04718"></a><span class="lineno"> 4718</span>             CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l04719"></a><span class="lineno"> 4719</span>             <span class="stringliteral">"index, items = %d, %d"</span>, index, items);</div>
-<div class="line"><a name="l04720"></a><span class="lineno"> 4720</span> </div>
-<div class="line"><a name="l04721"></a><span class="lineno"> 4721</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04" title="Reads table element.">tcerd</a>(type, tid, row, column, value, NULL);</div>
-<div class="line"><a name="l04722"></a><span class="lineno"> 4722</span> </div>
-<div class="line"><a name="l04723"></a><span class="lineno"> 4723</span>   cleanup:</div>
-<div class="line"><a name="l04724"></a><span class="lineno"> 4724</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04725"></a><span class="lineno"> 4725</span> }</div>
-<div class="line"><a name="l04726"></a><span class="lineno"> 4726</span> </div>
-<div class="line"><a name="l04727"></a><span class="lineno"> 4727</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04739"></a><span class="lineno"> 4739</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04740"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga68685d0b50cdc0635a5deb9b2048badd"> 4740</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga68685d0b50cdc0635a5deb9b2048badd" title="Reads table elements as a character string. Arrays are edited with a comma between elements...">flames_midas_tcardc</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype"> [...]
-<div class="line"><a name="l04741"></a><span class="lineno"> 4741</span> {</div>
-<div class="line"><a name="l04742"></a><span class="lineno"> 4742</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga8f640b729dc132a3dfb6151317f54ad7">tcard</a>(CPL_TYPE_STRING, tid, row, col, index, items, value);</div>
-<div class="line"><a name="l04743"></a><span class="lineno"> 4743</span> }</div>
-<div class="line"><a name="l04744"></a><span class="lineno"> 4744</span> </div>
-<div class="line"><a name="l04745"></a><span class="lineno"> 4745</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04756"></a><span class="lineno"> 4756</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04757"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga91ac96ae8f80e7d763aba17d63d43f94"> 4757</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga91ac96ae8f80e7d763aba17d63d43f94" title="Reads table elements as a double precision value.">flames_midas_tcardd</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int [...]
-<div class="line"><a name="l04758"></a><span class="lineno"> 4758</span> {</div>
-<div class="line"><a name="l04759"></a><span class="lineno"> 4759</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga8f640b729dc132a3dfb6151317f54ad7">tcard</a>(CPL_TYPE_DOUBLE, tid, row, col, index, items, value);</div>
-<div class="line"><a name="l04760"></a><span class="lineno"> 4760</span> }</div>
-<div class="line"><a name="l04761"></a><span class="lineno"> 4761</span> </div>
-<div class="line"><a name="l04762"></a><span class="lineno"> 4762</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04766"></a><span class="lineno"> 4766</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04767"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga6f1a804eb044a99139f18d7d47d5f033"> 4767</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga6f1a804eb044a99139f18d7d47d5f033">flames_midas_tcardi</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> index, < [...]
-<div class="line"><a name="l04768"></a><span class="lineno"> 4768</span> {</div>
-<div class="line"><a name="l04769"></a><span class="lineno"> 4769</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga8f640b729dc132a3dfb6151317f54ad7">tcard</a>(CPL_TYPE_INT, tid, row, col, index, items, value);</div>
-<div class="line"><a name="l04770"></a><span class="lineno"> 4770</span> }</div>
-<div class="line"><a name="l04771"></a><span class="lineno"> 4771</span> </div>
-<div class="line"><a name="l04772"></a><span class="lineno"> 4772</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04776"></a><span class="lineno"> 4776</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04777"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga7828917beff1870f6c63d8d91a426589"> 4777</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga7828917beff1870f6c63d8d91a426589">flames_midas_tcardr</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> index, < [...]
-<div class="line"><a name="l04778"></a><span class="lineno"> 4778</span> {</div>
-<div class="line"><a name="l04779"></a><span class="lineno"> 4779</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga8f640b729dc132a3dfb6151317f54ad7">tcard</a>(CPL_TYPE_FLOAT, tid, row, col, index, items, value);</div>
-<div class="line"><a name="l04780"></a><span class="lineno"> 4780</span> }</div>
-<div class="line"><a name="l04781"></a><span class="lineno"> 4781</span> </div>
-<div class="line"><a name="l04782"></a><span class="lineno"> 4782</span> </div>
-<div class="line"><a name="l04783"></a><span class="lineno"> 4783</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04787"></a><span class="lineno"> 4787</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04788"></a><span class="lineno"> 4788</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04789"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga65e78c6b1bd838a7bbb398c2cc572168"> 4789</a></span> <a class="code" href="group__flames__midas__def.html#ga65e78c6b1bd838a7bbb398c2cc572168">tcawr</a>(cpl_type type, <span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> index, <span class="keywordtype">int</span>  [...]
-<div class="line"><a name="l04790"></a><span class="lineno"> 4790</span> {</div>
-<div class="line"><a name="l04791"></a><span class="lineno"> 4791</span>     assure( index == 1 && (</div>
-<div class="line"><a name="l04792"></a><span class="lineno"> 4792</span>                 type == CPL_TYPE_STRING ||</div>
-<div class="line"><a name="l04793"></a><span class="lineno"> 4793</span>                 items == 1),</div>
-<div class="line"><a name="l04794"></a><span class="lineno"> 4794</span>             CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l04795"></a><span class="lineno"> 4795</span>             <span class="stringliteral">"index, items = %d, %d"</span>, index, items);</div>
-<div class="line"><a name="l04796"></a><span class="lineno"> 4796</span>     </div>
-<div class="line"><a name="l04797"></a><span class="lineno"> 4797</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e" title="Write table element.">tcewr</a>(type, tid, row, col, value);</div>
-<div class="line"><a name="l04798"></a><span class="lineno"> 4798</span>     </div>
-<div class="line"><a name="l04799"></a><span class="lineno"> 4799</span>   cleanup:</div>
-<div class="line"><a name="l04800"></a><span class="lineno"> 4800</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04801"></a><span class="lineno"> 4801</span> }</div>
-<div class="line"><a name="l04802"></a><span class="lineno"> 4802</span> </div>
-<div class="line"><a name="l04803"></a><span class="lineno"> 4803</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04814"></a><span class="lineno"> 4814</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04815"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga4025c0c05f7c29795606053fa93246ad"> 4815</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga4025c0c05f7c29795606053fa93246ad" title="Writes table element, character string format.">flames_midas_tcawrc</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</s [...]
-<div class="line"><a name="l04816"></a><span class="lineno"> 4816</span> {</div>
-<div class="line"><a name="l04817"></a><span class="lineno"> 4817</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga65e78c6b1bd838a7bbb398c2cc572168">tcawr</a>(CPL_TYPE_STRING, tid, row, col, index, items, value);</div>
-<div class="line"><a name="l04818"></a><span class="lineno"> 4818</span> }</div>
-<div class="line"><a name="l04819"></a><span class="lineno"> 4819</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04830"></a><span class="lineno"> 4830</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04831"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaed6dea021e90e8503f6875b16024bb32"> 4831</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaed6dea021e90e8503f6875b16024bb32" title="Writes table element, double precision argument.">flames_midas_tcawrd</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int< [...]
-<div class="line"><a name="l04832"></a><span class="lineno"> 4832</span> {</div>
-<div class="line"><a name="l04833"></a><span class="lineno"> 4833</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga65e78c6b1bd838a7bbb398c2cc572168">tcawr</a>(CPL_TYPE_DOUBLE, tid, row, col, index, items, value);</div>
-<div class="line"><a name="l04834"></a><span class="lineno"> 4834</span> }</div>
-<div class="line"><a name="l04835"></a><span class="lineno"> 4835</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04839"></a><span class="lineno"> 4839</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04840"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#ga8498644f4cd378cb9ba89010d0274ffc"> 4840</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga8498644f4cd378cb9ba89010d0274ffc">flames_midas_tcawri</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> index, < [...]
-<div class="line"><a name="l04841"></a><span class="lineno"> 4841</span> {</div>
-<div class="line"><a name="l04842"></a><span class="lineno"> 4842</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga65e78c6b1bd838a7bbb398c2cc572168">tcawr</a>(CPL_TYPE_INT, tid, row, col, index, items, value);</div>
-<div class="line"><a name="l04843"></a><span class="lineno"> 4843</span> }</div>
-<div class="line"><a name="l04844"></a><span class="lineno"> 4844</span> </div>
-<div class="line"><a name="l04845"></a><span class="lineno"> 4845</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04849"></a><span class="lineno"> 4849</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04850"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gae6d07668fce8fac7c7e9809b4a630110"> 4850</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gae6d07668fce8fac7c7e9809b4a630110">flames_midas_tcawrr</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> index, < [...]
-<div class="line"><a name="l04851"></a><span class="lineno"> 4851</span> {</div>
-<div class="line"><a name="l04852"></a><span class="lineno"> 4852</span>     <span class="keywordflow">return</span> <a class="code" href="group__flames__midas__def.html#ga65e78c6b1bd838a7bbb398c2cc572168">tcawr</a>(CPL_TYPE_FLOAT, tid, row, col, index, items, value);</div>
-<div class="line"><a name="l04853"></a><span class="lineno"> 4853</span> }</div>
-<div class="line"><a name="l04854"></a><span class="lineno"> 4854</span> </div>
-<div class="line"><a name="l04855"></a><span class="lineno"> 4855</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04863"></a><span class="lineno"> 4863</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04864"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gaabd3993df69252bebb2f975a1502d310"> 4864</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaabd3993df69252bebb2f975a1502d310" title="Reads row selection flag.">flames_midas_tcsget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> *value)</div>
-<div class="line"><a name="l04865"></a><span class="lineno"> 4865</span> {</div>
-<div class="line"><a name="l04866"></a><span class="lineno"> 4866</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(tid), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l04867"></a><span class="lineno"> 4867</span>     </div>
-<div class="line"><a name="l04868"></a><span class="lineno"> 4868</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(tid) && !frames[tid].is_image, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l04869"></a><span class="lineno"> 4869</span>         <span class="stringliteral">"Table %d is not open"</span>, tid);</div>
-<div class="line"><a name="l04870"></a><span class="lineno"> 4870</span>     </div>
-<div class="line"><a name="l04871"></a><span class="lineno"> 4871</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886" title="Load image/table if not already in memory.">load_frame</a>(tid), <span class="stringliteral">"Could not load table %s"</span>, frames[tid].filename);</div>
-<div class="line"><a name="l04872"></a><span class="lineno"> 4872</span> </div>
-<div class="line"><a name="l04873"></a><span class="lineno"> 4873</span>     assure( 1 <= row && row <= cpl_table_get_nrow(frames[tid].data.table.table),</div>
-<div class="line"><a name="l04874"></a><span class="lineno"> 4874</span>             CPL_ERROR_ACCESS_OUT_OF_RANGE,</div>
-<div class="line"><a name="l04875"></a><span class="lineno"> 4875</span>             <span class="stringliteral">"Cannot read row %d  of %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" row table %s"</span>, row,</div>
-<div class="line"><a name="l04876"></a><span class="lineno"> 4876</span>             cpl_table_get_nrow(frames[tid].data.table.table),</div>
-<div class="line"><a name="l04877"></a><span class="lineno"> 4877</span>             frames[tid].filename);</div>
-<div class="line"><a name="l04878"></a><span class="lineno"> 4878</span> </div>
-<div class="line"><a name="l04879"></a><span class="lineno"> 4879</span>     *value = cpl_table_get_int(frames[tid].data.table.table,</div>
-<div class="line"><a name="l04880"></a><span class="lineno"> 4880</span>                                <span class="stringliteral">"Select"</span>,</div>
-<div class="line"><a name="l04881"></a><span class="lineno"> 4881</span>                                row - 1, NULL);</div>
-<div class="line"><a name="l04882"></a><span class="lineno"> 4882</span> </div>
-<div class="line"><a name="l04883"></a><span class="lineno"> 4883</span>   cleanup:</div>
-<div class="line"><a name="l04884"></a><span class="lineno"> 4884</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04885"></a><span class="lineno"> 4885</span> }</div>
-<div class="line"><a name="l04886"></a><span class="lineno"> 4886</span> </div>
-<div class="line"><a name="l04887"></a><span class="lineno"> 4887</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04895"></a><span class="lineno"> 4895</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04896"></a><span class="lineno"><a class="code" href="group__flames__midas__def.html#gad64c1f681e05a9b74ac51da43d762eba"> 4896</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gad64c1f681e05a9b74ac51da43d762eba" title="Writes row selection flag.">flames_midas_tcsput</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keyword">const</span> <span class="keyw [...]
-<div class="line"><a name="l04897"></a><span class="lineno"> 4897</span> {</div>
-<div class="line"><a name="l04898"></a><span class="lineno"> 4898</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66" title="Structure invariant.">invariant</a>(tid), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l04899"></a><span class="lineno"> 4899</span>     </div>
-<div class="line"><a name="l04900"></a><span class="lineno"> 4900</span>     assure( <a class="code" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb" title="Tell if frame is open.">frame_is_open</a>(tid) && !frames[tid].is_image, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l04901"></a><span class="lineno"> 4901</span>         <span class="stringliteral">"Table %d is not open"</span>, tid);</div>
-<div class="line"><a name="l04902"></a><span class="lineno"> 4902</span>     </div>
-<div class="line"><a name="l04903"></a><span class="lineno"> 4903</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886" title="Load image/table if not already in memory.">load_frame</a>(tid), <span class="stringliteral">"Could not load table %s"</span>, frames[tid].filename);</div>
-<div class="line"><a name="l04904"></a><span class="lineno"> 4904</span> </div>
-<div class="line"><a name="l04905"></a><span class="lineno"> 4905</span>     assure( 1 <= row && row <= cpl_table_get_nrow(frames[tid].data.table.table),</div>
-<div class="line"><a name="l04906"></a><span class="lineno"> 4906</span>             CPL_ERROR_ACCESS_OUT_OF_RANGE,</div>
-<div class="line"><a name="l04907"></a><span class="lineno"> 4907</span>             <span class="stringliteral">"Cannot write to row %d of %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" row table %s"</span>, row,</div>
-<div class="line"><a name="l04908"></a><span class="lineno"> 4908</span>             cpl_table_get_nrow(frames[tid].data.table.table),</div>
-<div class="line"><a name="l04909"></a><span class="lineno"> 4909</span>             frames[tid].filename);</div>
-<div class="line"><a name="l04910"></a><span class="lineno"> 4910</span> </div>
-<div class="line"><a name="l04911"></a><span class="lineno"> 4911</span>     cpl_table_set_int(frames[tid].data.table.table, <span class="stringliteral">"Select"</span>, row - 1, *value);</div>
-<div class="line"><a name="l04912"></a><span class="lineno"> 4912</span> </div>
-<div class="line"><a name="l04913"></a><span class="lineno"> 4913</span> </div>
-<div class="line"><a name="l04914"></a><span class="lineno"> 4914</span>     <span class="keywordflow">if</span> (row > frames[tid].data.table.maxrow) {</div>
-<div class="line"><a name="l04915"></a><span class="lineno"> 4915</span>         frames[tid].data.table.maxrow = row;</div>
-<div class="line"><a name="l04916"></a><span class="lineno"> 4916</span>     }</div>
-<div class="line"><a name="l04917"></a><span class="lineno"> 4917</span>   cleanup:</div>
-<div class="line"><a name="l04918"></a><span class="lineno"> 4918</span>     <span class="keywordflow">return</span> (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;</div>
-<div class="line"><a name="l04919"></a><span class="lineno"> 4919</span> }</div>
-<div class="line"><a name="l04920"></a><span class="lineno"> 4920</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__midas__def_8h_source.html b/html/flames__midas__def_8h_source.html
deleted file mode 100644
index 71a1a2e..0000000
--- a/html/flames__midas__def_8h_source.html
+++ /dev/null
@@ -1,499 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_midas_def.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_midas_def.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 13:56:55 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.4 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.3  2010/09/24 09:32:02  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.1  2009/04/14 07:01:07  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * added to CVS (moded from flames tree)</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.19  2007/10/01 17:19:50  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * added scdprs</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.18  2007/06/22 14:52:18  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Exported dtype_to_cpltype function</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.17  2007/06/08 15:38:08  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added option to not automatically propagate NAXIS</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.16  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.15  2007/06/04 11:26:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added SCKGETC_fsp for cpl_frameset pointers</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.14  2007/05/30 12:06:03  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * #include<fitsio.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.13  2007/05/29 14:39:50  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Readded 3d table functions but map them to simple (2d) table functions</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.12  2007/05/29 13:46:23  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Removed 3d table column stubs which were not needed for FLAMES</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.11  2007/04/10 07:31:13  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Added TCTID</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.10  2007/04/03 11:05:33  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Implemented table module</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.9  2007/03/26 12:40:52  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Converted SCTDIS calls</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.8  2007/03/23 13:44:37  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Implemented SCKWR- functions</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.7  2007/03/23 10:10:15  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Implemented catalog interface</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.6  2007/03/05 09:40:31  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Added SCDCOP</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.5  2007/02/27 14:09:31  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Extended interface of uves_find_property</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.4  2007/01/31 13:14:57  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Initial implementation of SCFGET</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.3  2007/01/29 13:09:57  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Work on conversion to CPL</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.2  2007/01/15 14:00:23  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Imported FLAMES sources from MIDAS pipeline</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.1  2007/01/10 08:06:10  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Added source files</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.1  2006/10/20 06:42:09  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Moved FLAMES source to flames directory</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.78  2006/10/12 11:37:28  jmlarsen</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Temporarily disabled FLAMES code generation</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor">#ifndef FLAMES_MIDAS_DEF_H</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_MIDAS_DEF_H</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment">                    Includes</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor">#include <fitsio.h></span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">                                   Typedefs</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">                             Defines</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment">/* Definitions not used by FLAMES are commented out */</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">/* from flames_uves.h */</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="preprocessor">#define MAREMMA 2</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment">/* Data types */</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="preprocessor">#define D_OLD_FORMAT    0</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="preprocessor"></span><span class="preprocessor">#define D_I1_FORMAT     1               </span><span class="comment">/* I*1 = 1 byte                 */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="preprocessor"></span><span class="preprocessor">#define D_I2_FORMAT     2               </span><span class="comment">/* I*2 = 16 bit integer         */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="preprocessor"></span><span class="preprocessor">#define D_UI2_FORMAT  102               </span><span class="comment">/* I*2 = 16 bit unsigned integer */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="preprocessor"></span><span class="preprocessor">#define D_I4_FORMAT     4               </span><span class="comment">/* I*4 = 32 bit integer         */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="preprocessor"></span><span class="preprocessor">#define D_R4_FORMAT    10               </span><span class="comment">/* R*4 = 32 bit floating point  */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="preprocessor"></span><span class="preprocessor">#define D_R8_FORMAT    18               </span><span class="comment">/* R*8 = 64 bit floating point  */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="preprocessor"></span><span class="comment">//#define D_L1_FORMAT    21               /* L*1 = 1 byte logical         */</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment">//#define D_L2_FORMAT    22               /* L*2 = 16 bit logical         */</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="preprocessor">#define D_L4_FORMAT    24               </span><span class="comment">/* L*4 = 32 bit logical         */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor"></span><span class="preprocessor">#define D_C_FORMAT     30               </span><span class="comment">/* 1 byte character             */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="preprocessor"></span><span class="comment">//#define D_X_FORMAT     40               /* 1 byte flags                 */</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment">//#define D_P_FORMAT     50               /* pointers                     */</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment">/*  Filetypes */</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment">//#define F_OLD_TYPE      0               /* use old type of files        */</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="preprocessor">#define F_IMA_TYPE      1               </span><span class="comment">/* type no. for image files     */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="preprocessor"></span><span class="comment">//#define F_ASC_TYPE      2               /* type no. for ASCII files     */</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="preprocessor">#define F_TBL_TYPE      3               </span><span class="comment">/* type no. for table files     */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="preprocessor"></span><span class="comment">//#define F_FIT_TYPE      4               /* type no. for fit files       */</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment">//#define F_FIMA_TYPE     11              /* type no. for FITS images     */</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment">//#define F_FTBL_TYPE     13              /* type no. for FITS tables     */</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment">//#define F_FFIT_TYPE     14              /* type no. for FITS fit files  */</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment">/* Opening modes */</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment">//#define F_TRANS      0          /* table transposed format */</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment">//#define F_RECORD     1          /* table record format */</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="preprocessor">#define F_I_MODE     0          </span><span class="comment">/* map file for input only    */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="preprocessor"></span><span class="preprocessor">#define F_O_MODE     1          </span><span class="comment">/* map file for output        */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="preprocessor"></span><span class="preprocessor">#define F_IO_MODE    2          </span><span class="comment">/* map file for updating      */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="preprocessor"></span><span class="comment">//#define F_U_MODE     2          /* map file for updating      */</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment">//#define F_X_MODE     9          /* create/map virtual memory  */</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment">//#define F_H_MODE     7          /* create header file only */</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment">//#define F_FO_MODE    11         /* map FITS file for output   */</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment">/* May be combined with */</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment">//#define F_MAP_FORCE 0x10        /* Force the mapping (modifier)         */</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment">//#define F_EIO_FORCE 0x20        /* Force the elementary i/o (modifier)*/</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment">//#define F_ALL_FORCE 0x40        /* Force the allocated values   */</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment">/* Table i/o modes */</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="preprocessor">#define F_D_MODE     2          </span><span class="comment">/* map for descriptors only */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment">/* From midas_def.h */</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor">#define TEXT_LEN      84</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment">/* init, end */</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor">#define SCSPRO(name) flames_midas_scspro(name)</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="preprocessor"></span><span class="preprocessor">#define SCSEPI() flames_midas_scsepi()</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">/* error handling */</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment">/* display text */</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="preprocessor">#define SCTPUT(msg) flames_midas_sctput(msg, __func__, __FILE__, __LINE__)</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment">/* access keywords */</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor">#define SCKGETC(key, felem, maxvals, actvals, values) flames_midas_sckgetc(key, felem, maxvals, actvals, values)</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor"></span><span class="preprocessor">#define SCKGETC_fs(key, felem, maxvals, actvals, values)  flames_midas_sckgetc_fs(key, felem, maxvals, actvals, values)</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="preprocessor"></span><span class="preprocessor">#define SCKGETC_fsp(key, felem, maxvals, actvals, values) flames_midas_sckgetc_fsp(key, felem, maxvals, actvals, values)</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor"></span><span class="preprocessor">#define SCKFND(key, type, noelem, bytelem) flames_midas_sckfnd(key, type, noelem, bytelem)</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="preprocessor"></span><span class="preprocessor">#define SCKFND_double(key, type, noelem, bytelem) flames_midas_sckfnd_double(key, type, noelem, bytelem)</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="preprocessor"></span><span class="preprocessor">#define SCKFND_float(key, type, noelem, bytelem) flames_midas_sckfnd_float(key, type, noelem, bytelem)</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="preprocessor"></span><span class="preprocessor">#define SCKFND_int(key, type, noelem, bytelem) flames_midas_sckfnd_int(key, type, noelem, bytelem)</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="preprocessor"></span><span class="preprocessor">#define SCKFND_string(key, type, noelem, bytelem) flames_midas_sckfnd_string(key, type, noelem, bytelem)</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="preprocessor">#define SCKRDD(key, felem, maxvals, actvals, values, unit, null) flames_midas_sckrdd(key, felem, maxvals, actvals, values, unit, null)</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="preprocessor"></span><span class="preprocessor">#define SCKRDC(key, noelem, felem, maxvals, actvals, values, unit, null) flames_midas_sckrdc(key, noelem, felem, maxvals, actvals, values, unit, null)</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="preprocessor"></span><span class="preprocessor">#define SCKRDI(key, felem, maxvals, actvals, values, unit, null) flames_midas_sckrdi(key, felem, maxvals, actvals, values, unit, null)</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="preprocessor"></span><span class="preprocessor">#define SCKRDR(key, felem, maxvals, actvals, values, unit, null) flames_midas_sckrdr(key, felem, maxvals, actvals, values, unit, null)</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="preprocessor">#define SCKWRC(key, noelem, values, felem, maxval, unit) flames_midas_sckwrc(key, noelem, values, felem, maxval, unit)</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="preprocessor"></span><span class="preprocessor">#define SCKWRD(key, values, felem, maxval, unit) flames_midas_sckwrd(key, values, felem, maxval, unit)</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="preprocessor"></span><span class="preprocessor">#define SCKWRI(key, values, felem, maxval, unit) flames_midas_sckwri(key, values, felem, maxval, unit)</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment">/* manipulate catalogues */</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="preprocessor">#define SCCADD(catfile, name, ident) flames_midas_sccadd(catfile, name, ident)</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="preprocessor"></span><span class="preprocessor">#define SCCCRE(catfile, type, flag)  flames_midas_scccre(catfile, type, flag)</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="preprocessor"></span><span class="preprocessor">#define SCCFND(catfile, frmno, frame) flames_midas_sccfnd(catfile, frmno, frame)</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="preprocessor"></span><span class="preprocessor">#define SCCGET(catfile, flag, name, ident, no) flames_midas_sccget(catfile, flag, name, ident, no)</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="preprocessor"></span><span class="preprocessor">#define SCCSHO(catfile, noent, last) flames_midas_sccsho(catfile, noent, last)</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment">/* access bulk data frames (bdf) */</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="preprocessor">#define SCFINF(name, fno, ibuf) flames_midas_scfinf(name, fno, ibuf)</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="preprocessor"></span><span class="preprocessor">#define SCFCRE(name, dattype, iomode, filtype, size, imno) flames_midas_scfcre(name, dattype, iomode, filtype, size, imno)</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="preprocessor"></span><span class="preprocessor">#define SCFOPN(name, dattype, newopn, filtype, imno) flames_midas_scfopn(name, dattype, newopn, filtype, imno)</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="preprocessor"></span><span class="preprocessor">#define SCFCLO(imno) flames_midas_scfclo(imno)</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="preprocessor"></span><span class="preprocessor">#define SCFPUT(imno, felem, size, bufadr) flames_midas_scfput(imno, felem, size, bufadr)</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="preprocessor"></span><span class="preprocessor">#define SCFGET(imno, felem, size, actsize, bufadr) flames_midas_scfget(imno, felem, size, actsize, bufadr)</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">/* access descriptors */</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="preprocessor">#define SCDFND(imno, descr, type, noelem, bytelem) flames_midas_scdfnd(imno, descr, type, noelem, bytelem) </span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="preprocessor"></span><span class="preprocessor">#define SCDPRS(imno, descr, type, noelem, bytelem) flames_midas_scdprs(imno, descr, type, noelem, bytelem) </span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="preprocessor"></span><span class="preprocessor">#define SCDRDI(imno, descr, felem, maxvals, actvals, values, unit, null) flames_midas_scdrdi(imno, descr, felem, maxvals, actvals, values, unit, null)</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="preprocessor"></span><span class="preprocessor">#define SCDRDD(imno, descr, felem, maxvals, actvals, values, unit, null) flames_midas_scdrdd(imno, descr, felem, maxvals, actvals, values, unit, null)</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="preprocessor"></span><span class="preprocessor">#define SCDWRI(imno, descr, values, felem, nval, unit) flames_midas_scdwri(imno, descr, values, felem, nval, unit)</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="preprocessor"></span><span class="preprocessor">#define SCDWRD(imno, descr, values, felem, nval, unit) flames_midas_scdwrd(imno, descr, values, felem, nval, unit)</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="preprocessor"></span><span class="preprocessor">#define SCDWRR(imno, descr, values, felem, nval, unit) flames_midas_scdwrr(imno, descr, values, felem, nval, unit)</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="preprocessor"></span><span class="preprocessor">#define SCDWRC(imno, descr, noelm, values, felem, nval, unit) flames_midas_scdwrc(imno, descr, noelm, values, felem, nval, unit)</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="preprocessor"></span><span class="preprocessor">#define SCDCOP(from, to, mask) flames_midas_scdcop(from, to, mask)</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="preprocessor"></span><span class="preprocessor">#define SCDCOP_nonaxis(from, to, mask) flames_midas_scdcop_nonaxis(from, to, mask)</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="preprocessor"></span><span class="preprocessor">#define SCDDEL(imno, descr) flames_midas_scddel(imno, descr)</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="preprocessor"></span><span class="preprocessor">#define SCDRDR(imno, descr, felem, maxvals, actvals, values, unit, null) flames_midas_scdrdr(imno, descr, felem, maxvals, actvals, values, unit, null)</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="preprocessor"></span><span class="preprocessor">#define SCDRDC(imno, descr, noelem, felem, maxvals, actvals, values, unit, null) flames_midas_scdrdc(imno, descr, noelem, felem, maxvals, actvals, values, unit, null)</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="preprocessor"></span><span class="comment">/* note: SCDGETC is same as SCDRDC with noelem = number of bytes per data value = 1 */</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="preprocessor">#define SCDGETC(imno, descr, felem, maxvals, actvals, values) SCDRDC(imno, descr, 1, felem, maxvals, actvals, values, NULL, NULL)</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment">/* table access */</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="preprocessor">#define TCTOPN(name, mode, tid) flames_midas_tctopn(name, mode, -1, tid)</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="preprocessor"></span><span class="preprocessor">#define TCTCLO(tid) flames_midas_tctclo(tid)</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="preprocessor"></span><span class="preprocessor">#define TCCSER(tid, colref, column) flames_midas_tccser(tid, colref, column)</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="preprocessor"></span><span class="preprocessor">#define TCIGET(tid, column, row) flames_midas_tciget(tid, column, row)</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="preprocessor">#define TCERDD(tid, row, column, value, null) flames_midas_tcerdd(tid, row, column, value, null)</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="preprocessor">#define TCBGET(tid, column, dtype, items, bytes) flames_midas_tcbget(tid, column, dtype, items, bytes)</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="preprocessor">#define TCCINI(tid, dtype, alen, form, unit, label, column) flames_midas_tccini(tid, dtype, alen, form, unit, label, column)</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="preprocessor"></span><span class="preprocessor">#define TCDGET(tid, store) flames_midas_tcdget(tid, store)</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="preprocessor">#define TCERDC(tid, row, column, values, null) flames_midas_tcerdc(tid, row, column, values, null)</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="preprocessor"></span><span class="preprocessor">#define TCERDI(tid, row, column, values, null) flames_midas_tcerdi(tid, row, column, values, null)</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="preprocessor"></span><span class="preprocessor">#define TCERDR(tid, row, column, values, null) flames_midas_tcerdr(tid, row, column, values, null)</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="preprocessor"></span><span class="preprocessor">#define TCEWRC(tid, row, column, value) flames_midas_tcewrc(tid, row, column, value)</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="preprocessor"></span><span class="preprocessor">#define TCEWRD(tid, row, column, value) flames_midas_tcewrd(tid, row, column, value)</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="preprocessor"></span><span class="preprocessor">#define TCEWRI(tid, row, column, value) flames_midas_tcewri(tid, row, column, value)</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="preprocessor"></span><span class="preprocessor">#define TCEWRR(tid, row, column, value) flames_midas_tcewrr(tid, row, column, value)</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="preprocessor">#define TCARDC(tid, row, col, index, items, value) flames_midas_tcardc(tid, row, col, index, items, value)</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="preprocessor"></span><span class="preprocessor">#define TCARDD(tid, row, col, index, items, value) flames_midas_tcardd(tid, row, col, index, items, value)</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="preprocessor"></span><span class="preprocessor">#define TCARDI(tid, row, col, index, items, value) flames_midas_tcardi(tid, row, col, index, items, value)</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="preprocessor"></span><span class="preprocessor">#define TCARDR(tid, row, col, index, items, value) flames_midas_tcardr(tid, row, col, index, items, value)</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="preprocessor"></span><span class="preprocessor">#define TCAWRC(tid, row, col, index, items, value) flames_midas_tcawrc(tid, row, col, index, items, value)</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="preprocessor"></span><span class="preprocessor">#define TCAWRD(tid, row, col, index, items, value) flames_midas_tcawrd(tid, row, col, index, items, value)</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="preprocessor"></span><span class="preprocessor">#define TCAWRI(tid, row, col, index, items, value) flames_midas_tcawri(tid, row, col, index, items, value)</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="preprocessor"></span><span class="preprocessor">#define TCAWRR(tid, row, col, index, items, value) flames_midas_tcawrr(tid, row, col, index, items, value)</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="preprocessor">#define TCFGET(tid, column, form, dtype) flames_midas_tcfget(tid, column, form, dtype)</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="preprocessor"></span><span class="preprocessor">#define TCLGET(tid, column, label) flames_midas_tclget(tid, column, label)</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="preprocessor"></span><span class="preprocessor">#define TCLSER(tid, label, column) flames_midas_tclser(tid, label, column)</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="preprocessor"></span><span class="preprocessor">#define TCSGET(tid, row, value) flames_midas_tcsget(tid, row, value)</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="preprocessor"></span><span class="preprocessor">#define TCSPUT(tid, row, value) flames_midas_tcsput(tid, row, value)</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment">/* TCTINI  -->  TCTOPN */</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="preprocessor">#define TCTINI(name, mode, allrow, tid) flames_midas_tctopn(name, mode, allrow, tid)</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="preprocessor">#define TCUGET(tid, column, unit) flames_midas_tcuget(tid, column, unit)</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="preprocessor">#define flames_midas_fail() flames_midas_fail_macro(__FILE__, __func__, __LINE__)</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="preprocessor"></span><span class="preprocessor">#define flames_midas_error(status) flames_midas_error_macro(__FILE__, __func__, __LINE__, status)</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment">                                   Prototypes</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment">/* init, end */</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gafb520332aaae57a6e23cd3004aaf9edd" title="Get into the MIDAS environment.">flames_midas_scspro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga404f30f6b856c9aef1049281f08821a7" title="Deinitialize interface.">flames_midas_scsepi</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gafb38d16898bedd5466e128e2fc7685ec" title="Deinitialize interface, cleanup and return failure.">flames_midas_fail_macro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">function</span>, <span c [...]
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga5782950076486effd61983d7e9cfdca7" title="Print debugging info when function returns error.">flames_midas_error_macro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">function</span>, <span cl [...]
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                  <span class="keywordtype">int</span> status);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment">/* error handling */</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment">/* access keywords */</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gad5428f85c2051eb80233c722be600384" title="Get data from character keyword.">flames_midas_sckgetc</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>              <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>              <span class="keywordtype">int</span> *actvals, <span class="keywordtype">char</span> *values);</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaa8dd2c0f402ef4d7f25cab80633315d2" title="Get data from character keyword (catalogue)">flames_midas_sckgetc_fs</a>(<span class="keyword">const</span> cpl_frameset *key, </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>              <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>              <span class="keywordtype">int</span> *actvals, <span class="keyword">const</span> cpl_frameset **values);</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaf5a5ab0dd30aa57b7190dd16282b405c" title="Get data from character keyword (frame set pointer)">flames_midas_sckgetc_fsp</a>(cpl_frameset **key, </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>              <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>              <span class="keywordtype">int</span> *actvals, cpl_frameset ***values);</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> </div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gae85c7a6f7d741e6daef4b9b22ac45445" title="Read data from double precision keyword.">flames_midas_sckrdd</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *key, <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">double</span> *values, <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null);</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga9141f1db2730a7ca7017cb6c3f630212" title="Read data from integer keyword.">flames_midas_sckrdi</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> *key, <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">int</span> *values, <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga111509252ea742fbf16c4d1094e50984" title="Read data from real precision keyword.">flames_midas_sckrdr</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> *key, <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">float</span> *values, <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gadf589fba446c3b815b0f3cd2d1ae2313" title="Read data from string keyword.">flames_midas_sckrdc</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">int</span> noelem, <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">char</span> *values, <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gac9bb00d4973c0c331c191b7181813603" title="Write data into integer keyword.">flames_midas_sckwri</a>(<span class="keywordtype">int</span> *key, <span class="keyword">const</span> <span class="keywordtype">int</span> *values, </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxval, <span class="keywordtype">int</span> *unit);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaf92f6c07d3bdb40c5a94cbda4ef5759d" title="Write data into double keyword.">flames_midas_sckwrd</a>(<span class="keywordtype">double</span> *key, <span class="keyword">const</span> <span class="keywordtype">double</span> *values, </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxval, <span class="keywordtype">int</span> *unit);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga456cfe0c7a3174be7b4743a50c35af06" title="Write data into character keyword.">flames_midas_sckwrc</a>(<span class="keywordtype">char</span> *key, <span class="keywordtype">int</span> noelem,</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *values, <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals, <span class="keywordtype">int</span> *unit);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaebe09f825bea8022029d7228f65ec0bd">flames_midas_sckfnd_double</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *key, <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *noelem, <span class="keywordtype">int</span> *bytelem);</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gad15ddc46cb5cfb84c0712bd4ea711a31">flames_midas_sckfnd_float</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> *key, <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *noelem, <span class="keywordtype">int</span> *bytelem);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gac7a6aa9b94f6cc8f3cde2fbdfc196508">flames_midas_sckfnd_int</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> *key, <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *noelem, <span class="keywordtype">int</span> *bytelem);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaa62164a8510ad12d9cc38d7ba63e6ac2">flames_midas_sckfnd_string</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *noelem, <span class="keywordtype">int</span> *bytelem);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment">/* display text */</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga16f28e1fc62964ca37121c376f40f217" title="Display message.">flames_midas_sctput</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *msg, </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *func, <span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keywordtype">int</span> line);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="comment">/* access bulk data frames (bdf) */</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gade8dcfb4d9b489491251c0a3bdd37c77" title="Open an existing image and return its internal file no.">flames_midas_scfopn</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> dattype, <span class="keywordtype">int</span> newopn, <span class="keywordtype">int [...]
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga5ed8340f5fc416851f180804e976063c" title="Close an image frame.">flames_midas_scfclo</a>(<span class="keywordtype">int</span> imno);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gacc0d2e992be7014e3ee51cd0e5213378" title="Create an image frame with data of given type and return its internal file no.">flames_midas_scfcre</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> dattype, <span class="keywordtype">int</span> iomode, <span  [...]
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>             <span class="keywordtype">int</span> size, <span class="keywordtype">int</span> *imno);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga7066ceaa10571003c4f40b9514befa55" title="Open the frame and return file info in buffer up to 5 integers.">flames_midas_scfinf</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> fno, <span class="keywordtype">int</span> *ibuf);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga41facab5fb3ef7e61cd04eb23c221457" title="Read data from disk frame into memory.">flames_midas_scfget</a>(<span class="keywordtype">int</span> imno, <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> size, <span class="keywordtype">int</span> *actsize, <span class="keywordtype">char</span> *b [...]
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga7fd1da8919a2e4d23d715241851dc531" title="Write data from memory into disk frame.">flames_midas_scfput</a>(<span class="keywordtype">int</span> imno, <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> size, <span class="keyword">const</span> <span class="keywordtype">char</span> *bufadr);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment">/* access descriptors */</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gae2e7cd4c8a5c1bffdbd0323fdb5aac63" title="Provide info about descriptor.">flames_midas_scdfnd</a>(<span class="keywordtype">int</span> imno, <span class="keyword">const</span> <span class="keywordtype">char</span> *descr, </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>             <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *noelem, <span class="keywordtype">int</span> *bytelem);</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga6b30560067a69f65864f034fcecf22b8" title="Provide info about descriptor.">flames_midas_scdprs</a>(<span class="keywordtype">int</span> imno, <span class="keyword">const</span> <span class="keywordtype">char</span> *descr, </div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>             <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *noelem, <span class="keywordtype">int</span> *bytelem);</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga0e318315f4db01837b210ed6f121abc9" title="Read contents of integer descriptor.">flames_midas_scdrdi</a>(<span class="keywordtype">int</span> imno, <span class="keyword">const</span> <span class="keywordtype">char</span> *descr, </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals,</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">int</span> *values,</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>             <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null);</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaac0ac727377c28d18f747a7d7c68ba8a" title="Read contents of double descriptor.">flames_midas_scdrdd</a>(<span class="keywordtype">int</span> imno, <span class="keyword">const</span> <span class="keywordtype">char</span> *descr, </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals,</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">double</span> *values,</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>             <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaa973227da8437b4a863f3b20c6a48677" title="Read contents of double descriptor.">flames_midas_scdrdr</a>(<span class="keywordtype">int</span> imno, <span class="keyword">const</span> <span class="keywordtype">char</span> *descr, </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals,</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">float</span> *values,</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>             <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null);</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga364fe8ecc22777838c41847bda6ac39d" title="Read contents of string descriptor.">flames_midas_scdrdc</a>(<span class="keywordtype">int</span> imno, <span class="keyword">const</span> <span class="keywordtype">char</span> *descr, </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>             <span class="keywordtype">int</span> noelem,</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> maxvals,</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>             <span class="keywordtype">int</span> *actvals, <span class="keywordtype">char</span> *values,</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>             <span class="keywordtype">int</span> *unit, <span class="keywordtype">int</span> *null);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga13989de7cfac7c2dbf9af19b1474466c" title="Write a descriptor and its data.">flames_midas_scdwri</a>(<span class="keywordtype">int</span> imno, <span class="keyword">const</span> <span class="keywordtype">char</span> *descr, <span class="keyword">const</span> <span class="keywordtype">int</span> *values, </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> nval, <span class="keyword">const</span> <span class="keywordtype">int</span> *unit);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga2291fd90dbe300f347bdeb8b9406defc" title="Write a descriptor and its data.">flames_midas_scdwrd</a>(<span class="keywordtype">int</span> imno, <span class="keyword">const</span> <span class="keywordtype">char</span> *descr, <span class="keyword">const</span> <span class="keywordtype">double</span> *values, </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> nval, <span class="keyword">const</span> <span class="keywordtype">int</span> *unit);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga1529d77bc40fef94b2ff2c3e00c478e1" title="Write a descriptor and its data.">flames_midas_scdwrr</a>(<span class="keywordtype">int</span> imno, <span class="keyword">const</span> <span class="keywordtype">char</span> *descr, <span class="keyword">const</span> <span class="keywordtype">float</span> *values, </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> nval, <span class="keyword">const</span> <span class="keywordtype">int</span> *unit);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga44cabf3bf150345b7212c5b7b53b98c2" title="Write a descriptor and its data.">flames_midas_scdwrc</a>(<span class="keywordtype">int</span> imno, <span class="keyword">const</span> <span class="keywordtype">char</span> *descr, <span class="keywordtype">int</span> noelm, <span class="keyword">const</span> <span class="keyword [...]
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>             <span class="keywordtype">int</span> felem, <span class="keywordtype">int</span> nval, <span class="keyword">const</span> <span class="keywordtype">int</span> *unit);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga26847f26401dd74af7e09d6e20f3485c" title="Copy descriptors.">flames_midas_scdcop</a>(<span class="keywordtype">int</span> from, <span class="keywordtype">int</span> to, <span class="keywordtype">int</span> mask);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga9434f71fab199b6901162d0ef9a3c72c" title="Copy descriptors.">flames_midas_scdcop_nonaxis</a>(<span class="keywordtype">int</span> from, <span class="keywordtype">int</span> to, <span class="keywordtype">int</span> mask);</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga48f59f2f6c0f646a98df741d3dca5490" title="Delete a descriptor.">flames_midas_scddel</a>(<span class="keywordtype">int</span> imno, <span class="keyword">const</span> <span class="keywordtype">char</span> *descr);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> <span class="comment">/* tables */</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga3ef46ff32b2d2f17c817a788076db09a" title="Open table.">flames_midas_tctopn</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> mode, <span class="keywordtype">int</span> allrow, <span class="keywordtype">int</span> *tid);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga682523f91d2e727497904d2abafd4171" title="Closes a table.">flames_midas_tctclo</a>(<span class="keywordtype">int</span> tid);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga08eeeb2f1d0362d03eb83612d1407e47" title="Search column by reference.">flames_midas_tccser</a>(<span class="keywordtype">int</span> tid, <span class="keyword">const</span> <span class="keywordtype">char</span> *colref, <span class="keywordtype">int</span> *column);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gac90526c6f62d53d6dda4f12709366401" title="Reads table size information.">flames_midas_tciget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> *column, <span class="keywordtype">int</span> *row);</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga68685d0b50cdc0635a5deb9b2048badd" title="Reads table elements as a character string. Arrays are edited with a comma between elements...">flames_midas_tcardc</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span [...]
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga91ac96ae8f80e7d763aba17d63d43f94" title="Reads table elements as a double precision value.">flames_midas_tcardd</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> index, <span class="keywordtype">int</span> [...]
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga6f1a804eb044a99139f18d7d47d5f033">flames_midas_tcardi</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> index, <span class="keywordtype">int</span> items, <span class="keywordtype">int</span> *value);</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga7828917beff1870f6c63d8d91a426589">flames_midas_tcardr</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> index, <span class="keywordtype">int</span> items, <span class="keywordtype">float</span> *value);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga4025c0c05f7c29795606053fa93246ad" title="Writes table element, character string format.">flames_midas_tcawrc</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> index, <span class="keywordtype">int</span> it [...]
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaed6dea021e90e8503f6875b16024bb32" title="Writes table element, double precision argument.">flames_midas_tcawrd</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> index, <span class="keywordtype">int</span>  [...]
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga8498644f4cd378cb9ba89010d0274ffc">flames_midas_tcawri</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> index, <span class="keywordtype">int</span> items, <span class="keyword">const</span> <span class="ke [...]
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gae6d07668fce8fac7c7e9809b4a630110">flames_midas_tcawrr</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> index, <span class="keywordtype">int</span> items, <span class="keyword">const</span> <span class="ke [...]
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gabfccd17a94b63af4a405b06f65e8a9c3" title="Reads binary storage characteristics of column.">flames_midas_tcbget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> column, <span class="keywordtype">int</span> *dtype, <span class="keywordtype">int</span> *items, <span class="keywordtype">int</ [...]
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga54f9ec2adf2926835533fd239b0ecf07" title="Reads table storage format (F_TRANS or F_RECORD)">flames_midas_tcdget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> *store);</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga42b0965ecfa0c67c6e03e34ab9c9f6c3" title="Reads column format.">flames_midas_tcfget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> column, <span class="keywordtype">char</span> *form, <span class="keywordtype">int</span> *dtype);</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga07f9619101216e3d306e6dc69dd6bce2" title="Reads column label.">flames_midas_tclget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> column, <span class="keywordtype">char</span> *label);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga2206e126a49362e551a9f6cceb8bc4e6" title="Reads column unit.">flames_midas_tcuget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> column, <span class="keywordtype">char</span> *unit);</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga2cfaafe6ece41ed12cf798605688c74d" title="Searches the sequential number of the column having the given label, case insensitive.">flames_midas_tclser</a>(<span class="keywordtype">int</span> tid, <span class="keyword">const</span> <span class="keywordtype">char</span> *label, <span class="keywordtype">int</span> *column);</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga056439b490e9f15fb439956f97da18a6" title="Initializes table column.">flames_midas_tccini</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> dtype, <span class="keywordtype">int</span> alen,</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                         <span class="keyword">const</span> <span class="keywordtype">char</span> *form, <span class="keyword">const</span> <span class="keywordtype">char</span> *unit, <span class="keyword">const</span> <span class="keywordtype">char</span> *label,</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                         <span class="keywordtype">int</span> *column);</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gac6c54281929d88f009f4e4d2de078948">flames_midas_tcerdc</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keywordtype">char</span> *values, <span class="keywordtype">int</span> *null);</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaf38f1e0716373fba8c2cd7cea07ef7d0">flames_midas_tcerdi</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keywordtype">int</span> *values, <span class="keywordtype">int</span> *null);</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gadce2330c6f7b37cd8694fb195c4d240e">flames_midas_tcerdr</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keywordtype">float</span> *values, <span class="keywordtype">int</span> *null);</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga338a9cb9bd7b9c78c6722879a6a6dcb7">flames_midas_tcerdd</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column,</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>             <span class="keywordtype">double</span> *value, <span class="keywordtype">int</span> *null);</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gae63b97b3d22a206f5d520d0720e79f05">flames_midas_tcewrc</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keyword">const</span> <span class="keywordtype">char</span> *value);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga8ddb72626aebb5ce88e19f3f01f49eed">flames_midas_tcewri</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keyword">const</span> <span class="keywordtype">int</span> *value);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga267fba0020bb3e6ba80f1fca111b3847">flames_midas_tcewrr</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keyword">const</span> <span class="keywordtype">float</span> *value);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaf56d454eb421323a18cb00a7a238608b">flames_midas_tcewrd</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> column, <span class="keyword">const</span> <span class="keywordtype">double</span> *value);</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gaabd3993df69252bebb2f975a1502d310" title="Reads row selection flag.">flames_midas_tcsget</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> *value);</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#gad64c1f681e05a9b74ac51da43d762eba" title="Writes row selection flag.">flames_midas_tcsput</a>(<span class="keywordtype">int</span> tid, <span class="keywordtype">int</span> row, <span class="keyword">const</span> <span class="keywordtype">int</span> *value);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> <span class="comment">/* catalogs */</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga015a9de40fda2f9647b47ebcff656176" title="Show size and type of a catalog.">flames_midas_sccsho</a>(<span class="keyword">const</span> cpl_frameset *catfile,</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                         <span class="keywordtype">int</span> *noent, </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>                         <span class="keywordtype">int</span> *last);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga012d8363656f8f4ffbd3715f07e0fe1e" title="Get next sequential entry from frame catalogue.">flames_midas_sccget</a>(<span class="keyword">const</span> cpl_frameset *catfile,</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                         <span class="keywordtype">int</span> flag,</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                         <span class="keywordtype">char</span> *name, <span class="keywordtype">char</span> *ident, </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                         <span class="keywordtype">int</span> *no);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga615dbb0a3b8642ce7a2fc6dd0f9ccdca" title="Find corresponding frame for given entry number.">flames_midas_sccfnd</a>(<span class="keyword">const</span> cpl_frameset *catfile, </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>                         <span class="keywordtype">int</span> frmno, </div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>                         <span class="keywordtype">char</span> *<a class="code" href="structframe.html">frame</a>);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga49845ef1180d690d5d3c6aa8645217c9" title="Create a catalog.">flames_midas_scccre</a>(cpl_frameset **catfile, </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>                         <span class="keywordtype">int</span> type,</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>                         <span class="keywordtype">int</span> flag);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__midas__def.html#ga7be4e25a210527efa6a2f35654a883c2" title="Add catalog entry.">flames_midas_sccadd</a>(cpl_frameset *catfile,</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *ident);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> <span class="comment">/* Other */</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> cpl_type</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <a class="code" href="group__flames__midas__def.html#ga6beb815e71b5dc0c97723fea885b87fb" title="Map MIDAS dtypes to CPL types.">flames_midas_image_dtype_to_cpltype</a>(<span class="keywordtype">int</span> dtype);</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> </div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__newmatrix_8c_source.html b/html/flames__newmatrix_8c_source.html
deleted file mode 100644
index e64727b..0000000
--- a/html/flames__newmatrix_8c_source.html
+++ /dev/null
@@ -1,2171 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_newmatrix.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_newmatrix.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*===========================================================================</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment">  Copyright (C) 2001 European Southern Observatory (ESO)</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment">  This program is free software; you can redistribute it and/or </span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment">  modify it under the terms of the GNU General Public License as </span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment">  published by the Free Software Foundation; either version 2 of </span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment">  the License, or (at your option) any later version.</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment">  This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment">  GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment">  You should have received a copy of the GNU General Public </span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment">  License along with this program; if not, write to the Free </span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment">  Software Foundation, Inc., 675 Massachusetss Ave, Cambridge, </span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment">  MA 02139, USA.</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment">  Corresponding concerning ESO-MIDAS should be addressed as follows:</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">    Internet e-mail: midas at eso.org</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">    Postal address: European Southern Observatory</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment">            Data Management Division </span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment">            Karl-Schwarzschild-Strasse 2</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment">            D 85748 Garching bei Muenchen </span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment">            GERMANY</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment">===========================================================================*/</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment">/* Program  : newmatrix.c                                                  */</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">/* Author   : G. Mulas  -  ITAL_FLAMES Consortium (derived by NR)          */</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment">/* Date     :                                                              */</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment">/*                                                                         */</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/* Purpose  : Missing                                                      */</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*                                                                         */</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">/*                                                                         */</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment">/* Input:  see interface                                                   */</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment">/*                                                                      */</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment">/* Output:                                                              */</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*                                                                         */</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">/* DRS Functions called:                                                   */</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/* none                                                                    */</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/*                                                                         */</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">/* Pseudocode:                                                             */</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">/* Missing                                                                 */</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/*                                                                         */</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">/* Version  :                                                              */</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">/* Last modification date: 2002/08/05                                      */</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">/* Who     When        Why                Where                            */</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/* AMo     02-08-05   Add header         header                            */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#if defined(__STDC__) || defined(ANSI) || defined(NRANSI) </span><span class="comment">/* ANSI */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <flames_newmatrix.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <stddef.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#include <flames_midas_def.h></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <flames_uves.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#define NR_END 1</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span><span class="preprocessor">#define FREE_ARG char*</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">//jmlarsen: Maybe we should respect the fine people at NR and</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment">//          *not* steal their copyrighted code???</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="keywordtype">void</span>  nrerror(<span class="keyword">const</span> <span class="keywordtype">char</span>* error_text)</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">/* Numerical Recipes standard error handler */</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> {</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">    ---------- Let's comment out the non-MIDAS compliant items----------</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment">    fprintf(stderr,"Numerical Recipes run-time error...\n");</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">    fprintf(stderr,"%s\n",error_text);</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment">    fprintf(stderr,"...now exiting to system...\n");</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">  */</span>    </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>   <span class="keywordtype">char</span> output[70];</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>  </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>   SCTPUT(<span class="stringliteral">"Numerical Recipes run-time error...\n"</span>); </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>   sprintf(output, <span class="stringliteral">"%s\n"</span>, error_text);</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>   SCTPUT(output); </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>   SCTPUT(<span class="stringliteral">"...now exiting to system...\n"</span>); </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>   SCSEPI();</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>   <span class="comment">//UVES error handling here</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>   <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( <span class="keyword">false</span>, CPL_ERROR_ILLEGAL_OUTPUT );</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>  cleanup:</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>   return ;</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> }</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="keywordtype">float</span> *vector(int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">/* allocate a float vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> {</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>   <span class="keywordtype">float</span> *v;</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>   v=(<span class="keywordtype">float</span> *) calloc((<span class="keywordtype">size_t</span>) (nh-nl+1+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>));</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in vector()"</span>);</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> }</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="keywordtype">int</span> *ivector(int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment">/* allocate an int vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> {</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>   <span class="keywordtype">int</span> *v;</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>   v=(<span class="keywordtype">int</span> *) calloc((<span class="keywordtype">size_t</span>) (nh-nl+1+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in ivector()"</span>);</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> }</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *uivector(int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment">/* allocate an unsigned int vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> {</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *v;</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>   v=(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *) calloc((<span class="keywordtype">size_t</span>) (nh-nl+1+NR_END), </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>                 <span class="keyword">sizeof</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in uivector()"</span>);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> }</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="keywordtype">char</span> *cvector(int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment">/* allocate a char vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> {</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>   <span class="keywordtype">char</span> *v;</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>   v=(<span class="keywordtype">char</span> *) calloc((<span class="keywordtype">size_t</span>) (nh-nl+1+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in cvector()"</span>);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> }</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *ucvector(int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment">/* allocate an unsigned char vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> {</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *v;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>   v=(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *) calloc((<span class="keywordtype">size_t</span>) (nh-nl+1+NR_END), </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>                  <span class="keyword">sizeof</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in ucvector()"</span>);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> }</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> int32_t *lvector(int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment">/* allocate a int32_t vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> {</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>   int32_t *v;</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>   v=(int32_t *) calloc((<span class="keywordtype">size_t</span>) (nh-nl+1+NR_END), <span class="keyword">sizeof</span>(int32_t));</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in lvector()"</span>);</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> }</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> uint32_t *ulvector(int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment">/* allocate an uint32_t vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> {</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   uint32_t *v;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>   v=(uint32_t *) calloc((<span class="keywordtype">size_t</span>) (nh-nl+1+NR_END), </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>                  <span class="keyword">sizeof</span>(uint32_t));</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in ulvector()"</span>);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> }</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="keywordtype">double</span> *dvector(int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment">/* allocate a double vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> {</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>   <span class="keywordtype">double</span> *v;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>   v=(<span class="keywordtype">double</span> *) calloc((<span class="keywordtype">size_t</span>) (nh-nl+1+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in dvector()"</span>);</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> }</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> frame_data *fdvector(int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment">/* allocate a frame_data vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> {</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>   frame_data *v;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>   v=(frame_data *) calloc((<span class="keywordtype">size_t</span>) (nh-nl+1+NR_END), <span class="keyword">sizeof</span>(frame_data));</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in fdvector()"</span>);</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> }</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> frame_mask *fmvector(int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">/* allocate a frame_mask vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> {</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>   frame_mask *v;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   v=(frame_mask *) calloc((<span class="keywordtype">size_t</span>) (nh-nl+1+NR_END), <span class="keyword">sizeof</span>(frame_mask));</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in fdvector()"</span>);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> }</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="keywordtype">char</span> **cmatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment">/* allocate a char matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> {</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>   <span class="keywordtype">char</span> **m;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>   m=(<span class="keywordtype">char</span> **) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>*));</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in cmatrix()"</span>);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>   m += NR_END;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>   m -= nrl;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>   m[nrl]=(<span class="keywordtype">char</span> *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in cmatrix()"</span>);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> </div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> }</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="keywordtype">float</span> **matrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment">/* allocate a float matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> {</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>   <span class="keywordtype">float</span> **m;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> </div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>   m=(<span class="keywordtype">float</span> **) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>*));</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in matrix()"</span>);</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>   m += NR_END;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>   m -= nrl;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>   m[nrl]=(<span class="keywordtype">float</span> *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>));</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in matrix()"</span>);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> </div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> }</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="keywordtype">double</span> **dmatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">/* allocate a double matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> {</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>   <span class="keywordtype">double</span> **m;</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>   m=(<span class="keywordtype">double</span> **) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>*));</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in dmatrix()"</span>);</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>   m += NR_END;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>   m -= nrl;</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>    </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment">    printf("nrl=%d\n",nrl);</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment">    printf("size=%d\n",nrow*ncol+NR_END);</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>   m[nrl]=(<span class="keywordtype">double</span> *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>   <span class="comment">/* printf("allocate pointers to rows4\n"); */</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in dmatrix()"</span>);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> }</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="keywordtype">int</span> **imatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment">/* allocate a int matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> {</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>   <span class="keywordtype">int</span> **m;</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>   m=(<span class="keywordtype">int</span> **) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>*));</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in imatrix()"</span>);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>   m += NR_END;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>   m -= nrl;</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>   m[nrl]=(<span class="keywordtype">int</span> *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in imatrix()"</span>);</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> }</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> uint32_t **ulmatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="comment">/* allocate a int matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> {</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>   uint32_t **m;</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>   m=(uint32_t **) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>                   <span class="keyword">sizeof</span>(uint32_t*));</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in ulmatrix()"</span>);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>   m += NR_END;</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>   m -= nrl;</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>   m[nrl]=(uint32_t *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                       <span class="keyword">sizeof</span>(uint32_t));</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in ulmatrix()"</span>);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> }</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> int32_t **lmatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="comment">/* allocate a int32_t matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> {</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>   int32_t **m;</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>   m=(int32_t **) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(int32_t*));</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in lmatrix()"</span>);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>   m += NR_END;</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>   m -= nrl;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>   m[nrl]=(int32_t *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>                  <span class="keyword">sizeof</span>(int32_t));</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in lmatrix()"</span>);</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> </div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> }</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> frame_data **fdmatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="comment">/* allocate a frame_data matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> {</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>   frame_data **m;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>   m=(frame_data **) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(frame_data*));</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in fdmatrix()"</span>);</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>   m += NR_END;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>   m -= nrl;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>   m[nrl]=(frame_data *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                    <span class="keyword">sizeof</span>(frame_data));</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in fdmatrix()"</span>);</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> }</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> frame_mask **fmmatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> <span class="comment">/* allocate a frame_mask matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> {</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>   frame_mask **m;</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>   m=(frame_mask **) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(frame_mask*));</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in fmmatrix()"</span>);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>   m += NR_END;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>   m -= nrl;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>   m[nrl]=(frame_mask *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>                    <span class="keyword">sizeof</span>(frame_mask));</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in fmmatrix()"</span>);</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> }</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="keywordtype">float</span> **submatrix(<span class="keywordtype">float</span> **a, int32_t oldrl, int32_t oldrh, int32_t oldcl,</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>           int32_t newrl, int32_t newcl)</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> <span class="comment">/* point a submatrix [newrl..][newcl..] to a[oldrl..oldrh][oldcl..oldch] */</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> {</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>   int32_t i,j,nrow=oldrh-oldrl+1,ncol=oldcl-newcl;</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>   <span class="keywordtype">float</span> **m;</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>   <span class="comment">/* allocate array of pointers to rows */</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>   m=(<span class="keywordtype">float</span> **) calloc((<span class="keywordtype">size_t</span>) (nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>*));</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure in submatrix()"</span>);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>   m += NR_END;</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>   m -= newrl;</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>   <span class="comment">/* set pointers to rows */</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>   <span class="keywordflow">for</span>(i=oldrl,j=newrl;i<=oldrh;i++,j++) m[j]=a[i]+ncol;</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> }</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="keywordtype">float</span> **convert_matrix(<span class="keywordtype">float</span> *a, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="comment">/* allocate a float matrix m[nrl..nrh][ncl..nch] that points to the matrix</span></div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> <span class="comment">   declared in the standard C manner as a[nrow][ncol], where nrow=nrh-nrl+1</span></div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="comment">   and ncol=nch-ncl+1. The routine should be called with the address</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="comment">   &a[0][0] as the first argument. */</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> {</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>   <span class="keywordtype">float</span> **m;</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>   m=(<span class="keywordtype">float</span> **) calloc((<span class="keywordtype">size_t</span>) (nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>*));</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure in convert_matrix()"</span>);</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>   m += NR_END;</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>   m -= nrl;</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> </div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>   <span class="comment">/* set pointers to rows */</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>   m[nrl]=a-ncl;</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>   <span class="keywordflow">for</span>(i=1,j=nrl+1;i<nrow;i++,j++) m[j]=m[j-1]+ncol;</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> }</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> </div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> <span class="keywordtype">float</span> ***f3tensor(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> <span class="comment">/* allocate a float 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> {</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>   <span class="keywordtype">float</span> ***t;</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>   t=(<span class="keywordtype">float</span> ***) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>**));</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>   t += NR_END;</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>   t -= nrl;</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>   t[nrl]=(<span class="keywordtype">float</span> **) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>*));</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>   t[nrl][ncl]=(<span class="keywordtype">float</span> *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                    <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>));</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>   }</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> }</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> <span class="keywordtype">double</span> ***d3tensor(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> <span class="comment">/* allocate a float 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> {</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>   <span class="keywordtype">double</span> ***t;</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>   t=(<span class="keywordtype">double</span> ***) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>**));</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in d3tensor()"</span>);</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>   t += NR_END;</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>   t -= nrl;</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> </div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>   t[nrl]=(<span class="keywordtype">double</span> **) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>*));</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in d3tensor()"</span>);</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>   t[nrl][ncl]=(<span class="keywordtype">double</span> *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>                 <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in d3tensor()"</span>);</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> </div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>   }</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> }</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> </div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> frame_data ***fd3tensor(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="comment">/* allocate a frame_data 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> {</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>   frame_data ***t;</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>   t=(frame_data ***) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(frame_data**));</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in fd3tensor()"</span>);</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>   t += NR_END;</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>   t -= nrl;</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> </div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>   t[nrl]=(frame_data **) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>                 <span class="keyword">sizeof</span>(frame_data*));</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in fd3tensor()"</span>);</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> </div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>   t[nrl][ncl]=(frame_data *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>                     <span class="keyword">sizeof</span>(frame_data));</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in fd3tensor()"</span>);</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>   }</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> }</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> </div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> frame_mask ***fm3tensor(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> <span class="comment">/* allocate a frame_mask 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> {</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>   frame_mask ***t;</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>   t=(frame_mask ***) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(frame_mask**));</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>   t += NR_END;</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>   t -= nrl;</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> </div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>   t[nrl]=(frame_mask **) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                 <span class="keyword">sizeof</span>(frame_mask*));</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> </div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>   t[nrl][ncl]=(frame_mask *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>                     <span class="keyword">sizeof</span>(frame_mask));</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> </div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>   }</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> </div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> }</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> </div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> uint32_t ***ul3tensor(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> <span class="comment">/* allocate a frame_mask 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> {</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>   uint32_t ***t;</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>   t=(uint32_t ***) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                    <span class="keyword">sizeof</span>(uint32_t**));</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>   t += NR_END;</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>   t -= nrl;</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span> </div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>   t[nrl]=(uint32_t **) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>                        <span class="keyword">sizeof</span>(uint32_t*));</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> </div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>   t[nrl][ncl]=</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>     (uint32_t *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>                  <span class="keyword">sizeof</span>(uint32_t));</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span> </div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>   }</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> </div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> }</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> </div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> int32_t ***l3tensor(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> <span class="comment">/* allocate a int32_t 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> {</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>   int32_t ***t;</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>   t=(int32_t ***) calloc((<span class="keywordtype">size_t</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(int32_t**));</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>   t += NR_END;</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>   t -= nrl;</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span> </div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>   t[nrl]=(int32_t **) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>                   <span class="keyword">sizeof</span>(int32_t*));</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> </div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>   t[nrl][ncl]=(int32_t *) calloc((<span class="keywordtype">size_t</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>                   <span class="keyword">sizeof</span>(int32_t));</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> </div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>   }</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span> }</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> int32_t ****l4tensor(int32_t nal, int32_t nah, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> <span class="comment">/* allocate a int32_t 4tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> {</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>   int32_t i,j,k,na=nah-nal+1,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>   int32_t ****t;</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> </div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>   <span class="comment">/* allocate pointers to pointers to pointers to rows */</span></div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>   t=(int32_t ****) calloc((<span class="keywordtype">size_t</span>)(na+NR_END), <span class="keyword">sizeof</span>(int32_t***));</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in l4tensor()"</span>);</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>   t += NR_END;</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>   t -= nal;</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> </div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>   <span class="comment">/* allocate pointers to pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>   t[nal]=(int32_t ***) calloc((<span class="keywordtype">size_t</span>)(na*nrow+NR_END), </div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                    <span class="keyword">sizeof</span>(int32_t**));</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>   <span class="keywordflow">if</span> (!t[nal]) nrerror(<span class="stringliteral">"allocation failure 2 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>   t[nal] += NR_END;</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>   t[nal] -= nrl;</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span> </div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>   t[nal][nrl]=(int32_t **) calloc((<span class="keywordtype">size_t</span>)(na*nrow*ncol+NR_END), </div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>                    <span class="keyword">sizeof</span>(int32_t*));</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>   <span class="keywordflow">if</span> (!t[nal][nrl]) nrerror(<span class="stringliteral">"allocation failure 3 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>   t[nal][nrl] += NR_END;</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>   t[nal][nrl] -= ncl;</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> </div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>   t[nal][nrl][ncl]=</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>     (int32_t *) calloc((<span class="keywordtype">size_t</span>)(na*nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>             <span class="keyword">sizeof</span>(int32_t));</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>   <span class="keywordflow">if</span> (!t[nal][nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 4 in f3tensor()"</span>);</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>   t[nal][nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>   t[nal][nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>   <span class="keywordflow">for</span>(k=ncl+1;k<=nch;k++) t[nal][nrl][k]=t[nal][nrl][k-1]+ndep;</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>   <span class="keywordflow">for</span>(j=nrl+1;j<=nrh;j++) {</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>     t[nal][j] = t[nal][j-1]+ncol;</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>     t[nal][j][ncl] = t[nal][j-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>     <span class="keywordflow">for</span>(k=ncl+1;k<=nch;k++) t[nal][j][k]=t[nal][j][k-1]+ndep;</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>   }</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>   <span class="keywordflow">for</span>(i=nal+1;i<=nah;i++) {</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     t[i]=t[i-1]+nrow;</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     t[i][nrl] = t[i-1][nrl]+nrow*ncol;</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>     t[i][nrl][ncl] = t[i-1][nrl][ncl]+nrow*ncol*ndep;</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     <span class="keywordflow">for</span>(k=ncl+1;k<=nch;k++) t[i][nrl][k]=t[i][nrl][k-1]+ndep;</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>     <span class="keywordflow">for</span>(j=nrl+1;j<=nrh;j++) {</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>       t[i][j] = t[i][j-1]+ncol;</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>       t[i][j][ncl] = t[i][j-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>       <span class="keywordflow">for</span>(k=ncl+1;k<=nch;k++) t[i][j][k]=t[i][j][k-1]+ndep;</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     }</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>   }</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span> </div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> }</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span> <span class="keywordtype">void</span> free_vector(<span class="keywordtype">float</span> *v, int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> <span class="comment">/* free a float vector allocated with vector() */</span></div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> {</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>   nh=nh;</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> }</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> </div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> <span class="keywordtype">void</span> free_ivector(<span class="keywordtype">int</span> *v, int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> <span class="comment">/* free an int vector allocated with ivector() */</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> {</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>   nh=nh;</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> }</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> </div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span> <span class="keywordtype">void</span> free_uivector(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *v, int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> <span class="comment">/* free an unsigned int vector allocated with uivector() */</span></div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> {</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>   nh=nh;</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span> }</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span> </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span> <span class="keywordtype">void</span> free_cvector(<span class="keywordtype">char</span> *v, int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span> <span class="comment">/* free a char vector allocated with cvector() */</span></div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span> {</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>   nh=nh;</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> }</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> </div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span> <span class="keywordtype">void</span> free_ucvector(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *v, int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span> <span class="comment">/* free an unsigned char vector allocated with ucvector() */</span></div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> {</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>   nh=nh;</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span> }</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span> </div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span> <span class="keywordtype">void</span> free_lvector(int32_t *v, int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span> <span class="comment">/* free an uint32_t vector allocated with lvector() */</span></div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span> {</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>   nh=nh;</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> }</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span> </div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> <span class="keywordtype">void</span> free_ulvector(uint32_t *v, int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> <span class="comment">/* free an uint32_t vector allocated with ulvector() */</span></div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> {</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>   nh=nh;</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> }</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span> </div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> <span class="keywordtype">void</span> free_dvector(<span class="keywordtype">double</span> *v, int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> <span class="comment">/* free a double vector allocated with dvector() */</span></div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> {</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>   nh=nh;</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span> }</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span> <span class="keywordtype">void</span> free_fdvector(frame_data *v, int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> <span class="comment">/* free a double vector allocated with dvector() */</span></div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span> {</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>   nh=nh;</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> }</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span> <span class="keywordtype">void</span> free_fmvector(frame_mask *v, int32_t nl, int32_t nh)</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span> <span class="comment">/* free a double vector allocated with dvector() */</span></div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span> {</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>   nh=nh;</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span> }</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span> </div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span> <span class="keywordtype">void</span> free_matrix(<span class="keywordtype">float</span> **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> <span class="comment">/* free a float matrix allocated by matrix() */</span></div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span> { </div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>   nch=nch;  </div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>   nrh=nrh;</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span> }</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> </div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span> <span class="keywordtype">void</span> free_cmatrix(<span class="keywordtype">char</span> **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> <span class="comment">/* free a float matrix allocated by cmatrix() */</span></div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span> {</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>   nch=nch;  </div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>   nrh=nrh;</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span> }</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span> </div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> <span class="keywordtype">void</span> free_dmatrix(<span class="keywordtype">double</span> **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span> <span class="comment">/* free a double matrix allocated by dmatrix() */</span></div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span> {</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>   nch=nch;  </div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>   nrh=nrh;</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span> }</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> </div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span> <span class="keywordtype">void</span> free_imatrix(<span class="keywordtype">int</span> **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span> <span class="comment">/* free an int matrix allocated by imatrix() */</span></div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span> {</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>   nch=nch;  </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>   nrh=nrh;</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span> }</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span> </div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span> <span class="keywordtype">void</span> free_ulmatrix(uint32_t **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> <span class="comment">/* free an int matrix allocated by imatrix() */</span></div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span> {</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>   nch=nch;  </div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>   nrh=nrh;</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> }</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> </div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span> <span class="keywordtype">void</span> free_lmatrix(int32_t **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span> <span class="comment">/* free an int matrix allocated by imatrix() */</span></div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> {</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>   nch=nch;  </div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>   nrh=nrh;</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> }</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> </div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> <span class="keywordtype">void</span> free_fdmatrix(frame_data **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> <span class="comment">/* free an frame_data matrix allocated by imatrix() */</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> {</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>   nch=nch;  </div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>   nrh=nrh;</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> }</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span> <span class="keywordtype">void</span> free_fmmatrix(frame_mask **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span> <span class="comment">/* free an int matrix allocated by imatrix() */</span></div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span> {</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>   nch=nch;  </div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>   nrh=nrh;</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span> }</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span> </div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> <span class="keywordtype">void</span> free_submatrix(<span class="keywordtype">float</span> **b, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span> <span class="comment">/* free a submatrix allocated by submatrix() */</span></div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> {</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>   nch=nch;  </div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>   nrh=nrh;</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>   ncl=ncl;</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span> </div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>   free((FREE_ARG) (b+nrl-NR_END));</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span> }</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span> </div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span> <span class="keywordtype">void</span> free_convert_matrix(<span class="keywordtype">float</span> **b, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span> <span class="comment">/* free a matrix allocated by convert_matrix() */</span></div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span> {</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>   nch=nch;  </div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>   nrh=nrh;</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>   ncl=ncl;</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>   free((FREE_ARG) (b+nrl-NR_END));</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span> }</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span> </div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span> <span class="keywordtype">void</span> free_f3tensor(<span class="keywordtype">float</span> ***t, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch,</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>            int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span> <span class="comment">/* free a float f3tensor allocated by f3tensor() */</span></div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span> {</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>   nrh=nrh;</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>   nch=nch;  </div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>   ndh=ndh;</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span> </div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>   free((FREE_ARG) (t[nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>   free((FREE_ARG) (t[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>   free((FREE_ARG) (t+nrl-NR_END));</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span> }</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> </div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> <span class="keywordtype">void</span> free_d3tensor(<span class="keywordtype">double</span> ***t, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch,</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>            int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span> <span class="comment">/* free a double 3tensor allocated by d3tensor() */</span></div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> {</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>   nrh=nrh;</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>   nch=nch;  </div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>   ndh=ndh;</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> </div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>   free((FREE_ARG) (t[nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>   free((FREE_ARG) (t[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>   free((FREE_ARG) (t+nrl-NR_END));</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> }</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span> </div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span> <span class="keywordtype">void</span> free_fd3tensor(frame_data ***t, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch,</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>             int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span> <span class="comment">/* free a frame_data f3tensor allocated by f3tensor() */</span></div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> {</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>   nrh=nrh;</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>   nch=nch;  </div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>   ndh=ndh;</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>   free((FREE_ARG) (t[nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>   free((FREE_ARG) (t[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>   free((FREE_ARG) (t+nrl-NR_END));</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> }</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span> </div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span> <span class="keywordtype">void</span> free_fm3tensor(frame_mask ***t, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch,</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>             int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span> <span class="comment">/* free a float f3tensor allocated by f3tensor() */</span></div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> {</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>   nrh=nrh;</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>   nch=nch;  </div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>   ndh=ndh;</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>   free((FREE_ARG) (t[nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>   free((FREE_ARG) (t[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>   free((FREE_ARG) (t+nrl-NR_END));</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> }</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span> </div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span> <span class="keywordtype">void</span> free_ul3tensor(uint32_t ***t, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch,</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>             int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span> <span class="comment">/* free a float f3tensor allocated by f3tensor() */</span></div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span> {</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>   nrh=nrh;</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>   nch=nch;  </div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>   ndh=ndh;</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> </div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>   free((FREE_ARG) (t[nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>   free((FREE_ARG) (t[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>   free((FREE_ARG) (t+nrl-NR_END));</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> }</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span> </div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> <span class="keywordtype">void</span> free_l3tensor(int32_t ***t, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch,</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>            int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> <span class="comment">/* free a float f3tensor allocated by f3tensor() */</span></div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> {</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>   nrh=nrh;</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>   nch=nch;  </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>   ndh=ndh;</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>   free((FREE_ARG) (t[nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>   free((FREE_ARG) (t[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>   free((FREE_ARG) (t+nrl-NR_END));</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span> }</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> </div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> <span class="keywordtype">void</span> free_l4tensor(int32_t ****t, int32_t nal, int32_t nah, int32_t nrl, int32_t nrh, </div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>            int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh)</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> <span class="comment">/* free an integer l4tensor allocated by f3tensor() */</span></div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> {</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>   nah=nah;</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>   nrh=nrh;</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>   nch=nch;  </div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>   <span class="comment">//to remove comp warning: not used</span></div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>   ndh=ndh;</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> </div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>   free((FREE_ARG) (t[nal][nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>   free((FREE_ARG) (t[nal][nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>   free((FREE_ARG) (t[nal]+nrl-NR_END));</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>   free((FREE_ARG) (t+nal-NR_END));</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> }</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> </div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> <span class="keywordtype">void</span> matrix_product(<span class="keywordtype">double</span> **A, <span class="keywordtype">double</span> **B, <span class="keywordtype">double</span> **C, <span class="keywordtype">int</span> ra, <span class="keywordtype">int</span> ca, <span class="keywordtype">int</span> cb)</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> {</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>   <span class="comment">/* Put in C the matrix product of A and B (in this order please!) */</span> </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span> </div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>   <span class="keywordtype">int</span> k,j,m;</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>  </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>   C=dmatrix(1,ra,1,cb);</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>   <span class="keywordflow">if</span> (!C) </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>     {</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>       SCTPUT(<span class="stringliteral">"Error in matrix product"</span>);</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>     }</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>  </div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>   <span class="keywordflow">for</span> (j=1; j<=ra; j++)</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>     {</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>       <span class="keywordflow">for</span> (k=1; k<=cb; k++)</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>     {</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>       C[j][k]=0;</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>     }</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>     }</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>   </div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>   <span class="keywordflow">for</span> (j=1; j<=ra; j++)</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>     {</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>       <span class="keywordflow">for</span> (k=1; k<=cb; k++)</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>     {</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>       <span class="keywordflow">for</span> (m=1; m<=ca; m++)</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>         { </div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>           C[j][k] += A[j][m]*B[m][k];</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>         } </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>     }</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>     } </div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>   return ;</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> }</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span> <span class="keywordtype">void</span> matrix_sum(<span class="keywordtype">double</span> **A, <span class="keywordtype">double</span> **B, <span class="keywordtype">int</span> ra, <span class="keywordtype">int</span> ca)</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> {</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>  </div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>   <span class="comment">/* Put in A the matrix sum of A and B */</span> </div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>   <span class="keywordtype">int</span> k,j;</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>  </div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>   <span class="keywordflow">for</span> (j=1; j<=ra; j++)</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>     {</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>       <span class="keywordflow">for</span> (k=1; k<=ca; k++)</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>     {</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>       A[j][k] += B[j][k];</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>     }</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>     } </div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>   return ;</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> }</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> </div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> </div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> </div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> <span class="preprocessor">#else </span><span class="comment">/* ANSI */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span> <span class="preprocessor"></span><span class="comment">/* traditional - K&R */</span></div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> </div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> <span class="preprocessor">#include <flames_uves.h></span></div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> <span class="preprocessor">#define NR_END 1</span></div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> <span class="preprocessor"></span><span class="preprocessor">#define FREE_ARG char*</span></div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> <span class="keywordtype">void</span> nrerror(error_text)</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>      char error_text[];</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span> <span class="comment">/* Numerical Recipes standard error handler */</span></div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> {</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> <span class="comment">    ---------- Let's comment out the non-MIDAS compliant items----------</span></div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span> <span class="comment"> </span></div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> <span class="comment">    fprintf(stderr,"Numerical Recipes run-time error...\n");</span></div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> <span class="comment">    fprintf(stderr,"%s\n",error_text);</span></div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> <span class="comment">    fprintf(stderr,"...now exiting to system...\n");</span></div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span> <span class="comment">  */</span>    </div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>   <span class="keywordtype">void</span> exit();</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>   <span class="keywordtype">char</span> output[70];</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>  </div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>   SCTPUT(<span class="stringliteral">"Numerical Recipes run-time error...\n"</span>); </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>   sprintf(output, <span class="stringliteral">"%s\n"</span>, error_text);</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>   SCTPUT(output); </div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>   SCTPUT(<span class="stringliteral">"...now exiting to system...\n"</span>); </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>   SCSEPI();</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>   <span class="keywordflow">return</span> flames_midas_fail();</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> }</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> </div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> <span class="keywordtype">float</span> *vector(nl,nh)</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>      <span class="comment">/* allocate a float vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> {</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>   <span class="keywordtype">float</span> *v;</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> </div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>   v=(<span class="keywordtype">float</span> *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) (nh-nl+1+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>));</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in vector()"</span>);</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> }</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> </div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> <span class="keywordtype">int</span> *ivector(nl,nh)</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>      <span class="comment">/* allocate an int vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span> {</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>   <span class="keywordtype">int</span> *v;</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span> </div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>   v=(<span class="keywordtype">int</span> *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) (nh-nl+1+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in ivector()"</span>);</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> }</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> </div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *uivector(nl,nh)</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>      <span class="comment">/* allocate an int vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> {</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *v;</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> </div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>   v=(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) (nh-nl+1+NR_END), </div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>                 <span class="keyword">sizeof</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in uivector()"</span>);</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span> }</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> </div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span> <span class="keywordtype">char</span> *cvector(nl,nh)</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>      <span class="comment">/* allocate a char vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> {</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>   <span class="keywordtype">char</span> *v;</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span> </div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>   v=(<span class="keywordtype">char</span> *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) (nh-nl+1+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in cvector()"</span>);</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> }</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span> </div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span> <span class="keywordtype">char</span> *ucvector(nl,nh)</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>      <span class="comment">/* allocate an unsigned char vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> {</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *v;</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span> </div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>   v=(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) (nh-nl+1+NR_END), </div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>                  <span class="keyword">sizeof</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in ucvector()"</span>);</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> }</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span> </div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span> int32_t *lvector(nl,nh)</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>      <span class="comment">/* allocate an uint32_t vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span> {</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>   int32_t *v;</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span> </div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>   v=(int32_t *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) (nh-nl+1+NR_END), </div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>             <span class="keyword">sizeof</span>(int32_t));</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in lvector()"</span>);</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> }</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span> </div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span> uint32_t *ulvector(nl,nh)</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>      <span class="comment">/* allocate an uint32_t vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> {</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>   uint32_t *v;</div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span> </div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>   v=(uint32_t*) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) (nh-nl+1+NR_END), </div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>                 <span class="keyword">sizeof</span>(uint32_t));</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in ulvector()"</span>);</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span> }</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> </div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> <span class="keywordtype">double</span> *dvector(nl,nh)</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>      <span class="comment">/* allocate a double vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> {</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>   <span class="keywordtype">double</span> *v;</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> </div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>   v=(<span class="keywordtype">double</span> *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) (nh-nl+1+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in dvector()"</span>);</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> }</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> </div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> <span class="keywordtype">double</span> *fdvector(nl,nh)</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>      <span class="comment">/* allocate a frame_data vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> {</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>   frame_data *v;</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> </div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>   v=(frame_data *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) (nh-nl+1+NR_END), </div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>               <span class="keyword">sizeof</span>(frame_data));</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in dvector()"</span>);</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> }</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> </div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> <span class="keywordtype">double</span> *fmvector(nl,nh)</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>      <span class="comment">/* allocate a frame_mask vector with subscript range v[nl..nh] */</span></div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> {</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>   frame_mask *v;</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> </div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>   v=(frame_mask *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) (nh-nl+1+NR_END), </div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>               <span class="keyword">sizeof</span>(frame_mask));</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>   <span class="keywordflow">if</span> (!v) nrerror(<span class="stringliteral">"allocation failure in dvector()"</span>);</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>   <span class="keywordflow">return</span> v-nl+NR_END;</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span> }</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> </div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span> <span class="keywordtype">float</span> **matrix(nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>      <span class="comment">/* allocate a float matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> {</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>   <span class="keywordtype">float</span> **m;</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> </div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>   m=(<span class="keywordtype">float</span> **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>*));</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in matrix()"</span>);</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>   m += NR_END;</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>   m -= nrl;</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> </div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>   m[nrl]=(<span class="keywordtype">float</span> *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>               <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>));</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in matrix()"</span>);</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> </div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> </div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span> }</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> </div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span> <span class="keywordtype">char</span> **cmatrix(nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>      <span class="comment">/* allocate a float matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> {</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>   <span class="keywordtype">char</span> **m;</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span> </div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>   m=(<span class="keywordtype">char</span> **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>*));</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in cmatrix()"</span>);</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>   m += NR_END;</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>   m -= nrl;</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span> </div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>   m[nrl]=(<span class="keywordtype">char</span> *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>              <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in cmatrix()"</span>);</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> </div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span> </div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> }</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span> </div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> <span class="keywordtype">double</span> **dmatrix(nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>      <span class="comment">/* allocate a double matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span> {</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>   <span class="keywordtype">double</span> **m;</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span> </div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>   m=(<span class="keywordtype">double</span> **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>*));</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in dmatrix()"</span>);</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>   m += NR_END;</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>   m -= nrl;</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> </div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>   m[nrl]=(<span class="keywordtype">double</span> *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>                <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in dmatrix()"</span>);</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span> </div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> </div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span> }</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span> </div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span> <span class="keywordtype">int</span> **imatrix(nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>      <span class="comment">/* allocate a int matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span> {</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>   <span class="keywordtype">int</span> **m;</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span> </div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>   m=(<span class="keywordtype">int</span> **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>*));</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in imatrix()"</span>);</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>   m += NR_END;</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>   m -= nrl;</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span> </div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span> </div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>   m[nrl]=(<span class="keywordtype">int</span> *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in imatrix()"</span>);</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span> </div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span> </div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span> }</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span> </div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span> uint32_t **ulmatrix(nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>      <span class="comment">/* allocate a int matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span> {</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>   uint32_t **m;</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span> </div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>   m=(uint32_t **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), </div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>                   <span class="keyword">sizeof</span>(uint32_t*));</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in ulmatrix()"</span>);</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>   m += NR_END;</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>   m -= nrl;</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span> </div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span> </div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>   m[nrl]=(uint32_t *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>                       <span class="keyword">sizeof</span>(uint32_t));</div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in ulmatrix()"</span>);</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> </div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span> </div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> }</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span> </div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span> int32_t **lmatrix(nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>      <span class="comment">/* allocate a int matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span> {</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>   int32_t **m;</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span> </div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>   m=(int32_t **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(int32_t*));</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in lmatrix()"</span>);</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>   m += NR_END;</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>   m -= nrl;</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span> </div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span> </div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>   m[nrl]=(int32_t *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>                  <span class="keyword">sizeof</span>(int32_t));</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in lmatrix()"</span>);</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span> </div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span> </div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span> }</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span> </div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span> frame_data **fdmatrix(nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>      <span class="comment">/* allocate a frame_data matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span> {</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>   frame_data **m;</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span> </div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>   m=(frame_data **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), </div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>                <span class="keyword">sizeof</span>(frame_data*));</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in fdmatrix()"</span>);</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>   m += NR_END;</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>   m -= nrl;</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> </div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span> </div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>   m[nrl]=(frame_data *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>                    <span class="keyword">sizeof</span>(frame_data));</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in fdmatrix()"</span>);</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span> </div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> </div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> }</div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span> </div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span> frame_mask **fmmatrix(nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>      <span class="comment">/* allocate a frame_mask matrix with subscript range m[nrl..nrh][ncl..nch] */</span></div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span> {</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>   int32_t i, nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>   frame_mask **m;</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span> </div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>   m=(frame_mask **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), </div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>                <span class="keyword">sizeof</span>(frame_mask*));</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure 1 in fmmatrix()"</span>);</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>   m += NR_END;</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>   m -= nrl;</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span> </div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span> </div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>   m[nrl]=(frame_mask *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>                    <span class="keyword">sizeof</span>(frame_mask));</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>   <span class="keywordflow">if</span> (!m[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in fmmatrix()"</span>);</div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>   m[nrl] += NR_END;</div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>   m[nrl] -= ncl;</div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> </div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> </div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> }</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> </div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span> <span class="keywordtype">float</span> **submatrix(a,oldrl,oldrh,oldcl,oldch,newrl,newcl)</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>      float **a;</div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>      int32_t newcl,newrl,oldch,oldcl,oldrh,oldrl;</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>      <span class="comment">/* point a submatrix [newrl..][newcl..] to a[oldrl..oldrh][oldcl..oldch] */</span></div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span> {</div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>   int32_t i,j,nrow=oldrh-oldrl+1,ncol=oldcl-newcl;</div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>   <span class="keywordtype">float</span> **m;</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span> </div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>   <span class="comment">/* allocate array of pointers to rows */</span></div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>   m=(<span class="keywordtype">float</span> **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) (nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>*));</div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>   <span class="keywordflow">if</span> (!m) nrerror(<span class="stringliteral">"allocation failure in submatrix()"</span>);</div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>   m += NR_END;</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>   m -= newrl;</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span> </div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>   <span class="comment">/* set pointers to rows */</span></div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>   <span class="keywordflow">for</span>(i=oldrl,j=newrl;i<=oldrh;i++,j++) m[j]=a[i]+ncol;</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span> </div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span> }</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span> </div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span> <span class="keywordtype">float</span> **convert_matrix(a,nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>      float *a;</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>      <span class="comment">/* allocate a float matrix m[nrl..nrh][ncl..nch] that points to the matrix</span></div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span> <span class="comment">    declared in the standard C manner as a[nrow][ncol], where nrow=nrh-nrl+1</span></div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span> <span class="comment">    and ncol=nch-ncl+1. The routine should be called with the address</span></div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span> <span class="comment">    &a[0][0] as the first argument. */</span></div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span> {</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1;</div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>   <span class="keywordtype">float</span> **m;</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span> </div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>   <span class="comment">/* allocate pointers to rows */</span></div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>   m=(<span class="keywordtype">float</span> **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) (nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>*));</div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>   <span class="keywordflow">if</span> (!m)    nrerror(<span class="stringliteral">"allocation failure in convert_matrix()"</span>);</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>   m += NR_END;</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>   m -= nrl;</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span> </div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>   <span class="comment">/* set pointers to rows */</span></div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>   m[nrl]=a-ncl;</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>   <span class="keywordflow">for</span>(i=1,j=nrl+1;i<nrow;i++,j++) m[j]=m[j-1]+ncol;</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>   <span class="keywordflow">return</span> m;</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span> }</div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span> </div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span> <span class="keywordtype">float</span> ***f3tensor(nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>      <span class="comment">/* allocate a float 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span> {</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>   <span class="keywordtype">float</span> ***t;</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> </div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>   t=(<span class="keywordtype">float</span> ***) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>**));</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>   t += NR_END;</div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>   t -= nrl;</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span> </div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>   t[nrl]=(<span class="keywordtype">float</span> **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>                <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>*));</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span> </div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>   t[nrl][ncl]=(<span class="keywordtype">float</span> *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>                    <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>));</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span> </div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>   }</div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span> </div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span> }</div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span> </div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span> frame_data ***fd3tensor(nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>      <span class="comment">/* allocate a frame_data 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span> {</div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>   frame_data ***t;</div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span> </div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>   t=(frame_data ***) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), </div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>                 <span class="keyword">sizeof</span>(frame_data**));</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in fd3tensor()"</span>);</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>   t += NR_END;</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>   t -= nrl;</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span> </div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>   t[nrl]=(frame_data **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>                 <span class="keyword">sizeof</span>(frame_data*));</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in fd3tensor()"</span>);</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span> </div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>   t[nrl][ncl]=</div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>     (frame_data *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>               <span class="keyword">sizeof</span>(frame_data));</div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in fd3tensor()"</span>);</div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span> </div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>   }</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span> </div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span> }</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span> </div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span> <span class="keywordtype">double</span> ***d3tensor(nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>      <span class="comment">/* allocate a double 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span> {</div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>   <span class="keywordtype">double</span> ***t;</div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span> </div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>   t=(<span class="keywordtype">double</span> ***) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>**));</div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in d3tensor()"</span>);</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>   t += NR_END;</div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>   t -= nrl;</div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span> </div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>   t[nrl]=(<span class="keywordtype">double</span> **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>                 <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>*));</div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in d3tensor()"</span>);</div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span> </div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>   t[nrl][ncl]=(<span class="keywordtype">double</span> *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>                 <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in d3tensor()"</span>);</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span> </div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>   }</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span> </div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span> }</div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span> </div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span> frame_data ***fd3tensor(nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>      <span class="comment">/* allocate a frame_data 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span> {</div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>   frame_data ***t;</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span> </div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>   t=(frame_data ***) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), </div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>                 <span class="keyword">sizeof</span>(frame_data**));</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>   t += NR_END;</div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>   t -= nrl;</div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span> </div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>   t[nrl]=(frame_data **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>                 <span class="keyword">sizeof</span>(frame_data*));</div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span> </div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>   t[nrl][ncl]=</div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>     (frame_data *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>               <span class="keyword">sizeof</span>(frame_data));</div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span> </div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>   }</div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span> </div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span> }</div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span> </div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span> frame_mask ***fm3tensor(nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>      <span class="comment">/* allocate a frame_mask 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span> {</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>   frame_mask ***t;</div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span> </div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>   t=(frame_mask ***) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), </div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>                 <span class="keyword">sizeof</span>(frame_mask**));</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>   t += NR_END;</div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>   t -= nrl;</div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span> </div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>   t[nrl]=(frame_mask **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>                 <span class="keyword">sizeof</span>(frame_mask*));</div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span> </div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>   t[nrl][ncl]=</div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>     (frame_mask *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>               <span class="keyword">sizeof</span>(frame_mask));</div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span> </div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>   }</div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span> </div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span> }</div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span> </div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span> uint32_t ***ul3tensor(nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>      <span class="comment">/* allocate a frame_mask 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span> {</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>   uint32_t ***t;</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span> </div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>   t=(uint32_t ***) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), </div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>                    <span class="keyword">sizeof</span>(uint32_t**));</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>   t += NR_END;</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>   t -= nrl;</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span> </div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>   t[nrl]=(uint32_t **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>                        <span class="keyword">sizeof</span>(uint32_t*));</div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span> </div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>   t[nrl][ncl]=</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>     (uint32_t *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>                  <span class="keyword">sizeof</span>(uint32_t));</div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span> </div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>   }</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span> </div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span> }</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span> </div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span> int32_t ***l3tensor(nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>      <span class="comment">/* allocate a int32_t 3tensor with range t[nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span> {</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>   int32_t i,j,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>   int32_t ***t;</div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span> </div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>   t=(int32_t ***) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow+NR_END), </div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>               <span class="keyword">sizeof</span>(int32_t**));</div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>   t += NR_END;</div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>   t -= nrl;</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span> </div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>   t[nrl]=(int32_t **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>                   <span class="keyword">sizeof</span>(int32_t*));</div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>   t[nrl] += NR_END;</div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>   t[nrl] -= ncl;</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span> </div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>   t[nrl][ncl]=(int32_t *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>                   <span class="keyword">sizeof</span>(int32_t));</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>   <span class="keywordflow">if</span> (!t[nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 3 in f3tensor()"</span>);</div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>   t[nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>   t[nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span> </div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>   <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[nrl][j]=t[nrl][j-1]+ndep;</div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>   <span class="keywordflow">for</span>(i=nrl+1;i<=nrh;i++) {</div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>     t[i]=t[i-1]+ncol;</div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>     t[i][ncl]=t[i-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>     <span class="keywordflow">for</span>(j=ncl+1;j<=nch;j++) t[i][j]=t[i][j-1]+ndep;</div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>   }</div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span> </div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span> }</div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span> </div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span> int32_t ***l4tensor(nal,nah,nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl,nah,nal;</div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>      <span class="comment">/* allocate a int32_t 4tensor with range </span></div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span> <span class="comment">    t[nal..nah][nrl..nrh][ncl..nch][ndl..ndh] */</span></div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span> {</div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>   int32_t i,j,k,na=nah-nal+1,nrow=nrh-nrl+1,ncol=nch-ncl+1,ndep=ndh-ndl+1;</div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>   int32_t ****t;</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span> </div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>   <span class="comment">/* allocate pointers to pointers to rows */</span></div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>   t=(int32_t ****) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(na+NR_END), </div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>                <span class="keyword">sizeof</span>(int32_t***));</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>   <span class="keywordflow">if</span> (!t) nrerror(<span class="stringliteral">"allocation failure 1 in l4tensor()"</span>);</div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>   t += NR_END;</div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>   t -= nal;</div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span> </div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>   <span class="comment">/* allocate pointers to pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>   t[nal]=(int32_t ***) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(na*nrow+NR_END), </div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>                    <span class="keyword">sizeof</span>(int32_t**));</div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>   <span class="keywordflow">if</span> (!t[nrl]) nrerror(<span class="stringliteral">"allocation failure 2 in l4tensor()"</span>);</div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>   t[nal] += NR_END;</div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>   t[nal] -= nrl;</div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span> </div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>   <span class="comment">/* allocate pointers to rows and set pointers to them */</span></div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>   t[nal][nrl]=(int32_t **) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(na*nrow*ncol+NR_END), </div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>                    <span class="keyword">sizeof</span>(int32_t*));</div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>   <span class="keywordflow">if</span> (!t[nal][nrl]) nrerror(<span class="stringliteral">"allocation failure 3 in l4tensor()"</span>);</div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>   t[nal][nrl] += NR_END;</div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>   t[nal][nrl] -= ncl;</div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span> </div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>   <span class="comment">/* allocate rows and set pointers to them */</span></div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>   t[nal][nrl][ncl]=</div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>     (int32_t *) calloc((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(na*nrow*ncol*ndep+NR_END), </div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>             <span class="keyword">sizeof</span>(int32_t));</div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>   <span class="keywordflow">if</span> (!t[nal][nrl][ncl]) nrerror(<span class="stringliteral">"allocation failure 4 in l4tensor()"</span>);</div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>   t[nal][nrl][ncl] += NR_END;</div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>   t[nal][nrl][ncl] -= ndl;</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span> </div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>   <span class="keywordflow">for</span>(k=ncl+1;k<=nch;k++) t[nal][nrl][k]=t[nal][nrl][k-1]+ndep;</div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>   <span class="keywordflow">for</span>(j=nrl+1;j<=nrh;j++) {</div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>     t[nal][j] = t[nal][j-1]+ncol;</div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>     t[nal][j][ncl] = t[nal][j-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>     <span class="keywordflow">for</span>(k=ncl+1;k<=nch;k++) t[nal][j][k]=t[nal][j][k-1]+ndep;</div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>   }</div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>   <span class="keywordflow">for</span>(i=nal+1;i<=nah;i++) {</div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>     t[i]=t[i-1]+nrow;</div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>     t[i][nrl] = t[i-1][nrl]+nrow*ncol;</div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>     t[i][nrl][ncl] = t[i-1][nrl][ncl]+nrow*ncol*ndep;</div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>     <span class="keywordflow">for</span>(k=ncl+1;k<=nch;k++) t[i][nrl][k]=t[i][nrl][k-1]+ndep;</div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>     <span class="keywordflow">for</span>(j=nrl+1;j<=nrh;j++) {</div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>       t[i][j] = t[i][j-1]+ncol;</div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>       t[i][j][ncl] = t[i][j-1][ncl]+ncol*ndep;</div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>       <span class="keywordflow">for</span>(k=ncl+1;k<=nch;k++) t[i][j][k]=t[i][j][k-1]+ndep;</div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>     }</div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>   }</div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span> </div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>   <span class="comment">/* return pointer to array of pointers to rows */</span></div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>   <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span> }</div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span> </div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span> <span class="keywordtype">void</span> free_vector(v,nl,nh)</div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>      float *v;</div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>      <span class="comment">/* free a float vector allocated with vector() */</span></div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span> {</div>
-<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span> }</div>
-<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span> </div>
-<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span> <span class="keywordtype">void</span> free_ivector(v,nl,nh)</div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>      int *v;</div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>      <span class="comment">/* free an int vector allocated with ivector() */</span></div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span> {</div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span> }</div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span> </div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span> <span class="keywordtype">void</span> free_uivector(v,nl,nh)</div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>      unsigned <span class="keywordtype">int</span> *v;</div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>      <span class="comment">/* free an int vector allocated with uivector() */</span></div>
-<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span> {</div>
-<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span> }</div>
-<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span> </div>
-<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span> <span class="keywordtype">void</span> free_cvector(v,nl,nh)</div>
-<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>      <span class="keywordtype">char</span> *v;</div>
-<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>      <span class="comment">/* free a char vector allocated with cvector() */</span></div>
-<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span> {</div>
-<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span> }</div>
-<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span> </div>
-<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span> <span class="keywordtype">void</span> free_ucvector(v,nl,nh)</div>
-<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>      <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *v;</div>
-<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>      <span class="comment">/* free a char vector allocated with ucvector() */</span></div>
-<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span> {</div>
-<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span> }</div>
-<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span> </div>
-<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span> <span class="keywordtype">void</span> free_lvector(v,nl,nh)</div>
-<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>      int32_t *v;</div>
-<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>      <span class="comment">/* free an uint32_t vector allocated with lvector() */</span></div>
-<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span> {</div>
-<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span> }</div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span> </div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span> <span class="keywordtype">void</span> free_ulvector(v,nl,nh)</div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>      uint32_t *v;</div>
-<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>      <span class="comment">/* free an uint32_t vector allocated with ulvector() */</span></div>
-<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span> {</div>
-<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span> }</div>
-<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span> </div>
-<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span> <span class="keywordtype">void</span> free_dvector(v,nl,nh)</div>
-<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>      double *v;</div>
-<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>      <span class="comment">/* free a double vector allocated with dvector() */</span></div>
-<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span> {</div>
-<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span> }</div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span> </div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span> <span class="keywordtype">void</span> free_fdvector(v,nl,nh)</div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>      frame_data *v;</div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>      <span class="comment">/* free a frame_data vector allocated with dvector() */</span></div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span> {</div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span> }</div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span> </div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span> <span class="keywordtype">void</span> free_fmvector(v,nl,nh)</div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>      frame_mask *v;</div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>      int32_t nh,nl;</div>
-<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>      <span class="comment">/* free a double vector allocated with dvector() */</span></div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span> {</div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>   free((FREE_ARG) (v+nl-NR_END));</div>
-<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span> }</div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span> </div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span> <span class="keywordtype">void</span> free_matrix(m,nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>      float **m;</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>      <span class="comment">/* free a float matrix allocated by matrix() */</span></div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span> {</div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span> }</div>
-<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span> </div>
-<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span> <span class="keywordtype">void</span> free_cmatrix(m,nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>      char **m;</div>
-<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>      <span class="comment">/* free a char matrix allocated by cmatrix() */</span></div>
-<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span> {</div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span> }</div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span> </div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span> <span class="keywordtype">void</span> free_dmatrix(m,nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>      double **m;</div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>      <span class="comment">/* free a double matrix allocated by dmatrix() */</span></div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span> {</div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span> }</div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span> </div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span> <span class="keywordtype">void</span> free_ulmatrix(m,nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>      uint32_t **m;</div>
-<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>      <span class="comment">/* free an int matrix allocated by imatrix() */</span></div>
-<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span> {</div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span> }</div>
-<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span> </div>
-<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span> <span class="keywordtype">void</span> free_lmatrix(m,nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>      int32_t **m;</div>
-<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span>      <span class="comment">/* free an int matrix allocated by imatrix() */</span></div>
-<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span> {</div>
-<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span> }</div>
-<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span> </div>
-<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span> <span class="keywordtype">void</span> free_imatrix(m,nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>      int **m;</div>
-<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>      <span class="comment">/* free an int matrix allocated by imatrix() */</span></div>
-<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span> {</div>
-<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span> }</div>
-<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span> </div>
-<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span> <span class="keywordtype">void</span> free_fdmatrix(m,nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>      frame_data **m;</div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>      <span class="comment">/* free a frame_data matrix allocated by imatrix() */</span></div>
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span> {</div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span> }</div>
-<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span> </div>
-<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span> <span class="keywordtype">void</span> free_fmmatrix(m,nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>      frame_mask **m;</div>
-<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>      <span class="comment">/* free a frame_mask matrix allocated by imatrix() */</span></div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span> {</div>
-<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>   free((FREE_ARG) (m[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>   free((FREE_ARG) (m+nrl-NR_END));</div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span> }</div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span> </div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span> <span class="keywordtype">void</span> free_submatrix(b,nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>      float **b;</div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>      <span class="comment">/* free a submatrix allocated by submatrix() */</span></div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span> {</div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>   free((FREE_ARG) (b+nrl-NR_END));</div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span> }</div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span> </div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span> <span class="keywordtype">void</span> free_convert_matrix(b,nrl,nrh,ncl,nch)</div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>      float **b;</div>
-<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>      int32_t nch,ncl,nrh,nrl;</div>
-<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>      <span class="comment">/* free a matrix allocated by convert_matrix() */</span></div>
-<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span> {</div>
-<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>   free((FREE_ARG) (b+nrl-NR_END));</div>
-<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span> }</div>
-<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span> </div>
-<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span> <span class="keywordtype">void</span> free_f3tensor(t,nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>      float ***t;</div>
-<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>      <span class="comment">/* free a float f3tensor allocated by f3tensor() */</span></div>
-<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span> {</div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>   free((FREE_ARG) (t[nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>   free((FREE_ARG) (t[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>   free((FREE_ARG) (t+nrl-NR_END));</div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span> }</div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span> </div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span> <span class="keywordtype">void</span> free_d3tensor(t,nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>      double ***t;</div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>      <span class="comment">/* free a double 3tensor allocated by d3tensor() */</span></div>
-<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span> {</div>
-<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>   free((FREE_ARG) (t[nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>   free((FREE_ARG) (t[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>   free((FREE_ARG) (t+nrl-NR_END));</div>
-<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span> }</div>
-<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span> </div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span> <span class="keywordtype">void</span> free_fd3tensor(t,nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>      frame_data ***t;</div>
-<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>      <span class="comment">/* free a frame_data f3tensor allocated by f3tensor() */</span></div>
-<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span> {</div>
-<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>   free((FREE_ARG) (t[nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>   free((FREE_ARG) (t[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>   free((FREE_ARG) (t+nrl-NR_END));</div>
-<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span> }</div>
-<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span> </div>
-<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span> <span class="keywordtype">void</span> free_fm3tensor(t,nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>      frame_mask ***t;</div>
-<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>      <span class="comment">/* free a float f3tensor allocated by f3tensor() */</span></div>
-<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span> {</div>
-<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>   free((FREE_ARG) (t[nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>   free((FREE_ARG) (t[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>   free((FREE_ARG) (t+nrl-NR_END));</div>
-<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span> }</div>
-<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span> </div>
-<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span> <span class="keywordtype">void</span> free_ul3tensor(t,nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>      uint32_t ***t;</div>
-<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>      <span class="comment">/* free a float f3tensor allocated by f3tensor() */</span></div>
-<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span> {</div>
-<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>   free((FREE_ARG) (t[nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span>   free((FREE_ARG) (t[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>   free((FREE_ARG) (t+nrl-NR_END));</div>
-<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span> }</div>
-<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span> </div>
-<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span> <span class="keywordtype">void</span> free_l3tensor(t,nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>      int32_t ***t;</div>
-<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl;</div>
-<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>      <span class="comment">/* free a float f3tensor allocated by f3tensor() */</span></div>
-<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span> {</div>
-<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span>   free((FREE_ARG) (t[nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>   free((FREE_ARG) (t[nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>   free((FREE_ARG) (t+nrl-NR_END));</div>
-<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span> }</div>
-<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span> </div>
-<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span> <span class="keywordtype">void</span> free_l4tensor(t,nal,nah,nrl,nrh,ncl,nch,ndl,ndh)</div>
-<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>      int32_t ***t;</div>
-<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>      int32_t nch,ncl,ndh,ndl,nrh,nrl,nah,nal;</div>
-<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>      <span class="comment">/* free a int32_t l4tensor allocated by l4tensor() */</span></div>
-<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span> {</div>
-<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>   free((FREE_ARG) (t[nal][nrl][ncl]+ndl-NR_END));</div>
-<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>   free((FREE_ARG) (t[nal][nrl]+ncl-NR_END));</div>
-<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>   free((FREE_ARG) (t[nal]+nrl-NR_END));</div>
-<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>   free((FREE_ARG) (t+nal-NR_END));</div>
-<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span> }</div>
-<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span> </div>
-<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span> </div>
-<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span> matrix_product(<span class="keywordtype">double</span>** A, <span class="keywordtype">double</span>** B, <span class="keywordtype">double</span>** C, <span class="keywordtype">int</span> ra, <span class="keywordtype">int</span> ca, <span class="keywordtype">int</span> cb)</div>
-<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span> {</div>
-<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>  </div>
-<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>   <span class="keywordtype">int</span> k=0,j=0,m=0;</div>
-<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span> </div>
-<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>   <span class="keywordflow">if</span> (C==0)</div>
-<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>     {</div>
-<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>       C=dmatrix(1,ra,1,cb);</div>
-<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>     }  </div>
-<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span> </div>
-<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>   <span class="keywordflow">for</span> (j=1; j<=ra; j++)</div>
-<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>     {</div>
-<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>       <span class="keywordflow">for</span> (k=1; k<=cb; k++)</div>
-<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>     {</div>
-<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>       C[j][k]=0;</div>
-<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>     }</div>
-<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>     }</div>
-<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>   </div>
-<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>   <span class="keywordflow">for</span> (j=1; j<=ra; j++)</div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>     {</div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>       <span class="keywordflow">for</span> (k=1; k<=cb; k++)</div>
-<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>     {</div>
-<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>       <span class="keywordflow">for</span> (m=1; m<=ca; m++)</div>
-<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>         { </div>
-<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>           C[j][k] += A[j][m]*B[m][k];</div>
-<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>         } </div>
-<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>     }</div>
-<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>     } </div>
-<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>   return ;</div>
-<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span> }</div>
-<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span> </div>
-<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span> matrix_sum(<span class="keywordtype">double</span>** A, <span class="keywordtype">double</span>** B, <span class="keywordtype">int</span> ra, <span class="keywordtype">int</span> ca)</div>
-<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span> {</div>
-<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>  </div>
-<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>   <span class="keywordtype">int</span> k=0,j=0;</div>
-<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>  </div>
-<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>   <span class="keywordflow">for</span> (j=1; j<=ra; j++)</div>
-<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>     {</div>
-<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>       <span class="keywordflow">for</span> (k=1; k<=ca; k++)</div>
-<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>     {</div>
-<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>       A[j][k] += B[j][k];</div>
-<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>     }</div>
-<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>     } </div>
-<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>   return ;</div>
-<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span> }</div>
-<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span> </div>
-<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span> </div>
-<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span> <span class="preprocessor">#endif </span><span class="comment">/* ANSI */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__newmatrix_8h_source.html b/html/flames__newmatrix_8h_source.html
deleted file mode 100644
index d3f99f7..0000000
--- a/html/flames__newmatrix_8h_source.html
+++ /dev/null
@@ -1,199 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_newmatrix.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_newmatrix.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-11-19 09:16:16 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.9 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.8  2010/09/24 09:32:02  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2009/04/14 07:01:07  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * added to CVS (moded from flames tree)</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.8  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.7  2007/06/06 07:22:20  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Changed return type of nrerror()</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.6  2007/05/07 06:52:17  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * fixed compilation warnings</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.5  2007/01/10 11:08:34  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Don't define DRS_USE_ORDEF</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.4  2006/10/17 12:33:42  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Moved FLAMES source to flames directory</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.4  2006/10/12 11:59:23  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Conform to source code template</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.4  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.3  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.2  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#ifndef FLAMES_NEWMATRIX_H</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_NEWMATRIX_H</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <flames_uves.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keywordtype">void</span> nrerror(<span class="keyword">const</span> <span class="keywordtype">char</span>* error_text);</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="keywordtype">float</span> *vector(int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="keywordtype">int</span> *ivector(int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *uivector(int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keywordtype">char</span> *cvector(int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *ucvector(int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> int32_t *lvector(int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> uint32_t *ulvector(int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="keywordtype">double</span> *dvector(int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> frame_data *fdvector(int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> frame_mask *fmvector(int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="keywordtype">float</span> **matrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="keywordtype">char</span> **cmatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="keywordtype">double</span> **dmatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="keywordtype">int</span> **imatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> uint32_t **ulmatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> int32_t **lmatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> frame_data **fdmatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> frame_mask **fmmatrix(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="keywordtype">float</span> **submatrix(<span class="keywordtype">float</span> **a, int32_t oldrl, int32_t oldrh, int32_t oldcl,</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>     int32_t newrl, int32_t newcl);</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="keywordtype">float</span> **convert_matrix(<span class="keywordtype">float</span> *a, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="keywordtype">float</span> ***f3tensor(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="keywordtype">double</span> ***d3tensor(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> frame_data ***fd3tensor(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>             int32_t ndh);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> frame_mask ***fm3tensor(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>             int32_t ndh);</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> uint32_t ***ul3tensor(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>                    int32_t ndl, int32_t ndh);</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> int32_t ***l3tensor(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>              int32_t ndh);</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> int32_t ****l4tensor(int32_t nal, int32_t nah, int32_t nrl, int32_t nrh, int32_t ncl, </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>               int32_t nch, int32_t ndl, int32_t ndh);</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="keywordtype">void</span> free_vector(<span class="keywordtype">float</span> *v, int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="keywordtype">void</span> free_ivector(<span class="keywordtype">int</span> *v, int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="keywordtype">void</span> free_uivector(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *v, int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="keywordtype">void</span> free_cvector(<span class="keywordtype">char</span> *v, int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="keywordtype">void</span> free_ucvector(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *v, int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="keywordtype">void</span> free_lvector(int32_t *v, int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="keywordtype">void</span> free_ulvector(uint32_t *v, int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="keywordtype">void</span> free_dvector(<span class="keywordtype">double</span> *v, int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="keywordtype">void</span> free_fdvector(frame_data *v, int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="keywordtype">void</span> free_fmvector(frame_mask *v, int32_t nl, int32_t nh);</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="keywordtype">void</span> free_matrix(<span class="keywordtype">float</span> **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="keywordtype">void</span> free_cmatrix(<span class="keywordtype">char</span> **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="keywordtype">void</span> free_dmatrix(<span class="keywordtype">double</span> **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="keywordtype">void</span> free_imatrix(<span class="keywordtype">int</span> **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="keywordtype">void</span> free_ulmatrix(uint32_t **m, int32_t nrl, int32_t nrh, int32_t ncl, </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>            int32_t nch);</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="keywordtype">void</span> free_lmatrix(int32_t **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="keywordtype">void</span> free_fdmatrix(frame_data **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="keywordtype">void</span> free_fmmatrix(frame_mask **m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="keywordtype">void</span> free_submatrix(<span class="keywordtype">float</span> **b, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="keywordtype">void</span> free_convert_matrix(<span class="keywordtype">float</span> **b, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch);</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="keywordtype">void</span> free_f3tensor(<span class="keywordtype">float</span> ***t, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch,</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     int32_t ndl, int32_t ndh);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="keywordtype">void</span> free_d3tensor(<span class="keywordtype">double</span> ***t, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch,</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     int32_t ndl, int32_t ndh);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="keywordtype">void</span> free_fd3tensor(frame_data ***t, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch,</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     int32_t ndl, int32_t ndh);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="keywordtype">void</span> free_fm3tensor(frame_mask ***t, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch,</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     int32_t ndl, int32_t ndh);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="keywordtype">void</span> free_ul3tensor(uint32_t ***t, int32_t nrl, int32_t nrh, int32_t ncl, </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>             int32_t nch,</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     int32_t ndl, int32_t ndh);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="keywordtype">void</span> free_l3tensor(int32_t ***t, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch,</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     int32_t ndl, int32_t ndh);</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="keywordtype">void</span> free_l4tensor(int32_t ****t, int32_t nal, int32_t nah, int32_t nrl, int32_t nrh, </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>            int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh);</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="keywordtype">void</span> matrix_product(<span class="keywordtype">double</span> **, <span class="keywordtype">double</span> **, <span class="keywordtype">double</span> **, <span class="keywordtype">int</span> , <span class="keywordtype">int</span> , <span class="keywordtype">int</span> );</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="keywordtype">void</span> matrix_sum(<span class="keywordtype">double</span> **, <span class="keywordtype">double</span> **, <span class="keywordtype">int</span> , <span class="keywordtype">int</span> );</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__obs__redchain_8c_source.html b/html/flames__obs__redchain_8c_source.html
deleted file mode 100644
index 203b2e1..0000000
--- a/html/flames__obs__redchain_8c_source.html
+++ /dev/null
@@ -1,156 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_obs_redchain.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_obs_redchain.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: jmlarsen $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-26 11:49:00 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.1 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.3  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.2  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.1  2006/10/19 08:19:06  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added FLAMES flames_obs_redchain template</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#include <flames.h></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#include <flames_utils.h></span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> {</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     {</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"I am flames_obs_redchain version %d, but I am linking "</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     }</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != flames_get_version_binary())</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     {</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>               <span class="stringliteral">"I am flames_obs_redchain version %d, but I am linking "</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>               <span class="stringliteral">"against FLAMES library version %d. "</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>               UVES_BINARY_VERSION, flames_get_version_binary());</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     }</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     <span class="keywordflow">return</span> flames_obs_redchain_get_info(list);</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__obs__scired_8c_source.html b/html/flames__obs__scired_8c_source.html
deleted file mode 100644
index 0cb906a..0000000
--- a/html/flames__obs__scired_8c_source.html
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_obs_scired.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_obs_scired.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.7  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.1  2006/10/19 08:19:06  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added FLAMES flames_obs_scired template</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <flames.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <flames_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> {</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     {</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"I am flames_obs_scired version %d, but I am linking "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     }</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != flames_get_version_binary())</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     {</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>               <span class="stringliteral">"I am flames_obs_scired version %d, but I am linking "</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>               <span class="stringliteral">"against FLAMES library version %d. "</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>               UVES_BINARY_VERSION, flames_get_version_binary());</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     }</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="keywordflow">return</span> flames_obs_scired_get_info(list);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__prepbkg_8c_source.html b/html/flames__prepbkg_8c_source.html
deleted file mode 100644
index 6964e41..0000000
--- a/html/flames__prepbkg_8c_source.html
+++ /dev/null
@@ -1,136 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_prepbkg.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_prepbkg.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2006/10/12 11:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Added FLAMES modules</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> {</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     {</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>               <span class="stringliteral">"I am flames_prepbkg version %d, but I am linking "</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"of UVES and try again."</span>,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     }</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     <span class="keywordflow">return</span> flames_prepbkg_get_info(list);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__prepfibreff_8c_source.html b/html/flames__prepfibreff_8c_source.html
deleted file mode 100644
index 2d75608..0000000
--- a/html/flames__prepfibreff_8c_source.html
+++ /dev/null
@@ -1,136 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_prepfibreff.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_prepfibreff.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2006/10/12 11:35:43  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Added FLAMES modules</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> {</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     {</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>               <span class="stringliteral">"I am flames_prepfibreff version %d, but I am linking "</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"of UVES and try again."</span>,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     }</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     <span class="keywordflow">return</span> flames_prepfibreff_get_info(list);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__prepnorm_8c_source.html b/html/flames__prepnorm_8c_source.html
deleted file mode 100644
index 1dfbbba..0000000
--- a/html/flames__prepnorm_8c_source.html
+++ /dev/null
@@ -1,136 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_prepnorm.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_prepnorm.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2006/10/12 11:35:43  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Added FLAMES modules</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> {</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     {</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>               <span class="stringliteral">"I am flames_prepnorm version %d, but I am linking "</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"of UVES and try again."</span>,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     }</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     <span class="keywordflow">return</span> flames_prepnorm_get_info(list);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__preppa_8c_source.html b/html/flames__preppa_8c_source.html
deleted file mode 100644
index 81a86b4..0000000
--- a/html/flames__preppa_8c_source.html
+++ /dev/null
@@ -1,156 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_preppa.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_preppa.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.4 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.3  2007/05/07 16:23:18  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Enabled flames_preppa</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.2  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.1  2006/10/19 08:19:06  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added FLAMES flames_preppa template</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#include <flames.h></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#include <flames_utils.h></span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> {</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     {</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"I am flames_preppa version %d, but I am linking "</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     }</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != flames_get_version_binary())</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     {</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>               <span class="stringliteral">"I am flames_preppa version %d, but I am linking "</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>               <span class="stringliteral">"against FLAMES library version %d. "</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>               UVES_BINARY_VERSION, flames_get_version_binary());</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     }</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     <span class="keywordflow">return</span> flames_preppa_get_info(list);</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__prepslitff_8c_source.html b/html/flames__prepslitff_8c_source.html
deleted file mode 100644
index 52d4ce5..0000000
--- a/html/flames__prepslitff_8c_source.html
+++ /dev/null
@@ -1,136 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_prepslitff.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_prepslitff.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2006/10/12 11:35:43  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Added FLAMES modules</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> {</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     {</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>               <span class="stringliteral">"I am flames_prepslitff version %d, but I am linking "</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"of UVES and try again."</span>,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     }</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     <span class="keywordflow">return</span> flames_prepslitff_get_info(list);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__recipe_8c_source.html b/html/flames__recipe_8c_source.html
deleted file mode 100644
index 4be6deb..0000000
--- a/html/flames__recipe_8c_source.html
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_recipe.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_recipe.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.1  2006/10/19 08:19:06  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added FLAMES recipe template</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <flames.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <flames_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> {</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     {</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"I am recipe version %d, but I am linking "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     }</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != flames_get_version_binary())</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     {</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>               <span class="stringliteral">"I am recipe version %d, but I am linking "</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>               <span class="stringliteral">"against FLAMES library version %d. "</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>               UVES_BINARY_VERSION, flames_get_version_binary());</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     }</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="keywordflow">return</span> recipe_get_info(list);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__reduce__vcorrel_8c_source.html b/html/flames__reduce__vcorrel_8c_source.html
deleted file mode 100644
index 43f2424..0000000
--- a/html/flames__reduce__vcorrel_8c_source.html
+++ /dev/null
@@ -1,634 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_reduce_vcorrel.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_reduce_vcorrel.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> </div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> </div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <flames_midas_def.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <flames_corvel.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <flames_reduce_vcorrel.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">// Simultaneous corvel simcal data reduction</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="keywordtype">double</span> DRS_CVEL_MIN = -6.;</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="keywordtype">double</span> DRS_CVEL_MAX = +6.;</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="keywordtype">double</span> DRS_CVEL_STEP = 0.5;</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> flames_reduce_vcorrel(<span class="keyword">const</span> <span class="keywordtype">char</span>* sci_pfx, </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span>* cvel_pfx, </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span>* ccd_id,</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> ord_max,</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>                       <span class="keyword">const</span> cpl_frame* cvel_tab, </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span>* xxima_pfx, </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span>* xwcal_pfx,</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>                       <span class="keyword">const</span> <span class="keywordtype">double</span> drs_cvel_min,</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>                       <span class="keyword">const</span> <span class="keywordtype">double</span> drs_cvel_max,</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>                       <span class="keywordtype">double</span>* zero_point,</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>                       <span class="keywordtype">double</span>* avg_cnt,</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>                       <span class="keywordtype">double</span>* sig_cnt,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>               cpl_table* qclog)</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> {</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>    <span class="keywordtype">int</span> ord = 0;</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>    <span class="keywordtype">int</span> ord_min=1;</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>    <span class="keywordtype">char</span> cvel_tab_name[80];</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>    <span class="keywordtype">char</span> tim_ccf[80];</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>    <span class="keywordtype">char</span> nim_ccf[80];</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>    <span class="keywordtype">char</span> iim_pfx[80];</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>    <span class="keywordtype">char</span> tab_pfx[80];</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>    <span class="keywordtype">char</span> nim_pfx[80];</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>    <span class="keywordtype">char</span> tim_pfx[80];</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>    <span class="keywordtype">char</span> ref_frm[80];</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>    <span class="keywordtype">char</span> otab[80];</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>    <span class="keyword">const</span> <span class="keywordtype">int</span> npix=(drs_cvel_max-drs_cvel_min)/DRS_CVEL_STEP+1;</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>    cpl_image* tim_ccf_ima=NULL;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>    cpl_image* nim_ccf_ima=NULL;</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>    cpl_table* cvel_tbl=NULL;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>    <span class="keywordtype">double</span> ccfcnt[ord_max];</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>    <span class="keywordtype">int</span>    num_ord=0;</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>    <span class="keywordtype">int</span> status=0;</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>    <span class="keywordtype">int</span> unit=0;</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>    <span class="keywordtype">int</span> actvals=0;</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>    <span class="keywordtype">int</span> null=0;</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>  </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>    <span class="keywordtype">int</span> in_ima_id=0;</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>    <span class="keywordtype">int</span> iim_pfx_id=0;</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>    <span class="keywordtype">char</span> out_cvel_tab[80];</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>    <span class="keywordtype">char</span> out_tot_ima[80];</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>    <span class="keywordtype">char</span> out_nrm_ima[80];</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>    cpl_table* cvel_ord_tbl=NULL;</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>    <span class="keywordtype">int</span> row_pos=0;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>    cpl_image* tot_ima=NULL;</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>    cpl_image* nrm_ima=NULL;</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>    <span class="keywordtype">int</span> nrow=0;</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>    <span class="keywordtype">double</span> ccf_max=0;</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>    <span class="keywordtype">double</span> wav_rng=0;</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>    <span class="keywordtype">double</span> pix_tot=0;</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>    <span class="keywordtype">int</span> lin_tot=0;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>    cpl_propertylist* plist_ima_new=NULL;</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>    cpl_propertylist* plist_tbl_new=NULL;</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>    <span class="keywordtype">double</span> corvel_max=0;</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>    <span class="keywordtype">char</span> key_name[80];</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>    <span class="keyword">const</span> <span class="keywordtype">char</span>* command=NULL;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>    <span class="comment">//Fixme</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"sci_pfx=%s"</span>,sci_pfx);</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"ccd_id=%s"</span>,ccd_id);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>    sprintf(otab,<span class="stringliteral">"%s%s%s"</span>,cvel_pfx,ccd_id,<span class="stringliteral">".fits"</span>);</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>    sprintf(tim_ccf,<span class="stringliteral">"%s%s%s%s"</span>,<span class="stringliteral">"tot_"</span>,cvel_pfx,ccd_id,<span class="stringliteral">".fits"</span>);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>    sprintf(nim_ccf,<span class="stringliteral">"%s%s%s%s"</span>,<span class="stringliteral">"nrm_"</span>,cvel_pfx,ccd_id,<span class="stringliteral">".fits"</span>);</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>    sprintf(iim_pfx,<span class="stringliteral">"%s%s%s%s"</span>,<span class="stringliteral">"mw"</span>,sci_pfx,xxima_pfx,<span class="stringliteral">".fits"</span>);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>    sprintf(tab_pfx,<span class="stringliteral">"%s%s%s"</span>,<span class="stringliteral">"tab_"</span>,ccd_id,<span class="stringliteral">"_"</span>);</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>    sprintf(nim_pfx,<span class="stringliteral">"%s%s%s"</span>,<span class="stringliteral">"nrm_"</span>,ccd_id,<span class="stringliteral">"_"</span>);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>    sprintf(tim_pfx,<span class="stringliteral">"%s%s%s"</span>,<span class="stringliteral">"tot_"</span>,ccd_id,<span class="stringliteral">"_"</span>);</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>    sprintf(ref_frm,<span class="stringliteral">"%s%s%s"</span>,<span class="stringliteral">"w"</span>,sci_pfx,xwcal_pfx);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"pointer=%p"</span>,cvel_tab);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"name=%s"</span>,cpl_frame_get_filename(cvel_tab));</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>    sprintf(cvel_tab_name,<span class="stringliteral">"%s"</span>,cpl_frame_get_filename(cvel_tab));</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"npix=%d"</span>,npix);</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>    tim_ccf_ima=cpl_image_new(npix,ord_max,CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>    nim_ccf_ima=cpl_image_new(npix,ord_max,CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>    <span class="comment">//AMO:Fixme</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>    row_pos=0;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"ord_max=%d nlines=%d"</span>,ord_max,npix*ord_max);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>    <span class="comment">//cvel_tbl=cpl_table_new(npix*ord_max);</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>    cvel_tbl=cpl_table_new(0);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_new_column(cvel_tbl,<span class="stringliteral">"Select"</span>,CPL_TYPE_INT));</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_new_column(cvel_tbl,<span class="stringliteral">"ccf_pos"</span>,CPL_TYPE_DOUBLE));</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_new_column(cvel_tbl,<span class="stringliteral">"ccf_nrm"</span>,CPL_TYPE_DOUBLE));</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_new_column(cvel_tbl,<span class="stringliteral">"ccf_out"</span>,CPL_TYPE_DOUBLE));</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_new_column(cvel_tbl,<span class="stringliteral">"ORDER"</span>,CPL_TYPE_INT));</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(plist_ima_new=cpl_propertylist_new());</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>   </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>    ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>                    <span class="stringliteral">"QC TEST2 ID"</span>,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>                    <span class="stringliteral">"Fibre-Science-QC"</span>,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                    <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                    <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>    uves_check_rec_status(0);</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>    <span class="keywordflow">for</span> (ord=ord_min;ord<=ord_max;ord++) {</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>       ccfcnt[ord]=0;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>       <span class="comment">//for (ord=2;ord<=2;ord++) {</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>  </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>       sprintf(out_cvel_tab,<span class="stringliteral">"%s%s%d%s"</span>,<span class="stringliteral">"tab_"</span>,ccd_id,ord,<span class="stringliteral">".fits"</span>);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>       sprintf(out_tot_ima,<span class="stringliteral">"%s%s%d%s"</span>,<span class="stringliteral">"tot_"</span>,ccd_id,ord,<span class="stringliteral">".fits"</span>);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>       sprintf(out_nrm_ima,<span class="stringliteral">"%s%s%d%s"</span>,<span class="stringliteral">"nrm_"</span>,ccd_id,ord,<span class="stringliteral">".fits"</span>);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>  </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"vc2 %s %s %s"</span>,out_cvel_tab,out_tot_ima,out_nrm_ima);</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"iim_pfx=%s cvel_tab_name=%s ord=%d"</span>,</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>                        iim_pfx,cvel_tab_name,ord);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>  </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"out_cvel_tab=%s"</span>,out_cvel_tab);</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"out_tot_ima=%s"</span>,out_tot_ima);</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"out_nrm_ima=%s"</span>,out_nrm_ima);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"ord=%d"</span>,ord);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>  </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(flames_corvel(iim_pfx,</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>                                 cvel_tab_name,</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>                                 ord,</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>                                 out_cvel_tab,</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>                                 out_tot_ima,</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>                                 out_nrm_ima,</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                                 drs_cvel_min,</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                                 drs_cvel_max,</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                                 DRS_CVEL_STEP));</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"CVEL MAX=%f MIN=%f STEP=%f"</span>,</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>                drs_cvel_min,drs_cvel_max,DRS_CVEL_STEP);</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tot_ima=cpl_image_load(out_tot_ima,CPL_TYPE_FLOAT,0,0));</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nrm_ima=cpl_image_load(out_nrm_ima,CPL_TYPE_FLOAT,0,0));</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_copy(tim_ccf_ima,tot_ima,1,ord-ord_min+1));</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_copy(nim_ccf_ima,nrm_ima,1,ord-ord_min+1));</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cvel_ord_tbl=cpl_table_load(out_cvel_tab,1,1));</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>  </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_new_column(cvel_ord_tbl,<span class="stringliteral">"ORDER"</span>,CPL_TYPE_INT));</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nrow=cpl_table_get_nrow(cvel_ord_tbl));</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_fill_column_window_int(cvel_ord_tbl,<span class="stringliteral">"ORDER"</span>,0,nrow,ord));</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_insert(cvel_tbl,cvel_ord_tbl,row_pos));</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>       row_pos+=nrow;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>       <span class="keywordflow">if</span>((status=SCFOPN(out_tot_ima,D_R4_FORMAT,0,F_IMA_TYPE,&in_ima_id))!=0) {</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>          <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"opening frame %s"</span>,out_tot_ima);</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>          <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>       }</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>       <span class="keywordflow">if</span>((status=SCFOPN(iim_pfx,D_R4_FORMAT,0,F_IMA_TYPE,&iim_pfx_id))!=0) {</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>          <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"opening frame %s"</span>,iim_pfx);</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>          <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>       }</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>       sprintf(key_name,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"CORVEL_MAX"</span>);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>       <span class="keywordflow">if</span>((status=SCDRDD(iim_pfx_id,key_name,1,1,&actvals,&corvel_max,&unit,&null)) </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>          != 0) {</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Reading descriptor %s from frame %s"</span>,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                key_name,out_tot_ima);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>          <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>       }</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>  </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>       sprintf(key_name,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"CCF_PMX"</span>,ord);</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"corvel_max=%g"</span>,corvel_max);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>       <span class="keywordflow">if</span>(!irplib_isnan(corvel_max)) {</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>          ccfcnt[ord]=corvel_max;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>      <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_propertylist_append_double(plist_ima_new,key_name,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                             corvel_max));</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>          </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>      ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>                      cpl_sprintf(<span class="stringliteral">"%s%d%s"</span>,</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>                              <span class="stringliteral">"QC CCF"</span>,ord,<span class="stringliteral">" POSMAX"</span>),</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                      corvel_max,</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>                      <span class="stringliteral">"CCF pos Max"</span>,</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                      <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>      </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>          ccfcnt[ord]=999;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>      <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_propertylist_append_double(plist_ima_new,key_name,</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>                             999));</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> </div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>      </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>      </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>      ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                      cpl_sprintf(<span class="stringliteral">"%s%d%s"</span>,</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                              <span class="stringliteral">"QC CCF"</span>,ord,<span class="stringliteral">" POSMAX"</span>),</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>                      999,</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                      <span class="stringliteral">"CCF pos Max"</span>,</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                      <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>      </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>       }</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>       sprintf(key_name,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"CCF_MAX"</span>);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>       <span class="keywordflow">if</span>((status=SCDRDD(in_ima_id,key_name,1,1,&actvals,&ccf_max,&unit,&null)) </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>          != 0) {</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Reading descriptor %s from frame %s"</span>,</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>                key_name,out_tot_ima);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>          <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>       }</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>       sprintf(key_name,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"CCF_MAX"</span>,ord);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"ccf_max=%g"</span>,ccf_max);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_propertylist_append_double(plist_ima_new,key_name,ccf_max));</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>       </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>       ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                     cpl_sprintf(<span class="stringliteral">"%s%d%s"</span>,</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                         <span class="stringliteral">"QC CCF"</span>,ord,<span class="stringliteral">" INTMAX"</span>),</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                       ccf_max,</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>                       <span class="stringliteral">"CCF Int Max"</span>,</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                       <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>       </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>  </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>       sprintf(key_name,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"WAV_RNG"</span>);</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>       <span class="keywordflow">if</span>((status=SCDRDD(in_ima_id,key_name,1,1,&actvals,&wav_rng,&unit,&null)) </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>          != 0) {</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Reading descriptor %s from frame %s"</span>,</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>                key_name,out_tot_ima);</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>          <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>       }</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>       sprintf(key_name,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"WAV_RNG"</span>,ord);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"wav_rng=%g"</span>,wav_rng);</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"key_name=%s"</span>,key_name);</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_propertylist_append_double(plist_ima_new,key_name,wav_rng));</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> </div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>       </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>       ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                     cpl_sprintf(<span class="stringliteral">"%s%d%s"</span>,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                         <span class="stringliteral">"QC CCF"</span>,ord,<span class="stringliteral">" WAVRNG"</span>),</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>                       wav_rng,</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>                       <span class="stringliteral">"CCF Range"</span>,</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>                       <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>       </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>      </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>       sprintf(key_name,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"PIX_TOT"</span>);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>       <span class="keywordflow">if</span>((status=SCDRDD(in_ima_id,key_name,1,1,&actvals,&pix_tot,&unit,&null)) </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>          != 0) {</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Reading descriptor %s from frame %s"</span>,</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                key_name,out_tot_ima);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>          <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>       }</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>  </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>      </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"pix_tot=%g"</span>,pix_tot);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>       <span class="keywordflow">if</span>(!irplib_isinf(pix_tot)) {</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     sprintf(key_name,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"PIX_TOT"</span>,ord);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_propertylist_append_double(plist_ima_new,key_name,pix_tot));</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>                     cpl_sprintf(<span class="stringliteral">"%s%d%s"</span>,</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>                             <span class="stringliteral">"QC CCF"</span>,ord,<span class="stringliteral">" PIXTOT"</span>),</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>                     pix_tot,</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>                     <span class="stringliteral">"CCF Pix"</span>,</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>                     <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     sprintf(key_name,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"PIX_TOT"</span>,ord);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_propertylist_append_double(plist_ima_new,key_name,999.));</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>                     cpl_sprintf(<span class="stringliteral">"%s%d%s"</span>,</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>                             <span class="stringliteral">"QC CCF"</span>,ord,<span class="stringliteral">" PIXTOT"</span>),</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>                     999,</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>                     <span class="stringliteral">"CCF Pix"</span>,</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>                     <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> </div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>       }</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>       sprintf(key_name,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"LIN_TOT"</span>);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>       <span class="keywordflow">if</span>((status=SCDRDI(in_ima_id,key_name,1,1,&actvals,&lin_tot,&unit,&null)) </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>          != 0) {</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Reading descriptor %s from frame %s"</span>,</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>                key_name,out_tot_ima);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>          <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>       }</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>       sprintf(key_name,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"LIN_TOT"</span>,ord);</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_propertylist_append_int(plist_ima_new,key_name,lin_tot));</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"lin_tot=%d"</span>,lin_tot);</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>            </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>       ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>                     cpl_sprintf(<span class="stringliteral">"%s%d%s"</span>,</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>                         <span class="stringliteral">"QC CCF"</span>,ord,<span class="stringliteral">" LINTOT"</span>),</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>                       pix_tot,</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                       <span class="stringliteral">"CCF Lin"</span>,</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>                       <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>      </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>      </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>       <span class="keywordflow">if</span>((status = SCFCLO(in_ima_id))!=0) {</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>          <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Closing frame %d"</span>,in_ima_id);</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>          <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>       }</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>       <span class="keywordflow">if</span>((status = SCFCLO(iim_pfx_id))!=0) {</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>          <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Closing frame %d"</span>,iim_pfx_id);</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>          <span class="keywordflow">return</span> flames_midas_error(MAREMMA);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>       }</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>  </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>      </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>       uves_free_table(&cvel_ord_tbl);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>       uves_free_image(&tot_ima);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>       uves_free_image(&nrm_ima);</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>       command=uves_sprintf(<span class="stringliteral">"%s%s"</span>,<span class="stringliteral">"rm -rf "</span>,out_cvel_tab);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>       system(command);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>       command=uves_sprintf(<span class="stringliteral">"%s%s"</span>,<span class="stringliteral">"rm -rf "</span>,out_tot_ima);</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>       system(command);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>       command=uves_sprintf(<span class="stringliteral">"%s%s"</span>,<span class="stringliteral">"rm -rf "</span>,out_nrm_ima);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>       system(command);</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>    } <span class="comment">//end loop over orders</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_save(tim_ccf_ima, <span class="stringliteral">"tot_ima.fits"</span>,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                   plist_ima_new,CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_save(nim_ccf_ima, <span class="stringliteral">"nrm_ima.fits"</span>,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>                   plist_ima_new,CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>  </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(cvel_tbl, plist_tbl_new, NULL, otab, </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>                   CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>  </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>    uves_free_image(&tim_ccf_ima);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>    uves_free_image(&nim_ccf_ima);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>    uves_free_table(&cvel_tbl);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>    ord = ord_max-ord_min+1;</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>    <span class="comment">//flames_cveltab(cpfx_ccd_id_tbl,ord);</span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> </div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>    num_ord = 0;</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>    *avg_cnt=0;</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>    <span class="keywordflow">for</span> (ord=ord_min; ord<= ord_max; ord++) {</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>       <span class="keywordflow">if</span> (ccfcnt[ord] != 999) {</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>          *avg_cnt +=ccfcnt[ord];</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>          <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"POSMAX avg=%g cnt=%g ord=%d"</span>,*avg_cnt,ccfcnt[ord],ord);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>          num_ord += 1;</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>       }</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>    }</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>  </div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>    *avg_cnt /= num_ord;</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>    *sig_cnt=0;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>    <span class="keywordflow">for</span> (ord = ord_min; ord <= ord_max; ord++) {</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>       <span class="keywordflow">if</span> (ccfcnt[ord] != 999) {</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>          *sig_cnt += (ccfcnt[ord]-*avg_cnt)*(ccfcnt[ord]-*avg_cnt);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>          <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"sig=%g cnt=%g ord=%d"</span>,*sig_cnt,ccfcnt[ord],ord);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>       }</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>    }</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>    *sig_cnt = sqrt(*sig_cnt/(num_ord-1));</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>    *zero_point+=(*avg_cnt);</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> </div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="comment">   uves_msg("POSMAX avg=%g sig=%g zp=%g",*avg_cnt,*sig_cnt,*zero_point);</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>    ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>                    <span class="stringliteral">"QC CCF POSAVG"</span>,</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>                    *avg_cnt,</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>                    <span class="stringliteral">"CCF pos avg"</span>,</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>                    <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> </div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>    ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                    <span class="stringliteral">"QC CCF POSRMS"</span>,</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>                    *sig_cnt,</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                    <span class="stringliteral">"CCF pos rms"</span>,</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                    <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>    <span class="comment">/* commented out to match FUVES-MIDAS results</span></div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> <span class="comment"></span></div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> <span class="comment">  ck0_nomsg(uves_qclog_add_double(qclog,</span></div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> <span class="comment">                   "QC CCF POSOFF",</span></div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> <span class="comment">                   *zero_point,</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> <span class="comment">                   "CCF pos avg from ThAr calibration",</span></div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> <span class="comment">                   "%f"));</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> <span class="comment"></span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>  </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"POSAVG=%f POSRMS=%f"</span>,*avg_cnt,*sig_cnt);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>  </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> <span class="comment">     do ord = ord_min ord_max</span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> <span class="comment"></span></div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> <span class="comment">     CORVEL/FLAMES {iim_pfx}{ord}.bdf {cvel_tab} {ord} -</span></div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> <span class="comment">     {tab_pfx}{ord}.tbl {tim_pfx}{ord}.bdf {nim_pfx}{ord}.bdf</span></div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> <span class="comment">    </span></div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> <span class="comment"></span></div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> <span class="comment">     insert/ima {tim_pfx}{ord}.bdf {tim_ccf} @1,@{ord}</span></div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> <span class="comment">     insert/ima {nim_pfx}{ord}.bdf {nim_ccf} @1,@{ord}</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="comment">     </span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> <span class="comment">     create/column {tab_pfx}{ord}.tbl :ORDER</span></div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> <span class="comment">     compute/table {tab_pfx}{ord}.tbl :ORDER = {ord}</span></div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> <span class="comment">     if counter .eq. 0 then</span></div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> <span class="comment">     merge/table {tab_pfx}{ord}.tbl  {cpfx}_{ccd_id}.tbl</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> <span class="comment">     counter = counter + 1</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> <span class="comment">     else</span></div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> <span class="comment">     -rename {cpfx}_{ccd_id}.tbl tmp.tbl</span></div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> <span class="comment">     merge/table tmp.tbl {tab_pfx}{ord}.tbl  {cpfx}_{ccd_id}.tbl  </span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> <span class="comment">     endif</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> <span class="comment">     copy/dd {iim_pfx}{ord}.bdf CORVEL_MAX {cpfx}_{ccd_id}.tbl CCF_PMX{ord}</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> <span class="comment">     qc1log/out 1 {otab}  "QC.CCF{ord}.POSMAX" {{iim_pfx}{ord}.bdf,CORVEL_MAX} "CCF pos Max"</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="comment">     qc1log/out 1 {otab}  "QC.CCF{ord}.INTMAX" {{tab_pfx}{ord}.tbl,CCF_MAX} "CCF Int Max"</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> <span class="comment">     qc1log/out 1 {otab}  "QC.CCF{ord}.WAVRNG" {{tab_pfx}{ord}.tbl,WAV_RNG} "CCF Range"</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> <span class="comment">     qc1log/out 1 {otab}  "QC.CCF{ord}.PIXTOT" {{tab_pfx}{ord}.tbl,PIX_TOT} "CCF Pix"</span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> <span class="comment">     qc1log/out 1 {otab}  "QC.CCF{ord}.LINTOT" {{tab_pfx}{ord}.tbl,LIN_TOT} "CCF Lin"</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> <span class="comment">     if "{{iim_pfx}{ord}.bdf,CORVEL_MAX}" .ne. "NAN" then</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> <span class="comment">     ccfcnt({ord}) = {{iim_pfx}{ord}.bdf,CORVEL_MAX}</span></div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> <span class="comment">     else</span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> <span class="comment">     mess/out 2 {pid} "Pos Max Nan for order {ord}. Skip it"</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="comment">     ccfcnt({ord}) = 999</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="comment">     endif</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> <span class="comment"></span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> <span class="comment">     copy/dd {tab_pfx}{ord}.tbl CCF_MAX {cpfx}_{ccd_id}.tbl CCF_MAX{ord}</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> <span class="comment">     copy/dd {tab_pfx}{ord}.tbl WAV_RNG {cpfx}_{ccd_id}.tbl WAV_RNG{ord}</span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> <span class="comment">     copy/dd {tab_pfx}{ord}.tbl PIX_TOT {cpfx}_{ccd_id}.tbl PIX_TOT{ord}</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> <span class="comment">     copy/dd {tab_pfx}{ord}.tbl LIN_TOT {cpfx}_{ccd_id}.tbl LIN_TOT{ord}</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="comment"></span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> <span class="comment"></span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <span class="comment"></span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> <span class="comment">     copy/dd {iim_pfx}{ord}.bdf CORVEL_MAX {tim_ccf} CCF_PMX{ord}</span></div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> <span class="comment">     copy/dd {tim_pfx}{ord}.bdf CCF_MAX    {tim_ccf} CCF_MAX{ord}</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="comment">     copy/dd {tim_pfx}{ord}.bdf WAV_RNG    {tim_ccf} WAV_RNG{ord}</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment">     copy/dd {tim_pfx}{ord}.bdf PIX_TOT    {tim_ccf} PIX_TOT{ord}</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="comment">     copy/dd {tim_pfx}{ord}.bdf LIN_TOT    {tim_ccf} LIN_TOT{ord}</span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="comment"></span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="comment">     copy/dd {iim_pfx}{ord}.bdf CORVEL_MAX {nim_ccf} CCF_PMX{ord}</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="comment">     copy/dd {nim_pfx}{ord}.bdf CCF_MAX    {nim_ccf} CCF_MAX{ord}</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="comment">     copy/dd {nim_pfx}{ord}.bdf WAV_RNG    {nim_ccf} WAV_RNG{ord}</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">     copy/dd {nim_pfx}{ord}.bdf PIX_TOT    {nim_ccf} PIX_TOT{ord}</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="comment">     copy/dd {nim_pfx}{ord}.bdf LIN_TOT    {nim_ccf} LIN_TOT{ord}</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="comment"></span></div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="comment">     enddo</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> <span class="comment">     ord = {ord_max}-{ord_min}+1</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <span class="comment">     CVELTAB/FLAMES {cpfx}_{ccd_id}.tbl {ord}</span></div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> <span class="comment"></span></div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> <span class="comment"></span></div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> <span class="comment"></span></div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <span class="comment">     nord = 0</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> <span class="comment">     do ord = ord_min ord_max</span></div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> <span class="comment">     if ccfcnt({ord}) .ne. 999 then</span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="comment">     avgcnt = avgcnt+ccfcnt({ord})</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> <span class="comment">     nord = nord+1</span></div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> <span class="comment">     endif</span></div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> <span class="comment">     enddo</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> <span class="comment">     avgcnt = avgcnt/(nord)</span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> <span class="comment">     do ord = ord_min ord_max</span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="comment">     if ccfcnt({ord}) .ne. 999 then</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> <span class="comment">     sigcnt = sigcnt+(ccfcnt({ord})-avgcnt)*(ccfcnt({ord})-avgcnt)</span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="comment">     endif</span></div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> <span class="comment">     enddo</span></div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> <span class="comment">     sigcnt = m$sqrt(sigcnt/(nord-1))</span></div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> <span class="comment"></span></div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> <span class="comment"></span></div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> <span class="comment">     mess/out {DRS_MES_LEV} {pid} "POSAVG={avgcnt} POSRMS={sigcnt}"</span></div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> <span class="comment">     qc1log/out 1 {otab}  "QC.CCF.POSAVG" {avgcnt} "CCF pos avg"</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> <span class="comment">     qc1log/out 1 {otab}  "QC.CCF.POSRMS" {sigcnt} "CCF pos rms"</span></div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> <span class="comment">     qc1log/out 1 {otab}  "QC.CCF.POSOFF" {p8}  "CCF pos avg from ThAr calibration"</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> <span class="comment"></span></div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> <span class="comment">     qc1log/out 3</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> <span class="comment">     return {avgcnt}</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> <span class="comment">     !set/format {cpfx}_{ccd_id}.tbl</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> <span class="comment"></span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> <span class="comment"></span></div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>   cleanup:</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>    <span class="keywordflow">if</span>(plist_ima_new!=NULL) {</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>      <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"free"</span>);</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>       cpl_propertylist_delete(plist_ima_new);</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>       plist_ima_new=NULL;</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>    }</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>    uves_free_table(&cvel_tbl);</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>    uves_free_image(&tim_ccf_ima);</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>    uves_free_image(&nim_ccf_ima);</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>    uves_free_image(&tot_ima);</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>    uves_free_image(&nrm_ima);</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>    uves_free_table(&cvel_ord_tbl);</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>  </div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> </div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> </div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>    <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>       uves_check_rec_status(9);</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>       <span class="comment">//uves_free_imagelist(&obj_cor);</span></div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>       <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>    } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>       <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>    }</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> }</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__reduce__vcorrel_8h_source.html b/html/flames__reduce__vcorrel_8h_source.html
deleted file mode 100644
index 0b5d1bd..0000000
--- a/html/flames__reduce__vcorrel_8h_source.html
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_reduce_vcorrel.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_reduce_vcorrel.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="preprocessor">#ifndef FLAMES_REDUCE_VCORREL_H</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_REDUCE_VCORREL_H</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="preprocessor"></span><span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">// Simultaneous corvel simcal data reduction</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="keyword">extern</span> <span class="keywordtype">double</span> DRS_CVEL_MIN;</div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="keyword">extern</span> <span class="keywordtype">double</span> DRS_CVEL_MAX;</div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="keyword">extern</span> <span class="keywordtype">double</span> DRS_CVEL_STEP;</div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> </div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> flames_reduce_vcorrel(<span class="keyword">const</span> <span class="keywordtype">char</span>* sci_pfx, </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span>* cvel_pfx, </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span>* ccd_id,</div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> ord_max,</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span>                       <span class="keyword">const</span> cpl_frame* cvel_tab, </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span>* xxima_pfx, </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span>* xwcal_pfx,</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span>                       <span class="keyword">const</span> <span class="keywordtype">double</span> drs_cvel_min,</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>                       <span class="keyword">const</span> <span class="keywordtype">double</span> drs_cvel_max,</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>                       <span class="keywordtype">double</span>* zero_point,</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>                       <span class="keywordtype">double</span>* avg_cnt,</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>                       <span class="keywordtype">double</span>* sig_cnt,</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>               cpl_table* qclog);</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/flames__utl__unpack_8c_source.html b/html/flames__utl__unpack_8c_source.html
deleted file mode 100644
index 34d16db..0000000
--- a/html/flames__utl__unpack_8c_source.html
+++ /dev/null
@@ -1,486 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: flames_utl_unpack.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">flames_utl_unpack.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: flames_utl_unpack.c,v 1.7 2010-09-24 09:30:44 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the UVES Pipeline</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2010-09-24 09:30:44 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.7 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/* cpl */</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/* irplib */</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">#include <uves_tpl_utils.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">#include <uves_key_names.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">#include <uves_pro_types.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">#include <uves_functions.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <flames_utils_science.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <flames_utils.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <flames_dfs.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#define recipe_id "flames_utl_unpack"</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga3c9c784ff968ed213e8ec7cfe1cab44e" title="Setup the recipe options.">flames_utl_unpack_create</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#gacda5a373304d9563500a4340f7d2cdcb" title="Execute the plugin instance given by the interface.">flames_utl_unpack_exec</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga2c35d6967a972f242bdb3b1fd3e957df" title="Destroy what has been created by the 'create' function.">flames_utl_unpack_destroy</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga9fff417a67b958ecdc54ebc0424bb691" title="Get the command line options and execute the data reduction.">flames_utl_unpack</a>(cpl_parameterlist *, cpl_frameset *) ;</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> flames_unpack_spectra_from_image(cpl_frame* frm,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>                               cpl_parameterlist   *   parameters,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>                                cpl_frameset* <span class="keyword">set</span>);</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> flames_unpack_image_from_cube(cpl_frame* frm,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>                               cpl_parameterlist   *   parameters,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>                                cpl_frameset* <span class="keyword">set</span>);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="keyword">static</span> <span class="keywordtype">char</span> flames_utl_unpack_description[] =</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="stringliteral">"This recipe unpack flames-uves packed products.\n"</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="stringliteral">"Information on relevant parameters can be found with\n"</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="stringliteral">"esorex --params flames_utl_unpack\n"</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="stringliteral">"esorex --help flames_utl_unpack\n"</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="stringliteral">"\n"</span>;</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">                                Functions code</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno"><a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693">  110</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist * list)</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> {</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>     cpl_recipe  *   recipe = cpl_calloc(1, <span class="keyword">sizeof</span> *recipe ) ;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     cpl_plugin  *   plugin = &recipe->interface ;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     cpl_plugin_init(plugin,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                     CPL_PLUGIN_API,</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                     UVES_BINARY_VERSION,</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                     CPL_PLUGIN_TYPE_RECIPE,</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>                     <span class="stringliteral">"flames_utl_unpack"</span>,</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                     <span class="stringliteral">"Unpack flames-uves packed frames"</span>,</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>                     flames_utl_unpack_description,</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>                     <span class="stringliteral">"Andrea Modigliani"</span>,</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>                     <span class="stringliteral">"Andrea.Modigliani at eso.org"</span>,</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>                     <a class="code" href="group__uves__utils.html#gae14eb4ed643b704af7b942f55eac9575" title="Get the pipeline copyright and license.">uves_get_license</a>(),</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>                     <a class="code" href="group__flames__utl__unpack.html#ga3c9c784ff968ed213e8ec7cfe1cab44e" title="Setup the recipe options.">flames_utl_unpack_create</a>,</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>                     <a class="code" href="group__flames__utl__unpack.html#gacda5a373304d9563500a4340f7d2cdcb" title="Execute the plugin instance given by the interface.">flames_utl_unpack_exec</a>,</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>                     <a class="code" href="group__flames__utl__unpack.html#ga2c35d6967a972f242bdb3b1fd3e957df" title="Destroy what has been created by the 'create' function.">flames_utl_unpack_destroy</a>) ;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     cpl_pluginlist_append(list, plugin) ;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     </div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> }</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno"><a class="code" href="group__flames__utl__unpack.html#ga3c9c784ff968ed213e8ec7cfe1cab44e">  144</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga3c9c784ff968ed213e8ec7cfe1cab44e" title="Setup the recipe options.">flames_utl_unpack_create</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> {</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     cpl_recipe      * recipe ;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     cpl_error_reset();</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>     <a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e" title="Reset IRPLIB state.">irplib_reset</a>();</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <span class="comment">/* Create the parameters list in the cpl_recipe object */</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     recipe->parameters = cpl_parameterlist_new() ; </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     <span class="comment">/* Fill the parameters list */</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <span class="comment">/* --stropt */</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>  </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="comment">/* Return */</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> }</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno"><a class="code" href="group__flames__utl__unpack.html#gacda5a373304d9563500a4340f7d2cdcb">  172</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#gacda5a373304d9563500a4340f7d2cdcb" title="Execute the plugin instance given by the interface.">flames_utl_unpack_exec</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> {</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     cpl_recipe  *   recipe ;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>      <span class="keywordtype">int</span> code=0;</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>      cpl_errorstate initial_errorstate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     cpl_error_reset();</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     <a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e" title="Reset IRPLIB state.">irplib_reset</a>();</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     code = <a class="code" href="group__flames__utl__unpack.html#ga9fff417a67b958ecdc54ebc0424bb691" title="Get the command line options and execute the data reduction.">flames_utl_unpack</a>(recipe->parameters, recipe->frames) ;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(initial_errorstate)) {                      </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>         <span class="comment">/* Dump the error history since recipe execution start.                </span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">           At this point the recipe cannot recover from the error */</span>           </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>         cpl_errorstate_dump(initial_errorstate, CPL_FALSE, NULL);              </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     } </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     <span class="keywordflow">return</span> code ;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> }</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno"><a class="code" href="group__flames__utl__unpack.html#ga2c35d6967a972f242bdb3b1fd3e957df">  203</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga2c35d6967a972f242bdb3b1fd3e957df" title="Destroy what has been created by the 'create' function.">flames_utl_unpack_destroy</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> {</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     cpl_recipe  *   recipe ;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     cpl_parameterlist_delete(recipe->parameters) ; </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> }</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno"><a class="code" href="group__flames__utl__unpack.html#ga9fff417a67b958ecdc54ebc0424bb691">  225</a></span> <a class="code" href="group__flames__utl__unpack.html#ga9fff417a67b958ecdc54ebc0424bb691" title="Get the command line options and execute the data reduction.">flames_utl_unpack</a>( cpl_parameterlist   *   parlist, </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>         cpl_frameset        *   <span class="keyword">set</span>)</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> {   </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>    *   plist=NULL ;</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     <span class="keywordtype">int</span> n=0;</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     <span class="keywordtype">int</span> naxis=0;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     cpl_frame* frm=NULL;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* tag=NULL;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* name=NULL;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>           <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Welcome to UVES Pipeline release %d.%d.%d"</span>,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>         UVES_MAJOR_VERSION,UVES_MINOR_VERSION,UVES_MICRO_VERSION);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <span class="comment">/* HOW TO RETRIEVE INPUT PARAMETERS */</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <span class="comment">/* --stropt */</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>    </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <span class="comment">/* Identify the RAW and CALIB frames in the input frameset */</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     <span class="comment">//check(uves_dfs_set_groups(set),</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     <span class="comment">//     "Cannot identify RAW and CALIB frames") ;</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>  </div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     <span class="comment">/* HOW TO ACCESS INPUT DATA */</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     n=cpl_frameset_get_size(<span class="keyword">set</span>);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     <span class="keywordflow">if</span>(n<1) {</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Empty input frame list!"</span>);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>       <span class="keywordflow">goto</span> cleanup ;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     }</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="keywordflow">for</span>(i=0;i<n;i++) {</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(frm=cpl_frameset_get_frame(<span class="keyword">set</span>,i));</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tag=cpl_frame_get_tag(frm));</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(name=cpl_frame_get_filename(frm));</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(plist=<a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(name,0));</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(naxis=<a class="code" href="group__uves__pfits.html#ga17228ff502d3e1eafc4359b2b7069a32" title="Find out the NAXIS.">uves_pfits_get_naxis</a>(plist));</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>       <span class="comment">//uves_msg("name=%s",name);</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>       <span class="keywordflow">if</span>(naxis==3) {</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(flames_unpack_image_from_cube(frm,parlist,<span class="keyword">set</span>));</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (naxis==2) {</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(flames_unpack_spectra_from_image(frm,parlist,<span class="keyword">set</span>));</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>       }</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>       uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     }</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> </div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>  cleanup:</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>    </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     <span class="keywordflow">if</span> (cpl_error_get_code()) {</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     }</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> }</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> flames_unpack_image_from_cube(cpl_frame* frm,</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>                               cpl_parameterlist   *   parameters,</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                               cpl_frameset* <span class="keyword">set</span>)</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> {</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* name=NULL;</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* fname=NULL;</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* tag=NULL;</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* href=NULL;</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* hout=NULL;</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>   cpl_imagelist* iml=NULL;</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>   <span class="keywordtype">int</span> size=0;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>   cpl_frame* <a class="code" href="structframe.html">frame</a>=NULL;</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>   cpl_image* img=NULL;</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>   cknull_nomsg(parameters);</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(name=cpl_frame_get_filename(frm));</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tag=cpl_frame_get_tag(frm));</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(href=<a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(name,0));</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(hout=<a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(href));</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(iml=cpl_imagelist_load(name,CPL_TYPE_FLOAT,0));</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(size=cpl_imagelist_get_size(iml));</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>   <span class="keywordflow">for</span>(i=0;i<size;i++) {</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     frame=cpl_frame_new();</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(img=cpl_imagelist_get(iml,i));</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(fname=uves_sprintf(<span class="stringliteral">"slic_%d_%s"</span>,i,flames_get_basename(name)));</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_save_image(img,fname,hout,<span class="keyword">true</span>, <span class="keyword">true</span>) );</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_filename(frame, fname)) ;</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_tag(frame, tag)) ;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_type(frame, CPL_FRAME_TYPE_IMAGE)) ;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_group(frame, CPL_FRAME_GROUP_PRODUCT)) ;</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_frame_set_level(frame, CPL_FRAME_LEVEL_FINAL),</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>       <span class="stringliteral">"Error while initialising the product frame"</span>) ;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     cpl_frameset_insert(<span class="keyword">set</span>,frame);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="comment">    check_nomsg(cpl_propertylist_erase_regexp(hout, "^ESO PRO CATG",0));</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="comment">    check(cpl_dfs_setup_product_header(hout, </span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment">                                       frame, </span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="comment">                                       set, </span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="comment">                                       parameters,</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="comment">                                       "flames_utl_unpack", </span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="comment">                                       PACKAGE "/" PACKAGE_VERSION, </span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="comment">                                       "PRO-1.15"),</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="comment">      "Problem in the product DFS-compliance") ;</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment"></span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="comment">    check( flames_frameset_insert(</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment">                set,</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="comment">                CPL_FRAME_GROUP_PRODUCT,</span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment">                CPL_FRAME_TYPE_IMAGE,</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment">                CPL_FRAME_LEVEL_INTERMEDIATE,</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment">                fname,</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="comment">                tag,</span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="comment">                hout,</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="comment">                parameters,</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="comment">                recipe_id,</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> <span class="comment">                PACKAGE "/" PACKAGE_VERSION,</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment">                NULL, NULL, true, 0),</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment">     "Could not add image %s (%s) to frameset",</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="comment">     fname, tag);</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>   }</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>  cleanup:</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>   uves_free_propertylist(&href);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>   uves_free_propertylist(&hout);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>   uves_free_imagelist(&iml);</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>   <span class="keywordflow">return</span> cpl_error_get_code() ;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> }</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> flames_unpack_spectra_from_image(cpl_frame* frm,</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>                                cpl_parameterlist   *   parameters,</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>                                cpl_frameset* <span class="keyword">set</span>)</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> {</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* name=NULL;</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* fname=NULL;</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* tag=NULL;</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>   cpl_propertylist* href=NULL;</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>   cpl_propertylist* hout=NULL;</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>   cpl_image* ima=NULL;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>   cpl_frame* frame=NULL;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>   cpl_image* img=NULL;</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>   <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>   <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>   cknull_nomsg(parameters);</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(name=cpl_frame_get_filename(frm));</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tag=cpl_frame_get_tag(frm));</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(href=cpl_propertylist_load(name,0));</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(hout=cpl_propertylist_duplicate(href));</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> </div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima=cpl_image_load(name,CPL_TYPE_FLOAT,0,0));</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sx=cpl_image_get_size_x(ima));</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sy=cpl_image_get_size_y(ima));</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>   <span class="keywordflow">for</span>(i=0;i<sy;i++) {</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     frame=cpl_frame_new();</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     <span class="comment">//img=cpl_image_new(sx,1,CPL_TYPE_FLOAT);</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(img=cpl_image_extract(ima,1,i+1,sx,i+1));</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>      <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(fname=uves_sprintf(<span class="stringliteral">"slic_%d_%s"</span>,i,flames_get_basename(name)));</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     cpl_image_save(img,fname,CPL_BPP_IEEE_FLOAT,hout,CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     <span class="comment">//uves_msg("i=%d tag=%s name=%s",i,tag,name);</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>  </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_filename(frame, fname)) ;</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_tag(frame, tag)) ;</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_type(frame, CPL_FRAME_TYPE_IMAGE)) ;</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_group(frame, CPL_FRAME_GROUP_PRODUCT)) ;</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_frame_set_level(frame, CPL_FRAME_LEVEL_FINAL),</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>       <span class="stringliteral">"Error while initialising the product frame"</span>) ;</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     cpl_frameset_insert(<span class="keyword">set</span>,frame);</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> <span class="comment">    check_nomsg(cpl_propertylist_erase_regexp(hout, "^ESO PRO CATG",0));</span></div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> <span class="comment">    check(cpl_dfs_setup_product_header(hout, </span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> <span class="comment">                                       frame, </span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="comment">                                       set, </span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="comment">                                       parameters,</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="comment">                                       "flames_utl_unpack", </span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="comment">                                       PACKAGE "/" PACKAGE_VERSION, </span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> <span class="comment">                                       "PRO-1.15"),</span></div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> <span class="comment">      "Problem in the product DFS-compliance") ;</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="comment">   </span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> <span class="comment">   </span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="comment">    check( flames_frameset_insert(</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="comment">                set,</span></div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> <span class="comment">                CPL_FRAME_GROUP_PRODUCT,</span></div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="comment">                CPL_FRAME_TYPE_IMAGE,</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="comment">                CPL_FRAME_LEVEL_INTERMEDIATE,</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> <span class="comment">                fname,</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="comment">                tag,</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> <span class="comment">                hout,</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> <span class="comment">                parameters,</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="comment">                    "pippo",</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment">                PACKAGE "/" PACKAGE_VERSION,</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> <span class="comment">                NULL, NULL, true, 0),</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="comment">     "Could not add image %s (%s) to frameset",</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="comment">     fname, tag);</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <span class="comment">    </span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>   uves_free_image(&img);</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>   }</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> </div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>  cleanup:</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>   cpl_propertylist_delete(href);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>   cpl_propertylist_delete(hout);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>   uves_free_image(&ima);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>   uves_free_image(&img);</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>   <span class="keywordflow">return</span> cpl_error_get_code() ;</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> }</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> </div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/ftv2blank.png b/html/ftv2blank.png
deleted file mode 100644
index 63c605b..0000000
Binary files a/html/ftv2blank.png and /dev/null differ
diff --git a/html/ftv2cl.png b/html/ftv2cl.png
deleted file mode 100644
index 132f657..0000000
Binary files a/html/ftv2cl.png and /dev/null differ
diff --git a/html/ftv2doc.png b/html/ftv2doc.png
deleted file mode 100644
index 17edabf..0000000
Binary files a/html/ftv2doc.png and /dev/null differ
diff --git a/html/ftv2folderclosed.png b/html/ftv2folderclosed.png
deleted file mode 100644
index bb8ab35..0000000
Binary files a/html/ftv2folderclosed.png and /dev/null differ
diff --git a/html/ftv2folderopen.png b/html/ftv2folderopen.png
deleted file mode 100644
index d6c7f67..0000000
Binary files a/html/ftv2folderopen.png and /dev/null differ
diff --git a/html/ftv2lastnode.png b/html/ftv2lastnode.png
deleted file mode 100644
index 63c605b..0000000
Binary files a/html/ftv2lastnode.png and /dev/null differ
diff --git a/html/ftv2link.png b/html/ftv2link.png
deleted file mode 100644
index 17edabf..0000000
Binary files a/html/ftv2link.png and /dev/null differ
diff --git a/html/ftv2mlastnode.png b/html/ftv2mlastnode.png
deleted file mode 100644
index 0b63f6d..0000000
Binary files a/html/ftv2mlastnode.png and /dev/null differ
diff --git a/html/ftv2mnode.png b/html/ftv2mnode.png
deleted file mode 100644
index 0b63f6d..0000000
Binary files a/html/ftv2mnode.png and /dev/null differ
diff --git a/html/ftv2mo.png b/html/ftv2mo.png
deleted file mode 100644
index 4bfb80f..0000000
Binary files a/html/ftv2mo.png and /dev/null differ
diff --git a/html/ftv2node.png b/html/ftv2node.png
deleted file mode 100644
index 63c605b..0000000
Binary files a/html/ftv2node.png and /dev/null differ
diff --git a/html/ftv2ns.png b/html/ftv2ns.png
deleted file mode 100644
index 72e3d71..0000000
Binary files a/html/ftv2ns.png and /dev/null differ
diff --git a/html/ftv2plastnode.png b/html/ftv2plastnode.png
deleted file mode 100644
index c6ee22f..0000000
Binary files a/html/ftv2plastnode.png and /dev/null differ
diff --git a/html/ftv2pnode.png b/html/ftv2pnode.png
deleted file mode 100644
index c6ee22f..0000000
Binary files a/html/ftv2pnode.png and /dev/null differ
diff --git a/html/ftv2splitbar.png b/html/ftv2splitbar.png
deleted file mode 100644
index fe895f2..0000000
Binary files a/html/ftv2splitbar.png and /dev/null differ
diff --git a/html/ftv2vertline.png b/html/ftv2vertline.png
deleted file mode 100644
index 63c605b..0000000
Binary files a/html/ftv2vertline.png and /dev/null differ
diff --git a/html/functions.html b/html/functions.html
deleted file mode 100644
index 1614ee5..0000000
--- a/html/functions.html
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Data Fields</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li class="current"><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow3" class="tabs2">
-    <ul class="tablist">
-      <li class="current"><a href="functions.html"><span>All</span></a></li>
-      <li><a href="functions_vars.html"><span>Variables</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="contents">
-<div class="textblock">Here is a list of all documented struct and union fields with links to the struct/union documentation for each field:</div><ul>
-<li>absolute_order
-: <a class="el" href="structlt__type.html#a2306b3c512175cded748edf1993d3b7c">lt_type</a>
-</li>
-<li>dispersion_relation
-: <a class="el" href="structlt__type.html#a8b0b5b5221643675814bb5ff01574a75">lt_type</a>
-</li>
-<li>first_absolute_order
-: <a class="el" href="structlt__type.html#a4e30c814b17e79857c8ada246960df6d">lt_type</a>
-</li>
-<li>last_absolute_order
-: <a class="el" href="structlt__type.html#a40c09eb863858be2b592ba9dd1e5280f">lt_type</a>
-</li>
-<li>pol
-: <a class="el" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">_polynomial</a>
-</li>
-<li>scale
-: <a class="el" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">_polynomial</a>
-</li>
-<li>shift
-: <a class="el" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">_polynomial</a>
-</li>
-<li>table
-: <a class="el" href="structlt__type.html#ad3796ff190452772b26c8f10cd11b49d">lt_type</a>
-</li>
-<li>traces
-: <a class="el" href="structlt__type.html#a5506257685971316747b22175257f279">lt_type</a>
-</li>
-<li>vec
-: <a class="el" href="struct__polynomial.html#a8ebfb08c87b2969c891912c8edee2d6d">_polynomial</a>
-</li>
-<li>windows
-: <a class="el" href="structlt__type.html#af01708c7edac3dd3d95f69db6a3d4d10">lt_type</a>
-</li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/functions_vars.html b/html/functions_vars.html
deleted file mode 100644
index 81f5f52..0000000
--- a/html/functions_vars.html
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Data Fields - Variables</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li class="current"><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow3" class="tabs2">
-    <ul class="tablist">
-      <li><a href="functions.html"><span>All</span></a></li>
-      <li class="current"><a href="functions_vars.html"><span>Variables</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="contents">
- <ul>
-<li>absolute_order
-: <a class="el" href="structlt__type.html#a2306b3c512175cded748edf1993d3b7c">lt_type</a>
-</li>
-<li>dispersion_relation
-: <a class="el" href="structlt__type.html#a8b0b5b5221643675814bb5ff01574a75">lt_type</a>
-</li>
-<li>first_absolute_order
-: <a class="el" href="structlt__type.html#a4e30c814b17e79857c8ada246960df6d">lt_type</a>
-</li>
-<li>last_absolute_order
-: <a class="el" href="structlt__type.html#a40c09eb863858be2b592ba9dd1e5280f">lt_type</a>
-</li>
-<li>pol
-: <a class="el" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">_polynomial</a>
-</li>
-<li>scale
-: <a class="el" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">_polynomial</a>
-</li>
-<li>shift
-: <a class="el" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">_polynomial</a>
-</li>
-<li>table
-: <a class="el" href="structlt__type.html#ad3796ff190452772b26c8f10cd11b49d">lt_type</a>
-</li>
-<li>traces
-: <a class="el" href="structlt__type.html#a5506257685971316747b22175257f279">lt_type</a>
-</li>
-<li>vec
-: <a class="el" href="struct__polynomial.html#a8ebfb08c87b2969c891912c8edee2d6d">_polynomial</a>
-</li>
-<li>windows
-: <a class="el" href="structlt__type.html#af01708c7edac3dd3d95f69db6a3d4d10">lt_type</a>
-</li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__cal__mkmaster.html b/html/group__flames__cal__mkmaster.html
deleted file mode 100644
index 1929f85..0000000
--- a/html/group__flames__cal__mkmaster.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_cal_mkmaster</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_cal_mkmaster</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__cal__orderpos.html b/html/group__flames__cal__orderpos.html
deleted file mode 100644
index 49d853e..0000000
--- a/html/group__flames__cal__orderpos.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_cal_orderpos</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_cal_orderpos</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__cal__predict.html b/html/group__flames__cal__predict.html
deleted file mode 100644
index 87f8b40..0000000
--- a/html/group__flames__cal__predict.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_cal_predict</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_cal_predict</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__cal__prep__sff__ofpos.html b/html/group__flames__cal__prep__sff__ofpos.html
deleted file mode 100644
index 660125b..0000000
--- a/html/group__flames__cal__prep__sff__ofpos.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_cal_prep_sff_ofpos</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_cal_prep_sff_ofpos</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__cal__wavecal.html b/html/group__flames__cal__wavecal.html
deleted file mode 100644
index a819f40..0000000
--- a/html/group__flames__cal__wavecal.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_cal_wavecal</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_cal_wavecal</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__extract.html b/html/group__flames__extract.html
deleted file mode 100644
index 0f6cc92..0000000
--- a/html/group__flames__extract.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_extract</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_extract</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__fillordtab.html b/html/group__flames__fillordtab.html
deleted file mode 100644
index 15deb65..0000000
--- a/html/group__flames__fillordtab.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_fillordtab</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_fillordtab</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__mes__slitff__size.html b/html/group__flames__mes__slitff__size.html
deleted file mode 100644
index 384ad7f..0000000
--- a/html/group__flames__mes__slitff__size.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_mes_slitff_size</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_mes_slitff_size</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__midas__def.html b/html/group__flames__midas__def.html
deleted file mode 100644
index 98689f2..0000000
--- a/html/group__flames__midas__def.html
+++ /dev/null
@@ -1,5778 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: MIDAS <-> CPL interface</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#nested-classes">Data Structures</a> |
-<a href="#define-members">Macros</a> |
-<a href="#func-members">Functions</a> |
-<a href="#var-members">Variables</a>  </div>
-  <div class="headertitle">
-<div class="title">MIDAS <-> CPL interface</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="nested-classes"></a>
-Data Structures</h2></td></tr>
-<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structframe.html">frame</a></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
-Macros</h2></td></tr>
-<tr class="memitem:gaf6694005504df6a3590fb6aafc8c5a19"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf6694005504df6a3590fb6aafc8c5a19"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>COLNAME</b>   "ColName"</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga628fc7f332c82f61ffa18e0c8a510b66"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66">invariant</a> (int id)</td></tr>
-<tr class="memdesc:ga628fc7f332c82f61ffa18e0c8a510b66"><td class="mdescLeft"> </td><td class="mdescRight">Structure invariant.  <a href="#ga628fc7f332c82f61ffa18e0c8a510b66"></a><br/></td></tr>
-<tr class="memitem:ga2cb311b01e4e6bded79ab0fa84065dbb"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb">frame_is_open</a> (int id)</td></tr>
-<tr class="memdesc:ga2cb311b01e4e6bded79ab0fa84065dbb"><td class="mdescLeft"> </td><td class="mdescRight">Tell if frame is open.  <a href="#ga2cb311b01e4e6bded79ab0fa84065dbb"></a><br/></td></tr>
-<tr class="memitem:ga039acefae152f656c10c8f92123dff18"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga039acefae152f656c10c8f92123dff18">frame_new_image</a> (int id, const char *filename, <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *header, bool need_to_save, cpl_image *image, cpl_type type, int dtype)</td></tr>
-<tr class="memdesc:ga039acefae152f656c10c8f92123dff18"><td class="mdescLeft"> </td><td class="mdescRight">Create new image frame.  <a href="#ga039acefae152f656c10c8f92123dff18"></a><br/></td></tr>
-<tr class="memitem:gab7f90aa20c3ad6bb30b38c96cce9503a"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gab7f90aa20c3ad6bb30b38c96cce9503a">frame_new_table</a> (int id, const char *filename, <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *header, bool need_to_save, cpl_table *table, int maxrow, cpl_table *colname [...]
-<tr class="memdesc:gab7f90aa20c3ad6bb30b38c96cce9503a"><td class="mdescLeft"> </td><td class="mdescRight">Create new table frame.  <a href="#gab7f90aa20c3ad6bb30b38c96cce9503a"></a><br/></td></tr>
-<tr class="memitem:ga1d9507f11db5958a512c4bfac897d11e"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga1d9507f11db5958a512c4bfac897d11e">frame_free</a> (int id)</td></tr>
-<tr class="memdesc:ga1d9507f11db5958a512c4bfac897d11e"><td class="mdescLeft"> </td><td class="mdescRight">Deallocate frame.  <a href="#ga1d9507f11db5958a512c4bfac897d11e"></a><br/></td></tr>
-<tr class="memitem:ga62f37c098ceea9f00ff6d148787d94a2"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga62f37c098ceea9f00ff6d148787d94a2">is_special_midas_descr</a> (const char *descr)</td></tr>
-<tr class="memdesc:ga62f37c098ceea9f00ff6d148787d94a2"><td class="mdescLeft"> </td><td class="mdescRight">Find out if FITS descriptor has a different name from MIDAS.  <a href="#ga62f37c098ceea9f00ff6d148787d94a2"></a><br/></td></tr>
-<tr class="memitem:gac5996d64d908d2cfa6f94ea779a0ea95"><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gac5996d64d908d2cfa6f94ea779a0ea95">convert_to_fits</a> (const char *descr, int indx)</td></tr>
-<tr class="memdesc:gac5996d64d908d2cfa6f94ea779a0ea95"><td class="mdescLeft"> </td><td class="mdescRight">Map MIDAS descriptors to FITS equivalents.  <a href="#gac5996d64d908d2cfa6f94ea779a0ea95"></a><br/></td></tr>
-<tr class="memitem:gac7d5af5ecd10af15fb036eb988b61527"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gac7d5af5ecd10af15fb036eb988b61527">convert_to_history</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> **header)</td></tr>
-<tr class="memdesc:gac7d5af5ecd10af15fb036eb988b61527"><td class="mdescLeft"> </td><td class="mdescRight">Convert header for output.  <a href="#gac7d5af5ecd10af15fb036eb988b61527"></a><br/></td></tr>
-<tr class="memitem:ga9e7eadf2d9728e691ea6faf51032cd8c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga9e7eadf2d9728e691ea6faf51032cd8c">load_header</a> (const char *filename, int extension)</td></tr>
-<tr class="memdesc:ga9e7eadf2d9728e691ea6faf51032cd8c"><td class="mdescLeft"> </td><td class="mdescRight">Load + parse FITS header HISTORY keywords.  <a href="#ga9e7eadf2d9728e691ea6faf51032cd8c"></a><br/></td></tr>
-<tr class="memitem:ga6beb815e71b5dc0c97723fea885b87fb"><td class="memItemLeft" align="right" valign="top">cpl_type </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga6beb815e71b5dc0c97723fea885b87fb">flames_midas_image_dtype_to_cpltype</a> (int dtype)</td></tr>
-<tr class="memdesc:ga6beb815e71b5dc0c97723fea885b87fb"><td class="mdescLeft"> </td><td class="mdescRight">Map MIDAS dtypes to CPL types.  <a href="#ga6beb815e71b5dc0c97723fea885b87fb"></a><br/></td></tr>
-<tr class="memitem:ga01414f0f04f79fd8686c2f6f9f478fbc"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga01414f0f04f79fd8686c2f6f9f478fbc">load_frame_header</a> (int id)</td></tr>
-<tr class="memdesc:ga01414f0f04f79fd8686c2f6f9f478fbc"><td class="mdescLeft"> </td><td class="mdescRight">Load frame FITS header if not already in memory.  <a href="#ga01414f0f04f79fd8686c2f6f9f478fbc"></a><br/></td></tr>
-<tr class="memitem:gac43d4468f847fadb5e9ff0895b0cab16"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gac43d4468f847fadb5e9ff0895b0cab16">set_column_format_unit_tnull</a> (cpl_table *t, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *theader)</td></tr>
-<tr class="memdesc:gac43d4468f847fadb5e9ff0895b0cab16"><td class="mdescLeft"> </td><td class="mdescRight">CPL workaround DFS03746.  <a href="#gac43d4468f847fadb5e9ff0895b0cab16"></a><br/></td></tr>
-<tr class="memitem:gaeb6e0604594f159f7c9fc457dff64886"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886">load_frame</a> (int id)</td></tr>
-<tr class="memdesc:gaeb6e0604594f159f7c9fc457dff64886"><td class="mdescLeft"> </td><td class="mdescRight">Load image/table if not already in memory.  <a href="#gaeb6e0604594f159f7c9fc457dff64886"></a><br/></td></tr>
-<tr class="memitem:ga660658a114854b46d0dd27605ea01711"><td class="memItemLeft" align="right" valign="top">static cpl_property ** </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga660658a114854b46d0dd27605ea01711">create_descr</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *header, const char *descr, char type, int length, int nexist)</td></tr>
-<tr class="memdesc:ga660658a114854b46d0dd27605ea01711"><td class="mdescLeft"> </td><td class="mdescRight">Create descriptors.  <a href="#ga660658a114854b46d0dd27605ea01711"></a><br/></td></tr>
-<tr class="memitem:ga39b00de90ed04a8759704d6ad997c30c"><td class="memItemLeft" align="right" valign="top">static cpl_property ** </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga39b00de90ed04a8759704d6ad997c30c">get_descr_info</a> (int id, const char *descr, char *type, int *length, int *bytelem)</td></tr>
-<tr class="memdesc:ga39b00de90ed04a8759704d6ad997c30c"><td class="mdescLeft"> </td><td class="mdescRight">Get descriptor information.  <a href="#ga39b00de90ed04a8759704d6ad997c30c"></a><br/></td></tr>
-<tr class="memitem:gafb520332aaae57a6e23cd3004aaf9edd"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gafb520332aaae57a6e23cd3004aaf9edd">flames_midas_scspro</a> (const char *name)</td></tr>
-<tr class="memdesc:gafb520332aaae57a6e23cd3004aaf9edd"><td class="mdescLeft"> </td><td class="mdescRight">Get into the MIDAS environment.  <a href="#gafb520332aaae57a6e23cd3004aaf9edd"></a><br/></td></tr>
-<tr class="memitem:ga404f30f6b856c9aef1049281f08821a7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga404f30f6b856c9aef1049281f08821a7">flames_midas_scsepi</a> (void)</td></tr>
-<tr class="memdesc:ga404f30f6b856c9aef1049281f08821a7"><td class="mdescLeft"> </td><td class="mdescRight">Deinitialize interface.  <a href="#ga404f30f6b856c9aef1049281f08821a7"></a><br/></td></tr>
-<tr class="memitem:ga5782950076486effd61983d7e9cfdca7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga5782950076486effd61983d7e9cfdca7">flames_midas_error_macro</a> (const char *file, const char *function, int line, int status)</td></tr>
-<tr class="memdesc:ga5782950076486effd61983d7e9cfdca7"><td class="mdescLeft"> </td><td class="mdescRight">Print debugging info when function returns error.  <a href="#ga5782950076486effd61983d7e9cfdca7"></a><br/></td></tr>
-<tr class="memitem:gafb38d16898bedd5466e128e2fc7685ec"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gafb38d16898bedd5466e128e2fc7685ec">flames_midas_fail_macro</a> (const char *file, const char *function, int line)</td></tr>
-<tr class="memdesc:gafb38d16898bedd5466e128e2fc7685ec"><td class="mdescLeft"> </td><td class="mdescRight">Deinitialize interface, cleanup and return failure.  <a href="#gafb38d16898bedd5466e128e2fc7685ec"></a><br/></td></tr>
-<tr class="memitem:gac9bb00d4973c0c331c191b7181813603"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gac9bb00d4973c0c331c191b7181813603">flames_midas_sckwri</a> (int *key, const int *values, int felem, int maxvals, int *unit)</td></tr>
-<tr class="memdesc:gac9bb00d4973c0c331c191b7181813603"><td class="mdescLeft"> </td><td class="mdescRight">Write data into integer keyword.  <a href="#gac9bb00d4973c0c331c191b7181813603"></a><br/></td></tr>
-<tr class="memitem:gaf92f6c07d3bdb40c5a94cbda4ef5759d"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaf92f6c07d3bdb40c5a94cbda4ef5759d">flames_midas_sckwrd</a> (double *key, const double *values, int felem, int maxvals, int *unit)</td></tr>
-<tr class="memdesc:gaf92f6c07d3bdb40c5a94cbda4ef5759d"><td class="mdescLeft"> </td><td class="mdescRight">Write data into double keyword.  <a href="#gaf92f6c07d3bdb40c5a94cbda4ef5759d"></a><br/></td></tr>
-<tr class="memitem:ga456cfe0c7a3174be7b4743a50c35af06"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga456cfe0c7a3174be7b4743a50c35af06">flames_midas_sckwrc</a> (char *key, int noelem, const char *values, int felem, int maxvals, int *unit)</td></tr>
-<tr class="memdesc:ga456cfe0c7a3174be7b4743a50c35af06"><td class="mdescLeft"> </td><td class="mdescRight">Write data into character keyword.  <a href="#ga456cfe0c7a3174be7b4743a50c35af06"></a><br/></td></tr>
-<tr class="memitem:gad5428f85c2051eb80233c722be600384"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gad5428f85c2051eb80233c722be600384">flames_midas_sckgetc</a> (const char *key, int felem, int maxvals, int *actvals, char *values)</td></tr>
-<tr class="memdesc:gad5428f85c2051eb80233c722be600384"><td class="mdescLeft"> </td><td class="mdescRight">Get data from character keyword.  <a href="#gad5428f85c2051eb80233c722be600384"></a><br/></td></tr>
-<tr class="memitem:gaa8dd2c0f402ef4d7f25cab80633315d2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaa8dd2c0f402ef4d7f25cab80633315d2">flames_midas_sckgetc_fs</a> (const cpl_frameset *key, int felem, int maxvals, int *actvals, const cpl_frameset **values)</td></tr>
-<tr class="memdesc:gaa8dd2c0f402ef4d7f25cab80633315d2"><td class="mdescLeft"> </td><td class="mdescRight">Get data from character keyword (catalogue)  <a href="#gaa8dd2c0f402ef4d7f25cab80633315d2"></a><br/></td></tr>
-<tr class="memitem:gaf5a5ab0dd30aa57b7190dd16282b405c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaf5a5ab0dd30aa57b7190dd16282b405c">flames_midas_sckgetc_fsp</a> (cpl_frameset **key, int felem, int maxvals, int *actvals, cpl_frameset ***values)</td></tr>
-<tr class="memdesc:gaf5a5ab0dd30aa57b7190dd16282b405c"><td class="mdescLeft"> </td><td class="mdescRight">Get data from character keyword (frame set pointer)  <a href="#gaf5a5ab0dd30aa57b7190dd16282b405c"></a><br/></td></tr>
-<tr class="memitem:gae85c7a6f7d741e6daef4b9b22ac45445"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gae85c7a6f7d741e6daef4b9b22ac45445">flames_midas_sckrdd</a> (const double *key, int felem, int maxvals, int *actvals, double *values, int *unit, int *null)</td></tr>
-<tr class="memdesc:gae85c7a6f7d741e6daef4b9b22ac45445"><td class="mdescLeft"> </td><td class="mdescRight">Read data from double precision keyword.  <a href="#gae85c7a6f7d741e6daef4b9b22ac45445"></a><br/></td></tr>
-<tr class="memitem:ga111509252ea742fbf16c4d1094e50984"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga111509252ea742fbf16c4d1094e50984">flames_midas_sckrdr</a> (const float *key, int felem, int maxvals, int *actvals, float *values, int *unit, int *null)</td></tr>
-<tr class="memdesc:ga111509252ea742fbf16c4d1094e50984"><td class="mdescLeft"> </td><td class="mdescRight">Read data from real precision keyword.  <a href="#ga111509252ea742fbf16c4d1094e50984"></a><br/></td></tr>
-<tr class="memitem:ga9141f1db2730a7ca7017cb6c3f630212"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga9141f1db2730a7ca7017cb6c3f630212">flames_midas_sckrdi</a> (const int *key, int felem, int maxvals, int *actvals, int *values, int *unit, int *null)</td></tr>
-<tr class="memdesc:ga9141f1db2730a7ca7017cb6c3f630212"><td class="mdescLeft"> </td><td class="mdescRight">Read data from integer keyword.  <a href="#ga9141f1db2730a7ca7017cb6c3f630212"></a><br/></td></tr>
-<tr class="memitem:gadf589fba446c3b815b0f3cd2d1ae2313"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gadf589fba446c3b815b0f3cd2d1ae2313">flames_midas_sckrdc</a> (const char *key, int noelm, int felem, int maxvals, int *actvals, char *values, int *unit, int *null)</td></tr>
-<tr class="memdesc:gadf589fba446c3b815b0f3cd2d1ae2313"><td class="mdescLeft"> </td><td class="mdescRight">Read data from string keyword.  <a href="#gadf589fba446c3b815b0f3cd2d1ae2313"></a><br/></td></tr>
-<tr class="memitem:gaafc1d839c45a943184a3bb4939d74751"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751">sckfnd</a> (const char the_type, const void *key, char *type, int *noelem, int *bytelem)</td></tr>
-<tr class="memdesc:gaafc1d839c45a943184a3bb4939d74751"><td class="mdescLeft"> </td><td class="mdescRight">Find keyword and provide info on it.  <a href="#gaafc1d839c45a943184a3bb4939d74751"></a><br/></td></tr>
-<tr class="memitem:gaebe09f825bea8022029d7228f65ec0bd"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaebe09f825bea8022029d7228f65ec0bd">flames_midas_sckfnd_double</a> (const double *key, char *type, int *noelem, int *bytelem)</td></tr>
-<tr class="memitem:gad15ddc46cb5cfb84c0712bd4ea711a31"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gad15ddc46cb5cfb84c0712bd4ea711a31">flames_midas_sckfnd_float</a> (const float *key, char *type, int *noelem, int *bytelem)</td></tr>
-<tr class="memitem:gac7a6aa9b94f6cc8f3cde2fbdfc196508"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gac7a6aa9b94f6cc8f3cde2fbdfc196508">flames_midas_sckfnd_int</a> (const int *key, char *type, int *noelem, int *bytelem)</td></tr>
-<tr class="memitem:gaa62164a8510ad12d9cc38d7ba63e6ac2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaa62164a8510ad12d9cc38d7ba63e6ac2">flames_midas_sckfnd_string</a> (const char *key, char *type, int *noelem, int *bytelem)</td></tr>
-<tr class="memitem:ga16f28e1fc62964ca37121c376f40f217"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga16f28e1fc62964ca37121c376f40f217">flames_midas_sctput</a> (const char *msg, const char *function, const char *file, int line)</td></tr>
-<tr class="memdesc:ga16f28e1fc62964ca37121c376f40f217"><td class="mdescLeft"> </td><td class="mdescRight">Display message.  <a href="#ga16f28e1fc62964ca37121c376f40f217"></a><br/></td></tr>
-<tr class="memitem:ga7066ceaa10571003c4f40b9514befa55"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga7066ceaa10571003c4f40b9514befa55">flames_midas_scfinf</a> (const char *name, int fno, int *ibuf)</td></tr>
-<tr class="memdesc:ga7066ceaa10571003c4f40b9514befa55"><td class="mdescLeft"> </td><td class="mdescRight">Open the frame and return file info in buffer up to 5 integers.  <a href="#ga7066ceaa10571003c4f40b9514befa55"></a><br/></td></tr>
-<tr class="memitem:gade8dcfb4d9b489491251c0a3bdd37c77"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gade8dcfb4d9b489491251c0a3bdd37c77">flames_midas_scfopn</a> (const char *name, int dattype, int newopn, int filtype, int *imno)</td></tr>
-<tr class="memdesc:gade8dcfb4d9b489491251c0a3bdd37c77"><td class="mdescLeft"> </td><td class="mdescRight">Open an existing image and return its internal file no.  <a href="#gade8dcfb4d9b489491251c0a3bdd37c77"></a><br/></td></tr>
-<tr class="memitem:gacc0d2e992be7014e3ee51cd0e5213378"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gacc0d2e992be7014e3ee51cd0e5213378">flames_midas_scfcre</a> (const char *name, int dattype, int iomode, int filtype, int size, int *imno)</td></tr>
-<tr class="memdesc:gacc0d2e992be7014e3ee51cd0e5213378"><td class="mdescLeft"> </td><td class="mdescRight">Create an image frame with data of given type and return its internal file no.  <a href="#gacc0d2e992be7014e3ee51cd0e5213378"></a><br/></td></tr>
-<tr class="memitem:ga74503a6b522dac56cde3c9371ad720c3"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga74503a6b522dac56cde3c9371ad720c3">frame_close</a> (int id)</td></tr>
-<tr class="memdesc:ga74503a6b522dac56cde3c9371ad720c3"><td class="mdescLeft"> </td><td class="mdescRight">Close a frame, save to disk if necessary.  <a href="#ga74503a6b522dac56cde3c9371ad720c3"></a><br/></td></tr>
-<tr class="memitem:ga5ed8340f5fc416851f180804e976063c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga5ed8340f5fc416851f180804e976063c">flames_midas_scfclo</a> (int imno)</td></tr>
-<tr class="memdesc:ga5ed8340f5fc416851f180804e976063c"><td class="mdescLeft"> </td><td class="mdescRight">Close an image frame.  <a href="#ga5ed8340f5fc416851f180804e976063c"></a><br/></td></tr>
-<tr class="memitem:ga41facab5fb3ef7e61cd04eb23c221457"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga41facab5fb3ef7e61cd04eb23c221457">flames_midas_scfget</a> (int imno, int felem, int size, int *actsize, char *bufadr)</td></tr>
-<tr class="memdesc:ga41facab5fb3ef7e61cd04eb23c221457"><td class="mdescLeft"> </td><td class="mdescRight">Read data from disk frame into memory.  <a href="#ga41facab5fb3ef7e61cd04eb23c221457"></a><br/></td></tr>
-<tr class="memitem:ga7fd1da8919a2e4d23d715241851dc531"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga7fd1da8919a2e4d23d715241851dc531">flames_midas_scfput</a> (int imno, int felem, int size, const char *bufadr)</td></tr>
-<tr class="memdesc:ga7fd1da8919a2e4d23d715241851dc531"><td class="mdescLeft"> </td><td class="mdescRight">Write data from memory into disk frame.  <a href="#ga7fd1da8919a2e4d23d715241851dc531"></a><br/></td></tr>
-<tr class="memitem:gae2e7cd4c8a5c1bffdbd0323fdb5aac63"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gae2e7cd4c8a5c1bffdbd0323fdb5aac63">flames_midas_scdfnd</a> (int id, const char *descr, char *type, int *noelem, int *bytelem)</td></tr>
-<tr class="memdesc:gae2e7cd4c8a5c1bffdbd0323fdb5aac63"><td class="mdescLeft"> </td><td class="mdescRight">Provide info about descriptor.  <a href="#gae2e7cd4c8a5c1bffdbd0323fdb5aac63"></a><br/></td></tr>
-<tr class="memitem:ga6b30560067a69f65864f034fcecf22b8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga6b30560067a69f65864f034fcecf22b8">flames_midas_scdprs</a> (int id, const char *descr, char *type, int *noelem, int *bytelem)</td></tr>
-<tr class="memdesc:ga6b30560067a69f65864f034fcecf22b8"><td class="mdescLeft"> </td><td class="mdescRight">Provide info about descriptor.  <a href="#ga6b30560067a69f65864f034fcecf22b8"></a><br/></td></tr>
-<tr class="memitem:gaeabc5771665c7fe3cd9ba0d9eb0a2e27"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27">scdrd</a> (char expected_type, int id, const char *descr, int felem, int maxvals, int *actvals, void *values, int *unit, int *null)</td></tr>
-<tr class="memdesc:gaeabc5771665c7fe3cd9ba0d9eb0a2e27"><td class="mdescLeft"> </td><td class="mdescRight">Read contents of integer descriptor.  <a href="#gaeabc5771665c7fe3cd9ba0d9eb0a2e27"></a><br/></td></tr>
-<tr class="memitem:ga0e318315f4db01837b210ed6f121abc9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga0e318315f4db01837b210ed6f121abc9">flames_midas_scdrdi</a> (int id, const char *descr, int felem, int maxvals, int *actvals, int *values, int *unit, int *null)</td></tr>
-<tr class="memdesc:ga0e318315f4db01837b210ed6f121abc9"><td class="mdescLeft"> </td><td class="mdescRight">Read contents of integer descriptor.  <a href="#ga0e318315f4db01837b210ed6f121abc9"></a><br/></td></tr>
-<tr class="memitem:gaac0ac727377c28d18f747a7d7c68ba8a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaac0ac727377c28d18f747a7d7c68ba8a">flames_midas_scdrdd</a> (int id, const char *descr, int felem, int maxvals, int *actvals, double *values, int *unit, int *null)</td></tr>
-<tr class="memdesc:gaac0ac727377c28d18f747a7d7c68ba8a"><td class="mdescLeft"> </td><td class="mdescRight">Read contents of double descriptor.  <a href="#gaac0ac727377c28d18f747a7d7c68ba8a"></a><br/></td></tr>
-<tr class="memitem:gaa973227da8437b4a863f3b20c6a48677"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaa973227da8437b4a863f3b20c6a48677">flames_midas_scdrdr</a> (int id, const char *descr, int felem, int maxvals, int *actvals, float *values, int *unit, int *null)</td></tr>
-<tr class="memdesc:gaa973227da8437b4a863f3b20c6a48677"><td class="mdescLeft"> </td><td class="mdescRight">Read contents of double descriptor.  <a href="#gaa973227da8437b4a863f3b20c6a48677"></a><br/></td></tr>
-<tr class="memitem:ga364fe8ecc22777838c41847bda6ac39d"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga364fe8ecc22777838c41847bda6ac39d">flames_midas_scdrdc</a> (int id, const char *descr, int noelem, int felem, int maxvals, int *actvals, char *values, int *unit, int *null)</td></tr>
-<tr class="memdesc:ga364fe8ecc22777838c41847bda6ac39d"><td class="mdescLeft"> </td><td class="mdescRight">Read contents of string descriptor.  <a href="#ga364fe8ecc22777838c41847bda6ac39d"></a><br/></td></tr>
-<tr class="memitem:ga3df6bb0a7782b06c85dca025c4bd5682"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga3df6bb0a7782b06c85dca025c4bd5682">scdwr</a> (char type_to_write, int id, const char *descr, const void *values, int felem, int nval, const int *unit)</td></tr>
-<tr class="memdesc:ga3df6bb0a7782b06c85dca025c4bd5682"><td class="mdescLeft"> </td><td class="mdescRight">Write a descriptor and its data.  <a href="#ga3df6bb0a7782b06c85dca025c4bd5682"></a><br/></td></tr>
-<tr class="memitem:ga13989de7cfac7c2dbf9af19b1474466c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga13989de7cfac7c2dbf9af19b1474466c">flames_midas_scdwri</a> (int id, const char *descr, const int *values, int felem, int nval, const int *unit)</td></tr>
-<tr class="memdesc:ga13989de7cfac7c2dbf9af19b1474466c"><td class="mdescLeft"> </td><td class="mdescRight">Write a descriptor and its data.  <a href="#ga13989de7cfac7c2dbf9af19b1474466c"></a><br/></td></tr>
-<tr class="memitem:ga2291fd90dbe300f347bdeb8b9406defc"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga2291fd90dbe300f347bdeb8b9406defc">flames_midas_scdwrd</a> (int id, const char *descr, const double *values, int felem, int nval, const int *unit)</td></tr>
-<tr class="memdesc:ga2291fd90dbe300f347bdeb8b9406defc"><td class="mdescLeft"> </td><td class="mdescRight">Write a descriptor and its data.  <a href="#ga2291fd90dbe300f347bdeb8b9406defc"></a><br/></td></tr>
-<tr class="memitem:ga1529d77bc40fef94b2ff2c3e00c478e1"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga1529d77bc40fef94b2ff2c3e00c478e1">flames_midas_scdwrr</a> (int id, const char *descr, const float *values, int felem, int nval, const int *unit)</td></tr>
-<tr class="memdesc:ga1529d77bc40fef94b2ff2c3e00c478e1"><td class="mdescLeft"> </td><td class="mdescRight">Write a descriptor and its data.  <a href="#ga1529d77bc40fef94b2ff2c3e00c478e1"></a><br/></td></tr>
-<tr class="memitem:ga44cabf3bf150345b7212c5b7b53b98c2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga44cabf3bf150345b7212c5b7b53b98c2">flames_midas_scdwrc</a> (int id, const char *descr, int noelm, const char *values, int felem, int nval, const int *unit)</td></tr>
-<tr class="memdesc:ga44cabf3bf150345b7212c5b7b53b98c2"><td class="mdescLeft"> </td><td class="mdescRight">Write a descriptor and its data.  <a href="#ga44cabf3bf150345b7212c5b7b53b98c2"></a><br/></td></tr>
-<tr class="memitem:ga48f59f2f6c0f646a98df741d3dca5490"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga48f59f2f6c0f646a98df741d3dca5490">flames_midas_scddel</a> (int id, const char *descr)</td></tr>
-<tr class="memdesc:ga48f59f2f6c0f646a98df741d3dca5490"><td class="mdescLeft"> </td><td class="mdescRight">Delete a descriptor.  <a href="#ga48f59f2f6c0f646a98df741d3dca5490"></a><br/></td></tr>
-<tr class="memitem:gae41c12c4d3844865f17d833c1cb1417e"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gae41c12c4d3844865f17d833c1cb1417e">scdcop</a> (int from, int to, int mask, bool copy_naxis)</td></tr>
-<tr class="memdesc:gae41c12c4d3844865f17d833c1cb1417e"><td class="mdescLeft"> </td><td class="mdescRight">Copy descriptors from one frame to another.  <a href="#gae41c12c4d3844865f17d833c1cb1417e"></a><br/></td></tr>
-<tr class="memitem:ga26847f26401dd74af7e09d6e20f3485c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga26847f26401dd74af7e09d6e20f3485c">flames_midas_scdcop</a> (int from, int to, int mask)</td></tr>
-<tr class="memdesc:ga26847f26401dd74af7e09d6e20f3485c"><td class="mdescLeft"> </td><td class="mdescRight">Copy descriptors.  <a href="#ga26847f26401dd74af7e09d6e20f3485c"></a><br/></td></tr>
-<tr class="memitem:ga9434f71fab199b6901162d0ef9a3c72c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga9434f71fab199b6901162d0ef9a3c72c">flames_midas_scdcop_nonaxis</a> (int from, int to, int mask)</td></tr>
-<tr class="memdesc:ga9434f71fab199b6901162d0ef9a3c72c"><td class="mdescLeft"> </td><td class="mdescRight">Copy descriptors.  <a href="#ga9434f71fab199b6901162d0ef9a3c72c"></a><br/></td></tr>
-<tr class="memitem:ga015a9de40fda2f9647b47ebcff656176"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga015a9de40fda2f9647b47ebcff656176">flames_midas_sccsho</a> (const cpl_frameset *catfile, int *noent, int *last)</td></tr>
-<tr class="memdesc:ga015a9de40fda2f9647b47ebcff656176"><td class="mdescLeft"> </td><td class="mdescRight">Show size and type of a catalog.  <a href="#ga015a9de40fda2f9647b47ebcff656176"></a><br/></td></tr>
-<tr class="memitem:ga615dbb0a3b8642ce7a2fc6dd0f9ccdca"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga615dbb0a3b8642ce7a2fc6dd0f9ccdca">flames_midas_sccfnd</a> (const cpl_frameset *catfile, int frmno, char *<a class="el" href="structframe.html">frame</a>)</td></tr>
-<tr class="memdesc:ga615dbb0a3b8642ce7a2fc6dd0f9ccdca"><td class="mdescLeft"> </td><td class="mdescRight">Find corresponding frame for given entry number.  <a href="#ga615dbb0a3b8642ce7a2fc6dd0f9ccdca"></a><br/></td></tr>
-<tr class="memitem:ga012d8363656f8f4ffbd3715f07e0fe1e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga012d8363656f8f4ffbd3715f07e0fe1e">flames_midas_sccget</a> (const cpl_frameset *catfile, int flag, char *name, char *ident, int *no)</td></tr>
-<tr class="memdesc:ga012d8363656f8f4ffbd3715f07e0fe1e"><td class="mdescLeft"> </td><td class="mdescRight">Get next sequential entry from frame catalogue.  <a href="#ga012d8363656f8f4ffbd3715f07e0fe1e"></a><br/></td></tr>
-<tr class="memitem:ga49845ef1180d690d5d3c6aa8645217c9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga49845ef1180d690d5d3c6aa8645217c9">flames_midas_scccre</a> (cpl_frameset **catfile, int type, int flag)</td></tr>
-<tr class="memdesc:ga49845ef1180d690d5d3c6aa8645217c9"><td class="mdescLeft"> </td><td class="mdescRight">Create a catalog.  <a href="#ga49845ef1180d690d5d3c6aa8645217c9"></a><br/></td></tr>
-<tr class="memitem:ga7be4e25a210527efa6a2f35654a883c2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga7be4e25a210527efa6a2f35654a883c2">flames_midas_sccadd</a> (cpl_frameset *catfile, const char *name, const char *ident)</td></tr>
-<tr class="memdesc:ga7be4e25a210527efa6a2f35654a883c2"><td class="mdescLeft"> </td><td class="mdescRight">Add catalog entry.  <a href="#ga7be4e25a210527efa6a2f35654a883c2"></a><br/></td></tr>
-<tr class="memitem:gacd8b0d2f194d8ea65feea67f5d59772c"><td class="memItemLeft" align="right" valign="top">static cpl_type </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gacd8b0d2f194d8ea65feea67f5d59772c">table_dtype_to_cpltype</a> (int dtype, int alen)</td></tr>
-<tr class="memdesc:gacd8b0d2f194d8ea65feea67f5d59772c"><td class="mdescLeft"> </td><td class="mdescRight">Map MIDAS dtypes to CPL types.  <a href="#gacd8b0d2f194d8ea65feea67f5d59772c"></a><br/></td></tr>
-<tr class="memitem:ga719a4f7457ed2683599e5f62a429e1af"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga719a4f7457ed2683599e5f62a429e1af">sizeof_cpltype</a> (cpl_type type)</td></tr>
-<tr class="memdesc:ga719a4f7457ed2683599e5f62a429e1af"><td class="mdescLeft"> </td><td class="mdescRight">Get sizeof CPL types.  <a href="#ga719a4f7457ed2683599e5f62a429e1af"></a><br/></td></tr>
-<tr class="memitem:gaff61faa79a507025396b5ff638457e5b"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaff61faa79a507025396b5ff638457e5b">table_cpltype_to_dtype</a> (cpl_type type)</td></tr>
-<tr class="memdesc:gaff61faa79a507025396b5ff638457e5b"><td class="mdescLeft"> </td><td class="mdescRight">Map CPL types to MIDAS dtypes.  <a href="#gaff61faa79a507025396b5ff638457e5b"></a><br/></td></tr>
-<tr class="memitem:ga638d89407aed0a4641df1ce39f70392a"><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga638d89407aed0a4641df1ce39f70392a">table_colname_from_number</a> (int tid, int column)</td></tr>
-<tr class="memdesc:ga638d89407aed0a4641df1ce39f70392a"><td class="mdescLeft"> </td><td class="mdescRight">Convert table numer to name.  <a href="#ga638d89407aed0a4641df1ce39f70392a"></a><br/></td></tr>
-<tr class="memitem:ga3ef46ff32b2d2f17c817a788076db09a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga3ef46ff32b2d2f17c817a788076db09a">flames_midas_tctopn</a> (const char *name, int mode, int allrow, int *tid)</td></tr>
-<tr class="memdesc:ga3ef46ff32b2d2f17c817a788076db09a"><td class="mdescLeft"> </td><td class="mdescRight">Open table.  <a href="#ga3ef46ff32b2d2f17c817a788076db09a"></a><br/></td></tr>
-<tr class="memitem:ga682523f91d2e727497904d2abafd4171"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga682523f91d2e727497904d2abafd4171">flames_midas_tctclo</a> (int tid)</td></tr>
-<tr class="memdesc:ga682523f91d2e727497904d2abafd4171"><td class="mdescLeft"> </td><td class="mdescRight">Closes a table.  <a href="#ga682523f91d2e727497904d2abafd4171"></a><br/></td></tr>
-<tr class="memitem:ga08eeeb2f1d0362d03eb83612d1407e47"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga08eeeb2f1d0362d03eb83612d1407e47">flames_midas_tccser</a> (int tid, const char *colref, int *column)</td></tr>
-<tr class="memdesc:ga08eeeb2f1d0362d03eb83612d1407e47"><td class="mdescLeft"> </td><td class="mdescRight">Search column by reference.  <a href="#ga08eeeb2f1d0362d03eb83612d1407e47"></a><br/></td></tr>
-<tr class="memitem:gac90526c6f62d53d6dda4f12709366401"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gac90526c6f62d53d6dda4f12709366401">flames_midas_tciget</a> (int tid, int *column, int *row)</td></tr>
-<tr class="memdesc:gac90526c6f62d53d6dda4f12709366401"><td class="mdescLeft"> </td><td class="mdescRight">Reads table size information.  <a href="#gac90526c6f62d53d6dda4f12709366401"></a><br/></td></tr>
-<tr class="memitem:gabfccd17a94b63af4a405b06f65e8a9c3"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gabfccd17a94b63af4a405b06f65e8a9c3">flames_midas_tcbget</a> (int tid, int column, int *dtype, int *items, int *bytes)</td></tr>
-<tr class="memdesc:gabfccd17a94b63af4a405b06f65e8a9c3"><td class="mdescLeft"> </td><td class="mdescRight">Reads binary storage characteristics of column.  <a href="#gabfccd17a94b63af4a405b06f65e8a9c3"></a><br/></td></tr>
-<tr class="memitem:ga54f9ec2adf2926835533fd239b0ecf07"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga54f9ec2adf2926835533fd239b0ecf07">flames_midas_tcdget</a> (int tid, int *store)</td></tr>
-<tr class="memdesc:ga54f9ec2adf2926835533fd239b0ecf07"><td class="mdescLeft"> </td><td class="mdescRight">Reads table storage format (F_TRANS or F_RECORD)  <a href="#ga54f9ec2adf2926835533fd239b0ecf07"></a><br/></td></tr>
-<tr class="memitem:ga42b0965ecfa0c67c6e03e34ab9c9f6c3"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga42b0965ecfa0c67c6e03e34ab9c9f6c3">flames_midas_tcfget</a> (int tid, int column, char *form, int *dtype)</td></tr>
-<tr class="memdesc:ga42b0965ecfa0c67c6e03e34ab9c9f6c3"><td class="mdescLeft"> </td><td class="mdescRight">Reads column format.  <a href="#ga42b0965ecfa0c67c6e03e34ab9c9f6c3"></a><br/></td></tr>
-<tr class="memitem:ga07f9619101216e3d306e6dc69dd6bce2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga07f9619101216e3d306e6dc69dd6bce2">flames_midas_tclget</a> (int tid, int column, char *label)</td></tr>
-<tr class="memdesc:ga07f9619101216e3d306e6dc69dd6bce2"><td class="mdescLeft"> </td><td class="mdescRight">Reads column label.  <a href="#ga07f9619101216e3d306e6dc69dd6bce2"></a><br/></td></tr>
-<tr class="memitem:ga2206e126a49362e551a9f6cceb8bc4e6"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga2206e126a49362e551a9f6cceb8bc4e6">flames_midas_tcuget</a> (int tid, int column, char *unit)</td></tr>
-<tr class="memdesc:ga2206e126a49362e551a9f6cceb8bc4e6"><td class="mdescLeft"> </td><td class="mdescRight">Reads column unit.  <a href="#ga2206e126a49362e551a9f6cceb8bc4e6"></a><br/></td></tr>
-<tr class="memitem:ga2cfaafe6ece41ed12cf798605688c74d"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga2cfaafe6ece41ed12cf798605688c74d">flames_midas_tclser</a> (int tid, const char *label, int *column)</td></tr>
-<tr class="memdesc:ga2cfaafe6ece41ed12cf798605688c74d"><td class="mdescLeft"> </td><td class="mdescRight">Searches the sequential number of the column having the given label, case insensitive.  <a href="#ga2cfaafe6ece41ed12cf798605688c74d"></a><br/></td></tr>
-<tr class="memitem:ga056439b490e9f15fb439956f97da18a6"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga056439b490e9f15fb439956f97da18a6">flames_midas_tccini</a> (int tid, int dtype, int alen, const char *form, const char *unit, const char *label, int *column)</td></tr>
-<tr class="memdesc:ga056439b490e9f15fb439956f97da18a6"><td class="mdescLeft"> </td><td class="mdescRight">Initializes table column.  <a href="#ga056439b490e9f15fb439956f97da18a6"></a><br/></td></tr>
-<tr class="memitem:ga583dd528e15702b2e4bdf48c02511a04"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04">tcerd</a> (cpl_type type, int tid, int row, int column, void *value, int *null)</td></tr>
-<tr class="memdesc:ga583dd528e15702b2e4bdf48c02511a04"><td class="mdescLeft"> </td><td class="mdescRight">Reads table element.  <a href="#ga583dd528e15702b2e4bdf48c02511a04"></a><br/></td></tr>
-<tr class="memitem:gac6c54281929d88f009f4e4d2de078948"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gac6c54281929d88f009f4e4d2de078948">flames_midas_tcerdc</a> (int tid, int row, int column, char *values, int *null)</td></tr>
-<tr class="memitem:gaf38f1e0716373fba8c2cd7cea07ef7d0"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaf38f1e0716373fba8c2cd7cea07ef7d0">flames_midas_tcerdi</a> (int tid, int row, int column, int *value, int *null)</td></tr>
-<tr class="memitem:gadce2330c6f7b37cd8694fb195c4d240e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gadce2330c6f7b37cd8694fb195c4d240e">flames_midas_tcerdr</a> (int tid, int row, int column, float *value, int *null)</td></tr>
-<tr class="memitem:ga338a9cb9bd7b9c78c6722879a6a6dcb7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga338a9cb9bd7b9c78c6722879a6a6dcb7">flames_midas_tcerdd</a> (int tid, int row, int column, double *value, int *null)</td></tr>
-<tr class="memitem:ga1f2951b5eaf4690950adc4a7fe151a5e"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e">tcewr</a> (cpl_type type, int tid, int row, int column, const void *value)</td></tr>
-<tr class="memdesc:ga1f2951b5eaf4690950adc4a7fe151a5e"><td class="mdescLeft"> </td><td class="mdescRight">Write table element.  <a href="#ga1f2951b5eaf4690950adc4a7fe151a5e"></a><br/></td></tr>
-<tr class="memitem:gae63b97b3d22a206f5d520d0720e79f05"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gae63b97b3d22a206f5d520d0720e79f05">flames_midas_tcewrc</a> (int tid, int row, int column, const char *value)</td></tr>
-<tr class="memitem:gaf56d454eb421323a18cb00a7a238608b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaf56d454eb421323a18cb00a7a238608b">flames_midas_tcewrd</a> (int tid, int row, int column, const double *value)</td></tr>
-<tr class="memitem:ga8ddb72626aebb5ce88e19f3f01f49eed"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga8ddb72626aebb5ce88e19f3f01f49eed">flames_midas_tcewri</a> (int tid, int row, int column, const int *value)</td></tr>
-<tr class="memitem:ga267fba0020bb3e6ba80f1fca111b3847"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga267fba0020bb3e6ba80f1fca111b3847">flames_midas_tcewrr</a> (int tid, int row, int column, const float *value)</td></tr>
-<tr class="memitem:ga8f640b729dc132a3dfb6151317f54ad7"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga8f640b729dc132a3dfb6151317f54ad7">tcard</a> (cpl_type type, int tid, int row, int column, int index, int items, void *value)</td></tr>
-<tr class="memitem:ga68685d0b50cdc0635a5deb9b2048badd"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga68685d0b50cdc0635a5deb9b2048badd">flames_midas_tcardc</a> (int tid, int row, int col, int index, int items, char *value)</td></tr>
-<tr class="memdesc:ga68685d0b50cdc0635a5deb9b2048badd"><td class="mdescLeft"> </td><td class="mdescRight">Reads table elements as a character string. Arrays are edited with a comma between elements.  <a href="#ga68685d0b50cdc0635a5deb9b2048badd"></a><br/></td></tr>
-<tr class="memitem:ga91ac96ae8f80e7d763aba17d63d43f94"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga91ac96ae8f80e7d763aba17d63d43f94">flames_midas_tcardd</a> (int tid, int row, int col, int index, int items, double *value)</td></tr>
-<tr class="memdesc:ga91ac96ae8f80e7d763aba17d63d43f94"><td class="mdescLeft"> </td><td class="mdescRight">Reads table elements as a double precision value.  <a href="#ga91ac96ae8f80e7d763aba17d63d43f94"></a><br/></td></tr>
-<tr class="memitem:ga6f1a804eb044a99139f18d7d47d5f033"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga6f1a804eb044a99139f18d7d47d5f033">flames_midas_tcardi</a> (int tid, int row, int col, int index, int items, int *value)</td></tr>
-<tr class="memitem:ga7828917beff1870f6c63d8d91a426589"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga7828917beff1870f6c63d8d91a426589">flames_midas_tcardr</a> (int tid, int row, int col, int index, int items, float *value)</td></tr>
-<tr class="memitem:ga65e78c6b1bd838a7bbb398c2cc572168"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga65e78c6b1bd838a7bbb398c2cc572168">tcawr</a> (cpl_type type, int tid, int row, int col, int index, int items, const void *value)</td></tr>
-<tr class="memitem:ga4025c0c05f7c29795606053fa93246ad"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga4025c0c05f7c29795606053fa93246ad">flames_midas_tcawrc</a> (int tid, int row, int col, int index, int items, const char *value)</td></tr>
-<tr class="memdesc:ga4025c0c05f7c29795606053fa93246ad"><td class="mdescLeft"> </td><td class="mdescRight">Writes table element, character string format.  <a href="#ga4025c0c05f7c29795606053fa93246ad"></a><br/></td></tr>
-<tr class="memitem:gaed6dea021e90e8503f6875b16024bb32"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaed6dea021e90e8503f6875b16024bb32">flames_midas_tcawrd</a> (int tid, int row, int col, int index, int items, const double *value)</td></tr>
-<tr class="memdesc:gaed6dea021e90e8503f6875b16024bb32"><td class="mdescLeft"> </td><td class="mdescRight">Writes table element, double precision argument.  <a href="#gaed6dea021e90e8503f6875b16024bb32"></a><br/></td></tr>
-<tr class="memitem:ga8498644f4cd378cb9ba89010d0274ffc"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#ga8498644f4cd378cb9ba89010d0274ffc">flames_midas_tcawri</a> (int tid, int row, int col, int index, int items, const int *value)</td></tr>
-<tr class="memitem:gae6d07668fce8fac7c7e9809b4a630110"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gae6d07668fce8fac7c7e9809b4a630110">flames_midas_tcawrr</a> (int tid, int row, int col, int index, int items, const float *value)</td></tr>
-<tr class="memitem:gaabd3993df69252bebb2f975a1502d310"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gaabd3993df69252bebb2f975a1502d310">flames_midas_tcsget</a> (int tid, int row, int *value)</td></tr>
-<tr class="memdesc:gaabd3993df69252bebb2f975a1502d310"><td class="mdescLeft"> </td><td class="mdescRight">Reads row selection flag.  <a href="#gaabd3993df69252bebb2f975a1502d310"></a><br/></td></tr>
-<tr class="memitem:gad64c1f681e05a9b74ac51da43d762eba"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__midas__def.html#gad64c1f681e05a9b74ac51da43d762eba">flames_midas_tcsput</a> (int tid, int row, const int *value)</td></tr>
-<tr class="memdesc:gad64c1f681e05a9b74ac51da43d762eba"><td class="mdescLeft"> </td><td class="mdescRight">Writes row selection flag.  <a href="#gad64c1f681e05a9b74ac51da43d762eba"></a><br/></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="var-members"></a>
-Variables</h2></td></tr>
-<tr class="memitem:gac3ca71e862eef6e44b8b6e676677fb10"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac3ca71e862eef6e44b8b6e676677fb10"></a>
-struct <a class="el" href="structframe.html">frame</a> </td><td class="memItemRight" valign="bottom"><b>frames</b> [MAX_OPEN]</td></tr>
-<tr class="memitem:ga440f90dd7ecf16fa50d2798e10b40034"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga440f90dd7ecf16fa50d2798e10b40034"></a>
-const char * </td><td class="memItemRight" valign="bottom"><b>current_caller</b> = NULL</td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This is not intended to be a full implementation of the C->MIDAS interface, but only of the parts that are necessary for the FLAMES pipeline</p>
-<p>Error handling: The functions in this module return an integer error code (expected by the FLAMES C-code) and set the cpl_error_code in case of an error</p>
-<p>Bugs:</p>
-<ol type="1">
-<li>table column formats are not handled because CPL table i/o is broken. That is not a problem for the FLAMES code which does not depend on the actual values of the format strings. (But table column units <em>are</em> handled (by a workaround, this also didn't work in CPL))</li>
-</ol>
-<ol type="1">
-<li>There are no checks for NULL input (which is ok because the FLAMES code always provides non-null pointers) </li>
-</ol>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga628fc7f332c82f61ffa18e0c8a510b66"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static bool invariant </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Structure invariant. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">id</td><td>frame id </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>true if the invariant holds</dd></dl>
-<p>This function is used to detect bugs in this member functions. Typical usage:</p>
-<p>assert( invariant );</p>
-<p>in the beginning and end of every member function. </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l00436">436</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03535">flames_midas_scddel()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02701">flames_midas_scdfnd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02784">flames_midas_scdprs()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02259">flames_midas_scfcre()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02506">flames_midas_scfget()</a>, <a class="el" href="flames__mi [...]
-
-</div>
-</div>
-<a class="anchor" id="ga2cb311b01e4e6bded79ab0fa84065dbb"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static bool frame_is_open </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Tell if frame is open. </p>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l00469">469</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03535">flames_midas_scddel()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02259">flames_midas_scfcre()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02506">flames_midas_scfget()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02193">flames_midas_scfopn()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02595">flames_midas_scfput()</a>, <a class="el" href="flames__mi [...]
-
-</div>
-</div>
-<a class="anchor" id="ga039acefae152f656c10c8f92123dff18"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void frame_new_image </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>need_to_save</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>dtype</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Create new image frame. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">id</td><td>frame id </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l00482">482</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l02259">flames_midas_scfcre()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l02193">flames_midas_scfopn()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab7f90aa20c3ad6bb30b38c96cce9503a"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void frame_new_table </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>need_to_save</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxrow</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>colnames</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Create new table frame. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">id</td><td>frame id </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l00520">520</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l04101">flames_midas_tctopn()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1d9507f11db5958a512c4bfac897d11e"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void frame_free </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Deallocate frame. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">id</td><td>frame id </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l00569">569</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l01579">flames_midas_scsepi()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l02322">frame_close()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga62f37c098ceea9f00ff6d148787d94a2"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static bool is_special_midas_descr </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Find out if FITS descriptor has a different name from MIDAS. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">descr</td><td>name </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>true if special </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l00595">595</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l00878">load_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac5996d64d908d2cfa6f94ea779a0ea95"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static const char* convert_to_fits </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>indx</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Map MIDAS descriptors to FITS equivalents. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">descr</td><td>MIDAS descriptor name </td></tr>
-    <tr><td class="paramname">indx</td><td>counting from 1 </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Newly allocated keyword name, which is a copy of the input string if not a special MIDAS descriptor. </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l00620">620</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l01316">create_descr()</a>, <a class="el" href="flames__midas__def_8c_source.html#l03795">flames_midas_sccget()</a>, <a class="el" href="flames__midas__def_8c_source.html#l03535">flames_midas_scddel()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l01440">get_descr_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac7d5af5ecd10af15fb036eb988b61527"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void convert_to_history </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>header</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Convert header for output. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">header</td><td>to convert</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>Sequences of properties like (LOONGNAME, value1) (LOONGNAME, value2) (LOONGNAME, value3) (LOONGNAME, value4) with name longer than 8 characters are converted to (HISTORY, "'LOONGNAME'"); (HISTORY, "value1"); (HISTORY, "value2"); (HISTORY, "value3"); (HISTORY, "value4"); (HISTORY, "");</p>
-<p>except "ESO [something]" descriptors which should not be converted.</p>
-<p>Also a descriptors with comment 'MIDAS_DESC' are converted, such as COEFFI, FIBREPOS </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l00698">698</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__propertylist_8c_source.html#l00809">uves_propertylist_duplicate()</a>, <a class="el" href="uves__propertylist_8c_source.html#l00898">uves_propertylist_get_size()</a>, <a class="el" href="uves__propertylist_8c_source.html#l00772">uves_propertylist_new()</a>, and <a class="el" href="uves__dump_8c_source.html [...]
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l02322">frame_close()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga9e7eadf2d9728e691ea6faf51032cd8c"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a>* load_header </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>extension</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Load + parse FITS header HISTORY keywords. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>to load </td></tr>
-    <tr><td class="paramname">extension</td><td>to load </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>FITS header</dd></dl>
-<p>MIDAS properties like this</p>
-<p>(HISTORY, "'KEYWORDNAME'") (HISTORY, "value1 value2 ...") : (HISTORY, "")</p>
-<p>are converted to properties</p>
-<p>(KEYWORDNAME, value1) (KEYWORDNAME, value2) : </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l00878">878</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00595">is_special_midas_descr()</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, <a class="el" href="uves__propertylist_8c_source.html#l04075">uves_propertylist_append_c_double()</a>, <a class="el" href="uves__propertylist_8c_source.html#l04019">uves_propertylist_append_c_float()</a>, <a class="el" href="uves__propertylist_8 [...]
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l01029">load_frame_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6beb815e71b5dc0c97723fea885b87fb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_type flames_midas_image_dtype_to_cpltype </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>dtype</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Map MIDAS dtypes to CPL types. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">dtype</td><td>MIDAS type to convert </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l00998">998</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l02259">flames_midas_scfcre()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l02193">flames_midas_scfopn()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga01414f0f04f79fd8686c2f6f9f478fbc"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void load_frame_header </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Load frame FITS header if not already in memory. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">id</td><td>frame id </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>The image/table must already be open (i.e. have legal filename) </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01029">1029</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00878">load_header()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves [...]
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l02322">frame_close()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01440">get_descr_info()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l03607">scdcop()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac43d4468f847fadb5e9ff0895b0cab16"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void set_column_format_unit_tnull </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>t</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>theader</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>CPL workaround DFS03746. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">t</td><td>table to update </td></tr>
-    <tr><td class="paramname">colname</td><td>name of column to update </td></tr>
-    <tr><td class="paramname">theader</td><td>table extension header, which contains unit/format info </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01065">1065</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__propertylist_8c_source.html#l01045">uves_propertylist_contains()</a>, <a class="el" href="uves__propertylist_8c_source.html#l01972">uves_propertylist_get_int()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l02322">uves_propertylist_get_string()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l01170">load_frame()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaeb6e0604594f159f7c9fc457dff64886"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void load_frame </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Load image/table if not already in memory. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">id</td><td>frame id </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01170">1170</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="flames__midas__def_8c_source.html#l01065">set_column_format_unit_tnull()</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="e [...]
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l02506">flames_midas_scfget()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02595">flames_midas_scfput()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04435">flames_midas_tccini()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04182">flames_midas_tccser()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04234">flames_midas_tciget()</a>, <a class="el" href="flames__mi [...]
-
-</div>
-</div>
-<a class="anchor" id="ga660658a114854b46d0dd27605ea01711"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_property** create_descr </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>length</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nexist</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Create descriptors. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">header</td><td>add new descriptors here </td></tr>
-    <tr><td class="paramname">descr</td><td>descriptor name </td></tr>
-    <tr><td class="paramname">type</td><td>descriptor type </td></tr>
-    <tr><td class="paramname">length</td><td>number of descriptors to create. If type is 'C' only one property is created </td></tr>
-    <tr><td class="paramname">nexist</td><td>number of already existing descriptors with this name </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>NULL terminated array of pointers to existing descriptors </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01316">1316</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00620">convert_to_fits()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__propertylist_8c_source.html#l04075">uves_propertylist_append_c_double()</a>, <a class="el" href="uves__propertylist_8c_source.html#l04019">uves_propertylist_app [...]
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03137">scdwr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga39b00de90ed04a8759704d6ad997c30c"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_property** get_descr_info </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>length</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>bytelem</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get descriptor information. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">id</td><td>frame number </td></tr>
-    <tr><td class="paramname">descr</td><td>descriptor name </td></tr>
-    <tr><td class="paramname">type</td><td>(output) descriptor type </td></tr>
-    <tr><td class="paramname">length</td><td>(output) descriptor length, if type string the string length </td></tr>
-    <tr><td class="paramname">bytelem</td><td>(output) bytes per element </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>NULL terminated array of pointers to existing properties, or NULL if error. The array itself must be free'd, but the properties pointed to should not be free'd.</dd></dl>
-<p>The special MIDAS descriptor arrays are handled, e.g. STEP is mapped to to CRVAL1, not CRVAL2, CRVAL3...</p>
-<p>If the descriptor does not exist, NULL is returned but no error is set </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01440">1440</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00620">convert_to_fits()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01029">load_frame_header()</a>, <a clas [...]
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03535">flames_midas_scddel()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02701">flames_midas_scdfnd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02784">flames_midas_scdprs()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02322">frame_close()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02869">scdrd()</a>, and <a class="el" href="flames__midas__def_8c_source [...]
-
-</div>
-</div>
-<a class="anchor" id="gafb520332aaae57a6e23cd3004aaf9edd"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scspro </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get into the MIDAS environment. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">name</td><td>name of calling program </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>Read keywords database, Initialize file control table, Open logfile </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01549">1549</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga404f30f6b856c9aef1049281f08821a7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scsepi </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Deinitialize interface. </p>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01579">1579</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l00569">frame_free()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l01646">flames_midas_fail_macro()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5782950076486effd61983d7e9cfdca7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_error_macro </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>file</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>function</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>line</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>status</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print debugging info when function returns error. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">status</td><td>to be returned </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>status</dd></dl>
-<p>In the original FLAMES C code, low level function failure return statements like</p>
-<p>"return MAREMMA;"</p>
-<p>are replaced with</p>
-<p>"return flames_midas_error(MAREMMA)"</p>
-<p>to allow tracking the errors </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01627">1627</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gafb38d16898bedd5466e128e2fc7685ec"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_fail_macro </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>file</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>function</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>line</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Deinitialize interface, cleanup and return failure. </p>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>This function replaces the "exit(1)" calls in the original MIDAS source code </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01646">1646</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l01579">flames_midas_scsepi()</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves__msg_8h_source.html#l00064">uves_msg_error</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac9bb00d4973c0c331c191b7181813603"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckwri </td>
-          <td>(</td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>unit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write data into integer keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">key</td><td>address of keyword </td></tr>
-    <tr><td class="paramname">values</td><td>buffer with data values </td></tr>
-    <tr><td class="paramname">felem</td><td>position of 1st element to be written (numbered from 1) </td></tr>
-    <tr><td class="paramname">maxvals</td><td>max no. of elements to write </td></tr>
-    <tr><td class="paramname">unit</td><td>unit pointer </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01673">1673</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf92f6c07d3bdb40c5a94cbda4ef5759d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckwrd </td>
-          <td>(</td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>unit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write data into double keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">key</td><td>address of keyword </td></tr>
-    <tr><td class="paramname">values</td><td>buffer with data values </td></tr>
-    <tr><td class="paramname">felem</td><td>position of 1st element to be written (numbered from 1) </td></tr>
-    <tr><td class="paramname">maxvals</td><td>max no. of elements to write </td></tr>
-    <tr><td class="paramname">unit</td><td>unit pointer </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01702">1702</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga456cfe0c7a3174be7b4743a50c35af06"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckwrc </td>
-          <td>(</td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>noelem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>unit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write data into character keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">key</td><td>address of keyword </td></tr>
-    <tr><td class="paramname">noelem</td><td>number of bytes per data value </td></tr>
-    <tr><td class="paramname">values</td><td>buffer with data values </td></tr>
-    <tr><td class="paramname">felem</td><td>position of 1st element to be written (numbered from 1) </td></tr>
-    <tr><td class="paramname">maxvals</td><td>max no. of elements to write </td></tr>
-    <tr><td class="paramname">unit</td><td>unit pointer </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01735">1735</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad5428f85c2051eb80233c722be600384"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckgetc </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>values</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get data from character keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">key</td><td>keyword name (max 8 characters) </td></tr>
-    <tr><td class="paramname">felem</td><td>position of 1st element (numbered from 1) </td></tr>
-    <tr><td class="paramname">maxvals</td><td>max no. of characters to be returned (buffer size including terminating 0) </td></tr>
-    <tr><td class="paramname">actvals</td><td>(output) actual number of characters returned </td></tr>
-    <tr><td class="paramname">values</td><td>(output) buffer for data values </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01763">1763</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa8dd2c0f402ef4d7f25cab80633315d2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckgetc_fs </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset ** </td>
-          <td class="paramname"><em>values</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get data from character keyword (catalogue) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">key</td><td>input catalogue </td></tr>
-    <tr><td class="paramname">felem</td><td>position of 1st element (must be 1) </td></tr>
-    <tr><td class="paramname">maxvals</td><td>max no. of characters to be returned </td></tr>
-    <tr><td class="paramname">actvals</td><td>(output) actual number of characters returned </td></tr>
-    <tr><td class="paramname">values</td><td>(output) same as input </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01797">1797</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf5a5ab0dd30aa57b7190dd16282b405c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckgetc_fsp </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset ** </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frameset *** </td>
-          <td class="paramname"><em>values</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get data from character keyword (frame set pointer) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">key</td><td>input catalogue </td></tr>
-    <tr><td class="paramname">felem</td><td>position of 1st element (must be 1) </td></tr>
-    <tr><td class="paramname">maxvals</td><td>max no. of characters to be returned </td></tr>
-    <tr><td class="paramname">actvals</td><td>(output) actual number of characters returned </td></tr>
-    <tr><td class="paramname">values</td><td>(output) same as input </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01825">1825</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae85c7a6f7d741e6daef4b9b22ac45445"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckrdd </td>
-          <td>(</td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>unit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read data from double precision keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">key</td><td>keyword array </td></tr>
-    <tr><td class="paramname">felem</td><td>first data item to be read </td></tr>
-    <tr><td class="paramname">maxvals</td><td>no. of elements to get </td></tr>
-    <tr><td class="paramname">actvals</td><td>(output) actual number of elements returned </td></tr>
-    <tr><td class="paramname">values</td><td>(output) buffer for data values </td></tr>
-    <tr><td class="paramname">unit</td><td>(output) address of unit pointer </td></tr>
-    <tr><td class="paramname">null</td><td>(output) no. of null values in keyword </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01855">1855</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga111509252ea742fbf16c4d1094e50984"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckrdr </td>
-          <td>(</td>
-          <td class="paramtype">const float * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>unit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read data from real precision keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">key</td><td>keyword array </td></tr>
-    <tr><td class="paramname">felem</td><td>first data item to be read </td></tr>
-    <tr><td class="paramname">maxvals</td><td>no. of elements to get </td></tr>
-    <tr><td class="paramname">actvals</td><td>(output) actual number of elements returned </td></tr>
-    <tr><td class="paramname">values</td><td>(output) buffer for data values </td></tr>
-    <tr><td class="paramname">unit</td><td>(output) address of unit pointer </td></tr>
-    <tr><td class="paramname">null</td><td>(output) no. of null values in keyword </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01890">1890</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga9141f1db2730a7ca7017cb6c3f630212"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckrdi </td>
-          <td>(</td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>unit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read data from integer keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">key</td><td>keyword array </td></tr>
-    <tr><td class="paramname">felem</td><td>first data item to be read </td></tr>
-    <tr><td class="paramname">maxvals</td><td>no. of elements to get </td></tr>
-    <tr><td class="paramname">actvals</td><td>(output) actual number of elements returned </td></tr>
-    <tr><td class="paramname">values</td><td>(output) buffer for data values </td></tr>
-    <tr><td class="paramname">unit</td><td>(output) address of unit pointer </td></tr>
-    <tr><td class="paramname">null</td><td>(output) no. of null values in keyword </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01925">1925</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadf589fba446c3b815b0f3cd2d1ae2313"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckrdc </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>noelm</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>unit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read data from string keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">key</td><td>keyword array </td></tr>
-    <tr><td class="paramname">noelm</td><td>no. of bytes per data values </td></tr>
-    <tr><td class="paramname">felem</td><td>first data item to be read </td></tr>
-    <tr><td class="paramname">maxvals</td><td>no. of elements to get </td></tr>
-    <tr><td class="paramname">actvals</td><td>(output) actual number of elements returned </td></tr>
-    <tr><td class="paramname">values</td><td>(output) buffer for data values </td></tr>
-    <tr><td class="paramname">unit</td><td>(output) address of unit pointer </td></tr>
-    <tr><td class="paramname">null</td><td>(output) no. of null values in keyword </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01959">1959</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaafc1d839c45a943184a3bb4939d74751"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int sckfnd </td>
-          <td>(</td>
-          <td class="paramtype">const char </td>
-          <td class="paramname"><em>the_type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const void * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>noelem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>bytelem</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Find keyword and provide info on it. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">key</td><td>keyword array </td></tr>
-    <tr><td class="paramname">type</td><td>(output) keyword type </td></tr>
-    <tr><td class="paramname">noelem</td><td>(output) no. of elements </td></tr>
-    <tr><td class="paramname">bytelem</td><td>(output) no. of bytes per element </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>If keyword not found, type is ' ', and no error is set. </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l01996">1996</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l02020">flames_midas_sckfnd_double()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02029">flames_midas_sckfnd_float()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02039">flames_midas_sckfnd_int()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l02049">flames_midas_sckfnd_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaebe09f825bea8022029d7228f65ec0bd"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckfnd_double </td>
-          <td>(</td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>noelem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>bytelem</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751" title="Find keyword and provide info on it.">sckfnd</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02020">2020</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l01996">sckfnd()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad15ddc46cb5cfb84c0712bd4ea711a31"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckfnd_float </td>
-          <td>(</td>
-          <td class="paramtype">const float * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>noelem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>bytelem</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751" title="Find keyword and provide info on it.">sckfnd</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02029">2029</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l01996">sckfnd()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac7a6aa9b94f6cc8f3cde2fbdfc196508"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckfnd_int </td>
-          <td>(</td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>noelem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>bytelem</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751" title="Find keyword and provide info on it.">sckfnd</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02039">2039</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l01996">sckfnd()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa62164a8510ad12d9cc38d7ba63e6ac2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sckfnd_string </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>noelem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>bytelem</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751" title="Find keyword and provide info on it.">sckfnd</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02049">2049</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l01996">sckfnd()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga16f28e1fc62964ca37121c376f40f217"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sctput </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>msg</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>function</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>file</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>line</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Display message. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">msg</td><td>message to display </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02062">2062</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00064">uves_msg_error</a>, <a class="el" href="uves__msg_8h_source.html#l00105">uves_msg_low</a>, and <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7066ceaa10571003c4f40b9514befa55"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scfinf </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>fno</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>ibuf</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Open the frame and return file info in buffer up to 5 integers. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">name</td><td>name of data frame </td></tr>
-    <tr><td class="paramname">fno</td><td>flag for requested info </td></tr>
-    <tr><td class="paramname">ibuf</td><td>(output) buffer with requested info </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>fno = 0 for getting the file id (imno) of 'name', i.e. check if the frame has been opened already</p>
-<p>fno = 1 for getting version no., file_type, short int, int and floating format</p>
-<p>fno = 2 for getting no_bytes_per_pixel, format, pixels_per_block, startblock and lastblock</p>
-<p>fno = 3 for getting file_type, format, file_protect, file_compress</p>
-<p>fno = 4 for getting no_bytes_per_pixel, format, file_type</p>
-<p>fno = 99 to find out if file 'name' exists, no buffer is returned instead the status is set to 0 (o.k. = file exists) or not</p>
-<p>The FLAMES code uses only fno = 3, 4, 99 </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02112">2112</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__pfits_8c_source.html#l02366">uves_pfits_get_bitpix()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l05449">uves_propertylist_load()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gade8dcfb4d9b489491251c0a3bdd37c77"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scfopn </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>dattype</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>newopn</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>filtype</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>imno</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Open an existing image and return its internal file no. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">name</td><td>name of data frame </td></tr>
-    <tr><td class="paramname">dattype</td><td>data types as defined below </td></tr>
-    <tr><td class="paramname">newopn</td><td>new open flag. 0: open normally. 1: open same file again </td></tr>
-    <tr><td class="paramname">filtype</td><td>file type as defined below </td></tr>
-    <tr><td class="paramname">imno</td><td>(output) file id of frame </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02193">2193</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l00998">flames_midas_image_dtype_to_cpltype()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00482">frame_new_image()</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves__dump_8c_source.html#l00377">uves_tostring_cpl_type()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gacc0d2e992be7014e3ee51cd0e5213378"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scfcre </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>dattype</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>iomode</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>filtype</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>size</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>imno</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create an image frame with data of given type and return its internal file no. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">name</td><td>name of data frame </td></tr>
-    <tr><td class="paramname">dattype</td><td>data type </td></tr>
-    <tr><td class="paramname">iomode</td><td>opening mode </td></tr>
-    <tr><td class="paramname">filtype</td><td>file type number </td></tr>
-    <tr><td class="paramname">size</td><td>size of frame (number of values in file). Images: number of pixels </td></tr>
-    <tr><td class="paramname">imno</td><td>(output) file id of frame </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#gade8dcfb4d9b489491251c0a3bdd37c77" title="Open an existing image and return its internal file no.">flames_midas_scfopn</a> for details of different data and file types </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02259">2259</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l00998">flames_midas_image_dtype_to_cpltype()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00482">frame_new_image()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_ [...]
-
-</div>
-</div>
-<a class="anchor" id="ga74503a6b522dac56cde3c9371ad720c3"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int frame_close </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Close a frame, save to disk if necessary. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">id</td><td>frame number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02322">2322</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00698">convert_to_history()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02972">flames_midas_scdrdi()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00569">frame_free()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01440">get_descr_ [...]
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l02488">flames_midas_scfclo()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l04162">flames_midas_tctclo()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5ed8340f5fc416851f180804e976063c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scfclo </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>imno</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Close an image frame. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">imno</td><td>file id of data frame </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02488">2488</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l02322">frame_close()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga41facab5fb3ef7e61cd04eb23c221457"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scfget </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>imno</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>size</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actsize</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>bufadr</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read data from disk frame into memory. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">imno</td><td>file id of data frame </td></tr>
-    <tr><td class="paramname">felem</td><td>1st pixel to be accessed in data space </td></tr>
-    <tr><td class="paramname">size</td><td>number of data values (pixels) to be read </td></tr>
-    <tr><td class="paramname">*actsize</td><td>(output) actual number of pixels read </td></tr>
-    <tr><td class="paramname">bufadr</td><td>(output) data buffer (really a void pointer but implemented as a char pointer) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02506">2506</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01170">load_frame()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, and <a class="el" href="uves_ [...]
-
-</div>
-</div>
-<a class="anchor" id="ga7fd1da8919a2e4d23d715241851dc531"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scfput </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>imno</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>size</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>bufadr</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write data from memory into disk frame. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">imno</td><td>file id of data frame </td></tr>
-    <tr><td class="paramname">felem</td><td>1st pixel to be accessed in data space </td></tr>
-    <tr><td class="paramname">size</td><td>number of data values (pixels) to be written </td></tr>
-    <tr><td class="paramname">bufadr</td><td>data buffer (void pointer) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02595">2595</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01170">load_frame()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg [...]
-
-</div>
-</div>
-<a class="anchor" id="gae2e7cd4c8a5c1bffdbd0323fdb5aac63"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scdfnd </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>noelem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>bytelem</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Provide info about descriptor. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">id</td><td>file id of data frame </td></tr>
-    <tr><td class="paramname">descr</td><td>descriptor name (max 15 chars) </td></tr>
-    <tr><td class="paramname">type</td><td>(output) type of descriptor: 'I', 'R', 'C', 'D' or ' ' (a blank) </td></tr>
-    <tr><td class="paramname">noelem</td><td>(output) number of elements </td></tr>
-    <tr><td class="paramname">bytelem</td><td>(output) number of bytes per element </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>Search descriptor directory, if 'descr' not found, *type is set to blank </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02701">2701</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l02701">flames_midas_scdfnd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01440">get_descr_info()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, and <a class="el" h [...]
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l02701">flames_midas_scdfnd()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l02784">flames_midas_scdprs()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6b30560067a69f65864f034fcecf22b8"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scdprs </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>noelem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>bytelem</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Provide info about descriptor. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">id</td><td>file id of data frame </td></tr>
-    <tr><td class="paramname">descr</td><td>descriptor name (max 15 chars) </td></tr>
-    <tr><td class="paramname">type</td><td>(output) type of descriptor: 'I', 'R', 'C', 'D' or ' ' (a blank) </td></tr>
-    <tr><td class="paramname">noelem</td><td>(output) number of elements </td></tr>
-    <tr><td class="paramname">bytelem</td><td>(output) number of bytes per element </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>Search descriptor directory, if 'descr' not found, *type is set to blank </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02784">2784</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l02701">flames_midas_scdfnd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01440">get_descr_info()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, and <a class="el" h [...]
-
-</div>
-</div>
-<a class="anchor" id="gaeabc5771665c7fe3cd9ba0d9eb0a2e27"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int scdrd </td>
-          <td>(</td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>expected_type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">void * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>unit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Read contents of integer descriptor. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">id</td><td>file id of data frame </td></tr>
-    <tr><td class="paramname">descr</td><td>descriptor name (max 15 chars) </td></tr>
-    <tr><td class="paramname">felem</td><td>position of 1st element </td></tr>
-    <tr><td class="paramname">maxvals</td><td>max no. of elements to be returned </td></tr>
-    <tr><td class="paramname">actvals</td><td>(output) actual number of values returned </td></tr>
-    <tr><td class="paramname">values</td><td>(output) array for descriptor data </td></tr>
-    <tr><td class="paramname">unit</td><td>(output) address of unit pointer </td></tr>
-    <tr><td class="paramname">null</td><td>(output) no. of null values in data </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>actvals will be the actual number of values returned </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02869">2869</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l01440">get_descr_info()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03098">flames_midas_scdrdc()</a>, <a class="el" href="flames__midas__def_8c_source.html#l03023">flames_midas_scdrdd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02972">flames_midas_scdrdi()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l03038">flames_midas_scdrdr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0e318315f4db01837b210ed6f121abc9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scdrdi </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>unit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read contents of integer descriptor. </p>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27" title="Read contents of integer descriptor.">scdrd</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l02972">2972</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="flames__midas__def_8c_source.html#l02869">scdrd()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l02322">frame_close()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaac0ac727377c28d18f747a7d7c68ba8a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scdrdd </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>unit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read contents of double descriptor. </p>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27" title="Read contents of integer descriptor.">scdrd</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03023">3023</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l02869">scdrd()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03038">flames_midas_scdrdr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa973227da8437b4a863f3b20c6a48677"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scdrdr </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>unit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read contents of double descriptor. </p>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27" title="Read contents of integer descriptor.">scdrd</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03038">3038</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l03023">flames_midas_scdrdd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02869">scdrd()</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga364fe8ecc22777838c41847bda6ac39d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scdrdc </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>noelem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>actvals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>unit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read contents of string descriptor. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">noelem</td><td>no. of bytes per data value</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>Note: maxvals in the number of characters, excluding the final terminating '\0', i.e. maxvals should usually be one less than the buffer size</p>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27" title="Read contents of integer descriptor.">scdrd</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03098">3098</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l02869">scdrd()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3df6bb0a7782b06c85dca025c4bd5682"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int scdwr </td>
-          <td>(</td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>type_to_write</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const void * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nval</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>unit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Write a descriptor and its data. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">type_to_write</td><td>type </td></tr>
-    <tr><td class="paramname">id</td><td>file id of data frame </td></tr>
-    <tr><td class="paramname">descr</td><td>descriptor name (max 15 chars) </td></tr>
-    <tr><td class="paramname">values</td><td>buffer with descriptor data </td></tr>
-    <tr><td class="paramname">felem</td><td>position of 1st descriptor value to be accessed </td></tr>
-    <tr><td class="paramname">nval</td><td>no. of data values to write </td></tr>
-    <tr><td class="paramname">unit</td><td>unit-pointer </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>A new descriptor is added to the descriptor area, or data of an existing descriptor is modified and extended, if necessary.</p>
-<p>If felem = -1 descriptor values are appended to existing ones </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03137">3137</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l01316">create_descr()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01440">get_descr_info()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01170">load_frame()</a>, <a c [...]
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03453">flames_midas_scdwrc()</a>, <a class="el" href="flames__midas__def_8c_source.html#l03371">flames_midas_scdwrd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l03271">flames_midas_scdwri()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l03402">flames_midas_scdwrr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga13989de7cfac7c2dbf9af19b1474466c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scdwri </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nval</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>unit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write a descriptor and its data. </p>
-<p>See scdwr </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03271">3271</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="flames__midas__def_8c_source.html#l03137">scdwr()</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves__dump_8c_source.html#l00377">uves_tostring_cpl_type()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03607">scdcop()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2291fd90dbe300f347bdeb8b9406defc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scdwrd </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nval</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>unit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write a descriptor and its data. </p>
-<p>See <a class="el" href="group__flames__midas__def.html#ga13989de7cfac7c2dbf9af19b1474466c" title="Write a descriptor and its data.">flames_midas_scdwri()</a> </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03371">3371</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l03371">flames_midas_scdwrd()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l03137">scdwr()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03371">flames_midas_scdwrd()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l03402">flames_midas_scdwrr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1529d77bc40fef94b2ff2c3e00c478e1"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scdwrr </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const float * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nval</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>unit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write a descriptor and its data. </p>
-<p>See <a class="el" href="group__flames__midas__def.html#ga13989de7cfac7c2dbf9af19b1474466c" title="Write a descriptor and its data.">flames_midas_scdwri()</a> </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03402">3402</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l03371">flames_midas_scdwrd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l03137">scdwr()</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga44cabf3bf150345b7212c5b7b53b98c2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scdwrc </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>noelm</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>felem</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nval</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>unit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write a descriptor and its data. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">noelm</td><td>no. of bytes per data value</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>See <a class="el" href="group__flames__midas__def.html#ga13989de7cfac7c2dbf9af19b1474466c" title="Write a descriptor and its data.">flames_midas_scdwri()</a></p>
-<p>'noelm' larger than 1 enables you to use character arrays, where each data values is in effect a char. string of 'noelm' bytes </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03453">3453</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l03453">flames_midas_scdwrc()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l03137">scdwr()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03453">flames_midas_scdwrc()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga48f59f2f6c0f646a98df741d3dca5490"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scddel </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>descr</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Delete a descriptor. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">id</td><td>frame number </td></tr>
-    <tr><td class="paramname">descr</td><td>descriptor name </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03535">3535</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00620">convert_to_fits()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01440">get_descr_info()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, and <a class= [...]
-
-</div>
-</div>
-<a class="anchor" id="gae41c12c4d3844865f17d833c1cb1417e"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int scdcop </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>from</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>to</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>mask</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>copy_naxis</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Copy descriptors from one frame to another. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">from</td><td>file id of source frame </td></tr>
-    <tr><td class="paramname">to</td><td>file id of destination frame </td></tr>
-    <tr><td class="paramname">mask</td><td>copy_mask </td></tr>
-    <tr><td class="paramname">copy_naxis</td><td>whether or not to propagate NAXIS keywords </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>Depending on 'mask' the relevant descriptors are read from the source frame and written to the destination frame</p>
-<p>1 - copy all descriptors 2 - copy only standard descriptors (see MIDAS env appendix E) 3 - copy all but standard descriptors 4 - copy single descriptor specified by parameter dsc 5 - copy all but extended list of standard descriptors</p>
-<p>The FLAMES code uses only modes 1 and 3 </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03607">3607</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="flames__midas__def_8c_source.html#l03271">flames_midas_scdwri()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01170">load_frame()</a>, <a class= [...]
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03701">flames_midas_scdcop()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l03714">flames_midas_scdcop_nonaxis()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga26847f26401dd74af7e09d6e20f3485c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scdcop </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>from</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>to</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>mask</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Copy descriptors. </p>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>See <a class="el" href="group__flames__midas__def.html#gae41c12c4d3844865f17d833c1cb1417e" title="Copy descriptors from one frame to another.">scdcop()</a> </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03701">3701</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l03607">scdcop()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga9434f71fab199b6901162d0ef9a3c72c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scdcop_nonaxis </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>from</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>to</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>mask</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Copy descriptors. </p>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>See <a class="el" href="group__flames__midas__def.html#gae41c12c4d3844865f17d833c1cb1417e" title="Copy descriptors from one frame to another.">scdcop()</a> </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03714">3714</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l03607">scdcop()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga015a9de40fda2f9647b47ebcff656176"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sccsho </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>catfile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>noent</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>last</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Show size and type of a catalog. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">catfile</td><td>catalog file </td></tr>
-    <tr><td class="paramname">noent</td><td>(output) number of entries </td></tr>
-    <tr><td class="paramname">last</td><td>(output) last entry no. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>Read and count active entries of catalog </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03731">3731</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga615dbb0a3b8642ce7a2fc6dd0f9ccdca"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sccfnd </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>catfile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>frmno</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>frame</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find corresponding frame for given entry number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">catfile</td><td>catalog file </td></tr>
-    <tr><td class="paramname">frmno</td><td>(output) frame number counting from 1 </td></tr>
-    <tr><td class="paramname">frame</td><td>(output) frame filename </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03757">3757</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga012d8363656f8f4ffbd3715f07e0fe1e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sccget </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>catfile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>flag</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>ident</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>no</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get next sequential entry from frame catalogue. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">catfile</td><td>catalog file </td></tr>
-    <tr><td class="paramname">flag</td><td>0 for name only, 1 for name and identifier (tag) </td></tr>
-    <tr><td class="paramname">name</td><td>(output) name of frame in next entry of catalog </td></tr>
-    <tr><td class="paramname">ident</td><td>(output) identifier of that frame </td></tr>
-    <tr><td class="paramname">no</td><td>(output) current/next entry number as input/output </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>Return name and identifier of next entry in catalog; return a blank in name[0] if end of frameset.</p>
-<p>Parameter 'no' has to be set to 0 in the first call of the routine.</p>
-<p>Note: The returned ident string always has length 40 </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03795">3795</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="flames__midas__def_8c_source.html#l00620">convert_to_fits()</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__propertylist_8c_source.html#l01045">uves_propertylist_contains()</a>, <a class="el" [...]
-
-</div>
-</div>
-<a class="anchor" id="ga49845ef1180d690d5d3c6aa8645217c9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_scccre </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset ** </td>
-          <td class="paramname"><em>catfile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>flag</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create a catalog. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">catfile</td><td>(output) catalog. Must be deallocated by caller </td></tr>
-    <tr><td class="paramname">type</td><td>type of files to use </td></tr>
-    <tr><td class="paramname">flag</td><td>= 1 if file dirfile.cat exists </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>Add an entry with given name and identification field to the catalog</p>
-<p>If flag = 1, read each filename from ASCII file 'dirfile.dat', else create an empty catalog </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03892">3892</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7be4e25a210527efa6a2f35654a883c2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_sccadd </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>catfile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>ident</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Add catalog entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">catfile</td><td>catalog file </td></tr>
-    <tr><td class="paramname">name</td><td>name of frame to be added </td></tr>
-    <tr><td class="paramname">ident</td><td>IDENT info of frame to be added </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>Add an entry with given name and identification field to the catalog</p>
-<p>If flag = 1, read each filename from ASCII file 'dirfile.dat', else create an empty catalog </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03924">3924</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gacd8b0d2f194d8ea65feea67f5d59772c"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_type table_dtype_to_cpltype </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>dtype</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>alen</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Map MIDAS dtypes to CPL types. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">dtype</td><td>MIDAS type to convert </td></tr>
-    <tr><td class="paramname">alen</td><td>number of array elements </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l03972">3972</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00207">passure</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l04270">flames_midas_tcbget()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l04435">flames_midas_tccini()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga719a4f7457ed2683599e5f62a429e1af"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int sizeof_cpltype </td>
-          <td>(</td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>type</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get sizeof CPL types. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">type</td><td>CPL type </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>size in bytes </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04009">4009</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__dump_8c_source.html#l00377">uves_tostring_cpl_type()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l04270">flames_midas_tcbget()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaff61faa79a507025396b5ff638457e5b"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int table_cpltype_to_dtype </td>
-          <td>(</td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>type</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Map CPL types to MIDAS dtypes. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">type</td><td>CPL type to convert </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>dtype </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04035">4035</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__dump_8c_source.html#l00377">uves_tostring_cpl_type()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l04270">flames_midas_tcbget()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l04328">flames_midas_tcfget()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga638d89407aed0a4641df1ce39f70392a"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static const char* table_colname_from_number </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Convert table numer to name. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">column</td><td>column by number (counting from 1) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>column name, or NULL if not found </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04063">4063</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01170">load_frame()</a>, and <a class="el" href="uves__error_8h_source.html#l00207">passure</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l04270">flames_midas_tcbget()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04328">flames_midas_tcfget()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04355">flames_midas_tclget()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04378">flames_midas_tcuget()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04503">tcerd()</a>, and <a class="el" href="flames__midas__def_8 [...]
-
-</div>
-</div>
-<a class="anchor" id="ga3ef46ff32b2d2f17c817a788076db09a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tctopn </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>mode</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>allrow</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>tid</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Open table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">name</td><td>table name </td></tr>
-    <tr><td class="paramname">mode</td><td>opening mode </td></tr>
-    <tr><td class="paramname">allrow</td><td>number of rows to allocate, only for F_O_MODE </td></tr>
-    <tr><td class="paramname">tid</td><td>(output) table identifier (try to keep it) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>Opens table file according to the desired mode. The opening mode can be F_I_MODE for input, F_D_MODE for descriptors only, F_IO_MODE for update.</p>
-<p>Open mode can also be F_O_MODE for output. </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04101">4101</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00520">frame_new_table()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves__propertylist_8c_source.html#l00772">uves_propertylist_new()< [...]
-
-</div>
-</div>
-<a class="anchor" id="ga682523f91d2e727497904d2abafd4171"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tctclo </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Closes a table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table identifier </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04162">4162</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l02322">frame_close()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga08eeeb2f1d0362d03eb83612d1407e47"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tccser </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>colref</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>column</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Search column by reference. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">colref</td><td>column reference </td></tr>
-    <tr><td class="paramname">column</td><td>(output) column number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>The column may <em>not</em> be designated as #number or :name, only name.</p>
-<p>Sequential search for the column label. The routine returns the column number as the last argument or -1 if the column is not found. </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04182">4182</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01170">load_frame()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, and <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l04404">flames_midas_tclser()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac90526c6f62d53d6dda4f12709366401"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tciget </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>row</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Reads table size information. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">column</td><td>(output) number of columns </td></tr>
-    <tr><td class="paramname">row</td><td>(output) number of rows </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04234">4234</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01170">load_frame()</a>, and <a class="el" href="uves__error_8h_source.html#l00207">passure</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gabfccd17a94b63af4a405b06f65e8a9c3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcbget </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>dtype</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>items</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>bytes</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Reads binary storage characteristics of column. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">column</td><td>column number </td></tr>
-    <tr><td class="paramname">dtype</td><td>(output) datatype </td></tr>
-    <tr><td class="paramname">items</td><td>(output) array size  bytes (output) storage required </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>The routine returns the datatype (one of the D_xx_FORMAT), the number of items (arrays), and the number of bytes required for the binary storage. </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04270">4270</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="flames__midas__def_8c_source.html#l04009">sizeof_cpltype()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04063">table_colname_from_number()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04035">table_cpltype_to_dtype()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l03972">table_dtype_to_cpltype()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga54f9ec2adf2926835533fd239b0ecf07"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcdget </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>store</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Reads table storage format (F_TRANS or F_RECORD) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">store</td><td>(output) physical format on disk </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04310">4310</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga42b0965ecfa0c67c6e03e34ab9c9f6c3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcfget </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>form</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>dtype</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Reads column format. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">column</td><td>column number </td></tr>
-    <tr><td class="paramname">form</td><td>(output) column format </td></tr>
-    <tr><td class="paramname">dtype</td><td>(output) data type </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04328">4328</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="flames__midas__def_8c_source.html#l04063">table_colname_from_number()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l04035">table_cpltype_to_dtype()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga07f9619101216e3d306e6dc69dd6bce2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tclget </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>label</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Reads column label. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">column</td><td>column number </td></tr>
-    <tr><td class="paramname">label</td><td>(output) label name </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04355">4355</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, and <a class="el" href="flames__midas__def_8c_source.html#l04063">table_colname_from_number()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2206e126a49362e551a9f6cceb8bc4e6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcuget </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>unit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Reads column unit. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">column</td><td>column number </td></tr>
-    <tr><td class="paramname">unit</td><td>(output) unit name </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04378">4378</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, and <a class="el" href="flames__midas__def_8c_source.html#l04063">table_colname_from_number()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2cfaafe6ece41ed12cf798605688c74d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tclser </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>label</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>column</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Searches the sequential number of the column having the given label, case insensitive. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">label</td><td>(output) label name </td></tr>
-    <tr><td class="paramname">column</td><td>(output) column number (-1 if column not found) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04404">4404</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04182">flames_midas_tccser()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga056439b490e9f15fb439956f97da18a6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tccini </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>dtype</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>alen</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>form</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>unit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>label</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>column</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Initializes table column. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">dtype</td><td>column data type (one of the D_xx_FORMAT) </td></tr>
-    <tr><td class="paramname">alen</td><td>number of array elements </td></tr>
-    <tr><td class="paramname">form</td><td>column format (is not used by FLAMES code) </td></tr>
-    <tr><td class="paramname">unit</td><td>column unit </td></tr>
-    <tr><td class="paramname">label</td><td>column label </td></tr>
-    <tr><td class="paramname">column</td><td>(output) column number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay</dd></dl>
-<p>Elements in the column are initialized as undefined (null values).</p>
-<p>Checks if column has been already defined, otherwise add the new column descriptors. The routine provides an overflow mechanism when the new column exceeds the allocated space </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04435">4435</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01170">load_frame()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="flames__mi [...]
-
-</div>
-</div>
-<a class="anchor" id="ga583dd528e15702b2e4bdf48c02511a04"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int tcerd </td>
-          <td>(</td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">void * </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Reads table element. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">type</td><td>column type </td></tr>
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">row</td><td>row number counting from 1 </td></tr>
-    <tr><td class="paramname">column</td><td>column number </td></tr>
-    <tr><td class="paramname">value</td><td>(output) actual values </td></tr>
-    <tr><td class="paramname">null</td><td>(output) if non-NULL, null flag </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 status, error and non-selected. The FLAMES C-code uses the return value only to test for error. Therefore only the error status is returned</dd></dl>
-<p>Finds the element position and convert data type if required. Only the FIRST value is read for arrays </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04503">4503</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="flames__midas__def_8c_source.html#l04063">table_colname_from_number()</a>, and <a class="el" href="uves__dump_8c_source.html#l00377">uves_tostring_cpl_type()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l04570">flames_midas_tcerdc()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04600">flames_midas_tcerdd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04580">flames_midas_tcerdi()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04590">flames_midas_tcerdr()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l04712">tcard()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac6c54281929d88f009f4e4d2de078948"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcerdc </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04" title="Reads table element.">tcerd</a></dd></dl>
-<p>Finds the element position and convert data type if required. Arrays are edited with a comma between elements. </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04570">4570</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04503">tcerd()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf38f1e0716373fba8c2cd7cea07ef7d0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcerdi </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04" title="Reads table element.">tcerd</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04580">4580</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04503">tcerd()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadce2330c6f7b37cd8694fb195c4d240e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcerdr </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04" title="Reads table element.">tcerd</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04590">4590</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04503">tcerd()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga338a9cb9bd7b9c78c6722879a6a6dcb7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcerdd </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>null</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04" title="Reads table element.">tcerd</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04600">4600</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04503">tcerd()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1f2951b5eaf4690950adc4a7fe151a5e"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int tcewr </td>
-          <td>(</td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const void * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Write table element. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">type</td><td>column type </td></tr>
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">row</td><td>row number </td></tr>
-    <tr><td class="paramname">column</td><td>column number </td></tr>
-    <tr><td class="paramname">value</td><td>actual value</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>Finds the element position and convert data type if required. Only the FIRST value is written for arrays </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04619">4619</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="flames__midas__def_8c_source.html#l04063">table_colname_from_number()</a>, and <a class="el" href="uves__dump_8c_source.html#l00377">uves_tostring_cpl_type()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l04671">flames_midas_tcewrc()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04682">flames_midas_tcewrd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04692">flames_midas_tcewri()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04701">flames_midas_tcewrr()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l04789">tcawr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae63b97b3d22a206f5d520d0720e79f05"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcewrc </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e" title="Write table element.">tcewr</a></dd></dl>
-<p>Finds the element position and convert data type if required. Element in an array must be separated by comma </p>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04671">4671</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04619">tcewr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf56d454eb421323a18cb00a7a238608b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcewrd </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e" title="Write table element.">tcewr</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04682">4682</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04619">tcewr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8ddb72626aebb5ce88e19f3f01f49eed"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcewri </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e" title="Write table element.">tcewr</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04692">4692</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04619">tcewr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga267fba0020bb3e6ba80f1fca111b3847"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcewrr </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const float * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e" title="Write table element.">tcewr</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04701">4701</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04619">tcewr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8f640b729dc132a3dfb6151317f54ad7"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int tcard </td>
-          <td>(</td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>index</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>items</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">void * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04" title="Reads table element.">tcerd</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04712">4712</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04503">tcerd()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l04740">flames_midas_tcardc()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04757">flames_midas_tcardd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04767">flames_midas_tcardi()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l04777">flames_midas_tcardr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga68685d0b50cdc0635a5deb9b2048badd"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcardc </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>col</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>index</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>items</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Reads table elements as a character string. Arrays are edited with a comma between elements. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">row</td><td>row number </td></tr>
-    <tr><td class="paramname">col</td><td>column number </td></tr>
-    <tr><td class="paramname">index</td><td>index number </td></tr>
-    <tr><td class="paramname">items</td><td>how many </td></tr>
-    <tr><td class="paramname">value</td><td>(out) actual values </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04740">4740</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04712">tcard()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga91ac96ae8f80e7d763aba17d63d43f94"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcardd </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>col</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>index</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>items</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Reads table elements as a double precision value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">row</td><td>row number </td></tr>
-    <tr><td class="paramname">col</td><td>column number </td></tr>
-    <tr><td class="paramname">index</td><td>index number </td></tr>
-    <tr><td class="paramname">items</td><td>how many </td></tr>
-    <tr><td class="paramname">value</td><td>(out) actual values </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04757">4757</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04712">tcard()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6f1a804eb044a99139f18d7d47d5f033"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcardi </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>col</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>index</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>items</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd>tcardd </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04767">4767</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04712">tcard()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7828917beff1870f6c63d8d91a426589"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcardr </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>col</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>index</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>items</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd>tcardd </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04777">4777</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04712">tcard()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga65e78c6b1bd838a7bbb398c2cc572168"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int tcawr </td>
-          <td>(</td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>col</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>index</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>items</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const void * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e" title="Write table element.">tcewr</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04789">4789</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04619">tcewr()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l04815">flames_midas_tcawrc()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04831">flames_midas_tcawrd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04840">flames_midas_tcawri()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l04850">flames_midas_tcawrr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4025c0c05f7c29795606053fa93246ad"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcawrc </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>col</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>index</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>items</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Writes table element, character string format. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">row</td><td>row number </td></tr>
-    <tr><td class="paramname">col</td><td>column number </td></tr>
-    <tr><td class="paramname">index</td><td>index number </td></tr>
-    <tr><td class="paramname">items</td><td>how many </td></tr>
-    <tr><td class="paramname">value</td><td>(out) actual value </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04815">4815</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04789">tcawr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaed6dea021e90e8503f6875b16024bb32"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcawrd </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>col</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>index</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>items</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Writes table element, double precision argument. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">row</td><td>row number </td></tr>
-    <tr><td class="paramname">col</td><td>column number </td></tr>
-    <tr><td class="paramname">index</td><td>index number </td></tr>
-    <tr><td class="paramname">items</td><td>how many </td></tr>
-    <tr><td class="paramname">value</td><td>(out) actual value </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04831">4831</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04789">tcawr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8498644f4cd378cb9ba89010d0274ffc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcawri </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>col</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>index</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>items</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd>tcawrd </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04840">4840</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04789">tcawr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae6d07668fce8fac7c7e9809b4a630110"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcawrr </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>col</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>index</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>items</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const float * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<dl class="section see"><dt>See also:</dt><dd>tcawrd </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04850">4850</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="flames__midas__def_8c_source.html#l04789">tcawr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaabd3993df69252bebb2f975a1502d310"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcsget </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Reads row selection flag. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">row</td><td>row number </td></tr>
-    <tr><td class="paramname">value</td><td>(output) selection flag (1 if selected) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04864">4864</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01170">load_frame()</a>, and <a class="el" href="uves__error_8h_source.html#l00207">passure</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad64c1f681e05a9b74ac51da43d762eba"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int flames_midas_tcsput </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>tid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Writes row selection flag. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tid</td><td>table id </td></tr>
-    <tr><td class="paramname">row</td><td>row number </td></tr>
-    <tr><td class="paramname">value</td><td>selection flag (1 if selected) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l04896">4896</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="flames__midas__def_8c_source.html#l00469">frame_is_open()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00436">invariant()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01170">load_frame()</a>, and <a class="el" href="uves__error_8h_source.html#l00207">passure</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__obs__redchain.html b/html/group__flames__obs__redchain.html
deleted file mode 100644
index 81c615d..0000000
--- a/html/group__flames__obs__redchain.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_obs_redchain</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_obs_redchain</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__obs__scired.html b/html/group__flames__obs__scired.html
deleted file mode 100644
index 53eb4c4..0000000
--- a/html/group__flames__obs__scired.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_obs_scired</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_obs_scired</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__prepbkg.html b/html/group__flames__prepbkg.html
deleted file mode 100644
index ac185ff..0000000
--- a/html/group__flames__prepbkg.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_prepbkg</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_prepbkg</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__prepfibreff.html b/html/group__flames__prepfibreff.html
deleted file mode 100644
index 5e7b0c5..0000000
--- a/html/group__flames__prepfibreff.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_prepfibreff</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_prepfibreff</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__prepnorm.html b/html/group__flames__prepnorm.html
deleted file mode 100644
index 45e0342..0000000
--- a/html/group__flames__prepnorm.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_prepnorm</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_prepnorm</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__preppa.html b/html/group__flames__preppa.html
deleted file mode 100644
index a92fac9..0000000
--- a/html/group__flames__preppa.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_preppa</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_preppa</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__prepslitff.html b/html/group__flames__prepslitff.html
deleted file mode 100644
index 5f1af3a..0000000
--- a/html/group__flames__prepslitff.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flames_prepslitff</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Flames_prepslitff</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__flames__utl__unpack.html b/html/group__flames__utl__unpack.html
deleted file mode 100644
index da9388d..0000000
--- a/html/group__flames__utl__unpack.html
+++ /dev/null
@@ -1,271 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe to unpack frames</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Recipe to unpack frames</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga31d1fccd4cd15b1c1f3c5edc8cb18693"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693">cpl_plugin_get_info</a> (cpl_pluginlist *list)</td></tr>
-<tr class="memdesc:ga31d1fccd4cd15b1c1f3c5edc8cb18693"><td class="mdescLeft"> </td><td class="mdescRight">Build the list of available plugins, for this module.  <a href="#ga31d1fccd4cd15b1c1f3c5edc8cb18693"></a><br/></td></tr>
-<tr class="memitem:ga3c9c784ff968ed213e8ec7cfe1cab44e"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__utl__unpack.html#ga3c9c784ff968ed213e8ec7cfe1cab44e">flames_utl_unpack_create</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:ga3c9c784ff968ed213e8ec7cfe1cab44e"><td class="mdescLeft"> </td><td class="mdescRight">Setup the recipe options.  <a href="#ga3c9c784ff968ed213e8ec7cfe1cab44e"></a><br/></td></tr>
-<tr class="memitem:gacda5a373304d9563500a4340f7d2cdcb"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__utl__unpack.html#gacda5a373304d9563500a4340f7d2cdcb">flames_utl_unpack_exec</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:gacda5a373304d9563500a4340f7d2cdcb"><td class="mdescLeft"> </td><td class="mdescRight">Execute the plugin instance given by the interface.  <a href="#gacda5a373304d9563500a4340f7d2cdcb"></a><br/></td></tr>
-<tr class="memitem:ga2c35d6967a972f242bdb3b1fd3e957df"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__utl__unpack.html#ga2c35d6967a972f242bdb3b1fd3e957df">flames_utl_unpack_destroy</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:ga2c35d6967a972f242bdb3b1fd3e957df"><td class="mdescLeft"> </td><td class="mdescRight">Destroy what has been created by the 'create' function.  <a href="#ga2c35d6967a972f242bdb3b1fd3e957df"></a><br/></td></tr>
-<tr class="memitem:ga9fff417a67b958ecdc54ebc0424bb691"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__flames__utl__unpack.html#ga9fff417a67b958ecdc54ebc0424bb691">flames_utl_unpack</a> (cpl_parameterlist *parlist, cpl_frameset *set)</td></tr>
-<tr class="memdesc:ga9fff417a67b958ecdc54ebc0424bb691"><td class="mdescLeft"> </td><td class="mdescRight">Get the command line options and execute the data reduction.  <a href="#ga9fff417a67b958ecdc54ebc0424bb691"></a><br/></td></tr>
-<tr class="memitem:gac9a41e89feed9de7b6af29d3a489f770"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac9a41e89feed9de7b6af29d3a489f770"></a>
-static cpl_error_code </td><td class="memItemRight" valign="bottom"><b>flames_unpack_image_from_cube</b> (cpl_frame *frm, cpl_parameterlist *parameters, cpl_frameset *set)</td></tr>
-<tr class="memitem:gae8067b3481165a2f93bf5dd95991ce53"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae8067b3481165a2f93bf5dd95991ce53"></a>
-static cpl_error_code </td><td class="memItemRight" valign="bottom"><b>flames_unpack_spectra_from_image</b> (cpl_frame *frm, cpl_parameterlist *parameters, cpl_frameset *set)</td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga31d1fccd4cd15b1c1f3c5edc8cb18693"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int cpl_plugin_get_info </td>
-          <td>(</td>
-          <td class="paramtype">cpl_pluginlist * </td>
-          <td class="paramname"><em>list</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Build the list of available plugins, for this module. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">list</td><td>the plugin list </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok</dd></dl>
-<p>This function is exported. </p>
-
-<p>Definition at line <a class="el" href="flames__utl__unpack_8c_source.html#l00110">110</a> of file <a class="el" href="flames__utl__unpack_8c_source.html">flames_utl_unpack.c</a>.</p>
-
-<p>References <a class="el" href="flames__utl__unpack_8c_source.html#l00144">flames_utl_unpack_create()</a>, <a class="el" href="flames__utl__unpack_8c_source.html#l00203">flames_utl_unpack_destroy()</a>, <a class="el" href="flames__utl__unpack_8c_source.html#l00172">flames_utl_unpack_exec()</a>, and <a class="el" href="uves__utils_8c_source.html#l01676">uves_get_license()</a>.</p>
-
-<p>Referenced by <a class="el" href="recipe__main_8c_source.html#l00064">main()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3c9c784ff968ed213e8ec7cfe1cab44e"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int flames_utl_unpack_create </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Setup the recipe options. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok</dd></dl>
-<p>Create the recipe instance and make it available to the application using the interface. </p>
-
-<p>Definition at line <a class="el" href="flames__utl__unpack_8c_source.html#l00144">144</a> of file <a class="el" href="flames__utl__unpack_8c_source.html">flames_utl_unpack.c</a>.</p>
-
-<p>References <a class="el" href="irplib__utils_8c_source.html#l01134">irplib_reset()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__utl__unpack_8c_source.html#l00110">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gacda5a373304d9563500a4340f7d2cdcb"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int flames_utl_unpack_exec </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Execute the plugin instance given by the interface. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__utl__unpack_8c_source.html#l00172">172</a> of file <a class="el" href="flames__utl__unpack_8c_source.html">flames_utl_unpack.c</a>.</p>
-
-<p>References <a class="el" href="flames__utl__unpack_8c_source.html#l00225">flames_utl_unpack()</a>, and <a class="el" href="irplib__utils_8c_source.html#l01134">irplib_reset()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__utl__unpack_8c_source.html#l00110">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2c35d6967a972f242bdb3b1fd3e957df"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int flames_utl_unpack_destroy </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Destroy what has been created by the 'create' function. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__utl__unpack_8c_source.html#l00203">203</a> of file <a class="el" href="flames__utl__unpack_8c_source.html">flames_utl_unpack.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__utl__unpack_8c_source.html#l00110">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga9fff417a67b958ecdc54ebc0424bb691"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int flames_utl_unpack </td>
-          <td>(</td>
-          <td class="paramtype">cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>set</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get the command line options and execute the data reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parlist</td><td>the parameters list </td></tr>
-    <tr><td class="paramname">framelist</td><td>the frames list </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="flames__utl__unpack_8c_source.html#l00225">225</a> of file <a class="el" href="flames__utl__unpack_8c_source.html">flames_utl_unpack.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00064">uves_msg_error</a>, <a class="el" href="uves__pfits_8c_source.html#l02327">uves_pfits_get_naxis()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l05449">uves_propertylist_load()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__utl__unpack_8c_source.html#l00172">flames_utl_unpack_exec()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__calib.html b/html/group__irplib__calib.html
deleted file mode 100644
index 55d2f26..0000000
--- a/html/group__irplib__calib.html
+++ /dev/null
@@ -1,930 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Functions for calibrations</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Functions for calibrations</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gaccb4324b15367dbe7d2aa57757b400a3"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#gaccb4324b15367dbe7d2aa57757b400a3">irplib_pfits_get_dit</a> (const cpl_propertylist *plist)</td></tr>
-<tr class="memdesc:gaccb4324b15367dbe7d2aa57757b400a3"><td class="mdescLeft"> </td><td class="mdescRight">find out the character string associated to the DIT keyword in a propertylist  <a href="#gaccb4324b15367dbe7d2aa57757b400a3"></a><br/></td></tr>
-<tr class="memitem:ga1940301f70f9920a94298e7aa9db4701"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#ga1940301f70f9920a94298e7aa9db4701">irplib_pfits_get_exp_time</a> (const cpl_propertylist *plist)</td></tr>
-<tr class="memdesc:ga1940301f70f9920a94298e7aa9db4701"><td class="mdescLeft"> </td><td class="mdescRight">find out the character string associated to the EXPTIME keyword  <a href="#ga1940301f70f9920a94298e7aa9db4701"></a><br/></td></tr>
-<tr class="memitem:gac2d85317fd9377986277e318e510a439"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439">irplib_get_clean_mean_window</a> (cpl_image *img, const int llx, const int lly, const int urx, int ury, const int kappa, const int nclip, double *clean_mean, double *clean_stdev)</td></tr>
-<tr class="memdesc:gac2d85317fd9377986277e318e510a439"><td class="mdescLeft"> </td><td class="mdescRight">Get clean mean and stdev of an image over a window.  <a href="#gac2d85317fd9377986277e318e510a439"></a><br/></td></tr>
-<tr class="memitem:ga98c9970b59c6b7919f531829f6f5dab9"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#ga98c9970b59c6b7919f531829f6f5dab9">irplib_compute_gain</a> (cpl_frameset *son, cpl_frameset *sof, int *zone, const int kappa, const int nclip)</td></tr>
-<tr class="memdesc:ga98c9970b59c6b7919f531829f6f5dab9"><td class="mdescLeft"> </td><td class="mdescRight">Computes the detector's gain.  <a href="#ga98c9970b59c6b7919f531829f6f5dab9"></a><br/></td></tr>
-<tr class="memitem:gadefee4e970a548c25bcbb42797778a2a"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#gadefee4e970a548c25bcbb42797778a2a">irplib_compute_linearity</a> (cpl_frameset *son, cpl_frameset *sof)</td></tr>
-<tr class="memdesc:gadefee4e970a548c25bcbb42797778a2a"><td class="mdescLeft"> </td><td class="mdescRight">Computes the detector's linearity.  <a href="#gadefee4e970a548c25bcbb42797778a2a"></a><br/></td></tr>
-<tr class="memitem:gae9b762625dbd2c31c1b59cfd8c15fd90"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#gae9b762625dbd2c31c1b59cfd8c15fd90">irplib_detlin_correct</a> (cpl_imagelist *ilist, const char *detlin_a, const char *detlin_b, const char *detlin_c)</td></tr>
-<tr class="memdesc:gae9b762625dbd2c31c1b59cfd8c15fd90"><td class="mdescLeft"> </td><td class="mdescRight">Apply the detector linearity correction.  <a href="#gae9b762625dbd2c31c1b59cfd8c15fd90"></a><br/></td></tr>
-<tr class="memitem:gae650a3e54e1aff329b1b5ee356bcdbde"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#gae650a3e54e1aff329b1b5ee356bcdbde">irplib_flat_dark_bpm_calib</a> (cpl_imagelist *ilist, const char *flat, const char *dark, const char *bpm)</td></tr>
-<tr class="memdesc:gae650a3e54e1aff329b1b5ee356bcdbde"><td class="mdescLeft"> </td><td class="mdescRight">Apply the calibration to the frames.  <a href="#gae650a3e54e1aff329b1b5ee356bcdbde"></a><br/></td></tr>
-<tr class="memitem:ga60d4d26793b0162783e4f39e7d180e9b"><td class="memItemLeft" align="right" valign="top">static cpl_vector * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#ga60d4d26793b0162783e4f39e7d180e9b">irplib_imagelist_get_clean_mean_levels</a> (const cpl_imagelist *iml, const double kappa, const int nclip, const double tolerance)</td></tr>
-<tr class="memdesc:ga60d4d26793b0162783e4f39e7d180e9b"><td class="mdescLeft"> </td><td class="mdescRight">find out the character string associated to the DIT keyword in a propertylist  <a href="#ga60d4d26793b0162783e4f39e7d180e9b"></a><br/></td></tr>
-<tr class="memitem:gaaf8bb5c15a5e72ea67627d5220f9e01b"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#gaaf8bb5c15a5e72ea67627d5220f9e01b">irplib_imagelist_subtract_values</a> (cpl_imagelist **iml, cpl_vector *values)</td></tr>
-<tr class="memdesc:gaaf8bb5c15a5e72ea67627d5220f9e01b"><td class="mdescLeft"> </td><td class="mdescRight">Subtract from input imagelist values specified in input vector.  <a href="#gaaf8bb5c15a5e72ea67627d5220f9e01b"></a><br/></td></tr>
-<tr class="memitem:gacf0c80a14e58f7529e9589b4c0c7ace8"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#gacf0c80a14e58f7529e9589b4c0c7ace8">irplib_vector_ksigma</a> (cpl_vector *values, const double klow, const double khigh, int kiter)</td></tr>
-<tr class="memdesc:gacf0c80a14e58f7529e9589b4c0c7ace8"><td class="mdescLeft"> </td><td class="mdescRight">Perform kappa-sigma clip.  <a href="#gacf0c80a14e58f7529e9589b4c0c7ace8"></a><br/></td></tr>
-<tr class="memitem:ga28480f72b7f607b47769df0a8ada7333"><td class="memItemLeft" align="right" valign="top">static cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#ga28480f72b7f607b47769df0a8ada7333">irplib_imagelist_ksigma_stack</a> (const cpl_imagelist *imlist, double klow, double khigh, int kiter)</td></tr>
-<tr class="memdesc:ga28480f72b7f607b47769df0a8ada7333"><td class="mdescLeft"> </td><td class="mdescRight">Stack images using k-sigma clipping.  <a href="#ga28480f72b7f607b47769df0a8ada7333"></a><br/></td></tr>
-<tr class="memitem:gae11ebd9b30a6c781265ba2e5af87722b"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#gae11ebd9b30a6c781265ba2e5af87722b">irplib_mkmaster_mean</a> (cpl_imagelist *images, const double kappa, const int nclip, const double tolerance, const double klow, const double khigh, const int niter)</td></tr>
-<tr class="memdesc:gae11ebd9b30a6c781265ba2e5af87722b"><td class="mdescLeft"> </td><td class="mdescRight">Computes master frame by clean stack mean of the input imagelist.  <a href="#gae11ebd9b30a6c781265ba2e5af87722b"></a><br/></td></tr>
-<tr class="memitem:ga31157521720077a762a43644a503bbf2"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#ga31157521720077a762a43644a503bbf2">irplib_mkmaster_median</a> (cpl_imagelist *images, const double kappa, const int nclip, const double tolerance)</td></tr>
-<tr class="memdesc:ga31157521720077a762a43644a503bbf2"><td class="mdescLeft"> </td><td class="mdescRight">Computes master frame by clean stack median of the input imagelist.  <a href="#ga31157521720077a762a43644a503bbf2"></a><br/></td></tr>
-<tr class="memitem:ga59949441bd2109bbf0a852b97f899659"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga59949441bd2109bbf0a852b97f899659"></a>
-static cpl_error_code </td><td class="memItemRight" valign="bottom"><b>irplib_mkmaster_dark_qc</b> (const cpl_imagelist *raw_images, cpl_imagelist *preproc_images, const cpl_parameterlist *parameters, const int pr_num_x, const int pr_num_y, const int pr_box_sx, const int pr_box_sy, const char *recipe_id, cpl_table *qclog)</td></tr>
-<tr class="memitem:ga6904da04154755c76c191447714297a3"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#ga6904da04154755c76c191447714297a3">irplib_head_get_exptime</a> (const cpl_propertylist *plist)</td></tr>
-<tr class="memdesc:ga6904da04154755c76c191447714297a3"><td class="mdescLeft"> </td><td class="mdescRight">Find out the exposure time in seconds.  <a href="#ga6904da04154755c76c191447714297a3"></a><br/></td></tr>
-<tr class="memitem:ga06aba7b4cf8b84fb21acef626c8c7196"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__calib.html#ga06aba7b4cf8b84fb21acef626c8c7196">irplib_head_set_exptime</a> (cpl_propertylist *plist, double exptime)</td></tr>
-<tr class="memdesc:ga06aba7b4cf8b84fb21acef626c8c7196"><td class="mdescLeft"> </td><td class="mdescRight">Write the exposure time.  <a href="#ga06aba7b4cf8b84fb21acef626c8c7196"></a><br/></td></tr>
-<tr class="memitem:gac2e7d0c2f861f15f0b9a912e665ab9a6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac2e7d0c2f861f15f0b9a912e665ab9a6"></a>
-static cpl_imagelist * </td><td class="memItemRight" valign="bottom"><b>irplib_mkmaster_dark_fill_imagelist</b> (const cpl_imagelist *raw_images, cpl_propertylist **raw_headers, const cpl_image *master_bias, double *mean_exptime)</td></tr>
-<tr class="memitem:ga3d984fbbecd9229d56e199b1d4031e77"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3d984fbbecd9229d56e199b1d4031e77"></a>
-cpl_image * </td><td class="memItemRight" valign="bottom"><b>irplib_mdark_process_chip</b> (const cpl_imagelist *raw_images, cpl_propertylist **raw_headers, const cpl_image *master_bias, cpl_propertylist *mdark_header, const cpl_parameterlist *parameters, const char *recipe_id, cpl_table *qclog, const int do_qc, const char *STACK_METHOD, const double STACK_KLOW, const double STACK_KHIGH, const int STACK_NITER, const int pr_num_x, const int pr_num_y, const int pr_box_sx, const int pr [...]
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gaccb4324b15367dbe7d2aa57757b400a3"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double irplib_pfits_get_dit </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>find out the character string associated to the DIT keyword in a propertylist </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>propertylist </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>dit value </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__calib_8c_source.html#l00080">80</a> of file <a class="el" href="irplib__calib_8c_source.html">irplib_calib.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__calib_8c_source.html#l00191">irplib_compute_gain()</a>, and <a class="el" href="irplib__calib_8c_source.html#l00372">irplib_compute_linearity()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1940301f70f9920a94298e7aa9db4701"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double irplib_pfits_get_exp_time </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>find out the character string associated to the EXPTIME keyword </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>propertylist </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>keyword value </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__calib_8c_source.html#l00092">92</a> of file <a class="el" href="irplib__calib_8c_source.html">irplib_calib.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__calib_8c_source.html#l00191">irplib_compute_gain()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac2d85317fd9377986277e318e510a439"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int irplib_get_clean_mean_window </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>img</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>llx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>lly</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>urx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ury</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>kappa</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>nclip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>clean_mean</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>clean_stdev</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get clean mean and stdev of an image over a window. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">img</td><td>input image </td></tr>
-    <tr><td class="paramname">llx</td><td>input lower left x image's window coordinate </td></tr>
-    <tr><td class="paramname">lly</td><td>input lower left y image's window coordinate </td></tr>
-    <tr><td class="paramname">urx</td><td>input upper right y image's window coordinate </td></tr>
-    <tr><td class="paramname">ury</td><td>input upper right y image's window coordinate </td></tr>
-    <tr><td class="paramname">kappa</td><td>input kappa of kappa-sigma clip </td></tr>
-    <tr><td class="paramname">nclip</td><td>input max no of kappa-sigma clip iterations </td></tr>
-    <tr><td class="paramname">clean_mean</td><td>output upper right y image's window coordinate </td></tr>
-    <tr><td class="paramname">clean_stdev</td><td>output upper right y image's window coordinate </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pixel scale </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__calib_8c_source.html#l00116">116</a> of file <a class="el" href="irplib__calib_8c_source.html">irplib_calib.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__calib_8c_source.html#l00191">irplib_compute_gain()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga98c9970b59c6b7919f531829f6f5dab9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* irplib_compute_gain </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>son</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>sof</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>zone</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>kappa</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>nclip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Computes the detector's gain. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">son</td><td>the input frameset of linearity on-flat fields </td></tr>
-    <tr><td class="paramname">sof</td><td>the input frameset of linearity off-flat fields </td></tr>
-    <tr><td class="paramname">zone</td><td>pointer to an integer array with locations (llx,lly,urx,ury) of region where a clean mean and noise are computed </td></tr>
-    <tr><td class="paramname">kappa</td><td>value of kappa in kappa-sigma clipping </td></tr>
-    <tr><td class="paramname">nclip</td><td>number of kappa-sigma clipping iterations</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to a table containing single gain evaluations </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>: #1 input frames need to have defined FITS keyword EXPTIME #2 input frames need to have defined FITS keyword DIT </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__calib_8c_source.html#l00191">191</a> of file <a class="el" href="irplib__calib_8c_source.html">irplib_calib.c</a>.</p>
-
-<p>References <a class="el" href="irplib__calib_8c_source.html#l00116">irplib_get_clean_mean_window()</a>, <a class="el" href="irplib__calib_8c_source.html#l00080">irplib_pfits_get_dit()</a>, and <a class="el" href="irplib__calib_8c_source.html#l00092">irplib_pfits_get_exp_time()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadefee4e970a548c25bcbb42797778a2a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* irplib_compute_linearity </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>son</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>sof</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Computes the detector's linearity. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">son</td><td>the input frameset of linearity on flat fields </td></tr>
-    <tr><td class="paramname">sof</td><td>the input frameset of linearity off flat fields </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to a table containing linearity evaluations </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>: #2 input frames need to have defined FITS keyword EXPTIME #3 input frames need to have defined FITS keyword DIT </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__calib_8c_source.html#l00372">372</a> of file <a class="el" href="irplib__calib_8c_source.html">irplib_calib.c</a>.</p>
-
-<p>References <a class="el" href="irplib__calib_8c_source.html#l00080">irplib_pfits_get_dit()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae9b762625dbd2c31c1b59cfd8c15fd90"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int irplib_detlin_correct </td>
-          <td>(</td>
-          <td class="paramtype">cpl_imagelist * </td>
-          <td class="paramname"><em>ilist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>detlin_a</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>detlin_b</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>detlin_c</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Apply the detector linearity correction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ilist</td><td>the input image list </td></tr>
-    <tr><td class="paramname">detlin_a</td><td>the a coeffs </td></tr>
-    <tr><td class="paramname">detlin_b</td><td>the b coeffs </td></tr>
-    <tr><td class="paramname">detlin_c</td><td>the c coeffs </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__calib_8c_source.html#l00493">493</a> of file <a class="el" href="irplib__calib_8c_source.html">irplib_calib.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae650a3e54e1aff329b1b5ee356bcdbde"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int irplib_flat_dark_bpm_calib </td>
-          <td>(</td>
-          <td class="paramtype">cpl_imagelist * </td>
-          <td class="paramname"><em>ilist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>flat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>dark</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>bpm</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Apply the calibration to the frames. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ilist</td><td>the input image list </td></tr>
-    <tr><td class="paramname">flat</td><td>the flat field </td></tr>
-    <tr><td class="paramname">dark</td><td>the dark </td></tr>
-    <tr><td class="paramname">bpm</td><td>the bad pixels map </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__calib_8c_source.html#l00578">578</a> of file <a class="el" href="irplib__calib_8c_source.html">irplib_calib.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga60d4d26793b0162783e4f39e7d180e9b"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_vector* irplib_imagelist_get_clean_mean_levels </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_imagelist * </td>
-          <td class="paramname"><em>iml</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>kappa</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>nclip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>tolerance</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>find out the character string associated to the DIT keyword in a propertylist </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>propertylist </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>dit value Computes kappa-sigma clean mean (free bad pixels) for each input image of the input imagelist. </dd></dl>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">iml</td><td>input imagelist </td></tr>
-    <tr><td class="paramname">kappa</td><td>value for kappa-sigma clip </td></tr>
-    <tr><td class="paramname">nclip</td><td>Number of clipping iterations </td></tr>
-    <tr><td class="paramname">tolerance</td><td>tolerance on range between two successive clip iterations</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>vector with computed values for each image of the list</dd></dl>
-<p>The returned vector must be deallocated. </p>
-
-<p>Definition at line <a class="el" href="irplib__mkmaster_8c_source.html#l00070">70</a> of file <a class="el" href="irplib__mkmaster_8c_source.html">irplib_mkmaster.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__mkmaster_8c_source.html#l00313">irplib_mkmaster_mean()</a>, and <a class="el" href="irplib__mkmaster_8c_source.html#l00352">irplib_mkmaster_median()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaaf8bb5c15a5e72ea67627d5220f9e01b"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code irplib_imagelist_subtract_values </td>
-          <td>(</td>
-          <td class="paramtype">cpl_imagelist ** </td>
-          <td class="paramname"><em>iml</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_vector * </td>
-          <td class="paramname"><em>values</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Subtract from input imagelist values specified in input vector. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">iml</td><td>input imagelist </td></tr>
-    <tr><td class="paramname">values</td><td>value to be subtracted </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>corrected imagelist </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__mkmaster_8c_source.html#l00118">118</a> of file <a class="el" href="irplib__mkmaster_8c_source.html">irplib_mkmaster.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__mkmaster_8c_source.html#l00313">irplib_mkmaster_mean()</a>, and <a class="el" href="irplib__mkmaster_8c_source.html#l00352">irplib_mkmaster_median()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gacf0c80a14e58f7529e9589b4c0c7ace8"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double irplib_vector_ksigma </td>
-          <td>(</td>
-          <td class="paramtype">cpl_vector * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>klow</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>khigh</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>kiter</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Perform kappa-sigma clip. </p>
-<dl class="section author"><dt>Author:</dt><dd>C. Izzo </dd></dl>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">values</td><td>values to be checked </td></tr>
-    <tr><td class="paramname">klow</td><td>kappa to clip too low level values </td></tr>
-    <tr><td class="paramname">khigh</td><td>kappa to clip too high values </td></tr>
-    <tr><td class="paramname">kiter</td><td>number of iterations</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section note"><dt>Note:</dt><dd>In first iteration a median is the reference value for robustness</dd></dl>
-<dl class="section return"><dt>Returns:</dt><dd></dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__mkmaster_8c_source.html#l00153">153</a> of file <a class="el" href="irplib__mkmaster_8c_source.html">irplib_mkmaster.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__mkmaster_8c_source.html#l00232">irplib_imagelist_ksigma_stack()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga28480f72b7f607b47769df0a8ada7333"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_image* irplib_imagelist_ksigma_stack </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_imagelist * </td>
-          <td class="paramname"><em>imlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>klow</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>khigh</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>kiter</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Stack images using k-sigma clipping. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">imlist</td><td>List of images to stack </td></tr>
-    <tr><td class="paramname">klow</td><td>Number of sigmas for rejection of lowest values </td></tr>
-    <tr><td class="paramname">khigh</td><td>Number of sigmas for rejection of highest values </td></tr>
-    <tr><td class="paramname">kiter</td><td>Max number of iterations</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Stacked image.</dd></dl>
-<p>At the first iteration the value of sigma is computed relatively to the median value of all pixels at a given image position. For the next iterations the sigma is computed in the standard way. If at some iteration all points would be rejected, the mean computed at the previous iteration is returned. </p>
-
-<p>Definition at line <a class="el" href="irplib__mkmaster_8c_source.html#l00232">232</a> of file <a class="el" href="irplib__mkmaster_8c_source.html">irplib_mkmaster.c</a>.</p>
-
-<p>References <a class="el" href="irplib__mkmaster_8c_source.html#l00153">irplib_vector_ksigma()</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__mkmaster_8c_source.html#l00313">irplib_mkmaster_mean()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae11ebd9b30a6c781265ba2e5af87722b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* irplib_mkmaster_mean </td>
-          <td>(</td>
-          <td class="paramtype">cpl_imagelist * </td>
-          <td class="paramname"><em>images</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>kappa</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>nclip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>tolerance</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>klow</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>khigh</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>niter</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Computes master frame by clean stack mean of the input imagelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">images</td><td>input imagelist </td></tr>
-    <tr><td class="paramname">kappa</td><td>value for kappa-sigma clip </td></tr>
-    <tr><td class="paramname">nclip</td><td>Number of clipping iterations </td></tr>
-    <tr><td class="paramname">tolerance</td><td>tolerance on range between two successive clip iterations</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>master image</dd></dl>
-<p>The returned image must be deallocated. </p>
-
-<p>Definition at line <a class="el" href="irplib__mkmaster_8c_source.html#l00313">313</a> of file <a class="el" href="irplib__mkmaster_8c_source.html">irplib_mkmaster.c</a>.</p>
-
-<p>References <a class="el" href="irplib__mkmaster_8c_source.html#l00070">irplib_imagelist_get_clean_mean_levels()</a>, <a class="el" href="irplib__mkmaster_8c_source.html#l00232">irplib_imagelist_ksigma_stack()</a>, and <a class="el" href="irplib__mkmaster_8c_source.html#l00118">irplib_imagelist_subtract_values()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga31157521720077a762a43644a503bbf2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* irplib_mkmaster_median </td>
-          <td>(</td>
-          <td class="paramtype">cpl_imagelist * </td>
-          <td class="paramname"><em>images</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>kappa</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>nclip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>tolerance</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Computes master frame by clean stack median of the input imagelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">images</td><td>input imagelist </td></tr>
-    <tr><td class="paramname">kappa</td><td>value for kappa-sigma clip </td></tr>
-    <tr><td class="paramname">nclip</td><td>Number of clipping iterations </td></tr>
-    <tr><td class="paramname">tolerance</td><td>tolerance on range between two successive clip iterations</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>master image</dd></dl>
-<p>The returned image must be deallocated. </p>
-
-<p>Definition at line <a class="el" href="irplib__mkmaster_8c_source.html#l00352">352</a> of file <a class="el" href="irplib__mkmaster_8c_source.html">irplib_mkmaster.c</a>.</p>
-
-<p>References <a class="el" href="irplib__mkmaster_8c_source.html#l00070">irplib_imagelist_get_clean_mean_levels()</a>, and <a class="el" href="irplib__mkmaster_8c_source.html#l00118">irplib_imagelist_subtract_values()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6904da04154755c76c191447714297a3"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double irplib_head_get_exptime </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Find out the exposure time in seconds. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error</dd></dl>
-<p>An error is set if the exposure time is negative. In that case this negative value is returned. </p>
-
-<p>Definition at line <a class="el" href="irplib__mkmaster_8c_source.html#l00423">423</a> of file <a class="el" href="irplib__mkmaster_8c_source.html">irplib_mkmaster.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga06aba7b4cf8b84fb21acef626c8c7196"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code irplib_head_set_exptime </td>
-          <td>(</td>
-          <td class="paramtype">cpl_propertylist * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>exptime</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Write the exposure time. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">exptime</td><td>The value to write</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay. </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__mkmaster_8c_source.html#l00442">442</a> of file <a class="el" href="irplib__mkmaster_8c_source.html">irplib_mkmaster.c</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__cat.html b/html/group__irplib__cat.html
deleted file mode 100644
index 935e3b2..0000000
--- a/html/group__irplib__cat.html
+++ /dev/null
@@ -1,288 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Functions for accessing catalogues</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Functions for accessing catalogues</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga8dd2b5e6b7bc4a7ea3f2b275882aa200"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__cat.html#ga8dd2b5e6b7bc4a7ea3f2b275882aa200">irplib_2mass_get_catpars</a> (const cpl_frame *master_index, char **catpath, char **catname)</td></tr>
-<tr class="memdesc:ga8dd2b5e6b7bc4a7ea3f2b275882aa200"><td class="mdescLeft"> </td><td class="mdescRight">Find the name of the standard catalogue being used and its location.  <a href="#ga8dd2b5e6b7bc4a7ea3f2b275882aa200"></a><br/></td></tr>
-<tr class="memitem:ga2289fa88ec0498a2930291b1d51a46af"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__cat.html#ga2289fa88ec0498a2930291b1d51a46af">irplib_cat_get_image_limits</a> (const cpl_wcs *wcs, float ext_search, double *ra1, double *ra2, double *dec1, double *dec2)</td></tr>
-<tr class="memdesc:ga2289fa88ec0498a2930291b1d51a46af"><td class="mdescLeft"> </td><td class="mdescRight">Get coverage in ra, dec of a frame.  <a href="#ga2289fa88ec0498a2930291b1d51a46af"></a><br/></td></tr>
-<tr class="memitem:ga7fdafd757d33d4096270027912a89cf6"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__cat.html#ga7fdafd757d33d4096270027912a89cf6">irplib_2mass_extract</a> (char *path, float ramin, float ramax, float decmin, float decmax)</td></tr>
-<tr class="memdesc:ga7fdafd757d33d4096270027912a89cf6"><td class="mdescLeft"> </td><td class="mdescRight">Extract standards from the 2mass catalogue.  <a href="#ga7fdafd757d33d4096270027912a89cf6"></a><br/></td></tr>
-<tr class="memitem:gaf3dbc2180a59e7187674707510205afe"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__cat.html#gaf3dbc2180a59e7187674707510205afe">irplib_match_cat_pairs</a> (cpl_table **catalogues, int ncats, int(*binary_match_condition)(cpl_table *catalogue1, cpl_table *catalogue2, intiobj1, intiobj2))</td></tr>
-<tr class="memdesc:gaf3dbc2180a59e7187674707510205afe"><td class="mdescLeft"> </td><td class="mdescRight">Finds all the objects that appear at least in some of the catalogues.  <a href="#gaf3dbc2180a59e7187674707510205afe"></a><br/></td></tr>
-<tr class="memitem:ga0c646357cbecd1ce37f31f89ea6e62cf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0c646357cbecd1ce37f31f89ea6e62cf"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>irplib_match_cats_get_all_matching_pairs</b> (cpl_table **catalogues, int ncats, cpl_table *matching_sets, int(*binary_match_condition)(cpl_table *catalogue1, cpl_table *catalogue2, intiobj1, intiobj2))</td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga8dd2b5e6b7bc4a7ea3f2b275882aa200"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int irplib_2mass_get_catpars </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_frame * </td>
-          <td class="paramname"><em>master_index</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char ** </td>
-          <td class="paramname"><em>catpath</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char ** </td>
-          <td class="paramname"><em>catname</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find the name of the standard catalogue being used and its location. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">index</td><td>The frame for the index FITS file </td></tr>
-    <tr><td class="paramname">catpath</td><td>The full path to the catalgoue FITS files </td></tr>
-    <tr><td class="paramname">catname</td><td>The name of the catalogue </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE if sucess CPL_ERROR_FILE_IO if the file does not exist or the header cannot be read.</dd></dl>
-<p>Find the name of the standard catalogue being used and its location. The former should be in a header keyword in the specified FITS file. The latter is the full path of the FITS file. Both values need to be deallocated when you're finished with them. </p>
-
-<p>Definition at line <a class="el" href="irplib__cat_8c_source.html#l00075">75</a> of file <a class="el" href="irplib__cat_8c_source.html">irplib_cat.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2289fa88ec0498a2930291b1d51a46af"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_cat_get_image_limits </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_wcs * </td>
-          <td class="paramname"><em>wcs</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>ext_search</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>ra1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>ra2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>dec1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>dec2</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get coverage in ra, dec of a frame. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Input property list </td></tr>
-    <tr><td class="paramname">ext_search</td><td>Factor for an extra box search. </td></tr>
-    <tr><td class="paramname">ra1</td><td>Lower RA </td></tr>
-    <tr><td class="paramname">ra2</td><td>Upper RA </td></tr>
-    <tr><td class="paramname">dec1</td><td>Lower Dec </td></tr>
-    <tr><td class="paramname">dec2</td><td>Upper Dec </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE if sucess. CPL_ERROR_DATA_NOT_FOUND if wcs is not valid</dd></dl>
-<p>Given a WCS solution this routine works out the min and max equatorial coordinates covered by the image. </p>
-
-<p>Definition at line <a class="el" href="irplib__cat_8c_source.html#l00154">154</a> of file <a class="el" href="irplib__cat_8c_source.html">irplib_cat.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7fdafd757d33d4096270027912a89cf6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* irplib_2mass_extract </td>
-          <td>(</td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>path</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>ramin</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>ramax</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>decmin</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>decmax</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Extract standards from the 2mass catalogue. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">path</td><td>The full path to the catalogue FITS files and index. </td></tr>
-    <tr><td class="paramname">ramin1</td><td>The minimum RA, this can be negative in the case the area wraps around the equinox. </td></tr>
-    <tr><td class="paramname">ramax1</td><td>The maximum RA </td></tr>
-    <tr><td class="paramname">decmin</td><td>The minimum Declination </td></tr>
-    <tr><td class="paramname">decmax</td><td>The maximum Declination </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A table structure with the extracted catalogue objects</dd></dl>
-<p>The FITS tables containing the 2mass psc catalogue are searched to find all of the objects within an input equatorial area. Deals with the sigularity at the equinox, but not at the poles. </p>
-
-<p>Definition at line <a class="el" href="irplib__cat_8c_source.html#l00280">280</a> of file <a class="el" href="irplib__cat_8c_source.html">irplib_cat.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf3dbc2180a59e7187674707510205afe"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* irplib_match_cat_pairs </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>catalogues</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ncats</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int(*)(cpl_table *catalogue1, cpl_table *catalogue2, intiobj1, intiobj2) </td>
-          <td class="paramname"><em>binary_match_condition</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Finds all the objects that appear at least in some of the catalogues. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">catalogues</td><td>All the catalogues </td></tr>
-    <tr><td class="paramname">ncats</td><td>Number of catalogues </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The matching table if sucess, NULL otherwise.</dd></dl>
-<p>Implementation notes:</p>
-<p>cat_indexing_order tells you in which order the catalogues are being iterated. For example cat_indexing_order[2] gives the index of the catalogue that is being iterated in the 3rd postion. </p>
-
-<p>Definition at line <a class="el" href="irplib__match__cats_8c_source.html#l00126">126</a> of file <a class="el" href="irplib__match__cats_8c_source.html">irplib_match_cats.c</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__distortion.html b/html/group__irplib__distortion.html
deleted file mode 100644
index d85a4c4..0000000
--- a/html/group__irplib__distortion.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Distortion correction functions</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Distortion correction functions</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__flat.html b/html/group__irplib__flat.html
deleted file mode 100644
index e57e96b..0000000
--- a/html/group__irplib__flat.html
+++ /dev/null
@@ -1,158 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Functions for flatfielding</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Functions for flatfielding</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gaf9bd48348cc91bb66304697b4c7aa58e"><td class="memItemLeft" align="right" valign="top">cpl_imagelist * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__flat.html#gaf9bd48348cc91bb66304697b4c7aa58e">irplib_flat_fit_set</a> (cpl_imagelist *raw, int mode)</td></tr>
-<tr class="memdesc:gaf9bd48348cc91bb66304697b4c7aa58e"><td class="mdescLeft"> </td><td class="mdescRight">Compute a flat-field out of a set of exposures.  <a href="#gaf9bd48348cc91bb66304697b4c7aa58e"></a><br/></td></tr>
-<tr class="memitem:ga3e3e3bd45aef34e38758e1f2528d7c91"><td class="memItemLeft" align="right" valign="top">double * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__flat.html#ga3e3e3bd45aef34e38758e1f2528d7c91">irplib_flat_fit_slope_robust</a> (double *x, double *y, int np)</td></tr>
-<tr class="memdesc:ga3e3e3bd45aef34e38758e1f2528d7c91"><td class="mdescLeft"> </td><td class="mdescRight">Fit a slope to a list of points (robust fit).  <a href="#ga3e3e3bd45aef34e38758e1f2528d7c91"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gaf9bd48348cc91bb66304697b4c7aa58e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_imagelist* irplib_flat_fit_set </td>
-          <td>(</td>
-          <td class="paramtype">cpl_imagelist * </td>
-          <td class="paramname"><em>raw</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>mode</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Compute a flat-field out of a set of exposures. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw</td><td>Input image set </td></tr>
-    <tr><td class="paramname">mode</td><td>0 for proportional, 1 for robust fit </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated set of 2 or 3 images</dd></dl>
-<p>The input is assumed to be a cube containing planes of different intensities (usually increasing or decreasing). Typical inputs are: twilight data sets, halogen lamp, or skies of different airmasses in the thermal regime.</p>
-<p>The input image list must be of type float.</p>
-<p>In robust mode, the output is a set of 3 images. The first image contains a regression map, i.e. for each pixel position on the detector, a curve is plotted of the pixel intensity in each plane against the median intensity of the plane. A slope is fit, and the gain factor is stored into this first image.</p>
-<p>The second image contains the y-intercepts of the slope fit. It is usually good to check it out in case of failures.</p>
-<p>The third image contains the sum of squared errors for each fit. The fit is using a robust least-squares criterion rejecting outliers. This is the algorithm to use with big telescopes like the VLT, which collect so much light that objects are actually seen in the twilight sky.</p>
-<p>In proportional mode, the output is a set of 2 images. The first image contains a regression map. The second image contains the sum of squared errors for each fit. </p>
-
-<p>Definition at line <a class="el" href="irplib__flat_8c_source.html#l00087">87</a> of file <a class="el" href="irplib__flat_8c_source.html">irplib_flat.c</a>.</p>
-
-<p>References <a class="el" href="irplib__flat_8c_source.html#l00191">irplib_flat_fit_slope_robust()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3e3e3bd45aef34e38758e1f2528d7c91"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double* irplib_flat_fit_slope_robust </td>
-          <td>(</td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>np</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Fit a slope to a list of points (robust fit). </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x</td><td>x coordinates </td></tr>
-    <tr><td class="paramname">y</td><td>y coordinates </td></tr>
-    <tr><td class="paramname">np</td><td>number of points </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to newly allocated array of 3 doubles.</dd></dl>
-<p>The slope to fit has the following kind of equation: y = c[0] + c[1] * x</p>
-<p>The returned coefficients are defined as: c[0] is the y-intercept. c[1] is the slope. c[2] is the median squared error of the fit. This is a very robust slope fit. It tolerates up to 50% of outliers in input. </p>
-
-<p>Definition at line <a class="el" href="irplib__flat_8c_source.html#l00191">191</a> of file <a class="el" href="irplib__flat_8c_source.html">irplib_flat.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__flat_8c_source.html#l00087">irplib_flat_fit_set()</a>, and <a class="el" href="irplib__slitpos_8c_source.html#l00119">irplib_slitpos_analysis()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__framelist.html b/html/group__irplib__framelist.html
deleted file mode 100644
index 9b7601b..0000000
--- a/html/group__irplib__framelist.html
+++ /dev/null
@@ -1,1039 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Lists of frames with properties.</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Lists of frames with properties.</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga5b86add048651f73424d2542a04946a0"><td class="memItemLeft" align="right" valign="top">irplib_framelist * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#ga5b86add048651f73424d2542a04946a0">irplib_framelist_new</a> (void)</td></tr>
-<tr class="memdesc:ga5b86add048651f73424d2542a04946a0"><td class="mdescLeft"> </td><td class="mdescRight">Create an empty framelist.  <a href="#ga5b86add048651f73424d2542a04946a0"></a><br/></td></tr>
-<tr class="memitem:ga7a5159e9d27ef277df3fb55b331aaf26"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26">irplib_framelist_delete</a> (irplib_framelist *self)</td></tr>
-<tr class="memdesc:ga7a5159e9d27ef277df3fb55b331aaf26"><td class="mdescLeft"> </td><td class="mdescRight">Deallocate an irplib_framelist with its frames and properties.  <a href="#ga7a5159e9d27ef277df3fb55b331aaf26"></a><br/></td></tr>
-<tr class="memitem:ga30cbfd003c6e6a6a42e610442f0b1bd1"><td class="memItemLeft" align="right" valign="top">irplib_framelist * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#ga30cbfd003c6e6a6a42e610442f0b1bd1">irplib_framelist_cast</a> (const cpl_frameset *frameset)</td></tr>
-<tr class="memdesc:ga30cbfd003c6e6a6a42e610442f0b1bd1"><td class="mdescLeft"> </td><td class="mdescRight">Create an irplib_framelist from a cpl_framelist.  <a href="#ga30cbfd003c6e6a6a42e610442f0b1bd1"></a><br/></td></tr>
-<tr class="memitem:gabeedce2770a1bc06c26c0891a41aa174"><td class="memItemLeft" align="right" valign="top">cpl_frameset * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#gabeedce2770a1bc06c26c0891a41aa174">irplib_frameset_cast</a> (const irplib_framelist *self)</td></tr>
-<tr class="memdesc:gabeedce2770a1bc06c26c0891a41aa174"><td class="mdescLeft"> </td><td class="mdescRight">Create a CPL frameset from an irplib_framelist.  <a href="#gabeedce2770a1bc06c26c0891a41aa174"></a><br/></td></tr>
-<tr class="memitem:ga86d6746d1c19356417815f7df04c3396"><td class="memItemLeft" align="right" valign="top">irplib_framelist * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#ga86d6746d1c19356417815f7df04c3396">irplib_framelist_extract</a> (const irplib_framelist *self, const char *tag)</td></tr>
-<tr class="memdesc:ga86d6746d1c19356417815f7df04c3396"><td class="mdescLeft"> </td><td class="mdescRight">Extract the frames with the given tag from a framelist.  <a href="#ga86d6746d1c19356417815f7df04c3396"></a><br/></td></tr>
-<tr class="memitem:gace77e5ae75183a22a0e5af9dd9018b01"><td class="memItemLeft" align="right" valign="top">irplib_framelist * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#gace77e5ae75183a22a0e5af9dd9018b01">irplib_framelist_extract_regexp</a> (const irplib_framelist *self, const char *regexp, cpl_boolean invert)</td></tr>
-<tr class="memdesc:gace77e5ae75183a22a0e5af9dd9018b01"><td class="mdescLeft"> </td><td class="mdescRight">Extract the frames with the given tag from a framelist.  <a href="#gace77e5ae75183a22a0e5af9dd9018b01"></a><br/></td></tr>
-<tr class="memitem:ga2518fce55112b5008cb119a126e593d7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#ga2518fce55112b5008cb119a126e593d7">irplib_framelist_get_size</a> (const irplib_framelist *self)</td></tr>
-<tr class="memdesc:ga2518fce55112b5008cb119a126e593d7"><td class="mdescLeft"> </td><td class="mdescRight">Get the size of a framelist.  <a href="#ga2518fce55112b5008cb119a126e593d7"></a><br/></td></tr>
-<tr class="memitem:gaba8797bbb8394f5574cd88b2f1984387"><td class="memItemLeft" align="right" valign="top">cpl_frame * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#gaba8797bbb8394f5574cd88b2f1984387">irplib_framelist_get</a> (irplib_framelist *self, int pos)</td></tr>
-<tr class="memdesc:gaba8797bbb8394f5574cd88b2f1984387"><td class="mdescLeft"> </td><td class="mdescRight">Get the specified frame from the framelist.  <a href="#gaba8797bbb8394f5574cd88b2f1984387"></a><br/></td></tr>
-<tr class="memitem:ga93d8f903729ea4b6fcb3eca85935716f"><td class="memItemLeft" align="right" valign="top">const cpl_frame * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#ga93d8f903729ea4b6fcb3eca85935716f">irplib_framelist_get_const</a> (const irplib_framelist *self, int pos)</td></tr>
-<tr class="memdesc:ga93d8f903729ea4b6fcb3eca85935716f"><td class="mdescLeft"> </td><td class="mdescRight">Get the specified frame from the framelist.  <a href="#ga93d8f903729ea4b6fcb3eca85935716f"></a><br/></td></tr>
-<tr class="memitem:gada2c2e3f530a6dff763402eefceb5600"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#gada2c2e3f530a6dff763402eefceb5600">irplib_framelist_set_propertylist</a> (irplib_framelist *self, int pos, const cpl_propertylist *list)</td></tr>
-<tr class="memdesc:gada2c2e3f530a6dff763402eefceb5600"><td class="mdescLeft"> </td><td class="mdescRight">Duplicate a propertylist to the specified position in the framelist.  <a href="#gada2c2e3f530a6dff763402eefceb5600"></a><br/></td></tr>
-<tr class="memitem:gab4858b1e9164f3a6cffcf40270f89032"><td class="memItemLeft" align="right" valign="top">cpl_propertylist * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#gab4858b1e9164f3a6cffcf40270f89032">irplib_framelist_get_propertylist</a> (irplib_framelist *self, int pos)</td></tr>
-<tr class="memdesc:gab4858b1e9164f3a6cffcf40270f89032"><td class="mdescLeft"> </td><td class="mdescRight">Get the propertylist of the specified frame in the framelist.  <a href="#gab4858b1e9164f3a6cffcf40270f89032"></a><br/></td></tr>
-<tr class="memitem:ga7700dadcf17db5b86409e6cef233af4c"><td class="memItemLeft" align="right" valign="top">const cpl_propertylist * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#ga7700dadcf17db5b86409e6cef233af4c">irplib_framelist_get_propertylist_const</a> (const irplib_framelist *self, int pos)</td></tr>
-<tr class="memdesc:ga7700dadcf17db5b86409e6cef233af4c"><td class="mdescLeft"> </td><td class="mdescRight">Get the propertylist of the specified frame in the framelist.  <a href="#ga7700dadcf17db5b86409e6cef233af4c"></a><br/></td></tr>
-<tr class="memitem:ga6ce5701e84915514975d09e0100c6005"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#ga6ce5701e84915514975d09e0100c6005">irplib_framelist_load_propertylist</a> (irplib_framelist *self, int pos, int ind, const char *regexp, cpl_boolean invert)</td></tr>
-<tr class="memdesc:ga6ce5701e84915514975d09e0100c6005"><td class="mdescLeft"> </td><td class="mdescRight">Load the propertylist of the specified frame in the framelist.  <a href="#ga6ce5701e84915514975d09e0100c6005"></a><br/></td></tr>
-<tr class="memitem:gaf9204681e0b6aa2d952c974dcbd8729d"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#gaf9204681e0b6aa2d952c974dcbd8729d">irplib_framelist_load_propertylist_all</a> (irplib_framelist *self, int ind, const char *regexp, cpl_boolean invert)</td></tr>
-<tr class="memdesc:gaf9204681e0b6aa2d952c974dcbd8729d"><td class="mdescLeft"> </td><td class="mdescRight">Load the propertylists of all frames in the framelist.  <a href="#gaf9204681e0b6aa2d952c974dcbd8729d"></a><br/></td></tr>
-<tr class="memitem:gab11bb60e44dea926cd50ee80c7fbbd14"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#gab11bb60e44dea926cd50ee80c7fbbd14">irplib_framelist_set_tag_all</a> (irplib_framelist *self, const char *tag)</td></tr>
-<tr class="memdesc:gab11bb60e44dea926cd50ee80c7fbbd14"><td class="mdescLeft"> </td><td class="mdescRight">Set the tag of all frames in the list.  <a href="#gab11bb60e44dea926cd50ee80c7fbbd14"></a><br/></td></tr>
-<tr class="memitem:ga37e730f5627b4a0c7a81014f62421879"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#ga37e730f5627b4a0c7a81014f62421879">irplib_framelist_set</a> (irplib_framelist *self, cpl_frame *<a class="el" href="structframe.html">frame</a>, int pos)</td></tr>
-<tr class="memdesc:ga37e730f5627b4a0c7a81014f62421879"><td class="mdescLeft"> </td><td class="mdescRight">Add a frame to a framelist.  <a href="#ga37e730f5627b4a0c7a81014f62421879"></a><br/></td></tr>
-<tr class="memitem:gac66ea3ad4fc98c171f8b840229fe54ce"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#gac66ea3ad4fc98c171f8b840229fe54ce">irplib_framelist_erase</a> (irplib_framelist *self, int pos)</td></tr>
-<tr class="memdesc:gac66ea3ad4fc98c171f8b840229fe54ce"><td class="mdescLeft"> </td><td class="mdescRight">Erase a frame from a framelist and delete it and its propertylist.  <a href="#gac66ea3ad4fc98c171f8b840229fe54ce"></a><br/></td></tr>
-<tr class="memitem:ga771f14f97f80a9bd7176d323999c9bce"><td class="memItemLeft" align="right" valign="top">cpl_frame * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#ga771f14f97f80a9bd7176d323999c9bce">irplib_framelist_unset</a> (irplib_framelist *self, int pos, cpl_propertylist **plist)</td></tr>
-<tr class="memdesc:ga771f14f97f80a9bd7176d323999c9bce"><td class="mdescLeft"> </td><td class="mdescRight">Erase a frame from a framelist and return it to the caller.  <a href="#ga771f14f97f80a9bd7176d323999c9bce"></a><br/></td></tr>
-<tr class="memitem:ga900ea254d9b2a2e4e3957360bbae4deb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#ga900ea254d9b2a2e4e3957360bbae4deb">irplib_framelist_empty</a> (irplib_framelist *self)</td></tr>
-<tr class="memdesc:ga900ea254d9b2a2e4e3957360bbae4deb"><td class="mdescLeft"> </td><td class="mdescRight">Erase all frames from a framelist.  <a href="#ga900ea254d9b2a2e4e3957360bbae4deb"></a><br/></td></tr>
-<tr class="memitem:gafed15e9e259ebad923b710f5eb0196ac"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#gafed15e9e259ebad923b710f5eb0196ac">irplib_framelist_contains</a> (const irplib_framelist *self, const char *key, cpl_type type, cpl_boolean is_equal, double fp_tol)</td></tr>
-<tr class="memdesc:gafed15e9e259ebad923b710f5eb0196ac"><td class="mdescLeft"> </td><td class="mdescRight">Verify that a property is present for all frames.  <a href="#gafed15e9e259ebad923b710f5eb0196ac"></a><br/></td></tr>
-<tr class="memitem:ga0ff6c5e3b778c607544ca04ca3fb9e94"><td class="memItemLeft" align="right" valign="top">cpl_imagelist * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__framelist.html#ga0ff6c5e3b778c607544ca04ca3fb9e94">irplib_imagelist_load_framelist</a> (const irplib_framelist *self, cpl_type pixeltype, int planenum, int extnum)</td></tr>
-<tr class="memdesc:ga0ff6c5e3b778c607544ca04ca3fb9e94"><td class="mdescLeft"> </td><td class="mdescRight">Load an imagelist from a framelist.  <a href="#ga0ff6c5e3b778c607544ca04ca3fb9e94"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module implements a container type for frames and their propertylists. It differs from the cpl_frameset in these ways: 1) A propertylist can be associated to each frame 2) Access by index is a O(1)-operation 3) It can not be corrupted due to caching bugs (e.g. DFS02731).</p>
-<dl class="section user"><dt>Synopsis:</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">     #include <irplib_framelist.h></span></div>
-</div><!-- fragment --></dd></dl>
-<dl class="section user"><dt>Example:</dt><dd><div class="fragment"><div class="line">   <span class="keyword">static</span> <span class="keywordtype">int</span> rrecipe(cpl_frameset * frameset)</div>
-<div class="line">   {</div>
-<div class="line">      <span class="comment">// Error handling omitted for brevity</span></div>
-<div class="line"></div>
-<div class="line">      irplib_framelist * allframes = <a class="code" href="group__irplib__framelist.html#ga30cbfd003c6e6a6a42e610442f0b1bd1" title="Create an irplib_framelist from a cpl_framelist.">irplib_framelist_cast</a>(frameset);</div>
-<div class="line"></div>
-<div class="line">      <span class="comment">// Get raw frames of either type</span></div>
-<div class="line">      irplib_framelist * rawframes = <a class="code" href="group__irplib__framelist.html#gace77e5ae75183a22a0e5af9dd9018b01" title="Extract the frames with the given tag from a framelist.">irplib_framelist_extract_regexp</a>(allframes,</div>
-<div class="line">                                                                   <span class="stringliteral">"^("</span></div>
-<div class="line">                                                                   RAW_TYPE1 <span class="stringliteral">"|"</span></div>
-<div class="line">                                                                   RAW_TYPE2 <span class="stringliteral">")$"</span>,</div>
-<div class="line">                                                                   CPL_FALSE);</div>
-<div class="line"></div>
-<div class="line">      <span class="comment">// Load the list of images</span></div>
-<div class="line">      cpl_imagelist * ilist = <a class="code" href="group__irplib__framelist.html#ga0ff6c5e3b778c607544ca04ca3fb9e94" title="Load an imagelist from a framelist.">irplib_imagelist_load_framelist</a>(rawframes,</div>
-<div class="line">                                                              CPL_TYPE_FLOAT,</div>
-<div class="line">                                                              0, 0);</div>
-<div class="line"></div>
-<div class="line">      <span class="keyword">const</span> cpl_propertylist * plist;</div>
-<div class="line"></div>
-<div class="line">      <span class="comment">// A regular expression of the FITS cards needed by this recipe</span></div>
-<div class="line">      <span class="keyword">const</span> <span class="keywordtype">char</span> cards[] = <span class="stringliteral">"^(RA|DEC|EXPTIME)$"</span>;</div>
-<div class="line">      <span class="keywordtype">double</span> ra, dec;</div>
-<div class="line"></div>
-<div class="line"></div>
-<div class="line">      <span class="comment">// Load the specified FITS cards for all raw frames</span></div>
-<div class="line">      <a class="code" href="group__irplib__framelist.html#gaf9204681e0b6aa2d952c974dcbd8729d" title="Load the propertylists of all frames in the framelist.">irplib_framelist_load_propertylist_all</a>(rawframes, 0, cards, CPL_FALSE));</div>
-<div class="line"></div>
-<div class="line"></div>
-<div class="line">      <span class="comment">// Verify the presence and uniformity of the FITS cards</span></div>
-<div class="line">      <span class="keywordflow">if</span> (<a class="code" href="group__irplib__framelist.html#gafed15e9e259ebad923b710f5eb0196ac" title="Verify that a property is present for all frames.">irplib_framelist_contains</a>(rawframes, <span class="stringliteral">"RA"</span>,</div>
-<div class="line">                                     CPL_TYPE_DOUBLE, CPL_TRUE, 1e-5)) {</div>
-<div class="line">         <span class="comment">// RA is missing in one or more headers</span></div>
-<div class="line">         <span class="comment">//  - or it varies by more than 1e-5</span></div>
-<div class="line">      }</div>
-<div class="line"></div>
-<div class="line">       <span class="keywordflow">if</span> (<a class="code" href="group__irplib__framelist.html#gafed15e9e259ebad923b710f5eb0196ac" title="Verify that a property is present for all frames.">irplib_framelist_contains</a>(rawframes, <span class="stringliteral">"DEC"</span>,</div>
-<div class="line">                                     CPL_TYPE_DOUBLE, CPL_TRUE, 1e-5)) {</div>
-<div class="line">         <span class="comment">// DEC is missing in one or more headers</span></div>
-<div class="line">         <span class="comment">//  - or it varies by more than 1e-5</span></div>
-<div class="line">      }</div>
-<div class="line"></div>
-<div class="line">      <span class="comment">// Process the FITS cards </span></div>
-<div class="line">      plist = <a class="code" href="group__irplib__framelist.html#ga7700dadcf17db5b86409e6cef233af4c" title="Get the propertylist of the specified frame in the framelist.">irplib_framelist_get_propertylist_const</a>(rawframes, 0);</div>
-<div class="line"></div>
-<div class="line">      ra  = cpl_propertylist_get_double(plist, <span class="stringliteral">"RA"</span>);</div>
-<div class="line">      dec = cpl_propertylist_get_double(plist, <span class="stringliteral">"DEC"</span>);</div>
-<div class="line"></div>
-<div class="line">      <span class="comment">// Object deallocation</span></div>
-<div class="line">      <a class="code" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete</a>(allframes);</div>
-<div class="line">      <a class="code" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete</a>(rawframes);</div>
-<div class="line">      cpl_imagelist_delete(ilist);</div>
-<div class="line"></div>
-<div class="line">      <span class="keywordflow">return</span> 0;</div>
-<div class="line"></div>
-<div class="line">   }</div>
-</div><!-- fragment --> </dd></dl>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga5b86add048651f73424d2542a04946a0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">irplib_framelist* irplib_framelist_new </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create an empty framelist. </p>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated irplib_framelist </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>The returned irplib_framelist must be deallocated using <a class="el" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete()</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00178">178</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__framelist_8c_source.html#l00209">irplib_framelist_cast()</a>, <a class="el" href="irplib__framelist_8c_source.html#l00290">irplib_framelist_extract()</a>, and <a class="el" href="irplib__framelist_8c_source.html#l00360">irplib_framelist_extract_regexp()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7a5159e9d27ef277df3fb55b331aaf26"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void irplib_framelist_delete </td>
-          <td>(</td>
-          <td class="paramtype">irplib_framelist * </td>
-          <td class="paramname"><em>self</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Deallocate an irplib_framelist with its frames and properties. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>the framelist </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00191">191</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>References <a class="el" href="irplib__framelist_8c_source.html#l00849">irplib_framelist_empty()</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__framelist_8c_source.html#l00290">irplib_framelist_extract()</a>, and <a class="el" href="irplib__framelist_8c_source.html#l00360">irplib_framelist_extract_regexp()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga30cbfd003c6e6a6a42e610442f0b1bd1"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">irplib_framelist* irplib_framelist_cast </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>frameset</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create an irplib_framelist from a cpl_framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">frameset</td><td>The cpl_frameset </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated irplib_framelist or NULL on error </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>The returned irplib_framelist must be deallocated using <a class="el" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete()</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00209">209</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>References <a class="el" href="irplib__framelist_8c_source.html#l00178">irplib_framelist_new()</a>, and <a class="el" href="irplib__framelist_8c_source.html#l00714">irplib_framelist_set()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gabeedce2770a1bc06c26c0891a41aa174"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_frameset* irplib_frameset_cast </td>
-          <td>(</td>
-          <td class="paramtype">const irplib_framelist * </td>
-          <td class="paramname"><em>self</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create a CPL frameset from an irplib_framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated cpl_frameset or NULL on error </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>The returned cpl_frameset must be deallocated using cpl_frameset_delete() </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00251">251</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga86d6746d1c19356417815f7df04c3396"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">irplib_framelist* irplib_framelist_extract </td>
-          <td>(</td>
-          <td class="paramtype">const irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>tag</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Extract the frames with the given tag from a framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A non-empty framelist </td></tr>
-    <tr><td class="paramname">tag</td><td>The frame tag to search for. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The newly created framelist or NULL on error </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_frameset_find </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>Any propertylists of the extracted frames are also extracted. It is an error if no matching frames are found, in which case an error is set. </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00290">290</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>References <a class="el" href="irplib__framelist_8c_source.html#l00191">irplib_framelist_delete()</a>, <a class="el" href="irplib__framelist_8c_source.html#l00178">irplib_framelist_new()</a>, and <a class="el" href="irplib__framelist_8c_source.html#l00714">irplib_framelist_set()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gace77e5ae75183a22a0e5af9dd9018b01"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">irplib_framelist* irplib_framelist_extract_regexp </td>
-          <td>(</td>
-          <td class="paramtype">const irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>regexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>invert</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Extract the frames with the given tag from a framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A non-empty framelist </td></tr>
-    <tr><td class="paramname">regexp</td><td>The regular expression of frame tag(s) to search for. </td></tr>
-    <tr><td class="paramname">invert</td><td>Boolean to invert the sense of the pattern matching. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The newly created framelist or NULL on error </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__irplib__framelist.html#ga86d6746d1c19356417815f7df04c3396" title="Extract the frames with the given tag from a framelist.">irplib_framelist_extract</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00360">360</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>References <a class="el" href="irplib__framelist_8c_source.html#l00191">irplib_framelist_delete()</a>, <a class="el" href="irplib__framelist_8c_source.html#l00178">irplib_framelist_new()</a>, and <a class="el" href="irplib__framelist_8c_source.html#l00714">irplib_framelist_set()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2518fce55112b5008cb119a126e593d7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int irplib_framelist_get_size </td>
-          <td>(</td>
-          <td class="paramtype">const irplib_framelist * </td>
-          <td class="paramname"><em>self</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the size of a framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The size or a negative number on error </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00438">438</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaba8797bbb8394f5574cd88b2f1984387"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_frame* irplib_framelist_get </td>
-          <td>(</td>
-          <td class="paramtype">irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>pos</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the specified frame from the framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist </td></tr>
-    <tr><td class="paramname">pos</td><td>position (0 for first) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The frame or NULL on error </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00456">456</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>References <a class="el" href="irplib__framelist_8c_source.html#l00473">irplib_framelist_get_const()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga93d8f903729ea4b6fcb3eca85935716f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const cpl_frame* irplib_framelist_get_const </td>
-          <td>(</td>
-          <td class="paramtype">const irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>pos</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the specified frame from the framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist </td></tr>
-    <tr><td class="paramname">pos</td><td>position (0 for first) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The frame or NULL on error </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00473">473</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__framelist_8c_source.html#l00456">irplib_framelist_get()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gada2c2e3f530a6dff763402eefceb5600"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_framelist_set_propertylist </td>
-          <td>(</td>
-          <td class="paramtype">irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>list</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Duplicate a propertylist to the specified position in the framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist to modify </td></tr>
-    <tr><td class="paramname">pos</td><td>position (0 for first). </td></tr>
-    <tr><td class="paramname">list</td><td>The propertylist to copy </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00496">496</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab4858b1e9164f3a6cffcf40270f89032"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_propertylist* irplib_framelist_get_propertylist </td>
-          <td>(</td>
-          <td class="paramtype">irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>pos</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the propertylist of the specified frame in the framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist </td></tr>
-    <tr><td class="paramname">pos</td><td>position (0 for first) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The propertylist or NULL on error </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>The propertylist must first be created, for example with irplib_framelist_load_propertylist(self, pos, ...), otherwise an error occurs. </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00529">529</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>References <a class="el" href="irplib__framelist_8c_source.html#l00552">irplib_framelist_get_propertylist_const()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7700dadcf17db5b86409e6cef233af4c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const cpl_propertylist* irplib_framelist_get_propertylist_const </td>
-          <td>(</td>
-          <td class="paramtype">const irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>pos</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the propertylist of the specified frame in the framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist </td></tr>
-    <tr><td class="paramname">pos</td><td>position (0 for first) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The propertylist or NULL on error </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>The propertylist must first be created, for example with irplib_framelist_load_propertylist(self, pos, ...), otherwise an error occurs. </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00552">552</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__framelist_8c_source.html#l00529">irplib_framelist_get_propertylist()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6ce5701e84915514975d09e0100c6005"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_framelist_load_propertylist </td>
-          <td>(</td>
-          <td class="paramtype">irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ind</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>regexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>invert</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Load the propertylist of the specified frame in the framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist to modify </td></tr>
-    <tr><td class="paramname">pos</td><td>position (0 for first). </td></tr>
-    <tr><td class="paramname">ind</td><td>The index of the date set to read </td></tr>
-    <tr><td class="paramname">regexp</td><td>The regular expression of properties to load </td></tr>
-    <tr><td class="paramname">invert</td><td>Boolean to invert the sense of the pattern matching. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_propertylist_load_regexp() </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>Use a regexp of ".?" to load all properties. If a propertylist already exists it is deleted and replaced by the new one. </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00583">583</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__framelist_8c_source.html#l00638">irplib_framelist_load_propertylist_all()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf9204681e0b6aa2d952c974dcbd8729d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_framelist_load_propertylist_all </td>
-          <td>(</td>
-          <td class="paramtype">irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ind</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>regexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>invert</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Load the propertylists of all frames in the framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist to modify </td></tr>
-    <tr><td class="paramname">ind</td><td>The index of the date set to read </td></tr>
-    <tr><td class="paramname">regexp</td><td>The regular expression of properties to load </td></tr>
-    <tr><td class="paramname">invert</td><td>Boolean to invert the sense of the pattern matching. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__irplib__framelist.html#ga6ce5701e84915514975d09e0100c6005" title="Load the propertylist of the specified frame in the framelist.">irplib_framelist_load_propertylist()</a> </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>Use a regexp of "" to load all properties. If a frame already has a propertylist, it is not modified (and no propertylist is loaded for that frame). </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00638">638</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>References <a class="el" href="irplib__framelist_8c_source.html#l00583">irplib_framelist_load_propertylist()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab11bb60e44dea926cd50ee80c7fbbd14"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_framelist_set_tag_all </td>
-          <td>(</td>
-          <td class="paramtype">irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>tag</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set the tag of all frames in the list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist to modify </td></tr>
-    <tr><td class="paramname">tag</td><td>The new tag of the frames </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant <em>cpl_error_code</em> </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00682">682</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga37e730f5627b4a0c7a81014f62421879"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_framelist_set </td>
-          <td>(</td>
-          <td class="paramtype">irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frame * </td>
-          <td class="paramname"><em>frame</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>pos</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Add a frame to a framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist to modify </td></tr>
-    <tr><td class="paramname">frame</td><td>The frame to insert into the framelist </td></tr>
-    <tr><td class="paramname">pos</td><td>position (0 for first). </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>It is an error to call cpl_frame_delete() on a frame that is inserted in a framelist.</dd></dl>
-<p>It is allowed to specify the position equal to the size of the list. This will increment the size of the list. </p>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00714">714</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__framelist_8c_source.html#l00209">irplib_framelist_cast()</a>, <a class="el" href="irplib__framelist_8c_source.html#l00290">irplib_framelist_extract()</a>, and <a class="el" href="irplib__framelist_8c_source.html#l00360">irplib_framelist_extract_regexp()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac66ea3ad4fc98c171f8b840229fe54ce"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_framelist_erase </td>
-          <td>(</td>
-          <td class="paramtype">irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>pos</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Erase a frame from a framelist and delete it and its propertylist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The non-empty framelist to modify </td></tr>
-    <tr><td class="paramname">pos</td><td>position of frame to delete (0 for first). </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00753">753</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga771f14f97f80a9bd7176d323999c9bce"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_frame* irplib_framelist_unset </td>
-          <td>(</td>
-          <td class="paramtype">irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_propertylist ** </td>
-          <td class="paramname"><em>plist</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Erase a frame from a framelist and return it to the caller. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The non-empty framelist to modify </td></tr>
-    <tr><td class="paramname">pos</td><td>position of frame to delete (0 for first). </td></tr>
-    <tr><td class="paramname">plist</td><td>Pointer to a propertylist or NULL </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code</dd></dl>
-<p>The specified frame is removed from the framelist and its size is decreased by one. The frame is returned to the caller. The caller may also retrieve the propertylist of the frame by passing a non-NULL pointer. On success this may point to NULL, if a propertylist was not created for the frame. If the caller passes a NULL-pointer for the propertylist, the propertylist is deallocated. </p>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00803">803</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga900ea254d9b2a2e4e3957360bbae4deb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void irplib_framelist_empty </td>
-          <td>(</td>
-          <td class="paramtype">irplib_framelist * </td>
-          <td class="paramname"><em>self</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Erase all frames from a framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist to modify, or NULL </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00849">849</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__framelist_8c_source.html#l00191">irplib_framelist_delete()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gafed15e9e259ebad923b710f5eb0196ac"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_framelist_contains </td>
-          <td>(</td>
-          <td class="paramtype">const irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>is_equal</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>fp_tol</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Verify that a property is present for all frames. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist to verify </td></tr>
-    <tr><td class="paramname">key</td><td>Property that must be present for all the frames </td></tr>
-    <tr><td class="paramname">type</td><td>The type the property must have, or CPL_TYPE_INVALID </td></tr>
-    <tr><td class="paramname">is_equal</td><td>If true, the value must be identical for all keys </td></tr>
-    <tr><td class="paramname">fp_tol</td><td>The non-negative tolerance for floating point comparison </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>It is allowed for a frame to have a NULL propertylist, in which case no check is performed. If type is CPL_TYPE_INVALID the check for a specific type is disabled. However, with is_equal true, all properties must nevertheless have the same type. fp_tol is used only when is_equal is true and the type is (explicitly or implicitly) CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE.</dd></dl>
-<p>To verify the presence of the MJD-OBS keyword: </p>
-<div class="fragment"><div class="line">       <a class="code" href="group__irplib__framelist.html#gafed15e9e259ebad923b710f5eb0196ac" title="Verify that a property is present for all frames.">irplib_framelist_contains</a>(myframes, <span class="stringliteral">"MJD-OBS"</span>, CPL_TYPE_INVALID,</div>
-<div class="line">                                 CPL_FALSE, 0.0);</div>
-</div><!-- fragment --><p>To verify that the EXPTIME is identical to within 0.1 millisecond: </p>
-<div class="fragment"><div class="line">       <a class="code" href="group__irplib__framelist.html#gafed15e9e259ebad923b710f5eb0196ac" title="Verify that a property is present for all frames.">irplib_framelist_contains</a>(myframes, <span class="stringliteral">"EXPTIME"</span>, CPL_TYPE_INVALID,</div>
-<div class="line">                                 CPL_TRUE, 0.0001);</div>
-</div><!-- fragment --><p>To verify that the keyword "ESO INS LAMP ST" is of type boolean and that it has the same value for all frames: </p>
-<div class="fragment"><div class="line">       <a class="code" href="group__irplib__framelist.html#gafed15e9e259ebad923b710f5eb0196ac" title="Verify that a property is present for all frames.">irplib_framelist_contains</a>(myframes, <span class="stringliteral">"ESO INS LAMP ST"</span>, CPL_TYPE_BOOL,</div>
-<div class="line">                                 CPL_TRUE, 0.0);</div>
-</div><!-- fragment --> 
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l00909">909</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0ff6c5e3b778c607544ca04ca3fb9e94"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_imagelist* irplib_imagelist_load_framelist </td>
-          <td>(</td>
-          <td class="paramtype">const irplib_framelist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>pixeltype</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>planenum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>extnum</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Load an imagelist from a framelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The framelist </td></tr>
-    <tr><td class="paramname">pixeltype</td><td>The required type of the pixels in the images </td></tr>
-    <tr><td class="paramname">planenum</td><td>The (non-negative ) plane number </td></tr>
-    <tr><td class="paramname">extnum</td><td>The non-negative extension (0 for primary data unit) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The loaded list of images or NULL on error. </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_image_load() </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>The returned cpl_imagelist must be deallocated using cpl_imagelist_delete() </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__framelist_8c_source.html#l01052">1052</a> of file <a class="el" href="irplib__framelist_8c_source.html">irplib_framelist.c</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__framelist__test.html b/html/group__irplib__framelist__test.html
deleted file mode 100644
index 501a0f5..0000000
--- a/html/group__irplib__framelist__test.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Testing of the IRPLIB framelist object</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Testing of the IRPLIB framelist object</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__oddeven.html b/html/group__irplib__oddeven.html
deleted file mode 100644
index 8854c20..0000000
--- a/html/group__irplib__oddeven.html
+++ /dev/null
@@ -1,135 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Odd/Even column effect correction</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Odd/Even column effect correction</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gade0423dfae726cc1ffec66a24e376505"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__oddeven.html#gade0423dfae726cc1ffec66a24e376505">irplib_oddeven_monitor</a> (const cpl_image *in, int iquad, double *r_even)</td></tr>
-<tr class="memdesc:gade0423dfae726cc1ffec66a24e376505"><td class="mdescLeft"> </td><td class="mdescRight">Estimate the odd/even rate in an image quadrant.  <a href="#gade0423dfae726cc1ffec66a24e376505"></a><br/></td></tr>
-<tr class="memitem:ga7f7dafc1436a0aa2617048e1ada84e95"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__oddeven.html#ga7f7dafc1436a0aa2617048e1ada84e95">irplib_oddeven_correct</a> (const cpl_image *in)</td></tr>
-<tr class="memdesc:ga7f7dafc1436a0aa2617048e1ada84e95"><td class="mdescLeft"> </td><td class="mdescRight">Correct the odd/even in an image.  <a href="#ga7f7dafc1436a0aa2617048e1ada84e95"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gade0423dfae726cc1ffec66a24e376505"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int irplib_oddeven_monitor </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>in</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>iquad</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>r_even</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Estimate the odd/even rate in an image quadrant. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">in</td><td>the inpute image </td></tr>
-    <tr><td class="paramname">iquad</td><td>the quadrant (ll=1, lr=2, ul=3, ur=4, all=0) </td></tr>
-    <tr><td class="paramname">r_even</td><td>the median of even columns / median of all columns </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if ok, -1 otherwise </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__oddeven_8c_source.html#l00065">65</a> of file <a class="el" href="irplib__oddeven_8c_source.html">irplib_oddeven.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7f7dafc1436a0aa2617048e1ada84e95"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* irplib_oddeven_correct </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>in</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Correct the odd/even in an image. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">in</td><td>the inpute image </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the corrected image or NULL on error case </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__oddeven_8c_source.html#l00152">152</a> of file <a class="el" href="irplib__oddeven_8c_source.html">irplib_oddeven.c</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__plugin.html b/html/group__irplib__plugin.html
deleted file mode 100644
index be87c30..0000000
--- a/html/group__irplib__plugin.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Irplib plugin functionality</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Irplib plugin functionality</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>This module provides a macro and a unit test function for <em>irplib_plugin</em>.</p>
-<div class="fragment"><div class="line"><span class="preprocessor">     #include "irplib_plugin.h"</span></div>
-</div><!-- fragment --> </div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__plugin__test.html b/html/group__irplib__plugin__test.html
deleted file mode 100644
index 83f6eed..0000000
--- a/html/group__irplib__plugin__test.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Testing of the IRPLIB utilities</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Testing of the IRPLIB utilities</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__polynomial.html b/html/group__irplib__polynomial.html
deleted file mode 100644
index 6e0a6a4..0000000
--- a/html/group__irplib__polynomial.html
+++ /dev/null
@@ -1,468 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: 1D-Polynomial roots</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#define-members">Macros</a> |
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">1D-Polynomial roots</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
-Macros</h2></td></tr>
-<tr class="memitem:ga981d6da0b42f19d672fcfd416a690ad9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga981d6da0b42f19d672fcfd416a690ad9"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>IRPLIB_SWAP</b>(a, b)   { const double t=(a);(a)=(b);(b)=t; }</td></tr>
-<tr class="memitem:gac071aa34964fb85cad9374710bf03168"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac071aa34964fb85cad9374710bf03168"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>irplib_trace</b>()   /* Trace */</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gac5c97217542c30f329b225a9c833ea3b"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__polynomial.html#gac5c97217542c30f329b225a9c833ea3b">irplib_polynomial_eval_2_max</a> (double p2, double p1, double p0, cpl_boolean is_c, double x1, double x2)</td></tr>
-<tr class="memdesc:gac5c97217542c30f329b225a9c833ea3b"><td class="mdescLeft"> </td><td class="mdescRight">Find the max residual on a 2nd degree 1D-polynomial on the roots.  <a href="#gac5c97217542c30f329b225a9c833ea3b"></a><br/></td></tr>
-<tr class="memitem:ga8524e951a5bd6930a4336a66bdce4a3d"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__polynomial.html#ga8524e951a5bd6930a4336a66bdce4a3d">irplib_polynomial_eval_3_max</a> (double p3, double p2, double p1, double p0, cpl_boolean is_c, double x1, double x2, double x3)</td></tr>
-<tr class="memdesc:ga8524e951a5bd6930a4336a66bdce4a3d"><td class="mdescLeft"> </td><td class="mdescRight">Find the max residual on a 3rd degree 1D-polynomial on the roots.  <a href="#ga8524e951a5bd6930a4336a66bdce4a3d"></a><br/></td></tr>
-<tr class="memitem:ga9d90a2af960d264f27944c15de34bda8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9d90a2af960d264f27944c15de34bda8"></a>
-static cpl_boolean </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial_solve_1d_2</b> (double, double, double, double *, double *)</td></tr>
-<tr class="memitem:ga5a4ed616604c1e196f85754b15b60146"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5a4ed616604c1e196f85754b15b60146"></a>
-static cpl_boolean </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial_solve_1d_3</b> (double, double, double, double, double *, double *, double *, cpl_boolean *, cpl_boolean *)</td></tr>
-<tr class="memitem:gac3fa0804388376ac84af4407ba25bf01"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac3fa0804388376ac84af4407ba25bf01"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial_solve_1d_31</b> (double, double, double *, double *, double *, cpl_boolean *)</td></tr>
-<tr class="memitem:ga8a2e39db3fb31be82fbdb37565601ca3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8a2e39db3fb31be82fbdb37565601ca3"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial_solve_1d_32</b> (double, double, double, double *, double *, double *, cpl_boolean *)</td></tr>
-<tr class="memitem:ga981772c5f68868a35cb2ebe401d8df4f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga981772c5f68868a35cb2ebe401d8df4f"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial_solve_1d_3r</b> (double, double, double, double, double *, double *, double *)</td></tr>
-<tr class="memitem:ga7921e7e4c40403211482ec1f03f12d26"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7921e7e4c40403211482ec1f03f12d26"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial_solve_1d_3c</b> (double, double, double, double, double, double, double *, double *, double *, cpl_boolean *, cpl_boolean *)</td></tr>
-<tr class="memitem:ga3d08cbb87ea54579dadd71289f06138d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3d08cbb87ea54579dadd71289f06138d"></a>
-static cpl_error_code </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial_solve_1d_4</b> (double, double, double, double, double, cpl_size *, double *, double *, double *, double *)</td></tr>
-<tr class="memitem:ga44416a49b144367d5b04811857624956"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga44416a49b144367d5b04811857624956"></a>
-static cpl_error_code </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial_solve_1d_nonzero</b> (cpl_polynomial *, cpl_vector *, cpl_size *)</td></tr>
-<tr class="memitem:ga5f92d37281184f1b88a047bef65a0007"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5f92d37281184f1b88a047bef65a0007"></a>
-static cpl_error_code </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial_divide_1d_root</b> (cpl_polynomial *, double, double *)</td></tr>
-<tr class="memitem:ga90e13f05c9addc584f154279681d1853"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__polynomial.html#ga90e13f05c9addc584f154279681d1853">irplib_polynomial_add</a> (cpl_polynomial *self, const cpl_polynomial *first, const cpl_polynomial *second)</td></tr>
-<tr class="memdesc:ga90e13f05c9addc584f154279681d1853"><td class="mdescLeft"> </td><td class="mdescRight">Add two polynomials of the same dimension.  <a href="#ga90e13f05c9addc584f154279681d1853"></a><br/></td></tr>
-<tr class="memitem:ga0e83ae3c9e7accb70fdfe1aca030e084"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__polynomial.html#ga0e83ae3c9e7accb70fdfe1aca030e084">irplib_polynomial_subtract</a> (cpl_polynomial *self, const cpl_polynomial *first, const cpl_polynomial *second)</td></tr>
-<tr class="memdesc:ga0e83ae3c9e7accb70fdfe1aca030e084"><td class="mdescLeft"> </td><td class="mdescRight">Subtract two polynomials of the same dimension.  <a href="#ga0e83ae3c9e7accb70fdfe1aca030e084"></a><br/></td></tr>
-<tr class="memitem:ga55c030413e6ef112753b280ad5213786"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__polynomial.html#ga55c030413e6ef112753b280ad5213786">irplib_polynomial_multiply_scalar</a> (cpl_polynomial *self, const cpl_polynomial *other, double factor)</td></tr>
-<tr class="memdesc:ga55c030413e6ef112753b280ad5213786"><td class="mdescLeft"> </td><td class="mdescRight">Multiply a polynomial with a scalar.  <a href="#ga55c030413e6ef112753b280ad5213786"></a><br/></td></tr>
-<tr class="memitem:ga87e84d69eadbde803fce3c3cbdedf385"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385">irplib_polynomial_solve_1d_all</a> (const cpl_polynomial *self, cpl_vector *roots, cpl_size *preal)</td></tr>
-<tr class="memdesc:ga87e84d69eadbde803fce3c3cbdedf385"><td class="mdescLeft"> </td><td class="mdescRight">Compute all n roots of p(x) = 0, where p(x) is of degree n, n > 0.  <a href="#ga87e84d69eadbde803fce3c3cbdedf385"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gac5c97217542c30f329b225a9c833ea3b"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double irplib_polynomial_eval_2_max </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>p2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>p1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>p0</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>is_c</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x2</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Find the max residual on a 2nd degree 1D-polynomial on the roots. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p2</td><td>p2 </td></tr>
-    <tr><td class="paramname">p1</td><td>p1 </td></tr>
-    <tr><td class="paramname">p0</td><td>p0 </td></tr>
-    <tr><td class="paramname">is_c</td><td>CPL_TRUE iff the two roots are complex </td></tr>
-    <tr><td class="paramname">x1</td><td>The 1st point of evaluation (or real part on complex) </td></tr>
-    <tr><td class="paramname">x2</td><td>The 2nd point of evaluation (or imaginary part on complex) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The result </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__polynomial_8c_source.html#l00613">613</a> of file <a class="el" href="irplib__polynomial_8c_source.html">irplib_polynomial.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8524e951a5bd6930a4336a66bdce4a3d"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double irplib_polynomial_eval_3_max </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>p3</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>p2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>p1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>p0</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>is_c</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x3</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Find the max residual on a 3rd degree 1D-polynomial on the roots. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p3</td><td>p3 </td></tr>
-    <tr><td class="paramname">p2</td><td>p2 </td></tr>
-    <tr><td class="paramname">p1</td><td>p1 </td></tr>
-    <tr><td class="paramname">p0</td><td>p0 </td></tr>
-    <tr><td class="paramname">is_c</td><td>CPL_TRUE iff two roots are complex </td></tr>
-    <tr><td class="paramname">x1</td><td>The 1st point of evaluation (real) </td></tr>
-    <tr><td class="paramname">x2</td><td>The 2nd point of evaluation (or real part on complex) </td></tr>
-    <tr><td class="paramname">x3</td><td>The 3rd point of evaluation (or imaginary part on complex) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The result </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__polynomial_8c_source.html#l00650">650</a> of file <a class="el" href="irplib__polynomial_8c_source.html">irplib_polynomial.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga90e13f05c9addc584f154279681d1853"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_polynomial_add </td>
-          <td>(</td>
-          <td class="paramtype">cpl_polynomial * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>first</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>second</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Add two polynomials of the same dimension. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The polynomial to hold the result </td></tr>
-    <tr><td class="paramname">first</td><td>The 1st polynomial to add </td></tr>
-    <tr><td class="paramname">second</td><td>The 2nd polynomial to add </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>self may be passed also as first and/or second</dd></dl>
-<p>Possible CPL error code set in this function:</p>
-<ul>
-<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
-<li>CPL_ERROR_INCOMPATIBLE_INPUT if the polynomials do not have identical dimensions</li>
-<li>CPL_ERROR_UNSUPPORTED_MODE if the dimension is not 1 (FIXME) </li>
-</ul>
-
-<p>Definition at line <a class="el" href="irplib__polynomial_8c_source.html#l00134">134</a> of file <a class="el" href="irplib__polynomial_8c_source.html">irplib_polynomial.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0e83ae3c9e7accb70fdfe1aca030e084"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_polynomial_subtract </td>
-          <td>(</td>
-          <td class="paramtype">cpl_polynomial * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>first</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>second</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Subtract two polynomials of the same dimension. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The polynomial to hold the result </td></tr>
-    <tr><td class="paramname">first</td><td>The polynomial to subtract from </td></tr>
-    <tr><td class="paramname">second</td><td>The polynomial to subtract </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>self may be passed also as first and/or second</dd></dl>
-<p>Possible CPL error code set in this function:</p>
-<ul>
-<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
-<li>CPL_ERROR_INCOMPATIBLE_INPUT if the polynomials do not have identical dimensions</li>
-<li>CPL_ERROR_UNSUPPORTED_MODE if the dimension is not 1 (FIXME) </li>
-</ul>
-
-<p>Definition at line <a class="el" href="irplib__polynomial_8c_source.html#l00195">195</a> of file <a class="el" href="irplib__polynomial_8c_source.html">irplib_polynomial.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga55c030413e6ef112753b280ad5213786"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_polynomial_multiply_scalar </td>
-          <td>(</td>
-          <td class="paramtype">cpl_polynomial * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>other</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>factor</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Multiply a polynomial with a scalar. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The polynomial to hold the result </td></tr>
-    <tr><td class="paramname">other</td><td>The polynomial to scale, may equal self </td></tr>
-    <tr><td class="paramname">factor</td><td>The factor to multiply with </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code</dd></dl>
-<p>Possible CPL error code set in this function:</p>
-<ul>
-<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
-<li>CPL_ERROR_UNSUPPORTED_MODE if the dimension is not 1 (FIXME) </li>
-</ul>
-
-<p>Definition at line <a class="el" href="irplib__polynomial_8c_source.html#l00253">253</a> of file <a class="el" href="irplib__polynomial_8c_source.html">irplib_polynomial.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga87e84d69eadbde803fce3c3cbdedf385"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_polynomial_solve_1d_all </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_vector * </td>
-          <td class="paramname"><em>roots</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_size * </td>
-          <td class="paramname"><em>preal</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Compute all n roots of p(x) = 0, where p(x) is of degree n, n > 0. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The 1D-polynomial </td></tr>
-    <tr><td class="paramname">roots</td><td>A pre-allocated vector of length n to hold the roots </td></tr>
-    <tr><td class="paramname">preal</td><td>The number of real roots found, or undefined on error </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code</dd></dl>
-<p>The *preal real roots are stored first in ascending order, then follows for each pair of complex conjugate roots, the real and imaginary parts of the root in the positive imaginary half-plane, for example for a 3rd degree polynomial with 1 real root, the roots are represented as: x0 = v0 x1 = v1 + i v2 x2 = v1 - i v2, where v0, v1, v2 are the elements of the roots vector.</p>
-<p>Possible CPL error code set in this function:</p>
-<ul>
-<li>CPL_ERROR_NULL_INPUT if an input pointer is NULL</li>
-<li>CPL_ERROR_INVALID_TYPE if the polynomial has the wrong dimension</li>
-<li>CPL_ERROR_DATA_NOT_FOUND if the polynomial does not have a degree of at least 1.</li>
-<li>CPL_ERROR_INCOMPATIBLE_INPUT if the roots vector does not have length n</li>
-<li>CPL_ERROR_DIVISION_BY_ZERO if a division by zero occurs (n > 4)</li>
-<li>CPL_ERROR_CONTINUE if the algorithm does not converge (n > 4) </li>
-</ul>
-
-<p>Definition at line <a class="el" href="irplib__polynomial_8c_source.html#l00310">310</a> of file <a class="el" href="irplib__polynomial_8c_source.html">irplib_polynomial.c</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__ppm.html b/html/group__irplib__ppm.html
deleted file mode 100644
index 4f6873d..0000000
--- a/html/group__irplib__ppm.html
+++ /dev/null
@@ -1,151 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Point pattern matching</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Point pattern matching</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga9b49569fb0bd55977b533407c1ad956d"><td class="memItemLeft" align="right" valign="top">cpl_polynomial * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__ppm.html#ga9b49569fb0bd55977b533407c1ad956d">irplib_ppm_engine</a> (const cpl_vector *spectrum, const cpl_bivector *lines_catalog, const cpl_polynomial *poly_init, double slitw, double fwhm, double thresh, int degree, int doplot, cpl_table **tab_infos)</td></tr>
-<tr class="memdesc:ga9b49569fb0bd55977b533407c1ad956d"><td class="mdescLeft"> </td><td class="mdescRight">The Wavelength Calibration using PPM.  <a href="#ga9b49569fb0bd55977b533407c1ad956d"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga9b49569fb0bd55977b533407c1ad956d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_polynomial* irplib_ppm_engine </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_bivector * </td>
-          <td class="paramname"><em>lines_catalog</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>poly_init</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>slitw</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>fwhm</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>thresh</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>degree</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>doplot</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>tab_infos</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>The Wavelength Calibration using PPM. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">spectrum</td><td>The spectrum vector </td></tr>
-    <tr><td class="paramname">lines_catalog</td><td>The lines catalog </td></tr>
-    <tr><td class="paramname">poly_init</td><td>Polynomial with the initial guess </td></tr>
-    <tr><td class="paramname">slitw</td><td>The slit width </td></tr>
-    <tr><td class="paramname">fwhm</td><td>The spectral FWHM [pixel] </td></tr>
-    <tr><td class="paramname">thresh</td><td>The threshold for lines detection </td></tr>
-    <tr><td class="paramname">degree</td><td>The polynomial degree </td></tr>
-    <tr><td class="paramname">doplot</td><td>Plotting level (zero for none) </td></tr>
-    <tr><td class="paramname">tab_infos</td><td>The computed solution table or NULL (computed) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the polynomial solution or NULL in error case</dd></dl>
-<p>The returned table must be deallocated with cpl_table_delete(). The returned polynomial must be deallocated with cpl_polynomial_delete(). </p>
-
-<p>Definition at line <a class="el" href="irplib__ppm_8c_source.html#l00084">84</a> of file <a class="el" href="irplib__ppm_8c_source.html">irplib_ppm.c</a>.</p>
-
-<p>References <a class="el" href="irplib__spectrum_8c_source.html#l00273">irplib_spectrum_detect_peaks()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__slitpos.html b/html/group__irplib__slitpos.html
deleted file mode 100644
index ce23c6a..0000000
--- a/html/group__irplib__slitpos.html
+++ /dev/null
@@ -1,117 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Functions for slit position</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Functions for slit position</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga632b21eccf3d4bb48426cdd23f321cba"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__slitpos.html#ga632b21eccf3d4bb48426cdd23f321cba">irplib_slitpos_analysis</a> (const cpl_image *imslit, int slit_max_width, double *slit_flux)</td></tr>
-<tr class="memdesc:ga632b21eccf3d4bb48426cdd23f321cba"><td class="mdescLeft"> </td><td class="mdescRight">Detect the slit position, detect its ends, extract a thin image containing only the slit and find its edges.  <a href="#ga632b21eccf3d4bb48426cdd23f321cba"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga632b21eccf3d4bb48426cdd23f321cba"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* irplib_slitpos_analysis </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>imslit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>slit_max_width</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>slit_flux</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Detect the slit position, detect its ends, extract a thin image containing only the slit and find its edges. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">imslit</td><td>Input image with a vertical slit </td></tr>
-    <tr><td class="paramname">slit_max_width</td><td>Maximum slit width </td></tr>
-    <tr><td class="paramname">slit_flux</td><td>Some of the pixels values of the slit </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the table with the slit position or NULL on error</dd></dl>
-<p>On success the created table contains rows of four columns labeled: "SLIT_Y" (int) "SLIT_LEFT" (double) "SLIT_CENTER" (double) "SLIT_RIGHT" (double)</p>
-<p>This function returns a table with 3 columns:</p>
-<ul>
-<li>Left or Lower edge of the slit</li>
-<li>Center of the slit</li>
-<li>Right or Upper edge of the slit</li>
-</ul>
-<p>Additionally, the slit flux is computed. The passed slit_flux pointer parameter can be NULL. In error case, its value is undefined.</p>
-<p>NB: Coordinates use FITS convention. </p>
-
-<p>Definition at line <a class="el" href="irplib__slitpos_8c_source.html#l00119">119</a> of file <a class="el" href="irplib__slitpos_8c_source.html">irplib_slitpos.c</a>.</p>
-
-<p>References <a class="el" href="irplib__flat_8c_source.html#l00191">irplib_flat_fit_slope_robust()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__spectrum.html b/html/group__irplib__spectrum.html
deleted file mode 100644
index d3bcae2..0000000
--- a/html/group__irplib__spectrum.html
+++ /dev/null
@@ -1,198 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Functions for LSS spectra</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Functions for LSS spectra</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga9ac928ba9a48e864b56e921c970638c0"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__spectrum.html#ga9ac928ba9a48e864b56e921c970638c0">irplib_spectrum_find_brightest</a> (const cpl_image *in, int offset, spec_shadows shadows, double min_bright, int orient, double *pos)</td></tr>
-<tr class="memdesc:ga9ac928ba9a48e864b56e921c970638c0"><td class="mdescLeft"> </td><td class="mdescRight">Finds the brightest spectrum in an image.  <a href="#ga9ac928ba9a48e864b56e921c970638c0"></a><br/></td></tr>
-<tr class="memitem:ga1885902c29d7383674c85e2c3d935961"><td class="memItemLeft" align="right" valign="top">cpl_vector * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__spectrum.html#ga1885902c29d7383674c85e2c3d935961">irplib_spectrum_detect_peaks</a> (const cpl_vector *in, int fwhm, double sigma, int display, cpl_vector **fwhms_out, cpl_vector **areas_out)</td></tr>
-<tr class="memdesc:ga1885902c29d7383674c85e2c3d935961"><td class="mdescLeft"> </td><td class="mdescRight">Detect the brightest features in a spectrum.  <a href="#ga1885902c29d7383674c85e2c3d935961"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga9ac928ba9a48e864b56e921c970638c0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int irplib_spectrum_find_brightest </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>in</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>offset</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">spec_shadows </td>
-          <td class="paramname"><em>shadows</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>min_bright</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>orient</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>pos</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Finds the brightest spectrum in an image. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">in</td><td>spectral image with spectra </td></tr>
-    <tr><td class="paramname">offset</td><td>the diff. between pos. and neg. spectra </td></tr>
-    <tr><td class="paramname">shadows</td><td>the spectral shadows </td></tr>
-    <tr><td class="paramname">min_bright</td><td>min. bright. required for a spectrum </td></tr>
-    <tr><td class="paramname">orient</td><td>1 for vertical spec. 0 for horizontal ones </td></tr>
-    <tr><td class="paramname">pos</td><td>the computed spectrum position (1->npix) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 if ok, -1 in error case</dd></dl>
-<p>Finds the brightest spectrum in an image by collapsing the image orthogonally to the spectrum orientation. Spectra are assumed to be horizontal for orient==0, vertical for 1 </p>
-
-<p>Definition at line <a class="el" href="irplib__spectrum_8c_source.html#l00093">93</a> of file <a class="el" href="irplib__spectrum_8c_source.html">irplib_spectrum.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1885902c29d7383674c85e2c3d935961"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_vector* irplib_spectrum_detect_peaks </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>in</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>fwhm</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sigma</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>display</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_vector ** </td>
-          <td class="paramname"><em>fwhms_out</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_vector ** </td>
-          <td class="paramname"><em>areas_out</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Detect the brightest features in a spectrum. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">in</td><td>the spectrum </td></tr>
-    <tr><td class="paramname">fwhm</td><td>the FWHM used for the lines convolution </td></tr>
-    <tr><td class="paramname">display</td><td>the flag to display </td></tr>
-    <tr><td class="paramname">fwhms</td><td>the fwhms of the detected lines </td></tr>
-    <tr><td class="paramname">areas</td><td>the areas under the detected lines </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The bright lines positions or NULL in error case</dd></dl>
-<p>The lines positions are in pixels (first pixel is 1) </p>
-
-<p>Definition at line <a class="el" href="irplib__spectrum_8c_source.html#l00273">273</a> of file <a class="el" href="irplib__spectrum_8c_source.html">irplib_spectrum.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__ppm_8c_source.html#l00084">irplib_ppm_engine()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__stdstar.html b/html/group__irplib__stdstar.html
deleted file mode 100644
index a1bd533..0000000
--- a/html/group__irplib__stdstar.html
+++ /dev/null
@@ -1,631 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Functions for standard stars</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Functions for standard stars</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gac18c92be3d3c96ba57804b074a2abb7d"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__stdstar.html#gac18c92be3d3c96ba57804b074a2abb7d">irplib_stdstar_write_catalogs</a> (cpl_frameset *set_in, const cpl_frameset *set_raw, const char *recipe_name, const char *pro_cat, const char *pro_type, const char *package_name, const char *ins_name, cpl_table *(*convert_ascii_table)( [...]
-<tr class="memdesc:gac18c92be3d3c96ba57804b074a2abb7d"><td class="mdescLeft"> </td><td class="mdescRight">Write the ASCII catalogs as FITS files.  <a href="#gac18c92be3d3c96ba57804b074a2abb7d"></a><br/></td></tr>
-<tr class="memitem:ga1690bd84c24e905e384b8f725bf7aff1"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__stdstar.html#ga1690bd84c24e905e384b8f725bf7aff1">irplib_stdstar_load_catalog</a> (const char *filename, const char *ext_name)</td></tr>
-<tr class="memdesc:ga1690bd84c24e905e384b8f725bf7aff1"><td class="mdescLeft"> </td><td class="mdescRight">Load the FITS catalog in a table.  <a href="#ga1690bd84c24e905e384b8f725bf7aff1"></a><br/></td></tr>
-<tr class="memitem:ga2dbe2031bf6d669778dca42f6c343efc"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__stdstar.html#ga2dbe2031bf6d669778dca42f6c343efc">irplib_stdstar_check_columns_exist</a> (const cpl_table *catal)</td></tr>
-<tr class="memdesc:ga2dbe2031bf6d669778dca42f6c343efc"><td class="mdescLeft"> </td><td class="mdescRight">Check that the table has the relevant columns of a stdstar table.  <a href="#ga2dbe2031bf6d669778dca42f6c343efc"></a><br/></td></tr>
-<tr class="memitem:ga080e06303f3f83a91959ac01381dc4e8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__stdstar.html#ga080e06303f3f83a91959ac01381dc4e8">irplib_stdstar_select_stars_dist</a> (cpl_table *cat, double ra, double dec, double dist)</td></tr>
-<tr class="memdesc:ga080e06303f3f83a91959ac01381dc4e8"><td class="mdescLeft"> </td><td class="mdescRight">Select the stars that are within a given distance.  <a href="#ga080e06303f3f83a91959ac01381dc4e8"></a><br/></td></tr>
-<tr class="memitem:ga28316d8f0619bdbd0040b1f56799e7ab"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__stdstar.html#ga28316d8f0619bdbd0040b1f56799e7ab">irplib_stdstar_select_stars_mag</a> (cpl_table *cat, const char *mag_colname)</td></tr>
-<tr class="memdesc:ga28316d8f0619bdbd0040b1f56799e7ab"><td class="mdescLeft"> </td><td class="mdescRight">Select the stars that have a known magnitude.  <a href="#ga28316d8f0619bdbd0040b1f56799e7ab"></a><br/></td></tr>
-<tr class="memitem:ga36b4c90fd548dd0c00afe97b17a558e5"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__stdstar.html#ga36b4c90fd548dd0c00afe97b17a558e5">irplib_stdstar_find_closest</a> (const cpl_table *cat, double ra, double dec)</td></tr>
-<tr class="memdesc:ga36b4c90fd548dd0c00afe97b17a558e5"><td class="mdescLeft"> </td><td class="mdescRight">Find the closest star.  <a href="#ga36b4c90fd548dd0c00afe97b17a558e5"></a><br/></td></tr>
-<tr class="memitem:ga4d69ae957de04b1769ac225f12834027"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__stdstar.html#ga4d69ae957de04b1769ac225f12834027">irplib_stdstar_find_star</a> (const char *catfile, double ra, double dec, const char *band, const char *catname, double *mag, char **name, char **type, char **usedcatname, double *star_ra, double *star_dec, double dist_am)</td></tr>
-<tr class="memdesc:ga4d69ae957de04b1769ac225f12834027"><td class="mdescLeft"> </td><td class="mdescRight">Find the closest star to ra, dec in the catalog.  <a href="#ga4d69ae957de04b1769ac225f12834027"></a><br/></td></tr>
-<tr class="memitem:ga93b46d8ac857a0d0fdc781b56a91a8ba"><td class="memItemLeft" align="right" valign="top">cpl_vector * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__stdstar.html#ga93b46d8ac857a0d0fdc781b56a91a8ba">irplib_stdstar_get_conversion</a> (const cpl_bivector *spec, double dit, double surface, double gain, double mag)</td></tr>
-<tr class="memdesc:ga93b46d8ac857a0d0fdc781b56a91a8ba"><td class="mdescLeft"> </td><td class="mdescRight">Get the conversion.  <a href="#ga93b46d8ac857a0d0fdc781b56a91a8ba"></a><br/></td></tr>
-<tr class="memitem:ga6e68e6a9d0bbb41ef717234b9f289dab"><td class="memItemLeft" align="right" valign="top">cpl_vector * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__stdstar.html#ga6e68e6a9d0bbb41ef717234b9f289dab">irplib_stdstar_get_mag_zero</a> (const cpl_bivector *sed, const cpl_vector *waves, double cent_wl)</td></tr>
-<tr class="memdesc:ga6e68e6a9d0bbb41ef717234b9f289dab"><td class="mdescLeft"> </td><td class="mdescRight">Get the 0 magnitude spectrum.  <a href="#ga6e68e6a9d0bbb41ef717234b9f289dab"></a><br/></td></tr>
-<tr class="memitem:gabbad67ff18cb901914caa9e864969dea"><td class="memItemLeft" align="right" valign="top">cpl_bivector * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__stdstar.html#gabbad67ff18cb901914caa9e864969dea">irplib_stdstar_get_sed</a> (const char *seds_file, const char *sptype)</td></tr>
-<tr class="memdesc:gabbad67ff18cb901914caa9e864969dea"><td class="mdescLeft"> </td><td class="mdescRight">Get the SED.  <a href="#gabbad67ff18cb901914caa9e864969dea"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gac18c92be3d3c96ba57804b074a2abb7d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_stdstar_write_catalogs </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>set_in</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>set_raw</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>pro_cat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>pro_type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>package_name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>ins_name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table *(*)(const char *) </td>
-          <td class="paramname"><em>convert_ascii_table</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the ASCII catalogs as FITS files. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">set_in</td><td>Input frameset where the product is registered </td></tr>
-    <tr><td class="paramname">set_raw</td><td>Set of ASCII catalogs </td></tr>
-    <tr><td class="paramname">recipe_name</td><td>Recipe name </td></tr>
-    <tr><td class="paramname">pro_cat</td><td>PRO.CATG </td></tr>
-    <tr><td class="paramname">pro_type</td><td>PRO.TYPE </td></tr>
-    <tr><td class="paramname">package_name</td><td>Usually PACKAGE "/" PACKAGE_VERSION </td></tr>
-    <tr><td class="paramname">ins_name</td><td>Instrument name </td></tr>
-    <tr><td class="paramname">convert_ascii_table</td><td>Conversion function </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE if ok or else the relevant CPL error code</dd></dl>
-<p>Every catalog will be written in a different extension, where EXTNAME is the name of the catalog ASCII file name.</p>
-<p>The conversion ascii -> cpl_table is done by convert_ascii_table() and should be defined in each instrument </p>
-
-<p>Definition at line <a class="el" href="irplib__stdstar_8c_source.html#l00089">89</a> of file <a class="el" href="irplib__stdstar_8c_source.html">irplib_stdstar.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1690bd84c24e905e384b8f725bf7aff1"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* irplib_stdstar_load_catalog </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>ext_name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Load the FITS catalog in a table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the FITS catalog </td></tr>
-    <tr><td class="paramname">ext_name</td><td>Name of the catalog or "all" </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The newly allocated table orNULL in error case.</dd></dl>
-<p>The table is loaded from the specified extension. If "all" is specified, all extension with the same columns as the first one are loaded and put together in the returned table.</p>
-<p>The returned table must be de allocated with cpl_table_delete(). </p>
-
-<p>Definition at line <a class="el" href="irplib__stdstar_8c_source.html#l00195">195</a> of file <a class="el" href="irplib__stdstar_8c_source.html">irplib_stdstar.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__stdstar_8c_source.html#l00501">irplib_stdstar_find_star()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2dbe2031bf6d669778dca42f6c343efc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_stdstar_check_columns_exist </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>catal</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Check that the table has the relevant columns of a stdstar table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">catal</td><td>Table with the catalogue </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE if the table has all the mandatory columns, a proper error code otherwise</dd></dl>
-<p>The table is checked for the presence of the mandatory keywords </p>
-
-<p>Definition at line <a class="el" href="irplib__stdstar_8c_source.html#l00300">300</a> of file <a class="el" href="irplib__stdstar_8c_source.html">irplib_stdstar.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__stdstar_8c_source.html#l00501">irplib_stdstar_find_star()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga080e06303f3f83a91959ac01381dc4e8"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int irplib_stdstar_select_stars_dist </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>cat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>ra</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>dec</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>dist</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Select the stars that are within a given distance. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">cat</td><td>the catalog </td></tr>
-    <tr><td class="paramname">ra</td><td>RA pos </td></tr>
-    <tr><td class="paramname">dec</td><td>DEC pos </td></tr>
-    <tr><td class="paramname">dist</td><td>the distancw </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if ok, -1 in error case</dd></dl>
-<p>The stars that are within not further than dist from ra,dec are selected in the table. </p>
-
-<p>Definition at line <a class="el" href="irplib__stdstar_8c_source.html#l00348">348</a> of file <a class="el" href="irplib__stdstar_8c_source.html">irplib_stdstar.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__stdstar_8c_source.html#l00501">irplib_stdstar_find_star()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga28316d8f0619bdbd0040b1f56799e7ab"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int irplib_stdstar_select_stars_mag </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>cat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>mag_colname</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Select the stars that have a known magnitude. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">cat</td><td>the catalog </td></tr>
-    <tr><td class="paramname">mag_colname</td><td>the column name with the searched magnitude </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if ok, -1 in error case</dd></dl>
-<p>The stars whose magnitude in the mag band is known are selected in the table. </p>
-
-<p>Definition at line <a class="el" href="irplib__stdstar_8c_source.html#l00397">397</a> of file <a class="el" href="irplib__stdstar_8c_source.html">irplib_stdstar.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__stdstar_8c_source.html#l00501">irplib_stdstar_find_star()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga36b4c90fd548dd0c00afe97b17a558e5"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int irplib_stdstar_find_closest </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>cat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>ra</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>dec</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find the closest star. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">cat</td><td>the catalog </td></tr>
-    <tr><td class="paramname">ra</td><td>RA pos </td></tr>
-    <tr><td class="paramname">dec</td><td>DEC pos </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the index of the star in the table or -1 in error case</dd></dl>
-<p>Returns the index of the star that is closest to (ra,dec) </p>
-
-<p>Definition at line <a class="el" href="irplib__stdstar_8c_source.html#l00433">433</a> of file <a class="el" href="irplib__stdstar_8c_source.html">irplib_stdstar.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__stdstar_8c_source.html#l00501">irplib_stdstar_find_star()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4d69ae957de04b1769ac225f12834027"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_stdstar_find_star </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>catfile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>ra</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>dec</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>band</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>catname</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>mag</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char ** </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char ** </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char ** </td>
-          <td class="paramname"><em>usedcatname</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>star_ra</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>star_dec</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>dist_am</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find the closest star to ra, dec in the catalog. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">catfile</td><td>the catalog file name </td></tr>
-    <tr><td class="paramname">ra</td><td>RA pos where to search </td></tr>
-    <tr><td class="paramname">dec</td><td>DEC pos where to search </td></tr>
-    <tr><td class="paramname">band</td><td>the band name </td></tr>
-    <tr><td class="paramname">catname</td><td>the searched catalog name </td></tr>
-    <tr><td class="paramname">mag</td><td>the computed magnitude (output) </td></tr>
-    <tr><td class="paramname">name</td><td>the star name (output) </td></tr>
-    <tr><td class="paramname">type</td><td>the star type (output) </td></tr>
-    <tr><td class="paramname">star_ra</td><td>the star RA from the catalog (output) </td></tr>
-    <tr><td class="paramname">star_dec</td><td>the star DEC from the catalog (output) </td></tr>
-    <tr><td class="paramname">dist_am</td><td>the distance in arc minutes </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE if ok or else the relevant CPL error code</dd></dl>
-<p>The closest star to ra, dec with defined magnitude is search in all the catalogues included in catfile. If catname is "all", all the catalogs are searched at once. The output pointers can be NULL if one is not interested in them. </p>
-
-<p>Definition at line <a class="el" href="irplib__stdstar_8c_source.html#l00501">501</a> of file <a class="el" href="irplib__stdstar_8c_source.html">irplib_stdstar.c</a>.</p>
-
-<p>References <a class="el" href="irplib__stdstar_8c_source.html#l00300">irplib_stdstar_check_columns_exist()</a>, <a class="el" href="irplib__stdstar_8c_source.html#l00433">irplib_stdstar_find_closest()</a>, <a class="el" href="irplib__stdstar_8c_source.html#l00195">irplib_stdstar_load_catalog()</a>, <a class="el" href="irplib__stdstar_8c_source.html#l00348">irplib_stdstar_select_stars_dist()</a>, and <a class="el" href="irplib__stdstar_8c_source.html#l00397">irplib_stdstar_select_stars [...]
-
-</div>
-</div>
-<a class="anchor" id="ga93b46d8ac857a0d0fdc781b56a91a8ba"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_vector* irplib_stdstar_get_conversion </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_bivector * </td>
-          <td class="paramname"><em>spec</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>dit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>surface</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>gain</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>mag</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the conversion. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">spec</td><td>the extracted spectrum </td></tr>
-    <tr><td class="paramname">dit</td><td>the DIT (in sec) </td></tr>
-    <tr><td class="paramname">surface</td><td>the surface of the miror (in sq cm) </td></tr>
-    <tr><td class="paramname">gain</td><td>the gain of the instrument (ISAAC=4.5, SINFONI=2.42) </td></tr>
-    <tr><td class="paramname">mag</td><td>the star magnitude </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the newly allocated conversion or NULL in error case</dd></dl>
-<p>conversion(wave) = (spec * gain * 10^(mag/2.5) * h * c) / (dit * surface * dispersion * wave) </p>
-
-<p>Definition at line <a class="el" href="irplib__stdstar_8c_source.html#l00609">609</a> of file <a class="el" href="irplib__stdstar_8c_source.html">irplib_stdstar.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6e68e6a9d0bbb41ef717234b9f289dab"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_vector* irplib_stdstar_get_mag_zero </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_bivector * </td>
-          <td class="paramname"><em>sed</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>waves</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>cent_wl</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the 0 magnitude spectrum. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">sed</td><td>the SED in angstroms / ergs/s/cm^2/Angstrom </td></tr>
-    <tr><td class="paramname">waves</td><td>the wavelengths in angstroms </td></tr>
-    <tr><td class="paramname">cent_wl</td><td>the central wavelength in microns </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the newly allocated spectrum or NULL in error case </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__stdstar_8c_source.html#l00668">668</a> of file <a class="el" href="irplib__stdstar_8c_source.html">irplib_stdstar.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gabbad67ff18cb901914caa9e864969dea"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_bivector* irplib_stdstar_get_sed </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>seds_file</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>sptype</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the SED. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">seds_file</td><td>the table file name </td></tr>
-    <tr><td class="paramname">sptype</td><td>the requested spectral type </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the newly allocated SED or NULL in error case</dd></dl>
-<p>wavelength in Angstroms SED in </p>
-
-<p>Definition at line <a class="el" href="irplib__stdstar_8c_source.html#l00773">773</a> of file <a class="el" href="irplib__stdstar_8c_source.html">irplib_stdstar.c</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__strehl.html b/html/group__irplib__strehl.html
deleted file mode 100644
index 21cac75..0000000
--- a/html/group__irplib__strehl.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Functions to compute the Strehl</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Functions to compute the Strehl</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__utils.html b/html/group__irplib__utils.html
deleted file mode 100644
index 30f7ab7..0000000
--- a/html/group__irplib__utils.html
+++ /dev/null
@@ -1,1473 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Miscellaneous Utilities</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Miscellaneous Utilities</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga6b29dac884b62ab52f43dd670d4d8386"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga6b29dac884b62ab52f43dd670d4d8386">irplib_errorstate_dump_warning</a> (unsigned self, unsigned first, unsigned last)</td></tr>
-<tr class="memdesc:ga6b29dac884b62ab52f43dd670d4d8386"><td class="mdescLeft"> </td><td class="mdescRight">Dump a single CPL error at the CPL warning level.  <a href="#ga6b29dac884b62ab52f43dd670d4d8386"></a><br/></td></tr>
-<tr class="memitem:ga87417a67281b352eb8c2a627b2a47c12"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga87417a67281b352eb8c2a627b2a47c12"></a>
-static cpl_polynomial * </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial_fit_1d_create_common</b> (const cpl_vector *x_pos, const cpl_vector *values, int degree, double *mse, double *rechisq)</td></tr>
-<tr class="memitem:ga901ff52a1c9dcdfcf2d2632d31064bdb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga901ff52a1c9dcdfcf2d2632d31064bdb">irplib_errorstate_dump_info</a> (unsigned self, unsigned first, unsigned last)</td></tr>
-<tr class="memdesc:ga901ff52a1c9dcdfcf2d2632d31064bdb"><td class="mdescLeft"> </td><td class="mdescRight">Dump a single CPL error at the CPL info level.  <a href="#ga901ff52a1c9dcdfcf2d2632d31064bdb"></a><br/></td></tr>
-<tr class="memitem:ga26c6209e5df98978e2922a15b47b47d1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga26c6209e5df98978e2922a15b47b47d1">irplib_errorstate_dump_debug</a> (unsigned self, unsigned first, unsigned last)</td></tr>
-<tr class="memdesc:ga26c6209e5df98978e2922a15b47b47d1"><td class="mdescLeft"> </td><td class="mdescRight">Dump a single CPL error at the CPL debug level.  <a href="#ga26c6209e5df98978e2922a15b47b47d1"></a><br/></td></tr>
-<tr class="memitem:ga346842d722834a2e6221ff2d86314b7e"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga346842d722834a2e6221ff2d86314b7e">irplib_dfs_save_image</a> (cpl_frameset *allframes, const cpl_parameterlist *parlist, const cpl_frameset *usedframes, const cpl_image *image, cpl_type_bpp bpp, const char *recipe, const char *procat, const cpl_propertylist *applist, const [...]
-<tr class="memdesc:ga346842d722834a2e6221ff2d86314b7e"><td class="mdescLeft"> </td><td class="mdescRight">Save an image as a DFS-compliant pipeline product.  <a href="#ga346842d722834a2e6221ff2d86314b7e"></a><br/></td></tr>
-<tr class="memitem:ga4dc12f321e7aeb5e67ff19f815bfd7b7"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga4dc12f321e7aeb5e67ff19f815bfd7b7">irplib_dfs_save_propertylist</a> (cpl_frameset *allframes, const cpl_parameterlist *parlist, const cpl_frameset *usedframes, const char *recipe, const char *procat, const cpl_propertylist *applist, const char *remregexp, const char *pipe_ [...]
-<tr class="memdesc:ga4dc12f321e7aeb5e67ff19f815bfd7b7"><td class="mdescLeft"> </td><td class="mdescRight">Save a propertylist as a DFS-compliant pipeline product.  <a href="#ga4dc12f321e7aeb5e67ff19f815bfd7b7"></a><br/></td></tr>
-<tr class="memitem:ga66f7adc9e165b4e934e3d57a700f55c1"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga66f7adc9e165b4e934e3d57a700f55c1">irplib_dfs_save_imagelist</a> (cpl_frameset *allframes, const cpl_parameterlist *parlist, const cpl_frameset *usedframes, const cpl_imagelist *imagelist, cpl_type_bpp bpp, const char *recipe, const char *procat, const cpl_propertylist *ap [...]
-<tr class="memdesc:ga66f7adc9e165b4e934e3d57a700f55c1"><td class="mdescLeft"> </td><td class="mdescRight">Save an imagelist as a DFS-compliant pipeline product.  <a href="#ga66f7adc9e165b4e934e3d57a700f55c1"></a><br/></td></tr>
-<tr class="memitem:ga62a91f8630af11164547c168660b2ade"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga62a91f8630af11164547c168660b2ade">irplib_dfs_save_table</a> (cpl_frameset *allframes, const cpl_parameterlist *parlist, const cpl_frameset *usedframes, const cpl_table *table, const cpl_propertylist *tablelist, const char *recipe, const char *procat, const cpl_propertylis [...]
-<tr class="memdesc:ga62a91f8630af11164547c168660b2ade"><td class="mdescLeft"> </td><td class="mdescRight">Save a table as a DFS-compliant pipeline product.  <a href="#ga62a91f8630af11164547c168660b2ade"></a><br/></td></tr>
-<tr class="memitem:ga1fd7c2f4c00014049b0bf4bf6814b451"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga1fd7c2f4c00014049b0bf4bf6814b451">irplib_dfs_save_image_</a> (cpl_frameset *allframes, cpl_propertylist *header, const cpl_parameterlist *parlist, const cpl_frameset *usedframes, const cpl_frame *inherit, const cpl_image *image, cpl_type type, const char *recipe, const cp [...]
-<tr class="memdesc:ga1fd7c2f4c00014049b0bf4bf6814b451"><td class="mdescLeft"> </td><td class="mdescRight">Save an image as a DFS-compliant pipeline product.  <a href="#ga1fd7c2f4c00014049b0bf4bf6814b451"></a><br/></td></tr>
-<tr class="memitem:ga4ffea791c01c8a50093294d6dcbddb56"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga4ffea791c01c8a50093294d6dcbddb56">irplib_dfs_product_save</a> (cpl_frameset *allframes, cpl_propertylist *header, const cpl_parameterlist *parlist, const cpl_frameset *usedframes, const cpl_frame *inherit, const cpl_imagelist *imagelist, const cpl_image *image, cpl [...]
-<tr class="memdesc:ga4ffea791c01c8a50093294d6dcbddb56"><td class="mdescLeft"> </td><td class="mdescRight">Save either an image or table as a pipeline product.  <a href="#ga4ffea791c01c8a50093294d6dcbddb56"></a><br/></td></tr>
-<tr class="memitem:ga832676f36ecd647b77f4bb373b2d1954"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954">irplib_image_split</a> (const cpl_image *self, cpl_image *im_low, cpl_image *im_mid, cpl_image *im_high, double th_low, cpl_boolean isleq_low, double th_high, cpl_boolean isgeq_high, double alt_low, double alt_high, cpl_boolean isbad_low, [...]
-<tr class="memdesc:ga832676f36ecd647b77f4bb373b2d1954"><td class="mdescLeft"> </td><td class="mdescRight">Split the values in an image in three according to two thresholds.  <a href="#ga832676f36ecd647b77f4bb373b2d1954"></a><br/></td></tr>
-<tr class="memitem:ga3d1a791b5dc870770611c7dbf60d02df"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga3d1a791b5dc870770611c7dbf60d02df">irplib_dfs_table_convert</a> (cpl_table *self, cpl_frameset *allframes, const cpl_frameset *useframes, int maxlinelen, char commentchar, const char *product_name, const char *procatg, const cpl_parameterlist *parlist, const char *recipe_n [...]
-<tr class="memdesc:ga3d1a791b5dc870770611c7dbf60d02df"><td class="mdescLeft"> </td><td class="mdescRight">Create a DFS product with one table from one or more (ASCII) file(s)  <a href="#ga3d1a791b5dc870770611c7dbf60d02df"></a><br/></td></tr>
-<tr class="memitem:ga59a68df1795523d4f7653875bd9fc01d"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga59a68df1795523d4f7653875bd9fc01d">irplib_table_read_from_frameset</a> (cpl_table *self, const cpl_frameset *useframes, int maxlinelen, char commentchar, const cpl_parameterlist *parlist, cpl_boolean(*table_set_row)(cpl_table *, const char *, int, const cpl_frame *, const  [...]
-<tr class="memdesc:ga59a68df1795523d4f7653875bd9fc01d"><td class="mdescLeft"> </td><td class="mdescRight">Set the rows of a table with data from one or more (ASCII) files.  <a href="#ga59a68df1795523d4f7653875bd9fc01d"></a><br/></td></tr>
-<tr class="memitem:gaf9d392144014e2363054bc3f83c8e47e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e">irplib_reset</a> (void)</td></tr>
-<tr class="memdesc:gaf9d392144014e2363054bc3f83c8e47e"><td class="mdescLeft"> </td><td class="mdescRight">Reset IRPLIB state.  <a href="#gaf9d392144014e2363054bc3f83c8e47e"></a><br/></td></tr>
-<tr class="memitem:gae13f0d6b24ade506a99ac9c4bb09efde"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#gae13f0d6b24ade506a99ac9c4bb09efde">irplib_compare_tags</a> (cpl_frame *frame1, cpl_frame *frame2)</td></tr>
-<tr class="memdesc:gae13f0d6b24ade506a99ac9c4bb09efde"><td class="mdescLeft"> </td><td class="mdescRight">Comparison function to identify different input frames.  <a href="#gae13f0d6b24ade506a99ac9c4bb09efde"></a><br/></td></tr>
-<tr class="memitem:ga9fe4dca85dee68061114e26fdc72a134"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga9fe4dca85dee68061114e26fdc72a134">irplib_frameset_find_file</a> (const cpl_frameset *self, const char *tag)</td></tr>
-<tr class="memdesc:ga9fe4dca85dee68061114e26fdc72a134"><td class="mdescLeft"> </td><td class="mdescRight">Find the filename with the given tag in a frame set.  <a href="#ga9fe4dca85dee68061114e26fdc72a134"></a><br/></td></tr>
-<tr class="memitem:ga5b20a00f315410b49b1db1dd2417fe68"><td class="memItemLeft" align="right" valign="top">const cpl_frame * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#ga5b20a00f315410b49b1db1dd2417fe68">irplib_frameset_get_first_from_group</a> (const cpl_frameset *self, cpl_frame_group group)</td></tr>
-<tr class="memdesc:ga5b20a00f315410b49b1db1dd2417fe68"><td class="mdescLeft"> </td><td class="mdescRight">Find the first frame belonging to the given group.  <a href="#ga5b20a00f315410b49b1db1dd2417fe68"></a><br/></td></tr>
-<tr class="memitem:gac568c70a57ef8610f5fedc9f1943a3a1"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__utils.html#gac568c70a57ef8610f5fedc9f1943a3a1">irplib_apertures_find_max_flux</a> (const cpl_apertures *self, int *ind, int nfind)</td></tr>
-<tr class="memdesc:gac568c70a57ef8610f5fedc9f1943a3a1"><td class="mdescLeft"> </td><td class="mdescRight">Find the aperture(s) with the greatest flux.  <a href="#gac568c70a57ef8610f5fedc9f1943a3a1"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga6b29dac884b62ab52f43dd670d4d8386"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void irplib_errorstate_dump_warning </td>
-          <td>(</td>
-          <td class="paramtype">unsigned </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">unsigned </td>
-          <td class="paramname"><em>first</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">unsigned </td>
-          <td class="paramname"><em>last</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Dump a single CPL error at the CPL warning level. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The number of the current error to be dumped </td></tr>
-    <tr><td class="paramname">first</td><td>The number of the first error to be dumped </td></tr>
-    <tr><td class="paramname">last</td><td>The number of the last error to be dumped </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_errorstate_dump_one</dd></dl>
-<p>FIXME: Move this function to the CPL errorstate module. </p>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l00130">130</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga901ff52a1c9dcdfcf2d2632d31064bdb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void irplib_errorstate_dump_info </td>
-          <td>(</td>
-          <td class="paramtype">unsigned </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">unsigned </td>
-          <td class="paramname"><em>first</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">unsigned </td>
-          <td class="paramname"><em>last</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Dump a single CPL error at the CPL info level. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The number of the current error to be dumped </td></tr>
-    <tr><td class="paramname">first</td><td>The number of the first error to be dumped </td></tr>
-    <tr><td class="paramname">last</td><td>The number of the last error to be dumped </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_errorstate_dump_one </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l00157">157</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga26c6209e5df98978e2922a15b47b47d1"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void irplib_errorstate_dump_debug </td>
-          <td>(</td>
-          <td class="paramtype">unsigned </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">unsigned </td>
-          <td class="paramname"><em>first</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">unsigned </td>
-          <td class="paramname"><em>last</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Dump a single CPL error at the CPL debug level. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The number of the current error to be dumped </td></tr>
-    <tr><td class="paramname">first</td><td>The number of the first error to be dumped </td></tr>
-    <tr><td class="paramname">last</td><td>The number of the last error to be dumped </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_errorstate_dump_one </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l00177">177</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__wavecal_8c_source.html#l01496">irplib_polynomial_find_1d_from_correlation_all()</a>, and <a class="el" href="irplib__wavecal_8c_source.html#l01046">irplib_vector_fill_line_spectrum_model()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga346842d722834a2e6221ff2d86314b7e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_dfs_save_image </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>allframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>usedframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_type_bpp </td>
-          <td class="paramname"><em>bpp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>procat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>applist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>remregexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>pipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Save an image as a DFS-compliant pipeline product. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">allframes</td><td>The list of input frames for the recipe </td></tr>
-    <tr><td class="paramname">parlist</td><td>The list of input parameters </td></tr>
-    <tr><td class="paramname">usedframes</td><td>The list of raw/calibration frames used for this product </td></tr>
-    <tr><td class="paramname">image</td><td>The image to be saved </td></tr>
-    <tr><td class="paramname">bpp</td><td>Bits per pixel </td></tr>
-    <tr><td class="paramname">recipe</td><td>The recipe name </td></tr>
-    <tr><td class="paramname">procat</td><td>The product category tag </td></tr>
-    <tr><td class="paramname">applist</td><td>Optional propertylist to append to primary header or NULL </td></tr>
-    <tr><td class="paramname">remregexp</td><td>Optional regexp of properties not to put in main header </td></tr>
-    <tr><td class="paramname">pipe_id</td><td>PACKAGE "/" PACKAGE_VERSION </td></tr>
-    <tr><td class="paramname">filename</td><td>Filename of created product </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section note"><dt>Note:</dt><dd>The image may be NULL in which case only the header information is saved but passing a NULL image is deprecated, use cpl_dfs_save_propertylist(). </dd>
-<dd>
-remregexp may be NULL </dd></dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code on error </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_dfs_save_image(). </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l00208">208</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-<p>References <a class="el" href="irplib__utils_8c_source.html#l00411">irplib_dfs_save_image_()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4dc12f321e7aeb5e67ff19f815bfd7b7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_dfs_save_propertylist </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>allframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>usedframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>procat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>applist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>remregexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>pipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Save a propertylist as a DFS-compliant pipeline product. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">allframes</td><td>The list of input frames for the recipe </td></tr>
-    <tr><td class="paramname">parlist</td><td>The list of input parameters </td></tr>
-    <tr><td class="paramname">usedframes</td><td>The list of raw/calibration frames used for this product </td></tr>
-    <tr><td class="paramname">recipe</td><td>The recipe name </td></tr>
-    <tr><td class="paramname">procat</td><td>The product category tag </td></tr>
-    <tr><td class="paramname">applist</td><td>Optional propertylist to append to primary header or NULL </td></tr>
-    <tr><td class="paramname">remregexp</td><td>Optional regexp of properties not to put in main header </td></tr>
-    <tr><td class="paramname">pipe_id</td><td>PACKAGE "/" PACKAGE_VERSION </td></tr>
-    <tr><td class="paramname">filename</td><td>Filename of created product </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section note"><dt>Note:</dt><dd>remregexp may be NULL </dd></dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code on error </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_dfs_save_propertylist(). </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l00256">256</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga66f7adc9e165b4e934e3d57a700f55c1"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_dfs_save_imagelist </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>allframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>usedframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_imagelist * </td>
-          <td class="paramname"><em>imagelist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_type_bpp </td>
-          <td class="paramname"><em>bpp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>procat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>applist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>remregexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>pipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Save an imagelist as a DFS-compliant pipeline product. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">allframes</td><td>The list of input frames for the recipe </td></tr>
-    <tr><td class="paramname">parlist</td><td>The list of input parameters </td></tr>
-    <tr><td class="paramname">usedframes</td><td>The list of raw/calibration frames used for this product </td></tr>
-    <tr><td class="paramname">imagelist</td><td>The imagelist to be saved </td></tr>
-    <tr><td class="paramname">bpp</td><td>Bits per pixel </td></tr>
-    <tr><td class="paramname">recipe</td><td>The recipe name </td></tr>
-    <tr><td class="paramname">procat</td><td>The product category tag </td></tr>
-    <tr><td class="paramname">applist</td><td>Optional propertylist to append to primary header or NULL </td></tr>
-    <tr><td class="paramname">remregexp</td><td>Optional regexp of properties not to put in main header </td></tr>
-    <tr><td class="paramname">pipe_id</td><td>PACKAGE "/" PACKAGE_VERSION </td></tr>
-    <tr><td class="paramname">filename</td><td>Filename of created product </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section note"><dt>Note:</dt><dd>remregexp may be NULL </dd></dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code on error </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_dfs_save_imagelist(). </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l00303">303</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga62a91f8630af11164547c168660b2ade"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_dfs_save_table </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>allframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>usedframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>tablelist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>procat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>applist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>remregexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>pipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Save a table as a DFS-compliant pipeline product. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">allframes</td><td>The list of input frames for the recipe </td></tr>
-    <tr><td class="paramname">parlist</td><td>The list of input parameters </td></tr>
-    <tr><td class="paramname">usedframes</td><td>The list of raw/calibration frames used for this product </td></tr>
-    <tr><td class="paramname">table</td><td>The table to be saved </td></tr>
-    <tr><td class="paramname">tablelist</td><td>Optional propertylist to use in table extension or NULL </td></tr>
-    <tr><td class="paramname">recipe</td><td>The recipe name </td></tr>
-    <tr><td class="paramname">procat</td><td>The product category tag </td></tr>
-    <tr><td class="paramname">applist</td><td>Optional propertylist to append to primary header or NULL </td></tr>
-    <tr><td class="paramname">remregexp</td><td>Optional regexp of properties not to put in main header </td></tr>
-    <tr><td class="paramname">pipe_id</td><td>PACKAGE "/" PACKAGE_VERSION </td></tr>
-    <tr><td class="paramname">filename</td><td>Filename of created product </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code on error </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_dfs_save_table(). </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l00351">351</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__utils_8c_source.html#l00860">irplib_dfs_table_convert()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1fd7c2f4c00014049b0bf4bf6814b451"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_dfs_save_image_ </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>allframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_propertylist * </td>
-          <td class="paramname"><em>header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>usedframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frame * </td>
-          <td class="paramname"><em>inherit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>applist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>remregexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>pipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Save an image as a DFS-compliant pipeline product. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">allframes</td><td>The list of input frames for the recipe </td></tr>
-    <tr><td class="paramname">header</td><td>NULL, or filled with properties written to product header </td></tr>
-    <tr><td class="paramname">parlist</td><td>The list of input parameters </td></tr>
-    <tr><td class="paramname">usedframes</td><td>The list of raw/calibration frames used for this product </td></tr>
-    <tr><td class="paramname">inherit</td><td>NULL or product frames inherit their header from this frame </td></tr>
-    <tr><td class="paramname">image</td><td>The image to be saved </td></tr>
-    <tr><td class="paramname">type</td><td>The type used to represent the data in the file </td></tr>
-    <tr><td class="paramname">recipe</td><td>The recipe name </td></tr>
-    <tr><td class="paramname">applist</td><td>Propertylist to append to primary header, w. PRO.CATG </td></tr>
-    <tr><td class="paramname">remregexp</td><td>Optional regexp of properties not to put in main header </td></tr>
-    <tr><td class="paramname">pipe_id</td><td>PACKAGE "/" PACKAGE_VERSION </td></tr>
-    <tr><td class="paramname">filename</td><td>Filename of created product </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section note"><dt>Note:</dt><dd>The image may be NULL in which case only the header information is saved but passing a NULL image is deprecated, use cpl_dfs_save_propertylist(). </dd>
-<dd>
-remregexp may be NULL </dd>
-<dd>
-applist must contain a string-property with key CPL_DFS_PRO_CATG </dd>
-<dd>
-On success and iff header is non-NULL, it will be emptied and then filled with the properties written to the primary header of the product </dd></dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code on error </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_dfs_save_image() </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>applist is copied with cpl_propertylist_copy_property_regexp() instead pf cpl_propertylist_append() </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l00411">411</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-<p>References <a class="el" href="irplib__utils_8c_source.html#l00460">irplib_dfs_product_save()</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__utils_8c_source.html#l00208">irplib_dfs_save_image()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4ffea791c01c8a50093294d6dcbddb56"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code irplib_dfs_product_save </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>allframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_propertylist * </td>
-          <td class="paramname"><em>header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>usedframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frame * </td>
-          <td class="paramname"><em>inherit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_imagelist * </td>
-          <td class="paramname"><em>imagelist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>tablelist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>applist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>remregexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>pipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Save either an image or table as a pipeline product. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">allframes</td><td>The list of input frames for the recipe </td></tr>
-    <tr><td class="paramname">header</td><td>NULL, or filled with properties written to product header </td></tr>
-    <tr><td class="paramname">parlist</td><td>The list of input parameters </td></tr>
-    <tr><td class="paramname">usedframes</td><td>The list of raw/calibration frames used for this product </td></tr>
-    <tr><td class="paramname">inherit</td><td>NULL, or frame from which header information is inherited </td></tr>
-    <tr><td class="paramname">imagelist</td><td>The imagelist to be saved or NULL </td></tr>
-    <tr><td class="paramname">image</td><td>The image to be saved or NULL </td></tr>
-    <tr><td class="paramname">type</td><td>The type used to represent the data in the file </td></tr>
-    <tr><td class="paramname">table</td><td>The table to be saved or NULL </td></tr>
-    <tr><td class="paramname">tablelist</td><td>Optional propertylist to use in table extension or NULL </td></tr>
-    <tr><td class="paramname">recipe</td><td>The recipe name </td></tr>
-    <tr><td class="paramname">applist</td><td>Optional propertylist to append to main header or NULL </td></tr>
-    <tr><td class="paramname">remregexp</td><td>Optional regexp of properties not to put in main header </td></tr>
-    <tr><td class="paramname">pipe_id</td><td>PACKAGE "/" PACKAGE_VERSION </td></tr>
-    <tr><td class="paramname">filename</td><td>Filename of created product </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code on error </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_dfs_product_save() </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>applist is copied with cpl_propertylist_copy_property_regexp() instead pf cpl_propertylist_append() </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l00460">460</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__utils_8c_source.html#l00411">irplib_dfs_save_image_()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga832676f36ecd647b77f4bb373b2d1954"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_image_split </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>im_low</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>im_mid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>im_high</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>th_low</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>isleq_low</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>th_high</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>isgeq_high</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>alt_low</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>alt_high</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>isbad_low</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>isbad_mid</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>isbad_high</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Split the values in an image in three according to two thresholds. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The image to split </td></tr>
-    <tr><td class="paramname">im_low</td><td>If non-NULL low-valued pixels are assigned to this image </td></tr>
-    <tr><td class="paramname">im_mid</td><td>If non-NULL middle-valued pixels are assigned to this image </td></tr>
-    <tr><td class="paramname">im_high</td><td>If non-NULL high-valued pixels are assigned to this image </td></tr>
-    <tr><td class="paramname">th_low</td><td>The lower threshold </td></tr>
-    <tr><td class="paramname">isleq_low</td><td>Ift true use less than or equal </td></tr>
-    <tr><td class="paramname">th_high</td><td>The upper threshold, must be at least th_low </td></tr>
-    <tr><td class="paramname">isgeq_high</td><td>Iff true use greater than or equal </td></tr>
-    <tr><td class="paramname">alt_low</td><td>Assign this value when the pixel value is not low </td></tr>
-    <tr><td class="paramname">alt_high</td><td>Assign this value, when the pixel value is not high </td></tr>
-    <tr><td class="paramname">isbad_low</td><td>Flag non-low pixels as bad </td></tr>
-    <tr><td class="paramname">isbad_mid</td><td>Flag non-mid pixels as bad </td></tr>
-    <tr><td class="paramname">isbad_high</td><td>Flag non-high pixels as bad </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code on error </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>At least one output image must be non-NULL; all non-NULL images must be of identical size, but may be of any pixel-type. self may be passed as one of the output images for an in-place split.</dd></dl>
-<p>FIXME: This function is way too slow and perhaps over-engineered...</p>
-<p>A split in two is achieved with th_low equal th_high (in this case there is little reason for im_mid to be non-NULL).</p>
-<p>All pixel values in the output images are reset, as well as their bad pixels maps.</p>
-<p>If an input pixel-value is flagged as bad, then the receiving pixel in the output image is flagged as well.</p>
-<dl class="section user"><dt>The same image may be passed more than once which allows a split</dt><dd>into one image with the mid-valued pixels and another with both the low and high-valued pixels, i.e. <div class="fragment"><div class="line">       <a class="code" href="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954" title="Split the values in an image in three according to two thresholds.">irplib_image_split</a>(source, dest, im_mid, dest,</div>
-<div class="line">                          th_low,  isleq_low, th_high, isgeq_high,</div>
-<div class="line">                          alt_low, alt_high,</div>
-<div class="line">                          isbad_low, isbad_mid, isbad_high);</div>
-</div><!-- fragment --></dd></dl>
-<dl class="section user"><dt>These two calls are equivalent:</dt><dd><div class="fragment"><div class="line">     cpl_image_threshold(img, th_low, th_high, alt_low, alt_high);</div>
-</div><!-- fragment --></dd></dl>
-<div class="fragment"><div class="line">     <a class="code" href="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954" title="Split the values in an image in three according to two thresholds.">irplib_image_split</a>(img, NULL, img, NULL,</div>
-<div class="line">                        th_low,  CPL_TRUE, th_high, CPL_TRUE,</div>
-<div class="line">                        alt_low, alt_high, dontcare, CPL_FALSE, dontcare);</div>
-</div><!-- fragment --> 
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l00665">665</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3d1a791b5dc870770611c7dbf60d02df"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_dfs_table_convert </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>allframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>useframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxlinelen</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>commentchar</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>product_name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>procatg</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>mainlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>extlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>remregexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>instrume</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>pipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean(*)(cpl_table *, const char *, int, const cpl_frame *, const cpl_parameterlist *) </td>
-          <td class="paramname"><em>table_set_row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_error_code(*)(cpl_table *, const cpl_frameset *, const cpl_parameterlist *) </td>
-          <td class="paramname"><em>table_check</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create a DFS product with one table from one or more (ASCII) file(s) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>Table with labels (and units) but no row data </td></tr>
-    <tr><td class="paramname">allframes</td><td>The list of input frames for the recipe </td></tr>
-    <tr><td class="paramname">useframes</td><td>The frames to process for the product </td></tr>
-    <tr><td class="paramname">maxlinelen</td><td>The maximum line length in the input file(s) </td></tr>
-    <tr><td class="paramname">commentchar</td><td>Skip lines that start with this character, e.g. '#' </td></tr>
-    <tr><td class="paramname">product_name</td><td>The name of the created FITS table product or NULL </td></tr>
-    <tr><td class="paramname">procatg</td><td>The PROCATG of the created FITS table product </td></tr>
-    <tr><td class="paramname">parlist</td><td>The list of input parameters </td></tr>
-    <tr><td class="paramname">recipe_name</td><td>The name of the calling recipe </td></tr>
-    <tr><td class="paramname">mainlist</td><td>Optional propertylist to append to main header or NULL </td></tr>
-    <tr><td class="paramname">extlist</td><td>Optional propertylist to append to ext. header or NULL </td></tr>
-    <tr><td class="paramname">remregexp</td><td>Optional regexp of properties not to put in main header </td></tr>
-    <tr><td class="paramname">instrume</td><td>The value to use for the INSTRUME key, uppercase PACKAGE </td></tr>
-    <tr><td class="paramname">pipe_id</td><td>PACKAGE "/" PACKAGE_VERSION </td></tr>
-    <tr><td class="paramname">table_set_row</td><td>Caller-defined function to insert one row in the table </td></tr>
-    <tr><td class="paramname">table_check</td><td>Optional caller-defined function to check table or NULL </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code on error </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__irplib__utils.html#ga59a68df1795523d4f7653875bd9fc01d" title="Set the rows of a table with data from one or more (ASCII) files.">irplib_table_read_from_frameset()</a>, cpl_dfs_save_table() </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>If product_name is NULL, the product will be named <recipe_name>.fits.</dd></dl>
-<dl class="section user"><dt>Example (error handling omitted for brevity):</dt><dd><div class="fragment"><div class="line">      <span class="keyword">extern</span> cpl_boolean my_table_set_row(cpl_table *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>,</div>
-<div class="line">                                          <span class="keyword">const</span> cpl_frame *,</div>
-<div class="line">                                          <span class="keyword">const</span> cpl_parameterlist *);</div>
-<div class="line">      <span class="keyword">extern</span> cpl_error_code my_table_check(cpl_table *,</div>
-<div class="line">                                           <span class="keyword">const</span> cpl_frameset *,</div>
-<div class="line">                                           <span class="keyword">const</span> cpl_parameterlist *);</div>
-<div class="line">      <span class="keyword">const</span> <span class="keywordtype">int</span> expected_rows = 42;</div>
-<div class="line">      cpl_table * <span class="keyword">self</span> = cpl_table_new(expected_rows);</div>
-<div class="line"></div>
-<div class="line">      cpl_table_new_column(<span class="keyword">self</span>, <span class="stringliteral">"MYLABEL1"</span>, CPL_TYPE_STRING);</div>
-<div class="line">      cpl_table_new_column(<span class="keyword">self</span>, <span class="stringliteral">"MYLABEL2"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line">      cpl_table_set_column_unit(<span class="keyword">self</span>, <span class="stringliteral">"MYLABEL2"</span>, <span class="stringliteral">"Some_SI_Unit"</span>);</div>
-<div class="line"></div>
-<div class="line">      <a class="code" href="group__irplib__utils.html#ga3d1a791b5dc870770611c7dbf60d02df" title="Create a DFS product with one table from one or more (ASCII) file(s)">irplib_dfs_table_convert</a>(<span class="keyword">self</span>, allframes, useframes, 1024, <span class="charliteral">'#'</span>, NULL,</div>
-<div class="line">                               <span class="stringliteral">"MYPROCATG"</span>, parlist, <span class="stringliteral">"myrecipe"</span>, NULL, NULL,</div>
-<div class="line">                               NULL, <span class="stringliteral">"MYINSTRUME"</span>, PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line">                               my_table_set_row, my_table_check);</div>
-<div class="line"></div>
-<div class="line">      cpl_table_delete(<span class="keyword">self</span>);</div>
-</div><!-- fragment --> </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l00860">860</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-<p>References <a class="el" href="irplib__utils_8c_source.html#l00351">irplib_dfs_save_table()</a>, and <a class="el" href="irplib__utils_8c_source.html#l00989">irplib_table_read_from_frameset()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga59a68df1795523d4f7653875bd9fc01d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_table_read_from_frameset </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>useframes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxlinelen</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>commentchar</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean(*)(cpl_table *, const char *, int, const cpl_frame *, const cpl_parameterlist *) </td>
-          <td class="paramname"><em>table_set_row</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set the rows of a table with data from one or more (ASCII) files. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>Table with labels (and units) but no row data </td></tr>
-    <tr><td class="paramname">useframes</td><td>The frames to process for the table </td></tr>
-    <tr><td class="paramname">maxlinelen</td><td>The maximum line length in the input file(s) </td></tr>
-    <tr><td class="paramname">commentchar</td><td>Skip lines that start with this character, e.g. '#' </td></tr>
-    <tr><td class="paramname">parlist</td><td>The list of input parameters </td></tr>
-    <tr><td class="paramname">table_set_row</td><td>Caller-defined function to insert one row in the table </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant CPL error code on error</dd></dl>
-<p>table_set_row() is a function that sets the specified row in a table</p>
-<ul>
-<li>it may optionally include a check of the line for consistency. An integer is passed to table_set_row() to indicate which row to set. Instead of setting the row table_set_row() may decide to discard the data. Iff the row was set, table_set_row() should return CPL_TRUE.</li>
-</ul>
-<p>It needs to know: 1) How to parse the lines - each line is read with fgets(). 2) For each column: type/format (lg/s/d) + label</p>
-<p>During a succesful call self will have rows added or removed to exactly match the number of lines converted. Any a priori knowledge about the expected number of converted rows can be used in the creation of the table (to reduce memory reallocation overhead). On error the number of rows in self is undefined.</p>
-<dl class="section user"><dt>Example (error handling omitted for brevity):</dt><dd><div class="fragment"><div class="line">      <span class="keyword">extern</span> cpl_boolean my_table_set_row(cpl_table *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>,</div>
-<div class="line">                                          <span class="keyword">const</span> cpl_frame *,</div>
-<div class="line">                                          <span class="keyword">const</span> cpl_parameterlist *);</div>
-<div class="line">      <span class="keyword">const</span> <span class="keywordtype">int</span> expected_rows = 42;</div>
-<div class="line">      cpl_table * <span class="keyword">self</span> = cpl_table_new(expected_rows);</div>
-<div class="line"></div>
-<div class="line">      cpl_table_new_column(<span class="keyword">self</span>, <span class="stringliteral">"MYLABEL1"</span>, CPL_TYPE_STRING);</div>
-<div class="line">      cpl_table_new_column(<span class="keyword">self</span>, <span class="stringliteral">"MYLABEL2"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line">      cpl_table_set_column_unit(<span class="keyword">self</span>, <span class="stringliteral">"MYLABEL2"</span>, <span class="stringliteral">"Some_SI_Unit"</span>);</div>
-<div class="line"></div>
-<div class="line">      <a class="code" href="group__irplib__utils.html#ga59a68df1795523d4f7653875bd9fc01d" title="Set the rows of a table with data from one or more (ASCII) files.">irplib_table_read_from_frameset</a>(<span class="keyword">self</span>, useframes, 1024, <span class="charliteral">'#'</span>, parlist,</div>
-<div class="line">                                      my_table_set_row);</div>
-<div class="line"></div>
-<div class="line">      <span class="comment">// Use self...</span></div>
-<div class="line"></div>
-<div class="line">      cpl_table_delete(<span class="keyword">self</span>);</div>
-</div><!-- fragment --> </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l00989">989</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__utils_8c_source.html#l00860">irplib_dfs_table_convert()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf9d392144014e2363054bc3f83c8e47e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void irplib_reset </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Reset IRPLIB state. </p>
-<p>This function resets all static memory used by IRPLIB to a well-defined, initial state.</p>
-<p>The function should be called (during initialization) by any application using static memory facilities in IRPLIB.</p>
-<p>Currently, this function does nothing. </p>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l01134">1134</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__utl__unpack_8c_source.html#l00144">flames_utl_unpack_create()</a>, <a class="el" href="flames__utl__unpack_8c_source.html#l00172">flames_utl_unpack_exec()</a>, <a class="el" href="uves__utl__ima__arith_8c_source.html#l00132">uves_utl_ima_arith_create()</a>, <a class="el" href="uves__utl__ima__arith_8c_source.html#l00173">uves_utl_ima_arith_exec()</a>, <a class="el" href="uves__utl__physmod_8c_source.html#l00139">uves_utl_physmod_create()</a>,  [...]
-
-</div>
-</div>
-<a class="anchor" id="gae13f0d6b24ade506a99ac9c4bb09efde"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int irplib_compare_tags </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frame * </td>
-          <td class="paramname"><em>frame1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frame * </td>
-          <td class="paramname"><em>frame2</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Comparison function to identify different input frames. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">frame1</td><td>first frame </td></tr>
-    <tr><td class="paramname">frame2</td><td>second frame </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if frame1!=frame2, 1 if frame1==frame2, -1 in error case </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l01147">1147</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga9fe4dca85dee68061114e26fdc72a134"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* irplib_frameset_find_file </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>tag</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find the filename with the given tag in a frame set. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A frame set. </td></tr>
-    <tr><td class="paramname">tag</td><td>The frame tag to search for. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The filename or NULL if none found and on error. </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd>cpl_frameset_find </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>If called with a CPL error code, the location will be updated and NULL returned.</dd></dl>
-<p>NULL is returned and no error code set if the tag is not found.</p>
-<p>If the file is not unique, the name of the first one is returned and with a warning. </p>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l01183">1183</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5b20a00f315410b49b1db1dd2417fe68"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const cpl_frame* irplib_frameset_get_first_from_group </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frame_group </td>
-          <td class="paramname"><em>group</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find the first frame belonging to the given group. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The frameset </td></tr>
-    <tr><td class="paramname">group</td><td>The group attribute </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The first frame belonging to the given group, or <code>NULL</code> if no such frame was found. The function returns <code>NULL</code> if an error occurs and sets the appropriate error code. </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l01214">1214</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac568c70a57ef8610f5fedc9f1943a3a1"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_apertures_find_max_flux </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_apertures * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>ind</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nfind</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find the aperture(s) with the greatest flux. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The aperture object </td></tr>
-    <tr><td class="paramname">ind</td><td>The aperture-indices in order of decreasing flux </td></tr>
-    <tr><td class="paramname">nfind</td><td>Number of indices to find </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE or the relevant <em>cpl_error_code</em> on error</dd></dl>
-<p>nfind must be at least 1 and at most the size of the aperture object.</p>
-<p>The ind array must be able to hold (at least) nfind integers. On success the first nfind elements of ind point to indices of the aperture object.</p>
-<p>To find the single ind of the aperture with the maximum flux use simply: int ind; irplib_apertures_find_max_flux(self, &ind, 1); </p>
-
-<p>Definition at line <a class="el" href="irplib__utils_8c_source.html#l01248">1248</a> of file <a class="el" href="irplib__utils_8c_source.html">irplib_utils.c</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__utils__test.html b/html/group__irplib__utils__test.html
deleted file mode 100644
index 83f6eed..0000000
--- a/html/group__irplib__utils__test.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Testing of the IRPLIB utilities</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Testing of the IRPLIB utilities</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__wavecal.html b/html/group__irplib__wavecal.html
deleted file mode 100644
index d48a1e1..0000000
--- a/html/group__irplib__wavecal.html
+++ /dev/null
@@ -1,986 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Spectro functionality</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Spectro functionality</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga03d7f038adc7e18e7a9071581fa47a25"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#ga03d7f038adc7e18e7a9071581fa47a25">irplib_bivector_count_positive</a> (const cpl_bivector *self, double x_min, double x_max)</td></tr>
-<tr class="memdesc:ga03d7f038adc7e18e7a9071581fa47a25"><td class="mdescLeft"> </td><td class="mdescRight">Count the positive Y-entries in a given X-range.  <a href="#ga03d7f038adc7e18e7a9071581fa47a25"></a><br/></td></tr>
-<tr class="memitem:ga2dd3251367e2ee8b8bd5ce080e9f31bb"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#ga2dd3251367e2ee8b8bd5ce080e9f31bb">irplib_polynomial_fit_2d_dispersion</a> (cpl_polynomial *self, const cpl_image *imgwave, int fitdeg, double *presid)</td></tr>
-<tr class="memdesc:ga2dd3251367e2ee8b8bd5ce080e9f31bb"><td class="mdescLeft"> </td><td class="mdescRight">Fit a 2D-dispersion from an image of wavelengths.  <a href="#ga2dd3251367e2ee8b8bd5ce080e9f31bb"></a><br/></td></tr>
-<tr class="memitem:ga8f49c4927c50a461288e8f19720dff86"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#ga8f49c4927c50a461288e8f19720dff86">irplib_polynomial_find_1d_from_correlation</a> (cpl_polynomial *self, int maxdeg, const cpl_vector *obs, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *model, cpl_error_code(*filler)(cpl_ve [...]
-<tr class="memdesc:ga8f49c4927c50a461288e8f19720dff86"><td class="mdescLeft"> </td><td class="mdescRight">Modify self by maximizing the cross-correlation.  <a href="#ga8f49c4927c50a461288e8f19720dff86"></a><br/></td></tr>
-<tr class="memitem:gacb058e60cdbdea2986a5c9b5ea5b97af"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gacb058e60cdbdea2986a5c9b5ea5b97af"></a>
-static cpl_error_code </td><td class="memItemRight" valign="bottom"><b>irplib_polynomial_find_1d_from_correlation_</b> (cpl_polynomial *, int, const cpl_vector *, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *, cpl_error_code(*)(cpl_vector *, const cpl_polynomial *, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *), double, double, int, int, double *, cpl_boolean *)</td></tr>
-<tr class="memitem:ga1d49cb7f85fc246c8fdf38625c769f7a"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#ga1d49cb7f85fc246c8fdf38625c769f7a">irplib_vector_fill_line_spectrum</a> (cpl_vector *self, const cpl_polynomial *disp, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *lsslamp)</td></tr>
-<tr class="memdesc:ga1d49cb7f85fc246c8fdf38625c769f7a"><td class="mdescLeft"> </td><td class="mdescRight">Generate a 1D spectrum from a model and a dispersion relation.  <a href="#ga1d49cb7f85fc246c8fdf38625c769f7a"></a><br/></td></tr>
-<tr class="memitem:gad22539bf83d1b08d845ed5f618a4009f"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#gad22539bf83d1b08d845ed5f618a4009f">irplib_vector_fill_logline_spectrum</a> (cpl_vector *self, const cpl_polynomial *disp, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *lsslamp)</td></tr>
-<tr class="memdesc:gad22539bf83d1b08d845ed5f618a4009f"><td class="mdescLeft"> </td><td class="mdescRight">Generate a 1D spectrum from a model and a dispersion relation.  <a href="#gad22539bf83d1b08d845ed5f618a4009f"></a><br/></td></tr>
-<tr class="memitem:ga6a463d7816b4164fdd23a4df2805cc95"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#ga6a463d7816b4164fdd23a4df2805cc95">irplib_vector_fill_line_spectrum_fast</a> (cpl_vector *self, const cpl_polynomial *disp, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *lsslamp)</td></tr>
-<tr class="memdesc:ga6a463d7816b4164fdd23a4df2805cc95"><td class="mdescLeft"> </td><td class="mdescRight">Generate a 1D spectrum from a model and a dispersion relation.  <a href="#ga6a463d7816b4164fdd23a4df2805cc95"></a><br/></td></tr>
-<tr class="memitem:ga75a85320c74d1088eeaeec97974d793c"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#ga75a85320c74d1088eeaeec97974d793c">irplib_vector_fill_logline_spectrum_fast</a> (cpl_vector *self, const cpl_polynomial *disp, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *lsslamp)</td></tr>
-<tr class="memdesc:ga75a85320c74d1088eeaeec97974d793c"><td class="mdescLeft"> </td><td class="mdescRight">Generate a 1D spectrum from a model and a dispersion relation.  <a href="#ga75a85320c74d1088eeaeec97974d793c"></a><br/></td></tr>
-<tr class="memitem:ga7bac402a4e2c60f7646f1e655a66833d"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#ga7bac402a4e2c60f7646f1e655a66833d">irplib_plot_spectrum_and_model</a> (const cpl_vector *self, const cpl_polynomial *disp1d, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *model, cpl_error_code(*filler)(cpl_vector *, const c [...]
-<tr class="memdesc:ga7bac402a4e2c60f7646f1e655a66833d"><td class="mdescLeft"> </td><td class="mdescRight">Plot a 1D spectrum and one from a model.  <a href="#ga7bac402a4e2c60f7646f1e655a66833d"></a><br/></td></tr>
-<tr class="memitem:ga260740bf1f3fc364b301519eab3249a6"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#ga260740bf1f3fc364b301519eab3249a6">irplib_bivector_find_shift_from_correlation</a> (cpl_bivector *self, const cpl_polynomial *disp, const cpl_vector *obs, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *model, cpl_error_code( [...]
-<tr class="memdesc:ga260740bf1f3fc364b301519eab3249a6"><td class="mdescLeft"> </td><td class="mdescRight">Find shift(s) that maximizes (locally) the cross-correlation.  <a href="#ga260740bf1f3fc364b301519eab3249a6"></a><br/></td></tr>
-<tr class="memitem:gadf93655e2c7c0d5df23e2e3de66d0b56"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#gadf93655e2c7c0d5df23e2e3de66d0b56">irplib_polynomial_shift_1d_from_correlation</a> (cpl_polynomial *self, const cpl_vector *obs, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *model, cpl_error_code(*filler)(cpl_vector *, con [...]
-<tr class="memdesc:gadf93655e2c7c0d5df23e2e3de66d0b56"><td class="mdescLeft"> </td><td class="mdescRight">Shift self by the amount that maximizes the cross-correlation.  <a href="#gadf93655e2c7c0d5df23e2e3de66d0b56"></a><br/></td></tr>
-<tr class="memitem:ga8a65755ca17c9fa0b69ceb128f544761"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761">irplib_vector_fill_line_spectrum_model</a> (cpl_vector *self, cpl_vector *linepix, cpl_vector *erftmp, const cpl_polynomial *disp, const cpl_bivector *lines, double wslit, double wfwhm, double xtrunc, int hsize, cpl_boolean dofast, cpl_ [...]
-<tr class="memdesc:ga8a65755ca17c9fa0b69ceb128f544761"><td class="mdescLeft"> </td><td class="mdescRight">Generate a 1D spectrum from (arc) lines and a dispersion relation.  <a href="#ga8a65755ca17c9fa0b69ceb128f544761"></a><br/></td></tr>
-<tr class="memitem:ga2da9c21054a19322705de2d4f48d1d3f"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f">irplib_erf_antideriv</a> (double x, double sigma)</td></tr>
-<tr class="memdesc:ga2da9c21054a19322705de2d4f48d1d3f"><td class="mdescLeft"> </td><td class="mdescRight">The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.  <a href="#ga2da9c21054a19322705de2d4f48d1d3f"></a><br/></td></tr>
-<tr class="memitem:ga7e782bcb7ec0e638a93dba628916a7a8"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__irplib__wavecal.html#ga7e782bcb7ec0e638a93dba628916a7a8">irplib_polynomial_find_1d_from_correlation_all</a> (cpl_polynomial *self, int maxdeg, const cpl_vector *obs, int nmaxima, int linelim, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *model,  [...]
-<tr class="memdesc:ga7e782bcb7ec0e638a93dba628916a7a8"><td class="mdescLeft"> </td><td class="mdescRight">Modify self by maximizing the cross-correlation across all maxima.  <a href="#ga7e782bcb7ec0e638a93dba628916a7a8"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga03d7f038adc7e18e7a9071581fa47a25"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int irplib_bivector_count_positive </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_bivector * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x_min</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x_max</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Count the positive Y-entries in a given X-range. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>Bivector with increasing X-entries </td></tr>
-    <tr><td class="paramname">x_min</td><td>minimum X-entry </td></tr>
-    <tr><td class="paramname">x_max</td><td>maximum X-entry </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the number of matching entries, or negative on error </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l00127">127</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2dd3251367e2ee8b8bd5ce080e9f31bb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_polynomial_fit_2d_dispersion </td>
-          <td>(</td>
-          <td class="paramtype">cpl_polynomial * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>imgwave</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>fitdeg</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>presid</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Fit a 2D-dispersion from an image of wavelengths. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>2D-polynomial to hold fit </td></tr>
-    <tr><td class="paramname">imgwave</td><td>Image map of wavelengths, any pixeltype </td></tr>
-    <tr><td class="paramname">fitdeg</td><td>Degree of fit </td></tr>
-    <tr><td class="paramname">presid</td><td>On success, points to fitting residual </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE on success, otherwise the relevant CPL error code </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l00160">160</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8f49c4927c50a461288e8f19720dff86"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_polynomial_find_1d_from_correlation </td>
-          <td>(</td>
-          <td class="paramtype">cpl_polynomial * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxdeg</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>obs</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * </td>
-          <td class="paramname"><em>model</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_error_code(*)(cpl_vector *, const cpl_polynomial *, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *) </td>
-          <td class="paramname"><em>filler</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>pixtol</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>pixstep</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>hsize</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxite</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>pxc</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Modify self by maximizing the cross-correlation. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>1D-Dispersion relation to modify, at least of degree 1 </td></tr>
-    <tr><td class="paramname">maxdeg</td><td>Maximize the cross-correlation by modifying maxdeg degree </td></tr>
-    <tr><td class="paramname">obs</td><td>The observed spectrum to correlate against </td></tr>
-    <tr><td class="paramname">model</td><td>The model of the lines/OTF etc. </td></tr>
-    <tr><td class="paramname">filler</td><td>The function to fill the model spectrum </td></tr>
-    <tr><td class="paramname">pixtol</td><td>The (positive) dispersion tolerance, e.g. 1e-6 </td></tr>
-    <tr><td class="paramname">pixstep</td><td>The step length used in the maximization, e.g. 0.5 [pixel] </td></tr>
-    <tr><td class="paramname">hsize</td><td>Half the search-distance to ensure a global-maximum, hsize >= 0 </td></tr>
-    <tr><td class="paramname">maxite</td><td>Maximum number of iterations, e.g. 100 * maxdeg </td></tr>
-    <tr><td class="paramname">pxc</td><td>On sucess, *pxc is the cross-correlation </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE on success, otherwise the relevant CPL error code </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>Fails with CPL_ERROR_UNSUPPORTED_MODE if compiled without GSL. self must be increasing in the interval from 1 to the length of obs. </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l00244">244</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1d49cb7f85fc246c8fdf38625c769f7a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_vector_fill_line_spectrum </td>
-          <td>(</td>
-          <td class="paramtype">cpl_vector * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>disp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * </td>
-          <td class="paramname"><em>lsslamp</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Generate a 1D spectrum from a model and a dispersion relation. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>Vector to fill with spectrum </td></tr>
-    <tr><td class="paramname">disp</td><td>1D-Dispersion relation, at least of degree 1 </td></tr>
-    <tr><td class="paramname">lsslamp</td><td>Pointer to <a class="el" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a> struct </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE on success, otherwise the relevant CPL error code</dd></dl>
-<p>The model comprises these elements: </p>
-<div class="fragment"><div class="line">    <span class="keywordtype">double</span> wslit;  <span class="comment">// Slit Width</span></div>
-<div class="line">    <span class="keywordtype">double</span> wfwhm;  <span class="comment">// FWHM of transfer function</span></div>
-<div class="line">    <span class="keywordtype">double</span> xtrunc; <span class="comment">// Truncate transfer function beyond xtrunc, xtrunc > 0</span></div>
-<div class="line">    <span class="keyword">const</span> cpl_bivector * lines;    <span class="comment">// Catalogue of intensities, with</span></div>
-<div class="line">                                   <span class="comment">//   increasing X-vector elements</span></div>
-<div class="line">    cpl_vector         * linepix;  <span class="comment">// NULL, or temporary work-space of size</span></div>
-<div class="line">                                   <span class="comment">// equal to the lines bivector</span></div>
-<div class="line">                                   <span class="comment">// - should be uninitialized to zero</span></div>
-<div class="line">    cpl_size             cost;     <span class="comment">// Will be incremented for each call</span></div>
-<div class="line">    cpl_size             xcost;    <span class="comment">// Will be incremented for each OK call</span></div>
-</div><!-- fragment --><p>The units of the X-values of the lines is assumed to be the same as that of disp, the units of wslit, wfwhm and xtrunc are assumed to be the same as the input unit of disp(), the units of self will be that of the Y-values of the lines. </p>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l00494">494</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-<p>References <a class="el" href="irplib__wavecal_8c_source.html#l01046">irplib_vector_fill_line_spectrum_model()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad22539bf83d1b08d845ed5f618a4009f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_vector_fill_logline_spectrum </td>
-          <td>(</td>
-          <td class="paramtype">cpl_vector * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>disp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * </td>
-          <td class="paramname"><em>lsslamp</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Generate a 1D spectrum from a model and a dispersion relation. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>Vector to fill with spectrum </td></tr>
-    <tr><td class="paramname">disp</td><td>1D-Dispersion relation, at least of degree 1 </td></tr>
-    <tr><td class="paramname">lsslamp</td><td>Pointer to <a class="el" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a> struct </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE on success, otherwise the relevant CPL error code </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>The logarithm is taken on the intensities </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__irplib__wavecal.html#ga1d49cb7f85fc246c8fdf38625c769f7a" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_line_spectrum</a></dd></dl>
-<p>log(1+I) is used for the (positive) intensities </p>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l00539">539</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-<p>References <a class="el" href="irplib__wavecal_8c_source.html#l01046">irplib_vector_fill_line_spectrum_model()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6a463d7816b4164fdd23a4df2805cc95"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_vector_fill_line_spectrum_fast </td>
-          <td>(</td>
-          <td class="paramtype">cpl_vector * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>disp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * </td>
-          <td class="paramname"><em>lsslamp</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Generate a 1D spectrum from a model and a dispersion relation. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>Vector to fill with spectrum </td></tr>
-    <tr><td class="paramname">disp</td><td>1D-Dispersion relation, at least of degree 1 </td></tr>
-    <tr><td class="paramname">lsslamp</td><td>Pointer to <a class="el" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a> struct </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE on success, otherwise the relevant CPL error code </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__irplib__wavecal.html#ga1d49cb7f85fc246c8fdf38625c769f7a" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_line_spectrum()</a></dd></dl>
-<p>Complexity reduced from O(nw) to O(n + w), where n is number of lines and truncation width [pixel] of the line. </p>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l00585">585</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-<p>References <a class="el" href="irplib__wavecal_8c_source.html#l01046">irplib_vector_fill_line_spectrum_model()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga75a85320c74d1088eeaeec97974d793c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_vector_fill_logline_spectrum_fast </td>
-          <td>(</td>
-          <td class="paramtype">cpl_vector * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>disp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * </td>
-          <td class="paramname"><em>lsslamp</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Generate a 1D spectrum from a model and a dispersion relation. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>Vector to fill with spectrum </td></tr>
-    <tr><td class="paramname">disp</td><td>1D-Dispersion relation, at least of degree 1 </td></tr>
-    <tr><td class="paramname">lsslamp</td><td>Pointer to <a class="el" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a> struct </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE on success, otherwise the relevant CPL error code </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>The logarithm is taken on the intensities </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__irplib__wavecal.html#ga6a463d7816b4164fdd23a4df2805cc95" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_line_spectrum_fast()</a></dd></dl>
-<p>log(1+I) is used for the (positive) intensities </p>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l00630">630</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-<p>References <a class="el" href="irplib__wavecal_8c_source.html#l01046">irplib_vector_fill_line_spectrum_model()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7bac402a4e2c60f7646f1e655a66833d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_plot_spectrum_and_model </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>disp1d</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * </td>
-          <td class="paramname"><em>model</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_error_code(*)(cpl_vector *, const cpl_polynomial *, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *) </td>
-          <td class="paramname"><em>filler</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Plot a 1D spectrum and one from a model. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>Vector with observed spectrum </td></tr>
-    <tr><td class="paramname">disp1d</td><td>1D-Dispersion relation, at least of degree 1 </td></tr>
-    <tr><td class="paramname">model</td><td>Pointer to model parameters </td></tr>
-    <tr><td class="paramname">filler</td><td>The function to fill the model spectrum </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE on success, otherwise the relevant CPL error code </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__irplib__wavecal.html#ga1d49cb7f85fc246c8fdf38625c769f7a" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_line_spectrum()</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l00672">672</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__wavecal_8c_source.html#l01496">irplib_polynomial_find_1d_from_correlation_all()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga260740bf1f3fc364b301519eab3249a6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_bivector_find_shift_from_correlation </td>
-          <td>(</td>
-          <td class="paramtype">cpl_bivector * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>disp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>obs</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * </td>
-          <td class="paramname"><em>model</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_error_code(*)(cpl_vector *, const cpl_polynomial *, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *) </td>
-          <td class="paramname"><em>filler</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>hsize</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>doplot</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>pxc</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find shift(s) that maximizes (locally) the cross-correlation. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>list of shifts that maximizes the cross-correlation (locally) </td></tr>
-    <tr><td class="paramname">disp</td><td>1D-Dispersion relation, at least of degree 1 </td></tr>
-    <tr><td class="paramname">obs</td><td>The observed spectrum to correlate against </td></tr>
-    <tr><td class="paramname">model</td><td>Pointer to model parameters </td></tr>
-    <tr><td class="paramname">filler</td><td>The function to fill the model spectrum </td></tr>
-    <tr><td class="paramname">hsize</td><td>Half the search-distance, hsize > 0 [pixel] </td></tr>
-    <tr><td class="paramname">doplot</td><td>Plot the cross-correlation as a function of pixel shift </td></tr>
-    <tr><td class="paramname">pxc</td><td>Iff non-NULL, set *pxc to cross-correlation on success </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE on success, otherwise the relevant CPL error code </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>On success, self will be resized to fit the number of shifts.</dd></dl>
-<p>The shifts are listed in order of decreasing cross-correlation. If pxc is non-NULL, *pxc will be set to the cross-correlation at shift 0.</p>
-<p>The shifts may include the extrema -hsize and hsize. </p>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l00759">759</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__wavecal_8c_source.html#l01496">irplib_polynomial_find_1d_from_correlation_all()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadf93655e2c7c0d5df23e2e3de66d0b56"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_polynomial_shift_1d_from_correlation </td>
-          <td>(</td>
-          <td class="paramtype">cpl_polynomial * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>obs</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * </td>
-          <td class="paramname"><em>model</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_error_code(*)(cpl_vector *, const cpl_polynomial *, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *) </td>
-          <td class="paramname"><em>filler</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>hsize</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>doplot</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>pxc</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Shift self by the amount that maximizes the cross-correlation. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>1D-Dispersion relation to shift, at least of degree 1 </td></tr>
-    <tr><td class="paramname">obs</td><td>The observed spectrum to correlate against </td></tr>
-    <tr><td class="paramname">model</td><td>Pointer to model parameters </td></tr>
-    <tr><td class="paramname">filler</td><td>The function to fill the model spectrum </td></tr>
-    <tr><td class="paramname">hsize</td><td>Half the search-distance, hsize > 0 [pixel] </td></tr>
-    <tr><td class="paramname">doplot</td><td>Plot the cross-correlation as a function of pixel shift </td></tr>
-    <tr><td class="paramname">pxc</td><td>Iff non-NULL, set *pxc to cross-correlation on success </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE on success, otherwise the relevant CPL error code </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l00936">936</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8a65755ca17c9fa0b69ceb128f544761"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_vector_fill_line_spectrum_model </td>
-          <td>(</td>
-          <td class="paramtype">cpl_vector * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_vector * </td>
-          <td class="paramname"><em>linepix</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_vector * </td>
-          <td class="paramname"><em>erftmp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>disp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_bivector * </td>
-          <td class="paramname"><em>lines</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>wslit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>wfwhm</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>xtrunc</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>hsize</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>dofast</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>dolog</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_size * </td>
-          <td class="paramname"><em>pulines</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Generate a 1D spectrum from (arc) lines and a dispersion relation. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>Vector to fill with spectrum </td></tr>
-    <tr><td class="paramname">linepix</td><td>Vector to update with best guess of line pixel position </td></tr>
-    <tr><td class="paramname">disp</td><td>1D-Dispersion relation, at least of degree 1 </td></tr>
-    <tr><td class="paramname">lines</td><td>Catalogue of lines, with increasing wavelengths </td></tr>
-    <tr><td class="paramname">wslit</td><td>Positive width of the slit </td></tr>
-    <tr><td class="paramname">wfwhm</td><td>Positive FWHM of the transfer function </td></tr>
-    <tr><td class="paramname">xtrunc</td><td>Truncate the line profile beyond distance xtrunc, xtrunc > 0 </td></tr>
-    <tr><td class="paramname">hsize</td><td>The 1st intensity in self will be disp(1-hsize), hsize >= 0 </td></tr>
-    <tr><td class="paramname">dofast</td><td>Iff true compose profile from pairs of two integer-placed </td></tr>
-    <tr><td class="paramname">dolog</td><td>Iff true log(1+I) is used for the (positive) intensities </td></tr>
-    <tr><td class="paramname">pulines</td><td>Iff non-NULL, number of lines used, on success </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE on success, otherwise the relevant CPL error code </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__irplib__wavecal.html#ga1d49cb7f85fc246c8fdf38625c769f7a" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_line_spectrum()</a> </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>This function is supposed to be called via <a class="el" href="group__irplib__wavecal.html#ga1d49cb7f85fc246c8fdf38625c769f7a" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_line_spectrum()</a>. </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l01046">1046</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-<p>References <a class="el" href="irplib__wavecal_8c_source.html#l01363">irplib_erf_antideriv()</a>, and <a class="el" href="irplib__utils_8c_source.html#l00177">irplib_errorstate_dump_debug()</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__wavecal_8c_source.html#l00494">irplib_vector_fill_line_spectrum()</a>, <a class="el" href="irplib__wavecal_8c_source.html#l00585">irplib_vector_fill_line_spectrum_fast()</a>, <a class="el" href="irplib__wavecal_8c_source.html#l00539">irplib_vector_fill_logline_spectrum()</a>, and <a class="el" href="irplib__wavecal_8c_source.html#l00630">irplib_vector_fill_logline_spectrum_fast()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2da9c21054a19322705de2d4f48d1d3f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double irplib_erf_antideriv </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sigma</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>The antiderivative of erx(x/sigma/sqrt(2)) with respect to x. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x</td><td>x </td></tr>
-    <tr><td class="paramname">sigma</td><td>sigma </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The antiderivative </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>This function is even. </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l01363">1363</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-<p>Referenced by <a class="el" href="irplib__wavecal_8c_source.html#l01046">irplib_vector_fill_line_spectrum_model()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7e782bcb7ec0e638a93dba628916a7a8"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code irplib_polynomial_find_1d_from_correlation_all </td>
-          <td>(</td>
-          <td class="paramtype">cpl_polynomial * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxdeg</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>obs</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nmaxima</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>linelim</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * </td>
-          <td class="paramname"><em>model</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_error_code(*)(cpl_vector *, const cpl_polynomial *, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *) </td>
-          <td class="paramname"><em>filler</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>pixtol</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>pixstep</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>hsize</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxite</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxfail</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxcont</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_boolean </td>
-          <td class="paramname"><em>doplot</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>pxc</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Modify self by maximizing the cross-correlation across all maxima. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>1D-Dispersion relation to modify, at least of degree 1 </td></tr>
-    <tr><td class="paramname">maxdeg</td><td>Maximize the cross-correlation by modifying maxdeg degree </td></tr>
-    <tr><td class="paramname">obs</td><td>The observed spectrum to correlate against </td></tr>
-    <tr><td class="paramname">nmaxima</td><td>Number of local maxima to try (0 for all, 1 for global only) </td></tr>
-    <tr><td class="paramname">linelim</td><td>Maximum number of lines allowed in iterative refinement </td></tr>
-    <tr><td class="paramname">model</td><td>The model of the lines/OTF etc. </td></tr>
-    <tr><td class="paramname">filler</td><td>The function to fill the model spectrum </td></tr>
-    <tr><td class="paramname">pixtol</td><td>The (positive) dispersion tolerance, e.g. 1e-6 </td></tr>
-    <tr><td class="paramname">pixstep</td><td>The step length used in the maximization, e.g. 0.5 [pixel] </td></tr>
-    <tr><td class="paramname">hsize</td><td>Half the search-distance to ensure a global-maximum, hsize >= 0 </td></tr>
-    <tr><td class="paramname">maxite</td><td>Maximum number of iterations, e.g. 100 * maxdeg </td></tr>
-    <tr><td class="paramname">maxfail</td><td>Number of retries on failure </td></tr>
-    <tr><td class="paramname">maxcont</td><td>Number of retries on non-convergence </td></tr>
-    <tr><td class="paramname">doplot</td><td>Plot the cross-correlation as a function of pixel shift </td></tr>
-    <tr><td class="paramname">pxc</td><td>On success, *pxc is the cross-correlation </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE on success, otherwise the relevant CPL error code </dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>Fails with CPL_ERROR_UNSUPPORTED_MODE if compiled without GSL. self must be increasing in the interval from 1 to the length of obs. </dd></dl>
-
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l01496">1496</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-
-<p>References <a class="el" href="irplib__wavecal_8c_source.html#l00759">irplib_bivector_find_shift_from_correlation()</a>, <a class="el" href="irplib__utils_8c_source.html#l00177">irplib_errorstate_dump_debug()</a>, and <a class="el" href="irplib__wavecal_8c_source.html#l00672">irplib_plot_spectrum_and_model()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__wcs.html b/html/group__irplib__wcs.html
deleted file mode 100644
index d3372f9..0000000
--- a/html/group__irplib__wcs.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Functions related to WCS</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Functions related to WCS</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__wlcalib__test.html b/html/group__irplib__wlcalib__test.html
deleted file mode 100644
index 968af4e..0000000
--- a/html/group__irplib__wlcalib__test.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Testing of the CPL Wavelength calibration</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Testing of the CPL Wavelength calibration</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__irplib__wlxcorr.html b/html/group__irplib__wlxcorr.html
deleted file mode 100644
index e67b11d..0000000
--- a/html/group__irplib__wlxcorr.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Wavelength Cross correlation w. plotting</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Wavelength Cross correlation w. plotting</div>  </div>
-</div><!--header-->
-<div class="contents">
-<dl class="section user"><dt>Synopsis:</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">     #include "irplib_wlxcorr.h"</span></div>
-</div><!-- fragment --> </dd></dl>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__recipe.html b/html/group__recipe.html
deleted file mode 100644
index 1d9680f..0000000
--- a/html/group__recipe.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Recipe</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__recipe__main.html b/html/group__recipe__main.html
deleted file mode 100644
index 86081ce..0000000
--- a/html/group__recipe__main.html
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: General plugin tests</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">General plugin tests</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__recipe__main.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
-<tr class="memdesc:ga840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft"> </td><td class="mdescRight">Find a plugin and submit it to some tests.  <a href="#ga840291bc02cba5474a4cb46a9b9566fe"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga840291bc02cba5474a4cb46a9b9566fe"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int main </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find a plugin and submit it to some tests. </p>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff succesful </dd></dl>
-
-<p>Definition at line <a class="el" href="recipe__main_8c_source.html#l00064">64</a> of file <a class="el" href="recipe__main_8c_source.html">recipe_main.c</a>.</p>
-
-<p>References <a class="el" href="flames__utl__unpack_8c_source.html#l00110">cpl_plugin_get_info()</a>, and <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__backsub.html b/html/group__uves__backsub.html
deleted file mode 100644
index 3e0acfe..0000000
--- a/html/group__uves__backsub.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Substep: Background Subtraction</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Substep: Background Subtraction</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>Subtract the background from an echelle image using method spline (recommended), polynomial or smooth. </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__baryvel.html b/html/group__uves__baryvel.html
deleted file mode 100644
index 29ac4ec..0000000
--- a/html/group__uves__baryvel.html
+++ /dev/null
@@ -1,398 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Velocity correction</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#define-members">Macros</a> |
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Velocity correction</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
-Macros</h2></td></tr>
-<tr class="memitem:ga03b8f8e3c131a0e32e71c41770ff4f24"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__baryvel.html#ga03b8f8e3c131a0e32e71c41770ff4f24">MIDAS_BUG</a>   0</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gaa1c25713efeab659789f821699975217"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__baryvel.html#gaa1c25713efeab659789f821699975217">deg2dms</a> (double in_val, double *degs, double *minutes, double *seconds)</td></tr>
-<tr class="memdesc:gaa1c25713efeab659789f821699975217"><td class="mdescLeft"> </td><td class="mdescRight">convert degrees -> degrees, minutes, seconds  <a href="#gaa1c25713efeab659789f821699975217"></a><br/></td></tr>
-<tr class="memitem:gaaaf92abe334c82d9d71517236508ff3f"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__baryvel.html#gaaaf92abe334c82d9d71517236508ff3f">deg2hms</a> (double in_val, double *hours, double *minutes, double *seconds)</td></tr>
-<tr class="memdesc:gaaaf92abe334c82d9d71517236508ff3f"><td class="mdescLeft"> </td><td class="mdescRight">convert hours -> degrees, minutes, seconds  <a href="#gaaaf92abe334c82d9d71517236508ff3f"></a><br/></td></tr>
-<tr class="memitem:ga11beea47928ca353a23b5399e7ed644e"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__baryvel.html#ga11beea47928ca353a23b5399e7ed644e">compxy</a> (double inputr[19], char inputc[4], double outputr[4], double utr, double mod_juldat)</td></tr>
-<tr class="memdesc:ga11beea47928ca353a23b5399e7ed644e"><td class="mdescLeft"> </td><td class="mdescRight">Compute velocity correction.  <a href="#ga11beea47928ca353a23b5399e7ed644e"></a><br/></td></tr>
-<tr class="memitem:ga3d3880b9ecf3dac9a3ed30608a5d4012"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__baryvel.html#ga3d3880b9ecf3dac9a3ed30608a5d4012">barvel</a> (double DJE, double DEQ, double DVELH[4], double DVELB[4])</td></tr>
-<tr class="memdesc:ga3d3880b9ecf3dac9a3ed30608a5d4012"><td class="mdescLeft"> </td><td class="mdescRight">compute rectangular heliocentric and barycentric components of the earth's orbital velocity  <a href="#ga3d3880b9ecf3dac9a3ed30608a5d4012"></a><br/></td></tr>
-<tr class="memitem:ga7ab5f73d3e1aad2933cbcf66dff04aa3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__baryvel.html#ga7ab5f73d3e1aad2933cbcf66dff04aa3">uves_baryvel</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, double *bary_corr, double *helio_corr)</td></tr>
-<tr class="memdesc:ga7ab5f73d3e1aad2933cbcf66dff04aa3"><td class="mdescLeft"> </td><td class="mdescRight">Compute velocity correction.  <a href="#ga7ab5f73d3e1aad2933cbcf66dff04aa3"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>Compute barycentric, heliocentric velocity corrections</p>
-<p>The code in this source file is a 1-to-1 translation of MIDAS COMPUT/BARYCOR as defined in /prim/general/src/compxy.for (only the necessary parts were translated). The code is not meant to be particularly readable/maintainable. To understand the computation the best starting point is probably P. Stumpff, A&A Suppl. Ser. 41, pp. 1-8 (1980) </p>
-<hr/><h2>Macro Definition Documentation</h2>
-<a class="anchor" id="ga03b8f8e3c131a0e32e71c41770ff4f24"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define MIDAS_BUG   0</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>To get the exact same behaviour as MIDAS this should be define'd to 1. (Fixing it does not seem to make a difference in the resulting numbers but do it anyway) </p>
-
-<p>Definition at line <a class="el" href="uves__baryvel_8c_source.html#l01180">1180</a> of file <a class="el" href="uves__baryvel_8c_source.html">uves_baryvel.c</a>.</p>
-
-</div>
-</div>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gaa1c25713efeab659789f821699975217"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void deg2dms </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>in_val</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>degs</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>minutes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>seconds</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>convert degrees -> degrees, minutes, seconds </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">in_val</td><td>the value to convert </td></tr>
-    <tr><td class="paramname">degs</td><td>(output) degrees (integer) </td></tr>
-    <tr><td class="paramname">minutes</td><td>(output) minutes (integer) </td></tr>
-    <tr><td class="paramname">seconds</td><td>(output) seconds (fractional) </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__baryvel_8c_source.html#l01169">1169</a> of file <a class="el" href="uves__baryvel_8c_source.html">uves_baryvel.c</a>.</p>
-
-<p>References <a class="el" href="uves__baryvel_8c_source.html#l01192">deg2hms()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__baryvel_8c_source.html#l00120">uves_baryvel()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaaaf92abe334c82d9d71517236508ff3f"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void deg2hms </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>in_val</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>hours</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>minutes</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>seconds</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>convert hours -> degrees, minutes, seconds </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">in_val</td><td>the value to convert </td></tr>
-    <tr><td class="paramname">hours</td><td>(output) hours (integer). 360 degrees correspond to 24 h </td></tr>
-    <tr><td class="paramname">minutes</td><td>(output) minutes (integer) </td></tr>
-    <tr><td class="paramname">seconds</td><td>(output) seconds (fractional) </td></tr>
-  </table>
-  </dd>
-</dl>
-<p>360 deg corresponds to 24 h=> 15 deg corresponds to 1 h </p>
-
-<p>Definition at line <a class="el" href="uves__baryvel_8c_source.html#l01192">1192</a> of file <a class="el" href="uves__baryvel_8c_source.html">uves_baryvel.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__baryvel_8c_source.html#l01169">deg2dms()</a>, and <a class="el" href="uves__baryvel_8c_source.html#l00120">uves_baryvel()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga11beea47928ca353a23b5399e7ed644e"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void compxy </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>inputr</em>[19], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>inputc</em>[4], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>outputr</em>[4], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>utr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>mod_juldat</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Compute velocity correction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">inputr</td><td>input parameters </td></tr>
-    <tr><td class="paramname">inputc</td><td>input parameters </td></tr>
-    <tr><td class="paramname">outputr</td><td>output parameters </td></tr>
-    <tr><td class="paramname">utr</td><td>observation time (seconds) </td></tr>
-    <tr><td class="paramname">mod_juldat</td><td>observation modified julian date</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>INPUTR/R/1/3 date: year,month,day INPUTR/R/4/3 universal time: hour,min,sec INPUTR/R/7/3 EAST longitude of observatory: degree,min,sec !! NOTE INPUTR/R/10/3 latitude of observatory: degree,min,sec INPUTR/R/13/3 right ascension: hour,min,sec INPUTR/R/16/3 declination: degree,min,sec OUTPUTD/D/1/1 barycentric correction to time (days) OUTPUTD/D/2/1 heliocentric correction to time (days) OUTPUTR/R/1/1 barycentric correction to radial velocity (km/s) OUTPUTR/R/2/1 heliocentric correction  [...]
-
-<p>Definition at line <a class="el" href="uves__baryvel_8c_source.html#l00288">288</a> of file <a class="el" href="uves__baryvel_8c_source.html">uves_baryvel.c</a>.</p>
-
-<p>References <a class="el" href="uves__baryvel_8c_source.html#l00622">barvel()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__baryvel_8c_source.html#l00120">uves_baryvel()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3d3880b9ecf3dac9a3ed30608a5d4012"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void barvel </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>DJE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>DEQ</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>DVELH</em>[4], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>DVELB</em>[4] </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>compute rectangular heliocentric and barycentric components of the earth's orbital velocity </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">DJE</td><td>Julian date </td></tr>
-    <tr><td class="paramname">DEQ</td><td>??? </td></tr>
-    <tr><td class="paramname">DVELH</td><td>(output) heliocentric velocity </td></tr>
-    <tr><td class="paramname">DVELB</td><td>(output) barycentric velocity</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>REFERENCE : STUMPFF P. ASTRON. ASTOPHYS. SUPPL. 41,1,1980 MODIFICATION : D. GILLET 1983-9-15 </p>
-
-<p>Definition at line <a class="el" href="uves__baryvel_8c_source.html#l00622">622</a> of file <a class="el" href="uves__baryvel_8c_source.html">uves_baryvel.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__baryvel_8c_source.html#l00288">compxy()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7ab5f73d3e1aad2933cbcf66dff04aa3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_baryvel </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>bary_corr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>helio_corr</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Compute velocity correction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_header</td><td>input FITS header </td></tr>
-    <tr><td class="paramname">bary_corr</td><td>(output) baryocentric correction </td></tr>
-    <tr><td class="paramname">helio_corr</td><td>(output) heliocentric correction </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__baryvel_8c_source.html#l00120">120</a> of file <a class="el" href="uves__baryvel_8c_source.html">uves_baryvel.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__baryvel_8c_source.html#l00288">compxy()</a>, <a class="el" href="uves__baryvel_8c_source.html#l01169">deg2dms()</a>, <a class="el" href="uves__baryvel_8c_source.html#l01192">deg2hms()</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__pfits_8c_source.html#l01264">uves_pfits_get_dec()</a>, <a class="el" href="uves__pfits_8c_source.h [...]
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l00803">uves_qclog_add_sci()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__cal__cd__align.html b/html/group__uves__cal__cd__align.html
deleted file mode 100644
index 1ff4514..0000000
--- a/html/group__uves__cal__cd__align.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Uves_cal_cd_align</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Uves_cal_cd_align</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__cal__mkmaster.html b/html/group__uves__cal__mkmaster.html
deleted file mode 100644
index e972c02..0000000
--- a/html/group__uves__cal__mkmaster.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: Make master</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Recipe: Make master</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>This recipe calculates master bias/dark/flat frames. See man-page for details. </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__cdalign.html b/html/group__uves__cdalign.html
deleted file mode 100644
index 448b67c..0000000
--- a/html/group__uves__cdalign.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: Cross Disperser alignment</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Recipe: Cross Disperser alignment</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>This recipe measures the repeatability of the Cross-Disperser position See man-page for details. </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__chip.html b/html/group__uves__chip.html
deleted file mode 100644
index 0854978..0000000
--- a/html/group__uves__chip.html
+++ /dev/null
@@ -1,279 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: CCD Chip</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">CCD Chip</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gaf7467d3681b7049a7d6f8757eda8c29e"><td class="memItemLeft" align="right" valign="top">enum uves_chip </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e">uves_chip_get_first</a> (bool blue)</td></tr>
-<tr class="memdesc:gaf7467d3681b7049a7d6f8757eda8c29e"><td class="mdescLeft"> </td><td class="mdescRight">Get first chip for blue or red arm.  <a href="#gaf7467d3681b7049a7d6f8757eda8c29e"></a><br/></td></tr>
-<tr class="memitem:ga5055cc8c352e54991b620ae8cbd2466a"><td class="memItemLeft" align="right" valign="top">enum uves_chip </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a">uves_chip_get_next</a> (enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga5055cc8c352e54991b620ae8cbd2466a"><td class="mdescLeft"> </td><td class="mdescRight">Get next chip.  <a href="#ga5055cc8c352e54991b620ae8cbd2466a"></a><br/></td></tr>
-<tr class="memitem:ga1a38f30e8415ff169d514267a6d30142"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142">uves_chip_get_index</a> (enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga1a38f30e8415ff169d514267a6d30142"><td class="mdescLeft"> </td><td class="mdescRight">Convert to integer.  <a href="#ga1a38f30e8415ff169d514267a6d30142"></a><br/></td></tr>
-<tr class="memitem:ga8319c211e6b7c649287e432bf78dc719"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__chip.html#ga8319c211e6b7c649287e432bf78dc719">uves_chip_tostring_lower</a> (enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga8319c211e6b7c649287e432bf78dc719"><td class="mdescLeft"> </td><td class="mdescRight">Convert to string.  <a href="#ga8319c211e6b7c649287e432bf78dc719"></a><br/></td></tr>
-<tr class="memitem:ga8a5203429297c2ab00a49b758f00091d"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d">uves_chip_tostring_upper</a> (enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga8a5203429297c2ab00a49b758f00091d"><td class="mdescLeft"> </td><td class="mdescRight">Convert to string.  <a href="#ga8a5203429297c2ab00a49b758f00091d"></a><br/></td></tr>
-<tr class="memitem:ga34fa9c6d689106d4d44c572b33ac6410"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__chip.html#ga34fa9c6d689106d4d44c572b33ac6410">uves_chip_get_det</a> (enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga34fa9c6d689106d4d44c572b33ac6410"><td class="mdescLeft"> </td><td class="mdescRight">Get letters used in filenames.  <a href="#ga34fa9c6d689106d4d44c572b33ac6410"></a><br/></td></tr>
-<tr class="memitem:gacc97ccf41a4ed99989d1ddc52192aac6"><td class="memItemLeft" align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__chip.html#gacc97ccf41a4ed99989d1ddc52192aac6">uves_chip_tochar</a> (enum uves_chip chip)</td></tr>
-<tr class="memdesc:gacc97ccf41a4ed99989d1ddc52192aac6"><td class="mdescLeft"> </td><td class="mdescRight">Get letters used in filenames.  <a href="#gacc97ccf41a4ed99989d1ddc52192aac6"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>The CCD chip abstract data type </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gaf7467d3681b7049a7d6f8757eda8c29e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">enum uves_chip uves_chip_get_first </td>
-          <td>(</td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>blue</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get first chip for blue or red arm. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">blue</td><td>Blue (if true) or red (if false) arm </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The first (using some arbitrary but self-consistent definition of chip ordering) chip of the specified arm.</dd></dl>
-<p>This function is used to loop through all (in the case of UVES, 1 or 2) chips of an arm.</p>
-<div class="fragment"><div class="line">     <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line">          chip != UVES_CHIP_INVALID; </div>
-<div class="line">      chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line">     {...}</div>
-</div><!-- fragment --> 
-<p>Definition at line <a class="el" href="uves__chip_8c_source.html#l00092">92</a> of file <a class="el" href="uves__chip_8c_source.html">uves_chip.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__corrbadpix-test_8c_source.html#l00092">test_bad_corr()</a>, <a class="el" href="uves__extract-test_8c_source.html#l00185">test_extract()</a>, <a class="el" href="uves__reduce__mflat_8c_source.html#l00610">uves_reduce_mflat()</a>, <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00348">uves_reduce_mflat_combine()</a>, <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>, and <a class="el" href=" [...]
-
-</div>
-</div>
-<a class="anchor" id="ga5055cc8c352e54991b620ae8cbd2466a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">enum uves_chip uves_chip_get_next </td>
-          <td>(</td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get next chip. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">chip</td><td>The current chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The chip following the specified <em>chip</em> </dd></dl>
-<p>See <code><a class="el" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first()</a></code> </p>
-
-<p>Definition at line <a class="el" href="uves__chip_8c_source.html#l00108">108</a> of file <a class="el" href="uves__chip_8c_source.html">uves_chip.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__corrbadpix-test_8c_source.html#l00092">test_bad_corr()</a>, <a class="el" href="uves__reduce__mflat_8c_source.html#l00610">uves_reduce_mflat()</a>, <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00348">uves_reduce_mflat_combine()</a>, <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>, and <a class="el" href="uves__utl__physmod_8c_source.html#l00354">uves_utl_physmod()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1a38f30e8415ff169d514267a6d30142"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_chip_get_index </td>
-          <td>(</td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Convert to integer. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">chip</td><td>The CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The specified <em>chip</em> converted to integer (1 if REDU, otherwise 0) </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__chip_8c_source.html#l00124">124</a> of file <a class="el" href="uves__chip_8c_source.html">uves_chip.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00610">uves_reduce_mflat()</a>, <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00348">uves_reduce_mflat_combine()</a>, <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>, and <a class="el" href="uves__utl__physmod_8c_source.html#l00354">uves_utl_physmod()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8319c211e6b7c649287e432bf78dc719"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_chip_tostring_lower </td>
-          <td>(</td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Convert to string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">chip</td><td>The CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A lower case textual representation of the specified <em>chip</em> </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__chip_8c_source.html#l00139">139</a> of file <a class="el" href="uves__chip_8c_source.html">uves_chip.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__plotmod_8c_source.html#l00119">uves_physmod_plotmod()</a>, and <a class="el" href="uves__utl__physmod_8c_source.html#l00354">uves_utl_physmod()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8a5203429297c2ab00a49b758f00091d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_chip_tostring_upper </td>
-          <td>(</td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Convert to string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">chip</td><td>The CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>An upper case textual representation of the specified <em>chip</em> </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__chip_8c_source.html#l00156">156</a> of file <a class="el" href="uves__chip_8c_source.html">uves_chip.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00154">uves_combine_flats()</a>, <a class="el" href="uves__merge_8c_source.html#l00239">uves_merge_orders()</a>, <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>, <a class="el" href="uves__reduce__mflat_8c_source.html#l00610">uves_reduce_mflat()</a>, <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00348">uves_reduce_mflat_combine()</a>, [...]
-
-</div>
-</div>
-<a class="anchor" id="ga34fa9c6d689106d4d44c572b33ac6410"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_chip_get_det </td>
-          <td>(</td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get letters used in filenames. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">chip</td><td>The CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>letters </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__chip_8c_source.html#l00172">172</a> of file <a class="el" href="uves__chip_8c_source.html">uves_chip.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gacc97ccf41a4ed99989d1ddc52192aac6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char uves_chip_tochar </td>
-          <td>(</td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get letters used in filenames. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">chip</td><td>The CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>character representation of chip </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__chip_8c_source.html#l00187">187</a> of file <a class="el" href="uves__chip_8c_source.html">uves_chip.c</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__chip__type.html b/html/group__uves__chip__type.html
deleted file mode 100644
index e358e16..0000000
--- a/html/group__uves__chip__type.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: CCD chip abstract type</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">CCD chip abstract type</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__corrbadpix.html b/html/group__uves__corrbadpix.html
deleted file mode 100644
index bd328be..0000000
--- a/html/group__uves__corrbadpix.html
+++ /dev/null
@@ -1,341 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Bad pixel correction</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Bad pixel correction</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gafcf45594af0c57c52ef369dd8d0ee84c"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__corrbadpix.html#gafcf45594af0c57c52ef369dd8d0ee84c">uves_correct_badpix</a> (cpl_image *master_bias, <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *header, int **badmap, bool mark_bad)</td></tr>
-<tr class="memdesc:gafcf45594af0c57c52ef369dd8d0ee84c"><td class="mdescLeft"> </td><td class="mdescRight">Correct bad pixels.  <a href="#gafcf45594af0c57c52ef369dd8d0ee84c"></a><br/></td></tr>
-<tr class="memitem:gabddade195002b7813f7cb41baa85b729"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__corrbadpix.html#gabddade195002b7813f7cb41baa85b729">uves_correct_badpix_all</a> (cpl_image *master_bias, <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *mbias_header, enum uves_chip chip, int binx, int biny, int mark_bad, bool red_ccd_n [...]
-<tr class="memdesc:gabddade195002b7813f7cb41baa85b729"><td class="mdescLeft"> </td><td class="mdescRight">Correct all bad pixels on a chip.  <a href="#gabddade195002b7813f7cb41baa85b729"></a><br/></td></tr>
-<tr class="memitem:ga78cee830d02229091392e16a61e82c35"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35">uves_badmap_free</a> (int ***badmap)</td></tr>
-<tr class="memdesc:ga78cee830d02229091392e16a61e82c35"><td class="mdescLeft"> </td><td class="mdescRight">Deallocate bpm position.  <a href="#ga78cee830d02229091392e16a61e82c35"></a><br/></td></tr>
-<tr class="memitem:ga1b2dd47e9df5c3b6deea5765cd0e5d7c"><td class="memItemLeft" align="right" valign="top">static int ** </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c">dup_map</a> (int badmap[][4])</td></tr>
-<tr class="memdesc:ga1b2dd47e9df5c3b6deea5765cd0e5d7c"><td class="mdescLeft"> </td><td class="mdescRight">Copy bpm to heap.  <a href="#ga1b2dd47e9df5c3b6deea5765cd0e5d7c"></a><br/></td></tr>
-<tr class="memitem:ga3ab8d84dd9d1b03073d2b535c0236bcb"><td class="memItemLeft" align="right" valign="top">int ** </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__corrbadpix.html#ga3ab8d84dd9d1b03073d2b535c0236bcb">uves_get_badpix</a> (enum uves_chip chip, int binx, int biny, int mark_bad, bool red_ccd_new)</td></tr>
-<tr class="memdesc:ga3ab8d84dd9d1b03073d2b535c0236bcb"><td class="mdescLeft"> </td><td class="mdescRight">Get hard-coded bpm map.  <a href="#ga3ab8d84dd9d1b03073d2b535c0236bcb"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>Correct the bad pixels in an image </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gafcf45594af0c57c52ef369dd8d0ee84c"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_correct_badpix </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>master_bias</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int ** </td>
-          <td class="paramname"><em>badmap</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>mark_bad</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Correct bad pixels. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">master_bias</td><td>The image to correct </td></tr>
-    <tr><td class="paramname">header</td><td>Image FITS header, </td></tr>
-    <tr><td class="paramname">badmap</td><td>Matrix of bad pixel traps. Each row is in the format (xstart, ystart, xend, yend), except the last row which must be (-1, -1, -1, -1). </td></tr>
-    <tr><td class="paramname">mark_bad</td><td>If true, the relevant pixels are not interpolated but simply marked as bad. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Number of pixels that was corrected, or undefined on error.</dd></dl>
-<p>The bad pixels are replaced by the average of nearest good pixels in the same column. </p>
-
-<p>Definition at line <a class="el" href="uves__corrbadpix_8c_source.html#l00585">585</a> of file <a class="el" href="uves__corrbadpix_8c_source.html">uves_corrbadpix.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__pfits_8c_source.html#l02639">uves_pfits_set_badpixcorr()</a>, and <a class="el" href="uves__dump_8c_source.html#l00377">uves_tostring_cpl_type()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__corrbadpix_8c_source.html#l00156">uves_correct_badpix_all()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gabddade195002b7813f7cb41baa85b729"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_correct_badpix_all </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>master_bias</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>mbias_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>binx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>biny</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>mark_bad</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>red_ccd_new</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Correct all bad pixels on a chip. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">master_bias</td><td>The image to correct </td></tr>
-    <tr><td class="paramname">mbias_header</td><td>Image FITS header, </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-    <tr><td class="paramname">binx</td><td>x-binning </td></tr>
-    <tr><td class="paramname">biny</td><td>y-binning </td></tr>
-    <tr><td class="paramname">mark_bad</td><td>If true, the relevant pixels are not interpolated but simply marked as bad. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Number of pixels that was corrected, or undefined on error.</dd></dl>
-<p>The bad pixels are replaced by the average of nearest good pixels in the same column, or simply marked as bad.</p>
-<p>The positions of bad pixels are hard-coded (as function of UVES chip). </p>
-
-<p>Definition at line <a class="el" href="uves__corrbadpix_8c_source.html#l00156">156</a> of file <a class="el" href="uves__corrbadpix_8c_source.html">uves_corrbadpix.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__corrbadpix_8c_source.html#l00184">uves_badmap_free()</a>, <a class="el" href="uves__corrbadpix_8c_source.html#l00585">uves_correct_badpix()</a>, and <a class="el" href="uves__corrbadpix_8c_source.html#l00256">uves_get_badpix()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__corrbadpix-test_8c_source.html#l00092">test_bad_corr()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga78cee830d02229091392e16a61e82c35"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_badmap_free </td>
-          <td>(</td>
-          <td class="paramtype">int *** </td>
-          <td class="paramname"><em>badmap</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Deallocate bpm position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">badmap</td><td>to deallocate (pointer to 2d array) </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__corrbadpix_8c_source.html#l00184">184</a> of file <a class="el" href="uves__corrbadpix_8c_source.html">uves_corrbadpix.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__corrbadpix-test_8c_source.html#l00092">test_bad_corr()</a>, and <a class="el" href="uves__corrbadpix_8c_source.html#l00156">uves_correct_badpix_all()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1b2dd47e9df5c3b6deea5765cd0e5d7c"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int** dup_map </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>badmap</em>[][4]</td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Copy bpm to heap. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">badmap</td><td>to copy </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>dynamically allocated copy of input </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__corrbadpix_8c_source.html#l00213">213</a> of file <a class="el" href="uves__corrbadpix_8c_source.html">uves_corrbadpix.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__corrbadpix_8c_source.html#l00256">uves_get_badpix()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3ab8d84dd9d1b03073d2b535c0236bcb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int** uves_get_badpix </td>
-          <td>(</td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>binx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>biny</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>mark_bad</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>red_ccd_new</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get hard-coded bpm map. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">chip</td><td>UVES CCD chip </td></tr>
-    <tr><td class="paramname">binx</td><td>x binning </td></tr>
-    <tr><td class="paramname">biny</td><td>y binning </td></tr>
-    <tr><td class="paramname">mark_bad</td><td>a strange parameter, if true, a few more regions are marked as bad (for compatibility with MIDAS) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>dynamically allocated array of bad pixel areas, must be deallocated with <a class="el" href="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35" title="Deallocate bpm position.">uves_badmap_free()</a></dd></dl>
-<p>The array is terminated with a row of -1 </p>
-
-<p>Definition at line <a class="el" href="uves__corrbadpix_8c_source.html#l00256">256</a> of file <a class="el" href="uves__corrbadpix_8c_source.html">uves_corrbadpix.c</a>.</p>
-
-<p>References <a class="el" href="uves__corrbadpix_8c_source.html#l00213">dup_map()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__corrbadpix-test_8c_source.html#l00092">test_bad_corr()</a>, and <a class="el" href="uves__corrbadpix_8c_source.html#l00156">uves_correct_badpix_all()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__corrbadpix__test.html b/html/group__uves__corrbadpix__test.html
deleted file mode 100644
index 6866473..0000000
--- a/html/group__uves__corrbadpix__test.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: UVES bad pixel correction unit tests</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">UVES bad pixel correction unit tests</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gaab99aa10d70ef9b2fe672f56c15f60c8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaab99aa10d70ef9b2fe672f56c15f60c8"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__corrbadpix__test.html#gaab99aa10d70ef9b2fe672f56c15f60c8">test_bad_corr</a> (void)</td></tr>
-<tr class="memdesc:gaab99aa10d70ef9b2fe672f56c15f60c8"><td class="mdescLeft"> </td><td class="mdescRight">Call the functions which had many memory errors. <br/></td></tr>
-<tr class="memitem:ga840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga840291bc02cba5474a4cb46a9b9566fe"></a>
-int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__corrbadpix__test.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
-<tr class="memdesc:ga840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft"> </td><td class="mdescRight">Test of uves_corrbadpix. <br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__dfs.html b/html/group__uves__dfs.html
deleted file mode 100644
index e6b2f1a..0000000
--- a/html/group__uves__dfs.html
+++ /dev/null
@@ -1,175 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: UVES CD align unit tests</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">UVES CD align unit tests</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gaf312209df39d763b6975f2682529a4e8"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dfs.html#gaf312209df39d763b6975f2682529a4e8">eval_gauss</a> (double x, double my, double sigma, double norm, double back)</td></tr>
-<tr class="memdesc:gaf312209df39d763b6975f2682529a4e8"><td class="mdescLeft"> </td><td class="mdescRight">evaluate Gaussian  <a href="#gaf312209df39d763b6975f2682529a4e8"></a><br/></td></tr>
-<tr class="memitem:gaf03bdc8665be4a9b822ad51cc627a781"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf03bdc8665be4a9b822ad51cc627a781"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dfs.html#gaf03bdc8665be4a9b822ad51cc627a781">test_process</a> (void)</td></tr>
-<tr class="memdesc:gaf03bdc8665be4a9b822ad51cc627a781"><td class="mdescLeft"> </td><td class="mdescRight">test core processing part of CD align recipe <br/></td></tr>
-<tr class="memitem:ga840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dfs.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
-<tr class="memdesc:ga840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft"> </td><td class="mdescRight">Test of uves_cal_cdalign recipe.  <a href="#ga840291bc02cba5474a4cb46a9b9566fe"></a><br/></td></tr>
-<tr class="memitem:ga8d65e1daf239b7e190cec6f51dac20b3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8d65e1daf239b7e190cec6f51dac20b3"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dfs.html#ga8d65e1daf239b7e190cec6f51dac20b3">parse_midas_poly</a> (void)</td></tr>
-<tr class="memdesc:ga8d65e1daf239b7e190cec6f51dac20b3"><td class="mdescLeft"> </td><td class="mdescRight">This function tests reading MIDAS polynomials. <br/></td></tr>
-<tr class="memitem:ga25c633cbad05c6881a85e9fa05ee067f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga25c633cbad05c6881a85e9fa05ee067f"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dfs.html#ga25c633cbad05c6881a85e9fa05ee067f">test_load_linetable</a> (void)</td></tr>
-<tr class="memdesc:ga25c633cbad05c6881a85e9fa05ee067f"><td class="mdescLeft"> </td><td class="mdescRight">line table input <br/></td></tr>
-<tr class="memitem:ga88bbe197eb9fde07ce6d0764f542bc6b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga88bbe197eb9fde07ce6d0764f542bc6b"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dfs.html#ga88bbe197eb9fde07ce6d0764f542bc6b">convert_midas_array</a> (void)</td></tr>
-<tr class="memdesc:ga88bbe197eb9fde07ce6d0764f542bc6b"><td class="mdescLeft"> </td><td class="mdescRight">this function tests reading MIDAS arrays <br/></td></tr>
-<tr class="memitem:ga55bd09e356002a31fb5223db095c6658"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga55bd09e356002a31fb5223db095c6658"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dfs.html#ga55bd09e356002a31fb5223db095c6658">test_save_image</a> (void)</td></tr>
-<tr class="memdesc:ga55bd09e356002a31fb5223db095c6658"><td class="mdescLeft"> </td><td class="mdescRight">test image output <br/></td></tr>
-<tr class="memitem:ga8168aec179eed4c63b7f9c61b94d2e2b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8168aec179eed4c63b7f9c61b94d2e2b"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dfs.html#ga8168aec179eed4c63b7f9c61b94d2e2b">test_save_frame</a> (void)</td></tr>
-<tr class="memdesc:ga8168aec179eed4c63b7f9c61b94d2e2b"><td class="mdescLeft"> </td><td class="mdescRight">test pipeline product creation <br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This modules implements the interface to the DFS, such as file formats, file names, I/O and FITS header compliancy. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gaf312209df39d763b6975f2682529a4e8"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double eval_gauss </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>my</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sigma</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>norm</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>back</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>evaluate Gaussian </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x</td><td>where </td></tr>
-    <tr><td class="paramname">my</td><td>centroid </td></tr>
-    <tr><td class="paramname">sigma</td><td>stdev </td></tr>
-    <tr><td class="paramname">norm</td><td>normalization </td></tr>
-    <tr><td class="paramname">back</td><td>constant term </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__cd__align-test_8c_source.html#l00093">93</a> of file <a class="el" href="uves__cd__align-test_8c_source.html">uves_cd_align-test.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils_8c_source.html#l04237">uves_moffat()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__cd__align-test_8c_source.html#l00123">test_process()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga840291bc02cba5474a4cb46a9b9566fe"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int main </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Test of uves_cal_cdalign recipe. </p>
-<p>Test of uves_dfs. </p>
-
-<p>Definition at line <a class="el" href="uves__cd__align-test_8c_source.html#l00214">214</a> of file <a class="el" href="uves__cd__align-test_8c_source.html">uves_cd_align-test.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__cd__align-test_8c_source.html#l00123">test_process()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__dump.html b/html/group__uves__dump.html
deleted file mode 100644
index 1f69ecc..0000000
--- a/html/group__uves__dump.html
+++ /dev/null
@@ -1,336 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Print CPL objects</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Print CPL objects</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga3bdf3305f871cf59e1010122e3078edb"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dump.html#ga3bdf3305f871cf59e1010122e3078edb">uves_print_uves_propertylist</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *pl, long low, long high)</td></tr>
-<tr class="memdesc:ga3bdf3305f871cf59e1010122e3078edb"><td class="mdescLeft"> </td><td class="mdescRight">Print a property list.  <a href="#ga3bdf3305f871cf59e1010122e3078edb"></a><br/></td></tr>
-<tr class="memitem:ga873425d85be55f6137bb8c1e8e329b5e"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dump.html#ga873425d85be55f6137bb8c1e8e329b5e">uves_print_cpl_property</a> (const cpl_property *prop)</td></tr>
-<tr class="memdesc:ga873425d85be55f6137bb8c1e8e329b5e"><td class="mdescLeft"> </td><td class="mdescRight">Print a property.  <a href="#ga873425d85be55f6137bb8c1e8e329b5e"></a><br/></td></tr>
-<tr class="memitem:ga74fae5c56aeaf8262cf416a8d747d3f2"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dump.html#ga74fae5c56aeaf8262cf416a8d747d3f2">uves_print_cpl_frameset</a> (const cpl_frameset *frames)</td></tr>
-<tr class="memdesc:ga74fae5c56aeaf8262cf416a8d747d3f2"><td class="mdescLeft"> </td><td class="mdescRight">Print a frame set.  <a href="#ga74fae5c56aeaf8262cf416a8d747d3f2"></a><br/></td></tr>
-<tr class="memitem:ga5e8553a2dcbbfe43fc15e21e4f54c381"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dump.html#ga5e8553a2dcbbfe43fc15e21e4f54c381">uves_print_cpl_frame</a> (const cpl_frame *f)</td></tr>
-<tr class="memdesc:ga5e8553a2dcbbfe43fc15e21e4f54c381"><td class="mdescLeft"> </td><td class="mdescRight">Print a frame.  <a href="#ga5e8553a2dcbbfe43fc15e21e4f54c381"></a><br/></td></tr>
-<tr class="memitem:ga7b4de02190abecc763b7be5c85e89b6e"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dump.html#ga7b4de02190abecc763b7be5c85e89b6e">uves_tostring_cpl_frame_type</a> (cpl_frame_type ft)</td></tr>
-<tr class="memdesc:ga7b4de02190abecc763b7be5c85e89b6e"><td class="mdescLeft"> </td><td class="mdescRight">Convert a frame type to a string.  <a href="#ga7b4de02190abecc763b7be5c85e89b6e"></a><br/></td></tr>
-<tr class="memitem:ga762dd0a18ecc4b13ebcc9a8aa5be5be9"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dump.html#ga762dd0a18ecc4b13ebcc9a8aa5be5be9">uves_tostring_cpl_frame_group</a> (cpl_frame_group fg)</td></tr>
-<tr class="memdesc:ga762dd0a18ecc4b13ebcc9a8aa5be5be9"><td class="mdescLeft"> </td><td class="mdescRight">Convert a frame group to a string.  <a href="#ga762dd0a18ecc4b13ebcc9a8aa5be5be9"></a><br/></td></tr>
-<tr class="memitem:ga643a38c444a34da5266bed60ca817ebb"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dump.html#ga643a38c444a34da5266bed60ca817ebb">uves_tostring_cpl_frame_level</a> (cpl_frame_level fl)</td></tr>
-<tr class="memdesc:ga643a38c444a34da5266bed60ca817ebb"><td class="mdescLeft"> </td><td class="mdescRight">Convert a frame level to a string.  <a href="#ga643a38c444a34da5266bed60ca817ebb"></a><br/></td></tr>
-<tr class="memitem:ga55b54db59732e986ca4e9c93cc6af69d"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d">uves_tostring_cpl_type</a> (cpl_type t)</td></tr>
-<tr class="memdesc:ga55b54db59732e986ca4e9c93cc6af69d"><td class="mdescLeft"> </td><td class="mdescRight">Convert a CPL type to a string.  <a href="#ga55b54db59732e986ca4e9c93cc6af69d"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>Functions that enables dumping (using CPL's messaging system) some otherwise non-dumpable CPL objects </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga3bdf3305f871cf59e1010122e3078edb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_print_uves_propertylist </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>pl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">long </td>
-          <td class="paramname"><em>low</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">long </td>
-          <td class="paramname"><em>high</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">pl</td><td>The property list to print. </td></tr>
-    <tr><td class="paramname">low</td><td>Index of first property to print. </td></tr>
-    <tr><td class="paramname">high</td><td>Index of first property not to print. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff OK.</dd></dl>
-<p>This function prints all properties in the property list <em>pl</em> in the range from <em>low</em> (included) to <em>high</em> (not included) counting from zero. </p>
-
-<p>Definition at line <a class="el" href="uves__dump_8c_source.html#l00117">117</a> of file <a class="el" href="uves__dump_8c_source.html">uves_dump.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__dump_8c_source.html#l00153">uves_print_cpl_property()</a>, <a class="el" href="uves__propertylist_8c_source.html#l01650">uves_propertylist_get_const()</a>, <a class="el" href="uves__propertylist_8c_source.html#l00898">uves_propertylist_get_size()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l00940">u [...]
-
-</div>
-</div>
-<a class="anchor" id="ga873425d85be55f6137bb8c1e8e329b5e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_print_cpl_property </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_property * </td>
-          <td class="paramname"><em>prop</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print a property. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">prop</td><td>The property to print. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff OK.</dd></dl>
-<p>This function prints a property's name, value and comment. </p>
-
-<p>Definition at line <a class="el" href="uves__dump_8c_source.html#l00153">153</a> of file <a class="el" href="uves__dump_8c_source.html">uves_dump.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__dump_8c_source.html#l00117">uves_print_uves_propertylist()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga74fae5c56aeaf8262cf416a8d747d3f2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_print_cpl_frameset </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>frames</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print a frame set. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">frames</td><td>Frame set to print </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff OK.</dd></dl>
-<p>This function prints all frames in a CPL frame set. </p>
-
-<p>Definition at line <a class="el" href="uves__dump_8c_source.html#l00235">235</a> of file <a class="el" href="uves__dump_8c_source.html">uves_dump.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, and <a class="el" href="uves__dump_8c_source.html#l00277">uves_print_cpl_frame()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l01909">uves_initialize()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5e8553a2dcbbfe43fc15e21e4f54c381"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_print_cpl_frame </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_frame * </td>
-          <td class="paramname"><em>f</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print a frame. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">f</td><td>Frame to print </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff OK.</dd></dl>
-<p>This function prints a CPL frame. </p>
-
-<p>Definition at line <a class="el" href="uves__dump_8c_source.html#l00277">277</a> of file <a class="el" href="uves__dump_8c_source.html">uves_dump.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__dump_8c_source.html#l00334">uves_tostring_cpl_frame_group()</a>, <a class="el" href="uves__dump_8c_source.html#l00355">uves_tostring_cpl_frame_level()</a>, and <a class="el" href="uves__dump_8c_source.html#l00314">uves_tostring_cpl_frame_type()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__dump_8c_source.html#l00235">uves_print_cpl_frameset()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7b4de02190abecc763b7be5c85e89b6e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_tostring_cpl_frame_type </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frame_type </td>
-          <td class="paramname"><em>ft</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Convert a frame type to a string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ft</td><td>Frame type to convert </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A textual representation of <em>ft</em>. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__dump_8c_source.html#l00314">314</a> of file <a class="el" href="uves__dump_8c_source.html">uves_dump.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__dump_8c_source.html#l00277">uves_print_cpl_frame()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga762dd0a18ecc4b13ebcc9a8aa5be5be9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_tostring_cpl_frame_group </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frame_group </td>
-          <td class="paramname"><em>fg</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Convert a frame group to a string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">fg</td><td>Frame group to convert </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A textual representation of <em>fg</em>. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__dump_8c_source.html#l00334">334</a> of file <a class="el" href="uves__dump_8c_source.html">uves_dump.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__dump_8c_source.html#l00277">uves_print_cpl_frame()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga643a38c444a34da5266bed60ca817ebb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_tostring_cpl_frame_level </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frame_level </td>
-          <td class="paramname"><em>fl</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Convert a frame level to a string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">fl</td><td>Frame level to convert </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A textual representation of <em>fl</em>. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__dump_8c_source.html#l00355">355</a> of file <a class="el" href="uves__dump_8c_source.html">uves_dump.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__dump_8c_source.html#l00277">uves_print_cpl_frame()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga55b54db59732e986ca4e9c93cc6af69d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_tostring_cpl_type </td>
-          <td>(</td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>t</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Convert a CPL type to a string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">t</td><td>Type to convert </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A textual representation of <em>t</em>. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__dump_8c_source.html#l00377">377</a> of file <a class="el" href="uves__dump_8c_source.html">uves_dump.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l00698">convert_to_history()</a>, <a class="el" href="uves__wavecal__search_8c_source.html#l00426">detect_lines()</a>, <a class="el" href="uves__utils__cpl_8c_source.html#l00516">filter_median()</a>, <a class="el" href="flames__midas__def_8c_source.html#l03271">flames_midas_scdwri()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02506">flames_midas_scfget()</a>, <a class="el" href="flames__midas__def_8c_s [...]
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__error.html b/html/group__uves__error.html
deleted file mode 100644
index 0d51898..0000000
--- a/html/group__uves__error.html
+++ /dev/null
@@ -1,517 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Error handling</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#define-members">Macros</a>  </div>
-  <div class="headertitle">
-<div class="title">Error handling</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
-Macros</h2></td></tr>
-<tr class="memitem:gac6cb8562d0764cfd2826e0f4f2d34cc2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac6cb8562d0764cfd2826e0f4f2d34cc2"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>assure</b>(BOOL, CODE,...)   irplib_error_assure(BOOL, CODE, (__VA_ARGS__), goto cleanup)</td></tr>
-<tr class="memitem:ga4885b4eef4da182a79064b4a9d91a595"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>(BOOL, CODE)   irplib_error_assure(BOOL, CODE, (" "), goto cleanup)</td></tr>
-<tr class="memitem:ga48d49e1d1eb218bc52176990079a0199"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(PTR)</td></tr>
-<tr class="memitem:gad639cd191162e80c9c5793ec5740962e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><b>ck0</b>(IEXP,...)</td></tr>
-<tr class="memitem:ga1d9cf6d2c114455090597b944f9db58e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga1d9cf6d2c114455090597b944f9db58e"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>ck0_nomsg</b>(IEXP)   ck0(IEXP," ")</td></tr>
-<tr class="memitem:ga958b5e0e6ba3332708f8197759a4692c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><b>cknull</b>(NULLEXP,...)</td></tr>
-<tr class="memitem:ga3258959709414833c63cd6aa06a45d7b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3258959709414833c63cd6aa06a45d7b"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>cknull_nomsg</b>(NULLEXP)   cknull(NULLEXP," ")</td></tr>
-<tr class="memitem:gaf6675f02f69f665c37ac92834a60315c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(CMD,...)</td></tr>
-<tr class="memitem:ga764ef7f937319b1b5a721776be3c2847"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(CMD)   <a class="el" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(CMD, " ")</td></tr>
-<tr class="memitem:ga91c7dd70a75c1387ea05a7ae83002067"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(BOOL,...)</td></tr>
-<tr class="memitem:ga83a764c3fb354fc9eb203966de6c6cc5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>()   irplib_error_reset()</td></tr>
-<tr class="memitem:ga7e6bb359a87117dfc0e2c38d9f5d0108"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__error.html#ga7e6bb359a87117dfc0e2c38d9f5d0108">uves_error_dump</a>()   irplib_error_dump(CPL_MSG_ERROR, CPL_MSG_ERROR)</td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>Warning: this documentation is outdated. Please refer to the documentation of the error handler in IRPLIB.</p>
-<p>This error handling module extends CPL's error handler by adding error tracing and automatic memory deallocation in case of an error. Like in CPL the current error state is indicated by the <code>cpl_error_code</code> (returned by the function <code>cpl_error_get_code()</code> ).</p>
-<p>The error tracing makes it possible to see where (source file, function name, line number) an error first occured, as well as the sequence of function calls preceding the error. A typical output looks like: </p>
-<div class="fragment"><div class="line">   An error occured, dumping error trace:</div>
-<div class="line">   </div>
-<div class="line">   Wavelength calibration did not converge. After 13 iterations the RMS was </div>
-<div class="line">   0.300812 pixels. Try to improve the initial guess solution (The iterative</div>
-<div class="line">   process did not converge)</div>
-<div class="line">     in [3]<a class="code" href="group__uves__wavecal.html#gaefff8994a1bf3be10c46012cff86ef04" title="Obtain final dispersion relation.">uves_wavecal_identify</a>() at <a class="code" href="group__uves__wavecal.html#gaefff8994a1bf3be10c46012cff86ef04" title="Obtain final dispersion relation.">uves_wavecal_identify</a>.c :101</div>
-<div class="line">    </div>
-<div class="line">   Could not calibrate orders</div>
-<div class="line">     in [2]uves_wavecal_process_chip() at uves_wavecal.c  :426</div>
-<div class="line">     </div>
-<div class="line">   Wavelength calibration failed</div>
-<div class="line">     in [1]uves_wavecal() at uves_wavecal.c  :679</div>
-</div><!-- fragment --><p>However, the main motivation of this extension is to simplify the error checking and handling. A single line of source code</p>
-<div class="fragment"><div class="line">   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dispersion_relation = </div>
-<div class="line">   <a class="code" href="group__uves__wavecal.html#gaefff8994a1bf3be10c46012cff86ef04" title="Obtain final dispersion relation.">uves_wavecal_identify</a>(linetable[window-1],</div>
-<div class="line">                         line_refer,</div>
-<div class="line">             initial_dispersion, </div>
-<div class="line">             WAVECAL_MODE, DEGREE, TOLERANCE, ALPHA, MAXERROR),</div>
-<div class="line">           <span class="stringliteral">"Could not calibrate orders"</span>);</div>
-</div><!-- fragment --><p>has the same effect as</p>
-<div class="fragment"><div class="line">   <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line">      cpl_msg_error(__func__, <span class="stringliteral">"An unexpected error (%s) has occurred in %s() at %-15s :%-3d"</span>,</div>
-<div class="line">                           cpl_error_get_message(),</div>
-<div class="line">                           __func__,</div>
-<div class="line">                           __FILE__,</div>
-<div class="line">                           __LINE__);</div>
-<div class="line">      uves_free_image(&spectrum);</div>
-<div class="line">      uves_free_image(&cropped_image);</div>
-<div class="line">      uves_free_image(&debug_image);</div>
-<div class="line">      uves_free_cpl(&relative_order);</div>
-<div class="line">      polynomial_delete(&initial_dispersion);</div>
-<div class="line">      polynomial_delete(&dispersion_relation);</div>
-<div class="line">      <span class="keywordflow">return</span> NULL;</div>
-<div class="line">   }</div>
-<div class="line"></div>
-<div class="line">   dispersion_relation = </div>
-<div class="line">   <a class="code" href="group__uves__wavecal.html#gaefff8994a1bf3be10c46012cff86ef04" title="Obtain final dispersion relation.">uves_wavecal_identify</a>(linetable[window-1],</div>
-<div class="line">                         line_refer,</div>
-<div class="line">             initial_dispersion, </div>
-<div class="line">             WAVECAL_MODE, DEGREE, TOLERANCE, ALPHA, MAXERROR);</div>
-<div class="line"></div>
-<div class="line">   <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line">      cpl_msg_error(__func__, <span class="stringliteral">"ERROR: Could not calibrate orders "</span></div>
-<div class="line">                              <span class="stringliteral">"(%s) in %s() at %-15s :%-3d"</span>,</div>
-<div class="line">                           cpl_error_get_message(),</div>
-<div class="line">                           __func__,</div>
-<div class="line">                           __FILE__,</div>
-<div class="line">                           __LINE__);</div>
-<div class="line">      uves_free_image(&spectrum);</div>
-<div class="line">      uves_free_image(&cropped_image);</div>
-<div class="line">      uves_free_image(&debug_image);</div>
-<div class="line">      uves_free_cpl(&relative_order);</div>
-<div class="line">      polynomial_delete(&initial_dispersion);</div>
-<div class="line">      polynomial_delete(&dispersion_relation);</div>
-<div class="line">      <span class="keywordflow">return</span> NULL;</div>
-<div class="line">   }</div>
-</div><!-- fragment --><p>This of course makes the source code more compact and hence easier to read (and maintain) and allows for intensive error checking with minimal effort.</p>
-<p>Additionally, editing the <code><a class="el" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check()</a></code> macro (described below) allows for debugging/tracing information at every function entry and exit.</p>
-<dl class="section user"><dt>Usage</dt><dd></dd></dl>
-<p>New errors are set with the macros <code>assure()</code> and <code><a class="el" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure()</a></code>, and sub-functions that might set a <code>cpl_error_code</code> are checked using the macros <code><a class="el" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check()</a></code> and <code>pcheck()</code> . The function <code>_uves_error_set()</code> should never be called directly. These macros check [...]
-<p>At the very end of a recipe the error state should be checked and <code><a class="el" href="group__uves__error.html#ga7e6bb359a87117dfc0e2c38d9f5d0108">uves_error_dump()</a></code> called on error: </p>
-<div class="fragment"><div class="line">   <span class="keywordflow">if</span> ( cpl_error_get_code() != CPL_ERROR_NONE )</div>
-<div class="line">   {</div>
-<div class="line">      <a class="code" href="group__uves__error.html#ga7e6bb359a87117dfc0e2c38d9f5d0108">uves_error_dump</a>(__func__);</div>
-<div class="line">   }</div>
-</div><!-- fragment --><p>When using this scheme:</p>
-<ul>
-<li>There should be only one <code>return</code> statement per function (after the <code>cleanup</code> label).</li>
-</ul>
-<ul>
-<li>All pointers to dynamically allocated memory must be declared at the beginning of a function.</li>
-</ul>
-<ul>
-<li>Pointers must be initialized to NULL (which is a good idea anyway).</li>
-</ul>
-<ul>
-<li>Pointers must be set to NULL when they are not used (which is a good idea anyway).</li>
-</ul>
-<p>Consider the example</p>
-<div class="fragment"><div class="line">   <span class="keywordtype">int</span> function_name(...)</div>
-<div class="line">   {</div>
-<div class="line">      cpl_image * image = NULL;</div>
-<div class="line">      cpl_image * another_image;  / *  Wrong: Pointer must be initialized to NULL. On cleanup, </div>
-<div class="line">                                              cpl_image_delete() will try to deallocate whatever</div>
-<div class="line">                                              this pointer points to. If the pointer is NULL,</div>
-<div class="line">                                              the deallocator function will do nothing.  * /</div>
-<div class="line">      :</div>
-<div class="line">      :</div>
-<div class="line"></div>
-<div class="line">      {</div>
-<div class="line">         cpl_object * <span class="keywordtype">object</span> = NULL;   / *  Wrong: Pointer must be declared at </div>
-<div class="line">                                               the beginning of a <span class="keyword">function</span>.</div>
-<div class="line">                                                   This <span class="keywordtype">object</span> will not be deallocated, </div>
-<div class="line">                           <span class="keywordflow">if</span> the following</div>
-<div class="line">                                                   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>() fails. * /</div>
-<div class="line">     </div>
-<div class="line">         <span class="keywordtype">object</span> = cpl_object_new();</div>
-<div class="line"></div>
-<div class="line">         :</div>
-<div class="line">         :</div>
-<div class="line">              </div>
-<div class="line">         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ... );</div>
-<div class="line"></div>
-<div class="line">         :</div>
-<div class="line">         :</div>
-<div class="line"></div>
-<div class="line">         cpl_object_delete(<span class="keywordtype">object</span>);    / *  Wrong: The pointer must be set to NULL after</div>
-<div class="line">                                               deallocation, or</div>
-<div class="line">                                                   the following assure() might cause the</div>
-<div class="line">                           already deallocated <span class="keywordtype">object</span></div>
-<div class="line">                                                   to be deallocated again.  * /</div>
-<div class="line">         :</div>
-<div class="line">         :</div>
-<div class="line">     </div>
-<div class="line">         assure( ... );</div>
-<div class="line"></div>
-<div class="line">         return 7;                     / *  Wrong: Only one exit point per function. * /</div>
-<div class="line"></div>
-<div class="line">      }</div>
-<div class="line">      </div>
-<div class="line">      :</div>
-<div class="line">      :</div>
-<div class="line"></div>
-<div class="line">    cleanup:</div>
-<div class="line">      cpl_image_delete(image);</div>
-<div class="line">      cpl_image_delete(another_image);</div>
-<div class="line"></div>
-<div class="line">      return 7;</div>
-<div class="line">   }</div>
-</div><!-- fragment --><p>This is easily fixed:</p>
-<div class="fragment"><div class="line">   <span class="keywordtype">int</span> function_name(...)</div>
-<div class="line">   {</div>
-<div class="line">      cpl_image  * image         = NULL;  / *  All pointers are declared at the beginning  * /</div>
-<div class="line">      cpl_image  * another_image = NULL;  / *  of the <span class="keyword">function</span> an initialized to NULL.     * /</div>
-<div class="line">      cpl_object * <span class="keywordtype">object</span>        = NULL;</div>
-<div class="line"></div>
-<div class="line">      :</div>
-<div class="line">      :</div>
-<div class="line"></div>
-<div class="line">      {</div>
-<div class="line"></div>
-<div class="line">         <span class="keywordtype">object</span> = cpl_object_new();</div>
-<div class="line"></div>
-<div class="line">         :</div>
-<div class="line">         :</div>
-<div class="line">              </div>
-<div class="line">         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ... );</div>
-<div class="line"></div>
-<div class="line">         :</div>
-<div class="line">         :</div>
-<div class="line"></div>
-<div class="line">         uves_free_object(&<span class="keywordtype">object</span>);            / *  The <span class="keywordtype">object</span> is deallocated </div>
-<div class="line">                                                and the pointer <span class="keyword">set</span> to NULL.  * /</div>
-<div class="line"></div>
-<div class="line">         :</div>
-<div class="line">         :</div>
-<div class="line">     </div>
-<div class="line">         assure( ... );</div>
-<div class="line"></div>
-<div class="line">      }</div>
-<div class="line">      </div>
-<div class="line">      :</div>
-<div class="line">      :</div>
-<div class="line"></div>
-<div class="line">    cleanup:</div>
-<div class="line">      uves_free_image (&image);                / *  All objects are deallocated here.  * /</div>
-<div class="line">      uves_free_image (&another_image);</div>
-<div class="line">      uves_free_object(&<span class="keywordtype">object</span>);</div>
-<div class="line"></div>
-<div class="line">      <span class="keywordflow">return</span> 7;                           / *  This is the only exit point of the <span class="keyword">function</span>. * /</div>
-<div class="line">   }</div>
-</div><!-- fragment --><p>(Note that <code>uves_free_image()</code> et al. can be used instead of <code>cpl_image_delete()</code> et al. as a way to ensure that a pointer is always set to NULL after deallocation).</p>
-<dl class="section user"><dt>Recovering from an error</dt><dd></dd></dl>
-<p>To recover from an error, call <code><a class="el" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset()</a></code>, not <code>cpl_error_reset()</code>. Example:</p>
-<div class="fragment"><div class="line">   n = cpl_table_get_nrow(t);</div>
-<div class="line">   <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NULL_INPUT)  / *  This error code </div>
-<div class="line">                                                           is <span class="keyword">set</span> <span class="keywordflow">if</span> <span class="charliteral">'t'</span> is NULL.  * /</div>
-<div class="line">   {</div>
-<div class="line">      / *  Recover from <span class="keyword">this</span> error  * /</div>
-<div class="line"></div>
-<div class="line">      <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line">      n = -3;</div>
-<div class="line">   }</div>
-<div class="line">   <span class="keywordflow">else</span>  / *  Also <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> <span class="keywordflow">for</span> unexpected errors  * /</div>
-<div class="line">   {</div>
-<div class="line">      assure( cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(), </div>
-<div class="line">              <span class="stringliteral">"Error reading table size"</span>);</div>
-<div class="line">   }</div>
-</div><!-- fragment --><p>However, error recovery is usually best avoided, and the functionality above is better written as:</p>
-<div class="fragment"><div class="line">   <span class="keywordflow">if</span> (t != NULL)</div>
-<div class="line">   {</div>
-<div class="line">      <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( n = cpl_table_get_nrow(t), <span class="stringliteral">"Error reading table size"</span>);</div>
-<div class="line">   }</div>
-<div class="line">   <span class="keywordflow">else</span></div>
-<div class="line">   {</div>
-<div class="line">      n = -3;</div>
-<div class="line">   }</div>
-</div><!-- fragment --> <hr/><h2>Macro Definition Documentation</h2>
-<a class="anchor" id="ga4885b4eef4da182a79064b4a9d91a595"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define assure_nomsg</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname">BOOL, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"> </td>
-          <td class="paramname">CODE </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td>   irplib_error_assure(BOOL, CODE, (" "), goto cleanup)</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Condition </p>
-
-<p>Definition at line <a class="el" href="uves__error_8h_source.html#l00177">177</a> of file <a class="el" href="uves__error_8h_source.html">uves_error.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__test__simulate_8c_source.html#l00218">create_line_table()</a>, <a class="el" href="uves__test__simulate_8c_source.html#l00110">create_order_table()</a>, <a class="el" href="flames__midas__def_8c_source.html#l03924">flames_midas_sccadd()</a>, <a class="el" href="flames__midas__def_8c_source.html#l03892">flames_midas_scccre()</a>, <a class="el" href="flames__midas__def_8c_source.html#l03757">flames_midas_sccfnd()</a>, <a class="el" href="flames__m [...]
-
-</div>
-</div>
-<a class="anchor" id="ga48d49e1d1eb218bc52176990079a0199"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define assure_mem</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname">PTR</td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<b>Value:</b><div class="fragment"><div class="line">irplib_error_assure((PTR) != NULL, CPL_ERROR_ILLEGAL_OUTPUT, \</div>
-<div class="line">  (<span class="stringliteral">"Memory allocation failure!"</span>), <span class="keywordflow">goto</span> cleanup)</div>
-</div><!-- fragment --><p>Memory allocation </p>
-
-<p>Definition at line <a class="el" href="uves__error_8h_source.html#l00181">181</a> of file <a class="el" href="uves__error_8h_source.html">uves_error.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l01127">calibrate_global()</a>, <a class="el" href="uves__utils__cpl_8c_source.html#l00516">filter_median()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02972">flames_midas_scdrdi()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01440">get_descr_info()</a>, <a class="el" href="uves__wavecal__identify_8c_source.html#l00762">identify_lines()</a>, <a class="el" href="uves__extract_8c_sour [...]
-
-</div>
-</div>
-<a class="anchor" id="gad639cd191162e80c9c5793ec5740962e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define ck0</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname">IEXP, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<b>Value:</b><div class="fragment"><div class="line">irplib_error_assure(IEXP == 0, CPL_ERROR_UNSPECIFIED, \</div>
-<div class="line">  (__VA_ARGS__), <span class="keywordflow">goto</span> cleanup)</div>
-</div><!-- fragment -->
-<p>Definition at line <a class="el" href="uves__error_8h_source.html#l00184">184</a> of file <a class="el" href="uves__error_8h_source.html">uves_error.h</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga958b5e0e6ba3332708f8197759a4692c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define cknull</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname">NULLEXP, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<b>Value:</b><div class="fragment"><div class="line">irplib_error_assure((NULLEXP) != NULL, \</div>
-<div class="line">  CPL_ERROR_UNSPECIFIED, (__VA_ARGS__), <span class="keywordflow">goto</span> cleanup)</div>
-</div><!-- fragment -->
-<p>Definition at line <a class="el" href="uves__error_8h_source.html#l00190">190</a> of file <a class="el" href="uves__error_8h_source.html">uves_error.h</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf6675f02f69f665c37ac92834a60315c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define check</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname">CMD, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<b>Value:</b><div class="fragment"><div class="line">irplib_error_assure((<a class="code" href="group__uves__msg.html#ga5d5259164b86fe1f3d99d4a2d3f3f68c" title="Decrease message volume.">uves_msg_softer</a>(), (CMD), <a class="code" href="group__uves__msg.html#gac46059c046c639441112609a0311752e" title="Increase message volume.">uves_msg_louder</a>(),      \</div>
-<div class="line">              cpl_error_get_code() == CPL_ERROR_NONE),       \</div>
-<div class="line">                       cpl_error_get_code(), (__VA_ARGS__), <span class="keywordflow">goto</span> cleanup)</div>
-</div><!-- fragment --><p>cpl_error_code + message </p>
-
-<p>Definition at line <a class="el" href="uves__error_8h_source.html#l00198">198</a> of file <a class="el" href="uves__error_8h_source.html">uves_error.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__hough_8c_source.html#l00837">calculate_spacing()</a>, <a class="el" href="uves__wavecal__identify_8c_source.html#l01127">calibrate_global()</a>, <a class="el" href="uves__wavecal__identify_8c_source.html#l00613">compute_lambda()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01316">create_descr()</a>, <a class="el" href="uves__orderpos__hough_8c_source.html#l00966">delete_peak()</a>, <a class="el" href="uves__orderpos__hou [...]
-
-</div>
-</div>
-<a class="anchor" id="ga764ef7f937319b1b5a721776be3c2847"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define check_nomsg</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname">CMD</td><td>)</td>
-          <td>   <a class="el" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(CMD, " ")</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>cpl_error_code </p>
-
-<p>Definition at line <a class="el" href="uves__error_8h_source.html#l00204">204</a> of file <a class="el" href="uves__error_8h_source.html">uves_error.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l01127">calibrate_global()</a>, <a class="el" href="uves__dfs-test_8c_source.html#l00394">convert_midas_array()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00698">convert_to_history()</a>, <a class="el" href="uves__test__simulate_8c_source.html#l00218">create_line_table()</a>, <a class="el" href="uves__test__simulate_8c_source.html#l00110">create_order_table()</a>, <a class="el" href="uves__extrac [...]
-
-</div>
-</div>
-<a class="anchor" id="ga91c7dd70a75c1387ea05a7ae83002067"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define passure</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname">BOOL, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<b>Value:</b><div class="fragment"><div class="line">irplib_error_assure(BOOL, CPL_ERROR_UNSPECIFIED,                       \</div>
-<div class="line">                     (<span class="stringliteral">"Internal error. Please report to "</span>                \</div>
-<div class="line">                      PACKAGE_BUGREPORT <span class="stringliteral">" "</span> __VA_ARGS__), <span class="keywordflow">goto</span> cleanup)</div>
-</div><!-- fragment --><p>assertion + message </p>
-
-<p>Definition at line <a class="el" href="uves__error_8h_source.html#l00207">207</a> of file <a class="el" href="uves__error_8h_source.html">uves_error.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l01127">calibrate_global()</a>, <a class="el" href="uves__wavecal__identify_8c_source.html#l00613">compute_lambda()</a>, <a class="el" href="uves__orderpos__follow_8c_source.html#l00948">count_orders()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01316">create_descr()</a>, <a class="el" href="uves__orderpos__hough_8c_source.html#l00398">detect_lines()</a>, <a class="el" href="uves__extract_8c_sourc [...]
-
-</div>
-</div>
-<a class="anchor" id="ga83a764c3fb354fc9eb203966de6c6cc5"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define uves_error_reset</td>
-          <td>(</td>
-          <td class="paramname"></td><td>)</td>
-          <td>   irplib_error_reset()</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>reset </p>
-
-<p>Definition at line <a class="el" href="uves__error_8h_source.html#l00215">215</a> of file <a class="el" href="uves__error_8h_source.html">uves_error.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__dfs-test_8c_source.html#l00394">convert_midas_array()</a>, <a class="el" href="uves__orderpos__follow_8c_source.html#l01600">find_centroid()</a>, <a class="el" href="uves__extract_8c_source.html#l05145">opt_get_order_width()</a>, <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>, <a class="el" href="uves__extract_8c_source.html#l03985">opt_measure_profile_order()</a>, <a class="el" href="uves__extract_8c_source.h [...]
-
-</div>
-</div>
-<a class="anchor" id="ga7e6bb359a87117dfc0e2c38d9f5d0108"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define uves_error_dump</td>
-          <td>(</td>
-          <td class="paramname"></td><td>)</td>
-          <td>   irplib_error_dump(CPL_MSG_ERROR, CPL_MSG_ERROR)</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>dump </p>
-
-<p>Definition at line <a class="el" href="uves__error_8h_source.html#l00219">219</a> of file <a class="el" href="uves__error_8h_source.html">uves_error.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal-test_8c_source.html#l00155">main()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__extract.html b/html/group__uves__extract.html
deleted file mode 100644
index 81c9bed..0000000
--- a/html/group__uves__extract.html
+++ /dev/null
@@ -1,2071 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Substep: Extraction</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Substep: Extraction</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga658f6a76a3bcf324623828302b2b1205"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#ga658f6a76a3bcf324623828302b2b1205">extract_order_simple</a> (const cpl_image *image, const cpl_image *image_noise, const <a class="el" href="struct__polynomial.html">polynomial</a> *order_locations, int order, int minorder, int spectrum_row, double offset, double slit_length,  [...]
-<tr class="memdesc:ga658f6a76a3bcf324623828302b2b1205"><td class="mdescLeft"> </td><td class="mdescRight">Extract one order using linear, average or weighted extraction.  <a href="#ga658f6a76a3bcf324623828302b2b1205"></a><br/></td></tr>
-<tr class="memitem:gaae8e2ffac38d164c6f35df18166ee0d2"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#gaae8e2ffac38d164c6f35df18166ee0d2">area_above_line</a> (int y, double left, double right)</td></tr>
-<tr class="memdesc:gaae8e2ffac38d164c6f35df18166ee0d2"><td class="mdescLeft"> </td><td class="mdescRight">Calculate the area of a pixel that is above a line.  <a href="#gaae8e2ffac38d164c6f35df18166ee0d2"></a><br/></td></tr>
-<tr class="memitem:gade9f76d1dc7526cbd212c04a74255b17"><td class="memItemLeft" align="right" valign="top">static cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#gade9f76d1dc7526cbd212c04a74255b17">opt_define_sky</a> (const cpl_image *image, const cpl_image *weights, uves_iterate_position *pos)</td></tr>
-<tr class="memdesc:gade9f76d1dc7526cbd212c04a74255b17"><td class="mdescLeft"> </td><td class="mdescRight">Define sky/object rows.  <a href="#gade9f76d1dc7526cbd212c04a74255b17"></a><br/></td></tr>
-<tr class="memitem:ga1b8d6c2489fbc99e080dcdcc1dff5f1a"><td class="memItemLeft" align="right" valign="top">static cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#ga1b8d6c2489fbc99e080dcdcc1dff5f1a">opt_extract_sky</a> (const cpl_image *image, const cpl_image *image_noise, const cpl_image *weights, uves_iterate_position *pos, cpl_image *sky_spectrum, cpl_image *sky_spectrum_noise)</td></tr>
-<tr class="memdesc:ga1b8d6c2489fbc99e080dcdcc1dff5f1a"><td class="mdescLeft"> </td><td class="mdescRight">Extract and subtract sky.  <a href="#ga1b8d6c2489fbc99e080dcdcc1dff5f1a"></a><br/></td></tr>
-<tr class="memitem:ga0e232bc2628165c5e6aed6c3f12443c2"><td class="memItemLeft" align="right" valign="top">static cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#ga0e232bc2628165c5e6aed6c3f12443c2">opt_subtract_sky</a> (const cpl_image *image, const cpl_image *image_noise, const cpl_image *weights, uves_iterate_position *pos, const cpl_table *sky_map, cpl_image *sky_spectrum, cpl_image *sky_spectrum_noise)</td></tr>
-<tr class="memdesc:ga0e232bc2628165c5e6aed6c3f12443c2"><td class="mdescLeft"> </td><td class="mdescRight">Measure and subtract sky.  <a href="#ga0e232bc2628165c5e6aed6c3f12443c2"></a><br/></td></tr>
-<tr class="memitem:gac4b249fd5e1d761d4d628fc58360cd59"><td class="memItemLeft" align="right" valign="top">static cpl_table ** </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#gac4b249fd5e1d761d4d628fc58360cd59">opt_sample_spatial_profile</a> (const cpl_image *image, const cpl_image *weights, uves_iterate_position *pos, int stepx, int sampling_factor, int *nbins)</td></tr>
-<tr class="memdesc:gac4b249fd5e1d761d4d628fc58360cd59"><td class="mdescLeft"> </td><td class="mdescRight">Sample spatial profile.  <a href="#gac4b249fd5e1d761d4d628fc58360cd59"></a><br/></td></tr>
-<tr class="memitem:gae3e0e629c167ff2012d0f200c347d1dc"><td class="memItemLeft" align="right" valign="top">static uves_extract_profile * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#gae3e0e629c167ff2012d0f200c347d1dc">opt_measure_profile</a> (const cpl_image *image, const cpl_image *image_noise, const cpl_image *weights, uves_iterate_position *pos, int chunk, int sampling_factor, int(*f)(const double x[], const double a[], double *result [...]
-<tr class="memdesc:gae3e0e629c167ff2012d0f200c347d1dc"><td class="mdescLeft"> </td><td class="mdescRight">Measure spatial profile (all orders)  <a href="#gae3e0e629c167ff2012d0f200c347d1dc"></a><br/></td></tr>
-<tr class="memitem:gad07884e88093f0e0ee15519a30eb8d3f"><td class="memItemLeft" align="right" valign="top">static cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#gad07884e88093f0e0ee15519a30eb8d3f">opt_measure_profile_order</a> (const cpl_image *image, const cpl_image *image_noise, const cpl_binary *image_bpm, uves_iterate_position *pos, int chunk, int(*f)(const double x[], const double a[], double *result), int(*dfda)(const dou [...]
-<tr class="memdesc:gad07884e88093f0e0ee15519a30eb8d3f"><td class="mdescLeft"> </td><td class="mdescRight">Measure spatial profile (analytical)  <a href="#gad07884e88093f0e0ee15519a30eb8d3f"></a><br/></td></tr>
-<tr class="memitem:gaded8ab18ec33bfaedbf404da6621c099"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#gaded8ab18ec33bfaedbf404da6621c099">revise_noise</a> (cpl_image *image_noise, const cpl_binary *image_bpm, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *image_header, uves_iterate_position *pos, const cpl_im [...]
-<tr class="memdesc:gaded8ab18ec33bfaedbf404da6621c099"><td class="mdescLeft"> </td><td class="mdescRight">Refine error bars.  <a href="#gaded8ab18ec33bfaedbf404da6621c099"></a><br/></td></tr>
-<tr class="memitem:ga55de773dfa081016fda249a7cb7878de"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#ga55de773dfa081016fda249a7cb7878de">opt_extract</a> (cpl_image *image, const cpl_image *image_noise, uves_iterate_position *pos, const uves_extract_profile *profile, bool optimal_extract_sky, double kappa, cpl_table *blemish_mask, cpl_table *cosmic_mask, int *cr_row, cpl_table  [...]
-<tr class="memdesc:ga55de773dfa081016fda249a7cb7878de"><td class="mdescLeft"> </td><td class="mdescRight">Optimally extract order using the given the profile.  <a href="#ga55de773dfa081016fda249a7cb7878de"></a><br/></td></tr>
-<tr class="memitem:ga95cd798921bdd0f4606d5dbb45d0dab7"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#ga95cd798921bdd0f4606d5dbb45d0dab7">opt_get_order_width</a> (const uves_iterate_position *pos)</td></tr>
-<tr class="memdesc:ga95cd798921bdd0f4606d5dbb45d0dab7"><td class="mdescLeft"> </td><td class="mdescRight">Get width of order.  <a href="#ga95cd798921bdd0f4606d5dbb45d0dab7"></a><br/></td></tr>
-<tr class="memitem:gaace2260dc82cd97c5a88753a26c00c39"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#gaace2260dc82cd97c5a88753a26c00c39">estimate_sn</a> (const cpl_image *image, const cpl_image *image_noise, uves_iterate_position *pos)</td></tr>
-<tr class="memdesc:gaace2260dc82cd97c5a88753a26c00c39"><td class="mdescLeft"> </td><td class="mdescRight">Estimate the S/N of the input frame.  <a href="#gaace2260dc82cd97c5a88753a26c00c39"></a><br/></td></tr>
-<tr class="memitem:ga72eb895e6062614f776c8519f13dfb5e"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#ga72eb895e6062614f776c8519f13dfb5e">opt_get_sky</a> (const double *image_data, const double *noise_data, const double *weights_data, uves_iterate_position *pos, const cpl_table *sky_map, double buffer_flux[], double buffer_noise[], double *sky_background_noise)</td></tr>
-<tr class="memdesc:ga72eb895e6062614f776c8519f13dfb5e"><td class="mdescLeft"> </td><td class="mdescRight">Measure sky level (median)  <a href="#ga72eb895e6062614f776c8519f13dfb5e"></a><br/></td></tr>
-<tr class="memitem:gaa6e6619285bc14f8d61ed59ec8266d6e"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#gaa6e6619285bc14f8d61ed59ec8266d6e">opt_get_noise_median</a> (const double *noise_data, const cpl_binary *image_bpm, uves_iterate_position *pos, double noise_buffer[])</td></tr>
-<tr class="memdesc:gaa6e6619285bc14f8d61ed59ec8266d6e"><td class="mdescLeft"> </td><td class="mdescRight">Measure median noise level of extraction bin.  <a href="#gaa6e6619285bc14f8d61ed59ec8266d6e"></a><br/></td></tr>
-<tr class="memitem:ga8f31c60f3e1e173ad20217652934480c"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#ga8f31c60f3e1e173ad20217652934480c">opt_get_flux_sky_variance</a> (const double *image_data, const double *noise_data, double *weights_data, uves_iterate_position *pos, const uves_extract_profile *profile, bool optimal_extract_sky, double median_noise, double *variance, doub [...]
-<tr class="memdesc:ga8f31c60f3e1e173ad20217652934480c"><td class="mdescLeft"> </td><td class="mdescRight">Get flux, sky and variances of current bin.  <a href="#ga8f31c60f3e1e173ad20217652934480c"></a><br/></td></tr>
-<tr class="memitem:ga6ca277a820936e41b96d85c6bf0ea21b"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#ga6ca277a820936e41b96d85c6bf0ea21b">opt_reject_outlier</a> (const double *image_data, const double *noise_data, cpl_binary *image_bpm, double *weights_data, uves_iterate_position *pos, const uves_extract_profile *profile, double kappa, double flux, double sky_background, doubl [...]
-<tr class="memdesc:ga6ca277a820936e41b96d85c6bf0ea21b"><td class="mdescLeft"> </td><td class="mdescRight">Find and reject outlier pixel.  <a href="#ga6ca277a820936e41b96d85c6bf0ea21b"></a><br/></td></tr>
-<tr class="memitem:ga74a27fdb394ea3be89fdd31f6c124da3"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#ga74a27fdb394ea3be89fdd31f6c124da3">opt_get_redchisq</a> (const uves_extract_profile *profile, const uves_iterate_position *pos)</td></tr>
-<tr class="memdesc:ga74a27fdb394ea3be89fdd31f6c124da3"><td class="mdescLeft"> </td><td class="mdescRight">Get reduced chi^2 for current bin.  <a href="#ga74a27fdb394ea3be89fdd31f6c124da3"></a><br/></td></tr>
-<tr class="memitem:gac3d98948d7bf5772674a0a6042b82bf2"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#gac3d98948d7bf5772674a0a6042b82bf2">repeat_orderdef</a> (const cpl_image *image, const cpl_image *image_noise, const <a class="el" href="struct__polynomial.html">polynomial</a> *guess_locations, int minorder, int maxorde [...]
-<tr class="memdesc:gac3d98948d7bf5772674a0a6042b82bf2"><td class="mdescLeft"> </td><td class="mdescRight">Refine order definition using the science frame.  <a href="#gac3d98948d7bf5772674a0a6042b82bf2"></a><br/></td></tr>
-<tr class="memitem:gacb90d6e405582e2d261bc5c117a1c20f"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#gacb90d6e405582e2d261bc5c117a1c20f">detect_ripples</a> (const cpl_image *spectrum, const uves_iterate_position *pos, double sn)</td></tr>
-<tr class="memdesc:gacb90d6e405582e2d261bc5c117a1c20f"><td class="mdescLeft"> </td><td class="mdescRight">Try to detect and warn about any optimal extraction ripples (happening if oversampling factor is too small)  <a href="#gacb90d6e405582e2d261bc5c117a1c20f"></a><br/></td></tr>
-<tr class="memitem:ga99751e637d04bc19090446f3a15974d0"><td class="memItemLeft" align="right" valign="top">cpl_parameterlist * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#ga99751e637d04bc19090446f3a15974d0">uves_extract_define_parameters</a> (void)</td></tr>
-<tr class="memdesc:ga99751e637d04bc19090446f3a15974d0"><td class="mdescLeft"> </td><td class="mdescRight">Define recipe parameters used for extraction.  <a href="#ga99751e637d04bc19090446f3a15974d0"></a><br/></td></tr>
-<tr class="memitem:gaa6ae7afeaf5c4a71eb399ffa29a828f7"><td class="memItemLeft" align="right" valign="top">extract_method </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#gaa6ae7afeaf5c4a71eb399ffa29a828f7">uves_get_extract_method</a> (const cpl_parameterlist *parameters, const char *context, const char *subcontext)</td></tr>
-<tr class="memdesc:gaa6ae7afeaf5c4a71eb399ffa29a828f7"><td class="mdescLeft"> </td><td class="mdescRight">Read extraction method from parameter list.  <a href="#gaa6ae7afeaf5c4a71eb399ffa29a828f7"></a><br/></td></tr>
-<tr class="memitem:ga724649dabb1df68c512fdd9e99b36f0d"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract.html#ga724649dabb1df68c512fdd9e99b36f0d">uves_extract</a> (cpl_image *image, cpl_image *image_noise, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *image_header, const cpl_table *ordertable, const <a class="el" hr [...]
-<tr class="memdesc:ga724649dabb1df68c512fdd9e99b36f0d"><td class="mdescLeft"> </td><td class="mdescRight">Extract a spectrum.  <a href="#ga724649dabb1df68c512fdd9e99b36f0d"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module implements simple (i.e. linear, average, weighted) and optimal extraction of echelle spectra. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga658f6a76a3bcf324623828302b2b1205"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int extract_order_simple </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>minorder</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>spectrum_row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>offset</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>slit_length</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">extract_method </td>
-          <td class="paramname"><em>method</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>weights</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>extract_partial</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>spectrum_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_binary * </td>
-          <td class="paramname"><em>spectrum_badmap</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>info_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>sn</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Extract one order using linear, average or weighted extraction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The input image in (pixel,pixel)-space </td></tr>
-    <tr><td class="paramname">image_noise</td><td>The input image noise. If NULL, a constant noise level is assumed. </td></tr>
-    <tr><td class="paramname">order_locations</td><td>Bivariate polynomial defining the positions of the relative orders </td></tr>
-    <tr><td class="paramname">order</td><td>The relative order number </td></tr>
-    <tr><td class="paramname">minorder</td><td>The relative order number minimum </td></tr>
-    <tr><td class="paramname">spectrum_row</td><td>Row of spectrum to extract. This is often not, but might be, offset with a few rows from the relative order number. </td></tr>
-    <tr><td class="paramname">offset</td><td>Offset (in pixels) of slit </td></tr>
-    <tr><td class="paramname">slit_length</td><td>Length (in pixels) of area to extract </td></tr>
-    <tr><td class="paramname">method</td><td>The extraction method </td></tr>
-    <tr><td class="paramname">weights</td><td>Weight image used for weighted extraction. Must be non-NULL </td></tr>
-    <tr><td class="paramname">extract_partial</td><td>Flag indicating if an extraction bin which is partially outside the image should be extracted (true) or rejected (false) iff method is EXTRACT_WEIGHTED. </td></tr>
-    <tr><td class="paramname">spectrum</td><td>(output) The output spectrum </td></tr>
-    <tr><td class="paramname">spectrum_noise</td><td>(output) If non-NULL, the noise of the extracted spectrum is computed and returned through this parameter. Requires input noise image to be specified. </td></tr>
-    <tr><td class="paramname">spectrum_badmap</td><td>(output) Spectrum bad pixel map (un-extracted bins) </td></tr>
-    <tr><td class="paramname">info_tbl</td><td>(output) tabel with object position, fwhm </td></tr>
-    <tr><td class="paramname">sn</td><td>(output) signal-to-noise</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>number of bins extracted</dd></dl>
-<p>For linear and average extraction, the flux profile is interpolated in a way that conserves the total flux (refer to code for details). </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l01686">1686</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__extract_8c_source.html#l02084">area_above_line()</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaae8e2ffac38d164c6f35df18166ee0d2"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double area_above_line </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>left</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>right</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Calculate the area of a pixel that is above a line. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">y</td><td>Vertical center of the pixel </td></tr>
-    <tr><td class="paramname">left</td><td>Intersection of line and left pixel boundary (y-coordinate) </td></tr>
-    <tr><td class="paramname">right</td><td>Intersection of line and right pixel boundary (y-coordinate) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The area of the pixel that is above the line, or undefined on error</dd></dl>
-<p>The line slope must be between 0 and 1, otherwise an error is set.</p>
-<p>To extend this function to also work with negative line slopes, a few cases more cases must be handled (see code). The extraction algorithm itself doesn't depend on the slope being positive. </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l02084">2084</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l01686">extract_order_simple()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gade9f76d1dc7526cbd212c04a74255b17"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_table * opt_define_sky </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>weights</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Define sky/object rows. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The input image in (pixel,pixel)-space </td></tr>
-    <tr><td class="paramname">weights</td><td>Weight image (defines bad pixels) </td></tr>
-    <tr><td class="paramname">pos</td><td>image iterator </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Table where selected rows (bins) are the sky bins.</dd></dl>
-<p>The function</p>
-<ul>
-<li>Defines sky/object rows.</li>
-<li>Extracts+subtracts sky </li>
-</ul>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l02337">2337</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__extract_8c_source.html#l02444">opt_sample_spatial_profile()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l02288">opt_extract_sky()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1b8d6c2489fbc99e080dcdcc1dff5f1a"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_image * opt_extract_sky </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>weights</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>sky_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>sky_spectrum_noise</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Extract and subtract sky. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The input image in (pixel,pixel)-space </td></tr>
-    <tr><td class="paramname">image_noise</td><td>The input image noise. May not be NULL. </td></tr>
-    <tr><td class="paramname">weights</td><td>Bad pixels (from previous iterations) will not contribute to the extraction </td></tr>
-    <tr><td class="paramname">pos</td><td>image iterator </td></tr>
-    <tr><td class="paramname">sky_spectrum</td><td>(output) This image will contain the sky spectrum. </td></tr>
-    <tr><td class="paramname">sky_spectrum_noise</td><td>(output) This image will contain the sky spectrum noise. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>sky subtracted image</dd></dl>
-<p>The function</p>
-<ul>
-<li>Defines sky/object rows.</li>
-<li>Extracts+subtracts sky </li>
-</ul>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l02288">2288</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__extract_8c_source.html#l02337">opt_define_sky()</a>, <a class="el" href="uves__extract_8c_source.html#l02586">opt_subtract_sky()</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, and <a class="el" href="uves__msg_8h_source.html#l00105">uves_msg_low</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0e232bc2628165c5e6aed6c3f12443c2"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_image * opt_subtract_sky </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>weights</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>sky_map</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>sky_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>sky_spectrum_noise</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Measure and subtract sky. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The input image in (pixel,pixel)-space </td></tr>
-    <tr><td class="paramname">image_noise</td><td>Noise of input image </td></tr>
-    <tr><td class="paramname">weights</td><td>weight image </td></tr>
-    <tr><td class="paramname">pos</td><td>image iterator </td></tr>
-    <tr><td class="paramname">sky_map</td><td>Map of sky/object bins </td></tr>
-    <tr><td class="paramname">sky_spectrum</td><td>(output) The extracted sky </td></tr>
-    <tr><td class="paramname">sky_spectrum_noise</td><td>(output) The extracted sky error bars </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Sky subtracted image</dd></dl>
-<p>The errors of the sky-subtracted image are not propagated as the error bars of the sky are assumed to be small. (If needed, noise propagation would be straight-forward to implement because we already compute the error of the estimated sky)</p>
-<p>The sky subtracted image has the same bpm as the input image.</p>
-<p>The sky is estimated as the median of the pixels defined by the sky map </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l02586">2586</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__extract_8c_source.html#l05652">opt_get_sky()</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00301">uves_iterate_finished()</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00246">uves_iterate_increment()</a>, and <a class="el" href="uves__extract__iterate_8c_source.html#l00203">uves_iterate_set_first()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l02288">opt_extract_sky()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac4b249fd5e1d761d4d628fc58360cd59"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_table ** opt_sample_spatial_profile </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>weights</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>stepx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>sampling_factor</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>nbins</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Sample spatial profile. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The input image in (pixel,pixel)-space </td></tr>
-    <tr><td class="paramname">weights</td><td>weight image </td></tr>
-    <tr><td class="paramname">pos</td><td>image iterator </td></tr>
-    <tr><td class="paramname">stepx</td><td>Array of size 'nbins'. Measure only every stepx'th bin </td></tr>
-    <tr><td class="paramname">sampling_factor</td><td>Bin width (pixels) is 1/sampling_factor. </td></tr>
-    <tr><td class="paramname">nbins</td><td>(output) Size of returned array (number of spatial bins) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Array of tables, one table for each spatial bin. When there are bad pixels, a table can be empty.</dd></dl>
-<p>This function measures the spatial profile from <em>minorder</em> to <em>maxorder</em> using the specified spatial resolution.</p>
-<p>Bad pixels are taken into account </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l02444">2444</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00301">uves_iterate_finished()</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00246">uves_iterate_increment()</a>, and <a class="el" href="uves__extract__iterate_8c_source.html#l00203">uves_iterate_set_first()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l02337">opt_define_sky()</a>, and <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae3e0e629c167ff2012d0f200c347d1dc"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static uves_extract_profile * opt_measure_profile </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>weights</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>chunk</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>sampling_factor</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int(*)(const double x[], const double a[], double *result) </td>
-          <td class="paramname"><em>f</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int(*)(const double x[], const double a[], double result[]) </td>
-          <td class="paramname"><em>dfda</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>M</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>sky_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>info_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>profile_global</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Measure spatial profile (all orders) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The sky-subtracted image to extract </td></tr>
-    <tr><td class="paramname">image_noise</td><td>Noise of <em>image</em> </td></tr>
-    <tr><td class="paramname">weights</td><td>weight image </td></tr>
-    <tr><td class="paramname">pos</td><td>image iterator </td></tr>
-    <tr><td class="paramname">chunk</td><td>Chunk size for object localization </td></tr>
-    <tr><td class="paramname">sampling_factor</td><td>oversampling factor (virtual method) </td></tr>
-    <tr><td class="paramname">f</td><td>The profile function </td></tr>
-    <tr><td class="paramname">dfda</td><td>The derivative of the profile function </td></tr>
-    <tr><td class="paramname">M</td><td>Number of parameters for the profile function </td></tr>
-    <tr><td class="paramname">sky_spectrum</td><td>An estimated of the extracted sky (experimental) </td></tr>
-    <tr><td class="paramname">info_tbl</td><td>(output) table with QC parameters for each order </td></tr>
-    <tr><td class="paramname">profile_global</td><td>(output) Table with information on measured profile. If virtual method an empty table is returned</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The inferred spatial profile</dd></dl>
-<p>If <em>f</em> is non-NULL, the profile is measured using a 'Zero Resampling' algorithm as described in section 4 of</p>
-<p>Mukai, Koji: "Optimal extraction of cross-dispersed spectra" Astronomical Society of the Pacific, Publications (ISSN 0004-6280), vol. 102, Feb. 1990, p. 183-189.</p>
-<p>The center and width are allowed to vary as low-degree global polynomials as function of (x, order). For better statisics the signal is collapsed in chunks before applying the analytical fit.</p>
-<p>If <em>f</em> is NULL, the "virtual resampling" algorithm is used, as described in section 3 of Mukai(1990). </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l02745">2745</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__extract_8c_source.html#l05145">opt_get_order_width()</a>, <a class="el" href="uves__extract_8c_source.html#l03985">opt_measure_profile_order()</a>, <a class="el" href="uves__extract_8c_source.html#l02444">opt_sample_spatial_profile()</a>, <a c [...]
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad07884e88093f0e0ee15519a30eb8d3f"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_table * opt_measure_profile_order </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_binary * </td>
-          <td class="paramname"><em>image_bpm</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>chunk</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int(*)(const double x[], const double a[], double *result) </td>
-          <td class="paramname"><em>f</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int(*)(const double x[], const double a[], double result[]) </td>
-          <td class="paramname"><em>dfda</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>M</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>sky_spectrum</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Measure spatial profile (analytical) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The sky-subtracted image to extract </td></tr>
-    <tr><td class="paramname">image_noise</td><td>Noise of <em>image</em> </td></tr>
-    <tr><td class="paramname">image_bpm</td><td>Temporary workaround for slow bpm handling in cpl2 </td></tr>
-    <tr><td class="paramname">pos</td><td>current order </td></tr>
-    <tr><td class="paramname">chunk</td><td>Sample x-size, 1 or more </td></tr>
-    <tr><td class="paramname">f</td><td>The profile function </td></tr>
-    <tr><td class="paramname">dfda</td><td>The derivative of the profile function </td></tr>
-    <tr><td class="paramname">M</td><td>Number of parameters for the profile function </td></tr>
-    <tr><td class="paramname">sky_spectrum</td><td>An estimate of the extracted sky (experimental)</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The (possibly empty) order trace table for the current order.</dd></dl>
-<p>This function fits a profile to chunks along each order.</p>
-<p>Next, center(x,order) and width(x,order) are estimated as 2d polynomials while rejecting outliers. </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l03985">3985</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__error_8h_source.html#l00215">uves_error_reset</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00301">uves_iterate_finished()</a>, <a class="el" href="uves__ext [...]
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaded8ab18ec33bfaedbf404da6621c099"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void revise_noise </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>image_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_binary * </td>
-          <td class="paramname"><em>image_bpm</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>image_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>sky_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const uves_extract_profile * </td>
-          <td class="paramname"><em>profile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Refine error bars. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image_noise</td><td>the noise image to be corrected (only the regions inside the slit are adjusted) </td></tr>
-    <tr><td class="paramname">image_bpm</td><td>input image bad pixels </td></tr>
-    <tr><td class="paramname">image_header</td><td>header with CCD noise characteristics </td></tr>
-    <tr><td class="paramname">pos</td><td>image iterator </td></tr>
-    <tr><td class="paramname">spectrum</td><td>(estimate of) extracted spectrum </td></tr>
-    <tr><td class="paramname">sky_spectrum</td><td>(estimate of) extracted sky (normalized to full slit) </td></tr>
-    <tr><td class="paramname">profile</td><td>the spatial profile </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>The function simulates an image based on the previsouly inferred flux+sky+profile and uses this to improve the error bars </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l02183">2183</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils_8c_source.html#l02225">uves_define_noise()</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00301">uves_iterate_finished()</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00246">uves_iterate_increment()</a>, and <a class="el" href="uves__extract__iterate_8c_source.html#l00203"> [...]
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga55de773dfa081016fda249a7cb7878de"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int opt_extract </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const uves_extract_profile * </td>
-          <td class="paramname"><em>profile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>optimal_extract_sky</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>kappa</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>blemish_mask</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>cosmic_mask</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>cr_row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>profile_table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>prof_row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>spectrum_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>weights</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>sky_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>sky_spectrum_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>sn</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Optimally extract order using the given the profile. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The image to extract. Outlier pixels will be marked as bad </td></tr>
-    <tr><td class="paramname">image_noise</td><td>Noise of <em>image</em> </td></tr>
-    <tr><td class="paramname">pos</td><td>current order </td></tr>
-    <tr><td class="paramname">profile</td><td>Spatial profile </td></tr>
-    <tr><td class="paramname">optimal_extract_sky</td><td>Extract sky as part of the optimal extraction? </td></tr>
-    <tr><td class="paramname">kappa</td><td>Used for outlier rejection </td></tr>
-    <tr><td class="paramname">blemish_mask</td><td>(input) Table of blemish pixels locations </td></tr>
-    <tr><td class="paramname">cosmic_mask</td><td>(output) Table of hot pixels </td></tr>
-    <tr><td class="paramname">cr_row</td><td>(output) Pointing to next unused row of <em>cosmic_mask</em> </td></tr>
-    <tr><td class="paramname">profile_table</td><td>(output) Table with detailed profile information </td></tr>
-    <tr><td class="paramname">prof_row</td><td>(output) Pointing to next unused row of <em>profile_table</em> </td></tr>
-    <tr><td class="paramname">spectrum</td><td>(output) The extracted spectrum </td></tr>
-    <tr><td class="paramname">spectrum_noise</td><td>(output) Noise (1 sigma) of <em>spectrum</em> </td></tr>
-    <tr><td class="paramname">weights</td><td>(output) Weight map </td></tr>
-    <tr><td class="paramname">sky_spectrum</td><td>(output) The extracted sky (only used if <em>optimal_extract_sky</em> is set) </td></tr>
-    <tr><td class="paramname">sky_spectrum_noise</td><td>(output) The extracted sky error bars (only used if <em>optimal_extract_sky</em> is set) </td></tr>
-    <tr><td class="paramname">sn</td><td>(output) The approximate S/N ratio of the current order </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The number of bins extracted</dd></dl>
-<p>Extract the spectrum using the formulas given by Horne (1986), and do kappa-sigma clipping. Iterate until there are no more outliers.</p>
-<p>During extraction hot/cold pixels (usually cosmic rays and 'dead' detector columns) are defined as pixels deviating more than kappa*sigma*sqrt(chi^2/N) from the inferred profile, where sigma is the uncertainty of pixel flux, chi^2/N is the (globally modelled) reduced chi square at the current bin, and kappa is a dimensionless parameter. (Note: if chi^2/N == 1 (a good fit), this is just standard kappa-sigma-clipping. The extra factor sqrt(chi^2/N) is there to make the kappa-sigma-clipp [...]
-<p>For more details and pseudo-code, refer to the source code. </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l05292">5292</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__extract_8c_source.html#l05872">opt_get_flux_sky_variance()</a>, <a class="el" href="uves__extract_8c_source.html#l05768">opt_get_noise_median()</a>, <a class="el" href="uves__extract_8c_source.html#l05145">opt_get_order_width()</a>, <a class="el" href="uves__extract_8c_source.html#l06143">opt_get_redchisq()</a>,  [...]
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga95cd798921bdd0f4606d5dbb45d0dab7"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int opt_get_order_width </td>
-          <td>(</td>
-          <td class="paramtype">const uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get width of order. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">pos</td><td>current order </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The maximum x-distance of any two pixels in the current order</dd></dl>
-<p>This function does not take a non-zero extraction offset into account </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l05145">5145</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__error_8h_source.html#l00215">uves_error_reset</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00797">uves_polynom [...]
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l05292">opt_extract()</a>, and <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaace2260dc82cd97c5a88753a26c00c39"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double estimate_sn </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Estimate the S/N of the input frame. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>the input image </td></tr>
-    <tr><td class="paramname">image_noise</td><td>the input image noise </td></tr>
-    <tr><td class="paramname">pos</td><td>image iterator </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the S/N estimate or undefined on error</dd></dl>
-<p>The signal to noise ratio is estimated by calculating the average S/N of central bins across the chip (using linear extraction and sky subtraction) </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l01550">1550</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00301">uves_iterate_finished()</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00246">uves_iterate_increment()</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00203">uves_iterate_set_first()</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga72eb895e6062614f776c8519f13dfb5e"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double opt_get_sky </td>
-          <td>(</td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>image_data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>noise_data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>weights_data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>sky_map</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>buffer_flux</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>buffer_noise</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>sky_background_noise</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Measure sky level (median) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image_data</td><td>Image data array </td></tr>
-    <tr><td class="paramname">noise_data</td><td>Noise of <em>image_data</em> </td></tr>
-    <tr><td class="paramname">weights_data</td><td>weights array </td></tr>
-    <tr><td class="paramname">pos</td><td>current bin </td></tr>
-    <tr><td class="paramname">sky_map</td><td>Row = 0 (first bin) corresponds to y=ylow </td></tr>
-    <tr><td class="paramname">buffer_flux</td><td>work space, large enough to hold the values of all pixels in this bin </td></tr>
-    <tr><td class="paramname">buffer_noise</td><td>work space, as above </td></tr>
-    <tr><td class="paramname">sky_background_noise</td><td>(output) Noise (1 sigma) of returned value </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The sky level for this bin</dd></dl>
-<p>The sky level is computed as the median of the sky pixels (as defined by selected rows in the sky_map table). If no such pixel exists, the sky is set to the minimum flux along slit.</p>
-<p>The computed sky level is <em>not</em> normalized to the full slit (which makes it easier to subtract the sky from each pixel).</p>
-<p>If there are no good pixels, the sky is set to zero, and the noise to 1. </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l05652">5652</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__cpl_8c_source.html#l00475">uves_tools_get_median()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l02586">opt_subtract_sky()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa6e6619285bc14f8d61ed59ec8266d6e"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double opt_get_noise_median </td>
-          <td>(</td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>noise_data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_binary * </td>
-          <td class="paramname"><em>image_bpm</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>noise_buffer</em>[] </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Measure median noise level of extraction bin. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">noise_data</td><td>Noise data array </td></tr>
-    <tr><td class="paramname">image_bpm</td><td>image bad pixel map </td></tr>
-    <tr><td class="paramname">pos</td><td>current bin </td></tr>
-    <tr><td class="paramname">noise_buffer</td><td>array large enough to hold all values across the slit </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The median of the errorbars </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l05768">5768</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__cpl_8c_source.html#l00475">uves_tools_get_median()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l05292">opt_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8f31c60f3e1e173ad20217652934480c"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double opt_get_flux_sky_variance </td>
-          <td>(</td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>image_data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>noise_data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>weights_data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const uves_extract_profile * </td>
-          <td class="paramname"><em>profile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>optimal_extract_sky</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>median_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>variance</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>sky_background</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>sky_background_noise</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get flux, sky and variances of current bin. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image_data</td><td>Image data array </td></tr>
-    <tr><td class="paramname">noise_data</td><td>Noise data array </td></tr>
-    <tr><td class="paramname">weights_data</td><td>Weights data array This is updated to contain the new weight. Pixels with already negative weight (i.e. bad pixels) are ignored. </td></tr>
-    <tr><td class="paramname">pos</td><td>current bin </td></tr>
-    <tr><td class="paramname">profile</td><td>Spatial profile </td></tr>
-    <tr><td class="paramname">optimal_extract_sky</td><td>Also optimally extract sky (true) or just the object flux (false) </td></tr>
-    <tr><td class="paramname">median_noise</td><td>If positive, the 'raw' pixel flux errorbars are raised to this value. If negative, the 'raw' errorbars are used unmodified. (This is to allow robustness against cold pixels which would otherwise get too much weight before they are rejected.) </td></tr>
-    <tr><td class="paramname">variance</td><td>(output) Variance of returned value </td></tr>
-    <tr><td class="paramname">sky_background</td><td>(output) Extracted sky (if <em>optimal_extract_sky</em> is set) </td></tr>
-    <tr><td class="paramname">sky_background_noise</td><td>(output) Error (1 sigma) of estimated sky (if <em>optimal_extract_sky</em> is set) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The optimally extracted flux</dd></dl>
-<p>If the <em>optimal_extract_sky</em> flag is not set, the current bin is extracted using Horne(1986)'s optimal extraction formulas:</p>
-<p>F = [ sum_i (profile_i^2/variance_i * flux_i/profile_i) ] / [ sum_i (profile_i^2/variance_i) ]</p>
-<p>Variance = 1 / [ sum_i (profile_i^2/variance_i) ]</p>
-<p>If the <em>optimal_extract_sky</em> flag is set, generalized formulas are used for the optimal object and sky flux. Horne's formulas were derived by minimizing </p>
-<pre class="fragment">chi^2 = sum_i (flux_i - F * profile_i)^2/variance_i
-</pre><p>with respect to F, then using the error propagation formula to get the Variance while noting that Variance(flux_i) = variance_i. (profile_i and variance_i are assumed exactly known, i.e. to have zero variance).</p>
-<p>To generalize the formulas to include the optimal determination of the sky, we simply add a constant sky background, S, to the model and repeat the calculation. Then, minimization of </p>
-<pre class="fragment">chi^2 = sum (flux_i - (S + F * profile_i))^2/variance_i
-</pre><p>with respect to F and S leads to (the calculation is somewhat tedious but straightforward)</p>
-<p>F = [ (sum_i 1/variance_i ) sum_i profile_i flux_i / variance_i - (sum_i profile_i/variance_i) sum_i flux_i / variance_i ] / Denominator</p>
-<p>S = [ (sum_i profile_i^2/variance_i) sum_i flux_i / variance_i - (sum_i profile_i/variance_i) sum_i profile_i flux_i / variance_i ] / Denominator</p>
-<p>Variance(F) = (sum_i 1 / variance_i) / Denominator Variance(S) = (sum_i profile_i / variance_i) / Denominator</p>
-<p>where Denominator is short for</p>
-<p>(sum_i 1/variance_i) sum_i profile_i^2/variance_i - (sum_i profile_i/variance_i)^2</p>
-<p>These formulas has been shown to give the same results as a two-parameter LM chi^2 minimization </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l05872">5872</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l05292">opt_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6ca277a820936e41b96d85c6bf0ea21b"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static bool opt_reject_outlier </td>
-          <td>(</td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>image_data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>noise_data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_binary * </td>
-          <td class="paramname"><em>image_bpm</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>weights_data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const uves_extract_profile * </td>
-          <td class="paramname"><em>profile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>kappa</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>flux</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sky_background</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>red_chisq</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>cosmic_mask</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>cr_row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>hot_pixels</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>cold_pixels</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Find and reject outlier pixel. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image_data</td><td>Image data array </td></tr>
-    <tr><td class="paramname">noise_data</td><td>Noise data array </td></tr>
-    <tr><td class="paramname">image_bpm</td><td>Image bad pixels map. Outliers will be marked as bad. </td></tr>
-    <tr><td class="paramname">weights_data</td><td>Weights data array </td></tr>
-    <tr><td class="paramname">pos</td><td>current bin, </td></tr>
-    <tr><td class="paramname">profile</td><td>Spatial profile </td></tr>
-    <tr><td class="paramname">kappa</td><td>Rejection parameter </td></tr>
-    <tr><td class="paramname">flux</td><td>The extracted flux </td></tr>
-    <tr><td class="paramname">sky_background</td><td>The extracted sky, (zero if input frame was already sky-subtracted) </td></tr>
-    <tr><td class="paramname">red_chisq</td><td>reduced chi square, must be positive </td></tr>
-    <tr><td class="paramname">cosmic_mask</td><td>Table of cosmic ray hits. Will be updated if a positive outlier was found. </td></tr>
-    <tr><td class="paramname">cr_row</td><td>First unused row of <em>cosmic_mask</em> </td></tr>
-    <tr><td class="paramname">hot_pixels</td><td>Current number of hot pixels in this order </td></tr>
-    <tr><td class="paramname">cold_pixels</td><td>Current number of cold pixels in this order </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>True iff an outlier pixel was found.</dd></dl>
-<p>If an outlier is found, its weight is set to negative. </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l06023">6023</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l05292">opt_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga74a27fdb394ea3be89fdd31f6c124da3"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double opt_get_redchisq </td>
-          <td>(</td>
-          <td class="paramtype">const uves_extract_profile * </td>
-          <td class="paramname"><em>profile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get reduced chi^2 for current bin. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">profile</td><td>object spatial profile </td></tr>
-    <tr><td class="paramname">pos</td><td>current bin</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>reduced chi^2 for this bin, as previously inferred from global fit (but always 1 or more). If virtual method, return 1. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l06143">6143</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__polynomial_8c_source.html#l00674">uves_polynomial_evaluate_1d()</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l05292">opt_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac3d98948d7bf5772674a0a6042b82bf2"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static <a class="el" href="struct__polynomial.html">polynomial</a> * repeat_orderdef </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>guess_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>minorder</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxorder</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="structslit__geometry.html">slit_geometry</a> </td>
-          <td class="paramname"><em>sg</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>info_tbl</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Refine order definition using the science frame. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>object frame </td></tr>
-    <tr><td class="paramname">image_noise</td><td>image error bars </td></tr>
-    <tr><td class="paramname">guess_locations</td><td>previous solution </td></tr>
-    <tr><td class="paramname">minorder</td><td>minimum order number </td></tr>
-    <tr><td class="paramname">maxorder</td><td>maximum order number </td></tr>
-    <tr><td class="paramname">sg</td><td>slit length </td></tr>
-    <tr><td class="paramname">info_tbl</td><td>table with QC parameters for each order </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>improved solution</dd></dl>
-<p>This function repeats the order definition step usually performed by the order-definition recipe.</p>
-<p>This implementation is very much simpler than the order-definition recipe, because we already know the approximate order location across the entire chip. (On the contrary, the order-definition recipe works ab nihil). </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l06189">6189</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00215">uves_error_reset</a>, <a class="el" href="uves__utils_8c_source.html#l04288">uves_gauss()</a>, <a class="el" href="uves__utils_8c_source.html#l04343">uves_gauss_derivative()</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__msg_8h_sourc [...]
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gacb90d6e405582e2d261bc5c117a1c20f"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double detect_ripples </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sn</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Try to detect and warn about any optimal extraction ripples (happening if oversampling factor is too small) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">spectrum</td><td>extracted spectrum </td></tr>
-    <tr><td class="paramname">pos</td><td>image iterator containing current order </td></tr>
-    <tr><td class="paramname">sn</td><td>S/N for this order </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>ratio of estimated ripple amplitude to spectrum error bars, or -1 if estimation failed </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l01407">1407</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00828">uves_polynomial_derivative_2d()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga99751e637d04bc19090446f3a15974d0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_parameterlist* uves_extract_define_parameters </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Define recipe parameters used for extraction. </p>
-<dl class="section return"><dt>Returns:</dt><dd>The parameters for this step</dd></dl>
-<p>The parameters defined are method, kappa. See source code or 'esorex –man-page' for a description of each parameter. </p>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l00264">264</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa6ae7afeaf5c4a71eb399ffa29a828f7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">extract_method uves_get_extract_method </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>context</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>subcontext</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read extraction method from parameter list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parameters</td><td>The parameter list </td></tr>
-    <tr><td class="paramname">context</td><td>Context of parameter (or NULL) </td></tr>
-    <tr><td class="paramname">subcontext</td><td>Subcontext of parameter</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The extraction method as read from the parameter context.subcontext.method </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l00462">462</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>, and <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga724649dabb1df68c512fdd9e99b36f0d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_extract </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>image_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>image_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations_raw</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>slit_length</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>offset</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>context</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>mode</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>extract_partial</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>debug_mode</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>spectrum_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>sky_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>sky_spectrum_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>cosmic_mask</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>cosmic_image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>profile_table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>weights</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>info_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>order_trace</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Extract a spectrum. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The input image in (pixel,pixel)-space. If optimal extraction, outlier pixels will be marked as bad </td></tr>
-    <tr><td class="paramname">image_noise</td><td>The input image noise. Will be improved during an optimal extraction. If NULL, a constant noise level is assumed. </td></tr>
-    <tr><td class="paramname">image_header</td><td>the input image FITS header (optimal extraction only), or NULL. </td></tr>
-    <tr><td class="paramname">ordertable</td><td>The order table </td></tr>
-    <tr><td class="paramname">order_locations_raw</td><td>Bivariate polynomial defining the positions of the relative orders Will be refined for method = optimal/virtual. </td></tr>
-    <tr><td class="paramname">slit_length</td><td>Length (in pixels) of area to extract </td></tr>
-    <tr><td class="paramname">offset</td><td>Offset (in pixels) of slit. Ignored if 2d extraction </td></tr>
-    <tr><td class="paramname">parameters</td><td>Parameter list defining the extraction method and kappa (rejection threshold for optimal extraction). Add parameters by calling <code>uves_propagate_parameters_step()</code> from the <code>recipe_create()</code> function </td></tr>
-    <tr><td class="paramname">context</td><td>Use <em>parameters</em> belonging to this context </td></tr>
-    <tr><td class="paramname">extract_partial</td><td>Flag indicating if an extraction bin which is partially outside the image should be extracted (true) or rejected (false) </td></tr>
-    <tr><td class="paramname">debug_mode</td><td>debug_mode mode ? if yes generate extra output </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip (optimal extraction only) </td></tr>
-    <tr><td class="paramname">header</td><td>(output) If non-NULL, FITS header of returned spectrum </td></tr>
-    <tr><td class="paramname">spectrum_noise</td><td>(output) If non-NULL, the noise of the extracted spectrum is computed and returned through this parameter. Requires input noise image to be specified. </td></tr>
-    <tr><td class="paramname">sky_spectrum</td><td>(output) Used only in optimal extraction. This is the extracted sky. </td></tr>
-    <tr><td class="paramname">sky_spectrum_noise</td><td>(output) Used only in optimal extraction. This is the noise (1 sigma) of the extracted sky. optimal extraction </td></tr>
-    <tr><td class="paramname">cosmic_mask</td><td>(output) Used only in optimal extraction. A table of cosmic ray hits is returned. </td></tr>
-    <tr><td class="paramname">cosmic_image</td><td>(output) Used only in optimal extraction. The cosmic ray table converted to an image </td></tr>
-    <tr><td class="paramname">profile_table</td><td>(output) Used only in optimal extraction. If non-NULL, table containing detailed profiled information. (warning: this table has a row for each combination of (order, bin, slit-position) and as such is often rather big) </td></tr>
-    <tr><td class="paramname">weights</td><td>(output) Used only in optimal+weighted extraction. If this points to NULL, a new weight image is created, otherwise the existing weight image is used when extracting. </td></tr>
-    <tr><td class="paramname">info_tbl</td><td>(output) table with info to QC log. Computed if optimal, average or linear extraction. May be NULL </td></tr>
-    <tr><td class="paramname">order_trace</td><td>(output) Used only in optimal extraction. Table containing the order trace.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The extracted spectrum in (pixel, order)-space</dd></dl>
-<p>The minimum and maximum (relative) order numbers are read from the order table. The order locations are inferred from the polynomial <em>order_locations_raw</em> .</p>
-<p>Bad pixel handling: In average extraction mode, bad pixels are ignored (i.e. don't contribute to the average). In linear extraction mode, the good pixels are summed, and the flux is always normalized to the slit length. In optimal extraction mode, pixels with residuals larger than kappa sigma are rejected (sigma is the uncertainty of the pixel flux)</p>
-<p>If the flag <em>extract_partial</em> is true, an extraction bin which lies partially outside the image will be extracted (and the flux normalized to the full slit length in case of linear extraction). This flag should be set to false if the object spatial profile is not nearly constant across the extraction slit, otherwise an artificial increase/drop in flux will appear near the edge of the image. This flag is ignored for optimal extraction.</p>
-<p>Bins which are not extracted (outside the image) are set to 'bad' in the final spectrum image.</p>
-<ul>
-<li>The extraction area is a parallelogram. The length of the two vertical sides is still <em>slit_length</em>, but the slope of the two (nearly) horizontal sides is equal to the local order line slope.</li>
-<li>Extraction bins that are partially outside of the image are not extracted (i.e. the flux is set to zero).</li>
-<li>When extracting a fraction (less than 1) of a pixel, the (unknown) order profile is approximated using a linear interpolation of the fluxes of the current pixel and the two neighbouring pixels. This reduces artificial ripples (periodic variation of the flux) in the extracted spectrum. </li>
-</ul>
-
-<p>Definition at line <a class="el" href="uves__extract_8c_source.html#l00569">569</a> of file <a class="el" href="uves__extract_8c_source.html">uves_extract.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__extract_8c_source.html#l01407">detect_ripples()</a>, <a class="el" href="uves__extract_8c_source.html#l01550">estimate_sn()</a>, <a class="el" href="uves__extract_8c_source.html#l01686">extract_order_simple()</a>, <a class="el" href="uves__ext [...]
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>, and <a class="el" href="uves__extract-test_8c_source.html#l00185">test_extract()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__extract__iterate.html b/html/group__uves__extract__iterate.html
deleted file mode 100644
index bf63c42..0000000
--- a/html/group__uves__extract__iterate.html
+++ /dev/null
@@ -1,409 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Iterate over an image</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Iterate over an image</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga3233f3e30f36df3f47ddc7b95beaa8a8"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract__iterate.html#ga3233f3e30f36df3f47ddc7b95beaa8a8">illegal_position</a> (const uves_iterate_position *p)</td></tr>
-<tr class="memdesc:ga3233f3e30f36df3f47ddc7b95beaa8a8"><td class="mdescLeft"> </td><td class="mdescRight">Find out if the current position is valid.  <a href="#ga3233f3e30f36df3f47ddc7b95beaa8a8"></a><br/></td></tr>
-<tr class="memitem:ga8601e16b56ff03ee210eec3684fd5501"><td class="memItemLeft" align="right" valign="top">uves_iterate_position * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract__iterate.html#ga8601e16b56ff03ee210eec3684fd5501">uves_iterate_new</a> (int nx, int ny, const <a class="el" href="struct__polynomial.html">polynomial</a> *order_locations, int minorder, int maxorder, <a class="el" href="structslit__geometry.html">slit_geometry</a> sg)</ [...]
-<tr class="memdesc:ga8601e16b56ff03ee210eec3684fd5501"><td class="mdescLeft"> </td><td class="mdescRight">Allocate iterator.  <a href="#ga8601e16b56ff03ee210eec3684fd5501"></a><br/></td></tr>
-<tr class="memitem:gabf1b3e568a93017a6a95ae64ae6f13b7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract__iterate.html#gabf1b3e568a93017a6a95ae64ae6f13b7">uves_iterate_delete</a> (uves_iterate_position **p)</td></tr>
-<tr class="memdesc:gabf1b3e568a93017a6a95ae64ae6f13b7"><td class="mdescLeft"> </td><td class="mdescRight">Deallocate iterator and set pointer to NULL.  <a href="#gabf1b3e568a93017a6a95ae64ae6f13b7"></a><br/></td></tr>
-<tr class="memitem:ga6c4c5f1101f32bd7dcc6a219429cfdcb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb">uves_iterate_set_first</a> (uves_iterate_position *p, int xmin, int xmax, int ordermin, int ordermax, const cpl_binary *bpm, bool loop_y)</td></tr>
-<tr class="memdesc:ga6c4c5f1101f32bd7dcc6a219429cfdcb"><td class="mdescLeft"> </td><td class="mdescRight">Initialize iteration.  <a href="#ga6c4c5f1101f32bd7dcc6a219429cfdcb"></a><br/></td></tr>
-<tr class="memitem:ga5d42b2cc98942efc016cf9ec572fb58a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a">uves_iterate_increment</a> (uves_iterate_position *p)</td></tr>
-<tr class="memdesc:ga5d42b2cc98942efc016cf9ec572fb58a"><td class="mdescLeft"> </td><td class="mdescRight">Get next position.  <a href="#ga5d42b2cc98942efc016cf9ec572fb58a"></a><br/></td></tr>
-<tr class="memitem:gae0b4f4387f12b425233172516089f961"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961">uves_iterate_finished</a> (const uves_iterate_position *p)</td></tr>
-<tr class="memdesc:gae0b4f4387f12b425233172516089f961"><td class="mdescLeft"> </td><td class="mdescRight">Finished iterating?  <a href="#gae0b4f4387f12b425233172516089f961"></a><br/></td></tr>
-<tr class="memitem:ga7dbbaee29928f76eae48fc6bca0f64f8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract__iterate.html#ga7dbbaee29928f76eae48fc6bca0f64f8">uves_iterate_dump</a> (const uves_iterate_position *p, FILE *stream)</td></tr>
-<tr class="memdesc:ga7dbbaee29928f76eae48fc6bca0f64f8"><td class="mdescLeft"> </td><td class="mdescRight">dump iterator (for debugging)  <a href="#ga7dbbaee29928f76eae48fc6bca0f64f8"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This class exists in order to be able to write</p>
-<div class="fragment"><div class="line">        <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos, ...);</div>
-<div class="line">             !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line">             <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line">         {</div>
-<div class="line">               <span class="keywordflow">do</span> something</div>
-<div class="line">         }</div>
-</div><!-- fragment --><p>instead of repeating the same structure of nested loops + selections again and again in the extraction module. I.e. to avoid repetitions of (in pseudocode)</p>
-<div class="fragment"><div class="line">    <span class="keywordflow">for each</span> order ...</div>
-<div class="line">       <span class="keywordflow">for each</span> bin ...</div>
-<div class="line">          calculate limits <span class="keywordflow">for</span> <span class="keyword">this</span> bin</div>
-<div class="line">          <span class="keywordflow">for each</span> position on the slit ...</div>
-<div class="line">             <span class="keywordflow">if</span> pixel is good ...</div>
-<div class="line">  </div>
-<div class="line">                <span class="keywordflow">do</span> something</div>
-</div><!-- fragment --><p>where only the "do something" part is different </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga3233f3e30f36df3f47ddc7b95beaa8a8"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static bool illegal_position </td>
-          <td>(</td>
-          <td class="paramtype">const uves_iterate_position * </td>
-          <td class="paramname"><em>p</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Find out if the current position is valid. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>iterator to check </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>true iff the current position is a good pixel and the entire slit is inside the image </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__extract__iterate_8c_source.html#l00347">347</a> of file <a class="el" href="uves__extract__iterate_8c_source.html">uves_extract_iterate.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract__iterate_8c_source.html#l00246">uves_iterate_increment()</a>, and <a class="el" href="uves__extract__iterate_8c_source.html#l00203">uves_iterate_set_first()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8601e16b56ff03ee210eec3684fd5501"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">uves_iterate_position* uves_iterate_new </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ny</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>minorder</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxorder</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="structslit__geometry.html">slit_geometry</a> </td>
-          <td class="paramname"><em>sg</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Allocate iterator. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>the image to iterate over </td></tr>
-    <tr><td class="paramname">order_locations</td><td>order polynomial </td></tr>
-    <tr><td class="paramname">minorder</td><td>first order (inclusive) in image </td></tr>
-    <tr><td class="paramname">maxorder</td><td>last order (inclusive) in image </td></tr>
-    <tr><td class="paramname"><a class="el" href="structslit__geometry.html">slit_geometry</a></td><td>extraction slit length and offset </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>newly allocated iterator which must be deallocated using uves_iterate_delete</dd></dl>
-<p>The iterator, pos, should be used in constructs like </p>
-<div class="fragment"><div class="line">    <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line">                    xmin,</div>
-<div class="line">                    xmax,</div>
-<div class="line">                    ordermin, ordermax,</div>
-<div class="line">                    current_image_bpm, <span class="keyword">true</span>);</div>
-<div class="line">         !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line">         <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line">         {</div>
-<div class="line">                flux += image[p->x, p->y];</div>
-<div class="line">         }</div>
-</div><!-- fragment --><p>The struct members</p>
-<p>int order; int x, y; double ycenter; int ylow; int yhigh;</p>
-<p>can be accessed inside the loop. </p>
-
-<p>Definition at line <a class="el" href="uves__extract__iterate_8c_source.html#l00154">154</a> of file <a class="el" href="uves__extract__iterate_8c_source.html">uves_extract_iterate.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract-test_8c_source.html#l00128">create_spectrum()</a>, <a class="el" href="uves__extract-test_8c_source.html#l00185">test_extract()</a>, <a class="el" href="uves__extract-test_8c_source.html#l00382">test_iterate()</a>, and <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gabf1b3e568a93017a6a95ae64ae6f13b7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_iterate_delete </td>
-          <td>(</td>
-          <td class="paramtype">uves_iterate_position ** </td>
-          <td class="paramname"><em>p</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Deallocate iterator and set pointer to NULL. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>iterator to delete </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__extract__iterate_8c_source.html#l00178">178</a> of file <a class="el" href="uves__extract__iterate_8c_source.html">uves_extract_iterate.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract-test_8c_source.html#l00128">create_spectrum()</a>, <a class="el" href="uves__extract-test_8c_source.html#l00185">test_extract()</a>, <a class="el" href="uves__extract-test_8c_source.html#l00382">test_iterate()</a>, and <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6c4c5f1101f32bd7dcc6a219429cfdcb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_iterate_set_first </td>
-          <td>(</td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>xmin</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>xmax</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ordermin</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ordermax</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_binary * </td>
-          <td class="paramname"><em>bpm</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>loop_y</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Initialize iteration. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>iterator to initialize </td></tr>
-    <tr><td class="paramname">xmin</td><td>minimum x bin </td></tr>
-    <tr><td class="paramname">xmax</td><td>maximum x bin </td></tr>
-    <tr><td class="paramname">ordermin</td><td>first order to iterate over </td></tr>
-    <tr><td class="paramname">ordermax</td><td>last order to iterate over </td></tr>
-    <tr><td class="paramname">bpm</td><td>image bad pixel map to use for this iteration. If NULL all pixels are considered good </td></tr>
-    <tr><td class="paramname">loop_y</td><td>if true, the iteration is over (order, x, y). If false, the iteration is over (order, x) only, and the bpm is not used </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__extract__iterate_8c_source.html#l00203">203</a> of file <a class="el" href="uves__extract__iterate_8c_source.html">uves_extract_iterate.c</a>.</p>
-
-<p>References <a class="el" href="uves__extract__iterate_8c_source.html#l00347">illegal_position()</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00301">uves_iterate_finished()</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00246">uves_iterate_increment()</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract-test_8c_source.html#l00128">create_spectrum()</a>, <a class="el" href="uves__extract_8c_source.html#l01550">estimate_sn()</a>, <a class="el" href="uves__extract_8c_source.html#l05292">opt_extract()</a>, <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>, <a class="el" href="uves__extract_8c_source.html#l03985">opt_measure_profile_order()</a>, <a class="el" href="uves__extract_8c_source.html#l02444">opt_sam [...]
-
-</div>
-</div>
-<a class="anchor" id="ga5d42b2cc98942efc016cf9ec572fb58a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_iterate_increment </td>
-          <td>(</td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>p</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get next position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>iterator to increment</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>p is changed to contain the next position </p>
-
-<p>Definition at line <a class="el" href="uves__extract__iterate_8c_source.html#l00246">246</a> of file <a class="el" href="uves__extract__iterate_8c_source.html">uves_extract_iterate.c</a>.</p>
-
-<p>References <a class="el" href="uves__extract__iterate_8c_source.html#l00347">illegal_position()</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00301">uves_iterate_finished()</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract-test_8c_source.html#l00128">create_spectrum()</a>, <a class="el" href="uves__extract_8c_source.html#l01550">estimate_sn()</a>, <a class="el" href="uves__extract_8c_source.html#l05292">opt_extract()</a>, <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>, <a class="el" href="uves__extract_8c_source.html#l03985">opt_measure_profile_order()</a>, <a class="el" href="uves__extract_8c_source.html#l02444">opt_sam [...]
-
-</div>
-</div>
-<a class="anchor" id="gae0b4f4387f12b425233172516089f961"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">bool uves_iterate_finished </td>
-          <td>(</td>
-          <td class="paramtype">const uves_iterate_position * </td>
-          <td class="paramname"><em>p</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Finished iterating? </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>iterator to check </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>false if p contains a valid position, false if the iteration is over</dd></dl>
-<p>This function should always be checked after calling <a class="el" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment()</a> and <a class="el" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first()</a> </p>
-
-<p>Definition at line <a class="el" href="uves__extract__iterate_8c_source.html#l00301">301</a> of file <a class="el" href="uves__extract__iterate_8c_source.html">uves_extract_iterate.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract-test_8c_source.html#l00128">create_spectrum()</a>, <a class="el" href="uves__extract_8c_source.html#l01550">estimate_sn()</a>, <a class="el" href="uves__extract_8c_source.html#l05292">opt_extract()</a>, <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>, <a class="el" href="uves__extract_8c_source.html#l03985">opt_measure_profile_order()</a>, <a class="el" href="uves__extract_8c_source.html#l02444">opt_sam [...]
-
-</div>
-</div>
-<a class="anchor" id="ga7dbbaee29928f76eae48fc6bca0f64f8"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_iterate_dump </td>
-          <td>(</td>
-          <td class="paramtype">const uves_iterate_position * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">FILE * </td>
-          <td class="paramname"><em>stream</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>dump iterator (for debugging) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>iterator to check </td></tr>
-    <tr><td class="paramname">stream</td><td>stream to write to </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__extract__iterate_8c_source.html#l00314">314</a> of file <a class="el" href="uves__extract__iterate_8c_source.html">uves_extract_iterate.c</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__extract__test.html b/html/group__uves__extract__test.html
deleted file mode 100644
index 6cbb7a8..0000000
--- a/html/group__uves__extract__test.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: UVES extraction unit tests</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">UVES extraction unit tests</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga7cb1d3ff41cb3f702a9b25abe8184e87"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7cb1d3ff41cb3f702a9b25abe8184e87"></a>
-static cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract__test.html#ga7cb1d3ff41cb3f702a9b25abe8184e87">create_spectrum</a> (int nx, int ny, int minorder, int maxorder, const <a class="el" href="struct__polynomial.html">polynomial</a> *order_locations, <a class="el" href="structslit__geometry.html">slit_geometry</a> sg, cpl_image **sky_spectrum)</td></tr>
-<tr class="memdesc:ga7cb1d3ff41cb3f702a9b25abe8184e87"><td class="mdescLeft"> </td><td class="mdescRight">test spectrum creation <br/></td></tr>
-<tr class="memitem:gac6bd9700cd243b2b05fcfeff33c2ecff"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac6bd9700cd243b2b05fcfeff33c2ecff"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract__test.html#gac6bd9700cd243b2b05fcfeff33c2ecff">test_extract</a> (void)</td></tr>
-<tr class="memdesc:gac6bd9700cd243b2b05fcfeff33c2ecff"><td class="mdescLeft"> </td><td class="mdescRight">test extraction <br/></td></tr>
-<tr class="memitem:ga017b6e795dd968c9e025ca0d6f3611f5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga017b6e795dd968c9e025ca0d6f3611f5"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract__test.html#ga017b6e795dd968c9e025ca0d6f3611f5">test_iterate</a> (void)</td></tr>
-<tr class="memdesc:ga017b6e795dd968c9e025ca0d6f3611f5"><td class="mdescLeft"> </td><td class="mdescRight">test iteration <br/></td></tr>
-<tr class="memitem:ga840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga840291bc02cba5474a4cb46a9b9566fe"></a>
-int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__extract__test.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
-<tr class="memdesc:ga840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft"> </td><td class="mdescRight">Test of uves_extract. <br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__flatfield.html b/html/group__uves__flatfield.html
deleted file mode 100644
index de02aa2..0000000
--- a/html/group__uves__flatfield.html
+++ /dev/null
@@ -1,172 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Flat-field correction</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Flat-field correction</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gaa96727cda19ae088e522da95f95e6dbd"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__flatfield.html#gaa96727cda19ae088e522da95f95e6dbd">uves_flatfielding</a> (cpl_image *image, cpl_image *noise, const cpl_image *master_flat, const cpl_image *mflat_noise)</td></tr>
-<tr class="memdesc:gaa96727cda19ae088e522da95f95e6dbd"><td class="mdescLeft"> </td><td class="mdescRight">Divide by flat field.  <a href="#gaa96727cda19ae088e522da95f95e6dbd"></a><br/></td></tr>
-<tr class="memitem:gaf870caa19bcc12c4b863a0a022663f22"><td class="memItemLeft" align="right" valign="top">flatfielding_method </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__flatfield.html#gaf870caa19bcc12c4b863a0a022663f22">uves_get_flatfield_method</a> (const cpl_parameterlist *parameters, const char *context, const char *subcontext)</td></tr>
-<tr class="memdesc:gaf870caa19bcc12c4b863a0a022663f22"><td class="mdescLeft"> </td><td class="mdescRight">Read flat-field method from parameter list.  <a href="#gaf870caa19bcc12c4b863a0a022663f22"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>Divide by a master flat-field frame in (pixel, pixel)-space or in (pixel, order)-space. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gaa96727cda19ae088e522da95f95e6dbd"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_flatfielding </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_flat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>mflat_noise</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Divide by flat field. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The image to correct </td></tr>
-    <tr><td class="paramname">noise</td><td>The noise of the provided <em>image</em>. This noise image is updated according to the error propagation formula. Ignored if set to NULL. </td></tr>
-    <tr><td class="paramname">master_flat</td><td>The master flat field image </td></tr>
-    <tr><td class="paramname">mflat_noise</td><td>The master flat field noise image </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay.</dd></dl>
-<p>The input <em>image</em> divided by the normalized master flat image. The normalized master flat image has mean flux equal to 1.</p>
-<p>This flat field correction is performed in (pixel, pixel)-space, or (pixel, order)-space. The input image sizes must be equal.</p>
-<p>Bad pixels are properly propagated, i.e. if a pixel in the input image or master flat or noise images is bad, the resulting pixel is also set to bad. Also division by a zero or negative flat field causes a bad pixel. </p>
-
-<p>Definition at line <a class="el" href="uves__flatfield_8c_source.html#l00185">185</a> of file <a class="el" href="uves__flatfield_8c_source.html">uves_flatfield.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, and <a class="el" href="uves__error_8h_source.html#l00207">passure</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>, and <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf870caa19bcc12c4b863a0a022663f22"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">flatfielding_method uves_get_flatfield_method </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>context</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>subcontext</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read flat-field method from parameter list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parameters</td><td>The parameter list </td></tr>
-    <tr><td class="paramname">context</td><td>Context of ff parameter (or NULL) </td></tr>
-    <tr><td class="paramname">subcontext</td><td>Subcontext of ff parameter</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The flat-fielding method as read from the parameter context.subcontext.ffmethod </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__flatfield_8c_source.html#l00398">398</a> of file <a class="el" href="uves__flatfield_8c_source.html">uves_flatfield.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__infrastructure.html b/html/group__uves__infrastructure.html
deleted file mode 100644
index d66f478..0000000
--- a/html/group__uves__infrastructure.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe infrastructure</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Recipe infrastructure</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>This module provides functions useful for recipes communicating with sub-steps and other recipes (such as propagation of parameters from a sub-recipe or sub-step, and invoking a recipe) </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__mbias.html b/html/group__uves__mbias.html
deleted file mode 100644
index c260010..0000000
--- a/html/group__uves__mbias.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: Master Bias</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Recipe: Master Bias</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>This recipe calculates the master bias frame. See man-page for details. </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__mdark.html b/html/group__uves__mdark.html
deleted file mode 100644
index f98951e..0000000
--- a/html/group__uves__mdark.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: Master Dark</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Recipe: Master Dark</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>This recipe calculates the master dark frame. See man-page for details. </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__merge.html b/html/group__uves__merge.html
deleted file mode 100644
index 9e040dc..0000000
--- a/html/group__uves__merge.html
+++ /dev/null
@@ -1,212 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Order merging</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Order merging</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gad20fc9888b15052d53d15c7fd2041181"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__merge.html#gad20fc9888b15052d53d15c7fd2041181">uves_merge_orders</a> (const cpl_image *spectrum, const cpl_image *spectrum_noise, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *spectrum_header, merge_method m_method, int  [...]
-<tr class="memdesc:gad20fc9888b15052d53d15c7fd2041181"><td class="mdescLeft"> </td><td class="mdescRight">Merge orders.  <a href="#gad20fc9888b15052d53d15c7fd2041181"></a><br/></td></tr>
-<tr class="memitem:gaeef8fc529ffcfda1a562fd06c7540069"><td class="memItemLeft" align="right" valign="top">merge_method </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__merge.html#gaeef8fc529ffcfda1a562fd06c7540069">uves_get_merge_method</a> (const cpl_parameterlist *parameters, const char *context, const char *subcontext)</td></tr>
-<tr class="memdesc:gaeef8fc529ffcfda1a562fd06c7540069"><td class="mdescLeft"> </td><td class="mdescRight">Read merging method from parameter list.  <a href="#gaeef8fc529ffcfda1a562fd06c7540069"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>Merge echelle orders to obtain a 1D spectrum. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gad20fc9888b15052d53d15c7fd2041181"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_merge_orders </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>spectrum_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">merge_method </td>
-          <td class="paramname"><em>m_method</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>n_traces</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>merged_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>delt1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>delt2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>merged_noise</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Merge orders. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">spectrum</td><td>The 2D spectrum in (wavelength, order)-space </td></tr>
-    <tr><td class="paramname">spectrum_noise</td><td>The spectrum noise </td></tr>
-    <tr><td class="paramname">spectrum_header</td><td>Header describing the wavelength offset for each row in the spectrum image. </td></tr>
-    <tr><td class="paramname">m_method</td><td>The merge method </td></tr>
-    <tr><td class="paramname">n_traces</td><td>Number of traces per order (equal to 1, or more if 2d extraction) </td></tr>
-    <tr><td class="paramname">merged_header</td><td>(out) Newly allocated header of merged image </td></tr>
-    <tr><td class="paramname">merged_noise</td><td>(out) Newly allocated merged 1D noise spectrum </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The merged spectrum as an image of height <em>n_traces</em>.</dd></dl>
-<p>If <em>m_method</em> is MERGE_OPTIMAL, the resulting spectrum is at each wavelength optimally merged from the (one, two or more) single order spectra:</p>
-<p>flux = sum [1/sigma_i^2 flux_i] / sum [1/sigma_i^2] sigma^2 = 1 / sum [1/sigma_i^2]</p>
-<p>If <em>m_method</em> is MERGE_SUM, the sum (not average as above) of input fluxes is computed:</p>
-<p>flux = sum [flux_i] sigma^2 = sum [sigma_i^2] </p>
-
-<p>Definition at line <a class="el" href="uves__merge_8c_source.html#l00239">239</a> of file <a class="el" href="uves__merge_8c_source.html">uves_merge.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__chip_8c_source.html#l00156">uves_chip_tostring_upper()</a>, <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__p [...]
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaeef8fc529ffcfda1a562fd06c7540069"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">merge_method uves_get_merge_method </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>context</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>subcontext</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read merging method from parameter list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parameters</td><td>The parameter list </td></tr>
-    <tr><td class="paramname">context</td><td>Context of parameter (or NULL) </td></tr>
-    <tr><td class="paramname">subcontext</td><td>Subcontext of parameter</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The merging method as read from the parameter context.subcontext.merge </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__merge_8c_source.html#l00777">777</a> of file <a class="el" href="uves__merge_8c_source.html">uves_merge.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__mflat.html b/html/group__uves__mflat.html
deleted file mode 100644
index d33a789..0000000
--- a/html/group__uves__mflat.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: Master Flat</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Recipe: Master Flat</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>This recipe calculates the master flat frame. See man-page for details. </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__mflat__combine.html b/html/group__uves__mflat__combine.html
deleted file mode 100644
index 1ae0076..0000000
--- a/html/group__uves__mflat__combine.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Uves_mflat_combine</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Uves_mflat_combine</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__msg.html b/html/group__uves__msg.html
deleted file mode 100644
index 7743e67..0000000
--- a/html/group__uves__msg.html
+++ /dev/null
@@ -1,616 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Messaging</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#define-members">Macros</a> |
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Messaging</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
-Macros</h2></td></tr>
-<tr class="memitem:ga85ffbceb46903c0532510fa0aa73d61b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b">uves_msg_error</a>(...)   cpl_msg_error(__func__, __VA_ARGS__)</td></tr>
-<tr class="memdesc:ga85ffbceb46903c0532510fa0aa73d61b"><td class="mdescLeft"> </td><td class="mdescRight">Print an error message.  <a href="#ga85ffbceb46903c0532510fa0aa73d61b"></a><br/></td></tr>
-<tr class="memitem:ga787671a04773bfc372598b47babe9eb8"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#ga787671a04773bfc372598b47babe9eb8">uves_msg_progress</a>(i, iter,...)   cpl_msg_progress(__func__, (i), (iter), __VA_ARGS__)</td></tr>
-<tr class="memdesc:ga787671a04773bfc372598b47babe9eb8"><td class="mdescLeft"> </td><td class="mdescRight">Print a progress message.  <a href="#ga787671a04773bfc372598b47babe9eb8"></a><br/></td></tr>
-<tr class="memitem:gaac9aa9b939f91f2e2fe42a1300008b9e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e">uves_msg_warning</a>(...)   <a class="el" href="group__uves__msg.html#gaa6b9038cc9d6dee4d6b2f86adb459ee3">uves_msg_warning_macro</a>(__func__, __VA_ARGS__)</td></tr>
-<tr class="memdesc:gaac9aa9b939f91f2e2fe42a1300008b9e"><td class="mdescLeft"> </td><td class="mdescRight">Print an warning message.  <a href="#gaac9aa9b939f91f2e2fe42a1300008b9e"></a><br/></td></tr>
-<tr class="memitem:ga44e8fba8fd214a1ec68f26e32e6f9f97"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97">uves_msg_debug</a>(...)   cpl_msg_debug(__func__, __VA_ARGS__)</td></tr>
-<tr class="memdesc:ga44e8fba8fd214a1ec68f26e32e6f9f97"><td class="mdescLeft"> </td><td class="mdescRight">Print a debug message.  <a href="#ga44e8fba8fd214a1ec68f26e32e6f9f97"></a><br/></td></tr>
-<tr class="memitem:ga860195adbe6423be80bd52ab72c156dc"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc">uves_msg_low</a>(...)</td></tr>
-<tr class="memdesc:ga860195adbe6423be80bd52ab72c156dc"><td class="mdescLeft"> </td><td class="mdescRight">Print a message on a lower message level.  <a href="#ga860195adbe6423be80bd52ab72c156dc"></a><br/></td></tr>
-<tr class="memitem:gaf23be4df15065d8667b83973c17eb7cb"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb">uves_msg</a>(...)   <a class="el" href="group__uves__msg.html#gac345c732a3bc5d9f695817759b8f6ce3">uves_msg_macro</a>(__func__, __VA_ARGS__)</td></tr>
-<tr class="memdesc:gaf23be4df15065d8667b83973c17eb7cb"><td class="mdescLeft"> </td><td class="mdescRight">Print a message on 'info' or 'debug' level.  <a href="#gaf23be4df15065d8667b83973c17eb7cb"></a><br/></td></tr>
-<tr class="memitem:ga5d5259164b86fe1f3d99d4a2d3f3f68c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5d5259164b86fe1f3d99d4a2d3f3f68c"></a>
-#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#ga5d5259164b86fe1f3d99d4a2d3f3f68c">uves_msg_softer</a>()   <a class="el" href="group__uves__msg.html#gac40ef072b06ff52873a4ddd8f05f8be2">uves_msg_softer_macro</a>(__func__)</td></tr>
-<tr class="memdesc:ga5d5259164b86fe1f3d99d4a2d3f3f68c"><td class="mdescLeft"> </td><td class="mdescRight">Decrease message volume. <br/></td></tr>
-<tr class="memitem:gac46059c046c639441112609a0311752e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac46059c046c639441112609a0311752e"></a>
-#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#gac46059c046c639441112609a0311752e">uves_msg_louder</a>()   <a class="el" href="group__uves__msg.html#ga208ba2d8c46e592f572ad7bf14ba3b84">uves_msg_louder_macro</a>(__func__)</td></tr>
-<tr class="memdesc:gac46059c046c639441112609a0311752e"><td class="mdescLeft"> </td><td class="mdescRight">Increase message volume. <br/></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga249838f12e1a1ce18b2f8d4c16bf3078"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#ga249838f12e1a1ce18b2f8d4c16bf3078">uves_msg_init</a> (int olevel, const char *dom)</td></tr>
-<tr class="memdesc:ga249838f12e1a1ce18b2f8d4c16bf3078"><td class="mdescLeft"> </td><td class="mdescRight">Initialize messaging.  <a href="#ga249838f12e1a1ce18b2f8d4c16bf3078"></a><br/></td></tr>
-<tr class="memitem:gab9fee51244a39b8b83db0c6fa9c374ed"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#gab9fee51244a39b8b83db0c6fa9c374ed">uves_msg_set_level</a> (int olevel)</td></tr>
-<tr class="memdesc:gab9fee51244a39b8b83db0c6fa9c374ed"><td class="mdescLeft"> </td><td class="mdescRight">Set output level.  <a href="#gab9fee51244a39b8b83db0c6fa9c374ed"></a><br/></td></tr>
-<tr class="memitem:gac40ef072b06ff52873a4ddd8f05f8be2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#gac40ef072b06ff52873a4ddd8f05f8be2">uves_msg_softer_macro</a> (const char *fct)</td></tr>
-<tr class="memdesc:gac40ef072b06ff52873a4ddd8f05f8be2"><td class="mdescLeft"> </td><td class="mdescRight">Decrease message volume.  <a href="#gac40ef072b06ff52873a4ddd8f05f8be2"></a><br/></td></tr>
-<tr class="memitem:ga208ba2d8c46e592f572ad7bf14ba3b84"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#ga208ba2d8c46e592f572ad7bf14ba3b84">uves_msg_louder_macro</a> (const char *fct)</td></tr>
-<tr class="memdesc:ga208ba2d8c46e592f572ad7bf14ba3b84"><td class="mdescLeft"> </td><td class="mdescRight">Increase message volume.  <a href="#ga208ba2d8c46e592f572ad7bf14ba3b84"></a><br/></td></tr>
-<tr class="memitem:gac345c732a3bc5d9f695817759b8f6ce3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#gac345c732a3bc5d9f695817759b8f6ce3">uves_msg_macro</a> (const char *fct, const char *format,...)</td></tr>
-<tr class="memdesc:gac345c732a3bc5d9f695817759b8f6ce3"><td class="mdescLeft"> </td><td class="mdescRight">Print a message on 'info' or 'debug' level.  <a href="#gac345c732a3bc5d9f695817759b8f6ce3"></a><br/></td></tr>
-<tr class="memitem:ga781eb662fe1449b6ffc27c381d177158"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#ga781eb662fe1449b6ffc27c381d177158">uves_msg_get_warnings</a> (void)</td></tr>
-<tr class="memdesc:ga781eb662fe1449b6ffc27c381d177158"><td class="mdescLeft"> </td><td class="mdescRight">Get number of warnings printed so far.  <a href="#ga781eb662fe1449b6ffc27c381d177158"></a><br/></td></tr>
-<tr class="memitem:gab40c1f283043f87e188cde494836dfca"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#gab40c1f283043f87e188cde494836dfca">uves_msg_add_warnings</a> (int n)</td></tr>
-<tr class="memdesc:gab40c1f283043f87e188cde494836dfca"><td class="mdescLeft"> </td><td class="mdescRight">Accumulate warnings.  <a href="#gab40c1f283043f87e188cde494836dfca"></a><br/></td></tr>
-<tr class="memitem:gaa6b9038cc9d6dee4d6b2f86adb459ee3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#gaa6b9038cc9d6dee4d6b2f86adb459ee3">uves_msg_warning_macro</a> (const char *fct, const char *format,...)</td></tr>
-<tr class="memdesc:gaa6b9038cc9d6dee4d6b2f86adb459ee3"><td class="mdescLeft"> </td><td class="mdescRight">Print a warning message.  <a href="#gaa6b9038cc9d6dee4d6b2f86adb459ee3"></a><br/></td></tr>
-<tr class="memitem:gac522fbf0cdea3197a2bd0df38d3019aa"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#gac522fbf0cdea3197a2bd0df38d3019aa">uves_msg_get_domain</a> (void)</td></tr>
-<tr class="memdesc:gac522fbf0cdea3197a2bd0df38d3019aa"><td class="mdescLeft"> </td><td class="mdescRight">Get current message domain.  <a href="#gac522fbf0cdea3197a2bd0df38d3019aa"></a><br/></td></tr>
-<tr class="memitem:gaf97c630c8b96c1f038f747402cc561b2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__msg.html#gaf97c630c8b96c1f038f747402cc561b2">uves_msg_set_domain</a> (const char *d)</td></tr>
-<tr class="memdesc:gaf97c630c8b96c1f038f747402cc561b2"><td class="mdescLeft"> </td><td class="mdescRight">Set message domain.  <a href="#gaf97c630c8b96c1f038f747402cc561b2"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>CPL's info message level is expanded to a set of relative message level. The functions <a class="el" href="group__uves__msg.html#gac46059c046c639441112609a0311752e" title="Increase message volume.">uves_msg_louder()</a> and <a class="el" href="group__uves__msg.html#ga5d5259164b86fe1f3d99d4a2d3f3f68c" title="Decrease message volume.">uves_msg_softer()</a> are used to turn up/down the message volume level (instead of setting the verbosity to an absolute level using <code>cpl_msg_info()< [...]
-<p>These messaging functions never fail, but might print warnings if called inconsistently. </p>
-<hr/><h2>Macro Definition Documentation</h2>
-<a class="anchor" id="ga85ffbceb46903c0532510fa0aa73d61b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define uves_msg_error</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em></td><td>)</td>
-          <td>   cpl_msg_error(__func__, __VA_ARGS__)</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print an error message. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">...</td><td>Message to print</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>This function is used instead of <code>cpl_msg_error()</code>, and saves the user from typing the calling function name. </p>
-
-<p>Definition at line <a class="el" href="uves__msg_8h_source.html#l00064">64</a> of file <a class="el" href="uves__msg_8h_source.html">uves_msg.h</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l01646">flames_midas_fail_macro()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02062">flames_midas_sctput()</a>, <a class="el" href="flames__utl__unpack_8c_source.html#l00225">flames_utl_unpack()</a>, <a class="el" href="uves__extract_8c_source.html#l03985">opt_measure_profile_order()</a>, <a class="el" href="uves__utils_8c_source.html#l05083">uves_gen_lowpass()</a>, <a class="el" href="uves__qclog_8c_s [...]
-
-</div>
-</div>
-<a class="anchor" id="ga787671a04773bfc372598b47babe9eb8"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define uves_msg_progress</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname">i, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"> </td>
-          <td class="paramname">iter, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td>   cpl_msg_progress(__func__, (i), (iter), __VA_ARGS__)</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print a progress message. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">i</td><td>See <code>cpl_msg_progress()</code> </td></tr>
-    <tr><td class="paramname">iter</td><td>See <code>cpl_msg_progress()</code> </td></tr>
-    <tr><td class="paramname">...</td><td>Message to print</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>This function is used instead of <code>cpl_msg_progress()</code>, and saves the user from typing the calling function name. </p>
-
-<p>Definition at line <a class="el" href="uves__msg_8h_source.html#l00077">77</a> of file <a class="el" href="uves__msg_8h_source.html">uves_msg.h</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaac9aa9b939f91f2e2fe42a1300008b9e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define uves_msg_warning</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em></td><td>)</td>
-          <td>   <a class="el" href="group__uves__msg.html#gaa6b9038cc9d6dee4d6b2f86adb459ee3">uves_msg_warning_macro</a>(__func__, __VA_ARGS__)</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print an warning message. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">...</td><td>Message to print</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>This function is used instead of <code>cpl_msg_warning()</code>, and saves the user from typing the calling function name. </p>
-
-<p>Definition at line <a class="el" href="uves__msg_8h_source.html#l00087">87</a> of file <a class="el" href="uves__msg_8h_source.html">uves_msg.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l00613">compute_lambda()</a>, <a class="el" href="uves__orderpos__hough_8c_source.html#l00398">detect_lines()</a>, <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>, <a class="el" href="uves__physmod__create__table_8c_source.html#l01835">flames_get_physmod_offset()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01579">flames_midas_scsepi()</a>, <a class="el" href="f [...]
-
-</div>
-</div>
-<a class="anchor" id="ga44e8fba8fd214a1ec68f26e32e6f9f97"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define uves_msg_debug</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em></td><td>)</td>
-          <td>   cpl_msg_debug(__func__, __VA_ARGS__)</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print a debug message. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">...</td><td>Message to print</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>This function is used instead of <code>cpl_msg_debug()</code>, and saves the user from typing the calling function name. </p>
-
-<p>Definition at line <a class="el" href="uves__msg_8h_source.html#l00097">97</a> of file <a class="el" href="uves__msg_8h_source.html">uves_msg.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__hough_8c_source.html#l00837">calculate_spacing()</a>, <a class="el" href="uves__wavecal__identify_8c_source.html#l01127">calibrate_global()</a>, <a class="el" href="uves__wavecal__identify_8c_source.html#l00613">compute_lambda()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00698">convert_to_history()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01316">create_descr()</a>, <a class="el" href="uves__orderpos_ [...]
-
-</div>
-</div>
-<a class="anchor" id="ga860195adbe6423be80bd52ab72c156dc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define uves_msg_low</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span> {                     \</div>
-<div class="line">                           uves_msg_softer();       \</div>
-<div class="line">                           uves_msg(__VA_ARGS__);   \</div>
-<div class="line">                           uves_msg_louder();       \</div>
-<div class="line">                           } <span class="keywordflow">while</span> (<span class="keyword">false</span>)</div>
-</div><!-- fragment -->
-<p>Print a message on a lower message level. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">...</td><td>Message to print </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__msg_8h_source.html#l00105">105</a> of file <a class="el" href="uves__msg_8h_source.html">uves_msg.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02062">flames_midas_sctput()</a>, <a class="el" href="uves__extract_8c_source.html#l02288">opt_extract_sky()</a>, <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>, <a class="el" href="uves__reduce_8c_source.html#l02847">subtract_sky_row()</a>, <a class="el" href="uves__extract_8c_source.html#l00569" [...]
-
-</div>
-</div>
-<a class="anchor" id="gaf23be4df15065d8667b83973c17eb7cb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define uves_msg</td>
-          <td>(</td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em></td><td>)</td>
-          <td>   <a class="el" href="group__uves__msg.html#gac345c732a3bc5d9f695817759b8f6ce3">uves_msg_macro</a>(__func__, __VA_ARGS__)</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print a message on 'info' or 'debug' level. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">...</td><td>Message to print</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>See also <code><a class="el" href="group__uves__msg.html#gac345c732a3bc5d9f695817759b8f6ce3" title="Print a message on 'info' or 'debug' level.">uves_msg_macro()</a></code>. </p>
-
-<p>Definition at line <a class="el" href="uves__msg_8h_source.html#l00119">119</a> of file <a class="el" href="uves__msg_8h_source.html">uves_msg.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__hough_8c_source.html#l00398">detect_lines()</a>, <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>, <a class="el" href="uves__physmod__create__table_8c_source.html#l01835">flames_get_physmod_offset()</a>, <a class="el" href="flames__utl__unpack_8c_source.html#l00225">flames_utl_unpack()</a>, <a class="el" href="uves__reduce_8c_source.html#l01509">interpolate_wave()</a>, <a class="el" href="recipe__mai [...]
-
-</div>
-</div>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga249838f12e1a1ce18b2f8d4c16bf3078"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_msg_init </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>olevel</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>dom</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Initialize messaging. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">olevel</td><td>The output level </td></tr>
-    <tr><td class="paramname">dom</td><td>The message domain</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>Only messages at levels 0 (most important) to <em>outlevel</em> are printed as 'info'. Messages at levels above <em>outlevel</em> are printed as 'debug'.</p>
-<p>Therefore, set <em>outlevel</em> = 0 to print fewest messages. Increase <em>outlevel</em> to increase verbosity.</p>
-<p>To print all messages as 'info' set <em>outlevel</em> to the special value -1 (which substitutes for infinity). </p>
-
-<p>Definition at line <a class="el" href="uves__msg_8c_source.html#l00153">153</a> of file <a class="el" href="uves__msg_8c_source.html">uves_msg.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8c_source.html#l00379">uves_msg_set_domain()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab9fee51244a39b8b83db0c6fa9c374ed"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_msg_set_level </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>olevel</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set output level. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">olevel</td><td>The output level</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>See <code><a class="el" href="group__uves__msg.html#ga249838f12e1a1ce18b2f8d4c16bf3078" title="Initialize messaging.">uves_msg_init()</a></code> . </p>
-
-<p>Definition at line <a class="el" href="uves__msg_8c_source.html#l00202">202</a> of file <a class="el" href="uves__msg_8c_source.html">uves_msg.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l01909">uves_initialize()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac40ef072b06ff52873a4ddd8f05f8be2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_msg_softer_macro </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>fct</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Decrease message volume. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">fct</td><td>Identity of calling function</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>Don't call this function directly, use <code><a class="el" href="group__uves__msg.html#ga5d5259164b86fe1f3d99d4a2d3f3f68c" title="Decrease message volume.">uves_msg_softer()</a></code>. </p>
-
-<p>Definition at line <a class="el" href="uves__msg_8c_source.html#l00216">216</a> of file <a class="el" href="uves__msg_8c_source.html">uves_msg.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga208ba2d8c46e592f572ad7bf14ba3b84"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_msg_louder_macro </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>fct</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Increase message volume. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">fct</td><td>Identity of calling function</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>Don't call this function directly, use <code><a class="el" href="group__uves__msg.html#gac46059c046c639441112609a0311752e" title="Increase message volume.">uves_msg_louder()</a></code>. </p>
-
-<p>Definition at line <a class="el" href="uves__msg_8c_source.html#l00239">239</a> of file <a class="el" href="uves__msg_8c_source.html">uves_msg.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac345c732a3bc5d9f695817759b8f6ce3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_msg_macro </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>fct</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>format</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print a message on 'info' or 'debug' level. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">fct</td><td>Identity of calling function </td></tr>
-    <tr><td class="paramname">format</td><td>A printf()-like format string</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>Don't call this function directly, use <code><a class="el" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg()</a></code>.</p>
-<p>If the current level (which is often equal to the current depth of the function call-tree) is less than the output level, the message printed on the 'info' level, otherwise it is printed on the 'debug' level. </p>
-
-<p>Definition at line <a class="el" href="uves__msg_8c_source.html#l00281">281</a> of file <a class="el" href="uves__msg_8c_source.html">uves_msg.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga781eb662fe1449b6ffc27c381d177158"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_msg_get_warnings </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get number of warnings printed so far. </p>
-<dl class="section return"><dt>Returns:</dt><dd>Number of warnings since initialization of messaging </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__msg_8c_source.html#l00309">309</a> of file <a class="el" href="uves__msg_8c_source.html">uves_msg.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l01840">uves_end()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab40c1f283043f87e188cde494836dfca"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_msg_add_warnings </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>n</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Accumulate warnings. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">n</td><td>Number of warnings to add</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>The (internal) number of warnings (returned by <code><a class="el" href="group__uves__msg.html#ga781eb662fe1449b6ffc27c381d177158" title="Get number of warnings printed so far.">uves_msg_get_warnings()</a></code>) is increased by <em>n</em>, but without actually printing any warnings. </p>
-
-<p>Definition at line <a class="el" href="uves__msg_8c_source.html#l00324">324</a> of file <a class="el" href="uves__msg_8c_source.html">uves_msg.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa6b9038cc9d6dee4d6b2f86adb459ee3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_msg_warning_macro </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>fct</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>format</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print a warning message. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">fct</td><td>Identity of calling function </td></tr>
-    <tr><td class="paramname">format</td><td>A printf()-like format string</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>Don't call this function directly, use <code><a class="el" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning()</a></code>.</p>
-<p>This function is used instead of <code>cpl_msg_warning()</code>, and saves the user from typing the calling function name.</p>
-<p>Additionally, record is kept on the total number of warnings printed (see <code><a class="el" href="group__uves__msg.html#ga781eb662fe1449b6ffc27c381d177158" title="Get number of warnings printed so far.">uves_msg_get_warnings()</a></code>).</p>
-<p>This function does not read or write the cpl_error_code </p>
-
-<p>Definition at line <a class="el" href="uves__msg_8c_source.html#l00347">347</a> of file <a class="el" href="uves__msg_8c_source.html">uves_msg.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac522fbf0cdea3197a2bd0df38d3019aa"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_msg_get_domain </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get current message domain. </p>
-<dl class="section return"><dt>Returns:</dt><dd>The current message domain set by <code><a class="el" href="group__uves__msg.html#ga249838f12e1a1ce18b2f8d4c16bf3078" title="Initialize messaging.">uves_msg_init()</a></code> or <code><a class="el" href="group__uves__msg.html#gaf97c630c8b96c1f038f747402cc561b2" title="Set message domain.">uves_msg_set_domain()</a></code>. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__msg_8c_source.html#l00368">368</a> of file <a class="el" href="uves__msg_8c_source.html">uves_msg.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf97c630c8b96c1f038f747402cc561b2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_msg_set_domain </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>d</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set message domain. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">d</td><td>The new message domain </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__msg_8c_source.html#l00379">379</a> of file <a class="el" href="uves__msg_8c_source.html">uves_msg.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__msg_8c_source.html#l00153">uves_msg_init()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__obs__spatred.html b/html/group__uves__obs__spatred.html
deleted file mode 100644
index bd1087d..0000000
--- a/html/group__uves__obs__spatred.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: Science reduction</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Recipe: Science reduction</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>See man-page for details. </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__orderpos.html b/html/group__uves__orderpos.html
deleted file mode 100644
index acef44c..0000000
--- a/html/group__uves__orderpos.html
+++ /dev/null
@@ -1,1413 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: Order Position</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Recipe: Order Position</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga2fcc313cc2f28775bd7aef5abb670751"><td class="memItemLeft" align="right" valign="top">static cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#ga2fcc313cc2f28775bd7aef5abb670751">trace_order</a> (const cpl_table *ordertable, int order, const cpl_image *inputimage, const cpl_image *noise, const cpl_binary *image_bad, int TRACESTEP, double MAXGAP)</td></tr>
-<tr class="memdesc:ga2fcc313cc2f28775bd7aef5abb670751"><td class="mdescLeft"> </td><td class="mdescRight">Trace a single order line.  <a href="#ga2fcc313cc2f28775bd7aef5abb670751"></a><br/></td></tr>
-<tr class="memitem:ga9ec0c0699858aa2709832fdf9732abee"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#ga9ec0c0699858aa2709832fdf9732abee">count_orders</a> (const cpl_table *tracetable)</td></tr>
-<tr class="memdesc:ga9ec0c0699858aa2709832fdf9732abee"><td class="mdescLeft"> </td><td class="mdescRight">Count orders in trace table.  <a href="#ga9ec0c0699858aa2709832fdf9732abee"></a><br/></td></tr>
-<tr class="memitem:ga63321f80b5c307c048cd012e43413dad"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#ga63321f80b5c307c048cd012e43413dad">fit_order_linear</a> (cpl_table *singletrace, int order, double KAPPA, double *slope)</td></tr>
-<tr class="memdesc:ga63321f80b5c307c048cd012e43413dad"><td class="mdescLeft"> </td><td class="mdescRight">Make a linear fit of an order trace.  <a href="#ga63321f80b5c307c048cd012e43413dad"></a><br/></td></tr>
-<tr class="memitem:ga298b3cff7b38cee645a3155095f84981"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#ga298b3cff7b38cee645a3155095f84981">get_xcenter</a> (int nx, int ny, cpl_table *ordertable, int row)</td></tr>
-<tr class="memdesc:ga298b3cff7b38cee645a3155095f84981"><td class="mdescLeft"> </td><td class="mdescRight">Calculate the x-center of an order.  <a href="#ga298b3cff7b38cee645a3155095f84981"></a><br/></td></tr>
-<tr class="memitem:gad2aa37539bc348053e032bb462c4fc2f"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#gad2aa37539bc348053e032bb462c4fc2f">get_ycenter</a> (int nx, int ny, cpl_table *ordertable, int row)</td></tr>
-<tr class="memdesc:gad2aa37539bc348053e032bb462c4fc2f"><td class="mdescLeft"> </td><td class="mdescRight">Calculate the y-center of an order.  <a href="#gad2aa37539bc348053e032bb462c4fc2f"></a><br/></td></tr>
-<tr class="memitem:gaee8ec7c4e8d83a1ef168f5c1c7c485a7"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#gaee8ec7c4e8d83a1ef168f5c1c7c485a7">get_orderlength</a> (int nx, int ny, cpl_table *ordertable, int row)</td></tr>
-<tr class="memdesc:gaee8ec7c4e8d83a1ef168f5c1c7c485a7"><td class="mdescLeft"> </td><td class="mdescRight">Calculate the length of an order line.  <a href="#gaee8ec7c4e8d83a1ef168f5c1c7c485a7"></a><br/></td></tr>
-<tr class="memitem:ga1b3faad60deb05543392b7d0761c42e2"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#ga1b3faad60deb05543392b7d0761c42e2">estimate_threshold</a> (const cpl_image *inputimage, const cpl_image *noise, cpl_table *ordertable, int row, double relative_threshold)</td></tr>
-<tr class="memdesc:ga1b3faad60deb05543392b7d0761c42e2"><td class="mdescLeft"> </td><td class="mdescRight">Calculate threshold for order tracing algorithm.  <a href="#ga1b3faad60deb05543392b7d0761c42e2"></a><br/></td></tr>
-<tr class="memitem:ga940d9bec43c7580b6044ccc0781f6508"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#ga940d9bec43c7580b6044ccc0781f6508">find_centroid</a> (const cpl_image *inputimage, const cpl_image *noise, const cpl_binary *image_bad, double threshold, int spacing, int x, double *yguess, double *dY)</td></tr>
-<tr class="memdesc:ga940d9bec43c7580b6044ccc0781f6508"><td class="mdescLeft"> </td><td class="mdescRight">Find order line centroid.  <a href="#ga940d9bec43c7580b6044ccc0781f6508"></a><br/></td></tr>
-<tr class="memitem:ga24ea1bc4c54b9e30dc5cb6edb0671ec2"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#ga24ea1bc4c54b9e30dc5cb6edb0671ec2">uves_locate_orders</a> (const cpl_image *inputimage, const cpl_image *noise, cpl_table *ordertable, int TRACESTEP, double MINTHRESH, double MAXGAP, double MAXRMS, int *DEFPOL1, int *DEFPOL2, double KAPPA, <a class="el" href="struct__polynom [...]
-<tr class="memdesc:ga24ea1bc4c54b9e30dc5cb6edb0671ec2"><td class="mdescLeft"> </td><td class="mdescRight">Trace all orders.  <a href="#ga24ea1bc4c54b9e30dc5cb6edb0671ec2"></a><br/></td></tr>
-<tr class="memitem:ga10eb92856d9393ba040c2955f504cb71"><td class="memItemLeft" align="right" valign="top">static cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#ga10eb92856d9393ba040c2955f504cb71">detect_lines</a> (cpl_image *htrans, int minintersept, const cpl_image *inputimage, int NORDERS, bool norders_is_guess, int SAMPLEWIDTH, double PTHRES, double MINSLOPE, double MAXSLOPE, int SLOPERES, bool consecutive)</td></tr>
-<tr class="memdesc:ga10eb92856d9393ba040c2955f504cb71"><td class="mdescLeft"> </td><td class="mdescRight">Detect order lines from the Hough image.  <a href="#ga10eb92856d9393ba040c2955f504cb71"></a><br/></td></tr>
-<tr class="memitem:ga0916288fc020f46150a3050ee529e2be"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#ga0916288fc020f46150a3050ee529e2be">delete_peak</a> (cpl_image *htrans, int minintersept, int hxmax, int hymax, int SPACING, int imagewidth, int SAMPLEWIDTH, double MINSLOPE, double MAXSLOPE, int SLOPERES)</td></tr>
-<tr class="memdesc:ga0916288fc020f46150a3050ee529e2be"><td class="mdescLeft"> </td><td class="mdescRight">Delete peak in Hough image.  <a href="#ga0916288fc020f46150a3050ee529e2be"></a><br/></td></tr>
-<tr class="memitem:gad50db3ef4566d0ff652423541aaf8790"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#gad50db3ef4566d0ff652423541aaf8790">firsttrace</a> (int nx, int SAMPLEWIDTH)</td></tr>
-<tr class="memdesc:gad50db3ef4566d0ff652423541aaf8790"><td class="mdescLeft"> </td><td class="mdescRight">Get the first trace column.  <a href="#gad50db3ef4566d0ff652423541aaf8790"></a><br/></td></tr>
-<tr class="memitem:ga0830b05ef03423ceca86b6386123f26d"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#ga0830b05ef03423ceca86b6386123f26d">calculate_spacing</a> (const cpl_image *image, int x)</td></tr>
-<tr class="memdesc:ga0830b05ef03423ceca86b6386123f26d"><td class="mdescLeft"> </td><td class="mdescRight">Estimate spacing of order lines.  <a href="#ga0830b05ef03423ceca86b6386123f26d"></a><br/></td></tr>
-<tr class="memitem:ga8be5990f31b99ed6a4582388982f1b12"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#ga8be5990f31b99ed6a4582388982f1b12">autocorr</a> (const cpl_image *image, const int x, const int shift)</td></tr>
-<tr class="memdesc:ga8be5990f31b99ed6a4582388982f1b12"><td class="mdescLeft"> </td><td class="mdescRight">Calculate auto-correlation function of image column.  <a href="#ga8be5990f31b99ed6a4582388982f1b12"></a><br/></td></tr>
-<tr class="memitem:gab7f87424906c5f0eef60d4de2ce4a01f"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#gab7f87424906c5f0eef60d4de2ce4a01f">update_max</a> (const cpl_image *htrans, int *xmax, int *ymax, int SPACING, int imagewidth, int SAMPLEWIDTH, double MINSLOPE, double MAXSLOPE, int SLOPERES)</td></tr>
-<tr class="memdesc:gab7f87424906c5f0eef60d4de2ce4a01f"><td class="mdescLeft"> </td><td class="mdescRight">Improve position of a peak in the Hough image.  <a href="#gab7f87424906c5f0eef60d4de2ce4a01f"></a><br/></td></tr>
-<tr class="memitem:gaa46ac08a5a64f9d633d8c7735a0aeb64"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#gaa46ac08a5a64f9d633d8c7735a0aeb64">uves_hough</a> (const cpl_image *image, int ymin, int ymax, int NORDERS, bool norders_is_guess, int SAMPLEWIDTH, double PTHRES, double MINSLOPE, double MAXSLOPE, int SLOPERES, bool consecutive, cpl_image **htrans, cpl_image **htrans_origina [...]
-<tr class="memdesc:gaa46ac08a5a64f9d633d8c7735a0aeb64"><td class="mdescLeft"> </td><td class="mdescRight">Compute Hough transform and detect lines.  <a href="#gaa46ac08a5a64f9d633d8c7735a0aeb64"></a><br/></td></tr>
-<tr class="memitem:ga3d0f9d7641a1bb0eb356813c8d179ddb"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__orderpos.html#ga3d0f9d7641a1bb0eb356813c8d179ddb">uves_draw_orders</a> (const cpl_table *ordertable, cpl_image *image)</td></tr>
-<tr class="memdesc:ga3d0f9d7641a1bb0eb356813c8d179ddb"><td class="mdescLeft"> </td><td class="mdescRight">Draw detected order lines.  <a href="#ga3d0f9d7641a1bb0eb356813c8d179ddb"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This recipe determines the echelle order locations. See man-page for details. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga2fcc313cc2f28775bd7aef5abb670751"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_table * trace_order </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>inputimage</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_binary * </td>
-          <td class="paramname"><em>image_bad</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>TRACESTEP</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MAXGAP</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Trace a single order line. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ordertable</td><td>Basic order table </td></tr>
-    <tr><td class="paramname">order</td><td>(Relative) number of order to trace </td></tr>
-    <tr><td class="paramname">inputimage</td><td>The input image </td></tr>
-    <tr><td class="paramname">image_bad</td><td>image bad pixel map </td></tr>
-    <tr><td class="paramname">noise</td><td>Noise of input image </td></tr>
-    <tr><td class="paramname">TRACESTEP</td><td>The step size (i.e. x-increment) used when tracing </td></tr>
-    <tr><td class="paramname">MAXGAP</td><td>The maximum gap length to jump (in units of image width) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A table defining the order trace, or NULL on error</dd></dl>
-<p>The order is traced in both directions starting from the center of the order (which is inferred from the slopes and intersepts read from the provided <em>ordertable</em>).</p>
-<p>The order line is sampled at x-positions seperated by the parameter <em>TRACESTEP</em>. At each x-position, the y-centroid of the order is calculated. The trace stops if the intensity of the order line is below a certain threshold value in a range determined by the parameter <em>MAXGAP</em>.</p>
-<p>The order is traced as far as possible using the lowest threshold value.</p>
-<p>The returned table contains three columns, <em>'X'</em>, <em>'Y'</em> (describing the trace of the order) and <em>'dY'</em> (uncertainty of <em>'Y'</em>). </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__follow_8c_source.html#l01127">1127</a> of file <a class="el" href="uves__orderpos__follow_8c_source.html">uves_orderpos_follow.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__orderpos__follow_8c_source.html#l01600">find_centroid()</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves__wavecal__search_8c_source.html#l00696">xcenter()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l00250">uves_locate_orders()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga9ec0c0699858aa2709832fdf9732abee"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int count_orders </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>tracetable</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Count orders in trace table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tracetable</td><td>The order trace table </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Number of different values present in the column <em>'Order'</em> </dd></dl>
-<p>/*/ /*—————————————————————————- </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__follow_8c_source.html#l00948">948</a> of file <a class="el" href="uves__orderpos__follow_8c_source.html">uves_orderpos_follow.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00207">passure</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l00250">uves_locate_orders()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga63321f80b5c307c048cd012e43413dad"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double fit_order_linear </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>singletrace</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>KAPPA</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>slope</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Make a linear fit of an order trace. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">singletrace</td><td>Order table containing a single order </td></tr>
-    <tr><td class="paramname">order</td><td>(Relative) number of the order to fit (used only for messaging) </td></tr>
-    <tr><td class="paramname">KAPPA</td><td>Value used for kappa-sigma clipping </td></tr>
-    <tr><td class="paramname">slope</td><td>(output) from linear fit </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The RMS error of the fit, or undefined on error.</dd></dl>
-<p>The function fits a straight line to the specified order and returns the RMS error of the fit. The columns <em>'Polynomial</em> fit', <em>'Residual_Square'</em> and <em>'OrderRMS'</em> (containing the RMS at every row) are added to the table. </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__follow_8c_source.html#l00992">992</a> of file <a class="el" href="uves__orderpos__follow_8c_source.html">uves_orderpos_follow.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00674">uves_polynomial_evaluate_1d()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01172">uves_ [...]
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l00250">uves_locate_orders()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga298b3cff7b38cee645a3155095f84981"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int get_xcenter </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ny</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Calculate the x-center of an order. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">nx</td><td>Width of input image </td></tr>
-    <tr><td class="paramname">ny</td><td>Height of input image </td></tr>
-    <tr><td class="paramname">ordertable</td><td>Basic order table </td></tr>
-    <tr><td class="paramname">row</td><td>Row of order table to use </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>X-coordinate of the order line center</dd></dl>
-<p>Note that the line center is different from <em>nx</em> / 2, if the order line crosses the upper or low boundary of the image. </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__follow_8c_source.html#l01374">1374</a> of file <a class="el" href="uves__orderpos__follow_8c_source.html">uves_orderpos_follow.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l01426">get_ycenter()</a>, and <a class="el" href="uves__orderpos__follow_8c_source.html#l00250">uves_locate_orders()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad2aa37539bc348053e032bb462c4fc2f"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int get_ycenter </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ny</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Calculate the y-center of an order. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">nx</td><td>Width of input image </td></tr>
-    <tr><td class="paramname">ny</td><td>Height of input image </td></tr>
-    <tr><td class="paramname">ordertable</td><td>Basic order table </td></tr>
-    <tr><td class="paramname">row</td><td>Row of order table to use </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Y-coordinate of the order line center</dd></dl>
-<p>See <code><a class="el" href="group__uves__orderpos.html#ga298b3cff7b38cee645a3155095f84981" title="Calculate the x-center of an order.">get_xcenter()</a></code> . </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__follow_8c_source.html#l01426">1426</a> of file <a class="el" href="uves__orderpos__follow_8c_source.html">uves_orderpos_follow.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__orderpos__follow_8c_source.html#l01374">get_xcenter()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l00250">uves_locate_orders()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaee8ec7c4e8d83a1ef168f5c1c7c485a7"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int get_orderlength </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ny</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Calculate the length of an order line. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">nx</td><td>Width of input image </td></tr>
-    <tr><td class="paramname">ny</td><td>Height of input image </td></tr>
-    <tr><td class="paramname">ordertable</td><td>Basic order table </td></tr>
-    <tr><td class="paramname">row</td><td>Row of order table to use </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Order line length</dd></dl>
-<p>The function returns (<em>x1</em> - <em>x0</em>) where <em>x1</em> and <em>x0</em> are the x-coordinates of the line's endpoints. </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__follow_8c_source.html#l01325">1325</a> of file <a class="el" href="uves__orderpos__follow_8c_source.html">uves_orderpos_follow.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l00250">uves_locate_orders()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1b3faad60deb05543392b7d0761c42e2"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double estimate_threshold </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>inputimage</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>relative_threshold</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Calculate threshold for order tracing algorithm. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">inputimage</td><td>The input image </td></tr>
-    <tr><td class="paramname">noise</td><td>Noise of input image </td></tr>
-    <tr><td class="paramname">ordertable</td><td>Basic order table </td></tr>
-    <tr><td class="paramname">row</td><td>Row of order table to use </td></tr>
-    <tr><td class="paramname">relative_threshold</td><td>Parameter defining the threshold to calculate (see text) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The calculated threshold</dd></dl>
-<p>This function calculates the threshold levels used by the order tracing algorithm. The threshold computed is <em>min</em> + <em>relative_threshold</em> * (<em>max</em> - <em>min</em>), where <em>min</em> and <em>max</em> are the minimum and maximum pixel values at the center column of the order. The threshold is always above the noise level. </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__follow_8c_source.html#l01459">1459</a> of file <a class="el" href="uves__orderpos__follow_8c_source.html">uves_orderpos_follow.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l00250">uves_locate_orders()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga940d9bec43c7580b6044ccc0781f6508"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static bool find_centroid </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>inputimage</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_binary * </td>
-          <td class="paramname"><em>image_bad</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>threshold</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>spacing</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>yguess</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>dY</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Find order line centroid. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">inputimage</td><td>The input image </td></tr>
-    <tr><td class="paramname">noise</td><td>Noise of input image </td></tr>
-    <tr><td class="paramname">image_bad</td><td>Image bad pixel map </td></tr>
-    <tr><td class="paramname">threshold</td><td>Detection threshold </td></tr>
-    <tr><td class="paramname">spacing</td><td>Approximate distance between orders (near this order) </td></tr>
-    <tr><td class="paramname">x</td><td>Find centroid in this column </td></tr>
-    <tr><td class="paramname">yguess</td><td>Guess location of centroid, will be updated with centroid location </td></tr>
-    <tr><td class="paramname">dY</td><td>The uncertainty (which is 'returned') associated with <em>yguess</em>. If this (positive number) cannot be calculated, the variable is set to -1. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>true if the order line could be traced at this <em>x</em>, false otherwise</dd></dl>
-<p>The function calculates the centroid of the vertical strip containing <em>yguess</em>.</p>
-<p>All pixels above half peak maximum contribute to the centroid calculation, and the centroid position is refined by making a gaussian fit. Additionally, the function returns true, if the peak intensity is more than 10 <em>sigma</em>, where <em>sigma</em> is the RMS error of the gaussian fit. </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__follow_8c_source.html#l01600">1600</a> of file <a class="el" href="uves__orderpos__follow_8c_source.html">uves_orderpos_follow.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__error_8h_source.html#l00215">uves_error_reset</a>, <a class="el" href="uves__utils_8c_source.html#l04288">uves_gauss()</a>, <a class="el" href="uves__utils_8c_source.html#l04343">uves_gauss_derivative()</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l01127">trace_order()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga24ea1bc4c54b9e30dc5cb6edb0671ec2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* uves_locate_orders </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>inputimage</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>TRACESTEP</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MINTHRESH</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MAXGAP</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MAXRMS</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>DEFPOL1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>DEFPOL2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>KAPPA</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td>
-          <td class="paramname"><em>bivariate_fit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>orders_traced</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Trace all orders. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">inputimage</td><td>The input echelle image </td></tr>
-    <tr><td class="paramname">noise</td><td>Noise of input image </td></tr>
-    <tr><td class="paramname">ordertable</td><td>The basic order table (one row pr. order) </td></tr>
-    <tr><td class="paramname">TRACESTEP</td><td>See <code><a class="el" href="group__uves__orderpos.html#ga2fcc313cc2f28775bd7aef5abb670751" title="Trace a single order line.">trace_order()</a></code> </td></tr>
-    <tr><td class="paramname">MINTHRESH</td><td>See <code><a class="el" href="group__uves__orderpos.html#ga2fcc313cc2f28775bd7aef5abb670751" title="Trace a single order line.">trace_order()</a></code> </td></tr>
-    <tr><td class="paramname">MAXGAP</td><td>See <code><a class="el" href="group__uves__orderpos.html#ga2fcc313cc2f28775bd7aef5abb670751" title="Trace a single order line.">trace_order()</a></code> </td></tr>
-    <tr><td class="paramname">MAXRMS</td><td>Individual orders are rejected if RMS of a linear fit of the order is larger than <em>MAXRMS</em> * <em>mRMS</em>, where <em>mRMS</em> is the median of all order's RMSs. </td></tr>
-    <tr><td class="paramname">DEFPOL1</td><td>Degree of global fit (as function of x) If negative, will be set to actual degree used </td></tr>
-    <tr><td class="paramname">DEFPOL2</td><td>Degree of global fit (as function of order number) If negative, will be set to actual degree used </td></tr>
-    <tr><td class="paramname">KAPPA</td><td>Kappa used for kappa-sigma clipping of linear fits and final global fit </td></tr>
-    <tr><td class="paramname">bivariate_fit</td><td>(output) The global fit of order positions </td></tr>
-    <tr><td class="paramname">orders_traced</td><td>(output) Number of orders detected </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The order trace table, or NULL on error</dd></dl>
-<p>This function creates the order trace table starting from the basic <em>ordertable</em> which contains the (guess) order line slopes and intersepts.</p>
-<ul>
-<li>First, all orders are traced in both directions starting from the center which is inferred from the <em>'Slope'</em> and <em>'Intersept'</em> columns of the <em>ordertable</em> . The detection threshold used for a certain order is <em>min</em> + <em>MINTHRESH</em> * (<em>max</em> - <em>min</em>), where <em>min</em> and <em>max</em> are the minimum and maximum pixel values at the center column of that order. See also <code><a class="el" href="group__uves__orderpos.html#ga2fcc313cc2f28 [...]
-</ul>
-<ul>
-<li>Then each order is fitted with a straight line, and the entire order is rejected if the RMS is too large.</li>
-</ul>
-<ul>
-<li>A global polynomial of degree (<em>DEFPOL1</em>, <em>DEFPOL2</em>) is fitted to all orders, and individual points are rejected using kappa-sigma clipping. </li>
-</ul>
-
-<p>Definition at line <a class="el" href="uves__orderpos__follow_8c_source.html#l00250">250</a> of file <a class="el" href="uves__orderpos__follow_8c_source.html">uves_orderpos_follow.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__orderpos__follow_8c_source.html#l00948">count_orders()</a>, <a class="el" href="uves__orderpos__follow_8c_source.html#l01459">estimate_threshold()</a>, <a class="el" href="uves__orderpos__follow_8c_source.html#l00992">fit_order_linear()</a>, [...]
-
-</div>
-</div>
-<a class="anchor" id="ga10eb92856d9393ba040c2955f504cb71"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_table * detect_lines </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>htrans</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>minintersept</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>inputimage</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>NORDERS</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>norders_is_guess</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>SAMPLEWIDTH</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>PTHRES</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MINSLOPE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MAXSLOPE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>SLOPERES</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>consecutive</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Detect order lines from the Hough image. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">htrans</td><td>The Hough transform image (detected features will be deleted) </td></tr>
-    <tr><td class="paramname">minintersept</td><td>Minimum intersept represented in Hough image </td></tr>
-    <tr><td class="paramname">inputimage</td><td>The raw image </td></tr>
-    <tr><td class="paramname">NORDERS</td><td>The number of orders to detect </td></tr>
-    <tr><td class="paramname">norders_is_guess</td><td>Flag indicating if we are allowed detect fewer orders than specified by <em>NORDERS</em>. </td></tr>
-    <tr><td class="paramname">SAMPLEWIDTH</td><td>The seperation of sample traces in the raw image </td></tr>
-    <tr><td class="paramname">PTHRES</td><td>If <em>NORDERS</em> is zero, or if <em>norders_is_guess</em> is true, this is the threshold used for peak detection (detection stops when intensity drops to below PTHRES * (previous intensity)) </td></tr>
-    <tr><td class="paramname">MINSLOPE</td><td>Minimum line slope to search for </td></tr>
-    <tr><td class="paramname">MAXSLOPE</td><td>Maximum line slope to search for </td></tr>
-    <tr><td class="paramname">SLOPERES</td><td>Width of Hough image </td></tr>
-    <tr><td class="paramname">consecutive</td><td>If true, orders are not assumed to be consecutive </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE A table describing the detected lines</dd></dl>
-<p>This function locates the peaks in the input Hough image. After detecting a peak, the peak itself and the area around it are deleted to avoid several detections of the same feature (see <code><a class="el" href="group__uves__orderpos.html#ga0916288fc020f46150a3050ee529e2be" title="Delete peak in Hough image.">delete_peak()</a></code> ).</p>
-<p>The peak locations are initially defined as the local maximum points but are refined by calculating the centroid of the local area around the maximum (see <code><a class="el" href="group__uves__orderpos.html#gab7f87424906c5f0eef60d4de2ce4a01f" title="Improve position of a peak in the Hough image.">update_max()</a></code> ).</p>
-<p>The number of order lines to detect is specified by the parameter <em>NORDERS</em>. If this parameter is set to zero, the function will detect lines until the intensity of the next candidate drops to below <em>PTHRES</em> times the dimmest line (<em>PTHRES</em> must be between 0 and 1; if <em>norders_is_guess</em> is false, the parameter <em>PTHRES</em> is ignored).</p>
-<p>An important parameter for the peak removal to work is the (approximate) interorder spacing. This parameter is estimated as the raw image height divided by the predicted number of orders (<em>NORDERS</em>). In automatic mode it is estimated as the first minimum of the auto-correlation function along the column in the Hough image containing the global maximum. Note that these methods assume that the inter order spacing does not vary too much as function of order number.</p>
-<p>The results of the detection are written to the returned table in the columns <em>'Slope'</em> (slope of order), <em>'Intersept'</em> (y-intersept of order) and <em>'Spacing'</em> (appropriate interorder distance at this order). The table is sorted according to <em>'Intersept'</em>. The column <em>'Order'</em> is a label of the order number starting from 1. </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__hough_8c_source.html#l00398">398</a> of file <a class="el" href="uves__orderpos__hough_8c_source.html">uves_orderpos_hough.c</a>.</p>
-
-<p>References <a class="el" href="uves__orderpos__hough_8c_source.html#l00837">calculate_spacing()</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__orderpos__hough_8c_source.html#l00966">delete_peak()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__orderpos__hough_8c_source.html#l00756">update_max()</a>, <a class="el" h [...]
-
-<p>Referenced by <a class="el" href="uves__orderpos__hough_8c_source.html#l00194">uves_hough()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0916288fc020f46150a3050ee529e2be"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code delete_peak </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>htrans</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>minintersept</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>hxmax</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>hymax</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>SPACING</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>imagewidth</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>SAMPLEWIDTH</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MINSLOPE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MAXSLOPE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>SLOPERES</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Delete peak in Hough image. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">htrans</td><td>The Hough transform </td></tr>
-    <tr><td class="paramname">minintersept</td><td>The minimum intersept represented in Hough space </td></tr>
-    <tr><td class="paramname">hxmax</td><td>X-position of peak in Hough space </td></tr>
-    <tr><td class="paramname">hymax</td><td>Y-position of peak in Hough space </td></tr>
-    <tr><td class="paramname">SPACING</td><td>Spacing of order lines </td></tr>
-    <tr><td class="paramname">imagewidth</td><td>Width of raw image </td></tr>
-    <tr><td class="paramname">SAMPLEWIDTH</td><td>Width between traces on raw image </td></tr>
-    <tr><td class="paramname">MINSLOPE</td><td>Minimum line slope to search for </td></tr>
-    <tr><td class="paramname">MAXSLOPE</td><td>Maximum line slope to search for </td></tr>
-    <tr><td class="paramname">SLOPERES</td><td>Width of Hough image </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay</dd></dl>
-<p>This function deletes a (previously detected) peak in Hough space, and the butterfly shaped area around the peak.</p>
-<p>The peak location (in Hough space) is mapped to a line in the input image (using the inverse Hough transformation). The Hough transform of this (one-dimensional) line is a (two-dimensional) butterfly-shaped area, which is then removed. See code for details. </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__hough_8c_source.html#l00966">966</a> of file <a class="el" href="uves__orderpos__hough_8c_source.html">uves_orderpos_hough.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__orderpos__hough_8c_source.html#l00930">firsttrace()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__hough_8c_source.html#l00398">detect_lines()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad50db3ef4566d0ff652423541aaf8790"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int firsttrace </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>SAMPLEWIDTH</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get the first trace column. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">nx</td><td>Width of raw image </td></tr>
-    <tr><td class="paramname">SAMPLEWIDTH</td><td>Separation between traces in raw image </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The x-position of the first trace column</dd></dl>
-<p>The function returns the location of the first trace column of the raw image. The location is defined smallest value greater than 0 of (<em>nx</em> / 2 - N * <em>SAMPLEWIDTH</em>), where N is an integer. This ensures that there is always a sample column at <em>nx/2</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__hough_8c_source.html#l00930">930</a> of file <a class="el" href="uves__orderpos__hough_8c_source.html">uves_orderpos_hough.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__hough_8c_source.html#l00966">delete_peak()</a>, and <a class="el" href="uves__orderpos__hough_8c_source.html#l00194">uves_hough()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0830b05ef03423ceca86b6386123f26d"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int calculate_spacing </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>x</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Estimate spacing of order lines. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The Hough transform </td></tr>
-    <tr><td class="paramname">x</td><td>The column to look at </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The estimated order spacing</dd></dl>
-<p>The function estimates the interorder spacing as two times the first minimum point of the auto-correlation function along the column at <em>x</em> in the Hough image. </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__hough_8c_source.html#l00837">837</a> of file <a class="el" href="uves__orderpos__hough_8c_source.html">uves_orderpos_hough.c</a>.</p>
-
-<p>References <a class="el" href="uves__orderpos__hough_8c_source.html#l00875">autocorr()</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__hough_8c_source.html#l00398">detect_lines()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8be5990f31b99ed6a4582388982f1b12"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double autocorr </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>shift</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Calculate auto-correlation function of image column. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The image </td></tr>
-    <tr><td class="paramname">x</td><td>The column to look at </td></tr>
-    <tr><td class="paramname">shift</td><td>Where to evaluate the auto-correlation function </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The auto-correlation function</dd></dl>
-<p>The function returns image(<em>x</em>, <em>y</em>) * image(<em>x</em>, <em>y</em> + <em>shift</em>)) The average is over <em>y-values</em> ranging from 1 to <em>ny</em> - <em>shift</em> (both inclusive). </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__hough_8c_source.html#l00875">875</a> of file <a class="el" href="uves__orderpos__hough_8c_source.html">uves_orderpos_hough.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__hough_8c_source.html#l00837">calculate_spacing()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab7f87424906c5f0eef60d4de2ce4a01f"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code update_max </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>htrans</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>xmax</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>ymax</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>SPACING</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>imagewidth</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>SAMPLEWIDTH</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MINSLOPE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MAXSLOPE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>SLOPERES</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Improve position of a peak in the Hough image. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">htrans</td><td>The Hough transform </td></tr>
-    <tr><td class="paramname">xmax</td><td>Peak x-position which will be updated </td></tr>
-    <tr><td class="paramname">ymax</td><td>Peak Y-position which will be updated </td></tr>
-    <tr><td class="paramname">SPACING</td><td>Spacing of order lines </td></tr>
-    <tr><td class="paramname">imagewidth</td><td>Width of raw image </td></tr>
-    <tr><td class="paramname">SAMPLEWIDTH</td><td>Separation between traces in raw image </td></tr>
-    <tr><td class="paramname">MINSLOPE</td><td>Minimum line slope to search for </td></tr>
-    <tr><td class="paramname">MAXSLOPE</td><td>Maximum line slope to search for </td></tr>
-    <tr><td class="paramname">SLOPERES</td><td>Width of Hough image </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay</dd></dl>
-<p>This function improves a peak position (from the max. pixel value) to the center of mass of a line passing through the middle of the 'butterfly wings' in hough space. The slope of this line in Hough space is ( -(width of input image) / 2 ).</p>
-<p>Only pixels with values above ( (1 - 0.5 / <em>NOT</em>) * <em>peak_value</em> ) contribute to the calculation of the centroid. (Here <em>NOT</em> is the number of sample traces in the input image, and <em>peak_value</em> is the pixel value of the detected maximum.) </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__hough_8c_source.html#l00756">756</a> of file <a class="el" href="uves__orderpos__hough_8c_source.html">uves_orderpos_hough.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__hough_8c_source.html#l00398">detect_lines()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa46ac08a5a64f9d633d8c7735a0aeb64"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* uves_hough </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ymin</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ymax</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>NORDERS</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>norders_is_guess</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>SAMPLEWIDTH</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>PTHRES</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MINSLOPE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MAXSLOPE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>SLOPERES</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>consecutive</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>htrans</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>htrans_original</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Compute Hough transform and detect lines. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>Input image </td></tr>
-    <tr><td class="paramname">ymin</td><td>First image row to consider (inclusive, FITS convention) </td></tr>
-    <tr><td class="paramname">ymax</td><td>Last image row to consider (inclusive, FITS convention) </td></tr>
-    <tr><td class="paramname">NORDERS</td><td>The number of orders to detect, or zero </td></tr>
-    <tr><td class="paramname">norders_is_guess</td><td>Flag indicating if we are allowed detect fewer orders than specified by <em>NORDERS</em>. </td></tr>
-    <tr><td class="paramname">SAMPLEWIDTH</td><td>The seperation of sample traces in input image </td></tr>
-    <tr><td class="paramname">PTHRES</td><td>In automatic mode, the ratio between the dimmest and next-dimmest line </td></tr>
-    <tr><td class="paramname">MINSLOPE</td><td>Minimum line slope </td></tr>
-    <tr><td class="paramname">MAXSLOPE</td><td>Maximum line slope </td></tr>
-    <tr><td class="paramname">SLOPERES</td><td>Width of Hough image (number of slopes represented) </td></tr>
-    <tr><td class="paramname">consecutive</td><td>If true, orders are assumed to be consecutive </td></tr>
-    <tr><td class="paramname">htrans</td><td>(output) computed Hough transform with peaks deleted </td></tr>
-    <tr><td class="paramname">htrans_original</td><td>(output) computed Hough transform (returned) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Table describing the detected lines (see <code><a class="el" href="group__uves__orderpos.html#ga10eb92856d9393ba040c2955f504cb71" title="Detect order lines from the Hough image.">detect_lines()</a></code> for details )</dd></dl>
-<p>This function computes the Hough transform of the image <em>image</em>. The input image is traced along vertical lines seperated by <em>SAMPLEWIDTH</em>.</p>
-<p>See also <code><a class="el" href="group__uves__orderpos.html#ga10eb92856d9393ba040c2955f504cb71" title="Detect order lines from the Hough image.">detect_lines()</a></code>.</p>
-<p>Possible order line slopes range from <em>MINSLOPE</em> to <em>MAXSLOPE</em> . The function assumes that all slopes are positive and small. To detect lines with slopes larger than 0.3 - 0.5 or so, the algorithm should be changed to use polar (i.e. rotation invariant) coordinates in Hough space. </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__hough_8c_source.html#l00194">194</a> of file <a class="el" href="uves__orderpos__hough_8c_source.html">uves_orderpos_hough.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__orderpos__hough_8c_source.html#l00398">detect_lines()</a>, <a class="el" href="uves__orderpos__hough_8c_source.html#l00930">firsttrace()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8 [...]
-
-</div>
-</div>
-<a class="anchor" id="ga3d0f9d7641a1bb0eb356813c8d179ddb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_draw_orders </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>image</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Draw detected order lines. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ordertable</td><td>The order table </td></tr>
-    <tr><td class="paramname">image</td><td>The image to draw on </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay</dd></dl>
-<p>This function draws on the input <em>image</em> the lines listed in the provided order table. The intersept and slope of the lines are read from the order table. </p>
-
-<p>Definition at line <a class="el" href="uves__orderpos__hough_8c_source.html#l01018">1018</a> of file <a class="el" href="uves__orderpos__hough_8c_source.html">uves_orderpos_hough.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__error_8h_source.html#l00207">passure</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__pfits.html b/html/group__uves__pfits.html
deleted file mode 100644
index d646206..0000000
--- a/html/group__uves__pfits.html
+++ /dev/null
@@ -1,5404 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: FITS header protected access</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">FITS header protected access</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga88d114f3cb4427cf679e9f7b7696bcd9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga88d114f3cb4427cf679e9f7b7696bcd9">uves_pfits_get_slit3_x1encoder</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga88d114f3cb4427cf679e9f7b7696bcd9"><td class="mdescLeft"> </td><td class="mdescRight">find out the value of UVES_ENCODER_REF1  <a href="#ga88d114f3cb4427cf679e9f7b7696bcd9"></a><br/></td></tr>
-<tr class="memitem:ga12fe6f500e105193aa9faae4258ef51d"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga12fe6f500e105193aa9faae4258ef51d">uves_pfits_get_slit3_x2encoder</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga12fe6f500e105193aa9faae4258ef51d"><td class="mdescLeft"> </td><td class="mdescRight">find out the value of UVES_ENCODER_REF2  <a href="#ga12fe6f500e105193aa9faae4258ef51d"></a><br/></td></tr>
-<tr class="memitem:ga87cd5104b9b26f1655958f6f533fcfc2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga87cd5104b9b26f1655958f6f533fcfc2">uves_pfits_get_maxfibres</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga87cd5104b9b26f1655958f6f533fcfc2"><td class="mdescLeft"> </td><td class="mdescRight">find out the frame  <a href="#ga87cd5104b9b26f1655958f6f533fcfc2"></a><br/></td></tr>
-<tr class="memitem:ga4ee5f11b825d519d1a9aafb561e0d6f7"><td class="memItemLeft" align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga4ee5f11b825d519d1a9aafb561e0d6f7">uves_pfits_get_chipchoice</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga4ee5f11b825d519d1a9aafb561e0d6f7"><td class="mdescLeft"> </td><td class="mdescRight">find out the frame  <a href="#ga4ee5f11b825d519d1a9aafb561e0d6f7"></a><br/></td></tr>
-<tr class="memitem:ga8dc9fde0148605eee9109beca930f79e"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga8dc9fde0148605eee9109beca930f79e">uves_pfits_get_badpxframe</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga8dc9fde0148605eee9109beca930f79e"><td class="mdescLeft"> </td><td class="mdescRight">find out the frame  <a href="#ga8dc9fde0148605eee9109beca930f79e"></a><br/></td></tr>
-<tr class="memitem:gaabb5de1c212917f34b94de1c1587104d"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaabb5de1c212917f34b94de1c1587104d">uves_pfits_get_ambipress</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaabb5de1c212917f34b94de1c1587104d"><td class="mdescLeft"> </td><td class="mdescRight">find out the arcfile  <a href="#gaabb5de1c212917f34b94de1c1587104d"></a><br/></td></tr>
-<tr class="memitem:ga2cc76a99674d90a86d9d7174f33dc893"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga2cc76a99674d90a86d9d7174f33dc893">uves_pfits_get_arcfile</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga2cc76a99674d90a86d9d7174f33dc893"><td class="mdescLeft"> </td><td class="mdescRight">find out the arcfile  <a href="#ga2cc76a99674d90a86d9d7174f33dc893"></a><br/></td></tr>
-<tr class="memitem:ga25f5bbe03eaa1b8eede6c45d1c92daf3"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga25f5bbe03eaa1b8eede6c45d1c92daf3">uves_flames_pfits_get_ident</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga25f5bbe03eaa1b8eede6c45d1c92daf3"><td class="mdescLeft"> </td><td class="mdescRight">find out the ident  <a href="#ga25f5bbe03eaa1b8eede6c45d1c92daf3"></a><br/></td></tr>
-<tr class="memitem:ga81aff5981269ff140a1baca2df392f1b"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga81aff5981269ff140a1baca2df392f1b">uves_flames_pfits_get_object</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga81aff5981269ff140a1baca2df392f1b"><td class="mdescLeft"> </td><td class="mdescRight">find out the OBJECT  <a href="#ga81aff5981269ff140a1baca2df392f1b"></a><br/></td></tr>
-<tr class="memitem:ga0ecbcc40cde47dcccdc6e61f987cf94e"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga0ecbcc40cde47dcccdc6e61f987cf94e">uves_pfits_get_origfile</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga0ecbcc40cde47dcccdc6e61f987cf94e"><td class="mdescLeft"> </td><td class="mdescRight">find out the origfile  <a href="#ga0ecbcc40cde47dcccdc6e61f987cf94e"></a><br/></td></tr>
-<tr class="memitem:ga29aa57ccf95058c909572ed494be97b1"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga29aa57ccf95058c909572ed494be97b1">uves_pfits_get_pipefile</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga29aa57ccf95058c909572ed494be97b1"><td class="mdescLeft"> </td><td class="mdescRight">find out the pipefile  <a href="#ga29aa57ccf95058c909572ed494be97b1"></a><br/></td></tr>
-<tr class="memitem:ga2b39689fbd7baa3e56d34c2200317649"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga2b39689fbd7baa3e56d34c2200317649">uves_pfits_get_rec1raw1name</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga2b39689fbd7baa3e56d34c2200317649"><td class="mdescLeft"> </td><td class="mdescRight">find out the arcfile  <a href="#ga2b39689fbd7baa3e56d34c2200317649"></a><br/></td></tr>
-<tr class="memitem:gaf694501f3a20536e64cad6efc2a0e5b5"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaf694501f3a20536e64cad6efc2a0e5b5">uves_pfits_get_templateid</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaf694501f3a20536e64cad6efc2a0e5b5"><td class="mdescLeft"> </td><td class="mdescRight">find out the template id  <a href="#gaf694501f3a20536e64cad6efc2a0e5b5"></a><br/></td></tr>
-<tr class="memitem:ga97acf10dfec1908a573a2bf51baedd72"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga97acf10dfec1908a573a2bf51baedd72">uves_pfits_get_date_obs</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga97acf10dfec1908a573a2bf51baedd72"><td class="mdescLeft"> </td><td class="mdescRight">find out the date of observation  <a href="#ga97acf10dfec1908a573a2bf51baedd72"></a><br/></td></tr>
-<tr class="memitem:ga9a720fb2cb64f6f8704b53d6d5869017"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga9a720fb2cb64f6f8704b53d6d5869017">uves_pfits_get_dpr_catg</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga9a720fb2cb64f6f8704b53d6d5869017"><td class="mdescLeft"> </td><td class="mdescRight">find out the data category as defined by the DataFlow  <a href="#ga9a720fb2cb64f6f8704b53d6d5869017"></a><br/></td></tr>
-<tr class="memitem:gadfc97431fbaa953d0b2b507a0d65a323"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gadfc97431fbaa953d0b2b507a0d65a323">uves_pfits_get_ocs_simcal</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gadfc97431fbaa953d0b2b507a0d65a323"><td class="mdescLeft"> </td><td class="mdescRight">Read the SIMCAL flag.  <a href="#gadfc97431fbaa953d0b2b507a0d65a323"></a><br/></td></tr>
-<tr class="memitem:ga8671b556f4338bf739e92b9d0ba1f831"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga8671b556f4338bf739e92b9d0ba1f831">uves_pfits_set_ocs_simcal</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, int simcal)</td></tr>
-<tr class="memdesc:ga8671b556f4338bf739e92b9d0ba1f831"><td class="mdescLeft"> </td><td class="mdescRight">Set the SIMCAL flag.  <a href="#ga8671b556f4338bf739e92b9d0ba1f831"></a><br/></td></tr>
-<tr class="memitem:ga77477da1d35f89951eb8eace41938d41"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga77477da1d35f89951eb8eace41938d41">uves_pfits_get_pro_catg</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga77477da1d35f89951eb8eace41938d41"><td class="mdescLeft"> </td><td class="mdescRight">find out the product category as defined by the DataFlow  <a href="#ga77477da1d35f89951eb8eace41938d41"></a><br/></td></tr>
-<tr class="memitem:ga2833b60dd4a735740352b9c24c6b01f9"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga2833b60dd4a735740352b9c24c6b01f9">uves_pfits_get_dpr_tech</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga2833b60dd4a735740352b9c24c6b01f9"><td class="mdescLeft"> </td><td class="mdescRight">find out the data tech as defined by the DataFlow  <a href="#ga2833b60dd4a735740352b9c24c6b01f9"></a><br/></td></tr>
-<tr class="memitem:ga5bb5b7dee7a50351450a64182f1458fe"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga5bb5b7dee7a50351450a64182f1458fe">uves_pfits_get_dpr_type</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga5bb5b7dee7a50351450a64182f1458fe"><td class="mdescLeft"> </td><td class="mdescRight">find out the data type as defined by the DataFlow  <a href="#ga5bb5b7dee7a50351450a64182f1458fe"></a><br/></td></tr>
-<tr class="memitem:ga84bbe16d83dc492a6104f3b301f1c2f9"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga84bbe16d83dc492a6104f3b301f1c2f9">uves_ccd_is_new</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga84bbe16d83dc492a6104f3b301f1c2f9"><td class="mdescLeft"> </td><td class="mdescRight">Find out if CCD header is new.  <a href="#ga84bbe16d83dc492a6104f3b301f1c2f9"></a><br/></td></tr>
-<tr class="memitem:ga115883e477eed165595a0843010ec45f"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f">uves_format_is_new</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga115883e477eed165595a0843010ec45f"><td class="mdescLeft"> </td><td class="mdescRight">Find out FITS header format.  <a href="#ga115883e477eed165595a0843010ec45f"></a><br/></td></tr>
-<tr class="memitem:ga408818ada3d951ea32c4063728eca597"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga408818ada3d951ea32c4063728eca597">uves_pfits_get_prescanx</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga408818ada3d951ea32c4063728eca597"><td class="mdescLeft"> </td><td class="mdescRight">Find out the x-prescan.  <a href="#ga408818ada3d951ea32c4063728eca597"></a><br/></td></tr>
-<tr class="memitem:ga6f098728931dd4ac2f2598991f920a8e"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e">uves_pfits_get_chipid</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga6f098728931dd4ac2f2598991f920a8e"><td class="mdescLeft"> </td><td class="mdescRight">Find out the chip ID.  <a href="#ga6f098728931dd4ac2f2598991f920a8e"></a><br/></td></tr>
-<tr class="memitem:ga764b711e645e416c5be3882765baa14e"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga764b711e645e416c5be3882765baa14e">uves_pfits_get_chip_name</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga764b711e645e416c5be3882765baa14e"><td class="mdescLeft"> </td><td class="mdescRight">Find out the chip name.  <a href="#ga764b711e645e416c5be3882765baa14e"></a><br/></td></tr>
-<tr class="memitem:ga3d6bc36f09d098e2804a09c276917634"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga3d6bc36f09d098e2804a09c276917634">uves_pfits_get_ovrscanx</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga3d6bc36f09d098e2804a09c276917634"><td class="mdescLeft"> </td><td class="mdescRight">Find out the x-overscan.  <a href="#ga3d6bc36f09d098e2804a09c276917634"></a><br/></td></tr>
-<tr class="memitem:ga9c23bc8405611ad9e160f17543a7ff45"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga9c23bc8405611ad9e160f17543a7ff45">uves_pfits_get_prescany</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga9c23bc8405611ad9e160f17543a7ff45"><td class="mdescLeft"> </td><td class="mdescRight">Find out the y-prescan.  <a href="#ga9c23bc8405611ad9e160f17543a7ff45"></a><br/></td></tr>
-<tr class="memitem:gaf8ed5ab2990b6792cebb5e1143de4696"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaf8ed5ab2990b6792cebb5e1143de4696">uves_pfits_get_ovrscany</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:gaf8ed5ab2990b6792cebb5e1143de4696"><td class="mdescLeft"> </td><td class="mdescRight">Find out the y-overscan.  <a href="#gaf8ed5ab2990b6792cebb5e1143de4696"></a><br/></td></tr>
-<tr class="memitem:gabd4b8ee6fb59b708093644f50c321978"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gabd4b8ee6fb59b708093644f50c321978">uves_pfits_get_ron_adu</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:gabd4b8ee6fb59b708093644f50c321978"><td class="mdescLeft"> </td><td class="mdescRight">Find out the readout noise in ADU.  <a href="#gabd4b8ee6fb59b708093644f50c321978"></a><br/></td></tr>
-<tr class="memitem:ga36f17263450ba556317388c15905bc7e"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga36f17263450ba556317388c15905bc7e">uves_pfits_get_airmass_start</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga36f17263450ba556317388c15905bc7e"><td class="mdescLeft"> </td><td class="mdescRight">Find out the start airmass.  <a href="#ga36f17263450ba556317388c15905bc7e"></a><br/></td></tr>
-<tr class="memitem:ga2aba19c10f2f21a717691bd4b148f669"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga2aba19c10f2f21a717691bd4b148f669">uves_pfits_get_airmass_end</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga2aba19c10f2f21a717691bd4b148f669"><td class="mdescLeft"> </td><td class="mdescRight">Find out the end airmass.  <a href="#ga2aba19c10f2f21a717691bd4b148f669"></a><br/></td></tr>
-<tr class="memitem:gab40bd41082796c15947b75ceddbbbd5c"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gab40bd41082796c15947b75ceddbbbd5c">uves_pfits_get_conad</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:gab40bd41082796c15947b75ceddbbbd5c"><td class="mdescLeft"> </td><td class="mdescRight">Find out the conad.  <a href="#gab40bd41082796c15947b75ceddbbbd5c"></a><br/></td></tr>
-<tr class="memitem:gae00753b08b474c90cdd83169e3c7980e"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gae00753b08b474c90cdd83169e3c7980e">uves_pfits_get_targ_name</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gae00753b08b474c90cdd83169e3c7980e"><td class="mdescLeft"> </td><td class="mdescRight">Get target name.  <a href="#gae00753b08b474c90cdd83169e3c7980e"></a><br/></td></tr>
-<tr class="memitem:ga4f4be35f30bd7d46f8c7421907ac8695"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga4f4be35f30bd7d46f8c7421907ac8695">uves_pfits_get_gain</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga4f4be35f30bd7d46f8c7421907ac8695"><td class="mdescLeft"> </td><td class="mdescRight">Find out the gain.  <a href="#ga4f4be35f30bd7d46f8c7421907ac8695"></a><br/></td></tr>
-<tr class="memitem:ga6143e112905f368114637062d4600c04"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04">uves_pfits_get_exptime</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga6143e112905f368114637062d4600c04"><td class="mdescLeft"> </td><td class="mdescRight">Find out the exposure time in seconds.  <a href="#ga6143e112905f368114637062d4600c04"></a><br/></td></tr>
-<tr class="memitem:gae45226fec29767907871c9f34f61f61a"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gae45226fec29767907871c9f34f61f61a">uves_pfits_set_exptime</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double exptime)</td></tr>
-<tr class="memdesc:gae45226fec29767907871c9f34f61f61a"><td class="mdescLeft"> </td><td class="mdescRight">Write the exposure time.  <a href="#gae45226fec29767907871c9f34f61f61a"></a><br/></td></tr>
-<tr class="memitem:ga9f62d68dba4e530ef2a0407d4752e6fc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga9f62d68dba4e530ef2a0407d4752e6fc">uves_pfits_set_dec</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double dec)</td></tr>
-<tr class="memdesc:ga9f62d68dba4e530ef2a0407d4752e6fc"><td class="mdescLeft"> </td><td class="mdescRight">Write the declination.  <a href="#ga9f62d68dba4e530ef2a0407d4752e6fc"></a><br/></td></tr>
-<tr class="memitem:ga38758b23b33b80f7e27476783fddc3e3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga38758b23b33b80f7e27476783fddc3e3">uves_pfits_set_ra</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double ra)</td></tr>
-<tr class="memdesc:ga38758b23b33b80f7e27476783fddc3e3"><td class="mdescLeft"> </td><td class="mdescRight">Write the right ascension.  <a href="#ga38758b23b33b80f7e27476783fddc3e3"></a><br/></td></tr>
-<tr class="memitem:gaa74a3b1258870b7dcc7f66c616004055"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaa74a3b1258870b7dcc7f66c616004055">uves_pfits_set_ordpred</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, int nord)</td></tr>
-<tr class="memdesc:gaa74a3b1258870b7dcc7f66c616004055"><td class="mdescLeft"> </td><td class="mdescRight">Write the predicted number of order.  <a href="#gaa74a3b1258870b7dcc7f66c616004055"></a><br/></td></tr>
-<tr class="memitem:ga30b8fd58edf8f7f006fb73aa9a25cf91"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga30b8fd58edf8f7f006fb73aa9a25cf91">uves_pfits_get_drs_id</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga30b8fd58edf8f7f006fb73aa9a25cf91"><td class="mdescLeft"> </td><td class="mdescRight">Find out the drs id.  <a href="#ga30b8fd58edf8f7f006fb73aa9a25cf91"></a><br/></td></tr>
-<tr class="memitem:gaf0ed2a547997610410b19faa468f5daf"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaf0ed2a547997610410b19faa468f5daf">uves_pfits_get_tpl_start</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaf0ed2a547997610410b19faa468f5daf"><td class="mdescLeft"> </td><td class="mdescRight">Find out the tpl start.  <a href="#gaf0ed2a547997610410b19faa468f5daf"></a><br/></td></tr>
-<tr class="memitem:gaac930573fb642f9b489df1f3773d5eb9"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaac930573fb642f9b489df1f3773d5eb9">uves_pfits_get_utc</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaac930573fb642f9b489df1f3773d5eb9"><td class="mdescLeft"> </td><td class="mdescRight">Find out the observation time.  <a href="#gaac930573fb642f9b489df1f3773d5eb9"></a><br/></td></tr>
-<tr class="memitem:ga43adddad6bd999b197d24eacc25bde34"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga43adddad6bd999b197d24eacc25bde34">uves_pfits_get_mjdobs</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga43adddad6bd999b197d24eacc25bde34"><td class="mdescLeft"> </td><td class="mdescRight">Find out the modified julian observation date.  <a href="#ga43adddad6bd999b197d24eacc25bde34"></a><br/></td></tr>
-<tr class="memitem:ga58d1b21dbf83e02a88bdced0a416bc9a"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga58d1b21dbf83e02a88bdced0a416bc9a">uves_pfits_get_geolat</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga58d1b21dbf83e02a88bdced0a416bc9a"><td class="mdescLeft"> </td><td class="mdescRight">Find out the telescope latitude.  <a href="#ga58d1b21dbf83e02a88bdced0a416bc9a"></a><br/></td></tr>
-<tr class="memitem:ga55902033ba015dd0045488a5222f772c"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga55902033ba015dd0045488a5222f772c">uves_pfits_get_geolon</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga55902033ba015dd0045488a5222f772c"><td class="mdescLeft"> </td><td class="mdescRight">Find out the telescope longitude.  <a href="#ga55902033ba015dd0045488a5222f772c"></a><br/></td></tr>
-<tr class="memitem:ga2f4307d12086db9c739fe3df79931a10"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga2f4307d12086db9c739fe3df79931a10">uves_pfits_get_ra</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga2f4307d12086db9c739fe3df79931a10"><td class="mdescLeft"> </td><td class="mdescRight">Find out the right ascension.  <a href="#ga2f4307d12086db9c739fe3df79931a10"></a><br/></td></tr>
-<tr class="memitem:gabee157c267487c9edc9b7f478f781173"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gabee157c267487c9edc9b7f478f781173">uves_pfits_get_dec</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gabee157c267487c9edc9b7f478f781173"><td class="mdescLeft"> </td><td class="mdescRight">Find out the declination.  <a href="#gabee157c267487c9edc9b7f478f781173"></a><br/></td></tr>
-<tr class="memitem:gae0b6ba580cfa7d01649e9ed588e900c5"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5">uves_pfits_get_binx</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gae0b6ba580cfa7d01649e9ed588e900c5"><td class="mdescLeft"> </td><td class="mdescRight">Find out the x binning factor.  <a href="#gae0b6ba580cfa7d01649e9ed588e900c5"></a><br/></td></tr>
-<tr class="memitem:ga84364746b39a7419cf7151b5030b98bc"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc">uves_pfits_get_biny</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga84364746b39a7419cf7151b5030b98bc"><td class="mdescLeft"> </td><td class="mdescRight">Find out the y binning factor.  <a href="#ga84364746b39a7419cf7151b5030b98bc"></a><br/></td></tr>
-<tr class="memitem:ga2b4f1ab25eca67e06373e637b34f96a2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga2b4f1ab25eca67e06373e637b34f96a2">uves_pfits_get_datancom</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga2b4f1ab25eca67e06373e637b34f96a2"><td class="mdescLeft"> </td><td class="mdescRight">Find out the number of input raw frames.  <a href="#ga2b4f1ab25eca67e06373e637b34f96a2"></a><br/></td></tr>
-<tr class="memitem:ga42434cb12722d0eadd8b9f04f56c8237"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga42434cb12722d0eadd8b9f04f56c8237">uves_pfits_get_ccdid</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga42434cb12722d0eadd8b9f04f56c8237"><td class="mdescLeft"> </td><td class="mdescRight">find out the ccd id  <a href="#ga42434cb12722d0eadd8b9f04f56c8237"></a><br/></td></tr>
-<tr class="memitem:gada6e3678efe087f614124ea63ce8a9a0"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gada6e3678efe087f614124ea63ce8a9a0">uves_pfits_get_pressure</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gada6e3678efe087f614124ea63ce8a9a0"><td class="mdescLeft"> </td><td class="mdescRight">find out the pressure value  <a href="#gada6e3678efe087f614124ea63ce8a9a0"></a><br/></td></tr>
-<tr class="memitem:gacf7edbe26b2c28fbe6b04bcd0c0fbe54"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gacf7edbe26b2c28fbe6b04bcd0c0fbe54">uves_chop_eso_prefix</a> (const char *key)</td></tr>
-<tr class="memdesc:gacf7edbe26b2c28fbe6b04bcd0c0fbe54"><td class="mdescLeft"> </td><td class="mdescRight">chop the "ESO " prefix  <a href="#gacf7edbe26b2c28fbe6b04bcd0c0fbe54"></a><br/></td></tr>
-<tr class="memitem:ga266ea18052beecac005d60558904a490"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga266ea18052beecac005d60558904a490">uves_pfits_get_tempcam</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga266ea18052beecac005d60558904a490"><td class="mdescLeft"> </td><td class="mdescRight">find out the pressure value  <a href="#ga266ea18052beecac005d60558904a490"></a><br/></td></tr>
-<tr class="memitem:ga4f0d4444ba3039844561d5574447f152"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga4f0d4444ba3039844561d5574447f152">uves_pfits_get_humidity</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga4f0d4444ba3039844561d5574447f152"><td class="mdescLeft"> </td><td class="mdescRight">find out the humidity value  <a href="#ga4f0d4444ba3039844561d5574447f152"></a><br/></td></tr>
-<tr class="memitem:ga05a41349a41189d1bae7fd0faa932abd"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd">uves_pfits_get_gratwlen</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga05a41349a41189d1bae7fd0faa932abd"><td class="mdescLeft"> </td><td class="mdescRight">find out the central wavelength  <a href="#ga05a41349a41189d1bae7fd0faa932abd"></a><br/></td></tr>
-<tr class="memitem:gaa56bfa63f004c7046a5a5242312a792f"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaa56bfa63f004c7046a5a5242312a792f">uves_pfits_get_insmode</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaa56bfa63f004c7046a5a5242312a792f"><td class="mdescLeft"> </td><td class="mdescRight">find out the chip name value  <a href="#gaa56bfa63f004c7046a5a5242312a792f"></a><br/></td></tr>
-<tr class="memitem:gaeefa3dc2dbf45776accef00f67b7002f"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaeefa3dc2dbf45776accef00f67b7002f">uves_pfits_get_inspath</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaeefa3dc2dbf45776accef00f67b7002f"><td class="mdescLeft"> </td><td class="mdescRight">find out the chip name value  <a href="#gaeefa3dc2dbf45776accef00f67b7002f"></a><br/></td></tr>
-<tr class="memitem:ga58d2d231e9bcf59d84ce42cf527b2071"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga58d2d231e9bcf59d84ce42cf527b2071">uves_pfits_get_gratname</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga58d2d231e9bcf59d84ce42cf527b2071"><td class="mdescLeft"> </td><td class="mdescRight">find out the grating name value  <a href="#ga58d2d231e9bcf59d84ce42cf527b2071"></a><br/></td></tr>
-<tr class="memitem:ga5dc4ab669bc41d6c481905c16afa59a0"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga5dc4ab669bc41d6c481905c16afa59a0">uves_pfits_get_readspeed</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga5dc4ab669bc41d6c481905c16afa59a0"><td class="mdescLeft"> </td><td class="mdescRight">find out the readout speed  <a href="#ga5dc4ab669bc41d6c481905c16afa59a0"></a><br/></td></tr>
-<tr class="memitem:gaa907a5d5e4e5a8b2fedda4daae8fae4f"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaa907a5d5e4e5a8b2fedda4daae8fae4f">uves_pfits_get_gratid</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:gaa907a5d5e4e5a8b2fedda4daae8fae4f"><td class="mdescLeft"> </td><td class="mdescRight">find out the grating ID value  <a href="#gaa907a5d5e4e5a8b2fedda4daae8fae4f"></a><br/></td></tr>
-<tr class="memitem:ga159df9e29b6cdbc886d2ec1c19884a64"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga159df9e29b6cdbc886d2ec1c19884a64">uves_pfits_get_slitlength</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga159df9e29b6cdbc886d2ec1c19884a64"><td class="mdescLeft"> </td><td class="mdescRight">find out the slit length  <a href="#ga159df9e29b6cdbc886d2ec1c19884a64"></a><br/></td></tr>
-<tr class="memitem:gadbfe6eb96c384b6b971b634ab8b79fab"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gadbfe6eb96c384b6b971b634ab8b79fab">uves_pfits_get_slitwidth</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:gadbfe6eb96c384b6b971b634ab8b79fab"><td class="mdescLeft"> </td><td class="mdescRight">find out the slit width  <a href="#gadbfe6eb96c384b6b971b634ab8b79fab"></a><br/></td></tr>
-<tr class="memitem:ga49559908c6512ccc86d7ea3b478bdc9a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga49559908c6512ccc86d7ea3b478bdc9a">uves_pfits_get_ordpred</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga49559908c6512ccc86d7ea3b478bdc9a"><td class="mdescLeft"> </td><td class="mdescRight">Read the predicted number of orders.  <a href="#ga49559908c6512ccc86d7ea3b478bdc9a"></a><br/></td></tr>
-<tr class="memitem:ga69cca375340082d053f4fa6d11c099c6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga69cca375340082d053f4fa6d11c099c6">uves_pfits_set_history_val</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *name, const char *format,...)</td></tr>
-<tr class="memdesc:ga69cca375340082d053f4fa6d11c099c6"><td class="mdescLeft"> </td><td class="mdescRight">Write integer value to HISTORY keyword.  <a href="#ga69cca375340082d053f4fa6d11c099c6"></a><br/></td></tr>
-<tr class="memitem:ga41f9034d45d27b699e4bb70c322d8856"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga41f9034d45d27b699e4bb70c322d8856">parse_history</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *name, cpl_type type)</td></tr>
-<tr class="memdesc:ga41f9034d45d27b699e4bb70c322d8856"><td class="mdescLeft"> </td><td class="mdescRight">Parse the value of a HISTORY keyword.  <a href="#ga41f9034d45d27b699e4bb70c322d8856"></a><br/></td></tr>
-<tr class="memitem:ga33e51be1bfd4b8f42972789c417211ae"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga33e51be1bfd4b8f42972789c417211ae">uves_pfits_set_firstabsorder</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, int first_abs_order)</td></tr>
-<tr class="memdesc:ga33e51be1bfd4b8f42972789c417211ae"><td class="mdescLeft"> </td><td class="mdescRight">Write the first absolute order number.  <a href="#ga33e51be1bfd4b8f42972789c417211ae"></a><br/></td></tr>
-<tr class="memitem:gaa6a185f3150b22d6ce30439bfacbb78c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaa6a185f3150b22d6ce30439bfacbb78c">uves_pfits_get_firstabsorder</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaa6a185f3150b22d6ce30439bfacbb78c"><td class="mdescLeft"> </td><td class="mdescRight">Get first absolute order number.  <a href="#gaa6a185f3150b22d6ce30439bfacbb78c"></a><br/></td></tr>
-<tr class="memitem:ga69fae305f143947cdd58f3c575e7ba9a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga69fae305f143947cdd58f3c575e7ba9a">uves_pfits_set_lastabsorder</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, int last_abs_order)</td></tr>
-<tr class="memdesc:ga69fae305f143947cdd58f3c575e7ba9a"><td class="mdescLeft"> </td><td class="mdescRight">Write the last absolute order number.  <a href="#ga69fae305f143947cdd58f3c575e7ba9a"></a><br/></td></tr>
-<tr class="memitem:gad090d54b01606904ef8d740f766c2fde"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gad090d54b01606904ef8d740f766c2fde">uves_pfits_get_lastabsorder</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gad090d54b01606904ef8d740f766c2fde"><td class="mdescLeft"> </td><td class="mdescRight">Get last absolute order number.  <a href="#gad090d54b01606904ef8d740f766c2fde"></a><br/></td></tr>
-<tr class="memitem:ga865460e642e3dc81fae544e3b6f1402a"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga865460e642e3dc81fae544e3b6f1402a">uves_pfits_set_data_average</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double average)</td></tr>
-<tr class="memdesc:ga865460e642e3dc81fae544e3b6f1402a"><td class="mdescLeft"> </td><td class="mdescRight">Write the average pixel value.  <a href="#ga865460e642e3dc81fae544e3b6f1402a"></a><br/></td></tr>
-<tr class="memitem:ga308f6a7549c50e0c513d63a40dfa975f"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga308f6a7549c50e0c513d63a40dfa975f">uves_pfits_set_data_stddev</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double stddev)</td></tr>
-<tr class="memdesc:ga308f6a7549c50e0c513d63a40dfa975f"><td class="mdescLeft"> </td><td class="mdescRight">Write the RMS error of pixel values.  <a href="#ga308f6a7549c50e0c513d63a40dfa975f"></a><br/></td></tr>
-<tr class="memitem:gad010fc0da98b85fdebcd5bc5ba66b2bf"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gad010fc0da98b85fdebcd5bc5ba66b2bf">uves_pfits_set_data_median</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double median)</td></tr>
-<tr class="memdesc:gad010fc0da98b85fdebcd5bc5ba66b2bf"><td class="mdescLeft"> </td><td class="mdescRight">Write the median pixel value.  <a href="#gad010fc0da98b85fdebcd5bc5ba66b2bf"></a><br/></td></tr>
-<tr class="memitem:gac4287c2bde551653e40d60e128a3a35a"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gac4287c2bde551653e40d60e128a3a35a">uves_pfits_set_data_min</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double min)</td></tr>
-<tr class="memdesc:gac4287c2bde551653e40d60e128a3a35a"><td class="mdescLeft"> </td><td class="mdescRight">Write the min pixel value.  <a href="#gac4287c2bde551653e40d60e128a3a35a"></a><br/></td></tr>
-<tr class="memitem:ga12b323abb20f835610ee85f9511d2b30"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga12b323abb20f835610ee85f9511d2b30">uves_pfits_set_data_max</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double max)</td></tr>
-<tr class="memdesc:ga12b323abb20f835610ee85f9511d2b30"><td class="mdescLeft"> </td><td class="mdescRight">Write the max pixel value.  <a href="#ga12b323abb20f835610ee85f9511d2b30"></a><br/></td></tr>
-<tr class="memitem:ga7ee7734c381f31039220820182a749c9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga7ee7734c381f31039220820182a749c9">uves_pfits_set_traceid</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, int trace_id)</td></tr>
-<tr class="memdesc:ga7ee7734c381f31039220820182a749c9"><td class="mdescLeft"> </td><td class="mdescRight">Write the trace ID.  <a href="#ga7ee7734c381f31039220820182a749c9"></a><br/></td></tr>
-<tr class="memitem:gaef0d7e4491440deeda27c14d65c34d7b"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaef0d7e4491440deeda27c14d65c34d7b">uves_pfits_get_offset</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaef0d7e4491440deeda27c14d65c34d7b"><td class="mdescLeft"> </td><td class="mdescRight">Get the trace offset.  <a href="#gaef0d7e4491440deeda27c14d65c34d7b"></a><br/></td></tr>
-<tr class="memitem:gae66ad0ee347230f2fea240f445104a20"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gae66ad0ee347230f2fea240f445104a20">uves_pfits_set_offset</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double trace_offset)</td></tr>
-<tr class="memdesc:gae66ad0ee347230f2fea240f445104a20"><td class="mdescLeft"> </td><td class="mdescRight">Write the trace offset.  <a href="#gae66ad0ee347230f2fea240f445104a20"></a><br/></td></tr>
-<tr class="memitem:gab684709b2ade5e2322325761799e92d0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gab684709b2ade5e2322325761799e92d0">uves_pfits_set_windownumber</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, int window_number)</td></tr>
-<tr class="memdesc:gab684709b2ade5e2322325761799e92d0"><td class="mdescLeft"> </td><td class="mdescRight">Write the window number.  <a href="#gab684709b2ade5e2322325761799e92d0"></a><br/></td></tr>
-<tr class="memitem:gafe242382d5e824db3b68e156d8296a89"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gafe242382d5e824db3b68e156d8296a89">uves_pfits_get_traceid</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gafe242382d5e824db3b68e156d8296a89"><td class="mdescLeft"> </td><td class="mdescRight">Get the trace ID number.  <a href="#gafe242382d5e824db3b68e156d8296a89"></a><br/></td></tr>
-<tr class="memitem:ga3bcabe0b2d46d1f65674d3d0dcb9ee2d"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga3bcabe0b2d46d1f65674d3d0dcb9ee2d">uves_pfits_get_windownumber</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga3bcabe0b2d46d1f65674d3d0dcb9ee2d"><td class="mdescLeft"> </td><td class="mdescRight">Get the window number.  <a href="#ga3bcabe0b2d46d1f65674d3d0dcb9ee2d"></a><br/></td></tr>
-<tr class="memitem:gaeaf186ce3a84dfbca11c7cee211e80ce"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaeaf186ce3a84dfbca11c7cee211e80ce">uves_pfits_get_bunit</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaeaf186ce3a84dfbca11c7cee211e80ce"><td class="mdescLeft"> </td><td class="mdescRight">Find out the bunit.  <a href="#gaeaf186ce3a84dfbca11c7cee211e80ce"></a><br/></td></tr>
-<tr class="memitem:gacc6916f14b6591ccc948f1ca8117fbf0"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gacc6916f14b6591ccc948f1ca8117fbf0">uves_pfits_get_bscale</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gacc6916f14b6591ccc948f1ca8117fbf0"><td class="mdescLeft"> </td><td class="mdescRight">Find out the bscale.  <a href="#gacc6916f14b6591ccc948f1ca8117fbf0"></a><br/></td></tr>
-<tr class="memitem:ga59cf5e1608701d663f3abcc8fcb41880"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga59cf5e1608701d663f3abcc8fcb41880">uves_pfits_get_cunit1</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga59cf5e1608701d663f3abcc8fcb41880"><td class="mdescLeft"> </td><td class="mdescRight">Find out the cunit1.  <a href="#ga59cf5e1608701d663f3abcc8fcb41880"></a><br/></td></tr>
-<tr class="memitem:ga1f8205720c4af931e1dfb55542d71ccc"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga1f8205720c4af931e1dfb55542d71ccc">uves_pfits_get_cunit2</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga1f8205720c4af931e1dfb55542d71ccc"><td class="mdescLeft"> </td><td class="mdescRight">Find out the cunit2.  <a href="#ga1f8205720c4af931e1dfb55542d71ccc"></a><br/></td></tr>
-<tr class="memitem:gaa01218ecc26f39e4d903199d8912859a"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaa01218ecc26f39e4d903199d8912859a">uves_pfits_get_ctype1</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaa01218ecc26f39e4d903199d8912859a"><td class="mdescLeft"> </td><td class="mdescRight">Find out the ctype1.  <a href="#gaa01218ecc26f39e4d903199d8912859a"></a><br/></td></tr>
-<tr class="memitem:ga10f0c2c5e0fd87a36ede0e7fb2fa05bd"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga10f0c2c5e0fd87a36ede0e7fb2fa05bd">uves_pfits_get_ctype2</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga10f0c2c5e0fd87a36ede0e7fb2fa05bd"><td class="mdescLeft"> </td><td class="mdescRight">Find out the ctype2.  <a href="#ga10f0c2c5e0fd87a36ede0e7fb2fa05bd"></a><br/></td></tr>
-<tr class="memitem:ga94a0f9aec24d8d9ce2a936a1cd7985dd"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga94a0f9aec24d8d9ce2a936a1cd7985dd">uves_pfits_get_uit</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga94a0f9aec24d8d9ce2a936a1cd7985dd"><td class="mdescLeft"> </td><td class="mdescRight">Find out the user integration time.  <a href="#ga94a0f9aec24d8d9ce2a936a1cd7985dd"></a><br/></td></tr>
-<tr class="memitem:ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8">uves_pfits_get_nx</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8"><td class="mdescLeft"> </td><td class="mdescRight">Find out the OUT1 NX or OUT4 NX.  <a href="#ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8"></a><br/></td></tr>
-<tr class="memitem:ga4869724c736010824272955edffb60eb"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga4869724c736010824272955edffb60eb">uves_pfits_get_ny</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga4869724c736010824272955edffb60eb"><td class="mdescLeft"> </td><td class="mdescRight">Find out the OUT1 NY or OUT4 NY.  <a href="#ga4869724c736010824272955edffb60eb"></a><br/></td></tr>
-<tr class="memitem:gae9e532b44a8101e42ee42ea2294e877a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gae9e532b44a8101e42ee42ea2294e877a">uves_pfits_get_out1nx</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gae9e532b44a8101e42ee42ea2294e877a"><td class="mdescLeft"> </td><td class="mdescRight">Find out the OUT1 NX.  <a href="#gae9e532b44a8101e42ee42ea2294e877a"></a><br/></td></tr>
-<tr class="memitem:ga4cc264a7bd8eafb4572b7ee10a82b4a9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga4cc264a7bd8eafb4572b7ee10a82b4a9">uves_pfits_get_out1ny</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga4cc264a7bd8eafb4572b7ee10a82b4a9"><td class="mdescLeft"> </td><td class="mdescRight">Find out the OUT1 NY.  <a href="#ga4cc264a7bd8eafb4572b7ee10a82b4a9"></a><br/></td></tr>
-<tr class="memitem:gaf24b3465f3646b6a0c446eb1fbeb2520"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaf24b3465f3646b6a0c446eb1fbeb2520">uves_pfits_get_out4nx</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaf24b3465f3646b6a0c446eb1fbeb2520"><td class="mdescLeft"> </td><td class="mdescRight">Find out the OUT4 NX.  <a href="#gaf24b3465f3646b6a0c446eb1fbeb2520"></a><br/></td></tr>
-<tr class="memitem:ga40a63a22192db6fbc8bab37e64ae0bc9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga40a63a22192db6fbc8bab37e64ae0bc9">uves_pfits_get_out4ny</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga40a63a22192db6fbc8bab37e64ae0bc9"><td class="mdescLeft"> </td><td class="mdescRight">Find out the OUT4 NY.  <a href="#ga40a63a22192db6fbc8bab37e64ae0bc9"></a><br/></td></tr>
-<tr class="memitem:ga17228ff502d3e1eafc4359b2b7069a32"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga17228ff502d3e1eafc4359b2b7069a32">uves_pfits_get_naxis</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga17228ff502d3e1eafc4359b2b7069a32"><td class="mdescLeft"> </td><td class="mdescRight">Find out the NAXIS.  <a href="#ga17228ff502d3e1eafc4359b2b7069a32"></a><br/></td></tr>
-<tr class="memitem:gac758aa4b71e0c505df55d1d99d7b62f8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gac758aa4b71e0c505df55d1d99d7b62f8">uves_flames_pfits_get_nflats</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gac758aa4b71e0c505df55d1d99d7b62f8"><td class="mdescLeft"> </td><td class="mdescRight">Find out the NFLATS.  <a href="#gac758aa4b71e0c505df55d1d99d7b62f8"></a><br/></td></tr>
-<tr class="memitem:ga45d7028cbd48f33f7c5589deb4ccd5c4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga45d7028cbd48f33f7c5589deb4ccd5c4">uves_pfits_get_bitpix</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga45d7028cbd48f33f7c5589deb4ccd5c4"><td class="mdescLeft"> </td><td class="mdescRight">Find out the BITPIX.  <a href="#ga45d7028cbd48f33f7c5589deb4ccd5c4"></a><br/></td></tr>
-<tr class="memitem:gadd8fda05c51af7b34d5021b4bc60fffc"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gadd8fda05c51af7b34d5021b4bc60fffc">uves_pfits_get_naxis1</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gadd8fda05c51af7b34d5021b4bc60fffc"><td class="mdescLeft"> </td><td class="mdescRight">Find out the NAXIS1.  <a href="#gadd8fda05c51af7b34d5021b4bc60fffc"></a><br/></td></tr>
-<tr class="memitem:gaf61c29fc0fa67ae38c7ac8e0f125c6ce"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaf61c29fc0fa67ae38c7ac8e0f125c6ce">uves_pfits_get_startx</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaf61c29fc0fa67ae38c7ac8e0f125c6ce"><td class="mdescLeft"> </td><td class="mdescRight">Find out the START1.  <a href="#gaf61c29fc0fa67ae38c7ac8e0f125c6ce"></a><br/></td></tr>
-<tr class="memitem:gaa144877b5eaa88dd3bc92c9900543c5f"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaa144877b5eaa88dd3bc92c9900543c5f">uves_pfits_get_starty</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaa144877b5eaa88dd3bc92c9900543c5f"><td class="mdescLeft"> </td><td class="mdescRight">Find out the STARTY.  <a href="#gaa144877b5eaa88dd3bc92c9900543c5f"></a><br/></td></tr>
-<tr class="memitem:ga41338750e1279de511bc5035d8d218d0"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga41338750e1279de511bc5035d8d218d0">uves_pfits_get_naxis2</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga41338750e1279de511bc5035d8d218d0"><td class="mdescLeft"> </td><td class="mdescRight">Find out the NAXIS2.  <a href="#ga41338750e1279de511bc5035d8d218d0"></a><br/></td></tr>
-<tr class="memitem:ga03b112a6789efbba09a9781fbc48dd81"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81">uves_pfits_get_crval1</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga03b112a6789efbba09a9781fbc48dd81"><td class="mdescLeft"> </td><td class="mdescRight">Find out the crval1.  <a href="#ga03b112a6789efbba09a9781fbc48dd81"></a><br/></td></tr>
-<tr class="memitem:gaefba8b3c1a2fbe5c0f42eaeaaafaf455"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaefba8b3c1a2fbe5c0f42eaeaaafaf455">uves_pfits_get_crval2</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaefba8b3c1a2fbe5c0f42eaeaaafaf455"><td class="mdescLeft"> </td><td class="mdescRight">Find out the crval2.  <a href="#gaefba8b3c1a2fbe5c0f42eaeaaafaf455"></a><br/></td></tr>
-<tr class="memitem:ga1820feccc4e549d16d5630880790cea3"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga1820feccc4e549d16d5630880790cea3">uves_pfits_get_crpix1</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga1820feccc4e549d16d5630880790cea3"><td class="mdescLeft"> </td><td class="mdescRight">Find out the crpix1.  <a href="#ga1820feccc4e549d16d5630880790cea3"></a><br/></td></tr>
-<tr class="memitem:ga18ea5d528ab27ac81d2b64901f81c4b7"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga18ea5d528ab27ac81d2b64901f81c4b7">uves_pfits_get_crpix2</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga18ea5d528ab27ac81d2b64901f81c4b7"><td class="mdescLeft"> </td><td class="mdescRight">Find out the crpix2.  <a href="#ga18ea5d528ab27ac81d2b64901f81c4b7"></a><br/></td></tr>
-<tr class="memitem:ga275ac7ecf1fc85f2d4d06eae8a950ba7"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7">uves_pfits_get_cdelt1</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga275ac7ecf1fc85f2d4d06eae8a950ba7"><td class="mdescLeft"> </td><td class="mdescRight">Find out the cdelt1.  <a href="#ga275ac7ecf1fc85f2d4d06eae8a950ba7"></a><br/></td></tr>
-<tr class="memitem:gab1af91452dda53e50314231795bf5308"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gab1af91452dda53e50314231795bf5308">uves_pfits_get_cdelt2</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gab1af91452dda53e50314231795bf5308"><td class="mdescLeft"> </td><td class="mdescRight">Find out the cdelt2.  <a href="#gab1af91452dda53e50314231795bf5308"></a><br/></td></tr>
-<tr class="memitem:ga666eb10fe3865d59fa69b830735f0e0e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga666eb10fe3865d59fa69b830735f0e0e">uves_pfits_set_dpr_catg</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *catg)</td></tr>
-<tr class="memdesc:ga666eb10fe3865d59fa69b830735f0e0e"><td class="mdescLeft"> </td><td class="mdescRight">Set DPR CATG value.  <a href="#ga666eb10fe3865d59fa69b830735f0e0e"></a><br/></td></tr>
-<tr class="memitem:gaa8bc49514a8c08229da6db3f881cf98c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaa8bc49514a8c08229da6db3f881cf98c">uves_pfits_set_dpr_tech</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *tech)</td></tr>
-<tr class="memdesc:gaa8bc49514a8c08229da6db3f881cf98c"><td class="mdescLeft"> </td><td class="mdescRight">Set DPR TECH value.  <a href="#gaa8bc49514a8c08229da6db3f881cf98c"></a><br/></td></tr>
-<tr class="memitem:gad5a9f4f0b354fff0ee10bd24df613b25"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gad5a9f4f0b354fff0ee10bd24df613b25">uves_pfits_set_dpr_type</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *type)</td></tr>
-<tr class="memdesc:gad5a9f4f0b354fff0ee10bd24df613b25"><td class="mdescLeft"> </td><td class="mdescRight">Set DPR TYPE value.  <a href="#gad5a9f4f0b354fff0ee10bd24df613b25"></a><br/></td></tr>
-<tr class="memitem:ga00c534cae0eea2f78b8d36bc675c7b80"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga00c534cae0eea2f78b8d36bc675c7b80">uves_pfits_set_object</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *object)</td></tr>
-<tr class="memdesc:ga00c534cae0eea2f78b8d36bc675c7b80"><td class="mdescLeft"> </td><td class="mdescRight">Write the object keyword.  <a href="#ga00c534cae0eea2f78b8d36bc675c7b80"></a><br/></td></tr>
-<tr class="memitem:gaa198d93b1538311c92a9b2fed6389357"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaa198d93b1538311c92a9b2fed6389357">uves_pfits_set_badpixcorr</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *corr)</td></tr>
-<tr class="memdesc:gaa198d93b1538311c92a9b2fed6389357"><td class="mdescLeft"> </td><td class="mdescRight">Write the object keyword.  <a href="#gaa198d93b1538311c92a9b2fed6389357"></a><br/></td></tr>
-<tr class="memitem:gad288bfc7118fd184d27b16ec9c45d5eb"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gad288bfc7118fd184d27b16ec9c45d5eb">uves_pfits_set_redlevel</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *redlevel)</td></tr>
-<tr class="memdesc:gad288bfc7118fd184d27b16ec9c45d5eb"><td class="mdescLeft"> </td><td class="mdescRight">Write the reduction level.  <a href="#gad288bfc7118fd184d27b16ec9c45d5eb"></a><br/></td></tr>
-<tr class="memitem:ga8e84ec2559f4f8b5c950ca701c852c61"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga8e84ec2559f4f8b5c950ca701c852c61">uves_pfits_set_status</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *status)</td></tr>
-<tr class="memdesc:ga8e84ec2559f4f8b5c950ca701c852c61"><td class="mdescLeft"> </td><td class="mdescRight">Write the status.  <a href="#ga8e84ec2559f4f8b5c950ca701c852c61"></a><br/></td></tr>
-<tr class="memitem:ga0cb8c1549c5c2877e335249714025634"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga0cb8c1549c5c2877e335249714025634">uves_pfits_set_starttime</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *start_time)</td></tr>
-<tr class="memdesc:ga0cb8c1549c5c2877e335249714025634"><td class="mdescLeft"> </td><td class="mdescRight">Write the start time.  <a href="#ga0cb8c1549c5c2877e335249714025634"></a><br/></td></tr>
-<tr class="memitem:ga62d8502b9cb1c8852a37f88499c88e26"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga62d8502b9cb1c8852a37f88499c88e26">uves_pfits_set_stoptime</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *stop_time)</td></tr>
-<tr class="memdesc:ga62d8502b9cb1c8852a37f88499c88e26"><td class="mdescLeft"> </td><td class="mdescRight">Write the stop time.  <a href="#ga62d8502b9cb1c8852a37f88499c88e26"></a><br/></td></tr>
-<tr class="memitem:ga1dcf84ae52c90eecc51ca448a63cfc5e"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga1dcf84ae52c90eecc51ca448a63cfc5e">uves_pfits_set_bunit</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *bunit)</td></tr>
-<tr class="memdesc:ga1dcf84ae52c90eecc51ca448a63cfc5e"><td class="mdescLeft"> </td><td class="mdescRight">Write the bunit keyword.  <a href="#ga1dcf84ae52c90eecc51ca448a63cfc5e"></a><br/></td></tr>
-<tr class="memitem:gace68beef266360129dce0860c4fb1731"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gace68beef266360129dce0860c4fb1731">uves_pfits_set_bscale</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const double bscale)</td></tr>
-<tr class="memdesc:gace68beef266360129dce0860c4fb1731"><td class="mdescLeft"> </td><td class="mdescRight">Write the bscale keyword.  <a href="#gace68beef266360129dce0860c4fb1731"></a><br/></td></tr>
-<tr class="memitem:gad9f2f8d54f1b6708126bc62b45bc7d74"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gad9f2f8d54f1b6708126bc62b45bc7d74">uves_pfits_set_tunit_no</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const int col_no, const char *tunit)</td></tr>
-<tr class="memdesc:gad9f2f8d54f1b6708126bc62b45bc7d74"><td class="mdescLeft"> </td><td class="mdescRight">Write the tunit keyword.  <a href="#gad9f2f8d54f1b6708126bc62b45bc7d74"></a><br/></td></tr>
-<tr class="memitem:gaf0f096e9615abba54e8df7068b2e7541"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaf0f096e9615abba54e8df7068b2e7541">uves_pfits_set_bunit_no</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const int axis_no, const char *bunit)</td></tr>
-<tr class="memdesc:gaf0f096e9615abba54e8df7068b2e7541"><td class="mdescLeft"> </td><td class="mdescRight">Write the bunit keyword.  <a href="#gaf0f096e9615abba54e8df7068b2e7541"></a><br/></td></tr>
-<tr class="memitem:gac948997f6142c218334d0cb70a4eeabc"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gac948997f6142c218334d0cb70a4eeabc">uves_pfits_set_ctype1</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *ctype1)</td></tr>
-<tr class="memdesc:gac948997f6142c218334d0cb70a4eeabc"><td class="mdescLeft"> </td><td class="mdescRight">Write the ctype1 keyword.  <a href="#gac948997f6142c218334d0cb70a4eeabc"></a><br/></td></tr>
-<tr class="memitem:ga1644b60894010bfaa365370ff6851aaf"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga1644b60894010bfaa365370ff6851aaf">uves_pfits_set_ctype2</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *ctype2)</td></tr>
-<tr class="memdesc:ga1644b60894010bfaa365370ff6851aaf"><td class="mdescLeft"> </td><td class="mdescRight">Write the ctype2 keyword.  <a href="#ga1644b60894010bfaa365370ff6851aaf"></a><br/></td></tr>
-<tr class="memitem:gaf22ae9bd0d4e3492b1595f49ec00edc8"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaf22ae9bd0d4e3492b1595f49ec00edc8">uves_pfits_set_cunit1</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *cunit1)</td></tr>
-<tr class="memdesc:gaf22ae9bd0d4e3492b1595f49ec00edc8"><td class="mdescLeft"> </td><td class="mdescRight">Write the cunit1 keyword.  <a href="#gaf22ae9bd0d4e3492b1595f49ec00edc8"></a><br/></td></tr>
-<tr class="memitem:ga6bef11d061318a2656e16fb83717965b"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga6bef11d061318a2656e16fb83717965b">uves_pfits_set_cunit2</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *cunit2)</td></tr>
-<tr class="memdesc:ga6bef11d061318a2656e16fb83717965b"><td class="mdescLeft"> </td><td class="mdescRight">Write the cunit2 keyword.  <a href="#ga6bef11d061318a2656e16fb83717965b"></a><br/></td></tr>
-<tr class="memitem:gaaed14627f7b8206cc8970cd1f787a6db"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaaed14627f7b8206cc8970cd1f787a6db">uves_pfits_set_crval1</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double crval1)</td></tr>
-<tr class="memdesc:gaaed14627f7b8206cc8970cd1f787a6db"><td class="mdescLeft"> </td><td class="mdescRight">Write the crval1 keyword.  <a href="#gaaed14627f7b8206cc8970cd1f787a6db"></a><br/></td></tr>
-<tr class="memitem:ga510ee409ec059fdbd8991d88a7639152"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga510ee409ec059fdbd8991d88a7639152">uves_pfits_set_crval2</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double crval2)</td></tr>
-<tr class="memdesc:ga510ee409ec059fdbd8991d88a7639152"><td class="mdescLeft"> </td><td class="mdescRight">Write the crval2 keyword.  <a href="#ga510ee409ec059fdbd8991d88a7639152"></a><br/></td></tr>
-<tr class="memitem:ga0fb41e9ccebfde88e71dcd6ed2dff570"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga0fb41e9ccebfde88e71dcd6ed2dff570">uves_pfits_set_crpix1</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double crpix1)</td></tr>
-<tr class="memdesc:ga0fb41e9ccebfde88e71dcd6ed2dff570"><td class="mdescLeft"> </td><td class="mdescRight">Write the crpix1 keyword.  <a href="#ga0fb41e9ccebfde88e71dcd6ed2dff570"></a><br/></td></tr>
-<tr class="memitem:gaf6964f0063821d3f357125f149f87367"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaf6964f0063821d3f357125f149f87367">uves_pfits_set_crpix2</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double crpix2)</td></tr>
-<tr class="memdesc:gaf6964f0063821d3f357125f149f87367"><td class="mdescLeft"> </td><td class="mdescRight">Write the crpix2 keyword.  <a href="#gaf6964f0063821d3f357125f149f87367"></a><br/></td></tr>
-<tr class="memitem:ga0d13232557903e763483cc57b4cfa0c4"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga0d13232557903e763483cc57b4cfa0c4">uves_pfits_set_cdelt1</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double cdelt1)</td></tr>
-<tr class="memdesc:ga0d13232557903e763483cc57b4cfa0c4"><td class="mdescLeft"> </td><td class="mdescRight">Write the cdelt1 keyword.  <a href="#ga0d13232557903e763483cc57b4cfa0c4"></a><br/></td></tr>
-<tr class="memitem:ga18d5d37d2b633d137b3c256e9e61c029"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga18d5d37d2b633d137b3c256e9e61c029">uves_flames_pfits_set_ccfposmax</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double ccfposmax)</td></tr>
-<tr class="memdesc:ga18d5d37d2b633d137b3c256e9e61c029"><td class="mdescLeft"> </td><td class="mdescRight">Write the ccfposmax keyword (what is it?)  <a href="#ga18d5d37d2b633d137b3c256e9e61c029"></a><br/></td></tr>
-<tr class="memitem:ga80ad6ea5e902d3cc3a1f3745035e528e"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga80ad6ea5e902d3cc3a1f3745035e528e">uves_pfits_set_cdelt2</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, double cdelt2)</td></tr>
-<tr class="memdesc:ga80ad6ea5e902d3cc3a1f3745035e528e"><td class="mdescLeft"> </td><td class="mdescRight">Write the cdelt2 keyword.  <a href="#ga80ad6ea5e902d3cc3a1f3745035e528e"></a><br/></td></tr>
-<tr class="memitem:ga3a62ab3d0a3cbff46e6587757c951c7d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga3a62ab3d0a3cbff46e6587757c951c7d">uves_pfits_set_hs</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, int hs)</td></tr>
-<tr class="memdesc:ga3a62ab3d0a3cbff46e6587757c951c7d"><td class="mdescLeft"> </td><td class="mdescRight">Write the 2d extractino slit length.  <a href="#ga3a62ab3d0a3cbff46e6587757c951c7d"></a><br/></td></tr>
-<tr class="memitem:ga343861c33e84f1358c3235d41e8474b8"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga343861c33e84f1358c3235d41e8474b8">uves_pfits_set_wstart</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, int order, double wstart)</td></tr>
-<tr class="memdesc:ga343861c33e84f1358c3235d41e8474b8"><td class="mdescLeft"> </td><td class="mdescRight">Write the wstart keyword.  <a href="#ga343861c33e84f1358c3235d41e8474b8"></a><br/></td></tr>
-<tr class="memitem:gaa8f810cc3210842daea835201a6a5203"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203">uves_pfits_get_wstart</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, int order)</td></tr>
-<tr class="memdesc:gaa8f810cc3210842daea835201a6a5203"><td class="mdescLeft"> </td><td class="mdescRight">Read the wstart keyword.  <a href="#gaa8f810cc3210842daea835201a6a5203"></a><br/></td></tr>
-<tr class="memitem:ga30c035689f06d716cca55250181f9956"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga30c035689f06d716cca55250181f9956">uves_pfits_set_wend</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, int order, double wend)</td></tr>
-<tr class="memdesc:ga30c035689f06d716cca55250181f9956"><td class="mdescLeft"> </td><td class="mdescRight">Write the wend keyword.  <a href="#ga30c035689f06d716cca55250181f9956"></a><br/></td></tr>
-<tr class="memitem:ga3443f7c706d4711dbb277ab6d2f59595"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595">uves_pfits_get_wend</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, int order)</td></tr>
-<tr class="memdesc:ga3443f7c706d4711dbb277ab6d2f59595"><td class="mdescLeft"> </td><td class="mdescRight">Read the wend keyword.  <a href="#ga3443f7c706d4711dbb277ab6d2f59595"></a><br/></td></tr>
-<tr class="memitem:gaad1abe1801ca189d25b0f9ffdcf1f078"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gaad1abe1801ca189d25b0f9ffdcf1f078">uves_pfits_get_pixelscale</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gaad1abe1801ca189d25b0f9ffdcf1f078"><td class="mdescLeft"> </td><td class="mdescRight">Get pixel scale.  <a href="#gaad1abe1801ca189d25b0f9ffdcf1f078"></a><br/></td></tr>
-<tr class="memitem:gadb0a05528f0429187a6af97bcb3f4a25"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gadb0a05528f0429187a6af97bcb3f4a25">uves_pfits_get_slit1_name</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:gadb0a05528f0429187a6af97bcb3f4a25"><td class="mdescLeft"> </td><td class="mdescRight">Get image slicer name.  <a href="#gadb0a05528f0429187a6af97bcb3f4a25"></a><br/></td></tr>
-<tr class="memitem:gada5bfd486b316634b1d107ea5fc2cd12"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gada5bfd486b316634b1d107ea5fc2cd12">uves_pfits_get_slitlength_pixels</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip)</td></tr>
-<tr class="memdesc:gada5bfd486b316634b1d107ea5fc2cd12"><td class="mdescLeft"> </td><td class="mdescRight">Read the slit length in pixels.  <a href="#gada5bfd486b316634b1d107ea5fc2cd12"></a><br/></td></tr>
-<tr class="memitem:gae70f662017b21fd4d83fa9d7b16fec50"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#gae70f662017b21fd4d83fa9d7b16fec50">uves_flames_pfits_get_plateid</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header)</td></tr>
-<tr class="memdesc:gae70f662017b21fd4d83fa9d7b16fec50"><td class="mdescLeft"> </td><td class="mdescRight">read the plate id  <a href="#gae70f662017b21fd4d83fa9d7b16fec50"></a><br/></td></tr>
-<tr class="memitem:ga7bcb4bda625a9aee0a93daaa409e1320"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga7bcb4bda625a9aee0a93daaa409e1320">uves_flames_pfits_get_dit</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist)</td></tr>
-<tr class="memdesc:ga7bcb4bda625a9aee0a93daaa409e1320"><td class="mdescLeft"> </td><td class="mdescRight">Find out the integration time.  <a href="#ga7bcb4bda625a9aee0a93daaa409e1320"></a><br/></td></tr>
-<tr class="memitem:ga95b184c2af4a33cac829ff926b10138b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__pfits.html#ga95b184c2af4a33cac829ff926b10138b">uves_flames_pfits_set_newplateid</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, int plate_no)</td></tr>
-<tr class="memdesc:ga95b184c2af4a33cac829ff926b10138b"><td class="mdescLeft"> </td><td class="mdescRight">Write the plate number.  <a href="#ga95b184c2af4a33cac829ff926b10138b"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>Interface for reading/writing FITS keywords. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga88d114f3cb4427cf679e9f7b7696bcd9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_slit3_x1encoder </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the value of UVES_ENCODER_REF1 </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>keyword value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00284">284</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l01972">uves_propertylist_get_int()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00511">uves_mflat_at_ypos()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga12fe6f500e105193aa9faae4258ef51d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_slit3_x2encoder </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the value of UVES_ENCODER_REF2 </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>keyword value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00302">302</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l01972">uves_propertylist_get_int()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00511">uves_mflat_at_ypos()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga87cd5104b9b26f1655958f6f533fcfc2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_maxfibres </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the frame </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>number max of fibres </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00321">321</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4ee5f11b825d519d1a9aafb561e0d6f7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char uves_pfits_get_chipchoice </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the frame </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00340">340</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l01796">uves_propertylist_get_char()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8dc9fde0148605eee9109beca930f79e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_badpxframe </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the frame </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00357">357</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaabb5de1c212917f34b94de1c1587104d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_ambipress </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the arcfile </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>keyword value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00379">379</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2cc76a99674d90a86d9d7174f33dc893"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_arcfile </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the arcfile </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00400">400</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00225">uves_save_paf()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga25f5bbe03eaa1b8eede6c45d1c92daf3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_flames_pfits_get_ident </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the ident </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00422">422</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l02322">uves_propertylist_get_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga81aff5981269ff140a1baca2df392f1b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_flames_pfits_get_object </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the OBJECT </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00442">442</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l02322">uves_propertylist_get_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0ecbcc40cde47dcccdc6e61f987cf94e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_origfile </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the origfile </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00462">462</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__plotmod_8c_source.html#l00119">uves_physmod_plotmod()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga29aa57ccf95058c909572ed494be97b1"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_pipefile </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the pipefile </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00483">483</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2b39689fbd7baa3e56d34c2200317649"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_rec1raw1name </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the arcfile </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00508">508</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l00225">uves_save_paf()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf694501f3a20536e64cad6efc2a0e5b5"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_templateid </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the template id </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00527">527</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00225">uves_save_paf()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga97acf10dfec1908a573a2bf51baedd72"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_date_obs </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the date of observation </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS file name </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00549">549</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga9a720fb2cb64f6f8704b53d6d5869017"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_dpr_catg </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the data category as defined by the DataFlow </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>source FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>statically allocated char string, no need to free() it </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00568">568</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00225">uves_save_paf()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadfc97431fbaa953d0b2b507a0d65a323"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_ocs_simcal </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read the SIMCAL flag. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>source FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>SIMCAL flag as integer </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00587">587</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8671b556f4338bf739e92b9d0ba1f831"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_ocs_simcal </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>simcal</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set the SIMCAL flag. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>FITS header </td></tr>
-    <tr><td class="paramname">simcal</td><td>value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00605">605</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04633">uves_propertylist_update_int()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga77477da1d35f89951eb8eace41938d41"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_pro_catg </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the product category as defined by the DataFlow </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>source FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>statically allocated char string, no need to free() it </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00622">622</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2833b60dd4a735740352b9c24c6b01f9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_dpr_tech </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the data tech as defined by the DataFlow </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>source FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>statically allocated char string, no need to free() it </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00641">641</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00225">uves_save_paf()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5bb5b7dee7a50351450a64182f1458fe"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_dpr_type </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the data type as defined by the DataFlow </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>source FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>statically allocated char string, no need to free() it </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00660">660</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l00225">uves_save_paf()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga84bbe16d83dc492a6104f3b301f1c2f9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">bool uves_ccd_is_new </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out if CCD header is new. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>true iff the observation date is later than July 6th, 2009 </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00681">681</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__pfits_8c_source.html#l01192">uves_pfits_get_mjdobs()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga115883e477eed165595a0843010ec45f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">bool uves_format_is_new </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out FITS header format. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>true iff the observation date is later than April 1st, 2004 </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00701">701</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__pfits_8c_source.html#l01192">uves_pfits_get_mjdobs()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__pfits_8c_source.html#l00946">uves_pfits_get_conad()</a>, <a class="el" href="uves__pfits_8c_source.html#l00993">uves_pfits_get_gain()</a>, <a class="el" href="uves__pfits_8c_source.html#l02194">uves_pfits_get_nx()</a>, <a class="el" href="uves__pfits_8c_source.html#l02223">uves_pfits_get_ny()</a>, <a class="el" href="uves__pfits_8c_source.html#l00787">uves_pfits_get_ovrscanx()</a>, <a class="el" href="uves__pfits_8c_source.html#l00838">uves_pfit [...]
-
-</div>
-</div>
-<a class="anchor" id="ga408818ada3d951ea32c4063728eca597"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_prescanx </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the x-prescan. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00722">722</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__pfits_8c_source.html#l00701">uves_format_is_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6f098728931dd4ac2f2598991f920a8e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_chipid </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the chip ID. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00747">747</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>, <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>, <a class="el" href="uves__reduce__mflat_8c_source.html#l00610">uves_reduce_mflat()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga764b711e645e416c5be3882765baa14e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_chip_name </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the chip name. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00767">767</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l00410">uves_qclog_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3d6bc36f09d098e2804a09c276917634"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_ovrscanx </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the x-overscan. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00787">787</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__pfits_8c_source.html#l00701">uves_format_is_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga9c23bc8405611ad9e160f17543a7ff45"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_prescany </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the y-prescan. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00812">812</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__pfits_8c_source.html#l00701">uves_format_is_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf8ed5ab2990b6792cebb5e1143de4696"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_ovrscany </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the y-overscan. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00838">838</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__pfits_8c_source.html#l00701">uves_format_is_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gabd4b8ee6fb59b708093644f50c321978"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_ron_adu </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the readout noise in ADU. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error</dd></dl>
-<p>The function reads the readout noise in electrons and multiplies by the gain (conversion factor from electrons to ADU).</p>
-<p>An error is set if the readout noise is not positive. </p>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00868">868</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__pfits_8c_source.html#l00701">uves_format_is_new()</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, and <a class="el" href="uves__pfits_8c_source.html#l00993">uves_pfits_get_gain()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02225">uves_define_noise()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga36f17263450ba556317388c15905bc7e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_airmass_start </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the start airmass. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00907">907</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__utils_8c_source.html#l00128">uves_normalize_spectrum()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2aba19c10f2f21a717691bd4b148f669"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_airmass_end </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the end airmass. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00926">926</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__utils_8c_source.html#l00128">uves_normalize_spectrum()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab40bd41082796c15947b75ceddbbbd5c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_conad </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the conad. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00946">946</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__pfits_8c_source.html#l00701">uves_format_is_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae00753b08b474c90cdd83169e3c7980e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_targ_name </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get target name. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00971">971</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4f4be35f30bd7d46f8c7421907ac8695"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_gain </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the gain. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error</dd></dl>
-<p>The gain is in units of (ADU / el-). </p>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l00993">993</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__pfits_8c_source.html#l00701">uves_format_is_new()</a>, and <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02225">uves_define_noise()</a>, <a class="el" href="uves__reduce__mflat_8c_source.html#l00221">uves_mflat_process_chip()</a>, <a class="el" href="uves__reduce__utils_8c_source.html#l00128">uves_normalize_spectrum()</a>, and <a class="el" href="uves__pfits_8c_source.html#l00868">uves_pfits_get_ron_adu()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6143e112905f368114637062d4600c04"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_exptime </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the exposure time in seconds. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error</dd></dl>
-<p>An error is set if the exposure time is negative. In that case this negative value is returned. </p>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01028">1028</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__scired_8c_source.html#l02166">tflat_qclog()</a>, <a class="el" href="uves__utils_8c_source.html#l02225">uves_define_noise()</a>, <a class="el" href="uves__reduce__mflat_8c_source.html#l00221">uves_mflat_process_chip()</a>, <a class="el" href="uves__reduce__utils_8c_source.html#l00128">uves_normalize_spectrum()</a>, <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>, and <a class="el" href="uves__utils_8c_source.htm [...]
-
-</div>
-</div>
-<a class="anchor" id="gae45226fec29767907871c9f34f61f61a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_exptime </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>exptime</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the exposure time. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">exptime</td><td>The value to write</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01050">1050</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__propertylist_8c_source.html#l01153">uves_propertylist_set_comment()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00221">uves_mflat_process_chip()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga9f62d68dba4e530ef2a0407d4752e6fc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_dec </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>dec</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the declination. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">dec</td><td>The value to write</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01070">1070</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__response-test_8c_source.html#l00215">test_3dtable()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga38758b23b33b80f7e27476783fddc3e3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_ra </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>ra</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the right ascension. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">ra</td><td>The value to write</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01088">1088</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__response-test_8c_source.html#l00215">test_3dtable()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa74a3b1258870b7dcc7f66c616004055"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_ordpred </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nord</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the predicted number of order. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">nord</td><td>The value to write</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01106">1106</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__propertylist_8c_source.html#l01153">uves_propertylist_set_comment()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04633">uves_propertylist_update_int()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga30b8fd58edf8f7f006fb73aa9a25cf91"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_drs_id </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the drs id. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or NULL on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01123">1123</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf0ed2a547997610410b19faa468f5daf"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_tpl_start </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the tpl start. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or NULL on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01149">1149</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__plotmod_8c_source.html#l00119">uves_physmod_plotmod()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaac930573fb642f9b489df1f3773d5eb9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_utc </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the observation time. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01173">1173</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__baryvel_8c_source.html#l00120">uves_baryvel()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga43adddad6bd999b197d24eacc25bde34"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_mjdobs </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the modified julian observation date. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01192">1192</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__baryvel_8c_source.html#l00120">uves_baryvel()</a>, <a class="el" href="uves__pfits_8c_source.html#l00681">uves_ccd_is_new()</a>, and <a class="el" href="uves__pfits_8c_source.html#l00701">uves_format_is_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga58d1b21dbf83e02a88bdced0a416bc9a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_geolat </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the telescope latitude. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01210">1210</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__baryvel_8c_source.html#l00120">uves_baryvel()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga55902033ba015dd0045488a5222f772c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_geolon </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the telescope longitude. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01228">1228</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__baryvel_8c_source.html#l00120">uves_baryvel()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2f4307d12086db9c739fe3df79931a10"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_ra </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the right ascension. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01246">1246</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__response__utils_8c_source.html#l00257">uves_align()</a>, and <a class="el" href="uves__baryvel_8c_source.html#l00120">uves_baryvel()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gabee157c267487c9edc9b7f478f781173"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_dec </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the declination. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01264">1264</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__response__utils_8c_source.html#l00257">uves_align()</a>, and <a class="el" href="uves__baryvel_8c_source.html#l00120">uves_baryvel()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae0b6ba580cfa7d01649e9ed588e900c5"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_binx </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the x binning factor. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01282">1282</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l05173">uves_image_mflat_detect_blemishes()</a>, <a class="el" href="uves__pfits_8c_source.html#l03189">uves_pfits_get_slitlength_pixels()</a>, <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>, <a class="el" href="uves__physmod__msrawxy_8c_source.html#l00086">uves_physmod_msrawxy()</a>, <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>,  [...]
-
-</div>
-</div>
-<a class="anchor" id="ga84364746b39a7419cf7151b5030b98bc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_biny </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the y binning factor. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01300">1300</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l05173">uves_image_mflat_detect_blemishes()</a>, <a class="el" href="uves__reduce__utils_8c_source.html#l00128">uves_normalize_spectrum()</a>, <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>, <a class="el" href="uves__physmod__msrawxy_8c_source.html#l00086">uves_physmod_msrawxy()</a>, <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>, < [...]
-
-</div>
-</div>
-<a class="anchor" id="ga2b4f1ab25eca67e06373e637b34f96a2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_datancom </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the number of input raw frames. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01318">1318</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, and <a class="el" href="uves__propertylist_8c_source.html#l01045">uves_propertylist_contains()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga42434cb12722d0eadd8b9f04f56c8237"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_ccdid </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the ccd id </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01357">1357</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gada6e3678efe087f614124ea63ce8a9a0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_pressure </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the pressure value </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01375">1375</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gacf7edbe26b2c28fbe6b04bcd0c0fbe54"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_chop_eso_prefix </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>chop the "ESO " prefix </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">key</td><td>keyword name </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value or NULL on error</dd></dl>
-<p>The function fails if the provided keyword does not start with "ESO " </p>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01394">1394</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga266ea18052beecac005d60558904a490"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_tempcam </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the pressure value </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01419">1419</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>, <a class="el" href="uves__physmod__plotmod_8c_source.html#l00119">uves_physmod_plotmod()</a>, <a class="el" href="uves__qclog_8c_source.html#l00942">uves_qclog_add_common_wave()</a>, and <a class="el" href="uves__qclog_8c_source.html#l01166">uves_qclog_dump_common_wave()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4f0d4444ba3039844561d5574447f152"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_humidity </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the humidity value </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01438">1438</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga05a41349a41189d1bae7fd0faa932abd"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_gratwlen </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the central wavelength </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value which is always positive on success </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01457">1457</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>, <a class="el" href="uves__physmod__plotmod_8c_source.html#l00119">uves_physmod_plotmod()</a>, <a class="el" href="uves__qclog_8c_source.html#l00942">uves_qclog_add_common_wave()</a>, and <a class="el" href="uves__qclog_8c_source.html#l01166">uves_qclog_dump_common_wave()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa56bfa63f004c7046a5a5242312a792f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_insmode </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the chip name value </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01477">1477</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__scired_8c_source.html#l02166">tflat_qclog()</a>, <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00410">uves_qclog_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaeefa3dc2dbf45776accef00f67b7002f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_inspath </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the chip name value </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01495">1495</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__scired_8c_source.html#l02166">tflat_qclog()</a>, <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00410">uves_qclog_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga58d2d231e9bcf59d84ce42cf527b2071"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_gratname </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the grating name value </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01513">1513</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00410">uves_qclog_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5dc4ab669bc41d6c481905c16afa59a0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_readspeed </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the readout speed </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01532">1532</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00410">uves_qclog_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa907a5d5e4e5a8b2fedda4daae8fae4f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_gratid </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the grating ID value </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01551">1551</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga159df9e29b6cdbc886d2ec1c19884a64"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_slitlength </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the slit length </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01570">1570</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>, and <a class="el" href="uves__physmod__plotmod_8c_source.html#l00119">uves_physmod_plotmod()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadbfe6eb96c384b6b971b634ab8b79fab"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_slitwidth </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>find out the slit width </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01590">1590</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>, <a class="el" href="uves__physmod__plotmod_8c_source.html#l00119">uves_physmod_plotmod()</a>, <a class="el" href="uves__qclog_8c_source.html#l00942">uves_qclog_add_common_wave()</a>, and <a class="el" href="uves__qclog_8c_source.html#l01166">uves_qclog_dump_common_wave()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga49559908c6512ccc86d7ea3b478bdc9a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_ordpred </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read the predicted number of orders. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01608">1608</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__propertylist_8c_source.html#l01045">uves_propertylist_contains()</a>, <a class="el" href="uves__propertylist_8c_source.html#l00991">uves_propertylist_get_type()</a>, and <a class="el" href="uves__dump_8c_source.html#l00377">uves_tostring_cpl_type()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga69cca375340082d053f4fa6d11c099c6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_history_val </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>format</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"> </td>
-          <td class="paramname"><em>...</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write integer value to HISTORY keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to write to </td></tr>
-    <tr><td class="paramname">name</td><td>name </td></tr>
-    <tr><td class="paramname">format</td><td>printf-style argument, value to write</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>This function adds a HISTORY keyword with value "[name] [value]". If a HISTORY entry with value prefix "[name] " already exists, the value will be changed (first match is used).</p>
-<p>See also <code><a class="el" href="group__uves__pfits.html#ga41f9034d45d27b699e4bb70c322d8856" title="Parse the value of a HISTORY keyword.">parse_history()</a></code>. </p>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01665">1665</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l00898">uves_propertylist_get_size()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__pfits_8c_source.html#l01803">uves_pfits_set_firstabsorder()</a>, <a class="el" href="uves__pfits_8c_source.html#l01834">uves_pfits_set_lastabsorder()</a>, <a class="el" href="uves__pfits_8c_source.html#l01997">uves_pfits_set_offset()</a>, <a class="el" href="uves__pfits_8c_source.html#l01956">uves_pfits_set_traceid()</a>, and <a class="el" href="uves__pfits_8c_source.html#l02012">uves_pfits_set_windownumber()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga41f9034d45d27b699e4bb70c322d8856"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double parse_history </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_type </td>
-          <td class="paramname"><em>type</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Parse the value of a HISTORY keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>property list to read from </td></tr>
-    <tr><td class="paramname">name</td><td>name </td></tr>
-    <tr><td class="paramname">type</td><td>integer or double </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error. An integer value is cast to double (i.e. the caller should round the returned value)</dd></dl>
-<p>This function will search for a HISTORY keyword containing the value "[name] [number]" where [name] is the specified name and <em>number</em> is an integer or double (the value to read).</p>
-<p>The first "HISTORY [name] ..." entry will be read and it is an error if this doesn't contain a valid number string (also if a valid entry exists at a later point in the propertylist). </p>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01739">1739</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__propertylist_8c_source.html#l01650">uves_propertylist_get_const()</a>, <a class="el" href="uves__propertylist_8c_source.html#l00898">uves_propertylist_get_size()</a>, and <a class="el" href="uves__dump_8c_source.html#l00377">uves_tostring_cpl_type()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__pfits_8c_source.html#l01818">uves_pfits_get_firstabsorder()</a>, <a class="el" href="uves__pfits_8c_source.html#l01848">uves_pfits_get_lastabsorder()</a>, <a class="el" href="uves__pfits_8c_source.html#l01970">uves_pfits_get_offset()</a>, <a class="el" href="uves__pfits_8c_source.html#l02027">uves_pfits_get_traceid()</a>, and <a class="el" href="uves__pfits_8c_source.html#l02040">uves_pfits_get_windownumber()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga33e51be1bfd4b8f42972789c417211ae"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_firstabsorder </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>first_abs_order</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the first absolute order number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">first_abs_order</td><td>The value to write</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01803">1803</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__pfits_8c_source.html#l01665">uves_pfits_set_history_val()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__dfs-test_8c_source.html#l00268">test_load_linetable()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa6a185f3150b22d6ce30439bfacbb78c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_firstabsorder </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get first absolute order number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01818">1818</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__pfits_8c_source.html#l01739">parse_history()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>, and <a class="el" href="uves__response__efficiency_8c_source.html#l00100">uves_response_efficiency()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga69fae305f143947cdd58f3c575e7ba9a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_lastabsorder </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>last_abs_order</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the last absolute order number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">last_abs_order</td><td>The value to write</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01834">1834</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__pfits_8c_source.html#l01665">uves_pfits_set_history_val()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__dfs-test_8c_source.html#l00268">test_load_linetable()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad090d54b01606904ef8d740f766c2fde"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_lastabsorder </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get last absolute order number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01848">1848</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__pfits_8c_source.html#l01739">parse_history()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>, and <a class="el" href="uves__response__efficiency_8c_source.html#l00100">uves_response_efficiency()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga865460e642e3dc81fae544e3b6f1402a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_data_average </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>average</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the average pixel value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">average</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01862">1862</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__propertylist_8c_source.html#l01153">uves_propertylist_set_comment()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga308f6a7549c50e0c513d63a40dfa975f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_data_stddev </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>stddev</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the RMS error of pixel values. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">stddev</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01880">1880</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__propertylist_8c_source.html#l01153">uves_propertylist_set_comment()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad010fc0da98b85fdebcd5bc5ba66b2bf"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_data_median </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>median</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the median pixel value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">median</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01900">1900</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__propertylist_8c_source.html#l01153">uves_propertylist_set_comment()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac4287c2bde551653e40d60e128a3a35a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_data_min </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>min</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the min pixel value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">min</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01918">1918</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__propertylist_8c_source.html#l01153">uves_propertylist_set_comment()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga12b323abb20f835610ee85f9511d2b30"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_data_max </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>max</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the max pixel value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">max</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01936">1936</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__propertylist_8c_source.html#l01153">uves_propertylist_set_comment()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7ee7734c381f31039220820182a749c9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_traceid </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>trace_id</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the trace ID. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">trace_id</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01956">1956</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__pfits_8c_source.html#l01665">uves_pfits_set_history_val()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__dfs-test_8c_source.html#l00268">test_load_linetable()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaef0d7e4491440deeda27c14d65c34d7b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_offset </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the trace offset. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>offset </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01970">1970</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__pfits_8c_source.html#l01739">parse_history()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l01045">uves_propertylist_contains()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01509">interpolate_wave()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae66ad0ee347230f2fea240f445104a20"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_offset </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>trace_offset</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the trace offset. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">trace_offset</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l01997">1997</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__pfits_8c_source.html#l01665">uves_pfits_set_history_val()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab684709b2ade5e2322325761799e92d0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_windownumber </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>window_number</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the window number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">window_number</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02012">2012</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__pfits_8c_source.html#l01665">uves_pfits_set_history_val()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__dfs-test_8c_source.html#l00268">test_load_linetable()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gafe242382d5e824db3b68e156d8296a89"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_traceid </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the trace ID number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02027">2027</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__pfits_8c_source.html#l01739">parse_history()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3bcabe0b2d46d1f65674d3d0dcb9ee2d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_windownumber </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the window number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02040">2040</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__pfits_8c_source.html#l01739">parse_history()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaeaf186ce3a84dfbca11c7cee211e80ce"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_bunit </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the bunit. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02053">2053</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gacc6916f14b6591ccc948f1ca8117fbf0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_bscale </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the bscale. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02072">2072</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga59cf5e1608701d663f3abcc8fcb41880"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_cunit1 </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the cunit1. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02092">2092</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1f8205720c4af931e1dfb55542d71ccc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_cunit2 </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the cunit2. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02111">2111</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa01218ecc26f39e4d903199d8912859a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_ctype1 </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the ctype1. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02130">2130</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga10f0c2c5e0fd87a36ede0e7fb2fa05bd"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_ctype2 </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the ctype2. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02149">2149</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga94a0f9aec24d8d9ce2a936a1cd7985dd"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_uit </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the user integration time. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02168">2168</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__pfits_8c_source.html#l00701">uves_format_is_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_nx </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the OUT1 NX or OUT4 NX. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02194">2194</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__pfits_8c_source.html#l00701">uves_format_is_new()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__chop__otab_8c_source.html#l00136">uves_physmod_chop_otab()</a>, and <a class="el" href="uves__physmod__regress__echelle_8c_source.html#l00098">uves_physmod_regress_echelle()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4869724c736010824272955edffb60eb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_ny </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the OUT1 NY or OUT4 NY. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02223">2223</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__pfits_8c_source.html#l00701">uves_format_is_new()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__chop__otab_8c_source.html#l00136">uves_physmod_chop_otab()</a>, and <a class="el" href="uves__physmod__regress__echelle_8c_source.html#l00098">uves_physmod_regress_echelle()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae9e532b44a8101e42ee42ea2294e877a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_out1nx </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the OUT1 NX. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02250">2250</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4cc264a7bd8eafb4572b7ee10a82b4a9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_out1ny </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the OUT1 NY. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02269">2269</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf24b3465f3646b6a0c446eb1fbeb2520"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_out4nx </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the OUT4 NX. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02288">2288</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga40a63a22192db6fbc8bab37e64ae0bc9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_out4ny </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the OUT4 NY. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02307">2307</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga17228ff502d3e1eafc4359b2b7069a32"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_naxis </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the NAXIS. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02327">2327</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__utl__unpack_8c_source.html#l00225">flames_utl_unpack()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac758aa4b71e0c505df55d1d99d7b62f8"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_flames_pfits_get_nflats </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the NFLATS. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02346">2346</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga45d7028cbd48f33f7c5589deb4ccd5c4"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_bitpix </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the BITPIX. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02366">2366</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l02112">flames_midas_scfinf()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadd8fda05c51af7b34d5021b4bc60fffc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_naxis1 </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the NAXIS1. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02384">2384</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__regress__echelle_8c_source.html#l00098">uves_physmod_regress_echelle()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf61c29fc0fa67ae38c7ac8e0f125c6ce"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_startx </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the START1. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02404">2404</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa144877b5eaa88dd3bc92c9900543c5f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_starty </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the STARTY. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02424">2424</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga41338750e1279de511bc5035d8d218d0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_get_naxis2 </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the NAXIS2. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02443">2443</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__regress__echelle_8c_source.html#l00098">uves_physmod_regress_echelle()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga03b112a6789efbba09a9781fbc48dd81"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_crval1 </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the crval1. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02461">2461</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l02600">subtract_sky()</a>, <a class="el" href="uves__response__utils_8c_source.html#l00140">uves_calculate_response()</a>, <a class="el" href="uves__reduce__utils_8c_source.html#l00128">uves_normalize_spectrum()</a>, <a class="el" href="uves__physmod__regress__echelle_8c_source.html#l00098">uves_physmod_regress_echelle()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00374">uves_scired_process_chip()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaefba8b3c1a2fbe5c0f42eaeaaafaf455"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_crval2 </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the crval2. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02479">2479</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__search_8c_source.html#l00426">detect_lines()</a>, and <a class="el" href="uves__physmod__regress__echelle_8c_source.html#l00098">uves_physmod_regress_echelle()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1820feccc4e549d16d5630880790cea3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_crpix1 </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the crpix1. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02497">2497</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga18ea5d528ab27ac81d2b64901f81c4b7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_crpix2 </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the crpix2. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02515">2515</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga275ac7ecf1fc85f2d4d06eae8a950ba7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_cdelt1 </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the cdelt1. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02533">2533</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l02600">subtract_sky()</a>, <a class="el" href="uves__response__utils_8c_source.html#l00140">uves_calculate_response()</a>, <a class="el" href="uves__merge_8c_source.html#l00239">uves_merge_orders()</a>, <a class="el" href="uves__reduce__utils_8c_source.html#l00128">uves_normalize_spectrum()</a>, <a class="el" href="uves__physmod__regress__echelle_8c_source.html#l00098">uves_physmod_regress_echelle()</a>, <a class="el" href [...]
-
-</div>
-</div>
-<a class="anchor" id="gab1af91452dda53e50314231795bf5308"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_cdelt2 </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the cdelt2. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02551">2551</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__regress__echelle_8c_source.html#l00098">uves_physmod_regress_echelle()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga666eb10fe3865d59fa69b830735f0e0e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_dpr_catg </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>catg</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set DPR CATG value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-    <tr><td class="paramname">catg</td><td>key value </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02572">2572</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa8bc49514a8c08229da6db3f881cf98c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_dpr_tech </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>tech</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set DPR TECH value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-    <tr><td class="paramname">catg</td><td>key value </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02589">2589</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad5a9f4f0b354fff0ee10bd24df613b25"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_dpr_type </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>type</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set DPR TYPE value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-    <tr><td class="paramname">catg</td><td>key value </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02605">2605</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga00c534cae0eea2f78b8d36bc675c7b80"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_object </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>object</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the object keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">object</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02622">2622</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa198d93b1538311c92a9b2fed6389357"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_badpixcorr </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>corr</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the object keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">corr</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02639">2639</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__corrbadpix_8c_source.html#l00585">uves_correct_badpix()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad288bfc7118fd184d27b16ec9c45d5eb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_redlevel </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>redlevel</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the reduction level. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">redlevel</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02657">2657</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8e84ec2559f4f8b5c950ca701c852c61"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_status </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>status</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the status. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">status</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02675">2675</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0cb8c1549c5c2877e335249714025634"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_starttime </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>start_time</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the start time. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">start_time</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02693">2693</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga62d8502b9cb1c8852a37f88499c88e26"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_stoptime </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>stop_time</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the stop time. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">stop_time</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02710">2710</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1dcf84ae52c90eecc51ca448a63cfc5e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_bunit </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>bunit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the bunit keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">bunit</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02728">2728</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gace68beef266360129dce0860c4fb1731"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_bscale </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>bscale</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the bscale keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">bscale</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02746">2746</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad9f2f8d54f1b6708126bc62b45bc7d74"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_tunit_no </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>col_no</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>tunit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the tunit keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">bunit</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02765">2765</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf0f096e9615abba54e8df7068b2e7541"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_bunit_no </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>axis_no</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>bunit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the bunit keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">bunit</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02786">2786</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac948997f6142c218334d0cb70a4eeabc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_ctype1 </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>ctype1</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the ctype1 keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">ctype1</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02804">2804</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1644b60894010bfaa365370ff6851aaf"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_ctype2 </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>ctype2</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the ctype2 keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">ctype2</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02821">2821</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf22ae9bd0d4e3492b1595f49ec00edc8"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_cunit1 </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>cunit1</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the cunit1 keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">cunit1</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02841">2841</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6bef11d061318a2656e16fb83717965b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_cunit2 </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>cunit2</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the cunit2 keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">cunit2</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02859">2859</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04977">uves_propertylist_update_string()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaaed14627f7b8206cc8970cd1f787a6db"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_crval1 </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>crval1</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the crval1 keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">crval1</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02877">2877</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l02600">subtract_sky()</a>, and <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga510ee409ec059fdbd8991d88a7639152"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_crval2 </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>crval2</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the crval2 keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">crval2</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02895">2895</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0fb41e9ccebfde88e71dcd6ed2dff570"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_crpix1 </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>crpix1</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the crpix1 keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">crpix1</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02912">2912</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf6964f0063821d3f357125f149f87367"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_crpix2 </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>crpix2</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the crpix2 keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">crpix2</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02930">2930</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0d13232557903e763483cc57b4cfa0c4"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_cdelt1 </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>cdelt1</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the cdelt1 keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">cdelt1</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02947">2947</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga18d5d37d2b633d137b3c256e9e61c029"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_flames_pfits_set_ccfposmax </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>ccfposmax</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the ccfposmax keyword (what is it?) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">ccfposmax</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02965">2965</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga80ad6ea5e902d3cc3a1f3745035e528e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_cdelt2 </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>cdelt2</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the cdelt2 keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">cdelt2</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l02983">2983</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3a62ab3d0a3cbff46e6587757c951c7d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_pfits_set_hs </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>hs</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the 2d extractino slit length. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">hs</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l03000">3000</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04633">uves_propertylist_update_int()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga343861c33e84f1358c3235d41e8474b8"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_wstart </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>wstart</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the wstart keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">order</td><td>Write WSTART keyword for this order number </td></tr>
-    <tr><td class="paramname">wstart</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l03020">3020</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l02600">subtract_sky()</a>, and <a class="el" href="uves__rebin_8c_source.html#l00348">uves_rebin()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa8f810cc3210842daea835201a6a5203"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_wstart </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>order</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read the wstart keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read </td></tr>
-    <tr><td class="paramname">order</td><td>Read WSTART keyword for this order number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The value read </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l03052">3052</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, and <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l02600">subtract_sky()</a>, <a class="el" href="uves__response__utils_8c_source.html#l00140">uves_calculate_response()</a>, <a class="el" href="uves__merge_8c_source.html#l00239">uves_merge_orders()</a>, <a class="el" href="uves__reduce__utils_8c_source.html#l00128">uves_normalize_spectrum()</a>, <a class="el" href="uves__rebin_8c_source.html#l00348">uves_rebin()</a>, and <a class="el" href="uves__response__efficiency_8c_so [...]
-
-</div>
-</div>
-<a class="anchor" id="ga30c035689f06d716cca55250181f9956"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_pfits_set_wend </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>wend</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the wend keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">order</td><td>Write WEND keyword for this order number </td></tr>
-    <tr><td class="paramname">wend</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l03083">3083</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04891">uves_propertylist_update_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l02600">subtract_sky()</a>, and <a class="el" href="uves__rebin_8c_source.html#l00348">uves_rebin()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3443f7c706d4711dbb277ab6d2f59595"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_wend </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>order</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read the wend keyword. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read </td></tr>
-    <tr><td class="paramname">order</td><td>Read WEND keyword for this order number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The value read </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l03115">3115</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, and <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l02600">subtract_sky()</a>, <a class="el" href="uves__merge_8c_source.html#l00239">uves_merge_orders()</a>, and <a class="el" href="uves__response__efficiency_8c_source.html#l00100">uves_response_efficiency()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaad1abe1801ca189d25b0f9ffdcf1f078"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_pixelscale </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get pixel scale. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l03145">3145</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__pfits_8c_source.html#l03189">uves_pfits_get_slitlength_pixels()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadb0a05528f0429187a6af97bcb3f4a25"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char * uves_pfits_get_slit1_name </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get image slicer name. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l03164">3164</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__scired_8c_source.html#l02166">tflat_qclog()</a>, <a class="el" href="uves__pfits_8c_source.html#l03189">uves_pfits_get_slitlength_pixels()</a>, and <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gada5bfd486b316634b1d107ea5fc2cd12"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pfits_get_slitlength_pixels </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read the slit length in pixels. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to read </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The slit length in pixels</dd></dl>
-<p>The function returns the slit length in pixels taking into account the possible existence of an image slicer </p>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l03189">3189</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__pfits_8c_source.html#l01282">uves_pfits_get_binx()</a>, <a class="el" href="uves__pfits_8c_source.html#l03145">uves_pfits_get_pixelscale()</a>, and <a class="el" href="uves__pfits_8c_source.html#l03164">uves_pfits_get_slit1_name()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae70f662017b21fd4d83fa9d7b16fec50"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_flames_pfits_get_plateid </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>read the plate id </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_header</td><td>FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>plate id </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l03249">3249</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, and <a class="el" href="uves__propertylist_8c_source.html#l01045">uves_propertylist_contains()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7bcb4bda625a9aee0a93daaa409e1320"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_flames_pfits_get_dit </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the integration time. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Header to read from </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The requested value, or undefined on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l03302">3302</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga95b184c2af4a33cac829ff926b10138b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_flames_pfits_set_newplateid </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>plate_no</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write the plate number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>Property list to write to </td></tr>
-    <tr><td class="paramname">plate_no</td><td>The value to write </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__pfits_8c_source.html#l03321">3321</a> of file <a class="el" href="uves__pfits_8c_source.html">uves_pfits.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__propertylist_8c_source.html#l04633">uves_propertylist_update_int()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__physmod.html b/html/group__uves__physmod.html
deleted file mode 100644
index 474ae3f..0000000
--- a/html/group__uves__physmod.html
+++ /dev/null
@@ -1,1123 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: UVES Physical Model</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#define-members">Macros</a> |
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Recipe: UVES Physical Model</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
-Macros</h2></td></tr>
-<tr class="memitem:ga8049c678a855a57b1030eab386393a8f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8049c678a855a57b1030eab386393a8f"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>FILESIZE</b>   200</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga3a452c20f5d130b0184d0f61962e83f9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#ga3a452c20f5d130b0184d0f61962e83f9">uves_physmod_calmap</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, enum uves_chip chip, const char *recipe_id, const cpl_parameterlist *parameters, cpl_table *npli [...]
-<tr class="memdesc:ga3a452c20f5d130b0184d0f61962e83f9"><td class="mdescLeft"> </td><td class="mdescRight">This procedure makes the order definitions and wavelength calibration from the wavelength projection map, and saves the data in tables and global keywords in echelle context. It generates order and line tables.  <a href="#ga3a452c20f5d130b0184d0f61962e83f9"></a><br/></td></tr>
-<tr class="memitem:ga97331f20ee8993be30fa7a155a463fb2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#ga97331f20ee8993be30fa7a155a463fb2">uves_physmod_center_gauss</a> (const cpl_image *raw_image, cpl_table **m_tbl)</td></tr>
-<tr class="memdesc:ga97331f20ee8993be30fa7a155a463fb2"><td class="mdescLeft"> </td><td class="mdescRight">Fit the image line X and Y distributions with a Gaussian in a box.  <a href="#ga97331f20ee8993be30fa7a155a463fb2"></a><br/></td></tr>
-<tr class="memitem:ga1aaabdd9a0e0412928a2345f63184f08"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#ga1aaabdd9a0e0412928a2345f63184f08">uves_physmod_chop_otab</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, enum uves_chip chip, cpl_table **ord_tbl, const char *col_name, int *ord_min, int *ord_max)</ [...]
-<tr class="memdesc:ga1aaabdd9a0e0412928a2345f63184f08"><td class="mdescLeft"> </td><td class="mdescRight">Chop off orders which are not fully in the detector chip.  <a href="#ga1aaabdd9a0e0412928a2345f63184f08"></a><br/></td></tr>
-<tr class="memitem:gac4e6f429f26f9e850ba3e751ebead1ad"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac4e6f429f26f9e850ba3e751ebead1ad"></a>
-static int </td><td class="memItemRight" valign="bottom"><b>flames_get_trans</b> (const int plt_no, enum uves_chip chip, const double wlen, double *TX, double *TY)</td></tr>
-<tr class="memitem:gaed3ec9e2f866d475ff9917cf6f06a6d3"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#gaed3ec9e2f866d475ff9917cf6f06a6d3">flames_get_physmod_offset</a> (const int plate_no, const int wavec, enum uves_chip chip, double *trans_x, double *trans_y, double *ech_ang_off, double *cd_ang_off, double *ccd_ang_off)</td></tr>
-<tr class="memdesc:gaed3ec9e2f866d475ff9917cf6f06a6d3"><td class="mdescLeft"> </td><td class="mdescRight">Get the physical model shifts in FIBER mode.  <a href="#gaed3ec9e2f866d475ff9917cf6f06a6d3"></a><br/></td></tr>
-<tr class="memitem:ga49d4e127229f5edcf7ec50b54b0a2f1c"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#ga49d4e127229f5edcf7ec50b54b0a2f1c">uves_get_physmod_offset</a> (const int wavec, enum uves_chip chip, const int binx, const int biny, double *trans_x, double *trans_y, double *ech_ang_off, double *cd_ang_off, double *ccd_ang_off)</td></tr>
-<tr class="memdesc:ga49d4e127229f5edcf7ec50b54b0a2f1c"><td class="mdescLeft"> </td><td class="mdescRight">Get the physical model offsets in ECHELLE mode.  <a href="#ga49d4e127229f5edcf7ec50b54b0a2f1c"></a><br/></td></tr>
-<tr class="memitem:ga00e5ea8f673b3dfd86ba0d7982e0d793"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#ga00e5ea8f673b3dfd86ba0d7982e0d793">uves_physmod_create_table</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, enum uves_chip chip, bool flames, const char *recipe_id, const cpl_parameterlist *paramete [...]
-<tr class="memdesc:ga00e5ea8f673b3dfd86ba0d7982e0d793"><td class="mdescLeft"> </td><td class="mdescRight">Generates two tables with results of the UVES physical model.  <a href="#ga00e5ea8f673b3dfd86ba0d7982e0d793"></a><br/></td></tr>
-<tr class="memitem:ga936ea83d8565240521a8fe946ac6c9ae"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#ga936ea83d8565240521a8fe946ac6c9ae">uves_physmod_msrawxy</a> (const cpl_image *raw_image, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, const char *recipe_id, const cpl_parameterlist *parameters, cpl_tab [...]
-<tr class="memdesc:ga936ea83d8565240521a8fe946ac6c9ae"><td class="mdescLeft"> </td><td class="mdescRight">This procedure measures the raw XY positions and widths of Th-Ar lines on an ThAr arc echelle exposure. It computes the differences with the predicted positions.  <a href="#ga936ea83d8565240521a8fe946ac6c9ae"></a><br/></td></tr>
-<tr class="memitem:gac557292b00ae3782ce6efa3a4e0290f3"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#gac557292b00ae3782ce6efa3a4e0290f3">uves_physmod_necregr</a> (cpl_table **ord_tbl, cpl_table **reg_tbl)</td></tr>
-<tr class="memdesc:gac557292b00ae3782ce6efa3a4e0290f3"><td class="mdescLeft"> </td><td class="mdescRight">This procedure does a linear fit of independent orders.  <a href="#gac557292b00ae3782ce6efa3a4e0290f3"></a><br/></td></tr>
-<tr class="memitem:ga7ac0845d816025a744319be6528c714b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#ga7ac0845d816025a744319be6528c714b">uves_physmod_plotmod</a> (const cpl_table *tbl, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *head, const char *rec_id, const cpl_parameterlist *params, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga7ac0845d816025a744319be6528c714b"><td class="mdescLeft"> </td><td class="mdescRight">This procedure plots results from the uves_physmod recipe.  <a href="#ga7ac0845d816025a744319be6528c714b"></a><br/></td></tr>
-<tr class="memitem:ga7ba94584b6a36bc5d55e397b5ef6af8c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#ga7ba94584b6a36bc5d55e397b5ef6af8c">uves_physmod_qc1pmtbl</a> (cpl_table **rline_tbl, cpl_table **lin_tbl)</td></tr>
-<tr class="memdesc:ga7ba94584b6a36bc5d55e397b5ef6af8c"><td class="mdescLeft"> </td><td class="mdescRight">To be written.  <a href="#ga7ba94584b6a36bc5d55e397b5ef6af8c"></a><br/></td></tr>
-<tr class="memitem:ga6cbdcd8eb1c7f25749c51874d79e4e83"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#ga6cbdcd8eb1c7f25749c51874d79e4e83">uves_physmod_regress_echelle</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, enum uves_chip chip, const char *recipe_id, const cpl_parameterlist *parameters, cpl_ta [...]
-<tr class="memdesc:ga6cbdcd8eb1c7f25749c51874d79e4e83"><td class="mdescLeft"> </td><td class="mdescRight">Fit mesured position of orders by a bivariate polynomial.  <a href="#ga6cbdcd8eb1c7f25749c51874d79e4e83"></a><br/></td></tr>
-<tr class="memitem:gab2645fc74b7cddacfe9b1ac960608a4e"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#gab2645fc74b7cddacfe9b1ac960608a4e">uves_physmod_align_tables</a> (cpl_table **m_tbl, cpl_table **r_tbl)</td></tr>
-<tr class="memdesc:gab2645fc74b7cddacfe9b1ac960608a4e"><td class="mdescLeft"> </td><td class="mdescRight">This procedure compares two input tables and eventually alignes them.  <a href="#gab2645fc74b7cddacfe9b1ac960608a4e"></a><br/></td></tr>
-<tr class="memitem:gac2394f974852f00f7fd8d77233a18fe4"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#gac2394f974852f00f7fd8d77233a18fe4">flames_align_table_column</a> (cpl_table **m_tbl, cpl_table **r_tbl, const char *col)</td></tr>
-<tr class="memdesc:gac2394f974852f00f7fd8d77233a18fe4"><td class="mdescLeft"> </td><td class="mdescRight">This procedure compares two input tables and eventually alignes them.  <a href="#gac2394f974852f00f7fd8d77233a18fe4"></a><br/></td></tr>
-<tr class="memitem:ga107c8a7619bdaf3c4219f05060192bd2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod.html#ga107c8a7619bdaf3c4219f05060192bd2">uves_physmod_stability_check</a> (cpl_table *m_tbl, cpl_table *r_tbl, double *med_dx, double *med_dy, double *avg_dx, double *avg_dy)</td></tr>
-<tr class="memdesc:ga107c8a7619bdaf3c4219f05060192bd2"><td class="mdescLeft"> </td><td class="mdescRight">This procedure run a stability check.  <a href="#ga107c8a7619bdaf3c4219f05060192bd2"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This recipe computes a guess order and line table by using a physical model for UVES See man-page for details. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga3a452c20f5d130b0184d0f61962e83f9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_physmod_calmap </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>npline_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>ord_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>lin_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>w_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>s_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>abs_ord_min</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>abs_ord_max</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td>
-          <td class="paramname"><em>poly2d</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>This procedure makes the order definitions and wavelength calibration from the wavelength projection map, and saves the data in tables and global keywords in echelle context. It generates order and line tables. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_header</td><td>header of raw frame </td></tr>
-    <tr><td class="paramname">chip</td><td>UVES chip ID </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>name of calling recipe </td></tr>
-    <tr><td class="paramname">parameters</td><td>input recipe parameters </td></tr>
-    <tr><td class="paramname">npline_tbl</td><td>input table </td></tr>
-    <tr><td class="paramname">ord_tbl</td><td>output order table </td></tr>
-    <tr><td class="paramname">lin_tbl</td><td>output line table </td></tr>
-    <tr><td class="paramname">w_tbl</td><td>output table with results from regression </td></tr>
-    <tr><td class="paramname">s_tbl</td><td>output table with results from regression (same as w one?) </td></tr>
-    <tr><td class="paramname">abs_ord_min</td><td>min absolute order </td></tr>
-    <tr><td class="paramname">abs_ord_max</td><td>max absolute order </td></tr>
-    <tr><td class="paramname">poly2d</td><td>output polynomial with coefficients from regression: Order=poly2d(X,YNEW) fit is stored in column RORD</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>: this has been ported from UVES MIDAS pipeline </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__calmap_8c_source.html#l00068">68</a> of file <a class="el" href="uves__physmod__calmap_8c_source.html">uves_physmod_calmap.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__physmod__regress__echelle_8c_source.html#l00098">uves_physmod_regress_echelle()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l0117 [...]
-
-</div>
-</div>
-<a class="anchor" id="ga97331f20ee8993be30fa7a155a463fb2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_physmod_center_gauss </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>raw_image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>m_tbl</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Fit the image line X and Y distributions with a Gaussian in a box. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_image</td><td>Input raw image </td></tr>
-    <tr><td class="paramname">m_tbl</td><td>model table: Input/Output table with added colums ICENT,XCEN,YCEN,XFWHM,YFWHM,XSIG,YSIG,XERR,YERR,STATUS with results of a Gaussian marginal fit to the image intensity distributions obtained by collapsing along X and Y the image points within a box centered at each line</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise</dd></dl>
-<p>This function is used to precisely locate each image line within a given box by a Gaussian 1d fit of each intensity distribution which can be obtained by collapsing the signal within a box centered at each line (routine derived from MIDAS one) </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__center__gauss_8c_source.html#l00138">138</a> of file <a class="el" href="uves__physmod__center__gauss_8c_source.html">uves_physmod_center_gauss.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, and <a class="el" href="uves__physmod__cstacen_8c_source.html#l00188">uves_physmod_stacen()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__msrawxy_8c_source.html#l00086">uves_physmod_msrawxy()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1aaabdd9a0e0412928a2345f63184f08"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_physmod_chop_otab </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>ord_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>col_name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>ord_min</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>ord_max</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Chop off orders which are not fully in the detector chip. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_header</td><td>An array containing the input image headers. The ordering must be the same as the ordering of images in the input image list </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-    <tr><td class="paramname">col_name</td><td>Name of column of which min/max is computed </td></tr>
-    <tr><td class="paramname">ord_tbl</td><td>The output guess order table. </td></tr>
-    <tr><td class="paramname">ord_min</td><td>The output guess order table minimum value </td></tr>
-    <tr><td class="paramname">ord_max</td><td>The output guess order table maximum value</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__physmod__chop__otab_8c_source.html#l00136">136</a> of file <a class="el" href="uves__physmod__chop__otab_8c_source.html">uves_physmod_chop_otab.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__pfits_8c_source.html#l02194">uves_pfits_get_nx()</a>, and <a class="el" href="uves__pfits_8c_source.html#l02223">uves_pfits_get_ny()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaed3ec9e2f866d475ff9917cf6f06a6d3"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int flames_get_physmod_offset </td>
-          <td>(</td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>plate_no</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>wavec</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>trans_x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>trans_y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>ech_ang_off</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>cd_ang_off</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>ccd_ang_off</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get the physical model shifts in FIBER mode. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plate_no</td><td>plate number </td></tr>
-    <tr><td class="paramname">wavec</td><td>central wavelength </td></tr>
-    <tr><td class="paramname">trans_x</td><td>out physical model X shift </td></tr>
-    <tr><td class="paramname">trans_y</td><td>out physical model Y shift </td></tr>
-    <tr><td class="paramname">ech_ang_off</td><td>out ech angle </td></tr>
-    <tr><td class="paramname">cd_ang_off</td><td>out cd angle </td></tr>
-    <tr><td class="paramname">ccd_ang_off</td><td>out ccd angle </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__physmod__create__table_8c_source.html#l01835">1835</a> of file <a class="el" href="uves__physmod__create__table_8c_source.html">uves_physmod_create_table.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, and <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga49d4e127229f5edcf7ec50b54b0a2f1c"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_get_physmod_offset </td>
-          <td>(</td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>wavec</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>binx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>biny</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>trans_x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>trans_y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>ech_ang_off</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>cd_ang_off</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>ccd_ang_off</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get the physical model offsets in ECHELLE mode. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">wavec</td><td>central wavelength </td></tr>
-    <tr><td class="paramname">trans_x</td><td>out physical model X shift </td></tr>
-    <tr><td class="paramname">trans_y</td><td>out physical model Y shift </td></tr>
-    <tr><td class="paramname">ech_ang_off</td><td>out ech angle </td></tr>
-    <tr><td class="paramname">cd_ang_off</td><td>out cd angle </td></tr>
-    <tr><td class="paramname">ccd_ang_off</td><td>out ccd angle </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__physmod__create__table_8c_source.html#l00912">912</a> of file <a class="el" href="uves__physmod__create__table_8c_source.html">uves_physmod_create_table.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, and <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">uves_physmod_create_table()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga00e5ea8f673b3dfd86ba0d7982e0d793"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_physmod_create_table </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>flames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>line_refer</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>physmod_shift_x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>physmod_shift_y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>mod_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>fsr_tbl</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Generates two tables with results of the UVES physical model. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_header</td><td>An array containing the input image headers. The ordering must be the same as the ordering of images in the input image list </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>name of calling recipe </td></tr>
-    <tr><td class="paramname">parameters</td><td>The recipe parameter list </td></tr>
-    <tr><td class="paramname">line_refer</td><td>The reference arc lamp line list </td></tr>
-    <tr><td class="paramname">physmod_shift_x</td><td>Correction to physical model </td></tr>
-    <tr><td class="paramname">physmod_shift_y</td><td>Correction to physical model </td></tr>
-    <tr><td class="paramname">mod_tbl</td><td>The output table with results from the UVES physical model </td></tr>
-    <tr><td class="paramname">fsr_tbl</td><td>Output table with predicted Free Spectral Range</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise</dd></dl>
-<p>This function is used to run the UVES physical model and predict the spectral format (order trace, line positions, blaze, etc..) </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__create__table_8c_source.html#l00124">124</a> of file <a class="el" href="uves__physmod__create__table_8c_source.html">uves_physmod_create_table.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__physmod__create__table_8c_source.html#l01835">flames_get_physmod_offset()</a>, <a class="el" href="uves__pfits_8c_source.html#l00681">uves_ccd_is_new()</a>, <a class="el" href="uves__chip_8c_source.html#l00156">uves_chip_tostring_upper()</a>, <a class="el" href="uves__pfits_8c_source.html#l03249">uves_flames_pfit [...]
-
-<p>Referenced by <a class="el" href="uves__utl__physmod_8c_source.html#l00354">uves_utl_physmod()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga936ea83d8565240521a8fe946ac6c9ae"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_physmod_msrawxy </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>raw_image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>mod_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>l_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>m_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>p_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>rline_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>mline_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>npline_tbl</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>This procedure measures the raw XY positions and widths of Th-Ar lines on an ThAr arc echelle exposure. It computes the differences with the predicted positions. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_image</td><td>The input raw frame (splitted) </td></tr>
-    <tr><td class="paramname">raw_header</td><td>An array containing the input image headers. The ordering must be the same as the ordering of images in the input image list </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>name of calling recipe </td></tr>
-    <tr><td class="paramname">parameters</td><td>The recipe parameter list </td></tr>
-    <tr><td class="paramname">mod_tbl</td><td>Input model table from <a class="el" href="group__uves__physmod.html#ga00e5ea8f673b3dfd86ba0d7982e0d793" title="Generates two tables with results of the UVES physical model.">uves_physmod_create_table()</a> </td></tr>
-    <tr><td class="paramname">l_tbl</td><td>Temporary table </td></tr>
-    <tr><td class="paramname">m_tbl</td><td>Temporary table </td></tr>
-    <tr><td class="paramname">p_tbl</td><td>Temporary table </td></tr>
-    <tr><td class="paramname">rline_tbl</td><td>Temporary table with predicted line positions </td></tr>
-    <tr><td class="paramname">mline_tbl</td><td>Temporary table with corrected predicted line positions </td></tr>
-    <tr><td class="paramname">npline_tbl</td><td>Temporary table</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise</dd></dl>
-<p>This function creates tables rline_tbl containing predicted positions (XMOD,YMOD) and the differences, fits with a polynomial of degree 2,2 on X,Ythis difference depending on the positions (X,Y), computes the projection map with a polynomial fit of degree 2,2 on X,Y and save them in the table npline_tbl. </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__msrawxy_8c_source.html#l00086">86</a> of file <a class="el" href="uves__physmod__msrawxy_8c_source.html">uves_physmod_msrawxy.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__pfits_8c_source.html#l01282">uves_pfits_get_binx()</a>, <a class="el" href="uves__pfits_8c_source.html#l01300">uves_pfits_get_biny()</a>, <a class="el" href="uves__physmod__center__gauss_8c_source.html#l00138">uves_physmod_center_gauss()</a> [...]
-
-</div>
-</div>
-<a class="anchor" id="gac557292b00ae3782ce6efa3a4e0290f3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_physmod_necregr </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>ord_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>reg_tbl</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>This procedure does a linear fit of independent orders. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ord_tbl</td><td>The input order table </td></tr>
-    <tr><td class="paramname">reg_tbl</td><td>The output regression table.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise</dd></dl>
-<p>This procedure does a linear fit of independent orders and writes the rms in a table </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__necregr_8c_source.html#l00105">105</a> of file <a class="el" href="uves__physmod__necregr_8c_source.html">uves_physmod_necregr.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__regress__echelle_8c_source.html#l00098">uves_physmod_regress_echelle()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7ac0845d816025a744319be6528c714b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_physmod_plotmod </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>head</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>rec_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>params</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>This procedure plots results from the uves_physmod recipe. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tbl</td><td>The input line table. </td></tr>
-    <tr><td class="paramname">tbl</td><td>The input raw data header. </td></tr>
-    <tr><td class="paramname">params</td><td>The input recipe parameters.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise</dd></dl>
-<p>This procedure plots results from the uves_physmod recipe </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__plotmod_8c_source.html#l00119">119</a> of file <a class="el" href="uves__physmod__plotmod_8c_source.html">uves_physmod_plotmod.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__chip_8c_source.html#l00139">uves_chip_tostring_lower()</a>, <a class="el" href="uves__pfits_8c_source.html#l01457">uves_pfits_get_gratwlen()</a>, <a class="el" href="uves__pfits_8c_source.html#l00462">uves_pfits_get_origfile()</a>, <a class="el" href="uves__pfits_8c_source.html#l01570">uves_pfits_get_slitlength()</a>, <a class="el" href="uves__pfits_8c_source.html#l01590">uves_pfits_ [...]
-
-</div>
-</div>
-<a class="anchor" id="ga7ba94584b6a36bc5d55e397b5ef6af8c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_physmod_qc1pmtbl </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>rline_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>lin_tbl</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>To be written. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">rline_tbl</td><td>The input line table. </td></tr>
-    <tr><td class="paramname">lin_tbl</td><td>The input line table.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__physmod__qc1pmtbl_8c_source.html#l00121">121</a> of file <a class="el" href="uves__physmod__qc1pmtbl_8c_source.html">uves_physmod_qc1pmtbl.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6cbdcd8eb1c7f25749c51874d79e4e83"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_physmod_regress_echelle </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>o_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>num_outliers</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>tol</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>kappa</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>s_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>w_tbl</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Fit mesured position of orders by a bivariate polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_header</td><td>An array containing the input image headers. The ordering must be the same as the ordering of images in the input image list </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>name of calling recipe </td></tr>
-    <tr><td class="paramname">parameters</td><td>The recipe parameter list </td></tr>
-    <tr><td class="paramname">o_tbl</td><td>The input order table </td></tr>
-    <tr><td class="paramname">num_outliers</td><td>The input no of outliers </td></tr>
-    <tr><td class="paramname">tol</td><td>The input tolerance </td></tr>
-    <tr><td class="paramname">kappa</td><td>The input value of kappa in kappa-sigma clipping </td></tr>
-    <tr><td class="paramname">s_tbl</td><td>The output table. </td></tr>
-    <tr><td class="paramname">w_tbl</td><td>The output table.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise Fit mesured position of orders by a bivariate polynomial </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__physmod__regress__echelle_8c_source.html#l00098">98</a> of file <a class="el" href="uves__physmod__regress__echelle_8c_source.html">uves_physmod_regress_echelle.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__msg_8h_source.html#l00064">uves_msg_error</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, <a class="el" href="uves__pfits_8c_source.html#l02533">uves_pfits_get_cdelt1()</a>, <a class="el" href="uves__pfits_8c_sourc [...]
-
-<p>Referenced by <a class="el" href="uves__physmod__calmap_8c_source.html#l00068">uves_physmod_calmap()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab2645fc74b7cddacfe9b1ac960608a4e"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_physmod_align_tables </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>m_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>r_tbl</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>This procedure compares two input tables and eventually alignes them. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">m_tbl</td><td>model table on actual frame. </td></tr>
-    <tr><td class="paramname">r_tbl</td><td>model table on reference frame </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__physmod__stability__check_8c_source.html#l00388">388</a> of file <a class="el" href="uves__physmod__stability__check_8c_source.html">uves_physmod_stability_check.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__physmod__stability__check_8c_source.html#l00336">flames_align_table_column()</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, and <a class="el" href="uves__propertylist_8c_source.html#l00772">uves_propertylist_new()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__stability__check_8c_source.html#l00152">uves_physmod_stability_check()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac2394f974852f00f7fd8d77233a18fe4"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int flames_align_table_column </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>m_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>r_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>col</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>This procedure compares two input tables and eventually alignes them. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">m_tbl</td><td>model table on actual frame. </td></tr>
-    <tr><td class="paramname">r_tbl</td><td>model table on reference frame </td></tr>
-    <tr><td class="paramname">col</td><td>reference column </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__physmod__stability__check_8c_source.html#l00336">336</a> of file <a class="el" href="uves__physmod__stability__check_8c_source.html">uves_physmod_stability_check.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__stability__check_8c_source.html#l00388">uves_physmod_align_tables()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga107c8a7619bdaf3c4219f05060192bd2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_physmod_stability_check </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>m_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>r_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>med_dx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>med_dy</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>avg_dx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>avg_dy</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>This procedure run a stability check. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">m_tbl</td><td>model table on actual frame. </td></tr>
-    <tr><td class="paramname">r_tbl</td><td>model table on reference frame </td></tr>
-    <tr><td class="paramname">med_dx</td><td>median shift on X axis </td></tr>
-    <tr><td class="paramname">med_dy</td><td>median shift on Y axis </td></tr>
-    <tr><td class="paramname">avg_dx</td><td>mean shift on X axis </td></tr>
-    <tr><td class="paramname">avg_dy</td><td>mean shift on Y axis</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, -1 otherwise</dd></dl>
-<p>This procedure compares values of XMES and YMES columns from check and reference frames and computes the median of their difference. </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__stability__check_8c_source.html#l00152">152</a> of file <a class="el" href="uves__physmod__stability__check_8c_source.html">uves_physmod_stability_check.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, and <a class="el" href="uves__physmod__stability__check_8c_source.html#l00388">uves_physmod_align_tables()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__physmod__cstacen.html b/html/group__uves__physmod__cstacen.html
deleted file mode 100644
index 8c90b0c..0000000
--- a/html/group__uves__physmod__cstacen.html
+++ /dev/null
@@ -1,1059 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Utility for Physical Model</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Utility for Physical Model</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga07c91aa64ccf1d26ec66969f4eff03ba"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#ga07c91aa64ccf1d26ec66969f4eff03ba">uves_physmod_stacen</a> (float *p_img, int dimx, int dimy, char meth, int *image, float *xout, float *yout, float *xerr, float *yerr, float *xsig, float *ysig, float *xyval, int *stat)</td></tr>
-<tr class="memdesc:ga07c91aa64ccf1d26ec66969f4eff03ba"><td class="mdescLeft"> </td><td class="mdescRight">Routines used to do Gaussian fit to a line.  <a href="#ga07c91aa64ccf1d26ec66969f4eff03ba"></a><br/></td></tr>
-<tr class="memitem:ga4e3f9ec076c4d3d9d405d6bed0959815"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815">CGN_NINT</a> (float a)</td></tr>
-<tr class="memdesc:ga4e3f9ec076c4d3d9d405d6bed0959815"><td class="mdescLeft"> </td><td class="mdescRight">finds absolute value of nearest integer  <a href="#ga4e3f9ec076c4d3d9d405d6bed0959815"></a><br/></td></tr>
-<tr class="memitem:ga2b5f7c3330cda7deb43afb23fd15f471"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#ga2b5f7c3330cda7deb43afb23fd15f471">Ckapsig</a> (float *val, int nval, int iter, float akap, float *cons, float *rms, int *npts)</td></tr>
-<tr class="memdesc:ga2b5f7c3330cda7deb43afb23fd15f471"><td class="mdescLeft"> </td><td class="mdescRight">selects a constant mean through a kap*sig clipping  <a href="#ga2b5f7c3330cda7deb43afb23fd15f471"></a><br/></td></tr>
-<tr class="memitem:ga42a3691025750c317d1f147208f826f0"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#ga42a3691025750c317d1f147208f826f0">MATINV</a> (double(*matrix)[MAXPAR], int nfree)</td></tr>
-<tr class="memdesc:ga42a3691025750c317d1f147208f826f0"><td class="mdescLeft"> </td><td class="mdescRight">calculate the inverse of a matrix  <a href="#ga42a3691025750c317d1f147208f826f0"></a><br/></td></tr>
-<tr class="memitem:ga73fbc6b725a426956499af4d5518bff4"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#ga73fbc6b725a426956499af4d5518bff4">ERFCC</a> (double xx)</td></tr>
-<tr class="memdesc:ga73fbc6b725a426956499af4d5518bff4"><td class="mdescLeft"> </td><td class="mdescRight">returns complementary error function EFC( xx )  <a href="#ga73fbc6b725a426956499af4d5518bff4"></a><br/></td></tr>
-<tr class="memitem:ga46739f4ebfffea22934280cd5c636e32"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#ga46739f4ebfffea22934280cd5c636e32">GAUSFU</a> (double xx, double *gpar)</td></tr>
-<tr class="memitem:ga2352edbfb6cd74a452f468faf13703ea"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#ga2352edbfb6cd74a452f468faf13703ea">GAUSDE</a> (double xdat, double *gpar, double *deriv)</td></tr>
-<tr class="memdesc:ga2352edbfb6cd74a452f468faf13703ea"><td class="mdescLeft"> </td><td class="mdescRight">evaluates derivatives of function for least squares search with shape of a gaussian distribution  <a href="#ga2352edbfb6cd74a452f468faf13703ea"></a><br/></td></tr>
-<tr class="memitem:ga55ab1000c00c0f198531b3273e792c80"><td class="memItemLeft" align="right" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#ga55ab1000c00c0f198531b3273e792c80">FCHIS</a> (double *data, int ndim, int nfree, int mode, double *dfit)</td></tr>
-<tr class="memdesc:ga55ab1000c00c0f198531b3273e792c80"><td class="mdescLeft"> </td><td class="mdescRight">evaluate reduced chi square for fit to data  <a href="#ga55ab1000c00c0f198531b3273e792c80"></a><br/></td></tr>
-<tr class="memitem:ga192772b744a088e5d80b13b4ca533806"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#ga192772b744a088e5d80b13b4ca533806">LSQFIT</a> (double *xdat, double *data, int ndim, double *gpar, float *lamda, double *dfit, double *chisqr, double *sigma)</td></tr>
-<tr class="memdesc:ga192772b744a088e5d80b13b4ca533806"><td class="mdescLeft"> </td><td class="mdescRight">least squares fit to a non-linear function  <a href="#ga192772b744a088e5d80b13b4ca533806"></a><br/></td></tr>
-<tr class="memitem:gad923251bceb0400556ebdd0b0638ea4c"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#gad923251bceb0400556ebdd0b0638ea4c">Crhox</a> (float *p_img, int *npix, int *image, int *lnew, double *krx)</td></tr>
-<tr class="memdesc:gad923251bceb0400556ebdd0b0638ea4c"><td class="mdescLeft"> </td><td class="mdescRight">compute X-marginal vector KRX.  <a href="#gad923251bceb0400556ebdd0b0638ea4c"></a><br/></td></tr>
-<tr class="memitem:ga582a2d79c11dcf90fa7628a8e802d641"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#ga582a2d79c11dcf90fa7628a8e802d641">Crhoy</a> (float *p_img, int *npix, int *image, int *lnew, double *kry)</td></tr>
-<tr class="memdesc:ga582a2d79c11dcf90fa7628a8e802d641"><td class="mdescLeft"> </td><td class="mdescRight">compute Y-marginal vector KRY.  <a href="#ga582a2d79c11dcf90fa7628a8e802d641"></a><br/></td></tr>
-<tr class="memitem:ga8baeae8b13dcba7884349e7a061fe1fc"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#ga8baeae8b13dcba7884349e7a061fe1fc">Cserch</a> (double *marg, int ndim, int ign, int *lmin, int *lmax, float *s_cent, float *s_width)</td></tr>
-<tr class="memdesc:ga8baeae8b13dcba7884349e7a061fe1fc"><td class="mdescLeft"> </td><td class="mdescRight">search a star from a marginal distribution  <a href="#ga8baeae8b13dcba7884349e7a061fe1fc"></a><br/></td></tr>
-<tr class="memitem:gad12404aed36494433fc265f4e8c93832"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__physmod__cstacen.html#gad12404aed36494433fc265f4e8c93832">uves_physmod_cstacen</a> (char meth, float *p_img, int *npix, int *image, float *xypos, float *xyerr, float *xysig, float *xyval)</td></tr>
-<tr class="memdesc:gad12404aed36494433fc265f4e8c93832"><td class="mdescLeft"> </td><td class="mdescRight">Routines used to do Gaussian fit to a line.  <a href="#gad12404aed36494433fc265f4e8c93832"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module contains functionalities to do a Gaussian fit along X,Y to a line (equivalent of MIDAS cstacen.c) </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga07c91aa64ccf1d26ec66969f4eff03ba"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_physmod_stacen </td>
-          <td>(</td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>p_img</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>dimx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>dimy</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>meth</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>xout</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>yout</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>xerr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>yerr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>xsig</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>ysig</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>xyval</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>stat</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Routines used to do Gaussian fit to a line. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p_img</td><td>: input pointer to image </td></tr>
-    <tr><td class="paramname">dimx</td><td>: input image's x dimension </td></tr>
-    <tr><td class="paramname">dimy</td><td>: input image's y dimension </td></tr>
-    <tr><td class="paramname">meth</td><td>: input method of centering: MOM (moment centering) GAU (gaussian centering) </td></tr>
-    <tr><td class="paramname">image</td><td>: input image mapping array </td></tr>
-    <tr><td class="paramname">xout</td><td>: ouput center position x (C indexing) </td></tr>
-    <tr><td class="paramname">yout</td><td>: ouput center position x (C indexing) </td></tr>
-    <tr><td class="paramname">xerr</td><td>: ouput error estimate of xout </td></tr>
-    <tr><td class="paramname">yerr</td><td>: ouput error estimate of yout </td></tr>
-    <tr><td class="paramname">xsig</td><td>: output width of source on x </td></tr>
-    <tr><td class="paramname">ysig</td><td>: output width of source on x </td></tr>
-    <tr><td class="paramname">xyval</td><td>: output central value </td></tr>
-    <tr><td class="paramname">stat</td><td>: return status</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok, 1 if crowded, or weak source 2 if no pos. source found 3 if iteration failed</dd></dl>
-<p>This module contains the following statistic functions:</p>
-<ul>
-<li>for the moment centering: Ckapsig</li>
-<li>for the gaussian centering: - Crhox<ul>
-<li>Crhoy</li>
-<li>Cserch</li>
-<li>LSQFIT<ul>
-<li><- GAUSDE <- GAUSFU <- ERFCC</li>
-<li><- MATINV</li>
-<li><- GAUSFU <- ERFCC</li>
-<li><- FCHIS</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-<p>Performs a Gaussian fit of the intensity distribution obtained by collapsing along X or Y an image within a box. </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l00188">188</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>References <a class="el" href="uves__physmod__cstacen_8c_source.html#l01208">uves_physmod_cstacen()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__center__gauss_8c_source.html#l00138">uves_physmod_center_gauss()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4e3f9ec076c4d3d9d405d6bed0959815"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int CGN_NINT </td>
-          <td>(</td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>a</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>finds absolute value of nearest integer </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">a</td><td>value to convert </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l00232">232</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__cstacen_8c_source.html#l00994">Cserch()</a>, and <a class="el" href="uves__physmod__cstacen_8c_source.html#l01208">uves_physmod_cstacen()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2b5f7c3330cda7deb43afb23fd15f471"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int Ckapsig </td>
-          <td>(</td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>val</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nval</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>iter</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>akap</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>cons</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>rms</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>npts</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>selects a constant mean through a kap*sig clipping </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">val</td><td>: input values </td></tr>
-    <tr><td class="paramname">nval</td><td>: number of input values </td></tr>
-    <tr><td class="paramname">iter</td><td>: number of iterations (min = 1) </td></tr>
-    <tr><td class="paramname">akap</td><td>: input AKAP * RMS</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>output: </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">cons</td><td>: output derived mean value </td></tr>
-    <tr><td class="paramname">rms</td><td>: output RMS of mean value </td></tr>
-    <tr><td class="paramname">npts</td><td>: output number of points used to derive the mean value</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>status : 0 O.K. : -1 NVAL .LT. 2</dd></dl>
-<p>Selects a constant mean through a kap*sig clipping:</p>
-<ul>
-<li>1.) calculate mean and rms</li>
-<li>2.) delete pixels beyond AKAP*RMS from mean</li>
-<li>3.) GO TO 1.) </li>
-</ul>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l00269">269</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__cstacen_8c_source.html#l01208">uves_physmod_cstacen()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga42a3691025750c317d1f147208f826f0"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int MATINV </td>
-          <td>(</td>
-          <td class="paramtype">double(*) </td>
-          <td class="paramname"><em>matrix</em>[MAXPAR], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nfree</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>calculate the inverse of a matrix </p>
-<p>input: </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">(*matrix)</td><td>: input matrix to be inverted </td></tr>
-    <tr><td class="paramname">nfree</td><td>: input number of free parameters</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>error status 0 = ok 1 = determinant is zero</dd></dl>
-<p>The algorithm used is the Gauss-Jordan algorithm described in Stoer, Numerische matematik, 1 Teil. </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l00373">373</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__cstacen_8c_source.html#l00711">LSQFIT()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga73fbc6b725a426956499af4d5518bff4"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double ERFCC </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>xx</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>returns complementary error function EFC( xx ) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">xx</td><td>: input parameter of error function</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>complementary error function EFC( xx )</dd></dl>
-<p>Factional error everywhere less than 1.2e-7 </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l00473">473</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__cstacen_8c_source.html#l00533">GAUSFU()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga46739f4ebfffea22934280cd5c636e32"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double GAUSFU </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>xx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>gpar</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">xx</td><td>: input data point of independent variable </td></tr>
-    <tr><td class="paramname">gpar</td><td>: function parameters</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd></dd></dl>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l00533">533</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>References <a class="el" href="uves__physmod__cstacen_8c_source.html#l00473">ERFCC()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__cstacen_8c_source.html#l00571">GAUSDE()</a>, and <a class="el" href="uves__physmod__cstacen_8c_source.html#l00711">LSQFIT()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2352edbfb6cd74a452f468faf13703ea"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void GAUSDE </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>xdat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>gpar</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>deriv</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>evaluates derivatives of function for least squares search with shape of a gaussian distribution </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">xdat</td><td>: input data point of independent variable </td></tr>
-    <tr><td class="paramname">gpar</td><td>: input parameters of the gaussian distribution </td></tr>
-    <tr><td class="paramname">deriv</td><td>: output derivatives of function</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd></dd></dl>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l00571">571</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>References <a class="el" href="uves__physmod__cstacen_8c_source.html#l00533">GAUSFU()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__cstacen_8c_source.html#l00711">LSQFIT()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga55ab1000c00c0f198531b3273e792c80"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static float FCHIS </td>
-          <td>(</td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ndim</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nfree</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>mode</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>dfit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>evaluate reduced chi square for fit to data </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">data</td><td>: input data </td></tr>
-    <tr><td class="paramname">ndim</td><td>: dimension of input data </td></tr>
-    <tr><td class="paramname">nfree</td><td>: number of degrees of freedom </td></tr>
-    <tr><td class="paramname">mode</td><td>: determines method of weighting the least-squares fit:<ul>
-<li>0 = no weighting</li>
-<li>1 = with weighting </li>
-</ul>
-</td></tr>
-    <tr><td class="paramname">dfit</td><td>: output array with the fit for data</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>sum( (y-yfit)**2 / sigma**2 ) / nfree </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l00645">645</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__cstacen_8c_source.html#l00711">LSQFIT()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga192772b744a088e5d80b13b4ca533806"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int LSQFIT </td>
-          <td>(</td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>xdat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ndim</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>gpar</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>lamda</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>dfit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>chisqr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>sigma</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>least squares fit to a non-linear function </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">xdat</td><td>: input array of data points ind. var. </td></tr>
-    <tr><td class="paramname">data</td><td>: input array of data points dep. var. </td></tr>
-    <tr><td class="paramname">ndim</td><td>: input dimension of xdat and data</td></tr>
-    <tr><td class="paramname">gpar</td><td>: in/out function parameters:<ul>
-<li>gpar[0] = data max</li>
-<li>gpar[1] = position of data max</li>
-<li>gpar[2] = width of the source</li>
-<li>gpar[3] = center of window</li>
-</ul>
-</td></tr>
-    <tr><td class="paramname">lamda</td><td>: in/out proportion of gradient search included </td></tr>
-    <tr><td class="paramname">dfit</td><td>: output array with the fit for data </td></tr>
-    <tr><td class="paramname">chisqr,:</td><td>output reduced chi square for fit </td></tr>
-    <tr><td class="paramname">sigma</td><td>: the probable uncertainty (output)</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 (= ok), 1 (= no convertion)</dd></dl>
-<p>Note: set LAMDA to 0.001 at the beginning of the search </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l00711">711</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>References <a class="el" href="uves__physmod__cstacen_8c_source.html#l00645">FCHIS()</a>, <a class="el" href="uves__physmod__cstacen_8c_source.html#l00571">GAUSDE()</a>, <a class="el" href="uves__physmod__cstacen_8c_source.html#l00533">GAUSFU()</a>, and <a class="el" href="uves__physmod__cstacen_8c_source.html#l00373">MATINV()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__cstacen_8c_source.html#l01208">uves_physmod_cstacen()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad923251bceb0400556ebdd0b0638ea4c"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void Crhox </td>
-          <td>(</td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>p_img</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>npix</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>lnew</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>krx</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>compute X-marginal vector KRX. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p_img</td><td>: input pointer to 2-D image </td></tr>
-    <tr><td class="paramname">npix</td><td>: input dimension of image </td></tr>
-    <tr><td class="paramname">image</td><td>: (input) contains in pixel units in C notation (0 ...) </td></tr>
-    <tr><td class="paramname">lnew</td><td>: input Y lower/upper limits to the marginal in C notation (0 ...)</td></tr>
-    <tr><td class="paramname">krx</td><td>: output X-marginal vector</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>nothing</dd></dl>
-<p>For the algorithm description see Stetson, P.B., 1979 Astron. J., 84 1149. </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l00849">849</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__cstacen_8c_source.html#l01208">uves_physmod_cstacen()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga582a2d79c11dcf90fa7628a8e802d641"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void Crhoy </td>
-          <td>(</td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>p_img</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>npix</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>lnew</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>kry</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>compute Y-marginal vector KRY. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p_img</td><td>: input pointer to 2-D image </td></tr>
-    <tr><td class="paramname">npix</td><td>: input dimension of image </td></tr>
-    <tr><td class="paramname">image</td><td>: (input) contains in pixel units in C notation (0 ...) </td></tr>
-    <tr><td class="paramname">lnew</td><td>: input Y lower/upper limits to the marginal in C notation (0 ...)</td></tr>
-    <tr><td class="paramname">kry</td><td>: output X-marginal vector</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>nothing</dd></dl>
-<p>For the algorithm description see Stetson, P.B., 1979 Astron. J., 84 1149. </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l00921">921</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__cstacen_8c_source.html#l01208">uves_physmod_cstacen()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8baeae8b13dcba7884349e7a061fe1fc"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int Cserch </td>
-          <td>(</td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>marg</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ndim</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ign</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>lmin</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>lmax</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>s_cent</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>s_width</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>search a star from a marginal distribution </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">marg</td><td>: input marginal data </td></tr>
-    <tr><td class="paramname">ndim</td><td>: input dimension of MARG </td></tr>
-    <tr><td class="paramname">ign</td><td>: input number of points ignored at each end of KRX ( greater or equal 2)</td></tr>
-    <tr><td class="paramname">lmin</td><td>: output low-side local minimum (in pixels) </td></tr>
-    <tr><td class="paramname">lmax</td><td>: output high-side local minimum (in pixels) </td></tr>
-    <tr><td class="paramname">s_cent</td><td>: output output estimate of the object centre </td></tr>
-    <tr><td class="paramname">s_width,:</td><td>output output estimate of the object width</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd><ul>
-<li>0 if no other star is detected in the field</li>
-<li>-1 if a brighter star is found on the low side</li>
-<li>+1 if a brighter star is found on the high side</li>
-</ul>
-</dd></dl>
-<p>For the algorithm description see Stetson, P.B., 1979 Astron. J., 84 1149. </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l00994">994</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>References <a class="el" href="uves__physmod__cstacen_8c_source.html#l00232">CGN_NINT()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__physmod__cstacen_8c_source.html#l01208">uves_physmod_cstacen()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad12404aed36494433fc265f4e8c93832"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_physmod_cstacen </td>
-          <td>(</td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>meth</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>p_img</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>npix</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>xypos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>xyerr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>xysig</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>xyval</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Routines used to do Gaussian fit to a line. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">meth</td><td>: input method of centering: MOM (moment centering) GAU (gaussian centering) </td></tr>
-    <tr><td class="paramname">p_img</td><td>: input pointer to image </td></tr>
-    <tr><td class="paramname">npix</td><td>: input number of pixels in image </td></tr>
-    <tr><td class="paramname">image</td><td>: input image size in pixel coordinates (F77 indexing)</td></tr>
-    <tr><td class="paramname">xypos</td><td>: output center position (x,y) (C indexing) </td></tr>
-    <tr><td class="paramname">xyerr</td><td>: output error estimate of xypos (x,y) </td></tr>
-    <tr><td class="paramname">xysig</td><td>: output width of source (x,y) </td></tr>
-    <tr><td class="paramname">xyval</td><td>: output central value</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd><ul>
-<li>0 if everything is ok,</li>
-<li>1 if crowded, or weak source</li>
-<li>2 if no pos. source found</li>
-<li><p class="startli">3 if iteration failed</p>
-<p class="startli">This module contains the following statistic functions:</p>
-<ul>
-<li>for the moment centering: Ckapsig</li>
-<li>for the gaussian centering:<ul>
-<li>Crhox</li>
-<li>Crhoy</li>
-<li>Cserch<ul>
-<li>LSQFIT<ul>
-<li><- GAUSDE <- GAUSFU <- ERFCC</li>
-<li><- MATINV</li>
-<li><- GAUSFU <- ERFCC</li>
-<li><- FCHIS</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-</dd></dl>
-<p>Performs a Gaussian fit of the intensity distribution obtained by collapsing along X or Y an image within a box. </p>
-
-<p>Definition at line <a class="el" href="uves__physmod__cstacen_8c_source.html#l01208">1208</a> of file <a class="el" href="uves__physmod__cstacen_8c_source.html">uves_physmod_cstacen.c</a>.</p>
-
-<p>References <a class="el" href="uves__physmod__cstacen_8c_source.html#l00232">CGN_NINT()</a>, <a class="el" href="uves__physmod__cstacen_8c_source.html#l00269">Ckapsig()</a>, <a class="el" href="uves__physmod__cstacen_8c_source.html#l00849">Crhox()</a>, <a class="el" href="uves__physmod__cstacen_8c_source.html#l00921">Crhoy()</a>, <a class="el" href="uves__physmod__cstacen_8c_source.html#l00994">Cserch()</a>, and <a class="el" href="uves__physmod__cstacen_8c_source.html#l00711">LSQFIT( [...]
-
-<p>Referenced by <a class="el" href="uves__physmod__cstacen_8c_source.html#l00188">uves_physmod_stacen()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__physmod__utils.html b/html/group__uves__physmod__utils.html
deleted file mode 100644
index 86a7df9..0000000
--- a/html/group__uves__physmod__utils.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Substep: UVES physical model utilities</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Substep: UVES physical model utilities</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__plot.html b/html/group__uves__plot.html
deleted file mode 100644
index 2973227..0000000
--- a/html/group__uves__plot.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Plot CPL tables/images</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Plot CPL tables/images</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>Plot CPL tables and/or images using an external plotter specified by the user. This is useful for debugging, and might also be useful for the user. This module provides only basic functionality for plotting CPL objects; for more advanced purposes, a dedicated FITS viewing tool is recommended.</p>
-<p>This module depends on the availability of the system call setenv. This is <em>not</em> defined in ANSI-C (getenv() is; setenv() is not) and therefore might fail for various reasons on different platforms. Note that the plotting/imaging functionality can be easily switched off by setting the plotting/imaging commands to 'no'.</p>
-<p>If a plotting call fails for 'external' reasons (i.e. when communication with the external process), a warning message is printed, but success status is returned. A failure exit status is returned only in cases of invalid input (null pointers etc.). </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__polynomial__test.html b/html/group__uves__polynomial__test.html
deleted file mode 100644
index d58aaee..0000000
--- a/html/group__uves__polynomial__test.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: UVES polynomial unit tests</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">UVES polynomial unit tests</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gaecea8e95aa6be883a21e039669855c2f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaecea8e95aa6be883a21e039669855c2f"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__polynomial__test.html#gaecea8e95aa6be883a21e039669855c2f">test_polynomial_fit_2d</a> (void)</td></tr>
-<tr class="memdesc:gaecea8e95aa6be883a21e039669855c2f"><td class="mdescLeft"> </td><td class="mdescRight">Test polynomial fitting. <br/></td></tr>
-<tr class="memitem:ga9f16114e84dbc27c20652d0e2876d021"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9f16114e84dbc27c20652d0e2876d021"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__polynomial__test.html#ga9f16114e84dbc27c20652d0e2876d021">test_polynomial</a> (void)</td></tr>
-<tr class="memdesc:ga9f16114e84dbc27c20652d0e2876d021"><td class="mdescLeft"> </td><td class="mdescRight">Various tests. <br/></td></tr>
-<tr class="memitem:ga840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga840291bc02cba5474a4cb46a9b9566fe"></a>
-int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__polynomial__test.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
-<tr class="memdesc:ga840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft"> </td><td class="mdescRight">Test of uves_polynomial. <br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__propertylist.html b/html/group__uves__propertylist.html
deleted file mode 100644
index 4a6f136..0000000
--- a/html/group__uves__propertylist.html
+++ /dev/null
@@ -1,3838 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Property Lists</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#nested-classes">Data Structures</a> |
-<a href="#typedef-members">Typedefs</a> |
-<a href="#enum-members">Enumerations</a> |
-<a href="#func-members">Functions</a> |
-<a href="#var-members">Variables</a>  </div>
-  <div class="headertitle">
-<div class="title">Property Lists</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="nested-classes"></a>
-Data Structures</h2></td></tr>
-<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__uves__propertylist__.html">_uves_propertylist_</a></td></tr>
-<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__uves__regexp__.html">_uves_regexp_</a></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="typedef-members"></a>
-Typedefs</h2></td></tr>
-<tr class="memitem:gaa3a5d883be57a2e3fc167f50117860c2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa3a5d883be57a2e3fc167f50117860c2"></a>
-typedef struct <a class="el" href="struct__uves__regexp__.html">_uves_regexp_</a> </td><td class="memItemRight" valign="bottom"><b>uves_regexp</b></td></tr>
-<tr class="memitem:ga7fb059a16cd07b497aadeba6c40c6621"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7fb059a16cd07b497aadeba6c40c6621"></a>
-typedef struct <a class="el" href="struct__uves__propertylist__.html">_uves_propertylist_</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a></td></tr>
-<tr class="memdesc:ga7fb059a16cd07b497aadeba6c40c6621"><td class="mdescLeft"> </td><td class="mdescRight">The opaque property list data type. <br/></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="enum-members"></a>
-Enumerations</h2></td></tr>
-<tr class="memitem:gabc6126af1d45847bc59afa0aa3216b04"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom">{ <b>FITS_STDKEY_MAX</b> =  8, 
-<b>FITS_SVALUE_MAX</b> =  68
- }</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gaf74be8eb01a9945733d580bcc392ccb6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf74be8eb01a9945733d580bcc392ccb6"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>propertylist_append_property</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const cpl_property *p)</td></tr>
-<tr class="memitem:ga6ecdfc36cbcb2817a7a70b9f656f8906"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga6ecdfc36cbcb2817a7a70b9f656f8906"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>propertylist_prepend_property_cpl</b> (cpl_propertylist *plist, const cpl_property *p)</td></tr>
-<tr class="memitem:ga8f5a24a5601c0a61eb31570a7c5cbec4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8f5a24a5601c0a61eb31570a7c5cbec4"></a>
-static cpl_propertylist * </td><td class="memItemRight" valign="bottom"><b>uves_propertylist_to_cpl</b> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self)</td></tr>
-<tr class="memitem:gad326736c5f76b54dbfd19db8584a47b5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gad326736c5f76b54dbfd19db8584a47b5"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>uves_propertylist_from_cpl</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const cpl_propertylist *list_cpl)</td></tr>
-<tr class="memitem:ga33c4669b80d22563b05c231f61bdf20b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga33c4669b80d22563b05c231f61bdf20b"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_vector_save</b> (const cpl_vector *v, const char *f, cpl_type_bpp bpp, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *header, unsigned mode)</td></tr>
-<tr class="memitem:ga542034178e7fa796298d276225ffcfe2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga542034178e7fa796298d276225ffcfe2"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_image_save</b> (const cpl_image *image, const char *f, cpl_type_bpp bpp, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *header, unsigned mode)</td></tr>
-<tr class="memitem:ga96309764c7e5f468a608b3f5a329e1e3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga96309764c7e5f468a608b3f5a329e1e3"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_imagelist_save</b> (const cpl_imagelist *imagelist, const char *f, cpl_type_bpp bpp, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *header, unsigned mode)</td></tr>
-<tr class="memitem:gaaddc42751ee73d8e6042e0b464328613"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaaddc42751ee73d8e6042e0b464328613"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_table_save</b> (const cpl_table *table, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *header, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *ext_header, const char *filename, unsigned mode)</td></tr>
-<tr class="memitem:gac3bc0bb9cfb587facec4f1007d18e2cb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac3bc0bb9cfb587facec4f1007d18e2cb"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_dfs_setup_product_header</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *header, const cpl_frame *product_frame, const cpl_frameset *framelist, const cpl_parameterlist *parlist, const char *recid, const char *pipeline_id, const char *dictionary_id)</td></tr>
-<tr class="memitem:gaf4ea23bc3a27df393c7a91203a89b16c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf4ea23bc3a27df393c7a91203a89b16c"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_table_sort</b> (cpl_table *t, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *list)</td></tr>
-<tr class="memitem:ga8ae11aa0aa80d2cbd486e6c61c7e2b8e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8ae11aa0aa80d2cbd486e6c61c7e2b8e"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>error_push</b> (void)</td></tr>
-<tr class="memitem:ga1e40ceca628368b9e4fe0911738ee60c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga1e40ceca628368b9e4fe0911738ee60c"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>error_pop</b> (void)</td></tr>
-<tr class="memitem:ga5139a6e0d04f3308dcb2ce3104de3597"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5139a6e0d04f3308dcb2ce3104de3597"></a>
-static cxint </td><td class="memItemRight" valign="bottom"><b>_uves_propertylist_filter_regexp</b> (cxcptr key, cxcptr filter)</td></tr>
-<tr class="memitem:ga47c097a5303e746c66bdce157d272e81"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga47c097a5303e746c66bdce157d272e81"></a>
-static cxbool </td><td class="memItemRight" valign="bottom"><b>_uves_propertylist_compare</b> (const cpl_property *property, const char *name)</td></tr>
-<tr class="memitem:gafd9db8c1f3b8413e3da087af2fe10b0b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gafd9db8c1f3b8413e3da087af2fe10b0b"></a>
-static cxbool </td><td class="memItemRight" valign="bottom"><b>_uves_propertylist_compare_regexp</b> (const cpl_property *property, <a class="el" href="struct__uves__regexp__.html">uves_regexp</a> *re)</td></tr>
-<tr class="memitem:ga20075a785505f799937e7ffa8695656b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga20075a785505f799937e7ffa8695656b"></a>
-static uves_deque_iterator </td><td class="memItemRight" valign="bottom"><b>_uves_propertylist_find</b> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memitem:ga0b90742568c12f47577f6e3e5eb5fb30"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0b90742568c12f47577f6e3e5eb5fb30"></a>
-static cpl_property * </td><td class="memItemRight" valign="bottom"><b>_uves_propertylist_get</b> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memitem:ga28c77105b7f9d72d97417009b7e993b2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga28c77105b7f9d72d97417009b7e993b2"></a>
-static int </td><td class="memItemRight" valign="bottom"><b>_uves_propertylist_insert</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const cxchar *where, cxbool after, const cxchar *name, cpl_type type, cxptr value)</td></tr>
-<tr class="memitem:ga1e668466b3d5a7e7e0366698f8baae3c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga1e668466b3d5a7e7e0366698f8baae3c"></a>
-static cxint </td><td class="memItemRight" valign="bottom"><b>_uves_propertylist_decode_fits</b> (const qfits_header *header, cxint i, cxchar *key, cxint *type, cxchar *value, cxchar *comment)</td></tr>
-<tr class="memitem:gaf7b45f00c2b745228d5d7d35d704e4ce"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf7b45f00c2b745228d5d7d35d704e4ce"></a>
-static cxint </td><td class="memItemRight" valign="bottom"><b>_uves_propertylist_from_fits</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const qfits_header *header, cx_compare_func filter, cxcptr data)</td></tr>
-<tr class="memitem:gac87c6bfca337c5c592ee22e30fc8b596"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596">uves_propertylist_new</a> (void)</td></tr>
-<tr class="memdesc:gac87c6bfca337c5c592ee22e30fc8b596"><td class="mdescLeft"> </td><td class="mdescRight">Create an empty property list.  <a href="#gac87c6bfca337c5c592ee22e30fc8b596"></a><br/></td></tr>
-<tr class="memitem:ga79c637a212cf4556348c3ba3375b3a07"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07">uves_propertylist_duplicate</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_proper [...]
-<tr class="memdesc:ga79c637a212cf4556348c3ba3375b3a07"><td class="mdescLeft"> </td><td class="mdescRight">Create a copy of the given property list.  <a href="#ga79c637a212cf4556348c3ba3375b3a07"></a><br/></td></tr>
-<tr class="memitem:ga3c613b98402a757ff02df2334082ff90"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90">uves_propertylist_delete</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self)</td></tr>
-<tr class="memdesc:ga3c613b98402a757ff02df2334082ff90"><td class="mdescLeft"> </td><td class="mdescRight">Destroy a property list.  <a href="#ga3c613b98402a757ff02df2334082ff90"></a><br/></td></tr>
-<tr class="memitem:gaf5397227fe7008f590b7d56bd8e0f851"><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851">uves_propertylist_get_size</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self)</td></tr>
-<tr class="memdesc:gaf5397227fe7008f590b7d56bd8e0f851"><td class="mdescLeft"> </td><td class="mdescRight">Get the current size of a property list.  <a href="#gaf5397227fe7008f590b7d56bd8e0f851"></a><br/></td></tr>
-<tr class="memitem:ga08dbbfc559ffcddf72092ef0a5a6b2e6"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6">uves_propertylist_is_empty</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self)</td></tr>
-<tr class="memdesc:ga08dbbfc559ffcddf72092ef0a5a6b2e6"><td class="mdescLeft"> </td><td class="mdescRight">Check whether a property list is empty.  <a href="#ga08dbbfc559ffcddf72092ef0a5a6b2e6"></a><br/></td></tr>
-<tr class="memitem:ga2ee26ca559adc30a12a3e4dcf003b52d"><td class="memItemLeft" align="right" valign="top">cpl_type </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga2ee26ca559adc30a12a3e4dcf003b52d">uves_propertylist_get_type</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memdesc:ga2ee26ca559adc30a12a3e4dcf003b52d"><td class="mdescLeft"> </td><td class="mdescRight">Get the the type of a property list entry.  <a href="#ga2ee26ca559adc30a12a3e4dcf003b52d"></a><br/></td></tr>
-<tr class="memitem:ga0fce53213cd728ed91e048737e61371b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b">uves_propertylist_contains</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memdesc:ga0fce53213cd728ed91e048737e61371b"><td class="mdescLeft"> </td><td class="mdescRight">Check whether a property is present in a property list.  <a href="#ga0fce53213cd728ed91e048737e61371b"></a><br/></td></tr>
-<tr class="memitem:gabe6f3653a12455c6fc90c46127a6e2ad"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad">my_uves_propertylist_contains</a> (const cpl_propertylist *self, const char *name)</td></tr>
-<tr class="memdesc:gabe6f3653a12455c6fc90c46127a6e2ad"><td class="mdescLeft"> </td><td class="mdescRight">Check whether a property is present in a property list.  <a href="#gabe6f3653a12455c6fc90c46127a6e2ad"></a><br/></td></tr>
-<tr class="memitem:ga1a5d3673829cac01d0c0f6938973c193"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193">uves_propertylist_set_comment</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, const char *comment)</td></tr>
-<tr class="memdesc:ga1a5d3673829cac01d0c0f6938973c193"><td class="mdescLeft"> </td><td class="mdescRight">Modify the comment field of the given property list entry.  <a href="#ga1a5d3673829cac01d0c0f6938973c193"></a><br/></td></tr>
-<tr class="memitem:ga3848313f04afa3606dbbc560746f5025"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga3848313f04afa3606dbbc560746f5025">uves_propertylist_set_char</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, char value)</td></tr>
-<tr class="memdesc:ga3848313f04afa3606dbbc560746f5025"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the given character property list entry.  <a href="#ga3848313f04afa3606dbbc560746f5025"></a><br/></td></tr>
-<tr class="memitem:ga1b920e8880391034ba16248071aaeda5"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga1b920e8880391034ba16248071aaeda5">uves_propertylist_set_bool</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, int value)</td></tr>
-<tr class="memdesc:ga1b920e8880391034ba16248071aaeda5"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the given boolean property list entry.  <a href="#ga1b920e8880391034ba16248071aaeda5"></a><br/></td></tr>
-<tr class="memitem:gaef59cbe7747d8778af96087b23c8d682"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gaef59cbe7747d8778af96087b23c8d682">uves_propertylist_set_int</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, int value)</td></tr>
-<tr class="memdesc:gaef59cbe7747d8778af96087b23c8d682"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the given integer property list entry.  <a href="#gaef59cbe7747d8778af96087b23c8d682"></a><br/></td></tr>
-<tr class="memitem:ga188d6bd12ef15a5c4aff8713339a443a"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga188d6bd12ef15a5c4aff8713339a443a">uves_propertylist_set_long</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, long value)</td></tr>
-<tr class="memdesc:ga188d6bd12ef15a5c4aff8713339a443a"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the given long property list entry.  <a href="#ga188d6bd12ef15a5c4aff8713339a443a"></a><br/></td></tr>
-<tr class="memitem:gadf1317627ff51b6cbcff9aec380fd51a"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gadf1317627ff51b6cbcff9aec380fd51a">uves_propertylist_set_float</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, float value)</td></tr>
-<tr class="memdesc:gadf1317627ff51b6cbcff9aec380fd51a"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the given float property list entry.  <a href="#gadf1317627ff51b6cbcff9aec380fd51a"></a><br/></td></tr>
-<tr class="memitem:ga5e507cfe564326f9e5474c5773d6dd24"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga5e507cfe564326f9e5474c5773d6dd24">uves_propertylist_set_double</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, double value)</td></tr>
-<tr class="memdesc:ga5e507cfe564326f9e5474c5773d6dd24"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the given double property list entry.  <a href="#ga5e507cfe564326f9e5474c5773d6dd24"></a><br/></td></tr>
-<tr class="memitem:gabbc55af6700c2d1d28f82131b56a3b7b"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gabbc55af6700c2d1d28f82131b56a3b7b">uves_propertylist_set_string</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, const char *value)</td></tr>
-<tr class="memdesc:gabbc55af6700c2d1d28f82131b56a3b7b"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the given string property list entry.  <a href="#gabbc55af6700c2d1d28f82131b56a3b7b"></a><br/></td></tr>
-<tr class="memitem:ga987313a29d189a7bb6d120af09b25155"><td class="memItemLeft" align="right" valign="top">const cpl_property * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155">uves_propertylist_get_const</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, long position)</td></tr>
-<tr class="memdesc:ga987313a29d189a7bb6d120af09b25155"><td class="mdescLeft"> </td><td class="mdescRight">Access property list elements by index.  <a href="#ga987313a29d189a7bb6d120af09b25155"></a><br/></td></tr>
-<tr class="memitem:ga90df4db3cd40284ffdb1effb558d9031"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga90df4db3cd40284ffdb1effb558d9031"></a>
-cpl_property * </td><td class="memItemRight" valign="bottom"><b>uves_propertylist_get</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, long position)</td></tr>
-<tr class="memitem:ga648f33387b636d2fea612aafbac02d18"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga648f33387b636d2fea612aafbac02d18">uves_propertylist_get_comment</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memdesc:ga648f33387b636d2fea612aafbac02d18"><td class="mdescLeft"> </td><td class="mdescRight">Get the comment of the given property list entry.  <a href="#ga648f33387b636d2fea612aafbac02d18"></a><br/></td></tr>
-<tr class="memitem:gae9273c454206f9c51055aa1206183d37"><td class="memItemLeft" align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gae9273c454206f9c51055aa1206183d37">uves_propertylist_get_char</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memdesc:gae9273c454206f9c51055aa1206183d37"><td class="mdescLeft"> </td><td class="mdescRight">Get the character value of the given property list entry.  <a href="#gae9273c454206f9c51055aa1206183d37"></a><br/></td></tr>
-<tr class="memitem:ga1915e9a72e6f0580cadb0736ea43d6dc"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga1915e9a72e6f0580cadb0736ea43d6dc">uves_propertylist_get_bool</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memdesc:ga1915e9a72e6f0580cadb0736ea43d6dc"><td class="mdescLeft"> </td><td class="mdescRight">Get the boolean value of the given property list entry.  <a href="#ga1915e9a72e6f0580cadb0736ea43d6dc"></a><br/></td></tr>
-<tr class="memitem:ga34a6adea62f635e9b75cb4b5f614c785"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785">uves_propertylist_get_int</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memdesc:ga34a6adea62f635e9b75cb4b5f614c785"><td class="mdescLeft"> </td><td class="mdescRight">Get the integer value of the given property list entry.  <a href="#ga34a6adea62f635e9b75cb4b5f614c785"></a><br/></td></tr>
-<tr class="memitem:ga62f1a977f79c807936a3ff394ca6280e"><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga62f1a977f79c807936a3ff394ca6280e">uves_propertylist_get_long</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memdesc:ga62f1a977f79c807936a3ff394ca6280e"><td class="mdescLeft"> </td><td class="mdescRight">Get the long value of the given property list entry.  <a href="#ga62f1a977f79c807936a3ff394ca6280e"></a><br/></td></tr>
-<tr class="memitem:ga71f81602d966afe5b8efb2d4a962ba8b"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga71f81602d966afe5b8efb2d4a962ba8b">uves_propertylist_get_float</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memdesc:ga71f81602d966afe5b8efb2d4a962ba8b"><td class="mdescLeft"> </td><td class="mdescRight">Get the float value of the given property list entry.  <a href="#ga71f81602d966afe5b8efb2d4a962ba8b"></a><br/></td></tr>
-<tr class="memitem:ga076b98ab4044b08ea0804e03e92ae681"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681">uves_propertylist_get_double</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memdesc:ga076b98ab4044b08ea0804e03e92ae681"><td class="mdescLeft"> </td><td class="mdescRight">Get the double value of the given property list entry.  <a href="#ga076b98ab4044b08ea0804e03e92ae681"></a><br/></td></tr>
-<tr class="memitem:ga0fbe9d1642f9b6a884565d0cf47edb93"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93">uves_propertylist_get_string</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memdesc:ga0fbe9d1642f9b6a884565d0cf47edb93"><td class="mdescLeft"> </td><td class="mdescRight">Get the string value of the given property list entry.  <a href="#ga0fbe9d1642f9b6a884565d0cf47edb93"></a><br/></td></tr>
-<tr class="memitem:gab67312fdd5ec2579db318e2b73f83793"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gab67312fdd5ec2579db318e2b73f83793">uves_propertylist_insert_char</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *here, const char *name, char value)</td></tr>
-<tr class="memdesc:gab67312fdd5ec2579db318e2b73f83793"><td class="mdescLeft"> </td><td class="mdescRight">Insert a character value into a property list at the given position.  <a href="#gab67312fdd5ec2579db318e2b73f83793"></a><br/></td></tr>
-<tr class="memitem:ga2dfd30cad698338aa24bed3807772bcb"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga2dfd30cad698338aa24bed3807772bcb">uves_propertylist_insert_bool</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *here, const char *name, int value)</td></tr>
-<tr class="memdesc:ga2dfd30cad698338aa24bed3807772bcb"><td class="mdescLeft"> </td><td class="mdescRight">Insert a boolean value into a property list at the given position.  <a href="#ga2dfd30cad698338aa24bed3807772bcb"></a><br/></td></tr>
-<tr class="memitem:gaf4317df2406162e173e8c78274650da4"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gaf4317df2406162e173e8c78274650da4">uves_propertylist_insert_int</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *here, const char *name, int value)</td></tr>
-<tr class="memdesc:gaf4317df2406162e173e8c78274650da4"><td class="mdescLeft"> </td><td class="mdescRight">Insert a integer value into a property list at the given position.  <a href="#gaf4317df2406162e173e8c78274650da4"></a><br/></td></tr>
-<tr class="memitem:gafd6db82a3ab2a060af6cc2a661bbc032"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gafd6db82a3ab2a060af6cc2a661bbc032">uves_propertylist_has</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memdesc:gafd6db82a3ab2a060af6cc2a661bbc032"><td class="mdescLeft"> </td><td class="mdescRight">Check whether a property is present in a property list.  <a href="#gafd6db82a3ab2a060af6cc2a661bbc032"></a><br/></td></tr>
-<tr class="memitem:gad1eced1cf3c10a77997c02f20ced0922"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gad1eced1cf3c10a77997c02f20ced0922">uves_propertylist_insert_long</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *here, const char *name, long value)</td></tr>
-<tr class="memdesc:gad1eced1cf3c10a77997c02f20ced0922"><td class="mdescLeft"> </td><td class="mdescRight">Insert a long value into a property list at the given position.  <a href="#gad1eced1cf3c10a77997c02f20ced0922"></a><br/></td></tr>
-<tr class="memitem:gafa987cf50ee6314a8eddf4e4c284cdd0"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gafa987cf50ee6314a8eddf4e4c284cdd0">uves_propertylist_insert_float</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *here, const char *name, float value)</td></tr>
-<tr class="memdesc:gafa987cf50ee6314a8eddf4e4c284cdd0"><td class="mdescLeft"> </td><td class="mdescRight">Insert a float value into a property list at the given position.  <a href="#gafa987cf50ee6314a8eddf4e4c284cdd0"></a><br/></td></tr>
-<tr class="memitem:ga3541bde9170abf5eb52c6351ae03da31"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga3541bde9170abf5eb52c6351ae03da31">uves_propertylist_insert_double</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *here, const char *name, double value)</td></tr>
-<tr class="memdesc:ga3541bde9170abf5eb52c6351ae03da31"><td class="mdescLeft"> </td><td class="mdescRight">Insert a double value into a property list at the given position.  <a href="#ga3541bde9170abf5eb52c6351ae03da31"></a><br/></td></tr>
-<tr class="memitem:gadae4a02d6cc8db83abeb9a8b670ade81"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gadae4a02d6cc8db83abeb9a8b670ade81">uves_propertylist_insert_string</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *here, const char *name, const char *value)</td></tr>
-<tr class="memdesc:gadae4a02d6cc8db83abeb9a8b670ade81"><td class="mdescLeft"> </td><td class="mdescRight">Insert a string value into a property list at the given position.  <a href="#gadae4a02d6cc8db83abeb9a8b670ade81"></a><br/></td></tr>
-<tr class="memitem:ga6f4d1c1ff4e0c8fc7bb2edb551cba11e"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga6f4d1c1ff4e0c8fc7bb2edb551cba11e">uves_propertylist_insert_after_char</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *after, const char *name, char value)</td></tr>
-<tr class="memdesc:ga6f4d1c1ff4e0c8fc7bb2edb551cba11e"><td class="mdescLeft"> </td><td class="mdescRight">Insert a character value into a property list after the given position.  <a href="#ga6f4d1c1ff4e0c8fc7bb2edb551cba11e"></a><br/></td></tr>
-<tr class="memitem:gafeb4307649f4b8edc101e73c21ec7392"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gafeb4307649f4b8edc101e73c21ec7392">uves_propertylist_insert_after_bool</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *after, const char *name, int value)</td></tr>
-<tr class="memdesc:gafeb4307649f4b8edc101e73c21ec7392"><td class="mdescLeft"> </td><td class="mdescRight">Insert a boolean value into a property list after the given position.  <a href="#gafeb4307649f4b8edc101e73c21ec7392"></a><br/></td></tr>
-<tr class="memitem:ga5c0d4cd29cecab431fd25b85472c3897"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga5c0d4cd29cecab431fd25b85472c3897">uves_propertylist_insert_after_int</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *after, const char *name, int value)</td></tr>
-<tr class="memdesc:ga5c0d4cd29cecab431fd25b85472c3897"><td class="mdescLeft"> </td><td class="mdescRight">Insert a integer value into a property list after the given position.  <a href="#ga5c0d4cd29cecab431fd25b85472c3897"></a><br/></td></tr>
-<tr class="memitem:ga05a5bb534ed7284bb107c3abb3edfa34"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga05a5bb534ed7284bb107c3abb3edfa34">uves_propertylist_insert_after_long</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *after, const char *name, long value)</td></tr>
-<tr class="memdesc:ga05a5bb534ed7284bb107c3abb3edfa34"><td class="mdescLeft"> </td><td class="mdescRight">Insert a long value into a property list after the given position.  <a href="#ga05a5bb534ed7284bb107c3abb3edfa34"></a><br/></td></tr>
-<tr class="memitem:gab2793113a4ef8e13c523c7cad9b03220"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gab2793113a4ef8e13c523c7cad9b03220">uves_propertylist_insert_after_float</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *after, const char *name, float value)</td></tr>
-<tr class="memdesc:gab2793113a4ef8e13c523c7cad9b03220"><td class="mdescLeft"> </td><td class="mdescRight">Insert a float value into a property list after the given position.  <a href="#gab2793113a4ef8e13c523c7cad9b03220"></a><br/></td></tr>
-<tr class="memitem:ga448733ba77d4c3de7fd109ca7a07ffff"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga448733ba77d4c3de7fd109ca7a07ffff">uves_propertylist_insert_after_double</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *after, const char *name, double value)</td></tr>
-<tr class="memdesc:ga448733ba77d4c3de7fd109ca7a07ffff"><td class="mdescLeft"> </td><td class="mdescRight">Insert a double value into a property list after the given position.  <a href="#ga448733ba77d4c3de7fd109ca7a07ffff"></a><br/></td></tr>
-<tr class="memitem:gaa8d7d969eef7675c6ff44ff98e38dfe0"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gaa8d7d969eef7675c6ff44ff98e38dfe0">uves_propertylist_insert_after_string</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *after, const char *name, const char *value)</td></tr>
-<tr class="memdesc:gaa8d7d969eef7675c6ff44ff98e38dfe0"><td class="mdescLeft"> </td><td class="mdescRight">Insert a string value into a property list after the given position.  <a href="#gaa8d7d969eef7675c6ff44ff98e38dfe0"></a><br/></td></tr>
-<tr class="memitem:gaa151bee689fe652596364001379e70fa"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gaa151bee689fe652596364001379e70fa">uves_propertylist_prepend_char</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, char value)</td></tr>
-<tr class="memdesc:gaa151bee689fe652596364001379e70fa"><td class="mdescLeft"> </td><td class="mdescRight">Prepend a character value to a property list.  <a href="#gaa151bee689fe652596364001379e70fa"></a><br/></td></tr>
-<tr class="memitem:ga25074f6f6ba24b2ccbbb91b1aa703da5"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga25074f6f6ba24b2ccbbb91b1aa703da5">uves_propertylist_prepend_bool</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, int value)</td></tr>
-<tr class="memdesc:ga25074f6f6ba24b2ccbbb91b1aa703da5"><td class="mdescLeft"> </td><td class="mdescRight">Prepend a boolean value to a property list.  <a href="#ga25074f6f6ba24b2ccbbb91b1aa703da5"></a><br/></td></tr>
-<tr class="memitem:ga0133703baaa20b62bc57f9125ff105e0"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga0133703baaa20b62bc57f9125ff105e0">uves_propertylist_prepend_int</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, int value)</td></tr>
-<tr class="memdesc:ga0133703baaa20b62bc57f9125ff105e0"><td class="mdescLeft"> </td><td class="mdescRight">Prepend a integer value to a property list.  <a href="#ga0133703baaa20b62bc57f9125ff105e0"></a><br/></td></tr>
-<tr class="memitem:gab8a9b7c5adf6a7c280a67dfb52693ad9"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gab8a9b7c5adf6a7c280a67dfb52693ad9">uves_propertylist_prepend_long</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, long value)</td></tr>
-<tr class="memdesc:gab8a9b7c5adf6a7c280a67dfb52693ad9"><td class="mdescLeft"> </td><td class="mdescRight">Prepend a long value to a property list.  <a href="#gab8a9b7c5adf6a7c280a67dfb52693ad9"></a><br/></td></tr>
-<tr class="memitem:ga47d49f4e59167222901c218d8dd02105"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga47d49f4e59167222901c218d8dd02105">uves_propertylist_prepend_float</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, float value)</td></tr>
-<tr class="memdesc:ga47d49f4e59167222901c218d8dd02105"><td class="mdescLeft"> </td><td class="mdescRight">Prepend a float value to a property list.  <a href="#ga47d49f4e59167222901c218d8dd02105"></a><br/></td></tr>
-<tr class="memitem:gaa5dab235d01e40a8e3721eaa8bc5a38d"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gaa5dab235d01e40a8e3721eaa8bc5a38d">uves_propertylist_prepend_double</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, double value)</td></tr>
-<tr class="memdesc:gaa5dab235d01e40a8e3721eaa8bc5a38d"><td class="mdescLeft"> </td><td class="mdescRight">Prepend a double value to a property list.  <a href="#gaa5dab235d01e40a8e3721eaa8bc5a38d"></a><br/></td></tr>
-<tr class="memitem:gadae05c6be2055c187a4a0ac66da762e0"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gadae05c6be2055c187a4a0ac66da762e0">uves_propertylist_prepend_string</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, const char *value)</td></tr>
-<tr class="memdesc:gadae05c6be2055c187a4a0ac66da762e0"><td class="mdescLeft"> </td><td class="mdescRight">Prepend a string value to a property list.  <a href="#gadae05c6be2055c187a4a0ac66da762e0"></a><br/></td></tr>
-<tr class="memitem:ga6aa95b3889354433646b119589d1d676"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga6aa95b3889354433646b119589d1d676"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_propertylist_append_char</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, char value)</td></tr>
-<tr class="memitem:gafaac6e1d1cfeedd62ccef143b299554a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gafaac6e1d1cfeedd62ccef143b299554a"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_propertylist_append_bool</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, int value)</td></tr>
-<tr class="memitem:ga536d8414466969b9db7ee96a2696192e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga536d8414466969b9db7ee96a2696192e"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_propertylist_append_int</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, int value)</td></tr>
-<tr class="memitem:ga945c1c9a0b11723847155d6cba812405"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga945c1c9a0b11723847155d6cba812405"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_propertylist_append_long</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, long value)</td></tr>
-<tr class="memitem:ga5055f7c4282c703d88559276ce5b45ae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5055f7c4282c703d88559276ce5b45ae"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_propertylist_append_float</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, float value)</td></tr>
-<tr class="memitem:ga708eab49272033d9f6d0b3da4e7e288b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga708eab49272033d9f6d0b3da4e7e288b"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_propertylist_append_double</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, double value)</td></tr>
-<tr class="memitem:ga873086bce493bd741660d1c46d73d483"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga873086bce493bd741660d1c46d73d483"></a>
-cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_propertylist_append_string</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, const char *value)</td></tr>
-<tr class="memitem:ga64519bda6f595f3ef9de641b5f37c9e1"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga64519bda6f595f3ef9de641b5f37c9e1">uves_propertylist_append_c_char</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, char value, const char *comment)</td></tr>
-<tr class="memdesc:ga64519bda6f595f3ef9de641b5f37c9e1"><td class="mdescLeft"> </td><td class="mdescRight">Append a character value to a property list.  <a href="#ga64519bda6f595f3ef9de641b5f37c9e1"></a><br/></td></tr>
-<tr class="memitem:ga40e676ee81b51d67da6ce7cba7c71b50"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga40e676ee81b51d67da6ce7cba7c71b50">uves_propertylist_append_c_bool</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, int value, const char *comment)</td></tr>
-<tr class="memdesc:ga40e676ee81b51d67da6ce7cba7c71b50"><td class="mdescLeft"> </td><td class="mdescRight">Append a boolean value to a property list.  <a href="#ga40e676ee81b51d67da6ce7cba7c71b50"></a><br/></td></tr>
-<tr class="memitem:gaad79e5cdd03fa3c809205ca63c8951b9"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gaad79e5cdd03fa3c809205ca63c8951b9">uves_propertylist_append_c_int</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, int value, const char *comment)</td></tr>
-<tr class="memdesc:gaad79e5cdd03fa3c809205ca63c8951b9"><td class="mdescLeft"> </td><td class="mdescRight">Append an integer value to a property list.  <a href="#gaad79e5cdd03fa3c809205ca63c8951b9"></a><br/></td></tr>
-<tr class="memitem:gaa03d7d474068a0724398a8aef019c953"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gaa03d7d474068a0724398a8aef019c953">uves_propertylist_append_c_long</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, long value, const char *comment)</td></tr>
-<tr class="memdesc:gaa03d7d474068a0724398a8aef019c953"><td class="mdescLeft"> </td><td class="mdescRight">Append a long value to a property list.  <a href="#gaa03d7d474068a0724398a8aef019c953"></a><br/></td></tr>
-<tr class="memitem:ga31238b65a9fdb7e3db3d1d0dcf6b6bbe"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga31238b65a9fdb7e3db3d1d0dcf6b6bbe">uves_propertylist_append_c_float</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, float value, const char *comment)</td></tr>
-<tr class="memdesc:ga31238b65a9fdb7e3db3d1d0dcf6b6bbe"><td class="mdescLeft"> </td><td class="mdescRight">Append a float value to a property list.  <a href="#ga31238b65a9fdb7e3db3d1d0dcf6b6bbe"></a><br/></td></tr>
-<tr class="memitem:gab4b3c176085a36d143893fe7aca72e93"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93">uves_propertylist_append_c_double</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, double value, const char *comment)</td></tr>
-<tr class="memdesc:gab4b3c176085a36d143893fe7aca72e93"><td class="mdescLeft"> </td><td class="mdescRight">Append a double value to a property list.  <a href="#gab4b3c176085a36d143893fe7aca72e93"></a><br/></td></tr>
-<tr class="memitem:ga39fee1a93e3baa0085017d4870144d7c"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga39fee1a93e3baa0085017d4870144d7c">uves_propertylist_append_c_string</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, const char *value, const char *comment)</td></tr>
-<tr class="memdesc:ga39fee1a93e3baa0085017d4870144d7c"><td class="mdescLeft"> </td><td class="mdescRight">Append a string value to a property list.  <a href="#ga39fee1a93e3baa0085017d4870144d7c"></a><br/></td></tr>
-<tr class="memitem:gaaca2f4f3cc44998aead9feed586a3c46"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46">uves_propertylist_append</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c [...]
-<tr class="memdesc:gaaca2f4f3cc44998aead9feed586a3c46"><td class="mdescLeft"> </td><td class="mdescRight">Append a property list..  <a href="#gaaca2f4f3cc44998aead9feed586a3c46"></a><br/></td></tr>
-<tr class="memitem:ga5e67017d9408f2b3bdf58b87ecbfbde8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8">uves_propertylist_erase</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name)</td></tr>
-<tr class="memdesc:ga5e67017d9408f2b3bdf58b87ecbfbde8"><td class="mdescLeft"> </td><td class="mdescRight">Erase the given property from a property list.  <a href="#ga5e67017d9408f2b3bdf58b87ecbfbde8"></a><br/></td></tr>
-<tr class="memitem:ga261c398cc08ce5175706d3830952ea10"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10">uves_propertylist_erase_regexp</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *regexp, int invert)</td></tr>
-<tr class="memdesc:ga261c398cc08ce5175706d3830952ea10"><td class="mdescLeft"> </td><td class="mdescRight">Erase all properties with name matching a given regular expression.  <a href="#ga261c398cc08ce5175706d3830952ea10"></a><br/></td></tr>
-<tr class="memitem:ga2f16e593835cd524eb374474fd226755"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755">uves_propertylist_empty</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self)</td></tr>
-<tr class="memdesc:ga2f16e593835cd524eb374474fd226755"><td class="mdescLeft"> </td><td class="mdescRight">Remove all properties from a property list.  <a href="#ga2f16e593835cd524eb374474fd226755"></a><br/></td></tr>
-<tr class="memitem:ga810374cc06f2343166ed49fa1be9f7cb"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga810374cc06f2343166ed49fa1be9f7cb">uves_propertylist_update_char</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, char value)</td></tr>
-<tr class="memdesc:ga810374cc06f2343166ed49fa1be9f7cb"><td class="mdescLeft"> </td><td class="mdescRight">Update a property list with a character value.  <a href="#ga810374cc06f2343166ed49fa1be9f7cb"></a><br/></td></tr>
-<tr class="memitem:ga843649fce9e26744ba7be376354d9c39"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga843649fce9e26744ba7be376354d9c39">uves_propertylist_update_bool</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, int value)</td></tr>
-<tr class="memdesc:ga843649fce9e26744ba7be376354d9c39"><td class="mdescLeft"> </td><td class="mdescRight">Update a property list with a boolean value.  <a href="#ga843649fce9e26744ba7be376354d9c39"></a><br/></td></tr>
-<tr class="memitem:ga818ed657e06685898c1424daa6c37a23"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23">uves_propertylist_update_int</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, int value)</td></tr>
-<tr class="memdesc:ga818ed657e06685898c1424daa6c37a23"><td class="mdescLeft"> </td><td class="mdescRight">Update a property list with a integer value.  <a href="#ga818ed657e06685898c1424daa6c37a23"></a><br/></td></tr>
-<tr class="memitem:ga8108bd5d80f387c4e65d80f38373de6e"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga8108bd5d80f387c4e65d80f38373de6e">uves_propertylist_update_long</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, long value)</td></tr>
-<tr class="memdesc:ga8108bd5d80f387c4e65d80f38373de6e"><td class="mdescLeft"> </td><td class="mdescRight">Update a property list with a long value.  <a href="#ga8108bd5d80f387c4e65d80f38373de6e"></a><br/></td></tr>
-<tr class="memitem:ga3dfc4fa6ae6687892c7cf6ef73f41ef3"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga3dfc4fa6ae6687892c7cf6ef73f41ef3">uves_propertylist_update_float</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, float value)</td></tr>
-<tr class="memdesc:ga3dfc4fa6ae6687892c7cf6ef73f41ef3"><td class="mdescLeft"> </td><td class="mdescRight">Update a property list with a float value.  <a href="#ga3dfc4fa6ae6687892c7cf6ef73f41ef3"></a><br/></td></tr>
-<tr class="memitem:gaa8ed814c29f535237f05563c1bc319eb"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb">uves_propertylist_update_double</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, double value)</td></tr>
-<tr class="memdesc:gaa8ed814c29f535237f05563c1bc319eb"><td class="mdescLeft"> </td><td class="mdescRight">Update a property list with a double value.  <a href="#gaa8ed814c29f535237f05563c1bc319eb"></a><br/></td></tr>
-<tr class="memitem:ga874aa2d181f7fa454371991de1f6c90b"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b">uves_propertylist_update_string</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const char *name, const char *value)</td></tr>
-<tr class="memdesc:ga874aa2d181f7fa454371991de1f6c90b"><td class="mdescLeft"> </td><td class="mdescRight">Update a property list with a string value.  <a href="#ga874aa2d181f7fa454371991de1f6c90b"></a><br/></td></tr>
-<tr class="memitem:ga498f10da2c5cd157cd004ce3e207ff6c"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga498f10da2c5cd157cd004ce3e207ff6c">uves_propertylist_copy_property</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aade [...]
-<tr class="memdesc:ga498f10da2c5cd157cd004ce3e207ff6c"><td class="mdescLeft"> </td><td class="mdescRight">Copy a property from another property list.  <a href="#ga498f10da2c5cd157cd004ce3e207ff6c"></a><br/></td></tr>
-<tr class="memitem:gaac698be25bd8c0a7bb5dd4c188a55882"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882">uves_propertylist_copy_property_regexp</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b [...]
-<tr class="memdesc:gaac698be25bd8c0a7bb5dd4c188a55882"><td class="mdescLeft"> </td><td class="mdescRight">Copy matching properties from another property list.  <a href="#gaac698be25bd8c0a7bb5dd4c188a55882"></a><br/></td></tr>
-<tr class="memitem:ga5de7b249b679dc82b32e730e8d22a8bb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb">uves_propertylist_load</a> (const char *name, int position)</td></tr>
-<tr class="memdesc:ga5de7b249b679dc82b32e730e8d22a8bb"><td class="mdescLeft"> </td><td class="mdescRight">Create a property list from a file.  <a href="#ga5de7b249b679dc82b32e730e8d22a8bb"></a><br/></td></tr>
-<tr class="memitem:ga795683c7baa3ddfc26959339e90f8e6d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__propertylist.html#ga795683c7baa3ddfc26959339e90f8e6d">uves_propertylist_load_regexp</a> (const char *name, int position, const char *regexp, int invert)</td></tr>
-<tr class="memdesc:ga795683c7baa3ddfc26959339e90f8e6d"><td class="mdescLeft"> </td><td class="mdescRight">Create a filtered property list from a file.  <a href="#ga795683c7baa3ddfc26959339e90f8e6d"></a><br/></td></tr>
-<tr class="memitem:ga51082cf15d54b19967e4276e6de96e15"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga51082cf15d54b19967e4276e6de96e15"></a>
-qfits_header * </td><td class="memItemRight" valign="bottom"><b>uves_propertylist_to_fits</b> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *self)</td></tr>
-<tr class="memitem:gac3690d333b46121104bfa7eb38199b93"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac3690d333b46121104bfa7eb38199b93"></a>
-<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td><td class="memItemRight" valign="bottom"><b>uves_propertylist_from_fits</b> (const qfits_header *header)</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="var-members"></a>
-Variables</h2></td></tr>
-<tr class="memitem:gac732e85fc4e70dab4119484e23c9ec55"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac732e85fc4e70dab4119484e23c9ec55"></a>
-static cpl_error_code </td><td class="memItemRight" valign="bottom"><b>push_pop_error</b></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module is the same as CPL-3.1 property lists but implemented using a deque (a vector that can grow in both ends in amortized constant time) rather than a linked list.</p>
-<p>This was a necessary change in order for property lists to be usable with MIDAS generated FLAMES calibration data (a simple loop is now O(n), not O(n^2), for FLAMES data we have n ~= 10^5)</p>
-<p>This module still uses the cpl_property module </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gac87c6bfca337c5c592ee22e30fc8b596"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a>* uves_propertylist_new </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create an empty property list. </p>
-<dl class="section return"><dt>Returns:</dt><dd>The newly created property list.</dd></dl>
-<p>The function creates a new property list and returns a handle for it. To destroy the returned property list object use the property list destructor <b><a class="el" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete()</a></b>.</p>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete()</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l00772">772</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__dfs-test_8c_source.html#l00394">convert_midas_array()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00698">convert_to_history()</a>, <a class="el" href="uves__test__simulate_8c_source.html#l00110">create_order_table()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02259">flames_midas_scfcre()</a>, <a class="el" href="flames__midas__def_8c_source.html#l04101">flames_midas_tctopn()</a>, <a class="el" href="flames__midas_ [...]
-
-</div>
-</div>
-<a class="anchor" id="ga79c637a212cf4556348c3ba3375b3a07"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a>* uves_propertylist_duplicate </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create a copy of the given property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The property list to be copied.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The created copy or <code>NULL</code> in case an error occurred.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a deep copy of the given property list <em>self</em>, i.e the created copy and the original property list do not share any resources. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l00809">809</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>References <a class="el" href="uves__propertylist_8c_source.html#l00772">uves_propertylist_new()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l00698">convert_to_history()</a>, <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>, and <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00348">uves_reduce_mflat_combine()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3c613b98402a757ff02df2334082ff90"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_propertylist_delete </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Destroy a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The property list to destroy.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Nothing.</dd></dl>
-<p>The function destroys the property list <em>self</em> and its whole contents. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l00858">858</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils-test_8c_source.html#l00528">table_erase_selected()</a>, <a class="el" href="uves__propertylist_8c_source.html#l05449">uves_propertylist_load()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l05596">uves_propertylist_load_regexp()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf5397227fe7008f590b7d56bd8e0f851"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">long uves_propertylist_get_size </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the current size of a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The property list's current size, or 0 if the list is empty. If an error occurs the function returns 0 and sets an appropriate error code.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function reports the current number of elements stored in the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l00898">898</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l00698">convert_to_history()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01029">load_frame_header()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00878">load_header()</a>, <a class="el" href="uves__pfits_8c_source.html#l01739">parse_history()</a>, <a class="el" href="flames__midas__def_8c_source.html#l03607">scdcop()</a>, <a class="el" href="uves__corrbadpix-test_8c_source.html#l00092">te [...]
-
-</div>
-</div>
-<a class="anchor" id="ga08dbbfc559ffcddf72092ef0a5a6b2e6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_propertylist_is_empty </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Check whether a property list is empty. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns 1 if the list is empty, and 0 otherwise. In case an error occurs the function returns -1 and sets an appropriate error code.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function checks if <em>self</em> contains any properties. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l00940">940</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__dump_8c_source.html#l00117">uves_print_uves_propertylist()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2ee26ca559adc30a12a3e4dcf003b52d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_type uves_propertylist_get_type </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the the type of a property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The type of the stored value. If an error occurs the function returns <code>CPL_TYPE_INVALID</code> and sets an appropriate error code.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-</table>
-<p>The function returns the type of the value stored in <em>self</em> with the name <em>name</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l00991">991</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__pfits_8c_source.html#l01608">uves_pfits_get_ordpred()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0fce53213cd728ed91e048737e61371b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_propertylist_contains </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Check whether a property is present in a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns 1 if the property is present, or 0 otherwise. If an error occurs the function returns 0 and sets an appropriate error code.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property with the name <em>name</em> and reports whether it was found or not. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01045">1045</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03795">flames_midas_sccget()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01065">set_column_format_unit_tnull()</a>, <a class="el" href="uves__utils_8c_source.html#l02225">uves_define_noise()</a>, <a class="el" href="uves__pfits_8c_source.html#l03249">uves_flames_pfits_get_plateid()</a>, <a class="el" href="uves__pfits_8c_source.html#l01318">uves_pfits_get_datancom()</a>, <a class="el" href="uves__pfit [...]
-
-</div>
-</div>
-<a class="anchor" id="gabe6f3653a12455c6fc90c46127a6e2ad"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int my_uves_propertylist_contains </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_propertylist * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Check whether a property is present in a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns 1 if the property is present, or 0 otherwise. If an error occurs the function returns 0 and sets an appropriate error code.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property with the name <em>name</em> and reports whether it was found or not. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01093">1093</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1a5d3673829cac01d0c0f6938973c193"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_set_comment </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>comment</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Modify the comment field of the given property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up. </td></tr>
-    <tr><td class="paramname">comment</td><td>New comment string.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its comment is replaced by the string <em>comment</em>. The provided comment string may be <code>NULL</code>. In this case an already existing comment is deleted. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01153">1153</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l00735">uves_pfits_put_qc()</a>, <a class="el" href="uves__pfits_8c_source.html#l01862">uves_pfits_set_data_average()</a>, <a class="el" href="uves__pfits_8c_source.html#l01936">uves_pfits_set_data_max()</a>, <a class="el" href="uves__pfits_8c_source.html#l01900">uves_pfits_set_data_median()</a>, <a class="el" href="uves__pfits_8c_source.html#l01918">uves_pfits_set_data_min()</a>, <a class="el" href="uves__pfits_8c_source.ht [...]
-
-</div>
-</div>
-<a class="anchor" id="ga3848313f04afa3606dbbc560746f5025"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_set_char </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set the value of the given character property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up. </td></tr>
-    <tr><td class="paramname">value</td><td>New character value.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its character value is replaced with the character <em>value</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01218">1218</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1b920e8880391034ba16248071aaeda5"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_set_bool </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set the value of the given boolean property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up. </td></tr>
-    <tr><td class="paramname">value</td><td>New boolean value.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its boolean value is replaced with the boolean <em>value</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01281">1281</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaef59cbe7747d8778af96087b23c8d682"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_set_int </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set the value of the given integer property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up. </td></tr>
-    <tr><td class="paramname">value</td><td>New integer value.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its integer value is replaced with the integer <em>value</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01343">1343</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga188d6bd12ef15a5c4aff8713339a443a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_set_long </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">long </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set the value of the given long property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up. </td></tr>
-    <tr><td class="paramname">value</td><td>New long value.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its long value is replaced with the long <em>value</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01405">1405</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadf1317627ff51b6cbcff9aec380fd51a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_set_float </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set the value of the given float property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up. </td></tr>
-    <tr><td class="paramname">value</td><td>New float value.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its float value is replaced with the float <em>value</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01468">1468</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5e507cfe564326f9e5474c5773d6dd24"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_set_double </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set the value of the given double property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up. </td></tr>
-    <tr><td class="paramname">value</td><td>New double value.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its double value is replaced with the double <em>value</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01531">1531</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gabbc55af6700c2d1d28f82131b56a3b7b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_set_string </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Set the value of the given string property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up. </td></tr>
-    <tr><td class="paramname">value</td><td>New string value.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its string value is replaced with the string <em>value</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01594">1594</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga987313a29d189a7bb6d120af09b25155"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const cpl_property* uves_propertylist_get_const </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">long </td>
-          <td class="paramname"><em>position</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Access property list elements by index. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>The property list to query. </td></tr>
-    <tr><td class="paramname">position</td><td>Index of the element to retrieve.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns the property with index <em>position</em>, or <code>NULL</code> if <em>position</em> is out of range.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function returns a handle for the property list element, the property, with the index <em>position</em>. Numbering of property list elements extends from 0 to <b><a class="el" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size()</a></b> - 1. If <em>position</em> is less than 0 or greater equal than <b><a class="el" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f85 [...]
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01650">1650</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__pfits_8c_source.html#l01739">parse_history()</a>, <a class="el" href="uves__utils__cpl_8c_source.html#l00199">uves_find_property_const()</a>, and <a class="el" href="uves__dump_8c_source.html#l00117">uves_print_uves_propertylist()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga648f33387b636d2fea612aafbac02d18"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_propertylist_get_comment </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the comment of the given property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The comment of the property list entry, or <code>NULL</code>.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its comment string is returned. If an entry with the name <em>name</em> is not found, or if the entry has no comment the function returns <code>NULL</code>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01729">1729</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae9273c454206f9c51055aa1206183d37"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char uves_propertylist_get_char </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the character value of the given property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The character value stored in the list entry. The function returns '\0' if an error occurs and an appropriate error code is set.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The sought-after property <em>name</em> is not of type <code>CPL_TYPE_CHAR</code>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its character value is returned. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01796">1796</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__pfits_8c_source.html#l00340">uves_pfits_get_chipchoice()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1915e9a72e6f0580cadb0736ea43d6dc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_propertylist_get_bool </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the boolean value of the given property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The integer representation of the boolean value stored in the list entry. <code>TRUE</code> is represented as non-zero value while 0 indicates <code>FALSE</code>. The function returns 0 if an error occurs and an appropriate error code is set.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The sought-after property <em>name</em> is not of type <code>CPL_TYPE_BOOL</code>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its boolean value is returned. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01885">1885</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga34a6adea62f635e9b75cb4b5f614c785"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_propertylist_get_int </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the integer value of the given property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The integer value stored in the list entry. The function returns 0 if an error occurs and an appropriate error code is set.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The sought-after property <em>name</em> is not of type <code>CPL_TYPE_INT</code>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its integer value is returned. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l01972">1972</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03607">scdcop()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01065">set_column_format_unit_tnull()</a>, <a class="el" href="uves__pfits_8c_source.html#l00284">uves_pfits_get_slit3_x1encoder()</a>, and <a class="el" href="uves__pfits_8c_source.html#l00302">uves_pfits_get_slit3_x2encoder()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga62f1a977f79c807936a3ff394ca6280e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">long uves_propertylist_get_long </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the long value of the given property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The long value stored in the list entry. The function returns 0 if an error occurs and an appropriate error code is set.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The sought-after property <em>name</em> is not of type <code>CPL_TYPE_LONG</code>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its long value is returned. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02059">2059</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga71f81602d966afe5b8efb2d4a962ba8b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">float uves_propertylist_get_float </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the float value of the given property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The float value stored in the list entry. The function returns 0 if an error occurs and an appropriate error code is set.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The sought-after property <em>name</em> is not of type <code>CPL_TYPE_FLOAT</code>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its float value is returned. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02146">2146</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga076b98ab4044b08ea0804e03e92ae681"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_propertylist_get_double </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the double value of the given property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The double value stored in the list entry. The function returns 0 if an error occurs and an appropriate error code is set.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The sought-after property <em>name</em> is not of type <code>CPL_TYPE_DOUBLE</code>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, its double value is returned. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02233">2233</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02225">uves_define_noise()</a>, and <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0fbe9d1642f9b6a884565d0cf47edb93"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_propertylist_get_string </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the string value of the given property list entry. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A handle to the string value stored in the list entry. The function returns <code>NULL</code> if an error occurs and an appropriate error code is set.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>self</em> does not contain a property with the name <em>name</em>.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The sought-after property <em>name</em> is not of type <code>CPL_TYPE_STRING</code>.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property named <em>name</em>. If it is present in the list, a handle to its string value is returned. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02322">2322</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03795">flames_midas_sccget()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01065">set_column_format_unit_tnull()</a>, <a class="el" href="uves__pfits_8c_source.html#l00422">uves_flames_pfits_get_ident()</a>, <a class="el" href="uves__pfits_8c_source.html#l00442">uves_flames_pfits_get_object()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00225">uves_save_paf()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab67312fdd5ec2579db318e2b73f83793"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_char </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>here</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a character value into a property list at the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">here</td><td>Name indicating the position at which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The character value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>here</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new character property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> at the position of the property named <em>here</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02405">2405</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2dfd30cad698338aa24bed3807772bcb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_bool </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>here</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a boolean value into a property list at the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">here</td><td>Name indicating the position at which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The boolean value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>here</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new boolean property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> at the position of the property named <em>here</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02470">2470</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf4317df2406162e173e8c78274650da4"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_int </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>here</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a integer value into a property list at the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">here</td><td>Name indicating the position at which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The integer value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>here</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new integer property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> at the position of the property named <em>here</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02535">2535</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gafd6db82a3ab2a060af6cc2a661bbc032"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_propertylist_has </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Check whether a property is present in a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to look up.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns 1 if the property is present, or 0 otherwise. If an error occurs the function returns 0 and sets an appropriate error code.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function searches the property list <em>self</em> for a property with the name <em>name</em> and reports whether it was found or not. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02589">2589</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad1eced1cf3c10a77997c02f20ced0922"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_long </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>here</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">long </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a long value into a property list at the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">here</td><td>Name indicating the position at which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The long value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>here</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new long property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> at the position of the property named <em>here</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02643">2643</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gafa987cf50ee6314a8eddf4e4c284cdd0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_float </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>here</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a float value into a property list at the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">here</td><td>Name indicating the position at which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The float value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>here</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new float property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> at the position of the property named <em>here</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02708">2708</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3541bde9170abf5eb52c6351ae03da31"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_double </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>here</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a double value into a property list at the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">here</td><td>Name indicating the position at which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The double value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>here</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new double property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> at the position of the property named <em>here</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02773">2773</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadae4a02d6cc8db83abeb9a8b670ade81"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_string </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>here</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a string value into a property list at the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">here</td><td>Name indicating the position at which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The string value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>here</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new string property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> at the position of the property named <em>here</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02838">2838</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6f4d1c1ff4e0c8fc7bb2edb551cba11e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_after_char </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>after</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a character value into a property list after the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">after</td><td>Name of the property after which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The character value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>after</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new character property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> after the property named <em>after</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02903">2903</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gafeb4307649f4b8edc101e73c21ec7392"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_after_bool </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>after</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a boolean value into a property list after the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">after</td><td>Name of the property after which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The boolean value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>after</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new boolean property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> after the property named <em>after</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l02968">2968</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5c0d4cd29cecab431fd25b85472c3897"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_after_int </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>after</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a integer value into a property list after the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">after</td><td>Name of the property after which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The integer value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>after</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new integer property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> after the property named <em>after</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03033">3033</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga05a5bb534ed7284bb107c3abb3edfa34"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_after_long </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>after</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">long </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a long value into a property list after the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">after</td><td>Name of the property after which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The long value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>after</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new long property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> after the property named <em>after</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03098">3098</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab2793113a4ef8e13c523c7cad9b03220"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_after_float </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>after</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a float value into a property list after the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">after</td><td>Name of the property after which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The float value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>after</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new float property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> after the property named <em>after</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03163">3163</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga448733ba77d4c3de7fd109ca7a07ffff"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_after_double </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>after</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a double value into a property list after the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">after</td><td>Name of the property after which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The double value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>after</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new double property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> after the property named <em>after</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03228">3228</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa8d7d969eef7675c6ff44ff98e38dfe0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_insert_after_string </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>after</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Insert a string value into a property list after the given position. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">after</td><td>Name of the property after which the value is inserted. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The string value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>after</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_UNSPECIFIED </td><td class="ecr">A property with the name <em>name</em> could not be inserted into <em>self</em>.   </td></tr>
-</table>
-<p>The function creates a new string property with name <em>name</em> and value <em>value</em>. The property is inserted into the property list <em>self</em> after the property named <em>after</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03294">3294</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa151bee689fe652596364001379e70fa"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_prepend_char </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Prepend a character value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The character value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new character property with name <em>name</em> and value <em>value</em>. The property is prepended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03351">3351</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga25074f6f6ba24b2ccbbb91b1aa703da5"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_prepend_bool </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Prepend a boolean value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The boolean value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new boolean property with name <em>name</em> and value <em>value</em>. The property is prepended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03405">3405</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0133703baaa20b62bc57f9125ff105e0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_prepend_int </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Prepend a integer value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The integer value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new integer property with name <em>name</em> and value <em>value</em>. The property is prepended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03459">3459</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab8a9b7c5adf6a7c280a67dfb52693ad9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_prepend_long </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">long </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Prepend a long value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The long value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new long property with name <em>name</em> and value <em>value</em>. The property is prepended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03513">3513</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga47d49f4e59167222901c218d8dd02105"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_prepend_float </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Prepend a float value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The float value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new float property with name <em>name</em> and value <em>value</em>. The property is prepended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03567">3567</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa5dab235d01e40a8e3721eaa8bc5a38d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_prepend_double </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Prepend a double value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The double value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new double property with name <em>name</em> and value <em>value</em>. The property is prepended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03621">3621</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadae05c6be2055c187a4a0ac66da762e0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_prepend_string </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Prepend a string value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The string value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new string property with name <em>name</em> and value <em>value</em>. The property is prepended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03675">3675</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga64519bda6f595f3ef9de641b5f37c9e1"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_append_c_char </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>comment</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Append a character value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The character value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new character property with name <em>name</em> and value <em>value</em>. The property is appended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03795">3795</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga40e676ee81b51d67da6ce7cba7c71b50"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_append_c_bool </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>comment</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Append a boolean value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The boolean value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new boolean property with name <em>name</em> and value <em>value</em>. The property is appended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03851">3851</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaad79e5cdd03fa3c809205ca63c8951b9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_append_c_int </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>comment</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Append an integer value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The integer value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new integer property with name <em>name</em> and value <em>value</em>. The property is appended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03907">3907</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l01316">create_descr()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l00878">load_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa03d7d474068a0724398a8aef019c953"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_append_c_long </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">long </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>comment</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Append a long value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The long value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new long property with name <em>name</em> and value <em>value</em>. The property is appended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l03963">3963</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga31238b65a9fdb7e3db3d1d0dcf6b6bbe"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_append_c_float </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>comment</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Append a float value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The float value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new float property with name <em>name</em> and value <em>value</em>. The property is appended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04019">4019</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l01316">create_descr()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l00878">load_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab4b3c176085a36d143893fe7aca72e93"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_append_c_double </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>comment</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Append a double value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The double value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new double property with name <em>name</em> and value <em>value</em>. The property is appended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04075">4075</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l01316">create_descr()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00878">load_header()</a>, <a class="el" href="uves__reduce__mflat_8c_source.html#l00221">uves_mflat_process_chip()</a>, and <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga39fee1a93e3baa0085017d4870144d7c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_append_c_string </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>comment</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Append a string value to a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The string value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function creates a new string property with name <em>name</em> and value <em>value</em>. The property is appended to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04131">4131</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l01316">create_descr()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l00878">load_header()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaaca2f4f3cc44998aead9feed586a3c46"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_append </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>other</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Append a property list.. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">other</td><td>The property to append.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function appends the property list <em>other</em> to the property list <em>self</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04185">4185</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03607">scdcop()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5e67017d9408f2b3bdf58b87ecbfbde8"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_propertylist_erase </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Erase the given property from a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>Name of the property to erase.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>On success the function returns the number of erased entries. If an error occurs the function returns 0 and an appropriate error code is set.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function searches the property with the name <em>name</em> in the property list <em>self</em> and removes it. The property is destroyed. If <em>self</em> contains multiple duplicates of a property named <em>name</em>, only the first one is erased. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04247">4247</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga261c398cc08ce5175706d3830952ea10"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_propertylist_erase_regexp </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>regexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>invert</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Erase all properties with name matching a given regular expression. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">regexp</td><td>Regular expression. </td></tr>
-    <tr><td class="paramname">invert</td><td>Flag inverting the sense of matching.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>On success the function returns the number of erased entries. If an error occurs the function returns 0 and an appropriate error code is set.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>regexp</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function searches for all the properties matching in the list <em>self</em> and removes them. Whether a property matches or not depends on the given regular expression <em>regexp</em>, and the flag <em>invert</em>. If <em>invert</em> is <code>0</code>, all properties matching <em>regexp</em> are removed from the list. If <em>invert</em> is set to a non-zero value, all properties which do not match <em>regexp</em> are erased. The removed properties are destroyed.</p>
-<p>The function expects POSIX 1003.2 compliant extended regular expressions. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04308">4308</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03535">flames_midas_scddel()</a>, and <a class="el" href="uves__utl__physmod_8c_source.html#l00354">uves_utl_physmod()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2f16e593835cd524eb374474fd226755"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_propertylist_empty </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Remove all properties from a property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Nothing.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> is a <code>NULL</code> pointer.   </td></tr>
-</table>
-<p>The function removes all properties from <em>self</em>. Each property is properly deallocated. After calling this function <em>self</em> is empty. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04390">4390</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__corrbadpix-test_8c_source.html#l00092">test_bad_corr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga810374cc06f2343166ed49fa1be9f7cb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_update_char </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Update a property list with a character value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The character value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The property list <em>self</em> contains a property with the name <em>name</em> which is not of type <code>CPL_TYPE_CHAR</code>.   </td></tr>
-</table>
-<p>The function updates the property list <em>self</em> with the character value <em>value</em>. This means, if a property with the name <em>name</em> exists already its value is updated, otherwise a property with the name <em>name</em> is created and added to <em>self</em>. The update will fail if a property with the name <em>name</em> exists already which is not of type <code>CPL_TYPE_CHAR</code>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04461">4461</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga843649fce9e26744ba7be376354d9c39"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_update_bool </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Update a property list with a boolean value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The boolean value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The property list <em>self</em> contains a property with the name <em>name</em> which is not of type <code>CPL_TYPE_BOOL</code>.   </td></tr>
-</table>
-<p>The function updates the property list <em>self</em> with the boolean value <em>value</em>. This means, if a property with the name <em>name</em> exists already its value is updated, otherwise a property with the name <em>name</em> is created and added to <em>self</em>. The update will fail if a property with the name <em>name</em> exists already which is not of type <code>CPL_TYPE_BOOL</code>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04547">4547</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga818ed657e06685898c1424daa6c37a23"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_update_int </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Update a property list with a integer value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The integer value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The property list <em>self</em> contains a property with the name <em>name</em> which is not of type <code>CPL_TYPE_INT</code>.   </td></tr>
-</table>
-<p>The function updates the property list <em>self</em> with the integer value <em>value</em>. This means, if a property with the name <em>name</em> exists already its value is updated, otherwise a property with the name <em>name</em> is created and added to <em>self</em>. The update will fail if a property with the name <em>name</em> exists already which is not of type <code>CPL_TYPE_INT</code>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04633">4633</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__pfits_8c_source.html#l03321">uves_flames_pfits_set_newplateid()</a>, <a class="el" href="uves__pfits_8c_source.html#l03000">uves_pfits_set_hs()</a>, <a class="el" href="uves__pfits_8c_source.html#l00605">uves_pfits_set_ocs_simcal()</a>, <a class="el" href="uves__pfits_8c_source.html#l01106">uves_pfits_set_ordpred()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8108bd5d80f387c4e65d80f38373de6e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_update_long </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">long </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Update a property list with a long value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The long value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The property list <em>self</em> contains a property with the name <em>name</em> which is not of type <code>CPL_TYPE_LONG</code>.   </td></tr>
-</table>
-<p>The function updates the property list <em>self</em> with the long value <em>value</em>. This means, if a property with the name <em>name</em> exists already its value is updated, otherwise a property with the name <em>name</em> is created and added to <em>self</em>. The update will fail if a property with the name <em>name</em> exists already which is not of type <code>CPL_TYPE_LONG</code>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04719">4719</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3dfc4fa6ae6687892c7cf6ef73f41ef3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_update_float </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Update a property list with a float value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The float value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The property list <em>self</em> contains a property with the name <em>name</em> which is not of type <code>CPL_TYPE_FLOAT</code>.   </td></tr>
-</table>
-<p>The function updates the property list <em>self</em> with the float value <em>value</em>. This means, if a property with the name <em>name</em> exists already its value is updated, otherwise a property with the name <em>name</em> is created and added to <em>self</em>. The update will fail if a property with the name <em>name</em> exists already which is not of type <code>CPL_TYPE_FLOAT</code>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04805">4805</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa8ed814c29f535237f05563c1bc319eb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_update_double </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Update a property list with a double value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The double value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The property list <em>self</em> contains a property with the name <em>name</em> which is not of type <code>CPL_TYPE_DOUBLE</code>.   </td></tr>
-</table>
-<p>The function updates the property list <em>self</em> with the double value <em>value</em>. This means, if a property with the name <em>name</em> exists already its value is updated, otherwise a property with the name <em>name</em> is created and added to <em>self</em>. The update will fail if a property with the name <em>name</em> exists already which is not of type <code>CPL_TYPE_DOUBLE</code>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04891">4891</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__pfits_8c_source.html#l02965">uves_flames_pfits_set_ccfposmax()</a>, <a class="el" href="uves__pfits_8c_source.html#l02746">uves_pfits_set_bscale()</a>, <a class="el" href="uves__pfits_8c_source.html#l02947">uves_pfits_set_cdelt1()</a>, <a class="el" href="uves__pfits_8c_source.html#l02983">uves_pfits_set_cdelt2()</a>, <a class="el" href="uves__pfits_8c_source.html#l02912">uves_pfits_set_crpix1()</a>, <a class="el" href="uves__pfits_8c_source.htm [...]
-
-</div>
-</div>
-<a class="anchor" id="ga874aa2d181f7fa454371991de1f6c90b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_update_string </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Update a property list with a string value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">name</td><td>The property name to be assigned to the value. </td></tr>
-    <tr><td class="paramname">value</td><td>The string value to store.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The property list <em>self</em> contains a property with the name <em>name</em> which is not of type <code>CPL_TYPE_STRING</code>.   </td></tr>
-</table>
-<p>The function updates the property list <em>self</em> with the string value <em>value</em>. This means, if a property with the name <em>name</em> exists already its value is updated, otherwise a property with the name <em>name</em> is created and added to <em>self</em>. The update will fail if a property with the name <em>name</em> exists already which is not of type <code>CPL_TYPE_STRING</code>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l04977">4977</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__pfits_8c_source.html#l02639">uves_pfits_set_badpixcorr()</a>, <a class="el" href="uves__pfits_8c_source.html#l02728">uves_pfits_set_bunit()</a>, <a class="el" href="uves__pfits_8c_source.html#l02786">uves_pfits_set_bunit_no()</a>, <a class="el" href="uves__pfits_8c_source.html#l02804">uves_pfits_set_ctype1()</a>, <a class="el" href="uves__pfits_8c_source.html#l02821">uves_pfits_set_ctype2()</a>, <a class="el" href="uves__pfits_8c_source.html#l02 [...]
-
-</div>
-</div>
-<a class="anchor" id="ga498f10da2c5cd157cd004ce3e207ff6c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_copy_property </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>other</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Copy a property from another property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">other</td><td>The property list from which a property is copied. </td></tr>
-    <tr><td class="paramname">name</td><td>The name of the property to copy.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>other</em> or <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The property list <em>other</em> does not contain a property with the name <em>name</em>.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The property list <em>self</em> contains a property with the name <em>name</em> which is not of the same type as the property which should be copied from <em>other</em>.   </td></tr>
-</table>
-<p>The function copies the property <em>name</em> from the property list <em>other</em> to the property list <em>self</em>. If the property list <em>self</em> does not already contain a property <em>name</em> the property is appended to <em>self</em>. If a property <em>name</em> exists already in <em>self</em> the function overwrites the contents of this property if and only if this property is of the same type as the property to be copied from <em>other</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l05072">5072</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaac698be25bd8c0a7bb5dd4c188a55882"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_propertylist_copy_property_regexp </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>self</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>other</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>regexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>invert</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Copy matching properties from another property list. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">self</td><td>A property list. </td></tr>
-    <tr><td class="paramname">other</td><td>The property list from which a property is copied. </td></tr>
-    <tr><td class="paramname">regexp</td><td>The regular expression used to select properties. </td></tr>
-    <tr><td class="paramname">invert</td><td>Flag inverting the sense of matching.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns <code>CPL_ERROR_NONE</code> on success or a CPL error code otherwise.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>self</em>, <em>other</em> or <em>regexp</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_ILLEGAL_INPUT </td><td class="ecr">The parameter <em>regexp</em> is an invalid regular expression.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_TYPE_MISMATCH </td><td class="ecr">The property list <em>self</em> contains a property with the name <em>name</em> which is not of the same type as the property which should be copied from <em>other</em>.   </td></tr>
-</table>
-<p>The function copies all properties with matching names from the property list <em>other</em> to the property list <em>self</em>. If the flag <em>invert</em> is zero, all properties whose names match the regular expression <em>regexp</em> are copied. If <em>invert</em> is set to a non-zero value, all properties with names not matching <em>regexp</em> are copied rather. The function expects POSIX 1003.2 compliant extended regular expressions.</p>
-<p>If the property list <em>self</em> does not already contain one of the properties to be copied this property is appended to <em>self</em>. If a property to be copied exists already in <em>self</em> the function overwrites the contents of this property.</p>
-<p>Before properties are copied from the property list <em>other</em> to <em>self</em> the types of the properties are checked and if any type mismatch is detected the function stops processing immediately. The property list <em>self</em> is not at all modified in this case.</p>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__uves__propertylist.html#ga498f10da2c5cd157cd004ce3e207ff6c" title="Copy a property from another property list.">uves_propertylist_copy_property()</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l05221">5221</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>, and <a class="el" href="flames__midas__def_8c_source.html#l03607">scdcop()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5de7b249b679dc82b32e730e8d22a8bb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a>* uves_propertylist_load </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>position</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create a property list from a file. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">name</td><td>Name of the input file. </td></tr>
-    <tr><td class="paramname">position</td><td>Index of the data set to read.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns the newly created property list or <code>NULL</code> if an error occurred.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>name</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_ILLEGAL_INPUT </td><td class="ecr">The <em>position</em> is less than 0 or the properties cannot be read from the file <em>name</em>.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_FILE_IO </td><td class="ecr">The file <em>name</em> does not exist.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_BAD_FILE_FORMAT </td><td class="ecr">The file <em>name</em> is not a valid FITS file.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The requested data set at index <em>position</em> does not exist.   </td></tr>
-</table>
-<p>The function reads the properties of the data set with index <em>position</em> from the file <em>name</em>.</p>
-<p>Currently only the FITS file format is supported. The property list is created by reading the FITS keywords from extension <em>position</em>. The numbering of the data sections starts from 0. When creating the property list from a FITS header, any keyword without a value like undefined keywords for instance are not transformed into a property.</p>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__uves__propertylist.html#ga795683c7baa3ddfc26959339e90f8e6d" title="Create a filtered property list from a file.">uves_propertylist_load_regexp()</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l05449">5449</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>References <a class="el" href="uves__propertylist_8c_source.html#l00858">uves_propertylist_delete()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l00772">uves_propertylist_new()</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__midas__def_8c_source.html#l03795">flames_midas_sccget()</a>, <a class="el" href="flames__midas__def_8c_source.html#l02112">flames_midas_scfinf()</a>, <a class="el" href="flames__utl__unpack_8c_source.html#l00225">flames_utl_unpack()</a>, <a class="el" href="flames__midas__def_8c_source.html#l01170">load_frame()</a>, <a class="el" href="flames__midas__def_8c_source.html#l00878">load_header()</a>, <a class="el" href="uves__response-test_8c_sourc [...]
-
-</div>
-</div>
-<a class="anchor" id="ga795683c7baa3ddfc26959339e90f8e6d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a>* uves_propertylist_load_regexp </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>position</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>regexp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>invert</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create a filtered property list from a file. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">name</td><td>Name of the input file. </td></tr>
-    <tr><td class="paramname">position</td><td>Index of the data set to read. </td></tr>
-    <tr><td class="paramname">regexp</td><td>Regular expression used to filter properties. </td></tr>
-    <tr><td class="paramname">invert</td><td>Flag inverting the sense of matching property names.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The function returns the newly created property list or <code>NULL</code> if an error occurred.</dd></dl>
-<table  class="ec" align="center">
-<tr>
-<td class="ecl">CPL_ERROR_NULL_INPUT </td><td class="ecr">The parameter <em>name</em> or the parameter <em>regexp</em> is a <code>NULL</code> pointer.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_ILLEGAL_INPUT </td><td class="ecr">The <em>position</em> is less than 0, the properties cannot be read from the file <em>name</em>, or <em>regexp</em> is not a valid extended regular expression.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_FILE_IO </td><td class="ecr">The file <em>name</em> does not exist.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_BAD_FILE_FORMAT </td><td class="ecr">The file <em>name</em> is not a valid FITS file.   </td></tr>
-<tr>
-<td class="ecl">CPL_ERROR_DATA_NOT_FOUND </td><td class="ecr">The requested data set at index <em>position</em> does not exist.   </td></tr>
-</table>
-<p>The function reads all properties of the data set with index <em>position</em> with matching names from the file <em>name</em>. If the flag <em>invert</em> is zero, all properties whose names match the regular expression <em>regexp</em> are read. If <em>invert</em> is set to a non-zero value, all properties with names not matching <em>regexp</em> are read rather. The function expects POSIX 1003.2 compliant extended regular expressions.</p>
-<p>Currently only the FITS file format is supported. The property list is created by reading the FITS keywords from extension <em>position</em>. The numbering of the data sections starts from 0.</p>
-<p>When creating the property list from a FITS header, any keyword without a value like undefined keywords for instance are not transformed into a property. FITS format specific keyword prefixes (e.g. <code>HIERARCH</code>) must not be part of the given pattern string <em>regexp</em>, but only the actual FITS keyword name may be given.</p>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load()</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l05596">5596</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-
-<p>References <a class="el" href="uves__propertylist_8c_source.html#l00858">uves_propertylist_delete()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l00772">uves_propertylist_new()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__qclog.html b/html/group__uves__qclog.html
deleted file mode 100644
index a328c7e..0000000
--- a/html/group__uves__qclog.html
+++ /dev/null
@@ -1,1023 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Interface for reading/writing QC LOG keywords.</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Interface for reading/writing QC LOG keywords.</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga18caeeaa4c1ba5d2cb2062fab6a56121"><td class="memItemLeft" align="right" valign="top">static FILE * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#ga18caeeaa4c1ba5d2cb2062fab6a56121">uves_paf_print_header</a> (const char *filename, const char *paf_id, const char *paf_desc, const char *login_name, const char *datetime)</td></tr>
-<tr class="memdesc:ga18caeeaa4c1ba5d2cb2062fab6a56121"><td class="mdescLeft"> </td><td class="mdescRight">Open a new PAF file, output a default header.  <a href="#ga18caeeaa4c1ba5d2cb2062fab6a56121"></a><br/></td></tr>
-<tr class="memitem:gaee7a0d27a947e1e0b3e8d0f94b5c3dff"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#gaee7a0d27a947e1e0b3e8d0f94b5c3dff">uves_get_rootname</a> (const char *filename)</td></tr>
-<tr class="memdesc:gaee7a0d27a947e1e0b3e8d0f94b5c3dff"><td class="mdescLeft"> </td><td class="mdescRight">computes rootname  <a href="#gaee7a0d27a947e1e0b3e8d0f94b5c3dff"></a><br/></td></tr>
-<tr class="memitem:ga315583aa3196da7e1648ec9203837279"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#ga315583aa3196da7e1648ec9203837279">uves_get_paf_name</a> (const char *in, int paf_no, char **paf)</td></tr>
-<tr class="memdesc:ga315583aa3196da7e1648ec9203837279"><td class="mdescLeft"> </td><td class="mdescRight">get paf file name  <a href="#ga315583aa3196da7e1648ec9203837279"></a><br/></td></tr>
-<tr class="memitem:gaff1f9eaf65f4225d2dd01f635a1ac49c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c">uves_blank2dot</a> (const char *in, char *ou)</td></tr>
-<tr class="memdesc:gaff1f9eaf65f4225d2dd01f635a1ac49c"><td class="mdescLeft"> </td><td class="mdescRight">replace a blank to a dot  <a href="#gaff1f9eaf65f4225d2dd01f635a1ac49c"></a><br/></td></tr>
-<tr class="memitem:ga4db1dc810fc251a2bebba5ddf8dc0ddc"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#ga4db1dc810fc251a2bebba5ddf8dc0ddc">uves_save_paf</a> (const char *filename, int paf_no, const char *rec_id, const cpl_table *qclog, <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const <a class="el" href="group__uves [...]
-<tr class="memdesc:ga4db1dc810fc251a2bebba5ddf8dc0ddc"><td class="mdescLeft"> </td><td class="mdescRight">Init QC-LOG table.  <a href="#ga4db1dc810fc251a2bebba5ddf8dc0ddc"></a><br/></td></tr>
-<tr class="memitem:ga1f5820862cbc6db753cd48235a97f1e2"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2">uves_qclog_init</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, enum uves_chip chip)</td></tr>
-<tr class="memdesc:ga1f5820862cbc6db753cd48235a97f1e2"><td class="mdescLeft"> </td><td class="mdescRight">Init QC-LOG table.  <a href="#ga1f5820862cbc6db753cd48235a97f1e2"></a><br/></td></tr>
-<tr class="memitem:ga46dcd316a20220290a5e6f4c8217fd16"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16">uves_qclog_add_int</a> (cpl_table *table, const char *key_name, const int value, const char *key_help, const char *format)</td></tr>
-<tr class="memdesc:ga46dcd316a20220290a5e6f4c8217fd16"><td class="mdescLeft"> </td><td class="mdescRight">Add integer key to QC-LOG table.  <a href="#ga46dcd316a20220290a5e6f4c8217fd16"></a><br/></td></tr>
-<tr class="memitem:ga13ef561d5d2f87bb90450c21ffcf221e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#ga13ef561d5d2f87bb90450c21ffcf221e">uves_qclog_add_bool</a> (cpl_table *table, const char *key_name, const char value, const char *key_help, const char *format)</td></tr>
-<tr class="memdesc:ga13ef561d5d2f87bb90450c21ffcf221e"><td class="mdescLeft"> </td><td class="mdescRight">Add boolean key to QC-LOG table.  <a href="#ga13ef561d5d2f87bb90450c21ffcf221e"></a><br/></td></tr>
-<tr class="memitem:ga9b27f428bd465c6b4db422a793067e67"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#ga9b27f428bd465c6b4db422a793067e67">uves_qclog_add_float</a> (cpl_table *table, const char *key_name, const float value, const char *key_help, const char *format)</td></tr>
-<tr class="memdesc:ga9b27f428bd465c6b4db422a793067e67"><td class="mdescLeft"> </td><td class="mdescRight">Add float key to QC-LOG table.  <a href="#ga9b27f428bd465c6b4db422a793067e67"></a><br/></td></tr>
-<tr class="memitem:ga00d5aef00d604b9915036c03cae31b64"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64">uves_qclog_add_double</a> (cpl_table *table, const char *key_name, const double value, const char *key_help, const char *format)</td></tr>
-<tr class="memdesc:ga00d5aef00d604b9915036c03cae31b64"><td class="mdescLeft"> </td><td class="mdescRight">Add double key to QC-LOG table.  <a href="#ga00d5aef00d604b9915036c03cae31b64"></a><br/></td></tr>
-<tr class="memitem:ga7e1e7665df98839bdc2a873f82b71fc3"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3">uves_qclog_add_string</a> (cpl_table *table, const char *key_name, const char *value, const char *key_help, const char *format)</td></tr>
-<tr class="memdesc:ga7e1e7665df98839bdc2a873f82b71fc3"><td class="mdescLeft"> </td><td class="mdescRight">Add string key to QC-LOG table.  <a href="#ga7e1e7665df98839bdc2a873f82b71fc3"></a><br/></td></tr>
-<tr class="memitem:gaa539e5d75f0e2bfabfc82b3ae4ec59f3"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3">uves_qclog_delete</a> (cpl_table **table)</td></tr>
-<tr class="memdesc:gaa539e5d75f0e2bfabfc82b3ae4ec59f3"><td class="mdescLeft"> </td><td class="mdescRight">delete QC-LOG table  <a href="#gaa539e5d75f0e2bfabfc82b3ae4ec59f3"></a><br/></td></tr>
-<tr class="memitem:gaed8104b6319a79c1e9513a9aaf140a65"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#gaed8104b6319a79c1e9513a9aaf140a65">uves_pfits_put_qc</a> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const cpl_table *qclog)</td></tr>
-<tr class="memdesc:gaed8104b6319a79c1e9513a9aaf140a65"><td class="mdescLeft"> </td><td class="mdescRight">Add QC-LOG to FITS header.  <a href="#gaed8104b6319a79c1e9513a9aaf140a65"></a><br/></td></tr>
-<tr class="memitem:gaf6a3fc6cf06a17550bd0320603287ace"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#gaf6a3fc6cf06a17550bd0320603287ace">uves_qclog_add_sci</a> (cpl_table *qclog, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, const cpl_image *raw_image, double slit, const cpl_table *info_tbl)</td></tr>
-<tr class="memdesc:gaf6a3fc6cf06a17550bd0320603287ace"><td class="mdescLeft"> </td><td class="mdescRight">Write QC parameters related to science reduction.  <a href="#gaf6a3fc6cf06a17550bd0320603287ace"></a><br/></td></tr>
-<tr class="memitem:ga66d1b116b78a6302ce5a2bb2d00c5d41"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#ga66d1b116b78a6302ce5a2bb2d00c5d41">uves_qclog_add_common_wave</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, enum uves_chip chip, cpl_table *qclog)</td></tr>
-<tr class="memdesc:ga66d1b116b78a6302ce5a2bb2d00c5d41"><td class="mdescLeft"> </td><td class="mdescRight">Write common QC parameters.  <a href="#ga66d1b116b78a6302ce5a2bb2d00c5d41"></a><br/></td></tr>
-<tr class="memitem:ga6dd3d2c8c84269547ca6bb213c2ab60b"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b">uves_qclog_get_qc_name</a> (const char *name, bool flames, int trace_number)</td></tr>
-<tr class="memdesc:ga6dd3d2c8c84269547ca6bb213c2ab60b"><td class="mdescLeft"> </td><td class="mdescRight">Create QC parameter name.  <a href="#ga6dd3d2c8c84269547ca6bb213c2ab60b"></a><br/></td></tr>
-<tr class="memitem:gadb993bcb25e5b1537f17d17c2fb27684"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#gadb993bcb25e5b1537f17d17c2fb27684">uves_qclog_dump_common</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip, cpl_table *qclog)</td></tr>
-<tr class="memdesc:gadb993bcb25e5b1537f17d17c2fb27684"><td class="mdescLeft"> </td><td class="mdescRight">Create common QC log.  <a href="#gadb993bcb25e5b1537f17d17c2fb27684"></a><br/></td></tr>
-<tr class="memitem:ga2e1dbad185cd0eeceb6512e9c9d865fb"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog.html#ga2e1dbad185cd0eeceb6512e9c9d865fb">uves_qclog_dump_common_wave</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, enum uves_chip chip, cpl_table *qclog)</td></tr>
-<tr class="memdesc:ga2e1dbad185cd0eeceb6512e9c9d865fb"><td class="mdescLeft"> </td><td class="mdescRight">Create common QC log.  <a href="#ga2e1dbad185cd0eeceb6512e9c9d865fb"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga18caeeaa4c1ba5d2cb2062fab6a56121"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static FILE * uves_paf_print_header </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>paf_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>paf_desc</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>login_name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>datetime</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Open a new PAF file, output a default header. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the file to create. </td></tr>
-    <tr><td class="paramname">paf_id</td><td>PAF identificator. </td></tr>
-    <tr><td class="paramname">paf_desc</td><td>PAF description. </td></tr>
-    <tr><td class="paramname">login_name</td><td>Login name </td></tr>
-    <tr><td class="paramname">datetime</td><td>Date </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Opened file pointer.</dd></dl>
-<p>This function creates a new PAF file with the requested file name. If another file already exists with the same name, it will be overwritten (if the file access rights allow it).</p>
-<p>A default header is produced according to the VLT DICB standard. You need to provide an identificator (paf_id) of the producer of the file. Typically, something like "ISAAC/zero_point".</p>
-<p>The PAF description (paf_desc) is meant for humans. Typically, something like "Zero point computation results".</p>
-<p>This function returns an opened file pointer, ready to receive more data through fprintf's. The caller is responsible for fclose()ing the file. </p>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00101">101</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00064">uves_msg_error</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l00225">uves_save_paf()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaee7a0d27a947e1e0b3e8d0f94b5c3dff"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* uves_get_rootname </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>computes rootname </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>name of file </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>rootname of filename </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00137">137</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l00165">uves_get_paf_name()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga315583aa3196da7e1648ec9203837279"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_get_paf_name </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>in</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>paf_no</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char ** </td>
-          <td class="paramname"><em>paf</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>get paf file name </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">in</td><td>product name </td></tr>
-    <tr><td class="paramname">paf_no</td><td>paf file number </td></tr>
-    <tr><td class="paramname">paf</td><td>output paf file name </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00165">165</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>References <a class="el" href="uves__qclog_8c_source.html#l00137">uves_get_rootname()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l00225">uves_save_paf()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaff1f9eaf65f4225d2dd01f635a1ac49c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_blank2dot </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>in</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>ou</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>replace a blank to a dot </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">in</td><td>input string </td></tr>
-    <tr><td class="paramname">ou</td><td>output string </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00189">189</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog_8c_source.html#l00225">uves_save_paf()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4db1dc810fc251a2bebba5ddf8dc0ddc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_save_paf </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>paf_no</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>rec_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>qclog</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>rhead</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>pro_catg</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Init QC-LOG table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>input filename. This is the filename of the associated recipe product </td></tr>
-    <tr><td class="paramname">paf_no</td><td>paf file number, counting from zero. The paf filename is created from the 'filename' and from this number. (This is to support several paf files for one recipe product). </td></tr>
-    <tr><td class="paramname">rec_id</td><td>input recipe id </td></tr>
-    <tr><td class="paramname">qclog</td><td>QC parameters table </td></tr>
-    <tr><td class="paramname">plist</td><td>property list </td></tr>
-    <tr><td class="paramname">rhead</td><td>reference frame header </td></tr>
-    <tr><td class="paramname">pro_catg</td><td>product category </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>a cpl_table with 0 rows and proper structure to do hold QC-LOG keys </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00225">225</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>References <a class="el" href="uves__qclog_8c_source.html#l00189">uves_blank2dot()</a>, <a class="el" href="uves__time_8c_source.html#l00118">uves_get_datetime_iso8601()</a>, <a class="el" href="uves__qclog_8c_source.html#l00165">uves_get_paf_name()</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00064">uves_msg_error</a>, <a class="el" href="uves__qclog_8c_source.html#l00101">uves_paf_print_header()</a>, <a class=" [...]
-
-</div>
-</div>
-<a class="anchor" id="ga1f5820862cbc6db753cd48235a97f1e2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* uves_qclog_init </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Init QC-LOG table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_header</td><td>input FITS header </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>a cpl_table with proper structure to do hold QC-LOG keys and QC parameters common to all recipes </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00410">410</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, <a class="el" href="uves__pfits_8c_source.html#l01282">uves_pfits_get_binx()</a>, <a class="el" href="uves__pfits_8c_source.html#l01300">uves_pfits_get_biny()</a>, <a class="el" href="uves__pfits_8c_source.html#l00767">uves_pfits_get_chip_name()</a>, <a clas [...]
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00610">uves_reduce_mflat()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga46dcd316a20220290a5e6f4c8217fd16"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_qclog_add_int </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key_name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key_help</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>format</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Add integer key to QC-LOG table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">table</td><td>QC-LOG table </td></tr>
-    <tr><td class="paramname">key_name</td><td>QC-LOG key name </td></tr>
-    <tr><td class="paramname">value</td><td>QC-LOG key value </td></tr>
-    <tr><td class="paramname">key_help</td><td>QC-LOG key help </td></tr>
-    <tr><td class="paramname">format</td><td>QC-LOG key format</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 after successfull keyword addition </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00521">521</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l01071">uves_mflat_qclog()</a>, <a class="el" href="uves__qclog_8c_source.html#l00803">uves_qclog_add_sci()</a>, <a class="el" href="uves__qclog_8c_source.html#l00410">uves_qclog_init()</a>, <a class="el" href="uves__wavecal__identify_8c_source.html#l00238">uves_wavecal_identify()</a>, and <a class="el" href="uves__wavecal__search_8c_source.html#l00199">uves_wavecal_search()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga13ef561d5d2f87bb90450c21ffcf221e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_qclog_add_bool </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key_name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key_help</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>format</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Add boolean key to QC-LOG table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">table</td><td>QC-LOG table </td></tr>
-    <tr><td class="paramname">key_name</td><td>QC-LOG key name </td></tr>
-    <tr><td class="paramname">value</td><td>QC-LOG key value </td></tr>
-    <tr><td class="paramname">key_help</td><td>QC-LOG key help </td></tr>
-    <tr><td class="paramname">format</td><td>QC-LOG key format</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 after successfull keyword addition </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00561">561</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga9b27f428bd465c6b4db422a793067e67"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_qclog_add_float </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key_name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const float </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key_help</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>format</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Add float key to QC-LOG table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">table</td><td>QC-LOG table </td></tr>
-    <tr><td class="paramname">key_name</td><td>QC-LOG key name </td></tr>
-    <tr><td class="paramname">value</td><td>QC-LOG key value </td></tr>
-    <tr><td class="paramname">key_help</td><td>QC-LOG key help </td></tr>
-    <tr><td class="paramname">format</td><td>QC-LOG key format</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 after successfull keyword addition </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00600">600</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga00d5aef00d604b9915036c03cae31b64"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_qclog_add_double </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key_name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key_help</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>format</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Add double key to QC-LOG table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">table</td><td>QC-LOG table </td></tr>
-    <tr><td class="paramname">key_name</td><td>QC-LOG key name </td></tr>
-    <tr><td class="paramname">value</td><td>QC-LOG key value </td></tr>
-    <tr><td class="paramname">key_help</td><td>QC-LOG key help </td></tr>
-    <tr><td class="paramname">format</td><td>QC-LOG key format</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 after successfull keyword addition </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00641">641</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__scired_8c_source.html#l02166">tflat_qclog()</a>, <a class="el" href="uves__qclog_8c_source.html#l00942">uves_qclog_add_common_wave()</a>, <a class="el" href="uves__qclog_8c_source.html#l00803">uves_qclog_add_sci()</a>, <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>, <a class="el" href="uves__qclog_8c_source.html#l01166">uves_qclog_dump_common_wave()</a>, and <a class="el" href="uves__wavecal__identify [...]
-
-</div>
-</div>
-<a class="anchor" id="ga7e1e7665df98839bdc2a873f82b71fc3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_qclog_add_string </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key_name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key_help</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>format</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Add string key to QC-LOG table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">table</td><td>QC-LOG table </td></tr>
-    <tr><td class="paramname">key_name</td><td>QC-LOG key name </td></tr>
-    <tr><td class="paramname">value</td><td>QC-LOG key value </td></tr>
-    <tr><td class="paramname">key_help</td><td>QC-LOG key help </td></tr>
-    <tr><td class="paramname">format</td><td>QC-LOG key format</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 after successfull keyword addition </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00683">683</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__scired_8c_source.html#l02131">scired_qclog()</a>, <a class="el" href="uves__reduce__scired_8c_source.html#l02166">tflat_qclog()</a>, <a class="el" href="uves__reduce__mflat_8c_source.html#l01071">uves_mflat_qclog()</a>, <a class="el" href="uves__qclog_8c_source.html#l01009">uves_qclog_dump_common()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00410">uves_qclog_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa539e5d75f0e2bfabfc82b3ae4ec59f3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_qclog_delete </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>table</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>delete QC-LOG table </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">table</td><td>QC-LOG table </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 after successfull delete </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00716">716</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00610">uves_reduce_mflat()</a>, <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00348">uves_reduce_mflat_combine()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaed8104b6319a79c1e9513a9aaf140a65"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_pfits_put_qc </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>qclog</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Add QC-LOG to FITS header. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>propertylist (FITS header) </td></tr>
-    <tr><td class="paramname">qclog</td><td>QC-LOG table </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 after successfull keywords addition, -1 if not </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00735">735</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00064">uves_msg_error</a>, <a class="el" href="uves__propertylist_8c_source.html#l01045">uves_propertylist_contains()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l01153">uves_propertylist_set_comment()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf6a3fc6cf06a17550bd0320603287ace"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_qclog_add_sci </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>qclog</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>raw_image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>slit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>info_tbl</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write QC parameters related to science reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">qclog</td><td>QC table to write to </td></tr>
-    <tr><td class="paramname">raw_header</td><td>input frame FITS header </td></tr>
-    <tr><td class="paramname">raw_image</td><td>input science image </td></tr>
-    <tr><td class="paramname">slit</td><td>extraction slit length (pixels) </td></tr>
-    <tr><td class="paramname">info_tbl</td><td>containing the previously computed parameters </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00803">803</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__baryvel_8c_source.html#l00120">uves_baryvel()</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__qclog_8c_source.html#l00641">uves_qclog_add_double()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00521">uves_qclog_add_int()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__scired_8c_source.html#l02131">scired_qclog()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga66d1b116b78a6302ce5a2bb2d00c5d41"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_qclog_add_common_wave </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>qclog</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write common QC parameters. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_header</td><td>raw frame FITS header </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-    <tr><td class="paramname">qclog</td><td>QC table to write to</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>This function writes some QC parameters which are common for several recipes/QC-tests. </p>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00942">942</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__pfits_8c_source.html#l01457">uves_pfits_get_gratwlen()</a>, <a class="el" href="uves__pfits_8c_source.html#l01590">uves_pfits_get_slitwidth()</a>, <a class="el" href="uves__pfits_8c_source.html#l01419">uves_pfits_get_tempcam()</a>, <a class="el" href="uves__qclog_8c_source.html#l00641">uves_qclog_add_double()</a>, and <a class="el" href="uves__utils_8c_source.html#l03609">uves_ [...]
-
-</div>
-</div>
-<a class="anchor" id="ga6dd3d2c8c84269547ca6bb213c2ab60b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_qclog_get_qc_name </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>flames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>trace_number</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create QC parameter name. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">name</td><td>last part of QC name </td></tr>
-    <tr><td class="paramname">flames</td><td>FLAMES? </td></tr>
-    <tr><td class="paramname">trace_number</td><td>for FLAMES only </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>newly allocated QC name string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l00985">985</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__qclog-test_8c_source.html#l00082">test_qc_name()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadb993bcb25e5b1537f17d17c2fb27684"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_qclog_dump_common </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>qclog</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create common QC log. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">name</td><td>last part of QC name </td></tr>
-    <tr><td class="paramname">flames</td><td>FLAMES? </td></tr>
-    <tr><td class="paramname">trace_number</td><td>for FLAMES only </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>newly allocated QC name string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l01009">1009</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__pfits_8c_source.html#l00400">uves_pfits_get_arcfile()</a>, <a class="el" href="uves__pfits_8c_source.html#l01282">uves_pfits_get_binx()</a>, <a class="el" href="uves__pfits_8c_source.html#l01300">uves_pfits_get_biny()</a>, <a class="el" href="uves__pfits_8c_source.html#l00747">uves_pfits_get_chipid()</a>, <a class="el" href="uves__pfits_8c_source.html#l00568">uves_pfits_get_dpr [...]
-
-</div>
-</div>
-<a class="anchor" id="ga2e1dbad185cd0eeceb6512e9c9d865fb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_qclog_dump_common_wave </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>qclog</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create common QC log. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">name</td><td>last part of QC name </td></tr>
-    <tr><td class="paramname">flames</td><td>FLAMES? </td></tr>
-    <tr><td class="paramname">trace_number</td><td>for FLAMES only </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>newly allocated QC name string </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__qclog_8c_source.html#l01166">1166</a> of file <a class="el" href="uves__qclog_8c_source.html">uves_qclog.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__pfits_8c_source.html#l01457">uves_pfits_get_gratwlen()</a>, <a class="el" href="uves__pfits_8c_source.html#l01590">uves_pfits_get_slitwidth()</a>, <a class="el" href="uves__pfits_8c_source.html#l01419">uves_pfits_get_tempcam()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00641">uves_qclog_add_double()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__qclog__test.html b/html/group__uves__qclog__test.html
deleted file mode 100644
index dd3585a..0000000
--- a/html/group__uves__qclog__test.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: UVES qclog unit tests</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">UVES qclog unit tests</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gaf1c56ce99831ec1d5b6a82019609f9bd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf1c56ce99831ec1d5b6a82019609f9bd"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog__test.html#gaf1c56ce99831ec1d5b6a82019609f9bd">test_qc_name</a> (void)</td></tr>
-<tr class="memdesc:gaf1c56ce99831ec1d5b6a82019609f9bd"><td class="mdescLeft"> </td><td class="mdescRight">test QC name <br/></td></tr>
-<tr class="memitem:ga840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga840291bc02cba5474a4cb46a9b9566fe"></a>
-int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__qclog__test.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
-<tr class="memdesc:ga840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft"> </td><td class="mdescRight">Test of uves_qclog. <br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__rebin.html b/html/group__uves__rebin.html
deleted file mode 100644
index 1b5d35f..0000000
--- a/html/group__uves__rebin.html
+++ /dev/null
@@ -1,408 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Substep: Rebinning</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Substep: Rebinning</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga9746917b2a07e3ede927b28ad927d6ca"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__rebin.html#ga9746917b2a07e3ede927b28ad927d6ca">integrate_flux</a> (const double *spectrum_data_double, const float *spectrum_data_float, const int *spectrum_data_int, const cpl_binary *spectrum_bad, int spectrum_row, int nx, double x_min, double x_max, bool threshold_to_positive, bool *i [...]
-<tr class="memdesc:ga9746917b2a07e3ede927b28ad927d6ca"><td class="mdescLeft"> </td><td class="mdescRight">Integrate flux.  <a href="#ga9746917b2a07e3ede927b28ad927d6ca"></a><br/></td></tr>
-<tr class="memitem:ga0f756f87f2bfbf7797c348ae30d77494"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__rebin.html#ga0f756f87f2bfbf7797c348ae30d77494">integrate_noise</a> (const double *spectrum_data_double, const float *spectrum_data_float, const int *spectrum_data_int, const cpl_binary *spectrum_bad, int spectrum_row, int nx, double x_min, double x_max, bool threshold_to_positive, bool * [...]
-<tr class="memdesc:ga0f756f87f2bfbf7797c348ae30d77494"><td class="mdescLeft"> </td><td class="mdescRight">Integrate variance.  <a href="#ga0f756f87f2bfbf7797c348ae30d77494"></a><br/></td></tr>
-<tr class="memitem:gad96c455875e2415225b27a3280516c0c"><td class="memItemLeft" align="right" valign="top">cpl_parameterlist * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__rebin.html#gad96c455875e2415225b27a3280516c0c">uves_rebin_define_parameters</a> (void)</td></tr>
-<tr class="memdesc:gad96c455875e2415225b27a3280516c0c"><td class="mdescLeft"> </td><td class="mdescRight">Define recipe parameters used for rebinning.  <a href="#gad96c455875e2415225b27a3280516c0c"></a><br/></td></tr>
-<tr class="memitem:gaf5ceddc54f64c88b3f06ebbc11655c1c"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c">uves_rebin</a> (const cpl_image *spectrum, const cpl_parameterlist *parameters, const char *context, const cpl_table *linetable, const <a class="el" href="struct__polynomial.html">polynomial</a> *dispersion_relation, int first_abs_order, int l [...]
-<tr class="memdesc:gaf5ceddc54f64c88b3f06ebbc11655c1c"><td class="mdescLeft"> </td><td class="mdescRight">Rebin a spectrum.  <a href="#gaf5ceddc54f64c88b3f06ebbc11655c1c"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>Resample a spectrum in (pixel, order)-space to achieve a spectrum in (wavelength, order)-space </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga9746917b2a07e3ede927b28ad927d6ca"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double integrate_flux </td>
-          <td>(</td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>spectrum_data_double</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const float * </td>
-          <td class="paramname"><em>spectrum_data_float</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>spectrum_data_int</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_binary * </td>
-          <td class="paramname"><em>spectrum_bad</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>spectrum_row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x_min</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x_max</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>threshold_to_positive</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool * </td>
-          <td class="paramname"><em>is_bad</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Integrate flux. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">spectrum_data_double</td><td>Input spectrum data buffer as double or float, or int, other must be NULL </td></tr>
-    <tr><td class="paramname">spectrum_data_float</td><td>Input spectrum data buffer as double or float, or int, other must be NULL </td></tr>
-    <tr><td class="paramname">spectrum_data_int</td><td>Input spectrum data buffer as double or float, or int, other must be NULL </td></tr>
-    <tr><td class="paramname">spectrum_bad</td><td>Input spectrum bad pixel map </td></tr>
-    <tr><td class="paramname">spectrum_row</td><td>Current row of input spectrum </td></tr>
-    <tr><td class="paramname">nx</td><td>Input image width </td></tr>
-    <tr><td class="paramname">x_min</td><td>Start of integration interval (FITS coordinate in [0.5 ; nx+0.5]) </td></tr>
-    <tr><td class="paramname">x_max</td><td>End of integration interval (FITS coordinate in [0.5 ; nx+0.5]) </td></tr>
-    <tr><td class="paramname">threshold_to_positive</td><td>enforce a positive result? </td></tr>
-    <tr><td class="paramname">is_bad</td><td>(output) Flag indicating if there were only bad pixels in the specified interval </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Integrated flux</dd></dl>
-<p>This function integrates the flux in a way that conserves the total flux (i.e. using a flux-conserving interpolant) </p>
-
-<p>Definition at line <a class="el" href="uves__rebin_8c_source.html#l00825">825</a> of file <a class="el" href="uves__rebin_8c_source.html">uves_rebin.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__rebin_8c_source.html#l00348">uves_rebin()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0f756f87f2bfbf7797c348ae30d77494"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double integrate_noise </td>
-          <td>(</td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>spectrum_data_double</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const float * </td>
-          <td class="paramname"><em>spectrum_data_float</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>spectrum_data_int</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_binary * </td>
-          <td class="paramname"><em>spectrum_bad</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>spectrum_row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x_min</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x_max</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>threshold_to_positive</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool * </td>
-          <td class="paramname"><em>is_bad</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Integrate variance. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">spectrum_data_double</td><td>Input spectrum data buffer as double or float, or int, other must be NULL </td></tr>
-    <tr><td class="paramname">spectrum_data_float</td><td>Input spectrum data buffer as double or float, or int, other must be NULL </td></tr>
-    <tr><td class="paramname">spectrum_data_int</td><td>Input spectrum data buffer as double or float, or int, other must be NULL </td></tr>
-    <tr><td class="paramname">spectrum_bad</td><td>Input spectrum bad pixel map </td></tr>
-    <tr><td class="paramname">spectrum_row</td><td>Current row of input spectrum </td></tr>
-    <tr><td class="paramname">nx</td><td>Input image width </td></tr>
-    <tr><td class="paramname">x_min</td><td>Start of integration interval (FITS coordinate in [0.5 ; nx+0.5]) </td></tr>
-    <tr><td class="paramname">x_max</td><td>End of integration interval (FITS coordinate in [0.5 ; nx+0.5]) </td></tr>
-    <tr><td class="paramname">threshold_to_positive</td><td>enforce a positive result? </td></tr>
-    <tr><td class="paramname">is_bad</td><td>(output) Flag indicating if there were only bad pixels in the specified interval </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Integrated flux</dd></dl>
-<p>This function integrates the flux in a way that conserves the total flux (i.e. using a flux-conserving interpolant) </p>
-
-<p>Definition at line <a class="el" href="uves__rebin_8c_source.html#l01053">1053</a> of file <a class="el" href="uves__rebin_8c_source.html">uves_rebin.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__rebin_8c_source.html#l00348">uves_rebin()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad96c455875e2415225b27a3280516c0c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_parameterlist* uves_rebin_define_parameters </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Define recipe parameters used for rebinning. </p>
-<dl class="section return"><dt>Returns:</dt><dd>The parameters for this step</dd></dl>
-<p>The parameters defined are wavestep, scale. See source code or 'esorex –man-page' for a description of each parameter. </p>
-
-<p>Definition at line <a class="el" href="uves__rebin_8c_source.html#l00245">245</a> of file <a class="el" href="uves__rebin_8c_source.html">uves_rebin.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf5ceddc54f64c88b3f06ebbc11655c1c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_rebin </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>context</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>linetable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>dispersion_relation</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>first_abs_order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>last_abs_order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>n_traces</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>threshold_to_positive</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>is_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>rebinned_header</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Rebin a spectrum. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">spectrum</td><td>Input spectrum in (x, order) space </td></tr>
-    <tr><td class="paramname">parameters</td><td>The parameters used for rebinning. Add parameters by calling <code>uves_propagate_parameters_step()</code> from the <code>recipe_create()</code> function </td></tr>
-    <tr><td class="paramname">context</td><td>Use <em>parameters</em> belonging to this context </td></tr>
-    <tr><td class="paramname">linetable</td><td>The linetable. Used to read the average pixel size, when the wavelength step is not specified. </td></tr>
-    <tr><td class="paramname">dispersion_relation</td><td>The dispersion relation in the form lambda.m = f(x,m), where m is the absolute order number </td></tr>
-    <tr><td class="paramname">first_abs_order</td><td>Absolute order number of row number 1 in the spectrum image </td></tr>
-    <tr><td class="paramname">last_abs_order</td><td>Absolute order number of the highest row in the spectrum image </td></tr>
-    <tr><td class="paramname">n_traces</td><td>Number of traces per order (equal to 1, or more if 2d extraction) </td></tr>
-    <tr><td class="paramname">threshold_to_positive</td><td>if true, negative values are set to 'infinity'. This makes sense for the error bar spectrum, which may become negative due to the interpolation profile used, even if the input is positive. In this context 'infinity' is defined as the maximum value of all other pixels </td></tr>
-    <tr><td class="paramname">rebinned_header</td><td>(output) Header with keywords defining the wavelengths of the first column in the rebinned image </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Rebinned spectrum in (lambda, order) space. Same type (float/double) as input</dd></dl>
-<p>This function rebins each order of an extracted spectrum according to the relation <em>N_lambda</em> = <em>N_x</em> * |d <em>x/d</em> (<em>lambda</em>)| where <em>N_x</em> and <em>N_lambda</em> are the flux intensities per pixel and wavelength, respectively.</p>
-<p>The conversion factor |d <em>x</em> / d (<em>lambda</em>)| can be switched on/off by (un-)setting the corresponding parameter (see <code><a class="el" href="group__uves__rebin.html#gad96c455875e2415225b27a3280516c0c" title="Define recipe parameters used for rebinning.">uves_rebin_define_parameters()</a></code>).</p>
-<p>If the MIDAS flag is set, the resampled spectrum is shifted a random amount (depending on round-off) up to <em>wavestep</em> / 2.</p>
-<p>Bad pixels are taken into account and propagated, and an output bin is marked as bad if no flux (from good pixels) went into that bin. </p>
-
-<p>Definition at line <a class="el" href="uves__rebin_8c_source.html#l00348">348</a> of file <a class="el" href="uves__rebin_8c_source.html">uves_rebin.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__rebin_8c_source.html#l00825">integrate_flux()</a>, <a class="el" href="uves__rebin_8c_source.html#l01053">integrate_noise()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__utils_8c_source.html [...]
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__redchain.html b/html/group__uves__redchain.html
deleted file mode 100644
index f05cd63..0000000
--- a/html/group__uves__redchain.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: Reduction Chain</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Recipe: Reduction Chain</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>This recipe executes a reduction chain. See man-page for details. </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__reduce.html b/html/group__uves__reduce.html
deleted file mode 100644
index 6990b3c..0000000
--- a/html/group__uves__reduce.html
+++ /dev/null
@@ -1,1416 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Substep: Reduce</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#define-members">Macros</a> |
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Substep: Reduce</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
-Macros</h2></td></tr>
-<tr class="memitem:ga71c448c05cf468088ab8d5a10e31c0ed"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga71c448c05cf468088ab8d5a10e31c0ed"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>UVES_MIN_LINE_ROWS_TO_MAKE_FIT</b>   5</td></tr>
-<tr class="memitem:gad468625ee13cf6a664139550c3b65436"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gad468625ee13cf6a664139550c3b65436"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>UVES_BLAZE_DUMMY_VAL</b>   999.</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga94e58008d7821520c65b64f3f0bedca6"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6">extract_ff_rebin_merge</a> (cpl_image *back_subbed, cpl_image *backsubbed_noise, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *backsubbed_header, const cpl_image  [...]
-<tr class="memdesc:ga94e58008d7821520c65b64f3f0bedca6"><td class="mdescLeft"> </td><td class="mdescRight">Reduce one extraction window.  <a href="#ga94e58008d7821520c65b64f3f0bedca6"></a><br/></td></tr>
-<tr class="memitem:gad5574e8fead13bd32bd46eb60ca091ac"><td class="memItemLeft" align="right" valign="top">static cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce.html#gad5574e8fead13bd32bd46eb60ca091ac">subtract_sky</a> (cpl_image *rebinned_obj, cpl_image *rebinned_obj_noise, <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *rebinned_obj_header, const cpl_image *rebinned_sky1 [...]
-<tr class="memdesc:gad5574e8fead13bd32bd46eb60ca091ac"><td class="mdescLeft"> </td><td class="mdescRight">Subtract sky from extracted spectrum.  <a href="#gad5574e8fead13bd32bd46eb60ca091ac"></a><br/></td></tr>
-<tr class="memitem:ga26fe47b7ce4f084c5833056dcda44fb5"><td class="memItemLeft" align="right" valign="top">static cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce.html#ga26fe47b7ce4f084c5833056dcda44fb5">subtract_sky_row</a> (cpl_image *obj, cpl_image *obj_noise, double obj_start, double obj_end, double obj_slit, const cpl_image *sky1, const cpl_image *sky1_noise, double sky1_start, double sky1_end, double sky1_slit, const cpl_image *s [...]
-<tr class="memdesc:ga26fe47b7ce4f084c5833056dcda44fb5"><td class="mdescLeft"> </td><td class="mdescRight">Subtract sky from 1 row of spectrum.  <a href="#ga26fe47b7ce4f084c5833056dcda44fb5"></a><br/></td></tr>
-<tr class="memitem:gad6aedc87f04001c793180df5b7edac16"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce.html#gad6aedc87f04001c793180df5b7edac16">get_offset</a> (const cpl_image *back_subbed, const cpl_table *ordertable, const <a class="el" href="struct__polynomial.html">polynomial</a> *order_locations, double search_range, int nsamples, double *doffset)</td></tr>
-<tr class="memdesc:gad6aedc87f04001c793180df5b7edac16"><td class="mdescLeft"> </td><td class="mdescRight">Measure object offset w.r.t. slit center.  <a href="#gad6aedc87f04001c793180df5b7edac16"></a><br/></td></tr>
-<tr class="memitem:ga14f04fabe88e704a3e9fd81e666ed237"><td class="memItemLeft" align="right" valign="top">static cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce.html#ga14f04fabe88e704a3e9fd81e666ed237">uves_get_blaze_ratio</a> (const cpl_image *spectrum, const cpl_image *spectrum_noise)</td></tr>
-<tr class="memdesc:ga14f04fabe88e704a3e9fd81e666ed237"><td class="mdescLeft"> </td><td class="mdescRight">Get (normalized) object to flat-field blaze function ratio.  <a href="#ga14f04fabe88e704a3e9fd81e666ed237"></a><br/></td></tr>
-<tr class="memitem:gaf0fe2418683acd1504f0c2c90c9c417a"><td class="memItemLeft" align="right" valign="top">cpl_parameterlist * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce.html#gaf0fe2418683acd1504f0c2c90c9c417a">uves_reduce_define_parameters</a> (void)</td></tr>
-<tr class="memdesc:gaf0fe2418683acd1504f0c2c90c9c417a"><td class="mdescLeft"> </td><td class="mdescRight">Define recipe parameters used for reducing a frame.  <a href="#gaf0fe2418683acd1504f0c2c90c9c417a"></a><br/></td></tr>
-<tr class="memitem:gad5308bc6e13c7e02e134e6f0ce6be722"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce.html#gad5308bc6e13c7e02e134e6f0ce6be722">uves_reduce</a> (const cpl_image *raw_image, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, const <a class="el" href="group__uves__propertylist.html#ga7fb059a [...]
-<tr class="memdesc:gad5308bc6e13c7e02e134e6f0ce6be722"><td class="mdescLeft"> </td><td class="mdescRight">Reduce a science frame.  <a href="#gad5308bc6e13c7e02e134e6f0ce6be722"></a><br/></td></tr>
-<tr class="memitem:gacf021d0b42c1b02d38ecbff5f3353f54"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce.html#gacf021d0b42c1b02d38ecbff5f3353f54">interpolate_wave</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *dispersion_relation[3], const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07 [...]
-<tr class="memdesc:gacf021d0b42c1b02d38ecbff5f3353f54"><td class="mdescLeft"> </td><td class="mdescRight">1st order line tilt correction  <a href="#gacf021d0b42c1b02d38ecbff5f3353f54"></a><br/></td></tr>
-<tr class="memitem:ga1867e835a6183494d513613729836205"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce.html#ga1867e835a6183494d513613729836205">uves_normalize_spectrum</a> (const cpl_image *spectrum, const cpl_image *spectrum_error, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *spectrum_header, const <a class="el"  [...]
-<tr class="memdesc:ga1867e835a6183494d513613729836205"><td class="mdescLeft"> </td><td class="mdescRight">Normalize a spectrum.  <a href="#ga1867e835a6183494d513613729836205"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module is for reducing a science frame. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga94e58008d7821520c65b64f3f0bedca6"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code extract_ff_rebin_merge </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>back_subbed</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>backsubbed_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>backsubbed_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_flat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>mflat_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>linetable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>linetable_header</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>dispersion_relation</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>slit_length</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>slit_offset</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>window</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>blaze_correct</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>tilt_corr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>debug_mode</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>context</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>mode</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">flatfielding_method </td>
-          <td class="paramname"><em>ff_method</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">extract_method </td>
-          <td class="paramname"><em>ex_method</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">merge_method </td>
-          <td class="paramname"><em>m_method</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>x_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>fx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>cosmic_mask</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>wave_map</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>flatfielded_variance</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>flatfielded_variance_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>resampled_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>resampled_mf</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>merged_sky</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>rebinned_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>rebinned_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>rebinned_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>merged_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>merged_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>merged_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>info_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>order_trace</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Reduce one extraction window. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">back_subbed</td><td>The de-biased, dark subtracted, background subtracted, possibly already flat-fielded image in (pixel, pixel)-space </td></tr>
-    <tr><td class="paramname">backsubbed_noise</td><td>Noise of <em>back_subbed</em> </td></tr>
-    <tr><td class="paramname">backsubbed_header</td><td>FITS header of <em>back_subbed</em> </td></tr>
-    <tr><td class="paramname">master_flat</td><td>The master flat frame. May be NULL if flatfielding is not performed. </td></tr>
-    <tr><td class="paramname">mflat_noise</td><td>Noise of <em>master_flat</em> </td></tr>
-    <tr><td class="paramname">ordertable</td><td>Order table describing the order locations on the raw image </td></tr>
-    <tr><td class="paramname">order_locations</td><td>The polynomial describing the order positions </td></tr>
-    <tr><td class="paramname">linetable</td><td>Line table used for the current extraction window </td></tr>
-    <tr><td class="paramname">linetable_header</td><td>Line table header containing offsets for previously obtained dispersion relations </td></tr>
-    <tr><td class="paramname">dispersion_relation</td><td>The dispersion relations, will be interpolated depending on offset </td></tr>
-    <tr><td class="paramname">slit_length</td><td>Length (in spatial direction, in pixels) of current extraction window. </td></tr>
-    <tr><td class="paramname">slit_offset</td><td>Offset of current extraction window (applies only to linear/average, not optimal/2d extraction) </td></tr>
-    <tr><td class="paramname">window</td><td>Extraction window number. Must be 1, 2, 3, for lower sky, object, upper sky, respectively. Not used in optimal/2d extraction modes. </td></tr>
-    <tr><td class="paramname">chip</td><td>The CCD chip id </td></tr>
-    <tr><td class="paramname">blaze_correct</td><td>Correct (empirically) for the different shapes of object/flat-field blaze function? </td></tr>
-    <tr><td class="paramname">tilt_corr</td><td>Correct for line tilt? If not, the appropriate dispersion solutions are used for object/sky (without interpolation) </td></tr>
-    <tr><td class="paramname">debug_mode</td><td>If true, intermediate results are saved to the current directory </td></tr>
-    <tr><td class="paramname">parameters</td><td>Parameters used for extraction and rebinning. </td></tr>
-    <tr><td class="paramname">context</td><td>Use <em>parameters</em> belonging to this context </td></tr>
-    <tr><td class="paramname">ff_method</td><td>The flat-fielding method. </td></tr>
-    <tr><td class="paramname">ex_method</td><td>Extraction method. </td></tr>
-    <tr><td class="paramname">m_method</td><td>The order merging method. </td></tr>
-    <tr><td class="paramname">x</td><td>(Output) If non-NULL, this will contain the extracted spectrum (recipe product only in 2d mode) </td></tr>
-    <tr><td class="paramname">x_header</td><td>(Output) If non-NULL, the header belonging to <em>x</em> </td></tr>
-    <tr><td class="paramname">fx</td><td>(Output) If non-NULL, the extracted, flat-fielded spectrum (recipe product only in 2d mode) </td></tr>
-    <tr><td class="paramname">cosmic_mask</td><td>(Output) Used only for optimal extraction </td></tr>
-    <tr><td class="paramname">flatfielded_variance</td><td>(Output) If non-NULL, variance of ff. spectrum </td></tr>
-    <tr><td class="paramname">flatfielded_variance_header</td><td>(Output) Header of flatfielded_variance </td></tr>
-    <tr><td class="paramname">resampled_spectrum</td><td>(Output) Extracted + rebinned. Not ff. May be NULL </td></tr>
-    <tr><td class="paramname">resampled_mf</td><td>(Output) Extracted + rebinned master flat-field. May be NULL </td></tr>
-    <tr><td class="paramname">merged_sky</td><td>(Output) For optimal extraction, the merged sky spectrum </td></tr>
-    <tr><td class="paramname">rebinned_spectrum</td><td>(Output) Extracted, flat-fielded, rebinned spectrum </td></tr>
-    <tr><td class="paramname">rebinned_noise</td><td>(Output) Error (1 sigma) of <em>rebinned_spectrum</em> </td></tr>
-    <tr><td class="paramname">rebinned_header</td><td>(Output) Header describing geometry of <em>rebinned_spectrum</em> and <em>rebinned_noise</em> </td></tr>
-    <tr><td class="paramname">merged_spectrum</td><td>(Output) The merged spectrum </td></tr>
-    <tr><td class="paramname">merged_noise</td><td>(Output) Noise (1 sigma) of <em>merged_spectrum</em> </td></tr>
-    <tr><td class="paramname">merged_header</td><td>(Output) Header belonging to <em>merged_spectrum</em> and <em>merged_noise</em> </td></tr>
-    <tr><td class="paramname">info_tbl</td><td>table with information on object location, FWHM, and S/N </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay</dd></dl>
-<p>As its name sort of implies, this function</p>
-<ul>
-<li>extracts the spectrum (optimally, 2d or simple). If optimal extraction, also the sky is extracted.</li>
-<li>divides by flat-field iff method is FF_EXTRACT. If method is FF_PIXEL the input is assumed to have been already flat-fielded.</li>
-<li>rebins to (order, wavelength)-space the extracted spectrum/spectra.</li>
-<li>merges the rebinned spectrum/spectra. </li>
-</ul>
-
-<p>Definition at line <a class="el" href="uves__reduce_8c_source.html#l01687">1687</a> of file <a class="el" href="uves__reduce_8c_source.html">uves_reduce.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__reduce_8c_source.html#l01509">interpolate_wave()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>, <a class="el" href="uves__flatfield_8c_source.html#l00185">uves_flatfielding()</a>, <a class="el" href="uves__reduc [...]
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad5574e8fead13bd32bd46eb60ca091ac"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_image * subtract_sky </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>rebinned_obj</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>rebinned_obj_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>rebinned_obj_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>rebinned_sky1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>rebinned_sky1_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>rebinned_sky1_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>rebinned_sky2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>rebinned_sky2_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>rebinned_sky2_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>merged_obj</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>merged_obj_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>merged_obj_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>merged_sky1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>merged_sky1_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>merged_sky1_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>merged_sky2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>merged_sky2_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>merged_sky2_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>obj_slit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sky1_slit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sky2_slit</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Subtract sky from extracted spectrum. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">rebinned_obj</td><td>The rebinned object spectrum </td></tr>
-    <tr><td class="paramname">rebinned_obj_noise</td><td>Noise of rebinned object spectrum </td></tr>
-    <tr><td class="paramname">rebinned_obj_header</td><td>Header of rebinned object spectrum </td></tr>
-    <tr><td class="paramname">rebinned_sky1</td><td>The rebinned lower sky spectrum </td></tr>
-    <tr><td class="paramname">rebinned_sky1_noise</td><td>Noise of rebinned lower sky spectrum </td></tr>
-    <tr><td class="paramname">rebinned_sky1_header</td><td>Header of rebinned lower sky spectrum </td></tr>
-    <tr><td class="paramname">rebinned_sky2</td><td>The rebinned upper sky spectrum </td></tr>
-    <tr><td class="paramname">rebinned_sky2_noise</td><td>Noise of rebinned upper sky spectrum </td></tr>
-    <tr><td class="paramname">rebinned_sky2_header</td><td>Header of rebinned upper sky spectrum</td></tr>
-    <tr><td class="paramname">merged_obj</td><td>The merged object spectrum </td></tr>
-    <tr><td class="paramname">merged_obj_noise</td><td>Noise of merged object spectrum </td></tr>
-    <tr><td class="paramname">merged_obj_header</td><td>Header of merged object spectrum </td></tr>
-    <tr><td class="paramname">merged_sky1</td><td>The merged lower sky spectrum </td></tr>
-    <tr><td class="paramname">merged_sky1_noise</td><td>Noise of merged lower sky spectrum </td></tr>
-    <tr><td class="paramname">merged_sky1_header</td><td>Header of merged lower sky spectrum </td></tr>
-    <tr><td class="paramname">merged_sky2</td><td>The merged upper sky spectrum </td></tr>
-    <tr><td class="paramname">merged_sky2_noise</td><td>Noise of merged upper sky spectrum </td></tr>
-    <tr><td class="paramname">merged_sky2_header</td><td>Header of merged upper sky spectrum</td></tr>
-    <tr><td class="paramname">obj_slit</td><td>Extraction slit length (object) </td></tr>
-    <tr><td class="paramname">sky1_slit</td><td>Extraction slit length (lower sky) </td></tr>
-    <tr><td class="paramname">sky2_slit</td><td>Extraction slit length (upper sky)</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The merged sky spectrum which was subtracted, or NULL if the provided sky windows had no good pixels</dd></dl>
-<p>Due to (slightly) different dispersion relations, the ranges of sky and object spectra might not be exactly identical. This function takes care of subtracting the sky from rebinned and merged spectra while aligning the proper wavelengths bin with each other. </p>
-
-<p>Definition at line <a class="el" href="uves__reduce_8c_source.html#l02600">2600</a> of file <a class="el" href="uves__reduce_8c_source.html">uves_reduce.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__reduce_8c_source.html#l02847">subtract_sky_row()</a>, <a class="el" href="uves__pfits_8c_source.html#l02533">uves_pfits_get_cdelt1()</a>, <a class="el" href="uves__pfits_8c_source.html#l02461">uves_pfits_get_crval1()</a>, <a class="el" href="uves__pfits_8c_source.html#l03115">uves_pfits_get_wend()</a>, <a class="el"  [...]
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga26fe47b7ce4f084c5833056dcda44fb5"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_image * subtract_sky_row </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>obj</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>obj_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>obj_start</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>obj_end</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>obj_slit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>sky1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>sky1_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sky1_start</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sky1_end</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sky1_slit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>sky2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>sky2_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sky2_start</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sky2_end</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sky2_slit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>wavestep</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>common_start</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>common_end</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Subtract sky from 1 row of spectrum. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">obj</td><td>The object spectrum </td></tr>
-    <tr><td class="paramname">obj_noise</td><td>Noise of object spectrum </td></tr>
-    <tr><td class="paramname">obj_start</td><td>Wavelength of first bin of row </td></tr>
-    <tr><td class="paramname">obj_end</td><td>Wavelength of last bin to consider </td></tr>
-    <tr><td class="paramname">obj_slit</td><td>Object slit length</td></tr>
-    <tr><td class="paramname">sky1</td><td>The lower sky spectrum (or NULL if not extracted) </td></tr>
-    <tr><td class="paramname">sky1_noise</td><td>Noise of lower sky spectrum </td></tr>
-    <tr><td class="paramname">sky1_start</td><td>Wavelength of first bin of row </td></tr>
-    <tr><td class="paramname">sky1_end</td><td>Wavelength of last bin to consider </td></tr>
-    <tr><td class="paramname">sky1_slit</td><td>Lower sky slit length</td></tr>
-    <tr><td class="paramname">sky2</td><td>The upper sky spectrum (or NULL if not extracted) </td></tr>
-    <tr><td class="paramname">sky2_noise</td><td>Noise of upper sky spectrum </td></tr>
-    <tr><td class="paramname">sky2_start</td><td>Wavelength of first bin of row </td></tr>
-    <tr><td class="paramname">sky2_end</td><td>Wavelength of last bin to consider </td></tr>
-    <tr><td class="paramname">sky2_slit</td><td>Upper sky slit length </td></tr>
-    <tr><td class="paramname">row</td><td>Row (order number) of spectrum images to process </td></tr>
-    <tr><td class="paramname">wavestep</td><td>Width of one win (same for obj/sky spectra) </td></tr>
-    <tr><td class="paramname">common_start</td><td>(output) Minimum common wavelength </td></tr>
-    <tr><td class="paramname">common_end</td><td>(output) Maximum common wavelength</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The merged sky spectrum, or NULL if provided sky images had no good pixels</dd></dl>
-<p>This function subtracts sky from (only) the specified <em>row</em> of the input spectrum. Before subtraction, the fluxes are properly scaled according to extraction slit lengths. </p>
-
-<p>Definition at line <a class="el" href="uves__reduce_8c_source.html#l02847">2847</a> of file <a class="el" href="uves__reduce_8c_source.html">uves_reduce.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils_8c_source.html#l02045">uves_average_images()</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves__msg_8h_source.html#l00105">uves_msg_low</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l02600">subtract_sky()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad6aedc87f04001c793180df5b7edac16"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double get_offset </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>back_subbed</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>search_range</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nsamples</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>doffset</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Measure object offset w.r.t. slit center. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">back_subbed</td><td>The input image </td></tr>
-    <tr><td class="paramname">ordertable</td><td>The order table. Used to get min/max order numbers </td></tr>
-    <tr><td class="paramname">order_locations</td><td>Polynomial describing the order locations </td></tr>
-    <tr><td class="paramname">search_range</td><td>The half search window height (in pixels) </td></tr>
-    <tr><td class="paramname">nsamples</td><td>Number of sample points per order </td></tr>
-    <tr><td class="paramname">doffset</td><td>(out) If non-null, the measured width (1 sigma) of the object is returned. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The average object offset in relation to the center of the order</dd></dl>
-<p>This function finds the flux centroid (in y-direction) of <em>nsamples</em> median collapsed chunks in each order and returns the mean centroid position (average of all orders). </p>
-
-<p>Definition at line <a class="el" href="uves__reduce_8c_source.html#l03069">3069</a> of file <a class="el" href="uves__reduce_8c_source.html">uves_reduce.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga14f04fabe88e704a3e9fd81e666ed237"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_image * uves_get_blaze_ratio </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum_noise</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get (normalized) object to flat-field blaze function ratio. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">spectrum</td><td>The extracted, flat-fielded spectrum in (pixel, order)-space </td></tr>
-    <tr><td class="paramname">spectrum_noise</td><td>Noise associated with <em>spectrum</em> </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The correction factor</dd></dl>
-<p>Due to the different blaze function profile of flat/science spectra (for unknown reason) there will be order scale ripples when merging. This function</p>
-<p>This function</p>
-<ul>
-<li>Normalizes in each order the flux to 1: norm(x) = f(x) / median_x(f).</li>
-<li>Fits for each x0 a low-order polynomial to norm(x0, order). The result is a correction factor close to 1 that corrects for the different shape of blaze functions (but doesn't change the overall normalization) </li>
-</ul>
-
-<p>Definition at line <a class="el" href="uves__reduce_8c_source.html#l03191">3191</a> of file <a class="el" href="uves__reduce_8c_source.html">uves_reduce.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__error_8h_source.html#l00215">uves_error_reset</a>, <a class="el" href="uves__utils__cpl_8c_source.html#l00375">uves_filter_image_median()</a>, <a class="el" href="uves__utils_ [...]
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf0fe2418683acd1504f0c2c90c9c417a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_parameterlist* uves_reduce_define_parameters </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Define recipe parameters used for reducing a frame. </p>
-<dl class="section return"><dt>Returns:</dt><dd>Newly allocated parameter list for this sub-step</dd></dl>
-<p>See source code or 'esorex –man-page' for a description of each parameter. </p>
-
-<p>Definition at line <a class="el" href="uves__reduce_8c_source.html#l00187">187</a> of file <a class="el" href="uves__reduce_8c_source.html">uves_reduce.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad5308bc6e13c7e02e134e6f0ce6be722"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_reduce </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>raw_image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>rotated_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_bias</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_dark</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>mdark_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_flat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>mflat_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>linetable</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>linetable_header</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>dispersion_relation</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>debug_mode</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>rec_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>mode</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>x_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>fx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>cosmic_mask</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>wave_map</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>background</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>flatfielded_variance</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>flatfielded_variance_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>resampled_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>resampled_mf</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>merged_sky</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>rebinned_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>rebinned_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>rebinned_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>merged_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>merged_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>merged_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>reduced_rebinned_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>reduced_rebinned_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>reduced_spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>reduced_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>info_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>extraction_slit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>order_trace</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Reduce a science frame. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_image</td><td>the image to reduce (pre and overscan are already removed) </td></tr>
-    <tr><td class="paramname">raw_header</td><td>FITS header of raw image </td></tr>
-    <tr><td class="paramname">rotated_header</td><td>Header describing the geometry of the raw image after rotation and removal of pre- and overscan areas </td></tr>
-    <tr><td class="paramname">master_bias</td><td>The master bias image. If NULL, no bias subtraction is done. </td></tr>
-    <tr><td class="paramname">master_dark</td><td>The master dark image. If NULL, no dark subtraction is done. </td></tr>
-    <tr><td class="paramname">mdark_header</td><td>The master dark header containing the master dark exposure time. </td></tr>
-    <tr><td class="paramname">master_flat</td><td>Master flat image. May be NULL, but only if no flatfielding is requested. </td></tr>
-    <tr><td class="paramname">mflat_header</td><td>The master flat header. Contains the number of input flat frames which is needed to generate the master flat noise image. </td></tr>
-    <tr><td class="paramname">ordertable</td><td>Order table describing the order locations on the raw image </td></tr>
-    <tr><td class="paramname">order_locations</td><td>The polynomial describing the order positions </td></tr>
-    <tr><td class="paramname">linetable</td><td>Length 3 array of linetable for sky, object, sky. </td></tr>
-    <tr><td class="paramname">linetable_header</td><td>Length 3 array of linetable headers for sky, object, sky. </td></tr>
-    <tr><td class="paramname">dispersion_relation</td><td>Length 3 array of dispersion relations for sky, object, sky. </td></tr>
-    <tr><td class="paramname">chip</td><td>The CCD chip id </td></tr>
-    <tr><td class="paramname">debug_mode</td><td>If true, intermediate results are saved to the current directory </td></tr>
-    <tr><td class="paramname">parameters</td><td>Parameters used for background subtraction, flat-fielding, extraction and rebinning. Add parameters to the caller recipe by calling <code>uves_propagate_parameters_step()</code> from the <code>recipe_create()</code> function </td></tr>
-    <tr><td class="paramname">rec_id</td><td>Use <em>parameters</em> belonging to this recipe </td></tr>
-    <tr><td class="paramname">mode</td><td>mode to set different default params (efficiencY) </td></tr>
-    <tr><td class="paramname">x</td><td>(Output) In 2d extraction mode, the extracted spectrum </td></tr>
-    <tr><td class="paramname">x_header</td><td>(Output) In 2d extraction mode, header of extracted spectrum </td></tr>
-    <tr><td class="paramname">fx</td><td>(Output) In 2d extraction mode, the flat-fielded, extracted spectrum </td></tr>
-    <tr><td class="paramname">cosmic_mask</td><td>(Output) In optimal extraction mode, the list of hot pixels </td></tr>
-    <tr><td class="paramname">background</td><td>(Output) The background that was subtracted from the raw image </td></tr>
-    <tr><td class="paramname">flatfielded_variance</td><td>(Output) If non-NULL variance of extracted+flatfielded (not resampled) object </td></tr>
-    <tr><td class="paramname">flatfielded_variance_header</td><td>(Output) If non-NULL header of <em>flatfielded_variance</em> </td></tr>
-    <tr><td class="paramname">resampled_spectrum</td><td>(Output) Extracted + resampled but not FF object. If input is NULL, this is not produced </td></tr>
-    <tr><td class="paramname">resampled_mf</td><td>(Output) Extracted + resampled master flat. If input is NULL, this is not produced </td></tr>
-    <tr><td class="paramname">merged_sky</td><td>(Output) Input pointer must be non-NULL. Returned is the sky spectrum, or NULL if no sky was extracted (image slicer or 2d modes) </td></tr>
-    <tr><td class="paramname">rebinned_spectrum</td><td>(Output) The resampled 2d spectrum (non sky-subtracted) </td></tr>
-    <tr><td class="paramname">rebinned_noise</td><td>(Output) Noise (1 sigma) of <em>rebinned_spectrum</em> </td></tr>
-    <tr><td class="paramname">rebinned_header</td><td>(Output) Header describing geometry of <em>rebinned_spectrum</em> (and of course <em>rebinned_noise</em>) </td></tr>
-    <tr><td class="paramname">merged_spectrum</td><td>(Output) The merged spectrum (non sky-subtracted) </td></tr>
-    <tr><td class="paramname">merged_noise</td><td>(Output) Noise (1 sigma) of <em>merged_spectrum</em> </td></tr>
-    <tr><td class="paramname">merged_header</td><td>(Output) Header belonging to <em>merged_spectrum</em> and <em>merged_noise</em> </td></tr>
-    <tr><td class="paramname">reduced_rebinned_spectrum</td><td>(Output) The sky subtracted spectrum rebinned to (wavelength, order) space (i.e. non-merged). </td></tr>
-    <tr><td class="paramname">reduced_rebinned_noise</td><td>(Output) Noise (1 sigma) of <em>reduced_rebinned_spectrum</em> </td></tr>
-    <tr><td class="paramname">reduced_spectrum</td><td>(Output) Merged, sky-subtracted spectrum </td></tr>
-    <tr><td class="paramname">reduced_noise</td><td>(Output) Noise (1 sigma) of <em>reduced_spectrum</em> </td></tr>
-    <tr><td class="paramname">info_tbl</td><td>(output) table with information on object location, FWHM, and S/N </td></tr>
-    <tr><td class="paramname">extraction_slit</td><td>(output) extraction slit actually used </td></tr>
-    <tr><td class="paramname">order_trace</td><td>(Output) In optimal extraction mode, table describing the measured spatial profile </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay.</dd></dl>
-<p>This function pre-processes the input image:</p>
-<ul>
-<li>subtracts master bias if provided,</li>
-<li>subtracts master dark if provided,</li>
-<li>subtracts background (see <code>uves_backsub_spline()</code>),</li>
-<li>gets extraction slit length</li>
-<li>divides by master flat if <em>FF_METHOD</em> is FF_PIXEL.</li>
-</ul>
-<p>Then, if optimal extraction:</p>
-<ul>
-<li>extracts (including sky subtraction), optionally flat-field corrects and merges the object window (see <code><a class="el" href="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6" title="Reduce one extraction window.">extract_ff_rebin_merge()</a></code>).</li>
-</ul>
-<p>If linear/average extraction,</p>
-<ul>
-<li>extracts, optionally flat-field corrects and merges the object and both sky windows, then</li>
-<li>subtracts the sky spectra from the object spectrum (after normalizing to the object slit length)</li>
-</ul>
-<p>If 2d extraction,</p>
-<ul>
-<li>extracts, optionally flat-field corrects and merges each of the spatial traces (see <code><a class="el" href="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6" title="Reduce one extraction window.">extract_ff_rebin_merge()</a></code>). In 2d extraction mode, no sky subtraction can be performed as the object position is not defined. </li>
-</ul>
-
-<p>Definition at line <a class="el" href="uves__reduce_8c_source.html#l00574">574</a> of file <a class="el" href="uves__reduce_8c_source.html">uves_reduce.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>, <a class="el" href="uves__reduce_8c_source.html#l03069">get_offset()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__reduce_8c_source.html#l02600">subtract_sky()</a>, <a class="el" href="uves__utils_8c_ [...]
-
-<p>Referenced by <a class="el" href="uves__response__efficiency_8c_source.html#l00100">uves_response_efficiency()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00374">uves_scired_process_chip()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gacf021d0b42c1b02d38ecbff5f3353f54"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static <a class="el" href="struct__polynomial.html">polynomial</a>* interpolate_wave </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>dispersion_relation</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>linetable_header</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>objoffset</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>1st order line tilt correction </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">dispersion_solution</td><td>calibration solutions </td></tr>
-    <tr><td class="paramname">linetable_header</td><td>describing where dispersion solutions were obtained </td></tr>
-    <tr><td class="paramname">objoffset</td><td>object slit position </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>interpolated dispersion solution at the specified object position </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__reduce_8c_source.html#l01509">1509</a> of file <a class="el" href="uves__reduce_8c_source.html">uves_reduce.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__pfits_8c_source.html#l01970">uves_pfits_get_offset()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00942">uves_polynomial_add_2d()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l [...]
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1867e835a6183494d513613729836205"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_normalize_spectrum </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum_error</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>spectrum_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>n_traces</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>atm_extinction</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>correct_binning</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>scaled_error</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Normalize a spectrum. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">spectrum</td><td>The 1d (merged) or 2d (non-merged or 2d extracted+merged) spectrum to be normalized </td></tr>
-    <tr><td class="paramname">spectrum_error</td><td>Error (1 sigma) of <em>spectrum</em>, or NULL. </td></tr>
-    <tr><td class="paramname">spectrum_header</td><td>Header describing the geometry of the input spectrum </td></tr>
-    <tr><td class="paramname">raw_header</td><td>Header of the raw frame </td></tr>
-    <tr><td class="paramname">n_traces</td><td>Number of spatial bins (1 unless 2d extracted) </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-    <tr><td class="paramname">atm_extinction</td><td>The table of extinction coefficients </td></tr>
-    <tr><td class="paramname">correct_binning</td><td>Flag indicating whether or not to divide by the x-binning factor </td></tr>
-    <tr><td class="paramname">scaled_error</td><td>(output) If non-NULL, error of output spectrum </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The normalized spectrum</dd></dl>
-<p>The spectrum is divided by exposure time, gain and (optionally) binning. Also corrected for atmospheric extinction using the provided table of extinction coefficients.</p>
-<p>Bad pixels are propagated. </p>
-
-<p>Definition at line <a class="el" href="uves__reduce__utils_8c_source.html#l00128">128</a> of file <a class="el" href="uves__reduce__utils_8c_source.html">uves_reduce_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__pfits_8c_source.html#l00926">uves_pfits_get_airmass_end()</a>, <a class="el" href="uves__pfits_8c_source.html#l00907">uves_pfits_get_airmass_start()</a>, <a class="el" href="uves__pfits_8c_source.html#l01300">uves_pfits_get_biny()</a>, <a class=" [...]
-
-<p>Referenced by <a class="el" href="uves__response__efficiency_8c_source.html#l00100">uves_response_efficiency()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00374">uves_scired_process_chip()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__reduce__mflat.html b/html/group__uves__reduce__mflat.html
deleted file mode 100644
index 6541fd4..0000000
--- a/html/group__uves__reduce__mflat.html
+++ /dev/null
@@ -1,672 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Master flat reduction</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a> |
-<a href="#var-members">Variables</a>  </div>
-  <div class="headertitle">
-<div class="title">Master flat reduction</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga02a8ec0f31954bdcb88ca7b73f06babb"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce__mflat.html#ga02a8ec0f31954bdcb88ca7b73f06babb">uves_mflat_qclog</a> (const cpl_imagelist *raw_images, cpl_table *qclog)</td></tr>
-<tr class="memdesc:ga02a8ec0f31954bdcb88ca7b73f06babb"><td class="mdescLeft"> </td><td class="mdescRight">Process a single chip.  <a href="#ga02a8ec0f31954bdcb88ca7b73f06babb"></a><br/></td></tr>
-<tr class="memitem:gad7e37298e7f0b43a3ce3edff25ac4e45"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce__mflat.html#gad7e37298e7f0b43a3ce3edff25ac4e45">uves_msflats</a> (cpl_frameset *set, const cpl_parameterlist *parameters, const char *recipe_id, const char *starttime)</td></tr>
-<tr class="memdesc:gad7e37298e7f0b43a3ce3edff25ac4e45"><td class="mdescLeft"> </td><td class="mdescRight">Computes coherent master sflats.  <a href="#gad7e37298e7f0b43a3ce3edff25ac4e45"></a><br/></td></tr>
-<tr class="memitem:ga2598ddc0ef2df5c66cd4710829a02353"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce__mflat.html#ga2598ddc0ef2df5c66cd4710829a02353">uves_mflat_one</a> (cpl_frameset *frames, const cpl_parameterlist *parameters, bool flames, const char *recipe_id, const char *starttime, const char *prefix)</td></tr>
-<tr class="memdesc:ga2598ddc0ef2df5c66cd4710829a02353"><td class="mdescLeft"> </td><td class="mdescRight">Get the command line options and execute the data reduction.  <a href="#ga2598ddc0ef2df5c66cd4710829a02353"></a><br/></td></tr>
-<tr class="memitem:ga429b19c63b9710f0d332a2f39ddac05a"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce__mflat.html#ga429b19c63b9710f0d332a2f39ddac05a">uves_mflat_at_ypos</a> (cpl_frameset *set, const cpl_parameterlist *parameters, const char *recipe_id, const char *starttime, const cpl_frameset *raw, const cpl_frameset *cdb, const int ref_x1enc, const int ref_x2enc, const i [...]
-<tr class="memdesc:ga429b19c63b9710f0d332a2f39ddac05a"><td class="mdescLeft"> </td><td class="mdescRight">Computes coherent master sflats.  <a href="#ga429b19c63b9710f0d332a2f39ddac05a"></a><br/></td></tr>
-<tr class="memitem:ga8d36f48466a867a45e7653f484414ee6"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce__mflat.html#ga8d36f48466a867a45e7653f484414ee6">uves_reduce_mflat</a> (cpl_frameset *frames, const cpl_parameterlist *parameters, bool flames, const char *recipe_id, const char *starttime, const char *prefix)</td></tr>
-<tr class="memdesc:ga8d36f48466a867a45e7653f484414ee6"><td class="mdescLeft"> </td><td class="mdescRight">Get the command line options and execute the data reduction.  <a href="#ga8d36f48466a867a45e7653f484414ee6"></a><br/></td></tr>
-<tr class="memitem:ga7d38d6807a0067cc5e8dd44a44ebaa07"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce__mflat.html#ga7d38d6807a0067cc5e8dd44a44ebaa07">uves_mflat_define_parameters_body</a> (cpl_parameterlist *parameters, const char *recipe_id)</td></tr>
-<tr class="memdesc:ga7d38d6807a0067cc5e8dd44a44ebaa07"><td class="mdescLeft"> </td><td class="mdescRight">Setup the recipe options.  <a href="#ga7d38d6807a0067cc5e8dd44a44ebaa07"></a><br/></td></tr>
-<tr class="memitem:ga28f40f90cc7f91b1e2ef317c74c73fa2"><td class="memItemLeft" align="right" valign="top">static cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce__mflat.html#ga28f40f90cc7f91b1e2ef317c74c73fa2">uves_mflat_process_chip</a> (const cpl_imagelist *raw_images, <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> **raw_headers, <a class="el" href="group__uves__propertyl [...]
-<tr class="memdesc:ga28f40f90cc7f91b1e2ef317c74c73fa2"><td class="mdescLeft"> </td><td class="mdescRight">Process a single chip.  <a href="#ga28f40f90cc7f91b1e2ef317c74c73fa2"></a><br/></td></tr>
-<tr class="memitem:ga1bae4e786a7fc24b0061ae293112f5ae"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce__mflat.html#ga1bae4e786a7fc24b0061ae293112f5ae">uves_mflat_exe_body</a> (cpl_frameset *frames, const cpl_parameterlist *parameters, const char *starttime, const char *recipe_id)</td></tr>
-<tr class="memdesc:ga1bae4e786a7fc24b0061ae293112f5ae"><td class="mdescLeft"> </td><td class="mdescRight">Get the command line options and execute the data reduction.  <a href="#ga1bae4e786a7fc24b0061ae293112f5ae"></a><br/></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="var-members"></a>
-Variables</h2></td></tr>
-<tr class="memitem:ga98d921655e122e6b38db0288756375a6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga98d921655e122e6b38db0288756375a6"></a>
-const char *const </td><td class="memItemRight" valign="bottom"><b>uves_mflat_desc</b> = "MASTER_DFLAT_xxxx, MASTER_TFLAT_xxxx or MASTER_SCREEN_FLAT_xxxx)."</td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga02a8ec0f31954bdcb88ca7b73f06babb"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void uves_mflat_qclog </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_imagelist * </td>
-          <td class="paramname"><em>raw_images</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>qclog</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Process a single chip. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_images</td><td>the input images </td></tr>
-    <tr><td class="paramname">qclog</td><td>QC parameters are written here </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__reduce__mflat_8c_source.html#l01071">1071</a> of file <a class="el" href="uves__reduce__mflat_8c_source.html">uves_reduce_mflat.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__qclog_8c_source.html#l00521">uves_qclog_add_int()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00683">uves_qclog_add_string()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00610">uves_reduce_mflat()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad7e37298e7f0b43a3ce3edff25ac4e45"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code uves_msflats </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>set</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>starttime</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Computes coherent master sflats. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">set</td><td>The input frameset </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__reduce__mflat_8c_source.html#l00438">438</a> of file <a class="el" href="uves__reduce__mflat_8c_source.html">uves_reduce_mflat.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils_8c_source.html#l01557">uves_frameset_extract()</a>, <a class="el" href="uves__reduce__mflat_8c_source.html#l00511">uves_mflat_at_ypos()</a>, and <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00408">uves_mflat_exe_body()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2598ddc0ef2df5c66cd4710829a02353"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void uves_mflat_one </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>frames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>flames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>starttime</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>prefix</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get the command line options and execute the data reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">frames</td><td>the frames list </td></tr>
-    <tr><td class="paramname">parameters</td><td>the parameters list  flames FLAMES mode? </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE if everything is ok</dd></dl>
-<p>After computing the master flat frame, the pixel average, standard deviation and median values are also computed and written in appropriate keywords in the output image header. </p>
-
-<p>Definition at line <a class="el" href="uves__reduce__mflat_8c_source.html#l00581">581</a> of file <a class="el" href="uves__reduce__mflat_8c_source.html">uves_reduce_mflat.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, and <a class="el" href="uves__reduce__mflat_8c_source.html#l00610">uves_reduce_mflat()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00511">uves_mflat_at_ypos()</a>, and <a class="el" href="uves__reduce__mflat_8c_source.html#l00408">uves_mflat_exe_body()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga429b19c63b9710f0d332a2f39ddac05a"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code uves_mflat_at_ypos </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>set</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>starttime</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>raw</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>cdb</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>ref_x1enc</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>ref_x2enc</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>set_no</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Computes coherent master sflats. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">set</td><td>The input frameset </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__reduce__mflat_8c_source.html#l00511">511</a> of file <a class="el" href="uves__reduce__mflat_8c_source.html">uves_reduce_mflat.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__reduce__mflat_8c_source.html#l00581">uves_mflat_one()</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__pfits_8c_source.html#l00284">uves_pfits_get_slit3_x1encoder()</a>, <a class="el" href="uves__pfits_8c_source.html#l00302">uves_pfits_get_slit3_x2encoder()</ [...]
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00438">uves_msflats()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8d36f48466a867a45e7653f484414ee6"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void uves_reduce_mflat </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>frames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>flames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>starttime</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>prefix</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get the command line options and execute the data reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">frames</td><td>the frames list </td></tr>
-    <tr><td class="paramname">parameters</td><td>the parameters list </td></tr>
-    <tr><td class="paramname">flames</td><td>Called by FLAMES recipe? </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>the recipe name (will be written to FITS headers) </td></tr>
-    <tr><td class="paramname">starttime</td><td>time when calling recipe started </td></tr>
-    <tr><td class="paramname">prefix</td><td>tag prefix as x in 'xFLAT' </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__reduce__mflat_8c_source.html#l00610">610</a> of file <a class="el" href="uves__reduce__mflat_8c_source.html">uves_reduce_mflat.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__chip_8c_source.html#l00092">uves_chip_get_first()</a>, <a class="el" href="uves__chip_8c_source.html#l00124">uves_chip_get_index()</a>, <a class="el" href="uves__chip_8c_source.html#l00108">uves_chip_get_next()</a>, <a class="el" href="uves__chip_8c_source.html#l00156">uves_chip_tostring_upper()</a>, <a class="el [...]
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00581">uves_mflat_one()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7d38d6807a0067cc5e8dd44a44ebaa07"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_mflat_define_parameters_body </td>
-          <td>(</td>
-          <td class="paramtype">cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Setup the recipe options. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parameters</td><td>the parameterlist to fill </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>name of calling recipe </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__reduce__mflat_8c_source.html#l00126">126</a> of file <a class="el" href="uves__reduce__mflat_8c_source.html">uves_reduce_mflat.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga28f40f90cc7f91b1e2ef317c74c73fa2"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_image* uves_mflat_process_chip </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_imagelist * </td>
-          <td class="paramname"><em>raw_images</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>raw_headers</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>master_flat_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_bias</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_dark</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>mdark_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>flames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>debug_mode</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>background</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Process a single chip. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_images</td><td>The input images </td></tr>
-    <tr><td class="paramname">raw_headers</td><td>An array containing the input image headers. The ordering must be the same as the ordering of images in the input image list </td></tr>
-    <tr><td class="paramname">master_flat_header</td><td>This header is updated with the normalized exposure time </td></tr>
-    <tr><td class="paramname">master_bias</td><td>The master bias image for this chip, or NULL </td></tr>
-    <tr><td class="paramname">master_dark</td><td>If non-null this master dark frame is subtracted </td></tr>
-    <tr><td class="paramname">mdark_header</td><td>The header of the master dark frame (used only if <em>master_dark</em> is non-null). </td></tr>
-    <tr><td class="paramname">ordertable</td><td>The order table for this chip. Used for background subtraction. </td></tr>
-    <tr><td class="paramname">order_locations</td><td>Polynomial defining the order locations. Used for background subtraction. </td></tr>
-    <tr><td class="paramname">flames</td><td>FLAMES reduction? In this case the background image is not computed/subtracted </td></tr>
-    <tr><td class="paramname">parameters</td><td>The recipe parameter list </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>name of calling recipe </td></tr>
-    <tr><td class="paramname">debug_mode</td><td>Save intermediate results to disk? </td></tr>
-    <tr><td class="paramname">background</td><td>(output) The background image which was subtracted</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The master flat image</dd></dl>
-<p>This function</p>
-<ul>
-<li>subtracts from each input image the provided <em>master</em> bias,</li>
-<li>rescales each input image to unit exposure time by dividing by the exposure time read from the image header.</li>
-<li>computes the master flat image by taking the pixel-by-pixel median of all input frames,</li>
-<li>optionally subtracts the normalized master dark frame, and</li>
-<li>subtracts the background (see <code>uves_backsub_spline()</code>) .</li>
-</ul>
-<p>masterflat = median( (flat_i - masterbias)/exptime_i ) - masterdark/exptime_mdark - background</p>
-<p>Dark subtraction is optional and is done only if the parameter <em>master_dark</em> is non-NULL. </p>
-
-<p>Definition at line <a class="el" href="uves__reduce__mflat_8c_source.html#l00221">221</a> of file <a class="el" href="uves__reduce__mflat_8c_source.html">uves_reduce_mflat.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__utils_8c_source.html#l00702">uves_flat_create_normalized_master()</a>, <a class="el" href="uves__utils_8c_source.html#l00551">uves_flat_create_normalized_master2()</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__pfits_8c_source.html#l01028">uves_pfits_get_exptime( [...]
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00610">uves_reduce_mflat()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1bae4e786a7fc24b0061ae293112f5ae"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_mflat_exe_body </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>frames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>starttime</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the command line options and execute the data reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parameters</td><td>the parameters list </td></tr>
-    <tr><td class="paramname">frames</td><td>the frames list </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE if everything is ok</dd></dl>
-<p>After computing the master flat frame, the pixel average, standard deviation and median values are also computed and written in appropriate keywords in the output image header. </p>
-
-<p>Definition at line <a class="el" href="uves__reduce__mflat_8c_source.html#l00408">408</a> of file <a class="el" href="uves__reduce__mflat_8c_source.html">uves_reduce_mflat.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__reduce__mflat_8c_source.html#l00581">uves_mflat_one()</a>, and <a class="el" href="uves__reduce__mflat_8c_source.html#l00438">uves_msflats()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__reduce__mflat__combine.html b/html/group__uves__reduce__mflat__combine.html
deleted file mode 100644
index b051c79..0000000
--- a/html/group__uves__reduce__mflat__combine.html
+++ /dev/null
@@ -1,296 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Master flat reduction</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a> |
-<a href="#var-members">Variables</a>  </div>
-  <div class="headertitle">
-<div class="title">Master flat reduction</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga2b69a8d67f29f1794ee4efe7bbbcb699"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce__mflat__combine.html#ga2b69a8d67f29f1794ee4efe7bbbcb699">uves_reduce_mflat_combine</a> (cpl_frameset *frames, const cpl_parameterlist *parameters, bool flames, const char *recipe_id, const char *starttime)</td></tr>
-<tr class="memdesc:ga2b69a8d67f29f1794ee4efe7bbbcb699"><td class="mdescLeft"> </td><td class="mdescRight">Get the command line options and execute the data reduction.  <a href="#ga2b69a8d67f29f1794ee4efe7bbbcb699"></a><br/></td></tr>
-<tr class="memitem:ga74ca4174a5bba5f066a627eddc5d5d9c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce__mflat__combine.html#ga74ca4174a5bba5f066a627eddc5d5d9c">uves_mflat_combine_define_parameters_body</a> (cpl_parameterlist *parameters, const char *recipe_id)</td></tr>
-<tr class="memdesc:ga74ca4174a5bba5f066a627eddc5d5d9c"><td class="mdescLeft"> </td><td class="mdescRight">Setup the recipe options.  <a href="#ga74ca4174a5bba5f066a627eddc5d5d9c"></a><br/></td></tr>
-<tr class="memitem:ga7c98495b1b6ad337e267c3fd44d12c4b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce__mflat__combine.html#ga7c98495b1b6ad337e267c3fd44d12c4b">uves_mflat_combine_exe_body</a> (cpl_frameset *frames, const cpl_parameterlist *parameters, const char *starttime, const char *recipe_id)</td></tr>
-<tr class="memdesc:ga7c98495b1b6ad337e267c3fd44d12c4b"><td class="mdescLeft"> </td><td class="mdescRight">Get the command line options and execute the data reduction.  <a href="#ga7c98495b1b6ad337e267c3fd44d12c4b"></a><br/></td></tr>
-<tr class="memitem:gabd0a1d5c0c76fcafb1ff0d3fb7aa9249"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__reduce__mflat__combine.html#gabd0a1d5c0c76fcafb1ff0d3fb7aa9249">uves_combine_flats</a> (const cpl_frame *frm_flat, const cpl_frame *frm_dflat, cpl_frameset *frames, bool flames, const int ORDER_THRESHOLD)</td></tr>
-<tr class="memdesc:gabd0a1d5c0c76fcafb1ff0d3fb7aa9249"><td class="mdescLeft"> </td><td class="mdescRight">Get the command line options and execute the data reduction.  <a href="#gabd0a1d5c0c76fcafb1ff0d3fb7aa9249"></a><br/></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="var-members"></a>
-Variables</h2></td></tr>
-<tr class="memitem:gad2e644f93f0dba7c954f2e014f3f3200"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gad2e644f93f0dba7c954f2e014f3f3200"></a>
-const char *const </td><td class="memItemRight" valign="bottom"><b>uves_mflat_combine_desc</b> = "Output is a MASTER_FLAT_xxxx\n"</td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga2b69a8d67f29f1794ee4efe7bbbcb699"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void uves_reduce_mflat_combine </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>frames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>flames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>starttime</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get the command line options and execute the data reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">frames</td><td>the frames list </td></tr>
-    <tr><td class="paramname">parameters</td><td>the parameters list </td></tr>
-    <tr><td class="paramname">flames</td><td>Called by FLAMES recipe? </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>the recipe name (will be written to FITS headers) </td></tr>
-    <tr><td class="paramname">starttime</td><td>time when calling recipe started </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00348">348</a> of file <a class="el" href="uves__reduce__mflat__combine_8c_source.html">uves_reduce_mflat_combine.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__chip_8c_source.html#l00092">uves_chip_get_first()</a>, <a class="el" href="uves__chip_8c_source.html#l00124">uves_chip_get_index()</a>, <a class="el" href="uves__chip_8c_source.html#l00108">uves_chip_get_next()</a>, <a class="el" href="uves__chip_8c_source.html#l00156">uves_chip_tostring_upper()</a>, <a class="el [...]
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00124">uves_mflat_combine_exe_body()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga74ca4174a5bba5f066a627eddc5d5d9c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_mflat_combine_define_parameters_body </td>
-          <td>(</td>
-          <td class="paramtype">cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Setup the recipe options. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parameters</td><td>the parameterlist to fill </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>name of calling recipe </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00092">92</a> of file <a class="el" href="uves__reduce__mflat__combine_8c_source.html">uves_reduce_mflat_combine.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7c98495b1b6ad337e267c3fd44d12c4b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_mflat_combine_exe_body </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>frames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>starttime</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the command line options and execute the data reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parameters</td><td>the parameters list </td></tr>
-    <tr><td class="paramname">frames</td><td>the frames list </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE if everything is ok</dd></dl>
-<p>After computing the master flat frame, the pixel average, standard deviation and median values are also computed and written in appropriate keywords in the output image header. </p>
-
-<p>Definition at line <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00124">124</a> of file <a class="el" href="uves__reduce__mflat__combine_8c_source.html">uves_reduce_mflat_combine.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, and <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00348">uves_reduce_mflat_combine()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gabd0a1d5c0c76fcafb1ff0d3fb7aa9249"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_combine_flats </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_frame * </td>
-          <td class="paramname"><em>frm_flat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frame * </td>
-          <td class="paramname"><em>frm_dflat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>frames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>flames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>ORDER_THRESHOLD</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the command line options and execute the data reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">frames</td><td>the frames list </td></tr>
-    <tr><td class="paramname">parameters</td><td>the parameters list  flames FLAMES mode? </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE if everything is ok</dd></dl>
-<p>After computing the master flat frame, the pixel average, standard deviation and median values are also computed and written in appropriate keywords in the output image header. </p>
-
-<p>Definition at line <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00154">154</a> of file <a class="el" href="uves__reduce__mflat__combine_8c_source.html">uves_reduce_mflat_combine.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__chip_8c_source.html#l00156">uves_chip_tostring_upper()</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, and <a class="el" [...]
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00348">uves_reduce_mflat_combine()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__remove__crh__single.html b/html/group__uves__remove__crh__single.html
deleted file mode 100644
index e72e982..0000000
--- a/html/group__uves__remove__crh__single.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Remove Cosmic Rays single (uves_remove_crh_single)</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#define-members">Macros</a> |
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Remove Cosmic Rays single (uves_remove_crh_single)</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
-Macros</h2></td></tr>
-<tr class="memitem:ga0a3abbca80bc98e7abcb3ae73abe0f14"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0a3abbca80bc98e7abcb3ae73abe0f14"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>MAX_ITERATIONS</b>   6</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga7e6109abce4aa245c65f9cf39e1c8c8a"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__remove__crh__single.html#ga7e6109abce4aa245c65f9cf39e1c8c8a">uves_remove_crh_single</a> (cpl_image *sci_image, double crh_frac_max, double sigma_lim, double f_lim, int max_iter, double gain, double ron)</td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>Suppress Cosmic Rays by analysing on files </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga7e6109abce4aa245c65f9cf39e1c8c8a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_remove_crh_single </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>sci_image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>crh_frac_max</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>sigma_lim</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>f_lim</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>max_iter</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>gain</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>ron</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Remove cosmic rays from a single frame.</p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramdir">[in]</td><td class="paramname">sci_frame</td><td>The science Frame </td></tr>
-    <tr><td class="paramdir">[in]</td><td class="paramname">loc_table_frame</td><td>The localization table frame </td></tr>
-    <tr><td class="paramdir">[in]</td><td class="paramname">single_par</td><td>Parameters for remove crh single</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The science image after removal of Cosmics </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__remove__crh__single_8c_source.html#l00100">100</a> of file <a class="el" href="uves__remove__crh__single_8c_source.html">uves_remove_crh_single.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, and <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00268">uves_utl_remove_crh_single()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__response.html b/html/group__uves__response.html
deleted file mode 100644
index 0158474..0000000
--- a/html/group__uves__response.html
+++ /dev/null
@@ -1,362 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: Response</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Recipe: Response</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga85c178e57e3a92c7ce1cb47d46e84188"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__response.html#ga85c178e57e3a92c7ce1cb47d46e84188">uves_response_efficiency</a> (const cpl_image *raw_image, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, const <a class="el" href="group__uves__propertylist [...]
-<tr class="memdesc:ga85c178e57e3a92c7ce1cb47d46e84188"><td class="mdescLeft"> </td><td class="mdescRight">Calculate quantum detection efficiency.  <a href="#ga85c178e57e3a92c7ce1cb47d46e84188"></a><br/></td></tr>
-<tr class="memitem:ga0e3832a791528896648761e02fac2b9c"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__response.html#ga0e3832a791528896648761e02fac2b9c">uves_calculate_response</a> (const cpl_image *spectrum, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *spectrum_header, const cpl_table *flux_table, const <a class="el" hr [...]
-<tr class="memdesc:ga0e3832a791528896648761e02fac2b9c"><td class="mdescLeft"> </td><td class="mdescRight">Calculate response.  <a href="#ga0e3832a791528896648761e02fac2b9c"></a><br/></td></tr>
-<tr class="memitem:ga9efc933848e1bebb4766a0d10a8e9c93"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__response.html#ga9efc933848e1bebb4766a0d10a8e9c93">uves_align</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *object_header, const cpl_table *flux_table, double accuracy, char **ref_name_dynamic)</td></tr>
-<tr class="memdesc:ga9efc933848e1bebb4766a0d10a8e9c93"><td class="mdescLeft"> </td><td class="mdescRight">Match a star against a catalogue of stars.  <a href="#ga9efc933848e1bebb4766a0d10a8e9c93"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This recipe calculates the response function and the quantum detection efficiency. See man-page for details. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga85c178e57e3a92c7ce1cb47d46e84188"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_response_efficiency </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>raw_image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>rotated_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_bias</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_dark</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>mdark_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>linetable</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>linetable_header</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>dispersion_relation</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>flux_table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>atm_extinction</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>debug_mode</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>PACCURACY</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>efficiency</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>blaze_efficiency</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Calculate quantum detection efficiency. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_image</td><td>The raw image </td></tr>
-    <tr><td class="paramname">raw_header</td><td>FITS header of raw image </td></tr>
-    <tr><td class="paramname">rotated_header</td><td>Header describing the geometry of the raw image after rotation and removal of pre- and overscan areas </td></tr>
-    <tr><td class="paramname">master_bias</td><td>The master bias image for this chip, or NULL </td></tr>
-    <tr><td class="paramname">master_dark</td><td>The master dark image for this chip, or NULL </td></tr>
-    <tr><td class="paramname">mdark_header</td><td>FITS header of master dark frame </td></tr>
-    <tr><td class="paramname">ordertable</td><td>Order table describing the order locations on the raw image </td></tr>
-    <tr><td class="paramname">order_locations</td><td>The polynomial describing the order positions </td></tr>
-    <tr><td class="paramname">linetable</td><td>Length 3 array of linetable for sky, object, sky. </td></tr>
-    <tr><td class="paramname">linetable_header</td><td>Length 3 array of linetable headers for sky, object, sky. </td></tr>
-    <tr><td class="paramname">dispersion_relation</td><td>Length 3 array of dispersion relations for sky, object, sky. </td></tr>
-    <tr><td class="paramname">flux_table</td><td>Catalogue standard star fluxes </td></tr>
-    <tr><td class="paramname">atm_extinction</td><td>Atmospheric extinction coefficients </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-    <tr><td class="paramname">debug_mode</td><td>If set to true, intermediate results are saved to the current directory </td></tr>
-    <tr><td class="paramname">parameters</td><td>The recipe parameter list containing parameters for background subtraction, flat-fielding, extraction, rebinning </td></tr>
-    <tr><td class="paramname">PACCURACY</td><td>Pointing accuracy (in arcseconds) used to identify object </td></tr>
-    <tr><td class="paramname">efficiency</td><td>(out) The quantum detection efficiency table </td></tr>
-    <tr><td class="paramname">blaze_efficiency</td><td>(out) Efficiency at blaze function maximum, for each order </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The reduced spectrum </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__response__efficiency_8c_source.html#l00100">100</a> of file <a class="el" href="uves__response__efficiency_8c_source.html">uves_response_efficiency.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils_8c_source.html#l02488">uves_absolute_order()</a>, <a class="el" href="uves__response__utils_8c_source.html#l00140">uves_calculate_response()</a>, <a class="el" href="uves__utils__cpl_8c_source.html#l00375">uves_filter_image_median()</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a [...]
-
-</div>
-</div>
-<a class="anchor" id="ga0e3832a791528896648761e02fac2b9c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_calculate_response </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>spectrum_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>flux_table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>PACCURACY</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>inverse</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char ** </td>
-          <td class="paramname"><em>ref_obj_id</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Calculate response. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">spectrum</td><td>The 1d (merged) or 2d (non-merged) spectrum </td></tr>
-    <tr><td class="paramname">spectrum_header</td><td>Header describing the geometry of the input spectrum </td></tr>
-    <tr><td class="paramname">flux_table</td><td>Table of standard star fluxes </td></tr>
-    <tr><td class="paramname">raw_header</td><td>Header of the raw frame </td></tr>
-    <tr><td class="paramname">PACCURACY</td><td>Pointing accuracy (in arcseconds) used to find a unique matching object in the <em>flux_table</em> </td></tr>
-    <tr><td class="paramname">inverse</td><td>If false, flux/std_flux is calculated, if true std_flux/flux is computed. </td></tr>
-    <tr><td class="paramname">ref_obj_id</td><td>(output) reference object ID. Must be deallocated by the caller </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Response curve</dd></dl>
-<p>Undefined values (division by zero) are set to zero. </p>
-
-<p>Definition at line <a class="el" href="uves__response__utils_8c_source.html#l00140">140</a> of file <a class="el" href="uves__response__utils_8c_source.html">uves_response_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__response__utils_8c_source.html#l00257">uves_align()</a>, <a class="el" href="uves__pfits_8c_source.html#l02533">uves_pfits_get_cdelt1()</a>, <a class="el" href="uves__pfits_8c_source.html#l02461">uves_pfits_get_crval1()</a>, <a class="el" href="uves__pfits_8c_source.html#l03052">uves_pfits_get_wstart()</a>, and <a class="el" href="uves__utils_8c_source.html#l03680">uves_spline_hermit [...]
-
-<p>Referenced by <a class="el" href="uves__response__efficiency_8c_source.html#l00100">uves_response_efficiency()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga9efc933848e1bebb4766a0d10a8e9c93"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* uves_align </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>object_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>flux_table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>accuracy</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char ** </td>
-          <td class="paramname"><em>ref_name_dynamic</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Match a star against a catalogue of stars. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">object_header</td><td>Header containing the object coordinates </td></tr>
-    <tr><td class="paramname">flux_table</td><td>The catalogue of standard star coordinates and fluxes </td></tr>
-    <tr><td class="paramname">accuracy</td><td>The pointing accuracy in arcseconds </td></tr>
-    <tr><td class="paramname">ref_name_dynamic</td><td>(output) reference object ID. Must be deallocated by the caller </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Table containing the catalogue flux of the identified star.</dd></dl>
-<p>The input object coordinates are matched against the list of standard star coordinates.</p>
-<p>Exactly one reference star must match the object within the specified <em>accuracy</em>, or an error is set.</p>
-<p>The spectrum of the uniquely identified star is read from the catalogue and returned as a (2D) table. </p>
-
-<p>Definition at line <a class="el" href="uves__response__utils_8c_source.html#l00257">257</a> of file <a class="el" href="uves__response__utils_8c_source.html">uves_response_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__pfits_8c_source.html#l01264">uves_pfits_get_dec()</a>, and <a class="el" href="uves__pfits_8c_source.html#l01246">uves_pfits_get_ra()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__response-test_8c_source.html#l00215">test_3dtable()</a>, and <a class="el" href="uves__response__utils_8c_source.html#l00140">uves_calculate_response()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__response__test.html b/html/group__uves__response__test.html
deleted file mode 100644
index 4479373..0000000
--- a/html/group__uves__response__test.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Response recipe related unit tests</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Response recipe related unit tests</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga725c6509665bad47a2dfc8338b9513a2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga725c6509665bad47a2dfc8338b9513a2"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__response__test.html#ga725c6509665bad47a2dfc8338b9513a2">test_load_3dtable</a> (void)</td></tr>
-<tr class="memdesc:ga725c6509665bad47a2dfc8338b9513a2"><td class="mdescLeft"> </td><td class="mdescRight">Test of uves_align. <br/></td></tr>
-<tr class="memitem:ga0e5837c456b51889ea0c7af0e03eb661"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0e5837c456b51889ea0c7af0e03eb661"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__response__test.html#ga0e5837c456b51889ea0c7af0e03eb661">test_3dtable</a> (void)</td></tr>
-<tr class="memdesc:ga0e5837c456b51889ea0c7af0e03eb661"><td class="mdescLeft"> </td><td class="mdescRight">Test of uves_align. <br/></td></tr>
-<tr class="memitem:ga840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga840291bc02cba5474a4cb46a9b9566fe"></a>
-int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__response__test.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
-<tr class="memdesc:ga840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft"> </td><td class="mdescRight">Test 3d table usage in uves_align. <br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__scired.html b/html/group__uves__scired.html
deleted file mode 100644
index 6c105e5..0000000
--- a/html/group__uves__scired.html
+++ /dev/null
@@ -1,684 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: Science Reduction</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a> |
-<a href="#var-members">Variables</a>  </div>
-  <div class="headertitle">
-<div class="title">Recipe: Science Reduction</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga699b1c68f1d91a6b1ca600921c41d21a"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__scired.html#ga699b1c68f1d91a6b1ca600921c41d21a">scired_qclog</a> (const cpl_table *info_tbl, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, const cpl_image *raw_image, double slit, cpl_table *qclog)</td></tr>
-<tr class="memdesc:ga699b1c68f1d91a6b1ca600921c41d21a"><td class="mdescLeft"> </td><td class="mdescRight">compute science QC  <a href="#ga699b1c68f1d91a6b1ca600921c41d21a"></a><br/></td></tr>
-<tr class="memitem:ga32377202a0bcb66b410988f7c6cf51fa"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__scired.html#ga32377202a0bcb66b410988f7c6cf51fa">tflat_qclog</a> (const cpl_image *ima, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, cpl_table *qclog)</td></tr>
-<tr class="memdesc:ga32377202a0bcb66b410988f7c6cf51fa"><td class="mdescLeft"> </td><td class="mdescRight">compute tflat QC  <a href="#ga32377202a0bcb66b410988f7c6cf51fa"></a><br/></td></tr>
-<tr class="memitem:ga713adfb93b9326021b5d80b2aaa649c4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga713adfb93b9326021b5d80b2aaa649c4"></a>
-static <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td><td class="memItemRight" valign="bottom"><b>uves_paste_wave_accuracy</b> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *header_from)</td></tr>
-<tr class="memitem:ga1c491907022557327d0a5bad5281965f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__scired.html#ga1c491907022557327d0a5bad5281965f">uves_scired_define_parameters_body</a> (cpl_parameterlist *parameters, const char *recipe_id)</td></tr>
-<tr class="memdesc:ga1c491907022557327d0a5bad5281965f"><td class="mdescLeft"> </td><td class="mdescRight">Setup the recipe options.  <a href="#ga1c491907022557327d0a5bad5281965f"></a><br/></td></tr>
-<tr class="memitem:ga13b5ba0edd1afd17b652cbce19ad5a74"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga13b5ba0edd1afd17b652cbce19ad5a74"></a>
-const char * </td><td class="memItemRight" valign="bottom"><b>uves_get_pro_catg_special</b> (bool extract_is_2d, merge_method m_method)</td></tr>
-<tr class="memitem:gae1ef37fb82ed9624dcb990d250c927c9"><td class="memItemLeft" align="right" valign="top">static cpl_frame ** </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__scired.html#gae1ef37fb82ed9624dcb990d250c927c9">set_all_raw_none</a> (cpl_frameset *frames)</td></tr>
-<tr class="memdesc:gae1ef37fb82ed9624dcb990d250c927c9"><td class="mdescLeft"> </td><td class="mdescRight">Change tag of RAW frames to NONE.  <a href="#gae1ef37fb82ed9624dcb990d250c927c9"></a><br/></td></tr>
-<tr class="memitem:ga6a10de9dbd4e09a1d341a778df5ac85e"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__scired.html#ga6a10de9dbd4e09a1d341a778df5ac85e">uves_scired_process_chip</a> (const cpl_image *raw_image, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *raw_header, const <a class="el" href="group__uves__propert [...]
-<tr class="memdesc:ga6a10de9dbd4e09a1d341a778df5ac85e"><td class="mdescLeft"> </td><td class="mdescRight">Reduce one chip of a UVES science frame.  <a href="#ga6a10de9dbd4e09a1d341a778df5ac85e"></a><br/></td></tr>
-<tr class="memitem:ga0780489bfd35e6728e0d1b9c7036e119"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__scired.html#ga0780489bfd35e6728e0d1b9c7036e119">uves_reduce_scired</a> (cpl_frameset *frames, const cpl_parameterlist *parameters, const char *recipe_id, const char *starttime)</td></tr>
-<tr class="memdesc:ga0780489bfd35e6728e0d1b9c7036e119"><td class="mdescLeft"> </td><td class="mdescRight">Get the command line options and execute the data reduction.  <a href="#ga0780489bfd35e6728e0d1b9c7036e119"></a><br/></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="var-members"></a>
-Variables</h2></td></tr>
-<tr class="memitem:gaa64ed03adc65997b10c429f57667fb11"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa64ed03adc65997b10c429f57667fb11"></a>
-const char *const </td><td class="memItemRight" valign="bottom"><b>uves_scired_desc_short</b> = "Reduces a science <a class="el" href="structframe.html">frame</a>"</td></tr>
-<tr class="memitem:gab54705f6e581ddeef8895188ee2a5b16"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gab54705f6e581ddeef8895188ee2a5b16"></a>
-const char *const </td><td class="memItemRight" valign="bottom"><b>uves_scired_desc</b> = " science spectrum\n"</td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This recipe reduces a science frame. See man-page for details. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga699b1c68f1d91a6b1ca600921c41d21a"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void scired_qclog </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>info_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>raw_image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>slit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>qclog</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>compute science QC </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">info_tbl</td><td>parameters from optimal extraction </td></tr>
-    <tr><td class="paramname">raw_header</td><td>input frame FITS header </td></tr>
-    <tr><td class="paramname">raw_image</td><td>input image </td></tr>
-    <tr><td class="paramname">slit</td><td>extraction slit length </td></tr>
-    <tr><td class="paramname">qclog</td><td>QC parameters are written here </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__reduce__scired_8c_source.html#l02131">2131</a> of file <a class="el" href="uves__reduce__scired_8c_source.html">uves_reduce_scired.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__qclog_8c_source.html#l00803">uves_qclog_add_sci()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00683">uves_qclog_add_string()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga32377202a0bcb66b410988f7c6cf51fa"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void tflat_qclog </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>ima</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>qclog</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>compute tflat QC </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ima</td><td>resampled science in wavelength, order space </td></tr>
-    <tr><td class="paramname">raw_header</td><td>raw frame header </td></tr>
-    <tr><td class="paramname">qclog</td><td>QC parameters are written here </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__reduce__scired_8c_source.html#l02166">2166</a> of file <a class="el" href="uves__reduce__scired_8c_source.html">uves_reduce_scired.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__pfits_8c_source.html#l01028">uves_pfits_get_exptime()</a>, <a class="el" href="uves__pfits_8c_source.html#l01477">uves_pfits_get_insmode()</a>, <a class="el" href="uves__pfits_8c_source.html#l01495">uves_pfits_get_inspath()</a>, <a class="el"  [...]
-
-<p>Referenced by <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1c491907022557327d0a5bad5281965f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_scired_define_parameters_body </td>
-          <td>(</td>
-          <td class="paramtype">cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Setup the recipe options. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parameters</td><td>the parameterlist to fill </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>name of calling recipe </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__reduce__scired_8c_source.html#l00216">216</a> of file <a class="el" href="uves__reduce__scired_8c_source.html">uves_reduce_scired.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae1ef37fb82ed9624dcb990d250c927c9"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_frame** set_all_raw_none </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>frames</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Change tag of RAW frames to NONE. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">frames</td><td>frame set to change </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>NULL terminated array of pointers to the frames that were changed </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__reduce__scired_8c_source.html#l00274">274</a> of file <a class="el" href="uves__reduce__scired_8c_source.html">uves_reduce_scired.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6a10de9dbd4e09a1d341a778df5ac85e"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code uves_scired_process_chip </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>raw_image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>raw_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>rotated_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_bias</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_dark</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>mdark_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_flat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>mflat_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>linetable</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>linetable_header</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>dispersion_relation</em>[3], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>response_curve</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>master_response</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>response_curve_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>atm_extinction</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>debug_mode</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>x2d</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>x2d_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>fx2d</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>background</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>flatfielded_variance</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>flatfielded_variance_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>resampled_science</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>resampled_mf</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>rebinned_science</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>rebinned_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>merged_sky</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>merged_science</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>merged_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>reduced_science</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>reduced_science_error</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>cosmic_mask</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>wave_map</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>fluxcal_science</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>fluxcal_error</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>fluxcal_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>info_tbl</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>extraction_slit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>order_trace</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Reduce one chip of a UVES science frame. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">raw_image</td><td>The raw image </td></tr>
-    <tr><td class="paramname">raw_header</td><td>FITS header of raw image </td></tr>
-    <tr><td class="paramname">rotated_header</td><td>Header describing the geometry of the raw image after rotation and removal of pre- and overscan areas </td></tr>
-    <tr><td class="paramname">master_bias</td><td>The master bias image for this chip, or NULL </td></tr>
-    <tr><td class="paramname">master_dark</td><td>The master bias image for this chip, or NULL </td></tr>
-    <tr><td class="paramname">mdark_header</td><td>FITS header of master dark frame </td></tr>
-    <tr><td class="paramname">master_flat</td><td>The master flat image for this chip, or NULL </td></tr>
-    <tr><td class="paramname">mflat_header</td><td>FITS header of master flat frame </td></tr>
-    <tr><td class="paramname">mdark_header</td><td>FITS header of master dark frame </td></tr>
-    <tr><td class="paramname">ordertable</td><td>Order table describing the order locations on the raw image </td></tr>
-    <tr><td class="paramname">order_locations</td><td>The polynomial describing the order positions </td></tr>
-    <tr><td class="paramname">linetable</td><td>Length 3 array of linetables for sky, object, sky. </td></tr>
-    <tr><td class="paramname">linetable_header</td><td>Length 3 array of linetable headers for sky, object, sky. </td></tr>
-    <tr><td class="paramname">response_curve</td><td>The response curve (image of height 1) used for flux correction If non-NULL this is used for flux correction </td></tr>
-    <tr><td class="paramname">master_response</td><td>response curve as a table. If response_curve is NULL and this is non-NULL, it is used for flux correction </td></tr>
-    <tr><td class="paramname">response_curve_header</td><td>Header describing the geometry of the <em>response_curve</em>. </td></tr>
-    <tr><td class="paramname">atm_extinction</td><td>Table of atmospheric extinction coefficients. </td></tr>
-    <tr><td class="paramname">dispersion_relation</td><td>Length 3 array of dispersion relations for sky, object, sky. </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-    <tr><td class="paramname">debug_mode</td><td>If set to true, intermediate results are saved to the current directory </td></tr>
-    <tr><td class="paramname">parameters</td><td>The recipe parameter list containing parameters for background subtraction, flat-fielding, extraction, rebinning </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>name of calling recipe </td></tr>
-    <tr><td class="paramname">x2d</td><td>(output) In 2d extraction mode, the extracted spectrum </td></tr>
-    <tr><td class="paramname">x2d_header</td><td>(output) In 2d extraction mode, header of extracted spectrum </td></tr>
-    <tr><td class="paramname">fx2d</td><td>(output) In 2d extraction mode, the flat-fielded, extracted spectrum </td></tr>
-    <tr><td class="paramname">background</td><td>(output) The background that was subtracted from the raw image </td></tr>
-    <tr><td class="paramname">flatfielded_variance</td><td>(output) Variance of extracted, flat-fielded spectrum </td></tr>
-    <tr><td class="paramname">flatfielded_variance_header</td><td>(output) Header of <em>flatfielded_variance</em> </td></tr>
-    <tr><td class="paramname">resampled_science</td><td>(output) The extracted, rebinned spectrum. If flat-field method is 'extract', this spectrum was <em>not</em> flat-fielded. </td></tr>
-    <tr><td class="paramname">resampled_mf</td><td>(output) As <em>resampled_science</em>, but for the master flat-field </td></tr>
-    <tr><td class="paramname">rebinned_science</td><td>(output) The extracted, flat-fielded, rebinned spectrum </td></tr>
-    <tr><td class="paramname">rebinned_header</td><td>(output) Header of <em>rebinned_science</em> </td></tr>
-    <tr><td class="paramname">merged_sky</td><td>(output) The extracted, rebinned, merged sky spectrum </td></tr>
-    <tr><td class="paramname">merged_science</td><td>(output) The extracted, rebinned, merged object spectrum </td></tr>
-    <tr><td class="paramname">merged_header</td><td>(output) Header of <em>merged_science</em>, also applies to <em><em>reduced_science</em> and</em> <em>reduced_science_error</em> </td></tr>
-    <tr><td class="paramname">reduced_science</td><td>(output) The extracted, flat-fielded, rebinned, merged, sky-subtracted spectrum </td></tr>
-    <tr><td class="paramname">reduced_science_error</td><td>(output) The error (1 sigma) of <em>reduced_science</em> </td></tr>
-    <tr><td class="paramname">cosmic_mask</td><td>(output) In optimal extraction mode, the list of hot pixels </td></tr>
-    <tr><td class="paramname">fluxcal_science</td><td>(output) As <em>reduced_science</em> but also response corrected (if response curve was provided) </td></tr>
-    <tr><td class="paramname">fluxcal_error</td><td>(output) Error (1 sigma) of <em>fluxcal_science</em> (if response curve was provided) </td></tr>
-    <tr><td class="paramname">fluxcal_header</td><td>(output) Header describing the geometry of <em>fluxcal_science</em> and <em>fluxcal_error</em> </td></tr>
-    <tr><td class="paramname">info_tbl</td><td>(output) optimal extraction QC parameters </td></tr>
-    <tr><td class="paramname">extraction_slit</td><td>(output) extraction slit length used </td></tr>
-    <tr><td class="paramname">order_trace</td><td>(output) In optimal extraction mode, table describing the measured spatial profile</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay</dd></dl>
-<p>This function does a science reduction (see <code>uves_reduce</code>) and, if a response curve if provided, corrects for the instrument response (by moving the science spectrum to the top of the atmosphere (see <em>uves_normalize_spectrum</em>) and multiplying be the response function). </p>
-
-<p>Definition at line <a class="el" href="uves__reduce__scired_8c_source.html#l00374">374</a> of file <a class="el" href="uves__reduce__scired_8c_source.html">uves_reduce_scired.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils_8c_source.html#l02173">uves_initialize_image_header()</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__reduce__utils_8c_source.html#l00128">uves_normalize_spectrum()</a>, <a class="el" href="uves__pfits_8c_source.html#l02533">uves_pfits_get_cdelt1()</a>, <a class="el" href="uves__pfits_8c_source.html#l02461">uves_pfits_get_crval1 [...]
-
-<p>Referenced by <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0780489bfd35e6728e0d1b9c7036e119"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_reduce_scired </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>frames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>starttime</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the command line options and execute the data reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parameters</td><td>the parameters list </td></tr>
-    <tr><td class="paramname">frames</td><td>the frames list </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>the recipe name (will be written to FITS headers) </td></tr>
-    <tr><td class="paramname">starttime</td><td>time when calling recipe started </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__reduce__scired_8c_source.html#l00654">654</a> of file <a class="el" href="uves__reduce__scired_8c_source.html">uves_reduce_scired.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__reduce__scired_8c_source.html#l02131">scired_qclog()</a>, <a class="el" href="uves__reduce__scired_8c_source.html#l00274">set_all_raw_none()</a>, <a class="el" href="uves__reduce__scired_8c_source.html#l02166">tflat_qclog()</a>, <a class="el" href="uves__pfits_8c_source.html#l00681">uves_ccd_is_new()</a>, <a clas [...]
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__test.html b/html/group__uves__test.html
deleted file mode 100644
index 49b37c8..0000000
--- a/html/group__uves__test.html
+++ /dev/null
@@ -1,87 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: UVES library unit tests</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">UVES library unit tests</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gac0ef6293fdbf2c970e010fd74c7138b5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac0ef6293fdbf2c970e010fd74c7138b5"></a>
-static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__test.html#gac0ef6293fdbf2c970e010fd74c7138b5">test_gaussian_fitting</a> (void)</td></tr>
-<tr class="memdesc:gac0ef6293fdbf2c970e010fd74c7138b5"><td class="mdescLeft"> </td><td class="mdescRight">this function test the gaussian fitting <br/></td></tr>
-<tr class="memitem:ga840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
-<tr class="memdesc:ga840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft"> </td><td class="mdescRight">Various tests of low-level library functions.  <a href="#ga840291bc02cba5474a4cb46a9b9566fe"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga840291bc02cba5474a4cb46a9b9566fe"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int main </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Various tests of low-level library functions. </p>
-<p>Currently, only 2d gaussian fitting (<code>uves_fit_gaussian_2d</code> which calls <code>uves_fit_gaussian_1d_image</code> which calls <code>irplib_fit_gaussian_1d</code> which calls Levenberg-Marquardt routine) is tested. </p>
-
-<p>Definition at line <a class="el" href="uves-test_8c_source.html#l00393">393</a> of file <a class="el" href="uves-test_8c_source.html">uves-test.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves-test_8c_source.html#l00152">test_gaussian_fitting()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__test__simulate.html b/html/group__uves__test__simulate.html
deleted file mode 100644
index 0e2e421..0000000
--- a/html/group__uves__test__simulate.html
+++ /dev/null
@@ -1,215 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Create mock-up objects for unit testing</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Create mock-up objects for unit testing</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga81a0d2793233e8b9c72f1141a3168924"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__test__simulate.html#ga81a0d2793233e8b9c72f1141a3168924">create_order_table</a> (cpl_table **ordertable, <a class="el" href="struct__polynomial.html">polynomial</a> **order_locations, cpl_table **tracetable, int minorder, int maxorder, int nx)</td></tr>
-<tr class="memdesc:ga81a0d2793233e8b9c72f1141a3168924"><td class="mdescLeft"> </td><td class="mdescRight">Create order table.  <a href="#ga81a0d2793233e8b9c72f1141a3168924"></a><br/></td></tr>
-<tr class="memitem:ga6fbf196c4ff48ceb9f9a5dc64830dffe"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__test__simulate.html#ga6fbf196c4ff48ceb9f9a5dc64830dffe">create_line_table</a> (cpl_table **linetable, <a class="el" href="struct__polynomial.html">polynomial</a> **dispersion, <a class="el" href="struct__polynomial.html">polynomial</a> **abs_orders, int *firstabs, int *lastabs, int minorder, int  [...]
-<tr class="memdesc:ga6fbf196c4ff48ceb9f9a5dc64830dffe"><td class="mdescLeft"> </td><td class="mdescRight">Create line table.  <a href="#ga6fbf196c4ff48ceb9f9a5dc64830dffe"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga81a0d2793233e8b9c72f1141a3168924"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void create_order_table </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>tracetable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>minorder</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxorder</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nx</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create order table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ordertable</td><td>(output) order table </td></tr>
-    <tr><td class="paramname">order_locations</td><td>(output) the polynomial </td></tr>
-    <tr><td class="paramname">tracetable</td><td>(output) fibre mask </td></tr>
-    <tr><td class="paramname">minorder</td><td>order range </td></tr>
-    <tr><td class="paramname">maxorder</td><td>order range </td></tr>
-    <tr><td class="paramname">nx</td><td>sampling step along x (?) </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__test__simulate_8c_source.html#l00110">110</a> of file <a class="el" href="uves__test__simulate_8c_source.html">uves_test_simulate.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l00772">uves_propertylist_new()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__test__simulate_8c_source.html#l00218">create_line_table()</a>, <a class="el" href="uves__extract-test_8c_source.html#l00185">test_extract()</a>, <a class="el" href="uves__extract-test_8c_source.html#l00382">test_iterate()</a>, and <a class="el" href="uves__dfs-test_8c_source.html#l00268">test_load_linetable()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6fbf196c4ff48ceb9f9a5dc64830dffe"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void create_line_table </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>linetable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td>
-          <td class="paramname"><em>dispersion</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td>
-          <td class="paramname"><em>abs_orders</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>firstabs</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>lastabs</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>minorder</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxorder</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nx</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create line table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">linetable</td><td>(output) line table </td></tr>
-    <tr><td class="paramname">dispersion</td><td>(output) dispersion </td></tr>
-    <tr><td class="paramname">abs_orders</td><td>(output) map from relative to absolute orders (x,y) </td></tr>
-    <tr><td class="paramname">firstabs</td><td>(output) if non-NULL, first absolute order number abs_orders must be provided </td></tr>
-    <tr><td class="paramname">lastabs</td><td>(output) if non-NULL, last absolute order number abs_orders must be provided </td></tr>
-    <tr><td class="paramname">minorder</td><td>minimum order </td></tr>
-    <tr><td class="paramname">maxorder</td><td>maximum order </td></tr>
-    <tr><td class="paramname">nx</td><td>sampling size </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__test__simulate_8c_source.html#l00218">218</a> of file <a class="el" href="uves__test__simulate_8c_source.html">uves_test_simulate.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__test__simulate_8c_source.html#l00110">create_order_table()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>, and <a class="el" href="uves__utils_8c_sourc [...]
-
-<p>Referenced by <a class="el" href="uves__dfs-test_8c_source.html#l00268">test_load_linetable()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__tflat.html b/html/group__uves__tflat.html
deleted file mode 100644
index 0690264..0000000
--- a/html/group__uves__tflat.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: TFlat Reduction</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Recipe: TFlat Reduction</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>See man-page for details. </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__time.html b/html/group__uves__time.html
deleted file mode 100644
index 13aed21..0000000
--- a/html/group__uves__time.html
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Get date/time, possibly in ISO8601 format</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Get date/time, possibly in ISO8601 format</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga1db9a9647c947cd72abe846a12d483fc"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__time.html#ga1db9a9647c947cd72abe846a12d483fc">uves_get_datetime_iso8601</a> (void)</td></tr>
-<tr class="memdesc:ga1db9a9647c947cd72abe846a12d483fc"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current date and time as a static string.  <a href="#ga1db9a9647c947cd72abe846a12d483fc"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module contains various utilities to get the current date/time, and possibly format it according to the ISO 8601 format. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga1db9a9647c947cd72abe846a12d483fc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* uves_get_datetime_iso8601 </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Returns the current date and time as a static string. </p>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to statically allocated string</dd></dl>
-<p>Build and return a string containing the date of today and the current time in ISO8601 format. The returned pointer points to a statically allocated string in the function, so no need to free it. </p>
-
-<p>Definition at line <a class="el" href="uves__time_8c_source.html#l00118">118</a> of file <a class="el" href="uves__time_8c_source.html">uves_time.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l01909">uves_initialize()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00225">uves_save_paf()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__utils.html b/html/group__uves__utils.html
deleted file mode 100644
index 2cd39b2..0000000
--- a/html/group__uves__utils.html
+++ /dev/null
@@ -1,3253 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Utility functions</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#define-members">Macros</a> |
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Utility functions</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
-Macros</h2></td></tr>
-<tr class="memitem:gaa6f08c08604f669d5248a50db05095c6"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gaa6f08c08604f669d5248a50db05095c6">REQ_CPL_MAJOR</a>   3</td></tr>
-<tr class="memdesc:gaa6f08c08604f669d5248a50db05095c6"><td class="mdescLeft"> </td><td class="mdescRight">Check compile time and runtime library versions.  <a href="#gaa6f08c08604f669d5248a50db05095c6"></a><br/></td></tr>
-<tr class="memitem:gae2b8645924a1fcbfb414a387b6f33b3b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae2b8645924a1fcbfb414a387b6f33b3b"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>REQ_CPL_MINOR</b>   1</td></tr>
-<tr class="memitem:gaab1b7d291b65c497a7a4d32822095d10"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaab1b7d291b65c497a7a4d32822095d10"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>REQ_CPL_MICRO</b>   0</td></tr>
-<tr class="memitem:gaa0a0b8fa9e125de9c214da98e8be71c7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa0a0b8fa9e125de9c214da98e8be71c7"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>REQ_QF_MAJOR</b>   6</td></tr>
-<tr class="memitem:ga9abd878864bfd54b300f44404c04dbf2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9abd878864bfd54b300f44404c04dbf2"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>REQ_QF_MINOR</b>   2</td></tr>
-<tr class="memitem:ga4fe1c476d4c44db597fd6f16f962185e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga4fe1c476d4c44db597fd6f16f962185e"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>REQ_QF_MICRO</b>   0</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gaea6246a88791de8614f3af35802dc644"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gaea6246a88791de8614f3af35802dc644">uves_cosrout</a> (cpl_image *ima, cpl_image **msk, const double ron, const double gain, const int ns, const double sky, const double rc, cpl_image **flt, cpl_image **out)</td></tr>
-<tr class="memdesc:gaea6246a88791de8614f3af35802dc644"><td class="mdescLeft"> </td><td class="mdescRight">Remove cosmic ray events on single ccd exposure and replace them by interpolation on neighbourhood pixels.  <a href="#gaea6246a88791de8614f3af35802dc644"></a><br/></td></tr>
-<tr class="memitem:gaad319593f3e530d1c00b60afc64eea6e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaad319593f3e530d1c00b60afc64eea6e"></a>
-static cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_find_next</b> (cpl_image **msk, const int first_y, int *next_x, int *next_y)</td></tr>
-<tr class="memitem:ga12da84d655b3aa529fbe8ecf3b04f096"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga12da84d655b3aa529fbe8ecf3b04f096"></a>
-static cpl_error_code </td><td class="memItemRight" valign="bottom"><b>uves_sort</b> (const int kmax, float *inp, int *ord)</td></tr>
-<tr class="memitem:gaaed2a3318adb62b1725bc28273757e58"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gaaed2a3318adb62b1725bc28273757e58">uves_rcosmic</a> (cpl_image *ima, cpl_image **flt, cpl_image **out, cpl_image **msk, const double sky, const double ron, const double gain, const int ns, const double rc)</td></tr>
-<tr class="memdesc:gaaed2a3318adb62b1725bc28273757e58"><td class="mdescLeft"> </td><td class="mdescRight">Remove cosmic ray events on single ccd exposure and replace them by interpolation on neighbourhood pixels.  <a href="#gaaed2a3318adb62b1725bc28273757e58"></a><br/></td></tr>
-<tr class="memitem:ga8927e9c74fcd2ff11122490e4f42fe90"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga8927e9c74fcd2ff11122490e4f42fe90">uves_ksigma_vector</a> (cpl_vector *values, double klow, double khigh, int kiter)</td></tr>
-<tr class="memdesc:ga8927e9c74fcd2ff11122490e4f42fe90"><td class="mdescLeft"> </td><td class="mdescRight">Perform kappa-sigma clip.  <a href="#ga8927e9c74fcd2ff11122490e4f42fe90"></a><br/></td></tr>
-<tr class="memitem:gad61bad9fe3d7614ebd9de472f600c6eb"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gad61bad9fe3d7614ebd9de472f600c6eb">uves_ksigma_stack</a> (const cpl_imagelist *imlist, double klow, double khigh, int kiter)</td></tr>
-<tr class="memdesc:gad61bad9fe3d7614ebd9de472f600c6eb"><td class="mdescLeft"> </td><td class="mdescRight">Stack images using k-sigma clipping.  <a href="#gad61bad9fe3d7614ebd9de472f600c6eb"></a><br/></td></tr>
-<tr class="memitem:gae7a22d7bd34d61c32515d570e512e189"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gae7a22d7bd34d61c32515d570e512e189">uves_get_wave_map</a> (cpl_image *ima_sci, const char *context, const cpl_parameterlist *parameters, const cpl_table *ordertable, const cpl_table *linetable, const <a class="el" href="struct__polynomial.html">polynomial</a> *order_locations, c [...]
-<tr class="memdesc:gae7a22d7bd34d61c32515d570e512e189"><td class="mdescLeft"> </td><td class="mdescRight">Generates wave map.  <a href="#gae7a22d7bd34d61c32515d570e512e189"></a><br/></td></tr>
-<tr class="memitem:gaabfabe05e25ffc4af017f4e29b22a56e"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gaabfabe05e25ffc4af017f4e29b22a56e">uves_flat_create_normalized_master2</a> (cpl_imagelist *flats, const cpl_table *ordertable, const <a class="el" href="struct__polynomial.html">polynomial</a> *order_locations, const cpl_image *mflat)</td></tr>
-<tr class="memdesc:gaabfabe05e25ffc4af017f4e29b22a56e"><td class="mdescLeft"> </td><td class="mdescRight">Stack images using k-sigma clipping.  <a href="#gaabfabe05e25ffc4af017f4e29b22a56e"></a><br/></td></tr>
-<tr class="memitem:gaa6e2f1554b5345868a2f71604a42409b"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gaa6e2f1554b5345868a2f71604a42409b">uves_flat_create_normalized_master</a> (cpl_imagelist *flats, const cpl_table *ordertable, const <a class="el" href="struct__polynomial.html">polynomial</a> *order_locations, const cpl_vector *gain_vals, double *fnoise)</td></tr>
-<tr class="memdesc:gaa6e2f1554b5345868a2f71604a42409b"><td class="mdescLeft"> </td><td class="mdescRight">Stack images using k-sigma clipping.  <a href="#gaa6e2f1554b5345868a2f71604a42409b"></a><br/></td></tr>
-<tr class="memitem:ga003a5b56bc7da0142638881e47006716"><td class="memItemLeft" align="right" valign="top">cpl_parameterlist * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga003a5b56bc7da0142638881e47006716">uves_parameterlist_duplicate</a> (const cpl_parameterlist *pin)</td></tr>
-<tr class="memdesc:ga003a5b56bc7da0142638881e47006716"><td class="mdescLeft"> </td><td class="mdescRight">Extract frames with given tag from frameset.  <a href="#ga003a5b56bc7da0142638881e47006716"></a><br/></td></tr>
-<tr class="memitem:ga2a5caaaeaa2b6c3aac70fe5b01be9487"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487">uves_string_toupper</a> (char *s)</td></tr>
-<tr class="memdesc:ga2a5caaaeaa2b6c3aac70fe5b01be9487"><td class="mdescLeft"> </td><td class="mdescRight">Convert all lowercase characters in a string into uppercase characters.  <a href="#ga2a5caaaeaa2b6c3aac70fe5b01be9487"></a><br/></td></tr>
-<tr class="memitem:gaaa9ef34eb0091a167b88ed0cf17b758c"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gaaa9ef34eb0091a167b88ed0cf17b758c">uves_string_tolower</a> (char *s)</td></tr>
-<tr class="memdesc:gaaa9ef34eb0091a167b88ed0cf17b758c"><td class="mdescLeft"> </td><td class="mdescRight">Convert all uppercase characters in a string into lowercase characters.  <a href="#gaaa9ef34eb0091a167b88ed0cf17b758c"></a><br/></td></tr>
-<tr class="memitem:ga5d332ad2d1f28993e9c2db3154b2236b"><td class="memItemLeft" align="right" valign="top">cpl_frameset * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga5d332ad2d1f28993e9c2db3154b2236b">uves_frameset_extract</a> (const cpl_frameset *frames, const char *tag)</td></tr>
-<tr class="memdesc:ga5d332ad2d1f28993e9c2db3154b2236b"><td class="mdescLeft"> </td><td class="mdescRight">Extract frames with given tag from frameset.  <a href="#ga5d332ad2d1f28993e9c2db3154b2236b"></a><br/></td></tr>
-<tr class="memitem:ga42520f7d747ed8b56ea4a48a12757054"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054">uves_pow_int</a> (double x, int y)</td></tr>
-<tr class="memdesc:ga42520f7d747ed8b56ea4a48a12757054"><td class="mdescLeft"> </td><td class="mdescRight">Calculate x to the y'th.  <a href="#ga42520f7d747ed8b56ea4a48a12757054"></a><br/></td></tr>
-<tr class="memitem:ga576094df329c3bb87a80a251007400a6"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga576094df329c3bb87a80a251007400a6">uves_get_version</a> (int *major, int *minor, int *micro)</td></tr>
-<tr class="memdesc:ga576094df329c3bb87a80a251007400a6"><td class="mdescLeft"> </td><td class="mdescRight">Get UVES library version number.  <a href="#ga576094df329c3bb87a80a251007400a6"></a><br/></td></tr>
-<tr class="memitem:gadebc096a23126aea985ce9f492e62cf4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4">uves_get_version_binary</a> (void)</td></tr>
-<tr class="memdesc:gadebc096a23126aea985ce9f492e62cf4"><td class="mdescLeft"> </td><td class="mdescRight">Get UVES library binary version number.  <a href="#gadebc096a23126aea985ce9f492e62cf4"></a><br/></td></tr>
-<tr class="memitem:gae14eb4ed643b704af7b942f55eac9575"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gae14eb4ed643b704af7b942f55eac9575">uves_get_license</a> (void)</td></tr>
-<tr class="memdesc:gae14eb4ed643b704af7b942f55eac9575"><td class="mdescLeft"> </td><td class="mdescRight">Get the pipeline copyright and license.  <a href="#gae14eb4ed643b704af7b942f55eac9575"></a><br/></td></tr>
-<tr class="memitem:ga982e941690a52132bba5f2bbe300f719"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga982e941690a52132bba5f2bbe300f719"></a>
-void </td><td class="memItemRight" valign="bottom"><b>uves_check_version</b> (void)</td></tr>
-<tr class="memitem:gab22cde2fd3c6fcee8f63c8b27431f0be"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gab22cde2fd3c6fcee8f63c8b27431f0be">uves_end</a> (const char *recipe_id, const cpl_frameset *frames)</td></tr>
-<tr class="memdesc:gab22cde2fd3c6fcee8f63c8b27431f0be"><td class="mdescLeft"> </td><td class="mdescRight">Recipe termination.  <a href="#gab22cde2fd3c6fcee8f63c8b27431f0be"></a><br/></td></tr>
-<tr class="memitem:ga91713592f345a0d1a44e37a50202d6ed"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga91713592f345a0d1a44e37a50202d6ed">uves_initialize</a> (cpl_frameset *frames, const cpl_parameterlist *parlist, const char *recipe_id, const char *short_descr)</td></tr>
-<tr class="memdesc:ga91713592f345a0d1a44e37a50202d6ed"><td class="mdescLeft"> </td><td class="mdescRight">Recipe initialization.  <a href="#ga91713592f345a0d1a44e37a50202d6ed"></a><br/></td></tr>
-<tr class="memitem:ga1f407a71fc1fd3d5d0d83fdc141669eb"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga1f407a71fc1fd3d5d0d83fdc141669eb">uves_average_images</a> (const cpl_image *image1, const cpl_image *noise1, const cpl_image *image2, const cpl_image *noise2, cpl_image **noise)</td></tr>
-<tr class="memdesc:ga1f407a71fc1fd3d5d0d83fdc141669eb"><td class="mdescLeft"> </td><td class="mdescRight">Optimally average images.  <a href="#ga1f407a71fc1fd3d5d0d83fdc141669eb"></a><br/></td></tr>
-<tr class="memitem:ga5beb7a6ed53b7f1a4442189d47af0e37"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37">uves_initialize_image_header</a> (const char *ctype1, const char *ctype2, const char *cunit1, const char *cunit2, const char *bunit, const doubl [...]
-<tr class="memdesc:ga5beb7a6ed53b7f1a4442189d47af0e37"><td class="mdescLeft"> </td><td class="mdescRight">Initialize image header.  <a href="#ga5beb7a6ed53b7f1a4442189d47af0e37"></a><br/></td></tr>
-<tr class="memitem:gaefe47144b27fa36ac8a024aa7813bce7"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7">uves_define_noise</a> (const cpl_image *image, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *image_header, int ncom, enum uves_chip chip)</td></tr>
-<tr class="memdesc:gaefe47144b27fa36ac8a024aa7813bce7"><td class="mdescLeft"> </td><td class="mdescRight">Create noise image.  <a href="#gaefe47144b27fa36ac8a024aa7813bce7"></a><br/></td></tr>
-<tr class="memitem:gaab60ba58a3dc620bf79a91ebde2751b3"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gaab60ba58a3dc620bf79a91ebde2751b3">uves_subtract_bias</a> (cpl_image *image, const cpl_image *master_bias)</td></tr>
-<tr class="memdesc:gaab60ba58a3dc620bf79a91ebde2751b3"><td class="mdescLeft"> </td><td class="mdescRight">Subtract bias.  <a href="#gaab60ba58a3dc620bf79a91ebde2751b3"></a><br/></td></tr>
-<tr class="memitem:gaa065c666cf2f7a17a0d20f42e742a793"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gaa065c666cf2f7a17a0d20f42e742a793">uves_subtract_dark</a> (cpl_image *image, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *image_header, const cpl_image *master_dark, const <a class="el" href="group__uves_ [...]
-<tr class="memdesc:gaa065c666cf2f7a17a0d20f42e742a793"><td class="mdescLeft"> </td><td class="mdescRight">Subtract dark.  <a href="#gaa065c666cf2f7a17a0d20f42e742a793"></a><br/></td></tr>
-<tr class="memitem:ga579bc295bb9d73af0b052f37b576f552"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga579bc295bb9d73af0b052f37b576f552">uves_absolute_order</a> (int first_abs_order, int last_abs_order, int relative_order)</td></tr>
-<tr class="memdesc:ga579bc295bb9d73af0b052f37b576f552"><td class="mdescLeft"> </td><td class="mdescRight">Get the absolute order number.  <a href="#ga579bc295bb9d73af0b052f37b576f552"></a><br/></td></tr>
-<tr class="memitem:ga8ec4a0e22ac62eaed019f740acf6810d"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga8ec4a0e22ac62eaed019f740acf6810d">uves_average_reject</a> (cpl_table *t, const char *column, const char *residual2, double kappa)</td></tr>
-<tr class="memdesc:ga8ec4a0e22ac62eaed019f740acf6810d"><td class="mdescLeft"> </td><td class="mdescRight">Get average with iterative rejection.  <a href="#ga8ec4a0e22ac62eaed019f740acf6810d"></a><br/></td></tr>
-<tr class="memitem:ga3b69d3e3f541c3e6744ebf80357da4e3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3">uves_polynomial_regression_1d</a> (cpl_table *t, const char *X, const char *Y, const char *sigmaY, int degree, const char *polynomial_fit, const char *residual_square, double *mean_squared_erro [...]
-<tr class="memdesc:ga3b69d3e3f541c3e6744ebf80357da4e3"><td class="mdescLeft"> </td><td class="mdescRight">Fit a 1d polynomial to two table columns.  <a href="#ga3b69d3e3f541c3e6744ebf80357da4e3"></a><br/></td></tr>
-<tr class="memitem:gafc0808f13c677459f41a27ad2c28a6f0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0">uves_polynomial_regression_2d</a> (cpl_table *t, const char *X1, const char *X2, const char *Y, const char *sigmaY, int degree1, int degree2, const char *polynomial_fit, const char *residual_sq [...]
-<tr class="memdesc:gafc0808f13c677459f41a27ad2c28a6f0"><td class="mdescLeft"> </td><td class="mdescRight">Fit a 2d polynomial to three table columns.  <a href="#gafc0808f13c677459f41a27ad2c28a6f0"></a><br/></td></tr>
-<tr class="memitem:ga0afd7f093baf963bc468b142b2fe5a7b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b">uves_polynomial_regression_2d_autodegree</a> (cpl_table *t, const char *X1, const char *X2, const char *Y, const char *sigmaY, const char *polynomial_fit, const char *residual_square, const cha [...]
-<tr class="memdesc:ga0afd7f093baf963bc468b142b2fe5a7b"><td class="mdescLeft"> </td><td class="mdescRight">Fit a 2d polynomial to three table columns.  <a href="#ga0afd7f093baf963bc468b142b2fe5a7b"></a><br/></td></tr>
-<tr class="memitem:ga99e9592bc265e99533524a996b462ef4"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4">uves_remove_string_prefix</a> (const char *s, const char *prefix)</td></tr>
-<tr class="memdesc:ga99e9592bc265e99533524a996b462ef4"><td class="mdescLeft"> </td><td class="mdescRight">Remove named prefix from string.  <a href="#ga99e9592bc265e99533524a996b462ef4"></a><br/></td></tr>
-<tr class="memitem:ga81ac7cec9a26af57d8e43728c004a072"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga81ac7cec9a26af57d8e43728c004a072">uves_gaussrand</a> (void)</td></tr>
-<tr class="memdesc:ga81ac7cec9a26af57d8e43728c004a072"><td class="mdescLeft"> </td><td class="mdescRight">Pseudo-random gaussian distributed number.  <a href="#ga81ac7cec9a26af57d8e43728c004a072"></a><br/></td></tr>
-<tr class="memitem:ga182ae551020b196be2e177c09f16b220"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga182ae551020b196be2e177c09f16b220">uves_spline_hermite_table</a> (double xp, const cpl_table *t, const char *column_x, const char *column_y, int *istart)</td></tr>
-<tr class="memdesc:ga182ae551020b196be2e177c09f16b220"><td class="mdescLeft"> </td><td class="mdescRight">Spline interpolation based on Hermite polynomials.  <a href="#ga182ae551020b196be2e177c09f16b220"></a><br/></td></tr>
-<tr class="memitem:gaa3c7eb6c7f122eb98af78d5cab6cb122"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gaa3c7eb6c7f122eb98af78d5cab6cb122">uves_spline_hermite</a> (double xp, const double *x, const double *y, int n, int *istart)</td></tr>
-<tr class="memdesc:gaa3c7eb6c7f122eb98af78d5cab6cb122"><td class="mdescLeft"> </td><td class="mdescRight">Spline interpolation based on Hermite polynomials.  <a href="#gaa3c7eb6c7f122eb98af78d5cab6cb122"></a><br/></td></tr>
-<tr class="memitem:gac567d2b17fd517da5e872f292c203339"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gac567d2b17fd517da5e872f292c203339">uves_spline_cubic</a> (double xp, double *x, float *y, float *y2, int n, int *kstart)</td></tr>
-<tr class="memdesc:gac567d2b17fd517da5e872f292c203339"><td class="mdescLeft"> </td><td class="mdescRight">Natural cubic-spline interpolation.  <a href="#gac567d2b17fd517da5e872f292c203339"></a><br/></td></tr>
-<tr class="memitem:gafe2dc57751c934dd70ebc93c0e25ee18"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gafe2dc57751c934dd70ebc93c0e25ee18">uves_table_is_sorted_double</a> (const cpl_table *t, const char *column, const bool reverse)</td></tr>
-<tr class="memdesc:gafe2dc57751c934dd70ebc93c0e25ee18"><td class="mdescLeft"> </td><td class="mdescRight">Determine if a table is sorted.  <a href="#gafe2dc57751c934dd70ebc93c0e25ee18"></a><br/></td></tr>
-<tr class="memitem:ga5498ccadef9be3eee6cfacfac75c7478"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga5498ccadef9be3eee6cfacfac75c7478">uves_ordertable_traces_new</a> (void)</td></tr>
-<tr class="memdesc:ga5498ccadef9be3eee6cfacfac75c7478"><td class="mdescLeft"> </td><td class="mdescRight">Create the table that describes fibre traces.  <a href="#ga5498ccadef9be3eee6cfacfac75c7478"></a><br/></td></tr>
-<tr class="memitem:gab4d35d91d7acd120872d427842b13942"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gab4d35d91d7acd120872d427842b13942">uves_ordertable_traces_add</a> (cpl_table *traces, int fibre_ID, double fibre_offset, int fibre_mask)</td></tr>
-<tr class="memdesc:gab4d35d91d7acd120872d427842b13942"><td class="mdescLeft"> </td><td class="mdescRight">Add a trace.  <a href="#gab4d35d91d7acd120872d427842b13942"></a><br/></td></tr>
-<tr class="memitem:ga7734a51460651fa363eacdf284986447"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga7734a51460651fa363eacdf284986447">uves_tablename_remove_units</a> (const char *tname)</td></tr>
-<tr class="memdesc:ga7734a51460651fa363eacdf284986447"><td class="mdescLeft"> </td><td class="mdescRight">Remove column units from a table.  <a href="#ga7734a51460651fa363eacdf284986447"></a><br/></td></tr>
-<tr class="memitem:ga613ac59edcddc7ba24d4bf6d5a563c35"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga613ac59edcddc7ba24d4bf6d5a563c35">uves_tablenames_unify_units</a> (const char *tname2, const char *tname1)</td></tr>
-<tr class="memdesc:ga613ac59edcddc7ba24d4bf6d5a563c35"><td class="mdescLeft"> </td><td class="mdescRight">Unify column units in tables.  <a href="#ga613ac59edcddc7ba24d4bf6d5a563c35"></a><br/></td></tr>
-<tr class="memitem:ga7d2ec6462cf581bf7172368747e5f9d6"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga7d2ec6462cf581bf7172368747e5f9d6">uves_table_remove_units</a> (cpl_table **table)</td></tr>
-<tr class="memdesc:ga7d2ec6462cf581bf7172368747e5f9d6"><td class="mdescLeft"> </td><td class="mdescRight">Remove column units from a table.  <a href="#ga7d2ec6462cf581bf7172368747e5f9d6"></a><br/></td></tr>
-<tr class="memitem:ga42288426fcfd847780e7f412756c55db"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga42288426fcfd847780e7f412756c55db">uves_table_unify_units</a> (cpl_table **table2, cpl_table **table1)</td></tr>
-<tr class="memdesc:ga42288426fcfd847780e7f412756c55db"><td class="mdescLeft"> </td><td class="mdescRight">Unify column units of table2 to table1.  <a href="#ga42288426fcfd847780e7f412756c55db"></a><br/></td></tr>
-<tr class="memitem:ga6ec891ebf5e364519c678c11600a35e0"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga6ec891ebf5e364519c678c11600a35e0">fmoffa_i</a> (float x, const double a[], double *y, double dyda[])</td></tr>
-<tr class="memdesc:ga6ec891ebf5e364519c678c11600a35e0"><td class="mdescLeft"> </td><td class="mdescRight">This subroutine gives the value of the Moffat (beta=4)+ linear functions at pixel of coordinates x estimated at one point.  <a href="#ga6ec891ebf5e364519c678c11600a35e0"></a><br/></td></tr>
-<tr class="memitem:gab2caa5d2f377b40374ac88e708f739b7"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gab2caa5d2f377b40374ac88e708f739b7">fmoffa_c</a> (float x, const double a[], double *y, double dyda[])</td></tr>
-<tr class="memdesc:gab2caa5d2f377b40374ac88e708f739b7"><td class="mdescLeft"> </td><td class="mdescRight">Moffat profile.  <a href="#gab2caa5d2f377b40374ac88e708f739b7"></a><br/></td></tr>
-<tr class="memitem:ga32f63d655b7a15cb65c59f6ed9153a69"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga32f63d655b7a15cb65c59f6ed9153a69">uves_moffat</a> (const double x[], const double a[], double *result)</td></tr>
-<tr class="memdesc:ga32f63d655b7a15cb65c59f6ed9153a69"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate a Moffat.  <a href="#ga32f63d655b7a15cb65c59f6ed9153a69"></a><br/></td></tr>
-<tr class="memitem:ga3268b9eca855e33e38a5bd58c5d512c0"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga3268b9eca855e33e38a5bd58c5d512c0">uves_moffat_derivative</a> (const double x[], const double a[], double result[])</td></tr>
-<tr class="memdesc:ga3268b9eca855e33e38a5bd58c5d512c0"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate Moffat derivative.  <a href="#ga3268b9eca855e33e38a5bd58c5d512c0"></a><br/></td></tr>
-<tr class="memitem:gaeec991a9bd1a99f0141d9d2a9304f00c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c">uves_gauss</a> (const double x[], const double a[], double *result)</td></tr>
-<tr class="memdesc:gaeec991a9bd1a99f0141d9d2a9304f00c"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate a gaussian.  <a href="#gaeec991a9bd1a99f0141d9d2a9304f00c"></a><br/></td></tr>
-<tr class="memitem:ga6cd21b8becb2f077f455e47e35e0beea"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea">uves_gauss_derivative</a> (const double x[], const double a[], double result[])</td></tr>
-<tr class="memdesc:ga6cd21b8becb2f077f455e47e35e0beea"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate the derivatives of a gaussian.  <a href="#ga6cd21b8becb2f077f455e47e35e0beea"></a><br/></td></tr>
-<tr class="memitem:ga9f3e7e9d99f1b9785c335cc1a8ecb49f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga9f3e7e9d99f1b9785c335cc1a8ecb49f">uves_gauss_linear</a> (const double x[], const double a[], double *result)</td></tr>
-<tr class="memdesc:ga9f3e7e9d99f1b9785c335cc1a8ecb49f"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate a gaussian with linear background.  <a href="#ga9f3e7e9d99f1b9785c335cc1a8ecb49f"></a><br/></td></tr>
-<tr class="memitem:ga98837a7122178c9d18c99174bfd53d9b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga98837a7122178c9d18c99174bfd53d9b">uves_gauss_linear_derivative</a> (const double x[], const double a[], double result[])</td></tr>
-<tr class="memdesc:ga98837a7122178c9d18c99174bfd53d9b"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate the derivatives of a gaussian with linear background.  <a href="#ga98837a7122178c9d18c99174bfd53d9b"></a><br/></td></tr>
-<tr class="memitem:ga7146e7bab312652fdb0a9e88e838ef8d"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga7146e7bab312652fdb0a9e88e838ef8d">uves_create_image</a> (uves_iterate_position *pos, enum uves_chip chip, const cpl_image *spectrum, const cpl_image *sky, const cpl_image *cosmic_image, const uves_extract_profile *profile, cpl_image **image_noise, <a class="el" href="group__uv [...]
-<tr class="memdesc:ga7146e7bab312652fdb0a9e88e838ef8d"><td class="mdescLeft"> </td><td class="mdescRight">Reconstruct echelle image from spectrum.  <a href="#ga7146e7bab312652fdb0a9e88e838ef8d"></a><br/></td></tr>
-<tr class="memitem:ga60f54c7fc4b06d4d5568a11b8a34b048"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga60f54c7fc4b06d4d5568a11b8a34b048"></a>
-void </td><td class="memItemRight" valign="bottom"><b>uves_frameset_dump</b> (cpl_frameset *set)</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="member-group"></a>
-uves_image_smooth_x</h2></td></tr>
-<tr><td class="ititle" colspan="2"><p><a class="anchor" id="amgrp7acaffbdce3f6a8fcfe86e7024de4a5e"></a>  Smooth an image using a simple mean. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">inp</td><td>Image to shift. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated image. </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__uves__utils.html#gaa3c7eb6c7f122eb98af78d5cab6cb122" title="Spline interpolation based on Hermite polynomials.">uves_spline_hermite</a> </dd></dl>
-<p>This function interpolate an image using hermite splines.</p>
-<p>The returned image is a newly allocated object, it must be deallocated using uves_image_delete(). </p>
-</td></tr>
-<tr class="memitem:gaeeb17229525912d20c2987a4e8dcee6f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaeeb17229525912d20c2987a4e8dcee6f"></a>
-cpl_image * </td><td class="memItemRight" valign="bottom"><b>uves_image_smooth_x</b> (cpl_image *inp, const int r)</td></tr>
-<tr class="memitem:gac3fd5fb33eba5d655fc243ff356bcdcb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac3fd5fb33eba5d655fc243ff356bcdcb"></a>
-cpl_image * </td><td class="memItemRight" valign="bottom"><b>uves_image_smooth_y</b> (cpl_image *inp, const int r)</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="member-group"></a>
-uves_image_smooth_mean_x</h2></td></tr>
-<tr><td class="ititle" colspan="2"><p><a class="anchor" id="amgrpaa2dafc4d6f671d3c3e992d476516e22"></a>  Smooth an image using a simple mean. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">inp</td><td>Image to shift. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated image. </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__uves__utils.html#gaa3c7eb6c7f122eb98af78d5cab6cb122" title="Spline interpolation based on Hermite polynomials.">uves_spline_hermite</a> </dd></dl>
-<p>This function interpolate an image using hermite splines.</p>
-<p>The returned image is a newly allocated object, it must be deallocated using uves_image_delete(). </p>
-</td></tr>
-<tr class="memitem:ga93dbb409bbd9a6b2a81dac3bc8d57733"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga93dbb409bbd9a6b2a81dac3bc8d57733"></a>
-cpl_image * </td><td class="memItemRight" valign="bottom"><b>uves_image_smooth_mean_x</b> (cpl_image *inp, const int r)</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="member-group"></a>
-uves_image_smooth_median_x</h2></td></tr>
-<tr><td class="ititle" colspan="2"><p><a class="anchor" id="amgrpc3767946d379811623698dc72f6db250"></a>  Smooth an image using a simple mean. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">inp</td><td>Image to shift. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated image. </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__uves__utils.html#gaa3c7eb6c7f122eb98af78d5cab6cb122" title="Spline interpolation based on Hermite polynomials.">uves_spline_hermite</a> </dd></dl>
-<p>This function interpolate an image using hermite splines.</p>
-<p>The returned image is a newly allocated object, it must be deallocated using uves_image_delete(). </p>
-</td></tr>
-<tr class="memitem:ga5a8a79b450b996dcaa97c3f2a2a56655"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5a8a79b450b996dcaa97c3f2a2a56655"></a>
-cpl_image * </td><td class="memItemRight" valign="bottom"><b>uves_image_smooth_median_x</b> (cpl_image *inp, const int r)</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="member-group"></a>
-uves_image_smooth_fft</h2></td></tr>
-<tr><td class="ititle" colspan="2"><p><a class="anchor" id="amgrp63e16625264ac6083a01b40aa3da2814"></a>  Smooth an image using a FFT. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">inp</td><td>Image to filter </td></tr>
-    <tr><td class="paramname">fx</td><td>Image to filter </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated image.  This function applies a lowpass spatial filter of frequency fy along Y.</dd></dl>
-<p>The returned image is a newly allocated object, it must be deallocated using uves_free_image(). </p>
-</td></tr>
-<tr class="memitem:gab6d9ffe3669b75518bf7108681c52fa6"><td class="memItemLeft" align="right" valign="top">static cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gab6d9ffe3669b75518bf7108681c52fa6">uves_gen_lowpass</a> (const int xs, const int ys, const double sigma_x, const double sigma_y)</td></tr>
-<tr class="memdesc:gab6d9ffe3669b75518bf7108681c52fa6"><td class="mdescLeft"> </td><td class="mdescRight">Generate a low pass filter for FFT convolution .  <a href="#gab6d9ffe3669b75518bf7108681c52fa6"></a><br/></td></tr>
-<tr class="memitem:gadff34d910bf9b353a6d69679425e3eed"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gadff34d910bf9b353a6d69679425e3eed"></a>
-cpl_image * </td><td class="memItemRight" valign="bottom"><b>uves_image_smooth_fft</b> (cpl_image *inp, const int fx)</td></tr>
-<tr class="memitem:ga9a60246b0b018cbee0593ced9361484f"><td class="memItemLeft" align="right" valign="top">cpl_vector * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga9a60246b0b018cbee0593ced9361484f">uves_imagelist_get_clean_mean_levels</a> (cpl_imagelist *iml, double kappa)</td></tr>
-<tr class="memdesc:ga9a60246b0b018cbee0593ced9361484f"><td class="mdescLeft"> </td><td class="mdescRight">Computes kappa-sigma clean mean (free bad pixels) for each input image of the input imagelist.  <a href="#ga9a60246b0b018cbee0593ced9361484f"></a><br/></td></tr>
-<tr class="memitem:ga4cbaa270b775e7460b66e02f5b204203"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#ga4cbaa270b775e7460b66e02f5b204203">uves_imagelist_subtract_values</a> (cpl_imagelist **iml, cpl_vector *values)</td></tr>
-<tr class="memdesc:ga4cbaa270b775e7460b66e02f5b204203"><td class="mdescLeft"> </td><td class="mdescRight">Subtract from input imagelist values specified in input vector.  <a href="#ga4cbaa270b775e7460b66e02f5b204203"></a><br/></td></tr>
-<tr class="memitem:gaa4b717df379e29d4c74c066a528e37b2"><td class="memItemLeft" align="right" valign="top">cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils.html#gaa4b717df379e29d4c74c066a528e37b2">uves_image_mflat_detect_blemishes</a> (const cpl_image *flat, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *head)</td></tr>
-<tr class="memdesc:gaa4b717df379e29d4c74c066a528e37b2"><td class="mdescLeft"> </td><td class="mdescRight">Flag blemishes in a flat image.  <a href="#gaa4b717df379e29d4c74c066a528e37b2"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module contains various functions that are shared between multiple recipes </p>
-<hr/><h2>Macro Definition Documentation</h2>
-<a class="anchor" id="gaa6f08c08604f669d5248a50db05095c6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define REQ_CPL_MAJOR   3</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Check compile time and runtime library versions. </p>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff OK</dd></dl>
-<p>The function returns error if CPL and QFITS version are not up to date. Running with versions older than required will cause subtle bugs.</p>
-<p>This function should be called from "make check" to verify an installation </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l01712">1712</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-</div>
-</div>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gaea6246a88791de8614f3af35802dc644"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code uves_cosrout </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>ima</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>msk</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>ron</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>gain</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>ns</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>sky</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>rc</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>flt</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>out</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Remove cosmic ray events on single ccd exposure and replace them by interpolation on neighbourhood pixels. </p>
-<dl class="section author"><dt>Author:</dt><dd>P.Magain, M.Remy, Institut d'Astrophysique de Liege Ported to UVES pipe from MIDAS rcosmic.for </dd></dl>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ima</td><td>input image </td></tr>
-    <tr><td class="paramname">flt</td><td>median filter of input image </td></tr>
-    <tr><td class="paramname">out</td><td>output image </td></tr>
-    <tr><td class="paramname">bkg</td><td>mean value of the background </td></tr>
-    <tr><td class="paramname">ron</td><td>Readout noise in ADU units. </td></tr>
-    <tr><td class="paramname">gain</td><td>Inverse gain factor (e-/ADU) </td></tr>
-    <tr><td class="paramname">ns</td><td>threshold for the detection of cosmic rays </td></tr>
-    <tr><td class="paramname">nc</td><td>critical ratio for discrimination of objects and cosmic rays </td></tr>
-    <tr><td class="paramname">msk</td><td>name of an optional frame containing the value 1 for cosmic rays and 0 for all other pixels </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section note"><dt>Note:</dt><dd>The detection threshold is in units of the theoretical noise sigma of each pixel; it's default value is 4. The default for `rc' is 2.</dd></dl>
-<dl class="section return"><dt>Returns:</dt><dd></dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l00846">846</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l00162">uves_rcosmic()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab6d9ffe3669b75518bf7108681c52fa6"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_image * uves_gen_lowpass </td>
-          <td>(</td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>xs</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>ys</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>sigma_x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>sigma_y</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Generate a low pass filter for FFT convolution . </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">xs</td><td>x size of the generated image. </td></tr>
-    <tr><td class="paramname">ys</td><td>y size of the generated image. </td></tr>
-    <tr><td class="paramname">sigma_x</td><td>Sigma for the gaussian distribution. </td></tr>
-    <tr><td class="paramname">sigma_y</td><td>Sigma for the gaussian distribution. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated image.</dd></dl>
-<p>This function generates an image of a 2d gaussian, modified in such a way that the different quadrants have a quadrants of the gaussian in the corner. This image is suitable for FFT convolution. Copied from eclipse, src/iproc/generate.c</p>
-<p>The returned image must be deallocated. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l05083">5083</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00064">uves_msg_error</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaaed2a3318adb62b1725bc28273757e58"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_rcosmic </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>ima</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>flt</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>out</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>msk</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>sky</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>ron</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>gain</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>ns</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>rc</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Remove cosmic ray events on single ccd exposure and replace them by interpolation on neighbourhood pixels. </p>
-<dl class="section author"><dt>Author:</dt><dd>P.Magain, M.Remy, Institut d'Astrophysique de Liege Ported to UVES pipe from MIDAS rcosmic.for </dd></dl>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ima</td><td>input image </td></tr>
-    <tr><td class="paramname">flt</td><td>median filter of input image </td></tr>
-    <tr><td class="paramname">out</td><td>output image </td></tr>
-    <tr><td class="paramname">sky</td><td>mean value of the sky background </td></tr>
-    <tr><td class="paramname">ron</td><td>Readout noise in ADU units. </td></tr>
-    <tr><td class="paramname">gain</td><td>Inverse gain factor (e-/ADU) </td></tr>
-    <tr><td class="paramname">ns</td><td>threshold for the detection of cosmic rays </td></tr>
-    <tr><td class="paramname">nc</td><td>critical ratio for discrimination of objects and cosmic rays </td></tr>
-    <tr><td class="paramname">msk</td><td>name of an optional frame containing the value 1 for cosmic rays and 0 for all other pixels </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section note"><dt>Note:</dt><dd>The detection threshold is in units of the theoretical noise sigma of each pixel; it's default value is 4. The default for `rc' is 2.</dd></dl>
-<p>a) The algorithm works as follows:</p>
-<ol type="1">
-<li>The input image is filtered in the following way: FILTER/MEDIAN inframe middumma 1,1,0.0 NA For Long-Slit spectra of extended sources, the algorithm may be more efficient if the median filter works only along the slit.</li>
-<li>The input image is compared with the filtered image. All pixels with an intensity I greater than Im+ns*sigma are suspicious and may be cosmic rays (Im is the filtered intensity of a pixel and sigma is given by: sigma**2 = ron**2+I/gain).</li>
-<li>All suspicious pixels are grouped into sets of contiguous points. In each of these sets, the pixel with the maximum intensity Imax is selected. If (Imax-sky) is greater than rc*(Iaver-sky), Iaver being an average of the intensities of the first eight neighbours of that pixel, the whole set of points is considered as a cosmic ray event.</li>
-<li>The intensities of the pixels affected by cosmic rays are replaced by a median value calculated over the nearest neighbours of the group to which they belong. b) In many situations, rc is the most critical parameter and requires careful fine-tuning. If it is choosen too small, small sources such as stars may be affected. If rc is too large, the filter may not remove weak partical hits superimposed to reasonably well exposed extended sources.</li>
-</ol>
-<dl class="section return"><dt>Returns:</dt><dd>newly allocated parametrlist or NULL on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l00162">162</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__utils_8c_source.html#l00846">uves_cosrout()</a>, and <a class="el" href="uves__utils__cpl_8c_source.html#l00375">uves_filter_image_median()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__rcosmic_8c_source.html#l00257">uves_utl_rcosmic()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8927e9c74fcd2ff11122490e4f42fe90"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double uves_ksigma_vector </td>
-          <td>(</td>
-          <td class="paramtype">cpl_vector * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>klow</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>khigh</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>kiter</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Perform kappa-sigma clip. </p>
-<dl class="section author"><dt>Author:</dt><dd>C. Izzo </dd></dl>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">values</td><td>values to be checked </td></tr>
-    <tr><td class="paramname">klow</td><td>kappa to clip too low level values </td></tr>
-    <tr><td class="paramname">khigh</td><td>kappa to clip too high values </td></tr>
-    <tr><td class="paramname">kiter</td><td>number of iterations</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section note"><dt>Note:</dt><dd>In first iteration a median is the reference value for robustness</dd></dl>
-<dl class="section return"><dt>Returns:</dt><dd></dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l00277">277</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l00356">uves_ksigma_stack()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad61bad9fe3d7614ebd9de472f600c6eb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_ksigma_stack </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_imagelist * </td>
-          <td class="paramname"><em>imlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>klow</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>khigh</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>kiter</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Stack images using k-sigma clipping. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">imlist</td><td>List of images to stack </td></tr>
-    <tr><td class="paramname">klow</td><td>Number of sigmas for rejection of lowest values </td></tr>
-    <tr><td class="paramname">khigh</td><td>Number of sigmas for rejection of highest values </td></tr>
-    <tr><td class="paramname">kiter</td><td>Max number of iterations</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Stacked image.</dd></dl>
-<p>At the first iteration the value of sigma is computed relatively to the median value of all pixels at a given image position. For the next iterations the sigma is computed in the standard way. If at some iteration all points would be rejected, the mean computed at the previous iteration is returned. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l00356">356</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, and <a class="el" href="uves__utils_8c_source.html#l00277">uves_ksigma_vector()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae7a22d7bd34d61c32515d570e512e189"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_get_wave_map </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>ima_sci</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>context</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parameters</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>linetable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>dispersion_relation</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>first_abs_order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>last_abs_order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>slit_size</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Generates wave map. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ima_sci</td><td>(to get dimensions) </td></tr>
-    <tr><td class="paramname">context</td><td>recipe context </td></tr>
-    <tr><td class="paramname">parameters</td><td>input params </td></tr>
-    <tr><td class="paramname">ordertable</td><td>order table </td></tr>
-    <tr><td class="paramname">linetable</td><td>line table </td></tr>
-    <tr><td class="paramname">order_locations</td><td>order traces polynomial description </td></tr>
-    <tr><td class="paramname">dispersion_relation</td><td>wavelength solution </td></tr>
-    <tr><td class="paramname">first_abs_order</td><td>min abs order </td></tr>
-    <tr><td class="paramname">last_abs_order</td><td>max abs order </td></tr>
-    <tr><td class="paramname">slit_size</td><td>slit size in pixels </td></tr>
-    <tr><td class="paramname">flats</td><td>List of flats to stack </td></tr>
-    <tr><td class="paramname">ordertable</td><td>Input order table </td></tr>
-    <tr><td class="paramname">order_locations</td><td>polynomial description of order locations</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>wavemap image (that need to be deallocated from caller)  Generates an image that at each point has an intensity equal to the corresponding pixels for each order for each x with y position on the order trace determines the wavelength corresponding to (x,y,m) and set it to the corresponding map(x,y,m) pixel. We assume that point at the same x,m have same waveleng for each y along the extraction slit. endfor endfor </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l00452">452</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__utils_8c_source.html#l02488">uves_absolute_order()</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaabfabe05e25ffc4af017f4e29b22a56e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_flat_create_normalized_master2 </td>
-          <td>(</td>
-          <td class="paramtype">cpl_imagelist * </td>
-          <td class="paramname"><em>flats</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>mflat</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Stack images using k-sigma clipping. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">flats</td><td>List of flats to stack </td></tr>
-    <tr><td class="paramname">ordertable</td><td>Input order table </td></tr>
-    <tr><td class="paramname">order_locations</td><td>polynomial description of order locations</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Stacked image.</dd></dl>
-<p>The input list of flats is analized to compute for each flat for each order The median flux on a number of windows of given X * Y size. The mean flux of the values computed on each order is computed. endfor Finally the mean flux of all means is computed. The flat is normalized by the computed mean endfor </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l00551">551</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00221">uves_mflat_process_chip()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa6e2f1554b5345868a2f71604a42409b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_flat_create_normalized_master </td>
-          <td>(</td>
-          <td class="paramtype">cpl_imagelist * </td>
-          <td class="paramname"><em>flats</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>ordertable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>gain_vals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>fnoise</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Stack images using k-sigma clipping. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">flats</td><td>List of flats to stack </td></tr>
-    <tr><td class="paramname">ordertable</td><td>Input order table </td></tr>
-    <tr><td class="paramname">order_locations</td><td>polynomial description of order locations</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Stacked image.</dd></dl>
-<p>The input list of flats is analized to compute for each flat for each order The median flux on a number of windows of given X * Y size. The mean flux of the values computed on each order is computed. endfor Finally the mean flux of all means is computed. The flat is normalized by the computed mean endfor </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l00702">702</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00221">uves_mflat_process_chip()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga003a5b56bc7da0142638881e47006716"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_parameterlist* uves_parameterlist_duplicate </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>pin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Extract frames with given tag from frameset. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">pin</td><td>input parameterlist </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>newly allocated parametrlist or NULL on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l01461">1461</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2a5caaaeaa2b6c3aac70fe5b01be9487"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_string_toupper </td>
-          <td>(</td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>s</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Convert all lowercase characters in a string into uppercase characters. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">s</td><td>The string to convert.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Returns a pointer to the converted string.</dd></dl>
-<p>Walks through the given string and turns lowercase characters into uppercase characters using <b>toupper()</b>.</p>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__uves__utils.html#gaaa9ef34eb0091a167b88ed0cf17b758c" title="Convert all uppercase characters in a string into lowercase characters.">uves_string_tolower()</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l01493">1493</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00221">uves_mflat_process_chip()</a>, <a class="el" href="uves__reduce__mflat_8c_source.html#l00610">uves_reduce_mflat()</a>, <a class="el" href="uves__reduce__mflat__combine_8c_source.html#l00348">uves_reduce_mflat_combine()</a>, <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>, and <a class="el" href="uves__utl__physmod_8c_source.html#l00354">uves_utl_physmod()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaaa9ef34eb0091a167b88ed0cf17b758c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_string_tolower </td>
-          <td>(</td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>s</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Convert all uppercase characters in a string into lowercase characters. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">s</td><td>The string to convert.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Returns a pointer to the converted string.</dd></dl>
-<p>Walks through the given string and turns uppercase characters into lowercase characters using <b>tolower()</b>.</p>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__uves__utils.html#gaaa9ef34eb0091a167b88ed0cf17b758c" title="Convert all uppercase characters in a string into lowercase characters.">uves_string_tolower()</a> </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l01527">1527</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5d332ad2d1f28993e9c2db3154b2236b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_frameset* uves_frameset_extract </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>frames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>tag</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Extract frames with given tag from frameset. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">frames</td><td>frame set </td></tr>
-    <tr><td class="paramname">tag</td><td>to search for </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>newly allocated, possibly empty, frameset, or NULL on error </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l01557">1557</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00438">uves_msflats()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga42520f7d747ed8b56ea4a48a12757054"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_pow_int </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>y</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Calculate x to the y'th. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x</td><td></td></tr>
-    <tr><td class="paramname">y</td><td>The exponent. May be positive or zero or negative.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section note"><dt>Note:</dt><dd>This function is (very much, on some platforms) faster than pow() from math.h when y is an integer </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l01593">1593</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l03985">opt_measure_profile_order()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01333">uves_polynomial_fit_1d()</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l01513">uves_polynomial_fit_2d()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga576094df329c3bb87a80a251007400a6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_get_version </td>
-          <td>(</td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>major</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>minor</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>micro</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get UVES library version number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">major</td><td>(output) If non-null, the major version number </td></tr>
-    <tr><td class="paramname">minor</td><td>(output) If non-null, the minor version number </td></tr>
-    <tr><td class="paramname">micro</td><td>(output) If non-null, the micro version number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l01641">1641</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadebc096a23126aea985ce9f492e62cf4"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_get_version_binary </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get UVES library binary version number. </p>
-<dl class="section return"><dt>Returns:</dt><dd>Binary version number </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l01660">1660</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae14eb4ed643b704af7b942f55eac9575"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_get_license </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the pipeline copyright and license. </p>
-<dl class="section return"><dt>Returns:</dt><dd>The copyright and license string</dd></dl>
-<p>The function returns a pointer to the statically allocated license string. This string should not be modified using the returned pointer. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l01676">1676</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="flames__utl__unpack_8c_source.html#l00110">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab22cde2fd3c6fcee8f63c8b27431f0be"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_end </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_frameset * </td>
-          <td class="paramname"><em>frames</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Recipe termination. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">recipe_id</td><td>Name of calling recipe </td></tr>
-    <tr><td class="paramname">frames</td><td>The output frame set </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff OK</dd></dl>
-<p>This function is called at the end of a recipe. The output frame set is printed, and the number of warnings produced by the recipe (using <a class="el" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning()</a>) is summarized. See also <code><a class="el" href="group__uves__utils.html#ga91713592f345a0d1a44e37a50202d6ed" title="Recipe initialization.">uves_initialize()</a></code>. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l01840">1840</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8c_source.html#l00309">uves_msg_get_warnings()</a>, and <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga91713592f345a0d1a44e37a50202d6ed"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* uves_initialize </td>
-          <td>(</td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>frames</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>recipe_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>short_descr</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Recipe initialization. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">frames</td><td>The input frame set </td></tr>
-    <tr><td class="paramname">parlist</td><td>The input parameter list </td></tr>
-    <tr><td class="paramname">recipe_id</td><td>Name of the recipe, e.g. <em>uves_mbias</em> </td></tr>
-    <tr><td class="paramname">short_descr</td><td>A short description of what the recipe does </td></tr>
-    <tr><td class="paramname">frames</td><td>The input frame set </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>current time in ISO 8601 format</dd></dl>
-<p>This function takes care of all the mandatory tasks that are common for every recipe before the beginning of the data reduction. This function</p>
-<ul>
-<li>initializes error handling (by resetting the error state),</li>
-<li>initializes messaging (thereby setting the severity level),</li>
-<li>initializes plotting (by reading the plotting commands from the parameterlist and passing these to the plotting module),</li>
-<li>makes sure that the CPL and qfits libraries are up to date, and prints a warning message if not,</li>
-<li>defines the group of all input frames (see <code>uves_dfs_set_groups()</code>), and</li>
-<li>prints the input frame set. </li>
-</ul>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l01909">1909</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__time_8c_source.html#l00118">uves_get_datetime_iso8601()</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__msg_8h_source.html#l00105">uves_msg_low</a>, <a class="el" href="uves__msg_8c_source.html#l00202">uves_msg_set_level()</a>, and <a class="el" href="uves__dump_ [...]
-
-<p>Referenced by <a class="el" href="uves__dfs-test_8c_source.html#l00564">test_save_frame()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1f407a71fc1fd3d5d0d83fdc141669eb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_average_images </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>noise1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>noise2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>noise</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Optimally average images. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image1</td><td>First image </td></tr>
-    <tr><td class="paramname">noise1</td><td>Noise (one sigma) of first image </td></tr>
-    <tr><td class="paramname">image2</td><td>Second image </td></tr>
-    <tr><td class="paramname">noise2</td><td>Noise (one sigma) of second image </td></tr>
-    <tr><td class="paramname">noise</td><td>(Output) Combined noise image. This may not be NULL. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The optimally combined image</dd></dl>
-<p>For each pixel the resultant flux is computed as x = (x1 / sigma_1^2 + x2 / sigma_2^2) / ( 1 / sigma_1^2 + 1 / sigma_2^2)</p>
-<p>and the combined noise is</p>
-<p>1/sigma^2 = 1 / sigma_1^2 + 1 / sigma_2^2.</p>
-<p>Bad pixels are properly propagated (i.e. a resulting pixel is marked bad if both inputs are bad ; if only one input is good, this input is used as the output and the 'bad' input is ignored).</p>
-<dl class="section note"><dt>Note:</dt><dd>If it turns out to be necessary, this function can be optimized by using 'image1_data[i]' rather than 'cpl_image_get(image1, x, y, &pis_rejected1)', i.e. avoid multiplication for each pixel </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l02045">2045</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l02847">subtract_sky_row()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5beb7a6ed53b7f1a4442189d47af0e37"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a>* uves_initialize_image_header </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>ctype1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>ctype2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>cunit1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>cunit2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>bunit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>bscale</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>crval1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>crval2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>crpix1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>crpix2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>cdelt1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>cdelt2</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Initialize image header. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ctype1</td><td>Value of CTYPE1 keyword </td></tr>
-    <tr><td class="paramname">ctype2</td><td>Value of CTYPE2 keyword </td></tr>
-    <tr><td class="paramname">bunit</td><td>Value of BUNIT keyword </td></tr>
-    <tr><td class="paramname">crval1</td><td>Value of CRVAL1 keyword </td></tr>
-    <tr><td class="paramname">crval2</td><td>Value of CRVAL2 keyword </td></tr>
-    <tr><td class="paramname">crpix1</td><td>Value of CRPIX1 keyword </td></tr>
-    <tr><td class="paramname">crpix2</td><td>Value of CRPIX2 keyword </td></tr>
-    <tr><td class="paramname">cdelt1</td><td>Value of CDELT1 keyword </td></tr>
-    <tr><td class="paramname">cdelt2</td><td>Value of CDELT2 keyword</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Header containing the specified FITS keywords </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l02173">2173</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__pfits_8c_source.html#l02746">uves_pfits_set_bscale()</a>, <a class="el" href="uves__pfits_8c_source.html#l02728">uves_pfits_set_bunit()</a>, <a class="el" href="uves__pfits_8c_source.html#l02947">uves_pfits_set_cdelt1()</a>, <a class="el" href="uves__pfits_8c_source.html#l02983">uves_pfits_set_cdelt2()</a>, <a class="el" href="uves__pfits_8c_source.html#l02912">uves_pfits_set_crpix1( [...]
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>, <a class="el" href="uves__merge_8c_source.html#l00239">uves_merge_orders()</a>, <a class="el" href="uves__rebin_8c_source.html#l00348">uves_rebin()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00374">uves_scired_process_chip()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaefe47144b27fa36ac8a024aa7813bce7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_define_noise </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>image_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ncom</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create noise image. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>Input image </td></tr>
-    <tr><td class="paramname">image_header</td><td>Input image header </td></tr>
-    <tr><td class="paramname">ncom</td><td>Number of combined frames </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The newly allocated noise image, or NULL on error.</dd></dl>
-<p>The noise image is calculated as a combination of read-out noise, discretization noise and photonic noise.</p>
-<p>The noise decreases accordingly if the number of combined frames, <em>ncom</em>, is more than one. Those frames are assumed to have been median stacked.</p>
-<p>(See source code for the exact error propagation formulas). </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l02225">2225</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__pfits_8c_source.html#l01028">uves_pfits_get_exptime()</a>, <a class="el" href="uves__pfits_8c_source.html#l00993">uves_pfits_get_gain()</a>, <a class="el" href="uves__pfits_8c_source.html#l00868">uves_pfits_get_ron_adu()</a>, <a class="el" hr [...]
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l02183">revise_noise()</a>, and <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaab60ba58a3dc620bf79a91ebde2751b3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_subtract_bias </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_bias</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Subtract bias. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The image to be de-biased </td></tr>
-    <tr><td class="paramname">master_bias</td><td>The bias image to subtract </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay</dd></dl>
-<p>Negative values are set to zero. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l02391">2391</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__error_8h_source.html#l00207">passure</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__mflat_8c_source.html#l00221">uves_mflat_process_chip()</a>, and <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa065c666cf2f7a17a0d20f42e742a793"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_subtract_dark </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>image_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>master_dark</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>mdark_header</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Subtract dark. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The image to be dark-subtracted </td></tr>
-    <tr><td class="paramname">image_header</td><td>The image header </td></tr>
-    <tr><td class="paramname">master_dark</td><td>The dark image to subtract </td></tr>
-    <tr><td class="paramname">mdark_header</td><td>The master dark header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay</dd></dl>
-<p>Before subtracting the dark frame, it is normalized to the same exposure time as the input image. Exposure times are read from the provided headers. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l02435">2435</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, and <a class="el" href="uves__pfits_8c_source.html#l01028">uves_pfits_get_exptime()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l00574">uves_reduce()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga579bc295bb9d73af0b052f37b576f552"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_absolute_order </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>first_abs_order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>last_abs_order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>relative_order</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the absolute order number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">first_abs_order</td><td>Absolute order number of row number 1 in the spectrum image </td></tr>
-    <tr><td class="paramname">last_abs_order</td><td>Absolute order number of the highest row in the spectrum image </td></tr>
-    <tr><td class="paramname">relative_order</td><td>Relative order number (row number in spectrum image) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The absolute order number</dd></dl>
-<p>This function converts from row number in a spectrum image to absolute (physical) order number. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l02488">2488</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l00452">uves_get_wave_map()</a>, <a class="el" href="uves__rebin_8c_source.html#l00348">uves_rebin()</a>, and <a class="el" href="uves__response__efficiency_8c_source.html#l00100">uves_response_efficiency()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8ec4a0e22ac62eaed019f740acf6810d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_average_reject </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>t</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>residual2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>kappa</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get average with iterative rejection. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">t</td><td>table, rows with outliers are removed </td></tr>
-    <tr><td class="paramname">column</td><td>with data values </td></tr>
-    <tr><td class="paramname">residual2</td><td>name of temporary column used to store the squared residuals (this column must not already exist) </td></tr>
-    <tr><td class="paramname">kappa</td><td>rejection parameter </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>robust mean</dd></dl>
-<p>Outliers are rejected using robust estimation. The final average value is computed using the arithmetic mean, which has lower error than the median. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l02510">2510</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__utils_8c_source.html#l00304">uves_delete_bad_lines()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3b69d3e3f541c3e6744ebf80357da4e3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>* uves_polynomial_regression_1d </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>t</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>X</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>Y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>sigmaY</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>degree</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>polynomial_fit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>residual_square</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>mean_squared_error</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>kappa</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Fit a 1d polynomial to two table columns. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">t</td><td>Table </td></tr>
-    <tr><td class="paramname">X</td><td>Name of table column containing independent variable </td></tr>
-    <tr><td class="paramname">Y</td><td>Name of table column containing dependent variable </td></tr>
-    <tr><td class="paramname">sigmaY</td><td>Uncertainty of dependent variable. If NULL, constant uncertainties are assumed. </td></tr>
-    <tr><td class="paramname">degree</td><td>Degree of polynomial fit </td></tr>
-    <tr><td class="paramname">polynomial_fit</td><td>Name of column to add </td></tr>
-    <tr><td class="paramname">residual_square</td><td>Name of column to add </td></tr>
-    <tr><td class="paramname">mean_squared_error</td><td>Mean squared error of the residuals </td></tr>
-    <tr><td class="paramname">kappa</td><td>If positive, the value of kappa used in a kappa sigma-clipping. Ignored if negative.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Fitted polynomial</dd></dl>
-<p>This function fits column <em>Y</em> as function of <em>X</em>. Both columns must have type CPL_TYPE_DOUBLE or CPL_TYPE_INT.</p>
-<p>If non-NULL the columns specified by the parameters <em>polynomial_fit</em> and <em>residual_square</em> are added to the table (containing the fitted value and the squared residual for each point). If any of these columns already exist, an error is set.</p>
-<p>If <em>kappa</em> is positive, a kappa-sigma clipping is performed (iteratively, until there are no points with residuals worse than kappa*sigma). The rejected points (rows) are physically removed from the table.</p>
-<p>Note that rows with invalid values are not handled properly (the garbage values are used for the fitting). Therefore the input table should not have invalid rows. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l02587">2587</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00674">uves_polynomial_evaluate_1d()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01333">uves_polynomial_fit_1d()</a>, and <a class="el" href="uves__dump_8c_sourc [...]
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l00992">fit_order_linear()</a>, <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>, <a class="el" href="uves__extract_8c_source.html#l03985">opt_measure_profile_order()</a>, <a class="el" href="uves__reduce_8c_source.html#l03191">uves_get_blaze_ratio()</a>, and <a class="el" href="uves__physmod__calmap_8c_source.html#l00068">uves_physmod_calmap()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gafc0808f13c677459f41a27ad2c28a6f0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>* uves_polynomial_regression_2d </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>t</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>X1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>X2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>Y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>sigmaY</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>degree1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>degree2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>polynomial_fit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>residual_square</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>variance_fit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>mse</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>red_chisq</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td>
-          <td class="paramname"><em>variance</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>kappa</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>min_reject</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Fit a 2d polynomial to three table columns. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">t</td><td>The table </td></tr>
-    <tr><td class="paramname">X1</td><td>Name of table column containing 1st independent variable </td></tr>
-    <tr><td class="paramname">X2</td><td>Name of table column containing 2nd independent variable </td></tr>
-    <tr><td class="paramname">Y</td><td>Name of table column containing dependent variable </td></tr>
-    <tr><td class="paramname">sigmaY</td><td>Uncertainty of dependent variable. If NULL, constant uncertainties are assumed. </td></tr>
-    <tr><td class="paramname">degree1</td><td>Degree of polynomial fit (1st variable) </td></tr>
-    <tr><td class="paramname">degree2</td><td>Degree of polynomial fit (2nd variable) </td></tr>
-    <tr><td class="paramname">polynomial_fit</td><td>If non-NULL, name of column to add. The fitted value. </td></tr>
-    <tr><td class="paramname">residual_square</td><td>If non-NULL, name of column to add. The squared residual of the fit. </td></tr>
-    <tr><td class="paramname">variance_fit</td><td>If non-NULL, name of column to add. Variance of the fitted value. </td></tr>
-    <tr><td class="paramname">mean_squared_error</td><td>(out) Mean squared error of the residuals. May be NULL. </td></tr>
-    <tr><td class="paramname">red_chisq</td><td>(out) Reduced chi square of the fit. May be NULL. </td></tr>
-    <tr><td class="paramname">variance</td><td>(out) Variance of the fit-polynomial (which is in itself a polynomial; see also <code><a class="el" href="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3" title="Fit a 2d surface with a polynomial in x and y.">uves_polynomial_fit_2d()</a></code> ). May be NULL. </td></tr>
-    <tr><td class="paramname">kappa</td><td>If positive, the value of kappa used in a kappa sigma-clipping. Ignored if negative. </td></tr>
-    <tr><td class="paramname">min_reject</td><td>Minimum number of outliers worth rejecting. Stop iterating (for efficiency) if less than this relative number of outliers (e.g. 0.001) are detected. Negative to disable </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Fitted polynomial</dd></dl>
-<p>This function fits column <em>Y</em> (must be of type CPL_TYPE_DOUBLE) as function of <em>X1</em> (CPL_TYPE_DOUBLE or CPL_TYPE_INT) and <em>X2</em> (CPL_TYPE_DOUBLE or CPL_TYPE_INT). The column <em>sigmaY</em> contains the Y-uncertainties. If NULL, constant uncertainty equal to 1 is assumed.</p>
-<p>If non-NULL the columns specified by the parameters <em>polynomial_fit</em>, <em>residual_square</em> and <em>variance_fit</em> are added to the table (containing the fitted value, the squared residual and the variance of the fitted value, for each point).</p>
-<p>If non-NULL, the <em>mean_squared_error</em> and <em>red_chisq</em> (reduced chi square) are calculated.</p>
-<p>If non-NULL the parameter <em>variance</em> will contain the polynomial that defines the variance of the fit (i.e. as function of <em>x1</em> and <em>x2</em> ).</p>
-<p>To calculate variances or reduced chi square, the parameter <em>sigmaY</em> must be non-NULL.</p>
-<p>If <em>kappa</em> is positive, a kappa-sigma clipping is performed (iteratively, until there are no points with residuals worse than kappa*sigma). The rejected points (rows) are physically removed from the table.</p>
-<p>Also see <code><a class="el" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d()</a></code> . </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l02866">2866</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01513">uves_polynomial_fit_2d()</a>, and <a class="el" href="uves__dump_8c_sourc [...]
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l01127">calibrate_global()</a>, <a class="el" href="uves__test__simulate_8c_source.html#l00218">create_line_table()</a>, <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>, <a class="el" href="uves__orderpos__follow_8c_source.html#l00250">uves_locate_orders()</a>, <a class="el" href="uves__physmod__calmap_8c_source.html#l00068">uves_physmod_calmap()</a>, <a class="el" href="uves__p [...]
-
-</div>
-</div>
-<a class="anchor" id="ga0afd7f093baf963bc468b142b2fe5a7b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>* uves_polynomial_regression_2d_autodegree </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>t</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>X1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>X2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>Y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>sigmaY</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>polynomial_fit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>residual_square</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>variance_fit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>mean_squared_error</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>red_chisq</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td>
-          <td class="paramname"><em>variance</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>kappa</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxdeg1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxdeg2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>min_rms</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>min_reject</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>verbose</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>min_val</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>max_val</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>npos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>positions</em>[][2] </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Fit a 2d polynomial to three table columns. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">t</td><td>The table </td></tr>
-    <tr><td class="paramname">X1</td><td>Name of table column containing 1st independent variable </td></tr>
-    <tr><td class="paramname">X2</td><td>Name of table column containing 2nd independent variable </td></tr>
-    <tr><td class="paramname">Y</td><td>Name of table column containing dependent variable </td></tr>
-    <tr><td class="paramname">sigmaY</td><td>Uncertainty of dependent variable. If NULL, constant uncertainties are assumed. </td></tr>
-    <tr><td class="paramname">polynomial_fit</td><td>If non-NULL, name of column to add. The fitted value. </td></tr>
-    <tr><td class="paramname">residual_square</td><td>If non-NULL, name of column to add. The squared residual of the fit. </td></tr>
-    <tr><td class="paramname">variance_fit</td><td>If non-NULL, name of column to add. Variance of the fitted value. </td></tr>
-    <tr><td class="paramname">mean_squared_error</td><td>(out) Mean squared error of the residuals. May be NULL. </td></tr>
-    <tr><td class="paramname">red_chisq</td><td>(out) Reduced chi square of the fit. May be NULL. </td></tr>
-    <tr><td class="paramname">variance</td><td>(out) Variance of the fit-polynomial (which is in itself a polynomial; see also <code><a class="el" href="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3" title="Fit a 2d surface with a polynomial in x and y.">uves_polynomial_fit_2d()</a></code> ). May be NULL. </td></tr>
-    <tr><td class="paramname">kappa</td><td>If positive, the value of kappa used in a kappa sigma-clipping. Ignored if negative. </td></tr>
-    <tr><td class="paramname">maxdeg1</td><td>Maximum degree of 1st independent variable </td></tr>
-    <tr><td class="paramname">maxdeg2</td><td>Maximum degree of 2nd independent variable </td></tr>
-    <tr><td class="paramname">min_rms</td><td>Minimum RMS to aim for. Stop iterating (for efficiency) if this precision is achieved. Set to negative to disable. </td></tr>
-    <tr><td class="paramname">min_reject</td><td>Minimum number of outliers worth rejecting. Stop iterating (for efficiency) if less than this relative number of outliers (e.g. 0.001) are detected. Negative to disable </td></tr>
-    <tr><td class="paramname">verbose</td><td>print messages at info level (true) or debug level (false) </td></tr>
-    <tr><td class="paramname">min_val</td><td>minimum allowed value. A fit producing a value lower than this number will be rejected. Set to NULL to disable </td></tr>
-    <tr><td class="paramname">max_val</td><td>maximum allowed value </td></tr>
-    <tr><td class="paramname">npos</td><td>size of positions array </td></tr>
-    <tr><td class="paramname">positions</td><td>positions where the fitted solution must be inside the limits given by min_val / max_val (for the solution to be accepted) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Fitted polynomial</dd></dl>
-<p>This function is like <code><a class="el" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d()</a></code> except it automatically selects the best polynomial degrees based on the RMS of the fit.</p>
-<dl class="section note"><dt>Note:</dt><dd>that when kappa-sigma clipping is involved, it becomes rather complicated to decide which are the optimal degrees, and for that reason this function is not expected to give good results for all possible kinds of input data. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l03302">3302</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00215">uves_error_reset</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__msg_8h_source.html#l00105">uves_msg_low</a>, <a class="el" href="uves__utils__polynomial_8c_s [...]
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l01127">calibrate_global()</a>, <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>, and <a class="el" href="uves__extract_8c_source.html#l06189">repeat_orderdef()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga99e9592bc265e99533524a996b462ef4"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* uves_remove_string_prefix </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>s</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>prefix</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Remove named prefix from string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">s</td><td>string </td></tr>
-    <tr><td class="paramname">prefix</td><td>the prefix to remove </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>s without prefix, or NULL on error. This points to a position in the string <em>s</em>, and therefore must not be deallocated.</dd></dl>
-<p>The function fails if <em>prefix</em> is not a prefix of <em>s</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l03609">3609</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce__scired_8c_source.html#l02166">tflat_qclog()</a>, <a class="el" href="uves__qclog_8c_source.html#l00942">uves_qclog_add_common_wave()</a>, and <a class="el" href="uves__qclog_8c_source.html#l00410">uves_qclog_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga81ac7cec9a26af57d8e43728c004a072"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_gaussrand </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Pseudo-random gaussian distributed number. </p>
-<dl class="section return"><dt>Returns:</dt><dd>Pseudo-random gasssian value with mean zero, stdev 1, based on C's rand()</dd></dl>
-<p>It is probably a good idea to call srand() before using this function, for reasons of reproducability. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l03642">3642</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga182ae551020b196be2e177c09f16b220"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_spline_hermite_table </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>xp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>t</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>column_x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>column_y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>istart</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Spline interpolation based on Hermite polynomials. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">xp</td><td>x-value to interpolate </td></tr>
-    <tr><td class="paramname">t</td><td>Table containing the columns to interpolate </td></tr>
-    <tr><td class="paramname">column_x</td><td>Column of x-values </td></tr>
-    <tr><td class="paramname">column_y</td><td>Column of y-values </td></tr>
-    <tr><td class="paramname">istart</td><td>(input/output) initial row (set to 0 to search all row)</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The interpolated value. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l03680">3680</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__utils_8c_source.html#l03718">uves_spline_hermite()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__response__utils_8c_source.html#l00140">uves_calculate_response()</a>, <a class="el" href="uves__reduce__utils_8c_source.html#l00128">uves_normalize_spectrum()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00374">uves_scired_process_chip()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa3c7eb6c7f122eb98af78d5cab6cb122"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_spline_hermite </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>xp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double * </td>
-          <td class="paramname"><em>y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>n</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>istart</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Spline interpolation based on Hermite polynomials. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">xp</td><td>x-value to interpolate </td></tr>
-    <tr><td class="paramname">x</td><td>x-values </td></tr>
-    <tr><td class="paramname">y</td><td>y-values </td></tr>
-    <tr><td class="paramname">n</td><td>array length </td></tr>
-    <tr><td class="paramname">istart</td><td>(input/output) initial row (set to 0 to search all row)</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The interpolated value.</dd></dl>
-<p>The x column must be sorted (ascending or descending) and all x column values must be different.</p>
-<p>Adopted from: Cristian Levin - ESO La Silla, 1-Apr-1991 </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l03718">3718</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l03680">uves_spline_hermite_table()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gac567d2b17fd517da5e872f292c203339"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_spline_cubic </td>
-          <td>(</td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>xp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float * </td>
-          <td class="paramname"><em>y2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>n</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>kstart</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Natural cubic-spline interpolation. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">xp</td><td>x-value to interpolate </td></tr>
-    <tr><td class="paramname">x</td><td>x-array [1..n], must be sorted ascending </td></tr>
-    <tr><td class="paramname">y</td><td>y-array [1..n] </td></tr>
-    <tr><td class="paramname">y2</td><td>y2-array [1..n] (2-nd derivatives) </td></tr>
-    <tr><td class="paramname">n</td><td>array size </td></tr>
-    <tr><td class="paramname">kstart</td><td>Start search index. Contains on output index of largest x less than xp.</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the interpolated value </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l03790">3790</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gafe2dc57751c934dd70ebc93c0e25ee18"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">bool uves_table_is_sorted_double </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>t</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const bool </td>
-          <td class="paramname"><em>reverse</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Determine if a table is sorted. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">t</td><td>Table </td></tr>
-    <tr><td class="paramname">column</td><td>Column name, type must be double </td></tr>
-    <tr><td class="paramname">reverse</td><td>Flag indicating to check for ascending (false) or descending (true) sort order </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Non-zero iff table is sorted according to the specified column </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l03844">3844</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00207">passure</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5498ccadef9be3eee6cfacfac75c7478"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* uves_ordertable_traces_new </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create the table that describes fibre traces. </p>
-<dl class="section return"><dt>Returns:</dt><dd>The table which must be deallocated with <code>cpl_table_delete()</code> . </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l03895">3895</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab4d35d91d7acd120872d427842b13942"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_ordertable_traces_add </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>traces</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>fibre_ID</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>fibre_offset</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>fibre_mask</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Add a trace. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">traces</td><td>The table containing information on the position of fibre traces (FLAMES/UVES) </td></tr>
-    <tr><td class="paramname">fibre_ID</td><td>The fibre ID number </td></tr>
-    <tr><td class="paramname">fibre_offset</td><td>Offset of this fibre </td></tr>
-    <tr><td class="paramname">fibre_mask</td><td>0 if fibre is disabled, 1 if it is enabled </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l03922">3922</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7734a51460651fa363eacdf284986447"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_tablename_remove_units </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>tname</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Remove column units from a table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tname</td><td>filename of the table containing units to be removed (FLAMES/UVES) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l03951">3951</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__propertylist_8c_source.html#l05449">uves_propertylist_load()</a>, and <a class="el" href="uves__utils_8c_source.html#l04009">uves_table_remove_units()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga613ac59edcddc7ba24d4bf6d5a563c35"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_tablenames_unify_units </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>tname2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>tname1</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Unify column units in tables. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">name2</td><td>of the table with reference units </td></tr>
-    <tr><td class="paramname">name1</td><td>of the table with new units </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l03977">3977</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__propertylist_8c_source.html#l05449">uves_propertylist_load()</a>, and <a class="el" href="uves__utils_8c_source.html#l04041">uves_table_unify_units()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7d2ec6462cf581bf7172368747e5f9d6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_table_remove_units </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>table</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Remove column units from a table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">tab</td><td>The table containing units to be removed (FLAMES/UVES) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l04009">4009</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l03951">uves_tablename_remove_units()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga42288426fcfd847780e7f412756c55db"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_table_unify_units </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>table2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>table1</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Unify column units of table2 to table1. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">table2</td><td>The table with reference units </td></tr>
-    <tr><td class="paramname">table1</td><td>The table with new units </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l04041">4041</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l03977">uves_tablenames_unify_units()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6ec891ebf5e364519c678c11600a35e0"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void fmoffa_i </td>
-          <td>(</td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>a</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>dyda</em>[] </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>This subroutine gives the value of the Moffat (beta=4)+ linear functions at pixel of coordinates x estimated at one point. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x</td><td>input pixel coordinates </td></tr>
-    <tr><td class="paramname">a</td><td>profile coefficients </td></tr>
-    <tr><td class="paramname">y</td><td>Moffat profile values </td></tr>
-    <tr><td class="paramname">dyda</td><td>errors associated to y </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l04102">4102</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l04171">fmoffa_c()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab2caa5d2f377b40374ac88e708f739b7"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static void fmoffa_c </td>
-          <td>(</td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>a</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>y</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>dyda</em>[] </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Moffat profile. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x</td><td>input pixel coordinates </td></tr>
-    <tr><td class="paramname">a</td><td>profile coefficients </td></tr>
-    <tr><td class="paramname">y</td><td>Moffat profile values </td></tr>
-    <tr><td class="paramname">dyda</td><td>errors associated to y </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section note"><dt>Note:</dt><dd><pre class="fragment">    This subroutine  gives  the value  of  the  Moffat (beta =  4,
-fixed)+ linear functions  at pixel of coordinates x integrated
-over  this pixel; the integration  is done  using the npoint=3
-Gauss-Legendre  integration formula. The weights and abscissae
-are modified to take into account the range of integration (in
-pratice, the values are divided by 2) .</pre> </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l04171">4171</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils_8c_source.html#l04102">fmoffa_i()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l04237">uves_moffat()</a>, and <a class="el" href="uves__utils_8c_source.html#l04256">uves_moffat_derivative()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga32f63d655b7a15cb65c59f6ed9153a69"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_moffat </td>
-          <td>(</td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>x</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>a</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>result</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Evaluate a Moffat. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x</td><td>The evaluation point </td></tr>
-    <tr><td class="paramname">a</td><td>The parameters defining the gaussian </td></tr>
-    <tr><td class="paramname">result</td><td>The function value </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l04237">4237</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils_8c_source.html#l04171">fmoffa_c()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__cd__align-test_8c_source.html#l00093">eval_gauss()</a>, and <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3268b9eca855e33e38a5bd58c5d512c0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_moffat_derivative </td>
-          <td>(</td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>x</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>a</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>result</em>[] </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Evaluate Moffat derivative. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x</td><td>The evaluation point </td></tr>
-    <tr><td class="paramname">a</td><td>The parameters defining the gaussian </td></tr>
-    <tr><td class="paramname">result</td><td>The function value </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l04256">4256</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils_8c_source.html#l04171">fmoffa_c()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaeec991a9bd1a99f0141d9d2a9304f00c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_gauss </td>
-          <td>(</td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>x</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>a</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>result</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Evaluate a gaussian. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x</td><td>The evaluation point </td></tr>
-    <tr><td class="paramname">a</td><td>The parameters defining the gaussian </td></tr>
-    <tr><td class="paramname">result</td><td>The function value</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay.</dd></dl>
-<p>This function computes</p>
-<p><em>a3</em> + <em>a2</em> / sqrt(2 pi <em>a1^2</em>) * exp( -(<em>x0</em> - <em>a0</em>)^2/(2 <em>a1^2</em>)).</p>
-<p>where <em>a0</em>, ..., <em>a3</em> are the first four elements of <em>a</em>, and <em>x0</em> is the first element of <em>x</em> .</p>
-<p>The function never fails. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l04288">4288</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l01600">find_centroid()</a>, <a class="el" href="uves__extract_8c_source.html#l06189">repeat_orderdef()</a>, <a class="el" href="uves__extract-test_8c_source.html#l00185">test_extract()</a>, <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>, <a class="el" href="uves__utils__cpl_8c_source.html#l00644">uves_fit_gaussian_2d_image()</a>, and <a class="el" href="uves__wavecal__search_8c_source [...]
-
-</div>
-</div>
-<a class="anchor" id="ga6cd21b8becb2f077f455e47e35e0beea"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_gauss_derivative </td>
-          <td>(</td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>x</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>a</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>result</em>[] </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Evaluate the derivatives of a gaussian. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x</td><td>The evaluation point </td></tr>
-    <tr><td class="paramname">a</td><td>The parameters defining the gaussian </td></tr>
-    <tr><td class="paramname">result</td><td>The derivatives wrt to parameters</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay.</dd></dl>
-<p>This function computes the partial derivatives of <em>f</em>(<em>x0</em>,<em>a</em>) = <em>a3</em> + <em>a2</em> / sqrt(2 pi <em>a1^2</em>) * exp( -(<em>x0</em> - <em>a0</em>)^2/(2 <em>a1^2</em>)) with respect to <em>a0</em>, ..., <em>a3</em>. On successful evaluation, the i'th element of the <em>result</em> vector contains df/da_i.</p>
-<p>The function never returns failure. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l04343">4343</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l01600">find_centroid()</a>, <a class="el" href="uves__extract_8c_source.html#l06189">repeat_orderdef()</a>, <a class="el" href="uves__extract-test_8c_source.html#l00185">test_extract()</a>, <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>, <a class="el" href="uves__utils__cpl_8c_source.html#l00644">uves_fit_gaussian_2d_image()</a>, and <a class="el" href="uves__wavecal__search_8c_source [...]
-
-</div>
-</div>
-<a class="anchor" id="ga9f3e7e9d99f1b9785c335cc1a8ecb49f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_gauss_linear </td>
-          <td>(</td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>x</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>a</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>result</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Evaluate a gaussian with linear background. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x</td><td>The evaluation point </td></tr>
-    <tr><td class="paramname">a</td><td>The parameters defining the gaussian </td></tr>
-    <tr><td class="paramname">result</td><td>The function value</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay.</dd></dl>
-<p>This function computes</p>
-<p><em>a3</em> + a4*(<em>x0</em> - <em>a0</em>) + <em>a2</em> / sqrt(2 pi <em>a1^2</em>) * exp( -(<em>x0</em> - <em>a0</em>)^2/(2 <em>a1^2</em>)).</p>
-<p>where <em>a0</em>, ..., <em>a4</em> are the first five elements of <em>a</em>, and <em>x0</em> is the first element of <em>x</em> .</p>
-<p>The function never fails. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l04408">4408</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__search_8c_source.html#l00696">xcenter()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga98837a7122178c9d18c99174bfd53d9b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_gauss_linear_derivative </td>
-          <td>(</td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>x</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const double </td>
-          <td class="paramname"><em>a</em>[], </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>result</em>[] </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Evaluate the derivatives of a gaussian with linear background. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x</td><td>The evaluation point </td></tr>
-    <tr><td class="paramname">a</td><td>The parameters defining the gaussian </td></tr>
-    <tr><td class="paramname">result</td><td>The derivatives wrt to parameters</td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 iff okay.</dd></dl>
-<p>This function computes the partial derivatives of</p>
-<p><em>f</em>(<em>x0</em>,<em>a</em>) = <em>a3</em> + a4*(x0 - <em>a0</em>) + <em>a2</em> / sqrt(2 pi <em>a1^2</em>) * exp( -(<em>x0</em> - <em>a0</em>)^2/(2 <em>a1^2</em>))</p>
-<p>with respect to <em>a0</em>, ..., <em>a4</em>. On successful evaluation, the i'th element of the <em>result</em> vector contains df/da_i.</p>
-<p>The function never returns failure. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l04467">4467</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__search_8c_source.html#l00696">xcenter()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7146e7bab312652fdb0a9e88e838ef8d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_create_image </td>
-          <td>(</td>
-          <td class="paramtype">uves_iterate_position * </td>
-          <td class="paramname"><em>pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">enum uves_chip </td>
-          <td class="paramname"><em>chip</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>sky</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>cosmic_image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const uves_extract_profile * </td>
-          <td class="paramname"><em>profile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>image_noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> ** </td>
-          <td class="paramname"><em>image_header</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Reconstruct echelle image from spectrum. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">pos</td><td>position iterator </td></tr>
-    <tr><td class="paramname">chip</td><td>CCD chip (for header) </td></tr>
-    <tr><td class="paramname">spectrum</td><td>object spectrum </td></tr>
-    <tr><td class="paramname">sky</td><td>sky spectrum </td></tr>
-    <tr><td class="paramname">cosmic_image</td><td>if non-NULL, image of cosmic rays. Values > 0 mark CR hits </td></tr>
-    <tr><td class="paramname">image_noise</td><td>(output) error bars </td></tr>
-    <tr><td class="paramname">image_header</td><td>(output) describing the output image </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>simulated image </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l04531">4531</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00301">uves_iterate_finished()</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00246">uves_iterate_increment()</a>, <a class="el" href="uves__extract__iterate_8c_source.html#l00203">uves_iterate_set_first()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l00772">uves_propertylist_new()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract-test_8c_source.html#l00185">test_extract()</a>, and <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga9a60246b0b018cbee0593ced9361484f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_vector* uves_imagelist_get_clean_mean_levels </td>
-          <td>(</td>
-          <td class="paramtype">cpl_imagelist * </td>
-          <td class="paramname"><em>iml</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>kappa</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Computes kappa-sigma clean mean (free bad pixels) for each input image of the input imagelist. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">iml</td><td>input imagelist </td></tr>
-    <tr><td class="paramname">kappa</td><td>value for kappa-sigma clip </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>vector with computed values for each image of the list</dd></dl>
-<p>The returned vector must be deallocated. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l05002">5002</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, and <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4cbaa270b775e7460b66e02f5b204203"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_imagelist_subtract_values </td>
-          <td>(</td>
-          <td class="paramtype">cpl_imagelist ** </td>
-          <td class="paramname"><em>iml</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_vector * </td>
-          <td class="paramname"><em>values</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Subtract from input imagelist values specified in input vector. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">iml</td><td>input imagelist </td></tr>
-    <tr><td class="paramname">values</td><td>value to be subtracted </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>corrected imagelist</dd></dl>
-<p>The returned vector must be deallocated. </p>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l05043">5043</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa4b717df379e29d4c74c066a528e37b2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_image* uves_image_mflat_detect_blemishes </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>flat</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>head</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Flag blemishes in a flat image. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">flat</td><td>input image </td></tr>
-    <tr><td class="paramname">head</td><td>input header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>output flag image or NULL </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils_8c_source.html#l05173">5173</a> of file <a class="el" href="uves__utils_8c_source.html">uves_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__pfits_8c_source.html#l01282">uves_pfits_get_binx()</a>, and <a class="el" href="uves__pfits_8c_source.html#l01300">uves_pfits_get_biny()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__utils__cpl.html b/html/group__uves__utils__cpl.html
deleted file mode 100644
index 57e9fde..0000000
--- a/html/group__uves__utils__cpl.html
+++ /dev/null
@@ -1,504 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Utility functions (low level)</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Utility functions (low level)</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gafc2ebb8a19b1e10153319a018a743c9e"><td class="memItemLeft" align="right" valign="top">static cpl_image * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__cpl.html#gafc2ebb8a19b1e10153319a018a743c9e">filter_median</a> (const cpl_image *image, int radx, int rady, bool extrapolate_border)</td></tr>
-<tr class="memdesc:gafc2ebb8a19b1e10153319a018a743c9e"><td class="mdescLeft"> </td><td class="mdescRight">Median filter.  <a href="#gafc2ebb8a19b1e10153319a018a743c9e"></a><br/></td></tr>
-<tr class="memitem:gab27457a252d480095e9f78b904becdc6"><td class="memItemLeft" align="right" valign="top">const cpl_property * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__cpl.html#gab27457a252d480095e9f78b904becdc6">uves_find_property_const</a> (const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *name, int number)</td></tr>
-<tr class="memdesc:gab27457a252d480095e9f78b904becdc6"><td class="mdescLeft"> </td><td class="mdescRight">Find named property.  <a href="#gab27457a252d480095e9f78b904becdc6"></a><br/></td></tr>
-<tr class="memitem:gaa47cef77156bb2a234cc278c29b64343"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa47cef77156bb2a234cc278c29b64343"></a>
-cpl_property * </td><td class="memItemRight" valign="bottom"><b>uves_find_property</b> (<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *plist, const char *name, int number)</td></tr>
-<tr class="memitem:ga61202bb11e2387a91f36248674241b98"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__cpl.html#ga61202bb11e2387a91f36248674241b98">uves_filter_image_average</a> (cpl_image *image, int radius_x, int radius_y)</td></tr>
-<tr class="memdesc:ga61202bb11e2387a91f36248674241b98"><td class="mdescLeft"> </td><td class="mdescRight">Average filter.  <a href="#ga61202bb11e2387a91f36248674241b98"></a><br/></td></tr>
-<tr class="memitem:ga2637b4cd5f703fad74d5f9a9aef2394f"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f">uves_filter_image_median</a> (cpl_image **image, int xwindow, int ywindow, bool extrapolate_border)</td></tr>
-<tr class="memdesc:ga2637b4cd5f703fad74d5f9a9aef2394f"><td class="mdescLeft"> </td><td class="mdescRight">Median filter.  <a href="#ga2637b4cd5f703fad74d5f9a9aef2394f"></a><br/></td></tr>
-<tr class="memitem:gaab92b190da2ce4979277ec4f0a09cc5b"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__cpl.html#gaab92b190da2ce4979277ec4f0a09cc5b">uves_utils_get_kth_double</a> (double *a, int n, int k)</td></tr>
-<tr class="memdesc:gaab92b190da2ce4979277ec4f0a09cc5b"><td class="mdescLeft"> </td><td class="mdescRight">returns the kth value of an array  <a href="#gaab92b190da2ce4979277ec4f0a09cc5b"></a><br/></td></tr>
-<tr class="memitem:ga94492b7e724286022f3bc946952dc79d"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__cpl.html#ga94492b7e724286022f3bc946952dc79d">uves_tools_get_median</a> (double *a, int n)</td></tr>
-<tr class="memdesc:ga94492b7e724286022f3bc946952dc79d"><td class="mdescLeft"> </td><td class="mdescRight">returns median (not CPL median) of an array  <a href="#ga94492b7e724286022f3bc946952dc79d"></a><br/></td></tr>
-<tr class="memitem:ga925c077e4720e3357196ef4161ffea53"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__cpl.html#ga925c077e4720e3357196ef4161ffea53">uves_fit_gaussian_2d_image</a> (const cpl_image *image, const cpl_image *noise, int x1, int y_1, int x2, int y2, double *x0, double *y_0, double *sigmax, double *sigmay, double *amplitude, double *dx0, double *dy0)</td></tr>
-<tr class="memdesc:ga925c077e4720e3357196ef4161ffea53"><td class="mdescLeft"> </td><td class="mdescRight">Fit a 2d gaussian to an image sub-window.  <a href="#ga925c077e4720e3357196ef4161ffea53"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module contains low level library functions that can be removed if/when the corresponding functionality is in the CPL. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gafc2ebb8a19b1e10153319a018a743c9e"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_image * filter_median </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>radx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>rady</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>extrapolate_border</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Median filter. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>Image to filter </td></tr>
-    <tr><td class="paramname">radx</td><td>x-radius of median window </td></tr>
-    <tr><td class="paramname">rady</td><td>y-radius of median window </td></tr>
-    <tr><td class="paramname">extrapolate_border</td><td>If false (which should be considered the default value), a smaller window is used at the image borders (where the full window would be partially outside of the image). If true, the median is calculated only for points where the full window is inside the image, and the border region is obtained by constant extrapolation. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Filtered image, or NULL on error.</dd></dl>
-<p>Apply a <em>radx</em> by <em>rady</em> median filter to the input image. Each pixel is replaced by the median of a local window of size (2* <em>radx</em> + 1)* (2 * <em>rady</em> + 1) centered on the pixel. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__cpl_8c_source.html#l00516">516</a> of file <a class="el" href="uves__utils__cpl_8c_source.html">uves_utils_cpl.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__dump_8c_source.html#l00377">uves_tostring_cpl_type()</a>, and <a class="el" href="uves__utils__cpl_8c_source.html#l00439">uves_utils_get_kth_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils__cpl_8c_source.html#l00375">uves_filter_image_median()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab27457a252d480095e9f78b904becdc6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const cpl_property* uves_find_property_const </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>plist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>number</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find named property. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plist</td><td>propertylist to search </td></tr>
-    <tr><td class="paramname">name</td><td>property name </td></tr>
-    <tr><td class="paramname">number</td><td>number of property to find (counting from zero). E.g. setting number=1 would return the 2nd property with matching name </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>first property with given name, or NULL if not found</dd></dl>
-<p>No error is set if the property is not found </p>
-
-<p>Definition at line <a class="el" href="uves__utils__cpl_8c_source.html#l00199">199</a> of file <a class="el" href="uves__utils__cpl_8c_source.html">uves_utils_cpl.c</a>.</p>
-
-<p>References <a class="el" href="uves__propertylist_8c_source.html#l01650">uves_propertylist_get_const()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l00898">uves_propertylist_get_size()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga61202bb11e2387a91f36248674241b98"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_filter_image_average </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>radius_x</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>radius_y</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Average filter. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>Image to filter </td></tr>
-    <tr><td class="paramname">radius_x</td><td>width of filter window is 2*radius_x + 1 </td></tr>
-    <tr><td class="paramname">radius_y</td><td>height of filter window is 2*radius_y + 1 </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff OK.</dd></dl>
-<p>The <em>image</em> must be of type <em>CPL_TYPE_DOUBLE</em>.</p>
-<p>There is currently no handling of bad pixels. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__cpl_8c_source.html#l00250">250</a> of file <a class="el" href="uves__utils__cpl_8c_source.html">uves_utils_cpl.c</a>.</p>
-
-<p>References <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves__dump_8c_source.html#l00377">uves_tostring_cpl_type()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2637b4cd5f703fad74d5f9a9aef2394f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_filter_image_median </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image ** </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>xwindow</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ywindow</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>extrapolate_border</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Median filter. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>Image to filter </td></tr>
-    <tr><td class="paramname">xwindow</td><td>x-radius of filter window </td></tr>
-    <tr><td class="paramname">ywindow</td><td>y-radius of filter window </td></tr>
-    <tr><td class="paramname">extrapolate_border</td><td>See <code><a class="el" href="group__uves__utils__cpl.html#gafc2ebb8a19b1e10153319a018a743c9e" title="Median filter.">filter_median()</a></code> </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff OK.</dd></dl>
-<p>If the median window is large, this function is rather inefficient, because <code>cpl_image_get_median_window()</code> is called for each pixel. A more clever implementation would keep track of the running window. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__cpl_8c_source.html#l00375">375</a> of file <a class="el" href="uves__utils__cpl_8c_source.html">uves_utils_cpl.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, and <a class="el" href="uves__utils__cpl_8c_source.html#l00516">filter_median()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l03191">uves_get_blaze_ratio()</a>, <a class="el" href="uves__utils_8c_source.html#l00162">uves_rcosmic()</a>, and <a class="el" href="uves__response__efficiency_8c_source.html#l00100">uves_response_efficiency()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaab92b190da2ce4979277ec4f0a09cc5b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_utils_get_kth_double </td>
-          <td>(</td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>a</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>n</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>k</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>returns the kth value of an array </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">a</td><td>array </td></tr>
-    <tr><td class="paramname">n</td><td>array size </td></tr>
-    <tr><td class="paramname">k</td><td>component to evaluate</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>The array is modified </p>
-
-<p>Definition at line <a class="el" href="uves__utils__cpl_8c_source.html#l00439">439</a> of file <a class="el" href="uves__utils__cpl_8c_source.html">uves_utils_cpl.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils__cpl_8c_source.html#l00516">filter_median()</a>, and <a class="el" href="uves__utils__cpl_8c_source.html#l00475">uves_tools_get_median()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga94492b7e724286022f3bc946952dc79d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_tools_get_median </td>
-          <td>(</td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>a</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>n</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>returns median (not CPL median) of an array </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">a</td><td>array </td></tr>
-    <tr><td class="paramname">n</td><td>array size</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>The array is modified </p>
-
-<p>Definition at line <a class="el" href="uves__utils__cpl_8c_source.html#l00475">475</a> of file <a class="el" href="uves__utils__cpl_8c_source.html">uves_utils_cpl.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__cpl_8c_source.html#l00439">uves_utils_get_kth_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l05768">opt_get_noise_median()</a>, and <a class="el" href="uves__extract_8c_source.html#l05652">opt_get_sky()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga925c077e4720e3357196ef4161ffea53"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_fit_gaussian_2d_image </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>x1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>y_1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>x2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>y2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>x0</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>y_0</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>sigmax</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>sigmay</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>amplitude</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>dx0</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>dy0</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Fit a 2d gaussian to an image sub-window. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The image to fit. </td></tr>
-    <tr><td class="paramname">noise</td><td>The uncertainty (one sigma, gaussian errors assumed) associated with the image. If NULL, constant uncertainties are assumed, and then <em>dx0</em> and <em>dy0</em> cannot be determined. </td></tr>
-    <tr><td class="paramname">x1</td><td>Lower left corner (inclusive, FITS convention). </td></tr>
-    <tr><td class="paramname">y_1</td><td>Lower left corner (inclusive, FITS convention). </td></tr>
-    <tr><td class="paramname">x2</td><td>Upper right corner (inclusive, FITS convention). </td></tr>
-    <tr><td class="paramname">y2</td><td>Upper right corner (inclusive, FITS convention). </td></tr>
-    <tr><td class="paramname">x0</td><td>(output) x-center of best fit gaussian. </td></tr>
-    <tr><td class="paramname">y_0</td><td>(output) y-center of best fit gaussian. </td></tr>
-    <tr><td class="paramname">sigmax</td><td>(output) x-width of best fit gaussian. Positive on success. </td></tr>
-    <tr><td class="paramname">sigmay</td><td>(output) y-width of best fit gaussian. Positive on success. </td></tr>
-    <tr><td class="paramname">amplitude</td><td>(output) Height of the best fit gaussian, relative to the background level. May be NULL. </td></tr>
-    <tr><td class="paramname">dx0</td><td>(output) Uncertainty of <em>x0</em>. May be NULL. </td></tr>
-    <tr><td class="paramname">dy0</td><td>(output) Uncertainty of <em>y_0</em>. May be NULL.</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>The function does not make a 2d gaussian fit, but fits a one-dimensional gaussian to the marginal distributions in x and y. See also <code>uves_fit_gaussian_1d_image()</code>.</p>
-<dl class="section note"><dt>Note:</dt><dd>A CPL_ERROR_CONTINUE is set in the case (and only in that case) that the fitting algorithm fails to converge or converges to a non-sensical result. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils__cpl_8c_source.html#l00644">644</a> of file <a class="el" href="uves__utils__cpl_8c_source.html">uves_utils_cpl.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils_8c_source.html#l04288">uves_gauss()</a>, and <a class="el" href="uves__utils_8c_source.html#l04343">uves_gauss_derivative()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves-test_8c_source.html#l00152">test_gaussian_fitting()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__utils__polynomial.html b/html/group__uves__utils__polynomial.html
deleted file mode 100644
index 872352a..0000000
--- a/html/group__uves__utils__polynomial.html
+++ /dev/null
@@ -1,1292 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Polynomials</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#nested-classes">Data Structures</a> |
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Polynomials</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="nested-classes"></a>
-Data Structures</h2></td></tr>
-<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__polynomial.html">_polynomial</a></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga9096ba565ded9c57ef3fc560e3d991b6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6">uves_polynomial_new</a> (const cpl_polynomial *pol)</td></tr>
-<tr class="memdesc:ga9096ba565ded9c57ef3fc560e3d991b6"><td class="mdescLeft"> </td><td class="mdescRight">Create a polynomial.  <a href="#ga9096ba565ded9c57ef3fc560e3d991b6"></a><br/></td></tr>
-<tr class="memitem:ga7c239852c8d8b8b2059e8dd663cecded"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded">uves_polynomial_new_zero</a> (int dim)</td></tr>
-<tr class="memdesc:ga7c239852c8d8b8b2059e8dd663cecded"><td class="mdescLeft"> </td><td class="mdescRight">Create a zero polynomial.  <a href="#ga7c239852c8d8b8b2059e8dd663cecded"></a><br/></td></tr>
-<tr class="memitem:gadce80195c8cb781f190dc02c1ad26969"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969">uves_polynomial_delete</a> (<a class="el" href="struct__polynomial.html">polynomial</a> **p)</td></tr>
-<tr class="memdesc:gadce80195c8cb781f190dc02c1ad26969"><td class="mdescLeft"> </td><td class="mdescRight">Delete a polynomial.  <a href="#gadce80195c8cb781f190dc02c1ad26969"></a><br/></td></tr>
-<tr class="memitem:ga4dc3bcf2a9f13387b0336a2a1e997ebd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd">uves_polynomial_delete_const</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> **p)</td></tr>
-<tr class="memdesc:ga4dc3bcf2a9f13387b0336a2a1e997ebd"><td class="mdescLeft"> </td><td class="mdescRight">Delete a const polynomial.  <a href="#ga4dc3bcf2a9f13387b0336a2a1e997ebd"></a><br/></td></tr>
-<tr class="memitem:ga56987ebb6bb09ab3f7477783627cba7b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga56987ebb6bb09ab3f7477783627cba7b">uves_polynomial_get_degree</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p)</td></tr>
-<tr class="memdesc:ga56987ebb6bb09ab3f7477783627cba7b"><td class="mdescLeft"> </td><td class="mdescRight">Get degree.  <a href="#ga56987ebb6bb09ab3f7477783627cba7b"></a><br/></td></tr>
-<tr class="memitem:gad8738d35bff3f87c37e520c63fc87e53"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53">uves_polynomial_duplicate</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p)</td></tr>
-<tr class="memdesc:gad8738d35bff3f87c37e520c63fc87e53"><td class="mdescLeft"> </td><td class="mdescRight">Copy a polynomial.  <a href="#gad8738d35bff3f87c37e520c63fc87e53"></a><br/></td></tr>
-<tr class="memitem:ga63ecda6c71765c319dc2d4141222bb42"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga63ecda6c71765c319dc2d4141222bb42">uves_polynomial_convert_to_table</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p)</td></tr>
-<tr class="memdesc:ga63ecda6c71765c319dc2d4141222bb42"><td class="mdescLeft"> </td><td class="mdescRight">Convert a polynomial to a table.  <a href="#ga63ecda6c71765c319dc2d4141222bb42"></a><br/></td></tr>
-<tr class="memitem:ga135ba9a062f18392bb33b678c9dedaa4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga135ba9a062f18392bb33b678c9dedaa4">uves_polynomial_convert_from_table</a> (cpl_table *t)</td></tr>
-<tr class="memdesc:ga135ba9a062f18392bb33b678c9dedaa4"><td class="mdescLeft"> </td><td class="mdescRight">Convert a table to a polynomial.  <a href="#ga135ba9a062f18392bb33b678c9dedaa4"></a><br/></td></tr>
-<tr class="memitem:ga9307b754cb4bda3fa8a5d39088b3b616"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616">uves_polynomial_get_dimension</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p)</td></tr>
-<tr class="memdesc:ga9307b754cb4bda3fa8a5d39088b3b616"><td class="mdescLeft"> </td><td class="mdescRight">Get the dimension of a polynomial.  <a href="#ga9307b754cb4bda3fa8a5d39088b3b616"></a><br/></td></tr>
-<tr class="memitem:ga0879179dcb0100de2d26f8de459d5838"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga0879179dcb0100de2d26f8de459d5838">uves_polynomial_dump</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p, FILE *stream)</td></tr>
-<tr class="memdesc:ga0879179dcb0100de2d26f8de459d5838"><td class="mdescLeft"> </td><td class="mdescRight">Print a polynomial.  <a href="#ga0879179dcb0100de2d26f8de459d5838"></a><br/></td></tr>
-<tr class="memitem:gad1b02406a2e665216eb47b64010a7081"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081">uves_polynomial_rescale</a> (<a class="el" href="struct__polynomial.html">polynomial</a> *p, int varno, double scale)</td></tr>
-<tr class="memdesc:gad1b02406a2e665216eb47b64010a7081"><td class="mdescLeft"> </td><td class="mdescRight">Rescale a polynomial.  <a href="#gad1b02406a2e665216eb47b64010a7081"></a><br/></td></tr>
-<tr class="memitem:ga92dd36f46989bfa0c6dc8cea6012c5e4"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4">uves_polynomial_shift</a> (<a class="el" href="struct__polynomial.html">polynomial</a> *p, int varno, double shift)</td></tr>
-<tr class="memdesc:ga92dd36f46989bfa0c6dc8cea6012c5e4"><td class="mdescLeft"> </td><td class="mdescRight">Shift a polynomial.  <a href="#ga92dd36f46989bfa0c6dc8cea6012c5e4"></a><br/></td></tr>
-<tr class="memitem:gad309846d159693cdb1f8be9f302dc538"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538">uves_polynomial_evaluate_1d</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p, double x)</td></tr>
-<tr class="memdesc:gad309846d159693cdb1f8be9f302dc538"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate a 1d polynomial.  <a href="#gad309846d159693cdb1f8be9f302dc538"></a><br/></td></tr>
-<tr class="memitem:gaf7d99d1804bf2dc66d1ce026c1ec6b89"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89">uves_polynomial_evaluate_2d</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p, double x1, double x2)</td></tr>
-<tr class="memdesc:gaf7d99d1804bf2dc66d1ce026c1ec6b89"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate a 2d polynomial.  <a href="#gaf7d99d1804bf2dc66d1ce026c1ec6b89"></a><br/></td></tr>
-<tr class="memitem:gadc218f4dd3fa80d91949611419b75abb"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#gadc218f4dd3fa80d91949611419b75abb">uves_polynomial_solve_1d</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p, double value, double guess, int multiplicity)</td></tr>
-<tr class="memdesc:gadc218f4dd3fa80d91949611419b75abb"><td class="mdescLeft"> </td><td class="mdescRight">Solve p(x) = value.  <a href="#gadc218f4dd3fa80d91949611419b75abb"></a><br/></td></tr>
-<tr class="memitem:gacfd8db401e1250a53b8877ae118cce43"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#gacfd8db401e1250a53b8877ae118cce43">uves_polynomial_solve_2d</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p, double value, double guess, int multiplicity, int varno, double x_value)</td></tr>
-<tr class="memdesc:gacfd8db401e1250a53b8877ae118cce43"><td class="mdescLeft"> </td><td class="mdescRight">Solve p(x1, x2) = value.  <a href="#gacfd8db401e1250a53b8877ae118cce43"></a><br/></td></tr>
-<tr class="memitem:ga90b4e6124461402f664687575400686a"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a">uves_polynomial_derivative_2d</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p, double x1, double x2, int varno)</td></tr>
-<tr class="memdesc:ga90b4e6124461402f664687575400686a"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate the partial derivative of a 2d polynomial.  <a href="#ga90b4e6124461402f664687575400686a"></a><br/></td></tr>
-<tr class="memitem:ga182b594d06b39bdac65d27bca0104a13"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga182b594d06b39bdac65d27bca0104a13">uves_polynomial_derivative_1d</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p, double x)</td></tr>
-<tr class="memdesc:ga182b594d06b39bdac65d27bca0104a13"><td class="mdescLeft"> </td><td class="mdescRight">Evaluate the derivative of a 1d polynomial.  <a href="#ga182b594d06b39bdac65d27bca0104a13"></a><br/></td></tr>
-<tr class="memitem:gab234ee00fd4ba72b05a50adb61947306"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#gab234ee00fd4ba72b05a50adb61947306">uves_polynomial_add_2d</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p1, const <a class="el" href="struct__polynomial.html">polynomial</a> *p2)</td></tr>
-<tr class="memdesc:gab234ee00fd4ba72b05a50adb61947306"><td class="mdescLeft"> </td><td class="mdescRight">Add two polynomials.  <a href="#gab234ee00fd4ba72b05a50adb61947306"></a><br/></td></tr>
-<tr class="memitem:ga3308f7853a8f3e62d777e814f411f9c0"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga3308f7853a8f3e62d777e814f411f9c0">derivative_cpl_polynomial</a> (cpl_polynomial *p, int varno)</td></tr>
-<tr class="memdesc:ga3308f7853a8f3e62d777e814f411f9c0"><td class="mdescLeft"> </td><td class="mdescRight">Calculate the partial derivative of a CPL-polynomial.  <a href="#ga3308f7853a8f3e62d777e814f411f9c0"></a><br/></td></tr>
-<tr class="memitem:ga1d4833534bce8b70f0311a652961b806"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga1d4833534bce8b70f0311a652961b806">uves_polynomial_derivative</a> (<a class="el" href="struct__polynomial.html">polynomial</a> *p, int varno)</td></tr>
-<tr class="memdesc:ga1d4833534bce8b70f0311a652961b806"><td class="mdescLeft"> </td><td class="mdescRight">Calculate the partial derivative of a polynomial.  <a href="#ga1d4833534bce8b70f0311a652961b806"></a><br/></td></tr>
-<tr class="memitem:ga4db2d12df5c712085f53c050c219d39d"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d">uves_polynomial_get_coeff_2d</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p, int degree1, int degree2)</td></tr>
-<tr class="memdesc:ga4db2d12df5c712085f53c050c219d39d"><td class="mdescLeft"> </td><td class="mdescRight">Get a coefficient of a 2D polynomial.  <a href="#ga4db2d12df5c712085f53c050c219d39d"></a><br/></td></tr>
-<tr class="memitem:gacf2ce658f1bd12581b1adcef88aa97a8"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8">uves_polynomial_get_coeff_1d</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p, int degree)</td></tr>
-<tr class="memdesc:gacf2ce658f1bd12581b1adcef88aa97a8"><td class="mdescLeft"> </td><td class="mdescRight">Get a coefficient of a 1D polynomial.  <a href="#gacf2ce658f1bd12581b1adcef88aa97a8"></a><br/></td></tr>
-<tr class="memitem:gaec68fa3685c9988c384e327268d2d6b9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#gaec68fa3685c9988c384e327268d2d6b9">uves_polynomial_collapse</a> (const <a class="el" href="struct__polynomial.html">polynomial</a> *p, int varno, double value)</td></tr>
-<tr class="memdesc:gaec68fa3685c9988c384e327268d2d6b9"><td class="mdescLeft"> </td><td class="mdescRight">Collapse a polynomial by fixing one variable to a constant.  <a href="#gaec68fa3685c9988c384e327268d2d6b9"></a><br/></td></tr>
-<tr class="memitem:ga7ad30cd55f4aac4454029be7ffd3f5b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#ga7ad30cd55f4aac4454029be7ffd3f5b1">uves_polynomial_fit_1d</a> (const cpl_vector *x_pos, const cpl_vector *values, const cpl_vector *sigmas, int poly_deg, double *mse)</td></tr>
-<tr class="memdesc:ga7ad30cd55f4aac4454029be7ffd3f5b1"><td class="mdescLeft"> </td><td class="mdescRight">Fit a 1d function with a polynomial.  <a href="#ga7ad30cd55f4aac4454029be7ffd3f5b1"></a><br/></td></tr>
-<tr class="memitem:gab14a64f250fb7d98d0a16d3b112430c3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3">uves_polynomial_fit_2d</a> (const cpl_bivector *xy_pos, const cpl_vector *values, const cpl_vector *sigmas, int poly_deg1, int poly_deg2, double *mse, double *red_chisq, <a class="e [...]
-<tr class="memdesc:gab14a64f250fb7d98d0a16d3b112430c3"><td class="mdescLeft"> </td><td class="mdescRight">Fit a 2d surface with a polynomial in x and y.  <a href="#gab14a64f250fb7d98d0a16d3b112430c3"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module provides N dimensional polynomials.</p>
-<p>This class is a wrapper of CPL's polynomial class, but it improves the accuracy of the fitting routine (related to DFS ticket: DFS02237), and it allows fitting with a 2d polynomial with different degree of the independent variables (which CPL does not support), and also allows propagation of the uncertainty of the fit.</p>
-<p>Also, the module adds simple functionalities like shifting a 2d polynomial, collapsing a 2d polynomial to a 1d polynomial, and conversion of a polynomial to/from a CPL table (which can be used for I/O).</p>
-<p>The functionality in this module has been implemented only as needed. Therefore, 1) some functionality which "should" to be there (like collapsing a polynomial of any dimension) is missing, but 2) all the functionality present has been tested. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga9096ba565ded9c57ef3fc560e3d991b6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>* uves_polynomial_new </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_polynomial * </td>
-          <td class="paramname"><em>pol</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create a polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">pol</td><td>The CPL polynomial to wrap </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A new polynomial, which must be deallocated with <code><a class="el" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete()</a></code>, or NULL on error.</dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>The provided CPL polynomial is duplicated and must still be deallocated independently from the polynomial returned from this function. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00220">220</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">_polynomial::pol</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">_polynomial::scale</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uve [...]
-
-<p>Referenced by <a class="el" href="uves__polynomial-test_8c_source.html#l00193">test_polynomial()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00942">uves_polynomial_add_2d()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01227">uves_polynomial_collapse()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00469">uves_polynomial_convert_from_table()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00347">uves_polynomial [...]
-
-</div>
-</div>
-<a class="anchor" id="ga7c239852c8d8b8b2059e8dd663cecded"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>* uves_polynomial_new_zero </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>dim</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Create a zero polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">dim</td><td>Dimension of polynomial </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A new polynomial, which must be deallocated with <code><a class="el" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete()</a></code>, or NULL on error. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00267">267</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00220">uves_polynomial_new()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>, <a class="el" href="uves__extract_8c_source.html#l03985">opt_measure_profile_order()</a>, and <a class="el" href="uves__extract-test_8c_source.html#l00185">test_extract()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadce80195c8cb781f190dc02c1ad26969"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_polynomial_delete </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td>
-          <td class="paramname"><em>p</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Delete a polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>polynomial to delete</td></tr>
-  </table>
-  </dd>
-</dl>
-<p><em>p</em> is deleted and set to NULL. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">295</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__polynomial_8c_source.html#l00309">uves_polynomial_delete_const()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l01127">calibrate_global()</a>, <a class="el" href="uves__test__simulate_8c_source.html#l00218">create_line_table()</a>, <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>, <a class="el" href="uves__orderpos__follow_8c_source.html#l00992">fit_order_linear()</a>, <a class="el" href="uves__reduce_8c_source.html#l01509">interpolate_wave()</a>, <a class="el" href="uves__extract_8c_so [...]
-
-</div>
-</div>
-<a class="anchor" id="ga4dc3bcf2a9f13387b0336a2a1e997ebd"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_polynomial_delete_const </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> ** </td>
-          <td class="paramname"><em>p</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Delete a const polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>polynomial to delete</td></tr>
-  </table>
-  </dd>
-</dl>
-<p><em>p</em> is deleted and set to NULL. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00309">309</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, and <a class="el" href="uves__reduce__scired_8c_source.html#l00654">uves_reduce_scired()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga56987ebb6bb09ab3f7477783627cba7b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_polynomial_get_degree </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get degree. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>polynomial </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>degree </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00328">328</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">_polynomial::pol</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00942">uves_polynomial_add_2d()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad8738d35bff3f87c37e520c63fc87e53"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>* uves_polynomial_duplicate </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Copy a polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>polynomial to copy </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A clone of the input polynomial or NULL on error. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00347">347</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">_polynomial::pol</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">_polynomial::scale</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, <a class="el" href="uves__utils__polynomial_ [...]
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>, <a class="el" href="uves__reduce_8c_source.html#l01509">interpolate_wave()</a>, <a class="el" href="uves__extract_8c_source.html#l06189">repeat_orderdef()</a>, <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01172">uves_polynomial_get_coeff_1d()</a>, and <a class="el" href="uves__utils__polynomial_8 [...]
-
-</div>
-</div>
-<a class="anchor" id="ga63ecda6c71765c319dc2d4141222bb42"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* uves_polynomial_convert_to_table </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Convert a polynomial to a table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>polynomial to convert </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A table representation of the polynomial, or NULL on error.</dd></dl>
-<p>Currently, only 2d polynomials are supported. The polynomial is written to the table in an internal format ; Therefore the table should not be read or edited manually, but only read using the function <code><a class="el" href="group__uves__utils__polynomial.html#ga135ba9a062f18392bb33b678c9dedaa4" title="Convert a table to a polynomial.">uves_polynomial_convert_from_table()</a></code> . </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00389">389</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">_polynomial::pol</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">_polynomial::scale</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00547">uves_polynomial_get_dimension()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01687">extract_ff_rebin_merge()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga135ba9a062f18392bb33b678c9dedaa4"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>* uves_polynomial_convert_from_table </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>t</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Convert a table to a polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">t</td><td>Table to convert </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The polynomial stored in the table, which must be deallocated with <code><a class="el" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete()</a></code>, or NULL on error.</dd></dl>
-<p>Currently, only 2d polynomials are supported. See also <code><a class="el" href="group__uves__utils__polynomial.html#ga63ecda6c71765c319dc2d4141222bb42" title="Convert a polynomial to a table.">uves_polynomial_convert_to_table()</a></code> . </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00469">469</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00220">uves_polynomial_new()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00601">uves_polynomial_rescale()</a>, <a class="el" href="uves__utils__polynomial_8c_sou [...]
-
-</div>
-</div>
-<a class="anchor" id="ga9307b754cb4bda3fa8a5d39088b3b616"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_polynomial_get_dimension </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the dimension of a polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The input polynomial </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The dimension of <em>p</em>, undefined in case of error. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00547">547</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l00613">compute_lambda()</a>, <a class="el" href="uves__dfs-test_8c_source.html#l00205">parse_midas_poly()</a>, <a class="el" href="uves__wavecal__utils_8c_source.html#l00404">uves_draw_lines()</a>, <a class="el" href="uves__extract_8c_source.html#l00569">uves_extract()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00942">uves_polynomial_add_2d()</a>, <a class="el" href="uves__utils__polynomial [...]
-
-</div>
-</div>
-<a class="anchor" id="ga0879179dcb0100de2d26f8de459d5838"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_polynomial_dump </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">FILE * </td>
-          <td class="paramname"><em>stream</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Print a polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The polynomial to print </td></tr>
-    <tr><td class="paramname">stream</td><td>Where to dump the polynomial (e.g. "stdout")</td></tr>
-  </table>
-  </dd>
-</dl>
-<p>This function does not use CPL's messaging system and should be used only for debugging. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00568">568</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">_polynomial::pol</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">_polynomial::scale</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00547">uves_polynomial_get_dimension()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l03985">opt_measure_profile_order()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad1b02406a2e665216eb47b64010a7081"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_polynomial_rescale </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>varno</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>scale</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Rescale a polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The polynomial to rescale </td></tr>
-    <tr><td class="paramname">varno</td><td>Rescale with respect to this variable (number) </td></tr>
-    <tr><td class="paramname">scale</td><td>The rescaling factor </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff OK</dd></dl>
-<p>The variable specified by <em>varno</em> is rescaled: <em>p</em> (x_1, ..., x_varno, ..., x_n) :=<em>p</em> (x_1, ..., x_varno / <em>scale</em>, ..., x_n).</p>
-<p>If <em>varno</em> is zero, a the polynomial itself is rescaled: <em>p(x)</em> := p(x) * <em>scale</em> . Negative values of <em>varno</em> are illegal. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00601">601</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">_polynomial::scale</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00547">uves_polynomial_get_dimension()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01509">interpolate_wave()</a>, <a class="el" href="uves__polynomial-test_8c_source.html#l00193">test_polynomial()</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00469">uves_polynomial_convert_from_table()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga92dd36f46989bfa0c6dc8cea6012c5e4"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_polynomial_shift </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>varno</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>shift</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Shift a polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The polynomial to shift </td></tr>
-    <tr><td class="paramname">varno</td><td>Shift with respect to this variable (number) </td></tr>
-    <tr><td class="paramname">shift</td><td>The amount to shift </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff OK</dd></dl>
-<p>The polynomial is shifted: <em>p</em> (x_1, ..., x_varno, ..., x_n) :=<em>p</em> (x_1, ..., x_varno - <em>shift</em>, ..., x_n).</p>
-<p>If <em>varno</em> is zero, a constant is added to the polynomial: <em>p(x)</em> := p(x) + <em>shift</em> . Negative values of <em>varno</em> are illegal. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00642">642</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00547">uves_polynomial_get_dimension()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>, <a class="el" href="uves__extract_8c_source.html#l03985">opt_measure_profile_order()</a>, <a class="el" href="uves__extract-test_8c_source.html#l00185">test_extract()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00469">uves_polynomial_convert_from_table()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01333">uves_polynomial_fit_1d()</a>, and <a class= [...]
-
-</div>
-</div>
-<a class="anchor" id="gad309846d159693cdb1f8be9f302dc538"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_polynomial_evaluate_1d </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Evaluate a 1d polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The polynomial to evaluate </td></tr>
-    <tr><td class="paramname">x</td><td>Where to evaluate the polynomial </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd><em>p</em> ( <em>x</em> ), or undefined on error.</dd></dl>
-<p>The polynomial must be 1d. See also <code><a class="el" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d()</a></code> . </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00674">674</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">_polynomial::pol</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">_polynomial::scale</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00547">uves_polynomial_get_dimension()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l00992">fit_order_linear()</a>, <a class="el" href="uves__extract_8c_source.html#l06143">opt_get_redchisq()</a>, <a class="el" href="uves__extract_8c_source.html#l02745">opt_measure_profile()</a>, <a class="el" href="uves__reduce_8c_source.html#l03191">uves_get_blaze_ratio()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01172">uves_polynomial_get_coeff_1d()</a>, and <a class="el" href="uves__uti [...]
-
-</div>
-</div>
-<a class="anchor" id="gaf7d99d1804bf2dc66d1ce026c1ec6b89"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_polynomial_evaluate_2d </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x2</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Evaluate a 2d polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The polynomial to evaluate </td></tr>
-    <tr><td class="paramname">x1</td><td>Where to evaluate the polynomial </td></tr>
-    <tr><td class="paramname">x2</td><td>Where to evaluate the polynomial </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd><em>p</em> ( <em>x1</em> ,<em>x2</em> ), or undefined on error.</dd></dl>
-<p>The polynomial must be 2d. See also <code><a class="el" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d()</a></code> . </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">705</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">_polynomial::pol</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">_polynomial::scale</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00192">_polynomial::vec</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l00613">compute_lambda()</a>, <a class="el" href="uves__test__simulate_8c_source.html#l00218">create_line_table()</a>, <a class="el" href="uves__test__simulate_8c_source.html#l00110">create_order_table()</a>, <a class="el" href="uves__wavecal__search_8c_source.html#l00426">detect_lines()</a>, <a class="el" href="uves__extract_8c_source.html#l01686">extract_order_simple()</a>, <a class="el" href="uves__reduce_8c_s [...]
-
-</div>
-</div>
-<a class="anchor" id="gadc218f4dd3fa80d91949611419b75abb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_polynomial_solve_1d </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>guess</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>multiplicity</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Solve p(x) = value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The input polynomial </td></tr>
-    <tr><td class="paramname">value</td><td>The requested value of the polynomial </td></tr>
-    <tr><td class="paramname">guess</td><td>A guess solution </td></tr>
-    <tr><td class="paramname">multiplicity</td><td>The multiplycity of the root (or 1 if unknown) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>x satisfying the equation <em>p</em> (x) = <em>value</em>, or undefined on error.</dd></dl>
-<p>This function uses <code>cpl_polynomial_solve_1d()</code> to solve the equation <em>p</em> (x) = <em>value</em> . See <code>cpl_polynomial_solve_1d()</code> for a description of the algorithm. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00743">743</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">_polynomial::pol</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">_polynomial::scale</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00547">uves_polynomial_get_dimension()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils__polynomial_8c_source.html#l00797">uves_polynomial_solve_2d()</a>, <a class="el" href="uves__rebin_8c_source.html#l00348">uves_rebin()</a>, and <a class="el" href="uves__response__efficiency_8c_source.html#l00100">uves_response_efficiency()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gacfd8db401e1250a53b8877ae118cce43"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_polynomial_solve_2d </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>value</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>guess</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>multiplicity</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>varno</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x_value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Solve p(x1, x2) = value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The input polynomial </td></tr>
-    <tr><td class="paramname">value</td><td>The requested value of the polynomial </td></tr>
-    <tr><td class="paramname">guess</td><td>A guess solution </td></tr>
-    <tr><td class="paramname">multiplicity</td><td>The multiplycity of the root (or 1 if unknown) </td></tr>
-    <tr><td class="paramname">varno</td><td>The variable number to fix (1 or 2) </td></tr>
-    <tr><td class="paramname">x_value</td><td>Variable number <em>varno</em> is fixed to this value </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The solution of the equation, or undefined on error.</dd></dl>
-<p>This function solves the equation <em>p</em> (x1, x2) = <em>value</em>, where either x1 or x2 is already fixed to <em>x_value</em>.</p>
-<p>For example, to solve the equation <em>p</em> (37, x) = 500 for x, call <code>uves_polynomial_solve_2d(p, 500, x_guess, 1, 1, 37)</code> . </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00797">797</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01227">uves_polynomial_collapse()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00743">uves_polynomial_solve_1d()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__extract_8c_source.html#l05145">opt_get_order_width()</a>, and <a class="el" href="uves__wavecal__utils_8c_source.html#l00404">uves_draw_lines()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga90b4e6124461402f664687575400686a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_polynomial_derivative_2d </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>varno</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Evaluate the partial derivative of a 2d polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The input polynomial </td></tr>
-    <tr><td class="paramname">x1</td><td>Where to evaluate the derivative </td></tr>
-    <tr><td class="paramname">x2</td><td>Where to evaluate the derivative </td></tr>
-    <tr><td class="paramname">varno</td><td>Evaluate partial derivative with respect to this variable (1 or 2) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>dp/dx_varno evaluated at (x1, x2), or undefined on error. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00828">828</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">_polynomial::pol</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">_polynomial::scale</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00547">uves_polynomial_get_dimension()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l00613">compute_lambda()</a>, <a class="el" href="uves__extract_8c_source.html#l01407">detect_ripples()</a>, <a class="el" href="uves__rebin_8c_source.html#l00348">uves_rebin()</a>, and <a class="el" href="uves__response__efficiency_8c_source.html#l00100">uves_response_efficiency()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga182b594d06b39bdac65d27bca0104a13"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_polynomial_derivative_1d </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>x</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Evaluate the derivative of a 1d polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The input polynomial </td></tr>
-    <tr><td class="paramname">x</td><td>Where to evaluate the derivative </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>dp/dx evaluated at x, or undefined on error. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00917">917</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">_polynomial::pol</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">_polynomial::scale</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00547">uves_polynomial_get_dimension()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab234ee00fd4ba72b05a50adb61947306"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>* uves_polynomial_add_2d </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p2</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Add two polynomials. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p1</td><td>left </td></tr>
-    <tr><td class="paramname">p2</td><td>right </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>p1 + p2 </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00942">942</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__polynomial_8c_source.html#l01116">uves_polynomial_get_coeff_2d()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00328">uves_polynomial_get_degree()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00547">uves_polynomial_get_dimension()</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00220">uves_polynomial_new()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__reduce_8c_source.html#l01509">interpolate_wave()</a>, and <a class="el" href="uves__polynomial-test_8c_source.html#l00193">test_polynomial()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3308f7853a8f3e62d777e814f411f9c0"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code derivative_cpl_polynomial </td>
-          <td>(</td>
-          <td class="paramtype">cpl_polynomial * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>varno</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Calculate the partial derivative of a CPL-polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The input polynomial </td></tr>
-    <tr><td class="paramname">varno</td><td>Differentiate with respect to this variable number (counting from 1 to dimension) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay.</dd></dl>
-<p>The polynomial is transformed from <em>p</em> to <em>dp/dx_varno</em>.</p>
-<p>1D and 2D polynomials are supported. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l01007">1007</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils__polynomial_8c_source.html#l01073">uves_polynomial_derivative()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1d4833534bce8b70f0311a652961b806"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_polynomial_derivative </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>varno</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Calculate the partial derivative of a polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The input polynomial </td></tr>
-    <tr><td class="paramname">varno</td><td>Differentiate with respect to this variable number (counting from 1 to dimension) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay.</dd></dl>
-<p>The polynomial is transformed from <em>p</em> to <em>dp/dx_varno</em>. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l01073">1073</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01007">derivative_cpl_polynomial()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">_polynomial::pol</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">_polynomial::scale</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, and <a class="el" href="uves__utils__poly [...]
-
-<p>Referenced by <a class="el" href="uves__utils__polynomial_8c_source.html#l01172">uves_polynomial_get_coeff_1d()</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l01116">uves_polynomial_get_coeff_2d()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4db2d12df5c712085f53c050c219d39d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_polynomial_get_coeff_2d </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>degree1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>degree2</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get a coefficient of a 2D polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The input polynomial </td></tr>
-    <tr><td class="paramname">degree1</td><td>The coefficient degree </td></tr>
-    <tr><td class="paramname">degree2</td><td>The coefficient degree </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The coefficient of the term (degree1, degree2), or undefined on error. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l01116">1116</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01073">uves_polynomial_derivative()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00347">uves_polynomial_duplicate()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>, and <a class [...]
-
-<p>Referenced by <a class="el" href="uves__polynomial-test_8c_source.html#l00193">test_polynomial()</a>, <a class="el" href="uves__polynomial-test_8c_source.html#l00102">test_polynomial_fit_2d()</a>, <a class="el" href="uves__physmod__msrawxy_8c_source.html#l00086">uves_physmod_msrawxy()</a>, <a class="el" href="uves__physmod__regress__echelle_8c_source.html#l00098">uves_physmod_regress_echelle()</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00942">uves_polynomial_ [...]
-
-</div>
-</div>
-<a class="anchor" id="gacf2ce658f1bd12581b1adcef88aa97a8"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double uves_polynomial_get_coeff_1d </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>degree</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get a coefficient of a 1D polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The input polynomial </td></tr>
-    <tr><td class="paramname">degree</td><td>Coefficient degree </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The coefficient of the degree'th term, or undefined on error.</dd></dl>
-<p>If the required degree is greater than the polynomial's degree, the function does not fail but returns 0 as it should. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l01172">1172</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01073">uves_polynomial_derivative()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00347">uves_polynomial_duplicate()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00674">uves_polynomial_evaluate_1d()</a>, and <a class [...]
-
-<p>Referenced by <a class="el" href="uves__orderpos__follow_8c_source.html#l00992">fit_order_linear()</a>, <a class="el" href="uves__extract_8c_source.html#l03985">opt_measure_profile_order()</a>, and <a class="el" href="uves__physmod__calmap_8c_source.html#l00068">uves_physmod_calmap()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaec68fa3685c9988c384e327268d2d6b9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>* uves_polynomial_collapse </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>varno</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Collapse a polynomial by fixing one variable to a constant. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>The polynomial to collapse </td></tr>
-    <tr><td class="paramname">varno</td><td>Variable number to fix </td></tr>
-    <tr><td class="paramname">value</td><td>Fix variable number <em>varno</em> to this value </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A newly allocated, collapsed polynomial which must be deallocated with <code><a class="el" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete()</a></code>, or NULL on error.</dd></dl>
-<p>This function fixes one variable of a polynomial to a constant value, thereby producing a polynomial, p(x1, ..., x_varno = value, ..., xn), with dimension n - 1.</p>
-<p>Currently, only n=2 is supported. </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l01227">1227</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">_polynomial::pol</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">_polynomial::scale</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">_polynomial::shift</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>, <a class="el" href="uves__utils__polyno [...]
-
-<p>Referenced by <a class="el" href="uves__utils__polynomial_8c_source.html#l00797">uves_polynomial_solve_2d()</a>, <a class="el" href="uves__rebin_8c_source.html#l00348">uves_rebin()</a>, and <a class="el" href="uves__response__efficiency_8c_source.html#l00100">uves_response_efficiency()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7ad30cd55f4aac4454029be7ffd3f5b1"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>* uves_polynomial_fit_1d </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>x_pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>sigmas</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>poly_deg</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>mse</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Fit a 1d function with a polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">x_pos</td><td>List of positions of the signal to fit. </td></tr>
-    <tr><td class="paramname">values</td><td>List of values of the signal to fit. </td></tr>
-    <tr><td class="paramname">sigmas</td><td>List of uncertainties of the surface points. If NULL, constant uncertainties are used. </td></tr>
-    <tr><td class="paramname">poly_deg</td><td>Polynomial degree. </td></tr>
-    <tr><td class="paramname">mse</td><td>Output mean squared error. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The fitted polynomial or NULL in error case</dd></dl>
-<p>This function is a straightforward adaption of CPL's <code>cpl_polynomial_fit_1d_create()</code> . But before performing the fit, all values are shifted, so that they are centered around zero. This improves the accuracy of the fit.</p>
-<p>Also, there's support for taking into account the uncertainties of the dependent variable.</p>
-<p>See also <code>cpl_polynomial_fit_1d_create()</code> and <code><a class="el" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d()</a></code> . </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l01333">1333</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00177">assure_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00220">uves_polynomial_new()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00642">uves_polynomial_shift()</a>, and <a class="el" href="uves__utils_8c_source.html#l01593">uves_pow_int()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils_8c_source.html#l02587">uves_polynomial_regression_1d()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab14a64f250fb7d98d0a16d3b112430c3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>* uves_polynomial_fit_2d </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_bivector * </td>
-          <td class="paramname"><em>xy_pos</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>values</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_vector * </td>
-          <td class="paramname"><em>sigmas</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>poly_deg1</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>poly_deg2</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>mse</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>red_chisq</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td>
-          <td class="paramname"><em>variance</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Fit a 2d surface with a polynomial in x and y. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">xy_pos</td><td>List of positions of the surface to fit. </td></tr>
-    <tr><td class="paramname">values</td><td>List of values of the surface points. </td></tr>
-    <tr><td class="paramname">sigmas</td><td>List of uncertainties of the surface points. </td></tr>
-    <tr><td class="paramname">poly_deg1</td><td>Polynomial degree of 1st variable (x) </td></tr>
-    <tr><td class="paramname">poly_deg2</td><td>Polynomial degree of 2nd variable (y) </td></tr>
-    <tr><td class="paramname">mse</td><td>Output mean squared error </td></tr>
-    <tr><td class="paramname">red_chisq</td><td>Output reduced chi square </td></tr>
-    <tr><td class="paramname">variance</td><td>Variance polynomial (see below) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The fitted polynomial or NULL in error case.</dd></dl>
-<p>This function fits a 2d polynomial to a surface. The input grid is given in xy_pos and values. xy_pos and values of course must contain the same number of points. If <em>sigmas</em> is NULL, constant sigma (equal to 1) is used.</p>
-<p>This function is an adaption of CPL's <code>cpl_polynomial_fit_2d_create()</code> . But the fit is made with a general rectangular coefficient matrix (the size of which is indicated by the polynomial degrees, <em>poly_deg1</em> and <em>poly_deg2</em>) instead of the upper-left triangular matrix used by <code>cpl_polynomial_fit_2d_create()</code>.</p>
-<p>And before performing the fit, all values are shifted, so that they are centered around zero, which improves the accuracy of the fit. Rescaling with stdev makes the fit worse (empirically) so this is not done.</p>
-<p>If <em>mse</em> is non-NULL, the mean squared error of the fit is returned through this variable. If <em>red_chisq</em> is non-NULL, the reduced chi square of the fit is returned through this variable.</p>
-<p>If <em>variance</em> is non-NULL the variance polynomial defined as (using the error propagation formula for correlated coefficients {coeff_i}) variance(x,y) = sum_{ij} d(p_fit)/d(coeff_i) * cov_{ij} * d(p_fit)/d(coeff_j) = sum_{ij} x^degx[i]*y^degy[i] * cov_{ij} * x^degx[j]*y^degy[j] = sum_{ij} cov_{ij} * x^(degx[i]+degx[j]) * y^(degy[i]+degy[j]) will be returned through this variable (i.e. the parameter must be the address of a <em></em>(polynomial*) variable. The variance polynomia [...]
-<p>See also <code>cpl_polynomial_fit_2d_create()</code> and <code><a class="el" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d()</a></code> . </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l01513">1513</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00220">uves_polynomial_new()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00642">uves_polynomial_shift()</a>, and <a class="el" href="uves__utils_8c_source.h [...]
-
-<p>Referenced by <a class="el" href="uves__polynomial-test_8c_source.html#l00102">test_polynomial_fit_2d()</a>, and <a class="el" href="uves__utils_8c_source.html#l02866">uves_polynomial_regression_2d()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__utils__test.html b/html/group__uves__utils__test.html
deleted file mode 100644
index b1efbfa..0000000
--- a/html/group__uves__utils__test.html
+++ /dev/null
@@ -1,173 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Utility function unit tests</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#define-members">Macros</a> |
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Utility function unit tests</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
-Macros</h2></td></tr>
-<tr class="memitem:ga0592dba56693fad79136250c11e5a7fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0592dba56693fad79136250c11e5a7fe"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>MAX_SIZE</b>   4096</td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga2e64b5512eb80e5f14212851bebef98e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga2e64b5512eb80e5f14212851bebef98e"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>uves_filter_cosmic_test</b> (void)</td></tr>
-<tr class="memitem:gaa9c5cf7cbad2eb15c7248a89e547af82"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa9c5cf7cbad2eb15c7248a89e547af82"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>uves_find_property_test</b> (void)</td></tr>
-<tr class="memitem:ga2078e2b562988b0d9970d29bdf48c641"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga2078e2b562988b0d9970d29bdf48c641"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>uves_average_reject_test</b> (void)</td></tr>
-<tr class="memitem:ga1eab84b47fdec967dd3de1d7775755ab"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga1eab84b47fdec967dd3de1d7775755ab"></a>
-static void </td><td class="memItemRight" valign="bottom"><b>uves_polynomial_fit_2d_test</b> (void)</td></tr>
-<tr class="memitem:ga08eba462d1c80f2b403eb9da1fc1e698"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__test.html#ga08eba462d1c80f2b403eb9da1fc1e698">table_erase_selected</a> (void)</td></tr>
-<tr class="memitem:ga840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga840291bc02cba5474a4cb46a9b9566fe"></a>
-int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utils__test.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
-<tr class="memdesc:ga840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft"> </td><td class="mdescRight">Test utility functions. <br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga08eba462d1c80f2b403eb9da1fc1e698"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int table_erase_selected </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-<ul>
-<li>cpl_table_save(table, list1, list2, "test_table.tfits", 0); cpl_table_delete(table); table = cpl_table_load("test_table.tfits", 1, 1);</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!! %%%</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!! %%%</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!!</li>
-</ul>
-<ul>
-<li>FIXME: RESTORE!!! </li>
-</ul>
-
-<p>Definition at line <a class="el" href="uves__utils-test_8c_source.html#l00528">528</a> of file <a class="el" href="uves__utils-test_8c_source.html">uves_utils-test.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__propertylist_8c_source.html#l00858">uves_propertylist_delete()</a>, and <a class="el" href="uves__propertylist_8c_source.html#l00772">uves_propertylist_new()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils-test_8c_source.html#l03679">main()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__utils__wrappers.html b/html/group__uves__utils__wrappers.html
deleted file mode 100644
index 11a1baf..0000000
--- a/html/group__uves__utils__wrappers.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Utility functions (wrappers)</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Utility functions (wrappers)</div>  </div>
-</div><!--header-->
-<div class="contents">
-<p>This module contains wrapper functions, convenience functions and simple extensions of CPL functions. </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__utl__ima__arith.html b/html/group__uves__utl__ima__arith.html
deleted file mode 100644
index 599d732..0000000
--- a/html/group__uves__utl__ima__arith.html
+++ /dev/null
@@ -1,265 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe to do operations on an image</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Recipe to do operations on an image</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga31d1fccd4cd15b1c1f3c5edc8cb18693"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__ima__arith.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693">cpl_plugin_get_info</a> (cpl_pluginlist *list)</td></tr>
-<tr class="memdesc:ga31d1fccd4cd15b1c1f3c5edc8cb18693"><td class="mdescLeft"> </td><td class="mdescRight">Build the list of available plugins, for this module.  <a href="#ga31d1fccd4cd15b1c1f3c5edc8cb18693"></a><br/></td></tr>
-<tr class="memitem:ga954092253234f48324af709c2d7ea7d5"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__ima__arith.html#ga954092253234f48324af709c2d7ea7d5">uves_utl_ima_arith_create</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:ga954092253234f48324af709c2d7ea7d5"><td class="mdescLeft"> </td><td class="mdescRight">Setup the recipe options.  <a href="#ga954092253234f48324af709c2d7ea7d5"></a><br/></td></tr>
-<tr class="memitem:gadb1e3d51a74afcdbff10fef274707c8f"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__ima__arith.html#gadb1e3d51a74afcdbff10fef274707c8f">uves_utl_ima_arith_exec</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:gadb1e3d51a74afcdbff10fef274707c8f"><td class="mdescLeft"> </td><td class="mdescRight">Execute the plugin instance given by the interface.  <a href="#gadb1e3d51a74afcdbff10fef274707c8f"></a><br/></td></tr>
-<tr class="memitem:gaf349b59d28b57f043bf44c361370bb46"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__ima__arith.html#gaf349b59d28b57f043bf44c361370bb46">uves_utl_ima_arith_destroy</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:gaf349b59d28b57f043bf44c361370bb46"><td class="mdescLeft"> </td><td class="mdescRight">Destroy what has been created by the 'create' function.  <a href="#gaf349b59d28b57f043bf44c361370bb46"></a><br/></td></tr>
-<tr class="memitem:ga381a7f807d484e3b74ea7d9bacdcb820"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__ima__arith.html#ga381a7f807d484e3b74ea7d9bacdcb820">uves_utl_ima_arith</a> (cpl_parameterlist *parlist, cpl_frameset *framelist)</td></tr>
-<tr class="memdesc:ga381a7f807d484e3b74ea7d9bacdcb820"><td class="mdescLeft"> </td><td class="mdescRight">Get the command line options and execute the data reduction.  <a href="#ga381a7f807d484e3b74ea7d9bacdcb820"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga31d1fccd4cd15b1c1f3c5edc8cb18693"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int cpl_plugin_get_info </td>
-          <td>(</td>
-          <td class="paramtype">cpl_pluginlist * </td>
-          <td class="paramname"><em>list</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Build the list of available plugins, for this module. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">list</td><td>the plugin list </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok</dd></dl>
-<p>This function is exported. </p>
-
-<p>Definition at line <a class="el" href="uves__utl__ima__arith_8c_source.html#l00098">98</a> of file <a class="el" href="uves__utl__ima__arith_8c_source.html">uves_utl_ima_arith.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils_8c_source.html#l01676">uves_get_license()</a>, <a class="el" href="uves__utl__ima__arith_8c_source.html#l00132">uves_utl_ima_arith_create()</a>, <a class="el" href="uves__utl__ima__arith_8c_source.html#l00204">uves_utl_ima_arith_destroy()</a>, and <a class="el" href="uves__utl__ima__arith_8c_source.html#l00173">uves_utl_ima_arith_exec()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga954092253234f48324af709c2d7ea7d5"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_ima_arith_create </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Setup the recipe options. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok</dd></dl>
-<p>Create the recipe instance and make it available to the application using the interface. </p>
-
-<p>Definition at line <a class="el" href="uves__utl__ima__arith_8c_source.html#l00132">132</a> of file <a class="el" href="uves__utl__ima__arith_8c_source.html">uves_utl_ima_arith.c</a>.</p>
-
-<p>References <a class="el" href="irplib__utils_8c_source.html#l01134">irplib_reset()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__ima__arith_8c_source.html#l00098">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadb1e3d51a74afcdbff10fef274707c8f"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_ima_arith_exec </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Execute the plugin instance given by the interface. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utl__ima__arith_8c_source.html#l00173">173</a> of file <a class="el" href="uves__utl__ima__arith_8c_source.html">uves_utl_ima_arith.c</a>.</p>
-
-<p>References <a class="el" href="irplib__utils_8c_source.html#l01134">irplib_reset()</a>, and <a class="el" href="uves__utl__ima__arith_8c_source.html#l00226">uves_utl_ima_arith()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__ima__arith_8c_source.html#l00098">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf349b59d28b57f043bf44c361370bb46"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_ima_arith_destroy </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Destroy what has been created by the 'create' function. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utl__ima__arith_8c_source.html#l00204">204</a> of file <a class="el" href="uves__utl__ima__arith_8c_source.html">uves_utl_ima_arith.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__ima__arith_8c_source.html#l00098">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga381a7f807d484e3b74ea7d9bacdcb820"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_ima_arith </td>
-          <td>(</td>
-          <td class="paramtype">cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>framelist</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get the command line options and execute the data reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parlist</td><td>the parameters list </td></tr>
-    <tr><td class="paramname">framelist</td><td>the frames list </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utl__ima__arith_8c_source.html#l00226">226</a> of file <a class="el" href="uves__utl__ima__arith_8c_source.html">uves_utl_ima_arith.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, and <a class="el" href="uves__msg_8h_source.html#l00064">uves_msg_error</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__ima__arith_8c_source.html#l00173">uves_utl_ima_arith_exec()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__utl__physmod.html b/html/group__uves__utl__physmod.html
deleted file mode 100644
index 6154616..0000000
--- a/html/group__uves__utl__physmod.html
+++ /dev/null
@@ -1,265 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe to remove CRHs from an image</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Recipe to remove CRHs from an image</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga31d1fccd4cd15b1c1f3c5edc8cb18693"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__physmod.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693">cpl_plugin_get_info</a> (cpl_pluginlist *list)</td></tr>
-<tr class="memdesc:ga31d1fccd4cd15b1c1f3c5edc8cb18693"><td class="mdescLeft"> </td><td class="mdescRight">Build the list of available plugins, for this module.  <a href="#ga31d1fccd4cd15b1c1f3c5edc8cb18693"></a><br/></td></tr>
-<tr class="memitem:ga7feecac1261438a6dc3b68924fbce98f"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__physmod.html#ga7feecac1261438a6dc3b68924fbce98f">uves_utl_physmod_create</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:ga7feecac1261438a6dc3b68924fbce98f"><td class="mdescLeft"> </td><td class="mdescRight">Setup the recipe options.  <a href="#ga7feecac1261438a6dc3b68924fbce98f"></a><br/></td></tr>
-<tr class="memitem:ga287c8ed12ad70e2683f833c80296b6d5"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__physmod.html#ga287c8ed12ad70e2683f833c80296b6d5">uves_utl_physmod_exec</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:ga287c8ed12ad70e2683f833c80296b6d5"><td class="mdescLeft"> </td><td class="mdescRight">Execute the plugin instance given by the interface.  <a href="#ga287c8ed12ad70e2683f833c80296b6d5"></a><br/></td></tr>
-<tr class="memitem:ga5c8210b4d7ab88b21125bd696c51e6c8"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__physmod.html#ga5c8210b4d7ab88b21125bd696c51e6c8">uves_utl_physmod_destroy</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:ga5c8210b4d7ab88b21125bd696c51e6c8"><td class="mdescLeft"> </td><td class="mdescRight">Destroy what has been created by the 'create' function.  <a href="#ga5c8210b4d7ab88b21125bd696c51e6c8"></a><br/></td></tr>
-<tr class="memitem:ga3e4da7ad21ef98fc09d1302fbd3d12fd"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__physmod.html#ga3e4da7ad21ef98fc09d1302fbd3d12fd">uves_utl_physmod</a> (cpl_parameterlist *parlist, cpl_frameset *frames)</td></tr>
-<tr class="memdesc:ga3e4da7ad21ef98fc09d1302fbd3d12fd"><td class="mdescLeft"> </td><td class="mdescRight">Get the command line options and execute the data reduction.  <a href="#ga3e4da7ad21ef98fc09d1302fbd3d12fd"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga31d1fccd4cd15b1c1f3c5edc8cb18693"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int cpl_plugin_get_info </td>
-          <td>(</td>
-          <td class="paramtype">cpl_pluginlist * </td>
-          <td class="paramname"><em>list</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Build the list of available plugins, for this module. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">list</td><td>the plugin list </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok</dd></dl>
-<p>This function is exported. </p>
-
-<p>Definition at line <a class="el" href="uves__utl__physmod_8c_source.html#l00105">105</a> of file <a class="el" href="uves__utl__physmod_8c_source.html">uves_utl_physmod.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils_8c_source.html#l01676">uves_get_license()</a>, <a class="el" href="uves__utl__physmod_8c_source.html#l00139">uves_utl_physmod_create()</a>, <a class="el" href="uves__utl__physmod_8c_source.html#l00332">uves_utl_physmod_destroy()</a>, and <a class="el" href="uves__utl__physmod_8c_source.html#l00301">uves_utl_physmod_exec()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7feecac1261438a6dc3b68924fbce98f"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_physmod_create </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Setup the recipe options. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok</dd></dl>
-<p>Create the recipe instance and make it available to the application using the interface. </p>
-
-<p>Definition at line <a class="el" href="uves__utl__physmod_8c_source.html#l00139">139</a> of file <a class="el" href="uves__utl__physmod_8c_source.html">uves_utl_physmod.c</a>.</p>
-
-<p>References <a class="el" href="irplib__utils_8c_source.html#l01134">irplib_reset()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__physmod_8c_source.html#l00105">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga287c8ed12ad70e2683f833c80296b6d5"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_physmod_exec </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Execute the plugin instance given by the interface. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utl__physmod_8c_source.html#l00301">301</a> of file <a class="el" href="uves__utl__physmod_8c_source.html">uves_utl_physmod.c</a>.</p>
-
-<p>References <a class="el" href="irplib__utils_8c_source.html#l01134">irplib_reset()</a>, and <a class="el" href="uves__utl__physmod_8c_source.html#l00354">uves_utl_physmod()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__physmod_8c_source.html#l00105">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5c8210b4d7ab88b21125bd696c51e6c8"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_physmod_destroy </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Destroy what has been created by the 'create' function. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utl__physmod_8c_source.html#l00332">332</a> of file <a class="el" href="uves__utl__physmod_8c_source.html">uves_utl_physmod.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__physmod_8c_source.html#l00105">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3e4da7ad21ef98fc09d1302fbd3d12fd"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_physmod </td>
-          <td>(</td>
-          <td class="paramtype">cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>frames</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get the command line options and execute the data reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parlist</td><td>the parameters list </td></tr>
-    <tr><td class="paramname">frames</td><td>the frames list </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utl__physmod_8c_source.html#l00354">354</a> of file <a class="el" href="uves__utl__physmod_8c_source.html">uves_utl_physmod.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__chip_8c_source.html#l00092">uves_chip_get_first()</a>, <a class="el" href="uves__chip_8c_source.html#l00124">uves_chip_get_index()</a>, <a class="el" href="uves__chip_8c_source.html#l00108">uves_chip_get_next()</a>, <a class="el" href="uves__chip_8c_source.html#l00139">uves_chip_tostring_lower()</a>, <a class="el [...]
-
-<p>Referenced by <a class="el" href="uves__utl__physmod_8c_source.html#l00301">uves_utl_physmod_exec()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__utl__rcosmic.html b/html/group__uves__utl__rcosmic.html
deleted file mode 100644
index a5044aa..0000000
--- a/html/group__uves__utl__rcosmic.html
+++ /dev/null
@@ -1,265 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe to remove CRHs from an image</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Recipe to remove CRHs from an image</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga31d1fccd4cd15b1c1f3c5edc8cb18693"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__rcosmic.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693">cpl_plugin_get_info</a> (cpl_pluginlist *list)</td></tr>
-<tr class="memdesc:ga31d1fccd4cd15b1c1f3c5edc8cb18693"><td class="mdescLeft"> </td><td class="mdescRight">Build the list of available plugins, for this module.  <a href="#ga31d1fccd4cd15b1c1f3c5edc8cb18693"></a><br/></td></tr>
-<tr class="memitem:ga940ab9e0385afa1268c588e9aa836451"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__rcosmic.html#ga940ab9e0385afa1268c588e9aa836451">uves_utl_rcosmic_create</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:ga940ab9e0385afa1268c588e9aa836451"><td class="mdescLeft"> </td><td class="mdescRight">Setup the recipe options.  <a href="#ga940ab9e0385afa1268c588e9aa836451"></a><br/></td></tr>
-<tr class="memitem:gaa68234d2c406b6364833a3ad4149527c"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__rcosmic.html#gaa68234d2c406b6364833a3ad4149527c">uves_utl_rcosmic_exec</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:gaa68234d2c406b6364833a3ad4149527c"><td class="mdescLeft"> </td><td class="mdescRight">Execute the plugin instance given by the interface.  <a href="#gaa68234d2c406b6364833a3ad4149527c"></a><br/></td></tr>
-<tr class="memitem:ga49eb605c1cc3b32055a86debc26c0bf8"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__rcosmic.html#ga49eb605c1cc3b32055a86debc26c0bf8">uves_utl_rcosmic_destroy</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:ga49eb605c1cc3b32055a86debc26c0bf8"><td class="mdescLeft"> </td><td class="mdescRight">Destroy what has been created by the 'create' function.  <a href="#ga49eb605c1cc3b32055a86debc26c0bf8"></a><br/></td></tr>
-<tr class="memitem:ga4cd36a4feb367778454485205928db66"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__rcosmic.html#ga4cd36a4feb367778454485205928db66">uves_utl_rcosmic</a> (cpl_parameterlist *parlist, cpl_frameset *framelist)</td></tr>
-<tr class="memdesc:ga4cd36a4feb367778454485205928db66"><td class="mdescLeft"> </td><td class="mdescRight">Get the command line options and execute the data reduction.  <a href="#ga4cd36a4feb367778454485205928db66"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga31d1fccd4cd15b1c1f3c5edc8cb18693"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int cpl_plugin_get_info </td>
-          <td>(</td>
-          <td class="paramtype">cpl_pluginlist * </td>
-          <td class="paramname"><em>list</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Build the list of available plugins, for this module. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">list</td><td>the plugin list </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok</dd></dl>
-<p>This function is exported. </p>
-
-<p>Definition at line <a class="el" href="uves__utl__rcosmic_8c_source.html#l00101">101</a> of file <a class="el" href="uves__utl__rcosmic_8c_source.html">uves_utl_rcosmic.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils_8c_source.html#l01676">uves_get_license()</a>, <a class="el" href="uves__utl__rcosmic_8c_source.html#l00135">uves_utl_rcosmic_create()</a>, <a class="el" href="uves__utl__rcosmic_8c_source.html#l00235">uves_utl_rcosmic_destroy()</a>, and <a class="el" href="uves__utl__rcosmic_8c_source.html#l00204">uves_utl_rcosmic_exec()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga940ab9e0385afa1268c588e9aa836451"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_rcosmic_create </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Setup the recipe options. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok</dd></dl>
-<p>Create the recipe instance and make it available to the application using the interface. </p>
-
-<p>Definition at line <a class="el" href="uves__utl__rcosmic_8c_source.html#l00135">135</a> of file <a class="el" href="uves__utl__rcosmic_8c_source.html">uves_utl_rcosmic.c</a>.</p>
-
-<p>References <a class="el" href="irplib__utils_8c_source.html#l01134">irplib_reset()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__rcosmic_8c_source.html#l00101">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa68234d2c406b6364833a3ad4149527c"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_rcosmic_exec </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Execute the plugin instance given by the interface. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utl__rcosmic_8c_source.html#l00204">204</a> of file <a class="el" href="uves__utl__rcosmic_8c_source.html">uves_utl_rcosmic.c</a>.</p>
-
-<p>References <a class="el" href="irplib__utils_8c_source.html#l01134">irplib_reset()</a>, and <a class="el" href="uves__utl__rcosmic_8c_source.html#l00257">uves_utl_rcosmic()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__rcosmic_8c_source.html#l00101">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga49eb605c1cc3b32055a86debc26c0bf8"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_rcosmic_destroy </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Destroy what has been created by the 'create' function. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utl__rcosmic_8c_source.html#l00235">235</a> of file <a class="el" href="uves__utl__rcosmic_8c_source.html">uves_utl_rcosmic.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__rcosmic_8c_source.html#l00101">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4cd36a4feb367778454485205928db66"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_rcosmic </td>
-          <td>(</td>
-          <td class="paramtype">cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>framelist</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get the command line options and execute the data reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parlist</td><td>the parameters list </td></tr>
-    <tr><td class="paramname">framelist</td><td>the frames list </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utl__rcosmic_8c_source.html#l00257">257</a> of file <a class="el" href="uves__utl__rcosmic_8c_source.html">uves_utl_rcosmic.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00064">uves_msg_error</a>, and <a class="el" href="uves__utils_8c_source.html#l00162">uves_rcosmic()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__rcosmic_8c_source.html#l00204">uves_utl_rcosmic_exec()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__utl__remove__crh__single.html b/html/group__uves__utl__remove__crh__single.html
deleted file mode 100644
index f260246..0000000
--- a/html/group__uves__utl__remove__crh__single.html
+++ /dev/null
@@ -1,265 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe to remove CRHs from an image</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Recipe to remove CRHs from an image</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga31d1fccd4cd15b1c1f3c5edc8cb18693"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__remove__crh__single.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693">cpl_plugin_get_info</a> (cpl_pluginlist *list)</td></tr>
-<tr class="memdesc:ga31d1fccd4cd15b1c1f3c5edc8cb18693"><td class="mdescLeft"> </td><td class="mdescRight">Build the list of available plugins, for this module.  <a href="#ga31d1fccd4cd15b1c1f3c5edc8cb18693"></a><br/></td></tr>
-<tr class="memitem:ga05031cc6c2fa53d8083fd51ee62ac2a9"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__remove__crh__single.html#ga05031cc6c2fa53d8083fd51ee62ac2a9">uves_utl_remove_crh_single_create</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:ga05031cc6c2fa53d8083fd51ee62ac2a9"><td class="mdescLeft"> </td><td class="mdescRight">Setup the recipe options.  <a href="#ga05031cc6c2fa53d8083fd51ee62ac2a9"></a><br/></td></tr>
-<tr class="memitem:ga8e95dd4390ec7d77c17a8f649f7758ff"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__remove__crh__single.html#ga8e95dd4390ec7d77c17a8f649f7758ff">uves_utl_remove_crh_single_exec</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:ga8e95dd4390ec7d77c17a8f649f7758ff"><td class="mdescLeft"> </td><td class="mdescRight">Execute the plugin instance given by the interface.  <a href="#ga8e95dd4390ec7d77c17a8f649f7758ff"></a><br/></td></tr>
-<tr class="memitem:ga824f6d04d13d57ea573e9cd21ca74900"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__remove__crh__single.html#ga824f6d04d13d57ea573e9cd21ca74900">uves_utl_remove_crh_single_destroy</a> (cpl_plugin *plugin)</td></tr>
-<tr class="memdesc:ga824f6d04d13d57ea573e9cd21ca74900"><td class="mdescLeft"> </td><td class="mdescRight">Destroy what has been created by the 'create' function.  <a href="#ga824f6d04d13d57ea573e9cd21ca74900"></a><br/></td></tr>
-<tr class="memitem:gab497c9910c4b906bed52ccc1d3ad9d79"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__utl__remove__crh__single.html#gab497c9910c4b906bed52ccc1d3ad9d79">uves_utl_remove_crh_single</a> (cpl_parameterlist *parlist, cpl_frameset *framelist)</td></tr>
-<tr class="memdesc:gab497c9910c4b906bed52ccc1d3ad9d79"><td class="mdescLeft"> </td><td class="mdescRight">Get the command line options and execute the data reduction.  <a href="#gab497c9910c4b906bed52ccc1d3ad9d79"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga31d1fccd4cd15b1c1f3c5edc8cb18693"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int cpl_plugin_get_info </td>
-          <td>(</td>
-          <td class="paramtype">cpl_pluginlist * </td>
-          <td class="paramname"><em>list</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Build the list of available plugins, for this module. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">list</td><td>the plugin list </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok</dd></dl>
-<p>This function is exported. </p>
-
-<p>Definition at line <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00101">101</a> of file <a class="el" href="uves__utl__remove__crh__single_8c_source.html">uves_utl_remove_crh_single.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils_8c_source.html#l01676">uves_get_license()</a>, <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00135">uves_utl_remove_crh_single_create()</a>, <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00246">uves_utl_remove_crh_single_destroy()</a>, and <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00215">uves_utl_remove_crh_single_exec()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga05031cc6c2fa53d8083fd51ee62ac2a9"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_remove_crh_single_create </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Setup the recipe options. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok</dd></dl>
-<p>Create the recipe instance and make it available to the application using the interface. </p>
-
-<p>Definition at line <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00135">135</a> of file <a class="el" href="uves__utl__remove__crh__single_8c_source.html">uves_utl_remove_crh_single.c</a>.</p>
-
-<p>References <a class="el" href="irplib__utils_8c_source.html#l01134">irplib_reset()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00101">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8e95dd4390ec7d77c17a8f649f7758ff"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_remove_crh_single_exec </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Execute the plugin instance given by the interface. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00215">215</a> of file <a class="el" href="uves__utl__remove__crh__single_8c_source.html">uves_utl_remove_crh_single.c</a>.</p>
-
-<p>References <a class="el" href="irplib__utils_8c_source.html#l01134">irplib_reset()</a>, and <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00268">uves_utl_remove_crh_single()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00101">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga824f6d04d13d57ea573e9cd21ca74900"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_remove_crh_single_destroy </td>
-          <td>(</td>
-          <td class="paramtype">cpl_plugin * </td>
-          <td class="paramname"><em>plugin</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Destroy what has been created by the 'create' function. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">plugin</td><td>the plugin </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00246">246</a> of file <a class="el" href="uves__utl__remove__crh__single_8c_source.html">uves_utl_remove_crh_single.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00101">cpl_plugin_get_info()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab497c9910c4b906bed52ccc1d3ad9d79"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int uves_utl_remove_crh_single </td>
-          <td>(</td>
-          <td class="paramtype">cpl_parameterlist * </td>
-          <td class="paramname"><em>parlist</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_frameset * </td>
-          <td class="paramname"><em>framelist</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Get the command line options and execute the data reduction. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">parlist</td><td>the parameters list </td></tr>
-    <tr><td class="paramname">framelist</td><td>the frames list </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>0 if everything is ok </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00268">268</a> of file <a class="el" href="uves__utl__remove__crh__single_8c_source.html">uves_utl_remove_crh_single.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00064">uves_msg_error</a>, and <a class="el" href="uves__remove__crh__single_8c_source.html#l00100">uves_remove_crh_single()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utl__remove__crh__single_8c_source.html#l00215">uves_utl_remove_crh_single_exec()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__wavecal.html b/html/group__uves__wavecal.html
deleted file mode 100644
index 0b6f069..0000000
--- a/html/group__uves__wavecal.html
+++ /dev/null
@@ -1,1490 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Recipe: Order Position</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#define-members">Macros</a> |
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Recipe: Order Position</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
-Macros</h2></td></tr>
-<tr class="memitem:ga4904a294505b28ee322a2fb73f1814bd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga4904a294505b28ee322a2fb73f1814bd"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>USE_PPM</b>   0</td></tr>
-<tr class="memitem:ga609177ee4e13ce7243aa571763a4fbb4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga609177ee4e13ce7243aa571763a4fbb4"></a>
-#define </td><td class="memItemRight" valign="bottom"><b>FIT_SLOPE</b>   1</td></tr>
-<tr class="memitem:ga7d75415e66d20756612a674927e32bcf"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><b>WEIGHTED_FIT</b></td></tr>
-</table><table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga83b2a3f8a025fdbb257ba8b6b6c0687a"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#ga83b2a3f8a025fdbb257ba8b6b6c0687a">verify_calibration</a> (const cpl_table *selected, const cpl_table *linetable, double TOLERANCE, double red_chisq, cpl_table *qclog)</td></tr>
-<tr class="memdesc:ga83b2a3f8a025fdbb257ba8b6b6c0687a"><td class="mdescLeft"> </td><td class="mdescRight">Report quality of calibration.  <a href="#ga83b2a3f8a025fdbb257ba8b6b6c0687a"></a><br/></td></tr>
-<tr class="memitem:ga3d2a634d47ecc17a9550bc3169b45108"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#ga3d2a634d47ecc17a9550bc3169b45108">compute_lambda</a> (cpl_table *linetable, const <a class="el" href="struct__polynomial.html">polynomial</a> *dispersion_relation, const <a class="el" href="struct__polynomial.html">polynomial</a> *dispersion_variance, bool verbose) [...]
-<tr class="memdesc:ga3d2a634d47ecc17a9550bc3169b45108"><td class="mdescLeft"> </td><td class="mdescRight">Apply dispersion relation to line table.  <a href="#ga3d2a634d47ecc17a9550bc3169b45108"></a><br/></td></tr>
-<tr class="memitem:ga32817a71e6f80a75bd2d74e197f41002"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#ga32817a71e6f80a75bd2d74e197f41002">identify_lines</a> (cpl_table *linetable, const cpl_table *line_refer, double ALPHA)</td></tr>
-<tr class="memdesc:ga32817a71e6f80a75bd2d74e197f41002"><td class="mdescLeft"> </td><td class="mdescRight">Identify lines by comparing to catalogue wavelengths.  <a href="#ga32817a71e6f80a75bd2d74e197f41002"></a><br/></td></tr>
-<tr class="memitem:ga6441018223f000460da3fe4e29325806"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#ga6441018223f000460da3fe4e29325806">calibrate_global</a> (const cpl_table *linetable, cpl_table **selected, int degree, bool verbose, bool reject, double TOLERANCE, double kappa, double *red_chisq, <a class="el" href="st [...]
-<tr class="memdesc:ga6441018223f000460da3fe4e29325806"><td class="mdescLeft"> </td><td class="mdescRight">Create a fit of all orders.  <a href="#ga6441018223f000460da3fe4e29325806"></a><br/></td></tr>
-<tr class="memitem:gaefff8994a1bf3be10c46012cff86ef04"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#gaefff8994a1bf3be10c46012cff86ef04">uves_wavecal_identify</a> (cpl_table *linetable, const cpl_table *line_refer, const <a class="el" href="struct__polynomial.html">polynomial</a> *guess_dispersion, int DEGREE, double TOLERANCE [...]
-<tr class="memdesc:gaefff8994a1bf3be10c46012cff86ef04"><td class="mdescLeft"> </td><td class="mdescRight">Obtain final dispersion relation.  <a href="#gaefff8994a1bf3be10c46012cff86ef04"></a><br/></td></tr>
-<tr class="memitem:gad453e932c1e4d99548688995d4e1000b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#gad453e932c1e4d99548688995d4e1000b">uves_wavecal_identify_lines_ppm</a> (cpl_table *linetable, const cpl_table *line_refer)</td></tr>
-<tr class="memdesc:gad453e932c1e4d99548688995d4e1000b"><td class="mdescLeft"> </td><td class="mdescRight">Identify lines using point pattern matching.  <a href="#gad453e932c1e4d99548688995d4e1000b"></a><br/></td></tr>
-<tr class="memitem:ga7b49db5bd97eb1228d45a6d37190cef6"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#ga7b49db5bd97eb1228d45a6d37190cef6">xcenter</a> (const cpl_image *image, const cpl_image *noise, int xlo, int xhi, int row, centering_method CENTERING_METHOD, int bin_disp, double *sigma, double *intensity, double *dx0, double *slope, double *background)</td></tr>
-<tr class="memdesc:ga7b49db5bd97eb1228d45a6d37190cef6"><td class="mdescLeft"> </td><td class="mdescRight">Refine the center position of an initially detected emission line.  <a href="#ga7b49db5bd97eb1228d45a6d37190cef6"></a><br/></td></tr>
-<tr class="memitem:gabf8091bf00a26cfe084f73ef3cb80a29"><td class="memItemLeft" align="right" valign="top">static cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#gabf8091bf00a26cfe084f73ef3cb80a29">detect_lines</a> (const cpl_image *spectrum, const cpl_image *noise, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *spectrum_header, bool flat_fielded, int RANGE, [...]
-<tr class="memdesc:gabf8091bf00a26cfe084f73ef3cb80a29"><td class="mdescLeft"> </td><td class="mdescRight">Find emission lines above a certain threshold.  <a href="#gabf8091bf00a26cfe084f73ef3cb80a29"></a><br/></td></tr>
-<tr class="memitem:ga0baa7a6c85fde5b3e8fe805cf5f4b6c6"><td class="memItemLeft" align="right" valign="top">cpl_table * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#ga0baa7a6c85fde5b3e8fe805cf5f4b6c6">uves_wavecal_search</a> (const cpl_image *spectrum, const cpl_image *noise, const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> *spectrum_header, bool flat_fielded, const <a clas [...]
-<tr class="memdesc:ga0baa7a6c85fde5b3e8fe805cf5f4b6c6"><td class="mdescLeft"> </td><td class="mdescRight">Search for a given number of emission lines.  <a href="#ga0baa7a6c85fde5b3e8fe805cf5f4b6c6"></a><br/></td></tr>
-<tr class="memitem:ga50d8473c5bddc7dec58f539a6026eb49"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structlt__type.html">lt_type</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#ga50d8473c5bddc7dec58f539a6026eb49">uves_lt_new</a> (int windows, int traces)</td></tr>
-<tr class="memdesc:ga50d8473c5bddc7dec58f539a6026eb49"><td class="mdescLeft"> </td><td class="mdescRight">Allocate line table.  <a href="#ga50d8473c5bddc7dec58f539a6026eb49"></a><br/></td></tr>
-<tr class="memitem:gad74b8d3dab9e9b4d32d0cc2d4bf898be"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#gad74b8d3dab9e9b4d32d0cc2d4bf898be">uves_lt_delete</a> (<a class="el" href="structlt__type.html">lt_type</a> **lt)</td></tr>
-<tr class="memdesc:gad74b8d3dab9e9b4d32d0cc2d4bf898be"><td class="mdescLeft"> </td><td class="mdescRight">Deallocate line table.  <a href="#gad74b8d3dab9e9b4d32d0cc2d4bf898be"></a><br/></td></tr>
-<tr class="memitem:ga4056e52158d53b14e5346871958976ff"><td class="memItemLeft" align="right" valign="top">cpl_table ** </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff">uves_lt_get_table</a> (const <a class="el" href="structlt__type.html">lt_type</a> *lt, int window, int trace)</td></tr>
-<tr class="memdesc:ga4056e52158d53b14e5346871958976ff"><td class="mdescLeft"> </td><td class="mdescRight">Get the table structure.  <a href="#ga4056e52158d53b14e5346871958976ff"></a><br/></td></tr>
-<tr class="memitem:gaa98b57c1a71f64a50a4f4fa83d2d590c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#gaa98b57c1a71f64a50a4f4fa83d2d590c">uves_lt_get_disprel</a> (const <a class="el" href="structlt__type.html">lt_type</a> *lt, int window, int trace)</td></tr>
-<tr class="memdesc:gaa98b57c1a71f64a50a4f4fa83d2d590c"><td class="mdescLeft"> </td><td class="mdescRight">Get dispersion relation.  <a href="#gaa98b57c1a71f64a50a4f4fa83d2d590c"></a><br/></td></tr>
-<tr class="memitem:ga28897452a40eb7c7a957c0761dd21842"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#ga28897452a40eb7c7a957c0761dd21842">uves_lt_get_absord</a> (const <a class="el" href="structlt__type.html">lt_type</a> *lt, int window, int trace)</td></tr>
-<tr class="memdesc:ga28897452a40eb7c7a957c0761dd21842"><td class="mdescLeft"> </td><td class="mdescRight">Get absolute order polynomial.  <a href="#ga28897452a40eb7c7a957c0761dd21842"></a><br/></td></tr>
-<tr class="memitem:gaabce897a294645e87763f7f5ecdbcd30"><td class="memItemLeft" align="right" valign="top">int * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#gaabce897a294645e87763f7f5ecdbcd30">uves_lt_get_firstabs</a> (const <a class="el" href="structlt__type.html">lt_type</a> *lt, int window, int trace)</td></tr>
-<tr class="memdesc:gaabce897a294645e87763f7f5ecdbcd30"><td class="mdescLeft"> </td><td class="mdescRight">Get first absolute order.  <a href="#gaabce897a294645e87763f7f5ecdbcd30"></a><br/></td></tr>
-<tr class="memitem:gaca1246cec58a8bb8f218b993428985bc"><td class="memItemLeft" align="right" valign="top">int * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#gaca1246cec58a8bb8f218b993428985bc">uves_lt_get_lastabs</a> (const <a class="el" href="structlt__type.html">lt_type</a> *lt, int window, int trace)</td></tr>
-<tr class="memdesc:gaca1246cec58a8bb8f218b993428985bc"><td class="mdescLeft"> </td><td class="mdescRight">Get last absolute order.  <a href="#gaca1246cec58a8bb8f218b993428985bc"></a><br/></td></tr>
-<tr class="memitem:gae0d2cfe5965b9e1f8655d1265b6bdde3"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#gae0d2cfe5965b9e1f8655d1265b6bdde3">uves_wavecal_find_nearest</a> (const cpl_table *line_refer, double lambda, int lo, int hi)</td></tr>
-<tr class="memdesc:gae0d2cfe5965b9e1f8655d1265b6bdde3"><td class="mdescLeft"> </td><td class="mdescRight">Find best matching catalogue wavelength.  <a href="#gae0d2cfe5965b9e1f8655d1265b6bdde3"></a><br/></td></tr>
-<tr class="memitem:ga2f7ee53133e419d19f10cbc231e8054a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#ga2f7ee53133e419d19f10cbc231e8054a">uves_delete_bad_lines</a> (cpl_table *table, double TOLERANCE, double kappa)</td></tr>
-<tr class="memdesc:ga2f7ee53133e419d19f10cbc231e8054a"><td class="mdescLeft"> </td><td class="mdescRight">Delete bad lines from line table.  <a href="#ga2f7ee53133e419d19f10cbc231e8054a"></a><br/></td></tr>
-<tr class="memitem:ga274e895ff3513060affa6b987a13842a"><td class="memItemLeft" align="right" valign="top">cpl_error_code </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal.html#ga274e895ff3513060affa6b987a13842a">uves_draw_lines</a> (cpl_image *image, <a class="el" href="struct__polynomial.html">polynomial</a> *dispersion, const <a class="el" href="struct__polynomial.html">polynomial</a> *order_locations, const cpl_table *t, const char *lambda_col [...]
-<tr class="memdesc:ga274e895ff3513060affa6b987a13842a"><td class="mdescLeft"> </td><td class="mdescRight">Draw lines in an echelle image.  <a href="#ga274e895ff3513060affa6b987a13842a"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This recipe determines the echelle order locations. See man-page for details. </p>
-<hr/><h2>Macro Definition Documentation</h2>
-<a class="anchor" id="ga7d75415e66d20756612a674927e32bcf"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">#define WEIGHTED_FIT</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<b>Value:</b><div class="fragment"><div class="line">1   <span class="comment">/* Define to zero to get unweighted fit of emmision line</span></div>
-<div class="line"><span class="comment">                            (like MIDAS) */</span></div>
-</div><!-- fragment -->
-<p>Definition at line <a class="el" href="uves__wavecal__search_8c_source.html#l00150">150</a> of file <a class="el" href="uves__wavecal__search_8c_source.html">uves_wavecal_search.c</a>.</p>
-
-</div>
-</div>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga83b2a3f8a025fdbb257ba8b6b6c0687a"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code verify_calibration </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>selected</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>linetable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>TOLERANCE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>red_chisq</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>qclog</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Report quality of calibration. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">linetable</td><td>The line table </td></tr>
-    <tr><td class="paramname">TOLERANCE</td><td>When reporting the RMS of the fit, exclude lines with residuals worse than <em>TOLERANCE</em> from the computation. If positive, this tolerance is considered in pixel units, otherwise in w.l.u. </td></tr>
-    <tr><td class="paramname">red_chisq</td><td>Reduced chi^2 of the calibration </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay</dd></dl>
-<p>This function reports the RMS of a wavelength calibration, as well as the percentage of the brightest lines that were identified. </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__identify_8c_source.html#l00510">510</a> of file <a class="el" href="uves__wavecal__identify_8c_source.html">uves_wavecal_identify.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, and <a class="el" href="uves__qclog_8c_source.html#l00641">uves_qclog_add_double()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l00238">uves_wavecal_identify()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3d2a634d47ecc17a9550bc3169b45108"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code compute_lambda </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>linetable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>dispersion_relation</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>dispersion_variance</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>verbose</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Apply dispersion relation to line table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">linetable</td><td>The line table </td></tr>
-    <tr><td class="paramname">dispersion_relation</td><td>The dispersion relation </td></tr>
-    <tr><td class="paramname">dispersion_variance</td><td>The variance of the dispersion relation </td></tr>
-    <tr><td class="paramname">verbose</td><td>print warning if dl/dx is negative? </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay</dd></dl>
-<p>This function applies the provided dispersion relation to the line table, thereby calculating the predicted wavelengths for lines in the spectrum, the residual of the fit, the local pixelsize in w.l.u., and if <em>dispersion_variance</em> is non-NULL, the uncertainty of the fitted wavelength. </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__identify_8c_source.html#l00613">613</a> of file <a class="el" href="uves__wavecal__identify_8c_source.html">uves_wavecal_identify.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00828">uves_polynomial_derivative_2d()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_ [...]
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l01127">calibrate_global()</a>, and <a class="el" href="uves__wavecal__identify_8c_source.html#l00238">uves_wavecal_identify()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga32817a71e6f80a75bd2d74e197f41002"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static int identify_lines </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>linetable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>line_refer</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>ALPHA</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Identify lines by comparing to catalogue wavelengths. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">linetable</td><td>The line table containing the line positions and predicted wavelengths </td></tr>
-    <tr><td class="paramname">line_refer</td><td>The wavelength catalogue </td></tr>
-    <tr><td class="paramname">ALPHA</td><td>Parameter < 1 to control distance to nearest neighbour </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The total number of lines identified (including previous identifications), or undefined on error.</dd></dl>
-<p>This function identifies lines in the provided <em>linetable</em> by comparing to the reference table (the wavelength catalogue). The identified wavelengths are written to the "Ident" column of the line table.</p>
-<p>An identification is made iff</p>
-<ul>
-<li>The catalogue wavelength is within two linewidths of the computed (predicted) wavelength: | <em>lambda_cat</em> - <em>lambda_com</em> | < 2 * <em>sigma</em>, where <em>sigma</em> is the detected line width,</li>
-</ul>
-<ul>
-<li>The nearest neighbour (in the spectrum and in the catalogue) is farther away than the candidate catalogue wavelength (after multiplying by the "safety parameter", <em>ALPHA</em>): | <em>lambda_cat</em> - <em>lambda_nn|</em> * ALPHA > | <em>lambda_cat</em> - <em>lambda_com</em> |,</li>
-</ul>
-<ul>
-<li>The nearest neighbour (in the spectrum and in the catalogue) is farther away than the average tolerance distance, which measures the precision of the identifications: <em>tolerance</em> < ALPHA * | <em>lambda_cat</em> - <em>lambda_nn|</em> . See code for the exact definition of the <em>tolerance</em> .</li>
-</ul>
-<p>The purpose of the first criterion is to make the correct identifications. The purpose of the latter two criterions is to avoid making incorrect identifications.</p>
-<p>If a line was previously identified (implied by a valid <em>"Ident"</em> column value) but now fails to meet the ID criterium, it is not deleted. </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__identify_8c_source.html#l00762">762</a> of file <a class="el" href="uves__wavecal__identify_8c_source.html">uves_wavecal_identify.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves__wavecal__utils_8c_source.html#l00252">uves_wavecal_find_nearest()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l00238">uves_wavecal_identify()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga6441018223f000460da3fe4e29325806"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static <a class="el" href="struct__polynomial.html">polynomial</a> * calibrate_global </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>linetable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table ** </td>
-          <td class="paramname"><em>selected</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>degree</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>verbose</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>reject</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>TOLERANCE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>kappa</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>red_chisq</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td>
-          <td class="paramname"><em>dispersion_variance</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>pixelsize</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>rms_wlu</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>rms_pixels</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Create a fit of all orders. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">linetable</td><td>The line table </td></tr>
-    <tr><td class="paramname">selected</td><td>(output) if non-NULL, subset of linetable containing the lines which were used in the final fit </td></tr>
-    <tr><td class="paramname">degree</td><td>Degree of both independent variables of polynomial fit </td></tr>
-    <tr><td class="paramname">verbose</td><td>Be verbose about autodegree fitting? </td></tr>
-    <tr><td class="paramname">reject</td><td>Do rejection? </td></tr>
-    <tr><td class="paramname">TOLERANCE</td><td>Before fitting, exclude lines with residuals worse than <em>TOLERANCE</em>. If positive, this tolerance is considered in pixel units, otherwise in w.l.u.</td></tr>
-    <tr><td class="paramname">kappa</td><td>used for removing outliers </td></tr>
-    <tr><td class="paramname">red_chisq</td><td>If non-NULL, the reduced chi square of the fit. </td></tr>
-    <tr><td class="paramname">dispersion_variance</td><td>If non-NULL, the variance of the fit returned polynomial. </td></tr>
-    <tr><td class="paramname">pixelsize</td><td>If non-NULL, the average of d(lambda)/dx </td></tr>
-    <tr><td class="paramname">rms_wlu</td><td>If non-NULL, the root-mean-square residual (w.l.u) </td></tr>
-    <tr><td class="paramname">rms_pixels</td><td>If non-NULL, the root-mean-square residual (pixels) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The obtained dispersion relation in the form <em>lambda</em> * <em>m</em> = <em>f</em>(<em>x</em>, <em>m</em>), or NULL on error</dd></dl>
-<dl class="section note"><dt>Note:</dt><dd>Un-identified lines and lines with residuals larger then <em>TOLERANCE</em> (from the previous fit) are excluded from the fit. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__wavecal__identify_8c_source.html#l01127">1127</a> of file <a class="el" href="uves__wavecal__identify_8c_source.html">uves_wavecal_identify.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__wavecal__identify_8c_source.html#l00613">compute_lambda()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__wavecal__utils_8c_source.html#l00304">uves_delete_bad_lines()</a>, <a class="el" href= [...]
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l00238">uves_wavecal_identify()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaefff8994a1bf3be10c46012cff86ef04"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>* uves_wavecal_identify </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>linetable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>line_refer</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>guess_dispersion</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>DEGREE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>TOLERANCE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>ALPHA</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>MAXERROR</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>kappa</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>trace</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>window</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>qclog</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Obtain final dispersion relation. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">linetable</td><td>The line table containing the already detected emission lines </td></tr>
-    <tr><td class="paramname">line_refer</td><td>The wavelength catalogue </td></tr>
-    <tr><td class="paramname">guess_dispersion</td><td>The initial dispersion relation in the form <em>lambda</em> * <em>m</em> = <em>f</em>(<em>x</em>, <em>m</em>) </td></tr>
-    <tr><td class="paramname">DEGREE</td><td>Degree of both independent variables of the dispersion polynomial. </td></tr>
-    <tr><td class="paramname">TOLERANCE</td><td>When making the final fit, lines with residuals worse than <em>TOLERANCE</em> are excluded. If positive, this tolerance is considered in pixel units, otherwise in w.l.u. </td></tr>
-    <tr><td class="paramname">ALPHA</td><td>Parameter that controls the next-neighbour distance during line identification. See <code><a class="el" href="group__uves__wavecal.html#ga32817a71e6f80a75bd2d74e197f41002" title="Identify lines by comparing to catalogue wavelengths.">identify_lines()</a></code> for details. </td></tr>
-    <tr><td class="paramname">MAXERROR</td><td>If the RMS of the fit is larger than this number (in pixels), the calibration loop terminates with an error. This is to ensure a graceful exit (when incorrect identifications are made) </td></tr>
-    <tr><td class="paramname">kappa</td><td>used in outlier rejectiong </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The obtained initial dispersion solution of the form <em>lambda</em> * <em>m</em> = <em>f</em>(<em>x</em>, <em>m</em>), or NULL on error</dd></dl>
-<p>This function performs a wavelength calibration of the detected lines listed in the provided <em>linetable</em>, starting from the <em>guess_dispersion</em> solution. Results of the calibration are written to the <em>linetable</em>.</p>
-<p>The function will iteratively identify as many of the detected lines as possible (using the specified wavelength catalogue, see also <code><a class="el" href="group__uves__wavecal.html#ga32817a71e6f80a75bd2d74e197f41002" title="Identify lines by comparing to catalogue wavelengths.">identify_lines()</a></code> ), then update the fit polynomial (see also <code><a class="el" href="group__uves__wavecal.html#ga6441018223f000460da3fe4e29325806" title="Create a fit of all orders.">calibrate_ [...]
-
-<p>Definition at line <a class="el" href="uves__wavecal__identify_8c_source.html#l00238">238</a> of file <a class="el" href="uves__wavecal__identify_8c_source.html">uves_wavecal_identify.c</a>.</p>
-
-<p>References <a class="el" href="uves__wavecal__identify_8c_source.html#l01127">calibrate_global()</a>, <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__wavecal__identify_8c_source.html#l00613">compute_lambda()</a>, <a class="el" href="uves__wavecal__identify_8c_source.html#l00762">identify_lines()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class [...]
-
-</div>
-</div>
-<a class="anchor" id="gad453e932c1e4d99548688995d4e1000b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_wavecal_identify_lines_ppm </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>linetable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>line_refer</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Identify lines using point pattern matching. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">linetable</td><td>The line table containing the line positions </td></tr>
-    <tr><td class="paramname">line_refer</td><td>The wavelength catalogue </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>number of identifications </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__wavecal__identify_8c_source.html#l01260">1260</a> of file <a class="el" href="uves__wavecal__identify_8c_source.html">uves_wavecal_identify.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, <a class="el" href="uves__error_8h_source.html#l00215">uves_error_reset</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, and <a class="el" href="uves__msg_8h_source.html#l00087">uves_msg_warning</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal-test_8c_source.html#l00084">test_ppm()</a>, and <a class="el" href="uves__wavecal__identify_8c_source.html#l00238">uves_wavecal_identify()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7b49db5bd97eb1228d45a6d37190cef6"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static double xcenter </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>xlo</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>xhi</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">centering_method </td>
-          <td class="paramname"><em>CENTERING_METHOD</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>bin_disp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>sigma</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>intensity</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>dx0</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>slope</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double * </td>
-          <td class="paramname"><em>background</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Refine the center position of an initially detected emission line. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>The input image </td></tr>
-    <tr><td class="paramname">noise</td><td>The noise (1 sigma) associated with the input image </td></tr>
-    <tr><td class="paramname">xlo</td><td>Left x-coordinate of search window </td></tr>
-    <tr><td class="paramname">xhi</td><td>Right x-coordinate of search window </td></tr>
-    <tr><td class="paramname">row</td><td>Image row to look at </td></tr>
-    <tr><td class="paramname">CENTERING_METHOD</td><td>The method used to calculate the position </td></tr>
-    <tr><td class="paramname">bin_disp</td><td>CCD binning, used to finetune size of fitting window </td></tr>
-    <tr><td class="paramname">sigma</td><td>(output) Peak width </td></tr>
-    <tr><td class="paramname">intensity</td><td>(output) Peak height (relative to 0) </td></tr>
-    <tr><td class="paramname">dx0</td><td>(output) The statistical uncertainty of peak center </td></tr>
-    <tr><td class="paramname">slope</td><td>(output) fitted background slope </td></tr>
-    <tr><td class="paramname">background</td><td>(output) fitted background </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The refined center location, or undefined on error</dd></dl>
-<p>This function locates the center of an emission peak in the image window (<em>xlo</em>, <em>y</em>)-(<em>xhi</em>, <em>y</em>) by calculating guess values for the center, the stddev, the background level and the height of the peak, then calling <code>uves_fit_gaussian_1d_image()</code> with the "guess" values.</p>
-<p>The <em>centering_method</em> indicates whether to use the 'gravity' method or gaussian fitting and should always be set to <em>CENTERING_GAUSSIAN</em> . </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__search_8c_source.html#l00696">696</a> of file <a class="el" href="uves__wavecal__search_8c_source.html">uves_wavecal_search.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__error_8h_source.html#l00215">uves_error_reset</a>, <a class="el" href="uves__utils_8c_source.html#l04288">uves_gauss()</a>, <a class="el" href="uves__utils_8c_source.html#l04343">uves_gauss_derivative()</a>, <a class="el" href="uves__utils_8c_source.html#l04408">uves_gauss_linear()</a>, <a class="el" href="uves__utils_8c_source.html#l04467">uves_gauss_linear_derivative()</a>, and < [...]
-
-<p>Referenced by <a class="el" href="uves__wavecal__search_8c_source.html#l00426">detect_lines()</a>, and <a class="el" href="uves__orderpos__follow_8c_source.html#l01127">trace_order()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gabf8091bf00a26cfe084f73ef3cb80a29"></a>
-<div class="memitem">
-<div class="memproto">
-<table class="mlabels">
-  <tr>
-  <td class="mlabels-left">
-      <table class="memname">
-        <tr>
-          <td class="memname">static cpl_error_code detect_lines </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>spectrum_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>flat_fielded</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>RANGE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>THRESHOLD</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">centering_method </td>
-          <td class="paramname"><em>CENTERING_METHOD</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>bin_disp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>arcframe</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>linetable</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>ndetected</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>nrows</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-  </td>
-  <td class="mlabels-right">
-<span class="mlabels"><span class="mlabel">static</span></span>  </td>
-  </tr>
-</table>
-</div><div class="memdoc">
-
-<p>Find emission lines above a certain threshold. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">spectrum</td><td>The spectrum to search. </td></tr>
-    <tr><td class="paramname">noise</td><td>The noise (1 sigma) of the spectrum </td></tr>
-    <tr><td class="paramname">flat_fielded</td><td>was the spectrum flat-fielded? </td></tr>
-    <tr><td class="paramname">spectrum_header</td><td>Header of spectrum image. The (relative) order numbers are read from this header </td></tr>
-    <tr><td class="paramname">RANGE</td><td>Width (in pixels) of search window is 2 * <em>RANGE</em> + 1 </td></tr>
-    <tr><td class="paramname">THRESHOLD</td><td>Detection threshold (relative to local background level) </td></tr>
-    <tr><td class="paramname">CENTERING_METHOD</td><td>The method used to calculate the line position. </td></tr>
-    <tr><td class="paramname">bin_disp</td><td>binning in dispersion direction </td></tr>
-    <tr><td class="paramname">arcframe</td><td>The (raw) arc frame image. Iff non-NULL, the results of the line search will be drawn on this image using the provided <em>order_locations</em>. </td></tr>
-    <tr><td class="paramname">order_locations</td><td>The order position bi-polynomial (defines the order locations as a function of <em>x</em> and relative order number) </td></tr>
-    <tr><td class="paramname">linetable</td><td>The line table where detected emission lines will be written </td></tr>
-    <tr><td class="paramname">ndetected</td><td>(output) Number of lines detected </td></tr>
-    <tr><td class="paramname">nrows</td><td>(output) Number of lines written to the line table </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff okay</dd></dl>
-<p>This function searches for emission lines at each row of the input image (an extracted spectrum).</p>
-<p>The detected lines will be written to the columns <em>"Y"</em> (the relative order number), <em>"X"</em> (the line position), <em>"Xwidth"</em> (the detected line width (stddev in pixels)) and <em>"Peak"</em> (the detected emission line intensity).</p>
-<p>A line is detected iff the flux at a position is more than <em>THRESHOLD</em> plus the local background level, which is defined as the median of a window of width (2 * <em>RANGE</em> + 1) centered on the current position. If flat_fielding was done <em>THRESHOLD</em> is the peak height in units of error bars.</p>
-<p>After the line is initially detected, the line position is calculated depending on the <em>CENTERING_METHOD</em>. See also <code><a class="el" href="group__uves__wavecal.html#ga7b49db5bd97eb1228d45a6d37190cef6" title="Refine the center position of an initially detected emission line.">xcenter()</a></code> .</p>
-<p>The number of detected lines, <em>ndetected</em>, will be different from the number of rows written to the line table, <em>nrows</em>, only if the table is not large enough to contain all the detected lines.</p>
-<p>Finally, doublets (i.e. lines with positions within 2.0 pixels) are removed from the line table. The maximum number of lines to search for is defined by the number of available rows in the line table.</p>
-<p>If the provided <em>arcframe</em> is not NULL, the results of the line search will be marked on this image (used for debugging purposes). </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__search_8c_source.html#l00426">426</a> of file <a class="el" href="uves__wavecal__search_8c_source.html">uves_wavecal_search.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__pfits_8c_source.html#l02479">uves_pfits_get_crval2()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>, <a class="el" href [...]
-
-<p>Referenced by <a class="el" href="uves__wavecal__search_8c_source.html#l00199">uves_wavecal_search()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga0baa7a6c85fde5b3e8fe805cf5f4b6c6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table* uves_wavecal_search </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>spectrum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_image * </td>
-          <td class="paramname"><em>noise</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td>
-          <td class="paramname"><em>spectrum_header</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>flat_fielded</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>arcframe</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>RANGE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>MINLINES</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>MAXLINES</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">centering_method </td>
-          <td class="paramname"><em>CENTERING_METHOD</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>bin_disp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>trace</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int </td>
-          <td class="paramname"><em>window</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>qclog</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Search for a given number of emission lines. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">spectrum</td><td>The spectrum to search. </td></tr>
-    <tr><td class="paramname">noise</td><td>The noise (1 sigma) of the spectrum. </td></tr>
-    <tr><td class="paramname">spectrum_header</td><td>Header of spectrum image. The (relative) order numbers are read from this header </td></tr>
-    <tr><td class="paramname">flat_fielded</td><td>was the arclamp frame flat-fielded? </td></tr>
-    <tr><td class="paramname">order_locations</td><td>The order position bi-polynomial (defines the order locations as a function of <em>x</em> and relative order number) </td></tr>
-    <tr><td class="paramname">arcframe</td><td>The raw input image (before spectrum extraction). The results of the line search will be drawn on this image. </td></tr>
-    <tr><td class="paramname">RANGE</td><td>Width (in pixels) of search window is 2 * <em>RANGE</em> + 1 </td></tr>
-    <tr><td class="paramname">MINLINES</td><td>The minimum number of lines to search for </td></tr>
-    <tr><td class="paramname">MAXLINES</td><td>The maximum number of lines to search for </td></tr>
-    <tr><td class="paramname">CENTERING_METHOD</td><td>The method used to calculate the line position. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A newly allocated line table containing the detected lines, or NULL on error</dd></dl>
-<p>This function tries to detect a number of emission lines in the already extracted <em>spectrum</em>. On success the number of detected lines is in the range from <em>MINLINES</em> to <em>MAXLINES</em> (both inclusive). This is achieved by calling <code><a class="el" href="group__uves__wavecal.html#gabf8091bf00a26cfe084f73ef3cb80a29" title="Find emission lines above a certain threshold.">detect_lines()</a></code> . with varying detection threshold levels.</p>
-<p>The result line table contains the columns <em>"Y"</em> (the relative order number), <em>"X"</em> (the line positions), <em>"Xwidth"</em> (the detected line widths (stddev in pixels)) and <em>"Peak"</em> (the detected emission line intensities). </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__search_8c_source.html#l00199">199</a> of file <a class="el" href="uves__wavecal__search_8c_source.html">uves_wavecal_search.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__wavecal__search_8c_source.html#l00426">detect_lines()</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__msg_8h_source.html#l00119">uves_msg</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__qclog_8c_source.html#l00521">uves_qclog_add_int()</a>, and <a class="el" href="uves__dump_8c_ [...]
-
-</div>
-</div>
-<a class="anchor" id="ga50d8473c5bddc7dec58f539a6026eb49"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structlt__type.html">lt_type</a>* uves_lt_new </td>
-          <td>(</td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>windows</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>traces</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Allocate line table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">windows</td><td>Number of extraction windows per trace </td></tr>
-    <tr><td class="paramname">traces</td><td>Number of traces </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>newly allocated line table which must be deallocated using <code><a class="el" href="group__uves__wavecal.html#gad74b8d3dab9e9b4d32d0cc2d4bf898be" title="Deallocate line table.">uves_lt_delete()</a></code>. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8c_source.html#l00110">110</a> of file <a class="el" href="uves__wavecal__utils_8c_source.html">uves_wavecal_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__wavecal__utils_8h_source.html#l00100">lt_type::absolute_order</a>, <a class="el" href="uves__error_8h_source.html#l00181">assure_mem</a>, <a class="el" href="uves__wavecal__utils_8h_source.html#l00097">lt_type::dispersion_relation</a>, <a class="el" href="uves__wavecal__utils_8h_source.html#l00103">lt_type::first_absolute_order</a>, <a class="el" href="uves__wavecal__utils_8h_source.html#l00106">lt_type::last_absolute_order</a>, <a class="el" href= [...]
-
-</div>
-</div>
-<a class="anchor" id="gad74b8d3dab9e9b4d32d0cc2d4bf898be"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void uves_lt_delete </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structlt__type.html">lt_type</a> ** </td>
-          <td class="paramname"><em>lt</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Deallocate line table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">lt</td><td>the line table to deallocate </td></tr>
-  </table>
-  </dd>
-</dl>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8c_source.html#l00138">138</a> of file <a class="el" href="uves__wavecal__utils_8c_source.html">uves_wavecal_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__utils__polynomial_8c_source.html#l00295">uves_polynomial_delete()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4056e52158d53b14e5346871958976ff"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table** uves_lt_get_table </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structlt__type.html">lt_type</a> * </td>
-          <td class="paramname"><em>lt</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>window</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>trace</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get the table structure. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">lt</td><td>the line table </td></tr>
-    <tr><td class="paramname">window</td><td>window number </td></tr>
-    <tr><td class="paramname">trace</td><td>trace number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the CPL table of this 'line table' </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8c_source.html#l00172">172</a> of file <a class="el" href="uves__wavecal__utils_8c_source.html">uves_wavecal_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__wavecal__utils_8h_source.html#l00094">lt_type::table</a>, and <a class="el" href="uves__wavecal__utils_8h_source.html#l00091">lt_type::traces</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa98b57c1a71f64a50a4f4fa83d2d590c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>** uves_lt_get_disprel </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structlt__type.html">lt_type</a> * </td>
-          <td class="paramname"><em>lt</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>window</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>trace</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get dispersion relation. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">lt</td><td>the line table </td></tr>
-    <tr><td class="paramname">window</td><td>window number </td></tr>
-    <tr><td class="paramname">trace</td><td>trace number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the dispersion relation </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8c_source.html#l00187">187</a> of file <a class="el" href="uves__wavecal__utils_8c_source.html">uves_wavecal_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__wavecal__utils_8h_source.html#l00097">lt_type::dispersion_relation</a>, and <a class="el" href="uves__wavecal__utils_8h_source.html#l00091">lt_type::traces</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga28897452a40eb7c7a957c0761dd21842"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>** uves_lt_get_absord </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structlt__type.html">lt_type</a> * </td>
-          <td class="paramname"><em>lt</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>window</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>trace</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get absolute order polynomial. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">lt</td><td>the line table </td></tr>
-    <tr><td class="paramname">window</td><td>window number </td></tr>
-    <tr><td class="paramname">trace</td><td>trace number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the absolute order polynomial </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8c_source.html#l00201">201</a> of file <a class="el" href="uves__wavecal__utils_8c_source.html">uves_wavecal_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__wavecal__utils_8h_source.html#l00100">lt_type::absolute_order</a>, and <a class="el" href="uves__wavecal__utils_8h_source.html#l00091">lt_type::traces</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaabce897a294645e87763f7f5ecdbcd30"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int* uves_lt_get_firstabs </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structlt__type.html">lt_type</a> * </td>
-          <td class="paramname"><em>lt</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>window</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>trace</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get first absolute order. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">lt</td><td>the line table </td></tr>
-    <tr><td class="paramname">window</td><td>window number </td></tr>
-    <tr><td class="paramname">trace</td><td>trace number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the first absolute order </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8c_source.html#l00215">215</a> of file <a class="el" href="uves__wavecal__utils_8c_source.html">uves_wavecal_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__wavecal__utils_8h_source.html#l00103">lt_type::first_absolute_order</a>, and <a class="el" href="uves__wavecal__utils_8h_source.html#l00091">lt_type::traces</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaca1246cec58a8bb8f218b993428985bc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int* uves_lt_get_lastabs </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structlt__type.html">lt_type</a> * </td>
-          <td class="paramname"><em>lt</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>window</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>trace</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Get last absolute order. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">lt</td><td>the line table </td></tr>
-    <tr><td class="paramname">window</td><td>window number </td></tr>
-    <tr><td class="paramname">trace</td><td>trace number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the last absolute order </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8c_source.html#l00229">229</a> of file <a class="el" href="uves__wavecal__utils_8c_source.html">uves_wavecal_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__wavecal__utils_8h_source.html#l00106">lt_type::last_absolute_order</a>, and <a class="el" href="uves__wavecal__utils_8h_source.html#l00091">lt_type::traces</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae0d2cfe5965b9e1f8655d1265b6bdde3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_wavecal_find_nearest </td>
-          <td>(</td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>line_refer</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>lambda</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>lo</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>hi</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find best matching catalogue wavelength. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">line_refer</td><td>Table to search </td></tr>
-    <tr><td class="paramname">lambda</td><td>Find catalogue wavelength nearest to this wavelength </td></tr>
-    <tr><td class="paramname">lo</td><td>First row (inclusive, counting from 0) of table to search </td></tr>
-    <tr><td class="paramname">hi</td><td>Last row (inclusive, counting from 0) of table to search </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The index of the row containing the wavelength closest to <em>lambda</em> </dd></dl>
-<p>This function returns the index of the nearest wavelength in the range {lo, ..., hi} The input table must be sorted according to the column <em>"Wave"</em> which is the column that is searched.</p>
-<dl class="section note"><dt>Note:</dt><dd>The function implements a binary search (using recursion) which is why the input table must be sorted. </dd></dl>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8c_source.html#l00252">252</a> of file <a class="el" href="uves__wavecal__utils_8c_source.html">uves_wavecal_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__wavecal__utils_8c_source.html#l00252">uves_wavecal_find_nearest()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l00762">identify_lines()</a>, and <a class="el" href="uves__wavecal__utils_8c_source.html#l00252">uves_wavecal_find_nearest()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2f7ee53133e419d19f10cbc231e8054a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int uves_delete_bad_lines </td>
-          <td>(</td>
-          <td class="paramtype">cpl_table * </td>
-          <td class="paramname"><em>table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>TOLERANCE</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>kappa</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Delete bad lines from line table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">table</td><td>The line table containing the bad lines to be removed </td></tr>
-    <tr><td class="paramname">TOLERANCE</td><td>If positive, this tolerance is considered in pixel units, otherwise in w.l.u. </td></tr>
-    <tr><td class="paramname">kappa</td><td>Used in kappa sigma clipping </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The number of deleted bad lines (i.e. deleted table rows), or undefined on error</dd></dl>
-<p>Rows with invalid <em>"Ident"</em> (un-identified lines) are removed, as are rows with <em>"Residual_pix"</em> worse than the specified <em>TOLERANCE</em>. If the <em>TOLERANCE</em> is negative, rows with <em>LINETAB_RESIDUAL</em> worse than |<em>TOLERANCE</em> | are removed. </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8c_source.html#l00304">304</a> of file <a class="el" href="uves__wavecal__utils_8c_source.html">uves_wavecal_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00204">check_nomsg</a>, and <a class="el" href="uves__utils_8c_source.html#l02510">uves_average_reject()</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__identify_8c_source.html#l01127">calibrate_global()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga274e895ff3513060affa6b987a13842a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_error_code uves_draw_lines </td>
-          <td>(</td>
-          <td class="paramtype">cpl_image * </td>
-          <td class="paramname"><em>image</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype"><a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>dispersion</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="struct__polynomial.html">polynomial</a> * </td>
-          <td class="paramname"><em>order_locations</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const cpl_table * </td>
-          <td class="paramname"><em>t</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>lambda_column</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>abs_order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>relative_order</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>minorder</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>maxorder</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">bool </td>
-          <td class="paramname"><em>vertical</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>offset</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Draw lines in an echelle image. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">image</td><td>Image to draw on </td></tr>
-    <tr><td class="paramname">dispersion</td><td>The dispersion relation </td></tr>
-    <tr><td class="paramname">order_locations</td><td>The order locations (relative order numbering) </td></tr>
-    <tr><td class="paramname">t</td><td>Table containing wavelengths to plot </td></tr>
-    <tr><td class="paramname">lambda_column</td><td>Name of column containing the wavelengths to plot </td></tr>
-    <tr><td class="paramname">abs_order</td><td>Name of column containing the absolute order numbers </td></tr>
-    <tr><td class="paramname">relative_order</td><td>The map from absolute to relative orders </td></tr>
-    <tr><td class="paramname">minorder</td><td>The first absolute order used </td></tr>
-    <tr><td class="paramname">maxorder</td><td>The last absolute order used </td></tr>
-    <tr><td class="paramname">vertical</td><td>Flag indicating if plotted lines are vertical (true) or horizontal (false) </td></tr>
-    <tr><td class="paramname">offset</td><td>Horizontal offset (in pixels) of the plotted line </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>CPL_ERROR_NONE iff OK</dd></dl>
-<p>This function is used for debugging. It plots a line (length = 7 pixels) on the image corresponding to each wavelength listed in the specified table column.</p>
-<p>If <em>abs_order</em> is non-NULL, each wavelength is drawn on the order specified by <em>abs_order</em>. In this case <em>minorder</em> and <em>maxorder</em> are ignored.</p>
-<p>If <em>abs_order</em> is NULL, each wavelength is drawn on every order from <em>minorder</em> (inclusive) to <em>maxorder</em> (inclusive). This mode can be used to plot catalogue wavelengths that a priori are located in no specific order.</p>
-<p>The y position of a wavelength is inferred from the polynomial <em>order_locations</em> (the order table), and the x position is inferred from the dispersion relation. </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8c_source.html#l00404">404</a> of file <a class="el" href="uves__wavecal__utils_8c_source.html">uves_wavecal_utils.c</a>.</p>
-
-<p>References <a class="el" href="uves__error_8h_source.html#l00198">check</a>, <a class="el" href="uves__error_8h_source.html#l00207">passure</a>, <a class="el" href="uves__error_8h_source.html#l00215">uves_error_reset</a>, <a class="el" href="uves__msg_8h_source.html#l00097">uves_msg_debug</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00547">uves_polynomial_get_dimen [...]
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/group__uves__wavecal__test.html b/html/group__uves__wavecal__test.html
deleted file mode 100644
index 53de21b..0000000
--- a/html/group__uves__wavecal__test.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: UVES wavelength calibration unit tests</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">UVES wavelength calibration unit tests</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gaef1e683ff19a9e4e2e4932e88c952561"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaef1e683ff19a9e4e2e4932e88c952561"></a>
-static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal__test.html#gaef1e683ff19a9e4e2e4932e88c952561">test_ppm</a> (void)</td></tr>
-<tr class="memdesc:gaef1e683ff19a9e4e2e4932e88c952561"><td class="mdescLeft"> </td><td class="mdescRight">test point pattern matching <br/></td></tr>
-<tr class="memitem:ga840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga840291bc02cba5474a4cb46a9b9566fe"></a>
-int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__uves__wavecal__test.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
-<tr class="memdesc:ga840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft"> </td><td class="mdescRight">Test of uves_wavecal. <br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/index.hhc b/html/index.hhc
deleted file mode 100644
index 08b2bf5..0000000
--- a/html/index.hhc
+++ /dev/null
@@ -1,1178 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<HTML><HEAD></HEAD><BODY>
-<OBJECT type="text/site properties">
-<param name="FrameName" value="right">
-</OBJECT>
-<UL>
-<LI><OBJECT type="text/sitemap"><param name="Name" value="Modules"><param name="ImageNumber" value="1"></OBJECT>
-  <UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="MIDAS <-> CPL interface"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="frame"><param name="Local" value="structframe.html"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="invariant"><param name="Local" value="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="frame_is_open"><param name="Local" value="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="frame_new_image"><param name="Local" value="group__flames__midas__def.html#ga039acefae152f656c10c8f92123dff18"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="frame_new_table"><param name="Local" value="group__flames__midas__def.html#gab7f90aa20c3ad6bb30b38c96cce9503a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="frame_free"><param name="Local" value="group__flames__midas__def.html#ga1d9507f11db5958a512c4bfac897d11e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="is_special_midas_descr"><param name="Local" value="group__flames__midas__def.html#ga62f37c098ceea9f00ff6d148787d94a2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="convert_to_fits"><param name="Local" value="group__flames__midas__def.html#gac5996d64d908d2cfa6f94ea779a0ea95"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="convert_to_history"><param name="Local" value="group__flames__midas__def.html#gac7d5af5ecd10af15fb036eb988b61527"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="load_header"><param name="Local" value="group__flames__midas__def.html#ga9e7eadf2d9728e691ea6faf51032cd8c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_image_dtype_to_cpltype"><param name="Local" value="group__flames__midas__def.html#ga6beb815e71b5dc0c97723fea885b87fb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="load_frame_header"><param name="Local" value="group__flames__midas__def.html#ga01414f0f04f79fd8686c2f6f9f478fbc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="set_column_format_unit_tnull"><param name="Local" value="group__flames__midas__def.html#gac43d4468f847fadb5e9ff0895b0cab16"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="load_frame"><param name="Local" value="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="create_descr"><param name="Local" value="group__flames__midas__def.html#ga660658a114854b46d0dd27605ea01711"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="get_descr_info"><param name="Local" value="group__flames__midas__def.html#ga39b00de90ed04a8759704d6ad997c30c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scspro"><param name="Local" value="group__flames__midas__def.html#gafb520332aaae57a6e23cd3004aaf9edd"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scsepi"><param name="Local" value="group__flames__midas__def.html#ga404f30f6b856c9aef1049281f08821a7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_error_macro"><param name="Local" value="group__flames__midas__def.html#ga5782950076486effd61983d7e9cfdca7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_fail_macro"><param name="Local" value="group__flames__midas__def.html#gafb38d16898bedd5466e128e2fc7685ec"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckwri"><param name="Local" value="group__flames__midas__def.html#gac9bb00d4973c0c331c191b7181813603"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckwrd"><param name="Local" value="group__flames__midas__def.html#gaf92f6c07d3bdb40c5a94cbda4ef5759d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckwrc"><param name="Local" value="group__flames__midas__def.html#ga456cfe0c7a3174be7b4743a50c35af06"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckgetc"><param name="Local" value="group__flames__midas__def.html#gad5428f85c2051eb80233c722be600384"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckgetc_fs"><param name="Local" value="group__flames__midas__def.html#gaa8dd2c0f402ef4d7f25cab80633315d2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckgetc_fsp"><param name="Local" value="group__flames__midas__def.html#gaf5a5ab0dd30aa57b7190dd16282b405c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckrdd"><param name="Local" value="group__flames__midas__def.html#gae85c7a6f7d741e6daef4b9b22ac45445"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckrdr"><param name="Local" value="group__flames__midas__def.html#ga111509252ea742fbf16c4d1094e50984"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckrdi"><param name="Local" value="group__flames__midas__def.html#ga9141f1db2730a7ca7017cb6c3f630212"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckrdc"><param name="Local" value="group__flames__midas__def.html#gadf589fba446c3b815b0f3cd2d1ae2313"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="sckfnd"><param name="Local" value="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckfnd_double"><param name="Local" value="group__flames__midas__def.html#gaebe09f825bea8022029d7228f65ec0bd"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckfnd_float"><param name="Local" value="group__flames__midas__def.html#gad15ddc46cb5cfb84c0712bd4ea711a31"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckfnd_int"><param name="Local" value="group__flames__midas__def.html#gac7a6aa9b94f6cc8f3cde2fbdfc196508"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sckfnd_string"><param name="Local" value="group__flames__midas__def.html#gaa62164a8510ad12d9cc38d7ba63e6ac2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sctput"><param name="Local" value="group__flames__midas__def.html#ga16f28e1fc62964ca37121c376f40f217"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scfinf"><param name="Local" value="group__flames__midas__def.html#ga7066ceaa10571003c4f40b9514befa55"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scfopn"><param name="Local" value="group__flames__midas__def.html#gade8dcfb4d9b489491251c0a3bdd37c77"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scfcre"><param name="Local" value="group__flames__midas__def.html#gacc0d2e992be7014e3ee51cd0e5213378"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="frame_close"><param name="Local" value="group__flames__midas__def.html#ga74503a6b522dac56cde3c9371ad720c3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scfclo"><param name="Local" value="group__flames__midas__def.html#ga5ed8340f5fc416851f180804e976063c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scfget"><param name="Local" value="group__flames__midas__def.html#ga41facab5fb3ef7e61cd04eb23c221457"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scfput"><param name="Local" value="group__flames__midas__def.html#ga7fd1da8919a2e4d23d715241851dc531"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scdfnd"><param name="Local" value="group__flames__midas__def.html#gae2e7cd4c8a5c1bffdbd0323fdb5aac63"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scdprs"><param name="Local" value="group__flames__midas__def.html#ga6b30560067a69f65864f034fcecf22b8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="scdrd"><param name="Local" value="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scdrdi"><param name="Local" value="group__flames__midas__def.html#ga0e318315f4db01837b210ed6f121abc9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scdrdd"><param name="Local" value="group__flames__midas__def.html#gaac0ac727377c28d18f747a7d7c68ba8a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scdrdr"><param name="Local" value="group__flames__midas__def.html#gaa973227da8437b4a863f3b20c6a48677"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scdrdc"><param name="Local" value="group__flames__midas__def.html#ga364fe8ecc22777838c41847bda6ac39d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="scdwr"><param name="Local" value="group__flames__midas__def.html#ga3df6bb0a7782b06c85dca025c4bd5682"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scdwri"><param name="Local" value="group__flames__midas__def.html#ga13989de7cfac7c2dbf9af19b1474466c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scdwrd"><param name="Local" value="group__flames__midas__def.html#ga2291fd90dbe300f347bdeb8b9406defc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scdwrr"><param name="Local" value="group__flames__midas__def.html#ga1529d77bc40fef94b2ff2c3e00c478e1"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scdwrc"><param name="Local" value="group__flames__midas__def.html#ga44cabf3bf150345b7212c5b7b53b98c2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scddel"><param name="Local" value="group__flames__midas__def.html#ga48f59f2f6c0f646a98df741d3dca5490"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="scdcop"><param name="Local" value="group__flames__midas__def.html#gae41c12c4d3844865f17d833c1cb1417e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scdcop"><param name="Local" value="group__flames__midas__def.html#ga26847f26401dd74af7e09d6e20f3485c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scdcop_nonaxis"><param name="Local" value="group__flames__midas__def.html#ga9434f71fab199b6901162d0ef9a3c72c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sccsho"><param name="Local" value="group__flames__midas__def.html#ga015a9de40fda2f9647b47ebcff656176"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sccfnd"><param name="Local" value="group__flames__midas__def.html#ga615dbb0a3b8642ce7a2fc6dd0f9ccdca"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sccget"><param name="Local" value="group__flames__midas__def.html#ga012d8363656f8f4ffbd3715f07e0fe1e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_scccre"><param name="Local" value="group__flames__midas__def.html#ga49845ef1180d690d5d3c6aa8645217c9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_sccadd"><param name="Local" value="group__flames__midas__def.html#ga7be4e25a210527efa6a2f35654a883c2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="table_dtype_to_cpltype"><param name="Local" value="group__flames__midas__def.html#gacd8b0d2f194d8ea65feea67f5d59772c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="sizeof_cpltype"><param name="Local" value="group__flames__midas__def.html#ga719a4f7457ed2683599e5f62a429e1af"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="table_cpltype_to_dtype"><param name="Local" value="group__flames__midas__def.html#gaff61faa79a507025396b5ff638457e5b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="table_colname_from_number"><param name="Local" value="group__flames__midas__def.html#ga638d89407aed0a4641df1ce39f70392a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tctopn"><param name="Local" value="group__flames__midas__def.html#ga3ef46ff32b2d2f17c817a788076db09a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tctclo"><param name="Local" value="group__flames__midas__def.html#ga682523f91d2e727497904d2abafd4171"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tccser"><param name="Local" value="group__flames__midas__def.html#ga08eeeb2f1d0362d03eb83612d1407e47"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tciget"><param name="Local" value="group__flames__midas__def.html#gac90526c6f62d53d6dda4f12709366401"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcbget"><param name="Local" value="group__flames__midas__def.html#gabfccd17a94b63af4a405b06f65e8a9c3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcdget"><param name="Local" value="group__flames__midas__def.html#ga54f9ec2adf2926835533fd239b0ecf07"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcfget"><param name="Local" value="group__flames__midas__def.html#ga42b0965ecfa0c67c6e03e34ab9c9f6c3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tclget"><param name="Local" value="group__flames__midas__def.html#ga07f9619101216e3d306e6dc69dd6bce2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcuget"><param name="Local" value="group__flames__midas__def.html#ga2206e126a49362e551a9f6cceb8bc4e6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tclser"><param name="Local" value="group__flames__midas__def.html#ga2cfaafe6ece41ed12cf798605688c74d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tccini"><param name="Local" value="group__flames__midas__def.html#ga056439b490e9f15fb439956f97da18a6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="tcerd"><param name="Local" value="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcerdc"><param name="Local" value="group__flames__midas__def.html#gac6c54281929d88f009f4e4d2de078948"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcerdi"><param name="Local" value="group__flames__midas__def.html#gaf38f1e0716373fba8c2cd7cea07ef7d0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcerdr"><param name="Local" value="group__flames__midas__def.html#gadce2330c6f7b37cd8694fb195c4d240e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcerdd"><param name="Local" value="group__flames__midas__def.html#ga338a9cb9bd7b9c78c6722879a6a6dcb7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="tcewr"><param name="Local" value="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcewrc"><param name="Local" value="group__flames__midas__def.html#gae63b97b3d22a206f5d520d0720e79f05"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcewrd"><param name="Local" value="group__flames__midas__def.html#gaf56d454eb421323a18cb00a7a238608b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcewri"><param name="Local" value="group__flames__midas__def.html#ga8ddb72626aebb5ce88e19f3f01f49eed"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcewrr"><param name="Local" value="group__flames__midas__def.html#ga267fba0020bb3e6ba80f1fca111b3847"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="tcard"><param name="Local" value="group__flames__midas__def.html#ga8f640b729dc132a3dfb6151317f54ad7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcardc"><param name="Local" value="group__flames__midas__def.html#ga68685d0b50cdc0635a5deb9b2048badd"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcardd"><param name="Local" value="group__flames__midas__def.html#ga91ac96ae8f80e7d763aba17d63d43f94"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcardi"><param name="Local" value="group__flames__midas__def.html#ga6f1a804eb044a99139f18d7d47d5f033"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcardr"><param name="Local" value="group__flames__midas__def.html#ga7828917beff1870f6c63d8d91a426589"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="tcawr"><param name="Local" value="group__flames__midas__def.html#ga65e78c6b1bd838a7bbb398c2cc572168"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcawrc"><param name="Local" value="group__flames__midas__def.html#ga4025c0c05f7c29795606053fa93246ad"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcawrd"><param name="Local" value="group__flames__midas__def.html#gaed6dea021e90e8503f6875b16024bb32"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcawri"><param name="Local" value="group__flames__midas__def.html#ga8498644f4cd378cb9ba89010d0274ffc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcawrr"><param name="Local" value="group__flames__midas__def.html#gae6d07668fce8fac7c7e9809b4a630110"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcsget"><param name="Local" value="group__flames__midas__def.html#gaabd3993df69252bebb2f975a1502d310"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_midas_tcsput"><param name="Local" value="group__flames__midas__def.html#gad64c1f681e05a9b74ac51da43d762eba"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="UVES library unit tests"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_gaussian_fitting"><param name="Local" value="group__uves__test.html#gac0ef6293fdbf2c970e010fd74c7138b5"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="main"><param name="Local" value="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="UVES CD align unit tests"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="eval_gauss"><param name="Local" value="group__uves__dfs.html#gaf312209df39d763b6975f2682529a4e8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_process"><param name="Local" value="group__uves__dfs.html#gaf03bdc8665be4a9b822ad51cc627a781"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="main"><param name="Local" value="group__uves__dfs.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="parse_midas_poly"><param name="Local" value="group__uves__dfs.html#ga8d65e1daf239b7e190cec6f51dac20b3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_load_linetable"><param name="Local" value="group__uves__dfs.html#ga25c633cbad05c6881a85e9fa05ee067f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="convert_midas_array"><param name="Local" value="group__uves__dfs.html#ga88bbe197eb9fde07ce6d0764f542bc6b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_save_image"><param name="Local" value="group__uves__dfs.html#ga55bd09e356002a31fb5223db095c6658"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_save_frame"><param name="Local" value="group__uves__dfs.html#ga8168aec179eed4c63b7f9c61b94d2e2b"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="UVES bad pixel correction unit tests"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_bad_corr"><param name="Local" value="group__uves__corrbadpix__test.html#gaab99aa10d70ef9b2fe672f56c15f60c8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="main"><param name="Local" value="group__uves__corrbadpix__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="UVES extraction unit tests"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="create_spectrum"><param name="Local" value="group__uves__extract__test.html#ga7cb1d3ff41cb3f702a9b25abe8184e87"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_extract"><param name="Local" value="group__uves__extract__test.html#gac6bd9700cd243b2b05fcfeff33c2ecff"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_iterate"><param name="Local" value="group__uves__extract__test.html#ga017b6e795dd968c9e025ca0d6f3611f5"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="main"><param name="Local" value="group__uves__extract__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="UVES polynomial unit tests"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_polynomial_fit_2d"><param name="Local" value="group__uves__polynomial__test.html#gaecea8e95aa6be883a21e039669855c2f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_polynomial"><param name="Local" value="group__uves__polynomial__test.html#ga9f16114e84dbc27c20652d0e2876d021"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="main"><param name="Local" value="group__uves__polynomial__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="UVES qclog unit tests"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_qc_name"><param name="Local" value="group__uves__qclog__test.html#gaf1c56ce99831ec1d5b6a82019609f9bd"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="main"><param name="Local" value="group__uves__qclog__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Response recipe related unit tests"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_load_3dtable"><param name="Local" value="group__uves__response__test.html#ga725c6509665bad47a2dfc8338b9513a2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_3dtable"><param name="Local" value="group__uves__response__test.html#ga0e5837c456b51889ea0c7af0e03eb661"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="main"><param name="Local" value="group__uves__response__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Create mock-up objects for unit testing"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="create_order_table"><param name="Local" value="group__uves__test__simulate.html#ga81a0d2793233e8b9c72f1141a3168924"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="create_line_table"><param name="Local" value="group__uves__test__simulate.html#ga6fbf196c4ff48ceb9f9a5dc64830dffe"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Utility function unit tests"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="table_erase_selected"><param name="Local" value="group__uves__utils__test.html#ga08eba462d1c80f2b403eb9da1fc1e698"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="main"><param name="Local" value="group__uves__utils__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="UVES wavelength calibration unit tests"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="test_ppm"><param name="Local" value="group__uves__wavecal__test.html#gaef1e683ff19a9e4e2e4932e88c952561"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="main"><param name="Local" value="group__uves__wavecal__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Substep: Background Subtraction"><param name="Local" value="group__uves__backsub.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Velocity correction"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="MIDAS_BUG"><param name="Local" value="group__uves__baryvel.html#ga03b8f8e3c131a0e32e71c41770ff4f24"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="deg2dms"><param name="Local" value="group__uves__baryvel.html#gaa1c25713efeab659789f821699975217"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="deg2hms"><param name="Local" value="group__uves__baryvel.html#gaaaf92abe334c82d9d71517236508ff3f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="compxy"><param name="Local" value="group__uves__baryvel.html#ga11beea47928ca353a23b5399e7ed644e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="barvel"><param name="Local" value="group__uves__baryvel.html#ga3d3880b9ecf3dac9a3ed30608a5d4012"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_baryvel"><param name="Local" value="group__uves__baryvel.html#ga7ab5f73d3e1aad2933cbcf66dff04aa3"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: Make master"><param name="Local" value="group__uves__cal__mkmaster.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: Cross Disperser alignment"><param name="Local" value="group__uves__cdalign.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="CCD Chip"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_chip_get_first"><param name="Local" value="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_chip_get_next"><param name="Local" value="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_chip_get_index"><param name="Local" value="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_chip_tostring_lower"><param name="Local" value="group__uves__chip.html#ga8319c211e6b7c649287e432bf78dc719"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_chip_tostring_upper"><param name="Local" value="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_chip_get_det"><param name="Local" value="group__uves__chip.html#ga34fa9c6d689106d4d44c572b33ac6410"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_chip_tochar"><param name="Local" value="group__uves__chip.html#gacc97ccf41a4ed99989d1ddc52192aac6"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="CCD chip abstract type"><param name="Local" value="group__uves__chip__type.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Bad pixel correction"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_correct_badpix"><param name="Local" value="group__uves__corrbadpix.html#gafcf45594af0c57c52ef369dd8d0ee84c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_correct_badpix_all"><param name="Local" value="group__uves__corrbadpix.html#gabddade195002b7813f7cb41baa85b729"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_badmap_free"><param name="Local" value="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="dup_map"><param name="Local" value="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_badpix"><param name="Local" value="group__uves__corrbadpix.html#ga3ab8d84dd9d1b03073d2b535c0236bcb"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Print CPL objects"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_print_uves_propertylist"><param name="Local" value="group__uves__dump.html#ga3bdf3305f871cf59e1010122e3078edb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_print_cpl_property"><param name="Local" value="group__uves__dump.html#ga873425d85be55f6137bb8c1e8e329b5e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_print_cpl_frameset"><param name="Local" value="group__uves__dump.html#ga74fae5c56aeaf8262cf416a8d747d3f2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_print_cpl_frame"><param name="Local" value="group__uves__dump.html#ga5e8553a2dcbbfe43fc15e21e4f54c381"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_tostring_cpl_frame_type"><param name="Local" value="group__uves__dump.html#ga7b4de02190abecc763b7be5c85e89b6e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_tostring_cpl_frame_group"><param name="Local" value="group__uves__dump.html#ga762dd0a18ecc4b13ebcc9a8aa5be5be9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_tostring_cpl_frame_level"><param name="Local" value="group__uves__dump.html#ga643a38c444a34da5266bed60ca817ebb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_tostring_cpl_type"><param name="Local" value="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Error handling"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="assure_nomsg"><param name="Local" value="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="assure_mem"><param name="Local" value="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="check"><param name="Local" value="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="check_nomsg"><param name="Local" value="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="passure"><param name="Local" value="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_error_reset"><param name="Local" value="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_error_dump"><param name="Local" value="group__uves__error.html#ga7e6bb359a87117dfc0e2c38d9f5d0108"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Substep: Extraction"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="extract_order_simple"><param name="Local" value="group__uves__extract.html#ga658f6a76a3bcf324623828302b2b1205"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="area_above_line"><param name="Local" value="group__uves__extract.html#gaae8e2ffac38d164c6f35df18166ee0d2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_define_sky"><param name="Local" value="group__uves__extract.html#gade9f76d1dc7526cbd212c04a74255b17"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_extract_sky"><param name="Local" value="group__uves__extract.html#ga1b8d6c2489fbc99e080dcdcc1dff5f1a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_subtract_sky"><param name="Local" value="group__uves__extract.html#ga0e232bc2628165c5e6aed6c3f12443c2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_sample_spatial_profile"><param name="Local" value="group__uves__extract.html#gac4b249fd5e1d761d4d628fc58360cd59"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_measure_profile"><param name="Local" value="group__uves__extract.html#gae3e0e629c167ff2012d0f200c347d1dc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_measure_profile_order"><param name="Local" value="group__uves__extract.html#gad07884e88093f0e0ee15519a30eb8d3f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="revise_noise"><param name="Local" value="group__uves__extract.html#gaded8ab18ec33bfaedbf404da6621c099"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_extract"><param name="Local" value="group__uves__extract.html#ga55de773dfa081016fda249a7cb7878de"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_get_order_width"><param name="Local" value="group__uves__extract.html#ga95cd798921bdd0f4606d5dbb45d0dab7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="estimate_sn"><param name="Local" value="group__uves__extract.html#gaace2260dc82cd97c5a88753a26c00c39"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_get_sky"><param name="Local" value="group__uves__extract.html#ga72eb895e6062614f776c8519f13dfb5e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_get_noise_median"><param name="Local" value="group__uves__extract.html#gaa6e6619285bc14f8d61ed59ec8266d6e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_get_flux_sky_variance"><param name="Local" value="group__uves__extract.html#ga8f31c60f3e1e173ad20217652934480c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_reject_outlier"><param name="Local" value="group__uves__extract.html#ga6ca277a820936e41b96d85c6bf0ea21b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="opt_get_redchisq"><param name="Local" value="group__uves__extract.html#ga74a27fdb394ea3be89fdd31f6c124da3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="repeat_orderdef"><param name="Local" value="group__uves__extract.html#gac3d98948d7bf5772674a0a6042b82bf2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="detect_ripples"><param name="Local" value="group__uves__extract.html#gacb90d6e405582e2d261bc5c117a1c20f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_extract_define_parameters"><param name="Local" value="group__uves__extract.html#ga99751e637d04bc19090446f3a15974d0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_extract_method"><param name="Local" value="group__uves__extract.html#gaa6ae7afeaf5c4a71eb399ffa29a828f7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_extract"><param name="Local" value="group__uves__extract.html#ga724649dabb1df68c512fdd9e99b36f0d"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flat-field correction"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_flatfielding"><param name="Local" value="group__uves__flatfield.html#gaa96727cda19ae088e522da95f95e6dbd"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_flatfield_method"><param name="Local" value="group__uves__flatfield.html#gaf870caa19bcc12c4b863a0a022663f22"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: Master Bias"><param name="Local" value="group__uves__mbias.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: Master Dark"><param name="Local" value="group__uves__mdark.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Order merging"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_merge_orders"><param name="Local" value="group__uves__merge.html#gad20fc9888b15052d53d15c7fd2041181"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_merge_method"><param name="Local" value="group__uves__merge.html#gaeef8fc529ffcfda1a562fd06c7540069"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: Master Flat"><param name="Local" value="group__uves__mflat.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Messaging"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_error"><param name="Local" value="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_progress"><param name="Local" value="group__uves__msg.html#ga787671a04773bfc372598b47babe9eb8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_warning"><param name="Local" value="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_debug"><param name="Local" value="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_low"><param name="Local" value="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg"><param name="Local" value="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_softer"><param name="Local" value="group__uves__msg.html#ga5d5259164b86fe1f3d99d4a2d3f3f68c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_louder"><param name="Local" value="group__uves__msg.html#gac46059c046c639441112609a0311752e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_init"><param name="Local" value="group__uves__msg.html#ga249838f12e1a1ce18b2f8d4c16bf3078"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_set_level"><param name="Local" value="group__uves__msg.html#gab9fee51244a39b8b83db0c6fa9c374ed"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_softer_macro"><param name="Local" value="group__uves__msg.html#gac40ef072b06ff52873a4ddd8f05f8be2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_louder_macro"><param name="Local" value="group__uves__msg.html#ga208ba2d8c46e592f572ad7bf14ba3b84"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_macro"><param name="Local" value="group__uves__msg.html#gac345c732a3bc5d9f695817759b8f6ce3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_get_warnings"><param name="Local" value="group__uves__msg.html#ga781eb662fe1449b6ffc27c381d177158"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_add_warnings"><param name="Local" value="group__uves__msg.html#gab40c1f283043f87e188cde494836dfca"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_warning_macro"><param name="Local" value="group__uves__msg.html#gaa6b9038cc9d6dee4d6b2f86adb459ee3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_get_domain"><param name="Local" value="group__uves__msg.html#gac522fbf0cdea3197a2bd0df38d3019aa"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msg_set_domain"><param name="Local" value="group__uves__msg.html#gaf97c630c8b96c1f038f747402cc561b2"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: Science reduction"><param name="Local" value="group__uves__obs__spatred.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: Order Position"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="trace_order"><param name="Local" value="group__uves__orderpos.html#ga2fcc313cc2f28775bd7aef5abb670751"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="count_orders"><param name="Local" value="group__uves__orderpos.html#ga9ec0c0699858aa2709832fdf9732abee"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="fit_order_linear"><param name="Local" value="group__uves__orderpos.html#ga63321f80b5c307c048cd012e43413dad"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="get_xcenter"><param name="Local" value="group__uves__orderpos.html#ga298b3cff7b38cee645a3155095f84981"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="get_ycenter"><param name="Local" value="group__uves__orderpos.html#gad2aa37539bc348053e032bb462c4fc2f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="get_orderlength"><param name="Local" value="group__uves__orderpos.html#gaee8ec7c4e8d83a1ef168f5c1c7c485a7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="estimate_threshold"><param name="Local" value="group__uves__orderpos.html#ga1b3faad60deb05543392b7d0761c42e2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="find_centroid"><param name="Local" value="group__uves__orderpos.html#ga940d9bec43c7580b6044ccc0781f6508"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_locate_orders"><param name="Local" value="group__uves__orderpos.html#ga24ea1bc4c54b9e30dc5cb6edb0671ec2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="detect_lines"><param name="Local" value="group__uves__orderpos.html#ga10eb92856d9393ba040c2955f504cb71"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="delete_peak"><param name="Local" value="group__uves__orderpos.html#ga0916288fc020f46150a3050ee529e2be"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="firsttrace"><param name="Local" value="group__uves__orderpos.html#gad50db3ef4566d0ff652423541aaf8790"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="calculate_spacing"><param name="Local" value="group__uves__orderpos.html#ga0830b05ef03423ceca86b6386123f26d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="autocorr"><param name="Local" value="group__uves__orderpos.html#ga8be5990f31b99ed6a4582388982f1b12"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="update_max"><param name="Local" value="group__uves__orderpos.html#gab7f87424906c5f0eef60d4de2ce4a01f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_hough"><param name="Local" value="group__uves__orderpos.html#gaa46ac08a5a64f9d633d8c7735a0aeb64"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_draw_orders"><param name="Local" value="group__uves__orderpos.html#ga3d0f9d7641a1bb0eb356813c8d179ddb"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe infrastructure"><param name="Local" value="group__uves__infrastructure.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="FITS header protected access"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_slit3_x1encoder"><param name="Local" value="group__uves__pfits.html#ga88d114f3cb4427cf679e9f7b7696bcd9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_slit3_x2encoder"><param name="Local" value="group__uves__pfits.html#ga12fe6f500e105193aa9faae4258ef51d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_maxfibres"><param name="Local" value="group__uves__pfits.html#ga87cd5104b9b26f1655958f6f533fcfc2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_chipchoice"><param name="Local" value="group__uves__pfits.html#ga4ee5f11b825d519d1a9aafb561e0d6f7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_badpxframe"><param name="Local" value="group__uves__pfits.html#ga8dc9fde0148605eee9109beca930f79e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_ambipress"><param name="Local" value="group__uves__pfits.html#gaabb5de1c212917f34b94de1c1587104d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_arcfile"><param name="Local" value="group__uves__pfits.html#ga2cc76a99674d90a86d9d7174f33dc893"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_flames_pfits_get_ident"><param name="Local" value="group__uves__pfits.html#ga25f5bbe03eaa1b8eede6c45d1c92daf3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_flames_pfits_get_object"><param name="Local" value="group__uves__pfits.html#ga81aff5981269ff140a1baca2df392f1b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_origfile"><param name="Local" value="group__uves__pfits.html#ga0ecbcc40cde47dcccdc6e61f987cf94e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_pipefile"><param name="Local" value="group__uves__pfits.html#ga29aa57ccf95058c909572ed494be97b1"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_rec1raw1name"><param name="Local" value="group__uves__pfits.html#ga2b39689fbd7baa3e56d34c2200317649"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_templateid"><param name="Local" value="group__uves__pfits.html#gaf694501f3a20536e64cad6efc2a0e5b5"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_date_obs"><param name="Local" value="group__uves__pfits.html#ga97acf10dfec1908a573a2bf51baedd72"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_dpr_catg"><param name="Local" value="group__uves__pfits.html#ga9a720fb2cb64f6f8704b53d6d5869017"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_ocs_simcal"><param name="Local" value="group__uves__pfits.html#gadfc97431fbaa953d0b2b507a0d65a323"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_ocs_simcal"><param name="Local" value="group__uves__pfits.html#ga8671b556f4338bf739e92b9d0ba1f831"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_pro_catg"><param name="Local" value="group__uves__pfits.html#ga77477da1d35f89951eb8eace41938d41"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_dpr_tech"><param name="Local" value="group__uves__pfits.html#ga2833b60dd4a735740352b9c24c6b01f9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_dpr_type"><param name="Local" value="group__uves__pfits.html#ga5bb5b7dee7a50351450a64182f1458fe"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_ccd_is_new"><param name="Local" value="group__uves__pfits.html#ga84bbe16d83dc492a6104f3b301f1c2f9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_format_is_new"><param name="Local" value="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_prescanx"><param name="Local" value="group__uves__pfits.html#ga408818ada3d951ea32c4063728eca597"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_chipid"><param name="Local" value="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_chip_name"><param name="Local" value="group__uves__pfits.html#ga764b711e645e416c5be3882765baa14e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_ovrscanx"><param name="Local" value="group__uves__pfits.html#ga3d6bc36f09d098e2804a09c276917634"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_prescany"><param name="Local" value="group__uves__pfits.html#ga9c23bc8405611ad9e160f17543a7ff45"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_ovrscany"><param name="Local" value="group__uves__pfits.html#gaf8ed5ab2990b6792cebb5e1143de4696"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_ron_adu"><param name="Local" value="group__uves__pfits.html#gabd4b8ee6fb59b708093644f50c321978"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_airmass_start"><param name="Local" value="group__uves__pfits.html#ga36f17263450ba556317388c15905bc7e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_airmass_end"><param name="Local" value="group__uves__pfits.html#ga2aba19c10f2f21a717691bd4b148f669"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_conad"><param name="Local" value="group__uves__pfits.html#gab40bd41082796c15947b75ceddbbbd5c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_targ_name"><param name="Local" value="group__uves__pfits.html#gae00753b08b474c90cdd83169e3c7980e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_gain"><param name="Local" value="group__uves__pfits.html#ga4f4be35f30bd7d46f8c7421907ac8695"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_exptime"><param name="Local" value="group__uves__pfits.html#ga6143e112905f368114637062d4600c04"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_exptime"><param name="Local" value="group__uves__pfits.html#gae45226fec29767907871c9f34f61f61a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_dec"><param name="Local" value="group__uves__pfits.html#ga9f62d68dba4e530ef2a0407d4752e6fc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_ra"><param name="Local" value="group__uves__pfits.html#ga38758b23b33b80f7e27476783fddc3e3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_ordpred"><param name="Local" value="group__uves__pfits.html#gaa74a3b1258870b7dcc7f66c616004055"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_drs_id"><param name="Local" value="group__uves__pfits.html#ga30b8fd58edf8f7f006fb73aa9a25cf91"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_tpl_start"><param name="Local" value="group__uves__pfits.html#gaf0ed2a547997610410b19faa468f5daf"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_utc"><param name="Local" value="group__uves__pfits.html#gaac930573fb642f9b489df1f3773d5eb9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_mjdobs"><param name="Local" value="group__uves__pfits.html#ga43adddad6bd999b197d24eacc25bde34"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_geolat"><param name="Local" value="group__uves__pfits.html#ga58d1b21dbf83e02a88bdced0a416bc9a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_geolon"><param name="Local" value="group__uves__pfits.html#ga55902033ba015dd0045488a5222f772c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_ra"><param name="Local" value="group__uves__pfits.html#ga2f4307d12086db9c739fe3df79931a10"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_dec"><param name="Local" value="group__uves__pfits.html#gabee157c267487c9edc9b7f478f781173"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_binx"><param name="Local" value="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_biny"><param name="Local" value="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_datancom"><param name="Local" value="group__uves__pfits.html#ga2b4f1ab25eca67e06373e637b34f96a2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_ccdid"><param name="Local" value="group__uves__pfits.html#ga42434cb12722d0eadd8b9f04f56c8237"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_pressure"><param name="Local" value="group__uves__pfits.html#gada6e3678efe087f614124ea63ce8a9a0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_chop_eso_prefix"><param name="Local" value="group__uves__pfits.html#gacf7edbe26b2c28fbe6b04bcd0c0fbe54"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_tempcam"><param name="Local" value="group__uves__pfits.html#ga266ea18052beecac005d60558904a490"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_humidity"><param name="Local" value="group__uves__pfits.html#ga4f0d4444ba3039844561d5574447f152"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_gratwlen"><param name="Local" value="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_insmode"><param name="Local" value="group__uves__pfits.html#gaa56bfa63f004c7046a5a5242312a792f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_inspath"><param name="Local" value="group__uves__pfits.html#gaeefa3dc2dbf45776accef00f67b7002f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_gratname"><param name="Local" value="group__uves__pfits.html#ga58d2d231e9bcf59d84ce42cf527b2071"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_readspeed"><param name="Local" value="group__uves__pfits.html#ga5dc4ab669bc41d6c481905c16afa59a0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_gratid"><param name="Local" value="group__uves__pfits.html#gaa907a5d5e4e5a8b2fedda4daae8fae4f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_slitlength"><param name="Local" value="group__uves__pfits.html#ga159df9e29b6cdbc886d2ec1c19884a64"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_slitwidth"><param name="Local" value="group__uves__pfits.html#gadbfe6eb96c384b6b971b634ab8b79fab"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_ordpred"><param name="Local" value="group__uves__pfits.html#ga49559908c6512ccc86d7ea3b478bdc9a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_history_val"><param name="Local" value="group__uves__pfits.html#ga69cca375340082d053f4fa6d11c099c6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="parse_history"><param name="Local" value="group__uves__pfits.html#ga41f9034d45d27b699e4bb70c322d8856"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_firstabsorder"><param name="Local" value="group__uves__pfits.html#ga33e51be1bfd4b8f42972789c417211ae"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_firstabsorder"><param name="Local" value="group__uves__pfits.html#gaa6a185f3150b22d6ce30439bfacbb78c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_lastabsorder"><param name="Local" value="group__uves__pfits.html#ga69fae305f143947cdd58f3c575e7ba9a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_lastabsorder"><param name="Local" value="group__uves__pfits.html#gad090d54b01606904ef8d740f766c2fde"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_data_average"><param name="Local" value="group__uves__pfits.html#ga865460e642e3dc81fae544e3b6f1402a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_data_stddev"><param name="Local" value="group__uves__pfits.html#ga308f6a7549c50e0c513d63a40dfa975f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_data_median"><param name="Local" value="group__uves__pfits.html#gad010fc0da98b85fdebcd5bc5ba66b2bf"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_data_min"><param name="Local" value="group__uves__pfits.html#gac4287c2bde551653e40d60e128a3a35a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_data_max"><param name="Local" value="group__uves__pfits.html#ga12b323abb20f835610ee85f9511d2b30"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_traceid"><param name="Local" value="group__uves__pfits.html#ga7ee7734c381f31039220820182a749c9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_offset"><param name="Local" value="group__uves__pfits.html#gaef0d7e4491440deeda27c14d65c34d7b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_offset"><param name="Local" value="group__uves__pfits.html#gae66ad0ee347230f2fea240f445104a20"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_windownumber"><param name="Local" value="group__uves__pfits.html#gab684709b2ade5e2322325761799e92d0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_traceid"><param name="Local" value="group__uves__pfits.html#gafe242382d5e824db3b68e156d8296a89"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_windownumber"><param name="Local" value="group__uves__pfits.html#ga3bcabe0b2d46d1f65674d3d0dcb9ee2d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_bunit"><param name="Local" value="group__uves__pfits.html#gaeaf186ce3a84dfbca11c7cee211e80ce"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_bscale"><param name="Local" value="group__uves__pfits.html#gacc6916f14b6591ccc948f1ca8117fbf0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_cunit1"><param name="Local" value="group__uves__pfits.html#ga59cf5e1608701d663f3abcc8fcb41880"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_cunit2"><param name="Local" value="group__uves__pfits.html#ga1f8205720c4af931e1dfb55542d71ccc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_ctype1"><param name="Local" value="group__uves__pfits.html#gaa01218ecc26f39e4d903199d8912859a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_ctype2"><param name="Local" value="group__uves__pfits.html#ga10f0c2c5e0fd87a36ede0e7fb2fa05bd"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_uit"><param name="Local" value="group__uves__pfits.html#ga94a0f9aec24d8d9ce2a936a1cd7985dd"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_nx"><param name="Local" value="group__uves__pfits.html#ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_ny"><param name="Local" value="group__uves__pfits.html#ga4869724c736010824272955edffb60eb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_out1nx"><param name="Local" value="group__uves__pfits.html#gae9e532b44a8101e42ee42ea2294e877a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_out1ny"><param name="Local" value="group__uves__pfits.html#ga4cc264a7bd8eafb4572b7ee10a82b4a9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_out4nx"><param name="Local" value="group__uves__pfits.html#gaf24b3465f3646b6a0c446eb1fbeb2520"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_out4ny"><param name="Local" value="group__uves__pfits.html#ga40a63a22192db6fbc8bab37e64ae0bc9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_naxis"><param name="Local" value="group__uves__pfits.html#ga17228ff502d3e1eafc4359b2b7069a32"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_flames_pfits_get_nflats"><param name="Local" value="group__uves__pfits.html#gac758aa4b71e0c505df55d1d99d7b62f8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_bitpix"><param name="Local" value="group__uves__pfits.html#ga45d7028cbd48f33f7c5589deb4ccd5c4"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_naxis1"><param name="Local" value="group__uves__pfits.html#gadd8fda05c51af7b34d5021b4bc60fffc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_startx"><param name="Local" value="group__uves__pfits.html#gaf61c29fc0fa67ae38c7ac8e0f125c6ce"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_starty"><param name="Local" value="group__uves__pfits.html#gaa144877b5eaa88dd3bc92c9900543c5f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_naxis2"><param name="Local" value="group__uves__pfits.html#ga41338750e1279de511bc5035d8d218d0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_crval1"><param name="Local" value="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_crval2"><param name="Local" value="group__uves__pfits.html#gaefba8b3c1a2fbe5c0f42eaeaaafaf455"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_crpix1"><param name="Local" value="group__uves__pfits.html#ga1820feccc4e549d16d5630880790cea3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_crpix2"><param name="Local" value="group__uves__pfits.html#ga18ea5d528ab27ac81d2b64901f81c4b7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_cdelt1"><param name="Local" value="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_cdelt2"><param name="Local" value="group__uves__pfits.html#gab1af91452dda53e50314231795bf5308"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_dpr_catg"><param name="Local" value="group__uves__pfits.html#ga666eb10fe3865d59fa69b830735f0e0e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_dpr_tech"><param name="Local" value="group__uves__pfits.html#gaa8bc49514a8c08229da6db3f881cf98c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_dpr_type"><param name="Local" value="group__uves__pfits.html#gad5a9f4f0b354fff0ee10bd24df613b25"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_object"><param name="Local" value="group__uves__pfits.html#ga00c534cae0eea2f78b8d36bc675c7b80"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_badpixcorr"><param name="Local" value="group__uves__pfits.html#gaa198d93b1538311c92a9b2fed6389357"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_redlevel"><param name="Local" value="group__uves__pfits.html#gad288bfc7118fd184d27b16ec9c45d5eb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_status"><param name="Local" value="group__uves__pfits.html#ga8e84ec2559f4f8b5c950ca701c852c61"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_starttime"><param name="Local" value="group__uves__pfits.html#ga0cb8c1549c5c2877e335249714025634"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_stoptime"><param name="Local" value="group__uves__pfits.html#ga62d8502b9cb1c8852a37f88499c88e26"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_bunit"><param name="Local" value="group__uves__pfits.html#ga1dcf84ae52c90eecc51ca448a63cfc5e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_bscale"><param name="Local" value="group__uves__pfits.html#gace68beef266360129dce0860c4fb1731"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_tunit_no"><param name="Local" value="group__uves__pfits.html#gad9f2f8d54f1b6708126bc62b45bc7d74"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_bunit_no"><param name="Local" value="group__uves__pfits.html#gaf0f096e9615abba54e8df7068b2e7541"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_ctype1"><param name="Local" value="group__uves__pfits.html#gac948997f6142c218334d0cb70a4eeabc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_ctype2"><param name="Local" value="group__uves__pfits.html#ga1644b60894010bfaa365370ff6851aaf"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_cunit1"><param name="Local" value="group__uves__pfits.html#gaf22ae9bd0d4e3492b1595f49ec00edc8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_cunit2"><param name="Local" value="group__uves__pfits.html#ga6bef11d061318a2656e16fb83717965b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_crval1"><param name="Local" value="group__uves__pfits.html#gaaed14627f7b8206cc8970cd1f787a6db"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_crval2"><param name="Local" value="group__uves__pfits.html#ga510ee409ec059fdbd8991d88a7639152"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_crpix1"><param name="Local" value="group__uves__pfits.html#ga0fb41e9ccebfde88e71dcd6ed2dff570"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_crpix2"><param name="Local" value="group__uves__pfits.html#gaf6964f0063821d3f357125f149f87367"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_cdelt1"><param name="Local" value="group__uves__pfits.html#ga0d13232557903e763483cc57b4cfa0c4"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_flames_pfits_set_ccfposmax"><param name="Local" value="group__uves__pfits.html#ga18d5d37d2b633d137b3c256e9e61c029"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_cdelt2"><param name="Local" value="group__uves__pfits.html#ga80ad6ea5e902d3cc3a1f3745035e528e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_hs"><param name="Local" value="group__uves__pfits.html#ga3a62ab3d0a3cbff46e6587757c951c7d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_wstart"><param name="Local" value="group__uves__pfits.html#ga343861c33e84f1358c3235d41e8474b8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_wstart"><param name="Local" value="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_set_wend"><param name="Local" value="group__uves__pfits.html#ga30c035689f06d716cca55250181f9956"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_wend"><param name="Local" value="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_pixelscale"><param name="Local" value="group__uves__pfits.html#gaad1abe1801ca189d25b0f9ffdcf1f078"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_slit1_name"><param name="Local" value="group__uves__pfits.html#gadb0a05528f0429187a6af97bcb3f4a25"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_get_slitlength_pixels"><param name="Local" value="group__uves__pfits.html#gada5bfd486b316634b1d107ea5fc2cd12"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_flames_pfits_get_plateid"><param name="Local" value="group__uves__pfits.html#gae70f662017b21fd4d83fa9d7b16fec50"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_flames_pfits_get_dit"><param name="Local" value="group__uves__pfits.html#ga7bcb4bda625a9aee0a93daaa409e1320"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_flames_pfits_set_newplateid"><param name="Local" value="group__uves__pfits.html#ga95b184c2af4a33cac829ff926b10138b"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Utility for Physical Model"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_stacen"><param name="Local" value="group__uves__physmod__cstacen.html#ga07c91aa64ccf1d26ec66969f4eff03ba"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="CGN_NINT"><param name="Local" value="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="Ckapsig"><param name="Local" value="group__uves__physmod__cstacen.html#ga2b5f7c3330cda7deb43afb23fd15f471"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="MATINV"><param name="Local" value="group__uves__physmod__cstacen.html#ga42a3691025750c317d1f147208f826f0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="ERFCC"><param name="Local" value="group__uves__physmod__cstacen.html#ga73fbc6b725a426956499af4d5518bff4"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="GAUSFU"><param name="Local" value="group__uves__physmod__cstacen.html#ga46739f4ebfffea22934280cd5c636e32"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="GAUSDE"><param name="Local" value="group__uves__physmod__cstacen.html#ga2352edbfb6cd74a452f468faf13703ea"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="FCHIS"><param name="Local" value="group__uves__physmod__cstacen.html#ga55ab1000c00c0f198531b3273e792c80"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="LSQFIT"><param name="Local" value="group__uves__physmod__cstacen.html#ga192772b744a088e5d80b13b4ca533806"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="Crhox"><param name="Local" value="group__uves__physmod__cstacen.html#gad923251bceb0400556ebdd0b0638ea4c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="Crhoy"><param name="Local" value="group__uves__physmod__cstacen.html#ga582a2d79c11dcf90fa7628a8e802d641"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="Cserch"><param name="Local" value="group__uves__physmod__cstacen.html#ga8baeae8b13dcba7884349e7a061fe1fc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_cstacen"><param name="Local" value="group__uves__physmod__cstacen.html#gad12404aed36494433fc265f4e8c93832"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: UVES Physical Model"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_calmap"><param name="Local" value="group__uves__physmod.html#ga3a452c20f5d130b0184d0f61962e83f9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_center_gauss"><param name="Local" value="group__uves__physmod.html#ga97331f20ee8993be30fa7a155a463fb2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_chop_otab"><param name="Local" value="group__uves__physmod.html#ga1aaabdd9a0e0412928a2345f63184f08"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_get_physmod_offset"><param name="Local" value="group__uves__physmod.html#gaed3ec9e2f866d475ff9917cf6f06a6d3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_physmod_offset"><param name="Local" value="group__uves__physmod.html#ga49d4e127229f5edcf7ec50b54b0a2f1c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_create_table"><param name="Local" value="group__uves__physmod.html#ga00e5ea8f673b3dfd86ba0d7982e0d793"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_msrawxy"><param name="Local" value="group__uves__physmod.html#ga936ea83d8565240521a8fe946ac6c9ae"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_necregr"><param name="Local" value="group__uves__physmod.html#gac557292b00ae3782ce6efa3a4e0290f3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_plotmod"><param name="Local" value="group__uves__physmod.html#ga7ac0845d816025a744319be6528c714b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_qc1pmtbl"><param name="Local" value="group__uves__physmod.html#ga7ba94584b6a36bc5d55e397b5ef6af8c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_regress_echelle"><param name="Local" value="group__uves__physmod.html#ga6cbdcd8eb1c7f25749c51874d79e4e83"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_align_tables"><param name="Local" value="group__uves__physmod.html#gab2645fc74b7cddacfe9b1ac960608a4e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_align_table_column"><param name="Local" value="group__uves__physmod.html#gac2394f974852f00f7fd8d77233a18fe4"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_physmod_stability_check"><param name="Local" value="group__uves__physmod.html#ga107c8a7619bdaf3c4219f05060192bd2"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Substep: UVES physical model utilities"><param name="Local" value="group__uves__physmod__utils.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Plot CPL tables/images"><param name="Local" value="group__uves__plot.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Property Lists"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="_uves_propertylist_"><param name="Local" value="struct__uves__propertylist__.html"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="_uves_regexp_"><param name="Local" value="struct__uves__regexp__.html"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist"><param name="Local" value="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621"><param name="ImageNumber" value="11"></OBJECT>
-      <UL>
-      </UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_new"><param name="Local" value="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_duplicate"><param name="Local" value="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_delete"><param name="Local" value="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_get_size"><param name="Local" value="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_is_empty"><param name="Local" value="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_get_type"><param name="Local" value="group__uves__propertylist.html#ga2ee26ca559adc30a12a3e4dcf003b52d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_contains"><param name="Local" value="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="my_uves_propertylist_contains"><param name="Local" value="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_set_comment"><param name="Local" value="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_set_char"><param name="Local" value="group__uves__propertylist.html#ga3848313f04afa3606dbbc560746f5025"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_set_bool"><param name="Local" value="group__uves__propertylist.html#ga1b920e8880391034ba16248071aaeda5"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_set_int"><param name="Local" value="group__uves__propertylist.html#gaef59cbe7747d8778af96087b23c8d682"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_set_long"><param name="Local" value="group__uves__propertylist.html#ga188d6bd12ef15a5c4aff8713339a443a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_set_float"><param name="Local" value="group__uves__propertylist.html#gadf1317627ff51b6cbcff9aec380fd51a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_set_double"><param name="Local" value="group__uves__propertylist.html#ga5e507cfe564326f9e5474c5773d6dd24"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_set_string"><param name="Local" value="group__uves__propertylist.html#gabbc55af6700c2d1d28f82131b56a3b7b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_get_const"><param name="Local" value="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_get_comment"><param name="Local" value="group__uves__propertylist.html#ga648f33387b636d2fea612aafbac02d18"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_get_char"><param name="Local" value="group__uves__propertylist.html#gae9273c454206f9c51055aa1206183d37"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_get_bool"><param name="Local" value="group__uves__propertylist.html#ga1915e9a72e6f0580cadb0736ea43d6dc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_get_int"><param name="Local" value="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_get_long"><param name="Local" value="group__uves__propertylist.html#ga62f1a977f79c807936a3ff394ca6280e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_get_float"><param name="Local" value="group__uves__propertylist.html#ga71f81602d966afe5b8efb2d4a962ba8b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_get_double"><param name="Local" value="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_get_string"><param name="Local" value="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_char"><param name="Local" value="group__uves__propertylist.html#gab67312fdd5ec2579db318e2b73f83793"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_bool"><param name="Local" value="group__uves__propertylist.html#ga2dfd30cad698338aa24bed3807772bcb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_int"><param name="Local" value="group__uves__propertylist.html#gaf4317df2406162e173e8c78274650da4"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_has"><param name="Local" value="group__uves__propertylist.html#gafd6db82a3ab2a060af6cc2a661bbc032"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_long"><param name="Local" value="group__uves__propertylist.html#gad1eced1cf3c10a77997c02f20ced0922"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_float"><param name="Local" value="group__uves__propertylist.html#gafa987cf50ee6314a8eddf4e4c284cdd0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_double"><param name="Local" value="group__uves__propertylist.html#ga3541bde9170abf5eb52c6351ae03da31"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_string"><param name="Local" value="group__uves__propertylist.html#gadae4a02d6cc8db83abeb9a8b670ade81"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_after_char"><param name="Local" value="group__uves__propertylist.html#ga6f4d1c1ff4e0c8fc7bb2edb551cba11e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_after_bool"><param name="Local" value="group__uves__propertylist.html#gafeb4307649f4b8edc101e73c21ec7392"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_after_int"><param name="Local" value="group__uves__propertylist.html#ga5c0d4cd29cecab431fd25b85472c3897"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_after_long"><param name="Local" value="group__uves__propertylist.html#ga05a5bb534ed7284bb107c3abb3edfa34"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_after_float"><param name="Local" value="group__uves__propertylist.html#gab2793113a4ef8e13c523c7cad9b03220"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_after_double"><param name="Local" value="group__uves__propertylist.html#ga448733ba77d4c3de7fd109ca7a07ffff"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_insert_after_string"><param name="Local" value="group__uves__propertylist.html#gaa8d7d969eef7675c6ff44ff98e38dfe0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_prepend_char"><param name="Local" value="group__uves__propertylist.html#gaa151bee689fe652596364001379e70fa"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_prepend_bool"><param name="Local" value="group__uves__propertylist.html#ga25074f6f6ba24b2ccbbb91b1aa703da5"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_prepend_int"><param name="Local" value="group__uves__propertylist.html#ga0133703baaa20b62bc57f9125ff105e0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_prepend_long"><param name="Local" value="group__uves__propertylist.html#gab8a9b7c5adf6a7c280a67dfb52693ad9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_prepend_float"><param name="Local" value="group__uves__propertylist.html#ga47d49f4e59167222901c218d8dd02105"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_prepend_double"><param name="Local" value="group__uves__propertylist.html#gaa5dab235d01e40a8e3721eaa8bc5a38d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_prepend_string"><param name="Local" value="group__uves__propertylist.html#gadae05c6be2055c187a4a0ac66da762e0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_append_c_char"><param name="Local" value="group__uves__propertylist.html#ga64519bda6f595f3ef9de641b5f37c9e1"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_append_c_bool"><param name="Local" value="group__uves__propertylist.html#ga40e676ee81b51d67da6ce7cba7c71b50"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_append_c_int"><param name="Local" value="group__uves__propertylist.html#gaad79e5cdd03fa3c809205ca63c8951b9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_append_c_long"><param name="Local" value="group__uves__propertylist.html#gaa03d7d474068a0724398a8aef019c953"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_append_c_float"><param name="Local" value="group__uves__propertylist.html#ga31238b65a9fdb7e3db3d1d0dcf6b6bbe"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_append_c_double"><param name="Local" value="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_append_c_string"><param name="Local" value="group__uves__propertylist.html#ga39fee1a93e3baa0085017d4870144d7c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_append"><param name="Local" value="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_erase"><param name="Local" value="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_erase_regexp"><param name="Local" value="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_empty"><param name="Local" value="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_update_char"><param name="Local" value="group__uves__propertylist.html#ga810374cc06f2343166ed49fa1be9f7cb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_update_bool"><param name="Local" value="group__uves__propertylist.html#ga843649fce9e26744ba7be376354d9c39"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_update_int"><param name="Local" value="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_update_long"><param name="Local" value="group__uves__propertylist.html#ga8108bd5d80f387c4e65d80f38373de6e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_update_float"><param name="Local" value="group__uves__propertylist.html#ga3dfc4fa6ae6687892c7cf6ef73f41ef3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_update_double"><param name="Local" value="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_update_string"><param name="Local" value="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_copy_property"><param name="Local" value="group__uves__propertylist.html#ga498f10da2c5cd157cd004ce3e207ff6c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_copy_property_regexp"><param name="Local" value="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_load"><param name="Local" value="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_propertylist_load_regexp"><param name="Local" value="group__uves__propertylist.html#ga795683c7baa3ddfc26959339e90f8e6d"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Interface for reading/writing QC LOG keywords."><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_paf_print_header"><param name="Local" value="group__uves__qclog.html#ga18caeeaa4c1ba5d2cb2062fab6a56121"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_rootname"><param name="Local" value="group__uves__qclog.html#gaee7a0d27a947e1e0b3e8d0f94b5c3dff"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_paf_name"><param name="Local" value="group__uves__qclog.html#ga315583aa3196da7e1648ec9203837279"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_blank2dot"><param name="Local" value="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_save_paf"><param name="Local" value="group__uves__qclog.html#ga4db1dc810fc251a2bebba5ddf8dc0ddc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_qclog_init"><param name="Local" value="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_qclog_add_int"><param name="Local" value="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_qclog_add_bool"><param name="Local" value="group__uves__qclog.html#ga13ef561d5d2f87bb90450c21ffcf221e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_qclog_add_float"><param name="Local" value="group__uves__qclog.html#ga9b27f428bd465c6b4db422a793067e67"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_qclog_add_double"><param name="Local" value="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_qclog_add_string"><param name="Local" value="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_qclog_delete"><param name="Local" value="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pfits_put_qc"><param name="Local" value="group__uves__qclog.html#gaed8104b6319a79c1e9513a9aaf140a65"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_qclog_add_sci"><param name="Local" value="group__uves__qclog.html#gaf6a3fc6cf06a17550bd0320603287ace"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_qclog_add_common_wave"><param name="Local" value="group__uves__qclog.html#ga66d1b116b78a6302ce5a2bb2d00c5d41"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_qclog_get_qc_name"><param name="Local" value="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_qclog_dump_common"><param name="Local" value="group__uves__qclog.html#gadb993bcb25e5b1537f17d17c2fb27684"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_qclog_dump_common_wave"><param name="Local" value="group__uves__qclog.html#ga2e1dbad185cd0eeceb6512e9c9d865fb"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Substep: Rebinning"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="integrate_flux"><param name="Local" value="group__uves__rebin.html#ga9746917b2a07e3ede927b28ad927d6ca"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="integrate_noise"><param name="Local" value="group__uves__rebin.html#ga0f756f87f2bfbf7797c348ae30d77494"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_rebin_define_parameters"><param name="Local" value="group__uves__rebin.html#gad96c455875e2415225b27a3280516c0c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_rebin"><param name="Local" value="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: Reduction Chain"><param name="Local" value="group__uves__redchain.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Substep: Reduce"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="extract_ff_rebin_merge"><param name="Local" value="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="subtract_sky"><param name="Local" value="group__uves__reduce.html#gad5574e8fead13bd32bd46eb60ca091ac"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="subtract_sky_row"><param name="Local" value="group__uves__reduce.html#ga26fe47b7ce4f084c5833056dcda44fb5"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="get_offset"><param name="Local" value="group__uves__reduce.html#gad6aedc87f04001c793180df5b7edac16"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_blaze_ratio"><param name="Local" value="group__uves__reduce.html#ga14f04fabe88e704a3e9fd81e666ed237"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_reduce_define_parameters"><param name="Local" value="group__uves__reduce.html#gaf0fe2418683acd1504f0c2c90c9c417a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_reduce"><param name="Local" value="group__uves__reduce.html#gad5308bc6e13c7e02e134e6f0ce6be722"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="interpolate_wave"><param name="Local" value="group__uves__reduce.html#gacf021d0b42c1b02d38ecbff5f3353f54"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_normalize_spectrum"><param name="Local" value="group__uves__reduce.html#ga1867e835a6183494d513613729836205"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Master flat reduction"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_mflat_qclog"><param name="Local" value="group__uves__reduce__mflat.html#ga02a8ec0f31954bdcb88ca7b73f06babb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_msflats"><param name="Local" value="group__uves__reduce__mflat.html#gad7e37298e7f0b43a3ce3edff25ac4e45"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_mflat_one"><param name="Local" value="group__uves__reduce__mflat.html#ga2598ddc0ef2df5c66cd4710829a02353"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_mflat_at_ypos"><param name="Local" value="group__uves__reduce__mflat.html#ga429b19c63b9710f0d332a2f39ddac05a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_reduce_mflat"><param name="Local" value="group__uves__reduce__mflat.html#ga8d36f48466a867a45e7653f484414ee6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_mflat_define_parameters_body"><param name="Local" value="group__uves__reduce__mflat.html#ga7d38d6807a0067cc5e8dd44a44ebaa07"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_mflat_process_chip"><param name="Local" value="group__uves__reduce__mflat.html#ga28f40f90cc7f91b1e2ef317c74c73fa2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_mflat_exe_body"><param name="Local" value="group__uves__reduce__mflat.html#ga1bae4e786a7fc24b0061ae293112f5ae"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Master flat reduction"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_reduce_mflat_combine"><param name="Local" value="group__uves__reduce__mflat__combine.html#ga2b69a8d67f29f1794ee4efe7bbbcb699"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_mflat_combine_define_parameters_body"><param name="Local" value="group__uves__reduce__mflat__combine.html#ga74ca4174a5bba5f066a627eddc5d5d9c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_mflat_combine_exe_body"><param name="Local" value="group__uves__reduce__mflat__combine.html#ga7c98495b1b6ad337e267c3fd44d12c4b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_combine_flats"><param name="Local" value="group__uves__reduce__mflat__combine.html#gabd0a1d5c0c76fcafb1ff0d3fb7aa9249"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Remove Cosmic Rays single (uves_remove_crh_single)"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_remove_crh_single"><param name="Local" value="group__uves__remove__crh__single.html#ga7e6109abce4aa245c65f9cf39e1c8c8a"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: Response"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_response_efficiency"><param name="Local" value="group__uves__response.html#ga85c178e57e3a92c7ce1cb47d46e84188"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_calculate_response"><param name="Local" value="group__uves__response.html#ga0e3832a791528896648761e02fac2b9c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_align"><param name="Local" value="group__uves__response.html#ga9efc933848e1bebb4766a0d10a8e9c93"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: Science Reduction"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="scired_qclog"><param name="Local" value="group__uves__scired.html#ga699b1c68f1d91a6b1ca600921c41d21a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="tflat_qclog"><param name="Local" value="group__uves__scired.html#ga32377202a0bcb66b410988f7c6cf51fa"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_scired_define_parameters_body"><param name="Local" value="group__uves__scired.html#ga1c491907022557327d0a5bad5281965f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="set_all_raw_none"><param name="Local" value="group__uves__scired.html#gae1ef37fb82ed9624dcb990d250c927c9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_scired_process_chip"><param name="Local" value="group__uves__scired.html#ga6a10de9dbd4e09a1d341a778df5ac85e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_reduce_scired"><param name="Local" value="group__uves__scired.html#ga0780489bfd35e6728e0d1b9c7036e119"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: TFlat Reduction"><param name="Local" value="group__uves__tflat.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Get date/time, possibly in ISO8601 format"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_datetime_iso8601"><param name="Local" value="group__uves__time.html#ga1db9a9647c947cd72abe846a12d483fc"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Utility functions"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="REQ_CPL_MAJOR"><param name="Local" value="group__uves__utils.html#gaa6f08c08604f669d5248a50db05095c6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_cosrout"><param name="Local" value="group__uves__utils.html#gaea6246a88791de8614f3af35802dc644"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_gen_lowpass"><param name="Local" value="group__uves__utils.html#gab6d9ffe3669b75518bf7108681c52fa6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_rcosmic"><param name="Local" value="group__uves__utils.html#gaaed2a3318adb62b1725bc28273757e58"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_ksigma_vector"><param name="Local" value="group__uves__utils.html#ga8927e9c74fcd2ff11122490e4f42fe90"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_ksigma_stack"><param name="Local" value="group__uves__utils.html#gad61bad9fe3d7614ebd9de472f600c6eb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_wave_map"><param name="Local" value="group__uves__utils.html#gae7a22d7bd34d61c32515d570e512e189"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_flat_create_normalized_master2"><param name="Local" value="group__uves__utils.html#gaabfabe05e25ffc4af017f4e29b22a56e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_flat_create_normalized_master"><param name="Local" value="group__uves__utils.html#gaa6e2f1554b5345868a2f71604a42409b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_parameterlist_duplicate"><param name="Local" value="group__uves__utils.html#ga003a5b56bc7da0142638881e47006716"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_string_toupper"><param name="Local" value="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_string_tolower"><param name="Local" value="group__uves__utils.html#gaaa9ef34eb0091a167b88ed0cf17b758c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_frameset_extract"><param name="Local" value="group__uves__utils.html#ga5d332ad2d1f28993e9c2db3154b2236b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_pow_int"><param name="Local" value="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_version"><param name="Local" value="group__uves__utils.html#ga576094df329c3bb87a80a251007400a6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_version_binary"><param name="Local" value="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_get_license"><param name="Local" value="group__uves__utils.html#gae14eb4ed643b704af7b942f55eac9575"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_end"><param name="Local" value="group__uves__utils.html#gab22cde2fd3c6fcee8f63c8b27431f0be"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_initialize"><param name="Local" value="group__uves__utils.html#ga91713592f345a0d1a44e37a50202d6ed"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_average_images"><param name="Local" value="group__uves__utils.html#ga1f407a71fc1fd3d5d0d83fdc141669eb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_initialize_image_header"><param name="Local" value="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_define_noise"><param name="Local" value="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_subtract_bias"><param name="Local" value="group__uves__utils.html#gaab60ba58a3dc620bf79a91ebde2751b3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_subtract_dark"><param name="Local" value="group__uves__utils.html#gaa065c666cf2f7a17a0d20f42e742a793"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_absolute_order"><param name="Local" value="group__uves__utils.html#ga579bc295bb9d73af0b052f37b576f552"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_average_reject"><param name="Local" value="group__uves__utils.html#ga8ec4a0e22ac62eaed019f740acf6810d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_regression_1d"><param name="Local" value="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_regression_2d"><param name="Local" value="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_regression_2d_autodegree"><param name="Local" value="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_remove_string_prefix"><param name="Local" value="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_gaussrand"><param name="Local" value="group__uves__utils.html#ga81ac7cec9a26af57d8e43728c004a072"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_spline_hermite_table"><param name="Local" value="group__uves__utils.html#ga182ae551020b196be2e177c09f16b220"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_spline_hermite"><param name="Local" value="group__uves__utils.html#gaa3c7eb6c7f122eb98af78d5cab6cb122"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_spline_cubic"><param name="Local" value="group__uves__utils.html#gac567d2b17fd517da5e872f292c203339"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_table_is_sorted_double"><param name="Local" value="group__uves__utils.html#gafe2dc57751c934dd70ebc93c0e25ee18"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_ordertable_traces_new"><param name="Local" value="group__uves__utils.html#ga5498ccadef9be3eee6cfacfac75c7478"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_ordertable_traces_add"><param name="Local" value="group__uves__utils.html#gab4d35d91d7acd120872d427842b13942"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_tablename_remove_units"><param name="Local" value="group__uves__utils.html#ga7734a51460651fa363eacdf284986447"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_tablenames_unify_units"><param name="Local" value="group__uves__utils.html#ga613ac59edcddc7ba24d4bf6d5a563c35"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_table_remove_units"><param name="Local" value="group__uves__utils.html#ga7d2ec6462cf581bf7172368747e5f9d6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_table_unify_units"><param name="Local" value="group__uves__utils.html#ga42288426fcfd847780e7f412756c55db"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="fmoffa_i"><param name="Local" value="group__uves__utils.html#ga6ec891ebf5e364519c678c11600a35e0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="fmoffa_c"><param name="Local" value="group__uves__utils.html#gab2caa5d2f377b40374ac88e708f739b7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_moffat"><param name="Local" value="group__uves__utils.html#ga32f63d655b7a15cb65c59f6ed9153a69"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_moffat_derivative"><param name="Local" value="group__uves__utils.html#ga3268b9eca855e33e38a5bd58c5d512c0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_gauss"><param name="Local" value="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_gauss_derivative"><param name="Local" value="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_gauss_linear"><param name="Local" value="group__uves__utils.html#ga9f3e7e9d99f1b9785c335cc1a8ecb49f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_gauss_linear_derivative"><param name="Local" value="group__uves__utils.html#ga98837a7122178c9d18c99174bfd53d9b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_create_image"><param name="Local" value="group__uves__utils.html#ga7146e7bab312652fdb0a9e88e838ef8d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_imagelist_get_clean_mean_levels"><param name="Local" value="group__uves__utils.html#ga9a60246b0b018cbee0593ced9361484f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_imagelist_subtract_values"><param name="Local" value="group__uves__utils.html#ga4cbaa270b775e7460b66e02f5b204203"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_image_mflat_detect_blemishes"><param name="Local" value="group__uves__utils.html#gaa4b717df379e29d4c74c066a528e37b2"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Utility functions (low level)"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="filter_median"><param name="Local" value="group__uves__utils__cpl.html#gafc2ebb8a19b1e10153319a018a743c9e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_find_property_const"><param name="Local" value="group__uves__utils__cpl.html#gab27457a252d480095e9f78b904becdc6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_filter_image_average"><param name="Local" value="group__uves__utils__cpl.html#ga61202bb11e2387a91f36248674241b98"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_filter_image_median"><param name="Local" value="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utils_get_kth_double"><param name="Local" value="group__uves__utils__cpl.html#gaab92b190da2ce4979277ec4f0a09cc5b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_tools_get_median"><param name="Local" value="group__uves__utils__cpl.html#ga94492b7e724286022f3bc946952dc79d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_fit_gaussian_2d_image"><param name="Local" value="group__uves__utils__cpl.html#ga925c077e4720e3357196ef4161ffea53"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Polynomials"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="_polynomial"><param name="Local" value="struct__polynomial.html"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_new"><param name="Local" value="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_new_zero"><param name="Local" value="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_delete"><param name="Local" value="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_delete_const"><param name="Local" value="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_get_degree"><param name="Local" value="group__uves__utils__polynomial.html#ga56987ebb6bb09ab3f7477783627cba7b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_duplicate"><param name="Local" value="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_convert_to_table"><param name="Local" value="group__uves__utils__polynomial.html#ga63ecda6c71765c319dc2d4141222bb42"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_convert_from_table"><param name="Local" value="group__uves__utils__polynomial.html#ga135ba9a062f18392bb33b678c9dedaa4"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_get_dimension"><param name="Local" value="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_dump"><param name="Local" value="group__uves__utils__polynomial.html#ga0879179dcb0100de2d26f8de459d5838"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_rescale"><param name="Local" value="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_shift"><param name="Local" value="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_evaluate_1d"><param name="Local" value="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_evaluate_2d"><param name="Local" value="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_solve_1d"><param name="Local" value="group__uves__utils__polynomial.html#gadc218f4dd3fa80d91949611419b75abb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_solve_2d"><param name="Local" value="group__uves__utils__polynomial.html#gacfd8db401e1250a53b8877ae118cce43"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_derivative_2d"><param name="Local" value="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_derivative_1d"><param name="Local" value="group__uves__utils__polynomial.html#ga182b594d06b39bdac65d27bca0104a13"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_add_2d"><param name="Local" value="group__uves__utils__polynomial.html#gab234ee00fd4ba72b05a50adb61947306"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="derivative_cpl_polynomial"><param name="Local" value="group__uves__utils__polynomial.html#ga3308f7853a8f3e62d777e814f411f9c0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_derivative"><param name="Local" value="group__uves__utils__polynomial.html#ga1d4833534bce8b70f0311a652961b806"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_get_coeff_2d"><param name="Local" value="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_get_coeff_1d"><param name="Local" value="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_collapse"><param name="Local" value="group__uves__utils__polynomial.html#gaec68fa3685c9988c384e327268d2d6b9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_fit_1d"><param name="Local" value="group__uves__utils__polynomial.html#ga7ad30cd55f4aac4454029be7ffd3f5b1"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_polynomial_fit_2d"><param name="Local" value="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Utility functions (wrappers)"><param name="Local" value="group__uves__utils__wrappers.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe: Order Position"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="verify_calibration"><param name="Local" value="group__uves__wavecal.html#ga83b2a3f8a025fdbb257ba8b6b6c0687a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="compute_lambda"><param name="Local" value="group__uves__wavecal.html#ga3d2a634d47ecc17a9550bc3169b45108"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="identify_lines"><param name="Local" value="group__uves__wavecal.html#ga32817a71e6f80a75bd2d74e197f41002"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="calibrate_global"><param name="Local" value="group__uves__wavecal.html#ga6441018223f000460da3fe4e29325806"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_wavecal_identify"><param name="Local" value="group__uves__wavecal.html#gaefff8994a1bf3be10c46012cff86ef04"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_wavecal_identify_lines_ppm"><param name="Local" value="group__uves__wavecal.html#gad453e932c1e4d99548688995d4e1000b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="xcenter"><param name="Local" value="group__uves__wavecal.html#ga7b49db5bd97eb1228d45a6d37190cef6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="detect_lines"><param name="Local" value="group__uves__wavecal.html#gabf8091bf00a26cfe084f73ef3cb80a29"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_wavecal_search"><param name="Local" value="group__uves__wavecal.html#ga0baa7a6c85fde5b3e8fe805cf5f4b6c6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_lt_new"><param name="Local" value="group__uves__wavecal.html#ga50d8473c5bddc7dec58f539a6026eb49"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_lt_delete"><param name="Local" value="group__uves__wavecal.html#gad74b8d3dab9e9b4d32d0cc2d4bf898be"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_lt_get_table"><param name="Local" value="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_lt_get_disprel"><param name="Local" value="group__uves__wavecal.html#gaa98b57c1a71f64a50a4f4fa83d2d590c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_lt_get_absord"><param name="Local" value="group__uves__wavecal.html#ga28897452a40eb7c7a957c0761dd21842"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_lt_get_firstabs"><param name="Local" value="group__uves__wavecal.html#gaabce897a294645e87763f7f5ecdbcd30"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_lt_get_lastabs"><param name="Local" value="group__uves__wavecal.html#gaca1246cec58a8bb8f218b993428985bc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_wavecal_find_nearest"><param name="Local" value="group__uves__wavecal.html#gae0d2cfe5965b9e1f8655d1265b6bdde3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_delete_bad_lines"><param name="Local" value="group__uves__wavecal.html#ga2f7ee53133e419d19f10cbc231e8054a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_draw_lines"><param name="Local" value="group__uves__wavecal.html#ga274e895ff3513060affa6b987a13842a"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe to unpack frames"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="cpl_plugin_get_info"><param name="Local" value="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_utl_unpack_create"><param name="Local" value="group__flames__utl__unpack.html#ga3c9c784ff968ed213e8ec7cfe1cab44e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_utl_unpack_exec"><param name="Local" value="group__flames__utl__unpack.html#gacda5a373304d9563500a4340f7d2cdcb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_utl_unpack_destroy"><param name="Local" value="group__flames__utl__unpack.html#ga2c35d6967a972f242bdb3b1fd3e957df"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="flames_utl_unpack"><param name="Local" value="group__flames__utl__unpack.html#ga9fff417a67b958ecdc54ebc0424bb691"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="General plugin tests"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="main"><param name="Local" value="group__recipe__main.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe to do operations on an image"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="cpl_plugin_get_info"><param name="Local" value="group__uves__utl__ima__arith.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_ima_arith_create"><param name="Local" value="group__uves__utl__ima__arith.html#ga954092253234f48324af709c2d7ea7d5"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_ima_arith_exec"><param name="Local" value="group__uves__utl__ima__arith.html#gadb1e3d51a74afcdbff10fef274707c8f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_ima_arith_destroy"><param name="Local" value="group__uves__utl__ima__arith.html#gaf349b59d28b57f043bf44c361370bb46"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_ima_arith"><param name="Local" value="group__uves__utl__ima__arith.html#ga381a7f807d484e3b74ea7d9bacdcb820"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe to remove CRHs from an image"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="cpl_plugin_get_info"><param name="Local" value="group__uves__utl__physmod.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_physmod_create"><param name="Local" value="group__uves__utl__physmod.html#ga7feecac1261438a6dc3b68924fbce98f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_physmod_exec"><param name="Local" value="group__uves__utl__physmod.html#ga287c8ed12ad70e2683f833c80296b6d5"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_physmod_destroy"><param name="Local" value="group__uves__utl__physmod.html#ga5c8210b4d7ab88b21125bd696c51e6c8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_physmod"><param name="Local" value="group__uves__utl__physmod.html#ga3e4da7ad21ef98fc09d1302fbd3d12fd"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe to remove CRHs from an image"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="cpl_plugin_get_info"><param name="Local" value="group__uves__utl__rcosmic.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_rcosmic_create"><param name="Local" value="group__uves__utl__rcosmic.html#ga940ab9e0385afa1268c588e9aa836451"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_rcosmic_exec"><param name="Local" value="group__uves__utl__rcosmic.html#gaa68234d2c406b6364833a3ad4149527c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_rcosmic_destroy"><param name="Local" value="group__uves__utl__rcosmic.html#ga49eb605c1cc3b32055a86debc26c0bf8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_rcosmic"><param name="Local" value="group__uves__utl__rcosmic.html#ga4cd36a4feb367778454485205928db66"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe to remove CRHs from an image"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="cpl_plugin_get_info"><param name="Local" value="group__uves__utl__remove__crh__single.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_remove_crh_single_create"><param name="Local" value="group__uves__utl__remove__crh__single.html#ga05031cc6c2fa53d8083fd51ee62ac2a9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_remove_crh_single_exec"><param name="Local" value="group__uves__utl__remove__crh__single.html#ga8e95dd4390ec7d77c17a8f649f7758ff"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_remove_crh_single_destroy"><param name="Local" value="group__uves__utl__remove__crh__single.html#ga824f6d04d13d57ea573e9cd21ca74900"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_utl_remove_crh_single"><param name="Local" value="group__uves__utl__remove__crh__single.html#gab497c9910c4b906bed52ccc1d3ad9d79"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Functions for calibrations"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_pfits_get_dit"><param name="Local" value="group__irplib__calib.html#gaccb4324b15367dbe7d2aa57757b400a3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_pfits_get_exp_time"><param name="Local" value="group__irplib__calib.html#ga1940301f70f9920a94298e7aa9db4701"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_get_clean_mean_window"><param name="Local" value="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_compute_gain"><param name="Local" value="group__irplib__calib.html#ga98c9970b59c6b7919f531829f6f5dab9"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_compute_linearity"><param name="Local" value="group__irplib__calib.html#gadefee4e970a548c25bcbb42797778a2a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_detlin_correct"><param name="Local" value="group__irplib__calib.html#gae9b762625dbd2c31c1b59cfd8c15fd90"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_flat_dark_bpm_calib"><param name="Local" value="group__irplib__calib.html#gae650a3e54e1aff329b1b5ee356bcdbde"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_imagelist_get_clean_mean_levels"><param name="Local" value="group__irplib__calib.html#ga60d4d26793b0162783e4f39e7d180e9b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_imagelist_subtract_values"><param name="Local" value="group__irplib__calib.html#gaaf8bb5c15a5e72ea67627d5220f9e01b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_vector_ksigma"><param name="Local" value="group__irplib__calib.html#gacf0c80a14e58f7529e9589b4c0c7ace8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_imagelist_ksigma_stack"><param name="Local" value="group__irplib__calib.html#ga28480f72b7f607b47769df0a8ada7333"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_mkmaster_mean"><param name="Local" value="group__irplib__calib.html#gae11ebd9b30a6c781265ba2e5af87722b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_mkmaster_median"><param name="Local" value="group__irplib__calib.html#ga31157521720077a762a43644a503bbf2"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_head_get_exptime"><param name="Local" value="group__irplib__calib.html#ga6904da04154755c76c191447714297a3"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_head_set_exptime"><param name="Local" value="group__irplib__calib.html#ga06aba7b4cf8b84fb21acef626c8c7196"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Functions for accessing catalogues"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_2mass_get_catpars"><param name="Local" value="group__irplib__cat.html#ga8dd2b5e6b7bc4a7ea3f2b275882aa200"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_cat_get_image_limits"><param name="Local" value="group__irplib__cat.html#ga2289fa88ec0498a2930291b1d51a46af"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_2mass_extract"><param name="Local" value="group__irplib__cat.html#ga7fdafd757d33d4096270027912a89cf6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_match_cat_pairs"><param name="Local" value="group__irplib__cat.html#gaf3dbc2180a59e7187674707510205afe"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Distortion correction functions"><param name="Local" value="group__irplib__distortion.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Functions for flatfielding"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_flat_fit_set"><param name="Local" value="group__irplib__flat.html#gaf9bd48348cc91bb66304697b4c7aa58e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_flat_fit_slope_robust"><param name="Local" value="group__irplib__flat.html#ga3e3e3bd45aef34e38758e1f2528d7c91"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Lists of frames with properties."><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_new"><param name="Local" value="group__irplib__framelist.html#ga5b86add048651f73424d2542a04946a0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_delete"><param name="Local" value="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_cast"><param name="Local" value="group__irplib__framelist.html#ga30cbfd003c6e6a6a42e610442f0b1bd1"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_frameset_cast"><param name="Local" value="group__irplib__framelist.html#gabeedce2770a1bc06c26c0891a41aa174"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_extract"><param name="Local" value="group__irplib__framelist.html#ga86d6746d1c19356417815f7df04c3396"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_extract_regexp"><param name="Local" value="group__irplib__framelist.html#gace77e5ae75183a22a0e5af9dd9018b01"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_get_size"><param name="Local" value="group__irplib__framelist.html#ga2518fce55112b5008cb119a126e593d7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_get"><param name="Local" value="group__irplib__framelist.html#gaba8797bbb8394f5574cd88b2f1984387"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_get_const"><param name="Local" value="group__irplib__framelist.html#ga93d8f903729ea4b6fcb3eca85935716f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_set_propertylist"><param name="Local" value="group__irplib__framelist.html#gada2c2e3f530a6dff763402eefceb5600"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_get_propertylist"><param name="Local" value="group__irplib__framelist.html#gab4858b1e9164f3a6cffcf40270f89032"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_get_propertylist_const"><param name="Local" value="group__irplib__framelist.html#ga7700dadcf17db5b86409e6cef233af4c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_load_propertylist"><param name="Local" value="group__irplib__framelist.html#ga6ce5701e84915514975d09e0100c6005"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_load_propertylist_all"><param name="Local" value="group__irplib__framelist.html#gaf9204681e0b6aa2d952c974dcbd8729d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_set_tag_all"><param name="Local" value="group__irplib__framelist.html#gab11bb60e44dea926cd50ee80c7fbbd14"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_set"><param name="Local" value="group__irplib__framelist.html#ga37e730f5627b4a0c7a81014f62421879"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_erase"><param name="Local" value="group__irplib__framelist.html#gac66ea3ad4fc98c171f8b840229fe54ce"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_unset"><param name="Local" value="group__irplib__framelist.html#ga771f14f97f80a9bd7176d323999c9bce"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_empty"><param name="Local" value="group__irplib__framelist.html#ga900ea254d9b2a2e4e3957360bbae4deb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_framelist_contains"><param name="Local" value="group__irplib__framelist.html#gafed15e9e259ebad923b710f5eb0196ac"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_imagelist_load_framelist"><param name="Local" value="group__irplib__framelist.html#ga0ff6c5e3b778c607544ca04ca3fb9e94"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Odd/Even column effect correction"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_oddeven_monitor"><param name="Local" value="group__irplib__oddeven.html#gade0423dfae726cc1ffec66a24e376505"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_oddeven_correct"><param name="Local" value="group__irplib__oddeven.html#ga7f7dafc1436a0aa2617048e1ada84e95"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Irplib plugin functionality"><param name="Local" value="group__irplib__plugin.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="1D-Polynomial roots"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_polynomial_eval_2_max"><param name="Local" value="group__irplib__polynomial.html#gac5c97217542c30f329b225a9c833ea3b"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_polynomial_eval_3_max"><param name="Local" value="group__irplib__polynomial.html#ga8524e951a5bd6930a4336a66bdce4a3d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_polynomial_add"><param name="Local" value="group__irplib__polynomial.html#ga90e13f05c9addc584f154279681d1853"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_polynomial_subtract"><param name="Local" value="group__irplib__polynomial.html#ga0e83ae3c9e7accb70fdfe1aca030e084"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_polynomial_multiply_scalar"><param name="Local" value="group__irplib__polynomial.html#ga55c030413e6ef112753b280ad5213786"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_polynomial_solve_1d_all"><param name="Local" value="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Point pattern matching"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_ppm_engine"><param name="Local" value="group__irplib__ppm.html#ga9b49569fb0bd55977b533407c1ad956d"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Functions for slit position"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_slitpos_analysis"><param name="Local" value="group__irplib__slitpos.html#ga632b21eccf3d4bb48426cdd23f321cba"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Functions for LSS spectra"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_spectrum_find_brightest"><param name="Local" value="group__irplib__spectrum.html#ga9ac928ba9a48e864b56e921c970638c0"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_spectrum_detect_peaks"><param name="Local" value="group__irplib__spectrum.html#ga1885902c29d7383674c85e2c3d935961"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Functions for standard stars"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_stdstar_write_catalogs"><param name="Local" value="group__irplib__stdstar.html#gac18c92be3d3c96ba57804b074a2abb7d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_stdstar_load_catalog"><param name="Local" value="group__irplib__stdstar.html#ga1690bd84c24e905e384b8f725bf7aff1"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_stdstar_check_columns_exist"><param name="Local" value="group__irplib__stdstar.html#ga2dbe2031bf6d669778dca42f6c343efc"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_stdstar_select_stars_dist"><param name="Local" value="group__irplib__stdstar.html#ga080e06303f3f83a91959ac01381dc4e8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_stdstar_select_stars_mag"><param name="Local" value="group__irplib__stdstar.html#ga28316d8f0619bdbd0040b1f56799e7ab"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_stdstar_find_closest"><param name="Local" value="group__irplib__stdstar.html#ga36b4c90fd548dd0c00afe97b17a558e5"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_stdstar_find_star"><param name="Local" value="group__irplib__stdstar.html#ga4d69ae957de04b1769ac225f12834027"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_stdstar_get_conversion"><param name="Local" value="group__irplib__stdstar.html#ga93b46d8ac857a0d0fdc781b56a91a8ba"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_stdstar_get_mag_zero"><param name="Local" value="group__irplib__stdstar.html#ga6e68e6a9d0bbb41ef717234b9f289dab"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_stdstar_get_sed"><param name="Local" value="group__irplib__stdstar.html#gabbad67ff18cb901914caa9e864969dea"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Functions to compute the Strehl"><param name="Local" value="group__irplib__strehl.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Miscellaneous Utilities"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_errorstate_dump_warning"><param name="Local" value="group__irplib__utils.html#ga6b29dac884b62ab52f43dd670d4d8386"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_errorstate_dump_info"><param name="Local" value="group__irplib__utils.html#ga901ff52a1c9dcdfcf2d2632d31064bdb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_errorstate_dump_debug"><param name="Local" value="group__irplib__utils.html#ga26c6209e5df98978e2922a15b47b47d1"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_dfs_save_image"><param name="Local" value="group__irplib__utils.html#ga346842d722834a2e6221ff2d86314b7e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_dfs_save_propertylist"><param name="Local" value="group__irplib__utils.html#ga4dc12f321e7aeb5e67ff19f815bfd7b7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_dfs_save_imagelist"><param name="Local" value="group__irplib__utils.html#ga66f7adc9e165b4e934e3d57a700f55c1"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_dfs_save_table"><param name="Local" value="group__irplib__utils.html#ga62a91f8630af11164547c168660b2ade"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_dfs_save_image_"><param name="Local" value="group__irplib__utils.html#ga1fd7c2f4c00014049b0bf4bf6814b451"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_dfs_product_save"><param name="Local" value="group__irplib__utils.html#ga4ffea791c01c8a50093294d6dcbddb56"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_image_split"><param name="Local" value="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_dfs_table_convert"><param name="Local" value="group__irplib__utils.html#ga3d1a791b5dc870770611c7dbf60d02df"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_table_read_from_frameset"><param name="Local" value="group__irplib__utils.html#ga59a68df1795523d4f7653875bd9fc01d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_reset"><param name="Local" value="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_compare_tags"><param name="Local" value="group__irplib__utils.html#gae13f0d6b24ade506a99ac9c4bb09efde"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_frameset_find_file"><param name="Local" value="group__irplib__utils.html#ga9fe4dca85dee68061114e26fdc72a134"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_frameset_get_first_from_group"><param name="Local" value="group__irplib__utils.html#ga5b20a00f315410b49b1db1dd2417fe68"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_apertures_find_max_flux"><param name="Local" value="group__irplib__utils.html#gac568c70a57ef8610f5fedc9f1943a3a1"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Spectro functionality"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_bivector_count_positive"><param name="Local" value="group__irplib__wavecal.html#ga03d7f038adc7e18e7a9071581fa47a25"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_polynomial_fit_2d_dispersion"><param name="Local" value="group__irplib__wavecal.html#ga2dd3251367e2ee8b8bd5ce080e9f31bb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_polynomial_find_1d_from_correlation"><param name="Local" value="group__irplib__wavecal.html#ga8f49c4927c50a461288e8f19720dff86"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_vector_fill_line_spectrum"><param name="Local" value="group__irplib__wavecal.html#ga1d49cb7f85fc246c8fdf38625c769f7a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_vector_fill_logline_spectrum"><param name="Local" value="group__irplib__wavecal.html#gad22539bf83d1b08d845ed5f618a4009f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_vector_fill_line_spectrum_fast"><param name="Local" value="group__irplib__wavecal.html#ga6a463d7816b4164fdd23a4df2805cc95"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_vector_fill_logline_spectrum_fast"><param name="Local" value="group__irplib__wavecal.html#ga75a85320c74d1088eeaeec97974d793c"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_plot_spectrum_and_model"><param name="Local" value="group__irplib__wavecal.html#ga7bac402a4e2c60f7646f1e655a66833d"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_bivector_find_shift_from_correlation"><param name="Local" value="group__irplib__wavecal.html#ga260740bf1f3fc364b301519eab3249a6"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_polynomial_shift_1d_from_correlation"><param name="Local" value="group__irplib__wavecal.html#gadf93655e2c7c0d5df23e2e3de66d0b56"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_vector_fill_line_spectrum_model"><param name="Local" value="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_erf_antideriv"><param name="Local" value="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_polynomial_find_1d_from_correlation_all"><param name="Local" value="group__irplib__wavecal.html#ga7e782bcb7ec0e638a93dba628916a7a8"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Functions related to WCS"><param name="Local" value="group__irplib__wcs.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Wavelength Cross correlation w. plotting"><param name="Local" value="group__irplib__wlxcorr.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Testing of the IRPLIB framelist object"><param name="Local" value="group__irplib__framelist__test.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Testing of the IRPLIB utilities"><param name="Local" value="group__irplib__plugin__test.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Testing of the IRPLIB utilities"><param name="Local" value="group__irplib__utils__test.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Testing of the CPL Wavelength calibration"><param name="Local" value="group__irplib__wlcalib__test.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Iterate over an image"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="illegal_position"><param name="Local" value="group__uves__extract__iterate.html#ga3233f3e30f36df3f47ddc7b95beaa8a8"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_iterate_new"><param name="Local" value="group__uves__extract__iterate.html#ga8601e16b56ff03ee210eec3684fd5501"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_iterate_delete"><param name="Local" value="group__uves__extract__iterate.html#gabf1b3e568a93017a6a95ae64ae6f13b7"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_iterate_set_first"><param name="Local" value="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_iterate_increment"><param name="Local" value="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_iterate_finished"><param name="Local" value="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="uves_iterate_dump"><param name="Local" value="group__uves__extract__iterate.html#ga7dbbaee29928f76eae48fc6bca0f64f8"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_cal_mkmaster"><param name="Local" value="group__flames__cal__mkmaster.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_cal_orderpos"><param name="Local" value="group__flames__cal__orderpos.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_cal_predict"><param name="Local" value="group__flames__cal__predict.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_cal_prep_sff_ofpos"><param name="Local" value="group__flames__cal__prep__sff__ofpos.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_cal_wavecal"><param name="Local" value="group__flames__cal__wavecal.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_extract"><param name="Local" value="group__flames__extract.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_fillordtab"><param name="Local" value="group__flames__fillordtab.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_mes_slitff_size"><param name="Local" value="group__flames__mes__slitff__size.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_obs_redchain"><param name="Local" value="group__flames__obs__redchain.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_obs_scired"><param name="Local" value="group__flames__obs__scired.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_prepbkg"><param name="Local" value="group__flames__prepbkg.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_prepfibreff"><param name="Local" value="group__flames__prepfibreff.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_prepnorm"><param name="Local" value="group__flames__prepnorm.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_preppa"><param name="Local" value="group__flames__preppa.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Flames_prepslitff"><param name="Local" value="group__flames__prepslitff.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Recipe"><param name="Local" value="group__recipe.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Uves_cal_cd_align"><param name="Local" value="group__uves__cal__cd__align.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Uves_mflat_combine"><param name="Local" value="group__uves__mflat__combine.html"><param name="ImageNumber" value="11"></OBJECT>
-    <UL>
-    </UL>
-  </UL>
-<LI><OBJECT type="text/sitemap"><param name="Name" value="Data Structures"><param name="ImageNumber" value="1"></OBJECT>
-  <UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Data Structures"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="_irplib_hist_"><param name="ImageNumber" value="1"></OBJECT>
-      <UL>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="bins"><param name="Local" value="struct__irplib__hist__.html#a92ee6f204ce98d8289ab4f5e3438c8ec"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="nbins"><param name="Local" value="struct__irplib__hist__.html#a27ec7606b16c4cceb446c59c1e44b570"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="start"><param name="Local" value="struct__irplib__hist__.html#afd8188b47faf858c421527d3393822e0"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="range"><param name="Local" value="struct__irplib__hist__.html#a29b7decd5422d6ec41528ba050f95ab6"><param name="ImageNumber" value="11"></OBJECT>
-      </UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="_polynomial"><param name="ImageNumber" value="1"></OBJECT>
-      <UL>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="pol"><param name="Local" value="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="vec"><param name="Local" value="struct__polynomial.html#a8ebfb08c87b2969c891912c8edee2d6d"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="vec_data"><param name="Local" value="struct__polynomial.html#a687bf02009f6c7446c40c9df2d252051"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="dimension"><param name="Local" value="struct__polynomial.html#aa080f764f2571c41d0057a50bdf40da3"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="shift"><param name="Local" value="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="scale"><param name="Local" value="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601"><param name="ImageNumber" value="11"></OBJECT>
-      </UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="_uves_chip"><param name="ImageNumber" value="1"></OBJECT>
-      <UL>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="whatever"><param name="Local" value="struct__uves__chip.html#a6565a99f7cf043cf1c156e194449351e"><param name="ImageNumber" value="11"></OBJECT>
-      </UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="_uves_deque_"><param name="ImageNumber" value="1"></OBJECT>
-      <UL>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="members"><param name="Local" value="struct__uves__deque__.html#ac21c4e86718521af164a12c154629ed1"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="front"><param name="Local" value="struct__uves__deque__.html#a1a812ba89bda43b36d98f4217cdb11ff"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="size"><param name="Local" value="struct__uves__deque__.html#a7136634cae2126e5a2f9111cd65d2e39"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="back"><param name="Local" value="struct__uves__deque__.html#aadd5ff8ccb74bbce043c8b33c14ebcb2"><param name="ImageNumber" value="11"></OBJECT>
-      </UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="_uves_propertylist_"><param name="ImageNumber" value="1"></OBJECT>
-      <UL>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="properties"><param name="Local" value="struct__uves__propertylist__.html#a0fd4c2141ccd41b592ad4939f9ae5eae"><param name="ImageNumber" value="11"></OBJECT>
-      </UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="_uves_regexp_"><param name="ImageNumber" value="1"></OBJECT>
-      <UL>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="re"><param name="Local" value="struct__uves__regexp__.html#a53470ca9d753fb7878bad1ab00f0ac30"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="invert"><param name="Local" value="struct__uves__regexp__.html#a7da7c2ea1630eaf4014a1d861e5d9423"><param name="ImageNumber" value="11"></OBJECT>
-      </UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="frame"><param name="ImageNumber" value="1"></OBJECT>
-      <UL>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="filename"><param name="Local" value="structframe.html#ad980bcda193e655c5d248e5ded6d29b6"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="is_image"><param name="Local" value="structframe.html#aa09ac3788a7ed28d58f728d56621a5a0"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="image"><param name="Local" value="structframe.html#aaeae206c679cf88d4e6d866879f0a69a"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="type"><param name="Local" value="structframe.html#a75902b4ae8b4889ecba8977cbcb26b1c"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="dtype"><param name="Local" value="structframe.html#a09221ef2a984e16a5ad3c047a6cdd53d"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="image"><param name="Local" value="structframe.html#a7a271367e6cb5346cb299ac4d342c6b6"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="table"><param name="Local" value="structframe.html#a90e5dfe218a02e4604bd0123eb634be8"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="colnames"><param name="Local" value="structframe.html#aef013d2d4d9cd9852fe70d0be0c0ce46"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="maxrow"><param name="Local" value="structframe.html#ac49f205e53415d5443d369967fc6c1e7"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="table"><param name="Local" value="structframe.html#a1aa14c193072ebe72fd67f0c103914e6"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="data"><param name="Local" value="structframe.html#a6c3c7b90af90ae30eb8ab418ff62d482"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="header"><param name="Local" value="structframe.html#aac77b360051f8ffd47b28cc004ad1154"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="need_to_save"><param name="Local" value="structframe.html#ad61fe8520a5f79573af689467715bf24"><param name="ImageNumber" value="11"></OBJECT>
-      </UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_base_spectrum_model"><param name="ImageNumber" value="1"></OBJECT>
-      <UL>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="cost"><param name="Local" value="structirplib__base__spectrum__model.html#a668cdc43cff2481ad35ecd8b63ac0d43"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="xcost"><param name="Local" value="structirplib__base__spectrum__model.html#af9e671d7a5a6b69e544f136818a81805"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="ulines"><param name="Local" value="structirplib__base__spectrum__model.html#aecc86670f5f4a3f46c777ad9a416fab9"><param name="ImageNumber" value="11"></OBJECT>
-      </UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_line_spectrum_model"><param name="ImageNumber" value="1"></OBJECT>
-      <UL>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="cost"><param name="Local" value="structirplib__line__spectrum__model.html#a2238966f3277aeb98e525fb82841bde6"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="xcost"><param name="Local" value="structirplib__line__spectrum__model.html#a49ae0e59df7238d4fb87a7d2853cc5fa"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="ulines"><param name="Local" value="structirplib__line__spectrum__model.html#acd97152ae922127d7d04cc1d90e95250"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="wslit"><param name="Local" value="structirplib__line__spectrum__model.html#a0fb9da0f6301052c059408944d41d495"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="wfwhm"><param name="Local" value="structirplib__line__spectrum__model.html#aa15233a9551f2250947be7dbc3e266a9"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="xtrunc"><param name="Local" value="structirplib__line__spectrum__model.html#ad8b56e19ebc5ad851be35718d98cc529"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="lines"><param name="Local" value="structirplib__line__spectrum__model.html#a061c6a79aabc0b4782102038c8fc01b3"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="linepix"><param name="Local" value="structirplib__line__spectrum__model.html#a07717a9419fd3f382f71b296502cf505"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="erftmp"><param name="Local" value="structirplib__line__spectrum__model.html#a76536023bc7548931d9b15c87d77138b"><param name="ImageNumber" value="11"></OBJECT>
-      </UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="irplib_multimin"><param name="ImageNumber" value="1"></OBJECT>
-      <UL>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="observed"><param name="Local" value="structirplib__multimin.html#a7f280baf6957c0ec55580efc7601a6d2"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="disp1d"><param name="Local" value="structirplib__multimin.html#ad641b00a59c564f65646bda53af3b4f8"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="spectrum"><param name="Local" value="structirplib__multimin.html#a041e833fb689436169dff21ae35bd1a7"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="param"><param name="Local" value="structirplib__multimin.html#a427125cee224c0ba4ef22905d172853a"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="filler"><param name="Local" value="structirplib__multimin.html#aaea200bab9f675264f03117a335544cf"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="vxc"><param name="Local" value="structirplib__multimin.html#acfd631de9652602fbfce823ebe67c57c"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="xc"><param name="Local" value="structirplib__multimin.html#a3677fb65e209fcabb6b5a397f588180b"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="maxxc"><param name="Local" value="structirplib__multimin.html#abb856b4a9c6957fc21484c910a26a322"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="mxc"><param name="Local" value="structirplib__multimin.html#acd5e2b9dd68fd3f33b72d4a484923d0d"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="mdisp"><param name="Local" value="structirplib__multimin.html#ab4e13c3551f2d0a7e8c1735819be5d9c"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="ishift"><param name="Local" value="structirplib__multimin.html#aca888edd94ff6e6689e0358ebeef3574"><param name="ImageNumber" value="11"></OBJECT>
-      </UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="lt_type"><param name="ImageNumber" value="1"></OBJECT>
-      <UL>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="windows"><param name="Local" value="structlt__type.html#af01708c7edac3dd3d95f69db6a3d4d10"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="traces"><param name="Local" value="structlt__type.html#a5506257685971316747b22175257f279"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="table"><param name="Local" value="structlt__type.html#ad3796ff190452772b26c8f10cd11b49d"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="dispersion_relation"><param name="Local" value="structlt__type.html#a8b0b5b5221643675814bb5ff01574a75"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="absolute_order"><param name="Local" value="structlt__type.html#a2306b3c512175cded748edf1993d3b7c"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="first_absolute_order"><param name="Local" value="structlt__type.html#a4e30c814b17e79857c8ada246960df6d"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="last_absolute_order"><param name="Local" value="structlt__type.html#a40c09eb863858be2b592ba9dd1e5280f"><param name="ImageNumber" value="11"></OBJECT>
-      </UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="slit_geometry"><param name="ImageNumber" value="1"></OBJECT>
-      <UL>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="length"><param name="Local" value="structslit__geometry.html#a20bb1b37051f3069d14674f8023b1c0b"><param name="ImageNumber" value="11"></OBJECT>
-      <LI><OBJECT type="text/sitemap"><param name="Name" value="offset"><param name="Local" value="structslit__geometry.html#a628a07ea69ccdc79f3df7e5b819608de"><param name="ImageNumber" value="11"></OBJECT>
-      </UL>
-    </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Data Structure Index"><param name="Local" value="classes.html"><param name="ImageNumber" value="11"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="Data Fields"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="All"><param name="Local" value="functions.html"><param name="ImageNumber" value="11"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Name" value="Variables"><param name="Local" value="functions_vars.html"><param name="ImageNumber" value="11"></OBJECT>
-    </UL>
-  </UL>
-<LI><OBJECT type="text/sitemap"><param name="Name" value="Files"><param name="ImageNumber" value="1"></OBJECT>
-  <UL>
-  <LI><OBJECT type="text/sitemap"><param name="Name" value="File List"><param name="ImageNumber" value="1"></OBJECT>
-    <UL>
-    </UL>
-  </UL>
-</UL>
-</BODY>
-</HTML>
diff --git a/html/index.hhk b/html/index.hhk
deleted file mode 100644
index 48f941b..0000000
--- a/html/index.hhk
+++ /dev/null
@@ -1,2094 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<HTML><HEAD></HEAD><BODY>
-<OBJECT type="text/site properties">
-<param name="FrameName" value="right">
-</OBJECT>
-<UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html"><param name="Name" value="1D-Polynomial roots"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__irplib__hist__.html"><param name="Name" value="_irplib_hist_"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__irplib__hist__.html#a92ee6f204ce98d8289ab4f5e3438c8ec"><param name="Name" value="bins"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__irplib__hist__.html#a27ec7606b16c4cceb446c59c1e44b570"><param name="Name" value="nbins"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__irplib__hist__.html#a29b7decd5422d6ec41528ba050f95ab6"><param name="Name" value="range"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__irplib__hist__.html#afd8188b47faf858c421527d3393822e0"><param name="Name" value="start"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html"><param name="Name" value="_polynomial"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html#aa080f764f2571c41d0057a50bdf40da3"><param name="Name" value="dimension"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9"><param name="Name" value="pol"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601"><param name="Name" value="scale"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596"><param name="Name" value="shift"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html#a8ebfb08c87b2969c891912c8edee2d6d"><param name="Name" value="vec"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html#a687bf02009f6c7446c40c9df2d252051"><param name="Name" value="vec_data"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__chip.html"><param name="Name" value="_uves_chip"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__chip.html#a6565a99f7cf043cf1c156e194449351e"><param name="Name" value="whatever"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__deque__.html"><param name="Name" value="_uves_deque_"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__deque__.html#aadd5ff8ccb74bbce043c8b33c14ebcb2"><param name="Name" value="back"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__deque__.html#a1a812ba89bda43b36d98f4217cdb11ff"><param name="Name" value="front"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__deque__.html#ac21c4e86718521af164a12c154629ed1"><param name="Name" value="members"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__deque__.html#a7136634cae2126e5a2f9111cd65d2e39"><param name="Name" value="size"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__propertylist__.html"><param name="Name" value="_uves_propertylist_"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__propertylist__.html#a0fd4c2141ccd41b592ad4939f9ae5eae"><param name="Name" value="properties"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga47c097a5303e746c66bdce157d272e81"><param name="Name" value="_uves_propertylist_compare"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gafd9db8c1f3b8413e3da087af2fe10b0b"><param name="Name" value="_uves_propertylist_compare_regexp"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga1e668466b3d5a7e7e0366698f8baae3c"><param name="Name" value="_uves_propertylist_decode_fits"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga5139a6e0d04f3308dcb2ce3104de3597"><param name="Name" value="_uves_propertylist_filter_regexp"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga20075a785505f799937e7ffa8695656b"><param name="Name" value="_uves_propertylist_find"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaf7b45f00c2b745228d5d7d35d704e4ce"><param name="Name" value="_uves_propertylist_from_fits"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga0b90742568c12f47577f6e3e5eb5fb30"><param name="Name" value="_uves_propertylist_get"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga28c77105b7f9d72d97417009b7e993b2"><param name="Name" value="_uves_propertylist_insert"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__regexp__.html"><param name="Name" value="_uves_regexp_"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__regexp__.html#a7da7c2ea1630eaf4014a1d861e5d9423"><param name="Name" value="invert"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__regexp__.html#a53470ca9d753fb7878bad1ab00f0ac30"><param name="Name" value="re"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#a2306b3c512175cded748edf1993d3b7c"><param name="Name" value="absolute_order"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gaae8e2ffac38d164c6f35df18166ee0d2"><param name="Name" value="area_above_line"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#gac6cb8562d0764cfd2826e0f4f2d34cc2"><param name="Name" value="assure"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199"><param name="Name" value="assure_mem"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595"><param name="Name" value="assure_nomsg"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga8be5990f31b99ed6a4582388982f1b12"><param name="Name" value="autocorr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__deque__.html#aadd5ff8ccb74bbce043c8b33c14ebcb2"><param name="Name" value="back"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix.html"><param name="Name" value="Bad pixel correction"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html#ga3d3880b9ecf3dac9a3ed30608a5d4012"><param name="Name" value="barvel"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__irplib__hist__.html#a92ee6f204ce98d8289ab4f5e3438c8ec"><param name="Name" value="bins"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga0830b05ef03423ceca86b6386123f26d"><param name="Name" value="calculate_spacing"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga6441018223f000460da3fe4e29325806"><param name="Name" value="calibrate_global"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html"><param name="Name" value="CCD Chip"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip__type.html"><param name="Name" value="CCD chip abstract type"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815"><param name="Name" value="CGN_NINT"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c"><param name="Name" value="check"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847"><param name="Name" value="check_nomsg"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#gad639cd191162e80c9c5793ec5740962e"><param name="Name" value="ck0"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga1d9cf6d2c114455090597b944f9db58e"><param name="Name" value="ck0_nomsg"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga2b5f7c3330cda7deb43afb23fd15f471"><param name="Name" value="Ckapsig"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga958b5e0e6ba3332708f8197759a4692c"><param name="Name" value="cknull"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga3258959709414833c63cd6aa06a45d7b"><param name="Name" value="cknull_nomsg"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaf6694005504df6a3590fb6aafc8c5a19"><param name="Name" value="COLNAME"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga3d2a634d47ecc17a9550bc3169b45108"><param name="Name" value="compute_lambda"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html#ga11beea47928ca353a23b5399e7ed644e"><param name="Name" value="compxy"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#ga88bbe197eb9fde07ce6d0764f542bc6b"><param name="Name" value="convert_midas_array"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac5996d64d908d2cfa6f94ea779a0ea95"><param name="Name" value="convert_to_fits"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac7d5af5ecd10af15fb036eb988b61527"><param name="Name" value="convert_to_history"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__base__spectrum__model.html#a668cdc43cff2481ad35ecd8b63ac0d43"><param name="Name" value="cost"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__base__spectrum__model.html#a668cdc43cff2481ad35ecd8b63ac0d43"><param name="Name" value="irplib_base_spectrum_model"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#a2238966f3277aeb98e525fb82841bde6"><param name="Name" value="irplib_line_spectrum_model"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga9ec0c0699858aa2709832fdf9732abee"><param name="Name" value="count_orders"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="Name" value="cpl_plugin_get_info"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="Name" value="flames_utl_unpack"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__ima__arith.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="Name" value="uves_utl_ima_arith"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__physmod.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="Name" value="uves_utl_physmod"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__rcosmic.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="Name" value="uves_utl_rcosmic"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__remove__crh__single.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="Name" value="uves_utl_remove_crh_single"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__test__simulate.html"><param name="Name" value="Create mock-up objects for unit testing"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga660658a114854b46d0dd27605ea01711"><param name="Name" value="create_descr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__test__simulate.html#ga6fbf196c4ff48ceb9f9a5dc64830dffe"><param name="Name" value="create_line_table"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__test__simulate.html#ga81a0d2793233e8b9c72f1141a3168924"><param name="Name" value="create_order_table"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__test.html#ga7cb1d3ff41cb3f702a9b25abe8184e87"><param name="Name" value="create_spectrum"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#gad923251bceb0400556ebdd0b0638ea4c"><param name="Name" value="Crhox"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga582a2d79c11dcf90fa7628a8e802d641"><param name="Name" value="Crhoy"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga8baeae8b13dcba7884349e7a061fe1fc"><param name="Name" value="Cserch"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga440f90dd7ecf16fa50d2798e10b40034"><param name="Name" value="current_caller"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structframe.html#a6c3c7b90af90ae30eb8ab418ff62d482"><param name="Name" value="data"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html#gaa1c25713efeab659789f821699975217"><param name="Name" value="deg2dms"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html#gaaaf92abe334c82d9d71517236508ff3f"><param name="Name" value="deg2hms"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga0916288fc020f46150a3050ee529e2be"><param name="Name" value="delete_peak"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga3308f7853a8f3e62d777e814f411f9c0"><param name="Name" value="derivative_cpl_polynomial"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga10eb92856d9393ba040c2955f504cb71"><param name="Name" value="detect_lines"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga10eb92856d9393ba040c2955f504cb71"><param name="Name" value="uves_orderpos"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gabf8091bf00a26cfe084f73ef3cb80a29"><param name="Name" value="uves_wavecal"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gacb90d6e405582e2d261bc5c117a1c20f"><param name="Name" value="detect_ripples"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html#aa080f764f2571c41d0057a50bdf40da3"><param name="Name" value="dimension"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#ad641b00a59c564f65646bda53af3b4f8"><param name="Name" value="disp1d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#a8b0b5b5221643675814bb5ff01574a75"><param name="Name" value="dispersion_relation"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__distortion.html"><param name="Name" value="Distortion correction functions"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c"><param name="Name" value="dup_map"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga73fbc6b725a426956499af4d5518bff4"><param name="Name" value="ERFCC"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#a76536023bc7548931d9b15c87d77138b"><param name="Name" value="erftmp"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html"><param name="Name" value="Error handling"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga1e40ceca628368b9e4fe0911738ee60c"><param name="Name" value="error_pop"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga8ae11aa0aa80d2cbd486e6c61c7e2b8e"><param name="Name" value="error_push"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gaace2260dc82cd97c5a88753a26c00c39"><param name="Name" value="estimate_sn"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga1b3faad60deb05543392b7d0761c42e2"><param name="Name" value="estimate_threshold"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#gaf312209df39d763b6975f2682529a4e8"><param name="Name" value="eval_gauss"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6"><param name="Name" value="extract_ff_rebin_merge"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga658f6a76a3bcf324623828302b2b1205"><param name="Name" value="extract_order_simple"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga55ab1000c00c0f198531b3273e792c80"><param name="Name" value="FCHIS"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structframe.html#ad980bcda193e655c5d248e5ded6d29b6"><param name="Name" value="filename"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga8049c678a855a57b1030eab386393a8f"><param name="Name" value="FILESIZE"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#aaea200bab9f675264f03117a335544cf"><param name="Name" value="filler"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#gafc2ebb8a19b1e10153319a018a743c9e"><param name="Name" value="filter_median"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga940d9bec43c7580b6044ccc0781f6508"><param name="Name" value="find_centroid"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#a4e30c814b17e79857c8ada246960df6d"><param name="Name" value="first_absolute_order"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#gad50db3ef4566d0ff652423541aaf8790"><param name="Name" value="firsttrace"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga63321f80b5c307c048cd012e43413dad"><param name="Name" value="fit_order_linear"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga609177ee4e13ce7243aa571763a4fbb4"><param name="Name" value="FIT_SLOPE"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html"><param name="Name" value="FITS header protected access"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#gac2394f974852f00f7fd8d77233a18fe4"><param name="Name" value="flames_align_table_column"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__cal__mkmaster.html"><param name="Name" value="Flames_cal_mkmaster"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__cal__orderpos.html"><param name="Name" value="Flames_cal_orderpos"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__cal__predict.html"><param name="Name" value="Flames_cal_predict"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__cal__prep__sff__ofpos.html"><param name="Name" value="Flames_cal_prep_sff_ofpos"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__cal__wavecal.html"><param name="Name" value="Flames_cal_wavecal"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__extract.html"><param name="Name" value="Flames_extract"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__fillordtab.html"><param name="Name" value="Flames_fillordtab"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#gaed3ec9e2f866d475ff9917cf6f06a6d3"><param name="Name" value="flames_get_physmod_offset"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#gac4e6f429f26f9e850ba3e751ebead1ad"><param name="Name" value="flames_get_trans"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__mes__slitff__size.html"><param name="Name" value="Flames_mes_slitff_size"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html"><param name="Name" value="flames_midas_def"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaf6694005504df6a3590fb6aafc8c5a19"><param name="Name" value="COLNAME"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac5996d64d908d2cfa6f94ea779a0ea95"><param name="Name" value="convert_to_fits"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac7d5af5ecd10af15fb036eb988b61527"><param name="Name" value="convert_to_history"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga660658a114854b46d0dd27605ea01711"><param name="Name" value="create_descr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga440f90dd7ecf16fa50d2798e10b40034"><param name="Name" value="current_caller"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga5782950076486effd61983d7e9cfdca7"><param name="Name" value="flames_midas_error_macro"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gafb38d16898bedd5466e128e2fc7685ec"><param name="Name" value="flames_midas_fail_macro"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga6beb815e71b5dc0c97723fea885b87fb"><param name="Name" value="flames_midas_image_dtype_to_cpltype"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga7be4e25a210527efa6a2f35654a883c2"><param name="Name" value="flames_midas_sccadd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga49845ef1180d690d5d3c6aa8645217c9"><param name="Name" value="flames_midas_scccre"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga615dbb0a3b8642ce7a2fc6dd0f9ccdca"><param name="Name" value="flames_midas_sccfnd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga012d8363656f8f4ffbd3715f07e0fe1e"><param name="Name" value="flames_midas_sccget"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga015a9de40fda2f9647b47ebcff656176"><param name="Name" value="flames_midas_sccsho"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga26847f26401dd74af7e09d6e20f3485c"><param name="Name" value="flames_midas_scdcop"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga9434f71fab199b6901162d0ef9a3c72c"><param name="Name" value="flames_midas_scdcop_nonaxis"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga48f59f2f6c0f646a98df741d3dca5490"><param name="Name" value="flames_midas_scddel"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gae2e7cd4c8a5c1bffdbd0323fdb5aac63"><param name="Name" value="flames_midas_scdfnd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga6b30560067a69f65864f034fcecf22b8"><param name="Name" value="flames_midas_scdprs"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga364fe8ecc22777838c41847bda6ac39d"><param name="Name" value="flames_midas_scdrdc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaac0ac727377c28d18f747a7d7c68ba8a"><param name="Name" value="flames_midas_scdrdd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga0e318315f4db01837b210ed6f121abc9"><param name="Name" value="flames_midas_scdrdi"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaa973227da8437b4a863f3b20c6a48677"><param name="Name" value="flames_midas_scdrdr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga44cabf3bf150345b7212c5b7b53b98c2"><param name="Name" value="flames_midas_scdwrc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga2291fd90dbe300f347bdeb8b9406defc"><param name="Name" value="flames_midas_scdwrd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga13989de7cfac7c2dbf9af19b1474466c"><param name="Name" value="flames_midas_scdwri"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga1529d77bc40fef94b2ff2c3e00c478e1"><param name="Name" value="flames_midas_scdwrr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga5ed8340f5fc416851f180804e976063c"><param name="Name" value="flames_midas_scfclo"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gacc0d2e992be7014e3ee51cd0e5213378"><param name="Name" value="flames_midas_scfcre"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga41facab5fb3ef7e61cd04eb23c221457"><param name="Name" value="flames_midas_scfget"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga7066ceaa10571003c4f40b9514befa55"><param name="Name" value="flames_midas_scfinf"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gade8dcfb4d9b489491251c0a3bdd37c77"><param name="Name" value="flames_midas_scfopn"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga7fd1da8919a2e4d23d715241851dc531"><param name="Name" value="flames_midas_scfput"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaebe09f825bea8022029d7228f65ec0bd"><param name="Name" value="flames_midas_sckfnd_double"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gad15ddc46cb5cfb84c0712bd4ea711a31"><param name="Name" value="flames_midas_sckfnd_float"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac7a6aa9b94f6cc8f3cde2fbdfc196508"><param name="Name" value="flames_midas_sckfnd_int"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaa62164a8510ad12d9cc38d7ba63e6ac2"><param name="Name" value="flames_midas_sckfnd_string"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gad5428f85c2051eb80233c722be600384"><param name="Name" value="flames_midas_sckgetc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaa8dd2c0f402ef4d7f25cab80633315d2"><param name="Name" value="flames_midas_sckgetc_fs"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaf5a5ab0dd30aa57b7190dd16282b405c"><param name="Name" value="flames_midas_sckgetc_fsp"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gadf589fba446c3b815b0f3cd2d1ae2313"><param name="Name" value="flames_midas_sckrdc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gae85c7a6f7d741e6daef4b9b22ac45445"><param name="Name" value="flames_midas_sckrdd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga9141f1db2730a7ca7017cb6c3f630212"><param name="Name" value="flames_midas_sckrdi"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga111509252ea742fbf16c4d1094e50984"><param name="Name" value="flames_midas_sckrdr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga456cfe0c7a3174be7b4743a50c35af06"><param name="Name" value="flames_midas_sckwrc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaf92f6c07d3bdb40c5a94cbda4ef5759d"><param name="Name" value="flames_midas_sckwrd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac9bb00d4973c0c331c191b7181813603"><param name="Name" value="flames_midas_sckwri"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga404f30f6b856c9aef1049281f08821a7"><param name="Name" value="flames_midas_scsepi"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gafb520332aaae57a6e23cd3004aaf9edd"><param name="Name" value="flames_midas_scspro"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga16f28e1fc62964ca37121c376f40f217"><param name="Name" value="flames_midas_sctput"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga68685d0b50cdc0635a5deb9b2048badd"><param name="Name" value="flames_midas_tcardc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga91ac96ae8f80e7d763aba17d63d43f94"><param name="Name" value="flames_midas_tcardd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga6f1a804eb044a99139f18d7d47d5f033"><param name="Name" value="flames_midas_tcardi"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga7828917beff1870f6c63d8d91a426589"><param name="Name" value="flames_midas_tcardr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga4025c0c05f7c29795606053fa93246ad"><param name="Name" value="flames_midas_tcawrc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaed6dea021e90e8503f6875b16024bb32"><param name="Name" value="flames_midas_tcawrd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga8498644f4cd378cb9ba89010d0274ffc"><param name="Name" value="flames_midas_tcawri"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gae6d07668fce8fac7c7e9809b4a630110"><param name="Name" value="flames_midas_tcawrr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gabfccd17a94b63af4a405b06f65e8a9c3"><param name="Name" value="flames_midas_tcbget"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga056439b490e9f15fb439956f97da18a6"><param name="Name" value="flames_midas_tccini"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga08eeeb2f1d0362d03eb83612d1407e47"><param name="Name" value="flames_midas_tccser"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga54f9ec2adf2926835533fd239b0ecf07"><param name="Name" value="flames_midas_tcdget"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac6c54281929d88f009f4e4d2de078948"><param name="Name" value="flames_midas_tcerdc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga338a9cb9bd7b9c78c6722879a6a6dcb7"><param name="Name" value="flames_midas_tcerdd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaf38f1e0716373fba8c2cd7cea07ef7d0"><param name="Name" value="flames_midas_tcerdi"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gadce2330c6f7b37cd8694fb195c4d240e"><param name="Name" value="flames_midas_tcerdr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gae63b97b3d22a206f5d520d0720e79f05"><param name="Name" value="flames_midas_tcewrc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaf56d454eb421323a18cb00a7a238608b"><param name="Name" value="flames_midas_tcewrd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga8ddb72626aebb5ce88e19f3f01f49eed"><param name="Name" value="flames_midas_tcewri"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga267fba0020bb3e6ba80f1fca111b3847"><param name="Name" value="flames_midas_tcewrr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga42b0965ecfa0c67c6e03e34ab9c9f6c3"><param name="Name" value="flames_midas_tcfget"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac90526c6f62d53d6dda4f12709366401"><param name="Name" value="flames_midas_tciget"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga07f9619101216e3d306e6dc69dd6bce2"><param name="Name" value="flames_midas_tclget"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga2cfaafe6ece41ed12cf798605688c74d"><param name="Name" value="flames_midas_tclser"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaabd3993df69252bebb2f975a1502d310"><param name="Name" value="flames_midas_tcsget"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gad64c1f681e05a9b74ac51da43d762eba"><param name="Name" value="flames_midas_tcsput"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga682523f91d2e727497904d2abafd4171"><param name="Name" value="flames_midas_tctclo"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga3ef46ff32b2d2f17c817a788076db09a"><param name="Name" value="flames_midas_tctopn"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga2206e126a49362e551a9f6cceb8bc4e6"><param name="Name" value="flames_midas_tcuget"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga74503a6b522dac56cde3c9371ad720c3"><param name="Name" value="frame_close"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga1d9507f11db5958a512c4bfac897d11e"><param name="Name" value="frame_free"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb"><param name="Name" value="frame_is_open"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga039acefae152f656c10c8f92123dff18"><param name="Name" value="frame_new_image"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gab7f90aa20c3ad6bb30b38c96cce9503a"><param name="Name" value="frame_new_table"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac3ca71e862eef6e44b8b6e676677fb10"><param name="Name" value="frames"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga39b00de90ed04a8759704d6ad997c30c"><param name="Name" value="get_descr_info"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66"><param name="Name" value="invariant"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga62f37c098ceea9f00ff6d148787d94a2"><param name="Name" value="is_special_midas_descr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886"><param name="Name" value="load_frame"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga01414f0f04f79fd8686c2f6f9f478fbc"><param name="Name" value="load_frame_header"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga9e7eadf2d9728e691ea6faf51032cd8c"><param name="Name" value="load_header"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gae41c12c4d3844865f17d833c1cb1417e"><param name="Name" value="scdcop"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27"><param name="Name" value="scdrd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga3df6bb0a7782b06c85dca025c4bd5682"><param name="Name" value="scdwr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751"><param name="Name" value="sckfnd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac43d4468f847fadb5e9ff0895b0cab16"><param name="Name" value="set_column_format_unit_tnull"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga719a4f7457ed2683599e5f62a429e1af"><param name="Name" value="sizeof_cpltype"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga638d89407aed0a4641df1ce39f70392a"><param name="Name" value="table_colname_from_number"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaff61faa79a507025396b5ff638457e5b"><param name="Name" value="table_cpltype_to_dtype"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gacd8b0d2f194d8ea65feea67f5d59772c"><param name="Name" value="table_dtype_to_cpltype"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga8f640b729dc132a3dfb6151317f54ad7"><param name="Name" value="tcard"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga65e78c6b1bd838a7bbb398c2cc572168"><param name="Name" value="tcawr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04"><param name="Name" value="tcerd"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e"><param name="Name" value="tcewr"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga5782950076486effd61983d7e9cfdca7"><param name="Name" value="flames_midas_error_macro"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gafb38d16898bedd5466e128e2fc7685ec"><param name="Name" value="flames_midas_fail_macro"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga6beb815e71b5dc0c97723fea885b87fb"><param name="Name" value="flames_midas_image_dtype_to_cpltype"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga7be4e25a210527efa6a2f35654a883c2"><param name="Name" value="flames_midas_sccadd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga49845ef1180d690d5d3c6aa8645217c9"><param name="Name" value="flames_midas_scccre"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga615dbb0a3b8642ce7a2fc6dd0f9ccdca"><param name="Name" value="flames_midas_sccfnd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga012d8363656f8f4ffbd3715f07e0fe1e"><param name="Name" value="flames_midas_sccget"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga015a9de40fda2f9647b47ebcff656176"><param name="Name" value="flames_midas_sccsho"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga26847f26401dd74af7e09d6e20f3485c"><param name="Name" value="flames_midas_scdcop"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga9434f71fab199b6901162d0ef9a3c72c"><param name="Name" value="flames_midas_scdcop_nonaxis"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga48f59f2f6c0f646a98df741d3dca5490"><param name="Name" value="flames_midas_scddel"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gae2e7cd4c8a5c1bffdbd0323fdb5aac63"><param name="Name" value="flames_midas_scdfnd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga6b30560067a69f65864f034fcecf22b8"><param name="Name" value="flames_midas_scdprs"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga364fe8ecc22777838c41847bda6ac39d"><param name="Name" value="flames_midas_scdrdc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaac0ac727377c28d18f747a7d7c68ba8a"><param name="Name" value="flames_midas_scdrdd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga0e318315f4db01837b210ed6f121abc9"><param name="Name" value="flames_midas_scdrdi"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaa973227da8437b4a863f3b20c6a48677"><param name="Name" value="flames_midas_scdrdr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga44cabf3bf150345b7212c5b7b53b98c2"><param name="Name" value="flames_midas_scdwrc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga2291fd90dbe300f347bdeb8b9406defc"><param name="Name" value="flames_midas_scdwrd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga13989de7cfac7c2dbf9af19b1474466c"><param name="Name" value="flames_midas_scdwri"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga1529d77bc40fef94b2ff2c3e00c478e1"><param name="Name" value="flames_midas_scdwrr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga5ed8340f5fc416851f180804e976063c"><param name="Name" value="flames_midas_scfclo"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gacc0d2e992be7014e3ee51cd0e5213378"><param name="Name" value="flames_midas_scfcre"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga41facab5fb3ef7e61cd04eb23c221457"><param name="Name" value="flames_midas_scfget"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga7066ceaa10571003c4f40b9514befa55"><param name="Name" value="flames_midas_scfinf"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gade8dcfb4d9b489491251c0a3bdd37c77"><param name="Name" value="flames_midas_scfopn"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga7fd1da8919a2e4d23d715241851dc531"><param name="Name" value="flames_midas_scfput"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaebe09f825bea8022029d7228f65ec0bd"><param name="Name" value="flames_midas_sckfnd_double"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gad15ddc46cb5cfb84c0712bd4ea711a31"><param name="Name" value="flames_midas_sckfnd_float"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac7a6aa9b94f6cc8f3cde2fbdfc196508"><param name="Name" value="flames_midas_sckfnd_int"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaa62164a8510ad12d9cc38d7ba63e6ac2"><param name="Name" value="flames_midas_sckfnd_string"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gad5428f85c2051eb80233c722be600384"><param name="Name" value="flames_midas_sckgetc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaa8dd2c0f402ef4d7f25cab80633315d2"><param name="Name" value="flames_midas_sckgetc_fs"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaf5a5ab0dd30aa57b7190dd16282b405c"><param name="Name" value="flames_midas_sckgetc_fsp"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gadf589fba446c3b815b0f3cd2d1ae2313"><param name="Name" value="flames_midas_sckrdc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gae85c7a6f7d741e6daef4b9b22ac45445"><param name="Name" value="flames_midas_sckrdd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga9141f1db2730a7ca7017cb6c3f630212"><param name="Name" value="flames_midas_sckrdi"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga111509252ea742fbf16c4d1094e50984"><param name="Name" value="flames_midas_sckrdr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga456cfe0c7a3174be7b4743a50c35af06"><param name="Name" value="flames_midas_sckwrc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaf92f6c07d3bdb40c5a94cbda4ef5759d"><param name="Name" value="flames_midas_sckwrd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac9bb00d4973c0c331c191b7181813603"><param name="Name" value="flames_midas_sckwri"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga404f30f6b856c9aef1049281f08821a7"><param name="Name" value="flames_midas_scsepi"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gafb520332aaae57a6e23cd3004aaf9edd"><param name="Name" value="flames_midas_scspro"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga16f28e1fc62964ca37121c376f40f217"><param name="Name" value="flames_midas_sctput"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga68685d0b50cdc0635a5deb9b2048badd"><param name="Name" value="flames_midas_tcardc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga91ac96ae8f80e7d763aba17d63d43f94"><param name="Name" value="flames_midas_tcardd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga6f1a804eb044a99139f18d7d47d5f033"><param name="Name" value="flames_midas_tcardi"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga7828917beff1870f6c63d8d91a426589"><param name="Name" value="flames_midas_tcardr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga4025c0c05f7c29795606053fa93246ad"><param name="Name" value="flames_midas_tcawrc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaed6dea021e90e8503f6875b16024bb32"><param name="Name" value="flames_midas_tcawrd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga8498644f4cd378cb9ba89010d0274ffc"><param name="Name" value="flames_midas_tcawri"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gae6d07668fce8fac7c7e9809b4a630110"><param name="Name" value="flames_midas_tcawrr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gabfccd17a94b63af4a405b06f65e8a9c3"><param name="Name" value="flames_midas_tcbget"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga056439b490e9f15fb439956f97da18a6"><param name="Name" value="flames_midas_tccini"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga08eeeb2f1d0362d03eb83612d1407e47"><param name="Name" value="flames_midas_tccser"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga54f9ec2adf2926835533fd239b0ecf07"><param name="Name" value="flames_midas_tcdget"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac6c54281929d88f009f4e4d2de078948"><param name="Name" value="flames_midas_tcerdc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga338a9cb9bd7b9c78c6722879a6a6dcb7"><param name="Name" value="flames_midas_tcerdd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaf38f1e0716373fba8c2cd7cea07ef7d0"><param name="Name" value="flames_midas_tcerdi"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gadce2330c6f7b37cd8694fb195c4d240e"><param name="Name" value="flames_midas_tcerdr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gae63b97b3d22a206f5d520d0720e79f05"><param name="Name" value="flames_midas_tcewrc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaf56d454eb421323a18cb00a7a238608b"><param name="Name" value="flames_midas_tcewrd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga8ddb72626aebb5ce88e19f3f01f49eed"><param name="Name" value="flames_midas_tcewri"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga267fba0020bb3e6ba80f1fca111b3847"><param name="Name" value="flames_midas_tcewrr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga42b0965ecfa0c67c6e03e34ab9c9f6c3"><param name="Name" value="flames_midas_tcfget"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac90526c6f62d53d6dda4f12709366401"><param name="Name" value="flames_midas_tciget"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga07f9619101216e3d306e6dc69dd6bce2"><param name="Name" value="flames_midas_tclget"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga2cfaafe6ece41ed12cf798605688c74d"><param name="Name" value="flames_midas_tclser"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaabd3993df69252bebb2f975a1502d310"><param name="Name" value="flames_midas_tcsget"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gad64c1f681e05a9b74ac51da43d762eba"><param name="Name" value="flames_midas_tcsput"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga682523f91d2e727497904d2abafd4171"><param name="Name" value="flames_midas_tctclo"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga3ef46ff32b2d2f17c817a788076db09a"><param name="Name" value="flames_midas_tctopn"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga2206e126a49362e551a9f6cceb8bc4e6"><param name="Name" value="flames_midas_tcuget"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__obs__redchain.html"><param name="Name" value="Flames_obs_redchain"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__obs__scired.html"><param name="Name" value="Flames_obs_scired"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__prepbkg.html"><param name="Name" value="Flames_prepbkg"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__prepfibreff.html"><param name="Name" value="Flames_prepfibreff"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__prepnorm.html"><param name="Name" value="Flames_prepnorm"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__preppa.html"><param name="Name" value="Flames_preppa"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__prepslitff.html"><param name="Name" value="Flames_prepslitff"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#gac9a41e89feed9de7b6af29d3a489f770"><param name="Name" value="flames_unpack_image_from_cube"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#gae8067b3481165a2f93bf5dd95991ce53"><param name="Name" value="flames_unpack_spectra_from_image"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html"><param name="Name" value="flames_utl_unpack"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="Name" value="cpl_plugin_get_info"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#gac9a41e89feed9de7b6af29d3a489f770"><param name="Name" value="flames_unpack_image_from_cube"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#gae8067b3481165a2f93bf5dd95991ce53"><param name="Name" value="flames_unpack_spectra_from_image"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#ga9fff417a67b958ecdc54ebc0424bb691"><param name="Name" value="flames_utl_unpack"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#ga3c9c784ff968ed213e8ec7cfe1cab44e"><param name="Name" value="flames_utl_unpack_create"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#ga2c35d6967a972f242bdb3b1fd3e957df"><param name="Name" value="flames_utl_unpack_destroy"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#gacda5a373304d9563500a4340f7d2cdcb"><param name="Name" value="flames_utl_unpack_exec"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#ga3c9c784ff968ed213e8ec7cfe1cab44e"><param name="Name" value="flames_utl_unpack_create"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#ga2c35d6967a972f242bdb3b1fd3e957df"><param name="Name" value="flames_utl_unpack_destroy"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html#gacda5a373304d9563500a4340f7d2cdcb"><param name="Name" value="flames_utl_unpack_exec"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__flatfield.html"><param name="Name" value="Flat-field correction"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gab2caa5d2f377b40374ac88e708f739b7"><param name="Name" value="fmoffa_c"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga6ec891ebf5e364519c678c11600a35e0"><param name="Name" value="fmoffa_i"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structframe.html"><param name="Name" value="frame"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structframe.html#a6c3c7b90af90ae30eb8ab418ff62d482"><param name="Name" value="data"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structframe.html#ad980bcda193e655c5d248e5ded6d29b6"><param name="Name" value="filename"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structframe.html#aac77b360051f8ffd47b28cc004ad1154"><param name="Name" value="header"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structframe.html#aa09ac3788a7ed28d58f728d56621a5a0"><param name="Name" value="is_image"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structframe.html#ad61fe8520a5f79573af689467715bf24"><param name="Name" value="need_to_save"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga74503a6b522dac56cde3c9371ad720c3"><param name="Name" value="frame_close"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga1d9507f11db5958a512c4bfac897d11e"><param name="Name" value="frame_free"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga2cb311b01e4e6bded79ab0fa84065dbb"><param name="Name" value="frame_is_open"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga039acefae152f656c10c8f92123dff18"><param name="Name" value="frame_new_image"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gab7f90aa20c3ad6bb30b38c96cce9503a"><param name="Name" value="frame_new_table"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac3ca71e862eef6e44b8b6e676677fb10"><param name="Name" value="frames"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__deque__.html#a1a812ba89bda43b36d98f4217cdb11ff"><param name="Name" value="front"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__cat.html"><param name="Name" value="Functions for accessing catalogues"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html"><param name="Name" value="Functions for calibrations"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__flat.html"><param name="Name" value="Functions for flatfielding"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__spectrum.html"><param name="Name" value="Functions for LSS spectra"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__slitpos.html"><param name="Name" value="Functions for slit position"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html"><param name="Name" value="Functions for standard stars"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wcs.html"><param name="Name" value="Functions related to WCS"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__strehl.html"><param name="Name" value="Functions to compute the Strehl"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga2352edbfb6cd74a452f468faf13703ea"><param name="Name" value="GAUSDE"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga46739f4ebfffea22934280cd5c636e32"><param name="Name" value="GAUSFU"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__recipe__main.html"><param name="Name" value="General plugin tests"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__time.html"><param name="Name" value="Get date/time, possibly in ISO8601 format"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga39b00de90ed04a8759704d6ad997c30c"><param name="Name" value="get_descr_info"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#gad6aedc87f04001c793180df5b7edac16"><param name="Name" value="get_offset"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#gaee8ec7c4e8d83a1ef168f5c1c7c485a7"><param name="Name" value="get_orderlength"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga298b3cff7b38cee645a3155095f84981"><param name="Name" value="get_xcenter"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#gad2aa37539bc348053e032bb462c4fc2f"><param name="Name" value="get_ycenter"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structframe.html#aac77b360051f8ffd47b28cc004ad1154"><param name="Name" value="header"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga32817a71e6f80a75bd2d74e197f41002"><param name="Name" value="identify_lines"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#ga3233f3e30f36df3f47ddc7b95beaa8a8"><param name="Name" value="illegal_position"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__rebin.html#ga9746917b2a07e3ede927b28ad927d6ca"><param name="Name" value="integrate_flux"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__rebin.html#ga0f756f87f2bfbf7797c348ae30d77494"><param name="Name" value="integrate_noise"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html"><param name="Name" value="Interface for reading/writing QC LOG keywords."></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#gacf021d0b42c1b02d38ecbff5f3353f54"><param name="Name" value="interpolate_wave"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga628fc7f332c82f61ffa18e0c8a510b66"><param name="Name" value="invariant"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__regexp__.html#a7da7c2ea1630eaf4014a1d861e5d9423"><param name="Name" value="invert"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__plugin.html"><param name="Name" value="Irplib plugin functionality"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__cat.html#ga7fdafd757d33d4096270027912a89cf6"><param name="Name" value="irplib_2mass_extract"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__cat.html#ga8dd2b5e6b7bc4a7ea3f2b275882aa200"><param name="Name" value="irplib_2mass_get_catpars"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#gac568c70a57ef8610f5fedc9f1943a3a1"><param name="Name" value="irplib_apertures_find_max_flux"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__base__spectrum__model.html"><param name="Name" value="irplib_base_spectrum_model"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__base__spectrum__model.html#a668cdc43cff2481ad35ecd8b63ac0d43"><param name="Name" value="cost"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__base__spectrum__model.html#aecc86670f5f4a3f46c777ad9a416fab9"><param name="Name" value="ulines"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__base__spectrum__model.html#af9e671d7a5a6b69e544f136818a81805"><param name="Name" value="xcost"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga03d7f038adc7e18e7a9071581fa47a25"><param name="Name" value="irplib_bivector_count_positive"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga260740bf1f3fc364b301519eab3249a6"><param name="Name" value="irplib_bivector_find_shift_from_correlation"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html"><param name="Name" value="irplib_calib"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga98c9970b59c6b7919f531829f6f5dab9"><param name="Name" value="irplib_compute_gain"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gadefee4e970a548c25bcbb42797778a2a"><param name="Name" value="irplib_compute_linearity"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gae9b762625dbd2c31c1b59cfd8c15fd90"><param name="Name" value="irplib_detlin_correct"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gae650a3e54e1aff329b1b5ee356bcdbde"><param name="Name" value="irplib_flat_dark_bpm_calib"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439"><param name="Name" value="irplib_get_clean_mean_window"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga6904da04154755c76c191447714297a3"><param name="Name" value="irplib_head_get_exptime"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga06aba7b4cf8b84fb21acef626c8c7196"><param name="Name" value="irplib_head_set_exptime"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga60d4d26793b0162783e4f39e7d180e9b"><param name="Name" value="irplib_imagelist_get_clean_mean_levels"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga28480f72b7f607b47769df0a8ada7333"><param name="Name" value="irplib_imagelist_ksigma_stack"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gaaf8bb5c15a5e72ea67627d5220f9e01b"><param name="Name" value="irplib_imagelist_subtract_values"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga3d984fbbecd9229d56e199b1d4031e77"><param name="Name" value="irplib_mdark_process_chip"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gac2e7d0c2f861f15f0b9a912e665ab9a6"><param name="Name" value="irplib_mkmaster_dark_fill_imagelist"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga59949441bd2109bbf0a852b97f899659"><param name="Name" value="irplib_mkmaster_dark_qc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gae11ebd9b30a6c781265ba2e5af87722b"><param name="Name" value="irplib_mkmaster_mean"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga31157521720077a762a43644a503bbf2"><param name="Name" value="irplib_mkmaster_median"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gaccb4324b15367dbe7d2aa57757b400a3"><param name="Name" value="irplib_pfits_get_dit"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga1940301f70f9920a94298e7aa9db4701"><param name="Name" value="irplib_pfits_get_exp_time"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gacf0c80a14e58f7529e9589b4c0c7ace8"><param name="Name" value="irplib_vector_ksigma"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__cat.html"><param name="Name" value="irplib_cat"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__cat.html#ga7fdafd757d33d4096270027912a89cf6"><param name="Name" value="irplib_2mass_extract"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__cat.html#ga8dd2b5e6b7bc4a7ea3f2b275882aa200"><param name="Name" value="irplib_2mass_get_catpars"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__cat.html#ga2289fa88ec0498a2930291b1d51a46af"><param name="Name" value="irplib_cat_get_image_limits"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__cat.html#gaf3dbc2180a59e7187674707510205afe"><param name="Name" value="irplib_match_cat_pairs"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__cat.html#ga0c646357cbecd1ce37f31f89ea6e62cf"><param name="Name" value="irplib_match_cats_get_all_matching_pairs"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__cat.html#ga2289fa88ec0498a2930291b1d51a46af"><param name="Name" value="irplib_cat_get_image_limits"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#gae13f0d6b24ade506a99ac9c4bb09efde"><param name="Name" value="irplib_compare_tags"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga98c9970b59c6b7919f531829f6f5dab9"><param name="Name" value="irplib_compute_gain"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gadefee4e970a548c25bcbb42797778a2a"><param name="Name" value="irplib_compute_linearity"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gae9b762625dbd2c31c1b59cfd8c15fd90"><param name="Name" value="irplib_detlin_correct"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga4ffea791c01c8a50093294d6dcbddb56"><param name="Name" value="irplib_dfs_product_save"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga346842d722834a2e6221ff2d86314b7e"><param name="Name" value="irplib_dfs_save_image"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga1fd7c2f4c00014049b0bf4bf6814b451"><param name="Name" value="irplib_dfs_save_image_"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga66f7adc9e165b4e934e3d57a700f55c1"><param name="Name" value="irplib_dfs_save_imagelist"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga4dc12f321e7aeb5e67ff19f815bfd7b7"><param name="Name" value="irplib_dfs_save_propertylist"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga62a91f8630af11164547c168660b2ade"><param name="Name" value="irplib_dfs_save_table"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga3d1a791b5dc870770611c7dbf60d02df"><param name="Name" value="irplib_dfs_table_convert"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f"><param name="Name" value="irplib_erf_antideriv"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga26c6209e5df98978e2922a15b47b47d1"><param name="Name" value="irplib_errorstate_dump_debug"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga901ff52a1c9dcdfcf2d2632d31064bdb"><param name="Name" value="irplib_errorstate_dump_info"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga6b29dac884b62ab52f43dd670d4d8386"><param name="Name" value="irplib_errorstate_dump_warning"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__flat.html"><param name="Name" value="irplib_flat"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__flat.html#gaf9bd48348cc91bb66304697b4c7aa58e"><param name="Name" value="irplib_flat_fit_set"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__flat.html#ga3e3e3bd45aef34e38758e1f2528d7c91"><param name="Name" value="irplib_flat_fit_slope_robust"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gae650a3e54e1aff329b1b5ee356bcdbde"><param name="Name" value="irplib_flat_dark_bpm_calib"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__flat.html#gaf9bd48348cc91bb66304697b4c7aa58e"><param name="Name" value="irplib_flat_fit_set"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__flat.html#ga3e3e3bd45aef34e38758e1f2528d7c91"><param name="Name" value="irplib_flat_fit_slope_robust"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html"><param name="Name" value="irplib_framelist"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga30cbfd003c6e6a6a42e610442f0b1bd1"><param name="Name" value="irplib_framelist_cast"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gafed15e9e259ebad923b710f5eb0196ac"><param name="Name" value="irplib_framelist_contains"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26"><param name="Name" value="irplib_framelist_delete"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga900ea254d9b2a2e4e3957360bbae4deb"><param name="Name" value="irplib_framelist_empty"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gac66ea3ad4fc98c171f8b840229fe54ce"><param name="Name" value="irplib_framelist_erase"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga86d6746d1c19356417815f7df04c3396"><param name="Name" value="irplib_framelist_extract"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gace77e5ae75183a22a0e5af9dd9018b01"><param name="Name" value="irplib_framelist_extract_regexp"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gaba8797bbb8394f5574cd88b2f1984387"><param name="Name" value="irplib_framelist_get"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga93d8f903729ea4b6fcb3eca85935716f"><param name="Name" value="irplib_framelist_get_const"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gab4858b1e9164f3a6cffcf40270f89032"><param name="Name" value="irplib_framelist_get_propertylist"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga7700dadcf17db5b86409e6cef233af4c"><param name="Name" value="irplib_framelist_get_propertylist_const"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga2518fce55112b5008cb119a126e593d7"><param name="Name" value="irplib_framelist_get_size"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga6ce5701e84915514975d09e0100c6005"><param name="Name" value="irplib_framelist_load_propertylist"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gaf9204681e0b6aa2d952c974dcbd8729d"><param name="Name" value="irplib_framelist_load_propertylist_all"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga5b86add048651f73424d2542a04946a0"><param name="Name" value="irplib_framelist_new"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga37e730f5627b4a0c7a81014f62421879"><param name="Name" value="irplib_framelist_set"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gada2c2e3f530a6dff763402eefceb5600"><param name="Name" value="irplib_framelist_set_propertylist"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gab11bb60e44dea926cd50ee80c7fbbd14"><param name="Name" value="irplib_framelist_set_tag_all"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga771f14f97f80a9bd7176d323999c9bce"><param name="Name" value="irplib_framelist_unset"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gabeedce2770a1bc06c26c0891a41aa174"><param name="Name" value="irplib_frameset_cast"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga0ff6c5e3b778c607544ca04ca3fb9e94"><param name="Name" value="irplib_imagelist_load_framelist"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga30cbfd003c6e6a6a42e610442f0b1bd1"><param name="Name" value="irplib_framelist_cast"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gafed15e9e259ebad923b710f5eb0196ac"><param name="Name" value="irplib_framelist_contains"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26"><param name="Name" value="irplib_framelist_delete"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga900ea254d9b2a2e4e3957360bbae4deb"><param name="Name" value="irplib_framelist_empty"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gac66ea3ad4fc98c171f8b840229fe54ce"><param name="Name" value="irplib_framelist_erase"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga86d6746d1c19356417815f7df04c3396"><param name="Name" value="irplib_framelist_extract"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gace77e5ae75183a22a0e5af9dd9018b01"><param name="Name" value="irplib_framelist_extract_regexp"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gaba8797bbb8394f5574cd88b2f1984387"><param name="Name" value="irplib_framelist_get"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga93d8f903729ea4b6fcb3eca85935716f"><param name="Name" value="irplib_framelist_get_const"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gab4858b1e9164f3a6cffcf40270f89032"><param name="Name" value="irplib_framelist_get_propertylist"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga7700dadcf17db5b86409e6cef233af4c"><param name="Name" value="irplib_framelist_get_propertylist_const"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga2518fce55112b5008cb119a126e593d7"><param name="Name" value="irplib_framelist_get_size"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga6ce5701e84915514975d09e0100c6005"><param name="Name" value="irplib_framelist_load_propertylist"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gaf9204681e0b6aa2d952c974dcbd8729d"><param name="Name" value="irplib_framelist_load_propertylist_all"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga5b86add048651f73424d2542a04946a0"><param name="Name" value="irplib_framelist_new"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga37e730f5627b4a0c7a81014f62421879"><param name="Name" value="irplib_framelist_set"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gada2c2e3f530a6dff763402eefceb5600"><param name="Name" value="irplib_framelist_set_propertylist"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gab11bb60e44dea926cd50ee80c7fbbd14"><param name="Name" value="irplib_framelist_set_tag_all"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga771f14f97f80a9bd7176d323999c9bce"><param name="Name" value="irplib_framelist_unset"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#gabeedce2770a1bc06c26c0891a41aa174"><param name="Name" value="irplib_frameset_cast"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga9fe4dca85dee68061114e26fdc72a134"><param name="Name" value="irplib_frameset_find_file"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga5b20a00f315410b49b1db1dd2417fe68"><param name="Name" value="irplib_frameset_get_first_from_group"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439"><param name="Name" value="irplib_get_clean_mean_window"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga6904da04154755c76c191447714297a3"><param name="Name" value="irplib_head_get_exptime"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga06aba7b4cf8b84fb21acef626c8c7196"><param name="Name" value="irplib_head_set_exptime"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954"><param name="Name" value="irplib_image_split"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga60d4d26793b0162783e4f39e7d180e9b"><param name="Name" value="irplib_imagelist_get_clean_mean_levels"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga28480f72b7f607b47769df0a8ada7333"><param name="Name" value="irplib_imagelist_ksigma_stack"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html#ga0ff6c5e3b778c607544ca04ca3fb9e94"><param name="Name" value="irplib_imagelist_load_framelist"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gaaf8bb5c15a5e72ea67627d5220f9e01b"><param name="Name" value="irplib_imagelist_subtract_values"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html"><param name="Name" value="irplib_line_spectrum_model"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#a2238966f3277aeb98e525fb82841bde6"><param name="Name" value="cost"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#a76536023bc7548931d9b15c87d77138b"><param name="Name" value="erftmp"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#a07717a9419fd3f382f71b296502cf505"><param name="Name" value="linepix"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#a061c6a79aabc0b4782102038c8fc01b3"><param name="Name" value="lines"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#acd97152ae922127d7d04cc1d90e95250"><param name="Name" value="ulines"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#aa15233a9551f2250947be7dbc3e266a9"><param name="Name" value="wfwhm"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#a0fb9da0f6301052c059408944d41d495"><param name="Name" value="wslit"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#a49ae0e59df7238d4fb87a7d2853cc5fa"><param name="Name" value="xcost"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#ad8b56e19ebc5ad851be35718d98cc529"><param name="Name" value="xtrunc"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__cat.html#gaf3dbc2180a59e7187674707510205afe"><param name="Name" value="irplib_match_cat_pairs"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__cat.html#ga0c646357cbecd1ce37f31f89ea6e62cf"><param name="Name" value="irplib_match_cats_get_all_matching_pairs"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga3d984fbbecd9229d56e199b1d4031e77"><param name="Name" value="irplib_mdark_process_chip"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gac2e7d0c2f861f15f0b9a912e665ab9a6"><param name="Name" value="irplib_mkmaster_dark_fill_imagelist"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga59949441bd2109bbf0a852b97f899659"><param name="Name" value="irplib_mkmaster_dark_qc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gae11ebd9b30a6c781265ba2e5af87722b"><param name="Name" value="irplib_mkmaster_mean"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga31157521720077a762a43644a503bbf2"><param name="Name" value="irplib_mkmaster_median"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html"><param name="Name" value="irplib_multimin"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#ad641b00a59c564f65646bda53af3b4f8"><param name="Name" value="disp1d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#aaea200bab9f675264f03117a335544cf"><param name="Name" value="filler"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#aca888edd94ff6e6689e0358ebeef3574"><param name="Name" value="ishift"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#abb856b4a9c6957fc21484c910a26a322"><param name="Name" value="maxxc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#ab4e13c3551f2d0a7e8c1735819be5d9c"><param name="Name" value="mdisp"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#acd5e2b9dd68fd3f33b72d4a484923d0d"><param name="Name" value="mxc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#a7f280baf6957c0ec55580efc7601a6d2"><param name="Name" value="observed"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#a427125cee224c0ba4ef22905d172853a"><param name="Name" value="param"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#a041e833fb689436169dff21ae35bd1a7"><param name="Name" value="spectrum"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#acfd631de9652602fbfce823ebe67c57c"><param name="Name" value="vxc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#a3677fb65e209fcabb6b5a397f588180b"><param name="Name" value="xc"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__oddeven.html"><param name="Name" value="irplib_oddeven"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__oddeven.html#ga7f7dafc1436a0aa2617048e1ada84e95"><param name="Name" value="irplib_oddeven_correct"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__oddeven.html#gade0423dfae726cc1ffec66a24e376505"><param name="Name" value="irplib_oddeven_monitor"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__oddeven.html#ga7f7dafc1436a0aa2617048e1ada84e95"><param name="Name" value="irplib_oddeven_correct"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__oddeven.html#gade0423dfae726cc1ffec66a24e376505"><param name="Name" value="irplib_oddeven_monitor"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gaccb4324b15367dbe7d2aa57757b400a3"><param name="Name" value="irplib_pfits_get_dit"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#ga1940301f70f9920a94298e7aa9db4701"><param name="Name" value="irplib_pfits_get_exp_time"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga7bac402a4e2c60f7646f1e655a66833d"><param name="Name" value="irplib_plot_spectrum_and_model"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html"><param name="Name" value="irplib_polynomial"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga90e13f05c9addc584f154279681d1853"><param name="Name" value="irplib_polynomial_add"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga5f92d37281184f1b88a047bef65a0007"><param name="Name" value="irplib_polynomial_divide_1d_root"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#gac5c97217542c30f329b225a9c833ea3b"><param name="Name" value="irplib_polynomial_eval_2_max"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga8524e951a5bd6930a4336a66bdce4a3d"><param name="Name" value="irplib_polynomial_eval_3_max"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga55c030413e6ef112753b280ad5213786"><param name="Name" value="irplib_polynomial_multiply_scalar"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga9d90a2af960d264f27944c15de34bda8"><param name="Name" value="irplib_polynomial_solve_1d_2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga5a4ed616604c1e196f85754b15b60146"><param name="Name" value="irplib_polynomial_solve_1d_3"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#gac3fa0804388376ac84af4407ba25bf01"><param name="Name" value="irplib_polynomial_solve_1d_31"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga8a2e39db3fb31be82fbdb37565601ca3"><param name="Name" value="irplib_polynomial_solve_1d_32"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga7921e7e4c40403211482ec1f03f12d26"><param name="Name" value="irplib_polynomial_solve_1d_3c"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga981772c5f68868a35cb2ebe401d8df4f"><param name="Name" value="irplib_polynomial_solve_1d_3r"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga3d08cbb87ea54579dadd71289f06138d"><param name="Name" value="irplib_polynomial_solve_1d_4"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385"><param name="Name" value="irplib_polynomial_solve_1d_all"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga44416a49b144367d5b04811857624956"><param name="Name" value="irplib_polynomial_solve_1d_nonzero"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga0e83ae3c9e7accb70fdfe1aca030e084"><param name="Name" value="irplib_polynomial_subtract"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga981d6da0b42f19d672fcfd416a690ad9"><param name="Name" value="IRPLIB_SWAP"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#gac071aa34964fb85cad9374710bf03168"><param name="Name" value="irplib_trace"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga90e13f05c9addc584f154279681d1853"><param name="Name" value="irplib_polynomial_add"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga5f92d37281184f1b88a047bef65a0007"><param name="Name" value="irplib_polynomial_divide_1d_root"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#gac5c97217542c30f329b225a9c833ea3b"><param name="Name" value="irplib_polynomial_eval_2_max"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga8524e951a5bd6930a4336a66bdce4a3d"><param name="Name" value="irplib_polynomial_eval_3_max"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga8f49c4927c50a461288e8f19720dff86"><param name="Name" value="irplib_polynomial_find_1d_from_correlation"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#gacb058e60cdbdea2986a5c9b5ea5b97af"><param name="Name" value="irplib_polynomial_find_1d_from_correlation_"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga7e782bcb7ec0e638a93dba628916a7a8"><param name="Name" value="irplib_polynomial_find_1d_from_correlation_all"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga87417a67281b352eb8c2a627b2a47c12"><param name="Name" value="irplib_polynomial_fit_1d_create_common"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga2dd3251367e2ee8b8bd5ce080e9f31bb"><param name="Name" value="irplib_polynomial_fit_2d_dispersion"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga55c030413e6ef112753b280ad5213786"><param name="Name" value="irplib_polynomial_multiply_scalar"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#gadf93655e2c7c0d5df23e2e3de66d0b56"><param name="Name" value="irplib_polynomial_shift_1d_from_correlation"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga9d90a2af960d264f27944c15de34bda8"><param name="Name" value="irplib_polynomial_solve_1d_2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#gac3fa0804388376ac84af4407ba25bf01"><param name="Name" value="irplib_polynomial_solve_1d_31"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga8a2e39db3fb31be82fbdb37565601ca3"><param name="Name" value="irplib_polynomial_solve_1d_32"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga5a4ed616604c1e196f85754b15b60146"><param name="Name" value="irplib_polynomial_solve_1d_3"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga7921e7e4c40403211482ec1f03f12d26"><param name="Name" value="irplib_polynomial_solve_1d_3c"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga981772c5f68868a35cb2ebe401d8df4f"><param name="Name" value="irplib_polynomial_solve_1d_3r"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga3d08cbb87ea54579dadd71289f06138d"><param name="Name" value="irplib_polynomial_solve_1d_4"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385"><param name="Name" value="irplib_polynomial_solve_1d_all"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga44416a49b144367d5b04811857624956"><param name="Name" value="irplib_polynomial_solve_1d_nonzero"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga0e83ae3c9e7accb70fdfe1aca030e084"><param name="Name" value="irplib_polynomial_subtract"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__ppm.html"><param name="Name" value="irplib_ppm"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__ppm.html#ga9b49569fb0bd55977b533407c1ad956d"><param name="Name" value="irplib_ppm_engine"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e"><param name="Name" value="irplib_reset"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__slitpos.html"><param name="Name" value="irplib_slitpos"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__slitpos.html#ga632b21eccf3d4bb48426cdd23f321cba"><param name="Name" value="irplib_slitpos_analysis"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__spectrum.html"><param name="Name" value="irplib_spectrum"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__spectrum.html#ga1885902c29d7383674c85e2c3d935961"><param name="Name" value="irplib_spectrum_detect_peaks"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__spectrum.html#ga9ac928ba9a48e864b56e921c970638c0"><param name="Name" value="irplib_spectrum_find_brightest"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__spectrum.html#ga1885902c29d7383674c85e2c3d935961"><param name="Name" value="irplib_spectrum_detect_peaks"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__spectrum.html#ga9ac928ba9a48e864b56e921c970638c0"><param name="Name" value="irplib_spectrum_find_brightest"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html"><param name="Name" value="irplib_stdstar"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga2dbe2031bf6d669778dca42f6c343efc"><param name="Name" value="irplib_stdstar_check_columns_exist"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga36b4c90fd548dd0c00afe97b17a558e5"><param name="Name" value="irplib_stdstar_find_closest"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga4d69ae957de04b1769ac225f12834027"><param name="Name" value="irplib_stdstar_find_star"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga93b46d8ac857a0d0fdc781b56a91a8ba"><param name="Name" value="irplib_stdstar_get_conversion"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga6e68e6a9d0bbb41ef717234b9f289dab"><param name="Name" value="irplib_stdstar_get_mag_zero"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#gabbad67ff18cb901914caa9e864969dea"><param name="Name" value="irplib_stdstar_get_sed"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga1690bd84c24e905e384b8f725bf7aff1"><param name="Name" value="irplib_stdstar_load_catalog"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga080e06303f3f83a91959ac01381dc4e8"><param name="Name" value="irplib_stdstar_select_stars_dist"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga28316d8f0619bdbd0040b1f56799e7ab"><param name="Name" value="irplib_stdstar_select_stars_mag"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#gac18c92be3d3c96ba57804b074a2abb7d"><param name="Name" value="irplib_stdstar_write_catalogs"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga2dbe2031bf6d669778dca42f6c343efc"><param name="Name" value="irplib_stdstar_check_columns_exist"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga36b4c90fd548dd0c00afe97b17a558e5"><param name="Name" value="irplib_stdstar_find_closest"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga4d69ae957de04b1769ac225f12834027"><param name="Name" value="irplib_stdstar_find_star"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga93b46d8ac857a0d0fdc781b56a91a8ba"><param name="Name" value="irplib_stdstar_get_conversion"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga6e68e6a9d0bbb41ef717234b9f289dab"><param name="Name" value="irplib_stdstar_get_mag_zero"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#gabbad67ff18cb901914caa9e864969dea"><param name="Name" value="irplib_stdstar_get_sed"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga1690bd84c24e905e384b8f725bf7aff1"><param name="Name" value="irplib_stdstar_load_catalog"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga080e06303f3f83a91959ac01381dc4e8"><param name="Name" value="irplib_stdstar_select_stars_dist"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#ga28316d8f0619bdbd0040b1f56799e7ab"><param name="Name" value="irplib_stdstar_select_stars_mag"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__stdstar.html#gac18c92be3d3c96ba57804b074a2abb7d"><param name="Name" value="irplib_stdstar_write_catalogs"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#ga981d6da0b42f19d672fcfd416a690ad9"><param name="Name" value="IRPLIB_SWAP"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga59a68df1795523d4f7653875bd9fc01d"><param name="Name" value="irplib_table_read_from_frameset"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__polynomial.html#gac071aa34964fb85cad9374710bf03168"><param name="Name" value="irplib_trace"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html"><param name="Name" value="irplib_utils"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#gac568c70a57ef8610f5fedc9f1943a3a1"><param name="Name" value="irplib_apertures_find_max_flux"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#gae13f0d6b24ade506a99ac9c4bb09efde"><param name="Name" value="irplib_compare_tags"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga4ffea791c01c8a50093294d6dcbddb56"><param name="Name" value="irplib_dfs_product_save"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga346842d722834a2e6221ff2d86314b7e"><param name="Name" value="irplib_dfs_save_image"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga1fd7c2f4c00014049b0bf4bf6814b451"><param name="Name" value="irplib_dfs_save_image_"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga66f7adc9e165b4e934e3d57a700f55c1"><param name="Name" value="irplib_dfs_save_imagelist"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga4dc12f321e7aeb5e67ff19f815bfd7b7"><param name="Name" value="irplib_dfs_save_propertylist"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga62a91f8630af11164547c168660b2ade"><param name="Name" value="irplib_dfs_save_table"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga3d1a791b5dc870770611c7dbf60d02df"><param name="Name" value="irplib_dfs_table_convert"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga26c6209e5df98978e2922a15b47b47d1"><param name="Name" value="irplib_errorstate_dump_debug"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga901ff52a1c9dcdfcf2d2632d31064bdb"><param name="Name" value="irplib_errorstate_dump_info"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga6b29dac884b62ab52f43dd670d4d8386"><param name="Name" value="irplib_errorstate_dump_warning"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga9fe4dca85dee68061114e26fdc72a134"><param name="Name" value="irplib_frameset_find_file"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga5b20a00f315410b49b1db1dd2417fe68"><param name="Name" value="irplib_frameset_get_first_from_group"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954"><param name="Name" value="irplib_image_split"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga87417a67281b352eb8c2a627b2a47c12"><param name="Name" value="irplib_polynomial_fit_1d_create_common"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e"><param name="Name" value="irplib_reset"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html#ga59a68df1795523d4f7653875bd9fc01d"><param name="Name" value="irplib_table_read_from_frameset"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga1d49cb7f85fc246c8fdf38625c769f7a"><param name="Name" value="irplib_vector_fill_line_spectrum"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga6a463d7816b4164fdd23a4df2805cc95"><param name="Name" value="irplib_vector_fill_line_spectrum_fast"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761"><param name="Name" value="irplib_vector_fill_line_spectrum_model"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#gad22539bf83d1b08d845ed5f618a4009f"><param name="Name" value="irplib_vector_fill_logline_spectrum"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga75a85320c74d1088eeaeec97974d793c"><param name="Name" value="irplib_vector_fill_logline_spectrum_fast"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__calib.html#gacf0c80a14e58f7529e9589b4c0c7ace8"><param name="Name" value="irplib_vector_ksigma"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html"><param name="Name" value="irplib_wavecal"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga03d7f038adc7e18e7a9071581fa47a25"><param name="Name" value="irplib_bivector_count_positive"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga260740bf1f3fc364b301519eab3249a6"><param name="Name" value="irplib_bivector_find_shift_from_correlation"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f"><param name="Name" value="irplib_erf_antideriv"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga7bac402a4e2c60f7646f1e655a66833d"><param name="Name" value="irplib_plot_spectrum_and_model"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga8f49c4927c50a461288e8f19720dff86"><param name="Name" value="irplib_polynomial_find_1d_from_correlation"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#gacb058e60cdbdea2986a5c9b5ea5b97af"><param name="Name" value="irplib_polynomial_find_1d_from_correlation_"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga7e782bcb7ec0e638a93dba628916a7a8"><param name="Name" value="irplib_polynomial_find_1d_from_correlation_all"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga2dd3251367e2ee8b8bd5ce080e9f31bb"><param name="Name" value="irplib_polynomial_fit_2d_dispersion"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#gadf93655e2c7c0d5df23e2e3de66d0b56"><param name="Name" value="irplib_polynomial_shift_1d_from_correlation"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga1d49cb7f85fc246c8fdf38625c769f7a"><param name="Name" value="irplib_vector_fill_line_spectrum"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga6a463d7816b4164fdd23a4df2805cc95"><param name="Name" value="irplib_vector_fill_line_spectrum_fast"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761"><param name="Name" value="irplib_vector_fill_line_spectrum_model"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#gad22539bf83d1b08d845ed5f618a4009f"><param name="Name" value="irplib_vector_fill_logline_spectrum"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html#ga75a85320c74d1088eeaeec97974d793c"><param name="Name" value="irplib_vector_fill_logline_spectrum_fast"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structframe.html#aa09ac3788a7ed28d58f728d56621a5a0"><param name="Name" value="is_image"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga62f37c098ceea9f00ff6d148787d94a2"><param name="Name" value="is_special_midas_descr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#aca888edd94ff6e6689e0358ebeef3574"><param name="Name" value="ishift"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html"><param name="Name" value="Iterate over an image"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#a40c09eb863858be2b592ba9dd1e5280f"><param name="Name" value="last_absolute_order"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structslit__geometry.html#a20bb1b37051f3069d14674f8023b1c0b"><param name="Name" value="length"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#a07717a9419fd3f382f71b296502cf505"><param name="Name" value="linepix"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#a061c6a79aabc0b4782102038c8fc01b3"><param name="Name" value="lines"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist.html"><param name="Name" value="Lists of frames with properties."></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaeb6e0604594f159f7c9fc457dff64886"><param name="Name" value="load_frame"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga01414f0f04f79fd8686c2f6f9f478fbc"><param name="Name" value="load_frame_header"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga9e7eadf2d9728e691ea6faf51032cd8c"><param name="Name" value="load_header"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga192772b744a088e5d80b13b4ca533806"><param name="Name" value="LSQFIT"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html"><param name="Name" value="lt_type"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#a2306b3c512175cded748edf1993d3b7c"><param name="Name" value="absolute_order"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#a8b0b5b5221643675814bb5ff01574a75"><param name="Name" value="dispersion_relation"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#a4e30c814b17e79857c8ada246960df6d"><param name="Name" value="first_absolute_order"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#a40c09eb863858be2b592ba9dd1e5280f"><param name="Name" value="last_absolute_order"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#ad3796ff190452772b26c8f10cd11b49d"><param name="Name" value="table"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#a5506257685971316747b22175257f279"><param name="Name" value="traces"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#af01708c7edac3dd3d95f69db6a3d4d10"><param name="Name" value="windows"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__recipe__main.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="main"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__recipe__main.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="recipe_main"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="uves_corrbadpix_test"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="uves_dfs"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="uves_extract_test"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__polynomial__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="uves_polynomial_test"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="uves_qclog_test"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="uves_response_test"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="uves_test"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="uves_utils_test"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="uves_wavecal_test"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html"><param name="Name" value="Master flat reduction"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga42a3691025750c317d1f147208f826f0"><param name="Name" value="MATINV"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__remove__crh__single.html#ga0a3abbca80bc98e7abcb3ae73abe0f14"><param name="Name" value="MAX_ITERATIONS"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#ga0592dba56693fad79136250c11e5a7fe"><param name="Name" value="MAX_SIZE"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#abb856b4a9c6957fc21484c910a26a322"><param name="Name" value="maxxc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#ab4e13c3551f2d0a7e8c1735819be5d9c"><param name="Name" value="mdisp"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__deque__.html#ac21c4e86718521af164a12c154629ed1"><param name="Name" value="members"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html"><param name="Name" value="Messaging"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html"><param name="Name" value="MIDAS <-> CPL interface"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html#ga03b8f8e3c131a0e32e71c41770ff4f24"><param name="Name" value="MIDAS_BUG"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__utils.html"><param name="Name" value="Miscellaneous Utilities"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#acd5e2b9dd68fd3f33b72d4a484923d0d"><param name="Name" value="mxc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad"><param name="Name" value="my_uves_propertylist_contains"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__irplib__hist__.html#a27ec7606b16c4cceb446c59c1e44b570"><param name="Name" value="nbins"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structframe.html#ad61fe8520a5f79573af689467715bf24"><param name="Name" value="need_to_save"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#a7f280baf6957c0ec55580efc7601a6d2"><param name="Name" value="observed"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__oddeven.html"><param name="Name" value="Odd/Even column effect correction"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structslit__geometry.html#a628a07ea69ccdc79f3df7e5b819608de"><param name="Name" value="offset"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gade9f76d1dc7526cbd212c04a74255b17"><param name="Name" value="opt_define_sky"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga55de773dfa081016fda249a7cb7878de"><param name="Name" value="opt_extract"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga1b8d6c2489fbc99e080dcdcc1dff5f1a"><param name="Name" value="opt_extract_sky"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga8f31c60f3e1e173ad20217652934480c"><param name="Name" value="opt_get_flux_sky_variance"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gaa6e6619285bc14f8d61ed59ec8266d6e"><param name="Name" value="opt_get_noise_median"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga95cd798921bdd0f4606d5dbb45d0dab7"><param name="Name" value="opt_get_order_width"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga74a27fdb394ea3be89fdd31f6c124da3"><param name="Name" value="opt_get_redchisq"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga72eb895e6062614f776c8519f13dfb5e"><param name="Name" value="opt_get_sky"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gae3e0e629c167ff2012d0f200c347d1dc"><param name="Name" value="opt_measure_profile"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gad07884e88093f0e0ee15519a30eb8d3f"><param name="Name" value="opt_measure_profile_order"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga6ca277a820936e41b96d85c6bf0ea21b"><param name="Name" value="opt_reject_outlier"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gac4b249fd5e1d761d4d628fc58360cd59"><param name="Name" value="opt_sample_spatial_profile"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga0e232bc2628165c5e6aed6c3f12443c2"><param name="Name" value="opt_subtract_sky"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__merge.html"><param name="Name" value="Order merging"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#a427125cee224c0ba4ef22905d172853a"><param name="Name" value="param"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga41f9034d45d27b699e4bb70c322d8856"><param name="Name" value="parse_history"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#ga8d65e1daf239b7e190cec6f51dac20b3"><param name="Name" value="parse_midas_poly"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067"><param name="Name" value="passure"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__plot.html"><param name="Name" value="Plot CPL tables/images"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__ppm.html"><param name="Name" value="Point pattern matching"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9"><param name="Name" value="pol"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html"><param name="Name" value="Polynomials"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html"><param name="Name" value="Print CPL objects"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__propertylist__.html#a0fd4c2141ccd41b592ad4939f9ae5eae"><param name="Name" value="properties"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html"><param name="Name" value="Property Lists"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaf74be8eb01a9945733d580bcc392ccb6"><param name="Name" value="propertylist_append_property"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga6ecdfc36cbcb2817a7a70b9f656f8906"><param name="Name" value="propertylist_prepend_property_cpl"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gac732e85fc4e70dab4119484e23c9ec55"><param name="Name" value="push_pop_error"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__irplib__hist__.html#a29b7decd5422d6ec41528ba050f95ab6"><param name="Name" value="range"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__regexp__.html#a53470ca9d753fb7878bad1ab00f0ac30"><param name="Name" value="re"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__recipe.html"><param name="Name" value="Recipe"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__infrastructure.html"><param name="Name" value="Recipe infrastructure"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__ima__arith.html"><param name="Name" value="Recipe to do operations on an image"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__physmod.html"><param name="Name" value="Recipe to remove CRHs from an image"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__utl__unpack.html"><param name="Name" value="Recipe to unpack frames"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__cdalign.html"><param name="Name" value="Recipe: Cross Disperser alignment"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__cal__mkmaster.html"><param name="Name" value="Recipe: Make master"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__mbias.html"><param name="Name" value="Recipe: Master Bias"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__mdark.html"><param name="Name" value="Recipe: Master Dark"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__mflat.html"><param name="Name" value="Recipe: Master Flat"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html"><param name="Name" value="Recipe: Order Position"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__redchain.html"><param name="Name" value="Recipe: Reduction Chain"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response.html"><param name="Name" value="Recipe: Response"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html"><param name="Name" value="Recipe: Science Reduction"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__obs__spatred.html"><param name="Name" value="Recipe: Science reduction"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__tflat.html"><param name="Name" value="Recipe: TFlat Reduction"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html"><param name="Name" value="Recipe: UVES Physical Model"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__recipe__main.html"><param name="Name" value="recipe_main"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__remove__crh__single.html"><param name="Name" value="Remove Cosmic Rays single (uves_remove_crh_single)"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gac3d98948d7bf5772674a0a6042b82bf2"><param name="Name" value="repeat_orderdef"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaa6f08c08604f669d5248a50db05095c6"><param name="Name" value="REQ_CPL_MAJOR"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaab1b7d291b65c497a7a4d32822095d10"><param name="Name" value="REQ_CPL_MICRO"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gae2b8645924a1fcbfb414a387b6f33b3b"><param name="Name" value="REQ_CPL_MINOR"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaa0a0b8fa9e125de9c214da98e8be71c7"><param name="Name" value="REQ_QF_MAJOR"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga4fe1c476d4c44db597fd6f16f962185e"><param name="Name" value="REQ_QF_MICRO"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga9abd878864bfd54b300f44404c04dbf2"><param name="Name" value="REQ_QF_MINOR"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response__test.html"><param name="Name" value="Response recipe related unit tests"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gaded8ab18ec33bfaedbf404da6621c099"><param name="Name" value="revise_noise"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601"><param name="Name" value="scale"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gae41c12c4d3844865f17d833c1cb1417e"><param name="Name" value="scdcop"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaeabc5771665c7fe3cd9ba0d9eb0a2e27"><param name="Name" value="scdrd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga3df6bb0a7782b06c85dca025c4bd5682"><param name="Name" value="scdwr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga699b1c68f1d91a6b1ca600921c41d21a"><param name="Name" value="scired_qclog"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaafc1d839c45a943184a3bb4939d74751"><param name="Name" value="sckfnd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#gae1ef37fb82ed9624dcb990d250c927c9"><param name="Name" value="set_all_raw_none"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gac43d4468f847fadb5e9ff0895b0cab16"><param name="Name" value="set_column_format_unit_tnull"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596"><param name="Name" value="shift"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__deque__.html#a7136634cae2126e5a2f9111cd65d2e39"><param name="Name" value="size"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga719a4f7457ed2683599e5f62a429e1af"><param name="Name" value="sizeof_cpltype"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structslit__geometry.html"><param name="Name" value="slit_geometry"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structslit__geometry.html#a20bb1b37051f3069d14674f8023b1c0b"><param name="Name" value="length"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structslit__geometry.html#a628a07ea69ccdc79f3df7e5b819608de"><param name="Name" value="offset"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wavecal.html"><param name="Name" value="Spectro functionality"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#a041e833fb689436169dff21ae35bd1a7"><param name="Name" value="spectrum"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__irplib__hist__.html#afd8188b47faf858c421527d3393822e0"><param name="Name" value="start"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__backsub.html"><param name="Name" value="Substep: Background Subtraction"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html"><param name="Name" value="Substep: Extraction"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__rebin.html"><param name="Name" value="Substep: Rebinning"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html"><param name="Name" value="Substep: Reduce"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__utils.html"><param name="Name" value="Substep: UVES physical model utilities"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#gad5574e8fead13bd32bd46eb60ca091ac"><param name="Name" value="subtract_sky"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#ga26fe47b7ce4f084c5833056dcda44fb5"><param name="Name" value="subtract_sky_row"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#ad3796ff190452772b26c8f10cd11b49d"><param name="Name" value="table"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga638d89407aed0a4641df1ce39f70392a"><param name="Name" value="table_colname_from_number"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gaff61faa79a507025396b5ff638457e5b"><param name="Name" value="table_cpltype_to_dtype"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#gacd8b0d2f194d8ea65feea67f5d59772c"><param name="Name" value="table_dtype_to_cpltype"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#ga08eba462d1c80f2b403eb9da1fc1e698"><param name="Name" value="table_erase_selected"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga8f640b729dc132a3dfb6151317f54ad7"><param name="Name" value="tcard"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga65e78c6b1bd838a7bbb398c2cc572168"><param name="Name" value="tcawr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga583dd528e15702b2e4bdf48c02511a04"><param name="Name" value="tcerd"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__flames__midas__def.html#ga1f2951b5eaf4690950adc4a7fe151a5e"><param name="Name" value="tcewr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response__test.html#ga0e5837c456b51889ea0c7af0e03eb661"><param name="Name" value="test_3dtable"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix__test.html#gaab99aa10d70ef9b2fe672f56c15f60c8"><param name="Name" value="test_bad_corr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__test.html#gac6bd9700cd243b2b05fcfeff33c2ecff"><param name="Name" value="test_extract"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__test.html#gac0ef6293fdbf2c970e010fd74c7138b5"><param name="Name" value="test_gaussian_fitting"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__test.html#ga017b6e795dd968c9e025ca0d6f3611f5"><param name="Name" value="test_iterate"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response__test.html#ga725c6509665bad47a2dfc8338b9513a2"><param name="Name" value="test_load_3dtable"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#ga25c633cbad05c6881a85e9fa05ee067f"><param name="Name" value="test_load_linetable"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__polynomial__test.html#ga9f16114e84dbc27c20652d0e2876d021"><param name="Name" value="test_polynomial"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__polynomial__test.html#gaecea8e95aa6be883a21e039669855c2f"><param name="Name" value="test_polynomial_fit_2d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal__test.html#gaef1e683ff19a9e4e2e4932e88c952561"><param name="Name" value="test_ppm"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#gaf03bdc8665be4a9b822ad51cc627a781"><param name="Name" value="test_process"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog__test.html#gaf1c56ce99831ec1d5b6a82019609f9bd"><param name="Name" value="test_qc_name"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#ga8168aec179eed4c63b7f9c61b94d2e2b"><param name="Name" value="test_save_frame"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#ga55bd09e356002a31fb5223db095c6658"><param name="Name" value="test_save_image"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wlcalib__test.html"><param name="Name" value="Testing of the CPL Wavelength calibration"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__framelist__test.html"><param name="Name" value="Testing of the IRPLIB framelist object"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__plugin__test.html"><param name="Name" value="Testing of the IRPLIB utilities"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga32377202a0bcb66b410988f7c6cf51fa"><param name="Name" value="tflat_qclog"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga2fcc313cc2f28775bd7aef5abb670751"><param name="Name" value="trace_order"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#a5506257685971316747b22175257f279"><param name="Name" value="traces"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__base__spectrum__model.html#aecc86670f5f4a3f46c777ad9a416fab9"><param name="Name" value="ulines"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__base__spectrum__model.html#aecc86670f5f4a3f46c777ad9a416fab9"><param name="Name" value="irplib_base_spectrum_model"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#acd97152ae922127d7d04cc1d90e95250"><param name="Name" value="irplib_line_spectrum_model"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#gab7f87424906c5f0eef60d4de2ce4a01f"><param name="Name" value="update_max"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga4904a294505b28ee322a2fb73f1814bd"><param name="Name" value="USE_PPM"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html"><param name="Name" value="Utility for Physical Model"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html"><param name="Name" value="Utility function unit tests"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html"><param name="Name" value="Utility functions"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html"><param name="Name" value="Utility functions (low level)"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__wrappers.html"><param name="Name" value="Utility functions (wrappers)"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix__test.html"><param name="Name" value="UVES bad pixel correction unit tests"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html"><param name="Name" value="UVES CD align unit tests"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__test.html"><param name="Name" value="UVES extraction unit tests"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__test.html"><param name="Name" value="UVES library unit tests"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__polynomial__test.html"><param name="Name" value="UVES polynomial unit tests"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog__test.html"><param name="Name" value="UVES qclog unit tests"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal__test.html"><param name="Name" value="UVES wavelength calibration unit tests"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga579bc295bb9d73af0b052f37b576f552"><param name="Name" value="uves_absolute_order"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response.html#ga9efc933848e1bebb4766a0d10a8e9c93"><param name="Name" value="uves_align"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga1f407a71fc1fd3d5d0d83fdc141669eb"><param name="Name" value="uves_average_images"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga8ec4a0e22ac62eaed019f740acf6810d"><param name="Name" value="uves_average_reject"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#ga2078e2b562988b0d9970d29bdf48c641"><param name="Name" value="uves_average_reject_test"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35"><param name="Name" value="uves_badmap_free"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html"><param name="Name" value="uves_baryvel"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html#ga3d3880b9ecf3dac9a3ed30608a5d4012"><param name="Name" value="barvel"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html#ga11beea47928ca353a23b5399e7ed644e"><param name="Name" value="compxy"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html#gaa1c25713efeab659789f821699975217"><param name="Name" value="deg2dms"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html#gaaaf92abe334c82d9d71517236508ff3f"><param name="Name" value="deg2hms"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html#ga03b8f8e3c131a0e32e71c41770ff4f24"><param name="Name" value="MIDAS_BUG"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html#ga7ab5f73d3e1aad2933cbcf66dff04aa3"><param name="Name" value="uves_baryvel"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c"><param name="Name" value="uves_blank2dot"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#gad468625ee13cf6a664139550c3b65436"><param name="Name" value="UVES_BLAZE_DUMMY_VAL"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__cal__cd__align.html"><param name="Name" value="Uves_cal_cd_align"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response.html#ga0e3832a791528896648761e02fac2b9c"><param name="Name" value="uves_calculate_response"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga84bbe16d83dc492a6104f3b301f1c2f9"><param name="Name" value="uves_ccd_is_new"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga982e941690a52132bba5f2bbe300f719"><param name="Name" value="uves_check_version"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html"><param name="Name" value="uves_chip"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#ga34fa9c6d689106d4d44c572b33ac6410"><param name="Name" value="uves_chip_get_det"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e"><param name="Name" value="uves_chip_get_first"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142"><param name="Name" value="uves_chip_get_index"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a"><param name="Name" value="uves_chip_get_next"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#gacc97ccf41a4ed99989d1ddc52192aac6"><param name="Name" value="uves_chip_tochar"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#ga8319c211e6b7c649287e432bf78dc719"><param name="Name" value="uves_chip_tostring_lower"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d"><param name="Name" value="uves_chip_tostring_upper"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#ga34fa9c6d689106d4d44c572b33ac6410"><param name="Name" value="uves_chip_get_det"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e"><param name="Name" value="uves_chip_get_first"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142"><param name="Name" value="uves_chip_get_index"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a"><param name="Name" value="uves_chip_get_next"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#gacc97ccf41a4ed99989d1ddc52192aac6"><param name="Name" value="uves_chip_tochar"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#ga8319c211e6b7c649287e432bf78dc719"><param name="Name" value="uves_chip_tostring_lower"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d"><param name="Name" value="uves_chip_tostring_upper"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gacf7edbe26b2c28fbe6b04bcd0c0fbe54"><param name="Name" value="uves_chop_eso_prefix"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat__combine.html#gabd0a1d5c0c76fcafb1ff0d3fb7aa9249"><param name="Name" value="uves_combine_flats"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix.html"><param name="Name" value="uves_corrbadpix"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c"><param name="Name" value="dup_map"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35"><param name="Name" value="uves_badmap_free"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix.html#gafcf45594af0c57c52ef369dd8d0ee84c"><param name="Name" value="uves_correct_badpix"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix.html#gabddade195002b7813f7cb41baa85b729"><param name="Name" value="uves_correct_badpix_all"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix.html#ga3ab8d84dd9d1b03073d2b535c0236bcb"><param name="Name" value="uves_get_badpix"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix__test.html"><param name="Name" value="uves_corrbadpix_test"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="main"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix__test.html#gaab99aa10d70ef9b2fe672f56c15f60c8"><param name="Name" value="test_bad_corr"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix.html#gafcf45594af0c57c52ef369dd8d0ee84c"><param name="Name" value="uves_correct_badpix"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix.html#gabddade195002b7813f7cb41baa85b729"><param name="Name" value="uves_correct_badpix_all"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaea6246a88791de8614f3af35802dc644"><param name="Name" value="uves_cosrout"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga7146e7bab312652fdb0a9e88e838ef8d"><param name="Name" value="uves_create_image"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7"><param name="Name" value="uves_define_noise"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga2f7ee53133e419d19f10cbc231e8054a"><param name="Name" value="uves_delete_bad_lines"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html"><param name="Name" value="uves_dfs"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#ga88bbe197eb9fde07ce6d0764f542bc6b"><param name="Name" value="convert_midas_array"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#gaf312209df39d763b6975f2682529a4e8"><param name="Name" value="eval_gauss"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="main"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#ga8d65e1daf239b7e190cec6f51dac20b3"><param name="Name" value="parse_midas_poly"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#ga25c633cbad05c6881a85e9fa05ee067f"><param name="Name" value="test_load_linetable"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#gaf03bdc8665be4a9b822ad51cc627a781"><param name="Name" value="test_process"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#ga8168aec179eed4c63b7f9c61b94d2e2b"><param name="Name" value="test_save_frame"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dfs.html#ga55bd09e356002a31fb5223db095c6658"><param name="Name" value="test_save_image"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gac3bc0bb9cfb587facec4f1007d18e2cb"><param name="Name" value="uves_dfs_setup_product_header"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga274e895ff3513060affa6b987a13842a"><param name="Name" value="uves_draw_lines"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga3d0f9d7641a1bb0eb356813c8d179ddb"><param name="Name" value="uves_draw_orders"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html"><param name="Name" value="uves_dump"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga5e8553a2dcbbfe43fc15e21e4f54c381"><param name="Name" value="uves_print_cpl_frame"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga74fae5c56aeaf8262cf416a8d747d3f2"><param name="Name" value="uves_print_cpl_frameset"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga873425d85be55f6137bb8c1e8e329b5e"><param name="Name" value="uves_print_cpl_property"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga3bdf3305f871cf59e1010122e3078edb"><param name="Name" value="uves_print_uves_propertylist"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga762dd0a18ecc4b13ebcc9a8aa5be5be9"><param name="Name" value="uves_tostring_cpl_frame_group"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga643a38c444a34da5266bed60ca817ebb"><param name="Name" value="uves_tostring_cpl_frame_level"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga7b4de02190abecc763b7be5c85e89b6e"><param name="Name" value="uves_tostring_cpl_frame_type"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d"><param name="Name" value="uves_tostring_cpl_type"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gab22cde2fd3c6fcee8f63c8b27431f0be"><param name="Name" value="uves_end"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html"><param name="Name" value="uves_error"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#gac6cb8562d0764cfd2826e0f4f2d34cc2"><param name="Name" value="assure"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199"><param name="Name" value="assure_mem"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595"><param name="Name" value="assure_nomsg"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c"><param name="Name" value="check"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847"><param name="Name" value="check_nomsg"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#gad639cd191162e80c9c5793ec5740962e"><param name="Name" value="ck0"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga1d9cf6d2c114455090597b944f9db58e"><param name="Name" value="ck0_nomsg"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga958b5e0e6ba3332708f8197759a4692c"><param name="Name" value="cknull"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga3258959709414833c63cd6aa06a45d7b"><param name="Name" value="cknull_nomsg"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067"><param name="Name" value="passure"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga7e6bb359a87117dfc0e2c38d9f5d0108"><param name="Name" value="uves_error_dump"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5"><param name="Name" value="uves_error_reset"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga7e6bb359a87117dfc0e2c38d9f5d0108"><param name="Name" value="uves_error_dump"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5"><param name="Name" value="uves_error_reset"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html"><param name="Name" value="uves_extract"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gaae8e2ffac38d164c6f35df18166ee0d2"><param name="Name" value="area_above_line"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gacb90d6e405582e2d261bc5c117a1c20f"><param name="Name" value="detect_ripples"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gaace2260dc82cd97c5a88753a26c00c39"><param name="Name" value="estimate_sn"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga658f6a76a3bcf324623828302b2b1205"><param name="Name" value="extract_order_simple"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gade9f76d1dc7526cbd212c04a74255b17"><param name="Name" value="opt_define_sky"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga55de773dfa081016fda249a7cb7878de"><param name="Name" value="opt_extract"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga1b8d6c2489fbc99e080dcdcc1dff5f1a"><param name="Name" value="opt_extract_sky"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga8f31c60f3e1e173ad20217652934480c"><param name="Name" value="opt_get_flux_sky_variance"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gaa6e6619285bc14f8d61ed59ec8266d6e"><param name="Name" value="opt_get_noise_median"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga95cd798921bdd0f4606d5dbb45d0dab7"><param name="Name" value="opt_get_order_width"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga74a27fdb394ea3be89fdd31f6c124da3"><param name="Name" value="opt_get_redchisq"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga72eb895e6062614f776c8519f13dfb5e"><param name="Name" value="opt_get_sky"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gae3e0e629c167ff2012d0f200c347d1dc"><param name="Name" value="opt_measure_profile"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gad07884e88093f0e0ee15519a30eb8d3f"><param name="Name" value="opt_measure_profile_order"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga6ca277a820936e41b96d85c6bf0ea21b"><param name="Name" value="opt_reject_outlier"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gac4b249fd5e1d761d4d628fc58360cd59"><param name="Name" value="opt_sample_spatial_profile"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga0e232bc2628165c5e6aed6c3f12443c2"><param name="Name" value="opt_subtract_sky"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gac3d98948d7bf5772674a0a6042b82bf2"><param name="Name" value="repeat_orderdef"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gaded8ab18ec33bfaedbf404da6621c099"><param name="Name" value="revise_noise"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga724649dabb1df68c512fdd9e99b36f0d"><param name="Name" value="uves_extract"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga99751e637d04bc19090446f3a15974d0"><param name="Name" value="uves_extract_define_parameters"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gaa6ae7afeaf5c4a71eb399ffa29a828f7"><param name="Name" value="uves_get_extract_method"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#ga99751e637d04bc19090446f3a15974d0"><param name="Name" value="uves_extract_define_parameters"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html"><param name="Name" value="uves_extract_iterate"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#ga3233f3e30f36df3f47ddc7b95beaa8a8"><param name="Name" value="illegal_position"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#gabf1b3e568a93017a6a95ae64ae6f13b7"><param name="Name" value="uves_iterate_delete"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#ga7dbbaee29928f76eae48fc6bca0f64f8"><param name="Name" value="uves_iterate_dump"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961"><param name="Name" value="uves_iterate_finished"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a"><param name="Name" value="uves_iterate_increment"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#ga8601e16b56ff03ee210eec3684fd5501"><param name="Name" value="uves_iterate_new"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb"><param name="Name" value="uves_iterate_set_first"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__test.html"><param name="Name" value="uves_extract_test"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__test.html#ga7cb1d3ff41cb3f702a9b25abe8184e87"><param name="Name" value="create_spectrum"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="main"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__test.html#gac6bd9700cd243b2b05fcfeff33c2ecff"><param name="Name" value="test_extract"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__test.html#ga017b6e795dd968c9e025ca0d6f3611f5"><param name="Name" value="test_iterate"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#ga2e64b5512eb80e5f14212851bebef98e"><param name="Name" value="uves_filter_cosmic_test"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#ga61202bb11e2387a91f36248674241b98"><param name="Name" value="uves_filter_image_average"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f"><param name="Name" value="uves_filter_image_median"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaad319593f3e530d1c00b60afc64eea6e"><param name="Name" value="uves_find_next"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#gaa47cef77156bb2a234cc278c29b64343"><param name="Name" value="uves_find_property"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#gab27457a252d480095e9f78b904becdc6"><param name="Name" value="uves_find_property_const"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#gaa9c5cf7cbad2eb15c7248a89e547af82"><param name="Name" value="uves_find_property_test"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#ga925c077e4720e3357196ef4161ffea53"><param name="Name" value="uves_fit_gaussian_2d_image"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga7bcb4bda625a9aee0a93daaa409e1320"><param name="Name" value="uves_flames_pfits_get_dit"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga25f5bbe03eaa1b8eede6c45d1c92daf3"><param name="Name" value="uves_flames_pfits_get_ident"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gac758aa4b71e0c505df55d1d99d7b62f8"><param name="Name" value="uves_flames_pfits_get_nflats"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga81aff5981269ff140a1baca2df392f1b"><param name="Name" value="uves_flames_pfits_get_object"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gae70f662017b21fd4d83fa9d7b16fec50"><param name="Name" value="uves_flames_pfits_get_plateid"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga18d5d37d2b633d137b3c256e9e61c029"><param name="Name" value="uves_flames_pfits_set_ccfposmax"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga95b184c2af4a33cac829ff926b10138b"><param name="Name" value="uves_flames_pfits_set_newplateid"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaabfabe05e25ffc4af017f4e29b22a56e"><param name="Name" value="uves_flat_create_normalized_master2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaa6e2f1554b5345868a2f71604a42409b"><param name="Name" value="uves_flat_create_normalized_master"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__flatfield.html"><param name="Name" value="uves_flatfield"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__flatfield.html#gaa96727cda19ae088e522da95f95e6dbd"><param name="Name" value="uves_flatfielding"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__flatfield.html#gaf870caa19bcc12c4b863a0a022663f22"><param name="Name" value="uves_get_flatfield_method"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__flatfield.html#gaa96727cda19ae088e522da95f95e6dbd"><param name="Name" value="uves_flatfielding"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f"><param name="Name" value="uves_format_is_new"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga60f54c7fc4b06d4d5568a11b8a34b048"><param name="Name" value="uves_frameset_dump"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga5d332ad2d1f28993e9c2db3154b2236b"><param name="Name" value="uves_frameset_extract"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c"><param name="Name" value="uves_gauss"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea"><param name="Name" value="uves_gauss_derivative"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga9f3e7e9d99f1b9785c335cc1a8ecb49f"><param name="Name" value="uves_gauss_linear"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga98837a7122178c9d18c99174bfd53d9b"><param name="Name" value="uves_gauss_linear_derivative"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga81ac7cec9a26af57d8e43728c004a072"><param name="Name" value="uves_gaussrand"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gab6d9ffe3669b75518bf7108681c52fa6"><param name="Name" value="uves_gen_lowpass"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__corrbadpix.html#ga3ab8d84dd9d1b03073d2b535c0236bcb"><param name="Name" value="uves_get_badpix"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#ga14f04fabe88e704a3e9fd81e666ed237"><param name="Name" value="uves_get_blaze_ratio"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__time.html#ga1db9a9647c947cd72abe846a12d483fc"><param name="Name" value="uves_get_datetime_iso8601"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract.html#gaa6ae7afeaf5c4a71eb399ffa29a828f7"><param name="Name" value="uves_get_extract_method"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__flatfield.html#gaf870caa19bcc12c4b863a0a022663f22"><param name="Name" value="uves_get_flatfield_method"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gae14eb4ed643b704af7b942f55eac9575"><param name="Name" value="uves_get_license"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__merge.html#gaeef8fc529ffcfda1a562fd06c7540069"><param name="Name" value="uves_get_merge_method"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga315583aa3196da7e1648ec9203837279"><param name="Name" value="uves_get_paf_name"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga49d4e127229f5edcf7ec50b54b0a2f1c"><param name="Name" value="uves_get_physmod_offset"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga13b5ba0edd1afd17b652cbce19ad5a74"><param name="Name" value="uves_get_pro_catg_special"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#gaee7a0d27a947e1e0b3e8d0f94b5c3dff"><param name="Name" value="uves_get_rootname"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga576094df329c3bb87a80a251007400a6"><param name="Name" value="uves_get_version"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4"><param name="Name" value="uves_get_version_binary"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gae7a22d7bd34d61c32515d570e512e189"><param name="Name" value="uves_get_wave_map"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#gaa46ac08a5a64f9d633d8c7735a0aeb64"><param name="Name" value="uves_hough"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaa4b717df379e29d4c74c066a528e37b2"><param name="Name" value="uves_image_mflat_detect_blemishes"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga542034178e7fa796298d276225ffcfe2"><param name="Name" value="uves_image_save"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gadff34d910bf9b353a6d69679425e3eed"><param name="Name" value="uves_image_smooth_fft"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga93dbb409bbd9a6b2a81dac3bc8d57733"><param name="Name" value="uves_image_smooth_mean_x"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga5a8a79b450b996dcaa97c3f2a2a56655"><param name="Name" value="uves_image_smooth_median_x"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaeeb17229525912d20c2987a4e8dcee6f"><param name="Name" value="uves_image_smooth_x"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gac3fd5fb33eba5d655fc243ff356bcdcb"><param name="Name" value="uves_image_smooth_y"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga9a60246b0b018cbee0593ced9361484f"><param name="Name" value="uves_imagelist_get_clean_mean_levels"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga96309764c7e5f468a608b3f5a329e1e3"><param name="Name" value="uves_imagelist_save"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga4cbaa270b775e7460b66e02f5b204203"><param name="Name" value="uves_imagelist_subtract_values"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga91713592f345a0d1a44e37a50202d6ed"><param name="Name" value="uves_initialize"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37"><param name="Name" value="uves_initialize_image_header"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#gabf1b3e568a93017a6a95ae64ae6f13b7"><param name="Name" value="uves_iterate_delete"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#ga7dbbaee29928f76eae48fc6bca0f64f8"><param name="Name" value="uves_iterate_dump"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961"><param name="Name" value="uves_iterate_finished"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a"><param name="Name" value="uves_iterate_increment"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#ga8601e16b56ff03ee210eec3684fd5501"><param name="Name" value="uves_iterate_new"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb"><param name="Name" value="uves_iterate_set_first"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gad61bad9fe3d7614ebd9de472f600c6eb"><param name="Name" value="uves_ksigma_stack"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga8927e9c74fcd2ff11122490e4f42fe90"><param name="Name" value="uves_ksigma_vector"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga24ea1bc4c54b9e30dc5cb6edb0671ec2"><param name="Name" value="uves_locate_orders"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gad74b8d3dab9e9b4d32d0cc2d4bf898be"><param name="Name" value="uves_lt_delete"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga28897452a40eb7c7a957c0761dd21842"><param name="Name" value="uves_lt_get_absord"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gaa98b57c1a71f64a50a4f4fa83d2d590c"><param name="Name" value="uves_lt_get_disprel"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gaabce897a294645e87763f7f5ecdbcd30"><param name="Name" value="uves_lt_get_firstabs"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gaca1246cec58a8bb8f218b993428985bc"><param name="Name" value="uves_lt_get_lastabs"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff"><param name="Name" value="uves_lt_get_table"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga50d8473c5bddc7dec58f539a6026eb49"><param name="Name" value="uves_lt_new"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__merge.html"><param name="Name" value="uves_merge"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__merge.html#gaeef8fc529ffcfda1a562fd06c7540069"><param name="Name" value="uves_get_merge_method"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__merge.html#gad20fc9888b15052d53d15c7fd2041181"><param name="Name" value="uves_merge_orders"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__merge.html#gad20fc9888b15052d53d15c7fd2041181"><param name="Name" value="uves_merge_orders"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga429b19c63b9710f0d332a2f39ddac05a"><param name="Name" value="uves_mflat_at_ypos"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__mflat__combine.html"><param name="Name" value="Uves_mflat_combine"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat__combine.html#ga74ca4174a5bba5f066a627eddc5d5d9c"><param name="Name" value="uves_mflat_combine_define_parameters_body"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat__combine.html#gad2e644f93f0dba7c954f2e014f3f3200"><param name="Name" value="uves_mflat_combine_desc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat__combine.html#ga7c98495b1b6ad337e267c3fd44d12c4b"><param name="Name" value="uves_mflat_combine_exe_body"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga7d38d6807a0067cc5e8dd44a44ebaa07"><param name="Name" value="uves_mflat_define_parameters_body"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga98d921655e122e6b38db0288756375a6"><param name="Name" value="uves_mflat_desc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga1bae4e786a7fc24b0061ae293112f5ae"><param name="Name" value="uves_mflat_exe_body"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga2598ddc0ef2df5c66cd4710829a02353"><param name="Name" value="uves_mflat_one"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga28f40f90cc7f91b1e2ef317c74c73fa2"><param name="Name" value="uves_mflat_process_chip"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga02a8ec0f31954bdcb88ca7b73f06babb"><param name="Name" value="uves_mflat_qclog"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#ga71c448c05cf468088ab8d5a10e31c0ed"><param name="Name" value="UVES_MIN_LINE_ROWS_TO_MAKE_FIT"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga32f63d655b7a15cb65c59f6ed9153a69"><param name="Name" value="uves_moffat"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga3268b9eca855e33e38a5bd58c5d512c0"><param name="Name" value="uves_moffat_derivative"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#gad7e37298e7f0b43a3ce3edff25ac4e45"><param name="Name" value="uves_msflats"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html"><param name="Name" value="uves_msg"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb"><param name="Name" value="uves_msg"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gab40c1f283043f87e188cde494836dfca"><param name="Name" value="uves_msg_add_warnings"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97"><param name="Name" value="uves_msg_debug"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b"><param name="Name" value="uves_msg_error"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gac522fbf0cdea3197a2bd0df38d3019aa"><param name="Name" value="uves_msg_get_domain"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga781eb662fe1449b6ffc27c381d177158"><param name="Name" value="uves_msg_get_warnings"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga249838f12e1a1ce18b2f8d4c16bf3078"><param name="Name" value="uves_msg_init"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gac46059c046c639441112609a0311752e"><param name="Name" value="uves_msg_louder"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga208ba2d8c46e592f572ad7bf14ba3b84"><param name="Name" value="uves_msg_louder_macro"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc"><param name="Name" value="uves_msg_low"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gac345c732a3bc5d9f695817759b8f6ce3"><param name="Name" value="uves_msg_macro"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga787671a04773bfc372598b47babe9eb8"><param name="Name" value="uves_msg_progress"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gaf97c630c8b96c1f038f747402cc561b2"><param name="Name" value="uves_msg_set_domain"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gab9fee51244a39b8b83db0c6fa9c374ed"><param name="Name" value="uves_msg_set_level"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga5d5259164b86fe1f3d99d4a2d3f3f68c"><param name="Name" value="uves_msg_softer"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gac40ef072b06ff52873a4ddd8f05f8be2"><param name="Name" value="uves_msg_softer_macro"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e"><param name="Name" value="uves_msg_warning"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gaa6b9038cc9d6dee4d6b2f86adb459ee3"><param name="Name" value="uves_msg_warning_macro"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gab40c1f283043f87e188cde494836dfca"><param name="Name" value="uves_msg_add_warnings"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97"><param name="Name" value="uves_msg_debug"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b"><param name="Name" value="uves_msg_error"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gac522fbf0cdea3197a2bd0df38d3019aa"><param name="Name" value="uves_msg_get_domain"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga781eb662fe1449b6ffc27c381d177158"><param name="Name" value="uves_msg_get_warnings"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga249838f12e1a1ce18b2f8d4c16bf3078"><param name="Name" value="uves_msg_init"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gac46059c046c639441112609a0311752e"><param name="Name" value="uves_msg_louder"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga208ba2d8c46e592f572ad7bf14ba3b84"><param name="Name" value="uves_msg_louder_macro"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc"><param name="Name" value="uves_msg_low"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gac345c732a3bc5d9f695817759b8f6ce3"><param name="Name" value="uves_msg_macro"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga787671a04773bfc372598b47babe9eb8"><param name="Name" value="uves_msg_progress"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gaf97c630c8b96c1f038f747402cc561b2"><param name="Name" value="uves_msg_set_domain"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gab9fee51244a39b8b83db0c6fa9c374ed"><param name="Name" value="uves_msg_set_level"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#ga5d5259164b86fe1f3d99d4a2d3f3f68c"><param name="Name" value="uves_msg_softer"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gac40ef072b06ff52873a4ddd8f05f8be2"><param name="Name" value="uves_msg_softer_macro"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e"><param name="Name" value="uves_msg_warning"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__msg.html#gaa6b9038cc9d6dee4d6b2f86adb459ee3"><param name="Name" value="uves_msg_warning_macro"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#ga1867e835a6183494d513613729836205"><param name="Name" value="uves_normalize_spectrum"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html"><param name="Name" value="uves_orderpos"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga8be5990f31b99ed6a4582388982f1b12"><param name="Name" value="autocorr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga0830b05ef03423ceca86b6386123f26d"><param name="Name" value="calculate_spacing"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga9ec0c0699858aa2709832fdf9732abee"><param name="Name" value="count_orders"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga0916288fc020f46150a3050ee529e2be"><param name="Name" value="delete_peak"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga10eb92856d9393ba040c2955f504cb71"><param name="Name" value="detect_lines"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga1b3faad60deb05543392b7d0761c42e2"><param name="Name" value="estimate_threshold"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga940d9bec43c7580b6044ccc0781f6508"><param name="Name" value="find_centroid"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#gad50db3ef4566d0ff652423541aaf8790"><param name="Name" value="firsttrace"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga63321f80b5c307c048cd012e43413dad"><param name="Name" value="fit_order_linear"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#gaee8ec7c4e8d83a1ef168f5c1c7c485a7"><param name="Name" value="get_orderlength"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga298b3cff7b38cee645a3155095f84981"><param name="Name" value="get_xcenter"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#gad2aa37539bc348053e032bb462c4fc2f"><param name="Name" value="get_ycenter"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga2fcc313cc2f28775bd7aef5abb670751"><param name="Name" value="trace_order"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#gab7f87424906c5f0eef60d4de2ce4a01f"><param name="Name" value="update_max"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga3d0f9d7641a1bb0eb356813c8d179ddb"><param name="Name" value="uves_draw_orders"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#gaa46ac08a5a64f9d633d8c7735a0aeb64"><param name="Name" value="uves_hough"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__orderpos.html#ga24ea1bc4c54b9e30dc5cb6edb0671ec2"><param name="Name" value="uves_locate_orders"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gab4d35d91d7acd120872d427842b13942"><param name="Name" value="uves_ordertable_traces_add"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga5498ccadef9be3eee6cfacfac75c7478"><param name="Name" value="uves_ordertable_traces_new"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga18caeeaa4c1ba5d2cb2062fab6a56121"><param name="Name" value="uves_paf_print_header"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga003a5b56bc7da0142638881e47006716"><param name="Name" value="uves_parameterlist_duplicate"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga713adfb93b9326021b5d80b2aaa649c4"><param name="Name" value="uves_paste_wave_accuracy"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html"><param name="Name" value="uves_pfits"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga41f9034d45d27b699e4bb70c322d8856"><param name="Name" value="parse_history"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga84bbe16d83dc492a6104f3b301f1c2f9"><param name="Name" value="uves_ccd_is_new"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gacf7edbe26b2c28fbe6b04bcd0c0fbe54"><param name="Name" value="uves_chop_eso_prefix"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga7bcb4bda625a9aee0a93daaa409e1320"><param name="Name" value="uves_flames_pfits_get_dit"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga25f5bbe03eaa1b8eede6c45d1c92daf3"><param name="Name" value="uves_flames_pfits_get_ident"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gac758aa4b71e0c505df55d1d99d7b62f8"><param name="Name" value="uves_flames_pfits_get_nflats"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga81aff5981269ff140a1baca2df392f1b"><param name="Name" value="uves_flames_pfits_get_object"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gae70f662017b21fd4d83fa9d7b16fec50"><param name="Name" value="uves_flames_pfits_get_plateid"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga18d5d37d2b633d137b3c256e9e61c029"><param name="Name" value="uves_flames_pfits_set_ccfposmax"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga95b184c2af4a33cac829ff926b10138b"><param name="Name" value="uves_flames_pfits_set_newplateid"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f"><param name="Name" value="uves_format_is_new"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga2aba19c10f2f21a717691bd4b148f669"><param name="Name" value="uves_pfits_get_airmass_end"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga36f17263450ba556317388c15905bc7e"><param name="Name" value="uves_pfits_get_airmass_start"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaabb5de1c212917f34b94de1c1587104d"><param name="Name" value="uves_pfits_get_ambipress"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga2cc76a99674d90a86d9d7174f33dc893"><param name="Name" value="uves_pfits_get_arcfile"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga8dc9fde0148605eee9109beca930f79e"><param name="Name" value="uves_pfits_get_badpxframe"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5"><param name="Name" value="uves_pfits_get_binx"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc"><param name="Name" value="uves_pfits_get_biny"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga45d7028cbd48f33f7c5589deb4ccd5c4"><param name="Name" value="uves_pfits_get_bitpix"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gacc6916f14b6591ccc948f1ca8117fbf0"><param name="Name" value="uves_pfits_get_bscale"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaeaf186ce3a84dfbca11c7cee211e80ce"><param name="Name" value="uves_pfits_get_bunit"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga42434cb12722d0eadd8b9f04f56c8237"><param name="Name" value="uves_pfits_get_ccdid"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7"><param name="Name" value="uves_pfits_get_cdelt1"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gab1af91452dda53e50314231795bf5308"><param name="Name" value="uves_pfits_get_cdelt2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga764b711e645e416c5be3882765baa14e"><param name="Name" value="uves_pfits_get_chip_name"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga4ee5f11b825d519d1a9aafb561e0d6f7"><param name="Name" value="uves_pfits_get_chipchoice"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e"><param name="Name" value="uves_pfits_get_chipid"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gab40bd41082796c15947b75ceddbbbd5c"><param name="Name" value="uves_pfits_get_conad"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga1820feccc4e549d16d5630880790cea3"><param name="Name" value="uves_pfits_get_crpix1"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga18ea5d528ab27ac81d2b64901f81c4b7"><param name="Name" value="uves_pfits_get_crpix2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81"><param name="Name" value="uves_pfits_get_crval1"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaefba8b3c1a2fbe5c0f42eaeaaafaf455"><param name="Name" value="uves_pfits_get_crval2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa01218ecc26f39e4d903199d8912859a"><param name="Name" value="uves_pfits_get_ctype1"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga10f0c2c5e0fd87a36ede0e7fb2fa05bd"><param name="Name" value="uves_pfits_get_ctype2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga59cf5e1608701d663f3abcc8fcb41880"><param name="Name" value="uves_pfits_get_cunit1"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga1f8205720c4af931e1dfb55542d71ccc"><param name="Name" value="uves_pfits_get_cunit2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga2b4f1ab25eca67e06373e637b34f96a2"><param name="Name" value="uves_pfits_get_datancom"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga97acf10dfec1908a573a2bf51baedd72"><param name="Name" value="uves_pfits_get_date_obs"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gabee157c267487c9edc9b7f478f781173"><param name="Name" value="uves_pfits_get_dec"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga9a720fb2cb64f6f8704b53d6d5869017"><param name="Name" value="uves_pfits_get_dpr_catg"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga2833b60dd4a735740352b9c24c6b01f9"><param name="Name" value="uves_pfits_get_dpr_tech"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga5bb5b7dee7a50351450a64182f1458fe"><param name="Name" value="uves_pfits_get_dpr_type"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga30b8fd58edf8f7f006fb73aa9a25cf91"><param name="Name" value="uves_pfits_get_drs_id"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga6143e112905f368114637062d4600c04"><param name="Name" value="uves_pfits_get_exptime"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa6a185f3150b22d6ce30439bfacbb78c"><param name="Name" value="uves_pfits_get_firstabsorder"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga4f4be35f30bd7d46f8c7421907ac8695"><param name="Name" value="uves_pfits_get_gain"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga58d1b21dbf83e02a88bdced0a416bc9a"><param name="Name" value="uves_pfits_get_geolat"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga55902033ba015dd0045488a5222f772c"><param name="Name" value="uves_pfits_get_geolon"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa907a5d5e4e5a8b2fedda4daae8fae4f"><param name="Name" value="uves_pfits_get_gratid"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga58d2d231e9bcf59d84ce42cf527b2071"><param name="Name" value="uves_pfits_get_gratname"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd"><param name="Name" value="uves_pfits_get_gratwlen"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga4f0d4444ba3039844561d5574447f152"><param name="Name" value="uves_pfits_get_humidity"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa56bfa63f004c7046a5a5242312a792f"><param name="Name" value="uves_pfits_get_insmode"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaeefa3dc2dbf45776accef00f67b7002f"><param name="Name" value="uves_pfits_get_inspath"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gad090d54b01606904ef8d740f766c2fde"><param name="Name" value="uves_pfits_get_lastabsorder"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga87cd5104b9b26f1655958f6f533fcfc2"><param name="Name" value="uves_pfits_get_maxfibres"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga43adddad6bd999b197d24eacc25bde34"><param name="Name" value="uves_pfits_get_mjdobs"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga17228ff502d3e1eafc4359b2b7069a32"><param name="Name" value="uves_pfits_get_naxis"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gadd8fda05c51af7b34d5021b4bc60fffc"><param name="Name" value="uves_pfits_get_naxis1"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga41338750e1279de511bc5035d8d218d0"><param name="Name" value="uves_pfits_get_naxis2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8"><param name="Name" value="uves_pfits_get_nx"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga4869724c736010824272955edffb60eb"><param name="Name" value="uves_pfits_get_ny"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gadfc97431fbaa953d0b2b507a0d65a323"><param name="Name" value="uves_pfits_get_ocs_simcal"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaef0d7e4491440deeda27c14d65c34d7b"><param name="Name" value="uves_pfits_get_offset"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga49559908c6512ccc86d7ea3b478bdc9a"><param name="Name" value="uves_pfits_get_ordpred"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga0ecbcc40cde47dcccdc6e61f987cf94e"><param name="Name" value="uves_pfits_get_origfile"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gae9e532b44a8101e42ee42ea2294e877a"><param name="Name" value="uves_pfits_get_out1nx"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga4cc264a7bd8eafb4572b7ee10a82b4a9"><param name="Name" value="uves_pfits_get_out1ny"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf24b3465f3646b6a0c446eb1fbeb2520"><param name="Name" value="uves_pfits_get_out4nx"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga40a63a22192db6fbc8bab37e64ae0bc9"><param name="Name" value="uves_pfits_get_out4ny"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga3d6bc36f09d098e2804a09c276917634"><param name="Name" value="uves_pfits_get_ovrscanx"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf8ed5ab2990b6792cebb5e1143de4696"><param name="Name" value="uves_pfits_get_ovrscany"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga29aa57ccf95058c909572ed494be97b1"><param name="Name" value="uves_pfits_get_pipefile"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaad1abe1801ca189d25b0f9ffdcf1f078"><param name="Name" value="uves_pfits_get_pixelscale"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga408818ada3d951ea32c4063728eca597"><param name="Name" value="uves_pfits_get_prescanx"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga9c23bc8405611ad9e160f17543a7ff45"><param name="Name" value="uves_pfits_get_prescany"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gada6e3678efe087f614124ea63ce8a9a0"><param name="Name" value="uves_pfits_get_pressure"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga77477da1d35f89951eb8eace41938d41"><param name="Name" value="uves_pfits_get_pro_catg"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga2f4307d12086db9c739fe3df79931a10"><param name="Name" value="uves_pfits_get_ra"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga5dc4ab669bc41d6c481905c16afa59a0"><param name="Name" value="uves_pfits_get_readspeed"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga2b39689fbd7baa3e56d34c2200317649"><param name="Name" value="uves_pfits_get_rec1raw1name"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gabd4b8ee6fb59b708093644f50c321978"><param name="Name" value="uves_pfits_get_ron_adu"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gadb0a05528f0429187a6af97bcb3f4a25"><param name="Name" value="uves_pfits_get_slit1_name"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga88d114f3cb4427cf679e9f7b7696bcd9"><param name="Name" value="uves_pfits_get_slit3_x1encoder"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga12fe6f500e105193aa9faae4258ef51d"><param name="Name" value="uves_pfits_get_slit3_x2encoder"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga159df9e29b6cdbc886d2ec1c19884a64"><param name="Name" value="uves_pfits_get_slitlength"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gada5bfd486b316634b1d107ea5fc2cd12"><param name="Name" value="uves_pfits_get_slitlength_pixels"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gadbfe6eb96c384b6b971b634ab8b79fab"><param name="Name" value="uves_pfits_get_slitwidth"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf61c29fc0fa67ae38c7ac8e0f125c6ce"><param name="Name" value="uves_pfits_get_startx"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa144877b5eaa88dd3bc92c9900543c5f"><param name="Name" value="uves_pfits_get_starty"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gae00753b08b474c90cdd83169e3c7980e"><param name="Name" value="uves_pfits_get_targ_name"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga266ea18052beecac005d60558904a490"><param name="Name" value="uves_pfits_get_tempcam"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf694501f3a20536e64cad6efc2a0e5b5"><param name="Name" value="uves_pfits_get_templateid"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf0ed2a547997610410b19faa468f5daf"><param name="Name" value="uves_pfits_get_tpl_start"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gafe242382d5e824db3b68e156d8296a89"><param name="Name" value="uves_pfits_get_traceid"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga94a0f9aec24d8d9ce2a936a1cd7985dd"><param name="Name" value="uves_pfits_get_uit"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaac930573fb642f9b489df1f3773d5eb9"><param name="Name" value="uves_pfits_get_utc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595"><param name="Name" value="uves_pfits_get_wend"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga3bcabe0b2d46d1f65674d3d0dcb9ee2d"><param name="Name" value="uves_pfits_get_windownumber"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203"><param name="Name" value="uves_pfits_get_wstart"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa198d93b1538311c92a9b2fed6389357"><param name="Name" value="uves_pfits_set_badpixcorr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gace68beef266360129dce0860c4fb1731"><param name="Name" value="uves_pfits_set_bscale"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga1dcf84ae52c90eecc51ca448a63cfc5e"><param name="Name" value="uves_pfits_set_bunit"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf0f096e9615abba54e8df7068b2e7541"><param name="Name" value="uves_pfits_set_bunit_no"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga0d13232557903e763483cc57b4cfa0c4"><param name="Name" value="uves_pfits_set_cdelt1"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga80ad6ea5e902d3cc3a1f3745035e528e"><param name="Name" value="uves_pfits_set_cdelt2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga0fb41e9ccebfde88e71dcd6ed2dff570"><param name="Name" value="uves_pfits_set_crpix1"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf6964f0063821d3f357125f149f87367"><param name="Name" value="uves_pfits_set_crpix2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaaed14627f7b8206cc8970cd1f787a6db"><param name="Name" value="uves_pfits_set_crval1"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga510ee409ec059fdbd8991d88a7639152"><param name="Name" value="uves_pfits_set_crval2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gac948997f6142c218334d0cb70a4eeabc"><param name="Name" value="uves_pfits_set_ctype1"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga1644b60894010bfaa365370ff6851aaf"><param name="Name" value="uves_pfits_set_ctype2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf22ae9bd0d4e3492b1595f49ec00edc8"><param name="Name" value="uves_pfits_set_cunit1"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga6bef11d061318a2656e16fb83717965b"><param name="Name" value="uves_pfits_set_cunit2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga865460e642e3dc81fae544e3b6f1402a"><param name="Name" value="uves_pfits_set_data_average"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga12b323abb20f835610ee85f9511d2b30"><param name="Name" value="uves_pfits_set_data_max"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gad010fc0da98b85fdebcd5bc5ba66b2bf"><param name="Name" value="uves_pfits_set_data_median"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gac4287c2bde551653e40d60e128a3a35a"><param name="Name" value="uves_pfits_set_data_min"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga308f6a7549c50e0c513d63a40dfa975f"><param name="Name" value="uves_pfits_set_data_stddev"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga9f62d68dba4e530ef2a0407d4752e6fc"><param name="Name" value="uves_pfits_set_dec"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga666eb10fe3865d59fa69b830735f0e0e"><param name="Name" value="uves_pfits_set_dpr_catg"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa8bc49514a8c08229da6db3f881cf98c"><param name="Name" value="uves_pfits_set_dpr_tech"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gad5a9f4f0b354fff0ee10bd24df613b25"><param name="Name" value="uves_pfits_set_dpr_type"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gae45226fec29767907871c9f34f61f61a"><param name="Name" value="uves_pfits_set_exptime"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga33e51be1bfd4b8f42972789c417211ae"><param name="Name" value="uves_pfits_set_firstabsorder"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga69cca375340082d053f4fa6d11c099c6"><param name="Name" value="uves_pfits_set_history_val"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga3a62ab3d0a3cbff46e6587757c951c7d"><param name="Name" value="uves_pfits_set_hs"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga69fae305f143947cdd58f3c575e7ba9a"><param name="Name" value="uves_pfits_set_lastabsorder"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga00c534cae0eea2f78b8d36bc675c7b80"><param name="Name" value="uves_pfits_set_object"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga8671b556f4338bf739e92b9d0ba1f831"><param name="Name" value="uves_pfits_set_ocs_simcal"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gae66ad0ee347230f2fea240f445104a20"><param name="Name" value="uves_pfits_set_offset"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa74a3b1258870b7dcc7f66c616004055"><param name="Name" value="uves_pfits_set_ordpred"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga38758b23b33b80f7e27476783fddc3e3"><param name="Name" value="uves_pfits_set_ra"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gad288bfc7118fd184d27b16ec9c45d5eb"><param name="Name" value="uves_pfits_set_redlevel"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga0cb8c1549c5c2877e335249714025634"><param name="Name" value="uves_pfits_set_starttime"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga8e84ec2559f4f8b5c950ca701c852c61"><param name="Name" value="uves_pfits_set_status"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga62d8502b9cb1c8852a37f88499c88e26"><param name="Name" value="uves_pfits_set_stoptime"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga7ee7734c381f31039220820182a749c9"><param name="Name" value="uves_pfits_set_traceid"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gad9f2f8d54f1b6708126bc62b45bc7d74"><param name="Name" value="uves_pfits_set_tunit_no"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga30c035689f06d716cca55250181f9956"><param name="Name" value="uves_pfits_set_wend"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gab684709b2ade5e2322325761799e92d0"><param name="Name" value="uves_pfits_set_windownumber"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga343861c33e84f1358c3235d41e8474b8"><param name="Name" value="uves_pfits_set_wstart"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga2aba19c10f2f21a717691bd4b148f669"><param name="Name" value="uves_pfits_get_airmass_end"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga36f17263450ba556317388c15905bc7e"><param name="Name" value="uves_pfits_get_airmass_start"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaabb5de1c212917f34b94de1c1587104d"><param name="Name" value="uves_pfits_get_ambipress"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga2cc76a99674d90a86d9d7174f33dc893"><param name="Name" value="uves_pfits_get_arcfile"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga8dc9fde0148605eee9109beca930f79e"><param name="Name" value="uves_pfits_get_badpxframe"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5"><param name="Name" value="uves_pfits_get_binx"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc"><param name="Name" value="uves_pfits_get_biny"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga45d7028cbd48f33f7c5589deb4ccd5c4"><param name="Name" value="uves_pfits_get_bitpix"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gacc6916f14b6591ccc948f1ca8117fbf0"><param name="Name" value="uves_pfits_get_bscale"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaeaf186ce3a84dfbca11c7cee211e80ce"><param name="Name" value="uves_pfits_get_bunit"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga42434cb12722d0eadd8b9f04f56c8237"><param name="Name" value="uves_pfits_get_ccdid"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7"><param name="Name" value="uves_pfits_get_cdelt1"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gab1af91452dda53e50314231795bf5308"><param name="Name" value="uves_pfits_get_cdelt2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga764b711e645e416c5be3882765baa14e"><param name="Name" value="uves_pfits_get_chip_name"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga4ee5f11b825d519d1a9aafb561e0d6f7"><param name="Name" value="uves_pfits_get_chipchoice"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e"><param name="Name" value="uves_pfits_get_chipid"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gab40bd41082796c15947b75ceddbbbd5c"><param name="Name" value="uves_pfits_get_conad"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga1820feccc4e549d16d5630880790cea3"><param name="Name" value="uves_pfits_get_crpix1"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga18ea5d528ab27ac81d2b64901f81c4b7"><param name="Name" value="uves_pfits_get_crpix2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81"><param name="Name" value="uves_pfits_get_crval1"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaefba8b3c1a2fbe5c0f42eaeaaafaf455"><param name="Name" value="uves_pfits_get_crval2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa01218ecc26f39e4d903199d8912859a"><param name="Name" value="uves_pfits_get_ctype1"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga10f0c2c5e0fd87a36ede0e7fb2fa05bd"><param name="Name" value="uves_pfits_get_ctype2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga59cf5e1608701d663f3abcc8fcb41880"><param name="Name" value="uves_pfits_get_cunit1"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga1f8205720c4af931e1dfb55542d71ccc"><param name="Name" value="uves_pfits_get_cunit2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga2b4f1ab25eca67e06373e637b34f96a2"><param name="Name" value="uves_pfits_get_datancom"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga97acf10dfec1908a573a2bf51baedd72"><param name="Name" value="uves_pfits_get_date_obs"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gabee157c267487c9edc9b7f478f781173"><param name="Name" value="uves_pfits_get_dec"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga9a720fb2cb64f6f8704b53d6d5869017"><param name="Name" value="uves_pfits_get_dpr_catg"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga2833b60dd4a735740352b9c24c6b01f9"><param name="Name" value="uves_pfits_get_dpr_tech"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga5bb5b7dee7a50351450a64182f1458fe"><param name="Name" value="uves_pfits_get_dpr_type"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga30b8fd58edf8f7f006fb73aa9a25cf91"><param name="Name" value="uves_pfits_get_drs_id"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga6143e112905f368114637062d4600c04"><param name="Name" value="uves_pfits_get_exptime"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa6a185f3150b22d6ce30439bfacbb78c"><param name="Name" value="uves_pfits_get_firstabsorder"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga4f4be35f30bd7d46f8c7421907ac8695"><param name="Name" value="uves_pfits_get_gain"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga58d1b21dbf83e02a88bdced0a416bc9a"><param name="Name" value="uves_pfits_get_geolat"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga55902033ba015dd0045488a5222f772c"><param name="Name" value="uves_pfits_get_geolon"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa907a5d5e4e5a8b2fedda4daae8fae4f"><param name="Name" value="uves_pfits_get_gratid"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga58d2d231e9bcf59d84ce42cf527b2071"><param name="Name" value="uves_pfits_get_gratname"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd"><param name="Name" value="uves_pfits_get_gratwlen"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga4f0d4444ba3039844561d5574447f152"><param name="Name" value="uves_pfits_get_humidity"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa56bfa63f004c7046a5a5242312a792f"><param name="Name" value="uves_pfits_get_insmode"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaeefa3dc2dbf45776accef00f67b7002f"><param name="Name" value="uves_pfits_get_inspath"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gad090d54b01606904ef8d740f766c2fde"><param name="Name" value="uves_pfits_get_lastabsorder"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga87cd5104b9b26f1655958f6f533fcfc2"><param name="Name" value="uves_pfits_get_maxfibres"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga43adddad6bd999b197d24eacc25bde34"><param name="Name" value="uves_pfits_get_mjdobs"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gadd8fda05c51af7b34d5021b4bc60fffc"><param name="Name" value="uves_pfits_get_naxis1"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga41338750e1279de511bc5035d8d218d0"><param name="Name" value="uves_pfits_get_naxis2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga17228ff502d3e1eafc4359b2b7069a32"><param name="Name" value="uves_pfits_get_naxis"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8"><param name="Name" value="uves_pfits_get_nx"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga4869724c736010824272955edffb60eb"><param name="Name" value="uves_pfits_get_ny"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gadfc97431fbaa953d0b2b507a0d65a323"><param name="Name" value="uves_pfits_get_ocs_simcal"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaef0d7e4491440deeda27c14d65c34d7b"><param name="Name" value="uves_pfits_get_offset"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga49559908c6512ccc86d7ea3b478bdc9a"><param name="Name" value="uves_pfits_get_ordpred"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga0ecbcc40cde47dcccdc6e61f987cf94e"><param name="Name" value="uves_pfits_get_origfile"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gae9e532b44a8101e42ee42ea2294e877a"><param name="Name" value="uves_pfits_get_out1nx"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga4cc264a7bd8eafb4572b7ee10a82b4a9"><param name="Name" value="uves_pfits_get_out1ny"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf24b3465f3646b6a0c446eb1fbeb2520"><param name="Name" value="uves_pfits_get_out4nx"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga40a63a22192db6fbc8bab37e64ae0bc9"><param name="Name" value="uves_pfits_get_out4ny"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga3d6bc36f09d098e2804a09c276917634"><param name="Name" value="uves_pfits_get_ovrscanx"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf8ed5ab2990b6792cebb5e1143de4696"><param name="Name" value="uves_pfits_get_ovrscany"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga29aa57ccf95058c909572ed494be97b1"><param name="Name" value="uves_pfits_get_pipefile"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaad1abe1801ca189d25b0f9ffdcf1f078"><param name="Name" value="uves_pfits_get_pixelscale"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga408818ada3d951ea32c4063728eca597"><param name="Name" value="uves_pfits_get_prescanx"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga9c23bc8405611ad9e160f17543a7ff45"><param name="Name" value="uves_pfits_get_prescany"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gada6e3678efe087f614124ea63ce8a9a0"><param name="Name" value="uves_pfits_get_pressure"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga77477da1d35f89951eb8eace41938d41"><param name="Name" value="uves_pfits_get_pro_catg"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga2f4307d12086db9c739fe3df79931a10"><param name="Name" value="uves_pfits_get_ra"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga5dc4ab669bc41d6c481905c16afa59a0"><param name="Name" value="uves_pfits_get_readspeed"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga2b39689fbd7baa3e56d34c2200317649"><param name="Name" value="uves_pfits_get_rec1raw1name"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gabd4b8ee6fb59b708093644f50c321978"><param name="Name" value="uves_pfits_get_ron_adu"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gadb0a05528f0429187a6af97bcb3f4a25"><param name="Name" value="uves_pfits_get_slit1_name"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga88d114f3cb4427cf679e9f7b7696bcd9"><param name="Name" value="uves_pfits_get_slit3_x1encoder"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga12fe6f500e105193aa9faae4258ef51d"><param name="Name" value="uves_pfits_get_slit3_x2encoder"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga159df9e29b6cdbc886d2ec1c19884a64"><param name="Name" value="uves_pfits_get_slitlength"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gada5bfd486b316634b1d107ea5fc2cd12"><param name="Name" value="uves_pfits_get_slitlength_pixels"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gadbfe6eb96c384b6b971b634ab8b79fab"><param name="Name" value="uves_pfits_get_slitwidth"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf61c29fc0fa67ae38c7ac8e0f125c6ce"><param name="Name" value="uves_pfits_get_startx"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa144877b5eaa88dd3bc92c9900543c5f"><param name="Name" value="uves_pfits_get_starty"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gae00753b08b474c90cdd83169e3c7980e"><param name="Name" value="uves_pfits_get_targ_name"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga266ea18052beecac005d60558904a490"><param name="Name" value="uves_pfits_get_tempcam"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf694501f3a20536e64cad6efc2a0e5b5"><param name="Name" value="uves_pfits_get_templateid"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf0ed2a547997610410b19faa468f5daf"><param name="Name" value="uves_pfits_get_tpl_start"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gafe242382d5e824db3b68e156d8296a89"><param name="Name" value="uves_pfits_get_traceid"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga94a0f9aec24d8d9ce2a936a1cd7985dd"><param name="Name" value="uves_pfits_get_uit"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaac930573fb642f9b489df1f3773d5eb9"><param name="Name" value="uves_pfits_get_utc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595"><param name="Name" value="uves_pfits_get_wend"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga3bcabe0b2d46d1f65674d3d0dcb9ee2d"><param name="Name" value="uves_pfits_get_windownumber"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203"><param name="Name" value="uves_pfits_get_wstart"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#gaed8104b6319a79c1e9513a9aaf140a65"><param name="Name" value="uves_pfits_put_qc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa198d93b1538311c92a9b2fed6389357"><param name="Name" value="uves_pfits_set_badpixcorr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gace68beef266360129dce0860c4fb1731"><param name="Name" value="uves_pfits_set_bscale"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga1dcf84ae52c90eecc51ca448a63cfc5e"><param name="Name" value="uves_pfits_set_bunit"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf0f096e9615abba54e8df7068b2e7541"><param name="Name" value="uves_pfits_set_bunit_no"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga0d13232557903e763483cc57b4cfa0c4"><param name="Name" value="uves_pfits_set_cdelt1"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga80ad6ea5e902d3cc3a1f3745035e528e"><param name="Name" value="uves_pfits_set_cdelt2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga0fb41e9ccebfde88e71dcd6ed2dff570"><param name="Name" value="uves_pfits_set_crpix1"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf6964f0063821d3f357125f149f87367"><param name="Name" value="uves_pfits_set_crpix2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaaed14627f7b8206cc8970cd1f787a6db"><param name="Name" value="uves_pfits_set_crval1"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga510ee409ec059fdbd8991d88a7639152"><param name="Name" value="uves_pfits_set_crval2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gac948997f6142c218334d0cb70a4eeabc"><param name="Name" value="uves_pfits_set_ctype1"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga1644b60894010bfaa365370ff6851aaf"><param name="Name" value="uves_pfits_set_ctype2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaf22ae9bd0d4e3492b1595f49ec00edc8"><param name="Name" value="uves_pfits_set_cunit1"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga6bef11d061318a2656e16fb83717965b"><param name="Name" value="uves_pfits_set_cunit2"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga865460e642e3dc81fae544e3b6f1402a"><param name="Name" value="uves_pfits_set_data_average"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga12b323abb20f835610ee85f9511d2b30"><param name="Name" value="uves_pfits_set_data_max"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gad010fc0da98b85fdebcd5bc5ba66b2bf"><param name="Name" value="uves_pfits_set_data_median"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gac4287c2bde551653e40d60e128a3a35a"><param name="Name" value="uves_pfits_set_data_min"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga308f6a7549c50e0c513d63a40dfa975f"><param name="Name" value="uves_pfits_set_data_stddev"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga9f62d68dba4e530ef2a0407d4752e6fc"><param name="Name" value="uves_pfits_set_dec"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga666eb10fe3865d59fa69b830735f0e0e"><param name="Name" value="uves_pfits_set_dpr_catg"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa8bc49514a8c08229da6db3f881cf98c"><param name="Name" value="uves_pfits_set_dpr_tech"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gad5a9f4f0b354fff0ee10bd24df613b25"><param name="Name" value="uves_pfits_set_dpr_type"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gae45226fec29767907871c9f34f61f61a"><param name="Name" value="uves_pfits_set_exptime"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga33e51be1bfd4b8f42972789c417211ae"><param name="Name" value="uves_pfits_set_firstabsorder"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga69cca375340082d053f4fa6d11c099c6"><param name="Name" value="uves_pfits_set_history_val"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga3a62ab3d0a3cbff46e6587757c951c7d"><param name="Name" value="uves_pfits_set_hs"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga69fae305f143947cdd58f3c575e7ba9a"><param name="Name" value="uves_pfits_set_lastabsorder"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga00c534cae0eea2f78b8d36bc675c7b80"><param name="Name" value="uves_pfits_set_object"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga8671b556f4338bf739e92b9d0ba1f831"><param name="Name" value="uves_pfits_set_ocs_simcal"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gae66ad0ee347230f2fea240f445104a20"><param name="Name" value="uves_pfits_set_offset"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gaa74a3b1258870b7dcc7f66c616004055"><param name="Name" value="uves_pfits_set_ordpred"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga38758b23b33b80f7e27476783fddc3e3"><param name="Name" value="uves_pfits_set_ra"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gad288bfc7118fd184d27b16ec9c45d5eb"><param name="Name" value="uves_pfits_set_redlevel"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga0cb8c1549c5c2877e335249714025634"><param name="Name" value="uves_pfits_set_starttime"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga8e84ec2559f4f8b5c950ca701c852c61"><param name="Name" value="uves_pfits_set_status"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga62d8502b9cb1c8852a37f88499c88e26"><param name="Name" value="uves_pfits_set_stoptime"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga7ee7734c381f31039220820182a749c9"><param name="Name" value="uves_pfits_set_traceid"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gad9f2f8d54f1b6708126bc62b45bc7d74"><param name="Name" value="uves_pfits_set_tunit_no"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga30c035689f06d716cca55250181f9956"><param name="Name" value="uves_pfits_set_wend"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#gab684709b2ade5e2322325761799e92d0"><param name="Name" value="uves_pfits_set_windownumber"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__pfits.html#ga343861c33e84f1358c3235d41e8474b8"><param name="Name" value="uves_pfits_set_wstart"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html"><param name="Name" value="uves_physmod"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga8049c678a855a57b1030eab386393a8f"><param name="Name" value="FILESIZE"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#gac2394f974852f00f7fd8d77233a18fe4"><param name="Name" value="flames_align_table_column"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#gaed3ec9e2f866d475ff9917cf6f06a6d3"><param name="Name" value="flames_get_physmod_offset"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#gac4e6f429f26f9e850ba3e751ebead1ad"><param name="Name" value="flames_get_trans"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga49d4e127229f5edcf7ec50b54b0a2f1c"><param name="Name" value="uves_get_physmod_offset"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#gab2645fc74b7cddacfe9b1ac960608a4e"><param name="Name" value="uves_physmod_align_tables"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga3a452c20f5d130b0184d0f61962e83f9"><param name="Name" value="uves_physmod_calmap"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga97331f20ee8993be30fa7a155a463fb2"><param name="Name" value="uves_physmod_center_gauss"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga1aaabdd9a0e0412928a2345f63184f08"><param name="Name" value="uves_physmod_chop_otab"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga00e5ea8f673b3dfd86ba0d7982e0d793"><param name="Name" value="uves_physmod_create_table"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga936ea83d8565240521a8fe946ac6c9ae"><param name="Name" value="uves_physmod_msrawxy"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#gac557292b00ae3782ce6efa3a4e0290f3"><param name="Name" value="uves_physmod_necregr"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga7ac0845d816025a744319be6528c714b"><param name="Name" value="uves_physmod_plotmod"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga7ba94584b6a36bc5d55e397b5ef6af8c"><param name="Name" value="uves_physmod_qc1pmtbl"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga6cbdcd8eb1c7f25749c51874d79e4e83"><param name="Name" value="uves_physmod_regress_echelle"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga107c8a7619bdaf3c4219f05060192bd2"><param name="Name" value="uves_physmod_stability_check"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#gab2645fc74b7cddacfe9b1ac960608a4e"><param name="Name" value="uves_physmod_align_tables"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga3a452c20f5d130b0184d0f61962e83f9"><param name="Name" value="uves_physmod_calmap"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga97331f20ee8993be30fa7a155a463fb2"><param name="Name" value="uves_physmod_center_gauss"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga1aaabdd9a0e0412928a2345f63184f08"><param name="Name" value="uves_physmod_chop_otab"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga00e5ea8f673b3dfd86ba0d7982e0d793"><param name="Name" value="uves_physmod_create_table"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html"><param name="Name" value="uves_physmod_cstacen"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815"><param name="Name" value="CGN_NINT"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga2b5f7c3330cda7deb43afb23fd15f471"><param name="Name" value="Ckapsig"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#gad923251bceb0400556ebdd0b0638ea4c"><param name="Name" value="Crhox"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga582a2d79c11dcf90fa7628a8e802d641"><param name="Name" value="Crhoy"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga8baeae8b13dcba7884349e7a061fe1fc"><param name="Name" value="Cserch"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga73fbc6b725a426956499af4d5518bff4"><param name="Name" value="ERFCC"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga55ab1000c00c0f198531b3273e792c80"><param name="Name" value="FCHIS"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga2352edbfb6cd74a452f468faf13703ea"><param name="Name" value="GAUSDE"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga46739f4ebfffea22934280cd5c636e32"><param name="Name" value="GAUSFU"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga192772b744a088e5d80b13b4ca533806"><param name="Name" value="LSQFIT"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga42a3691025750c317d1f147208f826f0"><param name="Name" value="MATINV"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#gad12404aed36494433fc265f4e8c93832"><param name="Name" value="uves_physmod_cstacen"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga07c91aa64ccf1d26ec66969f4eff03ba"><param name="Name" value="uves_physmod_stacen"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga936ea83d8565240521a8fe946ac6c9ae"><param name="Name" value="uves_physmod_msrawxy"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#gac557292b00ae3782ce6efa3a4e0290f3"><param name="Name" value="uves_physmod_necregr"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga7ac0845d816025a744319be6528c714b"><param name="Name" value="uves_physmod_plotmod"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga7ba94584b6a36bc5d55e397b5ef6af8c"><param name="Name" value="uves_physmod_qc1pmtbl"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga6cbdcd8eb1c7f25749c51874d79e4e83"><param name="Name" value="uves_physmod_regress_echelle"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod.html#ga107c8a7619bdaf3c4219f05060192bd2"><param name="Name" value="uves_physmod_stability_check"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__physmod__cstacen.html#ga07c91aa64ccf1d26ec66969f4eff03ba"><param name="Name" value="uves_physmod_stacen"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gab234ee00fd4ba72b05a50adb61947306"><param name="Name" value="uves_polynomial_add_2d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gaec68fa3685c9988c384e327268d2d6b9"><param name="Name" value="uves_polynomial_collapse"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga135ba9a062f18392bb33b678c9dedaa4"><param name="Name" value="uves_polynomial_convert_from_table"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga63ecda6c71765c319dc2d4141222bb42"><param name="Name" value="uves_polynomial_convert_to_table"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969"><param name="Name" value="uves_polynomial_delete"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd"><param name="Name" value="uves_polynomial_delete_const"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga1d4833534bce8b70f0311a652961b806"><param name="Name" value="uves_polynomial_derivative"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga182b594d06b39bdac65d27bca0104a13"><param name="Name" value="uves_polynomial_derivative_1d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a"><param name="Name" value="uves_polynomial_derivative_2d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga0879179dcb0100de2d26f8de459d5838"><param name="Name" value="uves_polynomial_dump"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53"><param name="Name" value="uves_polynomial_duplicate"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538"><param name="Name" value="uves_polynomial_evaluate_1d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89"><param name="Name" value="uves_polynomial_evaluate_2d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga7ad30cd55f4aac4454029be7ffd3f5b1"><param name="Name" value="uves_polynomial_fit_1d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3"><param name="Name" value="uves_polynomial_fit_2d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#ga1eab84b47fdec967dd3de1d7775755ab"><param name="Name" value="uves_polynomial_fit_2d_test"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8"><param name="Name" value="uves_polynomial_get_coeff_1d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d"><param name="Name" value="uves_polynomial_get_coeff_2d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga56987ebb6bb09ab3f7477783627cba7b"><param name="Name" value="uves_polynomial_get_degree"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616"><param name="Name" value="uves_polynomial_get_dimension"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6"><param name="Name" value="uves_polynomial_new"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded"><param name="Name" value="uves_polynomial_new_zero"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3"><param name="Name" value="uves_polynomial_regression_1d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0"><param name="Name" value="uves_polynomial_regression_2d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b"><param name="Name" value="uves_polynomial_regression_2d_autodegree"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081"><param name="Name" value="uves_polynomial_rescale"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4"><param name="Name" value="uves_polynomial_shift"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gadc218f4dd3fa80d91949611419b75abb"><param name="Name" value="uves_polynomial_solve_1d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gacfd8db401e1250a53b8877ae118cce43"><param name="Name" value="uves_polynomial_solve_2d"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__polynomial__test.html"><param name="Name" value="uves_polynomial_test"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__polynomial__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="main"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__polynomial__test.html#ga9f16114e84dbc27c20652d0e2876d021"><param name="Name" value="test_polynomial"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__polynomial__test.html#gaecea8e95aa6be883a21e039669855c2f"><param name="Name" value="test_polynomial_fit_2d"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054"><param name="Name" value="uves_pow_int"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga5e8553a2dcbbfe43fc15e21e4f54c381"><param name="Name" value="uves_print_cpl_frame"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga74fae5c56aeaf8262cf416a8d747d3f2"><param name="Name" value="uves_print_cpl_frameset"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga873425d85be55f6137bb8c1e8e329b5e"><param name="Name" value="uves_print_cpl_property"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga3bdf3305f871cf59e1010122e3078edb"><param name="Name" value="uves_print_uves_propertylist"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html"><param name="Name" value="uves_propertylist"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga47c097a5303e746c66bdce157d272e81"><param name="Name" value="_uves_propertylist_compare"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gafd9db8c1f3b8413e3da087af2fe10b0b"><param name="Name" value="_uves_propertylist_compare_regexp"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga1e668466b3d5a7e7e0366698f8baae3c"><param name="Name" value="_uves_propertylist_decode_fits"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga5139a6e0d04f3308dcb2ce3104de3597"><param name="Name" value="_uves_propertylist_filter_regexp"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga20075a785505f799937e7ffa8695656b"><param name="Name" value="_uves_propertylist_find"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaf7b45f00c2b745228d5d7d35d704e4ce"><param name="Name" value="_uves_propertylist_from_fits"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga0b90742568c12f47577f6e3e5eb5fb30"><param name="Name" value="_uves_propertylist_get"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga28c77105b7f9d72d97417009b7e993b2"><param name="Name" value="_uves_propertylist_insert"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga1e40ceca628368b9e4fe0911738ee60c"><param name="Name" value="error_pop"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga8ae11aa0aa80d2cbd486e6c61c7e2b8e"><param name="Name" value="error_push"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad"><param name="Name" value="my_uves_propertylist_contains"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaf74be8eb01a9945733d580bcc392ccb6"><param name="Name" value="propertylist_append_property"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga6ecdfc36cbcb2817a7a70b9f656f8906"><param name="Name" value="propertylist_prepend_property_cpl"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gac732e85fc4e70dab4119484e23c9ec55"><param name="Name" value="push_pop_error"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gac3bc0bb9cfb587facec4f1007d18e2cb"><param name="Name" value="uves_dfs_setup_product_header"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga542034178e7fa796298d276225ffcfe2"><param name="Name" value="uves_image_save"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga96309764c7e5f468a608b3f5a329e1e3"><param name="Name" value="uves_imagelist_save"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621"><param name="Name" value="uves_propertylist"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46"><param name="Name" value="uves_propertylist_append"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gafaac6e1d1cfeedd62ccef143b299554a"><param name="Name" value="uves_propertylist_append_bool"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga40e676ee81b51d67da6ce7cba7c71b50"><param name="Name" value="uves_propertylist_append_c_bool"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga64519bda6f595f3ef9de641b5f37c9e1"><param name="Name" value="uves_propertylist_append_c_char"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93"><param name="Name" value="uves_propertylist_append_c_double"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga31238b65a9fdb7e3db3d1d0dcf6b6bbe"><param name="Name" value="uves_propertylist_append_c_float"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaad79e5cdd03fa3c809205ca63c8951b9"><param name="Name" value="uves_propertylist_append_c_int"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaa03d7d474068a0724398a8aef019c953"><param name="Name" value="uves_propertylist_append_c_long"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga39fee1a93e3baa0085017d4870144d7c"><param name="Name" value="uves_propertylist_append_c_string"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga6aa95b3889354433646b119589d1d676"><param name="Name" value="uves_propertylist_append_char"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga708eab49272033d9f6d0b3da4e7e288b"><param name="Name" value="uves_propertylist_append_double"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga5055f7c4282c703d88559276ce5b45ae"><param name="Name" value="uves_propertylist_append_float"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga536d8414466969b9db7ee96a2696192e"><param name="Name" value="uves_propertylist_append_int"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga945c1c9a0b11723847155d6cba812405"><param name="Name" value="uves_propertylist_append_long"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga873086bce493bd741660d1c46d73d483"><param name="Name" value="uves_propertylist_append_string"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b"><param name="Name" value="uves_propertylist_contains"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga498f10da2c5cd157cd004ce3e207ff6c"><param name="Name" value="uves_propertylist_copy_property"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882"><param name="Name" value="uves_propertylist_copy_property_regexp"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90"><param name="Name" value="uves_propertylist_delete"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07"><param name="Name" value="uves_propertylist_duplicate"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755"><param name="Name" value="uves_propertylist_empty"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8"><param name="Name" value="uves_propertylist_erase"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10"><param name="Name" value="uves_propertylist_erase_regexp"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gad326736c5f76b54dbfd19db8584a47b5"><param name="Name" value="uves_propertylist_from_cpl"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gac3690d333b46121104bfa7eb38199b93"><param name="Name" value="uves_propertylist_from_fits"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga90df4db3cd40284ffdb1effb558d9031"><param name="Name" value="uves_propertylist_get"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga1915e9a72e6f0580cadb0736ea43d6dc"><param name="Name" value="uves_propertylist_get_bool"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gae9273c454206f9c51055aa1206183d37"><param name="Name" value="uves_propertylist_get_char"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga648f33387b636d2fea612aafbac02d18"><param name="Name" value="uves_propertylist_get_comment"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155"><param name="Name" value="uves_propertylist_get_const"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681"><param name="Name" value="uves_propertylist_get_double"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga71f81602d966afe5b8efb2d4a962ba8b"><param name="Name" value="uves_propertylist_get_float"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785"><param name="Name" value="uves_propertylist_get_int"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga62f1a977f79c807936a3ff394ca6280e"><param name="Name" value="uves_propertylist_get_long"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851"><param name="Name" value="uves_propertylist_get_size"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93"><param name="Name" value="uves_propertylist_get_string"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga2ee26ca559adc30a12a3e4dcf003b52d"><param name="Name" value="uves_propertylist_get_type"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gafd6db82a3ab2a060af6cc2a661bbc032"><param name="Name" value="uves_propertylist_has"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gafeb4307649f4b8edc101e73c21ec7392"><param name="Name" value="uves_propertylist_insert_after_bool"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga6f4d1c1ff4e0c8fc7bb2edb551cba11e"><param name="Name" value="uves_propertylist_insert_after_char"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga448733ba77d4c3de7fd109ca7a07ffff"><param name="Name" value="uves_propertylist_insert_after_double"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gab2793113a4ef8e13c523c7cad9b03220"><param name="Name" value="uves_propertylist_insert_after_float"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga5c0d4cd29cecab431fd25b85472c3897"><param name="Name" value="uves_propertylist_insert_after_int"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga05a5bb534ed7284bb107c3abb3edfa34"><param name="Name" value="uves_propertylist_insert_after_long"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaa8d7d969eef7675c6ff44ff98e38dfe0"><param name="Name" value="uves_propertylist_insert_after_string"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga2dfd30cad698338aa24bed3807772bcb"><param name="Name" value="uves_propertylist_insert_bool"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gab67312fdd5ec2579db318e2b73f83793"><param name="Name" value="uves_propertylist_insert_char"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga3541bde9170abf5eb52c6351ae03da31"><param name="Name" value="uves_propertylist_insert_double"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gafa987cf50ee6314a8eddf4e4c284cdd0"><param name="Name" value="uves_propertylist_insert_float"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaf4317df2406162e173e8c78274650da4"><param name="Name" value="uves_propertylist_insert_int"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gad1eced1cf3c10a77997c02f20ced0922"><param name="Name" value="uves_propertylist_insert_long"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gadae4a02d6cc8db83abeb9a8b670ade81"><param name="Name" value="uves_propertylist_insert_string"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6"><param name="Name" value="uves_propertylist_is_empty"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb"><param name="Name" value="uves_propertylist_load"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga795683c7baa3ddfc26959339e90f8e6d"><param name="Name" value="uves_propertylist_load_regexp"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596"><param name="Name" value="uves_propertylist_new"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga25074f6f6ba24b2ccbbb91b1aa703da5"><param name="Name" value="uves_propertylist_prepend_bool"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaa151bee689fe652596364001379e70fa"><param name="Name" value="uves_propertylist_prepend_char"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaa5dab235d01e40a8e3721eaa8bc5a38d"><param name="Name" value="uves_propertylist_prepend_double"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga47d49f4e59167222901c218d8dd02105"><param name="Name" value="uves_propertylist_prepend_float"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga0133703baaa20b62bc57f9125ff105e0"><param name="Name" value="uves_propertylist_prepend_int"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gab8a9b7c5adf6a7c280a67dfb52693ad9"><param name="Name" value="uves_propertylist_prepend_long"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gadae05c6be2055c187a4a0ac66da762e0"><param name="Name" value="uves_propertylist_prepend_string"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga1b920e8880391034ba16248071aaeda5"><param name="Name" value="uves_propertylist_set_bool"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga3848313f04afa3606dbbc560746f5025"><param name="Name" value="uves_propertylist_set_char"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193"><param name="Name" value="uves_propertylist_set_comment"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga5e507cfe564326f9e5474c5773d6dd24"><param name="Name" value="uves_propertylist_set_double"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gadf1317627ff51b6cbcff9aec380fd51a"><param name="Name" value="uves_propertylist_set_float"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaef59cbe7747d8778af96087b23c8d682"><param name="Name" value="uves_propertylist_set_int"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga188d6bd12ef15a5c4aff8713339a443a"><param name="Name" value="uves_propertylist_set_long"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gabbc55af6700c2d1d28f82131b56a3b7b"><param name="Name" value="uves_propertylist_set_string"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga8f5a24a5601c0a61eb31570a7c5cbec4"><param name="Name" value="uves_propertylist_to_cpl"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga51082cf15d54b19967e4276e6de96e15"><param name="Name" value="uves_propertylist_to_fits"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga843649fce9e26744ba7be376354d9c39"><param name="Name" value="uves_propertylist_update_bool"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga810374cc06f2343166ed49fa1be9f7cb"><param name="Name" value="uves_propertylist_update_char"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb"><param name="Name" value="uves_propertylist_update_double"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga3dfc4fa6ae6687892c7cf6ef73f41ef3"><param name="Name" value="uves_propertylist_update_float"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23"><param name="Name" value="uves_propertylist_update_int"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga8108bd5d80f387c4e65d80f38373de6e"><param name="Name" value="uves_propertylist_update_long"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b"><param name="Name" value="uves_propertylist_update_string"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaa3a5d883be57a2e3fc167f50117860c2"><param name="Name" value="uves_regexp"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaaddc42751ee73d8e6042e0b464328613"><param name="Name" value="uves_table_save"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaf4ea23bc3a27df393c7a91203a89b16c"><param name="Name" value="uves_table_sort"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga33c4669b80d22563b05c231f61bdf20b"><param name="Name" value="uves_vector_save"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46"><param name="Name" value="uves_propertylist_append"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gafaac6e1d1cfeedd62ccef143b299554a"><param name="Name" value="uves_propertylist_append_bool"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga40e676ee81b51d67da6ce7cba7c71b50"><param name="Name" value="uves_propertylist_append_c_bool"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga64519bda6f595f3ef9de641b5f37c9e1"><param name="Name" value="uves_propertylist_append_c_char"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93"><param name="Name" value="uves_propertylist_append_c_double"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga31238b65a9fdb7e3db3d1d0dcf6b6bbe"><param name="Name" value="uves_propertylist_append_c_float"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaad79e5cdd03fa3c809205ca63c8951b9"><param name="Name" value="uves_propertylist_append_c_int"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaa03d7d474068a0724398a8aef019c953"><param name="Name" value="uves_propertylist_append_c_long"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga39fee1a93e3baa0085017d4870144d7c"><param name="Name" value="uves_propertylist_append_c_string"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga6aa95b3889354433646b119589d1d676"><param name="Name" value="uves_propertylist_append_char"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga708eab49272033d9f6d0b3da4e7e288b"><param name="Name" value="uves_propertylist_append_double"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga5055f7c4282c703d88559276ce5b45ae"><param name="Name" value="uves_propertylist_append_float"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga536d8414466969b9db7ee96a2696192e"><param name="Name" value="uves_propertylist_append_int"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga945c1c9a0b11723847155d6cba812405"><param name="Name" value="uves_propertylist_append_long"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga873086bce493bd741660d1c46d73d483"><param name="Name" value="uves_propertylist_append_string"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b"><param name="Name" value="uves_propertylist_contains"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga498f10da2c5cd157cd004ce3e207ff6c"><param name="Name" value="uves_propertylist_copy_property"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882"><param name="Name" value="uves_propertylist_copy_property_regexp"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90"><param name="Name" value="uves_propertylist_delete"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07"><param name="Name" value="uves_propertylist_duplicate"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755"><param name="Name" value="uves_propertylist_empty"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8"><param name="Name" value="uves_propertylist_erase"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10"><param name="Name" value="uves_propertylist_erase_regexp"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gad326736c5f76b54dbfd19db8584a47b5"><param name="Name" value="uves_propertylist_from_cpl"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gac3690d333b46121104bfa7eb38199b93"><param name="Name" value="uves_propertylist_from_fits"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga90df4db3cd40284ffdb1effb558d9031"><param name="Name" value="uves_propertylist_get"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga1915e9a72e6f0580cadb0736ea43d6dc"><param name="Name" value="uves_propertylist_get_bool"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gae9273c454206f9c51055aa1206183d37"><param name="Name" value="uves_propertylist_get_char"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga648f33387b636d2fea612aafbac02d18"><param name="Name" value="uves_propertylist_get_comment"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155"><param name="Name" value="uves_propertylist_get_const"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681"><param name="Name" value="uves_propertylist_get_double"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga71f81602d966afe5b8efb2d4a962ba8b"><param name="Name" value="uves_propertylist_get_float"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785"><param name="Name" value="uves_propertylist_get_int"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga62f1a977f79c807936a3ff394ca6280e"><param name="Name" value="uves_propertylist_get_long"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851"><param name="Name" value="uves_propertylist_get_size"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93"><param name="Name" value="uves_propertylist_get_string"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga2ee26ca559adc30a12a3e4dcf003b52d"><param name="Name" value="uves_propertylist_get_type"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gafd6db82a3ab2a060af6cc2a661bbc032"><param name="Name" value="uves_propertylist_has"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gafeb4307649f4b8edc101e73c21ec7392"><param name="Name" value="uves_propertylist_insert_after_bool"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga6f4d1c1ff4e0c8fc7bb2edb551cba11e"><param name="Name" value="uves_propertylist_insert_after_char"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga448733ba77d4c3de7fd109ca7a07ffff"><param name="Name" value="uves_propertylist_insert_after_double"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gab2793113a4ef8e13c523c7cad9b03220"><param name="Name" value="uves_propertylist_insert_after_float"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga5c0d4cd29cecab431fd25b85472c3897"><param name="Name" value="uves_propertylist_insert_after_int"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga05a5bb534ed7284bb107c3abb3edfa34"><param name="Name" value="uves_propertylist_insert_after_long"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaa8d7d969eef7675c6ff44ff98e38dfe0"><param name="Name" value="uves_propertylist_insert_after_string"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga2dfd30cad698338aa24bed3807772bcb"><param name="Name" value="uves_propertylist_insert_bool"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gab67312fdd5ec2579db318e2b73f83793"><param name="Name" value="uves_propertylist_insert_char"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga3541bde9170abf5eb52c6351ae03da31"><param name="Name" value="uves_propertylist_insert_double"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gafa987cf50ee6314a8eddf4e4c284cdd0"><param name="Name" value="uves_propertylist_insert_float"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaf4317df2406162e173e8c78274650da4"><param name="Name" value="uves_propertylist_insert_int"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gad1eced1cf3c10a77997c02f20ced0922"><param name="Name" value="uves_propertylist_insert_long"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gadae4a02d6cc8db83abeb9a8b670ade81"><param name="Name" value="uves_propertylist_insert_string"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6"><param name="Name" value="uves_propertylist_is_empty"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb"><param name="Name" value="uves_propertylist_load"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga795683c7baa3ddfc26959339e90f8e6d"><param name="Name" value="uves_propertylist_load_regexp"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596"><param name="Name" value="uves_propertylist_new"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga25074f6f6ba24b2ccbbb91b1aa703da5"><param name="Name" value="uves_propertylist_prepend_bool"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaa151bee689fe652596364001379e70fa"><param name="Name" value="uves_propertylist_prepend_char"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaa5dab235d01e40a8e3721eaa8bc5a38d"><param name="Name" value="uves_propertylist_prepend_double"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga47d49f4e59167222901c218d8dd02105"><param name="Name" value="uves_propertylist_prepend_float"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga0133703baaa20b62bc57f9125ff105e0"><param name="Name" value="uves_propertylist_prepend_int"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gab8a9b7c5adf6a7c280a67dfb52693ad9"><param name="Name" value="uves_propertylist_prepend_long"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gadae05c6be2055c187a4a0ac66da762e0"><param name="Name" value="uves_propertylist_prepend_string"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga1b920e8880391034ba16248071aaeda5"><param name="Name" value="uves_propertylist_set_bool"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga3848313f04afa3606dbbc560746f5025"><param name="Name" value="uves_propertylist_set_char"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193"><param name="Name" value="uves_propertylist_set_comment"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga5e507cfe564326f9e5474c5773d6dd24"><param name="Name" value="uves_propertylist_set_double"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gadf1317627ff51b6cbcff9aec380fd51a"><param name="Name" value="uves_propertylist_set_float"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaef59cbe7747d8778af96087b23c8d682"><param name="Name" value="uves_propertylist_set_int"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga188d6bd12ef15a5c4aff8713339a443a"><param name="Name" value="uves_propertylist_set_long"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gabbc55af6700c2d1d28f82131b56a3b7b"><param name="Name" value="uves_propertylist_set_string"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga8f5a24a5601c0a61eb31570a7c5cbec4"><param name="Name" value="uves_propertylist_to_cpl"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga51082cf15d54b19967e4276e6de96e15"><param name="Name" value="uves_propertylist_to_fits"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga843649fce9e26744ba7be376354d9c39"><param name="Name" value="uves_propertylist_update_bool"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga810374cc06f2343166ed49fa1be9f7cb"><param name="Name" value="uves_propertylist_update_char"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb"><param name="Name" value="uves_propertylist_update_double"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga3dfc4fa6ae6687892c7cf6ef73f41ef3"><param name="Name" value="uves_propertylist_update_float"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23"><param name="Name" value="uves_propertylist_update_int"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga8108bd5d80f387c4e65d80f38373de6e"><param name="Name" value="uves_propertylist_update_long"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b"><param name="Name" value="uves_propertylist_update_string"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html"><param name="Name" value="uves_qclog"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c"><param name="Name" value="uves_blank2dot"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga315583aa3196da7e1648ec9203837279"><param name="Name" value="uves_get_paf_name"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#gaee7a0d27a947e1e0b3e8d0f94b5c3dff"><param name="Name" value="uves_get_rootname"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga18caeeaa4c1ba5d2cb2062fab6a56121"><param name="Name" value="uves_paf_print_header"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#gaed8104b6319a79c1e9513a9aaf140a65"><param name="Name" value="uves_pfits_put_qc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga13ef561d5d2f87bb90450c21ffcf221e"><param name="Name" value="uves_qclog_add_bool"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga66d1b116b78a6302ce5a2bb2d00c5d41"><param name="Name" value="uves_qclog_add_common_wave"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64"><param name="Name" value="uves_qclog_add_double"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga9b27f428bd465c6b4db422a793067e67"><param name="Name" value="uves_qclog_add_float"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16"><param name="Name" value="uves_qclog_add_int"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#gaf6a3fc6cf06a17550bd0320603287ace"><param name="Name" value="uves_qclog_add_sci"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3"><param name="Name" value="uves_qclog_add_string"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3"><param name="Name" value="uves_qclog_delete"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#gadb993bcb25e5b1537f17d17c2fb27684"><param name="Name" value="uves_qclog_dump_common"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga2e1dbad185cd0eeceb6512e9c9d865fb"><param name="Name" value="uves_qclog_dump_common_wave"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b"><param name="Name" value="uves_qclog_get_qc_name"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2"><param name="Name" value="uves_qclog_init"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga4db1dc810fc251a2bebba5ddf8dc0ddc"><param name="Name" value="uves_save_paf"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga13ef561d5d2f87bb90450c21ffcf221e"><param name="Name" value="uves_qclog_add_bool"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga66d1b116b78a6302ce5a2bb2d00c5d41"><param name="Name" value="uves_qclog_add_common_wave"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64"><param name="Name" value="uves_qclog_add_double"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga9b27f428bd465c6b4db422a793067e67"><param name="Name" value="uves_qclog_add_float"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16"><param name="Name" value="uves_qclog_add_int"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#gaf6a3fc6cf06a17550bd0320603287ace"><param name="Name" value="uves_qclog_add_sci"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3"><param name="Name" value="uves_qclog_add_string"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3"><param name="Name" value="uves_qclog_delete"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#gadb993bcb25e5b1537f17d17c2fb27684"><param name="Name" value="uves_qclog_dump_common"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga2e1dbad185cd0eeceb6512e9c9d865fb"><param name="Name" value="uves_qclog_dump_common_wave"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b"><param name="Name" value="uves_qclog_get_qc_name"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2"><param name="Name" value="uves_qclog_init"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog__test.html"><param name="Name" value="uves_qclog_test"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="main"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog__test.html#gaf1c56ce99831ec1d5b6a82019609f9bd"><param name="Name" value="test_qc_name"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaaed2a3318adb62b1725bc28273757e58"><param name="Name" value="uves_rcosmic"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__rebin.html"><param name="Name" value="uves_rebin"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__rebin.html#ga9746917b2a07e3ede927b28ad927d6ca"><param name="Name" value="integrate_flux"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__rebin.html#ga0f756f87f2bfbf7797c348ae30d77494"><param name="Name" value="integrate_noise"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c"><param name="Name" value="uves_rebin"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__rebin.html#gad96c455875e2415225b27a3280516c0c"><param name="Name" value="uves_rebin_define_parameters"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__rebin.html#gad96c455875e2415225b27a3280516c0c"><param name="Name" value="uves_rebin_define_parameters"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html"><param name="Name" value="uves_reduce"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6"><param name="Name" value="extract_ff_rebin_merge"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#gad6aedc87f04001c793180df5b7edac16"><param name="Name" value="get_offset"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#gacf021d0b42c1b02d38ecbff5f3353f54"><param name="Name" value="interpolate_wave"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#gad5574e8fead13bd32bd46eb60ca091ac"><param name="Name" value="subtract_sky"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#ga26fe47b7ce4f084c5833056dcda44fb5"><param name="Name" value="subtract_sky_row"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#gad468625ee13cf6a664139550c3b65436"><param name="Name" value="UVES_BLAZE_DUMMY_VAL"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#ga14f04fabe88e704a3e9fd81e666ed237"><param name="Name" value="uves_get_blaze_ratio"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#ga71c448c05cf468088ab8d5a10e31c0ed"><param name="Name" value="UVES_MIN_LINE_ROWS_TO_MAKE_FIT"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#ga1867e835a6183494d513613729836205"><param name="Name" value="uves_normalize_spectrum"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#gad5308bc6e13c7e02e134e6f0ce6be722"><param name="Name" value="uves_reduce"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#gaf0fe2418683acd1504f0c2c90c9c417a"><param name="Name" value="uves_reduce_define_parameters"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce.html#gaf0fe2418683acd1504f0c2c90c9c417a"><param name="Name" value="uves_reduce_define_parameters"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html"><param name="Name" value="uves_reduce_mflat"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga429b19c63b9710f0d332a2f39ddac05a"><param name="Name" value="uves_mflat_at_ypos"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga7d38d6807a0067cc5e8dd44a44ebaa07"><param name="Name" value="uves_mflat_define_parameters_body"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga98d921655e122e6b38db0288756375a6"><param name="Name" value="uves_mflat_desc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga1bae4e786a7fc24b0061ae293112f5ae"><param name="Name" value="uves_mflat_exe_body"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga2598ddc0ef2df5c66cd4710829a02353"><param name="Name" value="uves_mflat_one"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga28f40f90cc7f91b1e2ef317c74c73fa2"><param name="Name" value="uves_mflat_process_chip"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga02a8ec0f31954bdcb88ca7b73f06babb"><param name="Name" value="uves_mflat_qclog"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#gad7e37298e7f0b43a3ce3edff25ac4e45"><param name="Name" value="uves_msflats"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat.html#ga8d36f48466a867a45e7653f484414ee6"><param name="Name" value="uves_reduce_mflat"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat__combine.html"><param name="Name" value="uves_reduce_mflat_combine"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat__combine.html#gabd0a1d5c0c76fcafb1ff0d3fb7aa9249"><param name="Name" value="uves_combine_flats"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat__combine.html#ga74ca4174a5bba5f066a627eddc5d5d9c"><param name="Name" value="uves_mflat_combine_define_parameters_body"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat__combine.html#gad2e644f93f0dba7c954f2e014f3f3200"><param name="Name" value="uves_mflat_combine_desc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat__combine.html#ga7c98495b1b6ad337e267c3fd44d12c4b"><param name="Name" value="uves_mflat_combine_exe_body"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__reduce__mflat__combine.html#ga2b69a8d67f29f1794ee4efe7bbbcb699"><param name="Name" value="uves_reduce_mflat_combine"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga0780489bfd35e6728e0d1b9c7036e119"><param name="Name" value="uves_reduce_scired"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaa3a5d883be57a2e3fc167f50117860c2"><param name="Name" value="uves_regexp"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__remove__crh__single.html"><param name="Name" value="uves_remove_crh_single"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__remove__crh__single.html#ga0a3abbca80bc98e7abcb3ae73abe0f14"><param name="Name" value="MAX_ITERATIONS"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__remove__crh__single.html#ga7e6109abce4aa245c65f9cf39e1c8c8a"><param name="Name" value="uves_remove_crh_single"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4"><param name="Name" value="uves_remove_string_prefix"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response.html"><param name="Name" value="uves_response"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response.html#ga9efc933848e1bebb4766a0d10a8e9c93"><param name="Name" value="uves_align"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response.html#ga0e3832a791528896648761e02fac2b9c"><param name="Name" value="uves_calculate_response"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response.html#ga85c178e57e3a92c7ce1cb47d46e84188"><param name="Name" value="uves_response_efficiency"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response.html#ga85c178e57e3a92c7ce1cb47d46e84188"><param name="Name" value="uves_response_efficiency"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response__test.html"><param name="Name" value="uves_response_test"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="main"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response__test.html#ga0e5837c456b51889ea0c7af0e03eb661"><param name="Name" value="test_3dtable"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__response__test.html#ga725c6509665bad47a2dfc8338b9513a2"><param name="Name" value="test_load_3dtable"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__qclog.html#ga4db1dc810fc251a2bebba5ddf8dc0ddc"><param name="Name" value="uves_save_paf"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html"><param name="Name" value="uves_scired"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga699b1c68f1d91a6b1ca600921c41d21a"><param name="Name" value="scired_qclog"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#gae1ef37fb82ed9624dcb990d250c927c9"><param name="Name" value="set_all_raw_none"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga32377202a0bcb66b410988f7c6cf51fa"><param name="Name" value="tflat_qclog"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga13b5ba0edd1afd17b652cbce19ad5a74"><param name="Name" value="uves_get_pro_catg_special"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga713adfb93b9326021b5d80b2aaa649c4"><param name="Name" value="uves_paste_wave_accuracy"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga0780489bfd35e6728e0d1b9c7036e119"><param name="Name" value="uves_reduce_scired"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga1c491907022557327d0a5bad5281965f"><param name="Name" value="uves_scired_define_parameters_body"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#gab54705f6e581ddeef8895188ee2a5b16"><param name="Name" value="uves_scired_desc"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#gaa64ed03adc65997b10c429f57667fb11"><param name="Name" value="uves_scired_desc_short"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga6a10de9dbd4e09a1d341a778df5ac85e"><param name="Name" value="uves_scired_process_chip"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga1c491907022557327d0a5bad5281965f"><param name="Name" value="uves_scired_define_parameters_body"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#gab54705f6e581ddeef8895188ee2a5b16"><param name="Name" value="uves_scired_desc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#gaa64ed03adc65997b10c429f57667fb11"><param name="Name" value="uves_scired_desc_short"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__scired.html#ga6a10de9dbd4e09a1d341a778df5ac85e"><param name="Name" value="uves_scired_process_chip"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga12da84d655b3aa529fbe8ecf3b04f096"><param name="Name" value="uves_sort"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gac567d2b17fd517da5e872f292c203339"><param name="Name" value="uves_spline_cubic"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaa3c7eb6c7f122eb98af78d5cab6cb122"><param name="Name" value="uves_spline_hermite"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga182ae551020b196be2e177c09f16b220"><param name="Name" value="uves_spline_hermite_table"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaaa9ef34eb0091a167b88ed0cf17b758c"><param name="Name" value="uves_string_tolower"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487"><param name="Name" value="uves_string_toupper"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaab60ba58a3dc620bf79a91ebde2751b3"><param name="Name" value="uves_subtract_bias"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaa065c666cf2f7a17a0d20f42e742a793"><param name="Name" value="uves_subtract_dark"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gafe2dc57751c934dd70ebc93c0e25ee18"><param name="Name" value="uves_table_is_sorted_double"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga7d2ec6462cf581bf7172368747e5f9d6"><param name="Name" value="uves_table_remove_units"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaaddc42751ee73d8e6042e0b464328613"><param name="Name" value="uves_table_save"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#gaf4ea23bc3a27df393c7a91203a89b16c"><param name="Name" value="uves_table_sort"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga42288426fcfd847780e7f412756c55db"><param name="Name" value="uves_table_unify_units"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga7734a51460651fa363eacdf284986447"><param name="Name" value="uves_tablename_remove_units"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga613ac59edcddc7ba24d4bf6d5a563c35"><param name="Name" value="uves_tablenames_unify_units"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__test.html"><param name="Name" value="uves_test"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="main"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__test.html#gac0ef6293fdbf2c970e010fd74c7138b5"><param name="Name" value="test_gaussian_fitting"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__test__simulate.html"><param name="Name" value="uves_test_simulate"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__test__simulate.html#ga6fbf196c4ff48ceb9f9a5dc64830dffe"><param name="Name" value="create_line_table"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__test__simulate.html#ga81a0d2793233e8b9c72f1141a3168924"><param name="Name" value="create_order_table"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__time.html"><param name="Name" value="uves_time"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#ga94492b7e724286022f3bc946952dc79d"><param name="Name" value="uves_tools_get_median"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga762dd0a18ecc4b13ebcc9a8aa5be5be9"><param name="Name" value="uves_tostring_cpl_frame_group"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga643a38c444a34da5266bed60ca817ebb"><param name="Name" value="uves_tostring_cpl_frame_level"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga7b4de02190abecc763b7be5c85e89b6e"><param name="Name" value="uves_tostring_cpl_frame_type"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d"><param name="Name" value="uves_tostring_cpl_type"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html"><param name="Name" value="uves_utils"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gab2caa5d2f377b40374ac88e708f739b7"><param name="Name" value="fmoffa_c"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga6ec891ebf5e364519c678c11600a35e0"><param name="Name" value="fmoffa_i"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaa6f08c08604f669d5248a50db05095c6"><param name="Name" value="REQ_CPL_MAJOR"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaab1b7d291b65c497a7a4d32822095d10"><param name="Name" value="REQ_CPL_MICRO"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gae2b8645924a1fcbfb414a387b6f33b3b"><param name="Name" value="REQ_CPL_MINOR"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaa0a0b8fa9e125de9c214da98e8be71c7"><param name="Name" value="REQ_QF_MAJOR"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga4fe1c476d4c44db597fd6f16f962185e"><param name="Name" value="REQ_QF_MICRO"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga9abd878864bfd54b300f44404c04dbf2"><param name="Name" value="REQ_QF_MINOR"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga579bc295bb9d73af0b052f37b576f552"><param name="Name" value="uves_absolute_order"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga1f407a71fc1fd3d5d0d83fdc141669eb"><param name="Name" value="uves_average_images"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga8ec4a0e22ac62eaed019f740acf6810d"><param name="Name" value="uves_average_reject"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga982e941690a52132bba5f2bbe300f719"><param name="Name" value="uves_check_version"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaea6246a88791de8614f3af35802dc644"><param name="Name" value="uves_cosrout"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga7146e7bab312652fdb0a9e88e838ef8d"><param name="Name" value="uves_create_image"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7"><param name="Name" value="uves_define_noise"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gab22cde2fd3c6fcee8f63c8b27431f0be"><param name="Name" value="uves_end"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaad319593f3e530d1c00b60afc64eea6e"><param name="Name" value="uves_find_next"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaa6e2f1554b5345868a2f71604a42409b"><param name="Name" value="uves_flat_create_normalized_master"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaabfabe05e25ffc4af017f4e29b22a56e"><param name="Name" value="uves_flat_create_normalized_master2"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga60f54c7fc4b06d4d5568a11b8a34b048"><param name="Name" value="uves_frameset_dump"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga5d332ad2d1f28993e9c2db3154b2236b"><param name="Name" value="uves_frameset_extract"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c"><param name="Name" value="uves_gauss"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea"><param name="Name" value="uves_gauss_derivative"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga9f3e7e9d99f1b9785c335cc1a8ecb49f"><param name="Name" value="uves_gauss_linear"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga98837a7122178c9d18c99174bfd53d9b"><param name="Name" value="uves_gauss_linear_derivative"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga81ac7cec9a26af57d8e43728c004a072"><param name="Name" value="uves_gaussrand"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gab6d9ffe3669b75518bf7108681c52fa6"><param name="Name" value="uves_gen_lowpass"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gae14eb4ed643b704af7b942f55eac9575"><param name="Name" value="uves_get_license"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga576094df329c3bb87a80a251007400a6"><param name="Name" value="uves_get_version"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4"><param name="Name" value="uves_get_version_binary"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gae7a22d7bd34d61c32515d570e512e189"><param name="Name" value="uves_get_wave_map"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaa4b717df379e29d4c74c066a528e37b2"><param name="Name" value="uves_image_mflat_detect_blemishes"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gadff34d910bf9b353a6d69679425e3eed"><param name="Name" value="uves_image_smooth_fft"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga93dbb409bbd9a6b2a81dac3bc8d57733"><param name="Name" value="uves_image_smooth_mean_x"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga5a8a79b450b996dcaa97c3f2a2a56655"><param name="Name" value="uves_image_smooth_median_x"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaeeb17229525912d20c2987a4e8dcee6f"><param name="Name" value="uves_image_smooth_x"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gac3fd5fb33eba5d655fc243ff356bcdcb"><param name="Name" value="uves_image_smooth_y"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga9a60246b0b018cbee0593ced9361484f"><param name="Name" value="uves_imagelist_get_clean_mean_levels"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga4cbaa270b775e7460b66e02f5b204203"><param name="Name" value="uves_imagelist_subtract_values"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga91713592f345a0d1a44e37a50202d6ed"><param name="Name" value="uves_initialize"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37"><param name="Name" value="uves_initialize_image_header"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gad61bad9fe3d7614ebd9de472f600c6eb"><param name="Name" value="uves_ksigma_stack"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga8927e9c74fcd2ff11122490e4f42fe90"><param name="Name" value="uves_ksigma_vector"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga32f63d655b7a15cb65c59f6ed9153a69"><param name="Name" value="uves_moffat"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga3268b9eca855e33e38a5bd58c5d512c0"><param name="Name" value="uves_moffat_derivative"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gab4d35d91d7acd120872d427842b13942"><param name="Name" value="uves_ordertable_traces_add"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga5498ccadef9be3eee6cfacfac75c7478"><param name="Name" value="uves_ordertable_traces_new"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga003a5b56bc7da0142638881e47006716"><param name="Name" value="uves_parameterlist_duplicate"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3"><param name="Name" value="uves_polynomial_regression_1d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0"><param name="Name" value="uves_polynomial_regression_2d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b"><param name="Name" value="uves_polynomial_regression_2d_autodegree"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054"><param name="Name" value="uves_pow_int"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaaed2a3318adb62b1725bc28273757e58"><param name="Name" value="uves_rcosmic"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4"><param name="Name" value="uves_remove_string_prefix"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga12da84d655b3aa529fbe8ecf3b04f096"><param name="Name" value="uves_sort"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gac567d2b17fd517da5e872f292c203339"><param name="Name" value="uves_spline_cubic"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaa3c7eb6c7f122eb98af78d5cab6cb122"><param name="Name" value="uves_spline_hermite"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga182ae551020b196be2e177c09f16b220"><param name="Name" value="uves_spline_hermite_table"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaaa9ef34eb0091a167b88ed0cf17b758c"><param name="Name" value="uves_string_tolower"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487"><param name="Name" value="uves_string_toupper"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaab60ba58a3dc620bf79a91ebde2751b3"><param name="Name" value="uves_subtract_bias"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gaa065c666cf2f7a17a0d20f42e742a793"><param name="Name" value="uves_subtract_dark"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#gafe2dc57751c934dd70ebc93c0e25ee18"><param name="Name" value="uves_table_is_sorted_double"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga7d2ec6462cf581bf7172368747e5f9d6"><param name="Name" value="uves_table_remove_units"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga42288426fcfd847780e7f412756c55db"><param name="Name" value="uves_table_unify_units"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga7734a51460651fa363eacdf284986447"><param name="Name" value="uves_tablename_remove_units"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils.html#ga613ac59edcddc7ba24d4bf6d5a563c35"><param name="Name" value="uves_tablenames_unify_units"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html"><param name="Name" value="uves_utils_cpl"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#gafc2ebb8a19b1e10153319a018a743c9e"><param name="Name" value="filter_median"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#ga61202bb11e2387a91f36248674241b98"><param name="Name" value="uves_filter_image_average"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f"><param name="Name" value="uves_filter_image_median"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#gaa47cef77156bb2a234cc278c29b64343"><param name="Name" value="uves_find_property"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#gab27457a252d480095e9f78b904becdc6"><param name="Name" value="uves_find_property_const"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#ga925c077e4720e3357196ef4161ffea53"><param name="Name" value="uves_fit_gaussian_2d_image"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#ga94492b7e724286022f3bc946952dc79d"><param name="Name" value="uves_tools_get_median"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#gaab92b190da2ce4979277ec4f0a09cc5b"><param name="Name" value="uves_utils_get_kth_double"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__cpl.html#gaab92b190da2ce4979277ec4f0a09cc5b"><param name="Name" value="uves_utils_get_kth_double"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html"><param name="Name" value="uves_utils_polynomial"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga3308f7853a8f3e62d777e814f411f9c0"><param name="Name" value="derivative_cpl_polynomial"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gab234ee00fd4ba72b05a50adb61947306"><param name="Name" value="uves_polynomial_add_2d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gaec68fa3685c9988c384e327268d2d6b9"><param name="Name" value="uves_polynomial_collapse"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga135ba9a062f18392bb33b678c9dedaa4"><param name="Name" value="uves_polynomial_convert_from_table"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga63ecda6c71765c319dc2d4141222bb42"><param name="Name" value="uves_polynomial_convert_to_table"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969"><param name="Name" value="uves_polynomial_delete"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd"><param name="Name" value="uves_polynomial_delete_const"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga1d4833534bce8b70f0311a652961b806"><param name="Name" value="uves_polynomial_derivative"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga182b594d06b39bdac65d27bca0104a13"><param name="Name" value="uves_polynomial_derivative_1d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a"><param name="Name" value="uves_polynomial_derivative_2d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga0879179dcb0100de2d26f8de459d5838"><param name="Name" value="uves_polynomial_dump"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53"><param name="Name" value="uves_polynomial_duplicate"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538"><param name="Name" value="uves_polynomial_evaluate_1d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89"><param name="Name" value="uves_polynomial_evaluate_2d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga7ad30cd55f4aac4454029be7ffd3f5b1"><param name="Name" value="uves_polynomial_fit_1d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3"><param name="Name" value="uves_polynomial_fit_2d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8"><param name="Name" value="uves_polynomial_get_coeff_1d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d"><param name="Name" value="uves_polynomial_get_coeff_2d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga56987ebb6bb09ab3f7477783627cba7b"><param name="Name" value="uves_polynomial_get_degree"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616"><param name="Name" value="uves_polynomial_get_dimension"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6"><param name="Name" value="uves_polynomial_new"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded"><param name="Name" value="uves_polynomial_new_zero"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081"><param name="Name" value="uves_polynomial_rescale"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4"><param name="Name" value="uves_polynomial_shift"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gadc218f4dd3fa80d91949611419b75abb"><param name="Name" value="uves_polynomial_solve_1d"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__polynomial.html#gacfd8db401e1250a53b8877ae118cce43"><param name="Name" value="uves_polynomial_solve_2d"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html"><param name="Name" value="uves_utils_test"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="main"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#ga0592dba56693fad79136250c11e5a7fe"><param name="Name" value="MAX_SIZE"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#ga08eba462d1c80f2b403eb9da1fc1e698"><param name="Name" value="table_erase_selected"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#ga2078e2b562988b0d9970d29bdf48c641"><param name="Name" value="uves_average_reject_test"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#ga2e64b5512eb80e5f14212851bebef98e"><param name="Name" value="uves_filter_cosmic_test"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#gaa9c5cf7cbad2eb15c7248a89e547af82"><param name="Name" value="uves_find_property_test"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utils__test.html#ga1eab84b47fdec967dd3de1d7775755ab"><param name="Name" value="uves_polynomial_fit_2d_test"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__ima__arith.html"><param name="Name" value="uves_utl_ima_arith"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__ima__arith.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="Name" value="cpl_plugin_get_info"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__ima__arith.html#ga381a7f807d484e3b74ea7d9bacdcb820"><param name="Name" value="uves_utl_ima_arith"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__ima__arith.html#ga954092253234f48324af709c2d7ea7d5"><param name="Name" value="uves_utl_ima_arith_create"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__ima__arith.html#gaf349b59d28b57f043bf44c361370bb46"><param name="Name" value="uves_utl_ima_arith_destroy"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__ima__arith.html#gadb1e3d51a74afcdbff10fef274707c8f"><param name="Name" value="uves_utl_ima_arith_exec"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__ima__arith.html#ga954092253234f48324af709c2d7ea7d5"><param name="Name" value="uves_utl_ima_arith_create"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__ima__arith.html#gaf349b59d28b57f043bf44c361370bb46"><param name="Name" value="uves_utl_ima_arith_destroy"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__ima__arith.html#gadb1e3d51a74afcdbff10fef274707c8f"><param name="Name" value="uves_utl_ima_arith_exec"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__physmod.html"><param name="Name" value="uves_utl_physmod"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__physmod.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="Name" value="cpl_plugin_get_info"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__physmod.html#ga3e4da7ad21ef98fc09d1302fbd3d12fd"><param name="Name" value="uves_utl_physmod"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__physmod.html#ga7feecac1261438a6dc3b68924fbce98f"><param name="Name" value="uves_utl_physmod_create"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__physmod.html#ga5c8210b4d7ab88b21125bd696c51e6c8"><param name="Name" value="uves_utl_physmod_destroy"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__physmod.html#ga287c8ed12ad70e2683f833c80296b6d5"><param name="Name" value="uves_utl_physmod_exec"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__physmod.html#ga7feecac1261438a6dc3b68924fbce98f"><param name="Name" value="uves_utl_physmod_create"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__physmod.html#ga5c8210b4d7ab88b21125bd696c51e6c8"><param name="Name" value="uves_utl_physmod_destroy"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__physmod.html#ga287c8ed12ad70e2683f833c80296b6d5"><param name="Name" value="uves_utl_physmod_exec"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__rcosmic.html"><param name="Name" value="uves_utl_rcosmic"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__rcosmic.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="Name" value="cpl_plugin_get_info"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__rcosmic.html#ga4cd36a4feb367778454485205928db66"><param name="Name" value="uves_utl_rcosmic"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__rcosmic.html#ga940ab9e0385afa1268c588e9aa836451"><param name="Name" value="uves_utl_rcosmic_create"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__rcosmic.html#ga49eb605c1cc3b32055a86debc26c0bf8"><param name="Name" value="uves_utl_rcosmic_destroy"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__rcosmic.html#gaa68234d2c406b6364833a3ad4149527c"><param name="Name" value="uves_utl_rcosmic_exec"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__rcosmic.html#ga940ab9e0385afa1268c588e9aa836451"><param name="Name" value="uves_utl_rcosmic_create"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__rcosmic.html#ga49eb605c1cc3b32055a86debc26c0bf8"><param name="Name" value="uves_utl_rcosmic_destroy"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__rcosmic.html#gaa68234d2c406b6364833a3ad4149527c"><param name="Name" value="uves_utl_rcosmic_exec"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__remove__crh__single.html"><param name="Name" value="uves_utl_remove_crh_single"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__remove__crh__single.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693"><param name="Name" value="cpl_plugin_get_info"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__remove__crh__single.html#gab497c9910c4b906bed52ccc1d3ad9d79"><param name="Name" value="uves_utl_remove_crh_single"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__remove__crh__single.html#ga05031cc6c2fa53d8083fd51ee62ac2a9"><param name="Name" value="uves_utl_remove_crh_single_create"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__remove__crh__single.html#ga824f6d04d13d57ea573e9cd21ca74900"><param name="Name" value="uves_utl_remove_crh_single_destroy"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__remove__crh__single.html#ga8e95dd4390ec7d77c17a8f649f7758ff"><param name="Name" value="uves_utl_remove_crh_single_exec"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__remove__crh__single.html#ga05031cc6c2fa53d8083fd51ee62ac2a9"><param name="Name" value="uves_utl_remove_crh_single_create"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__remove__crh__single.html#ga824f6d04d13d57ea573e9cd21ca74900"><param name="Name" value="uves_utl_remove_crh_single_destroy"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__utl__remove__crh__single.html#ga8e95dd4390ec7d77c17a8f649f7758ff"><param name="Name" value="uves_utl_remove_crh_single_exec"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__propertylist.html#ga33c4669b80d22563b05c231f61bdf20b"><param name="Name" value="uves_vector_save"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html"><param name="Name" value="uves_wavecal"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga6441018223f000460da3fe4e29325806"><param name="Name" value="calibrate_global"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga3d2a634d47ecc17a9550bc3169b45108"><param name="Name" value="compute_lambda"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gabf8091bf00a26cfe084f73ef3cb80a29"><param name="Name" value="detect_lines"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga609177ee4e13ce7243aa571763a4fbb4"><param name="Name" value="FIT_SLOPE"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga32817a71e6f80a75bd2d74e197f41002"><param name="Name" value="identify_lines"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga4904a294505b28ee322a2fb73f1814bd"><param name="Name" value="USE_PPM"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga2f7ee53133e419d19f10cbc231e8054a"><param name="Name" value="uves_delete_bad_lines"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga274e895ff3513060affa6b987a13842a"><param name="Name" value="uves_draw_lines"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gad74b8d3dab9e9b4d32d0cc2d4bf898be"><param name="Name" value="uves_lt_delete"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga28897452a40eb7c7a957c0761dd21842"><param name="Name" value="uves_lt_get_absord"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gaa98b57c1a71f64a50a4f4fa83d2d590c"><param name="Name" value="uves_lt_get_disprel"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gaabce897a294645e87763f7f5ecdbcd30"><param name="Name" value="uves_lt_get_firstabs"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gaca1246cec58a8bb8f218b993428985bc"><param name="Name" value="uves_lt_get_lastabs"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff"><param name="Name" value="uves_lt_get_table"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga50d8473c5bddc7dec58f539a6026eb49"><param name="Name" value="uves_lt_new"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gae0d2cfe5965b9e1f8655d1265b6bdde3"><param name="Name" value="uves_wavecal_find_nearest"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gaefff8994a1bf3be10c46012cff86ef04"><param name="Name" value="uves_wavecal_identify"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gad453e932c1e4d99548688995d4e1000b"><param name="Name" value="uves_wavecal_identify_lines_ppm"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga0baa7a6c85fde5b3e8fe805cf5f4b6c6"><param name="Name" value="uves_wavecal_search"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga83b2a3f8a025fdbb257ba8b6b6c0687a"><param name="Name" value="verify_calibration"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga7d75415e66d20756612a674927e32bcf"><param name="Name" value="WEIGHTED_FIT"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga7b49db5bd97eb1228d45a6d37190cef6"><param name="Name" value="xcenter"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gae0d2cfe5965b9e1f8655d1265b6bdde3"><param name="Name" value="uves_wavecal_find_nearest"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gaefff8994a1bf3be10c46012cff86ef04"><param name="Name" value="uves_wavecal_identify"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#gad453e932c1e4d99548688995d4e1000b"><param name="Name" value="uves_wavecal_identify_lines_ppm"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga0baa7a6c85fde5b3e8fe805cf5f4b6c6"><param name="Name" value="uves_wavecal_search"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal__test.html"><param name="Name" value="uves_wavecal_test"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal__test.html#ga840291bc02cba5474a4cb46a9b9566fe"><param name="Name" value="main"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal__test.html#gaef1e683ff19a9e4e2e4932e88c952561"><param name="Name" value="test_ppm"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html#a8ebfb08c87b2969c891912c8edee2d6d"><param name="Name" value="vec"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__polynomial.html#a687bf02009f6c7446c40c9df2d252051"><param name="Name" value="vec_data"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__baryvel.html"><param name="Name" value="Velocity correction"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga83b2a3f8a025fdbb257ba8b6b6c0687a"><param name="Name" value="verify_calibration"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#acfd631de9652602fbfce823ebe67c57c"><param name="Name" value="vxc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__irplib__wlxcorr.html"><param name="Name" value="Wavelength Cross correlation w. plotting"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga7d75415e66d20756612a674927e32bcf"><param name="Name" value="WEIGHTED_FIT"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#aa15233a9551f2250947be7dbc3e266a9"><param name="Name" value="wfwhm"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="struct__uves__chip.html#a6565a99f7cf043cf1c156e194449351e"><param name="Name" value="whatever"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structlt__type.html#af01708c7edac3dd3d95f69db6a3d4d10"><param name="Name" value="windows"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#a0fb9da0f6301052c059408944d41d495"><param name="Name" value="wslit"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__multimin.html#a3677fb65e209fcabb6b5a397f588180b"><param name="Name" value="xc"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="group__uves__wavecal.html#ga7b49db5bd97eb1228d45a6d37190cef6"><param name="Name" value="xcenter"></OBJECT>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__base__spectrum__model.html#af9e671d7a5a6b69e544f136818a81805"><param name="Name" value="xcost"></OBJECT>
-  <UL>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__base__spectrum__model.html#af9e671d7a5a6b69e544f136818a81805"><param name="Name" value="irplib_base_spectrum_model"></OBJECT>
-    <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#a49ae0e59df7238d4fb87a7d2853cc5fa"><param name="Name" value="irplib_line_spectrum_model"></OBJECT>
-  </UL>
-  <LI><OBJECT type="text/sitemap"><param name="Local" value="structirplib__line__spectrum__model.html#ad8b56e19ebc5ad851be35718d98cc529"><param name="Name" value="xtrunc"></OBJECT>
-</UL>
-</BODY>
-</HTML>
diff --git a/html/index.hhp b/html/index.hhp
deleted file mode 100644
index 9411adc..0000000
--- a/html/index.hhp
+++ /dev/null
@@ -1,409 +0,0 @@
-[OPTIONS]
-Compatibility=1.1
-Full-text search=Yes
-Contents file=index.hhc
-Default Window=main
-Default topic=index.html
-Index file=index.hhk
-Language=0x409 English (United States)
-Binary TOC=YES
-Create CHI file=YES
-Title=UVES Pipeline Reference Manual
-
-[WINDOWS]
-main="UVES Pipeline Reference Manual","index.hhc","index.hhk","index.html","index.html",,,,,0x23520,,0x10387e,,,,,,,,0
-
-[FILES]
-cpl__propertylist-test_8c_source.html
-flames__cal__mkmaster_8c_source.html
-flames__cal__orderpos_8c_source.html
-flames__cal__predict_8c_source.html
-flames__cal__prep__sff__ofpos_8c_source.html
-flames__cal__wavecal_8c_source.html
-flames__corvel_8c_source.html
-flames__corvel_8h_source.html
-flames__extract_8c_source.html
-flames__fillordtab_8c_source.html
-flames__mes__slitff__size_8c_source.html
-flames__midas__def_8c_source.html
-flames__midas__def_8h_source.html
-flames__newmatrix_8c_source.html
-flames__newmatrix_8h_source.html
-flames__obs__redchain_8c_source.html
-flames__obs__scired_8c_source.html
-flames__prepbkg_8c_source.html
-flames__prepfibreff_8c_source.html
-flames__prepnorm_8c_source.html
-flames__preppa_8c_source.html
-flames__prepslitff_8c_source.html
-flames__recipe_8c_source.html
-flames__reduce__vcorrel_8c_source.html
-flames__reduce__vcorrel_8h_source.html
-flames__utl__unpack_8c_source.html
-irplib__calib_8c_source.html
-irplib__calib_8h_source.html
-irplib__cat-test_8c_source.html
-irplib__cat_8c_source.html
-irplib__cat_8h_source.html
-irplib__distortion_8c_source.html
-irplib__distortion_8h_source.html
-irplib__flat_8c_source.html
-irplib__flat_8h_source.html
-irplib__framelist-test_8c_source.html
-irplib__framelist_8c_source.html
-irplib__framelist_8h_source.html
-irplib__hist-test_8c_source.html
-irplib__hist_8c_source.html
-irplib__hist_8h_source.html
-irplib__ksigma__clip_8c_source.html
-irplib__ksigma__clip_8h_source.html
-irplib__ksigma__clip__body_8h_source.html
-irplib__match__cats-test_8c_source.html
-irplib__match__cats_8c_source.html
-irplib__match__cats_8h_source.html
-irplib__mkmaster_8c_source.html
-irplib__mkmaster_8h_source.html
-irplib__oddeven_8c_source.html
-irplib__oddeven_8h_source.html
-irplib__plugin-test_8c_source.html
-irplib__plugin_8c_source.html
-irplib__plugin_8h_source.html
-irplib__polynomial-test_8c_source.html
-irplib__polynomial_8c_source.html
-irplib__polynomial_8h_source.html
-irplib__ppm_8c_source.html
-irplib__ppm_8h_source.html
-irplib__slitpos_8c_source.html
-irplib__slitpos_8h_source.html
-irplib__spectrum_8c_source.html
-irplib__spectrum_8h_source.html
-irplib__stdstar_8c_source.html
-irplib__stdstar_8h_source.html
-irplib__strehl_8c_source.html
-irplib__strehl_8h_source.html
-irplib__utils-test_8c_source.html
-irplib__utils_8c_source.html
-irplib__utils_8h_source.html
-irplib__wavecal_8c_source.html
-irplib__wavecal_8h_source.html
-irplib__wavecal__impl_8h_source.html
-irplib__wcs-test_8c_source.html
-irplib__wcs_8c_source.html
-irplib__wcs_8h_source.html
-irplib__wlxcorr-test_8c_source.html
-irplib__wlxcorr_8c_source.html
-irplib__wlxcorr_8h_source.html
-recipe__main_8c_source.html
-uves-test_8c_source.html
-uves_8h_source.html
-uves__backsub_8c_source.html
-uves__backsub_8h_source.html
-uves__baryvel_8c_source.html
-uves__baryvel_8h_source.html
-uves__cal__cd__align_8c_source.html
-uves__cal__mkmaster_8c_source.html
-uves__cal__mkmaster__impl_8c_source.html
-uves__cd__align-test_8c_source.html
-uves__cd__align__impl_8c_source.html
-uves__cd__align__impl_8h_source.html
-uves__chip_8c_source.html
-uves__chip_8h_source.html
-uves__chip__type_8c_source.html
-uves__chip__type_8h_source.html
-uves__corrbadpix-test_8c_source.html
-uves__corrbadpix_8c_source.html
-uves__corrbadpix_8h_source.html
-uves__cpl__size_8h_source.html
-uves__deque_8c_source.html
-uves__deque_8h_source.html
-uves__dfs-test_8c_source.html
-uves__dfs_8c_source.html
-uves__dfs_8h_source.html
-uves__dump_8c_source.html
-uves__dump_8h_source.html
-uves__error_8h_source.html
-uves__extract-test_8c_source.html
-uves__extract_8c_source.html
-uves__extract_8h_source.html
-uves__extract__iterate_8c_source.html
-uves__extract__iterate_8h_source.html
-uves__extract__profile_8c_source.html
-uves__extract__profile_8h_source.html
-uves__flatfield_8c_source.html
-uves__flatfield_8h_source.html
-uves__globals_8h_source.html
-uves__mbias_8c_source.html
-uves__mbias__impl_8c_source.html
-uves__mbias__impl_8h_source.html
-uves__mdark_8c_source.html
-uves__mdark__impl_8c_source.html
-uves__mdark__impl_8h_source.html
-uves__merge_8c_source.html
-uves__merge_8h_source.html
-uves__mflat_8c_source.html
-uves__mflat__combine_8c_source.html
-uves__mflat__combine__impl_8c_source.html
-uves__mflat__impl_8c_source.html
-uves__msg_8c_source.html
-uves__msg_8h_source.html
-uves__obs__spatred__impl_8c_source.html
-uves__orderpos_8c_source.html
-uves__orderpos__body_8c_source.html
-uves__orderpos__body_8h_source.html
-uves__orderpos__follow_8c_source.html
-uves__orderpos__follow_8h_source.html
-uves__orderpos__hough_8c_source.html
-uves__orderpos__hough_8h_source.html
-uves__orderpos__impl_8c_source.html
-uves__parameters_8c_source.html
-uves__parameters_8h_source.html
-uves__pfits_8c_source.html
-uves__pfits_8h_source.html
-uves__physmod_8c_source.html
-uves__physmod__body_8c_source.html
-uves__physmod__body_8h_source.html
-uves__physmod__calmap_8c_source.html
-uves__physmod__calmap_8h_source.html
-uves__physmod__center__gauss_8c_source.html
-uves__physmod__center__gauss_8h_source.html
-uves__physmod__chop__otab_8c_source.html
-uves__physmod__chop__otab_8h_source.html
-uves__physmod__create__table_8c_source.html
-uves__physmod__create__table_8h_source.html
-uves__physmod__cstacen_8c_source.html
-uves__physmod__cstacen_8h_source.html
-uves__physmod__impl_8c_source.html
-uves__physmod__msrawxy_8c_source.html
-uves__physmod__msrawxy_8h_source.html
-uves__physmod__necregr_8c_source.html
-uves__physmod__necregr_8h_source.html
-uves__physmod__plotmod_8c_source.html
-uves__physmod__plotmod_8h_source.html
-uves__physmod__qc1pmtbl_8c_source.html
-uves__physmod__qc1pmtbl_8h_source.html
-uves__physmod__regress__echelle_8c_source.html
-uves__physmod__regress__echelle_8h_source.html
-uves__physmod__stability__check_8c_source.html
-uves__physmod__stability__check_8h_source.html
-uves__physmod__utils_8c_source.html
-uves__physmod__utils_8h_source.html
-uves__plot_8c_source.html
-uves__plot_8h_source.html
-uves__plugin_8h_source.html
-uves__polynomial-test_8c_source.html
-uves__propertylist-test_8c_source.html
-uves__propertylist_8c_source.html
-uves__propertylist_8h_source.html
-uves__qclog-test_8c_source.html
-uves__qclog_8c_source.html
-uves__qclog_8h_source.html
-uves__rebin_8c_source.html
-uves__rebin_8h_source.html
-uves__recipe_8c_source.html
-uves__recipe_8h_source.html
-uves__redchain_8c_source.html
-uves__redchain__impl_8c_source.html
-uves__reduce_8c_source.html
-uves__reduce_8h_source.html
-uves__reduce__mflat_8c_source.html
-uves__reduce__mflat_8h_source.html
-uves__reduce__mflat__combine_8c_source.html
-uves__reduce__mflat__combine_8h_source.html
-uves__reduce__scired_8c_source.html
-uves__reduce__scired_8h_source.html
-uves__reduce__utils_8c_source.html
-uves__reduce__utils_8h_source.html
-uves__remove__crh__single_8c_source.html
-uves__remove__crh__single_8h_source.html
-uves__response-test_8c_source.html
-uves__response_8c_source.html
-uves__response__efficiency_8c_source.html
-uves__response__efficiency_8h_source.html
-uves__response__impl_8c_source.html
-uves__response__utils_8c_source.html
-uves__response__utils_8h_source.html
-uves__scired_8c_source.html
-uves__scired__impl_8c_source.html
-uves__test__simulate_8c_source.html
-uves__test__simulate_8h_source.html
-uves__tflat_8c_source.html
-uves__tflat__impl_8c_source.html
-uves__time_8c_source.html
-uves__time_8h_source.html
-uves__utils-test_8c_source.html
-uves__utils_8c_source.html
-uves__utils_8h_source.html
-uves__utils__cpl_8c_source.html
-uves__utils__cpl_8h_source.html
-uves__utils__polynomial_8c_source.html
-uves__utils__polynomial_8h_source.html
-uves__utils__wrappers_8c_source.html
-uves__utils__wrappers_8h_source.html
-uves__utl__ima__arith_8c_source.html
-uves__utl__physmod_8c_source.html
-uves__utl__rcosmic_8c_source.html
-uves__utl__remove__crh__single_8c_source.html
-uves__wavecal-test_8c_source.html
-uves__wavecal_8c_source.html
-uves__wavecal__body_8c_source.html
-uves__wavecal__body_8h_source.html
-uves__wavecal__firstsolution_8c_source.html
-uves__wavecal__firstsolution_8h_source.html
-uves__wavecal__identify_8c_source.html
-uves__wavecal__identify_8h_source.html
-uves__wavecal__impl_8c_source.html
-uves__wavecal__search_8c_source.html
-uves__wavecal__search_8h_source.html
-uves__wavecal__utils_8c_source.html
-uves__wavecal__utils_8h_source.html
-group__flames__midas__def.html
-group__uves__test.html
-group__uves__dfs.html
-group__uves__corrbadpix__test.html
-group__uves__extract__test.html
-group__uves__polynomial__test.html
-group__uves__qclog__test.html
-group__uves__response__test.html
-group__uves__test__simulate.html
-group__uves__utils__test.html
-group__uves__wavecal__test.html
-group__uves__backsub.html
-group__uves__baryvel.html
-group__uves__cal__mkmaster.html
-group__uves__cdalign.html
-group__uves__chip.html
-group__uves__chip__type.html
-group__uves__corrbadpix.html
-group__uves__dump.html
-group__uves__error.html
-group__uves__extract.html
-group__uves__flatfield.html
-group__uves__mbias.html
-group__uves__mdark.html
-group__uves__merge.html
-group__uves__mflat.html
-group__uves__msg.html
-group__uves__obs__spatred.html
-group__uves__orderpos.html
-group__uves__infrastructure.html
-group__uves__pfits.html
-group__uves__physmod__cstacen.html
-group__uves__physmod.html
-group__uves__physmod__utils.html
-group__uves__plot.html
-group__uves__propertylist.html
-group__uves__qclog.html
-group__uves__rebin.html
-group__uves__redchain.html
-group__uves__reduce.html
-group__uves__reduce__mflat.html
-group__uves__reduce__mflat__combine.html
-group__uves__remove__crh__single.html
-group__uves__response.html
-group__uves__scired.html
-group__uves__tflat.html
-group__uves__time.html
-group__uves__utils.html
-group__uves__utils__cpl.html
-group__uves__utils__polynomial.html
-group__uves__utils__wrappers.html
-group__uves__wavecal.html
-group__flames__utl__unpack.html
-group__recipe__main.html
-group__uves__utl__ima__arith.html
-group__uves__utl__physmod.html
-group__uves__utl__rcosmic.html
-group__uves__utl__remove__crh__single.html
-group__irplib__calib.html
-group__irplib__cat.html
-group__irplib__distortion.html
-group__irplib__flat.html
-group__irplib__framelist.html
-group__irplib__oddeven.html
-group__irplib__plugin.html
-group__irplib__polynomial.html
-group__irplib__ppm.html
-group__irplib__slitpos.html
-group__irplib__spectrum.html
-group__irplib__stdstar.html
-group__irplib__strehl.html
-group__irplib__utils.html
-group__irplib__wavecal.html
-group__irplib__wcs.html
-group__irplib__wlxcorr.html
-group__irplib__framelist__test.html
-group__irplib__plugin__test.html
-group__irplib__utils__test.html
-group__irplib__wlcalib__test.html
-group__uves__extract__iterate.html
-group__flames__cal__mkmaster.html
-group__flames__cal__orderpos.html
-group__flames__cal__predict.html
-group__flames__cal__prep__sff__ofpos.html
-group__flames__cal__wavecal.html
-group__flames__extract.html
-group__flames__fillordtab.html
-group__flames__mes__slitff__size.html
-group__flames__obs__redchain.html
-group__flames__obs__scired.html
-group__flames__prepbkg.html
-group__flames__prepfibreff.html
-group__flames__prepnorm.html
-group__flames__preppa.html
-group__flames__prepslitff.html
-group__recipe.html
-group__uves__cal__cd__align.html
-group__uves__mflat__combine.html
-struct__irplib__hist__.html
-struct__polynomial.html
-struct__uves__chip.html
-struct__uves__deque__.html
-struct__uves__propertylist__.html
-struct__uves__regexp__.html
-structframe.html
-structirplib__base__spectrum__model.html
-structirplib__line__spectrum__model.html
-structirplib__multimin.html
-structlt__type.html
-structslit__geometry.html
-dir_9dbeae34d65cadb5c6915b8c80494485.html
-dir_b351cdfeb4656d7d168dc72b273024e7.html
-dir_29caecd79ba0d8cf1bf29f8555ca3deb.html
-dir_40a404867a1885f5fad756cff9cd9f5a.html
-dir_481eb1706afc14ed6b3611394691cd00.html
-dir_49fdd486f031bb0e93313e8c1032e148.html
-index.html
-modules.html
-annotated.html
-classes.html
-functions.html
-functions_vars.html
-files.html
-tab_a.png
-tab_b.png
-tab_h.png
-tab_s.png
-nav_h.png
-nav_f.png
-nav_g.png
-bc_s.png
-doxygen.png
-closed.png
-open.png
-bdwn.png
-ftv2blank.png
-ftv2doc.png
-ftv2folderclosed.png
-ftv2folderopen.png
-ftv2ns.png
-ftv2mo.png
-ftv2cl.png
-ftv2lastnode.png
-ftv2link.png
-ftv2mlastnode.png
-ftv2mnode.png
-ftv2node.png
-ftv2plastnode.png
-ftv2pnode.png
-ftv2vertline.png
-ftv2splitbar.png
diff --git a/html/index.html b/html/index.html
deleted file mode 100644
index 0621087..0000000
--- a/html/index.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Main Page</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li class="current"><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">UVES Pipeline Reference Manual Documentation</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__calib_8c_source.html b/html/irplib__calib_8c_source.html
deleted file mode 100644
index daaff17..0000000
--- a/html/irplib__calib_8c_source.html
+++ /dev/null
@@ -1,647 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_calib.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_calib.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_calib.c,v 1.19 2013-03-01 10:26:22 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-03-01 10:26:22 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.19 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include "irplib_calib.h"</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="keyword">static</span> <span class="keywordtype">int</span>  </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <a class="code" href="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439" title="Get clean mean and stdev of an image over a window.">irplib_get_clean_mean_window</a>(cpl_image* img, </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>                              <span class="keyword">const</span> <span class="keywordtype">int</span> llx, </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>                              <span class="keyword">const</span> <span class="keywordtype">int</span> lly, </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>                              <span class="keyword">const</span> <span class="keywordtype">int</span> urx, <span class="keywordtype">int</span> ury, </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>                              <span class="keyword">const</span> <span class="keywordtype">int</span> kappa, </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>                              <span class="keyword">const</span> <span class="keywordtype">int</span> nclip, </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>                              <span class="keywordtype">double</span>* clean_mean, </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span>                              <span class="keywordtype">double</span>* clean_stdev);</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(6, 3, 0)</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_FRAMESET_GET       cpl_frameset_get_position</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span><span class="comment">/* Remove this branch once CPL versions less than 6.3 are no longer supported */</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#define IRPLIB_FRAMESET_GET       cpl_frameset_get_frame</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__irplib__calib.html#gaccb4324b15367dbe7d2aa57757b400a3" title="find out the character string associated to the DIT keyword in a propertylist">irplib_pfits_get_dit</a>(<span class="keyword">const</span> cpl_propertylist * plist);</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__irplib__calib.html#ga1940301f70f9920a94298e7aa9db4701" title="find out the character string associated to the EXPTIME keyword">irplib_pfits_get_exp_time</a>(<span class="keyword">const</span> cpl_propertylist* plist);</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#gaccb4324b15367dbe7d2aa57757b400a3">   80</a></span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__irplib__calib.html#gaccb4324b15367dbe7d2aa57757b400a3" title="find out the character string associated to the DIT keyword in a propertylist">irplib_pfits_get_dit</a>(<span class="keyword">const</span> cpl_propertylist * p [...]
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> {</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>     <span class="keywordflow">return</span> cpl_propertylist_get_double(plist,<span class="stringliteral">"ESO DET DIT"</span>);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> }</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#ga1940301f70f9920a94298e7aa9db4701">   92</a></span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__irplib__calib.html#ga1940301f70f9920a94298e7aa9db4701" title="find out the character string associated to the EXPTIME keyword">irplib_pfits_get_exp_time</a>(<span class="keyword">const</span> cpl_propertylist* plist)</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> {</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>   </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="keywordflow">return</span> cpl_propertylist_get_double(plist,<span class="stringliteral">"EXPTIME"</span>);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> }</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="keyword">static</span> <span class="keywordtype">int</span>  </div>
-<div class="line"><a name="l00116"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439">  116</a></span> <a class="code" href="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439" title="Get clean mean and stdev of an image over a window.">irplib_get_clean_mean_window</a>(cpl_image* img, </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                              <span class="keyword">const</span> <span class="keywordtype">int</span> llx, </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                              <span class="keyword">const</span> <span class="keywordtype">int</span> lly, </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>                              <span class="keyword">const</span> <span class="keywordtype">int</span> urx, <span class="keywordtype">int</span> ury, </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                              <span class="keyword">const</span> <span class="keywordtype">int</span> kappa, </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>                              <span class="keyword">const</span> <span class="keywordtype">int</span> nclip, </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>                              <span class="keywordtype">double</span>* clean_mean, </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>                              <span class="keywordtype">double</span>* clean_stdev)</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> {</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>   <span class="keywordtype">double</span> mean=0;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>   <span class="keywordtype">double</span> stdev=0;</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>   <span class="keywordtype">double</span> threshold=0;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>   <span class="keywordtype">double</span> lo_cut=0;</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>   <span class="keywordtype">double</span> hi_cut=0;</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>   cpl_mask* mask=NULL;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>   cpl_image* tmp=NULL;</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>   cpl_stats* stats=NULL;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>   </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>   tmp=cpl_image_extract(img,llx,lly,urx,ury);</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>   cpl_image_accept_all(tmp);</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>   <span class="keywordflow">for</span>(i=0;i<nclip;i++) {</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>    </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     cpl_stats_delete(stats);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     stats = cpl_stats_new_from_image(tmp, CPL_STATS_MEAN | CPL_STATS_STDEV);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     mean = cpl_stats_get_mean(stats);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     stdev = cpl_stats_get_stdev(stats);</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     threshold=kappa*stdev;</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     lo_cut=mean-threshold;</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     hi_cut=mean+threshold;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     cpl_image_accept_all(tmp);</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     mask=cpl_mask_threshold_image_create(tmp,lo_cut,hi_cut);</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     cpl_mask_not(mask);</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     cpl_image_reject_from_mask(tmp,mask);</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     cpl_mask_delete(mask);</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>   }</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>   *clean_mean=mean;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   *clean_stdev=stdev;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>   cpl_image_delete(tmp);</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>   cpl_stats_delete(stats);</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>  </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> }</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> cpl_table* </div>
-<div class="line"><a name="l00191"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#ga98c9970b59c6b7919f531829f6f5dab9">  191</a></span> <a class="code" href="group__irplib__calib.html#ga98c9970b59c6b7919f531829f6f5dab9" title="Computes the detector's gain.">irplib_compute_gain</a>(</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>                 cpl_frameset* son, </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>                 cpl_frameset* sof, </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>                 <span class="keywordtype">int</span>* zone,   </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>                 <span class="keyword">const</span> <span class="keywordtype">int</span> kappa,</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>                 <span class="keyword">const</span> <span class="keywordtype">int</span> nclip)</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> {</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>   cpl_frame*    frm=NULL;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>   cpl_image* img_on1=NULL;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>   cpl_image* img_on2=NULL;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>   cpl_image* img_on_dif=NULL;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>   cpl_image* img_of1=NULL;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>   cpl_image* img_of2=NULL;</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>   cpl_image* img_of_dif=NULL;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>   cpl_table* res_tbl=NULL;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>   cpl_vector* dit_on=NULL;</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>   cpl_vector* dit_of=NULL;</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>   cpl_vector* exptime_on=NULL;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>   cpl_vector* exptime_of=NULL;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>   cpl_propertylist* plist=NULL;</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>   <span class="keywordtype">int</span> non=0;</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>   <span class="keywordtype">int</span> nof=0;</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>   <span class="keywordtype">int</span> nfr=0;</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>   <span class="keywordtype">int</span> llx;</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>   <span class="keywordtype">int</span> lly;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>   <span class="keywordtype">int</span> urx;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>   <span class="keywordtype">int</span> ury;</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>   <span class="keywordtype">double</span> avg_on1=0;</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>   <span class="keywordtype">double</span> avg_on2=0;</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>   <span class="keywordtype">double</span> avg_of1=0;</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>   <span class="keywordtype">double</span> avg_of2=0;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>   <span class="keywordtype">double</span> avg_on_dif=0;</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>   <span class="keywordtype">double</span> avg_of_dif=0;</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>   <span class="keywordtype">double</span> std=0;</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>   <span class="keywordtype">double</span> sig_on_dif=0;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>   <span class="keywordtype">double</span> sig_of_dif=0;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* name=NULL;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>   <span class="keywordtype">int</span> m=0;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>   <span class="keywordtype">double</span> gain=0;</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>   <span class="keywordtype">double</span> dit_ref=0;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>   <span class="keywordtype">double</span> dit_tmp=0;</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>   <span class="keywordtype">double</span> exptime_ref=0;</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>   <span class="keywordtype">double</span> exptime_tmp=0;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>  </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>   non = cpl_frameset_get_size(son);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>   nof = cpl_frameset_get_size(sof);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>   nfr = (non <= nof) ? non : nof;</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>   dit_on=cpl_vector_new(nfr);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>   dit_of=cpl_vector_new(nfr);  </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>   exptime_on=cpl_vector_new(nfr);</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>   exptime_of=cpl_vector_new(nfr);</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>   <span class="keywordflow">for</span>(i=0;i<nfr;i++) {</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     frm=IRPLIB_FRAMESET_GET(son,i);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     name=cpl_frame_get_filename(frm);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     plist=cpl_propertylist_load(name,0);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     dit_ref=<a class="code" href="group__irplib__calib.html#gaccb4324b15367dbe7d2aa57757b400a3" title="find out the character string associated to the DIT keyword in a propertylist">irplib_pfits_get_dit</a>(plist);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     exptime_ref=(double)<a class="code" href="group__irplib__calib.html#ga1940301f70f9920a94298e7aa9db4701" title="find out the character string associated to the EXPTIME keyword">irplib_pfits_get_exp_time</a>(plist);</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     cpl_vector_set(dit_on,i,dit_ref);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     cpl_vector_set(exptime_on,i,exptime_ref);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     frm=IRPLIB_FRAMESET_GET(sof,i);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     name=cpl_frame_get_filename(frm);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     plist=cpl_propertylist_load(name,0);</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     dit_ref=<a class="code" href="group__irplib__calib.html#gaccb4324b15367dbe7d2aa57757b400a3" title="find out the character string associated to the DIT keyword in a propertylist">irplib_pfits_get_dit</a>(plist);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     exptime_ref=(double)<a class="code" href="group__irplib__calib.html#ga1940301f70f9920a94298e7aa9db4701" title="find out the character string associated to the EXPTIME keyword">irplib_pfits_get_exp_time</a>(plist);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     cpl_vector_set(dit_of,i,dit_ref);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     cpl_vector_set(exptime_of,i,exptime_ref);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>   }</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>   llx=zone[0];</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>   lly=zone[1];</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>   urx=zone[2];</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>   ury=zone[3];</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>   res_tbl=cpl_table_new(nfr);</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>   cpl_table_new_column(res_tbl,<span class="stringliteral">"adu"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>   cpl_table_new_column(res_tbl,<span class="stringliteral">"gain"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>  </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>   <span class="keywordflow">for</span>(i=0;i<nfr;i++) {</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     frm=IRPLIB_FRAMESET_GET(son,i);</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     name=cpl_frame_get_filename(frm);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     img_on1=cpl_image_load(name,CPL_TYPE_FLOAT,0,0);</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     frm=IRPLIB_FRAMESET_GET(sof,i);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     name=cpl_frame_get_filename(frm);</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     img_of1=cpl_image_load(name,CPL_TYPE_FLOAT,0,0);</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     dit_ref=cpl_vector_get(dit_on,i);</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     exptime_ref=cpl_vector_get(exptime_on,i);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>    </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <span class="keywordflow">for</span>(m=0;m<nfr; m++) {</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>       <span class="keywordflow">if</span>(m != i) {</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     frm=IRPLIB_FRAMESET_GET(son,m);</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     name=cpl_frame_get_filename(frm);</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     dit_tmp=cpl_vector_get(dit_on,m);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     exptime_tmp=cpl_vector_get(exptime_on,m);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     <span class="keywordflow">if</span>(dit_tmp == dit_ref && exptime_tmp == exptime_ref) {</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>       img_on2=cpl_image_load(name,CPL_TYPE_FLOAT,0,0);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>       frm=IRPLIB_FRAMESET_GET(sof,m);</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>       name=cpl_frame_get_filename(frm);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>       img_of2=cpl_image_load(name,CPL_TYPE_FLOAT,0,0);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>       img_on_dif=cpl_image_subtract_create(img_on1,img_on2);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>       img_of_dif=cpl_image_subtract_create(img_of1,img_of2);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>       </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>       <a class="code" href="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439" title="Get clean mean and stdev of an image over a window.">irplib_get_clean_mean_window</a>(img_on1,llx,lly,urx,ury,kappa,</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                                       nclip,&avg_on1,&std);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>       <a class="code" href="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439" title="Get clean mean and stdev of an image over a window.">irplib_get_clean_mean_window</a>(img_on2,llx,lly,urx,ury,kappa,</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>                                       nclip,&avg_on2,&std);</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>       <a class="code" href="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439" title="Get clean mean and stdev of an image over a window.">irplib_get_clean_mean_window</a>(img_of1,llx,lly,urx,ury,kappa,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                                       nclip,&avg_of1,&std);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>       <a class="code" href="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439" title="Get clean mean and stdev of an image over a window.">irplib_get_clean_mean_window</a>(img_of2,llx,lly,urx,ury,kappa,</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>                                       nclip,&avg_of2,&std);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>       <a class="code" href="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439" title="Get clean mean and stdev of an image over a window.">irplib_get_clean_mean_window</a>(img_on_dif,llx,lly,urx,ury,kappa,</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>                                       nclip,&avg_on_dif,&sig_on_dif);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>       <a class="code" href="group__irplib__calib.html#gac2d85317fd9377986277e318e510a439" title="Get clean mean and stdev of an image over a window.">irplib_get_clean_mean_window</a>(img_of_dif,llx,lly,urx,ury,kappa,</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>                                       nclip,&avg_of_dif,&sig_of_dif);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>       cpl_image_delete(img_on2);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>       cpl_image_delete(img_of2);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>       cpl_image_delete(img_on_dif);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>       cpl_image_delete(img_of_dif);</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>           gain=((avg_on1+avg_on2)-(avg_of1+avg_of2))/</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>                ((sig_on_dif*sig_on_dif)-(sig_of_dif*sig_of_dif));</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>           cpl_table_set_double(res_tbl,<span class="stringliteral">"gain"</span>,m,gain);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>           cpl_table_set_double(res_tbl,<span class="stringliteral">"adu"</span>,m,</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>                                ((avg_on1+avg_on2)/2-(avg_of1+avg_of2)/2));</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     }</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>       }</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     }</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     cpl_image_delete(img_on1);</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     cpl_image_delete(img_of1);</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>   }</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>   </div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>   cpl_vector_delete(dit_on);</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>   cpl_vector_delete(dit_of);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>   cpl_vector_delete(exptime_on);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>   cpl_vector_delete(exptime_of);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>   <span class="keywordflow">return</span> res_tbl;</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> }</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="comment">/* --------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#gadefee4e970a548c25bcbb42797778a2a">  372</a></span> cpl_table* <a class="code" href="group__irplib__calib.html#gadefee4e970a548c25bcbb42797778a2a" title="Computes the detector's linearity.">irplib_compute_linearity</a>(cpl_frameset* son, cpl_frameset* sof)</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> {</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>   cpl_frame*    frm=NULL;</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>   <span class="keywordtype">int</span>* status=0;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>   <span class="keywordtype">int</span> non=0;</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>   <span class="keywordtype">int</span> nof=0;</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>   <span class="keywordtype">int</span> nfr=0;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>   <span class="keywordtype">double</span> med_on=0;</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>   <span class="keywordtype">double</span> avg_on=0;</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>   <span class="keywordtype">double</span> med_of=0;</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>   <span class="keywordtype">double</span> avg_of=0;</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>   <span class="keywordtype">double</span> med_dit=0;</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>   <span class="keywordtype">double</span> avg_dit=0;</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> </div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>   <span class="keywordtype">double</span> med=0;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>   <span class="keywordtype">double</span> avg=0;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* name=NULL;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>   cpl_image* img=NULL;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>   cpl_vector* vec_adl=NULL;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>   cpl_vector* vec_dit=NULL;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>   cpl_vector* vec_avg=NULL;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>   cpl_vector* vec_med=NULL;</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>   cpl_vector* vec_avg_dit=NULL;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>   cpl_vector* vec_med_dit=NULL;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>   cpl_propertylist* plist=NULL;</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>   <span class="keywordtype">double</span> dit=0;</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>   cpl_table* lin_tbl=NULL;</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>  </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>   non = cpl_frameset_get_size(son);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>   nof = cpl_frameset_get_size(sof);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>   nfr = (non <= nof) ? non : nof;</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>   lin_tbl=cpl_table_new(nfr);</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>   cpl_table_new_column(lin_tbl,<span class="stringliteral">"med"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>   cpl_table_new_column(lin_tbl,<span class="stringliteral">"avg"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>   cpl_table_new_column(lin_tbl,<span class="stringliteral">"med_dit"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>   cpl_table_new_column(lin_tbl,<span class="stringliteral">"avg_dit"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>   cpl_table_new_column(lin_tbl,<span class="stringliteral">"dit"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>   vec_med=cpl_vector_new(nfr);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>   vec_avg=cpl_vector_new(nfr);</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>   vec_med_dit=cpl_vector_new(nfr);</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>   vec_avg_dit=cpl_vector_new(nfr);</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>   vec_dit=cpl_vector_new(nfr);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>   vec_adl=cpl_vector_new(nfr);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>   <span class="keywordflow">for</span>(i=0;i<nfr;i++) {</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     frm=IRPLIB_FRAMESET_GET(son,i);</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     name=cpl_frame_get_filename(frm);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     img=cpl_image_load(name,CPL_TYPE_FLOAT,0,0);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     med_on=cpl_image_get_median(img);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     avg_on=cpl_image_get_mean(img);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     cpl_image_delete(img);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     frm=IRPLIB_FRAMESET_GET(sof,i);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     name=cpl_frame_get_filename(frm);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     img=cpl_image_load(name,CPL_TYPE_FLOAT,0,0);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     med_of=cpl_image_get_median(img);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     avg_of=cpl_image_get_mean(img);</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     cpl_image_delete(img);</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     med=med_on-med_of;</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     avg=avg_on-avg_of;</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     plist=cpl_propertylist_load(name,0);</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     dit=(double)<a class="code" href="group__irplib__calib.html#gaccb4324b15367dbe7d2aa57757b400a3" title="find out the character string associated to the DIT keyword in a propertylist">irplib_pfits_get_dit</a>(plist);</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     avg_dit=avg/dit;</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     med_dit=med/dit;</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     cpl_vector_set(vec_dit,i,dit);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>     cpl_vector_set(vec_avg,i,avg);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     cpl_vector_set(vec_med,i,med);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     cpl_vector_set(vec_avg_dit,i,avg_dit);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     cpl_vector_set(vec_med_dit,i,med_dit);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     cpl_table_set_double(lin_tbl,<span class="stringliteral">"dit"</span>,i,dit);</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     cpl_table_set_double(lin_tbl,<span class="stringliteral">"med"</span>,i,med);</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     cpl_table_set_double(lin_tbl,<span class="stringliteral">"avg"</span>,i,avg);</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     cpl_table_set_double(lin_tbl,<span class="stringliteral">"med_dit"</span>,i,med_dit);</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>     cpl_table_set_double(lin_tbl,<span class="stringliteral">"avg_dit"</span>,i,avg_dit);</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>   }</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>   cpl_table_new_column(lin_tbl,<span class="stringliteral">"adl"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>   med_dit=cpl_vector_get_mean(vec_med_dit);</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>   avg_dit=cpl_vector_get_mean(vec_avg_dit);</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>   <span class="keywordflow">for</span>(i=0;i<nfr;i++) {</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     dit = cpl_table_get_double(lin_tbl,<span class="stringliteral">"dit"</span>,i,status);</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     cpl_vector_set(vec_adl,i,dit*med_dit);</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     cpl_table_set_double(lin_tbl,<span class="stringliteral">"adl"</span>,i,dit*med_dit);</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>   }</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>  </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>   </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>   cpl_vector_delete(vec_dit);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>   cpl_vector_delete(vec_adl);</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>   cpl_vector_delete(vec_avg);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>   cpl_vector_delete(vec_med);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>   cpl_vector_delete(vec_avg_dit);</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>   cpl_vector_delete(vec_med_dit);</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> </div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> </div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>   <span class="keywordflow">return</span> lin_tbl;</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> }</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#gae9b762625dbd2c31c1b59cfd8c15fd90">  493</a></span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__calib.html#gae9b762625dbd2c31c1b59cfd8c15fd90" title="Apply the detector linearity correction.">irplib_detlin_correct</a>(</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>         cpl_imagelist       *   ilist,</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>          *   detlin_a,</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>          *   detlin_b,</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>          *   detlin_c)</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> {</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     cpl_image       *   ima ;</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     cpl_image       *   imb ;</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     cpl_image       *   imc ;</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     <span class="keywordtype">float</span>           *   pima ;</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     <span class="keywordtype">float</span>           *   pimb ;</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     <span class="keywordtype">float</span>           *   pimc ;</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     <span class="keywordtype">float</span>           *   pdata ;</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     <span class="keywordtype">int</span>                 nx, ny, ni ; </div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     <span class="keywordtype">double</span>              coeff_1, coeff_2, val ;</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>     <span class="keywordtype">int</span>                 i, j ;</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> </div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>     <span class="keywordflow">if</span> (!ilist || !detlin_a || !detlin_b || !detlin_c) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>     </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     <span class="comment">/* Load the 3 coeffs images */</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     ima = cpl_image_load(detlin_a, CPL_TYPE_FLOAT, 0, 0) ;</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     imb = cpl_image_load(detlin_b, CPL_TYPE_FLOAT, 0, 0) ;</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     imc = cpl_image_load(detlin_c, CPL_TYPE_FLOAT, 0, 0) ;</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>     <span class="keywordflow">if</span> (!ima || !imb || !imc) {</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot load the detlin images"</span>) ;</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>         <span class="keywordflow">if</span> (ima) cpl_image_delete(ima) ;</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>         <span class="keywordflow">if</span> (imb) cpl_image_delete(imb) ;</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>         <span class="keywordflow">if</span> (imc) cpl_image_delete(imc) ;</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     }</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     pima = cpl_image_get_data_float(ima) ;</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     pimb = cpl_image_get_data_float(imb) ;</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     pimc = cpl_image_get_data_float(imc) ;</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     <span class="comment">/* Test sizes */</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>     nx = cpl_image_get_size_x(cpl_imagelist_get(ilist, 0)) ;</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>     ny = cpl_image_get_size_y(cpl_imagelist_get(ilist, 0)) ;</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     ni = cpl_imagelist_get_size(ilist) ;</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     <span class="keywordflow">if</span> ((cpl_image_get_size_x(ima) != nx) ||</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>             (cpl_image_get_size_x(imb) != nx) ||</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>             (cpl_image_get_size_x(imc) != nx) ||</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>             (cpl_image_get_size_y(ima) != ny) ||</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>             (cpl_image_get_size_y(imb) != ny) ||</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>             (cpl_image_get_size_y(imc) != ny)) {</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Incompatible sizes"</span>) ;</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>         cpl_image_delete(ima) ;</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>         cpl_image_delete(imb) ;</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>         cpl_image_delete(imc) ;</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     }</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>     </div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>     <span class="comment">/* Loop on pixels */</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     <span class="keywordflow">for</span> (i=0 ; i<nx*ny ; i++) {</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>         <span class="comment">/* Compute the coefficients */</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>         <span class="keywordflow">if</span> (fabs(pima[i]) < 1e-30) {</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>             coeff_1 = coeff_2 = (double)0.0 ;</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>             coeff_1 = (double)pimb[i] / (<span class="keywordtype">double</span>)pima[i] ;</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>             coeff_2 = (double)pimc[i] / (<span class="keywordtype">double</span>)pima[i] ;</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>         }</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>         <span class="comment">/* Correct this pixel in each plane */</span></div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>         <span class="keywordflow">for</span> (j=0 ; j<ni ; j++) {</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>             pdata = cpl_image_get_data_float(cpl_imagelist_get(ilist, j)) ;</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>             val = (double)pdata[i] ;</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>             pdata[i]=(float)(val+coeff_1*val*val+coeff_2*val*val*val) ;</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>         }</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     }</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>     <span class="comment">/* Free and return */</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>     cpl_image_delete(ima) ;</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>     cpl_image_delete(imb) ;</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>     cpl_image_delete(imc) ;</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> }</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>  </div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00578"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#gae650a3e54e1aff329b1b5ee356bcdbde">  578</a></span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__calib.html#gae650a3e54e1aff329b1b5ee356bcdbde" title="Apply the calibration to the frames.">irplib_flat_dark_bpm_calib</a>(</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>         cpl_imagelist       *   ilist,</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>          *   flat,</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>          *   dark,</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>          *   bpm)</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> {</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>     cpl_image       *   dark_image ;</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>     cpl_image       *   flat_image ;</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>     cpl_mask        *   bpm_im_bin ;</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>     cpl_image       *   bpm_im_int ;</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     <span class="keywordtype">int</span>                 i ;</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> </div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     <span class="keywordflow">if</span> (ilist == NULL) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> </div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>     <span class="comment">/* Dark correction */</span></div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     <span class="keywordflow">if</span> (dark != NULL) {</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>         cpl_msg_info(cpl_func, <span class="stringliteral">"Subtract the dark to the images"</span>) ;</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>         <span class="comment">/* Load the dark image */</span></div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>         <span class="keywordflow">if</span> ((dark_image = cpl_image_load(dark, CPL_TYPE_FLOAT, 0, 0)) == NULL) {</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot load the dark %s"</span>, dark) ;</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>             <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>         }</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>         <span class="comment">/* Apply the dark correction to the images */</span></div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>         <span class="keywordflow">if</span> (cpl_imagelist_subtract_image(ilist, dark_image)!=CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot apply the dark to the images"</span>) ;</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>             cpl_image_delete(dark_image) ;</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>             <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>         }</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>         cpl_image_delete(dark_image) ;</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>     }</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> </div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>     <span class="comment">/* Flat-field correction */</span></div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>     <span class="keywordflow">if</span> (flat != NULL) {</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>         cpl_msg_info(cpl_func, <span class="stringliteral">"Divide the images by the flatfield"</span>) ;</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>         <span class="comment">/* Load the flat image */</span></div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>         <span class="keywordflow">if</span> ((flat_image = cpl_image_load(flat, CPL_TYPE_FLOAT, 0, 0)) == NULL) {</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot load the flat field %s"</span>, flat) ;</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>             <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>         }</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>         <span class="comment">/* Apply the flatfield correction to the images */</span></div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>         <span class="keywordflow">if</span> (cpl_imagelist_divide_image(ilist, flat_image)!=CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot apply the flatfield to the images"</span>) ;</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>             cpl_image_delete(flat_image) ;</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>             <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>         }</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>         cpl_image_delete(flat_image) ;</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     }</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>     <span class="comment">/* Correct the bad pixels if requested */</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     <span class="keywordflow">if</span> (bpm != NULL) {</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>         cpl_msg_info(cpl_func, <span class="stringliteral">"Correct the bad pixels in the images"</span>) ;</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>          <span class="comment">/* Load the bad pixels image */</span></div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>         <span class="keywordflow">if</span> ((bpm_im_int = cpl_image_load(bpm, CPL_TYPE_INT, 0, 0)) == NULL) {</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot load the bad pixel map %s"</span>, bpm) ;</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>             <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>         }</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>         <span class="comment">/* Convert the map from integer to binary */</span></div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>         bpm_im_bin = cpl_mask_threshold_image_create(bpm_im_int, -0.5, 0.5) ;</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>         cpl_mask_not(bpm_im_bin) ;</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>         cpl_image_delete(bpm_im_int) ;</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>         <span class="comment">/* Apply the bad pixels cleaning */</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>         <span class="keywordflow">for</span> (i=0 ; i<cpl_imagelist_get_size(ilist) ; i++) {</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>             cpl_image_reject_from_mask(cpl_imagelist_get(ilist, i), bpm_im_bin);</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>             <span class="keywordflow">if</span> (cpl_detector_interpolate_rejected(</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>                         cpl_imagelist_get(ilist, i)) != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>                 cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot clean the bad pixels in obj %d"</span>,</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>                         i+1);</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>                 cpl_mask_delete(bpm_im_bin) ;</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>                 <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>             }</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>         }</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>         cpl_mask_delete(bpm_im_bin) ;</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>     }</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> </div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>     <span class="comment">/* Return */</span></div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> }</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__calib_8h_source.html b/html/irplib__calib_8h_source.html
deleted file mode 100644
index cf46781..0000000
--- a/html/irplib__calib_8h_source.html
+++ /dev/null
@@ -1,109 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_calib.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_calib.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_calib.h,v 1.8 2007-02-12 10:34:51 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2007-02-12 10:34:51 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_CALIB_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_CALIB_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> cpl_table*</div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <a class="code" href="group__irplib__calib.html#ga98c9970b59c6b7919f531829f6f5dab9" title="Computes the detector's gain.">irplib_compute_gain</a>(</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span>                 cpl_frameset* son, </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span>                 cpl_frameset* sof, </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span>                 <span class="keywordtype">int</span>* zone1, </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span>                 <span class="keyword">const</span> <span class="keywordtype">int</span> kappa1,</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>                 <span class="keyword">const</span> <span class="keywordtype">int</span> nclip1);</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> cpl_table* <a class="code" href="group__irplib__calib.html#gadefee4e970a548c25bcbb42797778a2a" title="Computes the detector's linearity.">irplib_compute_linearity</a>(cpl_frameset* son, cpl_frameset* sof);</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__calib.html#gae650a3e54e1aff329b1b5ee356bcdbde" title="Apply the calibration to the frames.">irplib_flat_dark_bpm_calib</a>(cpl_imagelist *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__calib.html#gae9b762625dbd2c31c1b59cfd8c15fd90" title="Apply the detector linearity correction.">irplib_detlin_correct</a>(cpl_imagelist *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>                           <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__cat-test_8c_source.html b/html/irplib__cat-test_8c_source.html
deleted file mode 100644
index cf61378..0000000
--- a/html/irplib__cat-test_8c_source.html
+++ /dev/null
@@ -1,158 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_cat-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li><li class="navelem"><a class="el" href="dir_40a404867a1885f5fad756cff9cd9f5a.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_cat-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_cat-test.c,v 1.10 2013-01-29 08:43:33 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO Common Pipeline Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2008 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-01-29 08:43:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.10 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include "irplib_cat.h"</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">                                   Static functions</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_cat_all_test(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">                                  Main</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a> (<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> {</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>     irplib_cat_all_test();</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> }</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_cat_all_test(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> {</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>     cpl_propertylist * prop_wcs;</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>     cpl_wcs          * wcs = NULL;</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>     <span class="keywordtype">double</span>             ra1, ra2, dec1, dec2;</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>     <span class="comment">/* Create WCS object */</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     prop_wcs = cpl_propertylist_new();</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     cpl_test_nonnull(prop_wcs);</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     cpl_propertylist_append_double(prop_wcs, <span class="stringliteral">"CRVAL1"</span>, 0.);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     cpl_propertylist_append_double(prop_wcs, <span class="stringliteral">"CRVAL2"</span>, 0.);</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     cpl_propertylist_append_int(prop_wcs, <span class="stringliteral">"CRPIX1"</span>, 1);</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     cpl_propertylist_append_int(prop_wcs, <span class="stringliteral">"CRPIX2"</span>, 1);</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     cpl_propertylist_append_double(prop_wcs, <span class="stringliteral">"CD1_1"</span>, .001);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     cpl_propertylist_append_double(prop_wcs, <span class="stringliteral">"CD1_2"</span>, 0.);</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     cpl_propertylist_append_double(prop_wcs, <span class="stringliteral">"CD2_1"</span>, 00.);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     cpl_propertylist_append_double(prop_wcs, <span class="stringliteral">"CD2_2"</span>, .001);</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     cpl_propertylist_append_int(prop_wcs, <span class="stringliteral">"NAXIS"</span>, 2);</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     cpl_propertylist_append_int(prop_wcs, <span class="stringliteral">"NAXIS1"</span>, 1000);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>     cpl_propertylist_append_int(prop_wcs, <span class="stringliteral">"NAXIS2"</span>, 1000);</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     wcs = cpl_wcs_new_from_propertylist(prop_wcs);</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     <span class="keywordflow">if</span>(cpl_error_get_code() == CPL_ERROR_NO_WCS)</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>     {</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>         cpl_msg_warning(__func__,<span class="stringliteral">"No WCS present. Tests disabled"</span>);</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>         cpl_test_error(CPL_ERROR_NO_WCS);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>         cpl_test_null(wcs);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>         cpl_propertylist_delete(prop_wcs);</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>         <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>     }</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>     cpl_test_nonnull(wcs);</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     <a class="code" href="group__irplib__cat.html#ga2289fa88ec0498a2930291b1d51a46af" title="Get coverage in ra, dec of a frame.">irplib_cat_get_image_limits</a>(wcs, 0., &ra1, &ra2, &dec1, &dec2);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>     cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     cpl_test_abs(ra1, 0.00, DBL_EPSILON);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     cpl_test_abs(ra2,  0.99,  DBL_EPSILON);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     cpl_test_abs(dec1,  0.00, DBL_EPSILON);</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     cpl_test_abs(dec2,  0.99,  DBL_EPSILON);</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="comment">/* Free */</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     cpl_wcs_delete(wcs);</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     cpl_propertylist_delete(prop_wcs);</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__cat_8c_source.html b/html/irplib__cat_8c_source.html
deleted file mode 100644
index 80a55e8..0000000
--- a/html/irplib__cat_8c_source.html
+++ /dev/null
@@ -1,459 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_cat.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_cat.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_cat.c,v 1.10 2009-12-01 12:34:25 cgarcia Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: cgarcia $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2009-12-01 12:34:25 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.10 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <libgen.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include "irplib_cat.h"</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include "irplib_wcs.h"</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#define FILENAME_SZBUF 1024</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__cat.html#ga8dd2b5e6b7bc4a7ea3f2b275882aa200" title="Find the name of the standard catalogue being used and its location.">irplib_2mass_get_catpars</a></div>
-<div class="line"><a name="l00075"></a><span class="lineno"><a class="code" href="group__irplib__cat.html#ga8dd2b5e6b7bc4a7ea3f2b275882aa200">   75</a></span> (<span class="keyword">const</span> cpl_frame *  master_index,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>  <span class="keywordtype">char</span>            ** catpath,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>  <span class="keywordtype">char</span>            ** catname)</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> {</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>     cpl_propertylist * p;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>       * unk = <span class="stringliteral">"unknown"</span>;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordtype">char</span>             * fname;</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>     <span class="keywordtype">int</span>                status = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     <span class="comment">/* Initialise a few things */</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>     *catpath = NULL;</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>     *catname = NULL;</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     <span class="comment">/* First get the full path to the index file and make sure it exists */</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>     fname = cpl_strdup(cpl_frame_get_filename(master_index));</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     <span class="keywordflow">if</span> (access((<span class="keyword">const</span> <span class="keywordtype">char</span> *)fname,R_OK) != 0)</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     {</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>          cpl_msg_error(__func__,<span class="stringliteral">"Can't access index file %s"</span>,fname);</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>          cpl_free(fname);</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>          <span class="keywordflow">return</span> CPL_ERROR_FILE_IO;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     }</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     *catpath = cpl_strdup(dirname(fname));</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     <span class="comment">/* Try to load the propertylist. If it is not possible signal a fatal</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment">       error since this probably means the whole file is messed up */</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     <span class="keywordflow">if</span> ((p = cpl_propertylist_load(cpl_frame_get_filename(master_index),0)) == NULL)</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     {</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>         cpl_msg_error(__func__,<span class="stringliteral">"Can't load index file header %s"</span>,fname);</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>         cpl_free(*catpath);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>         cpl_free(fname);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>         <span class="keywordflow">return</span> CPL_ERROR_FILE_IO;</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     }</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     <span class="comment">/* If there is a catalogue name in the header then send it back. If there</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">       isn't then give a default name and send a warning */</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     <span class="keywordflow">if</span> (cpl_propertylist_has(p,<span class="stringliteral">"CATNAME"</span>))</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     {</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>         *catname = cpl_strdup(cpl_propertylist_get_string(p,<span class="stringliteral">"CATNAME"</span>));</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>         status = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>         *catname = cpl_strdup(unk);</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>         cpl_msg_warning(__func__,<span class="stringliteral">"Property CATNAME not in index file header %s"</span>,</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                         fname);</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     }</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     <span class="comment">/* Free and return */</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     cpl_free(fname);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     cpl_propertylist_delete(p);</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     <span class="keywordflow">return</span>(status);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> }</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> cpl_error_code <a class="code" href="group__irplib__cat.html#ga2289fa88ec0498a2930291b1d51a46af" title="Get coverage in ra, dec of a frame.">irplib_cat_get_image_limits</a></div>
-<div class="line"><a name="l00154"></a><span class="lineno"><a class="code" href="group__irplib__cat.html#ga2289fa88ec0498a2930291b1d51a46af">  154</a></span> (<span class="keyword">const</span> cpl_wcs    * wcs,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>  <span class="keywordtype">float</span>              ext_search,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>  <span class="keywordtype">double</span>           * ra1,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>  <span class="keywordtype">double</span>           * ra2,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>  <span class="keywordtype">double</span>           * dec1,</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>  <span class="keywordtype">double</span>           * dec2)</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> {</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keywordtype">double</span>            ra;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <span class="keywordtype">double</span>            dec;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     <span class="keywordtype">double</span>            x;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <span class="keywordtype">double</span>            y;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     <span class="keywordtype">double</span>            dra;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     <span class="keywordtype">double</span>            ddec;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <span class="keywordtype">double</span>            min_4q;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     <span class="keywordtype">double</span>            max_1q;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     <span class="keywordtype">int</span>               first_quad;</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     <span class="keywordtype">int</span>               fourth_quad;</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>       * naxes;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     <span class="keywordtype">long</span>              i;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="keywordtype">long</span>              j;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     <span class="keyword">const</span> cpl_array * a;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     <span class="comment">/* Initialise these in case of failure later*/</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     *ra1 = 0.0;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     *ra2 = 0.0;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     *dec1 = 0.0;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     *dec2 = 0.0;</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <span class="comment">/* Grab the WCS info from the property list */</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     <span class="keywordflow">if</span> (wcs == NULL)</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>         <span class="keywordflow">return</span> CPL_ERROR_DATA_NOT_FOUND;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     <span class="comment">/* Get the size of the data array */</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>     a = cpl_wcs_get_image_dims(wcs);</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     <span class="keywordflow">if</span>(a == NULL)</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>         <span class="keywordflow">return</span> CPL_ERROR_ILLEGAL_INPUT;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     naxes = cpl_array_get_data_int_const(a);</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     <span class="comment">/* Find the RA and Dec limits of the image */</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     *ra1 = 370.0;</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     *ra2 = -370.0;</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     *dec1 = 95.0;</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     *dec2 = -95.0;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     first_quad = 0;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     fourth_quad = 0;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     min_4q = 370.0;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     max_1q = 0.0;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     <span class="keywordflow">for</span> (j = 1; j < naxes[1]; j += 10) {</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>         y = (double)j;</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>         <span class="keywordflow">for</span> (i = 1; i < naxes[0]; i += 10) {</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>             x = (double)i;</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>             irplib_wcs_xytoradec(wcs,x,y,&ra,&dec);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>             <span class="keywordflow">if</span> (ra >= 0.0 && ra <= 90.0) {</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>                 first_quad = 1;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>                 <span class="keywordflow">if</span>(ra > max_1q)</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>                     max_1q = ra;</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>             } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ra >= 270.0 && ra <= 360.0) {</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>                 fourth_quad = 1;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>                 <span class="keywordflow">if</span>(ra - 360.0 < min_4q)</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>                     min_4q = ra - 360.0;</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>             }</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>             <span class="keywordflow">if</span>(ra < *ra1)</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>                 *ra1 = ra;</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>             <span class="keywordflow">if</span>(ra > *ra2)</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>                 *ra2 = ra;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>             <span class="keywordflow">if</span>(dec < *dec1)</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                 *dec1 = dec;</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>             <span class="keywordflow">if</span>(dec > *dec2)</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                 *dec2 = dec;</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>         }</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     }</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     <span class="comment">/* Now have a look to see if you had RA values in both the first and</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment">       fourth quadrants.  If you have, then make the minimum RA a negative</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment">       value.  This will be the signal to the caller that you have the</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="comment">       wraparound... */</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     <span class="keywordflow">if</span> (first_quad && fourth_quad) {</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         *ra1 = min_4q;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>         *ra2 = max_1q;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     }</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <span class="comment">/* Pad out search a bit */</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <span class="keywordflow">if</span> (ext_search)</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     {</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>         dra = 0.5*ext_search*(*ra2 - *ra1);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>         *ra1 -= dra;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         *ra2 += dra;</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         ddec = 0.5*ext_search*(*dec2 - *dec1);</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         *dec1 -= ddec;</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>         *dec2 += ddec;</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     }</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <span class="comment">/* Exit */</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> }</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> </div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> cpl_table *  <a class="code" href="group__irplib__cat.html#ga7fdafd757d33d4096270027912a89cf6" title="Extract standards from the 2mass catalogue.">irplib_2mass_extract</a></div>
-<div class="line"><a name="l00280"></a><span class="lineno"><a class="code" href="group__irplib__cat.html#ga7fdafd757d33d4096270027912a89cf6">  280</a></span> (<span class="keywordtype">char</span> *path,</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>  <span class="keywordtype">float</span> ramin,</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>  <span class="keywordtype">float</span> ramax,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>  <span class="keywordtype">float</span> decmin,</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>  <span class="keywordtype">float</span> decmax)</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> {</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     cpl_table *t,*s;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     cpl_table *out;</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     <span class="keywordtype">int</span> i,nrows,start,finish,first_index,last_index,irow,init,j;</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     <span class="keywordtype">int</span> first_index_ra,last_index_ra,wrap,iwrap;</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     <span class="keywordtype">float</span> dectest,ratest,ramin_wrap,ramax_wrap;</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <span class="keywordtype">char</span> fullname[FILENAME_SZBUF];</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     cpl_array *a;</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *deccol[] = {<span class="stringliteral">"Dec"</span>};</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     cpl_propertylist *p;</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     <span class="comment">/* Create an output table */</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     out = cpl_table_new(0);</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     init = 1;</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <span class="comment">/* Create a cpl array */</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="comment">/* deccol will NOT be modified */</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     a = cpl_array_wrap_string((<span class="keywordtype">char</span> **)deccol,1);</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <span class="comment">/* Is there a wrap around problem? */</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     wrap = (ramin < 0.0 && ramax > 0.0) ? 2 : 1;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="comment">/* Loop for each query. If there is a wrap around problem then we need 2</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment">       queries. If not, then we only need 1 */</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     <span class="keywordflow">for</span> (iwrap = 0; iwrap < wrap; iwrap++) {</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>         <span class="keywordflow">if</span> (wrap == 2) {</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>             <span class="keywordflow">if</span> (iwrap == 0) {</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                 ramin_wrap = ramin + 360.0;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                 ramax_wrap = 360.0;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>                 ramin_wrap = 0.000001;</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>                 ramax_wrap = ramax;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>             }</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>             ramin_wrap = ramin;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>             ramax_wrap = ramax;</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>         }</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>         <span class="comment">/* Find out where in the index to look */</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>         first_index_ra = (int)ramin_wrap;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>         last_index_ra = (int)ramax_wrap;</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>         <span class="keywordflow">if</span>(last_index_ra > 359)</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>             last_index_ra = 359;</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>         <span class="comment">/* Look at the min and max RA and decide which files need to be</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment">           opened. */</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         <span class="keywordflow">for</span> (i = first_index_ra; i <= last_index_ra; i++)</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>         {</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> </div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>             <span class="comment">/* Ok, we've found one that needs opening. Read the file with</span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="comment">               the relevant CPL call */</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>             (void)snprintf(fullname,FILENAME_SZBUF,<span class="stringliteral">"%s/npsc%03d.fits"</span>,path,i);</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>             <span class="comment">/* Read the propertylist so that you know how many rows there</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment">               are in the table */</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>             p = cpl_propertylist_load(fullname,1);</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>             <span class="keywordflow">if</span> (p == NULL)</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>             {</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>                 cpl_error_set_message_macro(__func__,CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>                         __FILE__, __LINE__, <span class="stringliteral">"2mass file %s missing"</span>,fullname);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>                 cpl_table_delete(out);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>                 cpl_array_unwrap(a);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>                 <span class="keywordflow">return</span>(NULL);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>             }</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>             nrows = cpl_propertylist_get_int(p, <span class="stringliteral">"NAXIS2"</span>);</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>             cpl_propertylist_delete(p);</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>             <span class="comment">/* Load various rows until you find the Dec range that you</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="comment">             have specified. First the minimum Dec */</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>             start = 0;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>             finish = nrows;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>             first_index = nrows/2;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>             <span class="keywordflow">while</span> (finish - start >= 2)</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>             {</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>                 t = cpl_table_load_window(fullname, 1, 0, a, first_index, 1);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>                 dectest = cpl_table_get_float(t, <span class="stringliteral">"Dec"</span>, 0, NULL);</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                 cpl_table_delete(t);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>                 <span class="keywordflow">if</span> (dectest < decmin)</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                 {</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>                     start = first_index;</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>                     first_index = (first_index + finish)/2;</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                 }</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>                 {</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>                     finish = first_index;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                     first_index = (first_index + start)/2;</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                 }</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>             }</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>             <span class="comment">/* Load various rows until you find the Dec range that you</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> <span class="comment">             have specified. Now the maximum Dec */</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>             start = first_index;</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>             finish = nrows;</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>             last_index = start + (finish - start)/2;</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>             <span class="keywordflow">while</span> (finish - start >= 2)</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>             {</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>                 t = cpl_table_load_window(fullname, 1, 0, a, last_index, 1);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>                 dectest = cpl_table_get_float(t, <span class="stringliteral">"Dec"</span>, 0, NULL);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>                 cpl_table_delete(t);</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>                 <span class="keywordflow">if</span> (dectest < decmax)</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>                 {</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>                     start = last_index;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>                     last_index = (last_index + finish)/2;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>                 }</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                 {</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                     finish = last_index;</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>                     last_index = (last_index + start)/2;</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                 }</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>             }</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>             <span class="keywordflow">if</span> (last_index < first_index)</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>                 last_index = first_index;</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>             <span class="comment">/* Ok now now load all the rows in the relevant dec limits */</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>             nrows = last_index - first_index + 1;</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>             <span class="keywordflow">if</span> ((t = cpl_table_load_window(fullname, 1, 0, NULL, first_index,</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                                            nrows)) == NULL)</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>             {</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                 cpl_error_set_message_macro(__func__,CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                         __FILE__, __LINE__, <span class="stringliteral">"Error in subset of 2mass file %s "</span>,</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                         fullname);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>                 cpl_table_delete(out);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>                 cpl_array_unwrap(a);</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                 <span class="keywordflow">return</span> (NULL);</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>             }</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>             cpl_table_unselect_all(t);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>             <span class="comment">/* Right, we now know what range of rows to search. Go through</span></div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> <span class="comment">             these and pick the ones that are in the correct range of RA.</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="comment">             If a row qualifies, then 'select' it. */</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>             <span class="keywordflow">for</span> (j = 0; j < nrows; j++)</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>             {</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>                 ratest = cpl_table_get_float(t, <span class="stringliteral">"RA"</span>, j, NULL);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>                 <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>                 {</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>                     cpl_error_set_message_macro(__func__,CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>                             __FILE__, __LINE__, <span class="stringliteral">"No RA column in 2mass file %s"</span>,</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>                             fullname);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>                     cpl_table_delete(t);</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>                     cpl_array_unwrap(a);</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>                     cpl_table_delete(out);</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>                     <span class="keywordflow">return</span> (NULL);</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>                 }</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>                 <span class="keywordflow">if</span> (ratest >= ramin_wrap && ratest <= ramax_wrap)</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>                     cpl_table_select_row(t, j);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>             }</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> </div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>             <span class="comment">/* Extract the rows that have been selected now and append them</span></div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <span class="comment">             onto the output table */</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>             s = cpl_table_extract_selected(t);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>             <span class="keywordflow">if</span> (init == 1)</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>             {</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                 cpl_table_copy_structure(out, t);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                 init = 0;</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>             }</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>             irow = cpl_table_get_nrow(out) + 1;</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>             cpl_table_insert(out, s, irow);</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>             <span class="comment">/* Tidy up */</span></div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>             cpl_table_delete(t);</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>             cpl_table_delete(s);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>         }</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>     }</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     <span class="comment">/* Ok, now just return the table and get out of here */</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     cpl_array_unwrap(a);</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     <span class="keywordflow">return</span>(out);</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__cat_8h_source.html b/html/irplib__cat_8h_source.html
deleted file mode 100644
index 531d169..0000000
--- a/html/irplib__cat_8h_source.html
+++ /dev/null
@@ -1,117 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_cat.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_cat.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_cat.h,v 1.5 2009-12-16 14:49:52 cgarcia Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: cgarcia $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2009-12-16 14:49:52 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_CAT_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_CAT_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__cat.html#ga8dd2b5e6b7bc4a7ea3f2b275882aa200" title="Find the name of the standard catalogue being used and its location.">irplib_2mass_get_catpars</a></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> (<span class="keyword">const</span> cpl_frame *master_index,</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span>  <span class="keywordtype">char</span>            **catpath,</div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span>  <span class="keywordtype">char</span>            **catname);</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> cpl_table *  <a class="code" href="group__irplib__cat.html#ga7fdafd757d33d4096270027912a89cf6" title="Extract standards from the 2mass catalogue.">irplib_2mass_extract</a></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> (<span class="keywordtype">char</span> *path,</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>  <span class="keywordtype">float</span> ramin,</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>  <span class="keywordtype">float</span> ramax,</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>  <span class="keywordtype">float</span> decmin,</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>  <span class="keywordtype">float</span> decmax);</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> cpl_error_code <a class="code" href="group__irplib__cat.html#ga2289fa88ec0498a2930291b1d51a46af" title="Get coverage in ra, dec of a frame.">irplib_cat_get_image_limits</a></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> (<span class="keyword">const</span> cpl_wcs    * wcs,</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span>  <span class="keywordtype">float</span>              ext_search,</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>  <span class="keywordtype">double</span>           * ra1,</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>  <span class="keywordtype">double</span>           * ra2,</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>  <span class="keywordtype">double</span>           * dec1,</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>  <span class="keywordtype">double</span>           * dec2);</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__distortion_8c_source.html b/html/irplib__distortion_8c_source.html
deleted file mode 100644
index c5f8df9..0000000
--- a/html/irplib__distortion_8c_source.html
+++ /dev/null
@@ -1,1311 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_distortion.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_distortion.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_distortion.c,v 1.52 2013-01-29 08:43:33 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-01-29 08:43:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.52 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment">/* TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#ifndef CPL_SIZE_FORMAT</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor"></span><span class="preprocessor">#define CPL_SIZE_FORMAT "d"</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor"></span><span class="preprocessor">#define cpl_size int</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE <= CPL_VERSION(5, 92, 0)</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span><span class="preprocessor">#define cpl_apertures_get_pos_x cpl_apertures_get_max_x</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">/* END TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include "irplib_distortion.h"</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include "irplib_flat.h"</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include "irplib_utils.h"</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include "irplib_polynomial.h"</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">                                   Define</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#define IRPLIB_MAX(A,B) ((A) > (B) ? (A) : (B))</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_MIN(A,B) ((A) < (B) ? (A) : (B))</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#define ARC_MINGOODPIX      100</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor"></span><span class="preprocessor">#define ARC_MINARCLENFACT   2.0</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor"></span><span class="preprocessor">#define ARC_MINNBARCS       4</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor"></span><span class="preprocessor">#define ARC_RANGE_FACT      3.0</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor"></span><span class="preprocessor">#define ARC_WINDOWSIZE      32</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#define TRESH_MEDIAN_MIN    0.0</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor"></span><span class="preprocessor">#define TRESH_SIGMA_MAX     200.0</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">                                Functions prototypes</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="keyword">static</span> cpl_apertures * irplib_distortion_detect_arcs(cpl_image *,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>         cpl_image **, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">double</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="keyword">static</span> cpl_error_code irplib_distortion_fill_border(cpl_image *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>                                                     <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="keyword">static</span> <span class="keywordtype">int</span> irplib_distortion_threshold1d(cpl_image *, <span class="keywordtype">double</span>, cpl_image *, </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>         <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="keyword">static</span> cpl_error_code irplib_distortion_purge_arcs(cpl_apertures **, cpl_image *,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>                                                    <span class="keyword">const</span> cpl_image *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>                                                    <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="keyword">static</span> cpl_error_code irplib_distortion_fill_arc_positions(cpl_bivector *,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>                                                           cpl_vector *,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                                                           <span class="keyword">const</span> cpl_image *,</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>                                                           <span class="keyword">const</span> cpl_image *,</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                                                           <span class="keyword">const</span> cpl_apertures *);</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="keyword">static</span> <span class="keywordtype">double</span> irplib_distortion_get_row_centroid(<span class="keyword">const</span> cpl_image *,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                                                  <span class="keyword">const</span> cpl_image *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="keyword">static</span> <span class="keywordtype">int</span> irplib_distortion_sub_hor_lowpass(cpl_image *, <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="keyword">static</span> cpl_image * irplib_distortion_remove_ramp(<span class="keyword">const</span> cpl_image *);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="keyword">static</span> cpl_error_code irplib_image_filter_background_line(cpl_image *,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>         <span class="keyword">const</span> cpl_image *, <span class="keywordtype">int</span>, cpl_boolean) ;</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="keyword">static</span> cpl_error_code irplib_polynomial_fit_2d(cpl_polynomial *,</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>                                                <span class="keyword">const</span> cpl_bivector *,</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>                                                <span class="keyword">const</span> cpl_vector *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                                                <span class="keywordtype">double</span>, <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="keyword">static</span> cpl_matrix * irplib_matrix_product_normal_create(<span class="keyword">const</span> cpl_matrix *);</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment">                                Functions code</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> cpl_polynomial * irplib_distortion_estimate(</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>         <span class="keyword">const</span> cpl_image *   org,</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>         <span class="keywordtype">int</span>                 xmin,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>         <span class="keywordtype">int</span>                 ymin,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>         <span class="keywordtype">int</span>                 xmax,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>         <span class="keywordtype">int</span>                 ymax,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>         <span class="keywordtype">int</span>                 auto_ramp_sub,</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>         <span class="keywordtype">int</span>                 arc_sat,</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>         <span class="keywordtype">int</span>                 max_arc_width,</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>         <span class="keywordtype">double</span>              kappa,</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>         <span class="keywordtype">int</span>                 degree,</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>         cpl_apertures   **  arcs)</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> {</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     cpl_image      * local_im;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     cpl_image      * filtered;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     cpl_image      * label_image;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     <span class="keywordtype">double</span>           rightmost, leftmost;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     cpl_bivector   * grid;</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     cpl_vector     * values_to_fit;</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     <span class="keywordtype">int</span>              n_arcs;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     cpl_polynomial * poly2d;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="keywordtype">double</span>           mse = 0.0;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>        nx = cpl_image_get_size_x(org);</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>        ny = cpl_image_get_size_y(org);</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>        min_arc_range = (int)(nx / ARC_RANGE_FACT);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     <span class="keywordtype">int</span>              i;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     cpl_ensure(org           != NULL, CPL_ERROR_NULL_INPUT,    NULL);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     cpl_ensure(kappa         >= 0.0,  CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     cpl_ensure(max_arc_width > 0,     CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     <span class="comment">/* The background may vary strongly along the vertical line. */</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     <span class="comment">/* Detect and rm background with a 1+2*max_arc_width x 1 median filter */</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     filtered = cpl_image_new(nx, ny, cpl_image_get_type(org));</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     irplib_image_filter_background_line(filtered, org, max_arc_width, CPL_TRUE);</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     <span class="keywordflow">if</span> (auto_ramp_sub) {</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>         local_im = irplib_distortion_remove_ramp(filtered);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>         cpl_image_delete(filtered);</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>         local_im = filtered;</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     }</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     cpl_error_ensure(local_im != NULL, cpl_error_get_code(),</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>                      <span class="keywordflow">return</span>(NULL), <span class="stringliteral">"Cannot clean the image"</span>);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     <span class="comment">/* Detect the arcs in the input image */</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     *arcs = irplib_distortion_detect_arcs(local_im, &label_image, arc_sat,</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>                                           max_arc_width, kappa, xmin, ymin,</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>                                           xmax, ymax);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     <span class="keywordflow">if</span> (*arcs == NULL) {</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>         cpl_image_delete(local_im);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>         cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>                               <span class="stringliteral">"Cannot detect the arcs"</span>);</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     }</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     n_arcs = cpl_apertures_get_size(*arcs);</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"%d detected arcs"</span>, n_arcs);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     <span class="comment">/* Check that the arcs are not concentrated in the same zone */</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     rightmost = leftmost = cpl_apertures_get_pos_x(*arcs, 1);</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     <span class="keywordflow">for</span> (i=1; i<n_arcs; i++) {</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>         <span class="keywordflow">if</span> (cpl_apertures_get_pos_x(*arcs, i+1) < leftmost)</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>             leftmost = cpl_apertures_get_pos_x(*arcs, i+1);</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>         <span class="keywordflow">if</span> (cpl_apertures_get_pos_x(*arcs, i+1) > rightmost)</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>             rightmost = cpl_apertures_get_pos_x(*arcs, i+1);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     }</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     <span class="keywordflow">if</span> ((<span class="keywordtype">int</span>)(rightmost-leftmost) < min_arc_range) {</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="preprocessor"></span>        cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                               <span class="stringliteral">"too narrow range (%g-%g)<%d"</span>,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                               rightmost, leftmost, min_arc_range);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="preprocessor"></span>        cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                               <span class="stringliteral">"too narrow range"</span>);</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="preprocessor"></span>        cpl_apertures_delete(*arcs);</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         cpl_image_delete(local_im);</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         cpl_image_delete(label_image);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         *arcs = NULL;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     }</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <span class="comment">/* Create a 2-D deformation grid with detected arcs */</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Create deformation grid"</span>);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     grid = cpl_bivector_new(n_arcs * ny);</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     values_to_fit = cpl_vector_new(n_arcs * ny);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> </div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     <span class="keywordflow">if</span> (irplib_distortion_fill_arc_positions(grid, values_to_fit, local_im,</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                                             label_image, *arcs)){</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                               <span class="stringliteral">"cannot get arcs positions"</span>);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>         cpl_apertures_delete(*arcs);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>         cpl_image_delete(local_im);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>         cpl_image_delete(label_image);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>         *arcs = NULL;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     }</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     cpl_image_delete(label_image);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     cpl_image_delete(local_im);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <span class="comment">/* Apply the fitting */</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     poly2d = cpl_polynomial_new(2);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     <span class="keywordflow">if</span> (irplib_polynomial_fit_2d(poly2d, grid, values_to_fit, degree,</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                                  0.5*(ny+1), &mse)) {</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                               <span class="stringliteral">"cannot apply the 2d fit"</span>);</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>         cpl_bivector_delete(grid);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>         cpl_vector_delete(values_to_fit);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         cpl_apertures_delete(*arcs);</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>         *arcs = NULL;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     }</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     cpl_msg_info(cpl_func, </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>             <span class="stringliteral">"Fitted a %d. degree 2D-polynomial to %"</span>CPL_SIZE_FORMAT<span class="stringliteral">" points "</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>             <span class="stringliteral">"with mean-square error: %g"</span>, degree,</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>             cpl_vector_get_size(values_to_fit), mse);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     <span class="comment">/* Free and return */</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     cpl_bivector_delete(grid);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     cpl_vector_delete(values_to_fit);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     <span class="keywordflow">return</span> poly2d;</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> }</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="keyword">static</span> cpl_apertures * irplib_distortion_detect_arcs(</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>         cpl_image *   im,</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>         cpl_image **  label_im,</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>         <span class="keywordtype">int</span>             arc_sat,</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>         <span class="keywordtype">int</span>             max_arc_width,</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>         <span class="keywordtype">double</span>          kappa,</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>         <span class="keywordtype">int</span>             xmin,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>         <span class="keywordtype">int</span>             ymin,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>         <span class="keywordtype">int</span>             xmax,</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>         <span class="keywordtype">int</span>             ymax)</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> {</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           ny = cpl_image_get_size_y(im);</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="comment">/* Set min_arclen */</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           min_arclen = (int)(ny / ARC_MINARCLENFACT);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     cpl_image       *   filt_im;</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     cpl_mask        *   filter;</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     cpl_image       *   collapsed;</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     cpl_mask        *   bin_im;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     <span class="keywordtype">double</span>              threshold, fillval, median_val, sigma;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     cpl_apertures   *   det;</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     cpl_size            nobj;</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     <span class="keywordtype">int</span>                 ngoodpix;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     <span class="comment">/* Default values for output parameters */</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     *label_im = NULL;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <span class="comment">/* Clear zones to be ignored (to avoid false detections) */</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     median_val = cpl_image_get_median_dev(im, &sigma);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     fillval = median_val-sigma/2.0;</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     <span class="keywordflow">if</span> (irplib_distortion_fill_border(im, xmin, ymin, xmax, ymax, fillval)) {</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>         cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>                               <span class="stringliteral">"cannot fill bad zones"</span>);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     }</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     <span class="comment">/* Subtract a low-pass */</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     filt_im = cpl_image_duplicate(im);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     <span class="keywordflow">if</span> (irplib_distortion_sub_hor_lowpass(filt_im, ARC_WINDOWSIZE) == -1) {</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         cpl_image_delete(filt_im);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     }</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     <span class="comment">/* Get relevant stats for thresholding */</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     median_val = cpl_image_get_median_dev(filt_im, &sigma);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> </div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     <span class="comment">/* Correct median_val and sigma if necessary */</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     <span class="keywordflow">if</span> (median_val < TRESH_MEDIAN_MIN) median_val = TRESH_MEDIAN_MIN;</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     <span class="keywordflow">if</span> (sigma > TRESH_SIGMA_MAX) sigma = TRESH_SIGMA_MAX;</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     <span class="comment">/* Set the threshold */</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     threshold = median_val + sigma * kappa;</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     <span class="comment">/* Collapse the image */</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     collapsed = cpl_image_collapse_median_create(filt_im, 0, 0, 0);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     <span class="comment">/* Threshold to keep only the arcs - use of the collapsed image */</span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     <span class="keywordflow">if</span> (irplib_distortion_threshold1d(filt_im, median_val, collapsed, 0.0)==-1) {</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>         cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>                               <span class="stringliteral">"cannot threshold the filtered image"</span>);</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>         cpl_image_delete(filt_im);</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>         cpl_image_delete(collapsed);</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     }</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     cpl_image_delete(collapsed);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     <span class="comment">/* Binarize the image */</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     bin_im = cpl_mask_threshold_image_create(filt_im, threshold, </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>             DBL_MAX);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     cpl_image_delete(filt_im);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     <span class="keywordflow">if</span> (bin_im == NULL) {</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>         cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                               <span class="stringliteral">"cannot binarise the image"</span>);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     }</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     <span class="comment">/* Test if there are enough good pixels */</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     ngoodpix = cpl_mask_count(bin_im);</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     <span class="keywordflow">if</span> (ngoodpix < ARC_MINGOODPIX) {</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="preprocessor"></span>        cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                               <span class="stringliteral">"Too few (%d) white pixels"</span>, ngoodpix);</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="preprocessor"></span>        cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>                               <span class="stringliteral">"Too few white pixels"</span>);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> <span class="preprocessor"></span>        cpl_mask_delete(bin_im);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     }</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>     <span class="comment">/* Apply a morphological opening to clean the isolated pixels */</span></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     filter = cpl_mask_new(3, 3);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     cpl_mask_not(filter);</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     cpl_mask_filter(bin_im, bin_im, filter, CPL_FILTER_OPENING,</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>                     CPL_BORDER_ZERO);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     cpl_mask_delete(filter);</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="comment">/* Labelize pixel map to a label image */</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     *label_im = cpl_image_labelise_mask_create(bin_im, &nobj);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     cpl_mask_delete(bin_im);</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     <span class="comment">/* Compute statistics on objects */</span></div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>     <span class="keywordflow">if</span> ((det = cpl_apertures_new_from_image(im, *label_im)) == NULL) {</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>         cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>                               <span class="stringliteral">"Cannot compute arcs stats"</span>);</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>         cpl_image_delete(*label_im);</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>         *label_im = NULL;</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     }</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     <span class="comment">/* Purge non-relevant arcs */</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     <span class="keywordflow">if</span> (irplib_distortion_purge_arcs(&det, *label_im, im, min_arclen,</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>                                      max_arc_width, arc_sat)) {</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>         cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                               <span class="stringliteral">"Cannot purge the arcs"</span>);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>         cpl_image_delete(*label_im);</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>         *label_im = NULL;</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>         cpl_apertures_delete(det);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     }</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     <span class="keywordflow">if</span> (cpl_apertures_get_size(det) < ARC_MINNBARCS) {</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="preprocessor"></span>        cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                 <span class="stringliteral">"Not enough valid arcs (%"</span>CPL_SIZE_FORMAT<span class="stringliteral">" < %d)"</span>, </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                 cpl_apertures_get_size(det), ARC_MINNBARCS);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> <span class="preprocessor"></span>        cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>                               <span class="stringliteral">"Not enough valid arcs, min="</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>                               IRPLIB_STRINGIFY(ARC_MINNBARCS));</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="preprocessor"></span>        cpl_image_delete(*label_im);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>         *label_im = NULL;</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>         cpl_apertures_delete(det);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     }</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     <span class="comment">/* Return  */</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     <span class="keywordflow">return</span> det;</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> }</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> </div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> <span class="keyword">static</span> cpl_error_code irplib_distortion_fill_border(cpl_image * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                                                     <span class="keywordtype">int</span>         xmin,</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                                                     <span class="keywordtype">int</span>         ymin,</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>                                                     <span class="keywordtype">int</span>         xmax,</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                                                     <span class="keywordtype">int</span>         ymax,</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                                                     <span class="keywordtype">double</span>      fillval)</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> {</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>   nx     = cpl_image_get_size_x(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>   ny     = cpl_image_get_size_y(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>     <span class="keywordtype">float</span>     * pfi    = cpl_image_get_data_float(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     <span class="keyword">const</span> <span class="keywordtype">float</span> fvalue = (float)fillval;</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>     <span class="keywordtype">int</span>         i, j;</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     cpl_ensure_code(pfi != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     <span class="comment">/* Ensure validity of pixel buffer access */</span></div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     xmin = IRPLIB_MIN(xmin, nx+1);</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     ymax = IRPLIB_MIN(ymax, ny);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     <span class="comment">/* - and avoid double access */</span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     xmax = IRPLIB_MAX(xmax, xmin - 1);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     ymin = IRPLIB_MIN(ymin, ymax + 1);</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> </div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     <span class="comment">/* Fill the zone */</span></div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     <span class="keywordflow">for</span> (j = 0; j < ymin-1; j++) {</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>         <span class="keywordflow">for</span> (i = 0; i < nx; i++) {</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>             pfi[i+j*nx] = fvalue;</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>         }</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     }</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>     <span class="comment">/* assert( j == IRPLIB_MAX(0, ymin-1) ); */</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     <span class="keywordflow">for</span> (; j < ymax; j++) {</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>         <span class="keywordflow">for</span> (i = 0; i < xmin-1; i++) {</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>             pfi[i+j*nx] = fvalue;</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>         }</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>         <span class="keywordflow">for</span> (i = xmax; i < nx; i++) {</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>             pfi[i+j*nx] = fvalue;</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>         }</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     }</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     <span class="comment">/* assert( j == IRPLIB_MAX(0, ymax) ); */</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> </div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>     <span class="keywordflow">for</span> (; j < ny; j++) {</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>         <span class="keywordflow">for</span> (i = 0; i < nx; i++) {</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>             pfi[i+j*nx] = fvalue;</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>         }</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     }</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> }</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="keyword">static</span> <span class="keywordtype">int</span> irplib_distortion_threshold1d(</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>         cpl_image   *   im,</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>         <span class="keywordtype">double</span>          threshold,</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>         cpl_image   *   im1d,</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>         <span class="keywordtype">double</span>          newval)</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> {</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     <span class="keywordtype">float</span>       *   pim;</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>     <span class="keywordtype">float</span>       *   pim1d;</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     <span class="keywordtype">int</span>             nx, ny;</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     <span class="keywordtype">int</span>             i, j;</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> </div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     <span class="keywordflow">if</span> (im == NULL) <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     <span class="keywordflow">if</span> (im1d == NULL) <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     <span class="keywordflow">if</span> (cpl_image_get_type(im) != CPL_TYPE_FLOAT) <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     <span class="keywordflow">if</span> (cpl_image_get_type(im1d) != CPL_TYPE_FLOAT) <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>     <span class="comment">/* Get access to the im / im1d data */</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>     pim = cpl_image_get_data_float(im);</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>     pim1d = cpl_image_get_data_float(im1d);</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>     nx = cpl_image_get_size_x(im);</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>     ny = cpl_image_get_size_y(im);</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> </div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     <span class="comment">/* Apply the thresholding */</span></div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     <span class="keywordflow">for</span> (i=0; i<nx; i++)</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>         <span class="keywordflow">if</span> (pim1d[i] < threshold) {</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>             <span class="keywordflow">for</span> (j=0; j<ny; j++) pim[i+j*nx] = (<span class="keywordtype">float</span>)newval;</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>         }</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>     <span class="comment">/* Return */</span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> }</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> </div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> <span class="keyword">static</span> <span class="keywordtype">int</span> irplib_distortion_sub_hor_lowpass(</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>         cpl_image   *   im, </div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>         <span class="keywordtype">int</span>             filt_size)</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> {</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>     cpl_vector  *   linehi;</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>     cpl_vector  *   linelo;</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>     cpl_vector  *   avglinehi;</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     cpl_vector  *   avglinelo;</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>     <span class="keywordtype">double</span>      *   pavglinehi;</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     <span class="keywordtype">float</span>       *   pim;</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>     <span class="keywordtype">int</span>             lopos, hipos, nx, ny;</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>     <span class="keywordtype">int</span>             i, j;</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     <span class="keywordflow">if</span> (im == NULL) <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>     <span class="keywordflow">if</span> (filt_size <= 0) <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     </div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>     nx = cpl_image_get_size_x(im);</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     ny = cpl_image_get_size_y(im);</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>     lopos = (int)(ny/4);</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     hipos = (int)(3*ny/4);</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>     <span class="comment">/* Get the vectors out of the image */</span></div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     <span class="keywordflow">if</span> ((linehi = cpl_vector_new_from_image_row(im, hipos)) == NULL) {</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     }</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>     <span class="keywordflow">if</span> ((linelo = cpl_vector_new_from_image_row(im, lopos)) == NULL) {</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>         cpl_vector_delete(linehi);</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>     }</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>     </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>     <span class="comment">/* Filter the vectors */</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     <span class="keywordflow">if</span> ((avglinehi = cpl_vector_filter_median_create(linehi, </div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>                     filt_size)) == NULL) {</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>         cpl_vector_delete(linehi);</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>         cpl_vector_delete(linelo);</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>     }</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>     cpl_vector_delete(linehi);</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>     </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     <span class="keywordflow">if</span> ((avglinelo = cpl_vector_filter_median_create(linelo, </div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                     filt_size)) == NULL) {</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>         cpl_vector_delete(linelo);</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>         cpl_vector_delete(avglinehi);</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>     }</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>     cpl_vector_delete(linelo);</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span> </div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>     <span class="comment">/* Average the filtered vectors to get the low freq signal */</span></div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>     cpl_vector_add(avglinehi, avglinelo);</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>     cpl_vector_delete(avglinelo);</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>     cpl_vector_divide_scalar(avglinehi, 2.0);</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> </div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     <span class="comment">/* Subtract the low frequency signal */</span></div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>     pavglinehi = cpl_vector_get_data(avglinehi);</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     pim = cpl_image_get_data_float(im);</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     <span class="keywordflow">for</span> (i=0; i<nx; i++) {</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>         <span class="keywordflow">for</span> (j=0; j<ny; j++) {</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>             pim[i+j*nx] -= pavglinehi[i];</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>         }</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     }</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>     cpl_vector_delete(avglinehi);</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> }</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> cpl_error_code irplib_distortion_purge_arcs(cpl_apertures  ** <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>                                             cpl_image       * lab_im,</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>                                             <span class="keyword">const</span> cpl_image * arc_im,</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>                                             <span class="keywordtype">int</span>               min_arclen,</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>                                             <span class="keywordtype">int</span>               max_arcwidth,</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>                                             <span class="keywordtype">double</span>            arc_sat)</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> {</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> ycenter = 0.5 * (1 + cpl_image_get_size_y(arc_im));</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     <span class="keywordtype">int</span>   narcs;</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>     <span class="keywordtype">int</span>   nkeep  = 0;</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     <span class="keywordtype">int</span>   ifirst = 1;</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     <span class="keywordtype">int</span> * relabel;</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>     <span class="keywordtype">int</span>   i;</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span> </div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>     cpl_ensure_code(<span class="keyword">self</span> != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span> </div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     <span class="comment">/* Get number of arcs */</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     narcs = cpl_apertures_get_size(*<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> </div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     cpl_ensure_code(narcs  > 0,     CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>     cpl_ensure_code(cpl_image_get_type(lab_im) == CPL_TYPE_INT,</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>                     CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> </div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>     <span class="comment">/* Allocate relabel array with default relabelling to zero */</span></div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>     relabel = cpl_calloc(narcs, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> </div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     <span class="comment">/* Loop on the different arcs candidates */</span></div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>     <span class="keywordflow">for</span> (i = 0; i < narcs; i++) {</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>         <span class="comment">/* Test if the current object is a valid arc */</span></div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>         <span class="keyword">const</span> <span class="keywordtype">int</span> arclen = 1</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>             + cpl_apertures_get_top(*<span class="keyword">self</span>, i+1)</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>             - cpl_apertures_get_bottom(*<span class="keyword">self</span>, i+1);</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> </div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>         <span class="keywordflow">if</span> (cpl_apertures_get_top(*<span class="keyword">self</span>,    i+1) < ycenter) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>         <span class="keywordflow">if</span> (cpl_apertures_get_bottom(*<span class="keyword">self</span>, i+1) > ycenter) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>         <span class="keywordflow">if</span> (arclen > min_arclen) {</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>             <span class="keyword">const</span> <span class="keywordtype">int</span> arcwidth = 1</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>                 + cpl_apertures_get_right(*<span class="keyword">self</span>, i+1)</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>                 - cpl_apertures_get_left(*<span class="keyword">self</span>, i+1);</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>             <span class="keywordflow">if</span> (arcwidth < max_arcwidth) {</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>                 <span class="keyword">const</span> <span class="keywordtype">int</span> edge = cpl_apertures_get_left_y(*<span class="keyword">self</span>, i+1);</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>                 <span class="keywordflow">if</span> (edge > 0) {</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>                     <span class="keyword">const</span> <span class="keywordtype">double</span> mean = cpl_apertures_get_mean(*<span class="keyword">self</span>, i+1);</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>                     <span class="keywordflow">if</span> (mean < arc_sat) {</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>                         relabel[i] = ++nkeep;</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>                         <span class="comment">/* Relabeling, if any, starts with ifirst */</span></div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>                         <span class="keywordflow">if</span> (nkeep == i+1) ifirst = nkeep;</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>                     }</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>                 }</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>             }</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>         }</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>     }</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     <span class="keywordflow">if</span> (nkeep < narcs) {</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>         <span class="comment">/* Update the labelised image by erasing non valid arcs */</span></div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>         <span class="keywordtype">int</span>     * plabim = cpl_image_get_data_int(lab_im);</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>         <span class="keyword">const</span> <span class="keywordtype">int</span> npix   = cpl_image_get_size_x(lab_im)</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>             * cpl_image_get_size_y(lab_im);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> </div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>         <span class="keywordflow">if</span> (nkeep == 0) {</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>             cpl_free(relabel);</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> <span class="preprocessor"></span>            <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>                                          <span class="stringliteral">"All %d arc(s) are invalid"</span>, narcs);</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> <span class="preprocessor"></span>            <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>                                          <span class="stringliteral">"All arcs are invalid"</span>);</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> </div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>         <span class="keywordflow">for</span> (i = 0; i < npix; i++) {</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>             <span class="keyword">const</span> <span class="keywordtype">int</span> label = plabim[i];</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>             <span class="keywordflow">if</span> (label < 0 || label > narcs) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>             <span class="keywordflow">if</span> (label >= ifirst) plabim[i] = relabel[label-1];</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>         }</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> </div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>         <span class="keywordflow">if</span> (i < npix) {</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>             <span class="comment">/* lab_im is not a valid label image */</span></div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>             cpl_free(relabel);</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>             <span class="keywordflow">return</span> cpl_error_set(cpl_func, plabim[i] < 0</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                                          ? CPL_ERROR_ILLEGAL_INPUT</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>                                          : CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>         }</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>         <span class="comment">/* Purge the bad arcs */</span></div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>         cpl_apertures_delete(*<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>         *<span class="keyword">self</span> = cpl_apertures_new_from_image(arc_im, lab_im);</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>     }</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span> </div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>     cpl_free(relabel);</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> </div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Purged %d of %d arcs (1st purged=%d)"</span>, narcs - nkeep,</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>                  narcs, ifirst);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span> </div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     <span class="comment">/* arc_im may be invalid */</span></div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     cpl_ensure_code(*<span class="keyword">self</span> != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> </div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> }</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> </div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> </div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> irplib_distortion_fill_arc_positions(cpl_bivector        * grid,</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>                                      cpl_vector          * fitvalues,</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>                                      <span class="keyword">const</span> cpl_image     * in,</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>                                      <span class="keyword">const</span> cpl_image     * label_im,</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>                                      <span class="keyword">const</span> cpl_apertures * det)</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> {</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>    narcs = cpl_apertures_get_size(det);</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>     <span class="keywordtype">int</span>          nfitvals = cpl_vector_get_size(fitvalues);</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>    nx = cpl_image_get_size_x(label_im);</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>    ny = cpl_image_get_size_y(label_im);</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>     cpl_image  * filt_img;</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>     cpl_mask   * kernel;</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>     cpl_vector * gridx = cpl_bivector_get_x(grid);</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>     cpl_vector * gridy = cpl_bivector_get_y(grid);</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     cpl_polynomial* dist1d;</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>     cpl_matrix * dist1dx = NULL;</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>     cpl_vector * dist1dy = NULL;</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>     <span class="keywordtype">double</span>     * dgridx;</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>     <span class="keywordtype">double</span>     * dgridy;</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>     <span class="keywordtype">double</span>     * dfitv;</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>     <span class="keywordtype">int</span>          ndone = 0;</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     <span class="keywordtype">int</span>          i, obj;</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     cpl_ensure_code(nfitvals > 0,      CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     cpl_ensure_code(narcs    > 0,      CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>     cpl_ensure_code(cpl_image_get_type(label_im) == CPL_TYPE_INT,</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>                     CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>     <span class="comment">/* Ensure space for output */</span></div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     <span class="keywordflow">if</span> (nfitvals < narcs * ny) {</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>         nfitvals = narcs * ny;</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>         cpl_vector_set_size(fitvalues, nfitvals);</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>     }</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     <span class="keywordflow">if</span> (cpl_vector_get_size(gridx) < nfitvals ||</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>         cpl_vector_get_size(gridy) < nfitvals) {</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>         cpl_vector_set_size(gridx, nfitvals);</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>         cpl_vector_set_size(gridy, nfitvals);</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>     }</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>     <span class="comment">/* Get data after resizing */</span></div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     dgridx = cpl_vector_get_data(gridx);</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     dgridy = cpl_vector_get_data(gridy);</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     dfitv  = cpl_vector_get_data(fitvalues);</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>     <span class="comment">/* Median filter on input image */</span></div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     kernel = cpl_mask_new(3, 3);</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>     cpl_mask_not(kernel);</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     filt_img = cpl_image_new(nx, ny, cpl_image_get_type(in));</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>     cpl_image_filter_mask(filt_img, in, kernel, CPL_FILTER_MEDIAN,</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>                                                 CPL_BORDER_FILTER);</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>     cpl_mask_delete(kernel);</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> </div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>     dist1d = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span> </div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     <span class="keywordflow">for</span> (obj = 0; obj < narcs; obj++) {</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>         <span class="comment">/* Find the reference X-coordinate for the arc */</span></div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>         <span class="keyword">const</span> <span class="keywordtype">int</span>  * plabel_im = cpl_image_get_data_int_const(label_im);</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>         <span class="keyword">const</span> <span class="keywordtype">int</span>    ndist1d = cpl_apertures_get_top(det, obj+1)</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>             - cpl_apertures_get_bottom(det, obj+1) + 1;</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>         cpl_boolean sampsym = CPL_TRUE;</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>         <span class="keywordtype">int</span>         j, prevj = 0;</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>         <span class="keywordtype">int</span>         k = 0;</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>         (void)cpl_matrix_unwrap(dist1dx);</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>         (void)cpl_vector_unwrap(dist1dy);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>         dist1dx = cpl_matrix_wrap(1, ndist1d, dgridy + ndone);</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>         dist1dy = cpl_vector_wrap(ndist1d, dfitv  + ndone);</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> </div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>         <span class="comment">/* Find out the X coord. at all Y positions on the arc */</span></div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>         <span class="keywordflow">for</span> (j = cpl_apertures_get_bottom(det, obj+1)-1;</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>              j < cpl_apertures_get_top(det, obj+1); j++) {</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span> </div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>             <span class="keywordflow">for</span> (i = 0; i < nx; i++) {</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>                 <span class="keywordflow">if</span> (plabel_im[i + j * nx] == obj + 1) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>             }</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>             <span class="keywordflow">if</span> (i < nx) {</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>                 <span class="comment">/* Found 1st pixel of aperture obj+1 in row j+1 */</span></div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>                 cpl_errorstate prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> </div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> x_finepos</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>                     = irplib_distortion_get_row_centroid(filt_img, label_im,</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>                                                          i, j);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>                 <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(prestate)) {</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>                     irplib_error_recover(prestate, <span class="stringliteral">"Could not find X-position "</span></div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>                                          <span class="stringliteral">"for line %d at y=%d (x=%d)"</span>,</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>                                          obj+1, j+1, i+1);</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>                 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (x_finepos >= 0.0) {</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>                     cpl_matrix_set(dist1dx, 0, k, 1.0 + j);</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>                     cpl_vector_set(dist1dy, k, 1.0 + x_finepos);</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>                     <span class="keywordflow">if</span> (k > 0 && j != 1 + prevj) sampsym = CPL_FALSE;</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>                     prevj = j;</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>                     k++;</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>                 }</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>             }</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>         }</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>         <span class="keywordflow">if</span> (k > 0) {</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>             <span class="keywordtype">double</span> ref_xpos, grad;</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>             cpl_error_code error;</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>             <span class="keyword">const</span> cpl_boolean did_drop = k != ndist1d;</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>             <span class="keyword">const</span> cpl_size mindeg = 0;</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>             <span class="keyword">const</span> cpl_size maxdeg = 2;</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span> </div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>             <span class="keywordflow">if</span> (did_drop) {</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>                 <span class="comment">/* Set correct size */</span></div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>                 dist1dx = cpl_matrix_wrap(1, k, cpl_matrix_unwrap(dist1dx));</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>                 dist1dy = cpl_vector_wrap(k, cpl_vector_unwrap(dist1dy));</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>             }</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span> </div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>             error = cpl_polynomial_fit(dist1d, dist1dx, &sampsym, dist1dy, NULL,</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>                              CPL_FALSE, &mindeg, &maxdeg);</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>             <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>                 cpl_msg_error(cpl_func, <span class="stringliteral">"1D-fit failed"</span>);</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>             }</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span> </div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>             ref_xpos = cpl_polynomial_eval_1d(dist1d, 0.5 * (ny + 1), &grad);</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> </div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>             <span class="keywordflow">for</span> (j = cpl_apertures_get_bottom(det, obj+1)-1;</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>                  j < cpl_apertures_get_top(det, obj+1); j++) {</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> xpos = cpl_polynomial_eval_1d(dist1d, j+1.0, NULL);</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span> </div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>                 dfitv [ndone] = xpos;</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>                 dgridx[ndone] = ref_xpos;</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>                 <span class="comment">/* Wrapping dist1dx does _not_ take care of dgridy,</span></div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> <span class="comment">                   in case of "Could not find X-position " */</span></div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>                 <span class="keywordflow">if</span> (did_drop)</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>                     dgridy[ndone] = 1.0 + j;</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>                 ndone++;</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>             }</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>             cpl_msg_info(cpl_func, <span class="stringliteral">"Line %d has center gradient %g"</span>, obj+1,</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>                          grad);</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>         }</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>     }</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> </div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>     cpl_image_delete(filt_img);</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>     cpl_polynomial_delete(dist1d);</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>     (void)cpl_matrix_unwrap(dist1dx);</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>     (void)cpl_vector_unwrap(dist1dy);</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> </div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Found %d fitting points ("</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>                  <span class="stringliteral">"expected up to %d points)"</span>, ndone, nfitvals);</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span> </div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>     cpl_ensure_code(obj == narcs, cpl_error_get_code());</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span> </div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>     cpl_ensure_code(ndone > 0, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span> </div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>     cpl_vector_set_size(fitvalues, ndone);</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>     cpl_vector_set_size(gridx, ndone);</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>     cpl_vector_set_size(gridy, ndone);</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span> </div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span> }</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span> </div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> <span class="keyword">static</span> <span class="keywordtype">double</span> irplib_distortion_get_row_centroid(<span class="keyword">const</span> cpl_image * im,</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>                                                  <span class="keyword">const</span> cpl_image * label_im,</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>                                                  <span class="keywordtype">int</span>               x,</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>                                                  <span class="keywordtype">int</span>               y)</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span> {</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>     nx        = cpl_image_get_size_x(im);</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>     ny        = cpl_image_get_size_y(im);</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>     ynx       = y * nx;</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>     <span class="keyword">const</span> <span class="keywordtype">float</span> * pim       = cpl_image_get_data_float_const(im);</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>   * plabel_im = cpl_image_get_data_int_const(label_im);</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>     <span class="keywordtype">int</span>           firstpos = -1;</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>     <span class="keywordtype">int</span>           lastpos  = -1;</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>     <span class="keywordtype">int</span>           maxpos   = x;</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>     <span class="keywordtype">int</span>           objnum;</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>     <span class="keywordtype">double</span>        wsum = 0.0;</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     <span class="keywordtype">double</span>        sum  = 0.0;</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>     <span class="keywordtype">double</span>        max  = 0.0;</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span> </div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>     cpl_ensure(pim       != NULL, cpl_error_get_code(),    -1.0);</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>     cpl_ensure(plabel_im != NULL, cpl_error_get_code(),    -2.0);</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>     cpl_ensure(x         >= 0,    CPL_ERROR_ILLEGAL_INPUT, -3.0);</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>     cpl_ensure(y         >= 0,    CPL_ERROR_ILLEGAL_INPUT, -4.0);</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>     cpl_ensure(x         <  nx,   CPL_ERROR_ILLEGAL_INPUT, -5.0);</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>     cpl_ensure(y         <  ny,   CPL_ERROR_ILLEGAL_INPUT, -6.0);</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> </div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>     max    = (double)pim[x + ynx];</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>     objnum = plabel_im[x + ynx];</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> </div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>     <span class="comment">/* While we stay in the same object... */</span></div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>     <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> val = (double)pim[x + ynx];</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span> </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>         <span class="keywordflow">if</span> (val > 0.0) { <span class="comment">/* FIXME: Handle this exception better */</span></div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>             wsum += x * val;</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>             sum += val;</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> </div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>             <span class="keywordflow">if</span> (firstpos < 0) firstpos = x;</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>             lastpos = x;</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span> </div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>             <span class="keywordflow">if</span> (val > max) {</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                 max = val;</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                 maxpos = x;</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>             }</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>         }</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span> </div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> </div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>         <span class="comment">/* Next point */</span></div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>         x++;</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> </div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>     } <span class="keywordflow">while</span> (x < nx && objnum == plabel_im[x + ynx]);</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> </div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>     cpl_ensure(sum > 0.0, CPL_ERROR_DATA_NOT_FOUND, -7.0);</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span> </div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span> <span class="comment">       assert( 0 <= maxpos && maxpos < nx );</span></div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> <span class="comment">       assert( objnum == plabel_im[maxpos + ynx] );</span></div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> <span class="comment">       assert( wsum >= 0.0 );</span></div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>     <span class="keywordflow">return</span> (wsum < sum * firstpos || wsum > sum * lastpos)</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>         ? maxpos : wsum / sum;</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> }</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span> </div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> <span class="preprocessor">#define IS_NB_TESTPOINTS    8</span></div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span> <span class="preprocessor"></span><span class="preprocessor">#define IS_MIN_SLOPE        0.01</span></div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span> <span class="preprocessor"></span><span class="preprocessor">#define IS_MAX_SLOPE_DIF    0.075</span></div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span> <span class="preprocessor"></span><span class="preprocessor">#define IS_MAX_FIT_EDGE_DIF 0.05</span></div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span> <span class="preprocessor"></span><span class="preprocessor">#define IS_MIN_RAMP         10.0</span></div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span> <span class="preprocessor"></span><span class="preprocessor">#define IS_MAX_MNERR        13.0</span></div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span> <span class="preprocessor"></span><span class="preprocessor">#define IS_MAX_MNERR_DIF    8.0</span></div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span> <span class="preprocessor"></span><span class="preprocessor">#define IS_MAX_INTER_DIF    20.0</span></div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span> <span class="preprocessor"></span><span class="preprocessor">#define IS_SKIPZONE         2.5</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span> <span class="preprocessor"></span><span class="preprocessor">#define SQR(x) ((x)*(x))</span></div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> <span class="preprocessor"></span><span class="keyword">static</span> cpl_image * irplib_distortion_remove_ramp(<span class="keyword">const</span> cpl_image * in) </div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span> {</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>     <span class="keywordtype">int</span>                 ramp_present;</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           nx = cpl_image_get_size_x(in);</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           ny = cpl_image_get_size_y(in);</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           yhi = (int)(ny/2);</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           ylo = yhi - 1;</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>     <span class="keywordtype">int</span>                 y;</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     cpl_vector      *   tmp_vector;</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>     cpl_bivector    *   testpointlo;</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>     <span class="keywordtype">double</span>          *   testpointlo_x;</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>     <span class="keywordtype">double</span>          *   testpointlo_y;</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>     cpl_bivector    *   testpointhi;</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>     <span class="keywordtype">double</span>          *   testpointhi_x;</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>     <span class="keywordtype">double</span>          *   testpointhi_y;</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           spacing = ny / (IS_SKIPZONE*IS_NB_TESTPOINTS);</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>     <span class="keywordtype">double</span>              rampdif, fitslope;</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>     <span class="keywordtype">double</span>          *   pol_coefhi,</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>                     *   pol_coeflo;</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>     cpl_vector      *   median;</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>     <span class="keywordtype">double</span>          *   median_data;</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>     <span class="keywordtype">double</span>              medianerrlo, medianerrhi;</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>     <span class="keywordtype">double</span>              slope;</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>     cpl_image       *   out;</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>     <span class="keywordtype">float</span>           *   pout;</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>     <span class="keywordtype">float</span>               val;</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>     <span class="keywordtype">int</span>                 i, j;</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>     cpl_ensure(cpl_image_get_type(in) == CPL_TYPE_FLOAT,</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>                CPL_ERROR_UNSUPPORTED_MODE, NULL);</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>                     </div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>     <span class="keywordflow">if</span> (ny < IS_SKIPZONE * IS_NB_TESTPOINTS){</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> <span class="preprocessor"></span>        cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>                               <span class="stringliteral">"image has %d lines, min="</span></div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>                               IRPLIB_STRINGIFY(IS_SKIPZONE) <span class="stringliteral">"*"</span></div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>                               IRPLIB_STRINGIFY(IS_NB_TESTPOINTS), ny);</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> <span class="preprocessor"></span>        cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>                               <span class="stringliteral">"image has too few lines, min="</span></div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>                               IRPLIB_STRINGIFY(IS_SKIPZONE) <span class="stringliteral">"*"</span></div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>                               IRPLIB_STRINGIFY(IS_NB_TESTPOINTS));</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> <span class="preprocessor"></span>        <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>     }</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>     </div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>     <span class="comment">/* Fill the vectors */</span></div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>     testpointhi = cpl_bivector_new(IS_NB_TESTPOINTS);</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>     testpointhi_x = cpl_bivector_get_x_data(testpointhi);</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>     testpointhi_y = cpl_bivector_get_y_data(testpointhi);</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>     testpointlo = cpl_bivector_new(IS_NB_TESTPOINTS);</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>     testpointlo_x = cpl_bivector_get_x_data(testpointlo);</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>     testpointlo_y = cpl_bivector_get_y_data(testpointlo);</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>     <span class="keywordflow">for</span> (i=0; i<IS_NB_TESTPOINTS; i++) {</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>         y = yhi + i * spacing;</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>         tmp_vector = cpl_vector_new_from_image_row(in, y+1);</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>         testpointhi_x[i] = y - ny / 2;</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>         testpointhi_y[i] = cpl_vector_get_median_const(tmp_vector);</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>         cpl_vector_delete(tmp_vector);</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>         y = ylo - i * spacing;</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>         tmp_vector = cpl_vector_new_from_image_row(in, y+1);</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>         testpointlo_x[IS_NB_TESTPOINTS-i-1] = y;</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>         testpointlo_y[IS_NB_TESTPOINTS-i-1]=cpl_vector_get_median_const(tmp_vector);</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>         cpl_vector_delete(tmp_vector);</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>     }</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> </div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>     <span class="comment">/* Apply the fit */</span></div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>     pol_coefhi = <a class="code" href="group__irplib__flat.html#ga3e3e3bd45aef34e38758e1f2528d7c91" title="Fit a slope to a list of points (robust fit).">irplib_flat_fit_slope_robust</a>(testpointhi_x,</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>             testpointhi_y, IS_NB_TESTPOINTS);</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>     pol_coeflo = <a class="code" href="group__irplib__flat.html#ga3e3e3bd45aef34e38758e1f2528d7c91" title="Fit a slope to a list of points (robust fit).">irplib_flat_fit_slope_robust</a>(testpointlo_x, </div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>             testpointlo_y, IS_NB_TESTPOINTS);</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> </div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>     <span class="comment">/* Compute the errors */</span></div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>     median = cpl_vector_new(IS_NB_TESTPOINTS);</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>     median_data = cpl_vector_get_data(median);</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>     <span class="keywordflow">for</span> (i=0; i<IS_NB_TESTPOINTS; i++) {</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>         median_data[i]=SQR(testpointhi_y[i]</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                 - pol_coefhi[0] - pol_coefhi[1] * testpointhi_x[i]);</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>     }</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>     medianerrhi = cpl_vector_get_median(median);</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>     <span class="keywordflow">for</span> (i=0; i<IS_NB_TESTPOINTS; i++) {</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>         median_data[i]=SQR(testpointlo_y[i]</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>                 - pol_coeflo[0] - pol_coeflo[1] * testpointlo_x[i]);</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>     }</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>     medianerrlo = cpl_vector_get_median(median);</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>     cpl_vector_delete(median);</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>     rampdif = testpointlo_y[IS_NB_TESTPOINTS-1] - testpointhi_y[0];</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>     slope = rampdif / (ny/2.0);</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>     fitslope = (pol_coefhi[1] + pol_coeflo[1]) / 2.0;</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> </div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>     cpl_bivector_delete(testpointlo);</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>     cpl_bivector_delete(testpointhi);</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> </div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>     <span class="comment">/* Decide if there is a ramp or not  */</span></div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>     <span class="keywordflow">if</span> (fabs(rampdif)<IS_MIN_RAMP ||</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>             fabs(pol_coefhi[1]) < IS_MIN_SLOPE ||</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>             fabs(pol_coeflo[1]) < IS_MIN_SLOPE ||</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>             pol_coefhi[1]/pol_coeflo[1]<0.5 ||</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>             pol_coefhi[1]/pol_coeflo[1]>2.0 ||</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>             fabs(pol_coefhi[1]-pol_coeflo[1])>IS_MAX_SLOPE_DIF ||</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>             fabs(pol_coefhi[0]-pol_coeflo[0]) > IS_MAX_INTER_DIF ||</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>             medianerrlo> IS_MAX_MNERR ||</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>             medianerrhi> IS_MAX_MNERR ||</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>             fabs(medianerrlo-medianerrhi) >IS_MAX_MNERR_DIF ||</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>             fabs(slope-fitslope) > IS_MAX_FIT_EDGE_DIF ||</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>             slope/fitslope<0.5 ||</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>             slope/fitslope>2.0) ramp_present = 0;</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>     <span class="keywordflow">else</span> ramp_present = 1;</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> </div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>     cpl_free(pol_coeflo);</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>     cpl_free(pol_coefhi);</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> </div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>     <span class="comment">/* Correct the ramp if it is there */</span></div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>     out = cpl_image_duplicate(in);</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>     pout = cpl_image_get_data_float(out);</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>     <span class="keywordflow">if</span> (ramp_present == 1) {</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>         <span class="keywordflow">for</span> (j=0; j<ny/2; j++) {</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>             val = slope * (j-ny/2);</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>             <span class="keywordflow">for</span> (i=0; i<nx; i++)</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>                 pout[i+j*nx] -= val;</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>         }</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>         <span class="keywordflow">for</span> (j=ny/2; j<ny; j++) {</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>             val = slope * (j-ny);</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>             <span class="keywordflow">for</span> (i=0; i<nx; i++)</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>                 pout[i+j*nx] -= val;</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>         }</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span> </div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>     }</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span> </div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>     <span class="keywordflow">return</span> out;</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> }</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> </div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span> <span class="keyword">static</span> cpl_error_code irplib_image_filter_background_line(cpl_image * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>                                                    <span class="keyword">const</span> cpl_image * other,</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>                                                    <span class="keywordtype">int</span> hsize,</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>                                                    cpl_boolean vertical)</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span> {</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>      nx = cpl_image_get_size_x(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>      ny = cpl_image_get_size_y(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>      msize = 1 + 2 * hsize;</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>     cpl_mask     * mask;</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>     cpl_image    * background;</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>     cpl_error_code error = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> </div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>     cpl_ensure_code(<span class="keyword">self</span>  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>     cpl_ensure_code(hsize >= 0,    CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span> </div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>     <span class="keywordflow">if</span> (other == NULL) other = <span class="keyword">self</span>;</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span> </div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>     mask = vertical ? cpl_mask_new(msize, 1) : cpl_mask_new(1, msize);</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> </div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>     error |= cpl_mask_not(mask);</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> </div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>     background = cpl_image_new(nx, ny, cpl_image_get_type(other));</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> </div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>     error |= cpl_image_filter_mask(background, other, mask, CPL_FILTER_MEDIAN,</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>                                    CPL_BORDER_FILTER);</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>     cpl_mask_delete(mask);</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span> </div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> != other) {</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>         error |= cpl_image_copy(<span class="keyword">self</span>, other, 1, 1);</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>     }</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span> </div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>     error |= cpl_image_subtract(<span class="keyword">self</span>, background);</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>     cpl_image_delete(background);</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> </div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>     <span class="keywordflow">return</span> error ? cpl_error_set_where(cpl_func) : CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span> }</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span> </div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span> </div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> </div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span> <span class="keyword">static</span> cpl_matrix * irplib_matrix_product_normal_create(<span class="keyword">const</span> cpl_matrix * <span class="keyword">self</span>)</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> {</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>     <span class="keywordtype">double</span>         sum;</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>     cpl_matrix   * product;</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> * ai = cpl_matrix_get_data_const(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> * aj;</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>     <span class="keywordtype">double</span>       * bwrite;</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>      m = cpl_matrix_get_nrow(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>      n = cpl_matrix_get_ncol(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>     <span class="keywordtype">int</span>            i, j, k;</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> </div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> </div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>     cpl_ensure(<span class="keyword">self</span> != NULL, CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> </div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> <span class="preprocessor"></span>    <span class="comment">/* Initialize all values to zero.</span></div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> <span class="comment">       This is done to avoid access of uninitilized memory,  in case</span></div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> <span class="comment">       someone passes the matrix to for example cpl_matrix_dump(). */</span></div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>     product = cpl_matrix_new(m, m);</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>     bwrite = cpl_matrix_get_data(product);</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> <span class="preprocessor"></span>    bwrite = (<span class="keywordtype">double</span> *) cpl_malloc(m * m * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>     product = cpl_matrix_wrap(m, m, bwrite);</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>     <span class="comment">/* The result at (i,j) is the dot-product of i'th and j'th row */</span></div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>     <span class="keywordflow">for</span> (i = 0; i < m; i++, bwrite += m, ai += n) {</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>         aj = ai; <span class="comment">/* aj points to first entry in j'th row */</span></div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>         <span class="keywordflow">for</span> (j = i; j < m; j++, aj += n) {</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>             sum = 0.0;</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>             <span class="keywordflow">for</span> (k = 0; k < n; k++) {</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>                 sum += ai[k] * aj[k];</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>             }</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>             bwrite[j] = sum;</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>         }</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>     }</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span> </div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>     <span class="keywordflow">return</span> product;</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span> </div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> }</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span> </div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span> <span class="keyword">static</span> cpl_error_code irplib_polynomial_fit_2d(cpl_polynomial * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>                                                <span class="keyword">const</span> cpl_bivector * xy_pos,</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>                                                <span class="keyword">const</span> cpl_vector * values,</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>                                                <span class="keywordtype">int</span> degree, <span class="keywordtype">double</span> fixy,</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>                                                <span class="keywordtype">double</span> * mse)</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> {</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span> </div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>        np = cpl_bivector_get_size(xy_pos);</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>     <span class="comment">/* Number of unknowns to determine in one dimension */</span></div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>        nc1 = 1+degree;</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>     <span class="comment">/* Number of unknowns to determine */</span></div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>     <span class="comment">/* P_{i,0} = 0, except P_{1,0} = 1 */</span></div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>        nc = nc1 * (1 + nc1) / 2 - nc1;</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>     cpl_matrix     * mv;   <span class="comment">/* The transpose of the Vandermonde matrix */</span></div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>     cpl_matrix     * mh;   <span class="comment">/* Block-Hankel matrix, V'*V */</span></div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>     cpl_matrix     * mb;</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>     cpl_matrix     * mx;</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span> <span class="preprocessor">#ifdef IRPLIB_DISTORTION_ASSERT</span></div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span> <span class="preprocessor"></span>    <span class="keyword">const</span> <span class="keywordtype">double</span>   * coeffs1d;</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> <span class="preprocessor"></span>    <span class="keywordtype">double</span>         * dmv;</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>     cpl_vector     * xhat;</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>     cpl_vector     * yhat;</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>     cpl_vector     * zhat;</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>     cpl_size         powers[2];</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>     <span class="keywordtype">int</span>              degx, degy;</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>     <span class="keywordtype">int</span>              i, j;</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>     cpl_error_code   error;</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>    </div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span> </div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>     cpl_ensure_code(<span class="keyword">self</span> != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) == 2,</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>                     CPL_ERROR_INVALID_TYPE);</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>     cpl_ensure_code(np > 0,         cpl_error_get_code());</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>     cpl_ensure_code(values != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span> </div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>     cpl_ensure_code(cpl_vector_get_size(values) == np,</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>                     CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span> </div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>     cpl_ensure_code(degree > 0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>     cpl_ensure_code(np >= nc,   CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span> </div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>     <span class="comment">/* transform zero-point to fixy */</span></div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>     yhat = cpl_vector_duplicate(cpl_bivector_get_y_const(xy_pos));</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>     cpl_vector_subtract_scalar(yhat, fixy);</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> </div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>     <span class="comment">/* - and ensure P(y) = y on center line */</span></div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>     xhat = cpl_vector_duplicate(cpl_bivector_get_x_const(xy_pos));</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>     zhat = cpl_vector_duplicate(values);</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>     cpl_vector_subtract(zhat, xhat);</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> </div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>     <span class="comment">/* Initialize matrices */</span></div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>     <span class="comment">/* mv contains the polynomial terms in the order described */</span></div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>     <span class="comment">/* above in each row, for each input point. */</span></div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>     dmv = (<span class="keywordtype">double</span>*)cpl_malloc(nc*np*<span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>     mv = cpl_matrix_wrap(nc, np, dmv);</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span> </div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>     <span class="comment">/* Has redundant FLOPs, appears to improve accuracy */</span></div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>     <span class="keywordflow">for</span> (i=0; i < np; i++) {</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> x = cpl_vector_get(xhat, i);</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> y = cpl_vector_get(yhat, i);</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>         <span class="keywordtype">double</span> xvalue;</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>         <span class="keywordtype">double</span> yvalue = y;</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>         j = 0;</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>         <span class="keywordflow">for</span> (degy = 1; degy <= degree; degy++) {</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>             xvalue = 1;</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>             <span class="keywordflow">for</span> (degx = 0; degx <= degree-degy; degx++, j++) {</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>                 dmv[np * j + i] = xvalue * yvalue;</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>                 xvalue *= x;</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>             }</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>             yvalue *= y;</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>         }</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>         <span class="comment">/* cx_assert( j == nc ); */</span></div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>     }</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>     cpl_vector_delete(xhat);</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>     cpl_vector_delete(yhat);</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span> </div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>     <span class="comment">/* mb contains the values, it is not modified */</span></div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>     mb = cpl_matrix_wrap(np, 1, cpl_vector_get_data(zhat));</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span> </div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>     <span class="comment">/* Form the right hand side of the normal equations */</span></div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>     mx = cpl_matrix_product_create(mv, mb);</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span> </div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>     cpl_matrix_unwrap(mb);</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>     cpl_vector_delete(zhat);</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span> </div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>     <span class="comment">/* Form the matrix of the normal equations */</span></div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>     mh = irplib_matrix_product_normal_create(mv);</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>     cpl_matrix_delete(mv);</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span> </div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>     <span class="comment">/* Solve XA=B by a least-square solution (aka pseudo-inverse). */</span></div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>     error = cpl_matrix_decomp_chol(mh) || cpl_matrix_solve_chol(mh, mx);</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span> </div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>     cpl_matrix_delete(mh);</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span> </div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>     <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>         cpl_matrix_delete(mx);</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>         cpl_ensure_code(0, error);</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>     }</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> </div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>     <span class="comment">/* Store coefficients for output */</span></div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> </div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span> <span class="preprocessor">#ifdef IRPLIB_DISTORTION_ASSERT</span></div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span> <span class="preprocessor"></span>    coeffs1d = cpl_matrix_get_data(mx);</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>     j = 0;</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>     <span class="keywordflow">for</span> (degy = 1; degy <= degree; degy++) {</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>         powers[1] = degy;</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>         <span class="keywordflow">for</span> (degx = 0; degx <= degree-degy; degx++, j++) {</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>             powers[0] = degx;</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>             <span class="comment">/* cx_assert( coeffs1d[j] == cpl_matrix_get(mx, j, 0) ); */</span></div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>             cpl_polynomial_set_coeff(<span class="keyword">self</span>, powers, cpl_matrix_get(mx, j, 0));</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>         }</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>     }</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>     <span class="comment">/* cx_assert( j == nc ); */</span></div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span> </div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>     cpl_matrix_delete(mx);</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span> </div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>     <span class="comment">/* P_{1,0} = 1 */</span></div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>     powers[0] = 1;</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>     powers[1] = 0;</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>     cpl_polynomial_set_coeff(<span class="keyword">self</span>, powers, 1.0);</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span> </div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>     <span class="comment">/* Transform the polynomial back in Y */</span></div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>     cpl_polynomial_shift_1d(<span class="keyword">self</span>, 1, -fixy);</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> </div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>     <span class="comment">/* If requested, compute mean squared error */</span></div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>     <span class="keywordflow">if</span> (mse != NULL) {</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>         <span class="keyword">const</span> cpl_vector * x_pos = cpl_bivector_get_x_const(xy_pos);</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>         <span class="keyword">const</span> cpl_vector * y_pos = cpl_bivector_get_y_const(xy_pos);</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>         cpl_vector * x_val = cpl_vector_new(2);</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>         <span class="keywordtype">double</span> residue;</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span> </div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>         *mse = 0;</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>         <span class="keywordflow">for</span> (i=0; i<np; i++) {</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>             cpl_vector_set(x_val, 0, cpl_vector_get(x_pos, i));</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>             cpl_vector_set(x_val, 1, cpl_vector_get(y_pos, i));</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>             <span class="comment">/* Subtract from the true value, square, accumulate */</span></div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>             residue = cpl_vector_get(values, i)</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>                 - cpl_polynomial_eval(<span class="keyword">self</span>, x_val);</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>             *mse += residue * residue;</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>         }</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>         cpl_vector_delete(x_val);</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>         <span class="comment">/* Average the error term */</span></div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>         *mse /= np;</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>     }</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span> </div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span> }</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__distortion_8h_source.html b/html/irplib__distortion_8h_source.html
deleted file mode 100644
index f22af70..0000000
--- a/html/irplib__distortion_8h_source.html
+++ /dev/null
@@ -1,104 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_distortion.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_distortion.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_distortion.h,v 1.6 2013-01-29 08:43:33 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-01-29 08:43:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.6 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_DISTORTION_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_DISTORTION_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                                    Prototypes</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> cpl_polynomial * irplib_distortion_estimate(<span class="keyword">const</span> cpl_image *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>         <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">double</span>, <span class="keywordtype">int</span>, cpl_apertures **) ;</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__flat_8c_source.html b/html/irplib__flat_8c_source.html
deleted file mode 100644
index 3dde618..0000000
--- a/html/irplib__flat_8c_source.html
+++ /dev/null
@@ -1,386 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_flat.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_flat.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_flat.c,v 1.15 2007-08-07 12:15:41 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2007-08-07 12:15:41 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.15 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include "irplib_flat.h"</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="keyword">static</span> <span class="keywordtype">double</span> * irplib_flat_fit_proportional(<span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno"><a class="code" href="group__irplib__flat.html#gaf9bd48348cc91bb66304697b4c7aa58e">   87</a></span> cpl_imagelist * <a class="code" href="group__irplib__flat.html#gaf9bd48348cc91bb66304697b4c7aa58e" title="Compute a flat-field out of a set of exposures.">irplib_flat_fit_set</a>(</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>         cpl_imagelist   *   raw,</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>         <span class="keywordtype">int</span>                 mode)</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> {</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     <span class="keywordtype">double</span>          *   plane_med    = NULL ;</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     <span class="keywordtype">double</span>          *   slope        = NULL ;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     cpl_image       *   gain         = NULL ;</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>     <span class="keywordtype">double</span>          *   pgain        = NULL ;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     cpl_image       *   intercept    = NULL ;</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     <span class="keywordtype">double</span>          *   pintercept   = NULL ;</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     cpl_image       *   sq_err       = NULL ;</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     <span class="keywordtype">double</span>          *   psq_err      = NULL ;</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>     <span class="keywordtype">double</span>          *   timeline     = NULL ;</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     <span class="keywordtype">float</span>           *   raw_im_data  = NULL ;</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     cpl_imagelist   *   result       = NULL ;</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           nx = cpl_image_get_size_x(cpl_imagelist_get(raw, 0));</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           ny = cpl_image_get_size_y(cpl_imagelist_get(raw, 0));</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           ni = cpl_imagelist_get_size(raw);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     <span class="keywordtype">int</span>                 i, j ;</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     <span class="keywordflow">if</span> (raw==NULL) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     <span class="keywordflow">if</span> ((mode != 0) && (mode != 1)) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     <span class="keywordflow">if</span> (cpl_image_get_type(cpl_imagelist_get(raw, 0)) != CPL_TYPE_FLOAT)</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>     <span class="keywordflow">if</span> (cpl_imagelist_get_size(raw) <= 1) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     <span class="comment">/* Compute median for all planes */</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     plane_med = cpl_malloc(ni * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)) ;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     <span class="keywordflow">for</span> (i=0 ; i<ni ; i++)</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>         plane_med[i] = cpl_image_get_median(cpl_imagelist_get(raw, i));</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     <span class="comment">/* Create result images */</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     gain = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE) ;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     pgain = cpl_image_get_data_double(gain) ;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     <span class="keywordflow">if</span> (mode == 1) {</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>         intercept = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE) ;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>         pintercept = cpl_image_get_data_double(intercept) ;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     }</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     sq_err = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE) ;</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     psq_err = cpl_image_get_data_double(sq_err) ;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     timeline = cpl_malloc(ni * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)) ;</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     <span class="comment">/* Loop on all pixel positions */</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Computing gains for all positions (long)..."</span>) ;</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     <span class="keywordflow">for</span> (i=0 ; i<nx * ny ; i++) {</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>         <span class="comment">/* extract time line */</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>         <span class="keywordflow">for</span> (j=0 ; j<ni ; j++) {</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>             raw_im_data = cpl_image_get_data_float(cpl_imagelist_get(raw, j)) ;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>             timeline[j] = (double)raw_im_data[i] ;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>         }</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>         <span class="comment">/* Fit slope to this time line */</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>         <span class="keywordflow">if</span> (mode == 1) {</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>             slope = <a class="code" href="group__irplib__flat.html#ga3e3e3bd45aef34e38758e1f2528d7c91" title="Fit a slope to a list of points (robust fit).">irplib_flat_fit_slope_robust</a>(plane_med, timeline, ni) ;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>             pintercept[i] = slope[0] ;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>             pgain[i]      = slope[1] ;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>             psq_err[i]    = slope[2] ;</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>             <span class="comment">/* Set results in output images */</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>             slope = irplib_flat_fit_proportional(plane_med, timeline, ni) ;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>             <span class="comment">/* Set results in output images */</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>             pgain[i]      = slope[0] ;</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>             psq_err[i]    = slope[1] ;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>         }</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>         cpl_free(slope);</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     }</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>     cpl_free(plane_med) ;</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     cpl_free(timeline) ;</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     <span class="comment">/* Return */</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     result = cpl_imagelist_new() ;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     <span class="keywordflow">if</span> (mode == 1) {</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>         cpl_imagelist_set(result, gain, 0) ;</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>         cpl_imagelist_set(result, intercept, 1) ;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>         cpl_imagelist_set(result, sq_err, 2) ;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>         cpl_imagelist_set(result, gain, 0) ;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>         cpl_imagelist_set(result, sq_err, 1) ;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     }</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     <span class="keywordflow">return</span> result ;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> }</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment">/* @cond */</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="preprocessor">#define SIGN(a,b) ((b) >= 0.0 ? fabs(a) : -fabs(a))</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="preprocessor"></span><span class="preprocessor">#define MAX_ITERATE     30</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="preprocessor"></span><span class="comment">/* @endcond */</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno"><a class="code" href="group__irplib__flat.html#ga3e3e3bd45aef34e38758e1f2528d7c91">  191</a></span> <span class="keywordtype">double</span> * <a class="code" href="group__irplib__flat.html#ga3e3e3bd45aef34e38758e1f2528d7c91" title="Fit a slope to a list of points (robust fit).">irplib_flat_fit_slope_robust</a>(</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>         <span class="keywordtype">double</span>  *   x,</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>         <span class="keywordtype">double</span>  *   y,</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>         <span class="keywordtype">int</span>         np)</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> {</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     <span class="keywordtype">double</span>      *   c ;</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     <span class="keywordtype">double</span>          aa, bb, bcomp, b1, b2, del, abdevt, f, f1, f2, sigb, temp,</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>                     d, sum ;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     <span class="keywordtype">double</span>          sx, sy, sxy, sxx, chisq ;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     cpl_vector  *   arr ;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     <span class="keywordtype">double</span>      *   parr ;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     <span class="keywordtype">double</span>          aa_ls, bb_ls ;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     <span class="keywordtype">int</span>             iter ;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     <span class="keywordtype">int</span>             i ;</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <span class="keywordflow">if</span> (x==NULL || y==NULL) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     c = cpl_malloc(3 * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)) ;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     sx = sy = sxx = sxy = 0.00 ;</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     <span class="keywordflow">for</span> (i=0 ; i<np ; i++) {</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>         sx  += x[i];</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>         sy  += y[i];</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>         sxy += x[i] * y[i];</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>         sxx += x[i] * x[i];</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     }</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     del = np * sxx - sx * sx;</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     aa_ls = aa  = (sxx * sy - sx * sxy) / del;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     bb_ls = bb  = (np * sxy - sx * sy) / del;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     chisq = 0.00 ;</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     <span class="keywordflow">for</span> (i=0;i<np;i++) {</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>         temp = y[i] - (aa+bb*x[i]) ;</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>         temp *= temp ;</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>         chisq += temp ;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     }</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     arr = cpl_vector_new(np) ;</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     parr = cpl_vector_get_data(arr) ;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     sigb = sqrt(chisq/del);</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     b1   = bb ;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     bcomp = b1 ;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     sum = 0.00 ;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="keywordflow">for</span> (i=0 ; i<np ; i++) {</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>             parr[i] = y[i] - bcomp * x[i];</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>         }</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     aa = cpl_vector_get_median(arr); <span class="comment">/* arr permuted */</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     abdevt = 0.0;</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <span class="keywordflow">for</span> (i=0 ; i<np ; i++) {</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         d = y[i] - (bcomp * x[i] + aa);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         abdevt += fabs(d);</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         <span class="keywordflow">if</span> (fabs(y[i]) > 1e-7) d /= fabs(y[i]);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>         <span class="keywordflow">if</span> (fabs(d) > 1e-7) sum += (d >= 0.0 ? x[i] : -x[i]);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     }</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     f1 = sum ;</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     b2   = bb + SIGN(3.0 * sigb, f1);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     bcomp = b2 ;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     sum = 0.00 ;</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     <span class="keywordflow">for</span> (i=0 ; i<np ; i++) parr[i] = y[i] - bcomp * x[i];</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     aa = cpl_vector_get_median(arr);  <span class="comment">/* arr permuted */</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     abdevt = 0.0;</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     <span class="keywordflow">for</span> (i=0 ; i<np ; i++) {</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>         d = y[i] - (bcomp * x[i] + aa);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>         abdevt += fabs(d);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>         <span class="keywordflow">if</span> (fabs(y[i]) > 1e-7) d /= fabs(y[i]);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>         <span class="keywordflow">if</span> (fabs(d) > 1e-7) sum += (d >= 0.0 ? x[i] : -x[i]);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     }</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     f2 = sum ;</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     <span class="keywordflow">if</span> (fabs(b2-b1)<1e-7) {</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         c[0] = aa ;</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>         c[1] = bb ;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>         c[2] = abdevt / (double)np;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>         cpl_vector_delete(arr);</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>         <span class="keywordflow">return</span> c ;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     }</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> </div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     iter = 0 ;</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     <span class="keywordflow">while</span> (f1*f2 > 0.0) {</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>         bb = 2.0*b2-b1;</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>         b1 = b2;</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>         f1 = f2;</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>         b2 = bb;</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         bcomp = b2 ;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>         sum = 0.00 ;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>         <span class="keywordflow">for</span> (i=0 ; i<np ; i++) parr[i] = y[i] - bcomp * x[i];</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>         aa = cpl_vector_get_median(arr); <span class="comment">/* arr permuted */</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>         abdevt = 0.0;</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>         <span class="keywordflow">for</span> (i=0 ; i<np ; i++) {</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>             d = y[i] - (bcomp * x[i] + aa);</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>             abdevt += fabs(d);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>             <span class="keywordflow">if</span> (fabs(y[i]) > 1e-7) d /= fabs(y[i]);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>             <span class="keywordflow">if</span> (fabs(d) > 1e-7) sum += (d >= 0.0 ? x[i] : -x[i]);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>         }</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>         f2 = sum ;</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>         iter++;</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>         <span class="keywordflow">if</span> (iter>=MAX_ITERATE) break ;</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     }</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     <span class="keywordflow">if</span> (iter>=MAX_ITERATE) {</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>         c[0] = aa_ls ;</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>         c[1] = bb_ls ;</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>         c[2] = -1.0 ;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>         cpl_vector_delete(arr);</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>         <span class="keywordflow">return</span> c ;</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     }</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     sigb = 0.01 * sigb;</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <span class="keywordflow">while</span> (fabs(b2-b1) > sigb) {</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>         bb = 0.5 * (b1 + b2) ;</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>         <span class="keywordflow">if</span> ((fabs(bb-b1)<1e-7) || (fabs(bb-b2)<1e-7)) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>         bcomp = bb ;</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>         sum = 0.00 ;</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>         <span class="keywordflow">for</span> (i=0 ; i<np ; i++) parr[i] = y[i] - bcomp * x[i];</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>         aa = cpl_vector_get_median(arr); <span class="comment">/* arr permuted */</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>         abdevt = 0.0;</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>         <span class="keywordflow">for</span> (i=0 ; i<np ; i++) {</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>             d = y[i] - (bcomp * x[i] + aa);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>             abdevt += fabs(d);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>             <span class="keywordflow">if</span> (fabs(y[i]) > 1e-7) d /= fabs(y[i]);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>             <span class="keywordflow">if</span> (fabs(d) > 1e-7) sum += (d >= 0.0 ? x[i] : -x[i]);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>         }</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>         f = sum ;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>         <span class="keywordflow">if</span> (f*f1 >= 0.0) {</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>             f1=f;</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>             b1=bb;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>             f2=f;</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>             b2=bb;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>         }</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     }</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     cpl_vector_delete(arr) ;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     c[0]=aa;</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     c[1]=bb;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     c[2]=abdevt/np;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     <span class="keywordflow">return</span> c ;</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> }</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="preprocessor">#undef MAX_ITERATE</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="preprocessor"></span><span class="preprocessor">#undef SIGN</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> <span class="preprocessor">#define FITPROP_BIG_SLOPE   1e30</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="preprocessor"></span><span class="keyword">static</span> <span class="keywordtype">double</span> * irplib_flat_fit_proportional(</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>         <span class="keywordtype">double</span>  *   x,</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>         <span class="keywordtype">double</span>  *   y,</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>         <span class="keywordtype">int</span>         np)</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> {</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     cpl_vector  *   slopes ;</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     <span class="keywordtype">double</span>      *   pslopes ;</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     <span class="keywordtype">double</span>      *   med_slope ;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     <span class="keywordtype">double</span>          val ;</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     <span class="keywordtype">double</span>          sq_err ;</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     <span class="keywordtype">int</span>             i ;</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     <span class="keywordflow">if</span> (x==NULL || y==NULL) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     slopes = cpl_vector_new(np) ;</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     pslopes = cpl_vector_get_data(slopes) ;</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     <span class="keywordflow">for</span> (i=0 ; i<np ; i++) {</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>         <span class="keywordflow">if</span> (fabs(x[i])>1e-30)  pslopes[i] = y[i] / x[i] ;</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>         <span class="keywordflow">else</span>                   pslopes[i] = FITPROP_BIG_SLOPE ;</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     }</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     med_slope = cpl_malloc(2 * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     med_slope[0] = cpl_vector_get_median(slopes); <span class="comment">/* slopes permuted */</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     cpl_vector_delete(slopes);</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     sq_err = 0.00 ;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     <span class="keywordflow">for</span> (i=0 ; i<np ; i++) {</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>         val = med_slope[0] * x[i] ;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         sq_err += (val-y[i])*(val-y[i]) ;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     }</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>     sq_err /= (double)np ;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     med_slope[1] = sq_err ;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     <span class="keywordflow">return</span> med_slope ;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> <span class="preprocessor">#undef FITPROP_BIG_SLOPE</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> <span class="preprocessor"></span>}</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__flat_8h_source.html b/html/irplib__flat_8h_source.html
deleted file mode 100644
index 3a73ed2..0000000
--- a/html/irplib__flat_8h_source.html
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_flat.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_flat.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_flat.h,v 1.4 2005-09-15 11:47:16 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2005-09-15 11:47:16 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.4 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_FLAT_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_FLAT_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> cpl_imagelist * <a class="code" href="group__irplib__flat.html#gaf9bd48348cc91bb66304697b4c7aa58e" title="Compute a flat-field out of a set of exposures.">irplib_flat_fit_set</a>(cpl_imagelist *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="keywordtype">double</span> * <a class="code" href="group__irplib__flat.html#ga3e3e3bd45aef34e38758e1f2528d7c91" title="Fit a slope to a list of points (robust fit).">irplib_flat_fit_slope_robust</a>(<span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__framelist-test_8c_source.html b/html/irplib__framelist-test_8c_source.html
deleted file mode 100644
index 0d2a884..0000000
--- a/html/irplib__framelist-test_8c_source.html
+++ /dev/null
@@ -1,152 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_framelist-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li><li class="navelem"><a class="el" href="dir_40a404867a1885f5fad756cff9cd9f5a.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_framelist-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                            *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO IRPLIB package                              *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                    *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify     *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by     *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or        *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                      *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,          *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of           *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                             *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License        *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software              *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA     *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                            */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#include <irplib_framelist.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> </div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> </div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> {</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>     irplib_framelist * flist;</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>     irplib_framelist * nulllist;</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span>     cpl_frameset     * fset;</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>     cpl_frameset     * nullset;</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>     <span class="comment">/* Initialize CPL for unit testing */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>     <span class="comment">/* Some NULL tests */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>     <a class="code" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete</a>(NULL);</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>     cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>     nulllist = <a class="code" href="group__irplib__framelist.html#ga30cbfd003c6e6a6a42e610442f0b1bd1" title="Create an irplib_framelist from a cpl_framelist.">irplib_framelist_cast</a>(NULL);</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>     cpl_test_null(nulllist);</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     nullset = <a class="code" href="group__irplib__framelist.html#gabeedce2770a1bc06c26c0891a41aa174" title="Create a CPL frameset from an irplib_framelist.">irplib_frameset_cast</a>(NULL);</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     cpl_test_null(nullset);</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     <a class="code" href="group__irplib__framelist.html#ga900ea254d9b2a2e4e3957360bbae4deb" title="Erase all frames from a framelist.">irplib_framelist_empty</a>(NULL);</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     i = <a class="code" href="group__irplib__framelist.html#ga2518fce55112b5008cb119a126e593d7" title="Get the size of a framelist.">irplib_framelist_get_size</a>(NULL);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     cpl_test_leq(i, -1);</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     <span class="comment">/* Some tests on an empty list */</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     flist = <a class="code" href="group__irplib__framelist.html#ga5b86add048651f73424d2542a04946a0" title="Create an empty framelist.">irplib_framelist_new</a>();</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     cpl_test_zero(<a class="code" href="group__irplib__framelist.html#ga2518fce55112b5008cb119a126e593d7" title="Get the size of a framelist.">irplib_framelist_get_size</a>(flist));</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>     <a class="code" href="group__irplib__framelist.html#ga900ea254d9b2a2e4e3957360bbae4deb" title="Erase all frames from a framelist.">irplib_framelist_empty</a>(flist);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     cpl_test_zero(<a class="code" href="group__irplib__framelist.html#ga2518fce55112b5008cb119a126e593d7" title="Get the size of a framelist.">irplib_framelist_get_size</a>(flist));</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>     fset = <a class="code" href="group__irplib__framelist.html#gabeedce2770a1bc06c26c0891a41aa174" title="Create a CPL frameset from an irplib_framelist.">irplib_frameset_cast</a>(flist);</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     <a class="code" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete</a>(flist);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     flist = <a class="code" href="group__irplib__framelist.html#ga30cbfd003c6e6a6a42e610442f0b1bd1" title="Create an irplib_framelist from a cpl_framelist.">irplib_framelist_cast</a>(fset);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     cpl_test_zero(<a class="code" href="group__irplib__framelist.html#ga2518fce55112b5008cb119a126e593d7" title="Get the size of a framelist.">irplib_framelist_get_size</a>(flist));</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>     cpl_frameset_delete(fset);</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <a class="code" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete</a>(flist);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__framelist_8c_source.html b/html/irplib__framelist_8c_source.html
deleted file mode 100644
index 6b611b1..0000000
--- a/html/irplib__framelist_8c_source.html
+++ /dev/null
@@ -1,1015 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_framelist.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_framelist.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_framelist.c,v 1.30 2013-02-27 16:05:13 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package </span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-02-27 16:05:13 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.30 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> </div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> </div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment">                                 Includes</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include "irplib_framelist.h"</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include "irplib_utils.h"</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <sys/types.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <regex.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <assert.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">                                 New types</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">/* @cond */</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="keyword">struct </span>_irplib_framelist_ {</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>     <span class="keywordtype">int</span> size;</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>     cpl_frame        ** <a class="code" href="structframe.html">frame</a>;</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>     cpl_propertylist ** propertylist;</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> };</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">/* @endcond */</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">                                 Private funcions</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_framelist_set_size(irplib_framelist *)</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#if defined __GNUC__ &&  __GNUC__ >= 4</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor"></span>    __attribute__((nonnull))</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor"></span>;</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="keyword">static</span> cpl_boolean irplib_property_equal(<span class="keyword">const</span> cpl_propertylist *,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>                                          <span class="keyword">const</span> cpl_propertylist *,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span> *, cpl_type, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>                                          <span class="keywordtype">char</span> **, <span class="keywordtype">char</span> **)</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor">#if defined __GNUC__ &&  __GNUC__ >= 4</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor"></span>    __attribute__((nonnull))</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor"></span>;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment">                            Function codes</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#ga5b86add048651f73424d2542a04946a0">  178</a></span> irplib_framelist * <a class="code" href="group__irplib__framelist.html#ga5b86add048651f73424d2542a04946a0" title="Create an empty framelist.">irplib_framelist_new</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> {</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     <span class="keywordflow">return</span> (irplib_framelist *) cpl_calloc(1, <span class="keyword">sizeof</span>(irplib_framelist));</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> }</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26">  191</a></span> <span class="keywordtype">void</span> <a class="code" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete</a>(irplib_framelist * <span class="keyword">self</span>)</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> {</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     <a class="code" href="group__irplib__framelist.html#ga900ea254d9b2a2e4e3957360bbae4deb" title="Erase all frames from a framelist.">irplib_framelist_empty</a>(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     cpl_free(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> }</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#ga30cbfd003c6e6a6a42e610442f0b1bd1">  209</a></span> irplib_framelist * <a class="code" href="group__irplib__framelist.html#ga30cbfd003c6e6a6a42e610442f0b1bd1" title="Create an irplib_framelist from a cpl_framelist.">irplib_framelist_cast</a>(<span class="keyword">const</span> cpl_frameset * frameset)</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> {</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     irplib_framelist * <span class="keyword">self</span>;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     <span class="keyword">const</span> cpl_frame * <a class="code" href="structframe.html">frame</a>;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> </div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     cpl_ensure(frameset != NULL, CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     <span class="comment">/* The function cannot fail now */</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     <span class="keyword">self</span> = <a class="code" href="group__irplib__framelist.html#ga5b86add048651f73424d2542a04946a0" title="Create an empty framelist.">irplib_framelist_new</a>();</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     <span class="keywordflow">for</span> (i = 0, frame = cpl_frameset_get_first_const(frameset);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>          frame != NULL;</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>          i++, frame = cpl_frameset_get_next_const(frameset)) {</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>         cpl_frame * copy = cpl_frame_duplicate(frame);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>         <span class="keyword">const</span> cpl_error_code error = <a class="code" href="group__irplib__framelist.html#ga37e730f5627b4a0c7a81014f62421879" title="Add a frame to a framelist.">irplib_framelist_set</a>(<span class="keyword">self</span>, copy, i);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>         assert(error == CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     }</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     assert(self->size == cpl_frameset_get_size(frameset));</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <span class="keywordflow">return</span> <span class="keyword">self</span>;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> }</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#gabeedce2770a1bc06c26c0891a41aa174">  251</a></span> cpl_frameset * <a class="code" href="group__irplib__framelist.html#gabeedce2770a1bc06c26c0891a41aa174" title="Create a CPL frameset from an irplib_framelist.">irplib_frameset_cast</a>(<span class="keyword">const</span> irplib_framelist * <span class="keyword">self</span>)</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> {</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     cpl_frameset * <span class="keyword">new</span>;</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     cpl_ensure(<span class="keyword">self</span> != NULL, CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <span class="comment">/* The function cannot fail now */</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     <span class="keyword">new</span> = cpl_frameset_new();</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     <span class="keywordflow">for</span> (i = 0; i < <span class="keyword">self</span>->size; i++) {</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>         cpl_frame * <a class="code" href="structframe.html">frame</a> = cpl_frame_duplicate(self->frame[i]);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         <span class="keyword">const</span> cpl_error_code error = cpl_frameset_insert(<span class="keyword">new</span>, frame);</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>         assert(error == CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     }</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     assert(self->size == cpl_frameset_get_size(<span class="keyword">new</span>));</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     <span class="keywordflow">return</span> <span class="keyword">new</span>;</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> }</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#ga86d6746d1c19356417815f7df04c3396">  290</a></span> irplib_framelist * <a class="code" href="group__irplib__framelist.html#ga86d6746d1c19356417815f7df04c3396" title="Extract the frames with the given tag from a framelist.">irplib_framelist_extract</a>(<span class="keyword">const</span> irplib_framelist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> * tag)</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> {</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     irplib_framelist * <span class="keyword">new</span>;</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     <span class="keywordtype">int</span> i, newsize;</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     cpl_ensure(<span class="keyword">self</span> != NULL, CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     cpl_ensure(tag  != NULL, CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <span class="keyword">new</span> = <a class="code" href="group__irplib__framelist.html#ga5b86add048651f73424d2542a04946a0" title="Create an empty framelist.">irplib_framelist_new</a>();</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     newsize = 0;</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> </div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <span class="keywordflow">for</span> (i = 0; i < <span class="keyword">self</span>->size; i++) {</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>         <span class="keyword">const</span> cpl_frame * <a class="code" href="structframe.html">frame</a> = <span class="keyword">self</span>->frame[i];</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> * ftag = cpl_frame_get_tag(frame);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>         cpl_frame * copy;</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>         cpl_error_code error;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>         <span class="keywordflow">if</span> (ftag == NULL) {</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>             <span class="comment">/* The frame is ill-formed */</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>             <a class="code" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete</a>(<span class="keyword">new</span>);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>             cpl_ensure(0, CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>         }</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>         <span class="keywordflow">if</span> (strcmp(tag, ftag)) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>         copy = cpl_frame_duplicate(frame);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>         error = <a class="code" href="group__irplib__framelist.html#ga37e730f5627b4a0c7a81014f62421879" title="Add a frame to a framelist.">irplib_framelist_set</a>(<span class="keyword">new</span>, copy, newsize);</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>         assert(error == CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>         <span class="keywordflow">if</span> (self->propertylist[i] != NULL) <span class="keyword">new</span>->propertylist[newsize]</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>             = cpl_propertylist_duplicate(self->propertylist[i]);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>         newsize++;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     }</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     assert( newsize == new->size );</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <span class="keywordflow">if</span> (newsize == 0) {</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="preprocessor"></span>        cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>                               <span class="stringliteral">"The list of %d frame(s) has no frames "</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>                               <span class="stringliteral">"with tag: %s"</span>, self->size, tag);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="preprocessor"></span>        cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>                               <span class="stringliteral">"The list of frame(s) has no frames "</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>                               <span class="stringliteral">"with the given tag"</span>);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="preprocessor"></span>        <a class="code" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete</a>(<span class="keyword">new</span>);</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>         <span class="keyword">new</span> = NULL;</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     }</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     <span class="keywordflow">return</span> <span class="keyword">new</span>;</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> }</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> </div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#gace77e5ae75183a22a0e5af9dd9018b01">  360</a></span> irplib_framelist * <a class="code" href="group__irplib__framelist.html#gace77e5ae75183a22a0e5af9dd9018b01" title="Extract the frames with the given tag from a framelist.">irplib_framelist_extract_regexp</a>(<span class="keyword">const</span> irplib_framelist* <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>                                                    <span class="keyword">const</span> <span class="keywordtype">char</span> * regexp,</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>                                                    cpl_boolean invert)</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> {</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     irplib_framelist * <span class="keyword">new</span>;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     <span class="keywordtype">int</span> error;</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     <span class="keywordtype">int</span> i, newsize;</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> xor = invert == CPL_FALSE ? 0 : 1;</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     regex_t re;</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     cpl_ensure(<span class="keyword">self</span>   != NULL, CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     cpl_ensure(regexp != NULL, CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     error = regcomp(&re, regexp, REG_EXTENDED | REG_NOSUB);</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     cpl_ensure(!error, CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     <span class="keyword">new</span> = <a class="code" href="group__irplib__framelist.html#ga5b86add048651f73424d2542a04946a0" title="Create an empty framelist.">irplib_framelist_new</a>();</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     newsize = 0;</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     <span class="keywordflow">for</span> (i = 0; i < <span class="keyword">self</span>->size; i++) {</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>         <span class="keyword">const</span> cpl_frame * <a class="code" href="structframe.html">frame</a> = <span class="keyword">self</span>->frame[i];</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> * tag = cpl_frame_get_tag(frame);</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>         cpl_frame * copy;</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>         <span class="keywordflow">if</span> (tag == NULL) {</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>             <span class="comment">/* The frame is ill-formed */</span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>             <a class="code" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete</a>(<span class="keyword">new</span>);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>             regfree(&re);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>             cpl_ensure(0, CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>         }</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>         <span class="keywordflow">if</span> ((regexec(&re, tag, (<span class="keywordtype">size_t</span>)0, NULL, 0) == REG_NOMATCH ? 1 : 0)</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>             ^ xor) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>         copy = cpl_frame_duplicate(frame);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         error = (int)<a class="code" href="group__irplib__framelist.html#ga37e730f5627b4a0c7a81014f62421879" title="Add a frame to a framelist.">irplib_framelist_set</a>(<span class="keyword">new</span>, copy, newsize);</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>         assert(error == CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>         <span class="keywordflow">if</span> (self->propertylist[i] != NULL) <span class="keyword">new</span>->propertylist[newsize]</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>             = cpl_propertylist_duplicate(self->propertylist[i]);</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>         newsize++;</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     }</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     regfree(&re);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     assert( newsize == new->size );</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     <span class="keywordflow">if</span> (newsize == 0) {</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> <span class="preprocessor"></span>        cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                               <span class="stringliteral">"The list of %d frame(s) has no frames "</span></div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                               <span class="stringliteral">"that match: %s"</span>, self->size, regexp);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> <span class="preprocessor"></span>        cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                               <span class="stringliteral">"The list of frames has no frames "</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                               <span class="stringliteral">"that match the regular expression"</span>);</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="preprocessor"></span>        <a class="code" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete</a>(<span class="keyword">new</span>);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>         <span class="keyword">new</span> = NULL;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     }</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> </div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     <span class="keywordflow">return</span> <span class="keyword">new</span>;</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> }</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> </div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#ga2518fce55112b5008cb119a126e593d7">  438</a></span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__framelist.html#ga2518fce55112b5008cb119a126e593d7" title="Get the size of a framelist.">irplib_framelist_get_size</a>(<span class="keyword">const</span> irplib_framelist * <span class="keyword">self</span>)</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> {</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> </div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     cpl_ensure(<span class="keyword">self</span> != NULL,  CPL_ERROR_NULL_INPUT, -1);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     <span class="keywordflow">return</span> <span class="keyword">self</span>->size;</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> }</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00456"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#gaba8797bbb8394f5574cd88b2f1984387">  456</a></span> cpl_frame * <a class="code" href="group__irplib__framelist.html#gaba8797bbb8394f5574cd88b2f1984387" title="Get the specified frame from the framelist.">irplib_framelist_get</a>(irplib_framelist * <span class="keyword">self</span>, <span class="keywordtype">int</span> pos)</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> {</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>     IRPLIB_DIAG_PRAGMA_PUSH_IGN(-Wcast-qual);</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     <span class="keywordflow">return</span> (cpl_frame *)<a class="code" href="group__irplib__framelist.html#ga93d8f903729ea4b6fcb3eca85935716f" title="Get the specified frame from the framelist.">irplib_framelist_get_const</a>(<span class="keyword">self</span>, pos);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>     IRPLIB_DIAG_PRAGMA_POP;</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> }</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00473"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#ga93d8f903729ea4b6fcb3eca85935716f">  473</a></span> <span class="keyword">const</span> cpl_frame * <a class="code" href="group__irplib__framelist.html#ga93d8f903729ea4b6fcb3eca85935716f" title="Get the specified frame from the framelist.">irplib_framelist_get_const</a>(<span class="keyword">const</span> irplib_framelist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>                                              <span class="keywordtype">int</span> pos)</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> {</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> </div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     cpl_ensure(<span class="keyword">self</span> != NULL,      CPL_ERROR_NULL_INPUT,          NULL);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     cpl_ensure(pos >= 0,          CPL_ERROR_ILLEGAL_INPUT,       NULL);</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     cpl_ensure(pos  < self->size, CPL_ERROR_ACCESS_OUT_OF_RANGE, NULL);</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     <span class="keywordflow">return</span> <span class="keyword">self</span>->frame[pos];</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> }</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> </div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#gada2c2e3f530a6dff763402eefceb5600">  496</a></span> cpl_error_code <a class="code" href="group__irplib__framelist.html#gada2c2e3f530a6dff763402eefceb5600" title="Duplicate a propertylist to the specified position in the framelist.">irplib_framelist_set_propertylist</a>(irplib_framelist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>                                                  <span class="keywordtype">int</span> pos,</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>                                                  <span class="keyword">const</span> cpl_propertylist * list)</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> {</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     cpl_ensure_code(<span class="keyword">self</span> != NULL,      CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     cpl_ensure_code(list != NULL,      CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     cpl_ensure_code(pos  >= 0,         CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     cpl_ensure_code(pos  < self->size, CPL_ERROR_ACCESS_OUT_OF_RANGE);</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     cpl_propertylist_delete(self->propertylist[pos]);</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> </div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>     <span class="keyword">self</span>->propertylist[pos] = cpl_propertylist_duplicate(list);</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> </div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     cpl_ensure_code(self->propertylist[pos] != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> </div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> </div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> }</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#gab4858b1e9164f3a6cffcf40270f89032">  529</a></span> cpl_propertylist * <a class="code" href="group__irplib__framelist.html#gab4858b1e9164f3a6cffcf40270f89032" title="Get the propertylist of the specified frame in the framelist.">irplib_framelist_get_propertylist</a>(irplib_framelist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>                                                      <span class="keywordtype">int</span> pos)</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> {</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> </div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     IRPLIB_DIAG_PRAGMA_PUSH_IGN(-Wcast-qual);</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>     <span class="keywordflow">return</span> (cpl_propertylist *)<a class="code" href="group__irplib__framelist.html#ga7700dadcf17db5b86409e6cef233af4c" title="Get the propertylist of the specified frame in the framelist.">irplib_framelist_get_propertylist_const</a>(<span class="keyword">self</span>,</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>                                                                        pos);</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     IRPLIB_DIAG_PRAGMA_POP;</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> }</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> </div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#ga7700dadcf17db5b86409e6cef233af4c">  552</a></span> <span class="keyword">const</span> cpl_propertylist * <a class="code" href="group__irplib__framelist.html#ga7700dadcf17db5b86409e6cef233af4c" title="Get the propertylist of the specified frame in the framelist.">irplib_framelist_get_propertylist_const</a>(</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                                                   <span class="keyword">const</span> irplib_framelist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                                                   <span class="keywordtype">int</span> pos)</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> {</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>     cpl_ensure(<span class="keyword">self</span> != NULL,      CPL_ERROR_NULL_INPUT,          NULL);</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>     cpl_ensure(pos  >= 0,         CPL_ERROR_ILLEGAL_INPUT,       NULL);</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     cpl_ensure(pos  < self->size, CPL_ERROR_ACCESS_OUT_OF_RANGE, NULL);</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> </div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     cpl_ensure(self->propertylist[pos] != NULL,</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>                   CPL_ERROR_DATA_NOT_FOUND, NULL);</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> </div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>     <span class="keywordflow">return</span> <span class="keyword">self</span>->propertylist[pos];</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> </div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> }</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> </div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00583"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#ga6ce5701e84915514975d09e0100c6005">  583</a></span> cpl_error_code <a class="code" href="group__irplib__framelist.html#ga6ce5701e84915514975d09e0100c6005" title="Load the propertylist of the specified frame in the framelist.">irplib_framelist_load_propertylist</a>(irplib_framelist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>                                                   <span class="keywordtype">int</span> pos, <span class="keywordtype">int</span> ind,</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>                                                   <span class="keyword">const</span> <span class="keywordtype">char</span> * regexp,</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>                                                   cpl_boolean invert)</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> {</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> </div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> * filename;</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> </div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> </div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     cpl_ensure_code(<span class="keyword">self</span>   != NULL,    CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>     cpl_ensure_code(regexp != NULL,    CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     cpl_ensure_code(pos >= 0,          CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     cpl_ensure_code(pos <  self->size, CPL_ERROR_ACCESS_OUT_OF_RANGE);</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>     filename = cpl_frame_get_filename(self->frame[pos]);</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> </div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>     cpl_ensure_code(filename != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>     cpl_propertylist_delete(self->propertylist[pos]);</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     <span class="keyword">self</span>->propertylist[pos] = cpl_propertylist_load_regexp(filename, ind,</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                                                            regexp,</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                                                            invert ? 1 : 0);</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     <span class="keywordflow">if</span> (self->propertylist[pos] == NULL) {</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> <span class="preprocessor"></span>        <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, cpl_error_get_code(), <span class="stringliteral">"Could "</span></div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>                                      <span class="stringliteral">"not load FITS header from '%s' using "</span></div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>                                      <span class="stringliteral">"regexp '%s'"</span>, filename, regexp);</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> <span class="preprocessor"></span>        <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, cpl_error_get_code(),</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                                      <span class="stringliteral">"Could not load FITS header"</span>);</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> <span class="preprocessor"></span>    }</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> </div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span> </div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> }</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span> </div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00638"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#gaf9204681e0b6aa2d952c974dcbd8729d">  638</a></span> cpl_error_code <a class="code" href="group__irplib__framelist.html#gaf9204681e0b6aa2d952c974dcbd8729d" title="Load the propertylists of all frames in the framelist.">irplib_framelist_load_propertylist_all</a>(irplib_framelist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>                                                       <span class="keywordtype">int</span> ind,</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>                                                       <span class="keyword">const</span> <span class="keywordtype">char</span> * regexp,</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>                                                       cpl_boolean invert)</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> {</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> </div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     <span class="keywordtype">int</span> nprops = 0;</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>     <span class="keywordtype">int</span> nfiles = 0;</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> </div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>     cpl_ensure_code(<span class="keyword">self</span>   != NULL,    CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>     cpl_ensure_code(regexp != NULL,    CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>     <span class="keywordflow">for</span> (i=0; i < <span class="keyword">self</span>->size; i++) {</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>         <span class="keywordflow">if</span> (self->propertylist[i] == NULL)</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>             cpl_ensure_code(!<a class="code" href="group__irplib__framelist.html#ga6ce5701e84915514975d09e0100c6005" title="Load the propertylist of the specified frame in the framelist.">irplib_framelist_load_propertylist</a>(<span class="keyword">self</span>, i,</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>                                                                 ind,</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>                                                                 regexp,</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>                                                                 invert),</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>                                cpl_error_get_code());</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>         <span class="comment">/* Counting just for diagnostics - this actually causes</span></div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> <span class="comment">           the whole list to be reiterated :-( */</span></div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>         nprops += cpl_propertylist_get_size(self->propertylist[i]);</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>         nfiles++;</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>     }</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span> </div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"List of %d frames has %d properties"</span>, nfiles,</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>                  nprops);</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span> }</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> </div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#gab11bb60e44dea926cd50ee80c7fbbd14">  682</a></span> cpl_error_code <a class="code" href="group__irplib__framelist.html#gab11bb60e44dea926cd50ee80c7fbbd14" title="Set the tag of all frames in the list.">irplib_framelist_set_tag_all</a>(irplib_framelist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> * tag)</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> {</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> </div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span> </div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>     cpl_ensure_code(<span class="keyword">self</span> != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>     cpl_ensure_code(tag  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> </div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>     <span class="keywordflow">for</span> (i=0; i < <span class="keyword">self</span>->size; i++)</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>         cpl_ensure_code(!cpl_frame_set_tag(self->frame[i], tag),</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>                            cpl_error_get_code());</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span> </div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> }</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> </div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span> </div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00714"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#ga37e730f5627b4a0c7a81014f62421879">  714</a></span> cpl_error_code <a class="code" href="group__irplib__framelist.html#ga37e730f5627b4a0c7a81014f62421879" title="Add a frame to a framelist.">irplib_framelist_set</a>(irplib_framelist * <span class="keyword">self</span>, cpl_frame * <a class="code" href="structframe.html">frame</a>,</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>                                     <span class="keywordtype">int</span> pos)</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> {</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> </div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     cpl_ensure_code(<span class="keyword">self</span>  != NULL,     CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>     cpl_ensure_code(frame != NULL,     CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     cpl_ensure_code(pos >= 0,          CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     <span class="keywordflow">if</span> (pos == self->size) {</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>         <span class="keyword">self</span>->size++;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>         irplib_framelist_set_size(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span> </div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> </div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>         cpl_ensure_code(pos < self->size, CPL_ERROR_ACCESS_OUT_OF_RANGE);</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>         cpl_frame_delete(self->frame[pos]);</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>         cpl_propertylist_delete(self->propertylist[pos]);</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>     }</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> </div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>     <span class="keyword">self</span>->frame[pos] = frame;</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>     <span class="keyword">self</span>->propertylist[pos] = NULL;</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span> </div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> </div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> }</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> </div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00753"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#gac66ea3ad4fc98c171f8b840229fe54ce">  753</a></span> cpl_error_code <a class="code" href="group__irplib__framelist.html#gac66ea3ad4fc98c171f8b840229fe54ce" title="Erase a frame from a framelist and delete it and its propertylist.">irplib_framelist_erase</a>(irplib_framelist * <span class="keyword">self</span>, <span class="keywordtype">int</span> pos)</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span> {</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span> </div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     cpl_ensure_code(<span class="keyword">self</span>  != NULL,    CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     cpl_ensure_code(pos >= 0,         CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>     cpl_ensure_code(pos < self->size, CPL_ERROR_ACCESS_OUT_OF_RANGE);</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> </div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>     <span class="comment">/* Delete the specified frame and its propertylist */</span></div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     cpl_frame_delete(self->frame[pos]);</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>     cpl_propertylist_delete(self->propertylist[pos]);</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span> </div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>     <span class="comment">/* Move following frames down one position */</span></div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     <span class="keywordflow">for</span> (i = pos+1; i < <span class="keyword">self</span>->size; i++) {</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span> </div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>         <span class="keyword">self</span>->frame[i-1] = <span class="keyword">self</span>->frame[i];</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> </div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>         <span class="keyword">self</span>->propertylist[i-1] = <span class="keyword">self</span>->propertylist[i];</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>     }</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     <span class="keyword">self</span>->size--;</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> </div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>     irplib_framelist_set_size(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> </div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> </div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span> }</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> </div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> </div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00803"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#ga771f14f97f80a9bd7176d323999c9bce">  803</a></span> cpl_frame * <a class="code" href="group__irplib__framelist.html#ga771f14f97f80a9bd7176d323999c9bce" title="Erase a frame from a framelist and return it to the caller.">irplib_framelist_unset</a>(irplib_framelist * <span class="keyword">self</span>, <span class="keywordtype">int</span> pos,</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>                                    cpl_propertylist ** plist)</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span> </div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span> {</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>     cpl_frame * <a class="code" href="structframe.html">frame</a>;</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span> </div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span> </div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>     cpl_ensure(<span class="keyword">self</span>  != NULL,    CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>     cpl_ensure(pos >= 0,         CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>     cpl_ensure(pos < self->size, CPL_ERROR_ACCESS_OUT_OF_RANGE, NULL);</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> </div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>     <span class="comment">/* Get the specified frame and its propertylist */</span></div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>     frame = <span class="keyword">self</span>->frame[pos];</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> </div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>     <span class="keywordflow">if</span> (plist != NULL)</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>         *plist = <span class="keyword">self</span>->propertylist[pos];</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>         cpl_propertylist_delete(self->propertylist[pos]);</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span> </div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span> </div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>     <span class="comment">/* Move following frames down one position */</span></div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>     <span class="keywordflow">for</span> (i = pos+1; i < <span class="keyword">self</span>->size; i++) {</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span> </div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>         <span class="keyword">self</span>->frame[i-1] = <span class="keyword">self</span>->frame[i];</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span> </div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>         <span class="keyword">self</span>->propertylist[i-1] = <span class="keyword">self</span>->propertylist[i];</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span> </div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>     }</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span> </div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>     <span class="keyword">self</span>->size--;</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> </div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>     irplib_framelist_set_size(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span> </div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>     <span class="keywordflow">return</span> frame;</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span> </div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> }</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span> </div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00849"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#ga900ea254d9b2a2e4e3957360bbae4deb">  849</a></span> <span class="keywordtype">void</span> <a class="code" href="group__irplib__framelist.html#ga900ea254d9b2a2e4e3957360bbae4deb" title="Erase all frames from a framelist.">irplib_framelist_empty</a>(irplib_framelist * <span class="keyword">self</span>)</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span> {</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span> </div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> != NULL) {</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span> </div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>         <span class="comment">/* Deallocate all frames and their propertylists */</span></div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>         <span class="keywordflow">while</span> (self->size > 0) {</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>             <span class="keyword">self</span>->size--;</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>             cpl_frame_delete(self->frame[self->size]);</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>             cpl_propertylist_delete(self->propertylist[self->size]);</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> </div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>         }</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>         </div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>         <span class="comment">/* Deallocate the arrays */</span></div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>         irplib_framelist_set_size(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> </div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>     }</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> }</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> </div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span> </div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> </div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00909"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#gafed15e9e259ebad923b710f5eb0196ac">  909</a></span> cpl_error_code <a class="code" href="group__irplib__framelist.html#gafed15e9e259ebad923b710f5eb0196ac" title="Verify that a property is present for all frames.">irplib_framelist_contains</a>(<span class="keyword">const</span> irplib_framelist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span> * key, cpl_type type,</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>                                          cpl_boolean is_equal, <span class="keywordtype">double</span> fp_tol)</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span> {</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span> </div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>     <span class="keywordtype">char</span> * value_0;</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     <span class="keywordtype">char</span> * value_i;</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>     cpl_type type_0 = CPL_TYPE_INVALID;</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>     <span class="keywordtype">int</span> i, ifirst = -1;  <span class="comment">/* First non-NULL propertylist */</span></div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span> </div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span> </div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>     cpl_ensure_code(<span class="keyword">self</span>  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>     cpl_ensure_code(key   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>     cpl_ensure_code(fp_tol >= 0.0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span> </div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>     <span class="keywordflow">for</span> (i=0; i < <span class="keyword">self</span>->size; i++) {</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>         cpl_type type_i;</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span> </div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> </div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>         <span class="keywordflow">if</span> (self->propertylist[i] == NULL) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>         <span class="keywordflow">if</span> (ifirst < 0) ifirst = i;</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span> </div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>         type_i = cpl_propertylist_get_type(self->propertylist[i], key);</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span> </div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>         <span class="keywordflow">if</span> (type_i == CPL_TYPE_INVALID) {</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>             <span class="keywordflow">if</span> (type == CPL_TYPE_INVALID)</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> <span class="preprocessor"></span>                cpl_error_set_message(cpl_func, cpl_error_get_code(), <span class="stringliteral">"FITS "</span></div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                                       <span class="stringliteral">"key '%s' is missing from file %s"</span>, key,</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>                                       cpl_frame_get_filename(self->frame[i]));</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                 cpl_error_set_message(cpl_func, cpl_error_get_code(),</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                                       <span class="stringliteral">"FITS key '%s' [%s] is missing from file "</span></div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>                                       <span class="stringliteral">"%s"</span>, key, cpl_type_get_name(type),</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                                       cpl_frame_get_filename(self->frame[i]));</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> <span class="preprocessor"></span>                cpl_error_set_message(cpl_func, cpl_error_get_code(),</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>                                       <span class="stringliteral">"A FITS key is missing from a file"</span>);</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>                 cpl_error_set_message(cpl_func, cpl_error_get_code(),</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>                                       <span class="stringliteral">"A FITS key is missing from a file"</span>);</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span> <span class="preprocessor"></span>            <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>         }</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span> </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>         <span class="keywordflow">if</span> (type != CPL_TYPE_INVALID && type_i != type) {</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> <span class="preprocessor"></span>            <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                                          <span class="stringliteral">"FITS key '%s' has type %s instead of "</span></div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>                                          <span class="stringliteral">"%s in file %s"</span>, key,</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                                          cpl_type_get_name(type_i),</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                                          cpl_type_get_name(type),</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                                          cpl_frame_get_filename(self->frame[i]));</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> <span class="preprocessor"></span>            <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>                                          <span class="stringliteral">"A FITS key had an unexpected type"</span>);</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>         }</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span> </div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>         <span class="keywordflow">if</span> (!is_equal) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> </div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>         <span class="keywordflow">if</span> (type_0 == CPL_TYPE_INVALID) {</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>             type_0 = type_i;</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>             <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>         }</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span> </div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>         <span class="keywordflow">if</span> (type_i != type_0) {</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>             assert( type == CPL_TYPE_INVALID );</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span> <span class="preprocessor"></span>            <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>                                          <span class="stringliteral">"FITS key '%s' has different types "</span></div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                                          <span class="stringliteral">"(%s <=> %s) in files %s and %s"</span>, key,</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>                                          cpl_type_get_name(type_0),</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>                                          cpl_type_get_name(type_i),</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>                                          cpl_frame_get_filename(self->frame[0]),</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>                                          cpl_frame_get_filename(self->frame[i]));</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span> <span class="preprocessor"></span>            <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                                          <span class="stringliteral">"A FITS key has different types in "</span></div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>                                          <span class="stringliteral">"two files"</span>);</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> </div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>         <span class="keywordflow">if</span> (irplib_property_equal(self->propertylist[ifirst],</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>                                   self->propertylist[i],</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>                                   key, type_0, fp_tol, &value_0, &value_i))</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>             <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span> </div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>         <span class="keywordflow">if</span> ((type_0 == CPL_TYPE_FLOAT || type_0 == CPL_TYPE_DOUBLE)</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>             && fp_tol > 0.0) {</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> <span class="preprocessor"></span>            cpl_error_set_message(cpl_func, CPL_ERROR_INCOMPATIBLE_INPUT, <span class="stringliteral">"FITS"</span></div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>                                   <span class="stringliteral">" key '%s' [%s] has values that differ by "</span></div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>                                   <span class="stringliteral">"more than %g (%s <=> %s) in files %s and %s"</span>,</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>                                   key, cpl_type_get_name(type_0), fp_tol,</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>                                   value_0, value_i,</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>                                   cpl_frame_get_filename(self->frame[0]),</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>                                   cpl_frame_get_filename(self->frame[i]));</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> <span class="preprocessor"></span>            cpl_error_set_message(cpl_func, CPL_ERROR_INCOMPATIBLE_INPUT, <span class="stringliteral">"A "</span></div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>                                   <span class="stringliteral">"FITS key has values that differ by more "</span></div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>                                   <span class="stringliteral">"than the allowed tolerance in two file"</span>);</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> <span class="preprocessor"></span>        } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> <span class="preprocessor"></span>            cpl_error_set_message(cpl_func, CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>                                   <span class="stringliteral">"FITS key '%s' [%s] has different values "</span></div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>                                   <span class="stringliteral">"(%s <=> %s) in files %s and %s"</span>, key,</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>                                   cpl_type_get_name(type_0),</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>                                   value_0, value_i,</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>                                   cpl_frame_get_filename(self->frame[0]),</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>                                   cpl_frame_get_filename(self->frame[i]));</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> <span class="preprocessor"></span>            cpl_error_set_message(cpl_func, CPL_ERROR_INCOMPATIBLE_INPUT, <span class="stringliteral">"A "</span></div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>                                   <span class="stringliteral">"FITS key has different values in two files"</span>);</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>         cpl_free(value_0);</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>         cpl_free(value_i);</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> </div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>         <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>     }        </div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span> }</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span> </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01052"></a><span class="lineno"><a class="code" href="group__irplib__framelist.html#ga0ff6c5e3b778c607544ca04ca3fb9e94"> 1052</a></span> cpl_imagelist * <a class="code" href="group__irplib__framelist.html#ga0ff6c5e3b778c607544ca04ca3fb9e94" title="Load an imagelist from a framelist.">irplib_imagelist_load_framelist</a>(<span class="keyword">const</span> irplib_framelist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>                                                 cpl_type pixeltype,</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>                                                 <span class="keywordtype">int</span> planenum,</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>                                                 <span class="keywordtype">int</span> extnum)</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> {</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> </div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>     cpl_imagelist * list = NULL;</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>     cpl_image     * image = NULL;</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> </div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> </div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>     cpl_ensure(<span class="keyword">self</span> != NULL,  CPL_ERROR_NULL_INPUT,          NULL);</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>     cpl_ensure(extnum >= 0,   CPL_ERROR_ACCESS_OUT_OF_RANGE, NULL);</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>     cpl_ensure(planenum >= 0, CPL_ERROR_ACCESS_OUT_OF_RANGE, NULL);</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span> </div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>     list = cpl_imagelist_new();</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> </div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>     <span class="keywordflow">for</span> (i=0; i < <span class="keyword">self</span>->size; i++, image = NULL) {</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> * filename = cpl_frame_get_filename(self->frame[i]);</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>         cpl_error_code error;</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> </div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>         <span class="keywordflow">if</span> (filename == NULL) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span> </div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>         image = cpl_image_load(filename, pixeltype, planenum, extnum);</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>         <span class="keywordflow">if</span> (image == NULL) {</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> <span class="preprocessor"></span>            (void)cpl_error_set_message(cpl_func, cpl_error_get_code(),</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>                                         <span class="stringliteral">"Could not load FITS-image from plane "</span></div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>                                         <span class="stringliteral">"%d in extension %d in file %s"</span>,</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>                                         planenum, extnum, filename);</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span> <span class="preprocessor"></span>            (void)cpl_error_set_message(cpl_func, cpl_error_get_code(),</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>                                         <span class="stringliteral">"Could not load FITS-image"</span>);</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> <span class="preprocessor"></span>            <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>         }</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> </div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>         error = cpl_imagelist_set(list, image, i);</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>         assert(error == CPL_ERROR_NONE);</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>     }</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span> </div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>     cpl_image_delete(image);</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>     </div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>     <span class="keywordflow">if</span> (cpl_imagelist_get_size(list) != self->size) {</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>         cpl_imagelist_delete(list);</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>         list = NULL;</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>         assert(cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>     }</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span> </div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>     <span class="keywordflow">return</span> list;</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span> </div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> }</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> </div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_framelist_set_size(irplib_framelist * <span class="keyword">self</span>)</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> {</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> </div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> </div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>     assert( <span class="keyword">self</span> != NULL);</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span> </div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>     <span class="keywordflow">if</span> (self->size == 0) {</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>         <span class="comment">/* The list has been emptied */</span></div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>         cpl_free(self->frame);</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>         cpl_free(self->propertylist);</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>         <span class="keyword">self</span>->frame = NULL;</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>         <span class="keyword">self</span>->propertylist = NULL;</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>         <span class="comment">/* Update the size of the arrays */</span></div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> </div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>         <span class="keyword">self</span>->frame = cpl_realloc(self->frame, self->size * <span class="keyword">sizeof</span>(cpl_frame*));</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>         <span class="keyword">self</span>->propertylist =</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>             cpl_realloc(self->propertylist,</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>                         self->size * <span class="keyword">sizeof</span>(cpl_propertylist*));</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>     }</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span> </div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span> }</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span> </div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span> <span class="keyword">static</span> cpl_boolean irplib_property_equal(<span class="keyword">const</span> cpl_propertylist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>                                          <span class="keyword">const</span> cpl_propertylist * other,</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span> * key, cpl_type type,</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>                                          <span class="keywordtype">double</span> fp_tol,</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>                                          <span class="keywordtype">char</span> ** sstring, <span class="keywordtype">char</span> ** ostring)</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> {</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> </div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>     cpl_boolean equal;</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span> </div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> </div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>     assert(<span class="keyword">self</span>    != NULL);</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>     assert(other   != NULL);</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>     assert(key     != NULL);</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>     assert(sstring != NULL);</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>     assert(ostring != NULL);</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> </div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>     <span class="comment">/* FIXME: disable for better performance also with debugging */</span></div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>     assert(cpl_propertylist_get_type(other, key) == type);</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>     assert(fp_tol >= 0.0);</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span> </div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == other) <span class="keywordflow">return</span> CPL_TRUE;</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span> </div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>     <span class="keywordflow">switch</span> (type) {</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>     <span class="keywordflow">case</span> CPL_TYPE_CHAR: {</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> svalue = cpl_propertylist_get_char(<span class="keyword">self</span>, key);</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> ovalue = cpl_propertylist_get_char(other, key);</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span> </div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>         equal = svalue == ovalue ? CPL_TRUE : CPL_FALSE;</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>         <span class="keywordflow">if</span> (!equal) {</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>             *sstring = cpl_sprintf(<span class="stringliteral">"%c"</span>, svalue);</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>             *ostring = cpl_sprintf(<span class="stringliteral">"%c"</span>, ovalue);</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>         }</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>     }</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> </div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>     <span class="keywordflow">case</span> CPL_TYPE_BOOL: {</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>         <span class="keyword">const</span> <span class="keywordtype">int</span> svalue = cpl_propertylist_get_bool(<span class="keyword">self</span>, key);</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>         <span class="keyword">const</span> <span class="keywordtype">int</span> ovalue = cpl_propertylist_get_bool(other, key);</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> </div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>         equal = svalue == ovalue ? CPL_TRUE : CPL_FALSE;</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>         <span class="keywordflow">if</span> (!equal) {</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>             *sstring = cpl_strdup(svalue == 0 ? <span class="stringliteral">"F"</span> : <span class="stringliteral">"T"</span>);</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>             *ostring = cpl_strdup(ovalue == 0 ? <span class="stringliteral">"F"</span> : <span class="stringliteral">"T"</span>);</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>         }</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>     }</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span> </div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>     <span class="keywordflow">case</span> CPL_TYPE_INT: {</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>         <span class="keyword">const</span> <span class="keywordtype">int</span> svalue = cpl_propertylist_get_int(<span class="keyword">self</span>, key);</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>         <span class="keyword">const</span> <span class="keywordtype">int</span> ovalue = cpl_propertylist_get_int(other, key);</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> </div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>         equal = svalue == ovalue ? CPL_TRUE : CPL_FALSE;</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>         <span class="keywordflow">if</span> (!equal) {</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>             *sstring = cpl_sprintf(<span class="stringliteral">"%d"</span>, svalue);</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>             *ostring = cpl_sprintf(<span class="stringliteral">"%d"</span>, ovalue);</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>         }</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>     }</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span> </div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>     <span class="keywordflow">case</span> CPL_TYPE_LONG: {</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>         <span class="keyword">const</span> <span class="keywordtype">long</span> svalue = cpl_propertylist_get_long(<span class="keyword">self</span>, key);</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>         <span class="keyword">const</span> <span class="keywordtype">long</span> ovalue = cpl_propertylist_get_long(other, key);</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span> </div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>         equal = svalue == ovalue ? CPL_TRUE : CPL_FALSE;</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>         <span class="keywordflow">if</span> (!equal) {</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>             *sstring = cpl_sprintf(<span class="stringliteral">"%ld"</span>, svalue);</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>             *ostring = cpl_sprintf(<span class="stringliteral">"%ld"</span>, ovalue);</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>         }</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>     }</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span> </div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT: {</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> svalue = (double)cpl_propertylist_get_float(<span class="keyword">self</span>, key);</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> ovalue = (double)cpl_propertylist_get_float(other, key);</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span> </div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>         equal = (fabs(svalue - ovalue) <= fp_tol) ? CPL_TRUE : CPL_FALSE;</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>         <span class="keywordflow">if</span> (!equal) {</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>             *sstring = cpl_sprintf(<span class="stringliteral">"%f"</span>, svalue);</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>             *ostring = cpl_sprintf(<span class="stringliteral">"%f"</span>, ovalue);</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>         }</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>     }</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> </div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE: {</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> svalue = cpl_propertylist_get_double(<span class="keyword">self</span>, key);</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> ovalue = cpl_propertylist_get_double(other, key);</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> </div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>         equal = (fabs(svalue - ovalue) <= fp_tol) ? CPL_TRUE : CPL_FALSE;</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>         <span class="keywordflow">if</span> (!equal) {</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>             *sstring = cpl_sprintf(<span class="stringliteral">"%g"</span>, svalue);</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>             *ostring = cpl_sprintf(<span class="stringliteral">"%g"</span>, ovalue);</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>         }</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>     }</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING: {</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> * svalue = cpl_propertylist_get_string(<span class="keyword">self</span>, key);</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> * ovalue = cpl_propertylist_get_string(other, key);</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> </div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>         equal = strcmp(svalue, ovalue) == 0 ? CPL_TRUE : CPL_FALSE;</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>         <span class="keywordflow">if</span> (!equal) {</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>             *sstring = cpl_strdup(svalue);</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>             *ostring = cpl_strdup(ovalue);</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>         }</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>     }</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>         <span class="comment">/* Unknown property type */</span></div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>         assert( 0 );</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span> </div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>         equal = CPL_FALSE; <span class="comment">/* In case of -DNDEBUG */</span></div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> </div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>     }</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span> </div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>     <span class="keywordflow">if</span> (!equal) {</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>         assert( *sstring != NULL );</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>         assert( *ostring != NULL );</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>     }</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span> </div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>     <span class="keywordflow">return</span> equal;</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span> </div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__framelist_8h_source.html b/html/irplib__framelist_8h_source.html
deleted file mode 100644
index ce1770d..0000000
--- a/html/irplib__framelist_8h_source.html
+++ /dev/null
@@ -1,167 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_framelist.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_framelist.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_framelist.h,v 1.8 2008-11-20 10:24:47 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package </span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-20 10:24:47 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_FRAMELIST_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_FRAMELIST_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                                   New type</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="keyword">typedef</span> <span class="keyword">struct </span>_irplib_framelist_ irplib_framelist;</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">                                   Function prototypes</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/* Constructors and destructor */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> irplib_framelist * <a class="code" href="group__irplib__framelist.html#ga5b86add048651f73424d2542a04946a0" title="Create an empty framelist.">irplib_framelist_new</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="keywordtype">void</span> <a class="code" href="group__irplib__framelist.html#ga7a5159e9d27ef277df3fb55b331aaf26" title="Deallocate an irplib_framelist with its frames and properties.">irplib_framelist_delete</a>(irplib_framelist *);</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> irplib_framelist * <a class="code" href="group__irplib__framelist.html#ga30cbfd003c6e6a6a42e610442f0b1bd1" title="Create an irplib_framelist from a cpl_framelist.">irplib_framelist_cast</a>(<span class="keyword">const</span> cpl_frameset *);</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> irplib_framelist * <a class="code" href="group__irplib__framelist.html#ga86d6746d1c19356417815f7df04c3396" title="Extract the frames with the given tag from a framelist.">irplib_framelist_extract</a>(<span class="keyword">const</span> irplib_framelist *,</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> irplib_framelist * <a class="code" href="group__irplib__framelist.html#gace77e5ae75183a22a0e5af9dd9018b01" title="Extract the frames with the given tag from a framelist.">irplib_framelist_extract_regexp</a>(<span class="keyword">const</span> irplib_framelist *,</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>                                                    <span class="keyword">const</span> <span class="keywordtype">char</span> *, cpl_boolean);</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/* Accessors and element modifiers */</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__framelist.html#ga2518fce55112b5008cb119a126e593d7" title="Get the size of a framelist.">irplib_framelist_get_size</a>(<span class="keyword">const</span> irplib_framelist *);</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="keyword">const</span> cpl_frame * <a class="code" href="group__irplib__framelist.html#ga93d8f903729ea4b6fcb3eca85935716f" title="Get the specified frame from the framelist.">irplib_framelist_get_const</a>(<span class="keyword">const</span> irplib_framelist *, <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> cpl_frame * <a class="code" href="group__irplib__framelist.html#gaba8797bbb8394f5574cd88b2f1984387" title="Get the specified frame from the framelist.">irplib_framelist_get</a>(irplib_framelist *, <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keyword">const</span> cpl_propertylist * <a class="code" href="group__irplib__framelist.html#ga7700dadcf17db5b86409e6cef233af4c" title="Get the propertylist of the specified frame in the framelist.">irplib_framelist_get_propertylist_const</a>(</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>                                                        <span class="keyword">const</span> irplib_framelist *,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>                                                        <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> cpl_propertylist * <a class="code" href="group__irplib__framelist.html#gab4858b1e9164f3a6cffcf40270f89032" title="Get the propertylist of the specified frame in the framelist.">irplib_framelist_get_propertylist</a>(irplib_framelist *, <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> cpl_error_code <a class="code" href="group__irplib__framelist.html#gada2c2e3f530a6dff763402eefceb5600" title="Duplicate a propertylist to the specified position in the framelist.">irplib_framelist_set_propertylist</a>(irplib_framelist *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>                                                  <span class="keyword">const</span> cpl_propertylist *);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> cpl_error_code <a class="code" href="group__irplib__framelist.html#ga6ce5701e84915514975d09e0100c6005" title="Load the propertylist of the specified frame in the framelist.">irplib_framelist_load_propertylist</a>(irplib_framelist *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>                                                   <span class="keywordtype">int</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>                                                   cpl_boolean);</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> cpl_error_code <a class="code" href="group__irplib__framelist.html#gaf9204681e0b6aa2d952c974dcbd8729d" title="Load the propertylists of all frames in the framelist.">irplib_framelist_load_propertylist_all</a>(irplib_framelist *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>                                                       <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>                                                       cpl_boolean);</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> cpl_error_code <a class="code" href="group__irplib__framelist.html#gab11bb60e44dea926cd50ee80c7fbbd14" title="Set the tag of all frames in the list.">irplib_framelist_set_tag_all</a>(irplib_framelist *, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment">/* Inserting and removing elements */</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> cpl_error_code <a class="code" href="group__irplib__framelist.html#ga37e730f5627b4a0c7a81014f62421879" title="Add a frame to a framelist.">irplib_framelist_set</a>(irplib_framelist *, cpl_frame *, <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> cpl_error_code <a class="code" href="group__irplib__framelist.html#gac66ea3ad4fc98c171f8b840229fe54ce" title="Erase a frame from a framelist and delete it and its propertylist.">irplib_framelist_erase</a>(irplib_framelist *, <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> cpl_frame * <a class="code" href="group__irplib__framelist.html#ga771f14f97f80a9bd7176d323999c9bce" title="Erase a frame from a framelist and return it to the caller.">irplib_framelist_unset</a>(irplib_framelist *, <span class="keywordtype">int</span>, cpl_propertylist **);</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="keywordtype">void</span> <a class="code" href="group__irplib__framelist.html#ga900ea254d9b2a2e4e3957360bbae4deb" title="Erase all frames from a framelist.">irplib_framelist_empty</a>(irplib_framelist *);</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment">/* Others */</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> cpl_error_code <a class="code" href="group__irplib__framelist.html#gafed15e9e259ebad923b710f5eb0196ac" title="Verify that a property is present for all frames.">irplib_framelist_contains</a>(<span class="keyword">const</span> irplib_framelist *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                                          cpl_type, cpl_boolean, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> cpl_imagelist * <a class="code" href="group__irplib__framelist.html#ga0ff6c5e3b778c607544ca04ca3fb9e94" title="Load an imagelist from a framelist.">irplib_imagelist_load_framelist</a>(<span class="keyword">const</span> irplib_framelist *,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                                                 cpl_type, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> cpl_frameset * <a class="code" href="group__irplib__framelist.html#gabeedce2770a1bc06c26c0891a41aa174" title="Create a CPL frameset from an irplib_framelist.">irplib_frameset_cast</a>(<span class="keyword">const</span> irplib_framelist *);</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__hist-test_8c_source.html b/html/irplib__hist-test_8c_source.html
deleted file mode 100644
index d988f99..0000000
--- a/html/irplib__hist-test_8c_source.html
+++ /dev/null
@@ -1,210 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_hist-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li><li class="navelem"><a class="el" href="dir_40a404867a1885f5fad756cff9cd9f5a.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_hist-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO IRPLIB package                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment">/*----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> </div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#include <irplib_hist.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> </div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> * @defgroup irplib_hist_test   Testing of the IRPLIB utilities</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">                Defines</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#define NBINS 100</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">/*----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">                            Private Function prototypes</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_hist_tests(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * @brief   Unit tests of fit module</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> {</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>     <span class="comment">/* Initialize CPL + IRPLIB */</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>     irplib_hist_tests();</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> }</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_hist_tests(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> {</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> * hist;</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     cpl_image * image;</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     <span class="keywordtype">int</span> i, j;</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     <span class="keywordtype">float</span> * data;</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> </div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> max_where;</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     <span class="comment">/* 1. trial: Create a right histogram */</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     hist = irplib_hist_new();</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>     cpl_test_nonnull(hist);</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     irplib_hist_delete(hist);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     <span class="comment">/* 3. trial: Histogram for a uniform image */</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     image = cpl_image_new(100, 100, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>     cpl_image_add_scalar(image, 202);</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     hist = irplib_hist_new();</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>     error = irplib_hist_init(hist, NBINS, 0, 500);</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     cpl_test_zero(error);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     error = irplib_hist_fill(hist, image);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     cpl_test_zero(error);</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>     <span class="keywordflow">for</span>(i = 0; i < 40; i++) {</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     cpl_test_zero(irplib_hist_get_value(hist, i));</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     }</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     <span class="comment">/* The following call retrieves the value of the 42-st bin */</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>     <span class="comment">/* When i = 41, 42-th is retrieved. 500 - 0 / 100 = 5; 202/5=40,xx</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">       it should be in the 41-th bin but it is in the next one because</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment">       there is one before left empty for possible values out of range</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment">       0 (hinit) < 202 (image constant)</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     cpl_test_eq(irplib_hist_get_value(hist, 40), 10000);</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     <span class="keywordflow">for</span>(i = 42; i < NBINS; i++) {</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     cpl_test_zero(irplib_hist_get_value(hist, i));</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     }</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     irplib_hist_delete(hist);</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     cpl_image_delete(image);</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     <span class="comment">/* 4. trial: Histogram for a normal image: no checking of the output */</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     image = cpl_image_new(100, 100, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     cpl_image_fill_noise_uniform(image, 0, 200);</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     hist = irplib_hist_new();</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     error = irplib_hist_fill(hist,image);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     cpl_test_zero(error);</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     irplib_hist_delete(hist);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     cpl_image_delete(image);</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     <span class="comment">/* 5. trial: Histogram */</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     image = cpl_image_new(100, 100, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     data = cpl_image_get_data_float(image);</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     <span class="keywordflow">for</span> (i = 0; i < 100; i++) {</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     <span class="keywordflow">for</span> (j = 0; j < 100; j++) {</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>         *(data + 100*i + j) = i +j;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     }</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     }</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     hist = irplib_hist_new();</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     error = irplib_hist_fill(hist, image);</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     irplib_hist_get_max(hist, &max_where);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="comment">/* The following call retrieves the value of the 41-st bin */</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     <span class="comment">/*  cpl_test_eq(irplib_hist_get_value(hist, 40), 10000);</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment">    for(i = 42; i < NBINS; i++) {</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment">    cpl_test_zero(irplib_hist_get_value(hist, i));</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment">    }*/</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     <span class="comment">/* 6. trial: all by default ( we use the same image) */</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     cpl_test_eq(max_where, irplib_hist_get_nbins(hist)/2);</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     irplib_hist_delete(hist);</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     cpl_image_delete(image);</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__hist_8c_source.html b/html/irplib__hist_8c_source.html
deleted file mode 100644
index 9a1e2e5..0000000
--- a/html/irplib__hist_8c_source.html
+++ /dev/null
@@ -1,410 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_hist.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_hist.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> </div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> </div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * Copyright (C) 2002, 2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> </div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Id: irplib_hist.c,v 1.8 2013-07-04 12:10:12 jtaylor Exp $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Date: 2013-07-04 12:10:12 $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> </div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include "irplib_hist.h"</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="struct__irplib__hist__.html">   41</a></span> <span class="keyword">struct </span><a class="code" href="struct__irplib__hist__.html">_irplib_hist_</a></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> {</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> * bins;</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>   nbins;</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>     <span class="keywordtype">double</span>          start;</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>     <span class="keywordtype">double</span>          range;</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> };</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Create a new empty histogram</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> *</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> irplib_hist_new(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> {</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>     <span class="keywordflow">return</span> (<a class="code" href="struct__irplib__hist__.html">irplib_hist</a> *) cpl_calloc(1, <span class="keyword">sizeof</span>(<a class="code" href="struct__irplib__hist__.html">irplib_hist</a>));</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> }</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Delete a histogram</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> irplib_hist_delete(<a class="code" href="struct__irplib__hist__.html">irplib_hist</a> * d)</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> {</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     <span class="keywordflow">if</span> (d == NULL)</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     <span class="keywordflow">if</span> (d -> bins)</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     cpl_free(d -> bins);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     cpl_free(d);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> }</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> </div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * Initialise a histogram with user-defined values</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> cpl_error_code</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> irplib_hist_init(<a class="code" href="struct__irplib__hist__.html">irplib_hist</a>   * hist,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>                  <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>   nbins,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>                  <span class="keywordtype">double</span>          start,</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>                  <span class="keywordtype">double</span>          range)</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> {</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>     <span class="comment">/* Test the entries */</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>     cpl_ensure_code(hist         != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     cpl_ensure_code(nbins        >  0,    CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     cpl_ensure_code(range        >  0,    CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>     cpl_ensure_code(hist -> bins == NULL, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     <span class="comment">/* Initialise the histogram structure */</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     hist -> bins  = (<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *) cpl_calloc(nbins, <span class="keyword">sizeof</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>));</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     hist -> nbins = nbins;</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>     hist -> start = start;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     hist -> range = range;</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> }</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Return the value of a histogram bin.</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * An uninitialised histogram is considered an illegal input.</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> irplib_hist_get_value(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> * hist,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                       <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> binpos)</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> {</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     cpl_ensure(hist         != NULL,          CPL_ERROR_NULL_INPUT, 0);</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     cpl_ensure(hist -> bins != NULL,          CPL_ERROR_ILLEGAL_INPUT, 0);</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     cpl_ensure(binpos       <  hist -> nbins, CPL_ERROR_ILLEGAL_INPUT, 0);</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     <span class="keywordflow">return</span> hist -> bins[binpos];</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> }</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Return the number of bins in the histogram.</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> irplib_hist_get_nbins(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> * hist)</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> {</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     cpl_ensure(hist != NULL, CPL_ERROR_NULL_INPUT, 0);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     <span class="keywordflow">return</span> hist -> nbins;</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> }</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Return the binwidth of the histogram.</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> irplib_hist_get_bin_size(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> * hist)</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> {</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     cpl_ensure(hist         != NULL, CPL_ERROR_NULL_INPUT, 0);</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     cpl_ensure(hist -> bins != NULL, CPL_ERROR_ILLEGAL_INPUT, 0);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="keywordflow">return</span> hist -> range / (double)(hist -> nbins - 2);</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> }</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * Return the range covered by the histogram.</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> </div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> irplib_hist_get_range(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> * hist)</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> {</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     cpl_ensure(hist != NULL, CPL_ERROR_NULL_INPUT, 0);</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     <span class="keywordflow">return</span> hist -> range;</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> }</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Return the real value corresponding</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * to the inferior limit of the histogram..</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> irplib_hist_get_start(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> * hist)</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> {</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     cpl_ensure(hist         != NULL, CPL_ERROR_NULL_INPUT, 0);</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     cpl_ensure(hist -> bins != NULL, CPL_ERROR_ILLEGAL_INPUT, 0);</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <span class="keywordflow">return</span> hist -> start;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> }</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Fill a histogram for an image.</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> * If the histogram is uninitialised,</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> * the function initialises it with default values.</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> cpl_error_code</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> irplib_hist_fill(<a class="code" href="struct__irplib__hist__.html">irplib_hist</a>     * hist,</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>                  <span class="keyword">const</span> cpl_image * image)</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> {</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     <span class="keywordtype">double</span>           binwidth = 1.0;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     <span class="keywordtype">int</span>              nsamples;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     <span class="keywordtype">int</span>              i;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     <span class="keyword">const</span> <span class="keywordtype">float</span>    * data = 0;</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     <span class="keyword">const</span> cpl_binary*  bpm_data = 0;</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <span class="keyword">const</span> cpl_mask* bpm = 0;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     cpl_error_code   error;</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     <span class="comment">/* Test the entries */</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     cpl_ensure_code(hist  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     cpl_ensure_code(image != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     <span class="keywordflow">if</span> (hist -> bins == NULL) {</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        hstart = cpl_image_get_min(image);</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        hrange = cpl_image_get_max(image) - hstart;</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment">         * Whichever function that computes an optimal binwidth</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment">         * should be introduced inside this if-statement, here.</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     <span class="comment">/* 2 extra-bins for possible out-of-range values */</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> nbins  = (<span class="keywordtype">unsigned</span> long) (hrange / binwidth) + 2;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     error = irplib_hist_init(hist, nbins, hstart, hrange);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     cpl_ensure_code(hist -> range > 0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     <span class="comment">/* 2 bins reserved for possible out-of-range values */</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>         binwidth = hist -> range / (double)(hist -> nbins - 2);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     }</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     nsamples = cpl_image_get_size_x(image) * cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     data     = cpl_image_get_data_float_const(image);</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     bpm      = cpl_image_get_bpm_const(image);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     <span class="keywordflow">if</span> (bpm)</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     {</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>         bpm_data     = cpl_mask_get_data_const(bpm); <span class="comment">// bad pixel mask</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     }</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     <span class="keywordflow">for</span> (i = 0; i < nsamples; i++)</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     {</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>         <span class="keywordtype">int</span> pos = 0;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>         <span class="keywordflow">if</span>(bpm_data && bpm_data[i] != CPL_BINARY_0)</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>         {</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>             <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>         }</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>         pos = (int)((data[i] - hist -> start) / binwidth);</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>         <span class="keywordflow">if</span> (pos <  0)</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>         {</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>             hist -> bins[0]++;</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>) pos >= (hist -> nbins - 2))</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>         {</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>             hist -> bins[hist -> nbins - 1]++;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         } <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         {</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>             hist -> bins[pos + 1]++;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>         }</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     }</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> }</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment"> * Compute the maximum of a histogram.</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment"> * Return: the maximum value.</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment"> * The parameter max_where is a pointer to the position</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment"> * of the maximum in the histogram.</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> irplib_hist_get_max(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> * hist,</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>                     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>     * maxpos)</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> {</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> max = 0;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> ui;</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> </div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     cpl_ensure(hist         != NULL, CPL_ERROR_NULL_INPUT, 0);</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     cpl_ensure(maxpos       != NULL, CPL_ERROR_NULL_INPUT, 0);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     cpl_ensure(hist -> bins != NULL, CPL_ERROR_ILLEGAL_INPUT, 0);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <span class="keywordflow">for</span>(ui = 0; ui < hist -> nbins; ui++) {</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     <span class="keywordtype">double</span> c_value = irplib_hist_get_value(hist, ui);</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     <span class="keywordflow">if</span>(c_value > max) {</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>         max     = c_value;</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>         *maxpos = ui;</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     }</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     }</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     <span class="keywordflow">return</span> max;</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> }</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment"> * Cast a histogram into a table with a single column named "HIST"</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> cpl_table *</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> irplib_hist_cast_table(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> * hist)</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> {</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     cpl_table      * table;</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     cpl_error_code   error;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     cpl_ensure(hist         != NULL, CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     cpl_ensure(hist -> bins != NULL, CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     table = cpl_table_new(hist -> nbins);</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     error = cpl_table_new_column(table, <span class="stringliteral">"HIST"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     cpl_ensure(!error, error, NULL);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     error = cpl_table_copy_data_int(table, <span class="stringliteral">"HIST"</span>, (<span class="keywordtype">int</span> *)(hist -> bins));</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     cpl_ensure(!error, error, NULL);</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <span class="keywordflow">return</span> table;</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> }</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment"> * Collapse the histogram: add the values of all bins.</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="comment"> * Used now only for debugging purposes.</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> cpl_error_code</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> irplib_hist_collapse(<a class="code" href="struct__irplib__hist__.html">irplib_hist</a> * hist,</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>                      <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> new_nbins)</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> {</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>   ui, nuj;</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> * old_bins;</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>   old_nbins;</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <span class="keywordtype">double</span>          collapse_rate;</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     cpl_error_code  error;</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>   rest;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     cpl_ensure_code(hist         != NULL,          CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     cpl_ensure_code(hist -> bins != NULL,          CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     cpl_ensure_code(new_nbins    >  0,             CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     cpl_ensure_code(new_nbins    <= hist -> nbins, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     old_bins  = hist -> bins;</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     old_nbins = hist -> nbins;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     hist -> bins = NULL;</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     error = irplib_hist_init(hist, new_nbins, hist -> start, hist -> range);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     collapse_rate = (double) (old_nbins - 2) / (double) (new_nbins - 2);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     <span class="comment">/* The out-of-range values are not affected by the collapsing operation */</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     hist -> bins[0]             = old_bins[0];</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     hist -> bins[new_nbins - 1] = old_bins[old_nbins - 1];</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     rest = 0;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     nuj  = 1;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <span class="keywordflow">for</span> (ui = 1; ui < new_nbins - 1; ui++) {</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> uj;</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>  up  = collapse_rate *  ui;</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     hist -> bins[ui] += rest;</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     <span class="keywordflow">for</span> (uj = nuj; uj < (<span class="keywordtype">unsigned</span> long) up + 1; uj++)</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>         hist -> bins[ui] +=  old_bins[uj];</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> </div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     rest = (<span class="keywordtype">unsigned</span> long)(up - (<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>) up) * old_bins[uj];</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     hist -> bins[ui] += rest;</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     rest = old_bins[uj] - rest;</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     nuj = uj + 1;</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     }</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     cpl_free(old_bins);</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> </div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__hist_8h_source.html b/html/irplib__hist_8h_source.html
deleted file mode 100644
index 705f1fb..0000000
--- a/html/irplib__hist_8h_source.html
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_hist.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_hist.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_hist.h,v 1.3 2007-09-07 14:23:50 lbilbao Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002, 2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: lbilbao $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2007-09-07 14:23:50 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_HIST_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_HIST_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> </div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__irplib__hist__.html">_irplib_hist_</a> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a>;</div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment">/* Creation/Destruction functions */</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> *</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> irplib_hist_new(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> irplib_hist_delete(<a class="code" href="struct__irplib__hist__.html">irplib_hist</a> *);</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/* Initialisation function */</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> cpl_error_code</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> irplib_hist_init(<a class="code" href="struct__irplib__hist__.html">irplib_hist</a>   *,</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>                  <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>  ,</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>                  <span class="keywordtype">double</span>         ,</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span>                  <span class="keywordtype">double</span>         );</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/* Accessor functions */</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> irplib_hist_get_value(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> *,</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>                       <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>);</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> irplib_hist_get_nbins(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> *);</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> irplib_hist_get_bin_size(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> *);</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> irplib_hist_get_range(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> *);</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> irplib_hist_get_start(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> *);</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/* Histogram computing function */</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> cpl_error_code</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> irplib_hist_fill(<a class="code" href="struct__irplib__hist__.html">irplib_hist</a>     *,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>                  <span class="keyword">const</span> cpl_image *);</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> </div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">/* Statistics functions */</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> irplib_hist_get_max(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> *,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>                     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>     *);</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">/* Casting function */</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> cpl_table *</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> irplib_hist_cast_table(<span class="keyword">const</span> <a class="code" href="struct__irplib__hist__.html">irplib_hist</a> *);</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">/* Functions for operations on histograms */</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> cpl_error_code</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> irplib_hist_collapse(<a class="code" href="struct__irplib__hist__.html">irplib_hist</a> *,</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>                      <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="preprocessor">#endif </span><span class="comment">/* IRPLIB_HIST_H */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__ksigma__clip_8c_source.html b/html/irplib__ksigma__clip_8c_source.html
deleted file mode 100644
index 70d5869..0000000
--- a/html/irplib__ksigma__clip_8c_source.html
+++ /dev/null
@@ -1,267 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_ksigma_clip.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_ksigma_clip.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_ksigma_clip.c,v 1.1 2011-11-02 13:18:28 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002, 2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2011-11-02 13:18:28 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#include <complex.h></span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> </div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment">/*---------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment">                                  Includes</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> ---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <assert.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include "irplib_ksigma_clip.h"</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include "irplib_hist.h"</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include "irplib_utils.h"</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * @defgroup ksigmaclip        kappa sigma clip functions</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">/*---------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">                                  Defines</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> ---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">/*---------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">                                  Private function prototypes</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> ---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> irplib_ksigma_clip_double(<span class="keyword">const</span> <span class="keywordtype">double</span>  * pi,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>               <span class="keywordtype">int</span>               llx,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>               <span class="keywordtype">int</span>               lly,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>               <span class="keywordtype">int</span>               urx,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>               <span class="keywordtype">int</span>               ury,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>               <span class="keywordtype">int</span>               nx,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="keywordtype">double</span>            var_sum,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="keywordtype">int</span>               npixs,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="keywordtype">double</span>            kappa,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="keywordtype">int</span>               nclip,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="keywordtype">double</span>            tolerance,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               <span class="keywordtype">double</span>          * mean,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               <span class="keywordtype">double</span>          * stdev);</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> irplib_ksigma_clip_float(<span class="keyword">const</span> <span class="keywordtype">float</span>     * pi,</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>              <span class="keywordtype">int</span>               llx,</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>              <span class="keywordtype">int</span>               lly,</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>              <span class="keywordtype">int</span>               urx,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>              <span class="keywordtype">int</span>               ury,</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>              <span class="keywordtype">int</span>               nx,</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>              <span class="keywordtype">double</span>            var_sum,</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>              <span class="keywordtype">int</span>               npixs,</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>              <span class="keywordtype">double</span>            kappa,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>              <span class="keywordtype">int</span>               nclip,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>              <span class="keywordtype">double</span>            tolerance,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>              <span class="keywordtype">double</span>          * mean,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>              <span class="keywordtype">double</span>          * stdev);</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> irplib_ksigma_clip_int(<span class="keyword">const</span> <span class="keywordtype">int</span>       * pi,</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                <span class="keywordtype">int</span>               llx,</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                <span class="keywordtype">int</span>               lly,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                <span class="keywordtype">int</span>               urx,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                <span class="keywordtype">int</span>               ury,</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                <span class="keywordtype">int</span>               nx,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                <span class="keywordtype">double</span>            var_sum,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>                <span class="keywordtype">int</span>               npixs,</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                <span class="keywordtype">double</span>            kappa,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                <span class="keywordtype">int</span>               nclip,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                <span class="keywordtype">double</span>            tolerance,</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>                <span class="keywordtype">double</span>          * mean,</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>                <span class="keywordtype">double</span>          * stdev);</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> cpl_error_code</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> irplib_ksigma_clip(<span class="keyword">const</span> cpl_image * img,</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>            <span class="keywordtype">int</span>               llx,</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>            <span class="keywordtype">int</span>               lly,</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>            <span class="keywordtype">int</span>               urx,</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>            <span class="keywordtype">int</span>               ury,</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>            <span class="keywordtype">double</span>            kappa,</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>            <span class="keywordtype">int</span>               nclip,</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>            <span class="keywordtype">double</span>            tolerance,</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>            <span class="keywordtype">double</span>          * kmean,</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>            <span class="keywordtype">double</span>          * kstdev)</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> {</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     cpl_errorstate inistate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     cpl_stats * stats;</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <span class="keywordtype">double</span>      mean, stdev, var_sum;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     <span class="keywordtype">int</span>         npixs;</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     cpl_ensure_code(img != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     nx = cpl_image_get_size_x(img);</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>     ny = cpl_image_get_size_y(img);</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     cpl_ensure_code(llx > 0 && urx > llx && urx <= nx &&</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>             lly > 0 && ury > lly && ury <= ny,</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>             CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     cpl_ensure_code(tolerance >= 0.0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     cpl_ensure_code(kappa     >  1.0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     cpl_ensure_code(nclip     >    0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     stats = cpl_stats_new_from_image_window(img,</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>                         CPL_STATS_MEAN | CPL_STATS_STDEV,</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>                         llx, lly, urx, ury);</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     npixs   = cpl_stats_get_npix(stats); <span class="comment">/* Non-bad pixels in window */</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     mean    = cpl_stats_get_mean(stats);</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     stdev   = cpl_stats_get_stdev(stats);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     var_sum = stdev * stdev * (npixs - 1);</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     cpl_stats_delete(stats);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="comment">/* img, llx etc. may cause errors: Check and propagate */</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     cpl_ensure_code(cpl_errorstate_is_equal(inistate), cpl_error_get_code());</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     <span class="keywordflow">switch</span> (cpl_image_get_type(img)) {</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     skip_if(irplib_ksigma_clip_double(cpl_image_get_data_double_const(img),</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>                       llx, lly, urx, ury, nx, var_sum,</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>                       npixs, kappa, nclip, tolerance,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                       &mean, &stdev));</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     skip_if(irplib_ksigma_clip_float(cpl_image_get_data_float_const(img),</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>                      llx, lly, urx, ury, nx, var_sum,</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                      npixs, kappa, nclip, tolerance,</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>                      &mean, &stdev));</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     skip_if(irplib_ksigma_clip_int(cpl_image_get_data_int_const(img),</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                        llx, lly, urx, ury, nx, var_sum,</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                        npixs, kappa, nclip, tolerance,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                        &mean, &stdev));</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     <span class="comment">/* It is an error in CPL to reach this point */</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     assert( 0 );</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     }</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     *kmean = mean;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="keywordflow">if</span> (kstdev != NULL) *kstdev = stdev; <span class="comment">/* Optional */</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     end_skip;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> }</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="preprocessor">#define CONCAT(a,b) a ## _ ## b</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="preprocessor"></span><span class="preprocessor">#define CONCAT2X(a,b) CONCAT(a,b)</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="preprocessor">#define CPL_TYPE double</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="preprocessor"></span><span class="preprocessor">#include "irplib_ksigma_clip_body.h"</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="preprocessor">#undef CPL_TYPE</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="preprocessor">#define CPL_TYPE float</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="preprocessor"></span><span class="preprocessor">#include "irplib_ksigma_clip_body.h"</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="preprocessor">#undef CPL_TYPE</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="preprocessor">#define CPL_TYPE int</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="preprocessor"></span><span class="preprocessor">#include "irplib_ksigma_clip_body.h"</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="preprocessor">#undef CPL_TYPE</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__ksigma__clip_8h_source.html b/html/irplib__ksigma__clip_8h_source.html
deleted file mode 100644
index d605e81..0000000
--- a/html/irplib__ksigma__clip_8h_source.html
+++ /dev/null
@@ -1,112 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_ksigma_clip.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_ksigma_clip.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_ksigma_clip.h,v 1.1 2011-11-02 13:18:28 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002, 2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2011-11-02 13:18:28 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_KSIGMA_CLIP_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_KSIGMA_CLIP_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                                   Prototypes</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> cpl_error_code</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> irplib_ksigma_clip(<span class="keyword">const</span> cpl_image *,</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>            <span class="keyword">const</span> <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>            <span class="keyword">const</span> <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>            <span class="keyword">const</span> <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>            <span class="keyword">const</span> <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>            <span class="keyword">const</span> <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>            <span class="keyword">const</span> <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>            <span class="keyword">const</span> <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span>            <span class="keywordtype">double</span> *,</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>            <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__ksigma__clip__body_8h_source.html b/html/irplib__ksigma__clip__body_8h_source.html
deleted file mode 100644
index 2216797..0000000
--- a/html/irplib__ksigma__clip__body_8h_source.html
+++ /dev/null
@@ -1,167 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_ksigma_clip_body.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_ksigma_clip_body.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_ksigma_clip_body.h,v 1.1 2011-11-02 13:18:28 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package </span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2011-11-02 13:18:28 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#define TYPE_ADD(a) CONCAT2X(a, CPL_TYPE)</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> TYPE_ADD(irplib_ksigma_clip)(<span class="keyword">const</span> CPL_TYPE  * pi,</div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span>                  <span class="keywordtype">int</span>               llx,</div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span>                  <span class="keywordtype">int</span>               lly,</div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span>                  <span class="keywordtype">int</span>               urx,</div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span>                  <span class="keywordtype">int</span>               ury,</div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span>                  <span class="keywordtype">int</span>               nx,</div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span>                  <span class="keywordtype">double</span>            var_sum,</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span>                  <span class="keywordtype">int</span>               npixs,</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span>                  <span class="keywordtype">double</span>            kappa,</div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span>                  <span class="keywordtype">int</span>               nclip,</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span>                  <span class="keywordtype">double</span>            tolerance,</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>                  <span class="keywordtype">double</span>          * mean,</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>                  <span class="keywordtype">double</span>          * stdev)</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> {</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>     <span class="keywordtype">int</span>    pos0 = (llx - 1) + (lly - 1) * nx; <span class="comment">/* 1st pixel to process */</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>     <span class="keywordtype">double</span> nb   = (double) npixs;             <span class="comment">/* Non-bad pixels in window */</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>     <span class="keywordtype">double</span> lo_cut    = *mean - kappa * (*stdev);</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span>     <span class="keywordtype">double</span> hi_cut    = *mean + kappa * (*stdev);</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>     </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span>     <span class="keywordtype">double</span> lo_cut_p  = lo_cut;</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>     <span class="keywordtype">double</span> hi_cut_p  = hi_cut;</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>     <span class="keywordtype">double</span> c_var_sum;</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>     <span class="keywordtype">double</span> c_mean = 0; <span class="comment">/* Avoid false uninit warning */</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>     <span class="keywordtype">double</span> c_stdev = 0; <span class="comment">/* Avoid false uninit warning */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>     <span class="keywordtype">int</span>    iclip;</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>     <span class="keywordflow">for</span> (iclip = 0; iclip < nclip; iclip++) {</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>         <span class="keywordtype">int</span> pos = pos0;</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>         <span class="keywordtype">int</span> i, j;</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     c_var_sum = var_sum;</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     c_mean    = *mean;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     c_stdev   = *stdev;</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     nb        = npixs;</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>         <span class="keywordflow">for</span> (j = lly - 1; j < ury; j++, pos += (nx - urx + llx - 1)) {</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>             <span class="keywordflow">for</span> (i = llx - 1; i < urx; i++, pos++) {</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>                 <span class="keywordflow">if</span> (pi[pos] > hi_cut || pi[pos] < lo_cut) {</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>                     <span class="keyword">const</span> <span class="keywordtype">double</span> delta = (double)pi[pos] - c_mean;</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>                     c_var_sum  -= nb * delta * delta / (nb - 1.0);</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>                     c_mean     -= delta / (nb - 1.0);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>                     nb          = nb - 1.0;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>                 }</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>             }</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         }</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordflow">if</span> (nb == 1.0 || c_var_sum < 0.0) {</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Iteration %d: Too many pixels were "</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>               <span class="stringliteral">"removed. This may cause unexpected behaviour. "</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>               <span class="stringliteral">"Please set a lower number of iterations "</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>                           <span class="stringliteral">"or increase the value of kappa\n"</span>, iclip);</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>         cpl_error_set(cpl_func, CPL_ERROR_DIVISION_BY_ZERO);</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>         c_stdev = sqrt(c_var_sum / (nb - 1.0));</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>     }</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     lo_cut = c_mean - kappa * c_stdev;</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     hi_cut = c_mean + kappa * c_stdev;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>         <span class="keywordflow">if</span>(fabs(lo_cut - lo_cut_p) < tolerance &&</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>            fabs(hi_cut - hi_cut_p) < tolerance) {</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>         lo_cut_p = lo_cut;</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>         hi_cut_p = hi_cut;</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     }</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     }</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     *mean  = c_mean;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     *stdev = c_stdev;</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__match__cats-test_8c_source.html b/html/irplib__match__cats-test_8c_source.html
deleted file mode 100644
index 2293cf0..0000000
--- a/html/irplib__match__cats-test_8c_source.html
+++ /dev/null
@@ -1,207 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_match_cats-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li><li class="navelem"><a class="el" href="dir_40a404867a1885f5fad756cff9cd9f5a.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_match_cats-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_match_cats-test.c,v 1.2 2013-01-29 08:43:33 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO Common Pipeline Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2008 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-01-29 08:43:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.2 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include "irplib_match_cats.h"</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">                                   Static functions</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_match_cats_all_test(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">                                  Main</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a> (<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> {</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>     irplib_match_cats_all_test();</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> }</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_match_cats_all_test(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> {</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>     cpl_table   **  catalogues;</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>     <span class="keywordtype">int</span>             nsource_per_cat = 9;</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>     <span class="keywordtype">int</span>             ntotal_sources = nsource_per_cat + 2 + 3;</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>     <span class="keywordtype">int</span>             ncat = 5;</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>     <span class="keywordtype">int</span>             mincat_match = 2;</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     <span class="keywordtype">int</span>             icat;</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     <span class="keywordtype">int</span>             iobj;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     cpl_table   *   matches;</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="keywordtype">int</span>             imatch;</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     <span class="comment">/* Create the catalogues */</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     catalogues = cpl_malloc(ncat * <span class="keyword">sizeof</span>(cpl_table *));</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     <span class="keywordflow">for</span>(icat = 0; icat < ncat; icat++)</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     {</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>         catalogues[icat] = cpl_table_new(nsource_per_cat);</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>         cpl_table_new_column(catalogues[icat],<span class="stringliteral">"X_POS"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>         cpl_table_new_column(catalogues[icat],<span class="stringliteral">"Y_POS"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>     }</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     <span class="keywordflow">for</span>(iobj = 0 ; iobj < ntotal_sources; ++iobj)</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     {</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         <span class="keywordtype">double</span> x,y;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>         x = ((double)rand()/(double)RAND_MAX) * 1000;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>         y = ((double)rand()/(double)RAND_MAX) * 1000;</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>         cpl_msg_warning(__func__,<span class="stringliteral">"obj %d x %f y %f"</span>, iobj, x, y);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>         <span class="keywordflow">for</span>(icat = 0; icat < ncat; icat++)</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>         {</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>             <span class="keywordflow">if</span>(icat == 0 && iobj >= 2 && iobj <= nsource_per_cat +1)</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>             {</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>                 cpl_table_set_double(catalogues[icat], <span class="stringliteral">"X_POS"</span>, iobj - 2 , x);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>                 cpl_table_set_double(catalogues[icat], <span class="stringliteral">"Y_POS"</span>, iobj - 2 , y);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>             }</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>             <span class="keywordflow">if</span>(icat == 1 && iobj >= 3 && iobj <= nsource_per_cat+2)</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>             {</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>                 cpl_table_set_double(catalogues[icat], <span class="stringliteral">"X_POS"</span>, iobj - 3 , x);</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>                 cpl_table_set_double(catalogues[icat], <span class="stringliteral">"Y_POS"</span>, iobj - 3 , y);</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>             }</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>             <span class="keywordflow">if</span>(icat == 2 && iobj >= 1 && iobj <= nsource_per_cat)</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>             {</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>                 cpl_table_set_double(catalogues[icat], <span class="stringliteral">"X_POS"</span>, iobj - 1 , x);</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                 cpl_table_set_double(catalogues[icat], <span class="stringliteral">"Y_POS"</span>, iobj - 1 , y);</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>             }</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>             <span class="keywordflow">if</span>(icat == 3 && iobj >= 5 && iobj <= nsource_per_cat+4)</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>             {</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                 cpl_table_set_double(catalogues[icat], <span class="stringliteral">"X_POS"</span>, iobj - 5 , x);</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                 cpl_table_set_double(catalogues[icat], <span class="stringliteral">"Y_POS"</span>, iobj - 5 , y);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>             }</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>             <span class="keywordflow">if</span>(icat == 4 && iobj <= nsource_per_cat-1)</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>             {</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                 cpl_table_set_double(catalogues[icat], <span class="stringliteral">"X_POS"</span>, iobj    , x);</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>                 cpl_table_set_double(catalogues[icat], <span class="stringliteral">"Y_POS"</span>, iobj    , y);</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>             }</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>             <span class="keywordflow">if</span>(icat >= 5 && iobj <= nsource_per_cat-1)</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>             {</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                 cpl_table_set_double(catalogues[icat], <span class="stringliteral">"X_POS"</span>, iobj    , x);</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>                 cpl_table_set_double(catalogues[icat], <span class="stringliteral">"Y_POS"</span>, iobj    , y);</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>             }</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>         }</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     }</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     <span class="comment">/* Match the catalogues */</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     matches = irplib_match_cats(catalogues, ncat, mincat_match, </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>                                 irplib_match_cats_match_condition);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     <span class="comment">/* Output the matches */</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     cpl_msg_warning(__func__,<span class="stringliteral">"Final matches:"</span>);</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     <span class="keywordflow">for</span>(imatch = 0; imatch < cpl_table_get_nrow(matches); ++imatch)</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     {</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>         <span class="keywordflow">for</span>(icat = 0; icat< ncat; ++icat)</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>         {</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>             printf(<span class="stringliteral">" %d "</span>,cpl_array_get_int</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>                    (cpl_table_get_array</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>                     (matches, <span class="stringliteral">"MATCHING_SETS"</span>,imatch),icat, NULL));</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>         }</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>         printf(<span class="stringliteral">"\n"</span>);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     }</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="comment">//cpl_test_leq(ra1 - 0.00, DBL_EPSILON);</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="comment">/* Free */</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <span class="keywordflow">for</span>(icat = 0; icat < ncat; icat++)</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>         cpl_table_delete(catalogues[icat]);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     cpl_free(catalogues);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     cpl_table_delete(matches);</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__match__cats_8c_source.html b/html/irplib__match__cats_8c_source.html
deleted file mode 100644
index a68f7e0..0000000
--- a/html/irplib__match__cats_8c_source.html
+++ /dev/null
@@ -1,245 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_match_cats.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_match_cats.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_match_cats.c,v 1.10 2009-12-18 10:44:48 cgarcia Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: cgarcia $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2009-12-18 10:44:48 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.10 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <cpl_table.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include "irplib_match_cats.h"</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#define FILENAME_SZBUF 1024</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/* Private functions</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> cpl_error_code irplib_match_cats_get_all_matching_pairs</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> (cpl_table ** catalogues,</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>  <span class="keywordtype">int</span>          ncats,</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>  cpl_table  * matching_sets,</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>  <span class="keywordtype">int</span> (*binary_match_condition)</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>    (cpl_table * catalogue1,</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>     cpl_table * catalogue2,</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>     <span class="keywordtype">int</span>         iobj1,</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>     <span class="keywordtype">int</span>         iobj2)  );</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> cpl_error_code irplib_match_cats_get_all_matches_cresc</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> (cpl_table ** catalogues,</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>  cpl_array  * cat_index_begin,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>  cpl_array  * cats_idx_set,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>  <span class="keywordtype">int</span>          mincat_match,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>  cpl_table * matching_sets);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> cpl_error_code irplib_match_cats_iterate_on_cat</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> (cpl_table ** catalogues,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>  cpl_array  * cats_idx_set,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>  <span class="keywordtype">int</span>          icat_iterate,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>  cpl_array  * valid_iobjs,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>  <span class="keywordtype">int</span>          mincat_match,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>  cpl_table  * matching_sets,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>  cpl_table  * less_minmatch_sets);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> cpl_error_code irplib_match_cats_filter_obj_to_iter</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> (cpl_array * cats_idx_set,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>  <span class="keywordtype">int</span>         order_begin,</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>  cpl_table * matches_set,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>  cpl_array * excluded_objs,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>  <span class="keywordtype">int</span>         itercat_nobj);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="keywordtype">int</span> irplib_match_cats_match_condition</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> (cpl_table ** catalogues,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>  <span class="keywordtype">int</span>       *  cats_idx_set_ptr,</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>  <span class="keywordtype">int</span>          ncats);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="keywordtype">int</span> irplib_match_count_nonmatched</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> (<span class="keywordtype">int</span> * cats_idx_set_ptr,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>  <span class="keywordtype">int</span>   ncats);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="keywordtype">int</span> nCombinations;</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="keywordtype">int</span> nFilter;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> cpl_table * <a class="code" href="group__irplib__cat.html#gaf3dbc2180a59e7187674707510205afe" title="Finds all the objects that appear at least in some of the catalogues.">irplib_match_cat_pairs</a></div>
-<div class="line"><a name="l00126"></a><span class="lineno"><a class="code" href="group__irplib__cat.html#gaf3dbc2180a59e7187674707510205afe">  126</a></span> (cpl_table ** catalogues,</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>  <span class="keywordtype">int</span>          ncats,</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>  <span class="keywordtype">int</span> (*binary_match_condition)</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>    (cpl_table * catalogue1,</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     cpl_table * catalogue2,</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     <span class="keywordtype">int</span>         iobj1,</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     <span class="keywordtype">int</span>         iobj2)  )</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> {</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     cpl_table *  matching_sets;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     <span class="comment">//Initialize the solution</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     matching_sets = cpl_table_new(0);</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     cpl_table_new_column_array(matching_sets, <span class="stringliteral">"MATCHING_SETS"</span>,</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>                                CPL_TYPE_INT, ncats);</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     irplib_match_cats_get_all_matching_pairs</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>         (catalogues, ncats, matching_sets, binary_match_condition);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     <span class="keywordflow">return</span> matching_sets;</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> }</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> cpl_error_code irplib_match_cats_get_all_matching_pairs</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> (cpl_table ** catalogues,</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>  <span class="keywordtype">int</span>          ncats,</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>  cpl_table  * matching_sets,</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>  <span class="keywordtype">int</span> (*binary_match_condition)</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>    (cpl_table * catalogue1,</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>     cpl_table * catalogue2,</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     <span class="keywordtype">int</span>         iobj1,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <span class="keywordtype">int</span>         iobj2)  )</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> {</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     <span class="keywordtype">int</span> icat1;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     <span class="keywordtype">int</span> icat2;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     nCombinations = 0;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     nFilter = 0;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     <span class="keywordflow">for</span>(icat1 = 0; icat1 < ncats ; ++icat1)</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>         <span class="keywordflow">for</span>(icat2 = icat1 + 1 ; icat2 < ncats ; ++icat2)</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>         {</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>             <span class="keywordtype">int</span> iobj1;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>             <span class="keywordtype">int</span> iobj2;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>             <span class="keywordtype">int</span> nobj1;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>             <span class="keywordtype">int</span> nobj2;</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>             </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>             nobj1 = cpl_table_get_nrow(catalogues[icat1]);</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>             nobj2 = cpl_table_get_nrow(catalogues[icat2]);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>             <span class="keywordflow">for</span>(iobj1 = 0; iobj1 < nobj1 ; ++iobj1)</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>                 <span class="keywordflow">for</span>(iobj2 = 0 ; iobj2 < nobj2 ; ++iobj2)</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>                 {</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>                     ++nCombinations;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>                     <span class="keywordflow">if</span>(binary_match_condition(catalogues[icat1],</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>                                               catalogues[icat2],</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>                                               iobj1, iobj2))</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>                     {</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>                         cpl_array  * cats_idx_set;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>                         <span class="keywordtype">int</span>          icat;</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>                         </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>                         ++nFilter;</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>                         cats_idx_set = cpl_array_new(ncats, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>                         <span class="keywordflow">for</span>(icat = 0; icat < ncats; ++icat)</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                         {</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                             <span class="keywordflow">if</span>(icat == icat1)</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                                 cpl_array_set_int(cats_idx_set, icat, iobj1);</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>                             <span class="keywordflow">else</span> <span class="keywordflow">if</span>(icat == icat2)</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>                                 cpl_array_set_int(cats_idx_set, icat, iobj2);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>                             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>                                 cpl_array_set_int(cats_idx_set, icat, -1);</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>                         }</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>                         </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>                         cpl_table_set_size(matching_sets,</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>                                            cpl_table_get_nrow(matching_sets)+1);</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>                         cpl_table_set_array(matching_sets,<span class="stringliteral">"MATCHING_SETS"</span>,</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>                                             cpl_table_get_nrow(matching_sets)-1,</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>                                             cats_idx_set);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>                         cpl_array_delete(cats_idx_set);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>                     }</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>                 }</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>         }</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> }</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__match__cats_8h_source.html b/html/irplib__match__cats_8h_source.html
deleted file mode 100644
index 3505b5f..0000000
--- a/html/irplib__match__cats_8h_source.html
+++ /dev/null
@@ -1,106 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_match_cats.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_match_cats.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_match_cats.h,v 1.5 2009-12-18 10:44:48 cgarcia Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: cgarcia $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2009-12-18 10:44:48 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_MATCH_CATS_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_MATCH_CATS_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> cpl_table * <a class="code" href="group__irplib__cat.html#gaf3dbc2180a59e7187674707510205afe" title="Finds all the objects that appear at least in some of the catalogues.">irplib_match_cat_pairs</a></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> (cpl_table ** catalogues,</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span>  <span class="keywordtype">int</span>          nCats,</div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span>  <span class="keywordtype">int</span> (*binary_match_condition)</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span>    (cpl_table * catalogue1,</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>     cpl_table * catalogue2,</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>     <span class="keywordtype">int</span>         iobj1,</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>     <span class="keywordtype">int</span>         iobj2)  );</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__mkmaster_8c_source.html b/html/irplib__mkmaster_8c_source.html
deleted file mode 100644
index 6c8ea78..0000000
--- a/html/irplib__mkmaster_8c_source.html
+++ /dev/null
@@ -1,529 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_mkmaster.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_mkmaster.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_mkmaster.c,v 1.6 2013-02-27 16:00:51 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-02-27 16:00:51 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.6 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include "irplib_mkmaster.h"</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keyword">static</span> cpl_vector * </div>
-<div class="line"><a name="l00070"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#ga60d4d26793b0162783e4f39e7d180e9b">   70</a></span> <a class="code" href="group__irplib__calib.html#ga60d4d26793b0162783e4f39e7d180e9b" title="find out the character string associated to the DIT keyword in a propertylist">irplib_imagelist_get_clean_mean_levels</a>(<span class="keyword">const</span> cpl_imagelist* iml, </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>                                        <span class="keyword">const</span> <span class="keywordtype">double</span> kappa, </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>                                        <span class="keyword">const</span> <span class="keywordtype">int</span> nclip,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>                                        <span class="keyword">const</span> <span class="keywordtype">double</span> tolerance)</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> {</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>    <span class="keyword">const</span> cpl_image* img=NULL;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>    <span class="keywordtype">int</span> size=0;</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>    <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>    cpl_vector* levels=NULL;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>    <span class="keywordtype">double</span>* pval=NULL;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>    <span class="keywordtype">double</span> mean=0;</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>    <span class="keywordtype">double</span> stdev=0;</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>    cpl_error_ensure(iml != NULL, CPL_ERROR_NULL_INPUT, <span class="keywordflow">return</span>(levels),</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>                     <span class="stringliteral">"Null input image list"</span>);</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>    cpl_error_ensure(kappa >= 0, CPL_ERROR_ILLEGAL_INPUT, <span class="keywordflow">return</span>(levels), </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>                     <span class="stringliteral">"Must be kappa>0"</span>);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>    size=cpl_imagelist_get_size(iml);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>    levels=cpl_vector_new(size);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>    pval=cpl_vector_get_data(levels);</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>    <span class="keywordflow">for</span>(i=0;i<size;i++) {</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>       img=cpl_imagelist_get_const(iml,i);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>       irplib_ksigma_clip(img,1,1,</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>                          cpl_image_get_size_x(img),</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                          cpl_image_get_size_y(img),</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                          nclip,kappa,tolerance,&mean,&stdev);</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>       cpl_msg_info(cpl_func,<span class="stringliteral">"Ima %d mean level: %g"</span>,i+1,mean);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>       pval[i]=mean;</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>    }</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>    <span class="keywordflow">return</span> levels;</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> }</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#gaaf8bb5c15a5e72ea67627d5220f9e01b">  118</a></span> <a class="code" href="group__irplib__calib.html#gaaf8bb5c15a5e72ea67627d5220f9e01b" title="Subtract from input imagelist values specified in input vector.">irplib_imagelist_subtract_values</a>(cpl_imagelist** iml, cpl_vector* values)</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> {</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>    cpl_image* img=NULL;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>    <span class="keywordtype">int</span> size=0;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>    <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>    <span class="keywordtype">double</span>* pval=NULL;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>   </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>    size=cpl_imagelist_get_size(*iml);</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>    pval=cpl_vector_get_data(values);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>    <span class="keywordflow">for</span>(i=0;i<size;i++) {</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>       img=cpl_imagelist_get(*iml,i);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>       cpl_image_subtract_scalar(img,pval[i]);</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>       cpl_imagelist_set(*iml,img,i);</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>    }</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>    <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> }</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="keyword">static</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#gacf0c80a14e58f7529e9589b4c0c7ace8">  153</a></span> <a class="code" href="group__irplib__calib.html#gacf0c80a14e58f7529e9589b4c0c7ace8" title="Perform kappa-sigma clip.">irplib_vector_ksigma</a>(cpl_vector *values,</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>                      <span class="keyword">const</span> <span class="keywordtype">double</span> klow, <span class="keyword">const</span> <span class="keywordtype">double</span> khigh, <span class="keywordtype">int</span> kiter)</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> {</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>    cpl_vector *accepted;</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>    <span class="keywordtype">double</span>  mean  = 0.0;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>    <span class="keywordtype">double</span>  sigma = 0.0;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>    <span class="keywordtype">double</span> *data  = cpl_vector_get_data(values);</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>    <span class="keywordtype">int</span>     n     = cpl_vector_get_size(values);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>    <span class="keywordtype">int</span>     ngood = n;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>    <span class="keywordtype">int</span>     count = 0;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>    <span class="keywordtype">int</span>     i;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>  </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment">    * At first iteration the mean is taken as the median, and the</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment">    * standard deviation relative to this value is computed.</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>    mean = cpl_vector_get_median(values);</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>    <span class="keywordflow">for</span> (i = 0; i < n; i++) {</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>       sigma += (mean - data[i]) * (mean - data[i]);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>    }</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>    sigma = sqrt(sigma / (n - 1));</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>    <span class="keywordflow">while</span> (kiter) {</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>       count = 0;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>       <span class="keywordflow">for</span> (i = 0; i < ngood; i++) {</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>          <span class="keywordflow">if</span> (data[i]-mean < khigh*sigma && mean-data[i] < klow*sigma) {</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>             data[count] = data[i];</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>             ++count;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>          }</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>       }</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>       <span class="keywordflow">if</span> (count == 0) <span class="comment">// This cannot happen at first iteration.</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>          <span class="keywordflow">break</span>;      <span class="comment">// So we can break: we have already computed a mean.</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>       <span class="comment">/*</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">       * The mean must be computed even if no element was rejected</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment">       * (count == ngood), because at first iteration median instead</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment">       * of mean was computed.</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment">       */</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>       accepted = cpl_vector_wrap(count, data);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>       mean = cpl_vector_get_mean(accepted);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>       <span class="keywordflow">if</span>(count>1) {</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>          sigma = cpl_vector_get_stdev(accepted);</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>       }</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>       cpl_vector_unwrap(accepted);</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>       <span class="keywordflow">if</span> (count == ngood) {</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>          <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>       }</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>       ngood = count;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>       --kiter;</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>    }</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>    <span class="keywordflow">return</span> mean;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> }</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l00232"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#ga28480f72b7f607b47769df0a8ada7333">  232</a></span> <a class="code" href="group__irplib__calib.html#ga28480f72b7f607b47769df0a8ada7333" title="Stack images using k-sigma clipping.">irplib_imagelist_ksigma_stack</a>(<span class="keyword">const</span> cpl_imagelist *imlist, </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>                               <span class="keywordtype">double</span> klow, <span class="keywordtype">double</span> khigh, <span class="keywordtype">int</span> kiter)</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> {</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>    <span class="keywordtype">int</span>         ni, nx, ny, npix;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>    cpl_image  *out_ima=NULL;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>    cpl_imagelist  *loc_iml=NULL;</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>    <span class="keywordtype">double</span>      *pout_ima=NULL;</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>    cpl_image  *image=NULL;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>    <span class="keyword">const</span> <span class="keywordtype">double</span>     **data=NULL;</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>    <span class="keywordtype">double</span>     *med=NULL;</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>    cpl_vector *time_line=NULL;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>   </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>    <span class="keywordtype">double</span>     *ptime_line=NULL;</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>    <span class="keywordtype">int</span>         i, j;</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>    <span class="keywordtype">double</span> mean_of_medians=0;</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>    cpl_error_ensure(imlist != NULL, CPL_ERROR_NULL_INPUT, <span class="keywordflow">return</span>(out_ima),</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>                     <span class="stringliteral">"Null input image list"</span>);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>    ni         = cpl_imagelist_get_size(imlist);</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>    loc_iml        = cpl_imagelist_duplicate(imlist);</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>    image      = cpl_imagelist_get(loc_iml, 0);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>    nx         = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>    ny         = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>    npix       = nx * ny;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>    out_ima    = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>    pout_ima   = cpl_image_get_data_double(out_ima);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> </div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>    time_line  = cpl_vector_new(ni);</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>    </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>    ptime_line = cpl_vector_get_data(time_line);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>    data = cpl_calloc(<span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *), ni);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>    med  = cpl_calloc(<span class="keyword">sizeof</span>(<span class="keywordtype">double</span>), ni);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>    <span class="keywordflow">for</span> (i = 0; i < ni; i++) {</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>       image = cpl_imagelist_get(loc_iml, i);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>       med[i]=cpl_image_get_median(image);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>       cpl_image_subtract_scalar(image,med[i]);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>       data[i] = cpl_image_get_data_double(image);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>       mean_of_medians+=med[i];</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>    }</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>    mean_of_medians/=ni;</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>    <span class="keywordflow">for</span> (i = 0; i < npix; i++) {</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>       <span class="keywordflow">for</span> (j = 0; j < ni; j++) {</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>          ptime_line[j] = data[j][i];</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>       }</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>       pout_ima[i] = <a class="code" href="group__irplib__calib.html#gacf0c80a14e58f7529e9589b4c0c7ace8" title="Perform kappa-sigma clip.">irplib_vector_ksigma</a>(time_line, klow, khigh, kiter); </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>    }</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>  </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>    cpl_image_add_scalar(out_ima,mean_of_medians);</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>  </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>    cpl_free(data);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>    cpl_free(med);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>    cpl_vector_delete(time_line);</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>    cpl_imagelist_delete(loc_iml);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>    <span class="keywordflow">return</span> out_ima;</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> } </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> cpl_image*</div>
-<div class="line"><a name="l00313"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#gae11ebd9b30a6c781265ba2e5af87722b">  313</a></span> <a class="code" href="group__irplib__calib.html#gae11ebd9b30a6c781265ba2e5af87722b" title="Computes master frame by clean stack mean of the input imagelist.">irplib_mkmaster_mean</a>(cpl_imagelist* images,<span class="keyword">const</span> <span class="keywordtype">double</span> kappa, <span class="keyword">const</span> <spa [...]
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> {</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>    cpl_image* master=NULL;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>    cpl_vector* levels=NULL;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>    <span class="keywordtype">double</span> mean=0;</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>    cpl_imagelist* iml=NULL;</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>    cpl_msg_info(cpl_func,<span class="stringliteral">"method mean"</span>);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>    iml=cpl_imagelist_duplicate(images);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>    levels=<a class="code" href="group__irplib__calib.html#ga60d4d26793b0162783e4f39e7d180e9b" title="find out the character string associated to the DIT keyword in a propertylist">irplib_imagelist_get_clean_mean_levels</a>(iml,kappa,nclip,tolerance);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>    mean=cpl_vector_get_mean(levels);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>    cpl_msg_info(cpl_func,<span class="stringliteral">"Master mean level: %g"</span>,mean);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>    <a class="code" href="group__irplib__calib.html#gaaf8bb5c15a5e72ea67627d5220f9e01b" title="Subtract from input imagelist values specified in input vector.">irplib_imagelist_subtract_values</a>(&iml,levels);</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>    master = <a class="code" href="group__irplib__calib.html#ga28480f72b7f607b47769df0a8ada7333" title="Stack images using k-sigma clipping.">irplib_imagelist_ksigma_stack</a>(iml,klow,khigh,niter);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>    cpl_image_add_scalar(master,mean);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>    cpl_vector_delete(levels);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>    cpl_imagelist_delete(iml);</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>    <span class="keywordflow">return</span> master;</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> }</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> cpl_image* </div>
-<div class="line"><a name="l00352"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#ga31157521720077a762a43644a503bbf2">  352</a></span> <a class="code" href="group__irplib__calib.html#ga31157521720077a762a43644a503bbf2" title="Computes master frame by clean stack median of the input imagelist.">irplib_mkmaster_median</a>(cpl_imagelist* images,<span class="keyword">const</span> <span class="keywordtype">double</span> kappa, <span class="keyword">const</span>  [...]
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> {</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>    cpl_image* master=NULL;</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>    cpl_vector* levels=NULL;</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>    <span class="keywordtype">double</span> mean=0;</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>    cpl_imagelist* iml=NULL;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>    cpl_msg_info(cpl_func,<span class="stringliteral">"method median"</span>);</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>    iml=cpl_imagelist_duplicate(images);</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>    levels=<a class="code" href="group__irplib__calib.html#ga60d4d26793b0162783e4f39e7d180e9b" title="find out the character string associated to the DIT keyword in a propertylist">irplib_imagelist_get_clean_mean_levels</a>(iml,kappa,nclip,tolerance);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>    mean=cpl_vector_get_mean(levels);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>    cpl_msg_info(cpl_func,<span class="stringliteral">"Master mean level: %g"</span>,mean);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>    <a class="code" href="group__irplib__calib.html#gaaf8bb5c15a5e72ea67627d5220f9e01b" title="Subtract from input imagelist values specified in input vector.">irplib_imagelist_subtract_values</a>(&iml,levels);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>        </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>    master = cpl_imagelist_collapse_median_create(iml);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>    cpl_image_add_scalar(master,mean);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>    cpl_vector_delete(levels);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>    cpl_imagelist_delete(iml);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>    <span class="keywordflow">return</span> master;</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> }</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> <span class="comment">/* Work in progress */</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> irplib_mkmaster_dark_qc(<span class="keyword">const</span> cpl_imagelist* raw_images,</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     cpl_imagelist* preproc_images,</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     <span class="keyword">const</span> cpl_parameterlist* parameters,</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>      <span class="keyword">const</span> <span class="keywordtype">int</span> pr_num_x, <span class="keyword">const</span> <span class="keywordtype">int</span> pr_num_y,</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> pr_box_sx, <span class="keyword">const</span> <span class="keywordtype">int</span> pr_box_sy, <span class="keyword">const</span> <span class="keywordtype">char</span>* recipe_id,</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     cpl_table* qclog) {</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>    cpl_ensure_code(qclog !=NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>    cpl_ensure_code(recipe_id !=NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>    cpl_ensure_code(parameters !=NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> </div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>   <span class="keywordtype">int</span> i = 0;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>   cpl_image* current_dark = 0;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>   <span class="keywordflow">if</span> (pr_num_x != 0 && pr_num_y != 0 && pr_box_sx != 0 && pr_box_sy != 0) {</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_imagelist_get_size(raw_images); i++) {</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>       current_dark = cpl_image_duplicate(</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>           cpl_imagelist_get_const(preproc_images, i));</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>       cpl_msg_info(cpl_func, <span class="stringliteral">"Calculating QC parameters on raw dark frame %d"</span>,</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>           i);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>       <span class="comment">/* Here To be defined more general way to qc-log */</span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>        <span class="comment">/* UVES specific stuff: may be this function should not be put in irplib</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="comment">      irplib_mdark_region_qc(current_dark, parameters, raw_images, recipe_id,qclog);</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="comment">       */</span>    </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>       <span class="comment">/* FIXME: still safe if irplib_mdark_region_qc is commented in? */</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>       cpl_image_delete(current_dark);</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     }</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>   }</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>   <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> }</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#ga6904da04154755c76c191447714297a3">  423</a></span> <a class="code" href="group__irplib__calib.html#ga6904da04154755c76c191447714297a3" title="Find out the exposure time in seconds.">irplib_head_get_exptime</a>(<span class="keyword">const</span> cpl_propertylist * plist) {</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>   <span class="keywordtype">double</span> result = 0; <span class="comment">/* Conversion from electrons to ADUs */</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> </div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>   result=cpl_propertylist_get_double(plist, <span class="stringliteral">"EXPTIME"</span>);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>   cpl_ensure_code(result >= 0, CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> </div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>   <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> }</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00442"></a><span class="lineno"><a class="code" href="group__irplib__calib.html#ga06aba7b4cf8b84fb21acef626c8c7196">  442</a></span> <a class="code" href="group__irplib__calib.html#ga06aba7b4cf8b84fb21acef626c8c7196" title="Write the exposure time.">irplib_head_set_exptime</a>(cpl_propertylist *plist, <span class="keywordtype">double</span> exptime)</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> {</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>    cpl_propertylist_update_double(plist, <span class="stringliteral">"EXPTIME"</span>, exptime);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>    cpl_propertylist_set_comment(plist, <span class="stringliteral">"EXPTIME"</span>, <span class="stringliteral">"Total integration time"</span>);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> }</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> <span class="keyword">static</span> cpl_imagelist*</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> irplib_mkmaster_dark_fill_imagelist(<span class="keyword">const</span> cpl_imagelist* raw_images,</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     cpl_propertylist** raw_headers, <span class="keyword">const</span> cpl_image* master_bias,</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     <span class="keywordtype">double</span>* mean_exptime) {</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>   <span class="comment">/* First process each input image and store the results in a</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> <span class="comment">   new image list */</span></div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>   cpl_imagelist* preproc_images = NULL;</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>   <span class="keywordtype">int</span> i = 0;</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>   cpl_image* current_dark = NULL;</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>   <span class="keywordtype">double</span> min_exptime = 0;</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>   <span class="keywordtype">double</span> max_exptime = 0;</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>   preproc_images = cpl_imagelist_new();</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>   <span class="keywordflow">for</span> (i = 0; i < cpl_imagelist_get_size(raw_images); i++) {</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     <span class="keywordtype">double</span> exposure_time = 0.0;</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     <span class="keyword">const</span> cpl_propertylist *current_header;</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>     current_dark = cpl_image_duplicate(cpl_imagelist_get_const(raw_images, i));</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     current_header = raw_headers[i];</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> </div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     <span class="comment">/* Subtract master bias */</span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     <span class="keywordflow">if</span> (master_bias != NULL) {</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>       cpl_msg_info(cpl_func, <span class="stringliteral">"Subtracting master bias"</span>);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>       cpl_image_subtract(current_dark, master_bias);</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>       cpl_msg_info(cpl_func, <span class="stringliteral">"Skipping bias subtraction"</span>);</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     }</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     exposure_time = <a class="code" href="group__irplib__calib.html#ga6904da04154755c76c191447714297a3" title="Find out the exposure time in seconds.">irplib_head_get_exptime</a>(current_header);</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     <span class="comment">/* Initialize/update min/max exposure time*/</span></div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     <span class="keywordflow">if</span> (i == 0 || exposure_time < min_exptime) {</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>       min_exptime = exposure_time;</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     }</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     <span class="keywordflow">if</span> (i == 0 || exposure_time > max_exptime) {</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>       max_exptime = exposure_time;</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     }</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     <span class="comment">/* Do not normalize to unit exposure time */</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     <span class="comment">/*        If this is uncommented, then remember to also calculate the</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> <span class="comment">     correct master dark exposure time below.</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="comment">     irplib_msg("Normalizing from %f s to unit exposure time", exposure_time);</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> <span class="comment">     check( cpl_image_divide_scalar(current_dark, exposure_time),</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> <span class="comment">     "Error normalizing dark frame");   */</span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> </div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     <span class="comment">/* Append to imagelist */</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     cpl_imagelist_set(preproc_images, current_dark, i);</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     <span class="comment">/* Don't deallocate the image. It will be deallocated when</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="comment">     the image list is deallocated */</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     current_dark = NULL;</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>   }</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>   <span class="comment">/* Check exposure times */</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>    cpl_msg_info(cpl_func,</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>        <span class="stringliteral">"Exposure times range from %e s to %e s (%e %% variation)"</span>, min_exptime,</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>        max_exptime, 100 * (max_exptime - min_exptime) / min_exptime);</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> </div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>    <span class="keywordflow">if</span> ((max_exptime - min_exptime) / min_exptime > .001) {</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>      cpl_msg_warning(cpl_func, <span class="stringliteral">"Exposure times differ by %e %%"</span>,</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>          100 * (max_exptime - min_exptime) / min_exptime);</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>    }</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>    <span class="comment">/* compute correct exposure time */</span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>    *mean_exptime=0.5 * (max_exptime + min_exptime);</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>   <span class="keywordflow">return</span> preproc_images;</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> }</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> </div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> </div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> cpl_image *</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> irplib_mdark_process_chip(<span class="keyword">const</span> cpl_imagelist *raw_images,</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     cpl_propertylist **raw_headers, <span class="keyword">const</span> cpl_image *master_bias,</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     cpl_propertylist *mdark_header, <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* recipe_id, cpl_table* qclog, <span class="keyword">const</span> <span class="keywordtype">int</span> do_qc,</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* STACK_METHOD, <span class="keyword">const</span> <span class="keywordtype">double</span> STACK_KLOW, <span class="keyword">const</span> <span class="keywordtype">double</span> STACK_KHIGH,</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> STACK_NITER,</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> pr_num_x, <span class="keyword">const</span> <span class="keywordtype">int</span> pr_num_y,</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> pr_box_sx, <span class="keyword">const</span> <span class="keywordtype">int</span> pr_box_sy) {</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>   cpl_image *master_dark = NULL; <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>   cpl_image *current_dark = NULL;</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>   cpl_imagelist *preproc_images = NULL;</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>   <span class="keywordtype">double</span> mean_exptime = 0;</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>   <span class="comment">/* First process each input image and store the results in a</span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> <span class="comment">   new image list */</span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>   preproc_images = irplib_mkmaster_dark_fill_imagelist(raw_images, raw_headers,</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>       master_bias, &mean_exptime);</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>   <span class="keywordflow">if</span> (do_qc) {</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>      <span class="comment">/* Here we should compute QC but a a better way to log it is TBD  */</span></div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     irplib_mkmaster_dark_qc(raw_images, preproc_images, parameters, pr_num_x,</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>         pr_num_y, pr_box_sx, pr_box_sy, recipe_id, qclog);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>      </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>   }</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>   <span class="comment">/* Get median stack of input darks */</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>   <span class="keywordflow">if</span> (strcmp(STACK_METHOD, <span class="stringliteral">"MEDIAN"</span>) == 0) {</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Calculating stack median"</span>);</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     master_dark = cpl_imagelist_collapse_median_create(preproc_images);</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Calculating stack mean"</span>);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>     master_dark = <a class="code" href="group__irplib__calib.html#ga28480f72b7f607b47769df0a8ada7333" title="Stack images using k-sigma clipping.">irplib_imagelist_ksigma_stack</a>(preproc_images, STACK_KLOW,</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>         STACK_KHIGH, STACK_NITER);</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>   }</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>   <a class="code" href="group__irplib__calib.html#ga06aba7b4cf8b84fb21acef626c8c7196" title="Write the exposure time.">irplib_head_set_exptime</a>(mdark_header, mean_exptime );</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>   cpl_image_delete(current_dark);</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>   cpl_imagelist_delete(preproc_images);</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>   <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     cpl_image_delete(master_dark);</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>   }</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> </div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>   <span class="keywordflow">return</span> master_dark;</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> }</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__mkmaster_8h_source.html b/html/irplib__mkmaster_8h_source.html
deleted file mode 100644
index e792b3d..0000000
--- a/html/irplib__mkmaster_8h_source.html
+++ /dev/null
@@ -1,113 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_mkmaster.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_mkmaster.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_mkmaster.h,v 1.3 2011-11-02 13:17:25 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2011-11-02 13:17:25 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_MKMASTER_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_MKMASTER_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <irplib_ksigma_clip.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> cpl_image*</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <a class="code" href="group__irplib__calib.html#gae11ebd9b30a6c781265ba2e5af87722b" title="Computes master frame by clean stack mean of the input imagelist.">irplib_mkmaster_mean</a>(cpl_imagelist* images,<span class="keyword">const</span> <span class="keywordtype">double</span> kappa, <span class="keyword">const</span> <span class="keywordtype">int</span> nclip, <span class="keyword">const</span> <span class=" [...]
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> cpl_image* </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <a class="code" href="group__irplib__calib.html#ga31157521720077a762a43644a503bbf2" title="Computes master frame by clean stack median of the input imagelist.">irplib_mkmaster_median</a>(cpl_imagelist* images,<span class="keyword">const</span> <span class="keywordtype">double</span> kappa, <span class="keyword">const</span> <span class="keywordtype">int</span> nclip, <span class="keyword">const</span> <span cla [...]
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> cpl_image *</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> irplib_mdark_process_chip(<span class="keyword">const</span> cpl_imagelist *raw_images,</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>     cpl_propertylist **raw_headers, <span class="keyword">const</span> cpl_image *master_bias,</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>     cpl_propertylist *mdark_header, <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* recipe_id, cpl_table* qclog, <span class="keyword">const</span> <span class="keywordtype">int</span> do_qc,</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* STACK_METHOD, <span class="keyword">const</span> <span class="keywordtype">double</span> STACK_KLOW, <span class="keyword">const</span> <span class="keywordtype">double</span> STACK_KHIGH,</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> STACK_NITER,</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> pr_num_x, <span class="keyword">const</span> <span class="keywordtype">int</span> pr_num_y,</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> pr_box_sx, <span class="keyword">const</span> <span class="keywordtype">int</span> pr_box_sy);</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__oddeven_8c_source.html b/html/irplib__oddeven_8c_source.html
deleted file mode 100644
index de91adc..0000000
--- a/html/irplib__oddeven_8c_source.html
+++ /dev/null
@@ -1,357 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_oddeven.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_oddeven.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_oddeven.c,v 1.9 2012-01-12 11:50:41 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2012-01-12 11:50:41 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.9 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include "irplib_oddeven.h"</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="keyword">static</span> cpl_imagelist * irplib_oddeven_cube_conv_xy_rtheta(cpl_imagelist *) ;</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="keyword">static</span> cpl_imagelist * irplib_oddeven_cube_conv_rtheta_xy(cpl_imagelist *) ;</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>  </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="group__irplib__oddeven.html#gade0423dfae726cc1ffec66a24e376505">   65</a></span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__oddeven.html#gade0423dfae726cc1ffec66a24e376505" title="Estimate the odd/even rate in an image quadrant.">irplib_oddeven_monitor</a>(</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>         <span class="keyword">const</span> cpl_image     *   in,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>         <span class="keywordtype">int</span>                     iquad,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>         <span class="keywordtype">double</span>              *   r_even) </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> {</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     cpl_image       *   extracted ;        </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     cpl_image       *   labels ;        </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     <span class="keywordtype">int</span>             *   plabels ;</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     <span class="keywordtype">int</span>                 llx, lly, urx, ury ;</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     <span class="keywordtype">int</span>                 nx, ny ;</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     <span class="keywordtype">double</span>              f_even, f_tot ;</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>     cpl_apertures   *   aperts ;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     <span class="keywordtype">int</span>                 i, j ;</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     <span class="keywordflow">if</span> (in == NULL || r_even == NULL) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     nx = cpl_image_get_size_x(in) ;</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>     ny = cpl_image_get_size_y(in) ;</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     <span class="keywordflow">switch</span> (iquad){</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>         <span class="keywordflow">case</span> 1:</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>             llx = 1 ; lly = 1 ; urx = nx/2 ; ury = ny/2 ; break ;</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>         <span class="keywordflow">case</span> 2:</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>             llx = (nx/2)+1 ; lly = 1 ; urx = nx ; ury = ny/2 ; break ;</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>         <span class="keywordflow">case</span> 3:</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>             llx = 1 ; lly = (ny/2)+1 ; urx = nx/2 ; ury = ny ; break ;</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>         <span class="keywordflow">case</span> 4:</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>             llx = (nx/2)+1 ; lly = (ny/2)+1 ; urx = nx ; ury = ny ; break ;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>         <span class="keywordflow">case</span> 0:</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>             llx = 1 ; lly = 1 ; urx = nx ; ury = ny ; break ;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Unsupported mode"</span>) ;</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>             *r_even = 0.0 ;</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>             <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>     }</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>    </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     <span class="comment">/* Extract quadrant */</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     <span class="keywordflow">if</span> ((extracted = cpl_image_extract(in, llx, lly, urx, ury)) == NULL) {</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot extract quadrant"</span>) ;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>         *r_even = 0.0 ;</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     }</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     nx = cpl_image_get_size_x(extracted) ;</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     ny = cpl_image_get_size_y(extracted) ;</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>             </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     <span class="comment">/* Get f_tot */</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     f_tot = cpl_image_get_median(extracted) ;</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>     <span class="keywordflow">if</span> (fabs(f_tot) < 1e-6) {</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>         cpl_msg_warning(cpl_func, <span class="stringliteral">"Quadrant median is 0.0"</span>) ;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>         cpl_image_delete(extracted) ;</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>         *r_even = 0.0 ;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     }</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     <span class="comment">/* Create the label image to define the even columns */</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     labels = cpl_image_new(nx, ny, CPL_TYPE_INT) ;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     plabels = cpl_image_get_data_int(labels) ;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     <span class="keywordflow">for</span> (i=0 ; i<nx ; i++) {</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>         <span class="keywordflow">if</span> (i % 2) <span class="keywordflow">for</span> (j=0 ; j<ny ; j++) plabels[i+j*nx] = 0 ;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>         <span class="keywordflow">else</span> <span class="keywordflow">for</span> (j=0 ; j<ny ; j++) plabels[i+j*nx] = 1 ;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     }</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     <span class="comment">/* Get the median of even columns */</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     <span class="keywordflow">if</span> ((aperts = cpl_apertures_new_from_image(extracted, labels)) == NULL) {</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot compute the even columns median"</span>) ;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>         cpl_image_delete(extracted) ;</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>         cpl_image_delete(labels) ;</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>         *r_even = 0.0 ;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     }</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     cpl_image_delete(extracted) ;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     cpl_image_delete(labels) ;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     f_even = cpl_apertures_get_median(aperts, 1) ;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     cpl_apertures_delete(aperts) ;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="comment">/* Compute the even rate and return */</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     *r_even = f_even / f_tot ;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> }</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> </div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno"><a class="code" href="group__irplib__oddeven.html#ga7f7dafc1436a0aa2617048e1ada84e95">  152</a></span> cpl_image * <a class="code" href="group__irplib__oddeven.html#ga7f7dafc1436a0aa2617048e1ada84e95" title="Correct the odd/even in an image.">irplib_oddeven_correct</a>(<span class="keyword">const</span> cpl_image * in)</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> {</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     cpl_image       *   in_real ;</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     cpl_image       *   in_imag ;</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     cpl_imagelist   *   freq_i ;</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     cpl_imagelist   *   freq_i_amp ;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     cpl_image       *   cur_im ;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <span class="keywordtype">double</span>          *   pcur_im ;</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     cpl_image       *   cleaned ;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keywordtype">int</span>                 nx ;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     cpl_vector      *   hf_med ;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     <span class="keywordflow">if</span> (in==NULL) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     nx = cpl_image_get_size_x(in) ;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     <span class="comment">/* Local copy of the input image in DOUBLE */</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     in_real = cpl_image_cast(in, CPL_TYPE_DOUBLE) ;</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     in_imag = cpl_image_duplicate(in_real) ;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     cpl_image_multiply_scalar(in_imag, 0.0) ;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     <span class="comment">/* Apply FFT to input image */</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     cpl_image_fft(in_real, in_imag, CPL_FFT_DEFAULT) ;</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     <span class="comment">/* Put the result in an image list */</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     freq_i = cpl_imagelist_new() ;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     cpl_imagelist_set(freq_i, in_real, 0) ;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     cpl_imagelist_set(freq_i, in_imag, 1) ;</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <span class="comment">/* Convert to amplitude/phase */</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     freq_i_amp = irplib_oddeven_cube_conv_xy_rtheta(freq_i);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     cpl_imagelist_delete(freq_i) ;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     <span class="comment">/* Correct the odd-even frequency */</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     cur_im = cpl_imagelist_get(freq_i_amp, 0) ;</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>     pcur_im = cpl_image_get_data_double(cur_im) ;</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     <span class="comment">/* Odd-even frequency will be replaced by </span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">       the median of the 5 values around */</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     hf_med = cpl_vector_new(5); </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     cpl_vector_set(hf_med, 0, pcur_im[nx/2 + 1]); </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     cpl_vector_set(hf_med, 1, pcur_im[nx/2 + 2]);</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     cpl_vector_set(hf_med, 2, pcur_im[nx/2 + 3]);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     cpl_vector_set(hf_med, 3, pcur_im[nx/2    ]);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     cpl_vector_set(hf_med, 4, pcur_im[nx/2  -1]);</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     pcur_im[nx / 2 + 1] = cpl_vector_get_median(hf_med);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     cpl_vector_delete(hf_med);</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     <span class="comment">/* Convert to X/Y */</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     freq_i = irplib_oddeven_cube_conv_rtheta_xy(freq_i_amp) ;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     cpl_imagelist_delete(freq_i_amp) ;</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     <span class="comment">/* FFT back to image space */</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     cpl_image_fft(cpl_imagelist_get(freq_i, 0), cpl_imagelist_get(freq_i, 1), </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>             CPL_FFT_INVERSE) ;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     cleaned = cpl_image_cast(cpl_imagelist_get(freq_i, 0), CPL_TYPE_FLOAT) ;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     cpl_imagelist_delete(freq_i) ;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     <span class="keywordflow">return</span> cleaned ;</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> }</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="keyword">static</span> cpl_imagelist * irplib_oddeven_cube_conv_xy_rtheta(</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>         cpl_imagelist   *   cube_in)</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> {</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     cpl_imagelist       *   cube_out ;</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     <span class="keywordtype">double</span>                  re, im ;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     <span class="keywordtype">double</span>                  mod, phase ;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     <span class="keywordtype">int</span>                     nx, ny, np ;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     cpl_image           *   tmp_im ;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     <span class="keywordtype">double</span>              *   pim1 ;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <span class="keywordtype">double</span>              *   pim2 ;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="keywordtype">double</span>              *   pim3 ;</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <span class="keywordtype">double</span>              *   pim4 ;</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <span class="keywordtype">int</span>                     i, j ;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="comment">/* Error handling : test entries    */</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <span class="keywordflow">if</span> (cube_in == NULL) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     np = cpl_imagelist_get_size(cube_in) ;</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     <span class="keywordflow">if</span> (np != 2) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> </div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     tmp_im = cpl_imagelist_get(cube_in, 0) ;</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     pim1 = cpl_image_get_data_double(tmp_im) ;</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     nx = cpl_image_get_size_x(tmp_im) ;</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     ny = cpl_image_get_size_y(tmp_im) ;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     tmp_im = cpl_imagelist_get(cube_in, 1) ;</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     pim2 = cpl_image_get_data_double(tmp_im) ;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <span class="comment">/* Allocate cube_out */</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     cube_out = cpl_imagelist_duplicate(cube_in) ;</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     tmp_im = cpl_imagelist_get(cube_out, 0) ;</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     pim3 = cpl_image_get_data_double(tmp_im) ;</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     tmp_im = cpl_imagelist_get(cube_out, 1) ;</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     pim4 = cpl_image_get_data_double(tmp_im) ;</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     <span class="comment">/* Convert */</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     <span class="keywordflow">for</span> (j=0 ; j<ny ; j++) {</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>         <span class="keywordflow">for</span> (i=0 ; i<nx ; i++) {</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>             re = (double)pim1[i+j*nx] ;</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>             im = (double)pim2[i+j*nx] ;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>             mod = (double)(sqrt(re*re + im*im)) ;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>             <span class="keywordflow">if</span> (re != 0.0)</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                 phase = (double)atan2(im, re) ;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>             <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>                 phase = 0.0 ;</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>             pim3[i+j*nx] = mod ; </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>             pim4[i+j*nx] = phase ; </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>         }</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     }</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     <span class="keywordflow">return</span> cube_out ;</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> }</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="keyword">static</span> cpl_imagelist * irplib_oddeven_cube_conv_rtheta_xy(</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>         cpl_imagelist   *   cube_in)</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> {</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     cpl_imagelist       *   cube_out ;</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     <span class="keywordtype">double</span>                  re, im ;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <span class="keywordtype">double</span>                  mod, phase ;</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     <span class="keywordtype">int</span>                     nx, ny, np ;</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     cpl_image           *   tmp_im ;</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="keywordtype">double</span>              *   pim1 ;</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <span class="keywordtype">double</span>              *   pim2 ;</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <span class="keywordtype">double</span>              *   pim3 ;</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="keywordtype">double</span>              *   pim4 ;</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <span class="keywordtype">int</span>                     i, j ;</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <span class="comment">/* Error handling : test entries    */</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     <span class="keywordflow">if</span> (cube_in == NULL) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     np = cpl_imagelist_get_size(cube_in) ;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     <span class="keywordflow">if</span> (np != 2) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     tmp_im = cpl_imagelist_get(cube_in, 0) ;</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     pim1 = cpl_image_get_data_double(tmp_im) ;</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     nx = cpl_image_get_size_x(tmp_im) ;</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     ny = cpl_image_get_size_y(tmp_im) ;</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     tmp_im = cpl_imagelist_get(cube_in, 1) ;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     pim2 = cpl_image_get_data_double(tmp_im) ;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     <span class="comment">/* Allocate cube_out */</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     cube_out = cpl_imagelist_duplicate(cube_in) ;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     tmp_im = cpl_imagelist_get(cube_out, 0) ;</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     pim3 = cpl_image_get_data_double(tmp_im) ;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     tmp_im = cpl_imagelist_get(cube_out, 1) ;</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     pim4 = cpl_image_get_data_double(tmp_im) ;</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     <span class="comment">/* Convert */</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     <span class="keywordflow">for</span> (j=0 ; j<ny ; j++) {</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>         <span class="keywordflow">for</span> (i=0 ; i<nx ; i++) {</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>             mod = (double)pim1[i+j*nx] ;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>             phase = (double)pim2[i+j*nx] ;</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>             re = (double)(mod * cos(phase));</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>             im = (double)(mod * sin(phase));</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>             pim3[i+j*nx] = re ; </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>             pim4[i+j*nx] = im ; </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>         }</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     }</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     <span class="keywordflow">return</span> cube_out ;</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__oddeven_8h_source.html b/html/irplib__oddeven_8h_source.html
deleted file mode 100644
index 67d0c60..0000000
--- a/html/irplib__oddeven_8h_source.html
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_oddeven.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_oddeven.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_oddeven.h,v 1.4 2006-10-06 20:46:04 yjung Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: yjung $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2006-10-06 20:46:04 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.4 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_ODDEVEN_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_ODDEVEN_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__oddeven.html#gade0423dfae726cc1ffec66a24e376505" title="Estimate the odd/even rate in an image quadrant.">irplib_oddeven_monitor</a>(<span class="keyword">const</span> cpl_image *, <span class="keywordtype">int</span>, <span class="keywordtype">double</span> *) ;</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> cpl_image * <a class="code" href="group__irplib__oddeven.html#ga7f7dafc1436a0aa2617048e1ada84e95" title="Correct the odd/even in an image.">irplib_oddeven_correct</a>(<span class="keyword">const</span> cpl_image *) ;</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__plugin-test_8c_source.html b/html/irplib__plugin-test_8c_source.html
deleted file mode 100644
index 8380624..0000000
--- a/html/irplib__plugin-test_8c_source.html
+++ /dev/null
@@ -1,183 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_plugin-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li><li class="navelem"><a class="el" href="dir_40a404867a1885f5fad756cff9cd9f5a.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_plugin-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                            *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO IRPLIB package                              *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                    *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify     *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by     *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or        *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                      *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,          *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of           *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                             *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License        *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software              *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA     *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                            */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#include <irplib_plugin.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> </div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Function prototypes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> {</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>     cpl_parameterlist * parlist;</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>     <span class="comment">/* Initialize CPL for unit testing */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>     parlist = cpl_parameterlist_new();</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>     (void)irplib_parameterlist_get_double(parlist, <span class="stringliteral">"INST"</span>, <span class="stringliteral">"RECIPE"</span>, NULL);</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     (void)irplib_parameterlist_get_double(parlist, <span class="stringliteral">"INST"</span>, NULL, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     (void)irplib_parameterlist_get_double(parlist, NULL, <span class="stringliteral">"RECIPE"</span>, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     (void)irplib_parameterlist_get_double(NULL, <span class="stringliteral">"INST"</span>, <span class="stringliteral">"RECIPE"</span>, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     (void)irplib_parameterlist_get_double(parlist, <span class="stringliteral">"INST"</span>, <span class="stringliteral">"RECIPE"</span>, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     cpl_test_error(CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     (void)irplib_parameterlist_get_int(parlist, <span class="stringliteral">"INST"</span>, <span class="stringliteral">"RECIPE"</span>, NULL);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     (void)irplib_parameterlist_get_int(parlist, <span class="stringliteral">"INST"</span>, NULL, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     (void)irplib_parameterlist_get_int(parlist, NULL, <span class="stringliteral">"RECIPE"</span>, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     (void)irplib_parameterlist_get_int(NULL, <span class="stringliteral">"INST"</span>, <span class="stringliteral">"RECIPE"</span>, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     (void)irplib_parameterlist_get_int(parlist, <span class="stringliteral">"INST"</span>, <span class="stringliteral">"RECIPE"</span>, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     cpl_test_error(CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>     (void)irplib_parameterlist_get_bool(parlist, <span class="stringliteral">"INST"</span>, <span class="stringliteral">"RECIPE"</span>, NULL);</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     (void)irplib_parameterlist_get_bool(parlist, <span class="stringliteral">"INST"</span>, NULL, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     (void)irplib_parameterlist_get_bool(parlist, NULL, <span class="stringliteral">"RECIPE"</span>, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     (void)irplib_parameterlist_get_bool(NULL, <span class="stringliteral">"INST"</span>, <span class="stringliteral">"RECIPE"</span>, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     (void)irplib_parameterlist_get_bool(parlist, <span class="stringliteral">"INST"</span>, <span class="stringliteral">"RECIPE"</span>, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     cpl_test_error(CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     (void)irplib_parameterlist_get_string(parlist, <span class="stringliteral">"INST"</span>, <span class="stringliteral">"RECIPE"</span>, NULL);</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     (void)irplib_parameterlist_get_string(parlist, <span class="stringliteral">"INST"</span>, NULL, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     (void)irplib_parameterlist_get_string(parlist, NULL, <span class="stringliteral">"RECIPE"</span>, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     (void)irplib_parameterlist_get_string(NULL, <span class="stringliteral">"INST"</span>, <span class="stringliteral">"RECIPE"</span>, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     (void)irplib_parameterlist_get_string(parlist, <span class="stringliteral">"INST"</span>, <span class="stringliteral">"RECIPE"</span>, <span class="stringliteral">"PAR"</span>);</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     cpl_test_error(CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     cpl_parameterlist_delete(parlist);</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__plugin_8c_source.html b/html/irplib__plugin_8c_source.html
deleted file mode 100644
index 847052a..0000000
--- a/html/irplib__plugin_8c_source.html
+++ /dev/null
@@ -1,1089 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_plugin.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_plugin.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_plugin.c,v 1.40 2013-08-22 17:44:56 cgarcia Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package </span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: cgarcia $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-08-22 17:44:56 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.40 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> </div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <assert.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include "irplib_plugin.h"</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">/* Maximum line length in SOF-file */</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#ifndef LINE_LEN_MAX</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor"></span><span class="preprocessor">#define LINE_LEN_MAX 1024</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/* This device provides quite-random data */</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#define DEV_RANDOM "/dev/urandom"</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/* Copied from cpl_tools.h */</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#define recipe_assert(bool) \</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor">  ((bool) ? (cpl_msg_debug(cpl_func, \</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">     "OK in " __FILE__ " line %d (CPL-error state: '%s' in %s): %s",__LINE__, \</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor">       cpl_error_get_message(), cpl_error_get_where(), #bool), 0) \</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor">          : (cpl_msg_error(cpl_func, \</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="preprocessor">     "Failure in " __FILE__ " line %d (CPL-error state: '%s' in %s): %s", \</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="preprocessor">      __LINE__, cpl_error_get_message(), cpl_error_get_where(), #bool), 1))</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">                            Private Function prototypes</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="keyword">static</span> <span class="keyword">const</span> cpl_parameter * irplib_parameterlist_get(<span class="keyword">const</span> cpl_parameterlist *,</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>                                                       <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>                                                       <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>                                                       <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_parameterlist_set(cpl_parameterlist *);</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="keyword">static</span> cpl_boolean irplib_plugin_has_sof_from_env(<span class="keyword">const</span> cpl_plugin *,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>                                                   <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_frameset_load(cpl_frameset *, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_sof_test_devfile(cpl_plugin *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">size_t</span>,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                                    <span class="keyword">const</span> <span class="keywordtype">char</span> *[]);</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_sof_test_image_empty(cpl_plugin *, <span class="keywordtype">size_t</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *[]);</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_sof_test_local(cpl_plugin *);</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_sof_test_from_env(cpl_plugin *);</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_frameset_empty(cpl_frameset *);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_frameset_test_frame(<span class="keyword">const</span> cpl_frame *);</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_frameset_test_frameset_diff(<span class="keyword">const</span> cpl_frameset *,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                                                <span class="keyword">const</span> cpl_frameset *);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="keyword">static</span> cpl_errorstate inistate;</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment">                            Function definitions</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * irplib_parameterlist_get_string(<span class="keyword">const</span> cpl_parameterlist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> * instrume,</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> * recipe,</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> * parameter)</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> {</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     <span class="keyword">const</span> cpl_parameter * par = irplib_parameterlist_get(<span class="keyword">self</span>, instrume,</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>                                                          recipe, parameter);</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> * value;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     cpl_ensure(par != NULL, cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     value = cpl_parameter_get_string(par);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="keywordflow">if</span> (value == NULL) (void)cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="keywordflow">return</span> value;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> }</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> cpl_boolean irplib_parameterlist_get_bool(<span class="keyword">const</span> cpl_parameterlist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>                                           <span class="keyword">const</span> <span class="keywordtype">char</span> * instrume,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                                           <span class="keyword">const</span> <span class="keywordtype">char</span> * recipe,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                                           <span class="keyword">const</span> <span class="keywordtype">char</span> * parameter)</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> {</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keyword">const</span> cpl_parameter * par = irplib_parameterlist_get(<span class="keyword">self</span>, instrume,</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>                                                          recipe, parameter);</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     cpl_errorstate        prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     cpl_boolean           value;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     cpl_ensure(par != NULL, cpl_error_get_code(), CPL_FALSE);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     value = cpl_parameter_get_bool(par);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(prestate)) (void)cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="keywordflow">return</span> value;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> }</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="keywordtype">int</span> irplib_parameterlist_get_int(<span class="keyword">const</span> cpl_parameterlist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                                  <span class="keyword">const</span> <span class="keywordtype">char</span> * instrume,</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>                                  <span class="keyword">const</span> <span class="keywordtype">char</span> * recipe,</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>                                  <span class="keyword">const</span> <span class="keywordtype">char</span> * parameter)</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> {</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     <span class="keyword">const</span> cpl_parameter * par = irplib_parameterlist_get(<span class="keyword">self</span>, instrume,</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>                                                          recipe, parameter);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     cpl_errorstate        prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     <span class="keywordtype">int</span>                   value;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> </div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     cpl_ensure(par != NULL, cpl_error_get_code(), 0);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     value = cpl_parameter_get_int(par);</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(prestate)) (void)cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <span class="keywordflow">return</span> value;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> }</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="keywordtype">double</span> irplib_parameterlist_get_double(<span class="keyword">const</span> cpl_parameterlist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                                        <span class="keyword">const</span> <span class="keywordtype">char</span> * instrume,</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>                                        <span class="keyword">const</span> <span class="keywordtype">char</span> * recipe,</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                                        <span class="keyword">const</span> <span class="keywordtype">char</span> * parameter)</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> {</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     <span class="keyword">const</span> cpl_parameter * par = irplib_parameterlist_get(<span class="keyword">self</span>, instrume,</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                                                          recipe, parameter);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     cpl_errorstate        prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="keywordtype">double</span>                value;</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     cpl_ensure(par != NULL, cpl_error_get_code(), 0.0);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     value = cpl_parameter_get_double(par);</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(prestate)) (void)cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <span class="keywordflow">return</span> value;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> }</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> cpl_error_code irplib_parameterlist_set_string(cpl_parameterlist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * instrume,</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * recipe,</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * parameter,</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * defvalue,</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * alias,</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * context,</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * man)</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> {</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     cpl_error_code  error;</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     cpl_parameter * par;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     <span class="keywordtype">char</span>          * paramname = cpl_sprintf(<span class="stringliteral">"%s.%s.%s"</span>, instrume, recipe,</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>                                             parameter);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     cpl_ensure_code(paramname != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     par = cpl_parameter_new_value(paramname, CPL_TYPE_STRING, man, context,</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>                                   defvalue);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     cpl_free(paramname);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     cpl_ensure_code(par != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     error = cpl_parameter_set_alias(par, CPL_PARAMETER_MODE_CLI,</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>                                     alias ? alias : parameter);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     error = cpl_parameter_disable(par, CPL_PARAMETER_MODE_ENV);</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     error = cpl_parameterlist_append(<span class="keyword">self</span>, par);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> }</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> cpl_error_code irplib_parameterlist_set_bool(cpl_parameterlist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> * instrume,</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> * recipe,</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> * parameter,</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>                                              cpl_boolean  defvalue,</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> * alias,</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> * context,</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> * man)</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> {</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     cpl_error_code  error;</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     cpl_parameter * par;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     <span class="keywordtype">char</span>          * paramname = cpl_sprintf(<span class="stringliteral">"%s.%s.%s"</span>, instrume, recipe,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                                             parameter);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     cpl_ensure_code(paramname != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     par = cpl_parameter_new_value(paramname, CPL_TYPE_BOOL, man, context,</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>                                   defvalue);</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     cpl_free(paramname);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     cpl_ensure_code(par != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     error = cpl_parameter_set_alias(par, CPL_PARAMETER_MODE_CLI,</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>                                     alias ? alias : parameter);</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     error = cpl_parameter_disable(par, CPL_PARAMETER_MODE_ENV);</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     error = cpl_parameterlist_append(<span class="keyword">self</span>, par);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> }</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> cpl_error_code irplib_parameterlist_set_int(cpl_parameterlist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> * instrume,</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> * recipe,</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> * parameter,</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>                                             <span class="keywordtype">int</span>         defvalue,</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> * alias,</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> * context,</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> * man)</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> {</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     cpl_error_code  error;</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     cpl_parameter * par;</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     <span class="keywordtype">char</span>          * paramname = cpl_sprintf(<span class="stringliteral">"%s.%s.%s"</span>, instrume, recipe,</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                                             parameter);</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     cpl_ensure_code(paramname != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     par = cpl_parameter_new_value(paramname, CPL_TYPE_INT, man, context,</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                                   defvalue);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     cpl_free(paramname);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     cpl_ensure_code(par != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     error = cpl_parameter_set_alias(par, CPL_PARAMETER_MODE_CLI,</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>                                     alias ? alias : parameter);</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>     </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     error = cpl_parameter_disable(par, CPL_PARAMETER_MODE_ENV);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> </div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     error = cpl_parameterlist_append(<span class="keyword">self</span>, par);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>     </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> }</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> cpl_error_code irplib_parameterlist_set_double(cpl_parameterlist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * instrume,</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * recipe,</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * parameter,</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>                                                <span class="keywordtype">double</span>       defvalue,</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * alias,</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * context,</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * man)</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> {</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     cpl_error_code  error;</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     cpl_parameter * par;</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     <span class="keywordtype">char</span>          * paramname = cpl_sprintf(<span class="stringliteral">"%s.%s.%s"</span>, instrume, recipe,</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>                                             parameter);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> </div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     cpl_ensure_code(paramname != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     par = cpl_parameter_new_value(paramname, CPL_TYPE_DOUBLE, man, context,</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>                                   defvalue);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     cpl_free(paramname);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     cpl_ensure_code(par != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     </div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     error = cpl_parameter_set_alias(par, CPL_PARAMETER_MODE_CLI,</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>                                     alias ? alias : parameter);</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     </div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     error = cpl_parameter_disable(par, CPL_PARAMETER_MODE_ENV);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> </div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     error = cpl_parameterlist_append(<span class="keyword">self</span>, par);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>     </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> }</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> <span class="keywordtype">int</span> irplib_plugin_test(cpl_pluginlist * <span class="keyword">self</span>, <span class="keywordtype">size_t</span> nstr, <span class="keyword">const</span> <span class="keywordtype">char</span> *astr[]) {</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>     cpl_plugin     * plugin;</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     cpl_recipe     * recipe;</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     int            (*recipe_create) (cpl_plugin *);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     int            (*recipe_exec  ) (cpl_plugin *);</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     int            (*recipe_deinit) (cpl_plugin *);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     FILE         * stream;</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     cpl_boolean    is_debug;</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> </div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> </div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     is_debug = cpl_msg_get_level() <= CPL_MSG_DEBUG ? CPL_TRUE : CPL_FALSE;</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>     <span class="comment">/* Modified from CPL unit tests */</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     stream = is_debug ? stdout : fopen(<span class="stringliteral">"/dev/null"</span>, <span class="stringliteral">"a"</span>);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     inistate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     assert( nstr == 0 || astr != NULL );</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     plugin = cpl_pluginlist_get_first(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     <span class="keywordflow">if</span> (plugin == NULL) {</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>         cpl_msg_warning(cpl_func, <span class="stringliteral">"With an empty pluginlist, "</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>                         <span class="stringliteral">"no tests can be made"</span>);</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>     }</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     cpl_plugin_dump(plugin, stream);</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> </div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     recipe_create = cpl_plugin_get_init(plugin);</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     cpl_test( recipe_create != NULL);</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     recipe_exec   = cpl_plugin_get_exec(plugin);</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     cpl_test( recipe_exec != NULL);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     recipe_deinit = cpl_plugin_get_deinit(plugin);</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     cpl_test( recipe_deinit != NULL);</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     <span class="comment">/* Only plugins of type recipe are tested (further)  */</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) != CPL_PLUGIN_TYPE_RECIPE) {</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>         cpl_msg_warning(cpl_func, <span class="stringliteral">"This plugin is not of type recipe, "</span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>                       <span class="stringliteral">"cannot test further"</span>);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>     }</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     <span class="keywordflow">if</span> (recipe_create != NULL && recipe_exec != NULL && recipe_deinit != NULL) {</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>         cpl_test_zero(recipe_create(plugin));</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>         recipe = (cpl_recipe *) plugin;</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>         cpl_test_nonnull( recipe->parameters );</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> </div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>         recipe_parameterlist_set(recipe->parameters);</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> </div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>         cpl_parameterlist_dump(recipe->parameters, stream);</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> </div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>         recipe->frames = cpl_frameset_new();</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>         <span class="keywordflow">if</span> (irplib_plugin_has_sof_from_env(plugin, <span class="stringliteral">"RECIPE_SOF_PATH"</span>)) {</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> </div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>             recipe_sof_test_from_env(plugin);</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> </div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>             <span class="keyword">const</span> cpl_msg_severity msg_level = cpl_msg_get_level();</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>             <span class="comment">/* Unless the CPL_MSG_LEVEL has been explicitly set, turn off</span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> <span class="comment">               terminal messaging completely while inside this function */</span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>             <span class="keywordflow">if</span> (getenv(<span class="stringliteral">"CPL_MSG_LEVEL"</span>) == NULL) cpl_msg_set_level(CPL_MSG_OFF);</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>             cpl_msg_info(cpl_func,<span class="stringliteral">"Checking handling of pre-existing CPL error "</span></div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>                          <span class="stringliteral">"state - may produce warning(s)/error(s):"</span>);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>             cpl_error_set(cpl_func, CPL_ERROR_EOL);</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>             <span class="comment">/* Call recipe and expect non-zero return code */</span></div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>             cpl_test( recipe_exec(plugin) );</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>             <span class="comment">/* Expect also the CPL error code to be preserved */</span></div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>             cpl_test_error( CPL_ERROR_EOL );</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>             cpl_msg_info(cpl_func,<span class="stringliteral">"Checking handling of empty frameset - "</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>                          <span class="stringliteral">"may produce warning(s)/error(s):"</span>);</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>             <span class="comment">/* Call recipe and expect non-zero return code */</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>             cpl_test( recipe_exec(plugin) );</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>             error = cpl_error_get_code();</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>             <span class="comment">/* Expect also the CPL error code to be set */</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>             cpl_test_error( error );</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>             cpl_test( error );</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> </div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>             cpl_msg_info(cpl_func,<span class="stringliteral">"Checking handling of dummy frameset - "</span></div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                          <span class="stringliteral">"may produce warning(s)/error(s):"</span>);</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>             <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>                 cpl_frame * f = cpl_frame_new();</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>                 error = cpl_frame_set_filename(f, <span class="stringliteral">"/dev/null"</span>);</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>                 cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>                 error = cpl_frame_set_tag(f, <span class="stringliteral">"RECIPE_DUMMY_TAG"</span>);</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>                 cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>                 error = cpl_frameset_insert(recipe->frames, f);</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>                 cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>                 <span class="comment">/* Call recipe and expect non-zero return code */</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>                 cpl_test( recipe_exec(plugin) );</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>                 error = cpl_error_get_code();</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>                 <span class="comment">/* Expect also the CPL error code to be set */</span></div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>                 cpl_test_error( error );</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                 cpl_test( error );</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> </div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>                 error = cpl_frameset_erase_frame(recipe->frames, f);</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                 cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> </div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>             } <span class="keywordflow">while</span> (0);</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="preprocessor">#ifdef IRPLIB_TEST_RANDOM_SOF</span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="preprocessor"></span>            recipe_sof_test_devfile(plugin, DEV_RANDOM, nstr, astr);</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>             recipe_sof_test_devfile(plugin, <span class="stringliteral">"/dev/null"</span>, nstr, astr);</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> </div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>             recipe_sof_test_devfile(plugin, <span class="stringliteral">"."</span>, nstr, astr);</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> </div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>             recipe_sof_test_image_empty(plugin, nstr, astr);</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> </div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>             recipe_sof_test_local(plugin);</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> </div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>             cpl_msg_set_level(msg_level);</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> </div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>         }</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> </div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>         cpl_frameset_delete(recipe->frames);</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>         error = recipe_deinit(plugin);</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>     }</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>     <span class="keywordflow">if</span> (stream != stdout) fclose(stream);</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> }</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span> </div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_parameterlist_set(cpl_parameterlist * <span class="keyword">self</span>)</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> {</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     cpl_parameter * p = cpl_parameterlist_get_first(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> </div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     <span class="keywordflow">for</span> (; p != NULL; p = cpl_parameterlist_get_next(<span class="keyword">self</span>)) {</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> * envvar;</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> * svalue;</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span> </div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>         <span class="comment">/* FIXME: Needed ? */</span></div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>         <span class="keywordflow">if</span> (cpl_parameter_get_default_flag(p)) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span> </div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>         cpl_msg_debug(cpl_func, __FILE__ <span class="stringliteral">" line %u: OK"</span>, __LINE__);</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> </div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>         envvar = cpl_parameter_get_alias(p, CPL_PARAMETER_MODE_ENV);</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>         svalue = envvar ? getenv(envvar) : NULL;</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> </div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>         <span class="keywordflow">switch</span> (cpl_parameter_get_type(p)) {</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL: {</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>             <span class="keyword">const</span> <span class="keywordtype">int</span> value</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>                 = svalue ? atoi(svalue) : cpl_parameter_get_default_bool(p);</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>             cpl_parameter_set_bool(p, value);</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>         }</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>         <span class="keywordflow">case</span> CPL_TYPE_INT: {</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>             <span class="keyword">const</span> <span class="keywordtype">int</span> value</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>                 = svalue ? atoi(svalue) : cpl_parameter_get_default_int(p);</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>             cpl_parameter_set_int(p, value);</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>         }</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE: {</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> value</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>                 = svalue ? atof(svalue) : cpl_parameter_get_default_double(p);</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>             cpl_parameter_set_double(p, value);</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>         }</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>             {</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>                 <span class="keyword">const</span> <span class="keywordtype">char</span> * s_default = cpl_parameter_get_default_string(p);</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>                 <span class="comment">/* Replace NULL with "" */</span></div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>                 <span class="keyword">const</span> <span class="keywordtype">char</span> * value</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>                     = svalue ? svalue : (s_default ? s_default : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>                 cpl_parameter_set_string(p, value);</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>             }</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span> </div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>             assert( 0 ); <span class="comment">/* It is a testing error to reach this point */</span></div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>         }</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     }</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> }</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> </div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_sof_test_devfile(cpl_plugin * plugin, <span class="keyword">const</span> <span class="keywordtype">char</span> * filename,</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                                     <span class="keywordtype">size_t</span> nstr, <span class="keyword">const</span> <span class="keywordtype">char</span> *astr[])</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> {</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     cpl_recipe * recipe  = (cpl_recipe*)plugin;</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>     int       (*recipe_exec) (cpl_plugin *);</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>     cpl_frameset * copy;</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>     <span class="keywordtype">size_t</span> i;</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> </div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span> </div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>     <span class="keywordflow">if</span> (nstr < 1) <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     <span class="keywordflow">if</span> (filename == NULL) <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> </div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Testing recipe with %u %s as input "</span>,</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>                  (<span class="keywordtype">unsigned</span>)nstr, filename);</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span> </div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     <span class="keywordflow">for</span> (i = 0; i < nstr; i++) {</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>         cpl_frame * f = cpl_frame_new();</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span> </div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>         error = cpl_frame_set_filename(f, filename);</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span> </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>         error = cpl_frame_set_tag(f, astr[i]);</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> </div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>         error = cpl_frameset_insert(recipe->frames, f);</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     }</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     copy = cpl_frameset_duplicate(recipe->frames);</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> </div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     recipe_exec = cpl_plugin_get_exec(plugin);</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>     cpl_test( recipe_exec != NULL);</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> </div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     <span class="keywordflow">if</span> (recipe_exec != NULL) {</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>         <span class="comment">/* Call recipe and expect non-zero return code */</span></div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>         cpl_test( recipe_exec(plugin) );</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>         error = cpl_error_get_code();</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>         <span class="comment">/* Expect also the CPL error code to be set */</span></div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>         cpl_test_error( error );</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>         cpl_test( error );</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>         recipe_frameset_test_frameset_diff(recipe->frames, copy);</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> </div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>         recipe_frameset_empty(recipe->frames);</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     }</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     cpl_frameset_delete(copy);</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> }</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> </div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_sof_test_image_empty(cpl_plugin * plugin, <span class="keywordtype">size_t</span> nstr,</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>                                         <span class="keyword">const</span> <span class="keywordtype">char</span> *astr[])</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span> {</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>     cpl_recipe * recipe  = (cpl_recipe*)plugin;</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     int       (*recipe_exec) (cpl_plugin *);</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>     cpl_frameset * copy;</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>     <span class="keywordtype">size_t</span> i;</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>     cpl_frame * <a class="code" href="structframe.html">frame</a>;</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>     cpl_image * iempty;</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>     <span class="keywordtype">int</span> retstat;</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span> </div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     <span class="keywordflow">if</span> (nstr < 1) <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span> </div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Testing recipe with %u empty images as input "</span>,</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>                  (<span class="keywordtype">unsigned</span>)nstr);</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>     iempty = cpl_image_new(13, 17, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     cpl_test_nonnull(iempty);</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span> </div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>     <span class="keywordflow">for</span> (i = 0; i < nstr; i++) {</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>         cpl_frame * f = cpl_frame_new();</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>         <span class="keywordtype">char</span> * rawname = cpl_sprintf(<span class="stringliteral">"%s-raw%05u.fits"</span>,</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>                                      cpl_plugin_get_name(plugin),</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>                                      (<span class="keywordtype">unsigned</span>)(i+1));</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> </div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>         error = cpl_image_save(iempty, rawname,CPL_BPP_IEEE_FLOAT, NULL,</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>                                CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>         error = cpl_frame_set_filename(f, rawname);</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>         error = cpl_frame_set_tag(f, astr[i]);</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> </div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>         error = cpl_frameset_insert(recipe->frames, f);</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> </div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>         cpl_free(rawname);</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>     }</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>     cpl_image_delete(iempty);</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span> </div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     copy = cpl_frameset_duplicate(recipe->frames);</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>     recipe_exec = cpl_plugin_get_exec(plugin);</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>     cpl_test(recipe_exec != NULL);</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span> </div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>     <span class="keywordflow">if</span> (recipe_exec != NULL) {</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span> </div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>         <span class="comment">/* Call recipe and expect consistency between return code and</span></div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> <span class="comment">           CPL error */</span></div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>         retstat = recipe_exec(plugin);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>         error = cpl_error_get_code();</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>         <span class="comment">/* Expect also the CPL error code to be set */</span></div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>         <span class="keywordflow">if</span> (error == 0) {</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>             cpl_test_zero(retstat);</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>             cpl_test(retstat);</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>         }</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>         cpl_test_error( error );</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> </div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>         recipe_frameset_test_frameset_diff(recipe->frames, copy);</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span> </div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>         <span class="keywordflow">for</span> (frame = cpl_frameset_get_first(recipe->frames); frame != NULL;</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>              frame = cpl_frameset_get_next(recipe->frames))</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>             {</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>                 cpl_test_zero( <span class="keyword">remove</span>(cpl_frame_get_filename(frame)) );</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>             }</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span> </div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>         recipe_frameset_empty(recipe->frames);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>     }</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>     cpl_frameset_delete(copy);</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span> </div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span> }</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span> </div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span> </div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span> cpl_boolean irplib_plugin_has_sof_from_env(<span class="keyword">const</span> cpl_plugin * plugin,</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>                                            <span class="keyword">const</span> <span class="keywordtype">char</span> * envname)</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span> {</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>      * recipename = cpl_plugin_get_name(plugin);</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>      * sof_path   = envname ? getenv(envname) : NULL;</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>     cpl_frameset    * frames;</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>     <span class="keywordtype">char</span>            * sof_name;</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>     <span class="keyword">const</span> cpl_frame * ffirst;</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span> </div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>     cpl_ensure(plugin  != NULL, CPL_ERROR_NULL_INPUT, CPL_FALSE);</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>     cpl_ensure(envname != NULL, CPL_ERROR_NULL_INPUT, CPL_FALSE);</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>     cpl_ensure(recipename != NULL, CPL_ERROR_DATA_NOT_FOUND, CPL_FALSE);</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>     cpl_ensure(!cpl_error_get_code(), cpl_error_get_code(), CPL_FALSE);</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span> </div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>     <span class="keywordflow">if</span> (sof_path == NULL) <span class="keywordflow">return</span> CPL_FALSE;</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span> </div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>     sof_name = cpl_sprintf(<span class="stringliteral">"%s/%s.sof"</span>, sof_path, recipename);</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> </div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>     frames = cpl_frameset_new();</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>     recipe_frameset_load(frames, sof_name);</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span> </div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>     ffirst = cpl_frameset_get_first_const(frames);</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> </div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>     cpl_free(sof_name);</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>     cpl_frameset_delete(frames);</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> </div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>     cpl_ensure(!cpl_error_get_code(), cpl_error_get_code(), CPL_FALSE);</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span> </div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>     <span class="keywordflow">return</span> ffirst ? CPL_TRUE : CPL_FALSE;</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> </div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> }</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> </div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_sof_test_from_env(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> {</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>     cpl_recipe * recipe  = (cpl_recipe*)plugin;</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> * recipename = cpl_plugin_get_name(plugin);</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> * var_name = <span class="stringliteral">"RECIPE_SOF_PATH"</span>;</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> * sof_path = getenv(var_name);</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> </div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>     <span class="keywordtype">char</span> * sof_name;</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span> </div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     <span class="keywordflow">if</span> (sof_path == NULL) {</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>         cpl_msg_warning(cpl_func, <span class="stringliteral">"Environment variable %s is unset: "</span></div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>                         <span class="stringliteral">"No SOFs to check"</span>, var_name);</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>         <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>     }</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span> </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>     cpl_msg_debug(cpl_func, <span class="stringliteral">"Checking for SOFs in %s"</span>, sof_path);</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> </div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>     cpl_test_nonnull( recipename );</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>     <span class="keywordflow">if</span> (recipename == NULL) <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> </div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>     sof_name = cpl_sprintf(<span class="stringliteral">"%s/%s.sof"</span>, sof_path, recipename);</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> </div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>     cpl_msg_debug(cpl_func, <span class="stringliteral">"Checking for SOF %s"</span>, sof_name);</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>     </div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>     recipe_frameset_load(recipe->frames, sof_name);</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> </div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>     <span class="keywordflow">if</span> (!cpl_frameset_is_empty(recipe->frames)) {</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span> </div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>         int          (*recipe_exec  ) (cpl_plugin *);</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>         cpl_frameset * copy = cpl_frameset_duplicate(recipe->frames);</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span> </div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>         recipe_exec   = cpl_plugin_get_exec(plugin);</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>         cpl_test(recipe_exec != NULL);</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span> </div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>         <span class="keywordflow">if</span> (recipe_exec != NULL) {</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>             cpl_msg_info(cpl_func,<span class="stringliteral">"Checking handling of SOF: %s"</span>, sof_name);</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span> </div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>             <span class="comment">/* Call recipe and expect zero return code */</span></div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>             cpl_test_zero( recipe_exec(plugin) );</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>             <span class="comment">/* Expect also the CPL error code to be clear */</span></div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>             cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span> </div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>             error = cpl_dfs_update_product_header(recipe->frames);</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>             cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span> </div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>             recipe_frameset_test_frameset_diff(recipe->frames, copy);</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span> </div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>             recipe_frameset_empty(recipe->frames);</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>         }</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span> </div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>         cpl_frameset_delete(copy);</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> </div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>     }</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>     cpl_free(sof_name);</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span> </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> }</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span> </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> </div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> </div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_sof_test_local(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> {</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>     cpl_recipe * recipe  = (cpl_recipe*)plugin;</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> * recipename = cpl_plugin_get_name(plugin);</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>     <span class="keywordtype">char</span> * sof_name = cpl_sprintf(<span class="stringliteral">"%s.sof"</span>, recipename);</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span> </div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>     cpl_msg_debug(cpl_func, <span class="stringliteral">"Checking for SOF %s"</span>, sof_name);</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>     </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>     recipe_frameset_load(recipe->frames, sof_name);</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> </div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>     <span class="keywordflow">if</span> (!cpl_frameset_is_empty(recipe->frames)) {</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span> </div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>         int          (*recipe_exec  ) (cpl_plugin *);</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>         cpl_frameset * copy = cpl_frameset_duplicate(recipe->frames);</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span> </div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>         recipe_exec   = cpl_plugin_get_exec(plugin);</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>         cpl_test(recipe_exec != NULL);</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> </div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>         <span class="keywordflow">if</span> (recipe_exec != NULL) {</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> </div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>             cpl_msg_info(cpl_func,<span class="stringliteral">"Checking handling of SOF: %s"</span>, sof_name);</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span> </div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>             <span class="comment">/* Call recipe and expect zero return code */</span></div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>             cpl_test_zero( recipe_exec(plugin) );</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>             <span class="comment">/* Expect also the CPL error code to be clear */</span></div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>             cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span> </div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>             error = cpl_dfs_update_product_header(recipe->frames);</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>             cpl_test_eq_error( error, CPL_ERROR_NONE );</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span> </div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>             recipe_frameset_test_frameset_diff(recipe->frames, copy);</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span> </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>             recipe_frameset_empty(recipe->frames);</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>         }</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> </div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>         cpl_frameset_delete(copy);</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>     }</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> </div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>     cpl_free(sof_name);</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span> </div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span> }</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span> </div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span> </div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> </div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> </div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> <span class="comment">/**********************************************************************/</span></div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="comment">/**********************************************************************/</span></div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_frameset_load(cpl_frameset * <span class="keyword">set</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name)</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> {</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> </div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>     FILE *fp;</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>     <span class="keywordtype">char</span> line[LINE_LEN_MAX];</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>     <span class="keywordtype">char</span> path[LINE_LEN_MAX], group[LINE_LEN_MAX], tag[LINE_LEN_MAX];</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>     <span class="keywordtype">int</span> line_number;</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> </div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>     assert( <span class="keyword">set</span> != NULL );</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>     assert( name != NULL );</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> </div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>     fp = fopen(name, <span class="stringliteral">"r"</span>);</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>     <span class="keywordflow">if</span> (fp == NULL) {</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>         cpl_msg_debug(cpl_func, <span class="stringliteral">"Unable to open SOF file '%s'"</span>, name);</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>         <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>     }</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span> </div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>     <span class="comment">/* Loop over all the lines in the set-of-frames file */</span></div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>     <span class="keywordflow">for</span> (line_number = 0; fgets(line, LINE_LEN_MAX - 1, fp); line_number++) {</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> </div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>         <span class="keywordtype">char</span> scan_fmt[50];</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>         cpl_frame_group grp;</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>         cpl_frame * frame;</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>         <span class="keywordtype">int</span> n;</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>         <span class="keywordflow">if</span> (line[0] == <span class="charliteral">'#'</span>) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>         snprintf(scan_fmt, 49, <span class="stringliteral">"%%%ds %%%ds %%%ds"</span>, LINE_LEN_MAX - 1,</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>                  LINE_LEN_MAX - 1, LINE_LEN_MAX - 1); </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>         n = sscanf(line, scan_fmt, path, tag, group);</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span> </div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>         <span class="keywordflow">if</span> (n < 1) {</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>             cpl_msg_warning(cpl_func, <span class="stringliteral">"Spurious line no. %d in %s: %s"</span>,</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>                             line_number, name, line);</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>         }</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>         <span class="comment">/* Allocate a new frame */</span></div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>         frame = cpl_frame_new();</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> </div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>         <span class="comment">/* Set the filename component of the frame */</span></div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>         cpl_frame_set_filename(frame, path);</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> </div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>         <span class="comment">/* Set the tag component of the frame (or set a default) */</span></div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>         cpl_frame_set_tag(frame, n == 1 ? <span class="stringliteral">""</span> : tag);</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> </div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>         cpl_frameset_insert(<span class="keyword">set</span>, frame);</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> </div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>         <span class="comment">/* Set the group component of the frame (or set a default) */</span></div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>         <span class="keywordflow">if</span> (n < 3) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> </div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>         <span class="keywordflow">if</span> (!strcmp(group, CPL_FRAME_GROUP_RAW_ID))</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>             grp = CPL_FRAME_GROUP_RAW;</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(group, CPL_FRAME_GROUP_CALIB_ID))</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>             grp = CPL_FRAME_GROUP_CALIB;</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(group, CPL_FRAME_GROUP_PRODUCT_ID))</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>             grp = CPL_FRAME_GROUP_PRODUCT;</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>             grp = CPL_FRAME_GROUP_NONE;</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> </div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>         cpl_frame_set_group(frame, grp);</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>     }</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> </div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>     fclose(fp);</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> </div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span> </div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> }</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span> </div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> </div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> <span class="keyword">const</span> cpl_parameter * irplib_parameterlist_get(<span class="keyword">const</span> cpl_parameterlist * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * instrume,</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * recipe,</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> * parameter)</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> {</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> </div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>     <span class="keywordtype">char</span>                * paramname;</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>     <span class="keyword">const</span> cpl_parameter * par;</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> </div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> </div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>     cpl_ensure(instrume  != NULL, CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>     cpl_ensure(recipe    != NULL, CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>     cpl_ensure(parameter != NULL, CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> </div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>     paramname = cpl_sprintf(<span class="stringliteral">"%s.%s.%s"</span>, instrume, recipe, parameter);</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> </div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>     par = cpl_parameterlist_find_const(<span class="keyword">self</span>, paramname);</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>     <span class="keywordflow">if</span> (par == NULL) (void)cpl_error_set_message(cpl_func,</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>                                                  cpl_error_get_code()</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>                                                  ? cpl_error_get_code()</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>                                                  : CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>                                                  <span class="stringliteral">"%s"</span>, paramname);</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> </div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>     cpl_free(paramname);</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>     </div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>     <span class="keywordflow">return</span> par;</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> </div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> }</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> </div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> </div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_frameset_empty(cpl_frameset * <span class="keyword">self</span>)</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> {</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>     cpl_frame * f;</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span> </div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL) {</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>         cpl_error_set(cpl_func, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>         <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>     }</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span> </div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     <span class="keywordflow">for</span> (f = cpl_frameset_get_first(<span class="keyword">self</span>); f != NULL;</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>          f = cpl_frameset_get_first(<span class="keyword">self</span>))</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>         {</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>             cpl_frameset_erase_frame(<span class="keyword">self</span>, f);</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>         }</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span> }</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span> </div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span> </div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_frameset_test_frame(<span class="keyword">const</span> cpl_frame * <span class="keyword">self</span>)</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> {</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span> </div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Validating new frame: %s"</span>,</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>                  cpl_frame_get_filename(<span class="keyword">self</span>));</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span> </div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>     cpl_test_nonnull(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>     <span class="comment">/* Frame must be tagged */</span></div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>     cpl_test_nonnull(cpl_frame_get_tag(<span class="keyword">self</span>));</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> </div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>     <span class="comment">/* New frames must be products */</span></div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>     cpl_test_eq(cpl_frame_get_group(<span class="keyword">self</span>), CPL_FRAME_GROUP_PRODUCT);</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> </div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>     <span class="keywordflow">if</span> (cpl_frame_get_type(<span class="keyword">self</span>) != CPL_FRAME_TYPE_PAF) {</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>         <span class="comment">/* All but PAF (?) must be FITS */</span></div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>         cpl_test_fits(cpl_frame_get_filename(<span class="keyword">self</span>));</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>         <span class="comment">/* Frame must at least have a filename */</span></div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>         cpl_test_nonnull(cpl_frame_get_filename(<span class="keyword">self</span>));</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>     }</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> }</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> </div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> <span class="keyword">static</span> <span class="keywordtype">void</span> recipe_frameset_test_frameset_diff(<span class="keyword">const</span> cpl_frameset * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>                                                <span class="keyword">const</span> cpl_frameset * other)</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span> {</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> </div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>     <span class="keyword">const</span> cpl_frame * frame = cpl_frameset_get_first_const(other);</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span> </div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>     <span class="comment">/* First verify that filenames in other are non-NULL */</span></div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>     <span class="keywordflow">for</span> (;frame != NULL; frame = cpl_frameset_get_next_const(other)) {</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> * file = cpl_frame_get_filename(frame);</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> </div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>         <span class="keywordflow">if</span> (file == NULL) {</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>             cpl_test_nonnull(cpl_frame_get_filename(frame));</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>         }</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>     }</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>     <span class="keywordflow">if</span> (frame != NULL) <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> </div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>     frame = cpl_frameset_get_first_const(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> </div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>     <span class="keywordflow">for</span> (;frame != NULL; frame = cpl_frameset_get_next_const(<span class="keyword">self</span>)) {</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>         <span class="keyword">const</span> cpl_frame * cmp  = cpl_frameset_get_first_const(other);</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> * file = cpl_frame_get_filename(frame);</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> </div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>         <span class="keywordflow">if</span> (file == NULL) {</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>             cpl_test_nonnull(cpl_frame_get_filename(frame));</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>             <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>         }</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> </div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>         <span class="keywordflow">for</span> (;cmp != NULL; cmp = cpl_frameset_get_next_const(other)) {</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> * cfile = cpl_frame_get_filename(cmp);</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span> </div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>             <span class="keywordflow">if</span> (!strcmp(file, cfile)) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span> </div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>         }</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>         <span class="keywordflow">if</span> (cmp == NULL) {</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>             <span class="comment">/* frame is new */</span></div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span> </div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>             cpl_test_eq(cpl_frame_get_group(frame), CPL_FRAME_GROUP_PRODUCT);</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>             recipe_frameset_test_frame(frame);</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>         }</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>     }</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__plugin_8h_source.html b/html/irplib__plugin_8h_source.html
deleted file mode 100644
index 33870e2..0000000
--- a/html/irplib__plugin_8h_source.html
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_plugin.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_plugin.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_plugin.h,v 1.23 2012-01-11 08:03:37 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package </span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2012-01-11 08:03:37 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.23 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_PLUGIN_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_PLUGIN_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <irplib_utils.h></span>  <span class="comment">/* irplib_reset() */</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">                                   Define</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/* Needed (by uves) to concatenate two macro arguments */</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#define IRPLIB_CONCAT(a,b) a ## _ ## b</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_CONCAT2X(a,b) IRPLIB_CONCAT(a,b)</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">                                   Function prototypes</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="keywordtype">int</span> irplib_plugin_test(cpl_pluginlist *, <span class="keywordtype">size_t</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *[]);</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> cpl_error_code irplib_parameterlist_set_string(cpl_parameterlist *,</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> cpl_error_code irplib_parameterlist_set_bool(cpl_parameterlist *,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *, cpl_boolean,</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> cpl_error_code irplib_parameterlist_set_int(cpl_parameterlist *,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> cpl_error_code irplib_parameterlist_set_double(cpl_parameterlist *,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">double</span>, </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * irplib_parameterlist_get_string(<span class="keyword">const</span> cpl_parameterlist *,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> cpl_boolean irplib_parameterlist_get_bool(<span class="keyword">const</span> cpl_parameterlist *,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>                                           <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>                                           <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="keywordtype">int</span> irplib_parameterlist_get_int(<span class="keyword">const</span> cpl_parameterlist *,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>                                  <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>                                  <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="keywordtype">double</span> irplib_parameterlist_get_double(<span class="keyword">const</span> cpl_parameterlist *,</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>                                        <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>                                        <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__polynomial-test_8c_source.html b/html/irplib__polynomial-test_8c_source.html
deleted file mode 100644
index 6b1e255..0000000
--- a/html/irplib__polynomial-test_8c_source.html
+++ /dev/null
@@ -1,614 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_polynomial-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li><li class="navelem"><a class="el" href="dir_40a404867a1885f5fad756cff9cd9f5a.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_polynomial-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_polynomial-test.c,v 1.37 2013-01-29 08:43:33 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO Common Pipeline Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-01-29 08:43:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.37 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> </div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <irplib_polynomial.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#define MAXDEGREE 6</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#define irplib_polynomial_test_root_all(A, B, C, D, E)                  \</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">    irplib_polynomial_test_root_all_macro(A, B, C, D, E, __LINE__)</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">                                   Static functions</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="keyword">static</span> cpl_error_code irplib_polynomial_multiply_1d_factor(cpl_polynomial *,</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>                                                         <span class="keyword">const</span> cpl_vector *,</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>                                                         cpl_size);</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_polynomial_solve_1d_all_test(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_polynomial_test_root_all_macro(<span class="keyword">const</span> cpl_vector *, cpl_size,</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>                                                   <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>                                                   <span class="keywordtype">unsigned</span>);</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">                                  Main</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> {</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="comment">/* Initialize CPL */</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     irplib_polynomial_solve_1d_all_test();</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> }</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> </div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_polynomial_solve_1d_all_test(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> {</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     cpl_polynomial * p2d   = cpl_polynomial_new(2);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     cpl_polynomial * p1d   = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>     cpl_vector     * xtrue = cpl_vector_new(2);</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     <span class="keyword">const</span> cpl_size   maxdegree = 4; <span class="comment">/* Largest robustly handled degree */</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     cpl_size         nreal = 0;</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     cpl_size         i;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>     cpl_test_eq(<a class="code" href="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385" title="Compute all n roots of p(x) = 0, where p(x) is of degree n, n > 0.">irplib_polynomial_solve_1d_all</a>(NULL, xtrue, &nreal),</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>                 CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     cpl_test_eq(<a class="code" href="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385" title="Compute all n roots of p(x) = 0, where p(x) is of degree n, n > 0.">irplib_polynomial_solve_1d_all</a>(p1d, NULL, &nreal),</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                 CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     cpl_test_eq(<a class="code" href="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385" title="Compute all n roots of p(x) = 0, where p(x) is of degree n, n > 0.">irplib_polynomial_solve_1d_all</a>(p1d, xtrue, NULL),</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                 CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     cpl_test_eq(<a class="code" href="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385" title="Compute all n roots of p(x) = 0, where p(x) is of degree n, n > 0.">irplib_polynomial_solve_1d_all</a>(p2d, xtrue, &nreal),</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                 CPL_ERROR_INVALID_TYPE);</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     cpl_test_error(CPL_ERROR_INVALID_TYPE);</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     cpl_test_eq(<a class="code" href="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385" title="Compute all n roots of p(x) = 0, where p(x) is of degree n, n > 0.">irplib_polynomial_solve_1d_all</a>(p1d, xtrue, &nreal),</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>                 CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>     cpl_test_error(CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     <span class="comment">/* Create a 1st degree polynomial, x = 0 */</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     i = 1;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     cpl_test_eq(cpl_polynomial_set_coeff(p1d, &i, 1.0), CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     cpl_test_eq(<a class="code" href="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385" title="Compute all n roots of p(x) = 0, where p(x) is of degree n, n > 0.">irplib_polynomial_solve_1d_all</a>(p1d, xtrue, &nreal),</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                 CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     cpl_test_error(CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     cpl_polynomial_delete(p1d);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     cpl_polynomial_delete(p2d);</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     <span class="keywordflow">for</span> (nreal = 1; nreal <= maxdegree; nreal++) {</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>         <span class="comment">/* A single, zero-valued root with multiplicity equal to degree */</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>         <span class="keywordtype">double</span> xreal = 0.0;</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>         cpl_vector_set_size(xtrue, nreal);</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> </div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>         (void)cpl_vector_fill(xtrue, xreal);</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>         irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>                                         2.0 * DBL_EPSILON, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>         <span class="comment">/* A single, non-zero integer root with multiplicity equal to degree */</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>         xreal = 1.0;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>         (void)cpl_vector_fill(xtrue, xreal);</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>         irplib_polynomial_test_root_all(xtrue, nreal, 1.0,</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>                                         2.0 * DBL_EPSILON, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>         <span class="comment">/* degree distinct real roots - with rounding */</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>         <span class="keywordflow">for</span> (i = 0; i < nreal; i++) {</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>             (void)cpl_vector_set(xtrue, i, 2.0 * (<span class="keywordtype">double</span>)i - CPL_MATH_E);</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>         }</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>         irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>                                         20.0 * DBL_EPSILON,</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                                         300.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>         <span class="comment">/* All real, one zero, one positive, rest negative, sum zero */</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>         <span class="keywordflow">for</span> (i = 0; i < nreal-1; i++) {</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>             (void)cpl_vector_set(xtrue, nreal-i-2, (<span class="keywordtype">double</span>)(-i));</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>         }</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>         (void)cpl_vector_set(xtrue, nreal-1, (<span class="keywordtype">double</span>)(nreal-1)); <span class="comment">/* FIXME: ? */</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>         irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>                                         16.0*DBL_EPSILON, 600.0*DBL_EPSILON);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>         <span class="keywordflow">if</span> (nreal < 2) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>         <span class="comment">/* Two complex, conjugate roots, the rest is real</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment">           with multiplicity degree-2 */</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>         (void)cpl_vector_fill(xtrue, 2.0);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>         (void)cpl_vector_set(xtrue, nreal-2, -1.0);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>         (void)cpl_vector_set(xtrue, nreal-1, 1.0);</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>         irplib_polynomial_test_root_all(xtrue, nreal-2, CPL_MATH_PI,</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>                                         30.0*DBL_EPSILON, 25.0*DBL_EPSILON);</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>         <span class="keywordflow">if</span> (nreal < 3) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>         <span class="keywordflow">if</span> (nreal > 4) {</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>             <span class="comment">/* Two real roots, the smaller with multiplicity degree-1 */</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>             (void)cpl_vector_fill(xtrue, 1.0);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>             (void)cpl_vector_set(xtrue, nreal - 1 , 2.0);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>             irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>                                             DBL_EPSILON, DBL_EPSILON);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>             <span class="comment">/* Same with negative roots */</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>             (void)cpl_vector_fill(xtrue, -1.0);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>             (void)cpl_vector_set(xtrue, 0 , -2.0);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>             irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>                                             DBL_EPSILON, DBL_EPSILON);</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>             <span class="comment">/* Two real roots, the larger with multiplicity degree-1 */</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>             (void)cpl_vector_fill(xtrue, 2.0);</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>             (void)cpl_vector_set(xtrue, 0, 1.0);</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>             irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>                                             DBL_EPSILON, DBL_EPSILON);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>         }</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>         <span class="keywordflow">if</span> (nreal > 3) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>         <span class="comment">/* Same with negative roots */</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>         (void)cpl_vector_fill(xtrue, -2.0 * FLT_EPSILON);</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>         (void)cpl_vector_set(xtrue, 0, -1.0);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>         irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>                                         DBL_EPSILON, 2.0*DBL_EPSILON);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>         <span class="comment">/* A more extreme case: Same with negative roots */</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>         (void)cpl_vector_fill(xtrue, -2.0e-3 * FLT_EPSILON);</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>         (void)cpl_vector_set(xtrue, 0, -1.0);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>         irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>                                         FLT_EPSILON, 3.0*DBL_EPSILON);</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>         <span class="keywordflow">if</span> (nreal != 3) {</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>             <span class="comment">/* The most extreme case: Same with negative roots */</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>             (void)cpl_vector_fill(xtrue, -2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>             (void)cpl_vector_set(xtrue, 0, -1.0);</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>             irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                                             DBL_EPSILON, 2.0*DBL_EPSILON);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>             (void)cpl_vector_set(xtrue, 0, -1.0);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>             (void)cpl_vector_set(xtrue, 1, -2.0e-4 * FLT_EPSILON);</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>             (void)cpl_vector_set(xtrue, 2,  2.0e-4 * FLT_EPSILON);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>             irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                                             FLT_EPSILON, 2.0*DBL_EPSILON);</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>         }</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>         <span class="comment">/* Two complex conjugate roots, remaining:</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment">           small, with multiplicity degree-2 */</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>         (void)cpl_vector_fill(xtrue, 2.0*DBL_EPSILON);</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>         (void)cpl_vector_set(xtrue, nreal - 2 , 3.0);</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         (void)cpl_vector_set(xtrue, nreal - 1 , 2.0);</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         irplib_polynomial_test_root_all(xtrue, nreal - 2, CPL_MATH_PI,</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>                                         4.0 * DBL_EPSILON, DBL_EPSILON);</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>         <span class="comment">/* Two complex conjugate roots with small real part, remaining:</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment">           with multiplicity degree-2 */</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>         (void)cpl_vector_fill(xtrue, 3.0);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>         (void)cpl_vector_set(xtrue, nreal - 2 , -1.0);</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>         (void)cpl_vector_set(xtrue, nreal - 1 , 2.0);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> </div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         irplib_polynomial_test_root_all(xtrue, nreal - 2, CPL_MATH_PI,</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                                         6.0*DBL_EPSILON, 220.0*DBL_EPSILON);</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> </div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     }</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="preprocessor">#if MAXDEGREE > 2</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="preprocessor"></span>    <span class="comment">/* Cover branch fixing cancellation with one negative,</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment">         one positive near-zero and one positive root. */</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     nreal = 3;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     cpl_vector_set_size(xtrue, nreal);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <span class="comment">/* -2, epsilon, 1.5  */</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     (void)cpl_vector_set(xtrue, 0, -2.0);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     (void)cpl_vector_set(xtrue, 1,  2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     (void)cpl_vector_set(xtrue, 2,  1.5);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> </div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     irplib_polynomial_test_root_all(xtrue, nreal, 1.0,</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                                     4.0*DBL_EPSILON, 30.0*DBL_EPSILON);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="preprocessor">#if MAXDEGREE > 3</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="preprocessor"></span>    nreal = 4;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     cpl_vector_set_size(xtrue, nreal);</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     <span class="comment">/* Depressed has zero as root */</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     (void)cpl_vector_set(xtrue, 0, -1.0);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     (void)cpl_vector_set(xtrue, 1,  1.0);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     (void)cpl_vector_set(xtrue, 2,  2.0);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     (void)cpl_vector_set(xtrue, 3,  2.0);</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>                                     2.0 * DBL_EPSILON, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     <span class="comment">/* Depressed has zero as root, and two complex roots*/</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     irplib_polynomial_test_root_all(xtrue, 2, CPL_MATH_PI,</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>                                     2.0 * DBL_EPSILON, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     <span class="comment">/* Depressed is biquadratic, with 4 real roots */</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     (void)cpl_vector_set(xtrue, 0, -2.0);</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     (void)cpl_vector_set(xtrue, 1, -1.0);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     (void)cpl_vector_set(xtrue, 2,  1.0);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     (void)cpl_vector_set(xtrue, 3,  2.0);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>                                     2.0 * DBL_EPSILON, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     <span class="comment">/* Depressed is biquadratic, with 2 real roots */</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     (void)cpl_vector_set(xtrue, 0, -1.0);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     (void)cpl_vector_set(xtrue, 1, 1.0);</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     (void)cpl_vector_set(xtrue, 2, 0.0);</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     (void)cpl_vector_set(xtrue, 3, 2.0);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     irplib_polynomial_test_root_all(xtrue, 2, CPL_MATH_PI,</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>                                     2.0 * DBL_EPSILON, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <span class="comment">/* Depressed is biquadratic (the quadratic has real, negative roots),</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="comment">       with 0 real roots */</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     (void)cpl_vector_set(xtrue, 0, 1.0);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     (void)cpl_vector_set(xtrue, 1, 2.0);</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     (void)cpl_vector_set(xtrue, 2, 1.0);</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     (void)cpl_vector_set(xtrue, 3, 3.0);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     irplib_polynomial_test_root_all(xtrue, 0, CPL_MATH_PI,</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>                                     10.0 * DBL_EPSILON, 10.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="comment">/* roots: 0, 0, ai, -ai */</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     (void)cpl_vector_set(xtrue, 0,  0.0);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     (void)cpl_vector_set(xtrue, 1,  0.0);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     (void)cpl_vector_set(xtrue, 2,  0.0);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     (void)cpl_vector_set(xtrue, 3,  2.0);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     irplib_polynomial_test_root_all(xtrue, 2, CPL_MATH_PI,</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                                     2.0 * DBL_EPSILON, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     p1d = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     i = 0;</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     cpl_polynomial_set_coeff(p1d, &i, -5.0);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     i = 1;</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     cpl_polynomial_set_coeff(p1d, &i, -1.0);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     i = 2;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     cpl_polynomial_set_coeff(p1d, &i, -2.0);</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     i = 4;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     cpl_polynomial_set_coeff(p1d, &i,  1.0);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     cpl_test_eq(<a class="code" href="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385" title="Compute all n roots of p(x) = 0, where p(x) is of degree n, n > 0.">irplib_polynomial_solve_1d_all</a>(p1d, xtrue, &nreal),</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>                 CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Computed roots (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" real): "</span>,</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>                  nreal);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     <span class="keywordflow">if</span> (cpl_msg_get_level() <= CPL_MSG_INFO)</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         cpl_vector_dump(xtrue, stderr);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Residual: %g -> %g "</span>, cpl_vector_get(xtrue, 0),</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>                  cpl_polynomial_eval_1d(p1d, cpl_vector_get(xtrue, 0), NULL) );</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Residual: %g -> %g "</span>, cpl_vector_get(xtrue, 1),</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>                  cpl_polynomial_eval_1d(p1d, cpl_vector_get(xtrue, 1), NULL) );</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     cpl_polynomial_delete(p1d);</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     (void)cpl_vector_set(xtrue, 0, 0.0);</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     (void)cpl_vector_set(xtrue, 1, 2.0);</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     (void)cpl_vector_set(xtrue, 2, 1.0);</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     (void)cpl_vector_set(xtrue, 3, 1.0);</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     irplib_polynomial_test_root_all(xtrue, 0, CPL_MATH_PI,</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>                                     2.0 * DBL_EPSILON, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     (void)cpl_vector_set(xtrue, 0, -1.0);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     (void)cpl_vector_set(xtrue, 1, 2.0);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     (void)cpl_vector_set(xtrue, 2, 1.0);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     (void)cpl_vector_set(xtrue, 3, 3.0);</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     irplib_polynomial_test_root_all(xtrue, 0, CPL_MATH_PI,</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>                                     3.0 * DBL_EPSILON, 3.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="preprocessor">#if MAXDEGREE > 4</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="preprocessor"></span>    nreal = 5;</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     cpl_vector_set_size(xtrue, nreal);</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     <span class="comment">/* Depressed has zero as root */</span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     (void)cpl_vector_set(xtrue, 0, -1.0);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     (void)cpl_vector_set(xtrue, 1,  1.0);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     (void)cpl_vector_set(xtrue, 2,  2.0);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     (void)cpl_vector_set(xtrue, 3,  3.0);</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     (void)cpl_vector_set(xtrue, 4,  4.0);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>                                     48.0 * DBL_EPSILON, 2800.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     irplib_polynomial_test_root_all(xtrue, nreal-2, CPL_MATH_PI,</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>                                     8.0 * DBL_EPSILON, 4000.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     irplib_polynomial_test_root_all(xtrue, nreal-4, CPL_MATH_PI,</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                                     4.0 * DBL_EPSILON, 600.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="preprocessor">#if MAXDEGREE > 5</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> <span class="preprocessor"></span>    nreal = 6;</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     cpl_vector_set_size(xtrue, nreal);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     <span class="comment">/* Depressed has zero as root */</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     (void)cpl_vector_set(xtrue, 0, -1.0);</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>     (void)cpl_vector_set(xtrue, 1,  1.0);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     (void)cpl_vector_set(xtrue, 2,  2.0);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     (void)cpl_vector_set(xtrue, 3,  3.0);</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     (void)cpl_vector_set(xtrue, 4,  4.0);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     (void)cpl_vector_set(xtrue, 5,  5.0);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>     irplib_polynomial_test_root_all(xtrue, nreal, CPL_MATH_PI,</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>                                     240.0 * DBL_EPSILON, 50.0e3 * DBL_EPSILON);</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     irplib_polynomial_test_root_all(xtrue, nreal-2, CPL_MATH_PI,</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>                                     8.0 * DBL_EPSILON, 25.0e3 * DBL_EPSILON);</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>     irplib_polynomial_test_root_all(xtrue, nreal-4, CPL_MATH_PI,</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                                     12.0 * DBL_EPSILON, 1600.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     cpl_vector_delete(xtrue);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> }</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> </div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> cpl_error_code irplib_polynomial_multiply_1d_factor(cpl_polynomial * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>                                                     <span class="keyword">const</span> cpl_vector * roots,</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>                                                     cpl_size nreal)</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> {</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     <span class="keyword">const</span> cpl_size nroots = cpl_vector_get_size(roots);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     cpl_size       i, degree;</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     cpl_ensure_code(<span class="keyword">self</span>  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     cpl_ensure_code(roots != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) == 1,</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>                      CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     cpl_ensure_code(nreal >= 0,    CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     cpl_ensure_code(nreal <= nroots,</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>                      CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     cpl_ensure_code((cpl_vector_get_size(roots) - nreal) % 2 == 0,</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>                      CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     i = 0;</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>     degree = cpl_polynomial_get_degree(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     cpl_ensure_code(degree > 0 || cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i) != 0.0,</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>                      CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     <span class="keywordflow">for</span> (i = 0; i < nreal; i++) {</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> root = cpl_vector_get(roots, i);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>         <span class="keywordtype">double</span> prev = 0.0;</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>         cpl_size j;</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>         degree++;</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>         <span class="keywordflow">for</span> (j = degree; j >= 0; j--) {</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>             <span class="keywordtype">double</span> value = 0.0;</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>             <span class="keywordtype">double</span> newval;</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>             <span class="keywordflow">if</span> (j > 0) {</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>                 <span class="keyword">const</span> cpl_size jj = j - 1;</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                 newval = value = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &jj);</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                 newval = 0.0;</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>             }</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>             <span class="keywordflow">if</span> (j < degree) {</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                 newval -= root * prev;</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>             }</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>             cpl_polynomial_set_coeff(<span class="keyword">self</span>, &j, newval);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>             prev = value;</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>         }</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     }</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     <span class="comment">/* Multiplication with the complex conjugate root</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="comment">       (x-a-ib) (x-a+ib) p(x) = (x-a)^2 p(x) + b^2 p(x) */</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     <span class="keywordflow">for</span> (; i < nroots; i += 2) {</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> a = cpl_vector_get(roots, i);</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> b = cpl_vector_get(roots, i+1);</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>         cpl_vector * aroot = cpl_vector_new(2);</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>         cpl_polynomial * copy = cpl_polynomial_duplicate(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>         cpl_vector_fill(aroot, a);</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>         irplib_polynomial_multiply_1d_factor(<span class="keyword">self</span>, aroot, 2);</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>         <a class="code" href="group__irplib__polynomial.html#ga55c030413e6ef112753b280ad5213786" title="Multiply a polynomial with a scalar.">irplib_polynomial_multiply_scalar</a>(copy, copy, b * b);</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>         <a class="code" href="group__irplib__polynomial.html#ga90e13f05c9addc584f154279681d1853" title="Add two polynomials of the same dimension.">irplib_polynomial_add</a>(<span class="keyword">self</span>, <span class="keyword">self</span>, copy);</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>         cpl_vector_delete(aroot);</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>         cpl_polynomial_delete(copy);</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     }</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> </div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> }</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> irplib_polynomial_test_root_all_macro(<span class="keyword">const</span> cpl_vector * <span class="keyword">self</span>, cpl_size nreal,</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>                                       <span class="keywordtype">double</span> factor, <span class="keywordtype">double</span> tolerance,</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                                       <span class="keywordtype">double</span> resitol, <span class="keywordtype">unsigned</span> line)</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> {</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> </div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     <span class="keyword">const</span> cpl_size degree = cpl_vector_get_size(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     cpl_polynomial * p1d = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     cpl_vector * roots = cpl_vector_new(degree);</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     cpl_size i = 0;</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     cpl_size jreal;</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>     cpl_test_eq(cpl_polynomial_set_coeff(p1d, &i, factor), CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     cpl_test_eq(irplib_polynomial_multiply_1d_factor(p1d, <span class="keyword">self</span>, nreal),</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>                 CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>     cpl_test_eq(<a class="code" href="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385" title="Compute all n roots of p(x) = 0, where p(x) is of degree n, n > 0.">irplib_polynomial_solve_1d_all</a>(p1d, roots, &jreal),</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>                 CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> </div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>     cpl_test_eq(jreal, nreal);</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>     <span class="keywordflow">if</span> (jreal != nreal) {</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>         cpl_msg_info(cpl_func, <span class="stringliteral">"1D-polynomial:"</span>);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>         cpl_polynomial_dump(p1d, stderr);</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"True roots (%"</span> CPL_SIZE_FORMAT</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>                       <span class="stringliteral">" real): (line=%u)"</span>, nreal, line);</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>         cpl_vector_dump(<span class="keyword">self</span>, stderr);</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Computed roots (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" real): "</span>,</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>                       jreal);</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>         cpl_vector_dump(roots, stderr);</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cpl_msg_get_level() < CPL_MSG_WARNING) {</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>         cpl_bivector * dump =</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>             cpl_bivector_wrap_vectors((cpl_vector*)<span class="keyword">self</span>, roots);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>         cpl_msg_warning(cpl_func, <span class="stringliteral">"Comparing %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" roots (%"</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                         CPL_SIZE_FORMAT <span class="stringliteral">" real): (line=%u)"</span>,</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                         degree, nreal, line);</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>         cpl_bivector_dump(dump, stderr);</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>         cpl_bivector_unwrap_vectors(dump);</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>     }</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> </div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>     <span class="keywordflow">for</span> (i = 0; i < jreal; i++) {</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> root = cpl_vector_get(roots, i);</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> residual = cpl_polynomial_eval_1d(p1d, root, NULL);</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> </div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>         cpl_test_abs(root, cpl_vector_get(<span class="keyword">self</span>, i), tolerance);</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> </div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>         cpl_test_abs(residual, 0.0, resitol);</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     }</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> </div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>     <span class="keywordflow">for</span> (i = nreal; i < degree; i++) {</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> root = cpl_vector_get(roots, i);</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>         cpl_test_abs(root, cpl_vector_get(<span class="keyword">self</span>, i), tolerance);</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> </div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>         <span class="comment">/* FIXME: Verify residual as well */</span></div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span> </div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>     }</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> </div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>     cpl_vector_delete(roots);</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>     cpl_polynomial_delete(p1d);</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> </div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__polynomial_8c_source.html b/html/irplib__polynomial_8c_source.html
deleted file mode 100644
index a8a66f9..0000000
--- a/html/irplib__polynomial_8c_source.html
+++ /dev/null
@@ -1,1295 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_polynomial.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_polynomial.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_polynomial.c,v 1.35 2013-01-29 08:43:33 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO Common Pipeline Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-01-29 08:43:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.35 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include "irplib_polynomial.h"</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <assert.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/* DBL_MAX: */</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">                                   Macro definitions</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#define IRPLIB_SWAP(a,b) { const double t=(a);(a)=(b);(b)=t; }</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span><span class="preprocessor">#define irplib_trace() cpl_msg_info(cpl_func, "%d: Trace", __LINE__)</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor"></span><span class="preprocessor">#define irplib_trace() </span><span class="comment">/* Trace */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">                                   Static functions</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__irplib__polynomial.html#gac5c97217542c30f329b225a9c833ea3b" title="Find the max residual on a 2nd degree 1D-polynomial on the roots.">irplib_polynomial_eval_2_max</a>(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, cpl_boolean,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>                                            <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__irplib__polynomial.html#ga8524e951a5bd6930a4336a66bdce4a3d" title="Find the max residual on a 3rd degree 1D-polynomial on the roots.">irplib_polynomial_eval_3_max</a>(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywor [...]
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>                                            cpl_boolean, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="keyword">static</span> cpl_boolean irplib_polynomial_solve_1d_2(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>                                                 <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="keyword">static</span> cpl_boolean irplib_polynomial_solve_1d_3(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>                                                 <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>                                                 cpl_boolean *,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>                                                 cpl_boolean *);</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_polynomial_solve_1d_31(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>                                           <span class="keywordtype">double</span> *, cpl_boolean *);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_polynomial_solve_1d_32(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span> *,</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>                                           <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, cpl_boolean *);</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_polynomial_solve_1d_3r(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>                                           <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_polynomial_solve_1d_3c(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>                                           <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>                                           <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>                                           cpl_boolean *, cpl_boolean *);</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="keyword">static</span> cpl_error_code irplib_polynomial_solve_1d_4(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                                                    <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, cpl_size *,</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>                                                    <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *,</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                                                    <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="keyword">static</span> cpl_error_code irplib_polynomial_solve_1d_nonzero(cpl_polynomial *,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                                                          cpl_vector *,</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                                                          cpl_size *);</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="keyword">static</span> cpl_error_code irplib_polynomial_divide_1d_root(cpl_polynomial *, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                                                        <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor">#ifdef IPRLIB_POLYNOMIAL_USE_MONOMIAL_ROOT</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor"></span><span class="keyword">static</span> <span class="keywordtype">double</span> irplib_polynomial_depress_1d(cpl_polynomial *);</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment">                              Function codes</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE > CPL_VERSION(5, 92, 0)</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno"><a class="code" href="group__irplib__polynomial.html#ga90e13f05c9addc584f154279681d1853">  134</a></span> cpl_error_code <a class="code" href="group__irplib__polynomial.html#ga90e13f05c9addc584f154279681d1853" title="Add two polynomials of the same dimension.">irplib_polynomial_add</a>(cpl_polynomial * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>                                      <span class="keyword">const</span> cpl_polynomial * first,</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>                                      <span class="keyword">const</span> cpl_polynomial * second)</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> {</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     cpl_size       degree0 = cpl_polynomial_get_degree(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     <span class="keyword">const</span> cpl_size degree1 = cpl_polynomial_get_degree(first);</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="keyword">const</span> cpl_size degree2 = cpl_polynomial_get_degree(second);</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="keyword">const</span> cpl_size maxdeg  = degree1 > degree2 ? degree1 : degree2;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     cpl_ensure_code(<span class="keyword">self</span>   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     cpl_ensure_code(first  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     cpl_ensure_code(second != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) ==</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>                     cpl_polynomial_get_dimension(first),</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>                     CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) ==</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>                     cpl_polynomial_get_dimension(second),</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>                     CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <span class="comment">/* FIXME: */</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) == 1,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                     CPL_ERROR_UNSUPPORTED_MODE);</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <span class="keywordflow">if</span> (degree0 < maxdeg) {</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>         degree0 = maxdeg;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>         <span class="comment">/* Reset coefficients in self as needed */</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>         <span class="keywordflow">for</span> (; degree0 > maxdeg; degree0--) {</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>             cpl_polynomial_set_coeff(<span class="keyword">self</span>, &degree0, 0.0);</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>         }</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     }</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     <span class="comment">/* assert( degree0 == maxdeg ); */</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     <span class="keywordflow">for</span> (; degree0 >= 0; degree0--) {</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> val1 = cpl_polynomial_get_coeff(first, &degree0);</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> val2 = cpl_polynomial_get_coeff(second, &degree0);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>         cpl_polynomial_set_coeff(<span class="keyword">self</span>, &degree0, val1 + val2);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     }</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> }</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno"><a class="code" href="group__irplib__polynomial.html#ga0e83ae3c9e7accb70fdfe1aca030e084">  195</a></span> cpl_error_code <a class="code" href="group__irplib__polynomial.html#ga0e83ae3c9e7accb70fdfe1aca030e084" title="Subtract two polynomials of the same dimension.">irplib_polynomial_subtract</a>(cpl_polynomial * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>                                           <span class="keyword">const</span> cpl_polynomial * first,</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>                                           <span class="keyword">const</span> cpl_polynomial * second)</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> {</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     cpl_size       degree0 = cpl_polynomial_get_degree(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     <span class="keyword">const</span> cpl_size degree1 = cpl_polynomial_get_degree(first);</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     <span class="keyword">const</span> cpl_size degree2 = cpl_polynomial_get_degree(second);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     <span class="keyword">const</span> cpl_size maxdeg  = degree1 > degree2 ? degree1 : degree2;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     cpl_ensure_code(<span class="keyword">self</span>   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     cpl_ensure_code(first  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     cpl_ensure_code(second != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) ==</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>                     cpl_polynomial_get_dimension(first),</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>                     CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) ==</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>                     cpl_polynomial_get_dimension(second),</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>                     CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     <span class="comment">/* FIXME: */</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) == 1,</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>                     CPL_ERROR_UNSUPPORTED_MODE);</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     <span class="keywordflow">if</span> (degree0 < maxdeg) {</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>         degree0 = maxdeg;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>         <span class="comment">/* Reset coefficients in self as needed */</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>         <span class="keywordflow">for</span> (; degree0 > maxdeg; degree0--) {</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>             cpl_polynomial_set_coeff(<span class="keyword">self</span>, &degree0, 0.0);</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>         }</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     }</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> </div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     <span class="comment">/* assert( degree0 == maxdeg ); */</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     <span class="keywordflow">for</span> (; degree0 >= 0; degree0--) {</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> val1 = cpl_polynomial_get_coeff(first, &degree0);</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> val2 = cpl_polynomial_get_coeff(second, &degree0);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         cpl_polynomial_set_coeff(<span class="keyword">self</span>, &degree0, val1 - val2);</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     }</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> }</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno"><a class="code" href="group__irplib__polynomial.html#ga55c030413e6ef112753b280ad5213786">  253</a></span> cpl_error_code <a class="code" href="group__irplib__polynomial.html#ga55c030413e6ef112753b280ad5213786" title="Multiply a polynomial with a scalar.">irplib_polynomial_multiply_scalar</a>(cpl_polynomial * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>                                                  <span class="keyword">const</span> cpl_polynomial * other,</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                                                  <span class="keywordtype">double</span> factor)</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> {</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     <span class="keyword">const</span> cpl_size maxdeg  = cpl_polynomial_get_degree(other);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <span class="keyword">const</span> cpl_size zerodeg = cpl_polynomial_get_degree(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     cpl_size       degree;</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     cpl_ensure_code(<span class="keyword">self</span>  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     cpl_ensure_code(other != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) == 1,</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>                     CPL_ERROR_UNSUPPORTED_MODE);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     cpl_ensure_code(cpl_polynomial_get_dimension(other) == 1,</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                     CPL_ERROR_UNSUPPORTED_MODE);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     <span class="keywordflow">for</span> (degree = 0; degree <= maxdeg; degree++) {</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> val = factor * cpl_polynomial_get_coeff(other, &degree);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>         cpl_polynomial_set_coeff(<span class="keyword">self</span>, &degree, val);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     }</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     <span class="comment">/* Reset coefficients in self as needed */</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     <span class="keywordflow">for</span> (; degree <= zerodeg; degree++) {</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>         cpl_polynomial_set_coeff(<span class="keyword">self</span>, &zerodeg, 0.0);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     }</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> }</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="preprocessor"></span><span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno"><a class="code" href="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385">  310</a></span> cpl_error_code <a class="code" href="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385" title="Compute all n roots of p(x) = 0, where p(x) is of degree n, n > 0.">irplib_polynomial_solve_1d_all</a>(<span class="keyword">const</span> cpl_polynomial * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>                                               cpl_vector * roots,</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>                                               cpl_size * preal)</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> {</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     cpl_error_code error = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     cpl_polynomial * p;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     cpl_ensure_code(<span class="keyword">self</span>  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     cpl_ensure_code(roots != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     cpl_ensure_code(preal != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) == 1,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                     CPL_ERROR_INVALID_TYPE);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     cpl_ensure_code(cpl_polynomial_get_degree(<span class="keyword">self</span>) > 0,</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>                     CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     cpl_ensure_code(cpl_polynomial_get_degree(<span class="keyword">self</span>) ==</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>                     cpl_vector_get_size(roots), CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     *preal = 0;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     p = cpl_polynomial_duplicate(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     error = irplib_polynomial_solve_1d_nonzero(p, roots, preal);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     cpl_polynomial_delete(p);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     <span class="keywordflow">return</span> error;</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> }</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="keyword">static</span> cpl_error_code irplib_polynomial_solve_1d_nonzero(cpl_polynomial * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                                                          cpl_vector * roots,</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>                                                          cpl_size * preal)</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> {</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     cpl_error_code error   = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     <span class="keyword">const</span> cpl_size ncoeffs = 1 + cpl_polynomial_get_degree(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     cpl_ensure_code(<span class="keyword">self</span>  != NULL,  CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     cpl_ensure_code(roots != NULL,  CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     cpl_ensure_code(preal != NULL,  CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) == 1,</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                     CPL_ERROR_INVALID_TYPE);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     cpl_ensure_code(ncoeffs   > 1,  CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     cpl_ensure_code(*preal >= 0,    CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     cpl_ensure_code(ncoeffs + *preal == 1+cpl_vector_get_size(roots),</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>                     CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     <span class="keywordflow">switch</span> (ncoeffs) {</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>     <span class="keywordflow">case</span> 2 : {</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>         <span class="keyword">const</span> cpl_size i1 = 1;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>         <span class="keyword">const</span> cpl_size i0 = 0;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p1 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i1);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p0 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i0);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>         cpl_vector_set(roots, (*preal)++, -p0/p1);</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     }</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     <span class="keywordflow">case</span> 3 : {</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         <span class="keyword">const</span> cpl_size i2 = 2;</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>         <span class="keyword">const</span> cpl_size i1 = 1;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>         <span class="keyword">const</span> cpl_size i0 = 0;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p2 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i2);</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p1 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i1);</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p0 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i0);</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>         <span class="keywordtype">double</span>         x1, x2;</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>         <span class="keywordflow">if</span> (irplib_polynomial_solve_1d_2(p2, p1, p0, &x1, &x2)) {</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>             <span class="comment">/* This is the complex root in the upper imaginary half-plane */</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>             cpl_vector_set(roots, (*preal)  , x1);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>             cpl_vector_set(roots, (*preal)+1, x2);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>             cpl_vector_set(roots, (*preal)++, x1);</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>             cpl_vector_set(roots, (*preal)++, x2);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>         }</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     }</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     <span class="keywordflow">case</span> 4 : {</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>         <span class="keyword">const</span> cpl_size i3 = 3;</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>         <span class="keyword">const</span> cpl_size i2 = 2;</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>         <span class="keyword">const</span> cpl_size i1 = 1;</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>         <span class="keyword">const</span> cpl_size i0 = 0;</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p3 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i3);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p2 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i2);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p1 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i1);</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p0 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i0);</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>         <span class="keywordtype">double</span>         x1, x2, x3;</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>         <span class="keywordflow">if</span> (irplib_polynomial_solve_1d_3(p3, p2, p1, p0, &x1, &x2, &x3,</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>                                          NULL, NULL)) {</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>             cpl_vector_set(roots, (*preal)++, x1);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>             <span class="comment">/* This is the complex root in the upper imaginary half-plane */</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>             cpl_vector_set(roots, (*preal)  , x2);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>             cpl_vector_set(roots, (*preal)+1, x3);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>             cpl_vector_set(roots, (*preal)++, x1);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>             cpl_vector_set(roots, (*preal)++, x2);</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>             cpl_vector_set(roots, (*preal)++, x3);</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>         }</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     }</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     <span class="keywordflow">case</span> 5 : {</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>         <span class="keyword">const</span> cpl_size i4 = 4;</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>         <span class="keyword">const</span> cpl_size i3 = 3;</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>         <span class="keyword">const</span> cpl_size i2 = 2;</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>         <span class="keyword">const</span> cpl_size i1 = 1;</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>         <span class="keyword">const</span> cpl_size i0 = 0;</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p4 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i4);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p3 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i3);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p2 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i2);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p1 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i1);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>   p0 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i0);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>         <span class="keywordtype">double</span>         x1, x2, x3, x4;</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>         cpl_size       nreal;</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>         error = irplib_polynomial_solve_1d_4(p4, p3, p2, p1, p0, &nreal,</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                                              &x1, &x2, &x3, &x4);</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>         <span class="keywordflow">if</span> (!error) {</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>             cpl_vector_set(roots, (*preal)  , x1);</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>             cpl_vector_set(roots, (*preal)+1, x2);</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>             cpl_vector_set(roots, (*preal)+2, x3);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>             cpl_vector_set(roots, (*preal)+3, x4);</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>             *preal += nreal;</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>         }</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     }</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     <span class="keywordflow">default</span>: {</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>         <span class="comment">/* Try to reduce the problem by finding a single root */</span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> <span class="preprocessor">#ifndef IPRLIB_POLYNOMIAL_USE_MONOMIAL_ROOT</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> <span class="preprocessor"></span>        <span class="keyword">const</span> cpl_size    n0 = ncoeffs-1;</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> pn0 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &n0);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>         <span class="keyword">const</span> cpl_size    n1 = ncoeffs-2;</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> pn1 = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &n1);</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>         <span class="comment">/* First guess of root is the root average.</span></div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <span class="comment">           FIXME: May need refinement, e.g. via bisection */</span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> rmean = -pn1 / (pn0 * n0);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>         <span class="keywordtype">double</span> root = rmean;</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="preprocessor"></span>        <span class="comment">/* Try an analytical solution to a (shifted) monomial */</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>         cpl_polynomial * copy = cpl_polynomial_duplicate(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>         <span class="keyword">const</span> cpl_size    i0 = 0;</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> rmean = irplib_polynomial_depress_1d(copy);</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> c0 = cpl_polynomial_get_coeff(copy, &i0);</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>         <span class="keywordtype">double</span> root = rmean + ((n0&1) && c0 < 0.0 ? -1.0 : 1.0)</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>             * pow(fabs(c0), 1.0/n0);</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>         cpl_polynomial_delete(copy);</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>         error = cpl_polynomial_solve_1d(<span class="keyword">self</span>, root, &root, 1);</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>         <span class="keywordflow">if</span> (!error) {</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>             cpl_vector_set(roots, (*preal)++, root);</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> </div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>             irplib_polynomial_divide_1d_root(<span class="keyword">self</span>, root, NULL);</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>             error = irplib_polynomial_solve_1d_nonzero(<span class="keyword">self</span>, roots, preal);</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>             <span class="keywordflow">if</span> (!error && *preal > 1) {</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>                 <span class="comment">/* Sort the real roots */</span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>                 <span class="comment">/* FIXME: Assumes that all roots found so far are real */</span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>                 cpl_vector * reals = cpl_vector_wrap(*preal,</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>                                                      cpl_vector_get_data(roots));</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>                 cpl_vector_sort(reals, 1);</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>                 (void)cpl_vector_unwrap(reals);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>             }</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>         }</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     }</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     }</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     <span class="keywordflow">return</span> error;</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> }</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> <span class="keyword">static</span> cpl_boolean irplib_polynomial_solve_1d_2(<span class="keywordtype">double</span> p2, <span class="keywordtype">double</span> p1, <span class="keywordtype">double</span> p0,</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>                                                 <span class="keywordtype">double</span> * px1,</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>                                                 <span class="keywordtype">double</span> * px2) {</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> </div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> sqrtD = sqrt(fabs(p1 * p1 - 4.0 * p2 * p0));</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>     cpl_boolean is_complex = CPL_FALSE;</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>     <span class="keywordtype">double</span> x1 = -0.5 * p1 / p2; <span class="comment">/* Double root */</span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>     <span class="keywordtype">double</span> x2;</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> </div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     <span class="comment">/* Compute residual, assuming D == 0 */</span></div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>     <span class="keywordtype">double</span> res0 = <a class="code" href="group__irplib__polynomial.html#gac5c97217542c30f329b225a9c833ea3b" title="Find the max residual on a 2nd degree 1D-polynomial on the roots.">irplib_polynomial_eval_2_max</a>(p2, p1, p0, CPL_FALSE, x1, x1);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     <span class="keywordtype">double</span> res;</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> </div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>     assert(px1 != NULL );</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     assert(px2 != NULL );</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> </div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     *px2 = *px1 = x1;</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     <span class="comment">/* Compute residual, assuming D > 0 */</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>     <span class="comment">/* x1 is the root with largest absolute value */</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     <span class="keywordflow">if</span> (p1 > 0.0) {</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>         x1 = -0.5 * (p1 + sqrtD);</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>         x1 = -0.5 * (p1 - sqrtD);</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>     }</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     <span class="comment">/* Compute smaller root via division to avoid</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> <span class="comment">       loss of precision due to cancellation */</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>     x2 = p0 / x1;</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>     x1 /= p2; <span class="comment">/* Scale x1 with leading coefficient */</span></div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> </div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>     res = <a class="code" href="group__irplib__polynomial.html#gac5c97217542c30f329b225a9c833ea3b" title="Find the max residual on a 2nd degree 1D-polynomial on the roots.">irplib_polynomial_eval_2_max</a>(p2, p1, p0, CPL_FALSE, x1, x2);</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     <span class="keywordflow">if</span> (res < res0) {</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>         res0 = res;</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>         <span class="keywordflow">if</span> (x2 > x1) {</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>             *px1 = x1;</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>             *px2 = x2;</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>             irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>             *px1 = x2;</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>             *px2 = x1;</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>             irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>         }</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>     }</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> </div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>     <span class="comment">/* Compute residual, assuming D < 0 */</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> </div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>     x1 = -0.5 * p1 / p2;          <span class="comment">/* Real part of complex root */</span></div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>     x2 =  0.5 * sqrtD / fabs(p2); <span class="comment">/* Positive, imaginary part of root */</span></div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> </div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>     res  = <a class="code" href="group__irplib__polynomial.html#gac5c97217542c30f329b225a9c833ea3b" title="Find the max residual on a 2nd degree 1D-polynomial on the roots.">irplib_polynomial_eval_2_max</a>(p2, p1, p0, CPL_TRUE,  x1, x2);</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> </div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>     <span class="keywordflow">if</span> (res < res0) {</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>         *px1 = x1;</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>         *px2 = x2;</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>         is_complex = CPL_TRUE;</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     }</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     <span class="keywordflow">return</span> is_complex;</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> </div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> }</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> </div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00613"></a><span class="lineno"><a class="code" href="group__irplib__polynomial.html#gac5c97217542c30f329b225a9c833ea3b">  613</a></span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__irplib__polynomial.html#gac5c97217542c30f329b225a9c833ea3b" title="Find the max residual on a 2nd degree 1D-polynomial on the roots.">irplib_polynomial_eval_2_max</a>(<span class="keywordtype">double</span> p2, <span [...]
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                                            cpl_boolean is_c,</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>                                            <span class="keywordtype">double</span> x1, <span class="keywordtype">double</span> x2)</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> {</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>     <span class="keywordtype">double</span> res;</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> </div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     <span class="keywordflow">if</span> (is_c) {</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>         res = fabs(p0 + x1 * (p1 + x1 * p2) - p2 * x2 * x2);</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> r1 = fabs(p0 + x1 * (p1 + x1 * p2));</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> r2 = fabs(p0 + x2 * (p1 + x2 * p2));</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>         res = r1 > r2 ? r1 : r2;</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     }</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> </div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     <span class="keywordflow">return</span> res;</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span> }</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> </div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> </div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00650"></a><span class="lineno"><a class="code" href="group__irplib__polynomial.html#ga8524e951a5bd6930a4336a66bdce4a3d">  650</a></span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__irplib__polynomial.html#ga8524e951a5bd6930a4336a66bdce4a3d" title="Find the max residual on a 3rd degree 1D-polynomial on the roots.">irplib_polynomial_eval_3_max</a>(<span class="keywordtype">double</span> p3, <span [...]
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>                                            <span class="keywordtype">double</span> p1, <span class="keywordtype">double</span> p0,</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>                                            cpl_boolean is_c,</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>                                            <span class="keywordtype">double</span> x1, <span class="keywordtype">double</span> x2, <span class="keywordtype">double</span> x3)</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> {</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> r1 = fabs(p0 + x1 * (p1 + x1 * (p2 + x1 * p3)));</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>     <span class="keywordtype">double</span> res;</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> </div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>     <span class="keywordflow">if</span> (is_c) {</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> r2 = fabs(p0 + x2 * (p1 + x2 * (p2 + x2 * p3))</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>                                - x3 * x3 * ( 3.0 * p3 * x2 + p2));</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span> </div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>         res = r1 > r2 ? r1 : r2;</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> r2 = fabs(p0 + x2 * (p1 + x2 * (p2 + x2 * p3)));</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> r3 = fabs(p0 + x3 * (p1 + x3 * (p2 + x3 * p3)));</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>         res = r1 > r2 ? (r1 > r3 ? r1 : r3) : (r2 > r3 ? r2 : r3);</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     }</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>     <span class="comment">/* cpl_msg_info(cpl_func, "%d: %g (%g)", __LINE__, res, r1); */</span></div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>     <span class="keywordflow">return</span> res;</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> }</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> </div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> </div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> <span class="keyword">static</span> cpl_boolean irplib_polynomial_solve_1d_3(<span class="keywordtype">double</span> p3, <span class="keywordtype">double</span> p2, <span class="keywordtype">double</span> p1,</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>                                                 <span class="keywordtype">double</span> p0,</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>                                                 <span class="keywordtype">double</span> * px1,</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>                                                 <span class="keywordtype">double</span> * px2,</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>                                                 <span class="keywordtype">double</span> * px3,</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>                                                 cpl_boolean * pdbl1,</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>                                                 cpl_boolean * pdbl2) {</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>     cpl_boolean is_complex = CPL_FALSE;</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> a = p2/p3;</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> b = p1/p3;</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> c = p0/p3;</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> </div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> q = (a * a - 3.0 * b);</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> r = (a * (2.0 * a * a - 9.0 * b) + 27.0 * c);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span> </div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> Q = q / 9.0;</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> R = r / 54.0;</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> </div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> Q3 = Q * Q * Q;</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> R2 = R * R;</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> </div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     <span class="keywordtype">double</span> x1 = DBL_MAX; <span class="comment">/* Fix (false) uninit warning */</span></div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>     <span class="keywordtype">double</span> x2 = DBL_MAX; <span class="comment">/* Fix (false) uninit warning */</span></div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     <span class="keywordtype">double</span> x3 = DBL_MAX; <span class="comment">/* Fix (false) uninit warning */</span></div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>     <span class="keywordtype">double</span> xx1 = DBL_MAX; <span class="comment">/* Fix (false) uninit warning */</span></div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     <span class="keywordtype">double</span> xx2 = DBL_MAX; <span class="comment">/* Fix (false) uninit warning */</span></div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>     <span class="keywordtype">double</span> xx3 = DBL_MAX; <span class="comment">/* Fix (false) uninit warning */</span></div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> </div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     <span class="keywordtype">double</span> resx = DBL_MAX;</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>     <span class="keywordtype">double</span> res  = DBL_MAX;</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     cpl_boolean is_first = CPL_TRUE;</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> </div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>     cpl_boolean dbl2;</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span> </div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     assert(px1 != NULL );</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>     <span class="keywordflow">if</span> (pdbl1 != NULL) *pdbl1 = CPL_FALSE;</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>     <span class="keywordflow">if</span> (pdbl2 != NULL) *pdbl2 = CPL_FALSE;</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> </div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>     dbl2 = CPL_FALSE;</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span> </div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> <span class="comment">      All branches (for which the roots are defined) are evaluated, and</span></div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> <span class="comment">      the branch with the smallest maximum-residual is chosen.</span></div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> <span class="comment">      When two maximum-residual are identical, preference is given to</span></div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span> <span class="comment">      the purely real solution and if necessary to the solution with a</span></div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> <span class="comment">      double root.</span></div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span> </div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>     <span class="keywordflow">if</span> ((R2 >= Q3 && R != 0.0) || R2 > Q3) {</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>         cpl_boolean is_c = CPL_FALSE;</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span> </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>         irplib_polynomial_solve_1d_3c(a, c, Q, Q3, R, R2, &x1, &x2, &x3,</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>                                       &is_c, &dbl2);</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span> </div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span> </div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>         res = resx = <a class="code" href="group__irplib__polynomial.html#ga8524e951a5bd6930a4336a66bdce4a3d" title="Find the max residual on a 3rd degree 1D-polynomial on the roots.">irplib_polynomial_eval_3_max</a>(p3, p2, p1, p0, is_c,</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>                                             x1, x2, x3);</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>         is_first = CPL_FALSE;</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span> </div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>         <span class="keywordflow">if</span> (pdbl1 != NULL) *pdbl1 = CPL_FALSE;</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>         <span class="keywordflow">if</span> (!is_c && pdbl2 != NULL) *pdbl2 = dbl2;</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>         is_complex = is_c;</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>    </div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>     }</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span> </div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>     <span class="keywordflow">if</span> (Q > 0.0 && fabs(R / (Q * sqrt(Q))) <= 1.0) {</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span> </div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>         <span class="comment">/* this test is actually R2 < Q3, written in a form suitable</span></div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> <span class="comment">           for exact computation with integers */</span></div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> </div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>         <span class="comment">/* assert( Q > 0.0 ); */</span></div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>         irplib_polynomial_solve_1d_3r(a, c, Q, R, &xx1, &xx2, &xx3);</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>         resx = <a class="code" href="group__irplib__polynomial.html#ga8524e951a5bd6930a4336a66bdce4a3d" title="Find the max residual on a 3rd degree 1D-polynomial on the roots.">irplib_polynomial_eval_3_max</a>(p3, p2, p1, p0, CPL_FALSE,</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>                                             xx1, xx2, xx3);</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>         <span class="keywordflow">if</span> (is_first || (dbl2 ? resx < res : resx <= res)) {</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>             is_first = CPL_FALSE;</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>             res = resx;</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>             x1 = xx1;</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>             x2 = xx2;</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>             x3 = xx3;</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>             <span class="keywordflow">if</span> (pdbl1 != NULL) *pdbl1 = CPL_FALSE;</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>             <span class="keywordflow">if</span> (pdbl2 != NULL) *pdbl2 = CPL_FALSE;</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>             is_complex = CPL_FALSE;</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>             irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>         }</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     }</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span> </div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>     <span class="keywordflow">if</span> (Q >= 0) {</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>         cpl_boolean dbl1 = CPL_FALSE;</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span> </div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span> </div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>         irplib_polynomial_solve_1d_32(a, c, Q, &xx1, &xx2, &xx3, &dbl2);</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>         resx = <a class="code" href="group__irplib__polynomial.html#ga8524e951a5bd6930a4336a66bdce4a3d" title="Find the max residual on a 3rd degree 1D-polynomial on the roots.">irplib_polynomial_eval_3_max</a>(p3, p2, p1, p0, CPL_FALSE,</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>                                             xx1, xx2, xx3);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span> <span class="comment">        cpl_msg_info(cpl_func, "%d: %g = %g - %g (%u)", __LINE__,</span></div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> <span class="comment">                     res - resx, res, resx, is_complex);</span></div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>         <span class="keywordflow">if</span> (is_first || resx <= res) {</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>             is_first = CPL_FALSE;</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>             res = resx;</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>             x1 = xx1;</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>             x2 = xx2;</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>             x3 = xx3;</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>             <span class="keywordflow">if</span> (pdbl1 != NULL) *pdbl1 = CPL_FALSE;</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>             <span class="keywordflow">if</span> (pdbl2 != NULL) *pdbl2 = dbl2;</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>             is_complex = CPL_FALSE;</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>             irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>         }</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span> </div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> </div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>         <span class="comment">/* This branch also covers the case where the depressed cubic</span></div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> <span class="comment">           polynomial has zero as triple root (i.e. Q == R == 0) */</span></div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span> </div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>         irplib_polynomial_solve_1d_31(a, Q, &xx1, &xx2, &xx3, &dbl1);</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span> </div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>         resx = <a class="code" href="group__irplib__polynomial.html#ga8524e951a5bd6930a4336a66bdce4a3d" title="Find the max residual on a 3rd degree 1D-polynomial on the roots.">irplib_polynomial_eval_3_max</a>(p3, p2, p1, p0, CPL_FALSE,</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>                                             xx1, xx2, xx3);</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span> </div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>         <span class="keywordflow">if</span> (resx <= res) {</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>             is_first = CPL_FALSE;</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>             res = resx;</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>             x1 = xx1;</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>             x2 = xx2;</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>             x3 = xx3;</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>             <span class="keywordflow">if</span> (pdbl1 != NULL) *pdbl1 = dbl1;</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>             <span class="keywordflow">if</span> (pdbl2 != NULL) *pdbl2 = CPL_FALSE;</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>             is_complex = CPL_FALSE;</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>             irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>         }</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span> </div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>     }</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> </div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>     <span class="keywordflow">if</span> (px2 != NULL && px3 != NULL) {</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>         *px1 = x1;</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>         *px2 = x2;</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>         *px3 = x3;</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (is_complex) {</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>         *px1 = x1;</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>         *px1 = x3;</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>     }</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> </div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>     <span class="keywordflow">return</span> is_complex;</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span> }</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span> </div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_polynomial_solve_1d_31(<span class="keywordtype">double</span> a, <span class="keywordtype">double</span> Q,</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>                                           <span class="keywordtype">double</span> * px1, <span class="keywordtype">double</span> * px2,</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>                                           <span class="keywordtype">double</span> * px3, cpl_boolean * pdbl1)</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> {</div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> </div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> sqrtQ = sqrt (Q);</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span> </div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>     <span class="keywordtype">double</span> x1, x2, x3;</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span> </div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>     x2 = x1 = -sqrtQ - a / 3.0;</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>     x3 = 2.0 * sqrtQ - a / 3.0;</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>     <span class="keywordflow">if</span> (pdbl1 != NULL) *pdbl1 = CPL_TRUE;</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>     *px1 = x1;</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     *px2 = x2;</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>     *px3 = x3;</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span> </div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>     irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span> }</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span> </div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_polynomial_solve_1d_32(<span class="keywordtype">double</span> a, <span class="keywordtype">double</span> c, <span class="keywordtype">double</span> Q,</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>                                           <span class="keywordtype">double</span> * px1, <span class="keywordtype">double</span> * px2,</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>                                           <span class="keywordtype">double</span> * px3, cpl_boolean * pdbl2)</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span> {</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span> </div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> sqrtQ = sqrt (Q);</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span> </div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     <span class="keywordtype">double</span> x1 = DBL_MAX;</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>     <span class="keywordtype">double</span> x2 = DBL_MAX;</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>     <span class="keywordtype">double</span> x3 = DBL_MAX;</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span> </div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>     <span class="keywordflow">if</span> (a > 0.0) {</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>         <span class="comment">/* a and sqrt(Q) have same sign - or Q is zero */</span></div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>         x1 = -2.0 * sqrtQ - a / 3.0;</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>         <span class="comment">/* FIXME: Two small roots with opposite signs may</span></div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span> <span class="comment">           end up here, with the sign lost for one of them */</span></div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>         x3 = x2 = -a < x1 ? -sqrt(fabs(c / x1)) : sqrt(fabs(c / x1));</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>         <span class="keywordflow">if</span> (pdbl2 != NULL) *pdbl2 = CPL_TRUE;</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (a < 0.0) {</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>         <span class="comment">/* a and sqrt(Q) have opposite signs - or Q is zero */</span></div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>         x3 = x2 = sqrtQ - a / 3.0;</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>         x1 = -c / (x2 * x2);</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>         <span class="keywordflow">if</span> (pdbl2 != NULL) *pdbl2 = CPL_TRUE;</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>         x1 = -2.0 * sqrtQ;</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>         x3 = x2 = sqrtQ;</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>         <span class="keywordflow">if</span> (pdbl2 != NULL) *pdbl2 = CPL_TRUE;</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>     }</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> </div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>     *px1 = x1;</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>     *px2 = x2;</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>     *px3 = x3;</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span> </div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> }</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> </div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_polynomial_solve_1d_3c(<span class="keywordtype">double</span> a, <span class="keywordtype">double</span> c,</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>                                           <span class="keywordtype">double</span> Q, <span class="keywordtype">double</span> Q3,</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>                                           <span class="keywordtype">double</span> R, <span class="keywordtype">double</span> R2,</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>                                           <span class="keywordtype">double</span> * px1,</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>                                           <span class="keywordtype">double</span> * px2, <span class="keywordtype">double</span> * px3,</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                                           cpl_boolean * pis_c,</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                                           cpl_boolean * pdbl2)</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span> {</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span> </div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>     <span class="comment">/* Due to finite precision some double roots may be missed, and</span></div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span> <span class="comment">       will be considered to be a pair of complex roots z = x +/-</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span> <span class="comment">       epsilon i close to the real axis. */</span></div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> </div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>     <span class="comment">/* Another case: A double root, which is small relative to the</span></div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span> <span class="comment">       last root, may cause this branch to be taken - with the</span></div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> <span class="comment">       imaginary part eventually being truncated to zero. */</span></div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span> </div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> sgnR = (R >= 0 ? 1.0 : -1.0);</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> A = -sgnR * pow (fabs (R) + sqrt (R2 - Q3), 1.0 / 3.0);</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> B = Q / A;</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span> </div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>     <span class="keywordtype">double</span> x1 = DBL_MAX;</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>     <span class="keywordtype">double</span> x2 = DBL_MAX;</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>     <span class="keywordtype">double</span> x3 = DBL_MAX;</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>     cpl_boolean is_complex = CPL_FALSE;</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span> </div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>     <span class="keywordflow">if</span> (( A > -B && a > 0.0) || (A < -B && a < 0.0)) {</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>         <span class="comment">/* A+B has same sign as a */</span></div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> </div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>         <span class="comment">/* Real part of complex conjugate */</span></div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>         x2 = -0.5 * (A + B) - a / 3.0; <span class="comment">/* No cancellation */</span></div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>         <span class="comment">/* Positive, imaginary part of complex conjugate */</span></div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>         x3 = 0.5 * CPL_MATH_SQRT3 * fabs(A - B);</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> </div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>         x1 = -c / (x2 * x2 + x3 * x3);</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>         <span class="comment">/* A+B and a have opposite signs - or exactly one is zero */</span></div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>         x1 = A + B - a / 3.0;</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>         <span class="comment">/* Positive, imaginary part of complex conjugate */</span></div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>         x3 = 0.5 * CPL_MATH_SQRT3 * fabs(A - B);</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> </div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>         <span class="keywordflow">if</span> (x3 > 0.0) {</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>             <span class="comment">/* Real part of complex conjugate */</span></div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>             x2 = -0.5 * (A + B) - a / 3.0; <span class="comment">/* FIXME: Cancellation */</span></div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>             irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> </div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>             x2 = -a < x1 ? -sqrt(fabs(c / x1)) : sqrt(fabs(c / x1));</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>             x3 = 0.0;</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>             irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>         }</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>     }</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> </div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>     <span class="keywordflow">if</span> (x3 > 0.0) {</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>         is_complex = CPL_TRUE;</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>         <span class="comment">/* Whoaa, the imaginary part was truncated to zero</span></div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> <span class="comment">           - return a real, double root */</span></div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>         x3 = x2;</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>         <span class="keywordflow">if</span> (pdbl2 != NULL) *pdbl2 = CPL_TRUE;</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>     }</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>     *px1 = x1;</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>     *px2 = x2;</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>     *px3 = x3;</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>     *pis_c = is_complex;</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span> </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> }</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span> </div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_polynomial_solve_1d_3r(<span class="keywordtype">double</span> a, <span class="keywordtype">double</span> c,</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>                                           <span class="keywordtype">double</span> Q, <span class="keywordtype">double</span> R,</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>                                           <span class="keywordtype">double</span> * px1,</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>                                           <span class="keywordtype">double</span> * px2, <span class="keywordtype">double</span> * px3)</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> {</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> </div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> sqrtQ = sqrt(Q);</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> theta = acos (R / (Q * sqrtQ)); <span class="comment">/* theta in range [0; pi] */</span></div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> </div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>     <span class="comment">/* -1.0 <= cos((theta + CPL_MATH_2PI) / 3.0) <= -0.5</span></div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> <span class="comment">       -0.5 <= cos((theta - CPL_MATH_2PI) / 3.0) <=  0.5</span></div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> <span class="comment">        0.5 <= cos((theta                  ) / 3.0) <=  1.0 */</span></div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> </div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> <span class="preprocessor">#define TR1 (-2.0 * sqrtQ * cos( theta                    / 3.0))</span></div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> <span class="preprocessor"></span><span class="preprocessor">#define TR2 (-2.0 * sqrtQ * cos((theta - CPL_MATH_2PI) / 3.0))</span></div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> <span class="preprocessor"></span><span class="preprocessor">#define TR3 (-2.0 * sqrtQ * cos((theta + CPL_MATH_2PI) / 3.0))</span></div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>     <span class="comment">/* TR1 < TR2 < TR3, except when theta == 0, then TR2 == TR3 */</span></div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> </div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>     <span class="comment">/* The three roots must be transformed back via subtraction with a/3.</span></div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> <span class="comment">       To prevent loss of precision due to cancellation, the root which</span></div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> <span class="comment">       is closest to a/3 is computed using the relation</span></div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> <span class="comment">       p3 * x1 * x2 * x3 = -p0 */</span></div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> </div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>     <span class="keywordtype">double</span> x1 = DBL_MAX;</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>     <span class="keywordtype">double</span> x2 = DBL_MAX;</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>     <span class="keywordtype">double</span> x3 = DBL_MAX;</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> </div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>     <span class="keywordflow">if</span> (a > 0.0) {</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>         x1 = TR1 - a / 3.0;</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>         <span class="keywordflow">if</span> (TR2 > 0.0 && (TR2 + TR3) > 2.0 * a) {</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>             <span class="comment">/* FIXME: Cancellation may still effect x3 ? */</span></div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>             x3 = TR3 - a / 3.0;</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>             x2 = -c / ( x1 * x3 );</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>             irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>             <span class="comment">/* FIXME: Cancellation may still effect x2, especially</span></div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> <span class="comment">               if x2, x3 is (almost) a double root, i.e.</span></div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> <span class="comment">               if theta is close to zero. */</span></div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>             x2 = TR2 - a / 3.0;</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>  </div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>             x3 = -c / ( x1 * x2 );</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>             irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>         }</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (a < 0.0) {</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>         x3 = TR3 - a / 3.0;</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>         <span class="keywordflow">if</span> (TR2 < 0.0 && (TR1 + TR2) > 2.0 * a) {</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>             x1 = TR1 - a / 3.0;</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>             x2 = -c / ( x1 * x3 );</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>             irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>             x2 = TR2 - a / 3.0;</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>             x1 = -c / ( x2 * x3 );</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>             irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>         }</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>         x1 = TR1;</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>         x2 = TR2;</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>         x3 = TR3;</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>     }</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> </div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>     assert(x1 < x3);</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> </div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>     <span class="keywordflow">if</span> (x1 > x2) {</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>         <span class="comment">/* In absence of round-off:</span></div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> <span class="comment">           theta == PI: x1 == x2,</span></div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> <span class="comment">           theta  < PI: x1 <  x2,</span></div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> <span class="comment"></span></div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span> <span class="comment">           The only way x1 could exceed x2 would be due to round-off when</span></div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span> <span class="comment">           theta is close to PI */</span></div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>      </div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>         x1 = x2 = 0.5 * ( x1 + x2 );</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>         irplib_trace(); <span class="comment">/* OK, tested only for x1 == x2 */</span></div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (x2 > x3) {</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>         <span class="comment">/* In absence of round-off:</span></div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> <span class="comment">           theta == 0: x2 == x3,</span></div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> <span class="comment">           theta  > 0: x2 <  x3,</span></div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> <span class="comment"></span></div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> <span class="comment">           For small theta:</span></div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> <span class="comment">           Round-off can cause x2 to become greater than x3 */</span></div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>      </div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>         x3 = x2 = 0.5 * ( x2 + x3 );</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>         irplib_trace(); <span class="comment">/* OK */</span></div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>     }</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span> </div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>     *px1 = x1;</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>     *px2 = x2;</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>     *px3 = x3;</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span> </div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> }</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> </div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span> <span class="keyword">static</span> cpl_error_code irplib_polynomial_solve_1d_4(<span class="keywordtype">double</span> p4, <span class="keywordtype">double</span> p3,</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>                                                    <span class="keywordtype">double</span> p2, <span class="keywordtype">double</span> p1,</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>                                                    <span class="keywordtype">double</span> p0, cpl_size * preal,</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>                                                    <span class="keywordtype">double</span> * px1, <span class="keywordtype">double</span> * px2,</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>                                                    <span class="keywordtype">double</span> * px3, <span class="keywordtype">double</span> * px4)</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span> {</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> </div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>     <span class="comment">/* Construct the monic, depressed quartic using Horners scheme on 1 / p4 */</span></div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> a = (p2 - 0.375 * p3 * p3 / p4) / p4;</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> b = (p1 - 0.5 * (p2 - 0.25 * p3 * p3 / p4 ) * p3 / p4 ) / p4;</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> c =</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>         (p0 - 0.25 * (p1 - 0.25 * (p2 - 0.1875 * p3 * p3 / p4 ) * p3 / p4</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>                       ) * p3 / p4 ) / p4;</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span> </div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>     <span class="keywordtype">double</span> x1 = DBL_MAX; <span class="comment">/* Fix (false) uninit warning */</span></div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>     <span class="keywordtype">double</span> x2 = DBL_MAX; <span class="comment">/* Fix (false) uninit warning */</span></div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>     <span class="keywordtype">double</span> x3 = DBL_MAX; <span class="comment">/* Fix (false) uninit warning */</span></div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>     <span class="keywordtype">double</span> x4 = DBL_MAX; <span class="comment">/* Fix (false) uninit warning */</span></div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> </div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>     assert(preal != NULL );</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>     assert(px1   != NULL );</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>     assert(px2   != NULL );</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>     assert(px3   != NULL );</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>     assert(px4   != NULL );</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>     *preal = 4;</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span> </div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>     <span class="keywordflow">if</span> (c == 0.0) {</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>         <span class="comment">/* The depressed quartic has zero as root */</span></div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>         <span class="comment">/* Since the sum of the roots is zero, at least one is negative</span></div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> <span class="comment">           and at least one is positive - unless they are all zero */</span></div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>         cpl_boolean dbl1, dbl2;</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>         <span class="keyword">const</span> cpl_boolean is_real =</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>             !irplib_polynomial_solve_1d_3(1.0, 0.0, a, b, &x1, &x3, &x4,</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>                                           &dbl1, &dbl2);</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> </div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>         x1 -= 0.25 * p3 / p4;</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>         x2 = -0.25 * p3 / p4;</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>         x3 -= 0.25 * p3 / p4;</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>         <span class="keywordflow">if</span> (is_real) {</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> </div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>             <span class="keywordflow">if</span> (dbl2) {</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>                 x4 = x3;</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>                 assert( x1 <= x2);</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>                 assert( x2 <= x3);</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>                 x4 -= 0.25 * p3 / p4;</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>                 <span class="comment">/* Need (only) a guarded swap of x2, x3 */</span></div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>                 <span class="keywordflow">if</span> (x2 > x3) {</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>                     IRPLIB_SWAP(x2, x3);</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>                 }</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>                 <span class="keywordflow">if</span> (dbl1) {</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>                     assert( x1 <= x2); <span class="comment">/* The cubic may have 0 as triple root */</span></div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>                     assert( x2 <= x3);</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>                     assert( x2 <= x4);</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>                 } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>                     assert( x1 < x2);</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>                     assert( x2 < x4);</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>                 }</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>             }</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>             *preal = 2;</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> </div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>             <span class="keywordflow">if</span> (x1 > x2) {</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>                 assert( x3 <= x2 ); <span class="comment">/* Don't swap a complex root */</span></div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> </div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>                 IRPLIB_SWAP(x1, x2);</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>                 assert( x3 >= x2 );</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>             }</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>         }</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> </div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (b == 0.0) {</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>         <span class="comment">/* The monic, depressed quartic is a monic, biquadratic equation */</span></div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>         <span class="keywordtype">double</span> u1, u2;</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>         <span class="keyword">const</span> cpl_boolean is_complex = irplib_polynomial_solve_1d_2(1.0, a, c,</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>                                                                     &u1, &u2);</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> </div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>         <span class="keywordflow">if</span> (is_complex) {</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>             <span class="comment">/* All four roots are conjugate, complex */</span></div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> norm = sqrt(u1*u1 + u2*u2);</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>             <span class="keyword">const</span> <span class="keywordtype">double</span>   v1 = sqrt(0.5*(norm+u1));</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>             <span class="keyword">const</span> <span class="keywordtype">double</span>   v2 = u2 / sqrt(2.0*(norm+u1));</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span> </div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> </div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>             x1 = -0.25 * p3 / p4 - v1;</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>             x3 = -0.25 * p3 / p4 + v1;</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span> </div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>             x4 = x2 = v2;</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> </div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>             *preal = 0;</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span> </div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (u1 >= 0.0) {</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>             <span class="comment">/* All four roots are real */</span></div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> sv1 = sqrt(u1);</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> sv2 = sqrt(u2);</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span> </div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span> </div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>             *preal = 4;</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> </div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>             x1 = -0.25 * p3 / p4 - sv2;</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>             x2 = -0.25 * p3 / p4 - sv1;</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>             x3 = -0.25 * p3 / p4 + sv1;</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>             x4 = -0.25 * p3 / p4 + sv2;</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (u2 < 0.0) {</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>             <span class="comment">/* All four roots are conjugate, complex */</span></div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> sv1 = sqrt(-u2);</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> sv2 = sqrt(-u1);</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span> </div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> </div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>             *preal = 0;</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> </div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>             x1 = x3 = -0.25 * p3 / p4;</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> </div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>             x2 = sv1;</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>             x4 = sv2;</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>             <span class="comment">/* Two roots are real, two roots are conjugate, complex */</span></div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> sv1 = sqrt(-u1);</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> sv2 = sqrt(u2);</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span> </div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span> </div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>             *preal = 2;</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> </div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>             x1 = -0.25 * p3 / p4 - sv2;</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>             x2 = -0.25 * p3 / p4 + sv2;</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span> </div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>             x3 = -0.25 * p3 / p4;</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>             x4 = sv1;</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>         }</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>         <span class="comment">/* Need a root from the nested, monic cubic */</span></div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> q2 = -a;</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> q1 = -4.0 * c;</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> q0 = 4.0 * a * c - b * b;</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>         <span class="keywordtype">double</span> u1, sqrtd, sqrtrd;</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>         <span class="keywordtype">double</span> z1, z2, z3, z4;</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span> </div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>         cpl_boolean is_complex1, is_complex2;</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span> </div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>         <span class="comment">/* Largest cubic root ensures real square roots when solving the</span></div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span> <span class="comment">           quartic equation */</span></div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>         (void)irplib_polynomial_solve_1d_3(1.0, q2, q1, q0, &u1, NULL, NULL,</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>                                            NULL, NULL);</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span> </div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span> </div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>         assert( u1 > a );</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span> </div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>         sqrtd = sqrt(u1 - a);</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span> </div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>         sqrtrd = 0.5 * b/sqrtd;</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span> </div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>         is_complex1 = irplib_polynomial_solve_1d_2(1.0,  sqrtd, 0.5*u1 - sqrtrd,</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>                                                    &z1, &z2);</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span> </div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>         is_complex2 = irplib_polynomial_solve_1d_2(1.0, -sqrtd, 0.5*u1 + sqrtrd,</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>                                                    &z3, &z4);</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span> </div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>         z1 -= 0.25 * p3 / p4;</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>         z3 -= 0.25 * p3 / p4;</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>         <span class="keywordflow">if</span> (!is_complex1) z2 -= 0.25 * p3 / p4;</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>         <span class="keywordflow">if</span> (!is_complex2) z4 -= 0.25 * p3 / p4;</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span> </div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>         <span class="keywordflow">if</span> (!is_complex1 && is_complex2) {</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>             *preal = 2;</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>             x1 = z1;</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>             x2 = z2;</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>             x3 = z3;</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>             x4 = z4;</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (is_complex1 && !is_complex2) {</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>             *preal = 2;</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>             x1 = z3;</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>             x2 = z4;</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>             x3 = z1;</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>             x4 = z2;</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (is_complex1 && is_complex2) {</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>             *preal = 0;</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span> </div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>             <span class="keywordflow">if</span> (z1 < z3 || (z1 == z3 && z2 <= z4)) {</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>                 x1 = z1;</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>                 x2 = z2;</div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>                 x3 = z3;</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>                 x4 = z4;</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>                 x1 = z3;</div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>                 x2 = z4;</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>                 x3 = z1;</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>                 x4 = z2;</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>             }</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>             *preal = 4;</div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span> </div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>             <span class="keywordflow">if</span> (z3 >= z2) {</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>                 x1 = z1;</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>                 x2 = z2;</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>                 x3 = z3;</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>                 x4 = z4;</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>             } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (z4 <= z1) {</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>                 x1 = z3;</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>                 x2 = z4;</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>                 x3 = z1;</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>                 x4 = z2;</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>             } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (z2 > z4) {</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>                 x1 = z3;</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>                 x2 = z1;</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>                 x3 = z4;</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>                 x4 = z2;</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>                 x1 = z1;</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>                 x2 = z3;</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>                 x3 = z2;</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>                 x4 = z4;</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>             }</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>         }</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>     }</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span> </div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>     *px1 = x1;</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>     *px2 = x2;</div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>     *px3 = x3;</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>     *px4 = x4;</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span> </div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span> }</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span> </div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span> <span class="preprocessor">#ifdef IPRLIB_POLYNOMIAL_USE_MONOMIAL_ROOT</span></div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span> <span class="preprocessor"></span><span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span> <span class="keyword">static</span> <span class="keywordtype">double</span> irplib_polynomial_depress_1d(cpl_polynomial * <span class="keyword">self</span>)</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span> {</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span> </div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>     <span class="keyword">const</span> cpl_size degree = cpl_polynomial_get_degree(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>     <span class="keyword">const</span> cpl_size nc1    = degree - 1;</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>   an     = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &degree);</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>   an1    = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &nc1);</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>     <span class="keywordtype">double</span>         rmean;</div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>     cpl_size       i;</div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> </div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> </div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>     cpl_ensure(degree > 0,   CPL_ERROR_DATA_NOT_FOUND, 0.0);</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span> </div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>     assert( an != 0.0 );</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span> </div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>     rmean = -an1/(an * (double)degree);</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span> </div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>     <span class="keywordflow">if</span> (rmean != 0.0) {</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span> </div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>         cpl_polynomial_shift_1d(<span class="keyword">self</span>, 0, rmean);</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span> </div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>         cpl_polynomial_set_coeff(<span class="keyword">self</span>, &nc1, 0.0); <span class="comment">/* Round-off... */</span></div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> </div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>     }</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span> </div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>     <span class="comment">/* Set leading coefficient to one. */</span></div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>     <span class="keywordflow">for</span> (i = 0; i < degree-1; i++) {</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> ai = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i) / an;</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>         cpl_polynomial_set_coeff(<span class="keyword">self</span>, &i, ai);</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>     }</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span> </div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>     cpl_polynomial_set_coeff(<span class="keyword">self</span>, &degree, 1.0); <span class="comment">/* Round-off... */</span></div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> </div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>     <span class="keywordflow">return</span> rmean;</div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span> }</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span> cpl_error_code irplib_polynomial_divide_1d_root(cpl_polynomial * p, <span class="keywordtype">double</span> r,</div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>                                                 <span class="keywordtype">double</span> * pres)</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span> {</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span> </div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>     <span class="keyword">const</span> cpl_size n = cpl_polynomial_get_degree(p);</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>     <span class="keywordtype">double</span>         sum;</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>     cpl_size       i;</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span> </div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span> </div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>     cpl_ensure_code(p != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>     cpl_ensure_code(cpl_polynomial_get_dimension(p) == 1,</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>                     CPL_ERROR_INVALID_TYPE);</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>     cpl_ensure_code(n > 0, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span> </div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>     sum = cpl_polynomial_get_coeff(p, &n);</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>     cpl_polynomial_set_coeff(p, &n, 0.0);</div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span> </div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>     <span class="keywordflow">for</span> (i = n-1; i >= 0; i--) {</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> coeff = cpl_polynomial_get_coeff(p, &i);</div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span> </div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>         cpl_polynomial_set_coeff(p, &i, sum);</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span> </div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>         sum = coeff + r * sum;</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span> </div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>     }</div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span> </div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>     <span class="keywordflow">if</span> (pres != NULL) *pres = sum;</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span> </div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__polynomial_8h_source.html b/html/irplib__polynomial_8h_source.html
deleted file mode 100644
index 27a7bb3..0000000
--- a/html/irplib__polynomial_8h_source.html
+++ /dev/null
@@ -1,130 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_polynomial.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_polynomial.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_polynomial.h,v 1.10 2013-01-29 08:43:33 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO Common Pipeline Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2007 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-01-29 08:43:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.10 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_POLYNOMIAL_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_POLYNOMIAL_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                              Function prototypes</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">/* TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#ifndef CPL_SIZE_FORMAT</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span><span class="preprocessor">#define CPL_SIZE_FORMAT "d"</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor"></span><span class="preprocessor">#define cpl_size int</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE > CPL_VERSION(5, 92, 0)</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor"></span><span class="preprocessor">#define irplib_polynomial_add cpl_polynomial_add</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#define irplib_polynomial_subtract cpl_polynomial_subtract</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="preprocessor">#define irplib_polynomial_multiply_scalar cpl_polynomial_multiply_scalar</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor"></span>cpl_error_code <a class="code" href="group__irplib__polynomial.html#ga90e13f05c9addc584f154279681d1853" title="Add two polynomials of the same dimension.">irplib_polynomial_add</a>(cpl_polynomial *,</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>                                      <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>                                      <span class="keyword">const</span> cpl_polynomial *);</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> cpl_error_code <a class="code" href="group__irplib__polynomial.html#ga0e83ae3c9e7accb70fdfe1aca030e084" title="Subtract two polynomials of the same dimension.">irplib_polynomial_subtract</a>(cpl_polynomial *,</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>                                           <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>                                           <span class="keyword">const</span> cpl_polynomial *);</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> cpl_error_code <a class="code" href="group__irplib__polynomial.html#ga55c030413e6ef112753b280ad5213786" title="Multiply a polynomial with a scalar.">irplib_polynomial_multiply_scalar</a>(cpl_polynomial *,</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>                                                  <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>                                                  <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">/* END TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> cpl_error_code <a class="code" href="group__irplib__polynomial.html#ga87e84d69eadbde803fce3c3cbdedf385" title="Compute all n roots of p(x) = 0, where p(x) is of degree n, n > 0.">irplib_polynomial_solve_1d_all</a>(<span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>                                               cpl_vector *, cpl_size *);</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__ppm_8c_source.html b/html/irplib__ppm_8c_source.html
deleted file mode 100644
index 2977309..0000000
--- a/html/irplib__ppm_8c_source.html
+++ /dev/null
@@ -1,513 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_ppm.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_ppm.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_ppm.c,v 1.31 2012-06-11 07:24:09 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2012-06-11 07:24:09 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.31 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include "irplib_ppm.h"</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include "irplib_wlxcorr.h"</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include "irplib_spectrum.h"</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/* TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#ifndef CPL_SIZE_FORMAT</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span><span class="preprocessor">#define CPL_SIZE_FORMAT "d"</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span><span class="preprocessor">#define cpl_size int</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor"></span><span class="comment">/* END TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">                                   Private functions</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#ifdef IRPLIB_PPM_USE_METHOD2</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor"></span><span class="keyword">static</span> cpl_vector * irplib_ppm_convolve_line(<span class="keyword">const</span> cpl_vector *, <span class="keywordtype">double</span>,<span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="keyword">static</span> cpl_vector * irplib_ppm_detect_lines(<span class="keyword">const</span> cpl_vector *, <span class="keywordtype">double</span>) ;</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="group__irplib__ppm.html#ga9b49569fb0bd55977b533407c1ad956d">   84</a></span> cpl_polynomial * <a class="code" href="group__irplib__ppm.html#ga9b49569fb0bd55977b533407c1ad956d" title="The Wavelength Calibration using PPM.">irplib_ppm_engine</a>(</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>         <span class="keyword">const</span> cpl_vector        *   spectrum,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>         <span class="keyword">const</span> cpl_bivector      *   lines_catalog,</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>         <span class="keyword">const</span> cpl_polynomial    *   poly_init,</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>         <span class="keywordtype">double</span>                      slitw,</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>         <span class="keywordtype">double</span>                      fwhm,</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>         <span class="keywordtype">double</span>                      thresh,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>         <span class="keywordtype">int</span>                         degree,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>         <span class="keywordtype">int</span>                         doplot,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>         cpl_table               **  tab_infos)</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> {</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor">#ifdef IRPLIB_PPM_USE_METHOD2</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor"></span>    cpl_vector      *   spec_conv ;</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor"></span>    <span class="keywordtype">int</span>                 spec_sz ;</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>     cpl_vector      *   det_lines ;</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     <span class="keywordtype">double</span>          *   pdet_lines ;</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     cpl_vector      *   cat_lines ;</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     <span class="keywordtype">double</span>          *   pcat_lines ;</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     <span class="keywordtype">double</span>              wmin, wmax ;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     <span class="keywordtype">double</span>              disp_min, disp_max, disp ;</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     <span class="keywordtype">int</span>                 nlines_cat, nlines ;</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   plines_catalog_x ;</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   plines_catalog_y ;</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     cpl_bivector    *   matched ;</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     cpl_matrix      *   matchedx;</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     <span class="keywordtype">int</span>                 match_sz;</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     cpl_polynomial  *   fitted ;</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>     cpl_table       *   spc_table ;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     <span class="keyword">const</span> cpl_vector*   vectors_plot[3];</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     cpl_vector      *   plot_y ;</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     <span class="keywordtype">int</span>                 wl_ind, start_ind, stop_ind ;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     <span class="keywordtype">double</span>              fill_val ;</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     cpl_size            deg_loc ;</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     <span class="keywordtype">int</span>                 i ;</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     cpl_error_code      error;</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     <span class="keywordflow">if</span> (spectrum == NULL) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     <span class="keywordflow">if</span> (lines_catalog == NULL) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     <span class="keywordflow">if</span> (poly_init == NULL) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     spec_sz = cpl_vector_get_size(spectrum) ;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     deg_loc = (cpl_size)degree ;</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>    </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor">#ifdef IRPLIB_PPM_USE_METHOD2</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="preprocessor"></span>    <span class="comment">/* METHOD 2 */</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     <span class="comment">/* Correlate the spectrum with the line profile */</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     <span class="keywordflow">if</span> ((spec_conv = irplib_ppm_convolve_line(spectrum, slitw, fwhm)) == NULL) {</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot convolve the signal"</span>) ;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     }</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>    </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="comment">/* Apply the lines detection */</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     <span class="keywordflow">if</span> ((det_lines = irplib_ppm_detect_lines(spec_conv, 0.9)) == NULL) {</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot detect lines"</span>) ;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>         cpl_vector_delete(spec_conv) ;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     }</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     cpl_vector_delete(spec_conv) ;</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="preprocessor"></span>    <span class="comment">/* METHOD 1 */</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="keywordflow">if</span> ((det_lines = <a class="code" href="group__irplib__spectrum.html#ga1885902c29d7383674c85e2c3d935961" title="Detect the brightest features in a spectrum.">irplib_spectrum_detect_peaks</a>(spectrum, fwhm,</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>                     thresh, 0, NULL, NULL)) == NULL) {</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot convolve the signal"</span>) ;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     }</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="preprocessor"></span>    cpl_msg_info(cpl_func, <span class="stringliteral">"Detected %"</span>CPL_SIZE_FORMAT<span class="stringliteral">" lines"</span>, </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>             cpl_vector_get_size(det_lines));</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>  </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     <span class="comment">/* Get the catalog lines */</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     wmin = cpl_polynomial_eval_1d(poly_init, 1.0, NULL) ;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     wmax = cpl_polynomial_eval_1d(poly_init, spec_sz, NULL) ;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     plines_catalog_x = cpl_bivector_get_x_data_const(lines_catalog) ;</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     plines_catalog_y = cpl_bivector_get_y_data_const(lines_catalog) ;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     nlines = cpl_bivector_get_size(lines_catalog) ;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     nlines_cat = 0 ;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     start_ind = stop_ind = -1 ;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <span class="keywordflow">for</span> (i=0 ; i<nlines ; i++) {</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>         <span class="keywordflow">if</span> (plines_catalog_x[i] > wmin && plines_catalog_x[i] < wmax &&</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>                 plines_catalog_y[i] > 0.0) {</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>             nlines_cat++ ;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>             <span class="keywordflow">if</span> (start_ind<0) start_ind = i ;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>             stop_ind = i ;</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>         }</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     }</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     <span class="keywordflow">if</span> (nlines_cat == 0) {</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"No lines in catalog"</span>) ;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>         cpl_vector_delete(det_lines) ;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     }</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     cat_lines = cpl_vector_new(nlines_cat) ;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     pcat_lines = cpl_vector_get_data(cat_lines) ;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     nlines_cat = 0 ;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     <span class="keywordflow">for</span> (i=0 ; i<nlines ; i++) {</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>         <span class="keywordflow">if</span> (plines_catalog_x[i] > wmin && plines_catalog_x[i] < wmax &&</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>                 plines_catalog_y[i] > 0.0) {</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>             pcat_lines[nlines_cat] = plines_catalog_x[i] ; </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>             nlines_cat++ ;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>         }</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     }</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>  </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>     <span class="comment">/* Plot inputs */</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     <span class="keywordflow">if</span> (doplot) {</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>         <span class="comment">/* Catalog */</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>         irplib_wlxcorr_catalog_plot(lines_catalog, wmin, wmax) ;</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>         <span class="comment">/* Spectrum with detected lines */</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>         fill_val = cpl_vector_get_max(spectrum) ;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>         plot_y = cpl_vector_new(spec_sz);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>         cpl_vector_fill(plot_y, 0.0) ;</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>         pdet_lines = cpl_vector_get_data(det_lines) ;</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>         <span class="keywordflow">for</span> (i=0 ; i<cpl_vector_get_size(det_lines) ; i++) {</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>             cpl_vector_set(plot_y, (<span class="keywordtype">int</span>)pdet_lines[i], fill_val) ;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>         }</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>         vectors_plot[0] = NULL ;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>         vectors_plot[1] = spectrum ;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>         vectors_plot[2] = plot_y ;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>         cpl_plot_vectors(<span class="stringliteral">"set grid;set xlabel 'Position (Pixel)';set ylabel "</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>                             <span class="stringliteral">"'Intensity (ADU/sec)';"</span>,</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>                             <span class="stringliteral">"t 'Spectrum with detected lines' w lines"</span>, <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>                             vectors_plot, 3);</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>         cpl_vector_delete(plot_y) ;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     }</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>    </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     <span class="comment">/* Apply the point pattern matching */</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     disp = (wmax-wmin) / spec_sz ;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     disp_min = disp - (disp/10) ;</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     disp_max = disp + (disp/10) ;</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     matched = cpl_ppm_match_positions(det_lines, cat_lines, disp_min,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                                       disp_max, 0.05, NULL, NULL);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     cpl_vector_delete(det_lines) ;</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     cpl_vector_delete(cat_lines) ;</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     <span class="keywordflow">if</span> (matched == NULL) {</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot apply the point pattern matching"</span>) ;</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     }</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     match_sz = cpl_bivector_get_size(matched);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Matched %d lines"</span>, match_sz) ;</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="keywordflow">if</span> (match_sz <= deg_loc) {</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Not enough match for the fit"</span>) ;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         cpl_bivector_delete(matched) ;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     }</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <span class="comment">/* Plot if requested */</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="keywordflow">if</span> (doplot) {</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>    *   pmatched ;</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>         cpl_bivector    *   biplot ;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>         cpl_vector      *   plot_cat_x ;</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>         cpl_vector      *   plot_cat_y ;</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>         <span class="comment">/* Spectrum with matched lines */</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         fill_val = cpl_vector_get_max(spectrum) ;</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         plot_y = cpl_vector_new(spec_sz);</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         cpl_vector_fill(plot_y, 0.0) ;</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>         pmatched = cpl_bivector_get_x_data_const(matched) ;</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>         <span class="keywordflow">for</span> (i=0 ; i < match_sz; i++) {</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>             cpl_vector_set(plot_y, (<span class="keywordtype">int</span>)pmatched[i], fill_val) ;</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>         }</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>         vectors_plot[0] = NULL ;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>         vectors_plot[1] = spectrum ;</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>         vectors_plot[2] = plot_y ;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>         cpl_plot_vectors(<span class="stringliteral">"set grid;set xlabel 'Position (Pixel)';set ylabel "</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                             <span class="stringliteral">"'Intensity (ADU/sec)';"</span>,</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                             <span class="stringliteral">"t 'Spectrum with matched lines' w lines"</span>, <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                             vectors_plot, 3);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>         cpl_vector_delete(plot_y) ;</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         <span class="comment">/* Catalog with matched lines */</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>         plot_cat_x=cpl_vector_extract(cpl_bivector_get_x_const(lines_catalog), </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                 start_ind, stop_ind, 1) ;</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>         plot_cat_y=cpl_vector_extract(cpl_bivector_get_y_const(lines_catalog), </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                 start_ind, stop_ind, 1) ;</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>         biplot = cpl_bivector_wrap_vectors(plot_cat_x, plot_cat_y) ;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>         cpl_plot_bivector(<span class="stringliteral">"set grid;set xlabel 'Wavelength';set ylabel "</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>                              <span class="stringliteral">"'Emission';"</span>, <span class="stringliteral">"t 'Catalog' w impulses"</span>, <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                              biplot);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>         cpl_bivector_unwrap_vectors(biplot) ;</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> </div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>         plot_y = cpl_vector_duplicate(plot_cat_y) ;</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>         cpl_vector_fill(plot_y, 0.0) ;</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>         pmatched = cpl_bivector_get_y_data_const(matched) ;</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>         fill_val=cpl_vector_get_mean(plot_cat_y) ;</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>         <span class="keywordflow">for</span> (i=0 ; i < match_sz; i++) {</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>             wl_ind = 0 ;</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>             <span class="keywordflow">while</span> (pmatched[i] > cpl_vector_get(plot_cat_x, wl_ind) </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>                     && wl_ind < spec_sz) wl_ind++ ;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>             <span class="keywordflow">if</span> (wl_ind < spec_sz) cpl_vector_set(plot_y, wl_ind, fill_val) ;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>         }</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>         biplot = cpl_bivector_wrap_vectors(plot_cat_x, plot_y) ;</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>         cpl_plot_bivector(<span class="stringliteral">"set grid;set xlabel 'Wavelength';set ylabel "</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                              <span class="stringliteral">"'Emission';"</span>, <span class="stringliteral">"t 'Catalog (matched lines)' w "</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                              <span class="stringliteral">"impulses"</span>, <span class="stringliteral">""</span>, biplot) ;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>         cpl_bivector_unwrap_vectors(biplot) ;</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>         cpl_vector_delete(plot_cat_x) ;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>         cpl_vector_delete(plot_cat_y) ;</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>         cpl_vector_delete(plot_y) ;</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     }</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <span class="comment">/* Apply the fit */</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     matchedx = cpl_matrix_wrap(1, match_sz, cpl_bivector_get_x_data(matched));</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     fitted = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     error = cpl_polynomial_fit(fitted, matchedx, NULL,</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>                                cpl_bivector_get_y_const(matched), NULL,</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                                CPL_FALSE, NULL, &deg_loc);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     cpl_bivector_delete(matched);</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     (void)cpl_matrix_unwrap(matchedx);</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot fit the polynomial"</span>) ;</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>         cpl_polynomial_delete(fitted);</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     }</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>    </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     <span class="comment">/* Create the infos table */</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <span class="keywordflow">if</span> ((spc_table = irplib_wlxcorr_gen_spc_table(spectrum,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                     lines_catalog, slitw, fwhm, poly_init, fitted)) == NULL) {</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot generate the infos table"</span>) ;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>         cpl_polynomial_delete(fitted) ;</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     }</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     <span class="keywordflow">if</span> (tab_infos != NULL) *tab_infos = spc_table ;</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     <span class="keywordflow">else</span> cpl_table_delete(spc_table) ;</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     <span class="keywordflow">return</span> fitted ;</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> }</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="preprocessor">#ifdef IRPLIB_PPM_USE_METHOD2</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="preprocessor"></span><span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="keyword">static</span> cpl_vector * irplib_ppm_convolve_line(</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>         <span class="keyword">const</span> cpl_vector        *   spectrum,</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>         <span class="keywordtype">double</span>                      slitw,</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>         <span class="keywordtype">double</span>                      fwhm)</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> {</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     cpl_vector  *   conv_kernel ;</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     cpl_vector  *   line_profile ;</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     cpl_vector  *   xcorrs ;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     cpl_vector  *   spec_ext ;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     cpl_vector  *   xc_single ;</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     <span class="keywordtype">int</span>             hs, line_sz, sp_sz ;</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     <span class="keywordtype">int</span>             i ;</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     <span class="keywordflow">if</span> (spectrum == NULL) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     <span class="comment">/* Create the convolution kernel */</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     <span class="keywordflow">if</span> ((conv_kernel = irplib_wlxcorr_convolve_create_kernel(slitw,</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>                     fwhm)) == NULL) {</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot create kernel"</span>) ;</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     }</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     hs = cpl_vector_get_size(conv_kernel) ;</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     line_sz = 2 * hs + 1 ;</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     <span class="comment">/* Create the line profile */</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     line_profile = cpl_vector_new(line_sz) ;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     cpl_vector_fill(line_profile, 0.0) ;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     cpl_vector_set(line_profile, hs, 1.0) ;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <span class="keywordflow">if</span> (irplib_wlxcorr_convolve(line_profile, conv_kernel) != 0) {</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot create line profile"</span>) ;</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>         cpl_vector_delete(line_profile) ;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>         cpl_vector_delete(conv_kernel) ;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     }</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     cpl_vector_delete(conv_kernel) ;</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     <span class="comment">/* Create the correlations values vector */</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     sp_sz = cpl_vector_get_size(spectrum) ;</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     xcorrs = cpl_vector_new(sp_sz) ;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     cpl_vector_fill(xcorrs, 0.0) ;</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     xc_single = cpl_vector_new(1) ;</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     <span class="comment">/* Loop on the pixels of the spectrum */</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     <span class="keywordflow">for</span> (i=hs ; i<sp_sz-hs ; i++) {</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>         <span class="comment">/* Extract the current spectrum part */</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>         <span class="keywordflow">if</span> ((spec_ext = cpl_vector_extract(spectrum, i-hs, i+hs, 1)) == NULL) {</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot extract spectrum"</span>) ;</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>             cpl_vector_delete(xc_single) ;</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>             cpl_vector_delete(line_profile) ;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>             <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>         }</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>         <span class="keywordflow">if</span> (cpl_vector_correlate(xc_single, spec_ext, line_profile) < 0) {</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot correlate"</span>) ;</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>             cpl_vector_delete(xc_single) ;</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>             cpl_vector_delete(line_profile) ;</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>             cpl_vector_delete(spec_ext) ;</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>             <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>         }</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>         cpl_vector_set(xcorrs, i, cpl_vector_get(xc_single, 0)) ;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         cpl_vector_delete(spec_ext) ;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     }</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>     cpl_vector_delete(xc_single) ;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     cpl_vector_delete(line_profile) ;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     <span class="keywordflow">return</span> xcorrs ;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> } </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> <span class="keyword">static</span> cpl_vector * irplib_ppm_detect_lines(</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>         <span class="keyword">const</span> cpl_vector    *   spec,</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>         <span class="keywordtype">double</span>                  threshold)</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> {</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     cpl_vector  *   spec_loc ;</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     <span class="keywordtype">double</span>      *   pspec_loc ;</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     cpl_vector  *   lines ;</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     <span class="keywordtype">double</span>      *   plines ;</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     <span class="keywordtype">int</span>             spec_loc_sz, max_ind, nlines ;</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     <span class="keywordtype">double</span>          max ;</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     <span class="keywordtype">int</span>             i ;</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     <span class="comment">/* Test inputs */</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     <span class="keywordflow">if</span> (spec == NULL) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     <span class="comment">/* Local spectrum */</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     spec_loc = cpl_vector_duplicate(spec) ;</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     pspec_loc = cpl_vector_get_data(spec_loc) ;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     spec_loc_sz = cpl_vector_get_size(spec_loc) ;</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     <span class="comment">/* Threshold the local spectrum */</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     <span class="keywordflow">for</span> (i=0 ; i<spec_loc_sz ; i++) </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>         <span class="keywordflow">if</span> (pspec_loc[i] < threshold) pspec_loc[i] = 0.0 ;</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     <span class="comment">/* Allocate lines container */</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     lines = cpl_vector_new(spec_loc_sz) ;</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     plines = cpl_vector_get_data(lines) ;</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     nlines = 0 ;</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     <span class="comment">/* Loop as long as there are lines */</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     <span class="keywordflow">while</span> ((max = cpl_vector_get_max(spec_loc)) > threshold) {</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>         <span class="comment">/* Find the max position */</span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>         max_ind = 0 ;</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>         <span class="keywordflow">while</span> (max_ind < spec_loc_sz && pspec_loc[max_ind] < max) max_ind++ ;</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>         <span class="keywordflow">if</span> (max_ind == spec_loc_sz) {</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot find maximum"</span>) ;</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>             cpl_vector_delete(spec_loc) ;</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>             cpl_vector_delete(lines) ;</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>             <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>         }</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>         <span class="keywordflow">if</span> (max_ind == 0 || max_ind == spec_loc_sz-1) {</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>             pspec_loc[max_ind] = 0 ;</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>             continue ;</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>         }</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>         <span class="comment">/* Get the precise position from the neighbours values */</span></div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>         plines[nlines] =    pspec_loc[max_ind] * max_ind + </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>                             pspec_loc[max_ind-1] * (max_ind-1) +</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>                             pspec_loc[max_ind+1] * (max_ind+1) ; </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>         plines[nlines] /= pspec_loc[max_ind] + pspec_loc[max_ind+1] +</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>             pspec_loc[max_ind-1] ;</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>         plines[nlines] ++ ;</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>         nlines ++ ;</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>         <span class="comment">/* Clean the line */</span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>         i = max_ind ;</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>         <span class="keywordflow">while</span> (i>=0 && pspec_loc[i] > threshold) {</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>             pspec_loc[i] = 0.0 ;</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>             i-- ;</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>         }</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>         i = max_ind+1 ;</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>         <span class="keywordflow">while</span> (i<spec_loc_sz && pspec_loc[i] > threshold) {</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>             pspec_loc[i] = 0.0 ;</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>             i++ ;</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>         }</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     }</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     cpl_vector_delete(spec_loc) ;</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>    </div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     <span class="comment">/* Check if there are lines */</span></div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     <span class="keywordflow">if</span> (nlines == 0) {</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot detect any line"</span>) ;</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>         cpl_vector_delete(lines) ;</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     }</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     <span class="comment">/* Resize the vector */</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     cpl_vector_set_size(lines, nlines) ;</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     <span class="comment">/* Sort the lines */</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     cpl_vector_sort(lines, 1) ;</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     <span class="keywordflow">return</span> lines ;</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> }</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__ppm_8h_source.html b/html/irplib__ppm_8h_source.html
deleted file mode 100644
index 15a6ce4..0000000
--- a/html/irplib__ppm_8h_source.html
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_ppm.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_ppm.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_ppm.h,v 1.5 2007-07-23 09:27:07 yjung Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: yjung $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2007-07-23 09:27:07 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_PPM_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_PPM_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> cpl_polynomial * <a class="code" href="group__irplib__ppm.html#ga9b49569fb0bd55977b533407c1ad956d" title="The Wavelength Calibration using PPM.">irplib_ppm_engine</a>(<span class="keyword">const</span> cpl_vector *, <span class="keyword">const</span> cpl_bivector *,</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span>         <span class="keyword">const</span> cpl_polynomial *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, cpl_table **);</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__slitpos_8c_source.html b/html/irplib__slitpos_8c_source.html
deleted file mode 100644
index 3d0d991..0000000
--- a/html/irplib__slitpos_8c_source.html
+++ /dev/null
@@ -1,554 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_slitpos.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_slitpos.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_slitpos.c,v 1.31 2013-07-04 12:10:12 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-07-04 12:10:12 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.31 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/* The IRPLIB-based application may have checked for the availability of</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">   memrchr() in which case the macro HAVE_DECL_MEMRCHR is defined as either</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment">   0 or 1. Without checks it is assumed that the function is not available.</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment">   With a suitable version of autoconf the macro can be defined with this</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment">   entry in configure.ac:</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">   AC_CHECK_DECLS([memrchr])</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <assert.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include "irplib_slitpos.h"</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include "irplib_flat.h"</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/* TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#ifndef CPL_SIZE_FORMAT</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span><span class="preprocessor">#define CPL_SIZE_FORMAT "d"</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span><span class="preprocessor">#define cpl_size int</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span><span class="comment">/* END TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#ifndef IRPLIB_SLITPOS_KERNEL_SIZE_Y</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_SLITPOS_KERNEL_SIZE_Y      5</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#ifndef IRPLIB_SLITPOS_MAX_EROSION</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_SLITPOS_MAX_EROSION     1024</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> </div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="keyword">static</span> cpl_error_code irplib_slitpos_find_edges_one_line(<span class="keyword">const</span> cpl_image *,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>                                                          <span class="keywordtype">int</span>, <span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *);</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="keyword">static</span> cpl_error_code irplib_slitpos_find_vert_slit_ends(<span class="keyword">const</span> cpl_image *,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>                                                          <span class="keywordtype">int</span>, <span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="keyword">static</span> cpl_error_code irplib_slitpos_find_vert_pos(<span class="keyword">const</span> cpl_image *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>                                                    cpl_size *);</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="keyword">static</span> cpl_error_code irplib_image_filter_background_line(cpl_image *,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>                                                    <span class="keyword">const</span> cpl_image *,</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>                                                    <span class="keywordtype">int</span>, cpl_boolean) ;</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno"><a class="code" href="group__irplib__slitpos.html#ga632b21eccf3d4bb48426cdd23f321cba">  119</a></span> cpl_table * <a class="code" href="group__irplib__slitpos.html#ga632b21eccf3d4bb48426cdd23f321cba" title="Detect the slit position, detect its ends, extract a thin image containing only the slit and find its...">irplib_slitpos_analysis</a>(<span class="keyword">const</span> cpl_image * imslit,</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                                     <span class="keywordtype">int</span>               slit_max_width,</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>                                     <span class="keywordtype">double</span>          * slit_flux)</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> {</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>       size_x = cpl_image_get_size_x(imslit);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>       size_y = cpl_image_get_size_y(imslit);</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     <span class="keywordtype">int</span>             slit_length;</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     cpl_size        slit_pos;</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     cpl_image   *   filtered;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     cpl_mask    *   mask;</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     cpl_image   *   thin_im;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     <span class="keywordtype">int</span>             slit_top_y = 0; <span class="comment">/* Avoid (false) uninit warning */</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     <span class="keywordtype">int</span>             slit_bot_y = 0; <span class="comment">/* Avoid (false) uninit warning */</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     cpl_table   *   <span class="keyword">self</span>;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     <span class="keywordtype">double</span>      *   slit_y,</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>                 *   slit_x_l,</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>                 *   slit_x_r;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     <span class="keywordtype">double</span>      *   coeff_r;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     <span class="keywordtype">double</span>      *   coeff_l;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="keywordtype">int</span>             i;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     cpl_error_code error = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="comment">/* Initialize */</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <span class="keywordflow">if</span> (slit_flux != NULL) *slit_flux = 0.0 ;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     <span class="comment">/* Median vertical filtering 3x3 */</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     mask = cpl_mask_new(3, 3) ;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     cpl_mask_not(mask) ;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     filtered = cpl_image_new(size_x, size_y, cpl_image_get_type(imslit));</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     error = cpl_image_filter_mask(filtered, imslit, mask,</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>                                   CPL_FILTER_MEDIAN, CPL_BORDER_FILTER);</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     cpl_mask_delete(mask);</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>         cpl_image_delete(filtered);</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>         cpl_ensure(0, cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     }</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     <span class="comment">/* The background may vary strongly along the vertical line. */</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     <span class="comment">/* Detect and remove background with a 1+2*Slit_max x 1 median filter */</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     error = irplib_image_filter_background_line(filtered, NULL, slit_max_width,</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>                                                 CPL_TRUE);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>         cpl_image_delete(filtered) ;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>         cpl_ensure(0, cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     }</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <span class="comment">/* Find the position of the slit */</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     <span class="keywordflow">if</span> (irplib_slitpos_find_vert_pos(filtered, slit_max_width/2, &slit_pos)) {</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>         cpl_image_delete(filtered);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Could not find the slit position"</span>);</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>         cpl_ensure(0, cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     }</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     <span class="comment">/* Extract a thin image containing the slit */</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     thin_im = cpl_image_extract(filtered, slit_pos-slit_max_width/2, 1,</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>                                 slit_pos+slit_max_width/2, size_y);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     <span class="keywordflow">if</span> (thin_im == NULL) {</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Could not extract the %d pixel thin image "</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>                       <span class="stringliteral">"around position %"</span>CPL_SIZE_FORMAT, </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>                       slit_max_width, slit_pos);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>         cpl_image_delete(filtered);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>         cpl_ensure(0, cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     }</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     <span class="comment">/* Find the ends of the slit */</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     error = irplib_slitpos_find_vert_slit_ends(thin_im,</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>                                                IRPLIB_SLITPOS_KERNEL_SIZE_Y,</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                                                &slit_bot_y,</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                                                &slit_top_y);</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     cpl_image_delete(thin_im);</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>         cpl_image_delete(filtered);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>         cpl_ensure(0, cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     }</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     <span class="comment">/* Extract an image with exactly the slit */</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     thin_im = cpl_image_extract(filtered,</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>                                 slit_pos-slit_max_width/2,</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>                                 slit_bot_y,</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>                                 slit_pos+slit_max_width/2,</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>                                 slit_top_y);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     cpl_image_delete(filtered);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     cpl_ensure(thin_im != NULL, cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     slit_length = 1 + slit_top_y - slit_bot_y;</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <span class="comment">/* Allocate some arrays */</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     slit_y = cpl_malloc(slit_length * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     slit_x_l = cpl_malloc(slit_length * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     slit_x_r = cpl_malloc(slit_length * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     <span class="comment">/* Find the edges of the slit */</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     <span class="keywordflow">for</span> (i=0 ; i<slit_length ; i++) {</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>         <span class="keywordtype">int</span> right_pos = 0; <span class="comment">/* Avoid (false) uninit warning */</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>         <span class="keywordtype">int</span> left_pos  = 0; <span class="comment">/* Avoid (false) uninit warning */</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>         <span class="keywordflow">if</span> (irplib_slitpos_find_edges_one_line(thin_im,</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>                                                 i,</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>                                                 &left_pos,</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>                                                 &right_pos)) {</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"cannot find the edges of the [%d]th line"</span>, </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>                     i+1);</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>             cpl_image_delete(thin_im);</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>             <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>         }</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>         <span class="comment">/* Update the slit_flux */</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>         <span class="keywordflow">if</span> (slit_flux != NULL) {</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>             *slit_flux += cpl_image_get_flux_window(thin_im, left_pos+1,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                     i+1, right_pos+1, i+1) ;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         }</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         <span class="comment">/* Store the edges for the fit */</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>         slit_x_l[i] = (double)left_pos;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>         slit_x_r[i] = (double)right_pos;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>         slit_y[i]   = (double)(i+slit_bot_y-1);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     }</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     cpl_image_delete(thin_im);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="comment">/* Linear regression to find the edges */</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     coeff_l = <a class="code" href="group__irplib__flat.html#ga3e3e3bd45aef34e38758e1f2528d7c91" title="Fit a slope to a list of points (robust fit).">irplib_flat_fit_slope_robust</a>(slit_y, slit_x_l, slit_length);</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     coeff_r = <a class="code" href="group__irplib__flat.html#ga3e3e3bd45aef34e38758e1f2528d7c91" title="Fit a slope to a list of points (robust fit).">irplib_flat_fit_slope_robust</a>(slit_y, slit_x_r, slit_length);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     cpl_free(slit_y);</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     cpl_free(slit_x_l);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     cpl_free(slit_x_r);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     <span class="comment">/* Allocate the table containing the results */</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <span class="keyword">self</span> = cpl_table_new(slit_length);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     error |= cpl_table_new_column(<span class="keyword">self</span>, <span class="stringliteral">"SLIT_Y"</span>,      CPL_TYPE_INT);</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     error |= cpl_table_new_column(<span class="keyword">self</span>, <span class="stringliteral">"SLIT_LEFT"</span>,   CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     error |= cpl_table_new_column(<span class="keyword">self</span>, <span class="stringliteral">"SLIT_CENTER"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     error |= cpl_table_new_column(<span class="keyword">self</span>, <span class="stringliteral">"SLIT_RIGHT"</span>,  CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> </div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     error |= cpl_table_set_column_unit(<span class="keyword">self</span>, <span class="stringliteral">"SLIT_Y"</span>, <span class="stringliteral">"pixel"</span>);</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     error |= cpl_table_set_column_unit(<span class="keyword">self</span>, <span class="stringliteral">"SLIT_LEFT"</span>, <span class="stringliteral">"pixel"</span>);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     error |= cpl_table_set_column_unit(<span class="keyword">self</span>, <span class="stringliteral">"SLIT_CENTER"</span>, <span class="stringliteral">"pixel"</span>);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     error |= cpl_table_set_column_unit(<span class="keyword">self</span>, <span class="stringliteral">"SLIT_RIGHT"</span>, <span class="stringliteral">"pixel"</span>);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     cpl_ensure(!error, cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     <span class="comment">/* Rewrite the edges in the out table, and write the center */</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     <span class="keywordflow">for</span> (i=0 ; i < slit_length ; i++) {</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         <span class="keyword">const</span> <span class="keywordtype">int</span>    islity = i + slit_bot_y;</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> dslit  = slit_pos - slit_max_width / 2.0;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> dleft  = coeff_l[0] + coeff_l[1] * (double)islity + dslit;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> dright = coeff_r[0] + coeff_r[1] * (double)islity + dslit;</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> dcent  = 0.5 * (dleft + dright);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>         <span class="keywordflow">if</span> (cpl_table_set_int(<span class="keyword">self</span>,    <span class="stringliteral">"SLIT_Y"</span>,      i, islity)) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>         <span class="keywordflow">if</span> (cpl_table_set_double(<span class="keyword">self</span>, <span class="stringliteral">"SLIT_LEFT"</span>,   i, dleft))  <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>         <span class="keywordflow">if</span> (cpl_table_set_double(<span class="keyword">self</span>, <span class="stringliteral">"SLIT_RIGHT"</span>,  i, dright)) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>         <span class="keywordflow">if</span> (cpl_table_set_double(<span class="keyword">self</span>, <span class="stringliteral">"SLIT_CENTER"</span>, i, dcent))  <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     }</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     cpl_free(coeff_r);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     cpl_free(coeff_l);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> </div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     <span class="keywordflow">if</span> (i != slit_length) {</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>         cpl_table_delete(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>         cpl_ensure(0, cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     }</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     <span class="keywordflow">return</span> <span class="keyword">self</span>;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> }</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="keyword">static</span> cpl_error_code irplib_slitpos_find_edges_one_line(<span class="keyword">const</span> cpl_image * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>                                                          <span class="keywordtype">int</span>          line_pos,</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                                                          <span class="keywordtype">int</span>        * left_pos,</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                                                          <span class="keywordtype">int</span>        * right_pos)</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> {</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>     size_x = cpl_image_get_size_x(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     <span class="keyword">const</span> <span class="keywordtype">float</span> * pself;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     <span class="keywordtype">double</span>        threshold;</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="keywordtype">int</span>           i;</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     cpl_ensure_code(<span class="keyword">self</span> != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     cpl_ensure_code(cpl_image_get_type(<span class="keyword">self</span>) == CPL_TYPE_FLOAT,</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>                     CPL_ERROR_INVALID_TYPE);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     pself = cpl_image_get_data_float_const(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     <span class="comment">/* Find the threshold */</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     threshold = cpl_image_get_mean_window(<span class="keyword">self</span>, 1, line_pos+1, size_x,</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>                                           line_pos+1);</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     <span class="comment">/* Detect the left edge */</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     i = 0;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     <span class="keywordflow">while</span> (i < size_x && pself[line_pos*size_x+i] < threshold) i++;</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     *left_pos = i;</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     <span class="comment">/* Detect the right edge */</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     i = size_x - 1;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     <span class="keywordflow">while</span> (i >= 0 && pself[line_pos*size_x+i] < threshold) i--;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     *right_pos = i;</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> }</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> cpl_error_code irplib_slitpos_find_vert_slit_ends(<span class="keyword">const</span> cpl_image * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>                                                   <span class="keywordtype">int</span>        kernel_size,</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>                                                   <span class="keywordtype">int</span>      * bot_slit_y,</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>                                                   <span class="keywordtype">int</span>      * top_slit_y)</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> {</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     cpl_mask         * binary;</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     cpl_mask         * copy = NULL;</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     cpl_mask         * kernel;</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     cpl_image        * label_image;</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     <span class="keywordtype">int</span>                erosions_nb;</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     cpl_size           nobj ;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>          size_x = cpl_image_get_size_x(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>          size_y = cpl_image_get_size_y(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>          npix = size_x * size_y;</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     <span class="keyword">const</span> cpl_binary * pbinary;</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     <span class="keyword">const</span> cpl_binary * pfind;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     <span class="keywordtype">int</span>                i, itop, ibot;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     cpl_ensure_code(size_x      > 0, cpl_error_get_code());</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     cpl_ensure_code(kernel_size > 0, cpl_error_get_code());</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     <span class="comment">/* Threshold to have a binary image */</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     binary = cpl_mask_threshold_image_create(<span class="keyword">self</span>, cpl_image_get_mean(<span class="keyword">self</span>),</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                                              cpl_image_get_max(<span class="keyword">self</span>));</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     cpl_ensure_code(binary != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     <span class="comment">/* Erode until there is 1 object left in the image */</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     label_image = cpl_image_labelise_mask_create(binary, &nobj);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     cpl_image_delete(label_image);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     <span class="keywordflow">if</span> (label_image == NULL) {</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>         cpl_mask_delete(binary);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>         cpl_ensure_code(0, cpl_error_get_code());</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     }</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     <span class="comment">/* Define the kernel for morpho operations */</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     kernel = cpl_mask_new(kernel_size, 1);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     cpl_mask_not(kernel);</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     copy = cpl_mask_wrap(size_x, size_y, cpl_malloc(size_x * size_y *</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                                                     <span class="keyword">sizeof</span>(cpl_binary)));</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     <span class="keywordflow">for</span> (erosions_nb = 0; erosions_nb < IRPLIB_SLITPOS_MAX_EROSION && nobj > 1;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>          erosions_nb++) {</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>         <span class="comment">/* Should not be possible to break from this loop */</span></div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         cpl_mask_copy(copy, binary, 1, 1);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>         <span class="keywordflow">if</span> (cpl_mask_filter(binary, copy, kernel, CPL_FILTER_EROSION,</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>                             CPL_BORDER_ZERO)) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>         label_image = cpl_image_labelise_mask_create(binary, &nobj);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>         <span class="keywordflow">if</span> (label_image == NULL) <span class="keywordflow">break</span>; <span class="comment">/* Assuming nobj was not set to 1 */</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         cpl_image_delete(label_image);</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     }</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     <span class="keywordflow">if</span> (nobj > 1) {</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>         cpl_mask_delete(binary);</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>         cpl_mask_delete(copy);</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>         cpl_mask_delete(kernel);</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>         <span class="keywordflow">if</span> (erosions_nb >= IRPLIB_SLITPOS_MAX_EROSION) {</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Number of erosions reached a limit of %d "</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>                           <span class="stringliteral">"with %"</span>CPL_SIZE_FORMAT<span class="stringliteral">" possible slits left"</span>,</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                           IRPLIB_SLITPOS_MAX_EROSION, nobj);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>             cpl_ensure_code(0, CPL_ERROR_CONTINUE);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>         }</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>         cpl_ensure_code(0, cpl_error_get_code());</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (nobj < 1) {</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>         cpl_mask_delete(binary);</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>         cpl_mask_delete(copy);</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>         cpl_mask_delete(kernel);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>         <span class="keywordflow">if</span> (erosions_nb == 0)</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"No slit could be detected across %d "</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>                           <span class="stringliteral">"pixels"</span>, size_x);</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>         <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"The last of %d erosions removed all the "</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                           <span class="stringliteral">"possible slits"</span>, erosions_nb);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>         cpl_ensure_code(0, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     }</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     <span class="comment">/* Reconstruct the slit with dilations */</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     <span class="keywordflow">for</span> (i=0 ; i < erosions_nb ; i++) {</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>         cpl_mask_copy(copy, binary, 1, 1);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>         <span class="keywordflow">if</span> (cpl_mask_filter(binary, copy, kernel, CPL_FILTER_DILATION,</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>                             CPL_BORDER_ZERO)) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     }</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     cpl_mask_delete(copy);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     cpl_mask_delete(kernel);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     <span class="keywordflow">if</span> (i != erosions_nb) {</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Dilation number %d out of %d failed"</span>,</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>                       i, erosions_nb);</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>         cpl_mask_delete(binary);</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>         cpl_ensure_code(0, cpl_error_get_code());</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     }</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> </div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     <span class="comment">/* Find the ends of the slit */</span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     pbinary = cpl_mask_get_data(binary);</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     assert( pbinary != NULL );</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     pfind = memchr(pbinary, CPL_BINARY_1, (<span class="keywordtype">size_t</span>)npix);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>     assert( pfind != NULL );</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> </div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     ibot = (int)(pfind - pbinary);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> <span class="preprocessor">#if defined HAVE_DECL_MEMRCHR && HAVE_DECL_MEMRCHR == 1</span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> <span class="preprocessor"></span>    <span class="comment">/* FIXME: Not tested */</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     pfind = memrchr(pfind, CPL_BINARY_1, (<span class="keywordtype">size_t</span>)(npix - ibot));</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     assert( pfind != NULL );</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     itop = (int)(pfind - pbinary);</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>     itop = npix - 1;</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     <span class="keywordflow">while</span> (itop > ibot && pbinary[itop] == CPL_BINARY_0) itop--;</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     *bot_slit_y = 1 + ibot / size_x;</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     *top_slit_y = 1 + itop / size_x;</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     cpl_msg_info(cpl_func, </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>             <span class="stringliteral">"Detected %"</span>CPL_SIZE_FORMAT<span class="stringliteral">"-pixel slit from pixel %d to %d "</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>             <span class="stringliteral">"using %d erosions/dilations"</span>, cpl_mask_count(binary),</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>             *bot_slit_y, *top_slit_y, erosions_nb);</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> </div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     cpl_mask_delete(binary);</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> </div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     <span class="comment">/* Should really be an assert() */</span></div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     cpl_ensure_code(ibot <= itop, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> }</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> <span class="keyword">static</span> cpl_error_code irplib_slitpos_find_vert_pos(<span class="keyword">const</span> cpl_image * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>                                                    <span class="keywordtype">int</span>               xwidth,</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>                                                    cpl_size        * slit_pos)</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> {</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>       size_x = cpl_image_get_size_x(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     cpl_image   *   image1D;</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     cpl_size        yone;</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     cpl_error_code  error;</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     <span class="comment">/* Collapse the image to a horizontal 1D image */</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     image1D = cpl_image_collapse_create(<span class="keyword">self</span>, 0);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     cpl_ensure_code(image1D != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     <span class="comment">/* Search the max of the 1D image to identify the slit position */</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     error = cpl_image_get_maxpos_window(image1D, 1+xwidth, 1, size_x-xwidth,</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>                                         1, slit_pos, &yone);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     cpl_image_delete(image1D);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> }</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="keyword">static</span> cpl_error_code irplib_image_filter_background_line(cpl_image * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>                                                    <span class="keyword">const</span> cpl_image * other,</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>                                                    <span class="keywordtype">int</span> hsize,</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>                                                    cpl_boolean vertical)</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> {</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>      nx = cpl_image_get_size_x(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>      ny = cpl_image_get_size_y(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>      msize = 1 + 2 * hsize;</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>     cpl_mask     * mask;</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>     cpl_image    * background;</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     cpl_error_code error = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> </div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     cpl_ensure_code(<span class="keyword">self</span>  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>     cpl_ensure_code(hsize >= 0,    CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> </div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     <span class="keywordflow">if</span> (other == NULL) other = <span class="keyword">self</span>;</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> </div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     mask = vertical ? cpl_mask_new(msize, 1) : cpl_mask_new(1, msize);</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     error |= cpl_mask_not(mask);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>     background = cpl_image_new(nx, ny, cpl_image_get_type(other));</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>     error |= cpl_image_filter_mask(background, other, mask, CPL_FILTER_MEDIAN,</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                                    CPL_BORDER_FILTER);</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>     cpl_mask_delete(mask);</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> </div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> != other) {</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>         error |= cpl_image_copy(<span class="keyword">self</span>, other, 1, 1);</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     }</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> </div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>     error |= cpl_image_subtract(<span class="keyword">self</span>, background);</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>     cpl_image_delete(background);</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> </div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>     <span class="keywordflow">return</span> error ? cpl_error_set_where(cpl_func) : CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> }</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> </div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__slitpos_8h_source.html b/html/irplib__slitpos_8h_source.html
deleted file mode 100644
index b70f46f..0000000
--- a/html/irplib__slitpos_8h_source.html
+++ /dev/null
@@ -1,99 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_slitpos.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_slitpos.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_slitpos.h,v 1.6 2006-11-29 13:22:59 yjung Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: yjung $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2006-11-29 13:22:59 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.6 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_SLITPOS_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_SLITPOS_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> cpl_table * <a class="code" href="group__irplib__slitpos.html#ga632b21eccf3d4bb48426cdd23f321cba" title="Detect the slit position, detect its ends, extract a thin image containing only the slit and find its...">irplib_slitpos_analysis</a>(<span class="keyword">const</span> cpl_image *, <span class="keywordtype">int</span>, <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__spectrum_8c_source.html b/html/irplib__spectrum_8c_source.html
deleted file mode 100644
index 1c1824c..0000000
--- a/html/irplib__spectrum_8c_source.html
+++ /dev/null
@@ -1,613 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_spectrum.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_spectrum.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_spectrum.c,v 1.29 2012-01-12 11:50:41 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2012-01-12 11:50:41 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.29 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include "irplib_wlxcorr.h"</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include "irplib_spectrum.h"</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">                                   Define</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/* TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#ifndef CPL_SIZE_FORMAT</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#define CPL_SIZE_FORMAT "d"</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="preprocessor">#define cpl_size int</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor"></span><span class="comment">/* END TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#define SPECTRUM_HW                     16</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span><span class="preprocessor">#define MIN_THRESH_FACT                 0.9</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#define MAX_THRESH_FACT                 1.1</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor"></span><span class="preprocessor">#define SPEC_SHADOW_FACT                30.0 </span><span class="comment">/* Negative spectrum intensity*/</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span><span class="preprocessor">#define SPEC_MAXWIDTH                   48</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="keyword">static</span> <span class="keywordtype">int</span> select_valid_spectra(cpl_image *, cpl_apertures *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>         spec_shadows, <span class="keywordtype">int</span>, <span class="keywordtype">int</span> *, <span class="keywordtype">int</span> **) ;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="keyword">static</span> <span class="keywordtype">int</span> valid_spectrum(cpl_image *, cpl_apertures *, <span class="keywordtype">int</span>, spec_shadows, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>         <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="group__irplib__spectrum.html#ga9ac928ba9a48e864b56e921c970638c0">   93</a></span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__spectrum.html#ga9ac928ba9a48e864b56e921c970638c0" title="Finds the brightest spectrum in an image.">irplib_spectrum_find_brightest</a>(</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>         <span class="keyword">const</span> cpl_image     *   in,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>         <span class="keywordtype">int</span>                     offset,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>         spec_shadows            shadows,</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>         <span class="keywordtype">double</span>                  min_bright,</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>         <span class="keywordtype">int</span>                     orient,</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>         <span class="keywordtype">double</span>              *   pos)</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> {</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     cpl_image       *   loc_ima ;</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     cpl_image       *   filt_image ;</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     cpl_image       *   collapsed ;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     <span class="keywordtype">float</span>           *   pcollapsed ;</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     cpl_vector      *   line ;</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     <span class="keywordtype">double</span>          *   pline ;</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     cpl_vector      *   line_filt ;</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     <span class="keywordtype">double</span>              threshold ;</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     <span class="keywordtype">double</span>              median, stdev, max, mean ;</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     cpl_mask        *   mask ;</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     cpl_image       *   labels ;</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>     cpl_size            nlabels ;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     cpl_apertures   *   aperts ;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     <span class="keywordtype">int</span>                 n_valid_specs ;</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     <span class="keywordtype">int</span>             *   valid_specs ;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     <span class="keywordtype">double</span>              brightness ;</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     <span class="keywordtype">int</span>                 i ;</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     <span class="keywordflow">if</span> (in == NULL) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     <span class="keywordflow">if</span> (orient!=0 && orient!=1) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     <span class="comment">/* Flip the image if necessary */</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     <span class="keywordflow">if</span> (orient == 1) {</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>         loc_ima = cpl_image_duplicate(in) ;</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>         cpl_image_flip(loc_ima, 1) ;</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>         loc_ima = cpl_image_duplicate(in) ;</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     }</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> </div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     <span class="comment">/* Median vertical filtering 3x3 */</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     mask = cpl_mask_new(3, 3) ;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     cpl_mask_not(mask) ;</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     filt_image = cpl_image_new(</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>             cpl_image_get_size_x(loc_ima),</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>             cpl_image_get_size_y(loc_ima),</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>             cpl_image_get_type(loc_ima)) ;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="keywordflow">if</span> (cpl_image_filter_mask(filt_image, loc_ima, mask,</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>                 CPL_FILTER_MEDIAN, CPL_BORDER_FILTER) != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>         cpl_msg_error(__func__, <span class="stringliteral">"Cannot filter the image"</span>) ;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>         cpl_mask_delete(mask) ;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>         cpl_image_delete(filt_image) ;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     }</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     cpl_mask_delete(mask) ;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     cpl_image_delete(loc_ima) ;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     <span class="comment">/* Collapse the image */</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     <span class="keywordflow">if</span> ((collapsed = cpl_image_collapse_median_create(filt_image, 1, 0,</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>                     0)) == NULL) {</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"collapsing image: aborting spectrum detection"</span>);</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>         cpl_image_delete(filt_image) ;</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     }</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     cpl_image_delete(filt_image) ;</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     <span class="comment">/* Subtract low frequency signal */</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     line = cpl_vector_new_from_image_column(collapsed, 1) ;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     cpl_image_delete(collapsed) ;</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     line_filt = cpl_vector_filter_median_create(line, SPECTRUM_HW) ;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     cpl_vector_subtract(line, line_filt) ;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     cpl_vector_delete(line_filt) ;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <span class="comment">/* Get relevant stats for thresholding */</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     median = cpl_vector_get_median_const(line) ;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     stdev = cpl_vector_get_stdev(line) ;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     max = cpl_vector_get_max(line) ;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     mean = cpl_vector_get_mean(line) ;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     <span class="comment">/* Set the threshold */</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     threshold = median + stdev ;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     <span class="keywordflow">if</span> (threshold > MIN_THRESH_FACT * max)  threshold = MIN_THRESH_FACT * max ;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="keywordflow">if</span> (threshold < MAX_THRESH_FACT * mean) threshold = MAX_THRESH_FACT * mean;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     <span class="comment">/* Recreate the image */</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     collapsed = cpl_image_new(1, cpl_vector_get_size(line), CPL_TYPE_FLOAT) ;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     pcollapsed = cpl_image_get_data_float(collapsed) ;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     pline = cpl_vector_get_data(line) ;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     <span class="keywordflow">for</span> (i=0 ; i<cpl_vector_get_size(line) ; i++)</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>         pcollapsed[i] = (<span class="keywordtype">float</span>)pline[i] ;</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     cpl_vector_delete(line) ;</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     <span class="comment">/* Binarise the image */</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     <span class="keywordflow">if</span> ((mask = cpl_mask_threshold_image_create(collapsed, threshold,</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>             DBL_MAX)) == NULL) {</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"cannot binarise"</span>) ;</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>         cpl_image_delete(collapsed) ;</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     }</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     <span class="keywordflow">if</span> (cpl_mask_count(mask) < 1) {</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"not enough signal to detect spectra"</span>) ;</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>         cpl_image_delete(collapsed) ;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>         cpl_mask_delete(mask) ;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     }</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     <span class="comment">/* Labelise the different detected apertures */</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     <span class="keywordflow">if</span> ((labels = cpl_image_labelise_mask_create(mask, &nlabels))==NULL) {</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"cannot labelise"</span>) ;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>         cpl_image_delete(collapsed) ;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>         cpl_mask_delete(mask) ;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     }</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     cpl_mask_delete(mask) ;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     <span class="comment">/* Create the detected apertures list */</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     <span class="keywordflow">if</span> ((aperts = cpl_apertures_new_from_image(collapsed, labels)) == NULL) {</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"cannot compute apertures"</span>) ;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>         cpl_image_delete(collapsed) ;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>         cpl_image_delete(labels) ;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     }</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     cpl_image_delete(labels) ;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     <span class="comment">/* Select only relevant specs, create corresponding LUT's */</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     <span class="keywordflow">if</span> (select_valid_spectra(collapsed, aperts, offset, shadows, SPEC_MAXWIDTH,</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>                 &n_valid_specs, &valid_specs) == -1) {</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>         cpl_msg_debug(cpl_func, </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>                 <span class="stringliteral">"Could not select valid spectra from the %"</span>CPL_SIZE_FORMAT</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>                 <span class="stringliteral">" apertures in %"</span>CPL_SIZE_FORMAT<span class="stringliteral">"-col 1D-image, offset=%d"</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>                 <span class="stringliteral">", min_bright=%d"</span>,</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>                       cpl_apertures_get_size(aperts),</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                       cpl_image_get_size_y(collapsed), offset, SPEC_MAXWIDTH);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>         <span class="keywordflow">if</span> (cpl_msg_get_level() <= CPL_MSG_DEBUG)</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>             cpl_apertures_dump(aperts, stderr);</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>         cpl_image_delete(collapsed);</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>         cpl_apertures_delete(aperts);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     }</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     cpl_image_delete(collapsed) ;</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="keywordflow">if</span> (n_valid_specs < 1) {</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"no valid spectrum detected"</span>) ;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         cpl_free(valid_specs) ;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         cpl_apertures_delete(aperts) ;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     }</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="comment">/* Look for the brightest, among the detected spectra */</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     *pos = cpl_apertures_get_centroid_y(aperts, valid_specs[0]+1) ;</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     brightness = cpl_apertures_get_flux(aperts, valid_specs[0]+1) ;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <span class="keywordflow">for</span> (i=0 ; i<n_valid_specs ; i++) {</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>         <span class="keywordflow">if</span> (cpl_apertures_get_flux(aperts, valid_specs[i]+1) > brightness) {</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>             *pos = cpl_apertures_get_centroid_y(aperts, valid_specs[i]+1) ;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>             brightness = cpl_apertures_get_flux(aperts, valid_specs[i]+1) ;</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         }</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     }</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     cpl_apertures_delete(aperts) ;</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     cpl_free(valid_specs) ;</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <span class="comment">/* Minimum brightness required */</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     <span class="keywordflow">if</span> (brightness < min_bright) {</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"brightness %f too low <%f"</span>, brightness,</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>                 min_bright) ;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     }</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <span class="comment">/* Return */</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> }</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno"><a class="code" href="group__irplib__spectrum.html#ga1885902c29d7383674c85e2c3d935961">  273</a></span> cpl_vector * <a class="code" href="group__irplib__spectrum.html#ga1885902c29d7383674c85e2c3d935961" title="Detect the brightest features in a spectrum.">irplib_spectrum_detect_peaks</a>(</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>         <span class="keyword">const</span> cpl_vector    *   in,</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>         <span class="keywordtype">int</span>                     fwhm,</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>         <span class="keywordtype">double</span>                  sigma,</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>         <span class="keywordtype">int</span>                     display,</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         cpl_vector          **  fwhms_out,</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>         cpl_vector          **  areas_out)</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> {</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     cpl_vector      *   filtered ;</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     cpl_vector      *   spec_clean ;</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     cpl_vector      *   spec_convolved ;</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     <span class="keywordtype">double</span>          *   pspec_convolved ;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     <span class="keywordtype">int</span>                 filt_size ;</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     cpl_vector      *   conv_kernel ;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     cpl_vector      *   extract ;</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     cpl_vector      *   extract_x ;</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     cpl_vector      *   big_detected ;</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     cpl_vector      *   big_fwhms ;</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     cpl_vector      *   big_area ;</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     <span class="keywordtype">double</span>          *   pbig_detected ;</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     <span class="keywordtype">double</span>          *   pbig_fwhms ;</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     <span class="keywordtype">double</span>          *   pbig_area ;</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     cpl_vector      *   detected ;</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     <span class="keywordtype">double</span>          *   pdetected ;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     cpl_vector      *   fwhms ;</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     <span class="keywordtype">double</span>          *   pfwhms ;</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     cpl_vector      *   area ;</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="keywordtype">double</span>          *   parea ;</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <span class="keywordtype">double</span>              max, med, stdev, cur_val ;</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <span class="keywordtype">double</span>              x0, sig, norm, offset ;</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="keywordtype">int</span>                 nb_det, nb_samples, hwidth, start, stop ;</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <span class="keywordtype">int</span>                 i, j ;</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     <span class="keywordflow">if</span> (in == NULL) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     nb_samples = cpl_vector_get_size(in) ;</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     filt_size = 5 ;</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     hwidth = 5 ;</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     <span class="comment">/* Subtract the low frequency part */</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     cpl_msg_info(__func__, <span class="stringliteral">"Low Frequency signal removal"</span>) ;</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     <span class="keywordflow">if</span> ((filtered=cpl_vector_filter_median_create(in, filt_size))==NULL){</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>         cpl_msg_error(__func__, <span class="stringliteral">"Cannot filter the spectrum"</span>) ;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     }</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     spec_clean = cpl_vector_duplicate(in) ;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     cpl_vector_subtract(spec_clean, filtered) ;</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     cpl_vector_delete(filtered) ;</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     <span class="comment">/* Display if requested */</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <span class="keywordflow">if</span> (display) {</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>         cpl_plot_vector(</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     <span class="stringliteral">"set grid;set xlabel 'Position (pixels)';set ylabel 'Intensity (ADU)';"</span>,</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>         <span class="stringliteral">"t 'Filtered extracted spectrum' w lines"</span>, <span class="stringliteral">""</span>, spec_clean);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     }</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <span class="comment">/* Convolve */</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     spec_convolved = cpl_vector_duplicate(spec_clean) ;</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     <span class="keywordflow">if</span> (fwhm > 0) {</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>         cpl_msg_info(__func__, <span class="stringliteral">"Spectrum convolution"</span>) ;</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>         <span class="comment">/* Create convolution kernel */</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>         <span class="keywordflow">if</span> ((conv_kernel = irplib_wlxcorr_convolve_create_kernel(fwhm,</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>                         fwhm)) == NULL) {</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot create convolution kernel"</span>) ;</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>             cpl_vector_delete(spec_clean) ;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>             cpl_vector_delete(spec_convolved) ;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>             <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>         }</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> </div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>         <span class="comment">/* Smooth the instrument resolution */</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>         <span class="keywordflow">if</span> (irplib_wlxcorr_convolve(spec_convolved, conv_kernel)) {</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot smoothe the signal"</span>);</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>             cpl_vector_delete(spec_clean) ;</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>             cpl_vector_delete(spec_convolved) ;</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>             cpl_vector_delete(conv_kernel) ;</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>             <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>         }</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>         cpl_vector_delete(conv_kernel) ;</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>         <span class="comment">/* Display if requested */</span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>         <span class="keywordflow">if</span> (display) {</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>             cpl_plot_vector(</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>         <span class="stringliteral">"set grid;set xlabel 'Position (pixels)';set ylabel 'Intensity (ADU)';"</span>,</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>             <span class="stringliteral">"t 'Convolved extracted spectrum' w lines"</span>, <span class="stringliteral">""</span>, spec_convolved);</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>         }</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     }</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     <span class="comment">/* Apply the detection */</span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     big_detected = cpl_vector_duplicate(spec_convolved) ;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     big_fwhms = cpl_vector_duplicate(spec_convolved) ;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     big_area = cpl_vector_duplicate(spec_convolved) ;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     pbig_detected = cpl_vector_get_data(big_detected) ;</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     pbig_fwhms = cpl_vector_get_data(big_fwhms) ;</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     pbig_area = cpl_vector_get_data(big_area) ;</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     pspec_convolved = cpl_vector_get_data(spec_convolved) ;</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     <span class="comment">/* To avoid detection on the side */</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     pspec_convolved[0] = pspec_convolved[nb_samples-1] = 0.0 ;</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     <span class="comment">/* Compute stats */</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     max     =   cpl_vector_get_max(spec_convolved) ;</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     stdev   =   cpl_vector_get_stdev(spec_convolved) ;</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     med     =   cpl_vector_get_median_const(spec_convolved) ;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     <span class="comment">/* Loop on the detected lines */</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     nb_det = 0 ;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     <span class="keywordflow">while</span> (max > med + stdev * sigma) {</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>         <span class="comment">/* Compute the position */</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>         i=0 ;</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>         <span class="keywordflow">while</span> (pspec_convolved[i] < max) i++ ;</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>         <span class="keywordflow">if</span> (i<=0 || i>=nb_samples-1) break ;</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>         <span class="comment">/* Extract the line */</span></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>         <span class="keywordflow">if</span> (i - hwidth >= 0)                start = i - hwidth ;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>         <span class="keywordflow">else</span>                                start = 0 ;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>         <span class="keywordflow">if</span> (i + hwidth <= nb_samples-1)     stop = i + hwidth ;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         <span class="keywordflow">else</span>                                stop = nb_samples-1 ;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>         extract = cpl_vector_extract(spec_clean, start, stop, 1) ;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>         extract_x = cpl_vector_duplicate(extract) ;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>         <span class="keywordflow">for</span> (j=0 ; j<cpl_vector_get_size(extract_x) ; j++) {</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>             cpl_vector_set(extract_x, j, (<span class="keywordtype">double</span>)j+1) ;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>         }</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         <span class="comment">/* Fit the gaussian */</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>         <span class="keywordflow">if</span> (cpl_vector_fit_gaussian(extract_x, NULL, extract, NULL, </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                     CPL_FIT_ALL, &x0, &sig, &norm, &offset, NULL, NULL, </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                     NULL) != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>             cpl_msg_warning(__func__, </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                     <span class="stringliteral">"Cannot fit a gaussian at [%d, %d]"</span>,</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>                     start, stop) ;</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>             cpl_error_reset() ;</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>             pbig_detected[nb_det] = x0+start ;</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>             pbig_area[nb_det] = norm ;</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>             pbig_fwhms[nb_det] = 2*sig*sqrt(2*log(2)) ;</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>             cpl_msg_debug(__func__, <span class="stringliteral">"Line nb %d at position %g"</span>,</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>                     nb_det+1, pbig_detected[nb_det]) ;</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>             nb_det ++ ;</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>         }</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>         cpl_vector_delete(extract) ;</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>         cpl_vector_delete(extract_x) ;</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>         <span class="comment">/* Cancel out the line on the left */</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>         j = i-1 ;</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>         cur_val = pspec_convolved[i] ;</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>         <span class="keywordflow">while</span> (j>=0 && pspec_convolved[j] < cur_val) {</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>             cur_val = pspec_convolved[j] ;</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>             pspec_convolved[j] = 0.0 ;</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>             j-- ;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>         }</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>         <span class="comment">/* Cancel out the line on the right */</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>         j = i+1 ;</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>         cur_val = pspec_convolved[i] ;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>         <span class="keywordflow">while</span> (j<=nb_samples-1 && pspec_convolved[j] < cur_val) {</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>             cur_val = pspec_convolved[j] ;</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>             pspec_convolved[j] = 0.0 ;</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>             j++ ;</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>         }</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>         <span class="comment">/* Cancel out the line on center */</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>         pspec_convolved[i] = 0.0 ;</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>         <span class="comment">/* Recompute the stats */</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>         max     =   cpl_vector_get_max(spec_convolved) ;</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>         stdev   =   cpl_vector_get_stdev(spec_convolved) ;</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>         med     =   cpl_vector_get_median_const(spec_convolved) ;</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     }</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     cpl_vector_delete(spec_convolved) ;</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     cpl_vector_delete(spec_clean) ;</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> </div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     <span class="comment">/* Create the output vector */</span></div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     <span class="keywordflow">if</span> (nb_det == 0) {</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         detected = NULL ;</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>         area = NULL ;</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>         fwhms = NULL ;</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>         detected = cpl_vector_new(nb_det) ;</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>         area = cpl_vector_new(nb_det) ;</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>         fwhms = cpl_vector_new(nb_det) ;</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>         pdetected = cpl_vector_get_data(detected) ;</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>         parea = cpl_vector_get_data(area) ;</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>         pfwhms = cpl_vector_get_data(fwhms) ;</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>         <span class="keywordflow">for</span> (i=0 ; i<nb_det ; i++) {</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>             pdetected[i] = pbig_detected[i] ;</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>             parea[i] = pbig_area[i] ;</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>             pfwhms[i] = pbig_fwhms[i] ;</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>         }</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>     }</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>     cpl_vector_delete(big_detected) ;</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     cpl_vector_delete(big_area) ;</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     cpl_vector_delete(big_fwhms) ;</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     <span class="comment">/* Return  */</span></div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     <span class="keywordflow">if</span> (fwhms_out == NULL)  cpl_vector_delete(fwhms) ;</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>     <span class="keywordflow">else</span>                    *fwhms_out = fwhms ;</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     <span class="keywordflow">if</span> (areas_out == NULL)  cpl_vector_delete(area) ;</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     <span class="keywordflow">else</span>                    *areas_out = area ;</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     <span class="keywordflow">return</span> detected ;</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> }</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> <span class="keyword">static</span> <span class="keywordtype">int</span> select_valid_spectra(</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>         cpl_image       *   in,</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>         cpl_apertures   *   aperts,</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>         <span class="keywordtype">int</span>                 offset,</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>         spec_shadows        shadows,</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>         <span class="keywordtype">int</span>                 max_spec_width,</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>         <span class="keywordtype">int</span>             *   n_valid_specs,</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>         <span class="keywordtype">int</span>             **  valid_specs)</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> {</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     <span class="keywordtype">int</span>                 nb_aperts ;</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     <span class="keywordtype">int</span>                 i, j ;</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     *valid_specs = NULL ;</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     nb_aperts = cpl_apertures_get_size(aperts) ;</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     *n_valid_specs = 0 ;</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     <span class="keywordflow">if</span> (nb_aperts < 1) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     <span class="comment">/* Count nb of valid specs */</span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     j = 0 ;</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>     <span class="keywordflow">for</span> (i=0 ; i<nb_aperts ; i++)</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>         <span class="keywordflow">if</span> (valid_spectrum(in, aperts, offset, shadows, max_spec_width,</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>                     i+1)) (*n_valid_specs)++ ;</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     <span class="comment">/* Associate to each spectrum, its object number */</span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     <span class="keywordflow">if</span> (*n_valid_specs) {</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>         *valid_specs = cpl_calloc(*n_valid_specs, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>)) ;</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>         j = 0 ;</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>         <span class="keywordflow">for</span> (i=0 ; i<nb_aperts ; i++)</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>             <span class="keywordflow">if</span> (valid_spectrum(in, aperts, offset, shadows, max_spec_width,</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                         i+1)) {</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                 (*valid_specs)[j] = i ;</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>                 j++ ;</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>             }</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     } <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> }</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> <span class="keyword">static</span> <span class="keywordtype">int</span> valid_spectrum(</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>         cpl_image       *   in,</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>         cpl_apertures   *   aperts,</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>         <span class="keywordtype">int</span>                 offset,</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>         spec_shadows        shadows,</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>         <span class="keywordtype">int</span>                 max_spec_width,</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>         <span class="keywordtype">int</span>                 objnum)</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> {</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     <span class="keywordtype">int</span>                 objwidth ;</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>     <span class="keywordtype">double</span>              valover, valunder, valcenter ;</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> </div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     <span class="comment">/* Find objwidth */</span></div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>     objwidth = cpl_apertures_get_top(aperts, objnum) -</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>         cpl_apertures_get_bottom(aperts, objnum) + 1 ;</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>     <span class="keywordflow">if</span> (objwidth > max_spec_width) {</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"object is too wide"</span>) ;</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>         <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>     }</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> </div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>     <span class="comment">/* Object is too small */</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>     <span class="keywordflow">if</span> (cpl_apertures_get_npix(aperts, objnum) < 2) <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>     <span class="comment">/* no shadow required */</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>     <span class="keywordflow">if</span> (shadows == NO_SHADOW) <span class="keywordflow">return</span> 1 ;</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     <span class="comment">/* Get the median of the object (valcenter) */</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>     valcenter = cpl_apertures_get_median(aperts, objnum) ;</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> </div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>     <span class="comment">/* Get the black shadows medians (valunder and valover) */</span></div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>     <span class="keywordflow">if</span> (cpl_apertures_get_bottom(aperts, objnum) - offset < 1) valunder = 0.0 ;</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>     <span class="keywordflow">else</span> valunder = cpl_image_get_median_window(in, 1,</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>             cpl_apertures_get_bottom(aperts, objnum) - offset, 1, </div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>             cpl_apertures_get_top(aperts, objnum) - offset) ;</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     </div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>     <span class="keywordflow">if</span> (cpl_apertures_get_top(aperts, objnum) + offset > 1024) valover = 0.0 ;</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>     <span class="keywordflow">else</span> valover = cpl_image_get_median_window(in, 1,</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>             cpl_apertures_get_bottom(aperts, objnum) + offset, 1, </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>             cpl_apertures_get_top(aperts, objnum) + offset) ;</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> </div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>     <span class="keywordflow">switch</span> (shadows) {</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>         <span class="keywordflow">case</span> TWO_SHADOWS:</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>         <span class="keywordflow">if</span> ((valunder < -fabs(valcenter/SPEC_SHADOW_FACT)) &&</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>             (valover < -fabs(valcenter/SPEC_SHADOW_FACT))    &&</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>             (valunder/valover > 0.5) &&</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>             (valunder/valover < 2.0)) <span class="keywordflow">return</span> 1 ;</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> </div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>         <span class="keywordflow">case</span> ONE_SHADOW:</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>         <span class="keywordflow">if</span> ((valunder < -fabs(valcenter/SPEC_SHADOW_FACT)) ||</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>             (valover < -fabs(valcenter/SPEC_SHADOW_FACT))) <span class="keywordflow">return</span> 1 ;</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>         <span class="keywordflow">case</span> NO_SHADOW:</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>         <span class="keywordflow">return</span> 1 ;</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"unknown spec_detect_mode"</span>) ;</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>         break ;</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>     }</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span> </div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>     cpl_msg_debug(cpl_func, <span class="stringliteral">"No spectrum(%d): under=%g, center=%g, over=%g"</span>,</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                   shadows, valunder, valcenter, valover);</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__spectrum_8h_source.html b/html/irplib__spectrum_8h_source.html
deleted file mode 100644
index 78e76e4..0000000
--- a/html/irplib__spectrum_8h_source.html
+++ /dev/null
@@ -1,119 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_spectrum.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_spectrum.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_spectrum.h,v 1.7 2009-07-30 12:38:37 yjung Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: yjung $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2009-07-30 12:38:37 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.7 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_SPECTRUM_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_SPECTRUM_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                                New types</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="keyword">typedef</span> <span class="keyword">enum</span> SPEC_SHADOWS {</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>     <span class="comment">/* 2 shadows above and below true spectrum */</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>     TWO_SHADOWS,</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>     <span class="comment">/* 1 shadow at specified distance from spectrum */</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>     ONE_SHADOW,</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>     <span class="comment">/* Do not search for shadow */</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>     NO_SHADOW</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> } spec_shadows ;</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">                                Prototypes</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__spectrum.html#ga9ac928ba9a48e864b56e921c970638c0" title="Finds the brightest spectrum in an image.">irplib_spectrum_find_brightest</a>(<span class="keyword">const</span> cpl_image *, <span class="keywordtype">int</span>, spec_shadows, </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>         <span class="keywordtype">double</span>, <span class="keywordtype">int</span>, <span class="keywordtype">double</span> *) ;</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> cpl_vector * <a class="code" href="group__irplib__spectrum.html#ga1885902c29d7383674c85e2c3d935961" title="Detect the brightest features in a spectrum.">irplib_spectrum_detect_peaks</a>(<span class="keyword">const</span> cpl_vector *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>         <span class="keywordtype">double</span>, <span class="keywordtype">int</span>, cpl_vector **, cpl_vector **) ;</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__stdstar_8c_source.html b/html/irplib__stdstar_8c_source.html
deleted file mode 100644
index dd5b55d..0000000
--- a/html/irplib__stdstar_8c_source.html
+++ /dev/null
@@ -1,774 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_stdstar.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_stdstar.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_stdstar.c,v 1.45 2013-03-01 10:27:07 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-03-01 10:27:07 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.45 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include "irplib_stdstar.h"</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include "irplib_utils.h"</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include "irplib_wcs.h"</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(6, 3, 0)</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_FRAMESET_GET_CONST cpl_frameset_get_position_const</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor"></span><span class="comment">/* Remove this branch once CPL versions less than 6.3 are no longer supported */</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#define IRPLIB_FRAMESET_GET_CONST cpl_frameset_get_frame_const</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">                                   Functions code</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> cpl_error_code</div>
-<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="group__irplib__stdstar.html#gac18c92be3d3c96ba57804b074a2abb7d">   89</a></span> <a class="code" href="group__irplib__stdstar.html#gac18c92be3d3c96ba57804b074a2abb7d" title="Write the ASCII catalogs as FITS files.">irplib_stdstar_write_catalogs</a>(cpl_frameset        *   set_in,</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>                               <span class="keyword">const</span> cpl_frameset  *   set_raw,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>                               <span class="keyword">const</span> <span class="keywordtype">char</span>          *   recipe_name,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>                               <span class="keyword">const</span> <span class="keywordtype">char</span>          *   pro_cat,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>                               <span class="keyword">const</span> <span class="keywordtype">char</span>          *   pro_type,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>                               <span class="keyword">const</span> <span class="keywordtype">char</span>          *   package_name,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>                               <span class="keyword">const</span> <span class="keywordtype">char</span>          *   ins_name,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                               cpl_table * (*convert_ascii_table)(<span class="keyword">const</span> <span class="keywordtype">char</span> *))</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> {</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     <span class="comment">/* Number of catalogs */</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>     <span class="keyword">const</span> cpl_size     nb_catalogs = cpl_frameset_get_size(set_raw);</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     cpl_propertylist * plist_ext;</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     <span class="keywordtype">char</span>             * out_name;</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     cpl_error_code     error = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     cpl_size           i;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     <span class="keywordflow">if</span> (set_in == NULL) <span class="keywordflow">return</span> cpl_error_set(cpl_func, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     <span class="keywordflow">if</span> (set_raw == NULL) <span class="keywordflow">return</span> cpl_error_set(cpl_func, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     <span class="keywordflow">if</span> (recipe_name == NULL) <span class="keywordflow">return</span> cpl_error_set(cpl_func, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     <span class="keywordflow">if</span> (pro_cat == NULL) <span class="keywordflow">return</span> cpl_error_set(cpl_func, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     <span class="keywordflow">if</span> (ins_name == NULL) <span class="keywordflow">return</span> cpl_error_set(cpl_func, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     <span class="keywordflow">if</span> (convert_ascii_table == NULL) <span class="keywordflow">return</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>         cpl_error_set(cpl_func, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     <span class="comment">/* Define the file name */</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     out_name = cpl_sprintf(<span class="stringliteral">"%s"</span> CPL_DFS_FITS, recipe_name);</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     plist_ext = cpl_propertylist_new();</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     <span class="comment">/* Process the catalogs */</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     <span class="keywordflow">for</span> (i = 0; i < nb_catalogs; i++) {</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>         <span class="comment">/* Get the catalog name */</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>         <span class="keyword">const</span> cpl_frame * cur_frame = IRPLIB_FRAMESET_GET_CONST(set_raw, i);</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>      * cat_name = cpl_frame_get_filename(cur_frame);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>         cpl_table       * out = convert_ascii_table(cat_name);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>      </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>         <span class="comment">/* Create the output table */</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>         <span class="keywordflow">if</span> (out == NULL) {</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>             error = cpl_error_get_code() ? cpl_error_set_where(cpl_func)</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>                 : cpl_error_set(cpl_func, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>         }</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>         <span class="keywordflow">if</span> (cpl_table_get_nrow(out) == 0) {</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>             cpl_table_delete(out);</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>             error = cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>                                           <span class="stringliteral">"Empty catalogue %d in '%s'"</span>,</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>                                           (<span class="keywordtype">int</span>)i+1, cat_name);</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>         }</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>         cpl_propertylist_update_string(plist_ext, <span class="stringliteral">"EXTNAME"</span>, cat_name);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>         <span class="comment">/* Write the table */</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>         <span class="keywordflow">if</span> (i == 0) {</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>             cpl_parameterlist * parlist = cpl_parameterlist_new();</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>             cpl_propertylist  * plist   = cpl_propertylist_new();</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>             <span class="comment">/* Mandatory keywords */</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>             cpl_propertylist_append_string(plist, <span class="stringliteral">"INSTRUME"</span>, ins_name);</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>             cpl_propertylist_append_string(plist, CPL_DFS_PRO_CATG, pro_cat);</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>             <span class="keywordflow">if</span> (pro_type != NULL) {</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>                 cpl_propertylist_append_string(plist, CPL_DFS_PRO_TYPE,</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>                                                pro_type);</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>             }</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>             error = cpl_dfs_save_table(set_in, NULL, parlist, set_raw, NULL,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                                        out, plist_ext, recipe_name, plist,</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>                                        NULL, package_name, out_name);</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>             cpl_parameterlist_delete(parlist);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>             cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>             error = cpl_table_save(out, NULL, plist_ext, out_name,</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>                                    CPL_IO_EXTEND);</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>         }</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>         cpl_table_delete(out);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>         <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>             (void)cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>         }</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     }</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     cpl_propertylist_delete(plist_ext);</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     cpl_free(out_name);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     <span class="keywordflow">return</span> error;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> }</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno"><a class="code" href="group__irplib__stdstar.html#ga1690bd84c24e905e384b8f725bf7aff1">  195</a></span> cpl_table * <a class="code" href="group__irplib__stdstar.html#ga1690bd84c24e905e384b8f725bf7aff1" title="Load the FITS catalog in a table.">irplib_stdstar_load_catalog</a>(</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>  *   filename, </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>  *   ext_name)</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> {</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     <span class="keywordtype">int</span>                     next;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     cpl_propertylist    *   plist;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>          *   cur_name;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     cpl_table           *   out;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     cpl_table           *   out_cur;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     cpl_frame           *   cur_frame;</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     <span class="keywordtype">int</span>                     i;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <span class="keywordflow">if</span> (filename == NULL) <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="keywordflow">if</span> (ext_name == NULL) <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     out = NULL;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     <span class="comment">/* Get the number of extensions in the catalog */</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     cur_frame = cpl_frame_new();</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     cpl_frame_set_filename(cur_frame, filename);</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     next = cpl_frame_get_nextensions(cur_frame);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     cpl_frame_delete(cur_frame);</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     <span class="comment">/* Loop on the extentions */</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     <span class="keywordflow">for</span> (i=0; i<next; i++) {</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>         <span class="comment">/* Check the name of the current extension */</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>         <span class="keywordflow">if</span> ((plist = cpl_propertylist_load_regexp(filename, i+1, <span class="stringliteral">"EXTNAME"</span>, </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                         0)) == NULL) {</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot load header of %d th extension"</span>,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                     i+1);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>             <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>         }</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>         cur_name = cpl_propertylist_get_string(plist, <span class="stringliteral">"EXTNAME"</span>);</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>         </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>         <span class="comment">/* Check the current extension */</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         <span class="keywordflow">if</span> (!strcmp(cur_name, ext_name)) {</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>             <span class="comment">/* Load the table */</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>             <span class="keywordflow">if</span> (out == NULL) {</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>                 out = cpl_table_load(filename, i+1, 1);</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>                 cpl_table_new_column(out, IRPLIB_STDSTAR_CAT_COL, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                 cpl_table_fill_column_window_string(out, IRPLIB_STDSTAR_CAT_COL,</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>                                                     0, cpl_table_get_nrow(out),</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>                                                     cur_name);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>                 <span class="keywordflow">if</span> (out == NULL) {</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>                     cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot load extension %d"</span>, i+1);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>                     cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>                     <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                 }</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>             }</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(ext_name, <span class="stringliteral">"all"</span>)) {</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>             <span class="comment">/* Load the table and append it */</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>             <span class="keywordflow">if</span> (i==0) {</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>                 <span class="comment">/* Load the first table */</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>                 out = cpl_table_load(filename, i+1, 1);</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>                 cpl_table_new_column(out, IRPLIB_STDSTAR_CAT_COL, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>                 cpl_table_fill_column_window_string(out, IRPLIB_STDSTAR_CAT_COL,</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>                                                     0, cpl_table_get_nrow(out),</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>                                                     cur_name);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                 <span class="keywordflow">if</span> (out == NULL) {</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                     cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot load extension %d"</span>, i+1);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                     cpl_propertylist_delete(plist); </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                     <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                 }</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                 <span class="comment">/* Load the current table */</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                 out_cur = cpl_table_load(filename, i+1, 1);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                 <span class="keywordflow">if</span> (out_cur == NULL) {</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                     cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot load extension %d"</span>, i+1);</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>                     cpl_table_delete(out);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>                     cpl_propertylist_delete(plist); </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>                     <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                 }</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>                 cpl_table_new_column(out_cur, IRPLIB_STDSTAR_CAT_COL, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>                 cpl_table_fill_column_window_string(out_cur, IRPLIB_STDSTAR_CAT_COL,</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>                                                     0, cpl_table_get_nrow(out_cur),</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>                                                     cur_name);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>                 <span class="comment">/* Append the table */</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>                 <span class="keywordflow">if</span> (cpl_table_insert(out, out_cur, </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>                             cpl_table_get_nrow(out)) != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>                     cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot merge table %d"</span>, i+1);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>                     cpl_table_delete(out);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>                     cpl_table_delete(out_cur);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>                     cpl_propertylist_delete(plist); </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>                     <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>                 }</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>                 cpl_table_delete(out_cur);</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>             }</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>         }</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>         cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     }</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     <span class="keywordflow">return</span> out;</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> }</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno"><a class="code" href="group__irplib__stdstar.html#ga2dbe2031bf6d669778dca42f6c343efc">  300</a></span> cpl_error_code <a class="code" href="group__irplib__stdstar.html#ga2dbe2031bf6d669778dca42f6c343efc" title="Check that the table has the relevant columns of a stdstar table.">irplib_stdstar_check_columns_exist</a>(</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>         <span class="keyword">const</span> cpl_table  *   catal)</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> {</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="comment">/* Check for all the mandatory columns */</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <span class="keywordflow">if</span> (!cpl_table_has_column(catal, IRPLIB_STDSTAR_STAR_COL)) {</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>         <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                 <span class="stringliteral">"Missing column: %s"</span>,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                 IRPLIB_STDSTAR_STAR_COL);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     }</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     <span class="keywordflow">if</span> (!cpl_table_has_column(catal, IRPLIB_STDSTAR_TYPE_COL)) {</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>         <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>                 <span class="stringliteral">"Missing column: %s"</span>,</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>                 IRPLIB_STDSTAR_TYPE_COL);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     }</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     <span class="keywordflow">if</span> (!cpl_table_has_column(catal, IRPLIB_STDSTAR_CAT_COL)) {</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>         <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                 CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                 <span class="stringliteral">"Missing column: %s"</span>,</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                 IRPLIB_STDSTAR_CAT_COL);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     }</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     <span class="keywordflow">if</span> (!cpl_table_has_column(catal, IRPLIB_STDSTAR_RA_COL)) {</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>         <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                 CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>                 <span class="stringliteral">"Missing column: %s"</span>,</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>                 IRPLIB_STDSTAR_RA_COL);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     }</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     <span class="keywordflow">if</span> (!cpl_table_has_column(catal, IRPLIB_STDSTAR_DEC_COL)) {</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>         <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>                 CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>                 <span class="stringliteral">"Missing column: %s"</span>,</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>                 IRPLIB_STDSTAR_DEC_COL);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     }</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> }</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno"><a class="code" href="group__irplib__stdstar.html#ga080e06303f3f83a91959ac01381dc4e8">  348</a></span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__stdstar.html#ga080e06303f3f83a91959ac01381dc4e8" title="Select the stars that are within a given distance.">irplib_stdstar_select_stars_dist</a>(</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>         cpl_table   *   cat, </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>         <span class="keywordtype">double</span>          ra, </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>         <span class="keywordtype">double</span>          dec, </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>         <span class="keywordtype">double</span>          dist)</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> {</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     <span class="keywordtype">double</span>              distance;</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     <span class="keywordtype">int</span>                 nrows;</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     <span class="keywordtype">int</span>                 i;</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     <span class="keywordflow">if</span> (cat == NULL) <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <span class="comment">/* Get the number of selected rows */</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     nrows = cpl_table_get_nrow(cat);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     <span class="comment">/* Check if the columns are there */</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     <span class="keywordflow">if</span> (!cpl_table_has_column(cat, IRPLIB_STDSTAR_RA_COL)) {</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Missing %s column"</span>, IRPLIB_STDSTAR_RA_COL);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     }</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     <span class="keywordflow">if</span> (!cpl_table_has_column(cat, IRPLIB_STDSTAR_DEC_COL)) {</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Missing %s column"</span>, IRPLIB_STDSTAR_DEC_COL);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     }</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     <span class="comment">/* Compute distances of the selected rows */</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     <span class="keywordflow">for</span> (i=0; i<nrows; i++) {</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>         <span class="keywordflow">if</span> (cpl_table_is_selected(cat, i)) {</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>             <span class="comment">/* The row is selected - compute the distance */</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>             distance = irplib_wcs_great_circle_dist(ra, dec, </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                     cpl_table_get_double(cat, IRPLIB_STDSTAR_RA_COL, i, NULL),</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                     cpl_table_get_double(cat, IRPLIB_STDSTAR_DEC_COL, i, NULL));            </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>             <span class="keywordflow">if</span> (distance > dist) cpl_table_unselect_row(cat, i);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>         }</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     }</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> }</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno"><a class="code" href="group__irplib__stdstar.html#ga28316d8f0619bdbd0040b1f56799e7ab">  397</a></span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__stdstar.html#ga28316d8f0619bdbd0040b1f56799e7ab" title="Select the stars that have a known magnitude.">irplib_stdstar_select_stars_mag</a>(</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         cpl_table   *   cat, </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>  *   mag_colname)</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> {</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     <span class="keywordflow">if</span> (cat == NULL) <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>     <span class="keywordflow">if</span> (mag_colname == NULL) <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>     <span class="comment">/* Check that the table has the mag column */</span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     <span class="keywordflow">if</span> (!cpl_table_has_column(cat, mag_colname)) {</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Column %s does not exist in the catalog"</span>,</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                 mag_colname);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     }</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     <span class="comment">/* Apply the selection */</span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     <span class="keywordflow">if</span> (cpl_table_and_selected_double(cat, mag_colname, CPL_NOT_GREATER_THAN, </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                 98.0) <= 0) {</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Column %s does not exist in the catalog"</span>,</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                 mag_colname);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     }</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> }</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno"><a class="code" href="group__irplib__stdstar.html#ga36b4c90fd548dd0c00afe97b17a558e5">  433</a></span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__stdstar.html#ga36b4c90fd548dd0c00afe97b17a558e5" title="Find the closest star.">irplib_stdstar_find_closest</a>(</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>         <span class="keyword">const</span> cpl_table     *   cat, </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>         <span class="keywordtype">double</span>                  ra, </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>         <span class="keywordtype">double</span>                  dec)</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> {</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     <span class="keywordtype">double</span>              min_dist, distance;</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     <span class="keywordtype">int</span>                 nrows;</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     <span class="keywordtype">int</span>                 ind;</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     <span class="keywordtype">int</span>                 i;</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     <span class="keywordflow">if</span> (cat == NULL) <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>     <span class="comment">/* Initialize */</span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     min_dist = 1000.0;</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     ind = -1;</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     <span class="comment">/* Get the number of selected rows */</span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     nrows = cpl_table_get_nrow(cat);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     <span class="comment">/* Check if the columns are there */</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     <span class="keywordflow">if</span> (!cpl_table_has_column(cat, IRPLIB_STDSTAR_RA_COL)) {</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Missing %s column"</span>, IRPLIB_STDSTAR_RA_COL);</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>     }</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>     <span class="keywordflow">if</span> (!cpl_table_has_column(cat, IRPLIB_STDSTAR_DEC_COL)) {</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Missing %s column"</span>, IRPLIB_STDSTAR_DEC_COL);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>     }</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>     </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     <span class="comment">/* Compute distances of the selected rows */</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     <span class="keywordflow">for</span> (i=0; i<nrows; i++) {</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>         <span class="keywordflow">if</span> (cpl_table_is_selected(cat, i)) {</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>             <span class="comment">/* The row is selected - compute the distance */</span></div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>             distance = irplib_wcs_great_circle_dist(ra, dec,</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                     cpl_table_get_double(cat, IRPLIB_STDSTAR_RA_COL, i, NULL),</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                     cpl_table_get_double(cat, IRPLIB_STDSTAR_DEC_COL, i, NULL));</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>             <span class="keywordflow">if</span> (distance <= min_dist) {</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                 min_dist = distance;</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                 ind = i;</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>             }</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>         }</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     }</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     <span class="keywordflow">return</span> ind;</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> }</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno"><a class="code" href="group__irplib__stdstar.html#ga4d69ae957de04b1769ac225f12834027">  501</a></span> cpl_error_code <a class="code" href="group__irplib__stdstar.html#ga4d69ae957de04b1769ac225f12834027" title="Find the closest star to ra, dec in the catalog.">irplib_stdstar_find_star</a>(</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>          *   catfile,</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>         <span class="keywordtype">double</span>                  ra, </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>         <span class="keywordtype">double</span>                  dec,</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>          *   band,</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>          *   catname,</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>         <span class="keywordtype">double</span>              *   mag,</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>         <span class="keywordtype">char</span>                **  name,</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>         <span class="keywordtype">char</span>                **  type,</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>         <span class="keywordtype">char</span>                **  usedcatname,</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>         <span class="keywordtype">double</span>              *   star_ra,</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>         <span class="keywordtype">double</span>              *   star_dec,</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>         <span class="keywordtype">double</span>                  dist_am)</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> {</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     cpl_errorstate prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     cpl_table   *   catal;</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    dist = dist_am / 60.0;</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>     <span class="keywordtype">int</span>             ind;</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> </div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>     <span class="keywordflow">if</span> (catfile == NULL) <span class="keywordflow">return</span> cpl_error_set(cpl_func, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>     <span class="keywordflow">if</span> (band    == NULL) <span class="keywordflow">return</span> cpl_error_set(cpl_func, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     <span class="keywordflow">if</span> (catname == NULL) <span class="keywordflow">return</span> cpl_error_set(cpl_func, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     </div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     <span class="comment">/* Load the catalog */</span></div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     <span class="keywordflow">if</span> ((catal = <a class="code" href="group__irplib__stdstar.html#ga1690bd84c24e905e384b8f725bf7aff1" title="Load the FITS catalog in a table.">irplib_stdstar_load_catalog</a>(catfile, catname)) == NULL) {</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>         <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_FILE_NOT_FOUND,</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>                                            <span class="stringliteral">"Cannot load the catalog %s from %s"</span>,</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>                                            catname, catfile);</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>     }</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     <span class="comment">/* Check the columns are present */</span></div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     <span class="keywordflow">if</span> (<a class="code" href="group__irplib__stdstar.html#ga2dbe2031bf6d669778dca42f6c343efc" title="Check that the table has the relevant columns of a stdstar table.">irplib_stdstar_check_columns_exist</a>(catal) != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>         cpl_table_delete(catal);</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>         <span class="keywordflow">return</span> cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     }</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>     </div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>     <span class="comment">/* Select stars with known magnitude */</span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>     <span class="keywordflow">if</span> (<a class="code" href="group__irplib__stdstar.html#ga28316d8f0619bdbd0040b1f56799e7ab" title="Select the stars that have a known magnitude.">irplib_stdstar_select_stars_mag</a>(catal, band) == -1) {</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>         cpl_table_delete(catal);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>         <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>                                            <span class="stringliteral">"Cannot select stars in that band"</span>);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     }</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> </div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>     <span class="comment">/* Select stars within a given distance */</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     <span class="keywordflow">if</span> (<a class="code" href="group__irplib__stdstar.html#ga080e06303f3f83a91959ac01381dc4e8" title="Select the stars that are within a given distance.">irplib_stdstar_select_stars_dist</a>(catal, ra, dec, dist) == -1) {</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>         cpl_table_delete(catal);</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>         <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>                                            <span class="stringliteral">"Cannot select close stars"</span>);</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     }</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>     <span class="comment">/* Take the closest */</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     <span class="keywordflow">if</span> ((ind=<a class="code" href="group__irplib__stdstar.html#ga36b4c90fd548dd0c00afe97b17a558e5" title="Find the closest star.">irplib_stdstar_find_closest</a>(catal, ra, dec)) < 0) {</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>         cpl_table_delete(catal);</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>         <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                                            <span class="stringliteral">"Cannot get the closest star with "</span></div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                                            <span class="stringliteral">"known %s magnitude"</span>,band);</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     }</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> </div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     <span class="keywordflow">if</span>(mag != NULL)</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>         *mag = cpl_table_get_double(catal, band, ind, NULL);</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> </div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>     <span class="keywordflow">if</span>(name != NULL)</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>     {</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>         *name = cpl_strdup(cpl_table_get_string(catal,</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>                                                 IRPLIB_STDSTAR_STAR_COL, ind));</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> </div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>     }</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>     <span class="keywordflow">if</span>(type != NULL)</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>     {</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>         *type = cpl_strdup(cpl_table_get_string(catal, IRPLIB_STDSTAR_TYPE_COL,</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                                                 ind));</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>     }</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>     <span class="keywordflow">if</span>(usedcatname != NULL)</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     {</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>         <span class="keywordflow">if</span>(strcmp(catname, <span class="stringliteral">"all"</span>))</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>             *usedcatname = cpl_strdup(catname);</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>         {</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>             *usedcatname = cpl_strdup(cpl_table_get_string</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>                                       (catal, IRPLIB_STDSTAR_CAT_COL, ind));</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>         }</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>     }</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>     <span class="keywordflow">if</span>(star_ra != NULL)</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>         *star_ra  = cpl_table_get_double(catal, IRPLIB_STDSTAR_RA_COL, ind, NULL);</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>     <span class="keywordflow">if</span>(star_dec != NULL)</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>         *star_dec = cpl_table_get_double(catal, IRPLIB_STDSTAR_DEC_COL, ind, NULL);</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     </div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>     <span class="comment">/* Free and return */</span></div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     cpl_table_delete(catal);</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     <span class="keywordflow">return</span> cpl_errorstate_is_equal(prestate) ? CPL_ERROR_NONE</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>         : cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> }</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> </div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno"><a class="code" href="group__irplib__stdstar.html#ga93b46d8ac857a0d0fdc781b56a91a8ba">  609</a></span> cpl_vector * <a class="code" href="group__irplib__stdstar.html#ga93b46d8ac857a0d0fdc781b56a91a8ba" title="Get the conversion.">irplib_stdstar_get_conversion</a>(</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>         <span class="keyword">const</span> cpl_bivector  *   spec,</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>         <span class="keywordtype">double</span>                  dit,</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>         <span class="keywordtype">double</span>                  surface,</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>         <span class="keywordtype">double</span>                  gain,</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>         <span class="keywordtype">double</span>                  mag)</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> {</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>     <span class="keywordtype">double</span>                      h = 6.62e-27;</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>     <span class="keywordtype">double</span>                      c = 3e18;</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>     <span class="keyword">const</span> cpl_vector    *       wave;</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     <span class="keyword">const</span> cpl_vector    *       extr;</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>     cpl_vector          *       out;</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>     <span class="keywordtype">double</span>                      factor;</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span> </div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     <span class="keywordflow">if</span> (spec == NULL) <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     <span class="keywordflow">if</span> (dit <= 0.0) <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>     <span class="comment">/* Get the extracted spectrum */</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     wave = cpl_bivector_get_x_const(spec);</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>     extr = cpl_bivector_get_y_const(spec);</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span> </div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     <span class="comment">/* Get the spectrum */</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     out = cpl_vector_duplicate(extr);</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> </div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     <span class="comment">/* Divide by DIT */</span></div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>     cpl_vector_divide_scalar(out, dit);</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> </div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>     <span class="comment">/* Divide by the surface */</span></div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>     cpl_vector_divide_scalar(out, surface);</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     <span class="comment">/* Multiply by the gain */</span></div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     cpl_vector_multiply_scalar(out, gain);</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>     <span class="comment">/* Multiply by the difference magnitude */</span></div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     factor = pow(10, mag/2.5);</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>     cpl_vector_multiply_scalar(out, factor);</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> </div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>     <span class="comment">/* Divide by the dispersion */</span></div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>     factor = (cpl_vector_get(wave, cpl_vector_get_size(wave)-1) -</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>             cpl_vector_get(wave, 0)) / cpl_vector_get_size(wave);</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>     cpl_vector_divide_scalar(out, factor);</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> </div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>     <span class="comment">/* Multiply by the energy of the photon */</span></div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>     cpl_vector_multiply_scalar(out, h*c);</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>     cpl_vector_divide(out, wave);</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> </div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>     <span class="keywordflow">return</span> out;</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> }</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span> </div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00668"></a><span class="lineno"><a class="code" href="group__irplib__stdstar.html#ga6e68e6a9d0bbb41ef717234b9f289dab">  668</a></span> cpl_vector * <a class="code" href="group__irplib__stdstar.html#ga6e68e6a9d0bbb41ef717234b9f289dab" title="Get the 0 magnitude spectrum.">irplib_stdstar_get_mag_zero</a>(</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>         <span class="keyword">const</span> cpl_bivector  *   sed,</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>         <span class="keyword">const</span> cpl_vector    *   waves,</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>         <span class="keywordtype">double</span>                  cent_wl)</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> {</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>     <span class="keywordtype">double</span>              wmin, wmax, wstep;</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>     <span class="keywordtype">int</span>                 nb_sed;</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   sed_x;</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   sed_y;</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>     cpl_bivector    *   sed_loc;</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>     <span class="keywordtype">double</span>          *   sed_loc_x;</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>     <span class="keywordtype">double</span>          *   sed_loc_y;</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>     cpl_vector      *   out;</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>     cpl_bivector    *   out_biv;</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>     <span class="keywordtype">double</span>              f0_jan, f0_erg, cent_val;</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>     <span class="keywordtype">int</span>                 i;</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> </div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>     <span class="keywordflow">if</span> (sed == NULL) <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     <span class="keywordflow">if</span> (waves == NULL) <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>     nb_sed = cpl_bivector_get_size(sed);</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>     sed_x = cpl_bivector_get_x_data_const(sed);</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>     sed_y = cpl_bivector_get_y_data_const(sed);</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>     wstep = sed_x[1] - sed_x[0];</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>     wmin = cpl_vector_get(waves, 0);</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     wmax = cpl_vector_get(waves, cpl_vector_get_size(waves)-1);</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> </div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>     <span class="comment">/* Expand sed with 0 to have it bigger than the required wavelengths */</span></div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     sed_loc = cpl_bivector_new(nb_sed + 4);</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>     sed_loc_x = cpl_bivector_get_x_data(sed_loc);</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     sed_loc_y = cpl_bivector_get_y_data(sed_loc);</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="keywordflow">for</span> (i=0; i<nb_sed; i++) {</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>         sed_loc_x[i+2] = sed_x[i];</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>         sed_loc_y[i+2] = sed_y[i];</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>     }</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span> </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>     <span class="comment">/* Low bound */</span></div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>     sed_loc_x[1] = sed_loc_x[2] - wstep;</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>     <span class="keywordflow">if</span> (sed_loc_x[2] < wmin) {</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>         sed_loc_x[0] = sed_loc_x[1] - wstep;</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>         sed_loc_x[0] = wmin - wstep;</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     }</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     sed_loc_y[0] = 1e-20;</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>     sed_loc_y[1] = 1e-20;</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> </div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>     <span class="comment">/* High bound */</span></div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>     sed_loc_x[nb_sed+2] = sed_loc_x[nb_sed+1] + wstep;</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     <span class="keywordflow">if</span> (sed_loc_x[nb_sed+1] > wmax) {</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>         sed_loc_x[nb_sed+3] = sed_loc_x[nb_sed+2] + wstep;</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>         sed_loc_x[nb_sed+3] = wmax + wstep;</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     }</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>     sed_loc_y[nb_sed+2] = 1e-20;</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>     sed_loc_y[nb_sed+3] = 1e-20;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>     <span class="comment">/* Create the output bivector */</span></div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     out = cpl_vector_duplicate(waves);</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     IRPLIB_DIAG_PRAGMA_PUSH_IGN(-Wcast-qual);</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>     <span class="comment">/* the X entry (waves) is not modified by cpl_bivector_interpolate_linear */</span></div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     out_biv = cpl_bivector_wrap_vectors((cpl_vector*)waves, out);</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>     IRPLIB_DIAG_PRAGMA_POP;</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     <span class="comment">/* Interpolate */</span></div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>     <span class="keywordflow">if</span> (cpl_bivector_interpolate_linear(out_biv, sed_loc) != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot interpolate the wavelength"</span>);</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>         cpl_bivector_unwrap_vectors(out_biv);</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>         cpl_vector_delete(out);</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>         cpl_bivector_delete(sed_loc);</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>     }</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>     cpl_bivector_unwrap_vectors(out_biv);</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>     cpl_bivector_delete(sed_loc);</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> </div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>     <span class="comment">/* Compute f0_jan */</span></div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>     f0_jan = 5513.15 / ( pow(cent_wl,3) * (exp(1.2848/cent_wl)-1) );</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> </div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>     <span class="comment">/* Convert f0 Jansky -> ergs/s/cm^2/Angstrom */</span></div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>     f0_erg = f0_jan * 1e-26 * 1e7 * 3e18 / (1e4 * cent_wl*cent_wl*1e4*1e4);</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     <span class="comment">/* Scale out so that the central value is f0 */</span></div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>     cent_val = cpl_vector_get(out, cpl_vector_get_size(out)/2);</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>     <span class="keywordflow">if</span> (cent_val <= 0.0) {</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Negative or 0 central value"</span>);</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>         cpl_vector_delete(out);</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>     }</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     cpl_vector_multiply_scalar(out, f0_erg/cent_val);</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     <span class="comment">/* Return */</span></div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     <span class="keywordflow">return</span> out;</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span> }</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> </div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00773"></a><span class="lineno"><a class="code" href="group__irplib__stdstar.html#gabbad67ff18cb901914caa9e864969dea">  773</a></span> cpl_bivector * <a class="code" href="group__irplib__stdstar.html#gabbad67ff18cb901914caa9e864969dea" title="Get the SED.">irplib_stdstar_get_sed</a>(</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>  *   seds_file,</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>  *   sptype)</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> {</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     cpl_table           *   seds;</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>     cpl_bivector        *   out;</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>     cpl_vector          *   wave;</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     cpl_vector          *   sed;</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>     cpl_bivector        *   tmp;</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     <span class="keywordtype">int</span>                     nlines;</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>     <span class="keywordflow">if</span> (seds_file == NULL) <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>     <span class="keywordflow">if</span> (sptype == NULL) <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> </div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     <span class="comment">/* Load the table */</span></div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     <span class="keywordflow">if</span> ((seds = cpl_table_load(seds_file, 1, 0)) == NULL) {</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot load the table"</span>);</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>     }</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span> </div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>     <span class="comment">/* Check if the column is there */</span></div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>     <span class="keywordflow">if</span> (!cpl_table_has_column(seds, sptype)) {</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"SED of the requested star not available"</span>);</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>         cpl_table_delete(seds);</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>     }</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span> </div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>     <span class="comment">/* Get the nb lines */</span></div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>     nlines = cpl_table_get_nrow(seds);</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span> </div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>     <span class="comment">/* Get the wavelength as a vector */</span></div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>     <span class="keywordflow">if</span> ((wave = cpl_vector_wrap(nlines,</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>             cpl_table_get_data_double(seds, <span class="stringliteral">"Wavelength"</span>))) == NULL) {</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot get the Wavelength column"</span>);</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>         cpl_table_delete(seds);</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>     }</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span> </div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>     <span class="comment">/* Get the SED as a vector */</span></div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>     <span class="keywordflow">if</span> ((sed = cpl_vector_wrap(nlines,</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>             cpl_table_get_data_double(seds, sptype))) == NULL) {</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot get the SED column"</span>);</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>         cpl_table_delete(seds);</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>         cpl_vector_unwrap(wave);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>     }</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>     tmp = cpl_bivector_wrap_vectors(wave, sed);</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span> </div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>     <span class="comment">/* Create the output bivector */</span></div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>     out = cpl_bivector_duplicate(tmp);</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span> </div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>     <span class="comment">/* Free */</span></div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>     cpl_bivector_unwrap_vectors(tmp);</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>     cpl_vector_unwrap(wave);</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>     cpl_vector_unwrap(sed);</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>     cpl_table_delete(seds);</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span> </div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>     <span class="comment">/* Return  */</span></div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>     <span class="keywordflow">return</span> out;</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__stdstar_8h_source.html b/html/irplib__stdstar_8h_source.html
deleted file mode 100644
index d5444de..0000000
--- a/html/irplib__stdstar_8h_source.html
+++ /dev/null
@@ -1,140 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_stdstar.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_stdstar.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_stdstar.h,v 1.16 2013-02-27 10:37:52 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-02-27 10:37:52 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.16 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_STDSTAR_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_STDSTAR_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#define     IRPLIB_STDSTAR_STAR_COL     "STARS"</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor"></span><span class="preprocessor">#define     IRPLIB_STDSTAR_TYPE_COL     "SP_TYPE"</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span><span class="preprocessor">#define     IRPLIB_STDSTAR_RA_COL       "RA"</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor"></span><span class="preprocessor">#define     IRPLIB_STDSTAR_DEC_COL      "DEC"</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span><span class="preprocessor">#define     IRPLIB_STDSTAR_CAT_COL      "CATALOG"</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/* Maximum allowed distance [arc minutes] between observation and</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">   catalogue coordinates  */</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#define     IRPLIB_STDSTAR_MAXDIST       2.0</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/* Magical value to indicate an invalid magnitude  */</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#define     IRPLIB_STDSTAR_NOMAG         99.0</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">/* Use this limit in comparisons regarding an invalid magnitude  */</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#define     IRPLIB_STDSTAR_LIMIT         (IRPLIB_STDSTAR_NOMAG-1.0)</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">                                   Function prototypes</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> cpl_error_code</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <a class="code" href="group__irplib__stdstar.html#gac18c92be3d3c96ba57804b074a2abb7d" title="Write the ASCII catalogs as FITS files.">irplib_stdstar_write_catalogs</a>(cpl_frameset *, <span class="keyword">const</span> cpl_frameset *,</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>                               <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>                               <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>                               cpl_table * (*)(<span class="keyword">const</span> <span class="keywordtype">char</span> *));</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> cpl_table * <a class="code" href="group__irplib__stdstar.html#ga1690bd84c24e905e384b8f725bf7aff1" title="Load the FITS catalog in a table.">irplib_stdstar_load_catalog</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> cpl_error_code <a class="code" href="group__irplib__stdstar.html#ga2dbe2031bf6d669778dca42f6c343efc" title="Check that the table has the relevant columns of a stdstar table.">irplib_stdstar_check_columns_exist</a>(<span class="keyword">const</span> cpl_table  *);</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__stdstar.html#ga080e06303f3f83a91959ac01381dc4e8" title="Select the stars that are within a given distance.">irplib_stdstar_select_stars_dist</a>(cpl_table *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__stdstar.html#ga28316d8f0619bdbd0040b1f56799e7ab" title="Select the stars that have a known magnitude.">irplib_stdstar_select_stars_mag</a>(cpl_table *, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__stdstar.html#ga36b4c90fd548dd0c00afe97b17a558e5" title="Find the closest star.">irplib_stdstar_find_closest</a>(<span class="keyword">const</span> cpl_table *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> cpl_error_code <a class="code" href="group__irplib__stdstar.html#ga4d69ae957de04b1769ac225f12834027" title="Find the closest star to ra, dec in the catalog.">irplib_stdstar_find_star</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keyword">const</span> <span class="keywordtype">char</sp [...]
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">char</span> **, <span class="keywordtype">char</span> **, <span class="keywordtype">char</span> **, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>         <span class="keywordtype">double</span> *, <span class="keywordtype">double</span>  * , <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> cpl_vector * <a class="code" href="group__irplib__stdstar.html#ga93b46d8ac857a0d0fdc781b56a91a8ba" title="Get the conversion.">irplib_stdstar_get_conversion</a>(<span class="keyword">const</span> cpl_bivector *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>         <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> cpl_vector * <a class="code" href="group__irplib__stdstar.html#ga6e68e6a9d0bbb41ef717234b9f289dab" title="Get the 0 magnitude spectrum.">irplib_stdstar_get_mag_zero</a>(<span class="keyword">const</span> cpl_bivector *,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>         <span class="keyword">const</span> cpl_vector *, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> cpl_bivector * <a class="code" href="group__irplib__stdstar.html#gabbad67ff18cb901914caa9e864969dea" title="Get the SED.">irplib_stdstar_get_sed</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__strehl_8c_source.html b/html/irplib__strehl_8c_source.html
deleted file mode 100644
index 9de8c81..0000000
--- a/html/irplib__strehl_8c_source.html
+++ /dev/null
@@ -1,721 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_strehl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_strehl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_strehl.c,v 1.43 2009-11-18 21:37:48 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2009-11-18 21:37:48 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.43 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <assert.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include "irplib_utils.h"</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include "irplib_strehl.h"</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment">                                   Define</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#ifndef IRPLIB_STREHL_RAD_CENTRAL</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_STREHL_RAD_CENTRAL 5</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#define IRPLIB_DISK_BG_MIN_PIX_NB    30</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_DISK_BG_REJ_LOW       0.1</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_DISK_BG_REJ_HIGH      0.1</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">                                   Functions prototypes</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keyword">static</span> cpl_image * irplib_strehl_generate_otf(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>                                               <span class="keywordtype">int</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keyword">static</span> <span class="keywordtype">double</span> PSF_H1(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="keyword">static</span> <span class="keywordtype">double</span> PSF_H2(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="keyword">static</span> <span class="keywordtype">double</span> PSF_G(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="keyword">static</span> <span class="keywordtype">double</span> PSF_sinc(<span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="keyword">static</span> <span class="keywordtype">double</span> PSF_TelOTF(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="keyword">static</span> cpl_error_code update_bad_pixel_map(cpl_image* im);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">                                   Functions code</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> cpl_error_code update_bad_pixel_map(cpl_image* im)</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> {</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     <span class="keywordtype">int</span> szx = cpl_image_get_size_x(im);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     <span class="keywordtype">int</span> szy = cpl_image_get_size_y(im);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     <span class="keywordtype">int</span> x = 0;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     cpl_mask* bpm = cpl_image_get_bpm(im);</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="keywordflow">for</span> (x = 1; x <=szx; x++)</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     {</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>         <span class="keywordtype">int</span> y = 0;</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>         <span class="keywordflow">for</span>(y = 1; y <= szy; y++)</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>         {</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>             <span class="keywordtype">int</span> isnull = 0;</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>             <span class="keywordtype">double</span> value = cpl_image_get(im, x, y, &isnull);</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>             <span class="keywordflow">if</span> (isnan(value))</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>             {</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>                 cpl_mask_set(bpm, x, y, CPL_BINARY_1);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>             }</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>         }</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     }</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> }</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> cpl_error_code irplib_strehl_mark_bad_and_compute(cpl_image *   im,</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>                                      <span class="keywordtype">double</span>              m1,</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>                                      <span class="keywordtype">double</span>              m2,</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>                                      <span class="keywordtype">double</span>              lam,</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>                                      <span class="keywordtype">double</span>              dlam,</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>                                      <span class="keywordtype">double</span>              pscale,</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>                                      <span class="keywordtype">int</span>                 size,</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>                                      <span class="keywordtype">double</span>              xpos,</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>                                      <span class="keywordtype">double</span>              ypos,</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>                                      <span class="keywordtype">double</span>              r1,</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>                                      <span class="keywordtype">double</span>              r2,</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                                      <span class="keywordtype">double</span>              r3,</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>                                      <span class="keywordtype">int</span>                 noise_box_sz,</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>                                      <span class="keywordtype">int</span>                 noise_nsamples,</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>                                      <span class="keywordtype">double</span>          *   strehl,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>                                      <span class="keywordtype">double</span>          *   strehl_err,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>                                      <span class="keywordtype">double</span>          *   star_bg,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                                      <span class="keywordtype">double</span>          *   star_peak,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                                      <span class="keywordtype">double</span>          *   star_flux,</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>                                      <span class="keywordtype">double</span>          *   psf_peak,</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>                                      <span class="keywordtype">double</span>          *   psf_flux,</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>                                      <span class="keywordtype">double</span>          *   bg_noise)</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> {</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     cpl_ensure_code(!update_bad_pixel_map(im), cpl_error_get_code());</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <span class="keywordflow">return</span> irplib_strehl_compute(im, m1, m2, lam, dlam, pscale, size, xpos, ypos,</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>             r1,</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>             r2,</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>             r3,</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>             noise_box_sz,</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>             noise_nsamples,</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>             strehl,</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>             strehl_err,</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>             star_bg,</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>             star_peak,</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>             star_flux,</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>             psf_peak,</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>             psf_flux,</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>             bg_noise);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> }</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> cpl_error_code irplib_strehl_compute(<span class="keyword">const</span> cpl_image *   im,</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>                                      <span class="keywordtype">double</span>              m1,</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>                                      <span class="keywordtype">double</span>              m2,</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>                                      <span class="keywordtype">double</span>              lam,</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>                                      <span class="keywordtype">double</span>              dlam,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                                      <span class="keywordtype">double</span>              pscale,</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>                                      <span class="keywordtype">int</span>                 size,</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>                                      <span class="keywordtype">double</span>              xpos,</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>                                      <span class="keywordtype">double</span>              ypos,</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>                                      <span class="keywordtype">double</span>              r1,</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                                      <span class="keywordtype">double</span>              r2,</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>                                      <span class="keywordtype">double</span>              r3,</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                                      <span class="keywordtype">int</span>                 noise_box_sz,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                                      <span class="keywordtype">int</span>                 noise_nsamples,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                                      <span class="keywordtype">double</span>          *   strehl,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                                      <span class="keywordtype">double</span>          *   strehl_err,</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                                      <span class="keywordtype">double</span>          *   star_bg,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                                      <span class="keywordtype">double</span>          *   star_peak,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                                      <span class="keywordtype">double</span>          *   star_flux,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                                      <span class="keywordtype">double</span>          *   psf_peak,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                                      <span class="keywordtype">double</span>          *   psf_flux,</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>                                      <span class="keywordtype">double</span>          *   bg_noise)</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> {</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     cpl_image  * psf;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <span class="keywordtype">double</span>       star_radius, max_radius;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <span class="comment">/* FIXME: Arbitrary choice of image border */</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> window_size = (double)(IRPLIB_STREHL_RAD_CENTRAL);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="comment">/* Determined empirically by C. Lidman for Strehl error computation */</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> strehl_error_coefficient = CPL_MATH_PI * 0.007 / 0.0271;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     <span class="keywordtype">double</span>       ring[4];</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     <span class="comment">/* cpl_flux_get_noise_ring() must succeed with this many tries */</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     <span class="keywordtype">int</span>          ring_tries = 3;</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     cpl_errorstate prestate;</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     <span class="comment">/* Check compile-time constant */</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     cpl_ensure_code(window_size > 0.0,  CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     <span class="comment">/* Test inputs */</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     cpl_ensure_code(im != NULL,         CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     cpl_ensure_code(strehl != NULL,     CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     cpl_ensure_code(strehl_err != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     cpl_ensure_code(star_bg != NULL,    CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     cpl_ensure_code(star_peak != NULL,  CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     cpl_ensure_code(star_flux != NULL,  CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     cpl_ensure_code(psf_peak != NULL,   CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     cpl_ensure_code(psf_flux != NULL,   CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> </div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     cpl_ensure_code(pscale > 0.0,      CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     cpl_ensure_code(r1 > 0.0,      CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     cpl_ensure_code(r2 > 0.0,      CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     cpl_ensure_code(r3 > r2,       CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     <span class="comment">/* Computing a Strehl ratio is a story between an ideal PSF */</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     <span class="comment">/* and a candidate image supposed to approximate this ideal PSF. */</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     <span class="comment">/* Generate first appropriate PSF to find max peak */</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     psf = irplib_strehl_generate_psf(m1, m2, lam, dlam, pscale, size);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     cpl_ensure_code(psf != NULL,      CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     <span class="comment">/* Compute flux in PSF and find max peak */</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     *psf_peak = cpl_image_get_max(psf);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     cpl_image_delete(psf);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     assert( *psf_peak > 0.0); <span class="comment">/* The ideal PSF has a positive maximum */</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     *psf_flux = 1.0; <span class="comment">/* The psf flux, cpl_image_get_flux(psf), is always 1 */</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     <span class="comment">/* Measure the background in the candidate image */</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     *star_bg = irplib_strehl_ring_background(im, xpos, ypos, r2/pscale, r3/pscale,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                                              IRPLIB_BG_METHOD_AVER_REJ);</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     <span class="comment">/* Compute star_radius in pixels */</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     star_radius = r1/pscale;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     <span class="comment">/* Measure the flux on the candidate image */</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     *star_flux = irplib_strehl_disk_flux(im, xpos, ypos, star_radius, *star_bg);</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     cpl_ensure_code(*star_flux > 0.0,      CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     <span class="comment">/* Find the peak value on the central part of the candidate image */</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     max_radius = window_size < star_radius ? window_size : star_radius;</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     cpl_ensure_code(!irplib_strehl_disk_max(im, xpos, ypos, max_radius,</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                                             star_peak), cpl_error_get_code());</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     *star_peak -= *star_bg;</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     cpl_ensure_code(*star_peak > 0.0,      CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <span class="comment">/* Compute Strehl */</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <span class="comment">/* (StarPeak / StarFlux) / (PsfPeak / PsfFlux) */</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     *strehl = (*star_peak * *psf_flux ) / ( *star_flux * *psf_peak);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     <span class="keywordflow">if</span> (*strehl > 1)</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>         cpl_msg_warning(cpl_func, <span class="stringliteral">"Extreme Strehl-ratio=%g, star_peak=%g, "</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                         <span class="stringliteral">"star_flux=%g, psf_peak=%g, psf_flux=%g"</span>, *strehl,</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>                         *star_peak, *star_flux, *psf_peak, *psf_flux);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="comment">/* Compute Strehl error */</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="comment">/* computation could fail if the image contains pixels with NaN value*/</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     ring[0] = xpos;</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     ring[1] = ypos;</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     ring[2] = r2/pscale;</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     ring[3] = r3/pscale;</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     <span class="comment">/* FIXME: With CPL 5.1 the recoverable error</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="comment">       will be CPL_ERROR_DATA_NOT_FOUND */</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     <span class="keywordflow">while</span> (cpl_flux_get_noise_ring(im, ring, noise_box_sz, noise_nsamples,</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                                    bg_noise, NULL) && --ring_tries > 0);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     <span class="keywordflow">if</span> (ring_tries > 0) {</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>         cpl_errorstate_set(prestate); <span class="comment">/* Recover, if an error happened */</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>         <span class="keywordflow">return</span> cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     }</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     *strehl_err = strehl_error_coefficient * (*bg_noise) * pscale *</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>         star_radius * star_radius / *star_flux;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <span class="comment">/* This check should not be able to fail, but just to be sure */</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     cpl_ensure_code(*strehl_err >= 0.0,       CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> }</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <span class="keywordtype">double</span> irplib_strehl_disk_flux(<span class="keyword">const</span> cpl_image * im,</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>                                <span class="keywordtype">double</span>            xpos,</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>                                <span class="keywordtype">double</span>            ypos,</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>                                <span class="keywordtype">double</span>            rad,</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>                                <span class="keywordtype">double</span>            bg)</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> {</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    sqr = rad * rad;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <span class="keywordtype">double</span>          sqrest;</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     <span class="keyword">const</span> <span class="keywordtype">float</span> *   pim;</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     <span class="keywordtype">double</span>          flux = 0.0;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     <span class="keywordtype">double</span>          yj, xi;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     <span class="keywordtype">int</span>             nx, ny;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     <span class="keywordtype">int</span>             lx, ly, ux, uy;</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     <span class="keywordtype">int</span>             i, j;</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     cpl_ensure(im != NULL, CPL_ERROR_NULL_INPUT, 0.0);</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     cpl_ensure(cpl_image_get_type(im) == CPL_TYPE_FLOAT,</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>                CPL_ERROR_UNSUPPORTED_MODE, 0.0);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     cpl_ensure(rad > 0.0, CPL_ERROR_ILLEGAL_INPUT, 0.0);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     nx = cpl_image_get_size_x(im);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     ny = cpl_image_get_size_y(im);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     <span class="comment">/* Round down */</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     lx = (int)(xpos - rad);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     ly = (int)(ypos - rad);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     <span class="keywordflow">if</span> (lx < 0) lx = 0;</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     <span class="keywordflow">if</span> (ly < 0) ly = 0;</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     <span class="comment">/* Round up */</span></div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     ux = (int)(xpos + rad) + 1;</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     uy = (int)(ypos + rad) + 1;</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>     <span class="keywordflow">if</span> (ux > (nx-1)) ux = nx-1;</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     <span class="keywordflow">if</span> (uy > (ny-1)) uy = ny-1;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> </div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     pim = cpl_image_get_data_float_const(im);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     <span class="keywordflow">for</span> (j=ly ; j<uy ; j++) {</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>         yj = (double)j - ypos;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>         sqrest = sqr - yj * yj;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>         <span class="keywordflow">for</span> (i=lx; i<ux ; i++) {</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>             xi = (double)i - xpos;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>             <span class="keywordflow">if</span> (sqrest >= xi * xi && irplib_isnan(pim[i+j*nx]) == 0) {</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>                 flux += (double)pim[i+j*nx] - bg;</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>             }</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>         }</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     }</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     <span class="keywordflow">return</span> flux;</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> }</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="keywordtype">double</span> irplib_strehl_ring_background(<span class="keyword">const</span> cpl_image *       im,</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                                      <span class="keywordtype">double</span>                  xpos,</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                                      <span class="keywordtype">double</span>                  ypos,</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                                      <span class="keywordtype">double</span>                  rad_int,</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>                                      <span class="keywordtype">double</span>                  rad_ext,</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>                                      irplib_strehl_bg_method mode)</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> {</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     <span class="keywordtype">int</span>             npix;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    sqr_int = rad_int * rad_int;</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    sqr_ext = rad_ext * rad_ext;</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     <span class="keywordtype">double</span>          dist;</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     cpl_vector  *   pix_arr;</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     <span class="keyword">const</span> <span class="keywordtype">float</span> *   pim;</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     <span class="keywordtype">double</span>          flux = 0.0;</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     <span class="keywordtype">double</span>          yj, xi;</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     <span class="keywordtype">int</span>             lx, ly, ux, uy;</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     <span class="keywordtype">int</span>             nx, ny;</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     <span class="keywordtype">int</span>             i, j;</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     cpl_ensure(im != NULL, CPL_ERROR_NULL_INPUT, 0.0);</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     cpl_ensure(cpl_image_get_type(im) == CPL_TYPE_FLOAT,</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>                CPL_ERROR_UNSUPPORTED_MODE, 0.0);</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     cpl_ensure(rad_int > 0.0, CPL_ERROR_ILLEGAL_INPUT, 0.0);</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     cpl_ensure(rad_ext > rad_int, CPL_ERROR_ILLEGAL_INPUT, 0.0);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>     cpl_ensure(mode == IRPLIB_BG_METHOD_AVER_REJ ||</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>                mode == IRPLIB_BG_METHOD_MEDIAN,</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>                CPL_ERROR_UNSUPPORTED_MODE, 0.0);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     nx = cpl_image_get_size_x(im);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     ny = cpl_image_get_size_y(im);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     <span class="comment">/* Round down */</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     lx = (int)(xpos - rad_ext);</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     ly = (int)(ypos - rad_ext);</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>     <span class="keywordflow">if</span> (lx < 0) lx = 0;</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>     <span class="keywordflow">if</span> (ly < 0) ly = 0;</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     <span class="comment">/* Round up */</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>     ux = (int)(xpos + rad_ext) + 1;</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>     uy = (int)(ypos + rad_ext) + 1;</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>     <span class="keywordflow">if</span> (ux > (nx-1)) ux = nx-1;</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     <span class="keywordflow">if</span> (uy > (ny-1)) uy = ny-1;</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     npix = (ux - lx + 1) * (uy - ly + 1);</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     cpl_ensure(npix >= IRPLIB_DISK_BG_MIN_PIX_NB, CPL_ERROR_DATA_NOT_FOUND, 0.0);</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>     <span class="comment">/* Allocate pixel array to hold values in the ring */</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     pix_arr = cpl_vector_new(npix);</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> </div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     <span class="comment">/* Count number of pixels in the ring */</span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     <span class="comment">/* Retrieve all pixels which belong to the ring */</span></div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     pim = cpl_image_get_data_float_const(im);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     npix = 0;</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     <span class="keywordflow">for</span> (j=ly ; j<uy ; j++) {</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>         yj = (double)j - ypos;</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>         <span class="keywordflow">for</span> (i=lx ; i<ux; i++) {</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>             xi = (double)i - xpos;</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>             dist = yj * yj + xi * xi;</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>             <span class="keywordflow">if</span> (sqr_int <= dist && dist <= sqr_ext &&</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>                 irplib_isnan(pim[i+j*nx]) == 0) {</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>                 cpl_vector_set(pix_arr, npix, (<span class="keywordtype">double</span>)pim[i+j*nx]);</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>                 npix++;</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>             }</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>         }</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     }</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     <span class="keywordflow">if</span> (npix < IRPLIB_DISK_BG_MIN_PIX_NB) {</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>         cpl_vector_delete(pix_arr);</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>         cpl_ensure(0, CPL_ERROR_DATA_NOT_FOUND, 0.0);</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     }</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>     <span class="comment">/* Should not be able to fail now */</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     <span class="comment">/* Resize pixel array to actual number of values within the ring */</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     cpl_vector_set_size(pix_arr, npix);</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     <span class="keywordflow">if</span> (mode == IRPLIB_BG_METHOD_AVER_REJ) {</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>         <span class="keyword">const</span> <span class="keywordtype">int</span> low_ind  = (int)((<span class="keywordtype">double</span>)npix * IRPLIB_DISK_BG_REJ_LOW);</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>         <span class="keyword">const</span> <span class="keywordtype">int</span> high_ind = (int)((<span class="keywordtype">double</span>)npix</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>                                    * (1.0 - IRPLIB_DISK_BG_REJ_HIGH));</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>         <span class="comment">/* Sort the array */</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>         cpl_vector_sort(pix_arr, 1);</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>         <span class="keywordflow">for</span> (i=low_ind ; i<high_ind ; i++) {</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>             flux += cpl_vector_get(pix_arr, i);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>         }</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>         <span class="keywordflow">if</span> (high_ind - low_ind > 1) flux /= (double)(high_ind - low_ind);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     } <span class="keywordflow">else</span> <span class="comment">/* if (mode == IRPLIB_BG_METHOD_MEDIAN) */</span> {</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>         flux = cpl_vector_get_median(pix_arr);</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>     }</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> </div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     cpl_vector_delete(pix_arr);</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     <span class="keywordflow">return</span> flux;</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> }</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> cpl_image * irplib_strehl_generate_psf(</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>         <span class="keywordtype">double</span>   m1,</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>         <span class="keywordtype">double</span>   m2,</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>         <span class="keywordtype">double</span>   lam,</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>         <span class="keywordtype">double</span>   dlam,</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>         <span class="keywordtype">double</span>   pscale,</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>         <span class="keywordtype">int</span>      size)</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> {</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     cpl_image * otf_image = irplib_strehl_generate_otf(m1, m2, lam, dlam,</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>             size, pscale);</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> </div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>     <span class="keywordflow">if</span> (otf_image == NULL) <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> </div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     <span class="comment">/* Transform back to real space</span></div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> <span class="comment">       - Normalization is unnecessary, due to the subsequent normalisation.</span></div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> <span class="comment">       - An OTF is point symmetric about its center, i.e. it is even,</span></div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> <span class="comment">         i.e. the real space image is real.</span></div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> <span class="comment">       - Because of this a forward FFT works as well.</span></div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> <span class="comment">       - If the PSF ever needs to have its images halves swapped add</span></div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> <span class="comment">         CPL_FFT_SWAP_HALVES to the FFT call.</span></div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> </div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>     <span class="keywordflow">if</span> (cpl_image_fft(otf_image, NULL, CPL_FFT_UNNORMALIZED) ||</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>         <span class="comment">/* Compute absolute values of PSF */</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>         cpl_image_abs(otf_image) ||</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>         <span class="comment">/* Normalize PSF to get flux=1  */</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>         cpl_image_normalise(otf_image, CPL_NORM_FLUX)) {</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> </div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>         cpl_image_delete(otf_image);</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>     }</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> </div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>     <span class="keywordflow">return</span> otf_image;</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span> }</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> <span class="keyword">static</span> cpl_image * irplib_strehl_generate_otf(</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>         <span class="keywordtype">double</span>  m1,</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>         <span class="keywordtype">double</span>  m2,</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>         <span class="keywordtype">double</span>  lam,</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>         <span class="keywordtype">double</span>  dlam,</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>         <span class="keywordtype">int</span>     size,</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>         <span class="keywordtype">double</span>  pscale)</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> {</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>     cpl_image   *   otf_image;</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>     <span class="keywordtype">double</span>      *   otf_data;</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>     <span class="keywordtype">double</span>          obs_ratio ;  <span class="comment">/* m1 / m2    */</span></div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     <span class="keywordtype">double</span>          f_max ;      <span class="comment">/* cut-off frequency        */</span></div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>     <span class="keywordtype">int</span>             pix0 ;      <span class="comment">/* Pixel corresponding to the zero frequency */</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>     <span class="keywordtype">double</span>          a, x, y;</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>     <span class="keywordtype">double</span>          f, rsq, fc, invfc, lambda;</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>     <span class="keywordtype">double</span>          sincy;</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>     <span class="keywordtype">double</span>          invsize;</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>     <span class="keyword">register</span> <span class="keywordtype">int</span>    pos;</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>     <span class="keywordtype">int</span>             i, j, k;</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> </div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> </div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>     cpl_ensure(m2   > 0.0,      CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>     cpl_ensure(m1   > m2,       CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     cpl_ensure(lam  > 0.0,      CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>     cpl_ensure(dlam > 0.0,      CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>     cpl_ensure(size > 0,        CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     cpl_ensure(pscale > 0.0,    CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> </div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     <span class="comment">/* Convert pixel scale from sec to radians, microns in meters    */</span></div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     pscale /= (double)206265;</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>     lam /= (double)1.0e6;</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>     dlam /= (double)1.0e6;</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span> </div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>     <span class="comment">/* Obscuration ratio    */</span></div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     obs_ratio = m2 / m1;</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span> </div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     <span class="comment">/* Pixel corresponding to the zero frequency    */</span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>     pix0 = size/2;</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     invsize = (double)1.0 / (<span class="keywordtype">double</span>)size;</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> </div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>     <span class="comment">/* Cut-off frequency in pixels  */</span></div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>     f_max = m1 * pscale * (double)size / lam;</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> </div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>     <span class="comment">/* Allocate for output image    */</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     otf_image = cpl_image_new(size, size, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     <span class="keywordflow">if</span> (otf_image==NULL) <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>     otf_data = cpl_image_get_data_double(otf_image);</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> </div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     <span class="comment">/* Now compute the OTF  */</span></div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>     <span class="comment">/* OPTIMIZED CODE !!! LIMITED READABILITY !!!   */</span></div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> </div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>     <span class="keywordflow">for</span> (k=1 ; k<=9 ; k++) {    <span class="comment">/* iteration on the wavelength  */</span></div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>         <span class="comment">/* Compute intermediate cut-off frequency   */</span></div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>         lambda = (double)(lam - dlam*(<span class="keywordtype">double</span>)(k-5)/8.0);</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>         fc = (double)f_max * (<span class="keywordtype">double</span>)lam / lambda;</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>         invfc = 1.0 / fc;</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> </div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>         <span class="comment">/* Convolution with the detector pixels */</span></div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>         pos = 0;</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>         <span class="keywordflow">for</span> (j=0 ; j<size ; j++) {</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>             y = (double)(j-pix0);</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>             sincy = PSF_sinc(CPL_MATH_PI * y * invsize);</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>             <span class="keywordflow">for</span> (i=0 ; i<size ; i++) {</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>                 x = (double)(i-pix0);</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>                 rsq = x*x + y*y;</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>                 <span class="keywordflow">if</span> (rsq < fc*fc) {</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>                     <span class="keywordflow">if</span> (rsq < 0.01)</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>                         a = 1.0;</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>                     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>                         f = sqrt(rsq) * invfc;</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>                         a = PSF_TelOTF(f,obs_ratio) *</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                             PSF_sinc(CPL_MATH_PI * x * invsize) * sincy;</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>                     }</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                 } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                     a = 0.0;</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>                 }</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>                 otf_data[pos++] += a / 9.0;</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>             }</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>         }</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>     }</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>     <span class="keywordflow">return</span> otf_image;</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> }</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> </div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> <span class="comment">/*----------------------------------------------------------------------------*</span></div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> <span class="comment"> * H1 function</span></div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> <span class="comment"> *----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> <span class="keyword">static</span> <span class="keywordtype">double</span> PSF_H1(</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>         <span class="keywordtype">double</span>  f,</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>         <span class="keywordtype">double</span>  u,</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>         <span class="keywordtype">double</span>  v)</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> {</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> e = fabs(1.0-v) > 0.0 ? -1.0 : 1.0; <span class="comment">/* e = 1.0 iff v = 1.0 */</span></div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>     <span class="keywordflow">return</span>((v*v/CPL_MATH_PI)*acos((f/v)*(1.0+e*(1.0-u*u)/(4.0*f*f))));</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> }</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> </div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> <span class="comment">/*----------------------------------------------------------------------------*</span></div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span> <span class="comment"> * H2 function</span></div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span> <span class="comment"> *----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span> <span class="keyword">static</span> <span class="keywordtype">double</span> PSF_H2(<span class="keywordtype">double</span>  f,</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>                      <span class="keywordtype">double</span>  u)</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> {</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> tmp1 = (2.0 * f) / (1.0 + u);</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> tmp2 = (1.0 - u) / (2.0 * f);</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="keywordflow">return</span> -1.0 * (f/CPL_MATH_PI) * (1.0+u)</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>         * sqrt((1.0-tmp1*tmp1)*(1.0-tmp2*tmp2));</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span> }</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span> <span class="comment">/*----------------------------------------------------------------------------*</span></div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span> <span class="comment"> * G function</span></div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> <span class="comment"> *----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> <span class="keyword">static</span> <span class="keywordtype">double</span> PSF_G(<span class="keywordtype">double</span>  f,</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>                     <span class="keywordtype">double</span>  u)</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span> {</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     <span class="keywordflow">if</span> (f <= (1.0-u)/2.0) <span class="keywordflow">return</span>(u*u);</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     <span class="keywordflow">if</span> (f >= (1.0+u)/2.0) <span class="keywordflow">return</span>(0.0);</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span>(PSF_H1(f,u,1.0) + PSF_H1(f,u,u) + PSF_H2(f,u));</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> }</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> </div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> <span class="comment">/*----------------------------------------------------------------------------*</span></div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> <span class="comment"> * sinc function</span></div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> <span class="comment"> *----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> <span class="keyword">static</span> <span class="keywordtype">double</span> PSF_sinc(<span class="keywordtype">double</span> x)</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span> {</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>   <span class="keywordflow">return</span> fabs(x) > fabs(sin(x)) ? sin(x)/x : 1.0;</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span> }</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> <span class="comment">/*----------------------------------------------------------------------------*</span></div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> <span class="comment"> * Telescope OTF function</span></div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> <span class="comment"> *----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span> <span class="keyword">static</span> <span class="keywordtype">double</span> PSF_TelOTF(<span class="keywordtype">double</span>  f,</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>                          <span class="keywordtype">double</span>  u)</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> {</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     <span class="keywordflow">return</span>((PSF_G(f,1.0)+u*u*PSF_G(f/u,1.0)-2.0*PSF_G(f,u))/(1.0-u*u));</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> }</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span> </div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span> cpl_error_code irplib_strehl_disk_max(<span class="keyword">const</span> cpl_image * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>                                              <span class="keywordtype">double</span>            xpos,</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>                                              <span class="keywordtype">double</span>            ypos,</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>                                              <span class="keywordtype">double</span>            radius,</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>                                              <span class="keywordtype">double</span>          * ppeak)</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span> {</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span> </div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    sqr = radius * radius;</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>     <span class="keywordtype">double</span>          sqrest;</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>     <span class="keyword">const</span> <span class="keywordtype">float</span> *   pself;</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     <span class="keywordtype">float</span>           peak = FLT_MAX;  <span class="comment">/* Avoid (false) uninit warning */</span></div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>     <span class="keywordtype">double</span>          yj, xi;</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     <span class="keywordtype">int</span>             nx, ny;</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     <span class="keywordtype">int</span>             lx, ly, ux, uy;</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>     <span class="keywordtype">int</span>             i, j;</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>     cpl_boolean     first = CPL_TRUE;</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span> </div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>     cpl_ensure_code(ppeak != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>     cpl_ensure_code(<span class="keyword">self</span>  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>     cpl_ensure_code(cpl_image_get_type(<span class="keyword">self</span>) == CPL_TYPE_FLOAT,</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>                     CPL_ERROR_UNSUPPORTED_MODE);</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>     cpl_ensure_code(radius > 0.0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> </div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>     nx = cpl_image_get_size_x(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>     ny = cpl_image_get_size_y(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>     <span class="comment">/* Round down */</span></div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     lx = (int)(xpos - radius);</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     ly = (int)(ypos - radius);</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     <span class="keywordflow">if</span> (lx < 0) lx = 0;</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>     <span class="keywordflow">if</span> (ly < 0) ly = 0;</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> </div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     <span class="comment">/* Round up */</span></div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>     ux = (int)(xpos + radius) + 1;</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     uy = (int)(ypos + radius) + 1;</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>     <span class="keywordflow">if</span> (ux > (nx-1)) ux = nx-1;</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     <span class="keywordflow">if</span> (uy > (ny-1)) uy = ny-1;</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> </div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>     pself = cpl_image_get_data_float_const(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>     <span class="keywordflow">for</span> (j=ly ; j<uy ; j++) {</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>         yj = (double)j - ypos;</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>         sqrest = sqr - yj * yj;</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>         <span class="keywordflow">for</span> (i=lx; i<ux ; i++) {</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>             xi = (double)i - xpos;</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>             <span class="keywordflow">if</span> (sqrest >= xi * xi && irplib_isnan(pself[i+j*nx]) == 0) {</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>                 <span class="keywordflow">if</span> (first || pself[i+j*nx] > peak) {</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>                     first = CPL_FALSE;</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>                     peak = pself[i+j*nx];</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>                 }</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>             }</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>         }</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>     }</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span> </div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>     cpl_ensure_code(!first, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> </div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>     *ppeak = (double)peak;</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__strehl_8h_source.html b/html/irplib__strehl_8h_source.html
deleted file mode 100644
index 406b19a..0000000
--- a/html/irplib__strehl_8h_source.html
+++ /dev/null
@@ -1,135 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_strehl.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_strehl.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_strehl.h,v 1.12 2009-06-29 14:32:53 kmirny Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: kmirny $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2009-06-29 14:32:53 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.12 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_STREHL_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_STREHL_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                                   Define</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#ifndef IRPLIB_STREHL_BORDER</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_STREHL_BORDER        5</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>     IRPLIB_BG_METHOD_AVER_REJ,</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>     IRPLIB_BG_METHOD_MEDIAN</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> } irplib_strehl_bg_method;</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">                               Functions prototypes</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> cpl_error_code irplib_strehl_compute(<span class="keyword">const</span> cpl_image *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>                                      <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">int</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>                                      <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>                                      <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *,</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>                                      <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> cpl_error_code irplib_strehl_mark_bad_and_compute(</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>                     cpl_image *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>                     <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">int</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>                     <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>                     <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>                     <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *, <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keywordtype">double</span> irplib_strehl_disk_flux(<span class="keyword">const</span> cpl_image *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>                                <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">double</span> irplib_strehl_ring_background(<span class="keyword">const</span> cpl_image *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>                                      <span class="keywordtype">double</span>, irplib_strehl_bg_method);</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> cpl_image * irplib_strehl_generate_psf(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>                                        <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> cpl_error_code irplib_strehl_disk_max(<span class="keyword">const</span> cpl_image *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>                                              <span class="keywordtype">double</span>, <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__utils-test_8c_source.html b/html/irplib__utils-test_8c_source.html
deleted file mode 100644
index 13c45ef..0000000
--- a/html/irplib__utils-test_8c_source.html
+++ /dev/null
@@ -1,406 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_utils-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li><li class="navelem"><a class="el" href="dir_40a404867a1885f5fad756cff9cd9f5a.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_utils-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                            *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO IRPLIB package                              *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                    *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify     *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by     *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or        *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                      *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,          *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of           *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                             *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License        *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software              *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA     *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                            */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#include <stdint.h></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> </div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment">                                   Function prototypes</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="keyword">static</span> IRPLIB_UTIL_SET_ROW(my_table_set_row);</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="keyword">static</span> IRPLIB_UTIL_CHECK(my_table_check);</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="keyword">static</span> <span class="keywordtype">void</span> test_irplib_image_split(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="keyword">static</span> <span class="keywordtype">void</span> test_irplib_dfs_table_convert(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="keyword">static</span> <span class="keywordtype">void</span> test_irplib_isnaninf(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="keyword">static</span> <span class="keywordtype">void</span> bench_irplib_image_split(<span class="keywordtype">int</span>, <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="keyword">static</span> <span class="keywordtype">void</span> frameset_sort_test(<span class="keywordtype">int</span> sz);</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="keyword">static</span> <span class="keywordtype">void</span> test_irplib_aligned_alloc(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> {</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>     <span class="comment">/* Initialize CPL for unit testing */</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     test_irplib_isnaninf();</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     test_irplib_dfs_table_convert();</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     test_irplib_image_split();</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     frameset_sort_test(122); <span class="comment">/* test even */</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     frameset_sort_test(127); <span class="comment">/* test odd  */</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     test_irplib_aligned_alloc();</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>     <span class="keywordflow">if</span> (cpl_msg_get_level() <= CPL_MSG_INFO) {</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>         bench_irplib_image_split(1024, 100);</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         bench_irplib_image_split(64, 1);</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     }</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> }</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="keyword">static</span> <span class="keywordtype">void</span> test_irplib_isnaninf(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> {</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>     <span class="keywordtype">double</span> infinity = DBL_MAX * DBL_MAX;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="keywordtype">double</span> number[] = {17, 0};</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     <span class="comment">/* The computation  oo/oo  must result in NaN according to</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment">       the IEEE 754 standard. However, some GCC 4.x versions erroneously</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment">       optimize this to 1.</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"></span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment">       Alternatively, a NaN could be produced using a IEEE 754 defined bit</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment">       pattern. But that is likely to depend on the machine's word size.</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment">       Therefore this test is disabled.</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"></span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">       double not_a_number = infinity / infinity;</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     cpl_test_zero(irplib_isnan(infinity) );</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     <span class="comment">/* cpl_test(  irplib_isnan(not_a_number) ); */</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     cpl_test_zero(irplib_isnan(number[0]) );</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     cpl_test_zero(irplib_isnan(number[1]) );</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     cpl_test(  irplib_isinf(infinity) );</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     <span class="comment">/* cpl_test_zero(irplib_isinf(not_a_number) ); */</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     cpl_test_zero(irplib_isinf(number[0]) );</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     cpl_test_zero(irplib_isinf(number[1]) );</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> }</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="keyword">static</span> <span class="keywordtype">void</span> test_irplib_aligned_alloc(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> {</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     <span class="keywordtype">void</span> * ptr = NULL;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     <span class="keywordtype">size_t</span> alignment[] = {2, 4, 8, 16, 32, 64, 128, 4096};</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     <span class="keywordtype">char</span> zero[100] = {0};</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     <span class="keywordtype">size_t</span> i;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     <span class="keywordflow">for</span> (i = 0; i < <span class="keyword">sizeof</span>(alignment)/<span class="keyword">sizeof</span>(alignment[0]); i++) {</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>         ptr = irplib_aligned_malloc(alignment[i], 100);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>         cpl_test_nonnull(ptr);</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>         cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>         cpl_test_eq(((intptr_t)ptr % alignment[i]), 0);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>         irplib_aligned_free(ptr);</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>         cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     }</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     <span class="comment">/* invalid alignment */</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     ptr = irplib_aligned_malloc(5, 100);</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     cpl_test_null(ptr);</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     irplib_aligned_free(NULL);</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <span class="keywordflow">for</span> (i = 0; i < <span class="keyword">sizeof</span>(alignment)/<span class="keyword">sizeof</span>(alignment[0]); i++) {</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>         ptr = irplib_aligned_calloc(alignment[i], 100, 1);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>         cpl_test_nonnull(ptr);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>         cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>         cpl_test_eq(((intptr_t)ptr % alignment[i]), 0);</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>         cpl_test_eq(memcmp(ptr, zero, 100), 0);</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>         irplib_aligned_free(ptr);</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>         cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     }</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     <span class="comment">/* invalid alignment */</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     ptr = irplib_aligned_calloc(5, 100, 1);</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>     cpl_test_null(ptr);</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     irplib_aligned_free(NULL);</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> }</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="keyword">static</span> cpl_boolean my_table_set_row(cpl_table * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>                                     <span class="keyword">const</span> <span class="keywordtype">char</span> * line,</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>                                     <span class="keywordtype">int</span> irow,</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>                                     <span class="keyword">const</span> cpl_frame * rawframe,</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>                                     <span class="keyword">const</span> cpl_parameterlist * parlist)</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> {</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     cpl_ensure(<span class="keyword">self</span>     != NULL, CPL_ERROR_NULL_INPUT, CPL_FALSE);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     cpl_ensure(line     != NULL, CPL_ERROR_NULL_INPUT, CPL_FALSE);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     cpl_ensure(irow     >= 0,    CPL_ERROR_ILLEGAL_INPUT, CPL_FALSE);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     cpl_ensure(rawframe != NULL, CPL_ERROR_NULL_INPUT, CPL_FALSE);</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     cpl_ensure(parlist  != NULL, CPL_ERROR_NULL_INPUT, CPL_FALSE);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     <span class="keywordflow">return</span> CPL_TRUE;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> }</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="keyword">static</span> cpl_error_code my_table_check(cpl_table * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>                                      <span class="keyword">const</span> cpl_frameset * useframes,</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>                                      <span class="keyword">const</span> cpl_parameterlist * parlist)</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> {</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     cpl_ensure_code(<span class="keyword">self</span>      != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     cpl_ensure_code(useframes != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     cpl_ensure_code(parlist   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> }</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="keyword">static</span> <span class="keywordtype">void</span> test_irplib_dfs_table_convert(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> {</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     <span class="comment">/* FIXME: Room for improvement... */</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     cpl_error_code error</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>         = <a class="code" href="group__irplib__utils.html#ga3d1a791b5dc870770611c7dbf60d02df" title="Create a DFS product with one table from one or more (ASCII) file(s)">irplib_dfs_table_convert</a>(NULL, NULL, NULL, 1024, <span class="charliteral">'#'</span>,</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>                                    NULL, NULL, NULL, NULL, NULL, NULL,</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>                                    NULL, NULL, NULL, my_table_set_row,</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>                                    my_table_check);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     error =</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>         <a class="code" href="group__irplib__utils.html#ga59a68df1795523d4f7653875bd9fc01d" title="Set the rows of a table with data from one or more (ASCII) files.">irplib_table_read_from_frameset</a>(NULL, NULL, 1024, <span class="charliteral">'#'</span>, NULL,</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>                                         my_table_set_row);</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> }</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="keyword">static</span> <span class="keywordtype">void</span> bench_irplib_image_split(<span class="keywordtype">int</span> nxy, <span class="keywordtype">int</span> nsplit) {</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> th_low   =  0.0;</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> th_high  = 50.0;</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> alt_low  = th_low  - 1.0;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> alt_high = th_high + 1.0;</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     cpl_image  * test     = cpl_image_new(nxy, nxy, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="keywordtype">double</span>       tsum = 0.0;</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     <span class="keywordtype">int</span>          i;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     <span class="keywordflow">for</span> (i = 0; i < nsplit; i++) {</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         <span class="keywordtype">double</span> time1;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> time0 = cpl_test_get_cputime();</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>         <span class="keyword">const</span> cpl_error_code error =</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>             <a class="code" href="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954" title="Split the values in an image in three according to two thresholds.">irplib_image_split</a>(test, NULL, test, NULL,</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>                                th_low,  CPL_TRUE, th_high, CPL_TRUE,</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>                                alt_low, alt_high,</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>                                CPL_TRUE, CPL_FALSE, CPL_TRUE);</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>         time1 = cpl_test_get_cputime();</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> </div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         <span class="keywordflow">if</span> (time1 > time0) tsum += time1 - time0;</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     }</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     cpl_msg_info(cpl_func,<span class="stringliteral">"Time to split with image size %d [ms]: %g"</span>, nxy,</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>                  1e3*tsum/nsplit);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     cpl_image_delete(test);</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> }</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> </div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="keyword">static</span> <span class="keywordtype">void</span> test_irplib_image_split(<span class="keywordtype">void</span>) {</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> th_low   =  0.0;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> th_high  = 50.0;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> alt_low  = th_low  - 1.0;</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> alt_high = th_high + 1.0;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     cpl_image * test   = cpl_image_new(100, 100, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     cpl_image * result = cpl_image_new(100, 100, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     <span class="comment">/* Various error conditions */</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     cpl_error_code error</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>         = <a class="code" href="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954" title="Split the values in an image in three according to two thresholds.">irplib_image_split</a>(NULL, test, result, test,</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>                              0.0, CPL_FALSE, 0.0, CPL_FALSE,</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>                              0.0, 0.0,</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>                              CPL_FALSE, CPL_FALSE, CPL_FALSE);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     error = <a class="code" href="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954" title="Split the values in an image in three according to two thresholds.">irplib_image_split</a>(test, NULL, NULL, NULL,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                                th_low,  CPL_TRUE, th_high, CPL_TRUE,</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                                alt_low, alt_high,</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                                CPL_TRUE, CPL_FALSE, CPL_TRUE);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     error = <a class="code" href="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954" title="Split the values in an image in three according to two thresholds.">irplib_image_split</a>(test, NULL, result, NULL,</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>                                th_low,  CPL_TRUE, alt_low, CPL_TRUE,</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>                                alt_low, alt_high,</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>                                CPL_TRUE, CPL_FALSE, CPL_TRUE);</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     cpl_test_eq_error(error, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     <span class="comment">/* Verify against cpl_image_threshold() */</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     error = cpl_image_fill_noise_uniform(test, -100.0, 100.0);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     error = <a class="code" href="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954" title="Split the values in an image in three according to two thresholds.">irplib_image_split</a>(test, NULL, result, NULL,</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>                                th_low,  CPL_TRUE, th_high, CPL_TRUE,</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>                                alt_low, alt_high,</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>                                CPL_TRUE, CPL_FALSE, CPL_TRUE);</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     error = cpl_image_threshold(test, th_low, th_high, alt_low, alt_high);</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     error = cpl_image_subtract(result, test);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     cpl_test_leq(cpl_image_get_absflux(result), DBL_EPSILON);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     cpl_image_delete(test);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     cpl_image_delete(result);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> }</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="keyword">static</span> <span class="keywordtype">void</span> frameset_sort_test(<span class="keywordtype">int</span> sz)</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> {</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     <span class="comment">/* 1. create a test frameset - each frame should contain EXPTIME property */</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     cpl_frameset * pframeset = cpl_frameset_new();</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     <span class="keywordtype">int</span>          * idx       = cpl_malloc(sz * <span class="keyword">sizeof</span>(*idx));</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     <span class="keywordtype">double</span>       * exptime   = cpl_malloc(sz * <span class="keyword">sizeof</span>(*exptime));</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <span class="keywordtype">int</span>            i;</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     cpl_test_nonnull(pframeset);</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     <span class="keywordflow">for</span> (i = 0; i < sz; i++) {</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>         cpl_frame        * pframe   = cpl_frame_new();</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>         cpl_propertylist * plist    = cpl_propertylist_new();</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>         <span class="keywordtype">char</span>             * filename = cpl_sprintf(<span class="stringliteral">"dummyon%d.fits"</span>, i);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>         <span class="keyword">const</span> <span class="keywordtype">double</span>       value    = (i % 2) > 0 ? i : sz - i - 1;</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>         cpl_test_nonnull(pframe);</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         <span class="comment">/* assign exptime; */</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>         error = cpl_frame_set_filename(pframe, filename);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>         error = cpl_frame_set_tag(pframe, <span class="stringliteral">"ON"</span>);</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>         error = cpl_frame_set_type(pframe, CPL_FRAME_TYPE_IMAGE);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>         error = cpl_frame_set_group(pframe, CPL_FRAME_GROUP_RAW);</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>         error = cpl_frameset_insert(pframeset, pframe);</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>         error = cpl_propertylist_append_double(plist, <span class="stringliteral">"EXPTIME"</span>, value);</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>         error = cpl_propertylist_save(plist, filename, CPL_IO_CREATE);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>         cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>         cpl_free(filename);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     }</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     error = irplib_frameset_sort(pframeset, idx, exptime);</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <span class="keywordflow">for</span> (i = 0; i < sz; i++) {</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>         <span class="keywordtype">int</span> k = i + 1 - (sz % 2);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>         <span class="keywordtype">int</span> j = sz -i - 1 ;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>         cpl_test_eq(idx[i], (((i + (sz % 2)) % 2)  == 0 ? k : j));</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     }</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     cpl_free(idx);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     cpl_free(exptime);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     cpl_frameset_delete(pframeset);</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     cpl_test_zero(system(<span class="stringliteral">"rm *.fits"</span>));</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__utils_8c_source.html b/html/irplib__utils_8c_source.html
deleted file mode 100644
index 205f96d..0000000
--- a/html/irplib__utils_8c_source.html
+++ /dev/null
@@ -1,1314 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_utils.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_utils.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_utils.c,v 1.85 2013-07-04 12:10:55 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-07-04 12:10:55 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.85 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include "irplib_utils.h"</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <assert.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <errno.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">                           Defines</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/* TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#ifndef CPL_SIZE_FORMAT</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#define CPL_SIZE_FORMAT "d"</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor"></span><span class="preprocessor">#define cpl_size int</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="comment">/* END TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#ifndef inline</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span><span class="preprocessor">#define inline </span><span class="comment">/* inline */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">                           Missing Function Prototypes</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">                           Private Function Prototypes</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> irplib_data_get_double(<span class="keyword">const</span> <span class="keywordtype">void</span> *, cpl_type, <span class="keywordtype">int</span>)</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor">#ifdef CPL_HAVE_GNUC_NONNULL</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor"></span>     __attribute__((nonnull))</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor"></span>    ;</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_data_set_double(<span class="keywordtype">void</span> *, cpl_type, <span class="keywordtype">int</span>, <span class="keywordtype">double</span>)</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor">#ifdef CPL_HAVE_GNUC_NONNULL</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor"></span>     __attribute__((nonnull))</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor"></span>    ;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="keywordtype">void</span> irplib_errorstate_dump_one_level(<span class="keywordtype">void</span> (*)(<span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>                                                <span class="keyword">const</span> <span class="keywordtype">char</span> *, ...)</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>   #ifdef __GNUC__</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>       __attribute__((format (printf, 2, 3)))</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>   #endif</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>                                       , <span class="keywordtype">unsigned</span>, <span class="keywordtype">unsigned</span>, <span class="keywordtype">unsigned</span>);</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="keyword">static</span> <span class="keywordtype">double</span> frame_get_exptime(<span class="keyword">const</span> cpl_frame * pframe);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="keyword">static</span> <span class="keywordtype">void</span> quicksort(<span class="keywordtype">int</span>* index, <span class="keywordtype">double</span>* exptime, <span class="keywordtype">int</span> left, <span class="keywordtype">int</span> right);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="keyword">static</span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga4ffea791c01c8a50093294d6dcbddb56" title="Save either an image or table as a pipeline product.">irplib_dfs_product_save</a>(cpl_frameset *,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>                                               cpl_propertylist *,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>                                               <span class="keyword">const</span> cpl_parameterlist *,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                                               <span class="keyword">const</span> cpl_frameset *,</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>                                               <span class="keyword">const</span> cpl_frame *,</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                                               <span class="keyword">const</span> cpl_imagelist *,</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                                               <span class="keyword">const</span> cpl_image *,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                                               cpl_type,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                                               <span class="keyword">const</span> cpl_table *,</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                                               <span class="keyword">const</span> cpl_propertylist *,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                                               <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>                                               <span class="keyword">const</span> cpl_propertylist *,</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                                               <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                                               <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                                               <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga6b29dac884b62ab52f43dd670d4d8386">  130</a></span> <span class="keywordtype">void</span> <a class="code" href="group__irplib__utils.html#ga6b29dac884b62ab52f43dd670d4d8386" title="Dump a single CPL error at the CPL warning level.">irplib_errorstate_dump_warning</a>(<span class="keywordtype">unsigned</span> <span class="keyword">self</span>, <span class="keywordtype">unsigned [...]
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>                                     <span class="keywordtype">unsigned</span> last)</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> {</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     irplib_errorstate_dump_one_level(&cpl_msg_warning, <span class="keyword">self</span>, first, last);</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> }</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="keyword">static</span> cpl_polynomial * irplib_polynomial_fit_1d_create_common(</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>         <span class="keyword">const</span> cpl_vector    *   x_pos,</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>         <span class="keyword">const</span> cpl_vector    *   values,</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>         <span class="keywordtype">int</span>                     degree,</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>         <span class="keywordtype">double</span>              *   mse,</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>         <span class="keywordtype">double</span>              *  rechisq</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>         );</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga901ff52a1c9dcdfcf2d2632d31064bdb">  157</a></span> <span class="keywordtype">void</span> <a class="code" href="group__irplib__utils.html#ga901ff52a1c9dcdfcf2d2632d31064bdb" title="Dump a single CPL error at the CPL info level.">irplib_errorstate_dump_info</a>(<span class="keywordtype">unsigned</span> <span class="keyword">self</span>, <span class="keywordtype">unsigned</span [...]
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                                     <span class="keywordtype">unsigned</span> last)</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> {</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     irplib_errorstate_dump_one_level(&cpl_msg_info, <span class="keyword">self</span>, first, last);</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> }</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga26c6209e5df98978e2922a15b47b47d1">  177</a></span> <span class="keywordtype">void</span> <a class="code" href="group__irplib__utils.html#ga26c6209e5df98978e2922a15b47b47d1" title="Dump a single CPL error at the CPL debug level.">irplib_errorstate_dump_debug</a>(<span class="keywordtype">unsigned</span> <span class="keyword">self</span>, <span class="keywordtype">unsigned</sp [...]
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>                                     <span class="keywordtype">unsigned</span> last)</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> {</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     irplib_errorstate_dump_one_level(&cpl_msg_debug, <span class="keyword">self</span>, first, last);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> }</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga346842d722834a2e6221ff2d86314b7e">  208</a></span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga346842d722834a2e6221ff2d86314b7e" title="Save an image as a DFS-compliant pipeline product.">irplib_dfs_save_image</a>(cpl_frameset            * allframes,</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>                                      <span class="keyword">const</span> cpl_parameterlist * parlist,</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>                                      <span class="keyword">const</span> cpl_frameset      * usedframes,</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>                                      <span class="keyword">const</span> cpl_image         * image,</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>                                      cpl_type_bpp              bpp,</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              * recipe,</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              * procat,</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>                                      <span class="keyword">const</span> cpl_propertylist  * applist,</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              * remregexp,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              * pipe_id,</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              * filename)</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> {</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     cpl_errorstate     prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     cpl_propertylist * prolist  = applist ? cpl_propertylist_duplicate(applist)</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>         : cpl_propertylist_new();</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     cpl_propertylist_update_string(prolist, CPL_DFS_PRO_CATG, procat);</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     <a class="code" href="group__irplib__utils.html#ga1fd7c2f4c00014049b0bf4bf6814b451" title="Save an image as a DFS-compliant pipeline product.">irplib_dfs_save_image_</a>(allframes, NULL, parlist, usedframes, NULL, image,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                            bpp, recipe, prolist, remregexp, pipe_id, filename);</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> </div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     cpl_propertylist_delete(prolist);</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     cpl_ensure_code(cpl_errorstate_is_equal(prestate), cpl_error_get_code());</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> }</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> cpl_error_code</div>
-<div class="line"><a name="l00256"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga4dc12f321e7aeb5e67ff19f815bfd7b7">  256</a></span> <a class="code" href="group__irplib__utils.html#ga4dc12f321e7aeb5e67ff19f815bfd7b7" title="Save a propertylist as a DFS-compliant pipeline product.">irplib_dfs_save_propertylist</a>(cpl_frameset            * allframes,</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                              <span class="keyword">const</span> cpl_parameterlist * parlist,</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                              <span class="keyword">const</span> cpl_frameset      * usedframes,</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span>              * recipe,</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span>              * procat,</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                              <span class="keyword">const</span> cpl_propertylist  * applist,</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span>              * remregexp,</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span>              * pipe_id,</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span>              * filename)</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> {</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     cpl_errorstate     prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     cpl_propertylist * prolist  = applist ? cpl_propertylist_duplicate(applist)</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>         : cpl_propertylist_new();</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     cpl_propertylist_update_string(prolist, CPL_DFS_PRO_CATG, procat);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     cpl_dfs_save_propertylist(allframes, NULL, parlist, usedframes, NULL,</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>                               recipe, prolist, remregexp, pipe_id, filename);</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     cpl_propertylist_delete(prolist);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     cpl_ensure_code(cpl_errorstate_is_equal(prestate), cpl_error_get_code());</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> </div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> }</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga66f7adc9e165b4e934e3d57a700f55c1">  303</a></span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga66f7adc9e165b4e934e3d57a700f55c1" title="Save an imagelist as a DFS-compliant pipeline product.">irplib_dfs_save_imagelist</a>(cpl_frameset            * allframes,</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                                          <span class="keyword">const</span> cpl_parameterlist * parlist,</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                                          <span class="keyword">const</span> cpl_frameset      * usedframes,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                                          <span class="keyword">const</span> cpl_imagelist     * imagelist,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                                          cpl_type_bpp              bpp,</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span>              * recipe,</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span>              * procat,</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>                                          <span class="keyword">const</span> cpl_propertylist  * applist,</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span>              * remregexp,</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span>              * pipe_id,</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span>              * filename)</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> {</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     cpl_errorstate     prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     cpl_propertylist * prolist  = applist ? cpl_propertylist_duplicate(applist)</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>         : cpl_propertylist_new();</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     cpl_propertylist_update_string(prolist, CPL_DFS_PRO_CATG, procat);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     cpl_dfs_save_imagelist(allframes, NULL, parlist, usedframes, NULL,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                            imagelist, bpp, recipe, prolist, remregexp, pipe_id,</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>                            filename);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     cpl_propertylist_delete(prolist);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     cpl_ensure_code(cpl_errorstate_is_equal(prestate), cpl_error_get_code());</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> }</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga62a91f8630af11164547c168660b2ade">  351</a></span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga62a91f8630af11164547c168660b2ade" title="Save a table as a DFS-compliant pipeline product.">irplib_dfs_save_table</a>(cpl_frameset            * allframes,</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>                                      <span class="keyword">const</span> cpl_parameterlist * parlist,</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>                                      <span class="keyword">const</span> cpl_frameset      * usedframes,</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>                                      <span class="keyword">const</span> cpl_table         * table,</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>                                      <span class="keyword">const</span> cpl_propertylist  * tablelist,</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              * recipe,</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              * procat,</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>                                      <span class="keyword">const</span> cpl_propertylist  * applist,</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              * remregexp,</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              * pipe_id,</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              * filename)</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> {</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     cpl_errorstate     prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     cpl_propertylist * prolist  = applist ? cpl_propertylist_duplicate(applist)</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>         : cpl_propertylist_new();</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     cpl_propertylist_update_string(prolist, CPL_DFS_PRO_CATG, procat);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     cpl_dfs_save_table(allframes, NULL, parlist, usedframes, NULL,</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>                            table, tablelist, recipe, prolist, remregexp,</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                            pipe_id, filename);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     cpl_propertylist_delete(prolist);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     cpl_ensure_code(cpl_errorstate_is_equal(prestate), cpl_error_get_code());</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> }</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00411"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga1fd7c2f4c00014049b0bf4bf6814b451">  411</a></span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga1fd7c2f4c00014049b0bf4bf6814b451" title="Save an image as a DFS-compliant pipeline product.">irplib_dfs_save_image_</a>(cpl_frameset            * allframes,</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                                       cpl_propertylist        * header,</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                                       <span class="keyword">const</span> cpl_parameterlist * parlist,</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                                       <span class="keyword">const</span> cpl_frameset      * usedframes,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                                       <span class="keyword">const</span> cpl_frame         * inherit,</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                                       <span class="keyword">const</span> cpl_image         * image,</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>                                       cpl_type                  type,</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>                                       <span class="keyword">const</span> <span class="keywordtype">char</span>              * recipe,</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                                       <span class="keyword">const</span> cpl_propertylist  * applist,</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                                       <span class="keyword">const</span> <span class="keywordtype">char</span>              * remregexp,</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                                       <span class="keyword">const</span> <span class="keywordtype">char</span>              * pipe_id,</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                                       <span class="keyword">const</span> <span class="keywordtype">char</span>              * filename)</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> {</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     <span class="keywordflow">return</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>         <a class="code" href="group__irplib__utils.html#ga4ffea791c01c8a50093294d6dcbddb56" title="Save either an image or table as a pipeline product.">irplib_dfs_product_save</a>(allframes, header, parlist, usedframes, inherit,</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>                                 NULL, image, type, NULL, NULL, recipe,</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>                                 applist, remregexp, pipe_id, filename)</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>         ? cpl_error_set_where(cpl_func) : CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> }</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga4ffea791c01c8a50093294d6dcbddb56">  460</a></span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga4ffea791c01c8a50093294d6dcbddb56" title="Save either an image or table as a pipeline product.">irplib_dfs_product_save</a>(cpl_frameset            * allframes,</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>                                        cpl_propertylist        * header,</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>                                        <span class="keyword">const</span> cpl_parameterlist * parlist,</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                                        <span class="keyword">const</span> cpl_frameset      * usedframes,</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>                                        <span class="keyword">const</span> cpl_frame         * inherit,</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                                        <span class="keyword">const</span> cpl_imagelist     * imagelist,</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                                        <span class="keyword">const</span> cpl_image         * image,</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>                                        cpl_type                  type,</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                                        <span class="keyword">const</span> cpl_table         * table,</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                                        <span class="keyword">const</span> cpl_propertylist  * tablelist,</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                                        <span class="keyword">const</span> <span class="keywordtype">char</span>              * recipe,</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                                        <span class="keyword">const</span> cpl_propertylist  * applist,</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                                        <span class="keyword">const</span> <span class="keywordtype">char</span>              * remregexp,</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>                                        <span class="keyword">const</span> <span class="keywordtype">char</span>              * pipe_id,</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>                                        <span class="keyword">const</span> <span class="keywordtype">char</span>              * filename) {</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>       * procat;</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     cpl_propertylist * plist;</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     cpl_frame        * product_frame;</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     <span class="comment">/* Inside this function the product-types are numbered:</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="comment">       0: imagelist</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> <span class="comment">       1: table</span></div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> <span class="comment">       2: image</span></div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> <span class="comment">       3: propertylist only</span></div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     <span class="keyword">const</span> <span class="keywordtype">unsigned</span>     pronum</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>         = imagelist != NULL ? 0 : table != NULL ? 1 :  (image != NULL ? 2 : 3);</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>       * proname[] = {<span class="stringliteral">"imagelist"</span>, <span class="stringliteral">"table"</span>, <span class="stringliteral">"image"</span>,</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>                                     <span class="stringliteral">"propertylist"</span>};</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     <span class="comment">/* FIXME: Define a frame type for an imagelist and when data-less */</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>          protype[] = {CPL_FRAME_TYPE_ANY, CPL_FRAME_TYPE_TABLE,</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>                                     CPL_FRAME_TYPE_IMAGE, CPL_FRAME_TYPE_ANY};</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>     cpl_error_code     error = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     <span class="comment">/* No more than one of imagelist, table and image may be non-NULL */</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     <span class="comment">/* tablelist may only be non-NULL when table is non-NULL */</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     <span class="keywordflow">if</span> (imagelist != NULL) {</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>         assert(pronum == 0);</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>         assert(image == NULL);</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>         assert(table == NULL);</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>         assert(tablelist == NULL);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (table != NULL) {</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>         assert(pronum == 1);</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>         assert(imagelist == NULL);</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>         assert(image == NULL);</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (image != NULL) {</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>         assert(pronum == 2);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>         assert(imagelist == NULL);</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>         assert(table == NULL);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>         assert(tablelist == NULL);</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>         assert(pronum == 3);</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>         assert(imagelist == NULL);</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>         assert(table == NULL);</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>         assert(tablelist == NULL);</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>         assert(image == NULL);</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>     }</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>     cpl_ensure_code(allframes  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>     cpl_ensure_code(parlist    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>     cpl_ensure_code(usedframes != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>     cpl_ensure_code(recipe     != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     cpl_ensure_code(applist    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     cpl_ensure_code(pipe_id    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     cpl_ensure_code(filename   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     procat = cpl_propertylist_get_string(applist, CPL_DFS_PRO_CATG);</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> </div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>     cpl_ensure_code(procat     != NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Writing FITS %s product(%s): %s"</span>, proname[pronum],</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>                  procat, filename);</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> </div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>     product_frame = cpl_frame_new();</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> </div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     <span class="comment">/* Create product frame */</span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>     error |= cpl_frame_set_filename(product_frame, filename);</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>     error |= cpl_frame_set_tag(product_frame, procat);</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>     error |= cpl_frame_set_type(product_frame, protype[pronum]);</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>     error |= cpl_frame_set_group(product_frame, CPL_FRAME_GROUP_PRODUCT);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     error |= cpl_frame_set_level(product_frame, CPL_FRAME_LEVEL_FINAL);</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> </div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>         cpl_frame_delete(product_frame);</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>         <span class="keywordflow">return</span> cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     }</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> </div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     <span class="keywordflow">if</span> (header != NULL) {</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>         cpl_propertylist_empty(header);</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>         plist = header;</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>         plist = cpl_propertylist_new();</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     }</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> </div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     <span class="comment">/* Add any QC parameters here */</span></div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>     <span class="keywordflow">if</span> (applist != NULL) error = cpl_propertylist_copy_property_regexp(plist,</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                                                                        applist,</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>                                                                        <span class="stringliteral">"."</span>, 0);</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> </div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     <span class="comment">/* Add DataFlow keywords */</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>     <span class="keywordflow">if</span> (!error)</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>         error = cpl_dfs_setup_product_header(plist, product_frame, usedframes,</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>                                              parlist, recipe, pipe_id,</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>                                              <span class="stringliteral">"PRO-1.15"</span>, inherit);</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>     <span class="keywordflow">if</span> (remregexp != NULL && !error) {</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>         cpl_errorstate prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>         (void)cpl_propertylist_erase_regexp(plist, remregexp, 0);</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>         <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(prestate)) error = cpl_error_get_code();</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>     }</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>     <span class="keywordflow">if</span> (!error) {</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>         <span class="keywordflow">switch</span> (pronum) {</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>             <span class="keywordflow">case</span> 0:</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                 error = cpl_imagelist_save(imagelist, filename, type, plist,</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                                            CPL_IO_CREATE);</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>             <span class="keywordflow">case</span> 1:</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>                 error = cpl_table_save(table, plist, tablelist, filename,</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>                                        CPL_IO_CREATE);</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>             <span class="keywordflow">case</span> 2:</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>                 error = cpl_image_save(image, filename, type, plist,</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>                                        CPL_IO_CREATE);</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>                 <span class="comment">/* case 3: */</span></div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>                 error = cpl_propertylist_save(plist, filename, CPL_IO_CREATE);</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>         }</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     }</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> </div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     <span class="keywordflow">if</span> (!error) {</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>         <span class="comment">/* Insert the frame of the saved file in the input frameset */</span></div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>         error = cpl_frameset_insert(allframes, product_frame);</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> </div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>         cpl_frame_delete(product_frame);</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     }</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> </div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>     <span class="keywordflow">if</span> (plist != header) cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span> </div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> </div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span> </div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> }    </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span> </div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> </div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00665"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954">  665</a></span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954" title="Split the values in an image in three according to two thresholds.">irplib_image_split</a>(<span class="keyword">const</span> cpl_image * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>                                   cpl_image * im_low,</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                                   cpl_image * im_mid,</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>                                   cpl_image * im_high,</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                                   <span class="keywordtype">double</span> th_low,</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                                   cpl_boolean isleq_low,</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>                                   <span class="keywordtype">double</span> th_high,</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>                                   cpl_boolean isgeq_high,</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>                                   <span class="keywordtype">double</span> alt_low,</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>                                   <span class="keywordtype">double</span> alt_high,</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>                                   cpl_boolean isbad_low,</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                                   cpl_boolean isbad_mid,</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>                                   cpl_boolean isbad_high)</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> {</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> </div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>     <span class="keyword">const</span> <span class="keywordtype">void</span>       * selfdata = cpl_image_get_data_const(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>     <span class="comment">/* hasbpm reduces check-overhead if self does not have a bpm, and if</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> <span class="comment">       self is also passed as an output image, that ends up with bad pixels */</span></div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>     <span class="comment">/* FIXME: Need a proper way to know if a bpm has been allocated :-((((((( */</span></div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>     <span class="keyword">const</span> cpl_boolean  hasbpm</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>         = cpl_image_count_rejected(<span class="keyword">self</span>) ? CPL_TRUE : CPL_FALSE;</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>     <span class="keyword">const</span> cpl_binary * selfbpm = hasbpm</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>         ? cpl_mask_get_data_const(cpl_image_get_bpm_const(<span class="keyword">self</span>)) : NULL;</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>     <span class="keyword">const</span> cpl_type     selftype = cpl_image_get_type(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>          nx = cpl_image_get_size_x(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>          ny = cpl_image_get_size_y(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>          npix = nx * ny;</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>     <span class="keyword">const</span> cpl_boolean  do_low   = im_low  != NULL;</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>     <span class="keyword">const</span> cpl_boolean  do_mid   = im_mid  != NULL;</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>     <span class="keyword">const</span> cpl_boolean  do_high  = im_high != NULL;</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     <span class="keywordtype">void</span>             * lowdata  = NULL;</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>     <span class="keywordtype">void</span>             * middata  = NULL;</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>     <span class="keywordtype">void</span>             * highdata = NULL;</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     cpl_binary       * lowbpm   = NULL;</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>     cpl_binary       * midbpm   = NULL;</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     cpl_binary       * highbpm  = NULL;</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="keyword">const</span> cpl_type     lowtype</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>         = do_low ? cpl_image_get_type(im_low) : CPL_TYPE_INVALID;</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     <span class="keyword">const</span> cpl_type     midtype</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>         = do_mid ? cpl_image_get_type(im_mid) : CPL_TYPE_INVALID;</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>     <span class="keyword">const</span> cpl_type     hightype</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>         = do_high ? cpl_image_get_type(im_high) : CPL_TYPE_INVALID;</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> </div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> </div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     cpl_ensure_code(<span class="keyword">self</span> != NULL,                CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     cpl_ensure_code(do_low || do_mid || do_high, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     cpl_ensure_code(th_low <= th_high,           CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> </div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>     <span class="keywordflow">if</span> (do_low) {</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>         cpl_ensure_code(cpl_image_get_size_x(im_low) == nx,</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>                         CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>         cpl_ensure_code(cpl_image_get_size_y(im_low) == ny,</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>                         CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>         lowdata = cpl_image_get_data(im_low);</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     }</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     <span class="keywordflow">if</span> (do_mid) {</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>         cpl_ensure_code(cpl_image_get_size_x(im_mid) == nx,</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>                         CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>         cpl_ensure_code(cpl_image_get_size_y(im_mid) == ny,</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>                         CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>         middata = cpl_image_get_data(im_mid);</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     }</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> </div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     <span class="keywordflow">if</span> (do_high) {</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>         cpl_ensure_code(cpl_image_get_size_x(im_high) == nx,</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>                         CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>         cpl_ensure_code(cpl_image_get_size_y(im_high) == ny,</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>                         CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>         highdata = cpl_image_get_data(im_high);</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>     }</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> </div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>     <span class="comment">/* From this point a failure would indicate a serious bug in CPL */</span></div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span> </div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>     <span class="keywordflow">for</span> (i = 0; i < npix; i++) {</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> value = irplib_data_get_double(selfdata, selftype, i);</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>         cpl_boolean  isalt_low   = do_low;</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>         cpl_boolean  isalt_mid   = do_mid;</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>         cpl_boolean  isalt_high  = do_high;</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>         cpl_boolean  setbad_low  = do_low;</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>         cpl_boolean  setbad_mid  = do_mid;</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>         cpl_boolean  setbad_high = do_high;</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>         <span class="keyword">const</span> <span class="keywordtype">void</span> * setdata     = NULL;</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>         <span class="keywordtype">double</span>       alt_mid     = 0.0; <span class="comment">/* Avoid (false) uninit warning */</span></div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span> </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>         <span class="keywordflow">if</span> (isleq_low ? value <= th_low : value < th_low) {</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>             <span class="keywordflow">if</span> (do_low) {</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>                 isalt_low = CPL_FALSE;</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>                 irplib_data_set_double(lowdata, lowtype, i, value);</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>                 setbad_low = hasbpm && selfbpm[i];</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>                 setdata = lowdata;</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>             }</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>             alt_mid = alt_low;</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (isgeq_high ? value >= th_high : value > th_high) {</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>             <span class="keywordflow">if</span> (do_high) {</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>                 isalt_high = CPL_FALSE;</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>                 irplib_data_set_double(highdata, hightype, i, value);</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>                 setbad_high = hasbpm && selfbpm[i];</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>                 setdata = highdata;</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>             }</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>             alt_mid = alt_high;</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (do_mid) {</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>             isalt_mid = CPL_FALSE;</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>             irplib_data_set_double(middata, midtype, i, value);</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>             setbad_mid = hasbpm && selfbpm[i];</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>             setdata = middata;</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>         }</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>         <span class="keywordflow">if</span> (isalt_low && lowdata != setdata) {</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>             irplib_data_set_double(lowdata, lowtype, i, alt_low);</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>             setbad_low = isbad_low;</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>         }</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>         <span class="keywordflow">if</span> (isalt_mid && middata != setdata) {</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>             irplib_data_set_double(middata, midtype, i, alt_mid);</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>             setbad_mid = isbad_mid;</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>         }</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>         <span class="keywordflow">if</span> (isalt_high && highdata != setdata) {</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>             irplib_data_set_double(highdata, hightype, i, alt_high);</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>             setbad_high = isbad_high;</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>         }</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> </div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>         <span class="keywordflow">if</span> (setbad_low) {</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>             <span class="keywordflow">if</span> (lowbpm == NULL) lowbpm</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>                 = cpl_mask_get_data(cpl_image_get_bpm(im_low));</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>             lowbpm[i] = CPL_BINARY_1;</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>         }</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>         <span class="keywordflow">if</span> (setbad_mid) {</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>             <span class="keywordflow">if</span> (midbpm == NULL) midbpm</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>                 = cpl_mask_get_data(cpl_image_get_bpm(im_mid));</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>             midbpm[i] = CPL_BINARY_1;</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>         }</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>         <span class="keywordflow">if</span> (setbad_high) {</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>             <span class="keywordflow">if</span> (highbpm == NULL) highbpm</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>                 = cpl_mask_get_data(cpl_image_get_bpm(im_high));</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>             highbpm[i] = CPL_BINARY_1;</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>         }</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>     }</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span> </div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span> </div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span> }</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span> </div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> </div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> </div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> cpl_error_code</div>
-<div class="line"><a name="l00860"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga3d1a791b5dc870770611c7dbf60d02df">  860</a></span> <a class="code" href="group__irplib__utils.html#ga3d1a791b5dc870770611c7dbf60d02df" title="Create a DFS product with one table from one or more (ASCII) file(s)">irplib_dfs_table_convert</a>(cpl_table               * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>                          cpl_frameset            * allframes,</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>                          <span class="keyword">const</span> cpl_frameset      * useframes,</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>                          <span class="keywordtype">int</span>                       maxlinelen,</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>                          <span class="keywordtype">char</span>                      commentchar,</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>                          <span class="keyword">const</span> <span class="keywordtype">char</span>              * product_name,</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>                          <span class="keyword">const</span> <span class="keywordtype">char</span>              * procatg,</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>                          <span class="keyword">const</span> cpl_parameterlist * parlist,</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>                          <span class="keyword">const</span> <span class="keywordtype">char</span>              * recipe_name,</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>                          <span class="keyword">const</span> cpl_propertylist  * mainlist,</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>                          <span class="keyword">const</span> cpl_propertylist  * extlist,</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>                          <span class="keyword">const</span> <span class="keywordtype">char</span>              * remregexp,</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>                          <span class="keyword">const</span> <span class="keywordtype">char</span>              * instrume,</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>                          <span class="keyword">const</span> <span class="keywordtype">char</span>              * pipe_id,</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>                          cpl_boolean (*table_set_row)</div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>                          (cpl_table *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>                           <span class="keyword">const</span> cpl_frame *,</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>                           <span class="keyword">const</span> cpl_parameterlist *),</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>                          cpl_error_code (*table_check)</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>                          (cpl_table *,</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>                           <span class="keyword">const</span> cpl_frameset *,</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>                           <span class="keyword">const</span> cpl_parameterlist *))</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> {</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>       * filename;</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     cpl_propertylist * applist    = NULL;</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>     cpl_errorstate     prestate   = cpl_errorstate_get();</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>     cpl_error_code     error;</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>     <span class="keywordtype">char</span>             * fallback_filename = NULL;</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span> </div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>     cpl_ensure_code(<span class="keyword">self</span>         != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>     cpl_ensure_code(allframes    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>     cpl_ensure_code(useframes    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>     cpl_ensure_code(procatg      != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>     cpl_ensure_code(parlist      != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>     cpl_ensure_code(recipe_name  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>     cpl_ensure_code(instrume     != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>     cpl_ensure_code(pipe_id      != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span> </div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>     cpl_ensure_code(!<a class="code" href="group__irplib__utils.html#ga59a68df1795523d4f7653875bd9fc01d" title="Set the rows of a table with data from one or more (ASCII) files.">irplib_table_read_from_frameset</a>(<span class="keyword">self</span>, useframes,</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>                                                      maxlinelen,</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>                                                      commentchar,</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>                                                      parlist,</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>                                                      table_set_row),</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>                     cpl_error_get_code());</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span> </div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>     <span class="keywordflow">if</span> (table_check != NULL && (table_check(<span class="keyword">self</span>, useframes, parlist) ||</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>                                 !cpl_errorstate_is_equal(prestate))) {</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>         <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, cpl_error_get_code(),</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>                                      <span class="stringliteral">"Consistency check of table failed"</span>);</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>     }</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span> </div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>     fallback_filename = cpl_sprintf(<span class="stringliteral">"%s"</span> CPL_DFS_FITS, recipe_name);</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>     filename = product_name != NULL ? product_name : fallback_filename;</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span> </div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     applist = mainlist == NULL</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>         ? cpl_propertylist_new() : cpl_propertylist_duplicate(mainlist);</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span> </div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>     error = cpl_propertylist_update_string(applist, <span class="stringliteral">"INSTRUME"</span>, instrume);</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span> </div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>     <span class="keywordflow">if</span> (!error)</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>         error = <a class="code" href="group__irplib__utils.html#ga62a91f8630af11164547c168660b2ade" title="Save a table as a DFS-compliant pipeline product.">irplib_dfs_save_table</a>(allframes, parlist, useframes, <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                                       extlist, recipe_name, procatg, applist,</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>                                       remregexp, pipe_id, filename);</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> </div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>     cpl_propertylist_delete(applist);</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>     cpl_free(fallback_filename);</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> </div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>     <span class="comment">/* Propagate the error, if any */</span></div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span> </div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span> </div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> }</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span> </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> </div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> </div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span> </div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span> cpl_error_code</div>
-<div class="line"><a name="l00989"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga59a68df1795523d4f7653875bd9fc01d">  989</a></span> <a class="code" href="group__irplib__utils.html#ga59a68df1795523d4f7653875bd9fc01d" title="Set the rows of a table with data from one or more (ASCII) files.">irplib_table_read_from_frameset</a>(cpl_table               * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>                                 <span class="keyword">const</span> cpl_frameset      * useframes,</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>                                 <span class="keywordtype">int</span>                       maxlinelen,</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>                                 <span class="keywordtype">char</span>                      commentchar,</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>                                 <span class="keyword">const</span> cpl_parameterlist * parlist,</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>                                 cpl_boolean (*table_set_row)</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>                                 (cpl_table *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>                                  <span class="keyword">const</span> cpl_frame *,</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>                                  <span class="keyword">const</span> cpl_parameterlist *))</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> {</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span> </div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>     <span class="keyword">const</span> cpl_frame  * rawframe;</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>     <span class="keywordtype">char</span>             * linebuffer = NULL;</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>     FILE             * stream     = NULL;</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>     <span class="keywordtype">int</span>                nfiles     = 0;</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>     <span class="keywordtype">int</span>                nrow       = cpl_table_get_nrow(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>     <span class="keywordtype">int</span>                irow       = 0;</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>     cpl_errorstate     prestate   = cpl_errorstate_get();</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>     cpl_ensure_code(<span class="keyword">self</span>         != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>     cpl_ensure_code(useframes    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>     cpl_ensure_code(maxlinelen > 0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>     cpl_ensure_code(parlist      != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>     cpl_ensure_code(table_set_row != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> </div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>     linebuffer = cpl_malloc(maxlinelen);</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> </div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>     <span class="keywordflow">for</span> (rawframe = cpl_frameset_get_first_const(useframes);</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>          rawframe != NULL;</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>          rawframe = cpl_frameset_get_next_const(useframes), nfiles++) {</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> </div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> * rawfile = cpl_frame_get_filename(rawframe);</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> * done; <span class="comment">/* Indicate when the reading is done */</span></div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>         <span class="keyword">const</span> <span class="keywordtype">int</span> irowpre = irow;</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>         <span class="keywordtype">int</span> iirow = 0;</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>         <span class="keywordtype">int</span> ierror;</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> </div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>         <span class="keywordflow">if</span> (rawfile == NULL) <span class="keywordflow">break</span>; <span class="comment">/* Should not happen... */</span></div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> </div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>         stream = fopen(rawfile, <span class="stringliteral">"r"</span>);</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> </div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>         <span class="keywordflow">if</span> (stream == NULL) {</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> <span class="preprocessor"></span>            cpl_error_set_message(cpl_func, CPL_ERROR_FILE_IO, <span class="stringliteral">"Could not "</span></div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>                                   <span class="stringliteral">"open %s for reading"</span>, rawfile);</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span> <span class="preprocessor"></span>            cpl_error_set_message(cpl_func, CPL_ERROR_FILE_IO, <span class="stringliteral">"Could not "</span></div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>                                   <span class="stringliteral">"open file for reading"</span>);</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span> <span class="preprocessor"></span>            <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>         }</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span> </div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>         <span class="keywordflow">for</span> (;(done = fgets(linebuffer, maxlinelen, stream)) != NULL; iirow++) {</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span> </div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>             <span class="keywordflow">if</span> (linebuffer[0] != commentchar) {</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>                 cpl_boolean didset;</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> <span class="preprocessor"></span>                <span class="keyword">const</span> <span class="keywordtype">int</span> prerow = irow;</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>                 <span class="keywordflow">if</span> (irow == nrow) {</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>                     nrow += nrow ? nrow : 1;</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>                     <span class="keywordflow">if</span> (cpl_table_set_size(<span class="keyword">self</span>, nrow)) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                 }</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> </div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>                 didset = table_set_row(<span class="keyword">self</span>, linebuffer, irow, rawframe,</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>                                        parlist);</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                 <span class="keywordflow">if</span> (didset) irow++;</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> </div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>                 <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(prestate)) {</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>                     <span class="keywordflow">if</span> (didset)</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> <span class="preprocessor"></span>                        cpl_error_set_message(cpl_func, cpl_error_get_code(),</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>                                               <span class="stringliteral">"Failed to set table row %d "</span></div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>                                               <span class="stringliteral">"using line %d from %d. file %s"</span>,</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>                                               1+prerow, iirow+1,</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>                                               nfiles+1, rawfile);</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>                         cpl_error_set_message(cpl_func, cpl_error_get_code(),</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>                                               <span class="stringliteral">"Failure with line %d from %d. "</span></div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>                                               <span class="stringliteral">"file %s"</span>, iirow+1,</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>                                               nfiles+1, rawfile);</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> <span class="preprocessor"></span>                        cpl_error_set_message(cpl_func, cpl_error_get_code(),</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>                                               <span class="stringliteral">"Failed to set table row"</span></div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>                                               <span class="stringliteral">"using catalogue line"</span>);</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>                         cpl_error_set_message(cpl_func, cpl_error_get_code(),</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>                                               <span class="stringliteral">"Failure with catalogue line"</span>);</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>                 }</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>             }</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>         }</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>         <span class="keywordflow">if</span> (done != NULL) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> </div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>         ierror = fclose(stream);</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>         stream = NULL;</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>         <span class="keywordflow">if</span> (ierror) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> </div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> </div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>         <span class="keywordflow">if</span> (irow == irowpre)</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>             cpl_msg_warning(cpl_func, <span class="stringliteral">"No usable lines in the %d. file: %s"</span>,</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>                             1+nfiles, rawfile);</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>     }</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> </div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>     cpl_free(linebuffer);</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>     <span class="keywordflow">if</span> (stream != NULL) fclose(stream);</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> </div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>     <span class="comment">/* Check for premature end */</span></div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>     cpl_ensure_code(rawframe == NULL, cpl_error_get_code());</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> </div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>     <span class="keywordflow">if</span> (irow == 0) {</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> <span class="preprocessor">#if defined CPL_HAVE_VA_ARGS && CPL_HAVE_VA_ARGS != 0</span></div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> <span class="preprocessor"></span>        <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>                                      <span class="stringliteral">"No usable lines in the %d input "</span></div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>                                      <span class="stringliteral">"frame(s)"</span>, nfiles);</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span> <span class="preprocessor"></span>        <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>                                      <span class="stringliteral">"No usable lines in the input frame(s)"</span>);</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> <span class="preprocessor"></span>    }</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> </div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>     <span class="comment">/* Resize the table to the actual number of rows set */</span></div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>     cpl_ensure_code(!cpl_table_set_size(<span class="keyword">self</span>, irow), cpl_error_get_code());</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> </div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> }</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> </div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> </div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> </div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01134"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e"> 1134</a></span> <span class="keywordtype">void</span> <a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e" title="Reset IRPLIB state.">irplib_reset</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> {</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> }</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> </div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01147"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#gae13f0d6b24ade506a99ac9c4bb09efde"> 1147</a></span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__utils.html#gae13f0d6b24ade506a99ac9c4bb09efde" title="Comparison function to identify different input frames.">irplib_compare_tags</a>(</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>         cpl_frame   *   frame1,</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>         cpl_frame   *   frame2)</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> {</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>            *   v1 ;</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>            *   v2 ;</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span> </div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>     <span class="keywordflow">if</span> (frame1==NULL || frame2==NULL) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span> </div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     <span class="comment">/* Get the tags */</span></div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>     <span class="keywordflow">if</span> ((v1 = cpl_frame_get_tag(frame1)) == NULL) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>     <span class="keywordflow">if</span> ((v2 = cpl_frame_get_tag(frame2)) == NULL) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> </div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>     <span class="comment">/* Compare the tags */</span></div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>     <span class="keywordflow">if</span> (strcmp(v1, v2)) <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> 1 ;</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span> }</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> </div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01183"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga9fe4dca85dee68061114e26fdc72a134"> 1183</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__irplib__utils.html#ga9fe4dca85dee68061114e26fdc72a134" title="Find the filename with the given tag in a frame set.">irplib_frameset_find_file</a>(<span class="keyword">const</span> cpl_frameset * <span class="keyword">self [...]
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>                                       <span class="keyword">const</span> <span class="keywordtype">char</span> * tag)</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> {</div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>     <span class="keyword">const</span> cpl_frame * <a class="code" href="structframe.html">frame</a> = cpl_frameset_find_const(<span class="keyword">self</span>, tag);</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> </div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span> </div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>     cpl_ensure(!cpl_error_get_code(), cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> </div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>     <span class="keywordflow">if</span> (frame == NULL) <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> </div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>     <span class="keywordflow">if</span> (cpl_frameset_find_const(<span class="keyword">self</span>, NULL))</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>         cpl_msg_warning(cpl_func,</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>             <span class="stringliteral">"Frameset has more than one file with tag: %s"</span>,</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>                         tag);</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span> </div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>     <span class="keywordflow">return</span> cpl_frame_get_filename(frame);</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> </div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> }</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> </div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> <span class="keyword">const</span></div>
-<div class="line"><a name="l01214"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#ga5b20a00f315410b49b1db1dd2417fe68"> 1214</a></span> cpl_frame * <a class="code" href="group__irplib__utils.html#ga5b20a00f315410b49b1db1dd2417fe68" title="Find the first frame belonging to the given group.">irplib_frameset_get_first_from_group</a>(<span class="keyword">const</span> cpl_frameset * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>                                                  cpl_frame_group      group)</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> {</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>     <span class="keyword">const</span> cpl_frame * <a class="code" href="structframe.html">frame</a>;</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span> </div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>     cpl_ensure(<span class="keyword">self</span> != NULL, CPL_ERROR_NULL_INPUT, NULL);</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span> </div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>     <span class="keywordflow">for</span> (frame = cpl_frameset_get_first_const(<span class="keyword">self</span>); frame != NULL ;</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>          frame = cpl_frameset_get_next_const(<span class="keyword">self</span>)) {</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>         <span class="keywordflow">if</span> (cpl_frame_get_group(frame) == group) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>     }</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>     <span class="keywordflow">return</span> frame;</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span> }</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> </div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01248"></a><span class="lineno"><a class="code" href="group__irplib__utils.html#gac568c70a57ef8610f5fedc9f1943a3a1"> 1248</a></span> cpl_error_code <a class="code" href="group__irplib__utils.html#gac568c70a57ef8610f5fedc9f1943a3a1" title="Find the aperture(s) with the greatest flux.">irplib_apertures_find_max_flux</a>(<span class="keyword">const</span> cpl_apertures * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>                                               <span class="keywordtype">int</span> * ind, <span class="keywordtype">int</span> nfind)</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span> {</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>    nsize = cpl_apertures_get_size(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>     <span class="keywordtype">int</span>          ifind;</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> </div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span> </div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>     cpl_ensure_code(nsize > 0,      cpl_error_get_code());</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>     cpl_ensure_code(ind,          CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>     cpl_ensure_code(nfind > 0,      CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>     cpl_ensure_code(nfind <= nsize, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span> </div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>     <span class="keywordflow">for</span> (ifind=0; ifind < nfind; ifind++) {</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>         <span class="keywordtype">double</span> maxflux = -1;</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>         <span class="keywordtype">int</span> maxind = -1;</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>         <span class="keywordflow">for</span> (i=1; i <= nsize; i++) {</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>             <span class="keywordtype">int</span> k;</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span> </div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>             <span class="comment">/* The flux has to be the highest among those not already found */</span></div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>             <span class="keywordflow">for</span> (k=0; k < ifind; k++) <span class="keywordflow">if</span> (ind[k] == i) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> </div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>             <span class="keywordflow">if</span> (k == ifind) {</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>                 <span class="comment">/* i has not been inserted into ind */</span></div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> flux = cpl_apertures_get_flux(<span class="keyword">self</span>, i);</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> </div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>                 <span class="keywordflow">if</span> (maxind < 0 || flux > maxflux) {</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>                     maxind = i;</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>                     maxflux = flux;</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>                 }</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>             }</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>         }</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>         ind[ifind] = maxind;</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>     }</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> </div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> </div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span> }</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span> </div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span> <span class="keyword">inline</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span> <span class="keywordtype">double</span> irplib_data_get_double(<span class="keyword">const</span> <span class="keywordtype">void</span> * <span class="keyword">self</span>, cpl_type type, <span class="keywordtype">int</span> i)</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span> {</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span> </div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>     <span class="keywordtype">double</span> value;</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span> </div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span> </div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>     <span class="keywordflow">switch</span> (type) {</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>         {</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>             <span class="keyword">const</span> <span class="keywordtype">float</span> * pself = (<span class="keyword">const</span> <span class="keywordtype">float</span>*)<span class="keyword">self</span>;</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>             value = (double)pself[i];</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>         }</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>         {</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>             <span class="keyword">const</span> <span class="keywordtype">int</span> * pself = (<span class="keyword">const</span> <span class="keywordtype">int</span>*)<span class="keyword">self</span>;</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>             value = (double)pself[i];</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>         }</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>     <span class="keywordflow">default</span>: <span class="comment">/* case CPL_TYPE_DOUBLE */</span></div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>         {</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> * pself = (<span class="keyword">const</span> <span class="keywordtype">double</span>*)<span class="keyword">self</span>;</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>             value = pself[i];</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>         }</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>     }</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span> </div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>     <span class="keywordflow">return</span> value;</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span> </div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span> }</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span> </div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span> </div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span> <span class="keyword">inline</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> <span class="keywordtype">void</span> irplib_data_set_double(<span class="keywordtype">void</span> * <span class="keyword">self</span>, cpl_type type, <span class="keywordtype">int</span> i, <span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span> {</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span> </div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>     <span class="keywordflow">switch</span> (type) {</div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>         {</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>             <span class="keywordtype">float</span> * pself = (<span class="keywordtype">float</span>*)<span class="keyword">self</span>;</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>             pself[i] = (float)value;</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>         }</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>         {</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>             <span class="keywordtype">int</span> * pself = (<span class="keywordtype">int</span>*)<span class="keyword">self</span>;</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>             pself[i] = (int)value;</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>         }</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>     <span class="keywordflow">default</span>: <span class="comment">/* case CPL_TYPE_DOUBLE */</span></div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>         {</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>             <span class="keywordtype">double</span> * pself = (<span class="keywordtype">double</span>*)<span class="keyword">self</span>;</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>             pself[i] = value;</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>         }</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>     }</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span> }</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span> </div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> </div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span> </div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span> </div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span> </div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span> <span class="keywordtype">void</span> irplib_errorstate_dump_one_level(<span class="keywordtype">void</span> (*messenger)(<span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>                                                         <span class="keyword">const</span> <span class="keywordtype">char</span> *, ...),</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>                                       <span class="keywordtype">unsigned</span> <span class="keyword">self</span>, <span class="keywordtype">unsigned</span> first,</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>                                       <span class="keywordtype">unsigned</span> last)</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span> {</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span> </div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>     <span class="keyword">const</span> cpl_boolean is_reverse = first > last ? CPL_TRUE : CPL_FALSE;</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>     <span class="keyword">const</span> <span class="keywordtype">unsigned</span>    newest     = is_reverse ? first : last;</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>     <span class="keyword">const</span> <span class="keywordtype">unsigned</span>    oldest     = is_reverse ? last : first;</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>      * revmsg     = is_reverse ? <span class="stringliteral">" in reverse order"</span> : <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span> </div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span> </div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span> <span class="comment">    cx_assert( messenger != NULL );</span></div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span> <span class="comment">    cx_assert( oldest <= self );</span></div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> <span class="comment">    cx_assert( newest >= self );</span></div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span> </div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>     <span class="keywordflow">if</span> (newest == 0) {</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>         messenger(cpl_func, <span class="stringliteral">"No error(s) to dump"</span>);</div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>         <span class="comment">/* cx_assert( oldest == 0); */</span></div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span> <span class="comment">          cx_assert( oldest > 0);</span></div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span> <span class="comment">          cx_assert( newest >= oldest);</span></div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>         <span class="keywordflow">if</span> (<span class="keyword">self</span> == first) {</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>             <span class="keywordflow">if</span> (oldest == 1) {</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>                 messenger(cpl_func, <span class="stringliteral">"Dumping all %u error(s)%s:"</span>, newest,</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>                           revmsg);</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>                 messenger(cpl_func, <span class="stringliteral">"Dumping the %u most recent error(s) "</span></div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>                           <span class="stringliteral">"out of a total of %u errors%s:"</span>,</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>                           newest - oldest + 1, newest, revmsg);</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>             }</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>             cpl_msg_indent_more();</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>         }</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span> </div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>         messenger(cpl_func, <span class="stringliteral">"[%u/%u] '%s' (%u) at %s"</span>, <span class="keyword">self</span>, newest,</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>                   cpl_error_get_message(), cpl_error_get_code(),</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>                   cpl_error_get_where());</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span> </div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>         <span class="keywordflow">if</span> (<span class="keyword">self</span> == last) cpl_msg_indent_less();</div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>     }</div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> }</div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> </div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span> cpl_polynomial * irplib_polynomial_fit_1d_create_chiq(</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>         <span class="keyword">const</span> cpl_vector    *   x_pos,</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>         <span class="keyword">const</span> cpl_vector    *   values,</div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>         <span class="keywordtype">int</span>                     degree,</div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>         <span class="keywordtype">double</span>              *   rechisq</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>         )</div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>  {</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>     <span class="keywordflow">return</span> irplib_polynomial_fit_1d_create_common(x_pos, values, degree, NULL, rechisq);</div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>  }</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span> cpl_polynomial * irplib_polynomial_fit_1d_create(</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>         <span class="keyword">const</span> cpl_vector    *   x_pos,</div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>         <span class="keyword">const</span> cpl_vector    *   values,</div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>         <span class="keywordtype">int</span>                     degree,</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>         <span class="keywordtype">double</span>              *   mse</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>         )</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span> {</div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span> </div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>     <span class="keywordflow">return</span> irplib_polynomial_fit_1d_create_common(x_pos, values, degree, mse, NULL);</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span> }</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span> <span class="keyword">static</span> cpl_polynomial * irplib_polynomial_fit_1d_create_common(</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>         <span class="keyword">const</span> cpl_vector    *   x_pos,</div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>         <span class="keyword">const</span> cpl_vector    *   values,</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>         <span class="keywordtype">int</span>                     degree,</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>         <span class="keywordtype">double</span>              *   mse,</div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>         <span class="keywordtype">double</span>              *  rechisq</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>         )</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span> {</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>     cpl_polynomial * fit1d = NULL;</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>     cpl_size loc_degree = (cpl_size)degree ;</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>     <span class="keywordtype">int</span> x_size = 0;</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>     fit1d = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>     x_size = cpl_vector_get_size(x_pos);    </div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>     <span class="keywordflow">if</span>(fit1d != NULL && x_size > 1)</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>     {</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>         cpl_matrix     * samppos = NULL;</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>         cpl_vector     * fitresidual = NULL;</div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>         cpl_ensure(!cpl_error_get_code(), cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>         samppos = cpl_matrix_wrap(1, x_size,</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>                                   (<span class="keywordtype">double</span>*)cpl_vector_get_data_const(x_pos));</div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>         cpl_ensure(!cpl_error_get_code(), cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>         fitresidual = cpl_vector_new(x_size);</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>         cpl_ensure(!cpl_error_get_code(), cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>         cpl_polynomial_fit(fit1d, samppos, NULL, values, NULL,</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>                            CPL_FALSE, NULL, &loc_degree);</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>         cpl_ensure(!cpl_error_get_code(), cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>         cpl_vector_fill_polynomial_fit_residual(fitresidual, values, NULL,</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>                                                 fit1d, samppos, rechisq);</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>         cpl_ensure(!cpl_error_get_code(), cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>         <span class="keywordflow">if</span> (mse)</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>         {</div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>             *mse = cpl_vector_product(fitresidual, fitresidual)</div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>                 / cpl_vector_get_size(fitresidual);</div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>         }</div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>         cpl_matrix_unwrap(samppos);</div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>         cpl_vector_delete(fitresidual);</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>     }</div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>     <span class="keywordflow">return</span> fit1d;</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> }</div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span> </div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span> <span class="keyword">static</span> <span class="keywordtype">void</span> quicksort(<span class="keywordtype">int</span>* iindex, <span class="keywordtype">double</span>* exptime, <span class="keywordtype">int</span> left, <span class="keywordtype">int</span> right)</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span> {</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>     <span class="keywordtype">int</span> i = left;</div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>     <span class="keywordtype">int</span> j = right;</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>     <span class="keywordtype">int</span> pivot = (i + j) / 2;</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>     <span class="keywordtype">double</span> index_value = exptime[pivot];</div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>     <span class="keywordflow">do</span></div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>     {</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>         <span class="keywordflow">while</span>(exptime[i] < index_value) i++;</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>         <span class="keywordflow">while</span>(exptime[j] > index_value) j--;</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>         <span class="keywordflow">if</span> (i <= j)</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>         {</div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>             <span class="keywordflow">if</span>(i < j)</div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>             {</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>                 <span class="keywordtype">int</span> tmp = iindex[i];</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>                 <span class="keywordtype">double</span> dtmp = exptime[i];</div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>                 iindex[i]=iindex[j];</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>                 iindex[j]=tmp;</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>                 exptime[i] = exptime[j];</div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>                 exptime[j] = dtmp;</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>             }</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>             i++;</div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>             j--;</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>         }</div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>     } <span class="keywordflow">while</span> (i <= j);</div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span> </div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>     <span class="keywordflow">if</span> (i < right)</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>     {</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>         quicksort(iindex, exptime, i, right);</div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>     }</div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>     <span class="keywordflow">if</span> (left < j)</div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>     {</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>         quicksort(iindex, exptime,left, j);</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>     }</div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span> }</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span> cpl_error_code irplib_frameset_sort(<span class="keyword">const</span> cpl_frameset *  <span class="keyword">self</span>, <span class="keywordtype">int</span>* iindex, <span class="keywordtype">double</span>* exptime)</div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span> {</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>     <span class="keywordtype">int</span> sz = 0;</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>     <span class="keywordtype">int</span> i = 0;</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>     <span class="keyword">const</span> cpl_frame* tmp_frame = 0;</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>     cpl_error_code error = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>     sz = cpl_frameset_get_size(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span> </div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>     <span class="comment">/* 1. get an array of frames */</span></div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>     tmp_frame = cpl_frameset_get_first_const(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>     <span class="keywordflow">while</span>(tmp_frame)</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>     {</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>         exptime[i] = frame_get_exptime(tmp_frame);</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>         iindex[i] = i;</div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>         tmp_frame = cpl_frameset_get_next_const(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>         i++;</div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>     }</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>     <span class="comment">/* 2.sort */</span></div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>     quicksort(iindex, exptime, 0, sz - 1);</div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span> </div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>     <span class="keywordflow">return</span> error;</div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span> }</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span> </div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span> <span class="keyword">static</span> <span class="keywordtype">double</span> frame_get_exptime(<span class="keyword">const</span> cpl_frame * pframe)</div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span> {</div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>     <span class="keywordtype">double</span> dval = 0;</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>     cpl_propertylist * plist =</div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>         cpl_propertylist_load_regexp(cpl_frame_get_filename(pframe), 0,</div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>                                      <span class="stringliteral">"EXPTIME"</span>, CPL_FALSE);</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>     <span class="keywordflow">if</span>(plist) {</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>         dval = cpl_propertylist_get_double(plist, <span class="stringliteral">"EXPTIME"</span>);</div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>         <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>             cpl_msg_error(cpl_func, <span class="stringliteral">"error during reading EXPTIME key from "</span></div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>                           <span class="stringliteral">"the frame [%s]"</span>, cpl_frame_get_filename(pframe));</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>         }</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>     }</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>     <span class="comment">/* Free and return */</span></div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>     cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>     <span class="keywordflow">return</span> dval;</div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span> }</div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span> </div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span> </div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span> <span class="keywordtype">void</span> * irplib_aligned_malloc(<span class="keywordtype">size_t</span> alignment, <span class="keywordtype">size_t</span> size)</div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span> {</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span> <span class="preprocessor">#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L</span></div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span> <span class="preprocessor"></span>    <span class="keywordflow">return</span> aligned_alloc(alignment, size);</div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span> <span class="preprocessor">#elif defined HAVE_POSIX_MEMALIGN && defined HAVE_DECL_POSIX_MEMALIGN</span></div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span> <span class="preprocessor"></span>    <span class="keywordtype">void</span> *ptr;</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>     <span class="keywordflow">if</span> (alignment == 1)</div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>         <span class="keywordflow">return</span> malloc (size);</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>     <span class="keywordflow">if</span> (alignment == 2 || (<span class="keyword">sizeof</span> (<span class="keywordtype">void</span> *) == 8 && alignment == 4))</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>         alignment = <span class="keyword">sizeof</span> (<span class="keywordtype">void</span> *);</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>     <span class="keywordflow">if</span> (posix_memalign (&ptr, alignment, size) == 0)</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>         <span class="keywordflow">return</span> ptr;</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span> <span class="preprocessor"></span>    <span class="comment">/* copied from gmm_malloc.h in gcc-4.8 */</span></div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>     <span class="keywordtype">void</span> * malloc_ptr;</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>     <span class="keywordtype">void</span> * aligned_ptr;</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span> </div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>     <span class="comment">/* Error if align is not a power of two.  */</span></div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>     <span class="keywordflow">if</span> (alignment & (alignment - 1)) {</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>         errno = EINVAL;</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>     }</div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span> </div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>     <span class="keywordflow">if</span> (size == 0)</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span> </div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>     <span class="comment">/* Assume malloc'd pointer is aligned at least to sizeof (void*).</span></div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span> <span class="comment">       If necessary, add another sizeof (void*) to store the value</span></div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span> <span class="comment">       returned by malloc. Effectively this enforces a minimum alignment</span></div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span> <span class="comment">       of sizeof double. */</span></div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>     <span class="keywordflow">if</span> (alignment < 2 * <span class="keyword">sizeof</span> (<span class="keywordtype">void</span> *))</div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>         alignment = 2 * <span class="keyword">sizeof</span> (<span class="keywordtype">void</span> *);</div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span> </div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>     malloc_ptr = malloc (size + alignment);</div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>     <span class="keywordflow">if</span> (!malloc_ptr)</div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span> </div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>     <span class="comment">/* Align  We have at least sizeof (void *) space below malloc'd ptr. */</span></div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>     aligned_ptr = (<span class="keywordtype">void</span> *) (((<span class="keywordtype">size_t</span>) malloc_ptr + alignment)</div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>                             & ~((size_t) (alignment) - 1));</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span> </div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>     <span class="comment">/* Store the original pointer just before p.  */</span></div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>     *(((<span class="keywordtype">void</span> **) aligned_ptr) - 1) = malloc_ptr;</div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span> </div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>     <span class="keywordflow">return</span> aligned_ptr;</div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span> <span class="preprocessor"></span>}</div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span> </div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span> </div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span> <span class="keywordtype">void</span> * irplib_aligned_calloc(<span class="keywordtype">size_t</span> alignment, <span class="keywordtype">size_t</span> nelem, <span class="keywordtype">size_t</span> nbytes)</div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span> {</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>     <span class="keywordtype">void</span> * buffer = irplib_aligned_malloc(alignment, nelem * nbytes);</div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>     <span class="keywordflow">if</span> (buffer == NULL)</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>     <span class="comment">/* cast to aligned pointer helps compilers to emit better (builtin) code */</span></div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>     memset((<span class="keywordtype">size_t</span> *)buffer, 0, nelem * nbytes);</div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>     <span class="keywordflow">return</span> buffer;</div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span> }</div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span> </div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span> </div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span> <span class="keywordtype">void</span> irplib_aligned_free (<span class="keywordtype">void</span> * aligned_ptr)</div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span> {</div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span> <span class="preprocessor">#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L</span></div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span> <span class="preprocessor"></span>  free(aligned_ptr);</div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span> <span class="preprocessor">#elif defined HAVE_POSIX_MEMALIGN && defined HAVE_DECL_POSIX_MEMALIGN</span></div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span> <span class="preprocessor"></span>  free(aligned_ptr);</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span> <span class="preprocessor"></span>  <span class="keywordflow">if</span> (aligned_ptr)</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>       free (*(((<span class="keywordtype">void</span> **) aligned_ptr) - 1));</div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span> <span class="preprocessor"></span>}</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__utils_8h_source.html b/html/irplib__utils_8h_source.html
deleted file mode 100644
index 71640ee..0000000
--- a/html/irplib__utils_8h_source.html
+++ /dev/null
@@ -1,561 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_utils.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_utils.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_utils.h,v 1.60 2013-08-21 14:55:14 cgarcia Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: cgarcia $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-08-21 14:55:14 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.60 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Revision 1.59  2013/03/15 09:06:06  jtaylor</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> * add irplib_aligned_{[mc]alloc,free}</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * allow portable allocation of aligned memory for vectorization</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.58  2013/03/15 09:05:28  jtaylor</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * move isnan and isinf to header so it is inlineable and use gcc builtin for better performance</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.57  2013/02/27 16:02:02  jtaylor</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * add diagnostic pragma macros</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.56  2012/08/06 06:14:18  llundin</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * irplib_errorstate_warning(): Replaced by cpl_errorstate_dump_one_warning() from CPL 6.X</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.55  2011/06/01 06:47:56  llundin</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * skip_if_lt(): Fix previous edits switch of A and B in error message</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.54  2011/05/26 08:08:56  llundin</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * skip_if_lt(): Support printf-style error message, name-space protect temporary variables</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.53  2011/05/09 07:51:18  llundin</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * irplib_dfs_save_image_(): Modified from cpl_dfs_save_image(). irplib_dfs_save_image(): Use irplib_dfs_save_image_()</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.52  2010/03/23 07:57:59  kmirny</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * DFS08552, Documentation for irplib_frameset_sort</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.51  2009/12/16 14:59:30  cgarcia</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Avoid name clash with index function</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.50  2009/08/17 15:10:16  kmirny</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> * DFS07454 DFS07437</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#ifndef IRPLIB_UTILS_H</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_UTILS_H</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor">#include <stdarg.h></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">                                   Define</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor">#define IRPLIB_XSTRINGIFY(TOSTRING) #TOSTRING</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_STRINGIFY(TOSTRING) IRPLIB_XSTRINGIFY(TOSTRING)</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor">#if !defined __GNUC__ && !defined __inline__</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="preprocessor"></span><span class="preprocessor">#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor"></span><span class="preprocessor">#define __inline__ inline</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor"></span><span class="preprocessor">#define __inline__</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor">#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_DIAG_PRAGMA_PUSH_IGN(x)        \</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="preprocessor">    _Pragma("GCC diagnostic push") \</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="preprocessor">    _Pragma(IRPLIB_STRINGIFY(GCC diagnostic ignored #x))</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_DIAG_PRAGMA_PUSH_ERR(x)        \</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor">    _Pragma("GCC diagnostic push") \</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="preprocessor">    _Pragma(IRPLIB_STRINGIFY(GCC diagnostic error #x))</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_DIAG_PRAGMA_POP \</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor">    _Pragma("GCC diagnostic pop")</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_DIAG_PRAGMA_PUSH_IGN(x)</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_DIAG_PRAGMA_PUSH_ERR(x)</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_DIAG_PRAGMA_POP</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment">/* FIXME: Remove when no longer used by any irplib-based pipelines */</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">/* Useful for debugging */</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor">#define irplib_trace()  do if (cpl_error_get_code()) { \</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor">    cpl_msg_debug(cpl_func, __FILE__ " at line %d: ERROR '%s' at %s", \</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor">         __LINE__, cpl_error_get_message(), cpl_error_get_where()); \</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor">  } else { \</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="preprocessor">    cpl_msg_debug(cpl_func, __FILE__ " at line %d: OK", __LINE__); \</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="preprocessor">  } while (0)</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="preprocessor">#define irplib_error_recover(ESTATE, ...)                       \</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="preprocessor">    do if (!cpl_errorstate_is_equal(ESTATE)) {                  \</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="preprocessor">        cpl_msg_warning(cpl_func, __VA_ARGS__);                 \</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="preprocessor">        cpl_msg_indent_more();                                  \</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="preprocessor">        cpl_errorstate_dump(ESTATE, CPL_FALSE,                  \</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="preprocessor">                            cpl_errorstate_dump_one_warning);   \</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="preprocessor">        cpl_msg_indent_less();                                  \</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="preprocessor">        cpl_errorstate_set(ESTATE);                             \</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="preprocessor">    } while (0)</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment">  @brief Declare a function suitable for use with irplib_dfs_table_convert()</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment">  @param  table_set_row    The name of the function to declare</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment">  @see irplib_dfs_table_convert(), irplib_table_read_from_frameset()</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"></span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="preprocessor">#define IRPLIB_UTIL_SET_ROW(table_set_row)                      \</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="preprocessor">    cpl_boolean table_set_row(cpl_table *,                      \</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="preprocessor">                              const char *,                     \</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="preprocessor">                              int,                              \</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="preprocessor">                              const cpl_frame *,                \</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="preprocessor">                              const cpl_parameterlist *)</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment">  @brief Declare a function suitable for use with irplib_dfs_table_convert()</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment">  @param  table_check    The name of the function to declare</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment">  @see irplib_dfs_table_convert()</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"></span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="preprocessor">#define IRPLIB_UTIL_CHECK(table_check)                          \</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="preprocessor">    cpl_error_code table_check(cpl_table *,                     \</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="preprocessor">                               const cpl_frameset *,            \</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="preprocessor">                               const cpl_parameterlist *)</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment">  @brief   Conditional skip to the (unqiue) return point of the function</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment">  @param   CONDITION    The condition to check</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment">  @see cpl_error_ensure()</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"></span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment">  skip_if() takes one argument, which is a logical expression.</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment">  If the logical expression is false skip_if() takes no action and</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment">  program execution continues.</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment">  If the logical expression is true this indicates an error. In this case</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment">  skip_if() will set the location of the error to the point where it</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment">  was invoked in the recipe code (unless the error location is already in the</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment">  recipe code). If no error code had been set, then skip_if() will set one.</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment">  Finally, skip_if() causes program execution to skip to the macro 'end_skip'.</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment">  The macro end_skip is located towards the end of the function, after</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment">  which all resource deallocation and the function return is located.</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"></span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment">  The use of skip_if() assumes the following coding practice:</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment">  1) Pointers used for dynamically allocated memory that they "own" shall always</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment">     point to either NULL or to allocated memory (including CPL-objects).</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment">  2) Such pointers may not be reused to point to memory whose deallocation</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment">     requires calls to different functions.</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment">  3) Pointers of type FILE should be set NULL when not pointing to an open</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">     stream and their closing calls (fclose(), freopen(), etc.) following the</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment">     'end_skip' should be guarded against such NULL pointers.</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"></span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">  Error checking with skip_if() is encouraged due to the following advantages:</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment">  1) It ensures that a CPL-error code is set.</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment">  2) It ensures that the location of the error in the _recipe_ code is noted.</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment">  3) The error checking may be confined to a single concise line.</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment">  4) It is not necessary to replicate memory deallocation for every error</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment">     condition.</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment">  5) If more extensive error reporting/handling is required it is not precluded</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment">     by the use of skip_if().</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">  6) It allows for a single point of function return.</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">  7) It allows for optional, uniformly formatted debugging/tracing information</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment">     at each macro invocation.</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment"></span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment">  The implementation of skip_if() uses a goto/label construction.</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment">  According to Kerningham & Ritchie, The C Programming Language, 2nd edition,</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment">  Section 3.8:</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment">  "This organization is handy if the error-handling code is non-trivial,</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment">  and if errors can occur in several places."</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment"></span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment">  The use of goto for any other purpose should be avoided.</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"></span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="preprocessor">#define skip_if(CONDITION)                                                     \</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="preprocessor">    do {                                                                       \</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="preprocessor">        cpl_error_ensure(!cpl_error_get_code(), cpl_error_get_code(),          \</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="preprocessor">                         goto cleanup, "Propagating a pre-existing error");    \</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="preprocessor">        cpl_error_ensure(!(CONDITION), cpl_error_get_code(),                   \</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="preprocessor">                         goto cleanup, "Propagating error");\</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="preprocessor">    } while (0)</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment">  @brief   Skip if A < B</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment">  @param   A   The 1st double to compare</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment">  @param   B   The 2nd double to compare</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment">  @param   MSG A printf-style error message, 1st arg should be a string literal</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">  @see skip_if()</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment">  @note A and B are evaluated exactly once</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment"></span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment">  If no CPL error is set, sets CPL_ERROR_DATA_NOT_FOUND on failure</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="preprocessor">#define skip_if_lt(A, B, ...)                                                  \</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="preprocessor">    do {                                                                       \</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="preprocessor">        </span><span class="comment">/* Name-space protected one-time only evaluation */</span><span class="preprocessor">                    \</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="preprocessor">        const double irplib_utils_a = (double)(A);                             \</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="preprocessor">        const double irplib_utils_b = (double)(B);                             \</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="preprocessor">        cpl_error_ensure(!cpl_error_get_code(), cpl_error_get_code(),          \</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="preprocessor">                         goto cleanup, "Propagating a pre-existing error");    \</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="preprocessor">        if (irplib_utils_a < irplib_utils_b) {                                 \</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="preprocessor">            char * irplib_utils_msg = cpl_sprintf(__VA_ARGS__);                \</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="preprocessor">            (void)cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,    \</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="preprocessor">                                        "Need at least %g (not %g) %s",        \</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="preprocessor">                                        irplib_utils_b, irplib_utils_a,        \</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="preprocessor">                                        irplib_utils_msg);                     \</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="preprocessor">            cpl_free(irplib_utils_msg);                                        \</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="preprocessor">            goto cleanup;                                                      \</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="preprocessor">        }                                                                      \</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="preprocessor">    } while (0)</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment">  @brief   Conditional skip on coding bug</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment">  @param   CONDITION    The condition to check</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment">  @see skip_if()</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment">  @note unlike assert() this check cannot be disabled</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="preprocessor">#define bug_if(CONDITION)                                                      \</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="preprocessor">    do {                                                                       \</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="preprocessor">        cpl_error_ensure(!cpl_error_get_code(), cpl_error_get_code(),          \</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="preprocessor">                         goto cleanup, "Propagating an unexpected error, "     \</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="preprocessor">                         "please report to " PACKAGE_BUGREPORT);               \</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="preprocessor">        cpl_error_ensure(!(CONDITION), CPL_ERROR_UNSPECIFIED,                  \</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="preprocessor">                         goto cleanup, "Internal error, please report to "     \</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="preprocessor">                         PACKAGE_BUGREPORT);                                   \</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="preprocessor">    } while (0)</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment">  @brief   Conditional skip with error creation</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment">  @param   CONDITION    The condition to check</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment">  @param   ERROR        The error code to set</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment">  @param   MSG          A printf-style error message. As a matter of</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment">                        user-friendliness the message should mention any</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment">                        value that caused the @em CONDITION to fail.</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment">  @see skip_if()</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment">  @note unlike assert() this check cannot be disabled</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="preprocessor">#define error_if(CONDITION, ERROR, ...)                                 \</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="preprocessor">    cpl_error_ensure(cpl_error_get_code() == CPL_ERROR_NONE &&          \</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="preprocessor">                     !(CONDITION), ERROR, goto cleanup,  __VA_ARGS__)</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment">  @brief   Propagate a preexisting error, if any</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment">  @param   MSG          A printf-style error message.</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment">  @see skip_if()</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="preprocessor">#define any_if(...)                                                     \</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="preprocessor">    cpl_error_ensure(!cpl_error_get_code(), cpl_error_get_code(),       \</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="preprocessor">                     goto cleanup,  __VA_ARGS__)</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment">  @brief   Define the single point of resource deallocation and return</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment">  @see skip_if()</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment">  @note end_skip should be used exactly once in functions that use skip_if() etc</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="preprocessor">#define end_skip \</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="preprocessor">    do {                                                                     \</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="preprocessor">        cleanup:                                                             \</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="preprocessor">        if (cpl_error_get_code())                                            \</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="preprocessor">            cpl_msg_debug(cpl_func, "Cleanup in " __FILE__ " line %u with "  \</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="preprocessor">                          "error '%s' at %s", __LINE__,                      \</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="preprocessor">                          cpl_error_get_message(), cpl_error_get_where());   \</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="preprocessor">        else                                                                 \</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="preprocessor">            cpl_msg_debug(cpl_func, "Cleanup in " __FILE__ " line %u",       \</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="preprocessor">                          __LINE__);                                         \</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="preprocessor">    } while (0)</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="preprocessor">#define irplib_ensure(CONDITION, ec, ...)                                      \</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="preprocessor">    cpl_error_ensure(CONDITION, ec, goto cleanup,  __VA_ARGS__)</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> <span class="preprocessor">#define irplib_check(COMMAND, ...)                                             \</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="preprocessor">  do {                                                                         \</span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="preprocessor">    cpl_errorstate irplib_check_prestate = cpl_errorstate_get();               \</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <span class="preprocessor">    skip_if(0);                                                                \</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="preprocessor">    COMMAND;                                                                   \</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="preprocessor">        irplib_trace(); \</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="preprocessor">    irplib_ensure(cpl_errorstate_is_equal(irplib_check_prestate),              \</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <span class="preprocessor">                  cpl_error_get_code(), __VA_ARGS__);                          \</span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> <span class="preprocessor">        irplib_trace(); \</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="preprocessor">  } while (0)</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="comment">                                   Function prototypes</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga346842d722834a2e6221ff2d86314b7e" title="Save an image as a DFS-compliant pipeline product.">irplib_dfs_save_image</a>(cpl_frameset            *,</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>                                      <span class="keyword">const</span> cpl_parameterlist *,</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                                      <span class="keyword">const</span> cpl_frameset      *,</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>                                      <span class="keyword">const</span> cpl_image         *,</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>                                      cpl_type_bpp             ,</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>                                      <span class="keyword">const</span> cpl_propertylist  *,</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              *);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga4dc12f321e7aeb5e67ff19f815bfd7b7" title="Save a propertylist as a DFS-compliant pipeline product.">irplib_dfs_save_propertylist</a>(cpl_frameset            *,</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>                                             <span class="keyword">const</span> cpl_parameterlist *,</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>                                             <span class="keyword">const</span> cpl_frameset      *,</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                                             <span class="keyword">const</span> cpl_propertylist  *,</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>                                             <span class="keyword">const</span> <span class="keywordtype">char</span>              *);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga66f7adc9e165b4e934e3d57a700f55c1" title="Save an imagelist as a DFS-compliant pipeline product.">irplib_dfs_save_imagelist</a>(cpl_frameset            *,</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>                                          <span class="keyword">const</span> cpl_parameterlist *,</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>                                          <span class="keyword">const</span> cpl_frameset      *,</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>                                          <span class="keyword">const</span> cpl_imagelist     *,</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>                                          cpl_type_bpp             ,</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                                          <span class="keyword">const</span> cpl_propertylist  *,</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                                          <span class="keyword">const</span> <span class="keywordtype">char</span>              *);</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga62a91f8630af11164547c168660b2ade" title="Save a table as a DFS-compliant pipeline product.">irplib_dfs_save_table</a>(cpl_frameset            *,</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>                                      <span class="keyword">const</span> cpl_parameterlist *,</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>                                      <span class="keyword">const</span> cpl_frameset      *,</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                                      <span class="keyword">const</span> cpl_table         *,</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                                      <span class="keyword">const</span> cpl_propertylist  *,</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                                      <span class="keyword">const</span> cpl_propertylist  *,</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>              *);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga1fd7c2f4c00014049b0bf4bf6814b451" title="Save an image as a DFS-compliant pipeline product.">irplib_dfs_save_image_</a>(cpl_frameset            *,</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>                                       cpl_propertylist        *,</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                                       <span class="keyword">const</span> cpl_parameterlist *,</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                                       <span class="keyword">const</span> cpl_frameset      *,</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                                       <span class="keyword">const</span> cpl_frame         *,</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                                       <span class="keyword">const</span> cpl_image         *,</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                                       cpl_type                 ,</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>                                       <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>                                       <span class="keyword">const</span> cpl_propertylist  *,</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>                                       <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>                                       <span class="keyword">const</span> <span class="keywordtype">char</span>              *,</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>                                       <span class="keyword">const</span> <span class="keywordtype">char</span>              *);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="keywordtype">void</span> <a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e" title="Reset IRPLIB state.">irplib_reset</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__utils.html#gae13f0d6b24ade506a99ac9c4bb09efde" title="Comparison function to identify different input frames.">irplib_compare_tags</a>(cpl_frame *, cpl_frame *);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__irplib__utils.html#ga9fe4dca85dee68061114e26fdc72a134" title="Find the filename with the given tag in a frame set.">irplib_frameset_find_file</a>(<span class="keyword">const</span> cpl_frameset *, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="keyword">const</span> cpl_frame * <a class="code" href="group__irplib__utils.html#ga5b20a00f315410b49b1db1dd2417fe68" title="Find the first frame belonging to the given group.">irplib_frameset_get_first_from_group</a>(<span class="keyword">const</span> cpl_frameset *,</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>                                                        cpl_frame_group);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> cpl_error_code <a class="code" href="group__irplib__utils.html#gac568c70a57ef8610f5fedc9f1943a3a1" title="Find the aperture(s) with the greatest flux.">irplib_apertures_find_max_flux</a>(<span class="keyword">const</span> cpl_apertures *, <span class="keywordtype">int</span> *,</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>                                               <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="preprocessor">#if defined HAVE_ISNAN && HAVE_ISNAN != 0</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="preprocessor"></span><span class="preprocessor">#if !defined isnan && defined HAVE_DECL_ISNAN && HAVE_DECL_ISNAN == 0</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <span class="preprocessor"></span><span class="comment">/* HP-UX and Solaris may have isnan() available at link-time</span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> <span class="comment">   without the prototype */</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> <span class="keywordtype">int</span> isnan(<span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> cpl_error_code</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> <a class="code" href="group__irplib__utils.html#ga3d1a791b5dc870770611c7dbf60d02df" title="Create a DFS product with one table from one or more (ASCII) file(s)">irplib_dfs_table_convert</a>(cpl_table *, cpl_frameset *, <span class="keyword">const</span> cpl_frameset *,</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>                          <span class="keywordtype">int</span>, <span class="keywordtype">char</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                          <span class="keyword">const</span> cpl_parameterlist *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                          <span class="keyword">const</span> cpl_propertylist *, <span class="keyword">const</span> cpl_propertylist *,</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>                          <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                          cpl_boolean (*)(cpl_table *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                                             <span class="keyword">const</span> cpl_frame *,</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                                             <span class="keyword">const</span> cpl_parameterlist *),</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>                          cpl_error_code (*)(cpl_table *,</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>                                             <span class="keyword">const</span> cpl_frameset *,</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>                                             <span class="keyword">const</span> cpl_parameterlist *));</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> </div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga59a68df1795523d4f7653875bd9fc01d" title="Set the rows of a table with data from one or more (ASCII) files.">irplib_table_read_from_frameset</a>(cpl_table *,</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>                                                <span class="keyword">const</span> cpl_frameset *,</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>                                                <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                                                <span class="keywordtype">char</span>,</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>                                                <span class="keyword">const</span> cpl_parameterlist *,</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                                                cpl_boolean (*)</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                                                (cpl_table *, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>                                                 <span class="keywordtype">int</span>, <span class="keyword">const</span> cpl_frame *,</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                                                 <span class="keyword">const</span> cpl_parameterlist *));</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> cpl_error_code <a class="code" href="group__irplib__utils.html#ga832676f36ecd647b77f4bb373b2d1954" title="Split the values in an image in three according to two thresholds.">irplib_image_split</a>(<span class="keyword">const</span> cpl_image *,</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                                   cpl_image *, cpl_image *, cpl_image *,</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                                   <span class="keywordtype">double</span>, cpl_boolean,</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>                                   <span class="keywordtype">double</span>, cpl_boolean,</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>                                   <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>                                   cpl_boolean, cpl_boolean, cpl_boolean);</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> </div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> <span class="keywordtype">void</span> <a class="code" href="group__irplib__utils.html#ga6b29dac884b62ab52f43dd670d4d8386" title="Dump a single CPL error at the CPL warning level.">irplib_errorstate_dump_warning</a>(<span class="keywordtype">unsigned</span>, <span class="keywordtype">unsigned</span>, <span class="keywordtype">unsigned</span>);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> <span class="keywordtype">void</span> <a class="code" href="group__irplib__utils.html#ga901ff52a1c9dcdfcf2d2632d31064bdb" title="Dump a single CPL error at the CPL info level.">irplib_errorstate_dump_info</a>(<span class="keywordtype">unsigned</span>, <span class="keywordtype">unsigned</span>, <span class="keywordtype">unsigned</span>);</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> <span class="keywordtype">void</span> <a class="code" href="group__irplib__utils.html#ga26c6209e5df98978e2922a15b47b47d1" title="Dump a single CPL error at the CPL debug level.">irplib_errorstate_dump_debug</a>(<span class="keywordtype">unsigned</span>, <span class="keywordtype">unsigned</span>, <span class="keywordtype">unsigned</span>);</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="comment">/* wrapper for replace deprecated function cpl_polynomial_fit_1d_create*/</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> cpl_polynomial * irplib_polynomial_fit_1d_create(</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>         <span class="keyword">const</span> cpl_vector    *   x_pos,</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>         <span class="keyword">const</span> cpl_vector    *   values,</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>         <span class="keywordtype">int</span>                     degree,</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>         <span class="keywordtype">double</span>              *   mse</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>         );</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> cpl_polynomial * irplib_polynomial_fit_1d_create_chiq(</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>         <span class="keyword">const</span> cpl_vector    *   x_pos,</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>         <span class="keyword">const</span> cpl_vector    *   values,</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>         <span class="keywordtype">int</span>                     degree,</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>         <span class="keywordtype">double</span>              *   rechiq</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>         );</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> cpl_error_code irplib_frameset_sort(</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>         <span class="keyword">const</span> cpl_frameset *  <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>         <span class="keywordtype">int</span>* iindex,</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>         <span class="keywordtype">double</span>* exptime);</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> </div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="comment">/* FIXME: add alloc_size(2) */</span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> <span class="keywordtype">void</span> * irplib_aligned_malloc(<span class="keywordtype">size_t</span> alignment, <span class="keywordtype">size_t</span> size) CPL_ATTR_ALLOC;</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <span class="keywordtype">void</span> * irplib_aligned_calloc(<span class="keywordtype">size_t</span> alignment,</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>                              <span class="keywordtype">size_t</span> nelem, <span class="keywordtype">size_t</span> nbytes) CPL_ATTR_ALLOC;</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> <span class="keywordtype">void</span> irplib_aligned_free (<span class="keywordtype">void</span> * aligned_ptr);</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> </div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="comment">                                   Function inlines</span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <span class="keyword">static</span> __inline__ <span class="keywordtype">int</span> irplib_isinf(<span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> {</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> <span class="comment">/* documented only on 4.4, but available in at least 4.2 */</span></div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> <span class="preprocessor">#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)</span></div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <span class="preprocessor"></span>    <span class="keywordflow">return</span> __builtin_isinf(value);</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> <span class="preprocessor">#elif defined HAVE_ISINF && HAVE_ISINF</span></div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> <span class="preprocessor"></span>    <span class="keywordflow">return</span> isinf(value);</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> <span class="preprocessor"></span>    <span class="keywordflow">return</span> value != 0 && value == 2 * value;</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> <span class="preprocessor"></span>}</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> </div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> </div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> <span class="keyword">static</span> __inline__ <span class="keywordtype">int</span> irplib_isnan(<span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> {</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> <span class="comment">/* documented only on 4.4, but available in at least 4.2 */</span></div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> <span class="preprocessor">#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> <span class="preprocessor"></span>    <span class="keywordflow">return</span> __builtin_isnan(value);</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> <span class="preprocessor">#elif defined HAVE_ISNAN && HAVE_ISNAN</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> <span class="preprocessor"></span>    <span class="keywordflow">return</span> isnan(value);</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> <span class="preprocessor"></span>    <span class="keywordflow">return</span> value != value;</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> <span class="preprocessor"></span>}</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__wavecal_8c_source.html b/html/irplib__wavecal_8c_source.html
deleted file mode 100644
index a2786cf..0000000
--- a/html/irplib__wavecal_8c_source.html
+++ /dev/null
@@ -1,1589 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_wavecal.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_wavecal.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_wavecal.c,v 1.52 2012-08-03 21:05:32 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the IRPLIB Pipeline</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2012-08-03 21:05:32 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.52 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment">/* TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#ifndef CPL_SIZE_FORMAT</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor"></span><span class="preprocessor">#define CPL_SIZE_FORMAT "d"</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor"></span><span class="preprocessor">#define cpl_size int</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span><span class="comment">/* END TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include "irplib_wavecal_impl.h"</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/* Needed for irplib_errorstate_dump_debug() */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include "irplib_utils.h"</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#ifdef HAVE_GSL</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor"></span><span class="preprocessor">#include <gsl/gsl_multimin.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">                               Private types</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="structirplib__multimin.html">   61</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>     <span class="keyword">const</span> cpl_vector * observed;</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     cpl_polynomial   * disp1d;</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     cpl_vector       * spectrum;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * param;</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     cpl_error_code  (* filler)(cpl_vector *, <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>                                <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *);</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     cpl_vector       * vxc;</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="keywordtype">double</span>             xc;</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     <span class="keywordtype">int</span>                maxxc;</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     <span class="keywordtype">double</span>             mxc;</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     cpl_polynomial   * mdisp;</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     <span class="keywordtype">int</span>                ishift;</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> } <a class="code" href="structirplib__multimin.html">irplib_multimin</a>;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">                               Defines</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor">#ifndef inline</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor"></span><span class="preprocessor">#define inline </span><span class="comment">/* inline */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor">#define IRPLIB_MAX(A,B) ((A) > (B) ? (A) : (B))</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_MIN(A,B) ((A) < (B) ? (A) : (B))</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment">                                   Private functions</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor">#ifdef HAVE_GSL</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="preprocessor"></span><span class="keyword">static</span> <span class="keywordtype">double</span> irplib_gsl_correlation(<span class="keyword">const</span> gsl_vector *, <span class="keywordtype">void</span> *);</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> irplib_polynomial_find_1d_from_correlation_(cpl_polynomial *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                                             <span class="keyword">const</span> cpl_vector *,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                                             <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                                             cpl_error_code (*)</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                                             (cpl_vector *,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                                              <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>                                              <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *),</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                                             <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                                             <span class="keywordtype">double</span> *, cpl_boolean *);</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#ga03d7f038adc7e18e7a9071581fa47a25">  127</a></span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__wavecal.html#ga03d7f038adc7e18e7a9071581fa47a25" title="Count the positive Y-entries in a given X-range.">irplib_bivector_count_positive</a>(<span class="keyword">const</span> cpl_bivector * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>                                   <span class="keywordtype">double</span>               x_min,</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>                                   <span class="keywordtype">double</span>               x_max)</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> {</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>      nself = cpl_bivector_get_size(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> * px    = cpl_bivector_get_x_data_const(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> * py    = cpl_bivector_get_y_data_const(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     <span class="keywordtype">int</span>            npos  = 0;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     <span class="keywordtype">int</span>            i     = 0;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     cpl_ensure(<span class="keyword">self</span> != NULL, CPL_ERROR_NULL_INPUT, -1);</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     cpl_ensure(x_min <= x_max, CPL_ERROR_ILLEGAL_INPUT, -2);</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="comment">/* FIXME: Use cpl_vector_find() */</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <span class="keywordflow">while</span> (i < nself && px[i] < x_min) i++;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     <span class="keywordflow">while</span> (i < nself && px[i] < x_max)</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>         <span class="keywordflow">if</span> (py[i++] > 0) npos++;</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     <span class="keywordflow">return</span> npos;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> }</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#ga2dd3251367e2ee8b8bd5ce080e9f31bb">  160</a></span> cpl_error_code <a class="code" href="group__irplib__wavecal.html#ga2dd3251367e2ee8b8bd5ce080e9f31bb" title="Fit a 2D-dispersion from an image of wavelengths.">irplib_polynomial_fit_2d_dispersion</a>(cpl_polynomial * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>                                                    <span class="keyword">const</span> cpl_image * imgwave,</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>                                                    <span class="keywordtype">int</span> fitdeg, <span class="keywordtype">double</span> * presid)</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> {</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>        nx = cpl_image_get_size_x(imgwave);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>        ny = cpl_image_get_size_y(imgwave);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>        nbad = cpl_image_count_rejected(imgwave);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>        nsamp = nx * ny - nbad;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     cpl_matrix     * xy_pos;</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     <span class="keywordtype">double</span>         * xdata;</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     <span class="keywordtype">double</span>         * ydata;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     cpl_vector     * wlen;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="keywordtype">double</span>         * dwlen;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     <span class="keyword">const</span> cpl_size   nfitdeg = (cpl_size)fitdeg;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     <span class="keywordtype">int</span> i, j;</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     <span class="keywordtype">int</span> k = 0;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     cpl_ensure_code(<span class="keyword">self</span>    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     cpl_ensure_code(imgwave != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     cpl_ensure_code(presid  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     cpl_ensure_code(fitdeg > 0,      CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) == 2,</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>                     CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     xy_pos = cpl_matrix_new(2, nsamp);</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     xdata = cpl_matrix_get_data(xy_pos);</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>     ydata = xdata + nsamp;</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     dwlen = (<span class="keywordtype">double</span>*)cpl_malloc(nsamp * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     wlen = cpl_vector_wrap(nsamp, dwlen);</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     <span class="keywordflow">for</span> (i=1; i <= nx; i++) {</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>         <span class="keywordflow">for</span> (j=1; j <= ny; j++) {</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>             <span class="keywordtype">int</span> is_bad;</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> value = cpl_image_get(imgwave, i, j, &is_bad);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>             <span class="keywordflow">if</span> (!is_bad) {</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>                 xdata[k] = i;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>                 ydata[k] = j;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>                 dwlen[k] = value;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>                 k++;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>             }</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>         }</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     }</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Fitting 2D polynomial to %d X %d image, ignoring "</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>                  <span class="stringliteral">"%d poorly calibrated pixels"</span>, nx, ny, nbad);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="keywordflow">if</span> (cpl_polynomial_fit(<span class="keyword">self</span>, xy_pos, NULL, wlen, NULL, CPL_FALSE, NULL,</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>                            &nfitdeg) == CPL_ERROR_NONE && presid != NULL) {</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>         cpl_vector_fill_polynomial_fit_residual(wlen, wlen, NULL, <span class="keyword">self</span>, xy_pos,</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>                                                 NULL);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>         *presid = cpl_vector_product(wlen, wlen)/nsamp;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     }</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     cpl_matrix_delete(xy_pos);</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     cpl_vector_delete(wlen);</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     cpl_ensure_code(k == nsamp, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> }</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> cpl_error_code</div>
-<div class="line"><a name="l00244"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#ga8f49c4927c50a461288e8f19720dff86">  244</a></span> <a class="code" href="group__irplib__wavecal.html#ga8f49c4927c50a461288e8f19720dff86" title="Modify self by maximizing the cross-correlation.">irplib_polynomial_find_1d_from_correlation</a>(cpl_polynomial * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>                                            <span class="keywordtype">int</span> maxdeg,</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                                            <span class="keyword">const</span> cpl_vector * obs,</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>                                            <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * model,</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>                                            cpl_error_code (* filler)</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>                                            (cpl_vector *,</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>                                             <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>                                             <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *),</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>                                            <span class="keywordtype">double</span> pixtol,</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>                                            <span class="keywordtype">double</span> pixstep,</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>                                            <span class="keywordtype">int</span> hsize,</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                                            <span class="keywordtype">int</span> maxite,</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                                            <span class="keywordtype">double</span> * pxc)</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> {</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     cpl_boolean restart = CPL_FALSE;</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <span class="keyword">const</span> cpl_error_code error = irplib_polynomial_find_1d_from_correlation_</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         (<span class="keyword">self</span>, maxdeg, obs, model, filler, pixtol, pixstep, hsize, maxite, pxc,</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>          &restart);</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     <span class="keywordflow">return</span> error ? cpl_error_set_where(cpl_func) :</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         (restart ? cpl_error_set(cpl_func, CPL_ERROR_CONTINUE)</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>          : CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> }</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> irplib_polynomial_find_1d_from_correlation_(cpl_polynomial * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>                                             <span class="keywordtype">int</span> maxdeg,</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>                                             <span class="keyword">const</span> cpl_vector * obs,</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>                                             <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * model,</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>                                             cpl_error_code (* filler)</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                                             (cpl_vector *,</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>                                              <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>                                              <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *),</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>                                             <span class="keywordtype">double</span> pixtol,</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>                                             <span class="keywordtype">double</span> pixstep,</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>                                             <span class="keywordtype">int</span> hsize,</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>                                             <span class="keywordtype">int</span> maxite,</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>                                             <span class="keywordtype">double</span> * pxc,</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                                             cpl_boolean * prestart)</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> {</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="preprocessor">#ifdef HAVE_GSL</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="preprocessor"></span>    <span class="keyword">const</span> gsl_multimin_fminimizer_type * T = gsl_multimin_fminimizer_nmsimplex;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     gsl_multimin_fminimizer * minimizer;</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     gsl_multimin_function my_func;</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <a class="code" href="structirplib__multimin.html">irplib_multimin</a> data;</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     gsl_vector * dispgsl;</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     gsl_vector * stepsize;</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     gsl_vector * dispprev;</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     <span class="keywordtype">int</span> status = GSL_CONTINUE;</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> nobs = cpl_vector_get_size(obs);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     <span class="keyword">const</span> cpl_size nfit = maxdeg + 1;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     cpl_errorstate prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     <span class="comment">/* Convert pixel step to wavelength step on detector center */</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> wlstep =</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>         cpl_polynomial_eval_1d_diff(<span class="keyword">self</span>, 0.5 * (nobs + pixstep),</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                                     0.5 * (nobs - pixstep), NULL);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     <span class="keywordtype">double</span> wlstepi = wlstep;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     <span class="keywordtype">double</span> size;</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <span class="keywordtype">int</span> iter;</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     cpl_size i;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     cpl_ensure_code(prestart != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     *prestart = CPL_FALSE;</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     cpl_ensure_code(<span class="keyword">self</span>     != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     cpl_ensure_code(obs      != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     cpl_ensure_code(model    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     cpl_ensure_code(filler   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     cpl_ensure_code(pxc      != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) == 1,</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>                     CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     cpl_ensure_code(cpl_polynomial_get_degree(<span class="keyword">self</span>) > 0,</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>                     CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> </div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     cpl_ensure_code(maxdeg  >=  0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     cpl_ensure_code(pixtol  > 0.0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     cpl_ensure_code(pixstep > 0.0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     cpl_ensure_code(hsize   >=  0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     cpl_ensure_code(maxite  >=  0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="preprocessor">#ifndef HAVE_GSL</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> <span class="preprocessor"></span>    <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>                                  <span class="stringliteral">"GSL is not available"</span>);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     minimizer = gsl_multimin_fminimizer_alloc(T, (<span class="keywordtype">size_t</span>)nfit);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     cpl_ensure_code(minimizer != NULL, CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>        </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     dispgsl  = gsl_vector_alloc((<span class="keywordtype">size_t</span>)nfit);</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     stepsize = gsl_vector_alloc((<span class="keywordtype">size_t</span>)nfit);</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     dispprev = gsl_vector_alloc((<span class="keywordtype">size_t</span>)nfit);</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     <span class="keywordflow">for</span> (i=0; i < nfit; i++) {</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> value = cpl_polynomial_get_coeff(<span class="keyword">self</span>, &i);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>         gsl_vector_set(dispgsl, (<span class="keywordtype">size_t</span>)i, value);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>         gsl_vector_set(stepsize, (<span class="keywordtype">size_t</span>)i, wlstepi);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>         wlstepi /= (double)nobs;</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     }</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     my_func.n = nfit;</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     my_func.f = &irplib_gsl_correlation;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     my_func.params = (<span class="keywordtype">void</span> *)(&data);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     data.observed = obs;</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     data.disp1d   = <span class="keyword">self</span>;</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     data.spectrum = cpl_vector_new(nobs + 2 * hsize);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     data.vxc      = cpl_vector_new(1 + 2 * hsize);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     data.param    = model;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     data.filler   = filler;</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     data.maxxc    = 0; <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     data.ishift   = 0; <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     data.mxc      = -1.0; <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     data.mdisp    = NULL; <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     gsl_multimin_fminimizer_set (minimizer, &my_func, dispgsl, stepsize);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     <span class="keywordflow">for</span> (iter = 0; status == GSL_CONTINUE && iter < maxite; iter++) {</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> fprev = minimizer->fval;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> </div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>         gsl_vector_memcpy(dispprev, minimizer->x);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         status = gsl_multimin_fminimizer_iterate(minimizer);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>         <span class="keywordflow">if</span> (status || !cpl_errorstate_is_equal(prestate)) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>         size = gsl_multimin_fminimizer_size (minimizer);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>         status = gsl_multimin_test_size (size, pixtol);</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>      </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>         <span class="keywordflow">if</span> (status == GSL_SUCCESS) {</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>             cpl_msg_debug(cpl_func, <span class="stringliteral">"converged to minimum at"</span>);</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>             <span class="keywordflow">if</span> (nfit == 0) {</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                 cpl_msg_debug(cpl_func, <span class="stringliteral">"%5d %g df() = %g size = %g"</span>, </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>                               iter,</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>                               gsl_vector_get (minimizer->x, 0)</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>                               - gsl_vector_get (dispprev, 0), </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>                               minimizer->fval - fprev, size);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>             } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (nfit == 1) {</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                 cpl_msg_debug(cpl_func, <span class="stringliteral">"%5d %g %g df() = %g size = %g"</span>, </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>                               iter,</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>                               gsl_vector_get (minimizer->x, 0)</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                               - gsl_vector_get (dispprev, 0), </div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                               gsl_vector_get (minimizer->x, 1)</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                               - gsl_vector_get (dispprev, 1), </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                               minimizer->fval - fprev, size);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>                 cpl_msg_debug(cpl_func, <span class="stringliteral">"%5d %g %g %g df() = %g size = %g"</span>, </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>                               iter,</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                               gsl_vector_get (minimizer->x, 0)</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                               - gsl_vector_get (dispprev, 0), </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                               gsl_vector_get (minimizer->x, 1)</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                               - gsl_vector_get (dispprev, 1), </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                               gsl_vector_get (minimizer->x, 2)</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>                               - gsl_vector_get (dispprev, 2), </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>                               minimizer->fval - fprev, size);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>             }</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>         }</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     }</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     <span class="keywordflow">if</span> (status == GSL_SUCCESS && cpl_errorstate_is_equal(prestate)) {</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>         <span class="keywordflow">if</span> (data.mxc > -minimizer->fval) {</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>             *pxc = data.mxc;</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>             cpl_msg_warning(cpl_func, <span class="stringliteral">"Local maximum: %g(%d) > %g"</span>,</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>                             data.mxc, data.ishift, -minimizer->fval);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>             cpl_polynomial_shift_1d(data.mdisp, 0, (<span class="keywordtype">double</span>)data.ishift);</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>             cpl_polynomial_copy(<span class="keyword">self</span>, data.mdisp);</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>             *prestart = CPL_TRUE;</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>             *pxc = -minimizer->fval;</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>             <span class="keywordflow">for</span> (i=0; i < nfit; i++) {</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> value = gsl_vector_get(minimizer->x, i);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>                 cpl_polynomial_set_coeff(<span class="keyword">self</span>, &i, value);</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>             }</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>         }</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     }</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     cpl_vector_delete(data.spectrum);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     cpl_vector_delete(data.vxc);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     cpl_polynomial_delete(data.mdisp);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     gsl_multimin_fminimizer_free(minimizer);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     gsl_vector_free(dispgsl);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     gsl_vector_free(dispprev);</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     gsl_vector_free(stepsize);</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     cpl_ensure_code(status != GSL_CONTINUE, CPL_ERROR_CONTINUE);</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>     cpl_ensure_code(status == GSL_SUCCESS, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>     cpl_ensure_code(cpl_errorstate_is_equal(prestate), cpl_error_get_code());</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> <span class="preprocessor"></span>}</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> cpl_error_code</div>
-<div class="line"><a name="l00494"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#ga1d49cb7f85fc246c8fdf38625c769f7a">  494</a></span> <a class="code" href="group__irplib__wavecal.html#ga1d49cb7f85fc246c8fdf38625c769f7a" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_line_spectrum</a>(cpl_vector * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>                                  <span class="keyword">const</span> cpl_polynomial * disp,</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>                                  <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * lsslamp)</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> {</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     <a class="code" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a> * arclamp</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>         = (<a class="code" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a> *)lsslamp;</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     cpl_ensure_code(arclamp != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     arclamp->cost++;</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> </div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     error = <a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761" title="Generate a 1D spectrum from (arc) lines and a dispersion relation.">irplib_vector_fill_line_spectrum_model</a>(<span class="keyword">self</span>,</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>                                                    arclamp->linepix,</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>                                                    arclamp->erftmp,</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>                                                    disp,</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>                                                    arclamp->lines,</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>                                                    arclamp->wslit,</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>                                                    arclamp->wfwhm,</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>                                                    arclamp->xtrunc,</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>                                                    0, CPL_FALSE, CPL_FALSE,</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>                                                    &(arclamp->ulines));</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>     arclamp->xcost++;</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> </div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> }</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> </div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> cpl_error_code</div>
-<div class="line"><a name="l00539"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#gad22539bf83d1b08d845ed5f618a4009f">  539</a></span> <a class="code" href="group__irplib__wavecal.html#gad22539bf83d1b08d845ed5f618a4009f" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_logline_spectrum</a>(cpl_vector * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>                                     <span class="keyword">const</span> cpl_polynomial * disp,</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>                                     <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * lsslamp)</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> {</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>     <a class="code" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a> * arclamp</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>         = (<a class="code" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a> *)lsslamp;</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> </div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     cpl_ensure_code(arclamp != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     arclamp->cost++;</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>     error = <a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761" title="Generate a 1D spectrum from (arc) lines and a dispersion relation.">irplib_vector_fill_line_spectrum_model</a>(<span class="keyword">self</span>,</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                                                    arclamp->linepix,</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                                                    arclamp->erftmp,</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                                                    disp,</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                                                    arclamp->lines,</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                                                    arclamp->wslit,</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>                                                    arclamp->wfwhm,</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>                                                    arclamp->xtrunc,</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>                                                    0, CPL_FALSE, CPL_TRUE,</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>                                                    &(arclamp->ulines));</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>     arclamp->xcost++;</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> }</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> </div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> </div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> cpl_error_code</div>
-<div class="line"><a name="l00585"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#ga6a463d7816b4164fdd23a4df2805cc95">  585</a></span> <a class="code" href="group__irplib__wavecal.html#ga6a463d7816b4164fdd23a4df2805cc95" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_line_spectrum_fast</a>(cpl_vector * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>                                       <span class="keyword">const</span> cpl_polynomial * disp,</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>                                       <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * lsslamp)</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> {</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> </div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     <a class="code" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a> * arclamp</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>         = (<a class="code" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a> *)lsslamp;</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     cpl_ensure_code(arclamp != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> </div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>     arclamp->cost++;</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     error = <a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761" title="Generate a 1D spectrum from (arc) lines and a dispersion relation.">irplib_vector_fill_line_spectrum_model</a>(<span class="keyword">self</span>,</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>                                                    arclamp->linepix,</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>                                                    arclamp->erftmp,</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>                                                    disp,</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                                                    arclamp->lines,</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                                                    arclamp->wslit,</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                                                    arclamp->wfwhm,</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                                                    arclamp->xtrunc,</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                                                    0, CPL_TRUE, CPL_FALSE,</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>                                                    &(arclamp->ulines));</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> </div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>     arclamp->xcost++;</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> </div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> }</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> </div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> cpl_error_code</div>
-<div class="line"><a name="l00630"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#ga75a85320c74d1088eeaeec97974d793c">  630</a></span> <a class="code" href="group__irplib__wavecal.html#ga75a85320c74d1088eeaeec97974d793c" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_logline_spectrum_fast</a>(cpl_vector * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>                                          <span class="keyword">const</span> cpl_polynomial * disp,</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>                                          <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * lsslamp)</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> {</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> </div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>     <a class="code" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a> * arclamp</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>         = (<a class="code" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a> *)lsslamp;</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> </div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>     cpl_ensure_code(arclamp != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> </div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     arclamp->cost++;</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>     error = <a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761" title="Generate a 1D spectrum from (arc) lines and a dispersion relation.">irplib_vector_fill_line_spectrum_model</a>(<span class="keyword">self</span>,</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>                                                    arclamp->linepix,</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>                                                    arclamp->erftmp,</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>                                                    disp,</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>                                                    arclamp->lines,</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>                                                    arclamp->wslit,</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>                                                    arclamp->wfwhm,</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>                                                    arclamp->xtrunc,</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>                                                    0, CPL_TRUE, CPL_TRUE,</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>                                                    &(arclamp->ulines));</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> </div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>     arclamp->xcost++;</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> </div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span> }</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> </div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00672"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#ga7bac402a4e2c60f7646f1e655a66833d">  672</a></span> cpl_error_code <a class="code" href="group__irplib__wavecal.html#ga7bac402a4e2c60f7646f1e655a66833d" title="Plot a 1D spectrum and one from a model.">irplib_plot_spectrum_and_model</a>(<span class="keyword">const</span> cpl_vector * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>                                               <span class="keyword">const</span> cpl_polynomial * disp1d,</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>                                               <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * model,</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>                                               cpl_error_code (* filler)</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                                               (cpl_vector *,</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>                                                <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>                                                <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *))</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> {</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>     cpl_errorstate prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>     cpl_vector * wl;</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>     cpl_vector * spectrum;</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>     cpl_vector * vxc;</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> len = cpl_vector_get_size(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>     <span class="keywordtype">double</span> maxval, xc;</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     <span class="keywordtype">int</span> ixc;</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>     <span class="keywordtype">int</span> error = 0;</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span> </div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>     cpl_ensure_code(<span class="keyword">self</span>   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>     cpl_ensure_code(disp1d != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>     cpl_ensure_code(model  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>     cpl_ensure_code(filler != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span> </div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     cpl_ensure_code(cpl_polynomial_get_dimension(disp1d) == 1,</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>                     CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> </div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     cpl_ensure_code(cpl_polynomial_get_degree(disp1d) > 0,</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>                     CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     wl = cpl_vector_new(len);</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     spectrum = cpl_vector_new(len);</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     vxc = cpl_vector_new(1);</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>     error |= (int)cpl_vector_fill_polynomial(wl, disp1d, 1.0, 1.0);</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>     error |= filler(spectrum, disp1d, model);</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> </div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>     ixc = cpl_vector_correlate(vxc, <span class="keyword">self</span>, spectrum);</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>     xc = cpl_vector_get(vxc, ixc);</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span> </div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     maxval = cpl_vector_get_max(spectrum);</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     <span class="keywordflow">if</span> (maxval != 0.0) </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>         error |= cpl_vector_multiply_scalar(spectrum,</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>                                              cpl_vector_get_max(<span class="keyword">self</span>)/maxval);</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     <span class="keywordflow">if</span> (!error) {</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>         <span class="keyword">const</span> cpl_vector * spair[] = {wl, <span class="keyword">self</span>, spectrum};</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>         <span class="keywordtype">char</span> * pre = cpl_sprintf(<span class="stringliteral">"set grid;set xlabel 'Wavelength (%g -> %g)'; "</span></div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>                                  <span class="stringliteral">"set ylabel 'Intensity';"</span>, cpl_vector_get(wl, 0),</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>                                  cpl_vector_get(wl, len-1));</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>         <span class="keywordtype">char</span> * title = cpl_sprintf(<span class="stringliteral">"t 'Observed and modelled spectra (%d pixel "</span></div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>                                    <span class="stringliteral">"XC=%g) ' w linespoints"</span>, len, xc);</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span> </div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>         (void)cpl_plot_vectors(pre, title, <span class="stringliteral">""</span>, spair, 3);</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>         cpl_free(pre);</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>         cpl_free(title);</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>     }</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span> </div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     cpl_vector_delete(wl);</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>     cpl_vector_delete(spectrum);</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     cpl_vector_delete(vxc);</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     cpl_errorstate_set(prestate);</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> }</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> </div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> cpl_error_code</div>
-<div class="line"><a name="l00759"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#ga260740bf1f3fc364b301519eab3249a6">  759</a></span> <a class="code" href="group__irplib__wavecal.html#ga260740bf1f3fc364b301519eab3249a6" title="Find shift(s) that maximizes (locally) the cross-correlation.">irplib_bivector_find_shift_from_correlation</a>(cpl_bivector * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>                                             <span class="keyword">const</span> cpl_polynomial * disp,</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>                                             <span class="keyword">const</span> cpl_vector * obs,</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>                                             <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * model,</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>                                             cpl_error_code (*filler)</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>                                             (cpl_vector *,</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>                                              <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>                                              <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *),</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>                                             <span class="keywordtype">int</span> hsize,</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>                                             cpl_boolean doplot,</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>                                             <span class="keywordtype">double</span> *pxc)</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> {</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> </div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>        nobs   = cpl_vector_get_size(obs);</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>        nmodel = 2 * hsize + nobs;</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>     cpl_polynomial * shdisp;</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     cpl_vector     * xself = cpl_bivector_get_x(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     cpl_vector     * yself = cpl_bivector_get_y(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     cpl_vector     * mspec1d;</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>     cpl_vector     * xcorr;</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>     cpl_error_code   error = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     <span class="keywordtype">double</span>           xcprev, xcnext;</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>     <span class="keywordtype">int</span>              ixc, imax = 0;</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     <span class="keywordtype">int</span>              i;</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     cpl_ensure_code(<span class="keyword">self</span>   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>     cpl_ensure_code(disp   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>     cpl_ensure_code(obs    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>     cpl_ensure_code(model  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     cpl_ensure_code(filler != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     cpl_ensure_code(hsize  >  0,    CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>     shdisp = cpl_polynomial_duplicate(disp);</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> </div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>     <span class="comment">/* Shift reference by -hsize so filler can be used without offset */</span></div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>     <span class="keywordflow">if</span> (cpl_polynomial_shift_1d(shdisp, 0, -hsize)) {</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>         cpl_polynomial_delete(shdisp);</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>         <span class="keywordflow">return</span> cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>     }</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>     mspec1d = cpl_vector_new(nmodel);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span> </div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>     <span class="keywordflow">if</span> (filler(mspec1d, shdisp, model)) {</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>         cpl_vector_delete(mspec1d);</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>         <span class="keywordflow">return</span> cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>     }</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span> </div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>     <span class="comment">/* Should not be able to fail now */</span></div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>     xcorr = cpl_vector_new(1 + 2 * hsize);</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>     ixc = cpl_vector_correlate(xcorr, mspec1d, obs);</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span> </div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span> <span class="preprocessor">#ifdef IRPLIB_SPC_DUMP</span></div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span> <span class="preprocessor"></span>    <span class="comment">/* Need irplib_wavecal.c rev. 1.12 through 1.15 */</span></div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>     irplib_polynomial_dump_corr_step(shdisp, xcorr, <span class="stringliteral">"Shift"</span>);</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>     cpl_vector_delete(mspec1d);</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>     cpl_polynomial_delete(shdisp);</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> </div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>     <span class="comment">/* Find local maxima. */</span></div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>     <span class="comment">/* FIXME(?): Also include stationary points */</span></div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>     i = 0;</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>     xcprev = cpl_vector_get(xcorr, i);</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>     xcnext = cpl_vector_get(xcorr, i+1);</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span> </div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>     <span class="keywordflow">if</span> (xcprev >= xcnext) {</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>         <span class="comment">/* 1st data point is an extreme */</span></div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>         <span class="comment">/* FIXME: This could also be an error, recoverable by caller by</span></div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span> <span class="comment">           increasing hsize */</span></div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>         imax++;</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> </div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>         cpl_vector_set(xself, 0, i - hsize);</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>         cpl_vector_set(yself, 0, xcprev);</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span> </div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>     }</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> </div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>     <span class="keywordflow">for</span> (i = 1; i < 2 * hsize; i++) {</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> xc = xcnext;</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>         xcnext = cpl_vector_get(xcorr, i+1);</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>         <span class="keywordflow">if</span> (xc >= xcprev && xc >= xcnext) {</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>             <span class="comment">/* Found (local) maximum at shift i - hsize */</span></div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>             <span class="keywordtype">int</span> j;</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span> </div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>             imax++;</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span> </div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>             <span class="keywordflow">if</span> (cpl_bivector_get_size(<span class="keyword">self</span>) < imax) {</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>                 cpl_vector_set_size(xself, imax);</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>                 cpl_vector_set_size(yself, imax);</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>             }</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span> </div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>             <span class="keywordflow">for</span> (j = imax-1; j > 0; j--) {</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>                 <span class="keywordflow">if</span> (xc <= cpl_vector_get(yself, j-1)) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>                 cpl_vector_set(xself, j, cpl_vector_get(xself, j-1));</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>                 cpl_vector_set(yself, j, cpl_vector_get(yself, j-1));</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>             }</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>             cpl_vector_set(xself, j, i - hsize);</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>             cpl_vector_set(yself, j, xc);</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>         }</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>         xcprev = xc;</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>     }</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> </div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>     <span class="comment">/* assert( i == 2 * hsize ); */</span></div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> </div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>     <span class="keywordflow">if</span> (xcnext >= xcprev) {</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>         <span class="comment">/* Last data point is an extreme */</span></div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>         <span class="comment">/* FIXME: This could also be an error, recoverable by caller by</span></div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> <span class="comment">           increasing hsize */</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>         <span class="keywordtype">int</span> j;</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> </div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>         imax++;</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> </div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>         <span class="keywordflow">if</span> (cpl_bivector_get_size(<span class="keyword">self</span>) < imax) {</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>             cpl_vector_set_size(xself, imax);</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>             cpl_vector_set_size(yself, imax);</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>         }</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> </div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>         <span class="keywordflow">for</span> (j = imax-1; j > 0; j--) {</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>             <span class="keywordflow">if</span> (xcnext <= cpl_vector_get(yself, j-1)) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>             cpl_vector_set(xself, j, cpl_vector_get(xself, j-1));</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>             cpl_vector_set(yself, j, cpl_vector_get(yself, j-1));</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>         }</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>         cpl_vector_set(xself, j, i - hsize);</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>         cpl_vector_set(yself, j, xcnext);</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> </div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>     }</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span> </div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     <span class="keywordflow">if</span> (doplot) {</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>         <span class="comment">/* Vector of -hsize, 1-hsize, 2-hsize, ..., 0, ..., hsize */</span></div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>         cpl_vector * xvals = cpl_vector_new(1 + 2 * hsize);</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>         cpl_bivector * bcorr = cpl_bivector_wrap_vectors(xvals, xcorr);</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>         <span class="keywordtype">double</span> x = (double)-hsize;</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>         <span class="keywordtype">char</span> * title = cpl_sprintf(<span class="stringliteral">"t 'Cross-correlation of shifted %d-pixel "</span></div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>                                    <span class="stringliteral">"spectrum (XCmax=%g at %d)' w linespoints"</span>,</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>                                    nobs, cpl_vector_get(xcorr, ixc),</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>                                    ixc - hsize);</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span> </div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>         <span class="keywordflow">for</span> (i = 0; i < 1 + 2 * hsize; i++, x += 1.0) {</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>             cpl_vector_set(xvals, i, x);</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>         }</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span> </div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>         cpl_plot_bivector(<span class="stringliteral">"set grid;set xlabel 'Offset [pixel]';"</span>, title,</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>                              <span class="stringliteral">""</span>, bcorr);</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>         cpl_bivector_unwrap_vectors(bcorr);</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>         cpl_vector_delete(xvals);</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>         cpl_free(title);</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>     }</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span> </div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>     <span class="keywordflow">if</span> (pxc != NULL) *pxc = cpl_vector_get(xcorr, hsize);</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span> </div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>     cpl_vector_delete(xcorr);</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span> </div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>     <span class="keywordflow">if</span> (imax < 1) {</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>         error = CPL_ERROR_DATA_NOT_FOUND;</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cpl_bivector_get_size(<span class="keyword">self</span>) > imax) {</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>         cpl_vector_set_size(xself, imax);</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>         cpl_vector_set_size(yself, imax);</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     }</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> </div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>     <span class="comment">/* Propagate error, if any */</span></div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>     <span class="keywordflow">return</span> cpl_error_set(cpl_func, error);</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span> }</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span> </div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> cpl_error_code</div>
-<div class="line"><a name="l00936"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#gadf93655e2c7c0d5df23e2e3de66d0b56">  936</a></span> <a class="code" href="group__irplib__wavecal.html#gadf93655e2c7c0d5df23e2e3de66d0b56" title="Shift self by the amount that maximizes the cross-correlation.">irplib_polynomial_shift_1d_from_correlation</a>(cpl_polynomial * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                                             <span class="keyword">const</span> cpl_vector * obs,</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>                                             <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * model,</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>                                             cpl_error_code (*filler)</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                                             (cpl_vector *,</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                                              <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>                                              <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *),</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                                             <span class="keywordtype">int</span> hsize,</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                                             cpl_boolean doplot,</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>                                             <span class="keywordtype">double</span> * pxc)</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> {</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> </div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>      nobs   = cpl_vector_get_size(obs);</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>      nmodel = 2 * hsize + nobs;</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>     cpl_vector   * mspec1d;</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>     cpl_vector   * xcorr;</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>     <span class="keywordtype">int</span>            ixc, xxc;</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>     <span class="keywordtype">double</span>         xc;</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> </div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>     cpl_ensure_code(<span class="keyword">self</span>   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>     cpl_ensure_code(obs    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>     cpl_ensure_code(model  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>     cpl_ensure_code(filler != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>     cpl_ensure_code(hsize  >  0,    CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> </div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>     <span class="comment">/* Shift reference by -hsize so filler can be used without offset */</span></div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>     cpl_ensure_code(!cpl_polynomial_shift_1d(<span class="keyword">self</span>, 0, -hsize),</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>                     cpl_error_get_code());</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> </div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>     mspec1d = cpl_vector_new(nmodel);</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span> </div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>     <span class="keywordflow">if</span> (filler(mspec1d, <span class="keyword">self</span>, model)) {</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>         cpl_vector_delete(mspec1d);</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>         cpl_ensure_code(0, cpl_error_get_code());</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>     }</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span> </div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>     <span class="comment">/* Should not be able to fail now */</span></div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>     xcorr = cpl_vector_new(1 + 2 * hsize);</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>     ixc = cpl_vector_correlate(xcorr, mspec1d, obs);</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span> </div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span> <span class="preprocessor">#ifdef IRPLIB_SPC_DUMP</span></div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span> <span class="preprocessor"></span>    <span class="comment">/* Need irplib_wavecal.c rev. 1.12 through 1.15 */</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>     irplib_polynomial_dump_corr_step(<span class="keyword">self</span>, xcorr, <span class="stringliteral">"Shift"</span>);</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>     cpl_vector_delete(mspec1d);</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> </div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>     error = cpl_polynomial_shift_1d(<span class="keyword">self</span>, 0, (<span class="keywordtype">double</span>)ixc);</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span> </div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>     xc = cpl_vector_get(xcorr, ixc);</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span> </div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     xxc = ixc - hsize; <span class="comment">/* The effect of the two shifts */</span></div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span> </div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Shifting %d pixels (%g < %g)"</span>, xxc,</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>                  cpl_vector_get(xcorr, hsize), xc);</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> </div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>     <span class="keywordflow">if</span> (doplot) {</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>         cpl_vector * xvals = cpl_vector_new(1 + 2 * hsize);</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>         cpl_bivector * bcorr = cpl_bivector_wrap_vectors(xvals, xcorr);</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>         <span class="keywordtype">double</span> x = (double)-hsize;</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>         <span class="keywordtype">char</span> * title = cpl_sprintf(<span class="stringliteral">"t 'Cross-correlation of shifted %d-pixel "</span></div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>                                    <span class="stringliteral">"spectrum (XCmax=%g at %d)' w linespoints"</span>,</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>                                    nobs, cpl_vector_get(xcorr, ixc), xxc);</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> </div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>         <span class="keywordflow">for</span> (i = 0; i < 1 + 2 * hsize; i++, x += 1.0) {</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>             cpl_vector_set(xvals, i, x);</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>         }</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>         cpl_plot_bivector(<span class="stringliteral">"set grid;set xlabel 'Offset [pixel]';"</span>, title,</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>                              <span class="stringliteral">""</span>, bcorr);</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>         cpl_bivector_unwrap_vectors(bcorr);</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>         cpl_vector_delete(xvals);</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>         cpl_free(title);</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>     }</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> </div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>     cpl_vector_delete(xcorr);</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> </div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>     cpl_ensure_code(!error, error);</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> </div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>     <span class="keywordflow">if</span> (pxc != NULL) *pxc = xc;</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> </div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span> </div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> }</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> </div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> </div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> cpl_error_code</div>
-<div class="line"><a name="l01046"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761"> 1046</a></span> <a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761" title="Generate a 1D spectrum from (arc) lines and a dispersion relation.">irplib_vector_fill_line_spectrum_model</a>(cpl_vector * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>                                        cpl_vector * linepix,</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>                                        cpl_vector * erftmp,</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>                                        <span class="keyword">const</span> cpl_polynomial * disp,</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>                                        <span class="keyword">const</span> cpl_bivector * lines,</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>                                        <span class="keywordtype">double</span> wslit,</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                                        <span class="keywordtype">double</span> wfwhm,</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>                                        <span class="keywordtype">double</span> xtrunc,</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>                                        <span class="keywordtype">int</span> hsize,</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>                                        cpl_boolean dofast,</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                                        cpl_boolean dolog,</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                                        cpl_size * pulines)</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> {</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>     cpl_errorstate     prestate;</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>       sigma = wfwhm * CPL_MATH_SIG_FWHM;</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>     <span class="keyword">const</span> cpl_vector * xlines  = cpl_bivector_get_x_const(lines);</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>     * dxlines = cpl_vector_get_data_const(xlines);</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>     * dylines = cpl_bivector_get_y_data_const(lines);</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>     <span class="keywordtype">double</span>           * plinepix</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>         = linepix ? cpl_vector_get_data(linepix) : NULL;</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>          nlines  = cpl_vector_get_size(xlines);</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>          nself   = cpl_vector_get_size(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>     <span class="keywordtype">double</span>           * dself   = cpl_vector_get_data(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>     cpl_polynomial   * dispi;</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>     <span class="keywordtype">double</span>           * profile = NULL;</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>     <span class="keyword">const</span> cpl_size     i0 = 0;</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>       p0 = cpl_polynomial_get_coeff(disp, &i0);</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>     <span class="keywordtype">double</span>             wl;</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>     <span class="keywordtype">double</span>             xpos = (double)(1-hsize)-xtrunc;</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>       xmax = (double)(nself-hsize)+xtrunc;</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>     <span class="keywordtype">double</span>             xderiv, xextreme;</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>     cpl_error_code     error = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>     <span class="keywordtype">int</span>                iline;</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>     cpl_size           ulines = 0;</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> </div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>     cpl_ensure_code(<span class="keyword">self</span>    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>     cpl_ensure_code(disp    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>     cpl_ensure_code(lines   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> </div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>     cpl_ensure_code(wslit  >  0.0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>     cpl_ensure_code(wfwhm  >  0.0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>     cpl_ensure_code(hsize  >= 0,   CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>     cpl_ensure_code(xtrunc >  0.0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>     cpl_ensure_code(nself  > 2 * hsize, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> </div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>     cpl_ensure_code(cpl_polynomial_get_dimension(disp) == 1,</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>                     CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>     cpl_ensure_code(cpl_polynomial_get_degree(disp) > 0,</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>                     CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span> </div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>     <span class="comment">/* The smallest wavelength contributing to the spectrum. */</span></div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>     wl = cpl_polynomial_eval_1d(disp, xpos, &xderiv);</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> </div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>     <span class="keywordflow">if</span> (wl <= 0.0) <span class="keywordflow">return</span></div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>         cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_INPUT, __FILE__,</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>                                     __LINE__, <span class="stringliteral">"Non-positive wavelength at x=%g: "</span></div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>                                     <span class="stringliteral">"P(x)=%g, P'(x)=%g"</span>, xpos, wl, xderiv);</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>     <span class="keywordflow">if</span> (xderiv <= 0.0) <span class="keywordflow">return</span></div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>         cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_INPUT, __FILE__,</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>                                     __LINE__, <span class="stringliteral">"Non-increasing dispersion at "</span></div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>                                     <span class="stringliteral">"x=%g: P'(x)=%g, P(x)=%g"</span>, xpos, xderiv, wl);</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> </div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>     <span class="comment">/* Find the 1st line */</span></div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>     iline = cpl_vector_find(xlines, wl);</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> </div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>     <span class="comment">/* The first line must be at least at wl */</span></div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>     <span class="keywordflow">if</span> (dxlines[iline] < wl) iline++;</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> </div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>     <span class="keywordflow">if</span> (iline >= nlines) <span class="keywordflow">return</span></div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>         cpl_error_set_message_macro(cpl_func, CPL_ERROR_DATA_NOT_FOUND, __FILE__,</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>                                     __LINE__, <span class="stringliteral">"The %d-line catalogue has only "</span></div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>                                     <span class="stringliteral">"lines below P(%g)=%g > %g"</span>, nlines, xpos,</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>                                     wl, dxlines[nlines-1]);</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> </div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>     memset(dself, 0, nself * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> </div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>     dispi = cpl_polynomial_duplicate(disp);</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> </div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>     <span class="comment">/* Verify monotony of dispersion */</span></div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>     cpl_polynomial_derivative(dispi, 0);</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span> </div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>     prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span> </div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>     <span class="keywordflow">if</span> (cpl_polynomial_solve_1d(dispi, 0.5*(nlines+1), &xextreme, 1)) {</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>         cpl_errorstate_set(prestate);</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (xpos < xextreme && xextreme < xmax) {</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>         cpl_polynomial_delete(dispi);</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>         <span class="keywordflow">return</span> cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>                                            __FILE__, __LINE__, <span class="stringliteral">"Non-monotone "</span></div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>                                            <span class="stringliteral">"dispersion at x=%g: P'(x)=0, "</span></div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>                                            <span class="stringliteral">"P(x)=%g"</span>, xextreme,</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>                                            cpl_polynomial_eval_1d(disp, xextreme,</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>                                                                   NULL));</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>     }</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span> </div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>     <span class="keywordflow">if</span> (dofast) {</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>         <span class="keyword">const</span> <span class="keywordtype">int</span> npix = 1+(int)xtrunc;</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> </div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>         <span class="keywordflow">if</span> (erftmp != NULL && cpl_vector_get_size(erftmp) == npix &&</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>             cpl_vector_get(erftmp, 0) > 0.0) {</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>             profile = cpl_vector_get_data(erftmp);</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> </div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> yval =  0.5 / wslit;</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> x0p  =  0.5 * wslit + 0.5;</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> x0n  = -0.5 * wslit + 0.5;</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>             <span class="keywordtype">double</span>       x1diff</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>                 = <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(x0p, sigma)</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>                 - <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(x0n, sigma);</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>             <span class="keywordtype">int</span>          ipix;</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> </div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>             <span class="keywordflow">if</span> (erftmp == NULL) {</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>                 profile = (<span class="keywordtype">double</span>*)cpl_malloc(<span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)*(size_t)npix);</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>                 cpl_vector_set_size(erftmp, npix);</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>                 profile = cpl_vector_get_data(erftmp);</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>             }</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> </div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>             profile[0] = 2.0 * yval * x1diff;</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> </div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>             <span class="keywordflow">for</span> (ipix = 1; ipix < npix; ipix++) {</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> x1 = (double)ipix;</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> x1p = x1 + 0.5 * wslit + 0.5;</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> x1n = x1 - 0.5 * wslit + 0.5;</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> x0diff = x1diff;</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span> </div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>                 x1diff = <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(x1p, sigma)</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>                     - <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(x1n, sigma);</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> </div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>                 profile[ipix] = yval * (x1diff - x0diff);</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span> </div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>             }</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>         }</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>     }</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span> </div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>     cpl_polynomial_copy(dispi, disp);</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> </div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>     <span class="comment">/* FIXME: A custom version of cpl_polynomial_solve_1d() which returns</span></div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span> <span class="comment">       P'(xpos) can be used for the 1st NR-iteration. */</span></div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>     <span class="comment">/* Further, the sign of P'(xpos) could be checked for all lines. */</span></div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>     <span class="comment">/* Perform 1st NR-iteration in solving for P(xpos) = dxlines[iline] */</span></div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>     xpos -= (wl - dxlines[iline]) / xderiv;</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> </div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>     <span class="comment">/* Iterate through the lines */</span></div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>     <span class="keywordflow">for</span> (; !error && iline < nlines; iline++) {</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>         <span class="comment">/* Lines may have a non-physical intensity (e.g. zero) to indicate some</span></div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span> <span class="comment">           property of the line, e.g. unknown intensity due to blending */</span></div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>         <span class="keywordflow">if</span> (dylines[iline] <= 0.0) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span> </div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>         <span class="comment">/* Use 1st guess, if available (Use 0.0 to flag unavailable) */</span></div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>         <span class="keywordflow">if</span> (plinepix != NULL && plinepix[iline] > 0.0) xpos = plinepix[iline];</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> </div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>         <span class="keywordflow">if</span> (xpos > xmax) xpos = xmax; <span class="comment">/* FIXME: Better to limit xpos ? */</span></div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> </div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>         <span class="comment">/* Find the (sub-) pixel position of the line */</span></div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>         error = cpl_polynomial_set_coeff(dispi, &i0, p0 - dxlines[iline]) ||</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>             cpl_polynomial_solve_1d(dispi, xpos, &xpos, 1);</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> </div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>         <span class="keywordflow">if</span> (xpos > xmax) {</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>             <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>                 error = 0;</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>                 cpl_msg_debug(cpl_func, <span class="stringliteral">"Stopping spectrum fill at line %d/%d "</span></div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>                              <span class="stringliteral">"at xpos=%g > xmax=%g"</span>,</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>                              iline, nlines, xpos, xmax);</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>                 cpl_errorstate_dump(prestate, CPL_FALSE,</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>                                     <a class="code" href="group__irplib__utils.html#ga26c6209e5df98978e2922a15b47b47d1" title="Dump a single CPL error at the CPL debug level.">irplib_errorstate_dump_debug</a>);</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>                 cpl_errorstate_set(prestate);</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>             }</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>             <span class="keywordflow">if</span> (linepix != NULL && ulines) (void)cpl_vector_fill(linepix, 0.0);</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>             (void)cpl_error_set_message_macro(cpl_func, cpl_error_get_code(),</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>                                               __FILE__, __LINE__,</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>                                               <span class="stringliteral">"Could not find pixel-position "</span></div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>                                               <span class="stringliteral">"of line %d/%d at wavelength=%g."</span></div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>                                               <span class="stringliteral">" xpos=%g, xmax=%g"</span>,</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>                                               iline, nlines, dxlines[iline],</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>                                               xpos, xmax);</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (dofast) {</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> frac  = fabs(xpos - floor(xpos));</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span> <span class="preprocessor">#ifdef IRPLIB_WAVECAL_FAST_FAST</span></div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> <span class="preprocessor"></span>            <span class="keyword">const</span> <span class="keywordtype">double</span> frac0 = 1.0 - frac; <span class="comment">/* Weight opposite of distance */</span></div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span> <span class="preprocessor"></span>            <span class="comment">/* Center intensity correctly */</span></div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> ep1pw = <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(frac + 0.5 * wslit, sigma);</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> en1pw = <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(frac + 0.5 * wslit - 1.0,</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>                                                       sigma);</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> ep1nw = <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(frac - 0.5 * wslit, sigma);</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> en1nw = <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(frac - 0.5 * wslit - 1.0,</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>                                                       sigma);</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> frac0</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>                 = (en1nw - en1pw) / (ep1pw - en1pw - ep1nw + en1nw);</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> </div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span> <span class="preprocessor"></span>            <span class="keyword">const</span> <span class="keywordtype">double</span> frac1 = 1.0 - frac0;</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> yval0 = frac0 * dylines[iline];</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> yval1 = frac1 * dylines[iline];</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>             <span class="keyword">const</span> <span class="keywordtype">int</span>    npix  = 1+(int)xtrunc;</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>             <span class="keywordtype">int</span>          ipix;</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>             <span class="keywordtype">int</span>          i0n    = hsize - 1 + floor(xpos);</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>             <span class="keywordtype">int</span>          i0p    = i0n;</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>             <span class="keywordtype">int</span>          i1n    = i0n + 1;</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>             <span class="keywordtype">int</span>          i1p    = i1n;</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>             cpl_boolean  didline = CPL_FALSE;</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span> </div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> </div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>             <span class="comment">/* Update 1st guess for next time, if available */</span></div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>             <span class="keywordflow">if</span> (plinepix != NULL) plinepix[iline] =  xpos;</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> </div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>             <span class="keywordflow">if</span> (frac0 < 0.0) {</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>                 (void)cpl_error_set_message_macro(cpl_func,</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>                                                   CPL_ERROR_UNSPECIFIED,</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>                                                   __FILE__, __LINE__,</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>                                                   <span class="stringliteral">"Illegal split at x=%g: %g + "</span></div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>                                                   <span class="stringliteral">"%g = 1"</span>, xpos, frac0, frac1);</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span> <span class="preprocessor">#ifdef IRPLIB_WAVEVAL_DEBUG</span></div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span> <span class="preprocessor"></span>            } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>                 cpl_msg_warning(cpl_func,<span class="stringliteral">"profile split at x=%g: %g + %g = 1"</span>,</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>                                 xpos, frac0, frac1);</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> <span class="preprocessor"></span>            }</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span> </div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>             <span class="keywordflow">for</span> (ipix = 0; ipix < npix; ipix++, i0n--, i0p++, i1n--, i1p++) {</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> </div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>                 <span class="keywordflow">if</span> (i0n >= 0 && i0n < nself) {</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>                     dself[i0n] += yval0 * profile[ipix];</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>                     didline = CPL_TRUE;</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>                 }</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>                 <span class="keywordflow">if</span> (i1n >= 0 && i1n < nself && ipix + 1 < npix) {</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>                     dself[i1n] += yval1 * profile[ipix+1];</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>                     didline = CPL_TRUE;</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>                 }</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> </div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>                 <span class="keywordflow">if</span> (ipix == 0) <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> </div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>                 <span class="keywordflow">if</span> (i0p >= 0 && i0p < nself) {</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>                     dself[i0p] += yval0 * profile[ipix];</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>                     didline = CPL_TRUE;</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>                 }</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>                 <span class="keywordflow">if</span> (i1p >= 0 && i1p < nself && ipix + 1 < npix) {</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>                     dself[i1p] += yval1 * profile[ipix+1];</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>                     didline = CPL_TRUE;</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>                 }</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>             }</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span> </div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>             <span class="keywordflow">if</span> (didline) ulines++;</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span> </div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> yval = 0.5 * dylines[iline] / wslit;</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>             <span class="keyword">const</span> <span class="keywordtype">int</span>    ifirst = IRPLIB_MAX((<span class="keywordtype">int</span>)(xpos-xtrunc+0.5), 1-hsize);</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>             <span class="keyword">const</span> <span class="keywordtype">int</span>    ilast  = IRPLIB_MIN((<span class="keywordtype">int</span>)(xpos+xtrunc), nself-hsize);</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>             <span class="keywordtype">int</span>          ipix;</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> x0 = (double)ifirst - xpos;</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> x0p = x0 + 0.5*wslit - 0.5;</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> x0n = x0 - 0.5*wslit - 0.5;</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>             <span class="keywordtype">double</span>       x1diff</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>                 = <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(x0p, sigma)</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>                 - <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(x0n, sigma);</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span> </div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>             <span class="comment">/* Update 1st guess for next time, if available */</span></div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>             <span class="keywordflow">if</span> (plinepix != NULL) plinepix[iline] =  xpos;</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span> </div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>             <span class="keywordflow">if</span> (ilast >= ifirst) ulines++;</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span> </div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>             <span class="keywordflow">for</span> (ipix = ifirst; ipix <= ilast; ipix++) {</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> x1 = (double)ipix - xpos;</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> x1p = x1 + 0.5*wslit + 0.5;</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> x1n = x1 - 0.5*wslit + 0.5;</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> x0diff = x1diff;</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span> </div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>                 x1diff = <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(x1p, sigma)</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>                     - <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(x1n, sigma);</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span> </div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>                 dself[ipix+hsize-1] += yval * (x1diff - x0diff);</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span> </div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>             }</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>         }</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>     }</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span> </div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>     cpl_polynomial_delete(dispi);</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>     <span class="keywordflow">if</span> (erftmp == NULL) cpl_free(profile);</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span> </div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>     cpl_ensure_code(!error, cpl_error_get_code());</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span> </div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>     <span class="keywordflow">if</span> (dolog) {</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>         <span class="keywordflow">for</span> (i = 0; i < nself; i++) {</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>             dself[i] = dself[i] > 0.0 ? log(1.0 + dself[i]) : 0.0;</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>         }</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>     }</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span> </div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>     <span class="keywordflow">if</span> (!ulines) <span class="keywordflow">return</span></div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>         cpl_error_set_message_macro(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>                                     __FILE__, __LINE__, <span class="stringliteral">"The %d-line "</span></div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>                                     <span class="stringliteral">"catalogue has no lines in the range "</span></div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>                                     <span class="stringliteral">"%g -> P(%g)=%g"</span>, nlines, wl, xmax,</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>                                     cpl_polynomial_eval_1d(disp, xmax, NULL));</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> </div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>     <span class="keywordflow">if</span> (pulines != NULL) *pulines = ulines;</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> </div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span> }</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span> </div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01363"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f"> 1363</a></span> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(<span class="keywordtype">double</span> x, <span class="keywordtype [...]
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span> {</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>     <span class="keywordflow">return</span> x * erf( x / (sigma * CPL_MATH_SQRT2))</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>        + 2.0 * sigma/CPL_MATH_SQRT2PI * exp(-0.5 * x * x / (sigma * sigma));</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span> }</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span> </div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span> </div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span> <span class="preprocessor">#ifdef HAVE_GSL</span></div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span> <span class="keyword">static</span> <span class="keywordtype">double</span> irplib_gsl_correlation(<span class="keyword">const</span> gsl_vector * <span class="keyword">self</span>, <span class="keywordtype">void</span> * data)</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span> {</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span> </div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>     <a class="code" href="structirplib__multimin.html">irplib_multimin</a> * mindata = (<a class="code" href="structirplib__multimin.html">irplib_multimin</a> *)data;</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>     cpl_errorstate prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>     <span class="keywordtype">int</span> nobs, nmodel, ndiff;</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>     cpl_size i;</div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span> </div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>     cpl_ensure(<span class="keyword">self</span> != NULL, CPL_ERROR_NULL_INPUT, GSL_NAN);</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>     cpl_ensure(data != NULL, CPL_ERROR_NULL_INPUT, GSL_NAN);</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span> </div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>     cpl_ensure(mindata->filler   != NULL, CPL_ERROR_NULL_INPUT, GSL_NAN);</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>     cpl_ensure(mindata->observed != NULL, CPL_ERROR_NULL_INPUT, GSL_NAN);</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>     cpl_ensure(mindata->spectrum != NULL, CPL_ERROR_NULL_INPUT, GSL_NAN);</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span> </div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>     nobs   = cpl_vector_get_size(mindata->observed);</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>     nmodel = cpl_vector_get_size(mindata->spectrum);</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>     ndiff  = nmodel - nobs;</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span> </div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>     cpl_ensure((ndiff & 1) == 0, CPL_ERROR_ILLEGAL_INPUT, GSL_NAN);</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> </div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>     cpl_ensure(cpl_vector_get_size(mindata->vxc) == 1 + ndiff,</div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>                CPL_ERROR_ILLEGAL_INPUT, GSL_NAN);</div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span> </div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>     ndiff /= 2;</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span> </div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>     <span class="keywordflow">for</span> (i=0; i < (cpl_size)self->size; i++) {</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> value = gsl_vector_get(<span class="keyword">self</span>, (<span class="keywordtype">size_t</span>)i);</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>         cpl_polynomial_set_coeff(mindata->disp1d, &i, value);</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>     }</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> </div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>     <span class="comment">/* Shift reference by -ndiff so filler can be used without offset.</span></div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> <span class="comment">       The subsequent polynomial shift is reduced by -ndiff. */</span></div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>     cpl_ensure_code(!cpl_polynomial_shift_1d(mindata->disp1d, 0, -ndiff),</div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>                     cpl_error_get_code());</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span> </div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>     <span class="keywordflow">if</span> (mindata->filler(mindata->spectrum, mindata->disp1d,</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>                         mindata->param)</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>         || !cpl_errorstate_is_equal(prestate)) {</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span> </div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>         <span class="comment">/* The fill failed. Ensure the discarding of this candidate by</span></div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span> <span class="comment">           setting the cross-correlation to its minimum possible value. */</span></div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span> </div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>         (void)cpl_vector_fill(mindata->vxc, -1.0);</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span> </div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>         mindata->maxxc = ndiff;</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span> </div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>         <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(prestate)) {</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>                 cpl_msg_debug(cpl_func, <span class="stringliteral">"Spectrum fill failed:"</span>);</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>                 cpl_errorstate_dump(prestate, CPL_FALSE,</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>                                     <a class="code" href="group__irplib__utils.html#ga26c6209e5df98978e2922a15b47b47d1" title="Dump a single CPL error at the CPL debug level.">irplib_errorstate_dump_debug</a>);</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>                 cpl_errorstate_set(prestate);</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>         }</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span> </div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>         mindata->maxxc = cpl_vector_correlate(mindata->vxc,</div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>                                               mindata->spectrum,</div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>                                               mindata->observed);</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>     }</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> </div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="preprocessor">#ifdef IRPLIB_SPC_DUMP</span></div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> <span class="preprocessor"></span>    <span class="comment">/* Need irplib_wavecal.c rev. 1.12 through 1.15 */</span></div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>     irplib_polynomial_dump_corr_step(mindata->disp1d, mindata->vxc,</div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>                                      <span class="stringliteral">"Optimize"</span>);</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>     mindata->xc = cpl_vector_get(mindata->vxc, ndiff);</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span> </div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>     <span class="keywordflow">if</span> (mindata->maxxc != ndiff &&</div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>         cpl_vector_get(mindata->vxc, mindata->maxxc) > mindata->mxc) {</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>         <span class="keyword">const</span> <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * arclamp</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>             = (<span class="keyword">const</span> <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *)mindata->param;</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span> </div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>         if (mindata->mdisp == NULL) {</div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>             mindata->mdisp = cpl_polynomial_duplicate(mindata->disp1d);</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>             cpl_polynomial_copy(mindata->mdisp, mindata->disp1d);</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>         }</div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>         mindata->mxc = cpl_vector_get(mindata->vxc, mindata->maxxc);</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>         mindata->ishift = mindata->maxxc; <span class="comment">/* Offset -ndiff pre-shifted above */</span></div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>         cpl_msg_debug(cpl_func, <span class="stringliteral">"Local maximum: %g(%d) > %g(%d) (cost=%u:%u. "</span></div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>                       <span class="stringliteral">"lines=%u)"</span>, mindata->mxc, mindata->maxxc, mindata->xc,</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>                       ndiff, (<span class="keywordtype">unsigned</span>)arclamp->cost, (<span class="keywordtype">unsigned</span>)arclamp->xcost,</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>                       (<span class="keywordtype">unsigned</span>)arclamp->ulines);</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>     }</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span> </div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>     <span class="keywordflow">return</span> -mindata->xc;</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> }</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span> </div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span> cpl_error_code</div>
-<div class="line"><a name="l01496"></a><span class="lineno"><a class="code" href="group__irplib__wavecal.html#ga7e782bcb7ec0e638a93dba628916a7a8"> 1496</a></span> <a class="code" href="group__irplib__wavecal.html#ga7e782bcb7ec0e638a93dba628916a7a8" title="Modify self by maximizing the cross-correlation across all maxima.">irplib_polynomial_find_1d_from_correlation_all</a>(cpl_polynomial * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>                                                <span class="keywordtype">int</span> maxdeg,</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>                                                <span class="keyword">const</span> cpl_vector * obs,</div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>                                                <span class="keywordtype">int</span> nmaxima,</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>                                                <span class="keywordtype">int</span> linelim,</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>                                                <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a>* model,</div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>                                                cpl_error_code (* filler)</div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>                                                (cpl_vector *,</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>                                                 <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>                                                 <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *),</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>                                                <span class="keywordtype">double</span> pixtol,</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>                                                <span class="keywordtype">double</span> pixstep,</div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>                                                <span class="keywordtype">int</span> hsize,</div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>                                                <span class="keywordtype">int</span> maxite,</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>                                                <span class="keywordtype">int</span> maxfail,</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>                                                <span class="keywordtype">int</span> maxcont,</div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>                                                cpl_boolean doplot,</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>                                                <span class="keywordtype">double</span> * pxc)</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span> {</div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span> </div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span> <span class="preprocessor">#ifdef HAVE_GSL</span></div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>     cpl_errorstate     prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>     cpl_polynomial   * start;</div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>     cpl_polynomial   * cand;</div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>     cpl_polynomial   * backup;</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>     cpl_error_code     error = CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>     <span class="keywordtype">double</span>             xc;</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>     cpl_bivector     * xtshift = cpl_bivector_new(nmaxima ? nmaxima : 1);</div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>     <span class="keyword">const</span> cpl_vector * xtshiftx = cpl_bivector_get_x_const(xtshift);</div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>     <span class="keyword">const</span> cpl_vector * xtshifty = cpl_bivector_get_y_const(xtshift);</div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>     <span class="keywordtype">int</span>                nshift;</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>     <span class="keywordtype">int</span>                imaximum = -1;</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>     <span class="keywordtype">int</span>                imaxima;</div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span> </div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>     cpl_ensure_code(<span class="keyword">self</span>   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>     cpl_ensure_code(obs    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>     cpl_ensure_code(model  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>     cpl_ensure_code(filler != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>     cpl_ensure_code(pxc    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span> </div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>     cpl_ensure_code(cpl_polynomial_get_dimension(<span class="keyword">self</span>) == 1,</div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>                     CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span> </div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>     cpl_ensure_code(cpl_polynomial_get_degree(<span class="keyword">self</span>) > 0,</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>                     CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span> </div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>     cpl_ensure_code(maxdeg  >=  0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>     cpl_ensure_code(pixtol  > 0.0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>     cpl_ensure_code(pixstep > 0.0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>     cpl_ensure_code(hsize   >=  0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>     cpl_ensure_code(maxite  >=  0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>     cpl_ensure_code(nmaxima >=  0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>     cpl_ensure_code(maxfail >   0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>     cpl_ensure_code(maxcont >   0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>     cpl_ensure_code(linelim >=  0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span> </div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span> <span class="preprocessor">#ifndef HAVE_GSL</span></div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span> <span class="preprocessor"></span>    <span class="comment">/* Avoid unused variable warning */</span></div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>     cpl_ensure_code(doplot == CPL_TRUE || doplot == CPL_FALSE,</div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>                     CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>     <span class="keywordflow">return</span> cpl_error_set_message(cpl_func, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>                                  <span class="stringliteral">"GSL is not available"</span>);</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>     <span class="keywordflow">if</span> (<a class="code" href="group__irplib__wavecal.html#ga260740bf1f3fc364b301519eab3249a6" title="Find shift(s) that maximizes (locally) the cross-correlation.">irplib_bivector_find_shift_from_correlation</a>(xtshift, <span class="keyword">self</span>, obs,</div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>                                                     model, filler,</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>                                                     hsize, doplot, &xc)) {</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>         cpl_bivector_delete(xtshift);</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>         <span class="keywordflow">return</span> cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>     }</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span> </div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>     <span class="keywordflow">if</span> (model->ulines > (cpl_size)linelim) {</div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>         <span class="comment">/* The initial, optimal (integer) shift */</span></div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> xxc = cpl_vector_get(xtshiftx, 0);</div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> xc0 = cpl_vector_get(xtshifty, 0);</div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span> </div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>         cpl_msg_warning(cpl_func, <span class="stringliteral">"Doing only shift=%g pixels with lines=%u > "</span></div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>                         <span class="stringliteral">"%d and XC=%g"</span>, xxc, (<span class="keywordtype">unsigned</span>)model->ulines, linelim,</div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>                         xc0);</div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span> </div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>         cpl_polynomial_shift_1d(<span class="keyword">self</span>, 0, xxc);</div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span> </div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>         *pxc = xc0;</div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span> </div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>         cpl_bivector_delete(xtshift);</div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span> </div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>         <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>     }</div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span> </div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>     start  = cpl_polynomial_duplicate(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>     cand   = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>     backup = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span> </div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>     <span class="comment">/* Number of (local) maxima to use as starting point of the optimization */</span></div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>     nshift = cpl_bivector_get_size(xtshift);</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>     <span class="keywordflow">if</span> (nmaxima == 0 || nmaxima > nshift) nmaxima = nshift;</div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span> </div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Optimizing %d/%d local shift-maxima "</span></div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>                  <span class="stringliteral">"(no-shift xc=%g. linelim=%d)"</span>, nmaxima, nshift, xc, linelim);</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>     <span class="keywordflow">if</span> (cpl_msg_get_level() <= CPL_MSG_DEBUG)</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>         cpl_bivector_dump(xtshift, stdout);</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span> </div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>     <span class="keywordflow">for</span> (imaxima = 0; imaxima < nmaxima; imaxima++) {</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>         <span class="comment">/* The initial, optimal (integer) shift */</span></div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> xxc = cpl_vector_get(xtshiftx, imaxima);</div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>         <span class="keywordtype">double</span> xtpixstep = pixstep;</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>         <span class="keywordtype">double</span> xtpixtol  = pixtol;</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>         <span class="keywordtype">double</span> xtxc;</div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>         cpl_boolean ok = CPL_FALSE;</div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>         <span class="keywordtype">int</span> nfail;</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span> </div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span> </div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>         cpl_polynomial_copy(cand, start);</div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>         cpl_polynomial_shift_1d(cand, 0, xxc);</div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>         cpl_polynomial_copy(backup, cand);</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span> </div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>         <span class="comment">/* Increase tolerance until convergence */</span></div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>         <span class="keywordflow">for</span> (nfail = 0; nfail < maxfail; nfail++, xtpixtol *= 2.0,</div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>                  xtpixstep *= 2.0) {</div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>             <span class="keywordtype">int</span> restart = maxcont;</div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>             cpl_boolean redo;</div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span> </div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>             <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>                 <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>                     cpl_errorstate_dump(prestate, CPL_FALSE,</div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>                                         <a class="code" href="group__irplib__utils.html#ga26c6209e5df98978e2922a15b47b47d1" title="Dump a single CPL error at the CPL debug level.">irplib_errorstate_dump_debug</a>);</div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>                     cpl_errorstate_set(prestate);</div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>                 }</div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>                 error = irplib_polynomial_find_1d_from_correlation_</div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>                     (cand, maxdeg, obs, model,</div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>                      filler, xtpixtol, xtpixstep, 2,</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>                      maxite, &xtxc, &redo);</div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>                 <span class="keywordflow">if</span> (redo && !error) error = CPL_ERROR_CONTINUE;</div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>             } <span class="keywordflow">while</span> (((!error && redo) || error == CPL_ERROR_CONTINUE)</div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>                      && --restart);</div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span> </div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>             <span class="keywordflow">if</span> (!error && !redo) {</div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>                 cpl_msg_debug(cpl_func, <span class="stringliteral">"XC(imax=%d/%d:xtpixtol=%g): %g "</span></div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>                               <span class="stringliteral">"(cost=%u:%u)"</span>, 1+imaxima, nmaxima, xtpixtol,</div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>                               xtxc, (<span class="keywordtype">unsigned</span>)model->cost,</div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>                               (<span class="keywordtype">unsigned</span>)model->xcost);</div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>             }</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>             cpl_msg_warning(cpl_func, <span class="stringliteral">"Increasing xtpixtol from %g (%g, imax="</span></div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>                             <span class="stringliteral">"%d/%d)"</span>, xtpixtol, xtpixstep, 1+imaxima, nmaxima);</div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>             <span class="keywordflow">if</span> (model->ulines > (cpl_size)linelim) {</div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>                 cpl_msg_warning(cpl_func, <span class="stringliteral">"Stopping search-refinement via "</span></div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>                                 <span class="stringliteral">"catalogue with %u lines > %d"</span>,</div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>                                 (<span class="keywordtype">unsigned</span>)model->ulines, linelim);</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>             }</div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>             cpl_polynomial_copy(cand, start);</div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>         }</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span> </div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>         <span class="comment">/* Decrease tolerance until divergence, keep previous */</span></div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>         <span class="keywordflow">for</span> (; !error && xtpixtol > 0.0; xtpixtol *= 0.25, xtpixstep *= 0.5) {</div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>             <span class="keywordtype">int</span> restart = maxcont;</div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>             cpl_boolean redo;</div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span> </div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>             cpl_polynomial_copy(backup, cand);</div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>             <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>                 <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>                     cpl_errorstate_dump(prestate, CPL_FALSE,</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>                                         <a class="code" href="group__irplib__utils.html#ga26c6209e5df98978e2922a15b47b47d1" title="Dump a single CPL error at the CPL debug level.">irplib_errorstate_dump_debug</a>);</div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>                     cpl_errorstate_set(prestate);</div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>                 }</div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>                 error = irplib_polynomial_find_1d_from_correlation_</div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>                     (cand, maxdeg, obs, model, filler,</div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>                      xtpixtol, xtpixstep, 2, maxite, &xtxc, &redo);</div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>                 <span class="keywordflow">if</span> (redo && !error) error = CPL_ERROR_CONTINUE;</div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>             } <span class="keywordflow">while</span> (((!error && redo) || error == CPL_ERROR_CONTINUE)</div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>                      && --restart);</div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>             <span class="keywordflow">if</span> (error) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>             ok = CPL_TRUE;</div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>             <span class="keywordflow">if</span> (redo) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>             cpl_msg_debug(cpl_func, <span class="stringliteral">"XC(imax=%d/%d:xtpixtol=%g): %g (cost=%u:%u"</span></div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>                           <span class="stringliteral">". ulines=%u)"</span>, 1+imaxima, nmaxima, xtpixtol, xtxc,</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>                           (<span class="keywordtype">unsigned</span>)model->cost, (<span class="keywordtype">unsigned</span>)model->xcost,</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>                           (<span class="keywordtype">unsigned</span>)model->ulines);</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>             <span class="keywordflow">if</span> (model->ulines > (cpl_size)linelim) {</div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>                 cpl_msg_info(cpl_func, <span class="stringliteral">"Stopping search-refinement via "</span></div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>                              <span class="stringliteral">"catalogue with %u lines > %u"</span>,</div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>                              (<span class="keywordtype">unsigned</span>)model->ulines, linelim);</div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>             }</div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>         }</div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span> </div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>         <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>             error = 0;</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>             cpl_errorstate_dump(prestate, CPL_FALSE,</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>                                 <a class="code" href="group__irplib__utils.html#ga26c6209e5df98978e2922a15b47b47d1" title="Dump a single CPL error at the CPL debug level.">irplib_errorstate_dump_debug</a>);</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>             cpl_errorstate_set(prestate);</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>             cpl_polynomial_copy(cand, backup);</div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>         }</div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>         <span class="keywordflow">if</span> (ok && xtxc > xc) {</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>             imaximum = imaxima;</div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>             cpl_polynomial_copy(<span class="keyword">self</span>, cand);</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>             xc = xtxc;</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span> </div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>             cpl_msg_info(cpl_func, <span class="stringliteral">"XC(imax=%d/%d): %g -> %g (initial-shift=%g. "</span></div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>                          <span class="stringliteral">"cost=%u:%u. lines=%u)"</span>, 1+imaxima, nmaxima,</div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>                          cpl_vector_get(xtshifty, imaxima), xtxc,</div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>                          cpl_vector_get(xtshiftx, imaxima),</div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>                          (<span class="keywordtype">unsigned</span>)model->cost, (<span class="keywordtype">unsigned</span>)model->xcost,</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>                          (<span class="keywordtype">unsigned</span>)model->ulines);</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>             cpl_msg_info(cpl_func, <span class="stringliteral">"xc(imax=%d/%d): %g -> %g (initial-shift=%g. "</span></div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>                          <span class="stringliteral">"cost=%u:%u. lines=%u)"</span>, 1+imaxima, nmaxima,</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>                          cpl_vector_get(xtshifty, imaxima), xtxc,</div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>                          cpl_vector_get(xtshiftx, imaxima),</div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>                          (<span class="keywordtype">unsigned</span>)model->cost, (<span class="keywordtype">unsigned</span>)model->xcost,</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>                          (<span class="keywordtype">unsigned</span>)model->ulines);</div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>         }</div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>     }</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span> </div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>     cpl_polynomial_delete(start);</div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>     cpl_polynomial_delete(backup);</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>     cpl_polynomial_delete(cand);</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span> </div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>     <span class="keywordflow">if</span> (imaximum < 0) {</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>       <span class="comment">/* The initial, optimal (integer) shift */</span></div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> xxc = cpl_vector_get(xtshiftx, 0);</div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> xc0 = cpl_vector_get(xtshifty, 0);</div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span> </div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>         error = cpl_error_set_message(cpl_func, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>                                       <span class="stringliteral">"Could not improve XC=%g over %d "</span></div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>                                       <span class="stringliteral">"local shift-maxima, best at shift %g"</span>,</div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>                                       xc0, nmaxima, xxc);</div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>         cpl_msg_info(cpl_func, <span class="stringliteral">"Maximal XC=%g (up from %g, with initial pixel-"</span></div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>                      <span class="stringliteral">"shift of %g) at %d/%d local shift-maximi"</span>, xc,</div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>                      cpl_vector_get(xtshifty, imaximum),</div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>                      cpl_vector_get(xtshiftx, imaximum),</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>                      1+imaximum, nmaxima);</div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span> </div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>         <span class="keywordflow">if</span> (doplot) {</div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>             <a class="code" href="group__irplib__wavecal.html#ga7bac402a4e2c60f7646f1e655a66833d" title="Plot a 1D spectrum and one from a model.">irplib_plot_spectrum_and_model</a>(obs, <span class="keyword">self</span>, model, filler);</div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>         }</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span> </div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>         *pxc = xc;</div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>     }</div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span> </div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>     cpl_bivector_delete(xtshift);</div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span> </div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>     <span class="keywordflow">return</span> error;</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span> </div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__wavecal_8h_source.html b/html/irplib__wavecal_8h_source.html
deleted file mode 100644
index 04b04b0..0000000
--- a/html/irplib__wavecal_8h_source.html
+++ /dev/null
@@ -1,238 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_wavecal.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_wavecal.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_wavecal.h,v 1.18 2012-08-03 21:05:33 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the IRPLIB Pipeline</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2012-08-03 21:05:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.18 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_WAVECAL_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WAVECAL_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">                                   Define</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#define IRPLIB_WAVECAL_MODEL_COEFFS       4</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span><span class="comment">/* The number of columns is 5 + IRPLIB_WAVECAL_MODEL_COEFFS */</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#define IRPLIB_WAVECAL_MODEL_COLS         9</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#define IRPLIB_WAVECAL_LAB_MODE           "SpecMode"</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WAVECAL_LAB_RESID          "Residual"</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WAVECAL_LAB_ORDER          "Fit_Order"</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WAVECAL_LAB_XMIN           "XMin"</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WAVECAL_LAB_XMAX           "XMax"</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WAVECAL_LAB_C1             "C_1"</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WAVECAL_LAB_C2             "C_2"</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WAVECAL_LAB_C3             "C_3"</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WAVECAL_LAB_C4             "C_4"</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#define IRPLIB_WAVECAL_LAB_WAVE           "WAVELENGTH"</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WAVECAL_LAB_INTENS         "INTENSITY"</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">                               New Types</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">/* Any spectrum model must have these members first! */</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="structirplib__base__spectrum__model.html">   65</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     cpl_size             cost;    <span class="comment">/* May be incremented for cost counting */</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     cpl_size             xcost;   <span class="comment">/* Ditto (can exclude failed fills) */</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     cpl_size             ulines;  <span class="comment">/* May be set to number of lines used */</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> } <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a>;</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno"><a class="code" href="structirplib__line__spectrum__model.html">   72</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     cpl_size             cost;    <span class="comment">/* May be incremented for cost counting */</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     cpl_size             xcost;   <span class="comment">/* Ditto (can exclude failed fills) */</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     cpl_size             ulines;  <span class="comment">/* May be set to number of lines used */</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     <span class="keywordtype">double</span>               wslit;  <span class="comment">/* Slit Width */</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     <span class="keywordtype">double</span>               wfwhm;  <span class="comment">/* FWHM of transfer function */</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>     <span class="keywordtype">double</span>               xtrunc; <span class="comment">/* Truncate transfer function beyond xtrunc,</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment">                                    xtrunc > 0 */</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keyword">const</span> cpl_bivector * lines;  <span class="comment">/* Catalogue of intensities, with</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">                                    increasing X-vector elements */</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     cpl_vector         * linepix;  <span class="comment">/* Catalogue of line pixel positions</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment">                                      - zero for uninitialized */</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>     cpl_vector         * erftmp;  <span class="comment">/* Temporary storage for erf() values</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">                                      - zero for uninitialized */</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> } <a class="code" href="structirplib__line__spectrum__model.html">irplib_line_spectrum_model</a>;</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment">                                   Function Prototypes</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> cpl_error_code</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <a class="code" href="group__irplib__wavecal.html#ga7e782bcb7ec0e638a93dba628916a7a8" title="Modify self by maximizing the cross-correlation across all maxima.">irplib_polynomial_find_1d_from_correlation_all</a>(cpl_polynomial *,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>                                                <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                                                <span class="keyword">const</span> cpl_vector *,</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>                                                <span class="keywordtype">int</span>, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                                                <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *,</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                                                cpl_error_code (*)</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                                                (cpl_vector *,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                                                 <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                                                 <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *),</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                                                <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>                                                <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                                                <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                                                <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                                                <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>                                                <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>                                                cpl_boolean,</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>                                                <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> cpl_error_code</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <a class="code" href="group__irplib__wavecal.html#ga260740bf1f3fc364b301519eab3249a6" title="Find shift(s) that maximizes (locally) the cross-correlation.">irplib_bivector_find_shift_from_correlation</a>(cpl_bivector *,</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>                                             <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>                                             <span class="keyword">const</span> cpl_vector *,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                                             <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *,</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                                             cpl_error_code (*)</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                                             (cpl_vector *,</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>                                              <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                                              <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *),</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>                                             <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>                                             cpl_boolean,</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>                                             <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> cpl_error_code</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <a class="code" href="group__irplib__wavecal.html#gadf93655e2c7c0d5df23e2e3de66d0b56" title="Shift self by the amount that maximizes the cross-correlation.">irplib_polynomial_shift_1d_from_correlation</a>(cpl_polynomial *,</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>                                             <span class="keyword">const</span> cpl_vector *,</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>                                             <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *,</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>                                             cpl_error_code (*)</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>                                             (cpl_vector *,</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>                                              <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>                                              <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *),</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>                                             <span class="keywordtype">int</span>, cpl_boolean, <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> cpl_error_code</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <a class="code" href="group__irplib__wavecal.html#ga8f49c4927c50a461288e8f19720dff86" title="Modify self by maximizing the cross-correlation.">irplib_polynomial_find_1d_from_correlation</a>(cpl_polynomial *, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>                                            <span class="keyword">const</span> cpl_vector *,</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>                                            <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *,</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>                                            cpl_error_code (*)</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>                                            (cpl_vector *,</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>                                             <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>                                             <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *),</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>                                            <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>                                            <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> cpl_error_code <a class="code" href="group__irplib__wavecal.html#ga1d49cb7f85fc246c8fdf38625c769f7a" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_line_spectrum</a>(cpl_vector *,</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>                                                 <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>                                                 <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *);</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> cpl_error_code <a class="code" href="group__irplib__wavecal.html#gad22539bf83d1b08d845ed5f618a4009f" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_logline_spectrum</a>(cpl_vector *,</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                                                    <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>                                                    <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *);</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> cpl_error_code</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <a class="code" href="group__irplib__wavecal.html#ga6a463d7816b4164fdd23a4df2805cc95" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_line_spectrum_fast</a>(cpl_vector *,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>                                       <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                                       <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *);</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> cpl_error_code</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <a class="code" href="group__irplib__wavecal.html#ga75a85320c74d1088eeaeec97974d793c" title="Generate a 1D spectrum from a model and a dispersion relation.">irplib_vector_fill_logline_spectrum_fast</a>(cpl_vector *,</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>                                          <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>                                          <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *);</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> cpl_error_code <a class="code" href="group__irplib__wavecal.html#ga7bac402a4e2c60f7646f1e655a66833d" title="Plot a 1D spectrum and one from a model.">irplib_plot_spectrum_and_model</a>(<span class="keyword">const</span> cpl_vector *,</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>                                               <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>                                               <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *,</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>                                               cpl_error_code (*)</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>                                               (cpl_vector *,</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>                                                <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>                                                <a class="code" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *));</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> cpl_error_code <a class="code" href="group__irplib__wavecal.html#ga2dd3251367e2ee8b8bd5ce080e9f31bb" title="Fit a 2D-dispersion from an image of wavelengths.">irplib_polynomial_fit_2d_dispersion</a>(cpl_polynomial *,</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>                                                    <span class="keyword">const</span> cpl_image *,</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>                                                    <span class="keywordtype">int</span>, <span class="keywordtype">double</span> *);</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="keywordtype">int</span> <a class="code" href="group__irplib__wavecal.html#ga03d7f038adc7e18e7a9071581fa47a25" title="Count the positive Y-entries in a given X-range.">irplib_bivector_count_positive</a>(<span class="keyword">const</span> cpl_bivector *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__wavecal__impl_8h_source.html b/html/irplib__wavecal__impl_8h_source.html
deleted file mode 100644
index ae6e769..0000000
--- a/html/irplib__wavecal__impl_8h_source.html
+++ /dev/null
@@ -1,116 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_wavecal_impl.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_wavecal_impl.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_wavecal_impl.h,v 1.7 2012-08-03 21:05:34 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the IRPLIB Pipeline</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2012-08-03 21:05:34 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.7 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_WAVECAL_IMPL_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WAVECAL_IMPL_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include "irplib_wavecal.h"</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                             Private Function Prototypes</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> cpl_error_code <a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761" title="Generate a 1D spectrum from (arc) lines and a dispersion relation.">irplib_vector_fill_line_spectrum_model</a>(cpl_vector *,</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>                                                       cpl_vector *,</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>                                                       cpl_vector *,</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>                                                       <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>                                                       <span class="keyword">const</span> cpl_bivector *,</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>                                                       <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>                                                       <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>                                                       <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span>                                                       <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>                                                       cpl_boolean,</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span>                                                       cpl_boolean,</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>                                                       cpl_size *);</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="keywordtype">double</span> <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__wcs-test_8c_source.html b/html/irplib__wcs-test_8c_source.html
deleted file mode 100644
index f852860..0000000
--- a/html/irplib__wcs-test_8c_source.html
+++ /dev/null
@@ -1,357 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_wcs-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li><li class="navelem"><a class="el" href="dir_40a404867a1885f5fad756cff9cd9f5a.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_wcs-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_wcs-test.c,v 1.9 2013-01-29 08:43:33 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO Common Pipeline Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2008 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-01-29 08:43:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.9 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include "irplib_wcs.h"</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">                                   Static functions</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wcs_all_test(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wcs_mjd_test(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">                                  Main</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a> (<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> {</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>     irplib_wcs_all_test();</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>     irplib_wcs_mjd_test();</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> }</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wcs_all_test(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> {</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>       xorig = 1.0;</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>       yorig = 2.0;</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     <span class="keywordtype">double</span>             xnew,ynew;</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     <span class="keywordtype">double</span>             ra, dec;</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     cpl_propertylist * prop_wcs; </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>     cpl_wcs *          wcs = NULL;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     cpl_error_code     error;</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>     </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     <span class="comment">/* Create WCS object */</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     prop_wcs = cpl_propertylist_new();</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>     cpl_test_nonnull(prop_wcs);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     cpl_propertylist_append_double(prop_wcs, <span class="stringliteral">"CRVAL1"</span>, 10.);</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>     cpl_propertylist_append_double(prop_wcs, <span class="stringliteral">"CRVAL2"</span>, 20.);</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>     cpl_propertylist_append_int(prop_wcs, <span class="stringliteral">"CRPIX1"</span>, 1);</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     cpl_propertylist_append_int(prop_wcs, <span class="stringliteral">"CRPIX2"</span>, 2);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     cpl_propertylist_append_double(prop_wcs, <span class="stringliteral">"CD1_1"</span>, 10.);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>     cpl_propertylist_append_double(prop_wcs, <span class="stringliteral">"CD1_2"</span>, 11.);</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     cpl_propertylist_append_double(prop_wcs, <span class="stringliteral">"CD2_1"</span>, 13.);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     cpl_propertylist_append_double(prop_wcs, <span class="stringliteral">"CD2_2"</span>, 14.);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     wcs = cpl_wcs_new_from_propertylist(prop_wcs);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     cpl_propertylist_delete(prop_wcs);</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NO_WCS) {</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>         cpl_msg_warning(cpl_func, <span class="stringliteral">"No WCS present. Tests disabled"</span>);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>         cpl_test_error(CPL_ERROR_NO_WCS);</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>         cpl_test_null(wcs);</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>         cpl_test_nonnull(wcs);</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>         <span class="comment">/* Test that a simple call to xytoradec does not fail*/</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>         error = irplib_wcs_xytoradec(wcs, xorig, yorig, &ra, &dec);</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>         <span class="comment">/* Get the transformation back and compare */</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>         error = irplib_wcs_radectoxy(wcs, ra, dec, &xnew, &ynew);</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>         cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>         cpl_test_abs(xnew, xorig, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>         cpl_test_abs(ynew, yorig, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>         <span class="comment">/* Error testing */</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>         error = irplib_wcs_xytoradec(wcs, xorig, yorig, NULL, &dec);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>         cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>         error = irplib_wcs_radectoxy(wcs, ra, dec, NULL, &ynew);</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>         cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>         error = irplib_wcs_xytoradec(wcs, xorig, yorig, &ra, NULL);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>         cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>         error = irplib_wcs_radectoxy(wcs, ra, dec, &xnew, NULL);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>         cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>         cpl_wcs_delete(wcs);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     }    </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     <span class="comment">/* Error testing */</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     error = irplib_wcs_xytoradec(NULL, xorig, yorig, &ra, &dec);</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     error = irplib_wcs_radectoxy(NULL, ra, dec, &xnew, &ynew);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> </div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> }</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wcs_mjd_test(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> {</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <span class="comment">/* Matching example from some VLT header */</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> * iso8601  = <span class="stringliteral">"2010-07-13T23:24:39.284"</span>;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> mjd  = 55390.97545467;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     <span class="comment">/* Two equal dates */</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> * iso8601a = <span class="stringliteral">"2010-07-13T24:00:00"</span>;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> * iso8601b = <span class="stringliteral">"2010-07-14T00:00:00.000"</span>;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> mstol = 1e-3/86400.0; <span class="comment">/* 1ms tolerance in MJD */</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     <span class="keywordtype">int</span> year, day, month, hour, minute;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     <span class="keywordtype">double</span> second;</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     <span class="keywordtype">double</span> tmjd, tmjd2;</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="comment">/* The MJD counts the number of days since November 17, 1858 */</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     <span class="comment">/* Test 1a: Conversion of MJD == 0 */</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     error = irplib_wcs_iso8601_from_mjd(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>                                         &minute, &second, 0.0);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     cpl_test_eq(year,  1858);</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     cpl_test_eq(month,   11);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     cpl_test_eq(day,     17);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     cpl_test_eq(hour,     0);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     cpl_test_eq(minute,   0);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     cpl_test_abs(second, 0.0, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     <span class="comment">/* Test 1b: - and convert back */</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     error = irplib_wcs_mjd_from_iso8601(&tmjd, year, month, day, hour, minute,</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                                         second);</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     cpl_test_abs(tmjd, 0.0, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     <span class="comment">/* Test 2: Conversion back and forth of some recent date */</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     error = irplib_wcs_iso8601_from_string(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>                                            &minute, &second, iso8601);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     error = irplib_wcs_mjd_from_iso8601(&tmjd, year, month, day, hour, minute,</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>                                         second);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     cpl_test_abs(mjd, tmjd, mstol);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     error = irplib_wcs_mjd_from_string(&tmjd, iso8601);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     cpl_test_abs(mjd, tmjd, mstol);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     error = irplib_wcs_iso8601_from_mjd(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>                                         &minute, &second, mjd);</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     error = irplib_wcs_mjd_from_iso8601(&tmjd, year, month, day, hour, minute,</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>                                         second);</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> </div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     cpl_test_abs(mjd, tmjd, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     <span class="comment">/* Test 3: 24:00:00 == 00.00.00 + 1 day */</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     error = irplib_wcs_iso8601_from_string(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>                                            &minute, &second, iso8601a);</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     error = irplib_wcs_mjd_from_iso8601(&tmjd, year, month, day, hour, minute,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                                         second);</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     error = irplib_wcs_iso8601_from_string(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                                            &minute, &second, iso8601b);</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     error = irplib_wcs_mjd_from_iso8601(&tmjd2, year, month, day, hour, minute,</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>                                         second);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     cpl_test_eq_error(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     cpl_test_abs(tmjd, tmjd2, 2.0 * DBL_EPSILON);</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <span class="comment">/* Test 4: Do not allow days from y10k */</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     error = irplib_wcs_iso8601_from_string(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>                                            &minute, &second,</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>                                            <span class="stringliteral">"10000-07-13T23:24:39.284"</span>);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     cpl_test_eq_error(error, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     <span class="comment">/* Test 5: Verify validation of length of a non-leap year month */</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     error = irplib_wcs_iso8601_from_string(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                                            &minute, &second,</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>                                            <span class="stringliteral">"2010-02-29T23:24:39.284"</span>);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     cpl_test_eq_error(error, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     <span class="comment">/* Test 6: NULL pointer checking */</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     error = irplib_wcs_mjd_from_iso8601(NULL, year, month, day, hour, minute,</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>                                         second);</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> </div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     error = irplib_wcs_iso8601_from_string(NULL, &month, &day, &hour,</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                                            &minute, &second, iso8601);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     error = irplib_wcs_iso8601_from_string(&year, NULL, &day, &hour,</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>                                            &minute, &second, iso8601);</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     error = irplib_wcs_iso8601_from_string(&year, &month, NULL, &hour,</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                                            &minute, &second, iso8601);</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     error = irplib_wcs_iso8601_from_string(&year, &month, &day, NULL,</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                                            &minute, &second, iso8601);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> </div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     error = irplib_wcs_iso8601_from_string(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>                                            NULL, &second, iso8601);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     error = irplib_wcs_iso8601_from_string(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>                                            &minute, NULL, iso8601);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> </div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     error = irplib_wcs_iso8601_from_string(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>                                            &minute, &second, NULL);</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     error = irplib_wcs_iso8601_from_mjd(NULL, &month, &day, &hour,</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                                         &minute, &second, mjd);</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     error = irplib_wcs_iso8601_from_mjd(&year, NULL, &day, &hour,</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>                                         &minute, &second, mjd);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     error = irplib_wcs_iso8601_from_mjd(&year, &month, NULL, &hour,</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>                                         &minute, &second, mjd);</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     error = irplib_wcs_iso8601_from_mjd(&year, &month, &day, NULL,</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                                         &minute, &second, mjd);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     error = irplib_wcs_iso8601_from_mjd(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>                                         NULL, &second, mjd);</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     error = irplib_wcs_iso8601_from_mjd(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                                         &minute, NULL, mjd);</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     cpl_test_eq_error(error, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__wcs_8c_source.html b/html/irplib__wcs_8c_source.html
deleted file mode 100644
index 48a4070..0000000
--- a/html/irplib__wcs_8c_source.html
+++ /dev/null
@@ -1,355 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_wcs.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_wcs.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_wcs.c,v 1.8 2010-10-07 14:10:55 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2010-10-07 14:10:55 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include "irplib_wcs.h"</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="keyword">static</span> cpl_error_code irplib_wcs_is_iso8601(<span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> cpl_error_code irplib_wcs_xytoradec(<span class="keyword">const</span> cpl_wcs *wcs,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>                                     <span class="keywordtype">double</span>         x,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>                                     <span class="keywordtype">double</span>         y,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>                                     <span class="keywordtype">double</span>        *ra,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>                                     <span class="keywordtype">double</span>        *dec)</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> {</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     cpl_matrix   * xy;</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     cpl_matrix   * radec  = NULL;</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     cpl_array    * status = NULL;</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     cpl_ensure_code(ra  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     cpl_ensure_code(dec != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     <span class="comment">/* Load up the information */</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     xy = cpl_matrix_new(1, 2);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>     cpl_matrix_set(xy, 0, 0, x);</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     cpl_matrix_set(xy, 0, 1, y);</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>     <span class="comment">/* Call the conversion routine */</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     error = cpl_wcs_convert(wcs, xy, &radec, &status, CPL_WCS_PHYS2WORLD);</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>     cpl_matrix_delete(xy);</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     <span class="keywordflow">if</span> (!error) {</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>         <span class="comment">/* Pass it back now */</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>         *ra  = cpl_matrix_get(radec, 0, 0);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>         *dec = cpl_matrix_get(radec, 0, 1);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     }</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="comment">/* Tidy and propagate error, if any */</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     cpl_matrix_delete(radec);</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     cpl_array_delete(status);</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>     <span class="keywordflow">return</span> cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> }</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> cpl_error_code irplib_wcs_radectoxy(<span class="keyword">const</span> cpl_wcs * wcs,</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>                                     <span class="keywordtype">double</span>          ra,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                                     <span class="keywordtype">double</span>          dec,</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                                     <span class="keywordtype">double</span>        * x,</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                                     <span class="keywordtype">double</span>        * y)</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> {</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     cpl_matrix   * radec;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     cpl_matrix   * xy = NULL;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     cpl_array    * status   = NULL;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     cpl_error_code error;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     cpl_ensure_code(x != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     cpl_ensure_code(y != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     <span class="comment">/* Feed the matrix with RA, DEC */</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     radec = cpl_matrix_new(1, 2);</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     cpl_matrix_set(radec, 0, 0, ra);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     cpl_matrix_set(radec, 0, 1, dec);</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     error = cpl_wcs_convert(wcs, radec, &xy, &status, CPL_WCS_WORLD2PHYS);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     cpl_matrix_delete(radec);</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     <span class="keywordflow">if</span> (!error) {</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>         *x  = cpl_matrix_get(xy, 0, 0);</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>         *y  = cpl_matrix_get(xy, 0, 1);</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     }</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     <span class="comment">/* Tidy and propagate error, if any */</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     cpl_array_delete(status);</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     cpl_matrix_delete(xy);</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     <span class="keywordflow">return</span> cpl_error_set_where(cpl_func);</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> }</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="keywordtype">double</span> irplib_wcs_great_circle_dist(<span class="keywordtype">double</span> ra1,</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>                                     <span class="keywordtype">double</span> dec1,</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>                                     <span class="keywordtype">double</span> ra2,</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>                                     <span class="keywordtype">double</span> dec2)</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> {</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     <span class="comment">/* Convert all input from degrees to radian - and back for the result */</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> dra  = sin( CPL_MATH_RAD_DEG * (ra2  - ra1 )/2.0 );</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> ddec = sin( CPL_MATH_RAD_DEG * (dec2 - dec1)/2.0 );</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     dec1 *= CPL_MATH_RAD_DEG;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     dec2 *= CPL_MATH_RAD_DEG;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     <span class="keywordflow">return</span> 2.0 * asin(sqrt( ddec*ddec + cos(dec1)*cos(dec2)*dra*dra))</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>         * CPL_MATH_DEG_RAD;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> }</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> cpl_error_code irplib_wcs_mjd_from_iso8601(<span class="keywordtype">double</span> * pmjd, <span class="keywordtype">int</span> year, <span class="keywordtype">int</span> month,</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>                                            <span class="keywordtype">int</span> day, <span class="keywordtype">int</span> hour, <span class="keywordtype">int</span> minute,</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>                                            <span class="keywordtype">double</span> second)</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> {</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     cpl_ensure_code(pmjd  != NULL,        CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     cpl_ensure_code(!irplib_wcs_is_iso8601(year, month, day, hour, minute,</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>                                            second), cpl_error_get_code());</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     <span class="comment">/* Compute MJD. */</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     *pmjd = (double)((1461*(year - (12-month)/10 + 4712))/4</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>                      + (306*((month+9)%12) + 5)/10</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>                      - (3*((year - (12-month)/10 + 4900)/100))/4</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>                      + day - 2399904)</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>         + (hour + (minute + second/60.0)/60.0)/24.0;</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> }</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> </div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> cpl_error_code irplib_wcs_iso8601_from_string(<span class="keywordtype">int</span> * pyear, <span class="keywordtype">int</span> * pmonth,</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>                                               <span class="keywordtype">int</span> * pday, <span class="keywordtype">int</span> * phour,</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>                                               <span class="keywordtype">int</span> * pminute, <span class="keywordtype">double</span> * psecond,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                                               <span class="keyword">const</span> <span class="keywordtype">char</span> * iso8601)</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> {</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <span class="comment">/* Standard year-2000 form: CCYY-MM-DD[Thh:mm:ss[.sss...]] */</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> * iso8601format = <span class="stringliteral">"%4d-%2d-%2dT%2d:%2d:%lf"</span>;</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> </div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     cpl_ensure_code(pyear   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     cpl_ensure_code(pmonth  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     cpl_ensure_code(pday    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     cpl_ensure_code(phour   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     cpl_ensure_code(pminute != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     cpl_ensure_code(psecond != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     cpl_ensure_code(iso8601 != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     cpl_error_ensure(sscanf(iso8601, iso8601format, pyear, pmonth,</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>                             pday, phour, pminute, psecond) == 6,</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>                      CPL_ERROR_ILLEGAL_INPUT, <span class="keywordflow">return</span> cpl_error_get_code(),</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>                      <span class="stringliteral">"%s is not formatted as %s"</span>, iso8601, iso8601format);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     cpl_ensure_code(!irplib_wcs_is_iso8601(*pyear, *pmonth, *pday, *phour,</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                                            *pminute, *psecond),</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                     cpl_error_get_code());</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> }</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> cpl_error_code irplib_wcs_mjd_from_string(<span class="keywordtype">double</span> * pmjd, <span class="keyword">const</span> <span class="keywordtype">char</span> * iso8601)</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> {</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     <span class="keywordtype">int</span> year, day, month, hour, minute;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     <span class="keywordtype">double</span> second;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     <span class="keywordflow">return</span> irplib_wcs_iso8601_from_string(&year, &month, &day, &hour,</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>                                           &minute, &second, iso8601)</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>         || irplib_wcs_mjd_from_iso8601(pmjd, year, month, day, hour, minute,</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                                        second)</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>         ? cpl_error_set_where(cpl_func) : CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> }</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> cpl_error_code irplib_wcs_iso8601_from_mjd(<span class="keywordtype">int</span> * pyear, <span class="keywordtype">int</span> * pmonth,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                                            <span class="keywordtype">int</span> * pday, <span class="keywordtype">int</span> * phour,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                                            <span class="keywordtype">int</span> * pminute, <span class="keywordtype">double</span> * psecond,</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>                                            <span class="keywordtype">double</span> mjd)</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> {</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="keywordtype">int</span> jd, n4, dd;</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     <span class="keywordtype">double</span> t;</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     cpl_ensure_code(pyear   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     cpl_ensure_code(pmonth  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     cpl_ensure_code(pday    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     cpl_ensure_code(phour   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     cpl_ensure_code(pminute != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     cpl_ensure_code(psecond != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     <span class="comment">/* Copied from datfix() in wcslib (v. 4.4.4) */</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     jd = 2400001 + (int)mjd;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     n4 =  4*(jd + ((2*((4*jd - 17918)/146097)*3)/4 + 1)/2 - 37);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     dd = 10*(((n4-237)%1461)/4) + 5;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     *pyear  = n4/1461 - 4712;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     *pmonth = (2 + dd/306)%12 + 1;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     *pday   = (dd%306)/10 + 1;</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     t = mjd - (int)mjd; <span class="comment">/* t is now days */</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     t *= 24.0; <span class="comment">/* t is now hours */</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     *phour = (int)t;</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     t = 60.0 * (t - *phour); <span class="comment">/* t is now minutes */</span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     *pminute = (int)t;</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     *psecond = 60.0 * (t - *pminute);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> </div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     <span class="comment">/* A failure here implies that this code has a bug */</span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     cpl_ensure_code(!irplib_wcs_is_iso8601(*pyear, *pmonth, *pday, *phour,</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>                                            *pminute, *psecond),</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>                     CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> }</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="keyword">static</span> cpl_error_code irplib_wcs_is_iso8601(<span class="keywordtype">int</span> year, <span class="keywordtype">int</span> month,</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>                                             <span class="keywordtype">int</span> day, <span class="keywordtype">int</span> hour,</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>                                             <span class="keywordtype">int</span> minute, <span class="keywordtype">double</span> second)</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> {</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     <span class="keyword">const</span> cpl_boolean is_leap = year % 4 ? CPL_FALSE : CPL_TRUE;</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> mlen[] = {0, 31, is_leap ? 29 : 28, 31, 30, 31, 30, 31, 31, 30,</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>                         31, 30, 31};</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     cpl_ensure_code(month > 0,            CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     cpl_ensure_code(month <= 12,          CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     cpl_ensure_code(day   > 0,            CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     cpl_ensure_code(day   <= mlen[month], CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     cpl_ensure_code(minute  < 60,         CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     cpl_ensure_code(minute  >= 0,         CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     cpl_ensure_code(second  < 60.0,       CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     cpl_ensure_code(second  >= 0.0,       CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     cpl_ensure_code(hour  >= 0,           CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     <span class="comment">/* 24:00:00 is valid ISO-8601 */</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     cpl_ensure_code(hour  <= (minute > 0 || second > 0.0 ? 23 : 24),</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                     CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> </div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__wcs_8h_source.html b/html/irplib__wcs_8h_source.html
deleted file mode 100644
index f92d8c1..0000000
--- a/html/irplib__wcs_8h_source.html
+++ /dev/null
@@ -1,126 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_wcs.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_wcs.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_wcs.h,v 1.7 2010-10-07 14:10:55 llundin Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the irplib package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: llundin $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2010-10-07 14:10:55 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.7 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_WCS_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WCS_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> cpl_error_code irplib_wcs_xytoradec(<span class="keyword">const</span> cpl_wcs * wcs,</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span>                                     <span class="keywordtype">double</span>          x,</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span>                                     <span class="keywordtype">double</span>          y,</div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span>                                     <span class="keywordtype">double</span>        * ra,</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span>                                     <span class="keywordtype">double</span>        * dec);</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> cpl_error_code irplib_wcs_radectoxy(<span class="keyword">const</span> cpl_wcs * wcs,</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>                                     <span class="keywordtype">double</span>          ra,</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>                                     <span class="keywordtype">double</span>          dec,</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>                                     <span class="keywordtype">double</span>        * x,</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>                                     <span class="keywordtype">double</span>        * y);</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="keywordtype">double</span> irplib_wcs_great_circle_dist(<span class="keywordtype">double</span> ra1,</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>                                     <span class="keywordtype">double</span> dec1,</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span>                                     <span class="keywordtype">double</span> ra2,</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>                                     <span class="keywordtype">double</span> dec2);</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> cpl_error_code irplib_wcs_iso8601_from_string(<span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *,</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>                                               <span class="keywordtype">double</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> cpl_error_code irplib_wcs_mjd_from_iso8601(<span class="keywordtype">double</span> *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>,</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>                                            <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> cpl_error_code irplib_wcs_mjd_from_string(<span class="keywordtype">double</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> cpl_error_code irplib_wcs_iso8601_from_mjd(<span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>                                            <span class="keywordtype">double</span> *, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__wlxcorr-test_8c_source.html b/html/irplib__wlxcorr-test_8c_source.html
deleted file mode 100644
index c3d77c9..0000000
--- a/html/irplib__wlxcorr-test_8c_source.html
+++ /dev/null
@@ -1,520 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_wlxcorr-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li><li class="navelem"><a class="el" href="dir_40a404867a1885f5fad756cff9cd9f5a.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_wlxcorr-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_wlxcorr-test.c,v 1.16 2013-01-29 08:43:33 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO Common Pipeline Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-01-29 08:43:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.16 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> </div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <irplib_wlxcorr.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <irplib_wavecal_impl.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <cpl_plot.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">/* TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#ifndef CPL_SIZE_FORMAT</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span><span class="preprocessor">#define CPL_SIZE_FORMAT "d"</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor"></span><span class="preprocessor">#define cpl_size int</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="comment">/* END TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">                            Private Function prototypes</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wlxcorr_best_poly_test(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wlxcorr_best_poly_test_one(<span class="keywordtype">int</span>, <span class="keywordtype">int</span>, cpl_boolean, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wlxcorr_convolve_create_kernel_test(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wlxcorr_convolve_create_kernel_test_one(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keyword">static</span> <span class="keywordtype">double</span> irplib_wlcalib_lss(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wavecal_profile_compare(<span class="keywordtype">int</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment">                                  Main</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> {</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     <span class="comment">/* Initialize CPL + IRPLIB */</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     irplib_wavecal_profile_compare(100, 4.0, 4.0);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     irplib_wlxcorr_convolve_create_kernel_test();</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>     irplib_wlxcorr_best_poly_test();</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> }</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wlxcorr_best_poly_test(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> {</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     cpl_polynomial  *   poly;</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     <span class="keyword">const</span> cpl_boolean   do_bench = cpl_msg_get_level() <= CPL_MSG_INFO</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>         ? CPL_TRUE : CPL_FALSE;</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           spec_size = do_bench ? 1024 : 256;</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           nreps     = do_bench ? 3 : 1;</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           nsamples  = do_bench ? 30 : 10;</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     <span class="comment">/* 1st test: NULL input */</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     poly = irplib_wlxcorr_best_poly(NULL, NULL, 1, NULL, NULL, 1, 1.0, 1.0,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                                     NULL, NULL, NULL);</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     cpl_test_error(CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     cpl_test_null( poly );</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="preprocessor">#if 1</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="preprocessor"></span>    <span class="comment">/* 2nd test: Resampling of catalog lines */</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     irplib_wlxcorr_best_poly_test_one(spec_size, spec_size*10, CPL_TRUE,</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>                                       nsamples, nreps);</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     <span class="comment">/* 3rd test: No resampling of catalog lines */</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     irplib_wlxcorr_best_poly_test_one(spec_size, spec_size/50,  CPL_FALSE,</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>                                       nsamples, nreps);</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> }</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wlxcorr_best_poly_test_one(<span class="keywordtype">int</span> spec_size, <span class="keywordtype">int</span> cat_size,</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>                                               cpl_boolean do_resample,</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>                                               <span class="keywordtype">int</span> nsamples, <span class="keywordtype">int</span> nreps)</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> {</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           degree     = 2;</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     cpl_vector      *   spectrum   = cpl_vector_new(spec_size);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     cpl_bivector    *   catalog    = cpl_bivector_new(cat_size);</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     cpl_polynomial  *   true_poly  = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     cpl_polynomial  *   guess_poly = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     cpl_vector      *   wl_err     = cpl_vector_new(degree+1);</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     <span class="keywordtype">double</span>              xc;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        slitw = 2.0;</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        fwhm = 2.0;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        xtrunc = 0.5 * slitw + 5.0 * fwhm * CPL_MATH_SIG_FWHM;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        rel_error = 0.05; <span class="comment">/* Introduce error */</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="comment">/* A black-body with T=253K should emit mostly in the range [2;50[ micron */</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        temp_bb = 253.0;</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        b_true = 2e-6;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        a_true = 48e-6 / spec_size;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        a_error = a_true * rel_error;</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        b_error = b_true * rel_error;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        a = a_true + a_error;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        b = b_true + b_error;</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     <span class="keywordtype">double</span>              wl_errmax;</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     cpl_size            pow_ind;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     <span class="keywordtype">int</span>                 i;</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     FILE              * stream = cpl_msg_get_level() > CPL_MSG_INFO</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>         ? fopen(<span class="stringliteral">"/dev/null"</span>, <span class="stringliteral">"a"</span>) : stdout;</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     cpl_test_nonnull( stream );</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     <span class="comment">/* First guess P(x) = ax + b */</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     <span class="comment">/* The true and distorted polynomials */</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     pow_ind = 1;</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     cpl_polynomial_set_coeff(true_poly,  &pow_ind, a_true);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     cpl_polynomial_set_coeff(guess_poly, &pow_ind, a);</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     pow_ind = 0;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     cpl_polynomial_set_coeff(true_poly,  &pow_ind, b_true);</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     cpl_polynomial_set_coeff(guess_poly, &pow_ind, b);</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"First guess polynomial:"</span>);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     cpl_polynomial_dump(guess_poly, stream);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     <span class="comment">/* Try also to shift the guess of the solution */</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     cpl_test_zero(cpl_polynomial_shift_1d(guess_poly, 0, 25.0));</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"True polynomial:"</span>);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     cpl_polynomial_dump(true_poly, stream);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     <span class="keywordflow">if</span> (do_resample) {</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>         cpl_vector * evalpoints = cpl_vector_new(spec_size);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>         <span class="comment">/* Wavelengths of the spectrum */</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>         cpl_vector_fill_polynomial(evalpoints, true_poly, 1.0, 1.0);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>         <span class="comment">/* Catalog */</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>         <span class="comment">/* The sampled profile is a black body radiation */</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>         cpl_vector_fill_polynomial(cpl_bivector_get_x(catalog), true_poly,</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>                                    -1.0, 1.5 * spec_size / cat_size);</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>         cpl_photom_fill_blackbody(cpl_bivector_get_y(catalog), CPL_UNIT_LESS,</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                                   cpl_bivector_get_x_const(catalog),</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                                   CPL_UNIT_LENGTH, temp_bb);</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>         cpl_photom_fill_blackbody(spectrum, CPL_UNIT_LESS,</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>                                   evalpoints, CPL_UNIT_LENGTH, temp_bb);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>         cpl_vector_delete(evalpoints);</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>         <span class="comment">/* Place some lines with different intensities */</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>         <span class="keywordtype">double</span> * dx = cpl_bivector_get_x_data(catalog);</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>         <span class="keywordtype">double</span> * dy = cpl_bivector_get_y_data(catalog);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>         <span class="keywordflow">for</span> (i = 0; i < cat_size; i++) {</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> wli = cpl_polynomial_eval_1d(true_poly, 3.0 * i * i</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>                                                       -10.0, NULL);</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>             dx[i] = wli;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>             dy[i] = sin(i * CPL_MATH_PI / cat_size);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>         }</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>         <a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761" title="Generate a 1D spectrum from (arc) lines and a dispersion relation.">irplib_vector_fill_line_spectrum_model</a>(spectrum, NULL, NULL, true_poly,</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>                                                catalog, slitw, fwhm, xtrunc,</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>                                                0, CPL_FALSE, CPL_FALSE, NULL);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>         cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     }</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     <span class="comment">/* FIXME: Add some random noise to the spectrum */</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     <span class="keywordflow">if</span> (cpl_msg_get_level() <= CPL_MSG_DEBUG) {</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>         cpl_plot_bivector( <span class="stringliteral">""</span>, <span class="stringliteral">"t 'Catalog' w lines"</span>, <span class="stringliteral">""</span>, catalog);</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>         cpl_plot_vector( <span class="stringliteral">""</span>, <span class="stringliteral">"t 'Spectrum' w lines"</span>, <span class="stringliteral">""</span>, spectrum);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     }</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     <span class="comment">/* Error */</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     <span class="comment">/* Compute an error bound certain to include to true solution */</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     wl_errmax = cpl_polynomial_eval_1d(guess_poly, spec_size, NULL)</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>         - cpl_polynomial_eval_1d(true_poly, spec_size, NULL);</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     cpl_vector_fill(wl_err, 2.0 * wl_errmax);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="comment">/* Multiple calls for bench-marking */</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     <span class="keywordflow">for</span> (i=0; i < nreps; i++) {</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         cpl_table      * wl_res;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         cpl_vector     * xcorrs;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>         cpl_polynomial * poly</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>             = irplib_wlxcorr_best_poly(spectrum, catalog, degree,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                                        guess_poly, wl_err, nsamples,</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>                                        slitw, fwhm, &xc, &wl_res, &xcorrs);</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>         cpl_test_nonnull(poly);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>         cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>         <span class="keywordflow">if</span> (i == 0 && poly != NULL) {</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>             <span class="keywordflow">if</span> (cpl_msg_get_level() <= CPL_MSG_DEBUG) {</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                 <span class="keyword">const</span> <span class="keywordtype">char</span> * labels[] = {IRPLIB_WLXCORR_COL_WAVELENGTH,</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>                                          IRPLIB_WLXCORR_COL_CAT_INIT,</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                                          IRPLIB_WLXCORR_COL_CAT_FINAL,</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>                                          IRPLIB_WLXCORR_COL_OBS};</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>                 cpl_plot_vector( <span class="stringliteral">""</span>, <span class="stringliteral">"t 'X corr values' w lines"</span>, <span class="stringliteral">""</span>, xcorrs);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>                 cpl_test_zero(cpl_plot_columns(<span class="stringliteral">""</span>, <span class="stringliteral">""</span>, <span class="stringliteral">""</span>, wl_res, labels, 4));</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>             }</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>             cpl_msg_info(cpl_func, <span class="stringliteral">"Corrected polynomial:"</span>);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>             cpl_polynomial_dump(poly, stream);</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>             <span class="comment">/* Corrected polynomial must be monotone, with same sign</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="comment">               as a_true. */</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>             cpl_test_zero(cpl_polynomial_derivative(poly, 0));</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>             cpl_test_leq(0.0, a_true * cpl_polynomial_eval_1d(poly, 1.0, NULL));</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>             cpl_test_leq(0.0, a_true</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                          * cpl_polynomial_eval_1d(poly, 0.5 * spec_size, NULL));</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>             cpl_test_leq(0.0, a_true</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                          * cpl_polynomial_eval_1d(poly, spec_size, NULL));</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>             cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>         }</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>         cpl_table_delete(wl_res);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>         cpl_vector_delete(xcorrs);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>         cpl_polynomial_delete(poly);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     }</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     cpl_vector_delete(wl_err);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     cpl_vector_delete(spectrum);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     cpl_bivector_delete(catalog);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     cpl_polynomial_delete(true_poly);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     cpl_polynomial_delete(guess_poly);</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     <span class="keywordflow">if</span> (stream != stdout) cpl_test_zero( fclose(stream) );</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> }</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wlxcorr_convolve_create_kernel_test_one(<span class="keywordtype">double</span> slitw,</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>                                                            <span class="keywordtype">double</span> fwhm)</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> {</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     cpl_vector * kernel;</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     <span class="keywordtype">double</span>       sum = 0.0;</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     <span class="comment">/* Maximum value of profile */</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> maxval = irplib_wlcalib_lss(0.0, slitw, fwhm);</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     <span class="keywordtype">double</span>       prev = maxval;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <span class="keywordtype">int</span>          n, i;</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     cpl_msg_info(cpl_func, <span class="stringliteral">"Slit-width=%g, FWHM=%g"</span>, slitw, fwhm);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     kernel = irplib_wlxcorr_convolve_create_kernel(0.0, fwhm);</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     cpl_test_error(CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     cpl_test_null(kernel);</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     kernel = irplib_wlxcorr_convolve_create_kernel(slitw, 0.0);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     cpl_test_error(CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     cpl_test_null(kernel);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     kernel = irplib_wlxcorr_convolve_create_kernel(slitw, fwhm);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     cpl_test_nonnull(kernel);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     n = cpl_vector_get_size(kernel);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     <span class="keywordflow">for</span> (i = 0; i < n; i++) {</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> val = cpl_vector_get(kernel, i);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>         sum += i ? 2.0*val : val; <span class="comment">/* Non-central elements twice */</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>         <span class="comment">/* Profile consists of non-negative values */</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>         cpl_test_leq(0.0, val);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>         <span class="comment">/* The max of the profile is less than maxval and decreases */</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>         cpl_test_leq(val, prev);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>         <span class="keywordflow">if</span> (i > 0) {</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>             <span class="comment">/* The profile at i is less than the continuous profile at</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="comment">               i - 0.5, and greater than that at i + 0.5 */</span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>             cpl_test_leq(val, irplib_wlcalib_lss(i - 0.5, slitw, fwhm));</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>             cpl_test_leq(irplib_wlcalib_lss(i + 0.5, slitw, fwhm), val);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>         }</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>         <span class="comment">/* The profile has a FWHM (sligthly) greater than slitw */</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>         <span class="keywordflow">if</span> ((<span class="keywordtype">double</span>)i < 0.5 * slitw) {</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>             <span class="comment">/* Thus if x is less than half the slit width, then</span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment">               the value has to be greater than half the maximum */</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>             cpl_test_leq(0.5 * maxval, val);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (val < 0.5 * maxval) {</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>             <span class="comment">/* On the other hand, if the value is less than the maximum,</span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="comment">               then x must exceed half the slitw */</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>             cpl_test_leq(0.5*slitw, (<span class="keywordtype">double</span>)i);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>         }</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>         prev = val;</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     }</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     <span class="comment">/* Integral is supposed to be 1 */</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     cpl_test_abs(sum, 1.0, 1e-5); <span class="comment">/* FIXME: Improve tolerance */</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     <span class="keywordflow">if</span> (cpl_msg_get_level() <= CPL_MSG_DEBUG) {</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>         <span class="keywordtype">char</span> * title = cpl_sprintf(<span class="stringliteral">"t 'LSS profile, slitw=%g, fwhm=%g' "</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>                                    <span class="stringliteral">"w linespoints"</span>, slitw, fwhm);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>         cpl_plot_vector(<span class="stringliteral">"set grid;"</span>, title, <span class="stringliteral">""</span>, kernel);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>         cpl_free(title);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     }</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     cpl_vector_delete(kernel);</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> }</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wlxcorr_convolve_create_kernel_test(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> {</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     irplib_wlxcorr_convolve_create_kernel_test_one(0.86, 2.0);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     irplib_wlxcorr_convolve_create_kernel_test_one(1.72, 3.0);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     irplib_wlxcorr_convolve_create_kernel_test_one(40.0, 2.0);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     irplib_wlxcorr_convolve_create_kernel_test_one(3.0, 40.0);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> }</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> <span class="keyword">static</span> <span class="keywordtype">double</span> irplib_wlcalib_lss(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> slitw, <span class="keywordtype">double</span> fwhm)</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> {</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>   <span class="keyword">const</span> <span class="keywordtype">double</span> sigmasqrt2 = fwhm * CPL_MATH_SIG_FWHM * CPL_MATH_SQRT2;</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>   <span class="keyword">const</span> <span class="keywordtype">double</span> result = 0.5 / slitw *</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>       (erf((x+0.5*slitw)/sigmasqrt2) - erf((x-0.5*slitw)/sigmasqrt2));</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>   cpl_test_lt(0.0, slitw);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>   cpl_test_lt(0.0, sigmasqrt2);</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> </div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>   <span class="comment">/* Protect against round-off (on SunOS 5.8) */</span></div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>   <span class="keywordflow">return</span> result < 0.0 ? 0.0 : result;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> }</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wavecal_profile_compare(<span class="keywordtype">int</span> spec_size, <span class="keywordtype">double</span> slitw,</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                                            <span class="keywordtype">double</span> fwhm)</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> {</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     cpl_vector     * spectrum1  = cpl_vector_new(spec_size);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     cpl_vector     * spectrum2  = cpl_vector_new(spec_size);</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     cpl_bivector   * catalog    = cpl_bivector_new(2);</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     cpl_polynomial * dispersion = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>     a = 1.0;</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>     b = 100.0;</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>     xtrunc = 0.5 * slitw + 2.0 * fwhm * CPL_MATH_SIG_FWHM;</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     <span class="keywordtype">double</span>           mean;</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     cpl_error_code   error;</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     cpl_size         pow_ind;</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     pow_ind = 1;</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     cpl_polynomial_set_coeff(dispersion, &pow_ind, a);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     pow_ind = 0;</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     cpl_polynomial_set_coeff(dispersion, &pow_ind, b);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> </div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     cpl_vector_set(cpl_bivector_get_x(catalog), 0, b + spec_size / 3.0);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     cpl_vector_set(cpl_bivector_get_y(catalog), 0, 100);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     cpl_vector_set(cpl_bivector_get_x(catalog), 1, b + spec_size / 1.5);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     cpl_vector_set(cpl_bivector_get_y(catalog), 1, 100);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> </div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     error = <a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761" title="Generate a 1D spectrum from (arc) lines and a dispersion relation.">irplib_vector_fill_line_spectrum_model</a>(spectrum1, NULL, NULL,</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>                                                    dispersion, catalog, slitw,</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>                                                    fwhm, xtrunc, 0, CPL_FALSE,</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>                                                    CPL_FALSE, NULL);</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     cpl_test_eq(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> </div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     error = <a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761" title="Generate a 1D spectrum from (arc) lines and a dispersion relation.">irplib_vector_fill_line_spectrum_model</a>(spectrum2, NULL, NULL,</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>                                                    dispersion, catalog, slitw,</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>                                                    fwhm, xtrunc, 0, CPL_TRUE,</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>                                                    CPL_FALSE, NULL);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     cpl_test_eq(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     <span class="keywordflow">if</span> (cpl_msg_get_level() <= CPL_MSG_DEBUG) {</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>         error = cpl_plot_vector(<span class="stringliteral">"set grid;"</span>, <span class="stringliteral">"t 'Spectrum' w lines"</span>, <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                                 spectrum1);</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>         cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>         cpl_test_eq(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>         error = cpl_plot_vector(<span class="stringliteral">"set grid;"</span>, <span class="stringliteral">"t 'Spectrum' w lines"</span>, <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>                                 spectrum2);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>         cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>         cpl_test_eq(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>     }</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     cpl_vector_subtract(spectrum1, spectrum2);</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     mean = cpl_vector_get_mean(spectrum1);</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     <span class="keywordflow">if</span> (mean != 0.0) {</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>         cpl_msg_info(cpl_func, <span class="stringliteral">"Error: %g"</span>, mean);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>         <span class="keywordflow">if</span> (cpl_msg_get_level() <= CPL_MSG_DEBUG) {</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>             error = cpl_plot_vector(<span class="stringliteral">"set grid;"</span>, <span class="stringliteral">"t 'Spectrum error' w lines"</span>,</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                                     <span class="stringliteral">""</span>, spectrum1);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>             cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>             cpl_test_eq(error, CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>         }</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     }</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     cpl_polynomial_delete(dispersion);</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     cpl_vector_delete(spectrum1);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     cpl_vector_delete(spectrum2);</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     cpl_bivector_delete(catalog);</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     cpl_test_error(CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__wlxcorr_8c_source.html b/html/irplib__wlxcorr_8c_source.html
deleted file mode 100644
index efcb4cf..0000000
--- a/html/irplib__wlxcorr_8c_source.html
+++ /dev/null
@@ -1,1146 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_wlxcorr.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_wlxcorr.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_wlxcorr.c,v 1.58 2013-01-29 08:43:33 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the IRPLIB package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-01-29 08:43:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.58 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include "irplib_wavecal_impl.h"</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include "irplib_wlxcorr.h"</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">                           Defines</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">/* TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#ifndef CPL_SIZE_FORMAT</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor"></span><span class="preprocessor">#define CPL_SIZE_FORMAT "d"</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span><span class="preprocessor">#define cpl_size int</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor"></span><span class="comment">/* END TEMPORARY SUPPORT OF CPL 5.x */</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#ifndef inline</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor"></span><span class="preprocessor">#define inline </span><span class="comment">/* inline */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#define IRPLIB_MAX(A,B) ((A) > (B) ? (A) : (B))</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_MIN(A,B) ((A) < (B) ? (A) : (B))</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="preprocessor">#define IRPLIB_PTR_SWAP(a,b)                                               \</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="preprocessor">    do { void * irplib_ptr_swap =(a);(a)=(b);(b)=irplib_ptr_swap; } while (0)</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">                           Private functions</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wlxcorr_estimate(cpl_vector *, cpl_vector *,</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>                                     <span class="keyword">const</span> cpl_vector *,</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>                                     <span class="keyword">const</span> cpl_bivector *,</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>                                     <span class="keyword">const</span> cpl_vector *,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>                                     <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>                                     <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="keyword">static</span> <span class="keywordtype">int</span> irplib_wlxcorr_signal_resample(cpl_vector *, <span class="keyword">const</span> cpl_vector *, </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>         <span class="keyword">const</span> cpl_bivector *) ;</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="keyword">static</span> cpl_error_code cpl_vector_fill_lss_profile_symmetric(cpl_vector *,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>                                                             <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="keyword">static</span> cpl_error_code irplib_wlcalib_fill_spectrum(cpl_vector *,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>                                                 <span class="keyword">const</span> cpl_bivector *,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>                                                 <span class="keyword">const</span> cpl_vector *,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                                                 <span class="keyword">const</span> cpl_polynomial *, <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="keyword">static</span> cpl_boolean irplib_wlcalib_is_lines(<span class="keyword">const</span> cpl_vector *,</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                                         <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                                         <span class="keywordtype">int</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> cpl_polynomial * irplib_wlxcorr_best_poly(<span class="keyword">const</span> cpl_vector     * spectrum,</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>                                           <span class="keyword">const</span> cpl_bivector   * lines_catalog,</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>                                           <span class="keywordtype">int</span>                    degree,</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>                                           <span class="keyword">const</span> cpl_polynomial * guess_poly,</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>                                           <span class="keyword">const</span> cpl_vector     * wl_error,</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>                                           <span class="keywordtype">int</span>                    nsamples,</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>                                           <span class="keywordtype">double</span>                 slitw,</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>                                           <span class="keywordtype">double</span>                 fwhm,</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>                                           <span class="keywordtype">double</span>               * xc,</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                                           cpl_table           ** wlres,</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>                                           cpl_vector          ** xcorrs)</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> {</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>         spec_sz = cpl_vector_get_size(spectrum);</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>         nfree   = cpl_vector_get_size(wl_error);</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     <span class="keywordtype">int</span>               ntests  = 1;</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     cpl_vector      * model;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     cpl_vector      * vxc;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     cpl_vector      * init_pts_wl;</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     cpl_matrix      * init_pts_x;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     cpl_vector      * pts_wl;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     cpl_vector      * vxcorrs;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     cpl_vector      * conv_kernel = NULL;    </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     cpl_polynomial  * poly_sol;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     cpl_polynomial  * poly_candi;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    * pwl_error = cpl_vector_get_data_const(wl_error); </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    * dxc;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     cpl_size          degree_loc ;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     <span class="keyword">const</span> cpl_boolean symsamp = CPL_TRUE; <span class="comment">/* init_pts_x is symmetric */</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     <span class="keyword">const</span> cpl_boolean is_lines</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>         = irplib_wlcalib_is_lines(cpl_bivector_get_x_const(lines_catalog),</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>                                guess_poly, spec_sz, 1.0);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="keywordtype">int</span>               i;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     <span class="comment">/* FIXME: Need mode parameter for catalogue type (lines <=> profile) */</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     <span class="comment">/* In case of failure */</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     <span class="keywordflow">if</span> (wlres  != NULL) *wlres  = NULL;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     <span class="keywordflow">if</span> (xcorrs != NULL) *xcorrs = NULL;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     <span class="comment">/* Useful for knowing if resampling is used */</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     cpl_msg_debug(cpl_func, <span class="stringliteral">"Checking %d^%d dispersion polynomials (slitw=%g, "</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>                   <span class="stringliteral">"fwhm=%g) against %d-point observed spectrum with%s "</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>                   <span class="stringliteral">"catalog resampling"</span>, nsamples, nfree, slitw, fwhm, spec_sz,</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>                   is_lines ? <span class="stringliteral">"out"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     cpl_ensure(xc            != NULL, CPL_ERROR_NULL_INPUT,    NULL);</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>     *xc = -1.0;</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     cpl_ensure(spectrum      != NULL,  CPL_ERROR_NULL_INPUT,    NULL);</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     cpl_ensure(lines_catalog != NULL, CPL_ERROR_NULL_INPUT,    NULL);</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     cpl_ensure(guess_poly    != NULL, CPL_ERROR_NULL_INPUT,    NULL);</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>     cpl_ensure(wl_error      != NULL, CPL_ERROR_NULL_INPUT,    NULL);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     cpl_ensure(nfree         >= 2,    CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     cpl_ensure(nsamples      >  0,    CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     <span class="comment">/* FIXME: degree is redundant */</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     cpl_ensure(1 + degree   == nfree, CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     cpl_ensure(cpl_polynomial_get_dimension(guess_poly) == 1,</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>                CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     <span class="keywordflow">if</span> (nsamples > 1) {</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>         <span class="comment">/* Search place must consist of more than one point */</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>         <span class="comment">/* FIXME: The bounds should probably not be negative */</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>         <span class="keywordflow">for</span> (i = 0; i < nfree; i++) {</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>             <span class="keywordflow">if</span> (pwl_error[i] != 0.0) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>         }</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>         cpl_ensure(i < nfree, CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     }</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>  </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     <span class="keywordflow">if</span> (!is_lines) {</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>         <span class="comment">/* Create the convolution kernel */</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>         conv_kernel = irplib_wlxcorr_convolve_create_kernel(slitw, fwhm);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>         cpl_ensure(conv_kernel   != NULL, CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     }</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     <span class="comment">/* Create initial test points */</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     init_pts_x  = cpl_matrix_new(1, nfree);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     init_pts_wl = cpl_vector_new(nfree);</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     pts_wl      = cpl_vector_new(nfree);</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     <span class="keywordflow">for</span> (i = 0; i < nfree; i++) {</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> xpos  = spec_sz * i / (double)degree;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> wlpos = cpl_polynomial_eval_1d(guess_poly, xpos, NULL)</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>             - 0.5 * pwl_error[i];</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>         cpl_matrix_set(init_pts_x, 0, i, xpos);</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>         cpl_vector_set(init_pts_wl,   i, wlpos);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>         ntests *= nsamples; <span class="comment">/* Count number of tests */</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     }</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     vxcorrs = xcorrs != NULL ? cpl_vector_new(ntests) : NULL;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     poly_sol   = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     poly_candi = cpl_polynomial_new(1);</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     model = cpl_vector_new(spec_sz);</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     vxc = cpl_vector_new(1);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     dxc = cpl_vector_get_data_const(vxc);</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>    </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <span class="comment">/* Create the polynomial candidates and estimate them */</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="keywordflow">for</span> (i=0; i < ntests; i++) {</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>         <span class="keywordtype">int</span>    idiv = i;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         <span class="keywordtype">int</span>    deg;</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         <span class="comment">/* Update wavelength at one anchor point - and reset wavelengths</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment">           to their default for any anchor point(s) at higher wavelengths */</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>         <span class="keywordflow">for</span> (deg = degree; deg >= 0; deg--, idiv /= nsamples) {</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>             <span class="keyword">const</span> <span class="keywordtype">int</span> imod = idiv % nsamples;</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> wlpos = cpl_vector_get(init_pts_wl, deg)</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>                                + imod * pwl_error[deg] / nsamples;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>             <span class="comment">/* FIXME: If wlpos causes pts_wl to be non-increasing, the</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="comment">               solution will be non-physical with no need for evaluation.</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment">               (*xc could be set to -1 in this case). */</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>             cpl_vector_set(pts_wl, deg, wlpos);</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>             <span class="keywordflow">if</span> (imod > 0) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>         }</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         <span class="comment">/* Generate */</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>         degree_loc = (cpl_size)degree ;</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>         cpl_polynomial_fit(poly_candi, init_pts_x, &symsamp, pts_wl,</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                            NULL, CPL_FALSE, NULL, &degree_loc);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         <span class="comment">/* *** Estimate *** */</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>         irplib_wlxcorr_estimate(vxc, model, spectrum, lines_catalog,</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>                                 conv_kernel, poly_candi, slitw, fwhm);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>         <span class="keywordflow">if</span> (vxcorrs != NULL) cpl_vector_set(vxcorrs, i, *dxc);</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>         <span class="keywordflow">if</span> (*dxc > *xc) {</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>             <span class="comment">/* Found a better solution */</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>             *xc = *dxc;</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>             IRPLIB_PTR_SWAP(poly_sol, poly_candi);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>         }</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     }</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     cpl_vector_delete(model);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     cpl_vector_delete(vxc);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     cpl_vector_delete(conv_kernel);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     cpl_vector_delete(pts_wl);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     cpl_matrix_delete(init_pts_x);</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     cpl_vector_delete(init_pts_wl);</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     cpl_polynomial_delete(poly_candi);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="preprocessor">#ifdef CPL_WLCALIB_FAIL_ON_CONSTANT</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="preprocessor"></span>    <span class="comment">/* FIXME: */</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     <span class="keywordflow">if</span> (cpl_polynomial_get_degree(poly_sol) == 0) {</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>         cpl_polynomial_delete(poly_sol);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>         cpl_vector_delete(vxcorrs);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>         *xc = 0.0;</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>         cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>                                     __FILE__, __LINE__, <span class="stringliteral">"Found a constant "</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>                                     <span class="stringliteral">"dispersion"</span>);</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>             cpl_errorstate_dump(prestate, CPL_FALSE, NULL);</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     }</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="preprocessor"></span>    </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <span class="keywordflow">if</span> (wlres != NULL) {</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>         <span class="comment">/* FIXME: A failure in the table creation is not considered a failure</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment">           of the whole function call (although all outputs may be useless) */</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>         cpl_errorstate prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>         <span class="comment">/* Create the spc_table  */</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>         *wlres = irplib_wlxcorr_gen_spc_table(spectrum, lines_catalog, slitw,</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                                               fwhm, guess_poly, poly_sol);</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>         <span class="keywordflow">if</span> (*wlres == NULL) {</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>             cpl_polynomial_delete(poly_sol);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>             cpl_vector_delete(vxcorrs);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>             *xc = -1.0;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>             cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>                                         __FILE__, __LINE__, <span class="stringliteral">"Cannot generate "</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>                                         <span class="stringliteral">"infos table"</span>);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>             <span class="comment">/* cpl_errorstate_dump(prestate, CPL_FALSE, NULL); */</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>             cpl_errorstate_set(prestate);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>             <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>         }</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     } </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     <span class="keywordflow">if</span> (xcorrs != NULL) {</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>         *xcorrs = vxcorrs;</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>         <span class="comment">/* assert(vxcorrs == NULL); */</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     }</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     <span class="keywordflow">return</span> poly_sol;</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> }</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> cpl_table * irplib_wlxcorr_gen_spc_table(</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>         <span class="keyword">const</span> cpl_vector        *   spectrum,</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>         <span class="keyword">const</span> cpl_bivector      *   lines_catalog,</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>         <span class="keywordtype">double</span>                      slitw,</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>         <span class="keywordtype">double</span>                      fwhm,</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>         <span class="keyword">const</span> cpl_polynomial    *   guess_poly,</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>         <span class="keyword">const</span> cpl_polynomial    *   corr_poly)</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> {</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     cpl_vector      *   conv_kernel = NULL;</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     cpl_bivector    *   gen_init ;</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     cpl_bivector    *   gen_corr ;</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     cpl_table       *   spc_table ;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   pgen ;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>        xtrunc = 0.5 * slitw + 5.0 * fwhm * CPL_MATH_SIG_FWHM;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           spec_sz = cpl_vector_get_size(spectrum);</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     <span class="keyword">const</span> cpl_boolean   guess_resamp</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>         = !irplib_wlcalib_is_lines(cpl_bivector_get_x_const(lines_catalog),</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>                                 guess_poly, spec_sz, 1.0);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     <span class="keyword">const</span> cpl_boolean   corr_resamp</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>         = !irplib_wlcalib_is_lines(cpl_bivector_get_x_const(lines_catalog),</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>                                 corr_poly, spec_sz, 1.0);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     cpl_error_code      error;</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     cpl_msg_debug(cpl_func, <span class="stringliteral">"Tabel for guess dispersion polynomial (slitw=%g, "</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>                   <span class="stringliteral">"fwhm=%g) with %d-point observed spectrum with%s catalog re"</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                   <span class="stringliteral">"sampling"</span>, slitw, fwhm, spec_sz, guess_resamp ? <span class="stringliteral">"out"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     cpl_msg_debug(cpl_func, <span class="stringliteral">"Tabel for corr. dispersion polynomial (slitw=%g, "</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>                   <span class="stringliteral">"fwhm=%g) with %d-point observed spectrum with%s catalog re"</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                   <span class="stringliteral">"sampling"</span>, slitw, fwhm, spec_sz, corr_resamp ? <span class="stringliteral">"out"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     <span class="comment">/* Test inputs */</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     cpl_ensure(spectrum, CPL_ERROR_NULL_INPUT, NULL) ;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     cpl_ensure(lines_catalog, CPL_ERROR_NULL_INPUT, NULL) ;</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     cpl_ensure(guess_poly, CPL_ERROR_NULL_INPUT, NULL) ;</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     cpl_ensure(corr_poly, CPL_ERROR_NULL_INPUT, NULL) ;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     <span class="comment">/* Create the convolution kernel */</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     <span class="keywordflow">if</span> (guess_resamp || corr_resamp) {</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>         conv_kernel = irplib_wlxcorr_convolve_create_kernel(slitw, fwhm);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>         <span class="keywordflow">if</span> (conv_kernel == NULL) {</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>             cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>                                         __FILE__, __LINE__, <span class="stringliteral">"Cannot create "</span></div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>                                         <span class="stringliteral">"convolution kernel"</span>) ;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>             <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         }</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     }</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="comment">/* Get the emission at initial wavelengths */</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     gen_init = cpl_bivector_new(spec_sz);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     <span class="keywordflow">if</span> (guess_resamp) {</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         error = irplib_wlcalib_fill_spectrum(cpl_bivector_get_y(gen_init),</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>                                           lines_catalog, conv_kernel,</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                                           guess_poly, 0);</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>         error = <a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761" title="Generate a 1D spectrum from (arc) lines and a dispersion relation.">irplib_vector_fill_line_spectrum_model</a></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>             (cpl_bivector_get_y(gen_init), NULL, NULL,</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>              guess_poly, lines_catalog,</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>              slitw, fwhm, xtrunc, 0, CPL_FALSE, CPL_FALSE, NULL);</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     }</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     <span class="keywordflow">if</span> (error || cpl_vector_fill_polynomial(cpl_bivector_get_x(gen_init),</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                                             guess_poly, 1, 1)) {</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>         cpl_vector_delete(conv_kernel);</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>         cpl_bivector_delete(gen_init);</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>         cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                                     __FILE__, __LINE__, <span class="stringliteral">"Cannot get the "</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                                     <span class="stringliteral">"emission spectrum"</span>);</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     }</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>  </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     <span class="comment">/* Get the emission at corrected wavelengths */</span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     gen_corr = cpl_bivector_new(spec_sz);</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     <span class="keywordflow">if</span> (corr_resamp) {</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>         error = irplib_wlcalib_fill_spectrum(cpl_bivector_get_y(gen_corr),</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                                           lines_catalog, conv_kernel,</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                                           corr_poly, 0);</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>         error = <a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761" title="Generate a 1D spectrum from (arc) lines and a dispersion relation.">irplib_vector_fill_line_spectrum_model</a></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>             (cpl_bivector_get_y(gen_corr), NULL, NULL,</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>              corr_poly, lines_catalog,</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>              slitw, fwhm, xtrunc, 0, CPL_FALSE, CPL_FALSE, NULL);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     }</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     <span class="keywordflow">if</span> (error || cpl_vector_fill_polynomial(cpl_bivector_get_x(gen_corr),</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>                                             corr_poly, 1, 1)) {</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>         cpl_vector_delete(conv_kernel);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>         cpl_bivector_delete(gen_init);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>         cpl_bivector_delete(gen_corr) ;</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>         cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>                                     __FILE__, __LINE__, <span class="stringliteral">"Cannot get the "</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>                                     <span class="stringliteral">"emission spectrum"</span>);</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     }</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     cpl_vector_delete(conv_kernel) ;</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     <span class="comment">/* Create the ouput table */</span></div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     spc_table = cpl_table_new(spec_sz);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     cpl_table_new_column(spc_table, IRPLIB_WLXCORR_COL_WAVELENGTH, </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>             CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     cpl_table_new_column(spc_table, IRPLIB_WLXCORR_COL_CAT_INIT, </div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>             CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     cpl_table_new_column(spc_table, IRPLIB_WLXCORR_COL_CAT_FINAL, </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>             CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     cpl_table_new_column(spc_table, IRPLIB_WLXCORR_COL_OBS, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     <span class="comment">/* Update table */</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     pgen = cpl_bivector_get_x_data_const(gen_corr) ;</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     cpl_table_copy_data_double(spc_table, IRPLIB_WLXCORR_COL_WAVELENGTH, pgen) ;</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>     pgen = cpl_bivector_get_y_data_const(gen_corr) ;</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>     cpl_table_copy_data_double(spc_table, IRPLIB_WLXCORR_COL_CAT_FINAL, pgen) ;</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>     pgen = cpl_vector_get_data_const(spectrum) ;</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     cpl_table_copy_data_double(spc_table, IRPLIB_WLXCORR_COL_OBS, pgen) ;</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>     pgen = cpl_bivector_get_y_data_const(gen_init) ;</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>     cpl_table_copy_data_double(spc_table, IRPLIB_WLXCORR_COL_CAT_INIT, pgen);</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>     cpl_bivector_delete(gen_init);</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     cpl_bivector_delete(gen_corr);</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     <span class="keywordflow">return</span> spc_table ;</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> }</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> cpl_bivector * irplib_wlxcorr_cat_extract(</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>         <span class="keyword">const</span> cpl_bivector  *   lines_catalog,</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>         <span class="keywordtype">double</span>                  wave_min,</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>         <span class="keywordtype">double</span>                  wave_max)</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> {</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           nlines = cpl_bivector_get_size(lines_catalog);</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     <span class="keywordtype">int</span>                 wave_min_id, wave_max_id ;</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     cpl_vector       *  sub_cat_wl ;</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     cpl_vector       *  sub_cat_int ;</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     <span class="keyword">const</span> cpl_vector *  xlines  = cpl_bivector_get_x_const(lines_catalog);</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>     *  dxlines = cpl_vector_get_data_const(xlines);</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>     cpl_ensure(lines_catalog != NULL, CPL_ERROR_NULL_INPUT,    NULL);</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     <span class="comment">/* Find the 1st line */</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     wave_min_id = (int)cpl_vector_find(xlines, wave_min);</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     <span class="keywordflow">if</span> (wave_min_id < 0) {</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>         cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>                                     __FILE__, __LINE__, </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>                                     <span class="stringliteral">"The starting wavelength cannot be found"</span>) ;</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     }</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     <span class="comment">/* The first line must be greater than (at least?) wave_min */</span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     <span class="keywordflow">if</span> (dxlines[wave_min_id] <= wave_min) wave_min_id++;</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> </div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     <span class="comment">/* Find the last line */</span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>     wave_max_id = (int)cpl_vector_find(xlines, wave_max);</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     <span class="keywordflow">if</span> (wave_max_id < 0) {</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>         cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>                                     __FILE__, __LINE__, </div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>                                     <span class="stringliteral">"The ending wavelength cannot be found"</span>) ;</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     }</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     <span class="comment">/* The last line must be less than wave_max */</span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     <span class="keywordflow">if</span> (dxlines[wave_max_id] >= wave_min) wave_max_id--;</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>     <span class="comment">/* Checking the wavelength range at this point via the indices also</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">       verifies that they were not found using non-increasing wavelengths */</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>     cpl_ensure(wave_min_id <= wave_max_id, CPL_ERROR_ILLEGAL_INPUT, NULL);</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> </div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>     <span class="keywordflow">if</span> (wave_min_id < 0 || wave_max_id == nlines) {</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>         cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>                                     __FILE__, __LINE__, <span class="stringliteral">"The %d-line catalogue "</span></div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>                                     <span class="stringliteral">"has no lines in the range %g -> %g"</span>,</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>                                     nlines, wave_min, wave_max);</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     }</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>     sub_cat_wl = cpl_vector_extract(xlines, wave_min_id, wave_max_id, 1);</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     sub_cat_int = cpl_vector_extract(cpl_bivector_get_y_const(lines_catalog), </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>                                      wave_min_id, wave_max_id, 1);</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>  </div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>     <span class="keywordflow">return</span> cpl_bivector_wrap_vectors(sub_cat_wl, sub_cat_int);</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> }</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> </div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> cpl_vector * irplib_wlxcorr_convolve_create_kernel(<span class="keywordtype">double</span>  slitw,</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                                                    <span class="keywordtype">double</span>  fwhm)</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> {</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>  sigma  = fwhm * CPL_MATH_SIG_FWHM;</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>     size   = 1 + (int)(5.0 * sigma + 0.5*slitw);</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     cpl_vector  * kernel = cpl_vector_new(size);</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> </div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> </div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>     <span class="keywordflow">if</span> (cpl_vector_fill_lss_profile_symmetric(kernel, slitw, fwhm)) {</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>         cpl_vector_delete(kernel);</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>         cpl_ensure(0, cpl_error_get_code(), NULL);</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>     }</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> </div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>     <span class="keywordflow">return</span> kernel;</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> }</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> </div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> <span class="keywordtype">int</span> irplib_wlxcorr_convolve(</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>         cpl_vector          *   smoothed,</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>         <span class="keyword">const</span> cpl_vector    *   conv_kernel)</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> {</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>     <span class="keywordtype">int</span>             nsamples ;</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     <span class="keywordtype">int</span>             ihwidth ;</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     cpl_vector  *   raw ;</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     <span class="keywordtype">double</span>      *   psmoothe ;</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>     <span class="keywordtype">double</span>      *   praw ;</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>*   psymm ;</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     <span class="keywordtype">int</span>             i, j ;</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     cpl_ensure(smoothed, CPL_ERROR_NULL_INPUT, -1) ;</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>     cpl_ensure(conv_kernel, CPL_ERROR_NULL_INPUT, -1) ;</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>     nsamples = cpl_vector_get_size(smoothed) ;</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     ihwidth = cpl_vector_get_size(conv_kernel) - 1 ;</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>     cpl_ensure(ihwidth<nsamples, CPL_ERROR_ILLEGAL_INPUT, -1) ;</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>     psymm = cpl_vector_get_data_const(conv_kernel) ;</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>     psmoothe = cpl_vector_get_data(smoothed) ;</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     </div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>     <span class="comment">/* Create raw vector */</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>     raw = cpl_vector_duplicate(smoothed) ;</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>     praw = cpl_vector_get_data(raw) ;</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> </div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>     <span class="comment">/* Convolve with the symmetric function */</span></div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>     <span class="keywordflow">for</span> (i=0 ; i<ihwidth ; i++) {</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>         psmoothe[i] = praw[i] * psymm[0];</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>         <span class="keywordflow">for</span> (j=1 ; j <= ihwidth ; j++) {</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>             <span class="keyword">const</span> <span class="keywordtype">int</span> k = i-j < 0 ? 0 : i-j;</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>             psmoothe[i] += (praw[k]+praw[i+j]) * psymm[j];</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>         }</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     }</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> </div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>     <span class="keywordflow">for</span> (i=ihwidth ; i<nsamples-ihwidth ; i++) {</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>         psmoothe[i] = praw[i] * psymm[0];</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>         <span class="keywordflow">for</span> (j=1 ; j<=ihwidth ; j++)</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>             psmoothe[i] += (praw[i-j]+praw[i+j]) * psymm[j];</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     }</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>     <span class="keywordflow">for</span> (i=nsamples-ihwidth ; i<nsamples ; i++) {</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>         psmoothe[i] = praw[i] * psymm[0];</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>         <span class="keywordflow">for</span> (j=1 ; j<=ihwidth ; j++) {</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>             <span class="keyword">const</span> <span class="keywordtype">int</span> k = i+j > nsamples-1 ? nsamples - 1 : i+j;</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>             psmoothe[i] += (praw[k]+praw[i-j]) * psymm[j];</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>         }</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     }</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>     cpl_vector_delete(raw) ;</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> }</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> </div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span> <span class="keywordtype">int</span> irplib_wlxcorr_plot_solution(</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>         <span class="keyword">const</span> cpl_polynomial    *   init,</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>         <span class="keyword">const</span> cpl_polynomial    *   comp,</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>         <span class="keyword">const</span> cpl_polynomial    *   sol,</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>         <span class="keywordtype">int</span>                         pix_start,</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>         <span class="keywordtype">int</span>                         pix_stop) </div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> {</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>     <span class="keywordtype">int</span>                 nsamples, nplots ;</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>     cpl_vector      **  vectors ;</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>     cpl_bivector    *   bivector ;</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>     <span class="keywordtype">double</span>              diff ;</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>     <span class="keywordtype">int</span>                 i ;</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>     </div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>     <span class="keywordflow">if</span> (init == NULL || comp == NULL) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>     </div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>     nsamples = pix_stop - pix_start + 1 ;</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>     <span class="keywordflow">if</span> (sol != NULL)    nplots = 3 ;</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>     <span class="keywordflow">else</span>                nplots = 2 ;</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>     </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     <span class="comment">/* Create vectors */</span></div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>     vectors = cpl_malloc((nplots+1)*<span class="keyword">sizeof</span>(cpl_vector*)) ;</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>     <span class="keywordflow">for</span> (i=0 ; i<nplots+1 ; i++) vectors[i] = cpl_vector_new(nsamples) ;</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>     <span class="comment">/* First plot with the lambda/pixel relation */</span></div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>     <span class="comment">/* Fill vectors */</span></div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>     <span class="keywordflow">for</span> (i=0 ; i<nsamples ; i++) {</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>         cpl_vector_set(vectors[0], i, pix_start+i) ;</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>         cpl_vector_set(vectors[1], i, </div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>                 cpl_polynomial_eval_1d(init, (<span class="keywordtype">double</span>)(pix_start+i), NULL)) ;</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>         cpl_vector_set(vectors[2], i, </div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>                 cpl_polynomial_eval_1d(comp, (<span class="keywordtype">double</span>)(pix_start+i), NULL)) ;</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>         <span class="keywordflow">if</span> (sol != NULL) </div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>             cpl_vector_set(vectors[3], i, </div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                     cpl_polynomial_eval_1d(sol, (<span class="keywordtype">double</span>)(pix_start+i), NULL)) ;</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>     }</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> </div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>     <span class="comment">/* Plot */</span></div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     cpl_plot_vectors(<span class="stringliteral">"set grid;set xlabel 'Position (pixels)';"</span>, </div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>         <span class="stringliteral">"t '1-Initial / 2-Computed / 3-Solution' w lines"</span>, </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>         <span class="stringliteral">""</span>, (<span class="keyword">const</span> cpl_vector **)vectors, nplots+1);</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> </div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>     <span class="comment">/* Free vectors */</span></div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>     <span class="keywordflow">for</span> (i=0 ; i<nplots+1 ; i++) cpl_vector_delete(vectors[i]) ;</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>     cpl_free(vectors) ;</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span> </div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     <span class="comment">/* Allocate vectors */</span></div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>     nplots -- ;</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>     vectors = cpl_malloc((nplots+1)*<span class="keyword">sizeof</span>(cpl_vector*)) ;</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     <span class="keywordflow">for</span> (i=0 ; i<nplots+1 ; i++) vectors[i] = cpl_vector_new(nsamples) ;</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>     </div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     <span class="comment">/* Second plot with the delta-lambda/pixel relation */</span></div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="comment">/* Fill vectors */</span></div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     <span class="keywordflow">for</span> (i=0 ; i<nsamples ; i++) {</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>         cpl_vector_set(vectors[0], i, pix_start+i) ;</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>         diff = cpl_polynomial_eval_1d(comp, (<span class="keywordtype">double</span>)(pix_start+i), NULL) -</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>             cpl_polynomial_eval_1d(init, (<span class="keywordtype">double</span>)(pix_start+i), NULL) ;</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>         cpl_vector_set(vectors[1], i, diff) ;</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>         <span class="keywordflow">if</span> (sol != NULL) {</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>             diff = cpl_polynomial_eval_1d(sol, (<span class="keywordtype">double</span>)(pix_start+i), NULL) -</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>                 cpl_polynomial_eval_1d(init, (<span class="keywordtype">double</span>)(pix_start+i), NULL) ;</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>             cpl_vector_set(vectors[2], i, diff) ;</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>         }</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     }</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> </div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>     <span class="comment">/* Plot */</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     <span class="keywordflow">if</span> (sol == NULL) {</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>         bivector = cpl_bivector_wrap_vectors(vectors[0], vectors[1]) ;</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>         cpl_plot_bivector(</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> <span class="stringliteral">"set grid;set xlabel 'Position (pixels)';set ylabel 'Wavelength difference';"</span>, </div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>             <span class="stringliteral">"t 'Computed-Initial wavelenth' w lines"</span>, <span class="stringliteral">""</span>, bivector);</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>         cpl_bivector_unwrap_vectors(bivector) ;</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>         cpl_plot_vectors(<span class="stringliteral">"set grid;set xlabel 'Position (pixels)';"</span>, </div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>             <span class="stringliteral">"t '1-Computed - Initial / 2--Solution - Initial' w lines"</span>, </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>             <span class="stringliteral">""</span>, (<span class="keyword">const</span> cpl_vector **)vectors, nplots+1);</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     }</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>     </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     <span class="comment">/* Free vectors */</span></div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     <span class="keywordflow">for</span> (i=0 ; i<nplots+1 ; i++) cpl_vector_delete(vectors[i]) ;</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>     cpl_free(vectors) ;</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span> </div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>     <span class="comment">/* Return */</span></div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> }</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> </div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span> <span class="keywordtype">int</span> irplib_wlxcorr_plot_spc_table(</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>         <span class="keyword">const</span> cpl_table     *   spc_table, </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>          *   title,</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>         <span class="keywordtype">int</span>                     first_plotted_line,</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>         <span class="keywordtype">int</span>                     last_plotted_line) </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span> {</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>     <span class="keywordtype">char</span>                title_loc[1024] ;</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>     cpl_vector      **  vectors ;</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>     cpl_vector      **  sub_vectors ;</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     cpl_vector      *   tmp_vec ;</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>     <span class="keywordtype">int</span>                 nsamples ;</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     <span class="keywordtype">double</span>              max, mean1, mean3 ;</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     <span class="keywordtype">int</span>                 start_ind, stop_ind, hsize_pix ;</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>     <span class="keywordtype">int</span>                 i, j ;</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> </div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>     <span class="keywordflow">if</span> (first_plotted_line > last_plotted_line) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     <span class="keywordflow">if</span> (spc_table == NULL) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>     </div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>     nsamples = cpl_table_get_nrow(spc_table) ;</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     hsize_pix = 10 ;</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>     </div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>     sprintf(title_loc, </div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>         <span class="stringliteral">"t '%s - 1-Initial catalog/2-Corrected catalog/3-Observed' w lines"</span>,</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>         title) ;</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>     title_loc[1023] = (char)0 ;</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>     </div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     vectors = cpl_malloc(4*<span class="keyword">sizeof</span>(cpl_vector*)) ;</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     vectors[0] = cpl_vector_wrap(nsamples, </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>             cpl_table_get_data_double((cpl_table*)spc_table,</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>                 IRPLIB_WLXCORR_COL_WAVELENGTH));</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>     vectors[1] = cpl_vector_wrap(nsamples, </div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>             cpl_table_get_data_double((cpl_table*)spc_table, </div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>                 IRPLIB_WLXCORR_COL_CAT_INIT));</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     vectors[2] = cpl_vector_wrap(nsamples, </div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>             cpl_table_get_data_double((cpl_table*)spc_table, </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>                 IRPLIB_WLXCORR_COL_CAT_FINAL));</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>     vectors[3] = cpl_vector_wrap(nsamples, </div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>             cpl_table_get_data_double((cpl_table*)spc_table, </div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>                 IRPLIB_WLXCORR_COL_OBS)) ;</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span> </div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     <span class="comment">/* Scale the signal for a bettre display */</span></div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     mean1 = cpl_vector_get_mean(vectors[1]) ;</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>     mean3 = cpl_vector_get_mean(vectors[3]) ;</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>     <span class="keywordflow">if</span> (fabs(mean3) > 1)</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>         cpl_vector_multiply_scalar(vectors[3], fabs(mean1/mean3)) ;</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span> </div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>     cpl_plot_vectors(<span class="stringliteral">"set grid;set xlabel 'Wavelength (nm)';"</span>, title_loc,</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>         <span class="stringliteral">""</span>, (<span class="keyword">const</span> cpl_vector **)vectors, 4);</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>     <span class="comment">/* Unscale the signal */</span></div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>     <span class="keywordflow">if</span> (fabs(mean3) > 1)</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>         cpl_vector_multiply_scalar(vectors[3], mean3/mean1) ;</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span> </div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>     <span class="comment">/* Loop on the brightest lines and zoom on them */</span></div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>     sprintf(title_loc, </div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> <span class="stringliteral">"t '%s - 1-Initial catalog/2-Corrected catalog/3-Observed (ZOOMED)' w lines"</span>,</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>         title) ;</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>     title_loc[1023] = (char)0 ;</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>     tmp_vec = cpl_vector_duplicate(vectors[2]) ;</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>     <span class="keywordflow">for</span> (i=0 ; i<last_plotted_line ; i++) {</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>         <span class="comment">/* Find the brightest line */</span></div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>         <span class="keywordflow">if</span> ((max = cpl_vector_get_max(tmp_vec)) <= 0.0) break ;</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>         <span class="keywordflow">for</span> (j=0 ; j<nsamples ; j++) {</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>             <span class="keywordflow">if</span> (cpl_vector_get(tmp_vec, j) == max) break ;</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>         }</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>         <span class="keywordflow">if</span> (j-hsize_pix < 0) start_ind = 0 ;</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>         <span class="keywordflow">else</span> start_ind = j-hsize_pix ;</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>         <span class="keywordflow">if</span> (j+hsize_pix > nsamples-1) stop_ind = nsamples-1 ;</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>         <span class="keywordflow">else</span> stop_ind = j+hsize_pix ;</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>         <span class="keywordflow">for</span> (j=start_ind ; j<=stop_ind ; j++) cpl_vector_set(tmp_vec, j, 0.0) ;</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>         <span class="keywordflow">if</span> (i+1 >= first_plotted_line) {</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>             sub_vectors = cpl_malloc(4*<span class="keyword">sizeof</span>(cpl_vector*)) ;</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>             sub_vectors[0]=cpl_vector_extract(vectors[0],start_ind,stop_ind,1);</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>             sub_vectors[1]=cpl_vector_extract(vectors[1],start_ind,stop_ind,1);</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>             sub_vectors[2]=cpl_vector_extract(vectors[2],start_ind,stop_ind,1);</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>             sub_vectors[3]=cpl_vector_extract(vectors[3],start_ind,stop_ind,1);</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span> </div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>             cpl_plot_vectors(<span class="stringliteral">"set grid;set xlabel 'Wavelength (nm)';"</span>, </div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>                     title_loc, <span class="stringliteral">""</span>, (<span class="keyword">const</span> cpl_vector **)sub_vectors, 4);</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> </div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>             cpl_vector_delete(sub_vectors[0]) ;</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>             cpl_vector_delete(sub_vectors[1]) ;</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>             cpl_vector_delete(sub_vectors[2]) ;</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>             cpl_vector_delete(sub_vectors[3]) ;</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>             cpl_free(sub_vectors) ;</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>         }</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>     }</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>     cpl_vector_delete(tmp_vec) ;</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>     </div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>     cpl_vector_unwrap(vectors[0]) ;</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>     cpl_vector_unwrap(vectors[1]) ;</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>     cpl_vector_unwrap(vectors[2]) ;</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>     cpl_vector_unwrap(vectors[3]) ;</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>     cpl_free(vectors) ;</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span> </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span> }</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span> </div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> <span class="keywordtype">int</span> irplib_wlxcorr_catalog_plot(</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>         <span class="keyword">const</span> cpl_bivector      *   cat,</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>         <span class="keywordtype">double</span>                      wmin,</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>         <span class="keywordtype">double</span>                      wmax) </div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> {</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>     <span class="keywordtype">int</span>                 start, stop ;</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>     cpl_bivector    *   subcat ;</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>     cpl_vector      *   subcat_x ;</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>     cpl_vector      *   subcat_y ;</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   pwave ;</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>     <span class="keywordtype">int</span>                 nvals, nvals_tot ;</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>     <span class="keywordtype">int</span>                 i ;</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> </div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>     <span class="keywordflow">if</span> (cat == NULL) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>     <span class="keywordflow">if</span> (wmax <= wmin) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> </div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>     nvals_tot = cpl_bivector_get_size(cat) ;</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> </div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>     <span class="comment">/* Count the nb of values */</span></div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>     pwave = cpl_bivector_get_x_data_const(cat) ;</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>     <span class="keywordflow">if</span> (pwave[0] >= wmin) start = 0 ;</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>     <span class="keywordflow">else</span> start = -1 ;</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>     <span class="keywordflow">if</span> (pwave[nvals_tot-1] <= wmax) stop = nvals_tot-1 ;</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>     <span class="keywordflow">else</span> stop = -1 ;</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>     i=0 ;</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>     <span class="keywordflow">while</span> ((pwave[i] < wmin) && (i<nvals_tot-1)) i++ ;</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     start = i ;</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>     i= nvals_tot-1 ;</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>     <span class="keywordflow">while</span> ((pwave[i] > wmax) && (i>0)) i-- ;</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>     stop = i ;</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span> </div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>     <span class="keywordflow">if</span> (start>=stop) {</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>         cpl_msg_error(cpl_func, <span class="stringliteral">"Cannot plot the catalog"</span>) ;</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>     }</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>     nvals = start - stop + 1 ;</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> </div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>     <span class="comment">/* Create the bivector to plot */</span></div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>     subcat_x = cpl_vector_extract(cpl_bivector_get_x_const(cat),start,stop, 1) ;</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>     subcat_y = cpl_vector_extract(cpl_bivector_get_y_const(cat),start,stop, 1) ;</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>     subcat = cpl_bivector_wrap_vectors(subcat_x, subcat_y) ;</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> </div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>     <span class="comment">/* Plot */</span></div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>     <span class="keywordflow">if</span> (nvals > 500) {</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>         cpl_plot_bivector(</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>                 <span class="stringliteral">"set grid;set xlabel 'Wavelength (nm)';set ylabel 'Emission';"</span>,</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>                 <span class="stringliteral">"t 'Catalog Spectrum' w lines"</span>, <span class="stringliteral">""</span>, subcat);</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>         cpl_plot_bivector(</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>                 <span class="stringliteral">"set grid;set xlabel 'Wavelength (nm)';set ylabel 'Emission';"</span>,</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>                 <span class="stringliteral">"t 'Catalog Spectrum' w impulses"</span>, <span class="stringliteral">""</span>, subcat);</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>     }</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>     cpl_bivector_unwrap_vectors(subcat) ;</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>     cpl_vector_delete(subcat_x) ;</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>     cpl_vector_delete(subcat_y) ;</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span> </div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> }</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>    </div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> <span class="keyword">static</span> <span class="keywordtype">void</span> irplib_wlxcorr_estimate(cpl_vector           * vxc,</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                                     cpl_vector           * model,</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>                                     <span class="keyword">const</span> cpl_vector     * spectrum,</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>                                     <span class="keyword">const</span> cpl_bivector   * lines_catalog,</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                                     <span class="keyword">const</span> cpl_vector     * conv_kernel,</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                                     <span class="keyword">const</span> cpl_polynomial * poly_candi,</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>                                     <span class="keywordtype">double</span>                 slitw,</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                                     <span class="keywordtype">double</span>                 fwhm)</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span> {</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>     cpl_errorstate prestate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> hsize = cpl_vector_get_size(vxc) / 2;</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> </div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>     <span class="keywordflow">if</span> (conv_kernel != NULL) {</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>         irplib_wlcalib_fill_spectrum(model, lines_catalog, conv_kernel,</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>                                   poly_candi, hsize);</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> xtrunc = 0.5 * slitw + 5.0 * fwhm * CPL_MATH_SIG_FWHM;</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span> </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>         <a class="code" href="group__irplib__wavecal.html#ga8a65755ca17c9fa0b69ceb128f544761" title="Generate a 1D spectrum from (arc) lines and a dispersion relation.">irplib_vector_fill_line_spectrum_model</a>(model, NULL, NULL, poly_candi,</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                                                lines_catalog, slitw, fwhm,</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                                                xtrunc, 0, CPL_FALSE, CPL_FALSE,</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                                                NULL);</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>     }</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span> </div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>     <span class="keywordflow">if</span> (cpl_errorstate_is_equal(prestate))</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>         cpl_vector_correlate(vxc, model, spectrum);</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span> </div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>     <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(prestate)) {</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>         cpl_vector_fill(vxc, 0.0);</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> </div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>         <span class="comment">/* cpl_errorstate_dump(prestate, CPL_FALSE, NULL); */</span></div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>         cpl_errorstate_set(prestate);</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span> </div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>     }</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> </div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span> }</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span> </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span> </div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> <span class="keyword">static</span> cpl_boolean irplib_wlcalib_is_lines(<span class="keyword">const</span> cpl_vector * wavelengths,</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>                                         <span class="keyword">const</span> cpl_polynomial * disp1d,</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                                         <span class="keywordtype">int</span> spec_sz,</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>                                         <span class="keywordtype">double</span> tol)</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> {</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> nlines = cpl_vector_get_size(wavelengths);</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>     <span class="comment">/* The dispersion on the detector center */</span></div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> dispersion = cpl_polynomial_eval_1d_diff(disp1d,</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>                                                           0.5 * spec_sz + 1.0,</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>                                                           0.5 * spec_sz,</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>                                                           NULL);</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> range = cpl_vector_get(wavelengths, nlines-1)</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>         - cpl_vector_get(wavelengths, 0);</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span> </div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>     cpl_ensure(wavelengths != NULL, CPL_ERROR_NULL_INPUT,    CPL_FALSE);</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>     cpl_ensure(disp1d      != NULL, CPL_ERROR_NULL_INPUT,    CPL_FALSE);</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>     cpl_ensure(cpl_polynomial_get_dimension(disp1d) == 1,</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>                CPL_ERROR_ILLEGAL_INPUT, CPL_FALSE);</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>     cpl_ensure(range > 0.0,      CPL_ERROR_ILLEGAL_INPUT, CPL_FALSE);</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>     <span class="keywordflow">return</span> nlines * fabs(dispersion) <= tol * fabs(range) ? CPL_TRUE</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>         : CPL_FALSE;</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> </div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> }</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> </div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span> cpl_error_code irplib_wlcalib_fill_spectrum(cpl_vector           * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>                                          <span class="keyword">const</span> cpl_bivector   * lines_catalog,</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>                                          <span class="keyword">const</span> cpl_vector     * conv_kernel,</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>                                          <span class="keyword">const</span> cpl_polynomial * poly,</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>                                          <span class="keywordtype">int</span>                    search_hs)</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> {</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span> </div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>          size = cpl_vector_get_size(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>          nlines = cpl_bivector_get_size(lines_catalog);</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>     <span class="keyword">const</span> cpl_vector * xlines  = cpl_bivector_get_x_const(lines_catalog);</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>     * dxlines = cpl_vector_get_data_const(xlines);</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>     cpl_bivector     * sub_cat ;</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>     cpl_vector       * sub_cat_x;</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>     cpl_vector       * sub_cat_y;</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>     cpl_vector       * wl_limits;</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>     <span class="keywordtype">double</span>             wave_min, wave_max;</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>     <span class="keywordtype">int</span>                wave_min_id, wave_max_id;</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>     <span class="keywordtype">int</span>                nsub;</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>     <span class="keywordtype">int</span>                error;</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> </div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>     cpl_ensure_code(<span class="keyword">self</span>          != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>     cpl_ensure_code(lines_catalog != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>     cpl_ensure_code(conv_kernel   != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>     cpl_ensure_code(poly          != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>     cpl_ensure_code(size > 0,              CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> </div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> </div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>     <span class="comment">/* Resample the spectrum */</span></div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>     wl_limits = cpl_vector_new(size + 1);</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>     cpl_vector_fill_polynomial(wl_limits, poly, 0.5 - search_hs, 1);</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>     <span class="comment">/* The spectrum wavelength bounds */</span></div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>     wave_min = cpl_vector_get(wl_limits, 0);</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>     wave_max = cpl_vector_get(wl_limits, size);</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> </div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>     <span class="comment">/* Find the 1st line */</span></div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>     wave_min_id = cpl_vector_find(xlines, wave_min);</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>     <span class="comment">/* The first line must be less than or equal to wave_min */</span></div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>     <span class="keywordflow">if</span> (dxlines[wave_min_id] > wave_min) wave_min_id--;</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> </div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>     <span class="keywordflow">if</span> (wave_min_id < 0) {</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>         cpl_vector_delete(wl_limits);</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>         <span class="keywordflow">return</span> cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>                                            __FILE__, __LINE__, <span class="stringliteral">"The %d-line "</span></div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>                                            <span class="stringliteral">"catalogue only has lines above %g"</span>,</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>                                            nlines, wave_min);</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>     }</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span> </div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>     <span class="comment">/* Find the last line */</span></div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>     wave_max_id = cpl_vector_find(xlines, wave_max);</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>     <span class="comment">/* The last line must be greater than or equal to wave_max */</span></div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>     <span class="keywordflow">if</span> (dxlines[wave_max_id] < wave_max) wave_max_id++;</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> </div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>     <span class="keywordflow">if</span> (wave_max_id == nlines) {</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>         cpl_vector_delete(wl_limits);</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>         <span class="keywordflow">return</span> cpl_error_set_message_macro(cpl_func, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                                            __FILE__, __LINE__, <span class="stringliteral">"The %d-line "</span></div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>                                            <span class="stringliteral">"catalogue only has lines below %g"</span>,</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                                            nlines, wave_max);</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>     }</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> </div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>     <span class="comment">/* Checking the wavelength range at this point via the indices also</span></div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> <span class="comment">       verifies that they were not found using non-increasing wavelengths */</span></div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>     nsub = 1 + wave_max_id - wave_min_id;</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>     cpl_ensure_code(nsub > 1, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> </div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>     <span class="comment">/* Wrap a new bivector around the relevant part of the catalog */</span></div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>     <span class="comment">/* The data is _not_ modified */</span></div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>     sub_cat_x = cpl_vector_wrap(nsub, wave_min_id + (<span class="keywordtype">double</span>*)dxlines);</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>     sub_cat_y = cpl_vector_wrap(nsub, wave_min_id + (<span class="keywordtype">double</span>*)</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>                                 cpl_bivector_get_y_data_const(lines_catalog));</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>     sub_cat = cpl_bivector_wrap_vectors(sub_cat_x, sub_cat_y);</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> </div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>     <span class="comment">/* High resolution catalog */</span></div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>     error = irplib_wlxcorr_signal_resample(<span class="keyword">self</span>, wl_limits, sub_cat);</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>     cpl_vector_delete(wl_limits);</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>     cpl_bivector_unwrap_vectors(sub_cat);</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>     (void)cpl_vector_unwrap(sub_cat_x);</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>     (void)cpl_vector_unwrap(sub_cat_y);</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> </div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>     cpl_ensure_code(!error, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> </div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>     <span class="comment">/* Smooth the instrument resolution */</span></div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>     cpl_ensure_code(!irplib_wlxcorr_convolve(<span class="keyword">self</span>, conv_kernel),</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>                     cpl_error_get_code());</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> </div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> }</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> </div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> </div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span> <span class="keyword">static</span> <span class="keywordtype">int</span> irplib_wlxcorr_signal_resample(</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>         cpl_vector          *   resampled, </div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>         <span class="keyword">const</span> cpl_vector    *   xbounds,</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>         <span class="keyword">const</span> cpl_bivector  *   hires)</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> {</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>           hrsize = cpl_bivector_get_size(hires);</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>     <span class="keyword">const</span> cpl_vector*   xhires ;</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>     <span class="keyword">const</span> cpl_vector*   yhires ;</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   pxhires ;</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   pyhires ;</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   pxbounds ;</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>     cpl_vector      *   ybounds ;</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>     cpl_bivector    *   boundary ;</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>     <span class="keywordtype">double</span>          *   pybounds ;</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>     <span class="keywordtype">double</span>          *   presampled ;</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>     <span class="keywordtype">int</span>                 nsamples ;</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>     <span class="keywordtype">int</span>                 i, itt ;</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>    </div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>     <span class="keywordflow">if</span> ((!resampled) || (!xbounds) || (!hires)) <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span> </div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>     nsamples = cpl_vector_get_size(resampled) ;</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span> </div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>     <span class="comment">/* Initialise */</span></div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>     presampled = cpl_vector_get_data(resampled) ;</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     pxbounds = cpl_vector_get_data_const(xbounds) ;</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>     xhires = cpl_bivector_get_x_const(hires) ;</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>     yhires = cpl_bivector_get_y_const(hires) ;</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>     pxhires = cpl_vector_get_data_const(xhires) ;</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>     pyhires = cpl_vector_get_data_const(yhires) ;</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>     </div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>     <span class="comment">/* Create a new vector */</span></div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>     ybounds = cpl_vector_new(cpl_vector_get_size(xbounds)) ;</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>     boundary = cpl_bivector_wrap_vectors((cpl_vector*)xbounds,ybounds) ;</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>     pybounds = cpl_vector_get_data(ybounds) ;</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> </div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>     <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>     <span class="keywordflow">if</span> (cpl_bivector_get_size(boundary) != nsamples + 1) {</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>         cpl_bivector_unwrap_vectors(boundary) ;</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>         cpl_vector_delete(ybounds) ;</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>     }</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span> </div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>     <span class="comment">/* Get the ind  */</span></div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>     itt = cpl_vector_find(xhires, pxbounds[0]);</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span> </div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>     <span class="comment">/* Interpolate the signal */</span></div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>     <span class="keywordflow">if</span> (cpl_bivector_interpolate_linear(boundary, hires)) {</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>         cpl_bivector_unwrap_vectors(boundary) ;</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>         cpl_vector_delete(ybounds) ;</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>     }</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> </div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>     <span class="comment">/* At this point itt most likely points to element just below</span></div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span> <span class="comment">       pxbounds[0] */</span></div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>     <span class="keywordflow">while</span> (pxhires[itt] < pxbounds[0]) itt++;</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span> </div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>     <span class="keywordflow">for</span> (i=0; i < nsamples; i++) {</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>         <span class="comment">/* The i'th signal is the weighted average of the two interpolated</span></div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span> <span class="comment">           signals at the pixel boundaries and those table signals in</span></div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> <span class="comment">           between */</span></div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>         <span class="keywordtype">double</span> xlow  = pxbounds[i];</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>         <span class="keywordtype">double</span> x     = pxhires[itt];</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> </div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>         <span class="keywordflow">if</span> (x > pxbounds[i+1]) x = pxbounds[i+1];</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>         <span class="comment">/* Contribution from interpolated value at wavelength at lower pixel</span></div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> <span class="comment">           boundary */</span></div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>         presampled[i] = pybounds[i] * (x - xlow);</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> </div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>         <span class="comment">/* Contribution from table values in between pixel boundaries */</span></div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>         <span class="keywordflow">while</span> ((pxhires[itt] < pxbounds[i+1]) && (itt < hrsize)) {</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> xprev = x;</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>             x = pxhires[itt+1];</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>             <span class="keywordflow">if</span> (x > pxbounds[i+1]) x = pxbounds[i+1];</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>             presampled[i] += pyhires[itt] * (x - xlow);</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>             xlow = xprev;</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>             itt++;</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>         }</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> </div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>         <span class="comment">/* Contribution from interpolated value at wavelength at upper pixel</span></div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> <span class="comment">           boundary */</span></div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>         presampled[i] += pybounds[i+1] * (pxbounds[i+1] - xlow);</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> </div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>         <span class="comment">/* Compute average by dividing integral by length of pixel range</span></div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span> <span class="comment">           (the factor 2 comes from the contributions) */</span></div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>         presampled[i] /= 2 * (pxbounds[i+1] - pxbounds[i]);</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>     }</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>     cpl_bivector_unwrap_vectors(boundary) ;</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>     cpl_vector_delete(ybounds) ;</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span> }</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span> </div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> </div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span> </div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> <span class="keyword">static</span> cpl_error_code cpl_vector_fill_lss_profile_symmetric(cpl_vector * <span class="keyword">self</span>,</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>                                                             <span class="keywordtype">double</span>  slitw,</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>                                                             <span class="keywordtype">double</span>  fwhm)</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span> {</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> </div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> sigma = fwhm * CPL_MATH_SIG_FWHM;</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>    n     = cpl_vector_get_size(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>     <span class="keywordtype">int</span>          i;</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> </div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> </div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>     cpl_ensure_code(<span class="keyword">self</span> != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>     cpl_ensure_code(slitw > 0.0,  CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>     cpl_ensure_code(fwhm  > 0.0,  CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span> </div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>     <span class="comment">/* Cannot fail now */</span></div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span> </div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>     <span class="comment">/* Special case for i = 0 */</span></div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>     (void)cpl_vector_set(<span class="keyword">self</span>, 0,</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>                          (<a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(0.5*slitw + 0.5, sigma) -</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>                           <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(0.5*slitw - 0.5, sigma)) / slitw);</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> </div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>     <span class="keywordflow">for</span> (i = 1; i < n; i++) {</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>         <span class="comment">/* FIXME: Reuse two irplib_erf_antideriv() calls from previous value */</span></div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> x1p = i + 0.5*slitw + 0.5;</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> x1n = i - 0.5*slitw + 0.5;</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> x0p = i + 0.5*slitw - 0.5;</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> x0n = i - 0.5*slitw - 0.5;</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> val = 0.5/slitw *</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>             (<a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(x1p, sigma) - <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(x1n, sigma) -</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>              <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(x0p, sigma) + <a class="code" href="group__irplib__wavecal.html#ga2da9c21054a19322705de2d4f48d1d3f" title="The antiderivative of erx(x/sigma/sqrt(2)) with respect to x.">irplib_erf_antideriv</a>(x0n, sigma));</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>         (void)cpl_vector_set(<span class="keyword">self</span>, i, val);</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>     }</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> </div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/irplib__wlxcorr_8h_source.html b/html/irplib__wlxcorr_8h_source.html
deleted file mode 100644
index 69dc9b0..0000000
--- a/html/irplib__wlxcorr_8h_source.html
+++ /dev/null
@@ -1,133 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_wlxcorr.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_9dbeae34d65cadb5c6915b8c80494485.html">irplib</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">irplib_wlxcorr.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: irplib_wlxcorr.h,v 1.22 2013-01-29 08:43:33 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the IRPLIB package</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-01-29 08:43:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.22 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef IRPLIB_WLXCORR_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WLXCORR_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                Include</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                                    Define</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">/* The 4 columns of the table */</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#define IRPLIB_WLXCORR_COL_WAVELENGTH   "Wavelength"</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WLXCORR_COL_CAT_INIT     "Catalog Initial"</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WLXCORR_COL_CAT_FINAL    "Catalog Corrected"</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span><span class="preprocessor">#define IRPLIB_WLXCORR_COL_OBS          "Observed"</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">                                Functions prototypes</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="keywordtype">int</span> irplib_wlxcorr_plot_spc_table(<span class="keyword">const</span> cpl_table *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="keywordtype">int</span> irplib_wlxcorr_catalog_plot(<span class="keyword">const</span> cpl_bivector *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>) ;</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="keywordtype">int</span> irplib_wlxcorr_plot_solution(<span class="keyword">const</span> cpl_polynomial *, <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>         <span class="keyword">const</span> cpl_polynomial *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> cpl_polynomial * irplib_wlxcorr_best_poly(<span class="keyword">const</span> cpl_vector *, </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>         <span class="keyword">const</span> cpl_bivector *, <span class="keywordtype">int</span>, <span class="keyword">const</span> cpl_polynomial *, <span class="keyword">const</span> cpl_vector *, </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>         <span class="keywordtype">int</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span> *, cpl_table **, cpl_vector **) ;</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> cpl_table * irplib_wlxcorr_gen_spc_table(<span class="keyword">const</span> cpl_vector *, </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>         <span class="keyword">const</span> cpl_bivector *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>         <span class="keyword">const</span> cpl_polynomial *) ;</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> cpl_bivector * irplib_wlxcorr_cat_extract(<span class="keyword">const</span> cpl_bivector *, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> cpl_vector * irplib_wlxcorr_convolve_create_kernel(<span class="keywordtype">double</span>, <span class="keywordtype">double</span>) ;</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="keywordtype">int</span> irplib_wlxcorr_convolve(cpl_vector *,<span class="keyword">const</span> cpl_vector *) ;</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> cpl_error_code irplib_wlxcorr_vector_fill_line_spectrum(cpl_vector *,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>                                                 <span class="keyword">const</span> cpl_polynomial *,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>                                                 <span class="keyword">const</span> cpl_bivector *,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>                                                 <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>                                                 <span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/jquery.js b/html/jquery.js
deleted file mode 100644
index 63939e7..0000000
--- a/html/jquery.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*! jQuery v1.7.1 jquery.com | jquery.org/license */
-(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close();d=cm.createElement( [...]
-{g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=argumen [...]
-f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]| [...]
-&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsBy [...]
-f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function()
-{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replac [...]
-{if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m, [...]
diff --git a/html/modules.html b/html/modules.html
deleted file mode 100644
index 81480b4..0000000
--- a/html/modules.html
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: Modules</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Modules</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="textblock">Here is a list of all modules:</div><div class="directory">
-<table class="directory">
-<tr id="row_0_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__midas__def.html" target="_self">MIDAS <-> CPL interface</a></td><td class="desc"></td></tr>
-<tr id="row_1_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__test.html" target="_self">UVES library unit tests</a></td><td class="desc"></td></tr>
-<tr id="row_2_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__dfs.html" target="_self">UVES CD align unit tests</a></td><td class="desc"></td></tr>
-<tr id="row_3_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__corrbadpix__test.html" target="_self">UVES bad pixel correction unit tests</a></td><td class="desc"></td></tr>
-<tr id="row_4_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__extract__test.html" target="_self">UVES extraction unit tests</a></td><td class="desc"></td></tr>
-<tr id="row_5_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__polynomial__test.html" target="_self">UVES polynomial unit tests</a></td><td class="desc"></td></tr>
-<tr id="row_6_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__qclog__test.html" target="_self">UVES qclog unit tests</a></td><td class="desc"></td></tr>
-<tr id="row_7_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__response__test.html" target="_self">Response recipe related unit tests</a></td><td class="desc"></td></tr>
-<tr id="row_8_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__test__simulate.html" target="_self">Create mock-up objects for unit testing</a></td><td class="desc"></td></tr>
-<tr id="row_9_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__utils__test.html" target="_self">Utility function unit tests</a></td><td class="desc"></td></tr>
-<tr id="row_10_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__wavecal__test.html" target="_self">UVES wavelength calibration unit tests</a></td><td class="desc"></td></tr>
-<tr id="row_11_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__backsub.html" target="_self">Substep: Background Subtraction</a></td><td class="desc"></td></tr>
-<tr id="row_12_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__baryvel.html" target="_self">Velocity correction</a></td><td class="desc"></td></tr>
-<tr id="row_13_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__cal__mkmaster.html" target="_self">Recipe: Make master</a></td><td class="desc"></td></tr>
-<tr id="row_14_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__cdalign.html" target="_self">Recipe: Cross Disperser alignment</a></td><td class="desc"></td></tr>
-<tr id="row_15_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__chip.html" target="_self">CCD Chip</a></td><td class="desc"></td></tr>
-<tr id="row_16_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__chip__type.html" target="_self">CCD chip abstract type</a></td><td class="desc"></td></tr>
-<tr id="row_17_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__corrbadpix.html" target="_self">Bad pixel correction</a></td><td class="desc"></td></tr>
-<tr id="row_18_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__dump.html" target="_self">Print CPL objects</a></td><td class="desc"></td></tr>
-<tr id="row_19_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__error.html" target="_self">Error handling</a></td><td class="desc"></td></tr>
-<tr id="row_20_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__extract.html" target="_self">Substep: Extraction</a></td><td class="desc"></td></tr>
-<tr id="row_21_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__flatfield.html" target="_self">Flat-field correction</a></td><td class="desc"></td></tr>
-<tr id="row_22_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__mbias.html" target="_self">Recipe: Master Bias</a></td><td class="desc"></td></tr>
-<tr id="row_23_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__mdark.html" target="_self">Recipe: Master Dark</a></td><td class="desc"></td></tr>
-<tr id="row_24_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__merge.html" target="_self">Order merging</a></td><td class="desc"></td></tr>
-<tr id="row_25_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__mflat.html" target="_self">Recipe: Master Flat</a></td><td class="desc"></td></tr>
-<tr id="row_26_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__msg.html" target="_self">Messaging</a></td><td class="desc"></td></tr>
-<tr id="row_27_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__obs__spatred.html" target="_self">Recipe: Science reduction</a></td><td class="desc"></td></tr>
-<tr id="row_28_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__orderpos.html" target="_self">Recipe: Order Position</a></td><td class="desc"></td></tr>
-<tr id="row_29_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__infrastructure.html" target="_self">Recipe infrastructure</a></td><td class="desc"></td></tr>
-<tr id="row_30_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__pfits.html" target="_self">FITS header protected access</a></td><td class="desc"></td></tr>
-<tr id="row_31_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__physmod__cstacen.html" target="_self">Utility for Physical Model</a></td><td class="desc"></td></tr>
-<tr id="row_32_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__physmod.html" target="_self">Recipe: UVES Physical Model</a></td><td class="desc"></td></tr>
-<tr id="row_33_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__physmod__utils.html" target="_self">Substep: UVES physical model utilities</a></td><td class="desc"></td></tr>
-<tr id="row_34_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__plot.html" target="_self">Plot CPL tables/images</a></td><td class="desc"></td></tr>
-<tr id="row_35_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__propertylist.html" target="_self">Property Lists</a></td><td class="desc"></td></tr>
-<tr id="row_36_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__qclog.html" target="_self">Interface for reading/writing QC LOG keywords.</a></td><td class="desc"></td></tr>
-<tr id="row_37_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__rebin.html" target="_self">Substep: Rebinning</a></td><td class="desc"></td></tr>
-<tr id="row_38_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__redchain.html" target="_self">Recipe: Reduction Chain</a></td><td class="desc"></td></tr>
-<tr id="row_39_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__reduce.html" target="_self">Substep: Reduce</a></td><td class="desc"></td></tr>
-<tr id="row_40_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__reduce__mflat.html" target="_self">Master flat reduction</a></td><td class="desc"></td></tr>
-<tr id="row_41_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__reduce__mflat__combine.html" target="_self">Master flat reduction</a></td><td class="desc"></td></tr>
-<tr id="row_42_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__remove__crh__single.html" target="_self">Remove Cosmic Rays single (uves_remove_crh_single)</a></td><td class="desc"></td></tr>
-<tr id="row_43_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__response.html" target="_self">Recipe: Response</a></td><td class="desc"></td></tr>
-<tr id="row_44_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__scired.html" target="_self">Recipe: Science Reduction</a></td><td class="desc"></td></tr>
-<tr id="row_45_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__tflat.html" target="_self">Recipe: TFlat Reduction</a></td><td class="desc"></td></tr>
-<tr id="row_46_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__time.html" target="_self">Get date/time, possibly in ISO8601 format</a></td><td class="desc"></td></tr>
-<tr id="row_47_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__utils.html" target="_self">Utility functions</a></td><td class="desc"></td></tr>
-<tr id="row_48_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__utils__cpl.html" target="_self">Utility functions (low level)</a></td><td class="desc"></td></tr>
-<tr id="row_49_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__utils__polynomial.html" target="_self">Polynomials</a></td><td class="desc"></td></tr>
-<tr id="row_50_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__utils__wrappers.html" target="_self">Utility functions (wrappers)</a></td><td class="desc"></td></tr>
-<tr id="row_51_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__wavecal.html" target="_self">Recipe: Order Position</a></td><td class="desc"></td></tr>
-<tr id="row_52_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__utl__unpack.html" target="_self">Recipe to unpack frames</a></td><td class="desc"></td></tr>
-<tr id="row_53_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__recipe__main.html" target="_self">General plugin tests</a></td><td class="desc"></td></tr>
-<tr id="row_54_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__utl__ima__arith.html" target="_self">Recipe to do operations on an image</a></td><td class="desc"></td></tr>
-<tr id="row_55_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__utl__physmod.html" target="_self">Recipe to remove CRHs from an image</a></td><td class="desc"></td></tr>
-<tr id="row_56_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__utl__rcosmic.html" target="_self">Recipe to remove CRHs from an image</a></td><td class="desc"></td></tr>
-<tr id="row_57_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__utl__remove__crh__single.html" target="_self">Recipe to remove CRHs from an image</a></td><td class="desc"></td></tr>
-<tr id="row_58_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__calib.html" target="_self">Functions for calibrations</a></td><td class="desc"></td></tr>
-<tr id="row_59_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__cat.html" target="_self">Functions for accessing catalogues</a></td><td class="desc"></td></tr>
-<tr id="row_60_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__distortion.html" target="_self">Distortion correction functions</a></td><td class="desc"></td></tr>
-<tr id="row_61_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__flat.html" target="_self">Functions for flatfielding</a></td><td class="desc"></td></tr>
-<tr id="row_62_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__framelist.html" target="_self">Lists of frames with properties.</a></td><td class="desc"></td></tr>
-<tr id="row_63_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__oddeven.html" target="_self">Odd/Even column effect correction</a></td><td class="desc"></td></tr>
-<tr id="row_64_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__plugin.html" target="_self">Irplib plugin functionality</a></td><td class="desc"></td></tr>
-<tr id="row_65_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__polynomial.html" target="_self">1D-Polynomial roots</a></td><td class="desc"></td></tr>
-<tr id="row_66_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__ppm.html" target="_self">Point pattern matching</a></td><td class="desc"></td></tr>
-<tr id="row_67_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__slitpos.html" target="_self">Functions for slit position</a></td><td class="desc"></td></tr>
-<tr id="row_68_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__spectrum.html" target="_self">Functions for LSS spectra</a></td><td class="desc"></td></tr>
-<tr id="row_69_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__stdstar.html" target="_self">Functions for standard stars</a></td><td class="desc"></td></tr>
-<tr id="row_70_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__strehl.html" target="_self">Functions to compute the Strehl</a></td><td class="desc"></td></tr>
-<tr id="row_71_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__utils.html" target="_self">Miscellaneous Utilities</a></td><td class="desc"></td></tr>
-<tr id="row_72_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__wavecal.html" target="_self">Spectro functionality</a></td><td class="desc"></td></tr>
-<tr id="row_73_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__wcs.html" target="_self">Functions related to WCS</a></td><td class="desc"></td></tr>
-<tr id="row_74_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__wlxcorr.html" target="_self">Wavelength Cross correlation w. plotting</a></td><td class="desc"></td></tr>
-<tr id="row_75_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__framelist__test.html" target="_self">Testing of the IRPLIB framelist object</a></td><td class="desc"></td></tr>
-<tr id="row_76_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__plugin__test.html" target="_self">Testing of the IRPLIB utilities</a></td><td class="desc"></td></tr>
-<tr id="row_77_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__utils__test.html" target="_self">Testing of the IRPLIB utilities</a></td><td class="desc"></td></tr>
-<tr id="row_78_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__irplib__wlcalib__test.html" target="_self">Testing of the CPL Wavelength calibration</a></td><td class="desc"></td></tr>
-<tr id="row_79_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__extract__iterate.html" target="_self">Iterate over an image</a></td><td class="desc"></td></tr>
-<tr id="row_80_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__cal__mkmaster.html" target="_self">Flames_cal_mkmaster</a></td><td class="desc"></td></tr>
-<tr id="row_81_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__cal__orderpos.html" target="_self">Flames_cal_orderpos</a></td><td class="desc"></td></tr>
-<tr id="row_82_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__cal__predict.html" target="_self">Flames_cal_predict</a></td><td class="desc"></td></tr>
-<tr id="row_83_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__cal__prep__sff__ofpos.html" target="_self">Flames_cal_prep_sff_ofpos</a></td><td class="desc"></td></tr>
-<tr id="row_84_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__cal__wavecal.html" target="_self">Flames_cal_wavecal</a></td><td class="desc"></td></tr>
-<tr id="row_85_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__extract.html" target="_self">Flames_extract</a></td><td class="desc"></td></tr>
-<tr id="row_86_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__fillordtab.html" target="_self">Flames_fillordtab</a></td><td class="desc"></td></tr>
-<tr id="row_87_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__mes__slitff__size.html" target="_self">Flames_mes_slitff_size</a></td><td class="desc"></td></tr>
-<tr id="row_88_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__obs__redchain.html" target="_self">Flames_obs_redchain</a></td><td class="desc"></td></tr>
-<tr id="row_89_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__obs__scired.html" target="_self">Flames_obs_scired</a></td><td class="desc"></td></tr>
-<tr id="row_90_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__prepbkg.html" target="_self">Flames_prepbkg</a></td><td class="desc"></td></tr>
-<tr id="row_91_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__prepfibreff.html" target="_self">Flames_prepfibreff</a></td><td class="desc"></td></tr>
-<tr id="row_92_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__prepnorm.html" target="_self">Flames_prepnorm</a></td><td class="desc"></td></tr>
-<tr id="row_93_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__preppa.html" target="_self">Flames_preppa</a></td><td class="desc"></td></tr>
-<tr id="row_94_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__flames__prepslitff.html" target="_self">Flames_prepslitff</a></td><td class="desc"></td></tr>
-<tr id="row_95_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__recipe.html" target="_self">Recipe</a></td><td class="desc"></td></tr>
-<tr id="row_96_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__uves__cal__cd__align.html" target="_self">Uves_cal_cd_align</a></td><td class="desc"></td></tr>
-<tr id="row_97_"><td class="entry"><img src="ftv2lastnode.png" alt="\" width="16" height="22" /><a class="el" href="group__uves__mflat__combine.html" target="_self">Uves_mflat_combine</a></td><td class="desc"></td></tr>
-</table>
-</div><!-- directory -->
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/nav_f.png b/html/nav_f.png
deleted file mode 100644
index 72a58a5..0000000
Binary files a/html/nav_f.png and /dev/null differ
diff --git a/html/nav_g.png b/html/nav_g.png
deleted file mode 100644
index 9681f15..0000000
Binary files a/html/nav_g.png and /dev/null differ
diff --git a/html/nav_h.png b/html/nav_h.png
deleted file mode 100644
index 33389b1..0000000
Binary files a/html/nav_h.png and /dev/null differ
diff --git a/html/open.png b/html/open.png
deleted file mode 100644
index 30f75c7..0000000
Binary files a/html/open.png and /dev/null differ
diff --git a/html/recipe__main_8c_source.html b/html/recipe__main_8c_source.html
deleted file mode 100644
index 6eb6ba9..0000000
--- a/html/recipe__main_8c_source.html
+++ /dev/null
@@ -1,256 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: recipe_main.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li><li class="navelem"><a class="el" href="dir_29caecd79ba0d8cf1bf29f8555ca3deb.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">recipe_main.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: recipe_main.c,v 1.3 2009-06-05 05:57:38 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the UVES Pipeline</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2009-06-05 05:57:38 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <irplib_plugin.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment">                            Function definitions</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno"><a class="code" href="group__recipe__main.html#ga840291bc02cba5474a4cb46a9b9566fe">   64</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> {</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> * tags[] = {</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>        <span class="stringliteral">"BIAS_RED"</span>,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>        <span class="stringliteral">"PDARK_RED"</span>,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>        <span class="stringliteral">"DFLAT_RED"</span>,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>        <span class="stringliteral">"ORDER_FLAT_RED"</span>,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>        <span class="stringliteral">"ARC_LAMP_FORM_RED"</span>,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>        <span class="stringliteral">"ARC_LAMP_RED"</span>,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>        <span class="stringliteral">"STANDARD_RED"</span>,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>        <span class="stringliteral">"SCIENCE_RED"</span>,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>        <span class="stringliteral">"LINE_REFER_TABLE"</span>,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>        <span class="stringliteral">"FLUX_STD_TABLE"</span>,</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>        <span class="stringliteral">"EXTCOEFF_TABLE"</span>,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>        <span class="stringliteral">"INSTR_RESPONSE_REDL"</span>,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>        <span class="stringliteral">"INSTR_RESPONSE_REDU"</span>,</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>        <span class="stringliteral">"MASTER_BIAS_REDL"</span>,</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>        <span class="stringliteral">"MASTER_BIAS_REDU"</span>,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>        <span class="stringliteral">"MASTER_DARK_REDL"</span>,</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>        <span class="stringliteral">"MASTER_DARK_REDU"</span>,</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>        <span class="stringliteral">"MASTER_FLAT_REDL"</span>,</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>        <span class="stringliteral">"MASTER_FLAT_REDU"</span>,</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>        <span class="stringliteral">"ORDER_TABLE_REDL"</span>,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>        <span class="stringliteral">"ORDER_TABLE_REDU"</span>,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>        <span class="stringliteral">"LINE_TABLE_REDL"</span>,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>        <span class="stringliteral">"LINE_TABLE_REDU"</span>,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>        <span class="stringliteral">"ORDER_GUESS_TAB_REDL"</span>,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>        <span class="stringliteral">"ORDER_GUESS_TAB_REDU"</span>,</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>        <span class="stringliteral">"DARK_BLUE"</span>,</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>        <span class="stringliteral">"BIAS_BLUE"</span>,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>        <span class="stringliteral">"MASTER_BIAS_BLUE"</span>,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>        <span class="stringliteral">"IFLAT_BLUE"</span>,</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>        <span class="stringliteral">"TFLAT_BLUE"</span>,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>        <span class="stringliteral">"ARC_LAMP_FORM_BLUE"</span>,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>        <span class="stringliteral">"ARC_LAMP_BLUE"</span>,</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>        <span class="stringliteral">"STANDARD_BLUE"</span>,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>        <span class="stringliteral">"SCI_POINT_BLUE"</span>,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>        <span class="stringliteral">"SCIENCE_BLUE"</span>,</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>        <span class="stringliteral">"FLUX_STD_TABLE"</span>,</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>        <span class="stringliteral">"EXTCOEFF_TABLE"</span>,</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>        <span class="stringliteral">"INSTR_RESPONSE_BLUE"</span>,</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>        <span class="stringliteral">"FLUX_STD_TABLE"</span>,</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>        <span class="stringliteral">"EXTCOEFF_TABLE"</span>,</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>        <span class="stringliteral">"INSTR_RESPONSE_BLUE"</span>,</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>        <span class="stringliteral">"ORDER_TABLE_BLUE"</span>,</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>        <span class="stringliteral">"ORDER_FLAT_BLUE"</span>,</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>        <span class="stringliteral">"ORDER_GUESS_TAB_BLUE"</span>,</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>        <span class="stringliteral">"MASTER_BIAS_BLUE"</span>,</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>        <span class="stringliteral">"MASTER_DARK_BLUE"</span>,</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>        <span class="stringliteral">"MASTER_PDARK_BLUE"</span>,</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>        <span class="stringliteral">"MASTER_FLAT_BLUE"</span>,</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>        <span class="stringliteral">"ORDER_TABLE_BLUE"</span>,</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>        <span class="stringliteral">"LINE_TABLE_BLUE"</span>,</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>        <span class="stringliteral">"SFLAT_RED"</span>,</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>        <span class="stringliteral">"FIB_ORDEF_RED"</span>,</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>        <span class="stringliteral">"FIB_ARC_LAMP_FORM_RED"</span>,</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>        <span class="stringliteral">"FIB_FF_ODD_RED"</span>,</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>        <span class="stringliteral">"FIB_FF_EVEN_RED"</span>,</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>        <span class="stringliteral">"FIB_FF_ALL_RED"</span>,</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>        <span class="stringliteral">"FIB_ARC_LAMP_RED"</span>,</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>        <span class="stringliteral">"FIB_FF_ODD_RED"</span>,</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>        <span class="stringliteral">"FIB_FF_EVEN_RED"</span>,</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>        <span class="stringliteral">"FIB_FF_ALL_RED"</span>,</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>        <span class="stringliteral">"FIB_ARC_LAMP_RED"</span>,</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>        <span class="stringliteral">"FIB_ORDEF_RED"</span>,</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>        <span class="stringliteral">"FIB_ARC_LAMP_FORM_RED"</span>,</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>        <span class="stringliteral">"FIB_SCI_RED"</span>,</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>        <span class="stringliteral">"FIB_ORD_GUE_REDL"</span>,</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>        <span class="stringliteral">"FIB_ORD_GUE_REDU"</span>,</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>        <span class="stringliteral">"FIB_ORD_TAB_REDL"</span>,</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>        <span class="stringliteral">"FIB_ORD_TAB_REDU"</span>,</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>        <span class="stringliteral">"MASTER_SFLAT_REDL"</span>,</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>        <span class="stringliteral">"MASTER_SFLAT_REDU"</span>,</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>        <span class="stringliteral">"MASTER_SFLAT_REDL"</span>,</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>        <span class="stringliteral">"MASTER_SFLAT_REDU"</span>,</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>        <span class="stringliteral">"MASTER_SFLAT_REDL"</span>,</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>        <span class="stringliteral">"MASTER_SFLAT_REDU"</span>,</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>        <span class="stringliteral">"FIB_ORDEF_REDL"</span>,</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>        <span class="stringliteral">"FIB_ORDEF_REDU"</span>,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>        <span class="stringliteral">"FIB_LIN_GUE_REDL"</span>,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>        <span class="stringliteral">"FIB_LIN_GUE_REDU"</span>,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>        <span class="stringliteral">"FIB_ORDEF_TABLE_REDL"</span>,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>        <span class="stringliteral">"FIB_ORDEF_TABLE_REDU"</span>,</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>        <span class="stringliteral">"FIB_FF_BPC_REDL"</span>,</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>        <span class="stringliteral">"FIB_FF_COM_REDL"</span>,</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>        <span class="stringliteral">"FIB_FF_DTC_REDL"</span>,</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>        <span class="stringliteral">"FIB_FF_NOR_REDL"</span>,</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>        <span class="stringliteral">"FIB_FF_NSG_REDL"</span>,</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>        <span class="stringliteral">"FIB_FF_SGC_REDL"</span>,</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>        <span class="stringliteral">"FIB_FF_BPC_REDU"</span>,</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>        <span class="stringliteral">"FIB_FF_COM_REDU"</span>,</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>        <span class="stringliteral">"FIB_FF_DTC_REDU"</span>,</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>        <span class="stringliteral">"FIB_FF_NOR_REDU"</span>,</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>        <span class="stringliteral">"FIB_FF_NSG_REDU"</span>,</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>        <span class="stringliteral">"FIB_FF_SGC_REDU"</span>,</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>        <span class="stringliteral">"FIB_LINE_TABLE_REDL"</span>,</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>        <span class="stringliteral">"FIB_LINE_TABLE_REDU"</span>,</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>        <span class="stringliteral">"FIB_ORDEF_TABLE_REDL"</span>,</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>        <span class="stringliteral">"FIB_ORDEF_TABLE_REDU"</span>,</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>        <span class="stringliteral">"SLIT_FF_BNC_REDL"</span>,</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>        <span class="stringliteral">"SLIT_FF_BPC_REDL"</span>,</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>        <span class="stringliteral">"SLIT_FF_COM_REDL"</span>,</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>        <span class="stringliteral">"SLIT_FF_DTC_REDL"</span>,</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>        <span class="stringliteral">"SLIT_FF_NOR_REDL"</span>,</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>        <span class="stringliteral">"SLIT_FF_SGC_REDL"</span>,</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>        <span class="stringliteral">"SLIT_FF_BNC_REDU"</span>,</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>        <span class="stringliteral">"SLIT_FF_BPC_REDU"</span>,</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>        <span class="stringliteral">"SLIT_FF_COM_REDU"</span>,</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>        <span class="stringliteral">"SLIT_FF_DTC_REDU"</span>,</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>        <span class="stringliteral">"SLIT_FF_NOR_REDU"</span>,</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>        <span class="stringliteral">"SLIT_FF_SGC_REDU"</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>     };</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     cpl_pluginlist * pluginlist;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     <span class="keyword">const</span> <span class="keywordtype">size_t</span> ntags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>*);</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Hello wordl!"</span>);</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     pluginlist = cpl_pluginlist_new();</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     cpl_test(!<a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(pluginlist));</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> </div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     cpl_test(!irplib_plugin_test(pluginlist, ntags, tags));</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     cpl_pluginlist_delete(pluginlist);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> }</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/struct__irplib__hist__.html b/html/struct__irplib__hist__.html
deleted file mode 100644
index 4f6ff68..0000000
--- a/html/struct__irplib__hist__.html
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: _irplib_hist_ Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Data Fields</a>  </div>
-  <div class="headertitle">
-<div class="title">_irplib_hist_ Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Data Fields</h2></td></tr>
-<tr class="memitem:a92ee6f204ce98d8289ab4f5e3438c8ec"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a92ee6f204ce98d8289ab4f5e3438c8ec"></a>
-unsigned long * </td><td class="memItemRight" valign="bottom"><b>bins</b></td></tr>
-<tr class="memitem:a27ec7606b16c4cceb446c59c1e44b570"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27ec7606b16c4cceb446c59c1e44b570"></a>
-unsigned long </td><td class="memItemRight" valign="bottom"><b>nbins</b></td></tr>
-<tr class="memitem:afd8188b47faf858c421527d3393822e0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afd8188b47faf858c421527d3393822e0"></a>
-double </td><td class="memItemRight" valign="bottom"><b>start</b></td></tr>
-<tr class="memitem:a29b7decd5422d6ec41528ba050f95ab6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a29b7decd5422d6ec41528ba050f95ab6"></a>
-double </td><td class="memItemRight" valign="bottom"><b>range</b></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock">
-<p>Definition at line <a class="el" href="irplib__hist_8c_source.html#l00041">41</a> of file <a class="el" href="irplib__hist_8c_source.html">irplib_hist.c</a>.</p>
-</div><hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="irplib__hist_8c_source.html">irplib_hist.c</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/struct__polynomial.html b/html/struct__polynomial.html
deleted file mode 100644
index 77afd32..0000000
--- a/html/struct__polynomial.html
+++ /dev/null
@@ -1,148 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: _polynomial Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Data Fields</a>  </div>
-  <div class="headertitle">
-<div class="title">_polynomial Struct Reference<div class="ingroups"><a class="el" href="group__uves__utils__polynomial.html">Polynomials</a></div></div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Data Fields</h2></td></tr>
-<tr class="memitem:a8624da8affb85547a8661758293cf6a9"><td class="memItemLeft" align="right" valign="top">cpl_polynomial * </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a></td></tr>
-<tr class="memitem:a8ebfb08c87b2969c891912c8edee2d6d"><td class="memItemLeft" align="right" valign="top">cpl_vector * </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__polynomial.html#a8ebfb08c87b2969c891912c8edee2d6d">vec</a></td></tr>
-<tr class="memitem:a687bf02009f6c7446c40c9df2d252051"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a687bf02009f6c7446c40c9df2d252051"></a>
-double * </td><td class="memItemRight" valign="bottom"><b>vec_data</b></td></tr>
-<tr class="memitem:aa080f764f2571c41d0057a50bdf40da3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa080f764f2571c41d0057a50bdf40da3"></a>
-int </td><td class="memItemRight" valign="bottom"><b>dimension</b></td></tr>
-<tr class="memitem:a048f19c9b93d8531c1d850629a1ba596"><td class="memItemLeft" align="right" valign="top">double * </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a></td></tr>
-<tr class="memitem:ad04fe30bf71ee54089d95ce12f948601"><td class="memItemLeft" align="right" valign="top">double * </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock"><p>The value of a _polynomial(x) is cpl_polynomial((x - shift_x)/scale_x) * scale_y + shift_y </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00186">186</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-</div><hr/><h2>Field Documentation</h2>
-<a class="anchor" id="a8624da8affb85547a8661758293cf6a9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_polynomial* _polynomial::pol</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>CPL polynomial </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00189">189</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils__polynomial_8c_source.html#l01227">uves_polynomial_collapse()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00389">uves_polynomial_convert_to_table()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01073">uves_polynomial_derivative()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00917">uves_polynomial_derivative_1d()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l0082 [...]
-
-</div>
-</div>
-<a class="anchor" id="a8ebfb08c87b2969c891912c8edee2d6d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_vector* _polynomial::vec</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Used internally, for efficiency </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00192">192</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils__polynomial_8c_source.html#l00705">uves_polynomial_evaluate_2d()</a>, and <a class="el" href="uves__utils__polynomial_8c_source.html#l00220">uves_polynomial_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a048f19c9b93d8531c1d850629a1ba596"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double* _polynomial::shift</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>shift[0] = shift of p(x) ; shift[i>0] = shift of x_i </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00198">198</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils__polynomial_8c_source.html#l01227">uves_polynomial_collapse()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00389">uves_polynomial_convert_to_table()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01073">uves_polynomial_derivative()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00917">uves_polynomial_derivative_1d()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l0082 [...]
-
-</div>
-</div>
-<a class="anchor" id="ad04fe30bf71ee54089d95ce12f948601"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double* _polynomial::scale</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>scale[0] = scale of p(x) ; scale[i>0] = scale of x_i </p>
-
-<p>Definition at line <a class="el" href="uves__utils__polynomial_8c_source.html#l00201">201</a> of file <a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__utils__polynomial_8c_source.html#l01227">uves_polynomial_collapse()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00389">uves_polynomial_convert_to_table()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l01073">uves_polynomial_derivative()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l00917">uves_polynomial_derivative_1d()</a>, <a class="el" href="uves__utils__polynomial_8c_source.html#l0082 [...]
-
-</div>
-</div>
-<hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="uves__utils__polynomial_8c_source.html">uves_utils_polynomial.c</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/struct__uves__chip.html b/html/struct__uves__chip.html
deleted file mode 100644
index 1d446db..0000000
--- a/html/struct__uves__chip.html
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: _uves_chip Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Data Fields</a>  </div>
-  <div class="headertitle">
-<div class="title">_uves_chip Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Data Fields</h2></td></tr>
-<tr class="memitem:a6565a99f7cf043cf1c156e194449351e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6565a99f7cf043cf1c156e194449351e"></a>
-char </td><td class="memItemRight" valign="bottom"><b>whatever</b></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock">
-<p>Definition at line <a class="el" href="uves__chip__type_8c_source.html#l00054">54</a> of file <a class="el" href="uves__chip__type_8c_source.html">uves_chip_type.c</a>.</p>
-</div><hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="uves__chip__type_8c_source.html">uves_chip_type.c</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/struct__uves__deque__.html b/html/struct__uves__deque__.html
deleted file mode 100644
index 4e75764..0000000
--- a/html/struct__uves__deque__.html
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: _uves_deque_ Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Data Fields</a>  </div>
-  <div class="headertitle">
-<div class="title">_uves_deque_ Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Data Fields</h2></td></tr>
-<tr class="memitem:ac21c4e86718521af164a12c154629ed1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac21c4e86718521af164a12c154629ed1"></a>
-void ** </td><td class="memItemRight" valign="bottom"><b>members</b></td></tr>
-<tr class="memitem:a1a812ba89bda43b36d98f4217cdb11ff"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1a812ba89bda43b36d98f4217cdb11ff"></a>
-unsigned long </td><td class="memItemRight" valign="bottom"><b>front</b></td></tr>
-<tr class="memitem:a7136634cae2126e5a2f9111cd65d2e39"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7136634cae2126e5a2f9111cd65d2e39"></a>
-unsigned long </td><td class="memItemRight" valign="bottom"><b>size</b></td></tr>
-<tr class="memitem:aadd5ff8ccb74bbce043c8b33c14ebcb2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aadd5ff8ccb74bbce043c8b33c14ebcb2"></a>
-unsigned long </td><td class="memItemRight" valign="bottom"><b>back</b></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock">
-<p>Definition at line <a class="el" href="uves__deque_8c_source.html#l00038">38</a> of file <a class="el" href="uves__deque_8c_source.html">uves_deque.c</a>.</p>
-</div><hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="uves__deque_8c_source.html">uves_deque.c</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/struct__uves__propertylist__.html b/html/struct__uves__propertylist__.html
deleted file mode 100644
index be34295..0000000
--- a/html/struct__uves__propertylist__.html
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: _uves_propertylist_ Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Data Fields</a>  </div>
-  <div class="headertitle">
-<div class="title">_uves_propertylist_ Struct Reference<div class="ingroups"><a class="el" href="group__uves__propertylist.html">Property Lists</a></div></div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Data Fields</h2></td></tr>
-<tr class="memitem:a0fd4c2141ccd41b592ad4939f9ae5eae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0fd4c2141ccd41b592ad4939f9ae5eae"></a>
-<a class="el" href="struct__uves__deque__.html">uves_deque</a> * </td><td class="memItemRight" valign="bottom"><b>properties</b></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock">
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l00089">89</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-</div><hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/struct__uves__regexp__.html b/html/struct__uves__regexp__.html
deleted file mode 100644
index 330bffc..0000000
--- a/html/struct__uves__regexp__.html
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: _uves_regexp_ Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Data Fields</a>  </div>
-  <div class="headertitle">
-<div class="title">_uves_regexp_ Struct Reference<div class="ingroups"><a class="el" href="group__uves__propertylist.html">Property Lists</a></div></div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Data Fields</h2></td></tr>
-<tr class="memitem:a53470ca9d753fb7878bad1ab00f0ac30"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a53470ca9d753fb7878bad1ab00f0ac30"></a>
-regex_t </td><td class="memItemRight" valign="bottom"><b>re</b></td></tr>
-<tr class="memitem:a7da7c2ea1630eaf4014a1d861e5d9423"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7da7c2ea1630eaf4014a1d861e5d9423"></a>
-cxbool </td><td class="memItemRight" valign="bottom"><b>invert</b></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock">
-<p>Definition at line <a class="el" href="uves__propertylist_8c_source.html#l00098">98</a> of file <a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a>.</p>
-</div><hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="uves__propertylist_8c_source.html">uves_propertylist.c</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/structframe.html b/html/structframe.html
deleted file mode 100644
index fb500aa..0000000
--- a/html/structframe.html
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: frame Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Data Fields</a>  </div>
-  <div class="headertitle">
-<div class="title">frame Struct Reference<div class="ingroups"><a class="el" href="group__flames__midas__def.html">MIDAS <-> CPL interface</a></div></div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Data Fields</h2></td></tr>
-<tr class="memitem:ad980bcda193e655c5d248e5ded6d29b6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad980bcda193e655c5d248e5ded6d29b6"></a>
-const char * </td><td class="memItemRight" valign="bottom"><b>filename</b></td></tr>
-<tr class="memitem:aa09ac3788a7ed28d58f728d56621a5a0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa09ac3788a7ed28d58f728d56621a5a0"></a>
-bool </td><td class="memItemRight" valign="bottom"><b>is_image</b></td></tr>
-<tr class="memitem:a6c3c7b90af90ae30eb8ab418ff62d482"><td class="memItemLeft" ><a class="anchor" id="a6c3c7b90af90ae30eb8ab418ff62d482"></a>
-union {</td></tr>
-<tr class="memitem:abdff1a8bc5458f7b82b36a865db5085d"><td class="memItemLeft" >   struct {</td></tr>
-<tr class="memitem:acaf28f88a1489dfe9966f1c3c33fc994"><td class="memItemLeft" >      cpl_image *   <b>image</b></td></tr>
-<tr class="memitem:ad61d2a4e150860fbc6688a48f0ec2c46"><td class="memItemLeft" >      cpl_type   <b>type</b></td></tr>
-<tr class="memitem:a04e9421c285b9d09cb20539fb5d995f1"><td class="memItemLeft" >      int   <b>dtype</b></td></tr>
-<tr class="memitem:abdff1a8bc5458f7b82b36a865db5085d"><td class="memItemLeft" valign="top">   }   <b>image</b></td></tr>
-<tr class="memitem:a925daaf2fd6ed0853d5dba16e7f55396"><td class="memItemLeft" >   struct {</td></tr>
-<tr class="memitem:a001125556de548802211265472e5845f"><td class="memItemLeft" >      cpl_table *   <b>table</b></td></tr>
-<tr class="memitem:a5c05f9ca66e1de7111ee74245c02c590"><td class="memItemLeft" >      cpl_table *   <b>colnames</b></td></tr>
-<tr class="memitem:ad3768ae02e9ff94c870bcfcf06013b79"><td class="memItemLeft" >      int   <b>maxrow</b></td></tr>
-<tr class="memitem:a925daaf2fd6ed0853d5dba16e7f55396"><td class="memItemLeft" valign="top">   }   <b>table</b></td></tr>
-<tr class="memitem:a6c3c7b90af90ae30eb8ab418ff62d482"><td class="memItemLeft" valign="top">} </td><td class="memItemRight" valign="bottom"><b>data</b></td></tr>
-<tr class="memitem:aac77b360051f8ffd47b28cc004ad1154"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aac77b360051f8ffd47b28cc004ad1154"></a>
-<a class="el" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">uves_propertylist</a> * </td><td class="memItemRight" valign="bottom"><b>header</b></td></tr>
-<tr class="memitem:ad61fe8520a5f79573af689467715bf24"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad61fe8520a5f79573af689467715bf24"></a>
-bool </td><td class="memItemRight" valign="bottom"><b>need_to_save</b></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock">
-<p>Definition at line <a class="el" href="flames__midas__def_8c_source.html#l00344">344</a> of file <a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a>.</p>
-</div><hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="flames__midas__def_8c_source.html">flames_midas_def.c</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/structirplib__base__spectrum__model.html b/html/structirplib__base__spectrum__model.html
deleted file mode 100644
index e961be1..0000000
--- a/html/structirplib__base__spectrum__model.html
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_base_spectrum_model Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Data Fields</a>  </div>
-  <div class="headertitle">
-<div class="title">irplib_base_spectrum_model Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Data Fields</h2></td></tr>
-<tr class="memitem:a668cdc43cff2481ad35ecd8b63ac0d43"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a668cdc43cff2481ad35ecd8b63ac0d43"></a>
-cpl_size </td><td class="memItemRight" valign="bottom"><b>cost</b></td></tr>
-<tr class="memitem:af9e671d7a5a6b69e544f136818a81805"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af9e671d7a5a6b69e544f136818a81805"></a>
-cpl_size </td><td class="memItemRight" valign="bottom"><b>xcost</b></td></tr>
-<tr class="memitem:aecc86670f5f4a3f46c777ad9a416fab9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aecc86670f5f4a3f46c777ad9a416fab9"></a>
-cpl_size </td><td class="memItemRight" valign="bottom"><b>ulines</b></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock">
-<p>Definition at line <a class="el" href="irplib__wavecal_8h_source.html#l00065">65</a> of file <a class="el" href="irplib__wavecal_8h_source.html">irplib_wavecal.h</a>.</p>
-</div><hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="irplib__wavecal_8h_source.html">irplib_wavecal.h</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/structirplib__line__spectrum__model.html b/html/structirplib__line__spectrum__model.html
deleted file mode 100644
index ed34a6b..0000000
--- a/html/structirplib__line__spectrum__model.html
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_line_spectrum_model Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Data Fields</a>  </div>
-  <div class="headertitle">
-<div class="title">irplib_line_spectrum_model Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Data Fields</h2></td></tr>
-<tr class="memitem:a2238966f3277aeb98e525fb82841bde6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2238966f3277aeb98e525fb82841bde6"></a>
-cpl_size </td><td class="memItemRight" valign="bottom"><b>cost</b></td></tr>
-<tr class="memitem:a49ae0e59df7238d4fb87a7d2853cc5fa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a49ae0e59df7238d4fb87a7d2853cc5fa"></a>
-cpl_size </td><td class="memItemRight" valign="bottom"><b>xcost</b></td></tr>
-<tr class="memitem:acd97152ae922127d7d04cc1d90e95250"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acd97152ae922127d7d04cc1d90e95250"></a>
-cpl_size </td><td class="memItemRight" valign="bottom"><b>ulines</b></td></tr>
-<tr class="memitem:a0fb9da0f6301052c059408944d41d495"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0fb9da0f6301052c059408944d41d495"></a>
-double </td><td class="memItemRight" valign="bottom"><b>wslit</b></td></tr>
-<tr class="memitem:aa15233a9551f2250947be7dbc3e266a9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa15233a9551f2250947be7dbc3e266a9"></a>
-double </td><td class="memItemRight" valign="bottom"><b>wfwhm</b></td></tr>
-<tr class="memitem:ad8b56e19ebc5ad851be35718d98cc529"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8b56e19ebc5ad851be35718d98cc529"></a>
-double </td><td class="memItemRight" valign="bottom"><b>xtrunc</b></td></tr>
-<tr class="memitem:a061c6a79aabc0b4782102038c8fc01b3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a061c6a79aabc0b4782102038c8fc01b3"></a>
-const cpl_bivector * </td><td class="memItemRight" valign="bottom"><b>lines</b></td></tr>
-<tr class="memitem:a07717a9419fd3f382f71b296502cf505"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a07717a9419fd3f382f71b296502cf505"></a>
-cpl_vector * </td><td class="memItemRight" valign="bottom"><b>linepix</b></td></tr>
-<tr class="memitem:a76536023bc7548931d9b15c87d77138b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a76536023bc7548931d9b15c87d77138b"></a>
-cpl_vector * </td><td class="memItemRight" valign="bottom"><b>erftmp</b></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock">
-<p>Definition at line <a class="el" href="irplib__wavecal_8h_source.html#l00072">72</a> of file <a class="el" href="irplib__wavecal_8h_source.html">irplib_wavecal.h</a>.</p>
-</div><hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="irplib__wavecal_8h_source.html">irplib_wavecal.h</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/structirplib__multimin.html b/html/structirplib__multimin.html
deleted file mode 100644
index 99a4160..0000000
--- a/html/structirplib__multimin.html
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: irplib_multimin Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Data Fields</a>  </div>
-  <div class="headertitle">
-<div class="title">irplib_multimin Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Data Fields</h2></td></tr>
-<tr class="memitem:a7f280baf6957c0ec55580efc7601a6d2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7f280baf6957c0ec55580efc7601a6d2"></a>
-const cpl_vector * </td><td class="memItemRight" valign="bottom"><b>observed</b></td></tr>
-<tr class="memitem:ad641b00a59c564f65646bda53af3b4f8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad641b00a59c564f65646bda53af3b4f8"></a>
-cpl_polynomial * </td><td class="memItemRight" valign="bottom"><b>disp1d</b></td></tr>
-<tr class="memitem:a041e833fb689436169dff21ae35bd1a7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a041e833fb689436169dff21ae35bd1a7"></a>
-cpl_vector * </td><td class="memItemRight" valign="bottom"><b>spectrum</b></td></tr>
-<tr class="memitem:a427125cee224c0ba4ef22905d172853a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a427125cee224c0ba4ef22905d172853a"></a>
-<a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> * </td><td class="memItemRight" valign="bottom"><b>param</b></td></tr>
-<tr class="memitem:aaea200bab9f675264f03117a335544cf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaea200bab9f675264f03117a335544cf"></a>
-cpl_error_code(* </td><td class="memItemRight" valign="bottom"><b>filler</b> )(cpl_vector *, const cpl_polynomial *, <a class="el" href="structirplib__base__spectrum__model.html">irplib_base_spectrum_model</a> *)</td></tr>
-<tr class="memitem:acfd631de9652602fbfce823ebe67c57c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acfd631de9652602fbfce823ebe67c57c"></a>
-cpl_vector * </td><td class="memItemRight" valign="bottom"><b>vxc</b></td></tr>
-<tr class="memitem:a3677fb65e209fcabb6b5a397f588180b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3677fb65e209fcabb6b5a397f588180b"></a>
-double </td><td class="memItemRight" valign="bottom"><b>xc</b></td></tr>
-<tr class="memitem:abb856b4a9c6957fc21484c910a26a322"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abb856b4a9c6957fc21484c910a26a322"></a>
-int </td><td class="memItemRight" valign="bottom"><b>maxxc</b></td></tr>
-<tr class="memitem:acd5e2b9dd68fd3f33b72d4a484923d0d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acd5e2b9dd68fd3f33b72d4a484923d0d"></a>
-double </td><td class="memItemRight" valign="bottom"><b>mxc</b></td></tr>
-<tr class="memitem:ab4e13c3551f2d0a7e8c1735819be5d9c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4e13c3551f2d0a7e8c1735819be5d9c"></a>
-cpl_polynomial * </td><td class="memItemRight" valign="bottom"><b>mdisp</b></td></tr>
-<tr class="memitem:aca888edd94ff6e6689e0358ebeef3574"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aca888edd94ff6e6689e0358ebeef3574"></a>
-int </td><td class="memItemRight" valign="bottom"><b>ishift</b></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock">
-<p>Definition at line <a class="el" href="irplib__wavecal_8c_source.html#l00061">61</a> of file <a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a>.</p>
-</div><hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="irplib__wavecal_8c_source.html">irplib_wavecal.c</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/structlt__type.html b/html/structlt__type.html
deleted file mode 100644
index d97600a..0000000
--- a/html/structlt__type.html
+++ /dev/null
@@ -1,201 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: lt_type Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Data Fields</a>  </div>
-  <div class="headertitle">
-<div class="title">lt_type Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-
-<p><code>#include <<a class="el" href="uves__wavecal__utils_8h_source.html">uves_wavecal_utils.h</a>></code></p>
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Data Fields</h2></td></tr>
-<tr class="memitem:af01708c7edac3dd3d95f69db6a3d4d10"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structlt__type.html#af01708c7edac3dd3d95f69db6a3d4d10">windows</a></td></tr>
-<tr class="memitem:a5506257685971316747b22175257f279"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structlt__type.html#a5506257685971316747b22175257f279">traces</a></td></tr>
-<tr class="memitem:ad3796ff190452772b26c8f10cd11b49d"><td class="memItemLeft" align="right" valign="top">cpl_table ** </td><td class="memItemRight" valign="bottom"><a class="el" href="structlt__type.html#ad3796ff190452772b26c8f10cd11b49d">table</a></td></tr>
-<tr class="memitem:a8b0b5b5221643675814bb5ff01574a75"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td><td class="memItemRight" valign="bottom"><a class="el" href="structlt__type.html#a8b0b5b5221643675814bb5ff01574a75">dispersion_relation</a></td></tr>
-<tr class="memitem:a2306b3c512175cded748edf1993d3b7c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__polynomial.html">polynomial</a> ** </td><td class="memItemRight" valign="bottom"><a class="el" href="structlt__type.html#a2306b3c512175cded748edf1993d3b7c">absolute_order</a></td></tr>
-<tr class="memitem:a4e30c814b17e79857c8ada246960df6d"><td class="memItemLeft" align="right" valign="top">int * </td><td class="memItemRight" valign="bottom"><a class="el" href="structlt__type.html#a4e30c814b17e79857c8ada246960df6d">first_absolute_order</a></td></tr>
-<tr class="memitem:a40c09eb863858be2b592ba9dd1e5280f"><td class="memItemLeft" align="right" valign="top">int * </td><td class="memItemRight" valign="bottom"><a class="el" href="structlt__type.html#a40c09eb863858be2b592ba9dd1e5280f">last_absolute_order</a></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock"><p>A 'line table' is not just a table. It consists of (for each (window, trace))</p>
-<p>a table a dispersion relation, a map from (pixel, pixel) to (absolute order number) absolute order number limits </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8h_source.html#l00085">85</a> of file <a class="el" href="uves__wavecal__utils_8h_source.html">uves_wavecal_utils.h</a>.</p>
-</div><hr/><h2>Field Documentation</h2>
-<a class="anchor" id="af01708c7edac3dd3d95f69db6a3d4d10"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int lt_type::windows</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Number of windows </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8h_source.html#l00088">88</a> of file <a class="el" href="uves__wavecal__utils_8h_source.html">uves_wavecal_utils.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__utils_8c_source.html#l00110">uves_lt_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a5506257685971316747b22175257f279"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int lt_type::traces</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Number of traces </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8h_source.html#l00091">91</a> of file <a class="el" href="uves__wavecal__utils_8h_source.html">uves_wavecal_utils.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__utils_8c_source.html#l00201">uves_lt_get_absord()</a>, <a class="el" href="uves__wavecal__utils_8c_source.html#l00187">uves_lt_get_disprel()</a>, <a class="el" href="uves__wavecal__utils_8c_source.html#l00215">uves_lt_get_firstabs()</a>, <a class="el" href="uves__wavecal__utils_8c_source.html#l00229">uves_lt_get_lastabs()</a>, <a class="el" href="uves__wavecal__utils_8c_source.html#l00172">uves_lt_get_table()</a>, and <a class="el" href [...]
-
-</div>
-</div>
-<a class="anchor" id="ad3796ff190452772b26c8f10cd11b49d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">cpl_table** lt_type::table</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>The table </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8h_source.html#l00094">94</a> of file <a class="el" href="uves__wavecal__utils_8h_source.html">uves_wavecal_utils.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__utils_8c_source.html#l00172">uves_lt_get_table()</a>, and <a class="el" href="uves__wavecal__utils_8c_source.html#l00110">uves_lt_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a8b0b5b5221643675814bb5ff01574a75"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>** lt_type::dispersion_relation</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>f(x,m) = lambda*m </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8h_source.html#l00097">97</a> of file <a class="el" href="uves__wavecal__utils_8h_source.html">uves_wavecal_utils.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__utils_8c_source.html#l00187">uves_lt_get_disprel()</a>, and <a class="el" href="uves__wavecal__utils_8c_source.html#l00110">uves_lt_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a2306b3c512175cded748edf1993d3b7c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="struct__polynomial.html">polynomial</a>** lt_type::absolute_order</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>m = abs_order(x,y) </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8h_source.html#l00100">100</a> of file <a class="el" href="uves__wavecal__utils_8h_source.html">uves_wavecal_utils.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__utils_8c_source.html#l00201">uves_lt_get_absord()</a>, and <a class="el" href="uves__wavecal__utils_8c_source.html#l00110">uves_lt_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a4e30c814b17e79857c8ada246960df6d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int* lt_type::first_absolute_order</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Conversion from relative to absolute (physical) order number </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8h_source.html#l00103">103</a> of file <a class="el" href="uves__wavecal__utils_8h_source.html">uves_wavecal_utils.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__utils_8c_source.html#l00215">uves_lt_get_firstabs()</a>, and <a class="el" href="uves__wavecal__utils_8c_source.html#l00110">uves_lt_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a40c09eb863858be2b592ba9dd1e5280f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int* lt_type::last_absolute_order</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Last absolute order </p>
-
-<p>Definition at line <a class="el" href="uves__wavecal__utils_8h_source.html#l00106">106</a> of file <a class="el" href="uves__wavecal__utils_8h_source.html">uves_wavecal_utils.h</a>.</p>
-
-<p>Referenced by <a class="el" href="uves__wavecal__utils_8c_source.html#l00229">uves_lt_get_lastabs()</a>, and <a class="el" href="uves__wavecal__utils_8c_source.html#l00110">uves_lt_new()</a>.</p>
-
-</div>
-</div>
-<hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="uves__wavecal__utils_8h_source.html">uves_wavecal_utils.h</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/structslit__geometry.html b/html/structslit__geometry.html
deleted file mode 100644
index bfdca18..0000000
--- a/html/structslit__geometry.html
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: slit_geometry Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li><a href="classes.html"><span>Data Structure Index</span></a></li>
-      <li><a href="functions.html"><span>Data Fields</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Data Fields</a>  </div>
-  <div class="headertitle">
-<div class="title">slit_geometry Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Data Fields</h2></td></tr>
-<tr class="memitem:a20bb1b37051f3069d14674f8023b1c0b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a20bb1b37051f3069d14674f8023b1c0b"></a>
-double </td><td class="memItemRight" valign="bottom"><b>length</b></td></tr>
-<tr class="memitem:a628a07ea69ccdc79f3df7e5b819608de"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a628a07ea69ccdc79f3df7e5b819608de"></a>
-double </td><td class="memItemRight" valign="bottom"><b>offset</b></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock">
-<p>Definition at line <a class="el" href="uves__extract__iterate_8h_source.html#l00053">53</a> of file <a class="el" href="uves__extract__iterate_8h_source.html">uves_extract_iterate.h</a>.</p>
-</div><hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="uves__extract__iterate_8h_source.html">uves_extract_iterate.h</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/tab_a.png b/html/tab_a.png
deleted file mode 100644
index 3b725c4..0000000
Binary files a/html/tab_a.png and /dev/null differ
diff --git a/html/tab_b.png b/html/tab_b.png
deleted file mode 100644
index 258c141..0000000
Binary files a/html/tab_b.png and /dev/null differ
diff --git a/html/tab_h.png b/html/tab_h.png
deleted file mode 100644
index 4ca9102..0000000
Binary files a/html/tab_h.png and /dev/null differ
diff --git a/html/tab_s.png b/html/tab_s.png
deleted file mode 100644
index ab478c9..0000000
Binary files a/html/tab_s.png and /dev/null differ
diff --git a/html/tabs.css b/html/tabs.css
deleted file mode 100644
index 2192056..0000000
--- a/html/tabs.css
+++ /dev/null
@@ -1,59 +0,0 @@
-.tabs, .tabs2, .tabs3 {
-    background-image: url('tab_b.png');
-    width: 100%;
-    z-index: 101;
-    font-size: 13px;
-}
-
-.tabs2 {
-    font-size: 10px;
-}
-.tabs3 {
-    font-size: 9px;
-}
-
-.tablist {
-    margin: 0;
-    padding: 0;
-    display: table;
-}
-
-.tablist li {
-    float: left;
-    display: table-cell;
-    background-image: url('tab_b.png');
-    line-height: 36px;
-    list-style: none;
-}
-
-.tablist a {
-    display: block;
-    padding: 0 20px;
-    font-weight: bold;
-    background-image:url('tab_s.png');
-    background-repeat:no-repeat;
-    background-position:right;
-    color: #283A5D;
-    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
-    text-decoration: none;
-    outline: none;
-}
-
-.tabs3 .tablist a {
-    padding: 0 10px;
-}
-
-.tablist a:hover {
-    background-image: url('tab_h.png');
-    background-repeat:repeat-x;
-    color: #fff;
-    text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0);
-    text-decoration: none;
-}
-
-.tablist li.current a {
-    background-image: url('tab_a.png');
-    background-repeat:repeat-x;
-    color: #fff;
-    text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0);
-}
diff --git a/html/uves-test_8c_source.html b/html/uves-test_8c_source.html
deleted file mode 100644
index 9d622d7..0000000
--- a/html/uves-test_8c_source.html
+++ /dev/null
@@ -1,455 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2009-06-05 05:49:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.4  2007/05/23 06:43:23  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.3  2007/04/12 11:41:09  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Check CPL+QFITS version numbers</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.2  2007/03/30 07:07:56  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added commented out profiling test of xmemory</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.1  2007/03/15 12:27:18  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Moved unit tests to ./uves/tests and ./flames/tests</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2007/02/27 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Move unit test infrastructure to IRPLIB</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2007/02/21 12:38:26  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Renamed _test -> -test</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.23  2007/01/29 12:17:54  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Support setting verbosity from command line</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.22  2006/11/24 09:39:35  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Factored out termination code</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.21  2006/11/22 08:04:59  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added uves_dfs unit test module</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.20  2006/11/16 09:49:25  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Fixed doxygen bug</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.19  2006/11/08 14:04:03  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Doxybugfix</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.18  2006/11/06 15:30:54  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Added missing includes</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.17  2006/11/03 15:02:06  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Added test of uves_align</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.16  2006/09/11 13:59:01  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Renamed identifier reserved by POSIX</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.15  2006/08/24 11:46:18  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Fixed typo</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.14  2006/08/24 07:18:17  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * fixed doxygen warnings</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.13  2006/08/24 06:39:57  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Reduced maximum line length</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.12  2006/08/17 14:11:25  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Use assure_mem macro to check for memory allocation failure</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.11  2006/08/14 12:13:27  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Reset irplib error handler</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.10  2006/08/14 07:45:41  amodigli</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * doxigen doc</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.9  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.8  2006/02/03 07:47:53  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.7  2006/01/31 08:26:56  jmlarsen</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Disabled recipe run tests</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.6  2006/01/25 16:14:14  jmlarsen</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Changed interface of gauss.fitting routine</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.5  2005/12/16 14:22:22  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Removed midas test data; Added sof files</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.4  2005/11/18 10:54:43  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.3  2005/11/14 13:18:44  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.2  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.1  2005/11/10 16:33:41  jmlarsen</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Added weighted extraction, test of gauss. fit</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00152"></a><span class="lineno"><a class="code" href="group__uves__test.html#gac0ef6293fdbf2c970e010fd74c7138b5">  152</a></span> <a class="code" href="group__uves__test.html#gac0ef6293fdbf2c970e010fd74c7138b5" title="this function test the gaussian fitting">test_gaussian_fitting</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> {</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     cpl_image *image = NULL;</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     cpl_image *noise = NULL;</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     <span class="keywordtype">int</span> sizex = 200;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     <span class="keywordtype">int</span> sizey = 100;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <span class="keywordtype">int</span> center_x = 85;   <span class="comment">/* Position should be well inside image */</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     <span class="keywordtype">int</span> center_y = 55;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keywordtype">int</span> norm[2] = {1, 1000};</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <span class="keywordtype">int</span> background[3] = {-3, 2, 900};</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     <span class="keywordtype">int</span> sigma_x[2] = {2, 15};</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <span class="keywordtype">int</span> sigma_y[2] = {6, 10};</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     <span class="keywordtype">int</span> n_norm = <span class="keyword">sizeof</span>(norm) / <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <span class="keywordtype">int</span> n_back = <span class="keyword">sizeof</span>(background) / <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     <span class="keywordtype">int</span> n_sx   = <span class="keyword">sizeof</span>(sigma_x) / <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     <span class="keywordtype">int</span> n_sy   = <span class="keyword">sizeof</span>(sigma_y) / <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     <span class="keywordtype">int</span> i_norm, i_back, i_sx, i_sy;</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="keywordtype">double</span> tolerance_xy = 1;  <span class="comment">/* Test to this precision (pixels) */</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     <span class="keywordtype">double</span> tolerance_z  = 1;  <span class="comment">/* Test to this precision (height/flux) */</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     <span class="comment">/* Loop over combinations of center/sigma/norm/background */</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     <span class="keywordflow">for</span> (i_norm = 0; i_norm < n_norm; i_norm++)</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     <span class="keywordflow">for</span> (i_back = 0; i_back < n_back; i_back++)</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     <span class="keywordflow">for</span> (i_sx   = 0; i_sx   < n_sx  ; i_sx++)</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     <span class="keywordflow">for</span> (i_sy   = 0; i_sy   < n_sy  ; i_sy++)</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     {</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>         cpl_image *noisep[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>         <span class="keywordtype">int</span> n_noise   = <span class="keyword">sizeof</span>(noisep) / <span class="keyword">sizeof</span>(cpl_image *);</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>         <span class="keywordtype">int</span> i_noise;</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>         <span class="comment">/* Create test image + poisson noise */</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>         uves_free_image(&image);</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>         uves_free_image(&noise);</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>         image = cpl_image_new(sizex, sizey, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>         noise = cpl_image_new(sizex, sizey, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( image );</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( noise );</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>         </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_image_fill_gaussian(image,</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>                         center_x, center_y,</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>                         norm[i_norm],</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>                         sigma_x[i_sx], sigma_y[i_sy]),</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>             cpl_image_add_scalar(image, background[i_back])),</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>            <span class="stringliteral">"Error creating test image"</span>);</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>         <span class="comment">/* Set noise := sqrt(image - background) </span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment">         * Add constant, so that noise</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment">         * is always positive (which is required</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment">         * by the fitting algorithm)</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_image_fill_gaussian(noise,</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>                         center_x, center_y,</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>                         norm[i_norm],</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>                         sigma_x[i_sx], sigma_y[i_sy]),</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>             cpl_image_power(noise, 0.5),</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>             cpl_image_add_scalar(noise, .0001)),</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>            <span class="stringliteral">"Error creating noise image"</span>);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>      </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>         noisep[0] = noise;</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>         noisep[1] = NULL;</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>         <span class="keywordflow">for</span> (i_noise = 0; i_noise < n_noise; i_noise++)</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>         {</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>             <span class="keywordtype">double</span> x0, y_0, sx, sy;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>             <span class="keywordtype">double</span> height;       <span class="comment">/* Height minus background */</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>             <span class="keywordtype">double</span> norm_fit;</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>             </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">" In: Center = (%.2f, %.2f) "</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                  <span class="stringliteral">"Sigma = (%.2f, %.2f) Norm = %.2f Bkg = %.2f"</span>,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                  (<span class="keywordtype">double</span>) center_x, (<span class="keywordtype">double</span>) center_y,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                  (<span class="keywordtype">double</span>) sigma_x[i_sx], (<span class="keywordtype">double</span>) sigma_y[i_sy],</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                  (<span class="keywordtype">double</span>) norm[i_norm], (<span class="keywordtype">double</span>) background[i_back]);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>             </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__cpl.html#ga925c077e4720e3357196ef4161ffea53" title="Fit a 2d gaussian to an image sub-window.">uves_fit_gaussian_2d_image</a>(image, noisep[i_noise],</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                         1, 1,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                         sizex, sizey,</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>                         &x0, &y_0, &sx, &sy,</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>                         &height,</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>                         NULL, NULL),</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>                <span class="stringliteral">"2d fitting routine failed"</span>);</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>             </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>             <span class="comment">/* Fitted height is norm / (2pi sx sy) */</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>             norm_fit = height * 2 * M_PI * sx * sy;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>             </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Fit: Center = (%.2f, %.2f) "</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>                  <span class="stringliteral">"Sigma = (%.2f, %.2f) Norm = %.2f Height = %.2e"</span>,</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>                  x0, y_0,</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                  sx, sy,</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>                  norm_fit, height);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>             </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>             assure( fabs(center_x - x0) < tolerance_xy, </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>                             CPL_ERROR_ILLEGAL_OUTPUT, </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>                 <span class="stringliteral">"x-center deviates more than %f pixel(s)"</span>, </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>                             tolerance_xy);</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>             assure( fabs(center_y - y_0) < tolerance_xy, </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>                             CPL_ERROR_ILLEGAL_OUTPUT, </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>                 <span class="stringliteral">"y-center deviates more than %f pixel(s)"</span>, </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>                             tolerance_xy);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>             assure( fabs(sigma_x[i_sx] - sx) < tolerance_xy, </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                             CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                 <span class="stringliteral">"sigma_x deviates more than %f pixel(s)"</span>, </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                             tolerance_xy);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>             assure( fabs(sigma_y[i_sy] - sy) < tolerance_xy, </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>                             CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                 <span class="stringliteral">"sigma_y deviates more than %f pixel(s)"</span>, </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                              tolerance_xy);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>             </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>             <span class="comment">/* The function doesn't return the background level,</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment">               but this is implicitly checked when comparing the </span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment">               inferred height */</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>             assure( fabs(norm[i_norm] - norm_fit) < tolerance_z, </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                 CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>                 <span class="stringliteral">"Norm deviates more than %f"</span>, tolerance_z);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> </div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>         }</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     }</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>   cleanup:</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     uves_free_image(&image);</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     uves_free_image(&noise);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> }</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>    </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="preprocessor">#define QFITS_MEMORY_MAXPTRS     200003</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="preprocessor"></span><span class="preprocessor">#define PTR_HASH(ptr) (((unsigned long int) ptr) % QFITS_MEMORY_MAXPTRS)</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="comment">//#define LOOP 100000</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="preprocessor">#define LOOP 1000</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> realloc_cpl(<span class="keywordtype">void</span> *p)</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> {</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     <span class="keywordflow">for</span> (i = LOOP; i >=0; i--) p = cpl_realloc(p, 16);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> }</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> realloc_system(<span class="keywordtype">void</span> *p)</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> {</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="keywordtype">long</span> i;</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <span class="keywordtype">int</span> j;</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <span class="keywordflow">for</span> (j = 0; j < 5000; j++)</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="keywordflow">for</span> (i = LOOP; i >=0; i--) p = realloc(p, 16);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> }</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> test_xmemory(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> {</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="keywordtype">int</span> j;</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment">/*    int N[] = {</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment">        15, 15, 15, 15, 15, </span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment">        15, 15, 15, 15, 15,</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="comment">        15, 15, 15, 15, 15, </span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="comment">        15, 15, 15, 15, 15};*/</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> N = 15;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> size[] = {</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>         99440, 99820, 99820, 99820, 99820,</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>         99820, 99820, 99820, 99820, 99800,</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>         99820, 99820, 99820, 99820, 99820,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>         99820, 99820, 99820, 99820, 99800,</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>         99820, 99820, 99820, 99820, 99820,</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>         99820, 99820, 99820, 99820, 99800,</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>         99820, 99820, 99820, 99820, 99800,</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>         99820, 99820, 99820, 99820, 99800,</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>         99820, 99820, 99820, 99820, 99800,</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>         99820, 99820, 99820, 99820, 99800,</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>         99820, 99820};</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <span class="keywordflow">for</span> (j = 0; j < <span class="keyword">sizeof</span>(size)/<span class="keyword">sizeof</span>(<span class="keywordtype">int</span>); j++)</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>         {</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>             <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>                 {</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>                     cpl_malloc(16);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>                 }</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>             cpl_malloc(size[j]);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>             cpl_malloc(size[j]);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>         }</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     <span class="keywordtype">void</span> *p1 = cpl_malloc(16);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     <span class="keywordtype">void</span> *p2 = malloc(16);</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     realloc_cpl   (p1);</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     realloc_system(p2);</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *p = NULL;</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     printf(<span class="stringliteral">"%c"</span>, *p);</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     <span class="keywordtype">int</span> M = <span class="keyword">sizeof</span>(size)/<span class="keyword">sizeof</span>(<span class="keywordtype">int</span>);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="preprocessor"></span>    <span class="keywordflow">for</span> (j = 0; j < M; j++)</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>         {</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>             <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> alloc = 0;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>             <span class="keywordtype">void</span> *p;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>             <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>                 {</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>                     p = cpl_malloc(16);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>                     alloc += 16;                    </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>                     </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>                     fprintf(stderr, <span class="stringliteral">"%x, %d, %d  alloc=%d\n"</span>, p, p, PTR_HASH(p), alloc);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>                 }</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>             fprintf(stderr, <span class="stringliteral">"-----------------------%d\n"</span>, j);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>             <span class="keywordflow">for</span> (i = 0; i < 2; i++)</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>                 {</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                     p = cpl_malloc(size[j]);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>                     alloc += size[j];</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>                     fprintf(stderr, <span class="stringliteral">"%d %x, %d, %d  alloc=%d\n"</span>, size, p, p, PTR_HASH(p), alloc);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                 }</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>             fprintf(stderr, <span class="stringliteral">"-----------------------\n"</span>);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>         }</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> <span class="preprocessor"></span>}</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno"><a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe">  393</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> {</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="comment">/* Initialize CPL + UVES messaging */</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_check_version(),</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>            <span class="stringliteral">"Dependency libraries version check failed"</span>);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     <span class="comment">/* test_xmemory(); */</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__test.html#gac0ef6293fdbf2c970e010fd74c7138b5" title="this function test the gaussian fitting">test_gaussian_fitting</a>(),</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>        <span class="stringliteral">"Test of gaussian fitting failed"</span>);</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>   cleanup:</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> }</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves_8h_source.html b/html/uves_8h_source.html
deleted file mode 100644
index 7f84784..0000000
--- a/html/uves_8h_source.html
+++ /dev/null
@@ -1,190 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-12-07 16:56:13 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.26 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.25  2010/09/24 09:32:02  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.23  2007/10/24 09:34:01  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * removed FLAMES_MKMASTER_DOM FLAMES_MKMASTER_ID</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.22  2007/10/24 09:30:40  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * UVES_MKMASTER_SFLAT-->FLAMES_MKMASTER</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.21  2007/08/17 10:06:16  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * added UVES_QCDARK_ID</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.20  2007/02/16 15:32:50  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * renamed uves_cal_mkmaster_tflat uves_cal_tflat</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.19  2007/02/09 13:35:39  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Renamed recipes</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.18  2007/02/08 07:31:48  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added cd_align recipe</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.17  2006/09/27 13:07:46  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added uves_tflat</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.16  2006/06/26 07:53:35  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * removed flames function</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.15  2006/06/22 12:25:44  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * fixed compilation warnings</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.14  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.3  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#ifndef UVES_H</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_H</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor">#define UVES_PHYSMOD_ID  uves_cal_predict</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_ORDERPOS_ID uves_cal_orderpos</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MBIAS_ID    uves_cal_mbias</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MDARK_ID    uves_cal_mdark</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MFLAT_ID    uves_cal_mflat</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MFLAT_COMBINE_ID    uves_cal_mflat_combine</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MKMASTER_ID uves_cal_mkmaster</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_WAVECAL_ID  uves_cal_wavecal</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_RESPONSE_ID uves_cal_response</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TFLAT_ID    uves_cal_tflat</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CD_ALIGN_ID uves_cal_cd_align</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_SCIRED_ID   uves_obs_scired</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_SPATRED_ID  uves_obs_spatred</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_REDCHAIN_ID uves_obs_redchain</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor">#define UVES_REDUCE_ID  "reduce"</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_BACKSUB_ID "backsub"</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_QCDARK_ID  "qc_dark"</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_EXTRACT_ID "extract"</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_REBIN_ID   "rebin"</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment">/* Message domains */</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor">#define UVES_PHYSMOD_DOM  "Predict"</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_ORDERPOS_DOM "OrderPos"</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MBIAS_DOM    "MBias"</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MDARK_DOM    "MDark"</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MFLAT_DOM    "MFlat"</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MFLAT_COMBINE_DOM    "MFlatCombine"</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MKMASTER_DOM "MkMaster"</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_WAVECAL_DOM  "WaveCal"</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_RESPONSE_DOM "Response"</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TFLAT_DOM    "TFlat"</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CD_ALIGN_DOM "CDAlign"</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_SCIRED_DOM   "SciRed"</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_SPATRED_DOM   "SpatRed"</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_REDCHAIN_DOM "RedChain"</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment">                                   Prototypes</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="keywordtype">int</span> uves_physmod_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="keywordtype">int</span> uves_orderpos_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="keywordtype">int</span> uves_mbias_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="keywordtype">int</span> uves_mdark_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="keywordtype">int</span> uves_mflat_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="keywordtype">int</span> uves_mflat_combine_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="keywordtype">int</span> uves_cal_mkmaster_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="keywordtype">int</span> uves_cal_mkmaster_sflat_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="keywordtype">int</span> uves_wavecal_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="keywordtype">int</span> uves_response_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="keywordtype">int</span> uves_scired_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="keywordtype">int</span> uves_obs_spatred_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="keywordtype">int</span> uves_tflat_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="keywordtype">int</span> uves_cal_cd_align_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="keywordtype">int</span> uves_redchain_get_info(cpl_pluginlist *);</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__backsub_8c_source.html b/html/uves__backsub_8c_source.html
deleted file mode 100644
index 77db35b..0000000
--- a/html/uves__backsub_8c_source.html
+++ /dev/null
@@ -1,1480 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_backsub.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_backsub.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-03-02 16:23:31 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.53 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.52  2011/12/08 13:58:44  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Fox warnings with CPL6</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.51  2010/09/24 09:32:02  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.49  2010/03/08 13:58:54  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * now background image has value as computed-no positivity check</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.48  2010/01/04 14:01:53  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * less verbose bkg subtraction</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.47  2008/09/29 06:55:06  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.46  2008/09/17 14:50:58  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * use cpl_table_erase_selected in place of uves_table_erase_selected_dfs02356</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.45  2007/11/20 16:12:51  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * replaced round by uves_round_double</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.44  2007/10/17 14:36:59  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * resale radius_y by frame bin size</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.43  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.42  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.41  2007/05/22 11:29:39  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Removed MIDAS flag for good</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.40  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.39  2007/04/10 07:06:17  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Changed interface of polynomial_regression_2d()</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.38  2007/03/28 11:38:21  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Killed MIDAS flag, removed dead code</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.37  2007/02/12 10:04:24  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Added debugging statements</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.36  2007/02/09 08:50:58  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Use define's rather than hard-coded recipe names</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.35  2007/01/15 08:46:48  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Shortened lines</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.34  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.32  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Revision 1.31  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Revision 1.30  2006/09/20 12:53:57  jmlarsen</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * Replaced stringcat functions with uves_sprintf()</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Revision 1.29  2006/09/11 08:20:44  jmlarsen</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * Renamed identifier reserved by POSIX</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.28  2006/08/23 09:33:03  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Renamed local variables shadowing POSIX reserved names</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Revision 1.27  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Revision 1.26  2006/08/11 14:36:11  jmlarsen</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> * Implemented workaround for slow cpl_table_erase_selected</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Revision 1.25  2006/08/07 11:35:35  jmlarsen</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> * Disabled parameter environment variable mode</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Revision 1.24  2006/07/14 12:18:33  jmlarsen</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * Disable compiler warning</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Revision 1.23  2006/07/03 12:57:50  jmlarsen</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> * Threshold background image to positive</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Revision 1.22  2006/06/13 11:54:24  jmlarsen</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> * Don't threshold to zero</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Revision 1.21  2006/06/01 13:04:11  jmlarsen</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> * Moved doxygen marker to exclude documentation of #define's</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Revision 1.20  2006/04/06 08:29:06  jmlarsen</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * Minor doc change</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Revision 1.19  2006/03/24 13:54:27  jmlarsen</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Use different smoothing default values depending on type of frame (flat or science)</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Revision 1.18  2006/03/09 10:51:14  jmlarsen</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * Changed order of for loops</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Revision 1.17  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Revision 1.16  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Revision 1.15  2006/02/17 10:12:32  jmlarsen</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> * Removed mixed code-declarations</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Revision 1.14  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Revision 1.13  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="preprocessor">#include <uves_backsub.h></span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="keyword">static</span> <span class="keywordtype">int</span> first_order(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, <span class="keywordtype">int</span> nx);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="keyword">static</span> <span class="keywordtype">int</span> last_order (<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, <span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="keyword">static</span> cpl_error_code lower_to_average(cpl_image *image, <span class="keywordtype">int</span> RADX, <span class="keywordtype">int</span> RADY);</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="keyword">static</span> <span class="keywordtype">double</span> sample_background(<span class="keyword">const</span> cpl_image *image, <span class="keywordtype">int</span> x0, <span class="keywordtype">double</span> y_0,</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>                 <span class="keywordtype">int</span> radius_x, <span class="keywordtype">int</span> radius_y, <span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny,</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>                 background_measure_method BM_METHOD);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="keyword">static</span> cpl_error_code subtract_background(cpl_image *image, cpl_image *background_im, </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>                       <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *background_pol);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">/* This is sort of ugly, because we fine tune parameters depending on</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">   wavelength and also different for masterflat/science exposures.</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment">   A 'perfect' background subtraction algorithm should not need to</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment">   know about its context.</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment">*/</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="preprocessor">#define BACKSUB_FLAT_SMOOTHX_BLUE (25.0/4096)</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="preprocessor"></span><span class="preprocessor">#define BACKSUB_FLAT_SMOOTHX_RED  (50.0/4096)</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="preprocessor"></span><span class="preprocessor">#define BACKSUB_FLAT_SMOOTHY_BLUE (100.0/2048)</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="preprocessor"></span><span class="preprocessor">#define BACKSUB_FLAT_SMOOTHY_RED  (300.0/2048)</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="preprocessor">#define BACKSUB_SCI_SMOOTHX_BLUE  (300.0/4096)</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="preprocessor"></span><span class="preprocessor">#define BACKSUB_SCI_SMOOTHX_RED   (300.0/4096)</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="preprocessor"></span><span class="preprocessor">#define BACKSUB_SCI_SMOOTHY_BLUE  (200.0/2048)</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="preprocessor"></span><span class="preprocessor">#define BACKSUB_SCI_SMOOTHY_RED   (500.0/2048)</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="preprocessor">#define BACKSUB_SMOOTHY_WLEN 859.9</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> cpl_parameterlist *</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> uves_backsub_define_parameters(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> {</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     cpl_parameterlist *parameters = NULL;</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     cpl_parameter *p = NULL;</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     parameters = cpl_parameterlist_new();</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     <span class="comment">//</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     name = <span class="stringliteral">"mmethod"</span>;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_BACKSUB_ID, name);</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>                    CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>                    <span class="stringliteral">"Background measuring method. If equal to 'median' "</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>                    <span class="stringliteral">"the background is sampled using the median of a subwindow. "</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>                    <span class="stringliteral">"If 'minimum', the subwindow minimum value is used. "</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>                    <span class="stringliteral">"If 'no', no background subtraction is done."</span>,</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>                    UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                    <span class="stringliteral">"median"</span>,                        <span class="comment">/* Default */</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>                    3,                               <span class="comment">/* Number of options */</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                    <span class="stringliteral">"median"</span>, <span class="stringliteral">"minimum"</span>, <span class="stringliteral">"no"</span>);      <span class="comment">/* List of options */</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     <span class="comment">//</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     name = <span class="stringliteral">"npoints"</span>;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_BACKSUB_ID, name);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                  <span class="stringliteral">"This is the number of columns in interorder space "</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                  <span class="stringliteral">"used to sample the background."</span>,</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                  UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                  82, 0, INT_MAX);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     <span class="comment">//</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     name = <span class="stringliteral">"radiusy"</span>;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_BACKSUB_ID, name);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                 CPL_TYPE_INT,</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>                 <span class="stringliteral">"The height (in pixels) of the background sampling "</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>                 <span class="stringliteral">"window is (2*radiusy + 1). "</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>                 <span class="stringliteral">"This parameter is not corrected for binning."</span>,</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>                 UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>                 2, 0, INT_MAX);</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     <span class="comment">//</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     name = <span class="stringliteral">"sdegree"</span>;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_BACKSUB_ID, name);</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                  <span class="stringliteral">"Degree of interpolating splines. Currently "</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                  <span class="stringliteral">"only degree = 1 is supported"</span>,</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                  UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>                  1, 0, INT_MAX);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <span class="comment">//</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     name = <span class="stringliteral">"smoothx"</span>;</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_BACKSUB_ID, name);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                  <span class="stringliteral">"If spline interpolation is used to measure the background, "</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>                  <span class="stringliteral">"the x-radius of the post-smoothing window is "</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>                  <span class="stringliteral">"(smoothx * image_width). Here, 'image_width' is the image "</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>                  <span class="stringliteral">"width after binning. If negative, the default values are used: "</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>                  make_str(BACKSUB_FLAT_SMOOTHX_BLUE) <span class="stringliteral">" for blue flat-field frames, "</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>                  make_str(BACKSUB_FLAT_SMOOTHX_RED) <span class="stringliteral">" for red flat-field frames, "</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>                  make_str(BACKSUB_SCI_SMOOTHX_BLUE) <span class="stringliteral">" for blue science frames and "</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>                  make_str(BACKSUB_SCI_SMOOTHX_RED) <span class="stringliteral">" for red science frames."</span>,</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                  UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                  -1.0, -DBL_MAX, DBL_MAX);</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="comment">//</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     name = <span class="stringliteral">"smoothy"</span>;</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_BACKSUB_ID, name);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>                  <span class="stringliteral">"If spline interpolation is used to measure the "</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                  <span class="stringliteral">"background, the y-radius of the post-smoothing "</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                  <span class="stringliteral">"window is (smoothy * image_height). Here, "</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                  <span class="stringliteral">"'image_height' is the image height after binning. "</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>                  <span class="stringliteral">"If negative, the default values are used: "</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>                  make_str(BACKSUB_FLAT_SMOOTHY_BLUE) <span class="stringliteral">" for blue flat-field frames, "</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                  make_str(BACKSUB_FLAT_SMOOTHY_RED) <span class="stringliteral">" for red flat-field frames, "</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                  make_str(BACKSUB_SCI_SMOOTHY_BLUE) <span class="stringliteral">" for blue science frames and "</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>                  make_str(BACKSUB_SCI_SMOOTHY_RED) <span class="stringliteral">" for red science frames."</span>,</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>                  UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>                  -1.0, -DBL_MAX, DBL_MAX);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     {</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of spline background subtraction "</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>               <span class="stringliteral">"parameters failed: '%s'"</span>, cpl_error_get_where());</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>         cpl_parameterlist_delete(parameters);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     }</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     {</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>         <span class="keywordflow">return</span> parameters;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     }</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> }</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> background_measure_method</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> uves_get_bm_method(<span class="keyword">const</span> cpl_parameterlist *parameters, <span class="keyword">const</span> <span class="keywordtype">char</span> *context, </div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext)</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> {</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *bm = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     background_measure_method result = 0;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, subcontext, <span class="stringliteral">"mmethod"</span>, CPL_TYPE_STRING, &bm),</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     <span class="keywordflow">if</span>      (strcmp(bm, <span class="stringliteral">"median"</span> ) == 0) result = BM_MEDIAN;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(bm, <span class="stringliteral">"minimum"</span>) == 0) result = BM_MINIMUM;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(bm, <span class="stringliteral">"no"</span>     ) == 0) result = BM_NO;</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     {</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>         <span class="comment">/* Impossible */</span> assure(<span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                     <span class="stringliteral">"No such background measuring method: '%s'"</span>, bm);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     }</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>   cleanup:</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> }</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> </div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> cpl_error_code</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> uves_backsub_spline(cpl_image *image, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>             <span class="keyword">const</span> cpl_table *ordertable, <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>             <span class="keyword">const</span> cpl_parameterlist *parameters, <span class="keyword">const</span> <span class="keywordtype">char</span> *context, </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>             <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>             <span class="keywordtype">bool</span> flat_field,</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>             cpl_image **background)</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> {</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     <span class="comment">/* Recipe parameters */</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     background_measure_method BM_METHOD;</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     <span class="keywordtype">int</span> npoints;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     <span class="keywordtype">int</span> radius_y;</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     <span class="keywordtype">int</span> bin_x=1;</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     <span class="keywordtype">int</span> bin_y=1;</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     <span class="keywordtype">int</span> sdegree;</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     <span class="keywordtype">double</span> SMOOTHX;</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     <span class="keywordtype">double</span> SMOOTHY;</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     <span class="keywordtype">int</span> stepx;</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     <span class="keywordtype">int</span> radius_x;</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     <span class="keywordtype">int</span> smooth_x, smooth_y;        <span class="comment">/* Window radius in pixels */</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( image != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( raw_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( ordertable != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( order_locations != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( parameters != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( context != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(order_locations) == 2, </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>          <span class="stringliteral">"%d"</span>, <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(order_locations));</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( background != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> </div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     <span class="comment">/* Get recipe parameters */</span></div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( BM_METHOD = uves_get_bm_method(parameters, context, UVES_BACKSUB_ID),</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>        <span class="stringliteral">"Error getting background measuring method"</span>);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                   <span class="stringliteral">"npoints"</span>, CPL_TYPE_INT   , &npoints) , <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>                   <span class="stringliteral">"radiusy"</span>, CPL_TYPE_INT   , &radius_y), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(bin_x=<a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(raw_header),<span class="stringliteral">"error getting %s"</span>,UVES_BINX);</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(bin_y=<a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(raw_header),<span class="stringliteral">"error getting %s"</span>,UVES_BINY);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>     radius_y = uves_round_double((<span class="keywordtype">double</span>)radius_y/bin_y);</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>  </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>                   <span class="stringliteral">"sdegree"</span>, CPL_TYPE_INT   , &sdegree) , <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                   <span class="stringliteral">"smoothx"</span>, CPL_TYPE_DOUBLE, &SMOOTHX) , <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                   <span class="stringliteral">"smoothy"</span>, CPL_TYPE_DOUBLE, &SMOOTHY) , <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>    </div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     <span class="comment">/* Get other parameters */</span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     <span class="keywordflow">if</span> (BM_METHOD == BM_NO)</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     {</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping background subtraction"</span>);</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>         <span class="comment">/* Calculate a zero-background */</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *background = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>            <span class="stringliteral">"Error allocating image"</span>);</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     }</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     <span class="comment">/* If negative, set default values for smoothx, smoothy */</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     <span class="keywordflow">if</span> (SMOOTHX < 0)</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>         {</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>         <span class="keywordflow">if</span> (chip == UVES_CHIP_BLUE)</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>             {</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>             SMOOTHX = (flat_field) ? </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>                 BACKSUB_FLAT_SMOOTHX_BLUE : BACKSUB_SCI_SMOOTHX_BLUE;</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>             }</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>             {</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>             SMOOTHX = (flat_field) ? </div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>                 BACKSUB_FLAT_SMOOTHX_RED : BACKSUB_SCI_SMOOTHX_RED;</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>             }</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>         }</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     <span class="keywordflow">if</span> (SMOOTHY < 0)</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>         {</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>         <span class="keywordtype">double</span> wlen;</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>         </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>         <span class="comment">/* Read wavelength from raw header */</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>         </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( wlen = <a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(raw_header, chip),</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>                <span class="stringliteral">"Error reading central wavelength"</span>);</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>         </div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>         <span class="comment">/* The criterion is not if the chip is BLUE/RED,</span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <span class="comment">           but whether the wlen is < 860A */</span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>         <span class="keywordflow">if</span> (wlen < BACKSUB_SMOOTHY_WLEN)</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>             {</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>             SMOOTHY = (flat_field) ? </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>                 BACKSUB_FLAT_SMOOTHY_BLUE : BACKSUB_SCI_SMOOTHY_BLUE;</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>             }</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>             {</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>             SMOOTHY = (flat_field) ? </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>                 BACKSUB_FLAT_SMOOTHY_RED : BACKSUB_SCI_SMOOTHY_RED;</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>             }</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>         }</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>     </div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>     assure( 0 < SMOOTHX, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal smoothx factor: %e"</span>, SMOOTHX);</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     assure( 0 < SMOOTHY, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal smoothy factor: %e"</span>, SMOOTHY);</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     </div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     smooth_x = uves_round_double(SMOOTHX * nx - 0.5);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     smooth_y = uves_round_double(SMOOTHY * ny - 0.5);</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     assure( 0 < npoints, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>         <span class="stringliteral">"Illegal number of sample points: %d"</span>, npoints);</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>     stepx = nx / npoints;</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     assure( 0 < stepx, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal step size: %d"</span>, stepx);</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     radius_x = stepx/2;</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     assure( 0 < radius_x, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal x sample radius: %d"</span>, radius_x);</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>     assure( 0 < radius_y, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal y sample radius: %d"</span>, radius_y);</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>     assure( 0 < smooth_x, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal x sample smooth: %d"</span>, smooth_x);</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     assure( 0 < smooth_y, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal y sample smooth: %d"</span>, smooth_y);</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>     assure( sdegree == 1, CPL_ERROR_UNSUPPORTED_MODE, </div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>         <span class="stringliteral">"Spline degree must be 1. It is %d"</span>, sdegree);</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>     </div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Sample window (pixels): radx, rady = %d, %d"</span>, radius_x, radius_y);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     </div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *background = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE), </div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>            <span class="stringliteral">"Error allocating background image"</span>);</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>     </div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>     <span class="comment">/* Process */</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>     <span class="keywordflow">for</span> (x = stepx; x <= nx; x += stepx) {</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>         <span class="keywordtype">int</span> order, minorder, maxorder;</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>         <span class="comment">/* Find min. and max. order where background positions are inside image  */</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>             </div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>         minorder = cpl_table_get_column_min(ordertable, <span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>             </div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>         <span class="comment">/* If outside image, move to inside image */</span></div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>         <span class="keywordflow">while</span> (uves_round_double(</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x + radius_x, minorder - 0.5)</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                ) - radius_y < 1 ||</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>            uves_round_double(</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>                <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x - radius_x, minorder - 0.5))</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>            - radius_y < 1  )</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>         {</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>             <span class="keywordtype">int</span> sign;</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> </div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>             <span class="keywordflow">for</span> (sign = -1; sign <= 1; sign += 2)</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>             {</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>                 assure( </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>                 <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations,</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>                                 x + sign*radius_x, minorder+1 - 0.5) ></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>                 <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations,</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>                                 x + sign*radius_x, minorder   - 0.5),</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>                 CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>                 <span class="stringliteral">"Order polynomial is not well-formed: "</span></div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                 <span class="stringliteral">"p(%d, %f) = %e; p(%d, %f) = %e"</span>,</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>                 x + sign*radius_x, minorder+1 - 0.5, <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>                     order_locations, x + sign*radius_x, minorder+1 - 0.5</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                     ),</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                 x + sign*radius_x, minorder   - 0.5, <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>                     order_locations, x + sign*radius_x, minorder   - 0.5)</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>                 );</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>             }</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> </div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>             minorder += 1;</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>         }</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>             </div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>         maxorder = cpl_table_get_column_max(ordertable, <span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>         </div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>         <span class="comment">/* If outside image, move to inside image */</span></div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>         <span class="keywordflow">while</span> (uves_round_double( </div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>                <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x + radius_x, maxorder + 0.5)</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>                ) + radius_y > ny ||</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>            uves_round_double( </div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>                <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x - radius_x, maxorder + 0.5)</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>                ) + radius_y > ny  ) {</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>         <span class="keywordtype">int</span> sign;</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>         <span class="keywordflow">for</span> (sign = -1; sign <= 1; sign += 2)</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>             {</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>             assure( </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>                 <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>                 order_locations, x + sign*radius_x, maxorder-1 - 0.5) <</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>                 <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, </div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>                             x + sign*radius_x, maxorder   - 0.5), </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>                 CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                 <span class="stringliteral">"Order polynomial is not well-formed: "</span></div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                 <span class="stringliteral">"p(%d, %f) = %e; p(%d, %f) = %e"</span>,</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                 x + sign*radius_x, maxorder-1 - 0.5, <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                 order_locations, x + sign*radius_x, maxorder-1 - 0.5),</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                 x + sign*radius_x, maxorder   - 0.5, <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>                 order_locations, x + sign*radius_x, maxorder   - 0.5)</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>                 );</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>             }</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>                 </div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>         maxorder -= 1;</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>         }</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>         </div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>             <span class="comment">/* Move to min. order inside image */</span></div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>             <span class="keywordflow">while</span> (uves_round_double(<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>                                          order_locations, x + radius_x, minorder - 1.5)</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>                        ) - radius_y >= 1 &&</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>                    uves_round_double(<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>                                          order_locations, x - radius_x, minorder - 1.5)</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>                        ) - radius_y >= 1  )</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                 {</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>                     <span class="keywordtype">int</span> sign;</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>                     <span class="keywordflow">for</span> (sign = -1; sign <= 1; sign += 2)</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>                         {</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>                             assure( </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>                                 <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>                                     order_locations, x + sign*radius_x, minorder-1 - 1.5) <</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>                                 <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>                                     order_locations, x + sign*radius_x, minorder   - 1.5), </div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>                                 CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>                                 <span class="stringliteral">"Order polynomial is not well-formed: "</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>                                 <span class="stringliteral">"p(%d, %f) = %e ; p(%d, %f) = %e"</span>,</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>                                 x + sign*radius_x, minorder-1 - 1.5, </div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>                                 <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>                                     order_locations, x + sign*radius_x, minorder-1 - 1.5),</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>                                 x + sign*radius_x, minorder   - 1.5,</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>                                 <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>                                     order_locations, x + sign*radius_x, minorder   - 1.5));</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>                         }</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>                     </div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>                     minorder -= 1;</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>                 }</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>             </div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>             <span class="comment">/* Move to max. order inside image */</span></div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>             <span class="keywordflow">while</span> (uves_round_double( <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>                                           order_locations, x + radius_x, maxorder + 1.5)</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>                        ) + radius_y <= ny &&</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>                    uves_round_double( <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>                                           order_locations, x - radius_x, maxorder + 1.5)</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>                        ) + radius_y <= ny  ) {</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>                 <span class="keywordtype">int</span> sign;</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>                 <span class="keywordflow">for</span> (sign = -1; sign <= 1; sign += 2)</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>                     {</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>                         assure( </div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>                             <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>                                 order_locations, x + sign*radius_x, maxorder+1 + 1.5)</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>                             ></div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>                             <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>                                 order_locations, x + sign*radius_x, maxorder   + 1.5),</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>                             CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>                             <span class="stringliteral">"Order polynomial is not well-formed: "</span></div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>                             <span class="stringliteral">"p(%d, %f) = %e ; p(%d, %f) = %e"</span>,</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>                             x + sign*radius_x, maxorder+1 + 1.5,</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>                             <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>                                 order_locations, x + sign*radius_x, maxorder+1 + 1.5),</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>                             x + sign*radius_x, maxorder   + 1.5,</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                             <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>                                 order_locations, x + sign*radius_x, maxorder   + 1.5));</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                     }</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                 </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>                 maxorder += 1;</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>             }</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>         </div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"(x, order) = (%d, %f - %f)  "</span>, x, minorder-.5, maxorder+.5);</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>         </div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>         <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++) {</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>         <span class="keywordtype">int</span> ylo, yhi;</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>         <span class="keywordtype">double</span> backlo, backhi;</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>             </div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>         <span class="comment">/* Sample background above and below order using the median of a window</span></div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> <span class="comment">         * with size (2*radius_x + 1) * (2*radius_y + 1)</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>             </div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>         ylo = uves_round_double( </div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>             <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x, order - 0.5) );</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>         yhi = uves_round_double(</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>             <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x, order + 0.5) );</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>         <span class="comment">/* Fail cleanly if input polynomial is corrupted */</span></div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>         assure( yhi > ylo, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>             <span class="stringliteral">"Order polynomial is not well-formed: "</span></div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>             <span class="stringliteral">"p(%d, %f) = %d ; p(%d, %f) = %d"</span>,</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>             x, order - 0.5, ylo,</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>             x, order + 0.5, yhi);</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>             </div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>             </div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( backlo = </div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>                sample_background(</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>                image, x, ylo, radius_x, radius_y, nx, ny, BM_METHOD),</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>                <span class="stringliteral">"Error sampling background level"</span>);</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>             </div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( backhi = sample_background(</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>                image, x, yhi, radius_x, radius_y, nx, ny, BM_METHOD),</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>                <span class="stringliteral">"Error sampling background level"</span>);</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                    </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Background sample at (x, y, order) = (%d, %d, %f) = %f"</span>,</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>                    x, ylo, order-0.5, backlo);</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Background sample at (x, y, order) = (%d, %d, %f) = %f"</span>,</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>                    x, yhi, order+0.5, backhi);</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     </div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>         <span class="comment">/* Extrapolate (linearly, or constant if MIDAS) if first order */</span></div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>         <span class="keywordflow">if</span> (order == minorder) {</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>             <span class="keywordflow">for</span> (y = 1; y <= ylo; y++) {</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>             <span class="keywordtype">double</span> back = backlo + (backhi - backlo)*(y - ylo)/(yhi - ylo);</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>             cpl_image_set(*background, x, y, back);</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> </div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>                         cpl_image_set(*background, x, y, back);</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>             }</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>         }</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>             </div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>         <span class="comment">/* Make a linear interpolation (1-degree, no-smooth spline) from ylo to yhi */</span></div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>         <span class="keywordflow">for</span> (y = ylo; y <= yhi; y++) {</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>             <span class="keywordtype">double</span> back;</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>             back = backlo + (backhi - backlo) * (y - ylo) / (yhi - ylo);</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>             <span class="comment">/* We know that yhi > ylo */</span></div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>             cpl_image_set(*background, x, y, back);</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>         }</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>             </div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>         <span class="comment">/* Extrapolate (linearly, or constant if MIDAS) if last order */</span></div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>         <span class="keywordflow">if</span> (order == maxorder) {</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>             <span class="keywordflow">for</span> (y = yhi; y <= ny; y++) {</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>             <span class="keywordtype">double</span> back;</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>             back = backlo + (backhi - backlo) * (y - ylo) / (yhi - ylo);</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> </div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>                         cpl_image_set(*background, x, y, back);</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>                     }</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>         }</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>         }</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>     }<span class="comment">/* For column...  */</span></div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> </div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>     <span class="comment">/* Now interpolate between columns */</span></div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>     <span class="keywordflow">for</span> (y = 1; y <= ny; y++) {</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>         <span class="keywordtype">int</span> col;</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>         <span class="keywordflow">for</span> (col = stepx; col+stepx <= nx; col += stepx) {</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>         <span class="keywordtype">int</span> pis_rejected; <span class="comment">/* Not used, all pixels read are good; they've just been set */</span></div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>             </div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>         <span class="keywordtype">double</span> backlo, backhi;</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>             </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>         <span class="comment">/* Read this and next column */</span></div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>         backlo = cpl_image_get(*background, col      , y, &pis_rejected);</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>         backhi = cpl_image_get(*background, col+stepx, y, &pis_rejected);</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>         </div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>         <span class="comment">/* Extrapolate (linear) before first column */</span></div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>         <span class="keywordflow">if</span> (col == stepx)</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>             <span class="keywordflow">for</span> (x = 1; x <= col; x++)</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>             {</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>                 <span class="keywordtype">double</span> back = backlo + (backhi - backlo) * (x - col) / stepx;</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>                 cpl_image_set(*background, x, y, back);</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>             }</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>             </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>         <span class="comment">/* Interpolate between columns */</span></div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>         <span class="keywordflow">for</span> (x = col; x <= col + stepx; x++)</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>             {</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>             <span class="keywordtype">double</span> back = backlo + (backhi - backlo) * (x - col) / stepx;</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>             cpl_image_set(*background, x, y, back);</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>             }</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span> </div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>         <span class="comment">/* Extrapolate (linear) after last column */</span></div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>         <span class="keywordflow">if</span> (col+stepx+stepx > nx)</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>             <span class="keywordflow">for</span> (x = col; x <= nx; x++)</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>             {</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>                 <span class="keywordtype">double</span> back = backlo + (backhi - backlo) * (x - col) / stepx;</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>                 cpl_image_set(*background, x, y, back);</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>             }</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>         }</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     }</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> </div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>     <span class="comment">/* All pixels in background image have been set.</span></div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> <span class="comment">     * Smooth background. </span></div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> </div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Smoothing window (pixels): smox, smoy = %d, %d"</span>, smooth_x, smooth_y);</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__cpl.html#ga61202bb11e2387a91f36248674241b98" title="Average filter.">uves_filter_image_average</a>(*background, smooth_x, smooth_y), </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>            <span class="stringliteral">"Error applying average filter to background image"</span>);</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> </div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting background image"</span>);</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> </div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( subtract_background(image, *background, NULL),</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>            <span class="stringliteral">"Error subtracting background image"</span>);</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span> </div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>    } <span class="comment">/* BM_METHOD was not 'no' */</span></div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>  </div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span> </div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>   cleanup:</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> }</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span> cpl_error_code</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span> uves_backsub_poly(cpl_image *image,</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>           <span class="keyword">const</span> cpl_table *orders, <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, </div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>           background_measure_method BM_METHOD,</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>           <span class="keywordtype">int</span> NPOINTS,</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>           <span class="keywordtype">int</span> radius_y,</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>           <span class="keywordtype">int</span> DEGX, </div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>           <span class="keywordtype">int</span> DEGY,</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>           <span class="keywordtype">double</span> KAPPA)</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span> {</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>     cpl_table  *t          = NULL;</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *background = NULL;</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>     <span class="keywordtype">int</span> stepx, stepy;                   <span class="comment">/* Step size */</span></div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>     <span class="keywordtype">int</span> radius_x;                       <span class="comment">/* Sample window x-radius */</span></div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>     <span class="keywordtype">double</span> mse, rmse;                   <span class="comment">/* mse, rms of fit */</span></div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>     cpl_size total_clipped = 0;</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>     </div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>     <span class="keywordflow">if</span> (BM_METHOD == BM_NO)</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>     {</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping background subtraction"</span>);</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>     }</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>     {</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( image != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( orders == NULL || order_locations == NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>         </div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>         nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>         ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>         </div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>         assure( NPOINTS < nx, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>             <span class="stringliteral">"Number of sample columns (%d) larger than image width (%d pixels)"</span>, </div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>             NPOINTS, nx);</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>         </div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>         stepx = nx/NPOINTS;</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>         stepy = ny/NPOINTS;</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span> </div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>         radius_x = stepx/2;</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>     </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>         <span class="comment">/* First sample background */</span></div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>         <span class="keywordflow">if</span> (orders != NULL)</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>         {</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>             <span class="comment">/* Using the order table */</span></div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span> </div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>             <span class="keywordtype">int</span> x, ordersrow, row;</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>         </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>             <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(orders, <span class="stringliteral">"Slope"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(orders, <span class="stringliteral">"Intersept"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span> </div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_get_column_type(orders, <span class="stringliteral">"Slope"</span>) == CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>                  <span class="stringliteral">"%s"</span>, </div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>                  <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_table_get_column_type(orders, <span class="stringliteral">"Slope"</span>)));</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>         </div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_get_column_type(orders, <span class="stringliteral">"Intersept"</span>) == CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>                  <span class="stringliteral">"%s"</span>,</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>                  <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_table_get_column_type(orders, <span class="stringliteral">"Slope"</span>)));</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>         </div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>             <span class="comment">/* This check is computationally cheap because </span></div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span> <span class="comment">               there are never very many order lines */</span></div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__uves__utils.html#gafe2dc57751c934dd70ebc93c0e25ee18" title="Determine if a table is sorted.">uves_table_is_sorted_double</a>(orders, <span class="stringliteral">"Intersept"</span>, <span class="keyword">false</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>         </div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>             <span class="comment">/* Need at least two lines to identify inter-order region */</span></div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>             assure ( cpl_table_get_nrow(orders) >= 2, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>                  <span class="stringliteral">"Only %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" line(s) in order table"</span>, cpl_table_get_nrow(orders));</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>         </div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>             t = cpl_table_new( (nx/stepx + 1)*(cpl_table_get_nrow(orders) + 1) );</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>             cpl_table_new_column(t, <span class="stringliteral">"X"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>             cpl_table_new_column(t, <span class="stringliteral">"Y"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>             cpl_table_new_column(t, <span class="stringliteral">"Z"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>         </div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>             row = 0;</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>             <span class="keywordflow">for</span> (ordersrow = -1; ordersrow < cpl_table_get_nrow(orders); ordersrow++)</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>             {</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>                 <span class="keywordtype">double</span> slope, intersept;</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>             </div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>                 <span class="comment">/* Sample positions between this and the next orderline */</span></div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>             </div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>                 <span class="comment">/* Lowest and highest orders are special cases */</span></div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>                 <span class="keywordflow">if</span> (ordersrow == -1)</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>                 {</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>                     slope     = cpl_table_get_double(</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>                     orders, <span class="stringliteral">"Slope"</span>    , 0, NULL);</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span> </div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>                     <span class="comment">/* Interorder space below lowest order line is at: </span></div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span> <span class="comment">                       intersept0 - (intersept1-intersept0)/2 */</span></div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>                     intersept =    </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>                     0.5*cpl_table_get_double(orders, <span class="stringliteral">"Intersept"</span>, 0, NULL) -</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>                     0.5*cpl_table_get_double(orders, <span class="stringliteral">"Intersept"</span>, 1, NULL) ;</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>                 }</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ordersrow == cpl_table_get_nrow(orders) - 1)</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>                 {</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                     slope     = cpl_table_get_double(</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>                     orders, <span class="stringliteral">"Slope"</span>    , ordersrow, NULL);</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>                     </div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                     <span class="comment">/* Interorder space above highest order line is at:</span></div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span> <span class="comment">                       intersept(N) + (intersept(N)-intersept(N-1))/2 */</span></div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>                     intersept =    </div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                     0.5*cpl_table_get_double(</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                         orders, <span class="stringliteral">"Intersept"</span>, ordersrow, NULL) -</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>                     0.5*cpl_table_get_double(</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>                         orders, <span class="stringliteral">"Intersept"</span>, ordersrow-1, NULL) ;</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>                 }</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>                 <span class="keywordflow">else</span>   <span class="comment">/* The most common case */</span></div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>                 {</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>                     slope = </div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                     (cpl_table_get_double(</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>                         orders, <span class="stringliteral">"Slope"</span>, ordersrow  , NULL) +</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>                      cpl_table_get_double(</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>                          orders, <span class="stringliteral">"Slope"</span>, ordersrow+1, NULL) ) / 2;</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                     </div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                     intersept      = </div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                     (cpl_table_get_double(</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>                         orders, <span class="stringliteral">"Intersept"</span>, ordersrow  , NULL) +</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                      cpl_table_get_double(</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                          orders, <span class="stringliteral">"Intersept"</span>, ordersrow+1, NULL) ) / 2;</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                 }</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>             </div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>                 <span class="comment">/* Sample the interorder space */</span></div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>                 <span class="keywordflow">for</span> (x = 1 + stepx/2; x <= nx; x += stepx)</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>                 {</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>                     <span class="keywordtype">int</span> y = uves_round_double(intersept + slope * x);</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>                 </div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>                     <span class="keywordflow">if</span> (1 <= y && y <= ny)</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>                     {</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>                         <span class="keywordtype">double</span> z;</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>                     </div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>                         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( z = sample_background(</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                                image, </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                                x, y,</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>                                radius_x, radius_y,</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>                                nx, ny,</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>                                BM_METHOD),</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>                            <span class="stringliteral">"Error sampling background "</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>                            <span class="stringliteral">"(x, y) = (%d, %d)"</span>, x, y);</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> </div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                         cpl_table_set_int   (t, <span class="stringliteral">"X"</span> , row, x);</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>                         cpl_table_set_int   (t, <span class="stringliteral">"Y"</span> , row, y);</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>                         cpl_table_set_double(t, <span class="stringliteral">"Z"</span> , row, z);</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>                         row++;</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>                     }</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>                 }</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>             } <span class="comment">/* for ordersrow... */</span></div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>         </div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>             cpl_table_set_size(t, row);</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> </div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>         }<span class="comment">/* if  orders != NULL */</span></div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>         </div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (order_locations != NULL)</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>         {</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>             <span class="comment">/* Sample background using the polynomial */</span></div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> </div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>             <span class="keywordtype">int</span> x, minorder, maxorder, order;</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>             <span class="keywordtype">int</span> row;        <span class="comment">/* Pointing to row in temporary table */</span></div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>         </div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>             <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>             assure( <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(order_locations) == 2, </div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>                 CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>                 <span class="stringliteral">"Order location polynomial must be 2d. It is %d!"</span>, </div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>                 <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(order_locations));</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>             </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( minorder = first_order(order_locations, nx),</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>                 maxorder = last_order(order_locations, nx, ny)),</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>                <span class="stringliteral">"Error getting min. and max. order numbers"</span>);</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> </div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>             t = cpl_table_new( (nx/stepx + 1) * (maxorder-minorder+1));</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>             cpl_table_new_column(t, <span class="stringliteral">"X"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>             cpl_table_new_column(t, <span class="stringliteral">"Y"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>             cpl_table_new_column(t, <span class="stringliteral">"Z"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>         </div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>             row = 0;</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>             <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++) {</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>             <span class="comment">/* Sample the interorder space from (minorder+0.5) to (maxorder+0.5) */</span></div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>             <span class="keywordflow">for</span> (x = 1+stepx/2; x <= nx; x += stepx) {</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>                 <span class="keywordtype">int</span> y = uves_round_double(</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>                 <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x, order + 0.5));</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>                 </div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>                 <span class="keywordflow">if</span> (1 <= y && y <= ny) {</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>                 <span class="keywordtype">double</span> z;</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>                 </div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( z = sample_background(image, </div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>                                  x, y,</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>                                  radius_x, radius_y,</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>                                  nx, ny,</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>                                  BM_METHOD),</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>                        <span class="stringliteral">"Error sampling background (x, order) = (%d, %d+0.5)"</span>,</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>                        x, order);</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>                 </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>                 cpl_table_set_int   (t, <span class="stringliteral">"X"</span> , row, x);</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>                 cpl_table_set_int   (t, <span class="stringliteral">"Y"</span> , row, y);</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>                 cpl_table_set_double(t, <span class="stringliteral">"Z"</span> , row, z);</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>                 row++;</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>                 }</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>             }</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>             }</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>             </div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>             cpl_table_set_size(t, row);</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>         }</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>         { </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>             <span class="comment">/* Grid sampling (order positions unknown) */</span></div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>             <span class="keywordtype">int</span> x, y, row;</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>         </div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>             t = cpl_table_new((nx/stepx + 1) * (ny/stepy + 1));</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>             cpl_table_new_column(t, <span class="stringliteral">"X"</span> , CPL_TYPE_INT);</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>             cpl_table_new_column(t, <span class="stringliteral">"Y"</span> , CPL_TYPE_INT);</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>             cpl_table_new_column(t, <span class="stringliteral">"Z"</span> , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>         </div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>             row = 0;</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>             <span class="keywordflow">for</span> (y = 1 + stepy/2; y <= ny; y += stepy) </div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>             {</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                 <span class="keywordflow">for</span> (x = 1+stepx/2; x <= nx; x += stepx) </div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                 {</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>                     <span class="keywordtype">double</span> z;</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>                 </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( z = sample_background(image, </div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>                                  x, y,</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>                                  radius_x, radius_y,</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>                                  nx, ny,</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>                                  BM_METHOD),</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>                        <span class="stringliteral">"Error sampling background (x, y) = (%d, %d)"</span>, x, y);</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>                 </div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>                     cpl_table_set_int   (t, <span class="stringliteral">"X"</span> , row, x);</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>                     cpl_table_set_int   (t, <span class="stringliteral">"Y"</span> , row, y);</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>                     cpl_table_set_double(t, <span class="stringliteral">"Z"</span> , row, z);</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>                     row++;</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>                 }</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>             }</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>             cpl_table_set_size(t, row);</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>         }</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>         </div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>         <span class="comment">/* Sampling done. Fit poly. */</span></div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> </div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>         total_clipped = 0;</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>         {</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>         cpl_size n_clipped;</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>         cpl_size deg_xy=(DEGX + 1)*(DEGY + 1);</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>         <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>             assure( cpl_table_get_nrow(t) > (DEGX + 1)*(DEGY + 1), </div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>                 CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                 <span class="stringliteral">"Too few sample points available (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" point(s)) to make the fit "</span></div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>                 <span class="stringliteral">"(more than %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" points needed). "</span></div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                 <span class="stringliteral">"Increase number of sample points or increase kappa"</span>,</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>                 cpl_table_get_nrow(t),  deg_xy);</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>         </div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>             <span class="comment">/* Fit, calculate Zfit */</span></div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>             <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&background);</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( background = <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>                    t, <span class="stringliteral">"X"</span>, <span class="stringliteral">"Y"</span>, <span class="stringliteral">"Z"</span>, NULL,</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>                    DEGX, DEGY, <span class="stringliteral">"Zfit"</span>, NULL, NULL, &mse,</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>                    NULL, NULL, -1, -1),</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>                <span class="stringliteral">"Error fitting polynomial"</span>);</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>         </div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>             <span class="comment">/* Residual := Z - Zfit */</span></div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>             cpl_table_duplicate_column(t, <span class="stringliteral">"Residual"</span>, t, <span class="stringliteral">"Z"</span>);</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>             cpl_table_subtract_columns(t, <span class="stringliteral">"Residual"</span>, <span class="stringliteral">"Zfit"</span>);</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>         </div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>             <span class="comment">/* Compute residuals w.r.t. median of Z </span></div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> <span class="comment">               (i.e. subtract median(residual) from all residuals),</span></div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> <span class="comment">               then get stdev based on this new mean/median value.</span></div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> <span class="comment">               This is to make kappa sigma clipping more robust */</span></div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span> </div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>             cpl_table_subtract_scalar(t, <span class="stringliteral">"Residual"</span>, </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>                           cpl_table_get_column_median(t, <span class="stringliteral">"Residual"</span>));</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>             rmse = cpl_table_get_column_stdev(t, <span class="stringliteral">"Residual"</span>);</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> </div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>             <span class="comment">/* One-sided kappa-sigma clipping */</span></div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>             <span class="keywordflow">if</span> (KAPPA > 0)</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>             {</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( n_clipped = uves_select_table_rows(</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>                        t,  <span class="stringliteral">"Residual"</span>, CPL_GREATER_THAN, KAPPA * rmse),</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>                    <span class="stringliteral">"Error selecting rows"</span>);</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>             }</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>             {</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>                 n_clipped = 0;</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>             }</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>             </div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>             total_clipped += n_clipped;</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>         </div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"RMS = %f. %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" of %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" points rejected in kappa-sigma clipping"</span>,</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>                    rmse, n_clipped, cpl_table_get_nrow(t));</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>             </div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>             cpl_table_erase_selected(t);</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span> </div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>             <span class="keywordflow">if</span> (n_clipped > 0)</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>             {</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>                 cpl_table_erase_column(t, <span class="stringliteral">"Zfit"</span>);</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>                 cpl_table_erase_column(t, <span class="stringliteral">"Residual"</span>);</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>             }</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>         </div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>         } <span class="keywordflow">while</span> (n_clipped > 0);</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>         }</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> </div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>         <span class="comment">/* Try to do some quality checking of the background subtraction.</span></div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> <span class="comment">           The number of rejected points (the signal) is often around 10-20 %  */</span></div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>         {</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>         <span class="keywordtype">double</span> percentage = </div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>             100.0 * ( (double)total_clipped ) / (total_clipped + cpl_table_get_nrow(t));</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>         </div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>         <span class="keywordflow">if</span> (KAPPA > 0) {</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" of %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" points (%.2f %%) were rejected in "</span></div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>                  <span class="stringliteral">"kappa-sigma clipping. RMS = %.2f ADU"</span>, </div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>                  total_clipped,</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>                  cpl_table_get_nrow(t) + total_clipped,</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>                  percentage,</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>                  sqrt(mse));</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>         }</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>         </div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>         <span class="comment">/* For grid sampling: */</span></div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>         <span class="keywordflow">if</span> (orders == NULL && order_locations == NULL) </div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>             {</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>             <span class="keywordflow">if</span> (total_clipped == 0)</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>                 {</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>                 <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"No points rejected during background "</span></div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>                          <span class="stringliteral">"estimation. Background subtraction is "</span></div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>                          <span class="stringliteral">"uncertain. Try to decrease KAPPA "</span></div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>                          <span class="stringliteral">"(current value is %f)"</span>, KAPPA);</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>                 }</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>             <span class="keywordflow">if</span> (percentage > 40)</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>                 {</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>                 <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"%f %% of the sample points were "</span></div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>                          <span class="stringliteral">"rejected during "</span></div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>                          <span class="stringliteral">"background estimation"</span>, percentage);</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>                 }</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>             }</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>         }</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>         </div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( subtract_background(image, NULL, background),</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>            <span class="stringliteral">"Error subtracting background polynomial"</span>);</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>     } <span class="comment">/* BM_METHOD wasn't 'no' */</span></div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>     </div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>   cleanup:</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>     uves_free_table(&t);</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&background);</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>     </div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span> }</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span> </div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> <span class="comment">/* Recipe parameter creation code for this function</span></div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> <span class="comment">/ * Backsmoothx, Backsmoothy * /</span></div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> <span class="comment">    uves_parameter_new_range(p, uves_orderpos.preproc.backsmoothx,</span></div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> <span class="comment">                CPL_TYPE_INT,</span></div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> <span class="comment">                "Radius of window used for average filtering in the "</span></div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> <span class="comment">                "background subtraction (mode=smooth) step",</span></div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> <span class="comment">                uves_orderpos.preproc,</span></div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> <span class="comment">                5, 0, INT_MAX);</span></div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> <span class="comment">    cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "backsmoothx");</span></div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> <span class="comment">    cpl_parameterlist_append(recipe->parameters, p);</span></div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> <span class="comment">    </span></div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> <span class="comment">    uves_parameter_new_range(p, uves_orderpos.preproc.backsmoothy,</span></div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> <span class="comment">                CPL_TYPE_INT,</span></div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> <span class="comment">                "Radius of window used for average filtering in the "</span></div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> <span class="comment">                "background subtraction (mode=smooth) step",</span></div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> <span class="comment">                uves_orderpos.preproc,</span></div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> <span class="comment">                30, 0, INT_MAX);</span></div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> <span class="comment">    cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "backsmoothy");</span></div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span> <span class="comment">    cpl_parameterlist_append(recipe->parameters, p);</span></div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span> <span class="comment"></span></div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> <span class="comment">/ * Backsmoothiter * /</span></div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span> <span class="comment">    uves_parameter_new_range(p, uves_orderpos.preproc.backsmoothiter,</span></div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> <span class="comment">                CPL_TYPE_INT,</span></div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span> <span class="comment">                "Number of iterations when estimating the background "</span></div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span> <span class="comment">                "(mode=smooth)",</span></div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span> <span class="comment">                uves_orderpos.preproc,</span></div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> <span class="comment">                10, 1, INT_MAX);</span></div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span> <span class="comment">    cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "backsmoothiter");</span></div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> <span class="comment">    cpl_parameterlist_append(recipe->parameters, p);</span></div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span> cpl_error_code</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span> uves_backsub_smooth(cpl_image *image, <span class="keywordtype">int</span> RADX, <span class="keywordtype">int</span> RADY, <span class="keywordtype">int</span> ITER)</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> {</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>     cpl_image  *background  = NULL;</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>     </div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>     assure( RADX >= 0 && RADY >= 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>         <span class="stringliteral">"Negative radius ((%d)x(%d))"</span>, RADX, RADY);</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>     assure( ITER >= 1, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>         <span class="stringliteral">"Non-positive number of iterations (%d)"</span>, ITER);</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>     </div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>     <span class="comment">/* First estimate background */</span></div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>     background = cpl_image_duplicate(image);</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>     </div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>     <span class="keywordflow">for</span> (i = 0; i < ITER; i++) {</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>       <span class="comment">//uves_msg_debug("i=%d,%d ...",i, ITER);</span></div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"i = %d"</span>, i);</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lower_to_average(background,</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>                 RADX, RADY), <span class="stringliteral">"Error smoothing image"</span>);</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>     }</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>     </div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>     <span class="comment">/* Then subtract background */</span></div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_subtract(image, background), <span class="stringliteral">"Could not subtract background image"</span>);</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>     </div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>   cleanup:</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>     uves_free_image(&background);</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> </div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> }</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> </div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span> </div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> sample_background(<span class="keyword">const</span> cpl_image *image, <span class="keywordtype">int</span> x0, <span class="keywordtype">double</span> y_0,</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>           <span class="keywordtype">int</span> radius_x, <span class="keywordtype">int</span> radius_y, <span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny,</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>           background_measure_method BM_METHOD)</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> {</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>     <span class="comment">/* Use a table to calculate the median. Invalid rows are ignored */</span></div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>     cpl_table *temp = NULL;</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>     <span class="keywordtype">bool</span> found_good = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>     <span class="keywordtype">int</span> row;</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> </div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( </div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>     (temp = cpl_table_new( (2*radius_x + 1) * (2*radius_y + 1) ),</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>      row = 0,</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>      cpl_table_new_column(temp, <span class="stringliteral">"Flux"</span>, CPL_TYPE_DOUBLE)),</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>     <span class="stringliteral">"Error allocating table"</span>);</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span> </div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>     <span class="keywordflow">for</span>(y = y_0 - radius_y; y <= y_0 + radius_y; y++)</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>     {</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>         <span class="keywordflow">for</span> (x = x0 - radius_x; x <= x0 + radius_x; x++)</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>         {</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>             <span class="keywordflow">if</span> (1 <= x && x <= nx &&</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>             1 <= y && y <= ny)</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>             {</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>                 <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>                 <span class="keywordtype">double</span> flux = cpl_image_get(image, x, y, &pis_rejected);</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>                 <span class="keywordflow">if</span>( !pis_rejected )</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>                 {</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>                     cpl_table_set(temp, <span class="stringliteral">"Flux"</span>, row, flux);</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>                     found_good = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>                 }</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>                 {</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>                     cpl_table_set_invalid(temp, <span class="stringliteral">"Flux"</span>, row);</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>                 }</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>             }</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>             {</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>                 cpl_table_set_invalid(temp, <span class="stringliteral">"Flux"</span>, row);</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>             }</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>             </div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>             row++;</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>         }</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>     }</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span> </div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>     assure( found_good, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"No valid pixels in sample window"</span>);</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span> </div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>     <span class="keywordflow">if</span> (BM_METHOD == BM_MEDIAN)</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>     {</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>         result = cpl_table_get_column_median(temp, <span class="stringliteral">"Flux"</span>);</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>     }</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (BM_METHOD == BM_MINIMUM)</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>     {</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>         result = cpl_table_get_column_min(temp, <span class="stringliteral">"Flux"</span>);</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>     }</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>     {</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>             <span class="stringliteral">"Unsupported background sample method: %d"</span>, BM_METHOD);</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>     }</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span> </div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>   cleanup:</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>     uves_free_table(&temp);</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span> }</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span> </div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> first_order(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, <span class="keywordtype">int</span> nx)</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span> {</div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>     <span class="keywordtype">int</span> result;</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>     </div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>     result = 0;</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>     <span class="keywordflow">while</span> (<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, 1 , result + 0.5) < 1 ||</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>        <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, nx, result + 0.5) < 1 )</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>     {</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>         result++;</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>     }</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span> </div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>     <span class="keywordflow">while</span> (<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, 1 , result - 0.5) >= 1 ||</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>        <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, nx, result - 0.5) >= 1 )</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>     {</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>         result -= 1;</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>         </div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>         <span class="comment">/* Fail cleanly even if 'order_locations' is corrupted */</span></div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>         assure( result > -100000, </div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>             CPL_ERROR_CONTINUE,</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>             <span class="stringliteral">"Invalid polynomial: p(x=1, order=%d) = %f  p(x=%d, order=%d) = %f"</span>,</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>             result, <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, 1.0, result),</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>             nx, result, <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, nx, result));</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>     }</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>     </div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>   cleanup:</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span> }</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span> </div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span> </div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span> last_order(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, <span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny)</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> {</div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>     <span class="keywordtype">int</span> result;</div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>     </div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>     result = 0;</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>     <span class="keywordflow">while</span> (<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, 1 , result - 0.5) > ny ||</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>        <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, nx, result - 0.5) > ny )</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>     {</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>         result--;</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>     }</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> </div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>     <span class="keywordflow">while</span> (<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, 1 , result + 1.5) <= ny ||</div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>        <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, nx, result + 1.5) <= ny )</div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>     {</div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>         result += 1;</div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>         </div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>         <span class="comment">/* Fail cleanly even if 'order_locations' is corrupted */</span></div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>         assure( result < 100000, </div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>             CPL_ERROR_CONTINUE,</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>             <span class="stringliteral">"Invalid polynomial: p(x=1, order=%d) = %f  p(x=%d, order=%d) = %f"</span>,</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>             result, <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, 1.0, result),</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>             nx, result, <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, nx, result));</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>     }</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>     </div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>   cleanup:</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> }</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span> </div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> lower_to_average(cpl_image *image, <span class="keywordtype">int</span> RADX, <span class="keywordtype">int</span> RADY)</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> {</div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>     cpl_image  *average = NULL;</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>     <span class="keywordtype">double</span> *image_data = NULL;</div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>     <span class="keywordtype">double</span> *average_data = NULL;</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>     </div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( image != NULL, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>     </div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>     <span class="comment">/* Create smoothed image */</span></div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Filtering..."</span>);</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( average    = cpl_image_duplicate(image), <span class="stringliteral">"Error copying image"</span>);</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__cpl.html#ga61202bb11e2387a91f36248674241b98" title="Average filter.">uves_filter_image_average</a>(average, RADX, RADY), <span class="stringliteral">"Error applying average filter"</span>);</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"done"</span>);</div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>     </div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>     image_data   = cpl_image_get_data(image);</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>     average_data = cpl_image_get_data(average);</div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Lowering..."</span>);</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>     <span class="keywordflow">for</span> (y = 0; y < ny; y++)</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>     {</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>         <span class="keywordflow">for</span> (x = 0; x < nx; x++)</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>         {</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>             <span class="keywordflow">if</span> (image_data[x + y*nx] > average_data[x + y*nx]) </div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>             {</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>                 image_data[x + y*nx] = average_data[x + y*nx];</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>             }</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>         }</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>     }</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"done"</span>);</div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>     </div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>   cleanup:</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>     uves_free_image(&average);</div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>     </div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span> }</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span> </div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>     </div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span> subtract_background(cpl_image *image, cpl_image *background_im, </div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>             <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *background_pol)</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span> {</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span> </div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>     <span class="keywordtype">double</span> *image_data;</div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>     <span class="keywordtype">double</span> *background_data = NULL;</div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span> </div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(image != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>     <span class="comment">/* Exactly one of 'background_im' and 'background_pol' must be non-NULL */</span></div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>((background_im == NULL) != (background_pol == NULL), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span> </div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>     <span class="comment">/* For efficiency, don't call cpl_image_get() */</span></div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>     assure(cpl_image_count_rejected(image) == 0, </div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>        CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Input image contains bad pixels"</span>);</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>     assure(cpl_image_get_type(image) == CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>        CPL_ERROR_UNSUPPORTED_MODE, </div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>        <span class="stringliteral">"Input image is of type %s. double expected"</span>, </div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>        <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(image)));</div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span> </div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>     <span class="keywordflow">if</span> (background_im != NULL)</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>     {</div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>         assure(cpl_image_count_rejected(background_im) == 0, </div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>            CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Background image contains bad pixels"</span>);</div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>         assure(cpl_image_get_type(background_im) == CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>            CPL_ERROR_UNSUPPORTED_MODE, </div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>            <span class="stringliteral">"Background image is of type %s. double expected"</span>, </div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>            <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(background_im)));</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>     }</div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span> </div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>     image_data = cpl_image_get_data_double(image);</div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>     <span class="keywordflow">if</span> (background_im != NULL)</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>     {</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>         background_data = cpl_image_get_data_double(background_im);</div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>     }</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span> </div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span> </div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>     <span class="keywordflow">for</span> (y = 1; y <= ny; y++)</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>     {</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>         <span class="keywordflow">for</span> (x = 1; x <= nx; x++)</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>         {</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>             <span class="keywordtype">double</span> back;</div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>             <span class="keywordtype">double</span> flux, new_flux;</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>             </div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>             <span class="keywordflow">if</span> (background_im != NULL)</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>             {</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>                 <span class="comment">/* Slow:  back = cpl_image_get(background_im, x, y, &pis_rejected); */</span></div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>                 back = background_data[(x-1) + (y-1) * nx]; </div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>             }</div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>             {</div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>                 <span class="comment">/* Evaluate at (x,y) */</span></div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>                 back = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(background_pol, </div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>                                    x,</div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>                                    y);</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>             }</div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>             </div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>             <span class="comment">/* Slow: flux = cpl_image_get(image, x, y, &pis_rejected);  */</span></div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>             flux = image_data[(x-1) + (y-1) * nx];</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>             </div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span> <span class="comment">/* Exclude these sanity checks for backwards compatibility */</span></div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span> <span class="preprocessor"></span>            <span class="comment">/* Make sure the estimated background is between zero and flux-value */</span></div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>             <span class="keywordflow">if</span> (back < 0)</div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>             {</div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>                 back = 0.0;</div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>             }</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>             <span class="keywordflow">if</span> (back > flux)</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>             {</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>                 back = flux;</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>             }</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>             </div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>             <span class="comment">/* Then subtract the background.</span></div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span> <span class="comment">             * Pixel flux may be negative. Make sure the result is non-negative.</span></div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>                     new_flux = uves_max_double(0, flux - back);</div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span> <span class="preprocessor"></span>            new_flux = flux-back;            </div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span> <span class="preprocessor"></span>            </div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>             <span class="comment">/* Slow: cpl_image_set(image, x, y, new_flux); */</span></div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>             image_data[(x-1) + (y-1) * nx] = new_flux; </div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>             </div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>             <span class="keywordflow">if</span> (background_im != NULL)</div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>             {</div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>                 <span class="comment">/* Slow: cpl_image_set(background_im, x, y, flux - new_flux); */</span></div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>                 background_data[(x-1) + (y-1) * nx] = flux - new_flux;</div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>             }</div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>         }</div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>     }<span class="comment">/* for each pixel... */</span></div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>     </div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>   cleanup:</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__backsub_8h_source.html b/html/uves__backsub_8h_source.html
deleted file mode 100644
index 3f96add..0000000
--- a/html/uves__backsub_8h_source.html
+++ /dev/null
@@ -1,168 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_backsub.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_backsub.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 13:56:43 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.14 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.13  2010/09/24 09:32:02  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.11  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.10  2007/05/22 11:29:39  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Removed MIDAS flag for good</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.9  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.8  2007/03/28 11:38:23  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Killed MIDAS flag, removed dead code</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.7  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.6  2006/03/24 13:54:24  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Use different smoothing default values depending on type of frame (flat or science)</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.5  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.4  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#ifndef UVES_BACKSUB_H</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_BACKSUB_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">                    Includes</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment">                             Typedefs</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {BM_MEDIAN,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>           BM_MINIMUM,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               BM_NO} background_measure_method;</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> </div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">                             Defines</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment">                                   Prototypes</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> cpl_parameterlist *uves_backsub_define_parameters(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> background_measure_method</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> uves_get_bm_method(<span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> *context, <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> cpl_error_code uves_backsub_smooth(cpl_image *image, <span class="keywordtype">int</span> RADX, <span class="keywordtype">int</span> RADY, <span class="keywordtype">int</span> ITER);</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> cpl_error_code uves_backsub_poly(cpl_image *image,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>                  <span class="keyword">const</span> cpl_table *orders, </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>                  <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>                  background_measure_method BM_METHOD,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>                  <span class="keywordtype">int</span> NPOINTS,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>                  <span class="keywordtype">int</span> radius_y,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                  <span class="keywordtype">int</span> DEGX, </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>                  <span class="keywordtype">int</span> DEGY,</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                  <span class="keywordtype">double</span> KAPPA);</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> cpl_error_code uves_backsub_spline(cpl_image *image, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                    <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                    <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                    <span class="keyword">const</span> cpl_parameterlist *parlist, </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *context, </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                    <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                    <span class="keywordtype">bool</span> flat_field,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                    cpl_image **background);</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__baryvel_8c_source.html b/html/uves__baryvel_8c_source.html
deleted file mode 100644
index dc98685..0000000
--- a/html/uves__baryvel_8c_source.html
+++ /dev/null
@@ -1,1442 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_baryvel.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_baryvel.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.10 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.8  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.7  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.6  2007/03/15 12:33:16  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Removed redundant explicit array size</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.5  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.4  2006/10/05 06:44:58  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Declared functions static</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.3  2006/10/04 10:59:04  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Implemented QC.VRAD parameters</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.2  2006/10/04 09:55:44  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Implemented</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.4  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.3  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor">#include <uves_baryvel.h></span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">                                Local functions</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__baryvel.html#gaa1c25713efeab659789f821699975217" title="convert degrees -> degrees, minutes, seconds">deg2dms</a>(<span class="keywordtype">double</span> in_val, </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>          <span class="keywordtype">double</span> *degs,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>          <span class="keywordtype">double</span> *minutes,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>          <span class="keywordtype">double</span> *seconds);</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__baryvel.html#gaaaf92abe334c82d9d71517236508ff3f" title="convert hours -> degrees, minutes, seconds">deg2hms</a>(<span class="keywordtype">double</span> in_val, </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>          <span class="keywordtype">double</span> *hour,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>          <span class="keywordtype">double</span> *min,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>          <span class="keywordtype">double</span> *sec);</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__baryvel.html#ga11beea47928ca353a23b5399e7ed644e" title="Compute velocity correction.">compxy</a>(<span class="keywordtype">double</span> inputr[19], <span class="keywordtype">char</span> inputc[4],</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>         <span class="keywordtype">double</span> outputr[4],</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>         <span class="keywordtype">double</span> utr, <span class="keywordtype">double</span> mod_juldat);</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__baryvel.html#ga3d3880b9ecf3dac9a3ed30608a5d4012" title="compute rectangular heliocentric and barycentric components of the earth's orbital velocity...">barvel</a>(<span class="keywordtype">double</span> DJE, <span class="keywordtype">double</span> DEQ,</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>         <span class="keywordtype">double</span> DVELH[4], <span class="keywordtype">double</span> DVELB[4]);</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="group__uves__baryvel.html#ga7ab5f73d3e1aad2933cbcf66dff04aa3">  120</a></span> <a class="code" href="group__uves__baryvel.html#ga7ab5f73d3e1aad2933cbcf66dff04aa3" title="Compute velocity correction.">uves_baryvel</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>          <span class="keywordtype">double</span> *bary_corr,</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>          <span class="keywordtype">double</span> *helio_corr)</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> {</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     <span class="keywordtype">double</span> outputr[4];</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment">//inputc(1:3) = "+++"</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     <span class="keywordtype">char</span> inputc[] = <span class="stringliteral">"X+++"</span>;       <span class="comment">/* 0th index not used */</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment">//define/local rneg/r/1/1 1.0</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     <span class="keywordtype">double</span> rneg = 1.0;</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment">//   write/keyw inputr/r/1/18 0.0 all</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     <span class="keywordtype">double</span> inputr[19];                  <span class="comment">/* Do not use the zeroth element */</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment">  qc_ra       = m$value({p1},O_POS(1))</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment">  qc_dec      = m$value({p1},O_POS(2))</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment">  qc_geolat   = m$value({p1},{h_geolat})</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment">  qc_geolon   = m$value({p1},{h_geolon})</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment">  qc_obs_time = m$value({p1},O_TIME(7))  !using an image as input it take the</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment">                                         !date from the descriptor O_TIME(1,2,3)</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment">                                         !and the UT from O_TIME(5)</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     <span class="keywordtype">double</span> qc_ra;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="keywordtype">double</span> qc_dec;</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     <span class="keywordtype">double</span> qc_geolat;</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     <span class="keywordtype">double</span> qc_geolon;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     <span class="keywordtype">double</span> utr;</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     <span class="keywordtype">double</span> mod_juldat;</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     <span class="keywordtype">double</span> ra_hour, ra_min, ra_sec;</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <span class="keywordtype">double</span> dec_deg, dec_min, dec_sec;</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     <span class="keywordtype">double</span> lat_deg, lat_min, lat_sec;</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     <span class="keywordtype">double</span> lon_deg, lon_min, lon_sec;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( qc_ra       = <a class="code" href="group__uves__pfits.html#ga2f4307d12086db9c739fe3df79931a10" title="Find out the right ascension.">uves_pfits_get_ra</a>(raw_header),  <span class="comment">/* in degrees */</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>        <span class="stringliteral">"Error getting object right ascension"</span>);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( qc_dec      = <a class="code" href="group__uves__pfits.html#gabee157c267487c9edc9b7f478f781173" title="Find out the declination.">uves_pfits_get_dec</a>(raw_header),</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>        <span class="stringliteral">"Error getting object declination"</span>);</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( qc_geolat   = <a class="code" href="group__uves__pfits.html#ga58d1b21dbf83e02a88bdced0a416bc9a" title="Find out the telescope latitude.">uves_pfits_get_geolat</a>(raw_header),</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>        <span class="stringliteral">"Error getting telescope latitude"</span>);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( qc_geolon   = <a class="code" href="group__uves__pfits.html#ga55902033ba015dd0045488a5222f772c" title="Find out the telescope longitude.">uves_pfits_get_geolon</a>(raw_header),</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>        <span class="stringliteral">"Error getting telescope longitude"</span>);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     <span class="comment">/* double qc_obs_time = uves_pfits_get_exptime(raw_header);   Not used! */</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( utr         = <a class="code" href="group__uves__pfits.html#gaac930573fb642f9b489df1f3773d5eb9" title="Find out the observation time.">uves_pfits_get_utc</a>(raw_header),</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>        <span class="stringliteral">"Error reading UTC"</span>);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( mod_juldat  = <a class="code" href="group__uves__pfits.html#ga43adddad6bd999b197d24eacc25bde34" title="Find out the modified julian observation date.">uves_pfits_get_mjdobs</a>(raw_header),</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>        <span class="stringliteral">"Error julian date"</span>);</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     <a class="code" href="group__uves__baryvel.html#gaaaf92abe334c82d9d71517236508ff3f" title="convert hours -> degrees, minutes, seconds">deg2hms</a>(qc_ra,     &ra_hour, &ra_min, &ra_sec);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     <a class="code" href="group__uves__baryvel.html#gaa1c25713efeab659789f821699975217" title="convert degrees -> degrees, minutes, seconds">deg2dms</a>(qc_dec,    &dec_deg, &dec_min, &dec_sec);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     <a class="code" href="group__uves__baryvel.html#gaa1c25713efeab659789f821699975217" title="convert degrees -> degrees, minutes, seconds">deg2dms</a>(qc_geolat, &lat_deg, &lat_min, &lat_sec);</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     <a class="code" href="group__uves__baryvel.html#gaa1c25713efeab659789f821699975217" title="convert degrees -> degrees, minutes, seconds">deg2dms</a>(qc_geolon, &lon_deg, &lon_min, &lon_sec);</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">//   inputr(1) = m$value({p1},o_time(1))</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment">//   inputr(2) = m$value({p1},o_time(2))</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment">//   inputr(3) = m$value({p1},o_time(3))</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment">//   inputr(4) = m$value({p1},o_time(5))                  !UT in real hours</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment">//    inputr[1] = year;        not needed, pass mjd instead</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment">//    inputr[2] = month;</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment">//    inputr[3] = day;</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment">//    inputr[4] = ut_hour;     not needed, pass ut instead</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">//    inputr[5] = ut_min;</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">//    inputr[6] = ut_sec;</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment">//   write/keyw inputr/r/7/3 {p4}</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     inputr[7] = lon_deg;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     inputr[8] = lon_min;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     inputr[9] = lon_sec;</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>   <span class="comment">//rneg = (inputr(7)*3600.)+(inputr(8)*60.)+inputr(9)</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     rneg = (inputr[7]*3600.)+(inputr[8]*60.)+inputr[9];</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     <span class="comment">//inputc(1:1) = p4(1:1)</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     inputc[1] = (lon_deg >= 0) ? <span class="charliteral">'+'</span> : <span class="charliteral">'-'</span>;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     <span class="comment">//if rneg .lt. 0.0 inputc(1:1) = "-"</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     <span class="keywordflow">if</span> (rneg < 0) inputc[1] = <span class="charliteral">'-'</span>;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment">//   write/keyw inputr/r/10/3 {p5},0,0</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     inputr[10] = lat_deg;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     inputr[11] = lat_min;</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     inputr[12] = lat_sec;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment">//  rneg = (inputr(10)*3600.)+(inputr(11)*60.)+inputr(12)</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     rneg = (inputr[10]*3600.)+(inputr[11]*60.)+inputr[12];</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment">//  inputc(2:2) = p5(1:1)</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     inputc[2] = (lat_deg >= 0) ? <span class="charliteral">'+'</span> : <span class="charliteral">'-'</span>;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment">//   if rneg .lt. 0.0 inputc(2:2) = "-"</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     <span class="keywordflow">if</span> (rneg < 0) inputc[2] = <span class="charliteral">'-'</span>;</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment">//   write/keyw inputr/r/13/3 {p2},0,0</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     inputr[13] = ra_hour;</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     inputr[14] = ra_min;</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     inputr[15] = ra_sec;</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">//   write/keyw inputr/r/16/3 {p3},0,0</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     inputr[16] = dec_deg;</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     inputr[17] = dec_min;</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     inputr[18] = dec_sec;</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment">//  inputc(3:3) = p3(1:1)</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     inputc[3] = (dec_deg >= 0) ? <span class="charliteral">'+'</span> : <span class="charliteral">'-'</span>;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment">//  rneg = (inputr(16)*3600.)+(inputr(17)*60.)+inputr(18)</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     rneg = (inputr[16]*3600.)+(inputr[17]*60.)+inputr[18];</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment">//   if rneg .lt. 0.0 inputc(3:3) = "-"</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     <span class="keywordflow">if</span> (rneg < 0) inputc[3] = <span class="charliteral">'-'</span>;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment">//C  INPUTR/R/1/3    date: year,month,day</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment">//C  INPUTR/R/4/3    universal time: hour,min,sec</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment">//C  INPUTR/R/7/3    EAST longitude of observatory: degree,min,sec  !! NOTE</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment">//C  INPUTR/R/10/3   latitude of observatory: degree,min,sec</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment">//C  INPUTR/R/13/3   right ascension: hour,min,sec</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment">//C  INPUTR/R/16/3   declination: degree,min,sec</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="comment">//write/keyw action BA                         !indicate barycorr stuff</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <span class="comment">//run MID_EXE:COMPXY                           !compute the corrections</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     <a class="code" href="group__uves__baryvel.html#ga11beea47928ca353a23b5399e7ed644e" title="Compute velocity correction.">compxy</a>(inputr, inputc, outputr, utr, mod_juldat);</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> </div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment">//   set/format f14.6,g24.12</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment">//   uves_msg_debug("        Barycentric correction time:      {outputd(1)} day");</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">//   uves_msg_debug("        Heliocentric correction time:     {outputd(2)} day");</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment">//   uves_msg_debug(" ");</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"        Total barycentric RV correction:  %f km/s"</span>, outputr[1]);</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"        Total heliocentric RV correction: %f km/s"</span>, outputr[2]);</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"          (incl. diurnal RV correction of %f km/s)"</span>, outputr[3]);</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="comment">//   uves_msg_debug(" ");</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment">//   uves_msg_debug("Descriptor O_TIME of image {p1} used for date and UT.");</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>    *bary_corr = outputr[1];</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>    *helio_corr = outputr[2];</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>   cleanup:</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>    <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> }</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno"><a class="code" href="group__uves__baryvel.html#ga11beea47928ca353a23b5399e7ed644e">  288</a></span> <a class="code" href="group__uves__baryvel.html#ga11beea47928ca353a23b5399e7ed644e" title="Compute velocity correction.">compxy</a>(<span class="keywordtype">double</span> inputr[19], <span class="keywordtype">char</span> inputc[4],</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>        <span class="keywordtype">double</span> outputr[4],</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>        <span class="keywordtype">double</span> utr, <span class="keywordtype">double</span> mod_juldat)</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> {</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment">//      INTEGER   IAV,STAT,KUN(1),KNUL,N</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment">//      INTEGER   MADRID</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment">//</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="comment">//      DOUBLE PRECISION   UTR,STR,T0,DL,THETA0,PE,ST0HG,STG,GAST,R1</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <span class="keywordtype">double</span> STR;</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment">//    double utr     Not used. Use FITS header value instead</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="keywordtype">double</span> t0, dl, theta0, pe, st0hg, stg;</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment">//      DOUBLE PRECISION   JD,JD0H,JD00,ZERO</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <span class="keywordtype">double</span> jd, jd0h;</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="comment">//      DOUBLE PRECISION   DCORB(3),DCORH(3),DVELB(3),DVELH(3)</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <span class="keywordtype">double</span> dvelb[4], dvelh[4];</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="comment">//      DOUBLE PRECISION   ALP,BCT,BEOV,BERV,DEL,EDV</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <span class="keywordtype">double</span> alp, del, beov, berv, EDV;</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="comment">//      DOUBLE PRECISION   HAR,HCT,HEOV,HERV,PHI,PI</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     <span class="keywordtype">double</span> HAR, phi, heov, herv;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="comment">//      DOUBLE PRECISION   EQX0,EQX1</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="comment">//      DOUBLE PRECISION   A0R,A1R,D0R,D1R</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment">//      DOUBLE PRECISION   DSMALL,DTEMP(3)</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment">//</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment">//      REAL   DATE0(3),DATE1(3),DATE00(3),A0(3),A1(3),D0(3),D1(3)</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment">//      REAL   DATE(3),UT(3),OLONG(3),ST(3)</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="comment">//    double ut[4];</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="comment">//      REAL   OLAT(3),ALPHA(3),DELTA(3)</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="comment">//      REAL   RBUF(20)</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     <span class="keywordtype">double</span> *rbuf;</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="comment">//</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment">//      CHARACTER   ACTIO*2,SIGNS*3,INPSGN*3</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     <span class="keywordtype">char</span> inpsgn[4];</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="comment">//</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="comment">//      COMMON      /VMR/MADRID(1)</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="comment">// </span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="comment">//      DATA    PI  /3.1415926535897928D0/</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment">//      DATA    DSMALL  /1.D-38/</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     <span class="keywordtype">double</span> *olong, *olat, *alpha, *delta;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="comment">//1000  SIGNS = '+++'</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     <span class="keywordtype">char</span> signs[] = <span class="stringliteral">"+++"</span>;</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="comment">//      CALL STKRDR('INPUTR',1,20,IAV,RBUF,KUN,KNUL,STAT)</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     rbuf = inputr;</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="comment">//      CALL STKRDC('INPUTC',1,1,3,IAV,INPSGN,KUN,KNUL,STAT)</span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     inpsgn[1] = inputc[1];</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     inpsgn[2] = inputc[2];</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     inpsgn[3] = inputc[3];</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="comment">//      EQUIVALENCE (RBUF(1),DATE(1)),(RBUF(7),OLONG(1))</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="comment">//    double *date  = rbuf + 1 - 1;  Not used, use the explicitly passed MJD instead</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     olong = rbuf + 7 - 1;</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment">//      EQUIVALENCE (RBUF(10),OLAT(1)),(RBUF(13),ALPHA(1))</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     olat  = rbuf + 10 - 1;</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     alpha = rbuf + 13 - 1;</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> <span class="comment">//      EQUIVALENCE (RBUF(16),DELTA(1))</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     delta = rbuf + 16 - 1;</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="comment">//      DO 1100 N=1,3</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <span class="comment">//         UT(N) = RBUF(N+3)</span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> <span class="comment">//1100  CONTINUE</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="comment">//    for (n = 1; n <= 3; n++)</span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="comment">//    {</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <span class="comment">//        ut[n] = rbuf[n+3];</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="comment">//    }</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="comment">// ... convert UT to real hours, calculate Julian date</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> <span class="comment">//  UTR = UT(1)+UT(2)/60.D0+UT(3)/3600.D0</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="comment">//    utr = ut[1]+ut[2]/60.  +ut[3]/3600.;   </span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     <span class="comment">/* We know this one already but convert seconds -> hours */</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     utr /= 3600;</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="comment">//      CALL JULDAT(DATE,UTR,JD)</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     jd = mod_juldat + 2400000.5;</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>   </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="comment">// ... likewise convert longitude and latitude of observatory to real hours</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="comment">// ... and degrees, respectively; take care of signs</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="comment">// ... NOTE: east longitude is assumed for input !!</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="comment">//      IF ((OLONG(1).LT.0.0) .OR. (OLONG(2).LT.0.0) .OR.</span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="comment">//     +    (OLONG(3).LT.0.0) .OR. (INPSGN(1:1).EQ.'-')) THEN  </span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>       <span class="keywordflow">if</span> (olong[1] < 0 || olong[2] < 0 ||</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>           olong[3] < 0 || inpsgn[1] == <span class="charliteral">'-'</span>) {</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> <span class="comment">//       SIGNS(1:1) = '-'</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>           signs[1] = <span class="charliteral">'-'</span>;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> <span class="comment">//       OLONG(1) = ABS(OLONG(1))</span></div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> <span class="comment">//       OLONG(2) = ABS(OLONG(2))</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> <span class="comment">//       OLONG(3) = ABS(OLONG(3))</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>           olong[1] = fabs(olong[1]);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>           olong[2] = fabs(olong[2]);</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>           olong[3] = fabs(olong[3]);</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> <span class="comment">//      ENDIF</span></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>       }</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> </div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> <span class="comment">//    DL = OLONG(1)+OLONG(2)/60.D0+OLONG(3)/3600.D0</span></div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>       dl = olong[1]+olong[2]/60.  +olong[3]/3600.;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="comment">//    IF (SIGNS(1:1).EQ.'-') DL = -DL              ! negative longitude</span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>       <span class="keywordflow">if</span> (signs[1]   == <span class="charliteral">'-'</span>) dl = -dl;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> <span class="comment">//    DL = -DL*24.D0/360.D0                ! convert back to west longitude</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>       dl = -dl*24.  /360.;</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> <span class="comment">//    IF ((OLAT(1).LT.0.0) .OR. (OLAT(2).LT.0.0) .OR.</span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> <span class="comment">//   +    (OLAT(3).LT.0.0) .OR. (INPSGN(2:2).EQ.'-')) THEN  </span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>       <span class="keywordflow">if</span> (olat[1] < 0 || olat[2] < 0 ||</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>       olat[3] < 0 || inpsgn[2] == <span class="charliteral">'-'</span>) {</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="comment">//        SIGNS(2:2) = '-'</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>       signs[2] = <span class="charliteral">'-'</span>;</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>  </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="comment">//         OLAT(1) = ABS(OLAT(1))</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="comment">//         OLAT(2) = ABS(OLAT(2))</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> <span class="comment">//         OLAT(3) = ABS(OLAT(3))</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>       olat[1] = fabs(olat[1]);</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>       olat[2] = fabs(olat[2]);</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>       olat[3] = fabs(olat[3]);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> <span class="comment">//    ENDIF</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>       }</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> </div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> <span class="comment">//    PHI = OLAT(1)+OLAT(2)/60.D0+OLAT(3)/3600.D0</span></div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>       phi = olat[1]+olat[2]/60.  +olat[3]/3600.;</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="comment">//    IF (SIGNS(2:2).EQ.'-') PHI = -PHI                 ! negative latitude</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>       <span class="keywordflow">if</span> (signs[2]   == <span class="charliteral">'-'</span>) phi = -phi;</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="comment">//    PHI = PHI*PI/180.D0</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>       phi = phi*M_PI/180. ;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="comment">// ... convert right ascension and declination to real radians</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="comment">//    ALP = (ALPHA(1)*3600D0+ALPHA(2)*60D0+ALPHA(3))*PI  /(12.D0*3600.D0)</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>       alp = (alpha[1]*3600. +alpha[2]*60. +alpha[3])*M_PI/(12.  *3600.  );</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="comment">//      IF ((DELTA(1).LT.0.0) .OR. (DELTA(2).LT.0.0) .OR.</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="comment">//     +    (DELTA(3).LT.0.0) .OR. (INPSGN(3:3).EQ.'-')) THEN </span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>       <span class="keywordflow">if</span> (delta[1] < 0 || delta[2] < 0 ||</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>       delta[3] < 0 || inpsgn[3] == <span class="charliteral">'-'</span>) {</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> <span class="comment">//        SIGNS(3:3) = '-'</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>       signs[3] = <span class="charliteral">'-'</span>;</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="comment">//         DELTA(1) = ABS(DELTA(1))</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment">//         DELTA(2) = ABS(DELTA(2))</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> <span class="comment">//         DELTA(3) = ABS(DELTA(3))</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>       delta[1] = fabs(delta[1]);</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>       delta[2] = fabs(delta[2]);</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>       delta[3] = fabs(delta[3]);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> <span class="comment">//      ENDIF</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>       }</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <span class="comment">//    DEL = (DELTA(1)*3600.D0 + DELTA(2)*60.D0 + DELTA(3))</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> <span class="comment">//     +      * PI/(3600.D0*180.D0)</span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>       del = (delta[1]*3600.0  + delta[2]*60.   + delta[3])</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>       * M_PI/(3600. *180. );</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> <span class="comment">//    IF (SIGNS(3:3).EQ.'-') DEL = -DEL                 ! negative declination</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>       <span class="keywordflow">if</span> (signs[3]   == <span class="charliteral">'-'</span>) del = - del;</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> <span class="comment">// ... calculate earth's orbital velocity in rectangular coordinates X,Y,Z</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> <span class="comment">// ... for both heliocentric and barycentric frames (DVELH, DVELB)</span></div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> <span class="comment">// ... Note that setting the second argument of BARVEL to zero as done below</span></div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> <span class="comment">// ... means that the input coordinates will not be corrected for precession.</span></div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> <span class="comment">//      CALL BARVEL(JD,0.0D0,DVELH,DVELB)</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>       <a class="code" href="group__uves__baryvel.html#ga3d3880b9ecf3dac9a3ed30608a5d4012" title="compute rectangular heliocentric and barycentric components of the earth's orbital velocity...">barvel</a>(jd, 0.0, dvelh, dvelb);</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> <span class="comment">// ... with the rectangular velocity components known, the respective projections</span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> <span class="comment">// ... HEOV and BEOV on a given line of sight (ALP,DEL) can be determined:</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> <span class="comment">// ... REFERENCE: THE ASTRONOMICAL ALMANAC 1982 PAGE:B17</span></div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> <span class="comment">//      BEOV=DVELB(1)*DCOS(ALP)*DCOS(DEL)+</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> <span class="comment">//     1     DVELB(2)*DSIN(ALP)*DCOS(DEL)+</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> <span class="comment">//     2     DVELB(3)*DSIN(DEL)</span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>       beov =</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>       dvelb[1]*cos(alp)*cos(del)+</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>       dvelb[2]*sin(alp)*cos(del)+</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>       dvelb[3]*sin(del);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>       </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> <span class="comment">//      HEOV=DVELH(1)*DCOS(ALP)*DCOS(DEL)+</span></div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <span class="comment">//     1     DVELH(2)*DSIN(ALP)*DCOS(DEL)+</span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> <span class="comment">//     2     DVELH(3)*DSIN(DEL)</span></div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>       heov =</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>       dvelh[1]*cos(alp)*cos(del)+</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>       dvelh[2]*sin(alp)*cos(del)+</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>       dvelh[3]*sin(del);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>       </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> </div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> <span class="comment">// ... For determination also of the contribution due to the diurnal rotation of</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> <span class="comment">// ... the earth (EDV), the hour angle (HAR) is needed at which the observation</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> <span class="comment">// ... was made which requires conversion of UT to sidereal time (ST).</span></div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> <span class="comment">// ... Therefore, first compute ST at 0 hours UT (ST0HG)</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> </div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> <span class="comment">// ... REFERENCE : MEEUS J.,1980,ASTRONOMICAL FORMULAE FOR CALCULATORS</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> </div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="comment">//      CALL JULDAT(DATE,ZERO,JD0H)</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>       jd0h = jd - (utr/24.0);</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>       </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> <span class="comment">//      T0=(JD0H-2415020.D0)/36525.D0</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>       t0 = (jd0h-2415020.  )/36525. ;</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>       </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> <span class="comment">//      THETA0=0.276919398D0+100.0021359D0*T0+0.000001075D0*T0*T0</span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>       theta0 = 0.276919398  +100.0021359  *t0+0.000001075  *t0*t0 ;</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="comment">//      PE=DINT(THETA0)</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>       pe = (int) theta0;</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> <span class="comment">//      THETA0=THETA0-PE</span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>       theta0 = theta0 - pe;</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> </div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="comment">//      ST0HG=THETA0*24.D0</span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>       st0hg = theta0*24. ;</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> </div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> <span class="comment">// ... now do the conversion UT -> ST (MEAN SIDEREAL TIME)</span></div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> </div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="comment">// ... REFERENCE : THE ASTRONOMICAL ALMANAC 1983, P B7</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment">// ... IN 1983: 1 MEAN SOLAR DAY = 1.00273790931 MEAN SIDEREAL DAYS</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="comment">// ... ST WITHOUT EQUATION OF EQUINOXES CORRECTION => ACCURACY +/- 1 SEC</span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="comment">//</span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="comment">//      STG=ST0HG+UTR*1.00273790931D0</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>       stg = st0hg+utr*1.00273790931 ;</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>       </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">//      IF (STG.LT.DL) STG=STG+24.D0</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>       <span class="keywordflow">if</span> (stg < dl) stg = stg +24. ;</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> </div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="comment">//      STR=STG-DL</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>       STR = stg-dl;</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> </div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> <span class="comment">//      IF (STR.GE.24.D0) STR=STR-24.D0</span></div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>       <span class="keywordflow">if</span> (STR >= 24. ) STR = STR-24. ;</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <span class="comment">//      STR = STR*PI/12.D0                                 ! ST in radians</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>       STR = STR*M_PI/12. ;</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="comment">//      HAR=STR-ALP                                     ! hour angle of observation</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>       HAR = STR-alp;</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>       </div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> <span class="comment">//      EDV=-0.4654D0*DSIN(HAR)*DCOS(DEL)*DCOS(PHI)</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>       EDV = -0.4654  * sin(HAR)* cos(del)* cos(phi);</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> </div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="comment">// ... the total correction (in km/s) is the sum of orbital and diurnal components</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="comment">//    HERV=HEOV+EDV</span></div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>       herv=heov+EDV;</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> <span class="comment">//    BERV=BEOV+EDV</span></div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>       berv=beov+EDV;</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>       <span class="comment">/* The following is not needed. Do not translate */</span></div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> </div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> <span class="preprocessor"></span><span class="comment">// ... Calculation of the barycentric and heliocentric correction times</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> <span class="comment">// ... (BCT and HCT) requires knowledge of the earth's position in its</span></div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> <span class="comment">// ... orbit. Subroutine BARCOR returns the rectangular barycentric (DCORB)</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> <span class="comment">// ... and heliocentric (DCORH) coordinates.</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> <span class="comment">//      CALL BARCOR(DCORH,DCORB)</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> <span class="comment">// ... from this, the correction times (in days) can be determined:</span></div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> <span class="comment">// ... (REFERENCE: THE ASTRONOMICAL ALMANAC 1982 PAGE:B16)</span></div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> <span class="comment">//      BCT=+0.0057756D0*(DCORB(1)*DCOS(ALP)*DCOS(DEL)+</span></div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> <span class="comment">//     1                DCORB(2)*DSIN(ALP)*DCOS(DEL)+</span></div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> <span class="comment">//     2                DCORB(3)*          DSIN(DEL))</span></div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> <span class="comment">//      HCT=+0.0057756D0*(DCORH(1)*DCOS(ALP)*DCOS(DEL)+</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> <span class="comment">//     1                DCORH(2)*DSIN(ALP)*DCOS(DEL)+</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> <span class="comment">//     2                DCORH(3)*          DSIN(DEL))</span></div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> <span class="comment">//... write results to keywords</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> <span class="comment">//      CALL STKWRD('OUTPUTD',BCT,1,1,KUN,STAT)    ! barycentric correction time</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="comment">//      CALL STKWRD('OUTPUTD',HCT,2,1,KUN,STAT)    ! heliocentric correction time</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> </div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> <span class="comment">//      RBUF(1) = BERV                             ! barocentric RV correction</span></div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> <span class="comment">//      RBUF(2) = HERV                             ! heliocentric RV correction</span></div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> <span class="comment">// ... (note that EDV is already contained in both BERV and HERV)</span></div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> <span class="comment">//      RBUF(3) = EDV                              ! diurnal RV correction</span></div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>       rbuf[1] = berv;</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>       rbuf[2] = herv;</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>       rbuf[3] = EDV;</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="comment">//      CALL STKWRR('OUTPUTR',RBUF,1,3,KUN,STAT)</span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>       outputr[1] = rbuf[1];</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>       outputr[2] = rbuf[2];</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>       outputr[3] = rbuf[3];</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> <span class="comment">//      GOTO 9000</span></div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>       <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> }</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> </div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> <span class="comment">/* @cond Convert FORTRAN indexing -> C indexing */</span></div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> <span class="preprocessor">#define DCFEL(x,y)  dcfel[y][x]</span></div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> <span class="preprocessor"></span><span class="preprocessor">#define DCFEPS(x,y) dcfeps[y][x]</span></div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> <span class="preprocessor"></span><span class="preprocessor">#define CCSEL(x,y)  ccsel[y][x]</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> <span class="preprocessor"></span><span class="preprocessor">#define DCARGS(x,y) dcargs[y][x]</span></div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> <span class="preprocessor"></span><span class="preprocessor">#define CCAMPS(x,y) ccamps[y][x]</span></div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> <span class="preprocessor"></span><span class="preprocessor">#define CCSEC(x,y)  ccsec[y][x]</span></div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> <span class="preprocessor"></span><span class="preprocessor">#define DCARGM(x,y) dcargm[y][x]</span></div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> <span class="preprocessor"></span><span class="preprocessor">#define CCAMPM(x,y) ccampm[y][x]</span></div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> <span class="preprocessor"></span><span class="preprocessor">#define DCEPS(x)    dceps[x]</span></div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> <span class="preprocessor"></span><span class="preprocessor">#define FORBEL(x)   forbel[x]</span></div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> <span class="preprocessor"></span><span class="preprocessor">#define SORBEL(x)   sorbel[x]</span></div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> <span class="preprocessor"></span><span class="preprocessor">#define SN(x)       sn[x]</span></div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> <span class="preprocessor"></span><span class="preprocessor">#define SINLP(x)    sinlp[x]</span></div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span> <span class="preprocessor"></span><span class="preprocessor">#define COSLP(x)    coslp[x]</span></div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> <span class="preprocessor"></span><span class="preprocessor">#define CCPAMV(x)   ccpamv[x]</span></div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> <span class="preprocessor"></span><span class="comment">/* @endcond */</span></div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> </div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span> <span class="comment">//      SUBROUTINE BARVEL(DJE,DEQ,DVELH,DVELB)</span></div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> </div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> <span class="keyword">static</span> </div>
-<div class="line"><a name="l00622"></a><span class="lineno"><a class="code" href="group__uves__baryvel.html#ga3d3880b9ecf3dac9a3ed30608a5d4012">  622</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__baryvel.html#ga3d3880b9ecf3dac9a3ed30608a5d4012" title="compute rectangular heliocentric and barycentric components of the earth's orbital velocity...">barvel</a>(<span class="keywordtype">double</span> DJE, <span class="keywordtype">double</span> D [...]
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>         <span class="keywordtype">double</span> DVELH[4], <span class="keywordtype">double</span> DVELB[4])</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> {</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> <span class="comment">//      DOUBLE PRECISION   DJE,DEQ,DVELH(3),DVELB(3),SN(4)</span></div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>     <span class="keywordtype">double</span> sn[5];</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span> <span class="comment">//      DOUBLE PRECISION   DT,DTL,DCT0,DCJUL,DTSQ,DLOCAL,DC2PI,CC2PI</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     <span class="keywordtype">double</span> DT,DTL,DTSQ,DLOCAL;</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> <span class="comment">//      DOUBLE PRECISION   DRD,DRLD,DCSLD,DC1</span></div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     <span class="keywordtype">double</span> DRD,DRLD;</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span> <span class="comment">//      DOUBLE PRECISION   DXBD,DYBD,DZBD,DZHD,DXHD,DYHD</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     <span class="keywordtype">double</span> DXBD,DYBD,DZBD,DZHD,DXHD,DYHD;</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> <span class="comment">//      DOUBLE PRECISION   DYAHD,DZAHD,DYABD,DZABD</span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     <span class="keywordtype">double</span> DYAHD,DZAHD,DYABD,DZABD;</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> <span class="comment">//      DOUBLE PRECISION   DML,DEPS,PHI,PHID,PSID,DPARAM,PARAM</span></div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>     <span class="keywordtype">double</span> DML,DEPS,PHI,PHID,PSID,DPARAM,PARAM;</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> <span class="comment">//      DOUBLE PRECISION   CCFDI,CCKM,CCMLD,PLON,POMG,PECC</span></div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>     <span class="keywordtype">double</span> PLON,POMG,PECC;</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> <span class="comment">//      DOUBLE PRECISION   PERTL,PERTLD,PERTRD,PERTP,PERTR,PERTPD</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     <span class="keywordtype">double</span> PERTL,PERTLD,PERTRD,PERTP,PERTR,PERTPD;</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span> <span class="comment">//      DOUBLE PRECISION   SINA,CCSGD,DC1MME,TL</span></div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>     <span class="keywordtype">double</span> SINA,TL;</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> <span class="comment">//      DOUBLE PRECISION   CCSEC3,COSA,ESQ</span></div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     <span class="keywordtype">double</span> COSA,ESQ;</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span> <span class="comment">//      DOUBLE PRECISION   DCFEL(3,8),DCEPS(3),CCSEL(3,17),DCARGS(2,15)</span></div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> <span class="comment">//      DOUBLE PRECISION   CCAMPS(5,15),CCSEC(3,4),DCARGM(2,3)</span></div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> <span class="comment">//      DOUBLE PRECISION   CCAMPM(4,3),CCPAMV(4)</span></div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span> <span class="comment">//      DOUBLE PRECISION   A,B,E,F,G,SINF,COSF,T,TSQ,TWOE,TWOG</span></div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>     <span class="keywordtype">double</span> A,B,F,SINF,COSF,T,TSQ,TWOE,TWOG;</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> <span class="comment">//      DOUBLE PRECISION   DPREMA(3,3),DPSI,D1PDRO,DSINLS</span></div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>     <span class="keywordtype">double</span> DPSI,D1PDRO,DSINLS;</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> <span class="comment">//      DOUBLE PRECISION   DCOSLS,DSINEP,DCOSEP</span></div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>     <span class="keywordtype">double</span> DCOSLS,DSINEP,DCOSEP;</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> <span class="comment">//      DOUBLE PRECISION   FORBEL(7),SORBEL(17),SINLP(4),COSLP(4)</span></div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>     <span class="keywordtype">double</span> forbel[8], sorbel[18], sinlp[5], coslp[5];</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> <span class="comment">//      DOUBLE PRECISION   SINLM,COSLM,SIGMA</span></div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>     <span class="keywordtype">double</span> SINLM,COSLM,SIGMA;</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span> <span class="comment">//      INTEGER     IDEQ,K,N</span></div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>     <span class="keywordtype">int</span> IDEQ,K,N;</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span> <span class="comment">//      COMMON /BARXYZ/    DPREMA,DPSI,D1PDRO,DSINLS,DCOSLS,</span></div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> <span class="comment">//     +                   DSINEP,DCOSEP,FORBEL,SORBEL,SINLP,</span></div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span> <span class="comment">//     +                   COSLP,SINLM,COSLM,SIGMA,IDEQ</span></div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> <span class="comment">//      EQUIVALENCE (SORBEL(1),E),(FORBEL(1),G)</span></div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>     <span class="keywordtype">double</span> *E = sorbel + 1 - 1;</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     <span class="keywordtype">double</span> *G = forbel + 1 - 1;</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> <span class="comment">//      DATA DC2PI/6.2831853071796D0/,CC2PI/6.283185/,</span></div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>     <span class="keywordtype">double</span> DC2PI = 6.2831853071796E0;</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>     <span class="keywordtype">double</span> CC2PI = 6.283185;             <span class="comment">/* ??? */</span></div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> </div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> <span class="comment">//     *DC1/1.0D0/,DCT0/2415020.0D0/,DCJUL/36525.0D0/</span></div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>     <span class="keywordtype">double</span> DC1 = 1.0;</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>     <span class="keywordtype">double</span> DCT0 = 2415020.0E0;</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>     <span class="keywordtype">double</span> DCJUL = 36525.0E0;</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> <span class="comment">//      DATA DCFEL/ 1.7400353D+00, 6.2833195099091D+02, 5.2796D-06,</span></div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> <span class="comment">//     *            6.2565836D+00, 6.2830194572674D+02,-2.6180D-06,</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> <span class="comment">//     *            4.7199666D+00, 8.3997091449254D+03,-1.9780D-05,</span></div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span> <span class="comment">//     *            1.9636505D-01, 8.4334662911720D+03,-5.6044D-05,</span></div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> <span class="comment">//     *            4.1547339D+00, 5.2993466764997D+01, 5.8845D-06,</span></div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> <span class="comment">//     *            4.6524223D+00, 2.1354275911213D+01, 5.6797D-06,</span></div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> <span class="comment">//     *            4.2620486D+00, 7.5025342197656D+00, 5.5317D-06,</span></div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span> <span class="comment">//     *            1.4740694D+00, 3.8377331909193D+00, 5.6093D-06/</span></div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>     <span class="keywordtype">double</span> dcfel[][4] = { {0, 0, 0, 0},</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>               {0, 1.7400353E+00, 6.2833195099091E+02, 5.2796E-06},</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>               {0, 6.2565836E+00, 6.2830194572674E+02,-2.6180E-06},</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>               {0, 4.7199666E+00, 8.3997091449254E+03,-1.9780E-05},</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>               {0, 1.9636505E-01, 8.4334662911720E+03,-5.6044E-05},</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>               {0, 4.1547339E+00, 5.2993466764997E+01, 5.8845E-06},</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>               {0, 4.6524223E+00, 2.1354275911213E+01, 5.6797E-06},</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>               {0, 4.2620486E+00, 7.5025342197656E+00, 5.5317E-06},</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>               {0, 1.4740694E+00, 3.8377331909193E+00, 5.6093E-06} };</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     </div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> <span class="comment">//      DATA DCEPS/ 4.093198D-01,-2.271110D-04,-2.860401D-08/</span></div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="keywordtype">double</span> dceps[4] = {0, 4.093198E-01,-2.271110E-04,-2.860401E-08};</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span> </div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> <span class="comment">//      DATA CCSEL/ 1.675104D-02,-4.179579D-05,-1.260516D-07,</span></div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span> <span class="comment">//     *            2.220221D-01, 2.809917D-02, 1.852532D-05,</span></div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span> <span class="comment">//     *            1.589963D+00, 3.418075D-02, 1.430200D-05,</span></div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> <span class="comment">//     *            2.994089D+00, 2.590824D-02, 4.155840D-06,</span></div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> <span class="comment">//     *            8.155457D-01, 2.486352D-02, 6.836840D-06,</span></div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> <span class="comment">//     *            1.735614D+00, 1.763719D-02, 6.370440D-06,</span></div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span> <span class="comment">//     *            1.968564D+00, 1.524020D-02,-2.517152D-06,</span></div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span> <span class="comment">//     *            1.282417D+00, 8.703393D-03, 2.289292D-05,</span></div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> <span class="comment">//     *            2.280820D+00, 1.918010D-02, 4.484520D-06,</span></div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> <span class="comment">//     *            4.833473D-02, 1.641773D-04,-4.654200D-07,</span></div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> <span class="comment">//     *            5.589232D-02,-3.455092D-04,-7.388560D-07,</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> <span class="comment">//     *            4.634443D-02,-2.658234D-05, 7.757000D-08,</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> <span class="comment">//     *            8.997041D-03, 6.329728D-06,-1.939256D-09,</span></div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> <span class="comment">//     *            2.284178D-02,-9.941590D-05, 6.787400D-08,</span></div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> <span class="comment">//     *            4.350267D-02,-6.839749D-05,-2.714956D-07,</span></div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> <span class="comment">//     *            1.348204D-02, 1.091504D-05, 6.903760D-07,</span></div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span> <span class="comment">//     *            3.106570D-02,-1.665665D-04,-1.590188D-07/</span></div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     <span class="keywordtype">double</span> ccsel[][4] = { {0, 0, 0, 0},</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>               {0, 1.675104E-02, -4.179579E-05, -1.260516E-07},</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>               {0, 2.220221E-01,  2.809917E-02,  1.852532E-05},</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>               {0, 1.589963E+00,  3.418075E-02,  1.430200E-05},</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>               {0, 2.994089E+00,  2.590824E-02,  4.155840E-06},</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>               {0, 8.155457E-01,  2.486352E-02,  6.836840E-06},</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>               {0, 1.735614E+00,  1.763719E-02,  6.370440E-06},</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>               {0, 1.968564E+00,  1.524020E-02, -2.517152E-06},</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>               {0, 1.282417E+00,  8.703393E-03,  2.289292E-05},</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>               {0, 2.280820E+00,  1.918010E-02,  4.484520E-06},</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>               {0, 4.833473E-02,  1.641773E-04, -4.654200E-07},</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>               {0, 5.589232E-02, -3.455092E-04, -7.388560E-07},</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>               {0, 4.634443E-02, -2.658234E-05,  7.757000E-08},</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>               {0, 8.997041E-03,  6.329728E-06, -1.939256E-09},</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>               {0, 2.284178E-02, -9.941590E-05,  6.787400E-08},</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>               {0, 4.350267E-02, -6.839749E-05, -2.714956E-07},</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>               {0, 1.348204E-02,  1.091504E-05,  6.903760E-07},</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>               {0, 3.106570E-02, -1.665665E-04, -1.590188E-07} };</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> </div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> </div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> </div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span> <span class="comment">//      DATA DCARGS/ 5.0974222D+00,-7.8604195454652D+02,</span></div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> <span class="comment">//     *             3.9584962D+00,-5.7533848094674D+02,</span></div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> <span class="comment">//     *             1.6338070D+00,-1.1506769618935D+03,</span></div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span> <span class="comment">//     *             2.5487111D+00,-3.9302097727326D+02,</span></div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span> <span class="comment">//     *             4.9255514D+00,-5.8849265665348D+02,</span></div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> <span class="comment">//     *             1.3363463D+00,-5.5076098609303D+02,</span></div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span> <span class="comment">//     *             1.6072053D+00,-5.2237501616674D+02,</span></div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span> <span class="comment">//     *             1.3629480D+00,-1.1790629318198D+03,</span></div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span> <span class="comment">//     *             5.5657014D+00,-1.0977134971135D+03,</span></div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span> <span class="comment">//     *             5.0708205D+00,-1.5774000881978D+02,</span></div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span> <span class="comment">//     *             3.9318944D+00, 5.2963464780000D+01,</span></div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span> <span class="comment">//     *             4.8989497D+00, 3.9809289073258D+01,</span></div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span> <span class="comment">//     *             1.3097446D+00, 7.7540959633708D+01,</span></div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span> <span class="comment">//     *             3.5147141D+00, 7.9618578146517D+01,</span></div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> <span class="comment">//     *             3.5413158D+00,-5.4868336758022D+02/</span></div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> </div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     <span class="keywordtype">double</span> dcargs[][3] = { {0, 0, 0},</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>                {0, 5.0974222E+00, -7.8604195454652E+02},</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>                {0, 3.9584962E+00, -5.7533848094674E+02},</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>                {0, 1.6338070E+00, -1.1506769618935E+03},</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>                {0, 2.5487111E+00, -3.9302097727326E+02},</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>                {0, 4.9255514E+00, -5.8849265665348E+02},</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>                {0, 1.3363463E+00, -5.5076098609303E+02},</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>                {0, 1.6072053E+00, -5.2237501616674E+02},</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>                {0, 1.3629480E+00, -1.1790629318198E+03},</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>                {0, 5.5657014E+00, -1.0977134971135E+03},</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>                {0, 5.0708205E+00, -1.5774000881978E+02},</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>                {0, 3.9318944E+00,  5.2963464780000E+01},</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>                {0, 4.8989497E+00,  3.9809289073258E+01},</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>                {0, 1.3097446E+00,  7.7540959633708E+01},</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>                {0, 3.5147141E+00,  7.9618578146517E+01},</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>                {0, 3.5413158E+00, -5.4868336758022E+02} };</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> <span class="comment">//      DATA CCAMPS/</span></div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> <span class="comment">//     *-2.279594D-5, 1.407414D-5, 8.273188D-6, 1.340565D-5,-2.490817D-7,</span></div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> <span class="comment">//     *-3.494537D-5, 2.860401D-7, 1.289448D-7, 1.627237D-5,-1.823138D-7,</span></div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> <span class="comment">//     * 6.593466D-7, 1.322572D-5, 9.258695D-6,-4.674248D-7,-3.646275D-7,</span></div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span> <span class="comment">//     * 1.140767D-5,-2.049792D-5,-4.747930D-6,-2.638763D-6,-1.245408D-7,</span></div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> <span class="comment">//     * 9.516893D-6,-2.748894D-6,-1.319381D-6,-4.549908D-6,-1.864821D-7,</span></div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span> <span class="comment">//     * 7.310990D-6,-1.924710D-6,-8.772849D-7,-3.334143D-6,-1.745256D-7,</span></div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> <span class="comment">//     *-2.603449D-6, 7.359472D-6, 3.168357D-6, 1.119056D-6,-1.655307D-7,</span></div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> <span class="comment">//     *-3.228859D-6, 1.308997D-7, 1.013137D-7, 2.403899D-6,-3.736225D-7,</span></div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> <span class="comment">//     * 3.442177D-7, 2.671323D-6, 1.832858D-6,-2.394688D-7,-3.478444D-7,</span></div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> <span class="comment">//     * 8.702406D-6,-8.421214D-6,-1.372341D-6,-1.455234D-6,-4.998479D-8,</span></div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> <span class="comment">//     *-1.488378D-6,-1.251789D-5, 5.226868D-7,-2.049301D-7, 0.0D0,</span></div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span> <span class="comment">//     *-8.043059D-6,-2.991300D-6, 1.473654D-7,-3.154542D-7, 0.0D0,</span></div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span> <span class="comment">//     * 3.699128D-6,-3.316126D-6, 2.901257D-7, 3.407826D-7, 0.0D0,</span></div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> <span class="comment">//     * 2.550120D-6,-1.241123D-6, 9.901116D-8, 2.210482D-7, 0.0D0,</span></div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span> <span class="comment">//     *-6.351059D-7, 2.341650D-6, 1.061492D-6, 2.878231D-7, 0.0D0/</span></div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> </div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>     <span class="keywordtype">double</span> ccamps[][6] = </div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>     {{0, 0, 0, 0, 0, 0},</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>      {0, -2.279594E-5,  1.407414E-5,  8.273188E-6,  1.340565E-5, -2.490817E-7},</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>      {0, -3.494537E-5,  2.860401E-7,  1.289448E-7,  1.627237E-5, -1.823138E-7},</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>      {0,  6.593466E-7,  1.322572E-5,  9.258695E-6, -4.674248E-7, -3.646275E-7},</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>      {0,  1.140767E-5, -2.049792E-5, -4.747930E-6, -2.638763E-6, -1.245408E-7},</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>      {0,  9.516893E-6, -2.748894E-6, -1.319381E-6, -4.549908E-6, -1.864821E-7},</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>      {0,  7.310990E-6, -1.924710E-6, -8.772849E-7, -3.334143E-6, -1.745256E-7},</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>      {0, -2.603449E-6,  7.359472E-6,  3.168357E-6,  1.119056E-6, -1.655307E-7},</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>      {0, -3.228859E-6,  1.308997E-7,  1.013137E-7,  2.403899E-6, -3.736225E-7},</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>      {0,  3.442177E-7,  2.671323E-6,  1.832858E-6, -2.394688E-7, -3.478444E-7},</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>      {0,  8.702406E-6, -8.421214E-6, -1.372341E-6, -1.455234E-6, -4.998479E-8},</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>      {0, -1.488378E-6, -1.251789E-5,  5.226868E-7, -2.049301E-7,  0.0E0},</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>      {0, -8.043059E-6, -2.991300E-6,  1.473654E-7, -3.154542E-7,  0.0E0},</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>      {0,  3.699128E-6, -3.316126E-6,  2.901257E-7,  3.407826E-7,  0.0E0},</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>      {0,  2.550120E-6, -1.241123E-6,  9.901116E-8,  2.210482E-7,  0.0E0},</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>      {0, -6.351059E-7,  2.341650E-6,  1.061492E-6,  2.878231E-7,  0.0E0}};</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span> </div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span> </div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span> <span class="comment">//      DATA CCSEC3/-7.757020D-08/</span></div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>     <span class="keywordtype">double</span> CCSEC3 = -7.757020E-08;</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span> <span class="comment">//      DATA CCSEC/ 1.289600D-06, 5.550147D-01, 2.076942D+00,</span></div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span> <span class="comment">//     *            3.102810D-05, 4.035027D+00, 3.525565D-01,</span></div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> <span class="comment">//     *            9.124190D-06, 9.990265D-01, 2.622706D+00,</span></div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span> <span class="comment">//     *            9.793240D-07, 5.508259D+00, 1.559103D+01/</span></div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>     <span class="keywordtype">double</span> ccsec[][4] = { {0, 0, 0, 0},</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>               {0, 1.289600E-06,  5.550147E-01,  2.076942E+00},</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>               {0, 3.102810E-05,  4.035027E+00,  3.525565E-01},</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>               {0, 9.124190E-06,  9.990265E-01,  2.622706E+00},</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>               {0, 9.793240E-07,  5.508259E+00,  1.559103E+01}};</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span> </div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span> <span class="comment">//      DATA DCSLD/ 1.990987D-07/, CCSGD/ 1.990969D-07/</span></div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>     <span class="keywordtype">double</span> DCSLD =  1.990987E-07, CCSGD = 1.990969E-07;</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span> <span class="comment">//      DATA CCKM/3.122140D-05/, CCMLD/2.661699D-06/, CCFDI/2.399485D-07/</span></div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>     <span class="keywordtype">double</span> CCKM = 3.122140E-05, CCMLD = 2.661699E-06, CCFDI = 2.399485E-07;</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span> <span class="comment">//      DATA DCARGM/ 5.1679830D+00, 8.3286911095275D+03,</span></div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> <span class="comment">//     *             5.4913150D+00,-7.2140632838100D+03,</span></div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span> <span class="comment">//     *             5.9598530D+00, 1.5542754389685D+04/</span></div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span> </div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>     <span class="keywordtype">double</span> dcargm[][3] = {{0, 0, 0},</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>               {0, 5.1679830E+00,  8.3286911095275E+03},</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>               {0, 5.4913150E+00, -7.2140632838100E+03},</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>               {0, 5.9598530E+00,  1.5542754389685E+04}};</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span> <span class="comment">//      DATA CCAMPM/</span></div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span> <span class="comment">//     *  1.097594D-01, 2.896773D-07, 5.450474D-02, 1.438491D-07,</span></div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span> <span class="comment">//     * -2.223581D-02, 5.083103D-08, 1.002548D-02,-2.291823D-08,</span></div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span> <span class="comment">//     *  1.148966D-02, 5.658888D-08, 8.249439D-03, 4.063015D-08/</span></div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span> </div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>     <span class="keywordtype">double</span> ccampm[][5] = {{0, 0, 0, 0, 0},</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>               {0,  1.097594E-01,  2.896773E-07,  5.450474E-02,  1.438491E-07},</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>               {0, -2.223581E-02,  5.083103E-08,  1.002548E-02, -2.291823E-08},</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>               {0,  1.148966E-02,  5.658888E-08,  8.249439E-03,  4.063015E-08} };</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span> </div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span> <span class="comment">//      DATA CCPAMV/8.326827D-11,1.843484D-11,1.988712D-12,1.881276D-12/,</span></div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>     <span class="keywordtype">double</span> ccpamv[] = {0, 8.326827E-11, 1.843484E-11, 1.988712E-12, 1.881276E-12};</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span> <span class="comment">//     *     DC1MME/0.99999696D0/</span></div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>     <span class="keywordtype">double</span> DC1MME = 0.99999696E0;</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> </div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> <span class="comment">//  IDEQ=DEQ</span></div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>     IDEQ=DEQ;</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> </div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span> <span class="comment">//  DT=(DJE-DCT0)/DCJUL</span></div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>     DT=(DJE-DCT0)/DCJUL;</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> </div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> <span class="comment">//  T=DT</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>     T=DT;</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> </div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span> <span class="comment">//  DTSQ=DT*DT</span></div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>     DTSQ=DT*DT;</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> </div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> <span class="comment">//  TSQ=DTSQ</span></div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>     TSQ=DTSQ;</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> </div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>     DML = 0;  <span class="comment">/* Suppress warning */</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> <span class="comment">//      DO 100, K=1,8</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>     <span class="keywordflow">for</span> (K = 1; K <= 8; K++) {</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span> </div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span> <span class="comment">//      DLOCAL=DMOD(DCFEL(1,K)+DT*DCFEL(2,K)+DTSQ*DCFEL(3,K),DC2PI)</span></div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>     DLOCAL=fmod(DCFEL(1,K)+DT*DCFEL(2,K)+DTSQ*DCFEL(3,K),DC2PI);</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> </div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span> <span class="comment">//      IF (K.EQ.1)  DML=DLOCAL</span></div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>     <span class="keywordflow">if</span> (K == 1)  DML=DLOCAL;</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span> <span class="comment">//      IF (K.NE.1)  FORBEL(K-1)=DLOCAL</span></div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     <span class="keywordflow">if</span> (K != 1)  FORBEL(K-1)=DLOCAL;</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span> <span class="comment">//  100 CONTINUE</span></div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>     }</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span> </div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span> <span class="comment">//  DEPS=DMOD(DCEPS(1)+DT*DCEPS(2)+DTSQ*DCEPS(3), DC2PI)</span></div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>     DEPS=fmod(DCEPS(1)+DT*DCEPS(2)+DTSQ*DCEPS(3), DC2PI);</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span> </div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> <span class="comment">//      DO 200, K=1,17</span></div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>     <span class="keywordflow">for</span> (K = 1; K <= 17; K++) {</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span> </div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> <span class="comment">//      SORBEL(K)=DMOD(CCSEL(1,K)+T*CCSEL(2,K)+TSQ*CCSEL(3,K),CC2PI)</span></div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>     SORBEL(K)=fmod(CCSEL(1,K)+T*CCSEL(2,K)+TSQ*CCSEL(3,K),CC2PI);</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> </div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span> <span class="comment">//  200 CONTINUE</span></div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>     }</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> </div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> <span class="comment">//      DO 300, K=1,4</span></div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>     <span class="keywordflow">for</span> (K = 1; K <= 4; K++) {</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span> </div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span> <span class="comment">//      A=DMOD(CCSEC(2,K)+T*CCSEC(3,K),CC2PI)</span></div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>     A=fmod(CCSEC(2,K)+T*CCSEC(3,K),CC2PI);</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>     </div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span> <span class="comment">//      SN(K)=DSIN(A)</span></div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>     SN(K)=sin(A);</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span> <span class="comment">//  300 CONTINUE</span></div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>     }</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span> </div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span> <span class="comment">//      PERTL =  CCSEC(1,1)          *SN(1) +CCSEC(1,2)*SN(2)</span></div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span> <span class="comment">//     *       +(CCSEC(1,3)+T*CCSEC3)*SN(3) +CCSEC(1,4)*SN(4)</span></div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span> </div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     PERTL =  CCSEC(1,1)          *SN(1) +CCSEC(1,2)*SN(2)</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>            +(CCSEC(1,3)+T*CCSEC3)*SN(3) +CCSEC(1,4)*SN(4);</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span> </div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span> <span class="comment">//    PERTLD=0.0</span></div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span> <span class="comment">//    PERTR =0.0</span></div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span> <span class="comment">//    PERTRD=0.0</span></div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>     PERTLD=0.0;</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>     PERTR =0.0;</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>     PERTRD=0.0;</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> </div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span> <span class="comment">//      DO 400, K=1,15</span></div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>     <span class="keywordflow">for</span> (K = 1; K <= 15; K++) {</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> <span class="comment">//      A=DMOD(DCARGS(1,K)+DT*DCARGS(2,K), DC2PI)</span></div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>     A=fmod(DCARGS(1,K)+DT*DCARGS(2,K), DC2PI);</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span> <span class="comment">//    COSA=DCOS(A)</span></div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>     COSA=cos(A);</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span> </div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> <span class="comment">//      SINA=DSIN(A)</span></div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>     SINA=sin(A);</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> </div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> <span class="comment">//      PERTL =PERTL+CCAMPS(1,K)*COSA+CCAMPS(2,K)*SINA</span></div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>     PERTL =PERTL+CCAMPS(1,K)*COSA+CCAMPS(2,K)*SINA;</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span> </div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> <span class="comment">//    PERTR =PERTR+CCAMPS(3,K)*COSA+CCAMPS(4,K)*SINA;</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>     PERTR =PERTR+CCAMPS(3,K)*COSA+CCAMPS(4,K)*SINA;</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span> </div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> <span class="comment">//         IF (K.GE.11) GO TO 400</span></div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>     <span class="keywordflow">if</span> (K >= 11) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span> </div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> <span class="comment">//      PERTLD=PERTLD+(CCAMPS(2,K)*COSA-CCAMPS(1,K)*SINA)*CCAMPS(5,K)</span></div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>     PERTLD=PERTLD+(CCAMPS(2,K)*COSA-CCAMPS(1,K)*SINA)*CCAMPS(5,K);</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> </div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> <span class="comment">//      PERTRD=PERTRD+(CCAMPS(4,K)*COSA-CCAMPS(3,K)*SINA)*CCAMPS(5,K)</span></div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>     PERTRD=PERTRD+(CCAMPS(4,K)*COSA-CCAMPS(3,K)*SINA)*CCAMPS(5,K);</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> </div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span> <span class="comment">//  400 CONTINUE</span></div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>     }</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span> </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span> <span class="comment">//  ESQ=E*E</span></div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>     ESQ=E[1]*E[1];</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> </div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span> <span class="comment">//  DPARAM=DC1-ESQ</span></div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>     DPARAM=DC1-ESQ;</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span> </div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span> <span class="comment">//  PARAM=DPARAM</span></div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>     PARAM=DPARAM;</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span> </div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> <span class="comment">//  TWOE=E+E</span></div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>     TWOE=E[1]+E[1];</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> </div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span> <span class="comment">//  TWOG=G+G</span></div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>     TWOG=G[1]+G[1];</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span> </div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span> <span class="comment">//      PHI=TWOE*((1.0-ESQ*0.125D0)*DSIN(G)+E*0.625D0*DSIN(TWOG)</span></div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> <span class="comment">//    *          +ESQ*0.5416667D0*DSIN(G+TWOG) )</span></div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span> </div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>     PHI=TWOE*((1.0-ESQ*0.125  )*sin(G[1])+E[1]*0.625  *sin(TWOG)</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>           +ESQ*0.5416667  *sin(G[1]+TWOG) ) ;</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>     </div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>     <span class="comment">//F=G+PHI</span></div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>     F=G[1]+PHI;</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span> </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>     <span class="comment">//SINF=DSIN(F)</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>     SINF=sin(F);</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> </div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>     <span class="comment">//COSF=DCOS(F)</span></div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>     COSF=cos(F);</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> </div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>     <span class="comment">//DPSI=DPARAM/(DC1+E*COSF)</span></div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>     DPSI=DPARAM/(DC1+E[1]*COSF);</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> </div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span> <span class="comment">//  PHID=TWOE*CCSGD*((1.0+ESQ*1.5D0)*COSF+E[1]*(1.25D0-SINF*SINF*0.5D0))</span></div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     PHID=TWOE*CCSGD*((1.0+ESQ*1.5  )*COSF+E[1]*(1.25  -SINF*SINF*0.5  ));</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span> </div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> <span class="comment">//  PSID=CCSGD*E*SINF/SQRT(PARAM)</span></div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>     PSID=CCSGD*E[1]*SINF/sqrt(PARAM);</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> </div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span> <span class="comment">//  D1PDRO=(DC1+PERTR)</span></div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>     D1PDRO=(DC1+PERTR);</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span> </div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> <span class="comment">//  DRD=D1PDRO*(PSID+DPSI*PERTRD)</span></div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>     DRD=D1PDRO*(PSID+DPSI*PERTRD);</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> </div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span> <span class="comment">//  DRLD=D1PDRO*DPSI*(DCSLD+PHID+PERTLD)</span></div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>     DRLD=D1PDRO*DPSI*(DCSLD+PHID+PERTLD);</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> </div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> <span class="comment">//  DTL=DMOD(DML+PHI+PERTL, DC2PI)</span></div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>     DTL=fmod(DML+PHI+PERTL, DC2PI);</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> </div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> <span class="comment">//  DSINLS=DSIN(DTL)</span></div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>     DSINLS=sin(DTL);</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> <span class="comment">//  DCOSLS=DCOS(DTL)</span></div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>     DCOSLS=cos(DTL);</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> </div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span> <span class="comment">//  DXHD = DRD*DCOSLS-DRLD*DSINLS</span></div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>     DXHD = DRD*DCOSLS-DRLD*DSINLS;</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> </div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> <span class="comment">//  DYHD = DRD*DSINLS+DRLD*DCOSLS</span></div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>     DYHD = DRD*DSINLS+DRLD*DCOSLS;</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> </div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> <span class="comment">//  PERTL =0.0</span></div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>     PERTL =0.0;</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> <span class="comment">//  PERTLD=0.0</span></div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>     PERTLD=0.0;</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> <span class="comment">//  PERTP =0.0</span></div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>     PERTP =0.0;</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> <span class="comment">//  PERTPD=0.0</span></div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>     PERTPD=0.0;</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> </div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>     <span class="comment">//DO 500 K=1,3</span></div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>     <span class="keywordflow">for</span> (K = 1; K <= 3; K++) {</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>       <span class="comment">//A=DMOD(DCARGM(1,K)+DT*DCARGM(2,K), DC2PI)</span></div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>     A=fmod(DCARGM(1,K)+DT*DCARGM(2,K), DC2PI);</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> </div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>       <span class="comment">//SINA  =DSIN(A)</span></div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>     SINA  =sin(A);</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> </div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>       <span class="comment">//COSA  =DCOS(A)</span></div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>     COSA  =cos(A);</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>       <span class="comment">//PERTL =PERTL +CCAMPM(1,K)*SINA</span></div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>     PERTL =PERTL +CCAMPM(1,K)*SINA;</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>       <span class="comment">//PERTLD=PERTLD+CCAMPM(2,K)*COSA</span></div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>     PERTLD=PERTLD+CCAMPM(2,K)*COSA;</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span> </div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>       <span class="comment">//PERTP =PERTP +CCAMPM(3,K)*COSA</span></div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>     PERTP =PERTP +CCAMPM(3,K)*COSA;</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> </div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>       <span class="comment">//PERTPD=PERTPD-CCAMPM(4,K)*SINA</span></div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>     PERTPD=PERTPD-CCAMPM(4,K)*SINA;</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> </div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span> <span class="comment">//  500 CONTINUE</span></div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>     }</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>     </div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>   <span class="comment">//TL=FORBEL(2)+PERTL</span></div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>     TL=FORBEL(2)+PERTL;</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> </div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> <span class="comment">//  SINLM=DSIN(TL)</span></div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>     SINLM=sin(TL);</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> </div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> <span class="comment">//  COSLM=DCOS(TL)</span></div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>     COSLM=cos(TL);</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> </div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> <span class="comment">//  SIGMA=CCKM/(1.0+PERTP)</span></div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>     SIGMA=CCKM/(1.0+PERTP);</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> </div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span> <span class="comment">//  A=SIGMA*(CCMLD+PERTLD)</span></div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>     A=SIGMA*(CCMLD+PERTLD);</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span> </div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> <span class="comment">//  B=SIGMA*PERTPD</span></div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>     B=SIGMA*PERTPD;</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> </div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> <span class="comment">//  DXHD=DXHD+A*SINLM+B*COSLM</span></div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>     DXHD=DXHD+A*SINLM+B*COSLM;</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> </div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> <span class="comment">//  DYHD=DYHD-A*COSLM+B*SINLM</span></div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>     DYHD=DYHD-A*COSLM+B*SINLM;</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> </div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span> <span class="comment">//  DZHD=    -SIGMA*CCFDI*DCOS(FORBEL(3))</span></div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>     DZHD=    -SIGMA*CCFDI* cos(FORBEL(3));</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> </div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> <span class="comment">//  DXBD=DXHD*DC1MME</span></div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>     DXBD=DXHD*DC1MME;</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> </div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> <span class="comment">//  DYBD=DYHD*DC1MME</span></div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>     DYBD=DYHD*DC1MME;</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> <span class="comment">//  DZBD=DZHD*DC1MME</span></div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>     DZBD=DZHD*DC1MME;</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> </div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> <span class="comment">//      DO 600 K=1,4</span></div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>     <span class="keywordflow">for</span> (K = 1; K <= 4; K++) {</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> </div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>       <span class="comment">//PLON=FORBEL(K+3)</span></div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>     PLON=FORBEL(K+3);</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span> </div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>       <span class="comment">//POMG=SORBEL(K+1)</span></div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>     POMG=SORBEL(K+1);</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> </div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>       <span class="comment">//PECC=SORBEL(K+9)</span></div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>     PECC=SORBEL(K+9);</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> </div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>       <span class="comment">//TL=DMOD(PLON+2.0*PECC*DSIN(PLON-POMG), CC2PI)</span></div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>     TL=fmod(PLON+2.0*PECC* sin(PLON-POMG), CC2PI);</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> </div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>       <span class="comment">//SINLP(K)=DSIN(TL)</span></div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>     SINLP(K)= sin(TL);</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>     </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>       <span class="comment">//COSLP(K)=DCOS(TL)</span></div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>     COSLP(K)= cos(TL);</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>       <span class="comment">//DXBD=DXBD+CCPAMV(K)*(SINLP(K)+PECC*DSIN(POMG))</span></div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>     DXBD=DXBD+CCPAMV(K)*(SINLP(K)+PECC*sin(POMG));</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> </div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>       <span class="comment">//DYBD=DYBD-CCPAMV(K)*(COSLP(K)+PECC*DCOS(POMG))</span></div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>     DYBD=DYBD-CCPAMV(K)*(COSLP(K)+PECC*cos(POMG));</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> </div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>       <span class="comment">//DZBD=DZBD-CCPAMV(K)*SORBEL(K+13)*DCOS(PLON-SORBEL(K+5))</span></div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>     DZBD=DZBD-CCPAMV(K)*SORBEL(K+13)*cos(PLON-SORBEL(K+5));</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span> </div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> <span class="comment">//  600 CONTINUE</span></div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>     }</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>     </div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>   <span class="comment">//DCOSEP=DCOS(DEPS)</span></div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>     DCOSEP=cos(DEPS);</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>   <span class="comment">//DSINEP=DSIN(DEPS)</span></div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>     DSINEP=sin(DEPS);</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>   <span class="comment">//DYAHD=DCOSEP*DYHD-DSINEP*DZHD</span></div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>     DYAHD=DCOSEP*DYHD-DSINEP*DZHD;</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>   <span class="comment">//DZAHD=DSINEP*DYHD+DCOSEP*DZHD</span></div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>     DZAHD=DSINEP*DYHD+DCOSEP*DZHD;</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>   <span class="comment">//DYABD=DCOSEP*DYBD-DSINEP*DZBD</span></div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>     DYABD=DCOSEP*DYBD-DSINEP*DZBD;</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>   <span class="comment">//DZABD=DSINEP*DYBD+DCOSEP*DZBD</span></div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>     DZABD=DSINEP*DYBD+DCOSEP*DZBD;</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> </div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>   <span class="comment">//DVELH(1)=DXHD</span></div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>     DVELH[1]=DXHD;</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>   <span class="comment">//DVELH(2)=DYAHD</span></div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>     DVELH[2]=DYAHD;</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>   <span class="comment">//DVELH(3)=DZAHD</span></div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>     DVELH[3]=DZAHD;</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> </div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>   <span class="comment">//DVELB(1)=DXBD</span></div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>     DVELB[1]=DXBD;</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>   <span class="comment">//DVELB(2)=DYABD</span></div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>     DVELB[2]=DYABD;</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>   <span class="comment">//DVELB(3)=DZABD</span></div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>     DVELB[3]=DZABD;</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>   <span class="comment">//DO 800 N=1,3</span></div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>     <span class="keywordflow">for</span> (N = 1; N <= 3; N++) {</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>       <span class="comment">//DVELH(N)=DVELH(N)*1.4959787D8</span></div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>     DVELH[N]=DVELH[N]*1.4959787E8;</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>       <span class="comment">//DVELB(N)=DVELB(N)*1.4959787D8</span></div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>     DVELB[N]=DVELB[N]*1.4959787E8;</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span> <span class="comment">//    800 CONTINUE</span></div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>     }</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span> <span class="comment">//      RETURN</span></div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span> }</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span> </div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> </div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01169"></a><span class="lineno"><a class="code" href="group__uves__baryvel.html#gaa1c25713efeab659789f821699975217"> 1169</a></span> <a class="code" href="group__uves__baryvel.html#gaa1c25713efeab659789f821699975217" title="convert degrees -> degrees, minutes, seconds">deg2dms</a>(<span class="keywordtype">double</span> in_val, </div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>     <span class="keywordtype">double</span> *degs,</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>     <span class="keywordtype">double</span> *minutes,</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>     <span class="keywordtype">double</span> *seconds)</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span> {</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>     <a class="code" href="group__uves__baryvel.html#gaaaf92abe334c82d9d71517236508ff3f" title="convert hours -> degrees, minutes, seconds">deg2hms</a>(in_val*15, degs, minutes, seconds);</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> }</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> </div>
-<div class="line"><a name="l01180"></a><span class="lineno"><a class="code" href="group__uves__baryvel.html#ga03b8f8e3c131a0e32e71c41770ff4f24"> 1180</a></span> <span class="preprocessor">#define MIDAS_BUG 0</span></div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span> <span class="preprocessor"></span><span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> </div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01192"></a><span class="lineno"><a class="code" href="group__uves__baryvel.html#gaaaf92abe334c82d9d71517236508ff3f"> 1192</a></span> <a class="code" href="group__uves__baryvel.html#gaaaf92abe334c82d9d71517236508ff3f" title="convert hours -> degrees, minutes, seconds">deg2hms</a>(<span class="keywordtype">double</span> in_val, </div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>     <span class="keywordtype">double</span> *hours,</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>     <span class="keywordtype">double</span> *minutes,</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>     <span class="keywordtype">double</span> *seconds)</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> {</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span> <span class="comment">//    define/parameter p1 ? num "Enter value in deg units"</span></div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> <span class="comment">//    define/local in_val/d/1/1 {p1}</span></div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> <span class="comment">//define/local out_val/c/1/80 " " all</span></div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> <span class="comment">//define/local hours/i/1/1 0</span></div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> <span class="comment">//define/local minutes/i/1/1 0</span></div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> <span class="comment">//define/local seconds/d/1/1 0</span></div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> </div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> <span class="comment">//define/local tmp/d/1/1 0</span></div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>     <span class="keywordtype">double</span> tmp;</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> <span class="comment">//define/local hold/c/1/80 " " all</span></div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> <span class="comment">//define/local sign/c/1/1 " "</span></div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> </div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>     <span class="keywordtype">char</span> sign;</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> </div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> <span class="comment">//hold = "{in_val}"</span></div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> <span class="comment">//if m$index(hold,"-") .gt. 0 then</span></div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> <span class="comment">//   in_val = m$abs(in_val)</span></div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> <span class="comment">//   sign = "-"</span></div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> <span class="comment">//else</span></div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> <span class="comment">//   sign = "+"</span></div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span> <span class="comment">//endif      </span></div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>     <span class="keywordflow">if</span> (in_val < 0) {</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>     in_val = fabs(in_val);</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>     sign = <span class="charliteral">'-'</span>;</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>     }</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>     sign = <span class="charliteral">'+'</span>;</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>     }</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> </div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span> <span class="comment">//set/format i1</span></div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span> <span class="comment"></span><span class="comment">//  tmp   = in_val / 15</span></div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>     tmp   = in_val / 15;</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span> </div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> <span class="comment">//  hours = tmp           !takes the integer part = hours</span></div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span> <span class="preprocessor">#if MIDAS_BUG</span></div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span> <span class="preprocessor"></span>    *hours= uves_round_double(tmp);</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span> <span class="preprocessor"></span>    *hours= (int) tmp;</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span> <span class="comment">//  tmp   = tmp - hours   !takes the mantissa </span></div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>     tmp   = tmp - *hours;</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> <span class="comment">//  tmp   = tmp * 60      !converts the mantissa in minutes</span></div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>     tmp   = tmp * 60;</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> </div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span> <span class="comment">//  minutes = tmp         !takes the integer part = minutes</span></div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span> <span class="preprocessor">#if MIDAS_BUG</span></div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span> <span class="preprocessor"></span>    *minutes= uves_round_double(tmp);</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> <span class="preprocessor"></span>    *minutes= (int) tmp;</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span> <span class="comment">//  tmp   = tmp - minutes !takes the mantissa</span></div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>     tmp   = tmp - *minutes;</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span> </div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> <span class="comment">//  seconds = tmp * 60      !converts the mantissa in seconds = seconds (with decimal)</span></div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>     *seconds= tmp * 60;</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> </div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span> <span class="comment">//out_val = "{sign}{hours},{minutes},{seconds}"</span></div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> </div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>     <span class="comment">/* Rather than returning it explicitly, just  attach sign to hours */</span></div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>     <span class="keywordflow">if</span> (sign == <span class="charliteral">'-'</span>) *hours = -(*hours);</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span> </div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span> }</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span> </div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span> <span class="preprocessor">#if 0   </span><span class="comment">/* Not used / needed.</span></div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span> <span class="comment">       We simply get the julian date from the input FITS header */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> <span class="comment">//      SUBROUTINE JULDAT(INDATE,UTR,JD)</span></div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> <span class="comment">//C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</span></div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> <span class="comment">//C.IDENTIFICATION</span></div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> <span class="comment">//C  FORTRAN subroutine                    JULDAT     version 1.0       870102</span></div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> <span class="comment">//C  original coding:                      D. Gillet        ESO - Garching</span></div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span> <span class="comment">//C  variables renamed and restructured:   D. Baade         ST-ECF, Garching</span></div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span> <span class="comment">//C.KEYWORDS</span></div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> <span class="comment">//C  geocentric Julian date</span></div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> <span class="comment">//C.PURPOSE</span></div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> <span class="comment">//C  calculate geocentric Julian date for any civil date (time in UT)</span></div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span> <span class="comment">//C.ALGORITHM</span></div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> <span class="comment">//C adapted from MEEUS J.,1980, ASTRONOMICAL FORMULAE FOR CALCULATORS</span></div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span> <span class="comment">//C.INPUT/OUTPUT</span></div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span> <span class="comment">//C the following are passed from and to the calling program:</span></div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span> <span class="comment">//C  INDATE(3)    :         civil date as year,month,day OR year.fraction</span></div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span> <span class="comment">//C  UT           :         universal time expressed in real hours</span></div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span> <span class="comment">//C  JD           :         real geocentric Julian date</span></div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> <span class="comment">//C.REVISIONS</span></div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> <span class="comment">//C made to accept also REAL dates         D. Baade             910408</span></div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span> <span class="comment">//C-------------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span> </div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span> juldat(<span class="keywordtype">double</span> *INDATE,</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>        <span class="keywordtype">double</span> UTR,</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>        <span class="keywordtype">double</span> *JD)</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span> {</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span> <span class="comment">//      DOUBLE PRECISION YP,P,C,A,UT</span></div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>     <span class="keywordtype">double</span> UT;</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span> </div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span> <span class="comment">//      DOUBLE PRECISION UTR,JD</span></div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span> <span class="comment">//      INTEGER  STAT,IA,IB,IC,ND,DATE(3)</span></div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>     <span class="keywordtype">int</span> DATE[4];</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span> <span class="comment">//      REAL    INDATE(3),FRAC</span></div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span> <span class="comment">//C</span></div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span> </div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span> <span class="comment">//  UT=UTR / 24.0D0</span></div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>     UT=UTR / 24.0;</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span> </div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span> <span class="comment">// CHECK FORMAT OF DATE: may be either year,month,date OR year.fraction,0,0 </span></div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span> <span class="comment">// (Note that the fraction of the year must NOT include fractions of a day.)</span></div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span> <span class="comment">// For all other formats exit and terminate also calling command sequence.</span></div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span> <span class="comment">//</span></div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span> <span class="comment">//      IF ((INDATE(1)-INT(INDATE(1))).GT.1.0E-6) THEN </span></div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span> <span class="comment">//         IF ((INDATE(2).GT.1.0E-6).OR.(INDATE(3).GT.1.0E-6)) </span></div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span> <span class="comment">//     +       CALL   STETER(1,'Error: Date was entered in wrong format.')</span></div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span> </div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span> <span class="comment">// copy date input buffer copy to other buffer so that calling program </span></div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span> <span class="comment">// does not notice any changes</span></div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span> </div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span> <span class="comment">// FIRST CASE: format was year.fraction</span></div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span> </div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span> <span class="comment">//         DATE(1)=INT(INDATE(1))</span></div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span> <span class="comment">//         FRAC=INDATE(1)-DATE(1)</span></div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span> <span class="comment">//         DATE(2)=1</span></div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span> <span class="comment">//         DATE(3)=1</span></div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span> <span class="comment">//      ELSE</span></div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span> <span class="comment">//</span></div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span> <span class="comment">// SECOND CASE: format was year,month,day</span></div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span> <span class="comment">//</span></div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span> </div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span> <span class="comment">//       DATE(1)=NINT(INDATE(1))</span></div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>     DATE[1]=uves_round_double(INDATE[1]);</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span> </div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>     <span class="comment">//FRAC=0</span></div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>     FRAC = 0;</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span> </div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>   <span class="comment">//DATE(2)=NINT(INDATE(2))</span></div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>     DATE[2]=uves_round_double(INDATE[2]);</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>   <span class="comment">//DATE(3)=NINT(INDATE(3))</span></div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>     DATE[3]=uves_round_double(INDATE[3]);</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> </div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>   <span class="comment">//IF ((DATE(2).EQ.0).AND.(DATE(3).EQ.0)) THEN</span></div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>     <span class="keywordflow">if</span> ((DATE[2] == 0) &&  (DATE[3] == 0)) {</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>        <span class="comment">//DATE(2)=1</span></div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>     DATE[2]=1;</div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>        <span class="comment">//DATE(3)=1</span></div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>     DATE[3]=1;</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span> <span class="comment">//    ENDIF</span></div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>     }</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> </div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span> <span class="comment">//         IF ((DATE(2).LT.1).OR.(DATE(2).GT.12))</span></div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span> <span class="comment">//     +   CALL STETER(1,'Error: such a month does not exist')</span></div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span> <span class="comment">//         IF ((DATE(3).LT.1).OR.(DATE(3).GT.31))</span></div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span> <span class="comment">//     +   CALL STETER(1,'Error: such a day does not exist')</span></div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span> <span class="comment">//      ENDIF</span></div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span> </div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span> <span class="comment">// from here on, the normal procedure applies which is based on the </span></div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span> <span class="comment">// format year,month,day:</span></div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span> </div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>     <span class="comment">//IF (DATE(2) .GT. 2) THEN</span></div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>     <span class="keywordflow">if</span> (DATE[2] > 2) {</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>       <span class="comment">//YP=DATE(1)</span></div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>     YP=DATE[1];</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>       <span class="comment">//P=DATE[2]</span></div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>     P=DATE[2];</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> <span class="comment">//    ELSE</span></div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>       <span class="comment">//YP=DATE(1)-1</span></div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>     YP=DATE[1]-1;</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>       <span class="comment">//P=DATE(2)+12.0</span></div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>     P=DATE(2)+12.0;</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span> <span class="comment">//      ENDIF</span></div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>     }</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span> </div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span> <span class="comment">//  C = DATE(1) + DATE(2)*1.D-2 + DATE(3)*1.D-4 + UT*1.D-6</span></div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>     C = DATE[1] + DATE[2]*1.E-2 + DATE[3]*1.E-4 + UT*1.E-6;</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span> </div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span> <span class="comment">//  IF (C .GE. 1582.1015D0) THEN</span></div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>     <span class="keywordflow">if</span> (C  >   1582.1015E0) {</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>       <span class="comment">//IA=IDINT(YP/100.D0)</span></div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>     IA=(int) (YP/100.D0);</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>       <span class="comment">//A=DBLE(IA)</span></div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>     A=IA;</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>       <span class="comment">//IB=2-IA+IDINT(A/4.D0)</span></div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>     IB=2-IA+((int)(A/4.D0));</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>       <span class="comment">//ELSE</span></div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>       <span class="comment">//IB=0</span></div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>     IB=0;</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>       <span class="comment">//ENDIF</span></div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>     }</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> </div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span> <span class="comment">//      JD = DINT(365.25D0*YP) + DINT(30.6001D0*(P+1.D0)) + DATE(3) + UT</span></div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span> <span class="comment">//     *        + DBLE(IB) + 1720994.5D0</span></div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>     *JD = ((int) (365.25E0*YP)) + ((<span class="keywordtype">int</span>)(30.6001D0*(P+1.D0))) + DATE[3] + UT</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>             + IB + 1720994.5E0;</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span> </div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> <span class="comment">// finally, take into account fraction of year (if any), respect leap</span></div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> <span class="comment">// year conventions</span></div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span> <span class="comment">//</span></div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> <span class="comment">//  IF (FRAC.GT.1.0E-6) THEN</span></div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>     <span class="keywordflow">if</span> (FRAC > 1.0E-6) {</div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>       <span class="comment">//ND=365</span></div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>     ND=365;</div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> </div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>       <span class="comment">//IF (C.GE.1582.1015D0) THEN</span></div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>     IF (C >= 1582.1015E0) {</div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>           <span class="comment">//IC = MOD(DATE(1),4)</span></div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>         IC = DATE[1] % 4;</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>           <span class="comment">//IF (IC.EQ.0) THEN</span></div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>         <span class="keywordflow">if</span> (IC == 0) {</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>           <span class="comment">//ND=366</span></div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>         ND=366;</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>           <span class="comment">//IC = MOD(DATE(1),100)</span></div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>         IC = DATE[1] % 100;</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>           <span class="comment">//IF (IC.EQ.0) THEN</span></div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>         <span class="keywordflow">if</span> (IC == 0) {</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>           <span class="comment">//IC = MOD(DATE(1),400)</span></div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>             IC = DATE[1] % 400;</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>           <span class="comment">//IF (IC.NE.0) ND=365</span></div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>             <span class="keywordflow">if</span> (IC != 0) ND=365;</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>           <span class="comment">//ENDIF</span></div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>         }</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>         <span class="comment">//ENDIF</span></div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>         }</div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>         <span class="comment">//ENDIF</span></div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>     }</div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> </div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>       <span class="comment">//IF ( ABS(FRAC*ND-NINT(FRAC*ND)).GT.0.3) THEN</span></div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>     <span class="keywordflow">if</span> (fabs(FRAC*ND-uves_round_double(FRAC*ND)) > 0.3) {</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="comment">//            CALL STTPUT</span></div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="comment">//     +      ('Warning: Fraction of year MAY not correspond to ',STAT)</span></div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> <span class="comment">//            CALL STTPUT('         integer number of days.',STAT)</span></div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Fraction of year MAY not correspond to "</span></div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>                  <span class="stringliteral">"integer number of days"</span>);</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> <span class="comment">//         ENDIF</span></div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>     }</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span> </div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span> <span class="comment">//      JD = JD+NINT(FRAC*ND)</span></div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>     *JD = *JD+uves_round_double(FRAC*ND);</div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span> <span class="comment">//      ENDIF</span></div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>     }</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span> </div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span> <span class="comment">//      RETURN</span></div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span> }</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__baryvel_8h_source.html b/html/uves__baryvel_8h_source.html
deleted file mode 100644
index e5877ed..0000000
--- a/html/uves__baryvel_8h_source.html
+++ /dev/null
@@ -1,115 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_baryvel.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_baryvel.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.3  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.2  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.1  2006/10/04 11:03:08  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Implemented QC.VRAD parameters</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#ifndef UVES_BARYVEL_H</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_BARYVEL_H</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <a class="code" href="group__uves__baryvel.html#ga7ab5f73d3e1aad2933cbcf66dff04aa3" title="Compute velocity correction.">uves_baryvel</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>          <span class="keywordtype">double</span> *barycor,</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>          <span class="keywordtype">double</span> *helicor);</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#endif  </span><span class="comment">/* UVES_BARYVEL_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__cal__cd__align_8c_source.html b/html/uves__cal__cd__align_8c_source.html
deleted file mode 100644
index 7224703..0000000
--- a/html/uves__cal__cd__align_8c_source.html
+++ /dev/null
@@ -1,142 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_cal_cd_align.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_cal_cd_align.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.2 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.1  2007/02/08 11:38:27  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Added cd_align recipe</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.7  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> {</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     {</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"I am uves_cal_cd_align version %d, but I am linking "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     }</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     <span class="keywordflow">return</span> uves_cal_cd_align_get_info(list);</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__cal__mkmaster_8c_source.html b/html/uves__cal__mkmaster_8c_source.html
deleted file mode 100644
index 41d057b..0000000
--- a/html/uves__cal__mkmaster_8c_source.html
+++ /dev/null
@@ -1,142 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_cal_mkmaster.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_cal_mkmaster.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.2 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.1  2007/02/09 09:51:54  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Added recipes</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.7  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> {</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     {</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"I am uves_cal_mkmaster version %d, but I am linking "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     }</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     <span class="keywordflow">return</span> uves_cal_mkmaster_get_info(list);</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__cal__mkmaster__impl_8c_source.html b/html/uves__cal__mkmaster__impl_8c_source.html
deleted file mode 100644
index ed47bc2..0000000
--- a/html/uves__cal__mkmaster__impl_8c_source.html
+++ /dev/null
@@ -1,374 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_cal_mkmaster_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_cal_mkmaster_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-12-16 16:57:23 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.11 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.10  2010/09/24 09:32:02  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.8  2010/06/11 11:39:14  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * added bias (stack) and qcdark parameters in input params</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.7  2008/03/28 08:53:36  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * IRPLIB_CONCAT2X-->UVES_CONCAT2X</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.6  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.5  2007/06/11 13:28:26  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Changed recipe contact address to cpl at eso.org</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.4  2007/06/08 13:06:16  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Send bug reports to Andrea</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.3  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.2  2007/05/14 08:09:48  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * updated input frames and tag description in recipe man page</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.1  2007/02/09 13:34:25  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added mkmaster+spatred recipes</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.37  2006/12/08 07:41:43  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Minor doc. change</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.36  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.34  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Revision 1.33  2006/11/15 08:57:32  amodigli</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * clearer message on slit FF encoder positions</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.32  2006/11/13 12:45:32  jmlarsen</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * Count SFLAT sets from 1 rather than 0</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Revision 1.31  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Revision 1.30  2006/11/03 14:57:44  jmlarsen</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Changed message</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Revision 1.29  2006/10/17 12:33:02  jmlarsen</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * Added semicolon at UVES_RECIPE_DEFINE invocation</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Revision 1.28  2006/10/09 13:01:13  jmlarsen</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> * Use macro to define recipe interface functions</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Revision 1.27  2006/09/27 13:20:51  jmlarsen</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> * Factored out flat reduction</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Revision 1.26  2006/09/19 14:31:20  jmlarsen</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * uves_insert_frame(): use bitmap to specify which image statistics keywords must be computed</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Revision 1.25  2006/09/19 06:55:58  jmlarsen</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * Changed interface of uves_frameset to optionally write image statistics kewwords</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Revision 1.24  2006/09/14 08:46:51  jmlarsen</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * Added support for TFLAT, SCREEN_FLAT frames</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.23  2006/08/24 11:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Revision 1.22  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Revision 1.21  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Revision 1.20  2006/07/14 12:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> * Support multiple QC tests per product</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Revision 1.19  2006/07/03 13:09:24  amodigli</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * adjusted description display layout</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Revision 1.18  2006/07/03 13:02:18  jmlarsen</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> * Threshold to zero after bias subtraction</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Revision 1.17  2006/06/16 08:25:45  jmlarsen</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> * Manually propagate ESO.DET. keywords from 1st/2nd input header</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Revision 1.16  2006/06/13 11:57:02  jmlarsen</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> * Check that calibration frames are from the same chip ID</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Revision 1.15  2006/06/01 14:21:27  amodigli</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * frm --> frm_tmp, dup --> frm_dup</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Revision 1.14  2006/06/01 12:02:56  jmlarsen</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Return proper error_code in the function uves_mflat</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Revision 1.13  2006/05/22 10:01:04  amodigli</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * fixed some bug in msflat generation</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Revision 1.12  2006/05/22 06:47:15  amodigli</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * fixed some bugs on msflat</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Revision 1.10  2006/05/19 13:07:52  amodigli</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * modified to support SFLATs</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Revision 1.9  2006/05/17 09:58:25  amodigli</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> * fixed warning</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Revision 1.8  2006/05/17 09:56:36  amodigli</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * fixed syntax bug</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Revision 1.7  2006/05/17 09:54:55  amodigli</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * added supposr SFLATs</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Revision 1.6  2006/05/09 07:42:18  amodigli</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * added QC-LOG</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Revision 1.5  2006/04/06 12:57:43  jmlarsen</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Added support for IFLAT, DFLAT -> MASTER_IFLAT, MASTER_DFLAT frames</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Revision 1.4  2006/04/06 09:48:15  amodigli</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> * changed uves_frameset_insert interface to have QC log</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Revision 1.3  2006/04/06 08:37:48  jmlarsen</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * Support reading MASTER_PDARK</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Revision 1.2  2006/03/24 14:15:18  jmlarsen</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Save intermediate result to disk</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Revision 1.39  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Revision 1.38  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor">#include <uves_reduce_mflat.h></span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor">#include <uves_mbias_impl.h></span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="preprocessor">#include <uves_mdark_impl.h></span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="keyword">static</span> <span class="keywordtype">int</span> uves_cal_mkmaster_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="preprocessor">#define cpl_plugin_get_info uves_cal_mkmaster_get_info</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     UVES_MKMASTER_ID, UVES_MKMASTER_DOM, uves_cal_mkmaster_define_parameters,</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <span class="stringliteral">"Jonas M. Larsen"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <span class="stringliteral">"Creates the master bias/dark/flat frame"</span>,</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="stringliteral">"This recipe calls "</span> make_str(UVES_MBIAS_ID) <span class="stringliteral">" if any raw BIAS frame is provided\n"</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     <span class="stringliteral">"otherwise "</span> make_str(UVES_MDARK_ID) <span class="stringliteral">" if any raw DARK frame is provided, otherwise\n"</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     <span class="stringliteral">"it calls "</span> make_str(UVES_MFLAT_ID) <span class="stringliteral">" Pls refer to those recipes for more details\n"</span>);</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment">                              Functions code</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment">  -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> uves_cal_mkmaster_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> {</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>    <span class="keywordtype">int</span> result=0;</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>    <span class="keywordflow">if</span> (uves_master_stack_define_parameters(parameters,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                                            make_str(UVES_MKMASTER_ID))</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>         != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>    {</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>       <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>    }</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_qcdark_define_parameters_body(parameters,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                                             make_str(UVES_MKMASTER_ID)));</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>    result=<a class="code" href="group__uves__reduce__mflat.html#ga7d38d6807a0067cc5e8dd44a44ebaa07" title="Setup the recipe options.">uves_mflat_define_parameters_body</a>(parameters, </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>                          make_str(UVES_MKMASTER_ID));</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>   cleanup:</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <span class="comment">/* Warning: If parameters are added to mbias/mdark recipes, they need to</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment">       be propagated to here. Now, just copy the parameters from mflat */</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> }</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> </div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> UVES_CONCAT2X(UVES_MKMASTER_ID,exe)(cpl_frameset *frames, </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                    <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> {</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     <span class="keywordtype">int</span> blue;</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     <span class="keywordtype">bool</span> found_bias = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     <span class="keywordtype">bool</span> found_dark = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     <span class="keywordtype">bool</span> found_flat = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     assure( frames != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null frameset given!"</span>);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     <span class="keywordflow">for</span> (blue = 0; blue <= 1; blue++)</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     {</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>         found_bias = found_bias || cpl_frameset_find(frames, UVES_BIAS(blue));</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>         found_dark = found_dark || cpl_frameset_find(frames, UVES_DARK(blue));</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>         found_dark = found_dark || cpl_frameset_find(frames, UVES_PDARK(blue));</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>         found_flat = found_flat || cpl_frameset_find(frames, UVES_FLAT(blue));</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>         found_flat = found_flat || cpl_frameset_find(frames, UVES_IFLAT(blue));</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>         found_flat = found_flat || cpl_frameset_find(frames, UVES_DFLAT(blue));</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>         found_flat = found_flat || cpl_frameset_find(frames, UVES_SFLAT(blue));</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>         found_flat = found_flat || cpl_frameset_find(frames, UVES_TFLAT(blue));</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         found_flat = found_flat || cpl_frameset_find(frames, UVES_SCREEN_FLAT(blue));</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     }</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     <span class="keywordflow">if</span> (found_bias)</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     {</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Bias frame(s) provided"</span>);</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     }</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     <span class="keywordflow">if</span> (found_dark)</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     {</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Dark frame(s) provided"</span>);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     }</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <span class="keywordflow">if</span> (found_flat)</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     {</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Flat frame(s) provided"</span>);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     }</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     assure( found_bias || found_dark || found_flat,</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>         CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>         <span class="stringliteral">"Missing raw bias, dark or flat-field frames"</span>);</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="keywordflow">if</span> (found_bias && found_dark)</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     {</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Both bias and dark frames provided. Creating only master bias"</span>);</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     }</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (found_bias && found_flat)</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     {</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Both bias and flat frames provided. Creating only master bias"</span>);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     }</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (found_dark && found_flat)</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     {</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Both dark and flat frames provided. Creating only master dark"</span>);</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     }</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     <span class="keywordflow">if</span> (found_bias)</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     {</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>         uves_mbias_exe_body(frames, parameters, starttime, make_str(UVES_MKMASTER_ID));</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     }</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (found_dark)</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     {</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>         uves_mdark_exe_body(frames, parameters, starttime, make_str(UVES_MKMASTER_ID));</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     }</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (found_flat)</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     {</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>         <a class="code" href="group__uves__reduce__mflat.html#ga1bae4e786a7fc24b0061ae293112f5ae" title="Get the command line options and execute the data reduction.">uves_mflat_exe_body</a>(frames, parameters, starttime, make_str(UVES_MKMASTER_ID));</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     }</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     {</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>         <span class="comment">/* Impossible */</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <span class="keyword">false</span>, <span class="stringliteral">"%d %d %d"</span>, found_bias, found_dark, found_flat);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     }</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>   cleanup:</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> }</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__cd__align-test_8c_source.html b/html/uves__cd__align-test_8c_source.html
deleted file mode 100644
index 2c9e2e3..0000000
--- a/html/uves__cd__align-test_8c_source.html
+++ /dev/null
@@ -1,267 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_cd_align-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_cd_align-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:14 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.6 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.5  2013/07/02 12:42:30  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Rename DEBUG to debug_mode to remove compiler error on some platforms (that name is reserved to special compiler options)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.4  2009/06/05 05:49:02  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * updated init/end to cpl5</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.3  2007/08/30 07:56:05  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * fixed some doxygen warnings</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.2  2007/05/23 06:43:23  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.1  2007/03/15 12:27:18  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Moved unit tests to ./uves/tests and ./flames/tests</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2007/02/27 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Move unit test infrastructure to IRPLIB</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2007/02/08 11:38:56  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added cd_align recipe</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.5  2007/01/31 15:11:09  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Test of inf+nan when saving FITS files</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <uves_cd_align_impl.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> </div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="group__uves__dfs.html#gaf312209df39d763b6975f2682529a4e8">   93</a></span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__dfs.html#gaf312209df39d763b6975f2682529a4e8" title="evaluate Gaussian">eval_gauss</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> my, <span class="keywordtype">double</span> sigma, [...]
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> {</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="keywordtype">double</span> result;</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     <span class="keywordtype">double</span> a[5];</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     <span class="keywordtype">double</span> xa[1];</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>     xa[0] = x;</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     a[0] = my;</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     a[1] = sigma;</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     a[2] = norm;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     a[3] = back;</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     a[4] = 0.01;  <span class="comment">/* linear background term */</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     <span class="comment">/* Use moffat, to have something that is not perfectly Gaussian  */</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     assure( <a class="code" href="group__uves__utils.html#ga32f63d655b7a15cb65c59f6ed9153a69" title="Evaluate a Moffat.">uves_moffat</a>(xa, a, &result) == 0,</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>         CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>         <span class="stringliteral">"Moffat evalutation failed"</span>);</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>   cleanup:</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> }</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno"><a class="code" href="group__uves__dfs.html#gaf03bdc8665be4a9b822ad51cc627a781">  123</a></span> <a class="code" href="group__uves__dfs.html#gaf03bdc8665be4a9b822ad51cc627a781" title="test core processing part of CD align recipe">test_process</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> {</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> nx = 100;</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> ny = 100;</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> maxrow = 61.1;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> sigma = 2;</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> norm = 6000;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> background = 200;</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     cpl_image *im[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     cpl_table *cd_align = NULL;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     <span class="keywordtype">double</span> shift;</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     <span class="comment">/* Create data */</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     im[0] = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     im[1] = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( im[0] );</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( im[1] );</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     <span class="keywordflow">for</span> (shift = -20; shift < 5; shift = (shift < -5) ? shift/1.5 : shift + 0.7)</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     {</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>         <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>         <span class="keywordflow">for</span> (y = 1; y <= ny; y++)</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>         {</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>             <span class="keywordflow">for</span> (x = 1; x <= nx; x++)</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>             {</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                 cpl_image_set(im[0], x, y,</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>                       <a class="code" href="group__uves__dfs.html#gaf312209df39d763b6975f2682529a4e8" title="evaluate Gaussian">eval_gauss</a>(y, maxrow, sigma, norm, background));</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>                 cpl_image_set(im[1], x, y,</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>                       <a class="code" href="group__uves__dfs.html#gaf312209df39d763b6975f2682529a4e8" title="evaluate Gaussian">eval_gauss</a>(y, maxrow+shift, sigma, norm, background));</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>             }</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>         }</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>         </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>         <span class="comment">/* Call function */</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>         {</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>         <span class="keywordtype">int</span> steps = 10;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>         <span class="keywordtype">int</span> xborder = 0;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>         <span class="keywordtype">int</span> window = 20;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>         </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>         <span class="keywordtype">bool</span> debug_mode = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>         <span class="keyword">enum</span> uves_chip chip = UVES_CHIP_BLUE;   <span class="comment">/* not used */</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>         </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>         uves_free_table(&cd_align);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cd_align = uves_cd_align_process(</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>                im[0],</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>                im[1],</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>                NULL, NULL,</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>                steps, xborder, window, debug_mode, chip),</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>                <span class="stringliteral">"Processing failed"</span>);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>         }</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>         <span class="comment">/* Check results */</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>         <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( cpl_table_has_column(cd_align, <span class="stringliteral">"X"</span>    ), CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>         <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( cpl_table_has_column(cd_align, <span class="stringliteral">"YCEN1"</span>), CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>         <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( cpl_table_has_column(cd_align, <span class="stringliteral">"YCEN2"</span>), CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>         <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( cpl_table_has_column(cd_align, <span class="stringliteral">"SIGMA1"</span>), CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>         <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( cpl_table_has_column(cd_align, <span class="stringliteral">"SIGMA2"</span>), CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>         <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( cpl_table_has_column(cd_align, <span class="stringliteral">"BACK1"</span>), CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>         <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( cpl_table_has_column(cd_align, <span class="stringliteral">"BACK2"</span>), CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>         <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( cpl_table_has_column(cd_align, <span class="stringliteral">"NORM1"</span>), CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>         <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( cpl_table_has_column(cd_align, <span class="stringliteral">"NORM2"</span>), CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>         <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( cpl_table_has_column(cd_align, <span class="stringliteral">"YDIFF"</span>), CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>         </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Shift: %f pixels. Measured shift: %f pixels"</span>,</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>              shift, cpl_table_get_column_mean(cd_align, <span class="stringliteral">"YDIFF"</span>));</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>         {</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>         <span class="keywordtype">double</span> abs_tolerance = 0.1; <span class="comment">/* pixels */</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>                 cpl_test_rel(cpl_table_get_column_mean(cd_align, <span class="stringliteral">"YDIFF"</span>), </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>                                 shift, abs_tolerance);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>         }</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     } <span class="comment">/* for shift */</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> </div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>   cleanup:</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     uves_free_image(&im[0]);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     uves_free_image(&im[1]);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     uves_free_table(&cd_align);</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> }</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno"><a class="code" href="group__uves__dfs.html#ga840291bc02cba5474a4cb46a9b9566fe">  214</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> {</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     <span class="comment">/* Initialize CPL + UVES messaging */</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__dfs.html#gaf03bdc8665be4a9b822ad51cc627a781" title="test core processing part of CD align recipe">test_process</a>(),</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>        <span class="stringliteral">"Test of CD align failed"</span>);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>   cleanup:</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> }</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__cd__align__impl_8c_source.html b/html/uves__cd__align__impl_8c_source.html
deleted file mode 100644
index d2f33bb..0000000
--- a/html/uves__cd__align__impl_8c_source.html
+++ /dev/null
@@ -1,635 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_cd_align_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_cd_align_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.19 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.18  2013/07/01 15:36:08  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Rename DEBUG to debug_mode to remove compiler error on some platforms (that name is reserved to special compiler options)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.17  2012/03/02 16:23:45  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * fixed compiler warnings related to CPL6 upgrade</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.16  2011/12/08 13:59:05  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Fox warnings with CPL6</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.15  2010/09/24 09:32:02  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.13  2008/02/15 12:43:49  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * allow lower/upper chip for parameter process_chip</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.12  2007/10/05 16:01:44  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * using proces_chip parameter to process or not a given RED chip</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.11  2007/06/22 09:28:24  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Changed interface of uves_save_image</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.10  2007/06/11 13:28:26  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Changed recipe contact address to cpl at eso.org</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.9  2007/06/08 13:06:16  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Send bug reports to Andrea</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.8  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.7  2007/05/22 11:29:53  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Changed text</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.6  2007/05/14 08:09:48  amodigli</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * updated input frames and tag description in recipe man page</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.5  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.4  2007/03/05 10:14:56  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Support slope parameter in 1d fitting</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.3  2007/02/16 10:36:15  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Renamed variable y0->y_0</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.2  2007/02/09 13:36:32  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Use defines for recipe id</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.1  2007/02/08 11:38:37  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Added cd_align recipe</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.31  2007/01/10 12:37:39  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Removed obsolete comments</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor">#include <uves_cd_align_impl.h></span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#include <uves_plot.h></span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> uves_cal_cd_align_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="preprocessor">#define cpl_plugin_get_info uves_cal_cd_align_get_info</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     UVES_CD_ALIGN_ID, UVES_CD_ALIGN_DOM, uves_cal_cd_align_define_parameters,</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     <span class="stringliteral">"Jonas M. Larsen"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     <span class="stringliteral">"Measures the reproducability of the cross disperser positioning"</span>,</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     <span class="stringliteral">"Given two input frames (CD_ALIGN_xxx where xxx = BLUE or RED) which contain only\n"</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     <span class="stringliteral">"one echelle order, this recipe measures the shift in the cross-dispersion \n"</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     <span class="stringliteral">"direction of that order. For RED input frames, only the lower chip is processed.\n"</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     <span class="stringliteral">"The recipe produces a CD_ALIGN_TABLE_xxxx (with xxxx = BLUE or REDL) with columns\n"</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     <span class="stringliteral">"X:         Column number\n"</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     <span class="stringliteral">"YCENi:     Centroid from Gaussian fit (for i = 1,2)\n"</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     <span class="stringliteral">"SIGMAi:    Stdev from Gaussian fit\n"</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     <span class="stringliteral">"BACKi:     Constant background from Gaussian fit\n"</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="stringliteral">"NORMi:     Normalization constant from Gaussian fit\n"</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     <span class="stringliteral">"YDIFF:     Difference YCEN2 - YCEN1 of centroid positions\n"</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="stringliteral">"and the QC-parameters ESO.QC.YDIFF(AVG|MED|RMS), which are the average,\n"</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <span class="stringliteral">"median and root-mean-square of the y-shift, respectively.\n"</span>);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> uves_cal_cd_align_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> {</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext = NULL;</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id = make_str(UVES_CD_ALIGN_ID);</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment">     *    General    *</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     <span class="keywordflow">if</span> (uves_define_global_parameters(parameters) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>         {</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>         }</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <span class="comment">/* stepsize */</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     uves_par_new_range(<span class="stringliteral">"steps"</span>,</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>                <span class="stringliteral">"Step size in pixels"</span>,</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>                100, 1, INT_MAX);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     <span class="comment">/* xborder */</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     uves_par_new_range(<span class="stringliteral">"xborder"</span>,</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>                <span class="stringliteral">"Exclude a border region of this size (pixels)"</span>,</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>                200, 0, INT_MAX);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     <span class="comment">/* window */</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     uves_par_new_range(<span class="stringliteral">"window"</span>,</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>                <span class="stringliteral">"The half window height used for Gaussian fitting"</span>,</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>                50, 1, INT_MAX);</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> }</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> cpl_table *</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> uves_cd_align_process(<span class="keyword">const</span> cpl_image *im1,</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     <span class="keyword">const</span> cpl_image *im2,</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header1,</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header2,</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     <span class="keywordtype">int</span> steps,</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <span class="keywordtype">int</span> xborder,</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <span class="keywordtype">int</span> window,</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="keywordtype">bool</span> debug_mode,</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> {</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     cpl_table *result = NULL;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     <span class="keywordtype">int</span> row = 0;             <span class="comment">/* number of table rows used */</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     <span class="keyword">const</span> cpl_image *images[2];</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     cpl_image *rows = NULL;</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     cpl_size max_row[2];          <span class="comment">/* image row with max flux */</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     <span class="keywordtype">int</span> nx, ny, x;</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     cpl_size num_fits, fit_succeeded;</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     images[0] = im1;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     images[1] = im2;    </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     nx = cpl_image_get_size_x(images[0]);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     ny = cpl_image_get_size_y(images[0]);</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     <span class="keywordflow">if</span> (debug_mode) <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"CD alignment frame"</span>, <span class="stringliteral">"cd_align1"</span>, </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                         images[0], chip, -1, -1, </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                         rotated_header1, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>               <span class="stringliteral">"Error saving 1st CD aligment frame"</span>);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="keywordflow">if</span> (debug_mode) <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"CD alignment frame"</span>, <span class="stringliteral">"cd_align2"</span>, </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                         images[1], chip, -1, -1, </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                         rotated_header2, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>               <span class="stringliteral">"Error saving 2nd CD aligment frame"</span>);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     assure( cpl_image_get_size_x(images[0]) == cpl_image_get_size_x(images[1]) &&</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>         cpl_image_get_size_y(images[0]) == cpl_image_get_size_y(images[1]),</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>         CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>         <span class="stringliteral">"Images sizes: %"</span> CPL_SIZE_FORMAT <span class="stringliteral">"x%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" and %"</span> CPL_SIZE_FORMAT <span class="stringliteral">"x%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>         cpl_image_get_size_x(images[0]),</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>         cpl_image_get_size_y(images[0]),</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>         cpl_image_get_size_x(images[1]),</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>         cpl_image_get_size_y(images[1]) );</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     result = cpl_table_new(nx); row = 0;</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     cpl_table_new_column(result, <span class="stringliteral">"X"</span>    , CPL_TYPE_INT);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     cpl_table_new_column(result, <span class="stringliteral">"YCEN1"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     cpl_table_new_column(result, <span class="stringliteral">"YCEN2"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     cpl_table_new_column(result, <span class="stringliteral">"SIGMA1"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     cpl_table_new_column(result, <span class="stringliteral">"SIGMA2"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     cpl_table_new_column(result, <span class="stringliteral">"BACK1"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     cpl_table_new_column(result, <span class="stringliteral">"BACK2"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     cpl_table_new_column(result, <span class="stringliteral">"NORM1"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     cpl_table_new_column(result, <span class="stringliteral">"NORM2"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( result );</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     <span class="comment">/* Find row of max accumulated flux (i.e. position of the order) */</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     {</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <span class="keywordtype">int</span> im;</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     <span class="keywordflow">for</span> (im = 0; im < 2; im++)</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>         {</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>         <span class="keywordtype">int</span> direction = 1; <span class="comment">/* To get image of single column */</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>         cpl_size max_col;</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>         uves_free_image(&rows);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>         rows = cpl_image_collapse_create(images[im], direction);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>         cpl_image_get_maxpos(rows, &max_col, &(max_row[im]));</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Row of max flux (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">". image) = %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>, (cpl_size)im+1, max_row[im]);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> </div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>         assure( max_col == 1, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>             <span class="stringliteral">"Something went wrong, max_col in collapsed image is = %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>, max_col);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>         }</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     }</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     num_fits = 0;         <span class="comment">/* Number of measure points */</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     fit_succeeded = 0;   <span class="comment">/* Number of successful Gauss fits */</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     <span class="keywordflow">for</span> (x = 1 + xborder; x <= nx - xborder; x += steps)</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     {</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>         <span class="keywordtype">int</span> im;</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>         <span class="keywordflow">for</span> (im = 0; im < 2; im++)</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>         {</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>             <span class="keywordtype">bool</span> horizontal = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>             <span class="keywordtype">bool</span> fix_background = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>             <span class="keywordtype">bool</span> fit_background = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>             <span class="keywordtype">int</span> number_of_parameters = 4;</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>             <span class="keywordtype">double</span> y_0, sigma, norm, background;</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>             <span class="keywordtype">int</span> ylow  = uves_max_int(1, uves_min_int(ny, max_row[im] - window));</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>             <span class="keywordtype">int</span> yhigh = uves_max_int(1, uves_min_int(ny, max_row[im] + window));</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>         </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>             uves_fit_1d_image(images[im], </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>                       NULL, NULL, <span class="comment">/* errors, bpm */</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>                       horizontal, fix_background, fit_background,</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>                       ylow, yhigh, x,</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                       &y_0, &sigma, &norm, &background, NULL, <span class="comment">/* slope */</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>                       NULL, NULL, <span class="comment">/* mse, red_chisq */</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>                       NULL,       <span class="comment">/* Covariance */</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>                       <a class="code" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c" title="Evaluate a gaussian.">uves_gauss</a>, <a class="code" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea" title="Evaluate the derivatives of a gaussian.">uves_gauss_derivative</a>, </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>                       number_of_parameters);</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>             num_fits += 1;</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>             <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_CONTINUE)</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>             {</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                 <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                 </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                 <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Fitting window (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">", %"</span> CPL_SIZE_FORMAT <span class="stringliteral">") - (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">", %"</ [...]
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>                                  (cpl_size)x, (cpl_size)ylow, </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>                                  (cpl_size)x, (cpl_size)yhigh);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>             }</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>             {</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>                 fit_succeeded += 1;</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>                 assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                     cpl_error_get_code(),</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                     <span class="stringliteral">"Gaussian fitting failed"</span>);</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                 </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>                 cpl_table_set_int   (result, <span class="stringliteral">"X"</span>    , row, x);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>                 cpl_table_set_double(result, (im == 0) ? <span class="stringliteral">"YCEN1"</span> : <span class="stringliteral">"YCEN2"</span>, row, y_0);</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                 cpl_table_set_double(result, (im == 0) ? <span class="stringliteral">"SIGMA1"</span>: <span class="stringliteral">"SIGMA2"</span>, row, sigma);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                 cpl_table_set_double(result, (im == 0) ? <span class="stringliteral">"BACK1"</span> : <span class="stringliteral">"BACK2"</span>, row, norm);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>                 cpl_table_set_double(result, (im == 0) ? <span class="stringliteral">"NORM1"</span> : <span class="stringliteral">"NORM2"</span>, row, background);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>             }</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>         }</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>         row++;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     }</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     cpl_table_set_size(result, row);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Was able to fit %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" of %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" columns"</span>, fit_succeeded, num_fits);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_duplicate_column(result, <span class="stringliteral">"YDIFF"</span>, result, <span class="stringliteral">"YCEN2"</span>),</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>         cpl_table_subtract_columns(result, <span class="stringliteral">"YDIFF"</span>, <span class="stringliteral">"YCEN1"</span>)),</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>       <span class="stringliteral">"Error calculating residuals of fit"</span>);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     {</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     cpl_size num_valid = cpl_table_get_nrow(result) - cpl_table_count_invalid(result, <span class="stringliteral">"YDIFF"</span>);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     </div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     assure( num_valid >= 1, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>         <span class="stringliteral">"Only %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" valid YDIFF value(s), 1 or more needed"</span>,</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>         num_valid);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     }</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>   cleanup:</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     uves_free_image(&rows);</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> }</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <span class="keyword">static</span> cpl_table*</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> cd_align_qclog(<span class="keyword">const</span> cpl_table *cdalign,</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>            <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> {</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     cpl_table *qclog = NULL;</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     <span class="keywordtype">double</span> mean, sigma, median;</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( qclog = <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(raw_header, chip),</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>        <span class="stringliteral">"Error during QC initialization"</span>);</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     mean   = cpl_table_get_column_mean  (cdalign, <span class="stringliteral">"YDIFF"</span>);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     sigma  = cpl_table_get_column_stdev (cdalign, <span class="stringliteral">"YDIFF"</span>);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     median = cpl_table_get_column_median(cdalign, <span class="stringliteral">"YDIFF"</span>);</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     <a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>               <span class="stringliteral">"QC TEST1 ID"</span>,</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>               <span class="stringliteral">"Test-of-CD-Alignment"</span>,</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>               <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>               <span class="stringliteral">"%s"</span>);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>               <span class="stringliteral">"QC YDIFFAVG"</span>,</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>               mean,</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>               <span class="stringliteral">"Average Y difference"</span>,</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>               <span class="stringliteral">"%8.4f"</span>);</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>   </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>               <span class="stringliteral">"QC YDIFFMED"</span>,</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>               median,</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>               <span class="stringliteral">"Median Y difference"</span>,</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>               <span class="stringliteral">"%8.4f"</span>);</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>               <span class="stringliteral">"QC YDIFFRMS"</span>,</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>               sigma,</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>               <span class="stringliteral">"RMS Y difference"</span>,</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>               <span class="stringliteral">"%8.4f"</span>);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>   </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Average shift = %.4f +- %.4f pixels"</span>,</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>          mean, sigma);</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>          </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>   cleanup:</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     <span class="keywordflow">return</span> qclog;</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> }</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> avg_flux(<span class="keyword">const</span> cpl_image *im)</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> {</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     cpl_image *median_filt = NULL;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     <span class="keywordtype">bool</span> extrapolate_border = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     </div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     <span class="comment">/* Report total flux after bias subtraction.</span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="comment">       Bias is estimated as the median value</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="comment">       </span></div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> <span class="comment">       Note that: total flux  -  nx*ny*median =</span></div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="comment">       nx*ny(mean - median)</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="comment">       </span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> <span class="comment">       so just report (mean - median)</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     <span class="comment">/* First apply a small window (3x3) median filter to</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="comment">       get a bit robust avg, but without destroying the echelle order signal</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     median_filt = cpl_image_duplicate(im);</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( median_filt );</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> </div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     <a class="code" href="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f" title="Median filter.">uves_filter_image_median</a>(&median_filt, 1, 1,</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>                  extrapolate_border);</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     result =</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>     cpl_image_get_mean  (median_filt) -</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     cpl_image_get_median(median_filt);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     </div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>   cleanup:</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     uves_free_image(&median_filt);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> }</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> uves_cal_cd_align_exe(cpl_frameset *frames, <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>          <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> {</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>     cpl_image *raw_images[2][2] = {{NULL, NULL}, {NULL, NULL}};</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     <span class="comment">/* This 2x2 array of images contain:</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> <span class="comment">       </span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> <span class="comment">       raw_images[0][0]:  First frame, REDL or BLUE chip </span></div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> <span class="comment">       raw_images[0][1]:  First frame, REDU or NULL</span></div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> <span class="comment">       raw_images[1][0]:  Second frame, REDL or BLUE chip </span></div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> <span class="comment">       raw_images[1][1]:  Second frame, REDU or NULL</span></div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <span class="comment"></span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> <span class="comment">       etc. for the following arrays</span></div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_headers[2][2]     = {{NULL, NULL}, {NULL, NULL}};</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_headers[2][2] = {{NULL, NULL}, {NULL, NULL}};</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     cpl_table* qclog[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *product_header = NULL;</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     cpl_table *cd_align = NULL;</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     <span class="comment">/* Parameters */</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     <span class="keywordtype">int</span> steps, xborder, window;</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     <span class="keywordtype">bool</span> debug_mode;</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>     <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *product_filename = NULL;</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     <span class="keywordtype">bool</span> blue;</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *raw_filename[2];</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     <span class="keywordtype">int</span> raw_index;</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> </div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"debug"</span>, </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>                   CPL_TYPE_BOOL, &debug_mode), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"process_chip"</span>, CPL_TYPE_STRING, &PROCESS_CHIP),</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, make_str(UVES_CD_ALIGN_ID), <span class="stringliteral">"steps"</span>,</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>                   CPL_TYPE_INT   , &steps), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, make_str(UVES_CD_ALIGN_ID), <span class="stringliteral">"xborder"</span>,</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>                   CPL_TYPE_INT   , &xborder), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, make_str(UVES_CD_ALIGN_ID), <span class="stringliteral">"window"</span>,</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>                   CPL_TYPE_INT   , &window), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_cd_align(frames,</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>                   &raw_filename[0], </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>                   &raw_filename[1], </div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>                   raw_images[0],</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                   raw_images[1],</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                   raw_headers[0],</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>                   raw_headers[1],</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>                   rotated_headers[0],</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>                   rotated_headers[1],</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>                   &blue), </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>        <span class="stringliteral">"Error loading raw frame"</span>);</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> </div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using %s"</span>, raw_filename[0]);</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using %s"</span>, raw_filename[1]);</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     </div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     <span class="keywordflow">if</span> (blue)</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>     {</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>         chip = UVES_CHIP_BLUE;</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     }</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>     {</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>         <span class="keywordflow">if</span> (debug_mode)</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>         {</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>             <span class="keywordtype">int</span> raw_index_l = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(UVES_CHIP_REDL);</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>             <span class="keywordtype">int</span> raw_index_u = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(UVES_CHIP_REDU);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>             </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"1. REDL average flux per pixel = %f ADU"</span>, avg_flux(raw_images[0][raw_index_l]));</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"2. REDL average flux per pixel = %f ADU"</span>, avg_flux(raw_images[1][raw_index_l]));</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>             </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"1. REDU average flux per pixel = %f ADU"</span>, avg_flux(raw_images[0][raw_index_u]));</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"2. REDU average flux per pixel = %f ADU"</span>, avg_flux(raw_images[1][raw_index_u]));</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>         }</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>         </div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>         chip = UVES_CHIP_REDL; <span class="comment">/* Process only lower red chip */</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>     }</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>     raw_index = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     </div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing %s chip"</span>,</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>          <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     </div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cd_align = uves_cd_align_process(raw_images[0][raw_index],</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>                   raw_images[1][raw_index],</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>                   rotated_headers[0][raw_index],</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>                   rotated_headers[1][raw_index],</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>                   steps,</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>                   xborder,</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>                   window,</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>                   debug_mode,</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>                   chip),</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>        <span class="stringliteral">"Error during processing"</span>);</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> </div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( qclog[0] = cd_align_qclog(cd_align,</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>                      raw_headers[0][raw_index], <span class="comment">/* of first frame */</span></div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                      chip),</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>        <span class="stringliteral">"Could not compute QC"</span>);</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     product_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>     product_filename = uves_cd_align_filename(chip);</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>                 cd_align,</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>                 CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>                 CPL_FRAME_TYPE_TABLE,</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>                 CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>                 product_filename,</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>                 UVES_CD_ALIGN_TABLE(blue),</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>                 raw_headers[0][raw_index],</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>                 product_header,</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>                 NULL,       <span class="comment">/* table header */</span></div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>                 parameters,</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>                 make_str(UVES_CD_ALIGN_ID),</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>                 PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>                 qclog, <span class="comment">/* No QC */</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>                 starttime, <span class="keyword">true</span>,</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>                 0),</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>        <span class="stringliteral">"Could not add CD align table %s to frameset"</span>, product_filename);</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> </div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"CD align table %s (%s) added to frameset"</span>,</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>          product_filename, UVES_CD_ALIGN_TABLE(blue));</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>   cleanup:</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>     uves_free_image(&raw_images[0][0]);</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>     uves_free_image(&raw_images[0][1]);</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>     uves_free_image(&raw_images[1][0]);</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>     uves_free_image(&raw_images[1][1]);</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     uves_free_propertylist(&raw_headers[0][0]);</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>     uves_free_propertylist(&raw_headers[0][1]);</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>     uves_free_propertylist(&raw_headers[1][0]);</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>     uves_free_propertylist(&raw_headers[1][1]);</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     uves_free_propertylist(&rotated_headers[0][0]);</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>     uves_free_propertylist(&rotated_headers[0][1]);</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>     uves_free_propertylist(&rotated_headers[1][0]);</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>     uves_free_propertylist(&rotated_headers[1][1]);</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> </div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>     uves_free_table(&qclog[0]);</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>     uves_free_string_const(&product_filename);</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>     uves_free_table(&cd_align);</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>     uves_free_propertylist(&product_header);</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> </div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> }</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span> </div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__cd__align__impl_8h_source.html b/html/uves__cd__align__impl_8h_source.html
deleted file mode 100644
index d54c032..0000000
--- a/html/uves__cd__align__impl_8h_source.html
+++ /dev/null
@@ -1,142 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_cd_align_impl.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_cd_align_impl.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2002,2003 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.9 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.8  2013/07/01 15:35:42  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Rename DEBUG to debug_mode to remove compiler error on some platforms (that name is reserved to special compiler options)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.7  2011/12/08 13:56:20  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * include uves_cpl_size.h for CPL6</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.6  2010/09/24 09:32:02  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2007/02/09 13:36:40  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added comment</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2007/02/08 11:38:39  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added cd_align recipe</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.4  2006/12/07 08:29:56  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Compute correct Ynew column for FLAMES</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.3  2006/11/24 16:24:53  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added window offset parameter</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.2  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.8  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#ifndef UVES_CD_ALIGN_IMPL_H</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CD_ALIGN_IMPL_H</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment">/* For unit testing */</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> cpl_table *</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> uves_cd_align_process(<span class="keyword">const</span> cpl_image *im1,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="keyword">const</span> cpl_image *im2,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header1,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header2,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="keywordtype">int</span> steps,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               <span class="keywordtype">int</span> xborder,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>               <span class="keywordtype">int</span> window,</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>               <span class="keywordtype">bool</span> debug_mode,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>               <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__chip_8c_source.html b/html/uves__chip_8c_source.html
deleted file mode 100644
index bdd8a85..0000000
--- a/html/uves__chip_8c_source.html
+++ /dev/null
@@ -1,196 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_chip.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_chip.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.6  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2007/01/10 12:35:33  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added uves_chip_tochar</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="keyword">enum</span> uves_chip</div>
-<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e">   92</a></span> <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(<span class="keywordtype">bool</span> blue)</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> {</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>     <span class="keywordflow">return</span> (blue) ? UVES_CHIP_BLUE : UVES_CHIP_REDL;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> }</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="keyword">enum</span> uves_chip</div>
-<div class="line"><a name="l00108"></a><span class="lineno"><a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a">  108</a></span> <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> {</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     <span class="keywordflow">return</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     (chip == UVES_CHIP_REDL) ? UVES_CHIP_REDU :</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>     (chip == UVES_CHIP_BLUE) ? UVES_CHIP_INVALID :</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     (chip == UVES_CHIP_REDU) ? UVES_CHIP_INVALID :</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     UVES_CHIP_INVALID;</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> }</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142">  124</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> {</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     <span class="comment">/* 0 = REDL/BLUE, 1 = REDU */</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     <span class="keywordflow">return</span> (chip == UVES_CHIP_REDU) ? 1 : 0;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> }</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00139"></a><span class="lineno"><a class="code" href="group__uves__chip.html#ga8319c211e6b7c649287e432bf78dc719">  139</a></span> <a class="code" href="group__uves__chip.html#ga8319c211e6b7c649287e432bf78dc719" title="Convert to string.">uves_chip_tostring_lower</a>(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> {</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="keywordflow">return</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     (chip == UVES_CHIP_BLUE) ? <span class="stringliteral">"blue"</span> : </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     (chip == UVES_CHIP_REDU) ? <span class="stringliteral">"redu"</span> : </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     (chip == UVES_CHIP_REDL) ? <span class="stringliteral">"redl"</span> : <span class="stringliteral">"?chip?"</span>;</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> }</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00156"></a><span class="lineno"><a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d">  156</a></span> <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> {</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     <span class="keywordflow">return</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     (chip == UVES_CHIP_BLUE) ? <span class="stringliteral">"BLUE"</span> : </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     (chip == UVES_CHIP_REDU) ? <span class="stringliteral">"REDU"</span> : </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     (chip == UVES_CHIP_REDL) ? <span class="stringliteral">"REDL"</span> : <span class="stringliteral">"?CHIP?"</span>;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> }</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno"><a class="code" href="group__uves__chip.html#ga34fa9c6d689106d4d44c572b33ac6410">  172</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__chip.html#ga34fa9c6d689106d4d44c572b33ac6410" title="Get letters used in filenames.">uves_chip_get_det</a>(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> {</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     <span class="keywordflow">return</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     (chip == UVES_CHIP_BLUE) ? <span class="stringliteral">"be"</span> : </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     (chip == UVES_CHIP_REDU) ? <span class="stringliteral">"rm"</span> : </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     (chip == UVES_CHIP_REDL) ? <span class="stringliteral">"re"</span> : <span class="stringliteral">"??"</span>;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> }</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno"><a class="code" href="group__uves__chip.html#gacc97ccf41a4ed99989d1ddc52192aac6">  187</a></span> <span class="keywordtype">char</span> <a class="code" href="group__uves__chip.html#gacc97ccf41a4ed99989d1ddc52192aac6" title="Get letters used in filenames.">uves_chip_tochar</a>(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> {</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     <span class="keywordflow">return</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     (chip == UVES_CHIP_BLUE) ? <span class="charliteral">'b'</span> : </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     (chip == UVES_CHIP_REDU) ? <span class="charliteral">'u'</span> : </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>     (chip == UVES_CHIP_REDL) ? <span class="charliteral">'l'</span> : <span class="charliteral">'?'</span>;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> }</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__chip_8h_source.html b/html/uves__chip_8h_source.html
deleted file mode 100644
index 5789b94..0000000
--- a/html/uves__chip_8h_source.html
+++ /dev/null
@@ -1,129 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_chip.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_chip.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.9 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.7  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2007/01/16 10:26:19  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Removed obsolete declaration</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2007/01/10 12:35:31  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added uves_chip_tochar</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#ifndef UVES_CHIP_H</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CHIP_H</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="keyword">enum</span> uves_chip { UVES_CHIP_BLUE = 43542, </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>          UVES_CHIP_REDL = 6813,</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>          UVES_CHIP_REDU = 11280, </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>          UVES_CHIP_INVALID = 3243};</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">/* Decrease the chance that the user erroneously uses the integer values (which</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">   the user should not) by defining 'random' enumeration values */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="keyword">enum</span> uves_chip <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(<span class="keywordtype">bool</span> blue);</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="keyword">enum</span> uves_chip <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__chip.html#ga8319c211e6b7c649287e432bf78dc719" title="Convert to string.">uves_chip_tostring_lower</a>(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__chip.html#ga34fa9c6d689106d4d44c572b33ac6410" title="Get letters used in filenames.">uves_chip_get_det</a>(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="keywordtype">char</span> <a class="code" href="group__uves__chip.html#gacc97ccf41a4ed99989d1ddc52192aac6" title="Get letters used in filenames.">uves_chip_tochar</a>(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#endif  </span><span class="comment">/* UVES_CHIP_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__chip__type_8c_source.html b/html/uves__chip__type_8c_source.html
deleted file mode 100644
index ce7aa66..0000000
--- a/html/uves__chip__type_8c_source.html
+++ /dev/null
@@ -1,128 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_chip_type.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_chip_type.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.4 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2007/08/30 07:56:54  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * fixed some doxygen warnings</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.1  2007/01/18 07:43:22  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Add chip type</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> </div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves_chip_type.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">                            Type definitions</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="struct__uves__chip.html">   54</a></span> <span class="keyword">struct </span><a class="code" href="struct__uves__chip.html">_uves_chip</a> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> {</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>     <span class="keywordtype">char</span> whatever;</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> };</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="struct__uves__chip.html">_uves_chip</a> blue;</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="struct__uves__chip.html">_uves_chip</a> redl;</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="struct__uves__chip.html">_uves_chip</a> redu;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="struct__uves__chip.html">_uves_chip</a> invalid;</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keyword">const</span> uves_chip UVES_CHIP_BLUE = &blue;</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keyword">const</span> uves_chip UVES_CHIP_REDL = &redl;</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keyword">const</span> uves_chip UVES_CHIP_REDU = &redu;</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="keyword">const</span> uves_chip UVES_CHIP_INVALID = &invalid;</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__chip__type_8h_source.html b/html/uves__chip__type_8h_source.html
deleted file mode 100644
index 5380ce2..0000000
--- a/html/uves__chip__type_8h_source.html
+++ /dev/null
@@ -1,109 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_chip_type.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_chip_type.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.1  2007/01/18 07:43:22  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Add chip type</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2007/01/16 10:26:19  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Removed obsolete declaration</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#ifndef UVES_CHIP_TYPE_H</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CHIP_TYPE_H</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">                            Type definitions</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__uves__chip.html">_uves_chip</a> * uves_chip;</div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">                               Values</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="keyword">extern</span> <span class="keyword">const</span> uves_chip UVES_CHIP_BLUE;</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="keyword">extern</span> <span class="keyword">const</span> uves_chip UVES_CHIP_REDL;</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="keyword">extern</span> <span class="keyword">const</span> uves_chip UVES_CHIP_REDU;</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="keyword">extern</span> <span class="keyword">const</span> uves_chip UVES_CHIP_INVALID;</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__corrbadpix-test_8c_source.html b/html/uves__corrbadpix-test_8c_source.html
deleted file mode 100644
index 6023443..0000000
--- a/html/uves__corrbadpix-test_8c_source.html
+++ /dev/null
@@ -1,256 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_corrbadpix-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_corrbadpix-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:31:49 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.7 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.5  2009/11/04 06:58:26  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * fixed API error</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.4  2009/06/05 05:49:02  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * updated init/end to cpl5</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.3  2007/05/23 06:43:23  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.2  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.1  2007/03/15 12:27:18  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Moved unit tests to ./uves/tests and ./flames/tests</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.3  2007/02/27 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Move unit test infrastructure to IRPLIB</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.2  2007/01/29 12:17:54  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Support setting verbosity from command line</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.1  2007/01/16 10:25:11  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added test of bad pixel correction</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.1  2006/11/28 08:26:35  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added QC log unit test</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <uves_corrbadpix.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="group__uves__corrbadpix__test.html#gaab99aa10d70ef9b2fe672f56c15f60c8">   92</a></span> <a class="code" href="group__uves__corrbadpix__test.html#gaab99aa10d70ef9b2fe672f56c15f60c8" title="Call the functions which had many memory errors.">test_bad_corr</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> {</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>     cpl_image *master_bias = NULL;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     <span class="keywordtype">int</span> **map = NULL;</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     <span class="keywordtype">int</span> mark_bad;</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     <span class="keywordtype">int</span> blue, binx, biny;</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>     </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     <span class="comment">/* Empty map */</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     map = cpl_calloc(1, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>*));</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     map[0] = cpl_calloc(4, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     map[0][0] = -1;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     map[0][1] = -1;</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     map[0][2] = -1;</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     map[0][3] = -1;</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     <a class="code" href="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35" title="Deallocate bpm position.">uves_badmap_free</a>(&map);</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     <span class="comment">/* 2 row map */</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     map = cpl_calloc(3, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>*));</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     map[0] = cpl_calloc(4, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>     map[0][0] = 1;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     map[0][1] = 2;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     map[0][2] = 3;</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     map[0][3] = 4;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     map[1] = cpl_calloc(4, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     map[1][0] = 5;</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     map[1][1] = 6;</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     map[1][2] = 7;</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     map[1][3] = 8;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     map[2] = cpl_calloc(4, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     map[2][0] = -1;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     map[2][1] = -1;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     map[2][2] = -1;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     map[2][3] = -1;</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     <a class="code" href="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35" title="Deallocate bpm position.">uves_badmap_free</a>(&map);</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     <span class="keywordflow">for</span> (blue = 0; blue <= 1; blue++)</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     <span class="keywordflow">for</span> (binx = 1; binx <= 3; binx++)</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     <span class="keywordflow">for</span> (biny = 1; biny <= 3; biny++)</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     <span class="keywordflow">if</span> (!(</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>         (binx == 1 && biny == 3) ||</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>         (binx == 2 && biny == 1) ||</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>         (binx == 3 && biny == 1) ||</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>         (binx == 3 && biny == 2) ||</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>         (binx == 3 && biny == 3)</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>         )){</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>         <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>         <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue);</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>          chip != UVES_CHIP_INVALID;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>         {</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>             uves_free_image(&master_bias);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>             master_bias = cpl_image_new(4096/biny, 2048/binx, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>             <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( master_bias );</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>             <span class="keywordflow">for</span> (mark_bad = 0; mark_bad <= 1; mark_bad++)</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>             {</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>                 <span class="keywordtype">int</span> expected_size;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                 <span class="comment">/* Call low level function */</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( map = <a class="code" href="group__uves__corrbadpix.html#ga3ab8d84dd9d1b03073d2b535c0236bcb" title="Get hard-coded bpm map.">uves_get_badpix</a>(chip, binx, biny, mark_bad,0),</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>                    <span class="stringliteral">"Error getting bad pixel map"</span>);</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>                 <a class="code" href="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35" title="Deallocate bpm position.">uves_badmap_free</a>(&map);    </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>                 </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>                 <span class="comment">/* Call higher level wrapper */</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                 <a class="code" href="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755" title="Remove all properties from a property list.">uves_propertylist_empty</a>(header);</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__corrbadpix.html#gabddade195002b7813f7cb41baa85b729" title="Correct all bad pixels on a chip.">uves_correct_badpix_all</a>(master_bias, header,</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>                                chip,</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>                                binx, biny, mark_bad,0),</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>                    <span class="stringliteral">"Error in bad pixel correction"</span>);</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>                 </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>                 <span class="comment">/* Should write one key:  correct = true   (or something like that) */</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>                 <span class="keywordflow">if</span> (chip == UVES_CHIP_BLUE)</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>                 {</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>                     expected_size = 0;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>                 }</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>                 {</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>                     expected_size = 1;</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>                 }</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>                 assure( <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(header) == expected_size,</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>                     CPL_ERROR_ILLEGAL_OUTPUT, <span class="stringliteral">"Wrong output header size: %ld "</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>                     <span class="stringliteral">"(%d expected)"</span>,</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>                     <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(header), expected_size);</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>             }</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>         }</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     }</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>   cleanup:</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <a class="code" href="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35" title="Deallocate bpm position.">uves_badmap_free</a>(&map);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     uves_free_propertylist(&header);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     uves_free_image(&master_bias);</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> }</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>    </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno"><a class="code" href="group__uves__corrbadpix__test.html#ga840291bc02cba5474a4cb46a9b9566fe">  195</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> {</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     <span class="comment">/* Initialize CPL + UVES messaging */</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> </div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__corrbadpix__test.html#gaab99aa10d70ef9b2fe672f56c15f60c8" title="Call the functions which had many memory errors.">test_bad_corr</a>(),</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>        <span class="stringliteral">"Test failed"</span>);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>   cleanup:</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> }</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__corrbadpix_8c_source.html b/html/uves__corrbadpix_8c_source.html
deleted file mode 100644
index 83cac6a..0000000
--- a/html/uves__corrbadpix_8c_source.html
+++ /dev/null
@@ -1,746 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_corrbadpix.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_corrbadpix.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.26 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.24  2009/10/29 17:47:15  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * set location of new red ccd's traps</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.23  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.22  2007/07/23 06:37:44  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * we now support also input data type CPL_TYPE_FLOAT</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.21  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.20  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.19  2007/01/16 10:26:52  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Fixed calloc -> cpl_calloc</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.18  2007/01/15 15:10:01  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Fixed memory bug in deallocator</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.17  2007/01/15 13:57:20  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Fixed crashing BLUE chips</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.16  2007/01/10 12:35:59  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added uves_get_badpix</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.15  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.13  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Revision 1.12  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Revision 1.11  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.10  2006/08/17 09:16:30  jmlarsen</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * Removed CPL2 code</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Revision 1.9  2006/08/14 12:15:26  jmlarsen</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * Update to CPL3</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Revision 1.8  2006/08/10 10:49:06  jmlarsen</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Removed workaround for cpl_image_get_bpm</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Revision 1.7  2006/08/08 11:27:18  amodigli</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * upgrade to CPL3</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Revision 1.6  2006/07/07 06:45:23  amodigli</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> * added doc</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Revision 1.5  2006/07/03 14:20:39  jmlarsen</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> * Exclude bad pixels from order tracing</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Revision 1.4  2006/07/03 12:58:34  jmlarsen</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * Support flagging instead of interpolating bad pixels</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Revision 1.3  2006/04/06 08:29:56  jmlarsen</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * Include self</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Revision 1.2  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.1  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="preprocessor">#include "uves_corrbadpix.h"</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <a class="code" href="group__uves__corrbadpix.html#gafcf45594af0c57c52ef369dd8d0ee84c" title="Correct bad pixels.">uves_correct_badpix</a>(cpl_image *master_bias, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header, <span class="keywordtype">int</span> **badmap,</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>             <span class="keywordtype">bool</span> mark_bad);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno"><a class="code" href="group__uves__corrbadpix.html#gabddade195002b7813f7cb41baa85b729">  156</a></span> <a class="code" href="group__uves__corrbadpix.html#gabddade195002b7813f7cb41baa85b729" title="Correct all bad pixels on a chip.">uves_correct_badpix_all</a>(cpl_image *master_bias, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mbias_header,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>             <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                         <span class="keywordtype">int</span> binx, <span class="keywordtype">int</span> biny, <span class="keywordtype">int</span> mark_bad, <span class="keywordtype">bool</span> red_ccd_new)</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> {</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     <span class="keywordtype">int</span> badpixels_cleaned = -1; <span class="comment">/* result */</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <span class="keywordtype">int</span> **badmap = NULL;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( badmap = <a class="code" href="group__uves__corrbadpix.html#ga3ab8d84dd9d1b03073d2b535c0236bcb" title="Get hard-coded bpm map.">uves_get_badpix</a>(chip, binx, biny, mark_bad,red_ccd_new),</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>        <span class="stringliteral">"Could not get bad pixel map"</span>);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( badpixels_cleaned = </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>        <a class="code" href="group__uves__corrbadpix.html#gafcf45594af0c57c52ef369dd8d0ee84c" title="Correct bad pixels.">uves_correct_badpix</a>(master_bias, mbias_header, badmap, mark_bad),</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>        <span class="stringliteral">"Error cleaning bad pixels"</span>);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>   cleanup:</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     <a class="code" href="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35" title="Deallocate bpm position.">uves_badmap_free</a>(&badmap);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="keywordflow">return</span> badpixels_cleaned;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> }</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno"><a class="code" href="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35">  184</a></span> <a class="code" href="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35" title="Deallocate bpm position.">uves_badmap_free</a>(<span class="keywordtype">int</span> ***badmap)</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> {</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     <span class="keywordflow">if</span> (badmap != NULL)</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     {</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>         <span class="keywordflow">if</span> (*badmap != NULL)</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>         {</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>             <span class="keywordtype">int</span> row;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>             <span class="keywordflow">for</span> (row = 0;</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>              (*badmap)[row][0] != -1;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>              row++)</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>             {</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>                 cpl_free((*badmap)[row]);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>             }</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>             cpl_free((*badmap)[row]);</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>             cpl_free(*badmap);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>             *badmap = NULL;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>         }</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     }</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> }</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="keyword">static</span> <span class="keywordtype">int</span> **</div>
-<div class="line"><a name="l00213"></a><span class="lineno"><a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c">  213</a></span> <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(<span class="keywordtype">int</span> badmap[][4])</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> {</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     <span class="keywordtype">int</span> **map = NULL;</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     <span class="keywordtype">int</span> row;</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     <span class="keywordtype">bool</span> finished = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     <span class="comment">/* The execution time is O(n*n) which is okay, due to the low number</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment">       of entries */</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     <span class="keywordflow">for</span> (row = 0; !finished; row++)</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     {</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>         map = cpl_realloc(map, (row+1)*<span class="keyword">sizeof</span>(<span class="keywordtype">int</span> *));</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>         <span class="comment">/* First time equivalent to: malloc(sizeof(int *)) */</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>         map[row] = cpl_calloc(4, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>         map[row][0] = badmap[row][0];</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>         map[row][1] = badmap[row][1];</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>         map[row][2] = badmap[row][2];</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>         map[row][3] = badmap[row][3];</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         finished = (badmap[row][0] == -1);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     }</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <span class="keywordflow">return</span> map;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> }</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="keywordtype">int</span> **</div>
-<div class="line"><a name="l00256"></a><span class="lineno"><a class="code" href="group__uves__corrbadpix.html#ga3ab8d84dd9d1b03073d2b535c0236bcb">  256</a></span> <a class="code" href="group__uves__corrbadpix.html#ga3ab8d84dd9d1b03073d2b535c0236bcb" title="Get hard-coded bpm map.">uves_get_badpix</a>(<span class="keyword">enum</span> uves_chip chip, </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                 <span class="keywordtype">int</span> binx, <span class="keywordtype">int</span> biny, <span class="keywordtype">int</span> mark_bad,<span class="keywordtype">bool</span> red_ccd_new)</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> {</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <span class="keywordtype">int</span> **map = NULL;</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> </div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     <span class="keywordflow">if</span> (chip == UVES_CHIP_REDL)</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     {</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>         <span class="keywordflow">if</span> (binx == 1 && biny == 1)</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         {</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>            <span class="keywordflow">if</span>(red_ccd_new) {</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>            <span class="keywordtype">int</span> badmap[][4] = {{1,4,2088,4},</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                        {1,63,2282,63},</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>                        {1,108,1778,108},</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>                        {1,176,2443,176},</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>                        {1,196,2021,196},</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>                        {1,285,1974,285},</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>                        {1,352,1942,352},</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>                        {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>            <span class="keywordflow">if</span> (!mark_bad)</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>             {</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>                 badmap[2][0] = -1;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>                 badmap[2][1] = -1;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>                 badmap[2][2] = -1;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>                 badmap[2][3] = -1;</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>             }</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="comment">            int badmap[][4] = {{1,4,2088,4},</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="comment">                               {1,63,2282,63},</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment">                               {1,176,2443,176},</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="comment">                               {1,196,2021,196},</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment">                               {1,285,1974,285},</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment">                               {1,352,1942,352},</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment">                               {-1,-1,-1,-1}};</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>           map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>            } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>             <span class="keywordtype">int</span> badmap[][4] = {{1,4,2088,4},</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>                        {1,63,2282,63},</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>                        {1,108,1778,108},</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>                        {1,176,2443,176},</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>                        {1,196,2021,196},</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>                        {1,285,1974,285},</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>                        {1,352,1942,352},</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>                        {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>           map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>            }</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>  </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>         }</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (binx == 1 && biny == 2)</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>         {</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>           <span class="keywordflow">if</span>(red_ccd_new) {</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>             <span class="keywordtype">int</span> badmap[][4] = {{1,4,1045,4},</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                     {1,63,1141,63},</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                     {1,108,894,108},</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                     {1,176,1222,176},</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>                     {1,196,1011,196},</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>                     {1,285,988,285},</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                     {1,352,971,352},</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                     {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>           map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>           } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>            <span class="keywordtype">int</span> badmap[][4] = {{1,4,1044,4},</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>                     {1,63,1141,63},</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>                     {1,108,894,108},</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>                     {1,176,1222,176},</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>                     {1,196,1011,196},</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>                     {1,285,988,285},</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>                     {1,352,971,352},</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>                     {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>           map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>           }</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         }</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (binx == 2 && biny == 2)</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>         {</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>           <span class="keywordflow">if</span>(red_ccd_new) {</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>             <span class="keywordtype">int</span> badmap[][4] = {{1,4,1045,4},</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>                                {1,14,1255,14},</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>                                {1,33,1141,33},</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>                                {1,89,1222,89},</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>                                {1,99,1011,100},</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>                                {1,144,988,144},</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>                                {1,177,971,178},</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>                                {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>           map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>           } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>            <span class="keywordtype">int</span> badmap[][4] = {{1,3,1044,3},</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>                        {1,33,1141,33},</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>                        {1,55,894,56},</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>                        {1,89,1222,90},</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>                        {1,99,1011,100},</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>                        {1,144,988,145},</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>                        {1,177,971,178},</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>                        {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>           map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>           }</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>         }</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (binx == 2 && biny == 3)</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>         {</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>           <span class="keywordflow">if</span>(red_ccd_new) {</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>             <span class="keywordtype">int</span> badmap[][4] = {{1,3,696,3},</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                        {1,14,836,15},</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>                        {1,33,761,33},</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                        {1,55,596,56},</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>                        {1,89,814,90},</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>                        {1,97,805,90},</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                        {1,99,674,100},</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>                        {1,144,658,144},</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>                        {1,156,784,156},</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>                        {1,168,759,168},</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                        {1,177,647,178},</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                        {1,203,826,203},</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>                        {1,263,714,263},</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>                         {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>           map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>           } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>             <span class="keywordtype">int</span> badmap[][4] = {{1,3,696,3},</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>                        {1,33,761,33},</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                        {1,55,592,56},</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>                        {1,89,814,90},</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>                        {1,99,674,100},</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>                        {1,144,658,144},</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>                        {1,177,647,178},</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>                        {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>           map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>           }</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>         }</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>         {</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>             assure( <span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                 <span class="stringliteral">"Don't know bad pixel map for %dx%d binning, red, lower chip"</span>, </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>                 binx, biny);</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>         }</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>     }</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span>  (chip == UVES_CHIP_REDU)</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     {</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>         <span class="comment">/* Use different bad pixels maps for bias and</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="comment">           orderpos recipes !</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>         <span class="keywordflow">if</span> (binx == 1 && biny ==1)</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>         {</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>           <span class="keywordflow">if</span>(red_ccd_new) {</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>             <span class="keywordtype">int</span> badmap[][4] = {</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                {1,845,1268,845},</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>            <span class="keywordflow">if</span> (!mark_bad)</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>             {</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                 badmap[2][0] = -1;</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                 badmap[2][1] = -1;</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                 badmap[2][2] = -1;</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                 badmap[2][3] = -1;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>             }</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>            map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>           } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>             <span class="keywordtype">int</span> badmap[][4] = {</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>                {1,2030,1268,2033},</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>                {1269,2033,4096,2033},</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>                {1201, 491, 3271, 492},</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>                {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>             <span class="keywordflow">if</span> (!mark_bad)</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>             {</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>                 badmap[2][0] = -1;</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>                 badmap[2][1] = -1;</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>                 badmap[2][2] = -1;</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>                 badmap[2][3] = -1;</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>             }</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>             map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>           }</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>         }</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (binx == 1 && biny == 2)</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>         {</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>           <span class="keywordflow">if</span>(red_ccd_new) {</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> </div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>             <span class="keywordtype">int</span> badmap[][4] = {{1,1396,845,1396},</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                        {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>             <span class="keywordflow">if</span> (!mark_bad)</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>             {</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                 badmap[2][0] = -1;</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                 badmap[2][1] = -1;</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>                 badmap[2][2] = -1;</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>                 badmap[2][3] = -1;</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>             }</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>             map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>           } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>             <span class="keywordtype">int</span> badmap[][4] = {{1,2030,634,2033},</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                        {635,2033,2048,2033},</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>                        {600, 491,1635, 492},</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                        {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>             <span class="keywordflow">if</span> (!mark_bad)</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>             {</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                 badmap[2][0] = -1;</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                 badmap[2][1] = -1;</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                 badmap[2][2] = -1;</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                 badmap[2][3] = -1;</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>             }</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>             map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>           }</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>         }</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (binx == 2 && biny == 2)</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>         {</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>           <span class="keywordflow">if</span>(red_ccd_new) {</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>             <span class="keywordtype">int</span> badmap[][4] = {{1,422,1526,422},</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>                        {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>              <span class="keywordflow">if</span> (!mark_bad)</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>              {</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>                 badmap[2][0] = -1;</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>                 badmap[2][1] = -1;</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>                 badmap[2][2] = -1;</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>                 badmap[2][3] = -1;</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>              }</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>              map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>           } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>              <span class="keywordtype">int</span> badmap[][4] = {{1,1013,634,1016},</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>                                 {635,1015,2048,1016},</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>                                 {600, 244,1635, 245},</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>                                 {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>              <span class="keywordflow">if</span> (!mark_bad)</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>              {</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>                 badmap[2][0] = -1;</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>                 badmap[2][1] = -1;</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>                 badmap[2][2] = -1;</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>                 badmap[2][3] = -1;</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>              }</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>              map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>           }</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>         }</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (binx == 2 && biny == 3)</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>         {</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>           <span class="keywordflow">if</span>(red_ccd_new) {</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>             <span class="keywordtype">int</span> badmap[][4] = {{1,61,287,62},</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>                        {1,422,1051,422},</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>                        {400, 872,1265, 872},</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>                        {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>             <span class="keywordflow">if</span> (!mark_bad)</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>              {</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                 badmap[2][0] = -1;</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                 badmap[2][1] = -1;</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>                 badmap[2][2] = -1;</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>                 badmap[2][3] = -1;</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>              }</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>             map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>           } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>              <span class="keywordtype">int</span> badmap[][4] = {{1,1013,423,1016},</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>                                 {424,1015,1365,1016},</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>                                 {400, 244,1090, 245},</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>                                 {-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>              <span class="keywordflow">if</span> (!mark_bad)</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>              {</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>                 badmap[2][0] = -1;</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>                 badmap[2][1] = -1;</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>                 badmap[2][2] = -1;</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>                 badmap[2][3] = -1;</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>              }</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>              map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> </div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>           }</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>         }</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>         {</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>             assure( <span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>                 <span class="stringliteral">"Don't know bad pixel map for %dx%d binning, red, upper chip"</span>, </div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>                 binx, biny);</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>         }</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     }</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     {</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>         <span class="comment">/* No blue chip bad pixels */</span></div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>         <span class="keywordtype">int</span> badmap[][4] = {{-1,-1,-1,-1}};</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>         </div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>         map = <a class="code" href="group__uves__corrbadpix.html#ga1b2dd47e9df5c3b6deea5765cd0e5d7c" title="Copy bpm to heap.">dup_map</a>(badmap);</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     }</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> </div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>   cleanup:</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>     <span class="keywordflow">return</span> map;</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> }</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> </div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00585"></a><span class="lineno"><a class="code" href="group__uves__corrbadpix.html#gafcf45594af0c57c52ef369dd8d0ee84c">  585</a></span> <a class="code" href="group__uves__corrbadpix.html#gafcf45594af0c57c52ef369dd8d0ee84c" title="Correct bad pixels.">uves_correct_badpix</a>(cpl_image *master_bias, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header, <span class="keywordtype">int</span> **badmap,</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>             <span class="keywordtype">bool</span> mark_bad)</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> {</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     <span class="keywordtype">int</span> ncorrect = 0;   <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>     <span class="keywordtype">int</span> xstart, ystart, xend, yend;</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     <span class="keywordtype">int</span> row;</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     <span class="keywordtype">bool</span> finished = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>     cpl_mask  *image_bad = NULL;</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     cpl_binary*image_bpm = NULL;</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     cpl_type type=0;</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>     type=cpl_image_get_type(master_bias);</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     assure( (type == CPL_TYPE_DOUBLE) || (type == CPL_TYPE_FLOAT),</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>         CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>         <span class="stringliteral">"Image type must be float or double. It is %s"</span>,</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(master_bias)));</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     image_bad = cpl_image_get_bpm(master_bias);</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>     image_bpm = cpl_mask_get_data(image_bad);</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span> </div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>     nx = cpl_image_get_size_x(master_bias);</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     ny = cpl_image_get_size_y(master_bias);</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> </div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>     row = 0;</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>     <span class="keywordflow">while</span> (!finished)</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>     {</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>         xstart = badmap[row][0];</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>         ystart = badmap[row][1];</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>         xend   = badmap[row][2];</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>         yend   = badmap[row][3];</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> </div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>         <span class="keywordflow">if</span> (xstart > 0)</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>         {</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>             <span class="keywordtype">int</span> ylow, yhigh;</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>             <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>             </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>             assure( 1 <= xstart && xstart <= nx &&</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>                 1 <= xend   && xend   <= nx &&</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>                 1 <= ystart && ystart <= ny &&</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>                 1 <= yend   && yend   <= ny, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>                 <span class="stringliteral">"Illegal window (%d, %d) - (%d, %d). Image size = %dx%d"</span>,</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>                 xstart, ystart, xend, yend, nx, ny);</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>             </div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>             <span class="keywordflow">if</span> ( ystart < 3 )</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>             {</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>                 assure( yend + 2 <= ny, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>                     <span class="stringliteral">"Too large range in y: %d - %d"</span>, ystart, yend);</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> </div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>                 ylow  = yend + 1;</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>                 yhigh = yend + 2;</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>             }</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (yend > ny - 3 )</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>             {</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>                 assure( ystart - 2 >= 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>                     <span class="stringliteral">"Too large range in y: %d - %d"</span>, ystart, yend);</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>                 </div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>                 ylow  = ystart - 2;</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>                 yhigh = ystart - 1;</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>             }</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>             {</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>                 ylow  = ystart - 2;</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>                 yhigh = yend + 2;</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>             }</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>             </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Correcting window (%d, %d)-(%d, %d)"</span>, xstart, ystart, xend, yend);</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> </div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> </div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>             <span class="keywordflow">if</span>(type == CPL_TYPE_DOUBLE) {</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> </div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>             <span class="keywordflow">for</span> (x = xstart; x <= xend; x++) {</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>             <span class="keywordflow">for</span> (y = ystart; y <= yend; y++) {</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>                 <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>                 <span class="keywordtype">double</span> i1, i2;</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>                 </div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>                 <span class="keywordflow">if</span> (mark_bad)</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>                 {</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>                     <span class="comment">/* This is extremely slow with CPL2:</span></div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> <span class="comment">                       cpl_image_reject(master_bias, x, y);</span></div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>                     image_bpm[(x-1) + (y-1)*nx] = CPL_BINARY_1;</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                 }</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                 <span class="comment">/* interpolate */</span></div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                 {</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>                     <span class="keywordtype">double</span> *master_bias_data;</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>                     i1 = cpl_image_get(master_bias, x, ylow , &pis_rejected);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>                     i2 = cpl_image_get(master_bias, x, yhigh, &pis_rejected);</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>                     </div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                     <span class="comment">/* Write average */</span></div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>                     </div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>                     <span class="comment">/* This will make the bpm invalid:</span></div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> <span class="comment">                       cpl_image_set(master_bias, x, y, (i1+i2)/2);</span></div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                     master_bias_data = cpl_image_get_data_double(master_bias);</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>                     master_bias_data[(x-1) + (y-1)*nx] = (i1+i2)/2;</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                 }</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                 ncorrect += 1;</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>             }</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>             }</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span> </div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> </div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> </div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>             <span class="keywordflow">for</span> (x = xstart; x <= xend; x++) {</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>             <span class="keywordflow">for</span> (y = ystart; y <= yend; y++) {</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>                 <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>                 <span class="keywordtype">float</span> i1, i2;</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>                 </div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                 <span class="keywordflow">if</span> (mark_bad)</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>                 {</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>                     <span class="comment">/* This is extremely slow with CPL2:</span></div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> <span class="comment">                       cpl_image_reject(master_bias, x, y);</span></div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>                     image_bpm[(x-1) + (y-1)*nx] = CPL_BINARY_1;</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>                 }</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                 <span class="comment">/* interpolate */</span></div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>                 {</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>                     <span class="keywordtype">float</span> *master_bias_data;</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> </div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>                     i1 = cpl_image_get(master_bias, x, ylow , &pis_rejected);</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>                     i2 = cpl_image_get(master_bias, x, yhigh, &pis_rejected);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>                     </div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>                     <span class="comment">/* Write average */</span></div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>                     </div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>                     <span class="comment">/* This will make the bpm invalid:</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> <span class="comment">                       cpl_image_set(master_bias, x, y, (i1+i2)/2);</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>                     master_bias_data = cpl_image_get_data_float(master_bias);</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>                     master_bias_data[(x-1) + (y-1)*nx] = (i1+i2)/2;</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>                 }</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>                 ncorrect += 1;</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>             }</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>             }</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> </div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>         }</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span> </div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>         }</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>         {</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>             finished = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>         }</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>         row++;</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>     }</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> </div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>     <span class="comment">/* Update product header */</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>     <span class="keywordflow">if</span> (ncorrect > 0)</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>     {</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gaa198d93b1538311c92a9b2fed6389357" title="Write the object keyword.">uves_pfits_set_badpixcorr</a>(header, <span class="stringliteral">"true"</span>),</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>            <span class="stringliteral">"Error updating product header"</span>);</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>     }</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> </div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>   cleanup:</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>     <span class="keywordflow">return</span> ncorrect;</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__corrbadpix_8h_source.html b/html/uves__corrbadpix_8h_source.html
deleted file mode 100644
index c9ae802..0000000
--- a/html/uves__corrbadpix_8h_source.html
+++ /dev/null
@@ -1,123 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_corrbadpix.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_corrbadpix.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.6  2009/10/29 17:17:28  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * added param to specify if red cdd is new/old</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2007/01/10 12:35:57  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added uves_get_badpix</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/07/03 12:58:34  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Support flagging instead of interpolating bad pixels</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#ifndef UVES_CORRBADPIX_H</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CORRBADPIX_H</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__corrbadpix.html#gabddade195002b7813f7cb41baa85b729" title="Correct all bad pixels on a chip.">uves_correct_badpix_all</a>(cpl_image *master_bias, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mbias_header,</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>                 <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>                             <span class="keywordtype">int</span> binx, <span class="keywordtype">int</span> biny, <span class="keywordtype">int</span> mark_bad, <span class="keywordtype">bool</span> red_ccd_new);</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="keywordtype">int</span> **</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <a class="code" href="group__uves__corrbadpix.html#ga3ab8d84dd9d1b03073d2b535c0236bcb" title="Get hard-coded bpm map.">uves_get_badpix</a>(<span class="keyword">enum</span> uves_chip, </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>                 <span class="keywordtype">int</span> binx, <span class="keywordtype">int</span> biny, <span class="keywordtype">int</span> mark_bad,<span class="keywordtype">bool</span> uves_ccd_new);</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <a class="code" href="group__uves__corrbadpix.html#ga78cee830d02229091392e16a61e82c35" title="Deallocate bpm position.">uves_badmap_free</a>(<span class="keywordtype">int</span> ***badmap);</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__cpl__size_8h_source.html b/html/uves__cpl__size_8h_source.html
deleted file mode 100644
index 22060c5..0000000
--- a/html/uves__cpl__size_8h_source.html
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_cpl_size.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_cpl_size.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * uves_cpl_size.h</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *  Created on: Nov 23, 2011</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *      Author: amodigli</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> </div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="preprocessor">#ifndef UVES_CPL_SIZE_H_</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CPL_SIZE_H_</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE <= CPL_VERSION(5, 5, 0)</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">int</span> cpl_size; <span class="comment">/* The type as is was up to CPL 5.3 */</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="preprocessor">#define CPL_SIZE_FORMAT "d"</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_CPL_SIZE_H_ */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__deque_8c_source.html b/html/uves__deque_8c_source.html
deleted file mode 100644
index c1ef3ec..0000000
--- a/html/uves__deque_8c_source.html
+++ /dev/null
@@ -1,314 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_deque.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_deque.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*===========================================================================</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment">  Copyright (C) 2001 European Southern Observatory (ESO)</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment">  This program is free software; you can redistribute it and/or </span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment">  modify it under the terms of the GNU General Public License as </span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment">  published by the Free Software Foundation; either version 2 of </span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment">  the License, or (at your option) any later version.</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment">  This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment">  GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment">  You should have received a copy of the GNU General Public </span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment">  License along with this program; if not, write to the Free </span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment">  Software Foundation, Inc., 675 Massachusetss Ave, Cambridge, </span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment">  MA 02139, USA.</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment">  Corresponding concerning ESO-MIDAS should be addressed as follows:</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">    Internet e-mail: midas at eso.org</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">    Postal address: European Southern Observatory</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment">            Data Management Division </span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment">            Karl-Schwarzschild-Strasse 2</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment">            D 85748 Garching bei Muenchen </span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment">            GERMANY</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment">===========================================================================*/</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#include <uves_deque.h></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> </div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#include <assert.h></span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="struct__uves__deque__.html">   38</a></span> <span class="keyword">struct </span><a class="code" href="struct__uves__deque__.html">_uves_deque_</a></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> {</div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span>     <span class="keywordtype">void</span> **members;</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> front;</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> size;</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> back;</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> };</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> uves_deque_new(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> {</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>     <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d = cpl_calloc(1, <span class="keyword">sizeof</span>(*d));</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>  </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>     <span class="keywordflow">if</span> (d == NULL)</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>         {</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>             <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>         }</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>  </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>     d->members = NULL;</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>  </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     d->front = 0;</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     d->size = 0;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     d->back = 0;</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     <span class="keywordflow">return</span> d;</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> }</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> uves_deque_push_back(<a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, cxptr what)</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> {</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     assert( d != NULL );</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     <span class="keywordflow">if</span> (d->back == 0)</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>         {</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">//      fprintf(stderr, "old : %ld - %ld - %ld\n", d->front, d->size, d->back);</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>             <span class="keywordtype">void</span> **new_members;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>             <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i;</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>             d->back = d->size + 1;</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>             new_members = cpl_calloc(d->front + d->size + d->back, <span class="keyword">sizeof</span>(<span class="keywordtype">void</span> *));</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>   </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>             <span class="keywordflow">for</span> (i = 0; i < d->size; i++)</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>                 {</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>                     new_members[d->front + i] = d->members[d->front + i];</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>                 }</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>             cpl_free(d->members);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>             d->members = new_members;</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment">//      fprintf(stderr, "new : %ld - %ld - %ld\n", d->front, d->size, d->back);</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>         }</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     d->members[d->front + d->size] = (cxptr)what;</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     d->size++;</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     d->back--;</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> }</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> uves_deque_push_front(<a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, cxptr what)</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> {</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     assert( d != NULL );</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     <span class="keywordflow">if</span> (d->front == 0)</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>         {</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment">//      fprintf(stderr, "old : %ld - %ld - %ld\n", d->front, d->size, d->back);</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>             <span class="keywordtype">void</span> **new_members;</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>             <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>             d->front = d->size + 1;</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>             new_members = cpl_calloc(d->front + d->size + d->back, <span class="keyword">sizeof</span>(<span class="keywordtype">void</span> *));</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>             <span class="keywordflow">for</span> (i = 0; i < d->size; i++)</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                 {</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>                     new_members[d->front + i] = d->members[0 + i];</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                 }</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>             cpl_free(d->members);</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>             d->members = new_members;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment">//      fprintf(stderr, "new : %ld - %ld - %ld\n", d->front, d->size, d->back);</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>         }</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     d->front--;</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     d->size++;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     d->members[d->front] = what;</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> }</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> cxptr</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> uves_deque_get(<span class="keyword">const</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, uves_deque_const_iterator indx)</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> {</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     assert( d != NULL );</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     assert( indx < d->size );</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="keywordflow">return</span> d->members[d->front + indx];  </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> }</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> uves_deque_iterator</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> uves_deque_erase(<a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, uves_deque_iterator indx, cx_free_func deallocate)</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> {</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i;</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     <span class="comment">//printf("indx = %d size = %d\n", indx, d->size);</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     assert( d != NULL );</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     assert( indx < d->size );</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>     deallocate(d->members[d->front + indx]);</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <span class="keywordflow">for</span> (i = indx; i < d->size - 1; i++)</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>         {</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>             d->members[d->front + i] = d->members[d->front + i + 1];</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>         }</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     d->size--;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     d->back++;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     <span class="keywordflow">return</span> indx;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> }</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> uves_deque_insert(<a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, uves_deque_iterator indx, cxptr what)</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> {</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     <span class="comment">//printf("indx = %d size = %d\n", indx, d->size);</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     assert( d != NULL );</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     assert( indx <= d->size );</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="keywordflow">if</span> ( indx == d->size )</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>         {</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>             uves_deque_push_back(d, what);</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>         }</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>         {</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>             <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>             assert( indx < d->size );</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>             assert( d->size > 1 );</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>       </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>             uves_deque_push_back(d, d->members[d->front + d->size - 1]);</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>       </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>             <span class="keywordflow">for</span> (i = d->size-1; i > indx; i--)</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>                 {</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                     d->members[d->front + i] = d->members[d->front + i - 1];</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                 }</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>       </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>             d->members[d->front + indx] = what;</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>         }</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> }</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> cxsize</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> uves_deque_size(<span class="keyword">const</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d)</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> {</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     assert( d != NULL );</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>   </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     <span class="keywordflow">return</span> d->size;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> }</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> uves_deque_destroy(<a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, cx_free_func deallocate)</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> {</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="keywordflow">if</span> (d != NULL)</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>         {</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>             <span class="keywordflow">if</span> (deallocate != NULL)</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>                 {</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>                     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>           </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>                     <span class="keywordflow">for</span> (i = 0; i < d->size; i++)</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>                         {</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                             deallocate(d->members[d->front + i]);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>                         }</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>                 }</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>             cpl_free(d->members);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>             cpl_free(d);</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>         }</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> }</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> cxbool </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> uves_deque_empty(<span class="keyword">const</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d)</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> {</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     assert(d != NULL);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="keywordflow">return</span> (d->size == 0);</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> }</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> uves_deque_iterator </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> uves_deque_begin(<span class="keyword">const</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d)</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> {</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     assert(d != NULL);</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> }</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> uves_deque_iterator</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> uves_deque_end(<span class="keyword">const</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d)</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> {</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     assert(d != NULL);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     <span class="keywordflow">return</span> d->size;</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> }</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> uves_deque_iterator</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> uves_deque_next(<span class="keyword">const</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, uves_deque_const_iterator i)</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> {</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     assert(d != NULL);</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     <span class="keywordflow">return</span> i+1;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> }</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__deque_8h_source.html b/html/uves__deque_8h_source.html
deleted file mode 100644
index fe1d266..0000000
--- a/html/uves__deque_8h_source.html
+++ /dev/null
@@ -1,114 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_deque.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_deque.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*===========================================================================</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment">  Copyright (C) 2001 European Southern Observatory (ESO)</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment">  This program is free software; you can redistribute it and/or </span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment">  modify it under the terms of the GNU General Public License as </span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment">  published by the Free Software Foundation; either version 2 of </span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment">  the License, or (at your option) any later version.</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment">  This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment">  GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment">  You should have received a copy of the GNU General Public </span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment">  License along with this program; if not, write to the Free </span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment">  Software Foundation, Inc., 675 Massachusetss Ave, Cambridge, </span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment">  MA 02139, USA.</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment">  Corresponding concerning ESO-MIDAS should be addressed as follows:</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">    Internet e-mail: midas at eso.org</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">    Postal address: European Southern Observatory</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment">            Data Management Division </span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment">            Karl-Schwarzschild-Strasse 2</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment">            D 85748 Garching bei Muenchen </span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment">            GERMANY</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment">===========================================================================*/</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifndef UVES_DEQUE_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DEQUE_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#include <cxtypes.h></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#include <assert.h></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> </div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__uves__deque__.html">_uves_deque_</a> <a class="code" href="struct__uves__deque__.html">uves_deque</a>;</div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> uves_deque_const_iterator;</div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> uves_deque_iterator;</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *</div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> uves_deque_new(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> uves_deque_push_back(<a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, cxptr what);</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="keywordtype">void</span> uves_deque_push_front(<a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, cxptr what);</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> cxptr uves_deque_get(<span class="keyword">const</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, uves_deque_const_iterator indx);</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> uves_deque_iterator uves_deque_erase(<a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, uves_deque_iterator indx, cx_free_func deallocate);</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="keywordtype">void</span> uves_deque_insert(<a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, uves_deque_iterator indx, cxptr what);</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> cxsize</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> uves_deque_size(<span class="keyword">const</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d);</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="keywordtype">void</span> uves_deque_destroy(<a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, cx_free_func deallocate);</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> cxbool uves_deque_empty(<span class="keyword">const</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d);</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> uves_deque_iterator uves_deque_begin(<span class="keyword">const</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d);</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> uves_deque_iterator uves_deque_end(<span class="keyword">const</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d);</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> uves_deque_iterator uves_deque_next(<span class="keyword">const</span> <a class="code" href="struct__uves__deque__.html">uves_deque</a> *d, uves_deque_const_iterator i);</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__dfs-test_8c_source.html b/html/uves__dfs-test_8c_source.html
deleted file mode 100644
index 224beb1..0000000
--- a/html/uves__dfs-test_8c_source.html
+++ /dev/null
@@ -1,726 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_dfs-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_dfs-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2009-06-05 05:49:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.20 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.19  2007/09/11 17:09:45  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * added parse_midas_poly</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.18  2007/08/21 13:14:29  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Update to changed functionality of uves_read_midas_array</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.17  2007/08/13 12:15:43  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * support of CPL4</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.16  2007/06/26 14:51:00  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Fixed bug in load_linetable</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.15  2007/06/22 14:50:11  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Expanded, again, interface of uves_save_image()</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.14  2007/06/22 09:33:21  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Changed interface of uves_save_image</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.13  2007/06/20 15:55:37  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Parametrized assumption about MIDAS format</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.12  2007/06/20 15:50:44  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Expanded test</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.11  2007/05/23 06:43:23  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.10  2007/05/22 14:51:02  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.9  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.8  2007/04/24 08:07:11  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Shortened line</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.7  2007/04/24 08:04:29  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Added performance test</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.6  2007/04/10 12:51:43  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Fixed wrong reference value</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.5  2007/04/10 12:50:56  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Added check of float values</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.4  2007/04/10 11:35:06  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Added error checking</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.3  2007/04/03 11:02:30  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Support reading float MIDAS arrays</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.2  2007/03/15 15:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Allow spaces in HISTORY keyword string values</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.1  2007/03/15 12:27:18  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Moved unit tests to ./uves/tests and ./flames/tests</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.6  2007/02/27 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Move unit test infrastructure to IRPLIB</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.5  2007/01/31 15:11:09  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Test of inf+nan when saving FITS files</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.4  2007/01/29 12:17:54  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Support setting verbosity from command line</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.3  2006/11/28 08:26:23  jmlarsen</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Changed message</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.2  2006/11/24 09:39:35  jmlarsen</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Factored out termination code</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.1  2006/11/22 08:04:59  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Added uves_dfs unit test module</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.20  2006/11/16 09:49:25  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Fixed doxygen bug</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.19  2006/11/08 14:04:03  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Doxybugfix</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.18  2006/11/06 15:30:54  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Added missing includes</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.17  2006/11/03 15:02:06  jmlarsen</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Added test of uves_align</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.16  2006/09/11 13:59:01  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Renamed identifier reserved by POSIX</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.15  2006/08/24 11:46:18  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Fixed typo</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.14  2006/08/24 07:18:17  amodigli</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * fixed doxygen warnings</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.13  2006/08/24 06:39:57  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Reduced maximum line length</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.12  2006/08/17 14:11:25  jmlarsen</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Use assure_mem macro to check for memory allocation failure</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.11  2006/08/14 12:13:27  jmlarsen</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Reset irplib error handler</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.10  2006/08/14 07:45:41  amodigli</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * doxigen doc</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.9  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Revision 1.8  2006/02/03 07:47:53  jmlarsen</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Revision 1.7  2006/01/31 08:26:56  jmlarsen</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Disabled recipe run tests</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Revision 1.6  2006/01/25 16:14:14  jmlarsen</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Changed interface of gauss.fitting routine</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Revision 1.5  2005/12/16 14:22:22  jmlarsen</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Removed midas test data; Added sof files</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Revision 1.4  2005/11/18 10:54:43  jmlarsen</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Revision 1.3  2005/11/14 13:18:44  jmlarsen</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Revision 1.2  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Revision 1.1  2005/11/10 16:33:41  jmlarsen</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Added weighted extraction, test of gauss. fit</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor">#include <uves_test_simulate.h></span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno"><a class="code" href="group__uves__dfs.html#ga8d65e1daf239b7e190cec6f51dac20b3">  205</a></span> <a class="code" href="group__uves__dfs.html#ga8d65e1daf239b7e190cec6f51dac20b3" title="This function tests reading MIDAS polynomials.">parse_midas_poly</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> {</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *p = NULL;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *data[] = {<span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>             <span class="stringliteral">"'COEFFI','I*4',1,7,'7I10'"</span>,</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>             <span class="stringliteral">"     53889         2         3         2         1         4         5"</span>,</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>             <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>             <span class="stringliteral">"'COEFFR','R*4',1,5,'5E14.7'"</span>,</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>             <span class="stringliteral">" 4.3300000E+02 4.0880000E+03 1.0000000E+00 2.1000000E+01 0.0000000E+00"</span>,</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>             <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>             <span class="stringliteral">"'COEFFD','R*8',1,30,'3E23.15'"</span>,</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>             <span class="stringliteral">" -7.097005629698889E+01  4.050908371864904E-02 -2.886756545398909E-06"</span>,</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>             <span class="stringliteral">"  5.504345508879626E-10 -5.583004967206025E-14  7.624532125635992E+01"</span>,</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>             <span class="stringliteral">" -2.428213567964009E-03  1.819158447566360E-06 -5.090366383338846E-10"</span>,</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>             <span class="stringliteral">"  5.198098506055602E-14  3.513177145982783E-01  5.570332137951829E-04"</span>,</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>             <span class="stringliteral">" -3.876157463910250E-07  1.113253735718822E-10 -1.132455173423791E-14"</span>,</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>             <span class="stringliteral">"  2.977232589499959E-02 -5.389240622889887E-05  3.777456726044612E-08"</span>,</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>             <span class="stringliteral">" -1.083863050648735E-11  1.098450510939580E-15 -1.093309039442914E-03"</span>,            </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>             <span class="stringliteral">"  2.402609262989674E-06 -1.688416547941747E-09  4.839101712729582E-13"</span>,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>             <span class="stringliteral">" -4.884504488944702E-17  1.919853952642526E-05 -4.004133160220927E-08"</span>,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>             <span class="stringliteral">"  2.816206503824200E-11 -8.051313882805877E-15  8.090579180112579E-19"</span>,</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>             <span class="stringliteral">" "</span>,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>             <span class="stringliteral">"'TAB_IN_OUT_YSHIFT','R*8',1,1,'3E23.15'"</span>,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>             <span class="stringliteral">"  4.180818583555659E+01            "</span>,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>             <span class="stringliteral">" "</span>};</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     <span class="comment">/* Create typical FLAMES ordef table header */</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     <span class="keywordflow">for</span> (i = 0; i < 8000; i++)</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     {</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>         uves_propertylist_append_string(</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>         header, <span class="stringliteral">"HISTORY"</span>,</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>         <span class="stringliteral">" 35834     35835     35836     35837     35838     35839     35840"</span>);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     }</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <span class="keywordflow">for</span> (i = 0; i < <span class="keyword">sizeof</span>(data)/<span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *); i++)</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     {</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         uves_propertylist_append_string(</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         header, <span class="stringliteral">"HISTORY"</span>,</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>         data[i]);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     }</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( p = uves_polynomial_convert_from_plist_midas(header, </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>                                   <span class="stringliteral">"COEFF"</span>,-1));</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     assure( <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p) == 2, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>         <span class="stringliteral">"Dimension is %d, 2 expected"</span>, <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p));</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> </div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>   cleanup:</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     uves_free_propertylist(&header);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> }</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno"><a class="code" href="group__uves__dfs.html#ga25c633cbad05c6881a85e9fa05ee067f">  268</a></span> <a class="code" href="group__uves__dfs.html#ga25c633cbad05c6881a85e9fa05ee067f" title="line table input">test_load_linetable</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> {</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> filename = <span class="stringliteral">"linetable.fits"</span>;</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     cpl_table *linetable_in = NULL;</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion = NULL;</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *absorder = NULL;</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *eheader = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     cpl_frame *f = cpl_frame_new();</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     cpl_frameset *frames = cpl_frameset_new();</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     <span class="keywordtype">bool</span> flames = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> chip_id = <span class="stringliteral">"CCD42"</span>;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     cpl_table *ordertable = NULL;</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     cpl_table *tracetable = NULL;</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations = NULL;</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     <span class="keywordtype">int</span> firstabs, lastabs;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     <span class="keyword">enum</span> uves_chip chip = UVES_CHIP_BLUE;</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     <span class="keywordtype">int</span> minorder = 1;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     <span class="keywordtype">int</span> maxorder = 5;</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     <span class="keywordtype">int</span> nx = 150;</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     <span class="comment">/*int ny = 100;*/</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     <span class="keywordtype">int</span> trace_id = 0;</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <span class="keywordtype">int</span> window = 1;</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     <span class="comment">/* output */</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *linetable_filename;</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     cpl_table *linetable_out = NULL;</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header_out = NULL;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_out = NULL;</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *absorder_out = NULL;</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="comment">/* build data */</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__test__simulate.html#ga81a0d2793233e8b9c72f1141a3168924" title="Create order table.">create_order_table</a>(&ordertable, &order_locations, &tracetable,</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>                                     minorder, maxorder, nx));</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__test__simulate.html#ga6fbf196c4ff48ceb9f9a5dc64830dffe" title="Create line table.">create_line_table</a>(&linetable_in, &dispersion, &absorder, </div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                                    &firstabs, &lastabs,</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                                    minorder, maxorder, nx));</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_propertylist_append_string(header, UVES_CHIP_ID(chip), chip_id));</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_propertylist_append_string(header, UVES_DRS_ID, <span class="stringliteral">"CPL"</span>));</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__pfits.html#ga33e51be1bfd4b8f42972789c417211ae" title="Write the first absolute order number.">uves_pfits_set_firstabsorder</a>(eheader, firstabs) );</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__pfits.html#ga69fae305f143947cdd58f3c575e7ba9a" title="Write the last absolute order number.">uves_pfits_set_lastabsorder</a>(eheader, lastabs) );</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__pfits.html#ga7ee7734c381f31039220820182a749c9" title="Write the trace ID.">uves_pfits_set_traceid</a>(eheader, trace_id) );</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__pfits.html#gab684709b2ade5e2322325761799e92d0" title="Write the window number.">uves_pfits_set_windownumber</a>(eheader, window) );</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_table_save(linetable_in, header, eheader, filename, CPL_IO_DEFAULT) );</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_save_polynomial(dispersion, filename, eheader) );</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_save_polynomial(absorder, filename, eheader) );</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     cpl_test_eq(cpl_error_get_code(), CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     cpl_frame_set_filename(f, filename);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     cpl_frame_set_tag(f, <span class="stringliteral">"LINE_TABLE_BLUE"</span>);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     cpl_frameset_insert(frames, f);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_load_linetable(frames,</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>                                      flames,</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>                                      chip_id,</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>                                      order_locations, minorder, maxorder,</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>                                      &linetable_filename,</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>                                      &linetable_out,</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>                                      &header_out,</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>                                      &dispersion_out,</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>                                      &absorder_out,</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>                                      chip, trace_id, window));</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     cpl_test_eq(cpl_error_get_code(), CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     cpl_test( linetable_out != NULL );</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     cpl_test( header_out != NULL );</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     cpl_test( dispersion_out != NULL );</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     cpl_test( absorder_out != NULL );</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     cpl_test_eq( cpl_table_get_nrow(linetable_in),</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>                     cpl_table_get_nrow(linetable_out) );</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     <span class="comment">/* not required: cpl_test_eq( cpl_table_get_ncol(linetable_in),</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="comment">       cpl_table_get_ncol(linetable_out) );</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     cpl_test_eq_string( filename, linetable_filename );</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     {</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>         <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>         <span class="keywordtype">int</span> x;</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>         </div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>         <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++) {</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>             <span class="keywordflow">for</span> (x = 1; x <= nx; x += nx/6) {</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>                 cpl_test_rel( </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>                     <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(absorder    , x, order),</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>                     <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(absorder_out, x, order), 0.001);</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>                 </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>                 cpl_test_rel( </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>                     <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(dispersion  , x, order),</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>                     <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(dispersion_out, x, order), 0.001);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>             }</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>         }</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     }</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>                 </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>   cleanup:</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     uves_free_frameset(&frames);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     uves_free_table(&linetable_in);</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     uves_free_table(&linetable_out);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&dispersion);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&absorder);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&dispersion_out);</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&absorder_out);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     uves_free_propertylist(&header_out);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     uves_free_propertylist(&header);</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     uves_free_propertylist(&eheader);</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     uves_free_table(&ordertable);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     uves_free_table(&tracetable);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> }</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00394"></a><span class="lineno"><a class="code" href="group__uves__dfs.html#ga88bbe197eb9fde07ce6d0764f542bc6b">  394</a></span> <a class="code" href="group__uves__dfs.html#ga88bbe197eb9fde07ce6d0764f542bc6b" title="this function tests reading MIDAS arrays">convert_midas_array</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> {</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *values[] = {<span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">""</span>, </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"'FIBREPOS','R*8',1,9,'3E23.15'"</span>,</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">" -3.243571124678650E+01 -2.309646501161805E+01 -1.402902770375962E+01"</span>,</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">" -4.772375924542811E+00  4.827040349175236E+00  1.378761244187003E+01"</span>,</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"  2.321337764943556E+01  3.243571124678650E+01 -3.552713678800501E-15"</span>,</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>                             <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"'COEFFR','R*4',1,20,'5E14.7'"</span>,</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                             <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"9.4893160E+00 4.0716226E+03 0.0000000E+00 2.3000000E+01 1.8538159E-04"</span>,</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>                             <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00"</span>,</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"'INTVAL','I"</span>,</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"1 2 3 4 5 6"</span>,</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"7"</span>,</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"'LEGAL','C"</span>,</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">" a sdfasdf"</span>,</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"'ILLEGAL','C"</span>,</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"1bsdf"</span>,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"bsdf"</span>,</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"'CHIPCHOICE','C"</span>,</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"abcd"</span>,</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                 <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">""</span>};</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     <span class="keywordtype">int</span> N = <span class="keyword">sizeof</span>(values) / <span class="keyword">sizeof</span>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) / 2;</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header = NULL;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     <span class="keywordtype">double</span> *resultd = NULL;</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     <span class="keywordtype">int</span> *resulti = NULL;</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     <span class="keywordtype">float</span> *resultf = NULL;</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *results = NULL;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     <span class="keywordtype">int</span> result_length, i;</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     <span class="keywordtype">int</span> nkeys;</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     cpl_type result_type;</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     {</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>         uves_propertylist_append_string(header, values[i*2], values[i*2+1]);</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     }</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> </div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(resultd = uves_read_midas_array(header, <span class="stringliteral">"FIBREPOS"</span>, &result_length,</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>                                                &result_type, &nkeys));</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> </div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     cpl_test_eq(result_type, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     cpl_test_eq(result_length, 9);</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     cpl_test_eq(nkeys, 5);</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     <span class="comment">/* Check numbers, see above */</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>     cpl_test_rel(resultd[0], -32, 0.10);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     cpl_test_rel(resultd[3], -4.7, 0.10);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     cpl_test_rel(resultd[6], 23, 0.10);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     cpl_test( fabs(resultd[8]) < 0.001);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     <span class="comment">/* float */</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(resultf = uves_read_midas_array(header, <span class="stringliteral">"COEFFR"</span>, &result_length,</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                                                 &result_type, &nkeys));</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     cpl_test_eq(result_type, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     cpl_test_eq(result_length, 10);</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>     cpl_test_eq(nkeys, 4);</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>     cpl_test_rel(resultf[0], 9.489, 0.01);</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     cpl_test_rel(resultf[1], 4071,  0.01);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>     cpl_test_abs(resultf[2], 0.000, 0.01);</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>     cpl_test_rel(resultf[3], 23.00, 0.01);</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     <span class="comment">/* integer */</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(resulti = uves_read_midas_array(header, <span class="stringliteral">"INTVAL"</span>, &result_length,</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                                                &result_type, &nkeys));</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     cpl_test_eq(result_type, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>     cpl_test_eq(result_length, 7);</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     cpl_test_eq(nkeys, 4);</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     <span class="keywordflow">for</span> (i = 1; i <= 7; i++)</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>         {</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>             cpl_test_eq(resulti[i-1], i);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>         }</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     <span class="comment">/* string */</span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( results = uves_read_midas_array(header, <span class="stringliteral">"LEGAL"</span>, &result_length,</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>                                        &result_type, &nkeys) );</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>     cpl_test_eq(result_type, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     cpl_test_eq(result_length, 10);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     cpl_test_eq(nkeys, 3);</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     cpl_test_eq_string(results, <span class="stringliteral">" a sdfasdf"</span>);</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     cpl_test(uves_read_midas_array(header, <span class="stringliteral">"ILLEGAL2"</span>, &result_length,</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>                                       &result_type, &nkeys) == NULL);</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     uves_free_string_const(&results);</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(results = uves_read_midas_array(header, <span class="stringliteral">"CHIPCHOICE"</span>, &result_length,</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>                                                &result_type, &nkeys));</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>     cpl_test_eq(result_type, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     cpl_test_eq(result_length, 4);</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     cpl_test_eq(nkeys, 3);</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     cpl_test_eq_string(results, <span class="stringliteral">"abcd"</span>);</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     <span class="comment">/* Performance test (relevant for long FLAMES FITS headers) */</span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     N = 9000;</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     uves_free_propertylist(&header);</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     uves_propertylist_append_string(header, <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"'SELIDX','I*4',1,48389,'7I10'"</span>);</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     {</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>         uves_propertylist_append_string(</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>                 header, <span class="stringliteral">"HISTORY"</span>, </div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>                 <span class="stringliteral">"  64605     64606     64607     64608     64609     64610     64611"</span>);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>     }</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     uves_propertylist_append_string(header, <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>     uves_free_int(&resulti);</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( resulti = uves_read_midas_array(header, <span class="stringliteral">"SELIDX"</span>, &result_length,</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>                                                  &result_type, &nkeys));</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     cpl_test_eq(result_type, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     cpl_test_eq(result_length, N*7);</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>     cpl_test_eq(nkeys, 1+N+1);</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>   cleanup:</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>     uves_free_propertylist(&header);</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>     uves_free_double(&resultd);</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>     uves_free_int(&resulti);</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     uves_free_float(&resultf);</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     uves_free_string_const(&results);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> }</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>    </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00534"></a><span class="lineno"><a class="code" href="group__uves__dfs.html#ga55bd09e356002a31fb5223db095c6658">  534</a></span> <a class="code" href="group__uves__dfs.html#ga55bd09e356002a31fb5223db095c6658" title="test image output">test_save_image</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> {</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> N = 100;</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>     cpl_image *image = cpl_image_new(N, 1, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> </div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     <span class="keywordtype">double</span> inf = DBL_MAX;</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>     <span class="keywordflow">for</span> (i = 1; i <= N; i++)</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     {</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>         cpl_image_set(image, i, 1, -FLT_MAX*200);</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>         inf *= 10;</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     }</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> </div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> </div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>     cpl_image_set(image, 1, 1, inf);</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     cpl_image_set(image, 2, 1, inf/inf);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>     uves_save_image(image, <span class="stringliteral">"dfs.fits"</span>, NULL, <span class="keyword">true</span>, <span class="keyword">true</span>);</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     uves_free_image(&image);</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> </div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> }</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> </div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00564"></a><span class="lineno"><a class="code" href="group__uves__dfs.html#ga8168aec179eed4c63b7f9c61b94d2e2b">  564</a></span> <a class="code" href="group__uves__dfs.html#ga8168aec179eed4c63b7f9c61b94d2e2b" title="test pipeline product creation">test_save_frame</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> {</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>     cpl_frameset *frames = cpl_frameset_new();</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     cpl_parameterlist *parameters = cpl_parameterlist_new();</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>     <span class="keywordtype">int</span> nx = 1500;</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>     <span class="keywordtype">int</span> ny = 1024;</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>     <span class="keywordtype">int</span> nkey = 360;</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>     cpl_image *image = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *product_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime;</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id = <span class="stringliteral">"uves_cal_phony"</span>;</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tag = <span class="stringliteral">"PHONY_TAG"</span>;</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *raw_filename = <span class="stringliteral">"raw_file.fits"</span>;</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>     uves_define_global_parameters(parameters);</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>     cpl_test_eq( cpl_error_get_code(), CPL_ERROR_NONE );</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> </div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>     <span class="comment">/* Create raw image */</span></div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>     {</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>         cpl_image *raw_image = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>         cpl_frame *raw_frame = cpl_frame_new();</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> </div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>         {</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>             <span class="keywordflow">for</span> (i = 0; i < nkey; i++)</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>                 {</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *key_name = uves_sprintf(<span class="stringliteral">"KEY%d"</span>, i);</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>                     uves_propertylist_append_int(raw_header, key_name, i);</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>                     uves_free_string_const(&key_name);</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>                 }</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>             uves_propertylist_append_string(raw_header, <span class="stringliteral">"ORIGIN"</span>, <span class="stringliteral">"unknown..."</span>);</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>         }</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>         uves_image_save(raw_image, </div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>                         raw_filename,</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>                         CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>                         raw_header,</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                         CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>         cpl_test_eq( cpl_error_get_code(), CPL_ERROR_NONE );</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>         </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>         uves_free_image(&raw_image);</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>         <span class="comment">/* Wrap frame */</span></div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>         cpl_frame_set_tag(raw_frame, <span class="stringliteral">"BIAS_BLUE"</span>); <span class="comment">/* Use recognized tag,</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> <span class="comment">                                                      so that FRAME_TYPE</span></div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> <span class="comment">                                                      is set to RAW */</span></div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>         cpl_frame_set_filename(raw_frame, raw_filename);</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>         cpl_frameset_insert(frames, raw_frame);</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>     }</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> </div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>     starttime = <a class="code" href="group__uves__utils.html#ga91713592f345a0d1a44e37a50202d6ed" title="Recipe initialization.">uves_initialize</a>(frames, parameters, recipe_id,</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>                                 <span class="stringliteral">"This recipe does not do anything"</span>);</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>     cpl_test_eq( cpl_error_get_code(), CPL_ERROR_NONE );</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> </div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     uves_frameset_insert(frames, </div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>                          image, </div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                          CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>                          CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>                          CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>                          <span class="stringliteral">"dfs_product.fits"</span>,</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>                          tag,</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>                          raw_header,</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>                          product_header,</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>                          NULL, <span class="comment">/* table header */</span></div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>                          parameters, </div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>                          recipe_id,</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>                          PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>                          NULL, <span class="comment">/* qc table */</span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>                          starttime,</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>                          <span class="keyword">false</span>,   <span class="comment">/* dump PAF */</span></div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>                          0   <span class="comment">/* stats_mask */</span>);</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> </div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>     cpl_test_eq( cpl_error_get_code(), CPL_ERROR_NONE );</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>     cpl_test( cpl_frameset_find(frames, tag) != NULL);</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     uves_free_frameset(&frames);</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     uves_free_parameterlist(&parameters);</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>     uves_free_image(&image);</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>     uves_free_propertylist(&raw_header);</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     uves_free_propertylist(&product_header);</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>     uves_free_string_const(&starttime);</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> }</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span> </div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> </div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> </div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> {</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>     <span class="comment">/* Initialize CPL + UVES messaging */</span></div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span> <span class="preprocessor"></span>    cpl_errorstate initial_errorstate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span> <span class="preprocessor"></span><span class="comment">//    cpl_msg_set_level(CPL_MSG_DEBUG);</span></div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> </div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__dfs.html#ga8d65e1daf239b7e190cec6f51dac20b3" title="This function tests reading MIDAS polynomials.">parse_midas_poly</a>(),</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>        <span class="stringliteral">"Test of MIDAS array conversion"</span>);</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> </div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__dfs.html#ga25c633cbad05c6881a85e9fa05ee067f" title="line table input">test_load_linetable</a>() );</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__dfs.html#ga88bbe197eb9fde07ce6d0764f542bc6b" title="this function tests reading MIDAS arrays">convert_midas_array</a>(),</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>        <span class="stringliteral">"Test of MIDAS array conversion failed"</span>);</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> </div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__dfs.html#ga55bd09e356002a31fb5223db095c6658" title="test image output">test_save_image</a>() );</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> </div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__dfs.html#ga8168aec179eed4c63b7f9c61b94d2e2b" title="test pipeline product creation">test_save_frame</a>() );</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> </div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>   cleanup:</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>         {</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> <span class="preprocessor"></span>      cpl_errorstate_dump(initial_errorstate,CPL_FALSE,NULL);</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__error.html#ga7e6bb359a87117dfc0e2c38d9f5d0108">uves_error_dump</a>();</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> }</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span> </div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__dfs_8c_source.html b/html/uves__dfs_8c_source.html
deleted file mode 100644
index cd7d9b6..0000000
--- a/html/uves__dfs_8c_source.html
+++ /dev/null
@@ -1,5797 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_dfs.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_dfs.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2002, 2003, 2004, 2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-04-16 15:48:48 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.272 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.271  2012/03/02 16:29:02  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * fixed warning related to upgrade to CPL6</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.270  2012/03/02 16:23:59  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * fixed compiler warnings related to CPL6 upgrade</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.269  2012/01/12 16:43:41  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * fixed compiler warnings with CPL6</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.268  2011/12/08 14:07:24  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Fix warnings with CPL6</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.267  2011/04/08 08:11:33  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * removed paf generation</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.266  2010/12/09 17:33:55  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * corredted wavemap filename</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.265  2010/11/26 07:41:49  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * added uves_scired_wmap_filename()</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.264  2010/09/24 09:32:02  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.262  2010/06/07 17:41:49  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * added uves_scired_fluxcal_science_noappend_filename(),uves_scired_fluxcal_error_noappend_filename()</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.261  2010/06/07 13:24:20  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Fixed typo in PRO.CATG and PIPEFILE of products in case of merging option is noappend: NOAPPEND-->NONMERGED</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.260  2010/06/07 11:12:02  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * added uves_scired_red_noappend_error_filename()</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.259  2010/06/04 09:50:10  amodigli</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * added UVES_RED_NOAPPEND_STD, uves_response_red_noappend_standard_filename() uves_scired_red_noappend_science_filename()</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.258  2010/05/19 13:28:51  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * rename uves_extraction_quality_standard_filename->uves_order_extract_qc_standard_filename, UVES_EXTRACTION_QUALITY->UVES_ORDER_EXTRACT_QC</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.257  2010/05/18 17:09:24  amodigli</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * added UVES_EXTRACTION_QUALITY and uves_extraction_quality_standard_filename</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.256  2010/02/10 17:20:10  amodigli</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * added classification of UVES_ORD_TAB: 'FIB_ORD_TAB_CHIP' as CALIB</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.255  2009/11/09 15:15:16  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * added check on input file existance</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.254  2009/03/04 12:58:58  amodigli</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * added uves_scired_resampled_2d_filename()</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.253  2009/02/20 18:21:22  amodigli</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * added RAW_IMA</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.252  2009/01/02 08:30:03  amodigli</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * added uves_contains_frames_kind</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.251  2008/09/29 06:55:19  amodigli</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.250  2008/09/15 07:03:45  amodigli</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * remove qfits dependance</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.249  2008/08/29 09:52:20  amodigli</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * fixed compiler warning</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.248  2008/06/26 08:26:36  amodigli</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * removed static from uves_local_filename and fixed bug on FLAMES_CORVEL_MASK read</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.247  2008/02/27 15:01:26  amodigli</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * cleaned output</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.246  2008/02/15 11:46:03  amodigli</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * fixed bug to load pipe generated INSTR_RESPONSE curve</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.245  2008/02/05 14:09:53  amodigli</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * collate 2 image estension for BLUE arm 626KHz</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.244  2008/02/05 13:51:36  amodigli</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * fixed compilation warnings</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.243  2008/02/01 12:48:16  amodigli</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * modified load_raw_image in order to support new BLUE arm FITS FORMAT with multi estention active since 2008-01-18</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.242  2007/12/03 16:29:55  amodigli</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * commented out uves_propertylist_copy_property_regexp command to copy HIERARCH ESO keywords as was screwing up the header of the rotated-cropped frame</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.241  2007/12/03 07:59:15  amodigli</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * use uves_propertylist_copy_property_regexp to copy some HIERARCH keys to 'debug' product</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.240  2007/10/30 17:45:03  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Added WEIGHTS_<chip> images to support object weighted arclamp extraction</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.239  2007/10/17 14:58:59  amodigli</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * added uves_check_if_format_is_midas and fixed compilation warnings</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.238  2007/10/15 06:39:13  amodigli</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * keep 'Fibre' column in linetable to make work flames-uves data reduction chain</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.237  2007/10/01 17:07:49  amodigli</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * cleaned output</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.236  2007/09/19 11:09:49  amodigli</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Now FLAMES_FIB_FF_DT is a macro</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.235  2007/09/12 13:11:56  amodigli</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * fixed bug with UVES-ech data reduction</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.234  2007/09/11 17:08:07  amodigli</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * added uves_polynomial_convert_from_plist_midas from uves_utils_polynomial.h</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Revision 1.233  2007/09/06 15:48:42  amodigli</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * added info on old/new format</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Revision 1.232  2007/09/06 14:15:16  amodigli</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * changed filenames science products</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Revision 1.231  2007/08/24 06:43:37  amodigli</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * fixed compilation warnings</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Revision 1.230  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Revision 1.229  2007/08/20 07:59:15  amodigli</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * update to CPL4</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Revision 1.228  2007/08/16 13:21:15  amodigli</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * added uves_scired_red_2d_error_filename</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Revision 1.227  2007/08/16 06:49:47  amodigli</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * added uves_vector_to_image</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Revision 1.226  2007/08/10 12:10:35  amodigli</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * changed 2d extraction product file names as by DFS04196</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> * Revision 1.225  2007/07/27 14:17:07  amodigli</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * commented out code to remove blanks (' ') from  string descriptors. Added code to check that HISTORY keywords are in group of 3 lines, 2 not empty and the last empty</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> * Revision 1.224  2007/07/25 10:56:23  amodigli</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * fixed small leak</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> * Revision 1.223  2007/07/25 10:52:17  amodigli</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * fixed problem with images with NAXIS=1 and CPL4</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> * Revision 1.222  2007/07/23 06:30:50  amodigli</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * added FLAMES_FIB_FF_DT</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> * Revision 1.221  2007/07/03 12:40:03  amodigli</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> * added FLAMES_CORVEL_MASK FLAMES_SCI_SIM_RED and support for cubes FIB_FF and SLIT_FF</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"> * Revision 1.220  2007/06/29 10:47:50  jmlarsen</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> * load_linetable: Assume MIDAS like format if FLAMES</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> * Revision 1.219  2007/06/28 09:17:16  jmlarsen</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> * Make work order table column renaming for FLAMES</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> * Revision 1.218  2007/06/26 14:48:11  jmlarsen</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"> * Removed unused variable</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment"> * Revision 1.217  2007/06/26 14:46:01  jmlarsen</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment"> * Do not try to read dispersion polynomial when not requested</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment"> * Revision 1.216  2007/06/26 14:04:35  jmlarsen</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment"> * Save with BITPIX16 for FLAMES orderpos</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment"> * Revision 1.215  2007/06/26 13:34:52  jmlarsen</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment"> * Exported function for FLAMES</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment"> * Revision 1.214  2007/06/25 15:43:45  jmlarsen</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment"> * uves_frameset_insert(): propagate custom keywords before, not after, calling cpl_dfs_setup_product_header</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment"> * Revision 1.213  2007/06/25 05:55:11  amodigli</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment"> * added FLAMES_SCI_RED FLAMES_SCI_COM_RED to raw frames list</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> * Revision 1.212  2007/06/22 14:50:46  jmlarsen</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"> * Optionally save height=1 images as NAXIS=1</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"> * Revision 1.211  2007/06/22 11:15:05  jmlarsen</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment"> * uves_save_image(): Also save float images with NAXIS=1 when height is 1</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> * Revision 1.210  2007/06/22 09:30:08  jmlarsen</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment"> * Allow saving CPL_TYPE_INT images as 16 or 32 bit FITS</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment"> * Revision 1.209  2007/06/20 15:49:05  jmlarsen</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment"> * Enabled check for NULL polynoimal</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment"> * Revision 1.208  2007/06/20 13:05:17  amodigli</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment"> * commented assure not to make fail a test case</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment"> * Revision 1.207  2007/06/20 08:32:52  amodigli</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment"> * updated uves_load_linetable to support FIBER mode</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment"> * Revision 1.206  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment"> * Revision 1.205  2007/05/23 12:50:53  jmlarsen</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment"> * Replace isnan/isinf -> irplib_isnan/irplib_isinf</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment"> * Revision 1.204  2007/05/16 14:56:27  jmlarsen</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="comment"> * Fixed error message</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment"> * Revision 1.203  2007/05/16 11:47:18  amodigli</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment"> * added FLAMES_SCI_COM_RED</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment"> * Revision 1.202  2007/05/04 08:55:15  amodigli</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="comment"> * moved up declaration of img to suppress compilation warning</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment"> * Revision 1.201  2007/05/03 15:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment"> * Added const version of uves_load_linetable()</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment"> * Revision 1.200  2007/05/02 13:36:14  jmlarsen</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment"> * Decreased verbosity of debug message</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment"> * Revision 1.199  2007/05/02 13:16:30  jmlarsen</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment"> * Fixed error message typo</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment"> * Revision 1.198  2007/04/26 13:19:11  jmlarsen</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment"> * Exported function copy_if_possible</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment"> * Revision 1.197  2007/04/24 16:44:26  amodigli</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment"> * changed interface uves_load_ordertable to return also extention table</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment"> * Revision 1.196  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment"> * Revision 1.195  2007/04/23 06:59:29  amodigli</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="comment"> * added uves_save_imagelist</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment"> * Revision 1.194  2007/04/12 12:15:12  jmlarsen</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="comment"> * Propagate keyword OS-EXPOI</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="comment"> * Revision 1.193  2007/04/12 11:58:46  jmlarsen</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="comment"> * Rename order table column if necessary</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment"> * Revision 1.192  2007/04/10 07:06:59  jmlarsen</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment"> * Take into account 64 pixel gap in REDU CRVAL2 computation</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment"> * Revision 1.191  2007/04/04 06:27:06  jmlarsen</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment"> * Fixed malloc -> cpl_malloc</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment"> * Revision 1.190  2007/04/03 11:02:25  jmlarsen</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment"> * Support reading float MIDAS arrays</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment"> * Revision 1.189  2007/04/03 08:03:59  jmlarsen</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment"> * uves_read_midas_array: support arrays of any length</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment"> * Revision 1.188  2007/04/03 06:28:45  amodigli</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment"> * uves_load_ordertable provides now fibre_mask and fibre_pos if appropriate</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment"> * Revision 1.187  2007/03/30 07:06:59  jmlarsen</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment"> * Initialize variables to suppress warnings</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment"> * Revision 1.186  2007/03/23 07:59:30  jmlarsen</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment"> * Fixed minor memory leak</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="comment"> * Revision 1.185  2007/03/20 15:39:46  amodigli</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment"> * added FLAMES tags</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="comment"> * Revision 1.184  2007/03/20 07:26:57  jmlarsen</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="comment"> * Don't remove std star from flux table which has NULL type</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment"> * Revision 1.183  2007/03/15 15:04:34  jmlarsen</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="comment"> * Allow spaces in HISTORY keyword string values</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment"> * Revision 1.182  2007/03/05 10:16:12  jmlarsen</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment"> * Define 'dWave' as constant</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment"> * Revision 1.181  2007/02/27 14:04:35  jmlarsen</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment"> * Added comment</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="comment"> * Revision 1.180  2007/02/26 13:27:53  jmlarsen</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="comment"> * Partial workaround for slow uves_propertylist_copy_property_regexp()</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment"> * Revision 1.179  2007/02/22 15:33:24  jmlarsen</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="comment"> * Redefine catalogue wavelength uncertainties to better match new catalogue</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="comment"> * Revision 1.178  2007/02/14 14:06:34  jmlarsen</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="comment"> * Use REF_TFLAT, not MASTER_TFLAT as master</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="comment"> * Revision 1.177  2007/02/12 10:09:33  jmlarsen</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="comment"> * Fixed recently introduced bug that REDL image was loaded twice, instead of REDL + REDU</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="comment"> * Revision 1.176  2007/02/09 13:36:04  jmlarsen</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="comment"> * Added function to load ref_flat</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment"> * Revision 1.175  2007/02/09 08:51:06  jmlarsen</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment"> * Use define's rather than hard-coded recipe names</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment"> * Revision 1.174  2007/02/09 08:03:08  jmlarsen</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="comment"> * Changed definition of CRVAL in products</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="comment"> * Revision 1.173  2007/02/08 07:33:01  jmlarsen</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="comment"> * Added uves_load_cd_align(), changed CRVAL computation</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment"> * Revision 1.172  2007/02/01 07:23:44  jmlarsen</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="comment"> * Removed debugging code</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="comment"> * Revision 1.171  2007/01/31 15:18:52  jmlarsen</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="comment"> * Write +- FLT_MAX to FITS file if double value out of range</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment"> * Revision 1.170  2007/01/31 15:10:34  jmlarsen</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="comment"> * Avoid inf+nan when saving FITS files</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="comment"> * Revision 1.169  2007/01/17 13:25:39  jmlarsen</span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="comment"> * Added uves_load_image()</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="comment"> * Revision 1.168  2007/01/16 10:27:30  jmlarsen</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment"> * Implemented self-consistent propagation of FITS geometry keywords</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment"> * Revision 1.167  2007/01/15 08:45:27  jmlarsen</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="comment"> * Added comment</span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment"> * Revision 1.166  2007/01/10 12:37:16  jmlarsen</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment"> * Exported function to warn about mismatching calibration frames</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="comment"> * Revision 1.165  2007/01/09 17:45:42  amodigli</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="comment"> * added uves_check_rec_status</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> <span class="comment"> * Revision 1.164  2006/12/12 12:09:14  jmlarsen</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment"> * Added function to load corvel table</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="comment"> * Revision 1.163  2006/12/11 12:34:01  jmlarsen</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> <span class="comment"> * Use date to determine new/old format</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="comment"> * Revision 1.162  2006/12/07 08:22:59  jmlarsen</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> <span class="comment"> * uves_load_raw_imagelist: support FLAMES</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="comment"> * Revision 1.161  2006/12/01 08:26:56  jmlarsen</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <span class="comment"> * Load FLAMES order table oshift/yshift</span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="comment"> * Revision 1.160  2006/11/24 16:21:07  jmlarsen</span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="comment"> * Added FIB_LINE_TABLE_x</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="comment"> * Revision 1.159  2006/11/24 11:10:14  jmlarsen</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="comment"> * Support for loading FLAMES guess line table</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <span class="comment"> * Revision 1.158  2006/11/24 09:35:40  jmlarsen</span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> <span class="comment"> * Workaround for slow uves_propertylist_get_size</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="comment"> * Revision 1.157  2006/11/23 10:04:11  jmlarsen</span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="comment"> * Minor message change</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> <span class="comment"> * Revision 1.156  2006/11/22 08:39:55  jmlarsen</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="comment"> * Exported and fixed bug in uves_read_midas_array</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="comment"> * Revision 1.154  2006/11/22 08:22:29  jmlarsen</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="comment"> * Set message level according to preprocessor symbol</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="comment"> * Revision 1.153  2006/11/16 14:08:33  jmlarsen</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment"> * Implemented loading FLAMES ordertable</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="comment"> * Revision 1.152  2006/11/16 09:51:13  jmlarsen</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="comment"> * Use compile time branching to support both released and development CPL versions</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> <span class="comment"> * Revision 1.151  2006/11/16 08:32:03  jmlarsen</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="comment"> * Save CPL_TYPE_INT images as 16 bit unsigned, to support flames_cal_orderpos</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> <span class="comment"> * Revision 1.150  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> <span class="comment"> * Revision 1.148  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already </span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> <span class="comment"> * Revision 1.147  2006/11/13 14:23:55  jmlarsen</span></div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> <span class="comment"> * Removed workarounds for CPL const bugs</span></div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> <span class="comment"> * Revision 1.146  2006/11/13 12:44:31  jmlarsen</span></div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="comment"> * Support FLAMES FIB_ARC_LAMP_RED frames</span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <span class="comment"> * Revision 1.145  2006/11/08 14:03:31  jmlarsen</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> <span class="comment"> * Fixed doc bug when warning about deprecated background table</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> <span class="comment"> * Revision 1.144  2006/11/08 08:03:26  jmlarsen</span></div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> <span class="comment"> * Avoid initializers not computable at compile time, for portability</span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="comment"> * Revision 1.143  2006/11/07 14:01:10  jmlarsen</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="comment"> * Moved flames_load_ functions to separate source file</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> <span class="comment"> * Revision 1.142  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="comment"> * Revision 1.141  2006/11/03 15:01:21  jmlarsen</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> <span class="comment"> * Killed UVES 3d table module and use CPL 3d tables</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> <span class="comment"> * Revision 1.140  2006/10/26 14:02:41  jmlarsen</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> <span class="comment"> * Removed redundant goto</span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> <span class="comment"> * Revision 1.139  2006/10/24 14:05:23  jmlarsen</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> <span class="comment"> * Generalized load functions to support FLAMES</span></div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> <span class="comment"> * Revision 1.138  2006/10/19 13:53:25  jmlarsen</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> <span class="comment"> * Changed guess line table tag to LINE_GUESS_TAB</span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="comment"> * Revision 1.137  2006/10/12 11:37:28  jmlarsen</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="comment"> * Temporarily disabled FLAMES code generation</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> <span class="comment"> * Revision 1.136  2006/10/10 11:29:24  jmlarsen</span></div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> <span class="comment"> * Added code to propagate TM-START</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> <span class="comment"> * Revision 1.135  2006/10/10 11:20:47  jmlarsen</span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="comment"> * Renamed line table columns to match MIDAS</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> <span class="comment"> * Revision 1.134  2006/10/05 11:14:59  jmlarsen</span></div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="comment"> * Removed debugging code</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> <span class="comment"> * Revision 1.133  2006/10/02 08:34:04  jmlarsen</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="comment"> * Added REF_TFLAT</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> <span class="comment"> * Revision 1.132  2006/09/27 13:13:26  jmlarsen</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="comment"> * Use dynamic memory allocation to store bad pixels</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> <span class="comment"> * Revision 1.131  2006/09/20 15:42:17  jmlarsen</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="comment"> * Implemented MASTER_RESPONSE support</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <span class="comment"> * Revision 1.130  2006/09/20 10:56:50  jmlarsen</span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> <span class="comment"> * Propagate DATAMEAN/DATAMED/DATARMS if present</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> <span class="comment"> * Revision 1.129  2006/09/19 14:25:30  jmlarsen</span></div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <span class="comment"> * Propagate FITS keywords from master flat, not science, to WCALIB_FLAT_OBJ</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> <span class="comment"> * Revision 1.128  2006/09/19 06:55:06  jmlarsen</span></div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> <span class="comment"> * Changed interface of uves_frameset to optionally write image statistics kewwords</span></div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> <span class="comment"> * Revision 1.127  2006/09/14 08:46:51  jmlarsen</span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> <span class="comment"> * Added support for TFLAT, SCREEN_FLAT frames</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> <span class="comment"> * Revision 1.126  2006/09/08 14:04:41  jmlarsen</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> <span class="comment"> * Documentation update</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> <span class="comment"> * Revision 1.125  2006/08/31 07:24:57  jmlarsen</span></div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> <span class="comment"> * Fixed buffer overruns happening when raw frames are not available</span></div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> <span class="comment"> * Revision 1.124  2006/08/24 11:36:56  jmlarsen</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> <span class="comment"> * Revision 1.123  2006/08/23 09:33:03  jmlarsen</span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> <span class="comment"> * Renamed local variables shadowing POSIX reserved names</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> <span class="comment"> * Revision 1.122  2006/08/21 07:53:17  jmlarsen</span></div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> <span class="comment"> * Added debug message</span></div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> <span class="comment"> * Revision 1.121  2006/08/18 13:32:13  jmlarsen</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> <span class="comment"> * Use legal FITS keywords for TRACEID/WINDOW/FABSORD/LABSORD</span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> <span class="comment"> * Revision 1.120  2006/08/18 07:07:43  jmlarsen</span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> <span class="comment"> * Switched order of cpl_calloc arguments</span></div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> <span class="comment"> * Revision 1.119  2006/08/17 14:11:25  jmlarsen</span></div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> <span class="comment"> * Use assure_mem macro to check for memory allocation failure</span></div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> <span class="comment"> * Revision 1.118  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="comment"> * Revision 1.117  2006/08/17 13:04:10  jmlarsen</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> <span class="comment"> * Revision 1.116  2006/08/17 09:17:15  jmlarsen</span></div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> <span class="comment"> * Removed CPL2 code</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> <span class="comment"> * Revision 1.115  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> <span class="comment"> * Revision 1.114  2006/08/11 11:26:59  jmlarsen</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> <span class="comment"> * Change text message</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="comment"> * Revision 1.113  2006/08/11 08:59:07  jmlarsen</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> <span class="comment"> * Take into account the different meanings of line table 'Y' column</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> <span class="comment"> * Revision 1.112  2006/08/08 12:55:00  jmlarsen</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> <span class="comment"> * Support uppercase column names when loading linetable</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> <span class="comment"> * Revision 1.111  2006/08/08 11:27:18  amodigli</span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> <span class="comment"> * upgrade to CPL3</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="comment"> * Revision 1.110  2006/08/07 14:42:02  jmlarsen</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> <span class="comment"> * Implemented on-the-fly correction of a line table when its </span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> <span class="comment"> * order numbering is inconsistent with the order table (DFS02694)</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> <span class="comment"> * Revision 1.109  2006/08/07 12:14:13  jmlarsen</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> <span class="comment"> * Removed unused code</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> <span class="comment"> * Revision 1.108  2006/08/01 14:43:36  amodigli</span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <span class="comment"> * fixed bug loading fitsheader in uves_load_masterformatcheck</span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> <span class="comment"> * Revision 1.107  2006/07/31 06:29:05  amodigli</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="comment"> * added flames_load_frame_index</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="comment"> * Revision 1.106  2006/07/14 12:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="comment"> * Support multiple QC tests per product</span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="comment"> * Revision 1.105  2006/07/03 12:59:14  jmlarsen</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="comment"> * Changed message to debug level</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="comment"> * Revision 1.104  2006/06/29 07:57:21  amodigli</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="comment"> * fixed warning messages from make html</span></div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> <span class="comment"> * Revision 1.103  2006/06/29 07:32:05  amodigli</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <span class="comment"> * removed warning from make html</span></div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> <span class="comment"> * Revision 1.102  2006/06/28 13:27:50  amodigli</span></div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> <span class="comment"> * Fixed problem dumping ARCFILE key changing uves_save_paf interface</span></div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> <span class="comment"> * Revision 1.101  2006/06/26 07:54:14  amodigli</span></div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> <span class="comment"> * flames_load_image flames_load_table</span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> <span class="comment"> * Revision 1.100  2006/06/23 15:31:32  amodigli</span></div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> <span class="comment"> * added useful stuff for flames</span></div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> <span class="comment"> * Revision 1.99  2006/06/22 15:25:35  amodigli</span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> <span class="comment"> * changes for flames_cal_prep_sff_ofpos</span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> <span class="comment"> * Revision 1.98  2006/06/22 12:03:56  amodigli</span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="comment"> * clean msg warning</span></div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> <span class="comment"> * Revision 1.97  2006/06/22 09:42:56  jmlarsen</span></div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> <span class="comment"> * Removed syntax error</span></div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> <span class="comment"> * Revision 1.96  2006/06/22 08:57:38  jmlarsen</span></div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> <span class="comment"> * Changed a few messages</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> <span class="comment"> * Revision 1.95  2006/06/22 06:42:38  amodigli</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> <span class="comment"> * fixed some compilation warnings</span></div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> <span class="comment"> * Revision 1.94  2006/06/20 08:25:56  amodigli</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> <span class="comment"> * fixed doxigen warnings</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> <span class="comment"> * Revision 1.93  2006/06/19 06:51:14  amodigli</span></div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> <span class="comment"> * added support flames-old format</span></div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> <span class="comment"> * Revision 1.92  2006/06/16 08:22:01  jmlarsen</span></div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> <span class="comment"> * Manually propagate ESO.DET. keywords from 1st/2nd input header</span></div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> <span class="comment"> * Revision 1.91  2006/06/13 11:55:06  jmlarsen</span></div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> <span class="comment"> * Revision 1.90  2006/06/05 08:51:55  amodigli</span></div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> <span class="comment"> * cleaned some warnings from static checks</span></div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> <span class="comment"> * Revision 1.89  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> <span class="comment"> * Revision 1.88  2006/06/01 14:21:02  amodigli</span></div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> <span class="comment"> * frm --> frm_tmp, dup --> frm_dup</span></div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> <span class="comment"> * Revision 1.87  2006/05/31 09:51:01  amodigli</span></div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> <span class="comment"> * removed compilation warning</span></div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> <span class="comment"> * Revision 1.86  2006/05/22 06:47:15  amodigli</span></div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span> <span class="comment"> * fixed some bugs on msflat</span></div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> <span class="comment"> * Revision 1.85  2006/05/19 13:07:52  amodigli</span></div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> <span class="comment"> * modified to support SFLATs</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="comment"> * Revision 1.84  2006/05/17 09:54:55  amodigli</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> <span class="comment"> * added supposr SFLATs</span></div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> <span class="comment"> * Revision 1.82  2006/05/15 06:09:52  amodigli</span></div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> <span class="comment"> * added support for some FLAMES input frames</span></div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> <span class="comment"> * Revision 1.81  2006/05/12 15:01:30  jmlarsen</span></div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> <span class="comment"> * Changed msg level warning -> debug when there's no QC log</span></div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> <span class="comment"> * Revision 1.80  2006/04/25 14:58:48  amodigli</span></div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> <span class="comment"> * added paf creation functionalities</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> <span class="comment"> * Revision 1.79  2006/04/24 09:18:06  jmlarsen</span></div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> <span class="comment"> * Minor message change</span></div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> <span class="comment"> * Revision 1.78  2006/04/20 10:48:20  amodigli</span></div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> <span class="comment"> * inform that no QC log is provided</span></div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> <span class="comment"> * Revision 1.77  2006/04/10 12:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> <span class="comment"> * Simplified the save-product function</span></div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span> <span class="comment"> * Revision 1.76  2006/04/06 13:12:54  jmlarsen</span></div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> <span class="comment"> * Fixed doc. bug</span></div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> <span class="comment"> * Revision 1.75  2006/04/06 12:56:50  jmlarsen</span></div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span> <span class="comment"> * Added support for PDARK, IFLAT, DLFAT frames</span></div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span> <span class="comment"> * Revision 1.74  2006/04/06 11:48:17  jmlarsen</span></div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> <span class="comment"> * Support for SCI_POINT_-, SCI_EXTND_- and SCI_SLICER-frames</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> <span class="comment"> * Revision 1.73  2006/04/06 09:48:15  amodigli</span></div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> <span class="comment"> * changed uves_frameset_insert interface to have QC log</span></div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> <span class="comment"> * Revision 1.72  2006/04/06 08:31:15  jmlarsen</span></div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> <span class="comment"> * Added support for reading MASTER_DFLAT, MASTER_IFLAT, MASTER_PDARK</span></div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> <span class="comment"> * Revision 1.71  2006/03/24 14:24:29  jmlarsen</span></div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> <span class="comment"> * Don't blindly stack flat-fields of different wavelenghts</span></div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span> <span class="comment"> * Revision 1.70  2006/03/09 10:51:58  jmlarsen</span></div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> <span class="comment"> * Added timing info</span></div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span> <span class="comment"> * Revision 1.69  2006/03/06 09:22:43  jmlarsen</span></div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> <span class="comment"> * Added support for reading MIDAS line tables with MIDAS tags</span></div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> <span class="comment"> * Revision 1.68  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span> <span class="comment"> * Revision 1.67  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span> <span class="comment"> * Revision 1.66  2006/01/17 10:14:20  jmlarsen</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> <span class="comment"> * Changed order of functions</span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> <span class="comment"> * Revision 1.65  2006/01/16 07:10:53  amodigli</span></div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> <span class="comment"> * Clean</span></div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> <span class="comment"> * Revision 1.64  2006/01/09 15:22:53  jmlarsen</span></div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> <span class="comment"> * Removed some warnings</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span> <span class="comment"> * Revision 1.63  2006/01/09 14:05:21  amodigli</span></div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> <span class="comment"> * Fixed doxigen warnings</span></div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> <span class="comment"> * Revision 1.62  2006/01/03 16:56:53  amodigli</span></div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span> <span class="comment"> * Added MASTER_ARC_FORM</span></div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> <span class="comment"> * Revision 1.61  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> </div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> </div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> <span class="preprocessor">#include <uves_wavecal_utils.h></span></div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> </div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> </div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> <span class="preprocessor">#include <uves_time.h></span> <span class="comment">/* iso time */</span></div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> </div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> <span class="preprocessor">#define FITS_MAGIC_SZ      6</span></div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span> <span class="comment">                                   Prototypes</span></div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> </div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span> <span class="keyword">static</span> <a class="code" href="struct__polynomial.html">polynomial</a> *load_polynomial(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename, <span class="keywordtype">int</span> extension);</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span> <span class="keyword">static</span> <span class="keywordtype">char</span> *int_to_string(<span class="keywordtype">int</span> i);</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span> load_raw_image(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename, </div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>            cpl_type type, <span class="keywordtype">bool</span> flames, <span class="keywordtype">bool</span> blue,</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>            cpl_image *raw_image[2],</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2], </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2]);</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> </div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> <span class="keyword">static</span> <span class="keywordtype">int</span> uves_is_fits_file(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename);</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> <span class="keywordtype">int</span> uves_check_rec_status(<span class="keyword">const</span> <span class="keywordtype">int</span> val) {</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>    <span class="keywordflow">if</span>(cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"error before %d"</span>,val);</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>((<span class="keywordtype">char</span>* ) cpl_error_get_message());</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>((<span class="keywordtype">char</span>* ) cpl_error_get_where());</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>       <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     }</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> }</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span> </div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span> <span class="keyword">static</span> <span class="keywordtype">int</span> uves_is_fits_file(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename)</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> {</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>    FILE    *fp ;</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>    <span class="keywordtype">char</span>    *magic ;</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>    <span class="keywordtype">int</span>        isfits ;</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> </div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>    <span class="keywordflow">if</span> ((fp = fopen(filename, <span class="stringliteral">"r"</span>))==NULL) {</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"cannot open file [%s]"</span>, filename) ;</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>       <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>    }</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span> </div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>    magic = cpl_calloc(FITS_MAGIC_SZ+1, <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>)) ;</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>    (void)fread(magic, 1, FITS_MAGIC_SZ, fp) ;</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>    (void)fclose(fp) ;</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>    magic[FITS_MAGIC_SZ] = (char)0 ;</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>    <span class="keywordflow">if</span> (strstr(magic, <span class="stringliteral">"SIMPLE"</span>)!=NULL)</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>       isfits = 1 ;</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>    <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>       isfits = 0 ;</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>    cpl_free(magic) ;</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>    <span class="keywordflow">return</span> isfits ;</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span> }</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> </div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span> uves_dfs_files_dont_exist(cpl_frameset *frameset)</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> {</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *func = <span class="stringliteral">"dfs_files_dont_exist"</span>;</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     cpl_frame  *<a class="code" href="structframe.html">frame</a>;</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> </div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     <span class="keywordflow">if</span> (frameset == NULL) {</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>         cpl_error_set(func, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>     }</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> </div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>     <span class="keywordflow">if</span> (cpl_frameset_is_empty(frameset)) {</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>     }</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span> </div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     frame = cpl_frameset_get_first(frameset);</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>     <span class="keywordflow">while</span> (frame) {</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>         <span class="keywordflow">if</span> (access(cpl_frame_get_filename(frame), F_OK)) {</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>             cpl_msg_error(func, <span class="stringliteral">"File %s (%s) was not found"</span>, </div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>                           cpl_frame_get_filename(frame), </div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>                           cpl_frame_get_tag(frame));</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>             cpl_error_set(func, CPL_ERROR_FILE_NOT_FOUND);</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>         }</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>         frame = cpl_frameset_get_next(frameset);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>     }</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span> </div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>     <span class="keywordflow">if</span> (cpl_error_get_code())</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span> }</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span> </div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> </div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span> </div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span> </div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span> uves_contains_frames_kind(cpl_frameset * sof, </div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>                                cpl_frameset* raw,</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span>*         type)</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span> {</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>    <span class="keywordtype">char</span>* tag=NULL;</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>    <span class="keywordtype">char</span>* name=NULL;</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>    cpl_frame* frame   = NULL;</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>    cpl_frame* frame_dup   = NULL;</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span> </div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>    <span class="keywordtype">int</span> nsof=0;</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>    <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>    nsof = cpl_frameset_get_size(sof);</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>    <span class="keywordflow">for</span> (i=0 ; i<nsof ; i++) {</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>       frame = cpl_frameset_get_frame(sof,i);</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>       name= (<span class="keywordtype">char</span>*) cpl_frame_get_filename(frame);</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>       <span class="keywordflow">if</span>(uves_is_fits_file(name) == 1) {</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>          <span class="comment">/* to go on the file must exist */</span></div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>          <span class="keywordflow">if</span>(cpl_frame_get_tag(frame) != NULL) {</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>             <span class="comment">/* If the frame has a tag we process it. Else it is an object */</span> </div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>             tag= (<span class="keywordtype">char</span>*) cpl_frame_get_tag(frame);</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>             <span class="comment">/* uves_msg("name=%s tag=%s type=%s\n",name,tag,type); */</span></div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>             <span class="keywordflow">if</span>(strstr(tag,type) != NULL) {</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>                <span class="comment">/* uves_msg("Match name=%s tag=%s type=%s\n",name,tag,type); */</span></div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>                frame_dup = cpl_frame_duplicate(frame);</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>                cpl_frameset_insert(raw,frame_dup);</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>                <span class="comment">/* uves_msg("inserted\n"); */</span> </div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>             }</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>          }</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>       }</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>    }</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>    <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span> }</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span> </div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> uves_polynomial_convert_from_plist_midas(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, </div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *regression_name,</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>                                          <span class="keyword">const</span> <span class="keywordtype">int</span> index)</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span> {</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *result = NULL;</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>     cpl_polynomial *pol = NULL;</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>     <span class="keywordtype">int</span> N = strlen(regression_name);</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *coeffi_name = NULL;</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>     cpl_type type;</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>     <span class="keywordtype">int</span> length;</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>     <span class="keywordtype">int</span> *coeffi = NULL;</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     <span class="keywordtype">int</span> degree1 = -1;</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>     <span class="keywordtype">int</span> degree2 = -1; </div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>     <span class="keywordtype">bool</span> found = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>     <span class="keyword">const</span> <span class="keywordtype">long</span> <span class="keywordtype">int</span> plist_size = <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist);</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>      </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>     <span class="keywordtype">char</span> cind=<span class="charliteral">' '</span>;</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> </div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>     <span class="keywordflow">if</span> (index == -1) {</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>       coeffi_name = cpl_sprintf(<span class="stringliteral">"%sI"</span>, regression_name);</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>     }</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> </div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>      <span class="keywordflow">switch</span>(index) {</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span> </div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>      <span class="keywordflow">case</span> 1: cind=<span class="charliteral">'1'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>      <span class="keywordflow">case</span> 2: cind=<span class="charliteral">'2'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>      <span class="keywordflow">case</span> 3: cind=<span class="charliteral">'3'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>      <span class="keywordflow">case</span> 4: cind=<span class="charliteral">'4'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>      <span class="keywordflow">case</span> 5: cind=<span class="charliteral">'5'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>      <span class="keywordflow">case</span> 6: cind=<span class="charliteral">'6'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>      <span class="keywordflow">case</span> 7: cind=<span class="charliteral">'7'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>      <span class="keywordflow">case</span> 8: cind=<span class="charliteral">'8'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>      <span class="keywordflow">case</span> 9: cind=<span class="charliteral">'9'</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>      <span class="keywordflow">default</span>: </div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>        assure( <span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>              <span class="stringliteral">"Illegal index %d, 1-9 expected"</span>, index);</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>        <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>      }</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span> </div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span> </div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>       coeffi_name = cpl_sprintf(<span class="stringliteral">"%sI%d"</span>, regression_name, index);</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>     }</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span> </div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( coeffi = uves_read_midas_array(plist, coeffi_name, &length, &type, NULL));</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span> </div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span> </div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>     assure( type == CPL_TYPE_INT, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>         <span class="stringliteral">"Type of array %s is %s, integer expected"</span>,</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>         coeffi_name, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span> <span class="comment">    assure( length == 7, CPL_ERROR_ILLEGAL_INPUT,</span></div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> <span class="comment">        "Wrong array length = %d, 7 expected",</span></div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span> <span class="comment">        length);</span></div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>     <span class="comment">/* ignore OUTPUTI(1)- N,no.of data, */</span></div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>     </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>     <span class="comment">/* OUTPUTI(2)- M,no.of ind.var. */</span></div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>     </div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>     assure( coeffi[1] == 2, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>         <span class="stringliteral">"Regressions is %d-dimensional (2D expected)"</span>, </div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>         coeffi[1]);</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span> </div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>     <span class="comment">/* ignore OUTPUTI(3-5) (column number of variables)</span></div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> <span class="comment">       (3)- col.no. of dep.var.</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span> <span class="comment">       (4)- col.no. of indep.var.</span></div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span> <span class="comment">       (5)-</span></div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>     </div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>     <span class="comment">/* Read degree of first and second variable </span></div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> <span class="comment">       (6)- degree (ND) */</span></div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> </div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>     degree1 = coeffi[5];</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>     degree2 = coeffi[6];</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>     </div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Degree of 2D regression %s is (%d, %d)"</span>,</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                    regression_name, degree1, degree2);</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span> </div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>     <span class="comment">/* The degree of the regression is now known. Next, read the coefficients */</span></div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span> </div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>     pol = cpl_polynomial_new(2);</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> </div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>     <span class="comment">/* Search for <regression_name>D */</span></div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>     found = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>     <span class="keywordflow">for</span> (i = 0; !found && i < plist_size; i++){</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>     <span class="keyword">const</span> cpl_property *p = <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(plist, i);</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = cpl_property_get_name(p);</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>     </div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>     <span class="keywordflow">if</span> (strcmp(name, <span class="stringliteral">"HISTORY"</span>) == 0) {</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *value;</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( value = cpl_property_get_string(p),</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>            <span class="stringliteral">"Error reading property value"</span>);</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>         </div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>         <span class="comment">/* match the string  "'<regression_name>D'"  */</span></div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span> </div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>         <span class="keywordflow">if</span> (</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>          </div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>         (((index < 0) &&</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>         (<span class="keywordtype">int</span>)strlen(value) >= 1+N+2 &&</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>              value[0]     == <span class="charliteral">'\''</span> &&</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>              value[1+N]   == <span class="charliteral">'D'</span> && </div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>          value[1+N+1] == <span class="charliteral">'\''</span>) </div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span> </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>                 || </div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span> </div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>         ((index > 0) &&</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>         (<span class="keywordtype">int</span>)strlen(value) >= 1+N+3 &&</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>              value[0]     == <span class="charliteral">'\''</span> &&</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>              value[1+N]   == <span class="charliteral">'D'</span> && </div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>              value[1+N+1] == cind && </div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>          value[1+N+2] == <span class="charliteral">'\''</span>) ) </div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> </div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>                  &&</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>  </div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>         strncmp(value+1, regression_name, N) == 0</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>         ) {</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>         <span class="keywordtype">double</span> coeff;</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>         <span class="keywordtype">char</span> *next;</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>         cpl_size power[2];</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>         <span class="keywordtype">int</span> j = i; <span class="comment">/* points to the property currently being read */</span></div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span> </div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>         power[0] = 0;  <span class="comment">/* Current degree */</span></div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>         power[1] = 0;</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> </div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>         found = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>         value = <span class="stringliteral">"dummy"</span>; <span class="comment">/* This will make strtod fail the first time */</span></div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>         </div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>         <span class="keywordflow">while</span> (power[1] <= degree2){</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>             <span class="comment">/* Read coefficient */</span></div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>             coeff = strtod(value, &next);</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>             </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>             <span class="keywordflow">if</span> (next != value) {</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>             <span class="comment">/* A prefix of the string was successfully converted to double */</span></div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>             cpl_polynomial_set_coeff(pol, power, coeff);</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Polynomial coefficient of order (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">", %"</span> CPL_SIZE_FORMAT <span class="stringliteral">") is %e"</span>,</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>                        power[0], power[1], coeff);</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>             </div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>             power[0]++;</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>             <span class="keywordflow">if</span> (power[0] > degree1){</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>                 power[0] = 0;</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>                 power[1]++;</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>             }</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>             value = next;</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>             }</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>             <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>             <span class="comment">/* No more doubles could be read from the string,</span></div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> <span class="comment">               so move to the next property in the plist */</span></div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>             j = j + 1;</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>             </div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>             assure(j < plist_size, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>                    <span class="stringliteral">"Missing header data"</span>);</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>             </div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>             p = <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(plist, j);</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>             assure(       cpl_property_get_type(p)             == CPL_TYPE_STRING &&</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>                    strcmp(cpl_property_get_name(p), <span class="stringliteral">"HISTORY"</span>) == 0, </div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>                       CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Error parsing polynomial"</span>);</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>             </div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>             value = cpl_property_get_string(p);</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> </div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>             </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Parsing string '%s'"</span>, value);</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>             }</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>         } <span class="comment">/* Read coefficients */</span></div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>         } <span class="comment">/* string was "'...D'" */</span></div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>     } <span class="comment">/* Keyword was HISTORY */</span></div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>     }<span class="comment">/* for i... */</span></div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>     </div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>     assure( found, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Could not find '%sD' in property list"</span>, </div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>         regression_name);</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>     <span class="comment">/* Create a new polynomial from the cpl_polynomial */</span></div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>     result = <a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(pol);</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>     </div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>   cleanup:</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>     uves_free_int(&coeffi);</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>     uves_free_string_const(&coeffi_name);</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>     uves_free_polynomial(&pol);</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>     {</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&result);</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>     }</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> </div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> }</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> </div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> cpl_error_code</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> uves_frameset_merge(cpl_frameset * set1, <span class="keyword">const</span> cpl_frameset* set2)</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> {</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> </div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>     <span class="keyword">const</span> cpl_frame* frm_tmp=NULL;</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>     cpl_frame* frm_dup=NULL;</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> </div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>   <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(set1 != NULL, <span class="stringliteral">"Wrong input set"</span>);</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>   <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(set2 != NULL, <span class="stringliteral">"Wrong input set"</span>);</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>   </div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>   <span class="keywordflow">for</span> (frm_tmp = cpl_frameset_get_first_const(set2);</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>        frm_tmp != NULL;</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>        frm_tmp = cpl_frameset_get_next_const(set2))</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>       {</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>       frm_dup = cpl_frame_duplicate(frm_tmp);</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>       cpl_frameset_insert(set1, frm_dup);</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>       }</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>   </div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>   cleanup:</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>   <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> }</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> </div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span> </div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> cpl_error_code</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span> uves_extract_frames_group_type(<span class="keyword">const</span> cpl_frameset * <span class="keyword">set</span>, cpl_frameset** ext, cpl_frame_group type)</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> {</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>     <span class="keyword">const</span> cpl_frame* frm_tmp=NULL;</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>   cpl_frame* frm_dup=NULL;</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>   cpl_frame_group g;</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*ext = cpl_frameset_new());</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(frm_tmp = cpl_frameset_get_first_const(<span class="keyword">set</span>));</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>   <span class="keywordflow">while</span> (frm_tmp != NULL)</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>     {</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>       g=cpl_frame_get_group(frm_tmp);</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>       <span class="keywordflow">if</span>(g == type) {</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>     frm_dup=cpl_frame_duplicate(frm_tmp);</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>         cpl_frameset_insert(*ext,frm_dup);</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"group %d insert file %s "</span>,type,cpl_frame_get_filename(frm_dup));</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>       }</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>       frm_tmp = cpl_frameset_get_next_const(<span class="keyword">set</span>);</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>     }</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> </div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>   cleanup:</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> }</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> </div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> cpl_error_code</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> uves_sflats_get_encoder_steps(<span class="keyword">const</span> cpl_frameset * <span class="keyword">set</span>, cpl_table** enc, <span class="keywordtype">int</span>* nset)</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> {</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>   <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>     <span class="keyword">const</span> cpl_frame* frm=NULL;</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>   <span class="keywordtype">int</span> x1enc=0;</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>   <span class="keywordtype">int</span> x2enc=0;</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>   <span class="keywordtype">int</span> ref_x1enc=0;</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>   <span class="keywordtype">int</span> ref_x2enc=0;</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>   <span class="keywordtype">int</span> ndata=0;</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>   <span class="keyword">const</span> <span class="keywordtype">int</span> threshold=5;</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>   <span class="keywordtype">int</span> status=0;</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* plist=NULL;</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>   cpl_table* encoder_tbl=NULL;</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>   ndata = cpl_frameset_get_size(<span class="keyword">set</span>);</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>   encoder_tbl=cpl_table_new(ndata);</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>   cpl_table_new_column(encoder_tbl,<span class="stringliteral">"x1enc"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>   cpl_table_new_column(encoder_tbl,<span class="stringliteral">"x2enc"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>   cpl_table_new_column(encoder_tbl,<span class="stringliteral">"flag"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>  </div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>   <span class="keywordflow">for</span>(i=0;i<cpl_frameset_get_size(<span class="keyword">set</span>);i++)</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>     {</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(frm=cpl_frameset_get_frame_const(<span class="keyword">set</span>,i));</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(plist=<a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(cpl_frame_get_filename(frm),0));</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(x1enc=<a class="code" href="group__uves__pfits.html#ga88d114f3cb4427cf679e9f7b7696bcd9" title="find out the value of UVES_ENCODER_REF1">uves_pfits_get_slit3_x1encoder</a>(plist));</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(x2enc=<a class="code" href="group__uves__pfits.html#ga12fe6f500e105193aa9faae4258ef51d" title="find out the value of UVES_ENCODER_REF2">uves_pfits_get_slit3_x2encoder</a>(plist));</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_int(encoder_tbl,<span class="stringliteral">"x1enc"</span>,i,x1enc));</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_int(encoder_tbl,<span class="stringliteral">"x2enc"</span>,i,x2enc));</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>     uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>     }</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>  </div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_sort_table_2(encoder_tbl,<span class="stringliteral">"x1enc"</span>,<span class="stringliteral">"x2enc"</span>,<span class="keyword">false</span>,<span class="keyword">true</span>));</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> </div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ref_x1enc=cpl_table_get_int(encoder_tbl,<span class="stringliteral">"x1enc"</span>,0,&status));</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ref_x2enc=cpl_table_get_int(encoder_tbl,<span class="stringliteral">"x2enc"</span>,0,&status));</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>   *nset=1;</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>   *enc=cpl_table_new(1);</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>   cpl_table_new_column(*enc,<span class="stringliteral">"x1enc"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>   cpl_table_new_column(*enc,<span class="stringliteral">"x2enc"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_int(*enc,<span class="stringliteral">"x1enc"</span>,0,ref_x1enc));</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_int(*enc,<span class="stringliteral">"x2enc"</span>,0,ref_x2enc));</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> </div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>   <span class="keywordflow">for</span>(i=1;i<cpl_table_get_nrow(encoder_tbl);i++) {</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>      <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(x1enc=cpl_table_get_int(encoder_tbl,<span class="stringliteral">"x1enc"</span>,i,&status));</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>      <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(x2enc=cpl_table_get_int(encoder_tbl,<span class="stringliteral">"x2enc"</span>,i,&status));</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>      <span class="keywordflow">if</span>( (fabs(ref_x1enc -x1enc) > threshold) || </div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>          (fabs(ref_x2enc -x2enc) > threshold) ) {</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>   </div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>        ref_x1enc = x1enc;</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>        ref_x2enc = x2enc;</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>        cpl_table_set_size(*enc,(*nset+1));</div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>        <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_int(*enc,<span class="stringliteral">"x1enc"</span>,*nset,ref_x1enc));</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>        <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_int(*enc,<span class="stringliteral">"x2enc"</span>,*nset,ref_x2enc));</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>        *nset=*nset+1;</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span> </div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>      }</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>   }</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Number of sets = %d"</span>,*nset);</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>   cleanup:</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>    uves_free_table(&encoder_tbl);</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>     uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> }</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> </div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> </div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> cpl_error_code</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> uves_dfs_set_groups(cpl_frameset * <span class="keyword">set</span>)</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> {</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>     cpl_frame   *   cur_frame ;</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>     <span class="keywordtype">int</span>             nframes ;</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>     </div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>     assure(<span class="keyword">set</span> != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null input"</span>); </div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>     </div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>     <span class="comment">/* Initialize */</span></div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( nframes = cpl_frameset_get_size(<span class="keyword">set</span>), <span class="stringliteral">"Could not read frameset size"</span>);</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>     </div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>     <span class="comment">/* Loop on frames */</span></div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>     <span class="keywordflow">for</span> (cur_frame = cpl_frameset_get_first(<span class="keyword">set</span>);</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>      cur_frame != NULL;</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>      cur_frame = cpl_frameset_get_next(<span class="keyword">set</span>))</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>     {</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>         <span class="keywordtype">bool</span> is_raw   = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>         <span class="keywordtype">bool</span> is_calib = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>         <span class="keywordtype">bool</span> is_recognized = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>         <span class="keywordtype">bool</span> blue;</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>         <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>  *   tag = cpl_frame_get_tag(cur_frame);</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>         </div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>         assure( tag != NULL && strcmp(tag, <span class="stringliteral">""</span>) != 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>             <span class="stringliteral">"Frame has no tag!"</span>);</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>         </div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>         blue = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>         <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>         <span class="keywordtype">bool</span> flames = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>         <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>             <span class="comment">/* RAW frames */</span></div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>             is_raw   = is_raw   || </div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>             (strcmp(tag, UVES_ORDER_FLAT  (flames,blue)) == 0 ||</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>              strcmp(tag, UVES_BIAS        (blue)) == 0 ||</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>              strcmp(tag, UVES_DARK        (blue)) == 0 ||</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>              strcmp(tag, UVES_PDARK       (blue)) == 0 ||</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>              strcmp(tag, UVES_FLAT        (blue)) == 0 ||</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>              strcmp(tag, UVES_IFLAT       (blue)) == 0 ||</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>              strcmp(tag, UVES_DFLAT       (blue)) == 0 ||</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>              strcmp(tag, UVES_SFLAT       (blue)) == 0 ||</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>              strcmp(tag, UVES_TFLAT       (blue)) == 0 ||</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>              strcmp(tag, UVES_SCREEN_FLAT (blue)) == 0 ||</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>              strcmp(tag, UVES_CD_ALIGN    (blue)) == 0 ||</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>              strcmp(tag, UVES_FORMATCHECK (flames,blue)) == 0 ||</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>              strcmp(tag, UVES_STD_STAR    (blue)) == 0 ||</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>              strcmp(tag, UVES_SCIENCE     (blue)) == 0 ||</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>              strcmp(tag, UVES_SCI_EXTND   (blue)) == 0 ||</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>              strcmp(tag, UVES_SCI_POINT   (blue)) == 0 ||</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>              strcmp(tag, UVES_SCI_SLICER  (blue)) == 0 ||</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>              strcmp(tag, UVES_ARC_LAMP    (flames,blue)) == 0 ||</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>              strcmp(tag, UVES_ECH_ARC_LAMP(blue)) == 0 ||</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>              strcmp(tag, RAW_IMA) == 0 ||</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>              strcmp(tag, FLAMES_SCI_RED) == 0 ||</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>              strcmp(tag, FLAMES_SCI_SIM_RED) == 0 ||</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>              strcmp(tag, FLAMES_SCI_COM_RED) == 0 ||</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>              strcmp(tag, FLAMES_FIB_FF_ODD) == 0 ||</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>              strcmp(tag, FLAMES_FIB_FF_EVEN) == 0 ||</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>              strcmp(tag, FLAMES_FIB_FF_ALL) == 0);</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>             </div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>             <span class="comment">/* CALIB frames */</span></div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>             </div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>             <span class="comment">/* Loop through all (1 or 2) blue or red chips */</span></div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>             <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue);</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>              chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>              chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>             {</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>                 <span class="keywordtype">int</span> window;</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>                 </div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>                 is_calib = is_calib || </div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>                 (strcmp(tag, UVES_DRS_SETUP(flames, chip)) == 0 ||</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>                  strcmp(tag, UVES_ORDER_TABLE(flames, chip)) == 0 ||</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>                  strcmp(tag, UVES_GUESS_ORDER_TABLE(flames,chip)) == 0 ||</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>                  strcmp(tag, UVES_MASTER_BIAS   (chip)) == 0 ||</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>                  strcmp(tag, UVES_MASTER_DARK   (chip)) == 0 ||</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>                  strcmp(tag, UVES_MASTER_PDARK  (chip)) == 0 ||</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>                  strcmp(tag, UVES_MASTER_FLAT   (chip)) == 0 ||</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>                  strcmp(tag, UVES_MASTER_DFLAT  (chip)) == 0 ||</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>                  strcmp(tag, UVES_MASTER_SFLAT  (chip)) == 0 ||</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>                  strcmp(tag, UVES_MASTER_IFLAT  (chip)) == 0 ||</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>                  strcmp(tag, UVES_MASTER_TFLAT  (chip)) == 0 ||</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>                  strcmp(tag, UVES_REF_TFLAT     (chip)) == 0 ||</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>                  strcmp(tag, UVES_ORD_TAB(flames,chip)) == 0 ||</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>                  strcmp(tag, UVES_MASTER_SCREEN_FLAT(chip)) == 0 ||</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>                  strcmp(tag, UVES_MASTER_ARC_FORM(chip)) == 0 ||</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>                  strcmp(tag, UVES_WEIGHTS(chip))        == 0 ||</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>                  strcmp(tag, UVES_LINE_TABLE(flames,chip)) == 0 ||</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>                  strcmp(tag, UVES_GUESS_LINE_TABLE(flames,chip)) == 0 ||</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>                  strcmp(tag, UVES_INSTR_RESPONSE(chip)) == 0 ||</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>                  strcmp(tag, UVES_MASTER_RESPONSE(chip)) == 0 ||</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>                  strcmp(tag, UVES_LINE_REFER_TABLE    ) == 0 ||</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>                  strcmp(tag, UVES_LINE_INTMON_TABLE   ) == 0 ||</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>                  strcmp(tag, UVES_FLUX_STD_TABLE      ) == 0 ||</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>                  strcmp(tag, UVES_EXTCOEFF_TABLE      ) == 0 ||</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>                  strcmp(tag, FLAMES_LINE_TABLE(chip)) == 0 ||</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>                  strcmp(tag, FLAMES_SLIT_FF_DT1(chip)) == 0 ||</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>                  strcmp(tag, FLAMES_SLIT_FF_DT2(chip)) == 0 ||</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>                  strcmp(tag, FLAMES_SLIT_FF_DT3(chip)) == 0 ||</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>                  strcmp(tag, FLAMES_SLIT_FF_DTC(chip)) == 0 ||</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>                  strcmp(tag, FLAMES_SLIT_FF_BP1(chip)) == 0 ||</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>                  strcmp(tag, FLAMES_SLIT_FF_BP2(chip)) == 0 ||</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>                  strcmp(tag, FLAMES_SLIT_FF_BP3(chip)) == 0 ||</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>                  strcmp(tag, FLAMES_SLIT_FF_BPC(chip)) == 0 ||</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>                  strcmp(tag, FLAMES_SLIT_FF_BN1(chip)) == 0 ||</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>                  strcmp(tag, FLAMES_SLIT_FF_BN2(chip)) == 0 ||</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>                  strcmp(tag, FLAMES_SLIT_FF_BN3(chip)) == 0 ||</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>                  strcmp(tag, FLAMES_SLIT_FF_BNC(chip)) == 0 ||</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>                  strcmp(tag, FLAMES_SLIT_FF_SG1(chip)) == 0 ||</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>                  strcmp(tag, FLAMES_SLIT_FF_SG2(chip)) == 0 ||</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>                  strcmp(tag, FLAMES_SLIT_FF_SG3(chip)) == 0 ||</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>                  strcmp(tag, FLAMES_SLIT_FF_SGC(chip)) == 0 ||</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>                  strcmp(tag, FLAMES_SLIT_FF_COM(chip)) == 0 ||</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>                  strcmp(tag, FLAMES_SLIT_FF_NOR(chip)) == 0 ||</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>                  strcmp(tag, FLAMES_SLIT_FF_NSG(chip)) == 0 ||</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>                  strcmp(tag, FLAMES_FIB_FF_DT1(chip)) == 0 ||</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>                  strcmp(tag, FLAMES_FIB_FF_DT2(chip)) == 0 ||</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>                  strcmp(tag, FLAMES_FIB_FF_DT3(chip)) == 0 ||</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>                  strcmp(tag, FLAMES_FIB_FF_DTC(chip)) == 0 ||</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>                  strcmp(tag, FLAMES_FIB_FF_BP1(chip)) == 0 ||</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>                  strcmp(tag, FLAMES_FIB_FF_BP2(chip)) == 0 ||</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>                  strcmp(tag, FLAMES_FIB_FF_BP3(chip)) == 0 ||</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>                  strcmp(tag, FLAMES_FIB_FF_BPC(chip)) == 0 ||</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>                  strcmp(tag, FLAMES_FIB_FF_BN1(chip)) == 0 ||</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>                  strcmp(tag, FLAMES_FIB_FF_BN2(chip)) == 0 ||</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>                  strcmp(tag, FLAMES_FIB_FF_BN3(chip)) == 0 ||</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>                  strcmp(tag, FLAMES_FIB_FF_BNC(chip)) == 0 ||</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>                  strcmp(tag, FLAMES_FIB_FF_SG1(chip)) == 0 ||</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>                  strcmp(tag, FLAMES_FIB_FF_SG2(chip)) == 0 ||</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>                  strcmp(tag, FLAMES_FIB_FF_SG3(chip)) == 0 ||</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>                  strcmp(tag, FLAMES_FIB_FF_SGC(chip)) == 0 ||</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>                  strcmp(tag, FLAMES_FIB_FF_COM(chip)) == 0 ||</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>                  strcmp(tag, FLAMES_FIB_FF_NOR(chip)) == 0 ||</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>                  strcmp(tag, FLAMES_FIB_FF_NSG(chip)) == 0 ||</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>                  strcmp(tag, FLAMES_ORDEF(flames,chip)) == 0 ||</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>                  strcmp(tag, FLAMES_CORVEL_MASK) == 0);</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>                 </div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>                 <span class="keywordflow">for</span> (window = 1; window <= 3; window++)</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>                 {</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>                     is_calib = is_calib || </div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>                     strcmp(tag, UVES_LINE_TABLE_MIDAS(chip, window)) == 0;</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>                 }</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>                 </div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>                 <span class="keywordflow">if</span> (!flames && strcmp(tag, UVES_BACKGR_TABLE(chip)) == 0)</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>                 {</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Background table %s has been deprecated. "</span></div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>                              <span class="stringliteral">"Inter-order positions will be inferred "</span></div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>                              <span class="stringliteral">"from the order table %s. "</span></div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>                              <span class="stringliteral">"Use recipe parameters to define "</span></div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>                              <span class="stringliteral">"measuring method "</span>,</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>                              UVES_BACKGR_TABLE(chip), </div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>                              UVES_ORDER_TABLE(flames, chip));</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>                     </div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>                     is_recognized = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>                 }</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>                 </div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>                 <span class="keywordflow">if</span> (strcmp(tag, UVES_DRS_SETUP(flames, chip)) == 0)</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>                 {</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"DRS setup table %s has been deprecated. "</span></div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>                              <span class="stringliteral">"Use recipe parameters "</span></div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>                              <span class="stringliteral">"to define data reduction parameters "</span>,</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>                              UVES_DRS_SETUP(flames, chip));</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>                     </div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>                     is_recognized = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>                 }</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>             }</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>             flames = !flames;</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>         } <span class="keywordflow">while</span> (flames);</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>         blue = !blue;</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>         }</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>         <span class="keywordflow">while</span> (blue);</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>         </div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>         is_recognized = is_recognized || is_raw || is_calib;</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span> </div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>         <span class="keywordflow">if</span> (is_raw)</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>         {</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>             cpl_frame_set_group(cur_frame, CPL_FRAME_GROUP_RAW) ;</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>         }</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (is_calib)</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>         {</div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>             cpl_frame_set_group(cur_frame, CPL_FRAME_GROUP_CALIB) ;</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>         }</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!is_recognized)</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>         {</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Unrecognized tag %s"</span>, tag);</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>         }</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>     }</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span> </div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>     uves_dfs_files_dont_exist(<span class="keyword">set</span>);</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span> </div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span> </div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>   cleanup:</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> }</div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span> </div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span> </div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span> remove_pre_over_scan(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *pl)</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span> {</div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>     <span class="keywordtype">bool</span> blue, new_format;</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>     <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>     </div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>     new_format = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>     <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>     blue = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>     <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>         <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>          chip != UVES_CHIP_INVALID;</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>         {</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>             <span class="keywordtype">int</span> n_erase_px = 0;   <span class="comment">/* Number of erased properties */</span></div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>             <span class="keywordtype">int</span> n_erase_py = 0;</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>             <span class="keywordtype">int</span> n_erase_ox = 0;</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>             <span class="keywordtype">int</span> n_erase_oy = 0;</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>             </div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>             <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>             <span class="comment">/* This function erases only one property at a time,</span></div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span> <span class="comment">             *  therefore call it until it returns 0</span></div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( n_erase_px = </div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>                    <a class="code" href="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8" title="Erase the given property from a property list.">uves_propertylist_erase</a>(pl, UVES_PRESCANX(new_format, chip)),</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>                    <span class="stringliteral">"Error erasing keyword '%s'"</span>, UVES_PRESCANX(new_format, chip));</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>             </div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( n_erase_py = </div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>                    <a class="code" href="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8" title="Erase the given property from a property list.">uves_propertylist_erase</a>(pl, UVES_PRESCANY(new_format, chip)),</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>                    <span class="stringliteral">"Error erasing keyword '%s'"</span>, UVES_PRESCANY(new_format, chip));</div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>             </div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( n_erase_ox =</div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>                    <a class="code" href="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8" title="Erase the given property from a property list.">uves_propertylist_erase</a>(pl, UVES_OVRSCANX(new_format, chip)),</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>                    <span class="stringliteral">"Error erasing keyword '%s'"</span>, UVES_OVRSCANX(new_format, chip));</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>             </div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( n_erase_oy =</div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>                    <a class="code" href="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8" title="Erase the given property from a property list.">uves_propertylist_erase</a>(pl, UVES_OVRSCANY(new_format, chip)),</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>                    <span class="stringliteral">"Error erasing keyword '%s'"</span>, UVES_OVRSCANY(new_format, chip));</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>             }</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>             <span class="keywordflow">while</span> (n_erase_px > 0 ||</div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>                n_erase_py > 0 ||</div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>                n_erase_ox > 0 ||</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>                n_erase_oy > 0);</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>         }</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>         blue = !blue;</div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>     }</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>     <span class="keywordflow">while</span> (blue);</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>     </div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>     new_format = !new_format;</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>     }</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>     <span class="keywordflow">while</span> (new_format);</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span> </div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>   cleanup:</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> }</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span> </div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span> </div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span> </div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span> uves_copy_if_possible(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *to, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *from,</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>          <span class="keyword">const</span> <span class="keywordtype">char</span> *name)</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span> {</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>     <span class="keywordflow">if</span> (!<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(to, name) &&</div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>     <a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(from, name))</div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>     {</div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Propagating keyword %s"</span>, name);</div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span> </div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__propertylist.html#ga498f10da2c5cd157cd004ce3e207ff6c" title="Copy a property from another property list.">uves_propertylist_copy_property</a>(to, from, name) );</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>     }</div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>     {</div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Keyword %s not propagated"</span>, name);</div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>     }</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>     </div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>   cleanup:</div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span> }</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span> </div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span> cpl_error_code</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span> uves_frameset_insert(cpl_frameset *frames, </div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>                      <span class="keywordtype">void</span> *<span class="keywordtype">object</span>, </div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>                      cpl_frame_group group, </div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>                      cpl_frame_type type, </div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>                      cpl_frame_level level,</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, </div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *tag, </div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>                      <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>                      <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *primary_header, </div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>                      <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *table_header, </div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>                      <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe, </div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *pipeline,</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>                      cpl_table **qc,</div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *start_time,</div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>                      <span class="keywordtype">bool</span> dump_paf,</div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>                      <span class="keywordtype">unsigned</span> stats_mask)</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span> {</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>     cpl_frame *f = NULL;</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *pl = NULL;</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *origin = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span> </div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( !(type == CPL_FRAME_TYPE_IMAGE && table_header != NULL), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( raw_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( primary_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span> </div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>     assure( type == CPL_FRAME_TYPE_IMAGE || stats_mask == 0,</div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>         CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>         <span class="stringliteral">"Cannot compute image statistics on table product"</span> );</div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span> </div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>     <span class="comment">/* Insert the object (image or table) into frameset */</span></div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( f = cpl_frame_new(),</div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>             cpl_frame_set_filename(f, filename),    <span class="comment">/* local filename */</span></div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>             cpl_frame_set_tag     (f, tag),         <span class="comment">/* e.g. ORDER_TABLE_BLUE */</span></div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>             cpl_frame_set_type    (f, type),        <span class="comment">/* e.g. table */</span></div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>             cpl_frame_set_group   (f, group),       <span class="comment">/* e.g. raw/product */</span></div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>             cpl_frame_set_level   (f, level),       <span class="comment">/* e.g. temporary/final */</span></div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>             cpl_frameset_insert(frames, f)), <span class="stringliteral">"Could not insert frame into frameset"</span>);</div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>     </div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>     <span class="comment">/* Pipeline id format is <PACKAGE "/" PACKAGE_VERSION>; */</span></div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>     <span class="keywordflow">if</span> (strchr(pipeline, <span class="charliteral">'/'</span>) == NULL)</div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>     {</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Pipeline ID '%s' is not of format: "</span></div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>                  <span class="stringliteral">"Pipeline-name/version"</span>, pipeline);</div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>     }</div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span> </div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>     <span class="comment">/* Copy provided keywords in 'primary_header' to 'pl' */</span></div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>     pl = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>  <span class="keywordflow">if</span>(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(primary_header,UVES_BSCALE)) {</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>                                        <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"inside has bscale"</span>);</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>                                     }</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>     <span class="keywordflow">if</span> (!<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(primary_header))</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>     {</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>         <span class="keywordflow">if</span> (0)</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>                 <span class="comment">/* This takes (n*m) time */</span></div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>                 {</div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>                     <span class="comment">/* The regexp "" matches any string (because any string has</span></div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span> <span class="comment">                       the empty string as a sub-string),</span></div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span> <span class="comment">                       except on Mac, where it is an illegal regexp (for whatever reason).</span></div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span> <span class="comment">                       Therefore, use ".*" to match any string */</span></div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>                     </div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(pl, primary_header, <span class="stringliteral">".*"</span>, 0),</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>                            <span class="stringliteral">"Could not copy keywords"</span>);</div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>                 }</div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(pl, primary_header),</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>                        <span class="stringliteral">"Could not copy keywords"</span>);</div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>     }</div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>     </div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>     <span class="comment">/* Propagate/create DFS keywords */</span></div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>     UVES_TIME_START(<span class="stringliteral">"cpl_dfs_setup_product_header"</span>);</div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_dfs_setup_product_header(pl,</div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>                     f,</div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>                     frames,</div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>                     parameters,</div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>                     recipe,</div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>                     pipeline,</div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>                     DICTIONARY),</div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>        <span class="stringliteral">"Error setting up product header"</span>);</div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>     UVES_TIME_END;</div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>     </div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>     <span class="comment">/* Change origin to 'ESO' if it says 'ESO-MIDAS'</span></div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span> <span class="comment">     * NOST-Definition: "The value field shall contain a character string</span></div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span> <span class="comment">     *                   identifying the organization or institution responsible </span></div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span> <span class="comment">     *                   for creating the FITS file."</span></div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>     </div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(pl, <span class="stringliteral">"ORIGIN"</span>, CPL_TYPE_STRING, &origin),</div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>        <span class="stringliteral">"Error reading ORIGIN from product header"</span>);</div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span> </div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>     <span class="keywordflow">if</span> (strcmp(origin, <span class="stringliteral">"ESO-MIDAS"</span>) == 0) </div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>     {</div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>         <a class="code" href="group__uves__propertylist.html#gabbc55af6700c2d1d28f82131b56a3b7b" title="Set the value of the given string property list entry.">uves_propertylist_set_string</a>(pl, <span class="stringliteral">"ORIGIN"</span>, <span class="stringliteral">"ESO"</span>);</div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>     }</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>     </div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>     <span class="comment">/* Set OBJECT = DO category */</span></div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga00c534cae0eea2f78b8d36bc675c7b80" title="Write the object keyword.">uves_pfits_set_object</a>(pl, tag), <span class="stringliteral">"Error writing object keyword"</span>);</div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>         </div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>     <span class="comment">/* Add statistics keywords */</span></div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>     <span class="keywordflow">if</span> (type == CPL_FRAME_TYPE_IMAGE && stats_mask != 0)</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>     {</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_dfs_write_statistics((cpl_image *) <span class="keywordtype">object</span>, pl, stats_mask),</div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>            <span class="stringliteral">"Error adding image statistics keywords"</span>);</div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>     }</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>     </div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>     <span class="comment">/* Propagate ESO.DET keywords from 'raw_header',</span></div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span> <span class="comment">     * This is necessary because cpl_dfs_setup_product_header() copies</span></div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span> <span class="comment">     * only from the primary extension of the first input frames</span></div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(pl, raw_header, <span class="stringliteral">"^ESO DET "</span>, 0),</div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>        <span class="stringliteral">"Could not propagate 'ESO DET*' keywords"</span>);</div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span> </div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>     <span class="comment">/* But remove prescan, overscan keywords. </span></div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span> <span class="comment">       (Since these areas are not present in any products.) */</span></div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_pre_over_scan(pl), </div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>        <span class="stringliteral">"Error removing pre-, overscan keywords from product header"</span>);</div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span> </div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>     <span class="comment">/* Propagate certain keywords from 'raw_header' </span></div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span> <span class="comment">       (only if available and if not already present in product header) */</span></div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_copy_if_possible(pl, raw_header, UVES_AIRMASS) );</div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_copy_if_possible(pl, raw_header, UVES_IMAGETYP) );</div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_copy_if_possible(pl, raw_header, UVES_UT) );</div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_copy_if_possible(pl, raw_header, UVES_ST) );</div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_copy_if_possible(pl, raw_header, UVES_EXPTIME) );</div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_copy_if_possible(pl, raw_header, UVES_EXTNAME) );</div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_copy_if_possible(pl, raw_header, UVES_DATE) );</div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_copy_if_possible(pl, raw_header, UVES_DATAMEAN) );</div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_copy_if_possible(pl, raw_header, UVES_DATAMED) );</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_copy_if_possible(pl, raw_header, UVES_DATARMS) );</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_copy_if_possible(pl, raw_header, UVES_OS_EXPOI) );</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span> </div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>     <span class="comment">/* MIDAS internal(?): check_nomsg( uves_copy_if_possible(pl, raw_header, UVES_TMSTART) ); */</span></div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span> </div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>     <span class="keywordflow">if</span> (0)</div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>         <span class="comment">/* uves_propertylist_copy_property_regexp() is slow */</span></div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>         {</div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(pl, raw_header, <span class="stringliteral">"^GRAT[0-9]*$"</span>, 0),</div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>                    <span class="stringliteral">"Could not propagate 'GRATi' keywords"</span>);</div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(pl, raw_header, <span class="stringliteral">"^FILTER[0-9]*$"</span>, 0),</div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>                    <span class="stringliteral">"Could not propagate 'FILTERi' keywords"</span>);</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(pl, raw_header, <span class="stringliteral">"^WLEN[0-9]*$"</span>, 0),</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>                    <span class="stringliteral">"Could not propagate 'WLENi' keywords"</span>);</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>         }</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>         {</div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>                        pl, raw_header, <span class="stringliteral">"^((GRAT|FILTER|WLEN)[0-9]*)$"</span>, 0),</div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>                    <span class="stringliteral">"Could not propagate GRATi, FILTERi and WLENi keywords"</span>);</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>         }</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span> </div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>     <span class="comment">/* If RA,DEC do not exist, invent them and set to zero, like MIDAS */</span></div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>     <span class="keywordflow">if</span> ( !<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(pl, UVES_RA) )</div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>     {</div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>         <a class="code" href="group__uves__pfits.html#ga38758b23b33b80f7e27476783fddc3e3" title="Write the right ascension.">uves_pfits_set_ra</a>(pl, 0);</div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>     }</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>     <span class="keywordflow">if</span> ( !<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(pl, UVES_DEC) )</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>     {</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>         <a class="code" href="group__uves__pfits.html#ga9f62d68dba4e530ef2a0407d4752e6fc" title="Write the declination.">uves_pfits_set_dec</a>(pl, 0);</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>     }</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span> </div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>     <span class="comment">/* </span></div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span> <span class="comment">     * REDLEVEL and STATUS have been deprecated, so delete them</span></div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span> <span class="comment">     * along with inherited MIDAS specific keywords</span></div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>     {</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>         <span class="keywordtype">bool</span> invert = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>         <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(pl, <span class="stringliteral">"^("</span></div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>                                        <span class="stringliteral">"ESO PRO (REDLEVEL|REC[0-9]+ STATUS)|"</span></div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>                                        <span class="stringliteral">"TM-START|MIDASFTP|FILENAME)$"</span>, invert);</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>     }</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span> </div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga0cb8c1549c5c2877e335249714025634" title="Write the start time.">uves_pfits_set_starttime</a>(pl, start_time),</div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>        <span class="stringliteral">"Could not write recipe start time"</span>);</div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span> </div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga62d8502b9cb1c8852a37f88499c88e26" title="Write the stop time.">uves_pfits_set_stoptime</a>(pl, <a class="code" href="group__uves__time.html#ga1db9a9647c947cd72abe846a12d483fc" title="Returns the current date and time as a static string.">uves_get_datetime_iso8601</a>() [...]
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>        <span class="stringliteral">"Could not write recipe stop time"</span>);</div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span> </div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>     <span class="comment">/* Create paf file from each QC table, and transfer</span></div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span> <span class="comment">       all QC parameters to product header</span></div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>     <span class="keywordflow">if</span> (qc != NULL)</div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>     {</div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>         <span class="keywordflow">for</span> (i = 0; qc[i] != NULL; i++)</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>         {</div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>             <a class="code" href="group__uves__qclog.html#gaed8104b6319a79c1e9513a9aaf140a65" title="Add QC-LOG to FITS header.">uves_pfits_put_qc</a>(pl, qc[i]);</div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>                         </div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>             <span class="keywordflow">if</span> (dump_paf)</div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>             {</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>                 <span class="comment">/* Exception! This is a hack */</span></div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>                 <span class="keywordflow">if</span> (strcmp(recipe, make_str(UVES_TFLAT_ID)) == 0 && i == 1)</div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>                 {</div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>                     <span class="comment">/* Don't dump the science QC again */</span></div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>                 }</div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>                 {</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>           <span class="comment">/*</span></div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span> <span class="comment">                    uves_save_paf(filename, i, recipe, qc[i], </span></div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span> <span class="comment">                          pl, raw_header, tag);</span></div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span> <span class="comment">          */</span></div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>                 }</div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>             }</div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>         } </div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>     }</div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span> </div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>     UVES_TIME_START(<span class="stringliteral">"save product"</span>);</div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span> </div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>     <span class="comment">/* Now save with the correct header */</span></div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>     <span class="keywordflow">if</span> (type == CPL_FRAME_TYPE_IMAGE)</div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>     {</div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>         <span class="keywordtype">bool</span> use_bitpix16_for_int = (strcmp(recipe, make_str(FLAMES_CAL_ORDERPOS)) == 0);</div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>         </div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image((cpl_image *) <span class="keywordtype">object</span>, filename, pl, </div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>                                use_bitpix16_for_int, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>            <span class="stringliteral">"Error saving image to file %s"</span>, filename);</div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>     }</div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (type == CPL_FRAME_TYPE_TABLE)                           <span class="comment">/* Table */</span></div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>     {</div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_table_save((cpl_table *) <span class="keywordtype">object</span>,</div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>                   pl,                                <span class="comment">/* Primary header */</span></div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>                   table_header,                      <span class="comment">/* Table header */</span></div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>                   filename,</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>                   CPL_IO_DEFAULT),                   <span class="comment">/* Create new file */</span></div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>            <span class="stringliteral">"Error saving table to file '%s'"</span>, filename);</div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>     }</div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>     {</div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>         assure(<span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Unsupported frame type"</span>);</div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>     }</div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span> </div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>     UVES_TIME_END;</div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>     </div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>   cleanup:</div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>     uves_free_propertylist(&pl);</div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>     </div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span> }</div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span> </div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span> </div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span> uves_dfs_write_statistics(<span class="keyword">const</span> cpl_image *image, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header,</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>          <span class="keywordtype">unsigned</span> stats_mask)</div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span> {</div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>     cpl_stats *stats = NULL;</div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span> </div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>     <span class="comment">/* Only these bits are supported, all others must be zero */</span></div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>     assure( (stats_mask & (CPL_STATS_MEAN | CPL_STATS_STDEV | CPL_STATS_MEDIAN |</div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>               CPL_STATS_MIN  | CPL_STATS_MAX)) == stats_mask,</div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>         CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Cannot compute mask %d"</span>,</div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>         stats_mask );</div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span> </div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>     UVES_TIME_START(<span class="stringliteral">"calculate stats"</span>);</div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span> </div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( stats = cpl_stats_new_from_image(</div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>            image, stats_mask),</div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>        <span class="stringliteral">"Error reading image statistics"</span>);</div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>     </div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>     UVES_TIME_END;</div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>     </div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>     <span class="keywordflow">if</span> (stats_mask & CPL_STATS_MEDIAN)</div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>     {</div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gad010fc0da98b85fdebcd5bc5ba66b2bf" title="Write the median pixel value.">uves_pfits_set_data_median</a> (header, cpl_stats_get_median(stats) ), </div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>            <span class="stringliteral">"Could not write median flux"</span>);</div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>     }</div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>     <span class="keywordflow">if</span> (stats_mask & CPL_STATS_MEAN)</div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>     {</div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga865460e642e3dc81fae544e3b6f1402a" title="Write the average pixel value.">uves_pfits_set_data_average</a>(header, cpl_stats_get_mean  (stats) ), </div>
-<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>            <span class="stringliteral">"Could not write average flux"</span>);</div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>     }</div>
-<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>     <span class="keywordflow">if</span> (stats_mask & CPL_STATS_STDEV)</div>
-<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>     {</div>
-<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga308f6a7549c50e0c513d63a40dfa975f" title="Write the RMS error of pixel values.">uves_pfits_set_data_stddev</a> (header, cpl_stats_get_stdev (stats) ), </div>
-<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>            <span class="stringliteral">"Could not write flux stdev"</span>);</div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>     }</div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>     <span class="keywordflow">if</span> (stats_mask & CPL_STATS_MIN)</div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>     {</div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gac4287c2bde551653e40d60e128a3a35a" title="Write the min pixel value.">uves_pfits_set_data_min</a>    (header, cpl_stats_get_min   (stats) ), </div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>            <span class="stringliteral">"Could not write min flux"</span>);</div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>     }</div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>     <span class="keywordflow">if</span> (stats_mask & CPL_STATS_MIN)</div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>     {</div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga12b323abb20f835610ee85f9511d2b30" title="Write the max pixel value.">uves_pfits_set_data_max</a>    (header, cpl_stats_get_max   (stats) ), </div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>            <span class="stringliteral">"Could not write max flux"</span>);</div>
-<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>     }</div>
-<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span> </div>
-<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>   cleanup:</div>
-<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>     uves_free_stats(&stats);</div>
-<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span> }</div>
-<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span> </div>
-<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span> </div>
-<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span> <span class="keywordtype">void</span> *</div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span> uves_read_midas_array(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, </div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>                       <span class="keywordtype">int</span> *length, cpl_type *type, <span class="keywordtype">int</span> *ncards)</div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span> {</div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>     <span class="keywordtype">void</span> *result = NULL;</div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>     <span class="keywordtype">unsigned</span> result_size;</div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>     <span class="keywordtype">int</span> N = strlen(name);</div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>     <span class="keywordtype">bool</span> found = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *value;</div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>     <span class="keywordtype">int</span> size;</div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>     <span class="keyword">const</span> <span class="keywordtype">long</span> <span class="keywordtype">int</span> plist_size = <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist);</div>
-<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>    </div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( length != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>(   type != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>     <span class="keywordflow">for</span> (i = 0; !found && i < plist_size; i++)</div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>     {</div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>       <span class="keyword">const</span> cpl_property *p = <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(plist, i);</div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>       value = cpl_property_get_name(p);</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>       </div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>       <span class="keywordflow">if</span> (strcmp(value, <span class="stringliteral">"HISTORY"</span>) == 0)</div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>         {</div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>           </div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( value = cpl_property_get_string(p),</div>
-<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>          <span class="stringliteral">"Error reading property value"</span>);</div>
-<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>           </div>
-<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>           <span class="comment">/* match the string  "'<name>','t"  */</span></div>
-<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>           </div>
-<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>           <span class="keywordflow">if</span> ((<span class="keywordtype">int</span>)strlen(value) >= 1+N+4 &&</div>
-<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>           value[0]     == <span class="charliteral">'\''</span> &&</div>
-<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>           value[N+1]   == <span class="charliteral">'\''</span> && </div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>           value[N+2]   == <span class="charliteral">','</span>  && </div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>           value[N+3]   == <span class="charliteral">'\''</span> && </div>
-<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>           strncmp(value+1, name, N) == 0</div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>           )</div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>         { </div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>           <span class="keywordflow">switch</span>(value[N+4]) {</div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>           <span class="keywordflow">case</span> <span class="charliteral">'R'</span>:</div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>         <span class="comment">/* Distinguish between </span></div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span> <span class="comment">           "'<name>','R*4'" and</span></div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span> <span class="comment">           "'<name>','R*8'"</span></div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>         *type = CPL_TYPE_DOUBLE;</div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span> </div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>         <span class="keywordflow">if</span> ((<span class="keywordtype">int</span>)strlen(value) >= 1+N+4+2 && value[N+4+1] == <span class="charliteral">'*'</span>)</div>
-<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>           {</div>
-<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>             <span class="keywordflow">switch</span>(value[N+4+2]) {</div>
-<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>             <span class="keywordflow">case</span> <span class="charliteral">'4'</span>: *type = CPL_TYPE_FLOAT; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>             <span class="keywordflow">case</span> <span class="charliteral">'8'</span>: *type = CPL_TYPE_DOUBLE; <span class="keywordflow">break</span>; </div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>               assure( <span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>                   <span class="stringliteral">"Unrecognized MIDAS type: 'R*%c'"</span>,</div>
-<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>                   value[N+4+2]);</div>
-<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>               <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>             }</div>
-<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>           }</div>
-<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>           <span class="keywordflow">case</span> <span class="charliteral">'I'</span>: *type = CPL_TYPE_INT   ; size = <span class="keyword">sizeof</span>(int);    <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>           <span class="keywordflow">case</span> <span class="charliteral">'C'</span>: *type = CPL_TYPE_STRING; size = <span class="keyword">sizeof</span>(char);   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>           <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>             <span class="stringliteral">"Unrecognized type '%c'"</span>, value[N+4]);</div>
-<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>           }</div>
-<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>           found = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>         }</div>
-<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>         }</div>
-<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>     }</div>
-<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>     </div>
-<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>     assure( found, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Could not find '%s' in property list"</span>, name);</div>
-<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>     </div>
-<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>     <span class="comment">/* 'i' is now the row immediately after first occurence of 'HISTORY   '<name>...  */</span></div>
-<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>     result_size = <span class="keyword">sizeof</span>(double) * 100;  <span class="comment">/* realloc when/if out of memory */</span></div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>     result = cpl_malloc(result_size);</div>
-<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span> </div>
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>     *length = 0;</div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>     <span class="keywordflow">if</span> (ncards != NULL) *ncards = 2; <span class="comment">/* First HISTORY entry + termination HISTORY entry */</span></div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>     <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>       <span class="keyword">const</span> cpl_property *p;</div>
-<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span> </div>
-<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>       <span class="keywordflow">if</span> (ncards != NULL) *ncards += 1;</div>
-<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span> </div>
-<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>       assure(i < plist_size, </div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>          CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Missing header data"</span>);</div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>       p = <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(plist, i);</div>
-<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>       assure(       cpl_property_get_type(p)             == CPL_TYPE_STRING &&</div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>             strcmp(cpl_property_get_name(p), <span class="stringliteral">"HISTORY"</span>) == 0, </div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>             CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Error parsing array"</span>);</div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>       value = cpl_property_get_string(<a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(plist, i));</div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>     </div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Parsing '%s'"</span>, value);</div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span> </div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>       <span class="keywordflow">if</span> (*type == CPL_TYPE_STRING)</div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>     {</div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>       assure( strlen(value) < 100, CPL_ERROR_UNSUPPORTED_MODE, </div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>           <span class="stringliteral">"String too long. Max size is 100"</span>);</div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span> </div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>       <span class="comment">/* Remove any blanks from the string</span></div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span> <span class="comment">         (e.g. convert "0 1 2" to "012")</span></div>
-<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span> <span class="comment">      */</span></div>
-<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>       {</div>
-<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>         <span class="keywordtype">int</span> len = strlen(value);</div>
-<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>         <span class="keywordtype">int</span> j = 0;</div>
-<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>         <span class="keywordtype">int</span> k;</div>
-<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>         <span class="keywordflow">for</span> (k = 0; k <= len; k++)  <span class="comment">/* including final '\0' */</span></div>
-<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>           {</div>
-<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>         <span class="comment">//if (value[k] != ' '){</span></div>
-<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>         ((<span class="keywordtype">char</span>*)result)[j] = value[k];</div>
-<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>         j++;</div>
-<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>         <span class="comment">//      }</span></div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>           }</div>
-<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>         *length = j-1;</div>
-<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>       }</div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span> </div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Converted '%s' to '%s'"</span>,</div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>              value, (<span class="keywordtype">char</span>*)result);</div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>                 </div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>       <span class="comment">/* done parsing */</span></div>
-<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>       value = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>     }</div>
-<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>         </div>
-<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>       <span class="keywordflow">else</span> { <span class="comment">/* numerical types */</span></div>
-<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>     <span class="keywordflow">if</span> (strcmp(value, <span class="stringliteral">""</span>) != 0) {</div>
-<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>       <span class="keywordtype">double</span> numberd = -1; <span class="comment">/* suppres warning */</span></div>
-<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>       <span class="keywordtype">int</span> numberi = -1;</div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>       <span class="keywordtype">float</span> numberf = -1;</div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>       <span class="keyword">const</span> <span class="keywordtype">int</span> base = 10;</div>
-<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>       <span class="keywordtype">char</span> *next = (<span class="keywordtype">char</span> *) value;</div>
-<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span> </div>
-<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>       <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>             <span class="comment">/* ignore OUTPUTI(1)- N,no.of data, */</span></div>
-<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>         <span class="keywordflow">switch</span>(*type) {</div>
-<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>           numberd = strtod(value, &next);</div>
-<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Got %g, remaining: '%s'"</span>, numberd, next);</div>
-<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>           <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>           numberf = strtod(value, &next); <span class="comment">// C99: strtof(value, &next);</span></div>
-<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Got %g, remaining: '%s'"</span>, numberf, next);</div>
-<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>           <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>           numberi = strtol(value, &next, base);</div>
-<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Got %d, remaining: '%s'"</span>, numberi, next);</div>
-<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>           <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>           <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(<span class="keyword">false</span>, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>         }</div>
-<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span>                     </div>
-<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>             <span class="keywordflow">if</span> (next != value)</div>
-<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>           {</div>
-<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>                 <span class="comment">/* A prefix of the string could be converted */</span></div>
-<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span>                 (*length)++;</div>
-<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>         <span class="keywordflow">if</span> (*length * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>) > result_size)</div>
-<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>           {</div>
-<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>             result_size *= 2;</div>
-<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>             result = cpl_realloc(result, result_size);</div>
-<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>           }</div>
-<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span> </div>
-<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>         <span class="keywordflow">switch</span>(*type) {</div>
-<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span>           ((<span class="keywordtype">double</span> *)result)[*length-1] = numberd;</div>
-<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>           <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>           ((<span class="keywordtype">float</span> *)result)[*length-1] = numberf;</div>
-<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>           <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>           ((<span class="keywordtype">int</span>    *)result)[*length-1] = numberi;</div>
-<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>           <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>           <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(<span class="keyword">false</span>, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>         }</div>
-<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span> </div>
-<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>                 value = next;</div>
-<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>                             </div>
-<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>         <span class="keywordflow">switch</span>(*type) {</div>
-<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>           numberd = strtod(value, &next);</div>
-<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Got %g, remaining: '%s'"</span>, numberd, next);</div>
-<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>           <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>           numberf = strtod(value, &next); <span class="comment">// C99: strtof(value, &next);</span></div>
-<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Got %g, remaining: '%s'"</span>, numberf, next);</div>
-<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span>           <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>           numberi = strtol(value, &next, base);</div>
-<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Got %d, remaining: '%s'"</span>, numberi, next);</div>
-<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>           <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>           <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(<span class="keyword">false</span>, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>         }</div>
-<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>           }</div>
-<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>       } <span class="keywordflow">while</span> (next != value);</div>
-<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>         }</div>
-<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>       }<span class="comment">/* if numerical type */</span></div>
-<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>         </div>
-<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>       i++;</div>
-<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span> </div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>       assure( strcmp(value, <span class="stringliteral">""</span>) == 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>           <span class="stringliteral">"Cannot parse %s descriptor %s, remaining string: '%s'"</span>, </div>
-<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>           <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(*type), name, value);</div>
-<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>     </div>
-<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>       <span class="comment">/* Find out if we can continue parsing the next HISTORY keyword */</span></div>
-<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>       <span class="keywordflow">if</span> (i < plist_size)</div>
-<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>         {</div>
-<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>       p = <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(plist, i);</div>
-<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>       <span class="keywordflow">if</span> (cpl_property_get_type(p) == CPL_TYPE_STRING &&</div>
-<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>           strcmp(cpl_property_get_name(p), <span class="stringliteral">"HISTORY"</span>) == 0)</div>
-<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>             {</div>
-<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>           value = cpl_property_get_string(</div>
-<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>                           <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(plist, i));</div>
-<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span> </div>
-<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>           <span class="keywordflow">if</span> (*type == CPL_TYPE_STRING)</div>
-<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>         {</div>
-<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>           <span class="keywordflow">if</span> (strcmp(value, <span class="stringliteral">""</span>) != 0) {</div>
-<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"String array %s with length > 1 found. Ignoring remaining values"</span>, name);</div>
-<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>             <span class="keywordflow">while</span> (strcmp(value, <span class="stringliteral">""</span>) != 0 && i+1 < plist_size) {</div>
-<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>               i++;</div>
-<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>               p = <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(plist, i);</div>
-<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>               value = cpl_property_get_string(</div>
-<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>                               <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(plist, i));</div>
-<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>               <span class="keywordflow">if</span> (ncards != NULL) *ncards += 1;</div>
-<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>             }</div>
-<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>           }</div>
-<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>         }</div>
-<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>         }</div>
-<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>     }</div>
-<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>       </div>
-<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>     } <span class="keywordflow">while</span> (strcmp(value, <span class="stringliteral">""</span>) != 0);</div>
-<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>     </div>
-<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>  cleanup:</div>
-<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>       {</div>
-<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>     cpl_free(result); result = NULL;</div>
-<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span>       }</div>
-<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span> }</div>
-<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span> </div>
-<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span> </div>
-<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span> cpl_error_code</div>
-<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span> uves_save_table_local(<span class="keyword">const</span> <span class="keywordtype">char</span> *description, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename_prefix,</div>
-<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>               <span class="keyword">const</span> cpl_table *table, </div>
-<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>               <span class="keyword">enum</span> uves_chip chip, <span class="keywordtype">int</span> trace, <span class="keywordtype">int</span> window,</div>
-<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>               <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *pheader, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *eheader)</div>
-<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span> {</div>
-<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>     <span class="keywordtype">char</span> *filename = NULL;</div>
-<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span> </div>
-<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( filename = uves_local_filename(filename_prefix, chip, trace, window),</div>
-<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>        <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span> </div>
-<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_table_save(table, pheader, eheader, filename, CPL_IO_DEFAULT), </div>
-<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>        <span class="stringliteral">"Error saving table to file '%s'"</span>, filename);</div>
-<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>     </div>
-<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>     <span class="keywordflow">if</span> (description != NULL) <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%s saved to '%s'"</span>, description, filename);</div>
-<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>     </div>
-<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>   cleanup:</div>
-<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>     cpl_free(filename);</div>
-<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span> }</div>
-<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span> </div>
-<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span> cpl_error_code</div>
-<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span> uves_save_image_local(<span class="keyword">const</span> <span class="keywordtype">char</span> *description, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename_prefix, </div>
-<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>                       <span class="keyword">const</span> cpl_image *image, </div>
-<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>                       <span class="keyword">enum</span> uves_chip chip, <span class="keywordtype">int</span> trace, <span class="keywordtype">int</span> window,</div>
-<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>                       <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist,</div>
-<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>                       <span class="keywordtype">bool</span> use_bitpix16_for_int)</div>
-<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span> {</div>
-<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>     <span class="keywordtype">char</span> *filename = NULL;</div>
-<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>     </div>
-<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( filename = uves_local_filename(filename_prefix, chip, trace, window),</div>
-<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>        <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>     </div>
-<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image(image, filename, plist, use_bitpix16_for_int, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>            <span class="stringliteral">"Error saving image to file '%s'"</span>, filename);</div>
-<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>     <span class="keywordflow">if</span> (description != NULL) <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%s saved to '%s'"</span>, description, filename);</div>
-<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>     </div>
-<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>   cleanup:</div>
-<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>     cpl_free(filename);</div>
-<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span> }</div>
-<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span> </div>
-<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span> </div>
-<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span> cpl_image *uves_load_image(<span class="keyword">const</span> cpl_frame *f,</div>
-<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span>                <span class="keywordtype">int</span> plane,</div>
-<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>                <span class="keywordtype">int</span> extension,</div>
-<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>                <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **header)</div>
-<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span> {</div>
-<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>     cpl_image *image = NULL;</div>
-<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist = NULL;</div>
-<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *filename;</div>
-<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>     <span class="keywordtype">int</span> bitpix;</div>
-<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>     cpl_type type;</div>
-<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>     <span class="keywordtype">int</span> naxis=0;</div>
-<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>     cpl_vector * vector=NULL;</div>
-<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span> </div>
-<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>     </div>
-<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( f != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>  </div>
-<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>     assure( cpl_frame_get_type(f) == CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>         CPL_ERROR_TYPE_MISMATCH, <span class="stringliteral">"Wrong type: %s"</span>,</div>
-<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>         <a class="code" href="group__uves__dump.html#ga7b4de02190abecc763b7be5c85e89b6e" title="Convert a frame type to a string.">uves_tostring_cpl_frame_type</a>(cpl_frame_get_type(f)));</div>
-<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span> </div>
-<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>     filename = cpl_frame_get_filename(f);</div>
-<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span> </div>
-<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( plist = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(filename, extension),</div>
-<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>        <span class="stringliteral">"Could not load header from %s extension %d"</span>, </div>
-<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>        filename, extension);</div>
-<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>     </div>
-<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( bitpix = <a class="code" href="group__uves__pfits.html#ga45d7028cbd48f33f7c5589deb4ccd5c4" title="Find out the BITPIX.">uves_pfits_get_bitpix</a>(plist),</div>
-<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>        <span class="stringliteral">"Could not read BITPIX from %s extension %d"</span>,</div>
-<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>        filename, extension);</div>
-<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span>     </div>
-<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>     <span class="keywordflow">if</span>      (bitpix == -32) type = CPL_TYPE_FLOAT;</div>
-<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (bitpix == -64) type = CPL_TYPE_DOUBLE;</div>
-<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (bitpix ==  32) type = CPL_TYPE_INT;</div>
-<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (bitpix ==  16) type = CPL_TYPE_INT;</div>
-<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>     {</div>
-<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>             <span class="stringliteral">"No CPL type to represent BITPIX = %d"</span>, bitpix);</div>
-<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>     }</div>
-<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span> </div>
-<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( naxis = <a class="code" href="group__uves__pfits.html#ga17228ff502d3e1eafc4359b2b7069a32" title="Find out the NAXIS.">uves_pfits_get_naxis</a>(plist),</div>
-<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>            <span class="stringliteral">"could not get NAXIS"</span> );</div>
-<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span> </div>
-<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>     <span class="keywordflow">if</span>( naxis == 1) {</div>
-<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span> </div>
-<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( vector = cpl_vector_load(filename,extension),</div>
-<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>              <span class="stringliteral">"Could not load vector from extension %d of file '%s' "</span>,</div>
-<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>              extension, filename);</div>
-<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>       cknull(image=uves_vector_to_image(vector,type),</div>
-<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>          <span class="stringliteral">"could not convert vector to image"</span>);</div>
-<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span> </div>
-<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span> </div>
-<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( image = cpl_image_load(filename,</div>
-<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>                     type,</div>
-<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>                     plane,</div>
-<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span>                     extension),</div>
-<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>          <span class="stringliteral">"Could not load image from extension %d of file '%s' "</span>, </div>
-<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>          extension, filename);</div>
-<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span> </div>
-<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span>     }</div>
-<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span> </div>
-<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>     <span class="keywordflow">if</span> (header != NULL)</div>
-<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>     {</div>
-<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>         *header = <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(plist);</div>
-<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>     }</div>
-<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span> </div>
-<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>   cleanup:</div>
-<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>     uves_free_vector(&vector);</div>
-<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>     uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>     <span class="keywordflow">return</span> image;</div>
-<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span> }</div>
-<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span> </div>
-<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span> cpl_image *uves_load_image_file(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename,</div>
-<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>                                 <span class="keywordtype">int</span> plane,</div>
-<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>                                 <span class="keywordtype">int</span> extension,</div>
-<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>                                 <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **header)</div>
-<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span> {</div>
-<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>     cpl_image *i;</div>
-<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>     cpl_frame *f = cpl_frame_new();</div>
-<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span>     cpl_frame_set_filename(f, filename);</div>
-<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>     cpl_frame_set_type(f, CPL_FRAME_TYPE_IMAGE);</div>
-<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span> </div>
-<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span>     i = uves_load_image(f, plane, extension, header);</div>
-<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span>     </div>
-<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span>     uves_free_frame(&f);</div>
-<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span> </div>
-<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>     <span class="keywordflow">return</span> i;</div>
-<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span> }</div>
-<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span> </div>
-<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span> uves_save_image(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist,</div>
-<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>                 <span class="keywordtype">bool</span> use_bitpix16_for_int, <span class="keywordtype">bool</span> save1d)</div>
-<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span> {</div>
-<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>     cpl_type_bpp bpp;</div>
-<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>     cpl_type t;</div>
-<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span>     <span class="keyword">const</span> cpl_vector *image_1d = NULL;</div>
-<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header = NULL;</div>
-<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>     cpl_image *thresholded = NULL;</div>
-<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>     cpl_image *thresholded_double = NULL;</div>
-<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>     </div>
-<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>     <span class="keywordflow">if</span> (image == NULL) {</div>
-<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_image_save(image, filename, CPL_BPP_IEEE_FLOAT, plist, CPL_IO_DEFAULT), </div>
-<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>                <span class="stringliteral">"Error saving NULL image to file '%s'"</span>, filename);</div>
-<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>     }</div>
-<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( t = cpl_image_get_type(image), <span class="stringliteral">"Error reading image type"</span>);</div>
-<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>         <span class="keywordflow">if</span>      (t == CPL_TYPE_FLOAT ) bpp = CPL_BPP_IEEE_FLOAT;</div>
-<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (t == CPL_TYPE_DOUBLE) bpp = CPL_BPP_IEEE_FLOAT;</div>
-<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>         <span class="comment">/* Internal computations in double precision,</span></div>
-<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span> <span class="comment">           save as single precision */</span></div>
-<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span> <span class="preprocessor">#if CPL_VERSION_CODE >= CPL_VERSION(3, 0, 1)</span></div>
-<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span> <span class="preprocessor"></span>        <span class="comment">/* Some FLAMES images are BITPIX=16 (ORDEF), </span></div>
-<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span> <span class="comment">           some are 32 SLIT_FF_COM_REDL</span></div>
-<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (t == CPL_TYPE_INT   ) {</div>
-<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>             <span class="keywordflow">if</span> (use_bitpix16_for_int) bpp = CPL_BPP_16_UNSIGNED;</div>
-<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>             <span class="keywordflow">else</span> bpp = CPL_BPP_32_SIGNED;</div>
-<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>         }</div>
-<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span> <span class="preprocessor"></span>        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (t == CPL_TYPE_INT   ) bpp = CPL_BPP_16_SIGNED;</div>
-<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span> <span class="preprocessor"></span>        <span class="keywordflow">else</span> assure(<span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>                     <span class="stringliteral">"Unsupported image type '%s'"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(t));</div>
-<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span> </div>
-<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span> </div>
-<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>         thresholded = cpl_image_duplicate(image);</div>
-<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( thresholded );</div>
-<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span> </div>
-<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>         <span class="keywordflow">if</span> (t == CPL_TYPE_DOUBLE)</div>
-<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>             {</div>
-<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>                 <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( bpp == CPL_BPP_IEEE_FLOAT, <span class="stringliteral">"%d"</span>, bpp);</div>
-<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span> </div>
-<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>                 <span class="comment">/* Avoid infinities that would happen when casting</span></div>
-<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span> <span class="comment">                   double -> float</span></div>
-<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span> <span class="comment">                   by thresholding the image to +-FLT_MAX (or, better</span></div>
-<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span> <span class="comment">                   a little less than FLT_MAX just to be sure).</span></div>
-<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span> <span class="comment">        </span></div>
-<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span> <span class="comment">                   (This is not a really nice solution because it solves the</span></div>
-<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span> <span class="comment">                   problem (too large/small values) after it is introduced</span></div>
-<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span> <span class="comment">                   (rather than avoiding it), but a general solution of the</span></div>
-<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span> <span class="comment">                   problem would probably mean guarding every arithmetic</span></div>
-<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span> <span class="comment">                   operation with range checks.)</span></div>
-<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>         </div>
-<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>                 <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cpl_image_threshold(thresholded,</div>
-<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>                                                  -FLT_MAX, FLT_MAX,</div>
-<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>                                                  -FLT_MAX, FLT_MAX) );</div>
-<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span> </div>
-<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>                 <span class="comment">/* Also get rid of NaN, set to zero (what else?) */</span></div>
-<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>                 {</div>
-<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>                     <span class="keywordtype">double</span> *data = cpl_image_get_data_double(thresholded);</div>
-<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>                     <span class="keywordtype">int</span> nx = cpl_image_get_size_x(thresholded);</div>
-<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>                     <span class="keywordtype">int</span> ny = cpl_image_get_size_y(thresholded);</div>
-<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>                     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>         </div>
-<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>                     <span class="keywordflow">for</span> (y = 0; y < ny; y++)</div>
-<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>                         <span class="keywordflow">for</span> (x = 0; x < nx; x++)</div>
-<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>                             {</div>
-<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>                                 <span class="keywordflow">if</span> (irplib_isnan(data[x + y*nx]))</div>
-<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>                                     {</div>
-<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>                                         data[x + y*nx] = 0;</div>
-<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>                                     }</div>
-<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>                             }</div>
-<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>                 }</div>
-<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>             }</div>
-<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span> </div>
-<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>         <span class="keywordflow">if</span> (save1d && </div>
-<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>             cpl_image_get_size_y(thresholded) == 1 &&</div>
-<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>             (t == CPL_TYPE_DOUBLE ||</div>
-<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>              t == CPL_TYPE_FLOAT)) {</div>
-<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>             </div>
-<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>             <span class="keywordtype">bool</span> invert = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>             <span class="keywordflow">if</span> (plist != NULL)</div>
-<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>                 {</div>
-<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>                     header = <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(plist);</div>
-<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>             </div>
-<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>                     <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(header, <span class="stringliteral">"^CDELT2$"</span>, invert);</div>
-<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>                     <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(header, <span class="stringliteral">"^CRPIX2$"</span>, invert);</div>
-<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>                     <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(header, <span class="stringliteral">"^CRVAL2$"</span>, invert);</div>
-<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>                     <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(header, <span class="stringliteral">"^CTYPE2$"</span>, invert);</div>
-<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>                 }</div>
-<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>                 {</div>
-<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>                     header = NULL;</div>
-<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>                 }</div>
-<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>         </div>
-<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>             <span class="comment">/* Image type must be double, before wrapping it</span></div>
-<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span> <span class="comment">               in a vector */</span></div>
-<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>             <span class="keywordflow">if</span> (t == CPL_TYPE_FLOAT) {</div>
-<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>                 thresholded_double = cpl_image_cast(thresholded, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span>             }</div>
-<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span>             <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span>                 thresholded_double = cpl_image_duplicate(thresholded);</div>
-<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span>             }</div>
-<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>         </div>
-<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_image_get_type(thresholded_double) == CPL_TYPE_DOUBLE, <span class="stringliteral">"%d"</span>,</div>
-<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>                      cpl_image_get_type(thresholded_double));</div>
-<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>         </div>
-<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>             image_1d = cpl_vector_wrap(</div>
-<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>                 cpl_image_get_size_x(thresholded_double),</div>
-<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>                 cpl_image_get_data_double(thresholded_double));</div>
-<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span> </div>
-<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_vector_save(image_1d, filename, bpp, header, CPL_IO_DEFAULT),</div>
-<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>                    <span class="stringliteral">"Error saving vector to file '%s'"</span>, filename );</div>
-<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>         }</div>
-<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>             {</div>
-<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_image_save(thresholded, filename, bpp, plist, CPL_IO_DEFAULT), </div>
-<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>                        <span class="stringliteral">"Error saving image to file '%s'"</span>, filename);</div>
-<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>             }</div>
-<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>     }</div>
-<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>     </div>
-<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>   cleanup:</div>
-<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>     uves_unwrap_vector_const(&image_1d);</div>
-<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>     uves_free_propertylist(&header);</div>
-<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>     uves_free_image(&thresholded);</div>
-<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>     uves_free_image(&thresholded_double);</div>
-<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>     </div>
-<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span> }</div>
-<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span> </div>
-<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span> </div>
-<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span> uves_save_imagelist(<span class="keyword">const</span> cpl_imagelist *iml, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist)</div>
-<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span> {</div>
-<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>     <span class="keyword">const</span> cpl_image* img=NULL;</div>
-<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>     cpl_type_bpp bpp;</div>
-<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>     cpl_type t;</div>
-<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>     <span class="keyword">const</span> cpl_vector *image_1d = NULL;</div>
-<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header = NULL;</div>
-<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>     cpl_imagelist *thresholded = NULL;</div>
-<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span> </div>
-<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>     <span class="keywordtype">int</span> nx = 0;</div>
-<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>     <span class="keywordtype">int</span> ny = 0;</div>
-<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>     <span class="keywordtype">int</span> nz = 0;</div>
-<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span> </div>
-<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>     </div>
-<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>     cknull(iml,<span class="stringliteral">"Null input image"</span>);</div>
-<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(img=cpl_imagelist_get_const(iml,0),<span class="stringliteral">"error reading image"</span>);</div>
-<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span> </div>
-<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( nx = cpl_image_get_size_x(img));</div>
-<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( ny = cpl_image_get_size_y(img));</div>
-<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( nz = cpl_imagelist_get_size(iml));</div>
-<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span> </div>
-<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( t = cpl_image_get_type(img), <span class="stringliteral">"Error reading image type"</span>);</div>
-<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>     <span class="keywordflow">if</span>      (t == CPL_TYPE_FLOAT ) bpp = CPL_BPP_IEEE_FLOAT;</div>
-<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (t == CPL_TYPE_DOUBLE) bpp = CPL_BPP_IEEE_FLOAT;</div>
-<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>     <span class="comment">/* Internal computations in double precision,</span></div>
-<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span> <span class="comment">       save as single precision */</span></div>
-<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span> <span class="preprocessor">#if CPL_VERSION_CODE >= CPL_VERSION(3, 0, 1)</span></div>
-<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span> <span class="preprocessor"></span>    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (t == CPL_TYPE_INT   ) bpp = CPL_BPP_16_UNSIGNED;</div>
-<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span> <span class="preprocessor"></span>    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (t == CPL_TYPE_INT   ) bpp = CPL_BPP_16_SIGNED;</div>
-<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span> <span class="preprocessor"></span>    <span class="keywordflow">else</span> assure(<span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>         <span class="stringliteral">"Unsupported image type '%s'"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(t));</div>
-<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span> </div>
-<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span> </div>
-<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>     thresholded = cpl_imagelist_duplicate(iml);</div>
-<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( thresholded );</div>
-<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span> </div>
-<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span>     <span class="keywordflow">if</span> (t == CPL_TYPE_DOUBLE)</div>
-<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span>     {</div>
-<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( bpp == CPL_BPP_IEEE_FLOAT, <span class="stringliteral">"%d"</span>, bpp);</div>
-<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span> </div>
-<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>         <span class="comment">/* Avoid infinities that would happen when casting</span></div>
-<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span> <span class="comment">               double -> float</span></div>
-<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span> <span class="comment">           by thresholding the image to +-FLT_MAX (or, better</span></div>
-<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span> <span class="comment">           a little less than FLT_MAX just to be sure).</span></div>
-<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span> <span class="comment">        </span></div>
-<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span> <span class="comment">           (This is not a really nice solution because it solves the</span></div>
-<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span> <span class="comment">           problem (too large/small values) after it is introduced</span></div>
-<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span> <span class="comment">           (rather than avoiding it), but a general solution of the</span></div>
-<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span> <span class="comment">           problem would probably mean guarding every arithmetic</span></div>
-<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span> <span class="comment">           operation with range checks.)</span></div>
-<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>         </div>
-<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cpl_imagelist_threshold(thresholded,</div>
-<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>                          -FLT_MAX, FLT_MAX,</div>
-<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>                          -FLT_MAX, FLT_MAX) );</div>
-<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span> </div>
-<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span> </div>
-<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span> </div>
-<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>         <span class="comment">/* Also get rid of NaN, set to zero (what else?) */</span></div>
-<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>         {</div>
-<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>         <span class="keywordtype">int</span> x, y, z;</div>
-<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>         <span class="keywordtype">double</span>* data=NULL;</div>
-<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>         cpl_image* ima=NULL;</div>
-<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>         <span class="keywordflow">for</span> (z = 0; z < nz; z++) {</div>
-<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>           ima=cpl_imagelist_get(thresholded,z);</div>
-<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span>           data = cpl_image_get_data_double(ima);</div>
-<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span> </div>
-<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span>           <span class="keywordflow">for</span> (y = 0; y < ny; y++) {</div>
-<div class="line"><a name="l02564"></a><span class="lineno"> 2564</span>             <span class="keywordflow">for</span> (x = 0; x < nx; x++) {</div>
-<div class="line"><a name="l02565"></a><span class="lineno"> 2565</span>               <span class="keywordflow">if</span> (irplib_isnan(data[x + y*nx])) {</div>
-<div class="line"><a name="l02566"></a><span class="lineno"> 2566</span>             data[x + y*nx] = 0;    </div>
-<div class="line"><a name="l02567"></a><span class="lineno"> 2567</span>               }</div>
-<div class="line"><a name="l02568"></a><span class="lineno"> 2568</span>             }</div>
-<div class="line"><a name="l02569"></a><span class="lineno"> 2569</span>           }</div>
-<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span>         }</div>
-<div class="line"><a name="l02571"></a><span class="lineno"> 2571</span>         }</div>
-<div class="line"><a name="l02572"></a><span class="lineno"> 2572</span>     }</div>
-<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span>     <span class="keywordflow">if</span> (nz == 1 && t == CPL_TYPE_DOUBLE)</div>
-<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span>     <span class="comment">/* To support other types (float, int) we would</span></div>
-<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span> <span class="comment">       need to convert to double first */</span></div>
-<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span>     {</div>
-<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span>         <span class="keywordtype">bool</span> invert = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span>         <span class="keywordflow">if</span> (plist != NULL)</div>
-<div class="line"><a name="l02579"></a><span class="lineno"> 2579</span>         {</div>
-<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>             header = <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(plist);</div>
-<div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>             </div>
-<div class="line"><a name="l02582"></a><span class="lineno"> 2582</span>             <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(header, <span class="stringliteral">"^CDELT3$"</span>, invert);</div>
-<div class="line"><a name="l02583"></a><span class="lineno"> 2583</span>             <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(header, <span class="stringliteral">"^CRPIX3$"</span>, invert);</div>
-<div class="line"><a name="l02584"></a><span class="lineno"> 2584</span>             <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(header, <span class="stringliteral">"^CRVAL3$"</span>, invert);</div>
-<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span>             <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(header, <span class="stringliteral">"^CTYPE3$"</span>, invert);</div>
-<div class="line"><a name="l02586"></a><span class="lineno"> 2586</span>         }</div>
-<div class="line"><a name="l02587"></a><span class="lineno"> 2587</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span>         {</div>
-<div class="line"><a name="l02589"></a><span class="lineno"> 2589</span>             header = NULL;</div>
-<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span>         }</div>
-<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span> <span class="comment">        image_1d = cpl_vector_wrap(nx,</span></div>
-<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span> <span class="comment">                        cpl_image_get_data_double_const(thresholded));</span></div>
-<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span> <span class="comment">        </span></div>
-<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span> <span class="comment">        check( uves_vector_save(image_1d, filename, bpp, header, CPL_IO_DEFAULT),</span></div>
-<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span> <span class="comment">           "Error saving vector to file '%s'", filename );</span></div>
-<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span>         </div>
-<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span>     }</div>
-<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span>     {</div>
-<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_imagelist_save(thresholded, filename, bpp, plist, CPL_IO_DEFAULT), </div>
-<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span>            <span class="stringliteral">"Error saving image to file '%s'"</span>, filename);</div>
-<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>     }</div>
-<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>     </div>
-<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>   cleanup:</div>
-<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>     uves_unwrap_vector_const(&image_1d);</div>
-<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>     uves_free_propertylist(&header);</div>
-<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>     uves_free_imagelist(&thresholded);</div>
-<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span> </div>
-<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span> }</div>
-<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span> </div>
-<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span> cpl_error_code</div>
-<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span> uves_save_polynomial(<a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header)</div>
-<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span> {</div>
-<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span>     cpl_table *t = NULL;</div>
-<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span> </div>
-<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( t = <a class="code" href="group__uves__utils__polynomial.html#ga63ecda6c71765c319dc2d4141222bb42" title="Convert a polynomial to a table.">uves_polynomial_convert_to_table</a>(p), <span class="stringliteral">"Error converting polynomial to table"</span>);</div>
-<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>     </div>
-<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_table_save(t, </div>
-<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>               NULL,                       <span class="comment">/* Primary header, ignored when </span></div>
-<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span> <span class="comment">                             mode = CPL_IO_EXTEND */</span></div>
-<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>               header,                     <span class="comment">/* Table header */</span></div>
-<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>               filename,</div>
-<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>               CPL_IO_EXTEND),             <span class="comment">/* Append to existing file */</span></div>
-<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>        <span class="stringliteral">"Error saving table to file '%s'"</span>, filename);</div>
-<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>     </div>
-<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>   cleanup:</div>
-<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>     uves_free_table(&t);</div>
-<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span> }</div>
-<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span> </div>
-<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span> </div>
-<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span> <span class="keyword">static</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span> load_polynomial(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename, <span class="keywordtype">int</span> extension)</div>
-<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span> {</div>
-<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *p = NULL;  <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>     cpl_table  *t = NULL;</div>
-<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>     </div>
-<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(t = cpl_table_load(filename,</div>
-<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>                  extension,</div>
-<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span>                  1),                   <span class="comment">/* Mark identified </span></div>
-<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span> <span class="comment">                              invalid null values (1=yes) */</span></div>
-<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>       <span class="stringliteral">"Error loading polynomial from extension %d of file '%s'"</span>, extension, filename);</div>
-<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span> </div>
-<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>     assure( uves_erase_invalid_table_rows(t, NULL) == 0, </div>
-<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>         CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Table contains invalid rows"</span>);</div>
-<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>     </div>
-<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(p = <a class="code" href="group__uves__utils__polynomial.html#ga135ba9a062f18392bb33b678c9dedaa4" title="Convert a table to a polynomial.">uves_polynomial_convert_from_table</a>(t), <span class="stringliteral">"Error converting table to polynomial"</span>);</div>
-<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span> </div>
-<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>   cleanup:</div>
-<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>     uves_free_table(&t);</div>
-<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p);</div>
-<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>     <span class="keywordflow">return</span> p;</div>
-<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span> }</div>
-<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span> identify_arm(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *blue_tag, <span class="keyword">const</span> <span class="keywordtype">char</span> *red_tag,</div>
-<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>          <span class="keywordtype">bool</span> *blue)</div>
-<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span> {</div>
-<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tag = NULL; <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>     </div>
-<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>     <span class="keyword">const</span> cpl_frame *frame = NULL;</div>
-<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>     </div>
-<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( frames != NULL, <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>     assure (!cpl_frameset_is_empty(frames), CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"No input frames"</span>);</div>
-<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>     </div>
-<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>     <span class="comment">/* Identify blue/red arm */</span></div>
-<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>     frame = cpl_frameset_find_const(frames, blue_tag);</div>
-<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>     *blue = (frame != NULL);</div>
-<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>     </div>
-<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>     <span class="keywordflow">if</span> (frame == NULL)</div>
-<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>     {</div>
-<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>         frame = cpl_frameset_find_const(frames, red_tag);</div>
-<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>     }</div>
-<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>     </div>
-<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>     assure( frame != NULL, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>         <span class="stringliteral">"No valid input frames "</span></div>
-<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>         <span class="stringliteral">"('%s' or '%s') in frame set"</span>,</div>
-<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span>         blue_tag, red_tag);</div>
-<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>     </div>
-<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span>     assure( cpl_frameset_find_const(frames, blue_tag) == NULL ||</div>
-<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span>         cpl_frameset_find_const(frames, red_tag)  == NULL,</div>
-<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>         CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>         <span class="stringliteral">"Multiple types of input frames ('%s' and '%s') in frame set"</span>,</div>
-<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>         blue_tag, red_tag);</div>
-<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>     </div>
-<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>     tag = cpl_frame_get_tag(frame);</div>
-<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>     </div>
-<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Input frames are '%s'"</span>, tag);</div>
-<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>     </div>
-<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span> </div>
-<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>   cleanup:</div>
-<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span>     <span class="keywordflow">return</span> tag;</div>
-<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span> }</div>
-<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span> </div>
-<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span> cpl_image *</div>
-<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span> uves_crop_and_rotate(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header,</div>
-<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>              <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>              <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *redl_header, </div>
-<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>              <span class="keywordtype">bool</span> new_format, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **out_header)</div>
-<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span> {</div>
-<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>     cpl_image *result = NULL;</div>
-<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>     <span class="keywordtype">int</span> prescanx, ovrscanx;</div>
-<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>     cpl_size nx, ny;</div>
-<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>     <span class="keywordtype">int</span> x_0, y_0, x_1, y_1; <span class="comment">/* Extracted area (inclusive) in </span></div>
-<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span> <span class="comment">                   FITS convention (i.e. counting from 1) */</span></div>
-<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span> </div>
-<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *ctype1, *ctype2; <span class="comment">/* Geometry */</span></div>
-<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *cunit1, *cunit2; <span class="comment">/* Units */</span></div>
-<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *bunit;</div>
-<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>     <span class="keywordtype">double</span> bscale=0;</div>
-<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span>     <span class="keywordtype">double</span> crval1, crval2;</div>
-<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>     <span class="keywordtype">double</span> crpix1, crpix2;</div>
-<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>     <span class="keywordtype">double</span> cdelt1, cdelt2;</div>
-<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span> </div>
-<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span> </div>
-<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( image != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( out_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>     </div>
-<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span> </div>
-<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span> </div>
-<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>     <span class="comment">/* Determine pre- and overscan areas */</span></div>
-<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( prescanx = <a class="code" href="group__uves__pfits.html#ga408818ada3d951ea32c4063728eca597" title="Find out the x-prescan.">uves_pfits_get_prescanx</a>(header, chip), <span class="stringliteral">"Could not read x-prescan info"</span> );</div>
-<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ovrscanx = <a class="code" href="group__uves__pfits.html#ga3d6bc36f09d098e2804a09c276917634" title="Find out the x-overscan.">uves_pfits_get_ovrscanx</a>(header, chip), <span class="stringliteral">"Could not read x-overscan info"</span>);</div>
-<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>   </div>
-<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>     <span class="comment">/* Don't try to read the y pre- and overscan regions, which should be zero for UVES.</span></div>
-<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span> <span class="comment">       The keywords are not present in older UVES data. */</span></div>
-<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span> </div>
-<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>     <span class="comment">/* Read geometry */</span></div>
-<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ctype1 = <a class="code" href="group__uves__pfits.html#gaa01218ecc26f39e4d903199d8912859a" title="Find out the ctype1.">uves_pfits_get_ctype1</a>(header), <span class="stringliteral">"Error reading keyword"</span>);</div>
-<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ctype2 = <a class="code" href="group__uves__pfits.html#ga10f0c2c5e0fd87a36ede0e7fb2fa05bd" title="Find out the ctype2.">uves_pfits_get_ctype2</a>(header), <span class="stringliteral">"Error reading keyword"</span>);</div>
-<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( crval1 = <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(header), <span class="stringliteral">"Error reading keyword"</span>);</div>
-<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( crval2 = <a class="code" href="group__uves__pfits.html#gaefba8b3c1a2fbe5c0f42eaeaaafaf455" title="Find out the crval2.">uves_pfits_get_crval2</a>(header), <span class="stringliteral">"Error reading keyword"</span>);</div>
-<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( crpix1 = <a class="code" href="group__uves__pfits.html#ga1820feccc4e549d16d5630880790cea3" title="Find out the crpix1.">uves_pfits_get_crpix1</a>(header), <span class="stringliteral">"Error reading keyword"</span>);</div>
-<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( crpix2 = <a class="code" href="group__uves__pfits.html#ga18ea5d528ab27ac81d2b64901f81c4b7" title="Find out the crpix2.">uves_pfits_get_crpix2</a>(header), <span class="stringliteral">"Error reading keyword"</span>);</div>
-<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cdelt1 = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(header), <span class="stringliteral">"Error reading keyword"</span>);</div>
-<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cdelt2 = <a class="code" href="group__uves__pfits.html#gab1af91452dda53e50314231795bf5308" title="Find out the cdelt2.">uves_pfits_get_cdelt2</a>(header), <span class="stringliteral">"Error reading keyword"</span>);</div>
-<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(header, UVES_BUNIT))</div>
-<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>     {</div>
-<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>         bunit = <a class="code" href="group__uves__pfits.html#gaeaf186ce3a84dfbca11c7cee211e80ce" title="Find out the bunit.">uves_pfits_get_bunit</a>(header);</div>
-<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span>     }</div>
-<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>     {</div>
-<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span>         bunit = <span class="stringliteral">" "</span>;</div>
-<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>     }</div>
-<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(header, UVES_BSCALE))</div>
-<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>     {</div>
-<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span>         bscale = <a class="code" href="group__uves__pfits.html#gacc6916f14b6591ccc948f1ca8117fbf0" title="Find out the bscale.">uves_pfits_get_bscale</a>(header);</div>
-<div class="line"><a name="l02813"></a><span class="lineno"> 2813</span>     }</div>
-<div class="line"><a name="l02814"></a><span class="lineno"> 2814</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02815"></a><span class="lineno"> 2815</span>     {</div>
-<div class="line"><a name="l02816"></a><span class="lineno"> 2816</span>        bscale = 0;</div>
-<div class="line"><a name="l02817"></a><span class="lineno"> 2817</span>     }</div>
-<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span> </div>
-<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(header, UVES_CUNIT1))</div>
-<div class="line"><a name="l02820"></a><span class="lineno"> 2820</span>     {</div>
-<div class="line"><a name="l02821"></a><span class="lineno"> 2821</span>         cunit1 = <a class="code" href="group__uves__pfits.html#ga59cf5e1608701d663f3abcc8fcb41880" title="Find out the cunit1.">uves_pfits_get_cunit1</a>(header);</div>
-<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span>     }</div>
-<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span>     {</div>
-<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span>         cunit1 = <span class="stringliteral">" "</span>;</div>
-<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span>     }</div>
-<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(header, UVES_CUNIT2))</div>
-<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span>     {</div>
-<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span>         cunit2 = <a class="code" href="group__uves__pfits.html#ga1f8205720c4af931e1dfb55542d71ccc" title="Find out the cunit2.">uves_pfits_get_cunit2</a>(header);</div>
-<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span>     }</div>
-<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span>     {</div>
-<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>         cunit2 = <span class="stringliteral">" "</span>;</div>
-<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>     }</div>
-<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>     </div>
-<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span> </div>
-<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span>     <span class="comment">/* Crop the image */</span></div>
-<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span>     {</div>
-<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span>     y_0 = 1;</div>
-<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span>     y_1 = ny;</div>
-<div class="line"><a name="l02841"></a><span class="lineno"> 2841</span>     <span class="keywordflow">if</span> (new_format || chip == UVES_CHIP_BLUE)</div>
-<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span>         {</div>
-<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span>         x_0 = prescanx + 1;</div>
-<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>         x_1 = nx - ovrscanx;</div>
-<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span>         }</div>
-<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span>     <span class="keywordflow">else</span> <span class="comment">/* red, old format */</span></div>
-<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span>         {</div>
-<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span>         <span class="keywordflow">if</span> (chip == UVES_CHIP_REDU)</div>
-<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>             {</div>
-<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span>             x_0 = prescanx + 1;</div>
-<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span>             x_1 = nx/2 - ovrscanx;</div>
-<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span>             }</div>
-<div class="line"><a name="l02853"></a><span class="lineno"> 2853</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>             { <span class="comment">/* lower */</span></div>
-<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>             x_0 = nx/2 + prescanx + 1;</div>
-<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>             x_1 = nx - ovrscanx;</div>
-<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>             }</div>
-<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>         }</div>
-<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( result = cpl_image_extract(image, x_0, y_0, x_1, y_1), <span class="stringliteral">"Could not crop image"</span>);</div>
-<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span>     crpix1 = crpix1 - (x_0 - 1);</div>
-<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span>     crpix2 = crpix2 - (y_0 - 1);</div>
-<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span>     nx = (x_1 - x_0) + 1;</div>
-<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span>     ny = (y_1 - y_0) + 1;</div>
-<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>     }</div>
-<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span> </div>
-<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span>     UVES_TIME_START(<span class="stringliteral">"Rotation"</span>);</div>
-<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span>     <span class="comment">/* ... is a bit slow, and there's probably nothing to</span></div>
-<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span> <span class="comment">       do about as it involves moving data between remote</span></div>
-<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span> <span class="comment">       places in memory.</span></div>
-<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span> </div>
-<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span>     <span class="comment">/* Rotate the image into standard orientation */</span></div>
-<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span>     {</div>
-<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span>     <span class="keywordtype">int</span> crpix1_old = crpix1;</div>
-<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span>     <span class="keywordtype">int</span> crpix2_old = crpix2;</div>
-<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span>     <span class="keywordtype">int</span> crval1_old = crval1;</div>
-<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>     <span class="keywordtype">int</span> crval2_old = crval2;</div>
-<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span>     <span class="keywordtype">int</span> cdelt1_old = cdelt1;</div>
-<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>     <span class="keywordtype">int</span> cdelt2_old = cdelt2;</div>
-<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *ctype1_old = ctype1;</div>
-<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *ctype2_old = ctype2;</div>
-<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span> </div>
-<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span>     <span class="keywordflow">if</span> (chip == UVES_CHIP_BLUE)</div>
-<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span>         {</div>
-<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span>         <span class="comment">/* 90 deg counterclockwise rotation */</span></div>
-<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_turn(result, -1), <span class="stringliteral">"Could not turn image"</span>);</div>
-<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span>         </div>
-<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span>         crpix1 = ny - (crpix2_old - 1); <span class="comment">/* Note: old value of ny */</span></div>
-<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>         crpix2 = crpix1_old;</div>
-<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>         crval1 = crval2_old;</div>
-<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span>         crval2 = crval1_old;</div>
-<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span>         }</div>
-<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span>     <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span>         {</div>
-<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span>         <span class="comment">/* Red */</span></div>
-<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>         <span class="comment">/* Flip image around y=-x */</span></div>
-<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_flip(result, 3), <span class="stringliteral">"Could not flip image"</span>);</div>
-<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span> </div>
-<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>         crpix1 = ny - (crpix2_old - 1); <span class="comment">/* Note: old value of nx, ny */</span></div>
-<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>         crpix2 = nx - (crpix1_old - 1);</div>
-<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span>         crval1 = crval2_old;</div>
-<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span>         crval2 = crval1_old;</div>
-<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span>         }</div>
-<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span> </div>
-<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span> </div>
-<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>     <span class="comment">/* Always swap these ones */</span></div>
-<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>     ctype1 = ctype2_old;</div>
-<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span>     ctype2 = ctype1_old;</div>
-<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>     cdelt1 = cdelt2_old;</div>
-<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>     cdelt2 = cdelt1_old;</div>
-<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>     }</div>
-<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span> </div>
-<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>     UVES_TIME_END;</div>
-<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span> </div>
-<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span>     <span class="comment">/* Here we should use the CROTAi keywords to </span></div>
-<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span> <span class="comment">       properly describe the new rotation */</span></div>
-<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span>     </div>
-<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span>     <span class="comment">/* Instead, redefine CRVAL as in the following, on request from DFO */</span></div>
-<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span> </div>
-<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span>     crpix1 = 1;</div>
-<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span>     crpix2 = 1;</div>
-<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span>     <span class="keywordflow">if</span> (chip == UVES_CHIP_BLUE || chip == UVES_CHIP_REDL)</div>
-<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span>     {</div>
-<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span>         crval1 = 1;</div>
-<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span>         crval2 = 1;</div>
-<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span>     }</div>
-<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span>     <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span>     {</div>
-<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>             <span class="keywordtype">int</span> physical_gap_between_chips = 64; <span class="comment">/* Pixels. Unbinned. Hardcoded. */</span></div>
-<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span> </div>
-<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span> </div>
-<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( chip == UVES_CHIP_REDU , <span class="stringliteral">"%d"</span>, chip );</div>
-<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>         </div>
-<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>         crval1 = 1;</div>
-<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>         </div>
-<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>         <span class="comment">/* Set CRVAL2 = REDL_height - REDL_overscan - REDL_prescan + gap. */</span></div>
-<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>         <span class="keywordflow">if</span> (new_format)</div>
-<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>         {</div>
-<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span> </div>
-<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( crval2 = 1 +</div>
-<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>                (<a class="code" href="group__uves__pfits.html#gadd8fda05c51af7b34d5021b4bc60fffc" title="Find out the NAXIS1.">uves_pfits_get_naxis1</a>(redl_header) -</div>
-<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>                 <a class="code" href="group__uves__pfits.html#ga3d6bc36f09d098e2804a09c276917634" title="Find out the x-overscan.">uves_pfits_get_ovrscanx</a>(redl_header, UVES_CHIP_REDL) -</div>
-<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>                 <a class="code" href="group__uves__pfits.html#ga408818ada3d951ea32c4063728eca597" title="Find out the x-prescan.">uves_pfits_get_prescanx</a>(redl_header, UVES_CHIP_REDL)) *</div>
-<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>                <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(redl_header) +</div>
-<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>                            physical_gap_between_chips,</div>
-<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>                <span class="stringliteral">"Error reading REDL chip geometry"</span>);</div>
-<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span> </div>
-<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Setting CRVAL2 = 1 + (%d - %d - %d) * %f + %d = %f"</span>,</div>
-<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>                    <a class="code" href="group__uves__pfits.html#gadd8fda05c51af7b34d5021b4bc60fffc" title="Find out the NAXIS1.">uves_pfits_get_naxis1</a>(redl_header),</div>
-<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>                    <a class="code" href="group__uves__pfits.html#ga3d6bc36f09d098e2804a09c276917634" title="Find out the x-overscan.">uves_pfits_get_ovrscanx</a>(redl_header, UVES_CHIP_REDL),</div>
-<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span>                    <a class="code" href="group__uves__pfits.html#ga408818ada3d951ea32c4063728eca597" title="Find out the x-prescan.">uves_pfits_get_prescanx</a>(redl_header, UVES_CHIP_REDL),</div>
-<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>                    <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(redl_header),</div>
-<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>                                    physical_gap_between_chips, crval2);</div>
-<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>         }</div>
-<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>         {</div>
-<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span> </div>
-<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>             <span class="comment">/* old format */</span></div>
-<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( crval2 = 1 +</div>
-<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>                (<a class="code" href="group__uves__pfits.html#gadd8fda05c51af7b34d5021b4bc60fffc" title="Find out the NAXIS1.">uves_pfits_get_naxis1</a>(header)/2 -</div>
-<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>                 <a class="code" href="group__uves__pfits.html#ga3d6bc36f09d098e2804a09c276917634" title="Find out the x-overscan.">uves_pfits_get_ovrscanx</a>(redl_header, UVES_CHIP_REDL) -</div>
-<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>                 <a class="code" href="group__uves__pfits.html#ga408818ada3d951ea32c4063728eca597" title="Find out the x-prescan.">uves_pfits_get_prescanx</a>(redl_header, UVES_CHIP_REDL)) *</div>
-<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>                <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(redl_header) +</div>
-<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>                            physical_gap_between_chips,</div>
-<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span>                <span class="stringliteral">"Error reading REDL chip geometry"</span>);</div>
-<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span> </div>
-<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Setting CRVAL2 = 1 + (%d - %d - %d) * %f + %d = %f"</span>,</div>
-<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span>                    <a class="code" href="group__uves__pfits.html#gadd8fda05c51af7b34d5021b4bc60fffc" title="Find out the NAXIS1.">uves_pfits_get_naxis1</a>(header)/2, </div>
-<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>                    <a class="code" href="group__uves__pfits.html#ga3d6bc36f09d098e2804a09c276917634" title="Find out the x-overscan.">uves_pfits_get_ovrscanx</a>(redl_header, UVES_CHIP_REDL),</div>
-<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>                    <a class="code" href="group__uves__pfits.html#ga408818ada3d951ea32c4063728eca597" title="Find out the x-prescan.">uves_pfits_get_prescanx</a>(redl_header, UVES_CHIP_REDL),</div>
-<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>                    <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(redl_header),</div>
-<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>                                    physical_gap_between_chips, crval2);</div>
-<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>         }</div>
-<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span> </div>
-<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>     }</div>
-<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span> </div>
-<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span> </div>
-<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>     <span class="comment">/* Update header with new geometry */</span></div>
-<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *out_header = <a class="code" href="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37" title="Initialize image header.">uves_initialize_image_header</a>(ctype1, ctype2, </div>
-<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span>                                                       cunit1, cunit2,</div>
-<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>                                                       bunit,bscale,</div>
-<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>                               crval1, crval2,</div>
-<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>                               crpix1, crpix2,</div>
-<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>                               cdelt1, cdelt2),</div>
-<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>        <span class="stringliteral">"Error initializing header"</span>);</div>
-<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span> </div>
-<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>     <span class="comment">//check(uves_propertylist_copy_property_regexp(*out_header, header,</span></div>
-<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>     <span class="comment">//                      "^ESO ", 0),</span></div>
-<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>     <span class="comment">//   "Error copying hieararch keys");</span></div>
-<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span> </div>
-<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span> </div>
-<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Raw image cropped and rotated from %"</span> CPL_SIZE_FORMAT <span class="stringliteral">"x%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" to %"</span> CPL_SIZE_FORMAT <span class="s [...]
-<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>          nx, ny,</div>
-<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>          cpl_image_get_size_x(result),</div>
-<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>          cpl_image_get_size_y(result));     </div>
-<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span> </div>
-<div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>   cleanup:</div>
-<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>     {</div>
-<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span>         uves_free_image(&result);</div>
-<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span>         <span class="keywordflow">if</span> (out_header != NULL)</div>
-<div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>         {</div>
-<div class="line"><a name="l03003"></a><span class="lineno"> 3003</span>             uves_free_propertylist(out_header);</div>
-<div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>         }</div>
-<div class="line"><a name="l03005"></a><span class="lineno"> 3005</span>     }</div>
-<div class="line"><a name="l03006"></a><span class="lineno"> 3006</span> </div>
-<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span> }</div>
-<div class="line"><a name="l03009"></a><span class="lineno"> 3009</span> </div>
-<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span> uves_warn_if_chip_names_dont_match(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *calib_header, </div>
-<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *raw_chip_name, <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span> {</div>
-<div class="line"><a name="l03029"></a><span class="lineno"> 3029</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *calib_chip_name;</div>
-<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span>     <span class="keywordtype">bool</span> mismatch = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span> </div>
-<div class="line"><a name="l03032"></a><span class="lineno"> 3032</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( calib_chip_name = <a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e" title="Find out the chip ID.">uves_pfits_get_chipid</a>(calib_header, chip),</div>
-<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span>        <span class="stringliteral">"Could not read chip name of calibration data"</span>);</div>
-<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span> </div>
-<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span> </div>
-<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>     <span class="comment">/* Ignore leading/trailing blanks when comparing name strings.</span></div>
-<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span> <span class="comment">     * (The following is O(n^2) where n is the string length, </span></div>
-<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span> <span class="comment">     * but that's ok because the strings stored in a FITS card are short).</span></div>
-<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span>     {</div>
-<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> calib_first, calib_last;  <span class="comment">/* inclusive */</span></div>
-<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> raw_first, raw_last;</div>
-<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>     </div>
-<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>     calib_first = 0;</div>
-<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>     raw_first = 0;</div>
-<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span>     <span class="keywordflow">while</span> (calib_chip_name[calib_first] == <span class="charliteral">' '</span> && calib_first < strlen(calib_chip_name) - 1)</div>
-<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>         {</div>
-<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span>         calib_first++;</div>
-<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span>         }</div>
-<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>     <span class="keywordflow">while</span> (raw_chip_name[raw_first] == <span class="charliteral">' '</span> && raw_first < strlen(raw_chip_name) - 1)</div>
-<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>         {</div>
-<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span>         raw_first++;</div>
-<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span>         }</div>
-<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span> </div>
-<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span>     calib_last = strlen(calib_chip_name) - 1;</div>
-<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span>     raw_last = strlen(raw_chip_name) - 1;</div>
-<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span>     <span class="keywordflow">while</span> (calib_chip_name[calib_last] == <span class="charliteral">' '</span> && calib_last > 0)</div>
-<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span>         {</div>
-<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span>         calib_last--;</div>
-<div class="line"><a name="l03060"></a><span class="lineno"> 3060</span>         }</div>
-<div class="line"><a name="l03061"></a><span class="lineno"> 3061</span>     <span class="keywordflow">while</span> (raw_chip_name[raw_last] == <span class="charliteral">' '</span> && raw_last > 0)</div>
-<div class="line"><a name="l03062"></a><span class="lineno"> 3062</span>         {</div>
-<div class="line"><a name="l03063"></a><span class="lineno"> 3063</span>         raw_last--;</div>
-<div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>         }</div>
-<div class="line"><a name="l03065"></a><span class="lineno"> 3065</span> </div>
-<div class="line"><a name="l03066"></a><span class="lineno"> 3066</span>     <span class="comment">/* Compare substrings */</span></div>
-<div class="line"><a name="l03067"></a><span class="lineno"> 3067</span>     <span class="keywordflow">if</span> (calib_last - calib_first != raw_last - raw_first)</div>
-<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span>         {</div>
-<div class="line"><a name="l03069"></a><span class="lineno"> 3069</span>         mismatch = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span>         }</div>
-<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span>         {</div>
-<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span>         </div>
-<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span>         <span class="keywordflow">for</span> (i = 0; i <= (calib_last - calib_first); i++)</div>
-<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span>             {</div>
-<div class="line"><a name="l03077"></a><span class="lineno"> 3077</span>             <span class="keywordflow">if</span> (raw_chip_name[raw_first + i] != </div>
-<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span>                 calib_chip_name[calib_first + i])</div>
-<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span>                 {</div>
-<div class="line"><a name="l03080"></a><span class="lineno"> 3080</span>                 mismatch = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span>                 }</div>
-<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span>             }</div>
-<div class="line"><a name="l03083"></a><span class="lineno"> 3083</span>         }</div>
-<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span>     }</div>
-<div class="line"><a name="l03085"></a><span class="lineno"> 3085</span> </div>
-<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span> </div>
-<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span>     <span class="keywordflow">if</span> (mismatch)</div>
-<div class="line"><a name="l03088"></a><span class="lineno"> 3088</span>     {</div>
-<div class="line"><a name="l03089"></a><span class="lineno"> 3089</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Calibration frame chip ID '%s' does "</span></div>
-<div class="line"><a name="l03090"></a><span class="lineno"> 3090</span>                  <span class="stringliteral">"not match raw frame chip ID '%s'"</span>,</div>
-<div class="line"><a name="l03091"></a><span class="lineno"> 3091</span>                  calib_chip_name, raw_chip_name);</div>
-<div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>     }</div>
-<div class="line"><a name="l03093"></a><span class="lineno"> 3093</span> </div>
-<div class="line"><a name="l03094"></a><span class="lineno"> 3094</span>   cleanup:</div>
-<div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l03096"></a><span class="lineno"> 3096</span> }</div>
-<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span> </div>
-<div class="line"><a name="l03098"></a><span class="lineno"> 3098</span> </div>
-<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03121"></a><span class="lineno"> 3121</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03122"></a><span class="lineno"> 3122</span> </div>
-<div class="line"><a name="l03123"></a><span class="lineno"> 3123</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l03124"></a><span class="lineno"> 3124</span> load_raw_image(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename, </div>
-<div class="line"><a name="l03125"></a><span class="lineno"> 3125</span>                cpl_type type,</div>
-<div class="line"><a name="l03126"></a><span class="lineno"> 3126</span>                <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l03127"></a><span class="lineno"> 3127</span>                <span class="keywordtype">bool</span> blue,</div>
-<div class="line"><a name="l03128"></a><span class="lineno"> 3128</span>                cpl_image *raw_image[2],</div>
-<div class="line"><a name="l03129"></a><span class="lineno"> 3129</span>                <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2], </div>
-<div class="line"><a name="l03130"></a><span class="lineno"> 3130</span>                <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2])</div>
-<div class="line"><a name="l03131"></a><span class="lineno"> 3131</span> {</div>
-<div class="line"><a name="l03132"></a><span class="lineno"> 3132</span> </div>
-<div class="line"><a name="l03133"></a><span class="lineno"> 3133</span>  </div>
-<div class="line"><a name="l03134"></a><span class="lineno"> 3134</span>     cpl_image *image = NULL;</div>
-<div class="line"><a name="l03135"></a><span class="lineno"> 3135</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *primary_header = NULL;</div>
-<div class="line"><a name="l03136"></a><span class="lineno"> 3136</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *ext_header = NULL;</div>
-<div class="line"><a name="l03137"></a><span class="lineno"> 3137</span>     <span class="keywordtype">int</span> extension, nextensions;</div>
-<div class="line"><a name="l03138"></a><span class="lineno"> 3138</span>     <span class="keywordtype">bool</span> new_format;</div>
-<div class="line"><a name="l03139"></a><span class="lineno"> 3139</span>     <span class="keywordtype">int</span> plane = 0;   <span class="comment">/* Only one plane in FLAMES/UVES raw files */</span></div>
-<div class="line"><a name="l03140"></a><span class="lineno"> 3140</span> </div>
-<div class="line"><a name="l03141"></a><span class="lineno"> 3141</span>     cpl_image* image1=NULL;</div>
-<div class="line"><a name="l03142"></a><span class="lineno"> 3142</span>     cpl_image* image2=NULL;</div>
-<div class="line"><a name="l03143"></a><span class="lineno"> 3143</span>     <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l03144"></a><span class="lineno"> 3144</span>     <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l03145"></a><span class="lineno"> 3145</span> </div>
-<div class="line"><a name="l03146"></a><span class="lineno"> 3146</span> </div>
-<div class="line"><a name="l03147"></a><span class="lineno"> 3147</span>     <span class="comment">/* Initialize parameters */</span></div>
-<div class="line"><a name="l03148"></a><span class="lineno"> 3148</span>     raw_image[0] = NULL;</div>
-<div class="line"><a name="l03149"></a><span class="lineno"> 3149</span>     raw_image[1] = NULL;</div>
-<div class="line"><a name="l03150"></a><span class="lineno"> 3150</span>     raw_header[0] = NULL;</div>
-<div class="line"><a name="l03151"></a><span class="lineno"> 3151</span>     raw_header[1] = NULL;</div>
-<div class="line"><a name="l03152"></a><span class="lineno"> 3152</span>     rotated_header[0] = NULL;</div>
-<div class="line"><a name="l03153"></a><span class="lineno"> 3153</span>     rotated_header[1] = NULL;</div>
-<div class="line"><a name="l03154"></a><span class="lineno"> 3154</span> </div>
-<div class="line"><a name="l03155"></a><span class="lineno"> 3155</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( nextensions = uves_get_nextensions(filename),</div>
-<div class="line"><a name="l03156"></a><span class="lineno"> 3156</span>        <span class="stringliteral">"Error reading number of extensions of file '%s'"</span>, filename);</div>
-<div class="line"><a name="l03157"></a><span class="lineno"> 3157</span> </div>
-<div class="line"><a name="l03158"></a><span class="lineno"> 3158</span>     <span class="comment">/* Find out if new/old format */</span></div>
-<div class="line"><a name="l03159"></a><span class="lineno"> 3159</span>     extension = 0;</div>
-<div class="line"><a name="l03160"></a><span class="lineno"> 3160</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( primary_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(filename,</div>
-<div class="line"><a name="l03161"></a><span class="lineno"> 3161</span>                           extension),</div>
-<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span>        <span class="stringliteral">"Could not load header from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l03163"></a><span class="lineno"> 3163</span>        extension, filename);</div>
-<div class="line"><a name="l03164"></a><span class="lineno"> 3164</span> </div>
-<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( new_format = <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(primary_header),</div>
-<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>        <span class="stringliteral">"Error determining new/old format of file %s"</span>, filename);</div>
-<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>  </div>
-<div class="line"><a name="l03168"></a><span class="lineno"> 3168</span>     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Raw frame is %s, %s format, file '%s' has %d extensions"</span>, </div>
-<div class="line"><a name="l03169"></a><span class="lineno"> 3169</span>          (blue) ? <span class="stringliteral">"blue"</span> : <span class="stringliteral">"red"</span>, (new_format) ? <span class="stringliteral">"new"</span> : <span class="stringliteral">"old"</span>, </div>
-<div class="line"><a name="l03170"></a><span class="lineno"> 3170</span>          filename, nextensions);</div>
-<div class="line"><a name="l03171"></a><span class="lineno"> 3171</span> </div>
-<div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>     <span class="comment">/* If the raw frame is blue, or if it's an old format red frame */</span></div>
-<div class="line"><a name="l03173"></a><span class="lineno"> 3173</span>     <span class="keywordflow">if</span> (blue || !new_format)</div>
-<div class="line"><a name="l03174"></a><span class="lineno"> 3174</span>     {</div>
-<div class="line"><a name="l03175"></a><span class="lineno"> 3175</span>         <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l03176"></a><span class="lineno"> 3176</span>         </div>
-<div class="line"><a name="l03177"></a><span class="lineno"> 3177</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Frame is blue or old format"</span>);</div>
-<div class="line"><a name="l03178"></a><span class="lineno"> 3178</span> </div>
-<div class="line"><a name="l03179"></a><span class="lineno"> 3179</span>         assure( nextensions == 0 || </div>
-<div class="line"><a name="l03180"></a><span class="lineno"> 3180</span>                 (blue   && nextensions == 2) ||</div>
-<div class="line"><a name="l03181"></a><span class="lineno"> 3181</span>                 (flames && nextensions == 2),</div>
-<div class="line"><a name="l03182"></a><span class="lineno"> 3182</span>                 CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>                 <span class="stringliteral">"Unrecognized format of file '%s'. %d extensions expected. %d found."</span>,</div>
-<div class="line"><a name="l03184"></a><span class="lineno"> 3184</span>                 filename,</div>
-<div class="line"><a name="l03185"></a><span class="lineno"> 3185</span>                 ((flames||blue) && (nextensions ==2)) ? 2 : 0, nextensions);</div>
-<div class="line"><a name="l03186"></a><span class="lineno"> 3186</span> </div>
-<div class="line"><a name="l03187"></a><span class="lineno"> 3187</span>         <span class="comment">/* FLAMES: the 2 extensions contain OzPoz table and FLAMES FIBRE table */</span></div>
-<div class="line"><a name="l03188"></a><span class="lineno"> 3188</span> </div>
-<div class="line"><a name="l03189"></a><span class="lineno"> 3189</span>        <span class="comment">/* Load the header */</span></div>
-<div class="line"><a name="l03190"></a><span class="lineno"> 3190</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( raw_header[0] = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(filename,</div>
-<div class="line"><a name="l03191"></a><span class="lineno"> 3191</span>                              extension),</div>
-<div class="line"><a name="l03192"></a><span class="lineno"> 3192</span>            <span class="stringliteral">"Could not load header from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l03193"></a><span class="lineno"> 3193</span>            extension, filename);</div>
-<div class="line"><a name="l03194"></a><span class="lineno"> 3194</span> </div>
-<div class="line"><a name="l03195"></a><span class="lineno"> 3195</span> </div>
-<div class="line"><a name="l03196"></a><span class="lineno"> 3196</span>         extension = 0;</div>
-<div class="line"><a name="l03197"></a><span class="lineno"> 3197</span>         <span class="keywordflow">if</span>(blue && nextensions == 2) {</div>
-<div class="line"><a name="l03198"></a><span class="lineno"> 3198</span>            extension = 1;</div>
-<div class="line"><a name="l03199"></a><span class="lineno"> 3199</span>            <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( raw_header[1] = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(filename,</div>
-<div class="line"><a name="l03200"></a><span class="lineno"> 3200</span>                                                          extension),</div>
-<div class="line"><a name="l03201"></a><span class="lineno"> 3201</span>                   <span class="stringliteral">"Could not load header from extension %d of file '%s'"</span>,</div>
-<div class="line"><a name="l03202"></a><span class="lineno"> 3202</span>                   extension, filename);</div>
-<div class="line"><a name="l03203"></a><span class="lineno"> 3203</span>            <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(raw_header[0],raw_header[1]),</div>
-<div class="line"><a name="l03204"></a><span class="lineno"> 3204</span>                   <span class="stringliteral">"Could not collate header from extension 1 to 0 of file '%s'"</span>,filename);</div>
-<div class="line"><a name="l03205"></a><span class="lineno"> 3205</span>            uves_free_propertylist(&raw_header[1]);</div>
-<div class="line"><a name="l03206"></a><span class="lineno"> 3206</span>  </div>
-<div class="line"><a name="l03207"></a><span class="lineno"> 3207</span>            <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( image1 = cpl_image_load(filename,</div>
-<div class="line"><a name="l03208"></a><span class="lineno"> 3208</span>                                           type,</div>
-<div class="line"><a name="l03209"></a><span class="lineno"> 3209</span>                                           plane,   </div>
-<div class="line"><a name="l03210"></a><span class="lineno"> 3210</span>                                           extension</div>
-<div class="line"><a name="l03211"></a><span class="lineno"> 3211</span>                      ), <span class="stringliteral">"Could not load image from extension %d of file '%s' "</span>, </div>
-<div class="line"><a name="l03212"></a><span class="lineno"> 3212</span>                   extension, filename);</div>
-<div class="line"><a name="l03213"></a><span class="lineno"> 3213</span>            cpl_image_save(image1, <span class="stringliteral">"ima1.fits"</span>, CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l03214"></a><span class="lineno"> 3214</span>                           NULL,CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l03215"></a><span class="lineno"> 3215</span> </div>
-<div class="line"><a name="l03216"></a><span class="lineno"> 3216</span>            extension = 2;</div>
-<div class="line"><a name="l03217"></a><span class="lineno"> 3217</span>            <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( image2 = cpl_image_load(filename,</div>
-<div class="line"><a name="l03218"></a><span class="lineno"> 3218</span>                                           type,</div>
-<div class="line"><a name="l03219"></a><span class="lineno"> 3219</span>                                           plane,   </div>
-<div class="line"><a name="l03220"></a><span class="lineno"> 3220</span>                                           extension</div>
-<div class="line"><a name="l03221"></a><span class="lineno"> 3221</span>                      ), <span class="stringliteral">"Could not load image from extension %d of file '%s' "</span>, </div>
-<div class="line"><a name="l03222"></a><span class="lineno"> 3222</span>                   extension, filename);</div>
-<div class="line"><a name="l03223"></a><span class="lineno"> 3223</span>            <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sx=cpl_image_get_size_x(image1));</div>
-<div class="line"><a name="l03224"></a><span class="lineno"> 3224</span>            <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sy=cpl_image_get_size_y(image1));</div>
-<div class="line"><a name="l03225"></a><span class="lineno"> 3225</span> </div>
-<div class="line"><a name="l03226"></a><span class="lineno"> 3226</span>            <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(image=cpl_image_new(2*sx,sy,type));</div>
-<div class="line"><a name="l03227"></a><span class="lineno"> 3227</span>            <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_copy(image,image1,1,1));</div>
-<div class="line"><a name="l03228"></a><span class="lineno"> 3228</span>            <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_copy(image,image2,1+sx,1));</div>
-<div class="line"><a name="l03229"></a><span class="lineno"> 3229</span> </div>
-<div class="line"><a name="l03230"></a><span class="lineno"> 3230</span>            </div>
-<div class="line"><a name="l03231"></a><span class="lineno"> 3231</span>            uves_free_image(&image1);</div>
-<div class="line"><a name="l03232"></a><span class="lineno"> 3232</span>            uves_free_image(&image2);</div>
-<div class="line"><a name="l03233"></a><span class="lineno"> 3233</span> </div>
-<div class="line"><a name="l03234"></a><span class="lineno"> 3234</span>            extension = 1;</div>
-<div class="line"><a name="l03235"></a><span class="lineno"> 3235</span> </div>
-<div class="line"><a name="l03236"></a><span class="lineno"> 3236</span> </div>
-<div class="line"><a name="l03237"></a><span class="lineno"> 3237</span> </div>
-<div class="line"><a name="l03238"></a><span class="lineno"> 3238</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03239"></a><span class="lineno"> 3239</span> </div>
-<div class="line"><a name="l03240"></a><span class="lineno"> 3240</span> </div>
-<div class="line"><a name="l03241"></a><span class="lineno"> 3241</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( image = cpl_image_load(filename,</div>
-<div class="line"><a name="l03242"></a><span class="lineno"> 3242</span>                       type,</div>
-<div class="line"><a name="l03243"></a><span class="lineno"> 3243</span>                       plane,   </div>
-<div class="line"><a name="l03244"></a><span class="lineno"> 3244</span>                       extension</div>
-<div class="line"><a name="l03245"></a><span class="lineno"> 3245</span>                ), <span class="stringliteral">"Could not load image from extension %d of file '%s' "</span>, </div>
-<div class="line"><a name="l03246"></a><span class="lineno"> 3246</span>            extension, filename);</div>
-<div class="line"><a name="l03247"></a><span class="lineno"> 3247</span>         }</div>
-<div class="line"><a name="l03248"></a><span class="lineno"> 3248</span>  </div>
-<div class="line"><a name="l03249"></a><span class="lineno"> 3249</span>         <span class="comment">/* Get blue (or lower red) chip */</span></div>
-<div class="line"><a name="l03250"></a><span class="lineno"> 3250</span>         chip = (blue) ? UVES_CHIP_BLUE : UVES_CHIP_REDL;</div>
-<div class="line"><a name="l03251"></a><span class="lineno"> 3251</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( raw_image[0] = uves_crop_and_rotate(image, raw_header[0], </div>
-<div class="line"><a name="l03252"></a><span class="lineno"> 3252</span>                                chip, raw_header[0],</div>
-<div class="line"><a name="l03253"></a><span class="lineno"> 3253</span>                                new_format, </div>
-<div class="line"><a name="l03254"></a><span class="lineno"> 3254</span>                                &rotated_header[0]),</div>
-<div class="line"><a name="l03255"></a><span class="lineno"> 3255</span>            <span class="stringliteral">"Error splitting image"</span>);</div>
-<div class="line"><a name="l03256"></a><span class="lineno"> 3256</span>         </div>
-<div class="line"><a name="l03257"></a><span class="lineno"> 3257</span>         <span class="keywordflow">if</span> (!blue)</div>
-<div class="line"><a name="l03258"></a><span class="lineno"> 3258</span>         {</div>
-<div class="line"><a name="l03259"></a><span class="lineno"> 3259</span>             <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *redl_header;</div>
-<div class="line"><a name="l03260"></a><span class="lineno"> 3260</span> </div>
-<div class="line"><a name="l03261"></a><span class="lineno"> 3261</span>             <span class="comment">/* Upper red chip, use again the primary header */</span></div>
-<div class="line"><a name="l03262"></a><span class="lineno"> 3262</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( raw_header[1] = <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(raw_header[0]),</div>
-<div class="line"><a name="l03263"></a><span class="lineno"> 3263</span>                <span class="stringliteral">"Error duplicating FITS header"</span>);</div>
-<div class="line"><a name="l03264"></a><span class="lineno"> 3264</span>             </div>
-<div class="line"><a name="l03265"></a><span class="lineno"> 3265</span>             <span class="comment">/* Get upper red chip */</span></div>
-<div class="line"><a name="l03266"></a><span class="lineno"> 3266</span>             chip = UVES_CHIP_REDU;</div>
-<div class="line"><a name="l03267"></a><span class="lineno"> 3267</span>             redl_header = raw_header[0];</div>
-<div class="line"><a name="l03268"></a><span class="lineno"> 3268</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( raw_image[1] = uves_crop_and_rotate(image, raw_header[1],</div>
-<div class="line"><a name="l03269"></a><span class="lineno"> 3269</span>                                    chip, redl_header,</div>
-<div class="line"><a name="l03270"></a><span class="lineno"> 3270</span>                                    new_format,</div>
-<div class="line"><a name="l03271"></a><span class="lineno"> 3271</span>                                    &rotated_header[1]),</div>
-<div class="line"><a name="l03272"></a><span class="lineno"> 3272</span>                <span class="stringliteral">"Error splitting red image"</span>);</div>
-<div class="line"><a name="l03273"></a><span class="lineno"> 3273</span>         }</div>
-<div class="line"><a name="l03274"></a><span class="lineno"> 3274</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03275"></a><span class="lineno"> 3275</span>         {</div>
-<div class="line"><a name="l03276"></a><span class="lineno"> 3276</span>             raw_image[1] = NULL;</div>
-<div class="line"><a name="l03277"></a><span class="lineno"> 3277</span>             raw_header[1] = NULL;</div>
-<div class="line"><a name="l03278"></a><span class="lineno"> 3278</span>             rotated_header[1] = NULL;</div>
-<div class="line"><a name="l03279"></a><span class="lineno"> 3279</span>         }</div>
-<div class="line"><a name="l03280"></a><span class="lineno"> 3280</span>     }</div>
-<div class="line"><a name="l03281"></a><span class="lineno"> 3281</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03282"></a><span class="lineno"> 3282</span>     <span class="comment">/* New red format. UVES must have 2 extensions,</span></div>
-<div class="line"><a name="l03283"></a><span class="lineno"> 3283</span> <span class="comment">     * FLAMES must have 2 or more extensions</span></div>
-<div class="line"><a name="l03284"></a><span class="lineno"> 3284</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l03285"></a><span class="lineno"> 3285</span>     {</div>
-<div class="line"><a name="l03286"></a><span class="lineno"> 3286</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Frame is red, new format"</span>);</div>
-<div class="line"><a name="l03287"></a><span class="lineno"> 3287</span>         </div>
-<div class="line"><a name="l03288"></a><span class="lineno"> 3288</span>         assure( nextensions >= 2, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l03289"></a><span class="lineno"> 3289</span>             <span class="stringliteral">"File '%s' (red frame) has %d extensions. 2+ extensions expected "</span></div>
-<div class="line"><a name="l03290"></a><span class="lineno"> 3290</span>                     <span class="stringliteral">"for new format"</span>,</div>
-<div class="line"><a name="l03291"></a><span class="lineno"> 3291</span>             filename, nextensions);</div>
-<div class="line"><a name="l03292"></a><span class="lineno"> 3292</span>         </div>
-<div class="line"><a name="l03293"></a><span class="lineno"> 3293</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"New red format, %s frame"</span>,</div>
-<div class="line"><a name="l03294"></a><span class="lineno"> 3294</span>                (nextensions > 2) ? <span class="stringliteral">"FLAMES"</span> : <span class="stringliteral">"FLAMES/UVES"</span>);</div>
-<div class="line"><a name="l03295"></a><span class="lineno"> 3295</span>         </div>
-<div class="line"><a name="l03296"></a><span class="lineno"> 3296</span> </div>
-<div class="line"><a name="l03297"></a><span class="lineno"> 3297</span>         <span class="comment">/* Images always in extension 1 and 2. First load just the headers */</span></div>
-<div class="line"><a name="l03298"></a><span class="lineno"> 3298</span>         <span class="keywordflow">for</span> (extension = 1; extension <= 2; extension++)</div>
-<div class="line"><a name="l03299"></a><span class="lineno"> 3299</span>         {</div>
-<div class="line"><a name="l03300"></a><span class="lineno"> 3300</span>             <span class="comment">/* In the FITS file, REDU is stored</span></div>
-<div class="line"><a name="l03301"></a><span class="lineno"> 3301</span> <span class="comment">               in extension 1, and REDL is stored in</span></div>
-<div class="line"><a name="l03302"></a><span class="lineno"> 3302</span> <span class="comment">               extension 2 */</span></div>
-<div class="line"><a name="l03303"></a><span class="lineno"> 3303</span>             <span class="keyword">enum</span> uves_chip chip = (extension == 1) ? UVES_CHIP_REDU : UVES_CHIP_REDL;</div>
-<div class="line"><a name="l03304"></a><span class="lineno"> 3304</span>             <span class="keywordtype">int</span> indx = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l03305"></a><span class="lineno"> 3305</span> </div>
-<div class="line"><a name="l03306"></a><span class="lineno"> 3306</span>             <span class="comment">/* Load the extension header */</span></div>
-<div class="line"><a name="l03307"></a><span class="lineno"> 3307</span>             uves_free_propertylist(&ext_header);</div>
-<div class="line"><a name="l03308"></a><span class="lineno"> 3308</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ext_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(filename,</div>
-<div class="line"><a name="l03309"></a><span class="lineno"> 3309</span>                                   extension),</div>
-<div class="line"><a name="l03310"></a><span class="lineno"> 3310</span>                <span class="stringliteral">"Could not load header from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l03311"></a><span class="lineno"> 3311</span>                extension, filename);</div>
-<div class="line"><a name="l03312"></a><span class="lineno"> 3312</span>             </div>
-<div class="line"><a name="l03313"></a><span class="lineno"> 3313</span>             <span class="comment">/* Merge with primary header */</span></div>
-<div class="line"><a name="l03314"></a><span class="lineno"> 3314</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( raw_header[indx] = <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(primary_header),</div>
-<div class="line"><a name="l03315"></a><span class="lineno"> 3315</span>                <span class="stringliteral">"Error cloning primary header"</span>);</div>
-<div class="line"><a name="l03316"></a><span class="lineno"> 3316</span>             </div>
-<div class="line"><a name="l03317"></a><span class="lineno"> 3317</span>             <span class="keywordflow">if</span> (!<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(ext_header))</div>
-<div class="line"><a name="l03318"></a><span class="lineno"> 3318</span>             {</div>
-<div class="line"><a name="l03319"></a><span class="lineno"> 3319</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(raw_header[indx],</div>
-<div class="line"><a name="l03320"></a><span class="lineno"> 3320</span>                                      ext_header, <span class="stringliteral">".*"</span>, 0),</div>
-<div class="line"><a name="l03321"></a><span class="lineno"> 3321</span>                    <span class="stringliteral">"Error merging primary header with extension %d header"</span>, </div>
-<div class="line"><a name="l03322"></a><span class="lineno"> 3322</span>                    extension);</div>
-<div class="line"><a name="l03323"></a><span class="lineno"> 3323</span>             }</div>
-<div class="line"><a name="l03324"></a><span class="lineno"> 3324</span>         }</div>
-<div class="line"><a name="l03325"></a><span class="lineno"> 3325</span> </div>
-<div class="line"><a name="l03326"></a><span class="lineno"> 3326</span> </div>
-<div class="line"><a name="l03327"></a><span class="lineno"> 3327</span>         <span class="comment">/* Remove pre-, overscan areas (we needed to load both image headers for this) */</span></div>
-<div class="line"><a name="l03328"></a><span class="lineno"> 3328</span>         <span class="keywordflow">for</span> (extension = 1; extension <= 2; extension++)</div>
-<div class="line"><a name="l03329"></a><span class="lineno"> 3329</span>         {</div>
-<div class="line"><a name="l03330"></a><span class="lineno"> 3330</span>             <span class="keyword">enum</span> uves_chip chip = (extension == 1) ? UVES_CHIP_REDU : UVES_CHIP_REDL;</div>
-<div class="line"><a name="l03331"></a><span class="lineno"> 3331</span>             <span class="keywordtype">int</span> indx      = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l03332"></a><span class="lineno"> 3332</span>             <span class="keywordtype">int</span> indx_redl = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(UVES_CHIP_REDL);</div>
-<div class="line"><a name="l03333"></a><span class="lineno"> 3333</span>             </div>
-<div class="line"><a name="l03334"></a><span class="lineno"> 3334</span>             <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *redl_header = raw_header[indx_redl];</div>
-<div class="line"><a name="l03335"></a><span class="lineno"> 3335</span>             </div>
-<div class="line"><a name="l03336"></a><span class="lineno"> 3336</span>             uves_free_image(&image);</div>
-<div class="line"><a name="l03337"></a><span class="lineno"> 3337</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( image = cpl_image_load(filename,</div>
-<div class="line"><a name="l03338"></a><span class="lineno"> 3338</span>                           type,</div>
-<div class="line"><a name="l03339"></a><span class="lineno"> 3339</span>                           plane,               </div>
-<div class="line"><a name="l03340"></a><span class="lineno"> 3340</span>                           extension),</div>
-<div class="line"><a name="l03341"></a><span class="lineno"> 3341</span>                <span class="stringliteral">"Could not load image from extension %d of file '%s' "</span>, </div>
-<div class="line"><a name="l03342"></a><span class="lineno"> 3342</span>                extension, filename);</div>
-<div class="line"><a name="l03343"></a><span class="lineno"> 3343</span>             </div>
-<div class="line"><a name="l03344"></a><span class="lineno"> 3344</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( raw_image[indx] = uves_crop_and_rotate(image, </div>
-<div class="line"><a name="l03345"></a><span class="lineno"> 3345</span>                                   raw_header[indx],</div>
-<div class="line"><a name="l03346"></a><span class="lineno"> 3346</span>                                   chip, redl_header,</div>
-<div class="line"><a name="l03347"></a><span class="lineno"> 3347</span>                                   new_format,</div>
-<div class="line"><a name="l03348"></a><span class="lineno"> 3348</span>                                   &rotated_header[indx]),</div>
-<div class="line"><a name="l03349"></a><span class="lineno"> 3349</span>                <span class="stringliteral">"Error splitting red image"</span>);</div>
-<div class="line"><a name="l03350"></a><span class="lineno"> 3350</span>         }</div>
-<div class="line"><a name="l03351"></a><span class="lineno"> 3351</span> </div>
-<div class="line"><a name="l03352"></a><span class="lineno"> 3352</span>         </div>
-<div class="line"><a name="l03353"></a><span class="lineno"> 3353</span>     }<span class="comment">/* if new format */</span></div>
-<div class="line"><a name="l03354"></a><span class="lineno"> 3354</span>  </div>
-<div class="line"><a name="l03355"></a><span class="lineno"> 3355</span> </div>
-<div class="line"><a name="l03356"></a><span class="lineno"> 3356</span>   cleanup:</div>
-<div class="line"><a name="l03357"></a><span class="lineno"> 3357</span>     uves_free_image(&image);</div>
-<div class="line"><a name="l03358"></a><span class="lineno"> 3358</span>     uves_free_image(&image1);</div>
-<div class="line"><a name="l03359"></a><span class="lineno"> 3359</span>     uves_free_image(&image2);</div>
-<div class="line"><a name="l03360"></a><span class="lineno"> 3360</span> </div>
-<div class="line"><a name="l03361"></a><span class="lineno"> 3361</span>     uves_free_propertylist(&primary_header);</div>
-<div class="line"><a name="l03362"></a><span class="lineno"> 3362</span>     uves_free_propertylist(&ext_header);</div>
-<div class="line"><a name="l03363"></a><span class="lineno"> 3363</span> </div>
-<div class="line"><a name="l03364"></a><span class="lineno"> 3364</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l03365"></a><span class="lineno"> 3365</span>     {</div>
-<div class="line"><a name="l03366"></a><span class="lineno"> 3366</span>         uves_free_image       (&raw_image[0]);</div>
-<div class="line"><a name="l03367"></a><span class="lineno"> 3367</span>         uves_free_image       (&raw_image[1]);</div>
-<div class="line"><a name="l03368"></a><span class="lineno"> 3368</span>         uves_free_propertylist(&raw_header[0]);</div>
-<div class="line"><a name="l03369"></a><span class="lineno"> 3369</span>         uves_free_propertylist(&raw_header[1]);</div>
-<div class="line"><a name="l03370"></a><span class="lineno"> 3370</span>         uves_free_propertylist(&rotated_header[0]);</div>
-<div class="line"><a name="l03371"></a><span class="lineno"> 3371</span>         uves_free_propertylist(&rotated_header[1]);</div>
-<div class="line"><a name="l03372"></a><span class="lineno"> 3372</span>     }</div>
-<div class="line"><a name="l03373"></a><span class="lineno"> 3373</span>     </div>
-<div class="line"><a name="l03374"></a><span class="lineno"> 3374</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l03375"></a><span class="lineno"> 3375</span> }</div>
-<div class="line"><a name="l03376"></a><span class="lineno"> 3376</span> </div>
-<div class="line"><a name="l03377"></a><span class="lineno"> 3377</span> </div>
-<div class="line"><a name="l03378"></a><span class="lineno"> 3378</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03406"></a><span class="lineno"> 3406</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03407"></a><span class="lineno"> 3407</span> cpl_error_code</div>
-<div class="line"><a name="l03408"></a><span class="lineno"> 3408</span> uves_load_raw_imagelist(<span class="keyword">const</span> cpl_frameset *frames,</div>
-<div class="line"><a name="l03409"></a><span class="lineno"> 3409</span>             <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l03410"></a><span class="lineno"> 3410</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *blue_tag, <span class="keyword">const</span> <span class="keywordtype">char</span> *red_tag, cpl_type type, </div>
-<div class="line"><a name="l03411"></a><span class="lineno"> 3411</span>             cpl_imagelist *images[2],</div>
-<div class="line"><a name="l03412"></a><span class="lineno"> 3412</span>             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **raw_headers[2], <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2],</div>
-<div class="line"><a name="l03413"></a><span class="lineno"> 3413</span>             <span class="keywordtype">bool</span> *blue)</div>
-<div class="line"><a name="l03414"></a><span class="lineno"> 3414</span> {</div>
-<div class="line"><a name="l03415"></a><span class="lineno"> 3415</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tag           = NULL;</div>
-<div class="line"><a name="l03416"></a><span class="lineno"> 3416</span>     <span class="keyword">const</span> cpl_frame *frame    = NULL;</div>
-<div class="line"><a name="l03417"></a><span class="lineno"> 3417</span>     cpl_image *temp_image[2]  = {NULL, NULL};</div>
-<div class="line"><a name="l03418"></a><span class="lineno"> 3418</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *temp_header[2] = {NULL, NULL};</div>
-<div class="line"><a name="l03419"></a><span class="lineno"> 3419</span>     cpl_size number_of_frames = 0;</div>
-<div class="line"><a name="l03420"></a><span class="lineno"> 3420</span>     <span class="keywordtype">int</span> frameset_size = 0;   <span class="comment">/* Keeps track of number of raw_header pointers allocated */</span></div>
-<div class="line"><a name="l03421"></a><span class="lineno"> 3421</span>     <span class="keywordtype">int</span> nchips;</div>
-<div class="line"><a name="l03422"></a><span class="lineno"> 3422</span>     <span class="keywordtype">int</span> chip;</div>
-<div class="line"><a name="l03423"></a><span class="lineno"> 3423</span>     </div>
-<div class="line"><a name="l03424"></a><span class="lineno"> 3424</span>     raw_headers[0] = NULL;</div>
-<div class="line"><a name="l03425"></a><span class="lineno"> 3425</span>     raw_headers[1] = NULL;</div>
-<div class="line"><a name="l03426"></a><span class="lineno"> 3426</span> </div>
-<div class="line"><a name="l03427"></a><span class="lineno"> 3427</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( frameset_size = cpl_frameset_get_size(frames),</div>
-<div class="line"><a name="l03428"></a><span class="lineno"> 3428</span>        <span class="stringliteral">"Error reading frameset size"</span>);</div>
-<div class="line"><a name="l03429"></a><span class="lineno"> 3429</span> </div>
-<div class="line"><a name="l03430"></a><span class="lineno"> 3430</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( tag = identify_arm(frames, blue_tag, red_tag, blue),</div>
-<div class="line"><a name="l03431"></a><span class="lineno"> 3431</span>        <span class="stringliteral">"Could not identify chip type"</span>);</div>
-<div class="line"><a name="l03432"></a><span class="lineno"> 3432</span>     </div>
-<div class="line"><a name="l03433"></a><span class="lineno"> 3433</span>     nchips = (*blue) ? 1 : 2;</div>
-<div class="line"><a name="l03434"></a><span class="lineno"> 3434</span>     <span class="keywordflow">for</span>(chip = 0; chip < nchips; chip++)</div>
-<div class="line"><a name="l03435"></a><span class="lineno"> 3435</span>     {</div>
-<div class="line"><a name="l03436"></a><span class="lineno"> 3436</span>         images[chip] = NULL;</div>
-<div class="line"><a name="l03437"></a><span class="lineno"> 3437</span>         rotated_header[chip] = NULL;</div>
-<div class="line"><a name="l03438"></a><span class="lineno"> 3438</span>         </div>
-<div class="line"><a name="l03439"></a><span class="lineno"> 3439</span>         images[chip] = cpl_imagelist_new();</div>
-<div class="line"><a name="l03440"></a><span class="lineno"> 3440</span>         raw_headers[chip] = cpl_calloc(frameset_size, <span class="keyword">sizeof</span>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *));</div>
-<div class="line"><a name="l03441"></a><span class="lineno"> 3441</span>     }</div>
-<div class="line"><a name="l03442"></a><span class="lineno"> 3442</span> </div>
-<div class="line"><a name="l03443"></a><span class="lineno"> 3443</span>     <span class="comment">/* Load all input images with correct tag,</span></div>
-<div class="line"><a name="l03444"></a><span class="lineno"> 3444</span> <span class="comment">       split,</span></div>
-<div class="line"><a name="l03445"></a><span class="lineno"> 3445</span> <span class="comment">       insert into image list(s) */</span>  </div>
-<div class="line"><a name="l03446"></a><span class="lineno"> 3446</span> </div>
-<div class="line"><a name="l03447"></a><span class="lineno"> 3447</span>     number_of_frames = 0;</div>
-<div class="line"><a name="l03448"></a><span class="lineno"> 3448</span>     <span class="keywordflow">for</span>(frame = cpl_frameset_get_first_const(frames);</div>
-<div class="line"><a name="l03449"></a><span class="lineno"> 3449</span>     frame != NULL;</div>
-<div class="line"><a name="l03450"></a><span class="lineno"> 3450</span>     frame = cpl_frameset_get_next_const(frames))</div>
-<div class="line"><a name="l03451"></a><span class="lineno"> 3451</span>     {</div>
-<div class="line"><a name="l03452"></a><span class="lineno"> 3452</span>         <span class="comment">/* If match */</span></div>
-<div class="line"><a name="l03453"></a><span class="lineno"> 3453</span>         <span class="keywordflow">if</span> ( strcmp(cpl_frame_get_tag(frame), tag) == 0)</div>
-<div class="line"><a name="l03454"></a><span class="lineno"> 3454</span>         {</div>
-<div class="line"><a name="l03455"></a><span class="lineno"> 3455</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *filename = cpl_frame_get_filename(frame);</div>
-<div class="line"><a name="l03456"></a><span class="lineno"> 3456</span>             </div>
-<div class="line"><a name="l03457"></a><span class="lineno"> 3457</span>             <span class="comment">/* Load image + header */</span></div>
-<div class="line"><a name="l03458"></a><span class="lineno"> 3458</span>             uves_free_propertylist(&rotated_header[0]);</div>
-<div class="line"><a name="l03459"></a><span class="lineno"> 3459</span>             uves_free_propertylist(&rotated_header[1]);</div>
-<div class="line"><a name="l03460"></a><span class="lineno"> 3460</span>             </div>
-<div class="line"><a name="l03461"></a><span class="lineno"> 3461</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( load_raw_image(filename,</div>
-<div class="line"><a name="l03462"></a><span class="lineno"> 3462</span>                       type,</div>
-<div class="line"><a name="l03463"></a><span class="lineno"> 3463</span>                       flames,</div>
-<div class="line"><a name="l03464"></a><span class="lineno"> 3464</span>                       *blue,</div>
-<div class="line"><a name="l03465"></a><span class="lineno"> 3465</span>                       temp_image,</div>
-<div class="line"><a name="l03466"></a><span class="lineno"> 3466</span>                       temp_header,</div>
-<div class="line"><a name="l03467"></a><span class="lineno"> 3467</span>                       rotated_header),</div>
-<div class="line"><a name="l03468"></a><span class="lineno"> 3468</span>                <span class="stringliteral">"Could not load image from file '%s'"</span>, filename);</div>
-<div class="line"><a name="l03469"></a><span class="lineno"> 3469</span>             </div>
-<div class="line"><a name="l03470"></a><span class="lineno"> 3470</span>             <span class="comment">/* Append to image lists */</span></div>
-<div class="line"><a name="l03471"></a><span class="lineno"> 3471</span>             <span class="keywordflow">for</span>(chip = 0; chip < nchips; chip++)</div>
-<div class="line"><a name="l03472"></a><span class="lineno"> 3472</span>             {</div>
-<div class="line"><a name="l03473"></a><span class="lineno"> 3473</span>                 raw_headers[chip][number_of_frames] = temp_header[chip];</div>
-<div class="line"><a name="l03474"></a><span class="lineno"> 3474</span>                 temp_header[chip] = NULL;</div>
-<div class="line"><a name="l03475"></a><span class="lineno"> 3475</span>                 </div>
-<div class="line"><a name="l03476"></a><span class="lineno"> 3476</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_imagelist_set(images[chip],</div>
-<div class="line"><a name="l03477"></a><span class="lineno"> 3477</span>                              temp_image[chip],</div>
-<div class="line"><a name="l03478"></a><span class="lineno"> 3478</span>                              <span class="comment">/* Position */</span></div>
-<div class="line"><a name="l03479"></a><span class="lineno"> 3479</span>                              cpl_imagelist_get_size(images[chip])</div>
-<div class="line"><a name="l03480"></a><span class="lineno"> 3480</span>                        ),</div>
-<div class="line"><a name="l03481"></a><span class="lineno"> 3481</span>                    <span class="stringliteral">"Could not insert image into image list"</span>);</div>
-<div class="line"><a name="l03482"></a><span class="lineno"> 3482</span>                 </div>
-<div class="line"><a name="l03483"></a><span class="lineno"> 3483</span>                 <span class="comment">/* Don't deallocate image or header */</span></div>
-<div class="line"><a name="l03484"></a><span class="lineno"> 3484</span>                 temp_image[chip] = NULL;</div>
-<div class="line"><a name="l03485"></a><span class="lineno"> 3485</span>             }</div>
-<div class="line"><a name="l03486"></a><span class="lineno"> 3486</span>             </div>
-<div class="line"><a name="l03487"></a><span class="lineno"> 3487</span>             number_of_frames += 1;</div>
-<div class="line"><a name="l03488"></a><span class="lineno"> 3488</span>         }</div>
-<div class="line"><a name="l03489"></a><span class="lineno"> 3489</span>     }</div>
-<div class="line"><a name="l03490"></a><span class="lineno"> 3490</span> </div>
-<div class="line"><a name="l03491"></a><span class="lineno"> 3491</span>     <span class="comment">/* Check that image sizes are identical */</span></div>
-<div class="line"><a name="l03492"></a><span class="lineno"> 3492</span>     </div>
-<div class="line"><a name="l03493"></a><span class="lineno"> 3493</span>     <span class="keywordflow">for</span>(chip = 0; chip < nchips; chip++)</div>
-<div class="line"><a name="l03494"></a><span class="lineno"> 3494</span>     {</div>
-<div class="line"><a name="l03495"></a><span class="lineno"> 3495</span>         <span class="comment">/* This function returns zero iff the list is uniform */</span></div>
-<div class="line"><a name="l03496"></a><span class="lineno"> 3496</span>         assure (cpl_imagelist_is_uniform(images[chip]) == 0,</div>
-<div class="line"><a name="l03497"></a><span class="lineno"> 3497</span>             CPL_ERROR_INCOMPATIBLE_INPUT, </div>
-<div class="line"><a name="l03498"></a><span class="lineno"> 3498</span>             <span class="stringliteral">"Input images are not of same size and type"</span>);</div>
-<div class="line"><a name="l03499"></a><span class="lineno"> 3499</span>         </div>
-<div class="line"><a name="l03500"></a><span class="lineno"> 3500</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_imagelist_get_size(images[chip]) == number_of_frames, </div>
-<div class="line"><a name="l03501"></a><span class="lineno"> 3501</span>              <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" %"</span> CPL_SIZE_FORMAT<span class="stringliteral">""</span>, cpl_imagelist_get_size(images[0]), number_of_frames);</div>
-<div class="line"><a name="l03502"></a><span class="lineno"> 3502</span> </div>
-<div class="line"><a name="l03503"></a><span class="lineno"> 3503</span>     }</div>
-<div class="line"><a name="l03504"></a><span class="lineno"> 3504</span> </div>
-<div class="line"><a name="l03505"></a><span class="lineno"> 3505</span>     </div>
-<div class="line"><a name="l03506"></a><span class="lineno"> 3506</span>     <span class="comment">/* Check central wavelengths (not bias/dark) */</span></div>
-<div class="line"><a name="l03507"></a><span class="lineno"> 3507</span>     <span class="keywordflow">if</span> ( strcmp(UVES_BIAS (*blue), tag) != 0 &&</div>
-<div class="line"><a name="l03508"></a><span class="lineno"> 3508</span>      strcmp(UVES_DARK (*blue), tag) != 0 &&</div>
-<div class="line"><a name="l03509"></a><span class="lineno"> 3509</span>      strcmp(UVES_PDARK(*blue), tag) != 0) {</div>
-<div class="line"><a name="l03510"></a><span class="lineno"> 3510</span>     <span class="keyword">enum</span> uves_chip chip_id;</div>
-<div class="line"><a name="l03511"></a><span class="lineno"> 3511</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03512"></a><span class="lineno"> 3512</span>     <span class="keywordtype">double</span> wlen = 0;</div>
-<div class="line"><a name="l03513"></a><span class="lineno"> 3513</span>     </div>
-<div class="line"><a name="l03514"></a><span class="lineno"> 3514</span>     <span class="keywordflow">for</span> (chip_id = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(*blue); </div>
-<div class="line"><a name="l03515"></a><span class="lineno"> 3515</span>          chip_id != UVES_CHIP_INVALID;</div>
-<div class="line"><a name="l03516"></a><span class="lineno"> 3516</span>          chip_id = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip_id)) {</div>
-<div class="line"><a name="l03517"></a><span class="lineno"> 3517</span>         <span class="keywordflow">for</span> (i = 0; i < number_of_frames; i++) {</div>
-<div class="line"><a name="l03518"></a><span class="lineno"> 3518</span>         <span class="keywordflow">if</span> (i == 0) {</div>
-<div class="line"><a name="l03519"></a><span class="lineno"> 3519</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( wlen = <a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(</div>
-<div class="line"><a name="l03520"></a><span class="lineno"> 3520</span>                    raw_headers[<a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip_id)][i], chip_id),</div>
-<div class="line"><a name="l03521"></a><span class="lineno"> 3521</span>                <span class="stringliteral">"Error reading central wavelength of input frame number %d"</span>, i+1);</div>
-<div class="line"><a name="l03522"></a><span class="lineno"> 3522</span>         }</div>
-<div class="line"><a name="l03523"></a><span class="lineno"> 3523</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03524"></a><span class="lineno"> 3524</span>             <span class="keywordtype">double</span> w;</div>
-<div class="line"><a name="l03525"></a><span class="lineno"> 3525</span>             </div>
-<div class="line"><a name="l03526"></a><span class="lineno"> 3526</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( w = <a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(</div>
-<div class="line"><a name="l03527"></a><span class="lineno"> 3527</span>                    raw_headers[<a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip_id)][i], chip_id),</div>
-<div class="line"><a name="l03528"></a><span class="lineno"> 3528</span>                <span class="stringliteral">"Error reading central wavelength of input frame number %d"</span>, i+1);</div>
-<div class="line"><a name="l03529"></a><span class="lineno"> 3529</span>             </div>
-<div class="line"><a name="l03530"></a><span class="lineno"> 3530</span>             assure( fabs((w-wlen)/wlen) < 0.01, CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l03531"></a><span class="lineno"> 3531</span>                 <span class="stringliteral">"Mis-matching input frame central wavelengths: "</span></div>
-<div class="line"><a name="l03532"></a><span class="lineno"> 3532</span>                 <span class="stringliteral">"%e (frame 1) != %e (frame %d)"</span>, wlen, w, i+1);</div>
-<div class="line"><a name="l03533"></a><span class="lineno"> 3533</span>         }</div>
-<div class="line"><a name="l03534"></a><span class="lineno"> 3534</span>         }</div>
-<div class="line"><a name="l03535"></a><span class="lineno"> 3535</span>     }</div>
-<div class="line"><a name="l03536"></a><span class="lineno"> 3536</span>     }</div>
-<div class="line"><a name="l03537"></a><span class="lineno"> 3537</span>     </div>
-<div class="line"><a name="l03538"></a><span class="lineno"> 3538</span>   cleanup:</div>
-<div class="line"><a name="l03539"></a><span class="lineno"> 3539</span>     uves_free_image(&temp_image[0]);</div>
-<div class="line"><a name="l03540"></a><span class="lineno"> 3540</span>     uves_free_image(&temp_image[1]);</div>
-<div class="line"><a name="l03541"></a><span class="lineno"> 3541</span>     uves_free_propertylist(&temp_header[0]);</div>
-<div class="line"><a name="l03542"></a><span class="lineno"> 3542</span>     uves_free_propertylist(&temp_header[1]);</div>
-<div class="line"><a name="l03543"></a><span class="lineno"> 3543</span>     </div>
-<div class="line"><a name="l03544"></a><span class="lineno"> 3544</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l03545"></a><span class="lineno"> 3545</span>     <span class="keywordflow">if</span> (raw_headers[0] != NULL) {</div>
-<div class="line"><a name="l03546"></a><span class="lineno"> 3546</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03547"></a><span class="lineno"> 3547</span>         <span class="keywordflow">for</span> (i = 0; i < frameset_size; i++)    {</div>
-<div class="line"><a name="l03548"></a><span class="lineno"> 3548</span>         <span class="keywordflow">if</span> (raw_headers[0] != NULL) uves_free_propertylist(&raw_headers[0][i]);</div>
-<div class="line"><a name="l03549"></a><span class="lineno"> 3549</span>         <span class="keywordflow">if</span> (raw_headers[1] != NULL) uves_free_propertylist(&raw_headers[1][i]);</div>
-<div class="line"><a name="l03550"></a><span class="lineno"> 3550</span>         }</div>
-<div class="line"><a name="l03551"></a><span class="lineno"> 3551</span>     }</div>
-<div class="line"><a name="l03552"></a><span class="lineno"> 3552</span>     cpl_free(raw_headers[0]); raw_headers[0] = NULL;</div>
-<div class="line"><a name="l03553"></a><span class="lineno"> 3553</span>     cpl_free(raw_headers[1]); raw_headers[1] = NULL;</div>
-<div class="line"><a name="l03554"></a><span class="lineno"> 3554</span>     </div>
-<div class="line"><a name="l03555"></a><span class="lineno"> 3555</span>     uves_free_imagelist(&images[0]);</div>
-<div class="line"><a name="l03556"></a><span class="lineno"> 3556</span>     uves_free_imagelist(&images[1]);</div>
-<div class="line"><a name="l03557"></a><span class="lineno"> 3557</span>     </div>
-<div class="line"><a name="l03558"></a><span class="lineno"> 3558</span>     uves_free_propertylist(&rotated_header[0]);</div>
-<div class="line"><a name="l03559"></a><span class="lineno"> 3559</span>     uves_free_propertylist(&rotated_header[1]);</div>
-<div class="line"><a name="l03560"></a><span class="lineno"> 3560</span>     }</div>
-<div class="line"><a name="l03561"></a><span class="lineno"> 3561</span> </div>
-<div class="line"><a name="l03562"></a><span class="lineno"> 3562</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l03563"></a><span class="lineno"> 3563</span> }</div>
-<div class="line"><a name="l03564"></a><span class="lineno"> 3564</span> </div>
-<div class="line"><a name="l03565"></a><span class="lineno"> 3565</span> </div>
-<div class="line"><a name="l03566"></a><span class="lineno"> 3566</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03583"></a><span class="lineno"> 3583</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03584"></a><span class="lineno"> 3584</span> cpl_error_code</div>
-<div class="line"><a name="l03585"></a><span class="lineno"> 3585</span> uves_load_orderpos(<span class="keyword">const</span> cpl_frameset *frames,</div>
-<div class="line"><a name="l03586"></a><span class="lineno"> 3586</span>            <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l03587"></a><span class="lineno"> 3587</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename,</div>
-<div class="line"><a name="l03588"></a><span class="lineno"> 3588</span>            cpl_image *raw_image[2],</div>
-<div class="line"><a name="l03589"></a><span class="lineno"> 3589</span>            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2], </div>
-<div class="line"><a name="l03590"></a><span class="lineno"> 3590</span>            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2], <span class="keywordtype">bool</span> *blue)</div>
-<div class="line"><a name="l03591"></a><span class="lineno"> 3591</span> {</div>
-<div class="line"><a name="l03592"></a><span class="lineno"> 3592</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[4];</div>
-<div class="line"><a name="l03593"></a><span class="lineno"> 3593</span> </div>
-<div class="line"><a name="l03594"></a><span class="lineno"> 3594</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l03595"></a><span class="lineno"> 3595</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l03596"></a><span class="lineno"> 3596</span> </div>
-<div class="line"><a name="l03597"></a><span class="lineno"> 3597</span>     <span class="comment">/* Warning: Duplicate logic. The number of tags must match the size of the</span></div>
-<div class="line"><a name="l03598"></a><span class="lineno"> 3598</span> <span class="comment">       tags array defined above */</span></div>
-<div class="line"><a name="l03599"></a><span class="lineno"> 3599</span>     tags[0] = UVES_ORDER_FLAT(flames, <span class="keyword">false</span>); <span class="comment">/* red */</span></div>
-<div class="line"><a name="l03600"></a><span class="lineno"> 3600</span>     tags[1] = UVES_ORDER_FLAT(flames, <span class="keyword">true</span>);  <span class="comment">/* blue */</span></div>
-<div class="line"><a name="l03601"></a><span class="lineno"> 3601</span>     tags[2] = UVES_STD_STAR(<span class="keyword">false</span>);</div>
-<div class="line"><a name="l03602"></a><span class="lineno"> 3602</span>     tags[3] = UVES_STD_STAR(<span class="keyword">true</span>);</div>
-<div class="line"><a name="l03603"></a><span class="lineno"> 3603</span> </div>
-<div class="line"><a name="l03604"></a><span class="lineno"> 3604</span>     <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l03605"></a><span class="lineno"> 3605</span>     {</div>
-<div class="line"><a name="l03606"></a><span class="lineno"> 3606</span>         *blue = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03607"></a><span class="lineno"> 3607</span>         number_of_tags = 1;</div>
-<div class="line"><a name="l03608"></a><span class="lineno"> 3608</span> </div>
-<div class="line"><a name="l03609"></a><span class="lineno"> 3609</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *raw_filename = uves_find_frame(frames, tags, number_of_tags, &indx,</div>
-<div class="line"><a name="l03610"></a><span class="lineno"> 3610</span>                            NULL),</div>
-<div class="line"><a name="l03611"></a><span class="lineno"> 3611</span>            <span class="stringliteral">"Could not find raw frame (%s) in SOF"</span>, </div>
-<div class="line"><a name="l03612"></a><span class="lineno"> 3612</span>            tags[0]);</div>
-<div class="line"><a name="l03613"></a><span class="lineno"> 3613</span>         </div>
-<div class="line"><a name="l03614"></a><span class="lineno"> 3614</span>     }</div>
-<div class="line"><a name="l03615"></a><span class="lineno"> 3615</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03616"></a><span class="lineno"> 3616</span>     {    </div>
-<div class="line"><a name="l03617"></a><span class="lineno"> 3617</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *raw_filename = uves_find_frame(frames, tags, number_of_tags, &indx,</div>
-<div class="line"><a name="l03618"></a><span class="lineno"> 3618</span>                            NULL),</div>
-<div class="line"><a name="l03619"></a><span class="lineno"> 3619</span>            <span class="stringliteral">"Could not find raw frame (%s, %s, %s, or %s) in SOF"</span>, </div>
-<div class="line"><a name="l03620"></a><span class="lineno"> 3620</span>            tags[0], tags[1], tags[2], tags[3]);</div>
-<div class="line"><a name="l03621"></a><span class="lineno"> 3621</span>         </div>
-<div class="line"><a name="l03622"></a><span class="lineno"> 3622</span>         *blue = (indx == 1) || (indx == 3);</div>
-<div class="line"><a name="l03623"></a><span class="lineno"> 3623</span>     }</div>
-<div class="line"><a name="l03624"></a><span class="lineno"> 3624</span> </div>
-<div class="line"><a name="l03625"></a><span class="lineno"> 3625</span>     <span class="comment">/* Load the image */</span></div>
-<div class="line"><a name="l03626"></a><span class="lineno"> 3626</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( load_raw_image(*raw_filename,</div>
-<div class="line"><a name="l03627"></a><span class="lineno"> 3627</span>               CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l03628"></a><span class="lineno"> 3628</span>               flames,</div>
-<div class="line"><a name="l03629"></a><span class="lineno"> 3629</span>               *blue,</div>
-<div class="line"><a name="l03630"></a><span class="lineno"> 3630</span>               raw_image,</div>
-<div class="line"><a name="l03631"></a><span class="lineno"> 3631</span>               raw_header,</div>
-<div class="line"><a name="l03632"></a><span class="lineno"> 3632</span>               rotated_header),</div>
-<div class="line"><a name="l03633"></a><span class="lineno"> 3633</span>        <span class="stringliteral">"Error loading image from file '%s'"</span>, *raw_filename);</div>
-<div class="line"><a name="l03634"></a><span class="lineno"> 3634</span>     </div>
-<div class="line"><a name="l03635"></a><span class="lineno"> 3635</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( !flames || !(*blue), <span class="stringliteral">"%d %d"</span>,</div>
-<div class="line"><a name="l03636"></a><span class="lineno"> 3636</span>          flames, *blue );</div>
-<div class="line"><a name="l03637"></a><span class="lineno"> 3637</span> </div>
-<div class="line"><a name="l03638"></a><span class="lineno"> 3638</span>   cleanup:</div>
-<div class="line"><a name="l03639"></a><span class="lineno"> 3639</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l03640"></a><span class="lineno"> 3640</span>     {</div>
-<div class="line"><a name="l03641"></a><span class="lineno"> 3641</span>         *raw_filename = NULL;</div>
-<div class="line"><a name="l03642"></a><span class="lineno"> 3642</span>     }</div>
-<div class="line"><a name="l03643"></a><span class="lineno"> 3643</span>     </div>
-<div class="line"><a name="l03644"></a><span class="lineno"> 3644</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l03645"></a><span class="lineno"> 3645</span> }</div>
-<div class="line"><a name="l03646"></a><span class="lineno"> 3646</span> </div>
-<div class="line"><a name="l03647"></a><span class="lineno"> 3647</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03663"></a><span class="lineno"> 3663</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03664"></a><span class="lineno"> 3664</span> cpl_error_code</div>
-<div class="line"><a name="l03665"></a><span class="lineno"> 3665</span> uves_load_formatcheck(<span class="keyword">const</span> cpl_frameset *frames,</div>
-<div class="line"><a name="l03666"></a><span class="lineno"> 3666</span>               <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l03667"></a><span class="lineno"> 3667</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename,</div>
-<div class="line"><a name="l03668"></a><span class="lineno"> 3668</span>               cpl_image *raw_image[2],</div>
-<div class="line"><a name="l03669"></a><span class="lineno"> 3669</span>               <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2], </div>
-<div class="line"><a name="l03670"></a><span class="lineno"> 3670</span>               <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2], <span class="keywordtype">bool</span> *blue)</div>
-<div class="line"><a name="l03671"></a><span class="lineno"> 3671</span> {</div>
-<div class="line"><a name="l03672"></a><span class="lineno"> 3672</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[2];</div>
-<div class="line"><a name="l03673"></a><span class="lineno"> 3673</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l03674"></a><span class="lineno"> 3674</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l03675"></a><span class="lineno"> 3675</span> </div>
-<div class="line"><a name="l03676"></a><span class="lineno"> 3676</span>     tags[0] = UVES_FORMATCHECK(flames, <span class="keyword">false</span>);   <span class="comment">/* red */</span></div>
-<div class="line"><a name="l03677"></a><span class="lineno"> 3677</span>     tags[1] = UVES_FORMATCHECK(flames, <span class="keyword">true</span>);    <span class="comment">/* blue */</span></div>
-<div class="line"><a name="l03678"></a><span class="lineno"> 3678</span>     <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l03679"></a><span class="lineno"> 3679</span>     {</div>
-<div class="line"><a name="l03680"></a><span class="lineno"> 3680</span>         *blue = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03681"></a><span class="lineno"> 3681</span>         number_of_tags = 1;</div>
-<div class="line"><a name="l03682"></a><span class="lineno"> 3682</span> </div>
-<div class="line"><a name="l03683"></a><span class="lineno"> 3683</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *raw_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL),</div>
-<div class="line"><a name="l03684"></a><span class="lineno"> 3684</span>            <span class="stringliteral">"Could not find raw frame (%s) in SOF"</span>,</div>
-<div class="line"><a name="l03685"></a><span class="lineno"> 3685</span>            tags[0]);</div>
-<div class="line"><a name="l03686"></a><span class="lineno"> 3686</span>     }</div>
-<div class="line"><a name="l03687"></a><span class="lineno"> 3687</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03688"></a><span class="lineno"> 3688</span>     {</div>
-<div class="line"><a name="l03689"></a><span class="lineno"> 3689</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *raw_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL),</div>
-<div class="line"><a name="l03690"></a><span class="lineno"> 3690</span>            <span class="stringliteral">"Could not find raw frame (%s or %s) in SOF"</span>, </div>
-<div class="line"><a name="l03691"></a><span class="lineno"> 3691</span>            tags[0], tags[1]);</div>
-<div class="line"><a name="l03692"></a><span class="lineno"> 3692</span>         </div>
-<div class="line"><a name="l03693"></a><span class="lineno"> 3693</span>         *blue = (indx == 1);</div>
-<div class="line"><a name="l03694"></a><span class="lineno"> 3694</span>     }</div>
-<div class="line"><a name="l03695"></a><span class="lineno"> 3695</span> </div>
-<div class="line"><a name="l03696"></a><span class="lineno"> 3696</span>     <span class="comment">/* Load the image */</span></div>
-<div class="line"><a name="l03697"></a><span class="lineno"> 3697</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( load_raw_image(*raw_filename,</div>
-<div class="line"><a name="l03698"></a><span class="lineno"> 3698</span>               CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l03699"></a><span class="lineno"> 3699</span>               flames,</div>
-<div class="line"><a name="l03700"></a><span class="lineno"> 3700</span>               *blue,</div>
-<div class="line"><a name="l03701"></a><span class="lineno"> 3701</span>               raw_image,</div>
-<div class="line"><a name="l03702"></a><span class="lineno"> 3702</span>               raw_header,</div>
-<div class="line"><a name="l03703"></a><span class="lineno"> 3703</span>               rotated_header),</div>
-<div class="line"><a name="l03704"></a><span class="lineno"> 3704</span>        <span class="stringliteral">"Error loading image from file '%s'"</span>, *raw_filename);</div>
-<div class="line"><a name="l03705"></a><span class="lineno"> 3705</span>    </div>
-<div class="line"><a name="l03706"></a><span class="lineno"> 3706</span>   cleanup:</div>
-<div class="line"><a name="l03707"></a><span class="lineno"> 3707</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l03708"></a><span class="lineno"> 3708</span>     {</div>
-<div class="line"><a name="l03709"></a><span class="lineno"> 3709</span>         *raw_filename = NULL;</div>
-<div class="line"><a name="l03710"></a><span class="lineno"> 3710</span>     }</div>
-<div class="line"><a name="l03711"></a><span class="lineno"> 3711</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l03712"></a><span class="lineno"> 3712</span> }</div>
-<div class="line"><a name="l03713"></a><span class="lineno"> 3713</span> </div>
-<div class="line"><a name="l03714"></a><span class="lineno"> 3714</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03733"></a><span class="lineno"> 3733</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03734"></a><span class="lineno"> 3734</span> <span class="keywordtype">void</span> uves_load_cd_align(<span class="keyword">const</span> cpl_frameset *frames,</div>
-<div class="line"><a name="l03735"></a><span class="lineno"> 3735</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename1,</div>
-<div class="line"><a name="l03736"></a><span class="lineno"> 3736</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename2,</div>
-<div class="line"><a name="l03737"></a><span class="lineno"> 3737</span>             cpl_image *raw_image1[2],</div>
-<div class="line"><a name="l03738"></a><span class="lineno"> 3738</span>             cpl_image *raw_image2[2],</div>
-<div class="line"><a name="l03739"></a><span class="lineno"> 3739</span>             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header1[2], </div>
-<div class="line"><a name="l03740"></a><span class="lineno"> 3740</span>             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header2[2], </div>
-<div class="line"><a name="l03741"></a><span class="lineno"> 3741</span>             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header1[2], </div>
-<div class="line"><a name="l03742"></a><span class="lineno"> 3742</span>             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header2[2], </div>
-<div class="line"><a name="l03743"></a><span class="lineno"> 3743</span>             <span class="keywordtype">bool</span> *blue)</div>
-<div class="line"><a name="l03744"></a><span class="lineno"> 3744</span> {</div>
-<div class="line"><a name="l03745"></a><span class="lineno"> 3745</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[2];</div>
-<div class="line"><a name="l03746"></a><span class="lineno"> 3746</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l03747"></a><span class="lineno"> 3747</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l03748"></a><span class="lineno"> 3748</span>     <span class="keywordtype">bool</span> flames = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03749"></a><span class="lineno"> 3749</span>     <span class="keyword">const</span> cpl_frame *frame;</div>
-<div class="line"><a name="l03750"></a><span class="lineno"> 3750</span> </div>
-<div class="line"><a name="l03751"></a><span class="lineno"> 3751</span>     tags[0] = UVES_CD_ALIGN(<span class="keyword">false</span>);   <span class="comment">/* red */</span></div>
-<div class="line"><a name="l03752"></a><span class="lineno"> 3752</span>     tags[1] = UVES_CD_ALIGN(<span class="keyword">true</span>);    <span class="comment">/* blue */</span></div>
-<div class="line"><a name="l03753"></a><span class="lineno"> 3753</span> </div>
-<div class="line"><a name="l03754"></a><span class="lineno"> 3754</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *raw_filename1 = uves_find_frame(frames, tags, number_of_tags, &indx, NULL),</div>
-<div class="line"><a name="l03755"></a><span class="lineno"> 3755</span>        <span class="stringliteral">"Could not find raw frame (%s or %s) in SOF"</span>, </div>
-<div class="line"><a name="l03756"></a><span class="lineno"> 3756</span>        tags[0], tags[1]);</div>
-<div class="line"><a name="l03757"></a><span class="lineno"> 3757</span>     </div>
-<div class="line"><a name="l03758"></a><span class="lineno"> 3758</span>     *blue = (indx == 1);</div>
-<div class="line"><a name="l03759"></a><span class="lineno"> 3759</span> </div>
-<div class="line"><a name="l03760"></a><span class="lineno"> 3760</span>     assure( cpl_frameset_count_tags(frames, tags[indx]) == 2,</div>
-<div class="line"><a name="l03761"></a><span class="lineno"> 3761</span>         CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l03762"></a><span class="lineno"> 3762</span>         <span class="stringliteral">"%d %s frames found. Exactly 2 required"</span>,</div>
-<div class="line"><a name="l03763"></a><span class="lineno"> 3763</span>         cpl_frameset_count_tags(frames, tags[indx]), tags[indx] );</div>
-<div class="line"><a name="l03764"></a><span class="lineno"> 3764</span> </div>
-<div class="line"><a name="l03765"></a><span class="lineno"> 3765</span>     <span class="comment">/* Load the two frames */</span></div>
-<div class="line"><a name="l03766"></a><span class="lineno"> 3766</span>     {</div>
-<div class="line"><a name="l03767"></a><span class="lineno"> 3767</span>     <span class="keywordtype">int</span> n = 1;</div>
-<div class="line"><a name="l03768"></a><span class="lineno"> 3768</span>     <span class="keywordflow">for</span> (frame = cpl_frameset_get_first_const(frames);</div>
-<div class="line"><a name="l03769"></a><span class="lineno"> 3769</span>          frame != NULL;</div>
-<div class="line"><a name="l03770"></a><span class="lineno"> 3770</span>          frame = cpl_frameset_get_next_const(frames))</div>
-<div class="line"><a name="l03771"></a><span class="lineno"> 3771</span>         {</div>
-<div class="line"><a name="l03772"></a><span class="lineno"> 3772</span>         <span class="keywordflow">if</span> (strcmp(cpl_frame_get_tag(frame), tags[indx]) == 0)</div>
-<div class="line"><a name="l03773"></a><span class="lineno"> 3773</span>             {</div>
-<div class="line"><a name="l03774"></a><span class="lineno"> 3774</span>             <span class="keywordflow">if</span> (n == 1)</div>
-<div class="line"><a name="l03775"></a><span class="lineno"> 3775</span>                 {</div>
-<div class="line"><a name="l03776"></a><span class="lineno"> 3776</span>                 *raw_filename1 = cpl_frame_get_filename(frame);</div>
-<div class="line"><a name="l03777"></a><span class="lineno"> 3777</span>                 }</div>
-<div class="line"><a name="l03778"></a><span class="lineno"> 3778</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03779"></a><span class="lineno"> 3779</span>                 {</div>
-<div class="line"><a name="l03780"></a><span class="lineno"> 3780</span>                 *raw_filename2 = cpl_frame_get_filename(frame);</div>
-<div class="line"><a name="l03781"></a><span class="lineno"> 3781</span>                 }</div>
-<div class="line"><a name="l03782"></a><span class="lineno"> 3782</span>             </div>
-<div class="line"><a name="l03783"></a><span class="lineno"> 3783</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( load_raw_image(n == 1 ? </div>
-<div class="line"><a name="l03784"></a><span class="lineno"> 3784</span>                           *raw_filename1 :</div>
-<div class="line"><a name="l03785"></a><span class="lineno"> 3785</span>                           *raw_filename2,</div>
-<div class="line"><a name="l03786"></a><span class="lineno"> 3786</span>                           CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l03787"></a><span class="lineno"> 3787</span>                           flames,</div>
-<div class="line"><a name="l03788"></a><span class="lineno"> 3788</span>                           *blue,</div>
-<div class="line"><a name="l03789"></a><span class="lineno"> 3789</span>                           n == 1 ?</div>
-<div class="line"><a name="l03790"></a><span class="lineno"> 3790</span>                           raw_image1 :</div>
-<div class="line"><a name="l03791"></a><span class="lineno"> 3791</span>                           raw_image2,</div>
-<div class="line"><a name="l03792"></a><span class="lineno"> 3792</span>                           n == 1 ?</div>
-<div class="line"><a name="l03793"></a><span class="lineno"> 3793</span>                           raw_header1 :</div>
-<div class="line"><a name="l03794"></a><span class="lineno"> 3794</span>                           raw_header2,</div>
-<div class="line"><a name="l03795"></a><span class="lineno"> 3795</span>                           n == 1 ?</div>
-<div class="line"><a name="l03796"></a><span class="lineno"> 3796</span>                           rotated_header1 :</div>
-<div class="line"><a name="l03797"></a><span class="lineno"> 3797</span>                           rotated_header2),</div>
-<div class="line"><a name="l03798"></a><span class="lineno"> 3798</span>                    <span class="stringliteral">"Error loading image from file '%s'"</span>,</div>
-<div class="line"><a name="l03799"></a><span class="lineno"> 3799</span>                    n == 1 ? *raw_filename1 : *raw_filename2);</div>
-<div class="line"><a name="l03800"></a><span class="lineno"> 3800</span> </div>
-<div class="line"><a name="l03801"></a><span class="lineno"> 3801</span>             n++;</div>
-<div class="line"><a name="l03802"></a><span class="lineno"> 3802</span>             }</div>
-<div class="line"><a name="l03803"></a><span class="lineno"> 3803</span>         }</div>
-<div class="line"><a name="l03804"></a><span class="lineno"> 3804</span>     }</div>
-<div class="line"><a name="l03805"></a><span class="lineno"> 3805</span>     </div>
-<div class="line"><a name="l03806"></a><span class="lineno"> 3806</span>   cleanup:</div>
-<div class="line"><a name="l03807"></a><span class="lineno"> 3807</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l03808"></a><span class="lineno"> 3808</span>     {</div>
-<div class="line"><a name="l03809"></a><span class="lineno"> 3809</span>         *raw_filename1 = NULL;</div>
-<div class="line"><a name="l03810"></a><span class="lineno"> 3810</span>         *raw_filename2 = NULL;</div>
-<div class="line"><a name="l03811"></a><span class="lineno"> 3811</span>     }</div>
-<div class="line"><a name="l03812"></a><span class="lineno"> 3812</span>     </div>
-<div class="line"><a name="l03813"></a><span class="lineno"> 3813</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l03814"></a><span class="lineno"> 3814</span> }</div>
-<div class="line"><a name="l03815"></a><span class="lineno"> 3815</span> </div>
-<div class="line"><a name="l03816"></a><span class="lineno"> 3816</span> </div>
-<div class="line"><a name="l03817"></a><span class="lineno"> 3817</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03838"></a><span class="lineno"> 3838</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03839"></a><span class="lineno"> 3839</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l03840"></a><span class="lineno"> 3840</span> uves_load_arclamp(<span class="keyword">const</span> cpl_frameset *frames,</div>
-<div class="line"><a name="l03841"></a><span class="lineno"> 3841</span>           <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l03842"></a><span class="lineno"> 3842</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename, </div>
-<div class="line"><a name="l03843"></a><span class="lineno"> 3843</span>           cpl_image *raw_image[2], <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2],</div>
-<div class="line"><a name="l03844"></a><span class="lineno"> 3844</span>           <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2], <span class="keywordtype">bool</span> *blue,</div>
-<div class="line"><a name="l03845"></a><span class="lineno"> 3845</span>           <span class="keywordtype">bool</span> *sim_cal)</div>
-<div class="line"><a name="l03846"></a><span class="lineno"> 3846</span> {</div>
-<div class="line"><a name="l03847"></a><span class="lineno"> 3847</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[4];</div>
-<div class="line"><a name="l03848"></a><span class="lineno"> 3848</span> </div>
-<div class="line"><a name="l03849"></a><span class="lineno"> 3849</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l03850"></a><span class="lineno"> 3850</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l03851"></a><span class="lineno"> 3851</span> </div>
-<div class="line"><a name="l03852"></a><span class="lineno"> 3852</span>     <span class="comment">/* Warning: duplicate logic. Array size above must match */</span></div>
-<div class="line"><a name="l03853"></a><span class="lineno"> 3853</span>     <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l03854"></a><span class="lineno"> 3854</span>     {</div>
-<div class="line"><a name="l03855"></a><span class="lineno"> 3855</span>         <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( sim_cal != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l03856"></a><span class="lineno"> 3856</span> </div>
-<div class="line"><a name="l03857"></a><span class="lineno"> 3857</span>         tags[0] = UVES_ARC_LAMP(flames, <span class="keyword">true</span>);  <span class="comment">/* blue flag not used */</span></div>
-<div class="line"><a name="l03858"></a><span class="lineno"> 3858</span>         tags[1] = FLAMES_FIB_SCI_SIM;</div>
-<div class="line"><a name="l03859"></a><span class="lineno"> 3859</span> </div>
-<div class="line"><a name="l03860"></a><span class="lineno"> 3860</span>         number_of_tags = 2;</div>
-<div class="line"><a name="l03861"></a><span class="lineno"> 3861</span>         *blue = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03862"></a><span class="lineno"> 3862</span> </div>
-<div class="line"><a name="l03863"></a><span class="lineno"> 3863</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *raw_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL), </div>
-<div class="line"><a name="l03864"></a><span class="lineno"> 3864</span>            <span class="stringliteral">"Could not find raw frame (%s or %s) in SOF"</span>, </div>
-<div class="line"><a name="l03865"></a><span class="lineno"> 3865</span>            tags[0], tags[1]);</div>
-<div class="line"><a name="l03866"></a><span class="lineno"> 3866</span>         </div>
-<div class="line"><a name="l03867"></a><span class="lineno"> 3867</span>         *sim_cal = (indx == 1);</div>
-<div class="line"><a name="l03868"></a><span class="lineno"> 3868</span>     }</div>
-<div class="line"><a name="l03869"></a><span class="lineno"> 3869</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03870"></a><span class="lineno"> 3870</span>     {</div>
-<div class="line"><a name="l03871"></a><span class="lineno"> 3871</span>         tags[0] = UVES_ARC_LAMP(flames, <span class="keyword">true</span>);</div>
-<div class="line"><a name="l03872"></a><span class="lineno"> 3872</span>         tags[1] = UVES_ARC_LAMP(flames, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l03873"></a><span class="lineno"> 3873</span>         tags[2] = UVES_ECH_ARC_LAMP(<span class="keyword">true</span>);</div>
-<div class="line"><a name="l03874"></a><span class="lineno"> 3874</span>         tags[3] = UVES_ECH_ARC_LAMP(<span class="keyword">false</span>);</div>
-<div class="line"><a name="l03875"></a><span class="lineno"> 3875</span> </div>
-<div class="line"><a name="l03876"></a><span class="lineno"> 3876</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *raw_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL), </div>
-<div class="line"><a name="l03877"></a><span class="lineno"> 3877</span>            <span class="stringliteral">"Could not find raw frame (%s, %s, %s or %s) in SOF"</span>, </div>
-<div class="line"><a name="l03878"></a><span class="lineno"> 3878</span>            tags[0], tags[1], tags[2], tags[3]);</div>
-<div class="line"><a name="l03879"></a><span class="lineno"> 3879</span>         </div>
-<div class="line"><a name="l03880"></a><span class="lineno"> 3880</span>         *blue = (indx == 0 || indx == 2);</div>
-<div class="line"><a name="l03881"></a><span class="lineno"> 3881</span>     }</div>
-<div class="line"><a name="l03882"></a><span class="lineno"> 3882</span>     </div>
-<div class="line"><a name="l03883"></a><span class="lineno"> 3883</span>     <span class="comment">/* Load the image */</span></div>
-<div class="line"><a name="l03884"></a><span class="lineno"> 3884</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( load_raw_image(*raw_filename,</div>
-<div class="line"><a name="l03885"></a><span class="lineno"> 3885</span>               CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l03886"></a><span class="lineno"> 3886</span>               flames,</div>
-<div class="line"><a name="l03887"></a><span class="lineno"> 3887</span>               *blue,</div>
-<div class="line"><a name="l03888"></a><span class="lineno"> 3888</span>               raw_image,</div>
-<div class="line"><a name="l03889"></a><span class="lineno"> 3889</span>               raw_header,</div>
-<div class="line"><a name="l03890"></a><span class="lineno"> 3890</span>               rotated_header),</div>
-<div class="line"><a name="l03891"></a><span class="lineno"> 3891</span>        <span class="stringliteral">"Error loading image from file '%s'"</span>, *raw_filename);</div>
-<div class="line"><a name="l03892"></a><span class="lineno"> 3892</span> </div>
-<div class="line"><a name="l03893"></a><span class="lineno"> 3893</span>   cleanup:</div>
-<div class="line"><a name="l03894"></a><span class="lineno"> 3894</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l03895"></a><span class="lineno"> 3895</span>     *raw_filename = NULL;</div>
-<div class="line"><a name="l03896"></a><span class="lineno"> 3896</span>     uves_free_image       (raw_image);</div>
-<div class="line"><a name="l03897"></a><span class="lineno"> 3897</span>     uves_free_propertylist(raw_header);</div>
-<div class="line"><a name="l03898"></a><span class="lineno"> 3898</span>     }</div>
-<div class="line"><a name="l03899"></a><span class="lineno"> 3899</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l03900"></a><span class="lineno"> 3900</span> }</div>
-<div class="line"><a name="l03901"></a><span class="lineno"> 3901</span> </div>
-<div class="line"><a name="l03902"></a><span class="lineno"> 3902</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03917"></a><span class="lineno"> 3917</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03918"></a><span class="lineno"> 3918</span> cpl_error_code</div>
-<div class="line"><a name="l03919"></a><span class="lineno"> 3919</span> uves_load_science(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename, </div>
-<div class="line"><a name="l03920"></a><span class="lineno"> 3920</span>           cpl_image *raw_image[2], </div>
-<div class="line"><a name="l03921"></a><span class="lineno"> 3921</span>           <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2], </div>
-<div class="line"><a name="l03922"></a><span class="lineno"> 3922</span>           <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2], </div>
-<div class="line"><a name="l03923"></a><span class="lineno"> 3923</span>           <span class="keywordtype">bool</span> *blue,</div>
-<div class="line"><a name="l03924"></a><span class="lineno"> 3924</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> **sci_type)</div>
-<div class="line"><a name="l03925"></a><span class="lineno"> 3925</span> {</div>
-<div class="line"><a name="l03926"></a><span class="lineno"> 3926</span>     <span class="comment">/* Note: the two following arrays must match */</span></div>
-<div class="line"><a name="l03927"></a><span class="lineno"> 3927</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[] = </div>
-<div class="line"><a name="l03928"></a><span class="lineno"> 3928</span>     { </div>
-<div class="line"><a name="l03929"></a><span class="lineno"> 3929</span>         UVES_SCIENCE(<span class="keyword">true</span>), UVES_SCIENCE(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l03930"></a><span class="lineno"> 3930</span>         UVES_SCI_EXTND(<span class="keyword">true</span>), UVES_SCI_EXTND(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l03931"></a><span class="lineno"> 3931</span>         UVES_SCI_POINT(<span class="keyword">true</span>), UVES_SCI_POINT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l03932"></a><span class="lineno"> 3932</span>         UVES_SCI_SLICER(<span class="keyword">true</span>), UVES_SCI_SLICER(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l03933"></a><span class="lineno"> 3933</span>         UVES_TFLAT(<span class="keyword">true</span>), UVES_TFLAT(<span class="keyword">false</span>) </div>
-<div class="line"><a name="l03934"></a><span class="lineno"> 3934</span>     };</div>
-<div class="line"><a name="l03935"></a><span class="lineno"> 3935</span> </div>
-<div class="line"><a name="l03936"></a><span class="lineno"> 3936</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *type[] = </div>
-<div class="line"><a name="l03937"></a><span class="lineno"> 3937</span>     {</div>
-<div class="line"><a name="l03938"></a><span class="lineno"> 3938</span>         <span class="stringliteral">"SCIENCE"</span>, <span class="stringliteral">"SCIENCE"</span>,</div>
-<div class="line"><a name="l03939"></a><span class="lineno"> 3939</span>         <span class="stringliteral">"SCI_EXTND"</span>, <span class="stringliteral">"SCI_EXTND"</span>,</div>
-<div class="line"><a name="l03940"></a><span class="lineno"> 3940</span>         <span class="stringliteral">"SCI_POINT"</span>, <span class="stringliteral">"SCI_POINT"</span>,</div>
-<div class="line"><a name="l03941"></a><span class="lineno"> 3941</span>         <span class="stringliteral">"SCI_SLICER"</span>, <span class="stringliteral">"SCI_SLICER"</span>,</div>
-<div class="line"><a name="l03942"></a><span class="lineno"> 3942</span>         <span class="stringliteral">"TFLAT"</span>, <span class="stringliteral">"TFLAT"</span>,</div>
-<div class="line"><a name="l03943"></a><span class="lineno"> 3943</span>     };</div>
-<div class="line"><a name="l03944"></a><span class="lineno"> 3944</span> </div>
-<div class="line"><a name="l03945"></a><span class="lineno"> 3945</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l03946"></a><span class="lineno"> 3946</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l03947"></a><span class="lineno"> 3947</span>     <span class="keywordtype">bool</span> flames = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03948"></a><span class="lineno"> 3948</span> </div>
-<div class="line"><a name="l03949"></a><span class="lineno"> 3949</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *raw_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL), </div>
-<div class="line"><a name="l03950"></a><span class="lineno"> 3950</span>        <span class="stringliteral">"No science frame (%s, %s, %s, %s, %s, %s, %s, %s, %s or %s) in SOF"</span>, </div>
-<div class="line"><a name="l03951"></a><span class="lineno"> 3951</span>        tags[0], tags[1], tags[2], tags[3], </div>
-<div class="line"><a name="l03952"></a><span class="lineno"> 3952</span>        tags[4], tags[5], tags[6], tags[7], tags[7], tags[8]);</div>
-<div class="line"><a name="l03953"></a><span class="lineno"> 3953</span> </div>
-<div class="line"><a name="l03954"></a><span class="lineno"> 3954</span>     *blue = (indx % 2 == 0);</div>
-<div class="line"><a name="l03955"></a><span class="lineno"> 3955</span>     *sci_type = type[indx];</div>
-<div class="line"><a name="l03956"></a><span class="lineno"> 3956</span>     </div>
-<div class="line"><a name="l03957"></a><span class="lineno"> 3957</span>     <span class="comment">/* Load the image */</span></div>
-<div class="line"><a name="l03958"></a><span class="lineno"> 3958</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( load_raw_image(*raw_filename,</div>
-<div class="line"><a name="l03959"></a><span class="lineno"> 3959</span>               CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l03960"></a><span class="lineno"> 3960</span>               flames,</div>
-<div class="line"><a name="l03961"></a><span class="lineno"> 3961</span>               *blue,</div>
-<div class="line"><a name="l03962"></a><span class="lineno"> 3962</span>               raw_image,</div>
-<div class="line"><a name="l03963"></a><span class="lineno"> 3963</span>               raw_header,</div>
-<div class="line"><a name="l03964"></a><span class="lineno"> 3964</span>               rotated_header),</div>
-<div class="line"><a name="l03965"></a><span class="lineno"> 3965</span>        <span class="stringliteral">"Error loading image from file '%s'"</span>, *raw_filename);</div>
-<div class="line"><a name="l03966"></a><span class="lineno"> 3966</span>   cleanup:</div>
-<div class="line"><a name="l03967"></a><span class="lineno"> 3967</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l03968"></a><span class="lineno"> 3968</span>     {</div>
-<div class="line"><a name="l03969"></a><span class="lineno"> 3969</span>         *raw_filename = NULL;</div>
-<div class="line"><a name="l03970"></a><span class="lineno"> 3970</span>         uves_free_image       (raw_image);</div>
-<div class="line"><a name="l03971"></a><span class="lineno"> 3971</span>         uves_free_propertylist(raw_header);</div>
-<div class="line"><a name="l03972"></a><span class="lineno"> 3972</span>     }</div>
-<div class="line"><a name="l03973"></a><span class="lineno"> 3973</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l03974"></a><span class="lineno"> 3974</span> }</div>
-<div class="line"><a name="l03975"></a><span class="lineno"> 3975</span> </div>
-<div class="line"><a name="l03976"></a><span class="lineno"> 3976</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03993"></a><span class="lineno"> 3993</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03994"></a><span class="lineno"> 3994</span> cpl_error_code</div>
-<div class="line"><a name="l03995"></a><span class="lineno"> 3995</span> uves_load_standard(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename, </div>
-<div class="line"><a name="l03996"></a><span class="lineno"> 3996</span>            cpl_image *raw_image[2],</div>
-<div class="line"><a name="l03997"></a><span class="lineno"> 3997</span>            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2], </div>
-<div class="line"><a name="l03998"></a><span class="lineno"> 3998</span>            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2], <span class="keywordtype">bool</span> *blue)</div>
-<div class="line"><a name="l03999"></a><span class="lineno"> 3999</span> {</div>
-<div class="line"><a name="l04000"></a><span class="lineno"> 4000</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[] = { UVES_STD_STAR(<span class="keyword">true</span>), UVES_STD_STAR(<span class="keyword">false</span>) };</div>
-<div class="line"><a name="l04001"></a><span class="lineno"> 4001</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l04002"></a><span class="lineno"> 4002</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l04003"></a><span class="lineno"> 4003</span>     <span class="keywordtype">bool</span> flames = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l04004"></a><span class="lineno"> 4004</span>     </div>
-<div class="line"><a name="l04005"></a><span class="lineno"> 4005</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *raw_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL), </div>
-<div class="line"><a name="l04006"></a><span class="lineno"> 4006</span>        <span class="stringliteral">"Could not identify raw frame (%s or %s) in SOF"</span>, tags[0], tags[1]);</div>
-<div class="line"><a name="l04007"></a><span class="lineno"> 4007</span> </div>
-<div class="line"><a name="l04008"></a><span class="lineno"> 4008</span>     *blue = (indx == 0);</div>
-<div class="line"><a name="l04009"></a><span class="lineno"> 4009</span>     </div>
-<div class="line"><a name="l04010"></a><span class="lineno"> 4010</span>     <span class="comment">/* Load the image */</span></div>
-<div class="line"><a name="l04011"></a><span class="lineno"> 4011</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( load_raw_image(*raw_filename,</div>
-<div class="line"><a name="l04012"></a><span class="lineno"> 4012</span>               CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l04013"></a><span class="lineno"> 4013</span>               flames,</div>
-<div class="line"><a name="l04014"></a><span class="lineno"> 4014</span>               *blue,</div>
-<div class="line"><a name="l04015"></a><span class="lineno"> 4015</span>               raw_image,</div>
-<div class="line"><a name="l04016"></a><span class="lineno"> 4016</span>               raw_header,</div>
-<div class="line"><a name="l04017"></a><span class="lineno"> 4017</span>               rotated_header),</div>
-<div class="line"><a name="l04018"></a><span class="lineno"> 4018</span>        <span class="stringliteral">"Error loading image from file '%s'"</span>, *raw_filename);</div>
-<div class="line"><a name="l04019"></a><span class="lineno"> 4019</span> </div>
-<div class="line"><a name="l04020"></a><span class="lineno"> 4020</span>   cleanup:</div>
-<div class="line"><a name="l04021"></a><span class="lineno"> 4021</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l04022"></a><span class="lineno"> 4022</span>     {</div>
-<div class="line"><a name="l04023"></a><span class="lineno"> 4023</span>         *raw_filename = NULL;</div>
-<div class="line"><a name="l04024"></a><span class="lineno"> 4024</span>         uves_free_image       (raw_image);</div>
-<div class="line"><a name="l04025"></a><span class="lineno"> 4025</span>         uves_free_propertylist(raw_header);</div>
-<div class="line"><a name="l04026"></a><span class="lineno"> 4026</span>     }</div>
-<div class="line"><a name="l04027"></a><span class="lineno"> 4027</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l04028"></a><span class="lineno"> 4028</span> }</div>
-<div class="line"><a name="l04029"></a><span class="lineno"> 4029</span> </div>
-<div class="line"><a name="l04030"></a><span class="lineno"> 4030</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04046"></a><span class="lineno"> 4046</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04047"></a><span class="lineno"> 4047</span> </div>
-<div class="line"><a name="l04048"></a><span class="lineno"> 4048</span> cpl_error_code</div>
-<div class="line"><a name="l04049"></a><span class="lineno"> 4049</span> uves_load_drs(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l04050"></a><span class="lineno"> 4050</span>           <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l04051"></a><span class="lineno"> 4051</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l04052"></a><span class="lineno"> 4052</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> **drs_filename, </div>
-<div class="line"><a name="l04053"></a><span class="lineno"> 4053</span>           <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **drs_header,</div>
-<div class="line"><a name="l04054"></a><span class="lineno"> 4054</span>           <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l04055"></a><span class="lineno"> 4055</span> {</div>
-<div class="line"><a name="l04056"></a><span class="lineno"> 4056</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[1];</div>
-<div class="line"><a name="l04057"></a><span class="lineno"> 4057</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l04058"></a><span class="lineno"> 4058</span>     <span class="keywordtype">int</span> extension;</div>
-<div class="line"><a name="l04059"></a><span class="lineno"> 4059</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l04060"></a><span class="lineno"> 4060</span>     </div>
-<div class="line"><a name="l04061"></a><span class="lineno"> 4061</span>     *drs_header = NULL;</div>
-<div class="line"><a name="l04062"></a><span class="lineno"> 4062</span>     tags[0]   = UVES_DRS_SETUP(flames, chip);</div>
-<div class="line"><a name="l04063"></a><span class="lineno"> 4063</span>     extension = UVES_DRS_SETUP_EXTENSION(chip);</div>
-<div class="line"><a name="l04064"></a><span class="lineno"> 4064</span> </div>
-<div class="line"><a name="l04065"></a><span class="lineno"> 4065</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *drs_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL), </div>
-<div class="line"><a name="l04066"></a><span class="lineno"> 4066</span>        <span class="stringliteral">"Could not find DRS table (%s) in SOF"</span>, tags[0]);</div>
-<div class="line"><a name="l04067"></a><span class="lineno"> 4067</span>     </div>
-<div class="line"><a name="l04068"></a><span class="lineno"> 4068</span>     <span class="comment">/* Load the header */</span></div>
-<div class="line"><a name="l04069"></a><span class="lineno"> 4069</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *drs_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*drs_filename,</div>
-<div class="line"><a name="l04070"></a><span class="lineno"> 4070</span>                            extension),</div>
-<div class="line"><a name="l04071"></a><span class="lineno"> 4071</span>        <span class="stringliteral">"Could not load header from extension %d of file '%s'"</span>, extension, *drs_filename);</div>
-<div class="line"><a name="l04072"></a><span class="lineno"> 4072</span> </div>
-<div class="line"><a name="l04073"></a><span class="lineno"> 4073</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_warn_if_chip_names_dont_match(*drs_header, chip_name, chip) );</div>
-<div class="line"><a name="l04074"></a><span class="lineno"> 4074</span> </div>
-<div class="line"><a name="l04075"></a><span class="lineno"> 4075</span>   cleanup:</div>
-<div class="line"><a name="l04076"></a><span class="lineno"> 4076</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l04077"></a><span class="lineno"> 4077</span>     *drs_filename = NULL;</div>
-<div class="line"><a name="l04078"></a><span class="lineno"> 4078</span>     uves_free_propertylist(drs_header);</div>
-<div class="line"><a name="l04079"></a><span class="lineno"> 4079</span>     }</div>
-<div class="line"><a name="l04080"></a><span class="lineno"> 4080</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l04081"></a><span class="lineno"> 4081</span> }</div>
-<div class="line"><a name="l04082"></a><span class="lineno"> 4082</span> </div>
-<div class="line"><a name="l04083"></a><span class="lineno"> 4083</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04091"></a><span class="lineno"> 4091</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04092"></a><span class="lineno"> 4092</span> cpl_image *</div>
-<div class="line"><a name="l04093"></a><span class="lineno"> 4093</span> uves_load_weights(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> **weights_filename,</div>
-<div class="line"><a name="l04094"></a><span class="lineno"> 4094</span>                   <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l04095"></a><span class="lineno"> 4095</span> {</div>
-<div class="line"><a name="l04096"></a><span class="lineno"> 4096</span>     cpl_image *weights = NULL;</div>
-<div class="line"><a name="l04097"></a><span class="lineno"> 4097</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[1];</div>
-<div class="line"><a name="l04098"></a><span class="lineno"> 4098</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l04099"></a><span class="lineno"> 4099</span>     <span class="keywordtype">int</span> extension = 0;</div>
-<div class="line"><a name="l04100"></a><span class="lineno"> 4100</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l04101"></a><span class="lineno"> 4101</span> </div>
-<div class="line"><a name="l04102"></a><span class="lineno"> 4102</span>     assure( weights_filename != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null filename"</span>);</div>
-<div class="line"><a name="l04103"></a><span class="lineno"> 4103</span>     </div>
-<div class="line"><a name="l04104"></a><span class="lineno"> 4104</span>     tags[0]   = UVES_WEIGHTS(chip);</div>
-<div class="line"><a name="l04105"></a><span class="lineno"> 4105</span> </div>
-<div class="line"><a name="l04106"></a><span class="lineno"> 4106</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *weights_filename = uves_find_frame(frames, </div>
-<div class="line"><a name="l04107"></a><span class="lineno"> 4107</span>                                                tags, number_of_tags, &indx, NULL), </div>
-<div class="line"><a name="l04108"></a><span class="lineno"> 4108</span>            <span class="stringliteral">"Could not find '%s' in frame set"</span>, tags[0]);</div>
-<div class="line"><a name="l04109"></a><span class="lineno"> 4109</span>     </div>
-<div class="line"><a name="l04110"></a><span class="lineno"> 4110</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( weights = cpl_image_load(*weights_filename,</div>
-<div class="line"><a name="l04111"></a><span class="lineno"> 4111</span>                                     CPL_TYPE_DOUBLE,           <span class="comment">/* Convert to this type */</span></div>
-<div class="line"><a name="l04112"></a><span class="lineno"> 4112</span>                                     0,                         <span class="comment">/* plane number */</span></div>
-<div class="line"><a name="l04113"></a><span class="lineno"> 4113</span>                                     extension                  <span class="comment">/* Extension number */</span></div>
-<div class="line"><a name="l04114"></a><span class="lineno"> 4114</span>                ),</div>
-<div class="line"><a name="l04115"></a><span class="lineno"> 4115</span>            <span class="stringliteral">"Could not load master bias from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04116"></a><span class="lineno"> 4116</span>            extension, *weights_filename);</div>
-<div class="line"><a name="l04117"></a><span class="lineno"> 4117</span> </div>
-<div class="line"><a name="l04118"></a><span class="lineno"> 4118</span>   cleanup:</div>
-<div class="line"><a name="l04119"></a><span class="lineno"> 4119</span>     <span class="keywordflow">return</span> weights;</div>
-<div class="line"><a name="l04120"></a><span class="lineno"> 4120</span> }</div>
-<div class="line"><a name="l04121"></a><span class="lineno"> 4121</span> </div>
-<div class="line"><a name="l04122"></a><span class="lineno"> 4122</span> </div>
-<div class="line"><a name="l04123"></a><span class="lineno"> 4123</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04139"></a><span class="lineno"> 4139</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04140"></a><span class="lineno"> 4140</span> </div>
-<div class="line"><a name="l04141"></a><span class="lineno"> 4141</span> cpl_error_code</div>
-<div class="line"><a name="l04142"></a><span class="lineno"> 4142</span> uves_load_mbias(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l04143"></a><span class="lineno"> 4143</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> **mbias_filename, </div>
-<div class="line"><a name="l04144"></a><span class="lineno"> 4144</span>         cpl_image **mbias, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **mbias_header, <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l04145"></a><span class="lineno"> 4145</span> {</div>
-<div class="line"><a name="l04146"></a><span class="lineno"> 4146</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[1];</div>
-<div class="line"><a name="l04147"></a><span class="lineno"> 4147</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l04148"></a><span class="lineno"> 4148</span>     <span class="keywordtype">int</span> extension;</div>
-<div class="line"><a name="l04149"></a><span class="lineno"> 4149</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l04150"></a><span class="lineno"> 4150</span>     </div>
-<div class="line"><a name="l04151"></a><span class="lineno"> 4151</span>     *mbias        = NULL;</div>
-<div class="line"><a name="l04152"></a><span class="lineno"> 4152</span>     *mbias_header = NULL;</div>
-<div class="line"><a name="l04153"></a><span class="lineno"> 4153</span> </div>
-<div class="line"><a name="l04154"></a><span class="lineno"> 4154</span>     tags[0]   = UVES_MASTER_BIAS          (chip);</div>
-<div class="line"><a name="l04155"></a><span class="lineno"> 4155</span>     extension = UVES_MASTER_BIAS_EXTENSION(chip);</div>
-<div class="line"><a name="l04156"></a><span class="lineno"> 4156</span>     </div>
-<div class="line"><a name="l04157"></a><span class="lineno"> 4157</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *mbias_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL), </div>
-<div class="line"><a name="l04158"></a><span class="lineno"> 4158</span>        <span class="stringliteral">"Could not find '%s' in frame set"</span>, tags[0]);</div>
-<div class="line"><a name="l04159"></a><span class="lineno"> 4159</span>     </div>
-<div class="line"><a name="l04160"></a><span class="lineno"> 4160</span>     <span class="comment">/* Load the mbias image */</span></div>
-<div class="line"><a name="l04161"></a><span class="lineno"> 4161</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *mbias = cpl_image_load(*mbias_filename,</div>
-<div class="line"><a name="l04162"></a><span class="lineno"> 4162</span>                    CPL_TYPE_DOUBLE,           <span class="comment">/* Convert to this type */</span></div>
-<div class="line"><a name="l04163"></a><span class="lineno"> 4163</span>                    0,                         <span class="comment">/* plane number */</span></div>
-<div class="line"><a name="l04164"></a><span class="lineno"> 4164</span>                    extension                  <span class="comment">/* Extension number */</span></div>
-<div class="line"><a name="l04165"></a><span class="lineno"> 4165</span>            ),</div>
-<div class="line"><a name="l04166"></a><span class="lineno"> 4166</span>        <span class="stringliteral">"Could not load master bias from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04167"></a><span class="lineno"> 4167</span>        extension, *mbias_filename);</div>
-<div class="line"><a name="l04168"></a><span class="lineno"> 4168</span> </div>
-<div class="line"><a name="l04169"></a><span class="lineno"> 4169</span>     <span class="comment">/* Load the header */</span></div>
-<div class="line"><a name="l04170"></a><span class="lineno"> 4170</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *mbias_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*mbias_filename,</div>
-<div class="line"><a name="l04171"></a><span class="lineno"> 4171</span>                          extension),</div>
-<div class="line"><a name="l04172"></a><span class="lineno"> 4172</span>        <span class="stringliteral">"Could not load header from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04173"></a><span class="lineno"> 4173</span>        extension, *mbias_filename);</div>
-<div class="line"><a name="l04174"></a><span class="lineno"> 4174</span> </div>
-<div class="line"><a name="l04175"></a><span class="lineno"> 4175</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_warn_if_chip_names_dont_match(*mbias_header, chip_name, chip) );</div>
-<div class="line"><a name="l04176"></a><span class="lineno"> 4176</span> </div>
-<div class="line"><a name="l04177"></a><span class="lineno"> 4177</span>   cleanup:</div>
-<div class="line"><a name="l04178"></a><span class="lineno"> 4178</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l04179"></a><span class="lineno"> 4179</span>     {</div>
-<div class="line"><a name="l04180"></a><span class="lineno"> 4180</span>         *mbias_filename = NULL;</div>
-<div class="line"><a name="l04181"></a><span class="lineno"> 4181</span>         uves_free_image(mbias);</div>
-<div class="line"><a name="l04182"></a><span class="lineno"> 4182</span>         uves_free_propertylist(mbias_header);</div>
-<div class="line"><a name="l04183"></a><span class="lineno"> 4183</span>     }</div>
-<div class="line"><a name="l04184"></a><span class="lineno"> 4184</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l04185"></a><span class="lineno"> 4185</span> }</div>
-<div class="line"><a name="l04186"></a><span class="lineno"> 4186</span> </div>
-<div class="line"><a name="l04187"></a><span class="lineno"> 4187</span> </div>
-<div class="line"><a name="l04188"></a><span class="lineno"> 4188</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04204"></a><span class="lineno"> 4204</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04205"></a><span class="lineno"> 4205</span> </div>
-<div class="line"><a name="l04206"></a><span class="lineno"> 4206</span> cpl_error_code</div>
-<div class="line"><a name="l04207"></a><span class="lineno"> 4207</span> uves_load_master_formatcheck(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l04208"></a><span class="lineno"> 4208</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> **mform_filename, </div>
-<div class="line"><a name="l04209"></a><span class="lineno"> 4209</span>         cpl_image **mform, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **mform_header, <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l04210"></a><span class="lineno"> 4210</span> {</div>
-<div class="line"><a name="l04211"></a><span class="lineno"> 4211</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[1];</div>
-<div class="line"><a name="l04212"></a><span class="lineno"> 4212</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l04213"></a><span class="lineno"> 4213</span>     <span class="keywordtype">int</span> extension;</div>
-<div class="line"><a name="l04214"></a><span class="lineno"> 4214</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l04215"></a><span class="lineno"> 4215</span>     </div>
-<div class="line"><a name="l04216"></a><span class="lineno"> 4216</span>     *mform        = NULL;</div>
-<div class="line"><a name="l04217"></a><span class="lineno"> 4217</span>     *mform_header = NULL;</div>
-<div class="line"><a name="l04218"></a><span class="lineno"> 4218</span> </div>
-<div class="line"><a name="l04219"></a><span class="lineno"> 4219</span>     tags[0]   = UVES_MASTER_ARC_FORM          (chip);</div>
-<div class="line"><a name="l04220"></a><span class="lineno"> 4220</span>     extension = UVES_MASTER_ARC_FORM_EXTENSION(chip);</div>
-<div class="line"><a name="l04221"></a><span class="lineno"> 4221</span>     </div>
-<div class="line"><a name="l04222"></a><span class="lineno"> 4222</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *mform_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL), </div>
-<div class="line"><a name="l04223"></a><span class="lineno"> 4223</span>        <span class="stringliteral">"Could not find '%s' in frame set"</span>, tags[0]);</div>
-<div class="line"><a name="l04224"></a><span class="lineno"> 4224</span>     </div>
-<div class="line"><a name="l04225"></a><span class="lineno"> 4225</span>     <span class="comment">/* Load the mbias image */</span></div>
-<div class="line"><a name="l04226"></a><span class="lineno"> 4226</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *mform = cpl_image_load(*mform_filename,</div>
-<div class="line"><a name="l04227"></a><span class="lineno"> 4227</span>                    CPL_TYPE_DOUBLE,           <span class="comment">/* Convert to this type */</span></div>
-<div class="line"><a name="l04228"></a><span class="lineno"> 4228</span>                    0,                         <span class="comment">/* plane number */</span></div>
-<div class="line"><a name="l04229"></a><span class="lineno"> 4229</span>                    extension                  <span class="comment">/* Extension number */</span></div>
-<div class="line"><a name="l04230"></a><span class="lineno"> 4230</span>            ),</div>
-<div class="line"><a name="l04231"></a><span class="lineno"> 4231</span>        <span class="stringliteral">"Could not load master formatcheck from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04232"></a><span class="lineno"> 4232</span>        extension, *mform_filename);</div>
-<div class="line"><a name="l04233"></a><span class="lineno"> 4233</span> </div>
-<div class="line"><a name="l04234"></a><span class="lineno"> 4234</span>     <span class="comment">/* Load the header */</span></div>
-<div class="line"><a name="l04235"></a><span class="lineno"> 4235</span>     </div>
-<div class="line"><a name="l04236"></a><span class="lineno"> 4236</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *mform_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*mform_filename,</div>
-<div class="line"><a name="l04237"></a><span class="lineno"> 4237</span>                          extension),</div>
-<div class="line"><a name="l04238"></a><span class="lineno"> 4238</span>        <span class="stringliteral">"Could not load header from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04239"></a><span class="lineno"> 4239</span>        extension, *mform_filename);</div>
-<div class="line"><a name="l04240"></a><span class="lineno"> 4240</span> </div>
-<div class="line"><a name="l04241"></a><span class="lineno"> 4241</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_warn_if_chip_names_dont_match(*mform_header, chip_name, chip) );</div>
-<div class="line"><a name="l04242"></a><span class="lineno"> 4242</span> </div>
-<div class="line"><a name="l04243"></a><span class="lineno"> 4243</span>   cleanup:</div>
-<div class="line"><a name="l04244"></a><span class="lineno"> 4244</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l04245"></a><span class="lineno"> 4245</span>     {</div>
-<div class="line"><a name="l04246"></a><span class="lineno"> 4246</span>         *mform_filename = NULL;</div>
-<div class="line"><a name="l04247"></a><span class="lineno"> 4247</span>         uves_free_image(mform);</div>
-<div class="line"><a name="l04248"></a><span class="lineno"> 4248</span>         uves_free_propertylist(mform_header);</div>
-<div class="line"><a name="l04249"></a><span class="lineno"> 4249</span>     }</div>
-<div class="line"><a name="l04250"></a><span class="lineno"> 4250</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l04251"></a><span class="lineno"> 4251</span> }</div>
-<div class="line"><a name="l04252"></a><span class="lineno"> 4252</span> </div>
-<div class="line"><a name="l04253"></a><span class="lineno"> 4253</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04269"></a><span class="lineno"> 4269</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04270"></a><span class="lineno"> 4270</span> </div>
-<div class="line"><a name="l04271"></a><span class="lineno"> 4271</span> cpl_error_code</div>
-<div class="line"><a name="l04272"></a><span class="lineno"> 4272</span> uves_load_mdark(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l04273"></a><span class="lineno"> 4273</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> **mdark_filename, cpl_image **mdark,</div>
-<div class="line"><a name="l04274"></a><span class="lineno"> 4274</span>         <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **mdark_header, <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l04275"></a><span class="lineno"> 4275</span> {</div>
-<div class="line"><a name="l04276"></a><span class="lineno"> 4276</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[2];</div>
-<div class="line"><a name="l04277"></a><span class="lineno"> 4277</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l04278"></a><span class="lineno"> 4278</span>     <span class="keywordtype">int</span> extension;</div>
-<div class="line"><a name="l04279"></a><span class="lineno"> 4279</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l04280"></a><span class="lineno"> 4280</span>     </div>
-<div class="line"><a name="l04281"></a><span class="lineno"> 4281</span>     *mdark        = NULL;</div>
-<div class="line"><a name="l04282"></a><span class="lineno"> 4282</span>     *mdark_header = NULL;</div>
-<div class="line"><a name="l04283"></a><span class="lineno"> 4283</span> </div>
-<div class="line"><a name="l04284"></a><span class="lineno"> 4284</span>     tags[0]   = UVES_MASTER_DARK          (chip);</div>
-<div class="line"><a name="l04285"></a><span class="lineno"> 4285</span>     tags[1]   = UVES_MASTER_PDARK         (chip);</div>
-<div class="line"><a name="l04286"></a><span class="lineno"> 4286</span>     extension = UVES_MASTER_DARK_EXTENSION(chip);</div>
-<div class="line"><a name="l04287"></a><span class="lineno"> 4287</span>     </div>
-<div class="line"><a name="l04288"></a><span class="lineno"> 4288</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *mdark_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL), </div>
-<div class="line"><a name="l04289"></a><span class="lineno"> 4289</span>        <span class="stringliteral">"Could not find %s or %s in frame set"</span>, tags[0], tags[1]);</div>
-<div class="line"><a name="l04290"></a><span class="lineno"> 4290</span>     </div>
-<div class="line"><a name="l04291"></a><span class="lineno"> 4291</span>     <span class="comment">/* Load the mdark image */</span></div>
-<div class="line"><a name="l04292"></a><span class="lineno"> 4292</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *mdark = cpl_image_load(*mdark_filename,</div>
-<div class="line"><a name="l04293"></a><span class="lineno"> 4293</span>                    CPL_TYPE_DOUBLE,           <span class="comment">/* Convert to this type */</span></div>
-<div class="line"><a name="l04294"></a><span class="lineno"> 4294</span>                    0,                         <span class="comment">/* plane number */</span></div>
-<div class="line"><a name="l04295"></a><span class="lineno"> 4295</span>                    extension                  <span class="comment">/* Extension number */</span></div>
-<div class="line"><a name="l04296"></a><span class="lineno"> 4296</span>            ),</div>
-<div class="line"><a name="l04297"></a><span class="lineno"> 4297</span>        <span class="stringliteral">"Could not load master dark from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04298"></a><span class="lineno"> 4298</span>        extension, *mdark_filename);</div>
-<div class="line"><a name="l04299"></a><span class="lineno"> 4299</span> </div>
-<div class="line"><a name="l04300"></a><span class="lineno"> 4300</span>     <span class="comment">/* Load the header */</span></div>
-<div class="line"><a name="l04301"></a><span class="lineno"> 4301</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *mdark_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*mdark_filename,</div>
-<div class="line"><a name="l04302"></a><span class="lineno"> 4302</span>                          extension),</div>
-<div class="line"><a name="l04303"></a><span class="lineno"> 4303</span>        <span class="stringliteral">"Could not load header from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04304"></a><span class="lineno"> 4304</span>        extension, *mdark_filename);</div>
-<div class="line"><a name="l04305"></a><span class="lineno"> 4305</span> </div>
-<div class="line"><a name="l04306"></a><span class="lineno"> 4306</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_warn_if_chip_names_dont_match(*mdark_header, chip_name, chip) );</div>
-<div class="line"><a name="l04307"></a><span class="lineno"> 4307</span> </div>
-<div class="line"><a name="l04308"></a><span class="lineno"> 4308</span>   cleanup:</div>
-<div class="line"><a name="l04309"></a><span class="lineno"> 4309</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l04310"></a><span class="lineno"> 4310</span>     {</div>
-<div class="line"><a name="l04311"></a><span class="lineno"> 4311</span>         *mdark_filename = NULL;</div>
-<div class="line"><a name="l04312"></a><span class="lineno"> 4312</span>         uves_free_image(mdark);</div>
-<div class="line"><a name="l04313"></a><span class="lineno"> 4313</span>         uves_free_propertylist(mdark_header);</div>
-<div class="line"><a name="l04314"></a><span class="lineno"> 4314</span>     }</div>
-<div class="line"><a name="l04315"></a><span class="lineno"> 4315</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l04316"></a><span class="lineno"> 4316</span> }</div>
-<div class="line"><a name="l04317"></a><span class="lineno"> 4317</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04333"></a><span class="lineno"> 4333</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04334"></a><span class="lineno"> 4334</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l04335"></a><span class="lineno"> 4335</span> uves_load_ref_flat(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l04336"></a><span class="lineno"> 4336</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> **filename, cpl_image **rflat,</div>
-<div class="line"><a name="l04337"></a><span class="lineno"> 4337</span>            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **rflat_header, <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l04338"></a><span class="lineno"> 4338</span> {</div>
-<div class="line"><a name="l04339"></a><span class="lineno"> 4339</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[1];</div>
-<div class="line"><a name="l04340"></a><span class="lineno"> 4340</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l04341"></a><span class="lineno"> 4341</span>     <span class="keywordtype">int</span> extension;</div>
-<div class="line"><a name="l04342"></a><span class="lineno"> 4342</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l04343"></a><span class="lineno"> 4343</span>     </div>
-<div class="line"><a name="l04344"></a><span class="lineno"> 4344</span>     *rflat        = NULL;</div>
-<div class="line"><a name="l04345"></a><span class="lineno"> 4345</span>     *rflat_header = NULL;</div>
-<div class="line"><a name="l04346"></a><span class="lineno"> 4346</span> </div>
-<div class="line"><a name="l04347"></a><span class="lineno"> 4347</span>     tags[0]   = UVES_REF_TFLAT(chip);</div>
-<div class="line"><a name="l04348"></a><span class="lineno"> 4348</span>     extension = UVES_MASTER_FLAT_EXTENSION(chip);</div>
-<div class="line"><a name="l04349"></a><span class="lineno"> 4349</span> </div>
-<div class="line"><a name="l04350"></a><span class="lineno"> 4350</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL), </div>
-<div class="line"><a name="l04351"></a><span class="lineno"> 4351</span>        <span class="stringliteral">"Could not find %s in frame set"</span>, tags[0]);</div>
-<div class="line"><a name="l04352"></a><span class="lineno"> 4352</span>     </div>
-<div class="line"><a name="l04353"></a><span class="lineno"> 4353</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *rflat = cpl_image_load(*filename,</div>
-<div class="line"><a name="l04354"></a><span class="lineno"> 4354</span>                    CPL_TYPE_DOUBLE,           <span class="comment">/* Convert to this type */</span></div>
-<div class="line"><a name="l04355"></a><span class="lineno"> 4355</span>                    0,                         <span class="comment">/* plane number */</span></div>
-<div class="line"><a name="l04356"></a><span class="lineno"> 4356</span>                    extension                  <span class="comment">/* Extension number */</span></div>
-<div class="line"><a name="l04357"></a><span class="lineno"> 4357</span>            ),</div>
-<div class="line"><a name="l04358"></a><span class="lineno"> 4358</span>        <span class="stringliteral">"Could not load reference dark from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04359"></a><span class="lineno"> 4359</span>        extension, *filename);</div>
-<div class="line"><a name="l04360"></a><span class="lineno"> 4360</span> </div>
-<div class="line"><a name="l04361"></a><span class="lineno"> 4361</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *rflat_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*filename,</div>
-<div class="line"><a name="l04362"></a><span class="lineno"> 4362</span>                          extension),</div>
-<div class="line"><a name="l04363"></a><span class="lineno"> 4363</span>        <span class="stringliteral">"Could not load header from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04364"></a><span class="lineno"> 4364</span>        extension, *filename);</div>
-<div class="line"><a name="l04365"></a><span class="lineno"> 4365</span> </div>
-<div class="line"><a name="l04366"></a><span class="lineno"> 4366</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_warn_if_chip_names_dont_match(*rflat_header, chip_name, chip) );</div>
-<div class="line"><a name="l04367"></a><span class="lineno"> 4367</span> </div>
-<div class="line"><a name="l04368"></a><span class="lineno"> 4368</span>   cleanup:</div>
-<div class="line"><a name="l04369"></a><span class="lineno"> 4369</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l04370"></a><span class="lineno"> 4370</span>     {</div>
-<div class="line"><a name="l04371"></a><span class="lineno"> 4371</span>         *filename = NULL;</div>
-<div class="line"><a name="l04372"></a><span class="lineno"> 4372</span>         uves_free_image(rflat);</div>
-<div class="line"><a name="l04373"></a><span class="lineno"> 4373</span>         uves_free_propertylist(rflat_header);</div>
-<div class="line"><a name="l04374"></a><span class="lineno"> 4374</span>     }</div>
-<div class="line"><a name="l04375"></a><span class="lineno"> 4375</span> </div>
-<div class="line"><a name="l04376"></a><span class="lineno"> 4376</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l04377"></a><span class="lineno"> 4377</span> }</div>
-<div class="line"><a name="l04378"></a><span class="lineno"> 4378</span> </div>
-<div class="line"><a name="l04379"></a><span class="lineno"> 4379</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04395"></a><span class="lineno"> 4395</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04396"></a><span class="lineno"> 4396</span> </div>
-<div class="line"><a name="l04397"></a><span class="lineno"> 4397</span> cpl_error_code</div>
-<div class="line"><a name="l04398"></a><span class="lineno"> 4398</span> uves_load_mflat_const(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l04399"></a><span class="lineno"> 4399</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> **mflat_filename, </div>
-<div class="line"><a name="l04400"></a><span class="lineno"> 4400</span>               cpl_image **mflat, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **mflat_header, </div>
-<div class="line"><a name="l04401"></a><span class="lineno"> 4401</span>               <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l04402"></a><span class="lineno"> 4402</span>               <span class="keyword">const</span> cpl_frame **mflat_frame)</div>
-<div class="line"><a name="l04403"></a><span class="lineno"> 4403</span> {</div>
-<div class="line"><a name="l04404"></a><span class="lineno"> 4404</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[6];</div>
-<div class="line"><a name="l04405"></a><span class="lineno"> 4405</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l04406"></a><span class="lineno"> 4406</span>     <span class="keywordtype">int</span> extension;</div>
-<div class="line"><a name="l04407"></a><span class="lineno"> 4407</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l04408"></a><span class="lineno"> 4408</span>     </div>
-<div class="line"><a name="l04409"></a><span class="lineno"> 4409</span>     *mflat        = NULL;</div>
-<div class="line"><a name="l04410"></a><span class="lineno"> 4410</span>     *mflat_header = NULL;</div>
-<div class="line"><a name="l04411"></a><span class="lineno"> 4411</span> </div>
-<div class="line"><a name="l04412"></a><span class="lineno"> 4412</span>     tags[0]   = UVES_REF_TFLAT            (chip);   <span class="comment">/* Use REF TFLAT, rather than MASTER_TFLAT */</span></div>
-<div class="line"><a name="l04413"></a><span class="lineno"> 4413</span>     tags[1]   = UVES_MASTER_FLAT          (chip);</div>
-<div class="line"><a name="l04414"></a><span class="lineno"> 4414</span>     tags[2]   = UVES_MASTER_DFLAT         (chip);</div>
-<div class="line"><a name="l04415"></a><span class="lineno"> 4415</span>     tags[3]   = UVES_MASTER_IFLAT         (chip);</div>
-<div class="line"><a name="l04416"></a><span class="lineno"> 4416</span>     tags[4]   = UVES_MASTER_TFLAT         (chip);</div>
-<div class="line"><a name="l04417"></a><span class="lineno"> 4417</span>     tags[5]   = UVES_MASTER_SCREEN_FLAT   (chip);</div>
-<div class="line"><a name="l04418"></a><span class="lineno"> 4418</span>     extension = UVES_MASTER_FLAT_EXTENSION(chip);</div>
-<div class="line"><a name="l04419"></a><span class="lineno"> 4419</span>     </div>
-<div class="line"><a name="l04420"></a><span class="lineno"> 4420</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *mflat_filename = uves_find_frame(frames, tags, number_of_tags, &indx,</div>
-<div class="line"><a name="l04421"></a><span class="lineno"> 4421</span>                          mflat_frame), </div>
-<div class="line"><a name="l04422"></a><span class="lineno"> 4422</span>        <span class="stringliteral">"Could not find '%s', '%s', '%s', '%s' or '%s' in frame set"</span>, </div>
-<div class="line"><a name="l04423"></a><span class="lineno"> 4423</span>        tags[0], tags[1], tags[2], tags[3], tags[4]);</div>
-<div class="line"><a name="l04424"></a><span class="lineno"> 4424</span>     </div>
-<div class="line"><a name="l04425"></a><span class="lineno"> 4425</span>     <span class="comment">/* Load the mflat image */</span></div>
-<div class="line"><a name="l04426"></a><span class="lineno"> 4426</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *mflat = cpl_image_load(*mflat_filename,</div>
-<div class="line"><a name="l04427"></a><span class="lineno"> 4427</span>                    CPL_TYPE_DOUBLE,           <span class="comment">/* Convert to this type */</span></div>
-<div class="line"><a name="l04428"></a><span class="lineno"> 4428</span>                    0,                         <span class="comment">/* plane number */</span></div>
-<div class="line"><a name="l04429"></a><span class="lineno"> 4429</span>                    extension                  <span class="comment">/* Extension number */</span></div>
-<div class="line"><a name="l04430"></a><span class="lineno"> 4430</span>            ),</div>
-<div class="line"><a name="l04431"></a><span class="lineno"> 4431</span>        <span class="stringliteral">"Could not load master flat from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04432"></a><span class="lineno"> 4432</span>        extension, *mflat_filename);</div>
-<div class="line"><a name="l04433"></a><span class="lineno"> 4433</span> </div>
-<div class="line"><a name="l04434"></a><span class="lineno"> 4434</span>     <span class="comment">/* Load the header */</span></div>
-<div class="line"><a name="l04435"></a><span class="lineno"> 4435</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *mflat_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*mflat_filename,</div>
-<div class="line"><a name="l04436"></a><span class="lineno"> 4436</span>                          extension),</div>
-<div class="line"><a name="l04437"></a><span class="lineno"> 4437</span>        <span class="stringliteral">"Could not load header from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04438"></a><span class="lineno"> 4438</span>        extension, *mflat_filename);</div>
-<div class="line"><a name="l04439"></a><span class="lineno"> 4439</span> </div>
-<div class="line"><a name="l04440"></a><span class="lineno"> 4440</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_warn_if_chip_names_dont_match(*mflat_header, chip_name, chip) );</div>
-<div class="line"><a name="l04441"></a><span class="lineno"> 4441</span> </div>
-<div class="line"><a name="l04442"></a><span class="lineno"> 4442</span>   cleanup:</div>
-<div class="line"><a name="l04443"></a><span class="lineno"> 4443</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l04444"></a><span class="lineno"> 4444</span>     {</div>
-<div class="line"><a name="l04445"></a><span class="lineno"> 4445</span>         *mflat_filename = NULL;</div>
-<div class="line"><a name="l04446"></a><span class="lineno"> 4446</span>         uves_free_image(mflat);</div>
-<div class="line"><a name="l04447"></a><span class="lineno"> 4447</span>         uves_free_propertylist(mflat_header);</div>
-<div class="line"><a name="l04448"></a><span class="lineno"> 4448</span>     }</div>
-<div class="line"><a name="l04449"></a><span class="lineno"> 4449</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l04450"></a><span class="lineno"> 4450</span> }</div>
-<div class="line"><a name="l04451"></a><span class="lineno"> 4451</span> </div>
-<div class="line"><a name="l04452"></a><span class="lineno"> 4452</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04467"></a><span class="lineno"> 4467</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04468"></a><span class="lineno"> 4468</span> cpl_error_code</div>
-<div class="line"><a name="l04469"></a><span class="lineno"> 4469</span> uves_load_mflat(cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l04470"></a><span class="lineno"> 4470</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> **mflat_filename, </div>
-<div class="line"><a name="l04471"></a><span class="lineno"> 4471</span>         cpl_image **mflat, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **mflat_header, <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l04472"></a><span class="lineno"> 4472</span>         cpl_frame **mflat_frame)</div>
-<div class="line"><a name="l04473"></a><span class="lineno"> 4473</span> {</div>
-<div class="line"><a name="l04474"></a><span class="lineno"> 4474</span>     <span class="keywordflow">return</span> uves_load_mflat_const((<span class="keyword">const</span> cpl_frameset *)frames,</div>
-<div class="line"><a name="l04475"></a><span class="lineno"> 4475</span>                  chip_name,</div>
-<div class="line"><a name="l04476"></a><span class="lineno"> 4476</span>                  mflat_filename,</div>
-<div class="line"><a name="l04477"></a><span class="lineno"> 4477</span>                  mflat, mflat_header, chip,</div>
-<div class="line"><a name="l04478"></a><span class="lineno"> 4478</span>                  (<span class="keyword">const</span> cpl_frame **) mflat_frame);</div>
-<div class="line"><a name="l04479"></a><span class="lineno"> 4479</span> }</div>
-<div class="line"><a name="l04480"></a><span class="lineno"> 4480</span> </div>
-<div class="line"><a name="l04481"></a><span class="lineno"> 4481</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04513"></a><span class="lineno"> 4513</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04514"></a><span class="lineno"> 4514</span> cpl_error_code</div>
-<div class="line"><a name="l04515"></a><span class="lineno"> 4515</span> uves_load_ordertable(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l04516"></a><span class="lineno"> 4516</span>                      <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l04517"></a><span class="lineno"> 4517</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l04518"></a><span class="lineno"> 4518</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> **ordertable_filename, </div>
-<div class="line"><a name="l04519"></a><span class="lineno"> 4519</span>                      cpl_table **ordertable, </div>
-<div class="line"><a name="l04520"></a><span class="lineno"> 4520</span>                      <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **ordertable_header, </div>
-<div class="line"><a name="l04521"></a><span class="lineno"> 4521</span>                      <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **ordertable_xheader, </div>
-<div class="line"><a name="l04522"></a><span class="lineno"> 4522</span>                      <a class="code" href="struct__polynomial.html">polynomial</a> **order_locations, </div>
-<div class="line"><a name="l04523"></a><span class="lineno"> 4523</span>                      cpl_table **traces, </div>
-<div class="line"><a name="l04524"></a><span class="lineno"> 4524</span>                      <span class="keywordtype">int</span> *tab_in_out_oshift,</div>
-<div class="line"><a name="l04525"></a><span class="lineno"> 4525</span>                      <span class="keywordtype">double</span> *tab_in_out_yshift,</div>
-<div class="line"><a name="l04526"></a><span class="lineno"> 4526</span>                      <span class="keywordtype">int</span> ** fib_msk,</div>
-<div class="line"><a name="l04527"></a><span class="lineno"> 4527</span>                      <span class="keywordtype">double</span> ** fib_pos,</div>
-<div class="line"><a name="l04528"></a><span class="lineno"> 4528</span>                      <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l04529"></a><span class="lineno"> 4529</span>                      <span class="keywordtype">bool</span> guess_table)</div>
-<div class="line"><a name="l04530"></a><span class="lineno"> 4530</span> {</div>
-<div class="line"><a name="l04531"></a><span class="lineno"> 4531</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *midas_header = NULL;      <span class="comment">/* Table header if midas format */</span></div>
-<div class="line"><a name="l04532"></a><span class="lineno"> 4532</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *prime_header = NULL;      <span class="comment">/* Prime header if flames  */</span></div>
-<div class="line"><a name="l04533"></a><span class="lineno"> 4533</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[1];</div>
-<div class="line"><a name="l04534"></a><span class="lineno"> 4534</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l04535"></a><span class="lineno"> 4535</span>     <span class="keywordtype">bool</span> format_is_midas;</div>
-<div class="line"><a name="l04536"></a><span class="lineno"> 4536</span>     <span class="keywordtype">int</span> *tioo = NULL;</div>
-<div class="line"><a name="l04537"></a><span class="lineno"> 4537</span>     <span class="keywordtype">double</span> *tioy = NULL;</div>
-<div class="line"><a name="l04538"></a><span class="lineno"> 4538</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l04539"></a><span class="lineno"> 4539</span> </div>
-<div class="line"><a name="l04540"></a><span class="lineno"> 4540</span>     <span class="keywordtype">double</span> *fibre_pos = NULL;</div>
-<div class="line"><a name="l04541"></a><span class="lineno"> 4541</span>     <span class="keywordtype">int</span> *fibre_mask = NULL;</div>
-<div class="line"><a name="l04542"></a><span class="lineno"> 4542</span> </div>
-<div class="line"><a name="l04543"></a><span class="lineno"> 4543</span>     <span class="keywordflow">if</span> (guess_table)</div>
-<div class="line"><a name="l04544"></a><span class="lineno"> 4544</span>     {</div>
-<div class="line"><a name="l04545"></a><span class="lineno"> 4545</span>         tags[0] = UVES_GUESS_ORDER_TABLE(flames, chip);</div>
-<div class="line"><a name="l04546"></a><span class="lineno"> 4546</span>     }</div>
-<div class="line"><a name="l04547"></a><span class="lineno"> 4547</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04548"></a><span class="lineno"> 4548</span>     {</div>
-<div class="line"><a name="l04549"></a><span class="lineno"> 4549</span>         tags[0] = UVES_ORDER_TABLE(flames, chip);</div>
-<div class="line"><a name="l04550"></a><span class="lineno"> 4550</span>     }</div>
-<div class="line"><a name="l04551"></a><span class="lineno"> 4551</span> </div>
-<div class="line"><a name="l04552"></a><span class="lineno"> 4552</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *ordertable_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL), </div>
-<div class="line"><a name="l04553"></a><span class="lineno"> 4553</span>        <span class="stringliteral">"No order table (%s) found in SOF"</span>, tags[0]);</div>
-<div class="line"><a name="l04554"></a><span class="lineno"> 4554</span>     </div>
-<div class="line"><a name="l04555"></a><span class="lineno"> 4555</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *ordertable = cpl_table_load(*ordertable_filename,</div>
-<div class="line"><a name="l04556"></a><span class="lineno"> 4556</span>                     UVES_ORDER_TABLE_EXTENSION,</div>
-<div class="line"><a name="l04557"></a><span class="lineno"> 4557</span>                     1),                <span class="comment">/* Mark identified </span></div>
-<div class="line"><a name="l04558"></a><span class="lineno"> 4558</span> <span class="comment">                                  invalid values? (1=yes) */</span></div>
-<div class="line"><a name="l04559"></a><span class="lineno"> 4559</span>        <span class="stringliteral">"Error loading order table from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04560"></a><span class="lineno"> 4560</span>        UVES_ORDER_TABLE_EXTENSION, *ordertable_filename);</div>
-<div class="line"><a name="l04561"></a><span class="lineno"> 4561</span>     </div>
-<div class="line"><a name="l04562"></a><span class="lineno"> 4562</span>     assure(ordertable_header != NULL,CPL_ERROR_NULL_INPUT,</div>
-<div class="line"><a name="l04563"></a><span class="lineno"> 4563</span>            <span class="stringliteral">"NULL primary header uves_propertylist variable header"</span>);</div>
-<div class="line"><a name="l04564"></a><span class="lineno"> 4564</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *ordertable_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*ordertable_filename, 0),</div>
-<div class="line"><a name="l04565"></a><span class="lineno"> 4565</span>        <span class="stringliteral">"Could not load header from extension 0 of '%s'"</span>, *ordertable_filename);</div>
-<div class="line"><a name="l04566"></a><span class="lineno"> 4566</span> </div>
-<div class="line"><a name="l04567"></a><span class="lineno"> 4567</span>     <span class="keywordflow">if</span>(ordertable_xheader != NULL) {</div>
-<div class="line"><a name="l04568"></a><span class="lineno"> 4568</span> </div>
-<div class="line"><a name="l04569"></a><span class="lineno"> 4569</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *ordertable_xheader = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*ordertable_filename, 1),</div>
-<div class="line"><a name="l04570"></a><span class="lineno"> 4570</span>        <span class="stringliteral">"Could not load header from extension 1 of '%s'"</span>, *ordertable_filename);</div>
-<div class="line"><a name="l04571"></a><span class="lineno"> 4571</span> </div>
-<div class="line"><a name="l04572"></a><span class="lineno"> 4572</span> </div>
-<div class="line"><a name="l04573"></a><span class="lineno"> 4573</span> </div>
-<div class="line"><a name="l04574"></a><span class="lineno"> 4574</span>     }</div>
-<div class="line"><a name="l04575"></a><span class="lineno"> 4575</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_warn_if_chip_names_dont_match(*ordertable_header, chip_name, chip) );</div>
-<div class="line"><a name="l04576"></a><span class="lineno"> 4576</span>     </div>
-<div class="line"><a name="l04577"></a><span class="lineno"> 4577</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_check_if_format_is_midas(*ordertable_header,&format_is_midas),</div>
-<div class="line"><a name="l04578"></a><span class="lineno"> 4578</span>       <span class="stringliteral">"Error getting FITS format"</span>);</div>
-<div class="line"><a name="l04579"></a><span class="lineno"> 4579</span> </div>
-<div class="line"><a name="l04580"></a><span class="lineno"> 4580</span> </div>
-<div class="line"><a name="l04581"></a><span class="lineno"> 4581</span>     <span class="keywordflow">if</span> (!format_is_midas && !flames)</div>
-<div class="line"><a name="l04582"></a><span class="lineno"> 4582</span>     {</div>
-<div class="line"><a name="l04583"></a><span class="lineno"> 4583</span>             <span class="comment">/* The format check and order position recipes create order tables</span></div>
-<div class="line"><a name="l04584"></a><span class="lineno"> 4584</span> <span class="comment">               with different column names. Rename if necessary. </span></div>
-<div class="line"><a name="l04585"></a><span class="lineno"> 4585</span> <span class="comment"></span></div>
-<div class="line"><a name="l04586"></a><span class="lineno"> 4586</span> <span class="comment">               This is a workaround for the problem that different recipes</span></div>
-<div class="line"><a name="l04587"></a><span class="lineno"> 4587</span> <span class="comment">               create the same products (order tables and line tables).</span></div>
-<div class="line"><a name="l04588"></a><span class="lineno"> 4588</span> <span class="comment">               The true solution would be to remove the format check recipe from</span></div>
-<div class="line"><a name="l04589"></a><span class="lineno"> 4589</span> <span class="comment">               the recution cascade, and use the theoretical physical model to</span></div>
-<div class="line"><a name="l04590"></a><span class="lineno"> 4590</span> <span class="comment">               bootstrap the order definition and wavelength calibration.</span></div>
-<div class="line"><a name="l04591"></a><span class="lineno"> 4591</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l04592"></a><span class="lineno"> 4592</span>             <span class="keywordflow">if</span> (cpl_table_has_column(*ordertable, <span class="stringliteral">"ORDER"</span>))</div>
-<div class="line"><a name="l04593"></a><span class="lineno"> 4593</span>                 {</div>
-<div class="line"><a name="l04594"></a><span class="lineno"> 4594</span>                     cpl_table_name_column(*ordertable, <span class="stringliteral">"ORDER"</span>, <span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l04595"></a><span class="lineno"> 4595</span>                 }</div>
-<div class="line"><a name="l04596"></a><span class="lineno"> 4596</span>             <span class="keywordflow">if</span> (cpl_table_has_column(*ordertable, <span class="stringliteral">"YFIT"</span>))</div>
-<div class="line"><a name="l04597"></a><span class="lineno"> 4597</span>                 {</div>
-<div class="line"><a name="l04598"></a><span class="lineno"> 4598</span>                     cpl_table_name_column(*ordertable, <span class="stringliteral">"YFIT"</span>, <span class="stringliteral">"Yfit"</span>);</div>
-<div class="line"><a name="l04599"></a><span class="lineno"> 4599</span>                 }</div>
-<div class="line"><a name="l04600"></a><span class="lineno"> 4600</span> </div>
-<div class="line"><a name="l04601"></a><span class="lineno"> 4601</span>         <span class="keywordflow">if</span> (order_locations != NULL)</div>
-<div class="line"><a name="l04602"></a><span class="lineno"> 4602</span>         {</div>
-<div class="line"><a name="l04603"></a><span class="lineno"> 4603</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *order_locations = </div>
-<div class="line"><a name="l04604"></a><span class="lineno"> 4604</span>                load_polynomial(*ordertable_filename, UVES_ORDER_TABLE_EXTENSION_POLY),</div>
-<div class="line"><a name="l04605"></a><span class="lineno"> 4605</span>                <span class="stringliteral">"Could not read polynomial from extension %d of file '%s'"</span>,</div>
-<div class="line"><a name="l04606"></a><span class="lineno"> 4606</span>                UVES_ORDER_TABLE_EXTENSION_POLY, *ordertable_filename);</div>
-<div class="line"><a name="l04607"></a><span class="lineno"> 4607</span>         }</div>
-<div class="line"><a name="l04608"></a><span class="lineno"> 4608</span> </div>
-<div class="line"><a name="l04609"></a><span class="lineno"> 4609</span>         <span class="keywordflow">if</span> (traces != NULL)</div>
-<div class="line"><a name="l04610"></a><span class="lineno"> 4610</span>         {</div>
-<div class="line"><a name="l04611"></a><span class="lineno"> 4611</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *traces = cpl_table_load(*ordertable_filename,</div>
-<div class="line"><a name="l04612"></a><span class="lineno"> 4612</span>                             UVES_ORDER_TABLE_EXTENSION_FIBRE,</div>
-<div class="line"><a name="l04613"></a><span class="lineno"> 4613</span>                             1),    <span class="comment">/* Mark identified </span></div>
-<div class="line"><a name="l04614"></a><span class="lineno"> 4614</span> <span class="comment">                                  invalid values? (1=yes) */</span></div>
-<div class="line"><a name="l04615"></a><span class="lineno"> 4615</span>                <span class="stringliteral">"Error loading fibre table from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l04616"></a><span class="lineno"> 4616</span>                UVES_ORDER_TABLE_EXTENSION_FIBRE, *ordertable_filename);</div>
-<div class="line"><a name="l04617"></a><span class="lineno"> 4617</span>         }</div>
-<div class="line"><a name="l04618"></a><span class="lineno"> 4618</span>     }</div>
-<div class="line"><a name="l04619"></a><span class="lineno"> 4619</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04620"></a><span class="lineno"> 4620</span>         <span class="comment">/* MIDAS format, or FLAMES */</span></div>
-<div class="line"><a name="l04621"></a><span class="lineno"> 4621</span>     {</div>
-<div class="line"><a name="l04622"></a><span class="lineno"> 4622</span>         <span class="comment">/* Rename */</span></div>
-<div class="line"><a name="l04623"></a><span class="lineno"> 4623</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_cast_column (*ordertable, <span class="stringliteral">"ORDER"</span>, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT),</div>
-<div class="line"><a name="l04624"></a><span class="lineno"> 4624</span>                 cpl_table_erase_column(*ordertable, <span class="stringliteral">"ORDER"</span>)),</div>
-<div class="line"><a name="l04625"></a><span class="lineno"> 4625</span>               <span class="stringliteral">"Error casting and renaming column 'ORDER'"</span>);</div>
-<div class="line"><a name="l04626"></a><span class="lineno"> 4626</span>         </div>
-<div class="line"><a name="l04627"></a><span class="lineno"> 4627</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_name_column(*ordertable, <span class="stringliteral">"YFIT"</span>, <span class="stringliteral">"Yfit"</span>),</div>
-<div class="line"><a name="l04628"></a><span class="lineno"> 4628</span>                <span class="stringliteral">"Error renaming column 'YFIT'"</span>);</div>
-<div class="line"><a name="l04629"></a><span class="lineno"> 4629</span>                 </div>
-<div class="line"><a name="l04630"></a><span class="lineno"> 4630</span>         <span class="comment">//check( midas_header = uves_propertylist_load(*ordertable_filename, 1),</span></div>
-<div class="line"><a name="l04631"></a><span class="lineno"> 4631</span>     <span class="comment">//      "Could not load header from extension 1 of '%s'", </span></div>
-<div class="line"><a name="l04632"></a><span class="lineno"> 4632</span>     <span class="comment">//     *ordertable_filename);</span></div>
-<div class="line"><a name="l04633"></a><span class="lineno"> 4633</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(midas_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*ordertable_filename, 1),</div>
-<div class="line"><a name="l04634"></a><span class="lineno"> 4634</span>          <span class="stringliteral">"Could not load header from extension 1 of '%s'"</span>,</div>
-<div class="line"><a name="l04635"></a><span class="lineno"> 4635</span>          *ordertable_filename);</div>
-<div class="line"><a name="l04636"></a><span class="lineno"> 4636</span> </div>
-<div class="line"><a name="l04637"></a><span class="lineno"> 4637</span>     <span class="keywordflow">if</span>(flames) {</div>
-<div class="line"><a name="l04638"></a><span class="lineno"> 4638</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(prime_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*ordertable_filename, 0),</div>
-<div class="line"><a name="l04639"></a><span class="lineno"> 4639</span>          <span class="stringliteral">"Could not load header from extension 0 of '%s'"</span>,</div>
-<div class="line"><a name="l04640"></a><span class="lineno"> 4640</span>          *ordertable_filename);</div>
-<div class="line"><a name="l04641"></a><span class="lineno"> 4641</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(midas_header,prime_header));</div>
-<div class="line"><a name="l04642"></a><span class="lineno"> 4642</span>         }</div>
-<div class="line"><a name="l04643"></a><span class="lineno"> 4643</span> </div>
-<div class="line"><a name="l04644"></a><span class="lineno"> 4644</span>         <span class="comment">/* Load polynomial named 'COEFF' from descriptors in extension 1 */</span></div>
-<div class="line"><a name="l04645"></a><span class="lineno"> 4645</span>         <span class="keywordflow">if</span> (order_locations != NULL)</div>
-<div class="line"><a name="l04646"></a><span class="lineno"> 4646</span>         {</div>
-<div class="line"><a name="l04647"></a><span class="lineno"> 4647</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *order_locations = </div>
-<div class="line"><a name="l04648"></a><span class="lineno"> 4648</span>            uves_polynomial_convert_from_plist_midas(midas_header, <span class="stringliteral">"COEFF"</span>,-1),</div>
-<div class="line"><a name="l04649"></a><span class="lineno"> 4649</span>                    <span class="stringliteral">"Error reading polynomial from %s"</span>, *ordertable_filename);</div>
-<div class="line"><a name="l04650"></a><span class="lineno"> 4650</span>         }</div>
-<div class="line"><a name="l04651"></a><span class="lineno"> 4651</span> </div>
-<div class="line"><a name="l04652"></a><span class="lineno"> 4652</span> </div>
-<div class="line"><a name="l04653"></a><span class="lineno"> 4653</span>         <span class="keywordflow">if</span> (flames && tab_in_out_oshift != NULL )</div>
-<div class="line"><a name="l04654"></a><span class="lineno"> 4654</span>         {</div>
-<div class="line"><a name="l04655"></a><span class="lineno"> 4655</span>             <span class="comment">/* Get tab_in_out_oshift */</span></div>
-<div class="line"><a name="l04656"></a><span class="lineno"> 4656</span>             <span class="keywordtype">int</span> tioo_length;</div>
-<div class="line"><a name="l04657"></a><span class="lineno"> 4657</span>                     cpl_type tioo_type;</div>
-<div class="line"><a name="l04658"></a><span class="lineno"> 4658</span> </div>
-<div class="line"><a name="l04659"></a><span class="lineno"> 4659</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( tioo = uves_read_midas_array(</div>
-<div class="line"><a name="l04660"></a><span class="lineno"> 4660</span>                    midas_header, <span class="stringliteral">"TAB_IN_OUT_OSHIFT"</span>, &tioo_length,</div>
-<div class="line"><a name="l04661"></a><span class="lineno"> 4661</span>                                &tioo_type, NULL),</div>
-<div class="line"><a name="l04662"></a><span class="lineno"> 4662</span>                <span class="stringliteral">"Error reading TAB_IN_OUT_OSHIFT from MIDAS header"</span>);</div>
-<div class="line"><a name="l04663"></a><span class="lineno"> 4663</span> </div>
-<div class="line"><a name="l04664"></a><span class="lineno"> 4664</span>                     assure( tioo_type == CPL_TYPE_INT, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l04665"></a><span class="lineno"> 4665</span>                             <span class="stringliteral">"Type of TAB_IN_OUT_OSHIFT is %s, double expected"</span>,</div>
-<div class="line"><a name="l04666"></a><span class="lineno"> 4666</span>                             <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(tioo_type));</div>
-<div class="line"><a name="l04667"></a><span class="lineno"> 4667</span> </div>
-<div class="line"><a name="l04668"></a><span class="lineno"> 4668</span>             <span class="keywordflow">if</span> (tioo_length != 1)</div>
-<div class="line"><a name="l04669"></a><span class="lineno"> 4669</span>             {</div>
-<div class="line"><a name="l04670"></a><span class="lineno"> 4670</span>                 <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Length of TAB_IN_OUT_OSHIFT array is %d; "</span></div>
-<div class="line"><a name="l04671"></a><span class="lineno"> 4671</span>                          <span class="stringliteral">"%d expected"</span>, tioo_length, 1);</div>
-<div class="line"><a name="l04672"></a><span class="lineno"> 4672</span>             }</div>
-<div class="line"><a name="l04673"></a><span class="lineno"> 4673</span> </div>
-<div class="line"><a name="l04674"></a><span class="lineno"> 4674</span>             *tab_in_out_oshift = tioo[0];</div>
-<div class="line"><a name="l04675"></a><span class="lineno"> 4675</span>             </div>
-<div class="line"><a name="l04676"></a><span class="lineno"> 4676</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"TAB_IN_OUT_OSHIFT = %d"</span>, *tab_in_out_oshift);</div>
-<div class="line"><a name="l04677"></a><span class="lineno"> 4677</span> </div>
-<div class="line"><a name="l04678"></a><span class="lineno"> 4678</span>         }</div>
-<div class="line"><a name="l04679"></a><span class="lineno"> 4679</span>         </div>
-<div class="line"><a name="l04680"></a><span class="lineno"> 4680</span>         <span class="keywordflow">if</span> (flames && tab_in_out_yshift != NULL)</div>
-<div class="line"><a name="l04681"></a><span class="lineno"> 4681</span>         {</div>
-<div class="line"><a name="l04682"></a><span class="lineno"> 4682</span>             <span class="comment">/* Get tab_in_out_yshift */</span></div>
-<div class="line"><a name="l04683"></a><span class="lineno"> 4683</span>             <span class="keywordtype">int</span> tioy_length;</div>
-<div class="line"><a name="l04684"></a><span class="lineno"> 4684</span>                     cpl_type tioy_type;</div>
-<div class="line"><a name="l04685"></a><span class="lineno"> 4685</span> </div>
-<div class="line"><a name="l04686"></a><span class="lineno"> 4686</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( tioy = uves_read_midas_array(</div>
-<div class="line"><a name="l04687"></a><span class="lineno"> 4687</span>                    midas_header, <span class="stringliteral">"TAB_IN_OUT_YSHIFT"</span>, &tioy_length,</div>
-<div class="line"><a name="l04688"></a><span class="lineno"> 4688</span>                                &tioy_type, NULL),</div>
-<div class="line"><a name="l04689"></a><span class="lineno"> 4689</span>                <span class="stringliteral">"Error reading TAB_IN_OUT_YSHIFT from MIDAS header"</span>);</div>
-<div class="line"><a name="l04690"></a><span class="lineno"> 4690</span> </div>
-<div class="line"><a name="l04691"></a><span class="lineno"> 4691</span>                     assure( tioy_type == CPL_TYPE_DOUBLE, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l04692"></a><span class="lineno"> 4692</span>                             <span class="stringliteral">"Type of TAB_IN_OUT_YSHIFT is %s, double expected"</span>,</div>
-<div class="line"><a name="l04693"></a><span class="lineno"> 4693</span>                             <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(tioy_type));</div>
-<div class="line"><a name="l04694"></a><span class="lineno"> 4694</span> </div>
-<div class="line"><a name="l04695"></a><span class="lineno"> 4695</span>             <span class="keywordflow">if</span> (tioy_length != 1)</div>
-<div class="line"><a name="l04696"></a><span class="lineno"> 4696</span>             {</div>
-<div class="line"><a name="l04697"></a><span class="lineno"> 4697</span>                 <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Length of TAB_IN_OUT_YSHIFT array is %d; "</span></div>
-<div class="line"><a name="l04698"></a><span class="lineno"> 4698</span>                          <span class="stringliteral">"%d expected"</span>, tioy_length, 1);</div>
-<div class="line"><a name="l04699"></a><span class="lineno"> 4699</span>             }</div>
-<div class="line"><a name="l04700"></a><span class="lineno"> 4700</span> </div>
-<div class="line"><a name="l04701"></a><span class="lineno"> 4701</span>             *tab_in_out_yshift = tioy[0];</div>
-<div class="line"><a name="l04702"></a><span class="lineno"> 4702</span> </div>
-<div class="line"><a name="l04703"></a><span class="lineno"> 4703</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"TAB_IN_OUT_YSHIFT = %f"</span>, *tab_in_out_yshift);</div>
-<div class="line"><a name="l04704"></a><span class="lineno"> 4704</span>         }</div>
-<div class="line"><a name="l04705"></a><span class="lineno"> 4705</span>         </div>
-<div class="line"><a name="l04706"></a><span class="lineno"> 4706</span>         <span class="keywordflow">if</span> (traces != NULL)</div>
-<div class="line"><a name="l04707"></a><span class="lineno"> 4707</span>         {</div>
-<div class="line"><a name="l04708"></a><span class="lineno"> 4708</span>             *traces = <a class="code" href="group__uves__utils.html#ga5498ccadef9be3eee6cfacfac75c7478" title="Create the table that describes fibre traces.">uves_ordertable_traces_new</a>();</div>
-<div class="line"><a name="l04709"></a><span class="lineno"> 4709</span>             </div>
-<div class="line"><a name="l04710"></a><span class="lineno"> 4710</span>             <span class="keywordflow">if</span> (!flames)</div>
-<div class="line"><a name="l04711"></a><span class="lineno"> 4711</span>             <span class="comment">/* UVES: one trace with zero offset */</span></div>
-<div class="line"><a name="l04712"></a><span class="lineno"> 4712</span>             {</div>
-<div class="line"><a name="l04713"></a><span class="lineno"> 4713</span>                 <span class="keywordtype">int</span> fibre_ID = 0;</div>
-<div class="line"><a name="l04714"></a><span class="lineno"> 4714</span>                 <span class="keywordtype">double</span> fibre_offset = 0.0;</div>
-<div class="line"><a name="l04715"></a><span class="lineno"> 4715</span>                 <span class="keywordtype">int</span> fibre_msk = 1;</div>
-<div class="line"><a name="l04716"></a><span class="lineno"> 4716</span>                 <a class="code" href="group__uves__utils.html#gab4d35d91d7acd120872d427842b13942" title="Add a trace.">uves_ordertable_traces_add</a>(*traces, </div>
-<div class="line"><a name="l04717"></a><span class="lineno"> 4717</span>                                fibre_ID,</div>
-<div class="line"><a name="l04718"></a><span class="lineno"> 4718</span>                                fibre_offset,</div>
-<div class="line"><a name="l04719"></a><span class="lineno"> 4719</span>                                fibre_msk);</div>
-<div class="line"><a name="l04720"></a><span class="lineno"> 4720</span>             }</div>
-<div class="line"><a name="l04721"></a><span class="lineno"> 4721</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04722"></a><span class="lineno"> 4722</span>             <span class="comment">/* FLAMES */</span></div>
-<div class="line"><a name="l04723"></a><span class="lineno"> 4723</span>             {</div>
-<div class="line"><a name="l04724"></a><span class="lineno"> 4724</span> </div>
-<div class="line"><a name="l04725"></a><span class="lineno"> 4725</span>                 <span class="keywordtype">int</span> fibre_pos_length;</div>
-<div class="line"><a name="l04726"></a><span class="lineno"> 4726</span>                 <span class="keywordtype">int</span> fibre_mask_length;</div>
-<div class="line"><a name="l04727"></a><span class="lineno"> 4727</span>                             cpl_type fibre_pos_type;</div>
-<div class="line"><a name="l04728"></a><span class="lineno"> 4728</span>                             cpl_type fibre_mask_type;</div>
-<div class="line"><a name="l04729"></a><span class="lineno"> 4729</span>                 <span class="keywordtype">int</span> fibre_ID;</div>
-<div class="line"><a name="l04730"></a><span class="lineno"> 4730</span> </div>
-<div class="line"><a name="l04731"></a><span class="lineno"> 4731</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( fibre_pos = uves_read_midas_array(</div>
-<div class="line"><a name="l04732"></a><span class="lineno"> 4732</span>                        midas_header, <span class="stringliteral">"FIBREPOS"</span>, &fibre_pos_length,</div>
-<div class="line"><a name="l04733"></a><span class="lineno"> 4733</span>                                        &fibre_pos_type, NULL),</div>
-<div class="line"><a name="l04734"></a><span class="lineno"> 4734</span>                    <span class="stringliteral">"Error reading FIBREPOS from MIDAS header"</span>);</div>
-<div class="line"><a name="l04735"></a><span class="lineno"> 4735</span> </div>
-<div class="line"><a name="l04736"></a><span class="lineno"> 4736</span>                             assure( fibre_pos_type == CPL_TYPE_DOUBLE, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l04737"></a><span class="lineno"> 4737</span>                                     <span class="stringliteral">"Type of FIBREPOS is %s, double expected"</span>,</div>
-<div class="line"><a name="l04738"></a><span class="lineno"> 4738</span>                                     <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(fibre_pos_type));</div>
-<div class="line"><a name="l04739"></a><span class="lineno"> 4739</span> </div>
-<div class="line"><a name="l04740"></a><span class="lineno"> 4740</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( fibre_mask = uves_read_midas_array(</div>
-<div class="line"><a name="l04741"></a><span class="lineno"> 4741</span>                        midas_header, <span class="stringliteral">"FIBREMASK"</span>, &fibre_mask_length,</div>
-<div class="line"><a name="l04742"></a><span class="lineno"> 4742</span>                                        &fibre_mask_type, NULL),</div>
-<div class="line"><a name="l04743"></a><span class="lineno"> 4743</span>                    <span class="stringliteral">"Error reading FIBREMASK from MIDAS header"</span>);</div>
-<div class="line"><a name="l04744"></a><span class="lineno"> 4744</span> </div>
-<div class="line"><a name="l04745"></a><span class="lineno"> 4745</span>                             assure( fibre_mask_type == CPL_TYPE_INT, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l04746"></a><span class="lineno"> 4746</span>                                     <span class="stringliteral">"Type of FIBREMASK is %s, double expected"</span>,</div>
-<div class="line"><a name="l04747"></a><span class="lineno"> 4747</span>                                     <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(fibre_mask_type));</div>
-<div class="line"><a name="l04748"></a><span class="lineno"> 4748</span>                             </div>
-<div class="line"><a name="l04749"></a><span class="lineno"> 4749</span>                 assure( fibre_pos_length == fibre_mask_length,</div>
-<div class="line"><a name="l04750"></a><span class="lineno"> 4750</span>                     CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l04751"></a><span class="lineno"> 4751</span>                     <span class="stringliteral">"FIBREMASK has length %d, but "</span></div>
-<div class="line"><a name="l04752"></a><span class="lineno"> 4752</span>                     <span class="stringliteral">"FIBREPOS has length %d"</span>,</div>
-<div class="line"><a name="l04753"></a><span class="lineno"> 4753</span>                     fibre_mask_length, fibre_pos_length );</div>
-<div class="line"><a name="l04754"></a><span class="lineno"> 4754</span>             </div>
-<div class="line"><a name="l04755"></a><span class="lineno"> 4755</span>                 *fib_pos= cpl_malloc(<span class="keyword">sizeof</span>(<span class="keywordtype">double</span>) * fibre_pos_length);</div>
-<div class="line"><a name="l04756"></a><span class="lineno"> 4756</span>                 *fib_msk= cpl_malloc(<span class="keyword">sizeof</span>(<span class="keywordtype">int</span>) * fibre_mask_length);</div>
-<div class="line"><a name="l04757"></a><span class="lineno"> 4757</span> </div>
-<div class="line"><a name="l04758"></a><span class="lineno"> 4758</span>                 <span class="keywordflow">for</span> (fibre_ID = 0; fibre_ID < fibre_mask_length; fibre_ID++)</div>
-<div class="line"><a name="l04759"></a><span class="lineno"> 4759</span>                 {</div>
-<div class="line"><a name="l04760"></a><span class="lineno"> 4760</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Found trace %d, position %f (%s)"</span>,</div>
-<div class="line"><a name="l04761"></a><span class="lineno"> 4761</span>                            fibre_ID, fibre_pos[fibre_ID],</div>
-<div class="line"><a name="l04762"></a><span class="lineno"> 4762</span>                            fibre_mask[fibre_ID] ? </div>
-<div class="line"><a name="l04763"></a><span class="lineno"> 4763</span>                            <span class="stringliteral">"enabled"</span> : <span class="stringliteral">"disabled"</span>);</div>
-<div class="line"><a name="l04764"></a><span class="lineno"> 4764</span>                     <a class="code" href="group__uves__utils.html#gab4d35d91d7acd120872d427842b13942" title="Add a trace.">uves_ordertable_traces_add</a>(*traces, </div>
-<div class="line"><a name="l04765"></a><span class="lineno"> 4765</span>                                    fibre_ID,</div>
-<div class="line"><a name="l04766"></a><span class="lineno"> 4766</span>                                    fibre_pos[fibre_ID],</div>
-<div class="line"><a name="l04767"></a><span class="lineno"> 4767</span>                                    fibre_mask[fibre_ID]);</div>
-<div class="line"><a name="l04768"></a><span class="lineno"> 4768</span>                     (*fib_pos)[fibre_ID]=fibre_pos[fibre_ID];</div>
-<div class="line"><a name="l04769"></a><span class="lineno"> 4769</span>                     (*fib_msk)[fibre_ID]=fibre_mask[fibre_ID];</div>
-<div class="line"><a name="l04770"></a><span class="lineno"> 4770</span>                 }</div>
-<div class="line"><a name="l04771"></a><span class="lineno"> 4771</span>             }</div>
-<div class="line"><a name="l04772"></a><span class="lineno"> 4772</span>         }</div>
-<div class="line"><a name="l04773"></a><span class="lineno"> 4773</span>     }</div>
-<div class="line"><a name="l04774"></a><span class="lineno"> 4774</span> </div>
-<div class="line"><a name="l04775"></a><span class="lineno"> 4775</span>   cleanup:</div>
-<div class="line"><a name="l04776"></a><span class="lineno"> 4776</span>     uves_free_propertylist(&midas_header);</div>
-<div class="line"><a name="l04777"></a><span class="lineno"> 4777</span>     uves_free_double(&fibre_pos);</div>
-<div class="line"><a name="l04778"></a><span class="lineno"> 4778</span>     uves_free_int(&fibre_mask);</div>
-<div class="line"><a name="l04779"></a><span class="lineno"> 4779</span>     uves_free_int(&tioo);</div>
-<div class="line"><a name="l04780"></a><span class="lineno"> 4780</span>     uves_free_double(&tioy);</div>
-<div class="line"><a name="l04781"></a><span class="lineno"> 4781</span>     uves_free_propertylist(&prime_header);</div>
-<div class="line"><a name="l04782"></a><span class="lineno"> 4782</span> </div>
-<div class="line"><a name="l04783"></a><span class="lineno"> 4783</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l04784"></a><span class="lineno"> 4784</span>     {</div>
-<div class="line"><a name="l04785"></a><span class="lineno"> 4785</span>         *ordertable_filename = NULL;</div>
-<div class="line"><a name="l04786"></a><span class="lineno"> 4786</span>         uves_free_table       (ordertable);</div>
-<div class="line"><a name="l04787"></a><span class="lineno"> 4787</span>         uves_free_propertylist(ordertable_header);</div>
-<div class="line"><a name="l04788"></a><span class="lineno"> 4788</span>         <span class="keywordflow">if</span> (order_locations != NULL) <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(order_locations);</div>
-<div class="line"><a name="l04789"></a><span class="lineno"> 4789</span>         <span class="keywordflow">if</span> (traces != NULL)          uves_free_table       (traces);</div>
-<div class="line"><a name="l04790"></a><span class="lineno"> 4790</span>     }</div>
-<div class="line"><a name="l04791"></a><span class="lineno"> 4791</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l04792"></a><span class="lineno"> 4792</span> }</div>
-<div class="line"><a name="l04793"></a><span class="lineno"> 4793</span> </div>
-<div class="line"><a name="l04794"></a><span class="lineno"> 4794</span> </div>
-<div class="line"><a name="l04795"></a><span class="lineno"> 4795</span> </div>
-<div class="line"><a name="l04796"></a><span class="lineno"> 4796</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04805"></a><span class="lineno"> 4805</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04806"></a><span class="lineno"> 4806</span> </div>
-<div class="line"><a name="l04807"></a><span class="lineno"> 4807</span> </div>
-<div class="line"><a name="l04808"></a><span class="lineno"> 4808</span> cpl_error_code</div>
-<div class="line"><a name="l04809"></a><span class="lineno"> 4809</span> uves_check_if_format_is_midas(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* header, <span class="keywordtype">bool</span>* format_is_midas)</div>
-<div class="line"><a name="l04810"></a><span class="lineno"> 4810</span> {</div>
-<div class="line"><a name="l04811"></a><span class="lineno"> 4811</span>  </div>
-<div class="line"><a name="l04812"></a><span class="lineno"> 4812</span>   <span class="comment">/* Determine format of order table and read the polynomial */</span></div>
-<div class="line"><a name="l04813"></a><span class="lineno"> 4813</span>   <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(header, UVES_DRS_ID)) {</div>
-<div class="line"><a name="l04814"></a><span class="lineno"> 4814</span> </div>
-<div class="line"><a name="l04815"></a><span class="lineno"> 4815</span> </div>
-<div class="line"><a name="l04816"></a><span class="lineno"> 4816</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* drs_id=NULL;</div>
-<div class="line"><a name="l04817"></a><span class="lineno"> 4817</span> </div>
-<div class="line"><a name="l04818"></a><span class="lineno"> 4818</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( drs_id = <a class="code" href="group__uves__pfits.html#ga30b8fd58edf8f7f006fb73aa9a25cf91" title="Find out the drs id.">uves_pfits_get_drs_id</a>(header), <span class="stringliteral">"Error reading DRS ID"</span>);</div>
-<div class="line"><a name="l04819"></a><span class="lineno"> 4819</span>     <span class="keywordflow">if</span> (strstr(drs_id, <span class="stringliteral">"CPL"</span>) != NULL || </div>
-<div class="line"><a name="l04820"></a><span class="lineno"> 4820</span>     strstr(drs_id, <span class="stringliteral">"cpl"</span>) != NULL) {</div>
-<div class="line"><a name="l04821"></a><span class="lineno"> 4821</span>       *format_is_midas = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l04822"></a><span class="lineno"> 4822</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order table was written by CPL"</span>);</div>
-<div class="line"><a name="l04823"></a><span class="lineno"> 4823</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strstr(drs_id, <span class="stringliteral">"MIDAS"</span>) != NULL || </div>
-<div class="line"><a name="l04824"></a><span class="lineno"> 4824</span>                strstr(drs_id, <span class="stringliteral">"midas"</span>) != NULL) {</div>
-<div class="line"><a name="l04825"></a><span class="lineno"> 4825</span>       *format_is_midas = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l04826"></a><span class="lineno"> 4826</span>       <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Order table was written by MIDAS"</span>);</div>
-<div class="line"><a name="l04827"></a><span class="lineno"> 4827</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04828"></a><span class="lineno"> 4828</span>       assure ( <span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l04829"></a><span class="lineno"> 4829</span>            <span class="stringliteral">"Unrecognized order table format, DRS_ID = '%s'"</span>, drs_id);</div>
-<div class="line"><a name="l04830"></a><span class="lineno"> 4830</span>     }</div>
-<div class="line"><a name="l04831"></a><span class="lineno"> 4831</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04832"></a><span class="lineno"> 4832</span> </div>
-<div class="line"><a name="l04833"></a><span class="lineno"> 4833</span>     *format_is_midas = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l04834"></a><span class="lineno"> 4834</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"No '%s' keyword found. Assuming MIDAS format"</span>, UVES_DRS_ID);</div>
-<div class="line"><a name="l04835"></a><span class="lineno"> 4835</span>   }</div>
-<div class="line"><a name="l04836"></a><span class="lineno"> 4836</span>  </div>
-<div class="line"><a name="l04837"></a><span class="lineno"> 4837</span>  cleanup:</div>
-<div class="line"><a name="l04838"></a><span class="lineno"> 4838</span>   <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l04839"></a><span class="lineno"> 4839</span> </div>
-<div class="line"><a name="l04840"></a><span class="lineno"> 4840</span> }</div>
-<div class="line"><a name="l04841"></a><span class="lineno"> 4841</span> </div>
-<div class="line"><a name="l04842"></a><span class="lineno"> 4842</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04852"></a><span class="lineno"> 4852</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04853"></a><span class="lineno"> 4853</span> </div>
-<div class="line"><a name="l04854"></a><span class="lineno"> 4854</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l04855"></a><span class="lineno"> 4855</span> create_column_pixelsize(cpl_table *linetable)</div>
-<div class="line"><a name="l04856"></a><span class="lineno"> 4856</span> {</div>
-<div class="line"><a name="l04857"></a><span class="lineno"> 4857</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *p = NULL;</div>
-<div class="line"><a name="l04858"></a><span class="lineno"> 4858</span>     cpl_table *t = NULL;</div>
-<div class="line"><a name="l04859"></a><span class="lineno"> 4859</span>     <span class="keywordtype">double</span> d1, d2;</div>
-<div class="line"><a name="l04860"></a><span class="lineno"> 4860</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l04861"></a><span class="lineno"> 4861</span>     <span class="keywordtype">int</span> degree = 3;</div>
-<div class="line"><a name="l04862"></a><span class="lineno"> 4862</span>     </div>
-<div class="line"><a name="l04863"></a><span class="lineno"> 4863</span>     <span class="comment">/* Remove rows with Ident = 0 (unidentified lines) */</span></div>
-<div class="line"><a name="l04864"></a><span class="lineno"> 4864</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( t = uves_extract_table_rows(linetable, <span class="stringliteral">"Ident"</span>, CPL_GREATER_THAN, 0.1),</div>
-<div class="line"><a name="l04865"></a><span class="lineno"> 4865</span>        <span class="stringliteral">"Error deleting rows with Ident=0"</span>);</div>
-<div class="line"><a name="l04866"></a><span class="lineno"> 4866</span>     </div>
-<div class="line"><a name="l04867"></a><span class="lineno"> 4867</span>     <span class="comment">/* Create column Aux := Ident * Order  */</span></div>
-<div class="line"><a name="l04868"></a><span class="lineno"> 4868</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_duplicate_column(t, <span class="stringliteral">"Aux"</span>, t, <span class="stringliteral">"Ident"</span>),</div>
-<div class="line"><a name="l04869"></a><span class="lineno"> 4869</span>         cpl_table_multiply_columns(t, <span class="stringliteral">"Aux"</span>, <span class="stringliteral">"Order"</span>)),</div>
-<div class="line"><a name="l04870"></a><span class="lineno"> 4870</span>       <span class="stringliteral">"Error creating 'Aux' column"</span>);</div>
-<div class="line"><a name="l04871"></a><span class="lineno"> 4871</span>     </div>
-<div class="line"><a name="l04872"></a><span class="lineno"> 4872</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( p = <a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d</a>(t, </div>
-<div class="line"><a name="l04873"></a><span class="lineno"> 4873</span>                          <span class="stringliteral">"X"</span>, <span class="stringliteral">"Aux"</span>, NULL,</div>
-<div class="line"><a name="l04874"></a><span class="lineno"> 4874</span>                          degree,</div>
-<div class="line"><a name="l04875"></a><span class="lineno"> 4875</span>                          NULL, NULL,</div>
-<div class="line"><a name="l04876"></a><span class="lineno"> 4876</span>                          NULL,</div>
-<div class="line"><a name="l04877"></a><span class="lineno"> 4877</span>                          -1),</div>
-<div class="line"><a name="l04878"></a><span class="lineno"> 4878</span>        <span class="stringliteral">"Regression failed"</span>);</div>
-<div class="line"><a name="l04879"></a><span class="lineno"> 4879</span>     </div>
-<div class="line"><a name="l04880"></a><span class="lineno"> 4880</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( d1 = <a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(p, 1),</div>
-<div class="line"><a name="l04881"></a><span class="lineno"> 4881</span>        <span class="stringliteral">"Error reading polynomial coefficient"</span>);</div>
-<div class="line"><a name="l04882"></a><span class="lineno"> 4882</span>     </div>
-<div class="line"><a name="l04883"></a><span class="lineno"> 4883</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( d2 = <a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(p, 2),</div>
-<div class="line"><a name="l04884"></a><span class="lineno"> 4884</span>        <span class="stringliteral">"Error reading polynomial coefficient"</span>);</div>
-<div class="line"><a name="l04885"></a><span class="lineno"> 4885</span>     </div>
-<div class="line"><a name="l04886"></a><span class="lineno"> 4886</span>     cpl_table_new_column(linetable, LINETAB_PIXELSIZE, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l04887"></a><span class="lineno"> 4887</span>     </div>
-<div class="line"><a name="l04888"></a><span class="lineno"> 4888</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(linetable); i++)</div>
-<div class="line"><a name="l04889"></a><span class="lineno"> 4889</span>     {</div>
-<div class="line"><a name="l04890"></a><span class="lineno"> 4890</span>         <span class="keywordtype">int</span> x;</div>
-<div class="line"><a name="l04891"></a><span class="lineno"> 4891</span>         <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l04892"></a><span class="lineno"> 4892</span>         <span class="keywordtype">double</span> pixelsize;</div>
-<div class="line"><a name="l04893"></a><span class="lineno"> 4893</span>         <span class="keywordtype">double</span> ident;</div>
-<div class="line"><a name="l04894"></a><span class="lineno"> 4894</span>         </div>
-<div class="line"><a name="l04895"></a><span class="lineno"> 4895</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( x     = cpl_table_get_double(linetable, <span class="stringliteral">"X"</span>, i, NULL),</div>
-<div class="line"><a name="l04896"></a><span class="lineno"> 4896</span>             order = cpl_table_get_int   (linetable, <span class="stringliteral">"Order"</span>, i, NULL),</div>
-<div class="line"><a name="l04897"></a><span class="lineno"> 4897</span>             ident = cpl_table_get_double(linetable, <span class="stringliteral">"Ident"</span>, i, NULL)),</div>
-<div class="line"><a name="l04898"></a><span class="lineno"> 4898</span>           <span class="stringliteral">"Error reading line table"</span>);</div>
-<div class="line"><a name="l04899"></a><span class="lineno"> 4899</span>         </div>
-<div class="line"><a name="l04900"></a><span class="lineno"> 4900</span>         assure( order != 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal order number: %d"</span>, order);</div>
-<div class="line"><a name="l04901"></a><span class="lineno"> 4901</span>         </div>
-<div class="line"><a name="l04902"></a><span class="lineno"> 4902</span>         <span class="comment">/* </span></div>
-<div class="line"><a name="l04903"></a><span class="lineno"> 4903</span> <span class="comment">         * MIDAS approximates</span></div>
-<div class="line"><a name="l04904"></a><span class="lineno"> 4904</span> <span class="comment">         * d(lambda m)/dx (x,m)   =  d1 + 2*d2*x</span></div>
-<div class="line"><a name="l04905"></a><span class="lineno"> 4905</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l04906"></a><span class="lineno"> 4906</span> <span class="comment">         * where the polynomial itself is ... + d1*x + d2*x^2 + ...</span></div>
-<div class="line"><a name="l04907"></a><span class="lineno"> 4907</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l04908"></a><span class="lineno"> 4908</span>         pixelsize = (d1 + 2*d2* x) / order;</div>
-<div class="line"><a name="l04909"></a><span class="lineno"> 4909</span> <span class="comment">//        pixelsize = uves_polynomial_derivative_2d(dispersion_relation, x, order, 1)/order;</span></div>
-<div class="line"><a name="l04910"></a><span class="lineno"> 4910</span>         </div>
-<div class="line"><a name="l04911"></a><span class="lineno"> 4911</span>         <span class="keywordflow">if</span> (ident > 0.01)</div>
-<div class="line"><a name="l04912"></a><span class="lineno"> 4912</span>         {</div>
-<div class="line"><a name="l04913"></a><span class="lineno"> 4913</span>             cpl_table_set_double(linetable, LINETAB_PIXELSIZE, i, pixelsize);</div>
-<div class="line"><a name="l04914"></a><span class="lineno"> 4914</span>         }</div>
-<div class="line"><a name="l04915"></a><span class="lineno"> 4915</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04916"></a><span class="lineno"> 4916</span>         {</div>
-<div class="line"><a name="l04917"></a><span class="lineno"> 4917</span>             cpl_table_set_invalid(linetable, LINETAB_PIXELSIZE, i);</div>
-<div class="line"><a name="l04918"></a><span class="lineno"> 4918</span>         }</div>
-<div class="line"><a name="l04919"></a><span class="lineno"> 4919</span>     }</div>
-<div class="line"><a name="l04920"></a><span class="lineno"> 4920</span>     </div>
-<div class="line"><a name="l04921"></a><span class="lineno"> 4921</span>   cleanup:</div>
-<div class="line"><a name="l04922"></a><span class="lineno"> 4922</span>     uves_free_table(&t);</div>
-<div class="line"><a name="l04923"></a><span class="lineno"> 4923</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p);</div>
-<div class="line"><a name="l04924"></a><span class="lineno"> 4924</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l04925"></a><span class="lineno"> 4925</span> }</div>
-<div class="line"><a name="l04926"></a><span class="lineno"> 4926</span> </div>
-<div class="line"><a name="l04927"></a><span class="lineno"> 4927</span> </div>
-<div class="line"><a name="l04928"></a><span class="lineno"> 4928</span> </div>
-<div class="line"><a name="l04929"></a><span class="lineno"> 4929</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04956"></a><span class="lineno"> 4956</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04957"></a><span class="lineno"> 4957</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l04958"></a><span class="lineno"> 4958</span> align_order_line_table(cpl_table *linetable, <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *absolute_order,</div>
-<div class="line"><a name="l04959"></a><span class="lineno"> 4959</span>                <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **linetable_header,</div>
-<div class="line"><a name="l04960"></a><span class="lineno"> 4960</span>                <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder)</div>
-<div class="line"><a name="l04961"></a><span class="lineno"> 4961</span> {</div>
-<div class="line"><a name="l04962"></a><span class="lineno"> 4962</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *absord = NULL;</div>
-<div class="line"><a name="l04963"></a><span class="lineno"> 4963</span> </div>
-<div class="line"><a name="l04964"></a><span class="lineno"> 4964</span>     assure ( order_locations  != NULL, CPL_ERROR_NULL_INPUT, </div>
-<div class="line"><a name="l04965"></a><span class="lineno"> 4965</span>              <span class="stringliteral">"Null order locations polynomial!"</span>);</div>
-<div class="line"><a name="l04966"></a><span class="lineno"> 4966</span> </div>
-<div class="line"><a name="l04967"></a><span class="lineno"> 4967</span>     assure ( absolute_order  != NULL, CPL_ERROR_NULL_INPUT, </div>
-<div class="line"><a name="l04968"></a><span class="lineno"> 4968</span>              <span class="stringliteral">"Null absolute order pllynomial!"</span>);</div>
-<div class="line"><a name="l04969"></a><span class="lineno"> 4969</span>     assure( cpl_table_has_column(linetable, <span class="stringliteral">"X"</span>   ), CPL_ERROR_DATA_NOT_FOUND, </div>
-<div class="line"><a name="l04970"></a><span class="lineno"> 4970</span>         <span class="stringliteral">"Missing line table column 'X'"</span>);</div>
-<div class="line"><a name="l04971"></a><span class="lineno"> 4971</span>     assure( cpl_table_has_column(linetable, <span class="stringliteral">"Ynew"</span>), CPL_ERROR_DATA_NOT_FOUND, </div>
-<div class="line"><a name="l04972"></a><span class="lineno"> 4972</span>         <span class="stringliteral">"Missing line table column 'Ynew'"</span>);</div>
-<div class="line"><a name="l04973"></a><span class="lineno"> 4973</span>     assure( cpl_table_has_column(linetable, <span class="stringliteral">"Order"</span>), CPL_ERROR_DATA_NOT_FOUND, </div>
-<div class="line"><a name="l04974"></a><span class="lineno"> 4974</span>         <span class="stringliteral">"Missing line table column 'Order'"</span>);</div>
-<div class="line"><a name="l04975"></a><span class="lineno"> 4975</span>     </div>
-<div class="line"><a name="l04976"></a><span class="lineno"> 4976</span>     assure( cpl_table_get_column_type(linetable, <span class="stringliteral">"X"</span>) == CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l04977"></a><span class="lineno"> 4977</span>         CPL_ERROR_TYPE_MISMATCH, <span class="stringliteral">"Line table column 'X' has type %s (double expected))"</span>,</div>
-<div class="line"><a name="l04978"></a><span class="lineno"> 4978</span>         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_table_get_column_type(linetable, <span class="stringliteral">"X"</span>)) );</div>
-<div class="line"><a name="l04979"></a><span class="lineno"> 4979</span>     </div>
-<div class="line"><a name="l04980"></a><span class="lineno"> 4980</span>     assure( cpl_table_get_column_type(linetable, <span class="stringliteral">"Ynew"</span>) == CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l04981"></a><span class="lineno"> 4981</span>         CPL_ERROR_TYPE_MISMATCH, <span class="stringliteral">"Line table column 'Ynew' has type %s (double expected))"</span>,</div>
-<div class="line"><a name="l04982"></a><span class="lineno"> 4982</span>         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_table_get_column_type(linetable, <span class="stringliteral">"Ynew"</span>)) );</div>
-<div class="line"><a name="l04983"></a><span class="lineno"> 4983</span>     </div>
-<div class="line"><a name="l04984"></a><span class="lineno"> 4984</span>     assure( cpl_table_get_column_type(linetable, <span class="stringliteral">"Y"</span>) == CPL_TYPE_INT,</div>
-<div class="line"><a name="l04985"></a><span class="lineno"> 4985</span>         CPL_ERROR_TYPE_MISMATCH, <span class="stringliteral">"Line table column 'Y' has type %s (integer expected))"</span>,</div>
-<div class="line"><a name="l04986"></a><span class="lineno"> 4986</span>         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_table_get_column_type(linetable, <span class="stringliteral">"Y"</span>)) );</div>
-<div class="line"><a name="l04987"></a><span class="lineno"> 4987</span> </div>
-<div class="line"><a name="l04988"></a><span class="lineno"> 4988</span> </div>
-<div class="line"><a name="l04989"></a><span class="lineno"> 4989</span>     <span class="keywordflow">if</span> (linetable_header != NULL)</div>
-<div class="line"><a name="l04990"></a><span class="lineno"> 4990</span>     <span class="comment">/* then correct first/abs order keywords */</span></div>
-<div class="line"><a name="l04991"></a><span class="lineno"> 4991</span>     {</div>
-<div class="line"><a name="l04992"></a><span class="lineno"> 4992</span>         <span class="keywordtype">int</span> line_first, line_last;</div>
-<div class="line"><a name="l04993"></a><span class="lineno"> 4993</span>         <span class="keywordtype">int</span> ord_first, ord_last;</div>
-<div class="line"><a name="l04994"></a><span class="lineno"> 4994</span>             {</div>
-<div class="line"><a name="l04995"></a><span class="lineno"> 4995</span> </div>
-<div class="line"><a name="l04996"></a><span class="lineno"> 4996</span>                 <span class="keywordtype">int</span> maxx;</div>
-<div class="line"><a name="l04997"></a><span class="lineno"> 4997</span>                 <span class="keywordtype">int</span> minx;</div>
-<div class="line"><a name="l04998"></a><span class="lineno"> 4998</span>                 <span class="keywordtype">int</span> x, y, order, absorder;  <span class="comment">/* At chip center */</span></div>
-<div class="line"><a name="l04999"></a><span class="lineno"> 4999</span>                 <span class="keywordtype">int</span> coeff;</div>
-<div class="line"><a name="l05000"></a><span class="lineno"> 5000</span>                 </div>
-<div class="line"><a name="l05001"></a><span class="lineno"> 5001</span> </div>
-<div class="line"><a name="l05002"></a><span class="lineno"> 5002</span>                 maxx = uves_round_double(cpl_table_get_column_max(linetable, <span class="stringliteral">"X"</span>));</div>
-<div class="line"><a name="l05003"></a><span class="lineno"> 5003</span> </div>
-<div class="line"><a name="l05004"></a><span class="lineno"> 5004</span>                 minx = uves_round_double(cpl_table_get_column_min(linetable, <span class="stringliteral">"X"</span>));</div>
-<div class="line"><a name="l05005"></a><span class="lineno"> 5005</span>                 </div>
-<div class="line"><a name="l05006"></a><span class="lineno"> 5006</span>                 assure( 1 <= minx && minx <= maxx, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l05007"></a><span class="lineno"> 5007</span>                         <span class="stringliteral">"Illegal min/max line x positions: %d/%d, must be > 1"</span>, </div>
-<div class="line"><a name="l05008"></a><span class="lineno"> 5008</span>                         minx, maxx);</div>
-<div class="line"><a name="l05009"></a><span class="lineno"> 5009</span>         </div>
-<div class="line"><a name="l05010"></a><span class="lineno"> 5010</span>                 <span class="comment">/* Center of chip */</span></div>
-<div class="line"><a name="l05011"></a><span class="lineno"> 5011</span>                 x = (minx + maxx) / 2;</div>
-<div class="line"><a name="l05012"></a><span class="lineno"> 5012</span>                 order = (minorder + maxorder) / 2;</div>
-<div class="line"><a name="l05013"></a><span class="lineno"> 5013</span> </div>
-<div class="line"><a name="l05014"></a><span class="lineno"> 5014</span>                 y = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x, order);</div>
-<div class="line"><a name="l05015"></a><span class="lineno"> 5015</span>                 <span class="keywordflow">if</span> (<a class="code" href="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a" title="Evaluate the partial derivative of a 2d polynomial.">uves_polynomial_derivative_2d</a>(absolute_order, x, y, 2) > 0) {</div>
-<div class="line"><a name="l05016"></a><span class="lineno"> 5016</span>                     coeff = +1;</div>
-<div class="line"><a name="l05017"></a><span class="lineno"> 5017</span>                 }</div>
-<div class="line"><a name="l05018"></a><span class="lineno"> 5018</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l05019"></a><span class="lineno"> 5019</span>                     coeff = -1;</div>
-<div class="line"><a name="l05020"></a><span class="lineno"> 5020</span>                 } </div>
-<div class="line"><a name="l05021"></a><span class="lineno"> 5021</span> </div>
-<div class="line"><a name="l05022"></a><span class="lineno"> 5022</span>     assure ( order_locations  != NULL, CPL_ERROR_NULL_INPUT, </div>
-<div class="line"><a name="l05023"></a><span class="lineno"> 5023</span>              <span class="stringliteral">"Null order locations polynomial!"</span>);</div>
-<div class="line"><a name="l05024"></a><span class="lineno"> 5024</span> </div>
-<div class="line"><a name="l05025"></a><span class="lineno"> 5025</span> </div>
-<div class="line"><a name="l05026"></a><span class="lineno"> 5026</span>                 absorder = uves_round_double(<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(absolute_order, x, y));</div>
-<div class="line"><a name="l05027"></a><span class="lineno"> 5027</span> </div>
-<div class="line"><a name="l05028"></a><span class="lineno"> 5028</span> </div>
-<div class="line"><a name="l05029"></a><span class="lineno"> 5029</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Absolute order polynomial at (%d, %d) = %f, "</span></div>
-<div class="line"><a name="l05030"></a><span class="lineno"> 5030</span>                                <span class="stringliteral">"rounding to %d"</span>, x, y, </div>
-<div class="line"><a name="l05031"></a><span class="lineno"> 5031</span>                                <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(absolute_order, x, y), absorder);</div>
-<div class="line"><a name="l05032"></a><span class="lineno"> 5032</span> </div>
-<div class="line"><a name="l05033"></a><span class="lineno"> 5033</span>                 ord_first = absorder + (minorder - order) * coeff;</div>
-<div class="line"><a name="l05034"></a><span class="lineno"> 5034</span>                 ord_last  = absorder + (maxorder - order) * coeff;</div>
-<div class="line"><a name="l05035"></a><span class="lineno"> 5035</span>             }</div>
-<div class="line"><a name="l05036"></a><span class="lineno"> 5036</span> </div>
-<div class="line"><a name="l05037"></a><span class="lineno"> 5037</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( line_first =</div>
-<div class="line"><a name="l05038"></a><span class="lineno"> 5038</span>            <a class="code" href="group__uves__pfits.html#gaa6a185f3150b22d6ce30439bfacbb78c" title="Get first absolute order number.">uves_pfits_get_firstabsorder</a>(*linetable_header),</div>
-<div class="line"><a name="l05039"></a><span class="lineno"> 5039</span>            <span class="stringliteral">"Could not read order number from line table header"</span>);</div>
-<div class="line"><a name="l05040"></a><span class="lineno"> 5040</span>         </div>
-<div class="line"><a name="l05041"></a><span class="lineno"> 5041</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( line_last  =</div>
-<div class="line"><a name="l05042"></a><span class="lineno"> 5042</span>            <a class="code" href="group__uves__pfits.html#gad090d54b01606904ef8d740f766c2fde" title="Get last absolute order number.">uves_pfits_get_lastabsorder</a> (*linetable_header),</div>
-<div class="line"><a name="l05043"></a><span class="lineno"> 5043</span>            <span class="stringliteral">"Could not read order number from line table header"</span>);</div>
-<div class="line"><a name="l05044"></a><span class="lineno"> 5044</span>         </div>
-<div class="line"><a name="l05045"></a><span class="lineno"> 5045</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order table range: %d - %d. Line table range: %d - %d"</span>,</div>
-<div class="line"><a name="l05046"></a><span class="lineno"> 5046</span>                ord_first, ord_last, line_first, line_last);</div>
-<div class="line"><a name="l05047"></a><span class="lineno"> 5047</span>         </div>
-<div class="line"><a name="l05048"></a><span class="lineno"> 5048</span>         <span class="keywordflow">if</span> (line_first != ord_first ||</div>
-<div class="line"><a name="l05049"></a><span class="lineno"> 5049</span>         line_last  != ord_last)</div>
-<div class="line"><a name="l05050"></a><span class="lineno"> 5050</span>         {</div>
-<div class="line"><a name="l05051"></a><span class="lineno"> 5051</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Provided line and order tables are incompatible. "</span></div>
-<div class="line"><a name="l05052"></a><span class="lineno"> 5052</span>                      <span class="stringliteral">"Line table contains orders %d - %d. "</span></div>
-<div class="line"><a name="l05053"></a><span class="lineno"> 5053</span>                      <span class="stringliteral">"Order table contains orders %d - %d. "</span></div>
-<div class="line"><a name="l05054"></a><span class="lineno"> 5054</span>                      <span class="stringliteral">"Correcting on the fly"</span>,</div>
-<div class="line"><a name="l05055"></a><span class="lineno"> 5055</span>                      line_first, line_last, ord_first, ord_last);</div>
-<div class="line"><a name="l05056"></a><span class="lineno"> 5056</span>             </div>
-<div class="line"><a name="l05057"></a><span class="lineno"> 5057</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga33e51be1bfd4b8f42972789c417211ae" title="Write the first absolute order number.">uves_pfits_set_firstabsorder</a>(*linetable_header,</div>
-<div class="line"><a name="l05058"></a><span class="lineno"> 5058</span>                             ord_first),</div>
-<div class="line"><a name="l05059"></a><span class="lineno"> 5059</span>                <span class="stringliteral">"Could not write corrected first absolute order number"</span>);</div>
-<div class="line"><a name="l05060"></a><span class="lineno"> 5060</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga69fae305f143947cdd58f3c575e7ba9a" title="Write the last absolute order number.">uves_pfits_set_lastabsorder</a>(*linetable_header,</div>
-<div class="line"><a name="l05061"></a><span class="lineno"> 5061</span>                                ord_last),</div>
-<div class="line"><a name="l05062"></a><span class="lineno"> 5062</span>                <span class="stringliteral">"Could not write corrected first absolute order number"</span>);</div>
-<div class="line"><a name="l05063"></a><span class="lineno"> 5063</span> </div>
-<div class="line"><a name="l05064"></a><span class="lineno"> 5064</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Setting line table order range = %d - %d"</span>,</div>
-<div class="line"><a name="l05065"></a><span class="lineno"> 5065</span>                    ord_first, ord_last);</div>
-<div class="line"><a name="l05066"></a><span class="lineno"> 5066</span>         }</div>
-<div class="line"><a name="l05067"></a><span class="lineno"> 5067</span>     }</div>
-<div class="line"><a name="l05068"></a><span class="lineno"> 5068</span>     <span class="comment">/* This 'Y' column is the relative order number in linetables</span></div>
-<div class="line"><a name="l05069"></a><span class="lineno"> 5069</span> <span class="comment">       but the absolute order number (and therefore equal to</span></div>
-<div class="line"><a name="l05070"></a><span class="lineno"> 5070</span> <span class="comment">       the 'order' column) in line guess tables (!!) </span></div>
-<div class="line"><a name="l05071"></a><span class="lineno"> 5071</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l05072"></a><span class="lineno"> 5072</span> </div>
-<div class="line"><a name="l05073"></a><span class="lineno"> 5073</span>     {</div>
-<div class="line"><a name="l05074"></a><span class="lineno"> 5074</span>     <span class="keywordtype">double</span> epsilon = 0.01; <span class="comment">/* Must be larger than machine precision but</span></div>
-<div class="line"><a name="l05075"></a><span class="lineno"> 5075</span> <span class="comment">                  less than the typical difference between</span></div>
-<div class="line"><a name="l05076"></a><span class="lineno"> 5076</span> <span class="comment">                  absolute/relative numbering (~100) </span></div>
-<div class="line"><a name="l05077"></a><span class="lineno"> 5077</span> <span class="comment">                   */</span></div>
-<div class="line"><a name="l05078"></a><span class="lineno"> 5078</span> </div>
-<div class="line"><a name="l05079"></a><span class="lineno"> 5079</span>     <span class="keywordflow">if</span> (fabs(cpl_table_get_column_median(linetable, <span class="stringliteral">"Y"</span>) - </div>
-<div class="line"><a name="l05080"></a><span class="lineno"> 5080</span>          cpl_table_get_column_median(linetable, <span class="stringliteral">"Order"</span>)) > epsilon)</div>
-<div class="line"><a name="l05081"></a><span class="lineno"> 5081</span> </div>
-<div class="line"><a name="l05082"></a><span class="lineno"> 5082</span>         <span class="comment">/* If column 'Y' is different from 'Order', </span></div>
-<div class="line"><a name="l05083"></a><span class="lineno"> 5083</span> <span class="comment">           then 'Y' is the relative order number and</span></div>
-<div class="line"><a name="l05084"></a><span class="lineno"> 5084</span> <span class="comment">           should be corrected (if there is an inconsistency).</span></div>
-<div class="line"><a name="l05085"></a><span class="lineno"> 5085</span> <span class="comment"></span></div>
-<div class="line"><a name="l05086"></a><span class="lineno"> 5086</span> <span class="comment">           For now, simply delete the 'Y' column because it is</span></div>
-<div class="line"><a name="l05087"></a><span class="lineno"> 5087</span> <span class="comment">           not used later. If the 'Y' column will be used later,</span></div>
-<div class="line"><a name="l05088"></a><span class="lineno"> 5088</span> <span class="comment">           it must be corrected at this place.</span></div>
-<div class="line"><a name="l05089"></a><span class="lineno"> 5089</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l05090"></a><span class="lineno"> 5090</span>         {</div>
-<div class="line"><a name="l05091"></a><span class="lineno"> 5091</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Removing line table column 'Y'"</span>);</div>
-<div class="line"><a name="l05092"></a><span class="lineno"> 5092</span>         cpl_table_erase_column(linetable, <span class="stringliteral">"Y"</span>);</div>
-<div class="line"><a name="l05093"></a><span class="lineno"> 5093</span>         }</div>
-<div class="line"><a name="l05094"></a><span class="lineno"> 5094</span>     }</div>
-<div class="line"><a name="l05095"></a><span class="lineno"> 5095</span>     </div>
-<div class="line"><a name="l05096"></a><span class="lineno"> 5096</span>   cleanup:</div>
-<div class="line"><a name="l05097"></a><span class="lineno"> 5097</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&absord);</div>
-<div class="line"><a name="l05098"></a><span class="lineno"> 5098</span> }</div>
-<div class="line"><a name="l05099"></a><span class="lineno"> 5099</span> </div>
-<div class="line"><a name="l05100"></a><span class="lineno"> 5100</span> </div>
-<div class="line"><a name="l05101"></a><span class="lineno"> 5101</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05140"></a><span class="lineno"> 5140</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05141"></a><span class="lineno"> 5141</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l05142"></a><span class="lineno"> 5142</span> uves_load_linetable(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l05143"></a><span class="lineno"> 5143</span>                     <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l05144"></a><span class="lineno"> 5144</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l05145"></a><span class="lineno"> 5145</span>                     <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder,</div>
-<div class="line"><a name="l05146"></a><span class="lineno"> 5146</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> **linetable_filename,</div>
-<div class="line"><a name="l05147"></a><span class="lineno"> 5147</span>                     cpl_table **linetable,</div>
-<div class="line"><a name="l05148"></a><span class="lineno"> 5148</span>                     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **linetable_header,</div>
-<div class="line"><a name="l05149"></a><span class="lineno"> 5149</span>                     <a class="code" href="struct__polynomial.html">polynomial</a> **dispersion_relation,</div>
-<div class="line"><a name="l05150"></a><span class="lineno"> 5150</span>                     <a class="code" href="struct__polynomial.html">polynomial</a> **absolute_order,</div>
-<div class="line"><a name="l05151"></a><span class="lineno"> 5151</span>                     <span class="keyword">enum</span> uves_chip chip, <span class="keywordtype">int</span> trace_id, <span class="keywordtype">int</span> window)</div>
-<div class="line"><a name="l05152"></a><span class="lineno"> 5152</span> {</div>
-<div class="line"><a name="l05153"></a><span class="lineno"> 5153</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *primary_header = NULL;</div>
-<div class="line"><a name="l05154"></a><span class="lineno"> 5154</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header         = NULL;</div>
-<div class="line"><a name="l05155"></a><span class="lineno"> 5155</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *midas_header   = NULL;       <span class="comment">/* MIDAS extension header */</span></div>
-<div class="line"><a name="l05156"></a><span class="lineno"> 5156</span>     <span class="keywordtype">int</span> *absorders                   = NULL;       <span class="comment">/* Absolute order numbers */</span></div>
-<div class="line"><a name="l05157"></a><span class="lineno"> 5157</span>     cpl_table *temp                  = NULL;</div>
-<div class="line"><a name="l05158"></a><span class="lineno"> 5158</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *absolute_order_local = NULL;</div>
-<div class="line"><a name="l05159"></a><span class="lineno"> 5159</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[3];</div>
-<div class="line"><a name="l05160"></a><span class="lineno"> 5160</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l05161"></a><span class="lineno"> 5161</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *drs_id;</div>
-<div class="line"><a name="l05162"></a><span class="lineno"> 5162</span>     <span class="keywordtype">bool</span> format_is_midas;               <span class="comment">/* Was file written by CPL or MIDAS? */</span></div>
-<div class="line"><a name="l05163"></a><span class="lineno"> 5163</span>     <span class="keywordtype">int</span> base_extension;                 <span class="comment">/* Last extension (e.g. 0) before </span></div>
-<div class="line"><a name="l05164"></a><span class="lineno"> 5164</span> <span class="comment">                       extension with line table */</span></div>
-<div class="line"><a name="l05165"></a><span class="lineno"> 5165</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l05166"></a><span class="lineno"> 5166</span> </div>
-<div class="line"><a name="l05167"></a><span class="lineno"> 5167</span>     <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l05168"></a><span class="lineno"> 5168</span>     {</div>
-<div class="line"><a name="l05169"></a><span class="lineno"> 5169</span>         tags[0] = UVES_GUESS_LINE_TABLE(flames, chip);</div>
-<div class="line"><a name="l05170"></a><span class="lineno"> 5170</span>         tags[1] = UVES_LINE_TABLE(flames, chip);</div>
-<div class="line"><a name="l05171"></a><span class="lineno"> 5171</span>         tags[2] = UVES_LINE_TABLE(flames, chip);</div>
-<div class="line"><a name="l05172"></a><span class="lineno"> 5172</span>         number_of_tags = 3;</div>
-<div class="line"><a name="l05173"></a><span class="lineno"> 5173</span>         </div>
-<div class="line"><a name="l05174"></a><span class="lineno"> 5174</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *linetable_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL),</div>
-<div class="line"><a name="l05175"></a><span class="lineno"> 5175</span>            <span class="stringliteral">"No line table (%s, %s or %s) found in SOF"</span>, tags[0], tags[1], tags[2]);</div>
-<div class="line"><a name="l05176"></a><span class="lineno"> 5176</span>     }</div>
-<div class="line"><a name="l05177"></a><span class="lineno"> 5177</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05178"></a><span class="lineno"> 5178</span>     {</div>
-<div class="line"><a name="l05179"></a><span class="lineno"> 5179</span>         tags[0] = UVES_LINE_TABLE(flames, chip);</div>
-<div class="line"><a name="l05180"></a><span class="lineno"> 5180</span>         tags[1] = UVES_LINE_TABLE(flames, chip);</div>
-<div class="line"><a name="l05181"></a><span class="lineno"> 5181</span>         tags[2] = UVES_GUESS_LINE_TABLE(flames, chip);</div>
-<div class="line"><a name="l05182"></a><span class="lineno"> 5182</span>         </div>
-<div class="line"><a name="l05183"></a><span class="lineno"> 5183</span>         <span class="comment">/* For backwards compatibility with MIDAS, </span></div>
-<div class="line"><a name="l05184"></a><span class="lineno"> 5184</span> <span class="comment">           also look for LINE_TABLE_chip%d */</span></div>
-<div class="line"><a name="l05185"></a><span class="lineno"> 5185</span>         <span class="keywordflow">if</span> (cpl_frameset_find_const(frames, tags[0]) == NULL &&</div>
-<div class="line"><a name="l05186"></a><span class="lineno"> 5186</span>             cpl_frameset_find_const(frames, tags[1]) == NULL &&</div>
-<div class="line"><a name="l05187"></a><span class="lineno"> 5187</span>             cpl_frameset_find_const(frames, tags[2]) == NULL)</div>
-<div class="line"><a name="l05188"></a><span class="lineno"> 5188</span>         {</div>
-<div class="line"><a name="l05189"></a><span class="lineno"> 5189</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"No %s"</span>, tags[0]);</div>
-<div class="line"><a name="l05190"></a><span class="lineno"> 5190</span>             </div>
-<div class="line"><a name="l05191"></a><span class="lineno"> 5191</span>             <span class="keywordflow">if</span> (window >= 1)</div>
-<div class="line"><a name="l05192"></a><span class="lineno"> 5192</span>             {</div>
-<div class="line"><a name="l05193"></a><span class="lineno"> 5193</span>                 <span class="comment">/* Look for LINE_TABLE_BLUEwindow */</span></div>
-<div class="line"><a name="l05194"></a><span class="lineno"> 5194</span>                 </div>
-<div class="line"><a name="l05195"></a><span class="lineno"> 5195</span>                 tags[0] = UVES_LINE_TABLE_MIDAS(chip, window);</div>
-<div class="line"><a name="l05196"></a><span class="lineno"> 5196</span>                 tags[1] = UVES_LINE_TABLE_MIDAS(chip, window);</div>
-<div class="line"><a name="l05197"></a><span class="lineno"> 5197</span>                 tags[2] = UVES_LINE_TABLE_MIDAS(chip, window);</div>
-<div class="line"><a name="l05198"></a><span class="lineno"> 5198</span>                 </div>
-<div class="line"><a name="l05199"></a><span class="lineno"> 5199</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Trying %s"</span>, tags[0]);</div>
-<div class="line"><a name="l05200"></a><span class="lineno"> 5200</span>             }</div>
-<div class="line"><a name="l05201"></a><span class="lineno"> 5201</span>             <span class="keywordflow">if</span> (window <= 0)</div>
-<div class="line"><a name="l05202"></a><span class="lineno"> 5202</span>             {</div>
-<div class="line"><a name="l05203"></a><span class="lineno"> 5203</span>                 <span class="comment">/* Look for any LINE_TABLE_BLUEi */</span></div>
-<div class="line"><a name="l05204"></a><span class="lineno"> 5204</span>                 tags[0] = UVES_LINE_TABLE_MIDAS(chip, 1);</div>
-<div class="line"><a name="l05205"></a><span class="lineno"> 5205</span>                 tags[1] = UVES_LINE_TABLE_MIDAS(chip, 2);</div>
-<div class="line"><a name="l05206"></a><span class="lineno"> 5206</span>                 tags[2] = UVES_LINE_TABLE_MIDAS(chip, 3);</div>
-<div class="line"><a name="l05207"></a><span class="lineno"> 5207</span>                 </div>
-<div class="line"><a name="l05208"></a><span class="lineno"> 5208</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Trying %s, %s or %s"</span>, tags[0], tags[1], tags[2]);</div>
-<div class="line"><a name="l05209"></a><span class="lineno"> 5209</span>             }</div>
-<div class="line"><a name="l05210"></a><span class="lineno"> 5210</span>         }</div>
-<div class="line"><a name="l05211"></a><span class="lineno"> 5211</span>         </div>
-<div class="line"><a name="l05212"></a><span class="lineno"> 5212</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *linetable_filename = uves_find_frame(frames, tags, number_of_tags, &indx, NULL),</div>
-<div class="line"><a name="l05213"></a><span class="lineno"> 5213</span>            <span class="stringliteral">"No line table (%s, %s or %s) found in SOF"</span>, tags[0], tags[1], tags[2]);</div>
-<div class="line"><a name="l05214"></a><span class="lineno"> 5214</span>     }</div>
-<div class="line"><a name="l05215"></a><span class="lineno"> 5215</span>     </div>
-<div class="line"><a name="l05216"></a><span class="lineno"> 5216</span>     <span class="comment">/* Read primary header */</span></div>
-<div class="line"><a name="l05217"></a><span class="lineno"> 5217</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( primary_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*linetable_filename, 0),</div>
-<div class="line"><a name="l05218"></a><span class="lineno"> 5218</span>        <span class="stringliteral">"Could not load primary header of '%s'"</span>, *linetable_filename);  </div>
-<div class="line"><a name="l05219"></a><span class="lineno"> 5219</span> </div>
-<div class="line"><a name="l05220"></a><span class="lineno"> 5220</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_warn_if_chip_names_dont_match(primary_header, chip_name, chip) );</div>
-<div class="line"><a name="l05221"></a><span class="lineno"> 5221</span>     </div>
-<div class="line"><a name="l05222"></a><span class="lineno"> 5222</span>     <span class="comment">/* Determine format of line table */</span></div>
-<div class="line"><a name="l05223"></a><span class="lineno"> 5223</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(primary_header, UVES_DRS_ID))</div>
-<div class="line"><a name="l05224"></a><span class="lineno"> 5224</span>     {</div>
-<div class="line"><a name="l05225"></a><span class="lineno"> 5225</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( drs_id = <a class="code" href="group__uves__pfits.html#ga30b8fd58edf8f7f006fb73aa9a25cf91" title="Find out the drs id.">uves_pfits_get_drs_id</a>(primary_header), <span class="stringliteral">"Error reading DRS ID"</span>);</div>
-<div class="line"><a name="l05226"></a><span class="lineno"> 5226</span>         <span class="keywordflow">if</span> (strstr(drs_id, <span class="stringliteral">"CPL"</span>) != NULL || strstr(drs_id, <span class="stringliteral">"cpl"</span>) != NULL)</div>
-<div class="line"><a name="l05227"></a><span class="lineno"> 5227</span>         {</div>
-<div class="line"><a name="l05228"></a><span class="lineno"> 5228</span>             format_is_midas = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l05229"></a><span class="lineno"> 5229</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Line table was written by CPL"</span>);</div>
-<div class="line"><a name="l05230"></a><span class="lineno"> 5230</span>         }</div>
-<div class="line"><a name="l05231"></a><span class="lineno"> 5231</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strstr(drs_id, <span class="stringliteral">"MIDAS"</span>) != NULL || strstr(drs_id, <span class="stringliteral">"midas"</span>) != NULL)</div>
-<div class="line"><a name="l05232"></a><span class="lineno"> 5232</span>         {</div>
-<div class="line"><a name="l05233"></a><span class="lineno"> 5233</span>             format_is_midas = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l05234"></a><span class="lineno"> 5234</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Line table was written by MIDAS"</span>);</div>
-<div class="line"><a name="l05235"></a><span class="lineno"> 5235</span>         }</div>
-<div class="line"><a name="l05236"></a><span class="lineno"> 5236</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05237"></a><span class="lineno"> 5237</span>         {</div>
-<div class="line"><a name="l05238"></a><span class="lineno"> 5238</span>             assure ( <span class="keyword">false</span>,</div>
-<div class="line"><a name="l05239"></a><span class="lineno"> 5239</span>                  CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l05240"></a><span class="lineno"> 5240</span>                  <span class="stringliteral">"Unrecognized line table format, DRS_ID = '%s'"</span>, drs_id);</div>
-<div class="line"><a name="l05241"></a><span class="lineno"> 5241</span>         }</div>
-<div class="line"><a name="l05242"></a><span class="lineno"> 5242</span>     }</div>
-<div class="line"><a name="l05243"></a><span class="lineno"> 5243</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05244"></a><span class="lineno"> 5244</span>     {</div>
-<div class="line"><a name="l05245"></a><span class="lineno"> 5245</span>         format_is_midas = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l05246"></a><span class="lineno"> 5246</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"No '%s' keyword found. Assuming MIDAS format"</span>, UVES_DRS_ID);</div>
-<div class="line"><a name="l05247"></a><span class="lineno"> 5247</span>     }</div>
-<div class="line"><a name="l05248"></a><span class="lineno"> 5248</span> </div>
-<div class="line"><a name="l05249"></a><span class="lineno"> 5249</span>     <span class="keywordflow">if</span> (format_is_midas || flames)</div>
-<div class="line"><a name="l05250"></a><span class="lineno"> 5250</span>     {</div>
-<div class="line"><a name="l05251"></a><span class="lineno"> 5251</span>         <span class="keywordflow">if</span> (!flames)</div>
-<div class="line"><a name="l05252"></a><span class="lineno"> 5252</span>         {</div>
-<div class="line"><a name="l05253"></a><span class="lineno"> 5253</span>             assure( trace_id == 0 && (window == -1 || (1 <= window && window <= 3)), </div>
-<div class="line"><a name="l05254"></a><span class="lineno"> 5254</span>                 CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l05255"></a><span class="lineno"> 5255</span>                 <span class="stringliteral">"Cannot read (fibre, window) = (%d, %d) from MIDAS line table"</span>, </div>
-<div class="line"><a name="l05256"></a><span class="lineno"> 5256</span>                 trace_id, window);</div>
-<div class="line"><a name="l05257"></a><span class="lineno"> 5257</span>             </div>
-<div class="line"><a name="l05258"></a><span class="lineno"> 5258</span>             base_extension = 0;</div>
-<div class="line"><a name="l05259"></a><span class="lineno"> 5259</span>         }</div>
-<div class="line"><a name="l05260"></a><span class="lineno"> 5260</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05261"></a><span class="lineno"> 5261</span>         {</div>
-<div class="line"><a name="l05262"></a><span class="lineno"> 5262</span> </div>
-<div class="line"><a name="l05263"></a><span class="lineno"> 5263</span>       <span class="keywordflow">if</span>(trace_id > 0) {</div>
-<div class="line"><a name="l05264"></a><span class="lineno"> 5264</span> </div>
-<div class="line"><a name="l05265"></a><span class="lineno"> 5265</span>             assure( ((1<= trace_id && trace_id <= 9) && (window == -1)), </div>
-<div class="line"><a name="l05266"></a><span class="lineno"> 5266</span>                 CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l05267"></a><span class="lineno"> 5267</span>                 <span class="stringliteral">"Cannot read (fibre, window) = (%d, %d) from MIDAS line table"</span>, </div>
-<div class="line"><a name="l05268"></a><span class="lineno"> 5268</span>                 trace_id, window);</div>
-<div class="line"><a name="l05269"></a><span class="lineno"> 5269</span>             </div>
-<div class="line"><a name="l05270"></a><span class="lineno"> 5270</span>             base_extension = 0;</div>
-<div class="line"><a name="l05271"></a><span class="lineno"> 5271</span> </div>
-<div class="line"><a name="l05272"></a><span class="lineno"> 5272</span> </div>
-<div class="line"><a name="l05273"></a><span class="lineno"> 5273</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l05274"></a><span class="lineno"> 5274</span> </div>
-<div class="line"><a name="l05275"></a><span class="lineno"> 5275</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Assuming line table is guess table"</span>);</div>
-<div class="line"><a name="l05276"></a><span class="lineno"> 5276</span>             base_extension = 0;</div>
-<div class="line"><a name="l05277"></a><span class="lineno"> 5277</span>       }</div>
-<div class="line"><a name="l05278"></a><span class="lineno"> 5278</span>         }</div>
-<div class="line"><a name="l05279"></a><span class="lineno"> 5279</span>     }</div>
-<div class="line"><a name="l05280"></a><span class="lineno"> 5280</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05281"></a><span class="lineno"> 5281</span>     <span class="comment">/* Find table extension containing the line table for the specified trace and window */</span></div>
-<div class="line"><a name="l05282"></a><span class="lineno"> 5282</span>     {</div>
-<div class="line"><a name="l05283"></a><span class="lineno"> 5283</span>         <span class="keywordtype">int</span> nextensions;</div>
-<div class="line"><a name="l05284"></a><span class="lineno"> 5284</span>         <span class="keywordtype">bool</span> found;</div>
-<div class="line"><a name="l05285"></a><span class="lineno"> 5285</span>         </div>
-<div class="line"><a name="l05286"></a><span class="lineno"> 5286</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( nextensions = uves_get_nextensions(*linetable_filename),</div>
-<div class="line"><a name="l05287"></a><span class="lineno"> 5287</span>            <span class="stringliteral">"Error reading number of extensions of file '%s'"</span>, *linetable_filename);</div>
-<div class="line"><a name="l05288"></a><span class="lineno"> 5288</span>         header = NULL;</div>
-<div class="line"><a name="l05289"></a><span class="lineno"> 5289</span>         found = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l05290"></a><span class="lineno"> 5290</span> </div>
-<div class="line"><a name="l05291"></a><span class="lineno"> 5291</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Number of extensions = %d"</span>, nextensions);</div>
-<div class="line"><a name="l05292"></a><span class="lineno"> 5292</span> </div>
-<div class="line"><a name="l05293"></a><span class="lineno"> 5293</span>         <span class="keywordflow">for</span> (base_extension = 1; base_extension < nextensions && !found; base_extension++)</div>
-<div class="line"><a name="l05294"></a><span class="lineno"> 5294</span>         {</div>
-<div class="line"><a name="l05295"></a><span class="lineno"> 5295</span>             <span class="keywordtype">int</span> header_trace;</div>
-<div class="line"><a name="l05296"></a><span class="lineno"> 5296</span>             <span class="keywordtype">int</span> header_window;</div>
-<div class="line"><a name="l05297"></a><span class="lineno"> 5297</span>             </div>
-<div class="line"><a name="l05298"></a><span class="lineno"> 5298</span>             <span class="comment">/* Read header trace & window info */</span></div>
-<div class="line"><a name="l05299"></a><span class="lineno"> 5299</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( uves_free_propertylist(&header),</div>
-<div class="line"><a name="l05300"></a><span class="lineno"> 5300</span>                header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*linetable_filename, base_extension)),</div>
-<div class="line"><a name="l05301"></a><span class="lineno"> 5301</span>                <span class="stringliteral">"Could not header of extension %d of '%s'"</span>, </div>
-<div class="line"><a name="l05302"></a><span class="lineno"> 5302</span>               base_extension, *linetable_filename);</div>
-<div class="line"><a name="l05303"></a><span class="lineno"> 5303</span>             </div>
-<div class="line"><a name="l05304"></a><span class="lineno"> 5304</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( header_trace  = <a class="code" href="group__uves__pfits.html#gafe242382d5e824db3b68e156d8296a89" title="Get the trace ID number.">uves_pfits_get_traceid</a>     (header),</div>
-<div class="line"><a name="l05305"></a><span class="lineno"> 5305</span>                <span class="stringliteral">"Error reading trace ID from header of extension %d of '%s'"</span>,</div>
-<div class="line"><a name="l05306"></a><span class="lineno"> 5306</span>                base_extension, *linetable_filename);</div>
-<div class="line"><a name="l05307"></a><span class="lineno"> 5307</span>             </div>
-<div class="line"><a name="l05308"></a><span class="lineno"> 5308</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( header_window = <a class="code" href="group__uves__pfits.html#ga3bcabe0b2d46d1f65674d3d0dcb9ee2d" title="Get the window number.">uves_pfits_get_windownumber</a>(header),</div>
-<div class="line"><a name="l05309"></a><span class="lineno"> 5309</span>                <span class="stringliteral">"Error reading window number from header of extension %d of '%s'"</span>,</div>
-<div class="line"><a name="l05310"></a><span class="lineno"> 5310</span>                base_extension, *linetable_filename);</div>
-<div class="line"><a name="l05311"></a><span class="lineno"> 5311</span>             </div>
-<div class="line"><a name="l05312"></a><span class="lineno"> 5312</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Found (trace, window) = (%d, %d), need (%d, %d)"</span>,</div>
-<div class="line"><a name="l05313"></a><span class="lineno"> 5313</span>                                    header_trace, header_window,</div>
-<div class="line"><a name="l05314"></a><span class="lineno"> 5314</span>                                    trace_id, window);</div>
-<div class="line"><a name="l05315"></a><span class="lineno"> 5315</span> </div>
-<div class="line"><a name="l05316"></a><span class="lineno"> 5316</span>             found = ( (trace_id == header_trace) && </div>
-<div class="line"><a name="l05317"></a><span class="lineno"> 5317</span>                   (window == -1 || window == header_window) );</div>
-<div class="line"><a name="l05318"></a><span class="lineno"> 5318</span>         }</div>
-<div class="line"><a name="l05319"></a><span class="lineno"> 5319</span>         </div>
-<div class="line"><a name="l05320"></a><span class="lineno"> 5320</span>         assure( found,</div>
-<div class="line"><a name="l05321"></a><span class="lineno"> 5321</span>             CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l05322"></a><span class="lineno"> 5322</span>             <span class="stringliteral">"Line table (trace, window) = (%d, %d) is not present in file '%s'"</span>,</div>
-<div class="line"><a name="l05323"></a><span class="lineno"> 5323</span>             trace_id, window, *linetable_filename);</div>
-<div class="line"><a name="l05324"></a><span class="lineno"> 5324</span> </div>
-<div class="line"><a name="l05325"></a><span class="lineno"> 5325</span>         <span class="comment">/* Let 'base_extension' be the first extension before </span></div>
-<div class="line"><a name="l05326"></a><span class="lineno"> 5326</span> <span class="comment">           the proper extension was found (0, 3, 6, ...) */</span></div>
-<div class="line"><a name="l05327"></a><span class="lineno"> 5327</span>         base_extension -= 2;</div>
-<div class="line"><a name="l05328"></a><span class="lineno"> 5328</span>         <span class="comment">/* ...and incremented in for-loop */</span></div>
-<div class="line"><a name="l05329"></a><span class="lineno"> 5329</span>     }</div>
-<div class="line"><a name="l05330"></a><span class="lineno"> 5330</span> </div>
-<div class="line"><a name="l05331"></a><span class="lineno"> 5331</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *linetable = cpl_table_load(*linetable_filename,</div>
-<div class="line"><a name="l05332"></a><span class="lineno"> 5332</span>                        base_extension + UVES_LINE_TABLE_EXTENSION,</div>
-<div class="line"><a name="l05333"></a><span class="lineno"> 5333</span>                        1),              <span class="comment">/* Mark identified </span></div>
-<div class="line"><a name="l05334"></a><span class="lineno"> 5334</span> <span class="comment">                               invalid values? (1=yes) */</span></div>
-<div class="line"><a name="l05335"></a><span class="lineno"> 5335</span>        <span class="stringliteral">"Error loading line table from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l05336"></a><span class="lineno"> 5336</span>        base_extension + UVES_LINE_TABLE_EXTENSION, *linetable_filename);</div>
-<div class="line"><a name="l05337"></a><span class="lineno"> 5337</span> </div>
-<div class="line"><a name="l05338"></a><span class="lineno"> 5338</span>     <span class="comment">/* Read header of table extension if requested */</span></div>
-<div class="line"><a name="l05339"></a><span class="lineno"> 5339</span>     <span class="keywordflow">if</span> (linetable_header != NULL)</div>
-<div class="line"><a name="l05340"></a><span class="lineno"> 5340</span>     {</div>
-<div class="line"><a name="l05341"></a><span class="lineno"> 5341</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *linetable_header = </div>
-<div class="line"><a name="l05342"></a><span class="lineno"> 5342</span>            <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*linetable_filename, </div>
-<div class="line"><a name="l05343"></a><span class="lineno"> 5343</span>                      base_extension + UVES_LINE_TABLE_EXTENSION),</div>
-<div class="line"><a name="l05344"></a><span class="lineno"> 5344</span>            <span class="stringliteral">"Could not load header of extension %d of '%s'"</span>, </div>
-<div class="line"><a name="l05345"></a><span class="lineno"> 5345</span>            base_extension + UVES_LINE_TABLE_EXTENSION, *linetable_filename);</div>
-<div class="line"><a name="l05346"></a><span class="lineno"> 5346</span> </div>
-<div class="line"><a name="l05347"></a><span class="lineno"> 5347</span>         <span class="keywordflow">if</span> (format_is_midas)</div>
-<div class="line"><a name="l05348"></a><span class="lineno"> 5348</span>         {</div>
-<div class="line"><a name="l05349"></a><span class="lineno"> 5349</span>             <span class="keywordtype">int</span> size = 0;</div>
-<div class="line"><a name="l05350"></a><span class="lineno"> 5350</span>                     cpl_type type;</div>
-<div class="line"><a name="l05351"></a><span class="lineno"> 5351</span>             absorders = uves_read_midas_array(*linetable_header, <span class="stringliteral">"ORDER"</span>, &size,</div>
-<div class="line"><a name="l05352"></a><span class="lineno"> 5352</span>                                                       &type, NULL);</div>
-<div class="line"><a name="l05353"></a><span class="lineno"> 5353</span>                     </div>
-<div class="line"><a name="l05354"></a><span class="lineno"> 5354</span>                     assure( type == CPL_TYPE_INT, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l05355"></a><span class="lineno"> 5355</span>                             <span class="stringliteral">"Type of ORDER is %s, int expected"</span>,</div>
-<div class="line"><a name="l05356"></a><span class="lineno"> 5356</span>                             <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l05357"></a><span class="lineno"> 5357</span> </div>
-<div class="line"><a name="l05358"></a><span class="lineno"> 5358</span>             assure( size == 2, </div>
-<div class="line"><a name="l05359"></a><span class="lineno"> 5359</span>                 CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l05360"></a><span class="lineno"> 5360</span>                 <span class="stringliteral">"'ORDER' array has size %d. Size 2 expected."</span>, size);</div>
-<div class="line"><a name="l05361"></a><span class="lineno"> 5361</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( <a class="code" href="group__uves__pfits.html#ga33e51be1bfd4b8f42972789c417211ae" title="Write the first absolute order number.">uves_pfits_set_firstabsorder</a>(*linetable_header, absorders[0]),</div>
-<div class="line"><a name="l05362"></a><span class="lineno"> 5362</span>                 <a class="code" href="group__uves__pfits.html#ga69fae305f143947cdd58f3c575e7ba9a" title="Write the last absolute order number.">uves_pfits_set_lastabsorder</a>(*linetable_header, absorders[1])),</div>
-<div class="line"><a name="l05363"></a><span class="lineno"> 5363</span>               <span class="stringliteral">"Error updating table header"</span>);</div>
-<div class="line"><a name="l05364"></a><span class="lineno"> 5364</span>         }        </div>
-<div class="line"><a name="l05365"></a><span class="lineno"> 5365</span>     }</div>
-<div class="line"><a name="l05366"></a><span class="lineno"> 5366</span>     </div>
-<div class="line"><a name="l05367"></a><span class="lineno"> 5367</span>     <span class="comment">/* Read the polynomials if requested */</span></div>
-<div class="line"><a name="l05368"></a><span class="lineno"> 5368</span>     <span class="keywordflow">if</span> (format_is_midas)</div>
-<div class="line"><a name="l05369"></a><span class="lineno"> 5369</span>     {</div>
-<div class="line"><a name="l05370"></a><span class="lineno"> 5370</span>         <span class="comment">/* Rename & cast order/ident/X columns */</span></div>
-<div class="line"><a name="l05371"></a><span class="lineno"> 5371</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_cast_column(*linetable, <span class="stringliteral">"X"</span>, <span class="stringliteral">"xxxx"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l05372"></a><span class="lineno"> 5372</span>             cpl_table_erase_column(*linetable, <span class="stringliteral">"X"</span>),</div>
-<div class="line"><a name="l05373"></a><span class="lineno"> 5373</span>             cpl_table_name_column(*linetable, <span class="stringliteral">"xxxx"</span>, <span class="stringliteral">"X"</span>)),</div>
-<div class="line"><a name="l05374"></a><span class="lineno"> 5374</span>           <span class="stringliteral">"Error casting and renaming column 'X'"</span>);</div>
-<div class="line"><a name="l05375"></a><span class="lineno"> 5375</span>         </div>
-<div class="line"><a name="l05376"></a><span class="lineno"> 5376</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_cast_column(*linetable, <span class="stringliteral">"YNEW"</span>, <span class="stringliteral">"xxxx"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l05377"></a><span class="lineno"> 5377</span>             cpl_table_erase_column(*linetable, <span class="stringliteral">"YNEW"</span>),</div>
-<div class="line"><a name="l05378"></a><span class="lineno"> 5378</span>             cpl_table_name_column(*linetable, <span class="stringliteral">"xxxx"</span>, <span class="stringliteral">"Ynew"</span>)),</div>
-<div class="line"><a name="l05379"></a><span class="lineno"> 5379</span>           <span class="stringliteral">"Error casting and renaming column 'YNEW'"</span>);</div>
-<div class="line"><a name="l05380"></a><span class="lineno"> 5380</span>         </div>
-<div class="line"><a name="l05381"></a><span class="lineno"> 5381</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_cast_column(*linetable, <span class="stringliteral">"Y"</span>, <span class="stringliteral">"xxxx"</span>, CPL_TYPE_INT),</div>
-<div class="line"><a name="l05382"></a><span class="lineno"> 5382</span>             cpl_table_erase_column(*linetable, <span class="stringliteral">"Y"</span>),</div>
-<div class="line"><a name="l05383"></a><span class="lineno"> 5383</span>             cpl_table_name_column(*linetable, <span class="stringliteral">"xxxx"</span>, <span class="stringliteral">"Y"</span>)),</div>
-<div class="line"><a name="l05384"></a><span class="lineno"> 5384</span>            <span class="stringliteral">"Error casting and renaming column 'Y'"</span>);</div>
-<div class="line"><a name="l05385"></a><span class="lineno"> 5385</span> </div>
-<div class="line"><a name="l05386"></a><span class="lineno"> 5386</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_cast_column(*linetable, <span class="stringliteral">"ORDER"</span>, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT),</div>
-<div class="line"><a name="l05387"></a><span class="lineno"> 5387</span>             cpl_table_erase_column(*linetable, <span class="stringliteral">"ORDER"</span>)),</div>
-<div class="line"><a name="l05388"></a><span class="lineno"> 5388</span>            <span class="stringliteral">"Error casting and renaming column 'ORDER'"</span>);</div>
-<div class="line"><a name="l05389"></a><span class="lineno"> 5389</span>            </div>
-<div class="line"><a name="l05390"></a><span class="lineno"> 5390</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_name_column(*linetable, <span class="stringliteral">"IDENT"</span>, <span class="stringliteral">"Ident"</span>),</div>
-<div class="line"><a name="l05391"></a><span class="lineno"> 5391</span>            <span class="stringliteral">"Error renaming column 'IDENT'"</span>);</div>
-<div class="line"><a name="l05392"></a><span class="lineno"> 5392</span> </div>
-<div class="line"><a name="l05393"></a><span class="lineno"> 5393</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( midas_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(</div>
-<div class="line"><a name="l05394"></a><span class="lineno"> 5394</span>                *linetable_filename, </div>
-<div class="line"><a name="l05395"></a><span class="lineno"> 5395</span>                base_extension + UVES_LINE_TABLE_EXTENSION),</div>
-<div class="line"><a name="l05396"></a><span class="lineno"> 5396</span>            <span class="stringliteral">"Could not load header of extension %d of '%s'"</span>,</div>
-<div class="line"><a name="l05397"></a><span class="lineno"> 5397</span>            base_extension + UVES_LINE_TABLE_EXTENSION, *linetable_filename);</div>
-<div class="line"><a name="l05398"></a><span class="lineno"> 5398</span>         </div>
-<div class="line"><a name="l05399"></a><span class="lineno"> 5399</span>         <span class="keywordflow">if</span> (dispersion_relation != NULL) {</div>
-<div class="line"><a name="l05400"></a><span class="lineno"> 5400</span>             <span class="keywordflow">if</span> (trace_id > 0) {</div>
-<div class="line"><a name="l05401"></a><span class="lineno"> 5401</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *dispersion_relation = </div>
-<div class="line"><a name="l05402"></a><span class="lineno"> 5402</span>                        uves_polynomial_convert_from_plist_midas(midas_header,</div>
-<div class="line"><a name="l05403"></a><span class="lineno"> 5403</span>                                                                 <span class="stringliteral">"REGR"</span>, trace_id),</div>
-<div class="line"><a name="l05404"></a><span class="lineno"> 5404</span>                        <span class="stringliteral">"Error reading polynomial 'REGR%d' from '%s'"</span>,</div>
-<div class="line"><a name="l05405"></a><span class="lineno"> 5405</span>                        trace_id,</div>
-<div class="line"><a name="l05406"></a><span class="lineno"> 5406</span>                        *linetable_filename);</div>
-<div class="line"><a name="l05407"></a><span class="lineno"> 5407</span>             }</div>
-<div class="line"><a name="l05408"></a><span class="lineno"> 5408</span>             <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l05409"></a><span class="lineno"> 5409</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *dispersion_relation = </div>
-<div class="line"><a name="l05410"></a><span class="lineno"> 5410</span>                        uves_polynomial_convert_from_plist_midas(midas_header,</div>
-<div class="line"><a name="l05411"></a><span class="lineno"> 5411</span>                                                                 <span class="stringliteral">"REGR"</span>, -1),</div>
-<div class="line"><a name="l05412"></a><span class="lineno"> 5412</span>                        <span class="stringliteral">"Error reading polynomial 'REGR' from '%s'"</span>,</div>
-<div class="line"><a name="l05413"></a><span class="lineno"> 5413</span>                        *linetable_filename);</div>
-<div class="line"><a name="l05414"></a><span class="lineno"> 5414</span>             }</div>
-<div class="line"><a name="l05415"></a><span class="lineno"> 5415</span>         }</div>
-<div class="line"><a name="l05416"></a><span class="lineno"> 5416</span>         </div>
-<div class="line"><a name="l05417"></a><span class="lineno"> 5417</span>     </div>
-<div class="line"><a name="l05418"></a><span class="lineno"> 5418</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( absolute_order_local = </div>
-<div class="line"><a name="l05419"></a><span class="lineno"> 5419</span>              uves_polynomial_convert_from_plist_midas(midas_header, <span class="stringliteral">"RORD"</span>,-1),</div>
-<div class="line"><a name="l05420"></a><span class="lineno"> 5420</span>              <span class="stringliteral">"Error reading polynomial 'RORD' from '%s'"</span>, *linetable_filename);</div>
-<div class="line"><a name="l05421"></a><span class="lineno"> 5421</span>       </div>
-<div class="line"><a name="l05422"></a><span class="lineno"> 5422</span>       <span class="comment">/* For FLAMES data, it seems that the polynomial is half an order shifted</span></div>
-<div class="line"><a name="l05423"></a><span class="lineno"> 5423</span> <span class="comment">         (for unknown reasons) */</span></div>
-<div class="line"><a name="l05424"></a><span class="lineno"> 5424</span>         <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l05425"></a><span class="lineno"> 5425</span>             {</div>
-<div class="line"><a name="l05426"></a><span class="lineno"> 5426</span>                 <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(absolute_order_local, 0, 0.5) );</div>
-<div class="line"><a name="l05427"></a><span class="lineno"> 5427</span>             }</div>
-<div class="line"><a name="l05428"></a><span class="lineno"> 5428</span>     }</div>
-<div class="line"><a name="l05429"></a><span class="lineno"> 5429</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05430"></a><span class="lineno"> 5430</span>     <span class="comment">/* CPL format */</span></div>
-<div class="line"><a name="l05431"></a><span class="lineno"> 5431</span>     {</div>
-<div class="line"><a name="l05432"></a><span class="lineno"> 5432</span>         <span class="comment">/* physmod + wavecal recipes use different naming conventions,</span></div>
-<div class="line"><a name="l05433"></a><span class="lineno"> 5433</span> <span class="comment">           workaround for this:</span></div>
-<div class="line"><a name="l05434"></a><span class="lineno"> 5434</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l05435"></a><span class="lineno"> 5435</span>         <span class="keywordflow">if</span> (cpl_table_has_column(*linetable, <span class="stringliteral">"YNEW"</span>))</div>
-<div class="line"><a name="l05436"></a><span class="lineno"> 5436</span>         {</div>
-<div class="line"><a name="l05437"></a><span class="lineno"> 5437</span>             cpl_table_name_column(*linetable, <span class="stringliteral">"YNEW"</span>, <span class="stringliteral">"Ynew"</span>);</div>
-<div class="line"><a name="l05438"></a><span class="lineno"> 5438</span>         }</div>
-<div class="line"><a name="l05439"></a><span class="lineno"> 5439</span> </div>
-<div class="line"><a name="l05440"></a><span class="lineno"> 5440</span>         <span class="keywordflow">if</span> (dispersion_relation != NULL)</div>
-<div class="line"><a name="l05441"></a><span class="lineno"> 5441</span>         {</div>
-<div class="line"><a name="l05442"></a><span class="lineno"> 5442</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *dispersion_relation = load_polynomial(</div>
-<div class="line"><a name="l05443"></a><span class="lineno"> 5443</span>                    *linetable_filename,</div>
-<div class="line"><a name="l05444"></a><span class="lineno"> 5444</span>                    base_extension + UVES_LINE_TABLE_EXTENSION_DISPERSION),</div>
-<div class="line"><a name="l05445"></a><span class="lineno"> 5445</span>                <span class="stringliteral">"Could not read polynomial from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l05446"></a><span class="lineno"> 5446</span>                base_extension + UVES_LINE_TABLE_EXTENSION_DISPERSION,</div>
-<div class="line"><a name="l05447"></a><span class="lineno"> 5447</span>                *linetable_filename);</div>
-<div class="line"><a name="l05448"></a><span class="lineno"> 5448</span>         }</div>
-<div class="line"><a name="l05449"></a><span class="lineno"> 5449</span> </div>
-<div class="line"><a name="l05450"></a><span class="lineno"> 5450</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( absolute_order_local =</div>
-<div class="line"><a name="l05451"></a><span class="lineno"> 5451</span>            load_polynomial(*linetable_filename, </div>
-<div class="line"><a name="l05452"></a><span class="lineno"> 5452</span>                    base_extension + UVES_LINE_TABLE_EXTENSION_ABSORDER),</div>
-<div class="line"><a name="l05453"></a><span class="lineno"> 5453</span>            <span class="stringliteral">"Could not read polynomial from extension %d of file '%s'"</span>,</div>
-<div class="line"><a name="l05454"></a><span class="lineno"> 5454</span>            base_extension + UVES_LINE_TABLE_EXTENSION_ABSORDER, *linetable_filename);</div>
-<div class="line"><a name="l05455"></a><span class="lineno"> 5455</span>     }</div>
-<div class="line"><a name="l05456"></a><span class="lineno"> 5456</span>         </div>
-<div class="line"><a name="l05457"></a><span class="lineno"> 5457</span>     <span class="keywordflow">if</span> (absolute_order != NULL)</div>
-<div class="line"><a name="l05458"></a><span class="lineno"> 5458</span>     {</div>
-<div class="line"><a name="l05459"></a><span class="lineno"> 5459</span>         *absolute_order = <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(absolute_order_local);</div>
-<div class="line"><a name="l05460"></a><span class="lineno"> 5460</span>     }</div>
-<div class="line"><a name="l05461"></a><span class="lineno"> 5461</span>     </div>
-<div class="line"><a name="l05462"></a><span class="lineno"> 5462</span> </div>
-<div class="line"><a name="l05463"></a><span class="lineno"> 5463</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( align_order_line_table(</div>
-<div class="line"><a name="l05464"></a><span class="lineno"> 5464</span>            *linetable, absolute_order_local, linetable_header, </div>
-<div class="line"><a name="l05465"></a><span class="lineno"> 5465</span>            order_locations, minorder, maxorder),</div>
-<div class="line"><a name="l05466"></a><span class="lineno"> 5466</span>        <span class="stringliteral">"Error while aligning line/order tables"</span>);</div>
-<div class="line"><a name="l05467"></a><span class="lineno"> 5467</span> </div>
-<div class="line"><a name="l05468"></a><span class="lineno"> 5468</span> </div>
-<div class="line"><a name="l05469"></a><span class="lineno"> 5469</span>     <span class="comment">/* Remove all other columns than 'Ident', 'Order', 'X', 'Pixelsize' */</span></div>
-<div class="line"><a name="l05470"></a><span class="lineno"> 5470</span>     {</div>
-<div class="line"><a name="l05471"></a><span class="lineno"> 5471</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *colname;</div>
-<div class="line"><a name="l05472"></a><span class="lineno"> 5472</span> </div>
-<div class="line"><a name="l05473"></a><span class="lineno"> 5473</span>     <span class="comment">/* Loop through all columns */</span></div>
-<div class="line"><a name="l05474"></a><span class="lineno"> 5474</span> </div>
-<div class="line"><a name="l05475"></a><span class="lineno"> 5475</span>     <span class="comment">/* It is undefined behaviour (for a reason!) to loop through</span></div>
-<div class="line"><a name="l05476"></a><span class="lineno"> 5476</span> <span class="comment">       columns while deleting some of them. Therefore, copy the</span></div>
-<div class="line"><a name="l05477"></a><span class="lineno"> 5477</span> <span class="comment">       structure of the linetable to another (empty) table */</span></div>
-<div class="line"><a name="l05478"></a><span class="lineno"> 5478</span>     </div>
-<div class="line"><a name="l05479"></a><span class="lineno"> 5479</span>     uves_free_table(&temp);</div>
-<div class="line"><a name="l05480"></a><span class="lineno"> 5480</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( temp = cpl_table_new(0),</div>
-<div class="line"><a name="l05481"></a><span class="lineno"> 5481</span>         cpl_table_copy_structure(temp, *linetable)),</div>
-<div class="line"><a name="l05482"></a><span class="lineno"> 5482</span>            <span class="stringliteral">"Error duplicating line table column structure"</span>);</div>
-<div class="line"><a name="l05483"></a><span class="lineno"> 5483</span>     </div>
-<div class="line"><a name="l05484"></a><span class="lineno"> 5484</span>     colname = cpl_table_get_column_name(temp);</div>
-<div class="line"><a name="l05485"></a><span class="lineno"> 5485</span>     <span class="keywordflow">while</span> (colname != NULL)</div>
-<div class="line"><a name="l05486"></a><span class="lineno"> 5486</span>         {</div>
-<div class="line"><a name="l05487"></a><span class="lineno"> 5487</span>         <span class="keywordflow">if</span> (!(strcmp(colname, <span class="stringliteral">"X"</span>        ) == 0 ||</div>
-<div class="line"><a name="l05488"></a><span class="lineno"> 5488</span>               strcmp(colname, <span class="stringliteral">"Order"</span>    ) == 0 ||</div>
-<div class="line"><a name="l05489"></a><span class="lineno"> 5489</span>               strcmp(colname, <span class="stringliteral">"Ident"</span>    ) == 0 ||</div>
-<div class="line"><a name="l05490"></a><span class="lineno"> 5490</span>           strcmp(colname, <span class="stringliteral">"FIBRE"</span>    ) == 0 ||</div>
-<div class="line"><a name="l05491"></a><span class="lineno"> 5491</span>           strcmp(colname, <span class="stringliteral">"Fibre"</span>    ) == 0 ||</div>
-<div class="line"><a name="l05492"></a><span class="lineno"> 5492</span>               strcmp(colname, LINETAB_PIXELSIZE) == 0))</div>
-<div class="line"><a name="l05493"></a><span class="lineno"> 5493</span>             {</div>
-<div class="line"><a name="l05494"></a><span class="lineno"> 5494</span>             cpl_table_erase_column(*linetable, colname);</div>
-<div class="line"><a name="l05495"></a><span class="lineno"> 5495</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Removing unused column '%s'"</span>, colname);</div>
-<div class="line"><a name="l05496"></a><span class="lineno"> 5496</span>             }</div>
-<div class="line"><a name="l05497"></a><span class="lineno"> 5497</span>         </div>
-<div class="line"><a name="l05498"></a><span class="lineno"> 5498</span>         <span class="comment">/* Call with NULL argument to get the next column name */</span></div>
-<div class="line"><a name="l05499"></a><span class="lineno"> 5499</span>         colname = cpl_table_get_column_name(NULL);</div>
-<div class="line"><a name="l05500"></a><span class="lineno"> 5500</span>         }</div>
-<div class="line"><a name="l05501"></a><span class="lineno"> 5501</span>     }</div>
-<div class="line"><a name="l05502"></a><span class="lineno"> 5502</span>     </div>
-<div class="line"><a name="l05503"></a><span class="lineno"> 5503</span>     <span class="comment">/* support MIDAS</span></div>
-<div class="line"><a name="l05504"></a><span class="lineno"> 5504</span> <span class="comment">     * Calculate 'Pixel' column (lower case) for MIDAS tables </span></div>
-<div class="line"><a name="l05505"></a><span class="lineno"> 5505</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l05506"></a><span class="lineno"> 5506</span>     <span class="keywordflow">if</span> ( !cpl_table_has_column(*linetable, LINETAB_PIXELSIZE) )</div>
-<div class="line"><a name="l05507"></a><span class="lineno"> 5507</span>     {</div>
-<div class="line"><a name="l05508"></a><span class="lineno"> 5508</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( create_column_pixelsize(*linetable),</div>
-<div class="line"><a name="l05509"></a><span class="lineno"> 5509</span>            <span class="stringliteral">"Error adding 'Pixelsize' column"</span>);</div>
-<div class="line"><a name="l05510"></a><span class="lineno"> 5510</span>     }</div>
-<div class="line"><a name="l05511"></a><span class="lineno"> 5511</span> </div>
-<div class="line"><a name="l05512"></a><span class="lineno"> 5512</span>     <span class="comment">/* Remove un-identified lines (where Ident = invalid or Ident = zero) ... */</span></div>
-<div class="line"><a name="l05513"></a><span class="lineno"> 5513</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_erase_invalid_table_rows(*linetable, <span class="stringliteral">"Ident"</span>),</div>
-<div class="line"><a name="l05514"></a><span class="lineno"> 5514</span>        <span class="stringliteral">"Error deleting rows with illegal 'Ident' value"</span>);</div>
-<div class="line"><a name="l05515"></a><span class="lineno"> 5515</span> </div>
-<div class="line"><a name="l05516"></a><span class="lineno"> 5516</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_erase_table_rows(*linetable, <span class="stringliteral">"Ident"</span>, CPL_LESS_THAN, 0.01),</div>
-<div class="line"><a name="l05517"></a><span class="lineno"> 5517</span>        <span class="stringliteral">"Error deleting rows with illegal 'Ident' value"</span>);</div>
-<div class="line"><a name="l05518"></a><span class="lineno"> 5518</span>     </div>
-<div class="line"><a name="l05519"></a><span class="lineno"> 5519</span>     <span class="comment">/* Check for any other invalid value */</span></div>
-<div class="line"><a name="l05520"></a><span class="lineno"> 5520</span>     assure( uves_erase_invalid_table_rows(*linetable, NULL) == 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l05521"></a><span class="lineno"> 5521</span>         <span class="stringliteral">"After deleting rows with invalid 'Ident' values, "</span></div>
-<div class="line"><a name="l05522"></a><span class="lineno"> 5522</span>         <span class="stringliteral">"the table in extension %d of file '%s' still contains invalid rows"</span>,</div>
-<div class="line"><a name="l05523"></a><span class="lineno"> 5523</span>         base_extension + UVES_LINE_TABLE_EXTENSION, *linetable_filename);</div>
-<div class="line"><a name="l05524"></a><span class="lineno"> 5524</span>     </div>
-<div class="line"><a name="l05525"></a><span class="lineno"> 5525</span>     <span class="comment">/* Sort line table by 'Order' (ascending), then 'X' (ascending) */</span></div>
-<div class="line"><a name="l05526"></a><span class="lineno"> 5526</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_sort_table_2(*linetable, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"X"</span>, <span class="keyword">false</span>, <span class="keyword">false</span>), <span class="stringliteral">"Error sorting line table"</span>);</div>
-<div class="line"><a name="l05527"></a><span class="lineno"> 5527</span>     </div>
-<div class="line"><a name="l05528"></a><span class="lineno"> 5528</span>   cleanup:</div>
-<div class="line"><a name="l05529"></a><span class="lineno"> 5529</span>     uves_free_propertylist(&primary_header);</div>
-<div class="line"><a name="l05530"></a><span class="lineno"> 5530</span>     uves_free_propertylist(&header);</div>
-<div class="line"><a name="l05531"></a><span class="lineno"> 5531</span>     uves_free_propertylist(&midas_header);</div>
-<div class="line"><a name="l05532"></a><span class="lineno"> 5532</span>     uves_free_table(&temp);</div>
-<div class="line"><a name="l05533"></a><span class="lineno"> 5533</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&absolute_order_local);</div>
-<div class="line"><a name="l05534"></a><span class="lineno"> 5534</span>     cpl_free(absorders);</div>
-<div class="line"><a name="l05535"></a><span class="lineno"> 5535</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l05536"></a><span class="lineno"> 5536</span>     *linetable_filename = NULL;</div>
-<div class="line"><a name="l05537"></a><span class="lineno"> 5537</span>     uves_free_table(linetable);</div>
-<div class="line"><a name="l05538"></a><span class="lineno"> 5538</span>     <span class="keywordflow">if</span> (dispersion_relation != NULL) <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(dispersion_relation);</div>
-<div class="line"><a name="l05539"></a><span class="lineno"> 5539</span>     <span class="keywordflow">if</span> (absolute_order      != NULL) <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(absolute_order);</div>
-<div class="line"><a name="l05540"></a><span class="lineno"> 5540</span>     }</div>
-<div class="line"><a name="l05541"></a><span class="lineno"> 5541</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l05542"></a><span class="lineno"> 5542</span> }</div>
-<div class="line"><a name="l05543"></a><span class="lineno"> 5543</span> </div>
-<div class="line"><a name="l05544"></a><span class="lineno"> 5544</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05548"></a><span class="lineno"> 5548</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05549"></a><span class="lineno"> 5549</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l05550"></a><span class="lineno"> 5550</span> uves_load_linetable_const(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l05551"></a><span class="lineno"> 5551</span>                           <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l05552"></a><span class="lineno"> 5552</span>                           <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l05553"></a><span class="lineno"> 5553</span>                           <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder,</div>
-<div class="line"><a name="l05554"></a><span class="lineno"> 5554</span>                           <span class="keyword">const</span> <span class="keywordtype">char</span> **linetable_filename,</div>
-<div class="line"><a name="l05555"></a><span class="lineno"> 5555</span>                           <span class="keyword">const</span> cpl_table **linetable,</div>
-<div class="line"><a name="l05556"></a><span class="lineno"> 5556</span>                           <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **linetable_header,</div>
-<div class="line"><a name="l05557"></a><span class="lineno"> 5557</span>                           <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> **dispersion_relation,</div>
-<div class="line"><a name="l05558"></a><span class="lineno"> 5558</span>                           <a class="code" href="struct__polynomial.html">polynomial</a> **absolute_order,</div>
-<div class="line"><a name="l05559"></a><span class="lineno"> 5559</span>                           <span class="keyword">enum</span> uves_chip chip, <span class="keywordtype">int</span> trace_id, <span class="keywordtype">int</span> window)</div>
-<div class="line"><a name="l05560"></a><span class="lineno"> 5560</span> {</div>
-<div class="line"><a name="l05561"></a><span class="lineno"> 5561</span>     uves_load_linetable(frames, flames, chip_name, order_locations, </div>
-<div class="line"><a name="l05562"></a><span class="lineno"> 5562</span>                         minorder, maxorder, </div>
-<div class="line"><a name="l05563"></a><span class="lineno"> 5563</span>                         linetable_filename, </div>
-<div class="line"><a name="l05564"></a><span class="lineno"> 5564</span>                         (cpl_table **)linetable, </div>
-<div class="line"><a name="l05565"></a><span class="lineno"> 5565</span>                         (<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **)linetable_header,</div>
-<div class="line"><a name="l05566"></a><span class="lineno"> 5566</span>                         (<a class="code" href="struct__polynomial.html">polynomial</a> **)dispersion_relation, </div>
-<div class="line"><a name="l05567"></a><span class="lineno"> 5567</span>                         absolute_order,</div>
-<div class="line"><a name="l05568"></a><span class="lineno"> 5568</span>                         chip, trace_id, window);</div>
-<div class="line"><a name="l05569"></a><span class="lineno"> 5569</span> }</div>
-<div class="line"><a name="l05570"></a><span class="lineno"> 5570</span> </div>
-<div class="line"><a name="l05571"></a><span class="lineno"> 5571</span> </div>
-<div class="line"><a name="l05572"></a><span class="lineno"> 5572</span> </div>
-<div class="line"><a name="l05573"></a><span class="lineno"> 5573</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05588"></a><span class="lineno"> 5588</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05589"></a><span class="lineno"> 5589</span> </div>
-<div class="line"><a name="l05590"></a><span class="lineno"> 5590</span> cpl_error_code</div>
-<div class="line"><a name="l05591"></a><span class="lineno"> 5591</span> uves_load_response_curve(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l05592"></a><span class="lineno"> 5592</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> **response_filename, </div>
-<div class="line"><a name="l05593"></a><span class="lineno"> 5593</span>              cpl_image **response_curve,</div>
-<div class="line"><a name="l05594"></a><span class="lineno"> 5594</span>              cpl_table **master_response,</div>
-<div class="line"><a name="l05595"></a><span class="lineno"> 5595</span>              <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **response_header, <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l05596"></a><span class="lineno"> 5596</span> {</div>
-<div class="line"><a name="l05597"></a><span class="lineno"> 5597</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[2];</div>
-<div class="line"><a name="l05598"></a><span class="lineno"> 5598</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l05599"></a><span class="lineno"> 5599</span>     <span class="keywordtype">int</span> extension;</div>
-<div class="line"><a name="l05600"></a><span class="lineno"> 5600</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l05601"></a><span class="lineno"> 5601</span>     </div>
-<div class="line"><a name="l05602"></a><span class="lineno"> 5602</span>     *response_curve  = NULL;</div>
-<div class="line"><a name="l05603"></a><span class="lineno"> 5603</span>     *response_header = NULL;</div>
-<div class="line"><a name="l05604"></a><span class="lineno"> 5604</span>     *master_response = NULL;</div>
-<div class="line"><a name="l05605"></a><span class="lineno"> 5605</span>     </div>
-<div class="line"><a name="l05606"></a><span class="lineno"> 5606</span>     tags[0]   = UVES_INSTR_RESPONSE (chip);</div>
-<div class="line"><a name="l05607"></a><span class="lineno"> 5607</span>     tags[1]   = UVES_MASTER_RESPONSE(chip);</div>
-<div class="line"><a name="l05608"></a><span class="lineno"> 5608</span>     </div>
-<div class="line"><a name="l05609"></a><span class="lineno"> 5609</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *response_filename = uves_find_frame(frames, tags, number_of_tags, &indx, </div>
-<div class="line"><a name="l05610"></a><span class="lineno"> 5610</span>                         NULL), </div>
-<div class="line"><a name="l05611"></a><span class="lineno"> 5611</span>        <span class="stringliteral">"Could not find '%s' in frame set"</span>, tags[0]);</div>
-<div class="line"><a name="l05612"></a><span class="lineno"> 5612</span> </div>
-<div class="line"><a name="l05613"></a><span class="lineno"> 5613</span>  </div>
-<div class="line"><a name="l05614"></a><span class="lineno"> 5614</span>     <span class="keywordflow">if</span> (indx == 0)</div>
-<div class="line"><a name="l05615"></a><span class="lineno"> 5615</span>     {</div>
-<div class="line"><a name="l05616"></a><span class="lineno"> 5616</span>         extension = UVES_INSTR_RESPONSE_EXTENSION(chip);</div>
-<div class="line"><a name="l05617"></a><span class="lineno"> 5617</span>         </div>
-<div class="line"><a name="l05618"></a><span class="lineno"> 5618</span>         <span class="comment">/* Load the response image</span></div>
-<div class="line"><a name="l05619"></a><span class="lineno"> 5619</span> <span class="comment">           </span></div>
-<div class="line"><a name="l05620"></a><span class="lineno"> 5620</span> <span class="comment">        Note: Even if the response curve was saved as</span></div>
-<div class="line"><a name="l05621"></a><span class="lineno"> 5621</span> <span class="comment">        a FITS file with NAXIS=1, cpl_image_load() will</span></div>
-<div class="line"><a name="l05622"></a><span class="lineno"> 5622</span> <span class="comment">        create an image of size nx1, which is just</span></div>
-<div class="line"><a name="l05623"></a><span class="lineno"> 5623</span> <span class="comment">        what we want</span></div>
-<div class="line"><a name="l05624"></a><span class="lineno"> 5624</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l05625"></a><span class="lineno"> 5625</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *response_curve = uves_load_image_file(*response_filename,</div>
-<div class="line"><a name="l05626"></a><span class="lineno"> 5626</span>                                                       <span class="comment">/* CPL_TYPE_DOUBLE,  Convert to this type */</span></div>
-<div class="line"><a name="l05627"></a><span class="lineno"> 5627</span>                             0,               <span class="comment">/* plane number */</span></div>
-<div class="line"><a name="l05628"></a><span class="lineno"> 5628</span>                                                       extension,        <span class="comment">/* Extension number */</span></div>
-<div class="line"><a name="l05629"></a><span class="lineno"> 5629</span>                             </div>
-<div class="line"><a name="l05630"></a><span class="lineno"> 5630</span> response_header</div>
-<div class="line"><a name="l05631"></a><span class="lineno"> 5631</span>                ),</div>
-<div class="line"><a name="l05632"></a><span class="lineno"> 5632</span>            <span class="stringliteral">"Could not load response curve from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l05633"></a><span class="lineno"> 5633</span>            extension, *response_filename);</div>
-<div class="line"><a name="l05634"></a><span class="lineno"> 5634</span> </div>
-<div class="line"><a name="l05635"></a><span class="lineno"> 5635</span>         <span class="comment">/* Load the header */</span></div>
-<div class="line"><a name="l05636"></a><span class="lineno"> 5636</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l05637"></a><span class="lineno"> 5637</span> <span class="comment">        check( *response_header = uves_propertylist_load(*response_filename,</span></div>
-<div class="line"><a name="l05638"></a><span class="lineno"> 5638</span> <span class="comment">                                extension),</span></div>
-<div class="line"><a name="l05639"></a><span class="lineno"> 5639</span> <span class="comment">           "Could not load header from extension %d of file '%s'", </span></div>
-<div class="line"><a name="l05640"></a><span class="lineno"> 5640</span> <span class="comment">           extension, *response_filename);</span></div>
-<div class="line"><a name="l05641"></a><span class="lineno"> 5641</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l05642"></a><span class="lineno"> 5642</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_warn_if_chip_names_dont_match(*response_header, chip_name, chip) );</div>
-<div class="line"><a name="l05643"></a><span class="lineno"> 5643</span>     }</div>
-<div class="line"><a name="l05644"></a><span class="lineno"> 5644</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05645"></a><span class="lineno"> 5645</span>     <span class="comment">/* Master response */</span></div>
-<div class="line"><a name="l05646"></a><span class="lineno"> 5646</span>     {</div>
-<div class="line"><a name="l05647"></a><span class="lineno"> 5647</span>         extension = UVES_MASTER_RESPONSE_EXTENSION(chip);</div>
-<div class="line"><a name="l05648"></a><span class="lineno"> 5648</span>         </div>
-<div class="line"><a name="l05649"></a><span class="lineno"> 5649</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *master_response = cpl_table_load(*response_filename,</div>
-<div class="line"><a name="l05650"></a><span class="lineno"> 5650</span>                              UVES_LINE_INTMON_TABLE_EXTENSION,</div>
-<div class="line"><a name="l05651"></a><span class="lineno"> 5651</span>                              1),   <span class="comment">/* Mark identified </span></div>
-<div class="line"><a name="l05652"></a><span class="lineno"> 5652</span> <span class="comment">                                  invalid values? (1=yes) */</span></div>
-<div class="line"><a name="l05653"></a><span class="lineno"> 5653</span>            <span class="stringliteral">"Error master response curve from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l05654"></a><span class="lineno"> 5654</span>            extension, *response_filename);           </div>
-<div class="line"><a name="l05655"></a><span class="lineno"> 5655</span> </div>
-<div class="line"><a name="l05656"></a><span class="lineno"> 5656</span>         <span class="comment">/* Convert columns to double */</span></div>
-<div class="line"><a name="l05657"></a><span class="lineno"> 5657</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_cast_column(*master_response, <span class="stringliteral">"LAMBDA"</span>, <span class="stringliteral">"LAMBDA_double"</span>, </div>
-<div class="line"><a name="l05658"></a><span class="lineno"> 5658</span>                       CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l05659"></a><span class="lineno"> 5659</span>             cpl_table_erase_column(*master_response, <span class="stringliteral">"LAMBDA"</span>),</div>
-<div class="line"><a name="l05660"></a><span class="lineno"> 5660</span>             cpl_table_name_column(*master_response, <span class="stringliteral">"LAMBDA_double"</span>, <span class="stringliteral">"LAMBDA"</span>)),</div>
-<div class="line"><a name="l05661"></a><span class="lineno"> 5661</span>           <span class="stringliteral">"Could not cast column 'LAMBDA'"</span>);</div>
-<div class="line"><a name="l05662"></a><span class="lineno"> 5662</span> </div>
-<div class="line"><a name="l05663"></a><span class="lineno"> 5663</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_cast_column(*master_response, <span class="stringliteral">"FLUX_CONV"</span>, <span class="stringliteral">"FLUX_CONV_double"</span>, </div>
-<div class="line"><a name="l05664"></a><span class="lineno"> 5664</span>                       CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l05665"></a><span class="lineno"> 5665</span>             cpl_table_erase_column(*master_response, <span class="stringliteral">"FLUX_CONV"</span>),</div>
-<div class="line"><a name="l05666"></a><span class="lineno"> 5666</span>             cpl_table_name_column(*master_response, <span class="stringliteral">"FLUX_CONV_double"</span>, <span class="stringliteral">"FLUX_CONV"</span>)),</div>
-<div class="line"><a name="l05667"></a><span class="lineno"> 5667</span>           <span class="stringliteral">"Could not cast column 'FLUX_CONV'"</span>);</div>
-<div class="line"><a name="l05668"></a><span class="lineno"> 5668</span> </div>
-<div class="line"><a name="l05669"></a><span class="lineno"> 5669</span>         <span class="comment">/* Do not need the header, which also does not contain </span></div>
-<div class="line"><a name="l05670"></a><span class="lineno"> 5670</span> <span class="comment">           keywords needed for uves_warn_if_chip_names_dont_match() */</span></div>
-<div class="line"><a name="l05671"></a><span class="lineno"> 5671</span>     }</div>
-<div class="line"><a name="l05672"></a><span class="lineno"> 5672</span>     </div>
-<div class="line"><a name="l05673"></a><span class="lineno"> 5673</span>   cleanup:</div>
-<div class="line"><a name="l05674"></a><span class="lineno"> 5674</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l05675"></a><span class="lineno"> 5675</span>     {</div>
-<div class="line"><a name="l05676"></a><span class="lineno"> 5676</span>         *response_filename = NULL;</div>
-<div class="line"><a name="l05677"></a><span class="lineno"> 5677</span>         uves_free_image(response_curve);</div>
-<div class="line"><a name="l05678"></a><span class="lineno"> 5678</span>         uves_free_propertylist(response_header);</div>
-<div class="line"><a name="l05679"></a><span class="lineno"> 5679</span>     }</div>
-<div class="line"><a name="l05680"></a><span class="lineno"> 5680</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l05681"></a><span class="lineno"> 5681</span> }</div>
-<div class="line"><a name="l05682"></a><span class="lineno"> 5682</span> </div>
-<div class="line"><a name="l05683"></a><span class="lineno"> 5683</span> </div>
-<div class="line"><a name="l05684"></a><span class="lineno"> 5684</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05694"></a><span class="lineno"> 5694</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05695"></a><span class="lineno"> 5695</span> cpl_error_code uves_load_lineintmon(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l05696"></a><span class="lineno"> 5696</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> **line_intmon_filename, </div>
-<div class="line"><a name="l05697"></a><span class="lineno"> 5697</span>                     cpl_table **line_intmon)</div>
-<div class="line"><a name="l05698"></a><span class="lineno"> 5698</span> {</div>
-<div class="line"><a name="l05699"></a><span class="lineno"> 5699</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[1] = {UVES_LINE_INTMON_TABLE};    </div>
-<div class="line"><a name="l05700"></a><span class="lineno"> 5700</span> </div>
-<div class="line"><a name="l05701"></a><span class="lineno"> 5701</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l05702"></a><span class="lineno"> 5702</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l05703"></a><span class="lineno"> 5703</span>     </div>
-<div class="line"><a name="l05704"></a><span class="lineno"> 5704</span>     <span class="comment">/* Get filename */</span></div>
-<div class="line"><a name="l05705"></a><span class="lineno"> 5705</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *line_intmon_filename = uves_find_frame(frames, tags, number_of_tags, </div>
-<div class="line"><a name="l05706"></a><span class="lineno"> 5706</span>                            &indx, NULL),</div>
-<div class="line"><a name="l05707"></a><span class="lineno"> 5707</span>        <span class="stringliteral">"No line intensity table (%s) found in SOF"</span>, tags[0]);</div>
-<div class="line"><a name="l05708"></a><span class="lineno"> 5708</span>     </div>
-<div class="line"><a name="l05709"></a><span class="lineno"> 5709</span>     <span class="comment">/* Load table */</span></div>
-<div class="line"><a name="l05710"></a><span class="lineno"> 5710</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *line_intmon = cpl_table_load(*line_intmon_filename,</div>
-<div class="line"><a name="l05711"></a><span class="lineno"> 5711</span>                      UVES_LINE_INTMON_TABLE_EXTENSION,</div>
-<div class="line"><a name="l05712"></a><span class="lineno"> 5712</span>                      1),         <span class="comment">/* Mark identified </span></div>
-<div class="line"><a name="l05713"></a><span class="lineno"> 5713</span> <span class="comment">                            invalid values? (1=yes) */</span></div>
-<div class="line"><a name="l05714"></a><span class="lineno"> 5714</span>        <span class="stringliteral">"Error loading line reference table from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l05715"></a><span class="lineno"> 5715</span>        UVES_LINE_INTMON_TABLE_EXTENSION, *line_intmon_filename);</div>
-<div class="line"><a name="l05716"></a><span class="lineno"> 5716</span> </div>
-<div class="line"><a name="l05717"></a><span class="lineno"> 5717</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_cast_column(*line_intmon, <span class="stringliteral">"WAVE"</span>, <span class="stringliteral">"Wave"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l05718"></a><span class="lineno"> 5718</span>         cpl_table_erase_column(*line_intmon, <span class="stringliteral">"WAVE"</span>)),</div>
-<div class="line"><a name="l05719"></a><span class="lineno"> 5719</span>       <span class="stringliteral">"Could not cast and rename column"</span>);</div>
-<div class="line"><a name="l05720"></a><span class="lineno"> 5720</span>     </div>
-<div class="line"><a name="l05721"></a><span class="lineno"> 5721</span>     <span class="comment">/* Sort table by 'Wave' (ascending) */</span></div>
-<div class="line"><a name="l05722"></a><span class="lineno"> 5722</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(  uves_sort_table_1(*line_intmon, <span class="stringliteral">"Wave"</span>, <span class="keyword">false</span>), <span class="stringliteral">"Error sorting table"</span>);</div>
-<div class="line"><a name="l05723"></a><span class="lineno"> 5723</span>     </div>
-<div class="line"><a name="l05724"></a><span class="lineno"> 5724</span>   cleanup:</div>
-<div class="line"><a name="l05725"></a><span class="lineno"> 5725</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l05726"></a><span class="lineno"> 5726</span>     {</div>
-<div class="line"><a name="l05727"></a><span class="lineno"> 5727</span>         *line_intmon_filename = NULL;</div>
-<div class="line"><a name="l05728"></a><span class="lineno"> 5728</span>         uves_free_table(line_intmon);</div>
-<div class="line"><a name="l05729"></a><span class="lineno"> 5729</span>     }</div>
-<div class="line"><a name="l05730"></a><span class="lineno"> 5730</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l05731"></a><span class="lineno"> 5731</span> }</div>
-<div class="line"><a name="l05732"></a><span class="lineno"> 5732</span> </div>
-<div class="line"><a name="l05733"></a><span class="lineno"> 5733</span> </div>
-<div class="line"><a name="l05734"></a><span class="lineno"> 5734</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05746"></a><span class="lineno"> 5746</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05747"></a><span class="lineno"> 5747</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l05748"></a><span class="lineno"> 5748</span> uves_load_corvel(<span class="keyword">const</span> cpl_frameset *frames,</div>
-<div class="line"><a name="l05749"></a><span class="lineno"> 5749</span>          cpl_table **corvel,</div>
-<div class="line"><a name="l05750"></a><span class="lineno"> 5750</span>          <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **corvel_header,</div>
-<div class="line"><a name="l05751"></a><span class="lineno"> 5751</span>          <span class="keyword">const</span> <span class="keywordtype">char</span> **corvel_filename)</div>
-<div class="line"><a name="l05752"></a><span class="lineno"> 5752</span> {</div>
-<div class="line"><a name="l05753"></a><span class="lineno"> 5753</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[1];</div>
-<div class="line"><a name="l05754"></a><span class="lineno"> 5754</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l05755"></a><span class="lineno"> 5755</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l05756"></a><span class="lineno"> 5756</span>     <span class="keywordtype">int</span> extension;</div>
-<div class="line"><a name="l05757"></a><span class="lineno"> 5757</span> </div>
-<div class="line"><a name="l05758"></a><span class="lineno"> 5758</span>     tags[0] = FLAMES_CORVEL_MASK;</div>
-<div class="line"><a name="l05759"></a><span class="lineno"> 5759</span> </div>
-<div class="line"><a name="l05760"></a><span class="lineno"> 5760</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( corvel != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l05761"></a><span class="lineno"> 5761</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( corvel_filename != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l05762"></a><span class="lineno"> 5762</span> </div>
-<div class="line"><a name="l05763"></a><span class="lineno"> 5763</span>     <span class="comment">/* Get filename */</span></div>
-<div class="line"><a name="l05764"></a><span class="lineno"> 5764</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *corvel_filename = uves_find_frame(frames, tags, number_of_tags, </div>
-<div class="line"><a name="l05765"></a><span class="lineno"> 5765</span>                           &indx, NULL),</div>
-<div class="line"><a name="l05766"></a><span class="lineno"> 5766</span>        <span class="stringliteral">"No velocity correction table (%s) found in SOF"</span>, tags[0]);</div>
-<div class="line"><a name="l05767"></a><span class="lineno"> 5767</span>     </div>
-<div class="line"><a name="l05768"></a><span class="lineno"> 5768</span>     <span class="comment">/* Load table */</span></div>
-<div class="line"><a name="l05769"></a><span class="lineno"> 5769</span>     extension = 1;</div>
-<div class="line"><a name="l05770"></a><span class="lineno"> 5770</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *corvel = cpl_table_load(*corvel_filename,</div>
-<div class="line"><a name="l05771"></a><span class="lineno"> 5771</span>                     extension,</div>
-<div class="line"><a name="l05772"></a><span class="lineno"> 5772</span>                     1),         <span class="comment">/* Mark identified </span></div>
-<div class="line"><a name="l05773"></a><span class="lineno"> 5773</span> <span class="comment">                           invalid values? (1=yes) */</span></div>
-<div class="line"><a name="l05774"></a><span class="lineno"> 5774</span>        <span class="stringliteral">"Error loading line reference table from extension %d of file '%s'"</span>,</div>
-<div class="line"><a name="l05775"></a><span class="lineno"> 5775</span>        extension, *corvel_filename);</div>
-<div class="line"><a name="l05776"></a><span class="lineno"> 5776</span> </div>
-<div class="line"><a name="l05777"></a><span class="lineno"> 5777</span>     <span class="comment">/* Load header */</span></div>
-<div class="line"><a name="l05778"></a><span class="lineno"> 5778</span>     <span class="keywordflow">if</span> (corvel_header != NULL)</div>
-<div class="line"><a name="l05779"></a><span class="lineno"> 5779</span>     {</div>
-<div class="line"><a name="l05780"></a><span class="lineno"> 5780</span>         extension = 0;</div>
-<div class="line"><a name="l05781"></a><span class="lineno"> 5781</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *corvel_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*corvel_filename,</div>
-<div class="line"><a name="l05782"></a><span class="lineno"> 5782</span>                               extension),</div>
-<div class="line"><a name="l05783"></a><span class="lineno"> 5783</span>            <span class="stringliteral">"Could not load header from extension %d of file %s"</span>,</div>
-<div class="line"><a name="l05784"></a><span class="lineno"> 5784</span>            extension, *corvel_filename);</div>
-<div class="line"><a name="l05785"></a><span class="lineno"> 5785</span> </div>
-<div class="line"><a name="l05786"></a><span class="lineno"> 5786</span>     }</div>
-<div class="line"><a name="l05787"></a><span class="lineno"> 5787</span>     </div>
-<div class="line"><a name="l05788"></a><span class="lineno"> 5788</span>   cleanup:</div>
-<div class="line"><a name="l05789"></a><span class="lineno"> 5789</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l05790"></a><span class="lineno"> 5790</span>     {</div>
-<div class="line"><a name="l05791"></a><span class="lineno"> 5791</span>         *corvel_filename = NULL;</div>
-<div class="line"><a name="l05792"></a><span class="lineno"> 5792</span>         uves_free_table(corvel);</div>
-<div class="line"><a name="l05793"></a><span class="lineno"> 5793</span>     }</div>
-<div class="line"><a name="l05794"></a><span class="lineno"> 5794</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l05795"></a><span class="lineno"> 5795</span> }</div>
-<div class="line"><a name="l05796"></a><span class="lineno"> 5796</span> </div>
-<div class="line"><a name="l05797"></a><span class="lineno"> 5797</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05813"></a><span class="lineno"> 5813</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05814"></a><span class="lineno"> 5814</span> cpl_error_code</div>
-<div class="line"><a name="l05815"></a><span class="lineno"> 5815</span> uves_load_linerefertable(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l05816"></a><span class="lineno"> 5816</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> **line_refer_filename, </div>
-<div class="line"><a name="l05817"></a><span class="lineno"> 5817</span>              cpl_table **line_refer, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **line_refer_header)</div>
-<div class="line"><a name="l05818"></a><span class="lineno"> 5818</span> {</div>
-<div class="line"><a name="l05819"></a><span class="lineno"> 5819</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[1] = {UVES_LINE_REFER_TABLE};    </div>
-<div class="line"><a name="l05820"></a><span class="lineno"> 5820</span> </div>
-<div class="line"><a name="l05821"></a><span class="lineno"> 5821</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l05822"></a><span class="lineno"> 5822</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l05823"></a><span class="lineno"> 5823</span>     </div>
-<div class="line"><a name="l05824"></a><span class="lineno"> 5824</span>     <span class="comment">/* Get filename */</span></div>
-<div class="line"><a name="l05825"></a><span class="lineno"> 5825</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *line_refer_filename = uves_find_frame(frames, tags, number_of_tags, </div>
-<div class="line"><a name="l05826"></a><span class="lineno"> 5826</span>                           &indx, NULL),</div>
-<div class="line"><a name="l05827"></a><span class="lineno"> 5827</span>        <span class="stringliteral">"No line reference table (%s) found in SOF"</span>, tags[0]);</div>
-<div class="line"><a name="l05828"></a><span class="lineno"> 5828</span>     </div>
-<div class="line"><a name="l05829"></a><span class="lineno"> 5829</span>     <span class="comment">/* Load table */</span></div>
-<div class="line"><a name="l05830"></a><span class="lineno"> 5830</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *line_refer = cpl_table_load(*line_refer_filename,</div>
-<div class="line"><a name="l05831"></a><span class="lineno"> 5831</span>                        UVES_LINE_REFER_TABLE_EXTENSION,</div>
-<div class="line"><a name="l05832"></a><span class="lineno"> 5832</span>                        1),         <span class="comment">/* Mark identified </span></div>
-<div class="line"><a name="l05833"></a><span class="lineno"> 5833</span> <span class="comment">                              invalid values? (1=yes) */</span></div>
-<div class="line"><a name="l05834"></a><span class="lineno"> 5834</span>        <span class="stringliteral">"Error loading line reference table from extension %d of file '%s'"</span>, </div>
-<div class="line"><a name="l05835"></a><span class="lineno"> 5835</span>        UVES_LINE_REFER_TABLE_EXTENSION, *line_refer_filename);</div>
-<div class="line"><a name="l05836"></a><span class="lineno"> 5836</span> </div>
-<div class="line"><a name="l05837"></a><span class="lineno"> 5837</span>     <span class="comment">/* Load header if requested */</span></div>
-<div class="line"><a name="l05838"></a><span class="lineno"> 5838</span>     <span class="keywordflow">if</span> (line_refer_header != NULL)</div>
-<div class="line"><a name="l05839"></a><span class="lineno"> 5839</span>     {</div>
-<div class="line"><a name="l05840"></a><span class="lineno"> 5840</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *line_refer_header = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(*line_refer_filename, 0),</div>
-<div class="line"><a name="l05841"></a><span class="lineno"> 5841</span>            <span class="stringliteral">"Could not load header of line_refer table in '%s'"</span>, *line_refer_filename);</div>
-<div class="line"><a name="l05842"></a><span class="lineno"> 5842</span>     }</div>
-<div class="line"><a name="l05843"></a><span class="lineno"> 5843</span> </div>
-<div class="line"><a name="l05844"></a><span class="lineno"> 5844</span>     assure( uves_erase_invalid_table_rows(*line_refer, NULL) == 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l05845"></a><span class="lineno"> 5845</span>         <span class="stringliteral">"Table in extension %d of file '%s' contains invalid rows"</span>, </div>
-<div class="line"><a name="l05846"></a><span class="lineno"> 5846</span>         UVES_LINE_REFER_TABLE_EXTENSION, *line_refer_filename);</div>
-<div class="line"><a name="l05847"></a><span class="lineno"> 5847</span> </div>
-<div class="line"><a name="l05848"></a><span class="lineno"> 5848</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_cast_column(*line_refer, <span class="stringliteral">"WAVE"</span>, <span class="stringliteral">"Wave"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l05849"></a><span class="lineno"> 5849</span>         cpl_table_erase_column(*line_refer, <span class="stringliteral">"WAVE"</span>)),</div>
-<div class="line"><a name="l05850"></a><span class="lineno"> 5850</span>        <span class="stringliteral">"Could not cast and rename column"</span>);</div>
-<div class="line"><a name="l05851"></a><span class="lineno"> 5851</span>     </div>
-<div class="line"><a name="l05852"></a><span class="lineno"> 5852</span>     <span class="comment">/* Write uncertainties of wavelengths.</span></div>
-<div class="line"><a name="l05853"></a><span class="lineno"> 5853</span> <span class="comment">       The value 0.002 is finetuned/retro-fitted to get a chi_sq ~ 1 when</span></div>
-<div class="line"><a name="l05854"></a><span class="lineno"> 5854</span> <span class="comment">       using the new catalogue from</span></div>
-<div class="line"><a name="l05855"></a><span class="lineno"> 5855</span> <span class="comment"></span></div>
-<div class="line"><a name="l05856"></a><span class="lineno"> 5856</span> <span class="comment">       M. T. Murphy, P. Tzanavaris, J. K. Webb, C. Lovis</span></div>
-<div class="line"><a name="l05857"></a><span class="lineno"> 5857</span> <span class="comment">       "Selection of ThAr lines for wavelength calibration of echelle</span></div>
-<div class="line"><a name="l05858"></a><span class="lineno"> 5858</span> <span class="comment">       spectra and implications for variations in the fine-structure constant",</span></div>
-<div class="line"><a name="l05859"></a><span class="lineno"> 5859</span> <span class="comment">       Submitted to MNRAS</span></div>
-<div class="line"><a name="l05860"></a><span class="lineno"> 5860</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l05861"></a><span class="lineno"> 5861</span> </div>
-<div class="line"><a name="l05862"></a><span class="lineno"> 5862</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l05863"></a><span class="lineno"> 5863</span> <span class="preprocessor"></span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_duplicate_column(*line_refer, <span class="stringliteral">"dWave"</span>, *line_refer, <span class="stringliteral">"Wave"</span>),</div>
-<div class="line"><a name="l05864"></a><span class="lineno"> 5864</span>            cpl_table_divide_scalar   (*line_refer, <span class="stringliteral">"dWave"</span>, 300000*10)),</div>
-<div class="line"><a name="l05865"></a><span class="lineno"> 5865</span>        <span class="stringliteral">"Error writing wavelength uncertainties"</span>);</div>
-<div class="line"><a name="l05866"></a><span class="lineno"> 5866</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l05867"></a><span class="lineno"> 5867</span> <span class="preprocessor"></span>     <span class="comment">/* we should do this */</span></div>
-<div class="line"><a name="l05868"></a><span class="lineno"> 5868</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_new_column(*line_refer, <span class="stringliteral">"dWave"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l05869"></a><span class="lineno"> 5869</span>             cpl_table_fill_column_window(*line_refer,</div>
-<div class="line"><a name="l05870"></a><span class="lineno"> 5870</span>                                          <span class="stringliteral">"dWave"</span>,</div>
-<div class="line"><a name="l05871"></a><span class="lineno"> 5871</span>                                          0,</div>
-<div class="line"><a name="l05872"></a><span class="lineno"> 5872</span>                                          cpl_table_get_nrow(*line_refer), 0.002)),</div>
-<div class="line"><a name="l05873"></a><span class="lineno"> 5873</span>           <span class="stringliteral">"Error writing wavelength uncertainties"</span>);</div>
-<div class="line"><a name="l05874"></a><span class="lineno"> 5874</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l05875"></a><span class="lineno"> 5875</span> <span class="preprocessor"></span>    </div>
-<div class="line"><a name="l05876"></a><span class="lineno"> 5876</span>     <span class="comment">/* Sort table by 'Wave' (ascending) */</span></div>
-<div class="line"><a name="l05877"></a><span class="lineno"> 5877</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(  uves_sort_table_1(*line_refer, <span class="stringliteral">"Wave"</span>, <span class="keyword">false</span>), <span class="stringliteral">"Error sorting table"</span>);</div>
-<div class="line"><a name="l05878"></a><span class="lineno"> 5878</span>     </div>
-<div class="line"><a name="l05879"></a><span class="lineno"> 5879</span>   cleanup:</div>
-<div class="line"><a name="l05880"></a><span class="lineno"> 5880</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l05881"></a><span class="lineno"> 5881</span>     *line_refer_filename = NULL;</div>
-<div class="line"><a name="l05882"></a><span class="lineno"> 5882</span>     uves_free_table       (line_refer);</div>
-<div class="line"><a name="l05883"></a><span class="lineno"> 5883</span>     <span class="keywordflow">if</span> (line_refer_header != NULL) uves_free_propertylist(line_refer_header);</div>
-<div class="line"><a name="l05884"></a><span class="lineno"> 5884</span>     }</div>
-<div class="line"><a name="l05885"></a><span class="lineno"> 5885</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l05886"></a><span class="lineno"> 5886</span> }</div>
-<div class="line"><a name="l05887"></a><span class="lineno"> 5887</span> </div>
-<div class="line"><a name="l05888"></a><span class="lineno"> 5888</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05902"></a><span class="lineno"> 5902</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05903"></a><span class="lineno"> 5903</span> cpl_error_code</div>
-<div class="line"><a name="l05904"></a><span class="lineno"> 5904</span> uves_load_flux_table(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> **flux_table_filename, </div>
-<div class="line"><a name="l05905"></a><span class="lineno"> 5905</span>              cpl_table **flux_table)</div>
-<div class="line"><a name="l05906"></a><span class="lineno"> 5906</span> {</div>
-<div class="line"><a name="l05907"></a><span class="lineno"> 5907</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[1] = {UVES_FLUX_STD_TABLE};</div>
-<div class="line"><a name="l05908"></a><span class="lineno"> 5908</span> </div>
-<div class="line"><a name="l05909"></a><span class="lineno"> 5909</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l05910"></a><span class="lineno"> 5910</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l05911"></a><span class="lineno"> 5911</span>     </div>
-<div class="line"><a name="l05912"></a><span class="lineno"> 5912</span>     <span class="comment">/* Get filename */</span></div>
-<div class="line"><a name="l05913"></a><span class="lineno"> 5913</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *flux_table_filename = uves_find_frame(frames, tags, number_of_tags, </div>
-<div class="line"><a name="l05914"></a><span class="lineno"> 5914</span>                           &indx, NULL), </div>
-<div class="line"><a name="l05915"></a><span class="lineno"> 5915</span>        <span class="stringliteral">"No standard star flux table (%s) in SOF"</span>, tags[0]);</div>
-<div class="line"><a name="l05916"></a><span class="lineno"> 5916</span> </div>
-<div class="line"><a name="l05917"></a><span class="lineno"> 5917</span>     <span class="comment">/* Load table */</span></div>
-<div class="line"><a name="l05918"></a><span class="lineno"> 5918</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *flux_table = cpl_table_load(*flux_table_filename,</div>
-<div class="line"><a name="l05919"></a><span class="lineno"> 5919</span>                     UVES_FLUX_STD_TABLE_EXTENSION,</div>
-<div class="line"><a name="l05920"></a><span class="lineno"> 5920</span>                     1),         <span class="comment">/* Mark identified </span></div>
-<div class="line"><a name="l05921"></a><span class="lineno"> 5921</span> <span class="comment">                               invalid values? (1=yes) */</span></div>
-<div class="line"><a name="l05922"></a><span class="lineno"> 5922</span>        <span class="stringliteral">"Error loading flux table from extension %d of file '%s'"</span>,</div>
-<div class="line"><a name="l05923"></a><span class="lineno"> 5923</span>        UVES_FLUX_STD_TABLE_EXTENSION, *flux_table_filename);</div>
-<div class="line"><a name="l05924"></a><span class="lineno"> 5924</span> </div>
-<div class="line"><a name="l05925"></a><span class="lineno"> 5925</span>     <span class="keywordflow">if</span> (<span class="keyword">false</span>)</div>
-<div class="line"><a name="l05926"></a><span class="lineno"> 5926</span>         <span class="comment">/* Don't do this, it will remove one std (LTT2415) from the table which has TYPE = NULL.</span></div>
-<div class="line"><a name="l05927"></a><span class="lineno"> 5927</span> <span class="comment">           Instead, set type to "NULL" (this is only used for messages) </span></div>
-<div class="line"><a name="l05928"></a><span class="lineno"> 5928</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l05929"></a><span class="lineno"> 5929</span>         {</div>
-<div class="line"><a name="l05930"></a><span class="lineno"> 5930</span>             <span class="keywordflow">if</span> (uves_erase_invalid_table_rows(*flux_table, NULL) != 0)</div>
-<div class="line"><a name="l05931"></a><span class="lineno"> 5931</span>                 {</div>
-<div class="line"><a name="l05932"></a><span class="lineno"> 5932</span>                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Table in extension %d of file '%s' contains null values"</span>,</div>
-<div class="line"><a name="l05933"></a><span class="lineno"> 5933</span>                                      UVES_FLUX_STD_TABLE_EXTENSION, *flux_table_filename);</div>
-<div class="line"><a name="l05934"></a><span class="lineno"> 5934</span>                 }</div>
-<div class="line"><a name="l05935"></a><span class="lineno"> 5935</span>         }</div>
-<div class="line"><a name="l05936"></a><span class="lineno"> 5936</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05937"></a><span class="lineno"> 5937</span>         {</div>
-<div class="line"><a name="l05938"></a><span class="lineno"> 5938</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l05939"></a><span class="lineno"> 5939</span>             <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(*flux_table); i++)</div>
-<div class="line"><a name="l05940"></a><span class="lineno"> 5940</span>                 {</div>
-<div class="line"><a name="l05941"></a><span class="lineno"> 5941</span>                     <span class="keywordflow">if</span> (cpl_table_get_string(*flux_table, <span class="stringliteral">"TYPE"</span>, i) == NULL)</div>
-<div class="line"><a name="l05942"></a><span class="lineno"> 5942</span>                         {</div>
-<div class="line"><a name="l05943"></a><span class="lineno"> 5943</span>                             cpl_table_set_string(*flux_table, <span class="stringliteral">"TYPE"</span>, i, <span class="stringliteral">"NULL"</span>);</div>
-<div class="line"><a name="l05944"></a><span class="lineno"> 5944</span>                         }</div>
-<div class="line"><a name="l05945"></a><span class="lineno"> 5945</span>                 }</div>
-<div class="line"><a name="l05946"></a><span class="lineno"> 5946</span>         }</div>
-<div class="line"><a name="l05947"></a><span class="lineno"> 5947</span>     </div>
-<div class="line"><a name="l05948"></a><span class="lineno"> 5948</span>         </div>
-<div class="line"><a name="l05949"></a><span class="lineno"> 5949</span>   cleanup:</div>
-<div class="line"><a name="l05950"></a><span class="lineno"> 5950</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l05951"></a><span class="lineno"> 5951</span>     {</div>
-<div class="line"><a name="l05952"></a><span class="lineno"> 5952</span>         *flux_table_filename = NULL;</div>
-<div class="line"><a name="l05953"></a><span class="lineno"> 5953</span>         uves_free_table(flux_table);</div>
-<div class="line"><a name="l05954"></a><span class="lineno"> 5954</span>     }</div>
-<div class="line"><a name="l05955"></a><span class="lineno"> 5955</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l05956"></a><span class="lineno"> 5956</span> }</div>
-<div class="line"><a name="l05957"></a><span class="lineno"> 5957</span> </div>
-<div class="line"><a name="l05958"></a><span class="lineno"> 5958</span> </div>
-<div class="line"><a name="l05959"></a><span class="lineno"> 5959</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05973"></a><span class="lineno"> 5973</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05974"></a><span class="lineno"> 5974</span> cpl_error_code</div>
-<div class="line"><a name="l05975"></a><span class="lineno"> 5975</span> uves_load_atmo_ext(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> **atmext_table_filename, </div>
-<div class="line"><a name="l05976"></a><span class="lineno"> 5976</span>            cpl_table **atmext_table)</div>
-<div class="line"><a name="l05977"></a><span class="lineno"> 5977</span> {</div>
-<div class="line"><a name="l05978"></a><span class="lineno"> 5978</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tags[1] = {UVES_EXTCOEFF_TABLE};</div>
-<div class="line"><a name="l05979"></a><span class="lineno"> 5979</span>     </div>
-<div class="line"><a name="l05980"></a><span class="lineno"> 5980</span>     <span class="keywordtype">int</span> number_of_tags = <span class="keyword">sizeof</span>(tags) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l05981"></a><span class="lineno"> 5981</span>     <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l05982"></a><span class="lineno"> 5982</span>     </div>
-<div class="line"><a name="l05983"></a><span class="lineno"> 5983</span>     <span class="comment">/* Get filename */</span></div>
-<div class="line"><a name="l05984"></a><span class="lineno"> 5984</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *atmext_table_filename = uves_find_frame(frames, tags, number_of_tags, </div>
-<div class="line"><a name="l05985"></a><span class="lineno"> 5985</span>                             &indx, NULL), </div>
-<div class="line"><a name="l05986"></a><span class="lineno"> 5986</span>        <span class="stringliteral">"No atmospheric extinction table (%s) found in SOF"</span>, tags[0]);</div>
-<div class="line"><a name="l05987"></a><span class="lineno"> 5987</span> </div>
-<div class="line"><a name="l05988"></a><span class="lineno"> 5988</span>     <span class="comment">/* Load table */</span></div>
-<div class="line"><a name="l05989"></a><span class="lineno"> 5989</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *atmext_table = cpl_table_load(*atmext_table_filename,</div>
-<div class="line"><a name="l05990"></a><span class="lineno"> 5990</span>                       UVES_EXTCOEFF_TABLE_EXTENSION,</div>
-<div class="line"><a name="l05991"></a><span class="lineno"> 5991</span>                       1),          <span class="comment">/* Mark identified </span></div>
-<div class="line"><a name="l05992"></a><span class="lineno"> 5992</span> <span class="comment">                              invalid values? (1=yes) */</span></div>
-<div class="line"><a name="l05993"></a><span class="lineno"> 5993</span>        <span class="stringliteral">"Error loading atmospheric extinction table from extension %d of file '%s'"</span>,</div>
-<div class="line"><a name="l05994"></a><span class="lineno"> 5994</span>        UVES_EXTCOEFF_TABLE_EXTENSION, *atmext_table_filename);</div>
-<div class="line"><a name="l05995"></a><span class="lineno"> 5995</span>     </div>
-<div class="line"><a name="l05996"></a><span class="lineno"> 5996</span>     assure( uves_erase_invalid_table_rows(*atmext_table, NULL) == 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l05997"></a><span class="lineno"> 5997</span>         <span class="stringliteral">"Table in extension %d of file '%s' contains invalid rows"</span>,</div>
-<div class="line"><a name="l05998"></a><span class="lineno"> 5998</span>         UVES_EXTCOEFF_TABLE_EXTENSION, *atmext_table_filename);</div>
-<div class="line"><a name="l05999"></a><span class="lineno"> 5999</span>     </div>
-<div class="line"><a name="l06000"></a><span class="lineno"> 6000</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_sort_table_1(*atmext_table, <span class="stringliteral">"LAMBDA"</span>, <span class="keyword">false</span>),</div>
-<div class="line"><a name="l06001"></a><span class="lineno"> 6001</span>        <span class="stringliteral">"Error sorting table"</span>);</div>
-<div class="line"><a name="l06002"></a><span class="lineno"> 6002</span>     </div>
-<div class="line"><a name="l06003"></a><span class="lineno"> 6003</span>     <span class="comment">/* Convert columns to double */</span></div>
-<div class="line"><a name="l06004"></a><span class="lineno"> 6004</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_cast_column(*atmext_table, <span class="stringliteral">"LAMBDA"</span>, <span class="stringliteral">"LAMBDA_double"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l06005"></a><span class="lineno"> 6005</span>         cpl_table_erase_column(*atmext_table, <span class="stringliteral">"LAMBDA"</span>),</div>
-<div class="line"><a name="l06006"></a><span class="lineno"> 6006</span>         cpl_table_name_column(*atmext_table, <span class="stringliteral">"LAMBDA_double"</span>, <span class="stringliteral">"LAMBDA"</span>)),</div>
-<div class="line"><a name="l06007"></a><span class="lineno"> 6007</span>       <span class="stringliteral">"Could not cast column 'LAMBDA'"</span>);</div>
-<div class="line"><a name="l06008"></a><span class="lineno"> 6008</span>     </div>
-<div class="line"><a name="l06009"></a><span class="lineno"> 6009</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_cast_column(*atmext_table, <span class="stringliteral">"LA_SILLA"</span>, <span class="stringliteral">"LA_SILLA_double"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l06010"></a><span class="lineno"> 6010</span>         cpl_table_erase_column(*atmext_table, <span class="stringliteral">"LA_SILLA"</span>),</div>
-<div class="line"><a name="l06011"></a><span class="lineno"> 6011</span>         cpl_table_name_column(*atmext_table, <span class="stringliteral">"LA_SILLA_double"</span>, <span class="stringliteral">"LA_SILLA"</span>)),</div>
-<div class="line"><a name="l06012"></a><span class="lineno"> 6012</span>       <span class="stringliteral">"Could not cast column 'LA_SILLA'"</span>);</div>
-<div class="line"><a name="l06013"></a><span class="lineno"> 6013</span>     </div>
-<div class="line"><a name="l06014"></a><span class="lineno"> 6014</span>   cleanup:</div>
-<div class="line"><a name="l06015"></a><span class="lineno"> 6015</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l06016"></a><span class="lineno"> 6016</span>     {</div>
-<div class="line"><a name="l06017"></a><span class="lineno"> 6017</span>         *atmext_table_filename = NULL;</div>
-<div class="line"><a name="l06018"></a><span class="lineno"> 6018</span>         uves_free_table(atmext_table);</div>
-<div class="line"><a name="l06019"></a><span class="lineno"> 6019</span>     }</div>
-<div class="line"><a name="l06020"></a><span class="lineno"> 6020</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l06021"></a><span class="lineno"> 6021</span> }</div>
-<div class="line"><a name="l06022"></a><span class="lineno"> 6022</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06030"></a><span class="lineno"> 6030</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06031"></a><span class="lineno"> 6031</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06032"></a><span class="lineno"> 6032</span> uves_guess_order_table_filename(<span class="keyword">enum</span> uves_chip chip) </div>
-<div class="line"><a name="l06033"></a><span class="lineno"> 6033</span> {</div>
-<div class="line"><a name="l06034"></a><span class="lineno"> 6034</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"orderguesstable"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06035"></a><span class="lineno"> 6035</span> }</div>
-<div class="line"><a name="l06036"></a><span class="lineno"> 6036</span> </div>
-<div class="line"><a name="l06037"></a><span class="lineno"> 6037</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06045"></a><span class="lineno"> 6045</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06046"></a><span class="lineno"> 6046</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06047"></a><span class="lineno"> 6047</span> uves_order_table_filename(<span class="keyword">enum</span> uves_chip chip) </div>
-<div class="line"><a name="l06048"></a><span class="lineno"> 6048</span> {</div>
-<div class="line"><a name="l06049"></a><span class="lineno"> 6049</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"ordertable"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06050"></a><span class="lineno"> 6050</span> }</div>
-<div class="line"><a name="l06051"></a><span class="lineno"> 6051</span> </div>
-<div class="line"><a name="l06052"></a><span class="lineno"> 6052</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06059"></a><span class="lineno"> 6059</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06060"></a><span class="lineno"> 6060</span> <span class="keywordtype">char</span> *uves_ordef_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06061"></a><span class="lineno"> 6061</span> {</div>
-<div class="line"><a name="l06062"></a><span class="lineno"> 6062</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"order_def"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06063"></a><span class="lineno"> 6063</span> }</div>
-<div class="line"><a name="l06064"></a><span class="lineno"> 6064</span> </div>
-<div class="line"><a name="l06065"></a><span class="lineno"> 6065</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06073"></a><span class="lineno"> 6073</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06074"></a><span class="lineno"> 6074</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06075"></a><span class="lineno"> 6075</span> uves_masterdark_filename(<span class="keyword">enum</span> uves_chip chip) </div>
-<div class="line"><a name="l06076"></a><span class="lineno"> 6076</span> {</div>
-<div class="line"><a name="l06077"></a><span class="lineno"> 6077</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"masterdark"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06078"></a><span class="lineno"> 6078</span> }</div>
-<div class="line"><a name="l06079"></a><span class="lineno"> 6079</span> </div>
-<div class="line"><a name="l06080"></a><span class="lineno"> 6080</span> </div>
-<div class="line"><a name="l06081"></a><span class="lineno"> 6081</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06087"></a><span class="lineno"> 6087</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06088"></a><span class="lineno"> 6088</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06089"></a><span class="lineno"> 6089</span> uves_flat_ratio_filename(<span class="keyword">enum</span> uves_chip chip) </div>
-<div class="line"><a name="l06090"></a><span class="lineno"> 6090</span> {</div>
-<div class="line"><a name="l06091"></a><span class="lineno"> 6091</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"ratio"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06092"></a><span class="lineno"> 6092</span> }</div>
-<div class="line"><a name="l06093"></a><span class="lineno"> 6093</span> </div>
-<div class="line"><a name="l06094"></a><span class="lineno"> 6094</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06101"></a><span class="lineno"> 6101</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06102"></a><span class="lineno"> 6102</span> <span class="keywordtype">char</span> *uves_cd_align_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06103"></a><span class="lineno"> 6103</span> {</div>
-<div class="line"><a name="l06104"></a><span class="lineno"> 6104</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"cd_align"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06105"></a><span class="lineno"> 6105</span> }</div>
-<div class="line"><a name="l06106"></a><span class="lineno"> 6106</span> </div>
-<div class="line"><a name="l06107"></a><span class="lineno"> 6107</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06115"></a><span class="lineno"> 6115</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06116"></a><span class="lineno"> 6116</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06117"></a><span class="lineno"> 6117</span> uves_masterflat_filename(<span class="keyword">enum</span> uves_chip chip) </div>
-<div class="line"><a name="l06118"></a><span class="lineno"> 6118</span> {</div>
-<div class="line"><a name="l06119"></a><span class="lineno"> 6119</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"masterflat"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06120"></a><span class="lineno"> 6120</span> }</div>
-<div class="line"><a name="l06121"></a><span class="lineno"> 6121</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06129"></a><span class="lineno"> 6129</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06130"></a><span class="lineno"> 6130</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06131"></a><span class="lineno"> 6131</span> uves_masterflat_bkg_filename(<span class="keyword">enum</span> uves_chip chip) </div>
-<div class="line"><a name="l06132"></a><span class="lineno"> 6132</span> {</div>
-<div class="line"><a name="l06133"></a><span class="lineno"> 6133</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"masterflat_bkg"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06134"></a><span class="lineno"> 6134</span> }</div>
-<div class="line"><a name="l06135"></a><span class="lineno"> 6135</span> </div>
-<div class="line"><a name="l06136"></a><span class="lineno"> 6136</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06144"></a><span class="lineno"> 6144</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06145"></a><span class="lineno"> 6145</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06146"></a><span class="lineno"> 6146</span> uves_masterbias_filename(<span class="keyword">enum</span> uves_chip chip) </div>
-<div class="line"><a name="l06147"></a><span class="lineno"> 6147</span> {</div>
-<div class="line"><a name="l06148"></a><span class="lineno"> 6148</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"masterbias"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06149"></a><span class="lineno"> 6149</span> }</div>
-<div class="line"><a name="l06150"></a><span class="lineno"> 6150</span> </div>
-<div class="line"><a name="l06151"></a><span class="lineno"> 6151</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06159"></a><span class="lineno"> 6159</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06160"></a><span class="lineno"> 6160</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06161"></a><span class="lineno"> 6161</span> uves_guess_line_table_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06162"></a><span class="lineno"> 6162</span> {</div>
-<div class="line"><a name="l06163"></a><span class="lineno"> 6163</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"lineguesstable"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06164"></a><span class="lineno"> 6164</span> }</div>
-<div class="line"><a name="l06165"></a><span class="lineno"> 6165</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06173"></a><span class="lineno"> 6173</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06174"></a><span class="lineno"> 6174</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06175"></a><span class="lineno"> 6175</span> uves_line_table_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06176"></a><span class="lineno"> 6176</span> {</div>
-<div class="line"><a name="l06177"></a><span class="lineno"> 6177</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"linetable"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06178"></a><span class="lineno"> 6178</span> }</div>
-<div class="line"><a name="l06179"></a><span class="lineno"> 6179</span> </div>
-<div class="line"><a name="l06180"></a><span class="lineno"> 6180</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06188"></a><span class="lineno"> 6188</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06189"></a><span class="lineno"> 6189</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06190"></a><span class="lineno"> 6190</span> uves_line_table_filename_paf(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06191"></a><span class="lineno"> 6191</span> {</div>
-<div class="line"><a name="l06192"></a><span class="lineno"> 6192</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"linetable_paf"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06193"></a><span class="lineno"> 6193</span> }</div>
-<div class="line"><a name="l06194"></a><span class="lineno"> 6194</span> </div>
-<div class="line"><a name="l06195"></a><span class="lineno"> 6195</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06203"></a><span class="lineno"> 6203</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06204"></a><span class="lineno"> 6204</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06205"></a><span class="lineno"> 6205</span> uves_response_curve_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06206"></a><span class="lineno"> 6206</span> {</div>
-<div class="line"><a name="l06207"></a><span class="lineno"> 6207</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"response"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06208"></a><span class="lineno"> 6208</span> }</div>
-<div class="line"><a name="l06209"></a><span class="lineno"> 6209</span> </div>
-<div class="line"><a name="l06210"></a><span class="lineno"> 6210</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06218"></a><span class="lineno"> 6218</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06219"></a><span class="lineno"> 6219</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06220"></a><span class="lineno"> 6220</span> uves_response_curve_2d_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06221"></a><span class="lineno"> 6221</span> {</div>
-<div class="line"><a name="l06222"></a><span class="lineno"> 6222</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"response_2d"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06223"></a><span class="lineno"> 6223</span> }</div>
-<div class="line"><a name="l06224"></a><span class="lineno"> 6224</span> </div>
-<div class="line"><a name="l06225"></a><span class="lineno"> 6225</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06233"></a><span class="lineno"> 6233</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06234"></a><span class="lineno"> 6234</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06235"></a><span class="lineno"> 6235</span> uves_response_red_standard_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06236"></a><span class="lineno"> 6236</span> {</div>
-<div class="line"><a name="l06237"></a><span class="lineno"> 6237</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"red_std"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06238"></a><span class="lineno"> 6238</span> }</div>
-<div class="line"><a name="l06239"></a><span class="lineno"> 6239</span> </div>
-<div class="line"><a name="l06240"></a><span class="lineno"> 6240</span> </div>
-<div class="line"><a name="l06241"></a><span class="lineno"> 6241</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06249"></a><span class="lineno"> 6249</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06250"></a><span class="lineno"> 6250</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06251"></a><span class="lineno"> 6251</span> uves_response_red_noappend_standard_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06252"></a><span class="lineno"> 6252</span> {</div>
-<div class="line"><a name="l06253"></a><span class="lineno"> 6253</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"red_nonmerged"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06254"></a><span class="lineno"> 6254</span> }</div>
-<div class="line"><a name="l06255"></a><span class="lineno"> 6255</span> </div>
-<div class="line"><a name="l06256"></a><span class="lineno"> 6256</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06264"></a><span class="lineno"> 6264</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06265"></a><span class="lineno"> 6265</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06266"></a><span class="lineno"> 6266</span> uves_response_bkg_standard_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06267"></a><span class="lineno"> 6267</span> {</div>
-<div class="line"><a name="l06268"></a><span class="lineno"> 6268</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"bkg_std"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06269"></a><span class="lineno"> 6269</span> }</div>
-<div class="line"><a name="l06270"></a><span class="lineno"> 6270</span> </div>
-<div class="line"><a name="l06271"></a><span class="lineno"> 6271</span> </div>
-<div class="line"><a name="l06272"></a><span class="lineno"> 6272</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06280"></a><span class="lineno"> 6280</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06281"></a><span class="lineno"> 6281</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06282"></a><span class="lineno"> 6282</span> uves_order_extract_qc_standard_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06283"></a><span class="lineno"> 6283</span> {</div>
-<div class="line"><a name="l06284"></a><span class="lineno"> 6284</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"order_extract_qc"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06285"></a><span class="lineno"> 6285</span> }</div>
-<div class="line"><a name="l06286"></a><span class="lineno"> 6286</span> </div>
-<div class="line"><a name="l06287"></a><span class="lineno"> 6287</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06295"></a><span class="lineno"> 6295</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06296"></a><span class="lineno"> 6296</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06297"></a><span class="lineno"> 6297</span> uves_response_efficiency_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06298"></a><span class="lineno"> 6298</span> {</div>
-<div class="line"><a name="l06299"></a><span class="lineno"> 6299</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"efficiency"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06300"></a><span class="lineno"> 6300</span> }</div>
-<div class="line"><a name="l06301"></a><span class="lineno"> 6301</span> </div>
-<div class="line"><a name="l06302"></a><span class="lineno"> 6302</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06310"></a><span class="lineno"> 6310</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06311"></a><span class="lineno"> 6311</span> </div>
-<div class="line"><a name="l06312"></a><span class="lineno"> 6312</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06313"></a><span class="lineno"> 6313</span> uves_scired_red_2d_science_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06314"></a><span class="lineno"> 6314</span> {</div>
-<div class="line"><a name="l06315"></a><span class="lineno"> 6315</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"red_2d_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06316"></a><span class="lineno"> 6316</span> }</div>
-<div class="line"><a name="l06317"></a><span class="lineno"> 6317</span> </div>
-<div class="line"><a name="l06325"></a><span class="lineno"> 6325</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06326"></a><span class="lineno"> 6326</span> </div>
-<div class="line"><a name="l06327"></a><span class="lineno"> 6327</span> </div>
-<div class="line"><a name="l06328"></a><span class="lineno"> 6328</span> </div>
-<div class="line"><a name="l06329"></a><span class="lineno"> 6329</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06330"></a><span class="lineno"> 6330</span> uves_scired_red_science_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06331"></a><span class="lineno"> 6331</span> {</div>
-<div class="line"><a name="l06332"></a><span class="lineno"> 6332</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"red_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06333"></a><span class="lineno"> 6333</span> }</div>
-<div class="line"><a name="l06341"></a><span class="lineno"> 6341</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06342"></a><span class="lineno"> 6342</span> </div>
-<div class="line"><a name="l06343"></a><span class="lineno"> 6343</span> </div>
-<div class="line"><a name="l06344"></a><span class="lineno"> 6344</span> </div>
-<div class="line"><a name="l06345"></a><span class="lineno"> 6345</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06346"></a><span class="lineno"> 6346</span> uves_scired_red_noappend_science_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06347"></a><span class="lineno"> 6347</span> {</div>
-<div class="line"><a name="l06348"></a><span class="lineno"> 6348</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"red_nonmerged_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06349"></a><span class="lineno"> 6349</span> }</div>
-<div class="line"><a name="l06350"></a><span class="lineno"> 6350</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06358"></a><span class="lineno"> 6358</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06359"></a><span class="lineno"> 6359</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06360"></a><span class="lineno"> 6360</span> uves_scired_red_error_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06361"></a><span class="lineno"> 6361</span> {</div>
-<div class="line"><a name="l06362"></a><span class="lineno"> 6362</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"error_red_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06363"></a><span class="lineno"> 6363</span> }</div>
-<div class="line"><a name="l06364"></a><span class="lineno"> 6364</span> </div>
-<div class="line"><a name="l06365"></a><span class="lineno"> 6365</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06373"></a><span class="lineno"> 6373</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06374"></a><span class="lineno"> 6374</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06375"></a><span class="lineno"> 6375</span> uves_scired_red_noappend_error_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06376"></a><span class="lineno"> 6376</span> {</div>
-<div class="line"><a name="l06377"></a><span class="lineno"> 6377</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"error_red_nonmerged_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06378"></a><span class="lineno"> 6378</span> }</div>
-<div class="line"><a name="l06379"></a><span class="lineno"> 6379</span> </div>
-<div class="line"><a name="l06380"></a><span class="lineno"> 6380</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06388"></a><span class="lineno"> 6388</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06389"></a><span class="lineno"> 6389</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06390"></a><span class="lineno"> 6390</span> uves_scired_red_2d_error_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06391"></a><span class="lineno"> 6391</span> {</div>
-<div class="line"><a name="l06392"></a><span class="lineno"> 6392</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"error_2d_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06393"></a><span class="lineno"> 6393</span> }</div>
-<div class="line"><a name="l06394"></a><span class="lineno"> 6394</span> </div>
-<div class="line"><a name="l06395"></a><span class="lineno"> 6395</span> </div>
-<div class="line"><a name="l06396"></a><span class="lineno"> 6396</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06404"></a><span class="lineno"> 6404</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06405"></a><span class="lineno"> 6405</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06406"></a><span class="lineno"> 6406</span> uves_scired_fluxcal_science_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06407"></a><span class="lineno"> 6407</span> {</div>
-<div class="line"><a name="l06408"></a><span class="lineno"> 6408</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"fluxcal_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06409"></a><span class="lineno"> 6409</span> }</div>
-<div class="line"><a name="l06410"></a><span class="lineno"> 6410</span> </div>
-<div class="line"><a name="l06411"></a><span class="lineno"> 6411</span> </div>
-<div class="line"><a name="l06412"></a><span class="lineno"> 6412</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06420"></a><span class="lineno"> 6420</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06421"></a><span class="lineno"> 6421</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06422"></a><span class="lineno"> 6422</span> uves_scired_fluxcal_science_noappend_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06423"></a><span class="lineno"> 6423</span> {</div>
-<div class="line"><a name="l06424"></a><span class="lineno"> 6424</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"fluxcal_nonmerged_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06425"></a><span class="lineno"> 6425</span> }</div>
-<div class="line"><a name="l06426"></a><span class="lineno"> 6426</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06434"></a><span class="lineno"> 6434</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06435"></a><span class="lineno"> 6435</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06436"></a><span class="lineno"> 6436</span> uves_scired_fluxcal_error_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06437"></a><span class="lineno"> 6437</span> {</div>
-<div class="line"><a name="l06438"></a><span class="lineno"> 6438</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"fluxcal_error_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06439"></a><span class="lineno"> 6439</span> }</div>
-<div class="line"><a name="l06440"></a><span class="lineno"> 6440</span> </div>
-<div class="line"><a name="l06441"></a><span class="lineno"> 6441</span> </div>
-<div class="line"><a name="l06442"></a><span class="lineno"> 6442</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06450"></a><span class="lineno"> 6450</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06451"></a><span class="lineno"> 6451</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06452"></a><span class="lineno"> 6452</span> uves_scired_fluxcal_error_noappend_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06453"></a><span class="lineno"> 6453</span> {</div>
-<div class="line"><a name="l06454"></a><span class="lineno"> 6454</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"fluxcal_error_nonmerged_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06455"></a><span class="lineno"> 6455</span> }</div>
-<div class="line"><a name="l06456"></a><span class="lineno"> 6456</span> </div>
-<div class="line"><a name="l06457"></a><span class="lineno"> 6457</span> </div>
-<div class="line"><a name="l06458"></a><span class="lineno"> 6458</span> </div>
-<div class="line"><a name="l06466"></a><span class="lineno"> 6466</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06467"></a><span class="lineno"> 6467</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06468"></a><span class="lineno"> 6468</span> uves_scired_fluxcal_science_2d_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06469"></a><span class="lineno"> 6469</span> {</div>
-<div class="line"><a name="l06470"></a><span class="lineno"> 6470</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"fluxcal_2d_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06471"></a><span class="lineno"> 6471</span> }</div>
-<div class="line"><a name="l06472"></a><span class="lineno"> 6472</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06480"></a><span class="lineno"> 6480</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06481"></a><span class="lineno"> 6481</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06482"></a><span class="lineno"> 6482</span> uves_scired_fluxcal_error_2d_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06483"></a><span class="lineno"> 6483</span> {</div>
-<div class="line"><a name="l06484"></a><span class="lineno"> 6484</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"fluxcal_error_2d_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06485"></a><span class="lineno"> 6485</span> }</div>
-<div class="line"><a name="l06486"></a><span class="lineno"> 6486</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06494"></a><span class="lineno"> 6494</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06495"></a><span class="lineno"> 6495</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06496"></a><span class="lineno"> 6496</span> uves_scired_ff_variance_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06497"></a><span class="lineno"> 6497</span> {</div>
-<div class="line"><a name="l06498"></a><span class="lineno"> 6498</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"variance_ff_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06499"></a><span class="lineno"> 6499</span> }</div>
-<div class="line"><a name="l06500"></a><span class="lineno"> 6500</span> </div>
-<div class="line"><a name="l06501"></a><span class="lineno"> 6501</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06509"></a><span class="lineno"> 6509</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06510"></a><span class="lineno"> 6510</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06511"></a><span class="lineno"> 6511</span> uves_scired_ff_variance_2d_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06512"></a><span class="lineno"> 6512</span> {</div>
-<div class="line"><a name="l06513"></a><span class="lineno"> 6513</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"variance_ff_2d_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06514"></a><span class="lineno"> 6514</span> }</div>
-<div class="line"><a name="l06515"></a><span class="lineno"> 6515</span> </div>
-<div class="line"><a name="l06516"></a><span class="lineno"> 6516</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06523"></a><span class="lineno"> 6523</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06524"></a><span class="lineno"> 6524</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06525"></a><span class="lineno"> 6525</span> uves_scired_merged_2d_science_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06526"></a><span class="lineno"> 6526</span> {</div>
-<div class="line"><a name="l06527"></a><span class="lineno"> 6527</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"merged_2d_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06528"></a><span class="lineno"> 6528</span> }</div>
-<div class="line"><a name="l06529"></a><span class="lineno"> 6529</span> </div>
-<div class="line"><a name="l06537"></a><span class="lineno"> 6537</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06538"></a><span class="lineno"> 6538</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06539"></a><span class="lineno"> 6539</span> uves_scired_merged_science_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06540"></a><span class="lineno"> 6540</span> {</div>
-<div class="line"><a name="l06541"></a><span class="lineno"> 6541</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"merged_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06542"></a><span class="lineno"> 6542</span> }</div>
-<div class="line"><a name="l06543"></a><span class="lineno"> 6543</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06551"></a><span class="lineno"> 6551</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06552"></a><span class="lineno"> 6552</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06553"></a><span class="lineno"> 6553</span> uves_scired_merged_sky_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06554"></a><span class="lineno"> 6554</span> {</div>
-<div class="line"><a name="l06555"></a><span class="lineno"> 6555</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"merged_sky"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06556"></a><span class="lineno"> 6556</span> }</div>
-<div class="line"><a name="l06557"></a><span class="lineno"> 6557</span> </div>
-<div class="line"><a name="l06558"></a><span class="lineno"> 6558</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06566"></a><span class="lineno"> 6566</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06567"></a><span class="lineno"> 6567</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06568"></a><span class="lineno"> 6568</span> uves_scired_background_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06569"></a><span class="lineno"> 6569</span> {</div>
-<div class="line"><a name="l06570"></a><span class="lineno"> 6570</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"background"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06571"></a><span class="lineno"> 6571</span> }</div>
-<div class="line"><a name="l06572"></a><span class="lineno"> 6572</span> </div>
-<div class="line"><a name="l06573"></a><span class="lineno"> 6573</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06581"></a><span class="lineno"> 6581</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06582"></a><span class="lineno"> 6582</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06583"></a><span class="lineno"> 6583</span> uves_scired_resampled_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06584"></a><span class="lineno"> 6584</span> {</div>
-<div class="line"><a name="l06585"></a><span class="lineno"> 6585</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"resampled_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06586"></a><span class="lineno"> 6586</span> }</div>
-<div class="line"><a name="l06587"></a><span class="lineno"> 6587</span> </div>
-<div class="line"><a name="l06588"></a><span class="lineno"> 6588</span> </div>
-<div class="line"><a name="l06589"></a><span class="lineno"> 6589</span> </div>
-<div class="line"><a name="l06590"></a><span class="lineno"> 6590</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06598"></a><span class="lineno"> 6598</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06599"></a><span class="lineno"> 6599</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06600"></a><span class="lineno"> 6600</span> uves_scired_resampled_2d_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06601"></a><span class="lineno"> 6601</span> {</div>
-<div class="line"><a name="l06602"></a><span class="lineno"> 6602</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"resampled_2d_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06603"></a><span class="lineno"> 6603</span> }</div>
-<div class="line"><a name="l06604"></a><span class="lineno"> 6604</span> </div>
-<div class="line"><a name="l06605"></a><span class="lineno"> 6605</span> </div>
-<div class="line"><a name="l06606"></a><span class="lineno"> 6606</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06614"></a><span class="lineno"> 6614</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06615"></a><span class="lineno"> 6615</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06616"></a><span class="lineno"> 6616</span> uves_scired_resampledmf_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06617"></a><span class="lineno"> 6617</span> {</div>
-<div class="line"><a name="l06618"></a><span class="lineno"> 6618</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"resampled_mflat"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06619"></a><span class="lineno"> 6619</span> }</div>
-<div class="line"><a name="l06620"></a><span class="lineno"> 6620</span> </div>
-<div class="line"><a name="l06621"></a><span class="lineno"> 6621</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06630"></a><span class="lineno"> 6630</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06631"></a><span class="lineno"> 6631</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06632"></a><span class="lineno"> 6632</span> uves_scired_rebinned_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06633"></a><span class="lineno"> 6633</span> {</div>
-<div class="line"><a name="l06634"></a><span class="lineno"> 6634</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"resampled_ff_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06635"></a><span class="lineno"> 6635</span> }</div>
-<div class="line"><a name="l06636"></a><span class="lineno"> 6636</span> </div>
-<div class="line"><a name="l06637"></a><span class="lineno"> 6637</span> </div>
-<div class="line"><a name="l06646"></a><span class="lineno"> 6646</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06647"></a><span class="lineno"> 6647</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06648"></a><span class="lineno"> 6648</span> uves_scired_rebinned_2d_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06649"></a><span class="lineno"> 6649</span> {</div>
-<div class="line"><a name="l06650"></a><span class="lineno"> 6650</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"resampled_ff_2d_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06651"></a><span class="lineno"> 6651</span> }</div>
-<div class="line"><a name="l06652"></a><span class="lineno"> 6652</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06660"></a><span class="lineno"> 6660</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06661"></a><span class="lineno"> 6661</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06662"></a><span class="lineno"> 6662</span> uves_scired_ordertrace_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06663"></a><span class="lineno"> 6663</span> {</div>
-<div class="line"><a name="l06664"></a><span class="lineno"> 6664</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"ordertrace"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06665"></a><span class="lineno"> 6665</span> }</div>
-<div class="line"><a name="l06666"></a><span class="lineno"> 6666</span> </div>
-<div class="line"><a name="l06667"></a><span class="lineno"> 6667</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06675"></a><span class="lineno"> 6675</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06676"></a><span class="lineno"> 6676</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06677"></a><span class="lineno"> 6677</span> uves_scired_crmask_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06678"></a><span class="lineno"> 6678</span> {</div>
-<div class="line"><a name="l06679"></a><span class="lineno"> 6679</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"cr_mask"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06680"></a><span class="lineno"> 6680</span> }</div>
-<div class="line"><a name="l06681"></a><span class="lineno"> 6681</span> </div>
-<div class="line"><a name="l06682"></a><span class="lineno"> 6682</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06690"></a><span class="lineno"> 6690</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06691"></a><span class="lineno"> 6691</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06692"></a><span class="lineno"> 6692</span> uves_scired_wmap_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06693"></a><span class="lineno"> 6693</span> {</div>
-<div class="line"><a name="l06694"></a><span class="lineno"> 6694</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"wave_map"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06695"></a><span class="lineno"> 6695</span> }</div>
-<div class="line"><a name="l06696"></a><span class="lineno"> 6696</span> </div>
-<div class="line"><a name="l06697"></a><span class="lineno"> 6697</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06705"></a><span class="lineno"> 6705</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06706"></a><span class="lineno"> 6706</span> <span class="keywordtype">char</span> *uves_scired_ext2d_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06707"></a><span class="lineno"> 6707</span> {</div>
-<div class="line"><a name="l06708"></a><span class="lineno"> 6708</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"ext_2d_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06709"></a><span class="lineno"> 6709</span> }</div>
-<div class="line"><a name="l06710"></a><span class="lineno"> 6710</span> </div>
-<div class="line"><a name="l06711"></a><span class="lineno"> 6711</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06719"></a><span class="lineno"> 6719</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06720"></a><span class="lineno"> 6720</span> <span class="keywordtype">char</span> *uves_scired_ff2d_filename(<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l06721"></a><span class="lineno"> 6721</span> {</div>
-<div class="line"><a name="l06722"></a><span class="lineno"> 6722</span>     <span class="keywordflow">return</span> uves_local_filename(<span class="stringliteral">"ff_2d_science"</span>, chip, -1, -1);</div>
-<div class="line"><a name="l06723"></a><span class="lineno"> 6723</span> }</div>
-<div class="line"><a name="l06724"></a><span class="lineno"> 6724</span> </div>
-<div class="line"><a name="l06725"></a><span class="lineno"> 6725</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06746"></a><span class="lineno"> 6746</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06747"></a><span class="lineno"> 6747</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06748"></a><span class="lineno"> 6748</span> uves_local_filename(<span class="keyword">const</span> <span class="keywordtype">char</span> *prefix, <span class="keyword">enum</span> uves_chip chip, <span class="keywordtype">int</span> trace, <span class="keywordtype">int</span> window)</div>
-<div class="line"><a name="l06749"></a><span class="lineno"> 6749</span> {</div>
-<div class="line"><a name="l06750"></a><span class="lineno"> 6750</span>     <span class="keywordtype">char</span> *result = NULL;</div>
-<div class="line"><a name="l06751"></a><span class="lineno"> 6751</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_string;</div>
-<div class="line"><a name="l06752"></a><span class="lineno"> 6752</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *suffix = <span class="stringliteral">".fits"</span>;     <span class="comment">/* Always */</span></div>
-<div class="line"><a name="l06753"></a><span class="lineno"> 6753</span>     <span class="keywordtype">char</span> *t = NULL;</div>
-<div class="line"><a name="l06754"></a><span class="lineno"> 6754</span>     <span class="keywordtype">char</span> *w = NULL;</div>
-<div class="line"><a name="l06755"></a><span class="lineno"> 6755</span> </div>
-<div class="line"><a name="l06756"></a><span class="lineno"> 6756</span>     assure( (trace < 0 && window < 0) ||           <span class="comment">/* Empty suffix          */</span></div>
-<div class="line"><a name="l06757"></a><span class="lineno"> 6757</span>         (trace < 0 && window > 0) ||           <span class="comment">/* Window only suffix    */</span></div>
-<div class="line"><a name="l06758"></a><span class="lineno"> 6758</span>         (trace >= 0 && window > 0),            <span class="comment">/* Trace & window suffix */</span></div>
-<div class="line"><a name="l06759"></a><span class="lineno"> 6759</span>         CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal trace and window numbers: (%d, %d)"</span>, </div>
-<div class="line"><a name="l06760"></a><span class="lineno"> 6760</span>         trace, window);</div>
-<div class="line"><a name="l06761"></a><span class="lineno"> 6761</span> </div>
-<div class="line"><a name="l06762"></a><span class="lineno"> 6762</span>     <span class="comment">/* Chip */</span></div>
-<div class="line"><a name="l06763"></a><span class="lineno"> 6763</span>     chip_string = <a class="code" href="group__uves__chip.html#ga8319c211e6b7c649287e432bf78dc719" title="Convert to string.">uves_chip_tostring_lower</a>(chip);</div>
-<div class="line"><a name="l06764"></a><span class="lineno"> 6764</span>     </div>
-<div class="line"><a name="l06765"></a><span class="lineno"> 6765</span>     <span class="comment">/* Trace and window number (possibly empty string) */</span></div>
-<div class="line"><a name="l06766"></a><span class="lineno"> 6766</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( t = int_to_string(trace),</div>
-<div class="line"><a name="l06767"></a><span class="lineno"> 6767</span>         w = int_to_string(window)),</div>
-<div class="line"><a name="l06768"></a><span class="lineno"> 6768</span>           <span class="stringliteral">"Error creating substrings"</span>);</div>
-<div class="line"><a name="l06769"></a><span class="lineno"> 6769</span> </div>
-<div class="line"><a name="l06770"></a><span class="lineno"> 6770</span> <span class="comment">/* old code:</span></div>
-<div class="line"><a name="l06771"></a><span class="lineno"> 6771</span> <span class="comment">    result = cpl_calloc(strlen(prefix) + 1 + </span></div>
-<div class="line"><a name="l06772"></a><span class="lineno"> 6772</span> <span class="comment">            strlen(chip_string) + strlen(t) + strlen(w) + strlen(suffix) + 1,</span></div>
-<div class="line"><a name="l06773"></a><span class="lineno"> 6773</span> <span class="comment">            sizeof(char));</span></div>
-<div class="line"><a name="l06774"></a><span class="lineno"> 6774</span> <span class="comment">    </span></div>
-<div class="line"><a name="l06775"></a><span class="lineno"> 6775</span> <span class="comment">    assure_mem( result );</span></div>
-<div class="line"><a name="l06776"></a><span class="lineno"> 6776</span> <span class="comment">    </span></div>
-<div class="line"><a name="l06777"></a><span class="lineno"> 6777</span> <span class="comment">    strcpy(result, prefix);</span></div>
-<div class="line"><a name="l06778"></a><span class="lineno"> 6778</span> <span class="comment">    strcat(result, "_");</span></div>
-<div class="line"><a name="l06779"></a><span class="lineno"> 6779</span> <span class="comment">    strcat(result, chip_string);</span></div>
-<div class="line"><a name="l06780"></a><span class="lineno"> 6780</span> <span class="comment">    strcat(result, t);</span></div>
-<div class="line"><a name="l06781"></a><span class="lineno"> 6781</span> <span class="comment">    strcat(result, w);</span></div>
-<div class="line"><a name="l06782"></a><span class="lineno"> 6782</span> <span class="comment">    strcat(result, suffix);</span></div>
-<div class="line"><a name="l06783"></a><span class="lineno"> 6783</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l06784"></a><span class="lineno"> 6784</span>     result = uves_sprintf(<span class="stringliteral">"%s_%s%s%s%s"</span>, prefix, chip_string, t, w, suffix);</div>
-<div class="line"><a name="l06785"></a><span class="lineno"> 6785</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( result );</div>
-<div class="line"><a name="l06786"></a><span class="lineno"> 6786</span> </div>
-<div class="line"><a name="l06787"></a><span class="lineno"> 6787</span>   cleanup:</div>
-<div class="line"><a name="l06788"></a><span class="lineno"> 6788</span>     cpl_free(t);</div>
-<div class="line"><a name="l06789"></a><span class="lineno"> 6789</span>     cpl_free(w);</div>
-<div class="line"><a name="l06790"></a><span class="lineno"> 6790</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l06791"></a><span class="lineno"> 6791</span>     {</div>
-<div class="line"><a name="l06792"></a><span class="lineno"> 6792</span>         cpl_free(result); result = NULL;</div>
-<div class="line"><a name="l06793"></a><span class="lineno"> 6793</span>     }</div>
-<div class="line"><a name="l06794"></a><span class="lineno"> 6794</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l06795"></a><span class="lineno"> 6795</span> }</div>
-<div class="line"><a name="l06796"></a><span class="lineno"> 6796</span> </div>
-<div class="line"><a name="l06797"></a><span class="lineno"> 6797</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06808"></a><span class="lineno"> 6808</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06809"></a><span class="lineno"> 6809</span> <span class="keyword">static</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l06810"></a><span class="lineno"> 6810</span> int_to_string(<span class="keywordtype">int</span> i)</div>
-<div class="line"><a name="l06811"></a><span class="lineno"> 6811</span> {</div>
-<div class="line"><a name="l06812"></a><span class="lineno"> 6812</span>     <span class="keywordtype">char</span> *result = NULL;</div>
-<div class="line"><a name="l06813"></a><span class="lineno"> 6813</span> </div>
-<div class="line"><a name="l06814"></a><span class="lineno"> 6814</span>     assure( -1 <= i, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal number (%d)"</span>, i);</div>
-<div class="line"><a name="l06815"></a><span class="lineno"> 6815</span> </div>
-<div class="line"><a name="l06816"></a><span class="lineno"> 6816</span>     <span class="keywordflow">if</span> (i == -1)</div>
-<div class="line"><a name="l06817"></a><span class="lineno"> 6817</span>     {</div>
-<div class="line"><a name="l06818"></a><span class="lineno"> 6818</span>         <span class="comment">/* Empty string */</span></div>
-<div class="line"><a name="l06819"></a><span class="lineno"> 6819</span>         result = cpl_calloc(1, <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l06820"></a><span class="lineno"> 6820</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( result );</div>
-<div class="line"><a name="l06821"></a><span class="lineno"> 6821</span>     }</div>
-<div class="line"><a name="l06822"></a><span class="lineno"> 6822</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l06823"></a><span class="lineno"> 6823</span>     {</div>
-<div class="line"><a name="l06824"></a><span class="lineno"> 6824</span>         result = uves_sprintf(<span class="stringliteral">"_%d"</span>, i);</div>
-<div class="line"><a name="l06825"></a><span class="lineno"> 6825</span>     }</div>
-<div class="line"><a name="l06826"></a><span class="lineno"> 6826</span>     </div>
-<div class="line"><a name="l06827"></a><span class="lineno"> 6827</span>   cleanup:</div>
-<div class="line"><a name="l06828"></a><span class="lineno"> 6828</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE){</div>
-<div class="line"><a name="l06829"></a><span class="lineno"> 6829</span>     cpl_free(result); result = NULL;</div>
-<div class="line"><a name="l06830"></a><span class="lineno"> 6830</span>     }</div>
-<div class="line"><a name="l06831"></a><span class="lineno"> 6831</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l06832"></a><span class="lineno"> 6832</span> }</div>
-<div class="line"><a name="l06833"></a><span class="lineno"> 6833</span> </div>
-<div class="line"><a name="l06834"></a><span class="lineno"> 6834</span> </div>
-<div class="line"><a name="l06835"></a><span class="lineno"> 6835</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06845"></a><span class="lineno"> 6845</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06846"></a><span class="lineno"> 6846</span> </div>
-<div class="line"><a name="l06847"></a><span class="lineno"> 6847</span> cpl_image*</div>
-<div class="line"><a name="l06848"></a><span class="lineno"> 6848</span> uves_vector_to_image(<span class="keyword">const</span> cpl_vector* vector,cpl_type type)</div>
-<div class="line"><a name="l06849"></a><span class="lineno"> 6849</span> {</div>
-<div class="line"><a name="l06850"></a><span class="lineno"> 6850</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l06851"></a><span class="lineno"> 6851</span>   cpl_image* image=NULL;</div>
-<div class="line"><a name="l06852"></a><span class="lineno"> 6852</span>   <span class="keywordtype">int</span> size=0;</div>
-<div class="line"><a name="l06853"></a><span class="lineno"> 6853</span>   <span class="keyword">const</span> <span class="keywordtype">double</span>* pv=NULL;</div>
-<div class="line"><a name="l06854"></a><span class="lineno"> 6854</span>   <span class="keywordtype">int</span>* pi=NULL;</div>
-<div class="line"><a name="l06855"></a><span class="lineno"> 6855</span>   <span class="keywordtype">float</span>* pf=NULL;</div>
-<div class="line"><a name="l06856"></a><span class="lineno"> 6856</span>   <span class="keywordtype">double</span>* pd=NULL;</div>
-<div class="line"><a name="l06857"></a><span class="lineno"> 6857</span> </div>
-<div class="line"><a name="l06858"></a><span class="lineno"> 6858</span> </div>
-<div class="line"><a name="l06859"></a><span class="lineno"> 6859</span>       size=cpl_vector_get_size(vector);</div>
-<div class="line"><a name="l06860"></a><span class="lineno"> 6860</span>       image=cpl_image_new(size,1,type);</div>
-<div class="line"><a name="l06861"></a><span class="lineno"> 6861</span>       pv=cpl_vector_get_data_const(vector);</div>
-<div class="line"><a name="l06862"></a><span class="lineno"> 6862</span>       <span class="keywordflow">if</span>(type == CPL_TYPE_INT) {</div>
-<div class="line"><a name="l06863"></a><span class="lineno"> 6863</span>         pi=cpl_image_get_data_int(image);</div>
-<div class="line"><a name="l06864"></a><span class="lineno"> 6864</span>         <span class="keywordflow">for</span>(i=0;i<size;i++) {</div>
-<div class="line"><a name="l06865"></a><span class="lineno"> 6865</span>       pi[i]=pv[i];</div>
-<div class="line"><a name="l06866"></a><span class="lineno"> 6866</span>     }</div>
-<div class="line"><a name="l06867"></a><span class="lineno"> 6867</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (type == CPL_TYPE_FLOAT) {</div>
-<div class="line"><a name="l06868"></a><span class="lineno"> 6868</span>         pf=cpl_image_get_data_float(image);</div>
-<div class="line"><a name="l06869"></a><span class="lineno"> 6869</span>         <span class="keywordflow">for</span>(i=0;i<size;i++) {</div>
-<div class="line"><a name="l06870"></a><span class="lineno"> 6870</span>       pf[i]=pv[i];</div>
-<div class="line"><a name="l06871"></a><span class="lineno"> 6871</span>     }</div>
-<div class="line"><a name="l06872"></a><span class="lineno"> 6872</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (type == CPL_TYPE_DOUBLE) {</div>
-<div class="line"><a name="l06873"></a><span class="lineno"> 6873</span>         pd=cpl_image_get_data_double(image);</div>
-<div class="line"><a name="l06874"></a><span class="lineno"> 6874</span>         <span class="keywordflow">for</span>(i=0;i<size;i++) {</div>
-<div class="line"><a name="l06875"></a><span class="lineno"> 6875</span>       pd[i]=pv[i];</div>
-<div class="line"><a name="l06876"></a><span class="lineno"> 6876</span>     }</div>
-<div class="line"><a name="l06877"></a><span class="lineno"> 6877</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l06878"></a><span class="lineno"> 6878</span>         assure( <span class="keyword">false</span>, CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l06879"></a><span class="lineno"> 6879</span>             <span class="stringliteral">"No CPL type to represent BITPIX = %d"</span>, type);</div>
-<div class="line"><a name="l06880"></a><span class="lineno"> 6880</span>       }</div>
-<div class="line"><a name="l06881"></a><span class="lineno"> 6881</span> </div>
-<div class="line"><a name="l06882"></a><span class="lineno"> 6882</span>  cleanup:</div>
-<div class="line"><a name="l06883"></a><span class="lineno"> 6883</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE){</div>
-<div class="line"><a name="l06884"></a><span class="lineno"> 6884</span>       uves_free_image(&image);</div>
-<div class="line"><a name="l06885"></a><span class="lineno"> 6885</span>     }</div>
-<div class="line"><a name="l06886"></a><span class="lineno"> 6886</span> </div>
-<div class="line"><a name="l06887"></a><span class="lineno"> 6887</span>     <span class="keywordflow">return</span> image;</div>
-<div class="line"><a name="l06888"></a><span class="lineno"> 6888</span> </div>
-<div class="line"><a name="l06889"></a><span class="lineno"> 6889</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__dfs_8h_source.html b/html/uves__dfs_8h_source.html
deleted file mode 100644
index 48bb4a2..0000000
--- a/html/uves__dfs_8h_source.html
+++ /dev/null
@@ -1,1311 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_dfs.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_dfs.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2002, 2003, 2004, 2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 13:55:51 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.148 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.147  2010/11/26 07:41:34  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * added uves_scired_wmap_filename()</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.146  2010/09/24 09:32:03  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.144  2010/06/07 17:41:49  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * added uves_scired_fluxcal_science_noappend_filename(),uves_scired_fluxcal_error_noappend_filename()</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.143  2010/06/07 13:24:20  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Fixed typo in PRO.CATG and PIPEFILE of products in case of merging option is noappend: NOAPPEND-->NONMERGED</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.142  2010/06/07 11:12:02  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * added uves_scired_red_noappend_error_filename()</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.141  2010/06/04 09:50:10  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * added UVES_RED_NOAPPEND_STD, uves_response_red_noappend_standard_filename() uves_scired_red_noappend_science_filename()</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.140  2010/05/19 13:28:51  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * rename uves_extraction_quality_standard_filename->uves_order_extract_qc_standard_filename, UVES_EXTRACTION_QUALITY->UVES_ORDER_EXTRACT_QC</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.139  2010/05/18 17:09:24  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * added UVES_EXTRACTION_QUALITY and uves_extraction_quality_standard_filename</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.138  2009/02/20 18:21:12  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * added RAW_IMA</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.137  2009/01/02 08:30:03  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * added uves_contains_frames_kind</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.136  2008/08/29 09:52:26  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * fixed compiler warning</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.135  2008/06/26 08:25:55  amodigli</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * added uves_local_filename</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.134  2007/11/26 15:26:59  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * added FLAMES_INFO_TABLE</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.133  2007/11/19 08:07:06  amodigli</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * cleaned</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.132  2007/11/13 16:20:59  amodigli</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * added UVES_ORD_TAB to remove name clashes between order tables from FIBER and ECHELLE mode</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.131  2007/10/30 17:45:03  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Added WEIGHTS_<chip> images to support object weighted arclamp extraction</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.130  2007/10/17 14:58:48  amodigli</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * added uves_check_if_format_is_midas</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.129  2007/09/19 11:09:49  amodigli</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Now FLAMES_FIB_FF_DT is a macro</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.128  2007/09/11 17:08:07  amodigli</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * added uves_polynomial_convert_from_plist_midas from uves_utils_polynomial.h</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.127  2007/09/06 14:14:38  amodigli</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * added uves_scired_ff_variance_2d_filename</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.126  2007/08/16 13:21:15  amodigli</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * added uves_scired_red_2d_error_filename</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.125  2007/08/16 06:49:47  amodigli</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * added uves_vector_to_image</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.124  2007/08/10 12:10:35  amodigli</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * changed 2d extraction product file names as by DFS04196</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.123  2007/08/02 15:18:10  amodigli</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * added possibility of FLAMES_SLIT_FF_BN4</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.122  2007/07/23 06:30:50  amodigli</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * added FLAMES_FIB_FF_DT</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.121  2007/07/03 12:39:13  amodigli</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * added FLAMES_CORVEL_MASK FLAMES_SCI_SIM_RED</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.120  2007/06/26 13:34:43  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Exported function for FLAMES</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.119  2007/06/25 07:16:55  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Fixed definition of FLAMES_FIB_FF_BP</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.118  2007/06/25 05:54:45  amodigli</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * added FIB_LINE_TABLE_MIDAS</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.117  2007/06/22 16:04:01  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Fixed one FLAMES tag</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.116  2007/06/22 15:49:27  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Fixed FLAMES product tags</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.115  2007/06/22 14:50:45  jmlarsen</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Optionally save height=1 images as NAXIS=1</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.114  2007/06/22 09:30:10  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Allow saving CPL_TYPE_INT images as 16 or 32 bit FITS</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.113  2007/06/21 15:12:57  amodigli</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * added FLAMES sci product types</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.112  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.111  2007/05/16 11:47:18  amodigli</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * added FLAMES_SCI_COM_RED</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.110  2007/05/03 15:19:12  jmlarsen</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Added const version of uves_load_linetable()</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Revision 1.109  2007/04/26 13:19:13  jmlarsen</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Exported function copy_if_possible</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Revision 1.108  2007/04/24 16:44:26  amodigli</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * changed interface uves_load_ordertable to return also extention table</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Revision 1.107  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Revision 1.106  2007/04/23 06:59:29  amodigli</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * added uves_save_imagelist</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Revision 1.105  2007/04/03 06:28:26  amodigli</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * uves_load_ordertable provides now fibre_mask and fibre_pos if appropriate</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Revision 1.104  2007/03/20 15:39:54  amodigli</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * added FLAMES tags</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Revision 1.103  2007/03/15 15:04:37  jmlarsen</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Allow spaces in HISTORY keyword string values</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Revision 1.102  2007/02/09 13:36:06  jmlarsen</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Added function to load ref_flat</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> * Revision 1.101  2007/02/08 07:33:17  jmlarsen</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Added uves_load_cd_align()</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> * Revision 1.100  2007/01/17 13:25:41  jmlarsen</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * Added uves_load_image()</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> * Revision 1.99  2007/01/10 12:37:18  jmlarsen</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Exported function to warn about mismatching calibration frames</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> * Revision 1.98  2007/01/09 17:45:42  amodigli</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * added uves_check_rec_status</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> * Revision 1.97  2006/12/12 12:09:12  jmlarsen</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> * Added function to load corvel table</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"> * Revision 1.96  2006/12/07 08:23:02  jmlarsen</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> * uves_load_raw_imagelist: support FLAMES</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> * Revision 1.95  2006/12/01 08:26:58  jmlarsen</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> * Load FLAMES order table oshift/yshift</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> * Revision 1.94  2006/11/24 16:21:32  jmlarsen</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"> * Added FIB_LINE_TABLE_x</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment"> * Revision 1.93  2006/11/22 08:41:12  jmlarsen</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment"> * Exported and fixed bug in uves_read_midas_array</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment"> * Revision 1.91  2006/11/22 08:22:29  jmlarsen</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment"> * Set message level according to preprocessor symbol</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment"> * Revision 1.90  2006/11/16 14:09:27  jmlarsen</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment"> * Fixed definition of FLAMES order table tag</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment"> * Revision 1.89  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment"> * Revision 1.87  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"> * Revision 1.86  2006/11/13 12:44:31  jmlarsen</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment"> * Support FLAMES FIB_ARC_LAMP_RED frames</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment"> * Revision 1.85  2006/11/07 14:01:12  jmlarsen</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment"> * Moved flames_load_ functions to separate source file</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment"> * Revision 1.84  2006/11/03 15:01:21  jmlarsen</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment"> * Killed UVES 3d table module and use CPL 3d tables</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment"> * Revision 1.83  2006/10/24 14:05:25  jmlarsen</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"> * Generalized load functions to support FLAMES</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment"> * Revision 1.82  2006/10/19 13:53:25  jmlarsen</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment"> * Changed guess line table tag to LINE_GUESS_TAB</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment"> * Revision 1.81  2006/10/12 11:37:28  jmlarsen</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment"> * Temporarily disabled FLAMES code generation</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment"> * Revision 1.80  2006/10/02 08:34:06  jmlarsen</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment"> * Added REF_TFLAT</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment"> * Revision 1.79  2006/09/27 13:13:24  jmlarsen</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment"> * Use dynamic memory allocation to store bad pixels</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="comment"> * Revision 1.78  2006/09/20 15:42:18  jmlarsen</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment"> * Implemented MASTER_RESPONSE support</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment"> * Revision 1.77  2006/09/20 10:57:19  jmlarsen</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment"> * Fixed typo</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="comment"> * Revision 1.76  2006/09/20 07:26:54  jmlarsen</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment"> * Revision 1.75  2006/09/19 14:25:32  jmlarsen</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment"> * Propagate FITS keywords from master flat, not science, to WCALIB_FLAT_OBJ</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment"> * Revision 1.74  2006/09/19 07:12:58  jmlarsen</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment"> * Exported function uves_write_statistics</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment"> * Revision 1.73  2006/09/14 08:46:51  jmlarsen</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="comment"> * Added support for TFLAT, SCREEN_FLAT frames</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment"> * Revision 1.72  2006/09/11 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment"> * Renamed identifier reserved by POSIX</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment"> * Revision 1.71  2006/08/24 11:36:58  jmlarsen</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment"> * Revision 1.70  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="comment"> * Revision 1.69  2006/08/11 08:59:41  jmlarsen</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="comment"> * Take into account the different meanings of line table 'Y' column</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="comment"> * Revision 1.68  2006/08/07 14:42:02  jmlarsen</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="comment"> * Implemented on-the-fly correction of a line table when its order</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="comment"> * numbering is inconsistent with the order table (DFS02694)</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="comment"> * Revision 1.67  2006/08/07 12:14:19  jmlarsen</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment"> * Removed unused function</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment"> * Revision 1.66  2006/08/01 14:43:36  amodigli</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment"> * fixed bug loading fitsheader in uves_load_masterformatcheck</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment"> * Revision 1.65  2006/07/31 06:29:05  amodigli</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment"> * added flames_load_frame_index</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment"> * Revision 1.64  2006/07/14 12:20:10  jmlarsen</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment"> * Added LINE_INTMON_TABLE</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment"> * Revision 1.63  2006/06/26 07:54:15  amodigli</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment"> * flames_load_image flames_load_table</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="comment"> * Revision 1.62  2006/06/23 15:31:32  amodigli</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment"> * added useful stuff for flames</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment"> * Revision 1.61  2006/06/22 15:25:35  amodigli</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment"> * changes for flames_cal_prep_sff_ofpos</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment"> * Revision 1.60  2006/06/19 06:51:14  amodigli</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="comment"> * added support flames-old format</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="comment"> * Revision 1.59  2006/06/16 08:22:01  jmlarsen</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="comment"> * Manually propagate ESO.DET. keywords from 1st/2nd input header</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="comment"> * Revision 1.58  2006/06/13 11:55:06  jmlarsen</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment"> * Revision 1.57  2006/06/06 09:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment"> * Bugfix: UVES_CHIP_REDU -> UVES_CHIP_REDL</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment"> * Revision 1.56  2006/06/06 08:40:10  jmlarsen</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment"> * Revision 1.55  2006/05/22 06:47:15  amodigli</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="comment"> * fixed some bugs on msflat</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="comment"> * Revision 1.54  2006/05/19 13:07:52  amodigli</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment"> * modified to support SFLATs</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment"> * Revision 1.53  2006/05/17 09:54:55  amodigli</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="comment"> * added supposr SFLATs</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="comment"> * Revision 1.52  2006/05/15 06:09:52  amodigli</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="comment"> * added support for some FLAMES input frames</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="comment"> * Revision 1.51  2006/04/25 14:58:48  amodigli</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="comment"> * added paf creation functionalities</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="comment"> * Revision 1.50  2006/04/24 09:19:01  jmlarsen</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment"> * Simplified code</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment"> * Revision 1.49  2006/04/06 13:13:04  jmlarsen</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment"> * Added const modifier</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="comment"> * Revision 1.48  2006/04/06 12:56:50  jmlarsen</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="comment"> * Added support for PDARK, IFLAT, DLFAT frames</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="comment"> * Revision 1.47  2006/04/06 11:48:17  jmlarsen</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment"> * Support for SCI_POINT_-, SCI_EXTND_- and SCI_SLICER-frames</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="comment"> * Revision 1.46  2006/04/06 09:48:15  amodigli</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="comment"> * changed uves_frameset_insert interface to have QC log</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="comment"> * Revision 1.45  2006/04/06 08:31:15  jmlarsen</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment"> * Added support for reading MASTER_DFLAT, MASTER_IFLAT, MASTER_PDARK</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="comment"> * Revision 1.44  2006/03/24 14:19:19  jmlarsen</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="comment"> * Recognize background tables</span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="comment"> * Revision 1.43  2006/03/06 09:22:43  jmlarsen</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="comment"> * Added support for reading MIDAS line tables with MIDAS tags</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="comment"> * Revision 1.42  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment"> * Revision 1.41  2006/01/09 15:22:55  jmlarsen</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment"> * Removed some warnings</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="comment"> * Revision 1.40  2006/01/03 16:56:53  amodigli</span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="comment"> * Added MASTER_ARC_FORM</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="comment"> * Revision 1.39  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> <span class="preprocessor">#ifndef UVES_DFS_H</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DFS_H</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="comment">  -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="comment">                Defines</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="comment">/* FLAMES */</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> <span class="comment"> * reduce</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> <span class="preprocessor">#define RAW_IMA       "RAW_IMA"</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_SCI_RED       "FIB_SCI_RED"</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_SCI_SIM_RED   "FIB_SCI_SIM_RED"</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_SCI_COM_RED   "FIB_SCI_COM_RED"</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_CORVEL_MASK   "CORVEL_MASK"</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="preprocessor">#define FLAMES_INFO_TABLE(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_SCI_INFO_TAB_REDL" : \</span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_SCI_INFO_TAB_REDU" : "???")</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> <span class="preprocessor">#define FLAMES_LINE_TABLE(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_LINE_TABLE_REDL" : \</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_LINE_TABLE_REDU" : "???")</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> <span class="preprocessor">#define FLAMES_LINE_TABLE_MIDAS(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_LINE_TABLE_REDL" : \</span></div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_LINE_TABLE_REDU" : "???")</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> <span class="preprocessor">#define FLAMES_SLIT_FF_DT1(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_DT1_REDL" : \</span></div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_DT1_REDU" : "???")</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> <span class="preprocessor">#define FLAMES_SLIT_FF_DT2(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_DT2_REDL" : \</span></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_DT2_REDU" : "???")</span></div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> <span class="preprocessor">#define FLAMES_SLIT_FF_DT3(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_DT3_REDL" : \</span></div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_DT3_REDU" : "???")</span></div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="preprocessor">#define FLAMES_SLIT_FF_DTC(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_DTC_REDL" : \</span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_DTC_REDU" : "???")</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> <span class="preprocessor">#define FLAMES_SLIT_FF_DT(it, chip) ((it) == 1 ? FLAMES_SLIT_FF_DT1(chip) : \</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> <span class="preprocessor">                                     (it) == 2 ? FLAMES_SLIT_FF_DT2(chip) : \</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> <span class="preprocessor">                                     (it) == 3 ? FLAMES_SLIT_FF_DT3(chip) : "???")</span></div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> <span class="preprocessor">#define FLAMES_SLIT_FF_BP1(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_BP1_REDL" : \</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_BP1_REDU" : "???")</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="preprocessor">#define FLAMES_SLIT_FF_BP2(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_BP2_REDL" : \</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_BP2_REDU" : "???")</span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="preprocessor">#define FLAMES_SLIT_FF_BP3(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_BP3_REDL" : \</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_BP3_REDU" : "???")</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> <span class="preprocessor">#define FLAMES_SLIT_FF_BPC(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_BPC_REDL" : \</span></div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_BPC_REDU" : "???")</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> <span class="preprocessor">#define FLAMES_SLIT_FF_BP(it, chip) ((it) == 1 ? FLAMES_SLIT_FF_BP1(chip) : \</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> <span class="preprocessor">                                     (it) == 2 ? FLAMES_SLIT_FF_BP2(chip) : \</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> <span class="preprocessor">                                     (it) == 3 ? FLAMES_SLIT_FF_BP3(chip) : "???")</span></div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> <span class="preprocessor">#define FLAMES_SLIT_FF_BN1(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_BN1_REDL" : \</span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_BN1_REDU" : "???")</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="preprocessor">#define FLAMES_SLIT_FF_BN2(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_BN2_REDL" : \</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_BN2_REDU" : "???")</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> <span class="preprocessor">#define FLAMES_SLIT_FF_BN3(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_BN3_REDL" : \</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_BN3_REDU" : "???")</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="preprocessor">#define FLAMES_SLIT_FF_BN4(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_BN4_REDL" : \</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_BN4_REDU" : "???")</span></div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="preprocessor">#define FLAMES_SLIT_FF_BNC(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_BNC_REDL" : \</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_BNC_REDU" : "???")</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="preprocessor">#define FLAMES_SLIT_FF_BN(it, chip) ((it) == 1 ? FLAMES_SLIT_FF_BN1(chip) : \</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> <span class="preprocessor">                                     (it) == 2 ? FLAMES_SLIT_FF_BN2(chip) : \</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> <span class="preprocessor">                                     (it) == 3 ? FLAMES_SLIT_FF_BN3(chip) : \</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="preprocessor">                                     (it) == 4 ? FLAMES_SLIT_FF_BN4(chip) : "???")</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="preprocessor">#define FLAMES_SLIT_FF_SG1(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_SG1_REDL" : \</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_SG1_REDU" : "???")</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> <span class="preprocessor">#define FLAMES_SLIT_FF_SG2(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_SG2_REDL" : \</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_SG2_REDU" : "???")</span></div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <span class="preprocessor">#define FLAMES_SLIT_FF_SG3(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_SG3_REDL" : \</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_SG3_REDU" : "???")</span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> <span class="preprocessor">#define FLAMES_SLIT_FF_SGC(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_SGC_REDL" : \</span></div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_SGC_REDU" : "???")</span></div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> <span class="preprocessor">#define FLAMES_SLIT_FF_SG(it, chip) ((it) == 1 ? FLAMES_SLIT_FF_SG1(chip) : \</span></div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> <span class="preprocessor">                                     (it) == 2 ? FLAMES_SLIT_FF_SG2(chip) : \</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> <span class="preprocessor">                                     (it) == 3 ? FLAMES_SLIT_FF_SG3(chip) : "???")</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> <span class="preprocessor">#define FLAMES_SLIT_FF_COM(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_COM_REDL" : \</span></div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_COM_REDU" : "???")</span></div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> <span class="preprocessor">#define FLAMES_SLIT_FF_NOR(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_NOR_REDL" : \</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_NOR_REDU" : "???")</span></div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> <span class="preprocessor">#define FLAMES_SLIT_FF_NSG(chip)  ((chip) == UVES_CHIP_REDL ? "SLIT_FF_NSG_REDL" : \</span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> <span class="preprocessor">                       (chip) == UVES_CHIP_REDU ? "SLIT_FF_NSG_REDU" : "???")</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> <span class="preprocessor">#define FLAMES_FIB_FF_DT1(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_DT1_REDL" : \</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_DT1_REDU" : "???")</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> <span class="preprocessor">#define FLAMES_FIB_FF_DT2(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_DT2_REDL" : \</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_DT2_REDU" : "???")</span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> <span class="preprocessor">#define FLAMES_FIB_FF_DT3(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_DT3_REDL" : \</span></div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_DT3_REDU" : "???")</span></div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <span class="preprocessor">#define FLAMES_FIB_FF_DTC(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_DTC_REDL" : \</span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_DTC_REDU" : "???")</span></div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="preprocessor">#define FLAMES_FIB_FF_DT(it, chip) ((it) == 1 ? FLAMES_FIB_FF_DT1(chip) : \</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> <span class="preprocessor">                                     (it) == 2 ? FLAMES_FIB_FF_DT2(chip) : \</span></div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> <span class="preprocessor">                                     (it) == 3 ? FLAMES_FIB_FF_DT3(chip) : "???")</span></div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> </div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> <span class="preprocessor">#define FLAMES_FIB_FF_BP1(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_BP1_REDL" : \</span></div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_BP1_REDU" : "???")</span></div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> <span class="preprocessor">#define FLAMES_FIB_FF_BP2(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_BP2_REDL" : \</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_BP2_REDU" : "???")</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="preprocessor">#define FLAMES_FIB_FF_BP3(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_BP3_REDL" : \</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_BP3_REDU" : "???")</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> <span class="preprocessor">#define FLAMES_FIB_FF_BPC(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_BPC_REDL" : \</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_BPC_REDU" : "???")</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> <span class="preprocessor">#define FLAMES_FIB_FF_BP(it, chip) ((it) == 1 ? FLAMES_FIB_FF_BP1(chip) : \</span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> <span class="preprocessor">                                     (it) == 2 ? FLAMES_FIB_FF_BP2(chip) : \</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="preprocessor">                                     (it) == 3 ? FLAMES_FIB_FF_BP3(chip) : "???")</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> <span class="preprocessor">#define FLAMES_FIB_FF_BN1(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_BN1_REDL" : \</span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_BN1_REDU" : "???")</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="preprocessor">#define FLAMES_FIB_FF_BN2(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_BN2_REDL" : \</span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_BN2_REDU" : "???")</span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> <span class="preprocessor">#define FLAMES_FIB_FF_BN3(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_BN3_REDL" : \</span></div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_BN3_REDU" : "???")</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_FIB_FF_BNC(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_BNC_REDL" : \</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_BNC_REDU" : "???")</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="preprocessor">#define FLAMES_FIB_FF_SG1(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_SG1_REDL" : \</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_SG1_REDU" : "???")</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="preprocessor">#define FLAMES_FIB_FF_SG2(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_SG2_REDL" : \</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_SG2_REDU" : "???")</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="preprocessor">#define FLAMES_FIB_FF_SG3(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_SG3_REDL" : \</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_SG3_REDU" : "???")</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> <span class="preprocessor">#define FLAMES_FIB_FF_SGC(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_SGC_REDL" : \</span></div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_SGC_REDU" : "???")</span></div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <span class="preprocessor">#define FLAMES_FIB_FF_SG(it, chip) ((it) == 1 ? FLAMES_FIB_FF_SG1(chip) : \</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> <span class="preprocessor">                                     (it) == 2 ? FLAMES_FIB_FF_SG2(chip) : \</span></div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> <span class="preprocessor">                                     (it) == 3 ? FLAMES_FIB_FF_SG3(chip) : "???")</span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> </div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> <span class="preprocessor">#define FLAMES_FIB_FF_COM(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_COM_REDL" : \</span></div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_COM_REDU" : "???")</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> <span class="preprocessor">#define FLAMES_FIB_FF_NOR(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_NOR_REDL" : \</span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_NOR_REDU" : "???")</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="preprocessor">#define FLAMES_FIB_FF_NSG(chip)  ((chip) == UVES_CHIP_REDL ? "FIB_FF_NSG_REDL" : \</span></div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> <span class="preprocessor">                      (chip) == UVES_CHIP_REDU ? "FIB_FF_NSG_REDU" : "???")</span></div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> </div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> <span class="preprocessor">#define FIB_FF_ODD_INFO_TAB "FIB_FF_ODD_INFO_TAB"</span></div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> <span class="preprocessor"></span><span class="preprocessor">#define FIB_FF_EVEN_INFO_TAB "FIB_FF_EVEN_INFO_TAB"</span></div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> <span class="preprocessor"></span><span class="preprocessor">#define FIB_FF_ALL_INFO_TAB "FIB_FF_ALL_INFO_TAB"</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> </div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> <span class="comment"> * prep_sff_ofpos</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> <span class="preprocessor">#define FLAMES_FIB_FF_ALL   "FIB_FF_ALL_RED"</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_FIB_FF_ODD   "FIB_FF_ODD_RED"</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_FIB_FF_EVEN  "FIB_FF_EVEN_RED"</span></div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> <span class="preprocessor">#define FLAMES_CORVEL(chip)  ((chip) == UVES_CHIP_REDL ? "CORVEL_TAB_REDL" : \</span></div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> <span class="preprocessor">                  (chip) == UVES_CHIP_REDU ? "CORVEL_TAB_REDU" : "???")</span></div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> <span class="comment"> * wavecal</span></div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> <span class="preprocessor">#define FLAMES_FIB_SCI_SIM "FIB_SCI_SIM_RED"</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> <span class="preprocessor">#define FLAMES_ORDEF(flames, chip)  ((flames) ?                                       \</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> <span class="preprocessor">                     (((chip) == UVES_CHIP_REDU) ? "FIB_ORDEF_REDU" : \</span></div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> <span class="preprocessor">                      ((chip) == UVES_CHIP_REDL) ? "FIB_ORDEF_REDL" : \</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="preprocessor">                      "???") : "??UVES??")</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_ORDEF_EXTENSION(flames, chip)  0</span></div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> </div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> <span class="comment">/* UVES + FLAMES */</span></div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> </div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> <span class="comment">/* Narrow arc lamp frames */</span></div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> <span class="preprocessor">#define UVES_FORMATCHECK(flames,blue) ((flames) ? "FIB_ARC_LAMP_FORM_RED" : \</span></div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span> <span class="preprocessor">                                      ((blue) ? "ARC_LAMP_FORM_BLUE" : "ARC_LAMP_FORM_RED"))</span></div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> <span class="comment">/* Narrow flat field frames */</span></div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> <span class="preprocessor">#define UVES_ORDER_FLAT(flames, blue) ((flames) ? "FIB_ORDEF_RED" : \</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="preprocessor">                       ((blue) ? "ORDER_FLAT_BLUE" : "ORDER_FLAT_RED"))</span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> <span class="comment">/* Bias raw frames */</span></div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span> <span class="preprocessor">#define UVES_BIAS(blue)           ((blue) ? "BIAS_BLUE"      : "BIAS_RED")</span></div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> <span class="comment">/* Dark raw frames */</span></div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> <span class="preprocessor">#define UVES_DARK(blue)           ((blue) ? "DARK_BLUE"      : "DARK_RED")</span></div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PDARK(blue)          ((blue) ? "PDARK_BLUE"     : "PDARK_RED")</span></div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> <span class="comment">/* Flatfield raw frames */</span></div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> <span class="preprocessor">#define UVES_FLAT(blue)           ((blue) ? "FLAT_BLUE"      : "FLAT_RED")</span></div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_IFLAT(blue)          ((blue) ? "IFLAT_BLUE"     : "IFLAT_RED")</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DFLAT(blue)          ((blue) ? "DFLAT_BLUE"     : "DFLAT_RED")</span></div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_SFLAT(blue)          ((blue) ? "SFLAT_BLUE"     : "SFLAT_RED")</span></div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TFLAT(blue)          ((blue) ? "TFLAT_BLUE"     : "TFLAT_RED")</span></div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_SCREEN_FLAT(blue)          ((blue) ? "SCREEN_FLAT_BLUE"     : "SCREEN_FLAT_RED")</span></div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> <span class="comment">/* Arc lamp */</span></div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> <span class="preprocessor">#define UVES_ARC_LAMP(flames,blue)     ((flames) ? "FIB_ARC_LAMP_RED" : \</span></div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> <span class="preprocessor">                                       ((blue) ? "ARC_LAMP_BLUE" : "ARC_LAMP_RED"))</span></div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> <span class="preprocessor">#define UVES_ECH_ARC_LAMP(blue)       ((blue) ? "ECH_ARC_LAMP_BLUE" : "ECH_ARC_LAMP_RED")</span></div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> <span class="comment">/* CD align */</span></div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> <span class="preprocessor">#define UVES_CD_ALIGN(blue)       ((blue) ? "CD_ALIGN_BLUE" : "CD_ALIGN_RED")</span></div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span> <span class="comment">/* STD Star */</span></div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> <span class="preprocessor">#define UVES_STD_STAR(blue)           ((blue) ? "STANDARD_BLUE" : "STANDARD_RED")</span></div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> <span class="comment">/* Science */</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> <span class="preprocessor">#define UVES_SCIENCE(blue)         ((blue) ? "SCIENCE_BLUE"    : "SCIENCE_RED")</span></div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_SCI_EXTND(blue)       ((blue) ? "SCI_EXTND_BLUE"  : "SCI_EXTND_RED")</span></div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_SCI_POINT(blue)       ((blue) ? "SCI_POINT_BLUE"  : "SCI_POINT_RED")</span></div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_SCI_SLICER(blue)      ((blue) ? "SCI_SLICER_BLUE" : "SCI_SLICER_RED")</span></div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> <span class="comment">/* DRS setup table (for backwards compatibility) */</span></div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> <span class="preprocessor">#define UVES_DRS_SETUP(flames, chip) ((flames) ?                                            \</span></div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> <span class="preprocessor">                      (((chip) == UVES_CHIP_REDU) ? "FIB_DRS_REDU" :        \</span></div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> <span class="preprocessor">                       ((chip) == UVES_CHIP_REDL) ? "FIB_DRS_REDL" : "???") \</span></div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> <span class="preprocessor">                      :                                                     \</span></div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span> <span class="preprocessor">                      (((chip) == UVES_CHIP_BLUE) ? "DRS_SETUP_BLUE" :      \</span></div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> <span class="preprocessor">                       ((chip) == UVES_CHIP_REDU) ? "DRS_SETUP_REDU" :      \</span></div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> <span class="preprocessor">                       ((chip) == UVES_CHIP_REDL) ? "DRS_SETUP_REDL" : "???"))</span></div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span> <span class="preprocessor"></span>    </div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> <span class="preprocessor">#define UVES_DRS_SETUP_EXTENSION(chip)  1</span></div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> <span class="comment">/* Order table (written by physmod + flames_cal_orderpos) */</span></div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> <span class="preprocessor">#define UVES_GUESS_ORDER_TABLE(flames,chip) ((flames) ?                                  \</span></div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span> <span class="preprocessor">                                (((chip) == UVES_CHIP_REDU) ? "FIB_ORD_GUE_REDU" :       \</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDL) ? "FIB_ORD_GUE_REDL" : "???")\</span></div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> <span class="preprocessor">                                 :                                                       \</span></div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span> <span class="preprocessor">                                 (((chip) == UVES_CHIP_BLUE) ? "ORDER_GUESS_TAB_BLUE" :  \</span></div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDU) ? "ORDER_GUESS_TAB_REDU" :   \</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> <span class="preprocessor">                 ((chip) == UVES_CHIP_REDL) ? "ORDER_GUESS_TAB_REDL" :   \</span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> <span class="preprocessor">                 "???"))</span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> </div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> <span class="comment">/* Order table (written by physmod + flames_cal_orderpos) */</span></div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> <span class="preprocessor">#define UVES_ORD_TAB(flames,chip) ((flames) ?                                  \</span></div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> <span class="preprocessor">                                (((chip) == UVES_CHIP_REDU) ? "FIB_ORD_TAB_REDU" :       \</span></div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDL) ? "FIB_ORD_TAB_REDL" : "???")\</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> <span class="preprocessor">                                 :                                                       \</span></div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span> <span class="preprocessor">                                 (((chip) == UVES_CHIP_BLUE) ? "ORDER_TABLE_BLUE" :  \</span></div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDU) ? "ORDER_TABLE_REDU" :   \</span></div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> <span class="preprocessor">                 ((chip) == UVES_CHIP_REDL) ? "ORDER_TABLE_REDL" :   \</span></div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> <span class="preprocessor">                 "???"))</span></div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> <span class="preprocessor">#define UVES_GUESS_ORDER_TABLE_EXTENSION(flames,chip)  1</span></div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span> </div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> <span class="comment">/* Order table (written by uves_orderpos / flames_cal_prep_sff_ofpos) */</span></div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> <span class="preprocessor">#define UVES_ORDER_TABLE(flames,chip)  ((flames) ?                                             \</span></div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> <span class="preprocessor">                                        (((chip) == UVES_CHIP_REDU) ? "FIB_ORDEF_TABLE_REDU" : \</span></div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> <span class="preprocessor">                         ((chip) == UVES_CHIP_REDL) ? "FIB_ORDEF_TABLE_REDL" : \</span></div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> <span class="preprocessor">                                         "???")                                                \</span></div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> <span class="preprocessor">                    :                                                      \</span></div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> <span class="preprocessor">                    (((chip) == UVES_CHIP_BLUE) ? "ORDER_TABLE_BLUE" :     \</span></div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> <span class="preprocessor">                     ((chip) == UVES_CHIP_REDU) ? "ORDER_TABLE_REDU" :     \</span></div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> <span class="preprocessor">                     ((chip) == UVES_CHIP_REDL) ? "ORDER_TABLE_REDL" :     \</span></div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span> <span class="preprocessor">                     "???"))</span></div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_ORDER_TABLE_EXTENSION       1</span></div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_ORDER_TABLE_EXTENSION_POLY  2</span></div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_ORDER_TABLE_EXTENSION_FIBRE 3</span></div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span> </div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> <span class="comment">/* Flame science products</span></div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span> <span class="comment">FIB_SCI_INFO_TAB</span></div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> <span class="comment">MWXB_SCI_REDL</span></div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> <span class="comment">ERR_MWXB_SCI_REDL</span></div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> <span class="comment">XB_SCI_REDL</span></div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span> <span class="comment"></span></div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> <span class="comment">MWXB_SCI_RAW_REDL</span></div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> <span class="comment">ERR_MWXB_SCI_RAW_REDL</span></div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> <span class="comment">XB_SCI_RAW_REDL</span></div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> <span class="comment"></span></div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> <span class="comment">MWXB_SCI_REDU</span></div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> <span class="comment">ERR_MWXB_SCI_REDU</span></div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> <span class="comment">XB_SCI_REDU</span></div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> <span class="comment">MWXB_SCI_RAW_REDU</span></div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> <span class="comment">ERR_MWXB_SCI_RAW_REDU</span></div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> <span class="comment">XB_SCI_RAW_REDU</span></div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> <span class="preprocessor">#define FLAMES_SCI_INFO_TAB "FIB_SCI_INFO_TAB"</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span> <span class="preprocessor">#define FLAMES_MWXB_SCI(chip) ( \</span></div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDU) ? "MWXB_SCI_REDU" : \</span></div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDL) ? "MWXB_SCI_REDL" : \</span></div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> <span class="preprocessor">                              "???")</span></div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> <span class="preprocessor">#define FLAMES_ERR_MWXB_SCI(chip) ( \</span></div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDU) ? "ERR_MWXB_SCI_REDU" : \</span></div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDL) ? "ERR_MWXB_SCI_REDL" : \</span></div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> <span class="preprocessor">                              "???")</span></div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span> </div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span> <span class="preprocessor">#define FLAMES_XB_SCI(chip) ( \</span></div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDU) ? "XB_SCI_REDU" : \</span></div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDL) ? "XB_SCI_REDL" : \</span></div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> <span class="preprocessor">                              "???")</span></div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span> <span class="preprocessor">#define FLAMES_ERR_XB_SCI(chip) ( \</span></div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDU) ? "ERR_XB_SCI_REDU" : \</span></div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDL) ? "ERR_XB_SCI_REDL" : \</span></div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span> <span class="preprocessor">                              "???")</span></div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> <span class="preprocessor">#define FLAMES_WXB_SCI(chip) ( \</span></div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDU) ? "WXB_SCI_REDU" : \</span></div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDL) ? "WXB_SCI_REDL" : \</span></div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> <span class="preprocessor">                              "???")</span></div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> <span class="preprocessor">#define FLAMES_ERR_WXB_SCI(chip) ( \</span></div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDU) ? "ERR_WXB_SCI_REDU" : \</span></div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDL) ? "ERR_WXB_SCI_REDL" : \</span></div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> <span class="preprocessor">                              "???")</span></div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> </div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> <span class="preprocessor">#define FLAMES_MWXB_SCI_RAW(chip) ( \</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDU) ? "MWXB_SCI_RAW_REDU" : \</span></div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDL) ? "MWXB_SCI_RAW_REDL" : \</span></div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> <span class="preprocessor">                              "???")</span></div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span> <span class="preprocessor">#define FLAMES_ERR_MWXB_SCI_RAW(chip) ( \</span></div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> <span class="preprocessor">             ((chip) == UVES_CHIP_REDU) ? "ERR_MWXB_SCI_RAW_REDU" : \</span></div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span> <span class="preprocessor">             ((chip) == UVES_CHIP_REDL) ? "ERR_MWXB_SCI_RAW_REDL" : \</span></div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> <span class="preprocessor">                              "???")</span></div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> <span class="preprocessor">#define FLAMES_WXB_SCI_RAW(chip) ( \</span></div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDU) ? "WXB_SCI_RAW_REDU" : \</span></div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDL) ? "WXB_SCI_RAW_REDL" : \</span></div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> <span class="preprocessor">                              "???")</span></div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> <span class="preprocessor">#define FLAMES_ERR_WXB_SCI_RAW(chip) ( \</span></div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDU) ? "ERR_WXB_SCI_RAW_REDU" : \</span></div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDL) ? "ERR_WXB_SCI_RAW_REDL" : \</span></div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> <span class="preprocessor">                              "???")</span></div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> </div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> <span class="preprocessor">#define FLAMES_XB_SCI_RAW(chip) ( \</span></div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span> <span class="preprocessor">                          ((chip) == UVES_CHIP_REDU) ? "XB_SCI_RAW_REDU" : \</span></div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDL) ? "XB_SCI_RAW_REDL" : \</span></div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> <span class="preprocessor">                              "???")</span></div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> <span class="preprocessor">#define FLAMES_ERR_XB_SCI_RAW(chip) ( \</span></div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDU) ? "ERR_XB_SCI_RAW_REDU" : \</span></div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> <span class="preprocessor">              ((chip) == UVES_CHIP_REDL) ? "ERR_XB_SCI_RAW_REDL" : \</span></div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> <span class="preprocessor">                              "???")</span></div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span> </div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span> <span class="comment">/* Background tables are used only to tell</span></div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span> <span class="comment">   the user that they are actually *not* used for processing */</span></div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span> <span class="preprocessor">#define UVES_BACKGR_TABLE(chip) (((chip) == UVES_CHIP_BLUE) ? "BACKGR_TABLE_BLUE" :    \</span></div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span> <span class="preprocessor">                 ((chip) == UVES_CHIP_REDU) ? "BACKGR_TABLE_REDU" :    \</span></div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span> <span class="preprocessor">                 ((chip) == UVES_CHIP_REDL) ? "BACKGR_TABLE_REDL" : "???")</span></div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span> <span class="comment">/* Master bias */</span></div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span> <span class="preprocessor">#define UVES_MASTER_BIAS(chip)           (((chip) == UVES_CHIP_BLUE) ? "MASTER_BIAS_BLUE" :  \</span></div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> <span class="preprocessor">                      ((chip) == UVES_CHIP_REDU) ? "MASTER_BIAS_REDU" :  \</span></div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> <span class="preprocessor">                      ((chip) == UVES_CHIP_REDL) ? "MASTER_BIAS_REDL" : "???")</span></div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MASTER_BIAS_EXTENSION(chip) 0</span></div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> <span class="comment">/* Master Formatcheck */</span></div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> <span class="preprocessor">#define UVES_MASTER_ARC_FORM(chip) (((chip) == UVES_CHIP_BLUE) ? "MASTER_FORM_BLUE" : \</span></div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span> <span class="preprocessor">                                    ((chip) == UVES_CHIP_REDU) ? "MASTER_FORM_REDU" : \</span></div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span> <span class="preprocessor">                                    ((chip) == UVES_CHIP_REDL) ? "MASTER_FORM_REDL" : "???")</span></div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span> <span class="preprocessor">#define UVES_MASTER_ARC_FORM_EXTENSION(chip) 0</span></div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span> <span class="comment">/* Master dark */</span></div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span> <span class="preprocessor">#define UVES_MASTER_DARK(chip)   (((chip) == UVES_CHIP_BLUE) ? "MASTER_DARK_BLUE" : \</span></div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> <span class="preprocessor">                                  ((chip) == UVES_CHIP_REDU) ? "MASTER_DARK_REDU" : \</span></div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> <span class="preprocessor">                                  ((chip) == UVES_CHIP_REDL) ? "MASTER_DARK_REDL" : "???")</span></div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> <span class="preprocessor">#define UVES_MASTER_PDARK(chip)  (((chip) == UVES_CHIP_BLUE) ? "MASTER_PDARK_BLUE": \</span></div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span> <span class="preprocessor">                  ((chip) == UVES_CHIP_REDU) ? "MASTER_PDARK_REDU": \</span></div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> <span class="preprocessor">                  ((chip) == UVES_CHIP_REDL) ? "MASTER_PDARK_REDL": "???")</span></div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> <span class="preprocessor">#define UVES_MASTER_DARK_EXTENSION(chip) 0</span></div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> <span class="comment">/* Master flat */</span></div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span> <span class="preprocessor">#define UVES_MASTER_FLAT(chip)  (((chip) == UVES_CHIP_BLUE) ? "MASTER_FLAT_BLUE" : \</span></div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDU) ? "MASTER_FLAT_REDU" : \</span></div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDL) ? "MASTER_FLAT_REDL" : "???")</span></div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MASTER_DFLAT(chip) (((chip) == UVES_CHIP_BLUE) ? "MASTER_DFLAT_BLUE" : \</span></div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDU) ? "MASTER_DFLAT_REDU" : \</span></div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDL) ? "MASTER_DFLAT_REDL" : "???")</span></div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MASTER_SFLAT(chip) (((chip) == UVES_CHIP_BLUE) ? "MASTER_SFLAT_BLUE" : \</span></div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDU) ? "MASTER_SFLAT_REDU" : \</span></div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDL) ? "MASTER_SFLAT_REDL" : "???")</span></div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MASTER_IFLAT(chip) (((chip) == UVES_CHIP_BLUE) ? "MASTER_IFLAT_BLUE" : \</span></div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDU) ? "MASTER_IFLAT_REDU" : \</span></div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDL) ? "MASTER_IFLAT_REDL" : "???")</span></div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MASTER_TFLAT(chip) (((chip) == UVES_CHIP_BLUE) ? "MASTER_TFLAT_BLUE" : \</span></div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDU) ? "MASTER_TFLAT_REDU" : \</span></div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDL) ? "MASTER_TFLAT_REDL" : "???")</span></div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_REF_TFLAT(chip) (((chip) == UVES_CHIP_BLUE) ? "REF_TFLAT_BLUE" : \</span></div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDU) ? "REF_TFLAT_REDU" : \</span></div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> <span class="preprocessor">                                 ((chip) == UVES_CHIP_REDL) ? "REF_TFLAT_REDL" : "???")</span></div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MASTER_SCREEN_FLAT(chip) (((chip) == UVES_CHIP_BLUE) ? "MASTER_SCREEN_FLAT_BLUE" : \</span></div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span> <span class="preprocessor">                                       ((chip) == UVES_CHIP_REDU) ? "MASTER_SCREEN_FLAT_REDU" : \</span></div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span> <span class="preprocessor">                                       ((chip) == UVES_CHIP_REDL) ? "MASTER_SCREEN_FLAT_REDL" : \</span></div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span> <span class="preprocessor">                       "???")</span></div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MASTER_FLAT_EXTENSION(chip) 0</span></div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_BKG_FLAT(chip)              (((chip) == UVES_CHIP_BLUE) ? "BKG_FLAT_BLUE" : \</span></div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> <span class="preprocessor">                                          ((chip) == UVES_CHIP_REDU) ? "BKG_FLAT_REDU" : \</span></div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span> <span class="preprocessor">                                          ((chip) == UVES_CHIP_REDL) ? "BKG_FLAT_REDL" : "???" )</span></div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_RATIO_TFLAT(chip)              (((chip) == UVES_CHIP_BLUE) ? "RATIO_TFLAT_BLUE" : \</span></div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span> <span class="preprocessor">                                          ((chip) == UVES_CHIP_REDU) ? "RATIO_TFLAT_REDU" : \</span></div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> <span class="preprocessor">                                          ((chip) == UVES_CHIP_REDL) ? "RATIO_TFLAT_REDL" : "???" )</span></div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span> <span class="preprocessor">#define UVES_WEIGHTS(chip)          ((chip) == UVES_CHIP_REDU ? "WEIGHTS_REDU" : \</span></div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span> <span class="preprocessor">                                     (chip) == UVES_CHIP_REDL ? "WEIGHTS_REDL" : \</span></div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span> <span class="preprocessor">                                     (chip) == UVES_CHIP_BLUE ? "WEIGHTS_BLUE" : \</span></div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span> <span class="preprocessor">                                     "???")</span></div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> <span class="preprocessor"></span><span class="comment">/* Line table */</span></div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span> <span class="preprocessor">#define UVES_LINE_TABLE(flames,chip)   ((flames) ?                                           \</span></div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span> <span class="preprocessor">                                 (((chip) == UVES_CHIP_REDU) ? "FIB_LINE_TABLE_REDU" :       \</span></div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> <span class="preprocessor">                                  ((chip) == UVES_CHIP_REDL) ? "FIB_LINE_TABLE_REDL" : "???")\</span></div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span> <span class="preprocessor">                                  :                                                          \</span></div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> <span class="preprocessor">                                  (((chip) == UVES_CHIP_BLUE) ? "LINE_TABLE_BLUE" :          \</span></div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span> <span class="preprocessor">                                   ((chip) == UVES_CHIP_REDU) ? "LINE_TABLE_REDU" :          \</span></div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span> <span class="preprocessor">                                   ((chip) == UVES_CHIP_REDL) ? "LINE_TABLE_REDL" : "???"))</span></div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span> <span class="comment">/* Guess line table */</span></div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span> <span class="preprocessor">#define UVES_GUESS_LINE_TABLE(flames,chip) ((flames) ?                                    \</span></div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span> <span class="preprocessor">                                 (((chip) == UVES_CHIP_REDU) ? "FIB_LIN_GUE_REDU" :       \</span></div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span> <span class="preprocessor">                                  ((chip) == UVES_CHIP_REDL) ? "FIB_LIN_GUE_REDL" : "???")\</span></div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span> <span class="preprocessor">                                  :                                                       \</span></div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span> <span class="preprocessor">                                  (((chip) == UVES_CHIP_BLUE) ? "LINE_GUESS_TAB_BLUE" :   \</span></div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> <span class="preprocessor">                                  ((chip) == UVES_CHIP_REDU) ? "LINE_GUESS_TAB_REDU" :    \</span></div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span> <span class="preprocessor">                   ((chip) == UVES_CHIP_REDL) ? "LINE_GUESS_TAB_REDL" : "???"))</span></div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span> <span class="preprocessor">#define UVES_LINE_TABLE_EXTENSION            1</span></div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_LINE_TABLE_EXTENSION_DISPERSION 2</span></div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_LINE_TABLE_EXTENSION_ABSORDER   3</span></div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span> <span class="comment">/* For backwards compatibility */</span></div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span> <span class="preprocessor">#define UVES_LINE_TABLE_MIDAS_BLUE(window) (((window)==1) ? "LINE_TABLE_BLUE1" : \</span></div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span> <span class="preprocessor">                                            ((window)==2) ? "LINE_TABLE_BLUE2" : \</span></div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> <span class="preprocessor">                                            ((window)==3) ? "LINE_TABLE_BLUE3" : \</span></div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span> <span class="preprocessor">                        "LINE_TABLE_BLUEx")</span></div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_LINE_TABLE_MIDAS_REDL(window) (((window)==1) ? "LINE_TABLE_REDL1" : \</span></div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span> <span class="preprocessor">                                            ((window)==2) ? "LINE_TABLE_REDL2" : \</span></div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span> <span class="preprocessor">                                            ((window)==3) ? "LINE_TABLE_REDL3" : \</span></div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span> <span class="preprocessor">                                            "LINE_TABLE_REDLx")</span></div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_LINE_TABLE_MIDAS_REDU(window) (((window)==1) ? "LINE_TABLE_REDU1" : \</span></div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span> <span class="preprocessor">                                            ((window)==2) ? "LINE_TABLE_REDU2" : \</span></div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span> <span class="preprocessor">                                            ((window)==3) ? "LINE_TABLE_REDU3" : \</span></div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span> <span class="preprocessor">                        "LINE_TABLE_REDUx")</span></div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_LINE_TABLE_MIDAS(chip,window) ( ((chip) == UVES_CHIP_BLUE) ?        \</span></div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span> <span class="preprocessor">                        UVES_LINE_TABLE_MIDAS_BLUE(window) : \</span></div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span> <span class="preprocessor">                                             ((chip) == UVES_CHIP_REDU) ?        \</span></div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> <span class="preprocessor">                        UVES_LINE_TABLE_MIDAS_REDU(window) : \</span></div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span> <span class="preprocessor">                                             ((chip) == UVES_CHIP_REDL) ?        \</span></div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span> <span class="preprocessor">                        UVES_LINE_TABLE_MIDAS_REDL(window) : "???")</span></div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span> <span class="comment">/* Response curves et al. */</span></div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> <span class="preprocessor">#define UVES_INSTR_RESPONSE(chip) (((chip) == UVES_CHIP_BLUE) ? "INSTR_RESPONSE_BLUE" : \</span></div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> <span class="preprocessor">                                   ((chip) == UVES_CHIP_REDU) ? "INSTR_RESPONSE_REDU" : \</span></div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> <span class="preprocessor">                                   ((chip) == UVES_CHIP_REDL) ? "INSTR_RESPONSE_REDL" : "???")</span></div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_INSTR_RESPONSE_EXTENSION(chip) 0</span></div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span> <span class="preprocessor">#define UVES_MASTER_RESPONSE(chip) (((chip) == UVES_CHIP_BLUE) ? "MASTER_RESPONSE_BLUE" : \</span></div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span> <span class="preprocessor">                                    ((chip) == UVES_CHIP_REDU) ? "MASTER_RESPONSE_REDU" : \</span></div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> <span class="preprocessor">                                    ((chip) == UVES_CHIP_REDL) ? "MASTER_RESPONSE_REDL" : "???")</span></div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MASTER_RESPONSE_EXTENSION(chip) 0</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> <span class="preprocessor">#define UVES_WCALIB_FF_RESPONSE(chip) (((chip) == UVES_CHIP_BLUE) ? "WCALIB_FF_RESPONSE_BLUE" : \</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span> <span class="preprocessor">                                       ((chip) == UVES_CHIP_REDU) ? "WCALIB_FF_RESPONSE_REDU" : \</span></div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> <span class="preprocessor">                                       ((chip) == UVES_CHIP_REDL) ? "WCALIB_FF_RESPONSE_REDL" : \</span></div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> <span class="preprocessor">                       "???")</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_RED_STD(chip)               (((chip) == UVES_CHIP_BLUE) ? "RED_STD_BLUE" : \</span></div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> <span class="preprocessor">                                          ((chip) == UVES_CHIP_REDU) ? "RED_STD_REDU" : \</span></div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> <span class="preprocessor">                                          ((chip) == UVES_CHIP_REDL) ? "RED_STD_REDL" : "???")</span></div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> <span class="preprocessor">#define UVES_RED_NOAPPEND_STD(chip)       (((chip) == UVES_CHIP_BLUE) ? "RED_NONMERGED_STD_BLUE" : \</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> <span class="preprocessor">                                          ((chip) == UVES_CHIP_REDU) ? "RED_NONMERGED_STD_REDU" : \</span></div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span> <span class="preprocessor">                                          ((chip) == UVES_CHIP_REDL) ? "RED_NONMERGED_STD_REDL" : "???")</span></div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span> <span class="preprocessor">#define UVES_BKG_STD(chip)               (((chip) == UVES_CHIP_BLUE) ? "BKG_STD_BLUE" : \</span></div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> <span class="preprocessor">                                          ((chip) == UVES_CHIP_REDU) ? "BKG_STD_REDU" : \</span></div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span> <span class="preprocessor">                                          ((chip) == UVES_CHIP_REDL) ? "BKG_STD_REDL" : "???")</span></div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> <span class="preprocessor">#define UVES_ORDER_EXTRACT_QC(chip)               (((chip) == UVES_CHIP_BLUE) ? "ORDER_EXTRACT_QC_BLUE" : \</span></div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span> <span class="preprocessor">                                          ((chip) == UVES_CHIP_REDU) ? "ORDER_EXTRACT_QC_REDU" : \</span></div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span> <span class="preprocessor">                                          ((chip) == UVES_CHIP_REDL) ? "ORDER_EXTRACT_QC_REDL" : "???")</span></div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span> <span class="preprocessor">#define UVES_EFFICIENCY_TABLE(chip) (((chip) == UVES_CHIP_BLUE) ? "EFFICIENCY_TABLE_BLUE" : \</span></div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span> <span class="preprocessor">                                     ((chip) == UVES_CHIP_REDU) ? "EFFICIENCY_TABLE_REDU" : \</span></div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span> <span class="preprocessor">                                     ((chip) == UVES_CHIP_REDL) ? "EFFICIENCY_TABLE_REDL" : "???")</span></div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span> <span class="comment">/* CD align table */</span></div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> <span class="preprocessor">#define UVES_CD_ALIGN_TABLE(blue)       ((blue) ? "CD_ALIGN_TABLE_BLUE" : "CD_ALIGN_TABLE_RED")</span></div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span> <span class="comment">/* </span></div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> <span class="comment"> * Reference CALIB tags</span></div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> </div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span> <span class="comment">/* Line catalogue */</span></div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span> <span class="preprocessor">#define UVES_LINE_REFER_TABLE           "LINE_REFER_TABLE"</span></div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_LINE_REFER_TABLE_EXTENSION 1</span></div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span> <span class="preprocessor">#define UVES_LINE_INTMON_TABLE           "LINE_INTMON_TABLE"</span></div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_LINE_INTMON_TABLE_EXTENSION 1</span></div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span> <span class="comment">/* Standard star flux */</span></div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span> <span class="preprocessor">#define UVES_FLUX_STD_TABLE           "FLUX_STD_TABLE"</span></div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_FLUX_STD_TABLE_EXTENSION 1</span></div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span> <span class="comment">/* Extinction coefficients */</span></div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span> <span class="preprocessor">#define UVES_EXTCOEFF_TABLE           "EXTCOEFF_TABLE"</span></div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_EXTCOEFF_TABLE_EXTENSION 1</span></div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span> <span class="comment"> *  Image statistics</span></div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> </div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span> <span class="preprocessor">#define UVES_ALL_STATS (CPL_STATS_MEAN | CPL_STATS_STDEV | CPL_STATS_MEDIAN | \</span></div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span> <span class="preprocessor">            CPL_STATS_MIN  | CPL_STATS_MAX)</span></div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span> <span class="preprocessor"></span><span class="preprocessor">#define DICTIONARY "PRO-1.15"</span></div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span> <span class="comment">                                Functions prototypes</span></div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> <span class="keywordtype">int</span> uves_contains_frames_kind(cpl_frameset * sof, </div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>                                  cpl_frameset* raw,</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>                                  <span class="keyword">const</span> <span class="keywordtype">char</span>*         type);</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> </div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> uves_local_filename(<span class="keyword">const</span> <span class="keywordtype">char</span> *prefix, <span class="keyword">enum</span> uves_chip chip, <span class="keywordtype">int</span> trace, <span class="keywordtype">int</span> window);</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span> </div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span> uves_copy_if_possible(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *to, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *from,</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span> </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> uves_warn_if_chip_names_dont_match(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *calib_header, </div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *raw_chip_name, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span> </div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> cpl_error_code</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span> uves_extract_frames_group_type(<span class="keyword">const</span> cpl_frameset * <span class="keyword">set</span>, cpl_frameset** ext, </div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                    cpl_frame_group type);</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> cpl_error_code</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span> uves_frameset_merge(cpl_frameset * set1, <span class="keyword">const</span> cpl_frameset* set2);</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span> cpl_error_code</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> uves_sflats_get_encoder_steps(<span class="keyword">const</span> cpl_frameset * <span class="keyword">set</span>, cpl_table** encoder_tbl, <span class="keywordtype">int</span>* nset);</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> </div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> cpl_error_code uves_dfs_set_groups(cpl_frameset *);</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> </div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span> cpl_image *</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> uves_crop_and_rotate(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header,</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>              <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>              <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *redl_header, </div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>              <span class="keywordtype">bool</span> new_format, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **out_header);</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span> </div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> <span class="keywordtype">void</span> *uves_read_midas_array(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> *length,</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                 cpl_type *type, <span class="keywordtype">int</span> *nkeys);</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> uves_polynomial_convert_from_plist_midas(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *regression_name,</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                                          <span class="keyword">const</span> <span class="keywordtype">int</span> index);</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> </div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span> <span class="comment">/* Save */</span></div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span> uves_dfs_write_statistics(<span class="keyword">const</span> cpl_image *image, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header,</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>               <span class="keywordtype">unsigned</span> stats_mask);</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span> </div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span> cpl_error_code</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span> uves_frameset_insert(cpl_frameset *frames, </div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>                      <span class="keywordtype">void</span> *<span class="keywordtype">object</span>, </div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>              cpl_frame_group group, </div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>                      cpl_frame_type type, </div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>                      cpl_frame_level level,</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *tag, </div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>              <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>                      <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *primary_header, </div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>              <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *table_header, </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>                      <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe, </div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *pipeline,</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                      cpl_table **qc,</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *start_time,</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>              <span class="keywordtype">bool</span> dump_paf,</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>              <span class="keywordtype">unsigned</span> stats_mask);</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span> </div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> <span class="keywordtype">int</span> uves_check_rec_status(<span class="keyword">const</span> <span class="keywordtype">int</span> val) ;</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span> </div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span> cpl_error_code</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span> uves_save_image_local(<span class="keyword">const</span> <span class="keywordtype">char</span> *description, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename_prefix, </div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>                       <span class="keyword">const</span> cpl_image *image, </div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>                       <span class="keyword">enum</span> uves_chip chip, <span class="keywordtype">int</span> trace, <span class="keywordtype">int</span> window,</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>                       <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist,</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>                       <span class="keywordtype">bool</span> use_bitpix16_for_int);</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span> </div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span> cpl_error_code uves_save_table_local(<span class="keyword">const</span> <span class="keywordtype">char</span> *description, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename_prefix,</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>                      <span class="keyword">const</span> cpl_table *table,</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>                      <span class="keyword">enum</span> uves_chip chip, <span class="keywordtype">int</span> trace, <span class="keywordtype">int</span> window,</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>                      <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *pheader, </div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>                      <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *eheader);</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> cpl_error_code uves_save_polynomial(<a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename,</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>                     <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header);</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> </div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> <span class="keywordtype">void</span> uves_save_image(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist,</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>              <span class="keywordtype">bool</span> use_bitpix16_for_int, <span class="keywordtype">bool</span> save1d);</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="keywordtype">void</span> uves_save_imagelist(<span class="keyword">const</span> cpl_imagelist *iml, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist);</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> cpl_image *uves_load_image(<span class="keyword">const</span> cpl_frame *f,</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>     <span class="keywordtype">int</span> plane,</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>     <span class="keywordtype">int</span> extension,</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **header);</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> </div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> cpl_image *uves_load_image_file(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename,</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>     <span class="keywordtype">int</span> plane,</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>     <span class="keywordtype">int</span> extension,</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **header);</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>     </div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> </div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> <span class="comment">/* Load raw */</span></div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span> cpl_error_code</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> uves_load_master_formatcheck(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> **mform_filename, </div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>         cpl_image **mform, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **mform_header, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span> </div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> cpl_error_code uves_load_formatcheck(<span class="keyword">const</span> cpl_frameset *frames,</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>                      <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename,</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>                      cpl_image *raw_image[2],</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>                      <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2], </div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>                      <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2], <span class="keywordtype">bool</span> *blue);</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> </div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> cpl_error_code uves_load_orderpos(<span class="keyword">const</span> cpl_frameset *frames,</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>                   <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename,</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>                   cpl_image *raw_image[2],</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>                   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2], </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>                   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2], </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>                                   <span class="keywordtype">bool</span> *blue);</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span> <span class="keywordtype">void</span> uves_load_arclamp(<span class="keyword">const</span> cpl_frameset *frames,</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>                <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename, </div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>                cpl_image *raw_image[2], <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2],</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>                <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2], </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>                <span class="keywordtype">bool</span> *blue, <span class="keywordtype">bool</span> *sim_cal);</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> </div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> cpl_error_code uves_load_science(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename, </div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>                  cpl_image *raw_image[2], </div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>                  <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2], </div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>                  <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2], </div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>                  <span class="keywordtype">bool</span> *blue,</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> **sci_type);</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> cpl_error_code uves_load_standard(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename,</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>                   cpl_image *raw_image[2], <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2], </div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>                   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2], <span class="keywordtype">bool</span> *blue);</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> cpl_error_code uves_load_raw_imagelist(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                        <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>                        <span class="keyword">const</span> <span class="keywordtype">char</span> *blue_tag, </div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>                        <span class="keyword">const</span> <span class="keywordtype">char</span> *red_tag, cpl_type type, </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>                        cpl_imagelist *images[2], <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **raw_headers[2],</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>                        <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2],</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>                        <span class="keywordtype">bool</span> *blue);</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> </div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span> <span class="comment">/* Load calibration */</span></div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> cpl_error_code uves_load_drs(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>                  <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> **drs_filename, </div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>                  <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **drs_header,</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>                  <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> cpl_error_code uves_load_mbias(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_id,</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> **mbias_filename,</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>                    cpl_image **mbias, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **mbias_header, </div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>                    <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> cpl_error_code uves_load_mdark(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_id,</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> **mdark_filename,</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>                    cpl_image **mdark, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **mdark_header,</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>                    <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> cpl_error_code uves_load_mflat_const(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> **mflat_filename, </div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>                      cpl_image **mflat, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **mflat_header, </div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>                      <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>                      <span class="keyword">const</span> cpl_frame **mflat_frame);</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> cpl_error_code uves_load_mflat(cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> **mflat_filename, </div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>                    cpl_image **mflat, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **mflat_header, </div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                    <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>                    cpl_frame **mflat_frame);</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> cpl_image *</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> uves_load_weights(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> **weights_filename,</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>                   <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span> </div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> <span class="keywordtype">void</span> uves_load_ref_flat(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> **filename, cpl_image **rflat,</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **rflat_header, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span> </div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> cpl_error_code uves_load_ordertable(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>                     <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_id,</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> **ordertable_filename,</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>                     cpl_table **ordertable, </div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>                     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **ordertable_header, </div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>                     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **ordertable_xheader, </div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>                     <a class="code" href="struct__polynomial.html">polynomial</a> **order_locations, </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>                                     cpl_table **traces,</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>                     <span class="keywordtype">int</span> *tab_in_out_oshift,</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>                     <span class="keywordtype">double</span> *tab_in_out_yshift,</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>                                     <span class="keywordtype">int</span> ** fibre_mask,</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>                                     <span class="keywordtype">double</span> ** fibre_pos,</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>                     <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>                     <span class="keywordtype">bool</span> guess_table);</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> </div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> <span class="keywordtype">void</span> uves_load_linetable_const(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>                    <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>                    <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, </div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>                    <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder,</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> **linetable_filename,</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>                    <span class="keyword">const</span> cpl_table **linetable,</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>                    <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **linetable_header,</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>                    <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> **dispersion_relation,</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>                    <a class="code" href="struct__polynomial.html">polynomial</a> **absolute_order,</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>                    <span class="keyword">enum</span> uves_chip chip, <span class="keywordtype">int</span> trace_id, <span class="keywordtype">int</span> window);</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> </div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> <span class="keywordtype">void</span> uves_load_linetable(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>              <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>              <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, </div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>              <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder,</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> **linetable_filename,</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>              cpl_table **linetable,</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>              <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **linetable_header,</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>              <a class="code" href="struct__polynomial.html">polynomial</a> **dispersion_relation,</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>              <a class="code" href="struct__polynomial.html">polynomial</a> **absolute_order,</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>              <span class="keyword">enum</span> uves_chip chip, <span class="keywordtype">int</span> trace_id, <span class="keywordtype">int</span> window);</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> </div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> cpl_error_code uves_load_response_curve(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name,</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> **response_filename, </div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>                     cpl_image **response_curve,</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>                     cpl_table **master_response,</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>                     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **response_header, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span> </div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span> <span class="keywordtype">void</span> uves_load_corvel(<span class="keyword">const</span> cpl_frameset *frames,</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>               cpl_table **corvel,</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>               <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **corvel_header,</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> **corvel_filename);</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>             </div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> <span class="keywordtype">void</span> uves_load_cd_align(<span class="keyword">const</span> cpl_frameset *frames,</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename1,</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> **raw_filename2,</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>             cpl_image *raw_image1[2],</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>             cpl_image *raw_image2[2],</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header1[2], </div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header2[2], </div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header1[2], </div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header2[2], </div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>             <span class="keywordtype">bool</span> *blue);</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> </div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> <span class="comment">/* Static calibration */</span></div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> cpl_error_code uves_load_linerefertable(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> **line_refer_filename, </div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>                     cpl_table **line_refer, </div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>                     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **line_refer_header);</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span> </div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> cpl_error_code uves_load_lineintmon(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> **line_intmonr_filename, </div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>                     cpl_table **line_intmon);</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span> </div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span> cpl_error_code uves_load_flux_table(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> **flux_table_filename, </div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>                     cpl_table **flux_table);</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>     </div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span> cpl_error_code uves_load_atmo_ext(<span class="keyword">const</span> cpl_frameset *frames, </div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> **atmext_table_filename, </div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>                   cpl_table **atmext_table);</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> </div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> <span class="comment">/* Product filenames */</span></div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span> </div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span> <span class="comment">/* Mbias */</span></div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> <span class="keywordtype">char</span> *uves_masterbias_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span> </div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span> <span class="comment">/* Mdark */</span></div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span> <span class="keywordtype">char</span> *uves_masterdark_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span> </div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> <span class="comment">/* Mflat */</span></div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> <span class="keywordtype">char</span> *uves_masterflat_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span> <span class="keywordtype">char</span> *uves_masterflat_bkg_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> </div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span> <span class="comment">/* Orderpos */</span></div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span> <span class="keywordtype">char</span> *uves_ordef_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> <span class="keywordtype">char</span> *uves_order_table_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span> <span class="keywordtype">char</span> *uves_guess_order_table_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> <span class="keywordtype">char</span> *uves_guess_line_table_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span> <span class="comment">/* Wavecal */</span></div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span> <span class="keywordtype">char</span> *uves_line_table_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> <span class="keywordtype">char</span> *uves_line_table_filename_paf(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span> </div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> <span class="comment">/* Response */</span></div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> <span class="keywordtype">char</span> *uves_response_curve_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> <span class="keywordtype">char</span> *uves_response_curve_2d_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> <span class="keywordtype">char</span> *uves_response_red_standard_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> <span class="keywordtype">char</span> *uves_response_red_noappend_standard_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> <span class="keywordtype">char</span> *uves_response_efficiency_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> <span class="keywordtype">char</span> *uves_response_bkg_standard_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> </div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> <span class="keywordtype">char</span> *uves_order_extract_qc_standard_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> </div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> <span class="comment">/* Tflat */</span></div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> <span class="keywordtype">char</span> *uves_flat_ratio_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> </div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> <span class="comment">/* CDAlign */</span></div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> <span class="keywordtype">char</span> *uves_cd_align_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> </div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> <span class="comment">/* Scired */</span></div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> <span class="keywordtype">char</span> *uves_scired_red_science_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> <span class="keywordtype">char</span> *uves_scired_red_noappend_science_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span> <span class="keywordtype">char</span> *uves_scired_red_2d_science_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span> <span class="keywordtype">char</span> *uves_scired_red_error_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> <span class="keywordtype">char</span> *uves_scired_red_noappend_error_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span> <span class="keywordtype">char</span> *uves_scired_red_2d_error_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> <span class="keywordtype">char</span> *uves_scired_fluxcal_science_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span> <span class="keywordtype">char</span> *uves_scired_fluxcal_science_noappend_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span> <span class="keywordtype">char</span> *uves_scired_fluxcal_science_2d_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span> <span class="keywordtype">char</span> *uves_scired_fluxcal_error_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> <span class="keywordtype">char</span> *uves_scired_fluxcal_error_noappend_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span> <span class="keywordtype">char</span> *uves_scired_fluxcal_error_2d_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> <span class="keywordtype">char</span> *uves_scired_ff_variance_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span> <span class="keywordtype">char</span> *uves_scired_ff_variance_2d_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span> <span class="keywordtype">char</span> *uves_scired_background_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span> <span class="keywordtype">char</span> *uves_scired_merged_sky_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> <span class="keywordtype">char</span> *uves_scired_merged_science_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span> <span class="keywordtype">char</span> *uves_scired_merged_2d_science_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span> <span class="keywordtype">char</span> *uves_scired_resampled_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> <span class="keywordtype">char</span> *uves_scired_resampled_2d_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span> <span class="keywordtype">char</span> *uves_scired_resampledmf_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span> <span class="keywordtype">char</span> *uves_scired_rebinned_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span> <span class="keywordtype">char</span> *uves_scired_rebinned_2d_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span> <span class="keywordtype">char</span> *uves_scired_ordertrace_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span> <span class="keywordtype">char</span> *uves_scired_wmap_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> <span class="keywordtype">char</span> *uves_scired_crmask_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span> <span class="keywordtype">char</span> *uves_scired_ext2d_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> <span class="keywordtype">char</span> *uves_scired_ff2d_filename(<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span> cpl_image*</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span> uves_vector_to_image(<span class="keyword">const</span> cpl_vector* vector,cpl_type type);</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span> </div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> </div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> cpl_error_code</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span> uves_check_if_format_is_midas(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* header, <span class="keywordtype">bool</span>* format_is_midas);</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> </div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span> </div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__dump_8c_source.html b/html/uves__dump_8c_source.html
deleted file mode 100644
index a4b1833..0000000
--- a/html/uves__dump_8c_source.html
+++ /dev/null
@@ -1,419 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_dump.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_dump.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the X-SHOOTER Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2002,2003 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 13:59:20 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.23 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.22  2010/09/24 09:32:03  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.20  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.19  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.18  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.17  2007/04/24 09:26:11  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Do not crash on NULL strings</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.16  2006/11/24 09:36:07  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed obsolete comment</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.15  2006/11/16 14:12:21  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Changed undefined trace number from 0 to -1, to support zero as an actual trace number</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.14  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.12  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Revision 1.11  2006/11/13 14:23:55  jmlarsen</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> * Removed workarounds for CPL const bugs</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Revision 1.10  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Revision 1.9  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Revision 1.8  2006/08/16 11:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * Support printing NULL frame filename</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.7  2006/05/12 15:02:05  jmlarsen</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * Support NULL tags</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Revision 1.6  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Revision 1.5  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Revision 1.4  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> cpl_error_code</div>
-<div class="line"><a name="l00117"></a><span class="lineno"><a class="code" href="group__uves__dump.html#ga3bdf3305f871cf59e1010122e3078edb">  117</a></span> <a class="code" href="group__uves__dump.html#ga3bdf3305f871cf59e1010122e3078edb" title="Print a property list.">uves_print_uves_propertylist</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *pl, <span class="keywordtype">long</span> low, <span class="keywordty [...]
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> {</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     <span class="keyword">const</span> cpl_property *prop;</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     <span class="keywordtype">long</span> i = 0;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     assure (0 <= low && high <= <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(pl) && low <= high,</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>         CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal range"</span>);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     <span class="comment">/* Printing an empty range is allowed but only when low == high */</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     <span class="keywordflow">if</span> (pl == NULL){</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"NULL"</span>);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     }</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(pl))  {</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"[Empty property list]"</span>);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     }</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     <span class="keywordflow">else</span>    </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     <span class="keywordflow">for</span> (i = low; i < high; i++)</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>         {</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>         prop = <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(pl, i);</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (<a class="code" href="group__uves__dump.html#ga873425d85be55f6137bb8c1e8e329b5e" title="Print a property.">uves_print_cpl_property</a>(prop), <span class="stringliteral">"Error printing property"</span>);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>         }</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>   cleanup:</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> }</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> cpl_error_code</div>
-<div class="line"><a name="l00153"></a><span class="lineno"><a class="code" href="group__uves__dump.html#ga873425d85be55f6137bb8c1e8e329b5e">  153</a></span> <a class="code" href="group__uves__dump.html#ga873425d85be55f6137bb8c1e8e329b5e" title="Print a property.">uves_print_cpl_property</a>(<span class="keyword">const</span> cpl_property *prop)</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> {</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     cpl_type t;</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     <span class="keywordflow">if</span> (prop == NULL)</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     {</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"NULL"</span>);</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     }</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     {   </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>         <span class="comment">/* print property with this formatting</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment">           NAME =</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment">             VALUE</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment">           COMMENT</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>         <span class="comment">/* print name */</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>         </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%s ="</span>, cpl_property_get_name(prop) != NULL ?</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>                      cpl_property_get_name(prop) : <span class="stringliteral">"NULL"</span>);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>             </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>         <span class="comment">/* print value */</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>         </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( t = cpl_property_get_type(prop), <span class="stringliteral">"Could not read property type"</span>);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>         </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>         <span class="keywordflow">switch</span>(t & (~CPL_TYPE_FLAG_ARRAY))</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>         {</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>         <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>             <span class="keywordflow">if</span> (t & CPL_TYPE_FLAG_ARRAY)  <span class="comment">/* if type is string */</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>             {</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  '%s'"</span>, cpl_property_get_string(prop) != NULL ?</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>                                 cpl_property_get_string(prop) : <span class="stringliteral">"NULL"</span>);</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>             }</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>             <span class="keywordflow">else</span>                          <span class="comment">/* an ordinary char */</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>             {</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  %c"</span>, cpl_property_get_char(prop));</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>             }</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:    <span class="keywordflow">if</span> (cpl_property_get_bool(prop))</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>             {<a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  true"</span>);}</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>             {<a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  false"</span>);}</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>         <span class="keywordflow">case</span> CPL_TYPE_UCHAR:   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  %c"</span>, cpl_property_get_char(prop));  <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  %d"</span>, cpl_property_get_int(prop));   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>         <span class="keywordflow">case</span> CPL_TYPE_UINT:    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  %d"</span>, cpl_property_get_int(prop));   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>         <span class="keywordflow">case</span> CPL_TYPE_LONG:    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  %ld"</span>, cpl_property_get_long(prop)); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>         <span class="keywordflow">case</span> CPL_TYPE_ULONG:   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  %ld"</span>, cpl_property_get_long(prop)); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  %f"</span>, cpl_property_get_float(prop)); <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:  <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  %f"</span>, cpl_property_get_double(prop));<span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>         <span class="keywordflow">case</span> CPL_TYPE_POINTER: <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  POINTER"</span>);                          <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>         <span class="keywordflow">case</span> CPL_TYPE_INVALID: <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  INVALID"</span>);                          <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>         <span class="keywordflow">default</span>: <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"  unrecognized property"</span>);                          <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>         }</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>         </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>         <span class="comment">/* Is this property an array? */</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>         <span class="keywordflow">if</span> (t & CPL_TYPE_FLAG_ARRAY){</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>          cpl_msg_info(cpl_func,<span class="stringliteral">"  (array size = %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" )"</span>, </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>               cpl_property_get_size(prop));</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>         }</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>         <span class="comment">/* Print comment */</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>         <span class="keywordflow">if</span> (cpl_property_get_comment(prop) != NULL){</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"    %s"</span>, cpl_property_get_comment(prop) != NULL ? </div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                     cpl_property_get_comment(prop) : <span class="stringliteral">"NULL"</span>);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>         }</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     }</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>   cleanup:</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> }</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> cpl_error_code</div>
-<div class="line"><a name="l00235"></a><span class="lineno"><a class="code" href="group__uves__dump.html#ga74fae5c56aeaf8262cf416a8d747d3f2">  235</a></span> <a class="code" href="group__uves__dump.html#ga74fae5c56aeaf8262cf416a8d747d3f2" title="Print a frame set.">uves_print_cpl_frameset</a>(<span class="keyword">const</span> cpl_frameset *frames)</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> {</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="comment">/* Two special cases: a NULL frame set and an empty frame set */</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <span class="keywordflow">if</span> (frames == NULL)</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     {</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"NULL"</span>);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     }</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     {</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         <span class="keyword">const</span> cpl_frame *f = NULL;</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( f = cpl_frameset_get_first_const(frames), <span class="stringliteral">"Error reading frameset"</span>);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>         </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>         <span class="keywordflow">if</span> (f == NULL)</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>         {</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"[Empty frame set]"</span>);</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>         }</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>         {</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>             <span class="keywordflow">while</span>(f != NULL)</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>             {</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__dump.html#ga5e8553a2dcbbfe43fc15e21e4f54c381" title="Print a frame.">uves_print_cpl_frame</a>(f), <span class="stringliteral">"Could not print frame"</span>);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( f = cpl_frameset_get_next_const(frames), </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                    <span class="stringliteral">"Error reading frameset"</span>);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>             }</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         }</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     }</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>   cleanup:</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> }</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> cpl_error_code</div>
-<div class="line"><a name="l00277"></a><span class="lineno"><a class="code" href="group__uves__dump.html#ga5e8553a2dcbbfe43fc15e21e4f54c381">  277</a></span> <a class="code" href="group__uves__dump.html#ga5e8553a2dcbbfe43fc15e21e4f54c381" title="Print a frame.">uves_print_cpl_frame</a>(<span class="keyword">const</span> cpl_frame *f)</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> {</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     <span class="keywordflow">if</span> (f == NULL)</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     {</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"NULL"</span>);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     }</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     {</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *filename = cpl_frame_get_filename(f);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>         <span class="keywordflow">if</span> (filename == NULL)</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>         {</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>             cpl_error_reset();</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>             filename = <span class="stringliteral">"Null"</span>;</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>         }</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%-7s %-20s '%s'"</span>, </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>              <a class="code" href="group__uves__dump.html#ga762dd0a18ecc4b13ebcc9a8aa5be5be9" title="Convert a frame group to a string.">uves_tostring_cpl_frame_group</a>(cpl_frame_get_group(f)),</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>              cpl_frame_get_tag(f)      != NULL ? cpl_frame_get_tag(f) : <span class="stringliteral">"Null"</span>,</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>              filename);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>         </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"type \t= %s"</span>,   <a class="code" href="group__uves__dump.html#ga7b4de02190abecc763b7be5c85e89b6e" title="Convert a frame type to a string.">uves_tostring_cpl_frame_type</a> (cpl_frame_get_type (f)));</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"group \t= %s"</span>,  <a class="code" href="group__uves__dump.html#ga762dd0a18ecc4b13ebcc9a8aa5be5be9" title="Convert a frame group to a string.">uves_tostring_cpl_frame_group</a>(cpl_frame_get_group(f)));</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"level \t= %s"</span>,  <a class="code" href="group__uves__dump.html#ga643a38c444a34da5266bed60ca817ebb" title="Convert a frame level to a string.">uves_tostring_cpl_frame_level</a>(cpl_frame_get_level(f)));</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     }</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> }</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00314"></a><span class="lineno"><a class="code" href="group__uves__dump.html#ga7b4de02190abecc763b7be5c85e89b6e">  314</a></span> <a class="code" href="group__uves__dump.html#ga7b4de02190abecc763b7be5c85e89b6e" title="Convert a frame type to a string.">uves_tostring_cpl_frame_type</a>(cpl_frame_type ft)</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> {    </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     <span class="keywordflow">switch</span>(ft)</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     {</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     <span class="keywordflow">case</span> CPL_FRAME_TYPE_NONE:   <span class="keywordflow">return</span> <span class="stringliteral">"NONE"</span>;      <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     <span class="keywordflow">case</span> CPL_FRAME_TYPE_IMAGE:  <span class="keywordflow">return</span> <span class="stringliteral">"IMAGE"</span>;     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     <span class="keywordflow">case</span> CPL_FRAME_TYPE_MATRIX: <span class="keywordflow">return</span> <span class="stringliteral">"MATRIX"</span>;    <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     <span class="keywordflow">case</span> CPL_FRAME_TYPE_TABLE:  <span class="keywordflow">return</span> <span class="stringliteral">"TABLE"</span>;     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     <span class="keywordflow">default</span>: <span class="keywordflow">return</span> <span class="stringliteral">"unrecognized frame type"</span>;</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     }</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> }</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00334"></a><span class="lineno"><a class="code" href="group__uves__dump.html#ga762dd0a18ecc4b13ebcc9a8aa5be5be9">  334</a></span> <a class="code" href="group__uves__dump.html#ga762dd0a18ecc4b13ebcc9a8aa5be5be9" title="Convert a frame group to a string.">uves_tostring_cpl_frame_group</a>(cpl_frame_group fg)</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> {</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     <span class="keywordflow">switch</span>(fg)</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     {</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     <span class="keywordflow">case</span> CPL_FRAME_GROUP_NONE:    <span class="keywordflow">return</span> <span class="stringliteral">"NONE"</span>;                       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     <span class="keywordflow">case</span> CPL_FRAME_GROUP_RAW:     <span class="keywordflow">return</span> CPL_FRAME_GROUP_RAW_ID;       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     <span class="keywordflow">case</span> CPL_FRAME_GROUP_CALIB:   <span class="keywordflow">return</span> CPL_FRAME_GROUP_CALIB_ID;     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     <span class="keywordflow">case</span> CPL_FRAME_GROUP_PRODUCT: <span class="keywordflow">return</span> CPL_FRAME_GROUP_PRODUCT_ID;   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>         <span class="keywordflow">return</span> <span class="stringliteral">"unrecognized frame group"</span>;</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     }</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> }</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00355"></a><span class="lineno"><a class="code" href="group__uves__dump.html#ga643a38c444a34da5266bed60ca817ebb">  355</a></span> <a class="code" href="group__uves__dump.html#ga643a38c444a34da5266bed60ca817ebb" title="Convert a frame level to a string.">uves_tostring_cpl_frame_level</a>(cpl_frame_level fl)</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> {</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <span class="keywordflow">switch</span>(fl)</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     {</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     <span class="keywordflow">case</span> CPL_FRAME_LEVEL_NONE:        <span class="keywordflow">return</span> <span class="stringliteral">"NONE"</span>;        <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <span class="keywordflow">case</span> CPL_FRAME_LEVEL_TEMPORARY:   <span class="keywordflow">return</span> <span class="stringliteral">"TEMPORARY"</span>;   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     <span class="keywordflow">case</span> CPL_FRAME_LEVEL_INTERMEDIATE:<span class="keywordflow">return</span> <span class="stringliteral">"INTERMEDIATE"</span>;<span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     <span class="keywordflow">case</span> CPL_FRAME_LEVEL_FINAL:       <span class="keywordflow">return</span> <span class="stringliteral">"FINAL"</span>;       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     <span class="keywordflow">default</span>: <span class="keywordflow">return</span> <span class="stringliteral">"unrecognized frame level"</span>;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     }</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> }</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment">/*----------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00377"></a><span class="lineno"><a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d">  377</a></span> <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_type t)</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> {</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     <span class="comment">/* Note that CPL_TYPE_STRING is shorthand</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="comment">       for CPL_TYPE_CHAR | CPL_TYPE_FLAG_ARRAY . */</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     <span class="keywordflow">if</span> (!(t & CPL_TYPE_FLAG_ARRAY))</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     <span class="keywordflow">switch</span>(t & (~CPL_TYPE_FLAG_ARRAY))</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>         {</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>         <span class="keywordflow">case</span> CPL_TYPE_CHAR:       <span class="keywordflow">return</span> <span class="stringliteral">"char"</span>;    <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>         <span class="keywordflow">case</span> CPL_TYPE_UCHAR:      <span class="keywordflow">return</span> <span class="stringliteral">"uchar"</span>;   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:       <span class="keywordflow">return</span> <span class="stringliteral">"boolean"</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:        <span class="keywordflow">return</span> <span class="stringliteral">"int"</span>;     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>         <span class="keywordflow">case</span> CPL_TYPE_UINT:       <span class="keywordflow">return</span> <span class="stringliteral">"uint"</span>;    <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>         <span class="keywordflow">case</span> CPL_TYPE_LONG:       <span class="keywordflow">return</span> <span class="stringliteral">"long"</span>;    <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         <span class="keywordflow">case</span> CPL_TYPE_ULONG:      <span class="keywordflow">return</span> <span class="stringliteral">"ulong"</span>;   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:      <span class="keywordflow">return</span> <span class="stringliteral">"float"</span>;   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:     <span class="keywordflow">return</span> <span class="stringliteral">"double"</span>;  <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>         <span class="keywordflow">case</span> CPL_TYPE_POINTER:    <span class="keywordflow">return</span> <span class="stringliteral">"pointer"</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <span class="comment">/* not in CPL3.0: case CPL_TYPE_COMPLEX:    return "complex"; break; */</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>         <span class="keywordflow">case</span> CPL_TYPE_INVALID:    <span class="keywordflow">return</span> <span class="stringliteral">"invalid"</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>         <span class="keywordflow">return</span> <span class="stringliteral">"unrecognized type"</span>;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>         }</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     <span class="keywordflow">switch</span>(t & (~CPL_TYPE_FLAG_ARRAY))</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>         {</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>         <span class="keywordflow">case</span> CPL_TYPE_CHAR:       <span class="keywordflow">return</span> <span class="stringliteral">"string (char array)"</span>; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>         <span class="keywordflow">case</span> CPL_TYPE_UCHAR:      <span class="keywordflow">return</span> <span class="stringliteral">"uchar array"</span>;         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:       <span class="keywordflow">return</span> <span class="stringliteral">"boolean array"</span>;       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:        <span class="keywordflow">return</span> <span class="stringliteral">"int array"</span>;           <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>         <span class="keywordflow">case</span> CPL_TYPE_UINT:       <span class="keywordflow">return</span> <span class="stringliteral">"uint array"</span>;          <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>         <span class="keywordflow">case</span> CPL_TYPE_LONG:       <span class="keywordflow">return</span> <span class="stringliteral">"long array"</span>;          <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>         <span class="keywordflow">case</span> CPL_TYPE_ULONG:      <span class="keywordflow">return</span> <span class="stringliteral">"ulong array"</span>;         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:      <span class="keywordflow">return</span> <span class="stringliteral">"float array"</span>;         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:     <span class="keywordflow">return</span> <span class="stringliteral">"double array"</span>;        <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>         <span class="keywordflow">case</span> CPL_TYPE_POINTER:    <span class="keywordflow">return</span> <span class="stringliteral">"pointer array"</span>;       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> <span class="comment">/* not in CPL3.0: case CPL_TYPE_COMPLEX:    return "complex array"; break; */</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>         <span class="keywordflow">case</span> CPL_TYPE_INVALID:    <span class="keywordflow">return</span> <span class="stringliteral">"invalid (array)"</span>;     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>         <span class="keywordflow">return</span> <span class="stringliteral">"unrecognized type"</span>;</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>         }</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__dump_8h_source.html b/html/uves__dump_8h_source.html
deleted file mode 100644
index 71781ff..0000000
--- a/html/uves__dump_8h_source.html
+++ /dev/null
@@ -1,114 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_dump.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_dump.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:03 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.3  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.2  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#ifndef UVES_DUMP_H</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DUMP_H</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> cpl_error_code <a class="code" href="group__uves__dump.html#ga3bdf3305f871cf59e1010122e3078edb" title="Print a property list.">uves_print_uves_propertylist</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *pl, <span class="keywordtype">long</span> low, <span class="keywordtype">long</span> high);</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> cpl_error_code <a class="code" href="group__uves__dump.html#ga873425d85be55f6137bb8c1e8e329b5e" title="Print a property.">uves_print_cpl_property</a>(<span class="keyword">const</span> cpl_property *);</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> cpl_error_code <a class="code" href="group__uves__dump.html#ga74fae5c56aeaf8262cf416a8d747d3f2" title="Print a frame set.">uves_print_cpl_frameset</a>(<span class="keyword">const</span> cpl_frameset *);</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> cpl_error_code <a class="code" href="group__uves__dump.html#ga5e8553a2dcbbfe43fc15e21e4f54c381" title="Print a frame.">uves_print_cpl_frame</a>(<span class="keyword">const</span> cpl_frame *);</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_type t);</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__dump.html#ga7b4de02190abecc763b7be5c85e89b6e" title="Convert a frame type to a string.">uves_tostring_cpl_frame_type</a>(cpl_frame_type);</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__dump.html#ga762dd0a18ecc4b13ebcc9a8aa5be5be9" title="Convert a frame group to a string.">uves_tostring_cpl_frame_group</a>(cpl_frame_group);</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__dump.html#ga643a38c444a34da5266bed60ca817ebb" title="Convert a frame level to a string.">uves_tostring_cpl_frame_level</a>(cpl_frame_level);</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_DUMP_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__error_8h_source.html b/html/uves__error_8h_source.html
deleted file mode 100644
index 6555e1b..0000000
--- a/html/uves__error_8h_source.html
+++ /dev/null
@@ -1,290 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_error.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_error.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:03 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.58 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.56  2007/08/21 11:08:10  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Readded checks for pre-existing error which was provided by irplib_error_assure but not by cpl_error_ensure</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.55  2007/08/13 12:15:58  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * support of CPL4</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.54  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.53  2007/01/08 16:58:52  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * added ck0 and cknull</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.52  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.51  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.50  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.49  2006/05/05 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added assure_mem</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.48  2006/04/24 09:19:25  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Minor message change</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.47  2006/04/06 08:31:52  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Dump trace on CPL_MSG_ERROR level</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.46  2006/03/09 10:57:57  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Added check_nomsg macro</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.45  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.44  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.43  2006/02/23 16:07:59  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Using irplib_assert_msg</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.42  2006/02/21 14:26:54  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.41  2006/02/08 07:52:16  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Added function returning library version</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.40  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.39  2006/01/24 07:49:31  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Removed spaces between backslash and newline</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.38  2006/01/23 08:08:53  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Updated documentation</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.37  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor">#ifndef UVES_ERROR_H</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_ERROR_H</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment">                    Includes</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE < CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="preprocessor"></span><span class="preprocessor">#include <irplib_error.h></span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor">#include <cpl_error.h></span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">                             Defines</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">/* To save some key-strokes, use the irplib error handling macros</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment">   under different (shorter) names.</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment">   Additionally, irplib macros require the VA_ARGS to be enclosed in (),</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="preprocessor">#define assure(BOOL, CODE, ...) \</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="preprocessor">do {                                                              \</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="preprocessor">    cpl_error_ensure(cpl_error_get_code() == CPL_ERROR_NONE,      \</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="preprocessor">                     cpl_error_get_code(), goto cleanup,          \</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="preprocessor">                     "An error occurred that was not caught: %s", \</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="preprocessor">                     cpl_error_get_where() );                     \</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="preprocessor">    cpl_error_ensure(BOOL, CODE, goto cleanup, __VA_ARGS__);      \</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="preprocessor">} while (0)</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="preprocessor">#define assure_nomsg(BOOL, CODE) \</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="preprocessor">    assure(BOOL, CODE, " ")</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="preprocessor">#define assure_mem(PTR) \</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="preprocessor">    assure((PTR) != NULL, CPL_ERROR_ILLEGAL_OUTPUT, "Memory allocation failure!")</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="preprocessor">#define ck0(IEXP, ...) \</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="preprocessor">    assure((IEXP) == 0, CPL_ERROR_UNSPECIFIED, __VA_ARGS__)</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="preprocessor">#define ck0_nomsg(IEXP) ck0(IEXP, " ")</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="preprocessor">#define cknull(NULLEXP, ...)  \</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="preprocessor">    assure((NULLEXP) != NULL, CPL_ERROR_UNSPECIFIED, __VA_ARGS__)</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="preprocessor">#define cknull_nomsg(NULLEXP) cknull(NULLEXP, " ")</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="preprocessor">#define  check(CMD, ...) \</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="preprocessor">    assure((uves_msg_softer(), (CMD), uves_msg_louder(),  \</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="preprocessor">            cpl_error_get_code() == CPL_ERROR_NONE),      \</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="preprocessor">            cpl_error_get_code(), __VA_ARGS__)</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="preprocessor">#define  check_nomsg(CMD) check(CMD, " ")</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="preprocessor">#define passure(BOOL, ...) \</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="preprocessor">    assure(BOOL, CPL_ERROR_UNSPECIFIED, \</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="preprocessor">           "Internal error. Please report to " PACKAGE_BUGREPORT " " __VA_ARGS__ )</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="preprocessor"></span>           <span class="comment">/*  Assumes that PACKAGE_BUGREPORT</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment">               contains no formatting special characters  */</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="preprocessor">#define uves_error_reset() cpl_error_reset()</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="preprocessor">#else // if we still test CPL31</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="preprocessor">#define assure(BOOL, CODE, ...) \</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor">  irplib_error_assure(BOOL, CODE, (__VA_ARGS__), goto cleanup)</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00177"></a><span class="lineno"><a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">  177</a></span> <span class="preprocessor">#define assure_nomsg(BOOL, CODE) \</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="preprocessor">  irplib_error_assure(BOOL, CODE, (" "), goto cleanup)</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00181"></a><span class="lineno"><a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">  181</a></span> <span class="preprocessor">#define assure_mem(PTR) \</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="preprocessor">  irplib_error_assure((PTR) != NULL, CPL_ERROR_ILLEGAL_OUTPUT, \</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="preprocessor">  ("Memory allocation failure!"), goto cleanup)</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor"></span><span class="preprocessor">#define ck0(IEXP, ...) \</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor">  irplib_error_assure(IEXP == 0, CPL_ERROR_UNSPECIFIED, \</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="preprocessor">  (__VA_ARGS__), goto cleanup)</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="preprocessor">#define ck0_nomsg(IEXP) ck0(IEXP," ")</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="preprocessor">#define cknull(NULLEXP, ...) \</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="preprocessor">  irplib_error_assure((NULLEXP) != NULL, \</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="preprocessor">  CPL_ERROR_UNSPECIFIED, (__VA_ARGS__), goto cleanup)</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="preprocessor">#define cknull_nomsg(NULLEXP) cknull(NULLEXP," ")</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno"><a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">  198</a></span> <span class="preprocessor">#define  check(CMD, ...)                                                 \</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="preprocessor">  irplib_error_assure((uves_msg_softer(), (CMD), uves_msg_louder(),      \</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="preprocessor">              cpl_error_get_code() == CPL_ERROR_NONE),       \</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="preprocessor">                       cpl_error_get_code(), (__VA_ARGS__), goto cleanup)</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00204"></a><span class="lineno"><a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">  204</a></span> <span class="preprocessor">#define  check_nomsg(CMD) check(CMD, " ")</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00207"></a><span class="lineno"><a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">  207</a></span> <span class="preprocessor">#define passure(BOOL, ...)                                               \</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="preprocessor">  irplib_error_assure(BOOL, CPL_ERROR_UNSPECIFIED,                       \</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="preprocessor">                     ("Internal error. Please report to "                \</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="preprocessor">                      PACKAGE_BUGREPORT " " __VA_ARGS__), goto cleanup)</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="preprocessor"></span>                       <span class="comment">/*  Assumes that PACKAGE_BUGREPORT</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment">               contains no formatting special characters  */</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno"><a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">  215</a></span> <span class="preprocessor">#define uves_error_reset()   \</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="preprocessor">      irplib_error_reset()</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00219"></a><span class="lineno"><a class="code" href="group__uves__error.html#ga7e6bb359a87117dfc0e2c38d9f5d0108">  219</a></span> <span class="preprocessor">#define uves_error_dump()  \</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="preprocessor">      irplib_error_dump(CPL_MSG_ERROR, CPL_MSG_ERROR)</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="preprocessor">#endif //end check on CPL version</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> </div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> </div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> </div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> </div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> </div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> </div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> </div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> </div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> </div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> </div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__extract-test_8c_source.html b/html/uves__extract-test_8c_source.html
deleted file mode 100644
index 2a9eddd..0000000
--- a/html/uves__extract-test_8c_source.html
+++ /dev/null
@@ -1,527 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_extract-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_extract-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.14 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.13  2013/07/02 12:42:17  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Rename DEBUG to debug_mode to remove compiler error on some platforms (that name is reserved to special compiler options)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.12  2010/04/27 09:55:01  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * fixed call to uves_extract error due to API change</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.11  2009/06/05 05:49:02  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * updated init/end to cpl5</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.10  2007/08/30 07:56:05  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * fixed some doxygen warnings</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.9  2007/06/22 14:50:11  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Expanded, again, interface of uves_save_image()</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.8  2007/06/22 09:33:21  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Changed interface of uves_save_image</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.7  2007/06/20 15:50:20  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Decrease test images size</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.6  2007/05/25 11:50:32  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Re-added ORDER_TRACE_TABLE</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.5  2007/05/23 06:43:23  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.4  2007/05/22 14:51:02  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.3  2007/05/02 13:20:28  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Changed interface of uves_extract_iterate</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.2  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.1  2007/03/15 12:27:18  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Moved unit tests to ./uves/tests and ./flames/tests</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.3  2007/02/27 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Move unit test infrastructure to IRPLIB</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.2  2007/02/22 15:38:53  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Changed tolerance</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.1  2007/02/21 12:37:41  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Added uves_extract test</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.2  2007/01/29 12:17:54  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Support setting verbosity from command line</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.1  2006/11/28 08:26:35  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Added QC log unit test</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="preprocessor">#include <uves_extract.h></span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="preprocessor">#include <uves_extract_iterate.h></span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="preprocessor">#include <uves_extract_profile.h></span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor">#include <uves_test_simulate.h></span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l00128"></a><span class="lineno"><a class="code" href="group__uves__extract__test.html#ga7cb1d3ff41cb3f702a9b25abe8184e87">  128</a></span> <a class="code" href="group__uves__extract__test.html#ga7cb1d3ff41cb3f702a9b25abe8184e87" title="test spectrum creation">create_spectrum</a>(<span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny, <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder, <sp [...]
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>         <a class="code" href="structslit__geometry.html">slit_geometry</a> sg, cpl_image **sky_spectrum)</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> {</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>   <span class="keywordtype">int</span> norders = maxorder - minorder + 1;</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>   cpl_image *spectrum = cpl_image_new(nx, norders, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>   cpl_image *dummy = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>   uves_iterate_position *pos = NULL;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>   cpl_binary *bpm = NULL;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>   <span class="keywordtype">bool</span> loop_y = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>   <span class="keywordtype">double</span> tot_flux = 3000;</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>   pos = <a class="code" href="group__uves__extract__iterate.html#ga8601e16b56ff03ee210eec3684fd5501" title="Allocate iterator.">uves_iterate_new</a>(nx, ny, order_locations, minorder, maxorder, sg);</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>   *sky_spectrum = cpl_image_new(nx, norders, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>   {</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     <span class="keywordtype">int</span> x, order;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     <span class="keywordflow">for</span> (x = 1; x <= nx; x++)</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>       <span class="keywordflow">for</span> (order = 1; order <= norders; order++)</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     {</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>       cpl_image_reject(spectrum, x, order);</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>       cpl_image_reject(*sky_spectrum, x, order);</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     }</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>   }</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>   <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>                   1, nx,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>                   minorder, maxorder,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                   bpm,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                   loop_y);</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>        !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos); </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>        <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     {</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>       <span class="keywordtype">int</span> spectrum_row = pos->order - minorder + 1;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>       <span class="keywordtype">double</span> sky = 1000+20000*(pos->order - minorder)*1.0/(maxorder - minorder);</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cpl_image_set(spectrum     , pos->x, spectrum_row, tot_flux) );</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cpl_image_set(*sky_spectrum, pos->x, spectrum_row, sky) );</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     }</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>   </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>  cleanup:</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>   <a class="code" href="group__uves__extract__iterate.html#gabf1b3e568a93017a6a95ae64ae6f13b7" title="Deallocate iterator and set pointer to NULL.">uves_iterate_delete</a>(&pos);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>   uves_free_image(&dummy);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>   <span class="keywordflow">return</span> spectrum;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> }</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno"><a class="code" href="group__uves__extract__test.html#gac6bd9700cd243b2b05fcfeff33c2ecff">  185</a></span> <a class="code" href="group__uves__extract__test.html#gac6bd9700cd243b2b05fcfeff33c2ecff" title="test extraction">test_extract</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> {</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>   <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations = NULL;</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>   <span class="keywordtype">int</span> minorder = 1;</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">//  int maxorder = 22;</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">//  int nx = 3000;</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment">//  int ny = 2000;</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>   <span class="keywordtype">int</span> maxorder = 8;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>   <span class="keywordtype">int</span> nx = 500;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   <span class="keywordtype">int</span> ny = 600;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>   <a class="code" href="structslit__geometry.html">slit_geometry</a> sg = {30.0, 0.0};</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>   cpl_image *in_spectrum = NULL;</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>   cpl_image *in_sky = NULL;</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>   cpl_image *image = NULL;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>   cpl_image *image_noise = NULL;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *image_header = NULL;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>   cpl_table *ordertable = NULL;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>   cpl_parameterlist *   parameters = NULL;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *test_id = <span class="stringliteral">"uves_extract-test"</span>;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>   <span class="keywordtype">bool</span> extract_partial = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>   <span class="keywordtype">bool</span> debug_mode = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>   <span class="keywordtype">bool</span> blue = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>   <span class="keyword">enum</span> uves_chip chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>   cpl_image *cosmics = NULL;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>   uves_iterate_position *pos = NULL;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>   uves_extract_profile *profile = NULL;</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>   <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>   cpl_image *out_spectrum = NULL;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>   cpl_image *out_sky = NULL;</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>   cpl_image *out_sky_noise = NULL;</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment">//  uves_propertylist *spectrum_header = NULL;</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">//  cpl_image *spectrum_noise = NULL;</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>   cpl_table *cosmic_mask = NULL;</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>   cpl_image *cosmic_image = NULL;</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment">//  cpl_table *profile_table = NULL;</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>   cpl_image *weights = NULL;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>   cpl_table *info_tbl = NULL; </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>   cpl_table *order_trace = NULL;</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>   <span class="comment">/* Build data */</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__test__simulate.html#ga81a0d2793233e8b9c72f1141a3168924" title="Create order table.">create_order_table</a>(NULL, &order_locations, NULL,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                                   minorder, maxorder, nx) );</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> </div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( in_spectrum = <a class="code" href="group__uves__extract__test.html#ga7cb1d3ff41cb3f702a9b25abe8184e87" title="test spectrum creation">create_spectrum</a>(nx, ny,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                          minorder, maxorder,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                          order_locations,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                          sg,</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>                          &in_sky) );</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>   pos = <a class="code" href="group__uves__extract__iterate.html#ga8601e16b56ff03ee210eec3684fd5501" title="Allocate iterator.">uves_iterate_new</a>(nx, ny, order_locations, minorder, maxorder, sg);</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>   profile = uves_extract_profile_new(<a class="code" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c" title="Evaluate a gaussian.">uves_gauss</a>, </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>                                      <a class="code" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea" title="Evaluate the derivatives of a gaussian.">uves_gauss_derivative</a>, </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>                                      4, 0, 0);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>   profile->y0 = <a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(2);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>   profile->sigma = <a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(2);</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>   <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(profile->sigma, 0, 2.5);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( image = <a class="code" href="group__uves__utils.html#ga7146e7bab312652fdb0a9e88e838ef8d" title="Reconstruct echelle image from spectrum.">uves_create_image</a>(pos,</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                                          chip,</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>                                          in_spectrum, in_sky,</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>                                          cosmics,</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>                                          profile,</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>                                          &image_noise,</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>                                          &image_header) );</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>   </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>   uves_save_image(image, <span class="stringliteral">"image.fits"</span>, NULL, <span class="keyword">true</span>, <span class="keyword">true</span>);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>   uves_save_image(image_noise, <span class="stringliteral">"noise.fits"</span>, NULL, <span class="keyword">true</span>, <span class="keyword">true</span>);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>   </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>   ordertable = cpl_table_new(2);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>   cpl_table_new_column(ordertable, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>   cpl_table_set_int(ordertable, <span class="stringliteral">"Order"</span>, 0, minorder);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>   cpl_table_set_int(ordertable, <span class="stringliteral">"Order"</span>, 1, maxorder);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> </div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>   <span class="comment">/* Extract */</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>   parameters = cpl_parameterlist_new();</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_propagate_parameters_step(UVES_EXTRACT_ID, </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                           parameters,</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>                           test_id,</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>                           NULL));</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>   {</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *value = <span class="stringliteral">"optimal"</span>;  <span class="comment">//fixme should test also linear</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     uves_set_parameter(parameters, test_id, UVES_EXTRACT_ID <span class="stringliteral">".method"</span>, CPL_TYPE_STRING, &value);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>   }</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( out_spectrum = </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>      <a class="code" href="group__uves__extract.html#ga724649dabb1df68c512fdd9e99b36f0d" title="Extract a spectrum.">uves_extract</a>(image,</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>               image_noise,</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>               image_header,</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>               ordertable,</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>               order_locations,</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>               sg.length,</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>               sg.offset,</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>               parameters,</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>               test_id,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                       <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>               extract_partial,</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                       debug_mode,</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>               chip,</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>               NULL,<span class="comment">/* spectrum_header */</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>               NULL, <span class="comment">/* spectrum_noise */</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>               &out_sky,</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>               &out_sky_noise,</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>               &cosmic_mask,</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>               &cosmic_image,</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>               NULL, <span class="comment">/* profile_table */</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>               &weights,</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>               &info_tbl,</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                       &order_trace),</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>      <span class="stringliteral">"Error during extraction"</span>);</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>   uves_save_image(out_spectrum, <span class="stringliteral">"spectrum.fits"</span>, NULL, <span class="keyword">true</span>, <span class="keyword">true</span>);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>   </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>   <span class="comment">/* Check results */</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>   {</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="keywordtype">int</span> x, order;</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++)</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>       {</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     <span class="keywordtype">int</span> spectrum_row = order - minorder + 1;</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     <span class="keywordflow">for</span> (x = 1; x <= nx; x++)</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>       {</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>         <span class="keywordtype">int</span> in_bad, out_bad;</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>         <span class="keywordtype">double</span> in     = cpl_image_get( in_spectrum, x, spectrum_row, &in_bad);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>         <span class="keywordtype">double</span> sky    = cpl_image_get( in_sky     , x, spectrum_row, &in_bad);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>         <span class="keywordtype">double</span> out    = cpl_image_get(out_spectrum, x, spectrum_row, &out_bad); </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>         <span class="keywordtype">double</span> osky   = cpl_image_get(out_sky     , x, spectrum_row, &out_bad); </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>         </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="preprocessor">#if 0  </span><span class="comment">/* linear */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="preprocessor"></span>        assure( out_bad || in_bad ||</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>             float_equal(out, in + sky, 0.001),</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>             CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>             <span class="stringliteral">"At (x, order) = (%d, %d): In = %f  +  %f (%d); Out = %f (%d)"</span>,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>             x, order, sky, in, in_bad, out, out_bad);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="preprocessor">#else </span><span class="comment">/* optimal */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="preprocessor"></span>        assure( out_bad || in_bad ||</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>             float_equal(out, in, 0.02),</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>             CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>             <span class="stringliteral">"Object spectrum differs at (x, order) = (%d, %d): In = %f (%d); Out = %f (%d)"</span>,</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>             x, order, in, in_bad, out, out_bad);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>         assure( out_bad || in_bad ||</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>             float_equal(osky, sky, 0.01),</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>             CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>             <span class="stringliteral">"Sky spectrum differs at (x, order) = (%d, %d), sky: In = %f (%d); Out = %f (%d)"</span>,</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>             x, order, sky, in_bad, osky, out_bad);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="preprocessor"></span>            <span class="keywordflow">if</span> (!out_bad && !in_bad)</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>                 {</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>                     cpl_test_rel(out, in, 0.02);</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>                     cpl_test_rel(osky, sky, 0.01);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>                 }</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="preprocessor"></span>        </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>       }</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>       }</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>   }</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>   </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>  cleanup:</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>   uves_free_image(&in_spectrum);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>   uves_free_image(&in_sky);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>   uves_free_image(&image);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>   uves_free_image(&image_noise);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>   uves_free_propertylist(&image_header);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>   <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>   uves_free_parameterlist(&parameters);</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>   uves_free_table(&ordertable);</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>   <a class="code" href="group__uves__extract__iterate.html#gabf1b3e568a93017a6a95ae64ae6f13b7" title="Deallocate iterator and set pointer to NULL.">uves_iterate_delete</a>(&pos);</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>   uves_extract_profile_delete(&profile);</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>   uves_free_image(&cosmics);</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>   uves_free_image(&out_spectrum);</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>   uves_free_image(&out_sky);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>   uves_free_image(&out_sky_noise);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>   uves_free_image(&weights);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>   uves_free_table(&cosmic_mask);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>   uves_free_image(&cosmic_image);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>   uves_free_table(&info_tbl);</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>   uves_free_table(&order_trace);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> }</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno"><a class="code" href="group__uves__extract__test.html#ga017b6e795dd968c9e025ca0d6f3611f5">  382</a></span> <a class="code" href="group__uves__extract__test.html#ga017b6e795dd968c9e025ca0d6f3611f5" title="test iteration">test_iterate</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> {</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>   <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations;</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>   uves_iterate_position *pos = NULL;</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>   cpl_binary *bpm = NULL;</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>   <span class="keywordtype">bool</span> loop_y = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>   <span class="keywordtype">int</span> nx = 2000;</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>   <span class="keywordtype">int</span> ny = 1000;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>   cpl_image *image = cpl_image_new(2000, 1000, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>   <span class="keywordtype">int</span> minorder = 3;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>   <span class="keywordtype">int</span> maxorder = 15;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>   <a class="code" href="structslit__geometry.html">slit_geometry</a> sg = {30.0, 0.0};</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>   </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__test__simulate.html#ga81a0d2793233e8b9c72f1141a3168924" title="Create order table.">create_order_table</a>(NULL, &order_locations, NULL,</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>                                   minorder, maxorder, nx) );</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>   pos = <a class="code" href="group__uves__extract__iterate.html#ga8601e16b56ff03ee210eec3684fd5501" title="Allocate iterator.">uves_iterate_new</a>(nx, ny,</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>              order_locations,</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>              minorder, </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>              maxorder, </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>              sg);</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>                 1, nx,</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                 minorder, maxorder,</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                 bpm,</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>                 loop_y),</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>      <span class="stringliteral">"Set first position failed"</span>);</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> </div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>   assure( pos->x == 1 && pos->order == minorder,</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>       CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>       <span class="stringliteral">"Set first position failed: x, order, minorder = %d %d %d"</span>,</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>       pos->x, pos->order, minorder);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>   {</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     <span class="keywordtype">int</span> y = pos->y;</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos), CPL_ERROR_ILLEGAL_OUTPUT );</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos), <span class="stringliteral">"Increment failed"</span>);</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos), <span class="stringliteral">"Increment failed"</span>);</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos), <span class="stringliteral">"Increment failed"</span>);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos), <span class="stringliteral">"Increment failed"</span>);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     <span class="comment">/* Must hold for the polynomial used */</span></div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     assure( pos->x == 1 && pos->y == y+4 &&</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>         pos->order == minorder, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>         <span class="stringliteral">"Increment failed: x, y, order = %d, %d (%d), %d"</span>,</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>         pos->x, pos->y, y+1, pos->order);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>   }</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>   <span class="comment">/* Go to next order */</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>   <span class="keywordflow">while</span>(pos->x < nx)</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     {</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>       <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos);</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     }</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>   <span class="keywordflow">while</span>(pos->x != 1)</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     {</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>       <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos);</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     }</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>   {</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>     <span class="keywordtype">int</span> y = pos->y;</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> </div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     cpl_test_eq( pos->x, 1 );</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     cpl_test_eq( pos->y, y+1 );</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     cpl_test_eq( pos->order, minorder+1 );</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     <span class="comment">/* Here was a bug... */</span></div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>   }</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>   </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>  cleanup:</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>   uves_free_image(&image);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>   <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>   <a class="code" href="group__uves__extract__iterate.html#gabf1b3e568a93017a6a95ae64ae6f13b7" title="Deallocate iterator and set pointer to NULL.">uves_iterate_delete</a>(&pos);</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> }</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>   </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> </div>
-<div class="line"><a name="l00471"></a><span class="lineno"><a class="code" href="group__uves__extract__test.html#ga840291bc02cba5474a4cb46a9b9566fe">  471</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> {</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>   cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> <span class="comment">//  cpl_msg_set_level(CPL_MSG_DEBUG);</span></div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> </div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>   <a class="code" href="group__uves__extract__test.html#ga017b6e795dd968c9e025ca0d6f3611f5" title="test iteration">test_iterate</a>();</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>   <a class="code" href="group__uves__extract__test.html#gac6bd9700cd243b2b05fcfeff33c2ecff" title="test extraction">test_extract</a>();</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>   <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> }</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> </div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__extract_8c_source.html b/html/uves__extract_8c_source.html
deleted file mode 100644
index 3fce4f6..0000000
--- a/html/uves__extract_8c_source.html
+++ /dev/null
@@ -1,5915 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_extract.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_extract.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.196 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <uves_extract.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <uves_extract_iterate.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves_extract_profile.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_plot.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">                            Defines</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#define DATA(name, pos)      (name[((pos)->x-1)+((pos)->y-1)*(pos)->nx])</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor">#define SPECTRUM_DATA(name, pos) (name[((pos)->x-1)+((pos)->order-(pos)->minorder)*(pos)->nx])</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="preprocessor">#define ISBAD(weights, pos)  (weights[((pos)->x-1)+((pos)->y-1)*(pos)->nx] < 0)</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor">#define SETBAD(weights, image_bpm, pos)                              \</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor">      do {                                                           \</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="preprocessor">       weights  [((pos)->x-1)+((pos)->y-1)*(pos)->nx] = -1.0;        \</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor">       image_bpm[((pos)->x-1)+((pos)->y-1)*(pos)->nx] = CPL_BINARY_1;\</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor">      }                                             \</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor">      while (false)</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor">#define ISGOOD(bpm, pos) (bpm[((pos)->x-1)+((pos)->y-1)*(pos)->nx] == CPL_BINARY_0)</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment">/* Enable experimental algorithm that fits profile to all data in all orders</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">   at once */</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="preprocessor">#define NEW_METHOD 0</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="preprocessor">#if NEW_METHOD</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor"></span><span class="preprocessor">#define CREATE_DEBUGGING_TABLE 1</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="preprocessor"></span><span class="comment">/* else not used */</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <a class="code" href="group__uves__extract.html#ga658f6a76a3bcf324623828302b2b1205" title="Extract one order using linear, average or weighted extraction.">extract_order_simple</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>                      <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                      <span class="keywordtype">int</span> order, <span class="keywordtype">int</span> minorder,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>              <span class="keywordtype">int</span> spectrum_row,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                      <span class="keywordtype">double</span> offset,</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>                      <span class="keywordtype">double</span> slit_length,</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>                      extract_method method,</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>                      <span class="keyword">const</span> cpl_image *weights,</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>                      <span class="keywordtype">bool</span> extract_partial,</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                      cpl_image *spectrum,</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>                      cpl_image *spectrum_noise,</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>                      cpl_binary*spectrum_badmap,</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>              cpl_table **info_tbl,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>              <span class="keywordtype">double</span> *sn);</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__extract.html#gaae8e2ffac38d164c6f35df18166ee0d2" title="Calculate the area of a pixel that is above a line.">area_above_line</a>(<span class="keywordtype">int</span> y, <span class="keywordtype">double</span> left, <span class="keywordtype">double</span> right);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="keyword">static</span> cpl_table *<a class="code" href="group__uves__extract.html#gade9f76d1dc7526cbd212c04a74255b17" title="Define sky/object rows.">opt_define_sky</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *weights,</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>                                  uves_iterate_position *pos);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="keyword">static</span> cpl_image *<a class="code" href="group__uves__extract.html#ga1b8d6c2489fbc99e080dcdcc1dff5f1a" title="Extract and subtract sky.">opt_extract_sky</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>                                   <span class="keyword">const</span> cpl_image *weights,</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>                                   uves_iterate_position *pos,</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>                                   cpl_image *sky_spectrum,</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>                                   cpl_image *sky_spectrum_noise);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="keyword">static</span> cpl_image * <a class="code" href="group__uves__extract.html#ga0e232bc2628165c5e6aed6c3f12443c2" title="Measure and subtract sky.">opt_subtract_sky</a>(</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     <span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     <span class="keyword">const</span> cpl_image *weights,</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     uves_iterate_position *pos,</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     <span class="keyword">const</span> cpl_table *sky_map,</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     cpl_image *sky_spectrum,</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     cpl_image *sky_spectrum_noise);</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="keyword">static</span> cpl_table **<a class="code" href="group__uves__extract.html#gac4b249fd5e1d761d4d628fc58360cd59" title="Sample spatial profile.">opt_sample_spatial_profile</a>(</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *weights,</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     uves_iterate_position *pos, </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="keywordtype">int</span> chunk,</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="keywordtype">int</span> sampling_factor,</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <span class="keywordtype">int</span> *nbins);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="keyword">static</span> uves_extract_profile *<a class="code" href="group__uves__extract.html#gae3e0e629c167ff2012d0f200c347d1dc" title="Measure spatial profile (all orders)">opt_measure_profile</a>(</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     <span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     <span class="keyword">const</span> cpl_image *weights,</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     uves_iterate_position *pos, </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     <span class="keywordtype">int</span> chunk, <span class="keywordtype">int</span> sampling_factor,</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     <span class="keywordtype">int</span> (*f)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     <span class="keywordtype">int</span> M,</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     <span class="keyword">const</span> cpl_image *sky_spectrum,</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>     cpl_table *info_tbl,</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     cpl_table **profile_global);</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="keyword">static</span> cpl_table *<a class="code" href="group__uves__extract.html#gad07884e88093f0e0ee15519a30eb8d3f" title="Measure spatial profile (analytical)">opt_measure_profile_order</a>(</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     <span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     <span class="keyword">const</span> cpl_binary *image_bpm,</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     uves_iterate_position *pos,</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     <span class="keywordtype">int</span> chunk,</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keywordtype">int</span> (*f)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     <span class="keywordtype">int</span> M,</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <span class="keyword">const</span> cpl_image *sky_spectrum);</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <a class="code" href="group__uves__extract.html#gaded8ab18ec33bfaedbf404da6621c099" title="Refine error bars.">revise_noise</a>(cpl_image *image_noise,</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>          <span class="keyword">const</span> cpl_binary *image_bpm,</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *image_header,</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>          uves_iterate_position *pos,</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>          <span class="keyword">const</span> cpl_image *spectrum, </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>          <span class="keyword">const</span> cpl_image *sky_spectrum, </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>          <span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>          <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <a class="code" href="group__uves__extract.html#ga55de773dfa081016fda249a7cb7878de" title="Optimally extract order using the given the profile.">opt_extract</a>(cpl_image *image, </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>         <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>             uves_iterate_position *pos,</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>             <span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>         <span class="keywordtype">bool</span> optimal_extract_sky,</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>             <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>             cpl_table *blemish_mask, </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>             cpl_table *cosmic_mask, </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>         <span class="keywordtype">int</span> *cr_row,</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>             cpl_table *profile_table, </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>         <span class="keywordtype">int</span> *prof_row,</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>             cpl_image *spectrum, </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>         cpl_image *spectrum_noise,</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>             cpl_image *weights,</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>             cpl_image *sky_spectrum,</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>             cpl_image *sky_spectrum_noise,</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>             <span class="keywordtype">double</span> *sn);</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__extract.html#ga95cd798921bdd0f4606d5dbb45d0dab7" title="Get width of order.">opt_get_order_width</a>(<span class="keyword">const</span> uves_iterate_position *pos);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <a class="code" href="group__uves__extract.html#gaace2260dc82cd97c5a88753a26c00c39" title="Estimate the S/N of the input frame.">estimate_sn</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>             uves_iterate_position *pos);</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> </div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__extract.html#ga72eb895e6062614f776c8519f13dfb5e" title="Measure sky level (median)">opt_get_sky</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *image_data,</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>                                  <span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data,</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>                                  <span class="keyword">const</span> <span class="keywordtype">double</span> *weights_data,</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>                                  uves_iterate_position *pos,</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>                                  <span class="keyword">const</span> cpl_table *sky_map,</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>                                  <span class="keywordtype">double</span> buffer_flux[], <span class="keywordtype">double</span> buffer_noise[],</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>                                  <span class="keywordtype">double</span> *sky_background_noise);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__extract.html#gaa6e6619285bc14f8d61ed59ec8266d6e" title="Measure median noise level of extraction bin.">opt_get_noise_median</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data, </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>                       <span class="keyword">const</span> cpl_binary *image_bpm,</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>                                           uves_iterate_position *pos,</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>                       <span class="keywordtype">double</span> noise_buffer[]);</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__extract.html#ga8f31c60f3e1e173ad20217652934480c" title="Get flux, sky and variances of current bin.">opt_get_flux_sky_variance</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *image_data, </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>                           <span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data, </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>                            <span class="keywordtype">double</span> *weights_data,</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>                            uves_iterate_position *pos,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                            <span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>                            <span class="keywordtype">bool</span> optimal_extract_sky,</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>                            <span class="keywordtype">double</span> median_noise,</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>                            <span class="keywordtype">double</span> *variance,</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>                            <span class="keywordtype">double</span> *sky_background,</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                            <span class="keywordtype">double</span> *sky_background_noise);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="group__uves__extract.html#ga6ca277a820936e41b96d85c6bf0ea21b" title="Find and reject outlier pixel.">opt_reject_outlier</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *image_data, </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                    <span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                    cpl_binary *image_bpm,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                    <span class="keywordtype">double</span> *weights_data,</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                    uves_iterate_position *pos,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                    <span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                    <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                    <span class="keywordtype">double</span> flux,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                    <span class="keywordtype">double</span> sky_background,</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>                    <span class="keywordtype">double</span> red_chisq,</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>                    cpl_table *cosmic_mask, <span class="keywordtype">int</span> *cr_row,</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>                    <span class="keywordtype">int</span> *hot_pixels, <span class="keywordtype">int</span> *cold_pixels);</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__extract.html#ga74a27fdb394ea3be89fdd31f6c124da3" title="Get reduced chi^2 for current bin.">opt_get_redchisq</a>(<span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>                                <span class="keyword">const</span> uves_iterate_position *pos);</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="keyword">static</span> <a class="code" href="struct__polynomial.html">polynomial</a> *<a class="code" href="group__uves__extract.html#gac3d98948d7bf5772674a0a6042b82bf2" title="Refine order definition using the science frame.">repeat_orderdef</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>                                    <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *guess_locations,</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>                                    <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder, <a class="code" href="structslit__geometry.html">slit_geometry</a> sg,</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>                    cpl_table *info_tbl);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <a class="code" href="group__uves__extract.html#gacb90d6e405582e2d261bc5c117a1c20f" title="Try to detect and warn about any optimal extraction ripples (happening if oversampling factor is too ...">detect_ripples</a>(<span class="keyword">const</span> cpl_image *spectrum, <span class="keyword">const</span> uves_iterate_position *pos,</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>                <span class="keywordtype">double</span> sn);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> cpl_parameterlist *</div>
-<div class="line"><a name="l00264"></a><span class="lineno"><a class="code" href="group__uves__extract.html#ga99751e637d04bc19090446f3a15974d0">  264</a></span> <a class="code" href="group__uves__extract.html#ga99751e637d04bc19090446f3a15974d0" title="Define recipe parameters used for extraction.">uves_extract_define_parameters</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> {</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     cpl_parameter *p = NULL;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     cpl_parameterlist *parameters = NULL;</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> </div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     parameters = cpl_parameterlist_new();</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     {</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>         name = <span class="stringliteral">"method"</span>;</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_EXTRACT_ID, name);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>         uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>                                 CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>                                 <span class="stringliteral">"Extraction method. (2d/optimal not supported by uves_cal_wavecal, weighted supported only by uves_cal_wavecal, 2d not supported by uves_cal_response)"</span>,</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>                                 UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>                                 <span class="stringliteral">"optimal"</span>,</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>                                 5,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                                 <span class="stringliteral">"average"</span>,</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                                 <span class="stringliteral">"linear"</span>,</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                                 <span class="stringliteral">"2d"</span>,</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>                                 <span class="stringliteral">"weighted"</span>,</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                                 <span class="stringliteral">"optimal"</span>);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>         </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     }</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     {</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>         name = <span class="stringliteral">"kappa"</span>;</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_EXTRACT_ID, name);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>         </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>         uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>                                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>                                  <span class="stringliteral">"In optimal extraction mode, this is the "</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>                                  <span class="stringliteral">"threshold for bad (i.e. hot/cold) "</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>                                  <span class="stringliteral">"pixel rejection. If a pixel deviates more than "</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>                                  <span class="stringliteral">"kappa*sigma (where sigma is "</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                                  <span class="stringliteral">"the uncertainty of the pixel flux) from "</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                                  <span class="stringliteral">"the inferred spatial profile, its "</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                                  <span class="stringliteral">"weight is set to zero. Range: [-1,100]. If this parameter "</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                                  <span class="stringliteral">"is negative, no rejection is performed."</span>,</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>                                  UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>                                  10.0,-1.,100.);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>         </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     }</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     {</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>         name = <span class="stringliteral">"chunk"</span>;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_EXTRACT_ID, name);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>         </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>         uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                                  <span class="stringliteral">"In optimal extraction mode, the chunk size (in pixels) "</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>                                  <span class="stringliteral">"used for fitting the analytical profile (a fit of the "</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>                                  <span class="stringliteral">"analytical profile to single bins would suffer from "</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>                                  <span class="stringliteral">"low statistics)."</span>,</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>                                  UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>                                  32,</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>                                  1, INT_MAX);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>         </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     }</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     {</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>         name = <span class="stringliteral">"profile"</span>;</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_EXTRACT_ID, name);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>         </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>         uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>                                 CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>                                 <span class="stringliteral">"In optimal extraction mode, the kind of profile to use. "</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>                                 <span class="stringliteral">"'gauss' gives a Gaussian profile, 'moffat' gives "</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>                                 <span class="stringliteral">"a Moffat profile with beta=4 and a possible linear sky "</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>                                 <span class="stringliteral">"contribution. 'virtual' uses "</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>                                 <span class="stringliteral">"a virtual resampling algorithm (i.e. measures and "</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>                                 <span class="stringliteral">"uses the actual object profile). "</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>                                 <span class="stringliteral">"'constant' assumes a constant spatial profile and "</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>                                 <span class="stringliteral">"allows optimal extraction of wavelength "</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>                                 <span class="stringliteral">"calibration frames. 'auto' will automatically "</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>                                 <span class="stringliteral">"select the best method based on the estimated S/N of the "</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>                                 <span class="stringliteral">"object. For low S/N, 'moffat' or 'gauss' are "</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>                                 <span class="stringliteral">"recommended (for robustness). For high S/N, 'virtual' is "</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>                                 <span class="stringliteral">"recommended (for accuracy). In the case of virtual resampling, "</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>                                 <span class="stringliteral">"a precise determination of the order positions is required; "</span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>                                 <span class="stringliteral">"therefore the order-definition is repeated "</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>                                 <span class="stringliteral">"using the (assumed non-low S/N) science frame"</span>,</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>                                 UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>                 <span class="stringliteral">"auto"</span>,</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>                                 5,</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>                                 <span class="stringliteral">"constant"</span>,</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>                                 <span class="stringliteral">"gauss"</span>,</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>                                 <span class="stringliteral">"moffat"</span>,</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>                                 <span class="stringliteral">"virtual"</span>,</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>                                 <span class="stringliteral">"auto"</span>);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>         </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     }</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     {</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>         name = <span class="stringliteral">"skymethod"</span>;</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_EXTRACT_ID, name);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>         </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>         uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>                                 CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>                                 <span class="stringliteral">"In optimal extraction mode, the sky subtraction method "</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>                 <span class="stringliteral">"to use. 'median' estimates the sky as the median of pixels "</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                 <span class="stringliteral">"along the slit (ignoring pixels close to the object), whereas "</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                 <span class="stringliteral">"'optimal' does a chi square minimization along the slit "</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>                 <span class="stringliteral">"to obtain the best combined object and sky levels. The optimal "</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>                 <span class="stringliteral">"method gives the most accurate sky determination but is also "</span></div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>                 <span class="stringliteral">"a bit slower than the median method"</span>,</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>                                 UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>                 <span class="stringliteral">"optimal"</span>,</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>                                 2,</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>                                 <span class="stringliteral">"median"</span>,</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                                 <span class="stringliteral">"optimal"</span>);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>         </div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     }</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     {</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>         name = <span class="stringliteral">"oversample"</span>;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_EXTRACT_ID, name);</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>         uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                                  <span class="stringliteral">"The oversampling factor used for the virtual "</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>                                  <span class="stringliteral">"resampling algorithm. If negative, the value 5 is "</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                                  <span class="stringliteral">"used for S/N <=200, and the value 10 is used if the estimated "</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>                                  <span class="stringliteral">"S/N is > 200"</span>,</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>                                  UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>                                  -1,</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>                                  -2, INT_MAX);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>         </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     }</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     {</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>         name = <span class="stringliteral">"best"</span>;</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_EXTRACT_ID, name);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                  CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                  <span class="stringliteral">"(optimal extraction only) "</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                  <span class="stringliteral">"If false (fastest), the spectrum is extracted only once. "</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                  <span class="stringliteral">"If true (best), the spectrum is extracted twice, the "</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                  <span class="stringliteral">"second time using improved variance estimates "</span></div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>                  <span class="stringliteral">"based on the first iteration. Better variance "</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>                  <span class="stringliteral">"estimates slightly improve the obtained signal to "</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>                  <span class="stringliteral">"noise but at the cost of increased execution time"</span>,</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>                  UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>                  <span class="keyword">true</span>);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     }</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>         {</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>             cpl_msg_error(__func__, <span class="stringliteral">"Creation of extraction parameters failed: '%s'"</span>, </div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>                           cpl_error_get_where());</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>             cpl_parameterlist_delete(parameters);</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>             <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>         }</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>         {</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>             <span class="keywordflow">return</span> parameters;</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>         }</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> }</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> </div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> </div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> extract_method</div>
-<div class="line"><a name="l00462"></a><span class="lineno"><a class="code" href="group__uves__extract.html#gaa6ae7afeaf5c4a71eb399ffa29a828f7">  462</a></span> <a class="code" href="group__uves__extract.html#gaa6ae7afeaf5c4a71eb399ffa29a828f7" title="Read extraction method from parameter list.">uves_get_extract_method</a>(<span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                         <span class="keyword">const</span> <span class="keywordtype">char</span> *context, <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext)</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> {</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *method = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     extract_method result = 0;</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, subcontext, <span class="stringliteral">"method"</span>, </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                               CPL_TYPE_STRING, &method),</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>            <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     <span class="keywordflow">if</span>      (strcmp(method, <span class="stringliteral">"average"</span> ) == 0) result = EXTRACT_AVERAGE;</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(method, <span class="stringliteral">"linear"</span>  ) == 0) result = EXTRACT_LINEAR;</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(method, <span class="stringliteral">"2d"</span>      ) == 0) result = EXTRACT_2D;</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(method, <span class="stringliteral">"weighted"</span>) == 0) result = EXTRACT_WEIGHTED;</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(method, <span class="stringliteral">"optimal"</span> ) == 0) result = EXTRACT_OPTIMAL;</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>         {</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>             assure(<span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"No such extraction method: '%s'"</span>, method);</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>         }</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>   cleanup:</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> }</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> </div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> cpl_image *</div>
-<div class="line"><a name="l00569"></a><span class="lineno"><a class="code" href="group__uves__extract.html#ga724649dabb1df68c512fdd9e99b36f0d">  569</a></span> <a class="code" href="group__uves__extract.html#ga724649dabb1df68c512fdd9e99b36f0d" title="Extract a spectrum.">uves_extract</a>(cpl_image *image, </div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>              cpl_image *image_noise, </div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>              <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *image_header,</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>              <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>              <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations_raw,</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>              <span class="keywordtype">double</span> slit_length, </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>              <span class="keywordtype">double</span> offset,</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>              <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *context,</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *mode,</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>              <span class="keywordtype">bool</span> extract_partial,</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>              <span class="keywordtype">bool</span> debug_mode,</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>              <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>              <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **header, </div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>              cpl_image **spectrum_noise,</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>              cpl_image **sky_spectrum,</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>              cpl_image **sky_spectrum_noise,</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>              cpl_table **cosmic_mask,</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>              cpl_image **cosmic_image,</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>              cpl_table **profile_table,</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>              cpl_image **weights,</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>              cpl_table **info_tbl,</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>              cpl_table **order_trace)</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> {</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>     cpl_image *spectrum = NULL;        <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     cpl_mask  *spectrum_bad = NULL;</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     cpl_binary*spectrum_badmap = NULL;</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>     cpl_image *sky_subtracted = NULL;</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>     cpl_image *temp = NULL;</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     cpl_image *reconstruct = NULL;</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>     <a class="code" href="structslit__geometry.html">slit_geometry</a> sg;</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>     <span class="comment">/* Recipe parameters */</span></div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>     extract_method method;</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     <span class="keywordtype">double</span> kappa;</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>     <span class="keywordtype">int</span> chunk;</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *p_method;</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>     <span class="keywordtype">int</span> sampling_factor;</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     <span class="keywordtype">bool</span> best;</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>     <span class="keywordtype">bool</span> optimal_extract_sky;</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>     int (*prof_func)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result) = NULL;</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>     int (*prof_func_der)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]) = NULL;</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>     <span class="keywordtype">int</span> prof_pars = 0;</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> </div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations = NULL;<span class="comment">/* Improved order positions (or duplicate</span></div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> <span class="comment">                                          of input polynomial) */</span></div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>     <span class="keywordtype">int</span> n_traces;                      <span class="comment">/* The number of traces to extract</span></div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> <span class="comment">                                        * within each order, only relevant</span></div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> <span class="comment">                                        * for 2D extraction           */</span></div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>     <span class="keywordtype">int</span> iteration, trace;              <span class="comment">/* Current iteration, order, trace */</span></div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     <span class="keywordtype">int</span> n_iterations;</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>     <span class="keywordtype">int</span> cr_row = 0;                    <span class="comment">/* Points to first unused row in cr table */</span></div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>     <span class="keywordtype">int</span> prof_row = 0;                  <span class="comment">/* Next unsused row of profile_table */</span></div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     uves_extract_profile *profile = NULL;</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>     uves_iterate_position *pos = NULL;              <span class="comment">/* Iterator over input image */</span></div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     <span class="keywordtype">char</span> ex_context[80];</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     cpl_table* blemish_mask=NULL;</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>  </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     assure(image != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Missing input image"</span>);</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>     <span class="comment">/* header may be NULL */</span></div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     assure( spectrum_noise == NULL || image_noise != NULL, CPL_ERROR_DATA_NOT_FOUND, </div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>             <span class="stringliteral">"Need image noise in order to calculate spectrum errors"</span>);</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     assure( ordertable != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Missing order table"</span>);</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>     assure( order_locations_raw != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Missing order polynomial"</span>);</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     assure( parameters != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null parameter list"</span>);</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>     assure( context != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Missing context string!"</span>);</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>     assure( cpl_table_has_column(ordertable, <span class="stringliteral">"Order"</span>), </div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>             CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"No 'Order' column in order table!"</span>);</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(order_locations_raw) == 2, <span class="stringliteral">"%d"</span>, </div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>              <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(order_locations));</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     assure( slit_length > 0, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>             <span class="stringliteral">"Slit length must a be positive number! It is %e"</span>, slit_length);</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>     <span class="comment">/* sky_spectrum may be NULL */</span></div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>     assure( (sky_spectrum == NULL) == (sky_spectrum_noise == NULL), CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>             <span class="stringliteral">"Need 0 or 2 of sky spectrum + sky noise spectrum"</span>);</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span> </div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>     <span class="comment">/* info_tbl may be NULL */</span></div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> </div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>     sg.length = slit_length;</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>     sg.offset = offset;</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> </div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>      <span class="keywordflow">if</span>(strcmp(mode,<span class="stringliteral">".efficiency"</span>)==0) {</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>        sprintf(ex_context,<span class="stringliteral">"uves_cal_response%s.reduce"</span>,mode);</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>      } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>        sprintf(ex_context,<span class="stringliteral">"%s"</span>,context);</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>      }</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> </div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span> </div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> </div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>     <span class="comment">/* Get recipe parameters */</span></div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_EXTRACT_ID, </div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>                   <span class="stringliteral">"kappa"</span> , CPL_TYPE_DOUBLE, &kappa) , </div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>                   <span class="stringliteral">"chunk"</span> , CPL_TYPE_INT, &chunk) , </div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> </div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( method = <a class="code" href="group__uves__extract.html#gaa6ae7afeaf5c4a71eb399ffa29a828f7" title="Read extraction method from parameter list.">uves_get_extract_method</a>(parameters, ex_context, UVES_EXTRACT_ID) );</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span> </div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>     {</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>     <span class="keywordtype">char</span> *s_method;</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>     </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>                                   <span class="stringliteral">"skymethod"</span>, CPL_TYPE_STRING, &s_method),</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>         <span class="keywordflow">if</span>      (strcmp(s_method, <span class="stringliteral">"median"</span> ) == 0) optimal_extract_sky = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(s_method, <span class="stringliteral">"optimal"</span>) == 0) optimal_extract_sky = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>             {</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>                 assure( <span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                         <span class="stringliteral">"Unrecognized sky extraction method: '%s'"</span>, s_method);</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>             }</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span> </div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>     }</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> </div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>     {</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>         <span class="keywordtype">int</span> minorder, maxorder;</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( minorder = cpl_table_get_column_min(ordertable, <span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>                 maxorder = cpl_table_get_column_max(ordertable, <span class="stringliteral">"Order"</span>)),</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>               <span class="stringliteral">"Error getting order range"</span>);</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>         </div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>         pos = <a class="code" href="group__uves__extract__iterate.html#ga8601e16b56ff03ee210eec3684fd5501" title="Allocate iterator.">uves_iterate_new</a>(cpl_image_get_size_x(image),</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>                                cpl_image_get_size_y(image), </div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>                                order_locations_raw,</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>                                minorder, maxorder, sg); </div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>         <span class="comment">/* needed for estimate_sn */</span></div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>     }</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     <span class="keywordflow">if</span> (method == EXTRACT_OPTIMAL)</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>         {</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>             assure( image_noise != NULL, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>                     <span class="stringliteral">"Extraction method is optimal, but no noise image is provided"</span>);</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span> </div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>             assure( weights != NULL, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>                     <span class="stringliteral">"Extraction method is optimal, but no weight image is provided"</span>);</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>             </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>             assure( cosmic_mask != NULL, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>                     <span class="stringliteral">"Extraction method is optimal, but no cosmic ray mask table is provided"</span>);</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>             </div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>             assure( cosmic_image != NULL, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>                     <span class="stringliteral">"Extraction method is optimal, but no cosmic ray mask image is provided"</span>);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>             </div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>             assure( order_trace != NULL, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>                     <span class="stringliteral">"Extraction method is optimal, but no order trace table is provided"</span>);</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> </div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>             assure( *weights == NULL, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>                     <span class="stringliteral">"Weight image already exists"</span>);</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>             </div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_EXTRACT_ID, <span class="stringliteral">"oversample"</span>,</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>                                       CPL_TYPE_INT, &sampling_factor), </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>                    <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_EXTRACT_ID, <span class="stringliteral">"best"</span>,</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>                                       CPL_TYPE_BOOL, &best), </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>                    <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_EXTRACT_ID, <span class="stringliteral">"profile"</span>,</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>                                       CPL_TYPE_STRING, &p_method),</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>                    <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>             </div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>             assure( strcmp(p_method, <span class="stringliteral">"constant"</span>) == 0 || </div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>                     sky_spectrum != NULL, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>                     <span class="stringliteral">"Extraction method is optimal, but no sky spectrum is provided"</span>);</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>             <span class="keywordflow">if</span>      (strcmp(p_method, <span class="stringliteral">"auto"</span>   ) == 0)</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>                 {</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>                     <span class="comment">/* Auto-select profile measuring method.</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> <span class="comment">                       At low S/N a model with fewer free</span></div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span> <span class="comment">                       parameters is needed */</span></div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span> </div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>                     <span class="keywordtype">double</span> sn_estimate;</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>                     </div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( sn_estimate = <a class="code" href="group__uves__extract.html#gaace2260dc82cd97c5a88753a26c00c39" title="Estimate the S/N of the input frame.">estimate_sn</a>(image, image_noise,</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>                                                      pos),</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>                            <span class="stringliteral">"Could not estimate image S/N"</span>);</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>                     </div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>                     <span class="keywordflow">if</span> (sn_estimate < 10)</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>                         {</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>                             p_method = <span class="stringliteral">"gauss"</span>;</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>                         }</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>                         {</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>                             p_method = <span class="stringliteral">"virtual"</span>;</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>                         }</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span> </div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Estimated S/N is %.2f, "</span></div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>                              <span class="stringliteral">"auto-selecting profile measuring method '%s'"</span>, sn_estimate,</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>                              p_method);</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>                 }</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>             </div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>             <span class="keywordflow">if</span>      (strcmp(p_method, <span class="stringliteral">"gauss"</span>  ) == 0) </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>                 {prof_func = <a class="code" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c" title="Evaluate a gaussian.">uves_gauss</a> ; prof_func_der = <a class="code" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea" title="Evaluate the derivatives of a gaussian.">uves_gauss_derivative</a> ; prof_pars = 4;}</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(p_method, <span class="stringliteral">"moffat"</span> ) == 0) </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>                 {prof_func = <a class="code" href="group__uves__utils.html#ga32f63d655b7a15cb65c59f6ed9153a69" title="Evaluate a Moffat.">uves_moffat</a>; prof_func_der = <a class="code" href="group__uves__utils.html#ga3268b9eca855e33e38a5bd58c5d512c0" title="Evaluate Moffat derivative.">uves_moffat_derivative</a>; prof_pars = 5;}</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(p_method, <span class="stringliteral">"virtual"</span>) == 0) </div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>                 {prof_func = NULL       ; prof_func_der = NULL                  ; prof_pars = 0;}</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(p_method, <span class="stringliteral">"constant"</span>) != 0) </div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>                 {</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>                     assure( <span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>                             <span class="stringliteral">"Unrecognized profile method: '%s'"</span>, p_method);</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>                 }</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> </div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>             assure( sampling_factor != 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>                     <span class="stringliteral">"Illegal oversampling factor = %d"</span>, sampling_factor);</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span> </div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>             <span class="keywordflow">if</span> (strcmp(p_method, <span class="stringliteral">"virtual"</span>) == 0 && sampling_factor < 0)</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>                 <span class="comment">/* Auto-select value */</span></div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>                 {</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>                     <span class="keywordtype">double</span> sn_estimate;</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>                     </div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( sn_estimate = <a class="code" href="group__uves__extract.html#gaace2260dc82cd97c5a88753a26c00c39" title="Estimate the S/N of the input frame.">estimate_sn</a>(image, image_noise,</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>                                                      pos),</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>                            <span class="stringliteral">"Could not estimate image S/N"</span>);</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>                     </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>                     <span class="keywordflow">if</span> (sn_estimate <= 200)</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>                         {</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>                             sampling_factor = 5;</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>                         }</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>                         {</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>                             sampling_factor = 10;</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>                         }</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> </div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Estimated S/N is %.2f, "</span></div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>                              <span class="stringliteral">"auto-selecting oversampling factor = %d"</span>, sn_estimate,</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>                              sampling_factor);</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>                 }</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>         }</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>     assure( method != EXTRACT_WEIGHTED || weights != NULL, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>             <span class="stringliteral">"Extraction method is weighted, but no weight image is provided"</span>);</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>     </div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>     <span class="keywordflow">if</span> (method == EXTRACT_2D)</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>         {</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>             <span class="comment">/* 1 trace is just 1 pixel */</span></div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>             n_traces = uves_round_double(slit_length);</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>             </div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>             assure( n_traces % 2 == 0, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>                     <span class="stringliteral">"For 2d extraction slit length (%d) must be an even number"</span>, n_traces);</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>         }</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>         {</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>             n_traces = 1;</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>         }</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> </div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>     <span class="keywordflow">if</span> (method == EXTRACT_2D)</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>         {</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Slit length = %.1f pixels"</span>, slit_length);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>         }</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>         {</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Slit length = %.1f pixels; offset = %.1f pixel(s)"</span>, </div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>                          sg.length, sg.offset);</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>         }</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span> </div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>     <span class="comment">/* Initialize result images */</span></div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( spectrum        = cpl_image_new(pos->nx,</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>                                             n_traces*(pos->maxorder - pos->minorder + 1), </div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>                                             CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>             spectrum_bad    = cpl_image_get_bpm(spectrum),</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>             spectrum_badmap = cpl_mask_get_data(spectrum_bad)),</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>           <span class="stringliteral">"Error creating spectrum image"</span>);</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span> </div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span> </div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>     <span class="keywordflow">if</span> (spectrum_noise != NULL)</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>         {</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *spectrum_noise = cpl_image_new(cpl_image_get_size_x(spectrum),</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>                                                    cpl_image_get_size_y(spectrum),</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>                                                    CPL_TYPE_DOUBLE), </div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>                    <span class="stringliteral">"Could not create image"</span>);</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>         }</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span> </div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>     <span class="keywordflow">if</span> (info_tbl != NULL &&</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>     (method == EXTRACT_LINEAR  || method == EXTRACT_AVERAGE ||</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>          method == EXTRACT_OPTIMAL)</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>     )</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>     {</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>         *info_tbl = cpl_table_new(pos->maxorder-pos->minorder+1);</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>         cpl_table_new_column(*info_tbl, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>         cpl_table_new_column(*info_tbl, <span class="stringliteral">"ObjSnBlzCentre"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>         cpl_table_new_column(*info_tbl, <span class="stringliteral">"Ripple"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>         <span class="comment">/* Pos+FWHM columns are calculated differently,</span></div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> <span class="comment">           based on optimal extraction method,</span></div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span> <span class="comment">           and simple extraction */</span></div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span> </div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>         cpl_table_new_column(*info_tbl, <span class="stringliteral">"ObjPosOnSlit"</span>, CPL_TYPE_DOUBLE); <span class="comment">/* From bottom of slit */</span></div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>         cpl_table_new_column(*info_tbl, <span class="stringliteral">"ObjFwhmAvg"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>     }</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> </div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>     <span class="comment">/* Extra input validation + initialization for optimal extraction */</span></div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>     <span class="keywordflow">if</span> (method == EXTRACT_OPTIMAL)</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>         {</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>             <span class="comment">/* Initialize weights to zero (good pixels) */</span></div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *weights = cpl_image_new(pos->nx, pos->ny, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>                    <span class="stringliteral">"Could not allocate weight image"</span>);</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>             </div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>             <span class="comment">/* Initialize cr and profile tables */</span></div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( *cosmic_mask = cpl_table_new(1),</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>                     cpl_table_new_column(*cosmic_mask, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT),</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>                     cpl_table_new_column(*cosmic_mask, <span class="stringliteral">"X"</span>    , CPL_TYPE_INT),</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>                     cpl_table_new_column(*cosmic_mask, <span class="stringliteral">"Y"</span>    , CPL_TYPE_INT),</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>                     cpl_table_new_column(*cosmic_mask, <span class="stringliteral">"Flux"</span> , CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>                     cr_row = 0),</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>                    <span class="stringliteral">"Error creating cosmic ray table"</span>);</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>             </div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>         <span class="comment">/* We need to flag detector detector blemishes if present */</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>         <span class="keywordflow">if</span>(*cosmic_image!=NULL) {</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>               <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>               <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>           <span class="keywordtype">int</span> nblemish=0;</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>               <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>               <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>           <span class="keywordtype">int</span> row=0;</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>               <span class="keywordtype">double</span> flux=0;</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>           <span class="keywordtype">int</span>* px=NULL;</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>           <span class="keywordtype">int</span>* py=NULL;</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>   </div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>           <span class="keywordtype">double</span>* pcmask=NULL;</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>           <span class="keywordtype">double</span> blemish_frac=0;</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>     </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>           <span class="comment">/* we count how many blemishes we got */</span></div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>               flux=cpl_image_get_flux(*cosmic_image);</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>               sx=cpl_image_get_size_x(*cosmic_image);</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>               sy=cpl_image_get_size_y(*cosmic_image);</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>               nblemish=sx*sy-(int)flux;</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>               blemish_frac=(sx*sy-flux)/(sx*sy);</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>               <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"nblemish=%d frac=%g"</span>,nblemish,blemish_frac);</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>               </div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>               <span class="keywordflow">if</span>(blemish_frac< 0.02) {</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>                 </div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>                  <span class="comment">/* we copy blemishes in a table, for efficiency */</span></div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>                  blemish_mask=cpl_table_new(nblemish);</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>                  cpl_table_new_column(blemish_mask,<span class="stringliteral">"X"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>                  cpl_table_new_column(blemish_mask,<span class="stringliteral">"Y"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>                  cpl_table_fill_column_window_int(blemish_mask,<span class="stringliteral">"X"</span>,</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>                                                   0,nblemish,0);</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>                  cpl_table_fill_column_window_int(blemish_mask,<span class="stringliteral">"Y"</span>,</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>                                                   0,nblemish,0);</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span> </div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>                  pcmask=cpl_image_get_data_double(*cosmic_image);</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>                  px=cpl_table_get_data_int(blemish_mask,<span class="stringliteral">"X"</span>);</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>                  py=cpl_table_get_data_int(blemish_mask,<span class="stringliteral">"Y"</span>);</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>                 </div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>                  <span class="keywordflow">for</span>(j=0;j<sy;j++) {</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>                     <span class="keywordflow">for</span>(i=0;i<sx;i++) { </div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>                        <span class="keywordflow">if</span>(pcmask[j*sx+i]==0) {</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>                           px[row]=i;</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>                           py[row]=j;</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>                           row++;</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>                        }</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>                     }</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                  }</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>                  <span class="comment">/*</span></div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> <span class="comment">                   check_nomsg(cpl_table_save(blemish_mask,NULL,NULL,</span></div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span> <span class="comment">                   "blemish_mask.fits",CPL_IO_DEFAULT));</span></div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span> <span class="comment">                 */</span></div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>                  cr_row=nblemish;</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>               } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>                  <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"%d pixels affected by detector blemishes %g (>0.02) of total. Not flag them in optimal extraction"</span>,nblemish,blemish_frac);</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span> </div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>               }</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>         } <span class="comment">/* end special case for detector blemishes */</span></div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> </div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span> </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>             <span class="keywordflow">if</span> (profile_table != NULL)</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>                 {</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( (*profile_table = cpl_table_new((pos->maxorder - pos->minorder + 1) *</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>                                                            pos->nx *</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>                                                            (3+uves_round_double(sg.length))),</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                             cpl_table_new_column(*profile_table, <span class="stringliteral">"Order"</span>      , CPL_TYPE_INT),</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                             cpl_table_new_column(*profile_table, <span class="stringliteral">"X"</span>          , CPL_TYPE_INT),</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>                             cpl_table_new_column(*profile_table, <span class="stringliteral">"DY"</span>         , CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                             cpl_table_new_column(*profile_table, <span class="stringliteral">"Profile_raw"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                             cpl_table_new_column(*profile_table, <span class="stringliteral">"Profile_int"</span>, CPL_TYPE_DOUBLE)),</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>                            <span class="stringliteral">"Error creating profile table"</span>);</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>                     prof_row = 0;</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>                 }</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> </div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>             <span class="keywordflow">if</span> (strcmp(p_method, <span class="stringliteral">"constant"</span>) != 0) {</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *sky_spectrum = cpl_image_new(</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                            pos->nx, pos->maxorder - pos->minorder + 1, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>                        <span class="stringliteral">"Could not allocate sky spectrum"</span>);</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *sky_spectrum_noise = cpl_image_new(</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>                            pos->nx, pos->maxorder - pos->minorder + 1, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                        <span class="stringliteral">"Could not allocate sky spectrum noise"</span>);</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>             }</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>     }</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>   </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>     <span class="keywordflow">if</span> (method == EXTRACT_OPTIMAL && </div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>         strcmp(p_method, <span class="stringliteral">"constant"</span>) != 0 && prof_func == NULL)</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>         {</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>             <span class="comment">/* Virtual method needs accurate order definition.</span></div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> <span class="comment">             * Some calibration order tables are inaccurate because</span></div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span> <span class="comment">             * the poly-degree used (2,3) is too low.</span></div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span> <span class="comment">             * Besides, the (science) spectrum might be shifted compared</span></div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span> <span class="comment">             * to the order-flat-narrow frame.</span></div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>             </div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Refining order definition using the object frame"</span>);</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span> </div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( order_locations = <a class="code" href="group__uves__extract.html#gac3d98948d7bf5772674a0a6042b82bf2" title="Refine order definition using the science frame.">repeat_orderdef</a>(image, image_noise, order_locations_raw, </div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                                                      pos->minorder, pos->maxorder, </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                              pos->sg,</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>                              *info_tbl),</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>                    <span class="stringliteral">"Could not refine order definition"</span>);</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>         }</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>         {</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>             order_locations = <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(order_locations_raw);</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>         }</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span> </div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>     pos->order_locations = order_locations;</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span> </div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>     <span class="comment">/* Input checking + output initialization done. */</span></div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> </div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span> </div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     <span class="comment">/* Do the processing, pseudocode for optimal extraction:</span></div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span> <span class="comment"></span></div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> <span class="comment">       extract+subtract sky (median method)</span></div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> <span class="comment">       globally measure profile</span></div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> <span class="comment"></span></div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span> <span class="comment">       two times</span></div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span> <span class="comment">         for each order</span></div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span> <span class="comment">             extract object+sky, reject hot/cold pixels</span></div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> <span class="comment">         revise variances</span></div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>     <span class="keywordflow">if</span> (method == EXTRACT_OPTIMAL)</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>     {</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>             <span class="keywordflow">if</span> (strcmp(p_method, <span class="stringliteral">"constant"</span>) == 0) {</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> </div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Assuming constant spatial profile"</span>);</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>                 </div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>                 profile = uves_extract_profile_new_constant(sg.length);</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>                 <span class="comment">/* Pretend that we subtracted the sky here */</span></div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>                 sky_subtracted = cpl_image_duplicate(image);</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>                 optimal_extract_sky = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> </div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>             }</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>             <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( sky_subtracted = <a class="code" href="group__uves__extract.html#ga1b8d6c2489fbc99e080dcdcc1dff5f1a" title="Extract and subtract sky.">opt_extract_sky</a>(</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>                            image, image_noise, *weights,</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>                            pos,</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>                            *sky_spectrum,</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>                            *sky_spectrum_noise),</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>                        <span class="stringliteral">"Could not extract sky"</span>);</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>                  <span class="keywordflow">if</span> (prof_func != NULL)</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>                     {</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>                         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Measuring spatial profile "</span></div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>                                  <span class="stringliteral">"(method = %s, chunk = %d bins)"</span>,</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>                                  p_method, chunk);</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>                     }</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>                     {</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>                         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Measuring spatial profile "</span></div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>                                  <span class="stringliteral">"(method = %s, oversampling = %d)"</span>, </div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>                                  p_method, sampling_factor);</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>                     }</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>                 </div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>                 uves_extract_profile_delete(&profile);</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>                 <span class="comment">/* the new profile measuring method should use this one</span></div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> <span class="comment">                   check( profile = opt_measure_profile(image, image_noise, *weights, */</span></div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( profile = <a class="code" href="group__uves__extract.html#gae3e0e629c167ff2012d0f200c347d1dc" title="Measure spatial profile (all orders)">opt_measure_profile</a>(sky_subtracted, image_noise, *weights,</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>                                                      pos,</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>                                                      chunk, sampling_factor,</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>                                                      prof_func, prof_func_der, prof_pars,</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>                                                      *sky_spectrum,</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>                                                      *info_tbl,</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>                                                      order_trace),</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>                        <span class="stringliteral">"Could not measure profile"</span>);</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>                 </div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>                 <span class="comment">/* In previous versions, the sky was subtracted (again) at this point</span></div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> <span class="comment">                   using the knowledge of the analytical profile.</span></div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> <span class="comment">                   But this is not needed anymore, now that the sky is</span></div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> <span class="comment">                   extracted simultaneously with the flux (which is equivalent</span></div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> <span class="comment">                   but much faster).</span></div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>             }</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>         }</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>     </div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>     <span class="comment">/* The loop over traces is trivial, unless method = 2d. */</span></div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( method == EXTRACT_2D || n_traces == 1, <span class="stringliteral">"%d"</span>, n_traces);</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>  </div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>     n_iterations = (method == EXTRACT_OPTIMAL && </div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                     best && </div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                     strcmp(p_method, <span class="stringliteral">"constant"</span>) != 0) ? 2 : 1;</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>     <span class="comment">//cpl_table_dump(*cosmic_mask,0,cr_row,stdout);</span></div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>     <span class="comment">//uves_msg("cr_row=%d table size=%d",cr_row,cpl_table_get_nrow(*cosmic_mask));</span></div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>     <span class="keywordtype">int</span> cr_row_max=0;</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>     <span class="comment">/* in case of blemishes cr_row> 0 */</span></div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>     <span class="comment">//cr_row_max=(cr_row>cr_row_max) ? cr_row: cr_row_max;</span></div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>  </div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>     <span class="comment">//cpl_table_dump(*cosmic_mask,1,2,stdout);</span></div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>   </div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>     <span class="keywordflow">for</span> (iteration = 1; </div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>      iteration <= n_iterations;</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>      iteration++)</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>     {</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Extracting object %s(method = %s)"</span>, </div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>              (method == EXTRACT_OPTIMAL && optimal_extract_sky)  </div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>                                           ? <span class="stringliteral">"and sky "</span> : <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>              (method == EXTRACT_OPTIMAL)  ? <span class="stringliteral">"optimal"</span>  : </div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>              (method == EXTRACT_AVERAGE)  ? <span class="stringliteral">"average"</span>  :</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>              (method == EXTRACT_LINEAR )  ? <span class="stringliteral">"linear"</span>   :</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>              (method == EXTRACT_2D     )  ? <span class="stringliteral">"2d"</span>       :</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>              (method == EXTRACT_WEIGHTED) ? <span class="stringliteral">"weighted"</span> : <span class="stringliteral">"???"</span>);</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>         </div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>         <span class="comment">/* Clear cosmic ray + profile table + S/N table */</span></div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>     <span class="comment">//uves_msg("cr_row=%d table size=%d",cr_row,cpl_table_get_nrow(*cosmic_mask));</span></div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>             cr_row = cr_row_max;</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>         <span class="comment">//uves_msg("cr_row=%d table size=%d",cr_row,cpl_table_get_nrow(*cosmic_mask));</span></div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>             prof_row = 0;</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>             <span class="keywordflow">for</span> (pos->order = pos->minorder; pos->order <= pos->maxorder; pos->order++) {</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                 <span class="keywordflow">for</span> (trace = 1; trace <= n_traces; trace++) {</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>                     <span class="keywordtype">int</span> spectrum_row; <span class="comment">/* Spectrum image row to write to */</span></div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                     <span class="keywordtype">int</span> bins_extracted;</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>                     </div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>                     <span class="keywordtype">double</span> sn = 0;</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>                     </div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>                     spectrum_row = (pos->order - pos->minorder)*n_traces + trace;</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>                     <span class="comment">/* Always count from order=1 in the extracted spectrum */</span></div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>                     </div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>                     <span class="keywordflow">if</span> (method == EXTRACT_OPTIMAL)</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>                         {</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>                             <span class="comment">/*</span></div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> <span class="comment">                             * We already know the spatial profile.</span></div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> <span class="comment">                             * Extract object+sky</span></div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> <span class="comment">                             */</span></div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>                             </div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( bins_extracted = <a class="code" href="group__uves__extract.html#ga55de773dfa081016fda249a7cb7878de" title="Optimally extract order using the given the profile.">opt_extract</a>(</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>                                        optimal_extract_sky ?</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>                                        image : sky_subtracted,</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>                                        image_noise,</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>                                        pos,</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>                                        profile,</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>                                        optimal_extract_sky,</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>                                        kappa,</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>                        blemish_mask,</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>                                        *cosmic_mask, </div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>                        &cr_row,</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>                                        (profile_table  != NULL) ?</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>                                        *profile_table : NULL,</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>                                        &prof_row,</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>                                        spectrum, </div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>                                        (spectrum_noise != NULL) ?</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>                                        *spectrum_noise : NULL,</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>                                        *weights,</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>                                        optimal_extract_sky ? *sky_spectrum : NULL,</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>                                        optimal_extract_sky ? *sky_spectrum_noise : NULL,</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>                                        &sn),</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>                                    <span class="stringliteral">"Error extracting order #%d"</span>, pos->order);</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>                             cr_row_max=(cr_row>cr_row_max) ? cr_row:cr_row_max;</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>                         }</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>                         {   </div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>                             <span class="comment">/* Average, linear, 2d, weighted */</span></div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>                                     </div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>                             <span class="comment">/* A 2d extraction is implemented</span></div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span> <span class="comment">                             * as a repeated linear extraction</span></div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span> <span class="comment">                             * with slit_length = 1.        </span></div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> <span class="comment">                             *</span></div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> <span class="comment">                             * For 2d mode, map</span></div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> <span class="comment">                             *        trace =  1, 2, ..., n_traces</span></div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> <span class="comment">                             *  to something that is symmetric around 0</span></div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> <span class="comment">                             *  (notice that n_traces is an even number)</span></div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> <span class="comment">                             *        offset = -n_traces/2 + 1/2, ..., n_traces/2 - 1/2</span></div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> <span class="comment">                             */</span></div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>                                     </div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>                             <span class="keywordtype">double</span> offset_2d = trace - (n_traces+1)/2.0;</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>                             <span class="keywordtype">double</span> slit_2d = 1;</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>                                     </div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( bins_extracted = <a class="code" href="group__uves__extract.html#ga658f6a76a3bcf324623828302b2b1205" title="Extract one order using linear, average or weighted extraction.">extract_order_simple</a>(</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>                                        image, image_noise,</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>                                        order_locations,</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>                                        pos->order, pos->minorder,</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>                                        spectrum_row,</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>                                        (method == EXTRACT_2D) ? offset_2d : sg.offset,</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>                                        (method == EXTRACT_2D) ? slit_2d : sg.length,</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>                                        (method == EXTRACT_2D) ? EXTRACT_LINEAR : method,</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>                                        (weights        != NULL) ? *weights        : NULL,</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>                                        extract_partial,</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>                                        spectrum,</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>                                        (spectrum_noise != NULL) ? *spectrum_noise : NULL,</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>                                        spectrum_badmap,</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>                                        info_tbl,</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>                                        &sn),</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>                                    <span class="stringliteral">"Could not extract order #%d ; trace #%d"</span>, </div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>                                    pos->order, trace);</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>                         }</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> </div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span> </div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>                     <span class="keywordflow">if</span> (info_tbl != NULL &&</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>                         (method == EXTRACT_LINEAR || method == EXTRACT_AVERAGE ||</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>                          method == EXTRACT_OPTIMAL)</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>                         )</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>                         {</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>                             <span class="comment">/* Do post extraction measurements of any ripples */</span></div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>                             <span class="keywordtype">double</span> ripple_index = <a class="code" href="group__uves__extract.html#gacb90d6e405582e2d261bc5c117a1c20f" title="Try to detect and warn about any optimal extraction ripples (happening if oversampling factor is too ...">detect_ripples</a>(spectrum, pos, sn);</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>                             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Order #%d: S/N = %.2f"</span>,</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>                                      pos->order, sn);</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>                             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Ripple index = %.2f (should be less than 2)"</span>,</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>                                            ripple_index);</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span> </div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>                             <span class="keywordflow">if</span> (<span class="keyword">false</span> && ripple_index > 3) {</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>                                 <span class="comment">/* Disabled. This would also produce warnings about arc</span></div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span> <span class="comment">                                   lamp frames which have short period ripples (a.k.a ThAr emmision</span></div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span> <span class="comment">                                   lines), which is just silly.</span></div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> <span class="comment">                                */</span></div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>                                 <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Short period ripples detected (index = %f). "</span></div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>                                                  <span class="stringliteral">"It might help to use average or linear extraction "</span></div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>                                                  <span class="stringliteral">"or optimal/virtual extraction with larger "</span></div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>                                                  <span class="stringliteral">"oversampling factor"</span>, ripple_index);</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>                             }</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> </div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>                             cpl_table_set_int   (*info_tbl, <span class="stringliteral">"Order"</span>, </div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>                                                  pos->order - pos->minorder, pos->order);</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>                             cpl_table_set_double(*info_tbl, <span class="stringliteral">"ObjSnBlzCentre"</span>  , </div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>                                                  pos->order - pos->minorder, sn);</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>                             cpl_table_set_double(*info_tbl, <span class="stringliteral">"Ripple"</span>, </div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>                                                  pos->order - pos->minorder, </div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>                                                  (ripple_index > -0.5) ? ripple_index : -1);</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>                         }</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span> </div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>                         <span class="stringliteral">"Order #%d; trace #%d: %d of %d bins extracted"</span>, </div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>                         pos->order, trace, bins_extracted, pos->nx);</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>                             </div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>                 }<span class="comment">/* for trace ... */</span></div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>                     </div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>             }<span class="comment">/* for order ... */</span></div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> </div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>     </div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>         <span class="keywordflow">if</span> (method == EXTRACT_OPTIMAL)</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>         {</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>             <span class="keywordflow">if</span> (spectrum_noise != NULL)</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>             {</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>                 uves_free_image(&temp);</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>                 temp = cpl_image_divide_create(spectrum, *spectrum_noise);</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Average S/N = %.3f"</span>, cpl_image_get_median(temp));</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>             }</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> </div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>             <span class="keywordflow">if</span> (iteration == 1 && n_iterations >= 2)</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>             {</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>                 <span class="comment">/* If optimal extraction, repeat with more accurate error bars */</span></div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>                 <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Recomputing pixel variances"</span>);</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>                 </div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__extract.html#gaded8ab18ec33bfaedbf404da6621c099" title="Refine error bars.">revise_noise</a>(image_noise,</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>                         cpl_mask_get_data(</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>                             cpl_image_get_bpm(sky_subtracted)),</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>                         image_header, pos,</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>                         spectrum, *sky_spectrum, profile,</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>                         chip),</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>                    <span class="stringliteral">"Error refining input image variances"</span>);</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>             }</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>         }</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>         <span class="comment">// AMO noise computation: put back noise bias & dark contributes</span></div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>  </div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>     }<span class="comment">/* for iteration */</span></div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span> </div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>     <span class="comment">/* Set cosmic mask + profile table size, and weights to non-negative */</span></div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>     <span class="keywordflow">if</span> (method == EXTRACT_OPTIMAL)</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>         {</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>       <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>             <span class="comment">/* AMO: change CRH mask start raw to include all detected CRHs */</span>  </div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_set_size(*cosmic_mask, cr_row_max),</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>                    <span class="stringliteral">"Error setting cosmic ray table size to %d"</span>, cr_row_max);</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>         <span class="keywordflow">if</span>(*cosmic_image==NULL) {</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>           *cosmic_image = cpl_image_new(pos->nx, pos->ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>         } </div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>             <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(*cosmic_image);</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> </div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>             <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(*cosmic_mask); i++)</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>                 {</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>                     cpl_image_set(*cosmic_image,</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>                                   cpl_table_get_int(*cosmic_mask, <span class="stringliteral">"X"</span>, i, NULL),</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>                                   cpl_table_get_int(*cosmic_mask, <span class="stringliteral">"Y"</span>, i, NULL),</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>                                   cpl_table_get_double(*cosmic_mask, <span class="stringliteral">"Flux"</span>, i, NULL));</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>                 }</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span> </div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>             <span class="keywordflow">if</span> (profile_table != NULL)</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>                 {</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_set_size(*profile_table, prof_row),</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>                            <span class="stringliteral">"Error setting profile table size to %d"</span>, prof_row);</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>                 }</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span> </div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>             <span class="comment">/* There are still pixels outside the extraction bins</span></div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> <span class="comment">               which have not been touched after creating</span></div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span> <span class="comment">               the weights image. They are negative; set to zero. */</span></div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span> </div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_threshold(*weights,</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>                                        0, DBL_MAX,</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>                                        0, DBL_MAX),</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>                    <span class="stringliteral">"Error thresholding weight image"</span>);</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span> </div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>             <span class="comment">/* Normalize weights (to 1) to get a</span></div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span> <span class="comment">             * more informative weight image</span></div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> <span class="comment">             * This is not needed for the algorithm</span></div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> <span class="comment">             * but is computationally cheap</span></div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>             </div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>             {</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>                 <span class="keywordtype">double</span> *weights_data = cpl_image_get_data_double(*weights);</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> </div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>                 <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>                                             1, pos->nx,</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>                                             pos->minorder, pos->maxorder,</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>                                             NULL, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>                      !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>                      <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>                     {</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>                         <span class="keywordtype">double</span> sum_weights = 0.0;</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>                         </div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>                         <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>                             {</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>                                 <span class="keywordtype">double</span> weight = DATA(weights_data, pos);</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>                                 sum_weights += weight;</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>                             }</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>                         </div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>                         <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>                             {</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>                                 <span class="keywordflow">if</span> (sum_weights > 0)</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>                                     {</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>                                         DATA(weights_data, pos) /= sum_weights;</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>                                     }</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>                             }</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>                     }</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>             }</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>     } <span class="comment">/* if optimal */</span></div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> </div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>     <span class="comment">/* Copy bad pixel map from spectrum to error bar spectrum */</span></div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Rejecting %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" bins"</span>, cpl_mask_count(spectrum_bad));</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span> </div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>     <span class="keywordflow">if</span> (spectrum_noise != NULL)</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>         {</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_reject_from_mask(*spectrum_noise, spectrum_bad),</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>                    <span class="stringliteral">"Error setting bad pixels"</span>);</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>         }</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>     </div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>     <span class="comment">/* Create spectrum header */</span></div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>     <span class="keywordflow">if</span> (header != NULL)</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>         {</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>             <span class="comment">/* (pixel, pixel) or (pixel, order) space */</span></div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *header = <a class="code" href="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37" title="Initialize image header.">uves_initialize_image_header</a>(</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>                        <span class="stringliteral">"PIXEL"</span>, (method == EXTRACT_2D) ? <span class="stringliteral">"PIXEL"</span> : <span class="stringliteral">"ORDER"</span>,</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>                        <span class="stringliteral">"PIXEL"</span>, (method == EXTRACT_2D) ? <span class="stringliteral">"PIXEL"</span> : <span class="stringliteral">"ORDER"</span>,</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>                        <span class="stringliteral">"ADU"</span>,0,</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>                        1.0, pos->minorder,    <span class="comment">/* CRVAL */</span></div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>                        1.0, 1.0,         <span class="comment">/* CRPIX */</span></div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>                        1.0, 1.0),        <span class="comment">/* CDELT (this should really be the x-binning) */</span></div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>                    <span class="stringliteral">"Error initializing spectrum header"</span>);</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>         }</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span> </div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>     <span class="keywordflow">if</span> (debug_mode && header != NULL) {</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>         <span class="keywordflow">if</span> (profile == NULL) {</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>             <span class="comment">/* If profile was not measured (i.e. linear/average etc.),</span></div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span> <span class="comment">               set to constant */</span></div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>             profile = uves_extract_profile_new_constant(sg.length);</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>         }</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span> </div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( reconstruct = </div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>                <a class="code" href="group__uves__utils.html#ga7146e7bab312652fdb0a9e88e838ef8d" title="Reconstruct echelle image from spectrum.">uves_create_image</a>(pos, chip,</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>                                  spectrum,</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>                                  sky_spectrum != NULL ? *sky_spectrum : NULL,</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>                                  cosmic_image != NULL ? *cosmic_image : NULL,</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>                                  profile,</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>                                  NULL, NULL)); <span class="comment">/* error bars, header */</span></div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span> </div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span> <span class="comment">      check(uves_propertylist_copy_property_regexp(*header, image_header, "^ESO  ", 0),</span></div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span> <span class="comment">       "Error copying hieararch keys");</span></div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Reconstructed image"</span>, <span class="stringliteral">"simulate"</span>,</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>                                      reconstruct, chip, -1, -1, *header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>                <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span> </div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>     }</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>     </div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>     <span class="keywordflow">if</span> (spectrum_noise != NULL)</div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>         {</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>             cpl_size x, y;</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>             </div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>             <span class="comment">/* Assert that produced noise spectrum is</span></div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span> <span class="comment">               always positive. </span></div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span> <span class="comment">               </span></div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span> <span class="comment">               For efficiency, cpl_image_get_minpos</span></div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span> <span class="comment">               is called only in case of error (using</span></div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> <span class="comment">               a comma expression) </span></div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span> </div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>             <span class="comment">/* ... then this assertion should not fail */</span></div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>       assure( cpl_image_get_min(*spectrum_noise) > 0, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>                     <span class="stringliteral">"Non-positive noise: %e at (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">", %"</span> CPL_SIZE_FORMAT <span class="stringliteral">")"</span>,</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>                     cpl_image_get_min(*spectrum_noise),</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>                     (cpl_image_get_minpos(*spectrum_noise, &x, &y), x),</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>                     (cpl_image_get_minpos(*spectrum_noise, &x, &y), y));</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span> </div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>         <span class="comment">/* For debugging: this code dumps S/N statistics (and leaks memory)</span></div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span> <span class="comment">        cpl_stats_dump(cpl_stats_new_from_image(</span></div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span> <span class="comment">                   cpl_image_divide_create(spectrum, *spectrum_noise), </span></div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span> <span class="comment">                   CPL_STATS_ALL), CPL_STATS_ALL, stdout);</span></div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>     }</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> </div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span> </div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>   cleanup:</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>     uves_free_image(&reconstruct);</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>     uves_free_image(&sky_subtracted);</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>     uves_extract_profile_delete(&profile);</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>     <a class="code" href="group__uves__extract__iterate.html#gabf1b3e568a93017a6a95ae64ae6f13b7" title="Deallocate iterator and set pointer to NULL.">uves_iterate_delete</a>(&pos);</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>     uves_free_image(&temp);</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>     uves_free_table(&blemish_mask);</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span> </div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>         {</div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>             uves_free_image(&spectrum);</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>             uves_free_image(spectrum_noise);</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>             uves_free_table(profile_table);</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>         }</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>     </div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>     <span class="keywordflow">return</span> spectrum;</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span> }</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span> </div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l01407"></a><span class="lineno"><a class="code" href="group__uves__extract.html#gacb90d6e405582e2d261bc5c117a1c20f"> 1407</a></span> <a class="code" href="group__uves__extract.html#gacb90d6e405582e2d261bc5c117a1c20f" title="Try to detect and warn about any optimal extraction ripples (happening if oversampling factor is too ...">detect_ripples</a>(<span class="keyword">const</span> cpl_image *spectrum, <span class="keyword">const</span> uves_iterate_positi [...]
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>                <span class="keywordtype">double</span> sn)</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> {</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>     <span class="keywordtype">double</span> ratio = -1; <span class="comment">/* result */</span></div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>     <span class="keywordtype">int</span> n_traces = 1; <span class="comment">/* Not 2d extraction */</span></div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>     <span class="keywordtype">int</span> trace = 1;</div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>     <span class="keywordtype">int</span> nx = cpl_image_get_size_x(spectrum);</div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>     cpl_image *spectrum_order = NULL;</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>     cpl_vector *tempx = NULL;</div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>     cpl_vector *tempy = NULL;</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>     <span class="keywordtype">double</span> *auto_corr = NULL;</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span> </div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>     <span class="keywordtype">int</span> spectrum_row = (pos->order - pos->minorder)*n_traces + trace;</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>     <span class="keywordtype">int</span> n_rejected;</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>     </div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>     uves_free_image(&spectrum_order);</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>     </div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( spectrum_order = cpl_image_extract(spectrum, </div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>                                               1, spectrum_row,</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>                                               nx, spectrum_row),</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>            <span class="stringliteral">"Error extracting order %d from spectrum"</span>, pos->order);</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>     </div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>     n_rejected = cpl_image_count_rejected(spectrum_order);</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order %d: %d/%d invalid values"</span>, pos->order,</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>                    n_rejected,</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>                    nx);</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>     </div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>     <span class="keywordflow">if</span> (n_rejected == 0) <span class="comment">/* Skip partial orders */</span></div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>         <span class="comment">/* Compute auto-correlation function */</span></div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>         {</div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>             <span class="keywordtype">double</span> order_slope =     <span class="comment">/* dy/dx at x = nx/2 */</span></div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>                 <a class="code" href="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a" title="Evaluate the partial derivative of a 2d polynomial.">uves_polynomial_derivative_2d</a>(pos->order_locations, nx/2, pos->order, 1);</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>             </div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>             <span class="keywordtype">int</span> expected_period = uves_round_double(1.0/order_slope);</div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>             <span class="keywordtype">int</span> max_period = 2*expected_period;</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>             <span class="keywordtype">int</span> shift; <span class="comment">/* in pixels */</span></div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>             </div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Estimated ripple period = %d pixels"</span>, expected_period);</div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>             </div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>             auto_corr = cpl_calloc(<span class="keyword">sizeof</span>(<span class="keywordtype">double</span>), 1+max_period);</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>             </div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>             <span class="keywordflow">for</span> (shift = 0; shift <= max_period; shift += 1) {</div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>                 <span class="keywordtype">int</span> N = 0;</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>                 <span class="keywordtype">int</span> x;</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>                 </div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>                 auto_corr[shift] = 0;</div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>                 </div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>                 <span class="keywordflow">for</span> (x = 1; x <= nx - max_period; x++) {</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>                     <span class="keywordtype">int</span> rejected1, rejected2;</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>                     <span class="keywordtype">double</span> val1, val2;</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>                     </div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>                     val1 = cpl_image_get(spectrum_order, x, 1, &rejected1);</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>                     val2 = cpl_image_get(spectrum_order, x+shift, 1, &rejected2);</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>                     </div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>                     <span class="keywordflow">if</span> (!rejected1 && !rejected2)</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>                         {</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>                             auto_corr[shift] += val1*val2;</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>                             N++;</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>                         }</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>                 }</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>                 </div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>                 <span class="keywordflow">if</span> (N != 0)</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>                     {</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>                         auto_corr[shift] /= N;</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>                     }</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>                     {</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>                         auto_corr[shift] = 0;</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>                     }</div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>                 </div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>                 <span class="keywordflow">if</span> (shift > 0 && auto_corr[0] > 0)</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>                     {</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>                         auto_corr[shift] /= auto_corr[0];</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>                     }</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>                 </div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Auto-correlation (%d pixels, %d samples) = %f"</span>,</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>                                shift, N, (shift == 0) ? 1 : auto_corr[shift]);</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>             }</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>             auto_corr[0] = 1;</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>             <span class="comment">/* Done compute auto correlation function for this order */</span></div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>             </div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>             {</div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>                 <span class="comment">/* Get amplitude of normalized auto correlation function */</span></div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>                 <span class="keywordtype">double</span> auto_amplitude;</div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>                 <span class="keywordtype">int</span> imax = expected_period;</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>                 <span class="keywordtype">int</span> imin1 = expected_period/2;</div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>                 <span class="keywordtype">int</span> imin2 = (expected_period*3)/2;</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> </div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>                 <span class="comment">/* Measuring the ACF maxima + minima would be non-robust to</span></div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span> <span class="comment">                   the case where there is no peak. Therefore use simply</span></div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span> <span class="comment">                   the predicted positions: */</span></div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span> </div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>                 auto_amplitude = auto_corr[imax] - </div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>                     (auto_corr[imin1] + auto_corr[imin2])/2.0;</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>                 </div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>                 <span class="comment">/* The autocorrelation function is used to estimate the ripple amplitude.</span></div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span> <span class="comment">                 * Not caring too much about numerical factors and the specific </span></div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span> <span class="comment">                 * analytical form of the oscillations, the following relation holds:</span></div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span> <span class="comment">                 *</span></div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span> <span class="comment">                 * autocorrelation function relative amplitude = </span></div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span> <span class="comment">                 * (ripple relative amplitude)^2 </span></div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span> <span class="comment">                 *</span></div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span> <span class="comment">                 * To convert from this amplitude to a stdev we can assume a</span></div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span> <span class="comment">                 * sine curve i.e. divide the amplitude by 2 to get the stdev</span></div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span> <span class="comment">                 * (or alternatively multiply the spectrum error bars by 2)</span></div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span> <span class="comment">                 */</span></div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>                 </div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>                 <span class="keywordflow">if</span> (auto_amplitude > 0 && sn > 0)</div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>                     {</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>                         <span class="keywordtype">double</span> rel_ripple = sqrt(auto_amplitude);</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>                         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order %d: Relative ripple amplitude = %f, "</span></div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>                                        <span class="stringliteral">"relative error bars = %f"</span>,</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>                                        pos->order, rel_ripple, 2.0*1/sn);</div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>                         </div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>                         ratio = rel_ripple * sn/2.0;</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>                     }</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>             }</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>         } <span class="comment">/* Done measuring auto correlation function */</span>       </div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span> </div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>   cleanup:</div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>     uves_free_double(&auto_corr);</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>     uves_free_vector(&tempx);</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>     uves_unwrap_vector(&tempy);</div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>     uves_free_image(&spectrum_order);</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span> </div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>     </div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>     <span class="keywordflow">return</span> ratio;</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span> }</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span> </div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l01550"></a><span class="lineno"><a class="code" href="group__uves__extract.html#gaace2260dc82cd97c5a88753a26c00c39"> 1550</a></span> <a class="code" href="group__uves__extract.html#gaace2260dc82cd97c5a88753a26c00c39" title="Estimate the S/N of the input frame.">estimate_sn</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>             uves_iterate_position *pos)</div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span> {</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>     <span class="keywordtype">double</span> sn = -1;</div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>     <span class="keywordtype">int</span> range = 5;          <span class="comment">/* Use central (2*range+1) bins in each order */</span></div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>     cpl_table *sn_temp = NULL;</div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>     cpl_table *sky_temp = NULL;</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>     <span class="keywordtype">int</span> sn_row, sky_row;</div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>     <span class="keywordtype">int</span> sky_size = 2 + 2*uves_round_double(pos->sg.length); <span class="comment">/* allocate enough rows</span></div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span> <span class="comment">                                                               to store all values</span></div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span> <span class="comment">                                                               across the slit */</span></div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span> </div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( image_noise != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span> </div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>     assure( pos->nx >= 2*(range+1), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>             <span class="stringliteral">"Input image is too small. Width = %d"</span>, pos->nx);</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span> </div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>     sn_temp = cpl_table_new((pos->maxorder - pos->minorder + 1) * (2*range + 1));</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>     cpl_table_new_column(sn_temp, <span class="stringliteral">"SN"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>     sn_row = 0;</div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span> </div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>     sky_temp = cpl_table_new(sky_size);</div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>     cpl_table_new_column(sky_temp, <span class="stringliteral">"Sky"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span> </div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>     <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>                                 pos->nx/2 - range, pos->nx/2 + range,</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>                                 pos->minorder, pos->maxorder,</div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>                                 NULL, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>          !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>          <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>         {</div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>             <span class="keywordtype">double</span> flux = 0;</div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>             <span class="keywordtype">double</span> error = 0;</div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>             <span class="keywordtype">int</span> N = 0;</div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>             </div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>             sky_row = 0;</div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>             </div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>             <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>                 {</div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>                     <span class="keywordtype">int</span> pis_rejected1, pis_rejected2;</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>                     <span class="keywordtype">double</span> pixel       = cpl_image_get(image,</div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>                                                        pos->x, pos->y, &pis_rejected1);</div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>                     <span class="keywordtype">double</span> pixel_noise = cpl_image_get(image_noise, </div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>                                                        pos->x, pos->y, &pis_rejected2);</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>                     </div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>                     <span class="keywordflow">if</span> (!pis_rejected1 && !pis_rejected2)</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>                         {</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>                             flux += pixel;</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>                             error += pixel_noise*pixel_noise;</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>                             N++;</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>                             </div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>                             cpl_table_set_double(sky_temp, <span class="stringliteral">"Sky"</span>,</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>                                                  sky_row, pixel);</div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>                             sky_row++;</div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>                         }</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>                 }</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>             </div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>             <span class="keywordflow">if</span> (N > 0)</div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>                 {</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>                     <span class="keywordtype">double</span> sky; <span class="comment">/* Sky level of one pixel, not full slit */</span></div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>                     </div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>                     <span class="keywordflow">while</span>(sky_row < sky_size)</div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>                         <span class="comment">/* Mark remaining values as bad before getting median */</span></div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>                         {</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>                             cpl_table_set_invalid(sky_temp, <span class="stringliteral">"Sky"</span>,</div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>                                                   sky_row);</div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>                             </div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>                             sky_row++;</div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>                         }</div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>                     </div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>                     sky = cpl_table_get_column_median(sky_temp, <span class="stringliteral">"Sky"</span>);</div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>                     </div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>                     flux = flux - N*sky;</div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>                     error = sqrt(error); <span class="comment">/* Don't propagate the (small) error</span></div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span> <span class="comment">                                            from the sky subtraction */</span></div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>                     </div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>                     <span class="keywordflow">if</span> (error > 0)</div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>                         {</div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>                             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order %d: S/N estimate = %f"</span>, </div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>                                            pos->order, flux/error);</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>                             </div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>                             cpl_table_set_double(sn_temp, <span class="stringliteral">"SN"</span>,</div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>                                                  sn_row, flux/error);</div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>                             sn_row++;</div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>                         }</div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>                 }</div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>         }</div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>     </div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>     assure(sn_row > 0, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>            <span class="stringliteral">"Extraction of central bins failed!"</span>);</div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>     </div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>     cpl_table_set_size(sn_temp, sn_row);</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>     </div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>     sn = cpl_table_get_column_median(sn_temp, <span class="stringliteral">"SN"</span>);</div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>     </div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>   cleanup:</div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>     uves_free_table(&sn_temp);</div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>     uves_free_table(&sky_temp);</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>     <span class="keywordflow">return</span> sn;</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span> }</div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span> </div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span> </div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01686"></a><span class="lineno"><a class="code" href="group__uves__extract.html#ga658f6a76a3bcf324623828302b2b1205"> 1686</a></span> <a class="code" href="group__uves__extract.html#ga658f6a76a3bcf324623828302b2b1205" title="Extract one order using linear, average or weighted extraction.">extract_order_simple</a>(<span class="keyword">const</span> cpl_image *image, </div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>                      <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>                      <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>                      <span class="keywordtype">int</span> order, </div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>                      <span class="keywordtype">int</span> minorder,</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>                      <span class="keywordtype">int</span> spectrum_row,</div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>                      <span class="keywordtype">double</span> offset,</div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>                      <span class="keywordtype">double</span> slit_length,</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>                      extract_method method,</div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>                      <span class="keyword">const</span> cpl_image *weights,</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>                      <span class="keywordtype">bool</span> extract_partial,</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>                      cpl_image *spectrum,</div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>                      cpl_image *spectrum_noise,</div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>                      cpl_binary*spectrum_badmap,</div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>                      cpl_table **info_tbl,</div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>                      <span class="keywordtype">double</span> *sn)</div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span> {</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>     <span class="keywordtype">int</span> bins_extracted = 0;</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>     <span class="keywordtype">double</span> *spectrum_data;</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>     <span class="keywordtype">int</span> x, nx, ny;</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>     <span class="keywordtype">double</span> flux_y, flux_yy, flux_tot;</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>     <span class="keywordtype">int</span> sn_row = 0;          <span class="comment">/* Number of rows in 'signal_to_noise' </span></div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span> <span class="comment">                actually used */</span></div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>     cpl_table *signal_to_noise = NULL;</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span> </div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( method == EXTRACT_AVERAGE ||</div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>              method == EXTRACT_LINEAR ||</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>              method == EXTRACT_WEIGHTED, <span class="stringliteral">"%d"</span>, method);</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span> </div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>     <span class="comment">/* It's probably a bug if there's a weight image and method = linear/average */</span></div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( (method == EXTRACT_WEIGHTED) == (weights != NULL), <span class="stringliteral">"%d"</span>, method);</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span> </div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span> </div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( (signal_to_noise = cpl_table_new(nx),</div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>             cpl_table_new_column(signal_to_noise, <span class="stringliteral">"SN"</span>, CPL_TYPE_DOUBLE)),</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>            <span class="stringliteral">"Error allocating S/N table"</span>);</div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span> </div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>     spectrum_data = cpl_image_get_data_double(spectrum);</div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span> </div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>     flux_y = 0;</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>     flux_yy = 0;</div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>     flux_tot = 0;</div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>     <span class="comment">/* Extract the entire image width */</span></div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>     <span class="keywordflow">for</span> (x = 1 ; x <= nx; x++) {</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>         <span class="keywordtype">double</span> slope, ycenter;   <span class="comment">/* Running slope, bin center */</span></div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>         <span class="keywordtype">int</span> ylo, yhi;            <span class="comment">/* Lowest, highest pixel to look at */</span></div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>         <span class="keywordtype">double</span> flux = 0;</div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>         <span class="keywordtype">double</span> flux_variance = 0;</div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>         <span class="keywordtype">double</span> sum = 0;          <span class="comment">/* (Fractional) number of pixels extracted so far */</span></div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>         <span class="keywordtype">int</span> y;</div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>             </div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>         <span class="comment">/* Get local order slope */</span></div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( slope = (<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x+1, order) -</div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>                          <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x-1, order) ) / 2,</div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>                 <span class="comment">/* Center of order */</span></div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>                 ycenter = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x, order) + offset),</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>               <span class="stringliteral">"Error evaluating polynomial"</span>);</div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>             </div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>         assure( 0 < slope && slope < 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>                 <span class="stringliteral">"At (x, order)=(%d, %d) slope is %f. Must be positive"</span>, x, order, slope);</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>         </div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>         <span class="comment">/* Lowest and highest pixels partially inside the slit */</span></div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>         ylo = uves_round_double(ycenter - slit_length/2 - 0.5*slope);</div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>         yhi = uves_round_double(ycenter + slit_length/2 + 0.5*slope);</div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>             </div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>         <span class="comment">/* If part of the bin is outside the image... */</span></div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>         <span class="keywordflow">if</span> (ylo < 1 || ny < yhi)</div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>             {</div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>                 <span class="keywordflow">if</span> (extract_partial)</div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>                     {</div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>                         ylo = uves_max_int(ylo, 1);</div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>                         yhi = uves_min_int(yhi, ny);</div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>                     }</div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>                     {</div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>                         <span class="comment">/* Don't extract the bin if 'extract_partial' is false */</span></div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>                         ylo = yhi + 1;</div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>                     }</div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>             }</div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>         </div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>         <span class="comment">/* Extract */</span></div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>         <span class="keywordflow">for</span> (y = ylo; y <= yhi; y++) {</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>             <span class="comment">/* Calculate area of pixel inside order */</span></div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>             <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>             <span class="keywordtype">double</span> pixelval;</div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>             <span class="keywordtype">double</span> pixelvariance;</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>             <span class="keywordtype">double</span> weight;</div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>                     </div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>             <span class="comment">/* Read pixel flux */</span></div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>             pixelval = cpl_image_get(image, x, y, &pis_rejected);</div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>                     </div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>             <span class="comment">/* Uncomment to disallow negative fluxes </span></div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span> <span class="comment">               assure( MIDAS || pis_rejected || pixelval >= 0, CPL_ERROR_ILLEGAL_INPUT,</span></div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span> <span class="comment">               "Negative flux: %e  at (x, y) = (%d, %d)", pixelval, x, y);</span></div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>                     </div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>             <span class="comment">/* Read pixel noise */</span></div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>             <span class="keywordflow">if</span> (spectrum_noise != NULL && !pis_rejected)</div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>                 {</div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>                     pixelvariance = cpl_image_get(image_noise, x, y, &pis_rejected);</div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>                     pixelvariance *= pixelvariance;</div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>                 }                               </div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>                 {</div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>                     pixelvariance = 1;</div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>                 }</div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>                     </div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>             <span class="keywordflow">if</span> (!pis_rejected) {</div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>                 <span class="comment">/* Get weight */</span></div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>                 <span class="keywordflow">if</span> (method == EXTRACT_WEIGHTED)</div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>                     {</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>                         <span class="comment">/* Use already defined weight</span></div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span> <span class="comment">                           (from previous optimal extraction) */</span></div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>                                     </div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>                         weight = cpl_image_get(weights, x, y, &pis_rejected);</div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>                                     </div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>                         assure( weight >= 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>                                 <span class="stringliteral">"Illegal weight: %e at (x, y) = (%d, %d)"</span>,</div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>                                 weight, x, y);</div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>                                     </div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>                         <span class="keywordflow">if</span> (weight == 0)</div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>                             {</div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>                                 <span class="comment">/* To avoid ~100 MB log file this is commented out:</span></div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span> <span class="comment">                                   uves_msg_debug("Ignoring bad pixel at (order, x, y) "</span></div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span> <span class="comment">                                   "= (%d, %d, %d)", order, x, y);</span></div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span> <span class="comment">                                */</span></div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>                             }</div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>                     }</div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (method == EXTRACT_ARCLAMP) {</div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>                     weight = 1.0 / pixelvariance;</div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>                 }</div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>                     <span class="comment">/* Linear / average extraction */</span></div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>                     <span class="keywordtype">double</span> area_outside_order_top;</div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>                     <span class="keywordtype">double</span> area_outside_order_bottom;</div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>                     <span class="keywordtype">double</span> left  = ycenter + slit_length/2 - 0.5*slope;</div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>                     <span class="keywordtype">double</span> right = ycenter + slit_length/2 + 0.5*slope;</div>
-<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>                                     </div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( area_outside_order_top = </div>
-<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>                            <a class="code" href="group__uves__extract.html#gaae8e2ffac38d164c6f35df18166ee0d2" title="Calculate the area of a pixel that is above a line.">area_above_line</a>(y, left, right),</div>
-<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>                            <span class="stringliteral">"Error calculating area"</span>);</div>
-<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>                                     </div>
-<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>                     left  = ycenter - slit_length/2 - 0.5*slope;</div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>                     right = ycenter - slit_length/2 + 0.5*slope;</div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>                                     </div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( area_outside_order_bottom =</div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>                            1 - <a class="code" href="group__uves__extract.html#gaae8e2ffac38d164c6f35df18166ee0d2" title="Calculate the area of a pixel that is above a line.">area_above_line</a>(y, left, right),</div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>                            <span class="stringliteral">"Error calculationg area"</span>);</div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>                                     </div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>                     weight = 1 - (area_outside_order_top + area_outside_order_bottom);</div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>                                     </div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>                     <span class="keywordflow">if</span> (1 < y && y < ny && weight < 1)</div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>                         {</div>
-<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>                             <span class="comment">/* Interpolate the flux profile at edge of slit */</span></div>
-<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>                                             </div>
-<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>                             <span class="comment">/* Use a piecewise linear profile like this</span></div>
-<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span> <span class="comment">                             *   </span></div>
-<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span> <span class="comment">                             *                   C</span></div>
-<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span> <span class="comment">                             * intrp.profile => / \</span></div>
-<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span> <span class="comment">                             *              ---/---\-- <= measured pixelval</span></div>
-<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span> <span class="comment">                             *              | /     \|</span></div>
-<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span> <span class="comment">                             *              |/       B</span></div>
-<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span> <span class="comment">                             *              A        |________ <= measured (integrated) profile</span></div>
-<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span> <span class="comment">                             *             /|          </span></div>
-<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span> <span class="comment">                             *    __________|        </span></div>
-<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span> <span class="comment">                             *</span></div>
-<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span> <span class="comment">                             * The flux levels A and B are midway between the</span></div>
-<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span> <span class="comment">                             * current pixel flux and its neighbours' levels.</span></div>
-<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span> <span class="comment">                             * C is chosen so that the integrated over the </span></div>
-<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span> <span class="comment">                             * current pixel is consistent with the measured flux.</span></div>
-<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span> <span class="comment">                             *</span></div>
-<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span> <span class="comment">                             * This guess profile is continous as well as flux conserving</span></div>
-<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span> <span class="comment">                             */</span></div>
-<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>                                             </div>
-<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>                             <span class="keywordtype">int</span> pis_rejected_prev, pis_rejected_next;</div>
-<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>                                             </div>
-<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>                             <span class="comment">/* Define flux at pixel borders (A and B) as </span></div>
-<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span> <span class="comment">                               mean value of this and neighbouring pixel */</span></div>
-<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>                             <span class="keywordtype">double</span> flux_minus = (pixelval + cpl_image_get(</div>
-<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>                                                      image, x, y - 1, &pis_rejected_prev)) / 2.0;</div>
-<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>                             <span class="keywordtype">double</span> flux_plus  = (pixelval + cpl_image_get(</div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>                                                      image, x, y + 1, &pis_rejected_next)) / 2.0;</div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>                             <span class="keywordflow">if</span> (!pis_rejected_prev && !pis_rejected_next)</div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>                                 {</div>
-<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>                                     <span class="comment">/* Define flux at pixel center, fluxc, so that the average </span></div>
-<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span> <span class="comment">                                     * flux is equal to the measured value 'pixelval':</span></div>
-<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span> <span class="comment">                                     *</span></div>
-<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span> <span class="comment">                                     * ((flux- + fluxc)/2 + (flux+ + fluxc)/2) / 2 = pixelval</span></div>
-<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span> <span class="comment">                                     * =>  flux- + flux+ + 2fluxc = 4pixelval</span></div>
-<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span> <span class="comment">                                     * =>  fluxc = ...</span></div>
-<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span> <span class="comment">                                     */</span></div>
-<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>                                                     </div>
-<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>                                     <span class="keywordtype">double</span> flux_center = </div>
-<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>                                         2*pixelval - (flux_minus + flux_plus) / 2.0;</div>
-<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>                                                     </div>
-<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>                                     <span class="comment">/* Line slopes */</span></div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>                                     <span class="keywordtype">double</span> slope_minus = </div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>                                         (flux_center - flux_minus )/ 0.5;</div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>                                     <span class="keywordtype">double</span> slope_plus  = </div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>                                         (flux_plus   - flux_center) / 0.5;</div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>                                                     </div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>                                     <span class="comment">/*  Define interval in [-0.5 ; 0] . Pixel center is at 0.*/</span></div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>                                     <span class="keywordtype">double</span> lo1 = </div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>                                         uves_min_double(0, -0.5 + area_outside_order_bottom);</div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>                                     <span class="keywordtype">double</span> hi1 =</div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>                                         uves_min_double(0,  0.5 - area_outside_order_top   );</div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>                                     <span class="keywordtype">double</span> dy1 = hi1-lo1;</div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>                                                     </div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>                                     <span class="comment">/*  Define interval in [0 ; 0.5]                 */</span></div>
-<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>                                     <span class="keywordtype">double</span> lo2 = </div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>                                         uves_max_double(0, -0.5 + area_outside_order_bottom);</div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>                                     <span class="keywordtype">double</span> hi2 = </div>
-<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>                                         uves_max_double(0,  0.5 - area_outside_order_top   );</div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>                                     <span class="keywordtype">double</span> dy2 = hi2-lo2;</div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>                                                     </div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>                                     <span class="keywordflow">if</span> (dy1 + dy2 > 0)</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>                                         {</div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>                                             <span class="comment">/* Get average flux over the two intervals */</span></div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>                                             pixelval = (</div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>                                                 (flux_center + slope_minus * (lo1+hi1)/2.0) * dy1</div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>                                                 +</div>
-<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>                                                 (flux_center + slope_plus  * (lo2+hi2)/2.0) * dy2</div>
-<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>                                                 ) / (dy1 + dy2);</div>
-<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>                                                             </div>
-<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>                                             <span class="comment">/* Don't update/interpolate 'pixelvariance'</span></div>
-<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span> <span class="comment">                                             * correspondingly (for simplicity) .</span></div>
-<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span> <span class="comment">                                             */</span></div>
-<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>                                         }</div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>                                     <span class="comment">/* else { don't change pixelval } */</span></div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>                                 }<span class="comment">/* Neighbours are good */</span></div>
-<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>                         }<span class="comment">/* Profile interpolation */</span></div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>                         {</div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>                             <span class="comment">/* Neighbours not available, don't change flux */</span></div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>                         }</div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>                 } <span class="comment">/* Get weight */</span></div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>                             </div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>                 <span class="comment">/*</span></div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span> <span class="comment">                 * Accumulate weighted sum (linear/average):</span></div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span> <span class="comment">                 *</span></div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span> <span class="comment">                 * Flux     =  [ sum weight_i   * flux_i     ]</span></div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span> <span class="comment">                 * Variance =  [ sum weight_i^2 * variance_i ]</span></div>
-<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span> <span class="comment">                 *</span></div>
-<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span> <span class="comment">                 * Arclamp:</span></div>
-<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span> <span class="comment">                 *</span></div>
-<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span> <span class="comment">                 * Flux     =  [ sum flux_i / variance_i ] /</span></div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span> <span class="comment">                 *             [ sum      1 / variance_i ]</span></div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span> <span class="comment">                 * Variance =  1 /</span></div>
-<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span> <span class="comment">                 *          =  [ sum      1 / variance_i ]</span></div>
-<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span> <span class="comment">                 *</span></div>
-<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span> <span class="comment">                 * For the entire order, accumulate</span></div>
-<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span> <span class="comment">                 *</span></div>
-<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span> <span class="comment">                 * Flux_y   =  [ sum weight_i * flux_i * (y-ymin)   ]</span></div>
-<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span> <span class="comment">                 * Flux_yy  =  [ sum weight_i * flux_i * (y-ymin)^2 ]</span></div>
-<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span> <span class="comment">         * Flux_tot =  [ sum weight_i * flux_i              ]</span></div>
-<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span> <span class="comment">                 */</span></div>
-<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>                 </div>
-<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>                 flux  += weight*pixelval;</div>
-<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>                 flux_variance += weight*weight * pixelvariance;</div>
-<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>                 sum  += weight;</div>
-<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span> </div>
-<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>         <span class="comment">/* For measuring object position + FWHM */</span></div>
-<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span> </div>
-<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>                 <span class="keywordflow">if</span> (method != EXTRACT_ARCLAMP) </div>
-<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>                     {</div>
-<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>                         flux_y  += weight * pixelval * (y-ylo);</div>
-<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>                         flux_yy += weight * pixelval * (y-ylo)*(y-ylo);</div>
-<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>                         flux_tot+= weight * pixelval;</div>
-<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>                     }</div>
-<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>             }<span class="comment">/* If pixel was good */</span></div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>         }<span class="comment">/* for y ... */</span></div>
-<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>                     </div>
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>         <span class="comment">/* This debugging message significantly increases the execution time </span></div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span> <span class="comment">         *  uves_msg_debug("Order %d, x=%d: %d - %d   pixels = %f  flux = %f", </span></div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span> <span class="comment">         order, x, ylo, yhi, sum, flux);</span></div>
-<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span> </div>
-<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>         <span class="comment">/* If any pixels were extracted */</span></div>
-<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>         <span class="keywordflow">if</span> (sum > 0)</div>
-<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>             {</div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>                 bins_extracted += 1;</div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>                 </div>
-<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>                 <span class="keywordflow">if</span> (method == EXTRACT_ARCLAMP && flux_variance > 0) {</div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>                     flux *= 1.0 / sum;</div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>                     flux_variance = 1.0 / sum;                    </div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>                 }</div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (method == EXTRACT_AVERAGE || method == EXTRACT_WEIGHTED) </div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>                     {</div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>                         <span class="comment">/* Divide by sum of weights */</span></div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>                         flux *= 1.0 / sum;</div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>                         flux_variance *= 1.0 / (sum*sum);</div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>                     }</div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>                     <span class="comment">/* Linear extraction */</span></div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>                     </div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>                     <span class="comment">/* Normalize to slit length in the case of bad pixels */</span></div>
-<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>                     flux *= slit_length / sum;</div>
-<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>                     flux_variance *= (slit_length*slit_length) / (sum*sum);</div>
-<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>                 }</div>
-<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span> </div>
-<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>                 <span class="comment">/* Write result */</span></div>
-<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span> </div>
-<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>                 <span class="comment">/* This will make the spectrum bad map pointer invalid:</span></div>
-<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span> <span class="comment">                   check( cpl_image_set(spectrum, x, spectrum_row, flux),</span></div>
-<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span> <span class="comment">                   "Could not write extracted flux at (%d, %d)", x, spectrum_row);</span></div>
-<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>                 spectrum_data  [(x-1) + (spectrum_row-1) * nx] = flux;</div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>                 spectrum_badmap[(x-1) + (spectrum_row-1) * nx] = CPL_BINARY_0;</div>
-<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span> </div>
-<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>                 <span class="keywordflow">if</span> (spectrum_noise != NULL)</div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>                     {</div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>                         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(</div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>                                    spectrum_noise, x, spectrum_row, sqrt(flux_variance)),</div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>                                <span class="stringliteral">"Could not write noise at (%d, %d)"</span>, x, spectrum_row);</div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>                     }</div>
-<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>                     </div>
-<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cpl_table_set_double(</div>
-<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>                signal_to_noise, <span class="stringliteral">"SN"</span>, sn_row, flux / sqrt(flux_variance)) );</div>
-<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>         sn_row++;</div>
-<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span> </div>
-<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>             }<span class="comment">/* if sum... */</span></div>
-<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>             {</div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>                 <span class="comment">/* Nothing extracted, reject bin */</span></div>
-<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>                     </div>
-<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>                 <span class="comment">/* This is slow: </span></div>
-<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span> <span class="comment">                   check( cpl_image_reject(spectrum, x, spectrum_row),</span></div>
-<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span> <span class="comment">                   "Could not reject bin at (x, row) = (%d, %d)", x, spectrum_row);</span></div>
-<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span> <span class="comment">                       </span></div>
-<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span> <span class="comment">                   if (spectrum_noise != NULL)</span></div>
-<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span> <span class="comment">                   {</span></div>
-<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span> <span class="comment">                   check( cpl_image_reject(spectrum_noise, x, spectrum_row),</span></div>
-<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span> <span class="comment">                   "Could not reject bin at (x, row) = (%d, %d)", x, spectrum_row);</span></div>
-<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span> <span class="comment">                   }</span></div>
-<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span> </div>
-<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>                 spectrum_badmap[(x-1) + (spectrum_row-1) * nx] = CPL_BINARY_1;</div>
-<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>             }</div>
-<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span> </div>
-<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>     }<span class="comment">/* for x... */</span></div>
-<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>     </div>
-<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>     <span class="keywordflow">if</span> (info_tbl != NULL && *info_tbl != NULL && method != EXTRACT_ARCLAMP)</div>
-<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>     {</div>
-<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>       <span class="keywordtype">double</span> objpos = 0;</div>
-<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span>       <span class="keywordtype">double</span> fwhm =0;</div>
-<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>       <span class="keywordflow">if</span>(flux_tot != 0) {</div>
-<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>         objpos = flux_y / flux_tot;</div>
-<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span>         objpos = -1;  <span class="comment">//we set to a negative value, which won't affect </span></div>
-<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>                       <span class="comment">//the median of positive values</span></div>
-<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>       }</div>
-<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>         <span class="keywordflow">if</span> (flux_yy/flux_tot - objpos*objpos >= 0)</div>
-<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>         {</div>
-<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>             fwhm = sqrt(flux_yy/flux_tot - objpos*objpos) * TWOSQRT2LN2;</div>
-<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>         }</div>
-<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span>         {</div>
-<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span>             fwhm = 0;</div>
-<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>         }</div>
-<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>         cpl_table_set_double(*info_tbl, <span class="stringliteral">"ObjPosOnSlit"</span>  , order - minorder, objpos);</div>
-<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>         cpl_table_set_double(*info_tbl, <span class="stringliteral">"ObjFwhmAvg"</span> , order - minorder, fwhm);</div>
-<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>     }</div>
-<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span> </div>
-<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>     <span class="comment">/* Get S/N */</span></div>
-<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cpl_table_set_size(signal_to_noise, sn_row) );</div>
-<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span> </div>
-<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>     <span class="keywordflow">if</span> (sn_row > 0)</div>
-<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>         {</div>
-<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( *sn = cpl_table_get_column_median(signal_to_noise, <span class="stringliteral">"SN"</span>));</div>
-<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>         }</div>
-<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>         {</div>
-<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>             *sn = 0;</div>
-<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>         }</div>
-<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span>   </div>
-<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>   cleanup:</div>
-<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>     uves_free_table(&signal_to_noise);</div>
-<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>     <span class="keywordflow">return</span> bins_extracted;</div>
-<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span> }</div>
-<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span> </div>
-<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l02084"></a><span class="lineno"><a class="code" href="group__uves__extract.html#gaae8e2ffac38d164c6f35df18166ee0d2"> 2084</a></span> <a class="code" href="group__uves__extract.html#gaae8e2ffac38d164c6f35df18166ee0d2" title="Calculate the area of a pixel that is above a line.">area_above_line</a>(<span class="keywordtype">int</span> y, <span class="keywordtype">double</span> left, <span class="keywordtype">double</span> right)</div>
-<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span> {</div>
-<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>     <span class="keywordtype">double</span> area = -1;               <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>     <span class="keywordtype">double</span> pixeltop = y + .5;       <span class="comment">/* Top and bottom edges of pixel */</span></div>
-<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>     <span class="keywordtype">double</span> pixelbot = y - .5;</div>
-<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>     <span class="keywordtype">double</span> slope    = right - left;</div>
-<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span> </div>
-<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>     assure( 0 <= slope && slope <= 1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Slope is %f"</span>, slope);</div>
-<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span> </div>
-<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span> <span class="comment">/*  There are 5 cases to consider</span></div>
-<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span> <span class="comment"></span></div>
-<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span> <span class="comment">   Case 1:</span></div>
-<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span> <span class="comment">     (line below pixel)</span></div>
-<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span> <span class="comment">    ___</span></div>
-<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span> <span class="comment">   |   |</span></div>
-<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span> <span class="comment">   |   |</span></div>
-<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span> <span class="comment">   |___|/</span></div>
-<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span> <span class="comment">       /</span></div>
-<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span> <span class="comment">      /</span></div>
-<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span> <span class="comment">     /</span></div>
-<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span> <span class="comment"></span></div>
-<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span> <span class="comment">   Case 2:</span></div>
-<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span> <span class="comment">    ___ </span></div>
-<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span> <span class="comment">   |   | </span></div>
-<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span> <span class="comment">   |  _|/</span></div>
-<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span> <span class="comment">   |_/_|</span></div>
-<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span> <span class="comment">    /</span></div>
-<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span> <span class="comment">   Case 3:</span></div>
-<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span> <span class="comment">    ___</span></div>
-<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span> <span class="comment">   |  _|/</span></div>
-<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span> <span class="comment">   |_/ |</span></div>
-<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span> <span class="comment">  /|___|</span></div>
-<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span> <span class="comment">    </span></div>
-<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span> <span class="comment">   Case 4:</span></div>
-<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span> <span class="comment">    ___</span></div>
-<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span> <span class="comment">   | / |</span></div>
-<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span> <span class="comment">   |/  |</span></div>
-<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span> <span class="comment">   |___|</span></div>
-<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span> <span class="comment">    </span></div>
-<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span> <span class="comment">   Case 5:</span></div>
-<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span> <span class="comment">     (line above pixel)</span></div>
-<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span> <span class="comment">   /</span></div>
-<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span> <span class="comment">  / ___</span></div>
-<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span> <span class="comment">   |   |</span></div>
-<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span> <span class="comment">   |   |</span></div>
-<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span> <span class="comment">   |___|</span></div>
-<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span> <span class="comment">    </span></div>
-<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span> </div>
-<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>     <span class="keywordflow">if</span>      (pixelbot > right)</div>
-<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>         {   <span class="comment">/* 1 */</span></div>
-<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>             area = 1;</div>
-<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>         }</div>
-<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pixelbot > left)</div>
-<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>         {    <span class="comment">/* 2. Area of triangle is height^2/(2*line_slope) */</span></div>
-<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span>             area = 1 -</div>
-<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>                 (right - pixelbot) *</div>
-<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>                 (right - pixelbot) / (2*slope);</div>
-<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>         }</div>
-<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pixeltop > right)</div>
-<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>         {     <span class="comment">/* 3 */</span></div>
-<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>             area = pixeltop - (left + right)/2;</div>
-<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>         }</div>
-<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pixeltop > left)</div>
-<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>         {      <span class="comment">/* 4. See 2 */</span></div>
-<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>             area =</div>
-<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>                 (pixeltop - left) *</div>
-<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>                 (pixeltop - left) / (2*slope);</div>
-<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>         }</div>
-<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>     <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>         {</div>
-<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>             <span class="comment">/* 5 */</span></div>
-<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>             area = 0;</div>
-<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>         }</div>
-<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>     </div>
-<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>   cleanup:</div>
-<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>     <span class="keywordflow">return</span> area;</div>
-<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span> }</div>
-<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span> </div>
-<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span> </div>
-<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span> </div>
-<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l02183"></a><span class="lineno"><a class="code" href="group__uves__extract.html#gaded8ab18ec33bfaedbf404da6621c099"> 2183</a></span> <a class="code" href="group__uves__extract.html#gaded8ab18ec33bfaedbf404da6621c099" title="Refine error bars.">revise_noise</a>(cpl_image *image_noise,</div>
-<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>          <span class="keyword">const</span> cpl_binary *image_bpm,</div>
-<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *image_header,</div>
-<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>          uves_iterate_position *pos,</div>
-<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>          <span class="keyword">const</span> cpl_image *spectrum, </div>
-<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>          <span class="keyword">const</span> cpl_image *sky_spectrum, </div>
-<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>          <span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>          <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span> {</div>
-<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>     cpl_image *revised = NULL;</div>
-<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>     cpl_image *simulated = NULL;</div>
-<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>     <span class="keyword">const</span> cpl_binary *spectrum_bpm = </div>
-<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>         cpl_mask_get_data_const(cpl_image_get_bpm_const(spectrum));</div>
-<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>     <span class="keywordtype">double</span> *simul_data;</div>
-<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *spectrum_data;</div>
-<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *sky_data;</div>
-<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span> </div>
-<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>     simulated = cpl_image_new(pos->nx, pos->ny,</div>
-<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>                   CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( simulated );</div>
-<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span> </div>
-<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>     simul_data    = cpl_image_get_data_double(simulated);</div>
-<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>     spectrum_data = cpl_image_get_data_double_const(spectrum);</div>
-<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>     sky_data      = cpl_image_get_data_double_const(sky_spectrum);</div>
-<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span> </div>
-<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>     <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>                 1, pos->nx,</div>
-<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>                 pos->minorder, pos->maxorder,</div>
-<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>                 NULL, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>      !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span>      <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>     {</div>
-<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>         <span class="keywordflow">if</span> (SPECTRUM_DATA(spectrum_bpm, pos) == CPL_BINARY_0)</div>
-<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>         {</div>
-<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span>             <span class="comment">/* Need this before calling uves_extract_profile_evaluate() */</span></div>
-<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span>             uves_extract_profile_set(profile, pos, NULL);</div>
-<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span> </div>
-<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>             <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>             <span class="keywordflow">if</span> (ISGOOD(image_bpm, pos))</div>
-<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>                 {</div>
-<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>                 <span class="comment">/* Set pixel(x,y) = sky(x) + profile(x,y)*flux(x) */</span></div>
-<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>                 DATA(simul_data, pos) = </div>
-<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>                     SPECTRUM_DATA(sky_data, pos)/pos->sg.length +</div>
-<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>                     SPECTRUM_DATA(spectrum_data, pos) *</div>
-<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>                     uves_extract_profile_evaluate(profile, pos);</div>
-<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>                 }</div>
-<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>             }</div>
-<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>     }</div>
-<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span> </div>
-<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>     <span class="comment">/* For debugging: </span></div>
-<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span> <span class="comment">       cpl_image_save(simulated, "/tmp/simul.fits", CPL_BPP_IEEE_FLOAT, NULL, CPL_IO_DEFAULT);</span></div>
-<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span> </div>
-<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>     {</div>
-<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>     <span class="keywordtype">int</span> ncom = 1; <span class="comment">/* no median stacking is involved */</span></div>
-<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span> </div>
-<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span>     <span class="comment">/* Note! Assumes de-biased, non-flatfielded data */</span></div>
-<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( revised = <a class="code" href="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7" title="Create noise image.">uves_define_noise</a>(simulated,</div>
-<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>                        image_header,</div>
-<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>                        ncom, chip),</div>
-<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>            <span class="stringliteral">"Error computing noise image"</span>);</div>
-<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>     }</div>
-<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span> </div>
-<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>     <span class="comment">/* Copy relevant parts to the input noise image */</span></div>
-<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span>     {</div>
-<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>     <span class="keywordtype">double</span> *revised_data = cpl_image_get_data_double(revised);</div>
-<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>     <span class="keywordtype">double</span> *input_data = cpl_image_get_data_double(image_noise);</div>
-<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span> </div>
-<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>     <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>                     1, pos->nx,</div>
-<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>                     pos->minorder, pos->maxorder,</div>
-<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>                     image_bpm, <span class="keyword">true</span>);</div>
-<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>          !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>          <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span>         {</div>
-<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>         DATA(input_data, pos) = DATA(revised_data, pos);</div>
-<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>         }</div>
-<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>     }</div>
-<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>         </div>
-<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>   cleanup:</div>
-<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>     uves_free_image(&simulated);</div>
-<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>     uves_free_image(&revised);</div>
-<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span> </div>
-<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span> }</div>
-<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span> </div>
-<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l02288"></a><span class="lineno"><a class="code" href="group__uves__extract.html#ga1b8d6c2489fbc99e080dcdcc1dff5f1a"> 2288</a></span> <a class="code" href="group__uves__extract.html#ga1b8d6c2489fbc99e080dcdcc1dff5f1a" title="Extract and subtract sky.">opt_extract_sky</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>                 <span class="keyword">const</span> cpl_image *weights,</div>
-<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>                 uves_iterate_position *pos,</div>
-<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>                 cpl_image *sky_spectrum,</div>
-<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>                 cpl_image *sky_spectrum_noise)</div>
-<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span> {</div>
-<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span>     cpl_image  *sky_subtracted = NULL;        <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>     cpl_table  *sky_map        = NULL;        <span class="comment">/* Bitmap of sky/object (true/false)</span></div>
-<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span> <span class="comment">                                                 pixels      */</span></div>
-<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Defining sky region"</span>);</div>
-<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span> </div>
-<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( sky_map = <a class="code" href="group__uves__extract.html#gade9f76d1dc7526cbd212c04a74255b17" title="Define sky/object rows.">opt_define_sky</a>(image, weights,</div>
-<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span>                                     pos),</div>
-<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>            <span class="stringliteral">"Error determining sky window"</span>);</div>
-<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>     </div>
-<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span>     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">"/%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" sky pixels"</span>, </div>
-<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>                  cpl_table_count_selected(sky_map),</div>
-<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>                  cpl_table_get_nrow(sky_map));</div>
-<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span> </div>
-<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span>     <span class="comment">/* Extract the sky */</span></div>
-<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting sky (method = median of sky channels)"</span>);</div>
-<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span> </div>
-<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( sky_subtracted = <a class="code" href="group__uves__extract.html#ga0e232bc2628165c5e6aed6c3f12443c2" title="Measure and subtract sky.">opt_subtract_sky</a>(image, image_noise, weights,</div>
-<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>                                              pos,</div>
-<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>                                              sky_map,</div>
-<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span>                                              sky_spectrum,</div>
-<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span>                                              sky_spectrum_noise),</div>
-<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span>            <span class="stringliteral">"Could not subtract sky"</span>);</div>
-<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span> </div>
-<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span>   cleanup:</div>
-<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span>     uves_free_table(&sky_map);</div>
-<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span>     </div>
-<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span>     <span class="keywordflow">return</span> sky_subtracted;</div>
-<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span> }</div>
-<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span> </div>
-<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span> <span class="keyword">static</span> cpl_table *</div>
-<div class="line"><a name="l02337"></a><span class="lineno"><a class="code" href="group__uves__extract.html#gade9f76d1dc7526cbd212c04a74255b17"> 2337</a></span> <a class="code" href="group__uves__extract.html#gade9f76d1dc7526cbd212c04a74255b17" title="Define sky/object rows.">opt_define_sky</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *weights,</div>
-<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>                uves_iterate_position *pos)</div>
-<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span> </div>
-<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span> {</div>
-<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>     cpl_table *sky_map = NULL;           <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span> </div>
-<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>     cpl_table **resampled = NULL;</div>
-<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>     <span class="keywordtype">int</span> nbins = 0;</div>
-<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span> </div>
-<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>     <span class="comment">/* Measure at all orders, resolution = 1 pixel */</span></div>
-<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( resampled = <a class="code" href="group__uves__extract.html#gac4b249fd5e1d761d4d628fc58360cd59" title="Sample spatial profile.">opt_sample_spatial_profile</a>(image, weights,</div>
-<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>                                                   pos,</div>
-<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>                                                   50,          <span class="comment">/* stepx */</span></div>
-<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>                                                   1,           <span class="comment">/* sampling resolution */</span></div>
-<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>                                                   &nbins),</div>
-<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>            <span class="stringliteral">"Error measuring spatial profile"</span>);</div>
-<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>     </div>
-<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>     sky_map = cpl_table_new(nbins);</div>
-<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>     cpl_table_new_column(sky_map, <span class="stringliteral">"DY"</span>  , CPL_TYPE_INT);    <span class="comment">/* Bin id */</span></div>
-<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>     cpl_table_new_column(sky_map, <span class="stringliteral">"Prof"</span>, CPL_TYPE_DOUBLE); <span class="comment">/* Average profile */</span></div>
-<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span> </div>
-<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>     <span class="keywordflow">for</span> (i = 0; i < nbins; i++)</div>
-<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>         {</div>
-<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>             cpl_table_set_int(sky_map, <span class="stringliteral">"DY"</span>  , i, i - nbins/2);</div>
-<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>             <span class="keywordflow">if</span> (cpl_table_has_valid(resampled[i], <span class="stringliteral">"Prof"</span>))</div>
-<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>                 {</div>
-<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>                     <span class="comment">/* Use 90 percentile. If the median is used, we</span></div>
-<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span> <span class="comment">                       will miss the object when the order definition </span></div>
-<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span> <span class="comment">                       is not good.</span></div>
-<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span> <span class="comment"></span></div>
-<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span> <span class="comment">                       (The average wouldn't work as we need to reject</span></div>
-<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span> <span class="comment">                       cosmic rays.)</span></div>
-<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>                     <span class="keywordtype">int</span> row = (cpl_table_get_nrow(resampled[i]) * 9) / 10;</div>
-<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span> </div>
-<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>                     uves_sort_table_1(resampled[i], <span class="stringliteral">"Prof"</span>, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span> </div>
-<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>                     cpl_table_set_double(sky_map, <span class="stringliteral">"Prof"</span>, i, </div>
-<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>                                          cpl_table_get_double(resampled[i], <span class="stringliteral">"Prof"</span>, row, NULL));</div>
-<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>                 }</div>
-<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>                 {</div>
-<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>                     cpl_table_set_invalid(sky_map, <span class="stringliteral">"Prof"</span>, i);</div>
-<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>                 }</div>
-<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>         }</div>
-<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span> </div>
-<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>     <span class="comment">/* Fail cleanly in the unlikely case that input image had</span></div>
-<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span> <span class="comment">       too few good pixels */</span></div>
-<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>     assure( cpl_table_has_valid(sky_map, <span class="stringliteral">"Prof"</span>), CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>             <span class="stringliteral">"Too many (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">"/%d ) bad pixels. Could not measure sky profile"</span>,</div>
-<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>             cpl_image_count_rejected(image),</div>
-<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>             pos->nx * pos->ny);</div>
-<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span>     </div>
-<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span> </div>
-<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>     <span class="comment">/* Select sky channels = bins where profile < min + 2*(median-min) </span></div>
-<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span> <span class="comment">     * but less than (min+max)/2</span></div>
-<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>     {</div>
-<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>         <span class="keywordtype">double</span> prof_min = cpl_table_get_column_min(sky_map, <span class="stringliteral">"Prof"</span>);</div>
-<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>         <span class="keywordtype">double</span> prof_max = cpl_table_get_column_max(sky_map, <span class="stringliteral">"Prof"</span>);</div>
-<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>         <span class="keywordtype">double</span> prof_med = cpl_table_get_column_median(sky_map, <span class="stringliteral">"Prof"</span>);</div>
-<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>         <span class="keywordtype">double</span> sky_threshold = prof_min + 2*(prof_med - prof_min);</div>
-<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span> </div>
-<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>         sky_threshold = uves_min_double(sky_threshold, (prof_min + prof_max)/2);</div>
-<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>         </div>
-<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_table(sky_map, <span class="stringliteral">"DY"</span>, <span class="stringliteral">"Prof"</span>, </div>
-<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>                                <span class="stringliteral">"Globally averaged spatial profile (sky threshold = %.5f)"</span>, </div>
-<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>                                sky_threshold),</div>
-<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>                <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>         </div>
-<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>         uves_select_table_rows(sky_map, <span class="stringliteral">"Prof"</span>, CPL_NOT_GREATER_THAN, sky_threshold);</div>
-<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>     }</div>
-<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span> </div>
-<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>   cleanup:</div>
-<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>     <span class="keywordflow">if</span> (resampled != NULL)</div>
-<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>         {</div>
-<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>             <span class="keywordflow">for</span> (i = 0; i < nbins; i++)</div>
-<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>                 {</div>
-<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>                     uves_free_table(&(resampled[i]));</div>
-<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>                 }</div>
-<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>             cpl_free(resampled);</div>
-<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>         }</div>
-<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span> </div>
-<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>     <span class="keywordflow">return</span> sky_map;</div>
-<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span> }</div>
-<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span> </div>
-<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span> <span class="keyword">static</span> cpl_table **</div>
-<div class="line"><a name="l02444"></a><span class="lineno"><a class="code" href="group__uves__extract.html#gac4b249fd5e1d761d4d628fc58360cd59"> 2444</a></span> <a class="code" href="group__uves__extract.html#gac4b249fd5e1d761d4d628fc58360cd59" title="Sample spatial profile.">opt_sample_spatial_profile</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *weights,</div>
-<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>                            uves_iterate_position *pos,</div>
-<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>                            <span class="keywordtype">int</span> stepx,</div>
-<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>                            <span class="keywordtype">int</span> sampling_factor,</div>
-<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>                            <span class="keywordtype">int</span> *nbins)</div>
-<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span> </div>
-<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span> {</div>
-<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>     cpl_table **resampled = NULL;          <span class="comment">/* Array of tables,</span></div>
-<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span> <span class="comment">                                              one table per y-bin.</span></div>
-<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span> <span class="comment">                                              Contains the spatial profile</span></div>
-<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span> <span class="comment">                                              for each y */</span></div>
-<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>     <span class="keywordtype">int</span> *resampled_row = NULL;             <span class="comment">/* First unused row of above */</span></div>
-<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span> </div>
-<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *image_data;</div>
-<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *weights_data;</div>
-<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>     </div>
-<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>     assure( stepx >= 1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Step size = %d"</span>, stepx);</div>
-<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>     assure( sampling_factor >= 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>             <span class="stringliteral">"Sampling factor = %d"</span>, sampling_factor);</div>
-<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>     </div>
-<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>     image_data   = cpl_image_get_data_double_const(image);</div>
-<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>     weights_data = cpl_image_get_data_double_const(weights);</div>
-<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span> </div>
-<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>     *nbins = uves_extract_profile_get_nbins(pos->sg.length, sampling_factor);</div>
-<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span> </div>
-<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>     resampled     = cpl_calloc(*nbins, <span class="keyword">sizeof</span>(cpl_table *));</div>
-<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>     resampled_row = cpl_calloc(*nbins, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span> </div>
-<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(resampled    );</div>
-<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(resampled_row);</div>
-<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>     </div>
-<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>     {</div>
-<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>         <span class="keywordflow">for</span> (i = 0; i < *nbins; i++)</div>
-<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span>             {</div>
-<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>                 resampled[i] = cpl_table_new((pos->nx/stepx+1)*</div>
-<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>                                              (pos->maxorder-pos->minorder+1));</div>
-<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span> </div>
-<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>                 resampled_row[i] = 0;</div>
-<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>                 <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( resampled[i] );</div>
-<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>                 </div>
-<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>                 cpl_table_new_column(resampled[i], <span class="stringliteral">"X"</span>    , CPL_TYPE_INT);</div>
-<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>                 cpl_table_new_column(resampled[i], <span class="stringliteral">"Order"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>                 cpl_table_new_column(resampled[i], <span class="stringliteral">"Prof"</span> , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span>                 <span class="comment">/* Don't store order number */</span></div>
-<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>             }</div>
-<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>     }</div>
-<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>     </div>
-<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>     <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>                                 1, pos->nx,</div>
-<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>                                 pos->minorder, pos->maxorder,</div>
-<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span>                                 NULL, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>          !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>          <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos)) {</div>
-<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>         <span class="keywordflow">if</span> ((pos->x - 1) % stepx == 0)</div>
-<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>             <span class="comment">/* Look only at bins divisible by stepx */</span></div>
-<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>             {</div>
-<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>                 <span class="comment">/* Linear extract bin */</span></div>
-<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>                 <span class="keywordtype">double</span> flux = 0;</div>
-<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>                     </div>
-<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>                 <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++) {</div>
-<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>                     <span class="keywordflow">if</span> (!ISBAD(weights_data, pos)) {</div>
-<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>                         flux += DATA(image_data, pos);</div>
-<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>                     }</div>
-<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>                 }</div>
-<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span>                     </div>
-<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span>                 <span class="keywordflow">if</span> (flux != 0) {</div>
-<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>                     <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++) {</div>
-<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>                         <span class="keywordflow">if</span> (!ISBAD(weights_data, pos)) {</div>
-<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>                             <span class="keywordtype">double</span> f = DATA(image_data, pos);</div>
-<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>                                 </div>
-<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>                             <span class="comment">/* Nearest bin */</span></div>
-<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>                             <span class="keywordtype">int</span> bin = uves_round_double(</div>
-<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>                                 uves_extract_profile_get_bin(pos, sampling_factor));</div>
-<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>                                 </div>
-<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>                             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( bin < *nbins, <span class="stringliteral">"%d %d"</span>, bin, *nbins);</div>
-<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>                                 </div>
-<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>                             <span class="comment">/* Here the 'virtual resampling' consists </span></div>
-<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span> <span class="comment">                               of simply rounding to the nearest bin</span></div>
-<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span> <span class="comment">                               (nearest-neighbour interpolation)</span></div>
-<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span> <span class="comment">                            */</span></div>
-<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>                             cpl_table_set_int   (resampled[bin], <span class="stringliteral">"X"</span>    , </div>
-<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>                                                  resampled_row[bin], pos->x);</div>
-<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>                             cpl_table_set_int   (resampled[bin], <span class="stringliteral">"Order"</span>, </div>
-<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>                                                  resampled_row[bin], pos->order);</div>
-<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>                             cpl_table_set_double(resampled[bin], <span class="stringliteral">"Prof"</span> , </div>
-<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>                                                  resampled_row[bin], f/flux);</div>
-<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span>                                 </div>
-<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span>                             resampled_row[bin]++;</div>
-<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span>                         }</div>
-<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span>                     }</div>
-<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>                 }</div>
-<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>             }</div>
-<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>     }</div>
-<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>     </div>
-<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>     {</div>
-<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>         <span class="keywordflow">for</span> (i = 0; i < *nbins; i++)</div>
-<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>             {</div>
-<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>                 cpl_table_set_size(resampled[i], resampled_row[i]);</div>
-<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>             }</div>
-<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>     }</div>
-<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>     </div>
-<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>     <span class="comment">/* This is what we return */</span></div>
-<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_get_ncol(resampled[0]) == 3, <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>              cpl_table_get_ncol(resampled[0]));</div>
-<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(resampled[0], <span class="stringliteral">"X"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(resampled[0], <span class="stringliteral">"Order"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(resampled[0], <span class="stringliteral">"Prof"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span> </div>
-<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>   cleanup:</div>
-<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>     cpl_free(resampled_row);</div>
-<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span> </div>
-<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>     <span class="keywordflow">return</span> resampled;</div>
-<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span> }</div>
-<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>     </div>
-<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span> </div>
-<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span> </div>
-<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02584"></a><span class="lineno"> 2584</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span> <span class="keyword">static</span> cpl_image * </div>
-<div class="line"><a name="l02586"></a><span class="lineno"><a class="code" href="group__uves__extract.html#ga0e232bc2628165c5e6aed6c3f12443c2"> 2586</a></span> <a class="code" href="group__uves__extract.html#ga0e232bc2628165c5e6aed6c3f12443c2" title="Measure and subtract sky.">opt_subtract_sky</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l02587"></a><span class="lineno"> 2587</span>                  <span class="keyword">const</span> cpl_image *weights,</div>
-<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span>                  uves_iterate_position *pos,</div>
-<div class="line"><a name="l02589"></a><span class="lineno"> 2589</span>                  <span class="keyword">const</span> cpl_table *sky_map,</div>
-<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span>                  cpl_image *sky_spectrum,</div>
-<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span>                  cpl_image *sky_spectrum_noise)</div>
-<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span> {</div>
-<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>     cpl_image *sky_subtracted = cpl_image_duplicate(image);  <span class="comment">/* Result, bad pixels</span></div>
-<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span> <span class="comment">                                                                are inherited */</span></div>
-<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span>     <span class="keywordtype">double</span> *sky_subtracted_data;</div>
-<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *image_data;</div>
-<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data;</div>
-<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *weights_data;</div>
-<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span>     <span class="keywordtype">double</span> *buffer_flux  = NULL;  <span class="comment">/* These buffers exist for efficiency reasons, to */</span></div>
-<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span>     <span class="keywordtype">double</span> *buffer_noise = NULL;  <span class="comment">/* avoid malloc/free for every bin */</span></div>
-<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span> </div>
-<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>     <span class="comment">/* Needed because cpl_image_set() is slow */</span></div>
-<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span>     <span class="keywordtype">double</span> *sky_spectrum_data     = NULL;</div>
-<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>     <span class="keywordtype">double</span> *sky_noise_data        = NULL;</div>
-<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>     cpl_binary *sky_spectrum_bpm  = NULL;</div>
-<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>     cpl_binary *sky_noise_bpm     = NULL;</div>
-<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>     cpl_mask *temp                = NULL;</div>
-<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span> </div>
-<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( sky_subtracted );</div>
-<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span>     </div>
-<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>     image_data   = cpl_image_get_data_double_const(image);</div>
-<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span>     noise_data   = cpl_image_get_data_double_const(image_noise);</div>
-<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span>     weights_data = cpl_image_get_data_double_const(weights);</div>
-<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span>     sky_subtracted_data = cpl_image_get_data(sky_subtracted);</div>
-<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span>     </div>
-<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span>     buffer_flux  = cpl_malloc(uves_round_double(pos->sg.length + 5)*<span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span>     buffer_noise = cpl_malloc(uves_round_double(pos->sg.length + 5)*<span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l02618"></a><span class="lineno"> 2618</span> </div>
-<div class="line"><a name="l02619"></a><span class="lineno"> 2619</span> </div>
-<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span>     <span class="keywordflow">if</span> (sky_spectrum != NULL)</div>
-<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>         {</div>
-<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span>             sky_spectrum_data = cpl_image_get_data_double(sky_spectrum);</div>
-<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span>             sky_noise_data    = cpl_image_get_data_double(sky_spectrum_noise);</div>
-<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span> </div>
-<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>             <span class="comment">/* Reject all bins in the extracted sky spectrum,</span></div>
-<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span> <span class="comment">               then mark pixels as good if/when they are calculated later */</span></div>
-<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span> </div>
-<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>             temp = cpl_mask_new(cpl_image_get_size_x(sky_spectrum),</div>
-<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span>                                 cpl_image_get_size_y(sky_spectrum));</div>
-<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span>             cpl_mask_not(temp); <span class="comment">/* Set all pixels to CPL_BINARY_1 */</span></div>
-<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span> </div>
-<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span>             cpl_image_reject_from_mask(sky_spectrum      , temp);</div>
-<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>             cpl_image_reject_from_mask(sky_spectrum_noise, temp);</div>
-<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span> </div>
-<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>             sky_spectrum_bpm  = cpl_mask_get_data(cpl_image_get_bpm(sky_spectrum));</div>
-<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>             sky_noise_bpm     = cpl_mask_get_data(cpl_image_get_bpm(sky_spectrum_noise));</div>
-<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>         }</div>
-<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span> </div>
-<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>     UVES_TIME_START(<span class="stringliteral">"Subtract sky"</span>);</div>
-<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>     </div>
-<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>     <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>                                 1, pos->nx,</div>
-<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>                                 pos->minorder, pos->maxorder,</div>
-<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>                                 NULL, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>          !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>          <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span>         {</div>
-<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>             <span class="keywordtype">double</span> sky_background, sky_background_noise;</div>
-<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>             </div>
-<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span>             <span class="comment">/* Get sky */</span></div>
-<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>             sky_background = <a class="code" href="group__uves__extract.html#ga72eb895e6062614f776c8519f13dfb5e" title="Measure sky level (median)">opt_get_sky</a>(image_data, noise_data,</div>
-<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>                                          weights_data,</div>
-<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>                                          pos,</div>
-<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>                                          sky_map,</div>
-<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>                                          buffer_flux, buffer_noise,</div>
-<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>                                          &sky_background_noise);</div>
-<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>             </div>
-<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>             <span class="comment">/* Save sky */</span></div>
-<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>             <span class="keywordflow">if</span> (sky_spectrum != NULL)</div>
-<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>                 {</div>
-<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>                     <span class="comment">/* Change normalization of sky from 1 pixel to full slit,</span></div>
-<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span> <span class="comment">                       (i.e. same normalization as the extracted object) </span></div>
-<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span> <span class="comment">                       </span></div>
-<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span> <span class="comment">                       Error propagation is trivial (just multiply </span></div>
-<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span> <span class="comment">                       by same factor) because the</span></div>
-<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span> <span class="comment">                       uncertainty of 'slit_length' is negligible. </span></div>
-<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>                     </div>
-<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>                     <span class="comment">/*</span></div>
-<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span> <span class="comment">                      cpl_image_set(sky_spectrum      , x, spectrum_row, </span></div>
-<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span> <span class="comment">                      slit_length * sky_background);</span></div>
-<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span> <span class="comment">                      cpl_image_set(sky_spectrum_noise, x, spectrum_row,</span></div>
-<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span> <span class="comment">                      slit_length * sky_background_noise);</span></div>
-<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>                     SPECTRUM_DATA(sky_spectrum_data, pos) = </div>
-<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>                         pos->sg.length * sky_background;</div>
-<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>                     SPECTRUM_DATA(sky_noise_data, pos) = </div>
-<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>                         pos->sg.length * sky_background_noise;</div>
-<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span> </div>
-<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>                     SPECTRUM_DATA(sky_spectrum_bpm, pos) = CPL_BINARY_0;</div>
-<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>                     SPECTRUM_DATA(sky_noise_bpm   , pos) = CPL_BINARY_0;</div>
-<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>                 }</div>
-<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>             </div>
-<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span>             <span class="comment">/* Subtract sky */</span></div>
-<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span>             <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>                 {</div>
-<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span>                     DATA(sky_subtracted_data, pos) = </div>
-<div class="line"><a name="l02688"></a><span class="lineno"> 2688</span>                         DATA(image_data, pos) - sky_background;</div>
-<div class="line"><a name="l02689"></a><span class="lineno"> 2689</span>                     <span class="comment">/* Don't update noise image. Error </span></div>
-<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span> <span class="comment">                       on sky determination is small. */</span></div>
-<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>                     </div>
-<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>                     <span class="comment">/* BPM is duplicate of input image */</span></div>
-<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>                 }</div>
-<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>         }</div>
-<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span> </div>
-<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span>     UVES_TIME_END;</div>
-<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>     </div>
-<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>   cleanup:</div>
-<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>     uves_free_mask(&temp);</div>
-<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>     cpl_free(buffer_flux);</div>
-<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>     cpl_free(buffer_noise);</div>
-<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span> </div>
-<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>     <span class="keywordflow">return</span> sky_subtracted;</div>
-<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span> }</div>
-<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span> </div>
-<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span> </div>
-<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span> </div>
-<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span> <span class="keyword">static</span> uves_extract_profile *</div>
-<div class="line"><a name="l02745"></a><span class="lineno"><a class="code" href="group__uves__extract.html#gae3e0e629c167ff2012d0f200c347d1dc"> 2745</a></span> <a class="code" href="group__uves__extract.html#gae3e0e629c167ff2012d0f200c347d1dc" title="Measure spatial profile (all orders)">opt_measure_profile</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>                     <span class="keyword">const</span> cpl_image *weights,</div>
-<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>                     uves_iterate_position *pos,</div>
-<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>                     <span class="keywordtype">int</span> chunk, <span class="keywordtype">int</span> sampling_factor,</div>
-<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>                     <span class="keywordtype">int</span> (*f)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>                     <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>                     <span class="keywordtype">int</span> M,</div>
-<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>                     <span class="keyword">const</span> cpl_image *sky_spectrum,</div>
-<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>             cpl_table *info_tbl,</div>
-<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>                     cpl_table **profile_global)</div>
-<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span> {</div>
-<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>     uves_extract_profile *profile = NULL;   <span class="comment">/* Result    */</span></div>
-<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>     <span class="keywordtype">int</span> *stepx = NULL;                 <span class="comment">/* per order or per spatial bin */</span></div>
-<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>     <span class="keywordtype">int</span> *good_bins = NULL;             <span class="comment">/* per order or per spatial bin */</span></div>
-<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>     cpl_table **profile_data  = NULL;  <span class="comment">/* per order or per spatial bin */</span></div>
-<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>     <span class="keywordtype">bool</span> cont;               <span class="comment">/* continue? */</span></div>
-<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span> </div>
-<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>     cpl_mask  *image_bad = NULL;</div>
-<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>     cpl_binary*image_bpm = NULL;</div>
-<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span> </div>
-<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>     cpl_vector *plot0x = NULL;</div>
-<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>     cpl_vector *plot0y = NULL;</div>
-<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>     cpl_vector *plot1x = NULL;</div>
-<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>     cpl_vector *plot1y = NULL;</div>
-<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>     cpl_bivector *plot[] = {NULL, NULL};</div>
-<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>     <span class="keywordtype">char</span> *plot_titles[] = {NULL, NULL};</div>
-<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span> </div>
-<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>     <span class="keywordtype">int</span> sample_bins = 100;   <span class="comment">/* Is this used?? */</span></div>
-<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span> </div>
-<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>     <span class="comment">/* Needed for virtual method */</span></div>
-<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>     <span class="keywordtype">int</span> spatial_bins = uves_extract_profile_get_nbins(pos->sg.length, sampling_factor);</div>
-<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span>     </div>
-<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>     <span class="comment">/* Convert weights image to bpm needed for 1d_fit.</span></div>
-<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span> <span class="comment">     * The virtual resampling measurement will use the weights image</span></div>
-<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>     <span class="keywordflow">if</span> (f != NULL)</div>
-<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>         {</div>
-<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>             image_bad = cpl_mask_new(pos->nx, pos->ny);</div>
-<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>             <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(image_bad);</div>
-<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>             image_bpm = cpl_mask_get_data(image_bad);</div>
-<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>             {</div>
-<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>                 <span class="keyword">const</span> <span class="keywordtype">double</span> *weights_data = cpl_image_get_data_double_const(weights);</div>
-<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>                 </div>
-<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>                 <span class="keywordflow">for</span> (pos->y = 1; pos->y <= pos->ny; pos->y++)</div>
-<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>                     {</div>
-<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>                         <span class="keywordflow">for</span> (pos->x = 1; pos->x <= pos->nx; pos->x++)</div>
-<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>                             {</div>
-<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>                                 <span class="keywordflow">if</span> (ISBAD(weights_data, pos))</div>
-<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>                                     {</div>
-<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>                                         DATA(image_bpm, pos) = CPL_BINARY_1;</div>
-<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>                                     }</div>
-<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>                             }</div>
-<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>                     }</div>
-<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>             }</div>
-<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>         }</div>
-<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span> </div>
-<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>     <span class="keywordflow">if</span> (f != NULL)</div>
-<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>         {</div>
-<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>             stepx        = cpl_malloc((pos->maxorder-pos->minorder+1) * <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>             good_bins    = cpl_malloc((pos->maxorder-pos->minorder+1) * <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span>             profile_data = cpl_calloc( pos->maxorder-pos->minorder+1, <span class="keyword">sizeof</span>(cpl_table *));</div>
-<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span> </div>
-<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>             <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(stepx);</div>
-<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span>             <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(good_bins);</div>
-<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>             <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(profile_data);</div>
-<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span> </div>
-<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>             <span class="keywordflow">for</span> (pos->order = pos->minorder; pos->order <= pos->maxorder; pos->order++)</div>
-<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span>                 {</div>
-<div class="line"><a name="l02813"></a><span class="lineno"> 2813</span>                     <span class="comment">/*</span></div>
-<div class="line"><a name="l02814"></a><span class="lineno"> 2814</span> <span class="comment">                     * Get width of order inside image,</span></div>
-<div class="line"><a name="l02815"></a><span class="lineno"> 2815</span> <span class="comment">                     * and set stepx according to the</span></div>
-<div class="line"><a name="l02816"></a><span class="lineno"> 2816</span> <span class="comment">                     * total number of sample bins</span></div>
-<div class="line"><a name="l02817"></a><span class="lineno"> 2817</span> <span class="comment">                     */</span></div>
-<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span>                     <span class="keywordtype">int</span> order_width;</div>
-<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span>                     </div>
-<div class="line"><a name="l02820"></a><span class="lineno"> 2820</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( order_width = <a class="code" href="group__uves__extract.html#ga95cd798921bdd0f4606d5dbb45d0dab7" title="Get width of order.">opt_get_order_width</a>(pos),</div>
-<div class="line"><a name="l02821"></a><span class="lineno"> 2821</span>                            <span class="stringliteral">"Error estimating width of order #%d"</span>, pos->order);</div>
-<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span>                     </div>
-<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>                     <span class="comment">/* If no bins were rejected, the</span></div>
-<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span> <span class="comment">                       step size to use would be </span></div>
-<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span> <span class="comment">                       order_width/sample_bins</span></div>
-<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span> <span class="comment">                       Add 1 to make stepx always positive </span></div>
-<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span>                     </div>
-<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span>                     stepx    [pos->order-pos->minorder] = order_width / sample_bins + 1;</div>
-<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span>                     good_bins[pos->order-pos->minorder] = (2*sample_bins)/3;</div>
-<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span>                 }</div>
-<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span>         }</div>
-<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>         {</div>
-<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span> </div>
-<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( f == NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span> </div>
-<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span>             stepx        = cpl_malloc(<span class="keyword">sizeof</span>(<span class="keywordtype">int</span>) * spatial_bins);</div>
-<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span>             good_bins    = cpl_malloc(<span class="keyword">sizeof</span>(<span class="keywordtype">int</span>) * spatial_bins);</div>
-<div class="line"><a name="l02841"></a><span class="lineno"> 2841</span>             <span class="comment">/* No, they are currently allocated by opt_sample_spatial_profile:</span></div>
-<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span> <span class="comment">               profile_data = cpl_calloc(spatial_bins, sizeof(cpl_table *));</span></div>
-<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>             profile_data = NULL;</div>
-<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span> </div>
-<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span>             <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(stepx);</div>
-<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span>             <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(good_bins);</div>
-<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span> </div>
-<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>             <span class="keywordflow">for</span> (i = 0; i < spatial_bins; i++)</div>
-<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span>                 {</div>
-<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span>                     <span class="comment">/* Across the full chip we have</span></div>
-<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span> <span class="comment">                          nx * norders * sg.ength / stepx  </span></div>
-<div class="line"><a name="l02853"></a><span class="lineno"> 2853</span> <span class="comment">                       measure positions.</span></div>
-<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span> <span class="comment">                       We want (only):</span></div>
-<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span> <span class="comment">                          sample_bins * spatial_bins * norders</span></div>
-<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span> <span class="comment">                       so stepx = ...</span></div>
-<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span> <span class="comment">/*                  stepx    [i] = uves_round_double(</span></div>
-<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span> <span class="comment">                    (pos->nx)*(pos->maxorder-pos->minorder+1)*pos->sg.length)/</span></div>
-<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span> <span class="comment">                    (sample_bins*spatial_bins)</span></div>
-<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span> <span class="comment">                    ) + 1;</span></div>
-<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span>                     stepx    [i] = uves_round_double(</div>
-<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>                         (pos->nx*pos->sg.length)/(sample_bins*spatial_bins)</div>
-<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>                         ) + 1;</div>
-<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span>                     </div>
-<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span>                     good_bins[i] = sample_bins - 1;</div>
-<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>                 }</div>
-<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span>         }</div>
-<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span> </div>
-<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span>     <span class="comment">/* Initialization done */</span></div>
-<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span> </div>
-<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span>     <span class="comment">/* Measure the object profile.</span></div>
-<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span> <span class="comment">     * Iterate until we have at least 'sample_bins' good</span></div>
-<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span> <span class="comment">     * measure points in each order,</span></div>
-<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span> <span class="comment">     * or until the step size has decreased to 1</span></div>
-<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span> <span class="comment">     * For gauss/moffat methods, the profile is measured</span></div>
-<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span> <span class="comment">     * in chunks of fixed size (using all the information</span></div>
-<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span> <span class="comment">     * inside each chunk), and there are no iterations.</span></div>
-<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span> <span class="comment">     * For virtual method, the iteration is currently</span></div>
-<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span> <span class="comment">     * not implemented (i.e. also no iterations here)</span></div>
-<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span> <span class="comment">     *  do</span></div>
-<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span> <span class="comment">     *      update stepx</span></div>
-<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span> <span class="comment">     *      measure using stepx</span></div>
-<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span> <span class="comment">     *  until (for every order (and every spatial bin): good_bins >= sample_bins)</span></div>
-<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span> <span class="comment">     *  fit global polynomials to profile parameters</span></div>
-<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span> </div>
-<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span>     <span class="keywordflow">do</span>  {</div>
-<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span>         <span class="comment">/* Update stepx */</span></div>
-<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span> </div>
-<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>         <span class="keywordflow">for</span> (i = 0; i < ((f == NULL) ? spatial_bins : pos->maxorder-pos->minorder+1); i++)</div>
-<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>                 {</div>
-<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>                     <span class="keywordflow">if</span> (f == NULL || profile_data[i] == NULL)</div>
-<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>                         <span class="comment">/* If we need to measure this order/spatial-bin (again) */</span></div>
-<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span>                         <span class="comment">/* fixme: currently no iterations for virtual resampling */</span></div>
-<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span>                         {</div>
-<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span>                             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(good_bins[i] < sample_bins, </div>
-<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span>                                     <span class="stringliteral">"%d %d"</span>, good_bins[i], sample_bins);</div>
-<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>                             </div>
-<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>                             stepx[i] = (int) (stepx[i]*(good_bins[i]*0.8/sample_bins));</div>
-<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>                             <span class="keywordflow">if</span> (stepx[i] == 0) </div>
-<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span>                                 {</div>
-<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>                                     stepx[i] = 1;</div>
-<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>                                 }</div>
-<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>                             <span class="comment">/* Example of above formula:</span></div>
-<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span> <span class="comment">                               If we need       sample_bins=200,</span></div>
-<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span> <span class="comment">                               but have only    good_bins=150,</span></div>
-<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span> <span class="comment">                               then decrease stepsize to 150/200 = 75%</span></div>
-<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span> <span class="comment">                               and then by another factor 0.8 (so we are </span></div>
-<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span> <span class="comment">                               more likely to end up with a few more</span></div>
-<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span> <span class="comment">                               bins than needed, rather than a few less</span></div>
-<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span> <span class="comment">                               bins than needed).</span></div>
-<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span> <span class="comment">                               </span></div>
-<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span> <span class="comment">                               Also note that stepx always decreases, so</span></div>
-<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span> <span class="comment">                               the loop terminates.</span></div>
-<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span> <span class="comment">                            */</span></div>
-<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span>                         }</div>
-<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span>                 }</div>
-<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span> </div>
-<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span>         cont = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span> </div>
-<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span>         <span class="comment">/* Measure */</span></div>
-<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>         <span class="keywordflow">if</span> (f != NULL) {</div>
-<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span> <span class="preprocessor">#if NEW_METHOD</span></div>
-<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span> <span class="preprocessor"></span>            <span class="keywordflow">for</span> (pos->order = pos->minorder; pos->order <= pos->minorder; pos->order++) {</div>
-<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span> <span class="preprocessor"></span>            <span class="keywordflow">for</span> (pos->order = pos->minorder; pos->order <= pos->maxorder; pos->order++) {</div>
-<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span> <span class="preprocessor"></span>                <span class="comment">/* Zero resampling */</span></div>
-<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>                 <span class="keywordflow">if</span> (profile_data[pos->order-pos->minorder] == NULL) {</div>
-<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>                     <span class="keywordtype">int</span> bins;</div>
-<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>                     </div>
-<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( profile_data[pos->order-pos->minorder] = </div>
-<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>                            <a class="code" href="group__uves__extract.html#gad07884e88093f0e0ee15519a30eb8d3f" title="Measure spatial profile (analytical)">opt_measure_profile_order</a>(image, image_noise, image_bpm,</div>
-<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>                                                      pos,</div>
-<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>                                                      chunk,</div>
-<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>                                                      f, dfda, M,</div>
-<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>                                                      sky_spectrum),</div>
-<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>                            <span class="stringliteral">"Error measuring profile of order #%d using chunk size = %d"</span>,</div>
-<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>                            pos->order, chunk);</div>
-<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>                                 </div>
-<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>                     bins = cpl_table_get_nrow(profile_data[pos->order-pos->minorder]);</div>
-<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span> </div>
-<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Order %-2d: Chi^2/N = %.2f; FWHM = %.2f pix; Offset = %.2f pix"</span>,</div>
-<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span>                              pos->order,</div>
-<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>                              (bins > 0) ? cpl_table_get_column_median(</div>
-<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>                                  profile_data[pos->order-pos->minorder], </div>
-<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>                                  <span class="stringliteral">"Reduced_chisq"</span>) : 0,</div>
-<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>                              <span class="comment">/* Gaussian: fwhm = 2.35 sigma */</span></div>
-<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>                              (bins > 0) ? cpl_table_get_column_median(</div>
-<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>                                  profile_data[pos->order-pos->minorder], </div>
-<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>                                  <span class="stringliteral">"Sigma"</span>) * TWOSQRT2LN2 : 0,</div>
-<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>                              (bins > 0) ? cpl_table_get_column_median(</div>
-<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>                                  profile_data[pos->order-pos->minorder],</div>
-<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>                                  <span class="stringliteral">"Y0"</span>) : 0);</div>
-<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span> </div>
-<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>                     <span class="comment">/* Old way of doing things:</span></div>
-<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span> <span class="comment">                       good_bins[pos->order-minorder] = bins;</span></div>
-<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span> <span class="comment">                                </span></div>
-<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span> <span class="comment">                       Continue if there are not enough good bins for this order</span></div>
-<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span> <span class="comment">                       if (good_bins[pos->order-minorder] < sample_bins &&</span></div>
-<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span> <span class="comment">                           stepx[pos->order-minorder] >= 2)</span></div>
-<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span> <span class="comment">                       {</span></div>
-<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span> <span class="comment">                       cont = true;</span></div>
-<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span> <span class="comment">                       uves_free_table(&(profile_data[pos->order-minorder]));</span></div>
-<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span> <span class="comment">                       }</span></div>
-<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span> </div>
-<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>                     <span class="comment">/* New method */</span></div>
-<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span>                     cont = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span> </div>
-<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>                 } <span class="comment">/* if we needed to measure this order again */</span></div>
-<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>             }</div>
-<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span>         }</div>
-<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>             <span class="comment">/* Virtual method */</span></div>
-<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>             {</div>
-<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>                 <span class="keywordtype">int</span> nbins = 0;</div>
-<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span> </div>
-<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>                 <span class="keywordtype">int</span> step = 0; <span class="comment">/* average of stepx */</span></div>
-<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>                 <span class="keywordflow">for</span> (i = 0; i < spatial_bins; i++)</div>
-<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>                     {</div>
-<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>                         step += stepx[i];</div>
-<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>                     }</div>
-<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span>                 step /= spatial_bins;</div>
-<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span>                 </div>
-<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>                 *profile_global = cpl_table_new(0);</div>
-<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>                 <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( *profile_global );</div>
-<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>                 cpl_table_new_column(*profile_global, <span class="stringliteral">"Dummy"</span> , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>     </div>
-<div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( profile_data = <a class="code" href="group__uves__extract.html#gac4b249fd5e1d761d4d628fc58360cd59" title="Sample spatial profile.">opt_sample_spatial_profile</a>(image, weights,</div>
-<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>                                                                  pos, </div>
-<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>                                                                  step,</div>
-<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span>                                                                  sampling_factor,</div>
-<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span>                                                                  &nbins),</div>
-<div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>                        <span class="stringliteral">"Error measuring profile (virtual method)"</span>);</div>
-<div class="line"><a name="l03003"></a><span class="lineno"> 3003</span> </div>
-<div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>                 <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( nbins == spatial_bins, <span class="stringliteral">"%d %d"</span>, nbins, spatial_bins);</div>
-<div class="line"><a name="l03005"></a><span class="lineno"> 3005</span> </div>
-<div class="line"><a name="l03006"></a><span class="lineno"> 3006</span>                 <span class="keywordflow">for</span> (i = 0; i < spatial_bins; i++)</div>
-<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span>                     {</div>
-<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span>                         good_bins[i] = cpl_table_get_nrow(profile_data[i]);</div>
-<div class="line"><a name="l03009"></a><span class="lineno"> 3009</span>                         </div>
-<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span>                         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Bin %d (%-3d samples): Prof = %f %d"</span>,</div>
-<div class="line"><a name="l03011"></a><span class="lineno"> 3011</span>                                        i,</div>
-<div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>                                        good_bins[i],</div>
-<div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>                                        (good_bins[i] > 0) ? </div>
-<div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>                                        cpl_table_get_column_median(profile_data[i], <span class="stringliteral">"Prof"</span>) : 0,</div>
-<div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>                                        stepx[i]);</div>
-<div class="line"><a name="l03016"></a><span class="lineno"> 3016</span>                         </div>
-<div class="line"><a name="l03017"></a><span class="lineno"> 3017</span>                         <span class="comment">/* Continue if there are not enough measure points for this spatial bin */</span></div>
-<div class="line"><a name="l03018"></a><span class="lineno"> 3018</span>                         <span class="comment">//fixme:  disabled for now, need to cleanup and only measure</span></div>
-<div class="line"><a name="l03019"></a><span class="lineno"> 3019</span>                         <span class="comment">//bins when necessary</span></div>
-<div class="line"><a name="l03020"></a><span class="lineno"> 3020</span>                         <span class="comment">//if (false && good_bins[i] < sample_bins && stepx[i] >= 2)</span></div>
-<div class="line"><a name="l03021"></a><span class="lineno"> 3021</span>                         <span class="comment">//    {</span></div>
-<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>                         <span class="comment">//      cont = true;</span></div>
-<div class="line"><a name="l03023"></a><span class="lineno"> 3023</span>                         <span class="comment">//      uves_free_table(&(profile_data[i]));</span></div>
-<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span>                         <span class="comment">//   }</span></div>
-<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>                     }</div>
-<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>             }</div>
-<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>         </div>
-<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span>     } <span class="keywordflow">while</span>(cont);</div>
-<div class="line"><a name="l03029"></a><span class="lineno"> 3029</span>     </div>
-<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span> </div>
-<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span>     <span class="comment">/* Fit a global polynomial to each profile parameter */</span></div>
-<div class="line"><a name="l03032"></a><span class="lineno"> 3032</span>     <span class="keywordflow">if</span> (f == NULL)</div>
-<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span>         {</div>
-<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span>             <span class="keywordtype">int</span> max_degree = 8;</div>
-<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span>             <span class="keywordtype">double</span> kappa = 3.0;</div>
-<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span> </div>
-<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Fitting global polynomials to "</span></div>
-<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>                          <span class="stringliteral">"resampled profile (%d spatial bins)"</span>,</div>
-<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span>                          spatial_bins);</div>
-<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span> </div>
-<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>             uves_extract_profile_delete(&profile);</div>
-<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>             profile = uves_extract_profile_new(NULL,</div>
-<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>                                                NULL,</div>
-<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>                                                0,</div>
-<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span>                                                pos->sg.length,</div>
-<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>                                                sampling_factor);</div>
-<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span> </div>
-<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span>             <span class="keywordflow">for</span> (i = 0; i < spatial_bins; i++)</div>
-<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>                 {</div>
-<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>                     <span class="comment">/* Do not make the code simpler by: </span></div>
-<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span> <span class="comment">             *       int n = cpl_table_get_nrow(profile_data[i]);</span></div>
-<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span> <span class="comment">                     * because the table size is generally non-constant </span></div>
-<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span>                     </div>
-<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span>                     <span class="keywordtype">bool</span> enough_points = (</div>
-<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span>                         cpl_table_get_nrow(profile_data[i]) >= (max_degree + 1)*(max_degree + 1));</div>
-<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span>                     </div>
-<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span>                     <span class="keywordflow">if</span> (enough_points)</div>
-<div class="line"><a name="l03060"></a><span class="lineno"> 3060</span>                         {</div>
-<div class="line"><a name="l03061"></a><span class="lineno"> 3061</span>                             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Fitting 2d polynomial to spatial bin %d"</span>, i);</div>
-<div class="line"><a name="l03062"></a><span class="lineno"> 3062</span>                             </div>
-<div class="line"><a name="l03063"></a><span class="lineno"> 3063</span>                             <span class="keywordflow">if</span> (<span class="keyword">true</span>) {</div>
-<div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>                                 <span class="comment">/* Clever but slow: */</span></div>
-<div class="line"><a name="l03065"></a><span class="lineno"> 3065</span>                                 </div>
-<div class="line"><a name="l03066"></a><span class="lineno"> 3066</span>                                 <span class="keywordtype">double</span> min_reject = -0.01; <span class="comment">/* negative value means disabled.</span></div>
-<div class="line"><a name="l03067"></a><span class="lineno"> 3067</span> <span class="comment">                                                              This optimization made the </span></div>
-<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span> <span class="comment">                                                              unit test fail. That should be</span></div>
-<div class="line"><a name="l03069"></a><span class="lineno"> 3069</span> <span class="comment">                                                              investigated before enabling this</span></div>
-<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span> <span class="comment">                                                              optimization (is the unit test too strict?</span></div>
-<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span> <span class="comment">                                                              or does the quality actually decrease?).</span></div>
-<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span> <span class="comment">                                                              A good value is probably ~0.01</span></div>
-<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span> <span class="comment">                                                            */</span></div>
-<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span>                                 profile->dy_poly[i] = <a class="code" href="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d_autodegree</a>(</div>
-<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span>                                     profile_data[i],</div>
-<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span>                                     <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Prof"</span>, NULL, </div>
-<div class="line"><a name="l03077"></a><span class="lineno"> 3077</span>                                     <span class="stringliteral">"Proffit"</span>, NULL, NULL,  <span class="comment">/* new columns */</span></div>
-<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span>                                     NULL, NULL, NULL, <span class="comment">/* mse, red_chisq, variance */</span></div>
-<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span>                                     kappa,</div>
-<div class="line"><a name="l03080"></a><span class="lineno"> 3080</span>                                     max_degree, max_degree, -1, min_reject,</div>
-<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span>                                     <span class="keyword">false</span>,    <span class="comment">/* verbose? */</span></div>
-<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span>                                     NULL, NULL, 0, NULL);</div>
-<div class="line"><a name="l03083"></a><span class="lineno"> 3083</span>                             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span>                                 <span class="comment">/* For testing only. Don't do like this. */</span></div>
-<div class="line"><a name="l03085"></a><span class="lineno"> 3085</span>                                 <span class="comment">/* This is no good at high S/N where a </span></div>
-<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span> <span class="comment">                                   precise profile measurement is crucial */</span></div>
-<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span> </div>
-<div class="line"><a name="l03088"></a><span class="lineno"> 3088</span>                                 profile->dy_poly[i] =</div>
-<div class="line"><a name="l03089"></a><span class="lineno"> 3089</span>                                     <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(profile_data[i],</div>
-<div class="line"><a name="l03090"></a><span class="lineno"> 3090</span>                                                                   <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Prof"</span>, NULL, </div>
-<div class="line"><a name="l03091"></a><span class="lineno"> 3091</span>                                                                   0, 0,</div>
-<div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>                                                                   <span class="stringliteral">"Proffit"</span>, NULL, NULL,  <span class="comment">/* new columns */</span></div>
-<div class="line"><a name="l03093"></a><span class="lineno"> 3093</span>                                                                   NULL, NULL, NULL, kappa, -1);</div>
-<div class="line"><a name="l03094"></a><span class="lineno"> 3094</span>                                     }</div>
-<div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>                                                         </div>
-<div class="line"><a name="l03096"></a><span class="lineno"> 3096</span>                             <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX)</div>
-<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span>                                 {</div>
-<div class="line"><a name="l03098"></a><span class="lineno"> 3098</span>                                     <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>                                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Fitting bin %d failed"</span>, i);</div>
-<div class="line"><a name="l03100"></a><span class="lineno"> 3100</span> </div>
-<div class="line"><a name="l03101"></a><span class="lineno"> 3101</span>                                     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&(profile->dy_poly[i]));</div>
-<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span>                                     enough_points = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span>                                 }</div>
-<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span>                             </div>
-<div class="line"><a name="l03105"></a><span class="lineno"> 3105</span>                             assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l03106"></a><span class="lineno"> 3106</span>                                     cpl_error_get_code(),</div>
-<div class="line"><a name="l03107"></a><span class="lineno"> 3107</span>                                     <span class="stringliteral">"Could not fit polynomial to bin %d"</span>, i);</div>
-<div class="line"><a name="l03108"></a><span class="lineno"> 3108</span> </div>
-<div class="line"><a name="l03109"></a><span class="lineno"> 3109</span>                         }<span class="comment">/* if enough points  */</span></div>
-<div class="line"><a name="l03110"></a><span class="lineno"> 3110</span>                                 </div>
-<div class="line"><a name="l03111"></a><span class="lineno"> 3111</span>                     <span class="keywordflow">if</span> (!enough_points)</div>
-<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span>                         {</div>
-<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span>                             <span class="comment">/* Not enough points for fit (usually at edges of slit) */</span></div>
-<div class="line"><a name="l03114"></a><span class="lineno"> 3114</span> </div>
-<div class="line"><a name="l03115"></a><span class="lineno"> 3115</span>                             profile->dy_poly[i] = <a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(2);</div>
-<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span>                 </div>
-<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>                 cpl_table_new_column(profile_data[i], <span class="stringliteral">"Proffit"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03118"></a><span class="lineno"> 3118</span>                             <span class="keywordflow">if</span> (cpl_table_get_nrow(profile_data[i]) > 0)</div>
-<div class="line"><a name="l03119"></a><span class="lineno"> 3119</span>                                 {</div>
-<div class="line"><a name="l03120"></a><span class="lineno"> 3120</span>                                     cpl_table_fill_column_window_double(</div>
-<div class="line"><a name="l03121"></a><span class="lineno"> 3121</span>                                         profile_data[i], <span class="stringliteral">"Proffit"</span>, </div>
-<div class="line"><a name="l03122"></a><span class="lineno"> 3122</span>                                         0, cpl_table_get_nrow(profile_data[i]),</div>
-<div class="line"><a name="l03123"></a><span class="lineno"> 3123</span>                                         0);</div>
-<div class="line"><a name="l03124"></a><span class="lineno"> 3124</span>                                 }</div>
-<div class="line"><a name="l03125"></a><span class="lineno"> 3125</span>                         }</div>
-<div class="line"><a name="l03126"></a><span class="lineno"> 3126</span> </div>
-<div class="line"><a name="l03127"></a><span class="lineno"> 3127</span>                     <span class="comment">/* Optimization:</span></div>
-<div class="line"><a name="l03128"></a><span class="lineno"> 3128</span> <span class="comment">                       If zero degree, do quick evaluations later</span></div>
-<div class="line"><a name="l03129"></a><span class="lineno"> 3129</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l03130"></a><span class="lineno"> 3130</span>                     profile->is_zero_degree[i] = (<a class="code" href="group__uves__utils__polynomial.html#ga56987ebb6bb09ab3f7477783627cba7b" title="Get degree.">uves_polynomial_get_degree</a>(profile->dy_poly[i]) == 0);</div>
-<div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>                     <span class="keywordflow">if</span> (profile->is_zero_degree[i])</div>
-<div class="line"><a name="l03132"></a><span class="lineno"> 3132</span>                         {</div>
-<div class="line"><a name="l03133"></a><span class="lineno"> 3133</span>                             profile->dy_double[i] = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(profile->dy_poly[i], 0, 0);</div>
-<div class="line"><a name="l03134"></a><span class="lineno"> 3134</span>                         }</div>
-<div class="line"><a name="l03135"></a><span class="lineno"> 3135</span>                 } <span class="comment">/* for each spatial bin */</span></div>
-<div class="line"><a name="l03136"></a><span class="lineno"> 3136</span>         }</div>
-<div class="line"><a name="l03137"></a><span class="lineno"> 3137</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03138"></a><span class="lineno"> 3138</span>         <span class="comment">/* Analytical profile */</span></div>
-<div class="line"><a name="l03139"></a><span class="lineno"> 3139</span>         {</div>
-<div class="line"><a name="l03140"></a><span class="lineno"> 3140</span>             <span class="keywordtype">int</span> max_degree;</div>
-<div class="line"><a name="l03141"></a><span class="lineno"> 3141</span>             <span class="keywordtype">double</span> min_rms = 0.1;  <span class="comment">/* pixels, stop if this precision is achieved */</span></div>
-<div class="line"><a name="l03142"></a><span class="lineno"> 3142</span>             <span class="keywordtype">double</span> kappa = 3.0;  <span class="comment">/* The fits to individual chunks can be noisy (due</span></div>
-<div class="line"><a name="l03143"></a><span class="lineno"> 3143</span> <span class="comment">                                    to low statistics), so use a rather low kappa */</span></div>
-<div class="line"><a name="l03144"></a><span class="lineno"> 3144</span> </div>
-<div class="line"><a name="l03145"></a><span class="lineno"> 3145</span>             <span class="keywordtype">bool</span> enough_points;  <span class="comment">/* True iff the data allows fitting a polynomial */</span></div>
-<div class="line"><a name="l03146"></a><span class="lineno"> 3146</span> </div>
-<div class="line"><a name="l03147"></a><span class="lineno"> 3147</span>             <span class="comment">/* Merge individual order tables to global table before fitting */</span></div>
-<div class="line"><a name="l03148"></a><span class="lineno"> 3148</span>             uves_free_table(profile_global);</div>
-<div class="line"><a name="l03149"></a><span class="lineno"> 3149</span>             </div>
-<div class="line"><a name="l03150"></a><span class="lineno"> 3150</span> <span class="preprocessor">#if NEW_METHOD</span></div>
-<div class="line"><a name="l03151"></a><span class="lineno"> 3151</span> <span class="preprocessor"></span>            <span class="keywordflow">for</span> (pos->order = pos->minorder; order <= pos->minorder; pos->order++)</div>
-<div class="line"><a name="l03152"></a><span class="lineno"> 3152</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03153"></a><span class="lineno"> 3153</span> <span class="preprocessor"></span>            <span class="keywordflow">for</span> (pos->order = pos->minorder; pos->order <= pos->maxorder; pos->order++)</div>
-<div class="line"><a name="l03154"></a><span class="lineno"> 3154</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03155"></a><span class="lineno"> 3155</span> <span class="preprocessor"></span>                {</div>
-<div class="line"><a name="l03156"></a><span class="lineno"> 3156</span>                     <span class="keywordflow">if</span> (pos->order == pos->minorder)</div>
-<div class="line"><a name="l03157"></a><span class="lineno"> 3157</span>                         {</div>
-<div class="line"><a name="l03158"></a><span class="lineno"> 3158</span>                             *profile_global = cpl_table_duplicate(profile_data[0]);</div>
-<div class="line"><a name="l03159"></a><span class="lineno"> 3159</span>                         }</div>
-<div class="line"><a name="l03160"></a><span class="lineno"> 3160</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03161"></a><span class="lineno"> 3161</span>                         {</div>
-<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span>                             <span class="comment">/* Insert at top */</span></div>
-<div class="line"><a name="l03163"></a><span class="lineno"> 3163</span>                             cpl_table_insert(*profile_global, </div>
-<div class="line"><a name="l03164"></a><span class="lineno"> 3164</span>                                              profile_data[pos->order-pos->minorder], 0);</div>
-<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span>                         }</div>
-<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>         }</div>
-<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>             </div>
-<div class="line"><a name="l03168"></a><span class="lineno"> 3168</span>             uves_extract_profile_delete(&profile);</div>
-<div class="line"><a name="l03169"></a><span class="lineno"> 3169</span>             profile = uves_extract_profile_new(f, dfda, M, 0, 0);</div>
-<div class="line"><a name="l03170"></a><span class="lineno"> 3170</span>             </div>
-<div class="line"><a name="l03171"></a><span class="lineno"> 3171</span>             <span class="comment">/*</span></div>
-<div class="line"><a name="l03172"></a><span class="lineno"> 3172</span> <span class="comment">               For robustness against</span></div>
-<div class="line"><a name="l03173"></a><span class="lineno"> 3173</span> <span class="comment">               too small (i.e. wrong) uncertainties (which would cause</span></div>
-<div class="line"><a name="l03174"></a><span class="lineno"> 3174</span> <span class="comment">               single points to have extremely high weight 1/sigma^2),</span></div>
-<div class="line"><a name="l03175"></a><span class="lineno"> 3175</span> <span class="comment">               raise uncertainties to median before fitting.</span></div>
-<div class="line"><a name="l03176"></a><span class="lineno"> 3176</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l03177"></a><span class="lineno"> 3177</span> </div>
-<div class="line"><a name="l03178"></a><span class="lineno"> 3178</span>             max_degree = 5;</div>
-<div class="line"><a name="l03179"></a><span class="lineno"> 3179</span> </div>
-<div class="line"><a name="l03180"></a><span class="lineno"> 3180</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03181"></a><span class="lineno"> 3181</span> <span class="preprocessor"></span>        <span class="keywordflow">for</span> (pos->order = pos->minorder; pos->order <= pos->maxorder; pos->order++)</div>
-<div class="line"><a name="l03182"></a><span class="lineno"> 3182</span>         {</div>
-<div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>             <span class="keywordtype">int</span> degree = 4;</div>
-<div class="line"><a name="l03184"></a><span class="lineno"> 3184</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03185"></a><span class="lineno"> 3185</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03186"></a><span class="lineno"> 3186</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03187"></a><span class="lineno"> 3187</span>             enough_points = </div>
-<div class="line"><a name="l03188"></a><span class="lineno"> 3188</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03189"></a><span class="lineno"> 3189</span> <span class="preprocessor"></span>                (cpl_table_get_nrow(profile_data[pos->order-pos->minorder])</div>
-<div class="line"><a name="l03190"></a><span class="lineno"> 3190</span>          >= (degree + 1));</div>
-<div class="line"><a name="l03191"></a><span class="lineno"> 3191</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03192"></a><span class="lineno"> 3192</span> <span class="preprocessor"></span>            (cpl_table_get_nrow(*profile_global) >= (max_degree + 1)*(max_degree + 1));</div>
-<div class="line"><a name="l03193"></a><span class="lineno"> 3193</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03194"></a><span class="lineno"> 3194</span> <span class="preprocessor"></span>            <span class="keywordflow">if</span> (enough_points)</div>
-<div class="line"><a name="l03195"></a><span class="lineno"> 3195</span>                 {</div>
-<div class="line"><a name="l03196"></a><span class="lineno"> 3196</span>                     <span class="keywordtype">double</span> mse;</div>
-<div class="line"><a name="l03197"></a><span class="lineno"> 3197</span>                     <span class="comment">/* Make sure the fit has sensible values at the following positions */</span></div>
-<div class="line"><a name="l03198"></a><span class="lineno"> 3198</span>                     <span class="keywordtype">double</span> min_val = -pos->sg.length/2;</div>
-<div class="line"><a name="l03199"></a><span class="lineno"> 3199</span>                     <span class="keywordtype">double</span> max_val = pos->sg.length/2;</div>
-<div class="line"><a name="l03200"></a><span class="lineno"> 3200</span>                     <span class="keywordtype">double</span> minmax_pos[4][2];</div>
-<div class="line"><a name="l03201"></a><span class="lineno"> 3201</span>                     minmax_pos[0][0] = 1      ; minmax_pos[0][1] = pos->minorder;</div>
-<div class="line"><a name="l03202"></a><span class="lineno"> 3202</span>                     minmax_pos[1][0] = 1      ; minmax_pos[1][1] = pos->maxorder;</div>
-<div class="line"><a name="l03203"></a><span class="lineno"> 3203</span>                     minmax_pos[2][0] = pos->nx; minmax_pos[2][1] = pos->minorder;</div>
-<div class="line"><a name="l03204"></a><span class="lineno"> 3204</span>                     minmax_pos[3][0] = pos->nx; minmax_pos[3][1] = pos->maxorder;</div>
-<div class="line"><a name="l03205"></a><span class="lineno"> 3205</span>                     </div>
-<div class="line"><a name="l03206"></a><span class="lineno"> 3206</span>                     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Fitting profile centroid = polynomial(x, order)"</span>);</div>
-<div class="line"><a name="l03207"></a><span class="lineno"> 3207</span>                     </div>
-<div class="line"><a name="l03208"></a><span class="lineno"> 3208</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03209"></a><span class="lineno"> 3209</span> <span class="preprocessor"></span>                    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_raise_to_median_frac(</div>
-<div class="line"><a name="l03210"></a><span class="lineno"> 3210</span>                      profile_data[pos->order-pos->minorder], <span class="stringliteral">"dY0"</span>, 1.0) );</div>
-<div class="line"><a name="l03211"></a><span class="lineno"> 3211</span> </div>
-<div class="line"><a name="l03212"></a><span class="lineno"> 3212</span>             profile->y0[pos->order - pos->minorder] = </div>
-<div class="line"><a name="l03213"></a><span class="lineno"> 3213</span>             <a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d</a>(</div>
-<div class="line"><a name="l03214"></a><span class="lineno"> 3214</span>                 profile_data[pos->order-pos->minorder],</div>
-<div class="line"><a name="l03215"></a><span class="lineno"> 3215</span>                 <span class="stringliteral">"X"</span>, <span class="stringliteral">"Y0"</span>, <span class="stringliteral">"dY0"</span>, degree,</div>
-<div class="line"><a name="l03216"></a><span class="lineno"> 3216</span>                 <span class="stringliteral">"Y0fit"</span>, NULL,</div>
-<div class="line"><a name="l03217"></a><span class="lineno"> 3217</span>                             &mse, kappa);</div>
-<div class="line"><a name="l03218"></a><span class="lineno"> 3218</span> <span class="preprocessor">#else                    </span></div>
-<div class="line"><a name="l03219"></a><span class="lineno"> 3219</span> <span class="preprocessor"></span>                    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_raise_to_median_frac(*profile_global, <span class="stringliteral">"dY0"</span>, 1.0) );</div>
-<div class="line"><a name="l03220"></a><span class="lineno"> 3220</span> </div>
-<div class="line"><a name="l03221"></a><span class="lineno"> 3221</span>                     profile->y0 = </div>
-<div class="line"><a name="l03222"></a><span class="lineno"> 3222</span>                         <a class="code" href="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d_autodegree</a>(</div>
-<div class="line"><a name="l03223"></a><span class="lineno"> 3223</span>                             *profile_global,</div>
-<div class="line"><a name="l03224"></a><span class="lineno"> 3224</span>                             <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Y0"</span>, <span class="stringliteral">"dY0"</span>, </div>
-<div class="line"><a name="l03225"></a><span class="lineno"> 3225</span>                             <span class="stringliteral">"Y0fit"</span>, NULL, NULL,</div>
-<div class="line"><a name="l03226"></a><span class="lineno"> 3226</span>                             &mse, NULL, NULL,</div>
-<div class="line"><a name="l03227"></a><span class="lineno"> 3227</span>                             kappa,</div>
-<div class="line"><a name="l03228"></a><span class="lineno"> 3228</span>                             max_degree, max_degree, min_rms, -1,</div>
-<div class="line"><a name="l03229"></a><span class="lineno"> 3229</span>                             <span class="keyword">true</span>,</div>
-<div class="line"><a name="l03230"></a><span class="lineno"> 3230</span>                             &min_val, &max_val, 4, minmax_pos);</div>
-<div class="line"><a name="l03231"></a><span class="lineno"> 3231</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03232"></a><span class="lineno"> 3232</span> <span class="preprocessor"></span>            <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX)</div>
-<div class="line"><a name="l03233"></a><span class="lineno"> 3233</span>                         {</div>
-<div class="line"><a name="l03234"></a><span class="lineno"> 3234</span>                             <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l03235"></a><span class="lineno"> 3235</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03236"></a><span class="lineno"> 3236</span> <span class="preprocessor"></span>                            <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&(profile->y0[pos->order - pos->minorder]));</div>
-<div class="line"><a name="l03237"></a><span class="lineno"> 3237</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03238"></a><span class="lineno"> 3238</span> <span class="preprocessor"></span>                            <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&(profile->y0));</div>
-<div class="line"><a name="l03239"></a><span class="lineno"> 3239</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03240"></a><span class="lineno"> 3240</span> <span class="preprocessor"></span>                            </div>
-<div class="line"><a name="l03241"></a><span class="lineno"> 3241</span>                             enough_points = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03242"></a><span class="lineno"> 3242</span>                         }</div>
-<div class="line"><a name="l03243"></a><span class="lineno"> 3243</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03244"></a><span class="lineno"> 3244</span>                         {</div>
-<div class="line"><a name="l03245"></a><span class="lineno"> 3245</span>                             assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l03246"></a><span class="lineno"> 3246</span>                                     cpl_error_get_code(),</div>
-<div class="line"><a name="l03247"></a><span class="lineno"> 3247</span>                                     <span class="stringliteral">"Error fitting object position"</span>);</div>
-<div class="line"><a name="l03248"></a><span class="lineno"> 3248</span>                             </div>
-<div class="line"><a name="l03249"></a><span class="lineno"> 3249</span>                             <span class="comment">/* Fit succeeded */</span></div>
-<div class="line"><a name="l03250"></a><span class="lineno"> 3250</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03251"></a><span class="lineno"> 3251</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03252"></a><span class="lineno"> 3252</span> <span class="preprocessor"></span>                            <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Object offset at chip center = %.2f pixels"</span>,</div>
-<div class="line"><a name="l03253"></a><span class="lineno"> 3253</span>                                          <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l03254"></a><span class="lineno"> 3254</span>                                              profile->y0,</div>
-<div class="line"><a name="l03255"></a><span class="lineno"> 3255</span>                                              pos->nx/2,</div>
-<div class="line"><a name="l03256"></a><span class="lineno"> 3256</span>                                              (pos->minorder+pos->maxorder)/2));</div>
-<div class="line"><a name="l03257"></a><span class="lineno"> 3257</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03258"></a><span class="lineno"> 3258</span> <span class="preprocessor"></span>                            </div>
-<div class="line"><a name="l03259"></a><span class="lineno"> 3259</span>                             <span class="keywordflow">if</span> (sqrt(mse) > 0.5)  <span class="comment">/* Pixels */</span></div>
-<div class="line"><a name="l03260"></a><span class="lineno"> 3260</span>                                 {</div>
-<div class="line"><a name="l03261"></a><span class="lineno"> 3261</span>                                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Problem localizing object "</span></div>
-<div class="line"><a name="l03262"></a><span class="lineno"> 3262</span>                                                      <span class="stringliteral">"(usually RMS ~= 0.1 pixels)"</span>);</div>
-<div class="line"><a name="l03263"></a><span class="lineno"> 3263</span>                                 }</div>
-<div class="line"><a name="l03264"></a><span class="lineno"> 3264</span>                         }</div>
-<div class="line"><a name="l03265"></a><span class="lineno"> 3265</span>                 }</div>
-<div class="line"><a name="l03266"></a><span class="lineno"> 3266</span> </div>
-<div class="line"><a name="l03267"></a><span class="lineno"> 3267</span>             <span class="keywordflow">if</span> (!enough_points)</div>
-<div class="line"><a name="l03268"></a><span class="lineno"> 3268</span>                 {</div>
-<div class="line"><a name="l03269"></a><span class="lineno"> 3269</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03270"></a><span class="lineno"> 3270</span> <span class="preprocessor"></span>                    <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Too few points (%d) to fit global polynomial to "</span></div>
-<div class="line"><a name="l03271"></a><span class="lineno"> 3271</span>                                      <span class="stringliteral">"object centroid. Setting offset to zero"</span>,</div>
-<div class="line"><a name="l03272"></a><span class="lineno"> 3272</span>                                      cpl_table_get_nrow(profile_data[pos->order - pos->minorder])); </div>
-<div class="line"><a name="l03273"></a><span class="lineno"> 3273</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03274"></a><span class="lineno"> 3274</span> <span class="preprocessor"></span>                    <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Too few points (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">") to fit global polynomial to "</span></div>
-<div class="line"><a name="l03275"></a><span class="lineno"> 3275</span>                                      <span class="stringliteral">"object centroid. Setting offset to zero"</span>,</div>
-<div class="line"><a name="l03276"></a><span class="lineno"> 3276</span>                                      cpl_table_get_nrow(*profile_global)); </div>
-<div class="line"><a name="l03277"></a><span class="lineno"> 3277</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03278"></a><span class="lineno"> 3278</span> <span class="preprocessor"></span>                    </div>
-<div class="line"><a name="l03279"></a><span class="lineno"> 3279</span>                     <span class="comment">/* Set y0(x, m) := 0 */</span></div>
-<div class="line"><a name="l03280"></a><span class="lineno"> 3280</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03281"></a><span class="lineno"> 3281</span> <span class="preprocessor"></span>                    profile->y0[pos->order - pos->minorder] = <a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(1);</div>
-<div class="line"><a name="l03282"></a><span class="lineno"> 3282</span> </div>
-<div class="line"><a name="l03283"></a><span class="lineno"> 3283</span>                     cpl_table_new_column(profile_data[pos->order-pos->minorder], <span class="stringliteral">"Y0fit"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03284"></a><span class="lineno"> 3284</span>                     <span class="keywordflow">if</span> (cpl_table_get_nrow(profile_data[pos->order-pos->minorder]) > 0)</div>
-<div class="line"><a name="l03285"></a><span class="lineno"> 3285</span>                         {</div>
-<div class="line"><a name="l03286"></a><span class="lineno"> 3286</span>                             cpl_table_fill_column_window_double(</div>
-<div class="line"><a name="l03287"></a><span class="lineno"> 3287</span>                                 profile_data[pos->order-pos->minorder], <span class="stringliteral">"Y0fit"</span>, </div>
-<div class="line"><a name="l03288"></a><span class="lineno"> 3288</span>                                 0, cpl_table_get_nrow(profile_data[pos->order-pos->minorder]),</div>
-<div class="line"><a name="l03289"></a><span class="lineno"> 3289</span>                                 0);</div>
-<div class="line"><a name="l03290"></a><span class="lineno"> 3290</span>                         }</div>
-<div class="line"><a name="l03291"></a><span class="lineno"> 3291</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03292"></a><span class="lineno"> 3292</span> <span class="preprocessor"></span>                    profile->y0 = <a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(2);</div>
-<div class="line"><a name="l03293"></a><span class="lineno"> 3293</span> </div>
-<div class="line"><a name="l03294"></a><span class="lineno"> 3294</span>                     cpl_table_new_column(*profile_global, <span class="stringliteral">"Y0fit"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03295"></a><span class="lineno"> 3295</span>                     <span class="keywordflow">if</span> (cpl_table_get_nrow(*profile_global) > 0)</div>
-<div class="line"><a name="l03296"></a><span class="lineno"> 3296</span>                         {</div>
-<div class="line"><a name="l03297"></a><span class="lineno"> 3297</span>                             cpl_table_fill_column_window_double(</div>
-<div class="line"><a name="l03298"></a><span class="lineno"> 3298</span>                                 *profile_global, <span class="stringliteral">"Y0fit"</span>, </div>
-<div class="line"><a name="l03299"></a><span class="lineno"> 3299</span>                                 0, cpl_table_get_nrow(*profile_global),</div>
-<div class="line"><a name="l03300"></a><span class="lineno"> 3300</span>                                 0);</div>
-<div class="line"><a name="l03301"></a><span class="lineno"> 3301</span>                         }</div>
-<div class="line"><a name="l03302"></a><span class="lineno"> 3302</span> <span class="preprocessor">#endif                    </span></div>
-<div class="line"><a name="l03303"></a><span class="lineno"> 3303</span> <span class="preprocessor"></span>                }</div>
-<div class="line"><a name="l03304"></a><span class="lineno"> 3304</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03305"></a><span class="lineno"> 3305</span> <span class="preprocessor"></span>        } <span class="comment">/* for order */</span></div>
-<div class="line"><a name="l03306"></a><span class="lineno"> 3306</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03307"></a><span class="lineno"> 3307</span> <span class="preprocessor"></span><span class="preprocessor">#endif            </span></div>
-<div class="line"><a name="l03308"></a><span class="lineno"> 3308</span> <span class="preprocessor"></span>            max_degree = 3;</div>
-<div class="line"><a name="l03309"></a><span class="lineno"> 3309</span> </div>
-<div class="line"><a name="l03310"></a><span class="lineno"> 3310</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03311"></a><span class="lineno"> 3311</span> <span class="preprocessor"></span>        <span class="keywordflow">for</span> (pos->order = pos->minorder; pos->order <= pos->maxorder; pos->order++)</div>
-<div class="line"><a name="l03312"></a><span class="lineno"> 3312</span>         {</div>
-<div class="line"><a name="l03313"></a><span class="lineno"> 3313</span>             <span class="keywordtype">int</span> degree = 4;</div>
-<div class="line"><a name="l03314"></a><span class="lineno"> 3314</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03315"></a><span class="lineno"> 3315</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03316"></a><span class="lineno"> 3316</span> <span class="preprocessor"></span>            enough_points = </div>
-<div class="line"><a name="l03317"></a><span class="lineno"> 3317</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03318"></a><span class="lineno"> 3318</span> <span class="preprocessor"></span>                (cpl_table_get_nrow(profile_data[pos->order-pos->minorder]) </div>
-<div class="line"><a name="l03319"></a><span class="lineno"> 3319</span>          >= (degree + 1));</div>
-<div class="line"><a name="l03320"></a><span class="lineno"> 3320</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03321"></a><span class="lineno"> 3321</span> <span class="preprocessor"></span>            (cpl_table_get_nrow(*profile_global) >= (max_degree + 1)*(max_degree + 1));</div>
-<div class="line"><a name="l03322"></a><span class="lineno"> 3322</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03323"></a><span class="lineno"> 3323</span> <span class="preprocessor"></span>            <span class="keywordflow">if</span> (enough_points)</div>
-<div class="line"><a name="l03324"></a><span class="lineno"> 3324</span>                 {</div>
-<div class="line"><a name="l03325"></a><span class="lineno"> 3325</span>                     <span class="keywordtype">double</span> min_val = 0.1;</div>
-<div class="line"><a name="l03326"></a><span class="lineno"> 3326</span>                     <span class="keywordtype">double</span> max_val = pos->sg.length;</div>
-<div class="line"><a name="l03327"></a><span class="lineno"> 3327</span>                     <span class="keywordtype">double</span> minmax_pos[4][2];</div>
-<div class="line"><a name="l03328"></a><span class="lineno"> 3328</span>                     minmax_pos[0][0] =      1 ; minmax_pos[0][1] = pos->minorder;</div>
-<div class="line"><a name="l03329"></a><span class="lineno"> 3329</span>                     minmax_pos[1][0] =      1 ; minmax_pos[1][1] = pos->maxorder;</div>
-<div class="line"><a name="l03330"></a><span class="lineno"> 3330</span>                     minmax_pos[2][0] = pos->nx; minmax_pos[2][1] = pos->minorder;</div>
-<div class="line"><a name="l03331"></a><span class="lineno"> 3331</span>                     minmax_pos[3][0] = pos->nx; minmax_pos[3][1] = pos->maxorder;</div>
-<div class="line"><a name="l03332"></a><span class="lineno"> 3332</span>                     </div>
-<div class="line"><a name="l03333"></a><span class="lineno"> 3333</span>                     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Fitting profile width = polynomial(x, order)"</span>);</div>
-<div class="line"><a name="l03334"></a><span class="lineno"> 3334</span> </div>
-<div class="line"><a name="l03335"></a><span class="lineno"> 3335</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03336"></a><span class="lineno"> 3336</span> <span class="preprocessor"></span>                    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_raise_to_median_frac(</div>
-<div class="line"><a name="l03337"></a><span class="lineno"> 3337</span>                      profile_data[pos->order-pos->minorder], <span class="stringliteral">"dSigma"</span>, 1.0) );</div>
-<div class="line"><a name="l03338"></a><span class="lineno"> 3338</span>                  </div>
-<div class="line"><a name="l03339"></a><span class="lineno"> 3339</span>             </div>
-<div class="line"><a name="l03340"></a><span class="lineno"> 3340</span>             profile->sigma[pos->order - pos->minorder] = </div>
-<div class="line"><a name="l03341"></a><span class="lineno"> 3341</span>                  <a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d</a>(</div>
-<div class="line"><a name="l03342"></a><span class="lineno"> 3342</span>                      profile_data[pos->order-pos->minorder],</div>
-<div class="line"><a name="l03343"></a><span class="lineno"> 3343</span>                      <span class="stringliteral">"X"</span>, <span class="stringliteral">"Sigma"</span>, <span class="stringliteral">"dSigma"</span>, degree,</div>
-<div class="line"><a name="l03344"></a><span class="lineno"> 3344</span>                      <span class="stringliteral">"Sigmafit"</span>, NULL,</div>
-<div class="line"><a name="l03345"></a><span class="lineno"> 3345</span>                      NULL, kappa);</div>
-<div class="line"><a name="l03346"></a><span class="lineno"> 3346</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03347"></a><span class="lineno"> 3347</span> <span class="preprocessor"></span>                    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_raise_to_median_frac(*profile_global, <span class="stringliteral">"dSigma"</span>, 1.0) );</div>
-<div class="line"><a name="l03348"></a><span class="lineno"> 3348</span> </div>
-<div class="line"><a name="l03349"></a><span class="lineno"> 3349</span>                     profile->sigma = </div>
-<div class="line"><a name="l03350"></a><span class="lineno"> 3350</span>                         <a class="code" href="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d_autodegree</a>(</div>
-<div class="line"><a name="l03351"></a><span class="lineno"> 3351</span>                             *profile_global,</div>
-<div class="line"><a name="l03352"></a><span class="lineno"> 3352</span>                             <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Sigma"</span>, <span class="stringliteral">"dSigma"</span>,</div>
-<div class="line"><a name="l03353"></a><span class="lineno"> 3353</span>                             <span class="stringliteral">"Sigmafit"</span>, NULL, NULL,</div>
-<div class="line"><a name="l03354"></a><span class="lineno"> 3354</span>                             NULL, NULL, NULL,</div>
-<div class="line"><a name="l03355"></a><span class="lineno"> 3355</span>                             kappa,</div>
-<div class="line"><a name="l03356"></a><span class="lineno"> 3356</span>                             max_degree, max_degree, min_rms, -1,</div>
-<div class="line"><a name="l03357"></a><span class="lineno"> 3357</span>                             <span class="keyword">true</span>,</div>
-<div class="line"><a name="l03358"></a><span class="lineno"> 3358</span>                             &min_val, &max_val, 4, minmax_pos);</div>
-<div class="line"><a name="l03359"></a><span class="lineno"> 3359</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03360"></a><span class="lineno"> 3360</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03361"></a><span class="lineno"> 3361</span>                     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX)</div>
-<div class="line"><a name="l03362"></a><span class="lineno"> 3362</span>                         {</div>
-<div class="line"><a name="l03363"></a><span class="lineno"> 3363</span>                             <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l03364"></a><span class="lineno"> 3364</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03365"></a><span class="lineno"> 3365</span> <span class="preprocessor"></span>                            <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&(profile->sigma[pos->order - pos->minorder]));</div>
-<div class="line"><a name="l03366"></a><span class="lineno"> 3366</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03367"></a><span class="lineno"> 3367</span> <span class="preprocessor"></span>                            <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&(profile->sigma));</div>
-<div class="line"><a name="l03368"></a><span class="lineno"> 3368</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03369"></a><span class="lineno"> 3369</span> <span class="preprocessor"></span>                            </div>
-<div class="line"><a name="l03370"></a><span class="lineno"> 3370</span>                             enough_points = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03371"></a><span class="lineno"> 3371</span>                         }</div>
-<div class="line"><a name="l03372"></a><span class="lineno"> 3372</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03373"></a><span class="lineno"> 3373</span>                         {</div>
-<div class="line"><a name="l03374"></a><span class="lineno"> 3374</span>                             assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l03375"></a><span class="lineno"> 3375</span>                                     cpl_error_get_code(),</div>
-<div class="line"><a name="l03376"></a><span class="lineno"> 3376</span>                                     <span class="stringliteral">"Error fitting profile width"</span>);</div>
-<div class="line"><a name="l03377"></a><span class="lineno"> 3377</span> </div>
-<div class="line"><a name="l03378"></a><span class="lineno"> 3378</span> <span class="preprocessor">#if ORDER_PER_ORDER                            </span></div>
-<div class="line"><a name="l03379"></a><span class="lineno"> 3379</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03380"></a><span class="lineno"> 3380</span> <span class="preprocessor"></span>                            <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Profile FWHM at chip center = %.2f pixels"</span>,</div>
-<div class="line"><a name="l03381"></a><span class="lineno"> 3381</span>                                          TWOSQRT2LN2 * <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l03382"></a><span class="lineno"> 3382</span>                                              profile->sigma,</div>
-<div class="line"><a name="l03383"></a><span class="lineno"> 3383</span>                                              pos->nx/2,</div>
-<div class="line"><a name="l03384"></a><span class="lineno"> 3384</span>                                              (pos->minorder+pos->maxorder)/2));</div>
-<div class="line"><a name="l03385"></a><span class="lineno"> 3385</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03386"></a><span class="lineno"> 3386</span> <span class="preprocessor"></span>                        }</div>
-<div class="line"><a name="l03387"></a><span class="lineno"> 3387</span>                 }</div>
-<div class="line"><a name="l03388"></a><span class="lineno"> 3388</span>             </div>
-<div class="line"><a name="l03389"></a><span class="lineno"> 3389</span>             <span class="keywordflow">if</span> (!enough_points)</div>
-<div class="line"><a name="l03390"></a><span class="lineno"> 3390</span>                 {</div>
-<div class="line"><a name="l03391"></a><span class="lineno"> 3391</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03392"></a><span class="lineno"> 3392</span> <span class="preprocessor"></span>                    <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Too few points (%d) to fit global polynomial to "</span></div>
-<div class="line"><a name="l03393"></a><span class="lineno"> 3393</span>                                      <span class="stringliteral">"object width. Setting std.dev. to 1 pixel"</span>,</div>
-<div class="line"><a name="l03394"></a><span class="lineno"> 3394</span>                                      cpl_table_get_nrow(profile_data[pos->order - pos->minorder])); </div>
-<div class="line"><a name="l03395"></a><span class="lineno"> 3395</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03396"></a><span class="lineno"> 3396</span> <span class="preprocessor"></span>                    <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Too few points (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">") to fit global polynomial to "</span></div>
-<div class="line"><a name="l03397"></a><span class="lineno"> 3397</span>                                      <span class="stringliteral">"object width. Setting std.dev. to 1 pixel"</span>,</div>
-<div class="line"><a name="l03398"></a><span class="lineno"> 3398</span>                              cpl_table_get_nrow(*profile_global)); </div>
-<div class="line"><a name="l03399"></a><span class="lineno"> 3399</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03400"></a><span class="lineno"> 3400</span> <span class="preprocessor"></span>                    </div>
-<div class="line"><a name="l03401"></a><span class="lineno"> 3401</span>                     <span class="comment">/* Set sigma(x, m) := 1 */</span></div>
-<div class="line"><a name="l03402"></a><span class="lineno"> 3402</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03403"></a><span class="lineno"> 3403</span> <span class="preprocessor"></span>                    profile->sigma[pos->order - pos->minorder] = <a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(1);</div>
-<div class="line"><a name="l03404"></a><span class="lineno"> 3404</span>                     <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(profile->sigma[pos->order - pos->minorder], 0, 1.0);</div>
-<div class="line"><a name="l03405"></a><span class="lineno"> 3405</span> </div>
-<div class="line"><a name="l03406"></a><span class="lineno"> 3406</span>                     cpl_table_new_column(profile_data[pos->order-pos->minorder], <span class="stringliteral">"Sigmafit"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03407"></a><span class="lineno"> 3407</span>                     <span class="keywordflow">if</span> (cpl_table_get_nrow(profile_data[pos->order-pos->minorder]) > 0)</div>
-<div class="line"><a name="l03408"></a><span class="lineno"> 3408</span>                         {</div>
-<div class="line"><a name="l03409"></a><span class="lineno"> 3409</span>                             cpl_table_fill_column_window_double(</div>
-<div class="line"><a name="l03410"></a><span class="lineno"> 3410</span>                                 profile_data[pos->order-pos->minorder], <span class="stringliteral">"Sigmafit"</span>, </div>
-<div class="line"><a name="l03411"></a><span class="lineno"> 3411</span>                                 0, cpl_table_get_nrow(profile_data[pos->order-pos->minorder]),</div>
-<div class="line"><a name="l03412"></a><span class="lineno"> 3412</span>                                 1.0);</div>
-<div class="line"><a name="l03413"></a><span class="lineno"> 3413</span>                         }</div>
-<div class="line"><a name="l03414"></a><span class="lineno"> 3414</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03415"></a><span class="lineno"> 3415</span> <span class="preprocessor"></span>                    profile->sigma = <a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(2);</div>
-<div class="line"><a name="l03416"></a><span class="lineno"> 3416</span>                     <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(profile->sigma, 0, 1.0);</div>
-<div class="line"><a name="l03417"></a><span class="lineno"> 3417</span> </div>
-<div class="line"><a name="l03418"></a><span class="lineno"> 3418</span>                     cpl_table_new_column(*profile_global, <span class="stringliteral">"Sigmafit"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03419"></a><span class="lineno"> 3419</span>                     <span class="keywordflow">if</span> (cpl_table_get_nrow(*profile_global) > 0)</div>
-<div class="line"><a name="l03420"></a><span class="lineno"> 3420</span>                         {</div>
-<div class="line"><a name="l03421"></a><span class="lineno"> 3421</span>                             cpl_table_fill_column_window_double(</div>
-<div class="line"><a name="l03422"></a><span class="lineno"> 3422</span>                                 *profile_global, <span class="stringliteral">"Sigmafit"</span>, </div>
-<div class="line"><a name="l03423"></a><span class="lineno"> 3423</span>                                 0, cpl_table_get_nrow(*profile_global),</div>
-<div class="line"><a name="l03424"></a><span class="lineno"> 3424</span>                                 1.0);</div>
-<div class="line"><a name="l03425"></a><span class="lineno"> 3425</span>                         }</div>
-<div class="line"><a name="l03426"></a><span class="lineno"> 3426</span> <span class="preprocessor">#endif                    </span></div>
-<div class="line"><a name="l03427"></a><span class="lineno"> 3427</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03428"></a><span class="lineno"> 3428</span>                 }</div>
-<div class="line"><a name="l03429"></a><span class="lineno"> 3429</span> </div>
-<div class="line"><a name="l03430"></a><span class="lineno"> 3430</span>             <span class="comment">/* Don't fit a 2d polynomial to chi^2/N. Just use a robust average </span></div>
-<div class="line"><a name="l03431"></a><span class="lineno"> 3431</span> <span class="comment">               (i.e. a (0,0) degree polynomial) */</span></div>
-<div class="line"><a name="l03432"></a><span class="lineno"> 3432</span>             </div>
-<div class="line"><a name="l03433"></a><span class="lineno"> 3433</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03434"></a><span class="lineno"> 3434</span> <span class="preprocessor"></span>            profile->red_chisq[pos->order - pos->minorder] = <a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(1);</div>
-<div class="line"><a name="l03435"></a><span class="lineno"> 3435</span>             <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(profile->red_chisq[pos->order - pos->minorder], 0,</div>
-<div class="line"><a name="l03436"></a><span class="lineno"> 3436</span>                                   cpl_table_get_nrow(profile_data[pos->order - pos->minorder]) > 0 ?</div>
-<div class="line"><a name="l03437"></a><span class="lineno"> 3437</span>                                   cpl_table_get_column_median(profile_data[pos->order - pos->minorder],</div>
-<div class="line"><a name="l03438"></a><span class="lineno"> 3438</span>                                                               <span class="stringliteral">"Reduced_chisq"</span>) : 1.0);</div>
-<div class="line"><a name="l03439"></a><span class="lineno"> 3439</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03440"></a><span class="lineno"> 3440</span> <span class="preprocessor"></span>            profile->red_chisq = <a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(2);</div>
-<div class="line"><a name="l03441"></a><span class="lineno"> 3441</span>             <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(profile->red_chisq, 0,</div>
-<div class="line"><a name="l03442"></a><span class="lineno"> 3442</span>                                   cpl_table_get_nrow(*profile_global) > 0 ?</div>
-<div class="line"><a name="l03443"></a><span class="lineno"> 3443</span>                                   cpl_table_get_column_median(*profile_global,</div>
-<div class="line"><a name="l03444"></a><span class="lineno"> 3444</span>                                                               <span class="stringliteral">"Reduced_chisq"</span>) : 1.0);</div>
-<div class="line"><a name="l03445"></a><span class="lineno"> 3445</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03446"></a><span class="lineno"> 3446</span> <span class="preprocessor"></span>            </div>
-<div class="line"><a name="l03447"></a><span class="lineno"> 3447</span>             <span class="comment">/*</span></div>
-<div class="line"><a name="l03448"></a><span class="lineno"> 3448</span> <span class="comment">            if (cpl_table_get_nrow(*profile_global) >= (max_degree + 1)*(max_degree + 1))</span></div>
-<div class="line"><a name="l03449"></a><span class="lineno"> 3449</span> <span class="comment">                {</span></div>
-<div class="line"><a name="l03450"></a><span class="lineno"> 3450</span> <span class="comment">                    uves_msg_low("Fitting chi^2/N = polynomial(x, order)");</span></div>
-<div class="line"><a name="l03451"></a><span class="lineno"> 3451</span> <span class="comment">                    </span></div>
-<div class="line"><a name="l03452"></a><span class="lineno"> 3452</span> <span class="comment">                    check(      profile->red_chisq = </span></div>
-<div class="line"><a name="l03453"></a><span class="lineno"> 3453</span> <span class="comment">                                uves_polynomial_regression_2d_autodegree(</span></div>
-<div class="line"><a name="l03454"></a><span class="lineno"> 3454</span> <span class="comment">                                *profile_global,</span></div>
-<div class="line"><a name="l03455"></a><span class="lineno"> 3455</span> <span class="comment">                                "X", "Order", "Reduced_chisq", NULL,</span></div>
-<div class="line"><a name="l03456"></a><span class="lineno"> 3456</span> <span class="comment">                                NULL, NULL, NULL,</span></div>
-<div class="line"><a name="l03457"></a><span class="lineno"> 3457</span> <span class="comment">                                NULL, NULL, NULL,</span></div>
-<div class="line"><a name="l03458"></a><span class="lineno"> 3458</span> <span class="comment">                                kappa,</span></div>
-<div class="line"><a name="l03459"></a><span class="lineno"> 3459</span> <span class="comment">                                max_degree, max_degree, -1, true),</span></div>
-<div class="line"><a name="l03460"></a><span class="lineno"> 3460</span> <span class="comment">                                "Error fitting chi^2/N");</span></div>
-<div class="line"><a name="l03461"></a><span class="lineno"> 3461</span> <span class="comment">                }</span></div>
-<div class="line"><a name="l03462"></a><span class="lineno"> 3462</span> <span class="comment">            else</span></div>
-<div class="line"><a name="l03463"></a><span class="lineno"> 3463</span> <span class="comment">                {</span></div>
-<div class="line"><a name="l03464"></a><span class="lineno"> 3464</span> <span class="comment">                    uves_msg_warning("Too few points (%d) to fit global polynomial to "</span></div>
-<div class="line"><a name="l03465"></a><span class="lineno"> 3465</span> <span class="comment">                                     "chi^2/N. Setting chi^2/N to 1",</span></div>
-<div class="line"><a name="l03466"></a><span class="lineno"> 3466</span> <span class="comment">                                     cpl_table_get_nrow(*profile_global)); </span></div>
-<div class="line"><a name="l03467"></a><span class="lineno"> 3467</span> <span class="comment">                    </span></div>
-<div class="line"><a name="l03468"></a><span class="lineno"> 3468</span> <span class="comment">                    profile->red_chisq = uves_polynomial_new_zero(2);</span></div>
-<div class="line"><a name="l03469"></a><span class="lineno"> 3469</span> <span class="comment">                    uves_polynomial_shift(profile->red_chisq, 0, 1.0);</span></div>
-<div class="line"><a name="l03470"></a><span class="lineno"> 3470</span> <span class="comment">                }</span></div>
-<div class="line"><a name="l03471"></a><span class="lineno"> 3471</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l03472"></a><span class="lineno"> 3472</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03473"></a><span class="lineno"> 3473</span> <span class="preprocessor"></span>    } <span class="comment">/* for order */</span></div>
-<div class="line"><a name="l03474"></a><span class="lineno"> 3474</span> </div>
-<div class="line"><a name="l03475"></a><span class="lineno"> 3475</span>     <span class="comment">/* Make sure the global table is consistent */</span></div>
-<div class="line"><a name="l03476"></a><span class="lineno"> 3476</span>     uves_free_table(profile_global);</div>
-<div class="line"><a name="l03477"></a><span class="lineno"> 3477</span>     <span class="keywordflow">for</span> (pos->order = pos->minorder; pos->order <= pos->maxorder; pos->order++)</div>
-<div class="line"><a name="l03478"></a><span class="lineno"> 3478</span>     {</div>
-<div class="line"><a name="l03479"></a><span class="lineno"> 3479</span>         <span class="keywordflow">if</span> (pos->order == pos->minorder)</div>
-<div class="line"><a name="l03480"></a><span class="lineno"> 3480</span>         {</div>
-<div class="line"><a name="l03481"></a><span class="lineno"> 3481</span>             *profile_global = cpl_table_duplicate(profile_data[0]);</div>
-<div class="line"><a name="l03482"></a><span class="lineno"> 3482</span>         }</div>
-<div class="line"><a name="l03483"></a><span class="lineno"> 3483</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03484"></a><span class="lineno"> 3484</span>         {</div>
-<div class="line"><a name="l03485"></a><span class="lineno"> 3485</span>             <span class="comment">/* Insert at top */</span></div>
-<div class="line"><a name="l03486"></a><span class="lineno"> 3486</span>             cpl_table_insert(*profile_global, </div>
-<div class="line"><a name="l03487"></a><span class="lineno"> 3487</span>                      profile_data[pos->order-pos->minorder], 0);</div>
-<div class="line"><a name="l03488"></a><span class="lineno"> 3488</span>         }</div>
-<div class="line"><a name="l03489"></a><span class="lineno"> 3489</span>     }</div>
-<div class="line"><a name="l03490"></a><span class="lineno"> 3490</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03491"></a><span class="lineno"> 3491</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03492"></a><span class="lineno"> 3492</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03493"></a><span class="lineno"> 3493</span>     } <span class="comment">/* if  f != NULL  */</span></div>
-<div class="line"><a name="l03494"></a><span class="lineno"> 3494</span> </div>
-<div class="line"><a name="l03495"></a><span class="lineno"> 3495</span>     <span class="comment">/* Done fitting */</span></div>
-<div class="line"><a name="l03496"></a><span class="lineno"> 3496</span> </div>
-<div class="line"><a name="l03497"></a><span class="lineno"> 3497</span>     <span class="comment">/* Plot inferred profile at center of chip */</span></div>
-<div class="line"><a name="l03498"></a><span class="lineno"> 3498</span>     {</div>
-<div class="line"><a name="l03499"></a><span class="lineno"> 3499</span>         <span class="keywordtype">int</span> xmin = uves_max_int(1 , pos->nx/2-100);</div>
-<div class="line"><a name="l03500"></a><span class="lineno"> 3500</span>         <span class="keywordtype">int</span> xmax = uves_min_int(pos->nx, pos->nx/2+100);</div>
-<div class="line"><a name="l03501"></a><span class="lineno"> 3501</span>         <span class="keywordtype">int</span> order = (pos->minorder + pos->maxorder)/2;</div>
-<div class="line"><a name="l03502"></a><span class="lineno"> 3502</span>         <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l03503"></a><span class="lineno"> 3503</span> </div>
-<div class="line"><a name="l03504"></a><span class="lineno"> 3504</span>         plot0x = cpl_vector_new(uves_round_double(pos->sg.length+5)*(xmax-xmin+1));</div>
-<div class="line"><a name="l03505"></a><span class="lineno"> 3505</span>         plot0y = cpl_vector_new(uves_round_double(pos->sg.length+5)*(xmax-xmin+1));</div>
-<div class="line"><a name="l03506"></a><span class="lineno"> 3506</span>         plot1x = cpl_vector_new(uves_round_double(pos->sg.length+5)*(xmax-xmin+1));</div>
-<div class="line"><a name="l03507"></a><span class="lineno"> 3507</span>         plot1y = cpl_vector_new(uves_round_double(pos->sg.length+5)*(xmax-xmin+1));</div>
-<div class="line"><a name="l03508"></a><span class="lineno"> 3508</span>         indx = 0;</div>
-<div class="line"><a name="l03509"></a><span class="lineno"> 3509</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( plot0x );</div>
-<div class="line"><a name="l03510"></a><span class="lineno"> 3510</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( plot0y );</div>
-<div class="line"><a name="l03511"></a><span class="lineno"> 3511</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( plot1x );</div>
-<div class="line"><a name="l03512"></a><span class="lineno"> 3512</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( plot1y );</div>
-<div class="line"><a name="l03513"></a><span class="lineno"> 3513</span> </div>
-<div class="line"><a name="l03514"></a><span class="lineno"> 3514</span>         <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l03515"></a><span class="lineno"> 3515</span>                                     xmin, xmax,</div>
-<div class="line"><a name="l03516"></a><span class="lineno"> 3516</span>                                     order, order,</div>
-<div class="line"><a name="l03517"></a><span class="lineno"> 3517</span>                                     NULL, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l03518"></a><span class="lineno"> 3518</span>              !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line"><a name="l03519"></a><span class="lineno"> 3519</span>              <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line"><a name="l03520"></a><span class="lineno"> 3520</span>             </div>
-<div class="line"><a name="l03521"></a><span class="lineno"> 3521</span>             {</div>
-<div class="line"><a name="l03522"></a><span class="lineno"> 3522</span>                 <span class="comment">/* Linear extract (to enable plotting raw profile) */</span></div>
-<div class="line"><a name="l03523"></a><span class="lineno"> 3523</span>                 <span class="keywordtype">double</span> flux = 0;</div>
-<div class="line"><a name="l03524"></a><span class="lineno"> 3524</span>                 <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l03525"></a><span class="lineno"> 3525</span>                     {</div>
-<div class="line"><a name="l03526"></a><span class="lineno"> 3526</span>                         <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l03527"></a><span class="lineno"> 3527</span>                         <span class="keywordtype">double</span> pixelval = cpl_image_get(image, pos->x, pos->y, &pis_rejected);</div>
-<div class="line"><a name="l03528"></a><span class="lineno"> 3528</span>                         <span class="keywordflow">if</span> (!pis_rejected)</div>
-<div class="line"><a name="l03529"></a><span class="lineno"> 3529</span>                             {</div>
-<div class="line"><a name="l03530"></a><span class="lineno"> 3530</span>                                 flux += pixelval;</div>
-<div class="line"><a name="l03531"></a><span class="lineno"> 3531</span>                             }</div>
-<div class="line"><a name="l03532"></a><span class="lineno"> 3532</span>                     }</div>
-<div class="line"><a name="l03533"></a><span class="lineno"> 3533</span>                 </div>
-<div class="line"><a name="l03534"></a><span class="lineno"> 3534</span>                 uves_extract_profile_set(profile, pos, NULL);</div>
-<div class="line"><a name="l03535"></a><span class="lineno"> 3535</span>                 </div>
-<div class="line"><a name="l03536"></a><span class="lineno"> 3536</span>                 <span class="comment">/* Get empirical and model profile */</span></div>
-<div class="line"><a name="l03537"></a><span class="lineno"> 3537</span>                 <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l03538"></a><span class="lineno"> 3538</span>                     {</div>
-<div class="line"><a name="l03539"></a><span class="lineno"> 3539</span>                         <span class="keywordtype">double</span> dy = pos->y - pos->ycenter;</div>
-<div class="line"><a name="l03540"></a><span class="lineno"> 3540</span>                         <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l03541"></a><span class="lineno"> 3541</span>                         <span class="keywordtype">double</span> pixelval = cpl_image_get(</div>
-<div class="line"><a name="l03542"></a><span class="lineno"> 3542</span>                             image, pos->x, uves_round_double(pos->y), &pis_rejected);</div>
-<div class="line"><a name="l03543"></a><span class="lineno"> 3543</span>                         </div>
-<div class="line"><a name="l03544"></a><span class="lineno"> 3544</span>                         <span class="keywordflow">if</span> (!pis_rejected && flux != 0)</div>
-<div class="line"><a name="l03545"></a><span class="lineno"> 3545</span>                             {</div>
-<div class="line"><a name="l03546"></a><span class="lineno"> 3546</span>                                 pixelval /= flux;</div>
-<div class="line"><a name="l03547"></a><span class="lineno"> 3547</span>                             }</div>
-<div class="line"><a name="l03548"></a><span class="lineno"> 3548</span>                         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03549"></a><span class="lineno"> 3549</span>                             {</div>
-<div class="line"><a name="l03550"></a><span class="lineno"> 3550</span>                                 pixelval = 0;  <span class="comment">/* Plot something anyway, if pixel is bad */</span></div>
-<div class="line"><a name="l03551"></a><span class="lineno"> 3551</span>                             }</div>
-<div class="line"><a name="l03552"></a><span class="lineno"> 3552</span> </div>
-<div class="line"><a name="l03553"></a><span class="lineno"> 3553</span>                         cpl_vector_set(plot0x, indx, dy);</div>
-<div class="line"><a name="l03554"></a><span class="lineno"> 3554</span>                         cpl_vector_set(plot0y, indx, uves_extract_profile_evaluate(profile, pos));</div>
-<div class="line"><a name="l03555"></a><span class="lineno"> 3555</span> </div>
-<div class="line"><a name="l03556"></a><span class="lineno"> 3556</span>                         cpl_vector_set(plot1x, indx, dy);</div>
-<div class="line"><a name="l03557"></a><span class="lineno"> 3557</span>                         cpl_vector_set(plot1y, indx, pixelval);</div>
-<div class="line"><a name="l03558"></a><span class="lineno"> 3558</span>                         </div>
-<div class="line"><a name="l03559"></a><span class="lineno"> 3559</span>                         indx++;</div>
-<div class="line"><a name="l03560"></a><span class="lineno"> 3560</span>                     }</div>
-<div class="line"><a name="l03561"></a><span class="lineno"> 3561</span>             }</div>
-<div class="line"><a name="l03562"></a><span class="lineno"> 3562</span> </div>
-<div class="line"><a name="l03563"></a><span class="lineno"> 3563</span>     <span class="keywordflow">if</span> (indx > 0)</div>
-<div class="line"><a name="l03564"></a><span class="lineno"> 3564</span>         {</div>
-<div class="line"><a name="l03565"></a><span class="lineno"> 3565</span>         cpl_vector_set_size(plot0x, indx);</div>
-<div class="line"><a name="l03566"></a><span class="lineno"> 3566</span>         cpl_vector_set_size(plot0y, indx);</div>
-<div class="line"><a name="l03567"></a><span class="lineno"> 3567</span>         cpl_vector_set_size(plot1x, indx);</div>
-<div class="line"><a name="l03568"></a><span class="lineno"> 3568</span>         cpl_vector_set_size(plot1y, indx);</div>
-<div class="line"><a name="l03569"></a><span class="lineno"> 3569</span>         </div>
-<div class="line"><a name="l03570"></a><span class="lineno"> 3570</span>         plot[0] = cpl_bivector_wrap_vectors(plot0x, plot0y);</div>
-<div class="line"><a name="l03571"></a><span class="lineno"> 3571</span>         plot[1] = cpl_bivector_wrap_vectors(plot1x, plot1y);</div>
-<div class="line"><a name="l03572"></a><span class="lineno"> 3572</span>         </div>
-<div class="line"><a name="l03573"></a><span class="lineno"> 3573</span>         plot_titles[0] = uves_sprintf(</div>
-<div class="line"><a name="l03574"></a><span class="lineno"> 3574</span>             <span class="stringliteral">"Model spatial profile at (order, x) = (%d, %d)"</span>, order, pos->nx/2);</div>
-<div class="line"><a name="l03575"></a><span class="lineno"> 3575</span>         plot_titles[1] = uves_sprintf(</div>
-<div class="line"><a name="l03576"></a><span class="lineno"> 3576</span>             <span class="stringliteral">"Empirical spatial profile at (order, x) = (%d, %d)"</span>, order, pos->nx/2);</div>
-<div class="line"><a name="l03577"></a><span class="lineno"> 3577</span>         </div>
-<div class="line"><a name="l03578"></a><span class="lineno"> 3578</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_bivectors(plot, plot_titles, 2, <span class="stringliteral">"DY"</span>, <span class="stringliteral">"Profile"</span>), <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l03579"></a><span class="lineno"> 3579</span>         }</div>
-<div class="line"><a name="l03580"></a><span class="lineno"> 3580</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03581"></a><span class="lineno"> 3581</span>         {</div>
-<div class="line"><a name="l03582"></a><span class="lineno"> 3582</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"No points to plot. This may happen if the order "</span></div>
-<div class="line"><a name="l03583"></a><span class="lineno"> 3583</span>                  <span class="stringliteral">"polynomial is ill-formed"</span>);</div>
-<div class="line"><a name="l03584"></a><span class="lineno"> 3584</span>         }</div>
-<div class="line"><a name="l03585"></a><span class="lineno"> 3585</span>     } <span class="comment">/* end plotting */</span></div>
-<div class="line"><a name="l03586"></a><span class="lineno"> 3586</span>     </div>
-<div class="line"><a name="l03587"></a><span class="lineno"> 3587</span>     <span class="keywordflow">if</span> (f != NULL)</div>
-<div class="line"><a name="l03588"></a><span class="lineno"> 3588</span>         {</div>
-<div class="line"><a name="l03589"></a><span class="lineno"> 3589</span>             <span class="comment">/*</span></div>
-<div class="line"><a name="l03590"></a><span class="lineno"> 3590</span> <span class="comment">             * Create column 'y0fit_world' (fitted value in absolute coordinate),</span></div>
-<div class="line"><a name="l03591"></a><span class="lineno"> 3591</span> <span class="comment">             * add order location center to y0fit</span></div>
-<div class="line"><a name="l03592"></a><span class="lineno"> 3592</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l03593"></a><span class="lineno"> 3593</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03594"></a><span class="lineno"> 3594</span> </div>
-<div class="line"><a name="l03595"></a><span class="lineno"> 3595</span>             <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(*profile_global); i++)</div>
-<div class="line"><a name="l03596"></a><span class="lineno"> 3596</span>                 {</div>
-<div class="line"><a name="l03597"></a><span class="lineno"> 3597</span>                     <span class="keywordtype">double</span> y0fit = cpl_table_get_double(*profile_global, <span class="stringliteral">"Y0fit"</span>, i, NULL);</div>
-<div class="line"><a name="l03598"></a><span class="lineno"> 3598</span>                     <span class="keywordtype">int</span> order    = cpl_table_get_int   (*profile_global, <span class="stringliteral">"Order"</span>, i, NULL);</div>
-<div class="line"><a name="l03599"></a><span class="lineno"> 3599</span>                     <span class="keywordtype">int</span> x        = cpl_table_get_int   (*profile_global, <span class="stringliteral">"X"</span>    , i, NULL);</div>
-<div class="line"><a name="l03600"></a><span class="lineno"> 3600</span> </div>
-<div class="line"><a name="l03601"></a><span class="lineno"> 3601</span>                     <span class="comment">/* This will calculate ycenter */</span></div>
-<div class="line"><a name="l03602"></a><span class="lineno"> 3602</span>                     <a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos, </div>
-<div class="line"><a name="l03603"></a><span class="lineno"> 3603</span>                                            x, x,</div>
-<div class="line"><a name="l03604"></a><span class="lineno"> 3604</span>                                            order, order,</div>
-<div class="line"><a name="l03605"></a><span class="lineno"> 3605</span>                                            NULL,</div>
-<div class="line"><a name="l03606"></a><span class="lineno"> 3606</span>                                            <span class="keyword">false</span>);</div>
-<div class="line"><a name="l03607"></a><span class="lineno"> 3607</span>                   </div>
-<div class="line"><a name="l03608"></a><span class="lineno"> 3608</span>                     cpl_table_set_double(*profile_global, <span class="stringliteral">"Y0fit_world"</span>, i, y0fit + pos->ycenter);</div>
-<div class="line"><a name="l03609"></a><span class="lineno"> 3609</span>                 }</div>
-<div class="line"><a name="l03610"></a><span class="lineno"> 3610</span> </div>
-<div class="line"><a name="l03611"></a><span class="lineno"> 3611</span>             <span class="comment">/* Warn about bad detection */</span></div>
-<div class="line"><a name="l03612"></a><span class="lineno"> 3612</span> <span class="preprocessor">#if NEW_METHOD</span></div>
-<div class="line"><a name="l03613"></a><span class="lineno"> 3613</span> <span class="preprocessor"></span>            <span class="keywordflow">for</span> (pos->order = pos->minorder; pos->order <= pos->minorder; pos->order++)</div>
-<div class="line"><a name="l03614"></a><span class="lineno"> 3614</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03615"></a><span class="lineno"> 3615</span> <span class="preprocessor"></span>            <span class="keywordflow">for</span> (pos->order = pos->minorder; pos->order <= pos->maxorder; pos->order++)</div>
-<div class="line"><a name="l03616"></a><span class="lineno"> 3616</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03617"></a><span class="lineno"> 3617</span> <span class="preprocessor"></span>                {</div>
-<div class="line"><a name="l03618"></a><span class="lineno"> 3618</span>                     <span class="keywordflow">if</span> (good_bins[pos->order-pos->minorder] == 0)</div>
-<div class="line"><a name="l03619"></a><span class="lineno"> 3619</span>                         {</div>
-<div class="line"><a name="l03620"></a><span class="lineno"> 3620</span>                             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Order %d: Failed to detect object!"</span>, pos->order);</div>
-<div class="line"><a name="l03621"></a><span class="lineno"> 3621</span>                         }</div>
-<div class="line"><a name="l03622"></a><span class="lineno"> 3622</span>                 }</div>
-<div class="line"><a name="l03623"></a><span class="lineno"> 3623</span> </div>
-<div class="line"><a name="l03624"></a><span class="lineno"> 3624</span>         <span class="comment">/* Store parameters for QC</span></div>
-<div class="line"><a name="l03625"></a><span class="lineno"> 3625</span> <span class="comment">           (in virtual mode these are calculated elsewhere) */</span></div>
-<div class="line"><a name="l03626"></a><span class="lineno"> 3626</span>         <span class="keywordflow">for</span> (pos->order = pos->minorder; pos->order <= pos->maxorder; pos->order++)</div>
-<div class="line"><a name="l03627"></a><span class="lineno"> 3627</span>         {</div>
-<div class="line"><a name="l03628"></a><span class="lineno"> 3628</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l03629"></a><span class="lineno"> 3629</span> <span class="preprocessor"></span>            <span class="keywordtype">double</span> objpos=0;</div>
-<div class="line"><a name="l03630"></a><span class="lineno"> 3630</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l03631"></a><span class="lineno"> 3631</span>                 objpos = </div>
-<div class="line"><a name="l03632"></a><span class="lineno"> 3632</span>                 <a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(profile->y0[pos->order-pos->minorder],</div>
-<div class="line"><a name="l03633"></a><span class="lineno"> 3633</span>                             pos->nx/2)</div>
-<div class="line"><a name="l03634"></a><span class="lineno"> 3634</span>                 - ( - pos->sg.length/2 ));</div>
-<div class="line"><a name="l03635"></a><span class="lineno"> 3635</span>             <span class="keywordtype">double</span> fwhm =0; </div>
-<div class="line"><a name="l03636"></a><span class="lineno"> 3636</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(fwhm=<a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(profile->sigma[pos->order-pos->minorder],</div>
-<div class="line"><a name="l03637"></a><span class="lineno"> 3637</span>                                                          pos->nx/2) * TWOSQRT2LN2);</div>
-<div class="line"><a name="l03638"></a><span class="lineno"> 3638</span> </div>
-<div class="line"><a name="l03639"></a><span class="lineno"> 3639</span> </div>
-<div class="line"><a name="l03640"></a><span class="lineno"> 3640</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_double(info_tbl, <span class="stringliteral">"ObjPosOnSlit"</span>  , pos->order - pos->minorder, objpos));</div>
-<div class="line"><a name="l03641"></a><span class="lineno"> 3641</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_double(info_tbl, <span class="stringliteral">"ObjFwhmAvg"</span> , pos->order - pos->minorder, fwhm));</div>
-<div class="line"><a name="l03642"></a><span class="lineno"> 3642</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03643"></a><span class="lineno"> 3643</span> <span class="preprocessor"></span>            <span class="keywordtype">double</span> objpos  = 0;</div>
-<div class="line"><a name="l03644"></a><span class="lineno"> 3644</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(objpos=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(profile->y0, </div>
-<div class="line"><a name="l03645"></a><span class="lineno"> 3645</span>                                                            pos->nx/2, pos->order)</div>
-<div class="line"><a name="l03646"></a><span class="lineno"> 3646</span>                         - ( - pos->sg.length/2 ));</div>
-<div class="line"><a name="l03647"></a><span class="lineno"> 3647</span>             <span class="keywordtype">double</span> fwhm = 0;</div>
-<div class="line"><a name="l03648"></a><span class="lineno"> 3648</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(fwhm=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(profile->sigma   , </div>
-<div class="line"><a name="l03649"></a><span class="lineno"> 3649</span>                                                     pos->nx/2, pos->order)*</div>
-<div class="line"><a name="l03650"></a><span class="lineno"> 3650</span>                                          TWOSQRT2LN2);</div>
-<div class="line"><a name="l03651"></a><span class="lineno"> 3651</span> </div>
-<div class="line"><a name="l03652"></a><span class="lineno"> 3652</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_double(info_tbl, <span class="stringliteral">"ObjPosOnSlit"</span>  , pos->order - pos->minorder, objpos));</div>
-<div class="line"><a name="l03653"></a><span class="lineno"> 3653</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_double(info_tbl, <span class="stringliteral">"ObjFwhmAvg"</span> , pos->order - pos->minorder, fwhm));</div>
-<div class="line"><a name="l03654"></a><span class="lineno"> 3654</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03655"></a><span class="lineno"> 3655</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l03656"></a><span class="lineno"> 3656</span>                 </div>
-<div class="line"><a name="l03657"></a><span class="lineno"> 3657</span>             <span class="comment">/* Quality check on assumed profile (good fit: red.chisq ~= 1) */</span></div>
-<div class="line"><a name="l03658"></a><span class="lineno"> 3658</span>             <span class="keywordflow">if</span> (cpl_table_get_nrow(*profile_global) > 0)</div>
-<div class="line"><a name="l03659"></a><span class="lineno"> 3659</span>                 {</div>
-<div class="line"><a name="l03660"></a><span class="lineno"> 3660</span>                     <span class="keywordtype">double</span> med_chisq = cpl_table_get_column_median(</div>
-<div class="line"><a name="l03661"></a><span class="lineno"> 3661</span>                         *profile_global, <span class="stringliteral">"Reduced_chisq"</span>);</div>
-<div class="line"><a name="l03662"></a><span class="lineno"> 3662</span>                     <span class="keywordtype">double</span> limit = 5.0;</div>
-<div class="line"><a name="l03663"></a><span class="lineno"> 3663</span>                     </div>
-<div class="line"><a name="l03664"></a><span class="lineno"> 3664</span>                     <span class="keywordflow">if</span> (med_chisq > limit || med_chisq < 1/limit)</div>
-<div class="line"><a name="l03665"></a><span class="lineno"> 3665</span>                         {</div>
-<div class="line"><a name="l03666"></a><span class="lineno"> 3666</span>                             <span class="comment">/* The factor 5 is somewhat arbitrary.</span></div>
-<div class="line"><a name="l03667"></a><span class="lineno"> 3667</span> <span class="comment">                             * As an empirical fact, red_chisq ~= 1 for</span></div>
-<div class="line"><a name="l03668"></a><span class="lineno"> 3668</span> <span class="comment">                             * virtually resampled profiles (high and low</span></div>
-<div class="line"><a name="l03669"></a><span class="lineno"> 3669</span> <span class="comment">                             * S/N). This indicates that 1) the noise</span></div>
-<div class="line"><a name="l03670"></a><span class="lineno"> 3670</span> <span class="comment">                             * model and 2) the inferred profile are</span></div>
-<div class="line"><a name="l03671"></a><span class="lineno"> 3671</span> <span class="comment">                             * both correct. (If one or both of them</span></div>
-<div class="line"><a name="l03672"></a><span class="lineno"> 3672</span> <span class="comment">                             * were wrong it would a strange coincidence</span></div>
-<div class="line"><a name="l03673"></a><span class="lineno"> 3673</span> <span class="comment">                             * that we get red_chisq ~= 1.)</span></div>
-<div class="line"><a name="l03674"></a><span class="lineno"> 3674</span> <span class="comment">                             */</span></div>
-<div class="line"><a name="l03675"></a><span class="lineno"> 3675</span>                             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Assumed spatial profile might not be a "</span></div>
-<div class="line"><a name="l03676"></a><span class="lineno"> 3676</span>                                              <span class="stringliteral">"good fit to the data: median(Chi^2/N) = %f"</span>,</div>
-<div class="line"><a name="l03677"></a><span class="lineno"> 3677</span>                                              med_chisq);</div>
-<div class="line"><a name="l03678"></a><span class="lineno"> 3678</span>                             </div>
-<div class="line"><a name="l03679"></a><span class="lineno"> 3679</span>                             <span class="keywordflow">if</span> (f != NULL && med_chisq > limit)</div>
-<div class="line"><a name="l03680"></a><span class="lineno"> 3680</span>                                 {</div>
-<div class="line"><a name="l03681"></a><span class="lineno"> 3681</span>                                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Recommended profile "</span></div>
-<div class="line"><a name="l03682"></a><span class="lineno"> 3682</span>                                                      <span class="stringliteral">"measuring method: virtual"</span>);</div>
-<div class="line"><a name="l03683"></a><span class="lineno"> 3683</span>                                 }</div>
-<div class="line"><a name="l03684"></a><span class="lineno"> 3684</span>                         }</div>
-<div class="line"><a name="l03685"></a><span class="lineno"> 3685</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03686"></a><span class="lineno"> 3686</span>                         {</div>
-<div class="line"><a name="l03687"></a><span class="lineno"> 3687</span>                             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Median(reduced Chi^2) is %f"</span>, med_chisq);</div>
-<div class="line"><a name="l03688"></a><span class="lineno"> 3688</span>                         }</div>
-<div class="line"><a name="l03689"></a><span class="lineno"> 3689</span>                 }</div>
-<div class="line"><a name="l03690"></a><span class="lineno"> 3690</span>         }</div>
-<div class="line"><a name="l03691"></a><span class="lineno"> 3691</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03692"></a><span class="lineno"> 3692</span>         {</div>
-<div class="line"><a name="l03693"></a><span class="lineno"> 3693</span>             <span class="comment">/* fixme: calculate and report chi^2 (requires passing noise image</span></div>
-<div class="line"><a name="l03694"></a><span class="lineno"> 3694</span> <span class="comment">               to the profile sampling function)    */</span>      </div>
-<div class="line"><a name="l03695"></a><span class="lineno"> 3695</span>         }</div>
-<div class="line"><a name="l03696"></a><span class="lineno"> 3696</span> </div>
-<div class="line"><a name="l03697"></a><span class="lineno"> 3697</span>   cleanup:</div>
-<div class="line"><a name="l03698"></a><span class="lineno"> 3698</span>     uves_free_mask(&image_bad);</div>
-<div class="line"><a name="l03699"></a><span class="lineno"> 3699</span>     cpl_free(stepx);</div>
-<div class="line"><a name="l03700"></a><span class="lineno"> 3700</span>     cpl_free(good_bins);</div>
-<div class="line"><a name="l03701"></a><span class="lineno"> 3701</span>     <span class="keywordflow">if</span> (profile_data != NULL)</div>
-<div class="line"><a name="l03702"></a><span class="lineno"> 3702</span>         {</div>
-<div class="line"><a name="l03703"></a><span class="lineno"> 3703</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03704"></a><span class="lineno"> 3704</span>             <span class="keywordflow">for</span> (i = 0; i < ((f == NULL) ? spatial_bins : pos->maxorder-pos->minorder+1); i++)</div>
-<div class="line"><a name="l03705"></a><span class="lineno"> 3705</span>                 {</div>
-<div class="line"><a name="l03706"></a><span class="lineno"> 3706</span>                     <span class="keywordflow">if</span> (profile_data[i] != NULL)</div>
-<div class="line"><a name="l03707"></a><span class="lineno"> 3707</span>                         {</div>
-<div class="line"><a name="l03708"></a><span class="lineno"> 3708</span>                             uves_free_table(&(profile_data[i]));</div>
-<div class="line"><a name="l03709"></a><span class="lineno"> 3709</span>                         }</div>
-<div class="line"><a name="l03710"></a><span class="lineno"> 3710</span>                 }</div>
-<div class="line"><a name="l03711"></a><span class="lineno"> 3711</span>             cpl_free(profile_data);</div>
-<div class="line"><a name="l03712"></a><span class="lineno"> 3712</span>         }</div>
-<div class="line"><a name="l03713"></a><span class="lineno"> 3713</span>     cpl_bivector_unwrap_vectors(plot[0]);</div>
-<div class="line"><a name="l03714"></a><span class="lineno"> 3714</span>     cpl_bivector_unwrap_vectors(plot[1]);</div>
-<div class="line"><a name="l03715"></a><span class="lineno"> 3715</span>     cpl_free(plot_titles[0]);</div>
-<div class="line"><a name="l03716"></a><span class="lineno"> 3716</span>     cpl_free(plot_titles[1]);</div>
-<div class="line"><a name="l03717"></a><span class="lineno"> 3717</span>     uves_free_vector(&plot0x);</div>
-<div class="line"><a name="l03718"></a><span class="lineno"> 3718</span>     uves_free_vector(&plot0y);</div>
-<div class="line"><a name="l03719"></a><span class="lineno"> 3719</span>     uves_free_vector(&plot1x);</div>
-<div class="line"><a name="l03720"></a><span class="lineno"> 3720</span>     uves_free_vector(&plot1y);</div>
-<div class="line"><a name="l03721"></a><span class="lineno"> 3721</span>     </div>
-<div class="line"><a name="l03722"></a><span class="lineno"> 3722</span>     <span class="keywordflow">return</span> profile;</div>
-<div class="line"><a name="l03723"></a><span class="lineno"> 3723</span> }</div>
-<div class="line"><a name="l03724"></a><span class="lineno"> 3724</span> </div>
-<div class="line"><a name="l03725"></a><span class="lineno"> 3725</span> <span class="preprocessor">#if NEW_METHOD</span></div>
-<div class="line"><a name="l03726"></a><span class="lineno"> 3726</span> <span class="preprocessor"></span><span class="keyword">struct</span></div>
-<div class="line"><a name="l03727"></a><span class="lineno"> 3727</span> {</div>
-<div class="line"><a name="l03728"></a><span class="lineno"> 3728</span>     <span class="keywordtype">double</span> *flux; <span class="comment">/* Array [0..nx][minorder..maxorder] x = 0 is not used */</span></div>
-<div class="line"><a name="l03729"></a><span class="lineno"> 3729</span>     <span class="keywordtype">double</span> *sky;  <span class="comment">/* As above */</span></div>
-<div class="line"><a name="l03730"></a><span class="lineno"> 3730</span>     <span class="keywordtype">int</span> minorder, nx; <span class="comment">/* Needed for indexing of arrays above */</span></div>
-<div class="line"><a name="l03731"></a><span class="lineno"> 3731</span> </div>
-<div class="line"><a name="l03732"></a><span class="lineno"> 3732</span>     int (*f)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result);</div>
-<div class="line"><a name="l03733"></a><span class="lineno"> 3733</span>     int (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]);</div>
-<div class="line"><a name="l03734"></a><span class="lineno"> 3734</span> </div>
-<div class="line"><a name="l03735"></a><span class="lineno"> 3735</span>     <span class="keywordtype">int</span> deg_y0_x;</div>
-<div class="line"><a name="l03736"></a><span class="lineno"> 3736</span>     <span class="keywordtype">int</span> deg_y0_m;</div>
-<div class="line"><a name="l03737"></a><span class="lineno"> 3737</span>     <span class="keywordtype">int</span> deg_sigma_x;</div>
-<div class="line"><a name="l03738"></a><span class="lineno"> 3738</span>     <span class="keywordtype">int</span> deg_sigma_m;</div>
-<div class="line"><a name="l03739"></a><span class="lineno"> 3739</span> } profile_params;</div>
-<div class="line"><a name="l03740"></a><span class="lineno"> 3740</span> </div>
-<div class="line"><a name="l03741"></a><span class="lineno"> 3741</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l03742"></a><span class="lineno"> 3742</span> <span class="comment">  Evaluate 2d polynomial</span></div>
-<div class="line"><a name="l03743"></a><span class="lineno"> 3743</span> <span class="comment">  degrees must be zero or more</span></div>
-<div class="line"><a name="l03744"></a><span class="lineno"> 3744</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l03745"></a><span class="lineno"> 3745</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l03746"></a><span class="lineno"> 3746</span> eval_pol(<span class="keyword">const</span> <span class="keywordtype">double</span> *coeffs, </div>
-<div class="line"><a name="l03747"></a><span class="lineno"> 3747</span>          <span class="keywordtype">int</span> degree1, <span class="keywordtype">int</span> degree2,</div>
-<div class="line"><a name="l03748"></a><span class="lineno"> 3748</span>          <span class="keywordtype">double</span> x1, <span class="keywordtype">double</span> x2)</div>
-<div class="line"><a name="l03749"></a><span class="lineno"> 3749</span> {</div>
-<div class="line"><a name="l03750"></a><span class="lineno"> 3750</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l03751"></a><span class="lineno"> 3751</span>     <span class="keywordtype">double</span> x2j;    <span class="comment">/* x2^j */</span></div>
-<div class="line"><a name="l03752"></a><span class="lineno"> 3752</span>     <span class="keywordtype">int</span> j;</div>
-<div class="line"><a name="l03753"></a><span class="lineno"> 3753</span> </div>
-<div class="line"><a name="l03754"></a><span class="lineno"> 3754</span>     <span class="keywordflow">for</span> (j = 0, x2j = 1;</div>
-<div class="line"><a name="l03755"></a><span class="lineno"> 3755</span>          j <= degree2;</div>
-<div class="line"><a name="l03756"></a><span class="lineno"> 3756</span>          j++, x2j *= x2)</div>
-<div class="line"><a name="l03757"></a><span class="lineno"> 3757</span>         {</div>
-<div class="line"><a name="l03758"></a><span class="lineno"> 3758</span>             <span class="comment">/* Use Horner's scheme to sum the coefficients</span></div>
-<div class="line"><a name="l03759"></a><span class="lineno"> 3759</span> <span class="comment">               involving x2^j */</span></div>
-<div class="line"><a name="l03760"></a><span class="lineno"> 3760</span> </div>
-<div class="line"><a name="l03761"></a><span class="lineno"> 3761</span>             <span class="keywordtype">int</span> i = degree1;</div>
-<div class="line"><a name="l03762"></a><span class="lineno"> 3762</span>             <span class="keywordtype">double</span> r = coeffs[i + (degree1+1)*j];</div>
-<div class="line"><a name="l03763"></a><span class="lineno"> 3763</span>             </div>
-<div class="line"><a name="l03764"></a><span class="lineno"> 3764</span>             <span class="keywordflow">while</span>(i > 0)</div>
-<div class="line"><a name="l03765"></a><span class="lineno"> 3765</span>                 {</div>
-<div class="line"><a name="l03766"></a><span class="lineno"> 3766</span>                     r *= x1;</div>
-<div class="line"><a name="l03767"></a><span class="lineno"> 3767</span>                     i -= 1;</div>
-<div class="line"><a name="l03768"></a><span class="lineno"> 3768</span>                     r += coeffs[i + (degree1+1)*j];</div>
-<div class="line"><a name="l03769"></a><span class="lineno"> 3769</span>                 }</div>
-<div class="line"><a name="l03770"></a><span class="lineno"> 3770</span>             </div>
-<div class="line"><a name="l03771"></a><span class="lineno"> 3771</span>             <span class="comment">/* Finished using Horner. Add to grand result */</span></div>
-<div class="line"><a name="l03772"></a><span class="lineno"> 3772</span>             result += x2j*r;</div>
-<div class="line"><a name="l03773"></a><span class="lineno"> 3773</span>         }</div>
-<div class="line"><a name="l03774"></a><span class="lineno"> 3774</span> </div>
-<div class="line"><a name="l03775"></a><span class="lineno"> 3775</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l03776"></a><span class="lineno"> 3776</span> }</div>
-<div class="line"><a name="l03777"></a><span class="lineno"> 3777</span> </div>
-<div class="line"><a name="l03778"></a><span class="lineno"> 3778</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l03779"></a><span class="lineno"> 3779</span> <span class="comment">  @brief  evaluate 2d profile</span></div>
-<div class="line"><a name="l03780"></a><span class="lineno"> 3780</span> <span class="comment">  @param x      length 3 array of (xi, yi, mi)</span></div>
-<div class="line"><a name="l03781"></a><span class="lineno"> 3781</span> <span class="comment">  @param a      all polynomial coefficients</span></div>
-<div class="line"><a name="l03782"></a><span class="lineno"> 3782</span> <span class="comment">  @param result (output) result</span></div>
-<div class="line"><a name="l03783"></a><span class="lineno"> 3783</span> <span class="comment">  @return zero iff success</span></div>
-<div class="line"><a name="l03784"></a><span class="lineno"> 3784</span> <span class="comment"></span></div>
-<div class="line"><a name="l03785"></a><span class="lineno"> 3785</span> <span class="comment">  This function evaluates</span></div>
-<div class="line"><a name="l03786"></a><span class="lineno"> 3786</span> <span class="comment"></span></div>
-<div class="line"><a name="l03787"></a><span class="lineno"> 3787</span> <span class="comment">  P(xi, yi ; a) = S_xi + F_xi * (normalized profile)</span></div>
-<div class="line"><a name="l03788"></a><span class="lineno"> 3788</span> <span class="comment"></span></div>
-<div class="line"><a name="l03789"></a><span class="lineno"> 3789</span> <span class="comment">  using the data in 'profile_params' which must have been</span></div>
-<div class="line"><a name="l03790"></a><span class="lineno"> 3790</span> <span class="comment">  already initialized</span></div>
-<div class="line"><a name="l03791"></a><span class="lineno"> 3791</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l03792"></a><span class="lineno"> 3792</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l03793"></a><span class="lineno"> 3793</span> profile_f(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result)</div>
-<div class="line"><a name="l03794"></a><span class="lineno"> 3794</span> {</div>
-<div class="line"><a name="l03795"></a><span class="lineno"> 3795</span>     <span class="keywordtype">int</span> xi = uves_round_double(x[0]);</div>
-<div class="line"><a name="l03796"></a><span class="lineno"> 3796</span>     <span class="keywordtype">double</span> yi = x[1];</div>
-<div class="line"><a name="l03797"></a><span class="lineno"> 3797</span>     <span class="keywordtype">int</span> mi = uves_round_double(x[2]);</div>
-<div class="line"><a name="l03798"></a><span class="lineno"> 3798</span>     <span class="keywordtype">int</span> idx;</div>
-<div class="line"><a name="l03799"></a><span class="lineno"> 3799</span> </div>
-<div class="line"><a name="l03800"></a><span class="lineno"> 3800</span>     <span class="keywordtype">double</span> y_0   = eval_pol(a,</div>
-<div class="line"><a name="l03801"></a><span class="lineno"> 3801</span>                             profile_params.deg_y0_x,</div>
-<div class="line"><a name="l03802"></a><span class="lineno"> 3802</span>                             profile_params.deg_y0_m,</div>
-<div class="line"><a name="l03803"></a><span class="lineno"> 3803</span>                             xi, mi);</div>
-<div class="line"><a name="l03804"></a><span class="lineno"> 3804</span>     <span class="keywordtype">double</span> sigma = eval_pol(a + (1 + profile_params.deg_y0_x)*(1 + profile_params.deg_y0_m),</div>
-<div class="line"><a name="l03805"></a><span class="lineno"> 3805</span>                             profile_params.deg_sigma_x,</div>
-<div class="line"><a name="l03806"></a><span class="lineno"> 3806</span>                             profile_params.deg_sigma_m,</div>
-<div class="line"><a name="l03807"></a><span class="lineno"> 3807</span>                             xi, mi);</div>
-<div class="line"><a name="l03808"></a><span class="lineno"> 3808</span> </div>
-<div class="line"><a name="l03809"></a><span class="lineno"> 3809</span>     <span class="comment">/* Now evaluate normalized profile */</span></div>
-<div class="line"><a name="l03810"></a><span class="lineno"> 3810</span>     <span class="keywordtype">double</span> norm_prof;</div>
-<div class="line"><a name="l03811"></a><span class="lineno"> 3811</span> </div>
-<div class="line"><a name="l03812"></a><span class="lineno"> 3812</span>     <span class="keywordtype">double</span> xf[1];  <span class="comment">/* Point of evaluation */</span></div>
-<div class="line"><a name="l03813"></a><span class="lineno"> 3813</span> </div>
-<div class="line"><a name="l03814"></a><span class="lineno"> 3814</span>     <span class="keywordtype">double</span> af[5];  <span class="comment">/* Parameters */</span></div>
-<div class="line"><a name="l03815"></a><span class="lineno"> 3815</span>     af[0] = y_0;   <span class="comment">/* centroid   */</span></div>
-<div class="line"><a name="l03816"></a><span class="lineno"> 3816</span>     af[1] = sigma; <span class="comment">/* stdev      */</span></div>
-<div class="line"><a name="l03817"></a><span class="lineno"> 3817</span>     af[2] = 1;     <span class="comment">/* norm       */</span></div>
-<div class="line"><a name="l03818"></a><span class="lineno"> 3818</span>     af[3] = 0;     <span class="comment">/* offset     */</span></div>
-<div class="line"><a name="l03819"></a><span class="lineno"> 3819</span>     af[4] = 0;     <span class="comment">/* non-linear sky */</span></div>
-<div class="line"><a name="l03820"></a><span class="lineno"> 3820</span> </div>
-<div class="line"><a name="l03821"></a><span class="lineno"> 3821</span>     xf[0] = yi;</div>
-<div class="line"><a name="l03822"></a><span class="lineno"> 3822</span> </div>
-<div class="line"><a name="l03823"></a><span class="lineno"> 3823</span>     <span class="keywordflow">if</span> (profile_params.f(xf, af, &norm_prof) != 0)</div>
-<div class="line"><a name="l03824"></a><span class="lineno"> 3824</span>         {</div>
-<div class="line"><a name="l03825"></a><span class="lineno"> 3825</span>             <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l03826"></a><span class="lineno"> 3826</span>         }</div>
-<div class="line"><a name="l03827"></a><span class="lineno"> 3827</span> </div>
-<div class="line"><a name="l03828"></a><span class="lineno"> 3828</span>     idx = xi + (mi - profile_params.minorder)*(profile_params.nx + 1);</div>
-<div class="line"><a name="l03829"></a><span class="lineno"> 3829</span> </div>
-<div class="line"><a name="l03830"></a><span class="lineno"> 3830</span>     *result = profile_params.sky[idx] + profile_params.flux[idx] * norm_prof;</div>
-<div class="line"><a name="l03831"></a><span class="lineno"> 3831</span> </div>
-<div class="line"><a name="l03832"></a><span class="lineno"> 3832</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l03833"></a><span class="lineno"> 3833</span> }</div>
-<div class="line"><a name="l03834"></a><span class="lineno"> 3834</span> </div>
-<div class="line"><a name="l03835"></a><span class="lineno"> 3835</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l03836"></a><span class="lineno"> 3836</span> <span class="comment">  @brief  evaluate 2d profile partial derivatives</span></div>
-<div class="line"><a name="l03837"></a><span class="lineno"> 3837</span> <span class="comment">  @param x      length 3 array of (xk, yk, mk)</span></div>
-<div class="line"><a name="l03838"></a><span class="lineno"> 3838</span> <span class="comment">  @param a      all polynomial coefficients</span></div>
-<div class="line"><a name="l03839"></a><span class="lineno"> 3839</span> <span class="comment">  @param result (output) result</span></div>
-<div class="line"><a name="l03840"></a><span class="lineno"> 3840</span> <span class="comment">  @return zero iff success</span></div>
-<div class="line"><a name="l03841"></a><span class="lineno"> 3841</span> <span class="comment"></span></div>
-<div class="line"><a name="l03842"></a><span class="lineno"> 3842</span> <span class="comment">  This function evaluates the partial derivatives</span></div>
-<div class="line"><a name="l03843"></a><span class="lineno"> 3843</span> <span class="comment">  (with respect to the polynomial coefficients) of the function above</span></div>
-<div class="line"><a name="l03844"></a><span class="lineno"> 3844</span> <span class="comment"></span></div>
-<div class="line"><a name="l03845"></a><span class="lineno"> 3845</span> <span class="comment">  (1) dP/da_ij(xk, yk ; a) = F_xk * d(normalized profile)/dy0    * xk^i mk^j </span></div>
-<div class="line"><a name="l03846"></a><span class="lineno"> 3846</span> <span class="comment">  (2) dP/da_ij(xk, yk ; a) = F_xk * d(normalized profile)/dsigma * xk^ii mk^jj</span></div>
-<div class="line"><a name="l03847"></a><span class="lineno"> 3847</span> <span class="comment"></span></div>
-<div class="line"><a name="l03848"></a><span class="lineno"> 3848</span> <span class="comment">  (using the chain rule on the 1d profile function)</span></div>
-<div class="line"><a name="l03849"></a><span class="lineno"> 3849</span> <span class="comment"></span></div>
-<div class="line"><a name="l03850"></a><span class="lineno"> 3850</span> <span class="comment">  Here (1) is used for the coefficients that y0 depend on, i.e.</span></div>
-<div class="line"><a name="l03851"></a><span class="lineno"> 3851</span> <span class="comment">  for (i + (deg_y0_x+1)*j) < (deg_y0_x+1)(deg_y0_m+1)</span></div>
-<div class="line"><a name="l03852"></a><span class="lineno"> 3852</span> <span class="comment"></span></div>
-<div class="line"><a name="l03853"></a><span class="lineno"> 3853</span> <span class="comment">  and (2) is used for the remaining coefficients which sigma depend on</span></div>
-<div class="line"><a name="l03854"></a><span class="lineno"> 3854</span> <span class="comment">  (ii and jj are appropriate functions of i and j)</span></div>
-<div class="line"><a name="l03855"></a><span class="lineno"> 3855</span> <span class="comment"></span></div>
-<div class="line"><a name="l03856"></a><span class="lineno"> 3856</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l03857"></a><span class="lineno"> 3857</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l03858"></a><span class="lineno"> 3858</span> profile_dfda(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[])</div>
-<div class="line"><a name="l03859"></a><span class="lineno"> 3859</span> {</div>
-<div class="line"><a name="l03860"></a><span class="lineno"> 3860</span>     <span class="keywordtype">int</span> xi = uves_round_double(x[0]);</div>
-<div class="line"><a name="l03861"></a><span class="lineno"> 3861</span>     <span class="keywordtype">double</span> yi = x[1];</div>
-<div class="line"><a name="l03862"></a><span class="lineno"> 3862</span>     <span class="keywordtype">int</span> mi = uves_round_double(x[2]);</div>
-<div class="line"><a name="l03863"></a><span class="lineno"> 3863</span> </div>
-<div class="line"><a name="l03864"></a><span class="lineno"> 3864</span>     <span class="keywordtype">double</span> y_0   = eval_pol(a,</div>
-<div class="line"><a name="l03865"></a><span class="lineno"> 3865</span>                             profile_params.deg_y0_x,</div>
-<div class="line"><a name="l03866"></a><span class="lineno"> 3866</span>                             profile_params.deg_y0_m,</div>
-<div class="line"><a name="l03867"></a><span class="lineno"> 3867</span>                             xi, mi);</div>
-<div class="line"><a name="l03868"></a><span class="lineno"> 3868</span>     <span class="keywordtype">double</span> sigma = eval_pol(a + (1 + profile_params.deg_y0_x)*(1 + profile_params.deg_y0_m),</div>
-<div class="line"><a name="l03869"></a><span class="lineno"> 3869</span>                             profile_params.deg_sigma_x,</div>
-<div class="line"><a name="l03870"></a><span class="lineno"> 3870</span>                             profile_params.deg_sigma_m,</div>
-<div class="line"><a name="l03871"></a><span class="lineno"> 3871</span>                             xi, mi);</div>
-<div class="line"><a name="l03872"></a><span class="lineno"> 3872</span> </div>
-<div class="line"><a name="l03873"></a><span class="lineno"> 3873</span>     <span class="keywordtype">double</span> norm_prof_derivatives[5];</div>
-<div class="line"><a name="l03874"></a><span class="lineno"> 3874</span> </div>
-<div class="line"><a name="l03875"></a><span class="lineno"> 3875</span>     <span class="keywordtype">double</span> xf[1];  <span class="comment">/* Point of evaluation */</span></div>
-<div class="line"><a name="l03876"></a><span class="lineno"> 3876</span> </div>
-<div class="line"><a name="l03877"></a><span class="lineno"> 3877</span>     <span class="keywordtype">double</span> af[5];  <span class="comment">/* Parameters */</span></div>
-<div class="line"><a name="l03878"></a><span class="lineno"> 3878</span>     af[0] = y_0;   <span class="comment">/* centroid   */</span></div>
-<div class="line"><a name="l03879"></a><span class="lineno"> 3879</span>     af[1] = sigma; <span class="comment">/* stdev      */</span></div>
-<div class="line"><a name="l03880"></a><span class="lineno"> 3880</span>     af[2] = 1;     <span class="comment">/* norm       */</span></div>
-<div class="line"><a name="l03881"></a><span class="lineno"> 3881</span>     af[3] = 0;     <span class="comment">/* offset     */</span></div>
-<div class="line"><a name="l03882"></a><span class="lineno"> 3882</span>     af[4] = 0;     <span class="comment">/* non-linear sky */</span></div>
-<div class="line"><a name="l03883"></a><span class="lineno"> 3883</span> </div>
-<div class="line"><a name="l03884"></a><span class="lineno"> 3884</span>     xf[0] = yi;</div>
-<div class="line"><a name="l03885"></a><span class="lineno"> 3885</span> </div>
-<div class="line"><a name="l03886"></a><span class="lineno"> 3886</span>     <span class="keywordflow">if</span> (profile_params.dfda(xf, af, norm_prof_derivatives) != 0)</div>
-<div class="line"><a name="l03887"></a><span class="lineno"> 3887</span>         {</div>
-<div class="line"><a name="l03888"></a><span class="lineno"> 3888</span>             <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l03889"></a><span class="lineno"> 3889</span>         }</div>
-<div class="line"><a name="l03890"></a><span class="lineno"> 3890</span> </div>
-<div class="line"><a name="l03891"></a><span class="lineno"> 3891</span>     {</div>
-<div class="line"><a name="l03892"></a><span class="lineno"> 3892</span>         <span class="keywordtype">int</span> idx = xi + (mi - profile_params.minorder)*(profile_params.nx + 1);</div>
-<div class="line"><a name="l03893"></a><span class="lineno"> 3893</span> </div>
-<div class="line"><a name="l03894"></a><span class="lineno"> 3894</span>         <span class="comment">/* Need only these two */</span></div>
-<div class="line"><a name="l03895"></a><span class="lineno"> 3895</span>         <span class="keywordtype">double</span> norm_prof_dy0    = norm_prof_derivatives[0];</div>
-<div class="line"><a name="l03896"></a><span class="lineno"> 3896</span>         <span class="keywordtype">double</span> norm_prof_dsigma = norm_prof_derivatives[1];</div>
-<div class="line"><a name="l03897"></a><span class="lineno"> 3897</span>         <span class="keywordtype">int</span> i, j;</div>
-<div class="line"><a name="l03898"></a><span class="lineno"> 3898</span>         </div>
-<div class="line"><a name="l03899"></a><span class="lineno"> 3899</span>         <span class="comment">/* Compute all the derivatives </span></div>
-<div class="line"><a name="l03900"></a><span class="lineno"> 3900</span> <span class="comment">              flux(xk)*df/dy0 * x^i m^j</span></div>
-<div class="line"><a name="l03901"></a><span class="lineno"> 3901</span> <span class="comment"></span></div>
-<div class="line"><a name="l03902"></a><span class="lineno"> 3902</span> <span class="comment">           It is only the product (x^i m^j) that changes, so use</span></div>
-<div class="line"><a name="l03903"></a><span class="lineno"> 3903</span> <span class="comment">           recurrence to caluculate the coefficients, in</span></div>
-<div class="line"><a name="l03904"></a><span class="lineno"> 3904</span> <span class="comment">           this order (starting from (i,j) = (0,0))):</span></div>
-<div class="line"><a name="l03905"></a><span class="lineno"> 3905</span> <span class="comment"></span></div>
-<div class="line"><a name="l03906"></a><span class="lineno"> 3906</span> <span class="comment">              (0,0) -> (1,0) -> (2,0) -> ...</span></div>
-<div class="line"><a name="l03907"></a><span class="lineno"> 3907</span> <span class="comment">                V</span></div>
-<div class="line"><a name="l03908"></a><span class="lineno"> 3908</span> <span class="comment">              (0,1) -> (1,1) -> (2,1) -> ...</span></div>
-<div class="line"><a name="l03909"></a><span class="lineno"> 3909</span> <span class="comment">                V</span></div>
-<div class="line"><a name="l03910"></a><span class="lineno"> 3910</span> <span class="comment">              (0,2) -> (1,2) -> (2,2) -> ...</span></div>
-<div class="line"><a name="l03911"></a><span class="lineno"> 3911</span> <span class="comment">                V</span></div>
-<div class="line"><a name="l03912"></a><span class="lineno"> 3912</span> <span class="comment">                :</span></div>
-<div class="line"><a name="l03913"></a><span class="lineno"> 3913</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l03914"></a><span class="lineno"> 3914</span>         i = 0;</div>
-<div class="line"><a name="l03915"></a><span class="lineno"> 3915</span>         j = 0;</div>
-<div class="line"><a name="l03916"></a><span class="lineno"> 3916</span>         result[i + (profile_params.deg_y0_x + 1) * j] = profile_params.flux[idx] * norm_prof_dy0;</div>
-<div class="line"><a name="l03917"></a><span class="lineno"> 3917</span>         for (j = 0; j <= profile_params.deg_y0_m; j++) {</div>
-<div class="line"><a name="l03918"></a><span class="lineno"> 3918</span>             <span class="keywordflow">if</span> (j >= 1)</div>
-<div class="line"><a name="l03919"></a><span class="lineno"> 3919</span>                 {</div>
-<div class="line"><a name="l03920"></a><span class="lineno"> 3920</span>                     i = 0;</div>
-<div class="line"><a name="l03921"></a><span class="lineno"> 3921</span>                     result[i + (profile_params.deg_y0_x + 1) * j] = </div>
-<div class="line"><a name="l03922"></a><span class="lineno"> 3922</span>                     result[i + (profile_params.deg_y0_x + 1) * (j-1)] * mi;</div>
-<div class="line"><a name="l03923"></a><span class="lineno"> 3923</span>                 }</div>
-<div class="line"><a name="l03924"></a><span class="lineno"> 3924</span>             <span class="keywordflow">for</span> (i = 1; i <= profile_params.deg_y0_x; i++) {</div>
-<div class="line"><a name="l03925"></a><span class="lineno"> 3925</span>                 result[i   + (profile_params.deg_y0_x + 1) * j] = </div>
-<div class="line"><a name="l03926"></a><span class="lineno"> 3926</span>                 result[i-1 + (profile_params.deg_y0_x + 1) * j] * xi;</div>
-<div class="line"><a name="l03927"></a><span class="lineno"> 3927</span>             }</div>
-<div class="line"><a name="l03928"></a><span class="lineno"> 3928</span>         }</div>
-<div class="line"><a name="l03929"></a><span class="lineno"> 3929</span> </div>
-<div class="line"><a name="l03930"></a><span class="lineno"> 3930</span> </div>
-<div class="line"><a name="l03931"></a><span class="lineno"> 3931</span>         <span class="comment">/* Calculate the derivatives flux(xk)*df/dsigma * x^i m^j,</span></div>
-<div class="line"><a name="l03932"></a><span class="lineno"> 3932</span> <span class="comment">           like above (but substituting y0->sigma where relevant).</span></div>
-<div class="line"><a name="l03933"></a><span class="lineno"> 3933</span> <span class="comment">           Insert the derivatives in the result</span></div>
-<div class="line"><a name="l03934"></a><span class="lineno"> 3934</span> <span class="comment">           array starting after the derivatives related to y0,</span></div>
-<div class="line"><a name="l03935"></a><span class="lineno"> 3935</span> <span class="comment">           i.e. at index (deg_y0_x+1)(deg_y0_m+1).</span></div>
-<div class="line"><a name="l03936"></a><span class="lineno"> 3936</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l03937"></a><span class="lineno"> 3937</span> </div>
-<div class="line"><a name="l03938"></a><span class="lineno"> 3938</span>         result += (profile_params.deg_y0_x + 1) * (profile_params.deg_y0_m + 1); </div>
-<div class="line"><a name="l03939"></a><span class="lineno"> 3939</span>         <span class="comment">/* Pointer arithmetics which skips</span></div>
-<div class="line"><a name="l03940"></a><span class="lineno"> 3940</span> <span class="comment">           the first part of the array */</span></div>
-<div class="line"><a name="l03941"></a><span class="lineno"> 3941</span> </div>
-<div class="line"><a name="l03942"></a><span class="lineno"> 3942</span>         i = 0;</div>
-<div class="line"><a name="l03943"></a><span class="lineno"> 3943</span>         j = 0;</div>
-<div class="line"><a name="l03944"></a><span class="lineno"> 3944</span>         result[i + (profile_params.deg_sigma_x + 1) * j] = </div>
-<div class="line"><a name="l03945"></a><span class="lineno"> 3945</span>             profile_params.flux[idx] * norm_prof_dsigma;</div>
-<div class="line"><a name="l03946"></a><span class="lineno"> 3946</span>         for (j = 0; j <= profile_params.deg_sigma_m; j++) {</div>
-<div class="line"><a name="l03947"></a><span class="lineno"> 3947</span>             <span class="keywordflow">if</span> (j >= 1)</div>
-<div class="line"><a name="l03948"></a><span class="lineno"> 3948</span>                 {</div>
-<div class="line"><a name="l03949"></a><span class="lineno"> 3949</span>                     i = 0;</div>
-<div class="line"><a name="l03950"></a><span class="lineno"> 3950</span>                     result[i + (profile_params.deg_sigma_x + 1) * j] =</div>
-<div class="line"><a name="l03951"></a><span class="lineno"> 3951</span>                     result[i + (profile_params.deg_sigma_x + 1) * (j-1)] * mi;</div>
-<div class="line"><a name="l03952"></a><span class="lineno"> 3952</span>                 }</div>
-<div class="line"><a name="l03953"></a><span class="lineno"> 3953</span>             <span class="keywordflow">for</span> (i = 1; i <= profile_params.deg_sigma_x; i++) {</div>
-<div class="line"><a name="l03954"></a><span class="lineno"> 3954</span>                 result[i   + (profile_params.deg_sigma_x + 1) * j] = </div>
-<div class="line"><a name="l03955"></a><span class="lineno"> 3955</span>                 result[i-1 + (profile_params.deg_sigma_x + 1) * j] * xi;</div>
-<div class="line"><a name="l03956"></a><span class="lineno"> 3956</span>             }</div>
-<div class="line"><a name="l03957"></a><span class="lineno"> 3957</span>         }</div>
-<div class="line"><a name="l03958"></a><span class="lineno"> 3958</span>     }</div>
-<div class="line"><a name="l03959"></a><span class="lineno"> 3959</span> </div>
-<div class="line"><a name="l03960"></a><span class="lineno"> 3960</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l03961"></a><span class="lineno"> 3961</span> }</div>
-<div class="line"><a name="l03962"></a><span class="lineno"> 3962</span> <span class="preprocessor">#endif </span><span class="comment">/* NEW_METHOD */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l03963"></a><span class="lineno"> 3963</span> <span class="preprocessor"></span><span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03983"></a><span class="lineno"> 3983</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03984"></a><span class="lineno"> 3984</span> <span class="keyword">static</span> cpl_table *</div>
-<div class="line"><a name="l03985"></a><span class="lineno"><a class="code" href="group__uves__extract.html#gad07884e88093f0e0ee15519a30eb8d3f"> 3985</a></span> <a class="code" href="group__uves__extract.html#gad07884e88093f0e0ee15519a30eb8d3f" title="Measure spatial profile (analytical)">opt_measure_profile_order</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l03986"></a><span class="lineno"> 3986</span>                           <span class="keyword">const</span> cpl_binary *image_bpm,</div>
-<div class="line"><a name="l03987"></a><span class="lineno"> 3987</span>                           uves_iterate_position *pos,</div>
-<div class="line"><a name="l03988"></a><span class="lineno"> 3988</span>                           <span class="keywordtype">int</span> chunk,</div>
-<div class="line"><a name="l03989"></a><span class="lineno"> 3989</span>                           <span class="keywordtype">int</span> (*f)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l03990"></a><span class="lineno"> 3990</span>                           <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l03991"></a><span class="lineno"> 3991</span>                           <span class="keywordtype">int</span> M,</div>
-<div class="line"><a name="l03992"></a><span class="lineno"> 3992</span>                           <span class="keyword">const</span> cpl_image *sky_spectrum)</div>
-<div class="line"><a name="l03993"></a><span class="lineno"> 3993</span> {</div>
-<div class="line"><a name="l03994"></a><span class="lineno"> 3994</span>     cpl_table *profile_data = NULL; <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l03995"></a><span class="lineno"> 3995</span>     <span class="keywordtype">int</span> profile_row;</div>
-<div class="line"><a name="l03996"></a><span class="lineno"> 3996</span>     cpl_matrix *covariance  = NULL;</div>
-<div class="line"><a name="l03997"></a><span class="lineno"> 3997</span> </div>
-<div class="line"><a name="l03998"></a><span class="lineno"> 3998</span> <span class="preprocessor">#if NEW_METHOD</span></div>
-<div class="line"><a name="l03999"></a><span class="lineno"> 3999</span> <span class="preprocessor"></span>    cpl_matrix *eval_points = NULL;</div>
-<div class="line"><a name="l04000"></a><span class="lineno"> 4000</span>     cpl_vector *eval_data   = NULL;</div>
-<div class="line"><a name="l04001"></a><span class="lineno"> 4001</span>     cpl_vector *eval_err    = NULL;</div>
-<div class="line"><a name="l04002"></a><span class="lineno"> 4002</span>     cpl_vector *coeffs      = NULL;</div>
-<div class="line"><a name="l04003"></a><span class="lineno"> 4003</span> <span class="preprocessor">#if CREATE_DEBUGGING_TABLE</span></div>
-<div class="line"><a name="l04004"></a><span class="lineno"> 4004</span> <span class="preprocessor"></span>    cpl_table *temp = NULL;</div>
-<div class="line"><a name="l04005"></a><span class="lineno"> 4005</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04006"></a><span class="lineno"> 4006</span> <span class="preprocessor"></span>    <span class="keywordtype">double</span> *fluxes = NULL;</div>
-<div class="line"><a name="l04007"></a><span class="lineno"> 4007</span>     <span class="keywordtype">double</span> *skys   = NULL;</div>
-<div class="line"><a name="l04008"></a><span class="lineno"> 4008</span>     <span class="keywordtype">int</span> *ia = NULL;</div>
-<div class="line"><a name="l04009"></a><span class="lineno"> 4009</span>     <span class="comment">/* For initial estimates of y0,sigma: */</span></div>
-<div class="line"><a name="l04010"></a><span class="lineno"> 4010</span>     cpl_table *estimate = NULL; </div>
-<div class="line"><a name="l04011"></a><span class="lineno"> 4011</span>     cpl_table *estimate_dup = NULL; </div>
-<div class="line"><a name="l04012"></a><span class="lineno"> 4012</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *y0_estim_pol    = NULL;</div>
-<div class="line"><a name="l04013"></a><span class="lineno"> 4013</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *sigma_estim_pol = NULL;</div>
-<div class="line"><a name="l04014"></a><span class="lineno"> 4014</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04015"></a><span class="lineno"> 4015</span> <span class="preprocessor"></span>    </div>
-<div class="line"><a name="l04016"></a><span class="lineno"> 4016</span> </div>
-<div class="line"><a name="l04017"></a><span class="lineno"> 4017</span>     cpl_vector *dy = NULL;         <span class="comment">/* spatial position */</span></div>
-<div class="line"><a name="l04018"></a><span class="lineno"> 4018</span>     cpl_vector *prof = NULL;       <span class="comment">/* normalized profile */</span></div>
-<div class="line"><a name="l04019"></a><span class="lineno"> 4019</span>     cpl_vector *prof2= NULL;       <span class="comment">/* kill me */</span></div>
-<div class="line"><a name="l04020"></a><span class="lineno"> 4020</span>     cpl_vector *dprof = NULL;      <span class="comment">/* uncertainty of 'prof' */</span></div>
-<div class="line"><a name="l04021"></a><span class="lineno"> 4021</span>     cpl_vector **data = NULL;      <span class="comment">/* array of vectors */</span></div>
-<div class="line"><a name="l04022"></a><span class="lineno"> 4022</span>     <span class="keywordtype">int</span> *size = NULL;              <span class="comment">/* array of vector sizes */</span></div>
-<div class="line"><a name="l04023"></a><span class="lineno"> 4023</span>     <span class="keywordtype">double</span> *hicut = NULL;          <span class="comment">/* array of vector sizes */</span></div>
-<div class="line"><a name="l04024"></a><span class="lineno"> 4024</span>     <span class="keywordtype">double</span> *locut = NULL;          <span class="comment">/* array of vector sizes */</span></div>
-<div class="line"><a name="l04025"></a><span class="lineno"> 4025</span>     <span class="keywordtype">int</span> nbins = 0;</div>
-<div class="line"><a name="l04026"></a><span class="lineno"> 4026</span> </div>
-<div class="line"><a name="l04027"></a><span class="lineno"> 4027</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *image_data;</div>
-<div class="line"><a name="l04028"></a><span class="lineno"> 4028</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data;</div>
-<div class="line"><a name="l04029"></a><span class="lineno"> 4029</span> </div>
-<div class="line"><a name="l04030"></a><span class="lineno"> 4030</span>     <span class="keywordtype">int</span> x;</div>
-<div class="line"><a name="l04031"></a><span class="lineno"> 4031</span>     </div>
-<div class="line"><a name="l04032"></a><span class="lineno"> 4032</span> <span class="preprocessor">#if NEW_METHOD</span></div>
-<div class="line"><a name="l04033"></a><span class="lineno"> 4033</span> <span class="preprocessor"></span>    <span class="keywordtype">int</span> norders = pos->maxorder-pos->minorder+1;</div>
-<div class="line"><a name="l04034"></a><span class="lineno"> 4034</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l04035"></a><span class="lineno"> 4035</span> <span class="preprocessor"></span>    <span class="comment">/* eliminate warning */</span></div>
-<div class="line"><a name="l04036"></a><span class="lineno"> 4036</span>      sky_spectrum = sky_spectrum;</div>
-<div class="line"><a name="l04037"></a><span class="lineno"> 4037</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04038"></a><span class="lineno"> 4038</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l04039"></a><span class="lineno"> 4039</span>      <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( f != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l04040"></a><span class="lineno"> 4040</span> </div>
-<div class="line"><a name="l04041"></a><span class="lineno"> 4041</span>     image_data = cpl_image_get_data_double_const(image);</div>
-<div class="line"><a name="l04042"></a><span class="lineno"> 4042</span>     noise_data = cpl_image_get_data_double_const(image_noise);</div>
-<div class="line"><a name="l04043"></a><span class="lineno"> 4043</span> </div>
-<div class="line"><a name="l04044"></a><span class="lineno"> 4044</span> <span class="preprocessor">#if NEW_METHOD</span></div>
-<div class="line"><a name="l04045"></a><span class="lineno"> 4045</span> <span class="preprocessor"></span>    profile_data = cpl_table_new((nx/chunk + 3) * norders);</div>
-<div class="line"><a name="l04046"></a><span class="lineno"> 4046</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l04047"></a><span class="lineno"> 4047</span> <span class="preprocessor"></span>    profile_data = cpl_table_new(pos->nx);</div>
-<div class="line"><a name="l04048"></a><span class="lineno"> 4048</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04049"></a><span class="lineno"> 4049</span> <span class="preprocessor"></span>    <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( profile_data );</div>
-<div class="line"><a name="l04050"></a><span class="lineno"> 4050</span>     </div>
-<div class="line"><a name="l04051"></a><span class="lineno"> 4051</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( (cpl_table_new_column(profile_data, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT),</div>
-<div class="line"><a name="l04052"></a><span class="lineno"> 4052</span>             cpl_table_new_column(profile_data, <span class="stringliteral">"X"</span>, CPL_TYPE_INT),</div>
-<div class="line"><a name="l04053"></a><span class="lineno"> 4053</span>             cpl_table_new_column(profile_data, <span class="stringliteral">"Y0"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l04054"></a><span class="lineno"> 4054</span>             cpl_table_new_column(profile_data, <span class="stringliteral">"Sigma"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l04055"></a><span class="lineno"> 4055</span>             cpl_table_new_column(profile_data, <span class="stringliteral">"Norm"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l04056"></a><span class="lineno"> 4056</span>             cpl_table_new_column(profile_data, <span class="stringliteral">"dY0"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l04057"></a><span class="lineno"> 4057</span>             cpl_table_new_column(profile_data, <span class="stringliteral">"dSigma"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l04058"></a><span class="lineno"> 4058</span>             cpl_table_new_column(profile_data, <span class="stringliteral">"dNorm"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l04059"></a><span class="lineno"> 4059</span>             cpl_table_new_column(profile_data, <span class="stringliteral">"Y0_world"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l04060"></a><span class="lineno"> 4060</span>             cpl_table_new_column(profile_data, <span class="stringliteral">"Y0fit_world"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l04061"></a><span class="lineno"> 4061</span>             cpl_table_new_column(profile_data, <span class="stringliteral">"Reduced_chisq"</span>, CPL_TYPE_DOUBLE)),</div>
-<div class="line"><a name="l04062"></a><span class="lineno"> 4062</span>            <span class="stringliteral">"Error initializing order trace table for order #%d"</span>, pos->order);</div>
-<div class="line"><a name="l04063"></a><span class="lineno"> 4063</span>     </div>
-<div class="line"><a name="l04064"></a><span class="lineno"> 4064</span>     <span class="comment">/* For msg-output purposes, only */</span></div>
-<div class="line"><a name="l04065"></a><span class="lineno"> 4065</span>     cpl_table_set_column_unit(profile_data, <span class="stringliteral">"X"</span> ,     <span class="stringliteral">"pixels"</span>);</div>
-<div class="line"><a name="l04066"></a><span class="lineno"> 4066</span>     cpl_table_set_column_unit(profile_data, <span class="stringliteral">"Y0"</span>,     <span class="stringliteral">"pixels"</span>);</div>
-<div class="line"><a name="l04067"></a><span class="lineno"> 4067</span>     cpl_table_set_column_unit(profile_data, <span class="stringliteral">"Sigma"</span>,  <span class="stringliteral">"pixels"</span>);</div>
-<div class="line"><a name="l04068"></a><span class="lineno"> 4068</span>     cpl_table_set_column_unit(profile_data, <span class="stringliteral">"dY0"</span>,    <span class="stringliteral">"pixels"</span>);</div>
-<div class="line"><a name="l04069"></a><span class="lineno"> 4069</span>     cpl_table_set_column_unit(profile_data, <span class="stringliteral">"dSigma"</span>, <span class="stringliteral">"pixels"</span>);</div>
-<div class="line"><a name="l04070"></a><span class="lineno"> 4070</span> </div>
-<div class="line"><a name="l04071"></a><span class="lineno"> 4071</span>     profile_row = 0;</div>
-<div class="line"><a name="l04072"></a><span class="lineno"> 4072</span> </div>
-<div class="line"><a name="l04073"></a><span class="lineno"> 4073</span>     UVES_TIME_START(<span class="stringliteral">"Measure loop"</span>);</div>
-<div class="line"><a name="l04074"></a><span class="lineno"> 4074</span> </div>
-<div class="line"><a name="l04075"></a><span class="lineno"> 4075</span>     nbins = uves_round_double(pos->sg.length + 5); <span class="comment">/* more than enough */</span></div>
-<div class="line"><a name="l04076"></a><span class="lineno"> 4076</span>     data  = cpl_calloc(nbins, <span class="keyword">sizeof</span>(cpl_vector *));</div>
-<div class="line"><a name="l04077"></a><span class="lineno"> 4077</span>     size  = cpl_calloc(nbins, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l04078"></a><span class="lineno"> 4078</span>     locut = cpl_calloc(nbins, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l04079"></a><span class="lineno"> 4079</span>     hicut = cpl_calloc(nbins, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l04080"></a><span class="lineno"> 4080</span>     {</div>
-<div class="line"><a name="l04081"></a><span class="lineno"> 4081</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l04082"></a><span class="lineno"> 4082</span>         <span class="keywordflow">for</span> (i = 0; i < nbins; i++)</div>
-<div class="line"><a name="l04083"></a><span class="lineno"> 4083</span>             {</div>
-<div class="line"><a name="l04084"></a><span class="lineno"> 4084</span>                 data[i] = cpl_vector_new(1);</div>
-<div class="line"><a name="l04085"></a><span class="lineno"> 4085</span>             }</div>
-<div class="line"><a name="l04086"></a><span class="lineno"> 4086</span>     }</div>
-<div class="line"><a name="l04087"></a><span class="lineno"> 4087</span> </div>
-<div class="line"><a name="l04088"></a><span class="lineno"> 4088</span> </div>
-<div class="line"><a name="l04089"></a><span class="lineno"> 4089</span> <span class="preprocessor">#if NEW_METHOD</span></div>
-<div class="line"><a name="l04090"></a><span class="lineno"> 4090</span> <span class="preprocessor"></span>    <span class="comment">/* new method:</span></div>
-<div class="line"><a name="l04091"></a><span class="lineno"> 4091</span> <span class="comment"></span></div>
-<div class="line"><a name="l04092"></a><span class="lineno"> 4092</span> <span class="comment">       for each order       </span></div>
-<div class="line"><a name="l04093"></a><span class="lineno"> 4093</span> <span class="comment">         for each chunk</span></div>
-<div class="line"><a name="l04094"></a><span class="lineno"> 4094</span> <span class="comment">           bin data in spatial bins parallel to order trace</span></div>
-<div class="line"><a name="l04095"></a><span class="lineno"> 4095</span> <span class="comment">           define hicut/locut for each bin</span></div>
-<div class="line"><a name="l04096"></a><span class="lineno"> 4096</span> <span class="comment">           get the data points within locut/hicut</span></div>
-<div class="line"><a name="l04097"></a><span class="lineno"> 4097</span> <span class="comment"></span></div>
-<div class="line"><a name="l04098"></a><span class="lineno"> 4098</span> <span class="comment">       fit model to all orders</span></div>
-<div class="line"><a name="l04099"></a><span class="lineno"> 4099</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l04100"></a><span class="lineno"> 4100</span>     {</div>
-<div class="line"><a name="l04101"></a><span class="lineno"> 4101</span>         <span class="comment">/* 4 degrees are needed for the model</span></div>
-<div class="line"><a name="l04102"></a><span class="lineno"> 4102</span> <span class="comment">          y0 = pol(x, m) </span></div>
-<div class="line"><a name="l04103"></a><span class="lineno"> 4103</span> <span class="comment">          sigma = pol(x, m) </span></div>
-<div class="line"><a name="l04104"></a><span class="lineno"> 4104</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l04105"></a><span class="lineno"> 4105</span>         <span class="keywordtype">int</span> deg_y0_x = 0;</div>
-<div class="line"><a name="l04106"></a><span class="lineno"> 4106</span>         <span class="keywordtype">int</span> deg_y0_m = 0;</div>
-<div class="line"><a name="l04107"></a><span class="lineno"> 4107</span>         <span class="keywordtype">int</span> deg_sigma_x = 0;</div>
-<div class="line"><a name="l04108"></a><span class="lineno"> 4108</span>         <span class="keywordtype">int</span> deg_sigma_m = 0;</div>
-<div class="line"><a name="l04109"></a><span class="lineno"> 4109</span> </div>
-<div class="line"><a name="l04110"></a><span class="lineno"> 4110</span>         <span class="keywordtype">int</span> ncoeffs = </div>
-<div class="line"><a name="l04111"></a><span class="lineno"> 4111</span>             (deg_y0_x   +1)*(deg_y0_m   +1) +</div>
-<div class="line"><a name="l04112"></a><span class="lineno"> 4112</span>             (deg_sigma_x+1)*(deg_sigma_m+1);</div>
-<div class="line"><a name="l04113"></a><span class="lineno"> 4113</span> </div>
-<div class="line"><a name="l04114"></a><span class="lineno"> 4114</span>         <span class="keywordtype">double</span> red_chisq;</div>
-<div class="line"><a name="l04115"></a><span class="lineno"> 4115</span>         <span class="keywordtype">int</span> n = 0;        <span class="comment">/* Number of points (matrix rows) */</span></div>
-<div class="line"><a name="l04116"></a><span class="lineno"> 4116</span>         <span class="keywordtype">int</span> nbad = 0;     <span class="comment">/* Number of hot/cold pixels (full chip) */</span></div>
-<div class="line"><a name="l04117"></a><span class="lineno"> 4117</span> </div>
-<div class="line"><a name="l04118"></a><span class="lineno"> 4118</span> <span class="preprocessor">#if CREATE_DEBUGGING_TABLE</span></div>
-<div class="line"><a name="l04119"></a><span class="lineno"> 4119</span> <span class="preprocessor"></span>        temp = cpl_table_new(norders*nx*uves_round_double(pos->sg.length+3));</div>
-<div class="line"><a name="l04120"></a><span class="lineno"> 4120</span>         cpl_table_new_column(temp, <span class="stringliteral">"x"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l04121"></a><span class="lineno"> 4121</span>         cpl_table_new_column(temp, <span class="stringliteral">"y"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l04122"></a><span class="lineno"> 4122</span>         cpl_table_new_column(temp, <span class="stringliteral">"order"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l04123"></a><span class="lineno"> 4123</span>         cpl_table_new_column(temp, <span class="stringliteral">"dat"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l04124"></a><span class="lineno"> 4124</span>         cpl_table_new_column(temp, <span class="stringliteral">"err"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l04125"></a><span class="lineno"> 4125</span> </div>
-<div class="line"><a name="l04126"></a><span class="lineno"> 4126</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04127"></a><span class="lineno"> 4127</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l04128"></a><span class="lineno"> 4128</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l04129"></a><span class="lineno"> 4129</span> <span class="comment">        uves_msg_error("Saving 'sky_subtracted.fits'");</span></div>
-<div class="line"><a name="l04130"></a><span class="lineno"> 4130</span> <span class="comment">        cpl_image_save(image, "sky_subtracted.fits", CPL_BPP_IEEE_FLOAT, NULL,</span></div>
-<div class="line"><a name="l04131"></a><span class="lineno"> 4131</span> <span class="comment">                       CPL_IO_DEFAULT);</span></div>
-<div class="line"><a name="l04132"></a><span class="lineno"> 4132</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l04133"></a><span class="lineno"> 4133</span> </div>
-<div class="line"><a name="l04134"></a><span class="lineno"> 4134</span> </div>
-<div class="line"><a name="l04135"></a><span class="lineno"> 4135</span> </div>
-<div class="line"><a name="l04136"></a><span class="lineno"> 4136</span> </div>
-<div class="line"><a name="l04137"></a><span class="lineno"> 4137</span> </div>
-<div class="line"><a name="l04138"></a><span class="lineno"> 4138</span> </div>
-<div class="line"><a name="l04139"></a><span class="lineno"> 4139</span> </div>
-<div class="line"><a name="l04140"></a><span class="lineno"> 4140</span>         <span class="comment">/* Allocate max. number of storage needed (and resize/shorten later when we</span></div>
-<div class="line"><a name="l04141"></a><span class="lineno"> 4141</span> <span class="comment">           know how much was needed). </span></div>
-<div class="line"><a name="l04142"></a><span class="lineno"> 4142</span> <span class="comment"></span></div>
-<div class="line"><a name="l04143"></a><span class="lineno"> 4143</span> <span class="comment">           One might get the idea to allocate storage for (nx*ny) points, but this</span></div>
-<div class="line"><a name="l04144"></a><span class="lineno"> 4144</span> <span class="comment">           is only a maximum if the orders are non-overlapping (which cannot a priori</span></div>
-<div class="line"><a name="l04145"></a><span class="lineno"> 4145</span> <span class="comment">           be assumed)</span></div>
-<div class="line"><a name="l04146"></a><span class="lineno"> 4146</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l04147"></a><span class="lineno"> 4147</span>         eval_points = cpl_matrix_new(norders*nx*uves_round_double(pos->sg.length+3), 3);</div>
-<div class="line"><a name="l04148"></a><span class="lineno"> 4148</span>         eval_data   = cpl_vector_new(norders*nx*uves_round_double(pos->sg.length+3));</div>
-<div class="line"><a name="l04149"></a><span class="lineno"> 4149</span>         eval_err    = cpl_vector_new(norders*nx*uves_round_double(pos->sg.length+3));</div>
-<div class="line"><a name="l04150"></a><span class="lineno"> 4150</span>         </div>
-<div class="line"><a name="l04151"></a><span class="lineno"> 4151</span>         fluxes = cpl_calloc((nx+1)*norders, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l04152"></a><span class="lineno"> 4152</span>         skys   = cpl_calloc((nx+1)*norders, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l04153"></a><span class="lineno"> 4153</span>         <span class="comment">/* orders (m) are index'ed starting from 0,</span></div>
-<div class="line"><a name="l04154"></a><span class="lineno"> 4154</span> <span class="comment">           columns (x) are index'ed starting from 1 (zero'th index is not used) */</span></div>
-<div class="line"><a name="l04155"></a><span class="lineno"> 4155</span> </div>
-<div class="line"><a name="l04156"></a><span class="lineno"> 4156</span>         estimate = cpl_table_new(norders);</div>
-<div class="line"><a name="l04157"></a><span class="lineno"> 4157</span>         cpl_table_new_column(estimate, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l04158"></a><span class="lineno"> 4158</span>         cpl_table_new_column(estimate, <span class="stringliteral">"Y0"</span>   , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l04159"></a><span class="lineno"> 4159</span>         cpl_table_new_column(estimate, <span class="stringliteral">"Sigma"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l04160"></a><span class="lineno"> 4160</span> </div>
-<div class="line"><a name="l04161"></a><span class="lineno"> 4161</span>         coeffs = cpl_vector_new(ncoeffs);  <span class="comment">/* Polynomial coefficients */</span></div>
-<div class="line"><a name="l04162"></a><span class="lineno"> 4162</span>         ia = cpl_calloc(ncoeffs, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l04163"></a><span class="lineno"> 4163</span>         {</div>
-<div class="line"><a name="l04164"></a><span class="lineno"> 4164</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l04165"></a><span class="lineno"> 4165</span>             <span class="keywordflow">for</span> (i = 0; i < ncoeffs; i++)</div>
-<div class="line"><a name="l04166"></a><span class="lineno"> 4166</span>                 {</div>
-<div class="line"><a name="l04167"></a><span class="lineno"> 4167</span>                     cpl_vector_set(coeffs, i, 0); <span class="comment">/* First guess */</span></div>
-<div class="line"><a name="l04168"></a><span class="lineno"> 4168</span>                     </div>
-<div class="line"><a name="l04169"></a><span class="lineno"> 4169</span>                     ia[i] = 1;  <span class="comment">/* Yes, fit this parameter */</span></div>
-<div class="line"><a name="l04170"></a><span class="lineno"> 4170</span>                 }</div>
-<div class="line"><a name="l04171"></a><span class="lineno"> 4171</span>         }</div>
-<div class="line"><a name="l04172"></a><span class="lineno"> 4172</span> </div>
-<div class="line"><a name="l04173"></a><span class="lineno"> 4173</span> <span class="comment">//        for (order = minorder; order <= maxorder; order++) {</span></div>
-<div class="line"><a name="l04174"></a><span class="lineno"> 4174</span>         <span class="keywordflow">for</span> (order = 17; order <= 17; order++) {</div>
-<div class="line"><a name="l04175"></a><span class="lineno"> 4175</span>             <span class="comment">/* For estimates of y0, sigma for</span></div>
-<div class="line"><a name="l04176"></a><span class="lineno"> 4176</span> <span class="comment">               this order (pixel data values are</span></div>
-<div class="line"><a name="l04177"></a><span class="lineno"> 4177</span> <span class="comment">               used as weights)</span></div>
-<div class="line"><a name="l04178"></a><span class="lineno"> 4178</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l04179"></a><span class="lineno"> 4179</span>             <span class="keywordtype">double</span> sumw   = 0;  <span class="comment">/* sum data     */</span></div>
-<div class="line"><a name="l04180"></a><span class="lineno"> 4180</span>             <span class="keywordtype">double</span> sumwy  = 0;  <span class="comment">/* sum data*y   */</span></div>
-<div class="line"><a name="l04181"></a><span class="lineno"> 4181</span>             <span class="keywordtype">double</span> sumwyy = 0;  <span class="comment">/* sum data*y*y */</span></div>
-<div class="line"><a name="l04182"></a><span class="lineno"> 4182</span>             </div>
-<div class="line"><a name="l04183"></a><span class="lineno"> 4183</span>             <span class="keywordflow">for</span> (x = chunk/2; x <= nx - chunk/2; x += chunk) {</div>
-<div class="line"><a name="l04184"></a><span class="lineno"> 4184</span> <span class="comment">//      for (x = 900; x <= 1100; x += chunk)</span></div>
-<div class="line"><a name="l04185"></a><span class="lineno"> 4185</span>                 <span class="comment">/* Find cosmic rays */</span></div>
-<div class="line"><a name="l04186"></a><span class="lineno"> 4186</span>                 <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l04187"></a><span class="lineno"> 4187</span>                 <span class="keywordflow">for</span> (i = 0; i < nbins; i++)</div>
-<div class="line"><a name="l04188"></a><span class="lineno"> 4188</span>                     {</div>
-<div class="line"><a name="l04189"></a><span class="lineno"> 4189</span>                         <span class="comment">/* Each wavel.bin contributes with one data point</span></div>
-<div class="line"><a name="l04190"></a><span class="lineno"> 4190</span> <span class="comment">                           to each spatial bin. Therefore each spatial</span></div>
-<div class="line"><a name="l04191"></a><span class="lineno"> 4191</span> <span class="comment">                           bin must be able to hold (chunk+1) points. But</span></div>
-<div class="line"><a name="l04192"></a><span class="lineno"> 4192</span> <span class="comment">                           to be *completely* safe against weird rounding</span></div>
-<div class="line"><a name="l04193"></a><span class="lineno"> 4193</span> <span class="comment">                           (depending on the architecture), make the vectors</span></div>
-<div class="line"><a name="l04194"></a><span class="lineno"> 4194</span> <span class="comment">                           a bit longer. */</span></div>
-<div class="line"><a name="l04195"></a><span class="lineno"> 4195</span>                         cpl_vector_set_size(data[i], 2*(chunk + 1));</div>
-<div class="line"><a name="l04196"></a><span class="lineno"> 4196</span>                         size[i] = 0;</div>
-<div class="line"><a name="l04197"></a><span class="lineno"> 4197</span>                     }</div>
-<div class="line"><a name="l04198"></a><span class="lineno"> 4198</span>                 </div>
-<div class="line"><a name="l04199"></a><span class="lineno"> 4199</span>                 <span class="comment">/* Bin data in this chunk */</span></div>
-<div class="line"><a name="l04200"></a><span class="lineno"> 4200</span>                 <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l04201"></a><span class="lineno"> 4201</span>                                             x - chunk/2 + 1, x + chunk/2,</div>
-<div class="line"><a name="l04202"></a><span class="lineno"> 4202</span>                                             order, order,</div>
-<div class="line"><a name="l04203"></a><span class="lineno"> 4203</span>                                             image_bpm, <span class="keyword">true</span>);</div>
-<div class="line"><a name="l04204"></a><span class="lineno"> 4204</span>                      !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line"><a name="l04205"></a><span class="lineno"> 4205</span>                      <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line"><a name="l04206"></a><span class="lineno"> 4206</span>                     {</div>
-<div class="line"><a name="l04207"></a><span class="lineno"> 4207</span>                         <span class="keywordtype">int</span> bin = pos->y - pos->ylow;</div>
-<div class="line"><a name="l04208"></a><span class="lineno"> 4208</span>                         </div>
-<div class="line"><a name="l04209"></a><span class="lineno"> 4209</span>                         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_vector_set(data[bin], size[bin], </div>
-<div class="line"><a name="l04210"></a><span class="lineno"> 4210</span>                                                    DATA(image_data, pos)));</div>
-<div class="line"><a name="l04211"></a><span class="lineno"> 4211</span>                         size[bin]++;</div>
-<div class="line"><a name="l04212"></a><span class="lineno"> 4212</span>                     }</div>
-<div class="line"><a name="l04213"></a><span class="lineno"> 4213</span>                 </div>
-<div class="line"><a name="l04214"></a><span class="lineno"> 4214</span>                 <span class="comment">/* Get threshold values for each spatial bin in this chunk */</span></div>
-<div class="line"><a name="l04215"></a><span class="lineno"> 4215</span>                 <span class="keywordflow">for</span> (i = 0; i < nbins; i++)</div>
-<div class="line"><a name="l04216"></a><span class="lineno"> 4216</span>                     {</div>
-<div class="line"><a name="l04217"></a><span class="lineno"> 4217</span>                         <span class="keywordflow">if</span> (size[i] == 0)</div>
-<div class="line"><a name="l04218"></a><span class="lineno"> 4218</span>                             {</div>
-<div class="line"><a name="l04219"></a><span class="lineno"> 4219</span>                                 <span class="comment">/* locut[i] hicut[i] are not used */</span></div>
-<div class="line"><a name="l04220"></a><span class="lineno"> 4220</span>                             }</div>
-<div class="line"><a name="l04221"></a><span class="lineno"> 4221</span>                         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (size[i] <= chunk/2)</div>
-<div class="line"><a name="l04222"></a><span class="lineno"> 4222</span>                             {</div>
-<div class="line"><a name="l04223"></a><span class="lineno"> 4223</span>                                 <span class="comment">/* Not enough statistics to verify that the</span></div>
-<div class="line"><a name="l04224"></a><span class="lineno"> 4224</span> <span class="comment">                                   points are not outliers. Mark them as bad.*/</span></div>
-<div class="line"><a name="l04225"></a><span class="lineno"> 4225</span>                                 locut[i] = cpl_vector_get_max(data[i]) + 1;</div>
-<div class="line"><a name="l04226"></a><span class="lineno"> 4226</span>                                 hicut[i] = cpl_vector_get_min(data[i]) - 1;</div>
-<div class="line"><a name="l04227"></a><span class="lineno"> 4227</span>                             }</div>
-<div class="line"><a name="l04228"></a><span class="lineno"> 4228</span>                         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04229"></a><span class="lineno"> 4229</span>                             {</div>
-<div class="line"><a name="l04230"></a><span class="lineno"> 4230</span>                                 <span class="comment">/* Iteratively do kappa-sigma clipping to</span></div>
-<div class="line"><a name="l04231"></a><span class="lineno"> 4231</span> <span class="comment">                                   find the threshold for the current bin */</span></div>
-<div class="line"><a name="l04232"></a><span class="lineno"> 4232</span>                                 <span class="keywordtype">double</span> median, stdev;</div>
-<div class="line"><a name="l04233"></a><span class="lineno"> 4233</span>                                 <span class="keywordtype">double</span> kappa = 3.0;</div>
-<div class="line"><a name="l04234"></a><span class="lineno"> 4234</span>                                 <span class="keywordtype">double</span> *data_data;</div>
-<div class="line"><a name="l04235"></a><span class="lineno"> 4235</span>                                 <span class="keywordtype">int</span> k;</div>
-<div class="line"><a name="l04236"></a><span class="lineno"> 4236</span>                                 </div>
-<div class="line"><a name="l04237"></a><span class="lineno"> 4237</span>                                 k = size[i];</div>
-<div class="line"><a name="l04238"></a><span class="lineno"> 4238</span>                             </div>
-<div class="line"><a name="l04239"></a><span class="lineno"> 4239</span>                                 <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l04240"></a><span class="lineno"> 4240</span>                                     cpl_vector_set_size(data[i], k);</div>
-<div class="line"><a name="l04241"></a><span class="lineno"> 4241</span>                                     size[i] = k;</div>
-<div class="line"><a name="l04242"></a><span class="lineno"> 4242</span>                                     data_data = cpl_vector_get_data(data[i]);</div>
-<div class="line"><a name="l04243"></a><span class="lineno"> 4243</span>                                     </div>
-<div class="line"><a name="l04244"></a><span class="lineno"> 4244</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l04245"></a><span class="lineno"> 4245</span> <span class="preprocessor"></span>                                    median = cpl_vector_get_median_const(data[i]);</div>
-<div class="line"><a name="l04246"></a><span class="lineno"> 4246</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l04247"></a><span class="lineno"> 4247</span> <span class="preprocessor"></span>                                    median = cpl_vector_get_median(data[i]);</div>
-<div class="line"><a name="l04248"></a><span class="lineno"> 4248</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04249"></a><span class="lineno"> 4249</span> <span class="preprocessor"></span>                                    stdev = cpl_vector_get_stdev(data[i]);</div>
-<div class="line"><a name="l04250"></a><span class="lineno"> 4250</span>                                     locut[i] = median - kappa*stdev;</div>
-<div class="line"><a name="l04251"></a><span class="lineno"> 4251</span>                                     hicut[i] = median + kappa*stdev;</div>
-<div class="line"><a name="l04252"></a><span class="lineno"> 4252</span>                                     </div>
-<div class="line"><a name="l04253"></a><span class="lineno"> 4253</span>                                     <span class="comment">/* Copy good points to beginning of vector */</span></div>
-<div class="line"><a name="l04254"></a><span class="lineno"> 4254</span>                                     k = 0;</div>
-<div class="line"><a name="l04255"></a><span class="lineno"> 4255</span>                                     {</div>
-<div class="line"><a name="l04256"></a><span class="lineno"> 4256</span>                                         <span class="keywordtype">int</span> j;</div>
-<div class="line"><a name="l04257"></a><span class="lineno"> 4257</span>                                         <span class="keywordflow">for</span> (j = 0; j < size[i]; j++)</div>
-<div class="line"><a name="l04258"></a><span class="lineno"> 4258</span>                                             {</div>
-<div class="line"><a name="l04259"></a><span class="lineno"> 4259</span>                                                 <span class="keywordflow">if</span> (locut[i] <= data_data[j] &&</div>
-<div class="line"><a name="l04260"></a><span class="lineno"> 4260</span>                                                     data_data[j] <= hicut[i])</div>
-<div class="line"><a name="l04261"></a><span class="lineno"> 4261</span>                                                     {</div>
-<div class="line"><a name="l04262"></a><span class="lineno"> 4262</span>                                                         data_data[k] = data_data[j];</div>
-<div class="line"><a name="l04263"></a><span class="lineno"> 4263</span>                                                         k++;</div>
-<div class="line"><a name="l04264"></a><span class="lineno"> 4264</span>                                                     }</div>
-<div class="line"><a name="l04265"></a><span class="lineno"> 4265</span>                                             }</div>
-<div class="line"><a name="l04266"></a><span class="lineno"> 4266</span>                                     }</div>
-<div class="line"><a name="l04267"></a><span class="lineno"> 4267</span>                                 }</div>
-<div class="line"><a name="l04268"></a><span class="lineno"> 4268</span>                                 <span class="keywordflow">while</span> (k < size[i] && k > 1);</div>
-<div class="line"><a name="l04269"></a><span class="lineno"> 4269</span>                                 <span class="comment">/* while more points rejected */</span></div>
-<div class="line"><a name="l04270"></a><span class="lineno"> 4270</span>                             }</div>
-<div class="line"><a name="l04271"></a><span class="lineno"> 4271</span>                     }</div>
-<div class="line"><a name="l04272"></a><span class="lineno"> 4272</span>                 </div>
-<div class="line"><a name="l04273"></a><span class="lineno"> 4273</span>                 <span class="comment">/* Collect data points in this chunk.</span></div>
-<div class="line"><a name="l04274"></a><span class="lineno"> 4274</span> <span class="comment">                 * At the same time compute estimates of</span></div>
-<div class="line"><a name="l04275"></a><span class="lineno"> 4275</span> <span class="comment">                 * y0, sigma for this order</span></div>
-<div class="line"><a name="l04276"></a><span class="lineno"> 4276</span> <span class="comment">                 */</span></div>
-<div class="line"><a name="l04277"></a><span class="lineno"> 4277</span>                 </div>
-<div class="line"><a name="l04278"></a><span class="lineno"> 4278</span>                 <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l04279"></a><span class="lineno"> 4279</span>                                             x - chunk/2 + 1, x + chunk/2,</div>
-<div class="line"><a name="l04280"></a><span class="lineno"> 4280</span>                                             order, order,</div>
-<div class="line"><a name="l04281"></a><span class="lineno"> 4281</span>                                             NULL, <span class="keyword">false</span>)</div>
-<div class="line"><a name="l04282"></a><span class="lineno"> 4282</span>                          !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line"><a name="l04283"></a><span class="lineno"> 4283</span>                      <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line"><a name="l04284"></a><span class="lineno"> 4284</span>                     {</div>
-<div class="line"><a name="l04285"></a><span class="lineno"> 4285</span>                         <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l04286"></a><span class="lineno"> 4286</span>                         <span class="keywordtype">double</span> flux = 0; <span class="comment">/* Linear extract bin */</span></div>
-<div class="line"><a name="l04287"></a><span class="lineno"> 4287</span>                         <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l04288"></a><span class="lineno"> 4288</span>                             {</div>
-<div class="line"><a name="l04289"></a><span class="lineno"> 4289</span>                                 <span class="keywordtype">int</span> bin = pos->y - pos->ylow;</div>
-<div class="line"><a name="l04290"></a><span class="lineno"> 4290</span>                                 </div>
-<div class="line"><a name="l04291"></a><span class="lineno"> 4291</span>                                 <span class="keywordflow">if</span> (ISGOOD(image_bpm, pos) &&</div>
-<div class="line"><a name="l04292"></a><span class="lineno"> 4292</span>                                     (locut[bin] <= DATA(image_data, pos) &&</div>
-<div class="line"><a name="l04293"></a><span class="lineno"> 4293</span>                                      DATA(image_data, pos) <= hicut[bin])</div>
-<div class="line"><a name="l04294"></a><span class="lineno"> 4294</span>                                     )</div>
-<div class="line"><a name="l04295"></a><span class="lineno"> 4295</span>                                     {</div>
-<div class="line"><a name="l04296"></a><span class="lineno"> 4296</span>                                         <span class="keywordtype">double</span> pix = DATA(image_data, pos);</div>
-<div class="line"><a name="l04297"></a><span class="lineno"> 4297</span>                                         <span class="keywordtype">double</span> dy = pos->y - pos->ycenter;</div>
-<div class="line"><a name="l04298"></a><span class="lineno"> 4298</span>                                         flux += pix;</div>
-<div class="line"><a name="l04299"></a><span class="lineno"> 4299</span>                                         </div>
-<div class="line"><a name="l04300"></a><span class="lineno"> 4300</span>                                         cpl_matrix_set(eval_points, n, 0, pos->x);</div>
-<div class="line"><a name="l04301"></a><span class="lineno"> 4301</span>                                         cpl_matrix_set(eval_points, n, 1, dy);</div>
-<div class="line"><a name="l04302"></a><span class="lineno"> 4302</span>                                         cpl_matrix_set(eval_points, n, 2, order);</div>
-<div class="line"><a name="l04303"></a><span class="lineno"> 4303</span>                                         cpl_vector_set(eval_data, n, pix);</div>
-<div class="line"><a name="l04304"></a><span class="lineno"> 4304</span>                                         cpl_vector_set(eval_err , n, </div>
-<div class="line"><a name="l04305"></a><span class="lineno"> 4305</span>                                                        DATA(noise_data, pos));</div>
-<div class="line"><a name="l04306"></a><span class="lineno"> 4306</span>                                         </div>
-<div class="line"><a name="l04307"></a><span class="lineno"> 4307</span>                                         sumw   += pix;</div>
-<div class="line"><a name="l04308"></a><span class="lineno"> 4308</span>                                         sumwy  += pix * dy;</div>
-<div class="line"><a name="l04309"></a><span class="lineno"> 4309</span>                                         sumwyy += pix * dy * dy;</div>
-<div class="line"><a name="l04310"></a><span class="lineno"> 4310</span> <span class="preprocessor">#if CREATE_DEBUGGING_TABLE</span></div>
-<div class="line"><a name="l04311"></a><span class="lineno"> 4311</span> <span class="preprocessor"></span>                                        cpl_table_set_double(temp, <span class="stringliteral">"x"</span>, n, pos->x);</div>
-<div class="line"><a name="l04312"></a><span class="lineno"> 4312</span>                                         cpl_table_set_double(temp, <span class="stringliteral">"y"</span>, n, dy);</div>
-<div class="line"><a name="l04313"></a><span class="lineno"> 4313</span>                                         cpl_table_set_double(temp, <span class="stringliteral">"order"</span>, n, order);</div>
-<div class="line"><a name="l04314"></a><span class="lineno"> 4314</span>                                         cpl_table_set_double(temp, <span class="stringliteral">"dat"</span>, n, pix);</div>
-<div class="line"><a name="l04315"></a><span class="lineno"> 4315</span>                                         cpl_table_set_double(temp, <span class="stringliteral">"err"</span>, n, </div>
-<div class="line"><a name="l04316"></a><span class="lineno"> 4316</span>                                                              DATA(noise_data, pos));</div>
-<div class="line"><a name="l04317"></a><span class="lineno"> 4317</span>                                         </div>
-<div class="line"><a name="l04318"></a><span class="lineno"> 4318</span> <span class="preprocessor">#endif                              </span></div>
-<div class="line"><a name="l04319"></a><span class="lineno"> 4319</span> <span class="preprocessor"></span>                                        n++;</div>
-<div class="line"><a name="l04320"></a><span class="lineno"> 4320</span>                                     }</div>
-<div class="line"><a name="l04321"></a><span class="lineno"> 4321</span>                                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04322"></a><span class="lineno"> 4322</span>                                     {</div>
-<div class="line"><a name="l04323"></a><span class="lineno"> 4323</span>                                         nbad += 1;</div>
-<div class="line"><a name="l04324"></a><span class="lineno"> 4324</span>                                         <span class="comment">/* uves_msg_error("bad pixel at (%d, %d)", i, pos->y);*/</span></div>
-<div class="line"><a name="l04325"></a><span class="lineno"> 4325</span>                                     }</div>
-<div class="line"><a name="l04326"></a><span class="lineno"> 4326</span>                             }</div>
-<div class="line"><a name="l04327"></a><span class="lineno"> 4327</span>                         fluxes[pos->x + (order-pos->minorder)*(pos->nx+1)] = flux;</div>
-<div class="line"><a name="l04328"></a><span class="lineno"> 4328</span>                         skys  [pos->x + (order-pos->minorder)*(pos->nx+1)] = </div>
-<div class="line"><a name="l04329"></a><span class="lineno"> 4329</span>                             cpl_image_get(sky_spectrum, </div>
-<div class="line"><a name="l04330"></a><span class="lineno"> 4330</span>                                           pos->x, order-pos->minorder+1, &pis_rejected);</div>
-<div class="line"><a name="l04331"></a><span class="lineno"> 4331</span>                         </div>
-<div class="line"><a name="l04332"></a><span class="lineno"> 4332</span>                         <span class="comment">/* Buffer widths are nx+1, not nx */</span></div>
-<div class="line"><a name="l04333"></a><span class="lineno"> 4333</span>                         skys  [pos->x + (order-pos->minorder)*(pos->nx+1)] = 0;</div>
-<div class="line"><a name="l04334"></a><span class="lineno"> 4334</span>                         <span class="comment">/* need non-sky-subtracted as input image */</span></div>
-<div class="line"><a name="l04335"></a><span class="lineno"> 4335</span> </div>
-<div class="line"><a name="l04336"></a><span class="lineno"> 4336</span>                     } <span class="comment">/* collect data */</span></div>
-<div class="line"><a name="l04337"></a><span class="lineno"> 4337</span>             } <span class="comment">/* for each chunk */</span></div>
-<div class="line"><a name="l04338"></a><span class="lineno"> 4338</span>             </div>
-<div class="line"><a name="l04339"></a><span class="lineno"> 4339</span>             <span class="comment">/* Estimate fit parameters */</span></div>
-<div class="line"><a name="l04340"></a><span class="lineno"> 4340</span>             {</div>
-<div class="line"><a name="l04341"></a><span class="lineno"> 4341</span>                 <span class="keywordtype">double</span> y0_estim;</div>
-<div class="line"><a name="l04342"></a><span class="lineno"> 4342</span>                 <span class="keywordtype">double</span> sigma_estim;</div>
-<div class="line"><a name="l04343"></a><span class="lineno"> 4343</span>                 <span class="keywordtype">bool</span> y0_is_good;   <span class="comment">/* Is the estimate valid, or should it be ignored? */</span></div>
-<div class="line"><a name="l04344"></a><span class="lineno"> 4344</span>                 <span class="keywordtype">bool</span> sigma_is_good;</div>
-<div class="line"><a name="l04345"></a><span class="lineno"> 4345</span>                 </div>
-<div class="line"><a name="l04346"></a><span class="lineno"> 4346</span>                 <span class="keywordflow">if</span> (sumw != 0)</div>
-<div class="line"><a name="l04347"></a><span class="lineno"> 4347</span>                     {</div>
-<div class="line"><a name="l04348"></a><span class="lineno"> 4348</span>                         y0_is_good = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l04349"></a><span class="lineno"> 4349</span>                         y0_estim    = sumwy/sumw;</div>
-<div class="line"><a name="l04350"></a><span class="lineno"> 4350</span>                         </div>
-<div class="line"><a name="l04351"></a><span class="lineno"> 4351</span>                         sigma_estim = sumwyy/sumw - (sumwy/sumw)*(sumwy/sumw);</div>
-<div class="line"><a name="l04352"></a><span class="lineno"> 4352</span>                         <span class="keywordflow">if</span> (sigma_estim > 0)</div>
-<div class="line"><a name="l04353"></a><span class="lineno"> 4353</span>                             {</div>
-<div class="line"><a name="l04354"></a><span class="lineno"> 4354</span>                                 sigma_estim = sqrt(sigma_estim);</div>
-<div class="line"><a name="l04355"></a><span class="lineno"> 4355</span>                                 sigma_is_good = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l04356"></a><span class="lineno"> 4356</span>                             }</div>
-<div class="line"><a name="l04357"></a><span class="lineno"> 4357</span>                         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04358"></a><span class="lineno"> 4358</span>                             {</div>
-<div class="line"><a name="l04359"></a><span class="lineno"> 4359</span>                                 sigma_is_good = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l04360"></a><span class="lineno"> 4360</span>                             }</div>
-<div class="line"><a name="l04361"></a><span class="lineno"> 4361</span>                     }</div>
-<div class="line"><a name="l04362"></a><span class="lineno"> 4362</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04363"></a><span class="lineno"> 4363</span>                     {</div>
-<div class="line"><a name="l04364"></a><span class="lineno"> 4364</span>                         </div>
-<div class="line"><a name="l04365"></a><span class="lineno"> 4365</span>                         y0_is_good = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l04366"></a><span class="lineno"> 4366</span>                         sigma_is_good = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l04367"></a><span class="lineno"> 4367</span>                     }</div>
-<div class="line"><a name="l04368"></a><span class="lineno"> 4368</span>                 </div>
-<div class="line"><a name="l04369"></a><span class="lineno"> 4369</span>                 cpl_table_set_int   (estimate, <span class="stringliteral">"Order"</span>, order - pos->minorder, order);</div>
-<div class="line"><a name="l04370"></a><span class="lineno"> 4370</span>                 </div>
-<div class="line"><a name="l04371"></a><span class="lineno"> 4371</span>                 <span class="keywordflow">if</span> (y0_is_good)</div>
-<div class="line"><a name="l04372"></a><span class="lineno"> 4372</span>                     {</div>
-<div class="line"><a name="l04373"></a><span class="lineno"> 4373</span>                         cpl_table_set_double(estimate, <span class="stringliteral">"Y0"</span>   , order - pos->minorder, y0_estim);</div>
-<div class="line"><a name="l04374"></a><span class="lineno"> 4374</span>                     }</div>
-<div class="line"><a name="l04375"></a><span class="lineno"> 4375</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04376"></a><span class="lineno"> 4376</span>                     {</div>
-<div class="line"><a name="l04377"></a><span class="lineno"> 4377</span>                         cpl_table_set_invalid(estimate, <span class="stringliteral">"Y0"</span>, order - pos->minorder);</div>
-<div class="line"><a name="l04378"></a><span class="lineno"> 4378</span>                     }</div>
-<div class="line"><a name="l04379"></a><span class="lineno"> 4379</span>                 </div>
-<div class="line"><a name="l04380"></a><span class="lineno"> 4380</span>                 <span class="keywordflow">if</span> (sigma_is_good)</div>
-<div class="line"><a name="l04381"></a><span class="lineno"> 4381</span>                     {</div>
-<div class="line"><a name="l04382"></a><span class="lineno"> 4382</span>                         cpl_table_set_double(estimate, <span class="stringliteral">"Sigma"</span>, </div>
-<div class="line"><a name="l04383"></a><span class="lineno"> 4383</span>                                              order - pos->minorder, sigma_estim);</div>
-<div class="line"><a name="l04384"></a><span class="lineno"> 4384</span>                     }</div>
-<div class="line"><a name="l04385"></a><span class="lineno"> 4385</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04386"></a><span class="lineno"> 4386</span>                     {</div>
-<div class="line"><a name="l04387"></a><span class="lineno"> 4387</span>                         cpl_table_set_invalid(estimate, <span class="stringliteral">"Sigma"</span>, order - pos->minorder);</div>
-<div class="line"><a name="l04388"></a><span class="lineno"> 4388</span>                     }</div>
-<div class="line"><a name="l04389"></a><span class="lineno"> 4389</span>                 </div>
-<div class="line"><a name="l04390"></a><span class="lineno"> 4390</span>                 </div>
-<div class="line"><a name="l04391"></a><span class="lineno"> 4391</span>                 <span class="comment">/* There's probably a nicer way of printing this... */</span></div>
-<div class="line"><a name="l04392"></a><span class="lineno"> 4392</span>                 <span class="keywordflow">if</span>      (y0_is_good && sigma_is_good) {</div>
-<div class="line"><a name="l04393"></a><span class="lineno"> 4393</span>                     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Order #%d: Offset = %.2f pix; FWHM = %.2f pix"</span>, </div>
-<div class="line"><a name="l04394"></a><span class="lineno"> 4394</span>                                    order, y0_estim, sigma_estim*TWOSQRT2LN2);</div>
-<div class="line"><a name="l04395"></a><span class="lineno"> 4395</span>                 }</div>
-<div class="line"><a name="l04396"></a><span class="lineno"> 4396</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (y0_is_good && !sigma_is_good) {</div>
-<div class="line"><a name="l04397"></a><span class="lineno"> 4397</span>                     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Order #%d: Offset = %.2f pix; FWHM = -- pix"</span>, </div>
-<div class="line"><a name="l04398"></a><span class="lineno"> 4398</span>                                    order, y0_estim);</div>
-<div class="line"><a name="l04399"></a><span class="lineno"> 4399</span>                 }</div>
-<div class="line"><a name="l04400"></a><span class="lineno"> 4400</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!y0_is_good && sigma_is_good) {</div>
-<div class="line"><a name="l04401"></a><span class="lineno"> 4401</span>                     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Order #%d: Offset = -- pix; FWHM = %.2f pix"</span>, </div>
-<div class="line"><a name="l04402"></a><span class="lineno"> 4402</span>                                    order, sigma_estim);</div>
-<div class="line"><a name="l04403"></a><span class="lineno"> 4403</span>                 }</div>
-<div class="line"><a name="l04404"></a><span class="lineno"> 4404</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04405"></a><span class="lineno"> 4405</span>                     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Order #%d: Offset = -- pix; FWHM = -- pix"</span>,</div>
-<div class="line"><a name="l04406"></a><span class="lineno"> 4406</span>                                    order);</div>
-<div class="line"><a name="l04407"></a><span class="lineno"> 4407</span>                 }</div>
-<div class="line"><a name="l04408"></a><span class="lineno"> 4408</span>             } <span class="comment">/* end estimating */</span></div>
-<div class="line"><a name="l04409"></a><span class="lineno"> 4409</span>             </div>
-<div class="line"><a name="l04410"></a><span class="lineno"> 4410</span>         } <span class="comment">/* for each order */</span></div>
-<div class="line"><a name="l04411"></a><span class="lineno"> 4411</span>         </div>
-<div class="line"><a name="l04412"></a><span class="lineno"> 4412</span>         cpl_matrix_set_size(eval_points, n, 3);</div>
-<div class="line"><a name="l04413"></a><span class="lineno"> 4413</span>         cpl_vector_set_size(eval_data, n);</div>
-<div class="line"><a name="l04414"></a><span class="lineno"> 4414</span>         cpl_vector_set_size(eval_err , n);</div>
-<div class="line"><a name="l04415"></a><span class="lineno"> 4415</span>     </div>
-<div class="line"><a name="l04416"></a><span class="lineno"> 4416</span> <span class="preprocessor">#if CREATE_DEBUGGING_TABLE</span></div>
-<div class="line"><a name="l04417"></a><span class="lineno"> 4417</span> <span class="preprocessor"></span>        cpl_table_set_size(temp, n);</div>
-<div class="line"><a name="l04418"></a><span class="lineno"> 4418</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04419"></a><span class="lineno"> 4419</span> <span class="preprocessor"></span>        </div>
-<div class="line"><a name="l04420"></a><span class="lineno"> 4420</span>         <span class="comment">/* Get estimates of constant + linear coefficients </span></div>
-<div class="line"><a name="l04421"></a><span class="lineno"> 4421</span> <span class="comment">           (as function of order (m), not x) */</span></div>
-<div class="line"><a name="l04422"></a><span class="lineno"> 4422</span>         {</div>
-<div class="line"><a name="l04423"></a><span class="lineno"> 4423</span>             <span class="keywordtype">double</span> kappa = 3.0;</div>
-<div class="line"><a name="l04424"></a><span class="lineno"> 4424</span>             <span class="keywordtype">int</span> degree;</div>
-<div class="line"><a name="l04425"></a><span class="lineno"> 4425</span> </div>
-<div class="line"><a name="l04426"></a><span class="lineno"> 4426</span>             cpl_table_dump(estimate, 0, cpl_table_get_nrow(estimate), stdout);</div>
-<div class="line"><a name="l04427"></a><span class="lineno"> 4427</span> </div>
-<div class="line"><a name="l04428"></a><span class="lineno"> 4428</span>             <span class="comment">/* Remove rows with invalid y0, but keep rows with</span></div>
-<div class="line"><a name="l04429"></a><span class="lineno"> 4429</span> <span class="comment">               valid sigma (therefore we need a copy) */</span></div>
-<div class="line"><a name="l04430"></a><span class="lineno"> 4430</span>             estimate_dup = cpl_table_duplicate(estimate);</div>
-<div class="line"><a name="l04431"></a><span class="lineno"> 4431</span>             <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( estimate_dup );</div>
-<div class="line"><a name="l04432"></a><span class="lineno"> 4432</span>             uves_erase_invalid_table_rows(estimate_dup, <span class="stringliteral">"Y0"</span>);</div>
-<div class="line"><a name="l04433"></a><span class="lineno"> 4433</span> </div>
-<div class="line"><a name="l04434"></a><span class="lineno"> 4434</span>             <span class="comment">/* Linear fit, or zero'th if only one position to fit */</span></div>
-<div class="line"><a name="l04435"></a><span class="lineno"> 4435</span>             degree = (cpl_table_get_nrow(estimate_dup) > 1) ? 1 : 0;</div>
-<div class="line"><a name="l04436"></a><span class="lineno"> 4436</span> </div>
-<div class="line"><a name="l04437"></a><span class="lineno"> 4437</span>             y0_estim_pol = <a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d</a>(</div>
-<div class="line"><a name="l04438"></a><span class="lineno"> 4438</span>                 estimate_dup, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Y0"</span>, NULL,</div>
-<div class="line"><a name="l04439"></a><span class="lineno"> 4439</span>                 degree,</div>
-<div class="line"><a name="l04440"></a><span class="lineno"> 4440</span>                 NULL, NULL,  <span class="comment">/* New columns */</span></div>
-<div class="line"><a name="l04441"></a><span class="lineno"> 4441</span>                 NULL,        <span class="comment">/* mse */</span></div>
-<div class="line"><a name="l04442"></a><span class="lineno"> 4442</span>                 kappa);</div>
-<div class="line"><a name="l04443"></a><span class="lineno"> 4443</span> </div>
-<div class="line"><a name="l04444"></a><span class="lineno"> 4444</span>             <a class="code" href="group__uves__utils__polynomial.html#ga0879179dcb0100de2d26f8de459d5838" title="Print a polynomial.">uves_polynomial_dump</a>(y0_estim_pol, stdout); fflush(stdout);</div>
-<div class="line"><a name="l04445"></a><span class="lineno"> 4445</span> </div>
-<div class="line"><a name="l04446"></a><span class="lineno"> 4446</span>             <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l04447"></a><span class="lineno"> 4447</span>                 {</div>
-<div class="line"><a name="l04448"></a><span class="lineno"> 4448</span>                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Could not estimate object centroid (%s). "</span></div>
-<div class="line"><a name="l04449"></a><span class="lineno"> 4449</span>                                      <span class="stringliteral">"Setting initial offset to zero"</span>,</div>
-<div class="line"><a name="l04450"></a><span class="lineno"> 4450</span>                                      cpl_error_get_message());</div>
-<div class="line"><a name="l04451"></a><span class="lineno"> 4451</span> </div>
-<div class="line"><a name="l04452"></a><span class="lineno"> 4452</span>                     <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l04453"></a><span class="lineno"> 4453</span>                     </div>
-<div class="line"><a name="l04454"></a><span class="lineno"> 4454</span>                     <span class="comment">/* Set y0(m) := 0 */</span></div>
-<div class="line"><a name="l04455"></a><span class="lineno"> 4455</span>                     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&y0_estim_pol);</div>
-<div class="line"><a name="l04456"></a><span class="lineno"> 4456</span>                     y0_estim_pol = <a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(1); <span class="comment">/* dimension = 1 */</span></div>
-<div class="line"><a name="l04457"></a><span class="lineno"> 4457</span>                 }</div>
-<div class="line"><a name="l04458"></a><span class="lineno"> 4458</span>             </div>
-<div class="line"><a name="l04459"></a><span class="lineno"> 4459</span>             uves_free_table(&estimate_dup);</div>
-<div class="line"><a name="l04460"></a><span class="lineno"> 4460</span>             estimate_dup = cpl_table_duplicate(estimate);</div>
-<div class="line"><a name="l04461"></a><span class="lineno"> 4461</span>             <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( estimate_dup );</div>
-<div class="line"><a name="l04462"></a><span class="lineno"> 4462</span>             uves_erase_invalid_table_rows(estimate_dup, <span class="stringliteral">"Sigma"</span>);</div>
-<div class="line"><a name="l04463"></a><span class="lineno"> 4463</span> </div>
-<div class="line"><a name="l04464"></a><span class="lineno"> 4464</span>             degree = (cpl_table_get_nrow(estimate_dup) > 1) ? 1 : 0;</div>
-<div class="line"><a name="l04465"></a><span class="lineno"> 4465</span> </div>
-<div class="line"><a name="l04466"></a><span class="lineno"> 4466</span>             sigma_estim_pol = <a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d</a>(</div>
-<div class="line"><a name="l04467"></a><span class="lineno"> 4467</span>                 estimate_dup, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Sigma"</span>, NULL,</div>
-<div class="line"><a name="l04468"></a><span class="lineno"> 4468</span>                 degree,</div>
-<div class="line"><a name="l04469"></a><span class="lineno"> 4469</span>                 NULL, NULL,  <span class="comment">/* New columns */</span></div>
-<div class="line"><a name="l04470"></a><span class="lineno"> 4470</span>                 NULL,        <span class="comment">/* mse */</span></div>
-<div class="line"><a name="l04471"></a><span class="lineno"> 4471</span>                 kappa);</div>
-<div class="line"><a name="l04472"></a><span class="lineno"> 4472</span> </div>
-<div class="line"><a name="l04473"></a><span class="lineno"> 4473</span>             <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l04474"></a><span class="lineno"> 4474</span>                 {</div>
-<div class="line"><a name="l04475"></a><span class="lineno"> 4475</span>                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Could not estimate object width (%s). "</span></div>
-<div class="line"><a name="l04476"></a><span class="lineno"> 4476</span>                                      <span class="stringliteral">"Setting initial sigma to 1 pixel"</span>,</div>
-<div class="line"><a name="l04477"></a><span class="lineno"> 4477</span>                                      cpl_error_get_message());</div>
-<div class="line"><a name="l04478"></a><span class="lineno"> 4478</span>                     </div>
-<div class="line"><a name="l04479"></a><span class="lineno"> 4479</span>                     <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l04480"></a><span class="lineno"> 4480</span> </div>
-<div class="line"><a name="l04481"></a><span class="lineno"> 4481</span>                     <span class="comment">/* Set sigma(m) := 1 */</span></div>
-<div class="line"><a name="l04482"></a><span class="lineno"> 4482</span>                     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&sigma_estim_pol);</div>
-<div class="line"><a name="l04483"></a><span class="lineno"> 4483</span>                     sigma_estim_pol = <a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(1);</div>
-<div class="line"><a name="l04484"></a><span class="lineno"> 4484</span>                     <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(sigma_estim_pol, 0, 1.0);</div>
-<div class="line"><a name="l04485"></a><span class="lineno"> 4485</span>                 }</div>
-<div class="line"><a name="l04486"></a><span class="lineno"> 4486</span>         } <span class="comment">/* end estimating */</span></div>
-<div class="line"><a name="l04487"></a><span class="lineno"> 4487</span>         </div>
-<div class="line"><a name="l04488"></a><span class="lineno"> 4488</span>         <span class="comment">/* Copy estimate to 'coeffs' vector */</span></div>
-<div class="line"><a name="l04489"></a><span class="lineno"> 4489</span> </div>
-<div class="line"><a name="l04490"></a><span class="lineno"> 4490</span>         <span class="comment">/* Centroid, constant term x^0 m^0 */</span></div>
-<div class="line"><a name="l04491"></a><span class="lineno"> 4491</span>         cpl_vector_set(coeffs, 0, </div>
-<div class="line"><a name="l04492"></a><span class="lineno"> 4492</span>                        <a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(y0_estim_pol, 0));</div>
-<div class="line"><a name="l04493"></a><span class="lineno"> 4493</span>         <span class="comment">/* Centroid, linear term  x^0 m^1 */</span></div>
-<div class="line"><a name="l04494"></a><span class="lineno"> 4494</span>         <span class="keywordflow">if</span> (deg_y0_m >= 1)</div>
-<div class="line"><a name="l04495"></a><span class="lineno"> 4495</span>             {</div>
-<div class="line"><a name="l04496"></a><span class="lineno"> 4496</span>                 cpl_vector_set(coeffs, 0 + (deg_y0_x+1)*1, </div>
-<div class="line"><a name="l04497"></a><span class="lineno"> 4497</span>                                <a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(y0_estim_pol, 1));</div>
-<div class="line"><a name="l04498"></a><span class="lineno"> 4498</span> </div>
-<div class="line"><a name="l04499"></a><span class="lineno"> 4499</span>                 <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Estimate: y0    ~= %g + %g * m"</span>,</div>
-<div class="line"><a name="l04500"></a><span class="lineno"> 4500</span>                                cpl_vector_get(coeffs, 0),</div>
-<div class="line"><a name="l04501"></a><span class="lineno"> 4501</span>                                cpl_vector_get(coeffs, 0 + (deg_y0_x+1)*1));</div>
-<div class="line"><a name="l04502"></a><span class="lineno"> 4502</span>             }</div>
-<div class="line"><a name="l04503"></a><span class="lineno"> 4503</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04504"></a><span class="lineno"> 4504</span>             {</div>
-<div class="line"><a name="l04505"></a><span class="lineno"> 4505</span>                 <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Estimate: y0    ~= %g"</span>,</div>
-<div class="line"><a name="l04506"></a><span class="lineno"> 4506</span>                                cpl_vector_get(coeffs, 0));</div>
-<div class="line"><a name="l04507"></a><span class="lineno"> 4507</span>             }</div>
-<div class="line"><a name="l04508"></a><span class="lineno"> 4508</span>         </div>
-<div class="line"><a name="l04509"></a><span class="lineno"> 4509</span> </div>
-<div class="line"><a name="l04510"></a><span class="lineno"> 4510</span>         <span class="comment">/* Sigma, constant term x^0 m^0 */</span></div>
-<div class="line"><a name="l04511"></a><span class="lineno"> 4511</span>         cpl_vector_set(coeffs, (deg_y0_x+1)*(deg_y0_m+1), </div>
-<div class="line"><a name="l04512"></a><span class="lineno"> 4512</span>                        <a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(sigma_estim_pol, 0)); </div>
-<div class="line"><a name="l04513"></a><span class="lineno"> 4513</span>         <span class="comment">/* Sigma, linear term  x^0 m^1 */</span></div>
-<div class="line"><a name="l04514"></a><span class="lineno"> 4514</span>         <span class="keywordflow">if</span> (deg_sigma_m >= 1)</div>
-<div class="line"><a name="l04515"></a><span class="lineno"> 4515</span>             {</div>
-<div class="line"><a name="l04516"></a><span class="lineno"> 4516</span>                 cpl_vector_set(coeffs, (deg_y0_x+1)*(deg_y0_m+1) +</div>
-<div class="line"><a name="l04517"></a><span class="lineno"> 4517</span>                                0 + (deg_sigma_x+1)*1,</div>
-<div class="line"><a name="l04518"></a><span class="lineno"> 4518</span>                                <a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(sigma_estim_pol, 1));</div>
-<div class="line"><a name="l04519"></a><span class="lineno"> 4519</span>                 </div>
-<div class="line"><a name="l04520"></a><span class="lineno"> 4520</span>                 <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Estimate: sigma ~= %g + %g * m"</span>,</div>
-<div class="line"><a name="l04521"></a><span class="lineno"> 4521</span>                                cpl_vector_get(coeffs, (deg_y0_x+1)*(deg_y0_m+1) +</div>
-<div class="line"><a name="l04522"></a><span class="lineno"> 4522</span>                                               0),</div>
-<div class="line"><a name="l04523"></a><span class="lineno"> 4523</span>                                cpl_vector_get(coeffs, (deg_y0_x+1)*(deg_y0_m+1) +</div>
-<div class="line"><a name="l04524"></a><span class="lineno"> 4524</span>                                               0 + (deg_y0_x+1)*1));</div>
-<div class="line"><a name="l04525"></a><span class="lineno"> 4525</span>             }</div>
-<div class="line"><a name="l04526"></a><span class="lineno"> 4526</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04527"></a><span class="lineno"> 4527</span>             {</div>
-<div class="line"><a name="l04528"></a><span class="lineno"> 4528</span>                 <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Estimate: sigma ~= %g"</span>,</div>
-<div class="line"><a name="l04529"></a><span class="lineno"> 4529</span>                                cpl_vector_get(coeffs, (deg_y0_x+1)*(deg_y0_m+1) +</div>
-<div class="line"><a name="l04530"></a><span class="lineno"> 4530</span>                                               0));</div>
-<div class="line"><a name="l04531"></a><span class="lineno"> 4531</span>                                </div>
-<div class="line"><a name="l04532"></a><span class="lineno"> 4532</span>             }</div>
-<div class="line"><a name="l04533"></a><span class="lineno"> 4533</span>         <span class="comment">/* Remaining coeff.s were set to 0 */</span></div>
-<div class="line"><a name="l04534"></a><span class="lineno"> 4534</span>         </div>
-<div class="line"><a name="l04535"></a><span class="lineno"> 4535</span>         <span class="comment">/* Fill struct used for fitting */</span></div>
-<div class="line"><a name="l04536"></a><span class="lineno"> 4536</span>         profile_params.flux = fluxes;</div>
-<div class="line"><a name="l04537"></a><span class="lineno"> 4537</span>         profile_params.sky  = skys;</div>
-<div class="line"><a name="l04538"></a><span class="lineno"> 4538</span>         profile_params.minorder = pos->minorder;</div>
-<div class="line"><a name="l04539"></a><span class="lineno"> 4539</span>         profile_params.nx = nx;</div>
-<div class="line"><a name="l04540"></a><span class="lineno"> 4540</span> </div>
-<div class="line"><a name="l04541"></a><span class="lineno"> 4541</span>         profile_params.f = f;</div>
-<div class="line"><a name="l04542"></a><span class="lineno"> 4542</span>         profile_params.dfda = dfda;</div>
-<div class="line"><a name="l04543"></a><span class="lineno"> 4543</span>         </div>
-<div class="line"><a name="l04544"></a><span class="lineno"> 4544</span>         profile_params.deg_y0_x = deg_y0_x;</div>
-<div class="line"><a name="l04545"></a><span class="lineno"> 4545</span>         profile_params.deg_y0_m = deg_y0_m;</div>
-<div class="line"><a name="l04546"></a><span class="lineno"> 4546</span>         profile_params.deg_sigma_x = deg_sigma_x;</div>
-<div class="line"><a name="l04547"></a><span class="lineno"> 4547</span>         profile_params.deg_sigma_m = deg_sigma_m;</div>
-<div class="line"><a name="l04548"></a><span class="lineno"> 4548</span> </div>
-<div class="line"><a name="l04549"></a><span class="lineno"> 4549</span> <span class="comment">//    cpl_msg_set_level(CPL_MSG_DEBUG_MODE);</span></div>
-<div class="line"><a name="l04550"></a><span class="lineno"> 4550</span> </div>
-<div class="line"><a name="l04551"></a><span class="lineno"> 4551</span>         <span class="comment">/* Unweighted fit: */</span> </div>
-<div class="line"><a name="l04552"></a><span class="lineno"> 4552</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l04553"></a><span class="lineno"> 4553</span> <span class="preprocessor"></span>        cpl_vector_fill(eval_err,</div>
-<div class="line"><a name="l04554"></a><span class="lineno"> 4554</span>                         cpl_vector_get_median_const(eval_err));</div>
-<div class="line"><a name="l04555"></a><span class="lineno"> 4555</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l04556"></a><span class="lineno"> 4556</span> <span class="preprocessor"></span>        cpl_vector_fill(eval_err,</div>
-<div class="line"><a name="l04557"></a><span class="lineno"> 4557</span>                         cpl_vector_get_median(eval_err));</div>
-<div class="line"><a name="l04558"></a><span class="lineno"> 4558</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04559"></a><span class="lineno"> 4559</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l04560"></a><span class="lineno"> 4560</span>         <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Fitting model to %d positions; %d bad pixels found"</span>,</div>
-<div class="line"><a name="l04561"></a><span class="lineno"> 4561</span>                        n, nbad);</div>
-<div class="line"><a name="l04562"></a><span class="lineno"> 4562</span>         </div>
-<div class="line"><a name="l04563"></a><span class="lineno"> 4563</span>         uves_fit(eval_points, NULL,</div>
-<div class="line"><a name="l04564"></a><span class="lineno"> 4564</span>                  eval_data, eval_err,</div>
-<div class="line"><a name="l04565"></a><span class="lineno"> 4565</span>                  coeffs, ia,</div>
-<div class="line"><a name="l04566"></a><span class="lineno"> 4566</span>                  profile_f,</div>
-<div class="line"><a name="l04567"></a><span class="lineno"> 4567</span>                  profile_dfda,</div>
-<div class="line"><a name="l04568"></a><span class="lineno"> 4568</span>                  NULL, <span class="comment">/* mse, red_chisq, covariance */</span></div>
-<div class="line"><a name="l04569"></a><span class="lineno"> 4569</span>                  &red_chisq,</div>
-<div class="line"><a name="l04570"></a><span class="lineno"> 4570</span>                  &covariance);</div>
-<div class="line"><a name="l04571"></a><span class="lineno"> 4571</span> <span class="comment">//    cpl_msg_set_level(CPL_MSG_INFO);</span></div>
-<div class="line"><a name="l04572"></a><span class="lineno"> 4572</span>         </div>
-<div class="line"><a name="l04573"></a><span class="lineno"> 4573</span>         <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX ||</div>
-<div class="line"><a name="l04574"></a><span class="lineno"> 4574</span>             cpl_error_get_code() == CPL_ERROR_CONTINUE)</div>
-<div class="line"><a name="l04575"></a><span class="lineno"> 4575</span>         {</div>
-<div class="line"><a name="l04576"></a><span class="lineno"> 4576</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Fitting global model failed (%s)"</span>, cpl_error_get_message());</div>
-<div class="line"><a name="l04577"></a><span class="lineno"> 4577</span>             <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l04578"></a><span class="lineno"> 4578</span> <span class="preprocessor">#if CREATE_DEBUGGING_TABLE</span></div>
-<div class="line"><a name="l04579"></a><span class="lineno"> 4579</span> <span class="preprocessor"></span>            cpl_table_save(temp, NULL, NULL, <span class="stringliteral">"tab.fits"</span>, CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l04580"></a><span class="lineno"> 4580</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04581"></a><span class="lineno"> 4581</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l04582"></a><span class="lineno"> 4582</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04583"></a><span class="lineno"> 4583</span>         {</div>
-<div class="line"><a name="l04584"></a><span class="lineno"> 4584</span>             assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l04585"></a><span class="lineno"> 4585</span>                     cpl_error_get_code(), <span class="stringliteral">"Fitting global model failed"</span>);</div>
-<div class="line"><a name="l04586"></a><span class="lineno"> 4586</span> </div>
-<div class="line"><a name="l04587"></a><span class="lineno"> 4587</span>             cpl_matrix_dump(covariance, stdout); fflush(stdout);</div>
-<div class="line"><a name="l04588"></a><span class="lineno"> 4588</span> </div>
-<div class="line"><a name="l04589"></a><span class="lineno"> 4589</span>             <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Solution: y0    ~= %g"</span>, eval_pol(cpl_vector_get_data(coeffs),</div>
-<div class="line"><a name="l04590"></a><span class="lineno"> 4590</span>                                                              deg_y0_x, deg_y0_m, </div>
-<div class="line"><a name="l04591"></a><span class="lineno"> 4591</span>                                                              pos->nx/2, </div>
-<div class="line"><a name="l04592"></a><span class="lineno"> 4592</span>                                                              (pos->minorder+pos->maxorder)/2));</div>
-<div class="line"><a name="l04593"></a><span class="lineno"> 4593</span>             <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Solution: sigma ~= %g"</span>, eval_pol(cpl_vector_get_data(coeffs)+</div>
-<div class="line"><a name="l04594"></a><span class="lineno"> 4594</span>                                                              (deg_y0_x+1)*(deg_y0_m+1),</div>
-<div class="line"><a name="l04595"></a><span class="lineno"> 4595</span>                                                              deg_y0_x, deg_y0_m, </div>
-<div class="line"><a name="l04596"></a><span class="lineno"> 4596</span>                                                              pos->nx/2,</div>
-<div class="line"><a name="l04597"></a><span class="lineno"> 4597</span>                                                              (pos->minorder+pos->maxorder)/2));</div>
-<div class="line"><a name="l04598"></a><span class="lineno"> 4598</span>             </div>
-<div class="line"><a name="l04599"></a><span class="lineno"> 4599</span>             <span class="comment">/* Fill table with solution */</span></div>
-<div class="line"><a name="l04600"></a><span class="lineno"> 4600</span>             <span class="keywordflow">for</span> (order = pos->minorder; order <= pos->maxorder; order++) {</div>
-<div class="line"><a name="l04601"></a><span class="lineno"> 4601</span>             <span class="keywordflow">for</span> (x = chunk/2; x <= nx - chunk/2; x += chunk)</div>
-<div class="line"><a name="l04602"></a><span class="lineno"> 4602</span>                 {</div>
-<div class="line"><a name="l04603"></a><span class="lineno"> 4603</span>                     <span class="keywordtype">double</span> y_0   =      eval_pol(cpl_vector_get_data(coeffs), </div>
-<div class="line"><a name="l04604"></a><span class="lineno"> 4604</span>                                                  deg_y0_x, deg_y0_m, x, order);</div>
-<div class="line"><a name="l04605"></a><span class="lineno"> 4605</span>                     <span class="keywordtype">double</span> sigma = fabs(eval_pol(cpl_vector_get_data(coeffs)+</div>
-<div class="line"><a name="l04606"></a><span class="lineno"> 4606</span>                                                  (deg_y0_x+1)*(deg_y0_m+1),</div>
-<div class="line"><a name="l04607"></a><span class="lineno"> 4607</span>                                                  deg_sigma_x, deg_sigma_m, x, order));</div>
-<div class="line"><a name="l04608"></a><span class="lineno"> 4608</span>                     </div>
-<div class="line"><a name="l04609"></a><span class="lineno"> 4609</span>                     <span class="comment">/* Use error propagation formula to get variance of polynomials:</span></div>
-<div class="line"><a name="l04610"></a><span class="lineno"> 4610</span> <span class="comment">                       </span></div>
-<div class="line"><a name="l04611"></a><span class="lineno"> 4611</span> <span class="comment">                       We have p(x,m) = sum_ij a_ij x^i m^j,</span></div>
-<div class="line"><a name="l04612"></a><span class="lineno"> 4612</span> <span class="comment"></span></div>
-<div class="line"><a name="l04613"></a><span class="lineno"> 4613</span> <span class="comment">                       and thus a quadruple sum for the variance,</span></div>
-<div class="line"><a name="l04614"></a><span class="lineno"> 4614</span> <span class="comment"></span></div>
-<div class="line"><a name="l04615"></a><span class="lineno"> 4615</span> <span class="comment">                       V(x,m) = sum_i1j1i2j2 Cov(a_i1j1, a_i2j2), x^(i1+i2) m^(j1+j2)</span></div>
-<div class="line"><a name="l04616"></a><span class="lineno"> 4616</span> <span class="comment"></span></div>
-<div class="line"><a name="l04617"></a><span class="lineno"> 4617</span> <span class="comment">                       (for both y0(x,m) and sigma(x,m))</span></div>
-<div class="line"><a name="l04618"></a><span class="lineno"> 4618</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l04619"></a><span class="lineno"> 4619</span>                     <span class="keywordtype">double</span> dy0 = 0;</div>
-<div class="line"><a name="l04620"></a><span class="lineno"> 4620</span>                     <span class="keywordtype">double</span> dsigma = 0;</div>
-<div class="line"><a name="l04621"></a><span class="lineno"> 4621</span>                     <span class="keywordtype">int</span> i1, i2, j_1, j2;  <span class="comment">/* because POSIX 1003.1-2001 defines 'j1' */</span></div>
-<div class="line"><a name="l04622"></a><span class="lineno"> 4622</span> </div>
-<div class="line"><a name="l04623"></a><span class="lineno"> 4623</span>                     <span class="keywordflow">for</span> (i1 = 0; i1 < (deg_y0_x+1); i1++)</div>
-<div class="line"><a name="l04624"></a><span class="lineno"> 4624</span>                     <span class="keywordflow">for</span> (j_1 = 0; j_1 < (deg_y0_m+1); j_1++)</div>
-<div class="line"><a name="l04625"></a><span class="lineno"> 4625</span>                     <span class="keywordflow">for</span> (i2 = 0; i2 < (deg_y0_x+1); i2++)</div>
-<div class="line"><a name="l04626"></a><span class="lineno"> 4626</span>                     <span class="keywordflow">for</span> (j2 = 0; j2 < (deg_y0_m+1); j2++)</div>
-<div class="line"><a name="l04627"></a><span class="lineno"> 4627</span>                         {</div>
-<div class="line"><a name="l04628"></a><span class="lineno"> 4628</span>                             dy0 += cpl_matrix_get(covariance, </div>
-<div class="line"><a name="l04629"></a><span class="lineno"> 4629</span>                                                   i1+(deg_y0_x+1)*j_1,</div>
-<div class="line"><a name="l04630"></a><span class="lineno"> 4630</span>                                                   i2+(deg_y0_x+1)*j2) * </div>
-<div class="line"><a name="l04631"></a><span class="lineno"> 4631</span>                                 <a class="code" href="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054" title="Calculate x to the y'th.">uves_pow_int</a>(x, i1+i2) *</div>
-<div class="line"><a name="l04632"></a><span class="lineno"> 4632</span>                                 <a class="code" href="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054" title="Calculate x to the y'th.">uves_pow_int</a>(order, j_1+j2);</div>
-<div class="line"><a name="l04633"></a><span class="lineno"> 4633</span>                         }</div>
-<div class="line"><a name="l04634"></a><span class="lineno"> 4634</span>                     <span class="keywordflow">if</span> (dy0 > 0)</div>
-<div class="line"><a name="l04635"></a><span class="lineno"> 4635</span>                         {</div>
-<div class="line"><a name="l04636"></a><span class="lineno"> 4636</span>                             dy0 = sqrt(dy0);</div>
-<div class="line"><a name="l04637"></a><span class="lineno"> 4637</span>                         }</div>
-<div class="line"><a name="l04638"></a><span class="lineno"> 4638</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04639"></a><span class="lineno"> 4639</span>                         <span class="comment">/* Should not happen */</span></div>
-<div class="line"><a name="l04640"></a><span class="lineno"> 4640</span>                         {</div>
-<div class="line"><a name="l04641"></a><span class="lineno"> 4641</span>                             dy0 = 1.0; </div>
-<div class="line"><a name="l04642"></a><span class="lineno"> 4642</span>                         }</div>
-<div class="line"><a name="l04643"></a><span class="lineno"> 4643</span> </div>
-<div class="line"><a name="l04644"></a><span class="lineno"> 4644</span>                     <span class="keywordflow">for</span> (i1 = 0; i1 < (deg_sigma_x+1); i1++)</div>
-<div class="line"><a name="l04645"></a><span class="lineno"> 4645</span>                     <span class="keywordflow">for</span> (j_1 = 0; j_1 < (deg_sigma_m+1); j_1++)</div>
-<div class="line"><a name="l04646"></a><span class="lineno"> 4646</span>                     <span class="keywordflow">for</span> (i2 = 0; i2 < (deg_sigma_x+1); i2++)</div>
-<div class="line"><a name="l04647"></a><span class="lineno"> 4647</span>                     <span class="keywordflow">for</span> (j2 = 0; j2 < (deg_sigma_m+1); j2++)</div>
-<div class="line"><a name="l04648"></a><span class="lineno"> 4648</span>                         {</div>
-<div class="line"><a name="l04649"></a><span class="lineno"> 4649</span>                             <span class="comment">/* Ignore the upper left part of the covariance</span></div>
-<div class="line"><a name="l04650"></a><span class="lineno"> 4650</span> <span class="comment">                               matrix (the covariances related to y0)</span></div>
-<div class="line"><a name="l04651"></a><span class="lineno"> 4651</span> <span class="comment">                            */</span></div>
-<div class="line"><a name="l04652"></a><span class="lineno"> 4652</span>                             dsigma += cpl_matrix_get(</div>
-<div class="line"><a name="l04653"></a><span class="lineno"> 4653</span>                                 covariance,</div>
-<div class="line"><a name="l04654"></a><span class="lineno"> 4654</span>                                 (deg_y0_x+1)*(deg_y0_m+1) + i1+(deg_sigma_x+1)*j_1,</div>
-<div class="line"><a name="l04655"></a><span class="lineno"> 4655</span>                                 (deg_y0_x+1)*(deg_y0_m+1) + i2+(deg_sigma_x+1)*j2) * </div>
-<div class="line"><a name="l04656"></a><span class="lineno"> 4656</span>                                 <a class="code" href="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054" title="Calculate x to the y'th.">uves_pow_int</a>(x, i1+i1) *</div>
-<div class="line"><a name="l04657"></a><span class="lineno"> 4657</span>                                 <a class="code" href="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054" title="Calculate x to the y'th.">uves_pow_int</a>(order, j_1+j2);</div>
-<div class="line"><a name="l04658"></a><span class="lineno"> 4658</span>                         }</div>
-<div class="line"><a name="l04659"></a><span class="lineno"> 4659</span>                     <span class="keywordflow">if</span> (dsigma > 0)</div>
-<div class="line"><a name="l04660"></a><span class="lineno"> 4660</span>                         {</div>
-<div class="line"><a name="l04661"></a><span class="lineno"> 4661</span>                             dsigma = sqrt(dsigma);</div>
-<div class="line"><a name="l04662"></a><span class="lineno"> 4662</span>                         }</div>
-<div class="line"><a name="l04663"></a><span class="lineno"> 4663</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04664"></a><span class="lineno"> 4664</span>                         <span class="comment">/* Should not happen */</span></div>
-<div class="line"><a name="l04665"></a><span class="lineno"> 4665</span>                         {</div>
-<div class="line"><a name="l04666"></a><span class="lineno"> 4666</span>                             dsigma = 1.0; </div>
-<div class="line"><a name="l04667"></a><span class="lineno"> 4667</span>                         }</div>
-<div class="line"><a name="l04668"></a><span class="lineno"> 4668</span> </div>
-<div class="line"><a name="l04669"></a><span class="lineno"> 4669</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>((cpl_table_set_int   (profile_data, <span class="stringliteral">"Order"</span>, profile_row, order),</div>
-<div class="line"><a name="l04670"></a><span class="lineno"> 4670</span>                            cpl_table_set_int   (profile_data, <span class="stringliteral">"X"</span>    , profile_row, x),</div>
-<div class="line"><a name="l04671"></a><span class="lineno"> 4671</span>                            cpl_table_set_double(profile_data, <span class="stringliteral">"Y0"</span>   , profile_row, y_0),</div>
-<div class="line"><a name="l04672"></a><span class="lineno"> 4672</span>                            cpl_table_set_double(profile_data, <span class="stringliteral">"Sigma"</span>, profile_row, sigma),</div>
-<div class="line"><a name="l04673"></a><span class="lineno"> 4673</span>                            cpl_table_set_double(profile_data, <span class="stringliteral">"Norm"</span> , profile_row, 1),</div>
-<div class="line"><a name="l04674"></a><span class="lineno"> 4674</span>                            cpl_table_set_double(profile_data, <span class="stringliteral">"dY0"</span>  , profile_row, dy0),</div>
-<div class="line"><a name="l04675"></a><span class="lineno"> 4675</span>                            cpl_table_set_double(profile_data, <span class="stringliteral">"dSigma"</span>, profile_row, dsigma),</div>
-<div class="line"><a name="l04676"></a><span class="lineno"> 4676</span>                            cpl_table_set_double(profile_data, <span class="stringliteral">"dNorm"</span>, profile_row, 1),</div>
-<div class="line"><a name="l04677"></a><span class="lineno"> 4677</span>                            cpl_table_set_double(profile_data, <span class="stringliteral">"Y0_world"</span>, profile_row, -1),</div>
-<div class="line"><a name="l04678"></a><span class="lineno"> 4678</span>                            cpl_table_set_double(profile_data, <span class="stringliteral">"Reduced_chisq"</span>, profile_row, </div>
-<div class="line"><a name="l04679"></a><span class="lineno"> 4679</span>                                                 red_chisq)),</div>
-<div class="line"><a name="l04680"></a><span class="lineno"> 4680</span>                           <span class="stringliteral">"Error writing table row %d"</span>, profile_row+1);</div>
-<div class="line"><a name="l04681"></a><span class="lineno"> 4681</span>                     profile_row += 1;</div>
-<div class="line"><a name="l04682"></a><span class="lineno"> 4682</span>                 } <span class="comment">/* For each chunk */</span></div>
-<div class="line"><a name="l04683"></a><span class="lineno"> 4683</span>             } <span class="comment">/* For each order */</span></div>
-<div class="line"><a name="l04684"></a><span class="lineno"> 4684</span> <span class="preprocessor">#if CREATE_DEBUGGING_TABLE</span></div>
-<div class="line"><a name="l04685"></a><span class="lineno"> 4685</span> <span class="preprocessor"></span>            cpl_table_new_column(temp, <span class="stringliteral">"pemp"</span>, CPL_TYPE_DOUBLE); <span class="comment">/* empirical profile */</span></div>
-<div class="line"><a name="l04686"></a><span class="lineno"> 4686</span>             cpl_table_new_column(temp, <span class="stringliteral">"fit"</span>, CPL_TYPE_DOUBLE); <span class="comment">/* fitted profile */</span></div>
-<div class="line"><a name="l04687"></a><span class="lineno"> 4687</span>             cpl_table_new_column(temp, <span class="stringliteral">"pfit"</span>, CPL_TYPE_DOUBLE); <span class="comment">/* fitted profile, normalized */</span></div>
-<div class="line"><a name="l04688"></a><span class="lineno"> 4688</span>             {<span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l04689"></a><span class="lineno"> 4689</span>             <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(temp); i++)</div>
-<div class="line"><a name="l04690"></a><span class="lineno"> 4690</span>                 {</div>
-<div class="line"><a name="l04691"></a><span class="lineno"> 4691</span>                     <span class="keywordtype">double</span> y = cpl_table_get_double(temp, <span class="stringliteral">"y"</span>, i, NULL);</div>
-<div class="line"><a name="l04692"></a><span class="lineno"> 4692</span>                     <span class="keywordtype">int</span> xi = uves_round_double(cpl_table_get_double(temp, <span class="stringliteral">"x"</span>, i, NULL));</div>
-<div class="line"><a name="l04693"></a><span class="lineno"> 4693</span>                     <span class="keywordtype">int</span> mi = uves_round_double(cpl_table_get_double(temp, <span class="stringliteral">"order"</span>, i, NULL));</div>
-<div class="line"><a name="l04694"></a><span class="lineno"> 4694</span>                     <span class="keywordtype">double</span> dat = cpl_table_get_double(temp, <span class="stringliteral">"dat"</span>, i, NULL);</div>
-<div class="line"><a name="l04695"></a><span class="lineno"> 4695</span>                     <span class="keywordtype">int</span> idx = xi + (mi - profile_params.minorder)*(profile_params.nx + 1);</div>
-<div class="line"><a name="l04696"></a><span class="lineno"> 4696</span>                     <span class="keywordtype">double</span> flux_fit;</div>
-<div class="line"><a name="l04697"></a><span class="lineno"> 4697</span>                     <span class="keywordtype">double</span> xar[3];</div>
-<div class="line"><a name="l04698"></a><span class="lineno"> 4698</span>                     xar[0] = xi;</div>
-<div class="line"><a name="l04699"></a><span class="lineno"> 4699</span>                     xar[1] = y;</div>
-<div class="line"><a name="l04700"></a><span class="lineno"> 4700</span>                     xar[2] = mi;</div>
-<div class="line"><a name="l04701"></a><span class="lineno"> 4701</span>                     </div>
-<div class="line"><a name="l04702"></a><span class="lineno"> 4702</span>                     profile_f(xar,</div>
-<div class="line"><a name="l04703"></a><span class="lineno"> 4703</span>                               cpl_vector_get_data(coeffs), &flux_fit);</div>
-<div class="line"><a name="l04704"></a><span class="lineno"> 4704</span>                     </div>
-<div class="line"><a name="l04705"></a><span class="lineno"> 4705</span>                     cpl_table_set(temp, <span class="stringliteral">"pemp"</span>, i,</div>
-<div class="line"><a name="l04706"></a><span class="lineno"> 4706</span>                                   (dat - profile_params.sky[idx])/profile_params.flux[idx]);</div>
-<div class="line"><a name="l04707"></a><span class="lineno"> 4707</span>                     </div>
-<div class="line"><a name="l04708"></a><span class="lineno"> 4708</span>                     cpl_table_set(temp, <span class="stringliteral">"fit"</span>, i, flux_fit);</div>
-<div class="line"><a name="l04709"></a><span class="lineno"> 4709</span> </div>
-<div class="line"><a name="l04710"></a><span class="lineno"> 4710</span>                     cpl_table_set(temp, <span class="stringliteral">"pfit"</span>, i,</div>
-<div class="line"><a name="l04711"></a><span class="lineno"> 4711</span>                                   (flux_fit - profile_params.sky[idx])/profile_params.flux[idx]);</div>
-<div class="line"><a name="l04712"></a><span class="lineno"> 4712</span>                 }</div>
-<div class="line"><a name="l04713"></a><span class="lineno"> 4713</span>             }</div>
-<div class="line"><a name="l04714"></a><span class="lineno"> 4714</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l04715"></a><span class="lineno"> 4715</span>                 cpl_table_save(temp, NULL, NULL, <span class="stringliteral">"tab.fits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l04716"></a><span class="lineno"> 4716</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04717"></a><span class="lineno"> 4717</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l04718"></a><span class="lineno"> 4718</span>     }</div>
-<div class="line"><a name="l04719"></a><span class="lineno"> 4719</span> </div>
-<div class="line"><a name="l04720"></a><span class="lineno"> 4720</span> <span class="preprocessor">#else  </span><span class="comment">/* if NEW_METHOD */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l04721"></a><span class="lineno"> 4721</span> <span class="preprocessor"></span>    dy    = cpl_vector_new((chunk+1) * ((<span class="keywordtype">int</span>)(pos->sg.length + 3)));</div>
-<div class="line"><a name="l04722"></a><span class="lineno"> 4722</span>     prof  = cpl_vector_new((chunk+1) * ((<span class="keywordtype">int</span>)(pos->sg.length + 3)));</div>
-<div class="line"><a name="l04723"></a><span class="lineno"> 4723</span>     prof2 = cpl_vector_new((chunk+1) * ((<span class="keywordtype">int</span>)(pos->sg.length + 3)));</div>
-<div class="line"><a name="l04724"></a><span class="lineno"> 4724</span>     dprof = cpl_vector_new((chunk+1) * ((<span class="keywordtype">int</span>)(pos->sg.length + 3)));</div>
-<div class="line"><a name="l04725"></a><span class="lineno"> 4725</span> </div>
-<div class="line"><a name="l04726"></a><span class="lineno"> 4726</span>     <span class="keywordflow">for</span> (x = 1 + chunk/2; x + chunk/2 <= pos->nx; x += chunk) {</div>
-<div class="line"><a name="l04727"></a><span class="lineno"> 4727</span>         <span class="comment">/* Collapse chunk [x-chunk/2 ; x+chunk/2],</span></div>
-<div class="line"><a name="l04728"></a><span class="lineno"> 4728</span> <span class="comment">           then fit profile (this is to have better</span></div>
-<div class="line"><a name="l04729"></a><span class="lineno"> 4729</span> <span class="comment">           statistics than if fitting individual bins). */</span></div>
-<div class="line"><a name="l04730"></a><span class="lineno"> 4730</span>         <span class="keyword">const</span> <span class="keywordtype">int</span> points_needed_for_fit = 6;</div>
-<div class="line"><a name="l04731"></a><span class="lineno"> 4731</span>         <span class="keywordtype">int</span> n = 0;</div>
-<div class="line"><a name="l04732"></a><span class="lineno"> 4732</span>         <span class="keywordtype">int</span> nbad = 0;</div>
-<div class="line"><a name="l04733"></a><span class="lineno"> 4733</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l04734"></a><span class="lineno"> 4734</span>         </div>
-<div class="line"><a name="l04735"></a><span class="lineno"> 4735</span>         <span class="comment">/* Use realloc rather than malloc (for each chunk) */</span></div>
-<div class="line"><a name="l04736"></a><span class="lineno"> 4736</span>         cpl_vector_set_size(dy,    (chunk+1) * ((<span class="keywordtype">int</span>)(pos->sg.length + 3)));</div>
-<div class="line"><a name="l04737"></a><span class="lineno"> 4737</span>         cpl_vector_set_size(prof,  (chunk+1) * ((<span class="keywordtype">int</span>)(pos->sg.length + 3)));</div>
-<div class="line"><a name="l04738"></a><span class="lineno"> 4738</span>         cpl_vector_set_size(prof2, (chunk+1) * ((<span class="keywordtype">int</span>)(pos->sg.length + 3)));</div>
-<div class="line"><a name="l04739"></a><span class="lineno"> 4739</span>         cpl_vector_set_size(dprof, (chunk+1) * ((<span class="keywordtype">int</span>)(pos->sg.length + 3)));</div>
-<div class="line"><a name="l04740"></a><span class="lineno"> 4740</span>         n = 0; <span class="comment">/* Number of points inserted in dy, prof, dprof */</span></div>
-<div class="line"><a name="l04741"></a><span class="lineno"> 4741</span> </div>
-<div class="line"><a name="l04742"></a><span class="lineno"> 4742</span>         <span class="keywordflow">for</span> (i = 0; i < nbins; i++)</div>
-<div class="line"><a name="l04743"></a><span class="lineno"> 4743</span>             {</div>
-<div class="line"><a name="l04744"></a><span class="lineno"> 4744</span>                 <span class="comment">/* Each wavel.bin contributes with one data point</span></div>
-<div class="line"><a name="l04745"></a><span class="lineno"> 4745</span> <span class="comment">                   to each spatial bin. Therefore each spatial</span></div>
-<div class="line"><a name="l04746"></a><span class="lineno"> 4746</span> <span class="comment">                   bin must be able to hold (chunk+1) points. But</span></div>
-<div class="line"><a name="l04747"></a><span class="lineno"> 4747</span> <span class="comment">                   to be *completely* safe against weird rounding</span></div>
-<div class="line"><a name="l04748"></a><span class="lineno"> 4748</span> <span class="comment">                   (depending on the architecture), make the vectors</span></div>
-<div class="line"><a name="l04749"></a><span class="lineno"> 4749</span> <span class="comment">                   a bit longer. */</span></div>
-<div class="line"><a name="l04750"></a><span class="lineno"> 4750</span>                 cpl_vector_set_size(data[i], 2*(chunk + 1));</div>
-<div class="line"><a name="l04751"></a><span class="lineno"> 4751</span>                 size[i] = 0;</div>
-<div class="line"><a name="l04752"></a><span class="lineno"> 4752</span>             }</div>
-<div class="line"><a name="l04753"></a><span class="lineno"> 4753</span>         </div>
-<div class="line"><a name="l04754"></a><span class="lineno"> 4754</span> </div>
-<div class="line"><a name="l04755"></a><span class="lineno"> 4755</span>         <span class="comment">/* Bin data in this chunk */</span></div>
-<div class="line"><a name="l04756"></a><span class="lineno"> 4756</span>         <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l04757"></a><span class="lineno"> 4757</span>                                     x - chunk/2 + 1,</div>
-<div class="line"><a name="l04758"></a><span class="lineno"> 4758</span>                                     x + chunk/2,</div>
-<div class="line"><a name="l04759"></a><span class="lineno"> 4759</span>                                     pos->order, pos->order,</div>
-<div class="line"><a name="l04760"></a><span class="lineno"> 4760</span>                                     image_bpm, <span class="keyword">true</span>);</div>
-<div class="line"><a name="l04761"></a><span class="lineno"> 4761</span>              !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line"><a name="l04762"></a><span class="lineno"> 4762</span>              <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line"><a name="l04763"></a><span class="lineno"> 4763</span>             {</div>
-<div class="line"><a name="l04764"></a><span class="lineno"> 4764</span>                 <span class="keywordtype">int</span> bin = pos->y - pos->ylow;</div>
-<div class="line"><a name="l04765"></a><span class="lineno"> 4765</span>                 </div>
-<div class="line"><a name="l04766"></a><span class="lineno"> 4766</span>                 <span class="comment">/* Group into spatial bins */</span></div>
-<div class="line"><a name="l04767"></a><span class="lineno"> 4767</span>                 <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_vector_set(data[bin], size[bin], </div>
-<div class="line"><a name="l04768"></a><span class="lineno"> 4768</span>                                            DATA(image_data, pos)));</div>
-<div class="line"><a name="l04769"></a><span class="lineno"> 4769</span>                 size[bin]++;</div>
-<div class="line"><a name="l04770"></a><span class="lineno"> 4770</span>             }</div>
-<div class="line"><a name="l04771"></a><span class="lineno"> 4771</span> </div>
-<div class="line"><a name="l04772"></a><span class="lineno"> 4772</span>         <span class="comment">/* Get threshold values for each spatial bin in this chunk */</span></div>
-<div class="line"><a name="l04773"></a><span class="lineno"> 4773</span>         <span class="keywordflow">for</span> (i = 0; i < nbins; i++)</div>
-<div class="line"><a name="l04774"></a><span class="lineno"> 4774</span>             {</div>
-<div class="line"><a name="l04775"></a><span class="lineno"> 4775</span>                 <span class="keywordflow">if</span> (size[i] == 0)</div>
-<div class="line"><a name="l04776"></a><span class="lineno"> 4776</span>                     {</div>
-<div class="line"><a name="l04777"></a><span class="lineno"> 4777</span>                         <span class="comment">/* locut[i] hicut[i] are not used */</span></div>
-<div class="line"><a name="l04778"></a><span class="lineno"> 4778</span>                     }</div>
-<div class="line"><a name="l04779"></a><span class="lineno"> 4779</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (size[i] <= chunk/2)</div>
-<div class="line"><a name="l04780"></a><span class="lineno"> 4780</span>                     {</div>
-<div class="line"><a name="l04781"></a><span class="lineno"> 4781</span>                         <span class="comment">/* Not enough statistics to verify that the</span></div>
-<div class="line"><a name="l04782"></a><span class="lineno"> 4782</span> <span class="comment">                           points are not outliers. Mark them as bad.*/</span></div>
-<div class="line"><a name="l04783"></a><span class="lineno"> 4783</span>                         locut[i] = cpl_vector_get_max(data[i]) + 1;</div>
-<div class="line"><a name="l04784"></a><span class="lineno"> 4784</span>                         hicut[i] = cpl_vector_get_min(data[i]) - 1;</div>
-<div class="line"><a name="l04785"></a><span class="lineno"> 4785</span>                     }</div>
-<div class="line"><a name="l04786"></a><span class="lineno"> 4786</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04787"></a><span class="lineno"> 4787</span>                     {</div>
-<div class="line"><a name="l04788"></a><span class="lineno"> 4788</span>                         <span class="comment">/* Iteratively do kappa-sigma clipping to</span></div>
-<div class="line"><a name="l04789"></a><span class="lineno"> 4789</span> <span class="comment">                           find the threshold for the current bin */</span></div>
-<div class="line"><a name="l04790"></a><span class="lineno"> 4790</span>                         <span class="keywordtype">double</span> median, stdev;</div>
-<div class="line"><a name="l04791"></a><span class="lineno"> 4791</span>                         <span class="keywordtype">double</span> kappa = 3.0;</div>
-<div class="line"><a name="l04792"></a><span class="lineno"> 4792</span>                         <span class="keywordtype">double</span> *data_data;</div>
-<div class="line"><a name="l04793"></a><span class="lineno"> 4793</span>                         <span class="keywordtype">int</span> k;</div>
-<div class="line"><a name="l04794"></a><span class="lineno"> 4794</span>                         </div>
-<div class="line"><a name="l04795"></a><span class="lineno"> 4795</span>                         k = size[i];</div>
-<div class="line"><a name="l04796"></a><span class="lineno"> 4796</span>                         </div>
-<div class="line"><a name="l04797"></a><span class="lineno"> 4797</span>                         <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l04798"></a><span class="lineno"> 4798</span>                             cpl_vector_set_size(data[i], k);</div>
-<div class="line"><a name="l04799"></a><span class="lineno"> 4799</span>                             size[i] = k;</div>
-<div class="line"><a name="l04800"></a><span class="lineno"> 4800</span>                             data_data = cpl_vector_get_data(data[i]);</div>
-<div class="line"><a name="l04801"></a><span class="lineno"> 4801</span> </div>
-<div class="line"><a name="l04802"></a><span class="lineno"> 4802</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l04803"></a><span class="lineno"> 4803</span> <span class="preprocessor"></span>                            median = cpl_vector_get_median_const(data[i]);</div>
-<div class="line"><a name="l04804"></a><span class="lineno"> 4804</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l04805"></a><span class="lineno"> 4805</span> <span class="preprocessor"></span>                            median = cpl_vector_get_median(data[i]);</div>
-<div class="line"><a name="l04806"></a><span class="lineno"> 4806</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04807"></a><span class="lineno"> 4807</span> <span class="preprocessor"></span>                            stdev = cpl_vector_get_stdev(data[i]);</div>
-<div class="line"><a name="l04808"></a><span class="lineno"> 4808</span>                             locut[i] = median - kappa*stdev;</div>
-<div class="line"><a name="l04809"></a><span class="lineno"> 4809</span>                             hicut[i] = median + kappa*stdev;</div>
-<div class="line"><a name="l04810"></a><span class="lineno"> 4810</span>                             </div>
-<div class="line"><a name="l04811"></a><span class="lineno"> 4811</span>                             <span class="comment">/* Copy good points to beginning of vector */</span></div>
-<div class="line"><a name="l04812"></a><span class="lineno"> 4812</span>                             k = 0;</div>
-<div class="line"><a name="l04813"></a><span class="lineno"> 4813</span>                             {</div>
-<div class="line"><a name="l04814"></a><span class="lineno"> 4814</span>                                 <span class="keywordtype">int</span> j;</div>
-<div class="line"><a name="l04815"></a><span class="lineno"> 4815</span>                                 <span class="keywordflow">for</span> (j = 0; j < size[i]; j++)</div>
-<div class="line"><a name="l04816"></a><span class="lineno"> 4816</span>                                     {</div>
-<div class="line"><a name="l04817"></a><span class="lineno"> 4817</span>                                         <span class="keywordflow">if</span> (locut[i] <= data_data[j] &&</div>
-<div class="line"><a name="l04818"></a><span class="lineno"> 4818</span>                                             data_data[j] <= hicut[i])</div>
-<div class="line"><a name="l04819"></a><span class="lineno"> 4819</span>                                             {</div>
-<div class="line"><a name="l04820"></a><span class="lineno"> 4820</span>                                                 data_data[k] = data_data[j];</div>
-<div class="line"><a name="l04821"></a><span class="lineno"> 4821</span>                                                 k++;</div>
-<div class="line"><a name="l04822"></a><span class="lineno"> 4822</span>                                             }</div>
-<div class="line"><a name="l04823"></a><span class="lineno"> 4823</span>                                     }</div>
-<div class="line"><a name="l04824"></a><span class="lineno"> 4824</span>                             }</div>
-<div class="line"><a name="l04825"></a><span class="lineno"> 4825</span>                         }</div>
-<div class="line"><a name="l04826"></a><span class="lineno"> 4826</span>                         <span class="keywordflow">while</span> (k < size[i] && k > 1);</div>
-<div class="line"><a name="l04827"></a><span class="lineno"> 4827</span>                         <span class="comment">/* while still more points rejected */</span></div>
-<div class="line"><a name="l04828"></a><span class="lineno"> 4828</span>                     }</div>
-<div class="line"><a name="l04829"></a><span class="lineno"> 4829</span>             } <span class="comment">/* for each bin */</span></div>
-<div class="line"><a name="l04830"></a><span class="lineno"> 4830</span> </div>
-<div class="line"><a name="l04831"></a><span class="lineno"> 4831</span>         <span class="comment">/* Collect good data in this chunk */</span></div>
-<div class="line"><a name="l04832"></a><span class="lineno"> 4832</span>         <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l04833"></a><span class="lineno"> 4833</span>                                     x - chunk/2 + 1,</div>
-<div class="line"><a name="l04834"></a><span class="lineno"> 4834</span>                                     x + chunk/2,</div>
-<div class="line"><a name="l04835"></a><span class="lineno"> 4835</span>                                     pos->order, pos->order,</div>
-<div class="line"><a name="l04836"></a><span class="lineno"> 4836</span>                                     NULL, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l04837"></a><span class="lineno"> 4837</span>              !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line"><a name="l04838"></a><span class="lineno"> 4838</span>              <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos))</div>
-<div class="line"><a name="l04839"></a><span class="lineno"> 4839</span>             {</div>
-<div class="line"><a name="l04840"></a><span class="lineno"> 4840</span>                 <span class="keywordtype">double</span> flux = 0;</div>
-<div class="line"><a name="l04841"></a><span class="lineno"> 4841</span>                 <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l04842"></a><span class="lineno"> 4842</span>                     {</div>
-<div class="line"><a name="l04843"></a><span class="lineno"> 4843</span>                         <span class="keywordtype">int</span> bin = pos->y - pos->ylow;</div>
-<div class="line"><a name="l04844"></a><span class="lineno"> 4844</span>                         </div>
-<div class="line"><a name="l04845"></a><span class="lineno"> 4845</span>                         <span class="keywordflow">if</span> (ISGOOD(image_bpm, pos) &&</div>
-<div class="line"><a name="l04846"></a><span class="lineno"> 4846</span>                             (locut[bin] <= DATA(image_data, pos) &&</div>
-<div class="line"><a name="l04847"></a><span class="lineno"> 4847</span>                              DATA(image_data, pos) <= hicut[bin])</div>
-<div class="line"><a name="l04848"></a><span class="lineno"> 4848</span>                             )</div>
-<div class="line"><a name="l04849"></a><span class="lineno"> 4849</span>                             {</div>
-<div class="line"><a name="l04850"></a><span class="lineno"> 4850</span>                                 flux += DATA(image_data, pos);</div>
-<div class="line"><a name="l04851"></a><span class="lineno"> 4851</span>                             }</div>
-<div class="line"><a name="l04852"></a><span class="lineno"> 4852</span>                     }</div>
-<div class="line"><a name="l04853"></a><span class="lineno"> 4853</span> </div>
-<div class="line"><a name="l04854"></a><span class="lineno"> 4854</span>                 <span class="keywordflow">if</span> (flux != 0)</div>
-<div class="line"><a name="l04855"></a><span class="lineno"> 4855</span>                     {</div>
-<div class="line"><a name="l04856"></a><span class="lineno"> 4856</span>                         <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l04857"></a><span class="lineno"> 4857</span>                             {</div>
-<div class="line"><a name="l04858"></a><span class="lineno"> 4858</span>                                 <span class="keywordtype">int</span> bin = pos->y - pos->ylow;</div>
-<div class="line"><a name="l04859"></a><span class="lineno"> 4859</span>                                 </div>
-<div class="line"><a name="l04860"></a><span class="lineno"> 4860</span>                                 <span class="keywordflow">if</span> (ISGOOD(image_bpm, pos) &&</div>
-<div class="line"><a name="l04861"></a><span class="lineno"> 4861</span>                                     (locut[bin] <= DATA(image_data, pos) &&</div>
-<div class="line"><a name="l04862"></a><span class="lineno"> 4862</span>                                      DATA(image_data, pos) <= hicut[bin])</div>
-<div class="line"><a name="l04863"></a><span class="lineno"> 4863</span>                                     )</div>
-<div class="line"><a name="l04864"></a><span class="lineno"> 4864</span>                                     {</div>
-<div class="line"><a name="l04865"></a><span class="lineno"> 4865</span>                                         <span class="keywordtype">double</span> pix = DATA(image_data, pos);</div>
-<div class="line"><a name="l04866"></a><span class="lineno"> 4866</span>                                         </div>
-<div class="line"><a name="l04867"></a><span class="lineno"> 4867</span>                                         cpl_vector_set(dy   , n, pos->y - pos->ycenter);</div>
-<div class="line"><a name="l04868"></a><span class="lineno"> 4868</span>                                         cpl_vector_set(prof , n, pix/flux); </div>
-<div class="line"><a name="l04869"></a><span class="lineno"> 4869</span>                                         cpl_vector_set(dprof, n, (flux > 0) ?</div>
-<div class="line"><a name="l04870"></a><span class="lineno"> 4870</span>                                                         DATA(noise_data, pos)/flux :</div>
-<div class="line"><a name="l04871"></a><span class="lineno"> 4871</span>                                                        -DATA(noise_data, pos)/flux);</div>
-<div class="line"><a name="l04872"></a><span class="lineno"> 4872</span>                                         n++;</div>
-<div class="line"><a name="l04873"></a><span class="lineno"> 4873</span>                                     }</div>
-<div class="line"><a name="l04874"></a><span class="lineno"> 4874</span>                                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04875"></a><span class="lineno"> 4875</span>                                     {</div>
-<div class="line"><a name="l04876"></a><span class="lineno"> 4876</span>                                         nbad += 1;</div>
-<div class="line"><a name="l04877"></a><span class="lineno"> 4877</span>                                         <span class="comment">/* uves_msg_debug("Bad pixel at (%d, %d)", </span></div>
-<div class="line"><a name="l04878"></a><span class="lineno"> 4878</span> <span class="comment">                       pos->x, pos->y); */</span></div>
-<div class="line"><a name="l04879"></a><span class="lineno"> 4879</span>                                     }</div>
-<div class="line"><a name="l04880"></a><span class="lineno"> 4880</span>                             }</div>
-<div class="line"><a name="l04881"></a><span class="lineno"> 4881</span>                     }</div>
-<div class="line"><a name="l04882"></a><span class="lineno"> 4882</span>             } <span class="comment">/* collect data */</span></div>
-<div class="line"><a name="l04883"></a><span class="lineno"> 4883</span>         </div>
-<div class="line"><a name="l04884"></a><span class="lineno"> 4884</span>         <span class="keywordflow">if</span> (n >= points_needed_for_fit) {</div>
-<div class="line"><a name="l04885"></a><span class="lineno"> 4885</span>             <span class="keywordtype">double</span> y_0, norm, background, slope, sigma, red_chisq;</div>
-<div class="line"><a name="l04886"></a><span class="lineno"> 4886</span>           </div>
-<div class="line"><a name="l04887"></a><span class="lineno"> 4887</span>             cpl_vector_set_size(dy,    n);</div>
-<div class="line"><a name="l04888"></a><span class="lineno"> 4888</span>             cpl_vector_set_size(prof,  n);</div>
-<div class="line"><a name="l04889"></a><span class="lineno"> 4889</span>             cpl_vector_set_size(prof2, n);</div>
-<div class="line"><a name="l04890"></a><span class="lineno"> 4890</span>             cpl_vector_set_size(dprof, n);</div>
-<div class="line"><a name="l04891"></a><span class="lineno"> 4891</span> </div>
-<div class="line"><a name="l04892"></a><span class="lineno"> 4892</span>             <span class="comment">/* Fit */</span></div>
-<div class="line"><a name="l04893"></a><span class="lineno"> 4893</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Fitting chunk (%d, %d)"</span>, </div>
-<div class="line"><a name="l04894"></a><span class="lineno"> 4894</span>                            x-chunk/2, x+chunk/2);</div>
-<div class="line"><a name="l04895"></a><span class="lineno"> 4895</span>                     </div>
-<div class="line"><a name="l04896"></a><span class="lineno"> 4896</span> <span class="comment">//          cpl_vector_dump(dy, stdout);</span></div>
-<div class="line"><a name="l04897"></a><span class="lineno"> 4897</span> <span class="comment">//          cpl_vector_dump(prof, stdout);</span></div>
-<div class="line"><a name="l04898"></a><span class="lineno"> 4898</span> </div>
-<div class="line"><a name="l04899"></a><span class="lineno"> 4899</span>             uves_free_matrix(&covariance);</div>
-<div class="line"><a name="l04900"></a><span class="lineno"> 4900</span>                     </div>
-<div class="line"><a name="l04901"></a><span class="lineno"> 4901</span>             background = 0;  <span class="comment">/* The sky was already subtracted */</span></div>
-<div class="line"><a name="l04902"></a><span class="lineno"> 4902</span>             norm = 1.0;      <span class="comment">/* We are fitting the normalized profile.</span></div>
-<div class="line"><a name="l04903"></a><span class="lineno"> 4903</span> <span class="comment">                                Reducing the number of free parameters</span></div>
-<div class="line"><a name="l04904"></a><span class="lineno"> 4904</span> <span class="comment">                                gives a better fit.</span></div>
-<div class="line"><a name="l04905"></a><span class="lineno"> 4905</span> <span class="comment">                             */</span></div>
-<div class="line"><a name="l04906"></a><span class="lineno"> 4906</span>                                         </div>
-<div class="line"><a name="l04907"></a><span class="lineno"> 4907</span>             <span class="comment">/* Use constant uncertainty */</span></div>
-<div class="line"><a name="l04908"></a><span class="lineno"> 4908</span> <span class="keywordflow">if</span> (0)      {</div>
-<div class="line"><a name="l04909"></a><span class="lineno"> 4909</span>     <span class="comment">/* This gives a better fit (narrower profile at low S/N)</span></div>
-<div class="line"><a name="l04910"></a><span class="lineno"> 4910</span> <span class="comment">       but overestimates chi^2 </span></div>
-<div class="line"><a name="l04911"></a><span class="lineno"> 4911</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l04912"></a><span class="lineno"> 4912</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l04913"></a><span class="lineno"> 4913</span> <span class="preprocessor"></span>                <span class="keywordtype">double</span> median = cpl_vector_get_median_const(dprof);</div>
-<div class="line"><a name="l04914"></a><span class="lineno"> 4914</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l04915"></a><span class="lineno"> 4915</span> <span class="preprocessor"></span>                <span class="keywordtype">double</span> median = cpl_vector_get_median(dprof);</div>
-<div class="line"><a name="l04916"></a><span class="lineno"> 4916</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04917"></a><span class="lineno"> 4917</span> <span class="preprocessor"></span>                cpl_vector_fill(dprof, median);</div>
-<div class="line"><a name="l04918"></a><span class="lineno"> 4918</span>             }</div>
-<div class="line"><a name="l04919"></a><span class="lineno"> 4919</span>             uves_fit_1d(dy, NULL,</div>
-<div class="line"><a name="l04920"></a><span class="lineno"> 4920</span> #<span class="keywordflow">if</span> 1</div>
-<div class="line"><a name="l04921"></a><span class="lineno"> 4921</span>                         prof, dprof,</div>
-<div class="line"><a name="l04922"></a><span class="lineno"> 4922</span> #<span class="keywordflow">else</span></div>
-<div class="line"><a name="l04923"></a><span class="lineno"> 4923</span>                         prof, NULL,</div>
-<div class="line"><a name="l04924"></a><span class="lineno"> 4924</span> #endif</div>
-<div class="line"><a name="l04925"></a><span class="lineno"> 4925</span>                         CPL_FIT_CENTROID |</div>
-<div class="line"><a name="l04926"></a><span class="lineno"> 4926</span>                         CPL_FIT_STDEV,</div>
-<div class="line"><a name="l04927"></a><span class="lineno"> 4927</span>                         <span class="keyword">false</span>,</div>
-<div class="line"><a name="l04928"></a><span class="lineno"> 4928</span>                         &y_0, &sigma, &norm, &background, &slope,</div>
-<div class="line"><a name="l04929"></a><span class="lineno"> 4929</span> #<span class="keywordflow">if</span> 1</div>
-<div class="line"><a name="l04930"></a><span class="lineno"> 4930</span>                         NULL, &red_chisq,      <span class="comment">/* mse, red_chisq */</span></div>
-<div class="line"><a name="l04931"></a><span class="lineno"> 4931</span>                         &covariance,</div>
-<div class="line"><a name="l04932"></a><span class="lineno"> 4932</span> #<span class="keywordflow">else</span></div>
-<div class="line"><a name="l04933"></a><span class="lineno"> 4933</span>                         NULL, NULL,</div>
-<div class="line"><a name="l04934"></a><span class="lineno"> 4934</span>                         NULL,</div>
-<div class="line"><a name="l04935"></a><span class="lineno"> 4935</span> #endif</div>
-<div class="line"><a name="l04936"></a><span class="lineno"> 4936</span>                         f, dfda, M);</div>
-<div class="line"><a name="l04937"></a><span class="lineno"> 4937</span> <span class="preprocessor">#if 1</span></div>
-<div class="line"><a name="l04938"></a><span class="lineno"> 4938</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l04939"></a><span class="lineno"> 4939</span> <span class="preprocessor"></span>            covariance = cpl_matrix_new(4,4);</div>
-<div class="line"><a name="l04940"></a><span class="lineno"> 4940</span>             cpl_matrix_set(covariance, 0, 0, 1);</div>
-<div class="line"><a name="l04941"></a><span class="lineno"> 4941</span>             cpl_matrix_set(covariance, 1, 1, 1);</div>
-<div class="line"><a name="l04942"></a><span class="lineno"> 4942</span>             cpl_matrix_set(covariance, 2, 2, 1);</div>
-<div class="line"><a name="l04943"></a><span class="lineno"> 4943</span>             cpl_matrix_set(covariance, 3, 3, 1);</div>
-<div class="line"><a name="l04944"></a><span class="lineno"> 4944</span>             red_chisq = 1;</div>
-<div class="line"><a name="l04945"></a><span class="lineno"> 4945</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04946"></a><span class="lineno"> 4946</span> <span class="preprocessor"></span>            <span class="keywordflow">if</span> (<span class="keyword">false</span>) <span class="comment">/* && 800-chunk/2 <= x && x <= 800+chunk/2 && order == 17) */</span></div>
-<div class="line"><a name="l04947"></a><span class="lineno"> 4947</span>                 {</div>
-<div class="line"><a name="l04948"></a><span class="lineno"> 4948</span> <span class="comment">/*                  uves_msg_error("dumping chunk at x,order = %d, %d", x, order);</span></div>
-<div class="line"><a name="l04949"></a><span class="lineno"> 4949</span> <span class="comment">                    uves_msg_error("dy = ");</span></div>
-<div class="line"><a name="l04950"></a><span class="lineno"> 4950</span> <span class="comment">                    cpl_vector_dump(dy, stderr);</span></div>
-<div class="line"><a name="l04951"></a><span class="lineno"> 4951</span> <span class="comment">                    uves_msg_error("prof = ");</span></div>
-<div class="line"><a name="l04952"></a><span class="lineno"> 4952</span> <span class="comment">                    cpl_vector_dump(prof, stderr);</span></div>
-<div class="line"><a name="l04953"></a><span class="lineno"> 4953</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l04954"></a><span class="lineno"> 4954</span> </div>
-<div class="line"><a name="l04955"></a><span class="lineno"> 4955</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l04956"></a><span class="lineno"> 4956</span> <span class="comment">                    cpl_bivector *b = cpl_bivector_wrap_vectors(dy, prof);</span></div>
-<div class="line"><a name="l04957"></a><span class="lineno"> 4957</span> <span class="comment">                    cpl_plot_bivector("set grid;set yrange[-1:1];set xlabel 'Wavelength [m]';",</span></div>
-<div class="line"><a name="l04958"></a><span class="lineno"> 4958</span> <span class="comment">                                         "t 'Spatial profile' w points",</span></div>
-<div class="line"><a name="l04959"></a><span class="lineno"> 4959</span> <span class="comment">                                         "",b);</span></div>
-<div class="line"><a name="l04960"></a><span class="lineno"> 4960</span> <span class="comment">                    cpl_bivector_unwrap_vectors(b);</span></div>
-<div class="line"><a name="l04961"></a><span class="lineno"> 4961</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l04962"></a><span class="lineno"> 4962</span> </div>
-<div class="line"><a name="l04963"></a><span class="lineno"> 4963</span>                     cpl_vector *pl[] = {NULL, NULL, NULL};</div>
-<div class="line"><a name="l04964"></a><span class="lineno"> 4964</span> </div>
-<div class="line"><a name="l04965"></a><span class="lineno"> 4965</span>                     cpl_vector *fit = cpl_vector_new(cpl_vector_get_size(dy));</div>
-<div class="line"><a name="l04966"></a><span class="lineno"> 4966</span>                     {</div>
-<div class="line"><a name="l04967"></a><span class="lineno"> 4967</span>                     <span class="keywordflow">for</span> (i = 0; i < cpl_vector_get_size(dy); i++)</div>
-<div class="line"><a name="l04968"></a><span class="lineno"> 4968</span>                         {</div>
-<div class="line"><a name="l04969"></a><span class="lineno"> 4969</span>                             <span class="keywordtype">double</span> yy = cpl_vector_get(dy, i);</div>
-<div class="line"><a name="l04970"></a><span class="lineno"> 4970</span>                             cpl_vector_set(fit, i,</div>
-<div class="line"><a name="l04971"></a><span class="lineno"> 4971</span>                                            exp(-(yy-y_0)*(yy-y_0)/(2*sigma*sigma))</div>
-<div class="line"><a name="l04972"></a><span class="lineno"> 4972</span>                                            /(sigma*sqrt(2*M_PI)));</div>
-<div class="line"><a name="l04973"></a><span class="lineno"> 4973</span>                         }</div>
-<div class="line"><a name="l04974"></a><span class="lineno"> 4974</span>                     }</div>
-<div class="line"><a name="l04975"></a><span class="lineno"> 4975</span> </div>
-<div class="line"><a name="l04976"></a><span class="lineno"> 4976</span>                     <span class="comment">/* uves_msg_error("result is %f, %f, %f, %f  %d   %f",</span></div>
-<div class="line"><a name="l04977"></a><span class="lineno"> 4977</span> <span class="comment">                       y_0, sigma, norm, background, cpl_error_get_code(), sigma*TWOSQRT2LN2);</span></div>
-<div class="line"><a name="l04978"></a><span class="lineno"> 4978</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l04979"></a><span class="lineno"> 4979</span> </div>
-<div class="line"><a name="l04980"></a><span class="lineno"> 4980</span>                     pl[0] = prof2;</div>
-<div class="line"><a name="l04981"></a><span class="lineno"> 4981</span>                     pl[1] = dprof;</div>
-<div class="line"><a name="l04982"></a><span class="lineno"> 4982</span>                     pl[2] = dprof;</div>
-<div class="line"><a name="l04983"></a><span class="lineno"> 4983</span> <span class="comment">//                  pl[0] = dy;</span></div>
-<div class="line"><a name="l04984"></a><span class="lineno"> 4984</span> <span class="comment">//                  pl[1] = prof;</span></div>
-<div class="line"><a name="l04985"></a><span class="lineno"> 4985</span> <span class="comment">//                  pl[2] = fit;</span></div>
-<div class="line"><a name="l04986"></a><span class="lineno"> 4986</span>                     <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l04987"></a><span class="lineno"> 4987</span>                     cpl_plot_vectors(<span class="stringliteral">"set grid;set yrange[0:0.5];set xlabel 'dy';"</span>,</div>
-<div class="line"><a name="l04988"></a><span class="lineno"> 4988</span>                                         <span class="stringliteral">"t 'Spatial profile' w points"</span>,</div>
-<div class="line"><a name="l04989"></a><span class="lineno"> 4989</span>                                         <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l04990"></a><span class="lineno"> 4990</span>                                         (<span class="keyword">const</span> cpl_vector **)pl, 3);</div>
-<div class="line"><a name="l04991"></a><span class="lineno"> 4991</span>                     </div>
-<div class="line"><a name="l04992"></a><span class="lineno"> 4992</span> </div>
-<div class="line"><a name="l04993"></a><span class="lineno"> 4993</span>                     pl[0] = prof;</div>
-<div class="line"><a name="l04994"></a><span class="lineno"> 4994</span>                     pl[1] = dprof;</div>
-<div class="line"><a name="l04995"></a><span class="lineno"> 4995</span>                     pl[2] = dprof;</div>
-<div class="line"><a name="l04996"></a><span class="lineno"> 4996</span> </div>
-<div class="line"><a name="l04997"></a><span class="lineno"> 4997</span>                     cpl_plot_vectors(<span class="stringliteral">"set grid;set xrange[-2:2];"</span></div>
-<div class="line"><a name="l04998"></a><span class="lineno"> 4998</span>                                         <span class="stringliteral">"set yrange[0:0.5];set xlabel 'dy';"</span>,</div>
-<div class="line"><a name="l04999"></a><span class="lineno"> 4999</span>                                         <span class="stringliteral">"t 'Spatial profile' w points"</span>,</div>
-<div class="line"><a name="l05000"></a><span class="lineno"> 5000</span>                                         <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l05001"></a><span class="lineno"> 5001</span>                                         (<span class="keyword">const</span> cpl_vector **)pl, 3);</div>
-<div class="line"><a name="l05002"></a><span class="lineno"> 5002</span>                     </div>
-<div class="line"><a name="l05003"></a><span class="lineno"> 5003</span>                     uves_free_vector(&fit);</div>
-<div class="line"><a name="l05004"></a><span class="lineno"> 5004</span> </div>
-<div class="line"><a name="l05005"></a><span class="lineno"> 5005</span>                 }</div>
-<div class="line"><a name="l05006"></a><span class="lineno"> 5006</span> </div>
-<div class="line"><a name="l05007"></a><span class="lineno"> 5007</span>             <span class="comment">/* Convert to global coordinate (at middle of chunk) */</span></div>
-<div class="line"><a name="l05008"></a><span class="lineno"> 5008</span>             <a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos, </div>
-<div class="line"><a name="l05009"></a><span class="lineno"> 5009</span>                                    x, x,</div>
-<div class="line"><a name="l05010"></a><span class="lineno"> 5010</span>                                    pos->order, pos->order,</div>
-<div class="line"><a name="l05011"></a><span class="lineno"> 5011</span>                                    NULL,</div>
-<div class="line"><a name="l05012"></a><span class="lineno"> 5012</span>                                    <span class="keyword">false</span>);</div>
-<div class="line"><a name="l05013"></a><span class="lineno"> 5013</span>             y_0 += pos->ycenter;</div>
-<div class="line"><a name="l05014"></a><span class="lineno"> 5014</span>                             </div>
-<div class="line"><a name="l05015"></a><span class="lineno"> 5015</span>             <span class="comment">/* Recover from a failed fit.</span></div>
-<div class="line"><a name="l05016"></a><span class="lineno"> 5016</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05017"></a><span class="lineno"> 5017</span> <span class="comment">             * The gaussian fitting routine itself guarantees </span></div>
-<div class="line"><a name="l05018"></a><span class="lineno"> 5018</span> <span class="comment">             * that, on success, sigma < slit_length.</span></div>
-<div class="line"><a name="l05019"></a><span class="lineno"> 5019</span> <span class="comment">             * Tighten this constraint by requiring that also 4sigma < slit_length (see below).</span></div>
-<div class="line"><a name="l05020"></a><span class="lineno"> 5020</span> <span class="comment">             * This is to avoid detecting</span></div>
-<div class="line"><a name="l05021"></a><span class="lineno"> 5021</span> <span class="comment">             *    sky-on-top-of-interorder</span></div>
-<div class="line"><a name="l05022"></a><span class="lineno"> 5022</span> <span class="comment">             * rather than</span></div>
-<div class="line"><a name="l05023"></a><span class="lineno"> 5023</span> <span class="comment">             *    object-on-top-of-sky</span></div>
-<div class="line"><a name="l05024"></a><span class="lineno"> 5024</span> <span class="comment">             * (observed to happen in low-S/N cases when</span></div>
-<div class="line"><a name="l05025"></a><span class="lineno"> 5025</span> <span class="comment">             *  the sky flux dominates the object flux )</span></div>
-<div class="line"><a name="l05026"></a><span class="lineno"> 5026</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05027"></a><span class="lineno"> 5027</span> <span class="comment">             *               object</span></div>
-<div class="line"><a name="l05028"></a><span class="lineno"> 5028</span> <span class="comment">             *              /\</span></div>
-<div class="line"><a name="l05029"></a><span class="lineno"> 5029</span> <span class="comment">             *       |-sky-/  \--sky-|</span></div>
-<div class="line"><a name="l05030"></a><span class="lineno"> 5030</span> <span class="comment">             *       |               |</span></div>
-<div class="line"><a name="l05031"></a><span class="lineno"> 5031</span> <span class="comment">             *       |               |</span></div>
-<div class="line"><a name="l05032"></a><span class="lineno"> 5032</span> <span class="comment">             *  -----|  s  l  i  t   |---interorder--</span></div>
-<div class="line"><a name="l05033"></a><span class="lineno"> 5033</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05034"></a><span class="lineno"> 5034</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05035"></a><span class="lineno"> 5035</span> <span class="comment">             *  Also avoid fits with sigma < 0.2 which are probably CRs</span></div>
-<div class="line"><a name="l05036"></a><span class="lineno"> 5036</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05037"></a><span class="lineno"> 5037</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l05038"></a><span class="lineno"> 5038</span>             <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_CONTINUE || </div>
-<div class="line"><a name="l05039"></a><span class="lineno"> 5039</span>                 cpl_error_get_code()== CPL_ERROR_SINGULAR_MATRIX ||</div>
-<div class="line"><a name="l05040"></a><span class="lineno"> 5040</span>                 4.0*sigma >= pos->sg.length || sigma < 0.2) {</div>
-<div class="line"><a name="l05041"></a><span class="lineno"> 5041</span>                 </div>
-<div class="line"><a name="l05042"></a><span class="lineno"> 5042</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Profile fitting failed at (order, x) = (%d, %d) "</span></div>
-<div class="line"><a name="l05043"></a><span class="lineno"> 5043</span>                                <span class="stringliteral">"(%s), ignoring chunk"</span>,</div>
-<div class="line"><a name="l05044"></a><span class="lineno"> 5044</span>                                pos->order, x, cpl_error_get_message());</div>
-<div class="line"><a name="l05045"></a><span class="lineno"> 5045</span> </div>
-<div class="line"><a name="l05046"></a><span class="lineno"> 5046</span>                 <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l05047"></a><span class="lineno"> 5047</span>             }</div>
-<div class="line"><a name="l05048"></a><span class="lineno"> 5048</span>             <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l05049"></a><span class="lineno"> 5049</span>                 assure( cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(),</div>
-<div class="line"><a name="l05050"></a><span class="lineno"> 5050</span>                         <span class="stringliteral">"Gaussian fitting failed"</span>);</div>
-<div class="line"><a name="l05051"></a><span class="lineno"> 5051</span>                             </div>
-<div class="line"><a name="l05052"></a><span class="lineno"> 5052</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(</div>
-<div class="line"><a name="l05053"></a><span class="lineno"> 5053</span>                     (cpl_table_set_int   (profile_data, <span class="stringliteral">"Order"</span>, profile_row, pos->order),</div>
-<div class="line"><a name="l05054"></a><span class="lineno"> 5054</span>                      cpl_table_set_int   (profile_data, <span class="stringliteral">"X"</span>    , profile_row, x),</div>
-<div class="line"><a name="l05055"></a><span class="lineno"> 5055</span>                      cpl_table_set_double(profile_data, <span class="stringliteral">"Y0"</span>   , profile_row, y_0 - pos->ycenter),</div>
-<div class="line"><a name="l05056"></a><span class="lineno"> 5056</span>                      cpl_table_set_double(profile_data, <span class="stringliteral">"Sigma"</span>, profile_row, sigma),</div>
-<div class="line"><a name="l05057"></a><span class="lineno"> 5057</span>                      cpl_table_set_double(profile_data, <span class="stringliteral">"Norm"</span> , profile_row, norm),</div>
-<div class="line"><a name="l05058"></a><span class="lineno"> 5058</span>                      cpl_table_set_double(profile_data, <span class="stringliteral">"dY0"</span>  , profile_row,</div>
-<div class="line"><a name="l05059"></a><span class="lineno"> 5059</span>                                           sqrt(cpl_matrix_get(covariance, 0, 0))),</div>
-<div class="line"><a name="l05060"></a><span class="lineno"> 5060</span>                      cpl_table_set_double(profile_data, <span class="stringliteral">"dSigma"</span>, profile_row, </div>
-<div class="line"><a name="l05061"></a><span class="lineno"> 5061</span>                                           sqrt(cpl_matrix_get(covariance, 1, 1))),</div>
-<div class="line"><a name="l05062"></a><span class="lineno"> 5062</span>                      cpl_table_set_double(profile_data, <span class="stringliteral">"dNorm"</span>, profile_row, </div>
-<div class="line"><a name="l05063"></a><span class="lineno"> 5063</span>                                           sqrt(cpl_matrix_get(covariance, 2, 2))),</div>
-<div class="line"><a name="l05064"></a><span class="lineno"> 5064</span>                      cpl_table_set_double(profile_data, <span class="stringliteral">"Y0_world"</span>, profile_row, y_0),</div>
-<div class="line"><a name="l05065"></a><span class="lineno"> 5065</span>                      cpl_table_set_double(profile_data, <span class="stringliteral">"Reduced_chisq"</span>, profile_row, </div>
-<div class="line"><a name="l05066"></a><span class="lineno"> 5066</span>                                           red_chisq)),</div>
-<div class="line"><a name="l05067"></a><span class="lineno"> 5067</span>                     <span class="stringliteral">"Error writing table"</span>);</div>
-<div class="line"><a name="l05068"></a><span class="lineno"> 5068</span>                 </div>
-<div class="line"><a name="l05069"></a><span class="lineno"> 5069</span>                 profile_row += 1;</div>
-<div class="line"><a name="l05070"></a><span class="lineno"> 5070</span>                 <span class="comment">/* uves_msg_debug("y0 = %f  sigma = %f    norm = %f "</span></div>
-<div class="line"><a name="l05071"></a><span class="lineno"> 5071</span> <span class="comment">                   "background = %f", y_0, sigma, norm, background); */</span></div>
-<div class="line"><a name="l05072"></a><span class="lineno"> 5072</span>             }</div>
-<div class="line"><a name="l05073"></a><span class="lineno"> 5073</span>         }</div>
-<div class="line"><a name="l05074"></a><span class="lineno"> 5074</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05075"></a><span class="lineno"> 5075</span>             {</div>
-<div class="line"><a name="l05076"></a><span class="lineno"> 5076</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order #%d: Too few (%d) points available in "</span></div>
-<div class="line"><a name="l05077"></a><span class="lineno"> 5077</span>                                <span class="stringliteral">"at x = %d - %d, ignoring chunk"</span>, </div>
-<div class="line"><a name="l05078"></a><span class="lineno"> 5078</span>                                pos->order, n,</div>
-<div class="line"><a name="l05079"></a><span class="lineno"> 5079</span>                                x - chunk/2, x + chunk/2);</div>
-<div class="line"><a name="l05080"></a><span class="lineno"> 5080</span>             }</div>
-<div class="line"><a name="l05081"></a><span class="lineno"> 5081</span>     } <span class="comment">/* for each chunk */</span></div>
-<div class="line"><a name="l05082"></a><span class="lineno"> 5082</span> </div>
-<div class="line"><a name="l05083"></a><span class="lineno"> 5083</span> <span class="preprocessor">#endif </span><span class="comment">/* old method */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l05084"></a><span class="lineno"> 5084</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l05085"></a><span class="lineno"> 5085</span>     cpl_table_set_size(profile_data, profile_row);</div>
-<div class="line"><a name="l05086"></a><span class="lineno"> 5086</span>     </div>
-<div class="line"><a name="l05087"></a><span class="lineno"> 5087</span>     UVES_TIME_END;</div>
-<div class="line"><a name="l05088"></a><span class="lineno"> 5088</span> </div>
-<div class="line"><a name="l05089"></a><span class="lineno"> 5089</span>     </div>
-<div class="line"><a name="l05090"></a><span class="lineno"> 5090</span> cleanup:</div>
-<div class="line"><a name="l05091"></a><span class="lineno"> 5091</span> <span class="preprocessor">#if NEW_METHOD</span></div>
-<div class="line"><a name="l05092"></a><span class="lineno"> 5092</span> <span class="preprocessor"></span>    uves_free_matrix(&eval_points);</div>
-<div class="line"><a name="l05093"></a><span class="lineno"> 5093</span>     uves_free_vector(&eval_data);</div>
-<div class="line"><a name="l05094"></a><span class="lineno"> 5094</span>     uves_free_vector(&eval_err);</div>
-<div class="line"><a name="l05095"></a><span class="lineno"> 5095</span>     uves_free_vector(&coeffs);</div>
-<div class="line"><a name="l05096"></a><span class="lineno"> 5096</span>     cpl_free(fluxes);</div>
-<div class="line"><a name="l05097"></a><span class="lineno"> 5097</span>     cpl_free(skys);</div>
-<div class="line"><a name="l05098"></a><span class="lineno"> 5098</span>     cpl_free(ia);</div>
-<div class="line"><a name="l05099"></a><span class="lineno"> 5099</span> <span class="preprocessor">#if CREATE_DEBUGGING_TABLE</span></div>
-<div class="line"><a name="l05100"></a><span class="lineno"> 5100</span> <span class="preprocessor"></span>    uves_free_table(&temp);</div>
-<div class="line"><a name="l05101"></a><span class="lineno"> 5101</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l05102"></a><span class="lineno"> 5102</span> <span class="preprocessor"></span>    uves_free_table(&estimate);</div>
-<div class="line"><a name="l05103"></a><span class="lineno"> 5103</span>     uves_free_table(&estimate_dup);</div>
-<div class="line"><a name="l05104"></a><span class="lineno"> 5104</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&y0_estim_pol);</div>
-<div class="line"><a name="l05105"></a><span class="lineno"> 5105</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&sigma_estim_pol);</div>
-<div class="line"><a name="l05106"></a><span class="lineno"> 5106</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l05107"></a><span class="lineno"> 5107</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l05108"></a><span class="lineno"> 5108</span>     uves_free_matrix(&covariance);</div>
-<div class="line"><a name="l05109"></a><span class="lineno"> 5109</span>     uves_free_vector(&dy);</div>
-<div class="line"><a name="l05110"></a><span class="lineno"> 5110</span>     uves_free_vector(&prof);</div>
-<div class="line"><a name="l05111"></a><span class="lineno"> 5111</span>     uves_free_vector(&prof2);</div>
-<div class="line"><a name="l05112"></a><span class="lineno"> 5112</span>     uves_free_vector(&dprof);</div>
-<div class="line"><a name="l05113"></a><span class="lineno"> 5113</span>     {</div>
-<div class="line"><a name="l05114"></a><span class="lineno"> 5114</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l05115"></a><span class="lineno"> 5115</span>         <span class="keywordflow">for</span> (i = 0; i < nbins; i++)</div>
-<div class="line"><a name="l05116"></a><span class="lineno"> 5116</span>             {</div>
-<div class="line"><a name="l05117"></a><span class="lineno"> 5117</span>                 uves_free_vector(&(data[i]));</div>
-<div class="line"><a name="l05118"></a><span class="lineno"> 5118</span>             }</div>
-<div class="line"><a name="l05119"></a><span class="lineno"> 5119</span>     }</div>
-<div class="line"><a name="l05120"></a><span class="lineno"> 5120</span>     cpl_free(data);</div>
-<div class="line"><a name="l05121"></a><span class="lineno"> 5121</span>     cpl_free(size);</div>
-<div class="line"><a name="l05122"></a><span class="lineno"> 5122</span>     cpl_free(locut);</div>
-<div class="line"><a name="l05123"></a><span class="lineno"> 5123</span>     cpl_free(hicut);</div>
-<div class="line"><a name="l05124"></a><span class="lineno"> 5124</span> </div>
-<div class="line"><a name="l05125"></a><span class="lineno"> 5125</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l05126"></a><span class="lineno"> 5126</span>         {</div>
-<div class="line"><a name="l05127"></a><span class="lineno"> 5127</span>             uves_free_table(&profile_data);</div>
-<div class="line"><a name="l05128"></a><span class="lineno"> 5128</span>         }</div>
-<div class="line"><a name="l05129"></a><span class="lineno"> 5129</span>     </div>
-<div class="line"><a name="l05130"></a><span class="lineno"> 5130</span>     <span class="keywordflow">return</span> profile_data;</div>
-<div class="line"><a name="l05131"></a><span class="lineno"> 5131</span> }</div>
-<div class="line"><a name="l05132"></a><span class="lineno"> 5132</span> </div>
-<div class="line"><a name="l05133"></a><span class="lineno"> 5133</span> </div>
-<div class="line"><a name="l05134"></a><span class="lineno"> 5134</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05143"></a><span class="lineno"> 5143</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05144"></a><span class="lineno"> 5144</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l05145"></a><span class="lineno"><a class="code" href="group__uves__extract.html#ga95cd798921bdd0f4606d5dbb45d0dab7"> 5145</a></span> <a class="code" href="group__uves__extract.html#ga95cd798921bdd0f4606d5dbb45d0dab7" title="Get width of order.">opt_get_order_width</a>(<span class="keyword">const</span> uves_iterate_position *pos)</div>
-<div class="line"><a name="l05146"></a><span class="lineno"> 5146</span> {</div>
-<div class="line"><a name="l05147"></a><span class="lineno"> 5147</span>     <span class="keywordtype">int</span> result = -1;</div>
-<div class="line"><a name="l05148"></a><span class="lineno"> 5148</span> </div>
-<div class="line"><a name="l05149"></a><span class="lineno"> 5149</span>     <span class="keywordtype">double</span> x1 = 1;</div>
-<div class="line"><a name="l05150"></a><span class="lineno"> 5150</span>     <span class="keywordtype">double</span> x2 = pos->nx;</div>
-<div class="line"><a name="l05151"></a><span class="lineno"> 5151</span>     <span class="keywordtype">double</span> y_1 = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(pos->order_locations, x1, pos->order);</div>
-<div class="line"><a name="l05152"></a><span class="lineno"> 5152</span>     <span class="keywordtype">double</span> y2  = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(pos->order_locations, x2, pos->order);</div>
-<div class="line"><a name="l05153"></a><span class="lineno"> 5153</span>     <span class="keywordtype">double</span> slope = (y2 - y_1)/(x2 - x1);</div>
-<div class="line"><a name="l05154"></a><span class="lineno"> 5154</span>     </div>
-<div class="line"><a name="l05155"></a><span class="lineno"> 5155</span>     <span class="keywordflow">if</span> (slope != 0)</div>
-<div class="line"><a name="l05156"></a><span class="lineno"> 5156</span>         {</div>
-<div class="line"><a name="l05157"></a><span class="lineno"> 5157</span>             <span class="comment">/* Solve   </span></div>
-<div class="line"><a name="l05158"></a><span class="lineno"> 5158</span> <span class="comment">                      slope * x + y1 = 1    and</span></div>
-<div class="line"><a name="l05159"></a><span class="lineno"> 5159</span> <span class="comment">                      slope * x + y1 = ny</span></div>
-<div class="line"><a name="l05160"></a><span class="lineno"> 5160</span> <span class="comment">               for x</span></div>
-<div class="line"><a name="l05161"></a><span class="lineno"> 5161</span> <span class="comment"></span></div>
-<div class="line"><a name="l05162"></a><span class="lineno"> 5162</span> <span class="comment">               ... then get exact solution</span></div>
-<div class="line"><a name="l05163"></a><span class="lineno"> 5163</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l05164"></a><span class="lineno"> 5164</span>             <span class="keywordtype">double</span> x_yeq1  = (      1 - y_1)/slope;</div>
-<div class="line"><a name="l05165"></a><span class="lineno"> 5165</span>             <span class="keywordtype">double</span> x_yeqny = (pos->ny - y_1)/slope;</div>
-<div class="line"><a name="l05166"></a><span class="lineno"> 5166</span>             </div>
-<div class="line"><a name="l05167"></a><span class="lineno"> 5167</span>             <span class="keywordflow">if</span> (1 <= x_yeq1 && x_yeq1 <= pos->nx)   <span class="comment">/* If order is partially below image */</span></div>
-<div class="line"><a name="l05168"></a><span class="lineno"> 5168</span>                 {</div>
-<div class="line"><a name="l05169"></a><span class="lineno"> 5169</span>                     <span class="keywordtype">double</span> guess = x_yeq1;</div>
-<div class="line"><a name="l05170"></a><span class="lineno"> 5170</span> </div>
-<div class="line"><a name="l05171"></a><span class="lineno"> 5171</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Guess value (y = 1) x = %f"</span>, guess);</div>
-<div class="line"><a name="l05172"></a><span class="lineno"> 5172</span>                     <span class="comment">/* Get exact value of x_yeq1 */</span></div>
-<div class="line"><a name="l05173"></a><span class="lineno"> 5173</span>                     x_yeq1 = <a class="code" href="group__uves__utils__polynomial.html#gacfd8db401e1250a53b8877ae118cce43" title="Solve p(x1, x2) = value.">uves_polynomial_solve_2d</a>(pos->order_locations, </div>
-<div class="line"><a name="l05174"></a><span class="lineno"> 5174</span>                                                       1,        <span class="comment">/* Solve p = 1 */</span></div>
-<div class="line"><a name="l05175"></a><span class="lineno"> 5175</span>                                                       guess,    <span class="comment">/* guess value */</span></div>
-<div class="line"><a name="l05176"></a><span class="lineno"> 5176</span>                                                       1,        <span class="comment">/* multiplicity */</span></div>
-<div class="line"><a name="l05177"></a><span class="lineno"> 5177</span>                                                       2,        <span class="comment">/* fix this </span></div>
-<div class="line"><a name="l05178"></a><span class="lineno"> 5178</span> <span class="comment">                                                                   variable number */</span></div>
-<div class="line"><a name="l05179"></a><span class="lineno"> 5179</span>                                                       pos->order);<span class="comment">/* ... to this value */</span></div>
-<div class="line"><a name="l05180"></a><span class="lineno"> 5180</span>                     </div>
-<div class="line"><a name="l05181"></a><span class="lineno"> 5181</span>                     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l05182"></a><span class="lineno"> 5182</span>                         {</div>
-<div class="line"><a name="l05183"></a><span class="lineno"> 5183</span>                             <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l05184"></a><span class="lineno"> 5184</span>                             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Could not solve order polynomial = 1 at order #%d. "</span></div>
-<div class="line"><a name="l05185"></a><span class="lineno"> 5185</span>                                              <span class="stringliteral">"Order polynomial may be ill-formed"</span>, pos->order);</div>
-<div class="line"><a name="l05186"></a><span class="lineno"> 5186</span>                             x_yeq1 = guess;</div>
-<div class="line"><a name="l05187"></a><span class="lineno"> 5187</span>                         }</div>
-<div class="line"><a name="l05188"></a><span class="lineno"> 5188</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05189"></a><span class="lineno"> 5189</span>                         {</div>
-<div class="line"><a name="l05190"></a><span class="lineno"> 5190</span>                             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Exact value (y = 1) x = %f"</span>, x_yeq1);</div>
-<div class="line"><a name="l05191"></a><span class="lineno"> 5191</span>                         }</div>
-<div class="line"><a name="l05192"></a><span class="lineno"> 5192</span>                 }</div>
-<div class="line"><a name="l05193"></a><span class="lineno"> 5193</span>             </div>
-<div class="line"><a name="l05194"></a><span class="lineno"> 5194</span>             <span class="keywordflow">if</span> (1 <= x_yeqny && x_yeqny <= pos->nx)   <span class="comment">/* If order is partially above image */</span></div>
-<div class="line"><a name="l05195"></a><span class="lineno"> 5195</span>                 {</div>
-<div class="line"><a name="l05196"></a><span class="lineno"> 5196</span>                     <span class="keywordtype">double</span> guess = x_yeqny;</div>
-<div class="line"><a name="l05197"></a><span class="lineno"> 5197</span> </div>
-<div class="line"><a name="l05198"></a><span class="lineno"> 5198</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Guess value (y = %d) = %f"</span>, pos->ny, guess);</div>
-<div class="line"><a name="l05199"></a><span class="lineno"> 5199</span>                     <span class="comment">/* Get exact value of x_yeqny */</span></div>
-<div class="line"><a name="l05200"></a><span class="lineno"> 5200</span>                     x_yeqny = <a class="code" href="group__uves__utils__polynomial.html#gacfd8db401e1250a53b8877ae118cce43" title="Solve p(x1, x2) = value.">uves_polynomial_solve_2d</a>(pos->order_locations, </div>
-<div class="line"><a name="l05201"></a><span class="lineno"> 5201</span>                                                        pos->ny,  <span class="comment">/* Solve p = ny */</span></div>
-<div class="line"><a name="l05202"></a><span class="lineno"> 5202</span>                                                        guess,    <span class="comment">/* guess value */</span></div>
-<div class="line"><a name="l05203"></a><span class="lineno"> 5203</span>                                                        1,        <span class="comment">/* multiplicity */</span></div>
-<div class="line"><a name="l05204"></a><span class="lineno"> 5204</span>                                                        2,        <span class="comment">/* fix this</span></div>
-<div class="line"><a name="l05205"></a><span class="lineno"> 5205</span> <span class="comment">                                                                    variable number */</span></div>
-<div class="line"><a name="l05206"></a><span class="lineno"> 5206</span>                                                        pos->order);<span class="comment">/* ... to this value */</span></div>
-<div class="line"><a name="l05207"></a><span class="lineno"> 5207</span> </div>
-<div class="line"><a name="l05208"></a><span class="lineno"> 5208</span>                     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l05209"></a><span class="lineno"> 5209</span>                         {</div>
-<div class="line"><a name="l05210"></a><span class="lineno"> 5210</span>                             <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l05211"></a><span class="lineno"> 5211</span>                             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Could not solve order polynomial = %d at order #%d. "</span></div>
-<div class="line"><a name="l05212"></a><span class="lineno"> 5212</span>                                              <span class="stringliteral">"Order polynomial may be ill-formed"</span>,</div>
-<div class="line"><a name="l05213"></a><span class="lineno"> 5213</span>                                              pos->ny, pos->order);</div>
-<div class="line"><a name="l05214"></a><span class="lineno"> 5214</span>                             x_yeqny = guess;</div>
-<div class="line"><a name="l05215"></a><span class="lineno"> 5215</span>                         }</div>
-<div class="line"><a name="l05216"></a><span class="lineno"> 5216</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05217"></a><span class="lineno"> 5217</span>                         {</div>
-<div class="line"><a name="l05218"></a><span class="lineno"> 5218</span>                             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Exact value (y = %d) x = %f"</span>, pos->ny, x_yeqny);</div>
-<div class="line"><a name="l05219"></a><span class="lineno"> 5219</span>                         }</div>
-<div class="line"><a name="l05220"></a><span class="lineno"> 5220</span>                 }</div>
-<div class="line"><a name="l05221"></a><span class="lineno"> 5221</span>             </div>
-<div class="line"><a name="l05222"></a><span class="lineno"> 5222</span>             <span class="keywordflow">if</span> (slope > 0)</div>
-<div class="line"><a name="l05223"></a><span class="lineno"> 5223</span>                 {</div>
-<div class="line"><a name="l05224"></a><span class="lineno"> 5224</span>                     result = uves_round_double(</div>
-<div class="line"><a name="l05225"></a><span class="lineno"> 5225</span>                         uves_max_double(1, </div>
-<div class="line"><a name="l05226"></a><span class="lineno"> 5226</span>                                         uves_min_double(pos->nx, x_yeqny) - </div>
-<div class="line"><a name="l05227"></a><span class="lineno"> 5227</span>                                         uves_max_double(1, x_yeq1) + 1));</div>
-<div class="line"><a name="l05228"></a><span class="lineno"> 5228</span>                 }</div>
-<div class="line"><a name="l05229"></a><span class="lineno"> 5229</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05230"></a><span class="lineno"> 5230</span>                 {</div>
-<div class="line"><a name="l05231"></a><span class="lineno"> 5231</span>                     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( slope < 0, <span class="stringliteral">"%f"</span>, slope);</div>
-<div class="line"><a name="l05232"></a><span class="lineno"> 5232</span>                     result = uves_round_double(</div>
-<div class="line"><a name="l05233"></a><span class="lineno"> 5233</span>                         uves_max_double(1, </div>
-<div class="line"><a name="l05234"></a><span class="lineno"> 5234</span>                                         uves_min_double(pos->nx, x_yeq1 ) - </div>
-<div class="line"><a name="l05235"></a><span class="lineno"> 5235</span>                                         uves_max_double(1, x_yeqny) + 1));</div>
-<div class="line"><a name="l05236"></a><span class="lineno"> 5236</span>                 }</div>
-<div class="line"><a name="l05237"></a><span class="lineno"> 5237</span>         }</div>
-<div class="line"><a name="l05238"></a><span class="lineno"> 5238</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05239"></a><span class="lineno"> 5239</span>         {</div>
-<div class="line"><a name="l05240"></a><span class="lineno"> 5240</span>             result = pos->nx;</div>
-<div class="line"><a name="l05241"></a><span class="lineno"> 5241</span>         }</div>
-<div class="line"><a name="l05242"></a><span class="lineno"> 5242</span> </div>
-<div class="line"><a name="l05243"></a><span class="lineno"> 5243</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order width = %d pixels"</span>, result);</div>
-<div class="line"><a name="l05244"></a><span class="lineno"> 5244</span>     </div>
-<div class="line"><a name="l05245"></a><span class="lineno"> 5245</span>   cleanup:</div>
-<div class="line"><a name="l05246"></a><span class="lineno"> 5246</span> </div>
-<div class="line"><a name="l05247"></a><span class="lineno"> 5247</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l05248"></a><span class="lineno"> 5248</span> }</div>
-<div class="line"><a name="l05249"></a><span class="lineno"> 5249</span> </div>
-<div class="line"><a name="l05250"></a><span class="lineno"> 5250</span> </div>
-<div class="line"><a name="l05251"></a><span class="lineno"> 5251</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05290"></a><span class="lineno"> 5290</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05291"></a><span class="lineno"> 5291</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l05292"></a><span class="lineno"><a class="code" href="group__uves__extract.html#ga55de773dfa081016fda249a7cb7878de"> 5292</a></span> <a class="code" href="group__uves__extract.html#ga55de773dfa081016fda249a7cb7878de" title="Optimally extract order using the given the profile.">opt_extract</a>(cpl_image *image, </div>
-<div class="line"><a name="l05293"></a><span class="lineno"> 5293</span>         <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l05294"></a><span class="lineno"> 5294</span>             uves_iterate_position *pos,</div>
-<div class="line"><a name="l05295"></a><span class="lineno"> 5295</span>             <span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l05296"></a><span class="lineno"> 5296</span>         <span class="keywordtype">bool</span> optimal_extract_sky,</div>
-<div class="line"><a name="l05297"></a><span class="lineno"> 5297</span>             <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l05298"></a><span class="lineno"> 5298</span>             cpl_table *blemish_mask, </div>
-<div class="line"><a name="l05299"></a><span class="lineno"> 5299</span>             cpl_table *cosmic_mask, </div>
-<div class="line"><a name="l05300"></a><span class="lineno"> 5300</span>         <span class="keywordtype">int</span> *cr_row,</div>
-<div class="line"><a name="l05301"></a><span class="lineno"> 5301</span>             cpl_table *profile_table, </div>
-<div class="line"><a name="l05302"></a><span class="lineno"> 5302</span>         <span class="keywordtype">int</span> *prof_row,</div>
-<div class="line"><a name="l05303"></a><span class="lineno"> 5303</span>             cpl_image *spectrum, </div>
-<div class="line"><a name="l05304"></a><span class="lineno"> 5304</span>         cpl_image *spectrum_noise,</div>
-<div class="line"><a name="l05305"></a><span class="lineno"> 5305</span>             cpl_image *weights,</div>
-<div class="line"><a name="l05306"></a><span class="lineno"> 5306</span>             cpl_image *sky_spectrum,</div>
-<div class="line"><a name="l05307"></a><span class="lineno"> 5307</span>             cpl_image *sky_spectrum_noise,</div>
-<div class="line"><a name="l05308"></a><span class="lineno"> 5308</span>             <span class="keywordtype">double</span> *sn)</div>
-<div class="line"><a name="l05309"></a><span class="lineno"> 5309</span> {</div>
-<div class="line"><a name="l05310"></a><span class="lineno"> 5310</span>     cpl_table *signal_to_noise = NULL;    <span class="comment">/* S/N values of bins in this order</span></div>
-<div class="line"><a name="l05311"></a><span class="lineno"> 5311</span> <span class="comment">                                           * (table used as a variable length array)</span></div>
-<div class="line"><a name="l05312"></a><span class="lineno"> 5312</span> <span class="comment">                                           */</span></div>
-<div class="line"><a name="l05313"></a><span class="lineno"> 5313</span>     <span class="keywordtype">int</span> sn_row = 0;                       <span class="comment">/* Number of rows in 'signal_to_noise' </span></div>
-<div class="line"><a name="l05314"></a><span class="lineno"> 5314</span> <span class="comment">                                             actually used */</span></div>
-<div class="line"><a name="l05315"></a><span class="lineno"> 5315</span> </div>
-<div class="line"><a name="l05316"></a><span class="lineno"> 5316</span>     <span class="keywordtype">int</span> bins_extracted = 0;</div>
-<div class="line"><a name="l05317"></a><span class="lineno"> 5317</span>     <span class="keywordtype">int</span> cold_pixels = 0;                  <span class="comment">/* Number of hot/cold pixels in this order  */</span></div>
-<div class="line"><a name="l05318"></a><span class="lineno"> 5318</span>     <span class="keywordtype">int</span> hot_pixels = 0;</div>
-<div class="line"><a name="l05319"></a><span class="lineno"> 5319</span>     <span class="keywordtype">int</span> warnings = 0;                     <span class="comment">/* Warnings printed so far */</span></div>
-<div class="line"><a name="l05320"></a><span class="lineno"> 5320</span>     </div>
-<div class="line"><a name="l05321"></a><span class="lineno"> 5321</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *image_data;</div>
-<div class="line"><a name="l05322"></a><span class="lineno"> 5322</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data;</div>
-<div class="line"><a name="l05323"></a><span class="lineno"> 5323</span>     <span class="keywordtype">double</span> *weights_data;</div>
-<div class="line"><a name="l05324"></a><span class="lineno"> 5324</span>     cpl_mask  *image_bad = NULL;</div>
-<div class="line"><a name="l05325"></a><span class="lineno"> 5325</span>     cpl_binary*image_bpm = NULL;</div>
-<div class="line"><a name="l05326"></a><span class="lineno"> 5326</span>     <span class="keywordtype">double</span> *noise_buffer = NULL; <span class="comment">/* For efficiency. To avoid allocating/deallocating</span></div>
-<div class="line"><a name="l05327"></a><span class="lineno"> 5327</span> <span class="comment">                    space for each bin */</span></div>
-<div class="line"><a name="l05328"></a><span class="lineno"> 5328</span>     <span class="keywordtype">int</span> order_width;</div>
-<div class="line"><a name="l05329"></a><span class="lineno"> 5329</span>     <span class="keywordtype">int</span> spectrum_row = pos->order - pos->minorder + 1;</div>
-<div class="line"><a name="l05330"></a><span class="lineno"> 5330</span> </div>
-<div class="line"><a name="l05331"></a><span class="lineno"> 5331</span>     <span class="keywordtype">int</span>* px=0;</div>
-<div class="line"><a name="l05332"></a><span class="lineno"> 5332</span>     <span class="keywordtype">int</span>* py=0;</div>
-<div class="line"><a name="l05333"></a><span class="lineno"> 5333</span>     <span class="keywordtype">int</span> row=0;</div>
-<div class="line"><a name="l05334"></a><span class="lineno"> 5334</span> </div>
-<div class="line"><a name="l05335"></a><span class="lineno"> 5335</span>     <span class="comment">/* For efficiency, use direct pointer to pixel buffer,</span></div>
-<div class="line"><a name="l05336"></a><span class="lineno"> 5336</span> <span class="comment">       assume type double, support bad pixels */</span></div>
-<div class="line"><a name="l05337"></a><span class="lineno"> 5337</span> </div>
-<div class="line"><a name="l05338"></a><span class="lineno"> 5338</span>     assure( cpl_image_get_type(image)       == CPL_TYPE_DOUBLE &&</div>
-<div class="line"><a name="l05339"></a><span class="lineno"> 5339</span>             cpl_image_get_type(image_noise) == CPL_TYPE_DOUBLE, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l05340"></a><span class="lineno"> 5340</span>             <span class="stringliteral">"Input image+noise must have type double. Types are %s + %s"</span>,</div>
-<div class="line"><a name="l05341"></a><span class="lineno"> 5341</span>             <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(image)),</div>
-<div class="line"><a name="l05342"></a><span class="lineno"> 5342</span>             <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(image_noise)));</div>
-<div class="line"><a name="l05343"></a><span class="lineno"> 5343</span> </div>
-<div class="line"><a name="l05344"></a><span class="lineno"> 5344</span>     image_data    = cpl_image_get_data_double_const(image);</div>
-<div class="line"><a name="l05345"></a><span class="lineno"> 5345</span>     noise_data    = cpl_image_get_data_double_const(image_noise);</div>
-<div class="line"><a name="l05346"></a><span class="lineno"> 5346</span>     weights_data  = cpl_image_get_data_double(weights);</div>
-<div class="line"><a name="l05347"></a><span class="lineno"> 5347</span> </div>
-<div class="line"><a name="l05348"></a><span class="lineno"> 5348</span>     image_bad = cpl_image_get_bpm(image);</div>
-<div class="line"><a name="l05349"></a><span class="lineno"> 5349</span>  </div>
-<div class="line"><a name="l05350"></a><span class="lineno"> 5350</span>     <span class="comment">/* flag blemishes as bad pixels */</span></div>
-<div class="line"><a name="l05351"></a><span class="lineno"> 5351</span>     <span class="keywordflow">if</span>(blemish_mask!=NULL) {</div>
-<div class="line"><a name="l05352"></a><span class="lineno"> 5352</span>        <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(px=cpl_table_get_data_int(blemish_mask,<span class="stringliteral">"X"</span>));</div>
-<div class="line"><a name="l05353"></a><span class="lineno"> 5353</span>        <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(py=cpl_table_get_data_int(blemish_mask,<span class="stringliteral">"Y"</span>));</div>
-<div class="line"><a name="l05354"></a><span class="lineno"> 5354</span> </div>
-<div class="line"><a name="l05355"></a><span class="lineno"> 5355</span>        <span class="keywordflow">for</span>(row=0;row<cpl_table_get_nrow(blemish_mask);row++) {</div>
-<div class="line"><a name="l05356"></a><span class="lineno"> 5356</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_mask_set(image_bad,px[row]+1,py[row]+1,CPL_BINARY_1));</div>
-<div class="line"><a name="l05357"></a><span class="lineno"> 5357</span>        }</div>
-<div class="line"><a name="l05358"></a><span class="lineno"> 5358</span>     }</div>
-<div class="line"><a name="l05359"></a><span class="lineno"> 5359</span>     <span class="comment">/* end flag blemishes as bad pixels */</span></div>
-<div class="line"><a name="l05360"></a><span class="lineno"> 5360</span> </div>
-<div class="line"><a name="l05361"></a><span class="lineno"> 5361</span>     image_bpm = cpl_mask_get_data(image_bad);</div>
-<div class="line"><a name="l05362"></a><span class="lineno"> 5362</span>     </div>
-<div class="line"><a name="l05363"></a><span class="lineno"> 5363</span>    </div>
-<div class="line"><a name="l05364"></a><span class="lineno"> 5364</span> </div>
-<div class="line"><a name="l05365"></a><span class="lineno"> 5365</span>     noise_buffer = cpl_malloc(uves_round_double(pos->sg.length + 5)*<span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l05366"></a><span class="lineno"> 5366</span> </div>
-<div class="line"><a name="l05367"></a><span class="lineno"> 5367</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( (signal_to_noise = cpl_table_new(pos->nx),</div>
-<div class="line"><a name="l05368"></a><span class="lineno"> 5368</span>             cpl_table_new_column(signal_to_noise, <span class="stringliteral">"SN"</span>, CPL_TYPE_DOUBLE)),</div>
-<div class="line"><a name="l05369"></a><span class="lineno"> 5369</span>            <span class="stringliteral">"Error allocating S/N table"</span>);</div>
-<div class="line"><a name="l05370"></a><span class="lineno"> 5370</span> </div>
-<div class="line"><a name="l05371"></a><span class="lineno"> 5371</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( order_width = <a class="code" href="group__uves__extract.html#ga95cd798921bdd0f4606d5dbb45d0dab7" title="Get width of order.">opt_get_order_width</a>(pos),</div>
-<div class="line"><a name="l05372"></a><span class="lineno"> 5372</span>            <span class="stringliteral">"Error estimating width of order #%d"</span>, pos->order);</div>
-<div class="line"><a name="l05373"></a><span class="lineno"> 5373</span> </div>
-<div class="line"><a name="l05374"></a><span class="lineno"> 5374</span> </div>
-<div class="line"><a name="l05375"></a><span class="lineno"> 5375</span>     <span class="comment">/* First set all pixels in the extracted spectrum as bad,</span></div>
-<div class="line"><a name="l05376"></a><span class="lineno"> 5376</span> <span class="comment">       then mark them as good if/when the flux is calculated */</span></div>
-<div class="line"><a name="l05377"></a><span class="lineno"> 5377</span>     {</div>
-<div class="line"><a name="l05378"></a><span class="lineno"> 5378</span>         <span class="keywordtype">int</span> x;</div>
-<div class="line"><a name="l05379"></a><span class="lineno"> 5379</span>         <span class="keywordflow">for</span> (x = 1; x <= pos->nx; x++)</div>
-<div class="line"><a name="l05380"></a><span class="lineno"> 5380</span>             {</div>
-<div class="line"><a name="l05381"></a><span class="lineno"> 5381</span>                 cpl_image_reject(spectrum, x, spectrum_row);</div>
-<div class="line"><a name="l05382"></a><span class="lineno"> 5382</span>                 <span class="comment">/* cpl_image_reject preserves the internal bad pixel map */</span></div>
-<div class="line"><a name="l05383"></a><span class="lineno"> 5383</span> </div>
-<div class="line"><a name="l05384"></a><span class="lineno"> 5384</span>                 <span class="keywordflow">if</span> (spectrum_noise != NULL)</div>
-<div class="line"><a name="l05385"></a><span class="lineno"> 5385</span>                     {</div>
-<div class="line"><a name="l05386"></a><span class="lineno"> 5386</span>                         cpl_image_reject(spectrum_noise, x, spectrum_row);</div>
-<div class="line"><a name="l05387"></a><span class="lineno"> 5387</span>                     }</div>
-<div class="line"><a name="l05388"></a><span class="lineno"> 5388</span>                 <span class="keywordflow">if</span> (optimal_extract_sky && sky_spectrum != NULL)</div>
-<div class="line"><a name="l05389"></a><span class="lineno"> 5389</span>                     {</div>
-<div class="line"><a name="l05390"></a><span class="lineno"> 5390</span>                         cpl_image_reject(sky_spectrum      , x, spectrum_row);</div>
-<div class="line"><a name="l05391"></a><span class="lineno"> 5391</span>                         cpl_image_reject(sky_spectrum_noise, x, spectrum_row);</div>
-<div class="line"><a name="l05392"></a><span class="lineno"> 5392</span>                     }</div>
-<div class="line"><a name="l05393"></a><span class="lineno"> 5393</span>             }</div>
-<div class="line"><a name="l05394"></a><span class="lineno"> 5394</span>     }</div>
-<div class="line"><a name="l05395"></a><span class="lineno"> 5395</span> </div>
-<div class="line"><a name="l05396"></a><span class="lineno"> 5396</span>     <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l05397"></a><span class="lineno"> 5397</span>                                 1, pos->nx,</div>
-<div class="line"><a name="l05398"></a><span class="lineno"> 5398</span>                                 pos->order, pos->order,</div>
-<div class="line"><a name="l05399"></a><span class="lineno"> 5399</span>                                 NULL, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l05400"></a><span class="lineno"> 5400</span>          !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos);</div>
-<div class="line"><a name="l05401"></a><span class="lineno"> 5401</span>          <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos)) </div>
-<div class="line"><a name="l05402"></a><span class="lineno"> 5402</span>         {</div>
-<div class="line"><a name="l05403"></a><span class="lineno"> 5403</span>             <span class="keywordtype">double</span> flux = 0, variance = 0; <span class="comment">/* Flux and variance of this bin */</span></div>
-<div class="line"><a name="l05404"></a><span class="lineno"> 5404</span>             <span class="keywordtype">double</span> sky_background = 0, sky_background_noise = 0;</div>
-<div class="line"><a name="l05405"></a><span class="lineno"> 5405</span>             </div>
-<div class="line"><a name="l05406"></a><span class="lineno"> 5406</span>             <span class="comment">/* </span></div>
-<div class="line"><a name="l05407"></a><span class="lineno"> 5407</span> <span class="comment">             * Determine 'flux' and 'variance' of this bin.</span></div>
-<div class="line"><a name="l05408"></a><span class="lineno"> 5408</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l05409"></a><span class="lineno"> 5409</span>             <span class="keywordtype">int</span> iteration;</div>
-<div class="line"><a name="l05410"></a><span class="lineno"> 5410</span>             </div>
-<div class="line"><a name="l05411"></a><span class="lineno"> 5411</span>             <span class="keywordtype">bool</span> found_bad_pixel;</div>
-<div class="line"><a name="l05412"></a><span class="lineno"> 5412</span>             <span class="keywordtype">double</span> median_noise;</div>
-<div class="line"><a name="l05413"></a><span class="lineno"> 5413</span>             </div>
-<div class="line"><a name="l05414"></a><span class="lineno"> 5414</span>             <span class="keywordtype">double</span> redchisq = 0;</div>
-<div class="line"><a name="l05415"></a><span class="lineno"> 5415</span>             </div>
-<div class="line"><a name="l05416"></a><span class="lineno"> 5416</span>             <span class="comment">/* If rejection is asked for, get correction factor for this bin */</span></div>
-<div class="line"><a name="l05417"></a><span class="lineno"> 5417</span>             <span class="keywordflow">if</span> (kappa > 0)</div>
-<div class="line"><a name="l05418"></a><span class="lineno"> 5418</span>                 {</div>
-<div class="line"><a name="l05419"></a><span class="lineno"> 5419</span>                     redchisq = <a class="code" href="group__uves__extract.html#ga74a27fdb394ea3be89fdd31f6c124da3" title="Get reduced chi^2 for current bin.">opt_get_redchisq</a>(profile, pos);</div>
-<div class="line"><a name="l05420"></a><span class="lineno"> 5420</span>                 }</div>
-<div class="line"><a name="l05421"></a><span class="lineno"> 5421</span>             </div>
-<div class="line"><a name="l05422"></a><span class="lineno"> 5422</span>             <span class="comment">/* Prepare for calls of uves_extract_profile_evaluate() */</span></div>
-<div class="line"><a name="l05423"></a><span class="lineno"> 5423</span>             uves_extract_profile_set(profile, pos, &warnings);</div>
-<div class="line"><a name="l05424"></a><span class="lineno"> 5424</span>             </div>
-<div class="line"><a name="l05425"></a><span class="lineno"> 5425</span>             <span class="comment">/*  Pseudocode for optimal extraction of this bin:</span></div>
-<div class="line"><a name="l05426"></a><span class="lineno"> 5426</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05427"></a><span class="lineno"> 5427</span> <span class="comment">             *  reset weights</span></div>
-<div class="line"><a name="l05428"></a><span class="lineno"> 5428</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05429"></a><span class="lineno"> 5429</span> <span class="comment">             *  do</span></div>
-<div class="line"><a name="l05430"></a><span class="lineno"> 5430</span> <span class="comment">             *      flux,variance := extract optimal </span></div>
-<div class="line"><a name="l05431"></a><span class="lineno"> 5431</span> <span class="comment">             *                       (only good pixels w. weight > 0)</span></div>
-<div class="line"><a name="l05432"></a><span class="lineno"> 5432</span> <span class="comment">             *      (in first iteration, noise = max(noise, median(noise_i))</span></div>
-<div class="line"><a name="l05433"></a><span class="lineno"> 5433</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05434"></a><span class="lineno"> 5434</span> <span class="comment">             *      reject the worst outlier by setting its weight to -1</span></div>
-<div class="line"><a name="l05435"></a><span class="lineno"> 5435</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05436"></a><span class="lineno"> 5436</span> <span class="comment">             *  until there were no more outliers</span></div>
-<div class="line"><a name="l05437"></a><span class="lineno"> 5437</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05438"></a><span class="lineno"> 5438</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05439"></a><span class="lineno"> 5439</span> <span class="comment">             *  Note that the first iteration increases the noise level</span></div>
-<div class="line"><a name="l05440"></a><span class="lineno"> 5440</span> <span class="comment">             *  of each pixel to the median noise level. Otherwise, outlier</span></div>
-<div class="line"><a name="l05441"></a><span class="lineno"> 5441</span> <span class="comment">             *  cold pixels would</span></div>
-<div class="line"><a name="l05442"></a><span class="lineno"> 5442</span> <span class="comment">             *  would destroy the first flux estimate because of their very low</span></div>
-<div class="line"><a name="l05443"></a><span class="lineno"> 5443</span> <span class="comment">             *  'photonic' noise (i.e. they would have very large weight when their</span></div>
-<div class="line"><a name="l05444"></a><span class="lineno"> 5444</span> <span class="comment">             *  uncertainties are taken into account). With the scheme above,</span></div>
-<div class="line"><a name="l05445"></a><span class="lineno"> 5445</span> <span class="comment">             *  such a dead pixel will be rejected in the first iteration, and it is</span></div>
-<div class="line"><a name="l05446"></a><span class="lineno"> 5446</span> <span class="comment">             *  safe to continue with optimal extractions until convergence.</span></div>
-<div class="line"><a name="l05447"></a><span class="lineno"> 5447</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05448"></a><span class="lineno"> 5448</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l05449"></a><span class="lineno"> 5449</span>             </div>
-<div class="line"><a name="l05450"></a><span class="lineno"> 5450</span>             <span class="comment">/*</span></div>
-<div class="line"><a name="l05451"></a><span class="lineno"> 5451</span> <span class="comment">             *  Clear previously detected cosmic rays.</span></div>
-<div class="line"><a name="l05452"></a><span class="lineno"> 5452</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l05453"></a><span class="lineno"> 5453</span>             <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l05454"></a><span class="lineno"> 5454</span>                 {</div>
-<div class="line"><a name="l05455"></a><span class="lineno"> 5455</span>                     <span class="keywordflow">if</span> (DATA(image_bpm, pos) == CPL_BINARY_1)</div>
-<div class="line"><a name="l05456"></a><span class="lineno"> 5456</span>                         {</div>
-<div class="line"><a name="l05457"></a><span class="lineno"> 5457</span>                             DATA(weights_data, pos) = -1.0;</div>
-<div class="line"><a name="l05458"></a><span class="lineno"> 5458</span>                         }</div>
-<div class="line"><a name="l05459"></a><span class="lineno"> 5459</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05460"></a><span class="lineno"> 5460</span>                         {</div>
-<div class="line"><a name="l05461"></a><span class="lineno"> 5461</span>                             DATA(weights_data, pos) = 0.0;</div>
-<div class="line"><a name="l05462"></a><span class="lineno"> 5462</span>                         }</div>
-<div class="line"><a name="l05463"></a><span class="lineno"> 5463</span>                 }</div>
-<div class="line"><a name="l05464"></a><span class="lineno"> 5464</span>             </div>
-<div class="line"><a name="l05465"></a><span class="lineno"> 5465</span>             <span class="comment">/* Get median noise level (of all object + sky bins) */</span></div>
-<div class="line"><a name="l05466"></a><span class="lineno"> 5466</span>             median_noise = <a class="code" href="group__uves__extract.html#gaa6e6619285bc14f8d61ed59ec8266d6e" title="Measure median noise level of extraction bin.">opt_get_noise_median</a>(noise_data, image_bpm,</div>
-<div class="line"><a name="l05467"></a><span class="lineno"> 5467</span>                                                 pos, noise_buffer);</div>
-<div class="line"><a name="l05468"></a><span class="lineno"> 5468</span>             </div>
-<div class="line"><a name="l05469"></a><span class="lineno"> 5469</span>             <span class="comment">/* Extract optimally,</span></div>
-<div class="line"><a name="l05470"></a><span class="lineno"> 5470</span> <span class="comment">               reject outliers ... while found_bad_pixel (but at least twice) */</span></div>
-<div class="line"><a name="l05471"></a><span class="lineno"> 5471</span>             found_bad_pixel = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l05472"></a><span class="lineno"> 5472</span> </div>
-<div class="line"><a name="l05473"></a><span class="lineno"> 5473</span>             <span class="keywordflow">for</span> (iteration = 0; iteration < 2 || found_bad_pixel; iteration++)</div>
-<div class="line"><a name="l05474"></a><span class="lineno"> 5474</span>                 {</div>
-<div class="line"><a name="l05475"></a><span class="lineno"> 5475</span>                     <span class="comment">/* Get (flux,variance). In first iteration</span></div>
-<div class="line"><a name="l05476"></a><span class="lineno"> 5476</span> <span class="comment">                       raise every noise value to median.</span></div>
-<div class="line"><a name="l05477"></a><span class="lineno"> 5477</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l05478"></a><span class="lineno"> 5478</span>                     flux = <a class="code" href="group__uves__extract.html#ga8f31c60f3e1e173ad20217652934480c" title="Get flux, sky and variances of current bin.">opt_get_flux_sky_variance</a>(image_data, noise_data,</div>
-<div class="line"><a name="l05479"></a><span class="lineno"> 5479</span>                              weights_data,</div>
-<div class="line"><a name="l05480"></a><span class="lineno"> 5480</span>                              pos,</div>
-<div class="line"><a name="l05481"></a><span class="lineno"> 5481</span>                              profile,</div>
-<div class="line"><a name="l05482"></a><span class="lineno"> 5482</span>                              optimal_extract_sky,</div>
-<div class="line"><a name="l05483"></a><span class="lineno"> 5483</span>                              (iteration == 0) ? </div>
-<div class="line"><a name="l05484"></a><span class="lineno"> 5484</span>                              median_noise : -1,</div>
-<div class="line"><a name="l05485"></a><span class="lineno"> 5485</span>                              &variance,</div>
-<div class="line"><a name="l05486"></a><span class="lineno"> 5486</span>                              &sky_background,</div>
-<div class="line"><a name="l05487"></a><span class="lineno"> 5487</span>                              &sky_background_noise);</div>
-<div class="line"><a name="l05488"></a><span class="lineno"> 5488</span>                     </div>
-<div class="line"><a name="l05489"></a><span class="lineno"> 5489</span>                     <span class="comment">/* If requested, find max outlier among remaining good pixels */</span></div>
-<div class="line"><a name="l05490"></a><span class="lineno"> 5490</span>                     <span class="keywordflow">if</span> (kappa > 0)</div>
-<div class="line"><a name="l05491"></a><span class="lineno"> 5491</span>                         {</div>
-<div class="line"><a name="l05492"></a><span class="lineno"> 5492</span>               <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( found_bad_pixel = </div>
-<div class="line"><a name="l05493"></a><span class="lineno"> 5493</span>                  <a class="code" href="group__uves__extract.html#ga6ca277a820936e41b96d85c6bf0ea21b" title="Find and reject outlier pixel.">opt_reject_outlier</a>(image_data,</div>
-<div class="line"><a name="l05494"></a><span class="lineno"> 5494</span>                             noise_data,</div>
-<div class="line"><a name="l05495"></a><span class="lineno"> 5495</span>                             image_bpm,</div>
-<div class="line"><a name="l05496"></a><span class="lineno"> 5496</span>                             weights_data,</div>
-<div class="line"><a name="l05497"></a><span class="lineno"> 5497</span>                             pos,</div>
-<div class="line"><a name="l05498"></a><span class="lineno"> 5498</span>                             profile,</div>
-<div class="line"><a name="l05499"></a><span class="lineno"> 5499</span>                             kappa,</div>
-<div class="line"><a name="l05500"></a><span class="lineno"> 5500</span>                             flux, </div>
-<div class="line"><a name="l05501"></a><span class="lineno"> 5501</span>                             optimal_extract_sky ? sky_background : 0,</div>
-<div class="line"><a name="l05502"></a><span class="lineno"> 5502</span>                             redchisq,</div>
-<div class="line"><a name="l05503"></a><span class="lineno"> 5503</span>                             cosmic_mask, </div>
-<div class="line"><a name="l05504"></a><span class="lineno"> 5504</span>                             cr_row,</div>
-<div class="line"><a name="l05505"></a><span class="lineno"> 5505</span>                             &hot_pixels, </div>
-<div class="line"><a name="l05506"></a><span class="lineno"> 5506</span>                             &cold_pixels),</div>
-<div class="line"><a name="l05507"></a><span class="lineno"> 5507</span>                  <span class="stringliteral">"Error rejecting outlier pixel"</span>);</div>
-<div class="line"><a name="l05508"></a><span class="lineno"> 5508</span>                             </div>
-<div class="line"><a name="l05509"></a><span class="lineno"> 5509</span>                         } </div>
-<div class="line"><a name="l05510"></a><span class="lineno"> 5510</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05511"></a><span class="lineno"> 5511</span>               {</div>
-<div class="line"><a name="l05512"></a><span class="lineno"> 5512</span>             found_bad_pixel = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l05513"></a><span class="lineno"> 5513</span>               }</div>
-<div class="line"><a name="l05514"></a><span class="lineno"> 5514</span>                     </div>
-<div class="line"><a name="l05515"></a><span class="lineno"> 5515</span>                 } <span class="comment">/* while there was an outlier or iteration < 2 */</span></div>
-<div class="line"><a name="l05516"></a><span class="lineno"> 5516</span>         <span class="comment">//uves_msg("AMO crh tab size=%d",cpl_table_get_nrow(cosmic_mask));</span></div>
-<div class="line"><a name="l05517"></a><span class="lineno"> 5517</span>             <span class="comment">/* Update profile table */</span></div>
-<div class="line"><a name="l05518"></a><span class="lineno"> 5518</span>             <span class="keywordflow">if</span> (profile_table != NULL) {</div>
-<div class="line"><a name="l05519"></a><span class="lineno"> 5519</span>                 <span class="keywordtype">double</span> lin_flux = 0; <span class="comment">/* Linearly extracted flux */</span></div>
-<div class="line"><a name="l05520"></a><span class="lineno"> 5520</span>                 <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++) {</div>
-<div class="line"><a name="l05521"></a><span class="lineno"> 5521</span>                     <span class="comment">/* If pixel is not rejected */</span></div>
-<div class="line"><a name="l05522"></a><span class="lineno"> 5522</span>                     <span class="keywordflow">if</span> (DATA(weights_data, pos) > 0)</div>
-<div class="line"><a name="l05523"></a><span class="lineno"> 5523</span>                         {</div>
-<div class="line"><a name="l05524"></a><span class="lineno"> 5524</span>                             <span class="keywordtype">double</span> pixelval = DATA(image_data, pos);</div>
-<div class="line"><a name="l05525"></a><span class="lineno"> 5525</span>                             lin_flux += pixelval;</div>
-<div class="line"><a name="l05526"></a><span class="lineno"> 5526</span>                         }</div>
-<div class="line"><a name="l05527"></a><span class="lineno"> 5527</span>                 }</div>
-<div class="line"><a name="l05528"></a><span class="lineno"> 5528</span> </div>
-<div class="line"><a name="l05529"></a><span class="lineno"> 5529</span>                 <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++) {</div>
-<div class="line"><a name="l05530"></a><span class="lineno"> 5530</span>                     <span class="comment">/* If pixel is not rejected */</span></div>
-<div class="line"><a name="l05531"></a><span class="lineno"> 5531</span>                     <span class="keywordflow">if</span> (DATA(weights_data, pos) > 0)</div>
-<div class="line"><a name="l05532"></a><span class="lineno"> 5532</span>                         {</div>
-<div class="line"><a name="l05533"></a><span class="lineno"> 5533</span>                             <span class="keywordtype">double</span> dy = pos->y - pos->ycenter;</div>
-<div class="line"><a name="l05534"></a><span class="lineno"> 5534</span>                             <span class="keywordtype">double</span> pixelval = DATA(image_data, pos);</div>
-<div class="line"><a name="l05535"></a><span class="lineno"> 5535</span>                             </div>
-<div class="line"><a name="l05536"></a><span class="lineno"> 5536</span>                             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l05537"></a><span class="lineno"> 5537</span>                                     (cpl_table_set_int   (profile_table, <span class="stringliteral">"Order"</span>      , </div>
-<div class="line"><a name="l05538"></a><span class="lineno"> 5538</span>                                                           *prof_row, pos->order),</div>
-<div class="line"><a name="l05539"></a><span class="lineno"> 5539</span>                                      cpl_table_set_int   (profile_table, <span class="stringliteral">"X"</span>          , </div>
-<div class="line"><a name="l05540"></a><span class="lineno"> 5540</span>                                                           *prof_row, pos->x),</div>
-<div class="line"><a name="l05541"></a><span class="lineno"> 5541</span>                                      cpl_table_set_double(profile_table, <span class="stringliteral">"DY"</span>         , </div>
-<div class="line"><a name="l05542"></a><span class="lineno"> 5542</span>                                                           *prof_row, dy),</div>
-<div class="line"><a name="l05543"></a><span class="lineno"> 5543</span>                                      cpl_table_set_double(profile_table, <span class="stringliteral">"Profile_raw"</span>, </div>
-<div class="line"><a name="l05544"></a><span class="lineno"> 5544</span>                                                           *prof_row, pixelval/lin_flux),</div>
-<div class="line"><a name="l05545"></a><span class="lineno"> 5545</span>                                      cpl_table_set_double(profile_table, <span class="stringliteral">"Profile_int"</span>,</div>
-<div class="line"><a name="l05546"></a><span class="lineno"> 5546</span>                                                           *prof_row, </div>
-<div class="line"><a name="l05547"></a><span class="lineno"> 5547</span>                                                           uves_extract_profile_evaluate(profile, pos))));</div>
-<div class="line"><a name="l05548"></a><span class="lineno"> 5548</span>                                 (*prof_row)++;</div>
-<div class="line"><a name="l05549"></a><span class="lineno"> 5549</span>                             }</div>
-<div class="line"><a name="l05550"></a><span class="lineno"> 5550</span>                     }</div>
-<div class="line"><a name="l05551"></a><span class="lineno"> 5551</span>             }</div>
-<div class="line"><a name="l05552"></a><span class="lineno"> 5552</span>             </div>
-<div class="line"><a name="l05553"></a><span class="lineno"> 5553</span>             bins_extracted += 1;</div>
-<div class="line"><a name="l05554"></a><span class="lineno"> 5554</span>             </div>
-<div class="line"><a name="l05555"></a><span class="lineno"> 5555</span>             <span class="comment">/* Don't do the following!! It changes the internal bpm with a low probability.</span></div>
-<div class="line"><a name="l05556"></a><span class="lineno"> 5556</span> <span class="comment">               That's bad because we already got a pointer to that so next time</span></div>
-<div class="line"><a name="l05557"></a><span class="lineno"> 5557</span> <span class="comment">               we follow that pointer the object might not exist. This is true</span></div>
-<div class="line"><a name="l05558"></a><span class="lineno"> 5558</span> <span class="comment">               for CPL3.0, it should be really be fixed in later versions.</span></div>
-<div class="line"><a name="l05559"></a><span class="lineno"> 5559</span> <span class="comment">               </span></div>
-<div class="line"><a name="l05560"></a><span class="lineno"> 5560</span> <span class="comment">               cpl_image_set(spectrum, pos->x, spectrum_row, flux);</span></div>
-<div class="line"><a name="l05561"></a><span class="lineno"> 5561</span> <span class="comment">               </span></div>
-<div class="line"><a name="l05562"></a><span class="lineno"> 5562</span> <span class="comment">               We don't have a pointer 'spectrum_noise', so calling cpl_image_set</span></div>
-<div class="line"><a name="l05563"></a><span class="lineno"> 5563</span> <span class="comment">               on that one is safe.</span></div>
-<div class="line"><a name="l05564"></a><span class="lineno"> 5564</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l05565"></a><span class="lineno"> 5565</span>             SPECTRUM_DATA(cpl_image_get_data_double(spectrum), pos) = flux;</div>
-<div class="line"><a name="l05566"></a><span class="lineno"> 5566</span>             SPECTRUM_DATA(cpl_mask_get_data(cpl_image_get_bpm(spectrum)), pos) </div>
-<div class="line"><a name="l05567"></a><span class="lineno"> 5567</span>                 = CPL_BINARY_0;</div>
-<div class="line"><a name="l05568"></a><span class="lineno"> 5568</span>             <span class="comment">/* The overhead of these function calls is negligible */</span></div>
-<div class="line"><a name="l05569"></a><span class="lineno"> 5569</span>             </div>
-<div class="line"><a name="l05570"></a><span class="lineno"> 5570</span>             <span class="keywordflow">if</span> (spectrum_noise != NULL)</div>
-<div class="line"><a name="l05571"></a><span class="lineno"> 5571</span>                 {</div>
-<div class="line"><a name="l05572"></a><span class="lineno"> 5572</span>                     cpl_image_set(spectrum_noise, pos->x, spectrum_row, sqrt(variance));</div>
-<div class="line"><a name="l05573"></a><span class="lineno"> 5573</span>                 }</div>
-<div class="line"><a name="l05574"></a><span class="lineno"> 5574</span>             </div>
-<div class="line"><a name="l05575"></a><span class="lineno"> 5575</span>             </div>
-<div class="line"><a name="l05576"></a><span class="lineno"> 5576</span>             <span class="comment">/* Save sky (if extracted again) */</span></div>
-<div class="line"><a name="l05577"></a><span class="lineno"> 5577</span>             <span class="keywordflow">if</span> (optimal_extract_sky)</div>
-<div class="line"><a name="l05578"></a><span class="lineno"> 5578</span>                 {</div>
-<div class="line"><a name="l05579"></a><span class="lineno"> 5579</span>                     <span class="comment">/* Change normalization of sky from 1 pixel to full slit,</span></div>
-<div class="line"><a name="l05580"></a><span class="lineno"> 5580</span> <span class="comment">                       (i.e. same normalization as the extracted object) </span></div>
-<div class="line"><a name="l05581"></a><span class="lineno"> 5581</span> <span class="comment">                       </span></div>
-<div class="line"><a name="l05582"></a><span class="lineno"> 5582</span> <span class="comment">                       Error propagation is trivial (just multiply </span></div>
-<div class="line"><a name="l05583"></a><span class="lineno"> 5583</span> <span class="comment">                       by same factor) because the</span></div>
-<div class="line"><a name="l05584"></a><span class="lineno"> 5584</span> <span class="comment">                       uncertainty of 'slit_length' is negligible. </span></div>
-<div class="line"><a name="l05585"></a><span class="lineno"> 5585</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l05586"></a><span class="lineno"> 5586</span>                     </div>
-<div class="line"><a name="l05587"></a><span class="lineno"> 5587</span>                     cpl_image_set(sky_spectrum      , pos->x, spectrum_row, </div>
-<div class="line"><a name="l05588"></a><span class="lineno"> 5588</span>                                   pos->sg.length * sky_background);</div>
-<div class="line"><a name="l05589"></a><span class="lineno"> 5589</span>                     cpl_image_set(sky_spectrum_noise, pos->x, spectrum_row,</div>
-<div class="line"><a name="l05590"></a><span class="lineno"> 5590</span>                                   pos->sg.length * sky_background_noise);</div>
-<div class="line"><a name="l05591"></a><span class="lineno"> 5591</span>                 }</div>
-<div class="line"><a name="l05592"></a><span class="lineno"> 5592</span>             </div>
-<div class="line"><a name="l05593"></a><span class="lineno"> 5593</span>             <span class="comment">/* Update S/N. Use only central 10% (max of blaze function)</span></div>
-<div class="line"><a name="l05594"></a><span class="lineno"> 5594</span> <span class="comment">             * to calculate S/N.</span></div>
-<div class="line"><a name="l05595"></a><span class="lineno"> 5595</span> <span class="comment">             * If order is partially without image, use all bins in order.</span></div>
-<div class="line"><a name="l05596"></a><span class="lineno"> 5596</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l05597"></a><span class="lineno"> 5597</span>             <span class="keywordflow">if</span> (order_width < pos->nx ||</div>
-<div class="line"><a name="l05598"></a><span class="lineno"> 5598</span>                 (0.45*pos->nx <= pos->x && pos->x <= 0.55*pos->nx)</div>
-<div class="line"><a name="l05599"></a><span class="lineno"> 5599</span>                 )</div>
-<div class="line"><a name="l05600"></a><span class="lineno"> 5600</span>                 {</div>
-<div class="line"><a name="l05601"></a><span class="lineno"> 5601</span>                     cpl_table_set_double(</div>
-<div class="line"><a name="l05602"></a><span class="lineno"> 5602</span>                         signal_to_noise, <span class="stringliteral">"SN"</span>, sn_row, flux / sqrt(variance));</div>
-<div class="line"><a name="l05603"></a><span class="lineno"> 5603</span>                     sn_row++;</div>
-<div class="line"><a name="l05604"></a><span class="lineno"> 5604</span>                 }</div>
-<div class="line"><a name="l05605"></a><span class="lineno"> 5605</span>             </div>
-<div class="line"><a name="l05606"></a><span class="lineno"> 5606</span>         } <span class="comment">/* for each x... */</span></div>
-<div class="line"><a name="l05607"></a><span class="lineno"> 5607</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%d/%d hot/cold pixels rejected"</span>, hot_pixels, cold_pixels);</div>
-<div class="line"><a name="l05608"></a><span class="lineno"> 5608</span>     </div>
-<div class="line"><a name="l05609"></a><span class="lineno"> 5609</span>     <span class="comment">/* Return S/N */</span></div>
-<div class="line"><a name="l05610"></a><span class="lineno"> 5610</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cpl_table_set_size(signal_to_noise, sn_row) );</div>
-<div class="line"><a name="l05611"></a><span class="lineno"> 5611</span>     <span class="keywordflow">if</span> (sn_row > 0)</div>
-<div class="line"><a name="l05612"></a><span class="lineno"> 5612</span>         {</div>
-<div class="line"><a name="l05613"></a><span class="lineno"> 5613</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( *sn = cpl_table_get_column_median(signal_to_noise, <span class="stringliteral">"SN"</span>));</div>
-<div class="line"><a name="l05614"></a><span class="lineno"> 5614</span>         }</div>
-<div class="line"><a name="l05615"></a><span class="lineno"> 5615</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05616"></a><span class="lineno"> 5616</span>         {</div>
-<div class="line"><a name="l05617"></a><span class="lineno"> 5617</span>             *sn = 0;</div>
-<div class="line"><a name="l05618"></a><span class="lineno"> 5618</span>         }</div>
-<div class="line"><a name="l05619"></a><span class="lineno"> 5619</span>     </div>
-<div class="line"><a name="l05620"></a><span class="lineno"> 5620</span>   cleanup:</div>
-<div class="line"><a name="l05621"></a><span class="lineno"> 5621</span>     uves_free_table(&signal_to_noise);</div>
-<div class="line"><a name="l05622"></a><span class="lineno"> 5622</span>     cpl_free(noise_buffer);</div>
-<div class="line"><a name="l05623"></a><span class="lineno"> 5623</span> </div>
-<div class="line"><a name="l05624"></a><span class="lineno"> 5624</span>     <span class="keywordflow">return</span> bins_extracted;</div>
-<div class="line"><a name="l05625"></a><span class="lineno"> 5625</span> }</div>
-<div class="line"><a name="l05626"></a><span class="lineno"> 5626</span> </div>
-<div class="line"><a name="l05627"></a><span class="lineno"> 5627</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05650"></a><span class="lineno"> 5650</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05651"></a><span class="lineno"> 5651</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l05652"></a><span class="lineno"><a class="code" href="group__uves__extract.html#ga72eb895e6062614f776c8519f13dfb5e"> 5652</a></span> <a class="code" href="group__uves__extract.html#ga72eb895e6062614f776c8519f13dfb5e" title="Measure sky level (median)">opt_get_sky</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *image_data,</div>
-<div class="line"><a name="l05653"></a><span class="lineno"> 5653</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data,</div>
-<div class="line"><a name="l05654"></a><span class="lineno"> 5654</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> *weights_data,</div>
-<div class="line"><a name="l05655"></a><span class="lineno"> 5655</span>             uves_iterate_position *pos,</div>
-<div class="line"><a name="l05656"></a><span class="lineno"> 5656</span>             <span class="keyword">const</span> cpl_table *sky_map,</div>
-<div class="line"><a name="l05657"></a><span class="lineno"> 5657</span>             <span class="keywordtype">double</span> buffer_flux[], <span class="keywordtype">double</span> buffer_noise[],</div>
-<div class="line"><a name="l05658"></a><span class="lineno"> 5658</span>             <span class="keywordtype">double</span> *sky_background_noise)</div>
-<div class="line"><a name="l05659"></a><span class="lineno"> 5659</span> {</div>
-<div class="line"><a name="l05660"></a><span class="lineno"> 5660</span>     <span class="keywordtype">double</span> sky_background;</div>
-<div class="line"><a name="l05661"></a><span class="lineno"> 5661</span>     <span class="keywordtype">bool</span> found_good = <span class="keyword">false</span>;     <span class="comment">/* Any good pixels in current bin? */</span></div>
-<div class="line"><a name="l05662"></a><span class="lineno"> 5662</span>     <span class="keywordtype">double</span> flux_max = 0;         <span class="comment">/* Of all pixels in current bin */</span></div>
-<div class="line"><a name="l05663"></a><span class="lineno"> 5663</span>     <span class="keywordtype">double</span> flux_min = 0;</div>
-<div class="line"><a name="l05664"></a><span class="lineno"> 5664</span>     <span class="keywordtype">int</span> ngood = 0;  <span class="comment">/* Number of elements in arrays (good sky pixels) */</span></div>
-<div class="line"><a name="l05665"></a><span class="lineno"> 5665</span> </div>
-<div class="line"><a name="l05666"></a><span class="lineno"> 5666</span>     <span class="comment">/* Get image data (sky pixels that are also good pixels) */</span></div>
-<div class="line"><a name="l05667"></a><span class="lineno"> 5667</span>     <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l05668"></a><span class="lineno"> 5668</span>         {</div>
-<div class="line"><a name="l05669"></a><span class="lineno"> 5669</span>             <span class="keywordtype">int</span> row = pos->y - pos->ylow;</div>
-<div class="line"><a name="l05670"></a><span class="lineno"> 5670</span>                     </div>
-<div class="line"><a name="l05671"></a><span class="lineno"> 5671</span>             <span class="keywordflow">if</span> (!ISBAD(weights_data, pos))</div>
-<div class="line"><a name="l05672"></a><span class="lineno"> 5672</span>                 {</div>
-<div class="line"><a name="l05673"></a><span class="lineno"> 5673</span>                     <span class="keywordtype">double</span> fflux = DATA(image_data, pos);</div>
-<div class="line"><a name="l05674"></a><span class="lineno"> 5674</span>                     <span class="keywordtype">double</span> noise = DATA(noise_data, pos);</div>
-<div class="line"><a name="l05675"></a><span class="lineno"> 5675</span>                     </div>
-<div class="line"><a name="l05676"></a><span class="lineno"> 5676</span>                     <span class="keywordflow">if</span> (!found_good)</div>
-<div class="line"><a name="l05677"></a><span class="lineno"> 5677</span>                         {</div>
-<div class="line"><a name="l05678"></a><span class="lineno"> 5678</span>                             found_good = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l05679"></a><span class="lineno"> 5679</span>                             flux_max = fflux;</div>
-<div class="line"><a name="l05680"></a><span class="lineno"> 5680</span>                             flux_min = fflux;</div>
-<div class="line"><a name="l05681"></a><span class="lineno"> 5681</span>                         }</div>
-<div class="line"><a name="l05682"></a><span class="lineno"> 5682</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05683"></a><span class="lineno"> 5683</span>                         {</div>
-<div class="line"><a name="l05684"></a><span class="lineno"> 5684</span>                             flux_max = uves_max_double(flux_max, fflux);</div>
-<div class="line"><a name="l05685"></a><span class="lineno"> 5685</span>                             flux_min = uves_min_double(flux_min, fflux);</div>
-<div class="line"><a name="l05686"></a><span class="lineno"> 5686</span>                         }</div>
-<div class="line"><a name="l05687"></a><span class="lineno"> 5687</span> </div>
-<div class="line"><a name="l05688"></a><span class="lineno"> 5688</span>             <span class="comment">/*if (pos->order == 1 && pos->x == 2825)</span></div>
-<div class="line"><a name="l05689"></a><span class="lineno"> 5689</span> <span class="comment">            {</span></div>
-<div class="line"><a name="l05690"></a><span class="lineno"> 5690</span> <span class="comment">                uves_msg_error("%d: %f +- %f%s", pos->y, fflux, noise,</span></div>
-<div class="line"><a name="l05691"></a><span class="lineno"> 5691</span> <span class="comment">                       cpl_table_is_selected(sky_map, row) ? " *" : "");</span></div>
-<div class="line"><a name="l05692"></a><span class="lineno"> 5692</span> <span class="comment">            }</span></div>
-<div class="line"><a name="l05693"></a><span class="lineno"> 5693</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l05694"></a><span class="lineno"> 5694</span> </div>
-<div class="line"><a name="l05695"></a><span class="lineno"> 5695</span>                     <span class="keywordflow">if</span> (cpl_table_is_selected(sky_map, row))</div>
-<div class="line"><a name="l05696"></a><span class="lineno"> 5696</span>                         {</div>
-<div class="line"><a name="l05697"></a><span class="lineno"> 5697</span>                             buffer_flux [ngood] = fflux;</div>
-<div class="line"><a name="l05698"></a><span class="lineno"> 5698</span>                             buffer_noise[ngood] = noise;</div>
-<div class="line"><a name="l05699"></a><span class="lineno"> 5699</span>                             ngood++;</div>
-<div class="line"><a name="l05700"></a><span class="lineno"> 5700</span>                         }</div>
-<div class="line"><a name="l05701"></a><span class="lineno"> 5701</span>                 }</div>
-<div class="line"><a name="l05702"></a><span class="lineno"> 5702</span>         }</div>
-<div class="line"><a name="l05703"></a><span class="lineno"> 5703</span>     </div>
-<div class="line"><a name="l05704"></a><span class="lineno"> 5704</span>     <span class="comment">/* Get median of valid rows */</span></div>
-<div class="line"><a name="l05705"></a><span class="lineno"> 5705</span>     <span class="keywordflow">if</span> (ngood > 0)</div>
-<div class="line"><a name="l05706"></a><span class="lineno"> 5706</span>         {</div>
-<div class="line"><a name="l05707"></a><span class="lineno"> 5707</span>             <span class="comment">/* Get noise of one sky pixel (assumed constant for all sky pixels) */</span></div>
-<div class="line"><a name="l05708"></a><span class="lineno"> 5708</span>             <span class="keywordtype">double</span> avg_noise = <a class="code" href="group__uves__utils__cpl.html#ga94492b7e724286022f3bc946952dc79d" title="returns median (not CPL median) of an array">uves_tools_get_median</a>(buffer_noise, ngood);</div>
-<div class="line"><a name="l05709"></a><span class="lineno"> 5709</span>                     </div>
-<div class="line"><a name="l05710"></a><span class="lineno"> 5710</span>             sky_background   = <a class="code" href="group__uves__utils__cpl.html#ga94492b7e724286022f3bc946952dc79d" title="returns median (not CPL median) of an array">uves_tools_get_median</a>(buffer_flux, ngood);</div>
-<div class="line"><a name="l05711"></a><span class="lineno"> 5711</span>                     </div>
-<div class="line"><a name="l05712"></a><span class="lineno"> 5712</span>             <span class="comment">/* If only 1 valid sky pixel */</span></div>
-<div class="line"><a name="l05713"></a><span class="lineno"> 5713</span>             <span class="keywordflow">if</span> (ngood == 1)</div>
-<div class="line"><a name="l05714"></a><span class="lineno"> 5714</span>                 {</div>
-<div class="line"><a name="l05715"></a><span class="lineno"> 5715</span>                     *sky_background_noise = avg_noise;</div>
-<div class="line"><a name="l05716"></a><span class="lineno"> 5716</span>                 }</div>
-<div class="line"><a name="l05717"></a><span class="lineno"> 5717</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05718"></a><span class="lineno"> 5718</span>                 {</div>
-<div class="line"><a name="l05719"></a><span class="lineno"> 5719</span>                     <span class="comment">/* 2 or more sky pixels.</span></div>
-<div class="line"><a name="l05720"></a><span class="lineno"> 5720</span> <span class="comment">                     *</span></div>
-<div class="line"><a name="l05721"></a><span class="lineno"> 5721</span> <span class="comment">                     * Uncertainty of median is (approximately)</span></div>
-<div class="line"><a name="l05722"></a><span class="lineno"> 5722</span> <span class="comment">                     *</span></div>
-<div class="line"><a name="l05723"></a><span class="lineno"> 5723</span> <span class="comment">                     *  sigma_median = sigma / sqrt(N * 2/pi)  ;  N >= 2</span></div>
-<div class="line"><a name="l05724"></a><span class="lineno"> 5724</span> <span class="comment">                     *</span></div>
-<div class="line"><a name="l05725"></a><span class="lineno"> 5725</span> <span class="comment">                     *  where sigma is the (constant) noise of each pixel</span></div>
-<div class="line"><a name="l05726"></a><span class="lineno"> 5726</span> <span class="comment">                     */</span></div>
-<div class="line"><a name="l05727"></a><span class="lineno"> 5727</span>                     *sky_background_noise = avg_noise / sqrt(ngood * 2 / M_PI);</div>
-<div class="line"><a name="l05728"></a><span class="lineno"> 5728</span>                 }</div>
-<div class="line"><a name="l05729"></a><span class="lineno"> 5729</span>         }</div>
-<div class="line"><a name="l05730"></a><span class="lineno"> 5730</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05731"></a><span class="lineno"> 5731</span>         <span class="comment">/* No sky pixels, set noise as max - min */</span></div>
-<div class="line"><a name="l05732"></a><span class="lineno"> 5732</span>         {</div>
-<div class="line"><a name="l05733"></a><span class="lineno"> 5733</span>             <span class="keywordflow">if</span> (found_good)</div>
-<div class="line"><a name="l05734"></a><span class="lineno"> 5734</span>                 {</div>
-<div class="line"><a name="l05735"></a><span class="lineno"> 5735</span>                     sky_background = flux_min;</div>
-<div class="line"><a name="l05736"></a><span class="lineno"> 5736</span>                     *sky_background_noise = flux_max - flux_min;</div>
-<div class="line"><a name="l05737"></a><span class="lineno"> 5737</span>                             </div>
-<div class="line"><a name="l05738"></a><span class="lineno"> 5738</span>                     <span class="comment">/* In the rare case where max==min, set noise to</span></div>
-<div class="line"><a name="l05739"></a><span class="lineno"> 5739</span> <span class="comment">                       something that's not zero */</span></div>
-<div class="line"><a name="l05740"></a><span class="lineno"> 5740</span>                     <span class="keywordflow">if</span> (*sky_background_noise <= 0) *sky_background_noise = 1;</div>
-<div class="line"><a name="l05741"></a><span class="lineno"> 5741</span>                 }</div>
-<div class="line"><a name="l05742"></a><span class="lineno"> 5742</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05743"></a><span class="lineno"> 5743</span>                 <span class="comment">/* No good pixels in bin */</span></div>
-<div class="line"><a name="l05744"></a><span class="lineno"> 5744</span>                 {</div>
-<div class="line"><a name="l05745"></a><span class="lineno"> 5745</span>                     sky_background = 0;</div>
-<div class="line"><a name="l05746"></a><span class="lineno"> 5746</span>                     *sky_background_noise = 1;</div>
-<div class="line"><a name="l05747"></a><span class="lineno"> 5747</span>                 }</div>
-<div class="line"><a name="l05748"></a><span class="lineno"> 5748</span>         }</div>
-<div class="line"><a name="l05749"></a><span class="lineno"> 5749</span>          </div>
-<div class="line"><a name="l05750"></a><span class="lineno"> 5750</span>     <span class="comment">/* if (pos->order == 1 && pos->x == 2825) uves_msg_error("sky = %f", sky_background); */</span></div>
-<div class="line"><a name="l05751"></a><span class="lineno"> 5751</span>     <span class="keywordflow">return</span> sky_background;</div>
-<div class="line"><a name="l05752"></a><span class="lineno"> 5752</span> </div>
-<div class="line"><a name="l05753"></a><span class="lineno"> 5753</span> }</div>
-<div class="line"><a name="l05754"></a><span class="lineno"> 5754</span> </div>
-<div class="line"><a name="l05755"></a><span class="lineno"> 5755</span> </div>
-<div class="line"><a name="l05756"></a><span class="lineno"> 5756</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05766"></a><span class="lineno"> 5766</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05767"></a><span class="lineno"> 5767</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l05768"></a><span class="lineno"><a class="code" href="group__uves__extract.html#gaa6e6619285bc14f8d61ed59ec8266d6e"> 5768</a></span> <a class="code" href="group__uves__extract.html#gaa6e6619285bc14f8d61ed59ec8266d6e" title="Measure median noise level of extraction bin.">opt_get_noise_median</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data, <span class="keyword">const</span> cpl_binary *image_bpm,</div>
-<div class="line"><a name="l05769"></a><span class="lineno"> 5769</span>                      uves_iterate_position *pos, <span class="keywordtype">double</span> noise_buffer[])</div>
-<div class="line"><a name="l05770"></a><span class="lineno"> 5770</span> {</div>
-<div class="line"><a name="l05771"></a><span class="lineno"> 5771</span>     <span class="keywordtype">double</span> median_noise;     <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l05772"></a><span class="lineno"> 5772</span>     <span class="keywordtype">int</span> ngood;               <span class="comment">/* Number of good pixels */</span></div>
-<div class="line"><a name="l05773"></a><span class="lineno"> 5773</span>     </div>
-<div class="line"><a name="l05774"></a><span class="lineno"> 5774</span>     ngood = 0;</div>
-<div class="line"><a name="l05775"></a><span class="lineno"> 5775</span>     <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l05776"></a><span class="lineno"> 5776</span>         {</div>
-<div class="line"><a name="l05777"></a><span class="lineno"> 5777</span>             <span class="keywordflow">if</span> (ISGOOD(image_bpm, pos))</div>
-<div class="line"><a name="l05778"></a><span class="lineno"> 5778</span>                 {</div>
-<div class="line"><a name="l05779"></a><span class="lineno"> 5779</span>                     noise_buffer[ngood] = DATA(noise_data, pos);</div>
-<div class="line"><a name="l05780"></a><span class="lineno"> 5780</span>             ngood++;</div>
-<div class="line"><a name="l05781"></a><span class="lineno"> 5781</span>                 }</div>
-<div class="line"><a name="l05782"></a><span class="lineno"> 5782</span>         }</div>
-<div class="line"><a name="l05783"></a><span class="lineno"> 5783</span>     </div>
-<div class="line"><a name="l05784"></a><span class="lineno"> 5784</span>     <span class="keywordflow">if</span> (ngood >= 1)</div>
-<div class="line"><a name="l05785"></a><span class="lineno"> 5785</span>     {</div>
-<div class="line"><a name="l05786"></a><span class="lineno"> 5786</span>             median_noise = <a class="code" href="group__uves__utils__cpl.html#ga94492b7e724286022f3bc946952dc79d" title="returns median (not CPL median) of an array">uves_tools_get_median</a>(noise_buffer, ngood);</div>
-<div class="line"><a name="l05787"></a><span class="lineno"> 5787</span>         }</div>
-<div class="line"><a name="l05788"></a><span class="lineno"> 5788</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05789"></a><span class="lineno"> 5789</span>         {</div>
-<div class="line"><a name="l05790"></a><span class="lineno"> 5790</span>             median_noise = 1;</div>
-<div class="line"><a name="l05791"></a><span class="lineno"> 5791</span>         }</div>
-<div class="line"><a name="l05792"></a><span class="lineno"> 5792</span>     </div>
-<div class="line"><a name="l05793"></a><span class="lineno"> 5793</span>     <span class="keywordflow">return</span> median_noise;</div>
-<div class="line"><a name="l05794"></a><span class="lineno"> 5794</span> }</div>
-<div class="line"><a name="l05795"></a><span class="lineno"> 5795</span> </div>
-<div class="line"><a name="l05796"></a><span class="lineno"> 5796</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05869"></a><span class="lineno"> 5869</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05870"></a><span class="lineno"> 5870</span> </div>
-<div class="line"><a name="l05871"></a><span class="lineno"> 5871</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l05872"></a><span class="lineno"><a class="code" href="group__uves__extract.html#ga8f31c60f3e1e173ad20217652934480c"> 5872</a></span> <a class="code" href="group__uves__extract.html#ga8f31c60f3e1e173ad20217652934480c" title="Get flux, sky and variances of current bin.">opt_get_flux_sky_variance</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *image_data, <span class="keyword">const</span> <span class="keywordtype">double</spa [...]
-<div class="line"><a name="l05873"></a><span class="lineno"> 5873</span>               <span class="keywordtype">double</span> *weights_data,</div>
-<div class="line"><a name="l05874"></a><span class="lineno"> 5874</span>               uves_iterate_position *pos,</div>
-<div class="line"><a name="l05875"></a><span class="lineno"> 5875</span>               <span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l05876"></a><span class="lineno"> 5876</span>               <span class="keywordtype">bool</span> optimal_extract_sky,</div>
-<div class="line"><a name="l05877"></a><span class="lineno"> 5877</span>               <span class="keywordtype">double</span> median_noise,</div>
-<div class="line"><a name="l05878"></a><span class="lineno"> 5878</span>               <span class="keywordtype">double</span> *variance,</div>
-<div class="line"><a name="l05879"></a><span class="lineno"> 5879</span>               <span class="keywordtype">double</span> *sky_background,</div>
-<div class="line"><a name="l05880"></a><span class="lineno"> 5880</span>               <span class="keywordtype">double</span> *sky_background_noise)</div>
-<div class="line"><a name="l05881"></a><span class="lineno"> 5881</span> {</div>
-<div class="line"><a name="l05882"></a><span class="lineno"> 5882</span>     <span class="keywordtype">double</span> flux;                 <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l05883"></a><span class="lineno"> 5883</span>     <span class="keywordtype">double</span> sumpfv = 0;           <span class="comment">/* Sum of  profile*flux / variance */</span></div>
-<div class="line"><a name="l05884"></a><span class="lineno"> 5884</span>     <span class="keywordtype">double</span> sumppv = 0;           <span class="comment">/* Sum of  profile^2/variance      */</span></div>
-<div class="line"><a name="l05885"></a><span class="lineno"> 5885</span>     <span class="keywordtype">double</span> sum1v = 0;            <span class="comment">/* Sum of  1 / variance            */</span></div>
-<div class="line"><a name="l05886"></a><span class="lineno"> 5886</span>     <span class="keywordtype">double</span> sumpv = 0;            <span class="comment">/* Sum of  profile / variance      */</span></div>
-<div class="line"><a name="l05887"></a><span class="lineno"> 5887</span>     <span class="keywordtype">double</span> sumfv = 0;            <span class="comment">/* Sum of  flux / variance         */</span></div>
-<div class="line"><a name="l05888"></a><span class="lineno"> 5888</span> </div>
-<div class="line"><a name="l05889"></a><span class="lineno"> 5889</span>     <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l05890"></a><span class="lineno"> 5890</span>         {</div>
-<div class="line"><a name="l05891"></a><span class="lineno"> 5891</span>             <span class="comment">/* If pixel is not rejected, set weight and accumulate */</span></div>
-<div class="line"><a name="l05892"></a><span class="lineno"> 5892</span>             <span class="keywordflow">if</span> (!ISBAD(weights_data, pos))</div>
-<div class="line"><a name="l05893"></a><span class="lineno"> 5893</span>                 {</div>
-<div class="line"><a name="l05894"></a><span class="lineno"> 5894</span>                     <span class="keywordtype">double</span> pixel_variance, pixelval, weight;</div>
-<div class="line"><a name="l05895"></a><span class="lineno"> 5895</span>                     <span class="keywordtype">double</span> prof = uves_extract_profile_evaluate(profile, pos); <span class="comment">/* is positive */</span></div>
-<div class="line"><a name="l05896"></a><span class="lineno"> 5896</span>                     </div>
-<div class="line"><a name="l05897"></a><span class="lineno"> 5897</span>                     pixelval       = DATA(image_data, pos);</div>
-<div class="line"><a name="l05898"></a><span class="lineno"> 5898</span>                     pixel_variance = DATA(noise_data, pos);</div>
-<div class="line"><a name="l05899"></a><span class="lineno"> 5899</span>                     pixel_variance *= pixel_variance;</div>
-<div class="line"><a name="l05900"></a><span class="lineno"> 5900</span>                     </div>
-<div class="line"><a name="l05901"></a><span class="lineno"> 5901</span>                     <span class="keywordflow">if</span> (median_noise >= 0 && pixel_variance < median_noise*median_noise)</div>
-<div class="line"><a name="l05902"></a><span class="lineno"> 5902</span>                         {</div>
-<div class="line"><a name="l05903"></a><span class="lineno"> 5903</span>                             <span class="comment">/* Increase noise to median (otherwise, 'dead' pixels</span></div>
-<div class="line"><a name="l05904"></a><span class="lineno"> 5904</span> <span class="comment">                               that aren't yet rejected will get too much weight) */</span></div>
-<div class="line"><a name="l05905"></a><span class="lineno"> 5905</span>                             pixel_variance = median_noise*median_noise;</div>
-<div class="line"><a name="l05906"></a><span class="lineno"> 5906</span>                         }</div>
-<div class="line"><a name="l05907"></a><span class="lineno"> 5907</span>                     </div>
-<div class="line"><a name="l05908"></a><span class="lineno"> 5908</span>                     weight = prof / pixel_variance;</div>
-<div class="line"><a name="l05909"></a><span class="lineno"> 5909</span>                     DATA(weights_data, pos) = weight; </div>
-<div class="line"><a name="l05910"></a><span class="lineno"> 5910</span>                     <span class="comment">/* Assuming Horne's traditional formula</span></div>
-<div class="line"><a name="l05911"></a><span class="lineno"> 5911</span> <span class="comment">                       which is a good approximation</span></div>
-<div class="line"><a name="l05912"></a><span class="lineno"> 5912</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l05913"></a><span class="lineno"> 5913</span> </div>
-<div class="line"><a name="l05914"></a><span class="lineno"> 5914</span>                     sumpfv += pixelval * weight;</div>
-<div class="line"><a name="l05915"></a><span class="lineno"> 5915</span>                     sumppv += prof * weight;</div>
-<div class="line"><a name="l05916"></a><span class="lineno"> 5916</span>             <span class="keywordflow">if</span> (optimal_extract_sky) </div>
-<div class="line"><a name="l05917"></a><span class="lineno"> 5917</span>             <span class="comment">/* Optimization. Don't calculate if not needed. */</span></div>
-<div class="line"><a name="l05918"></a><span class="lineno"> 5918</span>             {</div>
-<div class="line"><a name="l05919"></a><span class="lineno"> 5919</span>                 sumpv  += weight;</div>
-<div class="line"><a name="l05920"></a><span class="lineno"> 5920</span>                 sum1v  += 1 / pixel_variance;</div>
-<div class="line"><a name="l05921"></a><span class="lineno"> 5921</span>                 sumfv  += pixelval / pixel_variance;</div>
-<div class="line"><a name="l05922"></a><span class="lineno"> 5922</span>             }</div>
-<div class="line"><a name="l05923"></a><span class="lineno"> 5923</span>                 }</div>
-<div class="line"><a name="l05924"></a><span class="lineno"> 5924</span> </div>
-<div class="line"><a name="l05925"></a><span class="lineno"> 5925</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l05926"></a><span class="lineno"> 5926</span> <span class="comment">        if (pos->order == 1 && pos->x == 2825){</span></div>
-<div class="line"><a name="l05927"></a><span class="lineno"> 5927</span> <span class="comment">        if (ISBAD(weights_data, pos))</span></div>
-<div class="line"><a name="l05928"></a><span class="lineno"> 5928</span> <span class="comment">        uves_msg_error("%d: *", pos->y);</span></div>
-<div class="line"><a name="l05929"></a><span class="lineno"> 5929</span> <span class="comment">            else</span></div>
-<div class="line"><a name="l05930"></a><span class="lineno"> 5930</span> <span class="comment">        uves_msg_error("%d: %f +- %f", pos->y, DATA(image_data, pos), DATA(noise_data, pos));</span></div>
-<div class="line"><a name="l05931"></a><span class="lineno"> 5931</span> <span class="comment">            }</span></div>
-<div class="line"><a name="l05932"></a><span class="lineno"> 5932</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l05933"></a><span class="lineno"> 5933</span>             </div>
-<div class="line"><a name="l05934"></a><span class="lineno"> 5934</span>         }</div>
-<div class="line"><a name="l05935"></a><span class="lineno"> 5935</span> </div>
-<div class="line"><a name="l05936"></a><span class="lineno"> 5936</span>     <span class="keywordflow">if</span> (!optimal_extract_sky)</div>
-<div class="line"><a name="l05937"></a><span class="lineno"> 5937</span>     {</div>
-<div class="line"><a name="l05938"></a><span class="lineno"> 5938</span>         <span class="comment">/* Horne's traditional formulas */</span></div>
-<div class="line"><a name="l05939"></a><span class="lineno"> 5939</span>         <span class="keywordflow">if</span> (sumppv > 0 && !irplib_isnan(sumppv) && !irplib_isinf(sumppv))</div>
-<div class="line"><a name="l05940"></a><span class="lineno"> 5940</span>         {</div>
-<div class="line"><a name="l05941"></a><span class="lineno"> 5941</span>             flux      = sumpfv / sumppv;</div>
-<div class="line"><a name="l05942"></a><span class="lineno"> 5942</span>             *variance =      1 / sumppv;</div>
-<div class="line"><a name="l05943"></a><span class="lineno"> 5943</span>         }</div>
-<div class="line"><a name="l05944"></a><span class="lineno"> 5944</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05945"></a><span class="lineno"> 5945</span>         {</div>
-<div class="line"><a name="l05946"></a><span class="lineno"> 5946</span>             flux = 0;</div>
-<div class="line"><a name="l05947"></a><span class="lineno"> 5947</span>             *variance = 1;</div>
-<div class="line"><a name="l05948"></a><span class="lineno"> 5948</span>         }</div>
-<div class="line"><a name="l05949"></a><span class="lineno"> 5949</span>     }</div>
-<div class="line"><a name="l05950"></a><span class="lineno"> 5950</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05951"></a><span class="lineno"> 5951</span>     {</div>
-<div class="line"><a name="l05952"></a><span class="lineno"> 5952</span>         <span class="comment">/* Generalization of Horne explained above */</span></div>
-<div class="line"><a name="l05953"></a><span class="lineno"> 5953</span>         <span class="keywordtype">long</span> <span class="keywordtype">double</span> denominator = (<span class="keywordtype">long</span> double)sum1v*sumppv - (<span class="keywordtype">long</span> <span class="keywordtype">double</span>)sumpv*sumpv;</div>
-<div class="line"><a name="l05954"></a><span class="lineno"> 5954</span> <span class="comment">/* to fix a problem on 64 bit due to the fact denominator can be very small, we cast iit to long double and then compare it abs value with a small number, like DBL_MIN */</span></div>
-<div class="line"><a name="l05955"></a><span class="lineno"> 5955</span>         <span class="keywordflow">if</span> (fabsl(denominator) > DBL_MIN)</div>
-<div class="line"><a name="l05956"></a><span class="lineno"> 5956</span>         {</div>
-<div class="line"><a name="l05957"></a><span class="lineno"> 5957</span>             flux      = ((<span class="keywordtype">long</span> double)sum1v * sumpfv - (<span class="keywordtype">long</span> <span class="keywordtype">double</span>)sumpv * sumfv) / denominator;</div>
-<div class="line"><a name="l05958"></a><span class="lineno"> 5958</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l05959"></a><span class="lineno"> 5959</span> <span class="comment">            if(flux > 1.e40 || flux < -1.e40) {</span></div>
-<div class="line"><a name="l05960"></a><span class="lineno"> 5960</span> <span class="comment">          uves_msg_warning("Very large optimally extracted flux=%g sum1v=%g sumpfv=%g sumpv=%g sumfv=%g denominator=%lg",flux,sum1v,sumpfv,sumpv,sumfv,denominator);</span></div>
-<div class="line"><a name="l05961"></a><span class="lineno"> 5961</span> <span class="comment">        } </span></div>
-<div class="line"><a name="l05962"></a><span class="lineno"> 5962</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l05963"></a><span class="lineno"> 5963</span>                     <span class="comment">/* Traditional formula, underestimates the error bars</span></div>
-<div class="line"><a name="l05964"></a><span class="lineno"> 5964</span> <span class="comment">                       and results in a (false) higher S/N</span></div>
-<div class="line"><a name="l05965"></a><span class="lineno"> 5965</span> <span class="comment">                       *variance = 1 / sumppv; </span></div>
-<div class="line"><a name="l05966"></a><span class="lineno"> 5966</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l05967"></a><span class="lineno"> 5967</span>             </div>
-<div class="line"><a name="l05968"></a><span class="lineno"> 5968</span>             <span class="comment">/* Formula which takes into account the uncertainty</span></div>
-<div class="line"><a name="l05969"></a><span class="lineno"> 5969</span> <span class="comment">               of the sky subtraction: */</span></div>
-<div class="line"><a name="l05970"></a><span class="lineno"> 5970</span>                     *variance = (<span class="keywordtype">long</span> double)sum1v / denominator;</div>
-<div class="line"><a name="l05971"></a><span class="lineno"> 5971</span>             </div>
-<div class="line"><a name="l05972"></a><span class="lineno"> 5972</span>             *sky_background = (sumppv*sumfv - sumpv*sumpfv) / denominator;</div>
-<div class="line"><a name="l05973"></a><span class="lineno"> 5973</span>             *sky_background_noise = sqrt(sumppv / denominator);</div>
-<div class="line"><a name="l05974"></a><span class="lineno"> 5974</span>         }</div>
-<div class="line"><a name="l05975"></a><span class="lineno"> 5975</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05976"></a><span class="lineno"> 5976</span>         {</div>
-<div class="line"><a name="l05977"></a><span class="lineno"> 5977</span>             flux = 0;</div>
-<div class="line"><a name="l05978"></a><span class="lineno"> 5978</span>             *variance = 1;</div>
-<div class="line"><a name="l05979"></a><span class="lineno"> 5979</span> </div>
-<div class="line"><a name="l05980"></a><span class="lineno"> 5980</span>             *sky_background = 0;</div>
-<div class="line"><a name="l05981"></a><span class="lineno"> 5981</span>             *sky_background_noise = 1;</div>
-<div class="line"><a name="l05982"></a><span class="lineno"> 5982</span>         }</div>
-<div class="line"><a name="l05983"></a><span class="lineno"> 5983</span>     }</div>
-<div class="line"><a name="l05984"></a><span class="lineno"> 5984</span> </div>
-<div class="line"><a name="l05985"></a><span class="lineno"> 5985</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l05986"></a><span class="lineno"> 5986</span> <span class="comment">    if (pos->order == 1 && pos->x == 2825)</span></div>
-<div class="line"><a name="l05987"></a><span class="lineno"> 5987</span> <span class="comment">    {if (sky_background)</span></div>
-<div class="line"><a name="l05988"></a><span class="lineno"> 5988</span> <span class="comment">        uves_msg_error("sky = %f", *sky_background);</span></div>
-<div class="line"><a name="l05989"></a><span class="lineno"> 5989</span> <span class="comment">    }</span></div>
-<div class="line"><a name="l05990"></a><span class="lineno"> 5990</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l05991"></a><span class="lineno"> 5991</span> </div>
-<div class="line"><a name="l05992"></a><span class="lineno"> 5992</span>     <span class="keywordflow">return</span> flux;</div>
-<div class="line"><a name="l05993"></a><span class="lineno"> 5993</span> }  </div>
-<div class="line"><a name="l05994"></a><span class="lineno"> 5994</span> </div>
-<div class="line"><a name="l05995"></a><span class="lineno"> 5995</span> </div>
-<div class="line"><a name="l05996"></a><span class="lineno"> 5996</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06021"></a><span class="lineno"> 6021</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06022"></a><span class="lineno"> 6022</span> <span class="keyword">static</span> <span class="keywordtype">bool</span></div>
-<div class="line"><a name="l06023"></a><span class="lineno"><a class="code" href="group__uves__extract.html#ga6ca277a820936e41b96d85c6bf0ea21b"> 6023</a></span> <a class="code" href="group__uves__extract.html#ga6ca277a820936e41b96d85c6bf0ea21b" title="Find and reject outlier pixel.">opt_reject_outlier</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *image_data, </div>
-<div class="line"><a name="l06024"></a><span class="lineno"> 6024</span>                    <span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data,</div>
-<div class="line"><a name="l06025"></a><span class="lineno"> 6025</span>            cpl_binary *image_bpm,</div>
-<div class="line"><a name="l06026"></a><span class="lineno"> 6026</span>            <span class="keywordtype">double</span> *weights_data,</div>
-<div class="line"><a name="l06027"></a><span class="lineno"> 6027</span>            uves_iterate_position *pos,</div>
-<div class="line"><a name="l06028"></a><span class="lineno"> 6028</span>            <span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l06029"></a><span class="lineno"> 6029</span>            <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l06030"></a><span class="lineno"> 6030</span>            <span class="keywordtype">double</span> flux, </div>
-<div class="line"><a name="l06031"></a><span class="lineno"> 6031</span>            <span class="keywordtype">double</span> sky_background,</div>
-<div class="line"><a name="l06032"></a><span class="lineno"> 6032</span>            <span class="keywordtype">double</span> red_chisq,</div>
-<div class="line"><a name="l06033"></a><span class="lineno"> 6033</span>            cpl_table *cosmic_mask, </div>
-<div class="line"><a name="l06034"></a><span class="lineno"> 6034</span>                    <span class="keywordtype">int</span> *cr_row,</div>
-<div class="line"><a name="l06035"></a><span class="lineno"> 6035</span>            <span class="keywordtype">int</span> *hot_pixels, </div>
-<div class="line"><a name="l06036"></a><span class="lineno"> 6036</span>            <span class="keywordtype">int</span> *cold_pixels)</div>
-<div class="line"><a name="l06037"></a><span class="lineno"> 6037</span> {</div>
-<div class="line"><a name="l06038"></a><span class="lineno"> 6038</span>   <span class="keywordtype">bool</span> found_outlier = <span class="keyword">false</span>;       <span class="comment">/* Result                          */</span></div>
-<div class="line"><a name="l06039"></a><span class="lineno"> 6039</span> </div>
-<div class="line"><a name="l06040"></a><span class="lineno"> 6040</span>   <span class="keywordtype">int</span> y_outlier = -1;               <span class="comment">/* Position of worst outlier       */</span></div>
-<div class="line"><a name="l06041"></a><span class="lineno"> 6041</span>   <span class="keywordtype">double</span> max_residual_sq = 0;       <span class="comment">/* Residual^2/sigma^2 of</span></div>
-<div class="line"><a name="l06042"></a><span class="lineno"> 6042</span> <span class="comment">                       worst outlier                   */</span></div>
-<div class="line"><a name="l06043"></a><span class="lineno"> 6043</span>   <span class="keywordtype">bool</span> outlier_is_hot = <span class="keyword">false</span>;      <span class="comment">/* true iff residual is positive   */</span></div>
-<div class="line"><a name="l06044"></a><span class="lineno"> 6044</span>   <span class="keywordtype">int</span> new_crh_tab_size=0;      </div>
-<div class="line"><a name="l06045"></a><span class="lineno"> 6045</span>   <span class="keywordtype">int</span> crh_tab_size=0;      </div>
-<div class="line"><a name="l06046"></a><span class="lineno"> 6046</span> </div>
-<div class="line"><a name="l06047"></a><span class="lineno"> 6047</span>   <span class="comment">/* Find worst outlier */</span></div>
-<div class="line"><a name="l06048"></a><span class="lineno"> 6048</span>   <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l06049"></a><span class="lineno"> 6049</span>     {</div>
-<div class="line"><a name="l06050"></a><span class="lineno"> 6050</span>       <span class="keywordtype">double</span> prof = uves_extract_profile_evaluate(profile, pos);</div>
-<div class="line"><a name="l06051"></a><span class="lineno"> 6051</span>       <span class="keywordtype">double</span> pixel_variance, pixelval;</div>
-<div class="line"><a name="l06052"></a><span class="lineno"> 6052</span>       <span class="keywordtype">double</span> best_fit;</div>
-<div class="line"><a name="l06053"></a><span class="lineno"> 6053</span>  </div>
-<div class="line"><a name="l06054"></a><span class="lineno"> 6054</span>       pixel_variance = DATA(noise_data, pos);</div>
-<div class="line"><a name="l06055"></a><span class="lineno"> 6055</span>       pixel_variance *= pixel_variance;</div>
-<div class="line"><a name="l06056"></a><span class="lineno"> 6056</span>             </div>
-<div class="line"><a name="l06057"></a><span class="lineno"> 6057</span>       pixelval = DATA(image_data, pos);</div>
-<div class="line"><a name="l06058"></a><span class="lineno"> 6058</span> </div>
-<div class="line"><a name="l06059"></a><span class="lineno"> 6059</span>       best_fit = flux * prof + sky_background;<span class="comment">/* This part used to be a stupid </span></div>
-<div class="line"><a name="l06060"></a><span class="lineno"> 6060</span> <span class="comment">                                                 bug: the sky contribution was </span></div>
-<div class="line"><a name="l06061"></a><span class="lineno"> 6061</span> <span class="comment">                                                 forgotten</span></div>
-<div class="line"><a name="l06062"></a><span class="lineno"> 6062</span> <span class="comment">                         -> most pixels were outliers</span></div>
-<div class="line"><a name="l06063"></a><span class="lineno"> 6063</span> <span class="comment">                         This bug was in the MIDAS </span></div>
-<div class="line"><a name="l06064"></a><span class="lineno"> 6064</span> <span class="comment">                                                 version and independently </span></div>
-<div class="line"><a name="l06065"></a><span class="lineno"> 6065</span> <span class="comment">                                                 reimplemented in </span></div>
-<div class="line"><a name="l06066"></a><span class="lineno"> 6066</span> <span class="comment">                         first CPL versions(!)</span></div>
-<div class="line"><a name="l06067"></a><span class="lineno"> 6067</span> <span class="comment">                           */</span></div>
-<div class="line"><a name="l06068"></a><span class="lineno"> 6068</span> </div>
-<div class="line"><a name="l06069"></a><span class="lineno"> 6069</span>       <span class="keywordflow">if</span> (!ISBAD(weights_data, pos) && </div>
-<div class="line"><a name="l06070"></a><span class="lineno"> 6070</span>       <span class="comment">/* for efficiency, don't:</span></div>
-<div class="line"><a name="l06071"></a><span class="lineno"> 6071</span> <span class="comment">         fabs(pixelval - flux * prof) / sigma >= sqrt(max_residual_sq)</span></div>
-<div class="line"><a name="l06072"></a><span class="lineno"> 6072</span> <span class="comment">      */</span></div>
-<div class="line"><a name="l06073"></a><span class="lineno"> 6073</span>       (pixelval - best_fit)*(pixelval - best_fit) / pixel_variance</div>
-<div class="line"><a name="l06074"></a><span class="lineno"> 6074</span>       >= max_residual_sq)</div>
-<div class="line"><a name="l06075"></a><span class="lineno"> 6075</span>     {</div>
-<div class="line"><a name="l06076"></a><span class="lineno"> 6076</span>       max_residual_sq =</div>
-<div class="line"><a name="l06077"></a><span class="lineno"> 6077</span>         (pixelval - best_fit) *</div>
-<div class="line"><a name="l06078"></a><span class="lineno"> 6078</span>         (pixelval - best_fit) / pixel_variance;</div>
-<div class="line"><a name="l06079"></a><span class="lineno"> 6079</span>                     </div>
-<div class="line"><a name="l06080"></a><span class="lineno"> 6080</span>       y_outlier = pos->y;</div>
-<div class="line"><a name="l06081"></a><span class="lineno"> 6081</span>                     </div>
-<div class="line"><a name="l06082"></a><span class="lineno"> 6082</span>       outlier_is_hot = (pixelval > best_fit);</div>
-<div class="line"><a name="l06083"></a><span class="lineno"> 6083</span>     }</div>
-<div class="line"><a name="l06084"></a><span class="lineno"> 6084</span>     }</div>
-<div class="line"><a name="l06085"></a><span class="lineno"> 6085</span>     </div>
-<div class="line"><a name="l06086"></a><span class="lineno"> 6086</span>   <span class="comment">/* Reject outlier </span></div>
-<div class="line"><a name="l06087"></a><span class="lineno"> 6087</span> <span class="comment">     if residual is larger than kappa sigma sqrt(red_chisq), i.e. </span></div>
-<div class="line"><a name="l06088"></a><span class="lineno"> 6088</span> <span class="comment">     if res^2/sigma^2  >  kappa^2  * chi^2/N </span></div>
-<div class="line"><a name="l06089"></a><span class="lineno"> 6089</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l06090"></a><span class="lineno"> 6090</span>   <span class="keywordflow">if</span> (max_residual_sq > kappa*kappa * red_chisq)</div>
-<div class="line"><a name="l06091"></a><span class="lineno"> 6091</span>     {</div>
-<div class="line"><a name="l06092"></a><span class="lineno"> 6092</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order #%d: Bad pixel at (x, y) = (%d, %d) residual^2 = %.2f sigma^2"</span>,</div>
-<div class="line"><a name="l06093"></a><span class="lineno"> 6093</span>              pos->order, pos->x, y_outlier, max_residual_sq);</div>
-<div class="line"><a name="l06094"></a><span class="lineno"> 6094</span>             </div>
-<div class="line"><a name="l06095"></a><span class="lineno"> 6095</span>       pos->y = y_outlier;</div>
-<div class="line"><a name="l06096"></a><span class="lineno"> 6096</span>       SETBAD(weights_data, image_bpm, pos);</div>
-<div class="line"><a name="l06097"></a><span class="lineno"> 6097</span> </div>
-<div class="line"><a name="l06098"></a><span class="lineno"> 6098</span>       found_outlier = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l06099"></a><span class="lineno"> 6099</span>       <span class="keywordflow">if</span> (outlier_is_hot)</div>
-<div class="line"><a name="l06100"></a><span class="lineno"> 6100</span>         {</div>
-<div class="line"><a name="l06101"></a><span class="lineno"> 6101</span>       *hot_pixels += 1;</div>
-<div class="line"><a name="l06102"></a><span class="lineno"> 6102</span>                     </div>
-<div class="line"><a name="l06103"></a><span class="lineno"> 6103</span>       <span class="comment">/* Update cosmic ray table. If it is too short, double the size */</span></div>
-<div class="line"><a name="l06104"></a><span class="lineno"> 6104</span>           crh_tab_size=cpl_table_get_nrow(cosmic_mask);</div>
-<div class="line"><a name="l06105"></a><span class="lineno"> 6105</span>       <span class="keywordflow">while</span> (*cr_row >= crh_tab_size )</div>
-<div class="line"><a name="l06106"></a><span class="lineno"> 6106</span>         {</div>
-<div class="line"><a name="l06107"></a><span class="lineno"> 6107</span>               new_crh_tab_size=( *cr_row > 2*crh_tab_size) ? (*cr_row)+10: 2*crh_tab_size;</div>
-<div class="line"><a name="l06108"></a><span class="lineno"> 6108</span>           cpl_table_set_size(cosmic_mask,new_crh_tab_size );</div>
-<div class="line"><a name="l06109"></a><span class="lineno"> 6109</span>           crh_tab_size=cpl_table_get_nrow(cosmic_mask);</div>
-<div class="line"><a name="l06110"></a><span class="lineno"> 6110</span>         }</div>
-<div class="line"><a name="l06111"></a><span class="lineno"> 6111</span>             </div>
-<div class="line"><a name="l06112"></a><span class="lineno"> 6112</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_set_int   (cosmic_mask, <span class="stringliteral">"Order"</span>, *cr_row, pos->order),</div>
-<div class="line"><a name="l06113"></a><span class="lineno"> 6113</span>           cpl_table_set_int   (cosmic_mask, <span class="stringliteral">"X"</span>    , *cr_row, pos->x),</div>
-<div class="line"><a name="l06114"></a><span class="lineno"> 6114</span>           cpl_table_set_int   (cosmic_mask, <span class="stringliteral">"Y"</span>    , *cr_row, y_outlier),</div>
-<div class="line"><a name="l06115"></a><span class="lineno"> 6115</span>           cpl_table_set_double(cosmic_mask, <span class="stringliteral">"Flux"</span> , *cr_row,</div>
-<div class="line"><a name="l06116"></a><span class="lineno"> 6116</span>                        DATA(image_data, pos)),</div>
-<div class="line"><a name="l06117"></a><span class="lineno"> 6117</span>           (*cr_row)++),</div>
-<div class="line"><a name="l06118"></a><span class="lineno"> 6118</span>         <span class="stringliteral">"Error updating cosmic ray table"</span>);</div>
-<div class="line"><a name="l06119"></a><span class="lineno"> 6119</span>     }</div>
-<div class="line"><a name="l06120"></a><span class="lineno"> 6120</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l06121"></a><span class="lineno"> 6121</span>     {</div>
-<div class="line"><a name="l06122"></a><span class="lineno"> 6122</span>       *cold_pixels += 1;</div>
-<div class="line"><a name="l06123"></a><span class="lineno"> 6123</span>     }</div>
-<div class="line"><a name="l06124"></a><span class="lineno"> 6124</span>     }</div>
-<div class="line"><a name="l06125"></a><span class="lineno"> 6125</span> </div>
-<div class="line"><a name="l06126"></a><span class="lineno"> 6126</span>  </div>
-<div class="line"><a name="l06127"></a><span class="lineno"> 6127</span>  cleanup:</div>
-<div class="line"><a name="l06128"></a><span class="lineno"> 6128</span>   <span class="keywordflow">return</span> found_outlier;   </div>
-<div class="line"><a name="l06129"></a><span class="lineno"> 6129</span> }</div>
-<div class="line"><a name="l06130"></a><span class="lineno"> 6130</span> </div>
-<div class="line"><a name="l06131"></a><span class="lineno"> 6131</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06141"></a><span class="lineno"> 6141</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06142"></a><span class="lineno"> 6142</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l06143"></a><span class="lineno"><a class="code" href="group__uves__extract.html#ga74a27fdb394ea3be89fdd31f6c124da3"> 6143</a></span> <a class="code" href="group__uves__extract.html#ga74a27fdb394ea3be89fdd31f6c124da3" title="Get reduced chi^2 for current bin.">opt_get_redchisq</a>(<span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l06144"></a><span class="lineno"> 6144</span>                  <span class="keyword">const</span> uves_iterate_position *pos)</div>
-<div class="line"><a name="l06145"></a><span class="lineno"> 6145</span> {</div>
-<div class="line"><a name="l06146"></a><span class="lineno"> 6146</span>     <span class="keywordflow">if</span> (profile->constant) {</div>
-<div class="line"><a name="l06147"></a><span class="lineno"> 6147</span>         <span class="keywordflow">return</span> 1.0;</div>
-<div class="line"><a name="l06148"></a><span class="lineno"> 6148</span>     }</div>
-<div class="line"><a name="l06149"></a><span class="lineno"> 6149</span>     <span class="keywordflow">if</span> (profile->f != NULL)</div>
-<div class="line"><a name="l06150"></a><span class="lineno"> 6150</span>         {</div>
-<div class="line"><a name="l06151"></a><span class="lineno"> 6151</span>             <span class="keywordflow">return</span> uves_max_double(1,</div>
-<div class="line"><a name="l06152"></a><span class="lineno"> 6152</span> #<span class="keywordflow">if</span> ORDER_PER_ORDER</div>
-<div class="line"><a name="l06153"></a><span class="lineno"> 6153</span>                    <a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(</div>
-<div class="line"><a name="l06154"></a><span class="lineno"> 6154</span>                        profile->red_chisq[pos->order-pos->minorder], pos->x));</div>
-<div class="line"><a name="l06155"></a><span class="lineno"> 6155</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l06156"></a><span class="lineno"> 6156</span> <span class="preprocessor"></span>                   <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l06157"></a><span class="lineno"> 6157</span>                        profile->red_chisq, pos->x, pos->order));</div>
-<div class="line"><a name="l06158"></a><span class="lineno"> 6158</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l06159"></a><span class="lineno"> 6159</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l06160"></a><span class="lineno"> 6160</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l06161"></a><span class="lineno"> 6161</span>         {</div>
-<div class="line"><a name="l06162"></a><span class="lineno"> 6162</span>             <span class="comment">/* Virtual resampling, don't adjust kappa */</span></div>
-<div class="line"><a name="l06163"></a><span class="lineno"> 6163</span>             <span class="keywordflow">return</span> 1.0;</div>
-<div class="line"><a name="l06164"></a><span class="lineno"> 6164</span>         }</div>
-<div class="line"><a name="l06165"></a><span class="lineno"> 6165</span> }</div>
-<div class="line"><a name="l06166"></a><span class="lineno"> 6166</span> </div>
-<div class="line"><a name="l06167"></a><span class="lineno"> 6167</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06187"></a><span class="lineno"> 6187</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l06188"></a><span class="lineno"> 6188</span> <span class="keyword">static</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l06189"></a><span class="lineno"><a class="code" href="group__uves__extract.html#gac3d98948d7bf5772674a0a6042b82bf2"> 6189</a></span> <a class="code" href="group__uves__extract.html#gac3d98948d7bf5772674a0a6042b82bf2" title="Refine order definition using the science frame.">repeat_orderdef</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *image_noise,</div>
-<div class="line"><a name="l06190"></a><span class="lineno"> 6190</span>                 <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *guess_locations,</div>
-<div class="line"><a name="l06191"></a><span class="lineno"> 6191</span>                 <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder, <a class="code" href="structslit__geometry.html">slit_geometry</a> sg,</div>
-<div class="line"><a name="l06192"></a><span class="lineno"> 6192</span>         cpl_table *info_tbl)</div>
-<div class="line"><a name="l06193"></a><span class="lineno"> 6193</span> {</div>
-<div class="line"><a name="l06194"></a><span class="lineno"> 6194</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations = NULL;</div>
-<div class="line"><a name="l06195"></a><span class="lineno"> 6195</span>     <span class="keywordtype">int</span> nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l06196"></a><span class="lineno"> 6196</span>     <span class="keywordtype">int</span> ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l06197"></a><span class="lineno"> 6197</span>     <span class="keywordtype">double</span> max_shift = sg.length/2; <span class="comment">/* pixels in y-direction */</span></div>
-<div class="line"><a name="l06198"></a><span class="lineno"> 6198</span>     <span class="keywordtype">int</span> stepx = 10;</div>
-<div class="line"><a name="l06199"></a><span class="lineno"> 6199</span>     <span class="keywordtype">int</span> x, order;</div>
-<div class="line"><a name="l06200"></a><span class="lineno"> 6200</span>     <span class="keywordtype">int</span> ordertab_row;   <span class="comment">/* First unused row of ordertab */</span></div>
-<div class="line"><a name="l06201"></a><span class="lineno"> 6201</span>     cpl_table *ordertab = NULL;</div>
-<div class="line"><a name="l06202"></a><span class="lineno"> 6202</span>     cpl_table *temp = NULL;</div>
-<div class="line"><a name="l06203"></a><span class="lineno"> 6203</span> </div>
-<div class="line"><a name="l06204"></a><span class="lineno"> 6204</span>     ordertab = cpl_table_new((maxorder - minorder + 1)*nx);</div>
-<div class="line"><a name="l06205"></a><span class="lineno"> 6205</span>     ordertab_row = 0;</div>
-<div class="line"><a name="l06206"></a><span class="lineno"> 6206</span>     cpl_table_new_column(ordertab, <span class="stringliteral">"X"</span>    , CPL_TYPE_INT);</div>
-<div class="line"><a name="l06207"></a><span class="lineno"> 6207</span>     cpl_table_new_column(ordertab, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l06208"></a><span class="lineno"> 6208</span>     cpl_table_new_column(ordertab, <span class="stringliteral">"Y"</span>    , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l06209"></a><span class="lineno"> 6209</span>     cpl_table_new_column(ordertab, <span class="stringliteral">"Yold"</span> , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l06210"></a><span class="lineno"> 6210</span>     cpl_table_new_column(ordertab, <span class="stringliteral">"Sigma"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l06211"></a><span class="lineno"> 6211</span>     cpl_table_set_column_unit(ordertab, <span class="stringliteral">"Y"</span>, <span class="stringliteral">"pixels"</span>);</div>
-<div class="line"><a name="l06212"></a><span class="lineno"> 6212</span> </div>
-<div class="line"><a name="l06213"></a><span class="lineno"> 6213</span>     <span class="comment">/* Measure */</span></div>
-<div class="line"><a name="l06214"></a><span class="lineno"> 6214</span>     <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++) {</div>
-<div class="line"><a name="l06215"></a><span class="lineno"> 6215</span>         <span class="keywordflow">for</span> (x = 1 + stepx/2; x <= nx; x += stepx) {</div>
-<div class="line"><a name="l06216"></a><span class="lineno"> 6216</span>             <span class="keywordtype">double</span> ycenter;</div>
-<div class="line"><a name="l06217"></a><span class="lineno"> 6217</span>             <span class="keywordtype">int</span> yhigh, ylow;</div>
-<div class="line"><a name="l06218"></a><span class="lineno"> 6218</span>                     </div>
-<div class="line"><a name="l06219"></a><span class="lineno"> 6219</span>             <span class="keywordtype">double</span> y_0, sigma, norm, background;</div>
-<div class="line"><a name="l06220"></a><span class="lineno"> 6220</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ycenter = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(guess_locations, x, order),</div>
-<div class="line"><a name="l06221"></a><span class="lineno"> 6221</span>                    <span class="stringliteral">"Error evaluating polynomial"</span>);</div>
-<div class="line"><a name="l06222"></a><span class="lineno"> 6222</span>                     </div>
-<div class="line"><a name="l06223"></a><span class="lineno"> 6223</span>             ylow  = uves_round_double(ycenter - max_shift);</div>
-<div class="line"><a name="l06224"></a><span class="lineno"> 6224</span>             yhigh = uves_round_double(ycenter + max_shift);</div>
-<div class="line"><a name="l06225"></a><span class="lineno"> 6225</span>                     </div>
-<div class="line"><a name="l06226"></a><span class="lineno"> 6226</span>             <span class="keywordflow">if</span> (1 <= ylow && yhigh <= ny) {</div>
-<div class="line"><a name="l06227"></a><span class="lineno"> 6227</span>                 uves_fit_1d_image(image, image_noise, NULL,</div>
-<div class="line"><a name="l06228"></a><span class="lineno"> 6228</span>                                   <span class="keyword">false</span>,            <span class="comment">/* Horizontal?              */</span></div>
-<div class="line"><a name="l06229"></a><span class="lineno"> 6229</span>                                   <span class="keyword">false</span>, <span class="keyword">false</span>,     <span class="comment">/* Fix/fit background?      */</span></div>
-<div class="line"><a name="l06230"></a><span class="lineno"> 6230</span>                                   ylow, yhigh, x,   <span class="comment">/* yrange, x                */</span></div>
-<div class="line"><a name="l06231"></a><span class="lineno"> 6231</span>                                   &y_0, &sigma, &norm, &background, NULL,</div>
-<div class="line"><a name="l06232"></a><span class="lineno"> 6232</span>                                   NULL, NULL, NULL, <span class="comment">/* mse, chi^2/N, covariance */</span></div>
-<div class="line"><a name="l06233"></a><span class="lineno"> 6233</span>                                   <a class="code" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c" title="Evaluate a gaussian.">uves_gauss</a>, <a class="code" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea" title="Evaluate the derivatives of a gaussian.">uves_gauss_derivative</a>, 4);</div>
-<div class="line"><a name="l06234"></a><span class="lineno"> 6234</span>                             </div>
-<div class="line"><a name="l06235"></a><span class="lineno"> 6235</span>                 <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_CONTINUE) {</div>
-<div class="line"><a name="l06236"></a><span class="lineno"> 6236</span>                     <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l06237"></a><span class="lineno"> 6237</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Profile fitting failed "</span></div>
-<div class="line"><a name="l06238"></a><span class="lineno"> 6238</span>                                    <span class="stringliteral">"at (x,y) = (%d, %e), ignoring bin"</span>,</div>
-<div class="line"><a name="l06239"></a><span class="lineno"> 6239</span>                                    x, ycenter);</div>
-<div class="line"><a name="l06240"></a><span class="lineno"> 6240</span>                 }</div>
-<div class="line"><a name="l06241"></a><span class="lineno"> 6241</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l06242"></a><span class="lineno"> 6242</span>                     assure(cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l06243"></a><span class="lineno"> 6243</span>                            cpl_error_get_code(), <span class="stringliteral">"Gaussian fitting failed"</span>);</div>
-<div class="line"><a name="l06244"></a><span class="lineno"> 6244</span>                                     </div>
-<div class="line"><a name="l06245"></a><span class="lineno"> 6245</span>                     cpl_table_set_int   (ordertab, <span class="stringliteral">"X"</span>     , ordertab_row, x);</div>
-<div class="line"><a name="l06246"></a><span class="lineno"> 6246</span>                     cpl_table_set_int   (ordertab, <span class="stringliteral">"Order"</span> , ordertab_row, order);</div>
-<div class="line"><a name="l06247"></a><span class="lineno"> 6247</span>                     cpl_table_set_double(ordertab, <span class="stringliteral">"Y"</span>     , ordertab_row, y_0);</div>
-<div class="line"><a name="l06248"></a><span class="lineno"> 6248</span>                     cpl_table_set_double(ordertab, <span class="stringliteral">"Yold"</span>  , ordertab_row, ycenter);</div>
-<div class="line"><a name="l06249"></a><span class="lineno"> 6249</span>                     cpl_table_set_double(ordertab, <span class="stringliteral">"Sigma"</span> , ordertab_row, sigma);</div>
-<div class="line"><a name="l06250"></a><span class="lineno"> 6250</span>                     ordertab_row += 1;</div>
-<div class="line"><a name="l06251"></a><span class="lineno"> 6251</span>                 }</div>
-<div class="line"><a name="l06252"></a><span class="lineno"> 6252</span>             }</div>
-<div class="line"><a name="l06253"></a><span class="lineno"> 6253</span>         }</div>
-<div class="line"><a name="l06254"></a><span class="lineno"> 6254</span>     }</div>
-<div class="line"><a name="l06255"></a><span class="lineno"> 6255</span>     </div>
-<div class="line"><a name="l06256"></a><span class="lineno"> 6256</span>     cpl_table_set_size(ordertab, ordertab_row);</div>
-<div class="line"><a name="l06257"></a><span class="lineno"> 6257</span> </div>
-<div class="line"><a name="l06258"></a><span class="lineno"> 6258</span>     <span class="comment">/* Fit */</span></div>
-<div class="line"><a name="l06259"></a><span class="lineno"> 6259</span>     <span class="keywordflow">if</span> (ordertab_row < 300)</div>
-<div class="line"><a name="l06260"></a><span class="lineno"> 6260</span>     {</div>
-<div class="line"><a name="l06261"></a><span class="lineno"> 6261</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Too few points (%d) to reliably fit order polynomial. "</span></div>
-<div class="line"><a name="l06262"></a><span class="lineno"> 6262</span>                  <span class="stringliteral">"Using calibration solution"</span>, ordertab_row);</div>
-<div class="line"><a name="l06263"></a><span class="lineno"> 6263</span>         </div>
-<div class="line"><a name="l06264"></a><span class="lineno"> 6264</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l06265"></a><span class="lineno"> 6265</span>         order_locations = <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(guess_locations);</div>
-<div class="line"><a name="l06266"></a><span class="lineno"> 6266</span>         </div>
-<div class="line"><a name="l06267"></a><span class="lineno"> 6267</span>         cpl_table_duplicate_column(ordertab, <span class="stringliteral">"Yfit"</span>, ordertab, <span class="stringliteral">"Yold"</span>);</div>
-<div class="line"><a name="l06268"></a><span class="lineno"> 6268</span>     }</div>
-<div class="line"><a name="l06269"></a><span class="lineno"> 6269</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l06270"></a><span class="lineno"> 6270</span>     {</div>
-<div class="line"><a name="l06271"></a><span class="lineno"> 6271</span>         <span class="keywordtype">int</span> max_degree = 10;</div>
-<div class="line"><a name="l06272"></a><span class="lineno"> 6272</span>         <span class="keywordtype">double</span> kappa = 4.0;</div>
-<div class="line"><a name="l06273"></a><span class="lineno"> 6273</span>         <span class="keywordtype">double</span> min_rms = 0.05;   <span class="comment">/* Pixels (stop at this point, for efficiency) */</span></div>
-<div class="line"><a name="l06274"></a><span class="lineno"> 6274</span>         </div>
-<div class="line"><a name="l06275"></a><span class="lineno"> 6275</span>         order_locations = </div>
-<div class="line"><a name="l06276"></a><span class="lineno"> 6276</span>         <a class="code" href="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d_autodegree</a>(ordertab,</div>
-<div class="line"><a name="l06277"></a><span class="lineno"> 6277</span>                              <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Y"</span>, NULL,</div>
-<div class="line"><a name="l06278"></a><span class="lineno"> 6278</span>                              <span class="stringliteral">"Yfit"</span>, NULL, NULL,</div>
-<div class="line"><a name="l06279"></a><span class="lineno"> 6279</span>                              NULL, NULL, NULL,</div>
-<div class="line"><a name="l06280"></a><span class="lineno"> 6280</span>                              kappa,</div>
-<div class="line"><a name="l06281"></a><span class="lineno"> 6281</span>                              max_degree, max_degree, min_rms, -1,</div>
-<div class="line"><a name="l06282"></a><span class="lineno"> 6282</span>                                                          <span class="keyword">true</span>,</div>
-<div class="line"><a name="l06283"></a><span class="lineno"> 6283</span>                              NULL, NULL, -1, NULL);</div>
-<div class="line"><a name="l06284"></a><span class="lineno"> 6284</span>     </div>
-<div class="line"><a name="l06285"></a><span class="lineno"> 6285</span>         <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX)</div>
-<div class="line"><a name="l06286"></a><span class="lineno"> 6286</span>         {</div>
-<div class="line"><a name="l06287"></a><span class="lineno"> 6287</span>             <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l06288"></a><span class="lineno"> 6288</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Could not fit new order polynomial. "</span></div>
-<div class="line"><a name="l06289"></a><span class="lineno"> 6289</span>                      <span class="stringliteral">"Using calibration solution"</span>);</div>
-<div class="line"><a name="l06290"></a><span class="lineno"> 6290</span>             </div>
-<div class="line"><a name="l06291"></a><span class="lineno"> 6291</span>             <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l06292"></a><span class="lineno"> 6292</span>             order_locations = <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(guess_locations);</div>
-<div class="line"><a name="l06293"></a><span class="lineno"> 6293</span>             </div>
-<div class="line"><a name="l06294"></a><span class="lineno"> 6294</span>             cpl_table_duplicate_column(ordertab, <span class="stringliteral">"Yfit"</span>, ordertab, <span class="stringliteral">"Yold"</span>);</div>
-<div class="line"><a name="l06295"></a><span class="lineno"> 6295</span>             </div>
-<div class="line"><a name="l06296"></a><span class="lineno"> 6296</span>             <span class="comment">/* Compute shift, also in this case */</span></div>
-<div class="line"><a name="l06297"></a><span class="lineno"> 6297</span>         }</div>
-<div class="line"><a name="l06298"></a><span class="lineno"> 6298</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l06299"></a><span class="lineno"> 6299</span>         {</div>
-<div class="line"><a name="l06300"></a><span class="lineno"> 6300</span>             assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l06301"></a><span class="lineno"> 6301</span>                 cpl_error_get_code(),</div>
-<div class="line"><a name="l06302"></a><span class="lineno"> 6302</span>                 <span class="stringliteral">"Error fitting orders polynomial"</span>);</div>
-<div class="line"><a name="l06303"></a><span class="lineno"> 6303</span>         }</div>
-<div class="line"><a name="l06304"></a><span class="lineno"> 6304</span>     }</div>
-<div class="line"><a name="l06305"></a><span class="lineno"> 6305</span>     </div>
-<div class="line"><a name="l06306"></a><span class="lineno"> 6306</span>     <span class="comment">/* Yshift := Yfit - Yold */</span></div>
-<div class="line"><a name="l06307"></a><span class="lineno"> 6307</span>     cpl_table_duplicate_column(ordertab, <span class="stringliteral">"Yshift"</span>, ordertab, <span class="stringliteral">"Yfit"</span>); <span class="comment">/* Yshift := Yfit */</span></div>
-<div class="line"><a name="l06308"></a><span class="lineno"> 6308</span>     cpl_table_subtract_columns(ordertab, <span class="stringliteral">"Yshift"</span>, <span class="stringliteral">"Yold"</span>);  <span class="comment">/* Yshift := Yshift - Yold */</span></div>
-<div class="line"><a name="l06309"></a><span class="lineno"> 6309</span>     </div>
-<div class="line"><a name="l06310"></a><span class="lineno"> 6310</span>     {</div>
-<div class="line"><a name="l06311"></a><span class="lineno"> 6311</span>     <span class="keywordtype">double</span> mean  = cpl_table_get_column_mean(ordertab, <span class="stringliteral">"Yshift"</span>);</div>
-<div class="line"><a name="l06312"></a><span class="lineno"> 6312</span>     <span class="keywordtype">double</span> stdev = cpl_table_get_column_mean(ordertab, <span class="stringliteral">"Yshift"</span>);</div>
-<div class="line"><a name="l06313"></a><span class="lineno"> 6313</span>     <span class="keywordtype">double</span> rms = sqrt(mean*mean + stdev*stdev);</div>
-<div class="line"><a name="l06314"></a><span class="lineno"> 6314</span>     </div>
-<div class="line"><a name="l06315"></a><span class="lineno"> 6315</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Average shift with respect to calibration solution is %.2f pixels"</span>, rms);</div>
-<div class="line"><a name="l06316"></a><span class="lineno"> 6316</span>     }</div>
-<div class="line"><a name="l06317"></a><span class="lineno"> 6317</span>     </div>
-<div class="line"><a name="l06318"></a><span class="lineno"> 6318</span>     <span class="comment">/* Compute object postion+FWHM wrt old solution (for QC) */</span></div>
-<div class="line"><a name="l06319"></a><span class="lineno"> 6319</span>     <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++)</div>
-<div class="line"><a name="l06320"></a><span class="lineno"> 6320</span>     {</div>
-<div class="line"><a name="l06321"></a><span class="lineno"> 6321</span>         <span class="keywordtype">double</span> pos = </div>
-<div class="line"><a name="l06322"></a><span class="lineno"> 6322</span>         <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, nx/2, order)-</div>
-<div class="line"><a name="l06323"></a><span class="lineno"> 6323</span>         <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(guess_locations, nx/2, order);</div>
-<div class="line"><a name="l06324"></a><span class="lineno"> 6324</span>         </div>
-<div class="line"><a name="l06325"></a><span class="lineno"> 6325</span>         <span class="keywordtype">double</span> fwhm;</div>
-<div class="line"><a name="l06326"></a><span class="lineno"> 6326</span>         </div>
-<div class="line"><a name="l06327"></a><span class="lineno"> 6327</span>         </div>
-<div class="line"><a name="l06328"></a><span class="lineno"> 6328</span>         <span class="comment">/* Extract rows with "Order" equal to current order,</span></div>
-<div class="line"><a name="l06329"></a><span class="lineno"> 6329</span> <span class="comment">           but avoid == comparison of floating point values */</span></div>
-<div class="line"><a name="l06330"></a><span class="lineno"> 6330</span>         uves_free_table(&temp);</div>
-<div class="line"><a name="l06331"></a><span class="lineno"> 6331</span>         temp = uves_extract_table_rows(ordertab, <span class="stringliteral">"Order"</span>,</div>
-<div class="line"><a name="l06332"></a><span class="lineno"> 6332</span>                        CPL_EQUAL_TO, </div>
-<div class="line"><a name="l06333"></a><span class="lineno"> 6333</span>                        order); <span class="comment">/* Last argument is double, will</span></div>
-<div class="line"><a name="l06334"></a><span class="lineno"> 6334</span> <span class="comment">                              be rounded to nearest integer */</span></div>
-<div class="line"><a name="l06335"></a><span class="lineno"> 6335</span>         </div>
-<div class="line"><a name="l06336"></a><span class="lineno"> 6336</span>         <span class="keywordflow">if</span> (cpl_table_get_nrow(temp) < 1)</div>
-<div class="line"><a name="l06337"></a><span class="lineno"> 6337</span>         {</div>
-<div class="line"><a name="l06338"></a><span class="lineno"> 6338</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Problem tracing object in order %d. "</span></div>
-<div class="line"><a name="l06339"></a><span class="lineno"> 6339</span>                      <span class="stringliteral">"Setting QC FHWM parameter to zero"</span>,</div>
-<div class="line"><a name="l06340"></a><span class="lineno"> 6340</span>                      order);</div>
-<div class="line"><a name="l06341"></a><span class="lineno"> 6341</span>             fwhm = 0;</div>
-<div class="line"><a name="l06342"></a><span class="lineno"> 6342</span>         }</div>
-<div class="line"><a name="l06343"></a><span class="lineno"> 6343</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l06344"></a><span class="lineno"> 6344</span>         {</div>
-<div class="line"><a name="l06345"></a><span class="lineno"> 6345</span>             fwhm = cpl_table_get_column_median(temp, <span class="stringliteral">"Sigma"</span>) * TWOSQRT2LN2;</div>
-<div class="line"><a name="l06346"></a><span class="lineno"> 6346</span>         }</div>
-<div class="line"><a name="l06347"></a><span class="lineno"> 6347</span>         </div>
-<div class="line"><a name="l06348"></a><span class="lineno"> 6348</span> </div>
-<div class="line"><a name="l06349"></a><span class="lineno"> 6349</span>         cpl_table_set_int   (info_tbl, <span class="stringliteral">"Order"</span>, order - minorder, order);</div>
-<div class="line"><a name="l06350"></a><span class="lineno"> 6350</span>         cpl_table_set_double(info_tbl, <span class="stringliteral">"ObjPosOnSlit"</span>  , order - minorder, </div>
-<div class="line"><a name="l06351"></a><span class="lineno"> 6351</span>                  pos - (-sg.length/2 + sg.offset));</div>
-<div class="line"><a name="l06352"></a><span class="lineno"> 6352</span>         cpl_table_set_double(info_tbl, <span class="stringliteral">"ObjFwhmAvg"</span> , order - minorder, fwhm);</div>
-<div class="line"><a name="l06353"></a><span class="lineno"> 6353</span>     }</div>
-<div class="line"><a name="l06354"></a><span class="lineno"> 6354</span>     </div>
-<div class="line"><a name="l06355"></a><span class="lineno"> 6355</span>   cleanup:</div>
-<div class="line"><a name="l06356"></a><span class="lineno"> 6356</span>     uves_free_table(&ordertab);</div>
-<div class="line"><a name="l06357"></a><span class="lineno"> 6357</span>     uves_free_table(&temp);</div>
-<div class="line"><a name="l06358"></a><span class="lineno"> 6358</span> </div>
-<div class="line"><a name="l06359"></a><span class="lineno"> 6359</span>     <span class="keywordflow">return</span> order_locations;</div>
-<div class="line"><a name="l06360"></a><span class="lineno"> 6360</span> }</div>
-<div class="line"><a name="l06361"></a><span class="lineno"> 6361</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__extract_8h_source.html b/html/uves__extract_8h_source.html
deleted file mode 100644
index 9b13875..0000000
--- a/html/uves__extract_8h_source.html
+++ /dev/null
@@ -1,137 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_extract.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_extract.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.38 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifndef UVES_EXTRACT_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_EXTRACT_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> </div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> </div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {EXTRACT_AVERAGE,</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span>           EXTRACT_LINEAR,</div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span>           EXTRACT_2D,</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span>           EXTRACT_ARCLAMP,</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>           EXTRACT_WEIGHTED,</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>           EXTRACT_OPTIMAL} extract_method;</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> cpl_parameterlist *<a class="code" href="group__uves__extract.html#ga99751e637d04bc19090446f3a15974d0" title="Define recipe parameters used for extraction.">uves_extract_define_parameters</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> extract_method</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <a class="code" href="group__uves__extract.html#gaa6ae7afeaf5c4a71eb399ffa29a828f7" title="Read extraction method from parameter list.">uves_get_extract_method</a>(<span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *context, <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext);</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> cpl_image *</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <a class="code" href="group__uves__extract.html#ga724649dabb1df68c512fdd9e99b36f0d" title="Extract a spectrum.">uves_extract</a>(cpl_image *image, </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>              cpl_image *image_noise, </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *image_header,</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>              <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>              <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations_raw,</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>              <span class="keywordtype">double</span> slit_length, </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>              <span class="keywordtype">double</span> offset,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>              <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *context,</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *mode,</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>              <span class="keywordtype">bool</span> extract_partial,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>          <span class="keywordtype">bool</span> debug_mode,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>          <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>              <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **header, </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>              cpl_image **spectrum_noise,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>              cpl_image **sky_spectrum,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>              cpl_image **sky_spectrum_noise,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>              cpl_table **cosmic_mask,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>              cpl_image **cosmic_image,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>              cpl_table **profile_table,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>              cpl_image **weights,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>              cpl_table **info_tbl,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>              cpl_table **order_trace);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__extract__iterate_8c_source.html b/html/uves__extract__iterate_8c_source.html
deleted file mode 100644
index 7befdcf..0000000
--- a/html/uves__extract__iterate_8c_source.html
+++ /dev/null
@@ -1,299 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_extract_iterate.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_extract_iterate.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:03 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.10 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.8  2010/02/13 12:22:31  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * removed inlines (let's do work to compiler)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.7  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.6  2007/05/02 13:17:23  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Allow specifying offset in optimal extraction</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.5  2007/02/21 12:44:58  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * uves_iterate_increment: Avoid recursion, fixed bug at beginning of new order (y limits were not recalculated)</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.4  2006/11/20 08:01:46  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Changed format of pointer in uves_iterate_dump</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.3  2006/11/16 09:48:30  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Renamed data type position -> uves_iterate_position, for namespace reasons</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.2  2006/09/11 14:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Updated documentation</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.1  2006/09/08 14:04:00  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Simplified code by using iterators, sky subtraction much optimized</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor">#include <uves_extract_iterate.h></span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="keywordtype">bool</span> <a class="code" href="group__uves__extract__iterate.html#ga3233f3e30f36df3f47ddc7b95beaa8a8" title="Find out if the current position is valid.">illegal_position</a>(<span class="keyword">const</span> uves_iterate_position *p);</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> uves_iterate_position *</div>
-<div class="line"><a name="l00154"></a><span class="lineno"><a class="code" href="group__uves__extract__iterate.html#ga8601e16b56ff03ee210eec3684fd5501">  154</a></span> <a class="code" href="group__uves__extract__iterate.html#ga8601e16b56ff03ee210eec3684fd5501" title="Allocate iterator.">uves_iterate_new</a>(<span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>          <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>          <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>          <a class="code" href="structslit__geometry.html">slit_geometry</a> sg)</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> {</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     uves_iterate_position *p = cpl_calloc(1, <span class="keyword">sizeof</span>(uves_iterate_position));</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     p->nx = nx;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     p->ny = ny;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     p->order_locations = order_locations;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     p->minorder = minorder;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     p->maxorder = maxorder;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     p->sg = sg;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     <span class="keywordflow">return</span> p;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> }</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno"><a class="code" href="group__uves__extract__iterate.html#gabf1b3e568a93017a6a95ae64ae6f13b7">  178</a></span> <a class="code" href="group__uves__extract__iterate.html#gabf1b3e568a93017a6a95ae64ae6f13b7" title="Deallocate iterator and set pointer to NULL.">uves_iterate_delete</a>(uves_iterate_position **p)</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> {</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     <span class="keywordflow">if</span> (p != NULL)</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     {</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>         cpl_free(*p);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>         *p = NULL;</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     }</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> }</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno"><a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb">  203</a></span> <a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(uves_iterate_position *p,</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>                <span class="keywordtype">int</span> xmin, <span class="keywordtype">int</span> xmax, </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>                <span class="keywordtype">int</span> ordermin, <span class="keywordtype">int</span> ordermax,</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>                <span class="keyword">const</span> cpl_binary *bpm,</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>                <span class="keywordtype">bool</span> loop_y)</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> {</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="comment">/* Limits for this iteration */</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     p->xmin = xmin;</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     p->xmax = xmax;</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     p->ordermax = ordermax;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     p->bpm = bpm;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     p->loop_y = loop_y;</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     p->end = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> </div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     <span class="comment">/* Set first postion */</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     p->x = xmin;</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     p->order = ordermin;</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     p->ycenter = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(p->order_locations, p->x, p->order)</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>         + p->sg.offset;</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     p->yhigh = uves_round_double(p->ycenter + p->sg.length/2);</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     p->ylow  = uves_round_double(p->ycenter - p->sg.length/2);</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     <span class="keywordflow">if</span> (loop_y) </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     {</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>         p->y = p->ylow;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     }</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="comment">/* Go to first good pixel */</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     <span class="keywordflow">while</span> (<a class="code" href="group__uves__extract__iterate.html#ga3233f3e30f36df3f47ddc7b95beaa8a8" title="Find out if the current position is valid.">illegal_position</a>(p) && !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(p))</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     {</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(p);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     }</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> }</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno"><a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a">  246</a></span> <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(uves_iterate_position *p)</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> {</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <span class="keywordflow">if</span> (p->loop_y && p->y < p->yhigh)</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>         {</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>         (p->y)++;</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>         }</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (p->x < p->xmax)</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>         {</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>         (p->x)++;</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>         </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>         p->ycenter = </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                     <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(p->order_locations, </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                                                 p->x, p->order)</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>                     + p->sg.offset;</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>         p->yhigh = uves_round_double(p->ycenter + p->sg.length/2);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>         p->ylow  = uves_round_double(p->ycenter - p->sg.length/2);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         <span class="keywordflow">if</span> (p->loop_y) p->y = p->ylow;</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>         }</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (p->order < p->ordermax)</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>         {</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>         (p->order)++;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>         p->x = p->xmin;</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>         </div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>         p->ycenter = </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>                     <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(p->order_locations,</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>                                                 p->x, p->order)</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>                     + p->sg.offset;</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>         p->yhigh = uves_round_double(p->ycenter + p->sg.length/2);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>         p->ylow  = uves_round_double(p->ycenter - p->sg.length/2);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         <span class="keywordflow">if</span> (p->loop_y) p->y = p->ylow;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>         }</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>         {</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>         p->end = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>         }</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     } <span class="keywordflow">while</span> (<a class="code" href="group__uves__extract__iterate.html#ga3233f3e30f36df3f47ddc7b95beaa8a8" title="Find out if the current position is valid.">illegal_position</a>(p) && !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(p));</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> }</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="keywordtype">bool</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno"><a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961">  301</a></span> <a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(<span class="keyword">const</span> uves_iterate_position *p)</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> {</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="keywordflow">return</span> p->end;</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> }</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno"><a class="code" href="group__uves__extract__iterate.html#ga7dbbaee29928f76eae48fc6bca0f64f8">  314</a></span> <a class="code" href="group__uves__extract__iterate.html#ga7dbbaee29928f76eae48fc6bca0f64f8" title="dump iterator (for debugging)">uves_iterate_dump</a>(<span class="keyword">const</span> uves_iterate_position *p, FILE *stream)</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> {</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     fprintf(stream, <span class="stringliteral">"Position:\n"</span>);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     fprintf(stream, <span class="stringliteral">"order       = %d\n"</span>, p->order);</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     fprintf(stream, <span class="stringliteral">"x           = %d\n"</span>, p->x);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     fprintf(stream, <span class="stringliteral">"y           = %d\n"</span>, p->y);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     fprintf(stream, <span class="stringliteral">"ycenter     = %f\n"</span>, p->ycenter);</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     fprintf(stream, <span class="stringliteral">"ylow, yhigh = %d, %d\n"</span>, p->ylow, p->yhigh);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     fprintf(stream, <span class="stringliteral">"Limits:\n"</span>);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     fprintf(stream, <span class="stringliteral">"xmin, xmax = %d, %d\n"</span>, p->xmin, p->xmax);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     fprintf(stream, <span class="stringliteral">"ordermax   = %d\n"</span>, p->ordermax);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     fprintf(stream, <span class="stringliteral">"bpm        = %d\n"</span>, p->bpm != NULL ? 1 : 0);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     fprintf(stream, <span class="stringliteral">"loop_y     = %s\n"</span>, p->loop_y ? <span class="stringliteral">"true"</span> : <span class="stringliteral">"false"</span>);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     fprintf(stream, <span class="stringliteral">"end        = %s\n"</span>, p->end    ? <span class="stringliteral">"true"</span> : <span class="stringliteral">"false"</span>);</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     fprintf(stream, <span class="stringliteral">"Geometry:\n"</span>);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     fprintf(stream, <span class="stringliteral">"nx, ny             = %d, %d\n"</span>, p->nx, p->ny);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     fprintf(stream, <span class="stringliteral">"minorder, maxorder = %d, %d\n"</span>, p->minorder, p->maxorder);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     fprintf(stream, <span class="stringliteral">"order_locations    = %d\n"</span>, p->order_locations != NULL ? 1 : 0);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     fprintf(stream, <span class="stringliteral">"slit length        = %f\n"</span>, p->sg.length);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     fprintf(stream, <span class="stringliteral">"slit offset        = %f\n"</span>, p->sg.offset);</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> }</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="keyword">static</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno"><a class="code" href="group__uves__extract__iterate.html#ga3233f3e30f36df3f47ddc7b95beaa8a8">  347</a></span> <span class="keywordtype">bool</span> <a class="code" href="group__uves__extract__iterate.html#ga3233f3e30f36df3f47ddc7b95beaa8a8" title="Find out if the current position is valid.">illegal_position</a>(<span class="keyword">const</span> uves_iterate_position *p)</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> {</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     <span class="keywordflow">return</span> p->ylow < 1 || p->yhigh > p->ny ||</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     (p->loop_y && p->bpm != NULL &&</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>      p->bpm[(p->x-1) + (p->y-1)*p->nx] != CPL_BINARY_0);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> }</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__extract__iterate_8h_source.html b/html/uves__extract__iterate_8h_source.html
deleted file mode 100644
index d01e914..0000000
--- a/html/uves__extract__iterate_8h_source.html
+++ /dev/null
@@ -1,176 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_extract_iterate.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_extract_iterate.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:03 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.6  2010/02/13 12:22:31  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * removed inlines (let's do work to compiler)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2007/05/02 13:17:25  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Allow specifying offset in optimal extraction</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2006/11/16 09:48:30  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Renamed data type position -> uves_iterate_position, for namespace reasons</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/09/11 14:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Updated documentation</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/09/08 14:03:58  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Simplified code by using iterators, sky subtraction much optimized</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#ifndef UVES_EXTRACT_ITERATE_H</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_EXTRACT_ITERATE_H</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="structslit__geometry.html">   53</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>     <span class="keywordtype">double</span> length;</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>     <span class="keywordtype">double</span> offset;</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> } <a class="code" href="structslit__geometry.html">slit_geometry</a>;</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">/* @cond */</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> {</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>     <span class="comment">/* 'public' numbers that are iterated */</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     <span class="keywordtype">double</span> ycenter;</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="keywordtype">int</span> ylow, yhigh;</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     <span class="comment">/* private stuff which is set</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">       for each iteration */</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     <span class="keywordtype">int</span> xmin, xmax;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     <span class="keywordtype">int</span> ordermax;</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     <span class="keyword">const</span> cpl_binary *bpm;</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>     <span class="keywordtype">bool</span> loop_y;</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     <span class="keywordtype">bool</span> end;</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     <span class="comment">/* public stuff which is always</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">       constant (the geometry) */</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     <span class="keywordtype">int</span> minorder, maxorder;</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>     <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations;</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     <a class="code" href="structslit__geometry.html">slit_geometry</a> sg;</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> } uves_iterate_position;</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment">/* @endcond */</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> uves_iterate_position *</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <a class="code" href="group__uves__extract__iterate.html#ga8601e16b56ff03ee210eec3684fd5501" title="Allocate iterator.">uves_iterate_new</a>(<span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>          <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>          <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder,</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>          <a class="code" href="structslit__geometry.html">slit_geometry</a> sg);</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <a class="code" href="group__uves__extract__iterate.html#gabf1b3e568a93017a6a95ae64ae6f13b7" title="Deallocate iterator and set pointer to NULL.">uves_iterate_delete</a>(uves_iterate_position **p);</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(uves_iterate_position *p,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                <span class="keywordtype">int</span> xmin, <span class="keywordtype">int</span> xmax, </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                <span class="keywordtype">int</span> ordermin, <span class="keywordtype">int</span> ordermax,</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                <span class="keyword">const</span> cpl_binary *bpm,</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>                <span class="keywordtype">bool</span> loop_y);</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(uves_iterate_position *p);</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="keywordtype">bool</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(<span class="keyword">const</span> uves_iterate_position *p);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <a class="code" href="group__uves__extract__iterate.html#ga7dbbaee29928f76eae48fc6bca0f64f8" title="dump iterator (for debugging)">uves_iterate_dump</a>(<span class="keyword">const</span> uves_iterate_position *p, FILE *stream);</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__extract__profile_8c_source.html b/html/uves__extract__profile_8c_source.html
deleted file mode 100644
index 1046ff5..0000000
--- a/html/uves__extract__profile_8c_source.html
+++ /dev/null
@@ -1,809 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_extract_profile.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_extract_profile.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:03 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.6 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.4  2010/02/13 12:22:31  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * removed inlines (let's do work to compiler)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.3  2007/08/30 07:56:54  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * fixed some doxygen warnings</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.2  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.1  2007/05/02 13:43:46  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added source</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.141  2007/04/26 06:55:35  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * fixed mem leak adding uves_free_image(&spectrum_order)</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.140  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.139  2007/04/24 09:40:37  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Removed deprecated irplib_string_concatenate_all</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.138  2007/04/20 14:44:20  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Implemented QC parameter to measure small scale ripples</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.137  2007/04/12 12:00:35  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added testing code</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.136  2007/04/10 11:34:14  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Removed debug message</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.135  2007/04/10 08:05:49  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Disabled optimization (reduced kappa-sigma iterations, caught by unit test)</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.134  2007/04/10 07:23:20  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Added commented out code to spline interpolate virtually resampled profile</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.133  2007/03/28 11:38:38  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Removed dead code</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.132  2007/03/19 15:12:14  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Optimization: use doubles rather than zero deg. poly.</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.131  2007/03/19 13:50:18  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Fixed serious bug happening when object is at +-15 pixels</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.130  2007/03/15 12:33:37  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Minor message change</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.129  2007/03/13 15:33:30  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Use autodegree polynomials for virtual profile, not zero degree</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.128  2007/03/05 10:16:37  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Support slope parameter in 1d fitting</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.127  2007/02/26 13:29:40  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Don't use Gauss-Legendre 3 point interpolation, for efficiency</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.126  2007/02/26 11:55:47  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Renamed and generalized function uves_raise_to_median() -> uves_raise_to_median_frac()</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.125  2007/02/22 15:33:56  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Optimization: use double's rather than constant 2d polynomials</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.124  2007/02/09 13:37:06  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Added bug in 2d extraction mode</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.123  2007/02/09 08:14:16  jmlarsen</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Do not use CPL_PIXEL_MAXVAL which works only for integer images</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.122  2007/02/08 07:33:56  jmlarsen</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Added doc</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.121  2007/01/31 13:10:33  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Changed message</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.120  2007/01/29 12:09:42  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Compute QC parameters (pos, fwhm, s/n) also for simple extraction</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.119  2007/01/26 13:49:43  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Fixed sky subtraction residuals for optimal sky subtraction</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.118  2007/01/15 08:46:01  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Made more robust against extended objects</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.117  2007/01/05 07:22:07  jmlarsen</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Eliminated compiler warnings</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.116  2007/01/04 13:55:21  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Implemented order-by-order object tracing (disabled)</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.115  2006/12/08 07:41:43  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Minor doc. change</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.114  2006/11/16 09:48:30  jmlarsen</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Renamed data type position -> uves_iterate_position, for namespace reasons</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.113  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.111  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Revision 1.110  2006/11/08 14:04:34  jmlarsen</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * Implemented flag to select sky subtraction method</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Revision 1.109  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Revision 1.108  2006/10/31 09:14:58  jmlarsen</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * Man page doc fix</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Revision 1.107  2006/10/02 08:34:40  jmlarsen</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Do not recompute variance in last iteration</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Revision 1.106  2006/09/27 15:08:45  jmlarsen</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * Fixed doc. bug</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Revision 1.105  2006/09/27 13:08:49  jmlarsen</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Use dynamic memory allocation to store bad pixels</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Revision 1.104  2006/09/20 12:53:57  jmlarsen</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> * Replaced stringcat functions with uves_sprintf()</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Revision 1.103  2006/09/20 07:25:30  jmlarsen</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * Doc. bug fix</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Revision 1.102  2006/09/19 14:29:05  jmlarsen</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Measure object position QC parameter from bottom of slit</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Revision 1.101  2006/09/19 07:15:35  jmlarsen</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Added chip to argument list of uves_extract()</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Revision 1.100  2006/09/11 14:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Updated documentation</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Revision 1.99  2006/09/11 13:57:46  jmlarsen</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * Remove usage of cpl_image_set after getting bpm pointer</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * Revision 1.98  2006/09/08 14:02:34  jmlarsen</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> * Simplified code by using iterators, sky subtraction much optimized</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Revision 1.97  2006/09/06 15:35:51  jmlarsen</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> * Changed indentations</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * Revision 1.96  2006/09/06 14:50:23  jmlarsen</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> * Worked on code to globally measure spatial profile</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> * Revision 1.95  2006/09/01 13:56:46  jmlarsen</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> * Added commented out code (alternative way of measuring spatial profile)</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> * Revision 1.94  2006/08/23 15:08:56  jmlarsen</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment"> * Improved plot of spatial profile</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> * Revision 1.93  2006/08/23 09:33:03  jmlarsen</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment"> * Renamed local variables shadowing POSIX reserved names</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"> * Revision 1.92  2006/08/22 15:35:48  jmlarsen</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment"> * Auto-select profile method based on S/N estimate</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment"> * Revision 1.91  2006/08/22 14:20:56  jmlarsen</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment"> * Implemented simultaneous optimal extraction of obj+sky</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment"> * Revision 1.90  2006/08/17 14:40:06  jmlarsen</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment"> * Revision 1.89  2006/08/17 14:11:25  jmlarsen</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment"> * Use assure_mem macro to check for memory allocation failure</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment"> * Revision 1.88  2006/08/17 13:59:11  jmlarsen</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment"> * Removed CPL2 const bug workaround</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment"> * Revision 1.87  2006/08/17 13:56:52  jmlarsen</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"> * Revision 1.86  2006/08/17 09:17:42  jmlarsen</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment"> * Removed CPL2 code</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment"> * Revision 1.85  2006/08/14 12:16:31  jmlarsen</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment"> * Moved defines to top of file</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment"> * Revision 1.84  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment"> * Revision 1.83  2006/08/11 09:20:06  jmlarsen</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"> * Implemented workaround for slow cpl_image_set</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment"> * Revision 1.82  2006/08/10 10:49:28  jmlarsen</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment"> * Removed workaround for cpl_image_get_bpm</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment"> * Revision 1.81  2006/08/08 11:02:43  jmlarsen</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment"> * Make temporary copy of image bad pixel map</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment"> * Revision 1.80  2006/08/08 08:19:17  amodigli</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment"> * update to CPL3</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment"> * Revision 1.79  2006/08/07 11:35:35  jmlarsen</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment"> * Disabled parameter environment variable mode</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="comment"> * Revision 1.78  2006/07/14 12:21:36  jmlarsen</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment"> * Take bad pixels into account in sky subtraction</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment"> * Revision 1.77  2006/07/03 13:01:22  jmlarsen</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment"> * Use analytical-fit sky subtraction method to improve S/N, use a</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment"> * global model of chi square</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment"> * Revision 1.76  2006/06/16 08:23:04  jmlarsen</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment"> * Added comment</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment"> * Revision 1.75  2006/06/05 08:51:55  amodigli</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment"> * cleaned some warnings from static checks</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment"> * Revision 1.74  2006/06/02 06:41:59  jmlarsen</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment"> * Added missing error code</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="comment"> * Revision 1.73  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment"> * Revision 1.72  2006/05/16 12:13:07  amodigli</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment"> * added QC log</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment"> * Revision 1.71  2006/05/15 08:15:52  jmlarsen</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment"> * Changed default kappa to 10.0</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment"> * Revision 1.70  2006/05/15 07:21:50  jmlarsen</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment"> * Changed default kappa 3.5 -> 5.0</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="comment"> * Revision 1.69  2006/05/12 15:04:09  jmlarsen</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment"> * Changed gauss/moffat/virtual profile measuring methods to use</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="comment"> * global polynomials (rather than one polynomial per order)</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="comment"> * Revision 1.68  2006/04/24 09:21:18  jmlarsen</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="comment"> * Implemented virtual resampling algorithm</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment"> * Revision 1.67  2006/04/10 12:36:35  jmlarsen</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment"> * Fixed bug that caused extraction to halt if an order is completely </span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment"> * outside an image</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment"> * Revision 1.66  2006/04/07 12:29:21  jmlarsen</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment"> * Bugfix: in opt_evaluate_profile</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment"> * Revision 1.65  2006/04/07 07:10:12  jmlarsen</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment"> * Use Gauss-Legendre rather than Simpson for profile integration</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment"> * Revision 1.64  2006/04/06 11:49:24  jmlarsen</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment"> * Minor msg change</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment"> * Revision 1.63  2006/04/06 08:36:40  jmlarsen</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="comment"> * Re-factored optimal extraction, added loop to measure </span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment"> * profile until high statistics is achieved</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment"> * Revision 1.62  2006/03/24 14:46:39  jmlarsen</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment"> * Doc. bugfix</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment"> * Revision 1.61  2006/03/24 14:17:37  jmlarsen</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="comment"> * Mirror input image before/after extraction</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="comment"> * Revision 1.60  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="comment"> * Revision 1.59  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment"> * Revision 1.58  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment"> * Revision 1.57  2006/01/25 16:13:20  jmlarsen</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment"> * Changed interface of gauss.fitting routine</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment"> * Revision 1.56  2006/01/12 15:41:14  jmlarsen</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="comment"> * Moved gauss. fitting to irplib</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="comment"> * Revision 1.55  2005/12/20 16:10:32  jmlarsen</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment"> * Added some documentation</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment"> * Revision 1.54  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="preprocessor">#include <uves_extract_profile.h></span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="preprocessor">#include <uves_extract_iterate.h></span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> uves_extract_profile *</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> uves_extract_profile_new_constant(<span class="keywordtype">double</span> slit_length)</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> {</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     uves_extract_profile *p = NULL;  <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     p = cpl_malloc(<span class="keyword">sizeof</span>(uves_extract_profile));</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     p->constant = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     p->slit_length = slit_length;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     <span class="comment">/* remaining members not used */</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> </div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     <span class="keywordflow">return</span> p;</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> }</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> uves_extract_profile *</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> uves_extract_profile_new(<span class="keywordtype">int</span> (*f)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>                          <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                          <span class="keywordtype">int</span> M,</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>                          <span class="keywordtype">double</span> slit_length,</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                          <span class="keywordtype">int</span> sampling_factor)</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> {</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     uves_extract_profile *p = NULL;  <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     p = cpl_malloc(<span class="keyword">sizeof</span>(uves_extract_profile));</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     p->constant = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     p->f = f;</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     <span class="keywordflow">if</span> (f != NULL)</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>         {</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>             <span class="comment">/* Zero resampling */</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>             p->dfda      = dfda;</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>             p->M         = M;</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="preprocessor"></span>            p->y0        = cpl_calloc(<span class="keyword">sizeof</span>(<a class="code" href="struct__polynomial.html">polynomial</a> *), 100);  <span class="comment">/* 1 poly. per order */</span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>             p->sigma     = cpl_calloc(<span class="keyword">sizeof</span>(<a class="code" href="struct__polynomial.html">polynomial</a> *), 100);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>             p->red_chisq = cpl_calloc(<span class="keyword">sizeof</span>(<a class="code" href="struct__polynomial.html">polynomial</a> *), 100);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> <span class="preprocessor"></span>            p->y0        = NULL;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>             p->sigma     = NULL;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>             p->red_chisq = NULL;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="preprocessor">#endif            </span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> <span class="preprocessor"></span>            <span class="comment">/* Not used */</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>             p->spatial_bins    = 0;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>             p->slit_length     = 0;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>             p->sampling_factor = 0;</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>             p->is_zero_degree  = NULL;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>             p->dy_poly         = NULL;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>             p->dy_double       = NULL;</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>             p->current_profile = NULL;</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>             p->current_ypos    = NULL;</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>             p->current_interpolated  = NULL;</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>         }</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>         {</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>             <span class="comment">/* Virtual resampling */</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>             p->spatial_bins    = uves_extract_profile_get_nbins(slit_length, sampling_factor);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>             p->slit_length     = slit_length;</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>             p->sampling_factor = sampling_factor;</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>             p->spatial_bins    = uves_extract_profile_get_nbins(slit_length, sampling_factor);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>             p->is_zero_degree  = cpl_calloc(p->spatial_bins, <span class="keyword">sizeof</span>(<span class="keywordtype">bool</span>));</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>             p->dy_poly         = cpl_calloc(p->spatial_bins, <span class="keyword">sizeof</span>(<a class="code" href="struct__polynomial.html">polynomial</a> *));</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>             p->dy_double       = cpl_calloc(p->spatial_bins, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>             p->current_profile = cpl_calloc(p->spatial_bins, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>             p->current_ypos    = cpl_calloc(p->spatial_bins, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>             p->current_interpolated = cpl_calloc(slit_length + 3, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>             <span class="comment">/* Not used */</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>             p->dfda  = NULL;</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>             p->M     = 0;</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>             p->y0    = NULL;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>             p->sigma = NULL;</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>         }</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     <span class="keywordflow">return</span> p;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> }</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> </div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> uves_extract_profile_delete(uves_extract_profile **p)</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> {</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     <span class="keywordflow">if</span> (*p == NULL) <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     <span class="keywordflow">if</span> ((*p)->constant) </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         {</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>             <span class="comment">/* nothing to clean */</span></div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>         }</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span>((*p)->f != NULL) </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>         {</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> <span class="preprocessor"></span><span class="comment">/* Then leak some memory */</span></div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&((*p)->y0));</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>             <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&((*p)->sigma));</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>             <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&((*p)->red_chisq));</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>         {</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>             <span class="comment">/* Virtual resampling */</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>             <span class="keywordflow">for</span> (i = 0; i < (*p)->spatial_bins; i++)</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>                 {</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(& ((*p)->dy_poly[i]) );</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                 }</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>             cpl_free((*p)->is_zero_degree);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>             cpl_free((*p)->dy_poly);</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>             cpl_free((*p)->dy_double);</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>             cpl_free((*p)->current_profile);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>             cpl_free((*p)->current_ypos);</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>             cpl_free((*p)->current_interpolated);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>         }</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     cpl_free(*p);</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     *p = NULL;</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> }</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> uves_extract_profile_get_nbins(<span class="keywordtype">double</span> slit_length, <span class="keywordtype">int</span> sampling_factor)</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> {</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     <span class="keywordflow">return</span> uves_round_double(slit_length + 3) * sampling_factor;</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> }</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> uves_extract_profile_get_y(uves_iterate_position *pos,</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>                            <span class="keywordtype">double</span> bin,</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>                            <span class="keywordtype">int</span> sampling_factor)</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> {</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     <span class="keywordflow">return</span> bin*1.0/sampling_factor + (pos->ycenter - pos->sg.length/2 - 1);</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> }</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> uves_extract_profile_get_bin(<span class="keyword">const</span> uves_iterate_position *pos,</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>                              <span class="keywordtype">int</span> sampling_factor)</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> {</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>     <span class="keywordflow">return</span> sampling_factor*(pos->y - (pos->ycenter - pos->sg.length/2 - 1));</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> }</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> uves_extract_profile_set(<span class="keyword">const</span> uves_extract_profile *p, </div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                          uves_iterate_position *pos,</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                          <span class="keywordtype">int</span> *warnings)</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> {</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>     <span class="keywordflow">if</span> (p->constant) {</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>         ((uves_extract_profile *)p)->current_area = pos->yhigh - pos->ylow + 1;</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     }</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (p->f != NULL)</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>         <span class="comment">/* Zero */</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>         {</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>             <span class="keywordtype">double</span> min_sigma = 0.1;</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>             <span class="comment">/* const cast: The profile itself doesn't change */</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ((uves_extract_profile *)p)->current_y0 = </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>                    pos->ycenter + <a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(p->y0[pos->order-pos->minorder],</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>                                   pos->x),</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>                    <span class="stringliteral">"Error evaluating polynomial"</span>);</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ((uves_extract_profile *)p)->current_y0 = </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                    pos->ycenter + <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(p->y0, pos->x, pos->order),</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>                    <span class="stringliteral">"Error evaluating polynomial"</span>);</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span> <span class="preprocessor"></span>            </div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ((uves_extract_profile *)p)->current_sigma =</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>                    <a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(p->sigma[pos->order-pos->minorder], pos->x),</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>                    <span class="stringliteral">"Error evaluating polynomial"</span>);</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ((uves_extract_profile *)p)->current_sigma =</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>                    <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(p->sigma, pos->x, pos->order),</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>                    <span class="stringliteral">"Error evaluating polynomial"</span>);</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> <span class="preprocessor"></span>            </div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>             <span class="comment">/* Make sure that the inferred </span></div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> <span class="comment">             * sigma is always 0.1 pixel or more. </span></div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> <span class="comment">             * Smaller values are unrealistic (undersampled profile) and cause</span></div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> <span class="comment">             * numerical problems (~zero profile area), anyway.</span></div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>             </div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>             <span class="keywordflow">if</span> (p->current_sigma < min_sigma)</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>                 {</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>                     <span class="comment">/* Print only 1 warning per order */</span></div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>                     <span class="keywordflow">if</span> (warnings != NULL && *warnings == 0)</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>                         {</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>                             (*warnings)++;</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>                             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Inferred spatial profile width (one sigma) is only "</span></div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>                                              <span class="stringliteral">"%e pixels at (order, x) = (%d, %d). "</span></div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>                                              <span class="stringliteral">"Setting sigma = %.2f pixels"</span>,</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>                                              p->current_sigma, pos->order, pos->x, min_sigma);</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                         }</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                     </div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                     ((uves_extract_profile *)p)->current_sigma = min_sigma;</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                 }</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>             <span class="comment">/* If the profile is well sampled, the 'area' calculated</span></div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> <span class="comment">               below would be 1, but for undersampled profiles (sigma</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> <span class="comment">           much less than 1 pixel) the</span></div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> <span class="comment">               result might differ substantially. Therefore, compute</span></div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> <span class="comment">               the actual sum, and use the correction factor</span></div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="comment">               later in uves_extract_profile_evaluate().</span></div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> <span class="comment"></span></div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> <span class="comment">               The empirical area depends critically upon</span></div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> <span class="comment">               the fractional part of y, so we must do it for every bin.</span></div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>             {</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>                 <span class="keywordtype">double</span> area = 0;</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>                 </div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>                 ((uves_extract_profile *)p)->current_area = 1;</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                 </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>                 area = 0;</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>                 <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>                     {</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>             <span class="comment">/* For analytical profiles the results of</span></div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> <span class="comment">               uves_extract_profile_evaluate()</span></div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span> <span class="comment">               may range from 1e-300 to ~1</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span> <span class="comment"></span></div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> <span class="comment">               Such a large range (300 orders of magnitude) is a</span></div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span> <span class="comment">               source of problems in the weighted extraction of flat-fields,</span></div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span> <span class="comment">               where the resulting flux may end up being only ~1e-300,</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> <span class="comment">               which is "unphysical" and causes infinities after division.</span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> <span class="comment"></span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> <span class="comment">               To always stay on the middle of the road, one might</span></div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> <span class="comment">               decide to approximate small values of the profile to zero,</span></div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> <span class="comment">               for example all values less than 1e-10</span></div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> <span class="comment"></span></div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> <span class="comment">               And this would be the place to do it:</span></div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>                         area += uves_extract_profile_evaluate(p, pos);</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>                     }</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>                 <span class="comment">/* This will not work:    if (area > 0)  </span></div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> <span class="comment">                   If area is very close to zero, we can still get inf.</span></div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span> <span class="comment">                   when computing 1/current_area.</span></div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> <span class="comment"></span></div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> <span class="comment">                   Therefore set the limit to something  much larger than machine</span></div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span> <span class="comment">                   precision, and much less than 1.</span></div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>                 <span class="keywordflow">if</span> (area > 1e-10)</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>                     {</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>                         ((uves_extract_profile *)p)->current_area = area;</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>                     }</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>                     <span class="comment">/* Well... the profile must be zero everywhere.</span></div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> <span class="comment">                       To avoid dividing by zero, set the area to something else */</span></div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>                     {</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>                         ((uves_extract_profile *)p)->current_area = 1;</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>                     }</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>             }</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>         }</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>         <span class="comment">/* Virtual */</span></div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>         {</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>             <span class="keywordtype">double</span> sum = 0;</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> </div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>             <span class="keywordflow">for</span> (i = 0; i < p->spatial_bins; i++)</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                 {</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                     <span class="keywordtype">double</span> prof;</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>                     <span class="keywordflow">if</span> (p->is_zero_degree[i])</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>                         {</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>                             prof = uves_max_double(0, p->dy_double[i]);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>                         }</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                         {</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>                             <span class="comment">/* This is slow */</span></div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>                             prof = uves_max_double(</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>                                 0, <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(p->dy_poly[i], </div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>                                                                pos->x, </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                                                                pos->order));</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>                         }</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                     </div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                     p->current_ypos[i] = uves_extract_profile_get_y(pos, i, p->sampling_factor);</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                     p->current_profile[i] = prof;</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>                     sum += prof;</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>                 }</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>             <span class="comment">/* Interpolate profile at the positions needed, enforce normalization */</span></div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>             i = 0;</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>             sum = 0;</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>             <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++) </div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>                 {</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>                     <span class="keywordtype">double</span> pint; <span class="comment">/* interpolated value */</span></div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>                     <span class="keywordflow">if</span> (<span class="keyword">false</span>) </div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>                         <span class="comment">/* Nearest bin interpolation (steps, for testing purposes only): */</span></div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                         {</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>                             <span class="keywordtype">double</span> bin = uves_extract_profile_get_bin(pos, p->sampling_factor);</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>                             pint = p->current_profile[uves_round_double(bin)];</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>                         }</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>                     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<span class="keyword">true</span>)</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>                         <span class="comment">/* Linear interpolation */</span></div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>                         <span class="comment">/* Interpolate linearly, flux-conserving between two nearest bins </span></div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> <span class="comment">                         *</span></div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span> <span class="comment">                         *   |-----|--|</span></div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span> <span class="comment">                         *   bl    b  bu</span></div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> <span class="comment">                         *</span></div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> <span class="comment">                         *  (bl = bin_lower (integer),</span></div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> <span class="comment">                         *   bu = bin_upper (integer), </span></div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span> <span class="comment">                         *   b  = bin       (floating))</span></div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span> <span class="comment">                         *</span></div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> <span class="comment">                         *  interpolated = (bu-b)*prof(bl) + (b-bl)*prof(bu)</span></div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> <span class="comment">                         */</span></div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>                         {</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>                             <span class="keywordtype">double</span> bin = uves_extract_profile_get_bin(pos, </div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>                                                      p->sampling_factor);</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>                             </div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>                             <span class="keywordtype">int</span> bin_lower = (int) bin;</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>                             <span class="keywordtype">int</span> bin_upper = bin_lower + 1;</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>                             </div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>                             <span class="keywordtype">double</span> prof_lower = p->current_profile[bin_lower];</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>                             <span class="keywordtype">double</span> prof_upper = p->current_profile[bin_upper];</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>                             </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>                             <span class="keywordtype">double</span> weight = bin_upper - bin;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>                             </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>                             pint = weight*prof_lower + (1-weight)*prof_upper;</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>                         }</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>                         {</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>                             pint = <a class="code" href="group__uves__utils.html#gaa3c7eb6c7f122eb98af78d5cab6cb122" title="Spline interpolation based on Hermite polynomials.">uves_spline_hermite</a>(</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>                                 pos->y,                         <span class="comment">/* Where to interpolate */</span></div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>                                 p->current_ypos, p->current_profile, <span class="comment">/* Function */</span></div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>                                 p->spatial_bins,</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>                                 &i);</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>                         }</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>                     </div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>                     p->current_interpolated[pos->y - pos->ylow] = pint;</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>                     sum += pint;</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>                 }</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> </div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>             <span class="keywordflow">if</span> ( !(sum > 0) )</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>                 {</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>                     <span class="comment">/* In the exceptional case when sum == 0, </span></div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> <span class="comment">                       do linear extraction */</span></div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>                     sum = 1;</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>                 }</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span> </div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>             <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++)</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>                 {</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>                     p->current_interpolated[pos->y - pos->ylow] /= sum;</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>                 }</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>         }</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>             </div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>   cleanup:</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span> }</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span> uves_extract_profile_evaluate(<span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>                               <span class="keyword">const</span> uves_iterate_position *pos)</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span> {</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     <span class="keywordtype">double</span> result;</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     <span class="keywordflow">if</span> (profile->constant) {</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>         result = 1.0 / profile->current_area;</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>     }</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (profile->f != NULL)</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>         {</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>             <span class="keywordtype">double</span> a[5];</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>             </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>             a[0] = profile->current_y0;</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>             a[1] = profile->current_sigma;</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>             a[2] = 1/profile->current_area; <span class="comment">/* This is to get a sum of 1</span></div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> <span class="comment">                                               when the profile is summed over</span></div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span> <span class="comment">                                               all bins. */</span></div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>             a[3] = 0.0;                     <span class="comment">/* Sky offset             */</span></div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>             a[4] = 0.0;                     <span class="comment">/* Sky offset linear term */</span></div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>             </div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>             {</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>                 <span class="comment">/* Don't use gauss-legendre 3-point. It increases execution time,</span></div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span> <span class="comment">                   and makes only extremely small (insignificant) difference on output.</span></div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span> <span class="comment">                   </span></div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span> <span class="comment">                   Also, the profile was measured using an unbinned analytical profile,</span></div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> <span class="comment">                   so such interpolation probably does not even make sense.</span></div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>                 <span class="keywordflow">if</span> (0)</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>                     {</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>                         <span class="keywordtype">double</span> xp[3]     = {-0.387298334621, 0, 0.387298334621};</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>                         <span class="keywordtype">double</span> weight[3] = {0.2777777777778, 0.444444444444, 0.2777777777778};</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>                         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>                         </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>                         result = 0;</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>                         <span class="keywordflow">for</span> (i = 0; i < 3; i++)</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>                             {</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>                                 <span class="keywordtype">double</span> val;</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>                                 <span class="keywordtype">double</span> y = pos->y;</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>                                 </div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>                                 a[0] = profile->current_y0 + xp[i];</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>                                 profile->f(&y, a, &val);</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>                                 result += weight[i] * val;</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>                             }</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>                     }</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>                     {</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>                         <span class="keywordtype">double</span> y = pos->y;</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>                         </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>                         a[0] = profile->current_y0;</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>                         profile->f(&y, a, &result);</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>                     }</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>             }</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>         }</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>         <span class="comment">/* Virtual */</span></div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>         {</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>             result = profile->current_interpolated[pos->y - pos->ylow];</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>         }</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span> </div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span> }</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__extract__profile_8h_source.html b/html/uves__extract__profile_8h_source.html
deleted file mode 100644
index 5e89ebd..0000000
--- a/html/uves__extract__profile_8h_source.html
+++ /dev/null
@@ -1,234 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_extract_profile.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_extract_profile.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:03 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.3  2010/02/13 12:22:31  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * removed inlines (let's do work to compiler)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.2  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.1  2007/05/02 13:42:23  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added header</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.28  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.27  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Revision 1.26  2006/09/19 07:15:35  jmlarsen</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> * Added chip to argument list of uves_extract()</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Revision 1.25  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Revision 1.24  2006/05/16 12:13:07  amodigli</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> * added QC log</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Revision 1.23  2006/05/12 15:04:13  jmlarsen</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> * Changed gauss/moffat/virtual profile measuring methods to use </span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * global polynomials (rather than one polynomial per order)</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> * Revision 1.22  2006/04/24 09:21:18  jmlarsen</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Implemented virtual resampling algorithm</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> * Revision 1.21  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> * Revision 1.20  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#ifndef UVES_EXTRACT_PROFILE_H</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_EXTRACT_PROFILE_H</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#include <uves_extract_iterate.h></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keyword">typedef</span> <span class="keyword">struct </span>_uves_extract_profile uves_extract_profile;</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> uves_extract_profile *uves_extract_profile_new(</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     <span class="keywordtype">int</span> (*f)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     <span class="keywordtype">int</span> M,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>     <span class="keywordtype">double</span> slit_length,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     <span class="keywordtype">int</span> sampling_factor);</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> uves_extract_profile *</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> uves_extract_profile_new_constant(<span class="keywordtype">double</span> slit_length);</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="keywordtype">void</span> uves_extract_profile_delete(uves_extract_profile **p);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> uves_extract_profile_evaluate(<span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>                               <span class="keyword">const</span> uves_iterate_position *pos);</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="keywordtype">void</span> uves_extract_profile_set(<span class="keyword">const</span> uves_extract_profile *p, </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>                   uves_iterate_position *pos,</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>                   <span class="keywordtype">int</span> *warnings);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> uves_extract_profile_get_y(uves_iterate_position *pos,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>                <span class="keywordtype">double</span> bin,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>                <span class="keywordtype">int</span> sampling_factor);</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> uves_extract_profile_get_bin(<span class="keyword">const</span> uves_iterate_position *pos,</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                  <span class="keywordtype">int</span> sampling_factor);</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="keywordtype">int</span> uves_extract_profile_get_nbins(<span class="keywordtype">double</span> slit_length, <span class="keywordtype">int</span> sampling_factor);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">/* This should be defined to 0, and is used only for testing.</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * If set to 1 the profile is measured order by order (like the MIDAS algorithm</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * which is less robust)</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor">#define ORDER_PER_ORDER 0</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">/* The spatial profile   @cond </span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment">   fixme: avoid exporting this definition,</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">   currently needed for uves_extract module</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="keyword">struct </span>_uves_extract_profile</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> {</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     <span class="comment">/* There are three types of profiles.</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment">     * If constant == true</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment">     *    assume a constant spatial profile</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment">     *    only the member current_area is used</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment">     * else if f != NULL  (zero resampling)</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment">     *     y0(x,m) and sigma(x,m) are the parameters</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment">     *     of the assumed profile (gaussian/moffat)</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment">     *     red_chisq(x,m) is the smoothed reduced</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment">     *     chi^2 of the fits</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment">     * </span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment">     * else if f == NULL  (virtual resampling)</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment">     *     dy is an array of polynomials.</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment">     *     dy_i(x,m) is the profile of the i'th </span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment">     *     spatial bin. </span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     <span class="keywordtype">bool</span> constant;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     int (*f)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     int (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]);</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="keywordtype">int</span> M;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="preprocessor">#if ORDER_PER_ORDER</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="preprocessor"></span>    <a class="code" href="struct__polynomial.html">polynomial</a> **y0;   <span class="comment">/* Polynomial for each order */</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <a class="code" href="struct__polynomial.html">polynomial</a> **sigma;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     <a class="code" href="struct__polynomial.html">polynomial</a> **red_chisq;</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="preprocessor"></span>    <a class="code" href="struct__polynomial.html">polynomial</a> *y0;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *sigma;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *red_chisq;</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     <span class="keywordtype">double</span> current_y0;      <span class="comment">/* This is for a "performance hack",      */</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     <span class="keywordtype">double</span> current_sigma;   <span class="comment">/* so that we don't have to evaluate the  */</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     <span class="keywordtype">double</span> current_area;    <span class="comment">/* polynomials too often. See also</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment">                               uves_extract_profile_set().            */</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <span class="comment">/* Virtual resampling */</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     <span class="keywordtype">int</span> spatial_bins;</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     <span class="keywordtype">double</span> slit_length;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     <span class="keywordtype">int</span> sampling_factor;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keywordtype">bool</span> *is_zero_degree;  <span class="comment">/* For efficiency: use polynomials or simple doubles</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment">                              as necessary */</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     <a class="code" href="struct__polynomial.html">polynomial</a> **dy_poly;  <span class="comment">/* Polynomial for each position along slit */</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <span class="keywordtype">double</span> *dy_double;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     <span class="keywordtype">double</span> *current_profile;   <span class="comment">/* Array with profile at current x */</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <span class="keywordtype">double</span> *current_ypos;      <span class="comment">/* Array with y-positions where profile is known,</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment">                                  at current x */</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     <span class="keywordtype">double</span> *current_interpolated;    <span class="comment">/* Interpolated profile at current x */</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> };</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment">/* @endcond */</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__flatfield_8c_source.html b/html/uves__flatfield_8c_source.html
deleted file mode 100644
index 59ba2fe..0000000
--- a/html/uves__flatfield_8c_source.html
+++ /dev/null
@@ -1,441 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_flatfield.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_flatfield.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-03-02 17:01:40 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.36 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.35  2011/12/08 13:57:49  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Fox warnings with CPL6</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.34  2010/09/29 09:39:07  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * fixed compiler warnings</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.33  2010/09/27 07:58:36  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * fixed mem leak in case a new mask is allocated</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.32  2010/09/27 06:33:33  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * fixed mem leaks</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.31  2010/09/24 09:32:03  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.29  2009/07/07 14:26:12  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Fixed a problem dealing with images missing a bpm</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.28  2008/09/29 06:56:10  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.27  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.26  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.25  2007/05/24 13:07:46  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Fail if the provided flat-field has unreasonable (zero, nan or inf) mean value</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.24  2007/05/22 11:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Removed MIDAS flag for good</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.23  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.21  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.20  2006/11/13 14:23:55  jmlarsen</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * Removed workarounds for CPL const bugs</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Revision 1.19  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Revision 1.18  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Revision 1.17  2006/08/17 09:16:40  jmlarsen</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * Removed CPL2 code</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Revision 1.16  2006/08/10 10:49:57  jmlarsen</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> * Removed workaround for cpl_image_get_bpm</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Revision 1.15  2006/06/16 08:23:31  jmlarsen</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> * Changed 0 -> false</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Revision 1.14  2006/04/24 09:20:12  jmlarsen</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * Always use the MIDAS normalization</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Revision 1.13  2006/03/24 14:16:43  jmlarsen</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * Changed order of for loops for efficiency</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Revision 1.12  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.11  2006/02/21 14:26:54  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Revision 1.10  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Revision 1.9  2006/01/31 08:24:16  jmlarsen</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> * Wrapper for cpl_image_get_bpm</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Revision 1.8  2006/01/25 16:13:20  jmlarsen</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> * Changed interface of gauss.fitting routine</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Revision 1.7  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Revision 1.6  2005/12/16 14:22:23  jmlarsen</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> * Removed midas test data; Added sof files</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Revision 1.5  2005/12/02 10:41:49  jmlarsen</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Revision 1.4  2005/11/28 08:18:12  jmlarsen</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> * Replaced cpl_mask_get_bpm -> cpl_image_get_bpm</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Revision 1.3  2005/11/25 09:27:00  jmlarsen</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * Switched off time component</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Revision 1.2  2005/11/24 11:54:46  jmlarsen</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Added support for CPL 3 interface</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Revision 1.1  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="preprocessor">#include <uves_flatfield.h></span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> cpl_error_code</div>
-<div class="line"><a name="l00185"></a><span class="lineno"><a class="code" href="group__uves__flatfield.html#gaa96727cda19ae088e522da95f95e6dbd">  185</a></span> <a class="code" href="group__uves__flatfield.html#gaa96727cda19ae088e522da95f95e6dbd" title="Divide by flat field.">uves_flatfielding</a>(cpl_image *image, cpl_image *noise, </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>           <span class="keyword">const</span> cpl_image *master_flat, <span class="keyword">const</span> cpl_image *mflat_noise)</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> {</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>     <span class="keywordtype">double</span>     *image_data   = NULL;      <span class="comment">/* We have to get direct pointers because of the slow */</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     cpl_mask   *image_mask   = NULL;      <span class="comment">/*  bad pix handling in cpl_image_get()  CPLv2-3      */</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     cpl_binary *image_bad    = NULL;  </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>     <span class="keywordtype">double</span>     *noise_data   = NULL;   </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     cpl_mask   *noise_mask   = NULL;   </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     cpl_binary *noise_bad    = NULL;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>     *mf_data      = NULL;   </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     <span class="keyword">const</span> cpl_mask   *mf_mask      = NULL;   </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     <span class="keyword">const</span> cpl_binary *mf_bad       = NULL;  </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> </div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>     *mfnoise_data = NULL;   </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     <span class="keyword">const</span> cpl_mask   *mfnoise_mask = NULL;   </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     cpl_mask   *mfnoise_mask_own = NULL;   </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     cpl_mask   *mf_mask_own = NULL;   </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     <span class="keyword">const</span> cpl_binary *mfnoise_bad  = NULL;  </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>   </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <span class="keywordtype">double</span> ff_mean;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( image != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( master_flat != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( noise == NULL || mflat_noise != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_image_get_type(image) == CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>          <span class="stringliteral">"Image must be double"</span>);</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( noise == NULL || cpl_image_get_type(noise) == CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>          <span class="stringliteral">"Image must be double"</span>);</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_image_get_type(master_flat) == CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>          <span class="stringliteral">"Image must be double"</span>);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( mflat_noise == NULL || cpl_image_get_type(mflat_noise) == CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>          <span class="stringliteral">"Image must be double"</span>);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     assure( nx == cpl_image_get_size_x(master_flat),</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>         CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>         <span class="stringliteral">"Input image and master flat field image have different widths: "</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>         <span class="stringliteral">"%d and %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" (pixels)"</span>,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>         nx, cpl_image_get_size_x(master_flat));</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     assure( ny == cpl_image_get_size_y(master_flat),</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>         <span class="stringliteral">"Input image and master flat field image have different heights: "</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>         <span class="stringliteral">"%d and %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" (pixels)"</span>,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>         ny, cpl_image_get_size_y(master_flat));</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <span class="comment">/* Get all pointers */</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(image_data = cpl_image_get_data(image));</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(image_mask = cpl_image_get_bpm(image));</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(image_bad  = cpl_mask_get_data(image_mask));</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(mf_data = cpl_image_get_data_const(master_flat));</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(mf_mask = cpl_image_get_bpm_const(master_flat));</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     <span class="keywordflow">if</span>(mf_mask==NULL) {</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>           mf_mask_own = cpl_mask_new(nx,ny);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>           mf_mask = mf_mask_own ;</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     }</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(mf_bad  = cpl_mask_get_data_const(mf_mask));</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     <span class="keywordflow">if</span> (noise != NULL)</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     {</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>        <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(noise_data = cpl_image_get_data(noise));</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>        <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(noise_mask = cpl_image_get_bpm(noise));</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>        <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(noise_bad  = cpl_mask_get_data(noise_mask));</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>        <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(mfnoise_data = cpl_image_get_data_const(mflat_noise));</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>        <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(mfnoise_mask = cpl_image_get_bpm_const(mflat_noise));</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>        <span class="keywordflow">if</span>(mfnoise_mask==NULL) {</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>           mfnoise_mask_own = cpl_mask_new(nx,ny);</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>           mfnoise_mask = mfnoise_mask_own ;</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>        }</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>        <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(mfnoise_bad  = cpl_mask_get_data_const(mfnoise_mask));</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     }</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     <span class="keywordflow">if</span> (<span class="keyword">false</span>)</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     {</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>         <span class="comment">/* This would actually be the proper thing to do (take bad</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment">           pixels into account), but for backwards compatibility</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment">           with MIDAS, pretend bad pixels have value zero.</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment">           This is done in order to get the same normalization and</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment">           be able to use response curves produces by the MIDAS pipeline.</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="comment"></span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment">           (The difference in normalization is usually ~10% or so)</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ff_mean = cpl_image_get_mean(master_flat),</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>            <span class="stringliteral">"Could not read average flux of master flat image"</span>);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     }</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     {</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>         <span class="comment">/* To get same normalization as MIDAS (which doesn't take bad pixels</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="comment">         * into account), calculate 'ff_mean' while assuming that bad pixels</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="comment">         * have value zero.</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ff_mean = cpl_image_get_flux(master_flat) / (nx * ny),</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>            <span class="stringliteral">"Could not read average flux of master flat image"</span>);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     }</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     assure( ff_mean != 0 && !irplib_isnan(ff_mean) &&</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>             !irplib_isinf(ff_mean), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>             <span class="stringliteral">"Flat-field mean value is %g! Please provide a better flat-field"</span>,</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>             ff_mean );</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     <span class="comment">/* Divide by normalized master flat */</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     <span class="keywordflow">for</span> (y = 0; y < ny; y++)</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     {</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>         <span class="keywordflow">for</span> (x = 0; x < nx; x++)</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>         {</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>             <span class="keywordtype">double</span> mf, mf_noise = 0;</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>             <span class="keywordtype">double</span> flux, flux_noise = 0, flux_corrected = 0;</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>             <span class="keywordtype">double</span> noise_corrected = 0;</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>             cpl_binary pis_rejected;</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>             <span class="keywordtype">bool</span> is_bad = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>             </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>             mf           = mf_data[x + y*nx];</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>             pis_rejected = mf_bad [x + y*nx];</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>             is_bad = is_bad || (pis_rejected == CPL_BINARY_1);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>             <span class="comment">/* Slow: mf = cpl_image_get(master_flat, x, y, &pis_rejected);</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="comment">               is_bad = is_bad || pis_rejected; */</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>             <span class="keywordflow">if</span> (noise != NULL)</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>             {</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>                 flux_noise   = noise_data[x + y*nx];</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>                 pis_rejected = noise_bad [x + y*nx];</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                 is_bad = is_bad || (pis_rejected == CPL_BINARY_1);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                 <span class="comment">/* Slow: flux_noise = </span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="comment">                   cpl_image_get(image_noise, x, y, &pis_rejected); </span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="comment">                   is_bad = is_bad || pis_rejected; */</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>                 </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                 mf_noise     = mfnoise_data[x + y*nx];</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                 pis_rejected = mfnoise_bad [x + y*nx];</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>                 is_bad = is_bad || (pis_rejected == CPL_BINARY_1);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>                 <span class="comment">/* Slow: mf_noise = </span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="comment">                   cpl_image_get(mflat_noise, x, y, &pis_rejected); </span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment">                   is_bad = is_bad || pis_rejected; */</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>             }</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>             </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>             flux         = image_data[x + y*nx];</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>             pis_rejected = image_bad [x + y*nx];</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>             is_bad = is_bad || (pis_rejected == CPL_BINARY_1);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>             <span class="comment">/* Slow: flux = cpl_image_get(image, x, y, &pis_rejected); </span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment">               is_bad = is_bad || pis_rejected; */</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>             </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>             <span class="keywordflow">if</span> (mf > 0)</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>             {</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>                 flux_corrected = (flux / mf) * ff_mean;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>             }</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>             {</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>                 <span class="comment">/* Some mf frames (produced by MIDAS) have have</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment">                   negative flux values because of improper</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment">                   background subtraction */</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>                 is_bad = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>             }</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>             <span class="keywordflow">if</span> (noise != NULL)</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>             {</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>                 noise_corrected = uves_error_fraction(</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>                 flux, mf, flux_noise, mf_noise)</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>                 * ff_mean;</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>             }</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>             </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>             <span class="keywordflow">if</span> (is_bad) </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>             {</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>                 image_bad[x + nx*y] = CPL_BINARY_1;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>                 <span class="comment">/* Slow: cpl_image_reject(image, x, y);*/</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>                 <span class="keywordflow">if</span> (noise != NULL)</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>                 {</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>                     noise_bad[x + nx*y] = CPL_BINARY_1;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>                     <span class="comment">/* Slow: cpl_image_reject(noise, x, y);*/</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>                 }</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>             }</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>             {</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>                 image_data[x + nx*y] = flux_corrected;</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                 <span class="comment">/* Slow: cpl_image_set(image, x, y, flux_corrected); */</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>                 <span class="keywordflow">if</span> (noise != NULL)</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                 {</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>                     noise_data[x + nx*y] = noise_corrected;</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>                     <span class="comment">/* Slow: cpl_image_set(noise, x, y, noise_corrected); */</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                 }</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>             }</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>         }</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     }</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>   cleanup:</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     <span class="keywordflow">if</span>(mf_mask_own) uves_free_mask(&mf_mask_own);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     <span class="keywordflow">if</span>(mfnoise_mask_own) uves_free_mask(&mfnoise_mask_own);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> }</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> flatfielding_method</div>
-<div class="line"><a name="l00398"></a><span class="lineno"><a class="code" href="group__uves__flatfield.html#gaf870caa19bcc12c4b863a0a022663f22">  398</a></span> <a class="code" href="group__uves__flatfield.html#gaf870caa19bcc12c4b863a0a022663f22" title="Read flat-field method from parameter list.">uves_get_flatfield_method</a>(<span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *context, <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext)</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> {</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *ff = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     flatfielding_method result = 0;</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, subcontext, <span class="stringliteral">"ffmethod"</span>, CPL_TYPE_STRING, &ff),</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     <span class="keywordflow">if</span>      (strcmp(ff, <span class="stringliteral">"pixel"</span>  ) == 0) result = FF_PIXEL;</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(ff, <span class="stringliteral">"extract"</span>) == 0) result = FF_EXTRACT;</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(ff, <span class="stringliteral">"no"</span>     ) == 0) result = FF_NO;</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     {</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>         assure(<span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"No such flat-fielding method: '%s'"</span>, ff);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     }</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>   cleanup:</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> }</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__flatfield_8h_source.html b/html/uves__flatfield_8h_source.html
deleted file mode 100644
index bdc80a0..0000000
--- a/html/uves__flatfield_8h_source.html
+++ /dev/null
@@ -1,124 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_flatfield.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_flatfield.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 14:00:55 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.9 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.8  2010/09/24 09:32:03  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2007/05/22 11:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Removed MIDAS flag for good</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2005/12/16 14:22:23  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed midas test data; Added sof files</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#ifndef UVES_FLATFIELD_H</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_FLATFIELD_H</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {FF_PIXEL, FF_EXTRACT, FF_NO} flatfielding_method;</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> flatfielding_method</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <a class="code" href="group__uves__flatfield.html#gaf870caa19bcc12c4b863a0a022663f22" title="Read flat-field method from parameter list.">uves_get_flatfield_method</a>(<span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *context, <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext);</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> cpl_error_code</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <a class="code" href="group__uves__flatfield.html#gaa96727cda19ae088e522da95f95e6dbd" title="Divide by flat field.">uves_flatfielding</a>(cpl_image *image, cpl_image *noise, </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>           <span class="keyword">const</span> cpl_image *master_flat, <span class="keyword">const</span> cpl_image *mflat_noise);</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__globals_8h_source.html b/html/uves__globals_8h_source.html
deleted file mode 100644
index e4b8593..0000000
--- a/html/uves__globals_8h_source.html
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_globals.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_globals.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">                            Defines</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> </div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="preprocessor">#ifndef UVES_GLOBALS_H</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_GLOBALS_H</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="preprocessor">#define MAX_NAME_SIZE 4096     </span><span class="comment">/* fixme: Is this always enough? */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor"></span><span class="preprocessor">#define MIN_NAME_SIZE  80      </span><span class="comment">/* fixme: Is this always enough? */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#define MED_NAME_SIZE 255      </span><span class="comment">/* fixme: Is this always enough? */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#include <stdint.h></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> </div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_GLOBALS_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__mbias_8c_source.html b/html/uves__mbias_8c_source.html
deleted file mode 100644
index 61215e0..0000000
--- a/html/uves__mbias_8c_source.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_mbias.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_mbias.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.52 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.51  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> {</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     {</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"I am uves_mbias version %d, but I am linking "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     }</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordflow">return</span> uves_mbias_get_info(list);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__mbias__impl_8c_source.html b/html/uves__mbias__impl_8c_source.html
deleted file mode 100644
index 0cccf44..0000000
--- a/html/uves__mbias__impl_8c_source.html
+++ /dev/null
@@ -1,1010 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_mbias_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_mbias_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-11-02 15:43:23 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.62 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.61  2011/09/09 09:56:21  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * using irplib_mkmaster() functionality</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.60  2010/09/24 09:49:18  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * added info on mean master bias level as asked by Daniel</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.59  2010/09/24 09:32:03  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.57  2010/08/30 14:16:08  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * fixed problem computing QC.RON.OUTi.RAW (DFS09268)</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.56  2010/06/11 11:40:46  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * rename method to stack_method</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.55  2010/06/02 09:20:44  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * added correction of bias level before computation of median stack-then put back mean of levels on master bias</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.54  2010/03/31 10:09:59  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * added description</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.53  2010/03/22 15:58:02  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * added params and possibility to compute master as mean stack</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.52  2009/10/29 17:16:29  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * added param to specify if red cdd is new/old in call to uves_get_badpix</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.51  2008/09/29 06:56:48  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.50  2008/05/01 09:51:03  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * fixed compiler warnings</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.49  2008/04/02 14:02:02  amodigli</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * fixed compilation warnings</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.48  2008/03/28 08:53:43  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * IRPLIB_CONCAT2X-->UVES_CONCAT2X</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.47  2008/03/04 15:20:59  amodigli</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * fixed redchain problem with clean_traps parameter</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.46  2008/03/03 16:34:03  amodigli</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * added parameter to control trap column correction</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.45  2008/02/15 12:43:49  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * allow lower/upper chip for parameter process_chip</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.44  2007/10/05 16:01:44  amodigli</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * using proces_chip parameter to process or not a given RED chip</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.43  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.42  2007/06/11 13:28:26  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Changed recipe contact address to cpl at eso.org</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.41  2007/06/08 13:06:16  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Send bug reports to Andrea</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.40  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.39  2007/05/22 11:31:35  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Removed image plotting functionality</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.38  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.37  2007/02/27 07:42:21  jmlarsen</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Fixed bug when counting non-rejected pixels</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.36  2007/02/26 10:15:56  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Be robust against the unlikely case that there are no good pixels to compute QC stats</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.35  2007/02/23 13:32:43  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Change QC computation to exactly match MIDAS' STAT/IMAGE</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.34  2007/02/09 13:37:43  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Enable calling from uves_cal_mkmaster</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.33  2007/02/09 08:57:29  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Do not use CPL_PIXEL_MAXVAL which works only for integer images</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.32  2007/02/09 08:14:16  jmlarsen</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Do not use CPL_PIXEL_MAXVAL which works only for integer images</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.31  2007/01/10 12:37:39  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Removed obsolete comments</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.30  2006/12/07 08:23:23  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * uves_load_raw_imagelist: support FLAMES</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.29  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.27  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is </span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Revision 1.26  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Revision 1.25  2006/10/17 12:33:02  jmlarsen</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * Added semicolon at UVES_RECIPE_DEFINE invocation</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Revision 1.24  2006/10/09 13:01:13  jmlarsen</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> * Use macro to define recipe interface functions</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Revision 1.23  2006/09/19 14:31:10  jmlarsen</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * uves_insert_frame(): use bitmap to specify which image statistics keywords must </span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * be computed</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Revision 1.22  2006/09/19 06:55:52  jmlarsen</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Changed interface of uves_frameset to optionally write image statistics kewwords</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * Revision 1.21  2006/08/24 11:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Revision 1.20  2006/08/18 13:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Fixed/changed QC parameter formats</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> * Revision 1.19  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * Revision 1.18  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Revision 1.17  2006/08/10 10:52:11  jmlarsen</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Bugfix in comparison of chip id</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Revision 1.16  2006/07/14 12:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Support multiple QC tests per product</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Revision 1.15  2006/07/03 13:09:24  amodigli</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> * adjusted description display layout</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * Revision 1.14  2006/07/03 12:58:34  jmlarsen</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> * Support flagging instead of interpolating bad pixels</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> * Revision 1.13  2006/06/22 08:58:33  jmlarsen</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> * Use correct port number for QC</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> * Revision 1.12  2006/06/16 08:25:45  jmlarsen</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> * Manually propagate ESO.DET. keywords from 1st/2nd input header</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> * Revision 1.11  2006/06/07 09:01:28  amodigli</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> * added some doc</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> * Revision 1.10  2006/06/06 08:40:50  jmlarsen</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"> * Changed order of messages</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment"> * Revision 1.9  2006/05/12 15:40:08  jmlarsen</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> * Fixed mixed code declarations</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment"> * Revision 1.8  2006/05/09 15:42:00  amodigli</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> * added QC log</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment"> * Revision 1.7  2006/05/08 16:47:15  amodigli</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment"> * added QC</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment"> * Revision 1.6  2006/05/08 15:38:46  amodigli</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment"> * made changes to have port-id</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment"> * Revision 1.5  2006/05/05 14:33:22  jmlarsen</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment"> * Removed debugging message</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment"> * Revision 1.4  2006/05/05 13:54:52  jmlarsen</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment"> * Removed warnings about unused variables</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment"> * Revision 1.3  2006/04/20 10:47:39  amodigli</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment"> * added qclog</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment"> * Revision 1.2  2006/04/06 09:48:15  amodigli</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> * changed uves_frameset_insert interface to have QC log</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="preprocessor">#include <uves_mbias_impl.h></span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="preprocessor">#include <uves_corrbadpix.h></span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="preprocessor">#include <irplib_mkmaster.h></span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment">/* Library */</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="preprocessor">#include <ctype.h></span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_mbias_qclog(<span class="keyword">const</span> cpl_imagelist* raw_imgs,</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>                              <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **raw_headers,</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                  <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                  <span class="keyword">const</span> cpl_image* mbia,</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                  <span class="comment">/* int sx_pix, Size of X bin in pix </span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="comment">                 int sy_pix, Size of Y bin in pix */</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                             cpl_table* qclog</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     );</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="keyword">static</span> <span class="keywordtype">void</span>  </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> uves_mbias_qc_ron_raw(<span class="keyword">const</span> cpl_image* rbia,</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                       <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> x_cent_s,</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> x_cent_e,</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> y_cent_s,</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> y_cent_e,</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>                       cpl_table* qclog);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> </div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> uves_mbias_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="preprocessor">#define cpl_plugin_get_info uves_mbias_get_info</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     UVES_MBIAS_ID, UVES_MBIAS_DOM,</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     <span class="comment">/* Warning: if more parameters are added to this recipe, they </span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="comment">       need to be propagated to uves_cal_mkmaster! */</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     uves_mbias_define_parameters,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     <span class="stringliteral">"Jonas M. Larsen"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     <span class="stringliteral">"Creates the master bias frame"</span>, </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     <span class="stringliteral">"This recipe creates a master bias frame by computing the median of all input\n"</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     <span class="stringliteral">"bias frames. All input frames must have same tag and size and must be either\n"</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     <span class="stringliteral">"BIAS_BLUE or BIAS_RED.\n"</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     <span class="stringliteral">"On blue input the recipe computes one master bias frame; on red input a \n"</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     <span class="stringliteral">"master bias frame for each chip is produced. The average, standard deviation\n"</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     <span class="stringliteral">"and median of the master bias image(s) are written to the FITS header(s)"</span>);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="keywordtype">int</span> uves_mbias_define_parameters_body(cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                        <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> {</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment">     *    General    *</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     <span class="keywordflow">if</span> (uves_define_global_parameters(parameters) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>         {</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>         }</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     <span class="comment">/**************************************</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="comment">     *  detector's trap correction        *</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment">     **************************************/</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>  </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     <span class="keywordflow">if</span> (uves_corr_traps_define_parameters(parameters,recipe_id) </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>         != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>         {</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>         }</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     <span class="comment">/**************************************</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="comment">     *  Master stack generation           *</span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="comment">     **************************************/</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     <span class="keywordflow">if</span> (uves_master_stack_define_parameters(parameters,recipe_id) </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>         != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>         {</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>         }</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> }</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> uves_mbias_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> {</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     <span class="keywordflow">return</span> uves_mbias_define_parameters_body(parameters, make_str(UVES_MBIAS_ID));</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> }</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> </div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> uves_mbias_process_chip(<span class="keyword">const</span> cpl_imagelist *raw_images, </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                         <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **raw_headers, </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>                         <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mbias_header,</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>                         <span class="keywordtype">int</span> binx, <span class="keywordtype">int</span> biny,</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>                         <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>                         <span class="keywordtype">bool</span> CLEAN_TRAPS,</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>                         <span class="keyword">const</span> <span class="keywordtype">char</span>* STACK_METHOD,</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>                         <span class="keyword">const</span> <span class="keywordtype">double</span> STACK_KLOW,</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>                         <span class="keyword">const</span> <span class="keywordtype">double</span> STACK_KHIGH,</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                         <span class="keyword">const</span> <span class="keywordtype">int</span> STACK_NITER)</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> {</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     cpl_image *master_bias        = NULL; <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     <span class="keywordtype">double</span> exposure_time = 0;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     <span class="keywordtype">int</span> badpixels_cleaned;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>     <span class="keywordtype">int</span> nraw=0;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="keywordtype">bool</span> red_ccd_is_new=<span class="keyword">false</span>;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     cpl_vector* bias_levels=NULL;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     <span class="keywordtype">double</span> bias_mean=0;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating master bias..."</span>);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(red_ccd_is_new=<a class="code" href="group__uves__pfits.html#ga84bbe16d83dc492a6104f3b301f1c2f9" title="Find out if CCD header is new.">uves_ccd_is_new</a>(raw_headers[0]));</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     <span class="comment">/* Get the median at each pixel */</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>     <span class="keywordflow">if</span>(strcmp(STACK_METHOD,<span class="stringliteral">"MEDIAN"</span>)==0) {</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>        <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"method median"</span>);</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>        master_bias=<a class="code" href="group__irplib__calib.html#ga31157521720077a762a43644a503bbf2" title="Computes master frame by clean stack median of the input imagelist.">irplib_mkmaster_median</a>(raw_images,5.,5,1.e-5);</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>        <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"method mean"</span>);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>        master_bias=<a class="code" href="group__irplib__calib.html#gae11ebd9b30a6c781265ba2e5af87722b" title="Computes master frame by clean stack mean of the input imagelist.">irplib_mkmaster_mean</a>(raw_images,5.,5,1.e-5,STACK_KLOW,STACK_KHIGH,STACK_NITER);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     }</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     <span class="comment">/* Set mbias exposure time to average of inputs */</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     exposure_time = 0;</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     nraw=cpl_imagelist_get_size(raw_images);</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     <span class="keywordflow">for</span> (i = 0; i < nraw; i++)</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     {</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( exposure_time += <a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(raw_headers[i]), </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>            <span class="stringliteral">"Error reading exposure time"</span>);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     }</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     exposure_time /= nraw;</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gae45226fec29767907871c9f34f61f61a" title="Write the exposure time.">uves_pfits_set_exptime</a>(mbias_header, exposure_time),</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>        <span class="stringliteral">"Error setting master bias exposure time"</span>);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>    <span class="keywordflow">if</span>(CLEAN_TRAPS) {</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( badpixels_cleaned = </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>              <a class="code" href="group__uves__corrbadpix.html#gabddade195002b7813f7cb41baa85b729" title="Correct all bad pixels on a chip.">uves_correct_badpix_all</a>(master_bias, mbias_header, </div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>                                      chip, binx, biny, <span class="keyword">false</span>,red_ccd_is_new),</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>              <span class="stringliteral">"Error replacing bad pixels"</span>);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> </div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%d bad pixels replaced"</span>, badpixels_cleaned);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>    }</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>   cleanup:</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     {</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>         uves_free_image(&master_bias);</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     }</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     </div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     <span class="keywordflow">return</span> master_bias;</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> }</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> </div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> UVES_CONCAT2X(UVES_MBIAS_ID,exe)(cpl_frameset *frames, </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                    <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> {</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     uves_mbias_exe_body(frames, parameters, starttime, make_str(UVES_MBIAS_ID));</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> }</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> uves_mbias_exe_body(cpl_frameset *frames, </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>             <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> {</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     cpl_imagelist *raw_images[2]        = {NULL, NULL};</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **raw_headers[2]   = {NULL, NULL};    <span class="comment">/* Two arrays of pointers */</span></div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>     cpl_table* qclog[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *product_header[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     cpl_image *master_bias              = NULL;</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     cpl_stats *mbias_stats              = NULL;</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     <span class="keywordtype">char</span> *product_filename = NULL;</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     <span class="keywordtype">bool</span> blue;</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     <span class="keywordtype">int</span> binx, biny;</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>     <span class="keywordtype">bool</span> CLEAN_TRAPS;</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     <span class="keywordtype">int</span> raw_index = 0;</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> </div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* STACK_METHOD=NULL;</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     <span class="keywordtype">double</span> STACK_KLOW=0;</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     <span class="keywordtype">double</span> STACK_KHIGH=0;</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     <span class="keywordtype">int</span> STACK_NITER=0;</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> </div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     <span class="comment">/* Load and check raw bias images and headers, identify arm (blue/red) */</span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     <span class="comment">/* On success, 'raw_headers' will be arrays with the same length as 'raw_images' */</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_raw_imagelist(frames, </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>                    <span class="keyword">false</span>,     <span class="comment">/* FLAMES format? (no) */</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>                    UVES_BIAS(<span class="keyword">true</span>), UVES_BIAS(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>                    CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>                    raw_images, raw_headers, product_header, </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>                    &blue), <span class="stringliteral">"Error loading raw frames"</span>);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>     <span class="comment">/* Get binning from first header (i.e. BLUE or REDL chip, first raw frame) */</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( binx = <a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(raw_headers[0][0]), </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>        <span class="stringliteral">"Could not get raw frame x-binning"</span>);</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( biny = <a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(raw_headers[0][0]), </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>        <span class="stringliteral">"Could not get raw frame y-binning"</span>);</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"process_chip"</span>, CPL_TYPE_STRING, &PROCESS_CHIP),</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> </div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"clean_traps"</span>, CPL_TYPE_BOOL, &CLEAN_TRAPS),</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> </div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"stack_method"</span>, CPL_TYPE_STRING, &STACK_METHOD),</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)STACK_METHOD);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"klow"</span>, CPL_TYPE_DOUBLE, &STACK_KLOW),</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"khigh"</span>, CPL_TYPE_DOUBLE, &STACK_KHIGH),</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"niter"</span>, CPL_TYPE_INT, &STACK_NITER),</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> </div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>     <span class="comment">/* Loop over one or two chips */</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>     <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>      chip != UVES_CHIP_INVALID;</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>      chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>     {</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>        <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDU"</span>) == 0) {</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>       }</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>         raw_index = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing %s chip"</span>,</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>              <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Binning = %dx%d"</span>, binx, biny);</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> </div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>         <span class="comment">/* Process chip */</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>         uves_free_image(&master_bias);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( master_bias = uves_mbias_process_chip(raw_images[raw_index], </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>                                                      raw_headers[raw_index],</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                                                      product_header[raw_index],</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                                                      binx, biny,</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                                                      chip,CLEAN_TRAPS,</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                                                      STACK_METHOD,</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                                                      STACK_KLOW,</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>                                                      STACK_KHIGH,</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>                                                      STACK_NITER),</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>            <span class="stringliteral">"Error processing chip"</span>);</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>         </div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>         </div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>         cpl_free(product_filename);</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = uves_masterbias_filename(chip), </div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>            <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>         <span class="comment">/* Finished. Calculate QC parameters and save */</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating QC parameters"</span>);</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>             <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>             qclog[0] = <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(raw_headers[raw_index][0], chip);</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_mbias_qclog(raw_images[raw_index],</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                                    raw_headers[raw_index],</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>                                    chip,</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>                                    master_bias,</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                    <span class="comment">/* binx,biny, */</span></div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                    qclog[0]),<span class="stringliteral">"error computing qclog"</span>);</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> </div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>         <span class="comment">/* Insert into frame set */</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Saving product..."</span>);</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>         </div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>                     master_bias,</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>                     CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>                     CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>                     CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>                     product_filename,</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>                     UVES_MASTER_BIAS(chip),</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>                     raw_headers[raw_index][0], <span class="comment">/* First frame */</span></div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>                     product_header[raw_index],</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>                     NULL,</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>                     parameters,</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>                     recipe_id,</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>                     PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,qclog,</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>                     starttime, <span class="keyword">true</span>, </div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>                     UVES_ALL_STATS),</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>            <span class="stringliteral">"Could not add master bias %s to frameset"</span>, product_filename);</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>             <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Master bias '%s' added to frameset"</span>, product_filename);</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> </div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>         <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDL"</span>) == 0) {</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>       }</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> </div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>         } <span class="comment">/* For each chip */</span></div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>   cleanup:</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>     <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>     <span class="keywordflow">if</span> (raw_images[0] != NULL)</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>     {</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> </div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>         <span class="keywordflow">for</span> (i = 0; i < cpl_imagelist_get_size(raw_images[0]); i++) </div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>         {</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>             <span class="keywordflow">if</span> (raw_headers[0] != NULL) uves_free_propertylist(&raw_headers[0][i]);</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>             <span class="keywordflow">if</span> (raw_headers[1] != NULL) uves_free_propertylist(&raw_headers[1][i]);</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>         }</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>         cpl_free(raw_headers[0]); raw_headers[0] = NULL;</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>         cpl_free(raw_headers[1]); raw_headers[1] = NULL;</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     }</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>     uves_free_imagelist(&raw_images[0]);</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>     uves_free_imagelist(&raw_images[1]);</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> </div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     uves_free_image(&master_bias);</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>     uves_free_propertylist(&product_header[0]);</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>     uves_free_propertylist(&product_header[1]);</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     cpl_free(product_filename);</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>     uves_free_stats(&mbias_stats);</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     </div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> }</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> </div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> </div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> </div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> count_good(<span class="keyword">const</span> cpl_image *image)</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> {</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>     <span class="keywordflow">return</span> </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>         cpl_image_get_size_x(image) * cpl_image_get_size_y(image) - </div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>         cpl_image_count_rejected(image);</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> }</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> reject_lo_hi(cpl_image *image, <span class="keywordtype">double</span> min, <span class="keywordtype">double</span> max)</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> {</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>   cpl_mask *mask_lo = NULL;</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>   cpl_mask *mask_hi = NULL;</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> </div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>   mask_lo = cpl_mask_threshold_image_create(image, -DBL_MAX, min);</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>   mask_hi = cpl_mask_threshold_image_create(image, max, DBL_MAX);</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>   <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( mask_lo );</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>   <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( mask_hi );</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span> </div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>   cpl_mask_or(mask_lo, mask_hi);</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span> </div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>   cpl_image_reject_from_mask(image, mask_lo);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>   </div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>   cleanup:</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>   uves_free_mask(&mask_lo);</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>   uves_free_mask(&mask_hi);</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> }</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> </div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_mbias_qclog(<span class="keyword">const</span> cpl_imagelist* raw_imgs,</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                              <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **raw_headers,</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                  <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                  <span class="keyword">const</span> cpl_image* mbia,</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>                  <span class="comment">/* int sx_pix, Size of X bin in pix </span></div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span> <span class="comment">                 int sy_pix, Size of Y bin in pix */</span></div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>                             cpl_table* qclog</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>                             ) </div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> {</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>   <span class="keywordtype">int</span> nx_pix= 0;  <span class="comment">/* No of X pix */</span></div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>   <span class="keywordtype">int</span> ny_pix= 0;  <span class="comment">/* No of Y pix */</span></div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span> </div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>   <span class="keywordtype">int</span> sample_x= 100; <span class="comment">/* X size of sampling window in pix */</span></div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>   <span class="keywordtype">int</span> sample_y= 100; <span class="comment">/* Y size of sampling window in pix */</span></div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>   <span class="keywordtype">int</span> x_cent_s= 0;   <span class="comment">/* X sampling window starting point */</span></div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>   <span class="keywordtype">int</span> x_cent_e= 0;   <span class="comment">/* X sampling window ending point */</span></div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>   <span class="keywordtype">int</span> y_cent_s= 0;   <span class="comment">/* Y sampling window starting point */</span></div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>   <span class="keywordtype">int</span> y_cent_e= 0;   <span class="comment">/* Y sampling window ending point */</span></div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span> </div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span> </div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span> </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>   <span class="keywordtype">double</span> upp_threshold= 0.0;</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>   <span class="keywordtype">double</span> low_threshold= 0.0;</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>   <span class="keywordtype">double</span> extra=0.1;</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>   <span class="keywordtype">double</span> qc_ron_master= 0.0;</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> </div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>   <span class="keywordtype">double</span> master_median=0.0;</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>   <span class="keywordtype">int</span> pn= 0;</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> </div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>   <span class="keywordtype">double</span> min=0.0;</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>   <span class="keywordtype">double</span> max=0.0;</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>   <span class="keywordtype">double</span> struct_col=0.0;</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>   <span class="keywordtype">double</span> struct_row=0.0;</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> </div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>   <span class="keywordtype">double</span> time_s=+9999999.0;</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>   <span class="keywordtype">double</span> time_e=-9999999.0;</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>   <span class="keywordtype">int</span> nraw=0;</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>   <span class="keywordtype">double</span> qc_duty_cycle=0.;</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>   <span class="keywordtype">double</span> exposure_time=0;</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>   <span class="keywordtype">char</span> key_name[80];</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>   <span class="keyword">const</span> cpl_image* rbia=NULL;</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>   cpl_image* tima=NULL;</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>   cpl_image* avg_col=NULL;</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>   cpl_image* avg_row=NULL;</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>   </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>   <a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>                         <span class="stringliteral">"QC TEST1 ID"</span>,</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>                         <span class="stringliteral">"Test-on-Master-Bias"</span>,</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>                         <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>                         <span class="stringliteral">"%s"</span>);</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> </div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Computing duty cycle..."</span>);</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span> </div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>   <span class="comment">/* Set mbias exposure time to average of inputs */</span></div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>   exposure_time = 0;</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>   nraw = cpl_imagelist_get_size(raw_imgs);</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>                         <span class="stringliteral">"PRO DATANCOM"</span>,</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>                         nraw,</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>                         <span class="stringliteral">"Number of frames combined"</span>,</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>                         <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span> </div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>   <span class="keywordflow">for</span> (i = 0; i < nraw; i++)</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>     {</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( exposure_time = <a class="code" href="group__uves__pfits.html#ga43adddad6bd999b197d24eacc25bde34" title="Find out the modified julian observation date.">uves_pfits_get_mjdobs</a>(raw_headers[i]),</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>          <span class="stringliteral">"Error reading exposure time"</span>);</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>       <span class="keywordflow">if</span>(exposure_time >= time_e) time_e = exposure_time;</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>       <span class="keywordflow">if</span>(exposure_time <= time_s) time_s = exposure_time;</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     }</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>   <span class="keywordflow">if</span>(nraw > 1) {</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     qc_duty_cycle = (time_e-time_s)/ (nraw-1);</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>   }</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>       {</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>       qc_duty_cycle = 0;</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>       }</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>  </div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>                         <span class="stringliteral">"QC DUTYCYCL"</span>,</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>                         qc_duty_cycle,</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>                         <span class="stringliteral">"Time to store a frame"</span>,</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>                         <span class="stringliteral">"%.5e"</span>));</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> </div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>   <span class="comment">/* The following is not really used in MIDAS so we comment</span></div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span> <span class="comment">  strcpy(date,uves_pfits_get_tpl_start(plist));</span></div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span> </div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>   <span class="comment">/* CONVERT FROM MIDAS</span></div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> <span class="comment">  nx_pix = m$value({mbia},NPIX(1));</span></div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> <span class="comment">  ny_pix = m$value({mbia},NPIX(2));</span></div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span> </div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>   nx_pix = cpl_image_get_size_x(mbia);</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>   ny_pix = cpl_image_get_size_y(mbia);</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> </div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>   x_cent_s = (nx_pix - sample_x)/2;</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>   x_cent_e = (nx_pix + sample_x)/2;</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>   y_cent_s = (ny_pix - sample_y)/2;</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>   y_cent_e = (ny_pix + sample_y)/2;</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>  </div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>   </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(upp_threshold = </div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>           cpl_image_get_median_window(mbia,</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>                       x_cent_s,</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>                       y_cent_s,</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>                       x_cent_e,</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>                       y_cent_e)*(1 + extra));</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(low_threshold = </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>           cpl_image_get_median_window(mbia,</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>                       x_cent_s,</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>                       y_cent_s,</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>                       x_cent_e,</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>                       y_cent_e)*(1 - extra));</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>   </div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>   <span class="comment">/* convert from MIDAS</span></div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span> <span class="comment">  pn = {uves_portid({PATHID})};</span></div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pn = PORT_ID(chip));</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Port number = %d"</span>, pn);</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span> </div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>   rbia = cpl_imagelist_get_const(raw_imgs,0);</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_mbias_qc_ron_raw(rbia, chip,</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>                     x_cent_s,x_cent_e,y_cent_s,y_cent_e,qclog));</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span> </div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> </div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>   <span class="comment">/* convert from  MIDAS</span></div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span> <span class="comment">  stat/ima {mbia} + bins=1 exc={low_threshold},{upp_threshold};</span></div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tima=cpl_image_duplicate(mbia));</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( reject_lo_hi(tima, low_threshold, upp_threshold) );</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>   <span class="keywordflow">if</span> (count_good(tima) >= 2)</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>       {</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(master_median = cpl_image_get_median(tima));</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_ron_master = cpl_image_get_stdev(tima));</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>       }</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>       {</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>           master_median = -1;</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>           qc_ron_master = -1;</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>           <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Only %d good pixels in image. Setting QC parameters to -1"</span>,</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>                            count_good(tima));</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>       }</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>   uves_free_image(&tima);</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> </div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>                         <span class="stringliteral">"PRO DATAMED"</span>,</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>                         master_median,</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>                         <span class="stringliteral">"Median of pixel values"</span>,</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>                         <span class="stringliteral">"%7.3f"</span>));</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span> </div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>   sprintf(key_name, <span class="stringliteral">"QC OUT%d RON MASTER"</span>, pn);</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>                         key_name,</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>                         qc_ron_master,</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>                         <span class="stringliteral">"Read noise frame in ADU"</span>,</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>                         <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span> </div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>   <span class="comment">/* ==========================</span></div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span> <span class="comment">   * Calculates Bias struct</span></div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span> <span class="comment">   * ==========================</span></div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> </div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>  </div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span> <span class="comment">   * in case of RED frame cuts out values greater than 300.</span></div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span> <span class="comment">   * as the frame can be affected by this local operation we </span></div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> <span class="comment">   * do the calculation on a copy of the original frame</span></div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> </div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>   </div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tima=cpl_image_duplicate(mbia));</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>   <span class="keywordflow">if</span> (chip != UVES_CHIP_BLUE) {</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> <span class="comment">    replace/ima {mbia} {tmpfrm} 300,>=300.;</span></div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_threshold(tima,</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>                                     -DBL_MAX,300,</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>                                     -DBL_MAX,300));</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>   }</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> </div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> </div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(avg_col = cpl_image_collapse_create(tima,1));</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_divide_scalar(avg_col,cpl_image_get_size_x(tima)));</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> </div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>   <span class="comment">/* restricts statistics to +/- 2 ADU around mean */</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>   min = cpl_image_get_mean(avg_col) - 2;</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>   max = cpl_image_get_mean(avg_col) + 2; </div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span> </div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>   <span class="comment">/* replace with MIDAS</span></div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> <span class="comment">  stat/ima avg_col + exc={min},{max};</span></div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( reject_lo_hi(avg_col, min, max) );</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>   <span class="keywordflow">if</span> (count_good(avg_col) >= 2)</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>       {</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(struct_col = cpl_image_get_stdev(avg_col));</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>       }</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>       {</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>           struct_col = -1;</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>           <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Only %d good pixels in image. Setting QC parameter to -1"</span>,</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>                            count_good(avg_col));</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>       }</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span> </div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>   sprintf(key_name,<span class="stringliteral">"%s%d%s"</span>,<span class="stringliteral">"QC OUT"</span>,pn,<span class="stringliteral">" STRUCTY"</span>);</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>                         key_name,</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>                         struct_col,</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>                         <span class="stringliteral">"structure in Y (bias slope)"</span>,</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>                         <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> </div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> </div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span> </div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(avg_row = cpl_image_collapse_create(tima,0));</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_divide_scalar(avg_row,cpl_image_get_size_y(tima)));</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span> </div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>   <span class="comment">/* restricts statistics to +/- 2 ADU around mean */</span></div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>   min = cpl_image_get_mean(avg_row) - 2;</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>   max = cpl_image_get_mean(avg_row) + 2;</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>  </div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>   <span class="comment">/* replace with MIDAS</span></div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span> <span class="comment">  stat/ima avg_row + exc={min},{max};</span></div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( reject_lo_hi(avg_row, min, max) );</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>   <span class="keywordflow">if</span> (count_good(avg_row) >= 2)</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>       {</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(struct_row = cpl_image_get_stdev(avg_row));</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>       }</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>       {</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>           struct_row = -1;</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>           <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Only %d good pixels in image. Setting QC parameter to -1"</span>,</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                            count_good(avg_row));</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>       }</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> </div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>   </div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>   sprintf(key_name,<span class="stringliteral">"%s%d%s"</span>,<span class="stringliteral">"QC OUT"</span>,pn,<span class="stringliteral">" STRUCTX"</span>);</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>                         key_name,</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>                         struct_row,</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>                         <span class="stringliteral">"structure in X (bias slope)"</span>,</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>                         <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span> </div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>  </div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span> </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>  </div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>  cleanup:</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>   uves_free_image(&avg_col);</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>   uves_free_image(&avg_row);</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>   uves_free_image(&tima);</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>   </div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> </div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span> }</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> uves_mbias_qc_ron_raw(<span class="keyword">const</span> cpl_image* rbia,</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                       <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> x_cent_s,</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> x_cent_e,</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> y_cent_s,</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> y_cent_e,</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>                       cpl_table* qclog)</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> {</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span> </div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>   <span class="keywordtype">double</span> qc_ron_raw=0.0;</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>   <span class="keywordtype">double</span> upp_threshold=0.0;</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>   <span class="keywordtype">double</span> low_threshold=0.0;</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>   <span class="keywordtype">double</span> extra=0.1;</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>   <span class="keywordtype">char</span> key_name[80];</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>   <span class="keywordtype">int</span> pn=0;</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>   cpl_image* tima=NULL;</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span> </div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>   <span class="comment">/* replace with MIDAS</span></div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span> <span class="comment">  date   = "{{mbia},ESO.TPL.START}";</span></div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span> <span class="comment">  store/frame infrm {incat} 1;</span></div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(upp_threshold = </div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>           cpl_image_get_median_window(rbia,</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                       x_cent_s,</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>                       y_cent_s,</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>                       x_cent_e,</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>                       y_cent_e)*(1 + extra));</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>   </div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(low_threshold = </div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>           cpl_image_get_median_window(rbia,</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                       x_cent_s,</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>                       y_cent_s,</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>                       x_cent_e,</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>                       y_cent_e)*(1 - extra));</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>   </div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span> </div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span> </div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>   <span class="comment">/* replace from MIDAS</span></div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> <span class="comment">  stat/ima {rbia} + bins=1 exc={low_treshold},{upp_treshold};</span></div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tima=cpl_image_duplicate(rbia));</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span> </div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( reject_lo_hi(tima, low_threshold, upp_threshold) );</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>   <span class="keywordflow">if</span> (count_good(tima) >= 2)</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>       {</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_ron_raw = cpl_image_get_stdev(tima));</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>       }</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>       {</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>           qc_ron_raw = -1;</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>           <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Only %d good pixels in image. Setting QC parameter to -1"</span>,</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>                            count_good(tima));</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>       }</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span> </div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> </div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>   <span class="comment">/* replace from MIDAS</span></div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> <span class="comment">  pn = {uves_portid({PATHID})};</span></div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pn = PORT_ID(chip));</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> </div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> </div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>   sprintf(key_name,<span class="stringliteral">"%s%d%s"</span>,<span class="stringliteral">"QC OUT"</span>,pn,<span class="stringliteral">" RON RAW"</span>);</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>                         key_name,</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>                         qc_ron_raw,</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>                         <span class="stringliteral">"Read noise frame in ADU"</span>,</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>                         <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> </div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>  cleanup:</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>   uves_free_image(&tima);</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> }</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__mbias__impl_8h_source.html b/html/uves__mbias__impl_8h_source.html
deleted file mode 100644
index a2811c2..0000000
--- a/html/uves__mbias__impl_8h_source.html
+++ /dev/null
@@ -1,111 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_mbias_impl.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_mbias_impl.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:03 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.4 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.1  2007/02/09 13:38:13  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Enable calling from uves_cal_mkmaster</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.2  2006/11/13 12:47:42  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Don't subtract background for FLAMES reduction</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.1  2006/09/27 13:22:43  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Factored out flat reduction</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#ifndef UVES_MBIAS_IMPL_H</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MBIAS_IMPL_H</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> uves_mbias_exe_body(cpl_frameset *frames, </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>             <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#endif  </span><span class="comment">/* UVES_MBIAS_IMPL_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__mdark_8c_source.html b/html/uves__mdark_8c_source.html
deleted file mode 100644
index afe2cfd..0000000
--- a/html/uves__mdark_8c_source.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_mdark.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_mdark.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.37 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.36  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> {</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     {</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"I am uves_mdark version %d, but I am linking "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     }</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordflow">return</span> uves_mdark_get_info(list);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__mdark__impl_8c_source.html b/html/uves__mdark__impl_8c_source.html
deleted file mode 100644
index 478f83a..0000000
--- a/html/uves__mdark__impl_8c_source.html
+++ /dev/null
@@ -1,1256 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_mdark_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_mdark_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-01-03 08:39:09 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.53 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.52  2010/12/16 16:57:40  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * fixed compiler warnings</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.51  2010/09/27 06:32:41  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * fixed mem leaks</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.50  2010/09/24 09:32:03  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.48  2010/06/11 11:40:00  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * add uves_qcdark_define_parameters_body(), uves_mdark_define_qc_parameters()</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.47  2010/06/08 13:51:55  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * cleaned output</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.46  2010/05/14 12:47:40  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * set range on several params that control QC</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.45  2010/05/11 05:49:02  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * clarified recipe help</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.44  2010/03/24 14:56:30  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * fixed compiler warning</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.43  2010/03/22 15:57:43  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * added params and possibility to compute master as mean stack</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.42  2010/03/01 18:00:22  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * fixed several bugs in computing QC parameters</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.41  2008/11/06 14:36:27  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * fixed mem leaks</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.40  2008/09/29 06:57:03  amodigli</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.39  2008/03/28 08:53:50  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * IRPLIB_CONCAT2X-->UVES_CONCAT2X</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.38  2008/02/15 12:43:49  amodigli</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * allow lower/upper chip for parameter process_chip</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.37  2007/10/05 16:01:45  amodigli</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * using proces_chip parameter to process or not a given RED chip</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.36  2007/08/31 06:27:02  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * include uves_globals.h</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.35  2007/08/24 08:28:36  amodigli</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * clearer parm doc</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.34  2007/08/24 06:55:36  amodigli</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * fixed parameter io for qc</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.33  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.32  2007/08/17 10:07:02  amodigli</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * added QC params asked by DFS04195</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.31  2007/06/11 13:28:26  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Changed recipe contact address to cpl at eso.org</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.30  2007/06/08 13:06:16  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Send bug reports to Andrea</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.29  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.28  2007/05/16 09:50:40  jmlarsen</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Do not threshold to zero after bias subtraction</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.27  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.26  2007/02/09 13:37:47  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Enable calling from uves_cal_mkmaster</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.25  2007/02/09 08:57:44  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Include <float.h></span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.24  2007/02/09 08:14:16  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Do not use CPL_PIXEL_MAXVAL which works only for integer images</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.23  2006/12/07 08:23:23  jmlarsen</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * uves_load_raw_imagelist: support FLAMES</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.22  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.20  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Revision 1.19  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Revision 1.18  2006/10/17 12:33:02  jmlarsen</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * Added semicolon at UVES_RECIPE_DEFINE invocation</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Revision 1.17  2006/10/09 13:01:13  jmlarsen</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * Use macro to define recipe interface functions</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Revision 1.16  2006/09/19 14:31:17  jmlarsen</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * uves_insert_frame(): use bitmap to specify which image statistics keywords must be computed</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Revision 1.15  2006/09/19 06:55:55  jmlarsen</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> * Changed interface of uves_frameset to optionally write image statistics kewwords</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Revision 1.14  2006/08/24 11:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Revision 1.13  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Revision 1.12  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Revision 1.11  2006/07/14 12:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Support multiple QC tests per product</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Revision 1.10  2006/07/03 13:02:18  jmlarsen</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> * Threshold to zero after bias subtraction</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Revision 1.9  2006/06/28 13:29:06  amodigli</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * removed TEST ID from QC log</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Revision 1.8  2006/06/16 08:25:45  jmlarsen</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Manually propagate ESO.DET. keywords from 1st/2nd input header</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Revision 1.7  2006/06/13 11:57:02  jmlarsen</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Check that calibration frames are from the same chip ID</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Revision 1.6  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Revision 1.5  2006/05/09 07:42:18  amodigli</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * added QC-LOG</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * Revision 1.4  2006/04/06 12:57:22  jmlarsen</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> * Added support for PDARK, MASTER_PDARK frames</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Revision 1.3  2006/04/06 09:48:15  amodigli</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> * changed uves_frameset_insert interface to have QC log</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * Revision 1.2  2006/04/06 08:37:33  jmlarsen</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> * Removed memory leak</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> * Revision 1.27  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment"> * Insertedv missing doxygen end tag</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> * Revision 1.26  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="preprocessor">#include <uves_mdark_impl.h></span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="preprocessor">#include <uves_globals.h></span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">static int</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment">uves_qcdark_define_parameters_body(cpl_parameterlist *parameters, </span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment">                   const char *recipe_id);</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> uves_mdark_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_mdark_region_qc(cpl_image* img, </div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                                  <span class="keyword">const</span> cpl_parameterlist* p,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                                  <span class="keyword">const</span> cpl_imagelist* raw_images,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>* recipe_id,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                                  cpl_table* qclog);</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> uves_mdark_process_chip(<span class="keyword">const</span> cpl_imagelist *raw_images, </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **raw_headers,</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>             <span class="keyword">const</span> cpl_image *master_bias,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mdark_header, </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>             <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>             <span class="keyword">const</span> <span class="keywordtype">char</span>* recipe_id,</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>                         cpl_table* qclog, <span class="keyword">const</span> <span class="keywordtype">int</span> do_qc);</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> </div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="preprocessor">#define cpl_plugin_get_info uves_mdark_get_info</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     UVES_MDARK_ID, UVES_MDARK_DOM, </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <span class="comment">/* Warning: if more parameters are added to this recipe, they </span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment">       need to be propagated to uves_cal_mkmaster! */</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     uves_mdark_define_parameters,</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     <span class="stringliteral">"Jonas M. Larsen"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="stringliteral">"Creates the master dark frame"</span>,</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <span class="stringliteral">"This recipe creates a master dark frame by taking the median of all\n"</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     <span class="stringliteral">"input frames which should have identical exposure times. Symbolically,\n"</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <span class="stringliteral">"   masterdark = median( dark_i ) - masterbias\n"</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     <span class="stringliteral">"The input dark frames must have same tag and size and must be either\n"</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <span class="stringliteral">"(P)DARK_BLUE or (P)DARK_RED. Also, a master bias (MASTER_BIAS_xxxx) must\n"</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     <span class="stringliteral">"be provided for each chip (xxxx = BLUE, REDL, REDU).\n"</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     <span class="stringliteral">"On blue input the recipe computes one master dark frame; on red input the\n"</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     <span class="stringliteral">"recipe produces a master dark frame for each chip (MASTER_(P)DARK_xxxx).\n"</span>);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> </div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> uves_extract_basic_parameters_for_qc(<span class="keyword">const</span> cpl_parameterlist* p,</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span>* recipe_id,</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>                                      <span class="keywordtype">int</span> * pr_num_x, </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                                      <span class="keywordtype">int</span>* pr_num_y, </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                                      <span class="keywordtype">int</span>* pr_box_sx, </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                                      <span class="keywordtype">int</span>* pr_box_sy)</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> {</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>   <span class="keywordtype">char</span> name[MAX_NAME_SIZE];</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>   <span class="keywordtype">char</span> pname[MAX_NAME_SIZE];</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>   sprintf(name,<span class="stringliteral">"reg.num_x"</span>);</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>   sprintf(pname,<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID, name);</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"pname=%s"</span>,pname);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_parameter(p,NULL,recipe_id,pname,CPL_TYPE_INT,pr_num_x), </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>   sprintf(name,<span class="stringliteral">"reg.num_y"</span>);</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>   sprintf(pname,<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID, name);</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_parameter(p,NULL,recipe_id,pname,CPL_TYPE_INT,pr_num_y), </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>      <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>   sprintf(name,<span class="stringliteral">"reg.box_sx"</span>);</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>   sprintf(pname,<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID, name);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_parameter(p,NULL,recipe_id,pname,CPL_TYPE_INT,pr_box_sx),</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>      <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>   sprintf(name,<span class="stringliteral">"reg.box_sy"</span>);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>   sprintf(pname,<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID, name);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_parameter(p,NULL,recipe_id,pname,CPL_TYPE_INT,pr_box_sy),</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>      <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>   cleanup:</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>   <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> }</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> uves_mdark_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> {</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>   <span class="keywordflow">if</span> (uves_master_stack_define_parameters(parameters,</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>                                            make_str(UVES_MDARK_ID))</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>         != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>         {</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         }</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     <span class="keywordflow">return</span> uves_qcdark_define_parameters_body(parameters, </div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>                          make_str(UVES_MDARK_ID));</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> }</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> uves_qcdark_define_parameters_body(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> {</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="comment">     *    General    *</span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <span class="keywordflow">if</span> (uves_define_global_parameters(parameters) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     {</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     }</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     <span class="keywordflow">if</span> (uves_master_stack_define_parameters(parameters,recipe_id) </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>         != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>         {</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>         }</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     <span class="comment">/****************************</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="comment">     *  Spline back.sub.        *</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="comment">     ****************************/</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     <span class="keywordflow">if</span> (uves_propagate_parameters_step(UVES_QCDARK_ID, parameters, </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                        recipe_id, NULL) != 0)</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     {</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     }</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> }</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> cpl_error_code </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> uves_mdark_define_qc_parameters(cpl_parameterlist* parameters)</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> {</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>   </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>     <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     cpl_parameter *p = NULL;</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>     {</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>    </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>       name = <span class="stringliteral">"reg.num_x"</span>;</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID, name);</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>       uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                    CPL_TYPE_INT,</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                    <span class="stringliteral">"Number of regions along the X axis "</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>                                <span class="stringliteral">"(where mean/med/rms are computed). "</span>,</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>                    UVES_QCDARK_ID,</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                    4,0,INT_MAX);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name );</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>       name = <span class="stringliteral">"reg.num_y"</span>;</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID,name);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>       uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                    CPL_TYPE_INT,</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>                    <span class="stringliteral">"Number of regions along the Y axis"</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>                                <span class="stringliteral">"(where mean/med/rms are computed). "</span>,</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>                    UVES_QCDARK_ID,</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>                    4,0,INT_MAX);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> </div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>       name = <span class="stringliteral">"reg.box_sx"</span>;</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID,name);</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>       uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>                    CPL_TYPE_INT,</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>                    <span class="stringliteral">"Region X size [pix]"</span>,</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>                    UVES_QCDARK_ID,</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>                    100,0,INT_MAX);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>       name = <span class="stringliteral">"reg.box_sy"</span>;</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID,name);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>       uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                    CPL_TYPE_INT,</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                    <span class="stringliteral">"Region Y size [pix]"</span>,</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>                    UVES_QCDARK_ID,</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                    100,0,INT_MAX);</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>       name = <span class="stringliteral">"reg.border_x"</span>;</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID,name);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>       uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>                    CPL_TYPE_INT,</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>                    <span class="stringliteral">"X distance between the left hand side "</span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                                <span class="stringliteral">"of the detector and the left hand side "</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>                                <span class="stringliteral">"of the region [pix]"</span>,</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                    UVES_QCDARK_ID,</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                    100,0,INT_MAX);</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> </div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>       name = <span class="stringliteral">"reg.border_y"</span>;</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID,name);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>       uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>                    CPL_TYPE_INT,</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>                    <span class="stringliteral">"X distance between the left hand side "</span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>                                <span class="stringliteral">"of the detector and the left hand side "</span></div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>                                <span class="stringliteral">"of the region [pix]"</span>,</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>                    UVES_QCDARK_ID,</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>                    100,0,INT_MAX);</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> </div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>       name = <span class="stringliteral">"reg.when"</span>;</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID,name);</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>       uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>                    CPL_TYPE_INT,</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>                    <span class="stringliteral">"When QC analysis is performed. "</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>                                <span class="stringliteral">"0: on each raw frame or "</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>                                <span class="stringliteral">"1: on the master frame"</span>,</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>                    UVES_QCDARK_ID,</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>                   0,2,0,1);</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     }</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     {</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of mdark parameters failed: '%s'"</span>, </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>         cpl_parameterlist_delete(parameters);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>     }</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> }</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> </div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> cpl_parameterlist *</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> uves_qcdark_define_parameters(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> {</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>   </div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     cpl_parameterlist *parameters = NULL;</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     parameters = cpl_parameterlist_new();</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_mdark_define_qc_parameters(parameters),</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>           <span class="stringliteral">"Error defining mdark qc parameters"</span>);</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> </div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> </div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>   cleanup:  </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     {</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of mdark parameters failed: '%s'"</span>, </div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>         cpl_parameterlist_delete(parameters);</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>        <span class="keywordflow">return</span> parameters;</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     }</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> }</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> </div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> </div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> </div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> uves_mdark_process_chip(<span class="keyword">const</span> cpl_imagelist *raw_images, </div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>                         <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **raw_headers, </div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>                         <span class="keyword">const</span> cpl_image *master_bias,</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                 <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mdark_header, </div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>             <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>             <span class="keyword">const</span> <span class="keywordtype">char</span>* recipe_id,</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>             cpl_table* qclog,<span class="keyword">const</span> <span class="keywordtype">int</span> do_qc)</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> {</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>    cpl_image *master_dark        = NULL; <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>    cpl_image *current_dark       = NULL;</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>    cpl_imagelist *preproc_images = NULL;</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>    <span class="keywordtype">double</span> min_exptime = 0;</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>    <span class="keywordtype">double</span> max_exptime = 0;</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>    <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>    <span class="comment">//char name[MAX_NAME_SIZE];</span></div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>    <span class="comment">//char pname[MAX_NAME_SIZE];</span></div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> </div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>    <span class="keywordtype">int</span> pr_num_x=4;</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>    <span class="keywordtype">int</span> pr_num_y=4;</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>    <span class="keywordtype">int</span> pr_box_sx=100;</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>    <span class="keywordtype">int</span> pr_box_sy=100;</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>    <span class="keyword">const</span> <span class="keywordtype">char</span>* STACK_METHOD=NULL;</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>    <span class="keywordtype">double</span> STACK_KLOW=0;</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>    <span class="keywordtype">double</span> STACK_KHIGH=0;</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>    <span class="keywordtype">int</span> STACK_NITER=0;</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> <span class="comment">/* check critical QC parameters to see if QC need to be computed or not */</span></div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> </div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_extract_basic_parameters_for_qc(parameters,recipe_id,</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>                                                     &pr_num_x,&pr_num_y, </div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                                                     &pr_box_sx,&pr_box_sy));</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> </div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> <span class="comment">/* parameters for stacking */</span></div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"stack_method"</span>, CPL_TYPE_STRING, &STACK_METHOD),</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span> </div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)STACK_METHOD);</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> </div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"klow"</span>, CPL_TYPE_DOUBLE, &STACK_KLOW),</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"khigh"</span>, CPL_TYPE_DOUBLE, &STACK_KHIGH),</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"niter"</span>, CPL_TYPE_INT, &STACK_NITER),</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> </div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> </div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> </div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     <span class="comment">/* First process each input image and store the results in a </span></div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> <span class="comment">       new image list */</span></div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     preproc_images = cpl_imagelist_new();</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_imagelist_get_size(raw_images); i++)</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     {</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>         <span class="keywordtype">double</span> exposure_time = 0.0;</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>         <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *current_header;</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>         </div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>         current_dark = cpl_image_duplicate(cpl_imagelist_get_const(raw_images, i));</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>         current_header = raw_headers[i];</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>                 </div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>         <span class="comment">/* Subtract master bias */</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>         <span class="keywordflow">if</span> (master_bias != NULL)</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>         {</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting master bias"</span>);</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils.html#gaab60ba58a3dc620bf79a91ebde2751b3" title="Subtract bias.">uves_subtract_bias</a>(current_dark, master_bias), </div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>                <span class="stringliteral">"Error subtracting master bias"</span>);</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> </div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>                     <span class="keywordflow">if</span> (<span class="keyword">false</span>) {</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Thresholding to non-negative values"</span>);</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_threshold(current_dark, </div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>                            0, DBL_MAX,     <span class="comment">/* Interval */</span></div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>                            0, DBL_MAX),    <span class="comment">/* New values */</span></div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>                <span class="stringliteral">"Error thresholding image"</span>);</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>                     }</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>         }</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>         {</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping bias subtraction"</span>);</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>         }</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>         </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( exposure_time = <a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(current_header), </div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>            <span class="stringliteral">"Error reading exposure time"</span>);</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> </div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>         <span class="keywordflow">if</span>(pr_num_x != 0 && pr_num_y != 0 && pr_box_sx != 0 && pr_box_sy !=0 ) {</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>         <span class="keywordflow">if</span>(do_qc == 0) {</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating QC parameters on raw dark frame %d"</span>,i);</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>           uves_mdark_region_qc(current_dark,parameters,raw_images,recipe_id,qclog);</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>     }</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> </div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>         }</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>         <span class="comment">/* Initialize/update min/max exposure time*/</span></div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>         <span class="keywordflow">if</span> (i == 0 || exposure_time < min_exptime)</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>         {</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>             min_exptime = exposure_time;</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>         }</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>         <span class="keywordflow">if</span> (i == 0 || exposure_time > max_exptime)</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>         {</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>             max_exptime = exposure_time;</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>         }</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>         <span class="comment">/* Do not normalize to unit exposure time */</span></div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> <span class="comment">/*        If this is uncommented, then remember to also calculate the</span></div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> <span class="comment">        correct master dark exposure time below.</span></div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> <span class="comment">            uves_msg("Normalizing from %f s to unit exposure time", exposure_time);</span></div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> <span class="comment">        check( cpl_image_divide_scalar(current_dark, exposure_time), </span></div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> <span class="comment">        "Error normalizing dark frame");   */</span>        </div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> </div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>         <span class="comment">/* Append to imagelist */</span></div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_imagelist_set(preproc_images,</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>                      current_dark,  </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                      i),            <span class="comment">/* Position (number_of_images=>append) */</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>            <span class="stringliteral">"Could not insert image into image list"</span>);</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>         </div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>         <span class="comment">/* Don't deallocate the image. It will be deallocated when</span></div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> <span class="comment">           the image list is deallocated */</span></div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>         current_dark = NULL;</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     }</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>     <span class="comment">/* Check exposure times */</span></div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Exposure times range from %e s to %e s (%e %% variation)"</span>, </div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>             min_exptime,</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>             max_exptime,</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>             100 * (max_exptime - min_exptime) / min_exptime);</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span> </div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     <span class="keywordflow">if</span> ((max_exptime - min_exptime) / min_exptime > .001)</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>     {</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Exposure times differ by %e %%"</span>, </div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>                  100 * (max_exptime - min_exptime) / min_exptime);</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>     }</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="comment">/* Get median stack of input darks */</span></div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     <span class="keywordflow">if</span>(strcmp(STACK_METHOD,<span class="stringliteral">"MEDIAN"</span>)==0) {</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>        <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating stack median"</span>);</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( master_dark = cpl_imagelist_collapse_median_create(preproc_images), </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>               <span class="stringliteral">"Error computing median"</span>);</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>        <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating stack mean"</span>);</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( master_dark = <a class="code" href="group__uves__utils.html#gad61bad9fe3d7614ebd9de472f600c6eb" title="Stack images using k-sigma clipping.">uves_ksigma_stack</a>(preproc_images,STACK_KLOW,</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>                                               STACK_KHIGH,STACK_NITER),</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>               <span class="stringliteral">"Error computing master dark"</span>);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span> </div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     } </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gae45226fec29767907871c9f34f61f61a" title="Write the exposure time.">uves_pfits_set_exptime</a>(mdark_header, (max_exptime + min_exptime)/2),</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>        <span class="stringliteral">"Error setting master dark exposure time"</span>);</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     </div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>   cleanup:</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>     uves_free_image(&current_dark);</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     uves_free_imagelist(&preproc_images);</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     {</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>         uves_free_image(&master_dark);</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     }</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>     </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>     <span class="keywordflow">return</span> master_dark;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> }</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span> </div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> UVES_CONCAT2X(UVES_MDARK_ID,exe)(cpl_frameset *frames, </div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>                    <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> {</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>     uves_mdark_exe_body(frames, parameters, starttime, make_str(UVES_MDARK_ID));</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span> }</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> </div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span> uves_mdark_exe_body(cpl_frameset *frames, </div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>             <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span> {</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     <span class="comment">/* Function id */</span></div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span> <span class="comment">     * Variables that will contain the values of the recipe parameters </span></div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     <span class="comment">/* None */</span></div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span> </div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>     <span class="comment">/* CPL objects */</span></div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>     <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>     cpl_imagelist *raw_images[2]       = {NULL, NULL};</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>  **raw_headers[2] = {NULL, NULL};    <span class="comment">/* Two arrays of pointers */</span></div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span> </div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     <span class="comment">/* Master bias */</span></div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     cpl_image *master_bias               = NULL;</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_bias_header = NULL;</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>     </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     cpl_table* qclog[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>     cpl_image *master_dark              = NULL;</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *product_header[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>     </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>     <span class="keywordtype">char</span> *product_filename = NULL;</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *product_tag[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>     <span class="keywordtype">bool</span> blue;</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span> </div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* pname=NULL;</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>    </div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> </div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>     <span class="keywordtype">int</span> pr_when=0;</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>     <span class="keywordtype">int</span> pr_num_x=0;</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>     <span class="keywordtype">int</span> pr_num_y=0;</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>     <span class="keywordtype">int</span> pr_box_sx=0;</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>     <span class="keywordtype">int</span> pr_box_sy=0;</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>     <span class="keywordtype">bool</span> dump_qc=<span class="keyword">true</span>;</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span> </div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>     <span class="comment">/* Load and check raw dark images and headers, identify arm (blue/red) */</span></div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>     <span class="comment">/* On success, 'raw_headers' will be an array with the same size as 'raw_images' */</span></div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>     <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_DARK(<span class="keyword">true</span> )) != NULL ||</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>     cpl_frameset_find(frames, UVES_DARK(<span class="keyword">false</span>)) != NULL)</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>     {</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_raw_imagelist(frames, </div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>                        <span class="keyword">false</span>,    <span class="comment">/* FLAMES format? */</span></div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>                        UVES_DARK(<span class="keyword">true</span>), UVES_DARK(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>                        CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>                        raw_images, raw_headers, product_header, </div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>                        &blue), <span class="stringliteral">"Error loading raw dark frames"</span>);</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>         </div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>         <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>          chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>         {</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>             product_tag[<a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip)] = UVES_MASTER_DARK(chip);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>         }</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>     }</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_PDARK(<span class="keyword">true</span> )) != NULL ||</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>          cpl_frameset_find(frames, UVES_PDARK(<span class="keyword">false</span>)) != NULL)</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>     {</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_raw_imagelist(frames, </div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>                        <span class="keyword">false</span>,  <span class="comment">/* FLAMES format? */</span></div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>                        UVES_PDARK(<span class="keyword">true</span>), UVES_PDARK(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>                        CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>                        raw_images, raw_headers, product_header, </div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>                        &blue), <span class="stringliteral">"Error loading raw dark frames"</span>);</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>         </div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>         <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue);</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>          chip != UVES_CHIP_INVALID;</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>         {</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>             product_tag[<a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip)] = UVES_MASTER_PDARK(chip);</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>         }</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>     }</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>     {</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>         assure(<span class="keyword">false</span>, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>            <span class="stringliteral">"Missing input dark frame: %s, %s, %s or %s expected"</span>,</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>            UVES_DARK(<span class="keyword">true</span>) , UVES_DARK(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>            UVES_PDARK(<span class="keyword">true</span>), UVES_PDARK(<span class="keyword">false</span>));</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>     }</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span> </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span> </div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>   </div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_extract_basic_parameters_for_qc(parameters,recipe_id,</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>                                                     &pr_num_x,&pr_num_y, </div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>                                                     &pr_box_sx,&pr_box_sy));</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span> </div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>    <span class="keywordflow">if</span>(pr_num_x <=0 || pr_num_y <= 0 || pr_box_sx <=0 || pr_box_sy <= 0) {</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>       dump_qc=<span class="keyword">false</span>;</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>    }</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>     pname = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID, <span class="stringliteral">"reg.when"</span>);</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_parameter(parameters,NULL,recipe_id,pname,CPL_TYPE_INT,&pr_when), </div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>      <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>   </div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"process_chip"</span>, CPL_TYPE_STRING, &PROCESS_CHIP),</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> </div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span> </div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>     <span class="comment">/* Loop over one or two chips */</span></div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>     <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>          chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>         {</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span> </div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDU"</span>) == 0) {</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>       }</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> </div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *master_bias_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>         </div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>         <span class="keywordtype">int</span> raw_index = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>         </div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing %s chip"</span>,</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>              <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> </div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>         <span class="comment">/* Get chip name of first input frame */</span></div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( chip_name = <a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e" title="Find out the chip ID.">uves_pfits_get_chipid</a>(raw_headers[raw_index][0], chip));</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>         <span class="comment">/* Load master bias, set pointer to NULL if not present */</span></div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>         uves_free_image(&master_bias);</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>         uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>         <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_MASTER_BIAS(chip)) != NULL)</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>         {</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mbias(frames, chip_name,</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>                        &master_bias_filename, &master_bias, </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>                        &master_bias_header, chip), </div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>                <span class="stringliteral">"Error loading master bias"</span>);</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>             </div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master bias in '%s'"</span>, master_bias_filename);</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>         }</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>         {</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No master bias in SOF. Bias subtraction not done"</span>);</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>         }</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>         </div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>         <span class="comment">/* Process chip */</span></div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span> </div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span> </div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span> </div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>         uves_free_image(&master_dark);</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>     qclog[0] = <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(raw_headers[raw_index][0], chip);</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( master_dark = uves_mdark_process_chip(raw_images[raw_index], </div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>                              raw_headers[raw_index], </div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>                              master_bias,</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>                              product_header[raw_index],</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>                              parameters,recipe_id,</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>                                                      qclog[0],pr_when),</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>            <span class="stringliteral">"Error processing chip"</span>);</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span> </div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> </div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>         <span class="comment">/* Finished. Save */</span></div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>                 <span class="comment">/* Finished. Calculate QC parameters and save */</span></div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>         <span class="keywordflow">if</span>(pr_when==1) {</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating QC parameters on master dark frame"</span>);</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>           uves_mdark_region_qc(master_dark,parameters,</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                    raw_images[raw_index],recipe_id,qclog[0]);</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span> </div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>     }</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span> </div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>         <span class="comment">/* Insert into frame set */</span></div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Saving product"</span>);</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>         </div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>         cpl_free(product_filename);</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = uves_masterdark_filename(chip), <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span> </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>   </div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>                     master_dark,</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>                     CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>                     CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                     CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>                     product_filename,</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>                     product_tag[raw_index],</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                     raw_headers[raw_index][0],</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                     product_header[raw_index],</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>                     NULL,</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                     parameters,</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                     recipe_id,</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>                     PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,qclog,</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>                     starttime, dump_qc, </div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>                     UVES_ALL_STATS), </div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>            <span class="stringliteral">"Could not add master dark %s to frameset"</span>, product_filename);</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Master dark %s added to frameset"</span>, product_filename);</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>         <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span> </div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDL"</span>) == 0) {</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>       }</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>         </div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> </div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>     }<span class="comment">/* For each chip */</span></div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>   cleanup:</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>     <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>     <span class="keywordflow">if</span> (raw_images[0] != NULL)</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>     {</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>         <span class="keywordflow">for</span> (i = 0; i < cpl_imagelist_get_size(raw_images[0]); i++) </div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>         {</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>             <span class="keywordflow">if</span> (raw_headers[0] != NULL) uves_free_propertylist(&raw_headers[0][i]);</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>             <span class="keywordflow">if</span> (raw_headers[1] != NULL) uves_free_propertylist(&raw_headers[1][i]);</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>         }</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span> </div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>         cpl_free(raw_headers[0]); raw_headers[0] = NULL;</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>         cpl_free(raw_headers[1]); raw_headers[1] = NULL;</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>     }</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span> </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>     uves_free_imagelist(&raw_images[0]);</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>     uves_free_imagelist(&raw_images[1]);</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span> </div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>     <span class="comment">/* Master bias */</span></div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>     uves_free_image(&master_bias);</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>     uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> </div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>     uves_free_image(&master_dark);</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>     uves_free_propertylist(&product_header[0]);</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>     uves_free_propertylist(&product_header[1]);</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>     cpl_free(product_filename);</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>     uves_free(pname);</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span> }</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> </div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> </div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span> uves_mdark_region_qc(cpl_image* img, </div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>                      <span class="keyword">const</span> cpl_parameterlist* p,</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>                      <span class="keyword">const</span> cpl_imagelist* raw_images,</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span>* recipe_id,</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>                      cpl_table* qclog)</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> {</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span> </div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>   <span class="keywordtype">int</span> pr_num_x=4;</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>   <span class="keywordtype">int</span> pr_num_y=4;</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>   <span class="keywordtype">int</span> pr_box_sx=100;</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>   <span class="keywordtype">int</span> pr_box_sy=100;</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>   <span class="keywordtype">int</span> pr_border_x=100;</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>   <span class="keywordtype">int</span> pr_border_y=100;</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> </div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>   <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>   <span class="keywordtype">int</span> llx=0;</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>   <span class="keywordtype">int</span> lly=0;</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>   <span class="keywordtype">int</span> urx=0;</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>   <span class="keywordtype">int</span> ury=0;</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>   <span class="keywordtype">int</span> space_x=0;</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>   <span class="keywordtype">int</span> space_y=0;</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>   <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>   <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>   <span class="keywordtype">int</span> nraw=0;</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>   <span class="keywordtype">int</span> raw=0;</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>   <span class="keywordtype">char</span> name[MAX_NAME_SIZE];</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>   <span class="keywordtype">char</span> pname[MAX_NAME_SIZE];</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>   <span class="keywordtype">char</span> qc_key[MAX_NAME_SIZE];</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>   <span class="keywordtype">char</span> qc_com[MAX_NAME_SIZE];</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>   <span class="keywordtype">double</span> qc_avg=0;</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>   <span class="keywordtype">double</span> qc_med=0;</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>   <span class="keywordtype">double</span> qc_rms=0;</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>   <span class="keywordtype">double</span> qc_min=0;</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>   <span class="keywordtype">double</span> qc_max=0;</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>   cpl_table* qc_sto=NULL;</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>  </div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_extract_basic_parameters_for_qc(p,recipe_id,</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>                                                     &pr_num_x,&pr_num_y, </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>                                                     &pr_box_sx,&pr_box_sy));</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"pr_num_x=%d pr_num_y=%d pr_box_sx=%d pr_box_sy=%d"</span>,</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>           pr_num_x,pr_num_y,pr_box_sx,pr_box_sy);</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span> </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>   <span class="keywordflow">if</span>(pr_num_x <= 0 || pr_num_y <= 0 || pr_box_sx <= 0 || pr_box_sy <= 0) {</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>      <span class="keywordflow">return</span>; </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>   }</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>  </div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>   sprintf(name,<span class="stringliteral">"reg.border_x"</span>);</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>   sprintf(pname,<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID, name);</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_parameter(p,NULL,recipe_id,pname,CPL_TYPE_INT,&pr_border_x),</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>      <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> </div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>   sprintf(name,<span class="stringliteral">"reg.border_y"</span>);</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>   sprintf(pname,<span class="stringliteral">"%s.%s"</span>, UVES_QCDARK_ID, name);</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_parameter(p,NULL,recipe_id,pname,CPL_TYPE_INT,&pr_border_y),</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>      <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> </div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> </div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nraw=cpl_imagelist_get_size(raw_images));</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>                         <span class="stringliteral">"PRO DATANCOM"</span>,</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                         nraw,</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                         <span class="stringliteral">"Number of frames combined"</span>,</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>                         <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>   sx=cpl_image_get_size_x(img);</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>   sy=cpl_image_get_size_y(img);</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>   space_x=(int)((sx-2*pr_border_x)/pr_num_x);</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>   space_y=(int)((sy-2*pr_border_y)/pr_num_y);</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>   qc_sto=cpl_table_new(pr_num_x*pr_num_y);</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>   cpl_table_new_column(qc_sto,<span class="stringliteral">"MIN"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>   cpl_table_new_column(qc_sto,<span class="stringliteral">"MAX"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>   cpl_table_new_column(qc_sto,<span class="stringliteral">"AVG"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>   cpl_table_new_column(qc_sto,<span class="stringliteral">"MED"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>   cpl_table_new_column(qc_sto,<span class="stringliteral">"RMS"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> </div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>   <span class="keywordflow">for</span>(i=0;i<pr_num_x;i++) {</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>     llx=pr_border_x+i*space_x;</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>     urx=llx+pr_box_sx;</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span> </div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>     llx=(llx>0) ? llx:1;</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>     urx=(urx<=sx) ? urx:sx;</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> </div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>     <span class="keywordflow">for</span>(j=0;j<pr_num_y;j++) {</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>       lly=pr_border_y+j*space_y;</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>       ury=lly+pr_box_sy;</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> </div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>       lly=(lly>0) ? lly:1;</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>       ury=(ury<=sy) ? ury:sy;</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> </div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>       raw=i*pr_num_y+j;</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_min=cpl_image_get_min_window(img,llx,lly,urx,ury));</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>       qc_max=cpl_image_get_min_window(img,llx,lly,urx,ury);</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>       qc_avg=cpl_image_get_mean_window(img,llx,lly,urx,ury);</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>       qc_med=cpl_image_get_median_window(img,llx,lly,urx,ury);</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>       qc_rms=cpl_image_get_stdev_window(img,llx,lly,urx,ury);</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"QC on area [%d,%d:%d,%d]. Min %g Max %g Avg %g Med %g Rms %g"</span>,</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>            llx,lly,urx,ury,qc_min,qc_max,qc_avg,qc_med,qc_rms);</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> </div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>       sprintf(qc_key,<span class="stringliteral">"%s%d%d%s"</span>,<span class="stringliteral">"QC REG"</span>,i,j,<span class="stringliteral">" MIN"</span>);</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>       sprintf(qc_com,<span class="stringliteral">"%s%d%d"</span>,<span class="stringliteral">"Min of region [%d,%d]"</span>,i,j);</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_min,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_double(qc_sto,<span class="stringliteral">"MIN"</span>,raw,qc_min));</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> </div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>       sprintf(qc_key,<span class="stringliteral">"%s%d%d%s"</span>,<span class="stringliteral">"QC REG"</span>,i,j,<span class="stringliteral">" MAX"</span>);</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>       sprintf(qc_com,<span class="stringliteral">"%s%d%d"</span>,<span class="stringliteral">"Max of region [%d,%d]"</span>,i,j);</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_max,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_double(qc_sto,<span class="stringliteral">"MAX"</span>,raw,qc_max));</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> </div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>       sprintf(qc_key,<span class="stringliteral">"%s%d%d%s"</span>,<span class="stringliteral">"QC REG"</span>,i,j,<span class="stringliteral">" AVG"</span>);</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>       sprintf(qc_com,<span class="stringliteral">"%s%d%d"</span>,<span class="stringliteral">"Mean of region [%d,%d]"</span>,i,j);</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_avg,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_double(qc_sto,<span class="stringliteral">"AVG"</span>,raw,qc_avg));</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span> </div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>       sprintf(qc_key,<span class="stringliteral">"%s%d%d%s"</span>,<span class="stringliteral">"QC REG"</span>,i,j,<span class="stringliteral">" MED"</span>);</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>       sprintf(qc_com,<span class="stringliteral">"%s%d%d"</span>,<span class="stringliteral">"Median of region [%d,%d]"</span>,i,j);</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_med,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_double(qc_sto,<span class="stringliteral">"MED"</span>,raw,qc_med));</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> </div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>       sprintf(qc_key,<span class="stringliteral">"%s%d%d%s"</span>,<span class="stringliteral">"QC REG"</span>,i,j,<span class="stringliteral">" RMS"</span>);</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>       sprintf(qc_com,<span class="stringliteral">"%s%d%d"</span>,<span class="stringliteral">"Rms of region [%d,%d]"</span>,i,j);</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_rms,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_double(qc_sto,<span class="stringliteral">"RMS"</span>,raw,qc_rms));</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> </div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> </div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>     }</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>   }</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> </div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> </div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_min=cpl_table_get_column_min(qc_sto,<span class="stringliteral">"MIN"</span>));</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_max=cpl_table_get_column_max(qc_sto,<span class="stringliteral">"MIN"</span>));</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_avg=cpl_table_get_column_mean(qc_sto,<span class="stringliteral">"MIN"</span>));</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_med=cpl_table_get_column_median(qc_sto,<span class="stringliteral">"MIN"</span>));</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_rms=cpl_table_get_column_stdev(qc_sto,<span class="stringliteral">"MIN"</span>));</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span> </div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MIN MIN"</span>);</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Min of all Mins"</span>);</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_min,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> </div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MIN MAX"</span>);</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Max of all Mins"</span>);</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_max,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> </div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MIN AVG"</span>);</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Mean of all Mins"</span>);</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_avg,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span> </div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MIN MED"</span>);</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Median of all Mins"</span>);</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_med,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> </div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MIN RMS"</span>);</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Rms of all Mins"</span>);</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_rms,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> </div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> </div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span> </div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_min=cpl_table_get_column_min(qc_sto,<span class="stringliteral">"MAX"</span>));</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_max=cpl_table_get_column_max(qc_sto,<span class="stringliteral">"MAX"</span>));</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_avg=cpl_table_get_column_mean(qc_sto,<span class="stringliteral">"MAX"</span>));</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_med=cpl_table_get_column_median(qc_sto,<span class="stringliteral">"MAX"</span>));</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_rms=cpl_table_get_column_stdev(qc_sto,<span class="stringliteral">"MAX"</span>));</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span> </div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MAX MIN"</span>);</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Min of all Maxs"</span>);</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_min,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> </div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MAX MAX"</span>);</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Max of all Maxs"</span>);</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_max,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> </div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MAX AVG"</span>);</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Mean of all Maxs"</span>);</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_avg,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span> </div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MAX MED"</span>);</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Median of all Maxs"</span>);</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_med,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span> </div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MAX RMS"</span>);</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Rms of all Maxs"</span>);</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_rms,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span> </div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span> </div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_min=cpl_table_get_column_min(qc_sto,<span class="stringliteral">"AVG"</span>));</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_max=cpl_table_get_column_max(qc_sto,<span class="stringliteral">"AVG"</span>));</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_avg=cpl_table_get_column_mean(qc_sto,<span class="stringliteral">"AVG"</span>));</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_med=cpl_table_get_column_median(qc_sto,<span class="stringliteral">"AVG"</span>));</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_rms=cpl_table_get_column_stdev(qc_sto,<span class="stringliteral">"AVG"</span>));</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> </div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG AVG MIN"</span>);</div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Min of all Means"</span>);</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_min,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span> </div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG AVG MAX"</span>);</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Max of all Means"</span>);</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_max,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> </div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG AVG AVG"</span>);</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Mean of all Means"</span>);</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_avg,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> </div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG AVG MED"</span>);</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Median of all Means"</span>);</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_med,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> </div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG AVG RMS"</span>);</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Rms of all Means"</span>);</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_rms,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> </div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> </div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_min=cpl_table_get_column_min(qc_sto,<span class="stringliteral">"MED"</span>));</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_max=cpl_table_get_column_max(qc_sto,<span class="stringliteral">"MED"</span>));</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_avg=cpl_table_get_column_mean(qc_sto,<span class="stringliteral">"MED"</span>));</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_med=cpl_table_get_column_median(qc_sto,<span class="stringliteral">"MED"</span>));</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_rms=cpl_table_get_column_stdev(qc_sto,<span class="stringliteral">"MED"</span>));</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> </div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MED MIN"</span>);</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Min of all Medians"</span>);</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_min,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> </div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MED MAX"</span>);</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Max of all Medians"</span>);</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_max,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> </div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MED AVG"</span>);</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Mean of all Medians"</span>);</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_avg,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span> </div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MED MED"</span>);</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Median of all Medians"</span>);</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_med,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> </div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG MED RMS"</span>);</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Rms of all Medians"</span>);</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_rms,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> </div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span> </div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_min=cpl_table_get_column_min(qc_sto,<span class="stringliteral">"RMS"</span>));</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_max=cpl_table_get_column_max(qc_sto,<span class="stringliteral">"RMS"</span>));</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_avg=cpl_table_get_column_mean(qc_sto,<span class="stringliteral">"RMS"</span>));</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_med=cpl_table_get_column_median(qc_sto,<span class="stringliteral">"RMS"</span>));</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(qc_rms=cpl_table_get_column_stdev(qc_sto,<span class="stringliteral">"RMS"</span>));</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span> </div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span> </div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG RMS MIN"</span>);</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Min of all Rms"</span>);</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_min,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span> </div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG RMS MAX"</span>);</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Max of all Rms"</span>);</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_max,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> </div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG RMS AVG"</span>);</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Mean of all Rms"</span>);</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_avg,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span> </div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG RMS MED"</span>);</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Median of all Rms"</span>);</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_med,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> </div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>   sprintf(qc_key,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"QC REG RMS RMS"</span>);</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>   sprintf(qc_com,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"Rms of all Rms"</span>);</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,qc_rms,qc_com,<span class="stringliteral">"%g"</span>));</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span> </div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span> </div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span> </div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span> </div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>  cleanup:</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>   uves_free_table(&qc_sto);</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span> </div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span> </div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> }</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> </div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__mdark__impl_8h_source.html b/html/uves__mdark__impl_8h_source.html
deleted file mode 100644
index 1e52926..0000000
--- a/html/uves__mdark__impl_8h_source.html
+++ /dev/null
@@ -1,126 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_mdark_impl.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_mdark_impl.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:03 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.6 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.4  2010/06/11 11:39:47  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * add uves_qcdark_define_parameters_body(), uves_mdark_define_qc_parameters()</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.3  2007/08/17 10:07:41  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * added uves_qcdark_define_parameters()</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.2  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.1  2007/02/09 13:38:09  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Enable calling from uves_cal_mkmaster</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/11/13 12:47:42  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Don't subtract background for FLAMES reduction</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/09/27 13:22:43  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Factored out flat reduction</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#ifndef UVES_MDARK_IMPL_H</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MDARK_IMPL_H</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> uves_qcdark_define_parameters_body(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>                                    <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> uves_mdark_exe_body(cpl_frameset *frames, </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>             <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> cpl_parameterlist *</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> uves_qcdark_define_parameters(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> cpl_error_code </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> uves_mdark_define_qc_parameters(cpl_parameterlist* parameters);</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#endif  </span><span class="comment">/* UVES_MDARK_IMPL_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__merge_8c_source.html b/html/uves__merge_8c_source.html
deleted file mode 100644
index 603da8d..0000000
--- a/html/uves__merge_8c_source.html
+++ /dev/null
@@ -1,816 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_merge.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_merge.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-04-16 15:46:57 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.65 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Revision 1.64  2013/04/05 08:02:31  amodigli</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> * changed WAVELENGTH to AWAV to be FITS compliant</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Revision 1.63  2012/05/02 06:08:32  amodigli</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> * replace Ang by Angstrom</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Revision 1.62  2012/03/02 16:53:31  amodigli</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> * fixed warning related to upgrade to CPL6</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Revision 1.61  2011/12/08 14:03:09  amodigli</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> * Fix warnings with CPL6</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Revision 1.60  2010/12/16 16:57:40  amodigli</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> * fixed compiler warnings</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Revision 1.59  2010/12/08 11:07:59  amodigli</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> * added chip parameter to uves_merge_orders() to have proper filenames. Fixed content err data for noappend case</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Revision 1.58  2010/09/27 06:32:22  amodigli</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> * fixed mem leaks</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Revision 1.57  2010/09/24 09:32:04  amodigli</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Revision 1.55  2010/06/07 09:48:00  amodigli</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> * changed units: A-->Ang, FLUX-->ADU</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Revision 1.54  2010/06/01 16:06:55  amodigli</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> * added unit [A] to reduced product</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Revision 1.53  2008/09/29 06:57:41  amodigli</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Revision 1.52  2008/09/27 16:05:12  amodigli</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> * fixed bug using delta parmeters</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Revision 1.51  2008/09/23 11:32:39  amodigli</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * added check on array upper bound access to fix DFS05803</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.50  2008/08/29 09:52:39  amodigli</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * fixed compiler warning</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Revision 1.49  2008/06/26 08:30:38  amodigli</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * fixed bug in setting delta</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Revision 1.48  2008/06/11 14:42:50  amodigli</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * fixed seg fault</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Revision 1.45  2008/03/04 07:35:31  amodigli</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * generate spectra of each order only if NOAPPEND</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Revision 1.44  2008/02/21 07:50:38  amodigli</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> * added method NOAPPEND</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Revision 1.43  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Revision 1.42  2007/06/21 11:28:57  jmlarsen</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * Added support for type float (for FLAMES)</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Revision 1.41  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Revision 1.40  2007/05/03 15:21:13  jmlarsen</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * Decreased output message verbosity</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.39  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Revision 1.38  2007/02/09 08:57:54  jmlarsen</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> * Include <float.h></span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Revision 1.37  2007/02/09 08:14:16  jmlarsen</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> * Do not use CPL_PIXEL_MAXVAL which works only for integer images</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Revision 1.36  2007/02/08 07:34:28  jmlarsen</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> * Minor doc change</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Revision 1.35  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Revision 1.33  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> * Revision 1.32  2006/11/13 14:23:55  jmlarsen</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Removed workarounds for CPL const bugs</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> * Revision 1.31  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * Revision 1.30  2006/09/11 14:00:11  jmlarsen</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Minor documentation change</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Revision 1.29  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * Revision 1.28  2006/08/17 09:16:47  jmlarsen</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Removed CPL2 code</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * Revision 1.27  2006/08/11 14:37:59  jmlarsen</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Added input validation</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * Revision 1.26  2006/08/10 10:50:12  jmlarsen</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Removed workaround for cpl_image_get_bpm</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> * Revision 1.25  2006/07/03 13:16:42  jmlarsen</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Reduced number of significant digits in message</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * Revision 1.24  2006/04/06 08:38:56  jmlarsen</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Changed char* -> const char* for static string</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Revision 1.23  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * Revision 1.22  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Revision 1.21  2006/01/31 08:24:29  jmlarsen</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Wrapper for cpl_image_get_bpm</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> * Revision 1.20  2006/01/25 16:13:20  jmlarsen</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Changed interface of gauss.fitting routine</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * Revision 1.19  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Revision 1.18  2005/12/16 14:22:23  jmlarsen</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Removed midas test data; Added sof files</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Revision 1.17  2005/11/24 15:09:06  jmlarsen</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Implemented 2d extraction/rebinning/merging</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Revision 1.16  2005/11/24 11:54:46  jmlarsen</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> * Added support for CPL 3 interface</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * Revision 1.15  2005/11/18 10:52:06  jmlarsen</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> * Split into optimal/sum merge methods</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> * Revision 1.14  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="preprocessor">#include <uves_merge.h></span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> cpl_image *</div>
-<div class="line"><a name="l00239"></a><span class="lineno"><a class="code" href="group__uves__merge.html#gad20fc9888b15052d53d15c7fd2041181">  239</a></span> <a class="code" href="group__uves__merge.html#gad20fc9888b15052d53d15c7fd2041181" title="Merge orders.">uves_merge_orders</a>(<span class="keyword">const</span> cpl_image *spectrum, </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>                   <span class="keyword">const</span> cpl_image *spectrum_noise,</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>                   <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *spectrum_header,</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>                   merge_method m_method,</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>                   <span class="keywordtype">int</span> n_traces,</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **merged_header,</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> delt1, </div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> delt2,</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>                   <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>                   cpl_image **merged_noise)</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> {</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     cpl_image *merged = NULL;    <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *spectrum_data_double = NULL;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="keyword">const</span> <span class="keywordtype">float</span>  *spectrum_data_float  = NULL;</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <span class="keyword">const</span> cpl_mask *spectrum_badmap    = NULL;</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     <span class="keyword">const</span> cpl_binary *spectrum_bad     = NULL;</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data_double = NULL;</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     <span class="keyword">const</span> <span class="keywordtype">float</span> *noise_data_float   = NULL;</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <span class="keyword">const</span> cpl_mask *noise_badmap    = NULL;</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     <span class="keyword">const</span> cpl_binary *noise_bad     = NULL;</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     cpl_type type;               <span class="comment">/* input/output images type */</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     <span class="keywordtype">int</span> nbins, ny, norders;          <span class="comment">/* Input image size. ny = norders*n_traces */</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     <span class="keywordtype">double</span> wavestep;</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     <span class="keywordtype">int</span> bin_min = 0, bin_max = 0;    <span class="comment">/* wavelength of min/max bin in units of 'wavestep' */</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     <span class="keywordtype">int</span> total_bins;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     <span class="keywordtype">int</span> order, trace;</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     <span class="keywordtype">int</span> spectrum_sx=0;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     <span class="keywordtype">int</span> spectrum_sy=0;</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     <span class="keywordtype">double</span> delt1_bin=0;</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     <span class="keywordtype">double</span> delt2_bin=0;</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     <span class="keywordtype">char</span>* filename=NULL;</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     cpl_vector* image_1d=NULL;</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* hext=NULL;</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     <span class="comment">//double med_noise=0;</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( spectrum != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( spectrum_noise != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( spectrum_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( merged_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( merged_noise != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     assure( m_method == MERGE_OPTIMAL || </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>             m_method == MERGE_SUM || </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>             m_method == MERGE_NOAPPEND, </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>             CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>             <span class="stringliteral">"Unknown merge method: %d"</span>, m_method);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     assure( cpl_image_get_type(spectrum) == CPL_TYPE_DOUBLE ||</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>             cpl_image_get_type(spectrum) == CPL_TYPE_FLOAT,</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>             CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>             <span class="stringliteral">"Spectrum must have type double or float. It is '%s'"</span>,</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>             <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(spectrum)));</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     assure( cpl_image_get_type(spectrum_noise) == CPL_TYPE_DOUBLE ||</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>             cpl_image_get_type(spectrum_noise) == CPL_TYPE_FLOAT,</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>             CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>             <span class="stringliteral">"Spectrum noise must have type double. It is '%s'"</span>,</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>             <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(spectrum_noise)));</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     assure( cpl_image_get_type(spectrum) ==</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>             cpl_image_get_type(spectrum_noise),</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>             CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>             <span class="stringliteral">"Spectrum and spectrum noise must have same type. They are "</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>             <span class="stringliteral">"%s and %s, respectively"</span>,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>             <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(spectrum)),</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>             <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(spectrum_noise)) );</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     type = cpl_image_get_type(spectrum);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="comment">/* Read input spectrum geometry */</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     nbins           = cpl_image_get_size_x(spectrum);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     ny              = cpl_image_get_size_y(spectrum);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     assure( cpl_image_get_size_x(spectrum_noise) == nbins &&</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>             cpl_image_get_size_y(spectrum_noise) == ny,</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>             CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>             <span class="stringliteral">"Incompatible spectrum/noise image sizes: %dx%d vs. %"</span> CPL_SIZE_FORMAT <span class="stringliteral">"x%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>             nbins, ny,</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>             cpl_image_get_size_x(spectrum_noise),</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>             cpl_image_get_size_y(spectrum_noise) );</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     assure( ny % n_traces == 0, CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>             <span class="stringliteral">"Spectrum image height (%d) is not a multiple of "</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>             <span class="stringliteral">"the number of traces (%d). Confused, bailing out"</span>,</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>             ny, n_traces);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     norders         = ny / n_traces;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( wavestep = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(spectrum_header),</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>        <span class="stringliteral">"Error reading bin width"</span>);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     <span class="comment">/* Get data pointers (for efficiency) */</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>    </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     <span class="keywordflow">if</span> (type == CPL_TYPE_DOUBLE) {</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>         spectrum_data_double   = cpl_image_get_data_double_const(spectrum);</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     }</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>         spectrum_data_float   = cpl_image_get_data_float_const(spectrum);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     }</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     spectrum_sx=cpl_image_get_size_x(spectrum);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     spectrum_sy=cpl_image_get_size_y(spectrum);</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     spectrum_badmap = cpl_image_get_bpm_const(spectrum);</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     spectrum_bad    = cpl_mask_get_data_const(spectrum_badmap);</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     <span class="keywordflow">if</span> (type == CPL_TYPE_DOUBLE) {</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>         noise_data_double = cpl_image_get_data_double_const(spectrum_noise);        </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     }</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>         noise_data_float  = cpl_image_get_data_float_const(spectrum_noise);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     }</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     noise_badmap = cpl_image_get_bpm_const(spectrum_noise);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     noise_bad    = cpl_mask_get_data_const(noise_badmap);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"delt1=%f delt2=%f"</span>,delt1,delt2);</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     <span class="comment">/* Read max/min lambda */</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <span class="keywordflow">for</span> (order = 1; order <= norders; order++)</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     {</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>         <span class="keywordtype">double</span> wstart, wend;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( wstart = <a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203" title="Read the wstart keyword.">uves_pfits_get_wstart</a>(spectrum_header, order),</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>            <span class="stringliteral">"Error reading start wavelength for order #%d"</span>, order);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( wend = <a class="code" href="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595" title="Read the wend keyword.">uves_pfits_get_wend</a>(spectrum_header, order),</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>            <span class="stringliteral">"Error reading end wavelength for order #%d"</span>, order);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>         </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order #%d: wstart - wend = %f - %f wlu"</span>, order, wstart, wend);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     <span class="comment">//wstart+=delt1;</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     <span class="comment">//wend-=delt2;</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>         <span class="keywordflow">if</span> (order == 1)</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>         {</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>             bin_min = uves_round_double(wstart/wavestep);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>             bin_max = uves_round_double(wend  /wavestep);</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>         }</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>         </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>         bin_min = uves_min_int(bin_min, uves_round_double(wstart/wavestep));</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>         bin_max = uves_max_int(bin_max, uves_round_double(wend  /wavestep));</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     }</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     total_bins = (bin_max - bin_min) + 1;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Merging orders into %d bins covering wavelengths %.3f - %.3f wlu"</span>, </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>             total_bins, bin_min * wavestep, bin_max * wavestep);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     <span class="comment">/* Initialize spectrum to zero and noise to negative */</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     <span class="keywordflow">if</span>(m_method == MERGE_NOAPPEND) {</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>       merged        = cpl_image_new(total_bins, n_traces*norders, type);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>       *merged_noise = cpl_image_new(total_bins, n_traces*norders, type);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>       merged        = cpl_image_new(total_bins, n_traces, type);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>       *merged_noise = cpl_image_new(total_bins, n_traces, type);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     }</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>     cpl_image_add_scalar(*merged_noise, -1.0);</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="comment">//cpl_image_power(spectrum_noise,0.5);</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     <span class="comment">//cpl_image_multiply_scalar(spectrum_noise,0.25);</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     <span class="comment">/* Distribute input in output bins */</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     <span class="keywordflow">for</span> (order = 1; order <= norders; order++)</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     {</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>         <span class="keywordtype">double</span> wstart, wend;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>         <span class="keywordtype">int</span> wstart_bin, wend_bin;      <span class="comment">/* In 1d space */</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( wstart = <a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203" title="Read the wstart keyword.">uves_pfits_get_wstart</a>(spectrum_header, order),</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>            <span class="stringliteral">"Error reading start wavelength for order #%d"</span>, order);</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>         </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( wend = <a class="code" href="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595" title="Read the wend keyword.">uves_pfits_get_wend</a>(spectrum_header, order),</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>            <span class="stringliteral">"Error reading end wavelength for order #%d"</span>, order);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     <span class="comment">//wstart+=delt1;</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     <span class="comment">//wend-=delt2;</span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>         </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>         wstart_bin = uves_round_double(wstart/wavestep);</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>         wend_bin   = uves_round_double(wend/wavestep);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>         delt1_bin  = uves_round_double(delt1/wavestep);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>         delt2_bin  = uves_round_double(delt2/wavestep);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>         </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     <span class="keywordtype">int</span> bin_min_ord = uves_round_double(wstart/wavestep);</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     <span class="keywordtype">int</span> bin_max_ord = uves_round_double(wend  /wavestep);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>         <span class="keywordtype">int</span> nbins_ord = (bin_max_ord - bin_min_ord) + 1;</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>       cpl_image* merged_ord=NULL;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>       cpl_image * noise_ord=NULL;</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> </div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     <span class="keywordflow">if</span>(m_method == MERGE_NOAPPEND) {</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>       merged_ord = cpl_image_new(nbins_ord, n_traces, type);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>       noise_ord = cpl_image_new(nbins_ord, n_traces, type);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     }</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>         <span class="comment">//if(order>1 && order<norders) {</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     <span class="comment">//  med_noise=cpl_image_get_median_window(spectrum_noise,</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     <span class="comment">//                  1,order,ny,order);</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     <span class="comment">//} else {</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     <span class="comment">//  med_noise=cpl_image_get_median(spectrum_noise);</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     <span class="comment">//}</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>         <span class="comment">/* Loop over spatial traces (only 1 trace, unless extraction was 2d) */</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>         <span class="keywordflow">for</span> (trace = 1; trace <= n_traces; trace++)</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>         {</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>       <span class="keywordtype">int</span> merged_row = 0;</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>       <span class="keywordtype">int</span> spectrum_row = (order - 1)*n_traces + trace;</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>       <span class="keywordflow">if</span>(m_method == MERGE_NOAPPEND) {</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>         merged_row = (order - 1)*n_traces + trace;</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>         merged_row = trace;</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>       }</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>             <span class="keywordtype">int</span> rel_bin;                   <span class="comment">/* Counting columns in input spectrum */</span></div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>             </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>             <span class="keywordflow">for</span> (rel_bin = 1+delt1_bin; </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                  (rel_bin <= wend_bin - wstart_bin + 1-delt2_bin) &&</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>                  (rel_bin <(spectrum_sx*spectrum_sy+1-(spectrum_row-1)*nbins));</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                  rel_bin++)</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>             {</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                 <span class="keywordtype">double</span> flux, noise;</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>                 <span class="keywordtype">double</span> current_flux, new_flux;</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>                 <span class="keywordtype">double</span> current_noise, new_noise;</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>                 <span class="keywordtype">double</span> weight;</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>                 <span class="keywordtype">int</span> pis_rejected, noise_rejected;</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>                 </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>                 <span class="comment">/* merged_bin = (offset of order)  +  (offset inside order) */</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>                 <span class="keywordtype">int</span> merged_bin = (wstart_bin - bin_min) + rel_bin;</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                 <span class="keywordtype">int</span> merged_bin_ord = rel_bin;</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>                 </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                 <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(1 <= merged_bin && merged_bin <= total_bins,</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                     <span class="stringliteral">"%d %d %d"</span>, rel_bin, merged_bin, total_bins);</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>                 </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                 <span class="comment">/* This is slow:</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> <span class="comment">                   check( flux  = cpl_image_get(spectrum      , </span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> <span class="comment">                          rel_bin, spectrum_row, &pis_rejected);</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> <span class="comment">                   noise = cpl_image_get(spectrum_noise, rel_bin, </span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> <span class="comment">                    spectrum_row, &noise_rejected),</span></div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> <span class="comment">                   "Error reading input spectrum");</span></div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>                 </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>                 <span class="keywordflow">if</span> (type == CPL_TYPE_DOUBLE) {</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>                     flux  = spectrum_data_double[(rel_bin-1) + (spectrum_row-1) * nbins];</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>                     noise = noise_data_double   [(rel_bin-1) + (spectrum_row-1) * nbins];</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>                 }</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>                     flux  = spectrum_data_float[(rel_bin-1) + (spectrum_row-1) * nbins];</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>                     noise = noise_data_float   [(rel_bin-1) + (spectrum_row-1) * nbins];</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>                 }</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> </div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>                 pis_rejected   = spectrum_bad[(rel_bin-1) + (spectrum_row-1) * nbins];</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>                 noise_rejected = noise_bad   [(rel_bin-1) + (spectrum_row-1) * nbins];</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>                 </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>                 <span class="keywordflow">if</span> (!pis_rejected && !noise_rejected)</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>                 {</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> </div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>           <span class="keywordflow">if</span>(m_method == MERGE_NOAPPEND) {</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( current_flux  = cpl_image_get(merged, </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>                                                           merged_bin, </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>                                                           merged_row, </div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>                               &pis_rejected),</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>                 current_noise = cpl_image_get(*merged_noise, </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>                               merged_bin, </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>                                                           merged_row, </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>                               &pis_rejected)),</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>               <span class="stringliteral">"Error reading merged spetrum"</span>);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>           } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( current_flux  = cpl_image_get(</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>                         merged      , merged_bin, trace, &pis_rejected),</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>                         current_noise = cpl_image_get(</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>                         *merged_noise, merged_bin, trace, &pis_rejected)),</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>                        <span class="stringliteral">"Error reading merged spetrum"</span>);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>           }</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>           weight = 1/(noise*noise);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>                     </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>                     <span class="comment">/*</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="comment">                     * Optimal formulas for Variance and Flux are</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment">                     *</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="comment">                     *   Vn = ( 1/sigma1^2 + ... +  1/sigmaN^2)^-1</span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="comment">                     *   Fn = (f1/sigma1^2 + ... + fN/sigmaN^2) * Vn</span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="comment">                     *</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="comment">                     * Update by using these recurrence relations</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="comment">                     *</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">                     *   Fn+1 = (Fn/Vn + fn+1/(sigma_{n+1})^2) * Vn+1  for n > 1</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="comment">                     *   Vn+1 = (Vn^-1 + 1/(sigma_{n+1})^2)^-1  for n > 1</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="comment">                     *</span></div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="comment">                     *</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> <span class="comment">                     *  In the case of method = sum,</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <span class="comment">                     *</span></div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> <span class="comment">                     *  Vn = sigma1^2 + ... + sigmaN^2</span></div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> <span class="comment">                     *  Fn = f1 + ... + fN</span></div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> <span class="comment">                     *</span></div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <span class="comment">                     */</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>                     </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>                     <span class="keywordflow">if</span> (current_noise > 0)</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>                     {</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>                         <span class="keywordflow">if</span> (m_method == MERGE_OPTIMAL)</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>                         {</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>                             new_noise  = 1/(current_noise*current_noise);</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>                             new_noise += weight;</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>                             new_noise  = 1/sqrt(new_noise);</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>                         }</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>                         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (m_method == MERGE_SUM)</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>                         {</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>                             new_noise = sqrt(current_noise*current_noise</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>                                      + noise*noise);</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>                         }</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>                         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (m_method == MERGE_NOAPPEND)</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>                         {</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>                             new_noise = current_noise;</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>                         }</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>                         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>                         {</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>                             <span class="comment">/* Impossible */</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>                             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <span class="keyword">false</span>, <span class="stringliteral">"%d"</span>, m_method);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>                         }</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>                     }</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                     {</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                         <span class="comment">/* First time in this bin */</span></div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                         new_noise = noise;</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                     }</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>                     </div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>                     <span class="keywordflow">if</span> (current_noise > 0)</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>                     {</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>                         <span class="keywordflow">if</span> (m_method == MERGE_OPTIMAL)</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>                         {</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>                             new_flux = (current_flux / </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>                                 (current_noise*current_noise)</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>                                 + flux * weight) * </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>                             (new_noise*new_noise);</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>                         }</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>                         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (m_method == MERGE_SUM)</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>                         {</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>                             new_flux = current_flux + flux;</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>                         }</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (m_method == MERGE_NOAPPEND)</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>               {</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>                             new_flux = flux;</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>               }</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>                         {</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>                             <span class="comment">/* Impossible */</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>                             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <span class="keyword">false</span>, <span class="stringliteral">"%d"</span>, m_method);</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>                         }</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>                     }</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>                     {</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>                         new_flux = flux;</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>                     }</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>                     </div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>           <span class="keywordflow">if</span>(m_method == MERGE_NOAPPEND) {</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> </div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>             <span class="comment">/*</span></div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> <span class="comment">              uves_msg_warning("flux[%d,%d]=%g noise=%g",</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> <span class="comment">                       merged_bin,merged_row,</span></div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> <span class="comment">                       new_flux,current_noise);</span></div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>                      merged, </div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>                                          merged_bin, </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>                                          merged_row, </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>                                          new_flux),</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>                        <span class="stringliteral">"Error updating merged spectrum"</span>);</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                      *merged_noise, </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                                           merged_bin, </div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                      merged_row, </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                                          new_noise),</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                        <span class="stringliteral">"Error updating weights"</span>);</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span> </div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> </div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>                      merged_ord, </div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>                                          merged_bin_ord, </div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>                                          trace, </div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>                                          new_flux),</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                        <span class="stringliteral">"Error updating merged spectrum"</span>);</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> </div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>                      noise_ord, </div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>                                          merged_bin_ord, </div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>                                          trace, </div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>                                          new_noise),</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                        <span class="stringliteral">"Error updating merged spectrum"</span>);</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span> </div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> </div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>           } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>                            merged      , merged_bin, trace, new_flux),</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>                        <span class="stringliteral">"Error updating merged spectrum"</span>);</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>                            *merged_noise, merged_bin, trace, new_noise),</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>                        <span class="stringliteral">"Error updating weights"</span>);</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>           }</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> <span class="comment">/*            uves_msg("Input flux = %e +- %e ;  </span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> <span class="comment">            Binned flux changed from %e +- %e to %e +- %e",</span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> <span class="comment">            flux, noise,</span></div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> <span class="comment">            current_flux, current_noise, new_flux, new_noise);*/</span></div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>                     </div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>                 } <span class="comment">/* If pixel is good ... */</span></div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> </div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>             } <span class="comment">/* For each input bin */</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> </div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>         }<span class="comment">/* For trace ... */</span></div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> </div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     <span class="keywordflow">if</span> (merged_header == NULL)</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>         {</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>            uves_free_propertylist(merged_header);</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>            <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *merged_header = <a class="code" href="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37" title="Initialize image header.">uves_initialize_image_header</a>(</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>                      <span class="stringliteral">"AWAV"</span>, (n_traces > 1) ? <span class="stringliteral">"PIXEL"</span> : <span class="stringliteral">" "</span>,</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>                      <span class="stringliteral">"Angstrom"</span>, (n_traces > 1) ? <span class="stringliteral">"PIXEL"</span> : NULL, </div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>                      <span class="stringliteral">"ADU"</span>,0,</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>                      bin_min_ord * wavestep, 1.0,</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>                      1.0, 1.0,</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>                      wavestep, 1.0),</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>                   <span class="stringliteral">"Error initializing merged spectrum header"</span>);</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>         }</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> </div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>         <span class="keywordflow">if</span>(m_method == MERGE_NOAPPEND) {</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>            filename=uves_sprintf(<span class="stringliteral">"merged_data_noappend_%s.fits"</span>,</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>                            <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>            image_1d = cpl_vector_wrap(cpl_image_get_size_x(merged_ord),</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>                                       cpl_image_get_data_double(merged_ord));</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>            uves_free_propertylist(&hext);</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>            hext=<a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>            uves_propertylist_append_double(hext,<span class="stringliteral">"CRVAL1"</span>,wstart-delt1);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>            uves_propertylist_append_double(hext,<span class="stringliteral">"CDELT1"</span>,wavestep);</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>            uves_propertylist_append_double(hext,<span class="stringliteral">"CRPIX1"</span>,0);</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> </div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>            <span class="keywordflow">if</span>(order==1) {</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>             uves_vector_save(image_1d,filename,CPL_BPP_IEEE_FLOAT,hext, </div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                                     CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>            } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>             uves_vector_save(image_1d,filename,CPL_BPP_IEEE_FLOAT,hext, </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>                                     CPL_IO_EXTEND);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>            }</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>            cpl_vector_unwrap(image_1d);</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> </div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>            image_1d = cpl_vector_wrap(cpl_image_get_size_x(noise_ord),</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>                                       cpl_image_get_data_double(noise_ord));</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> </div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>            uves_free(filename);</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>       </div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>            filename=uves_sprintf(<span class="stringliteral">"merged_sigma_noappend_%s.fits"</span>,</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                                  <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>            <span class="keywordflow">if</span>(order==1) {</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>             uves_vector_save(image_1d,filename,CPL_BPP_IEEE_FLOAT,hext, </div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>                                     CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>            } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>             uves_vector_save(image_1d,filename,CPL_BPP_IEEE_FLOAT,hext, </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>                                     CPL_IO_EXTEND);</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>            }</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>            cpl_vector_unwrap(image_1d);</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> </div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>            uves_free(filename);</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>            uves_free_image(&merged_ord);</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>            uves_free_image(&noise_ord);</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>            uves_free_propertylist(&hext);</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>            uves_free_propertylist(merged_header);</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>         }</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span> </div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     }<span class="comment">/* For order ... */</span></div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     </div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     <span class="comment">/* Undefined bins have  (flux, noise) = (0, -1)  (the initial values).</span></div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span> <span class="comment">     * Set to (flux, noise) = (0, 1)</span></div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span> </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span> <span class="comment">/* Here commented out piece of code to be used eventually to have</span></div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> <span class="comment">   noappend files files as products</span></div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> <span class="comment">    if(m_method == MERGE_NOAPPEND) {</span></div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> <span class="comment">       cpl_frame* mdata_noappend=NULL;</span></div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span> <span class="comment">       cpl_frame* msigma_noappend=NULL;</span></div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span> <span class="comment">       mdata_noappend=cpl_frame_new();</span></div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> <span class="comment">       msigma_noappend=cpl_frame_new();</span></div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> <span class="comment">       cpl_frame_set_group(mdata_noappend,CPL_FRAME_GROUP_PRODUCT);</span></div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> <span class="comment">       cpl_frame_set_type(mdata_noappend,CPL_FRAME_TYPE_IMAGE);</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> <span class="comment">       cpl_frame_set_level(mdata_noappend,CPL_FRAME_LEVEL_FINAL);</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> <span class="comment"></span></div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> <span class="comment">       tag=uves_sprintf("MERGED_SCI_NOAPPEND_%s",</span></div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> <span class="comment">                             uves_chip_tostring_upper(chip));</span></div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> <span class="comment">       filename=uves_sprintf("%s_%s.fits",tag,uves_chip_tostring_upper(chip));</span></div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span> <span class="comment">       cpl_frame_set_tag(mdata_noappend,tag);</span></div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> <span class="comment">       cpl_frame_set_filename(mdata_noappend,filename);</span></div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span> <span class="comment">       uves_free(filename);</span></div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> <span class="comment">       uves_free(tag);</span></div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> <span class="comment"></span></div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> <span class="comment">       cpl_frame_set_group(msigma_noappend,CPL_FRAME_GROUP_PRODUCT);</span></div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> <span class="comment">       cpl_frame_set_type(msigma_noappend,CPL_FRAME_TYPE_IMAGE);</span></div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span> <span class="comment">       cpl_frame_set_level(msigma_noappend,CPL_FRAME_LEVEL_FINAL);</span></div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> <span class="comment"></span></div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> <span class="comment">       tag=uves_sprintf("MERGED_ERR_NOAPPEND_%s",</span></div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span> <span class="comment">                             uves_chip_tostring_upper(chip));</span></div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> <span class="comment">       filename=uves_sprintf("%s_%s.fits",tag,uves_chip_tostring_upper(chip));</span></div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span> <span class="comment">       cpl_frame_set_tag(msigma_noappend,tag);</span></div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> <span class="comment">       cpl_frame_set_filename(msigma_noappend,filename);</span></div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> <span class="comment"></span></div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> <span class="comment">       uves_free_frame(&mdata_noappend);</span></div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> <span class="comment">       uves_free_frame(&msigma_noappend);</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> <span class="comment">       uves_free(filename);</span></div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span> <span class="comment">       uves_free(tag);</span></div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span> <span class="comment"></span></div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> <span class="comment">    }</span></div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_threshold(*merged_noise, </div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>                    0, DBL_MAX,        <span class="comment">/* Outside this interval */</span></div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>                    1, 1),             <span class="comment">/* Set to these values   */</span></div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>        <span class="stringliteral">"Error setting undefined noise"</span>);</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>  </div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>     </div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>     <span class="keywordflow">if</span> (merged_header != NULL)</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     {</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *merged_header = <a class="code" href="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37" title="Initialize image header.">uves_initialize_image_header</a>(</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>                <span class="stringliteral">"AWAV"</span>, (n_traces > 1) ? <span class="stringliteral">"PIXEL"</span> : <span class="stringliteral">" "</span>, </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>                <span class="stringliteral">"Angstrom"</span>, (n_traces > 1) ? <span class="stringliteral">"PIXEL"</span> : NULL, </div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>                <span class="stringliteral">"ADU"</span>,0,</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>                bin_min * wavestep, 1.0,</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>                1.0, 1.0,</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>                wavestep, 1.0),</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>            <span class="stringliteral">"Error initializing merged spectrum header"</span>);</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     }</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>  </div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>     </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>   cleanup:</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>     <span class="keywordflow">return</span> merged;</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span> }</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span> </div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> merge_method</div>
-<div class="line"><a name="l00777"></a><span class="lineno"><a class="code" href="group__uves__merge.html#gaeef8fc529ffcfda1a562fd06c7540069">  777</a></span> <a class="code" href="group__uves__merge.html#gaeef8fc529ffcfda1a562fd06c7540069" title="Read merging method from parameter list.">uves_get_merge_method</a>(<span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span> *context, </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext)</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span> {</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *mm = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     merge_method result = 0;</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>     </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, subcontext, <span class="stringliteral">"merge"</span>, CPL_TYPE_STRING, &mm),</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>     </div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>     <span class="keywordflow">if</span>      (strcmp(mm, <span class="stringliteral">"optimal"</span>) == 0) result = MERGE_OPTIMAL;</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(mm, <span class="stringliteral">"sum"</span>    ) == 0) result = MERGE_SUM;</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(mm, <span class="stringliteral">"noappend"</span>) == 0) result = MERGE_NOAPPEND;</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>     {</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>         assure(<span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"No such merging method: '%s'"</span>, mm);</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>     }</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>     </div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>   cleanup:</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> }</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>     </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__merge_8h_source.html b/html/uves__merge_8h_source.html
deleted file mode 100644
index 96e6811..0000000
--- a/html/uves__merge_8h_source.html
+++ /dev/null
@@ -1,148 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_merge.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_merge.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 14:00:44 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.16 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.15  2010/12/08 11:06:20  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * added chip parameter to uves_merge_orders() to have proper filenames</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.14  2010/09/24 09:32:04  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.12  2008/05/13 09:59:58  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * added delt1,delt2</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.11  2008/02/21 07:50:07  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * added method noappend</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.10  2007/09/19 11:38:44  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * added MERGE_FLAMES</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.9  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.8  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.7  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.6  2005/12/16 14:22:23  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Removed midas test data; Added sof files</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.5  2005/11/24 15:09:06  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Implemented 2d extraction/rebinning/merging</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.4  2005/11/18 10:52:06  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Split into optimal/sum merge methods</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.3  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#ifndef UVES_MERGE_H</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MERGE_H</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {MERGE_OPTIMAL, MERGE_SUM, MERGE_NOAPPEND, MERGE_FLAMES} merge_method;</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> cpl_image *</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <a class="code" href="group__uves__merge.html#gad20fc9888b15052d53d15c7fd2041181" title="Merge orders.">uves_merge_orders</a>(<span class="keyword">const</span> cpl_image *spectrum, </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>                   <span class="keyword">const</span> cpl_image *spectrum_noise,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>                   <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *spectrum_header,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>                   merge_method m_method,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>                   <span class="keywordtype">int</span> n_traces,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>           <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **merged_header,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>           <span class="keyword">const</span> <span class="keywordtype">double</span> delt1, </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> delt2,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>                   <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>                   cpl_image **merged_noise);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> merge_method</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <a class="code" href="group__uves__merge.html#gaeef8fc529ffcfda1a562fd06c7540069" title="Read merging method from parameter list.">uves_get_merge_method</a>(<span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *context, <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext);</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__mflat_8c_source.html b/html/uves__mflat_8c_source.html
deleted file mode 100644
index fc31f68..0000000
--- a/html/uves__mflat_8c_source.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_mflat.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_mflat.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.48  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> {</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     {</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"I am uves_mflat version %d, but I am linking "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     }</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordflow">return</span> uves_mflat_get_info(list);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__mflat__combine_8c_source.html b/html/uves__mflat__combine_8c_source.html
deleted file mode 100644
index 8d83d90..0000000
--- a/html/uves__mflat__combine_8c_source.html
+++ /dev/null
@@ -1,113 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_mflat_combine.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_mflat_combine.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-12-07 16:55:48 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.1 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> </div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> {</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>     {</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>               <span class="stringliteral">"I am uves_mflat_combine version %d, but I am linking "</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>     }</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>     <span class="keywordflow">return</span> uves_mflat_combine_get_info(list);</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__mflat__combine__impl_8c_source.html b/html/uves__mflat__combine__impl_8c_source.html
deleted file mode 100644
index d15d423..0000000
--- a/html/uves__mflat__combine__impl_8c_source.html
+++ /dev/null
@@ -1,169 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_mflat_combine_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_mflat_combine_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-04-16 06:24:26 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> </div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <uves_reduce_mflat_combine.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keyword">static</span> <span class="keywordtype">int</span> uves_mflat_combine_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#define cpl_plugin_get_info uves_mflat_combine_get_info</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     UVES_MFLAT_COMBINE_ID, UVES_MFLAT_COMBINE_DOM, uves_mflat_combine_define_parameters,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     <span class="stringliteral">"Andrea Modigliani"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     <span class="stringliteral">"Combines the master flat field and the master dflat frames"</span>,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     uves_mflat_combine_desc);</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment">                              Functions code</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">  ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> uves_mflat_combine_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> {</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>    <span class="comment">/* TODO define params */</span>   </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>    <span class="keywordflow">if</span> (uves_define_global_parameters(parameters) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>    {</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>       <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>    }</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *context = <span class="stringliteral">"uves"</span>;</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     cpl_parameter *p;</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     {</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     name = <span class="stringliteral">"order_threshold"</span>;</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, context, name);</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                     CPL_TYPE_INT,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                     <span class="stringliteral">"Order where master flats are joined "</span>,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                     context,</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                     7,5,9);</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     }</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>  <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> }</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> UVES_CONCAT2X(UVES_MFLAT_COMBINE_ID,exe)(cpl_frameset *frames, </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>                    <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> {</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     <a class="code" href="group__uves__reduce__mflat__combine.html#ga7c98495b1b6ad337e267c3fd44d12c4b" title="Get the command line options and execute the data reduction.">uves_mflat_combine_exe_body</a>(frames, parameters, starttime, make_str(UVES_MFLAT_COMBINE_ID));</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> }</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__mflat__impl_8c_source.html b/html/uves__mflat__impl_8c_source.html
deleted file mode 100644
index be5240a..0000000
--- a/html/uves__mflat__impl_8c_source.html
+++ /dev/null
@@ -1,145 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_mflat_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_mflat_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-04-08 08:06:18 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.45 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> </div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <uves_reduce_mflat.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keyword">static</span> <span class="keywordtype">int</span> uves_mflat_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#define cpl_plugin_get_info uves_mflat_get_info</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     UVES_MFLAT_ID, UVES_MFLAT_DOM, uves_mflat_define_parameters,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     <span class="stringliteral">"Jonas M. Larsen"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     <span class="stringliteral">"Creates the master flat field frame"</span>,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     uves_mflat_desc);</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment">                              Functions code</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">  ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> uves_mflat_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> {</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>     <span class="keywordflow">return</span> <a class="code" href="group__uves__reduce__mflat.html#ga7d38d6807a0067cc5e8dd44a44ebaa07" title="Setup the recipe options.">uves_mflat_define_parameters_body</a>(parameters, </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>                          make_str(UVES_MFLAT_ID));</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> }</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> UVES_CONCAT2X(UVES_MFLAT_ID,exe)(cpl_frameset *frames, </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                    <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> {</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     <a class="code" href="group__uves__reduce__mflat.html#ga1bae4e786a7fc24b0061ae293112f5ae" title="Get the command line options and execute the data reduction.">uves_mflat_exe_body</a>(frames, parameters, starttime, make_str(UVES_MFLAT_ID));</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> }</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__msg_8c_source.html b/html/uves__msg_8c_source.html
deleted file mode 100644
index 189bd00..0000000
--- a/html/uves__msg_8c_source.html
+++ /dev/null
@@ -1,350 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_msg.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_msg.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-07-01 15:36:29 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.31 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.30  2010/09/24 09:32:04  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.28  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.27  2007/05/23 13:03:19  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added missing include directive</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.26  2007/01/10 12:38:22  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added commented out signal handling code</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.25  2006/09/06 14:44:55  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added documentation about non-use of the cpl_error_code</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.24  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.23  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.22  2006/08/11 11:29:26  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added explicit void at function definition</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.21  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.20  2006/03/24 14:13:11  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Conditionally set time stamp on/off</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.19  2006/03/09 10:57:07  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Minor bugfix: #if -> #ifdef</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.18  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.17  2006/02/21 14:26:54  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.16  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor">#include <stdarg.h></span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor">#undef DEBUG_CALLER              </span><span class="comment">/* Define whether to check consistency </span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment">                    of msg_louder/softer calls */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor"></span><span class="comment">/* #define DEBUG_CALLER */</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#define MAXLEVEL 256</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor"></span><span class="preprocessor">#define MAXSTRINGLENGTH 1000</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="keyword">static</span> <span class="keywordtype">int</span> level = 0;                 <span class="comment">/* Current message & indentation level  from 0 to MAXLEVEL-1.</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment">                     0 is the most verbose level. */</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="keyword">static</span> <span class="keywordtype">int</span> outlevel = -1;             <span class="comment">/* Only print message if level is in {0, 1, ..., outlevel}.</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">                     Always print if outlevel = - 1 */</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor">#ifdef DEBUG_CALLER</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="preprocessor"></span><span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *callers[MAXLEVEL]; <span class="comment">/* Check the consistency of calls to softer/louder  */</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="keyword">static</span> <span class="keywordtype">char</span> printbuffer[MAXSTRINGLENGTH]; <span class="comment">/* Used to pass variable argument list </span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment">                         to cpl_msg_info() */</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *domain = <span class="stringliteral">"Undefined domain"</span>;</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                                      <span class="comment">/* This is to support getting the current domain </span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">                      * which is currently not available in CPL</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment">                      */</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> initialized = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="keyword">static</span> <span class="keywordtype">int</span> number_of_warnings = 0;     <span class="comment">/* Coun't the number of warnings </span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment">                      since initialization */</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment">//static void signal_handler(int signum)</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment">//{</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment">//    fprintf(stderr, "Panic! Signal %d caught, I'll just dump a trace and die\n", signum);</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment">//</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment">//    abort();</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment">//}</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno"><a class="code" href="group__uves__msg.html#ga249838f12e1a1ce18b2f8d4c16bf3078">  153</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#ga249838f12e1a1ce18b2f8d4c16bf3078" title="Initialize messaging.">uves_msg_init</a>(<span class="keywordtype">int</span> olevel, <span class="keyword">const</span> <span class="keywordtype">char</span> *dom)</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> {</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <span class="comment">/* Initialize per recipe: */</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     number_of_warnings = 0;</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment">//    signal(SIGSEGV, signal_handler);</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment">//    raise(SIGSEGV);</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>         </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keywordflow">if</span> (!initialized)</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     {</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>         <span class="comment">/* Initialize once: */</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>         outlevel = olevel;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>         cpl_msg_set_indentation(2);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>         </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>         <span class="comment">/*  CPL message format is</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment">         *  [Time][Verbosity][domain][component] message</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment">         *  Don't show the (variable length and wildly</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment">         *  fluctuating) component. It interferes with</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment">         *  indentation. The component is available anyway</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment">         *  on CPL_MSG_DEBUG_MODE level.</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment">         *  Don't show the time. This is available on</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment">         *  the DEBUG_MODE level. Use esorex --time to time</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">         *  a recipe.</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="preprocessor">#if WANT_TIME_MEASURE</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="preprocessor"></span>        cpl_msg_set_time_on();</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="preprocessor"></span>        cpl_msg_set_time_off();</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor"></span>        <a class="code" href="group__uves__msg.html#gaf97c630c8b96c1f038f747402cc561b2" title="Set message domain.">uves_msg_set_domain</a>(dom);</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>         cpl_msg_set_domain_on();</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>         cpl_msg_set_component_off();</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>         initialized = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     }</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> }</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno"><a class="code" href="group__uves__msg.html#gab9fee51244a39b8b83db0c6fa9c374ed">  202</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#gab9fee51244a39b8b83db0c6fa9c374ed" title="Set output level.">uves_msg_set_level</a>(<span class="keywordtype">int</span> olevel) </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> {</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     outlevel = olevel; </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> } </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno"><a class="code" href="group__uves__msg.html#gac40ef072b06ff52873a4ddd8f05f8be2">  216</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#gac40ef072b06ff52873a4ddd8f05f8be2" title="Decrease message volume.">uves_msg_softer_macro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fct)</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> {</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     <span class="keywordflow">if</span> (level + 1 < MAXLEVEL)</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     {</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>         level++;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>         cpl_msg_indent_more();</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="preprocessor">#ifdef DEBUG_CALLER</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="preprocessor"></span>        callers[level] = fct;</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="preprocessor"></span>        fct = fct; <span class="comment">/* Satisfy compiler */</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> }</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno"><a class="code" href="group__uves__msg.html#ga208ba2d8c46e592f572ad7bf14ba3b84">  239</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#ga208ba2d8c46e592f572ad7bf14ba3b84" title="Increase message volume.">uves_msg_louder_macro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fct)</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> {</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="keywordflow">if</span> (level == 0)</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     {</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         <span class="comment">/* 0 is the loudest, ignore request */</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     }</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     <span class="comment">/* Only make louder, if called from the same function which called</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">       uves_msg_softer. (disable check if level is more than MAXLEVEL)</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="preprocessor">#ifdef DEBUG_CALLER</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="preprocessor"></span>    <span class="keywordflow">if</span> (level >= MAXLEVEL || strcmp(callers[level], fct) == 0)</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="preprocessor"></span>    fct = fct;              <span class="comment">/* Satisfy compiler */</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="preprocessor"></span>    {</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>         level--;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>         cpl_msg_indent_less();</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     }</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="preprocessor">#ifdef DEBUG_CALLER</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="preprocessor"></span>    <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     {</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Message level decreased by '%s' but increased by '%s'"</span>,</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                  callers[level], fct);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     }</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="preprocessor"></span>}</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno"><a class="code" href="group__uves__msg.html#gac345c732a3bc5d9f695817759b8f6ce3">  281</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#gac345c732a3bc5d9f695817759b8f6ce3" title="Print a message on 'info' or 'debug' level.">uves_msg_macro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fct, <span class="keyword">const</span> <span class [...]
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> {</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     va_list al;</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     va_start(al, format);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     vsnprintf(printbuffer, MAXSTRINGLENGTH - 1, format, al);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     va_end(al);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     printbuffer[MAXSTRINGLENGTH - 1] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <span class="keywordflow">if</span> (outlevel < 0 || level <= outlevel)</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     {</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment">//#undef cpl_msg_info</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>         cpl_msg_info(fct, <span class="stringliteral">"%s"</span>, printbuffer);</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment">//#define cpl_msg_info(...)  use__uves_msg__instead__of__cpl_msg_info</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     }</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     {</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>         cpl_msg_debug(fct, <span class="stringliteral">"%s"</span>, printbuffer);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     }</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> }</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno"><a class="code" href="group__uves__msg.html#ga781eb662fe1449b6ffc27c381d177158">  309</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__msg.html#ga781eb662fe1449b6ffc27c381d177158" title="Get number of warnings printed so far.">uves_msg_get_warnings</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> {</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="keywordflow">return</span> number_of_warnings;</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> }</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno"><a class="code" href="group__uves__msg.html#gab40c1f283043f87e188cde494836dfca">  324</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#gab40c1f283043f87e188cde494836dfca" title="Accumulate warnings.">uves_msg_add_warnings</a>(<span class="keywordtype">int</span> n)</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> {</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     number_of_warnings += n;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> }</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno"><a class="code" href="group__uves__msg.html#gaa6b9038cc9d6dee4d6b2f86adb459ee3">  347</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#gaa6b9038cc9d6dee4d6b2f86adb459ee3" title="Print a warning message.">uves_msg_warning_macro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fct, <span class="keyword">const</span> <span class="keywordtype">char</span>  [...]
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> {</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     va_list al;</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     va_start(al, format);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     vsnprintf(printbuffer, MAXSTRINGLENGTH - 1, format, al);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     va_end(al);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     printbuffer[MAXSTRINGLENGTH - 1] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     cpl_msg_warning(fct, <span class="stringliteral">"%s"</span>, printbuffer);</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     number_of_warnings += 1;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> }</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno"><a class="code" href="group__uves__msg.html#gac522fbf0cdea3197a2bd0df38d3019aa">  368</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__msg.html#gac522fbf0cdea3197a2bd0df38d3019aa" title="Get current message domain.">uves_msg_get_domain</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> {</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     <span class="keywordflow">return</span> domain;</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> }</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno"><a class="code" href="group__uves__msg.html#gaf97c630c8b96c1f038f747402cc561b2">  379</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#gaf97c630c8b96c1f038f747402cc561b2" title="Set message domain.">uves_msg_set_domain</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *d)</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> {</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     <span class="comment">/* Set domain and remember */</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     cpl_msg_set_domain(d);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     domain = d;</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> }</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__msg_8h_source.html b/html/uves__msg_8h_source.html
deleted file mode 100644
index 6e83e22..0000000
--- a/html/uves__msg_8h_source.html
+++ /dev/null
@@ -1,170 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_msg.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_msg.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:04 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.14 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.12  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.11  2006/02/21 14:26:54  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.10  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#ifndef UVES_MSG_H</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_MSG_H</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">/* Nothing bad happens if user also calls cpl_msg_info()</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * but maybe prevent it as a service to the user of this module</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">#define cpl_msg_info(...)  use__uves_msg__instead__of__cpl_msg_info</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">#define cpl_msg_indent()</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno"><a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b">   64</a></span> <span class="preprocessor">#define uves_msg_error(...) cpl_msg_error(__func__, __VA_ARGS__)</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="group__uves__msg.html#ga787671a04773bfc372598b47babe9eb8">   77</a></span> <span class="preprocessor">#define uves_msg_progress(i, iter, ...) cpl_msg_progress(__func__, (i), (iter), __VA_ARGS__)</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor"></span><span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno"><a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e">   87</a></span> <span class="preprocessor">#define uves_msg_warning(...) uves_msg_warning_macro(__func__, __VA_ARGS__)</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor"></span><span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97">   97</a></span> <span class="preprocessor">#define uves_msg_debug(...) cpl_msg_debug(__func__, __VA_ARGS__)</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc">  105</a></span> <span class="preprocessor">#define uves_msg_low(...)  do {                     \</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor">                           uves_msg_softer();       \</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor">                           uves_msg(__VA_ARGS__);   \</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor">                           uves_msg_louder();       \</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor">                           } while (false)</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno"><a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb">  119</a></span> <span class="preprocessor">#define uves_msg(...) uves_msg_macro(__func__, __VA_ARGS__)</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno"><a class="code" href="group__uves__msg.html#ga5d5259164b86fe1f3d99d4a2d3f3f68c">  126</a></span> <span class="preprocessor">#define uves_msg_softer() uves_msg_softer_macro(__func__)</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno"><a class="code" href="group__uves__msg.html#gac46059c046c639441112609a0311752e">  133</a></span> <span class="preprocessor">#define uves_msg_louder() uves_msg_louder_macro(__func__)</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#ga249838f12e1a1ce18b2f8d4c16bf3078" title="Initialize messaging.">uves_msg_init</a>(<span class="keywordtype">int</span> olevel, <span class="keyword">const</span> <span class="keywordtype">char</span> *dom);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#gab9fee51244a39b8b83db0c6fa9c374ed" title="Set output level.">uves_msg_set_level</a>(<span class="keywordtype">int</span> olevel);</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__msg.html#gac522fbf0cdea3197a2bd0df38d3019aa" title="Get current message domain.">uves_msg_get_domain</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#gaf97c630c8b96c1f038f747402cc561b2" title="Set message domain.">uves_msg_set_domain</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *d);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#gac345c732a3bc5d9f695817759b8f6ce3" title="Print a message on 'info' or 'debug' level.">uves_msg_macro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fct, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...)</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="preprocessor">#ifdef __GNUC__</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="preprocessor"></span>__attribute__((format (printf, 2, 3)))</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="preprocessor"></span>;</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#gaa6b9038cc9d6dee4d6b2f86adb459ee3" title="Print a warning message.">uves_msg_warning_macro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fct, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...)</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="preprocessor">#ifdef __GNUC__</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="preprocessor"></span>__attribute__((format (printf, 2, 3)))</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="preprocessor"></span>;</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__msg.html#ga781eb662fe1449b6ffc27c381d177158" title="Get number of warnings printed so far.">uves_msg_get_warnings</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#gab40c1f283043f87e188cde494836dfca" title="Accumulate warnings.">uves_msg_add_warnings</a>(<span class="keywordtype">int</span> n);</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#gac40ef072b06ff52873a4ddd8f05f8be2" title="Decrease message volume.">uves_msg_softer_macro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fct);</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__msg.html#ga208ba2d8c46e592f572ad7bf14ba3b84" title="Increase message volume.">uves_msg_louder_macro</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fct);</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_MSG_H */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__obs__spatred__impl_8c_source.html b/html/uves__obs__spatred__impl_8c_source.html
deleted file mode 100644
index 28081f1..0000000
--- a/html/uves__obs__spatred__impl_8c_source.html
+++ /dev/null
@@ -1,299 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_obs_spatred_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_obs_spatred_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:04 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.7 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.5  2008/03/28 08:54:05  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * IRPLIB_CONCAT2X-->UVES_CONCAT2X</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.4  2007/06/11 13:28:26  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Changed recipe contact address to cpl at eso.org</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.3  2007/06/08 13:06:16  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Send bug reports to Andrea</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.2  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.1  2007/02/09 13:34:38  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added mkmaster+spatred recipes</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.37  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.36  2006/10/25 07:21:52  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Documentation bug fix</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.35  2006/10/24 14:02:38  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Factored out common UVES/FLAMES code</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.34  2006/10/17 12:33:02  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added semicolon at UVES_RECIPE_DEFINE invocation</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.33  2006/10/09 13:01:13  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Use macro to define recipe interface functions</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.32  2006/09/20 12:53:57  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Replaced stringcat functions with uves_sprintf()</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.31  2006/09/19 14:31:10  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * uves_insert_frame(): use bitmap to specify which image statistics keywords must be computed</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.30  2006/09/19 06:55:11  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Changed interface of uves_frameset to optionally write image statistics kewwords</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.29  2006/08/24 11:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.28  2006/08/18 13:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Fixed/changed QC parameter formats</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.27  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.26  2006/08/07 11:35:35  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Disabled parameter environment variable mode</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.25  2006/07/14 12:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Support multiple QC tests per product</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.24  2006/07/03 14:20:39  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Exclude bad pixels from order tracing</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.23  2006/07/03 13:09:24  amodigli</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * adjusted description display layout</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.22  2006/07/03 12:46:34  amodigli</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * updated description</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.21  2006/06/22 12:13:10  amodigli</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * removed ESO prefix</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.20  2006/06/22 06:44:06  amodigli</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * added some QC param</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.19  2006/06/16 08:25:34  jmlarsen</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Do the order tracing on non-median filtered frame</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.18  2006/06/13 11:57:02  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Check that calibration frames are from the same chip ID</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.17  2006/06/08 11:40:50  amodigli</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * added check to have output order table as input guess, if provided</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.16  2006/06/08 08:42:53  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Added support for computing Hough transform on image subwindow</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.15  2006/06/07 13:06:28  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Changed doxygen tag addtogroup -> defgroup</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.14  2006/06/07 09:01:28  amodigli</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * added some doc</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.13  2006/06/06 08:40:10  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.12  2006/05/09 15:42:00  amodigli</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * added QC log</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.11  2006/05/08 15:41:32  amodigli</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * added order table chopping (commented out)</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.10  2006/05/05 13:55:17  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Minor doc update</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.9  2006/04/20 10:47:39  amodigli</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * added qclog</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.8  2006/04/06 09:48:15  amodigli</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * changed uves_frameset_insert interface to have QC log</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.7  2006/04/06 08:46:40  jmlarsen</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Changed default polynomial degrees to auto</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.6  2006/03/24 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Changed background subtraction sample density default parameter value</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Revision 1.5  2006/03/09 10:53:41  jmlarsen</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Changed default bivariate degrees to MIDAS values</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Revision 1.4  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Revision 1.3  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Revision 1.2  2006/02/21 14:26:54  jmlarsen</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Revision 1.63  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Revision 1.62  2006/01/05 14:31:31  jmlarsen</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Checking for guess DRS table before guess order table</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Revision 1.61  2005/12/20 16:10:32  jmlarsen</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Added some documentation</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> * Revision 1.60  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="preprocessor">#include <uves_reduce_scired.h></span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">                            Forward declarations</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="keyword">static</span> <span class="keywordtype">int</span> uves_obs_spatred_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="preprocessor">#define cpl_plugin_get_info uves_obs_spatred_get_info</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     UVES_SPATRED_ID, UVES_SPATRED_DOM, uves_obs_spatred_define_parameters,</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     <span class="stringliteral">"Jonas M. Larsen"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     uves_scired_desc_short,</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     uves_scired_desc);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment">                              Functions code</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> uves_obs_spatred_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> {</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     <span class="keywordtype">int</span> status = <a class="code" href="group__uves__scired.html#ga1c491907022557327d0a5bad5281965f" title="Setup the recipe options.">uves_scired_define_parameters_body</a>(parameters, make_str(UVES_SPATRED_ID));</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     <span class="keywordflow">if</span> (status != 0)</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     {</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>         <span class="keywordflow">return</span> status;</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     }</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     {</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *param = <span class="stringliteral">"2d"</span>;</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     <span class="keywordflow">if</span> (uves_set_parameter_default(parameters,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                        make_str(UVES_SPATRED_ID),</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                        <span class="stringliteral">"reduce.extract.method"</span>,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                        CPL_TYPE_STRING, &param) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         {</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         }</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     }</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> }</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> UVES_CONCAT2X(UVES_SPATRED_ID,exe)(cpl_frameset *frames,</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>                      <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> {</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <a class="code" href="group__uves__scired.html#ga0780489bfd35e6728e0d1b9c7036e119" title="Get the command line options and execute the data reduction.">uves_reduce_scired</a>(frames, parameters, make_str(UVES_SPATRED_ID),</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                starttime );</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__orderpos_8c_source.html b/html/uves__orderpos_8c_source.html
deleted file mode 100644
index a02a636..0000000
--- a/html/uves__orderpos_8c_source.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_orderpos.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_orderpos.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.73 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.72  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> {</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     {</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"I am uves_orderpos version %d, but I am linking "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     }</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordflow">return</span> uves_orderpos_get_info(list);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__orderpos__body_8c_source.html b/html/uves__orderpos__body_8c_source.html
deleted file mode 100644
index e264aa3..0000000
--- a/html/uves__orderpos__body_8c_source.html
+++ /dev/null
@@ -1,1764 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_orderpos_body.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_orderpos_body.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.52 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.51  2013/07/01 15:36:52  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Rename DEBUG to debug_mode to remove compiler error on some platforms (that name is reserved to special compiler options)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.50  2012/11/28 09:45:26  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * changed default minthresh for FIBER mode back to its original value: 0.2 that shows to be more robust</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.49  2011/08/25 08:18:04  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * changed default minthresh to 0.01 only in flames_cal_orderpos, and flames_obs_redchain uves_orderpos_body.c</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.48  2010/12/13 08:21:36  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * fixed mem leak</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.47  2010/09/27 15:22:34  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * removed 'norders' parameter</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.46  2010/09/24 09:32:04  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.44  2010/06/09 08:50:23  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * In case USE_GUESS_TAB==2, make check if temporary order table start order numbering from 1. If not correct it appropriately before calling uves_locate_orders. Then put back orders numbering as it was. This to prevent a problem possibly found in case USE_GUESS_TAB==2 and an input guess table is provided with order numbering not starting at 1</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.43  2010/05/11 10:49:09  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Fixed typo on param description</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.42  2010/05/06 14:55:00  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * increased min allowed val of backsubgrid to 10 and changed default of kappa to 4</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.41  2009/10/29 17:16:54  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * added param to specify if red cdd is new/old in call to uves_get_badpix</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.40  2009/02/18 12:06:06  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * fixed mem leak</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.39  2008/09/29 06:57:52  amodigli</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.38  2008/05/01 09:51:42  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * fixed compiler warnings</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.37  2008/02/15 12:43:49  amodigli</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * allow lower/upper chip for parameter process_chip</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.36  2007/12/17 07:41:41  amodigli</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * added some descriptors to pipe products</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.35  2007/12/03 08:00:19  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * added HIERARCH keys to 'debug' product</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.34  2007/11/13 16:19:17  amodigli</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * product order table in case of FIBER mode is now FIB_ORD_TAB_x</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.33  2007/10/23 06:48:57  amodigli</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Master bias is subtracted if provided</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.32  2007/10/05 16:01:45  amodigli</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * using proces_chip parameter to process or not a given RED chip</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.31  2007/09/19 14:13:02  amodigli</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Fibre-Order-Definition-Results-->Single-Fibre-Order-Definition-Results</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.30  2007/08/23 15:14:14  amodigli</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * fixed DFS04255: the value of ymax in the search of orders was improperly set</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.29  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.28  2007/08/02 15:21:06  amodigli</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * added parameter --use_guess_tab and possibility to use the input guess table as it was in  MIDAS (default option). Kept optional also current behaviour</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.27  2007/07/17 12:40:04  jmlarsen</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Fixed bug in update of DEFPOL variables</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.26  2007/06/28 09:17:40  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Write polynomial in MIDAS format if FLAMES</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.25  2007/06/22 09:28:51  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Changed interface of uves_save_image</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.24  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.23  2007/05/22 14:34:32  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Removed unnecessary includes</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.22  2007/04/24 16:45:17  amodigli</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * changed interface of calls to uves_load_ordertable to match new interface</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.21  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.20  2007/04/17 09:34:38  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Parametrize the assumption about consecutive orders (for FLAMES support)</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.19  2007/04/12 12:01:44  jmlarsen</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Skip Hough transform if guess table is provided</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.18  2007/04/03 06:29:21  amodigli</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * changed interface to uves_load_ordertable</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.17  2007/03/28 14:02:18  jmlarsen</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Removed unused parameter</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.16  2007/03/28 11:38:55  jmlarsen</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Killed MIDAS flag, removed dead code</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.15  2006/12/11 12:34:58  jmlarsen</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Fixed QC bugs</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.14  2006/12/11 11:06:44  jmlarsen</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Read QC chip name from input header</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Revision 1.13  2006/12/07 08:24:21  jmlarsen</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Factored some common QC parameters</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Revision 1.12  2006/12/01 12:26:51  jmlarsen</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Factored out FLAMES plate-id code</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Revision 1.11  2006/11/16 14:12:21  jmlarsen</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Changed undefined trace number from 0 to -1, to support zero as an actual trace number</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Revision 1.10  2006/11/16 09:49:25  jmlarsen</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Fixed doxygen bug</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Revision 1.9  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Revision 1.7  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is </span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Revision 1.6  2006/11/13 12:46:26  jmlarsen</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Added doc.</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Revision 1.5  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Revision 1.4  2006/10/26 14:03:33  jmlarsen</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * Fixed position of const modifier</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * Revision 1.3  2006/10/25 07:22:59  jmlarsen</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> * Fixed wrong parameter context: hough -> trace</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Revision 1.2  2006/10/24 14:42:26  jmlarsen</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> * Added plate number logging</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * Revision 1.34  2006/10/17 12:33:02  jmlarsen</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> * Added semicolon at UVES_RECIPE_DEFINE invocation</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> * Revision 1.33  2006/10/09 13:01:13  jmlarsen</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> * Use macro to define recipe interface functions</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> * Revision 1.32  2006/09/20 12:53:57  jmlarsen</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment"> * Replaced stringcat functions with uves_sprintf()</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> * Revision 1.31  2006/09/19 14:31:10  jmlarsen</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment"> * uves_insert_frame(): use bitmap to specify which image statistics keywords must be computed</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"> * Revision 1.30  2006/09/19 06:55:11  jmlarsen</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment"> * Changed interface of uves_frameset to optionally write image statistics kewwords</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment"> * Revision 1.29  2006/08/24 11:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment"> * Revision 1.28  2006/08/18 13:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment"> * Fixed/changed QC parameter formats</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment"> * Revision 1.27  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment"> * Revision 1.26  2006/08/07 11:35:35  jmlarsen</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment"> * Disabled parameter environment variable mode</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment"> * Revision 1.25  2006/07/14 12:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment"> * Support multiple QC tests per product</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"> * Revision 1.24  2006/07/03 14:20:39  jmlarsen</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment"> * Exclude bad pixels from order tracing</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment"> * Revision 1.23  2006/07/03 13:09:24  amodigli</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment"> * adjusted description display layout</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment"> * Revision 1.22  2006/07/03 12:46:34  amodigli</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment"> * updated description</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment"> * Revision 1.21  2006/06/22 12:13:10  amodigli</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"> * removed ESO prefix</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment"> * Revision 1.20  2006/06/22 06:44:06  amodigli</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment"> * added some QC param</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment"> * Revision 1.19  2006/06/16 08:25:34  jmlarsen</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment"> * Do the order tracing on non-median filtered frame</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment"> * Revision 1.18  2006/06/13 11:57:02  jmlarsen</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment"> * Check that calibration frames are from the same chip ID</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment"> * Revision 1.17  2006/06/08 11:40:50  amodigli</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment"> * added check to have output order table as input guess, if provided</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="comment"> * Revision 1.16  2006/06/08 08:42:53  jmlarsen</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment"> * Added support for computing Hough transform on image subwindow</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment"> * Revision 1.15  2006/06/07 13:06:28  jmlarsen</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment"> * Changed doxygen tag addtogroup -> defgroup</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="comment"> * Revision 1.14  2006/06/07 09:01:28  amodigli</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment"> * added some doc</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment"> * Revision 1.13  2006/06/06 08:40:10  jmlarsen</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment"> * Revision 1.12  2006/05/09 15:42:00  amodigli</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment"> * added QC log</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment"> * Revision 1.11  2006/05/08 15:41:32  amodigli</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="comment"> * added order table chopping (commented out)</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment"> * Revision 1.10  2006/05/05 13:55:17  jmlarsen</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment"> * Minor doc update</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment"> * Revision 1.9  2006/04/20 10:47:39  amodigli</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment"> * added qclog</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment"> * Revision 1.8  2006/04/06 09:48:15  amodigli</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment"> * changed uves_frameset_insert interface to have QC log</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="comment"> * Revision 1.7  2006/04/06 08:46:40  jmlarsen</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="comment"> * Changed default polynomial degrees to auto</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="comment"> * Revision 1.6  2006/03/24 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="comment"> * Changed background subtraction sample density default parameter value</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="comment"> * Revision 1.5  2006/03/09 10:53:41  jmlarsen</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="comment"> * Changed default bivariate degrees to MIDAS values</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment"> * Revision 1.4  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment"> * Revision 1.3  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment"> * Revision 1.2  2006/02/21 14:26:54  jmlarsen</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment"> * Revision 1.63  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment"> * Revision 1.62  2006/01/05 14:31:31  jmlarsen</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment"> * Checking for guess DRS table before guess order table</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment"> * Revision 1.61  2005/12/20 16:10:32  jmlarsen</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment"> * Added some documentation</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment"> * Revision 1.60  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="preprocessor">#include <uves_orderpos_body.h></span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="preprocessor">#include <uves_orderpos_hough.h></span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="preprocessor">#include <uves_orderpos_follow.h></span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="preprocessor">#include <uves_physmod_chop_otab.h></span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="preprocessor">#include <uves_corrbadpix.h></span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="preprocessor">#include <uves_backsub.h></span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment">/* compute qclog */</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_orderpos_qclog(cpl_table* table,</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>                 <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>                 <span class="keywordtype">int</span> pord, </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>                 <span class="keywordtype">int</span> dord,</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>                 <span class="keywordtype">int</span> samples_per_order,</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>                 <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* rhead, </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>                 <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>                 cpl_table* qclog);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment">                            Exported variables</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_orderpos_desc_short = <span class="stringliteral">"Defines echelle order positions"</span>;</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_orderpos_desc =</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> <span class="stringliteral">"The recipe defines the order positions in an echelle image. The orders are\n"</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="stringliteral">"initially detected by means of a Hough transformation, the orders are then \n"</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="stringliteral">"traced, and the positions are finally fitted with a global polynomial.\n"</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> <span class="stringliteral">"Expected input frames are narrow flat fields, ORDER_FLAT_xxx, or standard \n"</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> <span class="stringliteral">"stars, STANDARD_xxx, where xxx is 'BLUE' or 'RED', and optionally for each \n"</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="stringliteral">"chip a DRS setup table (DRS_TABLE_BLUE, DRS_TABLE_REDL, DRS_TABLE_REDU) or \n"</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> <span class="stringliteral">"guess order table (ORDER_GUESS_TAB_BLUE, ORDER_GUESS_TAB_REDL, \n"</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> <span class="stringliteral">"ORDER_GUESS_TAB_REDU, \n"</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="stringliteral">"or, for backward compatibility, ORDER_TABLE_BLUE, ORDER_TABLE_REDL, \n"</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <span class="stringliteral">"ORDER_TABLE_REDU). The recipe processes only the first raw frame found.\n"</span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="stringliteral">"Output is one (or two if input is a red frame) order table(s) \n"</span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="stringliteral">"(UVES: ORDER_TABLE_(BLUE|REDL|REDU); FLAMES: FIB_ORDEF_(REDL|REDU) contaning\n"</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <span class="stringliteral">"the columns:\n"</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="stringliteral">"X                : Position along x\n"</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="stringliteral">"Order            : Relative order number\n"</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="stringliteral">"Y                : Order line centroid location\n"</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <span class="stringliteral">"Yfit             : The fitted order location\n"</span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> <span class="stringliteral">"dY               : Uncertainty of Y\n"</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="stringliteral">"dYfit_Square     : Variance of Yfit\n"</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="stringliteral">"Residual         : Y - Yfit\n"</span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="stringliteral">"Residual_Square  : Residual^2\n"</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="stringliteral">"OrderRMS         : Root mean squared residual of initial\n"</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> <span class="stringliteral">"                   one-dimensional linear fit of order\n"</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> <span class="stringliteral">"The bivariate fit polynomial itself is stored in table extension no. 2.\n"</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="stringliteral">"The 3rd table extension contains a table that defines the active fibre traces\n"</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="stringliteral">"and their positions (for support of FLAMES/UVES)\n"</span>;</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="comment">                              Functions code</span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> uves_orderpos_define_parameters_body(cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> {</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     <span class="keywordtype">double</span> min_thresh=0.2;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="comment">     *    General    *</span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     <span class="keywordflow">if</span> (uves_define_global_parameters(parameters) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     {</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>     }</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="comment">     * Preprocessing *</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     subcontext = <span class="stringliteral">"preproc"</span>;</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     <span class="comment">/* Use of Guess sol */</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     uves_par_new_enum(<span class="stringliteral">"use_guess_tab"</span>, </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>               CPL_TYPE_INT,</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>                <span class="stringliteral">"If a Guess order table is provided this parameter set how it is used:"</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                <span class="stringliteral">"0: No usage, "</span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                <span class="stringliteral">"1: use it to set lower/upper Y raws where order are searched "</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>               <span class="stringliteral">"2: the order table try to fully match the guess"</span>,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>               1, 3, 0, 1, 2);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     <span class="comment">/* Radx, Rady */</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     uves_par_new_range(<span class="stringliteral">"radx"</span>, </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                <span class="stringliteral">"Half X size of median filtering window"</span>,</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                2, 0, INT_MAX);</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     uves_par_new_range(<span class="stringliteral">"rady"</span>,</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>                <span class="stringliteral">"Half Y size of median filtering window"</span>,</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>                1, 0, INT_MAX);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     <span class="comment">/* Mmethod */</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     uves_par_new_enum(<span class="stringliteral">"mmethod"</span>,</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>               CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>               <span class="stringliteral">"Background subtraction method. If equal "</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>               <span class="stringliteral">"to 'median' the background is sampled using "</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>               <span class="stringliteral">"the median of a sub-window. If 'minimum', "</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>               <span class="stringliteral">"the minimum sub-window value is used. If "</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>               <span class="stringliteral">"'no', no background subtraction is done."</span>,</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>               <span class="stringliteral">"median"</span>,                        <span class="comment">/* Default */</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>               3,                               <span class="comment">/* Number of options */</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>               <span class="stringliteral">"median"</span>, <span class="stringliteral">"minimum"</span>, <span class="stringliteral">"no"</span>);      <span class="comment">/* List of options */</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>   </div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     <span class="comment">/* Backsubgrid */</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     uves_par_new_range(<span class="stringliteral">"backsubgrid"</span>,</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>                <span class="stringliteral">"Number of grid points (in x- and y-direction) "</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>                <span class="stringliteral">"used to estimate "</span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>                <span class="stringliteral">"the background (mode=poly)."</span>,</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>                50, 10, INT_MAX);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     <span class="comment">/* Backsubradiusy */</span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     uves_par_new_range(<span class="stringliteral">"backsubradiusy"</span>,</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                <span class="stringliteral">"The height (in pixels) of the background "</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                <span class="stringliteral">"sampling window is (2*radiusy + 1). "</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                <span class="stringliteral">"This parameter is not corrected for binning."</span>,</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>                2, 0, INT_MAX);</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>     </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>     <span class="comment">/* Backsubkappa */</span></div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     uves_par_new_range(<span class="stringliteral">"backsubkappa"</span>,</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>                CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>                <span class="stringliteral">"The value of kappa in the one-sided kappa-sigma "</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>                <span class="stringliteral">"clipping used to "</span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                <span class="stringliteral">"estimate the background (mode=poly)."</span>,</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>                4.0, 0.0, DBL_MAX);</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     <span class="comment">/* Backsubdegx, backsubdegy */</span></div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     uves_par_new_range(<span class="stringliteral">"backsubdegx"</span>,</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                <span class="stringliteral">"Degree (in x) of polynomial used "</span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                <span class="stringliteral">"to estimate the background (mode=poly)."</span>,</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                2, 1, INT_MAX);</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     </div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     uves_par_new_range(<span class="stringliteral">"backsubdegy"</span>,</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>                <span class="stringliteral">"Degree (in y) of polynomial used "</span></div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>                <span class="stringliteral">"to estimate the background (mode=poly)."</span>,</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>                2, 1, INT_MAX);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     <span class="comment">/*******************</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="comment">     * Hough detection *</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> <span class="comment">     *******************/</span></div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     subcontext = <span class="stringliteral">"hough"</span>;  </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> </div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     <span class="comment">/* Samplewidth */</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     uves_par_new_range(<span class="stringliteral">"samplewidth"</span>,</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>                <span class="stringliteral">"Separation of sample traces "</span></div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>                <span class="stringliteral">"(used by Hough transform) in input image"</span>,</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>                50, 1, INT_MAX);</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     <span class="comment">/* Minslope, Maxslope */</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>     uves_par_new_range(<span class="stringliteral">"minslope"</span>,</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>                CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>                <span class="stringliteral">"Minimum possible line slope. This should "</span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>                <span class="stringliteral">"be the 'physical' slope on the chip, "</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>                <span class="stringliteral">"i.e. not taking binning factors into "</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>                <span class="stringliteral">"account, which is handled by the recipe"</span>,</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>                0.0, 0.0, DBL_MAX);</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     uves_par_new_range(<span class="stringliteral">"maxslope"</span>,</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>                CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>                <span class="stringliteral">"Maximum possible line slope"</span>,</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>                0.2, 0.0, DBL_MAX);</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     <span class="comment">/* Sloperes */</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     uves_par_new_range(<span class="stringliteral">"sloperes"</span>,</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>                <span class="stringliteral">"Resolution (width in pixels) of Hough space"</span>,</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>                120, 1, INT_MAX);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>     <span class="comment">/* Norders */</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>     <span class="comment">/* decided to temporally remove this as only option 0 works</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment">       later one need to fix the behaviour for this parameter</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="comment">    uves_par_new_range("norders",</span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="comment">               CPL_TYPE_INT,</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="comment">               "Number of echelle orders to detect. If "</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="comment">               "set to 0 the predicted number of orders will "</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">               "be read from the guess order table. If no "</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="comment">               "guess order table is given, the recipe will "</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="comment">               "try to autodetect the number of orders. If "</span></div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="comment">               "the raw frame is a red chip and this parameter "</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> <span class="comment">               "is specified, the given value will be used "</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <span class="comment">               "for both red chips",</span></div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> <span class="comment">               0, 0, INT_MAX);</span></div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> <span class="comment">    */</span>   </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     <span class="comment">/* Pthres */</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>     uves_par_new_range(<span class="stringliteral">"pthres"</span>,</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>                CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>                <span class="stringliteral">"In automatic mode, or if the number of orders "</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>                <span class="stringliteral">"to detect is read from a guess table, the detection "</span></div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>                <span class="stringliteral">"of new lines stops when the intensity of a candidate "</span></div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>                <span class="stringliteral">"line drops to less than 'pthres' times the intensity "</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>                <span class="stringliteral">"of the previous detection. "</span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> <span class="comment">/* Text applicable only if 'norders' parameter is present </span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="comment">               "Otherwise - i.e. if the "</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> <span class="comment">               "number of orders to detect was specified by setting "</span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="comment">               "the 'norders' parameters - this parameter is "</span></div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> <span class="comment">               "ignored."</span></div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>                ,</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>                0.2, 0.0, 1.0);</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>     </div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>     <span class="comment">/*******************</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> <span class="comment">     * Order tracing   *</span></div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> <span class="comment">     *******************/</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     subcontext = <span class="stringliteral">"trace"</span>;</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     <span class="comment">/* Tracestep */</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>     uves_par_new_range(<span class="stringliteral">"tracestep"</span>,</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                <span class="stringliteral">"The step size used when tracing the orders"</span>,</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                10, 1, INT_MAX);</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     </div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>     <span class="comment">/* Minthres */</span></div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>     min_thresh=0.2;</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     uves_par_new_range(<span class="stringliteral">"minthresh"</span>,</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>                        CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>                        <span class="stringliteral">"The minimum threshold value is (min + "</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>                        <span class="stringliteral">"minthres*(max - min)). Here 'min' "</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>                <span class="stringliteral">"and 'max' are the lowest and highest pixel "</span></div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>                <span class="stringliteral">"values in the central bin of the order"</span>,</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>                        min_thresh, 0.0, 1.0);</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>     </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>     <span class="comment">/* Maxgap */</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     uves_par_new_range(<span class="stringliteral">"maxgap"</span>,</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>                        CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>                        <span class="stringliteral">"If the order line drops below detection "</span></div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>                        <span class="stringliteral">"threshold, the order tracing algorithm "</span></div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>                        <span class="stringliteral">"will try to jump a gap of maximum size 'maxgap' "</span></div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                        <span class="stringliteral">"multiplied by the image width"</span>,</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>                        .2, 0.0, 1.0);</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     <span class="comment">/***************</span></div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> <span class="comment">     *  Rejection  *</span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> <span class="comment">     ***************/</span></div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>     subcontext = <span class="stringliteral">"reject"</span>;</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> </div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>     <span class="comment">/* Maxrms */</span>   <span class="comment">/* In uves/midas default is 3.5 */</span></div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>     uves_par_new_range(<span class="stringliteral">"maxrms"</span>,</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>                  <span class="stringliteral">"When fitting the orders with straight lines, "</span></div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>                  <span class="stringliteral">"this is the maximum allowed RMS relative to "</span></div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>                  <span class="stringliteral">"the median RMS of all orders"</span>,</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>                  100.0, 0.0, DBL_MAX);</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> </div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>     <span class="comment">/* In MIDAS,  defpol=2,3 is used which is not optimal</span></div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> <span class="comment">       but faster than (-1,-1)               */</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     <span class="comment">/* Defpol1 */</span></div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     uves_par_new_range(<span class="stringliteral">"defpol1"</span>,</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>                  <span class="stringliteral">"The degree of the bivarite fit (cross "</span></div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>                  <span class="stringliteral">"dispersion direction). If negative, "</span></div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>                  <span class="stringliteral">"the degree is optimized to give the best fit"</span>,</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>                  -1,</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>                  -1, INT_MAX);</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>     </div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>     <span class="comment">/* Defpol2 */</span></div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>     uves_par_new_range(<span class="stringliteral">"defpol2"</span>,</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                  <span class="stringliteral">"The degree of the bivarite fit (order number). "</span></div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                  <span class="stringliteral">"If negative, "</span></div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                  <span class="stringliteral">"the degree is optimized to give the best fit"</span>,</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                  -1,</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>                  -1, INT_MAX);</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>     </div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>     <span class="comment">/* Kappa */</span></div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>     uves_par_new_range(<span class="stringliteral">"kappa"</span>,</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>                  <span class="stringliteral">"Used for kappa-sigma clipping of the final "</span></div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>                  <span class="stringliteral">"polynomial fit. If negative, no clipping is done"</span>,</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                  4.0, -2.0, DBL_MAX);</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> </div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> }</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> </div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> <span class="keyword">static</span> cpl_table *</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> uves_orderpos_process_chip(<span class="keyword">const</span> cpl_image *raw_image, </div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>                            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header, </div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>                            <span class="keyword">enum</span> uves_chip chip, </div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>                            <span class="keywordtype">int</span> binx, <span class="keywordtype">int</span> biny,</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                           <span class="comment">/* General */</span></div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>                <span class="keywordtype">bool</span>      debug_mode,</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>                <span class="comment">/* Preprocessing */</span></div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>                <span class="keywordtype">int</span>      USE_GUESS_TAB,</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>                <span class="keywordtype">int</span>      RADX,</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                <span class="keywordtype">int</span>      RADY,</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>                background_measure_method BM_METHOD,</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                <span class="keywordtype">int</span>      BACKSUBGRID,</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                <span class="keywordtype">int</span>      BACKSUBRADIUSY,</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                <span class="keywordtype">double</span>   BACKSUBKAPPA,</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>                <span class="keywordtype">int</span>      BACKSUBDEGX,</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>                <span class="keywordtype">int</span>      BACKSUBDEGY,</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>                <span class="comment">/* Hough transform */</span></div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>                <span class="keywordtype">int</span>      SAMPLEWIDTH,</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>                <span class="keywordtype">double</span>   MINSLOPE,</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>                <span class="keywordtype">double</span>   MAXSLOPE,</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>                <span class="keywordtype">int</span>      SLOPERES,</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>                <span class="keywordtype">int</span>      NORDERS,</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>                <span class="keywordtype">bool</span>      norders_is_guess,</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>                <span class="keywordtype">double</span>   PTHRES,</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>                <span class="comment">/* Order following */</span></div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                <span class="keywordtype">int</span>      TRACESTEP,</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>                <span class="keywordtype">double</span>   MINTHRESH,</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>                <span class="keywordtype">double</span>   MAXGAP,</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>                <span class="comment">/* Rejection */</span></div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>                <span class="keywordtype">double</span>   MAXRMS,</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>                <span class="keywordtype">int</span>      *DEFPOL1,</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>                <span class="keywordtype">int</span>      *DEFPOL2,</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>                <span class="keywordtype">double</span>   KAPPA,</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>                <a class="code" href="struct__polynomial.html">polynomial</a> **bivariate_fit,</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>                <span class="keywordtype">int</span> *norders,</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>                            cpl_table* guess_table)</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> {</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     cpl_table   *tracetable     = NULL;</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     cpl_image   *noise          = NULL;    <span class="comment">/* Image defining the noise</span></div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> <span class="comment">                           of the current image */</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     cpl_image   *back_subbed    = NULL;</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>     cpl_image   *hough_trans    = NULL;</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>     <a class="code" href="struct__polynomial.html">polynomial</a>  *guess_locations = NULL;</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     </div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>     <span class="comment">/* Debug objects */</span></div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     cpl_image   *inputlines     = NULL; <span class="comment">/* Hough solution drawn</span></div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> <span class="comment">                        on top of input image */</span></div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     cpl_table   *ordertable     = NULL; <span class="comment">/* A preliminary order table</span></div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> <span class="comment">                        containing one row per order */</span></div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>     cpl_image   *hough_original = NULL;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     <span class="keywordtype">int</span> abs_ord_min=0;</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>     <span class="keywordtype">int</span> abs_ord_max=0;</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     <span class="keywordtype">int</span> badpixels_marked = 0;</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     <span class="keywordtype">int</span> ymin = 0;</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>     <span class="keywordtype">int</span> ymax = 0;</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     <span class="keywordtype">int</span> ord_min=0;</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>     <span class="keywordtype">bool</span> red_ccd_is_new=0;</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(red_ccd_is_new=<a class="code" href="group__uves__pfits.html#ga84bbe16d83dc492a6104f3b301f1c2f9" title="Find out if CCD header is new.">uves_ccd_is_new</a>(raw_header));</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( back_subbed = cpl_image_duplicate(raw_image), <span class="stringliteral">"Error duplicating image"</span>);</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>     ymin = 1;</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>     ymax = cpl_image_get_size_y(back_subbed);</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"==============="</span>);</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>     <span class="comment">/* uves_msg("guess order tab=%p",guess_table); */</span></div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>     <span class="comment">/* Calculate the basic order table */</span></div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>     <span class="keywordflow">if</span>(guess_table != NULL) </div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>     {</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>       <span class="keywordflow">if</span>(USE_GUESS_TAB == 1) {</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>     <span class="keywordtype">int</span> ymin_guess=ymin;</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>     <span class="keywordtype">int</span> ymax_guess=ymax;</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>         <span class="keywordtype">int</span> omin=0;</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>         <span class="keywordtype">int</span> omax=0;</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>     cpl_table* tmp_tbl=NULL;</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Use input guess order table to define the detector area"</span>);</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"where to locate orders"</span>);</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>  </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span> </div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>         tmp_tbl=cpl_table_duplicate(guess_table);</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>         <a class="code" href="group__uves__physmod.html#ga1aaabdd9a0e0412928a2345f63184f08" title="Chop off orders which are not fully in the detector chip.">uves_physmod_chop_otab</a>(raw_header,chip,&tmp_tbl,<span class="stringliteral">"Order"</span>,&omin,&omax);</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>  </div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"On Guess Found %d orders."</span>,omax-omin+1);</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>     <span class="keywordflow">if</span>(omax < cpl_table_get_column_max(guess_table,<span class="stringliteral">"Order"</span>)) {</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>       uves_free_table(&tmp_tbl);</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl=uves_extract_table_rows(guess_table,<span class="stringliteral">"Order"</span>,</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>                         CPL_EQUAL_TO,omax+1),</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>         <span class="stringliteral">"Error selecting Order"</span>);</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(ymax_guess=(<span class="keywordtype">int</span>)cpl_table_get_column_min(tmp_tbl,<span class="stringliteral">"Yfit"</span>)-1,</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>         <span class="stringliteral">"error getting ymax_guess"</span>);</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>       uves_free_table(&tmp_tbl);</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>     }</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span> </div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     <span class="keywordflow">if</span>(omin > cpl_table_get_column_min(guess_table,<span class="stringliteral">"Order"</span>)) {</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>       uves_free_table(&tmp_tbl);</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl=uves_extract_table_rows(guess_table,<span class="stringliteral">"Order"</span>,</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>                         CPL_EQUAL_TO,omin-1),</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>         <span class="stringliteral">"Error selecting Order"</span>);</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(ymin_guess=(<span class="keywordtype">int</span>)cpl_table_get_column_max(tmp_tbl,<span class="stringliteral">"Yfit"</span>)+1,</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>         <span class="stringliteral">"error getting ymin_guess"</span>);</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>       uves_free_table(&tmp_tbl);</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>     }</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>         ymin = (ymin_guess>ymin) ? ymin_guess : ymin;</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>         ymax = (ymax_guess<ymax) ? ymax_guess : ymax;</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> </div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Serching them in the region [ymin,ymax]=[%d,%d]"</span>,ymin,ymax);</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>         uves_free_table(&tmp_tbl);</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> </div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> </div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (USE_GUESS_TAB == 2) {</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> </div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>       <span class="comment">// Create a table with order lines in the same format as the</span></div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>       <span class="comment">// Hough transform would do it, i.e. intersept + slope for each order.</span></div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>             </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>             <span class="keywordtype">int</span> minorder = uves_round_double(</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>                 cpl_table_get_column_min(guess_table, <span class="stringliteral">"Order"</span>));</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>             <span class="keywordtype">int</span> maxorder = uves_round_double(</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>                 cpl_table_get_column_max(guess_table, <span class="stringliteral">"Order"</span>));</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>             <span class="keywordtype">int</span> nx = cpl_image_get_size_x(back_subbed);</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>             <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Create a table with order lines in the same format as the"</span>);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Hough transform would do it, "</span>);</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"i.e. intersept + slope for each order."</span>);</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> </div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>             {</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>                 <span class="keywordtype">double</span> kappa = 4;</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>                 <span class="keywordtype">int</span> max_degree = 6;</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>                 <span class="keywordtype">double</span> min_rms = 0.1; <span class="comment">/* pixels */</span></div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>                 <span class="keywordtype">double</span> mse;</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( guess_locations = <a class="code" href="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d_autodegree</a>(</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>                            guess_table,</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>                            <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Yfit"</span>, NULL,</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>                            NULL, NULL, NULL,</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>                            &mse, NULL, NULL,</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>                            kappa,</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>                            max_degree, max_degree, min_rms, -1,</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>                            <span class="keyword">false</span>,</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>                            NULL, NULL, -1, NULL),</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>                    <span class="stringliteral">"Could not fit polynomial to provided table"</span>);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span> </div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Provided table contains orders %d - %d. RMS = %.3f pixels"</span>,</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>                      minorder, maxorder, sqrt(mse));</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>             }</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span> </div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span> </div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>             </div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>             ordertable = cpl_table_new(maxorder - minorder + 1);</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>             cpl_table_new_column(ordertable, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>             cpl_table_new_column(ordertable, <span class="stringliteral">"Intersept"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>             cpl_table_new_column(ordertable, <span class="stringliteral">"Slope"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>             cpl_table_new_column(ordertable, <span class="stringliteral">"Spacing"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span> </div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>             <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++)</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>                 {</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>                     <span class="keywordtype">int</span> row = order - minorder;</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>                     <span class="keywordtype">double</span> slope = </div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>                         <a class="code" href="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a" title="Evaluate the partial derivative of a 2d polynomial.">uves_polynomial_derivative_2d</a>(guess_locations, nx/2, order, 1);</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>                     <span class="keywordtype">double</span> intersept = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(guess_locations, nx/2, order)</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>                         - slope*(nx/2);</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>                     <span class="keywordtype">int</span> spacing = </div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>                         uves_round_double(<a class="code" href="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a" title="Evaluate the partial derivative of a 2d polynomial.">uves_polynomial_derivative_2d</a>(</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>                                               guess_locations, nx/2, order, 2));</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>                     </div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>                     cpl_table_set_int   (ordertable, <span class="stringliteral">"Order"</span>, row, order);</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>                     cpl_table_set_double(ordertable, <span class="stringliteral">"Slope"</span>, row, slope);</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>                     cpl_table_set_int   (ordertable, <span class="stringliteral">"Spacing"</span>, row, spacing);</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>                     cpl_table_set_double(ordertable, <span class="stringliteral">"Intersept"</span>, row, intersept);</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>                 }</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span> </div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>       } </div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span> </div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>     }</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>     <span class="keywordflow">if</span>( (guess_table == NULL) || (USE_GUESS_TAB != 2) )</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>         {</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>   </div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>             <span class="comment">/* Detect orders from scratch */</span></div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Detect orders from scratch "</span>);</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span> </div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> </div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> </div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>           <span class="comment">/* Remove bad/hot pixels with a median filter.</span></div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> <span class="comment">             * This is needed for the Hough transform, but</span></div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> <span class="comment">             * we trace the orders on the raw image (gives better fit).</span></div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>             {</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>                 <span class="keywordtype">bool</span> extrapolate_border = <span class="keyword">true</span>;     <span class="comment">/* This is needed to avoid a sudden</span></div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> <span class="comment">                                                       intensity increase near the image</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> <span class="comment">                                                       borders (which will confuse the Hough</span></div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> <span class="comment">                                                       transform) */</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>                 </div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Applying %dx%d median filter"</span>, RADX*2+1, RADY*2+1);</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f" title="Median filter.">uves_filter_image_median</a>(&back_subbed, RADX, RADY, extrapolate_border), </div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>                        <span class="stringliteral">"Could not filter image"</span>);</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>             }</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> </div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>             <span class="comment">/* Subtract background */</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting background (grid sampling)"</span>);</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>             </div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_backsub_poly(back_subbed,</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>                                      NULL, NULL,            <span class="comment">/* Order locations are unknown */</span></div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>                                      BM_METHOD,</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>                                      BACKSUBGRID,</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>                                      BACKSUBRADIUSY,</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>                                      BACKSUBDEGX,</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>                                      BACKSUBDEGY,</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>                                      BACKSUBKAPPA),</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>                    <span class="stringliteral">"Could not subtract background"</span>);</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span> </div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ordertable = <a class="code" href="group__uves__orderpos.html#gaa46ac08a5a64f9d633d8c7735a0aeb64" title="Compute Hough transform and detect lines.">uves_hough</a>(back_subbed,</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>                                            ymin, ymax,</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>                                            NORDERS, norders_is_guess,</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>                                            SAMPLEWIDTH,</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>                                            PTHRES,</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>                                            MINSLOPE,</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>                                            MAXSLOPE,</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>                                            SLOPERES,</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>                                            <span class="keyword">true</span>,  <span class="comment">/* Consecutive orders? */</span></div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>                                            &hough_trans,</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>                                            &hough_original), </div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>                    <span class="stringliteral">"Could not locate echelle orders"</span>);</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>             </div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>             <span class="keywordflow">if</span> (debug_mode)</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>                 {</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span> </div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>                    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>((<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>*)rotated_header,               [...]
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>                             <span class="stringliteral">"^ESO "</span>, 0),</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>               <span class="stringliteral">"Error copying hieararch keys"</span>);</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span> </div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Hough transform"</span>, <span class="stringliteral">"hough"</span>, </div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>                                                  hough_original, chip, -1, -1, </div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>                                                  rotated_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>                            <span class="stringliteral">"Error saving hough image"</span>);</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>                     </div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Hough transform (peaks deleted)"</span>, </div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>                                                  <span class="stringliteral">"hough_delete"</span>, hough_trans, </div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>                                                  chip, -1, -1, rotated_header, </div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>                                                  <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>                            <span class="stringliteral">"Error saving hough image"</span>);</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>                     </div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>                     <span class="comment">/* For debugging, draw Hough detected orders</span></div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span> <span class="comment">                       (straight lines) on top of the input image */</span></div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( inputlines = cpl_image_duplicate(raw_image), </div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>                            <span class="stringliteral">"Could not duplicate image"</span>);</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__orderpos.html#ga3d0f9d7641a1bb0eb356813c8d179ddb" title="Draw detected order lines.">uves_draw_orders</a>(ordertable, inputlines), </div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>                            <span class="stringliteral">"Could not draw hough orders on image"</span>);</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>                     </div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Lines detected by Hough transform"</span>,</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>                                                  <span class="stringliteral">"inputlines"</span>, inputlines, chip, -1, -1, rotated_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>                            <span class="stringliteral">"Error saving hough image"</span>);</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>                     </div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>                     uves_free_image(&inputlines);</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>                 }</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span> </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>             <span class="comment">/* Clean up */</span></div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>             uves_free_image(&hough_trans);</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>             uves_free_image(&hough_original);</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>         }</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>     <span class="comment">/* Initial order detection done */</span></div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span> </div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>     <span class="comment">/* Subtract background, but this time sample the interorder space */</span></div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( uves_free_image(&back_subbed),</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>             back_subbed = cpl_image_duplicate(raw_image)),</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>           <span class="stringliteral">"Error duplicating image"</span>);</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>     </div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting background (inter-order sampling)"</span>);</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_backsub_poly(back_subbed,</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>                              ordertable, NULL,</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>                              BM_METHOD,</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>                              BACKSUBGRID,</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>                              BACKSUBRADIUSY,</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>                              BACKSUBDEGX,</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>                              BACKSUBDEGY,</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                              BACKSUBKAPPA),</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>            <span class="stringliteral">"Could not subtract background"</span>);</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>     </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>     <span class="comment">/* Create noise image (readout + photonic noise) </span></div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> <span class="comment">     * We need to do this *after* background subtraction,</span></div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> <span class="comment">     * because we cannot distinguish bias from scattered light</span></div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span> <span class="comment">     * (if master bias was explicitly subtracted, we should</span></div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> <span class="comment">     *  define the noise model before background subtraction)</span></div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( noise = <a class="code" href="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7" title="Create noise image.">uves_define_noise</a>(back_subbed, raw_header, 1, chip),</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>        <span class="stringliteral">"Error creating noise image"</span>);</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>     </div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>     <span class="keywordflow">if</span> (debug_mode)</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>     {</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>         <span class="comment">/* Save pre-processed (cropped, rotated, median filtered, </span></div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span> <span class="comment">           backgr. subtracted) input image  */</span></div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Pre-processed raw frame"</span>, <span class="stringliteral">"preproc"</span>, </div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>                      back_subbed, chip, -1, -1, rotated_header, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>            <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>         </div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>         <span class="comment">/* Save noise of pre-processed input image */</span></div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Noise of pre-processed image"</span>, </div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                      <span class="stringliteral">"preproc_noise"</span>, </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                      noise, chip, -1, -1, rotated_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>            <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>     }</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>     </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>     <span class="comment">/* Mark bad pixels */</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( badpixels_marked = </div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>        <a class="code" href="group__uves__corrbadpix.html#gabddade195002b7813f7cb41baa85b729" title="Correct all bad pixels on a chip.">uves_correct_badpix_all</a>(back_subbed,   <span class="comment">/* MIDAS uses raw_image here */</span></div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                    raw_header, </div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>                    chip, </div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>                    binx, biny, </div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>                    <span class="keyword">true</span>,           <span class="comment">/* Mark, don't interpolate bad pixels */</span></div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>                                red_ccd_is_new</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>            ),</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>        <span class="stringliteral">"Error marking bad pixels"</span>);</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     </div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%d pixels marked as bad"</span>, badpixels_marked);</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> </div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>     <span class="comment">/* Trace the orders</span></div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> <span class="comment">       (using the background subtracted image or not if MIDAS) */</span></div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"norders=%d"</span>,*norders);</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>     <span class="keywordflow">if</span>(USE_GUESS_TAB==2) {</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>        ord_min=cpl_table_get_column_min(ordertable,<span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>        <span class="keywordflow">if</span> (ord_min>1) {</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>           cpl_table_subtract_scalar(ordertable,<span class="stringliteral">"Order"</span>,ord_min-1);</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>        }</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>     }</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> </div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( tracetable = <a class="code" href="group__uves__orderpos.html#ga24ea1bc4c54b9e30dc5cb6edb0671ec2" title="Trace all orders.">uves_locate_orders</a>(back_subbed,    <span class="comment">/* MIDAS uses raw_image here */</span></div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>                        noise,</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>                        ordertable,</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>                        TRACESTEP,</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>                        MINTHRESH,</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>                        MAXGAP,</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>                        MAXRMS,</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>                        DEFPOL1, DEFPOL2,</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>                        KAPPA,</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>                        bivariate_fit,</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>                        norders), <span class="stringliteral">"Could not trace orders"</span>);</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>     </div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>     <span class="keywordflow">if</span>(USE_GUESS_TAB==2) {</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>        <span class="keywordflow">if</span> (ord_min>1) {</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>           cpl_table_add_scalar(ordertable,<span class="stringliteral">"Order"</span>,ord_min-1);</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>        }</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>     }</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> </div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>     <span class="keywordflow">if</span> (<span class="keyword">false</span>)</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>         <span class="comment">/* This is a workaround for a broken wavecal recipe in the MIDAS</span></div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> <span class="comment">           pipeline. There is no reason to do this in the CPL pipeline,</span></div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> <span class="comment">           where the wavecal recipe is able to deal with partial orders */</span></div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>         {</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__physmod.html#ga1aaabdd9a0e0412928a2345f63184f08" title="Chop off orders which are not fully in the detector chip.">uves_physmod_chop_otab</a>(raw_header,chip,&tracetable,<span class="stringliteral">"Order"</span>,</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>                                          &abs_ord_min,&abs_ord_max),</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>                   <span class="stringliteral">"Could not run uves_physmod_chop_otab on trace order table"</span>);</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>         }</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span> </div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> </div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>     <span class="comment">/* add QC log */</span></div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> </div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>     <span class="comment">/* Save basic info about orders */</span></div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>     <span class="keywordflow">if</span> (debug_mode) <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"Basic order table"</span>, <span class="stringliteral">"basic"</span>,</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>                         ordertable, chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>               <span class="stringliteral">"Error saving table"</span>);</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>     </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>   cleanup:</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>     uves_free_image(&back_subbed);</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>     uves_free_image(&noise);</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>     uves_free_image(&hough_trans);</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&guess_locations);</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span> </div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>     <span class="comment">/* Debug objects */</span></div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>     uves_free_image(&hough_original);</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>     uves_free_image(&inputlines);</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>     uves_free_table(&ordertable);</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>     </div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>     <span class="keywordflow">return</span> tracetable;</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> }</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> </div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> uves_orderpos_exe_body(cpl_frameset *frames,</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>                <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>                <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span> {</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span> <span class="comment">     * Variables that will contain the values of the recipe parameters </span></div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> </div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>     <span class="comment">/* General */</span></div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>     <span class="keywordtype">bool</span>      debug_mode;</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>     <span class="comment">/* Preprocessing */</span></div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>     <span class="keywordtype">int</span>      USE_GUESS_TAB, RADX, RADY;</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>     background_measure_method BM_METHOD;</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>     <span class="keywordtype">int</span>      BACKSUBGRID;</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>     <span class="keywordtype">int</span>      BACKSUBRADIUSY;</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>     <span class="keywordtype">double</span>   BACKSUBKAPPA;</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>     <span class="keywordtype">int</span>      BACKSUBDEGX;</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>     <span class="keywordtype">int</span>      BACKSUBDEGY;</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>     <span class="comment">/* Hough transform */</span></div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>     <span class="keywordtype">int</span>      SAMPLEWIDTH;</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>     <span class="keywordtype">double</span>   MINSLOPE, MAXSLOPE;</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>     <span class="keywordtype">int</span>      SLOPERES;</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>     <span class="keywordtype">int</span>      NORDERS=0;</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>     <span class="keywordtype">double</span>   PTHRES;</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>     <span class="comment">/* Order following */</span></div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>     <span class="keywordtype">int</span>      TRACESTEP;</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>     <span class="keywordtype">double</span>   MINTHRESH;</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>     <span class="keywordtype">double</span>   MAXGAP;</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>     <span class="comment">/* Rejection */</span></div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>     <span class="keywordtype">double</span>   MAXRMS;</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>     <span class="keywordtype">int</span>      DEFPOL1_par; <span class="comment">/* Recipe parameter */</span></div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>     <span class="keywordtype">int</span>      DEFPOL2_par;</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>     <span class="keywordtype">double</span>   KAPPA;</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> </div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>     <span class="comment">/* Master bias */</span></div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>     cpl_image *master_bias               = NULL;</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_bias_header = NULL;</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> </div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> </div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>     <span class="comment">/* Input image */</span></div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>     cpl_image        *raw_image[2]      = {NULL, NULL};</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2]     = {NULL, NULL};</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2] = {NULL, NULL};</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>     cpl_image        *raw_image_int     = NULL;</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span> </div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>     <span class="comment">/* Input guess table */</span></div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *guess_header      = NULL; </div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>     cpl_table        *guess_table       = NULL; </div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> </div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>     <span class="comment">/* Output table */</span></div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>     cpl_table        *tracetable        = NULL;</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>     <a class="code" href="struct__polynomial.html">polynomial</a>       *bivariate_fit     = NULL;</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>     cpl_table        *traces            = NULL;  <span class="comment">/* FLAMES/UVES compatibility */</span></div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *product_header    = NULL;</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>     cpl_table* qclog[2] = {NULL, NULL};</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span> </div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>     <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *raw_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>     <span class="keywordtype">char</span> *product_filename = NULL;</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>     <span class="keywordtype">int</span> ord_predict = 0;</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>     <span class="keywordtype">bool</span> norders_is_guess = <span class="keyword">false</span>;               <span class="comment">/* Was norders read from guess table? */</span></div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>     <span class="keywordtype">bool</span> blue;</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>     <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>     <span class="keywordtype">int</span> binx = 0;</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>     <span class="keywordtype">int</span> biny = 0;</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> </div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> </div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *guess_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *master_bias_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span> </div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>     <span class="keywordtype">int</span> raw_index =0;</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>     <span class="keywordtype">int</span> norders = 0;                           <span class="comment">/* Number of orders detected */</span></div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>         </div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>     <span class="keywordtype">int</span> DEFPOL1 = 0;</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>     <span class="keywordtype">int</span> DEFPOL2 = 0;</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> </div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>     <span class="keywordtype">bool</span> load_guess = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> </div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>     <span class="keywordtype">int</span> plate_no;</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span> </div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>     <span class="keywordtype">int</span> samples_per_order =0;</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>     <span class="keywordtype">char</span> values[80];</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> </div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>     <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> </div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> </div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>     <span class="comment">/* Read recipe parameters */</span></div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>     {</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>     <span class="comment">/* General */</span></div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"debug"</span>, CPL_TYPE_BOOL, &debug_mode), </div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>            <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"process_chip"</span>, CPL_TYPE_STRING, &PROCESS_CHIP),</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span> </div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>     <span class="comment">/* Preprocessing */</span></div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"preproc.use_guess_tab"</span>,</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>                   CPL_TYPE_INT   , &USE_GUESS_TAB), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"preproc.radx"</span>,</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>                   CPL_TYPE_INT   , &RADX), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"preproc.rady"</span>, </div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>                   CPL_TYPE_INT   , &RADY), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> </div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( BM_METHOD = uves_get_bm_method(parameters, recipe_id, <span class="stringliteral">"preproc"</span>),</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>            <span class="stringliteral">"Could not read background measuring method"</span>);</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> </div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"preproc.backsubgrid"</span>, </div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>                   CPL_TYPE_INT  , &BACKSUBGRID), </div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>            <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"preproc.backsubradiusy"</span>,</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>                   CPL_TYPE_INT, &BACKSUBRADIUSY), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"preproc.backsubkappa"</span>, </div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>                   CPL_TYPE_DOUBLE,&BACKSUBKAPPA), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"preproc.backsubdegx"</span>, </div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>                   CPL_TYPE_INT  , &BACKSUBDEGX), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"preproc.backsubdegy"</span>, </div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>                   CPL_TYPE_INT  , &BACKSUBDEGY), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>     <span class="comment">/* Hough */</span></div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"hough.samplewidth"</span>  , </div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>                   CPL_TYPE_INT   , &SAMPLEWIDTH), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"hough.minslope"</span>     , </div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>                   CPL_TYPE_DOUBLE, &MINSLOPE   ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"hough.maxslope"</span>     , </div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>                   CPL_TYPE_DOUBLE, &MAXSLOPE   ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"hough.sloperes"</span>     , </div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>                   CPL_TYPE_INT   , &SLOPERES   ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> <span class="comment">/* hough.norders parameter has been temporally removed </span></div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> <span class="comment">    check( uves_get_parameter(parameters, NULL, recipe_id, "hough.norders"      , </span></div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> <span class="comment">                  CPL_TYPE_INT   , &NORDERS    ), "Could not read parameter");</span></div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"hough.pthres"</span>       , </div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>                   CPL_TYPE_DOUBLE, &PTHRES     ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>     <span class="comment">/* Tracing */</span></div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"trace.tracestep"</span>    , </div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>                   CPL_TYPE_INT   , &TRACESTEP  ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"trace.minthresh"</span>    , </div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>                   CPL_TYPE_DOUBLE, &MINTHRESH  ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"trace.maxgap"</span>       , </div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>                   CPL_TYPE_DOUBLE, &MAXGAP     ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>     <span class="comment">/* Reject */</span></div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"reject.maxrms"</span>      , </div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>                   CPL_TYPE_DOUBLE, &MAXRMS     ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"reject.defpol1"</span>     , </div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>                   CPL_TYPE_INT   , &DEFPOL1_par ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"reject.defpol2"</span>     , </div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>                   CPL_TYPE_INT   , &DEFPOL2_par), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"reject.kappa"</span>       , </div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>                   CPL_TYPE_DOUBLE, &KAPPA      ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>     </div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>     <span class="comment">/* The range of parameters have already been checked by the caller */</span></div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>     <span class="comment">/* Do some additional checking */</span></div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>     assure( MINSLOPE  < MAXSLOPE , CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>         <span class="stringliteral">"Minimum slope must be smaller than maximum slope (min = %f; max = %f)"</span>,</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>         MINSLOPE, MAXSLOPE);</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>     <span class="keywordflow">if</span> (MAXSLOPE > 0.5){</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Hough transformation might fail when searching for "</span></div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>                  <span class="stringliteral">"lines with slope larger than 0.5 (maxslope = %f)"</span>, MAXSLOPE);</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>     }</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span> </div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>     <span class="keywordflow">if</span> (DEFPOL1_par >= 6 || DEFPOL2_par >= 6)</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>         {</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Polynomial fitting might be unstable with "</span></div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>                  <span class="stringliteral">"polynomial degrees higher than 5"</span>);</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>         }</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>     </div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>     }</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>     </div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>     <span class="comment">/* Load raw image and header, and identify input frame as red or blue */</span></div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_orderpos(frames, </div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>                               flames, </div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>                               &raw_filename, raw_image,</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>                   raw_header, rotated_header, &blue), <span class="stringliteral">"Error loading raw frame"</span>);</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>     </div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>     <span class="comment">/* Normalize the range of slopes to match the binning of the input image */</span></div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (binx = <a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(raw_header[0]),</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>        <span class="stringliteral">"Could not read x binning factor from input header"</span>);</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (biny = <a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(raw_header[0]),</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>        <span class="stringliteral">"Could not read y binning factor from input header"</span>);</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>     <span class="comment">/* If, for instance, BINX = 2, the slope of a line in the input frame is</span></div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> <span class="comment">       twice the slope of the line on the (unbinned) chip, and generally we need</span></div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span> <span class="comment">       to change SLOPE := BINX/BINY * SLOPE, when going from unbinned to binned</span></div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> <span class="comment">       data.</span></div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span> <span class="comment">       Additionally, when rotating a UVES frame into standard orientation, x- and y-</span></div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> <span class="comment">       directions are swapped, so the parameters MINSLOPE and MAXSLOPE must be</span></div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> <span class="comment">       multiplied by BINY/BINX to correct for binning. */</span></div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>     MINSLOPE = (MINSLOPE*biny)/binx;</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>     MAXSLOPE = (MAXSLOPE*biny)/binx;</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>     </div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>     ord_predict = NORDERS;</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>     </div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>     <span class="comment">/* Loop over one or two chips */</span></div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>     <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>      chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>      chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>     {</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> </div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDU"</span>) == 0) {</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>       }</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> </div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> </div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span> </div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>         raw_index = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>         norders = 0;                           <span class="comment">/* Number of orders detected */</span></div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>         </div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>         DEFPOL1 = DEFPOL1_par;</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>         DEFPOL2 = DEFPOL2_par;</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>         </div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing %s chip in '%s'"</span>,</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>              <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip), raw_filename);</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> </div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( chip_name = <a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e" title="Find out the chip ID.">uves_pfits_get_chipid</a>(raw_header[raw_index], chip));</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span> </div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Binning = %dx%d"</span>, binx, biny);</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span> </div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>         <span class="comment">/* If user didn't specify number of orders, then</span></div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span> <span class="comment">         *   Load the DRS-table (MIDAS), or if not present,</span></div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> <span class="comment">         *   load the guess order table, or if not present,</span></div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> <span class="comment">         *   auto-detect number of orders</span></div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>         <span class="keywordflow">if</span> (NORDERS == 0)</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>         {</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>             <span class="comment">/* The number of orders to detect will </span></div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span> <span class="comment">               be read from input guess table (if available),</span></div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> <span class="comment">               and it is just a guess: */</span></div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>             norders_is_guess = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> </div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>             uves_free_propertylist(&guess_header);</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>             </div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>             <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_DRS_SETUP(flames, chip)) != NULL)</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>             {</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>                 <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No guess order table found"</span>);</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>                 </div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_drs(frames, flames, chip_name, &guess_filename, </div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>                          &guess_header, chip),</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>                    <span class="stringliteral">"Error loading setup table"</span>);</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>                 </div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using setup table in '%s'"</span>, guess_filename);</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span> </div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ord_predict = <a class="code" href="group__uves__pfits.html#ga49559908c6512ccc86d7ea3b478bdc9a" title="Read the predicted number of orders.">uves_pfits_get_ordpred</a>(guess_header), </div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>                    <span class="stringliteral">"Could not read predicted number "</span></div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>                    <span class="stringliteral">"of orders from DRS table header"</span>);</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>             }</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cpl_frameset_find(frames,</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>                            UVES_ORDER_TABLE(flames, chip)) != NULL ||</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>                  cpl_frameset_find(frames,</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>                            UVES_GUESS_ORDER_TABLE(flames, chip)) != NULL)</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>             {</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>                 load_guess = (</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>                 cpl_frameset_find(frames,</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>                           UVES_GUESS_ORDER_TABLE(flames, chip))</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>                 != NULL);</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>                 </div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>                 uves_free_table(&guess_table);</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>                 </div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_ordertable(</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>                        frames,</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>                        flames,</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>                        chip_name,</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>                        &guess_filename, </div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>                        &guess_table,</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>                        &guess_header,</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>                                        NULL,</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>                                        NULL,  <span class="comment">/* Don't read order polynomial */</span></div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>                        NULL,  <span class="comment">/* Don't read fibre traces */</span></div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>                        NULL, NULL,  <span class="comment">/* oshift, yshift */</span></div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>                                        NULL, NULL, <span class="comment">/* fibre_pos,fibre_mask */</span></div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>                        chip,</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>                        load_guess),</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>                    <span class="stringliteral">"Error loading guess order table"</span>);</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>                 </div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using guess order table in '%s'"</span>, guess_filename);</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>                 </div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ord_predict = <a class="code" href="group__uves__pfits.html#ga49559908c6512ccc86d7ea3b478bdc9a" title="Read the predicted number of orders.">uves_pfits_get_ordpred</a>(guess_header), </div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>                    <span class="stringliteral">"Could not read predicted number of orders from "</span></div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>                    <span class="stringliteral">"guess order table header"</span>);</div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>                         }</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>             { </div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"No guess table found"</span>);</div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>             }</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>         }</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>         {</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>             <span class="comment">/* The user has specified the number of orders to detect.</span></div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span> <span class="comment">             * The user is always right, so don't allow the</span></div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span> <span class="comment">             * detection algorithm to detect fewer orders. </span></div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>             norders_is_guess = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>         }</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span> </div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>         <span class="comment">/* Load master bias, set pointer to NULL if not present */</span></div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>         uves_free_image(&master_bias);</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>         uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>         <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_MASTER_BIAS(chip)) != NULL)</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>         {</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>             uves_free_image(&master_bias);</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>             uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mbias(frames,</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>                        chip_name,</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>                        &master_bias_filename, &master_bias,</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>                        &master_bias_header, chip), </div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>                <span class="stringliteral">"Error loading master bias"</span>);</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>             </div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master bias in '%s'"</span>, master_bias_filename);</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>         cpl_image_subtract(raw_image[raw_index],master_bias);        </div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span> </div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>         }</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>         {</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No master bias in SOF. Bias subtraction not done"</span>);</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>         }</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span> </div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>         <span class="comment">/* Execute macro steps */</span></div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>((uves_free_table       (&tracetable),</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>            <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&bivariate_fit),</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>            tracetable = uves_orderpos_process_chip(</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>                raw_image[raw_index], </div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>                raw_header[raw_index], </div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>                rotated_header[raw_index],</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>                chip, binx, biny,</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>                debug_mode,</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>                USE_GUESS_TAB,</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>                RADX, RADY,</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>                BM_METHOD,</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>                BACKSUBGRID,</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>                BACKSUBRADIUSY,</div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>                BACKSUBKAPPA,</div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>                BACKSUBDEGX, BACKSUBDEGY,</div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>                SAMPLEWIDTH,</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>                MINSLOPE, MAXSLOPE,</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>                SLOPERES,</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>                ord_predict,</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>                norders_is_guess,</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>                PTHRES,</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>                TRACESTEP,</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>                MINTHRESH,</div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>                MAXGAP,</div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>                MAXRMS,</div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>                &DEFPOL1,</div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>                &DEFPOL2,</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>                KAPPA,</div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>                &bivariate_fit,</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>                &norders,</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>                        guess_table)),</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>           <span class="stringliteral">"Error processing chip"</span>);</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>         </div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>         <span class="comment">/* Finished. Save the products */</span></div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Saving products..."</span>);</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>         </div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>         <span class="comment">/* QC parameters should go here.</span></div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> <span class="comment">           Other mandatory keywords (FITS + dfs) are</span></div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span> <span class="comment">           automatically added. */</span></div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>         uves_free_propertylist(&product_header);</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>         product_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span> </div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>         <span class="comment">/* Write number of detected orders */</span></div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gaa74a3b1258870b7dcc7f66c616004055" title="Write the predicted number of order.">uves_pfits_set_ordpred</a>( product_header, norders),</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>            <span class="stringliteral">"Error writing number of detected orders"</span>);</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span> </div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>         <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>         {</div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> </div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( plate_no = <a class="code" href="group__uves__pfits.html#gae70f662017b21fd4d83fa9d7b16fec50" title="read the plate id">uves_flames_pfits_get_plateid</a>(raw_header[raw_index]),</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>                <span class="stringliteral">"Error reading plate id"</span>);</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> </div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>             <a class="code" href="group__uves__pfits.html#ga95b184c2af4a33cac829ff926b10138b" title="Write the plate number.">uves_flames_pfits_set_newplateid</a>(product_header, plate_no);</div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>         }</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> </div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>         <span class="comment">/* Save order trace table */</span></div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>         {</div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>         samples_per_order = </div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>             cpl_image_get_size_x(raw_image[raw_index]) / TRACESTEP;</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>             </div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>         <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>         qclog[0] = <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(raw_header[raw_index], chip);</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_orderpos_qclog(tracetable,</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>                          flames,</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>                          ord_predict,</div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>                          norders,</div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>                          samples_per_order,</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>                          raw_header[raw_index],chip,qclog[0]));</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>         }</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span> </div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>         <span class="keywordflow">if</span> (flames) {</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>             <span class="comment">/* Write polynomial in MIDAS format, as expected </span></div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span> <span class="comment">               by flames_cal_prep_sff_ofpos */</span></div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span> </div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>             <span class="comment">/* Only COEFFI(6) and COEFFI(7) are used */</span></div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>             snprintf(values, 80, <span class="stringliteral">"-1 -1 -1 -1 -1 %d %d"</span>, DEFPOL1, DEFPOL2);</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>             </div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>             uves_propertylist_append_string(product_header, </div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>                                             <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"'COEFFI','I*4'"</span>);</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>             uves_propertylist_append_string(product_header,</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>                                             <span class="stringliteral">"HISTORY"</span>, values);</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>             uves_propertylist_append_string(product_header,</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>                                             <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span> </div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>             <span class="comment">/* Polynomial coeffients */</span></div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>             uves_propertylist_append_string(product_header, </div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>                                             <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"'COEFFD','R*8'"</span>);</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>             {</div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span> </div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>                 <span class="keywordflow">for</span> (j = 0; j <= DEFPOL2; j++) {</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>                     <span class="keywordflow">for</span> (i = 0; i <= DEFPOL1; i++) {</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>                         snprintf(values, 80, <span class="stringliteral">"%g"</span>,</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>                                  <a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(bivariate_fit, i, j));</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>                         uves_propertylist_append_string(product_header,</div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>                                                         <span class="stringliteral">"HISTORY"</span>, values);</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>                     }</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>                 }</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>             }</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>             uves_propertylist_append_string(product_header,</div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>                                             <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span> </div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>             <span class="comment">/* Min - max values */</span></div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>             uves_propertylist_append_string(product_header, </div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>                                             <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"'COEFFR','R*4'"</span>);</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>             snprintf(values, 80, <span class="stringliteral">"%g %g"</span>, </div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>                      cpl_table_get_column_min(tracetable, <span class="stringliteral">"X"</span>),</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>                     cpl_table_get_column_max(tracetable, <span class="stringliteral">"X"</span>));            </div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>             uves_propertylist_append_string(product_header,</div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>                                             <span class="stringliteral">"HISTORY"</span>, values);</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span> </div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>             snprintf(values, 80, <span class="stringliteral">"%g %g"</span>, </div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>                      cpl_table_get_column_min(tracetable, <span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>                      cpl_table_get_column_max(tracetable, <span class="stringliteral">"Order"</span>));</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>             uves_propertylist_append_string(product_header,</div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>                                             <span class="stringliteral">"HISTORY"</span>, values);</div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span> </div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>             uves_propertylist_append_string(product_header,</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>                                             <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>         }</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>         </div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_free(product_filename),</div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>             product_filename = uves_order_table_filename(chip),</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>             uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>                      tracetable,</div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>                      CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>                      CPL_FRAME_TYPE_TABLE,</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>                      CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>                      product_filename,</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>                      UVES_ORD_TAB(flames, chip),</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>                      raw_header[raw_index],</div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>                      product_header,</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>                      NULL,</div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>                      parameters,</div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>                      recipe_id,</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>                      PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>                      qclog,</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>                      starttime, <span class="keyword">true</span>, 0)),</div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>            <span class="stringliteral">"Could not add trace table %s to frameset"</span>, product_filename);</div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>             <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Trace table %s added to frameset"</span>, product_filename);</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>         </div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>         <span class="comment">/* Save polynomial in next extension (don't add header keywords) */</span></div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_polynomial(bivariate_fit, product_filename, NULL),</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>            <span class="stringliteral">"Could not write polynomial to file %s"</span>, product_filename);</div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>         </div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>         <span class="comment">/* Original comment:</span></div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span> <span class="comment">           For compatibility with FLAMES/UVES, create the extension defining</span></div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span> <span class="comment">           that there is only one trace which has zero offset, and that </span></div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span> <span class="comment">           this trace is enabled.</span></div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span> <span class="comment"></span></div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span> <span class="comment">           Update after the implementation of FLAMES support:</span></div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span> <span class="comment">           This extension is not used by FLAMES and is therefore redundant.</span></div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span> <span class="comment">           But for simplicity, keep it as it was</span></div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>         {</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span> </div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>         uves_free_table(&traces);</div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>         traces = <a class="code" href="group__uves__utils.html#ga5498ccadef9be3eee6cfacfac75c7478" title="Create the table that describes fibre traces.">uves_ordertable_traces_new</a>();</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>         <a class="code" href="group__uves__utils.html#gab4d35d91d7acd120872d427842b13942" title="Add a trace.">uves_ordertable_traces_add</a>(traces, 0, 0.0, 1);</div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>         </div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_save(traces,</div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>                       NULL,            <span class="comment">/* Primary header, </span></div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span> <span class="comment">                              ignored when mode is IO_EXTEND */</span></div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>                       NULL,            <span class="comment">/* Extension header               */</span></div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>                       product_filename,<span class="comment">/* This file already exists</span></div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span> <span class="comment">                              (or an error occurs)           */</span></div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>                       CPL_IO_EXTEND),  <span class="comment">/* Append to existing file        */</span></div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>                <span class="stringliteral">"Error appending table to file '%s'"</span>, product_filename);</div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>         }</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>         <span class="comment">/* Finished saving order table */</span></div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>         </div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>         <span class="keywordflow">if</span> (flames) {</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>             <span class="comment">/* Make two calibration frames out of the input frame */</span></div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span> </div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>             <span class="comment">/* Save as integer */</span></div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>             uves_free_image(&raw_image_int);</div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>             raw_image_int = cpl_image_cast(raw_image[raw_index],</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>                            CPL_TYPE_INT);</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span> </div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_free(product_filename),</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>                 product_filename = uves_ordef_filename(chip),</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>                 uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>                          raw_image_int,</div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>                          CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>                          CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>                          CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>                          product_filename,</div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>                          FLAMES_ORDEF(flames, chip),</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>                          raw_header[raw_index],     <span class="comment">/* raw header    */</span></div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>                          rotated_header[raw_index], <span class="comment">/* output header */</span></div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>                          NULL,</div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>                          parameters,</div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>                          recipe_id,</div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>                          PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>                          NULL, <span class="comment">/* No QC */</span></div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>                          starttime, <span class="keyword">false</span>,</div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>                          CPL_STATS_MIN | CPL_STATS_MAX)),</div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>               <span class="stringliteral">"Could not add raw frame %s to frameset"</span>, product_filename);</div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span> </div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Raw frame %s added to frameset"</span>, product_filename);</div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>             uves_free_image(&raw_image_int);</div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>         }</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span> </div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDL"</span>) == 0) {</div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>       }</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span> </div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>         </div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>     } <span class="comment">/* For each chip */</span></div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span> </div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>   cleanup:</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>      <span class="comment">/* Raw */</span></div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>      uves_free_image(&(raw_image[0]));</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>      uves_free_image(&(raw_image[1]));</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>      uves_free_image(&raw_image_int);</div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>      uves_free_propertylist(&(raw_header[0]));</div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>      uves_free_propertylist(&(raw_header[1]));</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>      uves_free_propertylist(&(rotated_header[0]));</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>      uves_free_propertylist(&(rotated_header[1]));</div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span> </div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>     <span class="comment">/* Master bias */</span></div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>     uves_free_image(&master_bias);</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>     uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span> </div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>      <span class="comment">/* Calibration */</span></div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>      uves_free_propertylist(&guess_header);</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>      uves_free_table       (&guess_table);</div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>      </div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>      <span class="comment">/* Product */</span></div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>      <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>      uves_free_table       (&tracetable);</div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>      <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&bivariate_fit);</div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>      uves_free_table       (&traces);</div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>      uves_free_propertylist(&product_header);</div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>      cpl_free(product_filename);</div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>      </div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>      <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span> }</div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_orderpos_qclog(cpl_table* table,</div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>                 <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>                 <span class="keywordtype">int</span> pord, </div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>                 <span class="keywordtype">int</span> dord,</div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>                 <span class="keywordtype">int</span> samples_per_order,</div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>                 <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* raw_header, </div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>                 <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>                 cpl_table* qclog)</div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span> {</div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* chip_name;</div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* grat_name;</div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* ins_mode;</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>     <span class="keywordtype">double</span> grat_wlen=0;</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span> </div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>     <a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>               <span class="stringliteral">"QC TEST1 ID"</span>,</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>               flames ? </div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>               <span class="stringliteral">"Single-Fibre-Order-Definition-Results"</span> :</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>               <span class="stringliteral">"Order-Definition-Results"</span>,</div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>               <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>               <span class="stringliteral">"%s"</span>);</div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span> </div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( chip_name=<a class="code" href="group__uves__pfits.html#ga764b711e645e416c5be3882765baa14e" title="Find out the chip name.">uves_pfits_get_chip_name</a>(raw_header,chip) );</div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>     <span class="comment">/* chip_name = UVES_QC_CHIP_VAL(chip); */</span></div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span> </div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>   <a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>                         <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_CHIP_NAME(chip),<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>                         chip_name,</div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>                         <span class="stringliteral">"Grating unique ID"</span>,</div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>                         <span class="stringliteral">"%s"</span>);</div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span> </div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span> </div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(grat_name=<a class="code" href="group__uves__pfits.html#ga58d2d231e9bcf59d84ce42cf527b2071" title="find out the grating name value">uves_pfits_get_gratname</a>(raw_header,chip));</div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span> </div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span> </div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span> </div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>   <a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>                         <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_GRATNAME(chip),<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>                         grat_name,</div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>                         <span class="stringliteral">"Cross disperser ID"</span>,</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>                         <span class="stringliteral">"%s"</span>);</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span> </div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span> </div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ins_mode=<a class="code" href="group__uves__pfits.html#gaa56bfa63f004c7046a5a5242312a792f" title="find out the chip name value">uves_pfits_get_insmode</a>(raw_header));</div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>   <a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>                         <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_INSMODE,<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>                         ins_mode,</div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>                         <span class="stringliteral">"Instrument mode used."</span>,</div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>                         <span class="stringliteral">"%s"</span>);</div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span> </div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span> </div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(grat_wlen=<a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(raw_header,chip));</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>   <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>                         <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_GRATWLEN(chip),<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>                         grat_wlen,</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>                         <span class="stringliteral">"Grating central wavelength [nm]"</span>,</div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>                         <span class="stringliteral">"%.1f"</span>);</div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span> </div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"chip_name=%s grat_name=%s ins_mode=%s grat_wlen=%f"</span>,</div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>          chip_name,grat_name,ins_mode,grat_wlen);</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span> </div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>   <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>                         <span class="stringliteral">"QC ORD RESIDMIN"</span>,</div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>                         cpl_table_get_column_min(table,<span class="stringliteral">"Residual"</span>),</div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>                         <span class="stringliteral">"min resid in ord def"</span>,</div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>                         <span class="stringliteral">"%8.4f"</span>);</div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span> </div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>   <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>                         <span class="stringliteral">"QC ORD RESIDMAX"</span>,</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>                         cpl_table_get_column_max(table,<span class="stringliteral">"Residual"</span>),</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>                         <span class="stringliteral">"max resid in ord def"</span>,</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>                         <span class="stringliteral">"%8.4f"</span>);</div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span> </div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>   <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>                         <span class="stringliteral">"QC ORD RESIDAVG"</span>,</div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>                         cpl_table_get_column_mean(table,<span class="stringliteral">"Residual"</span>),</div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>                         <span class="stringliteral">"mean resid in ord def"</span>,</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>                         <span class="stringliteral">"%8.4f"</span>);</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span> </div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>   <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>                         <span class="stringliteral">"QC ORD RESIDRMS"</span>,</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>                         cpl_table_get_column_stdev(table,<span class="stringliteral">"Residual"</span>),</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>                         <span class="stringliteral">"rms resid in ord def"</span>,</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>                         <span class="stringliteral">"%8.4f"</span>);</div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span> </div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>   <a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>                         <span class="stringliteral">"QC ORD NPRED"</span>,</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>                         pord,</div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>                         <span class="stringliteral">"predicted number of orders"</span>,</div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>                         <span class="stringliteral">"%d"</span>);</div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span> </div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>   <a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>                         <span class="stringliteral">"QC ORD NDET"</span>,</div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>                         dord,</div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>                         <span class="stringliteral">"detected number of orders"</span>,</div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>                         <span class="stringliteral">"%d"</span>);</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span> </div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>   <a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>              <span class="stringliteral">"QC ORD NPOSALL"</span>,</div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>              dord * samples_per_order,</div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>              <span class="stringliteral">"Number of position found"</span>,</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>              <span class="stringliteral">"%d"</span>);</div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>   </div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>   <a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>              <span class="stringliteral">"QC ORD NPOSSEL"</span>,</div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>              cpl_table_get_nrow(table),</div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>              <span class="stringliteral">"Number of position selected"</span>,</div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>              <span class="stringliteral">"%d"</span>);</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span> </div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>   <a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>                         <span class="stringliteral">"QC ORDMIN"</span>,</div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>                         cpl_table_get_column_min(table,<span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>                         <span class="stringliteral">"Number of position selected"</span>,</div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>                         <span class="stringliteral">"%d"</span>);</div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span> </div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>   <a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>                         <span class="stringliteral">"QC ORDMAX"</span>,</div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>                         cpl_table_get_column_max(table,<span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>                         <span class="stringliteral">"Number of position selected"</span>,</div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>                         <span class="stringliteral">"%d"</span>);</div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span> </div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span> </div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span> </div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>   <span class="comment">/* In later MIDAS versions, these were added: */</span></div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span> </div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>                     <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_READ_SPEED,<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>                     <a class="code" href="group__uves__pfits.html#ga5dc4ab669bc41d6c481905c16afa59a0" title="find out the readout speed">uves_pfits_get_readspeed</a>(raw_header),</div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>                     <span class="stringliteral">"Readout speed"</span>,</div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>                     <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>   </div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>                  <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_BINX, <span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>                  <a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(raw_header),</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>                  <span class="stringliteral">"Binning factor along X"</span>,</div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>                  <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>   </div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>                  <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_BINY, <span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>                  <a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(raw_header),</div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>                  <span class="stringliteral">"Binning factor along Y"</span>,</div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>                  <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>   </div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>                     <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_INSPATH,<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>                     <a class="code" href="group__uves__pfits.html#gaeefa3dc2dbf45776accef00f67b7002f" title="find out the chip name value">uves_pfits_get_inspath</a>(raw_header),</div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>                     <span class="stringliteral">"Optical path used (h)."</span>,</div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>                     <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>     </div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>  cleanup:</div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span> </div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__orderpos__body_8h_source.html b/html/uves__orderpos__body_8h_source.html
deleted file mode 100644
index 3de282c..0000000
--- a/html/uves__orderpos__body_8h_source.html
+++ /dev/null
@@ -1,122 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_orderpos_body.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_orderpos_body.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:04 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.3  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.2  2006/10/26 14:03:31  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Fixed position of const modifier</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.1  2006/10/24 14:03:00  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Factored out common UVES/FLAMES code</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.10  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#ifndef UVES_ORDERPOS_BODY_H</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_ORDERPOS_BODY_H</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> uves_orderpos_define_parameters_body(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> uves_orderpos_exe_body(cpl_frameset *frames,</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>                <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>                <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime);</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_orderpos_desc_short;</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_orderpos_desc;</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_ORDERPOS_BODY_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__orderpos__follow_8c_source.html b/html/uves__orderpos__follow_8c_source.html
deleted file mode 100644
index d515514..0000000
--- a/html/uves__orderpos__follow_8c_source.html
+++ /dev/null
@@ -1,1717 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_orderpos_follow.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_orderpos_follow.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 14:03:53 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.44 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.43  2010/09/24 09:32:04  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.41  2010/05/06 14:55:29  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * clearer error message</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.40  2007/08/30 07:56:54  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * fixed some doxygen warnings</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.39  2007/08/23 08:16:40  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Indentation change</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.38  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.37  2007/06/28 09:18:01  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Return actualy polynomial degree used</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.36  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.35  2007/05/22 14:09:56  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * removed compilation warnings</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.34  2007/05/14 15:57:15  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Avoid tracing orders at very edge of chip</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.33  2007/04/12 14:02:24  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Made robust against input orders outside image</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.32  2007/04/12 12:02:09  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Decreased verbosity</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.31  2007/04/10 07:07:25  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Changed interface of polynomial_regression_2d()</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.30  2007/03/30 07:07:28  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Fixed mixed code and variable definitions</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.29  2007/03/28 14:02:21  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Removed unused parameter</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.28  2007/03/28 11:39:09  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Killed MIDAS flag, removed dead code</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.27  2007/03/05 10:17:03  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Support slope parameter in 1d fitting</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.26  2007/02/26 11:56:39  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Made fitting (even) more robust against points with low sigma</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.25  2007/01/17 13:26:18  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Added comment</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.24  2007/01/15 08:46:25  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * More robust polynomial fitting</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.23  2006/11/23 10:04:31  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Minor message change</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.22  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.20  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.19  2006/11/13 14:23:55  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Removed workarounds for CPL const bugs</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Revision 1.18  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Revision 1.17  2006/08/23 09:33:03  jmlarsen</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> * Renamed local variables shadowing POSIX reserved names</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Revision 1.16  2006/08/17 14:40:06  jmlarsen</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Revision 1.15  2006/08/17 14:33:28  jmlarsen</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * Added missing opening bracket</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Revision 1.14  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Revision 1.13  2006/08/17 09:18:27  jmlarsen</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> * Removed CPL2 code</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Revision 1.12  2006/08/10 10:52:41  jmlarsen</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> * Removed workaround for cpl_image_get_bpm</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Revision 1.11  2006/08/08 11:27:18  amodigli</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * upgrade to CPL3</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Revision 1.10  2006/07/14 12:22:17  jmlarsen</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Do not use uncertainties in linear fit</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Revision 1.9  2006/07/03 14:20:39  jmlarsen</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * Exclude bad pixels from order tracing</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Revision 1.8  2006/05/12 15:05:49  jmlarsen</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * Pass image bpm as extra parameter to fitting routine for efficiency reasons</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Revision 1.7  2006/04/24 09:34:26  jmlarsen</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * Adapted to new interface of gaussian fitting routine</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Revision 1.6  2006/04/10 12:38:43  jmlarsen</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> * Minor layout change</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Revision 1.5  2006/04/06 08:44:16  jmlarsen</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * Renamed shadowing variables</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Revision 1.4  2006/03/24 14:12:18  jmlarsen</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Use MIDAS default values for polynomial degree if MIDAS flag is set</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Revision 1.3  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Revision 1.2  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Revision 1.42  2006/01/25 16:15:59  jmlarsen</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * Changed interface of gauss.fitting routine</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Revision 1.41  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Revision 1.40  2006/01/12 15:41:14  jmlarsen</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Moved gauss. fitting to irplib</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Revision 1.39  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor">#include <uves_orderpos_follow.h></span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="preprocessor">#include <uves_plot.h></span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="keyword">static</span> cpl_table * <a class="code" href="group__uves__orderpos.html#ga2fcc313cc2f28775bd7aef5abb670751" title="Trace a single order line.">trace_order</a>(<span class="keyword">const</span> cpl_table *ordertable, <span class="keywordtype">int</span> order,</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                    <span class="keyword">const</span> cpl_image *inputimage, <span class="keyword">const</span> cpl_image *noise,</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                    <span class="keyword">const</span> cpl_binary *image_bad,</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                    <span class="keywordtype">int</span> TRACESTEP, </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>                    <span class="keywordtype">double</span> MAXGAP);</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="keyword">static</span> <span class="keywordtype">int</span>            <a class="code" href="group__uves__orderpos.html#ga9ec0c0699858aa2709832fdf9732abee" title="Count orders in trace table.">count_orders</a>(<span class="keyword">const</span> cpl_table *tracetable);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="keyword">static</span> <span class="keywordtype">double</span>         <a class="code" href="group__uves__orderpos.html#ga63321f80b5c307c048cd012e43413dad" title="Make a linear fit of an order trace.">fit_order_linear</a>(cpl_table *singletrace, <span class="keywordtype">int</span> order, <span class="keywordtype">double</span> KAPPA,</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>                                        <span class="keywordtype">double</span> *slope);</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="keyword">static</span> <span class="keywordtype">int</span>      <a class="code" href="group__uves__orderpos.html#ga298b3cff7b38cee645a3155095f84981" title="Calculate the x-center of an order.">get_xcenter</a>(<span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny, cpl_table *ordertab, <span class="keywordtype">int</span> row);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="keyword">static</span> <span class="keywordtype">int</span>      <a class="code" href="group__uves__orderpos.html#gad2aa37539bc348053e032bb462c4fc2f" title="Calculate the y-center of an order.">get_ycenter</a>(<span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny, cpl_table *ordertab, <span class="keywordtype">int</span> row);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="keyword">static</span> <span class="keywordtype">int</span>  <a class="code" href="group__uves__orderpos.html#gaee8ec7c4e8d83a1ef168f5c1c7c485a7" title="Calculate the length of an order line.">get_orderlength</a>(<span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny, cpl_table *ordertab, <span class="keywordtype">int</span> row);</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__orderpos.html#ga1b3faad60deb05543392b7d0761c42e2" title="Calculate threshold for order tracing algorithm.">estimate_threshold</a>(<span class="keyword">const</span> cpl_image *inputimage, </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>                  <span class="keyword">const</span> cpl_image *nosie, </div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>                  cpl_table *ordertable, </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>                  <span class="keywordtype">int</span> row, <span class="keywordtype">double</span> relative_threshold);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="group__uves__orderpos.html#ga940d9bec43c7580b6044ccc0781f6508" title="Find order line centroid.">find_centroid</a>(<span class="keyword">const</span> cpl_image *inputimage, </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>               <span class="keyword">const</span> cpl_image *noise,</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>               <span class="keyword">const</span> cpl_binary *image_bad, </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>               <span class="keywordtype">double</span> threshold, <span class="keywordtype">int</span> spacing, <span class="keywordtype">int</span> x, <span class="keywordtype">double</span> *yguess, </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>               <span class="keywordtype">double</span> *dY);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> cpl_table *</div>
-<div class="line"><a name="l00250"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#ga24ea1bc4c54b9e30dc5cb6edb0671ec2">  250</a></span> <a class="code" href="group__uves__orderpos.html#ga24ea1bc4c54b9e30dc5cb6edb0671ec2" title="Trace all orders.">uves_locate_orders</a>(<span class="keyword">const</span> cpl_image *inputimage, </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>                    <span class="keyword">const</span> cpl_image *noise,</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>                    cpl_table *ordertable, </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>                    <span class="keywordtype">int</span> TRACESTEP, </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>                    <span class="keywordtype">double</span> MINTHRESH,</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                    <span class="keywordtype">double</span> MAXGAP,</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                    <span class="keywordtype">double</span> MAXRMS, </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                    <span class="keywordtype">int</span> *DEFPOL1, </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                    <span class="keywordtype">int</span> *DEFPOL2, </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                    <span class="keywordtype">double</span> KAPPA, </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>                    <a class="code" href="struct__polynomial.html">polynomial</a> **bivariate_fit, </div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                    <span class="keywordtype">int</span> *orders_traced)</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> {</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     cpl_table *tracetable  = NULL;  <span class="comment">/* The result */</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     cpl_table *singletrace = NULL;  <span class="comment">/* Location of one order */</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     cpl_table *temp        = NULL;  <span class="comment">/* Temporary  */</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     <span class="keyword">const</span> cpl_mask *image_badmap = NULL;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     <span class="keyword">const</span> cpl_binary *image_bad  = NULL;</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     <span class="keywordtype">int</span> N;  <span class="comment">/* Initial number of orders detected */</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     <span class="keywordtype">double</span> mse, red_chisq;</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( inputimage != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( noise != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     assure( cpl_image_get_size_x(inputimage) == cpl_image_get_size_x(noise) &&</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>             cpl_image_get_size_y(inputimage) == cpl_image_get_size_y(noise),</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>             CPL_ERROR_INCOMPATIBLE_INPUT, </div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>             <span class="stringliteral">"Image sizes are %"</span> CPL_SIZE_FORMAT <span class="stringliteral">"x%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" and %"</span> CPL_SIZE_FORMAT <span class="stringliteral">"x%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>             cpl_image_get_size_x(inputimage), cpl_image_get_size_x(noise),</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>             cpl_image_get_size_y(inputimage), cpl_image_get_size_y(noise));</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( ordertable != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     assure( cpl_table_get_ncol(ordertable) == 4, </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                   CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>                   <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" columns found. 4 expected"</span>,</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                   cpl_table_get_ncol(ordertable));</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     assure( cpl_table_has_column(ordertable, <span class="stringliteral">"Intersept"</span>),</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>                   CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>                   <span class="stringliteral">"Missing column Intersept"</span>);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     assure( cpl_table_has_column(ordertable, <span class="stringliteral">"Slope"</span>),</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>                   CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>                   <span class="stringliteral">"Missing column Slope"</span>);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     assure( cpl_table_has_column(ordertable, <span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>                   CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                   <span class="stringliteral">"Missing column Order"</span>);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     assure( cpl_table_has_column(ordertable, <span class="stringliteral">"Spacing"</span>),</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>                   CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>                   <span class="stringliteral">"Missing column Spacing"</span>);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( DEFPOL1 != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( DEFPOL2 != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     image_badmap = cpl_image_get_bpm_const(inputimage);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     image_bad    = cpl_mask_get_data_const(image_badmap);</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     N = cpl_table_get_nrow(ordertable);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     *bivariate_fit = NULL;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="comment">/* Initialise result table */</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( tracetable = cpl_table_new(0),</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>         cpl_table_new_column(tracetable, <span class="stringliteral">"Order"</span>          , CPL_TYPE_INT),</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>         cpl_table_new_column(tracetable, <span class="stringliteral">"X"</span>              , CPL_TYPE_INT),</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>         cpl_table_new_column(tracetable, <span class="stringliteral">"Y"</span>              , CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>         cpl_table_new_column(tracetable, <span class="stringliteral">"dY"</span>             , CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>         cpl_table_new_column(tracetable, <span class="stringliteral">"Residual_Square"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>         cpl_table_new_column(tracetable, <span class="stringliteral">"OrderRMS"</span>       , CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>             cpl_table_new_column(tracetable, <span class="stringliteral">"OrderSlope"</span>     , CPL_TYPE_DOUBLE)),  </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>       <span class="comment">/* The order's RMS (from linear fit) */</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>       <span class="stringliteral">"Could not initialize order trace table"</span>);</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     <span class="comment">/* Info about the order */</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_new_column(ordertable, <span class="stringliteral">"Xcenter"</span>,      CPL_TYPE_INT),</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>         cpl_table_new_column(ordertable, <span class="stringliteral">"Ycenter"</span>,      CPL_TYPE_INT),</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>         cpl_table_new_column(ordertable, <span class="stringliteral">"OrderLength"</span>,  CPL_TYPE_INT),</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>         cpl_table_new_column(ordertable, <span class="stringliteral">"Threshold"</span>,    CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>         cpl_table_new_column(ordertable, <span class="stringliteral">"MinThreshold"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>         cpl_table_new_column(ordertable, <span class="stringliteral">"RMS"</span>,          CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>         cpl_table_new_column(ordertable, <span class="stringliteral">"TraceSlope"</span>,   CPL_TYPE_DOUBLE)),</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>         <span class="stringliteral">"Could not add columns to order table"</span>);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     *orders_traced = 0;</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     <span class="comment">/* Trace all orders and make a linear fit */</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     <span class="keywordflow">for</span> (order = 1; order <= N; order++)</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     {</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>             <span class="comment">/* Calculate parameters used for tracing */</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>         <span class="keywordtype">int</span> nx = cpl_image_get_size_x(inputimage);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>         <span class="keywordtype">int</span> ny = cpl_image_get_size_y(inputimage);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>         <span class="keywordtype">int</span> points_traced = 0;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>             <span class="keywordtype">int</span> xc = <a class="code" href="group__uves__orderpos.html#ga298b3cff7b38cee645a3155095f84981" title="Calculate the x-center of an order.">get_xcenter</a> (nx, ny, ordertable, order - 1);</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>             <span class="keywordtype">int</span> yc = <a class="code" href="group__uves__orderpos.html#gad2aa37539bc348053e032bb462c4fc2f" title="Calculate the y-center of an order.">get_ycenter</a> (nx, ny, ordertable, order - 1);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>             </div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_set_int(ordertable, <span class="stringliteral">"Xcenter"</span>     , order - 1, xc),</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>                     <span class="comment">/* Order n is at row n-1 */</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>                     cpl_table_set_int(ordertable, <span class="stringliteral">"Ycenter"</span>     , order - 1, yc),</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>                     cpl_table_set_int(ordertable, <span class="stringliteral">"OrderLength"</span> , order - 1, </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>                                       <a class="code" href="group__uves__orderpos.html#gaee8ec7c4e8d83a1ef168f5c1c7c485a7" title="Calculate the length of an order line.">get_orderlength</a> (nx, ny, ordertable, order - 1))),</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>                   <span class="stringliteral">"Could not calculate order line geometry"</span>);</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>             </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>             <span class="keywordflow">if</span> (!(1 <= xc && xc <= nx && 1 <= yc && yc <= ny))</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>                 {</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Order %d: Center of order (%d, %d) is outside image "</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>                                      <span class="stringliteral">"(intersept = %.2f, slope = %f)"</span>,</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>                                      order, xc, yc, </div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>                                      cpl_table_get_double(ordertable, <span class="stringliteral">"Intersept"</span>, order-1, NULL),</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>                                      cpl_table_get_double(ordertable, <span class="stringliteral">"Slope"</span>, order-1, NULL));</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>                 }</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>                 {</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_set_double(</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>                                ordertable, <span class="stringliteral">"Threshold"</span>   , order - 1, </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>                                <a class="code" href="group__uves__orderpos.html#ga1b3faad60deb05543392b7d0761c42e2" title="Calculate threshold for order tracing algorithm.">estimate_threshold</a>(inputimage, noise, ordertable, order - 1, -1<span class="comment">/*not used*/</span>)),</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>                            <span class="stringliteral">"Could not calculate max. threshold"</span>);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_set_double(</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>                                ordertable, <span class="stringliteral">"MinThreshold"</span>, order - 1,</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>                                <a class="code" href="group__uves__orderpos.html#ga1b3faad60deb05543392b7d0761c42e2" title="Calculate threshold for order tracing algorithm.">estimate_threshold</a>(inputimage, noise, ordertable, order - 1, MINTHRESH)),</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>                            <span class="stringliteral">"Could not calculate min. threshold"</span>);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>                 }</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>         </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>         <span class="comment">/* Trace this order */</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>         uves_free_table(&singletrace);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( singletrace = <a class="code" href="group__uves__orderpos.html#ga2fcc313cc2f28775bd7aef5abb670751" title="Trace a single order line.">trace_order</a>(ordertable,</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>                          order,</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                          inputimage,</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>                          noise,</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>                          image_bad,</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>                          TRACESTEP,</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                                              MAXGAP),</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>            <span class="stringliteral">"Error occured while tracing order #%d"</span>, order);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(  points_traced = cpl_table_get_nrow(singletrace), <span class="stringliteral">"Could not read table size"</span>);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_get_ncol(singletrace) == 3, <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>, cpl_table_get_ncol(singletrace));</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"X"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"Y"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"dY"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>         </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>         <span class="comment">/* If no points could be located, issue a warning</span></div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> <span class="comment">           and continue with the next order  */</span></div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>         <span class="keywordflow">if</span> (points_traced == 0)</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         {</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Could not trace order #%d"</span>, order);</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_set_invalid(ordertable, <span class="stringliteral">"RMS"</span>, order - 1),</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>                <span class="stringliteral">"Could not flag order %d RMS as invalid"</span>, order);</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>         }</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>         <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         { <span class="comment">/* At least one x-position of this order was traced */</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>             <span class="keywordtype">double</span> rms=0;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                     <span class="keywordtype">double</span> slope=0;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>             </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>             <span class="comment">/* Fit order (linear) and write RMS to trace </span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="comment">               table and to (hough) order table */</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( rms = <a class="code" href="group__uves__orderpos.html#ga63321f80b5c307c048cd012e43413dad" title="Make a linear fit of an order trace.">fit_order_linear</a>(singletrace, order, KAPPA, &slope),</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>                <span class="stringliteral">"Creating linear fit of order #%d failed"</span>, order);</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_set_double(ordertable, <span class="stringliteral">"RMS"</span>, order - 1, rms),</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                 cpl_table_fill_column_window_double(singletrace, <span class="stringliteral">"OrderRMS"</span>, </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                                 0, points_traced, rms)),</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>               <span class="stringliteral">"Could not write RMS of order #%d to tables"</span>, order);</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>             </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_set_double(ordertable, <span class="stringliteral">"TraceSlope"</span>, order - 1, slope),</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                 cpl_table_fill_column_window_double(singletrace, <span class="stringliteral">"OrderSlope"</span>, </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                                 0, points_traced, slope)),</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>               <span class="stringliteral">"Could not write slope of order #%d to tables"</span>, order);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>             </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_get_ncol(singletrace) == 7, <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                  cpl_table_get_ncol(singletrace));</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"X"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"Y"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"dY"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"Linear fit"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"Residual_Square"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"OrderRMS"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"OrderSlope"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>             <span class="comment">/* Remove unnecessary column before appending */</span></div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_erase_column(singletrace, <span class="stringliteral">"Linear fit"</span>),</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>                <span class="stringliteral">"Could not delete column 'Linear fit'"</span>);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>             </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>             <span class="comment">/* Write current order number to single order table */</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_new_column(singletrace, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT),</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>                 cpl_table_fill_column_window_int(</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>                 singletrace, <span class="stringliteral">"Order"</span>, </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>                 0, cpl_table_get_nrow(singletrace), order)</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>                   ),</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>               <span class="stringliteral">"Could not create new column 'Order'"</span>);</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>             </div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>             <span class="comment">/* The two tables now contain the same columns */</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_compare_structure(singletrace, tracetable) == 0, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>             </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>             <span class="comment">/* Append to 'tracetable' */</span></div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_insert(tracetable, singletrace,</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>                         cpl_table_get_nrow(tracetable)), </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>                <span class="stringliteral">"Could not append single order #%d to trace table"</span>, order);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>             </div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>             *orders_traced += 1;</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>         }</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>         </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     }<span class="comment">/*  for ... order */</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     <span class="comment">/* Plot initial (before rejection) order tracing */</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_table(tracetable, <span class="stringliteral">"X"</span>, <span class="stringliteral">"Y"</span>,</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                <span class="stringliteral">"Initial trace (%d orders)"</span>, *orders_traced),</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>        <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>     <span class="comment">/* The trace table now contains these columns */</span></div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_get_ncol(tracetable) == 7, <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>, cpl_table_get_ncol(tracetable));</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(tracetable, <span class="stringliteral">"X"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(tracetable, <span class="stringliteral">"Order"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(tracetable, <span class="stringliteral">"Y"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(tracetable, <span class="stringliteral">"dY"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(tracetable, <span class="stringliteral">"Residual_Square"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(tracetable, <span class="stringliteral">"OrderRMS"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(tracetable, <span class="stringliteral">"OrderSlope"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>     assure(*orders_traced >= 1, CPL_ERROR_ILLEGAL_OUTPUT, <span class="stringliteral">"No orders could be traced"</span>);</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     <span class="comment">/* Remove badly traced orders from 'tracetable' */</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     {</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     <span class="keywordtype">double</span> maxrms;</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     <span class="keywordtype">int</span> orders_rejected;</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( maxrms = </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>            uves_max_double(0.05, MAXRMS * cpl_table_get_column_median(ordertable, <span class="stringliteral">"RMS"</span>)),</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>            <span class="stringliteral">"Could not read median RMS"</span>);</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     </div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Maximum admissible RMS is %.2f pixels"</span>, maxrms);</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>     <span class="comment">/* Select orders with RMS > maxrms */</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( orders_rejected = uves_select_table_rows(</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>            ordertable, <span class="stringliteral">"RMS"</span>, CPL_GREATER_THAN, maxrms),</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>            <span class="stringliteral">"Could not select rows in order table"</span>);</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     <span class="comment">/* Delete rows from trace table */</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     <span class="keywordflow">if</span> (orders_rejected > 0) </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>         {</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"%d order(s) rejected because RMS "</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>                  <span class="stringliteral">"(from linear fit) was too large"</span>, orders_rejected);</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>         </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>         <span class="comment">/* Delete rejected orders from 'tracetable' */</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(  uves_erase_table_rows(tracetable, <span class="stringliteral">"OrderRMS"</span>, </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>                           CPL_GREATER_THAN, maxrms),</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>             <span class="stringliteral">"Could not erase bad orders from trace table"</span>);</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>         </div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>         <span class="comment">/* Don't remove from 'ordertable' */</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>         }</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>         {</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"All RMSs are less than %.2f"</span>, maxrms);</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>         }</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>         <span class="comment">/* Reject based on line slope </span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> <span class="comment">           (this is not the slope from a Hough transform</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> <span class="comment">           but the slope measured after tracing the order)</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( orders_rejected = </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>                uves_select_table_rows(</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>                    ordertable, <span class="stringliteral">"TraceSlope"</span>, CPL_GREATER_THAN, 0.5) +</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>                uves_select_table_rows(</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>                    ordertable, <span class="stringliteral">"TraceSlope"</span>, CPL_LESS_THAN, -0.5));</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>         </div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>         <span class="keywordflow">if</span> (orders_rejected > 0) {</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"%d order(s) rejected because slope was outside [-0.5 ; 0.5]"</span>,</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>                              orders_rejected);</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_erase_table_rows(tracetable, <span class="stringliteral">"OrderSlope"</span>,</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>                                          CPL_GREATER_THAN, 0.5));</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_erase_table_rows(tracetable, <span class="stringliteral">"OrderSlope"</span>,</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                                          CPL_LESS_THAN, -0.5));</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>         }</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"All line slopes are within [-0.5 ; 0.5]"</span>);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>         }</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     }</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     <span class="comment">/* Remove points with too low 'dY', </span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> <span class="comment">     * they would have too much weight in fit.</span></div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     {</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     <span class="keywordtype">double</span> dy_median = cpl_table_get_column_median(tracetable, <span class="stringliteral">"dY"</span>);</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>         <span class="keywordtype">double</span> threshold = 0.40*dy_median;</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>         <span class="keywordtype">int</span> nreject;</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> </div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( nreject = uves_erase_table_rows(tracetable, <span class="stringliteral">"dY"</span>, CPL_LESS_THAN, </div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>                                                      threshold) );</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Rejected %d points with dY less than %f pixels (median = %f pixels)"</span>,</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>                        nreject, threshold, dy_median);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     }</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> </div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     <span class="comment">/* Auto-detect optimal pol. degree if it is negative </span></div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> <span class="comment">     * (i.e. not specified)</span></div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     <span class="keywordflow">if</span> (*DEFPOL1 < 0 || *DEFPOL2 < 0)</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>     {</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>         <span class="keywordtype">int</span> deg1, deg2;            <span class="comment">/* Current degrees                            */</span></div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>         <span class="keywordtype">int</span> new_deg1, new_deg2;    <span class="comment">/* New degrees                                */</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>         <span class="keywordtype">double</span> red_chisq1, mse1;   <span class="comment">/* Reduced chi^sq, mse  for  (DEG1+1, DEG2  ) */</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>         <span class="keywordtype">double</span> red_chisq2, mse2;   <span class="comment">/* Reduced chi^sq, mse  for  (DEG1  , DEG2+1) */</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>         <span class="keywordtype">double</span> red_chisq3, mse3;   <span class="comment">/* Reduced chi^sq, mse  for  (DEG1+1, DEG2+1) */</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>         <span class="keywordtype">bool</span> adjust1 = (*DEFPOL1 < 0);   <span class="comment">/* Flags indicating if DEFPOL1/DEFPOL2</span></div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> <span class="comment">                           should be adjusted */</span></div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>         <span class="keywordtype">bool</span> adjust2 = (*DEFPOL2 < 0);   <span class="comment">/*   (or is held constant)               */</span></div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>         <span class="keywordtype">int</span> finished;                   <span class="comment">/* 0 = finished, </span></div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> <span class="comment">                           1 = moved to (DEG1+1, DEG2  )</span></div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> <span class="comment">                           2 = moved to (DEG1  , DEG2+1)</span></div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> <span class="comment">                           3 = moved to (DEG1+1, DEG2+1)         */</span></div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>         <span class="keywordtype">int</span> number_of_orders  = 0;      <span class="comment">/* The number of order lines left after </span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> <span class="comment">                           kappa-sigma clipping */</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>         <span class="keywordtype">int</span> number_of_orders1 = 0;</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>         <span class="keywordtype">int</span> number_of_orders2 = 0;</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>         <span class="keywordtype">int</span> number_of_orders3 = 0;</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>         <span class="keywordflow">if</span> (adjust1)</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>         {</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>             <span class="comment">/* Initialize */</span></div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>             *DEFPOL1 = 1;</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>             deg1 = 1; </div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>         }</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>         {</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>             <span class="comment">/* Don't modify */</span></div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>             deg1 = *DEFPOL1;</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>         }</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>         <span class="keywordflow">if</span> (adjust2)</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>         {</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>             <span class="comment">/* Initialize */</span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>             *DEFPOL2 = 1;</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>             deg2 = 1; </div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>         }</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>         {</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>             <span class="comment">/* Don't modify */</span></div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>             deg2 = *DEFPOL2;</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>         }</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> </div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>         uves_free_table(&temp);</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>         temp = cpl_table_duplicate(tracetable);</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(bivariate_fit);</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *bivariate_fit = <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>                temp,</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>                <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Y"</span>, <span class="stringliteral">"dY"</span>,</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>                deg1,</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>                deg2,</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>                NULL, NULL, NULL,            <span class="comment">/* No extra columns       */</span></div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>                &mse, &red_chisq,</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>                NULL,                        <span class="comment">/* No variance polynomial */</span></div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>                KAPPA, -1),</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>            <span class="stringliteral">"Error fitting orders"</span>);</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( number_of_orders = <a class="code" href="group__uves__orderpos.html#ga9ec0c0699858aa2709832fdf9732abee" title="Count orders in trace table.">count_orders</a>(temp),</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>            <span class="stringliteral">"Error counting orders"</span>);</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>         </div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>         <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"(%d, %d)-degree: RMS = %.3f pixels. "</span></div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>              <span class="stringliteral">"Red.chi^2 = %.2f (%d orders) *"</span>,</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>              deg1,</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>              deg2,</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>              sqrt(mse),</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>              red_chisq,</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>              number_of_orders);</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> </div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>         <span class="comment">/* Find best values of deg1, deg2 less than or equal to 8,8</span></div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> <span class="comment">           (the fitting algorithm is unstable after this point, anyway) </span></div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> <span class="comment"></span></div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>         <span class="keywordflow">do</span></div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>         {</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>             <span class="keywordtype">int</span> maxdegree = 6;</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>             finished = 0;</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>             </div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>             adjust1 = adjust1 && (deg1 + 1 <= maxdegree);</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>             adjust2 = adjust2 && (deg2 + 1 <= maxdegree);</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>             </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>             <span class="comment">/* Try (deg1+1, deg2) */</span></div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>             <span class="keywordflow">if</span> (adjust1)</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>             {</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>                 uves_free_table(&temp);</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>                 temp = cpl_table_duplicate(tracetable);</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>                 <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(bivariate_fit);</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>                 *bivariate_fit = <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>                 temp,</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>                 <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Y"</span>, <span class="stringliteral">"dY"</span>,</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>                 deg1 + 1,</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>                 deg2,</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>                 NULL, NULL, NULL,  <span class="comment">/* extra columns */</span></div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>                 &mse1, &red_chisq1,</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>                 NULL,              <span class="comment">/* variance polynomial */</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>                 KAPPA, -1);</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span> </div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>                 <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX)</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>                 {</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>                     <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>                     mse1 = -1;</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>                     red_chisq1 = DBL_MAX/2;</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>                 }</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>                 {</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>                     assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>                         cpl_error_get_code(),</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>                         <span class="stringliteral">"Error fitting orders"</span>);</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> </div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( number_of_orders1 = <a class="code" href="group__uves__orderpos.html#ga9ec0c0699858aa2709832fdf9732abee" title="Count orders in trace table.">count_orders</a>(temp),</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>                    <span class="stringliteral">"Error counting orders"</span>);</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>                 }</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>             }</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span> </div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>             <span class="comment">/* Try (deg1, deg2+1) */</span></div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>             <span class="keywordflow">if</span> (adjust2)</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>             {</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>                 uves_free_table(&temp);</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>                 temp = cpl_table_duplicate(tracetable);</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>                 <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(bivariate_fit);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>                 *bivariate_fit = <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>                 temp,</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                 <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Y"</span>, <span class="stringliteral">"dY"</span>,</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>                 deg1,</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                 deg2 + 1,</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                 NULL, NULL, NULL,            <span class="comment">/* No extra columns       */</span></div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>                 &mse2, &red_chisq2,</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>                 NULL,                        <span class="comment">/* No variance polynomial */</span></div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>                 KAPPA, -1);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> </div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>                 <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX)</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                 {</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>                     <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>                     mse2 = -1;</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>                     red_chisq2 = DBL_MAX/2;</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>                 }</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>                 {</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                     assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                         cpl_error_get_code(),</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                         <span class="stringliteral">"Error fitting orders"</span>);</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>                     </div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( number_of_orders2 = <a class="code" href="group__uves__orderpos.html#ga9ec0c0699858aa2709832fdf9732abee" title="Count orders in trace table.">count_orders</a>(temp),</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>                        <span class="stringliteral">"Error counting orders"</span>);            </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>                 }</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>             }</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>             </div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>             <span class="comment">/* Try (deg1+1, deg2+1) */</span></div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>             <span class="keywordflow">if</span> (adjust1 && adjust2)</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>             {</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>                 uves_free_table(&temp);</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>                 temp = cpl_table_duplicate(tracetable);</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                 <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(bivariate_fit);</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>                 *bivariate_fit = <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>                 temp,</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>                 <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Y"</span>, <span class="stringliteral">"dY"</span>,</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>                 deg1 + 1,</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>                 deg2 + 1,</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>                 NULL, NULL, NULL,       <span class="comment">/* extra columns       */</span></div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>                 &mse3, &red_chisq3,</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                 NULL,                   <span class="comment">/* variance polynomial */</span></div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>                 KAPPA, -1);</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> </div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>                 <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX)</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>                 {</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>                     <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>                     mse3 = -1;</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>                     red_chisq3 = DBL_MAX/2;</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>                 }</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>                 {</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>                     assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>                         cpl_error_get_code(),</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>                         <span class="stringliteral">"Error fitting orders"</span>);</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>                     </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( number_of_orders3 = <a class="code" href="group__uves__orderpos.html#ga9ec0c0699858aa2709832fdf9732abee" title="Count orders in trace table.">count_orders</a>(temp),</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>                        <span class="stringliteral">"Error counting orders"</span>);</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>                 }</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>             }</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>             </div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>             <span class="comment">/* If fit is significantly better (say, 10% improvement</span></div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> <span class="comment">             * in chi^2) in either direction, (in (degree,degree)-space) </span></div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span> <span class="comment">             * then move in that direction.</span></div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> <span class="comment">             * First try to move one step horizontal/vertical, </span></div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span> <span class="comment">             * otherwise try to move</span></div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> <span class="comment">             * diagonally (i.e. increase both degrees)</span></div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> <span class="comment">             * Assign to DEFPOL1/2 only if enough orders were detected.</span></div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>             </div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>             new_deg1 = deg1;</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>             new_deg2 = deg2;</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>             <span class="keywordflow">if</span> (adjust1 && mse1 >= 0 && (red_chisq - red_chisq1)/red_chisq > 0.1 &&</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>             red_chisq1 <= red_chisq2)</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>             {</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>                 new_deg1++;</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>                 mse = mse1;</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>                 red_chisq = red_chisq1;</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>                 finished = 1;</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> </div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>                 <span class="keywordflow">if</span> (number_of_orders1 >= number_of_orders)</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>                 {</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>                     *DEFPOL1 = new_deg1;</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>                     *DEFPOL2 = new_deg2;</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>                     number_of_orders = number_of_orders1;</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>                 }</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>             }</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (adjust2 && mse2 >= 0 && (red_chisq - red_chisq2)/red_chisq > 0.1 && </div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>                  red_chisq2 < red_chisq1)</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>             {</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>                 new_deg2++;</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>                 mse = mse2;</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>                 red_chisq = red_chisq2;</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>                 finished = 2;</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span> </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>                 <span class="keywordflow">if</span> (number_of_orders2 >= number_of_orders)</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>                 {</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>                     *DEFPOL1 = new_deg1;</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>                     *DEFPOL2 = new_deg2;</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>                     number_of_orders = number_of_orders2;</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>                 }</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>             }</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (adjust1 && adjust2 && </div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>                  mse3 >= 0 && (red_chisq - red_chisq3)/red_chisq > 0.1)</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>             {</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>                 new_deg1++;</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>                 new_deg2++;</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>                 mse = mse3;</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>                 red_chisq = red_chisq3;</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>                 finished = 3;</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>                 <span class="keywordflow">if</span> (number_of_orders3 >= number_of_orders)</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>                 {</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>                     *DEFPOL1 = new_deg1;</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>                     *DEFPOL2 = new_deg2;</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>                     number_of_orders = number_of_orders3;</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>                 }</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>             }</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> </div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>             <span class="comment">/* Print mse, chi^2, ...</span></div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> <span class="comment">             * Add a star '*' at the better solution (if any).</span></div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>             <span class="keywordflow">if</span> (adjust1)</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>             {</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>                 <span class="keywordflow">if</span> (mse1 >= 0)</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>                 {</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>                     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"(%d, %d)-degree: RMS = %.3f pixels. "</span></div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>                          <span class="stringliteral">"Red.chi^2 = %.3f (%d orders)%s"</span>,</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>                          deg1 + 1,</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>                          deg2,</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>                          sqrt(mse1),</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>                          red_chisq1,</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>                          number_of_orders1,</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>                          (finished == 1) ? <span class="stringliteral">" *"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>                 }</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>                 {</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>                     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"(%d, %d)-degree: Singular matrix"</span>,</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>                          deg1 + 1,</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>                          deg2);</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>                 }</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>             }</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> </div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>             <span class="keywordflow">if</span> (adjust2)</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>             {</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>                 <span class="keywordflow">if</span> (mse2 >= 0)</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>                 {</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>                     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"(%d, %d)-degree: RMS = %.3f pixels. "</span></div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>                          <span class="stringliteral">"Red.chi^2 = %.3f (%d orders)%s"</span>,</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>                          deg1,</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>                          deg2 + 1,</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>                          sqrt(mse2),</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>                          red_chisq2,</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>                          number_of_orders2,</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>                          (finished == 2) ? <span class="stringliteral">" *"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>                 }</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>                 {</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>                     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"(%d, %d)-degree: Singular matrix"</span>,</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>                          deg1,</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>                          deg2 + 1);</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>                 }</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>             }</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>             </div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>             <span class="keywordflow">if</span> (adjust1 && adjust2)</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>             {</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>                 <span class="keywordflow">if</span> (mse3 >= 0)</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>                 {</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>                     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"(%d, %d)-degree: RMS = %.3f pixels. "</span></div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>                          <span class="stringliteral">"Red.chi^2 = %.3f (%d orders)%s"</span>,</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>                          deg1 + 1,</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>                          deg2 + 1,</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>                          sqrt(mse3),</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>                          red_chisq3,</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>                          number_of_orders3,</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>                          (finished == 3) ? <span class="stringliteral">" *"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>                 }</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>                 {</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>                     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"(%d, %d)-degree: Singular matrix"</span>,</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>                          deg1 + 1,</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>                          deg2 + 1);</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>                 }</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>             }</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>             </div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>             <span class="keywordflow">if</span> (finished != 0) </div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>             {</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Moved to degree (%d, %d), finished = %d, "</span></div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>                                            <span class="stringliteral">"DEFPOL = %d, %d"</span>, </div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>                        new_deg1, new_deg2, finished, *DEFPOL1, *DEFPOL2);</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>             }</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>             </div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>             deg1 = new_deg1;</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>             deg2 = new_deg2;</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>             </div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>         } <span class="keywordflow">while</span> (finished != 0);</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>         </div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>         <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using degree (%d, %d)"</span>, *DEFPOL1, *DEFPOL2);</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> </div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>         }<span class="comment">/* endif auto degree */</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> </div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>     <span class="comment">/* Make the final fit */</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(bivariate_fit);</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *bivariate_fit = <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(tracetable,</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>                               <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Y"</span>, <span class="stringliteral">"dY"</span>,</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>                               *DEFPOL1,</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>                               *DEFPOL2,</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>                               <span class="stringliteral">"Yfit"</span>, NULL, <span class="stringliteral">"dYfit_Square"</span>,</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>                               &mse, &red_chisq,</div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>                               NULL,  <span class="comment">/* variance polynomial */</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>                               KAPPA, -1),</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>        <span class="stringliteral">"Error fitting orders"</span>);</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span> </div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"RMS error of (%d, %d)-degree fit is %.3f pixels. Reduced chi^2 is %.3f"</span>,</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>          *DEFPOL1,</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>          *DEFPOL2,</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>          sqrt(mse),</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>          red_chisq);</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>     </div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     <span class="comment">/* Warn about bad fit */</span></div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>     <span class="keywordflow">if</span> (sqrt(mse) > 0.3)</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>     {</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"RMS of bivariate fit (%.2f pixels) "</span></div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>                  <span class="stringliteral">"is larger than 0.3 pixels"</span>, sqrt(mse));</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>     }</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>     <span class="keywordflow">if</span> (red_chisq < .01)</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>     {</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Reduced chi^2 of fit is less than 1/100: %f"</span>, red_chisq);</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>     }</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>     <span class="keywordflow">if</span> (red_chisq > 100)</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>     {</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Reduced chi^2 of fit is greater than 100: %f"</span>, red_chisq);</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>     }</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>     </div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>     <span class="comment">/* Create residual column  'Residual' := 'Y' - 'Yfit' */</span></div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_duplicate_column(tracetable, <span class="stringliteral">"Residual"</span>, tracetable, <span class="stringliteral">"Y"</span>),</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>         cpl_table_subtract_columns(tracetable, <span class="stringliteral">"Residual"</span>, <span class="stringliteral">"Yfit"</span>)),</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>         <span class="stringliteral">"Error calculating residuals of fit"</span>);</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span> </div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>     <span class="comment">/* Show how many orders were traced */</span></div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>     {</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *orders_traced =  <a class="code" href="group__uves__orderpos.html#ga9ec0c0699858aa2709832fdf9732abee" title="Count orders in trace table.">count_orders</a>(tracetable),</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>            <span class="stringliteral">"Error counting orders"</span>);</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>     </div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%d order(s) were traced"</span>, *orders_traced);</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>     <span class="keywordflow">if</span> (*orders_traced < N)</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>         {</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Rejected %d order(s)"</span>, N - *orders_traced);</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>         }</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     }</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> </div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>     <span class="comment">/* Plot results */</span></div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_table(tracetable, <span class="stringliteral">"X"</span>, <span class="stringliteral">"Yfit"</span>, <span class="stringliteral">"%d orders detected"</span>, *orders_traced),</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>        <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_table(tracetable, <span class="stringliteral">"X"</span>, <span class="stringliteral">"Residual"</span>, </div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>                <span class="stringliteral">"Residual of fit (RMS = %.3f pixels; red.chi^2 = %f)"</span>,</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                sqrt(mse), red_chisq), <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_table(tracetable, <span class="stringliteral">"Y"</span>, <span class="stringliteral">"Residual"</span>, </div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>                <span class="stringliteral">"Residual of fit (RMS = %.3f pixels; red.chi^2 = %f)"</span>,</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>                sqrt(mse), red_chisq), <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>     </div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>   cleanup:</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>     uves_free_table(&temp);</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>     uves_free_table(&singletrace);</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)    </div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>     {</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>         uves_free_table(&tracetable);</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>     }</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span> </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>     <span class="keywordflow">return</span> tracetable;</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> }</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span> </div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span> </div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00948"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#ga9ec0c0699858aa2709832fdf9732abee">  948</a></span> <a class="code" href="group__uves__orderpos.html#ga9ec0c0699858aa2709832fdf9732abee" title="Count orders in trace table.">count_orders</a>(<span class="keyword">const</span> cpl_table *tracetable)</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span> {</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>     <span class="keywordtype">int</span> number = 0;</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>     <span class="keywordtype">int</span> previous = -1;</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>     <span class="keywordtype">int</span> row;</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>    </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( tracetable != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(tracetable, <span class="stringliteral">"Order"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>  </div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>     <span class="keywordflow">for</span> (row = 0; row < cpl_table_get_nrow(tracetable); row++)</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>     {</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>     <span class="keywordtype">int</span> current;</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>     current = cpl_table_get_int(tracetable, <span class="stringliteral">"Order"</span>, row, NULL);</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>     <span class="keywordflow">if</span> (current != previous)</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>         {</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>         number++;</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>         }</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>     previous = current;</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>     }</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>     </div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>   cleanup:</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>     <span class="keywordflow">return</span> number;</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> </div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span> }</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span> </div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span> </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> </div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00992"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#ga63321f80b5c307c048cd012e43413dad">  992</a></span> <a class="code" href="group__uves__orderpos.html#ga63321f80b5c307c048cd012e43413dad" title="Make a linear fit of an order trace.">fit_order_linear</a>(cpl_table *singletrace, </div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>                  <span class="keywordtype">int</span> order, </div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>                  <span class="keywordtype">double</span> KAPPA,</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>                  <span class="keywordtype">double</span> *slope)</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> {</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>     <span class="keywordtype">double</span> mse = 0;              <span class="comment">/* mean square error of the fit             */</span></div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>     <span class="keywordtype">double</span> intersept;</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>     cpl_table *temp = NULL;      <span class="comment">/* Don't remove rows from the input table   */</span></div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *pol = NULL;      <span class="comment">/* The 1d polynomial                        */</span>   </div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> </div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( slope != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_get_ncol(singletrace) == 3, <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>, cpl_table_get_ncol(singletrace));</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"X"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"Y"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"dY"</span>),<span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( temp = cpl_table_duplicate(singletrace),</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>        <span class="stringliteral">"Error cloning table"</span>);</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> </div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>     <span class="keywordflow">if</span> (cpl_table_get_nrow(temp) == 1)</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>     {</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>         <span class="comment">/* Only one point: create another point at next table row (1) to </span></div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> <span class="comment">           make linear fitting is possible. */</span></div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_set_size(temp, 2),</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>             cpl_table_set_int   (temp, <span class="stringliteral">"X"</span>,  1, uves_max_int(</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>                          cpl_table_get_int   (temp, <span class="stringliteral">"X"</span>, 0, NULL) - 1, 1)),</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>             cpl_table_set_double(temp, <span class="stringliteral">"Y"</span>,  1,</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>                      cpl_table_get_double(temp, <span class="stringliteral">"Y"</span>, 0, NULL)),</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>             cpl_table_set_double(temp, <span class="stringliteral">"dY"</span>, 1,</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>                      cpl_table_get_double(temp, <span class="stringliteral">"dY"</span>,0, NULL))),</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>             <span class="stringliteral">"Could not add point"</span>);</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>     }</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>     </div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>     <span class="comment">/* Make the linear fit. When kappa-sigma clipping, rows</span></div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span> <span class="comment">       are removed. Therefore, use a copy of the input table */</span></div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( pol = <a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d</a>(temp,</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>                            <span class="stringliteral">"X"</span>, <span class="stringliteral">"Y"</span>, NULL,<span class="comment">/* Unweighted fit </span></div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> <span class="comment">                                 for robustness */</span></div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>                            1,             <span class="comment">/* Degree         */</span></div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>                            NULL, NULL,    <span class="comment">/* Fit, residual  */</span></div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>                            &mse, </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>                            KAPPA),</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>        <span class="stringliteral">"Fitting of order %d failed. You may have to increase value of kappa"</span>, </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>            order);</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>     intersept = <a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(pol, 0);</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>     *slope = <a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(pol, 1);</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"The RMS error of order #%d is %.2f pixels; "</span></div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>                    <span class="stringliteral">"slope = %f; intersept = %f"</span>,</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>                    order, sqrt(mse),</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>                    *slope, intersept);</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>     </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>     <span class="comment">/* Write results of fit to input table */</span></div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>     {</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> </div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_new_column(singletrace, <span class="stringliteral">"Linear fit"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>         cpl_table_new_column(singletrace, <span class="stringliteral">"Residual_Square"</span>, CPL_TYPE_DOUBLE)),</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>         <span class="stringliteral">"Error adding table columns"</span>);</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>     </div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(singletrace); i++)</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>         {</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>         <span class="keywordtype">int</span>    x = cpl_table_get_int   (singletrace, <span class="stringliteral">"X"</span>, i, NULL);</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>         <span class="keywordtype">double</span> y = cpl_table_get_double(singletrace, <span class="stringliteral">"Y"</span>, i, NULL);</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> </div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>         <span class="keywordtype">double</span> linear_fit, residual;</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (linear_fit = <a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(pol, x),</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>                <span class="stringliteral">"Error evaluating polynomial"</span>);</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> </div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>         residual = y - linear_fit;</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span> </div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_set_double(singletrace, <span class="stringliteral">"Linear fit"</span>, i, linear_fit),</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>             cpl_table_set_double(singletrace, <span class="stringliteral">"Residual_Square"</span>,</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>                          i, residual*residual)),</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>               <span class="stringliteral">"Error updating table"</span>);</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>         }</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>     }</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> </div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>     <span class="comment">/* Add info about the order's RMS+slope for each point */</span></div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_new_column(singletrace, <span class="stringliteral">"OrderRMS"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>             cpl_table_new_column(singletrace, <span class="stringliteral">"OrderSlope"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>         cpl_table_fill_column_window_double(</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>         singletrace, <span class="stringliteral">"OrderRMS"</span>, 0, cpl_table_get_nrow(singletrace), sqrt(mse)),</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>             cpl_table_fill_column_window_double(</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>         singletrace, <span class="stringliteral">"OrderSlope"</span>, 0, cpl_table_get_nrow(singletrace), *slope)),</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>           <span class="stringliteral">"Could not create columns OrderRMS and OrderSlope"</span>);</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> </div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_get_ncol(singletrace) == 7, <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>, cpl_table_get_ncol(singletrace));</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"X"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"Y"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"dY"</span>),<span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"Linear fit"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"Residual_Square"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"OrderRMS"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(singletrace, <span class="stringliteral">"OrderSlope"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>     </div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>   cleanup:</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>     uves_free_table(&temp);</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&pol);</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>     <span class="keywordflow">return</span> sqrt(mse);</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>         </div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> }</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span> </div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> </div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span> <span class="keyword">static</span> cpl_table *</div>
-<div class="line"><a name="l01127"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#ga2fcc313cc2f28775bd7aef5abb670751"> 1127</a></span> <a class="code" href="group__uves__orderpos.html#ga2fcc313cc2f28775bd7aef5abb670751" title="Trace a single order line.">trace_order</a>(<span class="keyword">const</span> cpl_table *ordertable, <span class="keywordtype">int</span> order,</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>         <span class="keyword">const</span> cpl_image *inputimage, <span class="keyword">const</span> cpl_image *noise,</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>         <span class="keyword">const</span> cpl_binary *image_bad,</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>         <span class="keywordtype">int</span> TRACESTEP, </div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>         <span class="keywordtype">double</span> MAXGAP)</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> {</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>     cpl_table *singletrace = NULL;</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>     <span class="keywordtype">int</span> tracerow;                  <span class="comment">/* pointing to the next empty row in the tracetable */</span></div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>     <span class="keywordtype">int</span> DIRECTION;</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>     <span class="keywordtype">double</span> slope;</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>     <span class="keywordtype">double</span> threshold;</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>     <span class="keywordtype">double</span> minthreshold;</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>     <span class="keywordtype">int</span> nx;</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>     <span class="keywordtype">int</span> <a class="code" href="group__uves__wavecal.html#ga7b49db5bd97eb1228d45a6d37190cef6" title="Refine the center position of an initially detected emission line.">xcenter</a>;</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>     <span class="keywordtype">int</span> ycenter;</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>     <span class="keywordtype">int</span> orderlength;     <span class="comment">/* x-distance between endpoints */</span></div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>     <span class="keywordtype">int</span> order_spacing;   <span class="comment">/* approximate distance to next order(s) */</span></div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>     <span class="keywordtype">int</span> xmax, xmin;</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> </div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>     nx = cpl_image_get_size_x(inputimage);</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>     <span class="comment">/* Initialize result */</span></div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( singletrace = </div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>         cpl_table_new(nx/TRACESTEP + 2),</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>         cpl_table_new_column(singletrace, <span class="stringliteral">"X"</span>, CPL_TYPE_INT),</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>         cpl_table_new_column(singletrace, <span class="stringliteral">"Y"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>         cpl_table_new_column(singletrace, <span class="stringliteral">"dY"</span>,CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>         tracerow = 0),</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>         <span class="stringliteral">"Could not initialize tracetable"</span>);</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>     </div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>     <span class="comment">/* Trace the order */</span></div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     <span class="comment">/* While less than TRACEITER of the order is traced </span></div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> <span class="comment">       lower threshold, and try again</span></div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> <span class="comment">       But don't try more than three times    */</span></div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>     </div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>     <span class="comment">/* Order number n is in ordertable row n-1 */</span></div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>((xcenter      = cpl_table_get_int   (ordertable, <span class="stringliteral">"Xcenter"</span>     , order - 1, NULL),</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>            ycenter      = cpl_table_get_int   (ordertable, <span class="stringliteral">"Ycenter"</span>     , order - 1, NULL),</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>            orderlength  = cpl_table_get_int   (ordertable, <span class="stringliteral">"OrderLength"</span> , order - 1, NULL),</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>            order_spacing= cpl_table_get_int   (ordertable, <span class="stringliteral">"Spacing"</span>     , order - 1, NULL),</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>            threshold    = cpl_table_get_double(ordertable, <span class="stringliteral">"Threshold"</span>   , order - 1, NULL),</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>            minthreshold = cpl_table_get_double(ordertable, <span class="stringliteral">"MinThreshold"</span>, order - 1, NULL)),</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>       <span class="stringliteral">"Reading order table failed"</span>);</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>     </div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>     <span class="comment">/* Trace once using the minimum threshold */</span></div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>     threshold = minthreshold;</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>     </div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>     </div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>     <span class="comment">/*  Clear the trace table */</span></div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>     tracerow = 0;</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>         </div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>     xmax = xmin = <a class="code" href="group__uves__wavecal.html#ga7b49db5bd97eb1228d45a6d37190cef6" title="Refine the center position of an initially detected emission line.">xcenter</a>;</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>         </div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>     <span class="comment">/* Trace it to the left, trace it to the right */</span></div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>     <span class="keywordflow">for</span> (DIRECTION = -1; DIRECTION <= 1; DIRECTION += 2)  {</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>         <span class="comment">/* Start tracing at this position */</span></div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>         <span class="keywordtype">int</span> x = <a class="code" href="group__uves__wavecal.html#ga7b49db5bd97eb1228d45a6d37190cef6" title="Refine the center position of an initially detected emission line.">xcenter</a>;</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>         <span class="keywordtype">double</span> y = (double) ycenter;</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>         <span class="keywordtype">double</span> dy = 0;</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>         <span class="keywordtype">int</span> gap_size = 0;    <span class="comment">/* gap size (for jumping) in pixels */</span></div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>             </div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( slope = cpl_table_get_double(</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>                    ordertable, <span class="stringliteral">"Slope"</span>, order - 1, NULL), </div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>                <span class="stringliteral">"Could not read slope from table"</span>);</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>             </div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>         <span class="keywordflow">if</span> (xcenter < nx/10 || xcenter > (nx*99)/100) {</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>             <span class="comment">/* Order at very edge of chip. Give up */</span></div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>             x = 0;</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span> </div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>             <span class="comment">/* The numbers chosen here: 10% left and 1% right</span></div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> <span class="comment">               are finetuned to the blaze-function of UVES */</span></div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>         }</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> </div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>         <span class="keywordflow">while</span>(1 <= x && x <= nx && gap_size < MAXGAP*nx) {</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>             <span class="keywordtype">bool</span> found;</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> </div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( found = <a class="code" href="group__uves__orderpos.html#ga940d9bec43c7580b6044ccc0781f6508" title="Find order line centroid.">find_centroid</a>(</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>                        inputimage, noise, image_bad, threshold, </div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>                        order_spacing, x, &y, &dy),</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>                    <span class="stringliteral">"Could not get order line position"</span>);</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> </div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>             <span class="comment">/* If found and if</span></div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> <span class="comment">               new slope when including this detection is</span></div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> <span class="comment">               inside [-1;1] */</span></div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>             <span class="keywordflow">if</span> (found && </div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>                 (y - ycenter)/(x - xcenter) > -1 &&</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>                 (y - ycenter)/(x - xcenter) < 1) {</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>                 </div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>                 <span class="comment">/* Update xmax, xmin */</span></div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>                 xmax = uves_max_int(xmax, x);</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>                 xmin = uves_min_int(xmin, x);</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>                 </div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"(Order, x, y, dy, threshold) = "</span></div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>                                <span class="stringliteral">"(%d, %d, %f, %f, %f)"</span>, </div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>                                order, x, y, dy, threshold);</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>                 </div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>                 <span class="keywordflow">if</span> (!(x == xcenter && DIRECTION == 1)) </div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>                     <span class="comment">/* Update table */</span></div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>                     <span class="comment">/* When tracing right, don't insert the </span></div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> <span class="comment">                       center point again */</span></div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>                     </div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>                     {</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>                         cpl_table_set_int   (</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>                             singletrace, <span class="stringliteral">"X"</span>, tracerow, x);</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>                         cpl_table_set_double(</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>                             singletrace, <span class="stringliteral">"Y"</span>, tracerow, y);</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>                         <span class="keywordflow">if</span> (dy > 0) {</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>                             cpl_table_set_double(</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>                                 singletrace, <span class="stringliteral">"dY"</span>, tracerow, dy);</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>                         }</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>                         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>                             cpl_table_set_invalid(</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>                                 singletrace, <span class="stringliteral">"dY"</span>, tracerow);</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>                         }</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>                         tracerow++;</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>                     }</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>                 </div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>                 gap_size = 0;</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>                 </div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>             }<span class="comment">/* If order found */</span></div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>             <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>                 gap_size += TRACESTEP;</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>             }</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>             </div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>             <span class="comment">/* Initial 'slope' will be the Hough slope */</span></div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>             x = x + DIRECTION * TRACESTEP;</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>             y = y + slope*DIRECTION * TRACESTEP;</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>             </div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>             slope = (y - ycenter)/(x - xcenter);</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>             </div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>         }<span class="comment">/*  while */</span></div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>     </div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>     }<span class="comment">/*  for... DIRECTION */</span></div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>         </div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>     <span class="comment">/* Now width of the trace is (xmax - xmin + 1) */</span></div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span> </div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%d points were traced in order %d"</span>, tracerow, order);</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>     </div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>     <span class="comment">/* Remove the last part of the table (garbage) */</span></div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_set_size(singletrace, tracerow), <span class="stringliteral">"Could not resize tracetable"</span>);</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>     </div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>     <span class="comment">/* Set the undetermined 'dY' column values to some value that is not completely off</span></div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> <span class="comment">       (such as the median of all other dY). If there are no other points, set dY</span></div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> <span class="comment">       to 1.0 pixel which effectively excludes the point from later fits. */</span></div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>     {</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>     <span class="keywordtype">double</span> dy_median;</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>     </div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>     <span class="keywordflow">if</span> (cpl_table_has_valid(singletrace, <span class="stringliteral">"dY"</span>))</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>         {</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>         <span class="comment">/* Invalid column values are excluded from the computation */</span></div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>         dy_median = cpl_table_get_column_median(singletrace, <span class="stringliteral">"dY"</span>);</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>         }</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>         {</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>         dy_median = 1.0;</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>         }</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> </div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>     <span class="comment">/* Write median value to all invalid rows */</span></div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>     cpl_table_select_all(singletrace);</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>     cpl_table_and_selected_invalid(singletrace, <span class="stringliteral">"dY"</span>);</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>     {</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>         <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(singletrace); i++)</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>         {</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>             <span class="keywordflow">if</span> (cpl_table_is_selected(singletrace, i))</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>             {</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>                 cpl_table_set_double(singletrace, <span class="stringliteral">"dY"</span>, i, dy_median);</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>             }</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>         }</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>     }</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>     }</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>     </div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>     <span class="comment">/* Finally, sort the single order table by X */</span></div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_sort_table_1(singletrace, <span class="stringliteral">"X"</span>, <span class="keyword">false</span>), <span class="stringliteral">"Could not sort order table"</span>);    </div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>     </div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>   cleanup:</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>     {</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>         uves_free_table(&singletrace);</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>     }</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>     </div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>     <span class="keywordflow">return</span> singletrace;</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span> }</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span> </div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l01325"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#gaee8ec7c4e8d83a1ef168f5c1c7c485a7"> 1325</a></span> <a class="code" href="group__uves__orderpos.html#gaee8ec7c4e8d83a1ef168f5c1c7c485a7" title="Calculate the length of an order line.">get_orderlength</a>(<span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny, cpl_table *ordertable, <span class="keywordtype">int</span> row)</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span> {</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>     <span class="keywordtype">int</span> x0 = 0, y_0, x1 = 0, y_1;</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>     <span class="keywordtype">double</span> intersept, slope;</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span> </div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( intersept = cpl_table_get_double(ordertable, <span class="stringliteral">"Intersept"</span>, row, NULL),</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>         slope     = cpl_table_get_double(ordertable, <span class="stringliteral">"Slope"</span>, row, NULL)),</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>         <span class="stringliteral">"Could not read line from ordertable"</span>);</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>     </div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>     <span class="comment">/* The left endpoint of the order line is... */</span></div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>     x0 = 1;</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>     y_0 = uves_round_double(intersept + slope*x0);</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>     </div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>     <span class="comment">/* However, if... */</span></div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>     <span class="keywordflow">if</span> (y_0 < 1)</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>     {</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>         y_0 = 1;</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>         x0 = uves_round_double((y_0 - intersept)/slope); <span class="comment">/* y = intersept + slope*x */</span></div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>     }</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>     </div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>     <span class="comment">/* The right endpoint */</span></div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>     x1 = nx;</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>     y_1 = uves_round_double(intersept + slope*nx);</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>     <span class="keywordflow">if</span> (y_1 > ny)</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>     {</div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>         y_1 = ny;</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>         x1 = uves_round_double((y_1 - intersept)/slope);</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>     }</div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>     </div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>   cleanup:</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>     <span class="keywordflow">return</span> (x1 - x0);</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span> }</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span> </div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> </div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l01374"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#ga298b3cff7b38cee645a3155095f84981"> 1374</a></span> <a class="code" href="group__uves__orderpos.html#ga298b3cff7b38cee645a3155095f84981" title="Calculate the x-center of an order.">get_xcenter</a>(<span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny, cpl_table *ordertable, <span class="keywordtype">int</span> row)</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span> {</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>     <span class="keywordtype">int</span> x0, y_0, x1, y_1, xc = 0;</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>     <span class="keywordtype">double</span> intersept, slope;</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( intersept = cpl_table_get_double(ordertable, <span class="stringliteral">"Intersept"</span>, row, NULL),</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>         slope     = cpl_table_get_double(ordertable, <span class="stringliteral">"Slope"</span>, row, NULL)),</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>         <span class="stringliteral">"Could not read line from ordertable"</span>);</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>     </div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>     <span class="comment">/* The left endpoint of the order line */</span></div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>     x0 = 1;</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>     y_0 = uves_round_double(intersept + slope*x0);</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>         </div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>     <span class="comment">/* However, if... */</span></div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>     <span class="keywordflow">if</span> (y_0 < 1)</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>     {</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>         y_0 = 1;</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>         x0 = uves_round_double((y_0 - intersept)/slope); </div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>             <span class="comment">/* y = intersept + slope*x */</span></div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>     }</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span> </div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>     </div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>     <span class="comment">/* The right endpoint */</span></div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>     x1 = nx;</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>     y_1 = uves_round_double(intersept + slope*nx);</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span> </div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>     <span class="comment">/* However, if ... */</span></div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>     <span class="keywordflow">if</span> (y_1 > ny)</div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>     {</div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>         y_1 = ny;</div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>         x1 = uves_round_double((y_1 - intersept)/slope);</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>     }</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>     </div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>     xc = (x0 + x1)/2;</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>        </div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>   cleanup:</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>     <span class="keywordflow">return</span> xc;</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> }</div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span> </div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l01426"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#gad2aa37539bc348053e032bb462c4fc2f"> 1426</a></span> <a class="code" href="group__uves__orderpos.html#gad2aa37539bc348053e032bb462c4fc2f" title="Calculate the y-center of an order.">get_ycenter</a>(<span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> ny, cpl_table *ordertable, <span class="keywordtype">int</span> row)</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span> {</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>     <span class="keywordtype">int</span> xc = 0;</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>     <span class="keywordtype">int</span> yc = 0;</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( xc = <a class="code" href="group__uves__orderpos.html#ga298b3cff7b38cee645a3155095f84981" title="Calculate the x-center of an order.">get_xcenter</a>(nx, ny, ordertable, row), <span class="stringliteral">"Could not find x-center of order"</span>);</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>     </div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( yc = uves_round_double(</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>            cpl_table_get_double(ordertable, <span class="stringliteral">"Slope"</span>    , row, NULL)*xc +</div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>            cpl_table_get_double(ordertable, <span class="stringliteral">"Intersept"</span>, row, NULL)</div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>            ), <span class="stringliteral">"Could not read line from ordertable"</span>);</div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>     </div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>   cleanup:</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>     <span class="keywordflow">return</span> yc;</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> }</div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> </div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l01459"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#ga1b3faad60deb05543392b7d0761c42e2"> 1459</a></span> <a class="code" href="group__uves__orderpos.html#ga1b3faad60deb05543392b7d0761c42e2" title="Calculate threshold for order tracing algorithm.">estimate_threshold</a>(<span class="keyword">const</span> cpl_image *inputimage, <span class="keyword">const</span> cpl_image *noise, </div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>            cpl_table *ordertable, <span class="keywordtype">int</span> row, <span class="keywordtype">double</span> relative_threshold)</div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span> {</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>     <span class="keywordtype">int</span> yupper = 0;</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>     <span class="keywordtype">int</span> ylower = 0;</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>     <span class="keywordtype">int</span> xc, yc;</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>     <span class="keywordtype">int</span> N;</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>     <span class="keywordtype">int</span> ny;</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>     cpl_stats *stats = NULL;</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>     </div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( inputimage != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( ordertable != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_get_int(ordertable, <span class="stringliteral">"Order"</span>, row, NULL) == row+1, <span class="stringliteral">"%d %d"</span>, </div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>          cpl_table_get_int(ordertable, <span class="stringliteral">"Order"</span>, row, NULL), row);</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span> </div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ny = cpl_image_get_size_y(inputimage), <span class="stringliteral">"Could not read input image dimension"</span>);</div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>     </div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( N = cpl_table_get_nrow(ordertable), <span class="stringliteral">"Could not read size of ordertable"</span>);</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>     assure(N > 1, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>        <span class="stringliteral">"Cannot calculate orderspacing with less than 2 (i.e. %d) orders."</span>, N);</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( xc = cpl_table_get_int(ordertable, <span class="stringliteral">"Xcenter"</span>, row, NULL), </div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>        <span class="stringliteral">"Could not read x-center of order #%d"</span>, row+1);</div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( yc = cpl_table_get_int(ordertable, <span class="stringliteral">"Ycenter"</span>, row, NULL), </div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>        <span class="stringliteral">"Could not find y-center of order #%d"</span>, row+1);</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>     </div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>     </div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>     <span class="comment">/* Set yupper and ylower midway between this and the adjacent orders</span></div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span> <span class="comment">     * The y-location of the surrounding orders must be calculated at the center,</span></div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span> <span class="comment">     * xc, of the current order</span></div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>     <span class="keywordflow">if</span> (row < N - 1)</div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>     {</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>         <span class="keywordtype">double</span> ynext;</div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(ynext =</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>           cpl_table_get_double(ordertable, <span class="stringliteral">"Slope"</span>    , row + 1, NULL)*xc +</div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>           cpl_table_get_double(ordertable, <span class="stringliteral">"Intersept"</span>, row + 1, NULL),</div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>           <span class="stringliteral">"Could not read line from ordertable row %d"</span>, row + 1);</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>         </div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>         yupper = (int)((yc + (uves_round_double(ynext)-1))/2);  </div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>         <span class="comment">/* Midway between this and the next order */</span></div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>     }</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span> </div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>     <span class="keywordflow">if</span> (row > 0)</div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>     {</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>         <span class="keywordtype">double</span> yprev;</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( yprev =</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>            cpl_table_get_double(ordertable, <span class="stringliteral">"Slope"</span>    , row - 1, NULL)*xc +</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>            cpl_table_get_double(ordertable, <span class="stringliteral">"Intersept"</span>, row - 1, NULL),</div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>            <span class="stringliteral">"Could not read line from ordertable row %d"</span>, row - 1);</div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>         </div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>         ylower = (int)((yc + uves_round_double(yprev)-1)/2);</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>         <span class="comment">/* Midway between this and the previous order */</span></div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>     }</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span> </div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>     <span class="comment">/* We need to manually set yupper for the highest order</span></div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span> <span class="comment">       and ylower for the lowest order */</span></div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>     <span class="keywordflow">if</span> (row == N-1)</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>     {</div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>         yupper = yc + (yc - ylower);</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>     }</div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>     <span class="keywordflow">if</span> (row == 0)</div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>     {</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>         ylower = yc - (yupper - yc);</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>     }</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>     yupper = uves_min_int(uves_max_int(yupper, 1), ny);</div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>     ylower = uves_min_int(uves_max_int(ylower, 1), ny);</div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span> </div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>     <span class="comment">/* Order lines were originally sorted with respect to intersept. This does not</span></div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span> <span class="comment">       necessarily mean that their centers are also sorted (if the Hough algorithm</span></div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span> <span class="comment">       detected wrong slopes (which happens if trying to detect too many lines)).</span></div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span> <span class="comment">       So check this. */</span></div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>     assure(yupper > ylower, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>        <span class="stringliteral">"Initially detected order lines intersept!"</span>);</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span> </div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>     <span class="comment">/* Find max and min pixel values between ylower and yupper, then calculate threshold */</span></div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>     {</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>     <span class="keywordtype">double</span> minval = 0;</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>     <span class="keywordtype">double</span> maxval = 0;</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>     <span class="keywordtype">double</span> noise_level = 0;</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>     </div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>     <span class="comment">/* Find maximum and minimum pixels along center column */</span></div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( stats = cpl_stats_new_from_image_window(</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>            inputimage,</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>            CPL_STATS_MIN | CPL_STATS_MAX | CPL_STATS_MINPOS,</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>            xc, ylower,   <span class="comment">/* Corners of window (FITS convention) (included) */</span></div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>            xc, yupper),</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>            <span class="stringliteral">"Could not get statistics on image sub-window (%d,%d)-(%d,%d)"</span>, </div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>            xc, ylower, xc, yupper);</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>     </div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( minval = cpl_stats_get_min(stats),</div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>         maxval = cpl_stats_get_max(stats)),</div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>            <span class="stringliteral">"Could not get minimum and maximum pixel values"</span>);</div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span> </div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>     <span class="comment">/* Get noise level at the location of 'minval' */</span></div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>     {</div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>         <span class="keywordtype">int</span> xpos, ypos, pis_rejected;</div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>         xpos = cpl_stats_get_min_x(stats);</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>         ypos = cpl_stats_get_min_y(stats);</div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>         noise_level = cpl_image_get(noise, xpos, ypos, &pis_rejected);</div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>     }</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>     </div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>     <span class="comment">/* Calculate threshold */</span></div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>     returnvalue = uves_max_double(minval + relative_threshold * (maxval - minval),</div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>                  (minval + noise_level) + noise_level);</div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>     </div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order: %d \tThreshold: %f \tMinimum: %f \tMaximum: %f"</span></div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>                <span class="stringliteral">" \tNoise: %f \tWindow: (%d, %d)-(%d, %d)"</span>,</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>               row+1, returnvalue, minval, maxval, noise_level, xc, ylower, xc, yupper);</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>     }</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>     </div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>   cleanup:</div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>     uves_free_stats(&stats);</div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span> }</div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span> </div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span> <span class="keyword">static</span> <span class="keywordtype">bool</span></div>
-<div class="line"><a name="l01600"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#ga940d9bec43c7580b6044ccc0781f6508"> 1600</a></span> <a class="code" href="group__uves__orderpos.html#ga940d9bec43c7580b6044ccc0781f6508" title="Find order line centroid.">find_centroid</a>(<span class="keyword">const</span> cpl_image *inputimage, <span class="keyword">const</span> cpl_image *noise, </div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>           <span class="keyword">const</span> cpl_binary *image_bad, </div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>           <span class="keywordtype">double</span> threshold, <span class="keywordtype">int</span> spacing, <span class="keywordtype">int</span> x, <span class="keywordtype">double</span> *yguess, <span class="keywordtype">double</span> *dY)</div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span> {</div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>     <span class="keywordtype">bool</span> returnvalue = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>     <span class="keywordtype">int</span> nx;</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>     <span class="keywordtype">int</span> ny;</div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>     <span class="keywordtype">int</span> y;</div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>     <span class="keywordtype">double</span> thisvalue = 0;</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>     <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>     <span class="keywordtype">int</span> ylow = 0;</div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>     <span class="keywordtype">int</span> yhigh = 0;</div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>     cpl_matrix *covariance = NULL;</div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span> </div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( inputimage != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span> </div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>     nx = cpl_image_get_size_x(inputimage);</div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>     ny = cpl_image_get_size_y(inputimage);</div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span> </div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( 1 <= x && x <= nx, <span class="stringliteral">"%d %d"</span>, x, nx);</div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span> </div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order location estimate = (%d, %f)"</span>, x, *yguess);</div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>     </div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>     <span class="comment">/* Start at yguess and move to a local max */</span></div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span> </div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>     y = uves_round_double(*yguess);</div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>     <span class="keywordflow">if</span> (y < 1 || y > ny)</div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>     {</div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>         returnvalue = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>     }</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>     <span class="keywordtype">bool</span> cont;          <span class="comment">/* continue? */</span></div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>     </div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>     <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>         cont = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>         thisvalue  = cpl_image_get(inputimage, x, y    , &pis_rejected);</div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>         <span class="comment">/* Move up? */</span></div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>         <span class="keywordflow">if</span> (y < ny) {</div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>         <span class="keywordtype">double</span> uppervalue = cpl_image_get(inputimage, x, y + 1, &pis_rejected);</div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>         <span class="keywordflow">if</span> (!pis_rejected && uppervalue > thisvalue)</div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>             {</div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>             y += 1;</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>             cont = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>             }</div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>         }</div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>     </div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>         <span class="comment">/* Move down? */</span></div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>         <span class="keywordflow">if</span> (y > 1) {</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>         <span class="keywordtype">double</span> lowervalue = cpl_image_get(inputimage, x, y - 1, &pis_rejected);</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>         <span class="keywordflow">if</span> (!pis_rejected && lowervalue > thisvalue)</div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>             {</div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>             y -= 1;</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>             cont = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>             }</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>         }</div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>     </div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>     } <span class="keywordflow">while</span> (cont);</div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>     </div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>     <span class="comment">/* Now 'thisvalue' is the local maximum */</span></div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>     </div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Local maximum at (%d, %d) (value = %f)\tthreshold = %f"</span>, </div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>                x, y, thisvalue, threshold);</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>     </div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>     <span class="comment">/* Return false if no value above threshold was found */</span></div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>     <span class="keywordflow">if</span> (thisvalue < threshold)</div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>         {</div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order not traced at (%d, %d) (value = %f)\tthreshold = %f"</span>,</div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>                    x, y, thisvalue, threshold);</div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>         returnvalue = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>         }</div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>         { </div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>                 <span class="comment">/* Find and use pixels that are above half max */</span></div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>                 <span class="keywordtype">double</span> minvalue;</div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>         <span class="keywordtype">double</span> sigmaY;   <span class="comment">/* Width of peak */</span></div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span> </div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>                 <span class="keywordtype">double</span> mse, rms, chi_sq;</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>                 <span class="keywordtype">double</span> background;</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>                 <span class="keywordtype">double</span> norm;</div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>         </div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>                 <span class="comment">/* Threshold is half of max value at this x */</span></div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>                 minvalue = 0.5*thisvalue;</div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>             </div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>         <span class="comment">/* Move to the lowest y above 'minvalue' */</span></div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>         <span class="keywordflow">while</span>(y > 1 && cpl_image_get(inputimage, x, y - 1, &pis_rejected) >= minvalue)</div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>             {</div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>             y--;</div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>             }</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>             </div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>         assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>             cpl_error_get_code(), <span class="stringliteral">"Could not read pixel from input image"</span> );</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>             </div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>         <span class="comment">/* Remember this place */</span></div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>         ylow = y;</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>             </div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>         <span class="comment">/* Move to the highest y above 'minvalue' */</span></div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>         <span class="keywordflow">while</span>(y < ny && cpl_image_get(inputimage, x, y + 1, &pis_rejected) >= minvalue)</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>             {</div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>             y++;</div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>             }</div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>             </div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>         assure( cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(), </div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>             <span class="stringliteral">"Could not read pixel from input image"</span> );</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>             </div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>         <span class="comment">/* Also remember this place */</span></div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>         yhigh = y;</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>             </div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>         <span class="comment">/* Update the order line's location to centroid of </span></div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span> <span class="comment">           strip from ylow to yhigh w.r.t. minvalue*/</span></div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>         {</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>             <span class="keywordtype">double</span> sum  = 0;</div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>             <span class="keywordtype">double</span> sumy = 0;</div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>             <span class="keywordtype">double</span> sumy2= 0;</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>             <span class="keywordflow">for</span> (y = ylow; y <= yhigh; y++)</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>             {</div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>                 <span class="keywordtype">double</span> flux;</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>                 flux = cpl_image_get(inputimage, x, y, &pis_rejected) - minvalue;</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>                 <span class="keywordflow">if</span> (!pis_rejected && flux > 0)</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>                 {</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>                     sum   += flux;</div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>                     sumy  += flux * (y - *yguess*0);</div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>                     sumy2 += flux * (y - *yguess*0) * (y - *yguess*0);</div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>                 }</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>             }</div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>             <span class="keywordflow">if</span> (sum > 0)</div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>             {</div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>                 *yguess = *yguess*0 + sumy / sum;</div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>                 sigmaY = sqrt( sumy2 / sum - sumy*sumy/(sum*sum) );</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>                 </div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>                 <span class="keywordflow">if</span> ( sumy2 / sum - sumy*sumy/(sum*sum) < 0 || </div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>                  sigmaY < sqrt(1.0/12) )</div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>                 {</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>                     <span class="comment">/* If the sum is over one pixel, sigma will be zero </span></div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span> <span class="comment">                       (or less than zero because of numerical error), </span></div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span> <span class="comment">                       so set sigma to stddev of one pixel = 1/sqrt(12)</span></div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span> <span class="comment">                       in that case */</span></div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>                     sigmaY = sqrt(1.0/12);</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>                 }</div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>                 </div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>                 <span class="comment">/* Uncertainty, dY, of mean value (yguess) is  sigma/sqrt(N)</span></div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span> <span class="comment">                   where N is the total count, i.e. area under curve */</span></div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>                 *dY = sigmaY/sqrt(sum);</div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>                 </div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>             }</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>             {</div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>                 <span class="comment">/* If all pixels were bad, don't update '*yguess' */</span></div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>                 sigmaY = 1.0;</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>                 *dY = .1;</div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>                 </div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>             }</div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>         }</div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>             </div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>                 <span class="comment">/* This is a better method. Get centroid </span></div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span> <span class="comment">                   position by making a Gaussian fit. */</span></div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>                 </div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>                 <span class="comment">/* Use a wide fitting window to get a well defined background level */</span></div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>                 ylow  = uves_max_int(1 , uves_round_double(*yguess - spacing/3));</div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>                 yhigh = uves_min_int(ny, uves_round_double(*yguess + spacing/3));</div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>                 </div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>                 assure( yhigh - ylow >= 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>                         <span class="stringliteral">"Estimated spacing too small: %d pixel(s)"</span>, spacing);</div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>                 </div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>                 <span class="comment">/* Fit. Save the result in 'yguess' */</span></div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>                 uves_fit_1d_image(inputimage, noise, </div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>                                   image_bad,</div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>                                   <span class="keyword">false</span>, <span class="keyword">false</span>, <span class="keyword">false</span>,</div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>                                   ylow, yhigh, x,</div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>                                   yguess, &sigmaY, &norm, &background, NULL,</div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>                                   &mse, &chi_sq, &covariance,</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>                                   <a class="code" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c" title="Evaluate a gaussian.">uves_gauss</a>, <a class="code" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea" title="Evaluate the derivatives of a gaussian.">uves_gauss_derivative</a>, 4);</div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>                 </div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>                 <span class="comment">/* Recover from specific fitting errors */</span></div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>                 <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>                     {</div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>                         <span class="comment">/* Variance is guaranteed to be positive */</span></div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>                         *dY = sqrt(cpl_matrix_get(covariance, 0, 0));</div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>                     }</div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_CONTINUE)</div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>                     {</div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>                         <span class="comment">/* Fitting failed */</span></div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>                         <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>                         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Fitting failed at (x,y) = (%d, %e), "</span></div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>                                        <span class="stringliteral">"using centroid"</span>, x, *yguess);</div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>                         *dY = sigmaY / sqrt(norm);</div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>                     }</div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX)</div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>                     {</div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>                         <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>                         </div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>                         <span class="comment">/* Fitting succeeded but covariance computation failed */</span></div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>                         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Covariance matrix computation failed"</span>);</div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>                         *dY = sigmaY / sqrt(norm);</div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>                     }</div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>                 </div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>                 assure(cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>                        cpl_error_get_code(), <span class="stringliteral">"Gaussian fitting failed"</span>);</div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>                 </div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>                 rms = sqrt(mse);</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>                 </div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"dy = %f   sigma/sqrt(N) = %f"</span>, *dY, sigmaY/(norm));</div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>                 </div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>                 <span class="comment">/* If the peak is definitely there or definitely not there,</span></div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span> <span class="comment">                   set the returnvalue appropriately */</span></div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>                 <span class="keywordflow">if</span> ( norm > 10 * rms)</div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>                     {</div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>                         returnvalue = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>                     }</div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>                 <span class="keywordflow">if</span> ( norm < 2 * rms)</div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>                     {</div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>                         returnvalue = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>                     }</div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>                 </div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>             } <span class="comment">/* signal was above threshold at this x */</span></div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>     </div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>     }<span class="comment">/* If yguess was inside image */</span></div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span> </div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>   cleanup:</div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>     cpl_matrix_delete(covariance);</div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__orderpos__follow_8h_source.html b/html/uves__orderpos__follow_8h_source.html
deleted file mode 100644
index 612695d..0000000
--- a/html/uves__orderpos__follow_8h_source.html
+++ /dev/null
@@ -1,121 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_orderpos_follow.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_orderpos_follow.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 14:04:14 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.7  2010/09/24 09:32:04  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2007/06/28 09:18:03  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Return actualy polynomial degree used</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2007/03/28 14:02:23  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed unused parameter</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2007/03/28 11:39:11  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Killed MIDAS flag, removed dead code</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.10  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#ifndef UVES_ORDERPOS_FOLLOW_H</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_ORDERPOS_FOLLOW_H</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> cpl_table *<a class="code" href="group__uves__orderpos.html#ga24ea1bc4c54b9e30dc5cb6edb0671ec2" title="Trace all orders.">uves_locate_orders</a>(<span class="keyword">const</span> cpl_image *inputimage, <span class="keyword">const</span> cpl_image *noise,</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>                   cpl_table *ordertable, <span class="keywordtype">int</span> TRACESTEP,</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>                   <span class="keywordtype">double</span> MINTHRESH, <span class="keywordtype">double</span> MAXGAP,</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>                   <span class="keywordtype">double</span> MAXRMS, <span class="keywordtype">int</span> *DEFPOL1, <span class="keywordtype">int</span> *DEFPOL2, <span class="keywordtype">double</span> KAPPA,</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>                   <a class="code" href="struct__polynomial.html">polynomial</a> **bivariate_fit, <span class="keywordtype">int</span> *orders_traced);</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_ORDERPOS_FOLLOW_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__orderpos__hough_8c_source.html b/html/uves__orderpos__hough_8c_source.html
deleted file mode 100644
index e593e7d..0000000
--- a/html/uves__orderpos__hough_8c_source.html
+++ /dev/null
@@ -1,959 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_orderpos_hough.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_orderpos_hough.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-03-02 17:01:40 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.25 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.24  2011/12/08 14:04:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Fix warnings with CPL6</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.23  2010/09/24 09:32:05  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.21  2010/01/04 14:02:54  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * less verbose Hough transform computation</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.20  2007/08/27 12:31:08  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * uves_msg_progress should go from 0 to ymax as ymax is actually the maximum y pixel value where the Hoght transform should be computed. i fixed this and added more check statements</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.19  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.18  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.17  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.16  2007/04/20 14:44:47  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Minor output message change</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.15  2007/04/17 09:34:38  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Parametrize the assumption about consecutive orders (for FLAMES support)</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.14  2007/04/12 12:02:41  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Added assertions for documentation purposes</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.13  2007/04/10 07:08:30  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Make sure that detected orders are always consecutive</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.12  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.10  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.9  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Revision 1.8  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Revision 1.7  2006/06/08 08:42:53  jmlarsen</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Added support for computing Hough transform on image subwindow</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Revision 1.6  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Revision 1.5  2006/04/06 08:45:15  jmlarsen</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> * Changed number of significant digits when printing percentage</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Revision 1.4  2006/03/09 13:58:26  jmlarsen</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> * Minor optimization of Hough calculation</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Revision 1.3  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Revision 1.2  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.24  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="preprocessor">#include <uves_orderpos_hough.h></span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment">/* Define macros that map from x-coordinate (integer) in Hough space to slope </span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment">   in image space (double) and the inverse function  */</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="preprocessor">#define SLOPE(hx)    (   MINSLOPE + ( ((double)(hx)) / SLOPERES  )   ) * (MAXSLOPE - MINSLOPE)</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="preprocessor"></span><span class="preprocessor">#define SLOPEINV(a) \</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="preprocessor">   uves_round_double( SLOPERES * ( ((double)(a)) - MINSLOPE ) / (MAXSLOPE - MINSLOPE))</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment">/* Convert from pixel coordinate to intersept, and the other way */</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="preprocessor">#define INTERSEPT(hy) (minintersept + hy)</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="preprocessor"></span><span class="preprocessor">#define INTERSEPTINV(b) (b - minintersept)</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment">                                Forward declarations</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="keyword">static</span> cpl_table *<a class="code" href="group__uves__orderpos.html#ga10eb92856d9393ba040c2955f504cb71" title="Detect order lines from the Hough image.">detect_lines</a>(cpl_image *htrans, <span class="keywordtype">int</span> minintersept,</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>                    <span class="keyword">const</span> cpl_image *inputimage, </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>                    <span class="keywordtype">int</span> NORDERS, <span class="keywordtype">bool</span> norders_is_guess, <span class="keywordtype">int</span> SAMPLEWIDTH, </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>                    <span class="keywordtype">double</span> PTHRES, <span class="keywordtype">double</span> MINSLOPE, <span class="keywordtype">double</span> MAXSLOPE, <span class="keywordtype">int</span> SLOPERES,</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>                                <span class="keywordtype">bool</span> consecutive);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="keyword">static</span> cpl_error_code <a class="code" href="group__uves__orderpos.html#ga0916288fc020f46150a3050ee529e2be" title="Delete peak in Hough image.">delete_peak</a>(cpl_image *htrans, <span class="keywordtype">int</span> minintersept, <span class="keywordtype">int</span> hxmax, <span class="keywordtype">int</span> hymax,</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>                   <span class="keywordtype">int</span> SPACING, <span class="keywordtype">int</span> imagewidth, <span class="keywordtype">int</span> SAMPLEWIDTH, </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>                   <span class="keywordtype">double</span> MINSLOPE, <span class="keywordtype">double</span> MAXSLOPE, <span class="keywordtype">int</span> SLOPERES);</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__orderpos.html#gad50db3ef4566d0ff652423541aaf8790" title="Get the first trace column.">firsttrace</a>(<span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> SAMPLEWIDTH);</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__orderpos.html#ga0830b05ef03423ceca86b6386123f26d" title="Estimate spacing of order lines.">calculate_spacing</a>(<span class="keyword">const</span> cpl_image *, <span class="keywordtype">int</span> x);</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__orderpos.html#ga8be5990f31b99ed6a4582388982f1b12" title="Calculate auto-correlation function of image column.">autocorr</a>(<span class="keyword">const</span> cpl_image *image, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> shift);</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="keyword">static</span> cpl_error_code <a class="code" href="group__uves__orderpos.html#gab7f87424906c5f0eef60d4de2ce4a01f" title="Improve position of a peak in the Hough image.">update_max</a>(<span class="keyword">const</span> cpl_image *htrans, <span class="comment">/* Hough image */</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                  <span class="keywordtype">int</span> *xmax,               <span class="comment">/* peak location */</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>                  <span class="keywordtype">int</span> *ymax,</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>                  <span class="keywordtype">int</span> SPACING,       <span class="comment">/* inter-order seperation */</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>                  <span class="keywordtype">int</span> imagewidth,    <span class="comment">/* width of input image */</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>                  <span class="keywordtype">int</span> SAMPLEWIDTH,   <span class="comment">/* seperation of traces in input image */</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>                  <span class="keywordtype">double</span> MINSLOPE,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                  <span class="keywordtype">double</span> MAXSLOPE,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                  <span class="keywordtype">int</span> SLOPERES);</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#gaa46ac08a5a64f9d633d8c7735a0aeb64">  194</a></span> cpl_table *<a class="code" href="group__uves__orderpos.html#gaa46ac08a5a64f9d633d8c7735a0aeb64" title="Compute Hough transform and detect lines.">uves_hough</a>(<span class="keyword">const</span> cpl_image *image, <span class="keywordtype">int</span> ymin, <span class="keywordtype">int</span> ymax, <span class="keywordtype" [...]
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>               <span class="keywordtype">bool</span> norders_is_guess,</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>               <span class="keywordtype">int</span> SAMPLEWIDTH, <span class="keywordtype">double</span> PTHRES, <span class="keywordtype">double</span> MINSLOPE, <span class="keywordtype">double</span> MAXSLOPE,</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>               <span class="keywordtype">int</span> SLOPERES, <span class="keywordtype">bool</span> consecutive,</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>                       cpl_image **htrans, cpl_image **htrans_original)</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> {</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     cpl_table *ordertable = NULL;   <span class="comment">/* The result table */</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     <span class="keywordtype">int</span> nx = 0;   <span class="comment">/* Dimensions of input image */</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     <span class="keywordtype">int</span> ny = 0;</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     <span class="keywordtype">int</span> minintersept = 0;  <span class="comment">/* The intersepts represented by the Hough image are </span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment">                  all integer values */</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <span class="keywordtype">int</span> maxintersept = 0;  <span class="comment">/* in the interval ] minintersept ; maxintersept ] */</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <span class="keywordtype">int</span> firstcol;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *image_data = NULL;    <span class="comment">/* For efficiency */</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     <span class="keywordtype">double</span> *htrans_data = NULL;</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     *htrans = NULL;                <span class="comment">/* Hough transform image (peaks deleted), returned */</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     *htrans_original = NULL;       <span class="comment">/* Hough transform image, returned */</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( image != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     assure( cpl_image_get_type(image) == CPL_TYPE_DOUBLE, CPL_ERROR_INVALID_TYPE, </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>         <span class="stringliteral">"Input image has wrong type. Must be of type double"</span>);</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     assure( 0 <= MINSLOPE, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>             <span class="stringliteral">"minslope = %f must be non-negative"</span>, MINSLOPE);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     assure( 0 <= MAXSLOPE, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>             <span class="stringliteral">"maxslope = %f must be non-negative"</span>, MAXSLOPE);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     assure( MINSLOPE < MAXSLOPE, CPL_ERROR_INCOMPATIBLE_INPUT, <span class="stringliteral">"minslope = %f; maxslope = %f"</span>,</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>             MINSLOPE, MAXSLOPE);</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     assure( 0 < SLOPERES, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>             <span class="stringliteral">"Hough image width = %d, must be positive"</span>, SLOPERES);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     <span class="comment">/* For efficiency don't support bad pixels (possible to do</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment">       later if needed) */</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     assure (cpl_image_count_rejected(image) == 0,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>         CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Input image has %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" bad pixels"</span>,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         cpl_image_count_rejected(image));</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     <span class="keywordflow">if</span> (MAXSLOPE > 0.5) </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     {</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Max possible slope is %f, which is larger than 0.5. "</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>                  <span class="stringliteral">"Results might be unreliable"</span>, MAXSLOPE);</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     }</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     assure( 1 <= ymin && ymin <= ymax && ymax <= ny, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         <span class="stringliteral">"Illegal y-range: %d - %d (image height is %d)"</span>, ymin, ymax, ny);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     <span class="comment">/* Calculate min. and max. intersepts represented.</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">       For simplicity, the Hough image is always full size,</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment">       even if not (ymin == 1 && ymax == ny)  */</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     maxintersept = ny;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     minintersept = uves_round_double(0 - nx*MAXSLOPE);</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="comment">/* Create the Hough image. Pixels are initialsed to zero */</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *htrans = cpl_image_new(SLOPERES,                      <span class="comment">/* Image width */</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                    maxintersept - minintersept,   <span class="comment">/* Image height */</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                    CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>        <span class="stringliteral">"Could not create image"</span>);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( image_data = cpl_image_get_data_double_const(image) );</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( htrans_data = cpl_image_get_data_double(*htrans) );</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating Hough transform"</span>);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     <span class="comment">/* Locate the leftmost trace column */</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(firstcol = <a class="code" href="group__uves__orderpos.html#gad50db3ef4566d0ff652423541aaf8790" title="Get the first trace column.">firsttrace</a>(nx, SAMPLEWIDTH));    </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(UVES_TIME_START(<span class="stringliteral">"The loop"</span>));</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     <span class="comment">/* Loop through input image subwindow and calculate the Hough image */</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     {</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     <span class="keywordflow">for</span> (y = ymin; y <= ymax; y += 1)</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>         {</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     <span class="comment">//if use_guess_tab =1 it may happen that ymax< ny</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     <span class="comment">//uves_msg_progress should have first argoment which goes from 0 till the</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     <span class="comment">//second argument value, in our case from 0 to ymax. </span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Calculating Hough transform %d %d"</span>,</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>                    y - 1, ymax));</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>      </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>         <span class="keywordflow">for</span> (x = firstcol; x <= nx; x += SAMPLEWIDTH)</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>             {</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>             <span class="comment">/* Transform image point at (x,y) to line in Hough space */</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>             <span class="keywordtype">double</span> pixelvalue;</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>             <span class="keywordtype">int</span> hx, hy;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>             <span class="keywordflow">for</span> (hx = 1; hx <= SLOPERES; hx++)</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                 {</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>                 <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(hy = INTERSEPTINV(uves_round_double(y - x*SLOPE(hx))));</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>                 <span class="comment">/* y = intersept + slope * x */</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>                 </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>                                 <span class="comment">/* Slow: check( pixelvalue = </span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment">                   cpl_image_get(image, x, y, &pis_rejected),</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment">                   "Could not read pixel at (%d, %d) in input image", x, y); */</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>                 <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pixelvalue = image_data[(x-1) + (y-1)*nx]);</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>                 </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                 <span class="comment">/* Add the pixelvalue to Hough image (hx, hy) */</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>                 <span class="comment">/* Not supported for now: if (!pis_rejected) */</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>                 </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>                 <span class="comment">/* Slow: check( current = </span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="comment">                   cpl_image_get(*htrans, hx, hy, &pis_rejected),</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment">                   "Could not read pixel at (%d, %d) in Hough image", hx, hy);</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="comment">                   check(           </span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="comment">                   cpl_image_set(*htrans, hx, hy, current + pixelvalue), </span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="comment">                   "Could not update pixel at (%d, %d) in Hough image", </span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="comment">                   hx, hy); */</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                 <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(htrans_data[(hx-1) + (hy-1)*SLOPERES] += pixelvalue);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>                 }</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>             }</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>         }</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     }</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     UVES_TIME_END;</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *htrans_original = cpl_image_duplicate(*htrans), <span class="stringliteral">"Error copying hough image"</span>);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     <span class="comment">/* Calculate order table from Hough image */</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ordertable = <a class="code" href="group__uves__orderpos.html#ga10eb92856d9393ba040c2955f504cb71" title="Detect order lines from the Hough image.">detect_lines</a>(*htrans,</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>                      minintersept,</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>                      image,</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                      NORDERS,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                      norders_is_guess,</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>                      SAMPLEWIDTH,</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>                      PTHRES,</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>                      MINSLOPE,</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>                      MAXSLOPE,</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>                      SLOPERES,</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>                                      consecutive),</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>        <span class="stringliteral">"Could not detect lines in hough image"</span>);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_get_ncol(ordertable) == 4, <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>, cpl_table_get_ncol(ordertable));</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(ordertable, <span class="stringliteral">"Slope"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(ordertable, <span class="stringliteral">"Intersept"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(ordertable, <span class="stringliteral">"Spacing"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(ordertable, <span class="stringliteral">"Order"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>   cleanup:</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     {</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>         uves_free_image(htrans);</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>         uves_free_image(htrans_original);</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>         uves_free_table(&ordertable);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     }</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     <span class="keywordflow">return</span> ordertable;</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> }</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> </div>
-<div class="line"><a name="l00398"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#ga10eb92856d9393ba040c2955f504cb71">  398</a></span> <span class="keyword">static</span> cpl_table *<a class="code" href="group__uves__orderpos.html#ga10eb92856d9393ba040c2955f504cb71" title="Detect order lines from the Hough image.">detect_lines</a>(cpl_image *htrans, <span class="keywordtype">int</span> minintersept, </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>                    <span class="keyword">const</span> cpl_image *inputimage, <span class="keywordtype">int</span> NORDERS,</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                    <span class="keywordtype">bool</span> norders_is_guess,</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                    <span class="keywordtype">int</span> SAMPLEWIDTH, <span class="keywordtype">double</span> PTHRES, <span class="keywordtype">double</span> MINSLOPE, </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>                    <span class="keywordtype">double</span> MAXSLOPE, <span class="keywordtype">int</span> SLOPERES,</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                                <span class="keywordtype">bool</span> consecutive)</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> {</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>     cpl_table *results = NULL;   <span class="comment">/* The result order table */</span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     cpl_stats *stats = NULL;      <span class="comment">/* Used for finding peaks in Hough image */</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *pl = NULL;  <span class="comment">/* Used for sorting the order table */</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     <span class="keywordtype">bool</span> automatic = <span class="keyword">false</span>;        <span class="comment">/* Flag indicating automatic mode */</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     <span class="keywordtype">int</span> tablesize = 0;</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     <span class="keywordtype">double</span> intensity = 0;         <span class="comment">/* Line intensity */</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     <span class="keywordtype">double</span> prev_intensity = 0;    <span class="comment">/* Intensity of previously detected line */</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     <span class="keywordtype">int</span> norders_detected = 0;     <span class="comment">/* Peaks detected so far */</span></div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     <span class="keywordtype">int</span> SPACING = 0;              <span class="comment">/* Interorder spacing   */</span></div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     <span class="keywordtype">double</span> globmax = 0;           <span class="comment">/* Global maximum value */</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( htrans != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( inputimage != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( NORDERS >= 0, <span class="stringliteral">"%d"</span>, NORDERS);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( SAMPLEWIDTH > 0, <span class="stringliteral">"%d"</span>, SAMPLEWIDTH);</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( 0 <= PTHRES && PTHRES <= 1, <span class="stringliteral">"%f"</span>, PTHRES);</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( SLOPERES > 0, <span class="stringliteral">"%d"</span>, SLOPERES);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     <span class="comment">/* Do we know how many orders to detect?</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="comment">       If not, enter automatic mode */</span></div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     <span class="keywordflow">if</span> (NORDERS == 0)</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     {</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Could not find information about predicted number of orders. "</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>              <span class="stringliteral">"Entering automatic mode (threshold = %f)"</span>, PTHRES);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>         automatic = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     }</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     {</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Searching for %d (%s) order lines"</span>, </div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>              NORDERS, (norders_is_guess) ? <span class="stringliteral">"or less"</span> : <span class="stringliteral">"exactly"</span>);</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>         automatic = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     }</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     </div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     <span class="comment">/* Allocate memory */</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     <span class="keywordflow">if</span> (automatic)</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     {</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>         <span class="comment">/* The input image height is a (conservative) upper limit</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> <span class="comment">           on the number of echelle orders in the image */</span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>         tablesize = cpl_image_get_size_y(inputimage);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     }</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     {</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>         tablesize = NORDERS;</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     }</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     <span class="comment">/* Initialize order table */</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( results = cpl_table_new(tablesize),</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>         cpl_table_new_column(results, <span class="stringliteral">"Slope"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>         cpl_table_new_column(results, <span class="stringliteral">"Intersept"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>         cpl_table_new_column(results, <span class="stringliteral">"Spacing"</span>, CPL_TYPE_INT)),</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>        <span class="stringliteral">"Could not initialize order table"</span>);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>     </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>     <span class="comment">/* Find maximum in Hough image */</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( stats = cpl_stats_new_from_image(htrans, CPL_STATS_MAX | CPL_STATS_MAXPOS), </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>        <span class="stringliteral">"Could not get statistics on Hough image"</span>);</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> <span class="comment">     *  Remember the first (i.e. global) maximum.</span></div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> <span class="comment">     *  In 1st iteration, prev_intensity == intensity </span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( globmax = cpl_stats_get_max(stats), </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>        <span class="stringliteral">"Could not locate first maximum in hough image"</span> );</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     prev_intensity = globmax;</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     <span class="comment">/*  Repeat until the predicted number of orders is found,</span></div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> <span class="comment">     *   or (in automatic mode) until the line intensity is less than threshold </span></div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     <span class="keywordflow">while</span> (   (!automatic && </div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>            (norders_detected < NORDERS &&</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>         (!norders_is_guess || cpl_stats_get_max(stats) >= PTHRES*prev_intensity)))</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>           || (automatic </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>           && cpl_stats_get_max(stats) >= PTHRES*prev_intensity)</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     )</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     {</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>         <span class="keywordtype">int</span> xmax = 0;</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>         <span class="keywordtype">int</span> ymax = 0;</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>         <span class="keywordtype">double</span> slope = 0;</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>         <span class="keywordtype">double</span> isept = 0;</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>         </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>         norders_detected += 1;</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>((intensity = cpl_stats_get_max(stats),</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>            xmax      = cpl_stats_get_max_x(stats),</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>            ymax      = cpl_stats_get_max_y(stats)),</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>         <span class="stringliteral">"Could not locate maximum"</span>);</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>         </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>         <span class="comment">/* Print (normalized) intensity of detection */</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%d. detection: intensity = %f"</span>,</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>                norders_detected, intensity/globmax * 100);</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>         <span class="comment">/* Warn if intensity suddenly dropped */</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>         <span class="keywordflow">if</span> (intensity < PTHRES * prev_intensity)</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>         {</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Intensity of %d. line is only "</span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>                      <span class="stringliteral">"%f %% of %d. line. Detecting too many orders?"</span>,</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>                      norders_detected, intensity / prev_intensity * 100,</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>                      norders_detected - 1);</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>         }</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>         prev_intensity = intensity;</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>         </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>         <span class="comment">/* After detecting the first peak, estimate the approximate average order spacing */</span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>         <span class="keywordflow">if</span> (norders_detected == 1) </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>         {</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>             <span class="keywordflow">if</span> (!automatic) </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>             {</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>                 SPACING = uves_round_double( </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>                 cpl_image_get_size_y(inputimage) / NORDERS );</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>             }</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>             {  <span class="comment">/* If the number of orders to detect is unknown, </span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">                  derive the interorder spacing from the peak locations</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="comment">                  in the Hough image */</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( SPACING = <a class="code" href="group__uves__orderpos.html#ga0830b05ef03423ceca86b6386123f26d" title="Estimate spacing of order lines.">calculate_spacing</a>(htrans, xmax), </div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                    <span class="stringliteral">"Could not estimate interorder spacing"</span>);</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>             }</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>             </div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Estimated order spacing is %d pixels"</span>, SPACING);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>         }</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>         </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>         <span class="comment">/* Get a more precise peak location */</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__orderpos.html#gab7f87424906c5f0eef60d4de2ce4a01f" title="Improve position of a peak in the Hough image.">update_max</a>(htrans,</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>                   &xmax,</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>                   &ymax,</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>                   SPACING,</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>                   cpl_image_get_size_x(inputimage),</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>                   SAMPLEWIDTH,</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>                   MINSLOPE,</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>                   MAXSLOPE,</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>                   SLOPERES), <span class="stringliteral">"Could not update peak position"</span>);</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>         </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__orderpos.html#ga0916288fc020f46150a3050ee529e2be" title="Delete peak in Hough image.">delete_peak</a>(htrans, </div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>                    minintersept, xmax, ymax, SPACING,</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>                    cpl_image_get_size_x(inputimage), </div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>                    SAMPLEWIDTH, </div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>                    MINSLOPE, MAXSLOPE, SLOPERES), </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>            <span class="stringliteral">"Could not delete peak in hough image"</span>);</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> </div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>         slope = SLOPE(xmax);</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>         isept = minintersept + ymax;</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> </div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>         <span class="comment">/* Make sure that the detection terminates if caller specified 'bad' parameters */</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>         assure( norders_detected <= tablesize, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>             <span class="stringliteral">"%d orders detected. This is way too many. "</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>             <span class="stringliteral">"Try to decrease NORDERS (from %d) or increase PTHRES (from %f)"</span>, </div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>             norders_detected, NORDERS, PTHRES);</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>         </div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_set_double(results, <span class="stringliteral">"Slope"</span>       , norders_detected - 1, slope),</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>             cpl_table_set_double(results, <span class="stringliteral">"Intersept"</span>   , norders_detected - 1, isept),</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>             cpl_table_set_int   (results, <span class="stringliteral">"Spacing"</span>     , norders_detected - 1, SPACING)),</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>            <span class="stringliteral">"Could add order line to order table"</span>);</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>         </div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>         <span class="comment">/* Locate the next potential line */</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( uves_free_stats(&stats),</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>             stats = cpl_stats_new_from_image(htrans, CPL_STATS_MAX | CPL_STATS_MAXPOS)), </div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>             <span class="stringliteral">"Could not get statistics on hough image"</span>);</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>     }</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>     </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"The intensity of the faintest line is %f of "</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>          <span class="stringliteral">"the intensity of the brightest line"</span>, intensity / globmax);</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Intensity of next (undetected) line is %f of the "</span></div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>          <span class="stringliteral">"intensity of the brightest line"</span>, cpl_stats_get_max(stats)/globmax);</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> </div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>     <span class="keywordflow">if</span> ( cpl_stats_get_max(stats) > 0.5 * intensity )</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>     {</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Brightest undetected line with intensity %.2f %% "</span></div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>                  <span class="stringliteral">"of faintest line. Detecting too few orders?"</span>,</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                  cpl_stats_get_max(stats) / intensity * 100);</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>     }</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>     </div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>     <span class="comment">/* Clean up table */</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_set_size(results, norders_detected), </div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>        <span class="stringliteral">"Could not remove extra rows from order table"</span>);</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> </div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>     <span class="comment">/* Sort the order table so that order numbers increase from </span></div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> <span class="comment">       bottom (low y) to top (high y) of image */</span></div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_sort_table_1(results, <span class="stringliteral">"Intersept"</span>, <span class="keyword">false</span>),    <span class="comment">/* reverse flag = false */</span></div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>        <span class="stringliteral">"Could not sort order table"</span>);</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> </div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>     <span class="comment">/* Number orders, starting from 1 */</span></div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     {</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     cpl_table_new_column(results, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(results); i++)</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>         {</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>             cpl_table_set_int(results, <span class="stringliteral">"Order"</span>, i, i+1);</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>         }</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     }</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>     <span class="keywordflow">if</span> (consecutive)</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     <span class="comment">/* Make sure we have consecutive orders.</span></div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> <span class="comment">       This assumes that the order separation varies with less than</span></div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> <span class="comment">       50 % from one order to the next */</span></div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>     {</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>         <span class="keywordtype">double</span> dist = 0;</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>         <span class="keywordtype">int</span> minorder, maxorder;</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>         <span class="keywordtype">int</span> n_removed;</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>         <span class="comment">/* From middle and up */</span></div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>         maxorder = -1;        </div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>         <span class="keywordflow">for</span> (i = cpl_table_get_nrow(results)/2;</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>              i <= cpl_table_get_nrow(results) - 2 && maxorder < 0; </div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>              i++)</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>             {</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>                 <span class="keywordflow">if</span> (i == cpl_table_get_nrow(results)/2)</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                     <span class="comment">/* initialize dist */</span></div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>                     {</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>                         dist =</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>                             cpl_table_get_double(results, <span class="stringliteral">"Intersept"</span>, i+1, NULL)-</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>                             cpl_table_get_double(results, <span class="stringliteral">"Intersept"</span>, i, NULL);</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>                     }</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                     {</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>                         <span class="keywordtype">double</span> new_dist = </div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>                             cpl_table_get_double(results, <span class="stringliteral">"Intersept"</span>, i+1, NULL)-</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>                             cpl_table_get_double(results, <span class="stringliteral">"Intersept"</span>, i, NULL);</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>                         </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>                         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order %d - %d separation = %.4f pixels"</span>, </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>                                        cpl_table_get_int(results, <span class="stringliteral">"Order"</span>, i, NULL),</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>                                        cpl_table_get_int(results, <span class="stringliteral">"Order"</span>, i+1, NULL),</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>                                        new_dist);</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span> </div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>                         <span class="keywordflow">if</span> (0.5*dist <= new_dist && new_dist <= 1.5*dist)</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>                             {</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>                                 <span class="comment">/* OK. It's probably the next consecutive order */</span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>                             }</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>                         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>                             {</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>                                 <span class="comment">/* Something's wrong. Stop */</span></div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>                                 maxorder = cpl_table_get_int(results, <span class="stringliteral">"Order"</span>, i, NULL);</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>                                 </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>                                 <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Order separation jumps from %.2f pixels to "</span></div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>                                                  <span class="stringliteral">"%.2f pixels. Discarding order(s) %d and above"</span>,</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>                                                  dist, new_dist, </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>                                                  maxorder+1);</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>                             }</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>                     }</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>             }</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> </div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>         <span class="comment">/* From middle and down */</span></div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>         minorder = -1;</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>         <span class="keywordflow">for</span> (i = cpl_table_get_nrow(results)/2;</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>              i >= 1 && minorder < 0;</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>              i--)</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>             {</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>                 <span class="keywordflow">if</span> (i == cpl_table_get_nrow(results)/2)</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>                     <span class="comment">/* initialize dist */</span></div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>                     {</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>                         dist =</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>                             cpl_table_get_double(results, <span class="stringliteral">"Intersept"</span>, i, NULL)-</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>                             cpl_table_get_double(results, <span class="stringliteral">"Intersept"</span>, i-1, NULL);</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>                     }</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>                     {</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>                         <span class="keywordtype">double</span> new_dist = </div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>                             cpl_table_get_double(results, <span class="stringliteral">"Intersept"</span>, i, NULL)-</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>                             cpl_table_get_double(results, <span class="stringliteral">"Intersept"</span>, i-1, NULL);</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>                         </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order %d - %d separation = %.4f pixels"</span>, </div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>                                        cpl_table_get_int(results, <span class="stringliteral">"Order"</span>, i-1, NULL),</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                                        cpl_table_get_int(results, <span class="stringliteral">"Order"</span>, i, NULL),</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                                        new_dist);</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> </div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>                         <span class="keywordflow">if</span> (0.5*dist <= new_dist && new_dist <= 1.5*dist)</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>                             {</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>                                 <span class="comment">/* OK. It's probably the next consecutive order */</span></div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>                             }</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>                             {</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>                                 <span class="comment">/* Something's wrong. Stop */</span></div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>                                 minorder = cpl_table_get_int(results, <span class="stringliteral">"Order"</span>, i, NULL);</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>                                 </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                                 <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Order separation jumps from %.2f pixels to "</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>                                                  <span class="stringliteral">"%.2f pixels. Discarding order(s) %d and below"</span>,</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                                                  dist, new_dist, </div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                                                  minorder-1);</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                             }</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>                     }</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>             }</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>         n_removed = 0;</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>         <span class="keywordflow">if</span> (maxorder > 0)</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>             {</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>                 <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( n_removed += uves_erase_table_rows(results, <span class="stringliteral">"Order"</span>,</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>                                                                 CPL_GREATER_THAN, maxorder));</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>             }</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>         <span class="keywordflow">if</span> (minorder > 0)</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>             {</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                 <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( n_removed += uves_erase_table_rows(results, <span class="stringliteral">"Order"</span>,</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>                                                                 CPL_LESS_THAN, minorder));</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>             }</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>         </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%d order(s) removed"</span>, n_removed);</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>         norders_detected -= n_removed;</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     }</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>     <span class="comment">/* Renumber orders, starting from 1 */</span></div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>     {</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(results); i++)</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>         {</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>             cpl_table_set_int(results, <span class="stringliteral">"Order"</span>, i, i+1);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>         }</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     }</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     </div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Hough transform detected %d orders"</span>, norders_detected);</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     </div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( norders_detected == cpl_table_get_nrow(results), <span class="stringliteral">"%d %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>, </div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>          norders_detected, cpl_table_get_nrow(results));</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> </div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>   cleanup:</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     uves_free_stats(&stats);</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>     uves_free_propertylist(&pl);</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>     {</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>         uves_free_table(&results);</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     }</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>     </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     <span class="keywordflow">return</span> results;</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> }</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> </div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     </div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00756"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#gab7f87424906c5f0eef60d4de2ce4a01f">  756</a></span> <span class="keyword">static</span> cpl_error_code <a class="code" href="group__uves__orderpos.html#gab7f87424906c5f0eef60d4de2ce4a01f" title="Improve position of a peak in the Hough image.">update_max</a>(<span class="keyword">const</span> cpl_image *htrans,</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>                  <span class="keywordtype">int</span> *xmax,              </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>                  <span class="keywordtype">int</span> *ymax,</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>                  <span class="keywordtype">int</span> SPACING,</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>                  <span class="keywordtype">int</span> imagewidth,</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>                  <span class="keywordtype">int</span> SAMPLEWIDTH,</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>                  <span class="keywordtype">double</span> MINSLOPE,</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>                  <span class="keywordtype">double</span> MAXSLOPE,</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>                  <span class="keywordtype">int</span> SLOPERES)</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span> {</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> nx = cpl_image_get_size_x(htrans);</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> ny = cpl_image_get_size_y(htrans);</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> slope = -imagewidth/2;             <span class="comment">/* slope of line in hough space */</span></div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> numberoftraces = 1 + imagewidth/SAMPLEWIDTH;</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>     <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> </div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>     <span class="comment">/* Only look at pixel values above this threshold  */</span></div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>     <span class="keywordtype">double</span> threshold = (1 - 0.5 / numberoftraces) * </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>     cpl_image_get(htrans, *xmax, *ymax, &pis_rejected);</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     <span class="keywordflow">if</span> (threshold < 0.99) threshold = 0.99;</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     assure (cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(), </div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>         <span class="stringliteral">"Could not read Hough image data"</span>);</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>     </div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     {</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>     <span class="keywordtype">double</span> sum = 0;</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     <span class="keywordtype">double</span> mx  = 0;</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>     <span class="keywordtype">double</span> my  = 0;</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     <span class="keywordtype">int</span> hx, hy;    </div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>     <span class="keywordflow">for</span> (hx = 1; hx <= SLOPERES; hx++)</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>         {</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>         <span class="keywordtype">int</span> rowcenter = </div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>             uves_round_double(</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>             *ymax + slope*(hx - *xmax)/((<span class="keywordtype">double</span>)SLOPERES)*(MAXSLOPE - MINSLOPE));</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>         </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>         <span class="comment">/* It would be more correct to look at pixels from (rowcenter - LINEWIDTH/2)</span></div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> <span class="comment">           to (rowcenter + LINEWIDTH/2) where LINEWIDTH is the echelle line width </span></div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span> <span class="comment">           (i.e. different from SPACING) But empirically it doesn't really make</span></div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span> <span class="comment">           a difference if we just use the pixel at rowcenter (for each x)    */</span></div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span> </div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>         <span class="keywordflow">for</span> (hy = rowcenter - 0*SPACING/2; hy <= rowcenter + 0*SPACING/2; hy++) </div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>             {</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>             <span class="keywordflow">if</span> (1 <= hx && hx <= nx &&</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>                 1 <= hy && hy <= ny)</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>                 {</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>                 <span class="keywordtype">double</span> pixelvalue = cpl_image_get(</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>                     htrans, hx, hy, &pis_rejected);</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>                 <span class="keywordflow">if</span> (!pis_rejected && pixelvalue >= threshold) </div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>                     {</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>                     mx  += hx*pixelvalue;</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>                     my  += hy*pixelvalue;</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>                     sum +=    pixelvalue;</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>                     }</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>                 }</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>             }</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>         </div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>         }</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>     </div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Peak position in Hough space changed from (%d, %d)"</span>, *xmax, *ymax);</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>     *xmax = uves_round_double(mx/sum);</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>     *ymax = uves_round_double(my/sum);</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"to (%d, %d)"</span>, *xmax, *ymax);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>     }</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>     </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>   cleanup:</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span> }</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span> </div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span> </div>
-<div class="line"><a name="l00837"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#ga0830b05ef03423ceca86b6386123f26d">  837</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__orderpos.html#ga0830b05ef03423ceca86b6386123f26d" title="Estimate spacing of order lines.">calculate_spacing</a>(<span class="keyword">const</span> cpl_image *image, <span class="keywordtype">int</span> x)</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span> {</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>     <span class="keywordtype">int</span> shift = 0;</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>     <span class="keywordtype">double</span> autoc = <a class="code" href="group__uves__orderpos.html#ga8be5990f31b99ed6a4582388982f1b12" title="Calculate auto-correlation function of image column.">autocorr</a>(image, x, shift);</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>     <span class="keywordtype">double</span> previous;</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>     assure (cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(), </div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>         <span class="stringliteral">"Could not calculate autocorrelation function"</span>);</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span> </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Autocorrelation(shift=%d) = %f"</span>, shift, autoc);</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>     </div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>     <span class="keywordflow">do</span>{</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>     previous = autoc;</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>     shift += 1;</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( autoc = <a class="code" href="group__uves__orderpos.html#ga8be5990f31b99ed6a4582388982f1b12" title="Calculate auto-correlation function of image column.">autocorr</a>(image, x, shift), </div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>            <span class="stringliteral">"Could not calculate autocorrelation function"</span>);</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Autocorrelation(shift=%d) = %f"</span>, shift, autoc);</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>     } <span class="keywordflow">while</span> (autoc <= previous);</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>     </div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>   cleanup:</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>     <span class="keywordflow">return</span> 2*(shift - 1);</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>     <span class="comment">/* First minimum of the autocorrelation function is half spacing */</span></div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> }</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> </div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> </div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#ga8be5990f31b99ed6a4582388982f1b12">  875</a></span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__orderpos.html#ga8be5990f31b99ed6a4582388982f1b12" title="Calculate auto-correlation function of image column.">autocorr</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> <s [...]
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> {</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>     assure (cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(), </div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>         <span class="stringliteral">"Could not read image dimensions"</span>);</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>     </div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>     <span class="keywordflow">if</span>( shift >= ny ) <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>     </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>     {</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     <span class="keywordtype">double</span> sum = 0;</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>     <span class="keywordtype">int</span> y;    </div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>     <span class="keywordtype">int</span> number_of_points = 0;</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>     <span class="keywordflow">for</span> (y = 1; y <= ny - shift; y++){</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>         <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>         <span class="keywordtype">double</span> pixelvalue;</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span> </div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>         pixelvalue = cpl_image_get(image, x, y,         &pis_rejected) *</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>                  cpl_image_get(image, x, y + shift, &pis_rejected);</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span> </div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>         <span class="keywordflow">if</span> (!pis_rejected){</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>         sum += pixelvalue;</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>         number_of_points += 1;</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>         }</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>     }</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>     assure( cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(),</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>         <span class="stringliteral">"Error reading image pixel values"</span>);</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>     </div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>     <span class="keywordflow">if</span> (number_of_points > 0) </div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>         {</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>         result = sum / number_of_points;</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>         }</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>         {</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>         result = 0;</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>         }</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>     }</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>     </div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>   cleanup:</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span> }</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> </div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00930"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#gad50db3ef4566d0ff652423541aaf8790">  930</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__orderpos.html#gad50db3ef4566d0ff652423541aaf8790" title="Get the first trace column.">firsttrace</a>(<span class="keywordtype">int</span> nx, <span class="keywordtype">int</span> SAMPLEWIDTH)</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span> {</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>     <span class="keywordtype">int</span> result = nx/2;</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> </div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>     <span class="keywordflow">while</span>(result - SAMPLEWIDTH >= 1)</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>     {</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>         result -= SAMPLEWIDTH;</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>     }</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span> </div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span> }</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span> </div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00966"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#ga0916288fc020f46150a3050ee529e2be">  966</a></span> <span class="keyword">static</span> cpl_error_code <a class="code" href="group__uves__orderpos.html#ga0916288fc020f46150a3050ee529e2be" title="Delete peak in Hough image.">delete_peak</a>(cpl_image *htrans, <span class="keywordtype">int</span> minintersept,</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>                   <span class="keywordtype">int</span> hxmax, <span class="keywordtype">int</span> hymax, </div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>                   <span class="keywordtype">int</span> SPACING, <span class="keywordtype">int</span> imagewidth, <span class="keywordtype">int</span> SAMPLEWIDTH, </div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>                   <span class="keywordtype">double</span> MINSLOPE, <span class="keywordtype">double</span> MAXSLOPE, <span class="keywordtype">int</span> SLOPERES)</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> {</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> ny = cpl_image_get_size_y(htrans);</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>     <span class="keywordtype">int</span> tracecol;</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>     <span class="keywordtype">int</span> firstcol = <a class="code" href="group__uves__orderpos.html#gad50db3ef4566d0ff652423541aaf8790" title="Get the first trace column.">firsttrace</a>(imagewidth, SAMPLEWIDTH);</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>     </div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>     assure (cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(), </div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>         <span class="stringliteral">"Could not read hough image data"</span>);</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>     </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>     <span class="comment">/* We reverse the calculation of the Hough transform */</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>     <span class="keywordflow">for</span> (tracecol = firstcol; tracecol <= imagewidth; tracecol += SAMPLEWIDTH){</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>     <span class="comment">/* Get y-coordinate in raw image */</span></div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>     <span class="keywordtype">double</span> slope = SLOPE(hxmax);</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>     <span class="keywordtype">double</span> intersept = minintersept + hymax;</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>     <span class="keywordtype">double</span> imagey = intersept + slope*tracecol;</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>     </div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>     <span class="comment">/* Now erase all points in the Hough image that were caused</span></div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> <span class="comment">       by the point (tracecol, imagey) in the input image */</span></div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>     <span class="keywordtype">int</span> hx, hy;</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     <span class="keywordflow">for</span> (hx = 1; hx <= SLOPERES; hx++){</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>         slope = SLOPE(hx);</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>         intersept = imagey - slope*tracecol;</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>         <span class="keywordflow">for</span> (hy = (intersept - minintersept) - SPACING/3;</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>          hy <= (intersept - minintersept) + SPACING/3; </div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>          hy++) {</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>         <span class="keywordflow">if</span> (0 < hy && hy <= ny) {</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(htrans, hx, hy, 0), </div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>                <span class="stringliteral">"Could not write pixel at (%d, %d)"</span>, hx, hy);</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>         }</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>         }</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>     }</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>     }</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>     </div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>   cleanup:</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> }</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01018"></a><span class="lineno"><a class="code" href="group__uves__orderpos.html#ga3d0f9d7641a1bb0eb356813c8d179ddb"> 1018</a></span> cpl_error_code <a class="code" href="group__uves__orderpos.html#ga3d0f9d7641a1bb0eb356813c8d179ddb" title="Draw detected order lines.">uves_draw_orders</a>(<span class="keyword">const</span> cpl_table *ordertable, cpl_image *image)</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> {</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>     <span class="keywordtype">double</span> penvalue;</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>     <span class="keywordtype">int</span> nx;</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>     <span class="keywordtype">int</span> ny;</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>     cpl_stats *stats = NULL;</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>     <span class="keywordtype">int</span> nrows;</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span> </div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( image != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( ordertable != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(ordertable, <span class="stringliteral">"Intersept"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(ordertable, <span class="stringliteral">"Slope"</span>    ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>     </div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>     <span class="comment">/* Calculate pen value */</span></div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( stats = cpl_stats_new_from_image(image, CPL_STATS_MAX), </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>        <span class="stringliteral">"Could not get statistics on input image"</span>);</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( penvalue = 2*cpl_stats_get_max(stats),</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>        <span class="stringliteral">"Could not find image maximum value"</span> );</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span> </div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>     <span class="comment">/* Draw lines in ordertable on image */</span></div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>  ( nrows = cpl_table_get_nrow(ordertable), </div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>          <span class="stringliteral">"Could not read number of rows in ordertable"</span>);</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>     <span class="keywordflow">for</span> (i = 0; i < nrows; i++)</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>     {</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>         <span class="keywordtype">int</span> x;</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>         <span class="keywordtype">double</span> intersept, slope;</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>         </div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( intersept = cpl_table_get_double(ordertable, <span class="stringliteral">"Intersept"</span>, i, NULL),</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>             slope     = cpl_table_get_double(ordertable, <span class="stringliteral">"Slope"</span>, i, NULL)),</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>            <span class="stringliteral">"Could not read 'Intersept' and 'Slope' from ordertable"</span>);</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>         </div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>         <span class="keywordflow">for</span> (x = 1; x <= nx; x++){</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>         <span class="keywordtype">double</span> yd = intersept + x * slope;</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>         <span class="keywordtype">int</span> y = uves_round_double(yd);</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>         </div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>         <span class="keywordflow">if</span> (0 < y && y <= ny)</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>             {</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>             cpl_image_set(image, x, y, penvalue);</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>             }</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>         }</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>         assure( cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(),</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>             <span class="stringliteral">"Could not draw order in table row #%d"</span>, i);</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>     }</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>     </div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>   cleanup:</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>     uves_free_stats(&stats);</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__orderpos__hough_8h_source.html b/html/uves__orderpos__hough_8h_source.html
deleted file mode 100644
index 223c061..0000000
--- a/html/uves__orderpos__hough_8h_source.html
+++ /dev/null
@@ -1,128 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_orderpos_hough.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_orderpos_hough.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2002,2003 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 13:56:30 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.9 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.8  2010/09/24 09:32:05  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2007/04/17 09:34:40  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Parametrize the assumption about consecutive orders (for FLAMES support)</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/06/08 08:42:53  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added support for computing Hough transform on image subwindow</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.8  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#ifndef UVES_ORDERPOS_HOUGH_H</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_ORDERPOS_HOUGH_H</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> cpl_table *<a class="code" href="group__uves__orderpos.html#gaa46ac08a5a64f9d633d8c7735a0aeb64" title="Compute Hough transform and detect lines.">uves_hough</a>(<span class="keyword">const</span> cpl_image *image, <span class="keywordtype">int</span> ymin, <span class="keywordtype">int</span> ymax, <span class="keywordtype">int</span> NORDERS, </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>               <span class="keywordtype">bool</span> norders_is_guess,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>               <span class="keywordtype">int</span> SAMPLEWIDTH, <span class="keywordtype">double</span> PTHRES, <span class="keywordtype">double</span> MINSLOPE, </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>               <span class="keywordtype">double</span> MAXSLOPE,</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>               <span class="keywordtype">int</span> SLOPERES, <span class="keywordtype">bool</span> consecutive,</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>               cpl_image **htrans, </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>               cpl_image **htrans_original);</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> cpl_error_code <a class="code" href="group__uves__orderpos.html#ga3d0f9d7641a1bb0eb356813c8d179ddb" title="Draw detected order lines.">uves_draw_orders</a>(<span class="keyword">const</span> cpl_table *, cpl_image *);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_ORDERPOS_HOUGH_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__orderpos__impl_8c_source.html b/html/uves__orderpos__impl_8c_source.html
deleted file mode 100644
index 52026c2..0000000
--- a/html/uves__orderpos__impl_8c_source.html
+++ /dev/null
@@ -1,279 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_orderpos_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_orderpos_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:05 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.44 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.42  2008/03/28 08:54:16  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * IRPLIB_CONCAT2X-->UVES_CONCAT2X</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.41  2007/06/11 13:28:26  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Changed recipe contact address to cpl at eso.org</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.40  2007/06/08 13:06:16  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Send bug reports to Andrea</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.39  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.38  2007/02/09 13:39:13  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Use defines for recipe id</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.37  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.36  2006/10/25 07:21:52  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Documentation bug fix</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.35  2006/10/24 14:02:38  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Factored out common UVES/FLAMES code</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.34  2006/10/17 12:33:02  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added semicolon at UVES_RECIPE_DEFINE invocation</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.33  2006/10/09 13:01:13  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Use macro to define recipe interface functions</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.32  2006/09/20 12:53:57  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Replaced stringcat functions with uves_sprintf()</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.31  2006/09/19 14:31:10  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * uves_insert_frame(): use bitmap to specify which image statistics keywords must be computed</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.30  2006/09/19 06:55:11  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Changed interface of uves_frameset to optionally write image statistics kewwords</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.29  2006/08/24 11:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.28  2006/08/18 13:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Fixed/changed QC parameter formats</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.27  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.26  2006/08/07 11:35:35  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Disabled parameter environment variable mode</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.25  2006/07/14 12:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Support multiple QC tests per product</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.24  2006/07/03 14:20:39  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Exclude bad pixels from order tracing</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.23  2006/07/03 13:09:24  amodigli</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * adjusted description display layout</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.22  2006/07/03 12:46:34  amodigli</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * updated description</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.21  2006/06/22 12:13:10  amodigli</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * removed ESO prefix</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.20  2006/06/22 06:44:06  amodigli</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * added some QC param</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.19  2006/06/16 08:25:34  jmlarsen</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Do the order tracing on non-median filtered frame</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.18  2006/06/13 11:57:02  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Check that calibration frames are from the same chip ID</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.17  2006/06/08 11:40:50  amodigli</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * added check to have output order table as input guess, if provided</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.16  2006/06/08 08:42:53  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Added support for computing Hough transform on image subwindow</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.15  2006/06/07 13:06:28  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Changed doxygen tag addtogroup -> defgroup</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.14  2006/06/07 09:01:28  amodigli</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * added some doc</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.13  2006/06/06 08:40:10  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.12  2006/05/09 15:42:00  amodigli</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * added QC log</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.11  2006/05/08 15:41:32  amodigli</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * added order table chopping (commented out)</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.10  2006/05/05 13:55:17  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Minor doc update</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.9  2006/04/20 10:47:39  amodigli</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * added qclog</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.8  2006/04/06 09:48:15  amodigli</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * changed uves_frameset_insert interface to have QC log</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.7  2006/04/06 08:46:40  jmlarsen</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Changed default polynomial degrees to auto</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.6  2006/03/24 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Changed background subtraction sample density default parameter value</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Revision 1.5  2006/03/09 10:53:41  jmlarsen</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Changed default bivariate degrees to MIDAS values</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Revision 1.4  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Revision 1.3  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Revision 1.2  2006/02/21 14:26:54  jmlarsen</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Revision 1.63  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Revision 1.62  2006/01/05 14:31:31  jmlarsen</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Checking for guess DRS table before guess order table</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Revision 1.61  2005/12/20 16:10:32  jmlarsen</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Added some documentation</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> * Revision 1.60  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="preprocessor">#include <uves_orderpos_body.h></span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">                            Forward declarations</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="keyword">static</span> <span class="keywordtype">int</span> uves_orderpos_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="preprocessor">#define cpl_plugin_get_info uves_orderpos_get_info</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     UVES_ORDERPOS_ID, UVES_ORDERPOS_DOM, uves_orderpos_define_parameters,</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     <span class="stringliteral">"Jonas M. Larsen"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     uves_orderpos_desc_short,</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     uves_orderpos_desc);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment">                              Functions code</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> uves_orderpos_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> {</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     <span class="keywordflow">return</span> uves_orderpos_define_parameters_body(parameters, make_str(UVES_ORDERPOS_ID));</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> }</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> UVES_CONCAT2X(UVES_ORDERPOS_ID,exe)(cpl_frameset *frames,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                       <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> {</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     <span class="keywordtype">bool</span> flames = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     uves_orderpos_exe_body(frames, flames, make_str(UVES_ORDERPOS_ID),</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                parameters, starttime);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__parameters_8c_source.html b/html/uves__parameters_8c_source.html
deleted file mode 100644
index 0e1dbb3..0000000
--- a/html/uves__parameters_8c_source.html
+++ /dev/null
@@ -1,2820 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_parameters.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_parameters.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-12-16 16:57:40 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.68 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.67  2010/10/07 12:54:40  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * in case of flames recipe norm_method default is still 'exptimes' (not to have recipe crash)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.66  2010/10/06 16:49:52  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * changed default option for master flat combination to 'explevel'</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.65  2010/09/27 15:23:12  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * removed blazecorr param</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.64  2010/09/24 09:32:05  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.62  2010/06/15 14:52:31  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Lim,ited scope of extract method parameter: 2d is not allowed in uves_cal_response</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.61  2010/06/11 11:40:25  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * rename method to stack_method</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.60  2010/06/09 07:17:14  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * renamed parameter definition function used by response step in redchain recipe to make them more explicit</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.59  2010/06/08 16:29:09  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Fixed problems in parameter definition for reduction chain recipe</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.58  2010/06/04 14:44:31  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * changed extract.best from false to true also in uves_cal_response</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.57  2010/05/18 11:35:18  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * added uves_master_flat_define_parameters</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.56  2010/05/11 05:49:20  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * clarified recipe help</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.55  2010/05/06 15:55:36  amodigli</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * added min/max to khigh/klow/niter parameters of kappa-sigma-clip, removed compiler warnings</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.54  2010/05/04 17:20:04  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * cleaned output</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.53  2010/04/28 08:46:17  amodigli</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * add uves_define_efficiency_parameters()</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.52  2010/03/22 15:55:53  amodigli</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * added uves_master_stack_define_parameters</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.51  2008/11/27 12:06:05  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * clarified parameter description</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.50  2008/09/29 06:58:19  amodigli</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.49  2008/09/04 12:07:05  amodigli</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * fixed mem leaks</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.48  2008/04/02 14:03:51  amodigli</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * fixed compilation warnings</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.47  2008/03/04 15:21:23  amodigli</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * fixed redchain problem with clean_traps parameter</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.46  2008/03/03 16:34:52  amodigli</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * added parameter to control trap column correction</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.45  2008/02/15 12:43:49  amodigli</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * allow lower/upper chip for parameter process_chip</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.44  2007/10/29 08:11:31  amodigli</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * cleaned output</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.43  2007/10/05 08:27:34  amodigli</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * added process_chip parameter</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.42  2007/08/22 11:17:58  amodigli</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * fixed typo</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.41  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.40  2007/08/17 10:08:12  amodigli</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * added case UVES_QCDARK_ID</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.39  2007/06/26 13:34:55  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Exported function for FLAMES</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.38  2007/06/14 11:12:00  jmlarsen</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Expanded description of plotter parameter</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.37  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.36  2007/05/22 11:37:49  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Removed image plotting functionality</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.35  2007/03/05 10:17:30  jmlarsen</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Disabled strange msginfolevel parameter</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.34  2007/02/09 13:39:31  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Use defines for recipe id</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.33  2007/02/09 08:58:18  jmlarsen</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Use define's rather than hard-coded recipe names</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.32  2007/01/15 08:46:45  jmlarsen</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Shortened lines</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.31  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.29  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Revision 1.28  2006/11/13 14:23:55  jmlarsen</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Removed workarounds for CPL const bugs</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Revision 1.27  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Revision 1.26  2006/09/27 15:08:45  jmlarsen</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Fixed doc. bug</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Revision 1.25  2006/09/20 12:53:57  jmlarsen</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> * Replaced stringcat functions with uves_sprintf()</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Revision 1.24  2006/09/01 13:57:42  jmlarsen</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * Fixed bug that causing parameter class to change during propagation</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Revision 1.23  2006/08/18 07:07:43  jmlarsen</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Switched order of cpl_calloc arguments</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Revision 1.22  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Revision 1.21  2006/08/14 15:21:08  jmlarsen</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Update to CPL3</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Revision 1.20  2006/08/11 11:29:26  jmlarsen</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * Added explicit void at function definition</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * Revision 1.19  2006/08/07 11:35:35  jmlarsen</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> * Disabled parameter environment variable mode</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Revision 1.18  2006/07/03 13:17:12  jmlarsen</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> * Changed order of global parameters</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * Revision 1.17  2006/06/06 08:40:10  jmlarsen</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> * Revision 1.16  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> * Revision 1.15  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> </div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="preprocessor">#include <uves_backsub.h></span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="preprocessor">#include <uves_extract.h></span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="preprocessor">#include <uves_rebin.h></span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="preprocessor">#include <uves_mdark_impl.h></span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="preprocessor">#include <uves_corrbadpix.h></span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="preprocessor">#include <uves_reduce.h></span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="keyword">static</span> <span class="keywordtype">int</span> propagate(<span class="keyword">const</span> <span class="keywordtype">char</span> *substep_id, <span class="keyword">const</span> cpl_parameterlist *sub_parameters, </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>              cpl_parameterlist *parent_parameters,</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *parent_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *context);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="keyword">static</span> cpl_parameter *</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> create_parameter_enum_int   (<span class="keyword">const</span> <span class="keywordtype">char</span> *name, cpl_type type,</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *description, <span class="keyword">const</span> <span class="keywordtype">char</span> *context, </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                  <span class="keywordtype">int</span> default_value, <span class="keywordtype">int</span> size, <span class="keywordtype">int</span> *values);</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="keyword">static</span> cpl_parameter *</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> create_parameter_enum_double(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, cpl_type type, <span class="keyword">const</span> <span class="keywordtype">char</span> *description,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *context, <span class="keywordtype">double</span> default_value, </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                  <span class="keywordtype">int</span> size, <span class="keywordtype">double</span> *values);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="keyword">static</span> cpl_parameter *</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> create_parameter_enum_string(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, cpl_type type, <span class="keyword">const</span> <span class="keywordtype">char</span> *description,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *context, <span class="keyword">const</span> <span class="keywordtype">char</span> *default_value, </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                  <span class="keywordtype">int</span> size, <span class="keyword">const</span> <span class="keywordtype">char</span> **values);</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment">                            Defines</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="preprocessor">#define FAIL(return_code, error_code, ...) do {       \</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="preprocessor">        cpl_msg_error(__func__, __VA_ARGS__);         \</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="preprocessor">        if (cpl_error_get_code() == CPL_ERROR_NONE) { \</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="preprocessor">          cpl_error_set(__func__, error_code);        \</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="preprocessor">        }                                             \</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="preprocessor">        return return_code;                           \</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="preprocessor">        } while(false)</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> cpl_error_code</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> uves_corr_traps_define_parameters(cpl_parameterlist * parameters,</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                                   <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> {</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>    <span class="comment">//const char *context = "clean";</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>    <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>    <span class="keywordtype">char</span> full_name[256];</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>    cpl_parameter *p;</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>    <span class="comment">//</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>    name = <span class="stringliteral">"clean_traps"</span>;</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>    sprintf(full_name,<span class="stringliteral">"%s.%s"</span>,recipe_id,name);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>    <span class="keywordflow">if</span>((strcmp(recipe_id,<span class="stringliteral">"uves_obs_scired"</span>) == 0) ||</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>       (strcmp(recipe_id,<span class="stringliteral">"uves_obs_spatred"</span>) == 0) ||</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>       (strcmp(recipe_id,<span class="stringliteral">"uves_cal_tflat"</span>) == 0) ) {</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>       uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>                                CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                                <span class="stringliteral">"Clean detector traps. "</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                                <span class="stringliteral">"If TRUE detector traps are interpolated."</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                                <span class="stringliteral">"The bad pixels are replaced by the average of the"</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>                                <span class="stringliteral">"nearest good pixels in the same column, or simply marked "</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                                <span class="stringliteral">"as bad. The positions of bad pixels are hard-coded "</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>                                <span class="stringliteral">"(as function of UVES chip)."</span>,</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>                                recipe_id,</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>                                CPL_FALSE);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>  </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>    } <span class="keywordflow">else</span> <span class="keywordflow">if</span>((strcmp(recipe_id,<span class="stringliteral">"uves_cal_mbias"</span>) == 0) ||</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>              (strcmp(recipe_id,<span class="stringliteral">"uves_cal_mkmaster"</span>) == 0) ) {</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>       uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>                                CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>                                <span class="stringliteral">"Clean detector traps. "</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>                                <span class="stringliteral">"If TRUE detector traps are interpolated."</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>                                <span class="stringliteral">"The bad pixels are replaced by the average of "</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>                                <span class="stringliteral">"nearest good pixels in the same column, or simply marked "</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                                <span class="stringliteral">"as bad. The positions of bad pixels are hard-coded "</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                                <span class="stringliteral">"(as function of UVES chip)."</span>,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                                recipe_id,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                                CPL_TRUE);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>  </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>    } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Creation of trap not supported for recipe: '%s'"</span>,</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                recipe_id);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>    }</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>    <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>    {</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>  </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>       cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>                     <span class="stringliteral">"Creation of trap column parameters failed: '%s'"</span>,</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>                     cpl_error_get_where());</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>    }</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>  </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>    <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> }</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> cpl_error_code</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> uves_master_stack_define_parameters(cpl_parameterlist *parlist, <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> {</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>  </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     <span class="keywordtype">char</span> full_name[256];</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>  </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     cpl_parameter *p;</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> </div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     {</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     name = <span class="stringliteral">"stack_method"</span>;</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     sprintf(full_name,<span class="stringliteral">"%s.%s"</span>,recipe_id,name);</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>                     CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>                     <span class="stringliteral">"Method used to build master frame "</span>,</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>                     recipe_id,</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>                             <span class="stringliteral">"median"</span>,2,<span class="stringliteral">"median"</span>,<span class="stringliteral">"mean"</span>);</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     }</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     {</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     name = <span class="stringliteral">"klow"</span>;</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     sprintf(full_name,<span class="stringliteral">"%s.%s"</span>,recipe_id,name);</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>                     CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>                     <span class="stringliteral">"Kappa used to clip low level values, when method is set to 'mean' "</span>,</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                     recipe_id,</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>                              5.,0.,100.);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     }</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     {</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     name = <span class="stringliteral">"khigh"</span>;</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     sprintf(full_name,<span class="stringliteral">"%s.%s"</span>,recipe_id,name);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>                     CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>                     <span class="stringliteral">"Kappa used to clip high level values, when method is set to 'mean' "</span>,</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                     recipe_id,</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>                              5.,0.,100.);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     }</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     {</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     name = <span class="stringliteral">"niter"</span>;</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     sprintf(full_name,<span class="stringliteral">"%s.%s"</span>,recipe_id,name);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>  </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>                     CPL_TYPE_INT,</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                     <span class="stringliteral">"Number of kappa sigma iterations, when method is set to 'mean' "</span>,</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>                     recipe_id,</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>                              5,0,100);</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     }</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     {</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of kappa sigma parameters failed: '%s'"</span>,</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     }</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> }</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> cpl_error_code</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> uves_master_flat_define_parameters(cpl_parameterlist *parlist, <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> {</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>  </div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     <span class="keywordtype">char</span> full_name[256];</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>  </div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     cpl_parameter *p;</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> </div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     {</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     name = <span class="stringliteral">"norm_method"</span>;</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     sprintf(full_name,<span class="stringliteral">"%s.%s"</span>,recipe_id,name);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"recipe id %s"</span>,recipe_id);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>     uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>                             CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>                             <span class="stringliteral">"Method used to build master frame "</span>,</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>                             recipe_id,</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                             (strstr(recipe_id,<span class="stringliteral">"flames"</span>) !=NULL) ? <span class="stringliteral">"exptime"</span> : <span class="stringliteral">"explevel"</span>,</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                             2,<span class="stringliteral">"exptime"</span>,<span class="stringliteral">"explevel"</span>);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     }</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     {</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of master flat parameters failed: '%s'"</span>,</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>     }</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> }</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> cpl_error_code</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> uves_define_global_parameters(cpl_parameterlist *parlist)</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> {</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *context = <span class="stringliteral">"uves"</span>;</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     cpl_parameter *p;</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     {</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     name = <span class="stringliteral">"debug"</span>;</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, context, name);</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>                     CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>                     <span class="stringliteral">"Whether or not to save intermediate "</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>                     <span class="stringliteral">"results to local directory"</span>,</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>                     context,</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>                     <span class="keyword">false</span>);</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     }</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> </div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     {</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>         name = <span class="stringliteral">"plotter"</span>;</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, context, name);</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>         uves_parameter_new_value(</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>             p, full_name,</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>             CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>             <span class="stringliteral">"Any plots produced by the recipe "</span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>             <span class="stringliteral">"are redirected to the command specified "</span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>             <span class="stringliteral">"by this parameter. The plotting command "</span></div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>             <span class="stringliteral">"must contain the substring 'gnuplot' and "</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>             <span class="stringliteral">"must be able to parse gnuplot syntax on its "</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>             <span class="stringliteral">"standard input. "</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>             <span class="stringliteral">"Valid examples of such a command may include "</span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>             <span class="stringliteral">"'gnuplot -persist' and 'cat > mygnuplot$$.gp'. "</span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>             <span class="stringliteral">"A finer control of the plotting options can "</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>             <span class="stringliteral">"be obtained by writing an "</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>             <span class="stringliteral">"executable script, e.g. my_gnuplot.pl, that "</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>             <span class="stringliteral">"executes gnuplot after setting the desired gnuplot "</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>             <span class="stringliteral">"options (e.g. set terminal pslatex color). "</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>             <span class="stringliteral">"To turn off plotting, set this parameter to 'no'"</span>,</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>             context,</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>             <span class="stringliteral">"no"</span>);</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> </div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>         cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     }</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>    {</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     name = <span class="stringliteral">"process_chip"</span>;</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, context, name);</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>     uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>                     CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>                     <span class="stringliteral">"For RED arm data proces the "</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>                  <span class="stringliteral">"redl, redu, or both chip(s)"</span>,</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>                     context,</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>                             <span class="stringliteral">"both"</span>,5,<span class="stringliteral">"both"</span>,<span class="stringliteral">"redl"</span>,<span class="stringliteral">"redu"</span>,<span class="stringliteral">"REDL"</span>,<span class="stringliteral">"REDU"</span>);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>     cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>     }</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> </div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     <span class="keywordflow">if</span> (0)</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>         <span class="comment">/* The meaning of this parameter often escapes the developers,</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> <span class="comment">           so let's not expose it to the users */</span></div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>         {</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>         name = <span class="stringliteral">"msginfolevel"</span>;</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, context, name);</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                     CPL_TYPE_INT,</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                     <span class="stringliteral">"This parameter controls the subdivision "</span></div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                     <span class="stringliteral">"of the 'info' message level (set e.g. with "</span></div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                     <span class="stringliteral">"esorex' --msg-level). The higher the value "</span></div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                     <span class="stringliteral">"of this parameter, the more messages are "</span></div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>                     <span class="stringliteral">"printed at the info level. For minimum "</span></div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>                     <span class="stringliteral">"output, set to zero. Increase the level "</span></div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>                     <span class="stringliteral">"(to 1, 2, 3, ...) for more output. The "</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>                     <span class="stringliteral">"value -1 is a special value meaning maximum "</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>                     <span class="stringliteral">"output"</span>,</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>                     context,</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>                     -1,                 <span class="comment">/* Default */</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>                     -1, INT_MAX);       <span class="comment">/* Range   */</span></div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>     }</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> </div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>     {</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of global parameters failed: '%s'"</span>,</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     }</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>     </div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> }</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> cpl_error_code</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> uves_define_extract_for_response_chain_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> {</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> </div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     <span class="comment">//char *context = NULL;</span></div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>     cpl_parameter *p = NULL;</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> <span class="comment">    context = uves_sprintf("%s.%s.%s", make_str(UVES_REDCHAIN_ID), make_str(UVES_RESPONSE_ID), name);</span></div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> <span class="comment">*/</span>  </div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>     {</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>         name = <span class="stringliteral">"uves_cal_response.reduce.extract.method"</span>;</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> </div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>         uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                                 CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                                 <span class="stringliteral">"Extraction method. (2d/optimal not supported by uves_cal_wavecal, weighted supported only by uves_cal_wavecal, 2d not supported by uves_cal_response)"</span>,</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>                                 UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>                                 <span class="stringliteral">"optimal"</span>,</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>                                 5,</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>                                 <span class="stringliteral">"average"</span>,</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>                                 <span class="stringliteral">"linear"</span>,</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>                                 <span class="stringliteral">"2d"</span>,</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>                                 <span class="stringliteral">"weighted"</span>,</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                                 <span class="stringliteral">"optimal"</span>);</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>         </div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     }</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> </div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>     {</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>         name = <span class="stringliteral">"uves_cal_response.reduce.extract.kappa"</span>;</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>         </div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>         uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>                                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>                                  <span class="stringliteral">"In optimal extraction mode, this is the "</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>                                  <span class="stringliteral">"threshold for bad (i.e. hot/cold) "</span></div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>                                  <span class="stringliteral">"pixel rejection. If a pixel deviates more than "</span></div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>                                  <span class="stringliteral">"kappa*sigma (where sigma is "</span></div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>                                  <span class="stringliteral">"the uncertainty of the pixel flux) from "</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>                                  <span class="stringliteral">"the inferred spatial profile, its "</span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>                                  <span class="stringliteral">"weight is set to zero. Range: [-1,100]. If this parameter "</span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>                                  <span class="stringliteral">"is negative, no rejection is performed."</span>,</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>                                  UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>                                  10.0,-1.,100.);</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>         </div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     }</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>     {</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>         name = <span class="stringliteral">"uves_cal_response.reduce.extract.chunk"</span>;</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>         </div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>         uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>                                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>                                  <span class="stringliteral">"In optimal extraction mode, the chunk size (in pixels) "</span></div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>                                  <span class="stringliteral">"used for fitting the analytical profile (a fit of the "</span></div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>                                  <span class="stringliteral">"analytical profile to single bins would suffer from "</span></div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>                                  <span class="stringliteral">"low statistics)."</span>,</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>                                  UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>                                  32,</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>                                  1, INT_MAX);</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>         </div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>     }</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>     </div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>     {</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>         name = <span class="stringliteral">"uves_cal_response.reduce.extract.profile"</span>;</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>         </div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>         uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                                 CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>                                 <span class="stringliteral">"In optimal extraction mode, the kind of profile to use. "</span></div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                                 <span class="stringliteral">"'gauss' gives a Gaussian profile, 'moffat' gives "</span></div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                                 <span class="stringliteral">"a Moffat profile with beta=4 and a possible linear sky "</span></div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>                                 <span class="stringliteral">"contribution. 'virtual' uses "</span></div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>                                 <span class="stringliteral">"a virtual resampling algorithm (i.e. measures and "</span></div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>                                 <span class="stringliteral">"uses the actual object profile). "</span></div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>                                 <span class="stringliteral">"'constant' assumes a constant spatial profile and "</span></div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>                                 <span class="stringliteral">"allows optimal extraction of wavelength "</span></div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                                 <span class="stringliteral">"calibration frames. 'auto' will automatically "</span></div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>                                 <span class="stringliteral">"select the best method based on the estimated S/N of the "</span></div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>                                 <span class="stringliteral">"object. For low S/N, 'moffat' or 'gauss' are "</span></div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>                                 <span class="stringliteral">"recommended (for robustness). For high S/N, 'virtual' is "</span></div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>                                 <span class="stringliteral">"recommended (for accuracy). In the case of virtual resampling, "</span></div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                                 <span class="stringliteral">"a precise determination of the order positions is required; "</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>                                 <span class="stringliteral">"therefore the order-definition is repeated "</span></div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                                 <span class="stringliteral">"using the (assumed non-low S/N) science frame"</span>,</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                                 UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                 <span class="stringliteral">"auto"</span>,</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>                                 5,</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>                                 <span class="stringliteral">"constant"</span>,</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>                                 <span class="stringliteral">"gauss"</span>,</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>                                 <span class="stringliteral">"moffat"</span>,</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>                                 <span class="stringliteral">"virtual"</span>,</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>                                 <span class="stringliteral">"auto"</span>);</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>         </div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>     }</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> </div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     {</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>         name = <span class="stringliteral">"uves_cal_response.reduce.extract.skymethod"</span>;</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>         </div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>         uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>                                 CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>                                 <span class="stringliteral">"In optimal extraction mode, the sky subtraction method "</span></div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                 <span class="stringliteral">"to use. 'median' estimates the sky as the median of pixels "</span></div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>                 <span class="stringliteral">"along the slit (ignoring pixels close to the object), whereas "</span></div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>                 <span class="stringliteral">"'optimal' does a chi square minimization along the slit "</span></div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>                 <span class="stringliteral">"to obtain the best combined object and sky levels. The optimal "</span></div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>                 <span class="stringliteral">"method gives the most accurate sky determination but is also "</span></div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>                 <span class="stringliteral">"a bit slower than the median method"</span>,</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>                                 UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>                 <span class="stringliteral">"optimal"</span>,</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>                                 2,</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>                                 <span class="stringliteral">"median"</span>,</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>                                 <span class="stringliteral">"optimal"</span>);</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>         </div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     }</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     {</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>         name = <span class="stringliteral">"uves_cal_response.reduce.extract.oversample"</span>;</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>         </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>         uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>                                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>                                  <span class="stringliteral">"The oversampling factor used for the virtual "</span></div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>                                  <span class="stringliteral">"resampling algorithm. If negative, the value 5 is "</span></div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>                                  <span class="stringliteral">"used for S/N <=200, and the value 10 is used if the estimated "</span></div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>                                  <span class="stringliteral">"S/N is > 200"</span>,</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>                                  UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>                                  -1,</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>                                  -2, INT_MAX);</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>         </div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>     }</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> </div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>     {</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>         name = <span class="stringliteral">"uves_cal_response.reduce.extract.best"</span>;</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>     </div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>     uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>                  CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>                  <span class="stringliteral">"(optimal extraction only) "</span></div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>                  <span class="stringliteral">"If false (fastest), the spectrum is extracted only once. "</span></div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>                  <span class="stringliteral">"If true (best), the spectrum is extracted twice, the "</span></div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>                  <span class="stringliteral">"second time using improved variance estimates "</span></div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>                  <span class="stringliteral">"based on the first iteration. Better variance "</span></div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>                  <span class="stringliteral">"estimates slightly improve the obtained signal to "</span></div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>                  <span class="stringliteral">"noise but at the cost of increased execution time"</span>,</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>                  UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>                  <span class="keyword">true</span>);</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     </div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>     }</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> </div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     {</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of extraction parameters failed: '%s'"</span>,</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>     }</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span> </div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> }</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> </div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span> cpl_error_code</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> uves_define_rebin_for_response_chain_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> {</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> </div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> </div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> </div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     cpl_parameter *p = NULL;</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span> </div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>     </div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>     {</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>     name = <span class="stringliteral">"uves_cal_response.reduce.rebin.wavestep"</span>;</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>,  make_str(UVES_REDCHAIN_ID),<span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span> </div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>                  <span class="stringliteral">"The bin size (in w.l.u.) in wavelength space. "</span></div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>                  <span class="stringliteral">"If negative, a step size of "</span></div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>                  <span class="stringliteral">"2/3 * ( average pixel size ) is used."</span>,</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>                  UVES_REBIN_ID,</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>                              -1.0,-1.0,DBL_MAX);</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span> </div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>     name = <span class="stringliteral">"uves_cal_response.reduce.rebin.scale"</span>;</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>,  make_str(UVES_REDCHAIN_ID),<span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>     uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>                  CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>                  <span class="stringliteral">"Whether or not to multiply by the factor "</span></div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>                  <span class="stringliteral">"dx/dlambda (pixels per wavelength) "</span></div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>                  <span class="stringliteral">"during the rebinning. This option is disabled "</span></div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>                  <span class="stringliteral">"as default in concordance with the "</span></div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>                  <span class="stringliteral">"method used in the MIDAS pipeline. This "</span></div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>                  <span class="stringliteral">"option should be set to true "</span></div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>                  <span class="stringliteral">"to convert the observed flux (in pixel-space) "</span></div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>                  <span class="stringliteral">"to a flux per wavelength (in "</span></div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>                  <span class="stringliteral">"wavelength-space)."</span>,</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>                  UVES_REBIN_ID,</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>                  <span class="keyword">false</span>);</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>     }</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>     </div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>   <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>     {</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of background parameters failed: '%s'"</span>,</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>     }</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>     </div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> </div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span> </div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span> }</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span> </div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> </div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span> cpl_error_code</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span> uves_define_reduce_for_response_chain_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> {</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span> </div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>    <span class="keyword">const</span> <span class="keywordtype">char</span> *name = NULL;</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>    <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>    cpl_parameter *p;</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> </div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>   </div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>     <span class="comment">/******************</span></div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> <span class="comment">     *  Slit geometry *</span></div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>     {</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>         name = <span class="stringliteral">"uves_cal_response.reduce.slitlength"</span>;</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>,  make_str(UVES_REDCHAIN_ID),<span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>         </div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>         uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>                     CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>                     <span class="stringliteral">"Extraction slit length (in pixels). "</span></div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>                     <span class="stringliteral">"If negative, the value "</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>                     <span class="stringliteral">"inferred from the raw frame header is used"</span>,</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>                     UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>                     -1.0,</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>                     -2.0, DBL_MAX);</div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>         </div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>     }</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> </div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>     {</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>         name = <span class="stringliteral">"uves_cal_response.reduce.skysub"</span>;</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>          full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>,  make_str(UVES_REDCHAIN_ID),<span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>         </div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>         uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>                      CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>                      <span class="stringliteral">"Do sky-subtraction (only applicable to linear "</span></div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>                      <span class="stringliteral">"and average extractions)?"</span>,</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>                      <span class="keyword">true</span>);</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>         </div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>     }</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> </div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>     {</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>         name = <span class="stringliteral">"uves_cal_response.reduce.objoffset"</span>;</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>          full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>,  make_str(UVES_REDCHAIN_ID),<span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>         </div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>         uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>                      CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>                      <span class="stringliteral">"Offset (in pixels) of extraction slit "</span></div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>                                      <span class="stringliteral">"with respect to center of order. "</span></div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>                                      <span class="stringliteral">"This parameter applies to linear/average/"</span></div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>                                      <span class="stringliteral">"optimal extraction. "</span></div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>                                      <span class="stringliteral">"For linear/average extraction, if the related "</span></div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>                                      <span class="stringliteral">"parameter objslit is negative, the offset is "</span></div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>                      <span class="stringliteral">"automatically determined by measuring the "</span></div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>                      <span class="stringliteral">"actual object position. "</span>,</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>                      0.0);</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>         </div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>     }</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span> </div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>         {</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>             name = <span class="stringliteral">"uves_cal_response.reduce.objslit"</span>;</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>          full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>,  make_str(UVES_REDCHAIN_ID),<span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>             </div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>             uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>                                      CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>                                      <span class="stringliteral">"Object window size (in pixels). This must "</span></div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>                                      <span class="stringliteral">"be less than the total slit length. If "</span></div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>                                      <span class="stringliteral">"negative, the default value (half of full "</span></div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>                                      <span class="stringliteral">"slit length) is used. The upper and lower "</span></div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>                                      <span class="stringliteral">"sky windows are defined as the part of the "</span></div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>                                      <span class="stringliteral">"full slit (if any) outside the object "</span></div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>                                      <span class="stringliteral">"window. The center of the object window "</span></div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>                                      <span class="stringliteral">"is determined by the offset parameter. "</span></div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>                                      <span class="stringliteral">"This parameter does not apply to optimal "</span></div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                                      <span class="stringliteral">"extraction."</span>,</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>                                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>                                      -1.0,</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                                      -2.0, DBL_MAX);</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>         </div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>     }</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> </div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>     {</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>         name = <span class="stringliteral">"uves_cal_response.reduce.tiltcorr"</span>;</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>          full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>,  make_str(UVES_REDCHAIN_ID),<span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>         </div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>         uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>                      CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>                      <span class="stringliteral">"If enabled (recommended), the provided "</span></div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                                      <span class="stringliteral">"dispersion solutions "</span></div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                                      <span class="stringliteral">"obtained at different slit positions are "</span></div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                                      <span class="stringliteral">"interpolated linearly at the actually "</span></div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>                                      <span class="stringliteral">"measured position of the object/sky. "</span></div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                                      <span class="stringliteral">"Line tilt correction is currently not supported "</span></div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                                      <span class="stringliteral">"for 2d extraction, in which case the "</span></div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                                      <span class="stringliteral">"dispersion solution obtained at the middle of "</span></div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>                                      <span class="stringliteral">"the slit is always used."</span>,</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>                      <span class="keyword">true</span>);</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>         </div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>     }</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> </div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span> </div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span> </div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span> <span class="comment">     *  Flatfielding *</span></div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span> </div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>     {</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>         name = <span class="stringliteral">"uves_cal_response.reduce.ffmethod"</span>;</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>          full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>,  make_str(UVES_REDCHAIN_ID),<span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>         </div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>         uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>                     CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>                     <span class="stringliteral">"Flat-fielding method. If set to 'pixel', "</span></div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>                     <span class="stringliteral">"flat-fielding is done in pixel-pixel space "</span></div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>                     <span class="stringliteral">"(before extraction); if set to 'extract', "</span></div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>                     <span class="stringliteral">"flat-fielding is performed in pixel-order "</span></div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                     <span class="stringliteral">"space (i.e. after extraction). If set to "</span></div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>                     <span class="stringliteral">"'no', no flat-field correction is done"</span>,</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>                     UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>                     <span class="stringliteral">"extract"</span>,    <span class="comment">/* 'Pixel' method is usually preferred,</span></div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> <span class="comment">                             but do like UVES/MIDAS */</span></div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>                     3, </div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>                     <span class="stringliteral">"pixel"</span>, <span class="stringliteral">"extract"</span>, <span class="stringliteral">"no"</span>);</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>         </div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>     }</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> </div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> <span class="comment">     *  Blaze corr.  *</span></div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> </div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>     {</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> <span class="comment">        name = "uves_cal_response.reduce.blazecorr";</span></div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> <span class="comment">         full_name = uves_sprintf("%s.%s%s",  make_str(UVES_REDCHAIN_ID),"", name);</span></div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span> <span class="comment">        </span></div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> <span class="comment">        uves_parameter_new_value(p, full_name,</span></div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> <span class="comment">                    CPL_TYPE_BOOL,</span></div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> <span class="comment">                    "(highly experimental, recommended=false) "</span></div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> <span class="comment">                    "Apply a correction for the different shapes "</span></div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> <span class="comment">                    "of flat-field and science blaze functions? "</span></div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> <span class="comment">                    "For this to be possible, flat-fielding method "</span></div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> <span class="comment">                    "must be different from 'no'.",</span></div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> <span class="comment">                    UVES_REDUCE_ID,</span></div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span> <span class="comment">                    false);</span></div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> <span class="comment">        </span></div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> <span class="comment">        cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</span></div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> <span class="comment">        cpl_parameterlist_append(parameters, p);</span></div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span> <span class="comment">        cpl_free(full_name);</span></div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>     }</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> </div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>  </div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> </div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> <span class="comment">     *   Merging     *</span></div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>     {</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>       name = <span class="stringliteral">"uves_cal_response.reduce.merge"</span>;</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>        full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>,  make_str(UVES_REDCHAIN_ID),<span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>         </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>       uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>                   CPL_TYPE_STRING,</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>                               <span class="stringliteral">"Order merging method. If 'optimal', the "</span></div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>                               <span class="stringliteral">"flux in the overlapping region is set "</span></div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>                               <span class="stringliteral">"to the (optimally computed, using the "</span></div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>                               <span class="stringliteral">"uncertainties) average of single order "</span></div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>                               <span class="stringliteral">"spectra. If 'sum', the flux in the "</span></div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>                               <span class="stringliteral">"overlapping region is computed as the "</span></div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>                               <span class="stringliteral">"sum of the single order spectra. If 'noappend' "</span></div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>                               <span class="stringliteral">"the spectrum is simply rebinned but not merged."</span></div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>                               <span class="stringliteral">"If flat-fielding is done, method 'optimal' "</span></div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>                               <span class="stringliteral">"is recommended, otherwise 'sum'."</span>,</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>                               UVES_REDUCE_ID,</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>                               <span class="stringliteral">"optimal"</span>,</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                               3, </div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>                   <span class="stringliteral">"optimal"</span>, <span class="stringliteral">"sum"</span>, <span class="stringliteral">"noappend"</span>);</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>         </div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> </div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>       name = <span class="stringliteral">"uves_cal_response.reduce.merge_delt1"</span>;</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>        full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>,  make_str(UVES_REDCHAIN_ID),<span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>         </div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>       uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>                    CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>                                <span class="stringliteral">"Order merging left hand (short wavelength) "</span></div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>                                <span class="stringliteral">"cut. To reduce the amount of order "</span></div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>                                <span class="stringliteral">"overlapping regions we allow to cut short and "</span></div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>                                <span class="stringliteral">"long wavelength ranges. "</span></div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>                                <span class="stringliteral">"This may reduce the ripple possibly "</span></div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>                                <span class="stringliteral">"introduced by the order merging. "</span></div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>                                <span class="stringliteral">"Suggested values are: "</span></div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>                                <span class="stringliteral">"10 (W<=390), 12 (390<W<=437, 520<W<=564), "</span></div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>                    <span class="stringliteral">"14 (437<W<=520, 564<W) "</span>,</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>                                UVES_REDUCE_ID,</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>                                0.,0.,20.);</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>         </div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> </div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> </div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>       name = <span class="stringliteral">"uves_cal_response.reduce.merge_delt2"</span>;</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>        full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>,  make_str(UVES_REDCHAIN_ID),<span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>        </div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>       uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>                    CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                                <span class="stringliteral">"Order merging right hand (long wavelength) "</span></div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>                                <span class="stringliteral">"cut. To reduce the amount of order "</span></div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>                                <span class="stringliteral">"overlapping regions we allow to cut short and "</span></div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>                                <span class="stringliteral">"long wavelength ranges. "</span></div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>                                <span class="stringliteral">"This may reduce the ripple possibly "</span></div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>                                <span class="stringliteral">"introduced by the order merging. "</span></div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>                                <span class="stringliteral">"Suggested values is 4"</span>,</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>                                UVES_REDUCE_ID,</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>                                0.,0.,20.);</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>         </div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span> </div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> </div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span> </div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>     }</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> </div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>   <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>     {</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of background parameters failed: '%s'"</span>,</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>     }</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>     </div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> </div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span> </div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> }</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span> cpl_error_code</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span> uves_define_background_for_response_chain_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span> {</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span> </div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span> </div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>    <span class="comment">//const char *context = "uves"; </span></div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>    <span class="keyword">const</span> <span class="keywordtype">char</span> *name = NULL;</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>    <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>    cpl_parameter *p;</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> </div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>  </div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> </div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>     <span class="comment">/**************************</span></div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> <span class="comment">     * Inter-order-background *</span></div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> <span class="comment">     **************************/</span></div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span> </div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>     name = <span class="stringliteral">"uves_cal_response.reduce.backsub.mmethod"</span>;</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>,  make_str(UVES_REDCHAIN_ID),<span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>     </div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>     uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>                    CPL_TYPE_STRING,</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>                    <span class="stringliteral">"Background measuring method. If equal to 'median' "</span></div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>                    <span class="stringliteral">"the background is sampled using the median of a subwindow. "</span></div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>                    <span class="stringliteral">"If 'minimum', the subwindow minimum value is used. "</span></div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>                    <span class="stringliteral">"If 'no', no background subtraction is done."</span>,</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>                    UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>                    <span class="stringliteral">"median"</span>,                        <span class="comment">/* Default */</span></div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>                    3,                               <span class="comment">/* Number of options */</span></div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>                    <span class="stringliteral">"median"</span>, <span class="stringliteral">"minimum"</span>, <span class="stringliteral">"no"</span>);      <span class="comment">/* List of options */</span></div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> </div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>     <span class="comment">//</span></div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>     name = <span class="stringliteral">"uves_cal_response.reduce.backsub.npoints"</span>;</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>                  <span class="stringliteral">"This is the number of columns in interorder space "</span></div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>                  <span class="stringliteral">"used to sample the background."</span>,</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>                  UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>                  82, 0, INT_MAX);</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>     </div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>     <span class="comment">//</span></div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>     name = <span class="stringliteral">"uves_cal_response.reduce.backsub.radiusy"</span>;</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>                 CPL_TYPE_INT,</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>                 <span class="stringliteral">"The height (in pixels) of the background sampling "</span></div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>                 <span class="stringliteral">"window is (2*radiusy + 1). "</span></div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>                 <span class="stringliteral">"This parameter is not corrected for binning."</span>,</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>                 UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>                 2, 0, INT_MAX);</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>     </div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>     <span class="comment">//</span></div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>     name = <span class="stringliteral">"uves_cal_response.reduce.backsub.sdegree"</span>;</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>                  <span class="stringliteral">"Degree of interpolating splines. Currently "</span></div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>                  <span class="stringliteral">"only degree = 1 is supported"</span>,</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>                  UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>                  1, 0, INT_MAX);</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> </div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>     <span class="comment">//</span></div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>     name = <span class="stringliteral">"uves_cal_response.reduce.backsub.smoothx"</span>;</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>                  <span class="stringliteral">"If spline interpolation is used to measure the background, "</span></div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>                  <span class="stringliteral">"the x-radius of the post-smoothing window is "</span></div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>                  <span class="stringliteral">"(smoothx * image_width). Here, 'image_width' is the image "</span></div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>                  <span class="stringliteral">"width after binning. If negative, the default values are used: "</span></div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>                  make_str(BACKSUB_FLAT_SMOOTHX_BLUE) <span class="stringliteral">" for blue flat-field frames, "</span></div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>                  make_str(BACKSUB_FLAT_SMOOTHX_RED) <span class="stringliteral">" for red flat-field frames, "</span></div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>                  make_str(BACKSUB_SCI_SMOOTHX_BLUE) <span class="stringliteral">" for blue science frames and "</span></div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>                  make_str(BACKSUB_SCI_SMOOTHX_RED) <span class="stringliteral">" for red science frames."</span>,</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>                  UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>                  -1.0, -DBL_MAX, DBL_MAX);</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>     </div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>     <span class="comment">//</span></div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>     name = <span class="stringliteral">"uves_cal_response.reduce.backsub.smoothy"</span>;</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>                  <span class="stringliteral">"If spline interpolation is used to measure the "</span></div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>                  <span class="stringliteral">"background, the y-radius of the post-smoothing "</span></div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>                  <span class="stringliteral">"window is (smoothy * image_height). Here, "</span></div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>                  <span class="stringliteral">"'image_height' is the image height after binning. "</span></div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>                  <span class="stringliteral">"If negative, the default values are used: "</span></div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>                  make_str(BACKSUB_FLAT_SMOOTHY_BLUE) <span class="stringliteral">" for blue flat-field frames, "</span></div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>                  make_str(BACKSUB_FLAT_SMOOTHY_RED) <span class="stringliteral">" for red flat-field frames, "</span></div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>                  make_str(BACKSUB_SCI_SMOOTHY_BLUE) <span class="stringliteral">" for blue science frames and "</span></div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>                  make_str(BACKSUB_SCI_SMOOTHY_RED) <span class="stringliteral">" for red science frames."</span>,</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>                  UVES_BACKSUB_ID,</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>                  -1.0, -DBL_MAX, DBL_MAX);</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span> </div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span> </div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>     {</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of background parameters failed: '%s'"</span>,</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>     }</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>     </div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> </div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> }</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span> </div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> </div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span> </div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span> cpl_error_code</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span> uves_define_efficiency_for_response_chain_parameters(cpl_parameterlist *parlist)</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span> {</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span> </div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>     <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>     cpl_parameter* p=NULL;</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>       <span class="keyword">const</span> <span class="keywordtype">char</span>* name = NULL;</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>       <span class="keyword">const</span> <span class="keywordtype">char</span>* value = NULL;</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> </div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> </div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>     <span class="comment">/**********************</span></div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> <span class="comment">     *  Extraction-Merge  *</span></div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> <span class="comment">     **********************/</span></div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> </div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span> </div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>     <span class="comment">/* For the efficiency step: Set default extraction method to 'linear',</span></div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span> <span class="comment">     * flatfield_method to 'no', blazecorrection to 'false' and merge to</span></div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> <span class="comment">     * 'sum' (because optimal merging doesn't make sense without flatfielding)</span></div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>     </div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>     {</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> </div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>       name = <span class="stringliteral">"uves_cal_response.efficiency.reduce.extract.method"</span>;</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>       value = <span class="stringliteral">"linear"</span>;</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span> </div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>        uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>                      CPL_TYPE_STRING,</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>                      <span class="stringliteral">"Extraction method."</span></div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>                      <span class="stringliteral">"<average | linear | weighted | optimal>"</span>,</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>                      value);</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>         </div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>         cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>     </div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>       name = <span class="stringliteral">"uves_cal_response.efficiency.reduce.ffmethod"</span>;</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>       value = <span class="stringliteral">"no"</span>;</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> </div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>      full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>        uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>                      CPL_TYPE_STRING,</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>                       <span class="stringliteral">"Flat-fielding method. If set to 'pixel', flat-fielding "</span></div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>                       <span class="stringliteral">"is done in pixel-pixel space (before extraction); if "</span></div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>                        <span class="stringliteral">"set to 'extract', flat-fielding is performed in "</span></div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>                        <span class="stringliteral">"pixel-order space (i.e. after extraction). If set to "</span></div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>                        <span class="stringliteral">"'no', no flat-field correction is done. <pixel | "</span></div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>                 <span class="stringliteral">"extract | no>"</span>,</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>                      value);</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>         </div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>         cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span> </div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>       name = <span class="stringliteral">"uves_cal_response.efficiency.reduce.merge"</span>;</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>       value = <span class="stringliteral">"sum"</span>;</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span> </div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>        uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>                      CPL_TYPE_STRING,</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>                      <span class="stringliteral">"Order merging method. If 'optimal', the flux in the "</span></div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>                      <span class="stringliteral">"overlapping region is set to the (optimally computed, "</span></div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>                      <span class="stringliteral">"using the uncertainties) average of single order "</span></div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>                      <span class="stringliteral">"spectra. If 'sum', the flux in the overlapping region "</span></div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>                      <span class="stringliteral">"is computed as the sum of the single order spectra."</span></div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>                      <span class="stringliteral">"If 'noappend' the spectrum is simply rebinned but not "</span></div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>                      <span class="stringliteral">"merged.If flat-fielding is done, method 'optimal' is "</span></div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>                      <span class="stringliteral">"recommended, otherwise 'sum'. <optimal | sum | "</span></div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>                      <span class="stringliteral">"noappend>"</span>,</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>                      value);</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>         </div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>         cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span> </div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span> </div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span> </div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *param = <span class="stringliteral">"linear"</span>;</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span> </div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>     <span class="keywordflow">if</span> (uves_set_parameter_default(parlist,</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>                        make_str(UVES_REDCHAIN_ID), <span class="stringliteral">"uves_cal_response.efficiency.reduce.extract.method"</span>,</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>                        CPL_TYPE_STRING, &param) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>         {</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>         }</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> </div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span> </div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>     }</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span> </div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> </div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>    {</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span> </div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>       name = <span class="stringliteral">"uves_cal_response.efficiency.reduce.best"</span>;</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>      full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>      </div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>     uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>                  CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>                  <span class="stringliteral">"(optimal extraction only) "</span></div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>                  <span class="stringliteral">"If false (fastest), the spectrum is extracted only once. "</span></div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>                  <span class="stringliteral">"If true (best), the spectrum is extracted twice, the "</span></div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>                  <span class="stringliteral">"second time using improved variance estimates "</span></div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>                  <span class="stringliteral">"based on the first iteration. Better variance "</span></div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>                  <span class="stringliteral">"estimates slightly improve the obtained signal to "</span></div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>                  <span class="stringliteral">"noise but at the cost of increased execution time"</span>,</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>                  UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>                  <span class="keyword">true</span>);</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>     </div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>     cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>     }</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span> </div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span> </div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span> </div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>     <span class="comment">/****************</span></div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span> <span class="comment">     *  Efficiency  *</span></div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span> <span class="comment">     ****************/</span></div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span> </div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>     {</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span> </div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>     name = <span class="stringliteral">"uves_cal_response.efficiency.paccuracy"</span>;</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s%s"</span>, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">""</span>, name);</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span> </div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>        uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>                      CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>               <span class="stringliteral">"The pointing accuracy (in arcseconds) used to "</span></div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>                <span class="stringliteral">"identify the observed star with a "</span></div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>                <span class="stringliteral">"catalogue star. If the angular separation is "</span></div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>                <span class="stringliteral">"less than this number, the identification is made."</span>,</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>                      60.0);</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>         </div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>         cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span> </div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>     }</div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>     </div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span> </div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span> </div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>     {</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of efficiency parameters failed: '%s'"</span>,</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>     }</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> </div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span> }</div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> </div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span> cpl_error_code</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span> uves_define_efficiency_parameters(cpl_parameterlist *parlist)</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> {</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span> </div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>     <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>     cpl_parameter* p=NULL;</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>       <span class="keyword">const</span> <span class="keywordtype">char</span>* name = NULL;</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>       <span class="keyword">const</span> <span class="keywordtype">char</span>* value = NULL;</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span> </div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span> </div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>     <span class="comment">/**********************</span></div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span> <span class="comment">     *  Extraction-Merge  *</span></div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> <span class="comment">     **********************/</span></div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> </div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span> </div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>     <span class="comment">/* For the efficiency step: Set default extraction method to 'linear',</span></div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="comment">     * flatfield_method to 'no', blazecorrection to 'false' and merge to</span></div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="comment">     * 'sum' (because optimal merging doesn't make sense without flatfielding)</span></div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>     </div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>     {</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> </div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span> </div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>       name = <span class="stringliteral">"efficiency.reduce.extract.method"</span>;</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>       value = <span class="stringliteral">"linear"</span>;</div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span> </div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>,  make_str(UVES_RESPONSE_ID), name);</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>        uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>                      CPL_TYPE_STRING,</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>                      <span class="stringliteral">"Extraction method. "</span></div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>                      <span class="stringliteral">"<average | linear | weighted | optimal>"</span>,</div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>                      value);</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>         </div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>         cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span> </div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>     </div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>       name = <span class="stringliteral">"efficiency.reduce.ffmethod"</span>;</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>       value = <span class="stringliteral">"no"</span>;</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span> </div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>,  make_str(UVES_RESPONSE_ID), name);</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>        uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>                      CPL_TYPE_STRING,</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>                       <span class="stringliteral">"Flat-fielding method. If set to 'pixel', flat-fielding "</span></div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>                       <span class="stringliteral">"is done in pixel-pixel space (before extraction); if "</span></div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>                        <span class="stringliteral">"set to 'extract', flat-fielding is performed in "</span></div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>                        <span class="stringliteral">"pixel-order space (i.e. after extraction). If set to "</span></div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>                        <span class="stringliteral">"'no', no flat-field correction is done. <pixel | "</span></div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>                 <span class="stringliteral">"extract | no>"</span>,</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>                      value);</div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>         </div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>         cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span> </div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>       name = <span class="stringliteral">"efficiency.reduce.merge"</span>;</div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>       value = <span class="stringliteral">"sum"</span>;</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span> </div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>,  make_str(UVES_RESPONSE_ID), name);</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>        uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>                      CPL_TYPE_STRING,</div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>                      <span class="stringliteral">"Order merging method. If 'optimal', the flux in the "</span></div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>                      <span class="stringliteral">"overlapping region is set to the (optimally computed, "</span></div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>                      <span class="stringliteral">"using the uncertainties) average of single order "</span></div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>                      <span class="stringliteral">"spectra. If 'sum', the flux in the overlapping region "</span></div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>                      <span class="stringliteral">"is computed as the sum of the single order spectra."</span></div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>                      <span class="stringliteral">"If 'noappend' the spectrum is simply rebinned but not "</span></div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>                      <span class="stringliteral">"merged.If flat-fielding is done, method 'optimal' is "</span></div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>                      <span class="stringliteral">"recommended, otherwise 'sum'. <optimal | sum | "</span></div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>                      <span class="stringliteral">"noappend>"</span>,</div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>                      value);</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>         </div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>         cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span> </div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span> </div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span> </div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span> </div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *param = <span class="stringliteral">"linear"</span>;</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span> </div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>     <span class="keywordflow">if</span> (uves_set_parameter_default(parlist,</div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>                        make_str(UVES_RESPONSE_ID), <span class="stringliteral">"efficiency.reduce.extract.method"</span>,</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>                        CPL_TYPE_STRING, &param) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>         {</div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>         }</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span> </div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span> </div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span> <span class="comment">/* </span></div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span> <span class="comment">    if (uves_set_parameter_default(parlist, </span></div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span> <span class="comment">                       make_str(UVES_RESPONSE_ID), "efficiency.reduce.extract.best",</span></div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span> <span class="comment">                       CPL_TYPE_BOOL, &bool_param) != CPL_ERROR_NONE)</span></div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span> <span class="comment">        {</span></div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span> <span class="comment">        return -1;</span></div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span> <span class="comment">        }</span></div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span> <span class="comment">*/</span>  </div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span> </div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>     }</div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span> </div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span> </div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>    {</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span> </div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>       name = <span class="stringliteral">"efficiency.reduce.best"</span>;</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>,  make_str(UVES_RESPONSE_ID), name);</div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>      </div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>     uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>                  CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>                  <span class="stringliteral">"(optimal extraction only) "</span></div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>                  <span class="stringliteral">"If false (fastest), the spectrum is extracted only once. "</span></div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>                  <span class="stringliteral">"If true (best), the spectrum is extracted twice, the "</span></div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>                  <span class="stringliteral">"second time using improved variance estimates "</span></div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>                  <span class="stringliteral">"based on the first iteration. Better variance "</span></div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>                  <span class="stringliteral">"estimates slightly improve the obtained signal to "</span></div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>                  <span class="stringliteral">"noise but at the cost of increased execution time"</span>,</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>                  UVES_EXTRACT_ID,</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>                  <span class="keyword">true</span>);</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>     </div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>     cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>     }</div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span> </div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span> </div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span> </div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>     <span class="comment">/****************</span></div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span> <span class="comment">     *  Efficiency  *</span></div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span> <span class="comment">     ****************/</span></div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span> </div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>     {</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>        <span class="comment">/* const char *recipe_id = make_str(UVES_RESPONSE_ID); */</span></div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext = <span class="stringliteral">"efficiency"</span>;</div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* name=<span class="stringliteral">"paccuracy"</span>;</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>     <span class="keywordtype">char</span> *context=uves_sprintf(<span class="stringliteral">"%s.%s"</span>,make_str(UVES_RESPONSE_ID),subcontext);</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>     <span class="comment">// paccuracy </span></div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span> </div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span> </div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span> <span class="comment">    uves_par_new_value("paccuracy",</span></div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span> <span class="comment">               CPL_TYPE_DOUBLE,</span></div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span> <span class="comment">               "The pointing accuracy (in arcseconds) used to "</span></div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span> <span class="comment">               "identify the observed star with a "</span></div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span> <span class="comment">               "catalogue star. If the angular separation is "</span></div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span> <span class="comment">               "less than this number, the identification is made.",</span></div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span> <span class="comment">               60.0);</span></div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span> </div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span> </div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, context,name);</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>        uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>                      CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>               <span class="stringliteral">"The pointing accuracy (in arcseconds) used to "</span></div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>                <span class="stringliteral">"identify the observed star with a "</span></div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>                <span class="stringliteral">"catalogue star. If the angular separation is "</span></div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>                <span class="stringliteral">"less than this number, the identification is made."</span>,</div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>                      context,</div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>                      60.0);</div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>         </div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>         cpl_parameterlist_append(parlist, p);</div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>         cpl_free(context);</div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span> </div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span> </div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span> </div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span> </div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>     }</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>     </div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span> </div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span> </div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>     {</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of efficiency parameters failed: '%s'"</span>,</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>     }</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span> </div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span> }</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span> </div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span> </div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span> </div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span> </div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span> </div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span> uves_exec_recipe(<span class="keywordtype">int</span> (*get_info)(cpl_pluginlist *), </div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_domain,</div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>                  <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>                  cpl_frameset *frames,</div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *caller_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *context)</div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span> {</div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>     cpl_pluginlist *list  = NULL;</div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>     cpl_plugin *plugin    = NULL;</div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>     cpl_recipe *recipe    = NULL;</div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span> </div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id = NULL;</div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>     cpl_parameter *p      = NULL;</div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>     <span class="keywordtype">char</span> *parent_name     = NULL;</div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>     <span class="keywordtype">char</span> *sub_domain      = NULL;</div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>     <span class="keywordtype">int</span> status = 0;</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span> </div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>     <span class="keywordtype">bool</span> must_destroy_plugin = <span class="keyword">false</span>;   <span class="comment">/* Indicates if recipe_create() </span></div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span> <span class="comment">                       has been called */</span></div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span> </div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>     assure(recipe_domain != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null recipe message domain"</span>);</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>     assure(parameters != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null parameter list"</span>);</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>     assure(frames != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null frame set"</span>);</div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>     assure(caller_id != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null caller recipe name"</span>);</div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>     <span class="comment">/* 'context' may be NULL */</span>    </div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span> </div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>     <span class="comment">/* Get the sub-recipe plugin */</span></div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( list = cpl_pluginlist_new(),</div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>        <span class="stringliteral">"Error allocating plugin list"</span>);</div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span> </div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>     <span class="comment">/* Get info about recipe */</span></div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>     status = get_info(list);</div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span> </div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>     assure( status == 0, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>         <span class="stringliteral">"Could not get info about recipe"</span>);</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span> </div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>     <span class="comment">/* Get default parameter list */</span></div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( plugin = cpl_pluginlist_get_first(list), <span class="stringliteral">"Error getting plugin"</span>);</div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>     assure( plugin != NULL, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>             <span class="stringliteral">"Plugin '%s' returned empty plugin list"</span>, recipe_id);</div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>     assure( cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE, </div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>             CPL_ERROR_TYPE_MISMATCH, <span class="stringliteral">"Plugin is not a recipe"</span>);</div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>     recipe = (cpl_recipe *) plugin;</div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>     </div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>     recipe_id = cpl_strdup(cpl_plugin_get_name(plugin));</div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span> </div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>     <span class="comment">/* Call initializer function */</span></div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>     must_destroy_plugin = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>     assure( cpl_plugin_get_init(plugin)(plugin) == 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>         <span class="stringliteral">"Error initializing recipe"</span>);</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>     assure( recipe->parameters != NULL, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>         <span class="stringliteral">"Recipe '%s' returned NULL parameter list"</span>, recipe_id);</div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span> </div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>     <span class="comment">/* For each recipe parameter x:</span></div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span> <span class="comment">       Set to value of C.x (from argument parameter list)</span></div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span> <span class="comment"></span></div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span> <span class="comment">       Parameters in 'uves' context are simply overwritten</span></div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>     <span class="keywordflow">for</span> (p = cpl_parameterlist_get_first(recipe->parameters); </div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>      p != NULL;</div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>      p = cpl_parameterlist_get_next(recipe->parameters) )</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>     {</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *name          = cpl_parameter_get_name(p);   </div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext    = cpl_parameter_get_context(p);</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>         cpl_type type             = cpl_parameter_get_type(p);</div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>         </div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>         <span class="keyword">const</span> cpl_parameter *parent;</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>         </div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>         <span class="keywordflow">if</span> (strcmp(subcontext, <span class="stringliteral">"uves"</span>) == 0)</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>         {</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>             parent_name = uves_sprintf(<span class="stringliteral">"%s"</span>, name);</div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>         }</div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>         {</div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>             <span class="keywordflow">if</span> (context != NULL)</div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>             {</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>                 parent_name = uves_sprintf(<span class="stringliteral">"%s.%s.%s"</span>, caller_id, context, name);</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>             }</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>             {</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>                 parent_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, caller_id, name);</div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>             }</div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>         }</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>         </div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>         <span class="comment">/* Const cast, we don't change the parameter list, parent is declared const */</span></div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( parent = cpl_parameterlist_find_const(parameters, parent_name),</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>            <span class="stringliteral">"Could not get parameter '%s' from provided parameter list"</span>, parent_name);</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>         <span class="comment">/* PIPPO</span></div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span> <span class="comment">        assure( parent != NULL, CPL_ERROR_DATA_NOT_FOUND,</span></div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span> <span class="comment">            "Missing parameter '%s' needed to define '%s' in context '%s'",</span></div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span> <span class="comment">            parent_name, name, context);</span></div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span> <span class="comment">        </span></div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span> <span class="comment">        assure( cpl_parameter_get_type(parent) == type, CPL_ERROR_TYPE_MISMATCH,</span></div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span> <span class="comment">            "Parameter '%s' type is %s. Type %s needed for recipe parameter '%s'",</span></div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span> <span class="comment">            parent_name, </span></div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span> <span class="comment">            uves_tostring_cpl_type(cpl_parameter_get_type(parent)),</span></div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span> <span class="comment">            uves_tostring_cpl_type(type),</span></div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span> <span class="comment">            name);</span></div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span> <span class="comment">        */</span>  </div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>         <span class="keywordflow">switch</span> (type)</div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>         {</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>             <span class="keywordtype">int</span> value_int;  </div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>             <span class="keywordtype">bool</span> value_bool;</div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>             <span class="keywordtype">double</span> value_double;</div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *value_string;</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span> </div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( value_bool = cpl_parameter_get_bool(parent), </div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>                <span class="stringliteral">"Error reading parameter '%s'"</span>, parent_name);</div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>         </div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_parameter_set_bool(p, value_bool),</div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>                <span class="stringliteral">"Error setting parameter '%s'"</span>, name);</div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>             </div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Setting parameter '%s' <- '%s' = %s"</span>,</div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>                    name, parent_name, (value_bool) ? <span class="stringliteral">"true"</span> : <span class="stringliteral">"false"</span>);</div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span> </div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( value_int = cpl_parameter_get_int(parent),</div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>                <span class="stringliteral">"Error reading parameter '%s'"</span>, parent_name);</div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>         </div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_parameter_set_int(p, value_int),</div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>                <span class="stringliteral">"Error setting parameter '%s'"</span>, name);</div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>             </div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Setting parameter '%s' <- '%s' = %d"</span>, </div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>                    name, parent_name, value_int);</div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>             </div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( value_double = cpl_parameter_get_double(parent),</div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>                <span class="stringliteral">"Error reading parameter '%s'"</span>, parent_name);</div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>         </div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_parameter_set_double(p, value_double),</div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>                <span class="stringliteral">"Error setting parameter '%s'"</span>, name);</div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>             </div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Setting parameter '%s' <- '%s' = %e"</span>, </div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>                    name, parent_name, value_double);</div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>             </div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( value_string = cpl_parameter_get_string(parent),</div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>                <span class="stringliteral">"Error reading parameter '%s'"</span>, parent_name);</div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>             </div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_parameter_set_string(p, value_string), </div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>                <span class="stringliteral">"Error setting parameter '%s'"</span>, name);</div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>             </div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Setting parameter '%s' <- '%s' = '%s'"</span>, </div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>                    name, parent_name, value_string);</div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>             </div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>             assure(<span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>                <span class="stringliteral">"Parameter '%s' has type %s"</span>,</div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>                name, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>         }  <span class="comment">/* switch type */</span></div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>         </div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>         cpl_free(parent_name); parent_name = NULL;</div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>         </div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>     } <span class="comment">/* Set each recipe parameter */</span></div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span> </div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>     <span class="comment">/* Pass frame set without touching */</span></div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>     recipe->frames = frames;</div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span> </div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>     <span class="comment">/* </span></div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span> <span class="comment">     * Invoke recipe </span></div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span> <span class="comment">     *  Remember message domain of caller,</span></div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span> <span class="comment">     *   and number of warnings in caller.</span></div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span> </div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>     {</div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *domain = <a class="code" href="group__uves__msg.html#gac522fbf0cdea3197a2bd0df38d3019aa" title="Get current message domain.">uves_msg_get_domain</a>();</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>     <span class="keywordtype">int</span> warnings_in_caller = <a class="code" href="group__uves__msg.html#ga781eb662fe1449b6ffc27c381d177158" title="Get number of warnings printed so far.">uves_msg_get_warnings</a>();</div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span> </div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>     sub_domain = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, domain, recipe_domain);</div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>     <a class="code" href="group__uves__msg.html#gaf97c630c8b96c1f038f747402cc561b2" title="Set message domain.">uves_msg_set_domain</a>(sub_domain);</div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span> </div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>     status = cpl_plugin_get_exec(plugin)(plugin);</div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span> </div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>     <span class="comment">/* Reset state (domain+warnings) */</span></div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span> </div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>     <a class="code" href="group__uves__msg.html#gaf97c630c8b96c1f038f747402cc561b2" title="Set message domain.">uves_msg_set_domain</a>(domain);</div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span> </div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>     <span class="comment">/* Total number of warnings in caller is not</span></div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span> <span class="comment">     * (previous warnings) + (subrecipe warnings)</span></div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>     <a class="code" href="group__uves__msg.html#gab40c1f283043f87e188cde494836dfca" title="Accumulate warnings.">uves_msg_add_warnings</a>(warnings_in_caller);</div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>     }</div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>     </div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>     <span class="comment">/* On recipe failure: The recipe is responsible </span></div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span> <span class="comment">     *  for printing any error messages.</span></div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span> <span class="comment">     *  A failing recipe is an unrecoverable error.</span></div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span> </div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>     {</div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>         <span class="comment">/* Reset error stack but keep error code */</span></div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>         cpl_error_code ec = cpl_error_get_code();</div>
-<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>         <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>         assure( <span class="keyword">false</span>, ec, <span class="stringliteral">"Recipe '%s' failed"</span>, recipe_id);</div>
-<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>     }</div>
-<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>     </div>
-<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>     assure( status == 0, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>         <span class="stringliteral">"Recipe '%s' failed with exit status %d"</span>, recipe_id, status);</div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>     </div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>     <span class="comment">/* Call recipe_destroy */</span></div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>     must_destroy_plugin = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>     assure( cpl_plugin_get_deinit(plugin)(plugin) == 0, </div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>         CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>         <span class="stringliteral">"Error cleaning up recipe"</span>);</div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>     </div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Recipe '%s' succeeded"</span>, recipe_id);</div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span> </div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>   cleanup:</div>
-<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>     uves_free_string_const(&recipe_id);</div>
-<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>     cpl_free(parent_name); parent_name = NULL;</div>
-<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>     cpl_free(sub_domain); sub_domain = NULL;</div>
-<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>     <span class="keywordflow">if</span> (must_destroy_plugin)</div>
-<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>     {</div>
-<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>         cpl_plugin_get_deinit(plugin)(plugin);</div>
-<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>     }</div>
-<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span> </div>
-<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>     cpl_pluginlist_delete(list);</div>
-<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>     </div>
-<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span> }</div>
-<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span> </div>
-<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span> </div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span> uves_invoke_recipe(<span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>                    cpl_frameset *frames,</div>
-<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *caller_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *context)</div>
-<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span> {</div>
-<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>     assure(recipe_id != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null recipe name"</span>);</div>
-<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span> </div>
-<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>     <span class="keywordflow">if</span>      (strcmp(recipe_id, make_str(UVES_PHYSMOD_ID) ) == 0) <span class="keywordflow">return</span> uves_exec_recipe(&uves_physmod_get_info, UVES_PHYSMOD_DOM, parameters, frames, caller_id, context);</div>
-<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(recipe_id, make_str(UVES_ORDERPOS_ID)) == 0) <span class="keywordflow">return</span> uves_exec_recipe(&uves_orderpos_get_info, UVES_ORDERPOS_DOM, parameters, frames, caller_id, context);</div>
-<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(recipe_id, make_str(UVES_MBIAS_ID)   ) == 0) <span class="keywordflow">return</span> uves_exec_recipe(&uves_mbias_get_info, UVES_MBIAS_DOM, parameters, frames, caller_id, context);</div>
-<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(recipe_id, make_str(UVES_MDARK_ID)   ) == 0) <span class="keywordflow">return</span> uves_exec_recipe(&uves_mdark_get_info, UVES_MDARK_DOM, parameters, frames, caller_id, context);</div>
-<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(recipe_id, make_str(UVES_MFLAT_ID)   ) == 0) <span class="keywordflow">return</span> uves_exec_recipe(&uves_mflat_get_info,  UVES_MFLAT_DOM, parameters, frames, caller_id, context);</div>
-<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(recipe_id, make_str(UVES_WAVECAL_ID) ) == 0) <span class="keywordflow">return</span> uves_exec_recipe(&uves_wavecal_get_info,  UVES_WAVECAL_DOM, parameters, frames, caller_id, context);</div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(recipe_id, make_str(UVES_RESPONSE_ID)) == 0) <span class="keywordflow">return</span> uves_exec_recipe(&uves_response_get_info, UVES_RESPONSE_DOM, parameters, frames, caller_id, context);</div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(recipe_id, make_str(UVES_SCIRED_ID)  ) == 0) <span class="keywordflow">return</span> uves_exec_recipe(&uves_scired_get_info, UVES_SCIRED_DOM, parameters, frames, caller_id, context);</div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(recipe_id, make_str(UVES_REDCHAIN_ID)) == 0) <span class="keywordflow">return</span> uves_exec_recipe(&uves_redchain_get_info, UVES_REDCHAIN_DOM, parameters, frames, caller_id, context);</div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>         {</div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>             assure( <span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Unknown recipe: '%s'"</span>, recipe_id);</div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>         }</div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>   cleanup:</div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span> }</div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span> </div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span> </div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span> uves_prop_par(<span class="keywordtype">int</span> (*get_info)(cpl_pluginlist *),</div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>     cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *context)</div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span> {</div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>     cpl_plugin *plugin    = NULL;</div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>     cpl_pluginlist *list  = NULL;</div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>     cpl_recipe *subrecipe = NULL;</div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>     <span class="keywordtype">char</span> name[256];</div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>     <span class="keywordtype">int</span> status;</div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span> </div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>     <span class="keywordflow">if</span> (get_info == NULL)</div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>     {</div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>         FAIL(-1, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null function pointer"</span>);</div>
-<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>     }</div>
-<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>     <span class="comment">/* context may be NULL */</span></div>
-<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>     <span class="keywordflow">if</span> (parameters == NULL)</div>
-<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>     {</div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>         FAIL(-1, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null parameter list"</span>);</div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>     }</div>
-<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>     </div>
-<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>     <span class="keywordflow">if</span> (recipe_id == NULL)</div>
-<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>     {</div>
-<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>         FAIL(-1, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null recipe id"</span>);</div>
-<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>     }    </div>
-<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span> </div>
-<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>     <span class="comment">/* Get the sub-recipe plugin */</span></div>
-<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>     list = cpl_pluginlist_new();</div>
-<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>     status = get_info(list);</div>
-<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>     </div>
-<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>     <span class="keywordflow">if</span> (status != 0)</div>
-<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>     {</div>
-<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>         cpl_pluginlist_delete(list);</div>
-<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>         FAIL(-1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Could not get info about recipe"</span>);</div>
-<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>     }</div>
-<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span> </div>
-<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>     <span class="comment">/* Get first plugin in plugin list, it must be of type recipe */</span></div>
-<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>     <span class="keywordflow">if</span> ((plugin = cpl_pluginlist_get_first(list)) == NULL)</div>
-<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>     {</div>
-<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>         cpl_pluginlist_delete(list);</div>
-<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>         FAIL(-1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Error getting plugin"</span>);</div>
-<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>     }</div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>     <span class="keywordflow">if</span> (cpl_plugin_get_name(plugin) == NULL) {</div>
-<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>         cpl_pluginlist_delete(list);</div>
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>         FAIL(-1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Plugin name is NULL"</span>);</div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>     }</div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>     sprintf(name,cpl_plugin_get_name(plugin));</div>
-<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>     </div>
-<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) != CPL_PLUGIN_TYPE_RECIPE)</div>
-<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>         {</div>
-<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>             cpl_pluginlist_delete(list);</div>
-<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>             FAIL(-1, CPL_ERROR_TYPE_MISMATCH, <span class="stringliteral">"Plugin is not a recipe"</span>);</div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>         }</div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>     subrecipe = (cpl_recipe *) plugin;</div>
-<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>     </div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>     <span class="comment">/* Create parameter list by calling subrecipe initializer function */</span></div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>     <span class="keywordflow">if</span>( cpl_plugin_get_init(plugin)(plugin) != 0)</div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>     {</div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>         cpl_plugin_get_deinit(plugin)(plugin);</div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>         cpl_pluginlist_delete(list);</div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>         FAIL(-1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Error getting '%s' parameter list"</span>,</div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>              name);</div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>     }</div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span> </div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>     <span class="keywordflow">if</span> (subrecipe->parameters == NULL)</div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>     {</div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>         cpl_plugin_get_deinit(plugin)(plugin);</div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>         cpl_pluginlist_delete(list);</div>
-<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>         FAIL(-1, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Recipe '%s' returned NULL parameter list"</span>, </div>
-<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>              name);</div>
-<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>     }</div>
-<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>     </div>
-<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>     <span class="keywordflow">if</span> (propagate(cpl_plugin_get_name(plugin), subrecipe->parameters, parameters, recipe_id, context) != 0)</div>
-<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>     {</div>
-<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>         cpl_plugin_get_deinit(plugin)(plugin);</div>
-<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>         cpl_pluginlist_delete(list);</div>
-<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>         FAIL(-1, CPL_ERROR_ILLEGAL_OUTPUT, <span class="stringliteral">"Error propagating parameters from recipe '%s'"</span>, </div>
-<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>              name);</div>
-<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>     }</div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>     </div>
-<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>     cpl_plugin_get_deinit(plugin)(plugin);</div>
-<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>     cpl_pluginlist_delete(list);</div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>    </div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span> }</div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span> </div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span> uves_propagate_parameters(<span class="keyword">const</span> <span class="keywordtype">char</span> *subrecipe,</div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>                           cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>                           <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *context)</div>
-<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span> {</div>
-<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>     <span class="keywordflow">if</span> (subrecipe == NULL) {</div>
-<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>         FAIL(-1, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null subrecipe id"</span>);</div>
-<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>     }</div>
-<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>     </div>
-<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>     <span class="keywordflow">if</span>      (strcmp(subrecipe, make_str(UVES_PHYSMOD_ID) ) == 0) <span class="keywordflow">return</span> uves_prop_par(&uves_physmod_get_info, parameters, recipe_id, context);</div>
-<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(subrecipe, make_str(UVES_ORDERPOS_ID)) == 0) <span class="keywordflow">return</span> uves_prop_par(&uves_orderpos_get_info, parameters, recipe_id, context);</div>
-<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(subrecipe, make_str(UVES_MBIAS_ID)   ) == 0) <span class="keywordflow">return</span> uves_prop_par(&uves_mbias_get_info, parameters, recipe_id, context);</div>
-<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(subrecipe, make_str(UVES_MDARK_ID)   ) == 0) <span class="keywordflow">return</span> uves_prop_par(&uves_mdark_get_info, parameters, recipe_id, context);</div>
-<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(subrecipe, make_str(UVES_MFLAT_ID)   ) == 0) <span class="keywordflow">return</span> uves_prop_par(&uves_mflat_get_info, parameters, recipe_id, context);</div>
-<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(subrecipe, make_str(UVES_WAVECAL_ID) ) == 0) <span class="keywordflow">return</span> uves_prop_par(&uves_wavecal_get_info, parameters, recipe_id, context);</div>
-<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(subrecipe, make_str(UVES_RESPONSE_ID)) == 0) <span class="keywordflow">return</span> uves_prop_par(&uves_response_get_info, parameters, recipe_id, context);</div>
-<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(subrecipe, make_str(UVES_SCIRED_ID)  ) == 0) <span class="keywordflow">return</span> uves_prop_par(&uves_scired_get_info, parameters, recipe_id, context);</div>
-<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(subrecipe, make_str(UVES_REDCHAIN_ID)) == 0) <span class="keywordflow">return</span> uves_prop_par(&uves_redchain_get_info, parameters, recipe_id, context);</div>
-<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>         FAIL(-1, CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"Unknown recipe: '%s'"</span>, subrecipe);</div>
-<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>     }</div>
-<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span> }</div>
-<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span> </div>
-<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span> </div>
-<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span> uves_propagate_parameters_step(<span class="keyword">const</span> <span class="keywordtype">char</span> *step_id,</div>
-<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>                    cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *context)</div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span> {</div>
-<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>     cpl_parameterlist *subparameters = NULL;</div>
-<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>     cpl_parameterlist *(*get_parameters)(void) = NULL; <span class="comment">/* Pointer to function </span></div>
-<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span> <span class="comment">                              returning parameter list */</span></div>
-<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>     </div>
-<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>     <span class="keywordflow">if</span> (step_id == NULL)</div>
-<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>     {</div>
-<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>         FAIL(-1, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null parameter list"</span>);</div>
-<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>     }</div>
-<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>     </div>
-<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>     <span class="keywordflow">if</span> (parameters == NULL)</div>
-<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>     {</div>
-<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>         FAIL(-1, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null parameter list"</span>);</div>
-<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>     }</div>
-<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>     </div>
-<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>     <span class="keywordflow">if</span> (recipe_id == NULL)</div>
-<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>     {</div>
-<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>         FAIL(-1, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null recipe id"</span>);</div>
-<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>     }    </div>
-<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>     <span class="comment">/* context may be NULL */</span></div>
-<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>     </div>
-<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>     <span class="comment">/* Define which function to call */</span></div>
-<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>            <span class="keywordflow">if</span> (strcmp(step_id, UVES_BACKSUB_ID ) == 0) {</div>
-<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>       get_parameters = uves_backsub_define_parameters;</div>
-<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(step_id, UVES_QCDARK_ID ) == 0) {</div>
-<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>       get_parameters = uves_qcdark_define_parameters;</div>
-<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(step_id, UVES_EXTRACT_ID ) == 0) {</div>
-<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>       get_parameters = <a class="code" href="group__uves__extract.html#ga99751e637d04bc19090446f3a15974d0" title="Define recipe parameters used for extraction.">uves_extract_define_parameters</a>;</div>
-<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(step_id, UVES_REBIN_ID   ) == 0) {</div>
-<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>       get_parameters = <a class="code" href="group__uves__rebin.html#gad96c455875e2415225b27a3280516c0c" title="Define recipe parameters used for rebinning.">uves_rebin_define_parameters</a>;</div>
-<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(step_id, UVES_REDUCE_ID  ) == 0) {</div>
-<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>       get_parameters = <a class="code" href="group__uves__reduce.html#gaf0fe2418683acd1504f0c2c90c9c417a" title="Define recipe parameters used for reducing a frame.">uves_reduce_define_parameters</a>;</div>
-<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>       FAIL(-1, CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"Unknown sub-step: '%s'"</span>, step_id);</div>
-<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span>     }</div>
-<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span> </div>
-<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>     <span class="comment">/* Get sub-step parameters */</span></div>
-<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>     <span class="keywordflow">if</span>( (subparameters = get_parameters()) == NULL )</div>
-<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span>     {</div>
-<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span>         FAIL(-1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Error getting '%s' parameter list"</span>, step_id);</div>
-<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>     }</div>
-<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>     </div>
-<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>     <span class="keywordflow">if</span> ( propagate(step_id, subparameters, parameters, recipe_id, context) != 0)</div>
-<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>     {</div>
-<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>         cpl_parameterlist_delete(subparameters);</div>
-<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>         FAIL(-1, CPL_ERROR_ILLEGAL_OUTPUT, <span class="stringliteral">"Error propagating '%s' parameters"</span>, step_id);</div>
-<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>     }</div>
-<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>     </div>
-<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>     cpl_parameterlist_delete(subparameters);</div>
-<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span> }</div>
-<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span> </div>
-<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span> </div>
-<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span> <span class="comment"> * Create an enumeration parameter.</span></div>
-<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span> <span class="comment"> * One function for each of  int, double, string</span></div>
-<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span> <span class="comment"> *    size of values array must match 'size', returns NULL iff error. </span></div>
-<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span> <span class="comment"> * It would be much nicer to use a cpl_parameter_duplicate(), but that</span></div>
-<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span> <span class="comment"> * doesn't exist</span></div>
-<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span> <span class="comment"> * (These three functions could be reduced to one function by use</span></div>
-<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span> <span class="comment"> * of void pointers, but that is also ugly)</span></div>
-<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span> <span class="keyword">static</span> cpl_parameter *</div>
-<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span> create_parameter_enum_int(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, cpl_type type,</div>
-<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *description, </div>
-<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *context, </div>
-<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>               <span class="keywordtype">int</span> default_value, <span class="keywordtype">int</span> size,</div>
-<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>               <span class="keywordtype">int</span> *values)</div>
-<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span> {</div>
-<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>     <span class="comment">/*  This is just ugly */</span></div>
-<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span> </div>
-<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>     cpl_parameter *result = NULL;</div>
-<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>     </div>
-<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>     <span class="keywordflow">if</span> (! (1 <= size && size <= 10))</div>
-<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>     {</div>
-<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>         cpl_msg_error(__func__, <span class="stringliteral">"Unsupported enumeration size: %d (max is 10)"</span>, size);</div>
-<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>     }</div>
-<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>     </div>
-<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>     <span class="keywordflow">switch</span>(size)</div>
-<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>     {</div>
-<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>     <span class="keywordflow">case</span> 1:</div>
-<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>                        type,</div>
-<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>                        description,</div>
-<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>                        context,</div>
-<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span>                        default_value, size,</div>
-<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>                        values[0]);</div>
-<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>     <span class="keywordflow">case</span> 2:</div>
-<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>                           type,</div>
-<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>                           description,</div>
-<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>                           context,</div>
-<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>                           default_value, size,</div>
-<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>                           values[0],</div>
-<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>                           values[1]);</div>
-<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>     <span class="keywordflow">case</span> 3:</div>
-<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>                           type,</div>
-<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>                           description,</div>
-<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>                           context,</div>
-<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>                           default_value, size,</div>
-<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>                           values[0],</div>
-<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>                           values[1],</div>
-<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>                           values[2]);</div>
-<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>     <span class="keywordflow">case</span> 4:</div>
-<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>                           type,</div>
-<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>                           description,</div>
-<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>                           context,</div>
-<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>                           default_value, size,</div>
-<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>                           values[0], </div>
-<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>                           values[1], </div>
-<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>                           values[2], </div>
-<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>                           values[3]);</div>
-<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>     <span class="keywordflow">case</span> 5:</div>
-<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>                           type,</div>
-<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>                           description,</div>
-<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>                           context,</div>
-<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>                           default_value, size,</div>
-<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>                           values[0], </div>
-<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>                           values[1], </div>
-<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span>                           values[2], </div>
-<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>                           values[3], </div>
-<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>                           values[4]);</div>
-<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span>     <span class="keywordflow">case</span> 6:</div>
-<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span>                           type,</div>
-<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>                           description,</div>
-<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>                           context,</div>
-<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>                           default_value, size,</div>
-<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>                           values[0], </div>
-<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>                           values[1], </div>
-<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>                           values[2], </div>
-<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>                           values[3], </div>
-<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>                           values[4], </div>
-<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>                           values[5]);</div>
-<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>     <span class="keywordflow">case</span> 7:</div>
-<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>                           type,</div>
-<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>                           description,</div>
-<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>                           context,</div>
-<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>                           default_value, size,</div>
-<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>                           values[0], </div>
-<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>                           values[1], </div>
-<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>                           values[2], </div>
-<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span>                           values[3], </div>
-<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>                           values[4], </div>
-<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>                           values[5], </div>
-<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>                           values[6]);</div>
-<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>     <span class="keywordflow">case</span> 8:</div>
-<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>                           type,</div>
-<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span>                           description,</div>
-<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>                           context,</div>
-<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>                           default_value, size,</div>
-<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>                           values[0], </div>
-<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>                           values[1], </div>
-<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>                           values[2], </div>
-<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>                           values[3], </div>
-<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>                           values[4], </div>
-<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>                           values[5], </div>
-<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>                           values[6], </div>
-<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span>                           values[7]);</div>
-<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>     <span class="keywordflow">case</span> 9:</div>
-<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>                           type,</div>
-<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>                           description,</div>
-<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>                           context,</div>
-<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>                           default_value, size,</div>
-<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>                           values[0], </div>
-<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>                           values[1], </div>
-<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>                           values[2], </div>
-<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>                           values[3], </div>
-<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>                           values[4], </div>
-<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>                           values[5], </div>
-<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>                           values[6], </div>
-<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>                           values[7], </div>
-<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>                           values[8]);</div>
-<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>     <span class="keywordflow">case</span> 10:</div>
-<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span>                        type,</div>
-<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span>                        description,</div>
-<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>                        context,</div>
-<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>                        default_value, size,</div>
-<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>                        values[0], </div>
-<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>                        values[1], </div>
-<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>                        values[2], </div>
-<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>                        values[3], </div>
-<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>                        values[4], </div>
-<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>                        values[5], </div>
-<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>                        values[6], </div>
-<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>                        values[7], </div>
-<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>                        values[8], </div>
-<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>                        values[9]);</div>
-<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>     } <span class="comment">/* Switch size */</span></div>
-<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span> }</div>
-<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span> <span class="keyword">static</span> cpl_parameter *</div>
-<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span> create_parameter_enum_double(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, cpl_type type,</div>
-<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *description, </div>
-<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *context, <span class="keywordtype">double</span> default_value,</div>
-<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>                  <span class="keywordtype">int</span> size, <span class="keywordtype">double</span> *values)</div>
-<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span> {</div>
-<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>     <span class="comment">/*  This is very ugly */</span></div>
-<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>     </div>
-<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span>     cpl_parameter *result = NULL; </div>
-<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span> </div>
-<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>     <span class="keywordflow">if</span> (! (1 <= size && size <= 10))</div>
-<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span>     {</div>
-<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span>         cpl_msg_error(__func__, <span class="stringliteral">"Unsupported enumeration size: %d (max is 10)"</span>, size);</div>
-<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span>     }</div>
-<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>     </div>
-<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>     <span class="keywordflow">switch</span>(size)</div>
-<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>     {</div>
-<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span>     <span class="keywordflow">case</span> 1:</div>
-<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span>                        type,</div>
-<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span>                        description,</div>
-<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span>                        context,</div>
-<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span>                        default_value, size,</div>
-<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span>                        values[0]);</div>
-<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span>     <span class="keywordflow">case</span> 2:</div>
-<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span>                           type,</div>
-<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>                           description,</div>
-<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>                           context,</div>
-<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>                           default_value, size,</div>
-<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span>                           values[0],</div>
-<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>                           values[1]);</div>
-<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span>     <span class="keywordflow">case</span> 3:</div>
-<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>                           type,</div>
-<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>                           description,</div>
-<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>                           context,</div>
-<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>                           default_value, size,</div>
-<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>                           values[0],</div>
-<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>                           values[1],</div>
-<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>                           values[2]);</div>
-<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>     <span class="keywordflow">case</span> 4:</div>
-<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>                           type,</div>
-<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>                           description,</div>
-<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>                           context,</div>
-<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span>                           default_value, size,</div>
-<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>                           values[0], </div>
-<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>                           values[1], </div>
-<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>                           values[2], </div>
-<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>                           values[3]);</div>
-<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>     <span class="keywordflow">case</span> 5:</div>
-<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>                           type,</div>
-<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>                           description,</div>
-<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>                           context,</div>
-<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>                           default_value, size,</div>
-<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>                           values[0], </div>
-<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>                           values[1], </div>
-<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>                           values[2], </div>
-<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>                           values[3], </div>
-<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>                           values[4]);</div>
-<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>     <span class="keywordflow">case</span> 6:</div>
-<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>                           type,</div>
-<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>                           description,</div>
-<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>                           context,</div>
-<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>                           default_value, size,</div>
-<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>                           values[0], </div>
-<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>                           values[1], </div>
-<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>                           values[2], </div>
-<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>                           values[3], </div>
-<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>                           values[4], </div>
-<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>                           values[5]);</div>
-<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>     <span class="keywordflow">case</span> 7:</div>
-<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>                           type,</div>
-<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>                           description,</div>
-<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>                           context,</div>
-<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>                           default_value, size,</div>
-<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>                           values[0], </div>
-<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span>                           values[1], </div>
-<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>                           values[2], </div>
-<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>                           values[3], </div>
-<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>                           values[4], </div>
-<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>                           values[5], </div>
-<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>                           values[6]);</div>
-<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span>     <span class="keywordflow">case</span> 8:</div>
-<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>                           type,</div>
-<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>                           description,</div>
-<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>                           context,</div>
-<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>                           default_value, size,</div>
-<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>                           values[0], </div>
-<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>                           values[1], </div>
-<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>                           values[2], </div>
-<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>                           values[3], </div>
-<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>                           values[4], </div>
-<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>                           values[5], </div>
-<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>                           values[6], </div>
-<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>                           values[7]);</div>
-<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>     <span class="keywordflow">case</span> 9:</div>
-<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>                           type,</div>
-<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>                           description,</div>
-<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>                           context,</div>
-<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>                           default_value, size,</div>
-<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>                           values[0], </div>
-<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>                           values[1], </div>
-<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>                           values[2], </div>
-<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>                           values[3], </div>
-<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>                           values[4], </div>
-<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>                           values[5], </div>
-<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>                           values[6], </div>
-<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>                           values[7], </div>
-<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>                           values[8]);</div>
-<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>     <span class="keywordflow">case</span> 10:</div>
-<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>                        type,</div>
-<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>                        description,</div>
-<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>                        context,</div>
-<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>                        default_value, size,</div>
-<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>                        values[0], </div>
-<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>                        values[1], </div>
-<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>                        values[2], </div>
-<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>                        values[3], </div>
-<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>                        values[4], </div>
-<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>                        values[5], </div>
-<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>                        values[6], </div>
-<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>                        values[7], </div>
-<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>                        values[8], </div>
-<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>                        values[9]);</div>
-<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>     } <span class="comment">/* Switch size */</span></div>
-<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span> }</div>
-<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span> <span class="keyword">static</span> cpl_parameter *</div>
-<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span> create_parameter_enum_string(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, cpl_type type,</div>
-<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *description, </div>
-<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *context, </div>
-<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *default_value, </div>
-<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>                  <span class="keywordtype">int</span> size, <span class="keyword">const</span> <span class="keywordtype">char</span> **values)</div>
-<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span> {</div>
-<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>     <span class="comment">/*  This is extremely ugly */</span></div>
-<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>     </div>
-<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>     cpl_parameter *result = NULL;</div>
-<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span> </div>
-<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>     <span class="keywordflow">if</span> (! (1 <= size && size <= 10))</div>
-<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>     {</div>
-<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>         cpl_msg_error(__func__, <span class="stringliteral">"Unsupported enumeration size: %d (max is 10)"</span>, size);</div>
-<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>     }</div>
-<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>     </div>
-<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>     <span class="keywordflow">switch</span>(size)</div>
-<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>     {</div>
-<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>     <span class="keywordflow">case</span> 1:</div>
-<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>                        type,</div>
-<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>                        description,</div>
-<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>                        context,</div>
-<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>                        default_value, size,</div>
-<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>                        values[0]);</div>
-<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>     <span class="keywordflow">case</span> 2:</div>
-<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>                           type,</div>
-<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>                           description,</div>
-<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>                           context,</div>
-<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>                           default_value, size,</div>
-<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>                           values[0],</div>
-<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>                           values[1]);</div>
-<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>     <span class="keywordflow">case</span> 3:</div>
-<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>                           type,</div>
-<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>                           description,</div>
-<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>                           context,</div>
-<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>                           default_value, size,</div>
-<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>                           values[0],</div>
-<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>                           values[1],</div>
-<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>                           values[2]);</div>
-<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>     <span class="keywordflow">case</span> 4:</div>
-<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>                           type,</div>
-<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>                           description,</div>
-<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>                           context,</div>
-<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>                           default_value, size,</div>
-<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>                           values[0], </div>
-<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>                           values[1], </div>
-<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span>                           values[2], </div>
-<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>                           values[3]);</div>
-<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>     <span class="keywordflow">case</span> 5:</div>
-<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>                           type,</div>
-<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>                           description,</div>
-<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>                           context,</div>
-<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>                           default_value, size,</div>
-<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>                           values[0], </div>
-<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>                           values[1], </div>
-<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>                           values[2], </div>
-<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>                           values[3], </div>
-<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>                           values[4]);</div>
-<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span>     <span class="keywordflow">case</span> 6:</div>
-<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>                           type,</div>
-<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>                           description,</div>
-<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>                           context,</div>
-<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>                           default_value, size,</div>
-<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>                           values[0], </div>
-<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>                           values[1], </div>
-<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>                           values[2], </div>
-<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>                           values[3], </div>
-<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>                           values[4], </div>
-<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>                           values[5]);</div>
-<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>     <span class="keywordflow">case</span> 7:</div>
-<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>                           type,</div>
-<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>                           description,</div>
-<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>                           context,</div>
-<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>                           default_value, size,</div>
-<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>                           values[0], </div>
-<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>                           values[1], </div>
-<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span>                           values[2], </div>
-<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span>                           values[3], </div>
-<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span>                           values[4], </div>
-<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span>                           values[5], </div>
-<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>                           values[6]);</div>
-<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>     <span class="keywordflow">case</span> 8:</div>
-<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>                           type,</div>
-<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>                           description,</div>
-<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>                           context,</div>
-<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>                           default_value, size,</div>
-<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>                           values[0], </div>
-<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>                           values[1], </div>
-<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>                           values[2], </div>
-<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>                           values[3], </div>
-<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>                           values[4], </div>
-<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>                           values[5], </div>
-<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>                           values[6], </div>
-<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>                           values[7]);</div>
-<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>     <span class="keywordflow">case</span> 9:</div>
-<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>                           type,</div>
-<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>                           description,</div>
-<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>                           context,</div>
-<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>                           default_value, size,</div>
-<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>                           values[0], </div>
-<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>                           values[1], </div>
-<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>                           values[2], </div>
-<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span>                           values[3], </div>
-<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span>                           values[4], </div>
-<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span>                           values[5], </div>
-<div class="line"><a name="l02564"></a><span class="lineno"> 2564</span>                           values[6], </div>
-<div class="line"><a name="l02565"></a><span class="lineno"> 2565</span>                           values[7], </div>
-<div class="line"><a name="l02566"></a><span class="lineno"> 2566</span>                           values[8]);</div>
-<div class="line"><a name="l02567"></a><span class="lineno"> 2567</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02568"></a><span class="lineno"> 2568</span>     <span class="keywordflow">case</span> 10:</div>
-<div class="line"><a name="l02569"></a><span class="lineno"> 2569</span>         uves_parameter_new_enum(result, name,</div>
-<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span>                        type,</div>
-<div class="line"><a name="l02571"></a><span class="lineno"> 2571</span>                        description,</div>
-<div class="line"><a name="l02572"></a><span class="lineno"> 2572</span>                        context,</div>
-<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span>                        default_value, size,</div>
-<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span>                        values[0], </div>
-<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span>                        values[1], </div>
-<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span>                        values[2], </div>
-<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span>                        values[3], </div>
-<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span>                        values[4], </div>
-<div class="line"><a name="l02579"></a><span class="lineno"> 2579</span>                        values[5], </div>
-<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>                        values[6], </div>
-<div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>                        values[7], </div>
-<div class="line"><a name="l02582"></a><span class="lineno"> 2582</span>                        values[8], </div>
-<div class="line"><a name="l02583"></a><span class="lineno"> 2583</span>                        values[9]);</div>
-<div class="line"><a name="l02584"></a><span class="lineno"> 2584</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span>     } <span class="comment">/* Switch size */</span></div>
-<div class="line"><a name="l02586"></a><span class="lineno"> 2586</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02587"></a><span class="lineno"> 2587</span> }</div>
-<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span> </div>
-<div class="line"><a name="l02589"></a><span class="lineno"> 2589</span> </div>
-<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span> </div>
-<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span> propagate(<span class="keyword">const</span> <span class="keywordtype">char</span> *substep_id, <span class="keyword">const</span> cpl_parameterlist *sub_parameters, </div>
-<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span>       cpl_parameterlist *parent_parameters,</div>
-<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span>       <span class="keyword">const</span> <span class="keywordtype">char</span> *parent_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *context)</div>
-<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span> {</div>
-<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>     <span class="keyword">const</span> cpl_parameter *p = NULL;</div>
-<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span>     </div>
-<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>     <span class="comment">/* For each sub-recipe parameter:</span></div>
-<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span> <span class="comment">       prefix with context and insert in parent parameter list</span></div>
-<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span> <span class="comment"></span></div>
-<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span> <span class="comment">       Set (overwrite) default value as current value</span></div>
-<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>     <span class="keywordflow">for</span> (p = cpl_parameterlist_get_first_const(sub_parameters);</div>
-<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>          p != NULL;</div>
-<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>          p = cpl_parameterlist_get_next_const(sub_parameters) )</div>
-<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>     {</div>
-<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *name          = cpl_parameter_get_name(p);   </div>
-<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *description   = cpl_parameter_get_help(p);</div>
-<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext    = cpl_parameter_get_context(p);</div>
-<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *alias         = cpl_parameter_get_alias(p, </div>
-<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>                                                             CPL_PARAMETER_MODE_CLI);</div>
-<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>         cpl_parameter_class <span class="keyword">class </span>= cpl_parameter_get_class(p);</div>
-<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span>         cpl_type type             = cpl_parameter_get_type(p);</div>
-<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span> </div>
-<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>         <span class="comment">/* Check that S <= name</span></div>
-<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span> <span class="comment">         * and S <= c and c <= name,</span></div>
-<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span> <span class="comment">         * where S is either subrecipe id or 'uves', c is the context,</span></div>
-<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span> <span class="comment">         * and "<=" means "is substring of"</span></div>
-<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span> </div>
-<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>         {</div>
-<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *S;</div>
-<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span> </div>
-<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>         <span class="keywordflow">if</span> (strstr(name, <span class="stringliteral">"uves."</span>) == name)</div>
-<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>             {</div>
-<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>             S = <span class="stringliteral">"uves"</span>;</div>
-<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>             }</div>
-<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>             {</div>
-<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span>             S = substep_id;</div>
-<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span> </div>
-<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>             <span class="comment">/* Check S <= name */</span></div>
-<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span>             <span class="keywordflow">if</span> (strstr(name, S) != name)</div>
-<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>                 {</div>
-<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>                 FAIL(-1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>                      <span class="stringliteral">"Recipe id '%s' is not prefix of parameter name '%s'"</span>,</div>
-<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>                      S, name);</div>
-<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>                 }</div>
-<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>             }</div>
-<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>         </div>
-<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>         <span class="comment">/* Check S <= c */</span></div>
-<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span>         <span class="keywordflow">if</span> (strstr(subcontext, S) != subcontext)</div>
-<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>             {</div>
-<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>             FAIL(-1, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>                  <span class="stringliteral">"Recipe id '%s' is not prefix of parameter context '%s'"</span>, </div>
-<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>                  S, subcontext);</div>
-<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span>             }</div>
-<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span>         </div>
-<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>         <span class="comment">/* Check c <= name */</span></div>
-<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span>         <span class="keywordflow">if</span> (strstr(name, subcontext) != name)</div>
-<div class="line"><a name="l02688"></a><span class="lineno"> 2688</span>             {</div>
-<div class="line"><a name="l02689"></a><span class="lineno"> 2689</span>             FAIL(-1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span>                  <span class="stringliteral">"Parameter context '%s' is not prefix of parameter name '%s'"</span>, </div>
-<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>                  subcontext, name);</div>
-<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>             }</div>
-<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>         }<span class="comment">/* End check parameter format */</span></div>
-<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>         </div>
-<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>         <span class="keywordflow">if</span> (strcmp(subcontext, <span class="stringliteral">"uves"</span>) != 0)</div>
-<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span>         {</div>
-<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>             <span class="keywordtype">int</span> enum_size;</div>
-<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>             </div>
-<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>             cpl_parameter *new_par  = NULL;</div>
-<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>             <span class="keywordtype">char</span> *new_name;</div>
-<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>             <span class="keywordtype">char</span> *new_context;</div>
-<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>             <span class="keywordtype">char</span> *new_alias;</div>
-<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>             </div>
-<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>             <span class="keywordflow">if</span> (context == NULL)</div>
-<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>             {</div>
-<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>                 new_name     = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, parent_id, name);     <span class="comment">/* R.S.x */</span></div>
-<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>                 new_context  = uves_sprintf(<span class="stringliteral">"%s"</span>, parent_id);              <span class="comment">/* R     */</span></div>
-<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>                 <span class="keywordflow">if</span> (alias != NULL)</div>
-<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>                 {</div>
-<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>                     new_alias = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, substep_id, alias); <span class="comment">/* S.A */</span></div>
-<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>                 }</div>
-<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>                 {</div>
-<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>                     new_alias = NULL;</div>
-<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>                 }</div>
-<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>             }</div>
-<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>             {</div>
-<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>                 new_name     = uves_sprintf(<span class="stringliteral">"%s.%s.%s"</span>, parent_id, context, name);  </div>
-<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>                 <span class="comment">/* R.c.Sx */</span></div>
-<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span>                 new_context  = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, parent_id, context); </div>
-<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>                 <span class="comment">/* R.c    */</span></div>
-<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span>                 <span class="keywordflow">if</span> (alias != NULL)</div>
-<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span>                 {</div>
-<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>                     new_alias = uves_sprintf(<span class="stringliteral">"%s.%s.%s"</span>, </div>
-<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>                                  context, substep_id, alias); </div>
-<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>                     <span class="comment">/* c.S.A */</span></div>
-<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>                 }</div>
-<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>                 {</div>
-<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>                     new_alias = NULL;</div>
-<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>                 }</div>
-<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>             }</div>
-<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>             </div>
-<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span>             <span class="keywordflow">if</span> (new_name == NULL || new_context == NULL)</div>
-<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>             {</div>
-<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span>                 <span class="keywordflow">if</span> (new_name    != NULL) cpl_free(new_name);</div>
-<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>                 <span class="keywordflow">if</span> (new_context != NULL) cpl_free(new_context);</div>
-<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>                 <span class="keywordflow">if</span> (new_alias   != NULL) cpl_free(new_alias);</div>
-<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>                 FAIL(-1, CPL_ERROR_ILLEGAL_OUTPUT, <span class="stringliteral">"Memory allocation failed"</span>);</div>
-<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>             }</div>
-<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>             </div>
-<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>             </div>
-<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>             <span class="comment">/* Check for legal class/type before switch */</span></div>
-<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>             <span class="keywordflow">if</span> (<span class="keyword">class</span> != CPL_PARAMETER_CLASS_VALUE &&</div>
-<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>             <span class="keyword">class</span> != CPL_PARAMETER_CLASS_RANGE &&</div>
-<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>             <span class="keyword">class</span> != CPL_PARAMETER_CLASS_ENUM)</div>
-<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>             {</div>
-<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>                 cpl_free(new_name);</div>
-<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>                 cpl_free(new_context);</div>
-<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>                 <span class="keywordflow">if</span> (new_alias != NULL) cpl_free(new_alias);</div>
-<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>                 FAIL(-1, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>                  <span class="stringliteral">"Unrecognized class of parameter '%s'"</span>, name);</div>
-<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>             }</div>
-<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>             </div>
-<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>             <span class="keywordflow">if</span> (type != CPL_TYPE_BOOL   &&</div>
-<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>             type != CPL_TYPE_INT    &&</div>
-<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>             type != CPL_TYPE_DOUBLE &&</div>
-<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>             type != CPL_TYPE_STRING)</div>
-<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>             {</div>
-<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>                 cpl_free(new_name);</div>
-<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>                 cpl_free(new_context);</div>
-<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>                 <span class="keywordflow">if</span> (new_alias != NULL) cpl_free(new_alias);</div>
-<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>                 FAIL(-1, CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Unsupported type: %s"</span>,</div>
-<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>                  <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>             }</div>
-<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>             </div>
-<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>             <span class="comment">/* Create a new parameter from the sub-parameter */</span></div>
-<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>             <span class="keywordflow">switch</span> (<span class="keyword">class</span>)</div>
-<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>             {</div>
-<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>             <span class="keywordflow">case</span> CPL_PARAMETER_CLASS_VALUE:</div>
-<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>                 <span class="keywordflow">switch</span> (type)</div>
-<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span>                 {</div>
-<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>                 <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>                     uves_parameter_new_value(new_par, new_name,</div>
-<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span>                                  type,</div>
-<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>                                  description,</div>
-<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span>                                  new_context,</div>
-<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>                                  cpl_parameter_get_default_bool(p));</div>
-<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>                     </div>
-<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>                 <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>                     uves_parameter_new_value(new_par, new_name,</div>
-<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>                                  type,</div>
-<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>                                  description,</div>
-<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>                                  new_context,</div>
-<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>                                  cpl_parameter_get_default_int(p));</div>
-<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>                     </div>
-<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>                 <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>                     uves_parameter_new_value(new_par, new_name,</div>
-<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>                                  type,</div>
-<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>                                  description,</div>
-<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>                                  new_context,</div>
-<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>                                  cpl_parameter_get_default_double(p));</div>
-<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>                 <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>                     uves_parameter_new_value(new_par, new_name,</div>
-<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>                                  type,</div>
-<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>                                  description,</div>
-<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>                                  new_context,</div>
-<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>                                  cpl_parameter_get_default_string(p));</div>
-<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>                 <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span>                     <span class="keywordflow">break</span>; </div>
-<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span>                 }       <span class="comment">/* switch type */</span></div>
-<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>                 </div>
-<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span>                 <span class="keywordflow">break</span>;   <span class="comment">/* CLASS_VALUE */</span></div>
-<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>                 </div>
-<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>             <span class="keywordflow">case</span> CPL_PARAMETER_CLASS_RANGE:</div>
-<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>                 <span class="comment">/* Range is either int or double */</span></div>
-<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span>                 <span class="keywordflow">switch</span> (type)</div>
-<div class="line"><a name="l02813"></a><span class="lineno"> 2813</span>                 {</div>
-<div class="line"><a name="l02814"></a><span class="lineno"> 2814</span>                     <span class="keywordtype">int</span> min_int, max_int;</div>
-<div class="line"><a name="l02815"></a><span class="lineno"> 2815</span>                     <span class="keywordtype">double</span> min_double, max_double;</div>
-<div class="line"><a name="l02816"></a><span class="lineno"> 2816</span>                     </div>
-<div class="line"><a name="l02817"></a><span class="lineno"> 2817</span>                 <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span>                     min_int = cpl_parameter_get_range_min_int(p);</div>
-<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span>                     max_int = cpl_parameter_get_range_max_int(p);</div>
-<div class="line"><a name="l02820"></a><span class="lineno"> 2820</span>                     </div>
-<div class="line"><a name="l02821"></a><span class="lineno"> 2821</span>                     uves_parameter_new_range(new_par, new_name,</div>
-<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span>                                  type,</div>
-<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>                                  description,</div>
-<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span>                                  new_context,</div>
-<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span>                                  cpl_parameter_get_default_int(p),</div>
-<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span>                                  min_int, max_int);</div>
-<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span>                     </div>
-<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span>                 <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span>                     min_double = cpl_parameter_get_range_min_double(p);</div>
-<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span>                     max_double = cpl_parameter_get_range_max_double(p);</div>
-<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span>                     </div>
-<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>                     uves_parameter_new_range(new_par, new_name,</div>
-<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>                                  type,</div>
-<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>                                  description,</div>
-<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span>                                  new_context,</div>
-<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span>                                  cpl_parameter_get_default_double(p),</div>
-<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span>                                  min_double, max_double);</div>
-<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span>                 <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02841"></a><span class="lineno"> 2841</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span>                 }</div>
-<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span>         </div>
-<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>                 <span class="keywordflow">break</span>;   <span class="comment">/* CLASS_RANGE */</span></div>
-<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span>         </div>
-<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span>             <span class="keywordflow">case</span> CPL_PARAMETER_CLASS_ENUM:</div>
-<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span>                 enum_size = cpl_parameter_get_enum_size(p);</div>
-<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span>             </div>
-<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>                 <span class="comment">/* Enum type is either int, double or string */</span></div>
-<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span>                 <span class="keywordflow">switch</span> (type)</div>
-<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span>                 {</div>
-<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span>                     <span class="keywordtype">int</span>        *values_int;        <span class="comment">/* Arrays to hold enum values */</span></div>
-<div class="line"><a name="l02853"></a><span class="lineno"> 2853</span>                     <span class="keywordtype">double</span>     *values_double;</div>
-<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> **values_string;</div>
-<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>                     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>                     </div>
-<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>                 <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>                     <span class="keywordflow">if</span> ( (values_int = cpl_malloc(<span class="keyword">sizeof</span>(<span class="keywordtype">int</span>) * enum_size))</div>
-<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span>                      == NULL)</div>
-<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span>                     {</div>
-<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span>                         cpl_free(new_name);</div>
-<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span>                         cpl_free(new_context);</div>
-<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span>                         <span class="keywordflow">if</span> (new_alias != NULL) cpl_free(new_alias);</div>
-<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>                         FAIL(-1, CPL_ERROR_ILLEGAL_OUTPUT, </div>
-<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>                          <span class="stringliteral">"Memory allocation failed"</span>);</div>
-<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span>                     }</div>
-<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span>                     <span class="keywordflow">for</span> (i = 0; i < enum_size; i++)</div>
-<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>                     {</div>
-<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span>                         values_int[i] = cpl_parameter_get_enum_int(p, i);</div>
-<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span>                     }</div>
-<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span>                 </div>
-<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span>                     new_par = create_parameter_enum_int(</div>
-<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span>                     new_name,</div>
-<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span>                     type,</div>
-<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span>                     description,</div>
-<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span>                     new_context,</div>
-<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>                     cpl_parameter_get_default_int(p),</div>
-<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span>                     enum_size,</div>
-<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>                     values_int);</div>
-<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>                     cpl_free(values_int);</div>
-<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span>                     <span class="keywordflow">break</span>;  <span class="comment">/* Enum type int */</span></div>
-<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span>                     </div>
-<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span>                 <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span>                     <span class="keywordflow">if</span> ( (values_double = </div>
-<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span>                       cpl_malloc(<span class="keyword">sizeof</span>(<span class="keywordtype">double</span>) * enum_size)) == NULL)</div>
-<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span>                     {</div>
-<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span>                         cpl_free(new_name);</div>
-<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span>                         cpl_free(new_context);</div>
-<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>                         <span class="keywordflow">if</span> (new_alias != NULL) cpl_free(new_alias);</div>
-<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>                         FAIL(-1, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span>                          <span class="stringliteral">"Memory allocation failed"</span>);</div>
-<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span>                     }</div>
-<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span>                     <span class="keywordflow">for</span> (i = 0; i < enum_size; i++)</div>
-<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span>                     {</div>
-<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span>                         values_double[i] = cpl_parameter_get_enum_double(p, i);</div>
-<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>                     }</div>
-<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>                 </div>
-<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>                     new_par = create_parameter_enum_double(</div>
-<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>                     new_name,</div>
-<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>                     type,</div>
-<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span>                     description,</div>
-<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span>                     new_context,</div>
-<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span>                     cpl_parameter_get_default_double(p),</div>
-<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span>                     enum_size,</div>
-<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>                     values_double);</div>
-<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>                     cpl_free(values_double);</div>
-<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span> </div>
-<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span>                     <span class="keywordflow">break</span>;  <span class="comment">/* Enum type double */</span></div>
-<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>             </div>
-<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>                 <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>                     <span class="keywordflow">if</span> ( (values_string = </div>
-<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span>                       cpl_malloc(<span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *) * enum_size)) == NULL)</div>
-<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>                     {</div>
-<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>                         cpl_free(new_name);</div>
-<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span>                         cpl_free(new_context);</div>
-<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span>                         <span class="keywordflow">if</span> (new_alias != NULL) cpl_free(new_alias);</div>
-<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span>                         FAIL(-1, CPL_ERROR_ILLEGAL_OUTPUT, </div>
-<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span>                          <span class="stringliteral">"Memory allocation failed"</span>);</div>
-<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span>                     }</div>
-<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span>                     <span class="keywordflow">for</span> (i = 0; i < enum_size; i++)</div>
-<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span>                     {</div>
-<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span>                         values_string[i] = cpl_parameter_get_enum_string(p, i);</div>
-<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span>                     }</div>
-<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span>                 </div>
-<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span>                     new_par = create_parameter_enum_string(</div>
-<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span>                     new_name,</div>
-<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span>                     type,</div>
-<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span>                     description,</div>
-<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>                     new_context,</div>
-<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span>                     cpl_parameter_get_default_string(p),</div>
-<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span>                     enum_size,</div>
-<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>                     values_string);</div>
-<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>                     cpl_free(values_string);</div>
-<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>                     </div>
-<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>                     <span class="keywordflow">break</span>;  <span class="comment">/* Enum type string */</span></div>
-<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>                 </div>
-<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>                 <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>                 </div>
-<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>                 } <span class="comment">/* Switch enum type */</span></div>
-<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>             </div>
-<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>                 <span class="keywordflow">break</span>;   <span class="comment">/* CLASS_ENUM */</span></div>
-<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span> </div>
-<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>             </div>
-<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>             } <span class="comment">/* Switch class */</span></div>
-<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span> </div>
-<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>             <span class="keywordflow">if</span> (new_par == NULL)</div>
-<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>             {</div>
-<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span>                 cpl_free(new_name);</div>
-<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>                 cpl_free(new_context);</div>
-<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>                 <span class="keywordflow">if</span> (new_alias != NULL) cpl_free(new_alias);</div>
-<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>                 FAIL(-1, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>                  <span class="stringliteral">"Propagation of parameter '%s' failed"</span>, </div>
-<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>                  name);</div>
-<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>             }</div>
-<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>         </div>
-<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>             <span class="comment">/* Also propagate alias */</span></div>
-<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>             <span class="keywordflow">if</span> (alias != NULL)</div>
-<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>             {</div>
-<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>                 cpl_parameter_set_alias(new_par, CPL_PARAMETER_MODE_CLI, new_alias);</div>
-<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>             }</div>
-<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span> </div>
-<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span>             <span class="comment">/* Insert parameter in parent parameter list */</span></div>
-<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span>             cpl_parameterlist_append(parent_parameters, new_par);</div>
-<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span>             </div>
-<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span>             cpl_free(new_name);</div>
-<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>             cpl_free(new_context);</div>
-<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>             <span class="keywordflow">if</span> (new_alias != NULL) cpl_free(new_alias);</div>
-<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>             </div>
-<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>         }  <span class="comment">/* If parameter context was not 'uves' */</span></div>
-<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>         </div>
-<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span>     } <span class="comment">/* For each sub-recipe parameter */</span></div>
-<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>     </div>
-<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span> }</div>
-<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span> </div>
-<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__parameters_8h_source.html b/html/uves__parameters_8h_source.html
deleted file mode 100644
index 6fe3146..0000000
--- a/html/uves__parameters_8h_source.html
+++ /dev/null
@@ -1,302 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_parameters.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_parameters.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:06 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.19 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.17  2010/06/09 07:17:14  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * renamed parameter definition function used by response step in redchain recipe to make them more explicit</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.16  2010/06/08 16:29:23  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Fixed problems in parameter definition for reduction chain recipe</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.15  2010/05/18 11:35:18  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * added uves_master_flat_define_parameters</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.14  2010/04/28 08:46:17  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * add uves_define_efficiency_parameters()</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.13  2010/03/22 15:55:33  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * added uves_master_stack_define_parameters</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.12  2008/03/04 15:21:36  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * fixed redchain problem with clean_traps parameter</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.11  2008/03/03 16:35:07  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * added parameter to control trap column correction</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.10  2007/06/26 13:34:57  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Exported function for FLAMES</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.9  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.8  2007/03/15 12:34:08  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Added missing include directive</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.7  2006/10/24 14:04:46  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Defined macros to provide minimal syntax for parameter creation</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.6  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.5  2006/08/07 11:35:35  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Disabled parameter environment variable mode</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.4  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#ifndef UVES_PARAMETERS_H</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PARAMETERS_H</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">                    Includes</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment">                            Typedefs</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">                             Defines</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">                                   Prototypes</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> cpl_error_code</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> uves_define_global_parameters(cpl_parameterlist *parlist);</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> cpl_error_code</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> uves_define_efficiency_parameters(cpl_parameterlist *parlist);</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> cpl_error_code</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> uves_define_rebin_for_response_chain_parameters(cpl_parameterlist *parlist);</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> cpl_error_code</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> uves_define_reduce_for_response_chain_parameters(cpl_parameterlist *parlist);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> cpl_error_code</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> uves_define_efficiency_for_response_chain_parameters(cpl_parameterlist *parlist);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> cpl_error_code</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> uves_define_extract_for_response_chain_parameters(cpl_parameterlist *parlist);</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> cpl_error_code</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> uves_define_background_for_response_chain_parameters(cpl_parameterlist *parlist);</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> cpl_error_code</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> uves_master_stack_define_parameters(cpl_parameterlist *parlist, <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> cpl_error_code</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> uves_master_flat_define_parameters(cpl_parameterlist *parlist, <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> uves_exec_recipe(<span class="keywordtype">int</span> (*get_info)(cpl_pluginlist *), </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_domain,</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>                  <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                  cpl_frameset *frames,</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *caller_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *context);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> uves_invoke_recipe(<span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>            cpl_frameset *frames,</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> *caller_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *context);</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> uves_propagate_parameters_step(<span class="keyword">const</span> <span class="keywordtype">char</span> *step_id,</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>                    cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *context);</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> uves_prop_par(<span class="keywordtype">int</span> (*get_info)(cpl_pluginlist *),</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>           cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *context);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> uves_propagate_parameters(<span class="keyword">const</span> <span class="keywordtype">char</span> *subrecipe_id, </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>               cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *context);</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> cpl_error_code</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> uves_corr_traps_define_parameters(cpl_parameterlist * parameters,</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>                                   <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="preprocessor">#define uves_parameter_new_value(p, name, type, description, context, default) \</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="preprocessor">      do {                                                                     \</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="preprocessor">            p = cpl_parameter_new_value(                                       \</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="preprocessor">                         name, type, description, context, default);           \</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="preprocessor">            cpl_parameter_disable(p, CPL_PARAMETER_MODE_ENV);                  \</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="preprocessor">      } while(false)</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="preprocessor">#define uves_parameter_new_range(p, name, type, description, context,          \</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="preprocessor">                 default, min, max)                            \</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="preprocessor">      do {                                                                     \</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="preprocessor">            p = cpl_parameter_new_range(                                       \</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="preprocessor">                         name, type, description, context, default, min, max); \</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="preprocessor">            cpl_parameter_disable(p, CPL_PARAMETER_MODE_ENV);                  \</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="preprocessor">      } while(false)</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="preprocessor">#define uves_parameter_new_enum(p, name, type, description, context, nopt, ...)\</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="preprocessor">      do {                                                                     \</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="preprocessor">            p = cpl_parameter_new_enum(                                        \</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="preprocessor">                         name, type, description, context, nopt, __VA_ARGS__); \</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="preprocessor">            cpl_parameter_disable(p, CPL_PARAMETER_MODE_ENV);                  \</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="preprocessor">      } while(false)</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="preprocessor">#define uves_par_new_value(name, type, description, default)               \</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="preprocessor">    do {                                                                   \</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="preprocessor">        cpl_parameter *p;                                                  \</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="preprocessor">        char *context   = uves_sprintf("%s%s%s", recipe_id,                \</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="preprocessor">                                       subcontext != NULL ? "." : "",      \</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="preprocessor">                                       subcontext != NULL ? subcontext: "");\</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="preprocessor">        char *full_name = uves_sprintf("%s.%s", context, name);            \</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="preprocessor">        uves_parameter_new_value(p, full_name,                             \</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="preprocessor">                 type,                                     \</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="preprocessor">                 description,                              \</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="preprocessor">                                 context,                                  \</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="preprocessor">                 default);                                 \</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="preprocessor">       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);           \</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="preprocessor">       cpl_parameterlist_append(parameters, p);                            \</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="preprocessor">       cpl_free(context);                                                  \</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="preprocessor">       cpl_free(full_name);                                                \</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="preprocessor">    } while(false)</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="preprocessor">#define uves_par_new_range(name, type, description, default, min, max)     \</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="preprocessor">    do {                                                                   \</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="preprocessor">        cpl_parameter *p;                                                  \</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="preprocessor">        char *context   = uves_sprintf("%s%s%s", recipe_id,                \</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="preprocessor">                                       subcontext != NULL ? "." : "",      \</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="preprocessor">                                       subcontext != NULL ? subcontext: "");\</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="preprocessor">        char *full_name = uves_sprintf("%s.%s", context, name);            \</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="preprocessor">        uves_parameter_new_range(p, full_name,                             \</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="preprocessor">                 type,                                     \</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="preprocessor">                 description,                              \</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="preprocessor">                                 context,                                  \</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="preprocessor">                 default, min, max);                       \</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="preprocessor">       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);           \</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="preprocessor">       cpl_parameterlist_append(parameters, p);                            \</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="preprocessor">       cpl_free(context);                                                  \</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="preprocessor">       cpl_free(full_name);                                                \</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="preprocessor">    } while(false)</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="preprocessor">#define uves_par_new_enum(name, type, description, default, nopt, ...)       \</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="preprocessor">    do {                                                                     \</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="preprocessor">        cpl_parameter *p;                                                    \</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="preprocessor">        char *context   = uves_sprintf("%s%s%s", recipe_id,                \</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="preprocessor">                                       subcontext != NULL ? "." : "",      \</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="preprocessor">                                       subcontext != NULL ? subcontext: "");\</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="preprocessor">        char *full_name = uves_sprintf("%s.%s", context, name);              \</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="preprocessor">        uves_parameter_new_enum(p, full_name,                                \</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="preprocessor">                 type,                                       \</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="preprocessor">                 description,                                \</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="preprocessor">                                 context,                                    \</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="preprocessor">                 default, nopt, __VA_ARGS__);                \</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="preprocessor">       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);             \</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="preprocessor">       cpl_parameterlist_append(parameters, p);                              \</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="preprocessor">       cpl_free(context);                                                    \</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="preprocessor">       cpl_free(full_name);                                                  \</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="preprocessor">    } while(false)</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="preprocessor">#endif  </span><span class="comment">/* UVES_PARAMETERS_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__pfits_8c_source.html b/html/uves__pfits_8c_source.html
deleted file mode 100644
index dcca09b..0000000
--- a/html/uves__pfits_8c_source.html
+++ /dev/null
@@ -1,2550 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_pfits.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_pfits.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2002, 2003, 2004, 2005 Europpean Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-04-16 15:46:38 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.110 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.109  2010/09/24 09:32:06  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.107  2010/06/01 13:30:20  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * defined UVES_TUNIT, uves_pfits_set_tunit_no(), uves_pfits_set_bunit_no()</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.106  2009/07/13 06:37:46  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * added uves_ccd_is_new()</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.105  2009/05/15 11:17:33  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * replace irplib_vsprintf by cpl_vsprintf</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.104  2008/09/29 06:58:49  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.103  2007/10/08 14:10:31  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * assumes 5 for DATANCOM if not found in FITS header</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.102  2007/08/30 07:56:54  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * fixed some doxygen warnings</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.101  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.100  2007/06/28 09:18:21  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added functions to write DPR keywords</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.99  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.98  2007/06/01 14:09:57  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Exported uves_pfits_get_pixelscale</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.97  2007/05/23 13:03:19  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Added missing include directive</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.96  2007/05/16 14:38:03  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * added uves_flames_pfits_get_ident & uves_flames_pfits_get_object</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.95  2007/05/14 09:36:50  amodigli</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * added checks on return types</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.94  2007/05/04 08:53:49  amodigli</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * added uves_flames_pfits_get_nflats</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.93  2007/05/03 15:21:33  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Added function to read wavecal offset</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.92  2007/04/26 13:19:40  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Added uves_pfits_set_ocs_simcal()</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.91  2007/04/25 08:37:19  amodigli</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * added uves_pfits_get_origfile</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.90  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.89  2007/04/24 09:41:09  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Renamed irplib_vsnprintf_create -> irplib_vsprintf</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.88  2007/03/05 10:18:16  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Write 2d extraion slit length</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.87  2007/01/31 13:11:27  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Added SIMCAL accessor functions</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.86  2007/01/29 12:10:19  jmlarsen</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Exported set_history_val() for usage by FLAMES</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.85  2007/01/26 12:33:57  amodigli</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * added function for common QC</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.84  2007/01/17 13:27:10  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Added BITPIX accessor function</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.83  2007/01/10 14:16:15  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Fixed wrong format string</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.82  2007/01/10 12:39:09  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Unified two get_plate_id functions</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.81  2006/12/27 13:55:29  amodigli</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * added flames_pfits_get_plate_id and some FLAMES_ defines for FIBER mode</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.80  2006/12/07 08:25:07  jmlarsen</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Added uves_pfits_get_readspeed</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.79  2006/12/01 12:27:25  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Factored out FLAMES plate-id code</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.78  2006/11/24 09:36:25  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Workaround for slow uves_propertylist_get_size</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.77  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.75  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Revision 1.74  2006/11/13 14:23:55  jmlarsen</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * Removed workarounds for CPL const bugs</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Revision 1.73  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Revision 1.72  2006/10/25 07:21:35  jmlarsen</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> * Documentation bug fix</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Revision 1.71  2006/10/24 14:05:47  jmlarsen</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * Added OBSPLATE</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Revision 1.70  2006/10/05 06:50:23  jmlarsen</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Renamed function format_is_new -> uves_format_is_new</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Revision 1.69  2006/10/04 10:55:33  jmlarsen</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * Added telescope lat-/longitude accessor functions</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Revision 1.68  2006/09/27 13:14:15  jmlarsen</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Added accessor functions for RA/DEC</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Revision 1.67  2006/09/20 10:57:36  jmlarsen</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> * Propagate DATAMEAN/DATAMED/DATARMS if present</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Revision 1.66  2006/09/19 07:19:30  jmlarsen</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * Changed function set_history_int -> set_history_val to support writing values of any type</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Revision 1.65  2006/08/24 11:37:12  jmlarsen</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Revision 1.64  2006/08/21 12:51:02  jmlarsen</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Renamed shadowing variable</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Revision 1.63  2006/08/21 07:45:51  jmlarsen</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Update HISTORY FABSORD keyword if it already exists, rather than adding a new keyword</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Revision 1.62  2006/08/21 07:06:16  jmlarsen</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * Fixed documantation bug</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * Revision 1.61  2006/08/18 13:32:37  jmlarsen</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> * Fixed memory leak</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Revision 1.60  2006/08/18 10:14:04  jmlarsen</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> * Use legal FITS keywords for TRACEID/WINDOW/FABSORD/LABSORD</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * Revision 1.59  2006/08/17 14:40:06  jmlarsen</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> * Revision 1.58  2006/08/17 14:11:25  jmlarsen</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> * Use assure_mem macro to check for memory allocation failure</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> * Revision 1.57  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> * Revision 1.56  2006/08/09 14:23:19  jmlarsen</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment"> * Removed unused function argument</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"> * Revision 1.55  2006/07/31 06:29:26  amodigli</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment"> * added QC on stability test</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment"> * Revision 1.54  2006/07/14 12:24:49  jmlarsen</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment"> * Added conad, target name</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment"> * Revision 1.53  2006/06/13 11:58:55  jmlarsen</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment"> * Bugfix: Use proper chipname keyword for REDL chip</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment"> * Revision 1.52  2006/06/02 06:42:12  jmlarsen</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment"> * Added missing cleanup label</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment"> * Revision 1.51  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment"> * Revision 1.50  2006/06/01 14:22:48  amodigli</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment"> * moved format_is_new to c module and made it static</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"> * Revision 1.49  2006/05/31 09:26:40  amodigli</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment"> * fixed some problem dumping QC log</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment"> * Revision 1.48  2006/05/19 13:07:20  amodigli</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment"> * added uves_pfits_get_slit3_x1encoder</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment"> * Revision 1.47  2006/05/09 15:43:13  amodigli</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment"> * added useful key/functions</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment"> * Revision 1.46  2006/04/26 12:25:20  amodigli</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"> * fixed a problem with ARCFILE keyword</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment"> * Revision 1.45  2006/04/25 14:58:48  amodigli</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment"> * added paf creation functionalities</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment"> * Revision 1.44  2006/04/20 10:48:58  amodigli</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment"> * added uves_pfits_get_tpl_start</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment"> * Revision 1.43  2006/03/24 13:59:41  jmlarsen</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment"> * Added check that central wavelength is always positive</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment"> * Revision 1.42  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="comment"> * Revision 1.41  2005/12/20 16:10:32  jmlarsen</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment"> * Added some documentation</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment"> * Revision 1.40  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment">                Defines</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment">                Includes</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> </div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="preprocessor">#include <errno.h></span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment">                Forward declarations</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="comment">                Function codes</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga88d114f3cb4427cf679e9f7b7696bcd9">  284</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga88d114f3cb4427cf679e9f7b7696bcd9" title="find out the value of UVES_ENCODER_REF1">uves_pfits_get_slit3_x1encoder</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> {</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>   <span class="keywordtype">int</span> result=0;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(result=<a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(plist,UVES_ENCODER_REF1),</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>         <span class="stringliteral">"Error getting %s"</span>, UVES_ENCODER_REF1);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>  cleanup:</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <span class="keywordflow">return</span> result; </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> }</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga12fe6f500e105193aa9faae4258ef51d">  302</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga12fe6f500e105193aa9faae4258ef51d" title="find out the value of UVES_ENCODER_REF2">uves_pfits_get_slit3_x2encoder</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> {</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>   <span class="keywordtype">int</span> result=0;</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(result=<a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(plist,UVES_ENCODER_REF2),</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>         <span class="stringliteral">"Error getting %s"</span>,UVES_ENCODER_REF2);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>  cleanup:</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="keywordflow">return</span> result; </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> }</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga87cd5104b9b26f1655958f6f533fcfc2">  321</a></span> <span class="keywordtype">int</span>  <a class="code" href="group__uves__pfits.html#ga87cd5104b9b26f1655958f6f533fcfc2" title="find out the frame">uves_pfits_get_maxfibres</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> {</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>   <span class="keywordtype">int</span> result=0;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_property_value(plist, <span class="stringliteral">"MAXFIBRES"</span>, </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>                  CPL_TYPE_INT, &result),</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     <span class="stringliteral">"Error reading MAXFIBRES"</span>);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>  cleanup:</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     <span class="keywordflow">return</span> result; </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> }</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga4ee5f11b825d519d1a9aafb561e0d6f7">  340</a></span> <span class="keywordtype">char</span>  <a class="code" href="group__uves__pfits.html#ga4ee5f11b825d519d1a9aafb561e0d6f7" title="find out the frame">uves_pfits_get_chipchoice</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> {</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>   <span class="keywordtype">char</span> result=0;</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(result=<a class="code" href="group__uves__propertylist.html#gae9273c454206f9c51055aa1206183d37" title="Get the character value of the given property list entry.">uves_propertylist_get_char</a>(plist,<span class="stringliteral">"CHIPCHOICE"</span>),</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     <span class="stringliteral">"Error getting CHIPCHOICE"</span>);</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>  cleanup:</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     <span class="keywordflow">return</span> result; </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> </div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> }</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00357"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga8dc9fde0148605eee9109beca930f79e">  357</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga8dc9fde0148605eee9109beca930f79e" title="find out the frame">uves_pfits_get_badpxframe</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>  [...]
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> {</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_property_value(plist, <span class="stringliteral">"BADPXFRAME"</span>, </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>                  CPL_TYPE_STRING, &result),</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     <span class="stringliteral">"Error reading BADPXFRAME"</span>);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>  cleanup:</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     <span class="keywordflow">return</span> result; </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> }</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaabb5de1c212917f34b94de1c1587104d">  379</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gaabb5de1c212917f34b94de1c1587104d" title="find out the arcfile">uves_pfits_get_ambipress</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> {</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>   <span class="keywordtype">double</span> result=0;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_property_value(plist, <span class="stringliteral">"ESO INS SENS26 MEAN"</span>, </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>                  CPL_TYPE_DOUBLE, &result),</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     <span class="stringliteral">"Error reading ESO INS SENS26 MEAN"</span>);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>  cleanup:</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>     <span class="keywordflow">return</span> result; </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> </div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> }</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> </div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00400"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga2cc76a99674d90a86d9d7174f33dc893">  400</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga2cc76a99674d90a86d9d7174f33dc893" title="find out the arcfile">uves_pfits_get_arcfile</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * [...]
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> {</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_property_value(plist, <span class="stringliteral">"ARCFILE"</span>, </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>                  CPL_TYPE_STRING, &result),</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     <span class="stringliteral">"Error reading ARCFILE"</span>);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>  cleanup:</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     <span class="keywordflow">return</span> result; </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> </div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> }</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga25f5bbe03eaa1b8eede6c45d1c92daf3">  422</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga25f5bbe03eaa1b8eede6c45d1c92daf3" title="find out the ident">uves_flames_pfits_get_ident</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a [...]
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> {</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(result=<a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(plist,<span class="stringliteral">"IDENT"</span>),</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     <span class="stringliteral">"Error getting IDENT"</span>);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>  cleanup:</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     <span class="keywordflow">return</span> result; </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> }</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00442"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga81aff5981269ff140a1baca2df392f1b">  442</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga81aff5981269ff140a1baca2df392f1b" title="find out the OBJECT">uves_flames_pfits_get_object</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist< [...]
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> {</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(result=<a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(plist,UVES_OBJECT),</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     <span class="stringliteral">"Error getting OBJECT"</span>);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>  cleanup:</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     <span class="keywordflow">return</span> result; </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> }</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga0ecbcc40cde47dcccdc6e61f987cf94e">  462</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga0ecbcc40cde47dcccdc6e61f987cf94e" title="find out the origfile">uves_pfits_get_origfile</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> [...]
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> {</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_property_value(plist, <span class="stringliteral">"ORIGFILE"</span>, </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                  CPL_TYPE_STRING, &result),</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     <span class="stringliteral">"Error reading ORIGFILE"</span>);</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> </div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>  cleanup:</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     <span class="keywordflow">return</span> result; </div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> }</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00483"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga29aa57ccf95058c909572ed494be97b1">  483</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga29aa57ccf95058c909572ed494be97b1" title="find out the pipefile">uves_pfits_get_pipefile</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> [...]
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> {</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> </div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_property_value(plist, <span class="stringliteral">"PIPEFILE"</span>, </div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>                  CPL_TYPE_STRING, &result),</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     <span class="stringliteral">"Error reading PIPEFILE"</span>);</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>  cleanup:</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     <span class="keywordflow">return</span> result; </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> </div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> }</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00508"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga2b39689fbd7baa3e56d34c2200317649">  508</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga2b39689fbd7baa3e56d34c2200317649" title="find out the arcfile">uves_pfits_get_rec1raw1name</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist< [...]
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> {</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> </div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_property_value(plist, <span class="stringliteral">"ESO PRO REC1 RAW1 NAME"</span>, </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>                  CPL_TYPE_STRING, &result),</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     <span class="stringliteral">"Error reading ESO PRO REC1 RAW1 NAME"</span>);</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>  cleanup:</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> }</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00527"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaf694501f3a20536e64cad6efc2a0e5b5">  527</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#gaf694501f3a20536e64cad6efc2a0e5b5" title="find out the template id">uves_pfits_get_templateid</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylis [...]
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> {</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_property_value(plist, <span class="stringliteral">"ESO TPL ID"</span>, </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>                  CPL_TYPE_STRING, &result),</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     <span class="stringliteral">"Error reading ESO TPL ID"</span>);</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> </div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>  cleanup:</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> </div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>     <span class="keywordflow">return</span> result; </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> }</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> </div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> </div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00549"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga97acf10dfec1908a573a2bf51baedd72">  549</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga97acf10dfec1908a573a2bf51baedd72" title="find out the date of observation">uves_pfits_get_date_obs</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_prope [...]
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> {</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_property_value(plist, <span class="stringliteral">"DATE-OBS"</span>, </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                  CPL_TYPE_STRING, &result),</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     <span class="stringliteral">"Error reading DATE-OBS"</span>);</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>  cleanup:</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> </div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> }</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga9a720fb2cb64f6f8704b53d6d5869017">  568</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga9a720fb2cb64f6f8704b53d6d5869017" title="find out the data category as defined by the DataFlow">uves_pfits_get_dpr_catg</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertyli [...]
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> {</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_property_value(plist, UVES_DPR_CATG, </div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>                  CPL_TYPE_STRING, &result),</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>     <span class="stringliteral">"Error reading %s"</span>, UVES_DPR_CATG);</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span> </div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>  cleanup:</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> }</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> </div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00587"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gadfc97431fbaa953d0b2b507a0d65a323">  587</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gadfc97431fbaa953d0b2b507a0d65a323" title="Read the SIMCAL flag.">uves_pfits_get_ocs_simcal</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> {</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     </div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_OCS_SIMCAL, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_OCS_SIMCAL);</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>     </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>   cleanup:</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> }</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00605"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga8671b556f4338bf739e92b9d0ba1f831">  605</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#ga8671b556f4338bf739e92b9d0ba1f831" title="Set the SIMCAL flag.">uves_pfits_set_ocs_simcal</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> simcal)</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> {</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23" title="Update a property list with a integer value.">uves_propertylist_update_int</a>(plist, UVES_OCS_SIMCAL, simcal),</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>            <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_OCS_SIMCAL);</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> </div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>   cleanup:</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>     </div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> }</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> </div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00622"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga77477da1d35f89951eb8eace41938d41">  622</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga77477da1d35f89951eb8eace41938d41" title="find out the product category as defined by the DataFlow">uves_pfits_get_pro_catg</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propert [...]
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> {</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_property_value(plist, <span class="stringliteral">"ESO PRO CATG"</span>, </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>                  CPL_TYPE_STRING, &result),</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     <span class="stringliteral">"Error reading ESO PRO CATG"</span>);</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> </div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>  cleanup:</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> }</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> </div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00641"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga2833b60dd4a735740352b9c24c6b01f9">  641</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga2833b60dd4a735740352b9c24c6b01f9" title="find out the data tech as defined by the DataFlow">uves_pfits_get_dpr_tech</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__ [...]
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> {</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> </div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_DPR_TECH, </div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>                  CPL_TYPE_STRING, &result),</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>      <span class="stringliteral">"Error reading %s"</span>, UVES_DPR_TECH);</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span> </div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>  cleanup:</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> }</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> </div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00660"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga5bb5b7dee7a50351450a64182f1458fe">  660</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga5bb5b7dee7a50351450a64182f1458fe" title="find out the data type as defined by the DataFlow">uves_pfits_get_dpr_type</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__ [...]
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span> {</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span> </div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> </div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_DPR_TYPE, </div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>                  CPL_TYPE_STRING, &result),</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>      <span class="stringliteral">"Error reading %s"</span>, UVES_DPR_TYPE);</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>  cleanup:</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> }</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00681"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga84bbe16d83dc492a6104f3b301f1c2f9">  681</a></span> <span class="keywordtype">bool</span> <a class="code" href="group__uves__pfits.html#ga84bbe16d83dc492a6104f3b301f1c2f9" title="Find out if CCD header is new.">uves_ccd_is_new</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> {    </div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>     <span class="keywordtype">double</span> mjd_obs = 0.0; <span class="comment">/* Observation date */</span></div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> </div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( mjd_obs = <a class="code" href="group__uves__pfits.html#ga43adddad6bd999b197d24eacc25bde34" title="Find out the modified julian observation date.">uves_pfits_get_mjdobs</a>(plist),</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>        <span class="stringliteral">"Could not read observation date"</span>);</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span> </div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>   cleanup:</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>     <span class="comment">/* New format iff modified julian date is after April 1st, 2004 = 53096 mjd */</span></div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>     <span class="keywordflow">return</span> (mjd_obs > 55018.0);  </div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> }</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> </div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00701"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f">  701</a></span> <span class="keywordtype">bool</span> <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span> {    </div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     <span class="keywordtype">double</span> mjd_obs = 0.0; <span class="comment">/* Observation date */</span></div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( mjd_obs = <a class="code" href="group__uves__pfits.html#ga43adddad6bd999b197d24eacc25bde34" title="Find out the modified julian observation date.">uves_pfits_get_mjdobs</a>(plist),</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>        <span class="stringliteral">"Could not read observation date"</span>);</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> </div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>   cleanup:</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>     <span class="comment">/* New format iff modified julian date is after April 1st, 2004 = 53096 mjd */</span></div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     <span class="keywordflow">return</span> (mjd_obs > 53096.0);  </div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span> }</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00722"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga408818ada3d951ea32c4063728eca597">  722</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga408818ada3d951ea32c4063728eca597" title="Find out the x-prescan.">uves_pfits_get_prescanx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum [...]
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> {</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     <span class="keywordtype">bool</span> new_format;</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>     </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( new_format = <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(plist),</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>        <span class="stringliteral">"Error determining FITS header format"</span>);</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>     </div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_PRESCANX(new_format, chip), </div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>                    CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>        <span class="stringliteral">"Error reading keyword %s"</span>, UVES_PRESCANX(new_format, chip));</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>     </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>   cleanup:</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> }</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> </div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00747"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e">  747</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e" title="Find out the chip ID.">uves_pfits_get_chipid</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *  [...]
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> {</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span> </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CHIP_ID(chip), CPL_TYPE_STRING, &returnvalue), </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>        <span class="stringliteral">"Error reading keyword %s"</span>, UVES_CHIP_ID(chip));</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>     </div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>   cleanup:</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span> }</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00767"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga764b711e645e416c5be3882765baa14e">  767</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga764b711e645e416c5be3882765baa14e" title="Find out the chip name.">uves_pfits_get_chip_name</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</ [...]
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span> {</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> </div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CHIP_NAME(chip), CPL_TYPE_STRING, &returnvalue), </div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>        <span class="stringliteral">"Error reading keyword %s"</span>, UVES_CHIP_NAME(chip));</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>     </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>   cleanup:</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> }</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> </div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00787"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga3d6bc36f09d098e2804a09c276917634">  787</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga3d6bc36f09d098e2804a09c276917634" title="Find out the x-overscan.">uves_pfits_get_ovrscanx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enu [...]
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span> {</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     <span class="keywordtype">bool</span> new_format;</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span> </div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( new_format = <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(plist),</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>        <span class="stringliteral">"Error determining FITS header format"</span>);</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>     </div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_OVRSCANX(new_format, chip), </div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>                    CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>        <span class="stringliteral">"Error reading keyword %s"</span>, UVES_OVRSCANX(new_format, chip));</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>     </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>   cleanup:</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span> }</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> </div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00812"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga9c23bc8405611ad9e160f17543a7ff45">  812</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga9c23bc8405611ad9e160f17543a7ff45" title="Find out the y-prescan.">uves_pfits_get_prescany</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum [...]
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span> {</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>     <span class="keywordtype">bool</span> new_format;</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>     </div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> </div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( new_format = <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(plist),</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>        <span class="stringliteral">"Error determining FITS header format"</span>);</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>     </div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_PRESCANY(new_format, chip), </div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>                    CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>        <span class="stringliteral">"Error reading keyword %s"</span>, UVES_PRESCANY(new_format, chip));</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>     </div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>   cleanup:</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span> }</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span> </div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00838"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaf8ed5ab2990b6792cebb5e1143de4696">  838</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gaf8ed5ab2990b6792cebb5e1143de4696" title="Find out the y-overscan.">uves_pfits_get_ovrscany</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enu [...]
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> {</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>     <span class="keywordtype">bool</span> new_format;</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span> </div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( new_format = <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(plist),</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>        <span class="stringliteral">"Error determining FITS header format"</span>);</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>     </div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_OVRSCANY(new_format, chip), </div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>                    CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>        <span class="stringliteral">"Error reading keyword %s"</span>, UVES_OVRSCANY(new_format, chip));</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>     </div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>   cleanup:</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> }</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span> </div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gabd4b8ee6fb59b708093644f50c321978">  868</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gabd4b8ee6fb59b708093644f50c321978" title="Find out the readout noise in ADU.">uves_pfits_get_ron_adu</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class=" [...]
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> {</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>     <span class="keywordtype">double</span> ron_el = 0;          <span class="comment">/* Read-out noise in electron units  */</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>     <span class="keywordtype">double</span> default_ron_el = 5.0;<span class="comment">/* Number converted from MIDAS       */</span></div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>     <span class="keywordtype">double</span> gain = 0;            <span class="comment">/* Conversion from electrons to ADUs */</span></div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>     <span class="keywordtype">bool</span> new_format;</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> </div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( new_format = <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(plist),</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>        <span class="stringliteral">"Error determining FITS header format"</span>);</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>     </div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_RON(new_format, chip), CPL_TYPE_DOUBLE, &ron_el),</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_RON(new_format, chip));</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> </div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>     <span class="keywordflow">if</span> (ron_el <= 0)</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>     {</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Read-out-noise is "</span></div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>                  <span class="stringliteral">"non-positive (%e electrons). Using default value %e"</span>,</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>                  ron_el, default_ron_el);</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>         ron_el = default_ron_el;</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>     }</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>     </div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( gain = <a class="code" href="group__uves__pfits.html#ga4f4be35f30bd7d46f8c7421907ac8695" title="Find out the gain.">uves_pfits_get_gain</a>(plist, chip),</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>        <span class="stringliteral">"Error reading gain"</span>);</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>     </div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>     assure( ron_el * gain > 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>         <span class="stringliteral">"Non-positive read-out noise: %f ADU"</span>, ron_el * gain);</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>     </div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>   cleanup:</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>     <span class="keywordflow">return</span> ron_el * gain;</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> }</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00907"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga36f17263450ba556317388c15905bc7e">  907</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga36f17263450ba556317388c15905bc7e" title="Find out the start airmass.">uves_pfits_get_airmass_start</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span> {</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>     </div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_AIRMASS_START, CPL_TYPE_DOUBLE, &result),</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_AIRMASS_START);</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>     </div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>   cleanup:</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> }</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00926"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga2aba19c10f2f21a717691bd4b148f669">  926</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga2aba19c10f2f21a717691bd4b148f669" title="Find out the end airmass.">uves_pfits_get_airmass_end</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> {</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>     </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_AIRMASS_END, CPL_TYPE_DOUBLE, &result),</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_AIRMASS_END);</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>     </div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>   cleanup:</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> }</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00946"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gab40bd41082796c15947b75ceddbbbd5c">  946</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gab40bd41082796c15947b75ceddbbbd5c" title="Find out the conad.">uves_pfits_get_conad</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</sp [...]
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> {</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>     </div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>     <span class="keywordtype">bool</span> new_format;</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span> </div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( new_format = <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(plist),</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>        <span class="stringliteral">"Error determining FITS header format"</span>);</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>     </div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CONAD(new_format, chip),</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                    CPL_TYPE_DOUBLE, &result),</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_CONAD(new_format, chip));</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>     </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>   cleanup:</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> }</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00971"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gae00753b08b474c90cdd83169e3c7980e">  971</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__pfits.html#gae00753b08b474c90cdd83169e3c7980e" title="Get target name.">uves_pfits_get_targ_name</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * pl [...]
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span> {</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span> </div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_TARG_NAME, CPL_TYPE_STRING, &returnvalue), </div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>        <span class="stringliteral">"Error reading keyword %s"</span>, UVES_TARG_NAME);</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>     </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>   cleanup:</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> }</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span> </div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00993"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga4f4be35f30bd7d46f8c7421907ac8695">  993</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga4f4be35f30bd7d46f8c7421907ac8695" title="Find out the gain.">uves_pfits_get_gain</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span [...]
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span> {</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>     <span class="keywordtype">double</span> default_gain = 2.1;        <span class="comment">/* Adopted from MIDAS */</span></div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>     <span class="keywordtype">bool</span> new_format;</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> </div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( new_format = <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(plist),</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>        <span class="stringliteral">"Error determining FITS header format"</span>);</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>     </div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_GAIN(new_format, chip),</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>                    CPL_TYPE_DOUBLE, &result),</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_GAIN(new_format, chip));</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>     </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>     <span class="keywordflow">if</span> (result <= 0)</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>     {</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Gain factor from header is "</span></div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>                  <span class="stringliteral">"non-positive (%e). Using default value %e"</span>,</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>                  result, default_gain);</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>         result = default_gain;</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>     }</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> </div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>   cleanup:</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> }</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01028"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04"> 1028</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> {</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>     <span class="keywordtype">double</span> result = 0;            <span class="comment">/* Conversion from electrons to ADUs */</span></div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>     </div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_EXPTIME, CPL_TYPE_DOUBLE, &result), </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_EXPTIME);</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>     assure( result >= 0, CPL_ERROR_ILLEGAL_OUTPUT, <span class="stringliteral">"Exposure time is negative: %f"</span>, result);</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>     </div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>   cleanup:</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span> }</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span> cpl_error_code</div>
-<div class="line"><a name="l01050"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gae45226fec29767907871c9f34f61f61a"> 1050</a></span> <a class="code" href="group__uves__pfits.html#gae45226fec29767907871c9f34f61f61a" title="Write the exposure time.">uves_pfits_set_exptime</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">double</span> exptime)</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> {</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_EXPTIME, exptime),</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>         <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, UVES_EXPTIME, <span class="stringliteral">"Total integration time"</span>)),</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_EXPTIME);</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>   cleanup:</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> }</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> </div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01070"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga9f62d68dba4e530ef2a0407d4752e6fc"> 1070</a></span> <a class="code" href="group__uves__pfits.html#ga9f62d68dba4e530ef2a0407d4752e6fc" title="Write the declination.">uves_pfits_set_dec</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">double</span> dec)</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> {</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_DEC, dec),</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_DEC);</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>   cleanup:</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span> }</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> </div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01088"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga38758b23b33b80f7e27476783fddc3e3"> 1088</a></span> <a class="code" href="group__uves__pfits.html#ga38758b23b33b80f7e27476783fddc3e3" title="Write the right ascension.">uves_pfits_set_ra</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">double</span> ra)</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> {</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_RA, ra),</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_RA);</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>   cleanup:</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> }</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> </div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> cpl_error_code</div>
-<div class="line"><a name="l01106"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaa74a3b1258870b7dcc7f66c616004055"> 1106</a></span> <a class="code" href="group__uves__pfits.html#gaa74a3b1258870b7dcc7f66c616004055" title="Write the predicted number of order.">uves_pfits_set_ordpred</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">int</span> nord)</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> {</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( <a class="code" href="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23" title="Update a property list with a integer value.">uves_propertylist_update_int</a>(plist, UVES_ORD_PRED, nord),</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>         <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, UVES_ORD_PRED, <span class="stringliteral">"Predicted no of orders"</span>)),</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_ORD_PRED);</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>   cleanup:</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> }</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span> </div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l01123"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga30b8fd58edf8f7f006fb73aa9a25cf91"> 1123</a></span> <a class="code" href="group__uves__pfits.html#ga30b8fd58edf8f7f006fb73aa9a25cf91" title="Find out the drs id.">uves_pfits_get_drs_id</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> {</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *result = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>     </div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_DRS_ID, CPL_TYPE_STRING, &result), </div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_DRS_ID);</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>     </div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>   cleanup:</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>     {</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>         result = NULL;</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>     }</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> </div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> }</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> </div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> </div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> </div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l01149"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaf0ed2a547997610410b19faa468f5daf"> 1149</a></span> <a class="code" href="group__uves__pfits.html#gaf0ed2a547997610410b19faa468f5daf" title="Find out the tpl start.">uves_pfits_get_tpl_start</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> {</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *result = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>     </div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_TPL_START, CPL_TYPE_STRING, &result),</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_TPL_START);</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>     </div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>   cleanup:</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>     {</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>         result = NULL;</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>     }</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> </div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span> }</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span> </div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> </div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01173"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaac930573fb642f9b489df1f3773d5eb9"> 1173</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gaac930573fb642f9b489df1f3773d5eb9" title="Find out the observation time.">uves_pfits_get_utc</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span> {</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>     </div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_UTC, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_UTC);</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>     </div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>   cleanup:</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span> }</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span> </div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> </div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01192"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga43adddad6bd999b197d24eacc25bde34"> 1192</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga43adddad6bd999b197d24eacc25bde34" title="Find out the modified julian observation date.">uves_pfits_get_mjdobs</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> {</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>     </div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_MJDOBS, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_MJDOBS);</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>     </div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>   cleanup:</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> }</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> </div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01210"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga58d1b21dbf83e02a88bdced0a416bc9a"> 1210</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga58d1b21dbf83e02a88bdced0a416bc9a" title="Find out the telescope latitude.">uves_pfits_get_geolat</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> {</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>     </div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_GEOLAT, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_GEOLAT);</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>     </div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>   cleanup:</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> }</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span> </div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01228"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga55902033ba015dd0045488a5222f772c"> 1228</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga55902033ba015dd0045488a5222f772c" title="Find out the telescope longitude.">uves_pfits_get_geolon</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span> {</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>     </div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_GEOLON, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_GEOLON);</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>     </div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>   cleanup:</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span> }</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span> </div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01246"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga2f4307d12086db9c739fe3df79931a10"> 1246</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga2f4307d12086db9c739fe3df79931a10" title="Find out the right ascension.">uves_pfits_get_ra</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> {</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>     </div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_RA, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_RA);</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>     </div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>   cleanup:</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> }</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span> </div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01264"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gabee157c267487c9edc9b7f478f781173"> 1264</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gabee157c267487c9edc9b7f478f781173" title="Find out the declination.">uves_pfits_get_dec</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span> {</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>     </div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_DEC, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_DEC);</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>     </div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>   cleanup:</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> }</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> </div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01282"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5"> 1282</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span> {</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>     </div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_BINX, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_BINX);</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>     </div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>   cleanup:</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> }</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> </div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01300"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc"> 1300</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> {</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>     </div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_BINY, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_BINY);</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>     </div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>   cleanup:</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span> }</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span> </div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01318"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga2b4f1ab25eca67e06373e637b34f96a2"> 1318</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga2b4f1ab25eca67e06373e637b34f96a2" title="Find out the number of input raw frames.">uves_pfits_get_datancom</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span> {</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>     </div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>     <span class="comment">/* This keyword changed name at some point. For support of older products, try to</span></div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span> <span class="comment">       first new then old FITS card */</span></div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span> </div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>     assure( plist != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null plist"</span>);</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span> </div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, UVES_DATANCOM))</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>     {</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_DATANCOM, CPL_TYPE_INT, &returnvalue),</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>            <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_DATANCOM);</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>     }</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( <a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, UVES_DATANCOM_OLD)) </div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>     {</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>         </div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_DATANCOM_OLD, CPL_TYPE_INT, &returnvalue),</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>            <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_DATANCOM_OLD);</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span> </div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Neither %s nor %s found! We assume a value of 5! This may affect noise/error propagation"</span>,</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>                UVES_DATANCOM,UVES_DATANCOM_OLD);</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>       returnvalue=5;</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>     }</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>     </div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>   cleanup:</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span> }</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> </div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span> </div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> </div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01357"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga42434cb12722d0eadd8b9f04f56c8237"> 1357</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga42434cb12722d0eadd8b9f04f56c8237" title="find out the ccd id">uves_pfits_get_ccdid</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * pli [...]
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> {</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* result=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>     </div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CCDID, CPL_TYPE_STRING, &result), </div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_CCDID);</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>     </div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>   cleanup:</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span> }</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span> </div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01375"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gada6e3678efe087f614124ea63ce8a9a0"> 1375</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gada6e3678efe087f614124ea63ce8a9a0" title="find out the pressure value">uves_pfits_get_pressure</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span> {</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>     <span class="keywordtype">double</span> returnvalue;</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>     </div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_PRESSURE, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_PRESSURE);</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>     </div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>   cleanup:</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span> }</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01394"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gacf7edbe26b2c28fbe6b04bcd0c0fbe54"> 1394</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#gacf7edbe26b2c28fbe6b04bcd0c0fbe54" title="chop the "ESO " prefix">uves_chop_eso_prefix</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key)</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span> {</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *result = NULL;</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *prefix = <span class="stringliteral">"ESO "</span>;</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pref_len = strlen(prefix);</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>     </div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>     assure( strlen(key) >= pref_len && </div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>         strncmp(key, prefix, pref_len) == 0,</div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>         CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>         <span class="stringliteral">"Keyword %s does not contain 'ESO ' prefix"</span>, key);</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span> </div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>     result = key + pref_len;</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> </div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>   cleanup:</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> }</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> </div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01419"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga266ea18052beecac005d60558904a490"> 1419</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga266ea18052beecac005d60558904a490" title="find out the pressure value">uves_pfits_get_tempcam</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword [...]
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span> {</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>     <span class="keywordtype">double</span> returnvalue;</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>     </div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_TEMPCAM(chip), CPL_TYPE_DOUBLE, &returnvalue),</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_TEMPCAM(chip));</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>     </div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>   cleanup:</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span> }</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span> </div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span> </div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01438"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga4f0d4444ba3039844561d5574447f152"> 1438</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga4f0d4444ba3039844561d5574447f152" title="find out the humidity value">uves_pfits_get_humidity</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> {</div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>     <span class="keywordtype">double</span> returnvalue;</div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>     </div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_HUMIDITY, CPL_TYPE_DOUBLE, &returnvalue),</div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_HUMIDITY);</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>     </div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>   cleanup:</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span> }</div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span> </div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01457"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd"> 1457</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="ke [...]
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span> {</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>     <span class="keywordtype">double</span> returnvalue;</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>     </div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_GRATWLEN(chip), CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_GRATWLEN(chip));</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span> </div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>     assure(returnvalue > 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Non-positive wavelength: %e"</span>, returnvalue);</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>        </div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>   cleanup:</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span> }</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span> </div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01477"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaa56bfa63f004c7046a5a5242312a792f"> 1477</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#gaa56bfa63f004c7046a5a5242312a792f" title="find out the chip name value">uves_pfits_get_insmode</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylis [...]
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span> {</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>     </div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_INSMODE, CPL_TYPE_STRING, &returnvalue), </div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_INSMODE);</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>     </div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>   cleanup:</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span> }</div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span> </div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01495"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaeefa3dc2dbf45776accef00f67b7002f"> 1495</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#gaeefa3dc2dbf45776accef00f67b7002f" title="find out the chip name value">uves_pfits_get_inspath</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylis [...]
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span> {</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>     </div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_INSPATH, CPL_TYPE_STRING, &returnvalue),</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_INSPATH);</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>     </div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>   cleanup:</div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span> }</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01513"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga58d2d231e9bcf59d84ce42cf527b2071"> 1513</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga58d2d231e9bcf59d84ce42cf527b2071" title="find out the grating name value">uves_pfits_get_gratname</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propert [...]
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span> {</div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>     </div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_GRATNAME(chip), CPL_TYPE_STRING, &returnvalue),</div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_GRATNAME(chip));</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>     </div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>   cleanup:</div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span> }</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span> </div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01532"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga5dc4ab669bc41d6c481905c16afa59a0"> 1532</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga5dc4ab669bc41d6c481905c16afa59a0" title="find out the readout speed">uves_pfits_get_readspeed</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylis [...]
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span> {</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>     </div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_READ_SPEED, CPL_TYPE_STRING, &returnvalue),</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_READ_SPEED);</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>     </div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>   cleanup:</div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span> }</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span> </div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01551"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaa907a5d5e4e5a8b2fedda4daae8fae4f"> 1551</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#gaa907a5d5e4e5a8b2fedda4daae8fae4f" title="find out the grating ID value">uves_pfits_get_gratid</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylis [...]
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span> {</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>     </div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_GRATID(chip), CPL_TYPE_STRING, &returnvalue), </div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_GRATID(chip));</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>     </div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>   cleanup:</div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span> }</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span> </div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01570"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga159df9e29b6cdbc886d2ec1c19884a64"> 1570</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga159df9e29b6cdbc886d2ec1c19884a64" title="find out the slit length">uves_pfits_get_slitlength</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword [...]
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span> {</div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>     <span class="keywordtype">double</span> returnvalue;</div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>     </div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_SLITLENGTH(chip), CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_SLITLENGTH(chip));</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>     </div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>   cleanup:</div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span> }</div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span> </div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span> </div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01590"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gadbfe6eb96c384b6b971b634ab8b79fab"> 1590</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gadbfe6eb96c384b6b971b634ab8b79fab" title="find out the slit width">uves_pfits_get_slitwidth</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword"> [...]
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span> {</div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>     <span class="keywordtype">double</span> returnvalue;</div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>     </div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_SLITWIDTH(chip), CPL_TYPE_DOUBLE, &returnvalue),</div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_SLITWIDTH(chip));</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>     </div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>   cleanup:</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span> }</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span> </div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01608"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga49559908c6512ccc86d7ea3b478bdc9a"> 1608</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga49559908c6512ccc86d7ea3b478bdc9a" title="Read the predicted number of orders.">uves_pfits_get_ordpred</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span> {</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>     cpl_type type;</div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>     <span class="keywordtype">int</span> returnvalue;</div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span> </div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>     assure( plist != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null plist"</span>);</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>     </div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>     <span class="comment">/* In the UVES calibration data base this keyword</span></div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span> <span class="comment">       is sometimes integer (e.g. '33'), sometimes a floating </span></div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span> <span class="comment">       point value (e.g. '33.'), so support both types */</span></div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>     </div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>     assure( <a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, UVES_ORD_PRED), </div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>         CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>         <span class="stringliteral">"Keyword %s does not exist"</span>, UVES_ORD_PRED);</div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> ( type = <a class="code" href="group__uves__propertylist.html#ga2ee26ca559adc30a12a3e4dcf003b52d" title="Get the the type of a property list entry.">uves_propertylist_get_type</a>(plist, UVES_ORD_PRED), </div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>         <span class="stringliteral">"Error reading type of property '%s'"</span>, UVES_ORD_PRED);</div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>     </div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>     <span class="keywordflow">if</span> (type == CPL_TYPE_INT)</div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>     {</div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(</div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>                plist, UVES_ORD_PRED, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>            <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_ORD_PRED);</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>     }</div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (type == CPL_TYPE_DOUBLE)</div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>     {</div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>         <span class="keywordtype">double</span> dvalue;</div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(</div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>                plist, UVES_ORD_PRED, CPL_TYPE_DOUBLE, &dvalue), </div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>            <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_ORD_PRED);</div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>         returnvalue = uves_round_double(dvalue);</div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>     }</div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>     {</div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>         assure( <span class="keyword">false</span>, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>             <span class="stringliteral">"Keyword '%s' has wrong type '%s'"</span>,</div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>             UVES_ORD_PRED, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>     }</div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>     </div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>   cleanup:</div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span> }</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span> </div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01665"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga69cca375340082d053f4fa6d11c099c6"> 1665</a></span> <a class="code" href="group__uves__pfits.html#ga69cca375340082d053f4fa6d11c099c6" title="Write integer value to HISTORY keyword.">uves_pfits_set_history_val</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,  [...]
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span> {</div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>     <span class="keywordtype">char</span> *val_str = NULL;</div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>     <span class="keywordtype">char</span> *number_str = NULL;</div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>     cpl_property *existing = NULL;</div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>     va_list arglist;</div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>     <span class="keyword">const</span> <span class="keywordtype">long</span> <span class="keywordtype">int</span> plist_size = <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist);</div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span> </div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>     <span class="keywordflow">for</span> (i = 0;</div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>      existing == NULL && i < plist_size; i++)</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>     {</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>         cpl_property *p = uves_propertylist_get(plist, i);</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *pname = cpl_property_get_name(p);</div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>         </div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>         <span class="keywordflow">if</span> (strcmp(pname, <span class="stringliteral">"HISTORY"</span>) == 0)</div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>         {</div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *pval;</div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( pval = cpl_property_get_string(p),</div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>                <span class="stringliteral">"Error reading property value"</span>);</div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>             </div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>             <span class="comment">/* match the string  "<name> " */</span></div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>             </div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>             <span class="keywordflow">if</span> (strlen(pval) > strlen(name) + strlen(<span class="stringliteral">" "</span>) &&</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>             strncmp(pval, name, strlen(name)) == 0 &&</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>             pval[strlen(name)] == <span class="charliteral">' '</span>)</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>             {</div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>                 <span class="comment">/* Remember this one and stop searching */</span></div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>                 existing = p;</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>             }</div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>         }</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>     }</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span> </div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>     va_start(arglist, format);</div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>     number_str = cpl_vsprintf(format, arglist);</div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>     va_end(arglist);</div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span> </div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>     val_str = uves_sprintf(<span class="stringliteral">"%s %s"</span>, name, number_str);</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span> </div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>     <span class="keywordflow">if</span> (existing != NULL)</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>     {</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_property_set_string(existing, val_str),</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>            <span class="stringliteral">"Error updating HISTORY keyword with value '%s'"</span>, val_str);</div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>     }</div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>     {</div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_propertylist_append_string(plist, <span class="stringliteral">"HISTORY"</span>, val_str),</div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>            <span class="stringliteral">"Error writing HISTORY keyword with value '%s'"</span>, val_str);</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>     }</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span> </div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>   cleanup:</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>     cpl_free(val_str);</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>     cpl_free(number_str);</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span> }</div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l01739"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga41f9034d45d27b699e4bb70c322d8856"> 1739</a></span> <a class="code" href="group__uves__pfits.html#ga41f9034d45d27b699e4bb70c322d8856" title="Parse the value of a HISTORY keyword.">parse_history</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keyword">const</span> <span class="keywordtype" [...]
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span> {</div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>     <span class="keyword">const</span> <span class="keywordtype">long</span> <span class="keywordtype">int</span> plist_size = <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist);</div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>     <span class="keywordtype">bool</span> found;</div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span> </div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>     found = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>     <span class="keywordflow">for</span> (i = 0; !found && i < plist_size; i++) {</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>         <span class="keyword">const</span> cpl_property *p = <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(plist, i);</div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *value = cpl_property_get_name(p);</div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>         </div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>         <span class="keywordflow">if</span> (strcmp(value, <span class="stringliteral">"HISTORY"</span>) == 0) {</div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( value = cpl_property_get_string(p),</div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>                    <span class="stringliteral">"Error reading property value"</span>);</div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>             </div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>             <span class="comment">/* match the string  "<name> " */</span></div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>             </div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>             <span class="keywordflow">if</span> (strlen(value) > strlen(name) + strlen(<span class="stringliteral">" "</span>) &&</div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>                 strncmp(value, name, strlen(name)) == 0 &&</div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>                 value[strlen(name)] == <span class="charliteral">' '</span>) {</div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>                 errno = 0;</div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>                 <span class="keywordflow">switch</span>(type) {</div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>                 <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>                     returnvalue = atoi(value + strlen(name) + strlen(<span class="stringliteral">" "</span>));</div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>                     assure(errno == 0, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>                            <span class="stringliteral">"Could not parse string '%s' as integer. "</span></div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>                            <span class="stringliteral">"atoi() returned %d"</span>,</div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>                            value + strlen(name) + strlen(<span class="stringliteral">" "</span>), errno);</div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>                 <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>                     returnvalue = strtod(value + strlen(name) + strlen(<span class="stringliteral">" "</span>), NULL);</div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>                     assure(errno == 0, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>                            <span class="stringliteral">"Could not parse string '%s' as double. "</span></div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>                            <span class="stringliteral">"strtod() returned %d"</span>,</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>                            value + strlen(name) + strlen(<span class="stringliteral">" "</span>), errno);</div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>                 <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>                     assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>                             <span class="stringliteral">"Type is %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>                 }</div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>                 found = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>             }</div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>         }</div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>     }</div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>     </div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>     assure( found, CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"Missing record 'HISTORY %s '"</span>,</div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>         name );</div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span> </div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>   cleanup:</div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span> }</div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>     </div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01803"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga33e51be1bfd4b8f42972789c417211ae"> 1803</a></span> <a class="code" href="group__uves__pfits.html#ga33e51be1bfd4b8f42972789c417211ae" title="Write the first absolute order number.">uves_pfits_set_firstabsorder</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">int</span> first_abs_order)</div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span> {</div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>     <a class="code" href="group__uves__pfits.html#ga69cca375340082d053f4fa6d11c099c6" title="Write integer value to HISTORY keyword.">uves_pfits_set_history_val</a>(plist, UVES_FIRSTABSORDER, <span class="stringliteral">"%d"</span>, first_abs_order);</div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span> </div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span> }</div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span> </div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01818"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaa6a185f3150b22d6ce30439bfacbb78c"> 1818</a></span> <a class="code" href="group__uves__pfits.html#gaa6a185f3150b22d6ce30439bfacbb78c" title="Get first absolute order number.">uves_pfits_get_firstabsorder</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span> {</div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>     <span class="keywordflow">return</span> uves_round_double(<a class="code" href="group__uves__pfits.html#ga41f9034d45d27b699e4bb70c322d8856" title="Parse the value of a HISTORY keyword.">parse_history</a>(plist, UVES_FIRSTABSORDER, CPL_TYPE_INT));</div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span> }</div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span> </div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span> </div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01834"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga69fae305f143947cdd58f3c575e7ba9a"> 1834</a></span> <a class="code" href="group__uves__pfits.html#ga69fae305f143947cdd58f3c575e7ba9a" title="Write the last absolute order number.">uves_pfits_set_lastabsorder</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">int</span> last_abs_order)</div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span> {</div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>     <a class="code" href="group__uves__pfits.html#ga69cca375340082d053f4fa6d11c099c6" title="Write integer value to HISTORY keyword.">uves_pfits_set_history_val</a>(plist, UVES_LASTABSORDER, <span class="stringliteral">"%d"</span>, last_abs_order);</div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span> </div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span> }</div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01848"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gad090d54b01606904ef8d740f766c2fde"> 1848</a></span> <a class="code" href="group__uves__pfits.html#gad090d54b01606904ef8d740f766c2fde" title="Get last absolute order number.">uves_pfits_get_lastabsorder</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span> {</div>
-<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>     <span class="keywordflow">return</span> uves_round_double(<a class="code" href="group__uves__pfits.html#ga41f9034d45d27b699e4bb70c322d8856" title="Parse the value of a HISTORY keyword.">parse_history</a>(plist, UVES_LASTABSORDER, CPL_TYPE_INT));</div>
-<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span> }</div>
-<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span> </div>
-<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span> cpl_error_code </div>
-<div class="line"><a name="l01862"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga865460e642e3dc81fae544e3b6f1402a"> 1862</a></span> <a class="code" href="group__uves__pfits.html#ga865460e642e3dc81fae544e3b6f1402a" title="Write the average pixel value.">uves_pfits_set_data_average</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> average)</div>
-<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span> {</div>
-<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_PRO_DATAAVG, average),</div>
-<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>         <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>  (plist, UVES_PRO_DATAAVG, <span class="stringliteral">"Mean of pixel values"</span>)),</div>
-<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_PRO_DATAAVG);</div>
-<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>   cleanup:</div>
-<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span> }</div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span> </div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span> cpl_error_code </div>
-<div class="line"><a name="l01880"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga308f6a7549c50e0c513d63a40dfa975f"> 1880</a></span> <a class="code" href="group__uves__pfits.html#ga308f6a7549c50e0c513d63a40dfa975f" title="Write the RMS error of pixel values.">uves_pfits_set_data_stddev</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> stddev)</div>
-<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span> {</div>
-<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_PRO_DATARMS, stddev),</div>
-<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>         <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>  (plist, UVES_PRO_DATARMS, </div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>                        <span class="stringliteral">"Standard deviation of pixel values"</span>)),</div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_PRO_DATARMS);</div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>   </div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>   cleanup:</div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span> }</div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span> </div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span> cpl_error_code </div>
-<div class="line"><a name="l01900"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gad010fc0da98b85fdebcd5bc5ba66b2bf"> 1900</a></span> <a class="code" href="group__uves__pfits.html#gad010fc0da98b85fdebcd5bc5ba66b2bf" title="Write the median pixel value.">uves_pfits_set_data_median</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> median)</div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span> {</div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_PRO_DATAMED, median),</div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>         <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>  (plist, UVES_PRO_DATAMED, <span class="stringliteral">"Median of pixel values"</span>)),</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_PRO_DATAMED);</div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span> </div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>   cleanup:</div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span> }</div>
-<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span> cpl_error_code </div>
-<div class="line"><a name="l01918"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gac4287c2bde551653e40d60e128a3a35a"> 1918</a></span> <a class="code" href="group__uves__pfits.html#gac4287c2bde551653e40d60e128a3a35a" title="Write the min pixel value.">uves_pfits_set_data_min</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> min)</div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span> {</div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_DATAMIN, min),</div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>         <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>  (plist, UVES_DATAMIN, <span class="stringliteral">"Minimum of pixel values"</span>)),</div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>         <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_DATAMIN);</div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>   </div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>   cleanup:</div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span> }</div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span> cpl_error_code </div>
-<div class="line"><a name="l01936"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga12b323abb20f835610ee85f9511d2b30"> 1936</a></span> <a class="code" href="group__uves__pfits.html#ga12b323abb20f835610ee85f9511d2b30" title="Write the max pixel value.">uves_pfits_set_data_max</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> max)</div>
-<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span> {</div>
-<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_DATAMAX, max),</div>
-<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>         <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>  (plist, UVES_DATAMAX, </div>
-<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>                                             <span class="stringliteral">"Maximum of pixel values"</span>)),</div>
-<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span>           <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_DATAMAX);</div>
-<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>   </div>
-<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>   cleanup:</div>
-<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span> }</div>
-<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span> </div>
-<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01956"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga7ee7734c381f31039220820182a749c9"> 1956</a></span> <a class="code" href="group__uves__pfits.html#ga7ee7734c381f31039220820182a749c9" title="Write the trace ID.">uves_pfits_set_traceid</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> trace_id)</div>
-<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span> {</div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>     <a class="code" href="group__uves__pfits.html#ga69cca375340082d053f4fa6d11c099c6" title="Write integer value to HISTORY keyword.">uves_pfits_set_history_val</a>(plist, UVES_TRACEID, <span class="stringliteral">"%d"</span>, trace_id);    </div>
-<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span> }</div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span> </div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l01970"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaef0d7e4491440deeda27c14d65c34d7b"> 1970</a></span> <a class="code" href="group__uves__pfits.html#gaef0d7e4491440deeda27c14d65c34d7b" title="Get the trace offset.">uves_pfits_get_offset</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist)</div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span> {</div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>     <span class="keywordtype">double</span> offset;</div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, UVES_TRACE_OFFSET)) </div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>         <span class="comment">/* MIDAS format */</span></div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>         {</div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_TRACE_OFFSET, CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>                                            &offset), </div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>                    <span class="stringliteral">"Error reading keyword %s"</span>, UVES_TRACE_OFFSET);</div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>         }</div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>         {</div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>             offset = <a class="code" href="group__uves__pfits.html#ga41f9034d45d27b699e4bb70c322d8856" title="Parse the value of a HISTORY keyword.">parse_history</a>(plist, UVES_TRACE_OFFSET, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>         }</div>
-<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span> </div>
-<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>   cleanup:    </div>
-<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>     <span class="keywordflow">return</span> offset;</div>
-<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span> }</div>
-<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01997"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gae66ad0ee347230f2fea240f445104a20"> 1997</a></span> <a class="code" href="group__uves__pfits.html#gae66ad0ee347230f2fea240f445104a20" title="Write the trace offset.">uves_pfits_set_offset</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> trace_offset)</div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span> {</div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>     <a class="code" href="group__uves__pfits.html#ga69cca375340082d053f4fa6d11c099c6" title="Write integer value to HISTORY keyword.">uves_pfits_set_history_val</a>(plist, UVES_TRACE_OFFSET, <span class="stringliteral">"%f"</span>, trace_offset);</div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span> }</div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span> </div>
-<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l02012"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gab684709b2ade5e2322325761799e92d0"> 2012</a></span> <a class="code" href="group__uves__pfits.html#gab684709b2ade5e2322325761799e92d0" title="Write the window number.">uves_pfits_set_windownumber</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> window_number)</div>
-<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span> {</div>
-<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>     <a class="code" href="group__uves__pfits.html#ga69cca375340082d053f4fa6d11c099c6" title="Write integer value to HISTORY keyword.">uves_pfits_set_history_val</a>(plist, UVES_WINDOWNUMBER, <span class="stringliteral">"%d"</span>, window_number);</div>
-<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span> }</div>
-<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span> </div>
-<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span> </div>
-<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02027"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gafe242382d5e824db3b68e156d8296a89"> 2027</a></span> <a class="code" href="group__uves__pfits.html#gafe242382d5e824db3b68e156d8296a89" title="Get the trace ID number.">uves_pfits_get_traceid</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span> {</div>
-<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>     <span class="keywordflow">return</span> uves_round_double(<a class="code" href="group__uves__pfits.html#ga41f9034d45d27b699e4bb70c322d8856" title="Parse the value of a HISTORY keyword.">parse_history</a>(plist, UVES_TRACEID, CPL_TYPE_INT));</div>
-<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span> }</div>
-<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span> </div>
-<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02040"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga3bcabe0b2d46d1f65674d3d0dcb9ee2d"> 2040</a></span> <a class="code" href="group__uves__pfits.html#ga3bcabe0b2d46d1f65674d3d0dcb9ee2d" title="Get the window number.">uves_pfits_get_windownumber</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span> {</div>
-<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>     <span class="keywordflow">return</span> uves_round_double(<a class="code" href="group__uves__pfits.html#ga41f9034d45d27b699e4bb70c322d8856" title="Parse the value of a HISTORY keyword.">parse_history</a>(plist, UVES_WINDOWNUMBER, CPL_TYPE_INT));</div>
-<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span> }</div>
-<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span> </div>
-<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* </div>
-<div class="line"><a name="l02053"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaeaf186ce3a84dfbca11c7cee211e80ce"> 2053</a></span> <a class="code" href="group__uves__pfits.html#gaeaf186ce3a84dfbca11c7cee211e80ce" title="Find out the bunit.">uves_pfits_get_bunit</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span> {</div>
-<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>     </div>
-<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_BUNIT, CPL_TYPE_STRING, &returnvalue), </div>
-<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_BUNIT);</div>
-<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>     </div>
-<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>   cleanup:</div>
-<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span> }</div>
-<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span> </div>
-<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l02072"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gacc6916f14b6591ccc948f1ca8117fbf0"> 2072</a></span> <a class="code" href="group__uves__pfits.html#gacc6916f14b6591ccc948f1ca8117fbf0" title="Find out the bscale.">uves_pfits_get_bscale</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span> {</div>
-<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>     </div>
-<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_BSCALE, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_BSCALE);</div>
-<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>     </div>
-<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>   cleanup:</div>
-<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span> }</div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span> </div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span> </div>
-<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* </div>
-<div class="line"><a name="l02092"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga59cf5e1608701d663f3abcc8fcb41880"> 2092</a></span> <a class="code" href="group__uves__pfits.html#ga59cf5e1608701d663f3abcc8fcb41880" title="Find out the cunit1.">uves_pfits_get_cunit1</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span> {</div>
-<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>     </div>
-<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CUNIT1, CPL_TYPE_STRING, &returnvalue), </div>
-<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_CUNIT1);</div>
-<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>     </div>
-<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>   cleanup:</div>
-<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span> }</div>
-<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span> </div>
-<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* </div>
-<div class="line"><a name="l02111"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga1f8205720c4af931e1dfb55542d71ccc"> 2111</a></span> <a class="code" href="group__uves__pfits.html#ga1f8205720c4af931e1dfb55542d71ccc" title="Find out the cunit2.">uves_pfits_get_cunit2</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span> {</div>
-<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>     </div>
-<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CUNIT2, CPL_TYPE_STRING, &returnvalue), </div>
-<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_CUNIT2);</div>
-<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>     </div>
-<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span>   cleanup:</div>
-<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span> }</div>
-<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span> </div>
-<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* </div>
-<div class="line"><a name="l02130"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaa01218ecc26f39e4d903199d8912859a"> 2130</a></span> <a class="code" href="group__uves__pfits.html#gaa01218ecc26f39e4d903199d8912859a" title="Find out the ctype1.">uves_pfits_get_ctype1</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span> {</div>
-<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>     </div>
-<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CTYPE1, CPL_TYPE_STRING, &returnvalue), </div>
-<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_CTYPE1);</div>
-<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>     </div>
-<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>   cleanup:</div>
-<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span> }</div>
-<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span> </div>
-<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span> <span class="keyword">const</span> </div>
-<div class="line"><a name="l02149"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga10f0c2c5e0fd87a36ede0e7fb2fa05bd"> 2149</a></span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga10f0c2c5e0fd87a36ede0e7fb2fa05bd" title="Find out the ctype2.">uves_pfits_get_ctype2</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span> {</div>
-<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>     </div>
-<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CTYPE2, CPL_TYPE_STRING, &returnvalue), </div>
-<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_CTYPE2);</div>
-<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>     </div>
-<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>   cleanup:</div>
-<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span> }</div>
-<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span> </div>
-<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l02168"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga94a0f9aec24d8d9ce2a936a1cd7985dd"> 2168</a></span> <a class="code" href="group__uves__pfits.html#ga94a0f9aec24d8d9ce2a936a1cd7985dd" title="Find out the user integration time.">uves_pfits_get_uit</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span> {</div>
-<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>     <span class="keywordtype">bool</span> new_format;</div>
-<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span>     </div>
-<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( new_format = <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(plist),</div>
-<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>        <span class="stringliteral">"Error determining FITS header format"</span>);</div>
-<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>     </div>
-<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_UIT(new_format), CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>        <span class="stringliteral">"Error reading keyword %s"</span>, UVES_UIT(new_format));</div>
-<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>     </div>
-<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>   cleanup:</div>
-<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span> </div>
-<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span> }</div>
-<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span> </div>
-<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span> </div>
-<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l02194"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8"> 2194</a></span> <a class="code" href="group__uves__pfits.html#ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8" title="Find out the OUT1 NX or OUT4 NX.">uves_pfits_get_nx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist,<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span> {</div>
-<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span> </div>
-<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>     <span class="keywordtype">bool</span> new_format;</div>
-<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>     </div>
-<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( new_format = <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(plist),</div>
-<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>        <span class="stringliteral">"Error determining FITS header format"</span>);</div>
-<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>     </div>
-<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_NX(new_format, chip), CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>        <span class="stringliteral">"Error reading keyword %s"</span>, UVES_NX(new_format, chip));</div>
-<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>     </div>
-<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>   cleanup:</div>
-<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span> </div>
-<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span> }</div>
-<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span> </div>
-<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span> </div>
-<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span> </div>
-<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span> </div>
-<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l02223"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga4869724c736010824272955edffb60eb"> 2223</a></span> <a class="code" href="group__uves__pfits.html#ga4869724c736010824272955edffb60eb" title="Find out the OUT1 NY or OUT4 NY.">uves_pfits_get_ny</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist,<span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span> {</div>
-<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span> </div>
-<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>     <span class="keywordtype">bool</span> new_format;</div>
-<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>     </div>
-<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( new_format = <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(plist),</div>
-<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>        <span class="stringliteral">"Error determining FITS header format"</span>);</div>
-<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>     </div>
-<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_NY(new_format, chip), CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>        <span class="stringliteral">"Error reading keyword %s"</span>, UVES_NY(new_format, chip));</div>
-<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>     </div>
-<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>   cleanup:</div>
-<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span> </div>
-<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span> }</div>
-<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span> </div>
-<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span> </div>
-<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span> </div>
-<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l02250"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gae9e532b44a8101e42ee42ea2294e877a"> 2250</a></span> <a class="code" href="group__uves__pfits.html#gae9e532b44a8101e42ee42ea2294e877a" title="Find out the OUT1 NX.">uves_pfits_get_out1nx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span> {</div>
-<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>     </div>
-<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_OUT1NX, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_OUT1NX);</div>
-<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>     </div>
-<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span>   cleanup:</div>
-<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span> }</div>
-<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span> </div>
-<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l02269"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga4cc264a7bd8eafb4572b7ee10a82b4a9"> 2269</a></span> <a class="code" href="group__uves__pfits.html#ga4cc264a7bd8eafb4572b7ee10a82b4a9" title="Find out the OUT1 NY.">uves_pfits_get_out1ny</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span> {</div>
-<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>     </div>
-<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_OUT1NY, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_OUT1NY);</div>
-<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>     </div>
-<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>   cleanup:</div>
-<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span> }</div>
-<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span> </div>
-<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l02288"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaf24b3465f3646b6a0c446eb1fbeb2520"> 2288</a></span> <a class="code" href="group__uves__pfits.html#gaf24b3465f3646b6a0c446eb1fbeb2520" title="Find out the OUT4 NX.">uves_pfits_get_out4nx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span> {</div>
-<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>     </div>
-<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_OUT4NX, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_OUT4NX);</div>
-<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span>     </div>
-<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>   cleanup:</div>
-<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span> }</div>
-<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span> </div>
-<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l02307"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga40a63a22192db6fbc8bab37e64ae0bc9"> 2307</a></span> <a class="code" href="group__uves__pfits.html#ga40a63a22192db6fbc8bab37e64ae0bc9" title="Find out the OUT4 NY.">uves_pfits_get_out4ny</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span> {</div>
-<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>     </div>
-<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_OUT4NY, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_OUT4NY);</div>
-<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span>     </div>
-<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span>   cleanup:</div>
-<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span> }</div>
-<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span> </div>
-<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span> </div>
-<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l02327"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga17228ff502d3e1eafc4359b2b7069a32"> 2327</a></span> <a class="code" href="group__uves__pfits.html#ga17228ff502d3e1eafc4359b2b7069a32" title="Find out the NAXIS.">uves_pfits_get_naxis</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span> {</div>
-<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span>     </div>
-<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_NAXIS, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_NAXIS);</div>
-<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>     </div>
-<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>   cleanup:</div>
-<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span> }</div>
-<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span> </div>
-<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l02346"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gac758aa4b71e0c505df55d1d99d7b62f8"> 2346</a></span> <a class="code" href="group__uves__pfits.html#gac758aa4b71e0c505df55d1d99d7b62f8" title="Find out the NFLATS.">uves_flames_pfits_get_nflats</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span> {</div>
-<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>     </div>
-<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, FLAMES_NFLATS, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, FLAMES_NFLATS);</div>
-<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>     </div>
-<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>   cleanup:</div>
-<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span> }</div>
-<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span> </div>
-<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span> </div>
-<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l02366"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga45d7028cbd48f33f7c5589deb4ccd5c4"> 2366</a></span> <a class="code" href="group__uves__pfits.html#ga45d7028cbd48f33f7c5589deb4ccd5c4" title="Find out the BITPIX.">uves_pfits_get_bitpix</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span> {</div>
-<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>     </div>
-<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_BITPIX, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_BITPIX);</div>
-<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>     </div>
-<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>   cleanup:</div>
-<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span> }</div>
-<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span> </div>
-<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02384"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gadd8fda05c51af7b34d5021b4bc60fffc"> 2384</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gadd8fda05c51af7b34d5021b4bc60fffc" title="Find out the NAXIS1.">uves_pfits_get_naxis1</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span> {</div>
-<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>     </div>
-<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_NAXIS1, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_NAXIS1);</div>
-<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span>     </div>
-<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>   cleanup:</div>
-<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span> }</div>
-<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span> </div>
-<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span> </div>
-<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l02404"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaf61c29fc0fa67ae38c7ac8e0f125c6ce"> 2404</a></span> <a class="code" href="group__uves__pfits.html#gaf61c29fc0fa67ae38c7ac8e0f125c6ce" title="Find out the START1.">uves_pfits_get_startx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span> {</div>
-<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>     </div>
-<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_STARTX, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_STARTX);</div>
-<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>     </div>
-<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>   cleanup:</div>
-<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span> }</div>
-<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span> </div>
-<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span> </div>
-<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l02424"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaa144877b5eaa88dd3bc92c9900543c5f"> 2424</a></span> <a class="code" href="group__uves__pfits.html#gaa144877b5eaa88dd3bc92c9900543c5f" title="Find out the STARTY.">uves_pfits_get_starty</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span> {</div>
-<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>     </div>
-<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_STARTY, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_STARTY);</div>
-<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>     </div>
-<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>   cleanup:</div>
-<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span> }</div>
-<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span> </div>
-<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l02443"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga41338750e1279de511bc5035d8d218d0"> 2443</a></span> <a class="code" href="group__uves__pfits.html#ga41338750e1279de511bc5035d8d218d0" title="Find out the NAXIS2.">uves_pfits_get_naxis2</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span> {</div>
-<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>     <span class="keywordtype">int</span> returnvalue = 0;</div>
-<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>     </div>
-<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_NAXIS2, CPL_TYPE_INT, &returnvalue), </div>
-<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_NAXIS2);</div>
-<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>     </div>
-<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>   cleanup:</div>
-<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span> }</div>
-<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l02461"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81"> 2461</a></span> <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span> {</div>
-<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>     <span class="keywordtype">double</span> returnvalue = 0.0;</div>
-<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>     </div>
-<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CRVAL1, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_CRVAL1);</div>
-<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>     </div>
-<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>   cleanup:</div>
-<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span> }</div>
-<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l02479"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaefba8b3c1a2fbe5c0f42eaeaaafaf455"> 2479</a></span> <a class="code" href="group__uves__pfits.html#gaefba8b3c1a2fbe5c0f42eaeaaafaf455" title="Find out the crval2.">uves_pfits_get_crval2</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span> {</div>
-<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>     <span class="keywordtype">double</span> returnvalue = 0.0;</div>
-<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>     </div>
-<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CRVAL2, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_CRVAL2);</div>
-<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>     </div>
-<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>   cleanup:</div>
-<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span> }</div>
-<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l02497"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga1820feccc4e549d16d5630880790cea3"> 2497</a></span> <a class="code" href="group__uves__pfits.html#ga1820feccc4e549d16d5630880790cea3" title="Find out the crpix1.">uves_pfits_get_crpix1</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span> {</div>
-<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>     <span class="keywordtype">double</span> returnvalue = 0.0;</div>
-<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>     </div>
-<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CRPIX1, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_CRPIX1);</div>
-<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>     </div>
-<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>   cleanup:</div>
-<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span> }</div>
-<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l02515"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga18ea5d528ab27ac81d2b64901f81c4b7"> 2515</a></span> <a class="code" href="group__uves__pfits.html#ga18ea5d528ab27ac81d2b64901f81c4b7" title="Find out the crpix2.">uves_pfits_get_crpix2</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span> {</div>
-<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>     <span class="keywordtype">double</span> returnvalue = 0.0;</div>
-<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>     </div>
-<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CRPIX2, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_CRPIX2);</div>
-<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>     </div>
-<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>   cleanup:</div>
-<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span> }</div>
-<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l02533"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7"> 2533</a></span> <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span> {</div>
-<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>     <span class="keywordtype">double</span> returnvalue = 0.0;</div>
-<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>     </div>
-<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CDELT1, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_CDELT1);</div>
-<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>     </div>
-<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>   cleanup:</div>
-<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span> }</div>
-<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l02551"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gab1af91452dda53e50314231795bf5308"> 2551</a></span> <a class="code" href="group__uves__pfits.html#gab1af91452dda53e50314231795bf5308" title="Find out the cdelt2.">uves_pfits_get_cdelt2</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span> {</div>
-<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>     <span class="keywordtype">double</span> returnvalue = 0.0;</div>
-<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>     </div>
-<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_CDELT2, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_CDELT2);</div>
-<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>     </div>
-<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>   cleanup:</div>
-<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span> }</div>
-<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span> </div>
-<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span> </div>
-<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02571"></a><span class="lineno"> 2571</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l02572"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga666eb10fe3865d59fa69b830735f0e0e"> 2572</a></span> <a class="code" href="group__uves__pfits.html#ga666eb10fe3865d59fa69b830735f0e0e" title="Set DPR CATG value.">uves_pfits_set_dpr_catg</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *catg)</div>
-<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span> {</div>
-<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_DPR_CATG, catg),</div>
-<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span>            <span class="stringliteral">"Error writing %s"</span>, UVES_DPR_CATG);</div>
-<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span>   cleanup:</div>
-<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span> }</div>
-<div class="line"><a name="l02579"></a><span class="lineno"> 2579</span> </div>
-<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02587"></a><span class="lineno"> 2587</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l02589"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaa8bc49514a8c08229da6db3f881cf98c"> 2589</a></span> <a class="code" href="group__uves__pfits.html#gaa8bc49514a8c08229da6db3f881cf98c" title="Set DPR TECH value.">uves_pfits_set_dpr_tech</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *tech)</div>
-<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span> {</div>
-<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_DPR_TECH, tech),</div>
-<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span>            <span class="stringliteral">"Error writing %s"</span>, UVES_DPR_TECH);</div>
-<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>   cleanup:</div>
-<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span> }</div>
-<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l02605"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gad5a9f4f0b354fff0ee10bd24df613b25"> 2605</a></span> <a class="code" href="group__uves__pfits.html#gad5a9f4f0b354fff0ee10bd24df613b25" title="Set DPR TYPE value.">uves_pfits_set_dpr_type</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *type)</div>
-<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span> {</div>
-<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_DPR_TYPE, type),</div>
-<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>            <span class="stringliteral">"Error writing %s"</span>, UVES_DPR_TYPE);</div>
-<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>   cleanup:</div>
-<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span> }</div>
-<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span> </div>
-<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span> cpl_error_code </div>
-<div class="line"><a name="l02622"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga00c534cae0eea2f78b8d36bc675c7b80"> 2622</a></span> <a class="code" href="group__uves__pfits.html#ga00c534cae0eea2f78b8d36bc675c7b80" title="Write the object keyword.">uves_pfits_set_object</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype [...]
-<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span> {</div>
-<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_OBJECT, <span class="keywordtype">object</span>),</div>
-<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_OBJECT);</div>
-<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span>     </div>
-<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span>   cleanup:</div>
-<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span> }</div>
-<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span> cpl_error_code </div>
-<div class="line"><a name="l02639"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaa198d93b1538311c92a9b2fed6389357"> 2639</a></span> <a class="code" href="group__uves__pfits.html#gaa198d93b1538311c92a9b2fed6389357" title="Write the object keyword.">uves_pfits_set_badpixcorr</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *corr)</div>
-<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span> {</div>
-<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_QC_BADPIXCORR, corr),</div>
-<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_QC_BADPIXCORR);</div>
-<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>     </div>
-<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>   cleanup:</div>
-<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span> }</div>
-<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span> </div>
-<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span> cpl_error_code </div>
-<div class="line"><a name="l02657"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gad288bfc7118fd184d27b16ec9c45d5eb"> 2657</a></span> <a class="code" href="group__uves__pfits.html#gad288bfc7118fd184d27b16ec9c45d5eb" title="Write the reduction level.">uves_pfits_set_redlevel</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *redlevel)</div>
-<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span> {</div>
-<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_REDLEVEL, redlevel),</div>
-<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_REDLEVEL);</div>
-<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>     </div>
-<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>   cleanup:</div>
-<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span> }</div>
-<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span> </div>
-<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span> cpl_error_code </div>
-<div class="line"><a name="l02675"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga8e84ec2559f4f8b5c950ca701c852c61"> 2675</a></span> <a class="code" href="group__uves__pfits.html#ga8e84ec2559f4f8b5c950ca701c852c61" title="Write the status.">uves_pfits_set_status</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *status)</div>
-<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span> {</div>
-<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_STATUS, status),</div>
-<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_STATUS);</div>
-<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span>     </div>
-<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>   cleanup:</div>
-<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span> }</div>
-<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span> </div>
-<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span> cpl_error_code </div>
-<div class="line"><a name="l02693"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga0cb8c1549c5c2877e335249714025634"> 2693</a></span> <a class="code" href="group__uves__pfits.html#ga0cb8c1549c5c2877e335249714025634" title="Write the start time.">uves_pfits_set_starttime</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *start_time)</div>
-<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span> {</div>
-<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_START, start_time),</div>
-<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_START);</div>
-<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>     </div>
-<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>   cleanup:</div>
-<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span> }</div>
-<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span> cpl_error_code </div>
-<div class="line"><a name="l02710"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga62d8502b9cb1c8852a37f88499c88e26"> 2710</a></span> <a class="code" href="group__uves__pfits.html#ga62d8502b9cb1c8852a37f88499c88e26" title="Write the stop time.">uves_pfits_set_stoptime</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *stop_time)</div>
-<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span> {</div>
-<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_STOP, stop_time),</div>
-<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_STOP);</div>
-<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>     </div>
-<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>   cleanup:</div>
-<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span> }</div>
-<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span> </div>
-<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span> cpl_error_code </div>
-<div class="line"><a name="l02728"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga1dcf84ae52c90eecc51ca448a63cfc5e"> 2728</a></span> <a class="code" href="group__uves__pfits.html#ga1dcf84ae52c90eecc51ca448a63cfc5e" title="Write the bunit keyword.">uves_pfits_set_bunit</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *bunit)</div>
-<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span> {</div>
-<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_BUNIT, bunit),</div>
-<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_BUNIT);</div>
-<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>     </div>
-<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>   cleanup:</div>
-<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span> }</div>
-<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span> </div>
-<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span> cpl_error_code </div>
-<div class="line"><a name="l02746"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gace68beef266360129dce0860c4fb1731"> 2746</a></span> <a class="code" href="group__uves__pfits.html#gace68beef266360129dce0860c4fb1731" title="Write the bscale keyword.">uves_pfits_set_bscale</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">double</span> bscale)</div>
-<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span> {</div>
-<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_BSCALE, bscale),</div>
-<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_BSCALE);</div>
-<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>     </div>
-<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>   cleanup:</div>
-<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span> }</div>
-<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span> </div>
-<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span> </div>
-<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span> cpl_error_code </div>
-<div class="line"><a name="l02765"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gad9f2f8d54f1b6708126bc62b45bc7d74"> 2765</a></span> <a class="code" href="group__uves__pfits.html#gad9f2f8d54f1b6708126bc62b45bc7d74" title="Write the tunit keyword.">uves_pfits_set_tunit_no</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">int</span> col_no, <span class="keyw [...]
-<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span> {</div>
-<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>    <span class="keywordtype">char</span> key_name[20];</div>
-<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>    sprintf(key_name,<span class="stringliteral">"%s%d"</span>,UVES_TUNIT,col_no);</div>
-<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Filling key %s with value %s"</span>,key_name,tunit);</div>
-<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, key_name, tunit),</div>
-<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, key_name);</div>
-<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>     </div>
-<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span>   cleanup:</div>
-<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span> }</div>
-<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span> </div>
-<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span> cpl_error_code </div>
-<div class="line"><a name="l02786"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaf0f096e9615abba54e8df7068b2e7541"> 2786</a></span> <a class="code" href="group__uves__pfits.html#gaf0f096e9615abba54e8df7068b2e7541" title="Write the bunit keyword.">uves_pfits_set_bunit_no</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">int</span> axis_no, <span class="key [...]
-<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span> {</div>
-<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_BUNIT, bunit),</div>
-<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_BUNIT);</div>
-<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>     </div>
-<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>   cleanup:</div>
-<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span> }</div>
-<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span> </div>
-<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span> cpl_error_code </div>
-<div class="line"><a name="l02804"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gac948997f6142c218334d0cb70a4eeabc"> 2804</a></span> <a class="code" href="group__uves__pfits.html#gac948997f6142c218334d0cb70a4eeabc" title="Write the ctype1 keyword.">uves_pfits_set_ctype1</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *ctype1)</div>
-<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span> {</div>
-<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_CTYPE1, ctype1),</div>
-<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_CTYPE1);</div>
-<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span>     </div>
-<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>   cleanup:</div>
-<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span> }</div>
-<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02820"></a><span class="lineno"> 2820</span> cpl_error_code </div>
-<div class="line"><a name="l02821"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga1644b60894010bfaa365370ff6851aaf"> 2821</a></span> <a class="code" href="group__uves__pfits.html#ga1644b60894010bfaa365370ff6851aaf" title="Write the ctype2 keyword.">uves_pfits_set_ctype2</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *ctype2)</div>
-<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span> {</div>
-<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_CTYPE2, ctype2),</div>
-<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_CTYPE2);</div>
-<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span>     </div>
-<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span>   cleanup:</div>
-<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span> }</div>
-<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span> </div>
-<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span> </div>
-<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span> </div>
-<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span> cpl_error_code </div>
-<div class="line"><a name="l02841"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaf22ae9bd0d4e3492b1595f49ec00edc8"> 2841</a></span> <a class="code" href="group__uves__pfits.html#gaf22ae9bd0d4e3492b1595f49ec00edc8" title="Write the cunit1 keyword.">uves_pfits_set_cunit1</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *cunit1)</div>
-<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span> {</div>
-<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_CUNIT1, cunit1),</div>
-<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_CUNIT1);</div>
-<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span>     </div>
-<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span>   cleanup:</div>
-<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span> }</div>
-<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span> </div>
-<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span> cpl_error_code </div>
-<div class="line"><a name="l02859"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga6bef11d061318a2656e16fb83717965b"> 2859</a></span> <a class="code" href="group__uves__pfits.html#ga6bef11d061318a2656e16fb83717965b" title="Write the cunit2 keyword.">uves_pfits_set_cunit2</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *cunit2)</div>
-<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span> {</div>
-<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(plist, UVES_CUNIT2, cunit2),</div>
-<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_CUNIT2);</div>
-<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span>     </div>
-<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>   cleanup:</div>
-<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span> }</div>
-<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span> </div>
-<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span> cpl_error_code </div>
-<div class="line"><a name="l02877"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaaed14627f7b8206cc8970cd1f787a6db"> 2877</a></span> <a class="code" href="group__uves__pfits.html#gaaed14627f7b8206cc8970cd1f787a6db" title="Write the crval1 keyword.">uves_pfits_set_crval1</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> crval1)</div>
-<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span> {</div>
-<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_CRVAL1, crval1),</div>
-<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_CRVAL1);</div>
-<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span>     </div>
-<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span>   cleanup:</div>
-<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span> }</div>
-<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span> </div>
-<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span> cpl_error_code </div>
-<div class="line"><a name="l02895"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga510ee409ec059fdbd8991d88a7639152"> 2895</a></span> <a class="code" href="group__uves__pfits.html#ga510ee409ec059fdbd8991d88a7639152" title="Write the crval2 keyword.">uves_pfits_set_crval2</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> crval2)</div>
-<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span> {</div>
-<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_CRVAL2, crval2),</div>
-<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_CRVAL2);</div>
-<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>     </div>
-<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>   cleanup:</div>
-<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span> }</div>
-<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span> cpl_error_code </div>
-<div class="line"><a name="l02912"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga0fb41e9ccebfde88e71dcd6ed2dff570"> 2912</a></span> <a class="code" href="group__uves__pfits.html#ga0fb41e9ccebfde88e71dcd6ed2dff570" title="Write the crpix1 keyword.">uves_pfits_set_crpix1</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> crpix1)</div>
-<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span> {</div>
-<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_CRPIX1, crpix1),</div>
-<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_CRPIX1);</div>
-<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span>     </div>
-<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span>   cleanup:</div>
-<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span> }</div>
-<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span> </div>
-<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span> cpl_error_code </div>
-<div class="line"><a name="l02930"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaf6964f0063821d3f357125f149f87367"> 2930</a></span> <a class="code" href="group__uves__pfits.html#gaf6964f0063821d3f357125f149f87367" title="Write the crpix2 keyword.">uves_pfits_set_crpix2</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> crpix2)</div>
-<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span> {</div>
-<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_CRPIX2, crpix2),</div>
-<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_CRPIX2);</div>
-<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>     </div>
-<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>   cleanup:</div>
-<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span> }</div>
-<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span> cpl_error_code </div>
-<div class="line"><a name="l02947"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga0d13232557903e763483cc57b4cfa0c4"> 2947</a></span> <a class="code" href="group__uves__pfits.html#ga0d13232557903e763483cc57b4cfa0c4" title="Write the cdelt1 keyword.">uves_pfits_set_cdelt1</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> cdelt1)</div>
-<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span> {</div>
-<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_CDELT1, cdelt1),</div>
-<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_CDELT1);</div>
-<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span>     </div>
-<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>   cleanup:</div>
-<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span> }</div>
-<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span> </div>
-<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l02965"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga18d5d37d2b633d137b3c256e9e61c029"> 2965</a></span> <a class="code" href="group__uves__pfits.html#ga18d5d37d2b633d137b3c256e9e61c029" title="Write the ccfposmax keyword (what is it?)">uves_flames_pfits_set_ccfposmax</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">double</span> ccfposmax)</div>
-<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span> {</div>
-<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, FLAMES_CCFPOSMAX, ccfposmax),</div>
-<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, FLAMES_CCFPOSMAX);</div>
-<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span> </div>
-<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>   cleanup:</div>
-<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span> }</div>
-<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span> </div>
-<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span> cpl_error_code </div>
-<div class="line"><a name="l02983"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga80ad6ea5e902d3cc3a1f3745035e528e"> 2983</a></span> <a class="code" href="group__uves__pfits.html#ga80ad6ea5e902d3cc3a1f3745035e528e" title="Write the cdelt2 keyword.">uves_pfits_set_cdelt2</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> cdelt2)</div>
-<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span> {</div>
-<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, UVES_CDELT2, cdelt2),</div>
-<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_CDELT2);</div>
-<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>     </div>
-<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>   cleanup:</div>
-<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span> }</div>
-<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span> </div>
-<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l03000"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga3a62ab3d0a3cbff46e6587757c951c7d"> 3000</a></span> <a class="code" href="group__uves__pfits.html#ga3a62ab3d0a3cbff46e6587757c951c7d" title="Write the 2d extractino slit length.">uves_pfits_set_hs</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> hs)</div>
-<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span> {</div>
-<div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23" title="Update a property list with a integer value.">uves_propertylist_update_int</a>(plist, UVES_HS, hs),</div>
-<div class="line"><a name="l03003"></a><span class="lineno"> 3003</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, UVES_HS);</div>
-<div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>     </div>
-<div class="line"><a name="l03005"></a><span class="lineno"> 3005</span>   cleanup:</div>
-<div class="line"><a name="l03006"></a><span class="lineno"> 3006</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span> }</div>
-<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span> </div>
-<div class="line"><a name="l03009"></a><span class="lineno"> 3009</span> </div>
-<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03018"></a><span class="lineno"> 3018</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03019"></a><span class="lineno"> 3019</span> cpl_error_code </div>
-<div class="line"><a name="l03020"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga343861c33e84f1358c3235d41e8474b8"> 3020</a></span> <a class="code" href="group__uves__pfits.html#ga343861c33e84f1358c3235d41e8474b8" title="Write the wstart keyword.">uves_pfits_set_wstart</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> order, <span class="keywordtype">double</span> wstart)</div>
-<div class="line"><a name="l03021"></a><span class="lineno"> 3021</span> {</div>
-<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>     <span class="keywordtype">char</span> *wstart_string = NULL;</div>
-<div class="line"><a name="l03023"></a><span class="lineno"> 3023</span> </div>
-<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span>     assure (1 <= order && order <= 99, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>         <span class="stringliteral">"Illegal order number: %d. Allowed range is 1 to 99"</span>, order);</div>
-<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>     </div>
-<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>     <span class="comment">/* allocate room for two digits and '\0' */</span></div>
-<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span>     wstart_string = cpl_malloc( strlen(UVES_WSTART) + 2 + 1);  </div>
-<div class="line"><a name="l03029"></a><span class="lineno"> 3029</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( wstart_string );</div>
-<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span> </div>
-<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span>     snprintf(wstart_string, strlen(UVES_WSTART)+2+1, UVES_WSTART <span class="stringliteral">"%d"</span>, order);</div>
-<div class="line"><a name="l03032"></a><span class="lineno"> 3032</span>     </div>
-<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, wstart_string, wstart ),</div>
-<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span>        <span class="stringliteral">"Error updating product header"</span>);</div>
-<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span>         </div>
-<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>   cleanup:</div>
-<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span>     cpl_free(wstart_string);</div>
-<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span> }</div>
-<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span> </div>
-<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span> </div>
-<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span> </div>
-<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l03052"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203"> 3052</a></span> <a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203" title="Read the wstart keyword.">uves_pfits_get_wstart</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> order)</div>
-<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span> {</div>
-<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span>     <span class="keywordtype">double</span> returnvalue;</div>
-<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span>     <span class="keywordtype">char</span> *wstart = NULL;</div>
-<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span> </div>
-<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span>     assure (1 <= order && order <= 99, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span>         <span class="stringliteral">"Illegal order number: %d. Allowed range is 1 to 99"</span>, order);</div>
-<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span>     </div>
-<div class="line"><a name="l03060"></a><span class="lineno"> 3060</span>     <span class="comment">/* allocate room for two digits and '\0' */</span></div>
-<div class="line"><a name="l03061"></a><span class="lineno"> 3061</span>     wstart = cpl_malloc( strlen(UVES_WSTART) + 2 + 1);  </div>
-<div class="line"><a name="l03062"></a><span class="lineno"> 3062</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( wstart );</div>
-<div class="line"><a name="l03063"></a><span class="lineno"> 3063</span>     </div>
-<div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>     snprintf(wstart, strlen(UVES_WSTART)+2+1, UVES_WSTART <span class="stringliteral">"%d"</span>, order);</div>
-<div class="line"><a name="l03065"></a><span class="lineno"> 3065</span>     </div>
-<div class="line"><a name="l03066"></a><span class="lineno"> 3066</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, wstart, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l03067"></a><span class="lineno"> 3067</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, wstart);</div>
-<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span>     </div>
-<div class="line"><a name="l03069"></a><span class="lineno"> 3069</span>   cleanup:</div>
-<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span>     cpl_free(wstart);</div>
-<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span> }</div>
-<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span> cpl_error_code </div>
-<div class="line"><a name="l03083"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga30c035689f06d716cca55250181f9956"> 3083</a></span> <a class="code" href="group__uves__pfits.html#ga30c035689f06d716cca55250181f9956" title="Write the wend keyword.">uves_pfits_set_wend</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> order, <span class="keywordtype">double</span> wend)</div>
-<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span> {</div>
-<div class="line"><a name="l03085"></a><span class="lineno"> 3085</span>     <span class="keywordtype">char</span> *wend_string = NULL;</div>
-<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span> </div>
-<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span>     assure (1 <= order && order <= 99, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l03088"></a><span class="lineno"> 3088</span>         <span class="stringliteral">"Illegal order number: %d. Allowed range is 1 to 99"</span>, order);</div>
-<div class="line"><a name="l03089"></a><span class="lineno"> 3089</span>     </div>
-<div class="line"><a name="l03090"></a><span class="lineno"> 3090</span>     <span class="comment">/* allocate room for two digits and '\0' */</span></div>
-<div class="line"><a name="l03091"></a><span class="lineno"> 3091</span>     wend_string = cpl_malloc( strlen(UVES_WEND) + 2 + 1);  </div>
-<div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( wend_string );</div>
-<div class="line"><a name="l03093"></a><span class="lineno"> 3093</span> </div>
-<div class="line"><a name="l03094"></a><span class="lineno"> 3094</span>     snprintf(wend_string, strlen(UVES_WEND)+2+1, UVES_WEND <span class="stringliteral">"%d"</span>, order);</div>
-<div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>     </div>
-<div class="line"><a name="l03096"></a><span class="lineno"> 3096</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(plist, wend_string, wend ),</div>
-<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span>        <span class="stringliteral">"Error updating product header"</span>);</div>
-<div class="line"><a name="l03098"></a><span class="lineno"> 3098</span>         </div>
-<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>   cleanup:</div>
-<div class="line"><a name="l03100"></a><span class="lineno"> 3100</span>     cpl_free(wend_string);</div>
-<div class="line"><a name="l03101"></a><span class="lineno"> 3101</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span> }</div>
-<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span> </div>
-<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span> </div>
-<div class="line"><a name="l03105"></a><span class="lineno"> 3105</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span> </div>
-<div class="line"><a name="l03114"></a><span class="lineno"> 3114</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l03115"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595"> 3115</a></span> <a class="code" href="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595" title="Read the wend keyword.">uves_pfits_get_wend</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> order)</div>
-<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span> {</div>
-<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>     <span class="keywordtype">double</span> returnvalue;</div>
-<div class="line"><a name="l03118"></a><span class="lineno"> 3118</span>     <span class="keywordtype">char</span> *wend = NULL;</div>
-<div class="line"><a name="l03119"></a><span class="lineno"> 3119</span> </div>
-<div class="line"><a name="l03120"></a><span class="lineno"> 3120</span>     assure (1 <= order && order <= 99, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l03121"></a><span class="lineno"> 3121</span>         <span class="stringliteral">"Illegal order number: %d. Allowed range is 1 to 99"</span>, order);</div>
-<div class="line"><a name="l03122"></a><span class="lineno"> 3122</span>     </div>
-<div class="line"><a name="l03123"></a><span class="lineno"> 3123</span>     <span class="comment">/* allocate room for two digits and '\0' */</span></div>
-<div class="line"><a name="l03124"></a><span class="lineno"> 3124</span>     wend = cpl_malloc( strlen(UVES_WEND) + 2 + 1);  </div>
-<div class="line"><a name="l03125"></a><span class="lineno"> 3125</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( wend );</div>
-<div class="line"><a name="l03126"></a><span class="lineno"> 3126</span>     </div>
-<div class="line"><a name="l03127"></a><span class="lineno"> 3127</span>     snprintf(wend, strlen(UVES_WEND)+2+1, UVES_WEND <span class="stringliteral">"%d"</span>, order);</div>
-<div class="line"><a name="l03128"></a><span class="lineno"> 3128</span>     </div>
-<div class="line"><a name="l03129"></a><span class="lineno"> 3129</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, wend, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l03130"></a><span class="lineno"> 3130</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, wend);</div>
-<div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>     </div>
-<div class="line"><a name="l03132"></a><span class="lineno"> 3132</span>   cleanup:</div>
-<div class="line"><a name="l03133"></a><span class="lineno"> 3133</span>     cpl_free(wend);</div>
-<div class="line"><a name="l03134"></a><span class="lineno"> 3134</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l03135"></a><span class="lineno"> 3135</span> }</div>
-<div class="line"><a name="l03136"></a><span class="lineno"> 3136</span> </div>
-<div class="line"><a name="l03137"></a><span class="lineno"> 3137</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03143"></a><span class="lineno"> 3143</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03144"></a><span class="lineno"> 3144</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l03145"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gaad1abe1801ca189d25b0f9ffdcf1f078"> 3145</a></span> <a class="code" href="group__uves__pfits.html#gaad1abe1801ca189d25b0f9ffdcf1f078" title="Get pixel scale.">uves_pfits_get_pixelscale</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist)</div>
-<div class="line"><a name="l03146"></a><span class="lineno"> 3146</span> {</div>
-<div class="line"><a name="l03147"></a><span class="lineno"> 3147</span>     <span class="keywordtype">double</span> pixelscale = 0;</div>
-<div class="line"><a name="l03148"></a><span class="lineno"> 3148</span>     </div>
-<div class="line"><a name="l03149"></a><span class="lineno"> 3149</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_PIXELSCALE, CPL_TYPE_DOUBLE, &pixelscale),</div>
-<div class="line"><a name="l03150"></a><span class="lineno"> 3150</span>            <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_PIXELSCALE);</div>
-<div class="line"><a name="l03151"></a><span class="lineno"> 3151</span>     </div>
-<div class="line"><a name="l03152"></a><span class="lineno"> 3152</span>   cleanup:</div>
-<div class="line"><a name="l03153"></a><span class="lineno"> 3153</span>     <span class="keywordflow">return</span> pixelscale;</div>
-<div class="line"><a name="l03154"></a><span class="lineno"> 3154</span> }</div>
-<div class="line"><a name="l03155"></a><span class="lineno"> 3155</span> </div>
-<div class="line"><a name="l03156"></a><span class="lineno"> 3156</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03163"></a><span class="lineno"> 3163</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* </div>
-<div class="line"><a name="l03164"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gadb0a05528f0429187a6af97bcb3f4a25"> 3164</a></span> <a class="code" href="group__uves__pfits.html#gadb0a05528f0429187a6af97bcb3f4a25" title="Get image slicer name.">uves_pfits_get_slit1_name</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span> {</div>
-<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* returnvalue = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>     </div>
-<div class="line"><a name="l03168"></a><span class="lineno"> 3168</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, UVES_SLIT1NAME, CPL_TYPE_STRING, &returnvalue), </div>
-<div class="line"><a name="l03169"></a><span class="lineno"> 3169</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_SLIT1NAME);</div>
-<div class="line"><a name="l03170"></a><span class="lineno"> 3170</span>     </div>
-<div class="line"><a name="l03171"></a><span class="lineno"> 3171</span>   cleanup:</div>
-<div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l03173"></a><span class="lineno"> 3173</span> }</div>
-<div class="line"><a name="l03174"></a><span class="lineno"> 3174</span> </div>
-<div class="line"><a name="l03175"></a><span class="lineno"> 3175</span> </div>
-<div class="line"><a name="l03176"></a><span class="lineno"> 3176</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03186"></a><span class="lineno"> 3186</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03187"></a><span class="lineno"> 3187</span> </div>
-<div class="line"><a name="l03188"></a><span class="lineno"> 3188</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l03189"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gada5bfd486b316634b1d107ea5fc2cd12"> 3189</a></span> <a class="code" href="group__uves__pfits.html#gada5bfd486b316634b1d107ea5fc2cd12" title="Read the slit length in pixels.">uves_pfits_get_slitlength_pixels</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, </div>
-<div class="line"><a name="l03190"></a><span class="lineno"> 3190</span>                                  <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l03191"></a><span class="lineno"> 3191</span> {</div>
-<div class="line"><a name="l03192"></a><span class="lineno"> 3192</span>     <span class="keywordtype">double</span> slitlength_pixels = 0;         <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l03193"></a><span class="lineno"> 3193</span>     </div>
-<div class="line"><a name="l03194"></a><span class="lineno"> 3194</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *slicer_name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l03195"></a><span class="lineno"> 3195</span>     <span class="keywordtype">double</span> slitlength_arcsecs = 0;        <span class="comment">/* Slit length in arc-seconds */</span></div>
-<div class="line"><a name="l03196"></a><span class="lineno"> 3196</span> </div>
-<div class="line"><a name="l03197"></a><span class="lineno"> 3197</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( slicer_name = <a class="code" href="group__uves__pfits.html#gadb0a05528f0429187a6af97bcb3f4a25" title="Get image slicer name.">uves_pfits_get_slit1_name</a>(plist),</div>
-<div class="line"><a name="l03198"></a><span class="lineno"> 3198</span>        <span class="stringliteral">"Could not read slicer id"</span>);</div>
-<div class="line"><a name="l03199"></a><span class="lineno"> 3199</span> </div>
-<div class="line"><a name="l03200"></a><span class="lineno"> 3200</span>     <span class="keywordflow">if</span> ( strncmp(slicer_name, <span class="stringliteral">"FREE"</span>, 4) != 0)</div>
-<div class="line"><a name="l03201"></a><span class="lineno"> 3201</span>     {</div>
-<div class="line"><a name="l03202"></a><span class="lineno"> 3202</span>         <span class="comment">/* Slicer inserted */</span></div>
-<div class="line"><a name="l03203"></a><span class="lineno"> 3203</span>         <span class="keywordflow">if</span>      (strncmp(slicer_name, <span class="stringliteral">"SLIC#1"</span>, 6) == 0) slitlength_arcsecs = 8.0;</div>
-<div class="line"><a name="l03204"></a><span class="lineno"> 3204</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strncmp(slicer_name, <span class="stringliteral">"SLIC#2"</span>, 6) == 0) slitlength_arcsecs = 8.0;</div>
-<div class="line"><a name="l03205"></a><span class="lineno"> 3205</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strncmp(slicer_name, <span class="stringliteral">"SLIC#3"</span>, 6) == 0) slitlength_arcsecs = 10.0;</div>
-<div class="line"><a name="l03206"></a><span class="lineno"> 3206</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03207"></a><span class="lineno"> 3207</span>         {</div>
-<div class="line"><a name="l03208"></a><span class="lineno"> 3208</span>             assure( <span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Unrecognized slicer name: '%s'. "</span></div>
-<div class="line"><a name="l03209"></a><span class="lineno"> 3209</span>                 <span class="stringliteral">"Recognized names are 'FREE', 'SLIC#1', 'SLIC#2', 'SLIC#3'."</span>, </div>
-<div class="line"><a name="l03210"></a><span class="lineno"> 3210</span>                 slicer_name);</div>
-<div class="line"><a name="l03211"></a><span class="lineno"> 3211</span>         }</div>
-<div class="line"><a name="l03212"></a><span class="lineno"> 3212</span>     }</div>
-<div class="line"><a name="l03213"></a><span class="lineno"> 3213</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03214"></a><span class="lineno"> 3214</span>     {</div>
-<div class="line"><a name="l03215"></a><span class="lineno"> 3215</span>         <span class="comment">/*  slicer_name = 'FREE', no slicer */</span></div>
-<div class="line"><a name="l03216"></a><span class="lineno"> 3216</span> </div>
-<div class="line"><a name="l03217"></a><span class="lineno"> 3217</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(</div>
-<div class="line"><a name="l03218"></a><span class="lineno"> 3218</span>                plist, UVES_SLITLENGTH(chip), CPL_TYPE_DOUBLE, &slitlength_arcsecs),</div>
-<div class="line"><a name="l03219"></a><span class="lineno"> 3219</span>            <span class="stringliteral">"Error reading keyword '%s'"</span>, UVES_SLITLENGTH(chip));</div>
-<div class="line"><a name="l03220"></a><span class="lineno"> 3220</span>     }</div>
-<div class="line"><a name="l03221"></a><span class="lineno"> 3221</span> </div>
-<div class="line"><a name="l03222"></a><span class="lineno"> 3222</span>     <span class="comment">/* Convert from arcseconds to pixels */</span></div>
-<div class="line"><a name="l03223"></a><span class="lineno"> 3223</span>     {</div>
-<div class="line"><a name="l03224"></a><span class="lineno"> 3224</span>     <span class="keywordtype">double</span> pixelscale;         <span class="comment">/* Arcseconds per pixel */</span></div>
-<div class="line"><a name="l03225"></a><span class="lineno"> 3225</span>     <span class="keywordtype">int</span> binx;                  <span class="comment">/* The x-binning of the raw image </span></div>
-<div class="line"><a name="l03226"></a><span class="lineno"> 3226</span> <span class="comment">                      is the y-binning of the extracted/rotated image */</span></div>
-<div class="line"><a name="l03227"></a><span class="lineno"> 3227</span>     </div>
-<div class="line"><a name="l03228"></a><span class="lineno"> 3228</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( pixelscale = <a class="code" href="group__uves__pfits.html#gaad1abe1801ca189d25b0f9ffdcf1f078" title="Get pixel scale.">uves_pfits_get_pixelscale</a>(plist) );</div>
-<div class="line"><a name="l03229"></a><span class="lineno"> 3229</span> </div>
-<div class="line"><a name="l03230"></a><span class="lineno"> 3230</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( binx = <a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(plist),</div>
-<div class="line"><a name="l03231"></a><span class="lineno"> 3231</span>            <span class="stringliteral">"Could not get x-binning"</span>);</div>
-<div class="line"><a name="l03232"></a><span class="lineno"> 3232</span> </div>
-<div class="line"><a name="l03233"></a><span class="lineno"> 3233</span>     slitlength_pixels = slitlength_arcsecs / (pixelscale * binx);</div>
-<div class="line"><a name="l03234"></a><span class="lineno"> 3234</span>     }</div>
-<div class="line"><a name="l03235"></a><span class="lineno"> 3235</span>     </div>
-<div class="line"><a name="l03236"></a><span class="lineno"> 3236</span>   cleanup:</div>
-<div class="line"><a name="l03237"></a><span class="lineno"> 3237</span>     <span class="keywordflow">return</span> slitlength_pixels;</div>
-<div class="line"><a name="l03238"></a><span class="lineno"> 3238</span> }</div>
-<div class="line"><a name="l03239"></a><span class="lineno"> 3239</span> </div>
-<div class="line"><a name="l03240"></a><span class="lineno"> 3240</span> </div>
-<div class="line"><a name="l03241"></a><span class="lineno"> 3241</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03247"></a><span class="lineno"> 3247</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03248"></a><span class="lineno"> 3248</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l03249"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#gae70f662017b21fd4d83fa9d7b16fec50"> 3249</a></span> <a class="code" href="group__uves__pfits.html#gae70f662017b21fd4d83fa9d7b16fec50" title="read the plate id">uves_flames_pfits_get_plateid</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header)</div>
-<div class="line"><a name="l03250"></a><span class="lineno"> 3250</span> {</div>
-<div class="line"><a name="l03251"></a><span class="lineno"> 3251</span>     <span class="keywordtype">int</span> plate_no;</div>
-<div class="line"><a name="l03252"></a><span class="lineno"> 3252</span>     </div>
-<div class="line"><a name="l03253"></a><span class="lineno"> 3253</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(raw_header,</div>
-<div class="line"><a name="l03254"></a><span class="lineno"> 3254</span>                   FLAMES_NEWPLATEID))</div>
-<div class="line"><a name="l03255"></a><span class="lineno"> 3255</span>     {</div>
-<div class="line"><a name="l03256"></a><span class="lineno"> 3256</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(raw_header, FLAMES_NEWPLATEID, </div>
-<div class="line"><a name="l03257"></a><span class="lineno"> 3257</span>                        CPL_TYPE_INT, &plate_no), </div>
-<div class="line"><a name="l03258"></a><span class="lineno"> 3258</span>            <span class="stringliteral">"Error reading keyword '%s'"</span>, FLAMES_NEWPLATEID);</div>
-<div class="line"><a name="l03259"></a><span class="lineno"> 3259</span>     }</div>
-<div class="line"><a name="l03260"></a><span class="lineno"> 3260</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(raw_header, </div>
-<div class="line"><a name="l03261"></a><span class="lineno"> 3261</span>                       FLAMES_OBS_PLATE_ID))</div>
-<div class="line"><a name="l03262"></a><span class="lineno"> 3262</span>     {</div>
-<div class="line"><a name="l03263"></a><span class="lineno"> 3263</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(raw_header, FLAMES_OBS_PLATE_ID, </div>
-<div class="line"><a name="l03264"></a><span class="lineno"> 3264</span>                        CPL_TYPE_INT, &plate_no),</div>
-<div class="line"><a name="l03265"></a><span class="lineno"> 3265</span>            <span class="stringliteral">"Error reading keyword '%s'"</span>, FLAMES_NEWPLATEID);</div>
-<div class="line"><a name="l03266"></a><span class="lineno"> 3266</span>     }</div>
-<div class="line"><a name="l03267"></a><span class="lineno"> 3267</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(raw_header,</div>
-<div class="line"><a name="l03268"></a><span class="lineno"> 3268</span>                        FLAMES_INS_SHUT09))</div>
-<div class="line"><a name="l03269"></a><span class="lineno"> 3269</span>     {</div>
-<div class="line"><a name="l03270"></a><span class="lineno"> 3270</span>         plate_no = 1;</div>
-<div class="line"><a name="l03271"></a><span class="lineno"> 3271</span>     }</div>
-<div class="line"><a name="l03272"></a><span class="lineno"> 3272</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(raw_header,</div>
-<div class="line"><a name="l03273"></a><span class="lineno"> 3273</span>                        FLAMES_INS_SHUT10))</div>
-<div class="line"><a name="l03274"></a><span class="lineno"> 3274</span>     {</div>
-<div class="line"><a name="l03275"></a><span class="lineno"> 3275</span>         plate_no = 2;</div>
-<div class="line"><a name="l03276"></a><span class="lineno"> 3276</span>     }</div>
-<div class="line"><a name="l03277"></a><span class="lineno"> 3277</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03278"></a><span class="lineno"> 3278</span>     {</div>
-<div class="line"><a name="l03279"></a><span class="lineno"> 3279</span>         plate_no = 0;</div>
-<div class="line"><a name="l03280"></a><span class="lineno"> 3280</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Missing raw header keywords %s, %s, %s and %s, "</span></div>
-<div class="line"><a name="l03281"></a><span class="lineno"> 3281</span>                  <span class="stringliteral">"setting plate number = %d"</span>,</div>
-<div class="line"><a name="l03282"></a><span class="lineno"> 3282</span>                  FLAMES_NEWPLATEID, </div>
-<div class="line"><a name="l03283"></a><span class="lineno"> 3283</span>                  FLAMES_OBS_PLATE_ID,</div>
-<div class="line"><a name="l03284"></a><span class="lineno"> 3284</span>                  FLAMES_INS_SHUT09,</div>
-<div class="line"><a name="l03285"></a><span class="lineno"> 3285</span>                  FLAMES_INS_SHUT10,</div>
-<div class="line"><a name="l03286"></a><span class="lineno"> 3286</span>                  plate_no);</div>
-<div class="line"><a name="l03287"></a><span class="lineno"> 3287</span>     }</div>
-<div class="line"><a name="l03288"></a><span class="lineno"> 3288</span>     </div>
-<div class="line"><a name="l03289"></a><span class="lineno"> 3289</span>   cleanup:</div>
-<div class="line"><a name="l03290"></a><span class="lineno"> 3290</span>     <span class="keywordflow">return</span> plate_no;</div>
-<div class="line"><a name="l03291"></a><span class="lineno"> 3291</span> }</div>
-<div class="line"><a name="l03292"></a><span class="lineno"> 3292</span> </div>
-<div class="line"><a name="l03293"></a><span class="lineno"> 3293</span> </div>
-<div class="line"><a name="l03294"></a><span class="lineno"> 3294</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03300"></a><span class="lineno"> 3300</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03301"></a><span class="lineno"> 3301</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l03302"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga7bcb4bda625a9aee0a93daaa409e1320"> 3302</a></span> <a class="code" href="group__uves__pfits.html#ga7bcb4bda625a9aee0a93daaa409e1320" title="Find out the integration time.">uves_flames_pfits_get_dit</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist)</div>
-<div class="line"><a name="l03303"></a><span class="lineno"> 3303</span> {</div>
-<div class="line"><a name="l03304"></a><span class="lineno"> 3304</span>     <span class="keywordtype">double</span> returnvalue = 0;</div>
-<div class="line"><a name="l03305"></a><span class="lineno"> 3305</span>     </div>
-<div class="line"><a name="l03306"></a><span class="lineno"> 3306</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_property_value(plist, FLAMES_DIT, CPL_TYPE_DOUBLE, &returnvalue), </div>
-<div class="line"><a name="l03307"></a><span class="lineno"> 3307</span>        <span class="stringliteral">"Error reading keyword '%s'"</span>, FLAMES_DIT);</div>
-<div class="line"><a name="l03308"></a><span class="lineno"> 3308</span>     </div>
-<div class="line"><a name="l03309"></a><span class="lineno"> 3309</span>   cleanup:</div>
-<div class="line"><a name="l03310"></a><span class="lineno"> 3310</span>     <span class="keywordflow">return</span> returnvalue;</div>
-<div class="line"><a name="l03311"></a><span class="lineno"> 3311</span> }</div>
-<div class="line"><a name="l03312"></a><span class="lineno"> 3312</span> </div>
-<div class="line"><a name="l03313"></a><span class="lineno"> 3313</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03319"></a><span class="lineno"> 3319</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03320"></a><span class="lineno"> 3320</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l03321"></a><span class="lineno"><a class="code" href="group__uves__pfits.html#ga95b184c2af4a33cac829ff926b10138b"> 3321</a></span> <a class="code" href="group__uves__pfits.html#ga95b184c2af4a33cac829ff926b10138b" title="Write the plate number.">uves_flames_pfits_set_newplateid</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> plate_no)</div>
-<div class="line"><a name="l03322"></a><span class="lineno"> 3322</span> {</div>
-<div class="line"><a name="l03323"></a><span class="lineno"> 3323</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23" title="Update a property list with a integer value.">uves_propertylist_update_int</a>(plist, FLAMES_NEWPLATEID, plate_no),</div>
-<div class="line"><a name="l03324"></a><span class="lineno"> 3324</span>        <span class="stringliteral">"Error writing keyword '%s'"</span>, FLAMES_NEWPLATEID);</div>
-<div class="line"><a name="l03325"></a><span class="lineno"> 3325</span>   cleanup:</div>
-<div class="line"><a name="l03326"></a><span class="lineno"> 3326</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l03327"></a><span class="lineno"> 3327</span> }</div>
-<div class="line"><a name="l03328"></a><span class="lineno"> 3328</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__pfits_8h_source.html b/html/uves__pfits_8h_source.html
deleted file mode 100644
index 2334331..0000000
--- a/html/uves__pfits_8h_source.html
+++ /dev/null
@@ -1,753 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_pfits.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_pfits.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2002, 2003, 2004, 2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-04-16 15:46:18 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.88 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.87  2010/11/25 12:48:14  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * added UVES_FNOISE</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.86  2010/09/29 15:03:18  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * added DTIME</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.85  2010/09/29 09:39:27  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * added UVES_DNOISE,UVES_BNOISE</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.84  2010/09/24 09:32:06  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.82  2010/06/01 13:29:58  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * defined UVES_TUNIT, uves_pfits_set_tunit_no(), uves_pfits_set_bunit_no()</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.81  2009/07/13 06:37:46  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * added uves_ccd_is_new()</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.80  2007/06/28 09:18:19  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added functions to write DPR keywords</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.79  2007/06/01 14:09:55  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Exported uves_pfits_get_pixelscale</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.78  2007/05/16 14:38:03  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * added uves_flames_pfits_get_ident & uves_flames_pfits_get_object</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.77  2007/05/04 08:53:49  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * added uves_flames_pfits_get_nflats</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.76  2007/05/03 15:21:35  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Added function to read wavecal offset</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.75  2007/04/26 13:19:42  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Added uves_pfits_set_ocs_simcal()</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.74  2007/04/25 08:37:19  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * added uves_pfits_get_origfile</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.73  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.72  2007/04/12 12:15:12  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Propagate keyword OS-EXPOI</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.71  2007/03/05 10:18:18  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Write 2d extraion slit length</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.70  2007/01/31 13:11:25  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Added SIMCAL accessor functions</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.69  2007/01/29 12:10:21  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Exported set_history_val() for usage by FLAMES</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.68  2007/01/26 12:33:57  amodigli</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * added function for common QC</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.67  2007/01/17 13:27:09  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Added BITPIX accessor function</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.66  2007/01/10 12:39:07  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Unified two get_plate_id functions</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.65  2006/12/27 13:55:29  amodigli</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * added flames_pfits_get_plate_id and some FLAMES_ defines for FIBER mode</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.64  2006/12/11 12:35:03  jmlarsen</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Fixed QC bugs</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.63  2006/12/07 08:25:09  jmlarsen</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Added uves_pfits_get_readspeed</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.62  2006/12/01 12:27:23  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Factored out FLAMES plate-id code</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.61  2006/10/24 14:05:46  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Added OBSPLATE</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.60  2006/10/10 11:29:24  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Added code to propagate TM-START</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.59  2006/10/05 06:50:23  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Renamed function format_is_new -> uves_format_is_new</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.58  2006/10/04 10:55:33  jmlarsen</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Added telescope lat-/longitude accessor functions</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.57  2006/09/27 13:14:17  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Added accessor functions for RA/DEC</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.56  2006/09/20 10:57:36  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Propagate DATAMEAN/DATAMED/DATARMS if present</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.55  2006/09/19 14:32:15  jmlarsen</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Minor doc. update</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.54  2006/09/19 06:42:49  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Added keywords</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.53  2006/08/24 11:37:14  jmlarsen</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.52  2006/08/18 10:14:04  jmlarsen</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Use legal FITS keywords for TRACEID/WINDOW/FABSORD/LABSORD</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.51  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.50  2006/08/16 14:24:03  jmlarsen</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Renamed UIT QC keyword</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Revision 1.49  2006/08/09 14:23:19  jmlarsen</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Removed unused function argument</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Revision 1.48  2006/08/07 11:32:14  jmlarsen</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Added comment</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Revision 1.47  2006/08/04 15:11:54  amodigli</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * ESO INS DET1 UIT-->ESO DET WIN1 UIT1</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Revision 1.46  2006/07/31 06:29:26  amodigli</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * added QC on stability test</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Revision 1.45  2006/07/14 12:24:49  jmlarsen</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Added conad, target name</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Revision 1.44  2006/06/22 08:54:28  jmlarsen</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Use proper keyword to read number of predicted orders</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Revision 1.43  2006/06/13 11:58:55  jmlarsen</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Bugfix: Use proper chipname keyword for REDL chip</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Revision 1.42  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> * Revision 1.41  2006/06/01 14:22:48  amodigli</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * moved format_is_new to c module and made it static</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> * Revision 1.40  2006/05/31 09:26:40  amodigli</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * fixed some problem dumping QC log</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> * Revision 1.39  2006/05/19 13:07:20  amodigli</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * added uves_pfits_get_slit3_x1encoder</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> * Revision 1.38  2006/05/09 15:43:13  amodigli</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * added useful key/functions</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> * Revision 1.37  2006/04/26 12:25:20  amodigli</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> * fixed a problem with ARCFILE keyword</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"> * Revision 1.36  2006/04/25 14:58:48  amodigli</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> * added paf creation functionalities</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> * Revision 1.35  2006/04/20 10:48:58  amodigli</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> * added uves_pfits_get_tpl_start</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> * Revision 1.34  2006/02/21 14:26:54  jmlarsen</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment"> * Revision 1.33  2006/01/17 13:05:58  jmlarsen</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment"> * Changed line table trace id keyword</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment"> * Revision 1.32  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="preprocessor">#ifndef UVES_PFITS_H</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PFITS_H</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment"> * Recipe DRS id</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="preprocessor">#define UVES_DRS_ID "ESO PRO REC1 DRS ID"</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment"> * Pre- and overscan keywords</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="comment">/* Use detector prefix 'ESO DET OUT4' for REDL chips, old format. Otherwise 'ESO DET OUT1' */</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="preprocessor">#define UVES_PRESCANX(new_format, chip) \</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="preprocessor"> ((!(new_format) && (chip) == UVES_CHIP_REDL) ? "ESO DET OUT4 PRSCX" : "ESO DET OUT1 PRSCX")</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PRESCANY(new_format, chip) \</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="preprocessor"> ((!(new_format) && (chip) == UVES_CHIP_REDL) ? "ESO DET OUT4 PRSCY" : "ESO DET OUT1 PRSCY")</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="preprocessor">#define UVES_OVRSCANX(new_format, chip) \</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="preprocessor"> ((!(new_format) && (chip) == UVES_CHIP_REDL) ? "ESO DET OUT4 OVSCX" : "ESO DET OUT1 OVSCX")</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_OVRSCANY(new_format, chip) \</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="preprocessor"> ((!(new_format) && (chip) == UVES_CHIP_REDL) ? "ESO DET OUT4 OVSCY" : "ESO DET OUT1 OVSCY")</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment">/* </span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment"> *  Readout noise, gain</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="preprocessor">#define UVES_RON(new_format, chip)  \</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="preprocessor"> ((!(new_format) && (chip) == UVES_CHIP_REDL) ? "ESO DET OUT4 RON"  : "ESO DET OUT1 RON")</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_GAIN(new_format, chip) \</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="preprocessor"> ((!(new_format) && (chip) == UVES_CHIP_REDL) ? "ESO DET OUT4 GAIN" : "ESO DET OUT1 GAIN")</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CONAD(new_format, chip) \</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="preprocessor"> ((!(new_format) && (chip) == UVES_CHIP_REDL) ? "ESO DET OUT4 CONAD" : "ESO DET OUT1 CONAD")</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="preprocessor">#define UVES_NX(new_format, chip) \</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="preprocessor"> ((!(new_format) && (chip) == UVES_CHIP_REDL) ? "ESO DET OUT4 NX" : "ESO DET OUT1 NX")</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_NY(new_format, chip) \</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="preprocessor"> ((!(new_format) && (chip) == UVES_CHIP_REDL) ? "ESO DET OUT4 NY" : "ESO DET OUT1 NY")</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="comment"> *  Exposure time</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="preprocessor">#define UVES_EXPTIME "EXPTIME"</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment"> *  User defined subintegration time</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="preprocessor">#define UVES_UIT(new_format)  "ESO DET WIN1 UIT1"</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="preprocessor"></span><span class="comment">/*#define UVES_QC_UIT(new_format, chip) \</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment">  ((!(new_format) && (chip) == UVES_CHIP_REDL) ? "ESO DET4 OUT4 UIT1"  : "ESO DET1 OUT1 UIT1")</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment">/* This is probably what we want to do (use the same keyword name for reading/writing):</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment">   #define UVES_QC_UIT(new_format, chip) \</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment">   ((chip) == UVES_CHIP_REDL ? "ESO DET WIN4 UIT1"  : "ESO DET WIN1 UIT1")</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment"></span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment">   but we do like MIDAS: </span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment"></span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment">   MIDAS uses the name ESO.DET1.WIN1.UIT1 when writing to the product header</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="preprocessor">#define UVES_QC_UIT(new_format, chip) \</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="preprocessor"> ((chip) == UVES_CHIP_REDL ? "ESO INS DET4 UIT"  : "ESO INS DET1 UIT")</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> </div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="comment"> *  Start time template</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="preprocessor">#define UVES_TPL_START "ESO TPL START"</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TMSTART "TM-START"     </span><span class="comment">/* MIDAS internal? */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="comment"> *  Airmass</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="preprocessor">#define UVES_AIRMASS_START "ESO TEL AIRM START"</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_AIRMASS_END   "ESO TEL AIRM END"</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_AIRMASS       "AIRMASS"</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment"> * Image type</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="preprocessor">#define UVES_IMAGETYP "IMAGETYP"</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="comment"> * Observation time</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="preprocessor">#define UVES_UTC "UTC"</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_UT "UT"</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_ST "ST"</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="comment"> * latitude/longitude</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="preprocessor">#define UVES_GEOLAT "ESO TEL GEOLAT"</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_GEOLON "ESO TEL GEOLON"</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment"> *  Extension name (new format)</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="preprocessor">#define UVES_EXTNAME "EXTNAME"</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="comment"> *  Observation date</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="preprocessor">#define UVES_MJDOBS "MJD-OBS"</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DATE "DATE"</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="comment">/* Observer id */</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="preprocessor">#define UVES_OS_EXPOI "OS-EXPOI"</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="comment"> *   Object coordinates</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="preprocessor">#define UVES_RA "RA"</span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DEC "DEC"</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment"> *   Object name</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="preprocessor">#define UVES_TARG_NAME "ESO OBS TARG NAME"</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment"> *  Binning factors</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="preprocessor">#define UVES_BINX "ESO DET WIN1 BINX"</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_BINY "ESO DET WIN1 BINY"</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment"> *  Arcseconds per pixel</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="preprocessor">#define UVES_PIXELSCALE "ESO INS PIXSCALE"</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="comment"> * Encoder steps</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="preprocessor">#define  UVES_ENCODER_REF1  "ESO INS SLIT3 X1ENC"</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <span class="preprocessor"></span><span class="preprocessor">#define  UVES_ENCODER_REF2  "ESO INS SLIT3 X2ENC"</span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="comment"> * Extra keys for bias and dark noise values</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="preprocessor">#define UVES_BNOISE "ESO BNOISE"</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DNOISE "ESO DNOISE"</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_FNOISE "ESO FNOISE"</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DTIME  "ESO DTIME"</span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="comment"> *  Slit name, length/width (arcseconds)</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> <span class="preprocessor">#define UVES_SLIT1NAME   "ESO INS SLIT1 NAME"</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_ARM(chip) (((chip) == UVES_CHIP_BLUE) ? "BLUE" : "RED")</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_ARMID(chip) (((chip) == UVES_CHIP_BLUE) ? "b" : "r")</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DETECTOR(chip) (((chip) == UVES_CHIP_BLUE) ? "EEV" : "MIT-LL")</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_SLITLENGTH(chip) \</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="preprocessor"> (((chip) == UVES_CHIP_BLUE) ? "ESO INS SLIT2 LEN" : "ESO INS SLIT3 LEN")</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_SLITWIDTH(chip) \</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="preprocessor"> (((chip) == UVES_CHIP_BLUE) ? "ESO INS SLIT2 WID" : "ESO INS SLIT3 WID")</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="comment"> *   Grating</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="preprocessor">#define UVES_GRATWLEN(chip) \</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> <span class="preprocessor"> (((chip) == UVES_CHIP_BLUE) ? "ESO INS GRAT1 WLEN" : "ESO INS GRAT2 WLEN")</span></div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_GRATID(chip) \</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> <span class="preprocessor"> (((chip) == UVES_CHIP_BLUE) ? "ESO INS GRAT1 ID"   : "ESO INS GRAT2 ID")</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_GRATNAME(chip) \</span></div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> <span class="preprocessor"> (((chip) == UVES_CHIP_BLUE) ? "ESO INS GRAT1 NAME" : "ESO INS GRAT2 NAME")</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> <span class="comment">  BLUE,old CHIP1 NAME</span></div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> <span class="comment">  BLUE,new CHIP1 NAME</span></div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> <span class="comment">  REDL,old CHIP2 NAME</span></div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> <span class="comment">  REDL,new CHIP2 NAME</span></div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> <span class="comment">  REDU,old CHIP1 NAME</span></div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="comment">  REDU,new CHIP1 NAME</span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <span class="preprocessor">#define UVES_CHIP_NAME(chip) \</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> <span class="preprocessor"> (((chip) == UVES_CHIP_REDL) ? "ESO DET CHIP2 NAME" : "ESO DET CHIP1 NAME")</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CHIP_ID(chip) \</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> <span class="preprocessor"> (((chip) == UVES_CHIP_REDL) ? "ESO DET CHIP2 ID"   : "ESO DET CHIP1 ID")</span></div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> <span class="comment">/* Is this correct? Do we really want to use different</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="comment">   FITS keywords when reading inputs and writing QC files?</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="comment"></span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="comment">   No, this is wrong:</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> <span class="comment"></span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> <span class="comment">#define UVES_QC_CHIP_NAME(chip) \</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="comment"> (((chip) == UVES_CHIP_BLUE) ? "ESO DET CHIP1 NAME" : "ESO DET CHIP2 NAME")</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="comment">#define UVES_QC_CHIP_ID(chip) \</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> <span class="comment"> (((chip) == UVES_CHIP_BLUE) ? "ESO DET CHIP1 ID"   : "ESO DET CHIP2 ID")</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> <span class="comment">#define UVES_QC_CHIP_VAL(chip) \</span></div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> <span class="comment"> (((chip) == UVES_CHIP_REDU) ? "MIT" : "EEV")</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> <span class="preprocessor">#define UVES_CCDID       "ESO DET ID"</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PRESSURE    "ESO INS SENS26 MEAN"</span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TEMPCAM(chip) \</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="preprocessor"> (((chip) == UVES_CHIP_BLUE) ? "ESO INS TEMP1 MEAN"   : "ESO INS TEMP2 MEAN")</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="preprocessor">#define UVES_HUMIDITY    "ESO INS TEMP31 MEAN"</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="comment"> * Keyword in DRS table for predicted number of orders</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="comment">/* #define UVES_ORD_PRED "ESO PRO QC ORDEF ORD PRED" */</span></div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> <span class="preprocessor">#define UVES_ORD_PRED "NBORDI"</span></div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="preprocessor">#define UVES_INSMODE  "ESO INS MODE"</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_INSPATH  "ESO INS PATH"</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> <span class="comment">/* Images statistics */</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="preprocessor">#define UVES_PRO_DATAAVG  "ESO PRO DATAAVG"</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PRO_DATARMS  "ESO PRO DATARMS"</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PRO_DATAMED  "ESO PRO DATAMED"</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DATAMIN  "DATAMIN"</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DATAMAX  "DATAMAX"</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DATAMEAN "DATAMEAN"</span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DATAMED  "DATAMED"</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DATARMS  "DATARMS"</span></div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <span class="comment">/* Object */</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> <span class="preprocessor">#define UVES_OBJECT "OBJECT"</span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> <span class="comment">/* Line table trace and window ID */</span></div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> <span class="preprocessor">#define UVES_TRACEID      "TRACEID"</span></div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TRACE_OFFSET "OFFSET"</span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_WINDOWNUMBER "WINDOW"</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> <span class="comment">/* Line table order numbers */</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> <span class="preprocessor">#define UVES_FIRSTABSORDER "FABSORD"</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_LASTABSORDER  "LABSORD"</span></div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> <span class="comment">/* Image FITS keywords */</span></div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> <span class="preprocessor">#define UVES_BUNIT "BUNIT"</span></div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_BSCALE "BSCALE"</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TUNIT "TUNIT"</span></div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> <span class="preprocessor">#define UVES_CTYPE1 "CTYPE1"</span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CTYPE2 "CTYPE2"</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CUNIT1 "CUNIT1"</span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CUNIT2 "CUNIT2"</span></div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CRVAL1 "CRVAL1"</span></div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CRVAL2 "CRVAL2"</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CRPIX1 "CRPIX1"</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CRPIX2 "CRPIX2"</span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CDELT1 "CDELT1"</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CDELT2 "CDELT2"</span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> <span class="preprocessor">#define UVES_BITPIX "BITPIX"</span></div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_NAXIS  "NAXIS"</span></div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_NAXIS1 "NAXIS1"</span></div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_NAXIS2 "NAXIS2"</span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_STARTX "STARTX"</span></div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_STARTY "STARTY"</span></div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="preprocessor">#define UVES_OUT1NX "ESO DET OUT1 NX"</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_OUT1NY "ESO DET OUT1 NY"</span></div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_OUT4NX "ESO DET OUT4 NX"</span></div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_OUT4NY "ESO DET OUT4 NY"</span></div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> <span class="preprocessor">#define UVES_READ_SPEED "ESO DET READ SPEED"</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> <span class="comment">/* 2d extraction slit length */</span></div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> <span class="preprocessor">#define UVES_HS "HS"</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> <span class="comment">/* Rebinned spectrum wavelength offset */</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> <span class="preprocessor">#define UVES_WSTART "WSTART"</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_WEND   "WEND"</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> <span class="comment">/* Number of input raw frames */</span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> <span class="preprocessor">#define UVES_DATANCOM     "ESO PRO DATANCOM"</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DATANCOM_OLD "ESO PRO QC DATANCOM"</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> <span class="comment">/* QC - Bad pixel corrected */</span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> <span class="preprocessor">#define UVES_QC_BADPIXCORR "ESO QC BADPIX CORR"</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="comment">/* Reduction level */</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> <span class="preprocessor">#define UVES_REDLEVEL "ESO PRO REDLEVEL"</span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> <span class="comment"> *   Note   : Currently we always write to the RECi keyword </span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> <span class="comment"> *            with i = 1, like the cpl_setup_product_header</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="comment"> *            function. Maybe this needs to be generalized</span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> <span class="comment"> *            later (if a product of one recipe is further processed</span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <span class="comment"> *            by another recipe).</span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> <span class="preprocessor">#define UVES_STATUS "ESO PRO REC1 STATUS"</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="preprocessor">#define UVES_START "ESO PRO REC1 START"</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_STOP  "ESO PRO REC1 STOP"</span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="preprocessor">#define UVES_DPR_TECH "ESO DPR TECH"</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DPR_TYPE "ESO DPR TYPE"</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_DPR_CATG "ESO DPR CATG"</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_OCS_SIMCAL "ESO OCS SIMCAL"</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="comment"> *  FLAMES</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> </div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> <span class="preprocessor">#define FLAMES_NFLATS  "NFLATS"</span></div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> <span class="preprocessor">#define FLAMES_OBS_PLATE_ID "ESO INS SLIT3 PLATE"</span></div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_INS_SHUT09   "ESO INS SHUT9 ST"</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_INS_SHUT10   "ESO INS SHUT10 ST"</span></div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_PLATEID      "ESO INS1 TUMB POS"</span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_NEWPLATEID   "ESO INS OBSPLATE"</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_DIT          "ESO DET WIN1 DIT1"</span></div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> <span class="preprocessor"></span><span class="preprocessor">#define FLAMES_CCFPOSMAX    "ESO QC CCF POSMAX"</span></div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> <span class="comment">                           Functions prototypes</span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="comment">-----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> <span class="keywordtype">bool</span> <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> <a class="code" href="group__uves__pfits.html#ga69cca375340082d053f4fa6d11c099c6" title="Write integer value to HISTORY keyword.">uves_pfits_set_history_val</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...)</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> <span class="preprocessor">#ifdef __GNUC__</span></div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> <span class="preprocessor"></span>    __attribute__((format (printf, 3, 4)))</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> <span class="preprocessor"></span>    ;</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> </div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> </div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> <span class="keywordtype">bool</span> <a class="code" href="group__uves__pfits.html#ga84bbe16d83dc492a6104f3b301f1c2f9" title="Find out if CCD header is new.">uves_ccd_is_new</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga88d114f3cb4427cf679e9f7b7696bcd9" title="find out the value of UVES_ENCODER_REF1">uves_pfits_get_slit3_x1encoder</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga12fe6f500e105193aa9faae4258ef51d" title="find out the value of UVES_ENCODER_REF2">uves_pfits_get_slit3_x2encoder</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gaf61c29fc0fa67ae38c7ac8e0f125c6ce" title="Find out the START1.">uves_pfits_get_startx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gaa144877b5eaa88dd3bc92c9900543c5f" title="Find out the STARTY.">uves_pfits_get_starty</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> </div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga87cd5104b9b26f1655958f6f533fcfc2" title="find out the frame">uves_pfits_get_maxfibres</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> <span class="keywordtype">char</span>  <a class="code" href="group__uves__pfits.html#ga4ee5f11b825d519d1a9aafb561e0d6f7" title="find out the frame">uves_pfits_get_chipchoice</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga0ecbcc40cde47dcccdc6e61f987cf94e" title="find out the origfile">uves_pfits_get_origfile</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga8dc9fde0148605eee9109beca930f79e" title="find out the frame">uves_pfits_get_badpxframe</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#gacf7edbe26b2c28fbe6b04bcd0c0fbe54" title="chop the "ESO " prefix">uves_chop_eso_prefix</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key);</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga2b39689fbd7baa3e56d34c2200317649" title="find out the arcfile">uves_pfits_get_rec1raw1name</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga2cc76a99674d90a86d9d7174f33dc893" title="find out the arcfile">uves_pfits_get_arcfile</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga29aa57ccf95058c909572ed494be97b1" title="find out the pipefile">uves_pfits_get_pipefile</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#gaf694501f3a20536e64cad6efc2a0e5b5" title="find out the template id">uves_pfits_get_templateid</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga77477da1d35f89951eb8eace41938d41" title="find out the product category as defined by the DataFlow">uves_pfits_get_pro_catg</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist) ;</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga9a720fb2cb64f6f8704b53d6d5869017" title="find out the data category as defined by the DataFlow">uves_pfits_get_dpr_catg</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist) ;</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga2833b60dd4a735740352b9c24c6b01f9" title="find out the data tech as defined by the DataFlow">uves_pfits_get_dpr_tech</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist) ;</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga5bb5b7dee7a50351450a64182f1458fe" title="find out the data type as defined by the DataFlow">uves_pfits_get_dpr_type</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist) ;</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#ga666eb10fe3865d59fa69b830735f0e0e" title="Set DPR CATG value.">uves_pfits_set_dpr_catg</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#gaa8bc49514a8c08229da6db3f881cf98c" title="Set DPR TECH value.">uves_pfits_set_dpr_tech</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#gad5a9f4f0b354fff0ee10bd24df613b25" title="Set DPR TYPE value.">uves_pfits_set_dpr_type</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga97acf10dfec1908a573a2bf51baedd72" title="find out the date of observation">uves_pfits_get_date_obs</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist) ;</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> </div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e" title="Find out the chip ID.">uves_pfits_get_chipid</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga764b711e645e416c5be3882765baa14e" title="Find out the chip name.">uves_pfits_get_chip_name</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__pfits.html#ga30b8fd58edf8f7f006fb73aa9a25cf91" title="Find out the drs id.">uves_pfits_get_drs_id</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__pfits.html#gaf0ed2a547997610410b19faa468f5daf" title="Find out the tpl start.">uves_pfits_get_tpl_start</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#gaa56bfa63f004c7046a5a5242312a792f" title="find out the chip name value">uves_pfits_get_insmode</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#gaeefa3dc2dbf45776accef00f67b7002f" title="find out the chip name value">uves_pfits_get_inspath</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__pfits.html#gae00753b08b474c90cdd83169e3c7980e" title="Get target name.">uves_pfits_get_targ_name</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gadfc97431fbaa953d0b2b507a0d65a323" title="Read the SIMCAL flag.">uves_pfits_get_ocs_simcal</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#ga8671b556f4338bf739e92b9d0ba1f831" title="Set the SIMCAL flag.">uves_pfits_set_ocs_simcal</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> simcal);</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span> </div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga408818ada3d951ea32c4063728eca597" title="Find out the x-prescan.">uves_pfits_get_prescanx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga3d6bc36f09d098e2804a09c276917634" title="Find out the x-overscan.">uves_pfits_get_ovrscanx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga9c23bc8405611ad9e160f17543a7ff45" title="Find out the y-prescan.">uves_pfits_get_prescany</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gaf8ed5ab2990b6792cebb5e1143de4696" title="Find out the y-overscan.">uves_pfits_get_ovrscany</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> </div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga49559908c6512ccc86d7ea3b478bdc9a" title="Read the predicted number of orders.">uves_pfits_get_ordpred</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga43adddad6bd999b197d24eacc25bde34" title="Find out the modified julian observation date.">uves_pfits_get_mjdobs</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gaac930573fb642f9b489df1f3773d5eb9" title="Find out the observation time.">uves_pfits_get_utc</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga2f4307d12086db9c739fe3df79931a10" title="Find out the right ascension.">uves_pfits_get_ra</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gabee157c267487c9edc9b7f478f781173" title="Find out the declination.">uves_pfits_get_dec</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga55902033ba015dd0045488a5222f772c" title="Find out the telescope longitude.">uves_pfits_get_geolon</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga58d1b21dbf83e02a88bdced0a416bc9a" title="Find out the telescope latitude.">uves_pfits_get_geolat</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gabd4b8ee6fb59b708093644f50c321978" title="Find out the readout noise in ADU.">uves_pfits_get_ron_adu</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gaabb5de1c212917f34b94de1c1587104d" title="find out the arcfile">uves_pfits_get_ambipress</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga4f4be35f30bd7d46f8c7421907ac8695" title="Find out the gain.">uves_pfits_get_gain</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gab40bd41082796c15947b75ceddbbbd5c" title="Find out the conad.">uves_pfits_get_conad</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga94a0f9aec24d8d9ce2a936a1cd7985dd" title="Find out the user integration time.">uves_pfits_get_uit</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga36f17263450ba556317388c15905bc7e" title="Find out the start airmass.">uves_pfits_get_airmass_start</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga2aba19c10f2f21a717691bd4b148f669" title="Find out the end airmass.">uves_pfits_get_airmass_end</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gae45226fec29767907871c9f34f61f61a" title="Write the exposure time.">uves_pfits_set_exptime</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">double</span> exptime);</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#ga9f62d68dba4e530ef2a0407d4752e6fc" title="Write the declination.">uves_pfits_set_dec</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">double</span> dec);</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#ga38758b23b33b80f7e27476783fddc3e3" title="Write the right ascension.">uves_pfits_set_ra</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">double</span> ra);</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#ga33e51be1bfd4b8f42972789c417211ae" title="Write the first absolute order number.">uves_pfits_set_firstabsorder</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">int</span> first_abs_order);</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gaa6a185f3150b22d6ce30439bfacbb78c" title="Get first absolute order number.">uves_pfits_get_firstabsorder</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#ga69fae305f143947cdd58f3c575e7ba9a" title="Write the last absolute order number.">uves_pfits_set_lastabsorder</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">int</span> last_abs_order);</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gad090d54b01606904ef8d740f766c2fde" title="Get last absolute order number.">uves_pfits_get_lastabsorder</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gaef0d7e4491440deeda27c14d65c34d7b" title="Get the trace offset.">uves_pfits_get_offset</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#ga7ee7734c381f31039220820182a749c9" title="Write the trace ID.">uves_pfits_set_traceid</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> trace_id);</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#gae66ad0ee347230f2fea240f445104a20" title="Write the trace offset.">uves_pfits_set_offset</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> trace_offset);</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> <span class="keywordtype">int</span>            <a class="code" href="group__uves__pfits.html#gafe242382d5e824db3b68e156d8296a89" title="Get the trace ID number.">uves_pfits_get_traceid</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#gab684709b2ade5e2322325761799e92d0" title="Write the window number.">uves_pfits_set_windownumber</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> window_number);</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> <span class="keywordtype">int</span>            <a class="code" href="group__uves__pfits.html#ga3bcabe0b2d46d1f65674d3d0dcb9ee2d" title="Get the window number.">uves_pfits_get_windownumber</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga865460e642e3dc81fae544e3b6f1402a" title="Write the average pixel value.">uves_pfits_set_data_average</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> average);</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga308f6a7549c50e0c513d63a40dfa975f" title="Write the RMS error of pixel values.">uves_pfits_set_data_stddev</a> (<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> stddev);</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gad010fc0da98b85fdebcd5bc5ba66b2bf" title="Write the median pixel value.">uves_pfits_set_data_median</a> (<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> median);</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gac4287c2bde551653e40d60e128a3a35a" title="Write the min pixel value.">uves_pfits_set_data_min</a>    (<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> min);</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga12b323abb20f835610ee85f9511d2b30" title="Write the max pixel value.">uves_pfits_set_data_max</a>    (<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> max);</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga00c534cae0eea2f78b8d36bc675c7b80" title="Write the object keyword.">uves_pfits_set_object</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">object</span>);</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gaa74a3b1258870b7dcc7f66c616004055" title="Write the predicted number of order.">uves_pfits_set_ordpred</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">int</span> nord);</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gaa198d93b1538311c92a9b2fed6389357" title="Write the object keyword.">uves_pfits_set_badpixcorr</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *corr);</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gad288bfc7118fd184d27b16ec9c45d5eb" title="Write the reduction level.">uves_pfits_set_redlevel</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *redlevel);</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga8e84ec2559f4f8b5c950ca701c852c61" title="Write the status.">uves_pfits_set_status</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *status);</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga0cb8c1549c5c2877e335249714025634" title="Write the start time.">uves_pfits_set_starttime</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *start_time);</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga62d8502b9cb1c8852a37f88499c88e26" title="Write the stop time.">uves_pfits_set_stoptime</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *stop_time);</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span> <span class="keywordtype">int</span>            <a class="code" href="group__uves__pfits.html#ga2b4f1ab25eca67e06373e637b34f96a2" title="Find out the number of input raw frames.">uves_pfits_get_datancom</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga42434cb12722d0eadd8b9f04f56c8237" title="find out the ccd id">uves_pfits_get_ccdid</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gada6e3678efe087f614124ea63ce8a9a0" title="find out the pressure value">uves_pfits_get_pressure</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga266ea18052beecac005d60558904a490" title="find out the pressure value">uves_pfits_get_tempcam</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist,<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga4f0d4444ba3039844561d5574447f152" title="find out the humidity value">uves_pfits_get_humidity</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gada5bfd486b316634b1d107ea5fc2cd12" title="Read the slit length in pixels.">uves_pfits_get_slitlength_pixels</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gadbfe6eb96c384b6b971b634ab8b79fab" title="find out the slit width">uves_pfits_get_slitwidth</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga159df9e29b6cdbc886d2ec1c19884a64" title="find out the slit length">uves_pfits_get_slitlength</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#gaa907a5d5e4e5a8b2fedda4daae8fae4f" title="find out the grating ID value">uves_pfits_get_gratid</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga58d2d231e9bcf59d84ce42cf527b2071" title="find out the grating name value">uves_pfits_get_gratname</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga5dc4ab669bc41d6c481905c16afa59a0" title="find out the readout speed">uves_pfits_get_readspeed</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#gadb0a05528f0429187a6af97bcb3f4a25" title="Get image slicer name.">uves_pfits_get_slit1_name</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#gaeaf186ce3a84dfbca11c7cee211e80ce" title="Find out the bunit.">uves_pfits_get_bunit</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gacc6916f14b6591ccc948f1ca8117fbf0" title="Find out the bscale.">uves_pfits_get_bscale</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#gaa01218ecc26f39e4d903199d8912859a" title="Find out the ctype1.">uves_pfits_get_ctype1</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga10f0c2c5e0fd87a36ede0e7fb2fa05bd" title="Find out the ctype2.">uves_pfits_get_ctype2</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga59cf5e1608701d663f3abcc8fcb41880" title="Find out the cunit1.">uves_pfits_get_cunit1</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__uves__pfits.html#ga1f8205720c4af931e1dfb55542d71ccc" title="Find out the cunit2.">uves_pfits_get_cunit2</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga45d7028cbd48f33f7c5589deb4ccd5c4" title="Find out the BITPIX.">uves_pfits_get_bitpix</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga17228ff502d3e1eafc4359b2b7069a32" title="Find out the NAXIS.">uves_pfits_get_naxis</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gadd8fda05c51af7b34d5021b4bc60fffc" title="Find out the NAXIS1.">uves_pfits_get_naxis1</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga41338750e1279de511bc5035d8d218d0" title="Find out the NAXIS2.">uves_pfits_get_naxis2</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gae9e532b44a8101e42ee42ea2294e877a" title="Find out the OUT1 NX.">uves_pfits_get_out1nx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga4cc264a7bd8eafb4572b7ee10a82b4a9" title="Find out the OUT1 NY.">uves_pfits_get_out1ny</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gaf24b3465f3646b6a0c446eb1fbeb2520" title="Find out the OUT4 NX.">uves_pfits_get_out4nx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga40a63a22192db6fbc8bab37e64ae0bc9" title="Find out the OUT4 NY.">uves_pfits_get_out4ny</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8" title="Find out the OUT1 NX or OUT4 NX.">uves_pfits_get_nx</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist,<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#ga4869724c736010824272955edffb60eb" title="Find out the OUT1 NY or OUT4 NY.">uves_pfits_get_ny</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist,<span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span> </div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gaefba8b3c1a2fbe5c0f42eaeaaafaf455" title="Find out the crval2.">uves_pfits_get_crval2</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga1820feccc4e549d16d5630880790cea3" title="Find out the crpix1.">uves_pfits_get_crpix1</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga18ea5d528ab27ac81d2b64901f81c4b7" title="Find out the crpix2.">uves_pfits_get_crpix2</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gab1af91452dda53e50314231795bf5308" title="Find out the cdelt2.">uves_pfits_get_cdelt2</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203" title="Read the wstart keyword.">uves_pfits_get_wstart</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> order);</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595" title="Read the wend keyword.">uves_pfits_get_wend</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> order);</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga1dcf84ae52c90eecc51ca448a63cfc5e" title="Write the bunit keyword.">uves_pfits_set_bunit</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *bunit);</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gace68beef266360129dce0860c4fb1731" title="Write the bscale keyword.">uves_pfits_set_bscale</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">double</span> bscale);</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gac948997f6142c218334d0cb70a4eeabc" title="Write the ctype1 keyword.">uves_pfits_set_ctype1</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *ctype1);</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga1644b60894010bfaa365370ff6851aaf" title="Write the ctype2 keyword.">uves_pfits_set_ctype2</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *ctype2);</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gaf22ae9bd0d4e3492b1595f49ec00edc8" title="Write the cunit1 keyword.">uves_pfits_set_cunit1</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *ctype1);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga6bef11d061318a2656e16fb83717965b" title="Write the cunit2 keyword.">uves_pfits_set_cunit2</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *ctype2);</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gaaed14627f7b8206cc8970cd1f787a6db" title="Write the crval1 keyword.">uves_pfits_set_crval1</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> crval1);</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga510ee409ec059fdbd8991d88a7639152" title="Write the crval2 keyword.">uves_pfits_set_crval2</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> crval2);</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga0fb41e9ccebfde88e71dcd6ed2dff570" title="Write the crpix1 keyword.">uves_pfits_set_crpix1</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> crpix1);</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gaf6964f0063821d3f357125f149f87367" title="Write the crpix2 keyword.">uves_pfits_set_crpix2</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> crpix2);</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga0d13232557903e763483cc57b4cfa0c4" title="Write the cdelt1 keyword.">uves_pfits_set_cdelt1</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> cdelt1);</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga80ad6ea5e902d3cc3a1f3745035e528e" title="Write the cdelt2 keyword.">uves_pfits_set_cdelt2</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">double</span> cdelt2);</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga343861c33e84f1358c3235d41e8474b8" title="Write the wstart keyword.">uves_pfits_set_wstart</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> order, <span class="keywordtype">double</span> wstart);</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> cpl_error_code <a class="code" href="group__uves__pfits.html#ga30c035689f06d716cca55250181f9956" title="Write the wend keyword.">uves_pfits_set_wend</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> order, <span class="keywordtype">double</span> wend);</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span> </div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gad9f2f8d54f1b6708126bc62b45bc7d74" title="Write the tunit keyword.">uves_pfits_set_tunit_no</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> col_no, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> cpl_error_code <a class="code" href="group__uves__pfits.html#gaf0f096e9615abba54e8df7068b2e7541" title="Write the bunit keyword.">uves_pfits_set_bunit_no</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> axis_no, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> </div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span> </div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#ga3a62ab3d0a3cbff46e6587757c951c7d" title="Write the 2d extractino slit length.">uves_pfits_set_hs</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> hs);</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#ga18d5d37d2b633d137b3c256e9e61c029" title="Write the ccfposmax keyword (what is it?)">uves_flames_pfits_set_ccfposmax</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keywordtype">double</span> ccfposmax);</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#ga7bcb4bda625a9aee0a93daaa409e1320" title="Find out the integration time.">uves_flames_pfits_get_dit</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header);</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gae70f662017b21fd4d83fa9d7b16fec50" title="read the plate id">uves_flames_pfits_get_plateid</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header);</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__pfits.html#ga95b184c2af4a33cac829ff926b10138b" title="Write the plate number.">uves_flames_pfits_set_newplateid</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keywordtype">int</span> plate_no);</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__pfits.html#gac758aa4b71e0c505df55d1d99d7b62f8" title="Find out the NFLATS.">uves_flames_pfits_get_nflats</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga25f5bbe03eaa1b8eede6c45d1c92daf3" title="find out the ident">uves_flames_pfits_get_ident</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__pfits.html#ga81aff5981269ff140a1baca2df392f1b" title="find out the OBJECT">uves_flames_pfits_get_object</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist);</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__pfits.html#gaad1abe1801ca189d25b0f9ffdcf1f078" title="Get pixel scale.">uves_pfits_get_pixelscale</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist);</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> </div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span> <span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod_8c_source.html b/html/uves__physmod_8c_source.html
deleted file mode 100644
index f706389..0000000
--- a/html/uves__physmod_8c_source.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.76 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.75  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> {</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     {</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"I am uves_physmod version %d, but I am linking "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     }</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordflow">return</span> uves_physmod_get_info(list);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__body_8c_source.html b/html/uves__physmod__body_8c_source.html
deleted file mode 100644
index 26bec13..0000000
--- a/html/uves__physmod__body_8c_source.html
+++ /dev/null
@@ -1,1894 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_body.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_body.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.60 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.59  2013/07/29 12:38:25  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * set med_dx, med_dy to proper values to have at least a model iteration on both chips (PIPE-4666)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.58  2013/07/01 15:37:10  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Rename DEBUG to debug_mode to remove compiler error on some platforms (that name is reserved to special compiler options)</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.57  2010/09/27 08:00:41  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * removed x_axis_scale and y_axis_scal params from interface as always kept constant</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.56  2010/09/24 09:32:06  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.54  2010/08/30 14:17:20  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * moved declaration product_filename variable up to eventually used to dump an extra QC product</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.53  2010/06/15 15:46:26  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * removed useless second call to uves_save_table_local of the same temporary product already saved</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.52  2010/05/06 14:21:06  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * increase mbox_x/y min to 10 to improve recipe robustness</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.51  2010/05/01 16:01:27  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * clearer error message</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.50  2010/03/09 15:27:49  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * removed generation of tmp product 'pippo4.fits'</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.49  2010/03/01 18:17:22  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * now model_prediction prediction table is generated only in debug mode</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.48  2009/08/03 12:48:10  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * some messaging to monitor physmodel shifts</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.47  2009/07/13 07:56:21  amodigli</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * insert proper offsets for new CCD  echelle standard modes</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.46  2009/07/13 06:38:41  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * moved functions to get new CCD shifts in uves_physmod_create_table.c</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.45  2009/04/27 08:32:59  amodigli</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * fixed trans_x/y setting in FIBER mode</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.44  2009/04/14 07:02:07  amodigli</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * set explicit filename to distingush if physmod is executed on a normal formatcheck or on a reference one</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.43  2008/09/29 06:58:03  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.42  2008/05/01 09:57:03  amodigli</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * fixed compiler warnings</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.41  2008/05/01 09:46:06  amodigli</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * modify x-y shift (if flames) if trans_x/y are set</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.40  2008/02/15 12:43:49  amodigli</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * allow lower/upper chip for parameter process_chip</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.39  2007/12/05 14:12:43  amodigli</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * if stability_cnt=0 does not do certain steps as in MIDAS</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.38  2007/12/03 17:00:14  amodigli</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * removed dependency from flames and fixed a warning</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.37  2007/12/03 10:43:00  amodigli</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * added flames_get_physmod_shift and set itermax to 1 to fix problems on flames-uves</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.36  2007/10/23 07:37:43  amodigli</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * if provided subtract MASTER_BIAS from input raw and reference formatchecks</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.35  2007/10/05 16:01:45  amodigli</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * using proces_chip parameter to process or not a given RED chip</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.34  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.33  2007/08/10 15:24:11  amodigli</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * fixed seg fault with flames-uves</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.32  2007/06/26 15:08:17  amodigli</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * changes to make work flames and uves physmod in simple way</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.31  2007/06/22 09:30:22  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Changed interface of uves_save_image</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.30  2007/06/13 15:13:48  amodigli</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * fixed mem leaks in case of fiber mode data</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.29  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.28  2007/05/22 14:34:32  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Removed unnecessary includes</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.27  2007/05/14 09:38:38  amodigli</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * removed call to irplib_error_dump</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.26  2007/04/25 08:38:40  amodigli</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * chnaged interface uves_physmod_plotmod</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.25  2007/04/24 14:08:53  jmlarsen</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Log more QC parameters (DFS03805)</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.24  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.23  2007/04/14 05:55:19  amodigli</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * warning of flames,iter demoted to debug message</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.22  2007/04/12 12:03:10  jmlarsen</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Fixed doc. typo</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Revision 1.21  2007/03/05 10:18:55  jmlarsen</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Do QC-log INS.SLITi.WID</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Revision 1.20  2007/02/26 10:16:22  jmlarsen</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Do not QC log slit width</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Revision 1.19  2007/01/15 14:28:44  jmlarsen</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Write default stability QC-parameters, only when master frame is provided</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Revision 1.18  2007/01/15 08:43:15  jmlarsen</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Fixed missing plots</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Revision 1.17  2007/01/13 09:52:22  amodigli</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * fixed some problems on flames QC log</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Revision 1.16  2007/01/09 17:46:03  amodigli</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * fixed a problem in echelle mode</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Revision 1.15  2007/01/08 16:59:18  amodigli</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * changes to make flames-uves iterations to recover physical model</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Revision 1.14  2006/12/07 08:26:04  jmlarsen</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Added uves_pfits_get_readspeed</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> * Revision 1.13  2006/12/01 12:29:21  jmlarsen</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Factored out FLAMES plate-id code</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> * Revision 1.12  2006/11/22 08:42:20  jmlarsen</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * Set traceid = 1, not 0 for UVES</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> * Revision 1.10  2006/11/22 08:22:29  jmlarsen</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Set message level according to preprocessor symbol</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> * Revision 1.9  2006/11/16 14:12:21  jmlarsen</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * Changed undefined trace number from 0 to -1, to support zero as an actual trace number</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> * Revision 1.8  2006/11/16 09:49:25  jmlarsen</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> * Fixed doxygen bug</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"> * Revision 1.7  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> * Revision 1.5  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"> * Revision 1.4  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment"> * Revision 1.3  2006/10/26 14:03:48  jmlarsen</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment"> * Fixed position of const modifier</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment"> * Revision 1.2  2006/10/25 11:43:32  amodigli</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment"> * fixed problem running physmod in debug mode</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment"> * Revision 1.1  2006/10/24 14:09:56  jmlarsen</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment"> * Factored out common UVES/FLAMES code</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment"> * Revision 1.30  2006/10/19 13:53:25  jmlarsen</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment"> * Changed guess line table tag to LINE_GUESS_TAB</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment"> * Revision 1.29  2006/10/17 12:33:02  jmlarsen</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment"> * Added semicolon at UVES_RECIPE_DEFINE invocation</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"> * Revision 1.28  2006/10/11 12:22:36  amodigli</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment"> * now the stability check consist only i the msrawxy and the table comparison, as in MIDAS</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment"> * Revision 1.27  2006/10/09 13:01:13  jmlarsen</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment"> * Use macro to define recipe interface functions</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment"> * Revision 1.26  2006/09/19 14:31:38  jmlarsen</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment"> * uves_insert_frame(): use bitmap to specify which image statistics keywords must be computed</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment"> * Revision 1.25  2006/09/19 06:55:39  jmlarsen</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"> * Changed interface of uves_frameset to optionally write image statistics kewwords</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment"> * Revision 1.24  2006/08/24 11:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment"> * Revision 1.23  2006/08/18 13:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment"> * Fixed/changed QC parameter formats</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment"> * Revision 1.22  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment"> * Revision 1.21  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="comment"> * Revision 1.20  2006/08/07 11:35:35  jmlarsen</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment"> * Disabled parameter environment variable mode</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment"> * Revision 1.19  2006/08/01 14:42:34  amodigli</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment"> * fixed bugs getting raw header from master formatcheck</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="comment"> * Revision 1.18  2006/07/31 06:29:26  amodigli</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment"> * added QC on stability test</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment"> * Revision 1.17  2006/07/28 14:51:26  amodigli</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment"> * fixed some bugs on improper table selection</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment"> * Revision 1.16  2006/07/14 12:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment"> * Support multiple QC tests per product</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment"> * Revision 1.15  2006/07/03 12:46:34  amodigli</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="comment"> * updated description</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment"> * Revision 1.14  2006/06/28 13:28:29  amodigli</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment"> * improved output</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment"> * Revision 1.13  2006/06/20 09:06:39  amodigli</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment"> * correct input tag info in man page</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment"> * Revision 1.12  2006/06/16 08:25:45  jmlarsen</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment"> * Manually propagate ESO.DET. keywords from 1st/2nd input header</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="comment"> * Revision 1.11  2006/06/13 11:57:02  jmlarsen</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="comment"> * Check that calibration frames are from the same chip ID</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="comment"> * Revision 1.10  2006/06/07 13:06:28  jmlarsen</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="comment"> * Changed doxygen tag addtogroup -> defgroup</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="comment"> * Revision 1.9  2006/06/07 09:01:28  amodigli</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="comment"> * added some doc</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment"> * Revision 1.8  2006/05/08 15:42:16  amodigli</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment"> * allow to specify order column label</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment"> * Revision 1.7  2006/04/20 10:47:39  amodigli</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment"> * added qclog</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment"> * Revision 1.6  2006/04/07 07:11:12  jmlarsen</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment"> * Minor doc. fix</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment"> * Revision 1.5  2006/04/06 09:48:15  amodigli</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment"> * changed uves_frameset_insert interface to have QC log</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment"> * Revision 1.4  2006/04/06 08:42:19  jmlarsen</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="comment"> * Changed indentation</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment"> * Revision 1.3  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment"> * Revision 1.2  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="comment"> * Revision 1.66  2006/01/25 10:09:18  jmlarsen</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="comment"> * Added doxygen end marker</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="comment"> * Revision 1.65  2006/01/20 10:36:25  amodigli</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment"> * Fixed warings from doxigen</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment"> * Revision 1.64  2006/01/19 10:03:06  amodigli</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment"> * Fixed leaks</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment"> * Revision 1.62  2006/01/16 13:52:58  jmlarsen</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="comment"> * Removed memory leak</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="comment"> * Revision 1.61  2006/01/16 08:01:57  amodigli</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="comment"> * Added stability check</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="comment"> * Revision 1.60  2006/01/13 13:43:15  jmlarsen</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="comment"> * Removed memory leak</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="comment"> * Revision 1.59  2006/01/13 09:54:42  amodigli</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="comment"> * Fixed some bugs: improved agreement with MIDAS version</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="comment"> * Revision 1.58  2006/01/09 15:23:06  jmlarsen</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="comment"> * Removed some warnings</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment"> * Revision 1.57  2006/01/09 14:05:42  amodigli</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment"> * Fixed doxigen warnings</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment"> * Revision 1.56  2006/01/03 16:57:13  amodigli</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="comment"> * Fixed bug</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="comment"> * Revision 1.55  2006/01/03 14:47:53  amodigli</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="comment"> * Added uves_physmod_chop_otab.h .c to match MIDAS</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="comment"> * Revision 1.54  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment">/* Self */</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="preprocessor">#include <uves_physmod_body.h></span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="comment">/* called related functions */</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="preprocessor">#include <uves_physmod_plotmod.h></span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> <span class="preprocessor">#include <uves_physmod_create_table.h></span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="preprocessor">#include <uves_physmod_qc1pmtbl.h></span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="preprocessor">#include <uves_physmod_calmap.h></span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> <span class="preprocessor">#include <uves_physmod_msrawxy.h></span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> <span class="preprocessor">#include <uves_physmod_chop_otab.h></span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="preprocessor">#include <uves_physmod_stability_check.h></span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> <span class="comment">/* Utility functions */</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> <span class="comment">/* Library */</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="preprocessor">#define UVES_PHYSMOD_ITER_MAX 5</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="preprocessor"></span><span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> uves_physmod_qclog(cpl_table* line_table,</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>            cpl_table* order_table,</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>            cpl_table* qclog,</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>            <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>                    <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>                    <span class="keyword">const</span> <span class="keywordtype">int</span> iter,</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>                    <span class="keyword">const</span> <span class="keywordtype">int</span> plate_no);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> uves_physmod_qclog_sc(<span class="keyword">const</span> <span class="keywordtype">double</span> med_dx, </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>               <span class="keyword">const</span> <span class="keywordtype">double</span> med_dy,</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>               <span class="keyword">const</span> <span class="keywordtype">double</span> avg_dx,</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>                       <span class="keyword">const</span> <span class="keywordtype">double</span> avg_dy,</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>                       <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>                       <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *ref_header,</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>                       <span class="keyword">enum</span>  uves_chip chip,</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>               <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>               <span class="keyword">const</span> <span class="keywordtype">int</span> iter,</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>               cpl_table* qclog);</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> flames_get_physmod_shift(<span class="keyword">const</span> <span class="keywordtype">int</span> plate_no,</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                          <span class="keyword">const</span> <span class="keywordtype">int</span> wavec,</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>                          <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>              <span class="keywordtype">double</span>* physmod_shift_x,</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>                          <span class="keywordtype">double</span>* physmod_shift_y,</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>              <span class="keywordtype">double</span>* rot_1,</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                          <span class="keywordtype">double</span>* rot_2,</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                          <span class="keywordtype">double</span>* rot_3);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> </div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_physmod_desc_short = <span class="stringliteral">"Implements the UVES physical model"</span>;</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_physmod_desc =</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> <span class="stringliteral">"This recipe implements the UVES physical model\n"</span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="stringliteral">"Input files are BLUE or RED arm formatcheck frames identified by the tag\n"</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="stringliteral">"ARC_LAMP_FORM_xxxx, xxxx=BLUE or RED and a ThAr line reference table\n"</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="stringliteral">"identified by the tag LINE_REFER_TABLE\n"</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="stringliteral">"The recipe extracts from the input files FITS header data indicating the\n"</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> <span class="stringliteral">"instrument setting and ambiental atmospheric conditions, then using the\n"</span></div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> <span class="stringliteral">"model predicts X,Y position of the lines listed in the LINE_REFER_TABLE\n"</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="stringliteral">"table which are imaging on the detector and stores this information in an\n"</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> <span class="stringliteral">"guess order and a guess line table.\n"</span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="stringliteral">"Output are a guess order table and a guess line table per chip.\n"</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="stringliteral">"If the user provides in input also master format checks having tag\n"</span></div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> <span class="stringliteral">"MASTER_FORM_xxxx, xxxx=BLUE or REDL and REDU the recipe performs also a\n"</span></div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="stringliteral">"stability check\n"</span>;</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> </div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> uves_physmod_define_parameters_body(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>                                     <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> {</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext = NULL;</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> <span class="comment">     *    General    *</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     <span class="keywordflow">if</span> (uves_define_global_parameters(parameters) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     {</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>     }</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>     </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     uves_par_new_range(<span class="stringliteral">"mbox_x"</span>,</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>                  <span class="stringliteral">"Match box X size"</span>,</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>                  40,10,100);</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     uves_par_new_range(<span class="stringliteral">"mbox_y"</span>,</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                  <span class="stringliteral">"Match box Y size"</span>,</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>                  40,10,100);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     uves_par_new_value(<span class="stringliteral">"trans_x"</span>,</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                  <span class="stringliteral">"Detector translation along X"</span>,</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                  0.);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     uves_par_new_value(<span class="stringliteral">"trans_y"</span>,</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>                  <span class="stringliteral">"Detector translation along Y"</span>,</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>                  0.);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     uves_par_new_value(<span class="stringliteral">"ech_angle_off"</span>,</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>                  <span class="stringliteral">"Offset on echelle angle"</span>,</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>                  0.);</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> </div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     uves_par_new_value(<span class="stringliteral">"cd_angle_off"</span>,</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>                  <span class="stringliteral">"Offset on cross disperser angle"</span>,</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>                  0.);</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     uves_par_new_value(<span class="stringliteral">"ccd_rot_angle_off"</span>,</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>                  <span class="stringliteral">"Offset on CCD rotation angle"</span>,</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>                  0.);</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     uves_par_new_value(<span class="stringliteral">"compute_regression_sw"</span>,</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>                  CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>                  <span class="stringliteral">"Compute regression?"</span>,</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>                  <span class="keyword">true</span>);</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> <span class="comment">/*  we decided to remove those params as we always have them set to 0</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="comment">    uves_par_new_value("x_axis_scale",</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="comment">                 CPL_TYPE_DOUBLE,</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> <span class="comment">                 "Scale X axis",</span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> <span class="comment">                 0.);</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> <span class="comment"></span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> <span class="comment">    uves_par_new_value("y_axis_scale",</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> <span class="comment">                 CPL_TYPE_DOUBLE,</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="comment">                 "Scale Y axis",</span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> <span class="comment">                 0.);</span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     uves_par_new_value(<span class="stringliteral">"def_pol1"</span>,</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>                  <span class="stringliteral">"Polynomial X deg"</span>,</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>                  4);</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     uves_par_new_value(<span class="stringliteral">"def_pol2"</span>,</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>                  CPL_TYPE_INT,</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>                  <span class="stringliteral">"Polynomial Y deg"</span>,</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>                  5);</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> </div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>     uves_par_new_value(<span class="stringliteral">"kappa"</span>,</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                  <span class="stringliteral">"Kappa value in kappa sigma clipping "</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>                  <span class="stringliteral">"on RESIDUAL between YFIT and Y columns"</span>,</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>                  4.5);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> </div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     uves_par_new_value(<span class="stringliteral">"tol"</span>,</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>                  <span class="stringliteral">"Tolerance in kappa sigma clipping "</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>                  <span class="stringliteral">"on RESIDUAL between YFIT and Y columns"</span>,</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>                  2.0);</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     <span class="keywordflow">return</span> (<span class="keywordtype">int</span>) cpl_error_get_code();</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> }</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> <span class="keyword">static</span> cpl_table *</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> uves_physmod_process_chip(<span class="keyword">const</span> cpl_image *raw_image, </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>                           <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header, </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>                           <span class="keyword">const</span> <span class="keywordtype">char</span> *raw_filename, </div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>                           <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>               <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>                           <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>                           <span class="keyword">const</span> <span class="keywordtype">int</span> debug_mode, </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                           <span class="keyword">const</span> cpl_parameterlist* parameters, </div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>                           cpl_table* line_refer,</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>                           <span class="keyword">const</span> <span class="keywordtype">double</span> physmod_shift_x,</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                           <span class="keyword">const</span> <span class="keywordtype">double</span> physmod_shift_y,</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                           cpl_table** tmp_mod_tbl,</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>                           cpl_table** lin_tbl,</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>                           cpl_table** ord_tbl,</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>                           cpl_table**  mline_tbl,</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>                           <span class="keywordtype">int</span>* abs_ord_min,</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>                           <span class="keywordtype">int</span>* abs_ord_max,</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>                           <a class="code" href="struct__polynomial.html">polynomial</a>** absolute_order_poly2d,</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>                           <span class="keyword">const</span> <span class="keywordtype">int</span> stability_cnt)</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> {</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> </div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>     cpl_table *tmp_fsr_tbl = NULL;</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>     cpl_table *tmp_m_tbl = NULL;</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     cpl_table *tmp_p_tbl = NULL;</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>     cpl_table *tmp_w_tbl = NULL;</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     cpl_table *tmp_s_tbl = NULL;</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     cpl_table *tmp_rline_tbl = NULL;</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     cpl_table *tmp_npline_tbl = NULL;</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> </div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     cpl_table * result=NULL;</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *product_filename = NULL;</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     <span class="comment">/* Start processing this chip */</span></div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"stability counter=%d"</span>,stability_cnt);</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>     <span class="keywordflow">if</span>(stability_cnt == 0) {</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>        <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"offsetx=%f offsety=%f"</span>,physmod_shift_x,physmod_shift_y);</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__physmod.html#ga00e5ea8f673b3dfd86ba0d7982e0d793" title="Generates two tables with results of the UVES physical model.">uves_physmod_create_table</a>(raw_header, </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                                         chip,</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                                         flames,</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                                         recipe_id,</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                                         parameters, </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>                                         line_refer, </div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>                                         physmod_shift_x,</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>                                         physmod_shift_y,</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>                                         tmp_mod_tbl,</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>                                         &tmp_fsr_tbl), </div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>               <span class="stringliteral">"Could not run UVES physical model on the raw image %s"</span>, </div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>               raw_filename);</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> </div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>        <span class="keywordflow">if</span> (debug_mode) {</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> </div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> *product_filename = NULL;</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>           product_filename = <span class="stringliteral">"model_prediction"</span>;</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"Physical model table"</span>, </div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>                                        product_filename, *tmp_mod_tbl, chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                  <span class="stringliteral">"Error saving physical model table"</span>);</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span> </div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>    </div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>        }</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     }</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span> </div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span> </div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> </div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     uves_free_table(&tmp_rline_tbl);</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__physmod.html#ga936ea83d8565240521a8fe946ac6c9ae" title="This procedure measures the raw XY positions and widths of Th-Ar lines on an ThAr arc echelle exposur...">uves_physmod_msrawxy</a>(raw_image, </div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>                 raw_header, </div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>                 recipe_id,</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>                 parameters, </div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>                 *tmp_mod_tbl,</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>                 lin_tbl,</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>                 &tmp_m_tbl,</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>                 &tmp_p_tbl,</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>                 &tmp_rline_tbl,</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>                 mline_tbl,</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>                 &tmp_npline_tbl), </div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>        <span class="stringliteral">"Could not run uves_msrawxy to measure arc line position on raw image %s"</span>, </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>        raw_filename);</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> </div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> <span class="comment">    product_filename = "tmp_mod_tbl";</span></div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> <span class="comment">        check( uves_save_table_local("tmp_mod_tbl table", </span></div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span> <span class="comment">               product_filename, *tmp_mod_tbl, chip, -1, -1, raw_header, NULL),</span></div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> <span class="comment">              "Error saving tmp_mod_tbl table");</span></div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> </div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__physmod.html#ga7ac0845d816025a744319be6528c714b" title="This procedure plots results from the uves_physmod recipe.">uves_physmod_plotmod</a>(tmp_rline_tbl,raw_header,recipe_id,</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>                                parameters,chip),</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>           <span class="stringliteral">"Could not run uves_physmod_plotmod"</span>);</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>   </div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>     <span class="keywordflow">if</span>(stability_cnt == 0) {</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>       uves_free_table(&tmp_w_tbl);</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>       uves_free_table(&tmp_s_tbl);</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__physmod.html#ga3a452c20f5d130b0184d0f61962e83f9" title="This procedure makes the order definitions and wavelength calibration from the wavelength projection ...">uves_physmod_calmap</a>(raw_header,</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>                     chip,</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>                     recipe_id,</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>                     parameters, </div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>                     tmp_npline_tbl,</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>                     ord_tbl,</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>                     lin_tbl,</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>                     &tmp_w_tbl,</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                     &tmp_s_tbl,</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>                     abs_ord_min,</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                     abs_ord_max,</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                     absolute_order_poly2d), </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>         <span class="stringliteral">"Could not run uves_calmap on raw image %s"</span>, raw_filename);</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>       <span class="comment">//cpl_table_save(*lin_tbl, NULL, NULL, "pippo4.fits", CPL_IO_DEFAULT);</span></div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>    </div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> </div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__physmod.html#ga1aaabdd9a0e0412928a2345f63184f08" title="Chop off orders which are not fully in the detector chip.">uves_physmod_chop_otab</a>(raw_header,chip,lin_tbl,<span class="stringliteral">"Order"</span>,</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>                    abs_ord_min,abs_ord_max),</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>             <span class="stringliteral">"Could not run uves_physmod_chop_otab on raw image %s"</span>,</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>             raw_filename);</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> </div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__physmod.html#ga7ba94584b6a36bc5d55e397b5ef6af8c" title="To be written.">uves_physmod_qc1pmtbl</a>(&tmp_rline_tbl,lin_tbl), </div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>        <span class="stringliteral">"Could not run uves_qc1pmtbl on raw image %s"</span>, raw_filename);</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> </div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>     </div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__physmod.html#ga1aaabdd9a0e0412928a2345f63184f08" title="Chop off orders which are not fully in the detector chip.">uves_physmod_chop_otab</a>(raw_header,chip,ord_tbl,<span class="stringliteral">"ORDER"</span>,</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>                    abs_ord_min,abs_ord_max),</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>             <span class="stringliteral">"Could not run uves_physmod_chop_otab on raw image %s"</span>,</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>             raw_filename);</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>     }</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> </div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>     <span class="keywordflow">if</span> (debug_mode) {</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>         <span class="comment">/* Temporary products (to debug_mode) */</span></div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span> </div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     <span class="comment">/* Basic info about orders */</span></div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>     <span class="keywordflow">if</span>(stability_cnt==0) {</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>       product_filename = <span class="stringliteral">"arclampform"</span>;</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>       product_filename = <span class="stringliteral">"ref_arclampform"</span>;</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     }</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Physical model table"</span>, </div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>                product_filename, raw_image, chip, -1, -1, raw_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>               <span class="stringliteral">"Error saving arc lamp form image"</span>);</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>     product_filename = <span class="stringliteral">"pline"</span>;</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"Physical model table"</span>, </div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>                product_filename, *tmp_mod_tbl, chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>               <span class="stringliteral">"Error saving physical model table"</span>);</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> </div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>       </div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>      <span class="keywordflow">if</span>(stability_cnt == 0) {</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>       product_filename = <span class="stringliteral">"free_spectral_range"</span>;</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"FSR table"</span>,</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>                        product_filename, tmp_fsr_tbl,</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>                                        chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>          <span class="stringliteral">"Error saving free spectral range table"</span>);</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> </div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     }</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>         </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     product_filename = <span class="stringliteral">"midduml"</span>;</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"midduml table"</span>, </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>                product_filename, *lin_tbl, chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>               <span class="stringliteral">"Error saving midduml table"</span>);</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> </div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>  </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     product_filename = <span class="stringliteral">"middumm"</span>;</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"middumm table"</span>, </div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>                product_filename, tmp_m_tbl, chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>               <span class="stringliteral">"Error saving middumm table"</span>);</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span> </div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>     </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>     product_filename = <span class="stringliteral">"middumrline"</span>;</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"middumrline table"</span>, </div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>                product_filename, tmp_rline_tbl, chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>               <span class="stringliteral">"Error saving middumrline table"</span>);</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span> </div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span> </div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>     product_filename = <span class="stringliteral">"middummline"</span>;</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"middummline table"</span>, </div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>                product_filename, *mline_tbl, chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>               <span class="stringliteral">"Error saving middummline table"</span>);</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> </div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> </div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>     product_filename = <span class="stringliteral">"middump"</span>;</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"middump table"</span>, </div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>                product_filename, tmp_p_tbl, chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>               <span class="stringliteral">"Error saving middump table"</span>);</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span> </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>        </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>     product_filename = <span class="stringliteral">"middumnpline"</span>;</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"middumnpline table"</span>, </div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>                product_filename, tmp_npline_tbl, chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>               <span class="stringliteral">"Error saving middumnpline table"</span>);</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>       </div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>        </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     <span class="comment">/* Calmap */</span></div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     <span class="keywordflow">if</span>(stability_cnt== 0) {</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>       product_filename = <span class="stringliteral">"middumw"</span>;</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"middumw table"</span>, </div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>                        product_filename, tmp_w_tbl, </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>                                        chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>          <span class="stringliteral">"Error saving middumw table"</span>);</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>      </div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>       product_filename = <span class="stringliteral">"middums"</span>;</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"middums table"</span>, </div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>                        product_filename, tmp_s_tbl, </div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>                                        chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>          <span class="stringliteral">"Error saving middums table"</span>);</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>      </div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>        </div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>       product_filename = <span class="stringliteral">"order"</span>;</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"order table"</span>, </div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>                        product_filename, *ord_tbl, </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>                                        chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>          <span class="stringliteral">"Error saving order table"</span>);</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Order table saved to file %s"</span>, </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>            product_filename);</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span> </div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>     }</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     product_filename = <span class="stringliteral">"line"</span>;</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"line table"</span>, </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>                product_filename, *lin_tbl, chip, -1, -1, raw_header, NULL),</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>               <span class="stringliteral">"Error saving uves_line table"</span>);</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Line table saved to file %s"</span>, </div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>                                 product_filename);</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     </div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>      </div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>     }</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>     </div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>   cleanup:</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>     uves_free_table(&tmp_fsr_tbl);</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>     uves_free_table(&tmp_m_tbl);</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>     uves_free_table(&tmp_p_tbl);</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>     uves_free_table(&tmp_w_tbl);</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>     uves_free_table(&tmp_s_tbl);</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>     uves_free_table(&tmp_rline_tbl);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>      uves_free_table(&tmp_npline_tbl);</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>      </div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"end %s"</span>,__func__);</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> }</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span> </div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span> </div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span> </div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> uves_physmod_exe_body(cpl_frameset *frames,</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>               <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>               <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span> {</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>   <span class="comment">/* Input image */</span></div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>   cpl_image        *raw_image[2]      = {NULL, NULL};</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2]     = {NULL, NULL};</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_formatcheck_header[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span> </div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>   <span class="comment">/* Physical Model guess table products */</span></div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>   cpl_table        *line_table     = NULL;</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>   cpl_table        *order_table     = NULL;</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>   cpl_table        *mline_table     = NULL;</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>   cpl_table        *m_mline_table     = NULL;</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>   cpl_table        *model_table = NULL;</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span> </div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>   cpl_table        *r_mline_table     = NULL;</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>   cpl_table        *mst_line_table     = NULL;</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>   cpl_table        *mst_mline_table     = NULL;</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>   cpl_table        *mst_order_table     = NULL;</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span> </div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span> </div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *product_header = NULL;</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *table_header = NULL;</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>   cpl_table        *line_refer            = NULL;</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>   <a class="code" href="struct__polynomial.html">polynomial</a>       *absolute_order_poly2d=NULL;      </div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>   <a class="code" href="struct__polynomial.html">polynomial</a>       *mst_absolute_order_poly2d=NULL;      </div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span> </div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span> </div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>   <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>   <span class="keywordtype">int</span>      debug_mode=0;</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>   <span class="keywordtype">int</span> abs_ord_min=0;</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>   <span class="keywordtype">int</span> abs_ord_max=0;</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>   <span class="keywordtype">int</span> mst_abs_ord_min=0;</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>   <span class="keywordtype">int</span> mst_abs_ord_max=0;</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>   <span class="keywordtype">double</span> avg_dx=0;</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>   <span class="keywordtype">double</span> avg_dy=0;</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> </div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *raw_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>   <span class="keywordtype">char</span> *product_filename = NULL;</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>     </div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>   <span class="keywordtype">bool</span> blue = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>   <span class="keyword">enum</span> uves_chip chip;    </div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *line_refer_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *master_formatcheck_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>   cpl_image        *master_formatcheck    = NULL;</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>   <span class="keywordtype">int</span> nordpred=0;</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>   <span class="keywordtype">int</span> plate_no=0;</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>   <span class="keywordtype">int</span> iter=1;</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>   <span class="keywordtype">int</span> it=0;</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> </div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>   <span class="keywordtype">int</span> iter_max=UVES_PHYSMOD_ITER_MAX;</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>   <span class="comment">/* QC tables for iter_max*(TEST1+TEST2) and a NULL pointer */</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>   cpl_table* qclog[iter_max*2+1];</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> </div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span> </div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>   <span class="keywordtype">double</span> physmod_shift_x=0;</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>   <span class="keywordtype">double</span> physmod_shift_y=0;</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>   <span class="keywordtype">double</span> ref_frame_physmod_shift_x=0;</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>   <span class="keywordtype">double</span> ref_frame_physmod_shift_y=0;</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>   <span class="keyword">const</span> <span class="keywordtype">double</span> max_shift_x=0.4;</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>   <span class="keyword">const</span> <span class="keywordtype">double</span> max_shift_y=0.2;</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>   <span class="keywordtype">double</span> med_dx=2*max_shift_x;</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>   <span class="keywordtype">double</span> med_dy=2*max_shift_y;</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>   <span class="comment">/* Master bias */</span></div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>   cpl_image *master_bias               = NULL;</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_bias_header = NULL;</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span> </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>   <span class="keywordtype">double</span> rot_1=0;</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>   <span class="keywordtype">double</span> rot_2=0;</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>   <span class="keywordtype">double</span> rot_3=0;</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>   <span class="keywordtype">double</span> wlen=0;</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>   <span class="keywordtype">int</span> wavec=0;</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>   <span class="keywordtype">int</span> stab_check=0;</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>   <span class="keywordtype">int</span> stability_cnt=1;</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>   <span class="keywordtype">int</span> raw_index = 0;</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *master_bias_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> </div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>   <span class="keywordtype">double</span> trans_x=0;</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>   <span class="keywordtype">double</span> trans_y=0;</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span> </div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>   <span class="keywordflow">for</span>( iter=0 ; iter < 2*iter_max+1 ; iter++) {</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>     qclog[iter]=NULL;</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>   }</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span> </div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>   <span class="keywordflow">if</span>(flames) {</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>     iter_max=1;  <span class="comment">//Temporally changed to 1</span></div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>     iter_max=1;</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>   }</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"debug"</span>,  </div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>                 CPL_TYPE_BOOL, &debug_mode),</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>      <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"process_chip"</span>, </div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>                 CPL_TYPE_STRING, &PROCESS_CHIP),</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>      <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>   <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>   <span class="comment">/* Load raw image and header, and identify input frame as red or blue */</span></div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_formatcheck(frames, flames, &raw_filename, raw_image, </div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>                    raw_header, rotated_header, &blue), </div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>      <span class="stringliteral">"Error loading raw frame"</span>);</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span> </div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>   <span class="comment">/* Load reference line table */</span></div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_linerefertable(frames, &line_refer_filename, </div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>                   &line_refer, NULL), </div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>      <span class="stringliteral">"Could not load line reference table"</span>);</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using line reference table in '%s'"</span>, line_refer_filename);</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span> </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id,</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>                 <span class="stringliteral">"trans_x"</span>, CPL_TYPE_DOUBLE, &trans_x )  ,</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>      <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> </div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                 <span class="stringliteral">"trans_y"</span>, CPL_TYPE_DOUBLE, &trans_y )  ,</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>      <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> </div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span> </div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span> </div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>   <span class="comment">/* Loop over one or two chips */</span></div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>   <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>        chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>        chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>     {</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>       <span class="comment">/* following init to have at least one model iteration on both chips */</span> </div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>       med_dx=2*max_shift_x;</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>       med_dy=2*max_shift_y;</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDU"</span>) == 0) {</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>       }</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span> </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>       stab_check=0;</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>       stability_cnt=1;</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>       raw_index = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>         </div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing %s chip in '%s'"</span>, </div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>            <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip), raw_filename);</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> </div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( chip_name = <a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e" title="Find out the chip ID.">uves_pfits_get_chipid</a>(raw_header[raw_index], chip));</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> </div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span> </div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>       physmod_shift_x=0;</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>       physmod_shift_y=0;</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>       <span class="keywordflow">if</span>(flames) {</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(plate_no = <a class="code" href="group__uves__pfits.html#gae70f662017b21fd4d83fa9d7b16fec50" title="read the plate id">uves_flames_pfits_get_plateid</a>(raw_header[raw_index]),</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>           <span class="stringliteral">"Error reading plate id"</span>);</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(wlen=<a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(raw_header[raw_index],chip));</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>     wavec=(int)wlen;</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>         </div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span> </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>     ck0_nomsg(flames_get_physmod_shift(plate_no,wavec,chip,</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>                        &physmod_shift_x,&physmod_shift_y,</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>                        &rot_1,&rot_2,&rot_3));</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span> </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>         ref_frame_physmod_shift_x=physmod_shift_x;</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>         ref_frame_physmod_shift_y=physmod_shift_y;</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> </div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span> </div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span> </div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"shift_x=%f shift_y=%f"</span>,physmod_shift_x,physmod_shift_y);</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>     <span class="keywordflow">if</span>( trans_x != 0 ) {</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>       physmod_shift_x+=trans_x;</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>     }</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span> </div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     <span class="keywordflow">if</span>( trans_y != 0 ) {</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>       physmod_shift_y+=trans_y;</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>     }</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"shift_x=%f shift_y=%f"</span>,physmod_shift_x,physmod_shift_y);</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> </div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span> </div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>     <span class="keywordflow">if</span>( trans_x != 0 ) {</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>       physmod_shift_x=trans_x;</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>     }</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> </div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>     <span class="keywordflow">if</span>( trans_y != 0 ) {</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>       physmod_shift_y=trans_y;</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>     }</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> </div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>       }</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using physmod shifts: %g %g"</span>,physmod_shift_x,physmod_shift_y);</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>       <span class="comment">/* Check if a stability check can be done */</span></div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>       <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_MASTER_ARC_FORM(chip)) != NULL) {</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>       </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>     uves_free_image (&master_formatcheck);</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>     uves_free_propertylist(&master_formatcheck_header[raw_index]);</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_master_formatcheck(frames, </div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>                         chip_name,</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>                         &master_formatcheck_filename, </div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>                         &master_formatcheck,</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>                         &master_formatcheck_header[raw_index],                  </div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>                         chip),</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>            <span class="stringliteral">"Could not load master formatcheck frm"</span>);</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>             </div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> </div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>     stab_check=1;</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span> </div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No master format check frm in SOF."</span>);</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Stability check not done"</span>);</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>       }</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> </div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>       <span class="comment">/* Load master bias, set pointer to NULL if not present */</span></div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>       uves_free_image(&master_bias);</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>       uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>       <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_MASTER_BIAS(chip)) != NULL)</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>         {</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>       uves_free_image(&master_bias);</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>       uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mbias(frames,</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>                  chip_name,</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>                  &master_bias_filename, &master_bias,</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>                  &master_bias_header, chip), </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>          <span class="stringliteral">"Error loading master bias"</span>);</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>             </div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>       <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master bias in '%s' and '%s'"</span>, </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>                master_bias_filename,master_formatcheck_filename);</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_subtract(raw_image[raw_index],master_bias));</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>       <span class="keywordflow">if</span>(stab_check==1) {</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_subtract(master_formatcheck,master_bias));</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>       }     </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> </div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>         }</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>         {</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>       <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No master bias in SOF. Bias subtraction not done"</span>);</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>         }</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> </div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>       <span class="comment">/* Init QC-Log: before starting the stability check as in </span></div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> <span class="comment">     FLAMES-UVES one may have several iterations to be dumped </span></div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> <span class="comment">     on the different tables</span></div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> <span class="comment">      */</span></div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> </div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>       <span class="keywordflow">for</span>(iter=1,it=0;</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>       iter<=iter_max &&</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>         (fabs(med_dx) > max_shift_x || </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>          fabs(med_dy) > max_shift_y ) ;</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>       iter++,it+=2) {</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"iter=%d it=%d"</span>,iter,it);</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> </div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[it]);</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[it+1]);</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>     qclog[it]   = <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(raw_header[raw_index], chip);</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>     qclog[it+1] = <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(raw_header[raw_index], chip);</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> </div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>   </div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>     <span class="comment">//Run the physical model on the raw frame</span></div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>     uves_free_table(&model_table);</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>     uves_free_table(&line_table);</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>     uves_free_table(&order_table);</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>     uves_free_table(&mline_table);</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> </div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&absolute_order_poly2d);</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Run the physical model on the raw frame"</span>);</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"physmod shift x %f y %f"</span>,physmod_shift_x,physmod_shift_y);</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_physmod_process_chip(raw_image[raw_index], </div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>                      raw_header[raw_index],</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>                      raw_filename,</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>                      chip,</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>                      flames,</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>                      recipe_id,</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                      debug_mode,</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>                      parameters,</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                      line_refer,</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>                      physmod_shift_x,</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>                      physmod_shift_y,</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>                      &model_table,</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>                      &line_table,</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>                      &order_table,</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>                      &mline_table,</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>                      &abs_ord_min,</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>                      &abs_ord_max,</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>                      &absolute_order_poly2d,0),</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>            <span class="stringliteral">"Error processing chip"</span>);</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> </div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>     nordpred=abs_ord_max-abs_ord_min+1;</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"No of predicted orders %d"</span>,nordpred);</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> </div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span> </div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>     <span class="comment">/* add QC log */</span></div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"add QC log on raw frame"</span>);</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>     ck0(uves_physmod_qclog(line_table,order_table,qclog[it],</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>                    raw_header[raw_index], chip,</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>                    flames,iter,plate_no),<span class="stringliteral">"qc-log dump"</span>);</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span> </div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> </div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>        </div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"iter_max=%d"</span>,iter_max);</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>     <span class="keywordflow">if</span>(stab_check) {</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>       uves_free_table(&mst_line_table);</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>       uves_free_table(&mst_order_table);</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>       uves_free_table(&mst_mline_table);</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>       <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&mst_absolute_order_poly2d);</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> </div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Run the physical model on the Master formatcheck frame"</span>);</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>           <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"ref physmod shift x %f y %f"</span>,</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>            ref_frame_physmod_shift_x,ref_frame_physmod_shift_y);</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> </div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Stability counter=%d"</span>,stability_cnt);</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_physmod_process_chip(master_formatcheck,</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>                       master_formatcheck_header[raw_index], </div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>                       master_formatcheck_filename,</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>                       chip,</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>                       flames,</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>                       recipe_id,</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>                       debug_mode,</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>                       parameters,</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>                       line_refer,</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>                       ref_frame_physmod_shift_x,</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>                       ref_frame_physmod_shift_y,</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>                       &model_table,</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>                       &mst_line_table,</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>                       &mst_order_table,</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>                       &mst_mline_table,</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>                       &mst_abs_ord_min,</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>                       &mst_abs_ord_max,</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>                       &mst_absolute_order_poly2d,</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>                       stability_cnt),</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>         <span class="stringliteral">"Error processing chip"</span>);</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>       stability_cnt+=1;            </div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Stability check"</span>);</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using master format check frm '%s'"</span>, </div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>            master_formatcheck_filename);</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__physmod.html#ga107c8a7619bdaf3c4219f05060192bd2" title="This procedure run a stability check.">uves_physmod_stability_check</a>(</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>                             mline_table,</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>                             mst_mline_table,</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>                             &med_dx,</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>                             &med_dy,</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>                             &avg_dx,</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>                             &avg_dy) );</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span> </div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> </div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>             </div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>       uves_physmod_qclog_sc(med_dx,med_dy,avg_dx,avg_dy, </div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>                 raw_header[raw_index],</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>                 master_formatcheck_header[raw_index],</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>                 chip,flames,iter,</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>                 qclog[it+1]);</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"iter=%d med_dx=%g med_dy=%g"</span>,</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>            iter,fabs(med_dx),fabs(med_dy));</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"iter=%d max_shift_x=%g max_shift_y=%g"</span>,</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>            iter,max_shift_x,max_shift_y);</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span> </div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> </div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>       nordpred=abs_ord_max-abs_ord_min+1;</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>       physmod_shift_x-=med_dx;</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>       physmod_shift_y-=med_dy;</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span> </div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>     } <span class="comment">// end of stability check</span></div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>       </div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>       } <span class="comment">// end of iterations</span></div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>          </div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>         </div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>         <span class="comment">/* Finished. Now save the products */</span></div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Saving products..."</span>);</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>        </div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>         </div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>       <span class="comment">/* QC parameters should go here.</span></div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span> <span class="comment">     Other mandatory keywords (FITS + dfs) are</span></div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span> <span class="comment">     automatically added. */</span></div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> </div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>       uves_free_propertylist(&product_header);</div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>       uves_free_propertylist(&table_header);</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>       product_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>       table_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga7ee7734c381f31039220820182a749c9" title="Write the trace ID.">uves_pfits_set_traceid</a>     ( table_header, 0),</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>          <span class="stringliteral">"Error writing trace ID to product header"</span>);</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gab684709b2ade5e2322325761799e92d0" title="Write the window number.">uves_pfits_set_windownumber</a>( table_header, 2),</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>          <span class="stringliteral">"Error window number to product header"</span>);</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga33e51be1bfd4b8f42972789c417211ae" title="Write the first absolute order number.">uves_pfits_set_firstabsorder</a>(table_header, abs_ord_min),</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>          <span class="stringliteral">"Error window number to product header"</span>);</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> </div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga69fae305f143947cdd58f3c575e7ba9a" title="Write the last absolute order number.">uves_pfits_set_lastabsorder</a>(table_header, abs_ord_max),</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>          <span class="stringliteral">"Error window number to product header"</span>);</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> </div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__pfits.html#gaa74a3b1258870b7dcc7f66c616004055" title="Write the predicted number of order.">uves_pfits_set_ordpred</a>(product_header,nordpred));</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> </div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> </div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>       <span class="keywordflow">if</span> (flames) {</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>             </div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__pfits.html#ga95b184c2af4a33cac829ff926b10138b" title="Write the plate number.">uves_flames_pfits_set_newplateid</a>(product_header, </div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>                              plate_no));</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>       }</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> </div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>       cpl_free(product_filename);</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( product_filename = uves_guess_line_table_filename(chip),</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>           uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>                    line_table,</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>                    CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>                    CPL_FRAME_TYPE_TABLE,</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>                    CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>                    product_filename,</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>                    UVES_GUESS_LINE_TABLE(flames, chip),</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>                    raw_header[raw_index], </div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>                    product_header,</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>                    table_header,</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>                    parameters,</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>                    recipe_id,</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>                    PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>                    qclog,</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>                    starttime, </div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>                    <span class="keyword">true</span>, </div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>                    0)),</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>         <span class="stringliteral">"Could not add line guess table %s to frameset"</span>, </div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>         product_filename);</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>                 </div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>       <span class="comment">/* Save in next extension */</span></div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>         </div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_polynomial(absolute_order_poly2d, </div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>                   product_filename, table_header),</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>          <span class="stringliteral">"Could not write polynomial to file '%s'"</span>, product_filename);</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>                </div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>         </div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_polynomial(absolute_order_poly2d, </div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>                   product_filename, table_header), </div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>          <span class="stringliteral">"Could not write polynomial to file '%s'"</span>, product_filename);</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>             </div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> </div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span> </div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Line table %s added to frameset"</span>, product_filename);</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>         </div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>       <span class="comment">/* Save guess order table, re-use product header */</span></div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> </div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>       cpl_free(product_filename);        </div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( product_filename = uves_guess_order_table_filename(chip),</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>           uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>                    order_table,</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>                    CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>                    CPL_FRAME_TYPE_TABLE,</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>                    CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>                    product_filename,</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>                    UVES_GUESS_ORDER_TABLE(flames, chip),</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>                    raw_header[raw_index],</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>                    product_header,</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>                    NULL,</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>                    parameters,</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>                    recipe_id,</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>                    PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>                    NULL,</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>                    starttime, </div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>                    <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>                    0)), </div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>         <span class="stringliteral">"Could not add order guess table %s to frameset"</span>, </div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>         product_filename);</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>         </div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Order guess table %s added to frameset"</span>, </div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>            product_filename);</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> </div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>       <span class="keywordflow">for</span>(it=0;it<2*iter_max+1;it++) {</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[it]);</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>       }</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> </div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDL"</span>) == 0) {</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>       }</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> </div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>     }<span class="comment">/* For each chip */</span></div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> </div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>  cleanup:</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>   <span class="keywordflow">for</span>(it=0;it<2*iter_max+1;it++) {</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[it]);</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>   }</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>    </div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>   <span class="comment">/* Master bias */</span></div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>   uves_free_image(&master_bias);</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>   uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> </div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>   uves_free_image (&raw_image[0]);</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>   uves_free_image (&raw_image[1]);</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>   uves_free_propertylist(&raw_header[0]);</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>   uves_free_propertylist(&raw_header[1]);</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>   uves_free_propertylist(&rotated_header[0]);</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>   uves_free_propertylist(&rotated_header[1]);</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> </div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>   uves_free_image (&master_formatcheck);</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>   uves_free_propertylist(&master_formatcheck_header[0]);</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>   uves_free_propertylist(&master_formatcheck_header[1]);</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span> </div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>   uves_free_table(&model_table);</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>   uves_free_table(&line_table);</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>   uves_free_table(&mst_line_table);</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>   uves_free_table(&order_table);</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>   uves_free_table(&mst_order_table);</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>   uves_free_table(&line_refer);</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span> </div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>   uves_free_table(&mline_table);</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>   uves_free_table(&m_mline_table);</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>   uves_free_table(&r_mline_table);</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>   uves_free_table(&mst_mline_table);</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span> </div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>   uves_free_propertylist(&product_header);</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>   uves_free_propertylist(&table_header);</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>   <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&absolute_order_poly2d);</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>   <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&mst_absolute_order_poly2d);</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>   cpl_free(product_filename); </div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>           </div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"end %s"</span>,__func__);</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span> }</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span> </div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span> </div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span> uves_physmod_qclog(cpl_table* line_table,</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>                    cpl_table* order_table,</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>                    cpl_table* qclog,</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>                    <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>                    <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>                    <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>                    <span class="keyword">const</span> <span class="keywordtype">int</span> iter,</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>                    <span class="keyword">const</span> <span class="keywordtype">int</span> plate_no)</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span> {</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>   <span class="keywordtype">int</span> nlinsel=0;</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>   cpl_table *xline_table=NULL;</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>   <span class="keywordtype">char</span> key_value[25];</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span> </div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> </div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__qclog.html#ga66d1b116b78a6302ce5a2bb2d00c5d41" title="Write common QC parameters.">uves_qclog_add_common_wave</a>(raw_header,</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>                                           chip, qclog) );</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span> </div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> </div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>   <span class="keywordflow">if</span>(flames) {</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>      ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>                      <span class="stringliteral">"QC TEST1 ID"</span>,</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>                      <span class="stringliteral">"Fibre-Physical-Model-Prediction-Results"</span>,</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>                      <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>                      <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>      ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>                      <span class="stringliteral">"QC TEST1 ID"</span>,</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>                      <span class="stringliteral">"Physical-Model-Prediction-Results"</span>,</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>                      <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>                      <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>   }</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>                   <span class="stringliteral">"QC MODEL ID"</span>,</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>                   <span class="stringliteral">"UVES_phys_mod/1.1.0"</span>,</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>                   <span class="stringliteral">"Physmod Model Id"</span>,</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>                   <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span> </div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>                   <span class="stringliteral">"QC MODEL DATE"</span>,</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>                   <span class="stringliteral">"2000:03:18T00:00:00.000"</span>,</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>                   <span class="stringliteral">"Physmod Model Parameters Last Change"</span>,</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>                   <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span> </div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>   <span class="keywordflow">if</span>(flames) {</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span> </div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>     sprintf(key_value,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"QC MODEL ITER"</span>,iter);</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>                  key_value,</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>                  iter,</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>                  <span class="stringliteral">"Model iteration"</span>,</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>                  <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span> </div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>                  <span class="stringliteral">"QC MODEL ORDMIN"</span>,</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>                  cpl_table_get_column_min(line_table,<span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>                  <span class="stringliteral">"minimum predicted order value"</span>,</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>                  <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span> </div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>                  <span class="stringliteral">"QC MODEL ORDMAX"</span>,</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>                  cpl_table_get_column_max(line_table,<span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>                  <span class="stringliteral">"maximum predicted order value"</span>,</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>                  <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span> </div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> </div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>                  <span class="stringliteral">"QC MODEL WLENMIN"</span>,</div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>                  cpl_table_get_column_min(line_table,<span class="stringliteral">"WAVEC"</span>)/10.,</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>                  <span class="stringliteral">"minimum predicted order value"</span>,</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>                  <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> </div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>                  <span class="stringliteral">"QC MODEL WLENMAX"</span>,</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>                  cpl_table_get_column_max(line_table,<span class="stringliteral">"WAVEC"</span>)/10.,</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>                  <span class="stringliteral">"maximum predicted order value"</span>,</div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>                  <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> </div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> </div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>   } <span class="comment">/* in case of flames-uves */</span></div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span> </div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>                    <span class="stringliteral">"QC MODEL NLINALL"</span>,</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>                    cpl_table_get_nrow(line_table),</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>                    <span class="stringliteral">"Number of predicted lines"</span>,</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span> </div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nlinsel=cpl_table_and_selected_int(line_table,<span class="stringliteral">"SELPLOT"</span>,</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>                                                  CPL_EQUAL_TO,1));</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(xline_table=cpl_table_extract_selected(line_table));</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> </div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>                    <span class="stringliteral">"QC MODEL NLINSEL"</span>,</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>                    nlinsel,</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>                    <span class="stringliteral">"Number of lines selected"</span>,</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span> </div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>   <span class="keywordflow">if</span>(iter == 1) {</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>      ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>                      <span class="stringliteral">"QC MODEL DIFFXRMS"</span>,</div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>                      cpl_table_get_column_stdev(xline_table,<span class="stringliteral">"XDIF"</span>),</div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>                      <span class="stringliteral">"Std dev of X difference to physical model"</span>,</div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>                      <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> </div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>      ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>                      <span class="stringliteral">"QC MODEL DIFFXAVG"</span>,</div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>                      cpl_table_get_column_mean(xline_table,<span class="stringliteral">"XDIF"</span>),</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>                      <span class="stringliteral">"Average of X difference to physical model"</span>,</div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>                      <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> </div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>      ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,<span class="stringliteral">"QC MODEL DIFFXMED"</span>,</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>                      cpl_table_get_column_median(xline_table,<span class="stringliteral">"XDIF"</span>),</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>                      <span class="stringliteral">"Median of X difference to physical model"</span>,</div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>                      <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span> </div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>      ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>                      <span class="stringliteral">"QC MODEL DIFFYRMS"</span>,</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>                      cpl_table_get_column_stdev(xline_table,<span class="stringliteral">"YDIF"</span>),</div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>                      <span class="stringliteral">"Std dev of Y difference to physical model"</span>,</div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>                      <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span> </div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>      ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>                      <span class="stringliteral">"QC MODEL DIFFYAVG"</span>,</div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>                      cpl_table_get_column_mean(xline_table,<span class="stringliteral">"YDIF"</span>),</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>                      <span class="stringliteral">"Average of Y difference to physical model"</span>,</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>                      <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span> </div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>      ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,<span class="stringliteral">"QC MODEL DIFFYMED"</span>,</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>                      cpl_table_get_column_median(xline_table,<span class="stringliteral">"YDIF"</span>),</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>                      <span class="stringliteral">"Median of Y difference to physical model"</span>,</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>                      <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>   }</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> </div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>   <span class="keywordflow">if</span> ( flames == 1 ) {</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span> </div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span> </div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>        sprintf(key_value,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"QC MODEL RESXRMS"</span>,iter);</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>        ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>                     key_value,</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>                     cpl_table_get_column_stdev(xline_table,<span class="stringliteral">"XDIF"</span>),</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>                     <span class="stringliteral">"Std dev of X difference to physical model"</span>,</div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>                     <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span> </div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span> </div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>        sprintf(key_value,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"QC MODEL RESXAVG"</span>,iter);</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>        ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>                     key_value,</div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>                     cpl_table_get_column_mean(xline_table,<span class="stringliteral">"XDIF"</span>),</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>                     <span class="stringliteral">"Average of X difference to physical model"</span>,</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>                     <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span> </div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>        sprintf(key_value,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"QC MODEL RESXMED"</span>,iter);</div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>        ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>                     key_value,</div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>                     cpl_table_get_column_median(xline_table,<span class="stringliteral">"XDIF"</span>),</div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>                     <span class="stringliteral">"Median of X difference to physical model"</span>,</div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>                     <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span> </div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span> </div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> </div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>        sprintf(key_value,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"QC MODEL RESYRMS"</span>,iter);</div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>        ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>                     key_value,</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>                     cpl_table_get_column_stdev(xline_table,<span class="stringliteral">"YDIF"</span>),</div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>                     <span class="stringliteral">"Std dev of Y difference to physical model"</span>,</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>                     <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span> </div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span> </div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>        sprintf(key_value,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"QC MODEL RESYAVG"</span>,iter);</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>        ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>                     key_value,</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>                     cpl_table_get_column_mean(xline_table,<span class="stringliteral">"YDIF"</span>),</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>                     <span class="stringliteral">"Average of Y difference to physical model"</span>,</div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>                     <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span> </div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>        sprintf(key_value,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"QC MODEL RESYMED"</span>,iter);</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>        ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>                     key_value,</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>                     cpl_table_get_column_median(xline_table,<span class="stringliteral">"YDIF"</span>),</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>                     <span class="stringliteral">"Median of Y difference to physical model"</span>,</div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>                     <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span> </div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span> </div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>   }</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span> </div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span> </div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>   cpl_table_unselect_all(line_table);</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span> </div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>   <span class="comment">/* we divide by 10 as line_table contains values in Angstrom and we want</span></div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span> <span class="comment">     nanometers */</span></div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>                   <span class="stringliteral">"QC MODEL WLENMIN"</span>,</div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>                   cpl_table_get_column_min(xline_table,<span class="stringliteral">"WAVEC"</span>)/10.,</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>                   <span class="stringliteral">"minimum predicted wavelength value"</span>,</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>                   <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span> </div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>  ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>                  <span class="stringliteral">"QC MODEL WLENMAX"</span>,</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>                  cpl_table_get_column_max(xline_table,<span class="stringliteral">"WAVEC"</span>)/10.,</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>                  <span class="stringliteral">"maximum predicted wavelength value"</span>,</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>                  <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span> </div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span> </div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>                    <span class="stringliteral">"QC MODEL ORDMIN"</span>,</div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>                    (<span class="keywordtype">int</span>)cpl_table_get_column_min(xline_table,<span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>                    <span class="stringliteral">"minimum predicted order value"</span>,</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span> </div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>                    <span class="stringliteral">"QC MODEL ORDMAX"</span>,</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>                    (<span class="keywordtype">int</span>)cpl_table_get_column_max(xline_table,<span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>                    <span class="stringliteral">"maximum predicted order value"</span>,</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span> </div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span> </div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>  </div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>   <span class="comment">/* we divide by 10 as line_table contains values in Angstrom and we want</span></div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span> <span class="comment">     nanometers */</span></div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>                   <span class="stringliteral">"QC WLENMIN"</span>,</div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>                   cpl_table_get_column_min(line_table,<span class="stringliteral">"WAVEC"</span>)/10.,</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>                   <span class="stringliteral">"minimum wavelength"</span>,</div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>                   <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span> </div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>                   <span class="stringliteral">"QC WLENMAX"</span>,</div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>                   cpl_table_get_column_max(line_table,<span class="stringliteral">"WAVEC"</span>)/10.,</div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>                   <span class="stringliteral">"maximum wavelength"</span>,</div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>                   <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>   </div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>                    <span class="stringliteral">"QC ORDMIN"</span>,</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>                    cpl_table_get_column_min(order_table,<span class="stringliteral">"ORDER"</span>),</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>                    <span class="stringliteral">"minimum order number"</span>,</div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span> </div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>                    <span class="stringliteral">"QC ORDMAX"</span>,</div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>                    cpl_table_get_column_max(order_table,<span class="stringliteral">"ORDER"</span>),</div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>                    <span class="stringliteral">"maximum order number"</span>,</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span> </div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span> </div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>   <span class="keywordflow">if</span> (flames) {</div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span> <span class="comment">stat/ima {wlc} {SESSOUTV}</span></div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span> <span class="comment">tot_int = outputr(7)</span></div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span> <span class="comment">exp_time = {{wlc},{h_dit1}}</span></div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span> <span class="comment">rel_int = tot_int / exp_time</span></div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span> </div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>      ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>                   <span class="stringliteral">"QC FIB1 ABSTRANS"</span>,</div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>                   cpl_table_get_column_max(order_table,<span class="stringliteral">"ORDER"</span>),</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>                   <span class="stringliteral">"abs. trans. countrate"</span>,</div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>                   <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>      <span class="comment">/*</span></div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span> <span class="comment">@p flames_check_sat_lev {wlc} {DRS_PTHRE_MIN} {DRS_PTHRE_MAX}</span></div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span> <span class="comment">sat_lev = {q1}</span></div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span> <span class="comment">n_hpix  = {q2}</span></div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span> </div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>                  <span class="stringliteral">"QC NHOTPIX"</span>,</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>                  cpl_table_get_column_max(order_table,<span class="stringliteral">"ORDER"</span>),</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>                  <span class="stringliteral">"no. of hot pixels"</span>,</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>                  <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span> </div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span> </div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>                  <span class="stringliteral">"QC PLATENO"</span>,</div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>                  plate_no,</div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>                  <span class="stringliteral">"Plate Id."</span>,</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>                  <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>   }</div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span> </div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>   <span class="comment">/* The number of orders predicted is already written to another</span></div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span> <span class="comment">     keyword, and this is not need for QC logging, so it is commented out</span></div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span> <span class="comment">  uves_qclog_add_int(qclog,"QC NORDGUE",???,"No of predicted orders","%d");</span></div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span> </div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>  cleanup:</div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>   uves_free_table(&xline_table);</div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span> </div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>   <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>     <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span> </div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span> </div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>   }</div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span> </div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span> </div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span> </div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span> }</div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span> </div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span> </div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span> </div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span> </div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span> uves_physmod_qclog_sc(<span class="keyword">const</span> <span class="keywordtype">double</span> med_dx, </div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>                       <span class="keyword">const</span> <span class="keywordtype">double</span> med_dy,</div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>                       <span class="keyword">const</span> <span class="keywordtype">double</span> avg_dx,</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>                       <span class="keyword">const</span> <span class="keywordtype">double</span> avg_dy,</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>                       <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>                       <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *ref_header,</div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>                       <span class="keyword">enum</span>  uves_chip chip,</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>                       <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> iter,</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>                       cpl_table* qclog)</div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span> {</div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span> </div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>   <span class="keywordtype">char</span> key_value[25];</div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span> </div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>     <span class="keywordflow">if</span>(flames) {</div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>         ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>                     <span class="stringliteral">"QC TEST2 ID"</span>,</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>                     <span class="stringliteral">"Fibre-Stability-Check-Results"</span>,</div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>                     <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>                         <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>         ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>                     <span class="stringliteral">"QC TEST2 ID"</span>,</div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>                     <span class="stringliteral">"Stability-Check-Results"</span>,</div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>                     <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>                     <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>     }</div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>     </div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>               <span class="stringliteral">"QC MODEL ID"</span>,</div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>               <span class="stringliteral">"UVES_phys_mod/1.1.0"</span>,</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>               <span class="stringliteral">"Physmod Model Id"</span>,</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>               <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>     </div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>               <span class="stringliteral">"QC MODEL DATE"</span>,</div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>               <span class="stringliteral">"2000:03:18T00:00:00.000"</span>,</div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>               <span class="stringliteral">"Physmod Model Parameters Last Change"</span>,</div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>               <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span> </div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__qclog.html#ga66d1b116b78a6302ce5a2bb2d00c5d41" title="Write common QC parameters.">uves_qclog_add_common_wave</a>(raw_header,</div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>                                             chip, qclog) );</div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>     </div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span> </div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>               <span class="stringliteral">"QC REF PNAME"</span>,</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>               <a class="code" href="group__uves__pfits.html#ga2cc76a99674d90a86d9d7174f33dc893" title="find out the arcfile">uves_pfits_get_arcfile</a>(ref_header),</div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>               <span class="stringliteral">"Reference file name"</span>,</div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>               <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span> </div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>               <span class="stringliteral">"QC AMBI PRES"</span>,</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>               <a class="code" href="group__uves__pfits.html#gaabb5de1c212917f34b94de1c1587104d" title="find out the arcfile">uves_pfits_get_ambipress</a>(raw_header),</div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>               <span class="stringliteral">"Ambient pressure [mm] Hg."</span>,</div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>               <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span> </div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span> </div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>     <span class="keywordflow">if</span>(flames) {</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span> </div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>        sprintf(key_value,<span class="stringliteral">"%s%d"</span>,<span class="stringliteral">"QC MODEL ITER"</span>,iter);</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>        ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>                  key_value,</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>                  iter,</div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>                  <span class="stringliteral">"Model iteration"</span>,</div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>                  <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span> </div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span> </div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>     }</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span> </div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>   <span class="keywordflow">if</span>(iter == 1) {</div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>               <span class="stringliteral">"QC SHFTXAVG"</span>,</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>               avg_dx,</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>               <span class="stringliteral">"mean shift in x"</span>,</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>               <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span> </div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>               <span class="stringliteral">"QC SHFTXMED"</span>,</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>               med_dx,</div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>               <span class="stringliteral">"median shift in x"</span>,</div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>               <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span> </div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>               <span class="stringliteral">"QC SHFTYAVG"</span>,</div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>               avg_dy,</div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>               <span class="stringliteral">"mean shift in y"</span>,</div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>               <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span> </div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>               <span class="stringliteral">"QC SHFTYMED"</span>,</div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>               med_dy,</div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>               <span class="stringliteral">"median shift in y"</span>,</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>               <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span> </div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>   }</div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>  cleanup:</div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span> </div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>   <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>     <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>   }</div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span> }</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span> </div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span> </div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span> </div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span> </div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span> flames_get_physmod_shift(<span class="keyword">const</span> <span class="keywordtype">int</span> plate_no,</div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>                          <span class="keyword">const</span> <span class="keywordtype">int</span> wavec,</div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>                          <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>                          <span class="keywordtype">double</span>* trans_x,</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>                          <span class="keywordtype">double</span>* trans_y,</div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>                          <span class="keywordtype">double</span>* rot_1,</div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>                          <span class="keywordtype">double</span>* rot_2,</div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>                          <span class="keywordtype">double</span>* rot_3)</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span> {</div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span> </div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>   <span class="comment">//For the moment rot angle default is assumed always 0,0,0</span></div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>   *rot_1=0;</div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>   *rot_2=0;</div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>   *rot_3=0;</div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span> </div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"plate_no=%d,wavec=%d,chip=%d"</span>,plate_no,wavec,chip);</div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>   <span class="keywordflow">switch</span>(plate_no){</div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span> </div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>   <span class="keywordflow">case</span> 1:</div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>     <span class="keywordflow">if</span>(chip==UVES_CHIP_REDL) {</div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>       <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span> </div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>       <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>     *trans_x=-15.330;</div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>     *trans_y=-40.461;</div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case 520 REDL pt1"</span>);</div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span> </div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>       <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>     *trans_x=-17.972;</div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>     *trans_y=-39.200;</div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case 580 REDL pt1"</span>);</div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span> </div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>       <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>     *trans_x=-12.212;</div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>     *trans_y=-49.370;</div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case 860 REDL pt1"</span>);</div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span> </div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>       }</div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span> </div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>       <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span> </div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>       <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>     *trans_x=-14.237;</div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>     *trans_y=-40.337;</div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case 520 REDU pt1"</span>);</div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span> </div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>       <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>     *trans_x=-14.738;</div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>     *trans_y=-38.831;</div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case 580 REDU pt1"</span>);</div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span> </div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>       <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>     *trans_x=-08.253;</div>
-<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>     *trans_y=-45.385;</div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case 860 REDU pt1"</span>);</div>
-<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span> </div>
-<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>       }</div>
-<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>   </div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>     }</div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span> </div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span> </div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>   <span class="keywordflow">case</span> 2:</div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>     <span class="keywordflow">if</span>(chip==UVES_CHIP_REDL) {</div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span> </div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>     <span class="keywordflow">case</span> UVES_CHIP_REDL:</div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>       <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span> </div>
-<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>       <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>     *trans_x=+10.136;</div>
-<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>     *trans_y=-41.420;</div>
-<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case 520 REDL pt2"</span>);</div>
-<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span> </div>
-<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>       <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>     *trans_x=+09.000;</div>
-<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>     *trans_y=-38.289;</div>
-<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case 580 REDL pt2"</span>);</div>
-<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span> </div>
-<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>       <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>     *trans_x=+16.386;</div>
-<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>     *trans_y=-47.519;</div>
-<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case 860 REDL pt2"</span>);</div>
-<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span> </div>
-<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>       }</div>
-<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span> </div>
-<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span> </div>
-<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>       <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span> </div>
-<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>       <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>     *trans_x=+12.244;</div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>     *trans_y=-41.970;</div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case 520 REDU pt2"</span>);</div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span> </div>
-<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>       <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>     *trans_x=+12.023;</div>
-<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>     *trans_y=-38.165;</div>
-<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case 580 REDU pt2"</span>);</div>
-<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span> </div>
-<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>       <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>     *trans_x=+18.241;</div>
-<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>     *trans_y=-43.889;</div>
-<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case 860 REDU pt2"</span>);</div>
-<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span> </div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>       }</div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span> </div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>     }</div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span> </div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span> </div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>   <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>     *trans_x=0;</div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>     *trans_y=0;</div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>   </div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span> </div>
-<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span> </div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>   }</div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span> </div>
-<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span> </div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Physical Model shifts trans=%f,%f rot=%f,%f,%f"</span>,</div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>        *trans_x,*trans_y,*rot_1,*rot_2,*rot_3);</div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span> }</div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span> </div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span> </div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__body_8h_source.html b/html/uves__physmod__body_8h_source.html
deleted file mode 100644
index 319ef2e..0000000
--- a/html/uves__physmod__body_8h_source.html
+++ /dev/null
@@ -1,122 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_body.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_body.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:06 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.3  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.2  2006/10/26 14:03:50  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Fixed position of const modifier</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.1  2006/10/24 14:09:58  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Factored out common UVES/FLAMES code</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.10  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_BODY_H</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_BODY_H</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> uves_physmod_define_parameters_body(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> uves_physmod_exe_body(cpl_frameset *frames,</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>               <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>               <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime);</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_physmod_desc_short;</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_physmod_desc;</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PHYSMOD_BODY_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__calmap_8c_source.html b/html/uves__physmod__calmap_8c_source.html
deleted file mode 100644
index d9c90de..0000000
--- a/html/uves__physmod__calmap_8c_source.html
+++ /dev/null
@@ -1,275 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_calmap.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_calmap.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-03-02 16:38:18 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.22 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <uves_physmod_calmap.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <uves_physmod_regress_echelle.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <uves_wavecal_utils.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#ga3a452c20f5d130b0184d0f61962e83f9">   68</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod.html#ga3a452c20f5d130b0184d0f61962e83f9" title="This procedure makes the order definitions and wavelength calibration from the wavelength projection ...">uves_physmod_calmap</a>(<span class="keyword">const</span> <a class="code" href="struct__uve [...]
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>             <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>             <span class="keyword">const</span> cpl_parameterlist* parameters, </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>             cpl_table* npline_tbl,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>             cpl_table** ord_tbl,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>             cpl_table** lin_tbl,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>             cpl_table** w_tbl,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>             cpl_table** s_tbl,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>             <span class="keywordtype">int</span>* abs_ord_min,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>             <span class="keywordtype">int</span>* abs_ord_max,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>             <a class="code" href="struct__polynomial.html">polynomial</a>** poly2d)</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> {</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>   <span class="keywordtype">int</span> rel_ord=0;</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>   <span class="keywordtype">int</span> ord_min=0;</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>   <span class="keywordtype">int</span> ord_max=0;</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>   <span class="keywordtype">int</span> ord_ech=0;</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>   <span class="keywordtype">double</span> dis_avg=0;</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* plist=NULL;</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>   <a class="code" href="struct__polynomial.html">polynomial</a>* poly1d=NULL;</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>   <span class="keywordtype">double</span> mean_err_aux=0;</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>   <span class="keywordtype">double</span> mean_err_order=0;</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>   <span class="keywordtype">int</span> num_outliers=0;</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>   <span class="keywordtype">double</span> tol=0;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>   <span class="keywordtype">double</span> kappa=0.;</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>   <span class="keywordtype">double</span> outputd[3];</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"start calmap"</span>);</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_parameter(parameters,NULL,recipe_id,<span class="stringliteral">"kappa"</span>,CPL_TYPE_DOUBLE,&kappa), </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_get_parameter(parameters,NULL,recipe_id,<span class="stringliteral">"tol"</span>,CPL_TYPE_DOUBLE,&tol), </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>   cpl_table_erase_invalid_rows(npline_tbl);</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"nraw=%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,cpl_table_get_nrow(npline_tbl));</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>   *ord_tbl=cpl_table_new(cpl_table_get_nrow(npline_tbl));</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>   cpl_table_duplicate_column(*ord_tbl,<span class="stringliteral">"ABS_ORDER"</span>,npline_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>   cpl_table_duplicate_column(*ord_tbl,<span class="stringliteral">"ORDER"</span>,npline_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>   cpl_table_duplicate_column(*ord_tbl,<span class="stringliteral">"X"</span>,npline_tbl,<span class="stringliteral">"XMOD"</span>);</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>   cpl_table_duplicate_column(*ord_tbl,<span class="stringliteral">"Y"</span>,npline_tbl,<span class="stringliteral">"YMOD"</span>);</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>  </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>   <span class="comment">/* </span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">  cpl_table_dump(*ord_tbl,0,20,stdout);</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment">  OLD VERSION: (WRONG)</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">  rel_ord = cpl_table_get_int(*ord_tbl,"ORDER",0,&status);</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>   rel_ord = cpl_table_get_column_max(*ord_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"relative order=%d"</span>,rel_ord);</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>   cpl_table_multiply_scalar(*ord_tbl,<span class="stringliteral">"ORDER"</span>,-1);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>   cpl_table_add_scalar(*ord_tbl,<span class="stringliteral">"ORDER"</span>,rel_ord);</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>   cpl_table_add_scalar(*ord_tbl,<span class="stringliteral">"ORDER"</span>,+1);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>   plist=<a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>   uves_propertylist_append_bool(plist,<span class="stringliteral">"ORDER"</span>,0);  <span class="comment">/* 0 for ascending order */</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>   uves_propertylist_append_bool(plist,<span class="stringliteral">"X"</span>,0);      <span class="comment">/* 1 for descending order */</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>   uves_table_sort(*ord_tbl,plist);</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>   uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>   *abs_ord_min=cpl_table_get_column_min(*ord_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>   *abs_ord_max=cpl_table_get_column_max(*ord_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>   ord_ech=*abs_ord_max-*abs_ord_min+1;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Orders: max %d min %d  No %d"</span>,</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>            *abs_ord_max,*abs_ord_min,(*abs_ord_max-*abs_ord_min+1));</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>   <a class="code" href="group__uves__physmod.html#ga6cbdcd8eb1c7f25749c51874d79e4e83" title="Fit mesured position of orders by a bivariate polynomial.">uves_physmod_regress_echelle</a>(raw_header,chip,</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>                    recipe_id,parameters,</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>                                ord_tbl,num_outliers, </div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>                                tol, kappa,s_tbl,w_tbl);</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>   <span class="comment">/* we skip  prepare/background */</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>   uves_free_table(lin_tbl);</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>   *lin_tbl=cpl_table_new(cpl_table_get_nrow(npline_tbl));</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>   cpl_table_duplicate_column(*lin_tbl,<span class="stringliteral">"X"</span>,npline_tbl,<span class="stringliteral">"XMOD"</span>);</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>   cpl_table_duplicate_column(*lin_tbl,<span class="stringliteral">"Y"</span>,npline_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>   cpl_table_duplicate_column(*lin_tbl,<span class="stringliteral">"PEAK"</span>,npline_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>   cpl_table_duplicate_column(*lin_tbl,<span class="stringliteral">"Ident"</span>,npline_tbl,<span class="stringliteral">"IDENT"</span>);</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>   cpl_table_duplicate_column(*lin_tbl,<span class="stringliteral">"YNEW"</span>,npline_tbl,<span class="stringliteral">"YMOD"</span>);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   cpl_table_duplicate_column(*lin_tbl,<span class="stringliteral">"Order"</span>,npline_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>   cpl_table_duplicate_column(*lin_tbl,<span class="stringliteral">"WAVEC"</span>,npline_tbl,<span class="stringliteral">"IDENT"</span>);</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>   cpl_table_duplicate_column(*lin_tbl,<span class="stringliteral">"AUX"</span>,npline_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>   cpl_table_cast_column(*lin_tbl,<span class="stringliteral">"AUX"</span>,<span class="stringliteral">"Aux"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>   cpl_table_multiply_columns(*lin_tbl,<span class="stringliteral">"Aux"</span>,<span class="stringliteral">"Ident"</span>);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>   cpl_table_erase_column(*lin_tbl,<span class="stringliteral">"AUX"</span>);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>   cpl_table_set_column_unit(*lin_tbl,<span class="stringliteral">"WAVEC"</span>,<span class="stringliteral">"Ang"</span>);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>   cpl_table_set_column_unit(*lin_tbl,<span class="stringliteral">"YNEW"</span>,<span class="stringliteral">"pix"</span>);</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>   cpl_table_set_column_unit(*lin_tbl,<span class="stringliteral">"Ident"</span>,<span class="stringliteral">"Ang"</span>);</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>   <span class="comment">/* we check that the product Aux=ORDER*Ident=m*lambda=d*sin(alpha) is a</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment">     constant as is expected in a grating. A non constant product is an </span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment">     indication of detector rotation (this is the case: the product is </span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment">     not exacly constant).</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(poly1d=<a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d</a>(*lin_tbl,<span class="stringliteral">"X"</span>,<span class="stringliteral">"Aux"</span>,NULL,</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>                          3,<span class="stringliteral">"XREG"</span>,NULL,</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>                          &mean_err_aux,-1),</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>                                          <span class="stringliteral">"Fitting YDIF failed"</span>);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>   cpl_table_set_column_unit(*lin_tbl,<span class="stringliteral">"XREG"</span>,<span class="stringliteral">"pix"</span>);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>   cpl_table_set_column_unit(*lin_tbl,<span class="stringliteral">"X"</span>,<span class="stringliteral">"pix"</span>);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>   <span class="comment">/* NOTE THAT XREG is NOT an output column from MIDAS: should we remove it? */</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>   outputd[0]=<a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(poly1d,0);</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>   outputd[1]=<a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(poly1d,1);</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>   outputd[2]=<a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(poly1d,2);</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>   ord_min=cpl_table_get_column_min(*lin_tbl,<span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>   ord_max=cpl_table_get_column_max(*lin_tbl,<span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"output0=%f output1=%f output2=%f"</span>,</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>            outputd[0],outputd[1],outputd[2]);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"ord_max=%d ord_min=%d"</span>,ord_max,ord_min);</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>   cpl_table_duplicate_column(*lin_tbl,LINETAB_PIXELSIZE,*lin_tbl,<span class="stringliteral">"X"</span>);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>   cpl_table_multiply_scalar(*lin_tbl,LINETAB_PIXELSIZE,2*outputd[2]);</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>   cpl_table_add_scalar(*lin_tbl,LINETAB_PIXELSIZE,outputd[1]);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>   cpl_table_divide_columns(*lin_tbl,LINETAB_PIXELSIZE,<span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>  </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>    dis_avg=cpl_table_get_column_mean(*lin_tbl,LINETAB_PIXELSIZE);</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Average pixel size: %f wav. units"</span>,dis_avg);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>  </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>  </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(*poly2d=<a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(*lin_tbl,<span class="stringliteral">"X"</span>,<span class="stringliteral">"YNEW"</span>,<span class="stringliteral">" [...]
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>                          NULL,4,4,<span class="stringliteral">"RORD"</span>,NULL,NULL,</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>                          &mean_err_order,NULL,NULL,-1,-1),</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>                                          <span class="stringliteral">"Fitting Order failed"</span>);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>   <span class="comment">/* NOTE THAT RORD is NOT an output column from MIDAS: should we remove it? */</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment">save/regr    {LINTAB} RORD KEYLONG</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>   <span class="comment">/* SHOULD WE SAVE RORD somewhere? */</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>   <span class="comment">/* This saves the current section and parameters and tables: generates</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment">     {P3}LINE.tbl {P3}ORDE.tbl {P3}back.tbl</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment"></span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment">save/echelle  {P3} >Null</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment">set/echelle   wlcmtd=guess guess={P3} </span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Line Table: ncol=%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,cpl_table_get_ncol(*lin_tbl));</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>   cleanup:</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>   uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>   <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&poly1d);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>   </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"end calmap"</span>);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__calmap_8h_source.html b/html/uves__physmod__calmap_8h_source.html
deleted file mode 100644
index 9ef9fb5..0000000
--- a/html/uves__physmod__calmap_8h_source.html
+++ /dev/null
@@ -1,132 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_calmap.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_calmap.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 13:55:28 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.9 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.8  2010/09/24 09:32:06  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/10/24 14:12:24  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Parametrized recipe id to support FLAMES recipe</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/10/05 11:16:41  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Declared parameter list const</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/06/29 07:32:05  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * removed warning from make html</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.3  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_CALMAP_H</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_CALMAP_H</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod.html#ga3a452c20f5d130b0184d0f61962e83f9" title="This procedure makes the order definitions and wavelength calibration from the wavelength projection ...">uves_physmod_calmap</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header, </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>             <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>             <span class="keyword">const</span> cpl_parameterlist* parameters, </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>             cpl_table* npline_tbl,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>             cpl_table** ord_tbl,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>             cpl_table** lin_tbl,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>             cpl_table** w_tbl,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>             cpl_table** s_tbl,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>             <span class="keywordtype">int</span>* abs_ord_min,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>             <span class="keywordtype">int</span>* abs_ord_max,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>             <a class="code" href="struct__polynomial.html">polynomial</a>** poly2d);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PHYSMOD_CALMAP_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__center__gauss_8c_source.html b/html/uves__physmod__center__gauss_8c_source.html
deleted file mode 100644
index 036be74..0000000
--- a/html/uves__physmod__center__gauss_8c_source.html
+++ /dev/null
@@ -1,515 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_center_gauss.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_center_gauss.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2010-09-24 09:32:06 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.14 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Revision 1.12  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Revision 1.11  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Revision 1.10  2007/03/19 13:48:54  jmlarsen</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> * Added some error handling</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Revision 1.9  2006/11/15 15:02:14  jmlarsen</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Revision 1.7  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Revision 1.6  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Revision 1.5  2006/08/23 15:41:06  amodigli</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> * removed warning from checks on line length</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Revision 1.4  2006/08/07 11:30:55  jmlarsen</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> * Added debugging statments</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Revision 1.3  2006/06/20 10:56:56  amodigli</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> * cleaned output, added units</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Revision 1.2  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Revision 1.8  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Revision 1.7  2006/01/13 13:43:15  jmlarsen</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * Removed memory leak</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.6  2006/01/13 09:54:42  amodigli</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * Fixed some bugs: improved agreement with MIDAS version</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Revision 1.5  2006/01/05 14:29:59  jmlarsen</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * Removed newline characters from output strings</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Revision 1.4  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor">#include <uves_physmod_center_gauss.h></span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor">#include <uves_physmod_cstacen.h></span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#ga97331f20ee8993be30fa7a155a463fb2">  138</a></span> <a class="code" href="group__uves__physmod.html#ga97331f20ee8993be30fa7a155a463fb2" title="Fit the image line X and Y distributions with a Gaussian in a box.">uves_physmod_center_gauss</a>(<span class="keyword">const</span> cpl_image * raw_image,cpl_table** m_tbl)</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> {</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>   <span class="comment">/* Derived from MIDAS center.for, only in case input is ima,table and</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment">     method is Gauss</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>   <span class="keywordtype">int</span> nraw=0;</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>   <span class="keywordtype">double</span> px_start=0;</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>   <span class="keywordtype">double</span> py_start=0;</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>   <span class="keywordtype">double</span> px_end=0;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>   <span class="keywordtype">double</span> py_end=0;</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>   <span class="keywordtype">int</span> img_llx=0;</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>   <span class="keywordtype">int</span> img_lly=0;</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>   <span class="keywordtype">int</span> img_urx=0;</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>   <span class="keywordtype">int</span> img_ury=0;</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>   <span class="keywordtype">int</span> img_sx=0;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>   <span class="keywordtype">int</span> img_sy=0;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   <span class="keywordtype">double</span> tmp_val=0;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>   <span class="keywordtype">double</span>* x_mod=NULL;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>   <span class="keywordtype">double</span>* y_mod=NULL;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>   <span class="keywordtype">int</span> status=0;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>   <span class="keywordtype">double</span>* x_cen=NULL;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>   <span class="keywordtype">double</span>* y_cen=NULL;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>   <span class="keywordtype">double</span>* x_err=NULL;</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>   <span class="keywordtype">double</span>* y_err=NULL;</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>   <span class="keywordtype">double</span>* x_start=NULL;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>   <span class="keywordtype">double</span>* y_start=NULL;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>   <span class="keywordtype">double</span>* x_end=NULL;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>   <span class="keywordtype">double</span>* y_end=NULL;</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>   <span class="keywordtype">double</span>* icent=0;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>   <span class="keywordtype">double</span>* x_sig=NULL;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>   <span class="keywordtype">double</span>* y_sig=NULL;</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>   <span class="keywordtype">double</span>* x_fwhm=NULL;</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>   <span class="keywordtype">double</span>* y_fwhm=NULL;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>   <span class="keywordtype">int</span> img_ofx=0;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>   <span class="keywordtype">int</span> img_ofy=0;</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>   <span class="keywordtype">int</span> img_buf1=0;</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>   <span class="keywordtype">int</span> img_buf2=0;</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>   <span class="keywordtype">int</span> img_buf3=0;</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>   </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>   <span class="keywordtype">int</span> img_szx=0;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>   <span class="keywordtype">int</span> img_szy=0;</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>   <span class="keywordtype">float</span> xout=0;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   <span class="keywordtype">float</span> yout=0;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>   <span class="keywordtype">float</span> xerr=0;</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>   <span class="keywordtype">float</span> yerr=0;</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>   <span class="keywordtype">float</span> xsig=0;</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>   <span class="keywordtype">float</span> ysig=0;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>   <span class="keywordtype">float</span> amp=0;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>   <span class="keywordtype">double</span> xfwhm=0;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>   <span class="keywordtype">double</span> yfwhm=0;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>   <span class="keywordtype">double</span> ang=0.;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>   <span class="keywordtype">double</span> ang_sig=0.;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>   <span class="keywordtype">double</span> rv=0.;</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>   <span class="keywordtype">int</span> kstat=0;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>   <span class="keywordtype">int</span> cpix[5]={0,0,0,0,0};</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>   <span class="keywordtype">double</span> STEP[3]={1.0,1.0,1.0};</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>   <span class="keywordtype">int</span> NPIX=0;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>   <span class="keywordtype">float</span>* sima;</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>   cpl_image* img_sub=NULL;</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>   cpl_image* img_cst=NULL;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>   <span class="keywordtype">int</span> ok=0;</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>   <span class="keywordtype">int</span> nok=0;</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>   <span class="keywordtype">int</span> nf=0;</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(nraw = cpl_table_get_nrow(*m_tbl), <span class="stringliteral">"Error getting nraw"</span>);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>   cpl_table_new_column(*m_tbl,<span class="stringliteral">"XCEN"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>   cpl_table_new_column(*m_tbl,<span class="stringliteral">"YCEN"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>   cpl_table_new_column(*m_tbl,<span class="stringliteral">"ICENT"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>   cpl_table_new_column(*m_tbl,<span class="stringliteral">"XSIG"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>   cpl_table_new_column(*m_tbl,<span class="stringliteral">"YSIG"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>   cpl_table_new_column(*m_tbl,<span class="stringliteral">"XFWHM"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>   cpl_table_new_column(*m_tbl,<span class="stringliteral">"YFWHM"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>   cpl_table_new_column(*m_tbl,<span class="stringliteral">"XERR"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>   cpl_table_new_column(*m_tbl,<span class="stringliteral">"YERR"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>   icent = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"ICENT"</span>);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>   x_mod = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"XMOD"</span>);</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>   y_mod = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"YMOD"</span>);</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>   x_err = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"XERR"</span>);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>   y_err = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"YERR"</span>);</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>   x_start = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"XSTART"</span>);</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>   y_start = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"YSTART"</span>);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>   x_end   = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"XEND"</span>);</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>   y_end   = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"YEND"</span>);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>   x_cen = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"XCEN"</span>);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>   y_cen = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"YCEN"</span>);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>   x_sig = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"XSIG"</span>);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>   y_sig = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"YSIG"</span>);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>   x_fwhm = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"XFWHM"</span>);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>   y_fwhm = cpl_table_get_data_double(*m_tbl,<span class="stringliteral">"YFWHM"</span>);</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>   </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>   cpl_table_new_column(*m_tbl,<span class="stringliteral">"STATUS"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cpl_table_set_column_invalid(*m_tbl,<span class="stringliteral">"STATUS"</span>,0,</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                                             cpl_table_get_nrow(*m_tbl)));</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>   cpl_table_set_column_invalid(*m_tbl,<span class="stringliteral">"ICENT"</span>,0,</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                             cpl_table_get_nrow(*m_tbl));</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>   cpl_table_set_column_invalid(*m_tbl,<span class="stringliteral">"XCEN"</span>,0,</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                             cpl_table_get_nrow(*m_tbl));</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>   cpl_table_set_column_invalid(*m_tbl,<span class="stringliteral">"YCEN"</span>,0,</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                             cpl_table_get_nrow(*m_tbl));</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>   cpl_table_set_column_invalid(*m_tbl,<span class="stringliteral">"XSIG"</span>,0,</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>                             cpl_table_get_nrow(*m_tbl));</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>   cpl_table_set_column_invalid(*m_tbl,<span class="stringliteral">"YSIG"</span>,0,</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                             cpl_table_get_nrow(*m_tbl));</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>   cpl_table_set_column_invalid(*m_tbl,<span class="stringliteral">"XFWHM"</span>,0,</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>                             cpl_table_get_nrow(*m_tbl));</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>   cpl_table_set_column_invalid(*m_tbl,<span class="stringliteral">"YFWHM"</span>,0,</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>                             cpl_table_get_nrow(*m_tbl));</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>   <span class="comment">/* We loop over each table raw and get box edges */</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>   <span class="comment">/* one should skip selected raws */</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>   nf=0;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>   <span class="keywordflow">for</span>(i=0;i<nraw;i++) { </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     <span class="comment">/* get box edges */</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     px_start=cpl_table_get_double(*m_tbl,<span class="stringliteral">"XSTART"</span>,i,&status);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     py_start=cpl_table_get_double(*m_tbl,<span class="stringliteral">"YSTART"</span>,i,&status);</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     px_end=cpl_table_get_double(*m_tbl,<span class="stringliteral">"XEND"</span>,i,&status);</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     py_end=cpl_table_get_double(*m_tbl,<span class="stringliteral">"YEND"</span>,i,&status);</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     img_llx=floor(px_start+0.5);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     img_lly=floor(py_start+0.5);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     img_urx=floor(px_end+0.5);</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     img_ury=floor(py_end+0.5);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     img_szx=cpl_image_get_size_x(raw_image);</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     img_szy=cpl_image_get_size_y(raw_image);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="comment">    if(i==167 || i==485) {</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="comment">      uves_msg(">>>>>>>>>>>>>>>>i=%d",i);</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="comment">    }</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="keywordflow">if</span>(img_llx < 1 || img_urx > img_szx || </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>        img_lly < 1 || img_ury > img_szy) {</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>       <span class="comment">/* </span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="comment">     uves_msg("SSSSSSSSSSSSSSSSSSi=%d",i);</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="comment">      */</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>       <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>       }</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="comment">    img_llx=( img_llx >= 1 ) ? img_llx : 1;</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="comment">    img_lly=( img_lly >= 1 ) ? img_lly : 1;</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment">    img_urx=( img_urx <= img_szx ) ? img_urx : img_szx;</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment">    img_ury=( img_ury <= img_szy ) ? img_ury : img_szy;</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     img_sx=img_urx-img_llx+1;</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     img_sy=img_ury-img_lly+1;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     img_ofx=img_llx-1;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     img_ofy=img_lly-1;</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     <span class="comment">/* we get NPIX */</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     img_buf1=NPIX;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     img_buf2=img_sy;</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     img_buf3=1;</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <span class="comment">/* initialize centering algorithm */</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     cpix[0]=1;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     cpix[1]=img_sx;</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     cpix[2]=1;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     cpix[3]=img_sy;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Box %d %d %d %d %d"</span>,nf,img_llx,img_urx,img_lly,img_ury);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="comment">    check(img_sub =cpl_image_extract(raw_image,img_llx,img_lly,img_urx,img_ury);</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment">      img_cst = cpl_image_cast(img_sub,CPL_TYPE_FLOAT),</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="comment">      sima = cpl_image_get_data_float(img_cst),</span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment">    "error img_sub");</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     uves_free_image(&img_sub);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     img_sub =cpl_image_extract(raw_image,img_llx,img_lly,img_urx,img_ury);</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     uves_free_image(&img_cst);</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     img_cst = cpl_image_cast(img_sub,CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     sima = cpl_image_get_data_float(img_cst);</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>       <span class="comment">/*</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment"> for(i=0;kk<img_sx*img_sy;kk++) {</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="comment">    uves_msg("Image[%d]=%f",kk,sima[kk]);</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> <span class="comment"> }</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> <span class="comment">      */</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"stacen nf=%d cpix=%d %d %d %d"</span>,nf,cpix[0],cpix[1],cpix[2],cpix[3]);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     <a class="code" href="group__uves__physmod__cstacen.html#ga07c91aa64ccf1d26ec66969f4eff03ba" title="Routines used to do Gaussian fit to a line.">uves_physmod_stacen</a>(sima,img_sx,img_sy,<span class="charliteral">'G'</span>,cpix,</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>             &xout,&yout,&xerr,&yerr,&xsig,&ysig,&amp,&kstat);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"nf=%d,xout=%f,yout=%f,xerr=%f,yerr=%f"</span>,nf,xout,yout,xerr,yerr);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"xsig=%f,ysig=%f,xfwhm=%f,yfwhm=%f"</span>,xsig,ysig,xfwhm,yfwhm);</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"amp=%f,kstat=%d"</span>,amp,kstat);</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     rv=0.;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     ang=0.;</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     ang_sig=0.;</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     <span class="keywordflow">if</span> (i<0) {</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Min=%f,Max=%f"</span>,cpl_image_get_min(img_sub),</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>                              cpl_image_get_max(img_sub));</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"llx=%d,lly=%d,urx=%d,ury=%d"</span>,img_llx,img_lly,img_urx,img_ury);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"sx=%d,sy=%d,ofx=%d,ofy=%d"</span>,img_sx,img_sy,img_ofx,img_ofy);</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"img_sx=%d,img_sy=%d,cpix[0]=%d,cpix[1]=%d,cpix[2]=%d,cpix[3]=%d"</span>,</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>            img_sx,img_sy,cpix[0],cpix[1],cpix[2],cpix[3]);</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"i=%d,xout=%f,yout=%f,xerr=%f,yerr=%f"</span>,nf,xout,yout,xerr,yerr);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"xsig=%f,ysig=%f,xfwhm=%f,yfwhm=%f,amp=%f,kstat=%d"</span>,xsig,ysig,xfwhm,yfwhm,amp,kstat);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>    </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     }</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     <span class="comment">/* check status */</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     <span class="keywordflow">if</span>(kstat == 0) {</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>       xerr=xerr*fabs(STEP[1]);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>       xsig=xsig*fabs(STEP[1]);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>       xfwhm=xsig*TWOSQRT2LN2;  <span class="comment">/* MIDAS: 2.35482 */</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>       yerr=yerr*fabs(STEP[2]);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>       ysig=ysig*fabs(STEP[2]);</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>       yfwhm=ysig*TWOSQRT2LN2;  <span class="comment">/* MIDAS: 2.35482 */</span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>       ok++;</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>       tmp_val=cpl_table_get_double(*m_tbl,<span class="stringliteral">"IDENT"</span>,i,&status);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>       tmp_val-=1;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>       tmp_val/=1000.;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>       xerr=0.;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>       xsig=0.;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>       xfwhm=0.;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>       yerr=0.;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>       ysig=0.;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>       yfwhm=0.;</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>       nok++;</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>       <span class="comment">/* we assume that not using IQUE function kstatus >=0 */</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>     }</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"nf=%d %f %f %f %f %f %d"</span>,nf,xout,yout,xsig,ysig,amp,kstat);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     <span class="comment">/* we write results in table */</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     <span class="comment">/* we check if FWHM makes sense */</span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     <span class="keywordflow">if</span>( (xfwhm > img_sx *fabs(STEP[1])) || (yfwhm > img_sy *fabs(STEP[2])) ) {</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>       kstat = 4;</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     }</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     <span class="keywordflow">if</span> ( (xfwhm < 0.0) || (yfwhm < 0.0) ) {</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>       kstat = 5;</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     }</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>    </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     <span class="comment">/* to debug: 0-->NN>0 */</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     <span class="keywordflow">if</span> (i<0) {</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Min=%f,Max=%f"</span>,cpl_image_get_min(img_sub),</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>                              cpl_image_get_max(img_sub));</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"llx=%d,lly=%d,urx=%d,ury=%d"</span>,img_llx,img_lly,img_urx,img_ury);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"sx=%d,sy=%d,ofx=%d,ofy=%d"</span>,img_sx,img_sy,img_ofx,img_ofy);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"img_sx=%d,img_sy=%d,cpix[0]=%d,cpix[1]=%d,cpix[2]=%d,cpix[3]=%d"</span>,</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>            img_sx,img_sy,cpix[0],cpix[1],cpix[2],cpix[3]);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"i=%d,xout=%f,yout=%f,xerr=%f,yerr=%f"</span>,i,xout,yout,xerr,yerr);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"xsig=%f,ysig=%f,xfwhm=%f,yfwhm=%f,amp=%f,kstat=%d"</span>,xsig,ysig,xfwhm,yfwhm,amp,kstat);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>    </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     }</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> </div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>      cpl_table_set_double(*m_tbl,<span class="stringliteral">"IDENT"</span>,i,tmp_val);</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>      cpl_table_set_double(*m_tbl,<span class="stringliteral">"ICENT"</span>,i,(<span class="keywordtype">double</span>)amp);</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>      cpl_table_set_double(*m_tbl,<span class="stringliteral">"XERR"</span>,i,(<span class="keywordtype">double</span>)xerr);</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>      cpl_table_set_double(*m_tbl,<span class="stringliteral">"YERR"</span>,i,(<span class="keywordtype">double</span>)yerr);</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> </div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>      cpl_table_set_double(*m_tbl,<span class="stringliteral">"XCEN"</span>,i,(<span class="keywordtype">double</span>)(xout+img_ofx));</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>      cpl_table_set_double(*m_tbl,<span class="stringliteral">"YCEN"</span>,i,(<span class="keywordtype">double</span>)(yout+img_ofy));</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>      cpl_table_set_double(*m_tbl,<span class="stringliteral">"XSIG"</span>,i,(<span class="keywordtype">double</span>)xsig);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>      cpl_table_set_double(*m_tbl,<span class="stringliteral">"YSIG"</span>,i,(<span class="keywordtype">double</span>)ysig);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>      cpl_table_set_double(*m_tbl,<span class="stringliteral">"XFWHM"</span>,i,(<span class="keywordtype">double</span>)xfwhm);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>      cpl_table_set_double(*m_tbl,<span class="stringliteral">"YFWHM"</span>,i,(<span class="keywordtype">double</span>)yfwhm);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>      cpl_table_set_int   (*m_tbl,<span class="stringliteral">"STATUS"</span>,i,kstat);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>      nf=nf+1;</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>   }</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>   <span class="keywordflow">if</span> (<span class="keyword">false</span>)   <span class="comment">/* Debugging... */</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>       {</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>       cpl_table *dum = cpl_table_new(cpl_table_get_nrow(*m_tbl));</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>       </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>       cpl_table_duplicate_column(dum,<span class="stringliteral">"STAT"</span>,*m_tbl,<span class="stringliteral">"STATUS"</span>);</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>       </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"xcen = %f"</span>, cpl_table_get_column_mean(*m_tbl, <span class="stringliteral">"XCEN"</span>));</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"ycen = %f"</span>, cpl_table_get_column_mean(*m_tbl, <span class="stringliteral">"YCEN"</span>));</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"xerr = %f"</span>, cpl_table_get_column_mean(*m_tbl, <span class="stringliteral">"XERR"</span>));</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"yerr = %f"</span>, cpl_table_get_column_mean(*m_tbl, <span class="stringliteral">"YERR"</span>));</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"xsig = %f"</span>, cpl_table_get_column_mean(*m_tbl, <span class="stringliteral">"XSIG"</span>));</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"ysig = %f"</span>, cpl_table_get_column_mean(*m_tbl, <span class="stringliteral">"YSIG"</span>));</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"xfwhm = %f"</span>, cpl_table_get_column_mean(*m_tbl, <span class="stringliteral">"XFWHM"</span>));</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"yfwhm = %f"</span>, cpl_table_get_column_mean(*m_tbl, <span class="stringliteral">"YFWHM"</span>));</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"icent = %f"</span>, cpl_table_get_column_mean(*m_tbl, <span class="stringliteral">"ICENT"</span>));</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"status = %f"</span>, cpl_table_get_column_mean(*m_tbl, <span class="stringliteral">"STATUS"</span>));</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>       </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> <span class="comment">//    cpl_table_dump(dum, 0, cpl_table_get_nrow(*m_tbl), stdout);</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>       }</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> </div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"nok=%d ok=%d"</span>,nok,ok);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>   cleanup:</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>   uves_free_image(&img_sub);</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>   uves_free_image(&img_cst);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__center__gauss_8h_source.html b/html/uves__physmod__center__gauss_8h_source.html
deleted file mode 100644
index 2841d12..0000000
--- a/html/uves__physmod__center__gauss_8h_source.html
+++ /dev/null
@@ -1,101 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_center_gauss.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_center_gauss.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Date: 2010-09-24 09:32:06 $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Revision: 1.4 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * Revision 1.2  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> * Revision 1.3  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_CENTER_GAUSS_H</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_CENTER_GAUSS_H</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod.html#ga97331f20ee8993be30fa7a155a463fb2" title="Fit the image line X and Y distributions with a Gaussian in a box.">uves_physmod_center_gauss</a>(<span class="keyword">const</span> cpl_image * raw_image,cpl_table** m_tbl);</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PHYSMOD_CENTER_GAUSS_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__chop__otab_8c_source.html b/html/uves__physmod__chop__otab_8c_source.html
deleted file mode 100644
index 8d5a499..0000000
--- a/html/uves__physmod__chop__otab_8c_source.html
+++ /dev/null
@@ -1,236 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_chop_otab.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_chop_otab.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> </div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.14 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Revision 1.12  2008/11/06 14:36:27  amodigli</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> * fixed mem leaks</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Revision 1.11  2008/05/13 08:44:32  amodigli</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> * added check on guess order table spectral format size</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Revision 1.10  2008/05/01 09:44:10  amodigli</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> * modify table after chop</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Revision 1.9  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Revision 1.8  2007/05/16 16:32:55  amodigli</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> * changed factor from 0.05to 0.075</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Revision 1.7  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Revision 1.6  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Revision 1.5  2006/07/28 14:51:26  amodigli</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> * fixed some bugs on improper table selection</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Revision 1.4  2006/06/05 08:51:55  amodigli</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> * cleaned some warnings from static checks</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Revision 1.3  2006/05/09 15:42:48  amodigli</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> * safer way to do selection</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Revision 1.2  2006/05/08 15:42:16  amodigli</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> * allow to specify order column label</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Revision 1.5  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.4  2006/01/16 08:01:57  amodigli</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Added stability check</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * Revision 1.3  2006/01/09 14:05:42  amodigli</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Fixed doxigen warnings</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Revision 1.2  2006/01/03 16:57:13  amodigli</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Fixed bug</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * Revision 1.1  2006/01/03 14:47:53  amodigli</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Added uves_physmod_chop_otab.h .c to match MIDAS</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.3  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor">#include <uves_physmod_chop_otab.h></span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#ga1aaabdd9a0e0412928a2345f63184f08">  136</a></span> <span class="keywordtype">int</span>  <a class="code" href="group__uves__physmod.html#ga1aaabdd9a0e0412928a2345f63184f08" title="Chop off orders which are not fully in the detector chip.">uves_physmod_chop_otab</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</ [...]
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>                             <span class="keyword">enum</span> uves_chip  chip,</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>                             cpl_table** ord_tbl,</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>                             <span class="keyword">const</span> <span class="keywordtype">char</span>* col_name,</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>                             <span class="keywordtype">int</span> * ord_min,</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>                             <span class="keywordtype">int</span> * ord_max)</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> {</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>   <span class="keywordtype">int</span> nx=0;</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>   <span class="keywordtype">int</span> ny=0;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>   <span class="keywordtype">double</span> xbox[2]={0,0};</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>   <span class="keywordtype">double</span> ybox[2]={0,0};</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>   <span class="keyword">const</span> <span class="keywordtype">double</span> fct=0.075;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>   <span class="keyword">const</span> <span class="keywordtype">double</span> add=50.;</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>   cpl_table* tmp_tbl1=NULL;</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>   cpl_table* tmp_tbl2=NULL;</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>   <span class="comment">/* note those are swapped */</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (ny = <a class="code" href="group__uves__pfits.html#ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8" title="Find out the OUT1 NX or OUT4 NX.">uves_pfits_get_nx</a>(raw_header,chip),</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>      <span class="stringliteral">"Could not read nx from input header"</span>);</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (nx = <a class="code" href="group__uves__pfits.html#ga4869724c736010824272955edffb60eb" title="Find out the OUT1 NY or OUT4 NY.">uves_pfits_get_ny</a>(raw_header,chip),</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>      <span class="stringliteral">"Could not read ny from input header"</span>);</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>   xbox[0]=(double)(nx/2-nx*fct);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   xbox[1]=(double)(nx/2+nx*fct);</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>   ybox[0]=add;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>   ybox[1]=(double)(ny-add);</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"NX=%d NY=%d"</span>,nx,ny);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"xbox=%f,%f ybox=%f,%f"</span>,xbox[0],xbox[1],ybox[0],ybox[1]);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl1=uves_extract_table_rows(*ord_tbl,<span class="stringliteral">"X"</span>,CPL_GREATER_THAN,xbox[0]),</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>           <span class="stringliteral">"Error selecting X"</span>);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl2=uves_extract_table_rows(tmp_tbl1,<span class="stringliteral">"X"</span>,CPL_LESS_THAN,xbox[1]),</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>           <span class="stringliteral">"Error selecting X"</span>);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>   uves_free_table(&tmp_tbl1);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*ord_min=(<span class="keywordtype">int</span>)cpl_table_get_column_min(tmp_tbl2,col_name));</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*ord_max=(<span class="keywordtype">int</span>)cpl_table_get_column_max(tmp_tbl2,col_name));</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>   uves_free_table(&tmp_tbl2);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"ord_min=%d ord_max=%d"</span>,*ord_min,*ord_max);</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl1=uves_extract_table_rows(*ord_tbl,col_name,</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>                      CPL_NOT_GREATER_THAN,*ord_max),</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <span class="stringliteral">"Error selecting Order"</span>);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>   uves_free_table(ord_tbl);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(*ord_tbl=uves_extract_table_rows(tmp_tbl1,col_name,</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>                      CPL_NOT_LESS_THAN,*ord_min),</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     <span class="stringliteral">"Error selecting Order"</span>);</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>   cleanup:</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>   uves_free_table(&tmp_tbl1);</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>   uves_free_table(&tmp_tbl2);</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__chop__otab_8h_source.html b/html/uves__physmod__chop__otab_8h_source.html
deleted file mode 100644
index 98021ca..0000000
--- a/html/uves__physmod__chop__otab_8h_source.html
+++ /dev/null
@@ -1,122 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_chop_otab.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_chop_otab.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.6 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.4  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.3  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.2  2006/05/08 15:42:16  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * allow to specify order column label</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/01/03 16:57:13  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Fixed bug</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/01/03 14:47:53  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> * Added uves_physmod_chop_otab.h .c to match MIDAS</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Revision 1.2  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_CHOP_OTAB_H</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_CHOP_OTAB_H</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keywordtype">int</span>  <a class="code" href="group__uves__physmod.html#ga1aaabdd9a0e0412928a2345f63184f08" title="Chop off orders which are not fully in the detector chip.">uves_physmod_chop_otab</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * rline_tbl,</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>                             <span class="keyword">enum</span> uves_chip chip, </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>                             cpl_table** ord_tbl,<span class="keyword">const</span> <span class="keywordtype">char</span>* col_name,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>                             <span class="keywordtype">int</span> * ord_min,</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>                             <span class="keywordtype">int</span> * ord_max);</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PHYSMOD_CHOP_OTAB_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__create__table_8c_source.html b/html/uves__physmod__create__table_8c_source.html
deleted file mode 100644
index 63a25c6..0000000
--- a/html/uves__physmod__create__table_8c_source.html
+++ /dev/null
@@ -1,1995 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_create_table.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_create_table.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                           *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                              *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                   *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                           *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify    *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by    *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or       *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                     *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                           *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,         *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of          *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                            *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                           *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License       *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software             *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA    *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                           */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.37 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> </div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor"></span><span class="comment">/*----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <uves_physmod_create_table.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <uves_physmod_utils.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> flames_get_trans(<span class="keyword">const</span> <span class="keywordtype">int</span> plt_no,</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>                  <span class="keyword">enum</span> uves_chip chip, </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>                  <span class="keyword">const</span> <span class="keywordtype">double</span> wlen, </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>                  <span class="keywordtype">double</span> * TX,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>                  <span class="keywordtype">double</span> * TY);</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <a class="code" href="group__uves__physmod.html#gaed3ec9e2f866d475ff9917cf6f06a6d3" title="Get the physical model shifts in FIBER mode.">flames_get_physmod_offset</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> plate_no,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>                          <span class="keyword">const</span> <span class="keywordtype">int</span> wavec,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>                          <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>              <span class="keywordtype">double</span>* physmod_shift_x,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>                          <span class="keywordtype">double</span>* physmod_shift_y,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>              <span class="keywordtype">double</span>* rot_1,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>                          <span class="keywordtype">double</span>* rot_2,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>                          <span class="keywordtype">double</span>* rot_3);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <a class="code" href="group__uves__physmod.html#ga49d4e127229f5edcf7ec50b54b0a2f1c" title="Get the physical model offsets in ECHELLE mode.">uves_get_physmod_offset</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> wavec,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>                         <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="keyword">const</span> <span class="keywordtype">int</span> binx,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="keyword">const</span> <span class="keywordtype">int</span> biny,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>                          <span class="keywordtype">double</span>* trans_x,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>                          <span class="keywordtype">double</span>* trans_y,</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>                          <span class="keywordtype">double</span>* rot_1,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>                          <span class="keywordtype">double</span>* rot_2,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>             <span class="keywordtype">double</span>* rot_3);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#ga00e5ea8f673b3dfd86ba0d7982e0d793">  124</a></span> <a class="code" href="group__uves__physmod.html#ga00e5ea8f673b3dfd86ba0d7982e0d793" title="Generates two tables with results of the UVES physical model.">uves_physmod_create_table</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header, </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>                           <span class="keyword">enum</span> uves_chip chip, </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>               <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>                           <span class="keyword">const</span> cpl_parameterlist* parameters, </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>                           cpl_table* line_refer,</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>                           <span class="keyword">const</span> <span class="keywordtype">double</span> physmod_shift_x,</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>                           <span class="keyword">const</span> <span class="keywordtype">double</span> physmod_shift_y,</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>                           cpl_table** mod_tbl,</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>                           cpl_table** fsr_tbl)</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> {</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>   <span class="comment">/* General */</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>   <span class="keywordtype">int</span>      MBOX_X=0;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>   <span class="keywordtype">int</span>      MBOX_Y=0;</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>   <span class="keywordtype">double</span>   TRANS_X=0;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>   <span class="keywordtype">double</span>   TRANS_Y=0;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>   <span class="keywordtype">double</span>      ECH_ANG_OFF=0;</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>   <span class="keywordtype">double</span>      CD_ANG_OFF=0;</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>   <span class="keywordtype">double</span>      CCD_ANG_OFF=0;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>   <span class="keywordtype">int</span> bin_x=0;</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>   <span class="keywordtype">int</span> bin_y=0;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>   <span class="keywordtype">int</span>      CMP_REG_SW=0;</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>   <span class="keywordtype">double</span> binx=0;</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>   <span class="keywordtype">double</span> biny=0;</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>   <span class="keywordtype">double</span> pressure=0;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>   <span class="keywordtype">double</span> temp_cam=0;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>   <span class="keywordtype">double</span> slit_width=0;</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>   <span class="keywordtype">double</span> slit_length=0;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   <span class="keywordtype">double</span> humidity=0;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>   <span class="keywordtype">double</span> wcent=0;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>   <span class="keywordtype">double</span> xtrans=0;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>   <span class="keywordtype">double</span> ytrans=0;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>   <span class="keywordtype">double</span> ccd_rot[2];</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>   <span class="keywordtype">double</span> offset_x[6];</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>   <span class="keywordtype">double</span> offset_y[6];</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>*   cd_id;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>   <span class="keywordtype">int</span>     CDID=0;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>   <span class="keywordtype">int</span> status=0;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>   <span class="keywordtype">int</span> aRowNumber=0;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>   <span class="keywordtype">int</span> xpix=0;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>   <span class="keywordtype">int</span> ypix=0;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>   <span class="keywordtype">int</span> mm=0;</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>   <span class="keywordtype">double</span> xmod=0;</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>   <span class="keywordtype">double</span> ymod=0;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>   <span class="keywordtype">double</span> blaze=0;</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>   <span class="keywordtype">double</span> binsize=0;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>   <span class="keywordtype">double</span> pixscale=0;</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>   <span class="keywordtype">double</span> pixscalCD=0;</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>   <span class="keywordtype">double</span> linelenpx=0;</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>   <span class="keywordtype">double</span> linewidth=0;</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>   <span class="keywordtype">double</span> linewidpx=0;</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>   <span class="keywordtype">double</span> resol=0;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>   <span class="keywordtype">double</span> xreg=0;</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>   <span class="keywordtype">double</span> yreg=0;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>   <span class="keywordtype">double</span> fsr_min=0;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   <span class="keywordtype">double</span> fsr_max=0;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>   <span class="keywordtype">double</span> xfsr_min=0;</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>   <span class="keywordtype">double</span> xfsr_max=0;</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>   <span class="keywordtype">double</span> yfsr_min=0;</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>   <span class="keywordtype">double</span> yfsr_max=0;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>   <span class="keywordtype">int</span> m_min=0;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>   <span class="keywordtype">int</span> m_max=0;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>   <span class="keywordtype">double</span> lmin=0;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>   <span class="keywordtype">double</span> lmax=0;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>   <span class="keywordtype">double</span> dxpix=0;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>   <span class="keywordtype">double</span> dypix=0;</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>   <span class="keywordtype">double</span> dblwav=0;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>   <span class="keywordtype">int</span> imod=0;</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>   <span class="keywordtype">double</span> dl=0;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>   <span class="keywordtype">int</span> mmin=0;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>   <span class="keywordtype">int</span> mmax=0;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>   <span class="keywordtype">int</span> ncol=0;</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>   <span class="keywordtype">int</span> order=0;</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>   <span class="keywordtype">double</span> xr=0;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>   <span class="keywordtype">double</span> yr=0;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>   <span class="keywordtype">double</span> lcent=0;</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>   <span class="keywordtype">double</span> mbox_x=0;</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>   <span class="keywordtype">double</span> mbox_y=0;</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>   <span class="comment">/* variables which were globals in physmodel */</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>   <span class="keywordtype">double</span> uves_beta_ech=0;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>   <span class="keywordtype">double</span> uves_beta_cd=0 ;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>   <span class="keywordtype">double</span> uves_physmod_rcd=0;</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>   <span class="keywordtype">double</span> uves_physmod_rech=0;</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>   <span class="keywordtype">double</span> uves_physmod_x_off=0;</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>   <span class="keywordtype">double</span> uves_physmod_y_off=0;</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>   <span class="keywordtype">double</span> x=0;</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>   <span class="keywordtype">double</span> y=0;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>   <span class="keywordtype">double</span> fc=0;</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>   <span class="keywordtype">double</span> l=0;</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>   <span class="keywordtype">int</span> m=0;</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>   <span class="keywordtype">int</span> plate_no=0;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>   <span class="keywordtype">double</span> ech_ang_off=0;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>   <span class="keywordtype">double</span> cd_ang_off=0;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>   <span class="keywordtype">double</span> ccd_ang_off=0;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>   <span class="keywordtype">double</span> physmod_off_x=0;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>   <span class="keywordtype">double</span> physmod_off_y=0;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>   <span class="keywordtype">int</span> wavec=0;</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>  </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>  </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>   </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>   <span class="keyword">enum</span> uves_arm_ident {UVES_ARM_UNDEF,UVES_ARM_BLUE,UVES_ARM_RED};</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>   <span class="keyword">enum</span> uves_arm_ident uves_arm_ident = UVES_ARM_UNDEF;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>   <span class="keywordtype">int</span> upper;</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* ccd_id=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* dpr_tech=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>   <span class="comment">/* initialize the configuration */</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     <span class="comment">/* Read recipe parameters */</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>   {</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>            <span class="stringliteral">"mbox_x"</span>, CPL_TYPE_INT, &MBOX_X )  , </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>            <span class="stringliteral">"mbox_y"</span>, CPL_TYPE_INT, &MBOX_Y )  , </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>            <span class="stringliteral">"trans_x"</span>, CPL_TYPE_DOUBLE, &TRANS_X )  , </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>            <span class="stringliteral">"trans_y"</span>, CPL_TYPE_DOUBLE, &TRANS_Y )  ,</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     xtrans=TRANS_X;</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     ytrans=TRANS_Y;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment">AMo 02/04/2004</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment">We noticed that the physical model has in some way shifted on MIT, thus we apply corrections</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="keywordflow">if</span> ((xtrans == 0.) && (ytrans == 0.)) {</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment">   If the user has not set its own defaults which we assume as the right ones</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment">   In case of MIT chip we apply a shift</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>      <span class="keywordflow">if</span> (chip == UVES_CHIP_REDU) {</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>        <span class="comment">//ytrans = 6.7;</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>      }</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> }</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>  <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"xtrans=%f ytrans=%f"</span>,xtrans,ytrans);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>            <span class="stringliteral">"ech_angle_off"</span>, CPL_TYPE_DOUBLE, &ECH_ANG_OFF )  , </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>            <span class="stringliteral">"cd_angle_off"</span>, CPL_TYPE_DOUBLE, &CD_ANG_OFF )  , </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>            <span class="stringliteral">"ccd_rot_angle_off"</span>, CPL_TYPE_DOUBLE, &CCD_ANG_OFF )  , </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>           <span class="stringliteral">"compute_regression_sw"</span>, CPL_TYPE_BOOL, &CMP_REG_SW )  , </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>           <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> </div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <span class="comment">/* check parameters */</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>   }</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>   <span class="comment">/* get instrument configuration setting keywords */</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (ccd_id = <a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e" title="Find out the chip ID.">uves_pfits_get_chipid</a>(raw_header,chip), </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>      <span class="stringliteral">"Could not read CCD ID from input header"</span>);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (dpr_tech = <a class="code" href="group__uves__pfits.html#ga2833b60dd4a735740352b9c24c6b01f9" title="find out the data tech as defined by the DataFlow">uves_pfits_get_dpr_tech</a>(raw_header), </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>      <span class="stringliteral">"Could not read DPR TECH from input header"</span>);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"DPR TECH=%s<"</span>,dpr_tech);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>   <span class="keywordflow">if</span>(strstr(dpr_tech,<span class="stringliteral">"MOS"</span>)!=NULL) {</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( plate_no = <a class="code" href="group__uves__pfits.html#gae70f662017b21fd4d83fa9d7b16fec50" title="read the plate id">uves_flames_pfits_get_plateid</a>(raw_header) );</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"PLATE NO=%d"</span>,plate_no);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>   }</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>   <span class="keywordflow">if</span>(strcmp(ccd_id,<span class="stringliteral">"CCD-44b"</span>) == 0) {</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"New Spectral Format"</span>);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     offset_x[0]=1355.0;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     offset_x[1]=1350.0;</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     offset_x[2]=1852.0;</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     offset_x[3]=1835.0;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     offset_x[4]=1852.0;</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     offset_x[5]=1834.0;</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     offset_y[0]=1030.0;</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     offset_y[1]=1023.0;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     offset_y[2]=2098.0;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     offset_y[3]=2104.0;</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     offset_y[4]=-52.0;</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     offset_y[5]=-49.0;</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     ccd_rot[0]=0.3;</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     ccd_rot[1]=-0.10;</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Old Spectral Format"</span>);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     offset_x[0]=1391.0;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     offset_x[1]=1385.0;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     offset_x[2]=1852.0;</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     offset_x[3]=1835.0;</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     offset_x[4]=1852.0;</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     offset_x[5]=1834.0;</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     offset_y[0]=1030.0;</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     offset_y[1]=1025.0;</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     offset_y[2]=2098.0;</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     offset_y[3]=2104.0;</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     offset_y[4]=-52.0;</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     offset_y[5]=-49.0;</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     ccd_rot[0]=0.3;</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     ccd_rot[1]=-0.55;</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     </div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>   }</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (biny = <a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(raw_header),</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>      <span class="stringliteral">"Could not read x binning factor from input header"</span>);</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (binx = <a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(raw_header), </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>      <span class="stringliteral">"Could not read x binning factor from input header"</span>);</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (pressure = <a class="code" href="group__uves__pfits.html#gada6e3678efe087f614124ea63ce8a9a0" title="find out the pressure value">uves_pfits_get_pressure</a>(raw_header), </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>      <span class="stringliteral">"Could not read pressure from input header"</span>);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="comment">    check (humidity = uves_pfits_get_humidity(raw_header), </span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> <span class="comment">           "Could not read humidity from input header");</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>   humidity=3.;</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment">/* New code */</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (slit_width = <a class="code" href="group__uves__pfits.html#gadbfe6eb96c384b6b971b634ab8b79fab" title="find out the slit width">uves_pfits_get_slitwidth</a>(raw_header, chip), </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>      <span class="stringliteral">"Could not read slit width input header"</span>);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>   </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (slit_length = <a class="code" href="group__uves__pfits.html#ga159df9e29b6cdbc886d2ec1c19884a64" title="find out the slit length">uves_pfits_get_slitlength</a>(raw_header, chip), </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>      <span class="stringliteral">"Could not read slit length input header"</span>);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>   </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (wcent = <a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(raw_header, chip), </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>      <span class="stringliteral">"Could not read central wavelength setting from input header"</span>);</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>   </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (cd_id =  <a class="code" href="group__uves__pfits.html#gaa907a5d5e4e5a8b2fedda4daae8fae4f" title="find out the grating ID value">uves_pfits_get_gratid</a>(raw_header, chip), </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>      <span class="stringliteral">"Could not read central CD ID setting from input header"</span>);</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (temp_cam = <a class="code" href="group__uves__pfits.html#ga266ea18052beecac005d60558904a490" title="find out the pressure value">uves_pfits_get_tempcam</a>(raw_header,chip), </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>      <span class="stringliteral">"Could not read camera's temperature from input header"</span>);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> </div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>   <span class="keywordflow">if</span> (chip == UVES_CHIP_BLUE)</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>       {</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>       uves_arm_id=<span class="charliteral">'b'</span>;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>       uves_arm_ident=UVES_ARM_BLUE;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>       }</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>       {</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>       uves_arm_id=<span class="charliteral">'r'</span>;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>       uves_arm_ident=UVES_ARM_RED;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>       }</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>   upper = (chip == UVES_CHIP_REDU);</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>          <span class="keywordflow">if</span>(strstr(cd_id,<span class="stringliteral">"CD#1"</span>) != NULL) {</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>        CDID=1;</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(strstr(cd_id,<span class="stringliteral">"CD#2"</span>) != NULL) {</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>        CDID=2;</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(strstr(cd_id,<span class="stringliteral">"CD#3"</span>) != NULL) {</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>        CDID=3;</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(strstr(cd_id,<span class="stringliteral">"CD#4"</span>) != NULL) {</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>        CDID=4;</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>            CDID=0;</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>   }</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>      mbox_x=MBOX_X/binx;</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>      mbox_y=MBOX_Y/biny;</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>      <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"UVES configuration:"</span>);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>          <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Optical path: %s (%s)"</span>,</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                             UVES_ARM(chip),UVES_ARMID(chip));</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>        </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>          <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Detector: %s Binning: %1.1f, %1.1f pix/bin"</span>,</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>                       UVES_DETECTOR(chip),binx,biny);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>          <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Cross disperser ID, number: %s %d"</span>,cd_id,CDID);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>          <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Central wavelength: %4.1f nm"</span>,wcent);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>          <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Slit width: %3.1f (arcsecs)"</span>,slit_width);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>          <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Slit length: %3.1f (arcsecs)"</span>,slit_length);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>      <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Temperature: %3.1f C"</span>,temp_cam);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>      <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Air pressure: %4.1f mmHg/cm^2"</span>,pressure);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>      <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Humidity: %2.1f %%"</span>,humidity);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"chip    =%s"</span>, <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> </div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> </div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>   <span class="comment">/* read input frame (line table) */</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>   ncol=cpl_table_get_ncol(line_refer);</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>  </div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>   aRowNumber = cpl_table_get_nrow(line_refer);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>   </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Opened table %s ncol=%d nrow=%d"</span>,<span class="stringliteral">"line_ref_table"</span> ,ncol,aRowNumber);</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>   uves_air_config(pressure/1.33322, temp_cam, humidity);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Air Index = %g"</span>,uves_air_index(wcent));</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>   <span class="keywordflow">if</span>(strstr(dpr_tech,<span class="stringliteral">"MOS"</span>)!=NULL) {</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"uves chip=%s "</span>,<a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>      flames_get_trans(plate_no,chip,wcent,&TRANS_X,&TRANS_Y);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>      <span class="comment">//xtrans=TRANS_X+physmod_shift_x;</span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>      <span class="comment">//ytrans=TRANS_Y+physmod_shift_y;</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>      xtrans=physmod_shift_x;</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>      ytrans=physmod_shift_y;</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>   }</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>   <span class="comment">/* check if old or new CCD, and eventually apply shifts */</span></div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(bin_x=<a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(raw_header));</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(bin_y=<a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(raw_header));</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"CHECK: xtrans=%f ytrans=%f,ccdrot[0]=%f,ccdrot[1]=%f"</span>,</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>            xtrans,ytrans,ccd_rot[0],ccd_rot[1]);</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>   </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>   <span class="keywordflow">if</span>(<a class="code" href="group__uves__pfits.html#ga84bbe16d83dc492a6104f3b301f1c2f9" title="Find out if CCD header is new.">uves_ccd_is_new</a>(raw_header)) {</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     <span class="keywordflow">if</span>(chip != UVES_CHIP_BLUE) {</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(wavec=(<span class="keywordtype">int</span>)<a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(raw_header,chip));</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>       <span class="keywordflow">if</span>(flames) {</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     ck0_nomsg(<a class="code" href="group__uves__physmod.html#gaed3ec9e2f866d475ff9917cf6f06a6d3" title="Get the physical model shifts in FIBER mode.">flames_get_physmod_offset</a>(plate_no,wavec,chip,</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                         &physmod_off_x,</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                         &physmod_off_y,</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                         &ech_ang_off,</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>                         &cd_ang_off,</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>                         &ccd_ang_off));</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     ck0_nomsg(<a class="code" href="group__uves__physmod.html#ga49d4e127229f5edcf7ec50b54b0a2f1c" title="Get the physical model offsets in ECHELLE mode.">uves_get_physmod_offset</a>(wavec,chip,binx,biny,</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>                       &physmod_off_x,</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>                       &physmod_off_y,</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>                       &ech_ang_off,</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>                       &cd_ang_off,</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>                       &ccd_ang_off));</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>       }</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>       ECH_ANG_OFF  +=ech_ang_off;</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>       CD_ANG_OFF   +=cd_ang_off;</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>       CCD_ANG_OFF  +=ccd_ang_off;</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>       xtrans+=physmod_off_x;</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>       ytrans+=physmod_off_y;</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     }</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>   }</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>   </div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"CHECK: xtrans=%f ytrans=%f,ccdrot[0]=%f,ccdrot[1]=%f"</span>,</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>            xtrans,ytrans,ccd_rot[0],ccd_rot[1]);</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"CHECK: ECH_ANG_OFF=%f CD_ANG_OFF=%f,CCD_ANG_OFF=%f"</span>,</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>            ECH_ANG_OFF,CD_ANG_OFF,CCD_ANG_OFF);</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>  </div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Shift in x = %6.3f pix, shift in y = %6.3f pix"</span>,TRANS_X,TRANS_Y);</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"External Shift in x = %6.3f pix, shift in y = %6.3f pix"</span>,</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>        physmod_shift_x,physmod_shift_y);</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Offset angle of echelle, CD, CCD rotation (deg): "</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>        <span class="stringliteral">"%4.3f, %4.3f, %4.3f"</span>,ECH_ANG_OFF,CD_ANG_OFF,CCD_ANG_OFF);</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>   </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>   uves_set_ccd_rot(ccd_rot,CCD_ANG_OFF, CCD_ANG_OFF);</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>   uves_physmod_set_incidence(ECH_ANG_OFF, ECH_ANG_OFF, CD_ANG_OFF, CD_ANG_OFF);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"ccdbin=%f,%f"</span>,binx,biny);</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"offset x=%f %f %f %f %f %f"</span>,</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>    offset_x[0],offset_x[1],offset_x[2],offset_x[3],offset_x[4],offset_x[5]);</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> </div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"offset y=%f %f %f %f %f %f"</span>,</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>    offset_y[0],offset_y[1],offset_y[2],offset_y[3],offset_y[4],offset_y[5]);</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Central wavelength: %4.2f nm"</span>,wcent);</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"chip    =%s"</span>, <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>   <span class="comment">/* uves_msg("uves_arm=%c",ArmId); */</span>      <span class="comment">/* b/r */</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"uves_arm_ident=%d"</span>,uves_arm_ident);       <span class="comment">/* b/r */</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> </div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>   <span class="comment">/* uves_msg("chipid=%s",CHIP[0]); */</span> <span class="comment">/* upper/lower chip */</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>   <span class="comment">/* uves_msg("cdid=%s",CDID); */</span>       <span class="comment">/* 1-4 for CD#1-4 */</span></div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>   <span class="comment">/* uves_cfg_indx = uves_config(ArmId[0],CHIP[0],CDID,wcent,binx,biny); */</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>   uves_cfg_indx = uves_config_cpl_new(uves_arm_ident,upper,CDID,wcent,binx,biny);</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"uves_cfg_indx=%d"</span>,uves_cfg_indx);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> </div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>   uves_physmod_set_offset(offset_x[uves_cfg_indx-1],offset_y[uves_cfg_indx-1],</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>                           uves_physmod_x_off,uves_physmod_y_off);</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> </div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> <span class="comment">/* =========================================================================</span></div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> <span class="comment"> * Computation of the true pixel-scale along echelle dispersion </span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="comment"> * scale = (K*FocalRatioNasmyth*PixelSize*ApertureCamera*1e-3)/FocalNasmyth</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> <span class="comment"> * K = 206265 : conversion radian to arcsec (1 radian = 206265 arcsec)</span></div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> <span class="comment"> * scale = (206265.0*15.0*0.015*200*1e-3*CCDBIN[0])/120000; </span></div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> <span class="comment"> * =========================================================================</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> </div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="comment">/* Creation of modtbl */</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>   </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>   *mod_tbl= cpl_table_new(3*aRowNumber);</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>  </div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"table created: %s ncol=%d, nrow=%d"</span>,<span class="stringliteral">"mod_tbl"</span>,10,3*aRowNumber);  </div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>   cpl_table_new_column(*mod_tbl,<span class="stringliteral">"WAVE"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>   cpl_table_new_column(*mod_tbl,<span class="stringliteral">"ORDER"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>   cpl_table_new_column(*mod_tbl,<span class="stringliteral">"XMOD"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>   cpl_table_new_column(*mod_tbl,<span class="stringliteral">"YMOD"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>   cpl_table_new_column(*mod_tbl,<span class="stringliteral">"BIN_SIZE"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>   cpl_table_new_column(*mod_tbl,<span class="stringliteral">"LINEWIDPX"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>   cpl_table_new_column(*mod_tbl,<span class="stringliteral">"LINEWIDTH"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>   cpl_table_new_column(*mod_tbl,<span class="stringliteral">"RESOL"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>   cpl_table_new_column(*mod_tbl,<span class="stringliteral">"LINELENPX"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>   cpl_table_new_column(*mod_tbl,<span class="stringliteral">"BLAZE"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>   </div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>   uves_ccd_size(&xpix,&ypix); </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"CCDsize: %d %d"</span>,xpix,ypix);</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> </div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>   </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>   <span class="keywordflow">for</span> (i=0; i<aRowNumber; i++) {</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     </div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>   <span class="comment">//for (i=450; i<451; i++) {</span></div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     </div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>   </div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>    </div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>   </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>     <span class="comment">/* why we do access line i+1? */</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>       dblwav=cpl_table_get_double(line_refer, <span class="stringliteral">"Wave"</span>,i,&status);</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">" i: %d Line: %f"</span>,i,dblwav); </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>      </div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>       dblwav /= 10.0;     <span class="comment">/* (10.0: conversion factor from nm to A)*/</span></div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>       order = uves_physmod_find_order(dblwav);</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"order=%d"</span>,order); </div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>       </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>       order++;  </div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> </div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> <span class="comment">/* Computes the positions xmod and ymod for the order-1, order, order+1 */</span></div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span> <span class="comment">/* and adds a row to the modtbl only if the position are insight the CCD */</span></div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>  </div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>       <span class="keywordflow">for</span> (mm=0; mm<3; mm++){</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>         <span class="comment">/*uves_physmod_xy_model(dblwav, order, &xmod, &ymod);</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="comment">        blaze = blz; */</span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>         <span class="comment">/* The next line fails */</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>         uves_physmod_lambda_order2beta(dblwav, order, &uves_beta_ech, &uves_beta_cd, &fc);</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>     </div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"uves_beta_ech %f, uves_beta_cd %f, fc %f"</span>,</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>                         uves_beta_ech,    uves_beta_cd,    fc);</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>         </div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>         uves_beta2xy(uves_beta_cd, uves_beta_ech, fc, &xmod, &ymod);</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"xmod=%f ymod=%f"</span>,xmod,ymod);</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     <span class="comment">/* Computes the anamorphic magnification and the blaze function  */</span>    </div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>         uves_physmod_photo_beta(dblwav, uves_beta_ech, uves_beta_cd, </div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>                       &uves_physmod_rech, &uves_physmod_rcd, &blaze);</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     </div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"uves_physmod_rech %f, uves_physmod_rcd %f, blaze %f"</span>,</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>                         uves_physmod_rech,    uves_physmod_rcd,    blaze); </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     </div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> <span class="comment">/* Translation */</span></div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>         </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Before translation: xmod %f, ymod %f"</span>,xmod, ymod); </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>         </div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>         xmod += xtrans;</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>         ymod += ytrans;</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"xtrans=%f ytrans=%f xmod=%f ymod=%f"</span>,</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                         xtrans,   ytrans,   xmod,   ymod);</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     </div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"After translation: xmod %f, ymod %f"</span>,xmod, ymod); </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"xpix=%d ypix=%d"</span>,xpix,ypix);</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>     </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"binx=%f biny=%f"</span>,binx,biny); </div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>     </div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>         <span class="keywordflow">if</span> (xmod > 0 && xmod < xpix && ymod > 0 && ymod < ypix) {     </div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> </div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> <span class="comment">/* Computes the width (in pixel and A) and resolution lines */</span></div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>       uves_physmod_pixscl(dblwav, order, uves_physmod_rech, uves_physmod_rcd, </div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>                  binx, biny, fc, slit_width, slit_length, </div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>          &binsize, &pixscale, &pixscalCD, &linewidpx, </div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>                  &linelenpx, &linewidth, &resol);</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>       </div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"binsize %f, pixscale %f, pixscalCD %f"</span>,</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>           binsize,pixscale,pixscalCD);</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"linewidpx %f, linelenpx %f, linewidth %f, resol %f"</span>,</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>           linewidpx,linelenpx,linewidth,resol);</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>       </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span> <span class="comment">/* Compute/regress */</span></div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>       <span class="keywordflow">if</span> (CMP_REG_SW) {</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>         uves_physmod_xy_regres(xmod,ymod,&xreg,&yreg);</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>         xreg = xmod;</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>         yreg = ymod;</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>       }</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> </div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>      </div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Fill tab: i=%d wave=%f order=%d xmod=%f ymod=%f"</span>,</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>              i,dblwav,order,xmod,ymod);</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> </div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Fill tab: bin_sixe=%f xreg=%f yreg=%f "</span>,</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>              binsize,xreg,yreg);</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> </div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Fill tab: linewidpx=%f linewidth=%f resol=%f linelenpx=%f blaze=%f"</span>,</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> linewidpx,linewidth,resol,linelenpx,blaze);</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>       </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>       </div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>       cpl_table_set_double(*mod_tbl, <span class="stringliteral">"WAVE"</span>     ,imod, dblwav);</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>       cpl_table_set_int   (*mod_tbl, <span class="stringliteral">"ORDER"</span>    ,imod, order);</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>       cpl_table_set_double(*mod_tbl, <span class="stringliteral">"XMOD"</span>     ,imod, xreg);</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>       cpl_table_set_double(*mod_tbl, <span class="stringliteral">"YMOD"</span>     ,imod, yreg);</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>       cpl_table_set_double(*mod_tbl, <span class="stringliteral">"BIN_SIZE"</span> ,imod, binsize);</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>       cpl_table_set_double(*mod_tbl, <span class="stringliteral">"LINEWIDPX"</span>,imod, linewidpx);</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>       cpl_table_set_double(*mod_tbl, <span class="stringliteral">"LINEWIDTH"</span>,imod, linewidth);</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>       cpl_table_set_double(*mod_tbl, <span class="stringliteral">"RESOL"</span>    ,imod, resol);</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>       cpl_table_set_double(*mod_tbl, <span class="stringliteral">"LINELENPX"</span>,imod, linelenpx);</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>       cpl_table_set_double(*mod_tbl, <span class="stringliteral">"BLAZE"</span>    ,imod, blaze);</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>           ++imod;</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> </div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>     }</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>     order--;</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>       } <span class="comment">/* end loop over mm */</span></div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>     } <span class="comment">/* end loop over i */</span></div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>  </div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>   cpl_table_duplicate_column(*mod_tbl,<span class="stringliteral">"IDENT"</span>,*mod_tbl,<span class="stringliteral">"WAVE"</span>);</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>   cpl_table_multiply_scalar(*mod_tbl,<span class="stringliteral">"IDENT"</span>,10.);</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>   cpl_table_duplicate_column(*mod_tbl,<span class="stringliteral">"XSTART"</span>,*mod_tbl,<span class="stringliteral">"XMOD"</span>);</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>   cpl_table_add_scalar(*mod_tbl,<span class="stringliteral">"XSTART"</span>,-mbox_x/2.);</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>   cpl_table_duplicate_column(*mod_tbl,<span class="stringliteral">"YSTART"</span>,*mod_tbl,<span class="stringliteral">"YMOD"</span>);</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>   cpl_table_add_scalar(*mod_tbl,<span class="stringliteral">"YSTART"</span>,-mbox_y/2.);</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>   cpl_table_duplicate_column(*mod_tbl,<span class="stringliteral">"XEND"</span>,*mod_tbl,<span class="stringliteral">"XMOD"</span>);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>   cpl_table_add_scalar(*mod_tbl,<span class="stringliteral">"XEND"</span>,mbox_x/2.);</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>   cpl_table_duplicate_column(*mod_tbl,<span class="stringliteral">"YEND"</span>,*mod_tbl,<span class="stringliteral">"YMOD"</span>);</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>   cpl_table_add_scalar(*mod_tbl,<span class="stringliteral">"YEND"</span>,mbox_y/2.);</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span> </div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> <span class="comment">/* close everything */</span></div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> </div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> </div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Predicted number of lines: %d"</span>,imod);</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> </div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> <span class="comment">/* Compute the free spectral range */</span></div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> </div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Determine the Free Spectral Range"</span>);</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>  </div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>     dxpix = (double) xpix;</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>     dypix = (double) ypix;</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> </div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>     m_min = -1;</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>     m_max = -1;</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> <span class="comment">   uves_physmod_lambda_order_model(&l,&m_max,dxpix/2,1.0);</span></div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span> <span class="comment">   uves_physmod_lambda_order_model(&l,&m_min,dxpix/2,dypix);</span></div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>     uves_physmod_lambda_order_model(&lmax,&m_min,1.0,dypix);</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>     uves_physmod_lambda_order_model(&lmin,&m_max,dxpix,1.0);</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> </div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>     uves_physmod_lambda_order_model(&lmax,&m_min,dxpix,dypix);</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>     uves_physmod_lambda_order_model(&lmin,&m_max,1.0,1.0);</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span> </div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>    </div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"m_min= %d,m_max= %d"</span>,m_min,m_max);</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> </div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>    </div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span> <span class="comment">/* Creation of the modfree_sp_rg.tbl table */</span></div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     *fsr_tbl=cpl_table_new(m_max-m_min+1);</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>   </div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"FSR tbl created: %s. No of columns: %d, No of rows: %d"</span>,<span class="stringliteral">"free_spectral_range"</span>,</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>              20,m_max-m_min+1);</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"ORDER"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"WVCENTCOL"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"YCENTCOL"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"START"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"END"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"WAVECENT"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"YCENT"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"FSRMIN"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"FSRMAX"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"XFSR_MIN"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"XFSR_MAX"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"YFSR_MIN"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"YFSR_MAX"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"PIXSCALE"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"PIXSCALCD"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"BIN_SIZE"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"LINEWIDPX"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"LINEWIDTH"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"RESOL"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>   cpl_table_new_column(*fsr_tbl,<span class="stringliteral">"LINELENPX"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>   imod = 0;</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"m, waveCentcol,   Start,     End,       yCent,    FSRmin,   FSRmax,  bin (mA)"</span>);</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> </div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>   <span class="keywordflow">for</span> (m=m_max; m>=m_min; m--) {</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>      <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%d "</span>,m);</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>      uves_physmod_find_FSR(m,&l, &fsr_min, &fsr_max);</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>      </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>      uves_physmod_xy_model(l,m,&x,&y);</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> </div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> <span class="comment">/* Translation */</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>       x += xtrans;</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>       y += ytrans;</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>      </div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>      uves_physmod_xy_model(fsr_min,m,&xfsr_min,&yfsr_min);</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>      </div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> <span class="comment">/* Translation */</span></div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>       xfsr_min += xtrans;</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>       yfsr_min += ytrans;</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> </div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>      uves_physmod_xy_model(fsr_max,m,&xfsr_max,&yfsr_max);</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>      </div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> <span class="comment">/* Translation */</span></div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>       xfsr_max += xtrans;</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>       yfsr_max += ytrans;</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span> </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span> <span class="comment">/* Computes the anamorphic magnification and the blaze function */</span>      </div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>      uves_physmod_lambda_order2beta(l,m, &uves_beta_ech, &uves_beta_cd, &fc);</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>      uves_physmod_photo_beta(l, uves_beta_ech, uves_beta_cd, </div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>                              &uves_physmod_rech, &uves_physmod_rcd, &blaze); </div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>      </div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> </div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span> <span class="comment">/* Computes the width (in pixel and A) and resolution lines */</span>  </div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>      uves_physmod_pixscl(l, m, uves_physmod_rech, uves_physmod_rcd, </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>                          binx, biny, fc, slit_width, slit_length, </div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>                          &dl, &pixscale, &pixscalCD, </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>                      &linewidpx, &linelenpx, &linewidth, &resol);</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span> </div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>      mmin  = m;</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>      mmax = m;</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span> </div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>   </div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span> </div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> <span class="comment">/* WARNING! The central column doesn't correspond to the central wavelength position */</span>     </div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>      uves_physmod_lambda_order_model(&lcent,&m,dxpix/2,y);</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>      uves_physmod_xy_model(lcent,m,&xr,&yr);</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>      </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>      uves_physmod_lambda_order_model(&lmax,&mmax,dxpix,y);</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>      uves_physmod_lambda_order_model(&lmin,&mmin,1.0,y); </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> <span class="comment">/*     if (y>=0. && y <=dypix) {*/</span></div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>        <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"m=%d, waveCent (nm)=%f, Start=%f, End=%f"</span>,m,l,lmin,lmax);</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>        <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"yCent=%f,FSRmin=%f,FSRmax=%f,bin (mA)=%f"</span>,y,fsr_min,fsr_max,dl);</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> </div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span> </div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>        <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%d %f %f %f %f %f %f %f"</span>,m,lcent,lmin,lmax,yr,fsr_min,fsr_max,dl);</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> </div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> </div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>        <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"pixel-scale = %f, anamorphic corrections = %f, %f"</span>, </div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>                       pixscale, uves_physmod_rech, uves_physmod_rcd);</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span> </div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span> </div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>        cpl_table_set_int(*fsr_tbl, <span class="stringliteral">"ORDER"</span>,imod,m);</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"WVCENTCOL"</span>,imod,lcent);</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"YCENTCOL"</span>,imod,yr);</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"START"</span>,imod,lmin);</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"END"</span>,imod,lmax);</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"WAVECENT"</span>,imod,l);</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"YCENT"</span>,imod,y);</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"FSRMIN"</span>,imod,fsr_min);</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"FSRMAX"</span>,imod,fsr_max);</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"XFSR_MIN"</span>,imod,xfsr_min);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"XFSR_MAX"</span>,imod,xfsr_max);</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"YFSR_MIN"</span>,imod,yfsr_min);</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"YFSR_MAX"</span>,imod,yfsr_max);</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"PIXSCALE"</span>,imod,pixscale);</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"PIXSCALCD"</span>,imod,pixscalCD);</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"BIN_SIZE"</span>,imod,dl);</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"LINEWIDPX"</span>,imod,linewidpx);</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"LINEWIDTH"</span>,imod,linewidth);</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"RESOL"</span>,imod,resol);</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>        cpl_table_set_double(*fsr_tbl, <span class="stringliteral">"LINELENPX"</span>,imod,linelenpx);</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>          ++imod;</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span> </div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span> <span class="comment">/*     }*/</span></div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>   }</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> </div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>   <span class="comment">/* To remove possible NULL entries */</span></div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>   cpl_table_erase_invalid_rows(*mod_tbl);</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> </div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>   <span class="comment">/* Now we do the polynomial fit */</span></div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"End determination fsr range"</span>);</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span> </div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span> </div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>    cleanup:</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span> </div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span> }</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span> </div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span> </div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> flames_get_trans(<span class="keyword">const</span> <span class="keywordtype">int</span> plt_no,</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>                  <span class="keyword">enum</span> uves_chip chip, </div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>                  <span class="keyword">const</span> <span class="keywordtype">double</span> wlen, </div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>                  <span class="keywordtype">double</span> * TX,</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>                  <span class="keywordtype">double</span> * TY)</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> {</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span> </div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span> </div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>   <span class="keywordflow">if</span>(plt_no==1) {</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>     <span class="keywordflow">if</span>( chip==UVES_CHIP_REDL) {</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>       <span class="keywordflow">if</span>(wlen==520) {</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>         *TX = -15.330;</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>         *TY = -40.461; </div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (wlen == 580) {</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>     *TX = -17.972;</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>         *TY = -39.200;    </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (wlen == 860) {</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>         *TX= -12.212;</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>         *TY= -49.370;</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>       }</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>       <span class="keywordflow">if</span>(wlen==520) {</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>         *TX = -14.237;</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>         *TY = -40.337;</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (wlen == 580) {</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>         *TX= -14.738;</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>         *TY= -38.831;  </div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (wlen == 860) {</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> </div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>         *TX = -8.253;</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>         *TY = -45.385;</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>       }</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>     }</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (plt_no==2) {</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>     <span class="keywordflow">if</span>( chip==UVES_CHIP_REDL) {</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>       <span class="keywordflow">if</span>(wlen==520) {</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>         *TX = +10.136;</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>         *TY = -41.420;</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (wlen == 580) {</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>         *TX = +9.000;</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>         *TY = -38.289;  </div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (wlen == 860) {</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>         *TX = +16.386;</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>         *TY = -47.519;</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>       }</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>       <span class="keywordflow">if</span>(wlen==520) {</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>         *TX = +12.244;</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>         *TY = -41.970;</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (wlen == 580) {</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>         *TX = +12.023;</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>         *TY = -38.165;</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (wlen == 860) {</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>         *TX = +18.241;</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>         *TY = -43.889; </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>       }</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     }</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span> </div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"plt_no=%d chip=%d Wlen %g is not standard setting setting defaults"</span>,plt_no,chip,wlen); </div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>     *TX = 0;</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>     *TY = 0;</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>   }</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span> </div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span> }</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> </div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span> </div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span> </div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span> </div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00912"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#ga49d4e127229f5edcf7ec50b54b0a2f1c">  912</a></span> <a class="code" href="group__uves__physmod.html#ga49d4e127229f5edcf7ec50b54b0a2f1c" title="Get the physical model offsets in ECHELLE mode.">uves_get_physmod_offset</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> wavec,</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>                         <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>                         <span class="keyword">const</span> <span class="keywordtype">int</span> binx,</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>                         <span class="keyword">const</span> <span class="keywordtype">int</span> biny,</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>             <span class="keywordtype">double</span>* trans_x,</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>             <span class="keywordtype">double</span>* trans_y,</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>             <span class="keywordtype">double</span>* ech_ang_off,</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>             <span class="keywordtype">double</span>* cd_ang_off,</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>             <span class="keywordtype">double</span>* ccd_ang_off)</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span> {</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span> </div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>    <span class="comment">//For the moment rot angle default is assumed always 0,0,0</span></div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>    *ech_ang_off=0;</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>    *cd_ang_off=0;</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>    *ccd_ang_off=0;</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> </div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"wavec=%d,chip=%d binx=%d biny=%d"</span>,wavec,chip,binx,biny);</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>    <span class="keywordflow">if</span>(binx==1 && biny == 1) {</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span> </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span> </div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> </div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>       <span class="keywordflow">if</span>(chip==UVES_CHIP_REDL) {</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>          <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>             <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                *trans_x=3.0703;</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>                *trans_y=6.8252;</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 520 REDL 1x1"</span>);</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> </div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>             <span class="keywordflow">case</span> 564:</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                *trans_x=2.2151;</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>                *trans_y=0.1092;</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>                *ccd_ang_off=-.319;</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 564 REDL 1x1"</span>);</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span> </div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>             <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                *trans_x=1.7116;</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>                *trans_y=-0.4874;</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>                *ccd_ang_off=-0.321;</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 580 REDL 1x1"</span>);</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> </div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>             <span class="keywordflow">case</span> 600:</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>                *trans_x=0.1581;</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                *trans_y=5.3308;</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                *ccd_ang_off=-.344;</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 600 REDL 1x1"</span>);</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> </div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>             <span class="keywordflow">case</span> 620:</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>                *trans_x=10.3267;</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>                *trans_y=2.7942;</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 620 REDL 1x1"</span>);</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> </div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span> </div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>             <span class="keywordflow">case</span> 640:</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                *trans_x=0.3785;</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                *trans_y=-3.8460;</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 640 REDL 1x1"</span>);</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span> </div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span> </div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>             <span class="keywordflow">case</span> 660:</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                *trans_x=9.7465;</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>                *trans_y=0.7125;</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 660 REDL 1x1"</span>);</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> </div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>             <span class="keywordflow">case</span> 680:</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                *trans_x=9.3649;</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>                *trans_y=-2.4116;</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 680 REDL 1x1"</span>);</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span> </div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>             <span class="keywordflow">case</span> 700:</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>                *trans_x=8.9850;</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>                *trans_y=-5.6122;</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 700 REDL 1x1"</span>);</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> </div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>             <span class="keywordflow">case</span> 720:</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>                *trans_x=8.7393;</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>                *trans_y=-7.0060;</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 720 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>             <span class="keywordflow">case</span> 740:</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>                *trans_x=8.2659;</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>                *trans_y=-4.3401;</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 740 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> </div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> </div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>             <span class="keywordflow">case</span> 760:</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>                *trans_x=8.6384;</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>                *trans_y=1.9904;</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>                *trans_x=8.1006;</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>                *trans_y=-1.0859;</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 760 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span> </div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> </div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>             <span class="keywordflow">case</span> 780:</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>                *trans_x=7.8761;</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>                *trans_y=0.5324;</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 780 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> </div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>             <span class="keywordflow">case</span> 800:</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>                *trans_x=7.5052;</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>                *trans_y=0.7860;</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 800 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span> </div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>             <span class="keywordflow">case</span> 820:</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>                *trans_x=7.2100;</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>                *trans_y=-1.8423;</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 820 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> </div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>             <span class="keywordflow">case</span> 840:</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>                *trans_x=6.8437;</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>                *trans_y=-4.9477;</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 820 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> </div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>             <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                *trans_x=6.8385;</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                *trans_y=-3.0247;</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>                *ccd_ang_off=-.350;</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 860 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> </div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>             <span class="keywordflow">case</span> 880:</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>                *trans_x=6.4751;</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>                *trans_y=-8.2393;</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>                *ccd_ang_off=-.350;</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 880 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> </div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>             <span class="keywordflow">case</span> 900:</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>                *trans_x=5.9872;</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>                *trans_y=-7.5682;</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>                *ccd_ang_off=-.350;</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 900 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> </div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> </div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>          }</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> </div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>          <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>             <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                *trans_x=3.5471;</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>                *trans_y=14.6995;</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 520 REDU 1x1"</span>);</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> </div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>             <span class="keywordflow">case</span> 564:</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>                *trans_x=3.8134;</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>                *trans_y=8.0660;</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>                *ccd_ang_off=-0.161;</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 564 REDU 1x1"</span>);</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> </div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>             <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>                *trans_x=2.2649;</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>                *trans_y=7.5163;</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>                *ccd_ang_off=-.106;</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 580 REDU 1x1"</span>);</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>             <span class="keywordflow">case</span> 600:</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>                *trans_x=2.3765;</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>                *trans_y=12.9146;</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>                *ccd_ang_off=-.112;</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 600 REDU 1x1"</span>);</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> </div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>             <span class="keywordflow">case</span> 620:</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>                *trans_x=10.7635;</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>                *trans_y=13.2254;</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 620 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> </div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>             <span class="keywordflow">case</span> 640:</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>                *trans_x=2.6177;</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>                *trans_y=10.0995;</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 640 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> </div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>             <span class="keywordflow">case</span> 660:</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>                *trans_x=10.4909;</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>                *trans_y=11.3694;</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 660 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> </div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>             <span class="keywordflow">case</span> 680:</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>                *trans_x=10.4899;</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>                *trans_y=8.4049;</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 680 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> </div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>             <span class="keywordflow">case</span> 700:</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>                *trans_x=10.2939;</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>                *trans_y=5.3955;</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 700 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span> </div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> </div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>             <span class="keywordflow">case</span> 720:</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>                *trans_x=9.9791;</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>                *trans_y=4.0860;</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 720 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span> </div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>             <span class="keywordflow">case</span> 740:</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>                *trans_x=9.8533;</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>                *trans_y=6.9165;</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 740 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> </div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span> </div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>             <span class="keywordflow">case</span> 760:</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>                *trans_x=11.0378;</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>                *trans_y=12.9732;</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>                *trans_x=10.5357;</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>                *trans_y=10.1393;</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>                *ccd_ang_off=-.160;</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 760 REDU 1x1"</span>);</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span> </div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>             <span class="keywordflow">case</span> 780:</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>                *trans_x=9.5521;</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>                *trans_y=11.7901;</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 780 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span> </div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>             <span class="keywordflow">case</span> 800:</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>                *trans_x=9.3306;</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>                *trans_y=17.4402;</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 800 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> </div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>             <span class="keywordflow">case</span> 820:</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>                *trans_x=9.1435;</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>                *trans_y=14.8772;</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 820 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> </div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>             <span class="keywordflow">case</span> 840:</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>                *trans_x=8.8927;</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>                *trans_y=11.8143;</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 840 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> </div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> </div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> </div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>             <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>                *trans_x=10.9306;</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>                *trans_y=7.8155;</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>                *ccd_ang_off=-.176;</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 860 REDU 1x1"</span>);</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> </div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>             <span class="keywordflow">case</span> 880:</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>                *trans_x=9.0960;</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>                *trans_y=3.2741;</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 880 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> </div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> </div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>             <span class="keywordflow">case</span> 900:</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>                *trans_x=8.8903;</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>                *trans_y=8.9738;</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 900 REDL 1x1"</span>);</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span> </div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span> </div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span> </div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>          }</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>   </div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>       }</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>    } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(binx==2 && biny == 2) {</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span> </div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> </div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span> </div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>       <span class="keywordflow">if</span>(chip==UVES_CHIP_REDL) {</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>          <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span> </div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span> </div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>             <span class="keywordflow">case</span> 500:</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>                *trans_x=1.6127;</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>                *trans_y=0.3725;</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 500 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> </div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> </div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>             <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>                *trans_x=1.0304;</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>                *trans_y=4.4927;</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>                *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 520 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span> </div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> </div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>             <span class="keywordflow">case</span> 540:</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>                *trans_x=0.9221;</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>                *trans_y=2.6768;</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 540 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span> </div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>             <span class="keywordflow">case</span> 560:</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>                *trans_x=0.7170;</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>                *trans_y=-0.0175;</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 560 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> </div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> </div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>             <span class="keywordflow">case</span> 564:</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>                *trans_x=0.5659;</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>                *trans_y=1.2151;</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>                *ccd_ang_off=-.319;</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 564 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span> </div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>             <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>                *trans_x=0.4406;</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>                *trans_y=0.7901;</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>                *ccd_ang_off=-0.321;</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 580 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> </div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>             <span class="keywordflow">case</span> 600:</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>                *trans_x=0.2550;</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>                *trans_y=3.7476;</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>                *ccd_ang_off=-0.315;</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 600 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> </div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>             <span class="keywordflow">case</span> 620:</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>                *trans_x=0.1970;</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>                *trans_y=3.0182;</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 620 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> </div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>             <span class="keywordflow">case</span> 640:</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>                *trans_x=0.0203;</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>                *trans_y=-0.0638;</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 640 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span> </div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>             <span class="keywordflow">case</span> 660:</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>                *trans_x=5.2122;</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>                *trans_y=1.5986;</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 660 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span> </div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>             <span class="keywordflow">case</span> 680:</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>                *trans_x=5.0355;</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>                *trans_y=-0.1277;</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 680 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span> </div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>             <span class="keywordflow">case</span> 700:</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>                *trans_x=4.8466;</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>                *trans_y=-1.8237;</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 700 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span> </div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>             <span class="keywordflow">case</span> 720:</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>                *trans_x=4.7320;</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>                *trans_y=-2.4860;</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 720 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span> </div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>             <span class="keywordflow">case</span> 740:</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>                *trans_x=4.5968;</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>                *trans_y=-1.1956;</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 740 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span> </div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>             <span class="keywordflow">case</span> 760:</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>                *trans_x=3.7298;</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>                *trans_y=2.0585;</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>                *trans_x=4.5392;</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>                *trans_y=0.4414;</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 760 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> </div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>             <span class="keywordflow">case</span> 780:</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>                *trans_x=4.4156;</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>                *trans_y=1.2900;</div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 780 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span> </div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>             <span class="keywordflow">case</span> 800:</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>                *trans_x=4.2877;</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>                *trans_y=2.2643;</div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 800 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span> </div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span> </div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>             <span class="keywordflow">case</span> 820:</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>                *trans_x=4.1695;</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>                *trans_y=1.0259;</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 820 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span> </div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>             <span class="keywordflow">case</span> 840:</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>                *trans_x=4.1004;</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>                *trans_y=-0.6081;</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 840 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span> </div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>             <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>                *trans_x=3.1362;</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>                *trans_y=-.6278;</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>                *ccd_ang_off=-.350;</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 860 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span> </div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>             <span class="keywordflow">case</span> 880:</div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>                *trans_x=3.8903;</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>                *trans_y=-3.1012;</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 880 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span> </div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>             <span class="keywordflow">case</span> 900:</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>                *trans_x=3.7873;</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>                *trans_y=-2.0264;</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 900 REDL 2x2"</span>);</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span> </div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> </div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span> </div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>                *ccd_ang_off=-.335;</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>          }</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> </div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>          <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> </div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> </div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>             <span class="keywordflow">case</span> 500:</div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>                *trans_x=1.6644;</div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>                *trans_y=2.1540;</div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 500 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span> </div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span> </div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span> </div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>             <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>                *trans_x=1.3965;</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>                *trans_y=6.2855;</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 520 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span> </div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>             <span class="keywordflow">case</span> 540:</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>                *trans_x=1.3951;</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>                *trans_y=4.7774;</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 540 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span> </div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>             <span class="keywordflow">case</span> 560:</div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>                *trans_x=1.3307;</div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>                *trans_y=2.0433;</div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 560 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> </div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> </div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>             <span class="keywordflow">case</span> 564:</div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>                *trans_x=1.3329;</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>                *trans_y=2.9888;</div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>                *ccd_ang_off=-0.161;</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 564 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span> </div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>             <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>                *trans_x=0.9856;</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>                *trans_y=2.5873;</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>                *ccd_ang_off=-.106;</div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 580 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span> </div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>             <span class="keywordflow">case</span> 600:</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>                *trans_x=0.9223;</div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>                *trans_y=5.5208;</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>                *ccd_ang_off=-.112;</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 600 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span> </div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span> </div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>             <span class="keywordflow">case</span> 620:</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>                *trans_x=1.1483;</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>                *trans_y=5.2252;</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 620 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span> </div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span> </div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span> </div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>             <span class="keywordflow">case</span> 640:</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>                *trans_x=1.0534;</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>                *trans_y=2.1526;</div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 640 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span> </div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>             <span class="keywordflow">case</span> 660:</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>                *trans_x=5.8447;</div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>                *trans_y=4.8530;</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 660 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span> </div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span> </div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>             <span class="keywordflow">case</span> 680:</div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>                *trans_x=5.7227;</div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>                *trans_y=3.2191;</div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 680 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> </div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>             <span class="keywordflow">case</span> 700:</div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>                *trans_x=5.6851;</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>                *trans_y=1.6912;</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 700 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span> </div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>             <span class="keywordflow">case</span> 720:</div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>                *trans_x=5.5375;</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>                *trans_y=1.0217;</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 720 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span> </div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>             <span class="keywordflow">case</span> 740:</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>                *trans_x=5.4927;</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>                *trans_y=2.3500;</div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 740 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span> </div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span> </div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span> </div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>             <span class="keywordflow">case</span> 760:</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>                *trans_x=4.8082;</div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>                *trans_y=5.3052;</div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>                *trans_x=5.6659;</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>                *trans_y=3.9673;</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>                *ccd_ang_off=-.160;</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 760 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span> </div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span> </div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>             <span class="keywordflow">case</span> 780:</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>                *trans_x=5.3406;</div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>                *trans_y=4.7919;</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 780 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span> </div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span> </div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>             <span class="keywordflow">case</span> 800:</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>                *trans_x=5.2926;</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>                *trans_y=5.8133;</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 800 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span> </div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>             <span class="keywordflow">case</span> 820:</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>                *trans_x=5.1947;</div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>                *trans_y=4.5974;</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 820 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span> </div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span> </div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>             <span class="keywordflow">case</span> 840:</div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>                *trans_x=5.1033;</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>                *trans_y=2.9638;</div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 840 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span> </div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>             <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>                *trans_x=4.5923;</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>                *trans_y=2.6809;</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>                *ccd_ang_off=-.176;</div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 860 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span> </div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span> </div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>             <span class="keywordflow">case</span> 880:</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>                *trans_x=4.9641;</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>                *trans_y=0.3260;</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 880 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span> </div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>             <span class="keywordflow">case</span> 900:</div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>                *trans_x=4.9610;</div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>                *trans_y=1.4586;</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 900 REDU 2x2"</span>);</div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span> </div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span> </div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>                *ccd_ang_off=-.131;</div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span> </div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>          }</div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>   </div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>       }</div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span> </div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>    } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(binx==2 && biny == 1) {</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span> </div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span> </div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span> </div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>       <span class="keywordflow">if</span>(chip==UVES_CHIP_REDL) {</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span> </div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>          <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>             <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>                *trans_x=-0.5469;</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>                *trans_y=3.1225;</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>                *ccd_ang_off=-.400;</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 520 REDL 2x1"</span>);</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span> </div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>             <span class="keywordflow">case</span> 564:</div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>                *trans_x=-1.3918;</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>                *trans_y=-2.9967;</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span> </div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>                *ccd_ang_off=-.400;</div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 564 REDL 2x1"</span>);</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span> </div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>             <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>                *trans_x=-1.4333;</div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>                *trans_y=-4.3223;</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span> </div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>                *ccd_ang_off=-.400;</div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 580 REDL 2x1"</span>);</div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span> </div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>             <span class="keywordflow">case</span> 600:</div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>                *trans_x=-1.6725;</div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>                *trans_y=1.5057;</div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span> </div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span> </div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>                *ccd_ang_off=-.400;</div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 600 REDL 2x1"</span>);</div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span> </div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span> </div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>             <span class="keywordflow">case</span> 760:</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>                *trans_x=1.5073;</div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>                *trans_y=-1.6050;</div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>                *ccd_ang_off=-.400;</div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 760 REDL 2x1"</span>);</div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span> </div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>             <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>                *trans_x=0.9818;</div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>                *trans_y=-6.9373;</div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>                *ccd_ang_off=-.400;</div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 860 REDL 2x1"</span>);</div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span> </div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>                *ccd_ang_off=-.400;</div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span> </div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>          }</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>          <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>             <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>                *trans_x=-1.0242;</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>                *trans_y=11.4442;</div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 520 REDU 2x1"</span>);</div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span> </div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>             <span class="keywordflow">case</span> 564:</div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>                *trans_x=-1.2162;</div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>                *trans_y=5.7253;</div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 564 REDU 2x1"</span>);</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span> </div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>             <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>                *trans_x=-1.0591;</div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>                *trans_y=4.5918;</div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 580 REDU 2x1"</span>);</div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span> </div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>             <span class="keywordflow">case</span> 600:</div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>                *trans_x=-1.1089;</div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>                *trans_y=10.0907;</div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 600 REDU 2x1"</span>);</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span> </div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>             <span class="keywordflow">case</span> 760:</div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>                *trans_x=1.9719;</div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>                *trans_y=9.6496;</div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span> </div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 760 REDU 2x1"</span>);</div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span> </div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>             <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>                *trans_x=1.9402;</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>                *trans_y=4.2234;</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 860 REDU 2x1"</span>);</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span> </div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>          }</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>       }</div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>    } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(binx==3 && biny == 2) {</div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span> </div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span> </div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span> </div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>       <span class="keywordflow">if</span>(chip==UVES_CHIP_REDL) {</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>          <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>             <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>                *trans_x=2.0359;</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>                *trans_y=2.9332;</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>                *ccd_ang_off=-.190;</div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 520 REDL 3x2"</span>);</div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span> </div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>             <span class="keywordflow">case</span> 564:</div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>                *trans_x=1.5143;</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>                *trans_y=-0.2408;</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>                *ccd_ang_off=-.190;</div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 564 REDL 3x2"</span>);</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span> </div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>             <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>                *trans_x=1.2014;</div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>                *trans_y=-0.9518;</div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>                *ccd_ang_off=-.190;</div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 580 REDL 3x2"</span>);</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span> </div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>             <span class="keywordflow">case</span> 600:</div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>                *trans_x=1.2753;</div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>                *trans_y=1.8916;</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>                *ccd_ang_off=-.190;</div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 600 REDL 3x2"</span>);</div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span> </div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span> </div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>             <span class="keywordflow">case</span> 760:</div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>                *trans_x=3.5390;</div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>                *trans_y=0.3579;</div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>                *ccd_ang_off=-.190;</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 760 REDL 3x2"</span>);</div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span> </div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>             <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>                *trans_x=3.0845;</div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>                *trans_y=-2.2232;</div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>                *ccd_ang_off=-.190;</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 860 REDL 3x2"</span>);</div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span> </div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>                *ccd_ang_off=-.190;</div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span> </div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>          }</div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>          <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span> </div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>             <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>                *trans_x=0.4483;</div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>                *trans_y=4.5161;</div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 520 REDU 3x2"</span>);</div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span> </div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>             <span class="keywordflow">case</span> 564:</div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>                *trans_x=0.0711;</div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>                *trans_y=1.5479;</div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 564 REDU 3x2"</span>);</div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span> </div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>             <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>                *trans_x=0.2785;</div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>                *trans_y=0.9470;</div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 580 REDU 3x2"</span>);</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span> </div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>             <span class="keywordflow">case</span> 600:</div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>                *trans_x=0.1448;</div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>                *trans_y=3.7903;</div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 600 REDU 3x2"</span>);</div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span> </div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>             <span class="keywordflow">case</span> 760:</div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>                *trans_x=2.1704;</div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>                *trans_y=3.6996;</div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 760 REDU 3x2"</span>);</div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span> </div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>             <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>                *trans_x=1.9817;</div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>                *trans_y=1.0266;</div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case ech 860 REDU 3x2"</span>);</div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span> </div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>                *ccd_ang_off=-.100;</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>                <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span> </div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>          }</div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>   </div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>       }</div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>  </div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>    } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span> </div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"New CCD, frame is unbinned."</span>); </div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"You may have to compute proper CCD rotation angle and X, Y offsets"</span>);</div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span> </div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span> </div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>    }</div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span> </div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"NEW CCD Physical Model shifts trans=%f,%f rot=%f,%f,%f"</span>,</div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>             *trans_x,*trans_y,*ech_ang_off,*cd_ang_off,*ccd_ang_off);</div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>    <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span> }</div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span> </div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span> </div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span> </div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span> </div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01835"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#gaed3ec9e2f866d475ff9917cf6f06a6d3"> 1835</a></span> <a class="code" href="group__uves__physmod.html#gaed3ec9e2f866d475ff9917cf6f06a6d3" title="Get the physical model shifts in FIBER mode.">flames_get_physmod_offset</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> plate_no,</div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>               <span class="keyword">const</span> <span class="keywordtype">int</span> wavec,</div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>               <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>               <span class="keywordtype">double</span>* trans_x,</div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>               <span class="keywordtype">double</span>* trans_y,</div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>               <span class="keywordtype">double</span>* ech_ang_off,</div>
-<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>               <span class="keywordtype">double</span>* cd_ang_off,</div>
-<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>               <span class="keywordtype">double</span>* ccd_ang_off)</div>
-<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span> {</div>
-<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span> </div>
-<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>    <span class="comment">//For the moment rot angle default is assumed always 0,0,0</span></div>
-<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>    *ech_ang_off=0;</div>
-<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>    *cd_ang_off=0;</div>
-<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>    *ccd_ang_off=0;</div>
-<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>    <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"New CCD, frame is unbinned, FIBER mode"</span>);;</div>
-<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>    <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"You may have to compute proper CCD rotation angle and X, Y offsets"</span>);</div>
-<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span> </div>
-<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"plate_no=%d,wavec=%d,chip=%d"</span>,plate_no,wavec,chip);</div>
-<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>    <span class="keywordflow">switch</span>(plate_no){</div>
-<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span> </div>
-<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>       <span class="keywordflow">case</span> 1:</div>
-<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span> </div>
-<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>          <span class="keywordflow">if</span>(chip==UVES_CHIP_REDL) {</div>
-<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>             <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span> </div>
-<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>                <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>                   *trans_x=4.5211;</div>
-<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>                   *trans_y=0.2826;</div>
-<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>                   *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>                   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case FIBRE 520 REDL plt1"</span>);</div>
-<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>                   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span> </div>
-<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>                <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>                   *trans_x=6.0388;</div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>                   *trans_y=-7.4226;</div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>                   *ccd_ang_off=-0.321;</div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>                   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case FIBRE 580 REDL plt1"</span>);</div>
-<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>                   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span> </div>
-<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>                <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>                   *trans_x=4.1211;</div>
-<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>                   *trans_y=-2.3926;</div>
-<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>                   *ccd_ang_off=-.350;</div>
-<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>                   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case FIBRE 860 REDL plt1"</span>);</div>
-<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>                   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span> </div>
-<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>             }</div>
-<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>          } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span> </div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>             <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span> </div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>                <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>                   *trans_x=2.1001;</div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>                   *trans_y=8.0998;</div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>                   *ccd_ang_off=-0.131;</div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>                   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case FIBRE 520 REDU plt1"</span>);</div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>                   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span> </div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>                <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>                   *trans_x=2.1388;</div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>                   *trans_y=0.1226;</div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>                   *ccd_ang_off=-.106;</div>
-<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>                   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case FIBRE 580 REDU plt1"</span>);</div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>                   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span> </div>
-<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>                <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>                   *trans_x=3.7411;</div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>                   *trans_y=5.1006;</div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>                   *ccd_ang_off=-.176;</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>                   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case FIBRE 860 REDU plt1"</span>);</div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>                   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span> </div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>             }  </div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>          }</div>
-<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>          <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span> </div>
-<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>       <span class="keywordflow">case</span> 2:</div>
-<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span> </div>
-<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>          <span class="keywordflow">if</span>(chip==UVES_CHIP_REDL) {</div>
-<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>             <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span> </div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>                <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>                   *trans_x=4.0311;</div>
-<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>                   *trans_y=3.2253;</div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>                   *ccd_ang_off=-0.338;</div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>                   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case FIBER 520 REDL plt2"</span>);</div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>                   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span> </div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>                <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>                   *trans_x=4.1158;</div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>                   *trans_y=-7.2539;</div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>                   *ccd_ang_off=-.321;</div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>                   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case FIBER 580 REDL plt2"</span>);</div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>                   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span> </div>
-<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>                <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>                   *trans_x=1.5000;</div>
-<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>                   *trans_y=-2.4624;</div>
-<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>                   *ccd_ang_off=-.343;</div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>                   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case FIBER 860 REDL plt2"</span>);</div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>                   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span> </div>
-<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>             }</div>
-<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>          } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span> </div>
-<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>             <span class="keywordflow">switch</span>(wavec){</div>
-<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span> </div>
-<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>                <span class="keywordflow">case</span> 520:</div>
-<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>                   *trans_x=2.3911;</div>
-<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>                   *trans_y=11.9726;</div>
-<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>                   *ccd_ang_off=-0.131;</div>
-<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>                   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case FIBER 520 REDU plt2"</span>);</div>
-<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>                   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span> </div>
-<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>                <span class="keywordflow">case</span> 580:</div>
-<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>                   *trans_x=1.5658;</div>
-<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>                   *trans_y=0.6239;</div>
-<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>                   *ccd_ang_off=-.106;</div>
-<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>                   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case FIBER 580 REDU plt2"</span>);</div>
-<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>                   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span> </div>
-<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>                <span class="keywordflow">case</span> 860:</div>
-<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>                   *trans_x=3.1174;</div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>                   *trans_y=4.7984;</div>
-<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>                   *ccd_ang_off=-.176;</div>
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>                   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"case FIBER 860 REDU plt2"</span>);</div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>                   <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span> </div>
-<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>             }  </div>
-<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>          }</div>
-<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>          <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span> </div>
-<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>   <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>     *trans_x=0;</div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>     *trans_y=0;</div>
-<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>   </div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>   }</div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span> </div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span> </div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"NEW CCD Physical Model shifts trans=%f,%f rot=%f,%f,%f"</span>,</div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>        *trans_x,*trans_y,*ech_ang_off,*cd_ang_off,*ccd_ang_off);</div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span> }</div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span> </div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span> </div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span> </div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span> </div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span> </div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__create__table_8h_source.html b/html/uves__physmod__create__table_8h_source.html
deleted file mode 100644
index 597da99..0000000
--- a/html/uves__physmod__create__table_8h_source.html
+++ /dev/null
@@ -1,134 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_create_table.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_create_table.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.10 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.8  2009/07/13 06:39:34  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * change uves_physmod_create_table API</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.7  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.6  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.5  2007/01/08 16:59:28  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * changes to make flames-uves iterations to recover physical model</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.4  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.3  2006/10/24 14:12:24  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Parametrized recipe id to support FLAMES recipe</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.2  2006/10/05 11:16:41  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Declared parameter list const</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.2  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_CREATE_TABLE_H</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_CREATE_TABLE_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <a class="code" href="group__uves__physmod.html#ga00e5ea8f673b3dfd86ba0d7982e0d793" title="Generates two tables with results of the UVES physical model.">uves_physmod_create_table</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header, </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>                           <span class="keyword">enum</span> uves_chip chip, </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>               <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>                           <span class="keyword">const</span> cpl_parameterlist* parameters,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>                           cpl_table* line_refer,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>                           <span class="keyword">const</span> <span class="keywordtype">double</span> physmod_shift_x,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>                           <span class="keyword">const</span> <span class="keywordtype">double</span> physmod_shift_y,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>                           cpl_table** mod_tbl,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>                           cpl_table** fsr_tbl);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PHYSMOD_CREATE_TABLE_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__cstacen_8c_source.html b/html/uves__physmod__cstacen_8c_source.html
deleted file mode 100644
index a380b86..0000000
--- a/html/uves__physmod__cstacen_8c_source.html
+++ /dev/null
@@ -1,1532 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_cstacen.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_cstacen.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.11 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.9  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.8  2006/08/23 15:41:06  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * removed warning from checks on line length</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.7  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.6  2006/06/20 10:56:56  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * cleaned output, added units</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.5  2006/06/20 08:25:56  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * fixed doxigen warnings</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.4  2006/06/13 11:59:51  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Fixed doc. bug</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.3  2006/06/08 11:01:50  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * fixed some warnings</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.2  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.13  2006/01/20 10:05:49  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.12  2006/01/13 09:54:42  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Fixed some bugs: improved agreement with MIDAS version</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.11  2006/01/09 14:05:42  amodigli</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Fixed doxigen warnings</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.10  2006/01/05 14:29:59  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Removed newline characters from output strings</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.9  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">/* code derived by MIDAS cstacen.c */</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment">/* definition of the used functions in this module */</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor">#include "uves_physmod_cstacen.h"</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment">/* Define _POSIX_SOURCE to indicate that this is a POSIX program */</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">/* replaced osmmget by cpl_calloc */</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">/* replaced osmmfree by cpl_free */</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor">#define  _POSIX_SOURCE 1</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">/* define some macros and constants */</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor">#ifndef  PI</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor"></span><span class="preprocessor">#define  PI             3.14159265358979325e0</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="preprocessor"></span><span class="comment">/*</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment">#ifndef true</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment">#define true            1</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">#define false           0</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">#endif</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment">/* Constants used by the moment centering */</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="preprocessor">#define MINVAL      1.0e-37</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="preprocessor"></span><span class="preprocessor">#define MMXITER     8</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="preprocessor"></span><span class="preprocessor">#define SMALL           1.0e-20</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment">/* Constants used by the gaussian centering */</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="preprocessor">#define MAXPAR        4</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="preprocessor"></span><span class="preprocessor">#define IGNORE        2</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="preprocessor"></span><span class="preprocessor">#define NOCONV        -1</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="preprocessor"></span><span class="preprocessor">#define OUTSIDE        -2</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="preprocessor"></span><span class="preprocessor">#define GMXITER     50</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="preprocessor"></span><span class="preprocessor">#define GCHIMAX        5.0e+16</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="preprocessor"></span><span class="preprocessor">#define GCHIFND        0.005</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor">#define MYMIN(a,b)   ((a) > (b) ? (b) : (a))</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="preprocessor"></span><span class="preprocessor">#define MYMAX(a,b)   ((b) > (a) ? (b) : (a))</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00188"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#ga07c91aa64ccf1d26ec66969f4eff03ba">  188</a></span> <a class="code" href="group__uves__physmod__cstacen.html#ga07c91aa64ccf1d26ec66969f4eff03ba" title="Routines used to do Gaussian fit to a line.">uves_physmod_stacen</a>(<span class="keywordtype">float</span>* p_img, <span class="keywordtype">int</span> dimx, <span class="keywordtype">int</span> dimy, <span class="ke [...]
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                   <span class="keywordtype">float</span>* xout, <span class="keywordtype">float</span>* yout, <span class="keywordtype">float</span>* xerr, <span class="keywordtype">float</span>* yerr,</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                   <span class="keywordtype">float</span>* xsig, <span class="keywordtype">float</span>* ysig, <span class="keywordtype">float</span>* xyval, <span class="keywordtype">int</span>* stat )</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> {</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="keywordtype">int</span>   npix[2], imap[4];</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="keywordtype">float</span> xypos[2], xyerr[2], xysig[2];</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> npix[0]  = dimx;</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> npix[1]  = dimy;</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> imap[0] = image[0] - 1;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> imap[1] = image[1] - 1;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> imap[2] = image[2] - 1;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> imap[3] = image[3] - 1;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment"> uves_msg("Input=: npix[0]=%d npix[1]=%d",npix[0],npix[1]);</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> uves_msg("Input=: imap[0]=%d imap[1]=%d imap[2]=%d imap[3]=%d",imap[0],imap[1],imap[2],imap[3]);</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> *stat = <a class="code" href="group__uves__physmod__cstacen.html#gad12404aed36494433fc265f4e8c93832" title="Routines used to do Gaussian fit to a line.">uves_physmod_cstacen</a>(meth, p_img, npix, imap, xypos, xyerr, xysig, xyval );</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> *xout = xypos[0] + 1;</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> *yout = xypos[1] + 1;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> *xerr = xyerr[0];</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> *yerr = xyerr[1];</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> *xsig = xysig[0];</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> *ysig = xysig[1];</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment"> uves_msg("xout=%f,yout=%f,xerr=%f,yerr=%f,xsig=%f,ysig=%f",</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">         *xout,*yout,*xerr,*yerr,*xsig,*ysig);</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>  <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> } </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815">  232</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(<span class="keywordtype">float</span> a){   </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>   <span class="keywordtype">int</span> res=0;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>  res = (a) > 0 ? floor(a+0.5) : -floor(a-0.5);</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>  <span class="keywordflow">return</span> res;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> }</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> </div>
-<div class="line"><a name="l00269"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#ga2b5f7c3330cda7deb43afb23fd15f471">  269</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod__cstacen.html#ga2b5f7c3330cda7deb43afb23fd15f471" title="selects a constant mean through a kap*sig clipping">Ckapsig</a>( <span class="keywordtype">float</span> *val, <span class="keywordtype">int</spa [...]
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>                           <span class="keywordtype">float</span> *cons, <span class="keywordtype">float</span> *rms, <span class="keywordtype">int</span> *npts )</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> {</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="keyword">register</span> <span class="keywordtype">int</span> ii=0;</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="keyword">register</span> <span class="keywordtype">int</span> it=0;</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="keyword">register</span> <span class="keywordtype">int</span> nr=0;</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="keywordtype">int</span>   nr_old=0;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="keywordtype">float</span> clip=0;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="keywordtype">float</span> dels=0;</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="keywordtype">float</span> delv=0;</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="keywordtype">float</span> mean=0;</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="keywordtype">float</span> msq=0;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="keywordtype">float</span> sum=0;</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="keywordtype">float</span> *vsq=NULL;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="keywordflow">if</span> ( nval < 2 ) <span class="keywordflow">return</span> (-1);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment">/* initialize mean value */</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> mean = 0.0;</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="keywordflow">for</span> (ii=0; ii<nval; ii++) mean += val[ii];</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> mean /= (float) (nval);</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> msq = mean * mean;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment">/* initialize RMS */</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> vsq = (<span class="keywordtype">float</span> *) cpl_calloc( nval, <span class="keyword">sizeof</span>( <span class="keywordtype">float</span> ));</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> dels = 0.0;</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="keywordflow">for</span> (ii=0; ii<nval; ii++)</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     {</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     vsq[ii] = val[ii] * val[ii];</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     delv = MYMAX( 0.0, vsq[ii] + msq - (2.0 * mean * val[ii]));</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     dels += delv;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     }</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> *rms = (float) sqrt( MYMAX( MINVAL, dels / (nval-1)));</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> clip = akap * (*rms);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="comment">/* iterate */</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> nr_old = 0;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="keywordflow">for</span> (it=0; it<iter; it++)</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>    {</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>    nr = 0;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>    sum  = 0.0;</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>    dels = 0.0;</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>    <span class="keywordflow">for</span> ( ii = 0; ii < nval; ii++ )</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>       {</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>       <span class="keywordflow">if</span> ( fabs( val[ii] - mean ) < (double) clip )     </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>          {</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>          nr++;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>          delv = MYMAX( 0.0, vsq[ii] + msq - 2.0 * mean * val[ii]);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>          dels += delv;</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>          sum  += val[ii];</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>          }</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>       }</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>    <span class="keywordflow">if</span> ( nr <= 2 || nr == nr_old ) <span class="keywordflow">goto</span> end_of_it;</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>    <span class="comment">/* define new rms and mean value */</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> </div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>    nr_old = nr;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>    *rms = (float) sqrt( MYMAX( MINVAL, dels / (nr-1)));</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>    clip = akap * *rms;</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>    mean = sum / nr_old;</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>    msq  = mean * mean;</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>    }</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> end_of_it:</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> *cons = mean;                <span class="comment">/* exit */</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> *npts = nr;</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> cpl_free(vsq);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> <span class="keywordflow">return</span> (0);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> }</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> </div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> </div>
-<div class="line"><a name="l00373"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#ga42a3691025750c317d1f147208f826f0">  373</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod__cstacen.html#ga42a3691025750c317d1f147208f826f0" title="calculate the inverse of a matrix">MATINV</a>( <span class="keywordtype">double</span> (*matrix)[MAXPAR], <span class="keywordtype">int</span> n [...]
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> {</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="keyword">register</span> <span class="keywordtype">int</span> ii=0;</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="keyword">register</span> <span class="keywordtype">int</span> jj=0;</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="keyword">register</span> <span class="keywordtype">int</span> kk=0;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> <span class="keywordtype">int</span>    evin=0;</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="keywordtype">int</span>    row=0;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> <span class="keywordtype">int</span>    per[MAXPAR];</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> <span class="keywordtype">double</span> even=0.;</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> <span class="keywordtype">double</span> mjk=0.;</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> <span class="keywordtype">double</span> rowmax=0.;</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> <span class="keywordtype">double</span> hv[MAXPAR];</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> <span class="keywordflow">for</span> ( ii = 0; ii < nfree; ii++ ) per[ii] = ii;     <span class="comment">/* set permutation array */</span></div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> </div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> <span class="keywordflow">for</span> ( jj = 0; jj < nfree; jj++ )                   <span class="comment">/* in j-th column, ... */</span></div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>    {</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>    rowmax = fabs( matrix[jj][jj] );             <span class="comment">/* determine row with ... */</span></div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>    row = jj;                                    <span class="comment">/* largest element. */</span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>    <span class="keywordflow">for</span> ( ii = jj + 1; ii < nfree; ii++ )</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>       {</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>       <span class="keywordflow">if</span> ( fabs( matrix[ii][jj] ) > rowmax )</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>          {</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>          rowmax = fabs( matrix[ii][jj] );</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>          row = ii;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>          }</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>       }</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>    <span class="keywordflow">if</span> (fabs(matrix[row][jj]) < SMALL)             <span class="comment">/* determinant is zero! */</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>       <span class="keywordflow">return</span> (1);</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>    <span class="keywordflow">if</span> ( row > jj )                           <span class="comment">/* if largest element not ...*/</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>       {</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>       <span class="keywordflow">for</span> ( kk = 0; kk < nfree; kk++ )     <span class="comment">/* on diagonal, then ... */</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>          {</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>          even = matrix[jj][kk];            <span class="comment">/* permutate rows. */</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>          matrix[jj][kk] = matrix[row][kk];</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>          matrix[row][kk] = even;</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>          }</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>       evin = per[jj];                      <span class="comment">/* keep track of permutation */</span></div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>       per[jj] = per[row];</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>       per[row] = evin;</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>       }</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>    even = 1.0 / matrix[jj][jj];              <span class="comment">/* modify column */</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>    <span class="keywordflow">for</span> (ii=0; ii<nfree; ii++) </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>       matrix[ii][jj] *= even;</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>    matrix[jj][jj] = even;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>    <span class="keywordflow">for</span> (kk=0; kk<jj; kk++)</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>       { </div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>       mjk = matrix[jj][kk];</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>       <span class="keywordflow">for</span> ( ii = 0; ii < jj; ii++ ) </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>          matrix[ii][kk] -= matrix[ii][jj] * mjk;</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>       <span class="keywordflow">for</span> ( ii = jj + 1; ii < nfree; ii++ )</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>          matrix[ii][kk] -= matrix[ii][jj] * mjk;</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>       matrix[jj][kk] = -even * mjk;</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>       }</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>    <span class="keywordflow">for</span> ( kk = jj + 1; kk < nfree; kk++ )</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>       {</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>       mjk = matrix[jj][kk];</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>       <span class="keywordflow">for</span> ( ii = 0; ii < jj; ii++ )</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>          matrix[ii][kk] -= matrix[ii][jj] * mjk;</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>       <span class="keywordflow">for</span> ( ii = jj + 1; ii < nfree; ii++ )</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>          matrix[ii][kk] -= matrix[ii][jj] * mjk;</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>       matrix[jj][kk] = -even * mjk;</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>       }</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>    }</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <span class="keywordflow">for</span> ( ii = 0; ii < nfree; ii++ )                <span class="comment">/* finally, repermute the ...*/</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>    { </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>    <span class="keywordflow">for</span> ( kk = 0; kk < nfree; kk++ )          <span class="comment">/* columns. */</span></div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>       {</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>       hv[per[kk]] = matrix[ii][kk];</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>       }</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>    <span class="keywordflow">for</span> ( kk = 0; kk < nfree; kk++)</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>       {</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>       matrix[ii][kk] = hv[kk];</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>       }</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>    }</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> }</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> </div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> </div>
-<div class="line"><a name="l00473"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#ga73fbc6b725a426956499af4d5518bff4">  473</a></span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__physmod__cstacen.html#ga73fbc6b725a426956499af4d5518bff4" title="returns complementary error function EFC( xx )">ERFCC</a>( <span class="keywordtype">double</span> xx )</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> {</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> </div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> <span class="keywordtype">double</span> t=0.;</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> <span class="keywordtype">double</span> z=0.;</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> <span class="keywordtype">double</span> ans=0.;</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="keywordtype">double</span> zz=0.;</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> <span class="keywordtype">double</span> zozo=0.;</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> </div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> z = fabs( xx );</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> t = 1.0 / (1.0 + (0.5 * z));</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> <span class="comment">ans = t * exp( -z * z - 1.26551223 + t * ( 1.00002368 + t *</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> <span class="comment">                      ( 0.37409196 + t * ( 0.09678418 + t * </span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> <span class="comment">                      (-0.18628806 + t * ( 0.27886807 + t *</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> <span class="comment">                      (-1.13520398 + t * ( 1.48851587 + t *</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="comment">                      (-0.82215223 + t * 0.17087277 )))))))));</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> <span class="comment"></span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> <span class="comment"></span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> <span class="comment">the original code above didn't work on Red Hat Linux 5.2</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> <span class="comment">with CENTER/GAUSS where the main program is Fortran code</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> <span class="comment">neither on Alpha nor on Intel PC (using f2c) ... </span></div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> <span class="comment"></span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> <span class="comment">however it works on SUSE Linux 6.xx on Intel (using g77)</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="comment"></span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="comment">therefore this work around which seemed to solve the problem, KB 000522  */</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> zz =  -z * z - 1.26551223 + t * ( 1.00002368 + t *</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>                       ( 0.37409196 + t * ( 0.09678418 + t *</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>                       (-0.18628806 + t * ( 0.27886807 + t *</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>                       (-1.13520398 + t * ( 1.48851587 + t *</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>                       (-0.82215223 + t * 0.17087277 ))))))));</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> </div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> <span class="keywordflow">if</span> (zz < -500.0)</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>    zozo = 0.0;</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>    zozo = exp(zz);</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> ans = t * zozo;</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="keywordflow">return</span>  (xx >= 0.0 ? ans : 2.0 - ans);</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> }</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> </div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> </div>
-<div class="line"><a name="l00533"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#ga46739f4ebfffea22934280cd5c636e32">  533</a></span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__physmod__cstacen.html#ga46739f4ebfffea22934280cd5c636e32">GAUSFU</a>( <span class="keywordtype">double</span> xx, <span class="keywordtype">double</span> *gpar )</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> {</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> </div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> <span class="keywordtype">double</span> rc=0.;</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="keywordtype">double</span> dd=0.;</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="keyword">static</span> <span class="keywordtype">int</span>    init = TRUE;</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> <span class="keyword">static</span> <span class="keywordtype">double</span> sqrt_2;</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> <span class="keyword">static</span> <span class="keywordtype">double</span> rc1;</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> </div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> <span class="keywordflow">if</span> ( init )</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>    {</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>    sqrt_2  = sqrt( 2.0 );</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>    rc1 = sqrt(PI)/sqrt_2;</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>    init = FALSE;</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>    }</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> </div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> rc = 1.0 / (sqrt_2 * gpar[2]);</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> dd = xx - gpar[1];</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> dd = <a class="code" href="group__uves__physmod__cstacen.html#ga73fbc6b725a426956499af4d5518bff4" title="returns complementary error function EFC( xx )">ERFCC</a>(rc * (dd - 0.5)) - <a class="code" href="group__uves__physmod__cstacen.html#ga73fbc6b725a426956499af4d5518bff4" title="returns complementary error function EFC( xx )">ERFCC</a>(rc * (dd + 0.5));</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> <span class="keywordflow">return</span> ( gpar[3] + rc1 * gpar[0] * gpar[2] * dd );</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> }</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> </div>
-<div class="line"><a name="l00571"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#ga2352edbfb6cd74a452f468faf13703ea">  571</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__physmod__cstacen.html#ga2352edbfb6cd74a452f468faf13703ea" title="evaluates derivatives of function for least squares search with shape of a gaussian distribution...">GAUSDE</a>( <span class="keywordtype">doub [...]
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> {</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> <span class="keywordtype">double</span> temp=0.;</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> <span class="keywordtype">double</span> tempp=0.;</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span> <span class="keywordtype">double</span> x1=0.;</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> <span class="keywordtype">double</span> x2=0.;</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> <span class="keywordtype">double</span> zz=0.;</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> <span class="keywordtype">double</span> zx=0.;</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="keywordtype">double</span> dv1=0.; </div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="keywordtype">double</span> dv2=0.;</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> <span class="keyword">static</span> <span class="keywordtype">double</span> sqrt_2;</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span> </div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> <span class="keyword">register</span> <span class="keywordtype">int</span> jj=0;</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> <span class="keyword">static</span> <span class="keywordtype">int</span>    init = TRUE;</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> </div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> </div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> <span class="keywordflow">if</span> ( init )</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>    {</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>    sqrt_2  = sqrt( 2.0 );</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>    init = FALSE;</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>    }</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> </div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> temp = sqrt_2 * gpar[2];</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> tempp = xdat - gpar[1];</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> x1 = (tempp - 0.5) / temp;</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> x2 = (tempp + 0.5) / temp;</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> zz = tempp / gpar[2] ;</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> </div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> <span class="keywordflow">if</span> ( ((zz * zz) - 50.0) < 0.0 )</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>    { </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>    deriv[0] = (<a class="code" href="group__uves__physmod__cstacen.html#ga46739f4ebfffea22934280cd5c636e32">GAUSFU</a>( xdat, gpar ) - gpar[3]) / gpar[0];</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>    zx = (-x1) * x1;</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>    <span class="keywordflow">if</span> ( zx < -200.0)        <span class="comment">/*  zx  always < 0 */</span></div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>       dv1 = 0.0;        <span class="comment">/*  e**(-200)  is = 0.0 ... */</span></div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>    <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>       dv1 = exp(zx);</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>    zx = (-x2) * x2;</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>    <span class="keywordflow">if</span> ( zx < -200.0)</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>       dv2 = dv1;</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>    <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>       dv2 = dv1 - exp(zx);</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>    deriv[1] = gpar[0] * dv2;</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> </div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>    <span class="comment">/*    for (x1 * x1) > 400  we got floating point exceptions on DEC Alpha </span></div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> <span class="comment">   deriv[1] = gpar[0] * (exp( -x1 * x1 ) - exp( -x2 * x2 ));</span></div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> </div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>    deriv[2] = deriv[1] * zz;</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>    }</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>    <span class="keywordflow">for</span> (jj=0; jj<3; jj++) deriv[jj] = 0.0;</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>      </div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> deriv[3] = 1.0;</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> }</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> </div>
-<div class="line"><a name="l00645"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#ga55ab1000c00c0f198531b3273e792c80">  645</a></span> <span class="keyword">static</span> <span class="keywordtype">float</span> <a class="code" href="group__uves__physmod__cstacen.html#ga55ab1000c00c0f198531b3273e792c80" title="evaluate reduced chi square for fit to data">FCHIS</a>(<span class="keywordtype">double</span> *data,<span class="keywordtype">int</span> ndim [...]
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> </div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> <span class="keyword">register</span> <span class="keywordtype">int</span> ii=0;</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span> </div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> <span class="keywordtype">double</span> diff=0.;</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> <span class="keywordtype">double</span> weight=0.;</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> <span class="keywordtype">double</span> chisq=0.;</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> </div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> </div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> <span class="keywordflow">if</span> ( nfree > 0 )</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>    {</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>    chisq = 0.0;</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> </div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>    <span class="keywordflow">for</span> (ii=0; ii<ndim; ii++)</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>       {</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>       <span class="keywordflow">if</span> ( mode < 0 )</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>          {</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>          <span class="keywordflow">if</span> ( *data < 0 )</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>             weight = -1. / *data;</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>          <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( *data == 0 )</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>             weight = 1.0;</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>          <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>             weight = 1. / *data;</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>          }</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>          weight = 1.0;</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> </div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>       diff = (*data) - (*dfit);</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>       data++;  dfit++;</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>       chisq += weight * diff * diff;</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>       }</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>    <span class="keywordflow">return</span> (chisq / nfree);</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>    }</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> </div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>    <span class="keywordflow">return</span> 0.0;</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> }</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> </div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00711"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#ga192772b744a088e5d80b13b4ca533806">  711</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod__cstacen.html#ga192772b744a088e5d80b13b4ca533806" title="least squares fit to a non-linear function">LSQFIT</a>( <span class="keywordtype">double</span> *xdat, <span class="keywordtype">double</span> * [...]
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>                          <span class="keywordtype">double</span> *gpar, <span class="keywordtype">float</span> *lamda, <span class="keywordtype">double</span> *dfit, </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>                          <span class="keywordtype">double</span> *chisqr, <span class="keywordtype">double</span> *sigma )</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> </div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> {</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> </div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> <span class="keyword">register</span> <span class="keywordtype">int</span> icnt=0;</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> <span class="keyword">register</span> <span class="keywordtype">int</span> ii=0;</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> <span class="keyword">register</span> <span class="keywordtype">int</span> jj=0;</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span> <span class="keyword">register</span> <span class="keywordtype">int</span> kk=0;</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span> <span class="keywordtype">int</span>    nfree=0;</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> <span class="keywordtype">double</span> chisq1=0;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> <span class="keywordtype">double</span> b[MAXPAR], beta[MAXPAR], deriv[MAXPAR], </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>                array[MAXPAR][MAXPAR], alpha[MAXPAR][MAXPAR];</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>                                                                                </div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> </div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> nfree = ndim - MAXPAR;</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span> *sigma = 0.0;</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> <span class="keywordflow">if</span> ( nfree < 1 || fabs( (<span class="keywordtype">double</span>) *gpar ) < SMALL ) <span class="keywordflow">return</span> (1);</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span> </div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> <span class="comment">/* evaluate ALPHA and BETA matrices */</span></div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> </div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> <span class="keywordflow">for</span> (ii=0; ii<MAXPAR; ii++)</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>    {</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>    beta[ii] = 0.0;</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>    <span class="keywordflow">for</span> (jj=0; jj<=ii; jj++) alpha[ii][jj] = 0.0;</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>    }</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> </div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> <span class="keywordflow">for</span> (ii=0; ii<ndim; ii++)</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>     {</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>     <a class="code" href="group__uves__physmod__cstacen.html#ga2352edbfb6cd74a452f468faf13703ea" title="evaluates derivatives of function for least squares search with shape of a gaussian distribution...">GAUSDE</a>( xdat[ii], gpar, deriv );          <span class="comment">/* here we divide by gpar[1] */</span></div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> </div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>     <span class="keywordflow">for</span> (jj=0; jj<MAXPAR; jj++)</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>        {</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>        beta[jj] += (data[ii] - <a class="code" href="group__uves__physmod__cstacen.html#ga46739f4ebfffea22934280cd5c636e32">GAUSFU</a>( xdat[ii], gpar )) * deriv[jj];</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>        <span class="keywordflow">for</span> (kk=0; kk<=jj; kk++) </div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>           alpha[jj][kk] += deriv[jj] * deriv[kk];</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>        }</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>     }</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span> </div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span> <span class="keywordflow">for</span> (ii=0; ii<MAXPAR; ii++)</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>    {</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>    <span class="keywordflow">for</span> (jj=0; jj<=ii; jj++) </div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>       alpha[jj][ii] = alpha[ii][jj];</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>    }</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span> </div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span> </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> <span class="comment">/* invert matrix */</span></div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span> <span class="keywordflow">if</span> ( *lamda < SMALL)</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>    {</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>    <span class="keywordflow">if</span> (<a class="code" href="group__uves__physmod__cstacen.html#ga42a3691025750c317d1f147208f826f0" title="calculate the inverse of a matrix">MATINV</a>(alpha,MAXPAR) == 1) <span class="keywordflow">return</span> (2);    <span class="comment">/* determinant -> 0.0 */</span></div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span> </div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>    *sigma = MYMAX( 0.0, alpha[1][1] );</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>    }</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span> </div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> <span class="keywordflow">else</span>                                <span class="comment">/* evaluate chi square at starting point */</span></div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>    {</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>    <span class="keywordflow">for</span> (ii=0; ii<ndim; ii++)</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>       dfit[ii] = <a class="code" href="group__uves__physmod__cstacen.html#ga46739f4ebfffea22934280cd5c636e32">GAUSFU</a>( xdat[ii], gpar );</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span> </div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>    chisq1 = <a class="code" href="group__uves__physmod__cstacen.html#ga55ab1000c00c0f198531b3273e792c80" title="evaluate reduced chi square for fit to data">FCHIS</a>( data, ndim, nfree, 0, dfit );</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>    icnt = 0;            <span class="comment">/* invert matrix */</span></div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> loop:</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>    <span class="keywordflow">for</span> ( jj = 0; jj < MAXPAR; jj++ )</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>       {</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>       <span class="keywordflow">for</span> ( kk = 0; kk < MAXPAR; kk++ )</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>          {</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>          <span class="keywordflow">if</span> (fabs( alpha[jj][jj] ) < 1.e-15 || fabs( alpha[kk][kk] ) < 1.e-15) </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>             <span class="keywordflow">return</span> 2;</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>          array[jj][kk] = alpha[jj][kk] / </div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>                                       sqrt( alpha[jj][jj] * alpha[kk][kk] ) ;</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>          }</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>       array[jj][jj] = 1.0 + *lamda;</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>       }</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>    (void) <a class="code" href="group__uves__physmod__cstacen.html#ga42a3691025750c317d1f147208f826f0" title="calculate the inverse of a matrix">MATINV</a>( array, MAXPAR );</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> </div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>    <span class="keywordflow">for</span> ( jj = 0; jj < MAXPAR; jj++ )</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>       {</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>       b[jj] = gpar[jj] ;</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>       <span class="keywordflow">for</span> ( kk = 0; kk < MAXPAR ; kk++ )</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>          {</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>          b[jj] += beta[kk] * array[jj][kk] / </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>                                         sqrt( alpha[jj][jj] * alpha[kk][kk] );</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>          }</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>       }</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> </div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span> <span class="comment">/* if chi square increased, increase LAMDA and try again */</span></div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>    <span class="keywordflow">for</span> (ii=0; ii<ndim; ii++)</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>       dfit[ii] = <a class="code" href="group__uves__physmod__cstacen.html#ga46739f4ebfffea22934280cd5c636e32">GAUSFU</a>( xdat[ii], b );</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>    </div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>    *chisqr = <a class="code" href="group__uves__physmod__cstacen.html#ga55ab1000c00c0f198531b3273e792c80" title="evaluate reduced chi square for fit to data">FCHIS</a>( data, ndim, nfree, 0, dfit );</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span> </div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>    <span class="keywordflow">if</span> ( chisq1 - *chisqr < 0.0 )</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>       {</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>       <span class="keywordflow">if</span> (++icnt < 60)</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>          {</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>          *lamda *= 10;</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>          <span class="keywordflow">goto</span> loop;</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>          }</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>          <span class="keywordflow">return</span> (2);</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>       }</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span> </div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>    <span class="keywordflow">for</span> (jj=0; jj<MAXPAR; jj++) gpar[jj] = b[jj];</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>    *lamda /= 10.0;</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>    }</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span> </div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span> <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span> }</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span> </div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span> </div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00849"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#gad923251bceb0400556ebdd0b0638ea4c">  849</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__physmod__cstacen.html#gad923251bceb0400556ebdd0b0638ea4c" title="compute X-marginal vector KRX.">Crhox</a>( <span class="keywordtype">float</span> *p_img, <span class="keywordtype">int</span> *npix, <span cla [...]
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>                          <span class="keywordtype">int</span> *lnew, <span class="keywordtype">double</span> *krx )</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span> </div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> {</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span> <span class="keyword">register</span> <span class="keywordtype">int</span> nxdim=0;</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span> <span class="keyword">register</span> <span class="keywordtype">int</span> ix=0;</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span> <span class="keyword">register</span> <span class="keywordtype">int</span> iy=0;</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span> </div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> <span class="keywordtype">int</span> nrx=0;</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> <span class="keywordtype">int</span> nry=0;</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>  </div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> <span class="keywordtype">double</span> sum=0;</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> </div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span> </div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span> </div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> </div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> <span class="comment">/*  original FORTRAN code:</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> <span class="comment"></span></div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> <span class="comment">      IXA = IMAP(1)        IMAP(1-4) => image[0-3]</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span> <span class="comment">      IXE = IMAP(2)</span></div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> <span class="comment">      IYA = IMAP(3)</span></div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> <span class="comment">      JYA = IYA + JY - 1    JY => lnew[0]</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> <span class="comment">      JYE = IYA + LY - 1    LY => lnew[1]</span></div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> <span class="comment">      M = 1</span></div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> <span class="comment"></span></div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> <span class="comment">         DO 200 J=IXA,IXE</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> <span class="comment">            ISUM = 0.D0</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> <span class="comment">            DO 100 K=JYA,JYE</span></div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span> <span class="comment">               ISUM = ISUM + AIMG(J,K)</span></div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span> <span class="comment">100         CONTINUE</span></div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span> <span class="comment">            KRX(M) = ISUM</span></div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> <span class="comment">            M = M + 1</span></div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span> <span class="comment">200      CONTINUE</span></div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span> </div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span> nrx = image[1] - image[0] + 1;</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span> nry = lnew[1] - lnew[0] + 1;</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span> nxdim = *npix;</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span> p_img += nxdim * (image[2] + lnew[0]);</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span> </div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span> <span class="keywordflow">for</span> (ix=0; ix<nrx; ix++)</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>    {</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>    sum = 0.0;</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>    <span class="keywordflow">for</span> (iy=0; iy<nry*nxdim; iy+=nxdim) sum += p_img[iy];</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>    p_img++;</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>    *krx++ = sum;</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>    }</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> }</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span> </div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span> </div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> </div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00921"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#ga582a2d79c11dcf90fa7628a8e802d641">  921</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__physmod__cstacen.html#ga582a2d79c11dcf90fa7628a8e802d641" title="compute Y-marginal vector KRY.">Crhoy</a>( <span class="keywordtype">float</span> *p_img, <span class="keywordtype">int</span> *npix, <span cla [...]
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                          <span class="keywordtype">int</span> *lnew, <span class="keywordtype">double</span> *kry )</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span> </div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> {</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span> <span class="keyword">register</span> <span class="keywordtype">int</span> nxdim=0;</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span> <span class="keyword">register</span> <span class="keywordtype">int</span> ix=0;</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> <span class="keyword">register</span> <span class="keywordtype">int</span> iy=0;</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span> </div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> <span class="keywordtype">int</span> nrx=0;</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span> <span class="keywordtype">int</span> nry=0;</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span> </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span> <span class="keywordtype">double</span> sum=0;</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> </div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span> </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> </div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> <span class="comment">/*  original FORTRAN code:</span></div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span> <span class="comment"></span></div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span> <span class="comment">      IXA = IMAP(1)        IMAP(1-4) => image[0-3]</span></div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> <span class="comment">      IYA = IMAP(3)</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span> <span class="comment">      IYE = IMAP(4)</span></div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span> <span class="comment">      JXA = IXA + JX - 1    JX => lnew[0]</span></div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> <span class="comment">      JXE = IXA + LX - 1    LX => lnew[1]</span></div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span> <span class="comment"></span></div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span> <span class="comment">         M = 1</span></div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> <span class="comment">         DO 200 J=IYA,IYE</span></div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> <span class="comment">            ISUM = 0.D0</span></div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> <span class="comment">            DO 100 K=JXA,JXE</span></div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> <span class="comment">               ISUM = ISUM + AIMG(K,J)</span></div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span> <span class="comment">100         CONTINUE</span></div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> <span class="comment">            KRY(M) = ISUM</span></div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span> <span class="comment">            M = M + 1</span></div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span> <span class="comment">200      CONTINUE</span></div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span> <span class="comment"></span></div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> </div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> nrx = lnew[1] - lnew[0] + 1;</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span> nry = image[3] - image[2] + 1;</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> nxdim = *npix;</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span> p_img += (nxdim * image[2]) + (image[0] + lnew[0]);</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span> </div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> <span class="keywordflow">for</span> (iy=0; iy<nry; iy++)</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>    {</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>    sum = 0.0;</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>    <span class="keywordflow">for</span> (ix=0; ix<nrx; ix++) sum += p_img[ix];</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>    p_img += nxdim;</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>    *kry++ = sum;</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>    }</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span> }</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span> </div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00994"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#ga8baeae8b13dcba7884349e7a061fe1fc">  994</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod__cstacen.html#ga8baeae8b13dcba7884349e7a061fe1fc" title="search a star from a marginal distribution">Cserch</a>( <span class="keywordtype">double</span> *marg, <span class="keywordtype">int</span> ndim [...]
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>                          <span class="keywordtype">int</span> *lmin, <span class="keywordtype">int</span> *lmax, <span class="keywordtype">float</span> *s_cent, <span class="keywordtype">float</span> *s_width )</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> </div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span> {</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> </div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span> <span class="keyword">register</span> <span class="keywordtype">int</span> ii=0;</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> </div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> <span class="keywordtype">int</span> ql=0;</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> <span class="keywordtype">int</span> ibgn=0;</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> <span class="keywordtype">int</span> icrowd=0;</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> <span class="keywordtype">int</span> iend=0;</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> <span class="keywordtype">int</span> imax=0;</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="keywordtype">int</span> imin=0;</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> <span class="keywordtype">int</span> indx=0;</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> </div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> <span class="keywordtype">double</span> dxk=0.;</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> <span class="keywordtype">double</span> diff=0.;</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span> <span class="keywordtype">double</span> drmn=0.;</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> <span class="keywordtype">double</span> drmx=0.;</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> <span class="keywordtype">double</span> sum=0.;</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> <span class="keywordtype">double</span>  *work=NULL;</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> </div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> </div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> ibgn = ign;</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> iend = ndim - ign -1;            <span class="comment">/* ojo */</span></div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> </div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span> <span class="comment">/* create workspace to store the derivative of the marginal data */</span></div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> </div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> work = (<span class="keywordtype">double</span> *) cpl_calloc( ndim , <span class="keyword">sizeof</span>( <span class="keywordtype">double</span> ));</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> </div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span> </div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> <span class="comment">/* find maximum and minimum derivative of MARG */</span></div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span> </div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> imin = imax = 0;</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span> drmn = drmx = 0.0;</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> <span class="keywordflow">for</span> (ii = ibgn; ii < iend; ii++ )</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>     {</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>     diff = marg[ii+1] - marg[ii-1];</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>     work[ii] = marg[ii+2] - marg[ii-2] + (2 * diff);</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>     <span class="keywordflow">if</span> ( work[ii] >= drmx )     </div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>        {</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>        drmx = work[ii];</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>        imax = ii;</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>        }</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>     <span class="keywordflow">if</span> (</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>        work[ii] <= drmn )     </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>        { drmn = work[ii];</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>        imin = ii;</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>        }</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>     }</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> </div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> <span class="comment">/* crowded ? */</span></div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> </div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> icrowd = 0;</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span> <span class="keywordflow">if</span> (imin <= imax ) <span class="comment">/* bright source to the left, compute right a new minima */</span></div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>    {</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>    <span class="keywordflow">if</span> ( ndim - imax > imin )     </div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>       {</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>       icrowd = -1;</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>       drmn = drmx;</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>       <span class="keywordflow">for</span> ( ii = imax+1; ii < iend; ii++ )</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>          {</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>          <span class="keywordflow">if</span> ( work[ii] < drmn )</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>             {</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>             drmn = work[ii];</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>             imin = ii;</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>             }</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>          }</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>       }</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>    <span class="keywordflow">else</span>           <span class="comment">/* bright source to the right, compute left a new maxima */</span></div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>       {</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>       icrowd = 1;</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>       drmx = drmn;</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>       <span class="keywordflow">for</span> ( ii = ibgn; ii < imin; ii++ )</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>          {</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>          <span class="keywordflow">if</span> ( work[ii] >= drmx )</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>             { </div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>             drmx = work[ii];</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>             imax = ii;</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>             }</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>          }</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>       }</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>    }</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> </div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> </div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> <span class="comment">/* compute estimates of image centre and width */</span></div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> </div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> *s_cent  = ((float)(imax + imin)) * 0.5;</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span> *s_width = imin - imax;</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> </div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> sum = 0.0;</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> <span class="keywordflow">for</span> ( ii = imax; ii <= imin; ii++ ) sum += work[ii];</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> </div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> diff = drmx - drmn;</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> <span class="keywordflow">if</span> ( fabs(diff) > SMALL)</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>    {</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>    dxk = sum * *s_width / ( (*s_width+1.0)*diff );</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>    *s_cent += dxk;</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>    }</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> *s_width /= 2;</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> indx = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(*s_cent);</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span> <span class="keywordflow">if</span> (indx < 0)</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>    {</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>    *s_cent = 0.0;</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>    indx = 0;</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>    }</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (indx >= ndim)</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>    {</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>    *s_cent = (float)(ndim-1);</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>    indx = ndim-1;</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>    }</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span> </div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span> <span class="comment">/* find low- (left-) side local minimum */</span></div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> </div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> ql = indx - 2;</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> *lmin = 0;</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> <span class="keywordflow">if</span> (ql < 2) <span class="keywordflow">goto</span> next_step;</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> </div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span> low_loop:</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> ql --;</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span> <span class="keywordflow">if</span> (ql <= 0 ) <span class="keywordflow">goto</span> next_step;</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> <span class="keywordflow">if</span> (ql == 1) <span class="keywordflow">goto</span> lo5;</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> <span class="keywordflow">if</span> (ql == 2) <span class="keywordflow">goto</span> lo4;</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> <span class="keywordflow">if</span> (ql == 3) <span class="keywordflow">goto</span> lo3;</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> </div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> <span class="keywordflow">if</span> (marg[ql] > marg[ql-4]) <span class="keywordflow">goto</span> low_loop;</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> lo3:</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> <span class="keywordflow">if</span> (marg[ql] > marg[ql-3]) <span class="keywordflow">goto</span> low_loop;</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> lo4:</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> <span class="keywordflow">if</span> (marg[ql] > marg[ql-2]) <span class="keywordflow">goto</span> low_loop;</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span> lo5:</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span> <span class="keywordflow">if</span> (marg[ql] > marg[ql-1]) <span class="keywordflow">goto</span> low_loop;</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span> </div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span> *lmin = ql + 1;</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span> </div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span> </div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> <span class="comment">/* find high- (right-) side local minimum */</span></div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> </div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> next_step:</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> ql = indx + 2;</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> *lmax = ndim - 1;</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> ii = ndim - ql;</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> <span class="keywordflow">if</span> (ii < 3) <span class="keywordflow">goto</span> end_of_it;</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> </div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> hi_loop:</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span> ql ++ ;</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span> ii = ndim - ql;</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span> <span class="keywordflow">if</span> (ii == 1 ) <span class="keywordflow">goto</span> end_of_it;</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span> <span class="keywordflow">if</span> (ii == 2) <span class="keywordflow">goto</span> hi5;</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> <span class="keywordflow">if</span> (ii == 3) <span class="keywordflow">goto</span> hi4;</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span> <span class="keywordflow">if</span> (ii == 4) <span class="keywordflow">goto</span> hi3;</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> </div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> <span class="keywordflow">if</span> (marg[ql] > marg[ql+4]) <span class="keywordflow">goto</span> hi_loop;</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> hi3:</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> <span class="keywordflow">if</span> (marg[ql] > marg[ql+3]) <span class="keywordflow">goto</span> hi_loop;</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span> hi4:</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span> <span class="keywordflow">if</span> (marg[ql] > marg[ql+2]) <span class="keywordflow">goto</span> hi_loop;</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span> hi5:</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span> <span class="keywordflow">if</span> (marg[ql] > marg[ql+1]) <span class="keywordflow">goto</span> hi_loop;</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> *lmax = ql - 1;</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span> </div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span> end_of_it:</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> (void) cpl_free( (<span class="keywordtype">char</span> *) work );</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> <span class="keywordflow">return</span> (icrowd);</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> </div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> }</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span> </div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> </div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> <span class="comment">/* ------------------------------------------*/</span></div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> <span class="comment">/* here starts the code of the main function */</span></div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> <span class="comment">/* ------------------------------------------*/</span></div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> </div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> </div>
-<div class="line"><a name="l01208"></a><span class="lineno"><a class="code" href="group__uves__physmod__cstacen.html#gad12404aed36494433fc265f4e8c93832"> 1208</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod__cstacen.html#gad12404aed36494433fc265f4e8c93832" title="Routines used to do Gaussian fit to a line.">uves_physmod_cstacen</a>(<span class="keywordtype">char</span> meth, <span class="keywordtype">float</span>* p_img, <span class="keywor [...]
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>             <span class="keywordtype">float</span>* xypos, <span class="keywordtype">float</span>* xyerr, <span class="keywordtype">float</span>* xysig, <span class="keywordtype">float</span>* xyval )</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> </div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> {</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> </div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> <span class="keyword">register</span> <span class="keywordtype">int</span> it=0;</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> <span class="keyword">register</span> <span class="keywordtype">int</span> ix=0;</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> <span class="keyword">register</span> <span class="keywordtype">int</span> iy=0;</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> </div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span> <span class="keywordtype">int</span> bgnr=0;</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span> <span class="keywordtype">int</span> indx=0;</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> <span class="keywordtype">int</span> indy=0;</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span> <span class="keywordtype">int</span> istat=0;</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> <span class="keywordtype">int</span> nrx=0;</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span> <span class="keywordtype">int</span> nry=0;</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span> <span class="keywordtype">int</span> nval=0;</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span> <span class="keywordtype">int</span> ifram[4];</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> </div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span> <span class="keywordtype">float</span> bgval=0.;</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> <span class="keywordtype">float</span> clip=0.;</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span> <span class="keywordtype">float</span> rms=0.;</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span> <span class="keywordtype">float</span> xmom=0.;</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span> <span class="keywordtype">float</span> ymom=0.;</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> <span class="keywordtype">float</span> source=0.;</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span> <span class="keywordtype">float</span> sumi=0.;</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span> <span class="keywordtype">float</span> xold=0.;</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> <span class="keywordtype">float</span> yold=0.;</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span> </div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span> <span class="keywordtype">float</span> *p_bgn=NULL;</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span> <span class="keywordtype">float</span> *p_edge=NULL;</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span> </div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span> </div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> istat = 0;                        <span class="comment">/* initialize */</span></div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span> p_bgn = p_img;</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> <span class="keywordflow">for</span> (ix=0; ix<4; ix++)</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>    ifram[ix] = image[ix] + 1;            <span class="comment">/* 1 ---> ndim  */</span></div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span> nrx = ifram[1] - ifram[0] + 1;</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span> nry = ifram[3] - ifram[2] + 1;</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>       </div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> xypos[0] = (ifram[0] + ifram[1]) * 0.5;             <span class="comment">/* init to center pixel */</span></div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span> xypos[1] = (ifram[2] + ifram[3]) * 0.5;</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> xyerr[0] = xyerr[1] = 0.0;</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span> xysig[0] = xysig[1] = 0.0;</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span> *xyval = 0.0;</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span> </div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> <span class="comment">/* MOMENT centering */</span></div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span> </div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> <span class="keywordflow">if</span> ( meth != <span class="charliteral">'G'</span> && meth != <span class="charliteral">'g'</span> )</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>    {</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>    <span class="keywordtype">int</span> kk, istr, iend;</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> </div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>    xold = yold = -1.0;        <span class="comment">/* find bgval and rms from edge pixels */</span></div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span> </div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>    p_img += (ifram[0] - 1) + (npix[0] * (ifram[2] - 1));</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span> </div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>    <span class="comment">/* collect edge pixels */</span></div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span> </div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>    <span class="keywordflow">if</span> (nry > 1)</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>       {</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>       nval = (2 * nrx) + (2 * (nry-2));</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>       p_edge = (<span class="keywordtype">float</span> *) cpl_calloc( nval , <span class="keyword">sizeof</span>( <span class="keywordtype">float</span> ));</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> </div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>       <span class="keywordflow">for</span> (ix=0; ix<nrx;ix++)</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>          *p_edge++ = p_img[ix];</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> </div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>       p_img += *npix;</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>       <span class="keywordflow">for</span> (iy=0; iy<(nry-2); iy++)</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>          {</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>          *p_edge++ = p_img[0];</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>          *p_edge++ = p_img[nrx - 1];</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>          p_img += npix[0];</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>          }</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>       <span class="keywordflow">for</span> (ix=0; ix<nrx; ix++) *p_edge++ = p_img[ix];</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>       }</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>    <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>       {</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>       nval = nrx;</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>       p_edge = (<span class="keywordtype">float</span> *) cpl_calloc( nval , <span class="keyword">sizeof</span>( <span class="keywordtype">float</span> ));</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span> </div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>       <span class="keywordflow">for</span> (ix=0; ix<nrx;ix++)</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>          *p_edge++ = p_img[ix];</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>       }</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span> </div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>    p_img = p_bgn;</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> </div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>    p_edge -= nval;</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>    (void) <a class="code" href="group__uves__physmod__cstacen.html#ga2b5f7c3330cda7deb43afb23fd15f471" title="selects a constant mean through a kap*sig clipping">Ckapsig</a>( p_edge, nval, 5, 2.0, &bgval, &rms, &bgnr );</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>    (void) cpl_free( (<span class="keywordtype">char</span> *) p_edge );</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span> </div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span> </div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>    <span class="comment">/* calculate moment for pixel values > 3 * RMS above BGVAL */</span></div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span> </div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>    clip = 3.0 * rms;</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> </div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>    <span class="keywordflow">for</span> (it=0; it<MMXITER; it++)                      <span class="comment">/* iteration loop */</span></div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>       {</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>       sumi = xmom = ymom = 0.0;</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>       p_img += ifram[0] - 1 + (npix[0] * (ifram[2] - 1));</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>       <span class="keywordflow">for</span> (iy=0; iy<nry; iy++)</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>          {</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>          <span class="keywordflow">for</span> (ix=0; ix<nrx; ix++) </div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>             {</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>             <span class="keywordflow">if</span> ( (source = p_img[ix] - bgval) > clip )</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>                {</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>                sumi += source;</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>                xmom += source * (ifram[0] + ix);</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>                ymom += source * (ifram[2] + iy);</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>                }</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>             }</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>          p_img += npix[0];</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>          }</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>       p_img = p_bgn;            <span class="comment">/* reset to start of array */</span></div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span> </div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>       <span class="keywordflow">if</span> ((nrx < 3) || (nry < 3))</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>          {</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>          xysig[0] = nrx;</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>          xysig[1] = nry;</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>          istat = 1;</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>          <span class="keywordflow">if</span> ( sumi > 0.0 )</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>             {</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>             xypos[0] = xmom / sumi;</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>             xypos[1] = ymom / sumi;</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>             }</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>          <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>             {</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>             istat = 2;</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>             xypos[0] = (ifram[0] + ifram[1]) * 0.5;</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>             xypos[1] = (ifram[2] + ifram[3]) * 0.5;</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>             }</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>          indx = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xypos[0]-1);</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>          indy = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xypos[1]-1);</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>          *xyval = p_img[indx + ((*npix) * indy)];</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>          <span class="keywordflow">goto</span> end_of_iter;        <span class="comment">/* EXIT iteration loop */</span></div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>          }</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span> </div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>       <span class="keywordflow">if</span> (sumi > 0.0)                  <span class="comment">/* only positive sources */</span></div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>          {</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>          xypos[0] = xmom / sumi;</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>          xypos[1] = ymom / sumi;</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>          xysig[0] = nrx;</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>          xysig[1] = nry;</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> </div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>          <span class="keywordflow">if</span> ( xold == xypos[0] && yold == xypos[1] )</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>             {</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>             <span class="keywordtype">int</span>    nr = 0;</div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>             <span class="keywordtype">double</span> xdif, ydif, xrms, yrms;</div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span> </div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>             xrms = yrms = sumi = 0.0;</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>             p_img += ifram[0] - 1 + (npix[0] * (ifram[2] - 1));</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>             <span class="keywordflow">for</span> (iy=0; iy<nry; iy++ )</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>                {</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>                <span class="keywordflow">for</span> (ix=0; ix<nrx; ix++) </div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>                   {</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>                   <span class="keywordflow">if</span> ( (source = p_img[ix] - bgval) > clip )</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>                      {</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>                      xdif = (ifram[0] + ix) - xypos[0];</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>                      ydif = (ifram[2] + iy) - xypos[1];</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>                      xrms += fabs( source * xdif *xdif );</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>                      yrms += fabs( source * ydif *ydif );</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>                      sumi += source;</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>                      nr++;</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>                      }</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>                   }</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>                p_img += npix[0];</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>                }</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>             p_img = p_bgn;</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> </div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>             indx = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xypos[0]-1) + (npix[0] * <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xypos[1]-1));</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>             *xyval = p_img[indx];</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>             xysig[0] = (float) sqrt(xrms /(sumi+ *xyval - bgval));</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>             xysig[1] = (float) sqrt(yrms /(sumi+ *xyval - bgval));</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>             xyerr[0] = (float) (xysig[0] / sqrt( (<span class="keywordtype">double</span>) (nr - 1)));</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>             xyerr[1] = (float) (xysig[1] / sqrt( (<span class="keywordtype">double</span>) (nr - 1)));</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>             <span class="keywordflow">goto</span> end_of_iter;            <span class="comment">/* succesful return */</span></div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>             }</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span> </div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span> </div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>          xold = xypos[0];</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>          yold = xypos[1]; </div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>          }</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>          {</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>          istat = 2;</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>          xypos[0] = (ifram[0] + ifram[1]) * 0.5;</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>          xypos[1] = (ifram[2] + ifram[3]) * 0.5;</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>          indx = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xypos[0]-1);</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>          indy = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xypos[1]-1);</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>          *xyval = p_img[indx + ((*npix) * indy)];</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>          <span class="keywordflow">goto</span> end_of_iter;              <span class="comment">/* EXIT iteration loop */</span></div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>          }</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span> </div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span> </div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>       <span class="comment">/* crowded or weak source conditions */</span></div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span> </div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>       indx = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xypos[0]-1) + (npix[0] * <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xypos[1]-1));</div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>       <span class="keywordflow">if</span> ( (*xyval = p_img[indx] - bgval) <= clip )</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>          {</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>          xysig[0] = xysig[1] = 0.0;</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>          istat = 1;</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>          <span class="keywordflow">goto</span> end_of_iter;              <span class="comment">/* EXIT iteration loop */</span></div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>          }</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> </div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> </div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>       <span class="comment">/* find extent of source i.e. delete spikes, etc.  */</span></div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> </div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>       ix = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>( xypos[0] );        <span class="comment">/* ix, iy = 1,2,...   */</span></div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>       iy = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>( xypos[1] );</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>       kk = npix[0] * (iy - 1);</div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>       istr = ifram[0];</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>       source = p_img[ix-1 + kk] - bgval;</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>       <span class="keywordflow">while</span> ( source > clip && ix >= istr )</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>          {</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>          ifram[0] = ix;</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>          source = p_img[ix-1 + kk] - bgval;</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>          ix --;</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>          }</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span> </div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>       ix = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>( xypos[0] );</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>       iend = ifram[1];</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>       source = p_img[ix-1 + kk] - bgval;</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>       <span class="keywordflow">while</span> ( source > clip && ix <= iend )</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>          {</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>          ifram[1] = ix;</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>          source = p_img[ix-1 + kk] -bgval;</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>          ix ++;</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>          } </div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span> </div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>       ix = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>( xypos[0] );</div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>       istr = ifram[2];</div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>       source = p_img[ix-1 + kk] - bgval;</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>       <span class="keywordflow">while</span> ( source > clip && iy >= istr )</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>          {</div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>          ifram[2] = iy;</div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>          source = p_img[ix-1 + (*npix *(iy-1))] -bgval;</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>          iy --;</div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>          }</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> </div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>       iy = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>( xypos[1] );</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>       iend = ifram[3];</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>       source = p_img[ix-1 + kk] - bgval;</div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>       <span class="keywordflow">while</span> ( source > clip && iy <= iend )</div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>          {</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>          ifram[3] = iy;</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>          source = p_img[ix-1 + (*npix *(iy-1))] -bgval;</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>          iy++;</div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>          }</div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>       nrx = ifram[1] - ifram[0] + 1;</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>       nry = ifram[3] - ifram[2] + 1;</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>       }</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span> </div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>    istat = 3;                <span class="comment">/* iteration failed */</span></div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span> </div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span> end_of_iter:</div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>    xypos[0] --;</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>    xypos[1] --;</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>    }</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span> </div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span> </div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span> <span class="comment">/* GAUSSIAN centering */</span></div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> </div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span> <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>    {</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>    <span class="keyword">register</span> <span class="keywordtype">int</span> ii;</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>    <span class="keywordtype">int</span>    found, ierr, xlim[2], ylim[2], lnew[2];</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>    <span class="keywordtype">float</span>  lamda, xcent, ycent, xwidth, ywidth;</div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>    <span class="keywordtype">double</span> chisqr, oldchi, sigma, *krx, *kry, *gfit, *xpos, *yfit, </div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>           gpar[MAXPAR];</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span> </div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span> </div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>    <span class="comment">/* construct two marginal distibutions (in pixel coordinates!) */</span></div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span> </div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>    lnew[0] = (nry / 4);        <span class="comment">/* in C notation, from 0 ...  */</span></div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>    lnew[1] = nry - (nry / 4) - 1;</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span> </div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span> </div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span> <span class="comment">/* Take care of 1-dim case */</span></div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span> </div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>    <span class="keywordflow">if</span> (nry == 1)     </div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>       {</div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>       krx = (<span class="keywordtype">double</span> *) cpl_calloc(nrx , <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>       <a class="code" href="group__uves__physmod__cstacen.html#gad923251bceb0400556ebdd0b0638ea4c" title="compute X-marginal vector KRX.">Crhox</a>(p_img,npix,image,lnew,krx); </div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>       ierr = <a class="code" href="group__uves__physmod__cstacen.html#ga8baeae8b13dcba7884349e7a061fe1fc" title="search a star from a marginal distribution">Cserch</a>(krx,nrx,IGNORE,xlim,xlim+1,&xcent,&xwidth);</div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span> </div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>       <span class="comment">/* store the data of the fit */</span></div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span> </div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>       nval = xlim[1] - xlim[0] + 1;</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>       xpos = (<span class="keywordtype">double</span> *) cpl_calloc( nval , <span class="keyword">sizeof</span>( <span class="keywordtype">double</span> ));</div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>       yfit = (<span class="keywordtype">double</span> *) cpl_calloc( nval , <span class="keyword">sizeof</span>( <span class="keywordtype">double</span> ));</div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>       gfit = (<span class="keywordtype">double</span> *) cpl_calloc( nval , <span class="keyword">sizeof</span>( <span class="keywordtype">double</span> ));</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>       <span class="keywordflow">for</span> (ii=0; ii<nval; ii++)</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>          {</div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>          xpos[ii] = xlim[0] + ii;</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>          yfit[ii] = krx[xlim[0] + ii];</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>           }</div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span> </div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>       <span class="comment">/* set parameters for LSQFIT (old FITINTE) */</span></div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span> </div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>       lamda = 0.001;</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>       chisqr = GCHIMAX;</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>       gpar[0] = krx[<a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xcent)];</div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>       gpar[1] = xcent;</div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>       gpar[2] = xwidth;</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>       gpar[3] = (krx[xlim[0]] + krx[xlim[1]]) / 2;</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>       (void) cpl_free( (<span class="keywordtype">char</span> *) krx );</div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span> </div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>       it = 0;</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>       found = FALSE;</div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>       <span class="keywordflow">while</span> ( ! found && it++ < GMXITER )</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>          {</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>          oldchi = chisqr;</div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>          ierr = <a class="code" href="group__uves__physmod__cstacen.html#ga192772b744a088e5d80b13b4ca533806" title="least squares fit to a non-linear function">LSQFIT</a>(xpos,yfit,nval,gpar,&lamda,gfit,&chisqr,&sigma);</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>          <span class="keywordflow">if</span> ( ierr != 0 ) </div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>             {</div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>             found = NOCONV;</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>             istat = 3;</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>             }</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>          <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( (oldchi - chisqr)/ chisqr < GCHIFND ) </div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>             found = TRUE;</div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>          }</div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span> </div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>       <span class="comment">/* Is the source still in the image and has it a resonable shape? */</span></div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span> </div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>       lamda = 0.0;</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>       ierr = <a class="code" href="group__uves__physmod__cstacen.html#ga192772b744a088e5d80b13b4ca533806" title="least squares fit to a non-linear function">LSQFIT</a>(xpos,yfit,nval,gpar,&lamda,gfit,&chisqr,&sigma);</div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>       <span class="keywordflow">if</span> ( ierr != 0 )</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>          {</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>          found = NOCONV;</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>          istat = 3;</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>          }</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>          {</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>          sumi = (float)(gpar[1] + image[0]);</div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>          indx = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(sumi);</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>          <span class="keywordflow">if</span> ( indx < 0 || indx >= *npix )</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>             {</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>             found = OUTSIDE;</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>             istat = 2;</div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>             }</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>          }</div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>       (void) cpl_free( (<span class="keywordtype">char</span> *) xpos );</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>       (void) cpl_free( (<span class="keywordtype">char</span> *) yfit );</div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>       (void) cpl_free( (<span class="keywordtype">char</span> *) gfit );</div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span> </div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>       <span class="keywordflow">if</span> ( found == TRUE )</div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>          {</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>          xypos[0] = sumi;</div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>          xypos[1] = 0;</div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>          xysig[0] = (float) gpar[2];</div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>          xyerr[0] = (float) sqrt( sigma * chisqr );</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>          indx = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>( xypos[0]);</div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>          *xyval = p_img[indx];</div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>          }</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>       }</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span> </div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span> </div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span> <span class="comment">/* Take care of 2-dim case */</span></div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span> </div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>    <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>       {</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>       krx = (<span class="keywordtype">double</span> *) cpl_calloc( nrx , <span class="keyword">sizeof</span>( <span class="keywordtype">double</span> ));</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>       kry = (<span class="keywordtype">double</span> *) cpl_calloc( nry , <span class="keyword">sizeof</span>( <span class="keywordtype">double</span> ));</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span> </div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>       <span class="comment">/* Compute and search X-marginal & Y-marginal */</span></div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span> </div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>       <a class="code" href="group__uves__physmod__cstacen.html#gad923251bceb0400556ebdd0b0638ea4c" title="compute X-marginal vector KRX.">Crhox</a>( p_img, npix, image, lnew, krx ); </div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>       ierr = <a class="code" href="group__uves__physmod__cstacen.html#ga8baeae8b13dcba7884349e7a061fe1fc" title="search a star from a marginal distribution">Cserch</a>( krx, nrx, IGNORE, xlim, xlim+1, &xcent, &xwidth );</div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>       lnew[0] = MYMAX( xlim[0], <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xcent - (2 * xwidth)));</div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>       lnew[1] = MYMIN( xlim[1], <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xcent + (2 * xwidth)));</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span> </div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>       <a class="code" href="group__uves__physmod__cstacen.html#ga582a2d79c11dcf90fa7628a8e802d641" title="compute Y-marginal vector KRY.">Crhoy</a>( p_img, npix, image, lnew, kry ); </div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>       ierr = <a class="code" href="group__uves__physmod__cstacen.html#ga8baeae8b13dcba7884349e7a061fe1fc" title="search a star from a marginal distribution">Cserch</a>( kry, nry, IGNORE, ylim, ylim+1, &ycent, &ywidth );</div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>       lnew[0] = MYMAX( ylim[0], <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(ycent - (2 * ywidth)));</div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>       lnew[1] = MYMIN( ylim[1], <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(ycent + (2 * ywidth)));</div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span> </div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>       <a class="code" href="group__uves__physmod__cstacen.html#gad923251bceb0400556ebdd0b0638ea4c" title="compute X-marginal vector KRX.">Crhox</a>( p_img, npix, image, lnew, krx ); </div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>       ierr = <a class="code" href="group__uves__physmod__cstacen.html#ga8baeae8b13dcba7884349e7a061fe1fc" title="search a star from a marginal distribution">Cserch</a>( krx, nrx, IGNORE, xlim, xlim+1, &xcent, &xwidth );</div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>       lnew[0] = MYMAX( xlim[0], <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xcent - (2 * xwidth)));</div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>       lnew[1] = MYMIN( xlim[1], <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xcent + (2 * xwidth)));</div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span> </div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>       <a class="code" href="group__uves__physmod__cstacen.html#ga582a2d79c11dcf90fa7628a8e802d641" title="compute Y-marginal vector KRY.">Crhoy</a>( p_img, npix, image, lnew, kry ); </div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>       ierr = <a class="code" href="group__uves__physmod__cstacen.html#ga8baeae8b13dcba7884349e7a061fe1fc" title="search a star from a marginal distribution">Cserch</a>( kry, nry, IGNORE, ylim, ylim+1, &ycent, &ywidth );</div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span> </div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>       <span class="comment">/* fit a gaussian to the source along the X-axis */</span></div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span> </div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>       nval = xlim[1] - xlim[0] + 1;</div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>       xpos = (<span class="keywordtype">double</span> *) cpl_calloc( nval , <span class="keyword">sizeof</span>( <span class="keywordtype">double</span> ));</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>       yfit = (<span class="keywordtype">double</span> *) cpl_calloc( nval , <span class="keyword">sizeof</span>( <span class="keywordtype">double</span> ));</div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>       gfit = (<span class="keywordtype">double</span> *) cpl_calloc( nval , <span class="keyword">sizeof</span>( <span class="keywordtype">double</span> ));</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>       <span class="keywordflow">for</span> (ii=0; ii<nval; ii++)</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>          {</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>          xpos[ii] = xlim[0] + ii;</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>          yfit[ii] = krx[xlim[0] + ii];</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>         }</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span> </div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>       <span class="comment">/* set parameters for LSQFIT */</span></div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span> </div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>       lamda = 0.001;</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>       chisqr = GCHIMAX;</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>       gpar[0] = krx[<a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>( xcent )];</div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>       gpar[1] = xcent;</div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>       gpar[2] = xwidth;</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>       gpar[3] = (krx[xlim[0]] + krx[xlim[1]]) / 2;</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>       (void) cpl_free( ( <span class="keywordtype">char</span> *) krx );</div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span> </div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>       it = 0;</div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>       found = FALSE;</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>       <span class="keywordflow">while</span> ( ! found && it++ < GMXITER )</div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>          { </div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>          oldchi = chisqr;</div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>          ierr = <a class="code" href="group__uves__physmod__cstacen.html#ga192772b744a088e5d80b13b4ca533806" title="least squares fit to a non-linear function">LSQFIT</a>(xpos,yfit,nval,gpar,&lamda,gfit,&chisqr,&sigma);</div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>          <span class="keywordflow">if</span> ( ierr != 0 || gpar[2] <= 0.0 ) </div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>             {</div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>             found = NOCONV;</div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>             istat = 3;</div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>             }</div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>          <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( (oldchi - chisqr)/ chisqr < GCHIFND ) </div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>             found = TRUE;</div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>          }</div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span> </div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>       <span class="comment">/* Is the source still in the image and has it a resonable shape? */</span></div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span> </div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>       lamda = 0.0;</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>       ierr = <a class="code" href="group__uves__physmod__cstacen.html#ga192772b744a088e5d80b13b4ca533806" title="least squares fit to a non-linear function">LSQFIT</a>(xpos,yfit,nval,gpar,&lamda,gfit,&chisqr,&sigma);</div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>       <span class="keywordflow">if</span> ( ierr != 0 )</div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>          {</div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>          found = NOCONV;</div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>          istat = 3;</div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>          }</div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>          {</div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>          sumi = (float)(gpar[1] + image[0]);</div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>          indx = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(sumi);</div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>          <span class="keywordflow">if</span> ( indx < 0 || indx >= *npix ) </div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>             {</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>             found = OUTSIDE; </div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>             istat = 2;</div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>             }</div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>          }</div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span> </div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>       (void) cpl_free( (<span class="keywordtype">char</span> *) xpos );</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>       (void) cpl_free( (<span class="keywordtype">char</span> *) yfit );</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>       (void) cpl_free( (<span class="keywordtype">char</span> *) gfit );</div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span> </div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>       <span class="keywordflow">if</span> ( found == TRUE )</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>          {</div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>          xypos[0] = sumi;</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>          xysig[0] = (float) gpar[2];</div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>          xyerr[0] = (float) sqrt( sigma * chisqr );</div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span> </div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>          <span class="comment">/* x-dir o.k. - now fit a gaussian to the source along the Y-axis */</span></div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span> </div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>          nval = ylim[1] - ylim[0] + 1;</div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>          xpos = (<span class="keywordtype">double</span> *) cpl_calloc( nval , <span class="keyword">sizeof</span>( <span class="keywordtype">double</span> ));</div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>          yfit = (<span class="keywordtype">double</span> *) cpl_calloc( nval , <span class="keyword">sizeof</span>( <span class="keywordtype">double</span> ));</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>          gfit = (<span class="keywordtype">double</span> *) cpl_calloc( nval , <span class="keyword">sizeof</span>( <span class="keywordtype">double</span> ));</div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span> </div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>          <span class="keywordflow">for</span> (ii=0; ii<nval; ii++)</div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>             {</div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>             xpos[ii] = ylim[0] + ii;</div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>             yfit[ii] = kry[ylim[0] + ii]; </div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>             }</div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span> </div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>          <span class="comment">/* set parameters for LSQFIT */</span></div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span> </div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>          lamda = 0.001;</div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>          chisqr = GCHIMAX;</div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>          gpar[0] = kry[<a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>( ycent )];     </div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>          gpar[1] = ycent;</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>          gpar[2] = ywidth;</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>          gpar[3] = (kry[ylim[0]] + kry[ylim[1]]) / 2;</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span> </div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>          it = 0;</div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>          found = FALSE;</div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>          <span class="keywordflow">while</span> ( ! found && it++ < GMXITER )</div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>             {</div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>             oldchi = chisqr;</div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>             ierr = <a class="code" href="group__uves__physmod__cstacen.html#ga192772b744a088e5d80b13b4ca533806" title="least squares fit to a non-linear function">LSQFIT</a>(xpos,yfit,nval,gpar,&lamda,gfit,&chisqr,&sigma );</div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>             <span class="keywordflow">if</span> ( ierr != 0 || gpar[2] <= 0.0 ) </div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>                {</div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>                found = NOCONV;</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>                istat = 3;</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>                }</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>             <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( (oldchi - chisqr)/ chisqr < GCHIFND ) </div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>                found = TRUE;</div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>             }</div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span> </div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>          <span class="comment">/* Is the source still in the image and has it a resonable shape? */</span></div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span> </div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>          lamda = 0.0;</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>          ierr = <a class="code" href="group__uves__physmod__cstacen.html#ga192772b744a088e5d80b13b4ca533806" title="least squares fit to a non-linear function">LSQFIT</a>(xpos,yfit,nval,gpar,&lamda,gfit,&chisqr,&sigma);</div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>          <span class="keywordflow">if</span> ( ierr != 0 ) </div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>             {</div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>             found = NOCONV;</div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>             istat = 3;</div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>             }</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>          <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>             {</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>             indx = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(xypos[0]);</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>             sumi = (float) (gpar[1] + image[2]);</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>             indy = <a class="code" href="group__uves__physmod__cstacen.html#ga4e3f9ec076c4d3d9d405d6bed0959815" title="finds absolute value of nearest integer">CGN_NINT</a>(sumi);</div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>             <span class="keywordflow">if</span> ( indy < 0 || indy >= npix[1] ) </div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>                {</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>                found = OUTSIDE; </div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>                istat = 2;</div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>                }</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>                indx += (*npix) * indy;</div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>             }</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>          (void) cpl_free( (<span class="keywordtype">char</span> *) xpos );</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>          (void) cpl_free( (<span class="keywordtype">char</span> *) yfit );</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>          (void) cpl_free( (<span class="keywordtype">char</span> *) gfit );</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span> </div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>          <span class="keywordflow">if</span> ( found == TRUE )</div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>             {</div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>             xypos[1] = sumi;</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>             xysig[1] = (float) gpar[2];</div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>             xyerr[1] = (float) sqrt( sigma * chisqr );</div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>             *xyval = p_img[indx];</div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>             }</div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>          }</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>       (void) cpl_free( ( <span class="keywordtype">char</span> *) kry );</div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>       }</div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>    }</div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span> </div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span> <span class="keywordflow">return</span> istat;</div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__cstacen_8h_source.html b/html/uves__physmod__cstacen_8h_source.html
deleted file mode 100644
index 262f677..0000000
--- a/html/uves__physmod__cstacen_8h_source.html
+++ /dev/null
@@ -1,105 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_cstacen.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_cstacen.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.4  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_CSTACEN_H</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_CSTACEN_H</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <a class="code" href="group__uves__physmod__cstacen.html#ga07c91aa64ccf1d26ec66969f4eff03ba" title="Routines used to do Gaussian fit to a line.">uves_physmod_stacen</a>(<span class="keywordtype">float</span>* p_img, <span class="keywordtype">int</span> dimx, <span class="keywordtype">int</span> dimy, <span class="keywordtype">char</span> meth, <span class="keywordtype">int</span>* image, </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span>                   <span class="keywordtype">float</span>* xout, <span class="keywordtype">float</span>* yout, <span class="keywordtype">float</span>* xerr, <span class="keywordtype">float</span>* yerr,</div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span>                   <span class="keywordtype">float</span>* xsig, <span class="keywordtype">float</span>* ysig, <span class="keywordtype">float</span>* xyval, <span class="keywordtype">int</span>* stat );</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod__cstacen.html#gad12404aed36494433fc265f4e8c93832" title="Routines used to do Gaussian fit to a line.">uves_physmod_cstacen</a>(<span class="keywordtype">char</span> meth, <span class="keywordtype">float</span>* p_img, <span class="keywordtype">int</span>* npix, <span class="keywordtype">int</span>* image, </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>             <span class="keywordtype">float</span>* xypos, <span class="keywordtype">float</span>* xyerr, <span class="keywordtype">float</span>* xysig, <span class="keywordtype">float</span>* xyval );</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PHYSMOD_CSTACEN_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__impl_8c_source.html b/html/uves__physmod__impl_8c_source.html
deleted file mode 100644
index 8fcfba9..0000000
--- a/html/uves__physmod__impl_8c_source.html
+++ /dev/null
@@ -1,291 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.38 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.36  2008/03/28 08:54:22  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * IRPLIB_CONCAT2X-->UVES_CONCAT2X</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.35  2007/06/11 13:28:26  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Changed recipe contact address to cpl at eso.org</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.34  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.33  2007/02/09 13:39:51  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Use defines for recipe id</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.32  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.31  2006/10/24 14:12:16  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Parametrized recipe id to support FLAMES recipe</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.30  2006/10/19 13:53:25  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Changed guess line table tag to LINE_GUESS_TAB</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.29  2006/10/17 12:33:02  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added semicolon at UVES_RECIPE_DEFINE invocation</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.28  2006/10/11 12:22:36  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * now the stability check consist only i the msrawxy and the table comparison, as in MIDAS</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.27  2006/10/09 13:01:13  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Use macro to define recipe interface functions</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.26  2006/09/19 14:31:38  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * uves_insert_frame(): use bitmap to specify which image statistics keywords must be computed</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.25  2006/09/19 06:55:39  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Changed interface of uves_frameset to optionally write image statistics kewwords</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.24  2006/08/24 11:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.23  2006/08/18 13:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Fixed/changed QC parameter formats</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.22  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.21  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.20  2006/08/07 11:35:35  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Disabled parameter environment variable mode</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.19  2006/08/01 14:42:34  amodigli</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * fixed bugs getting raw header from master formatcheck</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.18  2006/07/31 06:29:26  amodigli</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * added QC on stability test</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.17  2006/07/28 14:51:26  amodigli</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * fixed some bugs on improper table selection</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.16  2006/07/14 12:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Support multiple QC tests per product</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.15  2006/07/03 12:46:34  amodigli</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * updated description</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.14  2006/06/28 13:28:29  amodigli</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * improved output</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.13  2006/06/20 09:06:39  amodigli</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * correct input tag info in man page</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.12  2006/06/16 08:25:45  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Manually propagate ESO.DET. keywords from 1st/2nd input header</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.11  2006/06/13 11:57:02  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Check that calibration frames are from the same chip ID</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.10  2006/06/07 13:06:28  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Changed doxygen tag addtogroup -> defgroup</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.9  2006/06/07 09:01:28  amodigli</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * added some doc</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.8  2006/05/08 15:42:16  amodigli</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * allow to specify order column label</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.7  2006/04/20 10:47:39  amodigli</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * added qclog</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.6  2006/04/07 07:11:12  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Minor doc. fix</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.5  2006/04/06 09:48:15  amodigli</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * changed uves_frameset_insert interface to have QC log</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.4  2006/04/06 08:42:19  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Changed indentation</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.3  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.2  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.66  2006/01/25 10:09:18  jmlarsen</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Added doxygen end marker</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Revision 1.65  2006/01/20 10:36:25  amodigli</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Fixed warings from doxigen</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Revision 1.64  2006/01/19 10:03:06  amodigli</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * Fixed leaks</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Revision 1.62  2006/01/16 13:52:58  jmlarsen</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Removed memory leak</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Revision 1.61  2006/01/16 08:01:57  amodigli</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Added stability check</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * Revision 1.60  2006/01/13 13:43:15  jmlarsen</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Removed memory leak</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Revision 1.59  2006/01/13 09:54:42  amodigli</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Fixed some bugs: improved agreement with MIDAS version</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Revision 1.58  2006/01/09 15:23:06  jmlarsen</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Removed some warnings</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Revision 1.57  2006/01/09 14:05:42  amodigli</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> * Fixed doxigen warnings</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * Revision 1.56  2006/01/03 16:57:13  amodigli</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> * Fixed bug</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> * Revision 1.55  2006/01/03 14:47:53  amodigli</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Added uves_physmod_chop_otab.h .c to match MIDAS</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> * Revision 1.54  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="preprocessor">#include <uves_physmod_body.h></span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="keyword">static</span> <span class="keywordtype">int</span> uves_physmod_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="preprocessor">#define cpl_plugin_get_info uves_physmod_get_info</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     UVES_PHYSMOD_ID, UVES_PHYSMOD_DOM, uves_physmod_define_parameters,</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     <span class="stringliteral">"Andrea Modigliani"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     uves_physmod_desc_short,</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     uves_physmod_desc);</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment">                              Functions code</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> uves_physmod_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> {</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     <span class="keywordflow">return</span> uves_physmod_define_parameters_body(parameters, make_str(UVES_PHYSMOD_ID));</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> }</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> UVES_CONCAT2X(UVES_PHYSMOD_ID,exe)(cpl_frameset *frames, </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>                      <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> {</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     <span class="keywordtype">bool</span> flames = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     uves_physmod_exe_body(frames, flames, make_str(UVES_PHYSMOD_ID),</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>               parameters, starttime);</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__msrawxy_8c_source.html b/html/uves__physmod__msrawxy_8c_source.html
deleted file mode 100644
index 1ff9f3f..0000000
--- a/html/uves__physmod__msrawxy_8c_source.html
+++ /dev/null
@@ -1,429 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_msrawxy.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_msrawxy.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                            *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                               *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                    *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify     *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by     *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or        *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                      *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,          *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of           *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                             *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License        *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software              *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA     *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                           */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 14:05:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.21 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> </div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor"></span><span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <uves_physmod_msrawxy.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <uves_physmod_center_gauss.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#ga936ea83d8565240521a8fe946ac6c9ae">   86</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod.html#ga936ea83d8565240521a8fe946ac6c9ae" title="This procedure measures the raw XY positions and widths of Th-Ar lines on an ThAr arc echelle exposur...">uves_physmod_msrawxy</a>(<span class="keyword">const</span> cpl_image *raw_image, </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>              <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header, </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>              <span class="keyword">const</span> cpl_parameterlist* parameters, </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>              cpl_table* mod_tbl,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>              cpl_table** l_tbl,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>              cpl_table** m_tbl,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>              cpl_table** p_tbl,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>              cpl_table** rline_tbl,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>              cpl_table** mline_tbl,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>              cpl_table** npline_tbl)</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> {</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>   <span class="keywordtype">double</span> scl_fct=0;</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>   <span class="keywordtype">double</span> add_fct=0;</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>   <span class="keywordtype">double</span>      X_AXIS_SCALE=0;    </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>   <span class="keywordtype">double</span>      Y_AXIS_SCALE=0;</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>   <span class="keywordtype">double</span>      OFFSET_X=0;    </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>   <span class="keywordtype">double</span>      OFFSET_Y=0;</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>   <span class="keywordtype">int</span> status=0;</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>   <span class="keywordtype">double</span> limit[4]={0.,0.,0.,0.};</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>   <span class="keywordtype">int</span>      MBOX_X=0;</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>   <span class="keywordtype">int</span>      MBOX_Y=0;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>  </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>   <span class="keywordtype">double</span> tmp_x=0;</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>   <span class="keywordtype">double</span> tmp_y=0;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>   <span class="keywordtype">double</span> tmp_val_x=0;</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>   <span class="keywordtype">double</span> tmp_val_y=0;</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>   <a class="code" href="struct__polynomial.html">polynomial</a>* poly2d_x=NULL;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>   <a class="code" href="struct__polynomial.html">polynomial</a>* poly2d_y=NULL;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>   <span class="keywordtype">double</span> mean_err_xdif=0;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>   <span class="keywordtype">double</span> mean_err_ydif=0;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>  </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>   <span class="keywordtype">double</span> binx=0;</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>   <span class="keywordtype">double</span> biny=0;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>   <span class="keywordtype">double</span> mbox_x=0;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>   <span class="keywordtype">double</span> mbox_y=0;</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>   <span class="keywordtype">double</span> outputd[3][3];</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>   <span class="keywordtype">int</span> k=0;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>   cpl_table * tmp_tbl=NULL;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>   cpl_table * tmp_tbl1=NULL;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>   cpl_table * tmp_tbl2=NULL;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>   cpl_table * tmp_tbl3=NULL;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>   cpl_table * tmp_tbl4=NULL;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>  </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"start msrawxy"</span>);</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (biny = <a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(raw_header),</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>      <span class="stringliteral">"Could not read x binning factor from input header"</span>);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> </div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (binx = <a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(raw_header), </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>      <span class="stringliteral">"Could not read x binning factor from input header"</span>);</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>            <span class="stringliteral">"mbox_x"</span>, CPL_TYPE_INT, &MBOX_X )  , </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>            <span class="stringliteral">"mbox_y"</span>, CPL_TYPE_INT, &MBOX_Y )  , </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>   mbox_x=MBOX_X/binx;</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>   mbox_y=MBOX_Y/biny;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <span class="comment">/* IN MIDAS we always use the default offset=0,0</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment">    check( uves_get_parameter(parameters, NULL, recipe_id, </span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment">           "offset_x", CPL_TYPE_DOUBLE, &OFFSET_X )  , </span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment">       "Could not read parameter");</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"></span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment">    check( uves_get_parameter(parameters, NULL, recipe_id, </span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment">           "offset_y", CPL_TYPE_DOUBLE, &OFFSET_Y )  ,</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment">       "Could not read parameter");</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"></span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     <span class="comment">/* msrawxy specific pars */</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     <span class="comment">/* Removed params x_axis_scale,y_axis_scale, always set to 0 */</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment">    check( uves_get_parameter(parameters, NULL, recipe_id, </span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment">           "x_axis_scale", CPL_TYPE_DOUBLE, &X_AXIS_SCALE )  , </span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment">           "Could not read parameter");</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"></span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment">    check( uves_get_parameter(parameters, NULL, recipe_id, </span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment">           "y_axis_scale", CPL_TYPE_DOUBLE, &Y_AXIS_SCALE ),</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">       "Could not read parameter");</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_table_and_selected_double(mod_tbl,<span class="stringliteral">"IDENT"</span>,CPL_GREATER_THAN,0),</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>           <span class="stringliteral">"Error selecting IDENT"</span>);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>   *l_tbl=cpl_table_extract_selected(mod_tbl);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"xs=%f ofx=%f bx=%f"</span>,(1.+X_AXIS_SCALE),OFFSET_X,mbox_x/2);</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"ys=%f ofy=%f by=%f"</span>,(1.+Y_AXIS_SCALE),OFFSET_Y,mbox_y/2);</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>   scl_fct=(1.+X_AXIS_SCALE);</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>   cpl_table_erase_column(*l_tbl,<span class="stringliteral">"XSTART"</span>);</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>   cpl_table_duplicate_column(*l_tbl,<span class="stringliteral">"XSTART"</span>,*l_tbl,<span class="stringliteral">"XMOD"</span>);</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>   cpl_table_multiply_scalar(*l_tbl,<span class="stringliteral">"XSTART"</span>,scl_fct);</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>   add_fct=OFFSET_X-(double)mbox_x/2;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"add_fct=%f"</span>,add_fct);</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>   cpl_table_add_scalar(*l_tbl,<span class="stringliteral">"XSTART"</span>,add_fct);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>   cpl_table_erase_column(*l_tbl,<span class="stringliteral">"XEND"</span>);</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>   cpl_table_duplicate_column(*l_tbl,<span class="stringliteral">"XEND"</span>,*l_tbl,<span class="stringliteral">"XMOD"</span>);</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>   cpl_table_multiply_scalar(*l_tbl,<span class="stringliteral">"XEND"</span>,scl_fct);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>   add_fct=OFFSET_X+(double)mbox_x/2;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"add_fct=%f"</span>,add_fct);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>   cpl_table_add_scalar(*l_tbl,<span class="stringliteral">"XEND"</span>,add_fct);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>   scl_fct=(1.+Y_AXIS_SCALE);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>   cpl_table_erase_column(*l_tbl,<span class="stringliteral">"YSTART"</span>);</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>   cpl_table_duplicate_column(*l_tbl,<span class="stringliteral">"YSTART"</span>,*l_tbl,<span class="stringliteral">"YMOD"</span>);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>   cpl_table_multiply_scalar(*l_tbl,<span class="stringliteral">"YSTART"</span>,scl_fct);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>   add_fct=OFFSET_Y-(double)mbox_y/2;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"add_fct=%f"</span>,add_fct);</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>   cpl_table_add_scalar(*l_tbl,<span class="stringliteral">"YSTART"</span>,add_fct);</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>   cpl_table_erase_column(*l_tbl,<span class="stringliteral">"YEND"</span>);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>   cpl_table_duplicate_column(*l_tbl,<span class="stringliteral">"YEND"</span>,*l_tbl,<span class="stringliteral">"YMOD"</span>);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>   cpl_table_multiply_scalar(*l_tbl,<span class="stringliteral">"YEND"</span>,scl_fct);</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>   add_fct=OFFSET_Y+(double)mbox_y/2;</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"add_fct=%f"</span>,add_fct);</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>   cpl_table_add_scalar(*l_tbl,<span class="stringliteral">"YEND"</span>,add_fct);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>  </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>  </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>   limit[2] = mbox_x/2;  <span class="comment">/* limit(3) */</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl1=uves_extract_table_rows(*l_tbl,<span class="stringliteral">"XSTART"</span>,CPL_GREATER_THAN,</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>           limit[2]),<span class="stringliteral">"Error selecting XSTART"</span>);</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(limit[0] = cpl_image_get_size_x(raw_image)-mbox_x/2); <span class="comment">/* limit(1) */</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl2=uves_extract_table_rows(tmp_tbl1,<span class="stringliteral">"XSTART"</span>,CPL_LESS_THAN,</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>           limit[0]),<span class="stringliteral">"Error selecting XSTART"</span>);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>   limit[3] = mbox_y/2; <span class="comment">/* limit(4) */</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl3=uves_extract_table_rows(tmp_tbl2,<span class="stringliteral">"YSTART"</span>,CPL_GREATER_THAN,</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>           limit[3]),<span class="stringliteral">"Error selecting YSTART"</span>);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(limit[1] = cpl_image_get_size_y(raw_image)-mbox_y/2); <span class="comment">/* limit(2) */</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl4=uves_extract_table_rows(tmp_tbl3,<span class="stringliteral">"YSTART"</span>,CPL_LESS_THAN,</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>           limit[1]),<span class="stringliteral">"Error selecting YSTART"</span>);</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"limits %f %f %f %f"</span>,</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>                limit[0],limit[1],limit[2],limit[3]);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*m_tbl     = cpl_table_extract_selected(tmp_tbl4));</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*rline_tbl = cpl_table_extract_selected(tmp_tbl4));</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>   <span class="comment">/* this is to finally get in l_tbl the result of the selection */</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tmp_tbl=cpl_table_extract_selected(*l_tbl));</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>   uves_free_table(l_tbl);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>   *l_tbl=cpl_table_duplicate(tmp_tbl);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>   uves_free_table(&tmp_tbl);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>   assure( !cpl_table_has_invalid(*m_tbl,<span class="stringliteral">"XMOD"</span>) &&</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>       !cpl_table_has_invalid(*m_tbl,<span class="stringliteral">"YMOD"</span>),</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>       CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>       <span class="stringliteral">"Invalid content in table m_tbl"</span>);</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"min=%f max=%f std=%f"</span>,</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>           cpl_image_get_min(raw_image),</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>           cpl_image_get_max(raw_image),</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>           cpl_image_get_stdev(raw_image));</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__physmod.html#ga97331f20ee8993be30fa7a155a463fb2" title="Fit the image line X and Y distributions with a Gaussian in a box.">uves_physmod_center_gauss</a>(raw_image,m_tbl) );</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment">  cpl_table_dump(*m_tbl,0,20,stdout);</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>       (cpl_table_duplicate_column(*rline_tbl,<span class="stringliteral">"XMES"</span>,*m_tbl,<span class="stringliteral">"XCEN"</span>),</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>        cpl_table_duplicate_column(*rline_tbl,<span class="stringliteral">"YMES"</span>,*m_tbl,<span class="stringliteral">"YCEN"</span>),</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>        cpl_table_duplicate_column(*rline_tbl,<span class="stringliteral">"STATUS"</span>,*m_tbl,<span class="stringliteral">"STATUS"</span>)));</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>   <span class="comment">/* save measured positions without check for quality check */</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>   *mline_tbl=cpl_table_duplicate(*rline_tbl);</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"nraw=%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>      cpl_table_and_selected_int(*rline_tbl,<span class="stringliteral">"STATUS"</span>,CPL_EQUAL_TO,0.));</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> </div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( *p_tbl=cpl_table_extract_selected(*rline_tbl) );</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>   <span class="comment">/* the following two lines to keep in *rline_tbl the result of selection */</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>   uves_free_table(rline_tbl);</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>   *rline_tbl=cpl_table_duplicate(*p_tbl);</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"middump nraw=%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,cpl_table_get_nrow(*p_tbl));</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>   cpl_table_select_all(*rline_tbl);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>   uves_free_table(rline_tbl);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>   *rline_tbl=cpl_table_duplicate(*p_tbl);</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"rline nraw=%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,cpl_table_get_nrow(*rline_tbl));</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( (cpl_table_duplicate_column(*rline_tbl,<span class="stringliteral">"XDIF"</span>,*rline_tbl,<span class="stringliteral">"XMES"</span>),</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>                 cpl_table_subtract_columns(*rline_tbl,<span class="stringliteral">"XDIF"</span>,<span class="stringliteral">"XMOD"</span>)) );</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"rline1 nraw=%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,cpl_table_get_nrow(*rline_tbl));</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>   cpl_table_duplicate_column(*rline_tbl,<span class="stringliteral">"YDIF"</span>,*rline_tbl,<span class="stringliteral">"YMES"</span>);</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>   cpl_table_subtract_columns(*rline_tbl,<span class="stringliteral">"YDIF"</span>,<span class="stringliteral">"YMOD"</span>);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"rline2 nraw=%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,cpl_table_get_nrow(*rline_tbl));</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>   <span class="comment">/* Fits the residual differences */</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>   <span class="comment">/* Now we do the polynomial fit */</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(poly2d_x=<a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(*rline_tbl,<span class="stringliteral">"XMOD"</span>,<span class="stringliteral">"YMOD"</span>,<span class="stringliteral"> [...]
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                          NULL,2,2,<span class="stringliteral">"XDIFREG"</span>,NULL,NULL,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                          &mean_err_xdif,NULL,NULL,-1,-1),</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>         <span class="stringliteral">"2D poly regression to fit XDIF failed. Try to increase mbox_x value, "</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>         <span class="stringliteral">"and possibly the mbox_y value"</span>);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>   outputd[0][0]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_x,0,0);</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>   outputd[1][0]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_x,1,0);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>   outputd[0][1]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_x,0,1);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>   outputd[1][1]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_x,1,1);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>   outputd[2][0]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_x,2,0);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>   outputd[0][2]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_x,0,2);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>   outputd[1][2]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_x,1,2);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>   outputd[2][1]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_x,2,1);</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>   outputd[2][2]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_x,2,2);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(poly2d_y=<a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(*rline_tbl,<span class="stringliteral">"XMOD"</span>,<span class="stringliteral">"YMOD"</span>,<span class="stringliteral"> [...]
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                          NULL,2,2,<span class="stringliteral">"YDIFREG"</span>,NULL,NULL,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                          &mean_err_ydif,NULL,NULL,-1,-1),</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>         <span class="stringliteral">"2D poly regression to fit YDIF failed. Try to increase mbox_y value"</span>);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>   outputd[0][0]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,0,0);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>   outputd[1][0]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,1,0);</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>   outputd[0][1]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,0,1);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>   outputd[1][1]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,1,1);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>   outputd[2][0]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,2,0);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>   outputd[0][2]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,0,2);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>   outputd[1][2]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,1,2);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>   outputd[2][1]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,2,1);</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>   outputd[2][2]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,2,2);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"rline3 nraw=%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,cpl_table_get_nrow(*rline_tbl));</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>    cpl_table_duplicate_column(*rline_tbl,<span class="stringliteral">"XMODREG"</span>,*rline_tbl,<span class="stringliteral">"XMOD"</span>);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>    cpl_table_add_columns(*rline_tbl,<span class="stringliteral">"XMODREG"</span>,<span class="stringliteral">"XDIFREG"</span>);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>    cpl_table_duplicate_column(*rline_tbl,<span class="stringliteral">"YMODREG"</span>,*rline_tbl,<span class="stringliteral">"YMOD"</span>);</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>    cpl_table_add_columns(*rline_tbl,<span class="stringliteral">"YMODREG"</span>,<span class="stringliteral">"YDIFREG"</span>);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> </div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"rline4 nraw=%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,cpl_table_get_nrow(*rline_tbl));</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment">   cpl_table_dump(*rline_tbl,0,10,stdout);</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> </div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>   <span class="comment">/* was   */</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>   *npline_tbl=cpl_table_extract_selected(mod_tbl);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>   <span class="comment">/* we now unselect */</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>   cpl_table_select_all(mod_tbl); </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="comment">  *npline_tbl=cpl_table_extract_selected(mod_tbl);</span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"npline nraw=%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,cpl_table_get_nrow(*npline_tbl));</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>   <span class="comment">/* to prevent a problem of duplicating columns from tables </span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="comment">     with different size we use a temporary table and extend </span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="comment">     the size */</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>   tmp_tbl=cpl_table_new(cpl_table_get_nrow(*rline_tbl));</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>   cpl_table_duplicate_column(tmp_tbl,<span class="stringliteral">"XDIF"</span>,*rline_tbl,<span class="stringliteral">"XDIF"</span>);</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>   cpl_table_duplicate_column(tmp_tbl,<span class="stringliteral">"YDIF"</span>,*rline_tbl,<span class="stringliteral">"YDIF"</span>);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>   </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>   cpl_table_set_size(tmp_tbl,cpl_table_get_nrow(*npline_tbl));</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>   cpl_table_duplicate_column(*npline_tbl,<span class="stringliteral">"XDIF"</span>,tmp_tbl,<span class="stringliteral">"XDIF"</span>);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>   cpl_table_duplicate_column(*npline_tbl,<span class="stringliteral">"YDIF"</span>,tmp_tbl,<span class="stringliteral">"YDIF"</span>);</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>   uves_free_table(&tmp_tbl);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>   cpl_table_new_column(*npline_tbl,<span class="stringliteral">"XDIFREG"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>   cpl_table_new_column(*npline_tbl,<span class="stringliteral">"YDIFREG"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>  </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>    <span class="keywordflow">for</span> (k=0;k<cpl_table_get_nrow(*npline_tbl);k++) {</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>      tmp_x=cpl_table_get_double(*npline_tbl,<span class="stringliteral">"XMOD"</span>,k,&status);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>      tmp_y=cpl_table_get_double(*npline_tbl,<span class="stringliteral">"YMOD"</span>,k,&status);</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>      tmp_val_x=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(poly2d_x,tmp_x,tmp_y);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>      tmp_val_y=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(poly2d_y,tmp_x,tmp_y);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>      cpl_table_set_double(*npline_tbl,<span class="stringliteral">"XDIFREG"</span>,k,tmp_val_x);</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>      cpl_table_set_double(*npline_tbl,<span class="stringliteral">"YDIFREG"</span>,k,tmp_val_y);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>      </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>    }</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>    cpl_table_add_columns(*npline_tbl,<span class="stringliteral">"XMOD"</span>,<span class="stringliteral">"XDIFREG"</span>);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>    cpl_table_add_columns(*npline_tbl,<span class="stringliteral">"YMOD"</span>,<span class="stringliteral">"YDIFREG"</span>);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> </div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> </div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>    cleanup:</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>    <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&poly2d_x);</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>    <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&poly2d_y);</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>    uves_free_table(&tmp_tbl);</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>    uves_free_table(&tmp_tbl1);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>    uves_free_table(&tmp_tbl2);</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>    uves_free_table(&tmp_tbl3);</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>    uves_free_table(&tmp_tbl4);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>    </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"end msrawxy"</span>);</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__msrawxy_8h_source.html b/html/uves__physmod__msrawxy_8h_source.html
deleted file mode 100644
index 333b76a..0000000
--- a/html/uves__physmod__msrawxy_8h_source.html
+++ /dev/null
@@ -1,126 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_msrawxy.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_msrawxy.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 13:55:04 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.7  2010/09/24 09:32:07  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2006/10/24 14:12:24  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Parametrized recipe id to support FLAMES recipe</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/10/05 11:17:20  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Declared parameter list const</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.3  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_MSRAWXY_H</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_MSRAWXY_H</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod.html#ga936ea83d8565240521a8fe946ac6c9ae" title="This procedure measures the raw XY positions and widths of Th-Ar lines on an ThAr arc echelle exposur...">uves_physmod_msrawxy</a>(<span class="keyword">const</span> cpl_image *raw_image, </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>              <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header, </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>              <span class="keyword">const</span> cpl_parameterlist* parameters, </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>              cpl_table* mod_tbl,</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>              cpl_table** l_tbl,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>              cpl_table** m_tbl,</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>              cpl_table** p_tbl,</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>              cpl_table** rline_tbl,</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>              cpl_table** mline_tbl,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>              cpl_table** npline_tbl);</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PHYSMOD_MSRAWXY_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__necregr_8c_source.html b/html/uves__physmod__necregr_8c_source.html
deleted file mode 100644
index 6f0a927..0000000
--- a/html/uves__physmod__necregr_8c_source.html
+++ /dev/null
@@ -1,224 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_necregr.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_necregr.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.7 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.5  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.4  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.3  2006/08/23 09:33:03  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Renamed local variables shadowing POSIX reserved names</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.2  2006/06/20 10:56:56  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * cleaned output, added units</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.8  2006/01/20 10:05:49  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.7  2006/01/16 08:01:57  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> * Added stability check</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Revision 1.6  2006/01/05 14:29:59  jmlarsen</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> * Removed newline characters from output strings</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Revision 1.5  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#include <uves_physmod_necregr.h></span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> </div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#gac557292b00ae3782ce6efa3a4e0290f3">  105</a></span> <a class="code" href="group__uves__physmod.html#gac557292b00ae3782ce6efa3a4e0290f3" title="This procedure does a linear fit of independent orders.">uves_physmod_necregr</a>(cpl_table** ord_tbl, cpl_table** reg_tbl)</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> {</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>   <span class="keywordtype">int</span>  order=0;</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>   <span class="keywordtype">int</span>  nb_order=0;</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>   <span class="keywordtype">int</span>  present_order=0;</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>   <span class="keywordtype">int</span>  order_nb=0;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>   <span class="keywordtype">int</span>  row=0;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>   <span class="keywordtype">int</span> ncol=0;</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>   <span class="keywordtype">int</span>  nrow=0;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>   <span class="keywordtype">int</span>  selected=0;</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>   <span class="keywordtype">int</span>  null=0;</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>   <span class="keywordtype">int</span> ord_min=0;</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>   <span class="keywordtype">int</span> ord_max=0;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>   <span class="keywordtype">double</span>    x=0., y=0., cnt=0., sx=0., sy=0., sx2=0., sxy=0., sy2=0.;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>   <span class="keywordtype">double</span>    det=0., a=0., b=0., rms=0.;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"start %s"</span>,__func__);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>   nrow=cpl_table_get_nrow(*ord_tbl);</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>   ncol=cpl_table_get_ncol(*ord_tbl);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"nrow=%d ncol=%d"</span>,nrow,ncol);</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>   ord_min=cpl_table_get_column_min(*ord_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>   ord_max=cpl_table_get_column_max(*ord_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>   nb_order=ord_max-ord_min+1;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>   *reg_tbl=cpl_table_new(100);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>   cpl_table_new_column(*reg_tbl,<span class="stringliteral">"ORDER"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>   cpl_table_new_column(*reg_tbl,<span class="stringliteral">"RMS"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>   </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>   row = 0;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>   selected=1;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>   <span class="keywordflow">for</span> (order=0; order<nb_order; order++) {</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     cnt=0., sx=0., sy=0., sx2=0., sxy=0., sy2 = 0.;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     order_nb=cpl_table_get_int(*ord_tbl,<span class="stringliteral">"ORDER"</span>,row,&null);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> </div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     present_order = order_nb;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>       </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="keywordflow">while</span> (present_order == order_nb) {</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>       <span class="keywordflow">if</span> (selected) {</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     x=cpl_table_get_double(*ord_tbl,<span class="stringliteral">"X"</span>,row,&null);</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     y=cpl_table_get_double(*ord_tbl,<span class="stringliteral">"Y"</span>,row,&null);</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     cnt += 1., sx += x, sy += y, sx2 += x*x, sy2 += y*y, sxy += x*y;</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>       }</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>       <span class="keywordflow">if</span> (row >= (nrow-1)) <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>       row++;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>       present_order=cpl_table_get_int(*ord_tbl,<span class="stringliteral">"ORDER"</span>,row,&null);</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     }</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>       </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <span class="keywordflow">if</span> (cnt >= 3) {</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>       det = cnt*sx2 - sx*sx;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>       a   = (sy*sx2 - sx*sxy)/det;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>       b   = (cnt*sxy - sx*sy)/det;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>       rms = (sy2 - a*a*cnt - 2.*b*a*sx - b*b*sx2)/cnt;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>       <span class="keywordflow">if</span> (rms < 0. && rms > -0.05) rms = 0.;</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>       rms = sqrt(rms);</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     }</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     <span class="keywordflow">else</span>    rms = 99999.;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     cpl_table_set_int(*reg_tbl,<span class="stringliteral">"ORDER"</span>,order,order_nb);</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     cpl_table_set_double(*reg_tbl,<span class="stringliteral">"RMS"</span>,order,rms);</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>   }</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>   cpl_table_erase_invalid_rows(*reg_tbl);</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"end %s"</span>,__func__);</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__necregr_8h_source.html b/html/uves__physmod__necregr_8h_source.html
deleted file mode 100644
index 40a6818..0000000
--- a/html/uves__physmod__necregr_8h_source.html
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_necregr.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_necregr.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.4 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_NECREGR_H</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_NECREGR_H</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod.html#gac557292b00ae3782ce6efa3a4e0290f3" title="This procedure does a linear fit of independent orders.">uves_physmod_necregr</a>(cpl_table** ord_tbl, cpl_table** reg_tbl);</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PHYSMOD_NECREGR_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__plotmod_8c_source.html b/html/uves__physmod__plotmod_8c_source.html
deleted file mode 100644
index 8a9021f..0000000
--- a/html/uves__physmod__plotmod_8c_source.html
+++ /dev/null
@@ -1,246 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_plotmod.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_plotmod.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.13 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.11  2008/09/29 06:56:23  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.10  2007/10/15 11:10:55  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * fixed bug on reported chip ID in physmod plots</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.9  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.8  2007/04/26 06:54:43  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * small changes on title</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.7  2007/04/25 08:38:03  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * changed interface and plotting more info</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.6  2007/01/15 08:43:15  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Fixed missing plots</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.5  2007/01/13 09:52:22  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * fixed some problems on flames QC log</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.4  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.3  2006/07/28 14:51:26  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * fixed some bugs on improper table selection</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.2  2006/06/20 10:56:56  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * cleaned output, added units</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.5  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.4  2006/01/09 14:05:42  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Fixed doxigen warnings</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.3  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor">#include <uves_physmod_plotmod.h></span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor">#include <uves_plot.h></span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#ga7ac0845d816025a744319be6528c714b">  119</a></span> <a class="code" href="group__uves__physmod.html#ga7ac0845d816025a744319be6528c714b" title="This procedure plots results from the uves_physmod recipe.">uves_physmod_plotmod</a>(<span class="keyword">const</span> cpl_table* tbl,</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                      <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* head,</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span>* rec_id,</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>                      <span class="keyword">const</span> cpl_parameterlist* params,</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>                      <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> {</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>   <span class="keywordtype">char</span> title[300];</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>   <span class="keywordtype">double</span> ech_ang_off=0;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>   <span class="keywordtype">double</span> cd_ang_off=0;</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>   <span class="keywordtype">double</span> ccd_ang_off=0;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>   <span class="keywordtype">double</span> wcent=0;</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>   <span class="keywordtype">double</span> temp_cam=0;</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>   <span class="keywordtype">double</span> slit_width=0;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>   <span class="keywordtype">double</span> slit_length=0;</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* origfile=NULL;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* tpl_start=NULL;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>   <span class="keywordtype">char</span> chip_id[5];</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>   strcpy(chip_id,<a class="code" href="group__uves__chip.html#ga8319c211e6b7c649287e432bf78dc719" title="Convert to string.">uves_chip_tostring_lower</a>(chip));</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(params, NULL,rec_id,<span class="stringliteral">"ech_angle_off"</span>, </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>          CPL_TYPE_DOUBLE, &ech_ang_off )  , <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(params, NULL, rec_id, <span class="stringliteral">"cd_angle_off"</span>, </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>          CPL_TYPE_DOUBLE, &cd_ang_off )  , <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(params, NULL, rec_id, <span class="stringliteral">"ccd_rot_angle_off"</span>, </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>          CPL_TYPE_DOUBLE, &ccd_ang_off )  , <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (wcent = <a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(head, chip), </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>      <span class="stringliteral">"Could not read central wavelength setting from input header"</span>);</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (temp_cam = <a class="code" href="group__uves__pfits.html#ga266ea18052beecac005d60558904a490" title="find out the pressure value">uves_pfits_get_tempcam</a>(head,chip), </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>      <span class="stringliteral">"Could not read camera's temperature from input header"</span>);</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (slit_width = <a class="code" href="group__uves__pfits.html#gadbfe6eb96c384b6b971b634ab8b79fab" title="find out the slit width">uves_pfits_get_slitwidth</a>(head, chip), </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>      <span class="stringliteral">"Could not read slit width input header"</span>);</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>   </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (slit_length = <a class="code" href="group__uves__pfits.html#ga159df9e29b6cdbc886d2ec1c19884a64" title="find out the slit length">uves_pfits_get_slitlength</a>(head, chip), </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>      <span class="stringliteral">"Could not read slit length input header"</span>);</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tpl_start=<a class="code" href="group__uves__pfits.html#gaf0ed2a547997610410b19faa468f5daf" title="Find out the tpl start.">uves_pfits_get_tpl_start</a>(head),<span class="stringliteral">"Error getting TPL START"</span>);</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(origfile=<a class="code" href="group__uves__pfits.html#ga0ecbcc40cde47dcccdc6e61f987cf94e" title="find out the origfile">uves_pfits_get_origfile</a>(head),<span class="stringliteral">"Error getting ORIGFILE"</span>);</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>   sprintf(title,<span class="stringliteral">"%s %4.1f %s %2.1f %s %s %3.1f %s "</span>,</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>       <span class="stringliteral">"Central wavelength: "</span>,wcent,</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>           <span class="stringliteral">" nm, slit: "</span>,slit_length,</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>           <span class="stringliteral">" arcsec, CCD:"</span>,chip_id,temp_cam,<span class="stringliteral">" C"</span>);</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>   <span class="comment">/* 1st plot */</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_plot_table(tbl, <span class="stringliteral">"XMOD"</span>, <span class="stringliteral">"XDIF"</span>, title),</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>   </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>   <span class="comment">/* 2nd plot */</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_plot_table(tbl, <span class="stringliteral">"XMOD"</span>, <span class="stringliteral">"YDIF"</span>, title),</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>   </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>   </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>   <span class="comment">/* 3rd plot */</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_plot_table(tbl, <span class="stringliteral">"YMOD"</span>, <span class="stringliteral">"XDIF"</span>, title),</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>   </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>   </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>   <span class="comment">/* 4th plot */</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_plot_table(tbl, <span class="stringliteral">"YMOD"</span>, <span class="stringliteral">"YDIF"</span>, title),</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>         <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>   </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>   </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>   <span class="comment">/* 5th plot */</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_plot_table(tbl, <span class="stringliteral">"XDIF"</span>, <span class="stringliteral">"YDIF"</span>, title),</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>         <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>   </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>   <span class="comment">/* 6th plot */</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_plot_table(tbl, <span class="stringliteral">"XMOD"</span>, <span class="stringliteral">"YMOD"</span>, title),</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>         <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>   </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>  cleanup:</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__plotmod_8h_source.html b/html/uves__physmod__plotmod_8h_source.html
deleted file mode 100644
index 80cc5bb..0000000
--- a/html/uves__physmod__plotmod_8h_source.html
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_plotmod.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_plotmod.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.6 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.4  2007/04/25 08:37:46  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * changed interface</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.3  2007/01/15 08:46:59  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Fixed missing plots</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.2  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_PLOTMOD_H</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_PLOTMOD_H</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <a class="code" href="group__uves__physmod.html#ga7ac0845d816025a744319be6528c714b" title="This procedure plots results from the uves_physmod recipe.">uves_physmod_plotmod</a>(<span class="keyword">const</span> cpl_table* tbl,</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>                      <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* head,</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span>* rec_id,</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>                      <span class="keyword">const</span> cpl_parameterlist* params,</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>                      <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PHYSMOD_PLOTMOD_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__qc1pmtbl_8c_source.html b/html/uves__physmod__qc1pmtbl_8c_source.html
deleted file mode 100644
index 41d013c..0000000
--- a/html/uves__physmod__qc1pmtbl_8c_source.html
+++ /dev/null
@@ -1,383 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_qc1pmtbl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_qc1pmtbl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.13 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.11  2010/06/08 09:45:58  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * removed XMODREG_X_RES YMODREG_YNEW_RES columns from result of selplot=1 selection</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.10  2010/06/07 16:49:56  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * added columns XMODREG_X_RES,YMODREG_YNEW_RES and now the XDIF,YDIF are computed for any of the points that do not satisfy the SELPLOT=1 condition</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.9  2010/06/02 15:04:10  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * fixed bug in cross correlating line and model predicted tables</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.8  2010/06/01 13:28:57  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * added column units to line table columns</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.7  2008/09/29 06:55:33  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.6  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.5  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.4  2006/10/05 11:17:49  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Removed debugging call of uves_error_dump</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.3  2006/06/20 10:56:56  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * cleaned output, added units</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.2  2006/03/08 08:55:37  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * fixed garbage in SELPLOT column of line table</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.7  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.6  2006/01/16 08:01:57  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * Added stability check</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.5  2006/01/05 14:29:59  jmlarsen</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * Removed newline characters from output strings</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Revision 1.4  2006/01/05 09:30:48  amodigli</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * Col SELPLOT initialized to NULL</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Revision 1.3  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="preprocessor">#include <uves_physmod_qc1pmtbl.h></span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor">#define FILESIZE 200</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor"></span><span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#ga7ba94584b6a36bc5d55e397b5ef6af8c">  121</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod.html#ga7ba94584b6a36bc5d55e397b5ef6af8c" title="To be written.">uves_physmod_qc1pmtbl</a>(cpl_table** rline_tbl,cpl_table** lin_tbl)</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> {</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>   <span class="keywordtype">int</span> nCol   = 0;            <span class="comment">/* No of columns in tbl */</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>   <span class="keywordtype">int</span> rlineRowNumber=0;      <span class="comment">/* number of rows in rline table */</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>   <span class="keywordtype">int</span> lineRowNo=0;           <span class="comment">/* number of Rows in line table */</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>   <span class="keywordtype">int</span> null=0;                <span class="comment">/* number of null values in keyword */</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>   <span class="keywordtype">int</span> i=0;                   <span class="comment">/* loop variable */</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>   <span class="keywordtype">int</span> l=0;                   <span class="comment">/* loop variable */</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> </div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>   <span class="keywordtype">int</span>    selIdx=0;           <span class="comment">/* actual value */</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>   </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>   <span class="keywordtype">char</span>   lineTbl[FILESIZE];  <span class="comment">/* buffer for data values */</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>   <span class="keywordtype">char</span>   rLineTbl[FILESIZE]; <span class="comment">/* buffer for data values */</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>   <span class="keywordtype">char</span>   aHeading[FILESIZE]; <span class="comment">/* column reference */</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>   <span class="keywordtype">char</span>   tmps[FILESIZE];     <span class="comment">/* for messout */</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>    </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>   </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>   </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>   <span class="keywordtype">double</span>  xDif=0.0;          <span class="comment">/* actual value */</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>   <span class="keywordtype">double</span>  yDif=0.0;          <span class="comment">/* actual value */</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>   <span class="keywordtype">double</span>  xModReg=0.0;       <span class="comment">/* actual value */</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>   <span class="keywordtype">double</span>  yModReg=0.0;       <span class="comment">/* actual value */</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>   <span class="keywordtype">double</span>  xPred=0.0;         <span class="comment">/* actual value */</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>   <span class="keywordtype">double</span>  yPred=0.0;         <span class="comment">/* actual value */</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>   <span class="keywordtype">double</span>  x=0.0;             <span class="comment">/* actual value */</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>   <span class="keywordtype">double</span>  yNew=0.0;          <span class="comment">/* actual value */</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>   <span class="keywordtype">double</span>  diffX=0.0;         <span class="comment">/* difference between x and y */</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>   <span class="keywordtype">double</span>  diffY=0.0;         <span class="comment">/* difference between x and y */</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                              <span class="comment">/* (rounding error threshold) */</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>   <span class="keywordtype">double</span> waveReg=0.0;</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>   <span class="keywordtype">double</span> wavec=0.0;</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>   <span class="keywordtype">int</span> match=1;</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>   <span class="keywordtype">int</span> order=0;</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>   <span class="keywordtype">int</span> orderReg=0;</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment">/* initializes chars */</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>   memset(lineTbl,  0, FILESIZE);    </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   memset(rLineTbl, 0, FILESIZE);    </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>   memset(aHeading, 0, FILESIZE);    </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>   memset(tmps,     0, FILESIZE);        </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"start %s"</span>,__func__);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(nCol=cpl_table_get_ncol(*rline_tbl),<span class="stringliteral">"Error getting ncol"</span>);</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>   rlineRowNumber=cpl_table_get_nrow(*rline_tbl);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Opened table %s nCol=%d nrow=%d"</span>,</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>                      <span class="stringliteral">"rline.tbl"</span> ,nCol,rlineRowNumber);</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>   nCol=cpl_table_get_ncol(*lin_tbl);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>   lineRowNo=cpl_table_get_nrow(*lin_tbl);</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>   </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Opened table %s nCol=%d nrow=%d"</span>,</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>                       lineTbl ,nCol,lineRowNo); </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>  </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>   <span class="keywordflow">if</span>(cpl_table_has_column(*lin_tbl,<span class="stringliteral">"XDIF"</span>)){</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     cpl_table_erase_column(*lin_tbl,<span class="stringliteral">"XDIF"</span>); </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"removed column XDIF"</span>);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>   }</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>   <span class="keywordflow">if</span>(cpl_table_has_column(*lin_tbl,<span class="stringliteral">"YDIF"</span>)){</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     cpl_table_erase_column(*lin_tbl,<span class="stringliteral">"YDIF"</span>); </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"removed column YDIF"</span>);</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>   }</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>   <span class="keywordflow">if</span>(cpl_table_has_column(*lin_tbl,<span class="stringliteral">"SELPLOT"</span>)){</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     cpl_table_erase_column(*lin_tbl,<span class="stringliteral">"SELPLOT"</span>); </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"removed column SELPLOT"</span>);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>   }</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>   <span class="keywordflow">if</span>(cpl_table_has_column(*lin_tbl,<span class="stringliteral">"XPRED"</span>)){</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     cpl_table_erase_column(*lin_tbl,<span class="stringliteral">"XPRED"</span>); </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"removed column XPRED"</span>);</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>   }</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> </div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>   <span class="keywordflow">if</span>(cpl_table_has_column(*lin_tbl,<span class="stringliteral">"YPRED"</span>)){</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     cpl_table_erase_column(*lin_tbl,<span class="stringliteral">"YPRED"</span>); </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"removed column YPRED"</span>);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>   }</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>   <span class="comment">/* Then add those columns */</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>   cpl_table_new_column(*lin_tbl,<span class="stringliteral">"XPRED"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>   cpl_table_set_column_unit(*lin_tbl,<span class="stringliteral">"XPRED"</span>,<span class="stringliteral">"pix"</span>);</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>   cpl_table_new_column(*lin_tbl,<span class="stringliteral">"YPRED"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>   cpl_table_set_column_unit(*lin_tbl,<span class="stringliteral">"YPRED"</span>,<span class="stringliteral">"pix"</span>);</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>   cpl_table_new_column(*lin_tbl,<span class="stringliteral">"XDIF"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>   cpl_table_set_column_unit(*lin_tbl,<span class="stringliteral">"XDIF"</span>,<span class="stringliteral">"pix"</span>);</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>   cpl_table_new_column(*lin_tbl,<span class="stringliteral">"YDIF"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>   cpl_table_set_column_unit(*lin_tbl,<span class="stringliteral">"YDIF"</span>,<span class="stringliteral">"pix"</span>);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>   cpl_table_new_column(*lin_tbl,<span class="stringliteral">"SELPLOT"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>   cpl_table_set_column_unit(*lin_tbl,<span class="stringliteral">"YDIF"</span>,<span class="stringliteral">"pix"</span>);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment"> ***************************************************************************</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="comment"> * Now does the actual ordering of the elements writing in the right place *</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment"> ***************************************************************************</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>  </div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>   cpl_table_set_column_invalid(*lin_tbl,<span class="stringliteral">"SELPLOT"</span>,0,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                                cpl_table_get_nrow(*lin_tbl));</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment">  uves_msg("rlineRowNumber=%d",rlineRowNumber);</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment">  cpl_table_dump(*rline_tbl,1,2,stdout);</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment">  cpl_table_dump(*lin_tbl,1,2,stdout);</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>   <span class="keywordflow">for</span> (l=0; l< rlineRowNumber; l++) {</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>  </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     xModReg=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"XMODREG"</span>,l,&null);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     yModReg=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"YMODREG"</span>,l,&null);</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     xDif=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"XDIF"</span>,l,&null);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     yDif=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"YDIF"</span>,l,&null);</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     xPred=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"XMOD"</span>,l,&null);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     yPred=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"YMOD"</span>,l,&null);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     waveReg=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"WAVE"</span>,l,&null);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(orderReg=cpl_table_get_int(*rline_tbl,<span class="stringliteral">"ORDER"</span>,l,&null));</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <span class="comment">//uves_msg("i=%d xDif=%f yDif=%f lineRowNo=%d",i,xDif,yDif,lineRowNo);</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     selIdx = 1;</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     match=0;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="keywordflow">for</span> (i=0; i< lineRowNo; i++) {</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>        <span class="comment">//uves_msg("i=%d",i);</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>         x=cpl_table_get_double(*lin_tbl,<span class="stringliteral">"X"</span>,i,&null);</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>         yNew=cpl_table_get_double(*lin_tbl,<span class="stringliteral">"YNEW"</span>,i,&null);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>         wavec=cpl_table_get_double(*lin_tbl,<span class="stringliteral">"WAVEC"</span>,i,&null);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(order=cpl_table_get_int(*lin_tbl,<span class="stringliteral">"Order"</span>,i,&null));</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>         diffX=fabs(x-xModReg);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         diffY=fabs(yNew-yModReg);</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment">        uves_msg("waveReg=%f wavec=%f diff=%f",</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment">                 10.*waveReg, wavec, fabs(waveReg - wavec));</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment">*/</span>  </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>         <span class="keywordflow">if</span> ( (fabs(10.*waveReg - wavec)  <= 0.01) && </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>               match == 0 && </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>              (fabs(orderReg-order)<0.1) ) {</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>            <span class="comment">//uves_msg("match wave l=%d i=%d order=%d",l,i,order);</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>           cpl_table_set_double(*lin_tbl,<span class="stringliteral">"XPRED"</span>,i,xPred);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>           cpl_table_set_double(*lin_tbl,<span class="stringliteral">"YPRED"</span>,i,yPred);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>           cpl_table_set_double(*lin_tbl,<span class="stringliteral">"XDIF"</span>,i,xDif);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>           cpl_table_set_double(*lin_tbl,<span class="stringliteral">"YDIF"</span>,i,yDif);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>         }    </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>         <span class="keywordflow">if</span> ((diffX <= 0.001) && (diffY <= 0.001)) {</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>            match=1;</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>           cpl_table_set_double(*lin_tbl,<span class="stringliteral">"XPRED"</span>,i,xPred);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>           cpl_table_set_double(*lin_tbl,<span class="stringliteral">"YPRED"</span>,i,yPred);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>           cpl_table_set_double(*lin_tbl,<span class="stringliteral">"XDIF"</span>,i,xDif);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>           cpl_table_set_double(*lin_tbl,<span class="stringliteral">"YDIF"</span>,i,yDif);</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>           cpl_table_set_int(*lin_tbl,<span class="stringliteral">"SELPLOT"</span>,i,selIdx);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>            <span class="keywordflow">break</span>;   </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>         }</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     }</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>   }</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>   <span class="comment">/* second check to add only those lines that are not matching selplot=1</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment">     criterium */</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>   <span class="keywordflow">for</span> (l=0; l< rlineRowNumber; l++) { </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     xModReg=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"XMODREG"</span>,l,&null);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     yModReg=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"YMODREG"</span>,l,&null);</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     xDif=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"XDIF"</span>,l,&null);</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     yDif=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"YDIF"</span>,l,&null);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     xPred=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"XMOD"</span>,l,&null);</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     yPred=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"YMOD"</span>,l,&null);</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     waveReg=cpl_table_get_double(*rline_tbl,<span class="stringliteral">"WAVE"</span>,l,&null);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(orderReg=cpl_table_get_int(*rline_tbl,<span class="stringliteral">"ORDER"</span>,l,&null));</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <span class="comment">//uves_msg("i=%d xDif=%f yDif=%f lineRowNo=%d",i,xDif,yDif,lineRowNo);</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="keywordflow">for</span> (i=0; i< lineRowNo; i++) {</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>        <span class="comment">//uves_msg("i=%d",i);</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>         x=cpl_table_get_double(*lin_tbl,<span class="stringliteral">"X"</span>,i,&null);</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>         yNew=cpl_table_get_double(*lin_tbl,<span class="stringliteral">"YNEW"</span>,i,&null);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>         wavec=cpl_table_get_double(*lin_tbl,<span class="stringliteral">"WAVEC"</span>,i,&null);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(order=cpl_table_get_int(*lin_tbl,<span class="stringliteral">"Order"</span>,i,&null));</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(selIdx=cpl_table_get_int(*lin_tbl,<span class="stringliteral">"SELPLOT"</span>,i,&null));</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>         diffX=fabs(x-xModReg);</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>         diffY=fabs(yNew-yModReg);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>         <span class="keywordflow">if</span> ( selIdx != 1 && </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>              (fabs(orderReg-order)<0.1) ) {</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>           cpl_table_set_double(*lin_tbl,<span class="stringliteral">"XPRED"</span>,i,xPred);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>           cpl_table_set_double(*lin_tbl,<span class="stringliteral">"YPRED"</span>,i,yPred);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>           cpl_table_set_double(*lin_tbl,<span class="stringliteral">"XDIF"</span>,i,xDif);</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>           cpl_table_set_double(*lin_tbl,<span class="stringliteral">"YDIF"</span>,i,yDif);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>            <span class="keywordflow">break</span>;   </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>         }    </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     }</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>   }</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="comment">  cpl_table_dump(*lin_tbl,0,20,stdout);</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"end %s"</span>,__func__);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>   cpl_table_fill_invalid_int(*lin_tbl,<span class="stringliteral">"SELPLOT"</span>,-1);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>   cleanup:</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__qc1pmtbl_8h_source.html b/html/uves__physmod__qc1pmtbl_8h_source.html
deleted file mode 100644
index fc1c6ca..0000000
--- a/html/uves__physmod__qc1pmtbl_8h_source.html
+++ /dev/null
@@ -1,102 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_qc1pmtbl.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_qc1pmtbl.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.4 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.2  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.2  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_QC1PMTBL_H</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_QC1PMTBL_H</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="keywordtype">int</span>  <a class="code" href="group__uves__physmod.html#ga7ba94584b6a36bc5d55e397b5ef6af8c" title="To be written.">uves_physmod_qc1pmtbl</a>(cpl_table** rline_tbl,cpl_table** lin_tbl);</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PHYSMOD_QC1PMTBL_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__regress__echelle_8c_source.html b/html/uves__physmod__regress__echelle_8c_source.html
deleted file mode 100644
index a554596..0000000
--- a/html/uves__physmod__regress__echelle_8c_source.html
+++ /dev/null
@@ -1,440 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_regress_echelle.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_regress_echelle.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 14:06:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.18 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> </div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> </div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <uves_physmod_regress_echelle.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <uves_physmod_necregr.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#define SELECT_FUNC_DOUBLE cpl_table_and_selected_double</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span><span class="preprocessor">#define SELECT_FUNC_INT    cpl_table_and_selected_int</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="comment">/* Selected rows are ignored by many CPL functions (unlike MIDAS)</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">Therefore SELECT/TABLE t SELECT.and. ...... </span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">has different effect from cpl_table_and_selected_double(t, ...)</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">To remove selected rows (which is also not exactly what MIDAS does):</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">#define SELECT_FUNC_DOUBLE uves_extract_table_rows_local</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">#define SELECT_FUNC_INT    uves_extract_table_rows_local</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">(but this did not really make a difference)</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#ga6cbdcd8eb1c7f25749c51874d79e4e83">   98</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod.html#ga6cbdcd8eb1c7f25749c51874d79e4e83" title="Fit mesured position of orders by a bivariate polynomial.">uves_physmod_regress_echelle</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertyl [...]
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                  <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                  <span class="keyword">const</span> cpl_parameterlist* parameters,</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                  cpl_table** o_tbl, </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                  <span class="keywordtype">int</span> num_outliers, </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>                  <span class="keywordtype">double</span> tol, </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                  <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                  cpl_table** s_tbl,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                  cpl_table** w_tbl)</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> {</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>   <span class="keywordtype">int</span>  CNT =0;</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>   <span class="keywordtype">double</span> THRESH=0.;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>   <span class="keywordtype">int</span> ORDER=0;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>   <span class="keywordtype">float</span> RMSMAX=0.;</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>   <span class="keywordtype">float</span> RMS=0.;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>   <span class="keywordtype">int</span> REJECT[300];</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>   <span class="keywordtype">int</span> NBREJ=0;</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>   <span class="keywordtype">double</span> start1=0;</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>   <span class="keywordtype">double</span> start2=0;</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>   <span class="keywordtype">double</span> step1=0;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>   <span class="keywordtype">double</span> step2=0;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>   <span class="keywordtype">int</span> scan1=0;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>   <span class="keywordtype">int</span> scan2=0;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>   <span class="keywordtype">int</span> naxis1=0;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>   <span class="keywordtype">int</span> naxis2=0;</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>   <span class="keywordtype">int</span> def_pol1=0;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>   <span class="keywordtype">int</span> def_pol2=0;</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>   <span class="keywordtype">double</span> inpr1=0;</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>   <span class="keywordtype">double</span> inpr2=0;</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>   <span class="keywordtype">double</span> inpr3=0;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>   <span class="keywordtype">char</span> OUTMODE=<span class="charliteral">'V'</span>;</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>   <span class="keywordtype">int</span> ECHORD_1=0;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>   <span class="keywordtype">int</span> INPUTI_1=0;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>   <span class="keywordtype">int</span> INPUTI_2=0;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>   <span class="keywordtype">int</span> imsize1=0;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>   <span class="keywordtype">int</span> nraw=0;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>   <span class="keywordtype">int</span> ord_min=0;</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>   <span class="keywordtype">int</span> ord_max=0;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>   <span class="keywordtype">int</span> status=0;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>   <span class="keywordtype">double</span> mean_sq_err_y=0;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>   <span class="keywordtype">double</span> outputd[10][10];</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>   <a class="code" href="struct__polynomial.html">polynomial</a>* poly2d_y=NULL;</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* plist=NULL;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (start1 = <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(raw_header),</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>      <span class="stringliteral">"Could not read start factor from input header"</span>);</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (start2 = <a class="code" href="group__uves__pfits.html#gaefba8b3c1a2fbe5c0f42eaeaaafaf455" title="Find out the crval2.">uves_pfits_get_crval2</a>(raw_header),</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>      <span class="stringliteral">"Could not read start factor from input header"</span>);</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>   </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (step1 = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(raw_header),</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>      <span class="stringliteral">"Could not read step factor from input header"</span>);</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (step2 = <a class="code" href="group__uves__pfits.html#gab1af91452dda53e50314231795bf5308" title="Find out the cdelt2.">uves_pfits_get_cdelt2</a>(raw_header),</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>      <span class="stringliteral">"Could not read step factor from input header"</span>);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>   <span class="comment">/* AMO */</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>   <span class="comment">/* here should be arm dependent */</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (scan2 = <a class="code" href="group__uves__pfits.html#ga1cc29b0a5d5adfbd1d9ae27c04aa5dc8" title="Find out the OUT1 NX or OUT4 NX.">uves_pfits_get_nx</a>(raw_header,chip),</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>      <span class="stringliteral">"Could not read scan1 factor from input header"</span>);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (scan1 = <a class="code" href="group__uves__pfits.html#ga4869724c736010824272955edffb60eb" title="Find out the OUT1 NY or OUT4 NY.">uves_pfits_get_ny</a>(raw_header,chip),</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>      <span class="stringliteral">"Could not read scan2 factor from input header"</span>);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment">  check (scan2 = uves_pfits_get_out1nx(raw_header), </span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment">       "Could not read scan1 factor from input header");</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"></span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment">  check (scan1 = uves_pfits_get_out1ny(raw_header), </span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment">       "Could not read scan1 factor from input header");</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>   <span class="comment">/* scan1 is allways 1 */</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>   scan1=1;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (naxis1 = <a class="code" href="group__uves__pfits.html#gadd8fda05c51af7b34d5021b4bc60fffc" title="Find out the NAXIS1.">uves_pfits_get_naxis1</a>(raw_header),</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>      <span class="stringliteral">"Could not read naxis1 from input header"</span>);</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (naxis2 = <a class="code" href="group__uves__pfits.html#ga41338750e1279de511bc5035d8d218d0" title="Find out the NAXIS2.">uves_pfits_get_naxis2</a>(raw_header),</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>      <span class="stringliteral">"Could not read naxis2 from input header"</span>);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"start=%f %f step=%f %f naxis=%d %d"</span>,</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>           start1,start2,step1,step2,naxis1,naxis2);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>   imsize1=naxis2;</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>   <span class="comment">/* for some reason in MIDAS prg STEP=START */</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>   step1=start1;</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>   step2=start2;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>            <span class="stringliteral">"def_pol1"</span>, CPL_TYPE_INT, &def_pol1 ),</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>            <span class="stringliteral">"def_pol2"</span>, CPL_TYPE_INT, &def_pol2 ),</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Polynomial %d %d"</span>,def_pol1,def_pol2);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Display orders positions..."</span>);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>   inpr1 = start1;</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>   inpr2 = start1+(imsize1-1)*step1;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>  </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="keywordflow">if</span> (inpr2 < inpr1) { </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>   inpr3 = inpr1;</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>   inpr1 = inpr2;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>   inpr2 = inpr3;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> }</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> </div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">/* select in the table values which are in the range covered by the</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment">   actual formatcheck frame */</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"1st select: inputr=%f %f"</span>,inpr1,inpr2);</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"ord Xmin=%f Xmax=%f"</span>,</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>           cpl_table_get_column_min(*o_tbl,<span class="stringliteral">"X"</span>),</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>       cpl_table_get_column_max(*o_tbl,<span class="stringliteral">"X"</span>));</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(nraw=SELECT_FUNC_DOUBLE(*o_tbl,<span class="stringliteral">"X"</span>,CPL_NOT_LESS_THAN,inpr1),<span class="stringliteral">"Selection on X failed"</span>);</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"nraw=%d"</span>,nraw);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(nraw=SELECT_FUNC_DOUBLE(*o_tbl,<span class="stringliteral">"X"</span>,CPL_NOT_GREATER_THAN,inpr2),<span class="stringliteral">"Selection on X failed"</span>);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"nraw=%d"</span>,nraw);</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>   <span class="comment">/* scan1=1, scan2=naxis2*/</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>   inpr1 = start2+(scan1-1)*step2;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>   inpr2 = start2+(scan2-1)*step2;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>   </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>   <span class="keywordflow">if</span> (inpr2 < inpr1) {</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     inpr3 = inpr1;</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     inpr1 = inpr2;</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     inpr2 = inpr3;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>   }</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"2nd select: inputr=%f %f"</span>,inpr1,inpr2);</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(nraw=SELECT_FUNC_DOUBLE(*o_tbl,<span class="stringliteral">"Y"</span>,CPL_NOT_LESS_THAN,inpr1),<span class="stringliteral">"Selection on Y failed"</span>);</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"nraw=%d"</span>,nraw);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(nraw=SELECT_FUNC_DOUBLE(*o_tbl,<span class="stringliteral">"Y"</span>,CPL_NOT_GREATER_THAN,inpr2),<span class="stringliteral">"Selection on Y failed"</span>);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"nraw=%d"</span>,nraw);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>   <span class="comment">/* this table has slightly different values with respect to MIDAS */</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>   </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>   <span class="keywordflow">if</span>(-1 == <a class="code" href="group__uves__physmod.html#gac557292b00ae3782ce6efa3a4e0290f3" title="This procedure does a linear fit of independent orders.">uves_physmod_necregr</a>(o_tbl,w_tbl)) {</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Error using uves_necregr"</span>);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>   }</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> *s_tbl=cpl_table_duplicate(*w_tbl);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment">/* we sort the table */</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>   plist=<a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>   uves_propertylist_append_bool(plist,<span class="stringliteral">"RMS"</span>,0);  <span class="comment">/* 0 for ascending order */</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>   uves_table_sort(*s_tbl,plist);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>   uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>   ord_min=cpl_table_get_column_min(*o_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>   ord_max=cpl_table_get_column_max(*o_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>   ECHORD_1=(ord_max-ord_min+1);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>   ORDER=(ord_max-ord_min+1)/2;</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>   ORDER=uves_max_int(1,ORDER);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>   RMSMAX=cpl_table_get_double(*s_tbl,<span class="stringliteral">"RMS"</span>,ORDER,&status);</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>   RMSMAX=3.5*RMSMAX;</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"RMSMAX=%f"</span>,RMSMAX);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>  <span class="keywordflow">if</span> (RMSMAX < 0.05)  RMSMAX = 0.05;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"RMSMAX=%f"</span>,RMSMAX);</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>  </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="keywordflow">if</span>( OUTMODE != <span class="charliteral">'S'</span>) {</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Maximum admissible rms: %f pixels"</span>,RMSMAX);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> }</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>  </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>  <span class="keywordflow">for</span> (ORDER = 0; ORDER<ECHORD_1; ORDER++){</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>  RMS = cpl_table_get_double(*w_tbl,<span class="stringliteral">"RMS"</span>,ORDER,&status);</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>  <span class="comment">/*</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment"> uves_msg_debug("RMS=%f",RMS);</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>  <span class="keywordflow">if</span> (RMS > RMSMAX){ </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>    <span class="keywordflow">if</span> (OUTMODE != <span class="charliteral">'S'</span>) {</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>      <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Rejected order number %d RMS = %f pixels"</span>,ORDER,RMS);</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>    }</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>    REJECT[NBREJ] = ORDER;</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>    NBREJ = NBREJ + 1;</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>  }</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> }</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>    <span class="keywordflow">for</span>(ORDER = 1; ORDER<NBREJ; ORDER++){</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(SELECT_FUNC_INT(*o_tbl,<span class="stringliteral">"ORDER"</span>,</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>          CPL_NOT_EQUAL_TO,REJECT[NBREJ]),<span class="stringliteral">"Error1 selecting ORDER"</span>);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>    }</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>   INPUTI_1 = def_pol2 + 1;      <span class="comment">/* Degree Y + 1 */</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>   INPUTI_2 = ECHORD_1 - NBREJ;  <span class="comment">/* Number of orders minus rejected orders */</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="keywordflow">if</span> (INPUTI_1 > INPUTI_2) {</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"*****************************************************"</span>);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"**** Warning : Number of selected orders {INPUTI(2)}"</span>);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"**** is too small for the current value of echelle"</span>);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"**** parameter DEFPOL(2)=%d"</span>, def_pol2);</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"*****************************************************"</span>);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> }</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(poly2d_y=<a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(*o_tbl,<span class="stringliteral">"X"</span>,<span class="stringliteral">"ORDER"</span>,<span class="stringliteral">" [...]
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>                          NULL,def_pol1,def_pol2,<span class="stringliteral">"YFIT"</span>,</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>                                              NULL,NULL,</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>                          &mean_sq_err_y,NULL,NULL,-1,-1),</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>                                          <span class="stringliteral">"Fitting YFIT failed"</span>);</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>   cpl_table_set_column_unit(*o_tbl,<span class="stringliteral">"YFIT"</span>,<span class="stringliteral">"pix"</span>);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>   cpl_table_set_column_unit(*o_tbl,<span class="stringliteral">"X"</span>,<span class="stringliteral">"pix"</span>);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>   cpl_table_set_column_unit(*o_tbl,<span class="stringliteral">"Y"</span>,<span class="stringliteral">"pix"</span>);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>   outputd[0][0]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,0,0);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>   outputd[1][0]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,1,0);</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>   outputd[0][1]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,0,1);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>   outputd[1][1]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,1,1);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>   outputd[2][0]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,2,0);</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>   outputd[0][2]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,0,2);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>   outputd[1][2]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,1,2);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>   outputd[2][1]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,2,1);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>   outputd[2][2]=<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(poly2d_y,2,2);</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>   cpl_table_duplicate_column(*o_tbl,<span class="stringliteral">"RESIDUAL"</span>,*o_tbl,<span class="stringliteral">"Y"</span>);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>   cpl_table_subtract_columns(*o_tbl,<span class="stringliteral">"RESIDUAL"</span>,<span class="stringliteral">"YFIT"</span>);</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>   cpl_table_set_column_unit(*o_tbl,<span class="stringliteral">"RESIDUAL"</span>,<span class="stringliteral">"pix"</span>);</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Error %f"</span>,sqrt(mean_sq_err_y));</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>   THRESH = kappa * sqrt(mean_sq_err_y);</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>   <span class="keywordflow">if</span> (THRESH > tol)   THRESH = tol;</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>   <span class="comment">/* do a selection on the absolute value of RESIDUAL */</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(SELECT_FUNC_DOUBLE(*o_tbl,<span class="stringliteral">"RESIDUAL"</span>,</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>          CPL_LESS_THAN,THRESH),<span class="stringliteral">"Error1 selecting RESIDUAL"</span>);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(SELECT_FUNC_DOUBLE(*o_tbl,<span class="stringliteral">"RESIDUAL"</span>,</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>          CPL_GREATER_THAN,-THRESH),<span class="stringliteral">"Error2 selecting RESIDUAL"</span>);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>   <span class="keywordflow">if</span> (num_outliers >= 1)</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>       {</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>   </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Kappa-Sigma clipping..."</span>);</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>       <span class="keywordflow">for</span>(CNT = 1; CNT<num_outliers; CNT++) {</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>       </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>           <span class="comment">/*</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="comment">        REGRE/POLY  {ORDTAB} :Y :X,:ORDER {DEFPOL(1)},{DEFPOL(2)}  KEYLONG </span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="comment">        SAVE/REGR   {ORDTAB} COEFF   KEYLONG</span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="comment">        COMPUTE/REGR   {ORDTAB} :YFIT = COEFF </span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="comment">        COMPUTE/TABLE    {ORDTAB} :RESIDUAL = :Y - :YFIT;</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> <span class="comment">          */</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>           </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>           <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&poly2d_y);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(poly2d_y=<a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(*o_tbl,<span class="stringliteral">"X"</span>,<span class="stringliteral">"ORDER"</span>,<span class="stringliteral [...]
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                                NULL,def_pol1,def_pol2,<span class="stringliteral">"YFIT"</span>,</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>                                NULL,NULL,</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>                                &mean_sq_err_y,NULL,NULL,-1,-1),</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>             <span class="stringliteral">"Fitting YFIT failed"</span>);</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>           </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>           <span class="keywordflow">if</span> (OUTMODE != <span class="charliteral">'S'</span>) {</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Ndata = %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" - Rms = %f pixels"</span>,</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                cpl_table_get_nrow(*o_tbl),sqrt(mean_sq_err_y));</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>           }</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>           </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>           cpl_table_duplicate_column(*o_tbl,<span class="stringliteral">"RESIDUAL"</span>,*o_tbl,<span class="stringliteral">"Y"</span>);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>           cpl_table_subtract_columns(*o_tbl,<span class="stringliteral">"RESIDUAL"</span>,<span class="stringliteral">"YFIT"</span>);</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"error %f"</span>,sqrt(mean_sq_err_y));</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>           THRESH = kappa * sqrt(mean_sq_err_y);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>           <span class="keywordflow">if</span> (THRESH > tol)   THRESH = tol;</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>           <span class="comment">/* do a selection on the absolute value of RESIDUAL */</span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(SELECT_FUNC_DOUBLE(*o_tbl,<span class="stringliteral">"RESIDUAL"</span>,</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>           CPL_LESS_THAN,THRESH),<span class="stringliteral">"Error3 selecting RESIDUAL"</span>);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(SELECT_FUNC_DOUBLE(*o_tbl,<span class="stringliteral">"RESIDUAL"</span>,</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>           CPL_GREATER_THAN,-THRESH),<span class="stringliteral">"Error4 selecting RESIDUAL"</span>);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>           </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>       }</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>       }</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>   cleanup:</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>   <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&poly2d_y);</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>   uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__regress__echelle_8h_source.html b/html/uves__physmod__regress__echelle_8h_source.html
deleted file mode 100644
index ed1d1c1..0000000
--- a/html/uves__physmod__regress__echelle_8h_source.html
+++ /dev/null
@@ -1,128 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_regress_echelle.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_regress_echelle.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> </div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2011-12-08 13:54:54 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Revision 1.7  2010/09/24 09:32:07  amodigli</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Revision 1.5  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Revision 1.4  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Revision 1.3  2006/10/24 14:12:24  jmlarsen</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> * Parametrized recipe id to support FLAMES recipe</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Revision 1.2  2006/10/05 13:07:51  jmlarsen</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> * Declared parameter list const</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Revision 1.3  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_REGRESS_ECHELLE_H</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_REGRESS_ECHELLE_H</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod.html#ga6cbdcd8eb1c7f25749c51874d79e4e83" title="Fit mesured position of orders by a bivariate polynomial.">uves_physmod_regress_echelle</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>                  <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>                  <span class="keyword">const</span> cpl_parameterlist* parameters,</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>                  cpl_table** o_tbl, </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>                  <span class="keywordtype">int</span> num_outliers, </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>                  <span class="keywordtype">double</span> tol, </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>                  <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>                  cpl_table** s_tbl,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>                  cpl_table** w_tbl);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PHYSMOD_REGRESS_ECHELLE_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__stability__check_8c_source.html b/html/uves__physmod__stability__check_8c_source.html
deleted file mode 100644
index ad6cf1a..0000000
--- a/html/uves__physmod__stability__check_8c_source.html
+++ /dev/null
@@ -1,562 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_stability_check.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_stability_check.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                            *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                               *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                    *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify     *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by     *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or        *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                      *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,          *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of           *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                             *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License        *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software              *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA     *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                           */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.17 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.15  2007/12/17 07:56:36  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * we now compute a clean median as in MIDAS</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.14  2007/12/03 17:00:14  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * removed dependency from flames and fixed a warning</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.13  2007/12/03 10:39:36  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * added uves_physmod_align_tables flames_align_table_column</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.12  2007/06/26 15:08:42  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * commented table dumping</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.11  2007/06/25 16:34:52  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * cleaned</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.10  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.9  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.8  2006/08/24 06:36:10  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * fixed doxygen warning</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.7  2006/08/22 14:17:00  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * fixed bug on computing MedDY</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.6  2006/08/08 15:41:19  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * fixed bug in aligning actual and ref tables</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.5  2006/08/02 07:02:05  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * stability check more robust: size of actual and ref table may differ</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.4  2006/07/31 06:29:26  amodigli</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * added QC on stability test</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.3  2006/07/28 14:51:26  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * fixed some bugs on improper table selection</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.2  2006/06/28 13:28:29  amodigli</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * improved output</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.4  2006/01/20 10:36:25  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Fixed warings from doxigen</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Revision 1.3  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Revision 1.2  2006/01/16 13:52:58  jmlarsen</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> * Removed memory leak</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Revision 1.1  2006/01/16 08:02:50  amodigli</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Added</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * Revision 1.4  2006/01/09 14:05:42  amodigli</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Fixed doxigen warnings</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * Revision 1.3  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor">#include <uves_physmod_stability_check.h></span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <a class="code" href="group__uves__physmod.html#gab2645fc74b7cddacfe9b1ac960608a4e" title="This procedure compares two input tables and eventually alignes them.">uves_physmod_align_tables</a>(cpl_table** m_tbl, </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>               cpl_table** r_tbl);</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <a class="code" href="group__uves__physmod.html#gac2394f974852f00f7fd8d77233a18fe4" title="This procedure compares two input tables and eventually alignes them.">flames_align_table_column</a>(cpl_table** m_tbl,cpl_table** r_tbl,<span class="keyword">const</span> <span class="keywordtype">char</span>* col);</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#ga107c8a7619bdaf3c4219f05060192bd2">  152</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__physmod.html#ga107c8a7619bdaf3c4219f05060192bd2" title="This procedure run a stability check.">uves_physmod_stability_check</a>(cpl_table* m_tbl, </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>                                  cpl_table* r_tbl, </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>                                  <span class="keywordtype">double</span>* med_dx,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>                                  <span class="keywordtype">double</span>* med_dy,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>                                  <span class="keywordtype">double</span>* avg_dx,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                                  <span class="keywordtype">double</span>* avg_dy)</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> {</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>   cpl_table* tmp_tbl1=NULL;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>   cpl_table* tmp_tbl2=NULL;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>   cpl_table* tmp_tbl3=NULL;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>   cpl_table* tmp_tbl4=NULL;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>   cpl_table* tmp_tbl5=NULL;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>   <span class="keywordtype">double</span> std_dx=0;</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>   <span class="keywordtype">double</span> std_dy=0;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>   <span class="keywordtype">int</span> msz=0;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>   <span class="keywordtype">int</span> rsz=0;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>   <span class="keywordtype">int</span> ref=0;</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>   <span class="keywordtype">int</span> status=0;  <span class="comment">/* note those are swapped */</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(m_tbl,<span class="stringliteral">"X"</span>,m_tbl,<span class="stringliteral">"XMES"</span>));</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(m_tbl,<span class="stringliteral">"Y"</span>,m_tbl,<span class="stringliteral">"YMES"</span>));</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(m_tbl,<span class="stringliteral">"S"</span>,m_tbl,<span class="stringliteral">"STATUS"</span>));</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(m_tbl,<span class="stringliteral">"O"</span>,m_tbl,<span class="stringliteral">"ORDER"</span>));</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(m_tbl,<span class="stringliteral">"ID"</span>,m_tbl,<span class="stringliteral">"IDENT"</span>));</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"X"</span>,r_tbl,<span class="stringliteral">"XMES"</span>));</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"Y"</span>,r_tbl,<span class="stringliteral">"YMES"</span>));</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"S"</span>,r_tbl,<span class="stringliteral">"STATUS"</span>));</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"O"</span>,r_tbl,<span class="stringliteral">"ORDER"</span>));</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"ID"</span>,r_tbl,<span class="stringliteral">"IDENT"</span>));</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(msz=cpl_table_get_nrow(m_tbl));</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(rsz=cpl_table_get_nrow(r_tbl));</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>   cpl_table_save(m_tbl, NULL, NULL, <span class="stringliteral">"m_tbl.fits"</span>, CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>   cpl_table_save(r_tbl, NULL, NULL, <span class="stringliteral">"r_tbl.fits"</span>, CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   <span class="keywordflow">if</span>(msz > rsz) {</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_size(r_tbl,msz));</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Actual and reference tables have different sizes: act=%d ref=%d"</span>,msz,rsz);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     <a class="code" href="group__uves__physmod.html#gab2645fc74b7cddacfe9b1ac960608a4e" title="This procedure compares two input tables and eventually alignes them.">uves_physmod_align_tables</a>(&m_tbl,&r_tbl);</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(msz=cpl_table_get_nrow(m_tbl));</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(rsz=cpl_table_get_nrow(r_tbl));</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"After correction actual and reference tables have different sizes: act=%d ref=%d"</span>,msz,rsz);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (msz < rsz) {</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_set_size(m_tbl,rsz));</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Actual and reference tables have different sizes: act=%d ref=%d"</span>,msz,rsz);</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     <a class="code" href="group__uves__physmod.html#gab2645fc74b7cddacfe9b1ac960608a4e" title="This procedure compares two input tables and eventually alignes them.">uves_physmod_align_tables</a>(&m_tbl,&r_tbl);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(msz=cpl_table_get_nrow(m_tbl));</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(rsz=cpl_table_get_nrow(r_tbl));</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"After correction actual and reference tables have different sizes: act=%d ref=%d"</span>,msz,rsz);</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>   } </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>   cpl_table_save(m_tbl, NULL, NULL, <span class="stringliteral">"after_m_tbl.fits"</span>, CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>   cpl_table_save(r_tbl, NULL, NULL, <span class="stringliteral">"after_r_tbl.fits"</span>, CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>   <span class="comment">/* copy values measured on actual frame into table from reference frame */</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"Xm"</span>,m_tbl,<span class="stringliteral">"X"</span>));</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"Ym"</span>,m_tbl,<span class="stringliteral">"Y"</span>));</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"Sm"</span>,m_tbl,<span class="stringliteral">"S"</span>));</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"Om"</span>,m_tbl,<span class="stringliteral">"O"</span>));</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"IDm"</span>,m_tbl,<span class="stringliteral">"ID"</span>));</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"WAVEm"</span>,m_tbl,<span class="stringliteral">"WAVE"</span>));</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>   <span class="comment">/* initialize difference columns with values from actual frame measures */</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"DX"</span>,r_tbl,<span class="stringliteral">"Xm"</span>));</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"DY"</span>,r_tbl,<span class="stringliteral">"Ym"</span>));</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"DO"</span>,r_tbl,<span class="stringliteral">"Om"</span>));</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"DID"</span>,r_tbl,<span class="stringliteral">"IDm"</span>));</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(r_tbl,<span class="stringliteral">"DW"</span>,r_tbl,<span class="stringliteral">"WAVEm"</span>));</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>   <span class="comment">/* subtract values measured on reference frame */</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_subtract_columns(r_tbl,<span class="stringliteral">"DX"</span>,<span class="stringliteral">"X"</span>));</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_subtract_columns(r_tbl,<span class="stringliteral">"DY"</span>,<span class="stringliteral">"Y"</span>));</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_subtract_columns(r_tbl,<span class="stringliteral">"DO"</span>,<span class="stringliteral">"O"</span>));</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_subtract_columns(r_tbl,<span class="stringliteral">"DID"</span>,<span class="stringliteral">"ID"</span>));</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_subtract_columns(r_tbl,<span class="stringliteral">"DW"</span>,<span class="stringliteral">"WAVE"</span>));</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>   <span class="comment">/* WE GET THE ABSOLUTE VALUE: sqrt(X^2)*/</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_table_power_column(r_tbl,<span class="stringliteral">"DW"</span>,2.),<span class="stringliteral">"Error computing power column"</span>);</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_table_power_column(r_tbl,<span class="stringliteral">"DW"</span>,0.5),<span class="stringliteral">"Error computing power column"</span>);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>   <span class="comment">/* select proper values */</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl1=uves_extract_table_rows(r_tbl,<span class="stringliteral">"DO"</span>,CPL_EQUAL_TO,</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>           0),<span class="stringliteral">"Error selecting DO"</span>);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl2=uves_extract_table_rows(tmp_tbl1,<span class="stringliteral">"DW"</span>,CPL_LESS_THAN,</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>           0.001),<span class="stringliteral">"Error selecting DW"</span>);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl3=uves_extract_table_rows(tmp_tbl2,<span class="stringliteral">"DID"</span>,CPL_LESS_THAN,</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>           0.001),<span class="stringliteral">"Error selecting DID"</span>);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl4=uves_extract_table_rows(tmp_tbl3,<span class="stringliteral">"S"</span>,CPL_EQUAL_TO,</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>           0),<span class="stringliteral">"Error selecting S"</span>);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl5=uves_extract_table_rows(tmp_tbl4,<span class="stringliteral">"Sm"</span>,CPL_EQUAL_TO,</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>           0),<span class="stringliteral">"Error selecting Sm"</span>);</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ref=cpl_table_get_nrow(tmp_tbl5)/2);</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>   <span class="comment">//cpl_table_dump(tmp_tbl5,1,2,stdout);</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*med_dx=cpl_table_get_column_median(tmp_tbl5,<span class="stringliteral">"DX"</span>));</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*med_dy=cpl_table_get_column_median(tmp_tbl5,<span class="stringliteral">"DY"</span>));</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*avg_dx=cpl_table_get_column_mean(tmp_tbl5,<span class="stringliteral">"DX"</span>));</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*avg_dy=cpl_table_get_column_mean(tmp_tbl5,<span class="stringliteral">"DY"</span>));</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(std_dx=cpl_table_get_column_stdev(tmp_tbl5,<span class="stringliteral">"DX"</span>));</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(std_dy=cpl_table_get_column_stdev(tmp_tbl5,<span class="stringliteral">"DY"</span>));</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment">  uves_msg("Stability check results: Median DX = %5.3f Median DY = %5.3f",</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment">           *med_dx,*med_dy);</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment">       */</span>       </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Stability check results: Mean DX = %5.3f Mean DY = %5.3f"</span>,</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>            *avg_dx,*avg_dy);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_sort_table_1(tmp_tbl5,<span class="stringliteral">"DX"</span>,0));</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*med_dx=cpl_table_get_double(tmp_tbl5,<span class="stringliteral">"DX"</span>,ref,&status));</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>   uves_free_table(&tmp_tbl1);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>   uves_free_table(&tmp_tbl2);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>   <span class="keywordflow">if</span>(std_dx > 0) {</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl1=uves_extract_table_rows(tmp_tbl5,<span class="stringliteral">"DX"</span>,CPL_GREATER_THAN,</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>                        *avg_dx-3*std_dx),<span class="stringliteral">"Error selecting DO"</span>);</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl2=uves_extract_table_rows(tmp_tbl1,<span class="stringliteral">"DX"</span>,CPL_LESS_THAN,</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>                        *avg_dx+3*std_dx),<span class="stringliteral">"Error selecting DO"</span>);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> </div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*med_dx=cpl_table_get_column_median(tmp_tbl2,<span class="stringliteral">"DX"</span>));</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     uves_free_table(&tmp_tbl1);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     uves_free_table(&tmp_tbl2);</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>   }</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_sort_table_1(tmp_tbl5,<span class="stringliteral">"DY"</span>,0));</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*med_dy=cpl_table_get_double(tmp_tbl5,<span class="stringliteral">"DY"</span>,ref,&status));</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>   <span class="keywordflow">if</span>(std_dy > 0) {</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl1=uves_extract_table_rows(tmp_tbl5,<span class="stringliteral">"DY"</span>,CPL_GREATER_THAN,</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>                        *avg_dy-3*std_dy),<span class="stringliteral">"Error selecting DO"</span>);</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(tmp_tbl2=uves_extract_table_rows(tmp_tbl1,<span class="stringliteral">"DY"</span>,CPL_LESS_THAN,</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>                        *avg_dy+3*std_dy),<span class="stringliteral">"Error selecting DO"</span>);</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*med_dy=cpl_table_get_column_median(tmp_tbl2,<span class="stringliteral">"DY"</span>));</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     uves_free_table(&tmp_tbl1);</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     uves_free_table(&tmp_tbl2);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>   }</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>   <span class="comment">/* median computed as in UVES-MIDAS */</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Stability check results: Median DX = %5.3f Median DY = %5.3f"</span>,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>            *med_dx,*med_dy);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>  cleanup:</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>   uves_free_table(&tmp_tbl1);</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>   uves_free_table(&tmp_tbl2);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>   uves_free_table(&tmp_tbl3);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>   uves_free_table(&tmp_tbl4);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>   uves_free_table(&tmp_tbl5);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>  <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> }</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#gac2394f974852f00f7fd8d77233a18fe4">  336</a></span> <a class="code" href="group__uves__physmod.html#gac2394f974852f00f7fd8d77233a18fe4" title="This procedure compares two input tables and eventually alignes them.">flames_align_table_column</a>(cpl_table** m_tbl,cpl_table** r_tbl,<span class="keyword">const</span> <span class="keywordtype">char</span>* col)</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> {</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>   <span class="keywordtype">double</span>* pmw=NULL;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>   <span class="keywordtype">double</span>* prw=NULL;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>   <span class="keywordtype">int</span>* pmc=NULL;</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>   <span class="keywordtype">int</span>* prc=NULL;</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>   <span class="keywordtype">int</span>* pmo=NULL;</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>   <span class="keywordtype">int</span>* pro=NULL;</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>   <span class="keywordtype">int</span> nm=0;</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>   <span class="keywordtype">int</span> nr=0;</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>   <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>  </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pmw=cpl_table_get_data_double(*m_tbl,col));</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(prw=cpl_table_get_data_double(*r_tbl,col));</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pmc=cpl_table_get_data_int(*m_tbl,<span class="stringliteral">"CHECK"</span>));</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(prc=cpl_table_get_data_int(*r_tbl,<span class="stringliteral">"CHECK"</span>));</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pmo=cpl_table_get_data_int(*m_tbl,<span class="stringliteral">"CHECK"</span>));</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pro=cpl_table_get_data_int(*r_tbl,<span class="stringliteral">"CHECK"</span>));</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nm=cpl_table_get_nrow(*m_tbl));</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nr=cpl_table_get_nrow(*r_tbl));</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>   <span class="keywordflow">for</span>(i=0;i<nm;i++) {</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     <span class="keywordflow">for</span>(j=0;j<nr;j++) {</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>       <span class="keywordflow">if</span>((pmw[i]==prw[j]) && (pmo[i]==pro[j])) {</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     pmc[i]=1;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     prc[j]=1;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>       }</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     }</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>   }</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>  cleanup:</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> }</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno"><a class="code" href="group__uves__physmod.html#gab2645fc74b7cddacfe9b1ac960608a4e">  388</a></span> <a class="code" href="group__uves__physmod.html#gab2645fc74b7cddacfe9b1ac960608a4e" title="This procedure compares two input tables and eventually alignes them.">uves_physmod_align_tables</a>(cpl_table** m_tbl, </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>               cpl_table** r_tbl)</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> {</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>   cpl_table* tmp=NULL;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* plist=NULL;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>   <span class="keywordtype">int</span> ord_min=0;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>   <span class="keywordtype">int</span> ord_max=0;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>   <span class="keywordtype">double</span> wav_min=0;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>   <span class="keywordtype">double</span> wav_max=0;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>   <span class="keywordtype">int</span> nm=0;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>   <span class="keywordtype">int</span> nr=0;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>   <span class="keywordtype">int</span> nsel=0;</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nm=cpl_table_get_nrow(*m_tbl));</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nr=cpl_table_get_nrow(*r_tbl));</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(plist=<a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>());</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_propertylist_append_bool(plist,<span class="stringliteral">"ORDER"</span>,0)); <span class="comment">/* 1 for descending order */</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_propertylist_append_bool(plist,<span class="stringliteral">"WAVE"</span>,0));  <span class="comment">/* 0 for ascending order */</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_table_sort(*m_tbl,plist));</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_table_sort(*r_tbl,plist));</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>   uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>   ord_min=(cpl_table_get_column_min(*m_tbl,<span class="stringliteral">"ORDER"</span>)></div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>            cpl_table_get_column_min(*r_tbl,<span class="stringliteral">"ORDER"</span>)) ?  </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     cpl_table_get_column_min(*m_tbl,<span class="stringliteral">"ORDER"</span>) :</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     cpl_table_get_column_min(*r_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>   ord_max=(cpl_table_get_column_max(*m_tbl,<span class="stringliteral">"ORDER"</span>)<</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>            cpl_table_get_column_max(*r_tbl,<span class="stringliteral">"ORDER"</span>)) ?  </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     cpl_table_get_column_max(*m_tbl,<span class="stringliteral">"ORDER"</span>) :</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     cpl_table_get_column_max(*r_tbl,<span class="stringliteral">"ORDER"</span>);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     </div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>   <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"ord_min=%d"</span>,ord_min);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>   <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"ord_max=%d"</span>,ord_max);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>  wav_min=(cpl_table_get_column_min(*m_tbl,<span class="stringliteral">"WAVE"</span>)></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>            cpl_table_get_column_min(*r_tbl,<span class="stringliteral">"WAVE"</span>)) ?  </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     cpl_table_get_column_min(*m_tbl,<span class="stringliteral">"WAVE"</span>) :</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     cpl_table_get_column_min(*r_tbl,<span class="stringliteral">"WAVE"</span>);</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> </div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> </div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>   wav_max=(cpl_table_get_column_max(*m_tbl,<span class="stringliteral">"WAVE"</span>)<</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>            cpl_table_get_column_max(*r_tbl,<span class="stringliteral">"WAVE"</span>)) ?  </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     cpl_table_get_column_max(*m_tbl,<span class="stringliteral">"WAVE"</span>) :</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     cpl_table_get_column_max(*r_tbl,<span class="stringliteral">"WAVE"</span>);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>   <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"wav_min=%g"</span>,wav_min);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>   <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"wav_max=%g"</span>,wav_max);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_int(*m_tbl,<span class="stringliteral">"ORDER"</span>,CPL_NOT_LESS_THAN,ord_min));</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_int(*m_tbl,<span class="stringliteral">"ORDER"</span>,CPL_NOT_GREATER_THAN,ord_max));</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_double(*m_tbl,<span class="stringliteral">"WAVE"</span>,CPL_NOT_LESS_THAN,wav_min));</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_double(*m_tbl,<span class="stringliteral">"WAVE"</span>,CPL_NOT_GREATER_THAN,wav_max));</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>   <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"nsel=%d"</span>,nsel);</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tmp=cpl_table_extract_selected(*m_tbl));</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>   uves_free_table(m_tbl);</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*m_tbl=cpl_table_duplicate(tmp));</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> </div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_int(*r_tbl,<span class="stringliteral">"ORDER"</span>,CPL_NOT_LESS_THAN,ord_min));</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_int(*r_tbl,<span class="stringliteral">"ORDER"</span>,CPL_NOT_GREATER_THAN,ord_max));</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_double(*m_tbl,<span class="stringliteral">"WAVE"</span>,CPL_NOT_LESS_THAN,wav_min));</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_double(*m_tbl,<span class="stringliteral">"WAVE"</span>,CPL_NOT_GREATER_THAN,wav_max));</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>   <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"nsel=%d"</span>,nsel);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tmp=cpl_table_extract_selected(*r_tbl));</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>   uves_free_table(r_tbl);</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*r_tbl=cpl_table_duplicate(tmp));</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> </div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>   cpl_table_new_column(*m_tbl,<span class="stringliteral">"CHECK"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>   cpl_table_new_column(*r_tbl,<span class="stringliteral">"CHECK"</span>,CPL_TYPE_INT);</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>   cpl_table_fill_column_window_int(*r_tbl,<span class="stringliteral">"CHECK"</span>,0,nr,0);</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>   cpl_table_fill_column_window_int(*m_tbl,<span class="stringliteral">"CHECK"</span>,0,nm,0);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>   <span class="keywordflow">for</span>(i=ord_min;i<=ord_max;i++) {</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     cpl_table_and_selected_int(*m_tbl,<span class="stringliteral">"ORDER"</span>,CPL_EQUAL_TO,i);</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     cpl_table_and_selected_int(*r_tbl,<span class="stringliteral">"ORDER"</span>,CPL_EQUAL_TO,i);</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     <a class="code" href="group__uves__physmod.html#gac2394f974852f00f7fd8d77233a18fe4" title="This procedure compares two input tables and eventually alignes them.">flames_align_table_column</a>(m_tbl,r_tbl,<span class="stringliteral">"WAVE"</span>);</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> </div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>   }</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>   cpl_table_select_all(*m_tbl);</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>   cpl_table_select_all(*r_tbl);</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> </div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>  wav_min=(cpl_table_get_column_min(*m_tbl,<span class="stringliteral">"WAVE"</span>)></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>            cpl_table_get_column_min(*r_tbl,<span class="stringliteral">"WAVE"</span>)) ?  </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     cpl_table_get_column_min(*m_tbl,<span class="stringliteral">"WAVE"</span>) :</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     cpl_table_get_column_min(*r_tbl,<span class="stringliteral">"WAVE"</span>);</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> </div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>   wav_max=(cpl_table_get_column_max(*m_tbl,<span class="stringliteral">"WAVE"</span>)<</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>            cpl_table_get_column_max(*r_tbl,<span class="stringliteral">"WAVE"</span>)) ?  </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     cpl_table_get_column_max(*m_tbl,<span class="stringliteral">"WAVE"</span>) :</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     cpl_table_get_column_max(*r_tbl,<span class="stringliteral">"WAVE"</span>);</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>   <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"wav_min=%g"</span>,wav_min);</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>   <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"wav_max=%g"</span>,wav_max);</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> </div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_int(*m_tbl,<span class="stringliteral">"ORDER"</span>,CPL_NOT_LESS_THAN,ord_min));</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_int(*m_tbl,<span class="stringliteral">"ORDER"</span>,CPL_NOT_GREATER_THAN,ord_max));</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_double(*m_tbl,<span class="stringliteral">"WAVE"</span>,CPL_NOT_LESS_THAN,wav_min));</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_double(*m_tbl,<span class="stringliteral">"WAVE"</span>,CPL_NOT_GREATER_THAN,wav_max));</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_int(*m_tbl,<span class="stringliteral">"CHECK"</span>,CPL_EQUAL_TO,1));</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>   <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"nsel=%d"</span>,nsel);</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tmp=cpl_table_extract_selected(*m_tbl));</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>   uves_free_table(m_tbl);</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*m_tbl=cpl_table_duplicate(tmp));</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_int(*r_tbl,<span class="stringliteral">"ORDER"</span>,CPL_NOT_LESS_THAN,ord_min));</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_int(*r_tbl,<span class="stringliteral">"ORDER"</span>,CPL_NOT_GREATER_THAN,ord_max));</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_double(*m_tbl,<span class="stringliteral">"WAVE"</span>,CPL_NOT_LESS_THAN,wav_min));</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_double(*m_tbl,<span class="stringliteral">"WAVE"</span>,CPL_NOT_GREATER_THAN,wav_max));</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nsel=cpl_table_and_selected_int(*r_tbl,<span class="stringliteral">"CHECK"</span>,CPL_EQUAL_TO,1));</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>   <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"nsel=%d"</span>,nsel);</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tmp=cpl_table_extract_selected(*r_tbl));</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>   uves_free_table(r_tbl);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*r_tbl=cpl_table_duplicate(tmp));</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>  </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>   </div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>  cleanup:</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> </div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> </div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>   <span class="comment">//uves_free_string_const(&rout);</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>   <span class="comment">//uves_free_string_const(&mout);</span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> </div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> }</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> </div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__stability__check_8h_source.html b/html/uves__physmod__stability__check_8h_source.html
deleted file mode 100644
index 9f7f758..0000000
--- a/html/uves__physmod__stability__check_8h_source.html
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_stability_check.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_stability_check.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.6 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.4  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.3  2006/08/24 07:18:12  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * fixed doxygen warnings</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.2  2006/07/31 06:29:26  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * added QC on stability test</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.1  2006/01/16 08:02:50  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> * Added</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Revision 1.3  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_STABILITY_CHECK_H</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_STABILITY_CHECK_H</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <a class="code" href="group__uves__physmod.html#ga107c8a7619bdaf3c4219f05060192bd2" title="This procedure run a stability check.">uves_physmod_stability_check</a>(cpl_table* m_tbl, </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>                              cpl_table* r_tbl, </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>                              <span class="keywordtype">double</span>* med_dx, </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>                              <span class="keywordtype">double</span>* med_dy, </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>                              <span class="keywordtype">double</span>* avg_dx, </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>                              <span class="keywordtype">double</span>* avg_dy);</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PHYSMOD_STABILITY_CHECK_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__utils_8c_source.html b/html/uves__physmod__utils_8c_source.html
deleted file mode 100644
index 8c16d62..0000000
--- a/html/uves__physmod__utils_8c_source.html
+++ /dev/null
@@ -1,1244 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_utils.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_utils.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment">/* ===========================================================================</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment"> * $Id: uves_physmod_utils.c,v 1.19 2010-09-24 09:32:07 amodigli Exp $</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Revision: 1.19 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * Revision 1.17  2007/12/03 10:41:38  amodigli</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * added uves_msg_debug on some function</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Revision 1.16  2007/11/26 15:28:29  amodigli</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> * display more info</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Revision 1.15  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Revision 1.14  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Revision 1.13  2006/08/23 15:41:06  amodigli</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> * removed warning from checks on line length</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Revision 1.12  2006/08/23 09:33:03  jmlarsen</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> * Renamed local variables shadowing POSIX reserved names</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Revision 1.11  2006/06/20 10:56:56  amodigli</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> * cleaned output, added units</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Revision 1.10  2006/06/20 08:40:57  amodigli</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> * fixed doxigen warnings</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Revision 1.9  2006/06/08 11:01:50  amodigli</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> * fixed some warnings</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Revision 1.8  2006/06/07 12:50:44  jmlarsen</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> * Removed doxygen tag addtogroup</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Revision 1.7  2006/06/07 12:45:19  jmlarsen</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> * Added missing doxygen endmarker</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Revision 1.6  2006/06/05 08:51:55  amodigli</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> * cleaned some warnings from static checks</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Revision 1.5  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Revision 1.4  2006/06/01 14:26:14  amodigli</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * fixed typo</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.3  2006/06/01 14:22:07  amodigli</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * added Doxigen doc</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Revision 1.2  2006/04/24 09:22:16  jmlarsen</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * Added doxygen tag: addtogroup</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Revision 1.18  2006/01/05 14:29:59  jmlarsen</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * Removed newline characters from output strings</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Revision 1.17  2005/12/05 16:11:47  amodigli</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> * Fixed some warning</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Revision 1.16  2005/12/02 12:56:09  amodigli</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> * Fixed compilation problems on mac</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Revision 1.15  2005/11/28 15:36:34  amodigli</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * Renamed global variables and global function with prefix uves_physmod</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Revision 1.14  2005/11/28 08:37:27  amodigli</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * Fixed compilation warnings</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Revision 1.13  2005/11/25 08:05:15  amodigli</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *  Added plotting facility in physmod. Commented out some strange things in utils.</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.12  2005/11/18 11:49:22  amodigli</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * More verbosity</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Revision 1.11  2005/11/17 08:25:49  amodigli</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> * Removed uves_necregr.c</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Revision 1.10  2005/10/19 13:18:43  jmlarsen</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> * General update</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Revision 1.9  2005/10/18 10:08:01  amodigli</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> * Removed fctid</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Revision 1.8  2005/10/07 11:17:35  amodigli</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * Cleaned compilation warnings</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Revision 1.7  2005/10/03 07:32:44  amodigli</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> * Fixed bugs to support RED CCD</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Revision 1.6  2005/09/28 12:28:14  jmlarsen</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> * Replaced fctid -> __func__</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Revision 1.5  2005/09/18 14:24:10  amodigli</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> * Updated</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Revision 1.4  2005/08/29 10:05:08  jmlarsen</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * Conversion to/from electrons when calculating photonic noise</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Revision 1.3  2005/08/29 08:27:58  amodigli</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Put into repository updates on physical model</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Revision 1.2  2005/06/17 12:02:04  amodigli</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * Fixed compilation problem</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Revision 1.1  2005/06/17 11:34:34  amodigli</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * First release</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * ===========================================================================</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment">/*+++ uves_physmod_utils.c +++++++++++++++++++++++++++++++++++++++++++++++++++</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> .COPYRIGHT    (C) 1998  European Southern Observatory</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> .IDENT        </span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> .KEYWORDS    uves physical model, spectroscopy, echelle,</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> .USAGE        .</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> .INPUT        .</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment">        </span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> .OUTPUT    .</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> .RETURN    Q1:  0: successful return</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment">             -1: a successful return failed</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> .PURPOSE    Library of UVES Physical Model Functions. </span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> .ALGORITHM    UVES Physical Model.</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"></span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> .ENVIRON    MIDAS, UVES context</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment">    </span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> .LANGUAGE    C</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> .AUTHOR    Pascal Ballester, Olivier BOITQUIN, ESO-DMD</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> .VERSION    1.0 1999/07/01      Creation</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment">                    1999/09/30-SW Binning implemented.</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment">            1999/10/27-OB Bugs with n index fixed.</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"></span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> .COMMENT       </span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment">----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">                            Includes</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="preprocessor">#include <uves_physmod_utils.h></span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> beta2lamb(<span class="keywordtype">double</span> uves_beta_ech, <span class="keywordtype">double</span> uves_beta_cd, <span class="keywordtype">double</span>* plambda, <span class="keywordtype">int</span> m);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="keyword">static</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> cameraFocal(<span class="keywordtype">double</span> lm);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> uves_physmod_find_alpha_beta(<span class="keywordtype">double</span> lm, </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>                              <span class="keywordtype">int</span> m, </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>                              <span class="keywordtype">double</span> k, </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>                              <span class="keywordtype">double</span> theta, </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>                              <span class="keywordtype">double</span> *alpha, </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>                              <span class="keywordtype">double</span> *beta);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="keyword">static</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> uves_physmod_find_lambda(<span class="keywordtype">double</span> k, <span class="keywordtype">double</span> alpha, <span class="keywordtype">double</span> beta);</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="keyword">static</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> uves_physmod_find_order_lambda(<span class="keywordtype">double</span> k, <span class="keywordtype">double</span> alpha, <span class="keywordtype">double</span> beta);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment">/* not used:</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment">static void </span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment">uves_physmod_lambda_model(double* plambda, </span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">                          int m, </span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment">                          double fc, </span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment">                          double x, </span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment">                          double y);</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> uves_physmod_lambda_order_beta(<span class="keywordtype">double</span>* plambda, </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                                <span class="keywordtype">int</span>* pm, </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                                <span class="keywordtype">double</span> x, </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                                <span class="keywordtype">double</span> y, </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                                <span class="keywordtype">double</span>* puves_beta_ech, </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                                <span class="keywordtype">double</span>* puves_beta_cd);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> uves_physmod_lambda_order_focus_model(<span class="keywordtype">double</span>* plambda, </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                                       <span class="keywordtype">double</span>* pdm, </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>                                       <span class="keywordtype">double</span> fc, </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>                                       <span class="keywordtype">double</span> x, </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>                                       <span class="keywordtype">double</span> y);</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="keyword">static</span> <span class="keywordtype">double</span> uves_physmod_wave_bin(<span class="keywordtype">double</span> l, <span class="keywordtype">int</span> m);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_physmod_xy2beta(<span class="keywordtype">double</span>* puves_beta_ech, </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>                                  <span class="keywordtype">double</span>* puves_beta_cd, </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>                                  <span class="keywordtype">double</span> fc, </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>                                  <span class="keywordtype">double</span> x, </div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>                                  <span class="keywordtype">double</span> y);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_physmod_set_binning(<span class="keywordtype">float</span> binx, <span class="keywordtype">float</span> biny);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="keyword">static</span> <span class="keywordtype">double</span> dsqrarg;</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="preprocessor">#define DSQR(a) ((dsqrarg=(a)) == 0.0 ? 0.0 : dsqrarg*dsqrarg)</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="preprocessor">#define     PROID "physmod.c" </span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="keyword">enum</span> uves_arm_ident {UVES_ARM_UNDEF,UVES_ARM_BLUE,UVES_ARM_RED};</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="keyword">enum</span> uves_arm_ident uves_arm_ident = UVES_ARM_UNDEF;</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment">/* for messout function: no "static" (clear) -</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment">   no "extern" (otherwise redeclaration in all files neccessary) */</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment">/* globals declared as extern in physmod.h */</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="keywordtype">float</span>    uves_bin[2]      = {1, 1}; <span class="comment">/* binning of exposure in x and y */</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="keyword">static</span> <span class="keywordtype">double</span>   uves_physmod_pix_size[2]  = {15e-6, 15e-6}; <span class="comment">/* meters */</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="keyword">static</span> <span class="keywordtype">double</span>   delta[2]  = {75.04, 76.0};</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="keyword">static</span> <span class="keywordtype">double</span>   cdgroov[4]  = {1000.0e-6, 660.0e-6, 600.0e-6, 312.5e-6};  <span class="comment">/* grooves/nm */</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="keyword">static</span> <span class="keywordtype">double</span>   uves_ech_groov[2] = {31.6e-6,  41.59e-6};  <span class="comment">/* grooves/nm */</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment">/*double   uves_ech_blaze[2]  = {75.04, 75.9};  degrees */</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment">/*double   uves_ech_blaze[2]  = {74.74,  76.1};*/</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="keyword">static</span> <span class="keywordtype">double</span>   uves_ech_blaze[2]  = {74.57, 75.9}; <span class="comment">/* degrees */</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment">/*double   cdbeam[2]   = {45.336,  45.0};  degrees */</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment">/*double   cdbeam[2]   = {45.336,  45.9};*/</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment">/*double   cdbeam[2]   = {45.336,  45.0};  degrees */</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="keyword">static</span> <span class="keywordtype">double</span>   cdbeam[2]   = {45.336,  46.0}; <span class="comment">/* degrees */</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment">/*double   uves_ccd_rot[2]   = {0.7, -0.45};  degrees */</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="comment">/*double   uves_ccd_rot[2]   = {-1.0,  -1.50}; */</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="comment">/*double   uves_ccd_rot[2]   = {0.2, -0.45};   degrees */</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="keywordtype">double</span>   uves_ccd_rot[2]   = {0.3, -0.55};   <span class="comment">/* degrees old */</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="comment">/* blue detector upgrade 2004-10-13 */</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment">/* double   uves_ccd_rot[2]   = {0.3, -0.10}; degrees  new */</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="keyword">static</span> <span class="keywordtype">int</span>      imsize[2]   = {4096, 3000}; <span class="comment">/* pixels */</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="keyword">static</span> <span class="keywordtype">int</span>      uves_physmod_row_size[2]   = {2048, 2048}; <span class="comment">/* pixels */</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment">/* Configurations </span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment">   1:Blue CD1,     2:Blue CD2, </span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment">   3:Red CD 3 EEV, 4:Red CD 4 EEV, </span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment">   5:Red CD3 MIT,  6: Red CD4 MIT </span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="comment">/* old */</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="keywordtype">double</span> uves_physmod_offsetx[6]={1391.0,1385.0,1852.0,1835.0,1852.0,1834.0};</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="keywordtype">double</span> uves_physmod_offsety[6]={1030.0,1025.0,2098.0,2104.0,-52.0,-49.0}; </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment">/* blue detector upgrade 2004-10-13 */</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="comment">/* double uves_physmod_offsetx[6]={1355.0,1350.0,1852.0,1835.0,1852.0,1834.0}; new */</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="comment">/* double uves_physmod_offsety[6]={1030.0,1023.0,2098.0,2104.0,-52.0,-49.0}; new */</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="keyword">static</span> <span class="keywordtype">double</span>   flipx       = 1.; </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="keyword">static</span> <span class="keywordtype">double</span>   flipy       = -1.;</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="keywordtype">double</span>   uves_airt        = 25;  <span class="comment">/* Celsius */</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="keywordtype">double</span>   uves_airp        = 760; <span class="comment">/* mmHg */</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="keywordtype">double</span>   uves_airw        = 3;   <span class="comment">/* mmHg */</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="keywordtype">int</span>      uves_cfg_indx     = 0; </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="keywordtype">int</span>      uves_x_disp_id     = 0;</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="keyword">static</span> <span class="keywordtype">int</span>      uves_ech_id       = 0;</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="keywordtype">double</span>   uves_alpha0_cd, uves_beta0_cd;</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="keywordtype">char</span>     uves_arm_id       = <span class="charliteral">'x'</span>;</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="keyword">static</span> <span class="keywordtype">double</span>   uves_deg2rad     = M_PI/180.;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="comment">/* For history, please keep track HERE of the previous offset used: </span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment">Garching 1: </span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="comment">double uves_physmod_offsetx[6]={1470.0,1450.0,2130.0,2140.0,2130.0,2140.0}; </span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="comment">double uves_physmod_offsetx[6]={1515.0,1514.0,2010.0,2000.0,2010.0,2000.0};</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="comment">Comissioning 1: </span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="comment">double uves_physmod_offsetx[6]={1474.0,1471.0,1960.0,1948.0,1961.0,1949.0}; </span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment"></span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="comment">Comissioning 2, Dec 2000:</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="comment">double uves_physmod_offsetx[6]={1390.0,1386.0,1849.0,1840.0,1854.0,1840.0};</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="comment"> </span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="comment">Paranal 2, Feb 2000: </span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="comment">double uves_physmod_offsetx[6]={1390.0,1384.0,1851.0,1840.0,1851.0,1839.0}; </span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="comment"></span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment">Garching 1: </span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="comment">double uves_physmod_offsety[6]={1030.0,1030.0,2020.0,2020.0,-125.0,-115.0}; </span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment">double uves_physmod_offsety[6]={1029.0,1025.0,2072.0,2080.0,-74.0,-65.0}; </span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="comment"></span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment">Comissioning 1: </span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment">double uves_physmod_offsety[6]={1027.0,1024.0,2069.0,2077.0,-74.0,-65.0};</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment"></span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="comment">Comissioning 2, Dec 2000: </span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="comment">double uves_physmod_offsety[6]={1027.0,1025.0,2084.0,2094.0,-65.0,-54.0}; </span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="comment"></span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="comment">Paranal 2, Feb 2000:</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> <span class="comment">double uves_physmod_offsety[6]={1030.0,1025.0,2088.0,2094.0,-57.0,-54.0}; </span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment"></span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment">The gap between the EEV and MIT chips is estimated to 95 pixels */</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> <span class="comment">Mean pixel-scales for the 6 configurations: </span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> <span class="comment">   pixscale : 0.252396, 0.246, 0.182, 0.175266, 0.182, 0.175266 */</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>  </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> <span class="comment">/*---------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> uves_physmod_set_incidence(<span class="keywordtype">double</span> echred, </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>                            <span class="keywordtype">double</span> echblue, </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>                            <span class="keywordtype">double</span> xred, </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>                            <span class="keywordtype">double</span> xblue)</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> {</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>      uves_ech_blaze[0] += echred;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>      uves_ech_blaze[1] += echblue;</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>      cdbeam[0]  += xred;</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>      cdbeam[1]  += xblue;</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>      <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"uves_ech_blaze=%f,%f ccdbeam=%f,%f"</span>,</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>                    uves_ech_blaze[0],uves_ech_blaze[1],cdbeam[0],cdbeam[1]);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> }</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> uves_set_ccd_rot(<span class="keywordtype">double</span>* ccdrot, </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>                  <span class="keywordtype">double</span> uves_ccd_rot_off_red, </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                  <span class="keywordtype">double</span> uves_ccd_rot_off_blue)</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> {</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>   uves_ccd_rot[0] =ccdrot[0];</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>   uves_ccd_rot[1] =ccdrot[1];</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>   uves_ccd_rot[0] += uves_ccd_rot_off_red;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>   uves_ccd_rot[1] += uves_ccd_rot_off_blue;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"uves_ccd_rot[0,1]=%f,%f uves_ccd_rot_off: red,blue=%f,%f"</span>,</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>   uves_ccd_rot[0],uves_ccd_rot[1],uves_ccd_rot_off_red,uves_ccd_rot_off_blue);</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> }</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> uves_physmod_set_offset(<span class="keywordtype">double</span> offset_x, </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                         <span class="keywordtype">double</span> offset_y,</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                         <span class="keywordtype">double</span> uves_physmod_x_off, </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                         <span class="keywordtype">double</span> yoff)</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> {</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>   uves_physmod_offsetx[uves_cfg_indx-1]=offset_x;</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>   uves_physmod_offsety[uves_cfg_indx-1]=offset_y;</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="comment">  uves_msg("offset_x=%f offset_y=%f",offset_x,offset_y);</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="comment">     uves_msg("uves_physmod_offsetx=%f </span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="comment">               uves_physmod_offsety=%f </span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="comment">               uves_physmod_x_off=%f </span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> <span class="comment">               yoff=%f",</span></div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> <span class="comment">           uves_physmod_offsetx[uves_cfg_indx-1],</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="comment">               uves_physmod_offsety[uves_cfg_indx-1],</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> <span class="comment">               uves_physmod_x_off,</span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="comment">               yoff);</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>      uves_physmod_offsetx[uves_cfg_indx-1] += uves_physmod_x_off;</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>      uves_physmod_offsety[uves_cfg_indx-1] += yoff;</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>      <span class="comment">/*</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> <span class="comment">     uves_msg("uves_physmod_offsetx=%f </span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="comment">               uves_physmod_offsety=%f </span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> <span class="comment">               uves_physmod_x_off=%f </span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> <span class="comment">               yoff=%f",</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="comment">           uves_physmod_offsetx[uves_cfg_indx-1],</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment">               uves_physmod_offsety[uves_cfg_indx-1],</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> <span class="comment">               uves_physmod_x_off,</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="comment">               yoff);</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> }</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> <span class="keywordtype">void</span> uves_physmod_set_binning(<span class="keywordtype">float</span> binx, <span class="keywordtype">float</span> biny)</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> {</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>   uves_bin[0] = binx;</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>   uves_bin[1] = biny;</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> }</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> <span class="keywordtype">void</span> uves_air_config(<span class="keywordtype">double</span> p, <span class="keywordtype">double</span> t, <span class="keywordtype">double</span> w)</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> {</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     uves_airt = t;</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     uves_airp = p;</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     uves_airw = w;</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"uves_airt=%f uves_airp=%f uves_airw=%f"</span>,</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>                     uves_airt,uves_airp,uves_airw);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> }</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="keywordtype">double</span> uves_air_index(<span class="keywordtype">double</span> lambda)</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> {</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>    <span class="comment">/* wavelength is expected in nanometers. */</span></div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>    <span class="keywordtype">double</span> t1, t2, t3, airdx;</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>  </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>    t1 = 1.0e-6/lambda/lambda;  <span class="comment">/* 1e-6 for nm to um conversion, squared */</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>    t2 = (64.328+29498.1/(146.0-t1)+255.4/(41.0-t1))*uves_airp*</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>                (1.0+1.0e-6*(1.049-0.0157*uves_airt)*uves_airp)/</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>                (720.883*(1.0+0.003661*uves_airt));</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>    t3 = t2 - uves_airw*(0.0624 - 0.000680*t1)/(1+0.003661*uves_airt);</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>    airdx = 1.0+ t3*1.0e-6;</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>    <span class="comment">/*   airdx = 1.0; */</span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> <span class="comment">   uves_msg_debug("uves_airt=%f uves_airp=%f uves_airw=%f",</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> <span class="comment">                   uves_airt,uves_airp,uves_airw);</span></div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> <span class="comment">   uves_msg_debug("lambda=%f t1=%g t2=%g t3=%g airdx=%g",</span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> <span class="comment">                  lambda,t1,t2,t3,airdx);</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>    <span class="keywordflow">return</span>(airdx);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> }</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> </div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> uves_physmod_find_alpha_beta(<span class="keywordtype">double</span> lm, </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>                              <span class="keywordtype">int</span> m, </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>                              <span class="keywordtype">double</span> k, </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>                              <span class="keywordtype">double</span> theta, </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>                              <span class="keywordtype">double</span> *alpha, </div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>                              <span class="keywordtype">double</span> *beta)</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> {</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> </div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>  <span class="comment">/* Solves sin(alpha) + sin(beta) = m*k*lm, given beta - alpha = theta */</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>  <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"lm, m, k, theta : %f %d %f %f"</span>,lm,m,k,theta);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> </div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>  lm /= uves_air_index(lm);</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>  *alpha = 0.5* ( 2*asin( m*k*lm/2/cos(theta*uves_deg2rad/2) ) + </div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>                  theta*uves_deg2rad );</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>  *beta  = 0.5* ( 2*asin( m*k*lm/2/cos(theta*uves_deg2rad/2) ) - </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>                  theta*uves_deg2rad );</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>  *alpha /= uves_deg2rad;</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>  *beta  /= uves_deg2rad;</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> }</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> </div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> <span class="keywordtype">int</span>  </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> uves_config(<span class="keywordtype">char</span> uves_arm, </div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>             <span class="keywordtype">char</span> uves_ccd_id, </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>             <span class="keywordtype">int</span> disp, </div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>             <span class="keywordtype">double</span> waveCent, </div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>             <span class="keywordtype">float</span> binx, </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>             <span class="keywordtype">float</span> biny)</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> {</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> </div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>   <span class="keywordtype">int</span> cfg = 0;</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>   uves_ech_id   = 2;</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>   uves_x_disp_id = disp;</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>   uves_arm_id   = uves_arm;</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>   </div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> <span class="comment">/*  uves_msg("Configuring: </span></div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> <span class="comment">              Arm %c </span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="comment">              CCD %c  </span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> <span class="comment">              Xdisp %d </span></div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> <span class="comment">              Wave %f",</span></div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> <span class="comment">              uves_arm,</span></div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> <span class="comment">              uves_ccd_id,</span></div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> <span class="comment">              disp,</span></div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> <span class="comment">              waveCent); </span></div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Cfg: Arm %c CCD %c  Xdisp %d Wave %f"</span>,</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                   uves_arm,uves_ccd_id,disp,waveCent);</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> </div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>   <span class="keywordflow">if</span> (uves_arm == <span class="charliteral">'b'</span> && disp == 1)  cfg = 1;</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>   <span class="keywordflow">if</span> (uves_arm == <span class="charliteral">'b'</span> && disp == 2)  cfg = 2;</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> </div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>   <span class="keywordflow">if</span> (uves_arm == <span class="charliteral">'r'</span> && disp == 3) {</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>           uves_ech_id  = 1;</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>           <span class="keywordflow">if</span> (uves_ccd_id == <span class="charliteral">'e'</span>) cfg = 3;</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>           <span class="keywordflow">if</span> (uves_ccd_id == <span class="charliteral">'m'</span>) cfg = 5;</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>   }</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>   <span class="keywordflow">if</span> (uves_arm == <span class="charliteral">'r'</span> && disp == 4) {</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>           uves_ech_id  = 1;</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>           <span class="keywordflow">if</span> (uves_ccd_id == <span class="charliteral">'e'</span>) cfg = 4;</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>           <span class="keywordflow">if</span> (uves_ccd_id == <span class="charliteral">'m'</span>) cfg = 6;</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>   }</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> </div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>   <span class="keywordflow">if</span> (cfg == 0) {</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>     cpl_msg_error(__func__,<span class="stringliteral">"Wrong configuration!"</span>);</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>   }</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>   uves_cfg_indx = cfg;</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> </div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>   (void) uves_physmod_set_binning(binx, biny);</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>   (void) uves_physmod_find_alpha_beta(waveCent, 1, cdgroov[uves_x_disp_id-1], </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>                      cdbeam[uves_ech_id-1], &uves_alpha0_cd, &uves_beta0_cd); </div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> </div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"alpha, beta for Xdisp: %f %f\nin config %d and CCD-ID %c"</span>,</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                  uves_alpha0_cd, uves_beta0_cd,cfg, uves_ccd_id);</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>   </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>   <span class="keywordflow">return</span>(cfg);</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> </div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> }</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span> <span class="keywordtype">int</span>  </div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> uves_config_cpl_new(<span class="keywordtype">int</span> uves_arm,</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                     <span class="keywordtype">int</span> upper, </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>                     <span class="keywordtype">int</span> disp, </div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>                     <span class="keywordtype">double</span> waveCent, </div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>                     <span class="keywordtype">float</span> binx, </div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>                     <span class="keywordtype">float</span> biny)</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> {</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>   <span class="keywordtype">int</span> cfg = 0;</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>   uves_ech_id   = 2;</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>   uves_x_disp_id = disp;</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>   </div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span> <span class="comment">/*  uves_msg("Configuring: </span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> <span class="comment">              Arm %c </span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> <span class="comment">              CCD %c  </span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> <span class="comment">              Xdisp %d </span></div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> <span class="comment">              Wave %f",</span></div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> <span class="comment">              uves_arm,</span></div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> <span class="comment">              uves_ccd_id,</span></div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> <span class="comment">              disp,</span></div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> <span class="comment">              waveCent); </span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"New Cfg: Arm [b/r] %d CCD eev/mit %d  Xdisp %d Wave %f"</span>,</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>                   uves_arm,upper,disp,waveCent);</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> </div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>   <span class="keywordflow">if</span> (uves_arm == ARM_BLUE && disp == 1)  cfg = 1;</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>   <span class="keywordflow">if</span> (uves_arm == ARM_BLUE && disp == 2)  cfg = 2;</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> </div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>   <span class="keywordflow">if</span> (uves_arm == ARM_RED && disp == 3) {</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>           uves_ech_id  = 1;</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>           <span class="keywordflow">if</span> (upper == 0) cfg = 3;</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>           <span class="keywordflow">if</span> (upper == 1) cfg = 5;</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>   }</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>   <span class="keywordflow">if</span> (uves_arm == ARM_RED && disp == 4) {</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>           uves_ech_id  = 1;</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>           <span class="keywordflow">if</span> (upper == 0) cfg = 4;</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>           <span class="keywordflow">if</span> (upper == 1) cfg = 6;</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>   }</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> </div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>   <span class="keywordflow">if</span> (cfg == 0) {</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>     cpl_msg_error(__func__,<span class="stringliteral">"Wrong configuration!"</span>);</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>     <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>   }</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span> </div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>   uves_cfg_indx = cfg;</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> </div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>   (void) uves_physmod_set_binning(binx, biny);</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>   (void) uves_physmod_find_alpha_beta(waveCent, 1, cdgroov[uves_x_disp_id-1], </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                     cdbeam[uves_ech_id-1], &uves_alpha0_cd, &uves_beta0_cd); </div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>  </div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"alpha, beta for Xdisp: %f %f\nin config %d and CCD-ID %c"</span>,</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>        uves_alpha0_cd, uves_beta0_cd,cfg, upper == 0 ? <span class="charliteral">'e'</span> : <span class="charliteral">'m'</span>);</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>  </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>   <span class="keywordflow">return</span>(cfg);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> </div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> }</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> </div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span> <span class="keywordtype">int</span>  </div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> uves_config_cpl(<span class="keywordtype">int</span> blue, </div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                 <span class="keywordtype">int</span> upper, </div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>                 <span class="keywordtype">int</span> disp, </div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>                 <span class="keywordtype">double</span> waveCent, </div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>                 <span class="keywordtype">float</span> binx, </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>                 <span class="keywordtype">float</span> biny)</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span> {</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span> </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>   <span class="keywordtype">int</span> cfg = 0;</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>   uves_ech_id   = 2;</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>   uves_x_disp_id = disp;</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>   </div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> <span class="comment">/*  uves_msg("Configuring: </span></div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span> <span class="comment">              Arm %c </span></div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span> <span class="comment">              CCD %c  </span></div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> <span class="comment">              Xdisp %d </span></div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> <span class="comment">              Wave %f",</span></div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> <span class="comment">              uves_arm,</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> <span class="comment">              uves_ccd_id,</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> <span class="comment">              disp,</span></div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> <span class="comment">              waveCent); </span></div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Cfg cpl: Arm [b/r] %d CCD eev/mit %d  Xdisp %d Wave %f"</span>,</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>                   blue,upper,disp,waveCent);</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>   <span class="keywordflow">if</span> (blue == 1 && disp == 1)  cfg = 1;</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>   <span class="keywordflow">if</span> (blue == 1 && disp == 2)  cfg = 2;</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> </div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>   <span class="keywordflow">if</span> (blue == 0 && disp == 3) {</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>           uves_ech_id  = 1;</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>           <span class="keywordflow">if</span> (upper == 0) cfg = 3;</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>           <span class="keywordflow">if</span> (upper == 1) cfg = 5;</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>   }</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>   <span class="keywordflow">if</span> (blue == 0 && disp == 4) {</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>           uves_ech_id  = 1;</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>           <span class="keywordflow">if</span> (upper == 0) cfg = 4;</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>           <span class="keywordflow">if</span> (upper == 1) cfg = 6;</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>   }</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> </div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>   <span class="keywordflow">if</span> (cfg == 0) {</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Wrong configuration!"</span>);</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>     <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>   }</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> </div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>   uves_cfg_indx = cfg;</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> </div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>   (void) uves_physmod_set_binning(binx, biny);</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>   (void) uves_physmod_find_alpha_beta(waveCent, 1, cdgroov[uves_x_disp_id-1], </div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>                     cdbeam[uves_ech_id-1], &uves_alpha0_cd, &uves_beta0_cd); </div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span> </div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>   </div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"alpha, beta for Xdisp: %f %f\nin config %d and CCD-ID %c"</span>,</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>          uves_alpha0_cd, uves_beta0_cd,cfg, upper == 0 ? <span class="charliteral">'e'</span>: <span class="charliteral">'u'</span>);</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>  </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>   <span class="keywordflow">return</span>(cfg);</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span> </div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span> }</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span> </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span> <span class="keywordtype">double</span> cameraFocal(<span class="keywordtype">double</span> lm)</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> {</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>    <span class="keywordtype">double</span> nfk=0.;</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>    <span class="comment">/*uves_msg("lm = %f ", lm);*/</span></div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>    <span class="comment">/* uves_msg_debug("lm=%g uves_air_index(lm)=%g",lm,uves_air_index(lm)); */</span></div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span> </div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>    lm /= uves_air_index(lm);</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>    <span class="comment">/* uves_msg_debug("uves_arm=%d",uves_arm_ident); */</span></div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>    <span class="keywordflow">if</span> (uves_arm_id == <span class="charliteral">'b'</span> ) { </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>      <span class="comment">/* uves_msg_debug("uves_arm blue"); */</span></div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>     nfk=5.3961886e-7*lm*lm*lm-0.00079597882*lm*lm+0.41122805*lm+287.89644;</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>    }</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> </div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>    <span class="keywordflow">if</span> (uves_arm_id == <span class="charliteral">'r'</span> ) { </div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>      <span class="comment">/* uves_msg_debug("uves_arm red"); */</span></div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     nfk=6.0172051e-13*lm*lm*lm*lm*lm-2.5623231e-9*lm*lm*lm*lm+</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>         4.3585543e-6*lm*lm*lm -0.0037286381*lm*lm+</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>         1.6289971*lm + 210.06767;</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span> </div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>    }</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>    <span class="comment">/*  uves_msg_debug("lm=%g nfk=%g",lm,nfk); */</span></div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span> </div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>  <span class="comment">/*uves_msg("Nfk = %f, lm = %f",nfk/1000.,lm); */</span></div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> <span class="keywordflow">return</span>(nfk/1000.);</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span> </div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span> }</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span> </div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> </div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> <span class="keywordtype">int</span> uves_physmod_find_order(<span class="keywordtype">double</span> lm)</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span> {</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>   <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>   <span class="keywordtype">double</span> k, alpha, beta;</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span> </div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>   lm /= uves_air_index(lm);</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> </div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>   k     = uves_ech_groov[uves_ech_id-1];</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>   alpha = uves_ech_blaze[uves_ech_id-1];</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>   beta  = uves_ech_blaze[uves_ech_id-1];</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>   order = (int)((sin(alpha*uves_deg2rad) + sin(beta*uves_deg2rad))/k/lm + 0.5);</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span> <span class="comment">  uves_msg_debug("uves_ech_id=%d lm %g airindex %g k=%g alpha=%g beta=%g </span></div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span> <span class="comment">           order=%d",uves_ech_id,lm,uves_air_index(lm),k,alpha,beta,order);</span></div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>   <span class="keywordflow">return</span> order;</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span> }</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span> </div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span> <span class="keywordtype">double</span> uves_physmod_find_order_lambda(<span class="keywordtype">double</span> k, <span class="keywordtype">double</span> alpha, <span class="keywordtype">double</span> beta)</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> {</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>   <span class="keywordtype">double</span> ML;</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>   ML =  ( ( sin(alpha*uves_deg2rad) + sin(beta*uves_deg2rad) )/k);</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>   ML *= uves_air_index(ML);</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>   <span class="keywordflow">return</span>(ML);</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> }</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span> </div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span> </div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span> <span class="keywordtype">double</span> uves_physmod_find_lambda(<span class="keywordtype">double</span> k, <span class="keywordtype">double</span> alpha, <span class="keywordtype">double</span> beta)</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span> {</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>   <span class="keywordtype">double</span> L;</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>   L = (sin(alpha*uves_deg2rad) + sin(beta*uves_deg2rad) )/k ;</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>   L *= uves_air_index(L);</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>   <span class="keywordflow">return</span>(L);</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span> }</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span> </div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span> <span class="keywordtype">double</span> uves_physmod_find_beta(<span class="keywordtype">int</span> m, <span class="keywordtype">double</span> k, <span class="keywordtype">double</span> l, <span class="keywordtype">double</span> alpha)</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> {</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>    <span class="comment">/* uves_msg ("m, k, l, alpha: %d %f %f %f",m, k, l, alpha); */</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>  </div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>   l /= uves_air_index(l);</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>   </div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>   <span class="comment">/*  I check that the argument of asin is <=0 otherwhise return</span></div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> <span class="comment">      a dummy angle (~89 deg) which will produce (x,y) pos out</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> <span class="comment">      of detector so the line will be discarted</span></div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> <span class="comment">  uves_msg_debug("l=%g m*k*l=%g alpha=%g",l,m*k*l,alpha);</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>   <span class="keywordflow">if</span> ( (m*k*l - sin(alpha*uves_deg2rad)) <=1.0 )</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>   {</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>      <span class="keywordflow">return</span>( (asin(m*k*l - sin(alpha*uves_deg2rad)))/uves_deg2rad );</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>   }</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>   {</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>      <span class="keywordflow">return</span>( (asin(0.999))/uves_deg2rad );</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>   }</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span> }</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span> </div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> uves_physmod_lambda_order2beta(<span class="keywordtype">double</span> lambda, </div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>                                <span class="keywordtype">int</span> m, </div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>                                <span class="keywordtype">double</span>* puves_beta_ech, </div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>                                <span class="keywordtype">double</span>* puves_beta_cd, </div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>                                <span class="keywordtype">double</span>* pfc)</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> {</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>     <span class="comment">/* uves_msg ("Disp: %d Ech: %d",uves_x_disp_id,uves_ech_id-1); */</span></div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span> </div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span> <span class="comment">/*   lambda /= uves_air_index(lambda);  bog fixed ! */</span></div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>    </div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>    *pfc       = cameraFocal(lambda);</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span> </div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>     <span class="comment">/* uves_msg ("New Camera focal (m) : %f",fc); */</span></div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span> </div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>    *puves_beta_ech = uves_physmod_find_beta(m, uves_ech_groov[uves_ech_id-1], </div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>                      lambda, uves_ech_blaze[uves_ech_id-1]);</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span> </div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>    *puves_beta_cd  = uves_physmod_find_beta(1, cdgroov[uves_x_disp_id-1], </div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>                      lambda, uves_alpha0_cd); </div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>    <span class="comment">/* uves_msg_debug("fc=%g uves_beta_ech=%g uves_beta_cd=%g"</span></div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span> <span class="comment">      ,*pfc,*puves_beta_ech,*puves_beta_cd); */</span></div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> </div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span> }</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span> </div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span> uves_beta2xy(<span class="keywordtype">double</span> uves_beta_cd, </div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>              <span class="keywordtype">double</span> uves_beta_ech, </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>              <span class="keywordtype">double</span> fc, </div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>              <span class="keywordtype">double</span>* px, </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>              <span class="keywordtype">double</span>* py)</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> {</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>    <span class="keywordtype">double</span>  xd, yd, xr, yr, angle;   </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>     </div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>    xd       = fc*tan( (uves_beta_ech - uves_ech_blaze[uves_ech_id-1])*</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                        uves_deg2rad )/</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>                        uves_physmod_pix_size[0]/uves_bin[0];    </div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>    yd       = fc*tan( (uves_alpha0_cd - uves_beta_cd - </div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                        cdbeam[uves_ech_id-1])*uves_deg2rad )/</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                        uves_physmod_pix_size[1]/uves_bin[1];</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> </div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>    <span class="comment">//CHECK</span></div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"beta(CD), yorg: %f %f"</span>, uves_beta_cd, yd); </div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> </div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>    xd = xd*flipx;</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>    yd = yd*flipy;   </div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a> (<span class="stringliteral">"Positions after flip: %f %f"</span>,xd,yd); </div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>     </div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>    angle    = uves_ccd_rot[uves_ech_id-1]*uves_deg2rad;</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>    xr       =  xd*cos(angle) + yd*sin(angle);</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>    yr       = -xd*sin(angle) + yd*cos(angle);</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span> </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a> (<span class="stringliteral">"Rotated positions %f %f"</span>,xr,yr);</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> </div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>    *px = uves_physmod_offsetx[uves_cfg_indx-1] / uves_bin[0] + xr;</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>    *py = uves_physmod_offsety[uves_cfg_indx-1] / uves_bin[1] + yr;</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>     </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span> </div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span> }</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> </div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span> uves_physmod_photo_beta(<span class="keywordtype">double</span> lambda, </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                         <span class="keywordtype">double</span> uves_beta_ech, </div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>                         <span class="keywordtype">double</span> uves_beta_cd, </div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>                         <span class="keywordtype">double</span>* puves_physmod_rech, </div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>                         <span class="keywordtype">double</span>* puves_physmod_rcd, </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>                         <span class="keywordtype">double</span>* pblz)</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span> {</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>    <span class="keywordtype">double</span> gam;</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span> <span class="comment">   uves_msg("uves_ech_id = %d, uves_ech_blaze = %f",</span></div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> <span class="comment">             uves_ech_id,uves_ech_blaze[uves_ech_id-1]); </span></div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span> <span class="comment">   uves_msg("uves_deg2rad=%f uves_beta_ech=%f uves_alpha0_cd=%f",</span></div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span> <span class="comment">             uves_deg2rad,uves_beta_ech,uves_alpha0_cd); </span></div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>    *puves_physmod_rech = cos(uves_ech_blaze[uves_ech_id-1]*uves_deg2rad)/</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                          cos(uves_beta_ech*uves_deg2rad);</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>    </div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>    *puves_physmod_rcd = cos(uves_alpha0_cd*uves_deg2rad)/</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>                         cos(uves_beta_cd*uves_deg2rad);</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span> <span class="comment">   uves_msg("puves_physmod_rech=%f *puves_physmod_rcd=%f",</span></div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span> <span class="comment">             *puves_physmod_rech,*puves_physmod_rcd);</span></div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>    <span class="comment">/* Computes the blaze function */</span></div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>    gam = M_PI / uves_ech_groov[uves_ech_id-1] * </div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>                 cos(delta[uves_ech_id-1]*uves_deg2rad) * </div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>          (sin((uves_beta_ech-delta[uves_ech_id-1])*uves_deg2rad)-</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>           sin((uves_ech_blaze[uves_ech_id-1]-delta[uves_ech_id-1])*</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>               uves_deg2rad))</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>      / lambda/ uves_air_index(lambda);</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>    *pblz = DSQR(sin(gam)/gam);</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> <span class="comment">   uves_msg("gamma = %f, Blaze function = %g ",gam,blz); </span></div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="comment">   */</span>  </div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> }</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> </div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> <span class="keywordtype">void</span> uves_physmod_pixscl(</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>                          <span class="keywordtype">double</span> wave, </div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>                          <span class="keywordtype">int</span> order, </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>                          <span class="keywordtype">double</span> uves_physmod_rech, </div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>                          <span class="keywordtype">double</span> uves_physmod_rcd, </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>                          <span class="keywordtype">float</span> binx, </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>                          <span class="keywordtype">float</span> biny, </div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>                          <span class="keywordtype">double</span> fc, </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>                          <span class="keywordtype">double</span> slitwidth, </div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>                          <span class="keywordtype">double</span> slitlength,</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>                          <span class="keywordtype">double</span>* pbinsize, </div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>                          <span class="keywordtype">double</span>* ppixscale, </div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>                          <span class="keywordtype">double</span>* ppixscalCD, </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>                      <span class="keywordtype">double</span>* plinewidpx, </div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>                          <span class="keywordtype">double</span>* plinelenpx, </div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>                          <span class="keywordtype">double</span>* plinewidth, </div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>                          <span class="keywordtype">double</span>* presol)</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span> {</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>    <span class="keywordtype">double</span> binsize, pixscale, pixscalCD, linewidpx, linelenpx, linewidth, resol;</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>    <span class="keyword">static</span> <span class="keywordtype">double</span> scale;</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> </div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>    <span class="keywordflow">if</span> (!(scale)) scale = (206265.0*15.0*0.015*200*1e-3*binx)/120000;</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> </div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> <span class="comment">   uves_msg("scale=%f </span></div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> <span class="comment">             wave=%f </span></div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> <span class="comment">             order=%d </span></div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> <span class="comment">             fc=%f </span></div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> <span class="comment">             uves_physmod_rech=%f </span></div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> <span class="comment">             binx=%f </span></div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> <span class="comment">             biny=%f </span></div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> <span class="comment">             uves_physmod_rcd=%f",</span></div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span> <span class="comment">         scale,    </span></div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> <span class="comment">             wave,   </span></div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span> <span class="comment">             order,   </span></div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> <span class="comment">             fc,   </span></div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> <span class="comment">             uves_physmod_rech,   </span></div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> <span class="comment">             binx,   </span></div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> <span class="comment">             biny,   </span></div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> <span class="comment">             uves_physmod_rcd);</span></div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> <span class="comment">/* Computes the width (in pixel and A) and resolution lines */</span></div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>    binsize = uves_physmod_wave_bin(wave, order) * 1e4;  <span class="comment">/* in mA */</span></div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>    pixscale = scale/(fc*uves_physmod_rech); <span class="comment">/* in arcsec/pixel */</span></div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>    pixscalCD = pixscale *(biny/binx) *uves_physmod_rech/uves_physmod_rcd; <span class="comment">/* in arcsec/pixel */</span> </div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>    linewidpx = slitwidth / pixscale;  <span class="comment">/* pixel */</span></div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>    linelenpx = slitlength /pixscalCD;  <span class="comment">/* pixel */</span>    </div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>    linewidth = binsize * linewidpx * 1e-3; <span class="comment">/* in A (* pixel) */</span></div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>    resol = wave * 10.0 / linewidth;  <span class="comment">/* without unit */</span></div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>                               <span class="comment">/* (10.0: conversion factor from nm to A)*/</span></div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> </div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> <span class="comment">   uves_msg("slitwidth=%f slitlength=%f binsize=%f pixscale=%f pixscaleCD=%f",</span></div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> <span class="comment">      slitwidth,   slitlength,   binsize,   pixscale,   pixscalCD);</span></div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> <span class="comment"></span></div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> <span class="comment">   uves_msg("linewidpx=%f linewidth=%f resol=%f",</span></div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> <span class="comment">      linewidpx,    linewidth,   resol);</span></div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>    *pbinsize = binsize;</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>    *ppixscale = pixscale;</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>    *ppixscalCD = pixscalCD;</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>    *plinewidpx = linewidpx;</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>    *plinelenpx = linelenpx;</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>    *plinewidth = linewidth;</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>    *presol = resol;</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> </div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> }</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> </div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span> uves_physmod_xy_model(<span class="keywordtype">double</span> lambda, <span class="keywordtype">int</span> m, <span class="keywordtype">double</span>* px, <span class="keywordtype">double</span>* py)</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> {</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>    <span class="keywordtype">double</span> fc, uves_beta_ech, uves_beta_cd;</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>    <span class="comment">//CHECK</span></div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>    uves_physmod_lambda_order2beta(lambda, m, &uves_beta_ech, &uves_beta_cd, &fc);</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"lambda=%f m=%d uves_beta_ech=%f,uves_beta_cd=%f,fc=%f"</span>,</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>             lambda,m,uves_beta_ech,uves_beta_cd,fc);</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> </div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>    uves_beta2xy(uves_beta_cd, uves_beta_ech, fc, px, py);</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"px=%f py=%f"</span>,*px,*py);</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> </div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> <span class="comment">/* exemple : </span></div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> <span class="comment">   uves_physmod_photo_beta(lambda, uves_beta_ech, uves_beta_cd, </span></div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> <span class="comment">                           puves_physmod_rech, puves_physmod_rcd, pblz); </span></div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> </div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> }</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> </div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> uves_physmod_xy2beta(<span class="keywordtype">double</span>* puves_beta_ech, </div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>                      <span class="keywordtype">double</span>* puves_beta_cd, </div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>                      <span class="keywordtype">double</span> fc, </div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>                      <span class="keywordtype">double</span> x, </div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>                      <span class="keywordtype">double</span> y)</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> {</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>    <span class="keywordtype">double</span> xr, yr, xd, yd, angle;</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span> </div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>    angle    = uves_ccd_rot[uves_ech_id-1]*uves_deg2rad;</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span> </div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>    xr = (x - uves_physmod_offsetx[uves_cfg_indx-1]/uves_bin[0]);</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>    yr = (y - uves_physmod_offsety[uves_cfg_indx-1]/uves_bin[1]);</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> </div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>    xd = xr*cos(angle) - yr*sin(angle);</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>    yd = xr*sin(angle) + yr*cos(angle);</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> </div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>    xd  /= flipx;</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>    yd  /= flipy;</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span> </div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>    *puves_beta_ech = atan(xd*uves_physmod_pix_size[0]*uves_bin[0]/fc)/</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>                          uves_deg2rad + uves_ech_blaze[uves_ech_id-1];</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>    *puves_beta_cd  =  uves_alpha0_cd - cdbeam[uves_ech_id-1] - </div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>                       atan(yd*uves_physmod_pix_size[1]*uves_bin[1]/fc)/</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>                       uves_deg2rad; </div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> </div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> }</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> </div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span> beta2lamb(<span class="keywordtype">double</span> uves_beta_ech, </div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>           <span class="keywordtype">double</span> uves_beta_cd, </div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>           <span class="keywordtype">double</span>* plambda, </div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>           <span class="keywordtype">int</span> m)</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> {</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>   uves_beta_cd=uves_beta_cd;</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>    *plambda = uves_physmod_find_lambda(m*uves_ech_groov[uves_ech_id-1], </div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>               uves_ech_blaze[uves_ech_id-1], uves_beta_ech);</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> </div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span> }</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span> </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span> uves_physmod_lambda_order_focus_model(<span class="keywordtype">double</span>* plambda, </div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>                                       <span class="keywordtype">double</span>* pdm, </div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>                                       <span class="keywordtype">double</span> fc, </div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>                                       <span class="keywordtype">double</span> x, </div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>                                       <span class="keywordtype">double</span> y)</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> {</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> </div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>    <span class="keywordtype">double</span> uves_beta_ech, uves_beta_cd;</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>    </div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>    uves_physmod_xy2beta(&uves_beta_ech, &uves_beta_cd, fc, x, y);</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>    </div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>    *plambda = uves_physmod_find_order_lambda(cdgroov[uves_x_disp_id-1], </div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>                uves_alpha0_cd, uves_beta_cd);</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>    *pdm      = uves_physmod_find_order_lambda(uves_ech_groov[uves_ech_id-1], </div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>                 uves_ech_blaze[uves_ech_id-1], uves_beta_ech)/(*plambda);</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> <span class="comment">   uves_msg("  m= %f, lambda= %f, position (x,y)= (%f , %f)",</span></div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> <span class="comment">            *pdm,*plambda, x,y);</span></div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> }</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> </div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> <span class="comment">/************************************************************************* </span></div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span> <span class="comment"> *  Finds the couple lambda,m corresponding to a given position (x,y),</span></div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span> <span class="comment"> *  assuming the focal of the camera for this wavelength is fc. </span></div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> <span class="comment"> *************************************************************************</span></div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> <span class="comment">/* Not used:</span></div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span> <span class="comment">void </span></div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span> <span class="comment">uves_physmod_lambda_model(double* plambda, </span></div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span> <span class="comment">                          int m, </span></div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> <span class="comment">                          double fc, </span></div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span> <span class="comment">                          double x, </span></div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> <span class="comment">                          double y)</span></div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span> <span class="comment">{</span></div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span> <span class="comment"></span></div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span> <span class="comment">   double uves_beta_ech, uves_beta_cd;</span></div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> <span class="comment"></span></div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span> <span class="comment">   uves_physmod_xy2beta(&uves_beta_ech, &uves_beta_cd, fc, x, y);</span></div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span> <span class="comment"></span></div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> <span class="comment"></span></div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span> <span class="comment">   beta2lamb(uves_beta_ech, uves_beta_cd, plambda, m);</span></div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span> <span class="comment"></span></div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span> <span class="comment">}</span></div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span> </div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> uves_physmod_lambda_order_beta(<span class="keywordtype">double</span>* plambda, </div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>                                <span class="keywordtype">int</span>* pm, </div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>                                <span class="keywordtype">double</span> x, </div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>                                <span class="keywordtype">double</span> y, </div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>                                <span class="keywordtype">double</span>* puves_beta_ech, </div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>                                <span class="keywordtype">double</span>* puves_beta_cd)</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span> {</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span> </div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span> <span class="keywordtype">double</span> fcguess=0., wave=0., mdbl=0., xe=0., ye=0., xd=0., yd=0.;</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span> <span class="keywordtype">int</span>  i=0;</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span> </div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span> <span class="keywordflow">if</span> (uves_arm_id == <span class="charliteral">'b'</span>) fcguess = 0.360;<span class="comment">/*0.35722;*/</span></div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span> <span class="keywordflow">if</span> (uves_arm_id == <span class="charliteral">'r'</span>) fcguess = 0.500;</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> </div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> uves_physmod_lambda_order_focus_model(&wave,&mdbl,fcguess,x,y);</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span> <span class="comment">if (x == 1500.) {</span></div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> <span class="comment">  uves_msg("m= %f, lambda= %f, position (x,y)= (%f , %f)",mdbl,wave, x,y);</span></div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> <span class="comment">    uves_msg("focal guess= %f",fcguess);</span></div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> <span class="comment">}</span></div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>    </div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>    fcguess = cameraFocal(wave);</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> <span class="comment">     if (x == 1500.) { </span></div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> <span class="comment">       uves_msg("i= %d, focal = %f, m= %f, lambda= %f", i,fcguess,mdbl,wave);</span></div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> <span class="comment">     }</span></div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>    <span class="keywordflow">if</span> (*pm <= 0) *pm = (int)(mdbl+0.5);</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span> <span class="comment">/*   uves_physmod_lambda_model(&wave,*pm,fcguess,x,y); */</span></div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>    uves_physmod_xy2beta(puves_beta_ech, puves_beta_cd, fcguess, x, y);</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>    beta2lamb(*puves_beta_ech, *puves_beta_cd, &wave, *pm);</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span> </div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span> <span class="comment">     if (x == 1500.) { </span></div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> <span class="comment">       uves_msg("i= %d, focal = %f, m= %d, lambda= %f", i,fcguess,*pm,wave);</span></div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> <span class="comment">     }</span></div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>    </div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>    uves_physmod_xy_model(wave,(<span class="keywordtype">int</span>)(mdbl+0.5), &xe, &ye);</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span> <span class="comment">      if (x == 1500.) { </span></div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> <span class="comment">        uves_msg("m= %f, lambda= %f, position (xe,ye)= (%f , %f)",</span></div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span> <span class="comment">                  mdbl,wave, xe,ye);</span></div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> <span class="comment">        uves_msg("focal = %f",fcguess);</span></div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> <span class="comment">      }</span></div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>    i++;</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>    </div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>    xd = fabs(x-xe);</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>    yd = fabs(y-ye);</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>    </div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>    } <span class="keywordflow">while</span> (!((xd < 1.) && (yd < 1.)) && (i <= 4));</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span> </div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span> *plambda = wave;</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span> </div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span> <span class="comment">/*uves_msg("i= %d", i);*/</span></div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span> <span class="comment">/* uves_physmod_photo_beta(wave, *puves_beta_ech, *puves_beta_cd, </span></div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span> <span class="comment">                 puves_physmod_rech, puves_physmod_rcd, pblz); </span></div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span> <span class="comment">uves_msg("uves_physmod_lambda_order_beta(%f, %d, %f, %f, %f, %f)",</span></div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span> <span class="comment">          wave, *pm, x, y, *puves_beta_ech, *puves_beta_cd);</span></div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span> </div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span> }</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span> </div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span> uves_physmod_lambda_order_model(<span class="keywordtype">double</span>* plambda, <span class="keywordtype">int</span>* pm, <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y)</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span> {</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span> </div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>   <span class="keywordtype">double</span> uves_beta_ech, uves_beta_cd;</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>   </div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>   uves_physmod_lambda_order_beta(plambda, pm, x, y, </div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>                                  &uves_beta_ech, &uves_beta_cd);</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>   </div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span> <span class="comment">/* exemple : </span></div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span> <span class="comment">  uves_physmod_photo_beta(*plambda, &uves_beta_ech, &uves_beta_cd, </span></div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span> <span class="comment">                   puves_physmod_rech, puves_physmod_rcd, pblz); </span></div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span> <span class="comment"></span></div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> <span class="comment">uves_msg("uves_physmod_lambda_order_beta(%f, %d, %f, %f, %f, %f)",</span></div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span> <span class="comment">         *plambda, *pm, x, y, uves_beta_ech, uves_beta_cd);</span></div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span> }</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span> </div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span> uves_physmod_find_FSR(<span class="keywordtype">int</span> m, <span class="keywordtype">double</span>* lambdaC, <span class="keywordtype">double</span>* fsrStart, <span class="keywordtype">double</span>* fsrEnd)</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span> {</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span> </div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>   <span class="keywordtype">double</span> tmp_delta;</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span> </div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>   *lambdaC = 2*sin(uves_ech_blaze[uves_ech_id-1]*uves_deg2rad)/</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>                    m/uves_ech_groov[uves_ech_id-1];</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span> </div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>   tmp_delta = *lambdaC/m;</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span> </div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>   *fsrStart = *lambdaC - tmp_delta/2.;</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>   *fsrEnd   = *lambdaC + tmp_delta/2.;</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span> </div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> }</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span> </div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span> <span class="keywordtype">double</span> uves_physmod_wave_bin(<span class="keywordtype">double</span> l, <span class="keywordtype">int</span> m)</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span> {</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span> </div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>   <span class="keywordtype">double</span> dl, x0,y_0,x1,y_1;</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span> </div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>   dl = 20e-4; <span class="comment">/* Wavelength increment in nm (nearly one pixel)*/</span></div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span> </div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>   uves_physmod_xy_model( l,    m,&x0,&y_0);</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>   uves_physmod_xy_model((l+dl),m,&x1,&y_1);</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span> </div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>   <span class="keywordflow">return</span>( dl/(x1-x0) );</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span> }</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span> </div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span> <span class="keywordtype">void</span> uves_ccd_size(<span class="keywordtype">int</span>* nx, <span class="keywordtype">int</span>* ny)</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> {</div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span> <span class="comment">  uves_msg("imsize[uves_ech_id-1]=%d </span></div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span> <span class="comment">            uves_physmod_row_size[uves_ech_id-1]=%d </span></div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span> <span class="comment">            uves_bin[0]=%f uves_bin[1]=%f",</span></div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span> <span class="comment">        imsize[uves_ech_id-1],   </span></div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> <span class="comment">            uves_physmod_row_size[uves_ech_id-1],   </span></div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> <span class="comment">            uves_bin[0],   </span></div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span> <span class="comment">            uves_bin[1]);</span></div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>   *nx = imsize[uves_ech_id-1] / uves_bin[0];</div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>   *ny = uves_physmod_row_size[uves_ech_id-1] / uves_bin[1];</div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> }</div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> </div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span> <span class="keywordtype">void</span> uves_physmod_xy_regres(<span class="keywordtype">double</span> x,<span class="keywordtype">double</span> y,<span class="keywordtype">double</span>* px,<span class="keywordtype">double</span>* py)</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> {</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>   <span class="keywordtype">double</span> xdiff=0;</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>   <span class="keywordtype">double</span> ydiff=0;</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>   <span class="keywordtype">int</span>    xnpix=0;</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>   <span class="keywordtype">int</span>    ynpix=0;</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>   </div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>   <span class="keywordflow">goto</span> simplified;</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>   <span class="comment">/*  We comment the following to remove a compilation warning</span></div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span> <span class="comment">      Anyway the code would not be executed due to goto statement      </span></div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span> <span class="comment">  xdiff = xcoef[uves_cfg_indx-1][8]*DSQR(x*y) + </span></div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> <span class="comment">          xcoef[uves_cfg_indx-1][7]*x*DSQR(y) + </span></div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> <span class="comment">          xcoef[uves_cfg_indx-1][6]*DSQR(y)   + </span></div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span> <span class="comment">          xcoef[uves_cfg_indx-1][5]*DSQR(x)*y + </span></div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> <span class="comment">          xcoef[uves_cfg_indx-1][4]*x*y       + </span></div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="comment">          xcoef[uves_cfg_indx-1][3]*y         + </span></div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="comment">          xcoef[uves_cfg_indx-1][2]*DSQR(x)   + </span></div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> <span class="comment">          xcoef[uves_cfg_indx-1][1]*x         + </span></div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> <span class="comment">          xcoef[uves_cfg_indx-1][0];</span></div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span> <span class="comment"></span></div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> <span class="comment">  ydiff = ycoef[uves_cfg_indx-1][8]*DSQR(x*y) + </span></div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span> <span class="comment">          ycoef[uves_cfg_indx-1][7]*x*DSQR(y) + </span></div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span> <span class="comment">          ycoef[uves_cfg_indx-1][6]*DSQR(y)   + </span></div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span> <span class="comment">          ycoef[uves_cfg_indx-1][5]*DSQR(x)*y + </span></div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span> <span class="comment">          ycoef[uves_cfg_indx-1][4]*x*y       + </span></div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span> <span class="comment">          ycoef[uves_cfg_indx-1][3]*y         + </span></div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span> <span class="comment">          ycoef[uves_cfg_indx-1][2]*DSQR(x)   + </span></div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span> <span class="comment">          ycoef[uves_cfg_indx-1][1]*x         + </span></div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span> <span class="comment">          ycoef[uves_cfg_indx-1][0];</span></div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>   </div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>   <span class="comment">/* New, simplified correction */</span> </div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>   simplified: {</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>   uves_ccd_size(&xnpix, &ynpix);</div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>   <span class="comment">/* uves_msg("xnpix=%d ynpix=%d",xnpix,ynpix); */</span></div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>   xdiff = (-7.)*(x-(double)xnpix/2.)/((double)xnpix/2.);</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>   <span class="comment">/* ydiff = (5.)*pow((x-(double)xnpix/2.)/((double)xnpix/2.),2.); */</span></div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>   ydiff = (5.)*DSQR((x-(<span class="keywordtype">double</span>)xnpix/2.)/((<span class="keywordtype">double</span>)xnpix/2.));</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>   <span class="comment">/* uves_msg("xdiff=%f ydiff=%f",xdiff,ydiff); */</span></div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>   *px = x + xdiff;</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>   *py = y + ydiff;</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>   }</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span> }</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__physmod__utils_8h_source.html b/html/uves__physmod__utils_8h_source.html
deleted file mode 100644
index 9d48b88..0000000
--- a/html/uves__physmod__utils_8h_source.html
+++ /dev/null
@@ -1,229 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_physmod_utils.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_physmod_utils.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment">/* ===========================================================================</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment"> * $Id: uves_physmod_utils.h,v 1.6 2010-09-24 09:32:07 amodigli Exp $</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Revision: 1.6 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * Revision 1.4  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Revision 1.3  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Revision 1.2  2006/04/10 12:38:43  jmlarsen</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> * Minor layout change</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Revision 1.7  2005/12/05 16:11:47  amodigli</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> * Fixed some warning</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Revision 1.6  2005/12/02 12:56:09  amodigli</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> * Fixed compilation problems on mac</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Revision 1.5  2005/11/28 15:36:34  amodigli</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> * Renamed global variables and global function with prefix uves_physmod</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Revision 1.4  2005/11/25 08:05:15  amodigli</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *  Added plotting facility in physmod. Commented out some strange things in utils.</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Revision 1.3  2005/08/29 10:05:08  jmlarsen</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> * Conversion to/from electrons when calculating photonic noise</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Revision 1.2  2005/08/29 08:27:58  amodigli</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> * Put into repository updates on physical model</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Revision 1.1  2005/06/17 11:34:34  amodigli</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> * First release</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * ===========================================================================</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#ifndef UVES_PHYSMOD_UTILS_H</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PHYSMOD_UTILS_H</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#define ARM_UNDEF 0</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor"></span><span class="preprocessor">#define ARM_BLUE  1</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor"></span><span class="preprocessor">#define ARM_RED   2</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor"></span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">  double fc;</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">  double l;</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">  int m;</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">  char uves_arm;</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"></span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"></span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">  double uves_beta_ech;</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment">  double uves_beta_cd ;</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">  char uves_ccd_id;</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">  double uves_physmod_rcd;</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">  double uves_physmod_rech ;</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment">  double uves_physmod_x_off;</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">  double uves_physmod_y_off;</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">  double x;</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment">  double y;</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"></span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">  double lm, k, theta, *palpha, *pbeta;</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment">  int disp;</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment">  float binx, biny;</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment">  double waveCent;</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">  double ccdrotred, ccdrotblue;</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">  double echred, echblue, xred, xblue;</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment">  double p, t, w;</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment">  double lambda;</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">  double alpha, beta;</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment">  double *puves_beta_ech, *puves_beta_cd, *pfc;</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment">  double *puves_physmod_rech, *puves_physmod_rcd, *pblz;</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment">  double wave, order, blz;</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment">  double *pbinsize,*ppixscale,*ppixscalCD,*plinewidpx,*plinelenpx,*plinewidth,*presol;</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">  double *px, *py;</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment">  double *plambda;</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment">  double *pdm;</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">  int *pm;</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">  double *lambdaC, *fsrStart, *fsrEnd;</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment">  int *nx, *ny;</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="keywordtype">void</span> uves_physmod_set_incidence(<span class="keywordtype">double</span> echred, <span class="keywordtype">double</span> echblue, <span class="keywordtype">double</span> xred, <span class="keywordtype">double</span> xblue);</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="keywordtype">void</span> uves_set_ccd_rot(<span class="keywordtype">double</span>* uves_ccd_rot, <span class="keywordtype">double</span> ccdrotred, <span class="keywordtype">double</span> ccdrotblue);</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="keywordtype">void</span> uves_physmod_set_offset(<span class="keywordtype">double</span> offset_x, <span class="keywordtype">double</span> offset_y,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                  <span class="keywordtype">double</span> uves_physmod_x_off, <span class="keywordtype">double</span> uves_physmod_y_off);</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="keywordtype">void</span> uves_air_config(<span class="keywordtype">double</span> p, <span class="keywordtype">double</span> t, <span class="keywordtype">double</span> w);</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="keywordtype">double</span> uves_air_index(<span class="keywordtype">double</span> lambda);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="keywordtype">int</span>  uves_config(<span class="keywordtype">char</span> uves_arm, <span class="keywordtype">char</span> uves_ccd_id, <span class="keywordtype">int</span> disp, <span class="keywordtype">double</span> waveCent, </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                 <span class="keywordtype">float</span> binx, <span class="keywordtype">float</span> biny);</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="keywordtype">int</span>  uves_config_cpl(<span class="keywordtype">int</span> blue, <span class="keywordtype">int</span> upper, <span class="keywordtype">int</span> disp, <span class="keywordtype">double</span> waveCent, </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>              <span class="keywordtype">float</span> binx, <span class="keywordtype">float</span> biny);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="keywordtype">int</span>  uves_config_cpl_new(<span class="keywordtype">int</span> blue, <span class="keywordtype">int</span> upper, <span class="keywordtype">int</span> disp, <span class="keywordtype">double</span> waveCent, </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>              <span class="keywordtype">float</span> binx, <span class="keywordtype">float</span> biny);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="keywordtype">int</span> uves_physmod_find_order(<span class="keywordtype">double</span> lm);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="keywordtype">double</span> uves_physmod_find_beta(<span class="keywordtype">int</span> m, <span class="keywordtype">double</span> k, <span class="keywordtype">double</span> l, <span class="keywordtype">double</span> alpha);</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> </div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="keywordtype">void</span> uves_physmod_lambda_order2beta(<span class="keywordtype">double</span> lambda, <span class="keywordtype">int</span> m, </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>                     <span class="keywordtype">double</span>* puves_beta_ech, <span class="keywordtype">double</span>* puves_beta_cd, </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>              <span class="keywordtype">double</span>* pfc);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="keywordtype">void</span> uves_beta2xy(<span class="keywordtype">double</span> uves_beta_cd, <span class="keywordtype">double</span> uves_beta_ech, <span class="keywordtype">double</span> fc, <span class="keywordtype">double</span>* px, <span class="keywordtype">double</span>* py);</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="keywordtype">void</span> uves_physmod_photo_beta(<span class="keywordtype">double</span> lambda, <span class="keywordtype">double</span> uves_beta_ech, </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>                  <span class="keywordtype">double</span> uves_beta_cd, <span class="keywordtype">double</span>* puves_physmod_rech, </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>                <span class="keywordtype">double</span>* puves_physmod_rcd, <span class="keywordtype">double</span>* pblz);</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="keywordtype">void</span> uves_physmod_pixscl(<span class="keywordtype">double</span> wave, <span class="keywordtype">int</span> order, <span class="keywordtype">double</span> uves_physmod_rech, </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>              <span class="keywordtype">double</span> uves_physmod_rcd, <span class="keywordtype">float</span> binx, </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>             <span class="keywordtype">float</span> biny, <span class="keywordtype">double</span> fc, <span class="keywordtype">double</span> slitwidth, <span class="keywordtype">double</span> slitlength,</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>             <span class="keywordtype">double</span>* pbinsize, <span class="keywordtype">double</span>* ppixscale, <span class="keywordtype">double</span>* ppixscalCD, </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>         <span class="keywordtype">double</span>* plinewidpx, <span class="keywordtype">double</span>* plinelenpx, <span class="keywordtype">double</span>* plinewidth, </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>             <span class="keywordtype">double</span>* presol);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="keywordtype">void</span> uves_physmod_xy_model(<span class="keywordtype">double</span> lambda, <span class="keywordtype">int</span> m, <span class="keywordtype">double</span>* px, <span class="keywordtype">double</span>* py);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="keywordtype">void</span> uves_physmod_lambda_order_model(<span class="keywordtype">double</span>* plambda, <span class="keywordtype">int</span>* pm, <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="keywordtype">void</span> uves_physmod_find_FSR(<span class="keywordtype">int</span> m, <span class="keywordtype">double</span>* lambdaC, <span class="keywordtype">double</span>* fsrStart, <span class="keywordtype">double</span>* fsrEnd);</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="keywordtype">void</span> uves_ccd_size(<span class="keywordtype">int</span>* nx, <span class="keywordtype">int</span>* ny);</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="keywordtype">void</span> uves_physmod_xy_regres(<span class="keywordtype">double</span> x,<span class="keywordtype">double</span> y,<span class="keywordtype">double</span>* px,<span class="keywordtype">double</span>* py);</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment">  Global Variables and Constants</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="keyword">extern</span> <span class="keywordtype">float</span>    uves_bin[2];</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="keyword">extern</span> <span class="keywordtype">double</span>   uves_ccd_rot[2];</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="keyword">extern</span> <span class="keywordtype">int</span>      uves_cfg_indx;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="keyword">extern</span> <span class="keywordtype">int</span>      uves_x_disp_id;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="keyword">extern</span> <span class="keywordtype">double</span>   uves_alpha0_cd, uves_beta0_cd;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="keyword">extern</span> <span class="keywordtype">char</span>     uves_arm_id;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>  </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="keyword">extern</span> <span class="keywordtype">double</span>   uves_physmod_offsetx[6];</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="keyword">extern</span> <span class="keywordtype">double</span>   uves_physmod_offsety[6];</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__plot_8c_source.html b/html/uves__plot_8c_source.html
deleted file mode 100644
index b040d9e..0000000
--- a/html/uves__plot_8c_source.html
+++ /dev/null
@@ -1,692 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_plot.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_plot.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-03-02 16:49:48 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.38 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.37  2011/12/08 14:02:30  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Fix warnings with CPL6</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.36  2011/10/26 10:55:52  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * removed irplib_plot dependency</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.35  2010/09/24 09:32:07  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.33  2009/12/15 14:07:58  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * changed IRPLIB_PLOTTER to CPL_PLOTTER</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.32  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.31  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.30  2007/05/23 13:03:19  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added missing include directive</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.29  2007/05/22 11:31:35  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Removed image plotting functionality</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.28  2007/05/22 08:44:37  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Don't rely on popen/pclose</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.27  2007/04/24 09:41:35  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Removed deprecated irplib_string_concatenate_all</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.26  2007/01/15 08:48:41  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Shortened lines</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.25  2006/11/15 15:02:15  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.23  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is </span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.22  2006/11/13 14:23:55  jmlarsen</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * Removed workarounds for CPL const bugs</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Revision 1.21  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Revision 1.20  2006/09/20 12:53:57  jmlarsen</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Replaced stringcat functions with uves_sprintf()</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Revision 1.19  2006/08/23 15:09:23  jmlarsen</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * Added uves_plot_bivectors</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Revision 1.18  2006/08/18 07:07:43  jmlarsen</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> * Switched order of cpl_calloc arguments</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Revision 1.17  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Revision 1.16  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Revision 1.15  2006/05/12 15:07:35  jmlarsen</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * Implemented 3 sigma clipping to have better ranges for plots</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Revision 1.14  2006/04/24 09:22:53  jmlarsen</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * Renamed shadowing variable</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.13  2006/02/21 14:26:54  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Revision 1.12  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment">/* If we can link to setenv but it is not declared, then declare it manually */</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor">#if defined HAVE_SETENV && HAVE_SETENV</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="preprocessor"></span><span class="preprocessor">#if defined HAVE_DECL_SETENV && !HAVE_DECL_SETENV</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="preprocessor"></span><span class="keywordtype">int</span> setenv(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> <span class="keywordtype">char</span> *value, <span class="keywordtype">int</span> overwrite);</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="preprocessor">#include <uves_plot.h></span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="preprocessor">#include <stdarg.h></span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="preprocessor">#include <stdlib.h></span>   <span class="comment">/* setenv */</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="keyword">static</span> <span class="keywordtype">char</span> *title_string(<span class="keyword">const</span> <span class="keywordtype">char</span> *title, <span class="keywordtype">int</span> npoints);</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment">                            Defines</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="preprocessor">#define MAXTITLELENGTH 10000</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="preprocessor"></span><span class="preprocessor">#define RECOVER_FROM_ERROR(EXTERNAL_COMMAND) do {  \</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="preprocessor">    if (cpl_error_get_code() != CPL_ERROR_NONE)    \</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="preprocessor">    {                                              \</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="preprocessor">       uves_msg_error("Could not send plot to "    \</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor">              "command '%s': "             \</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="preprocessor">               "%s in '%s'",               \</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="preprocessor">                       EXTERNAL_COMMAND,           \</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="preprocessor">               cpl_error_get_message(),    \</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="preprocessor">               cpl_error_get_where());     \</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="preprocessor">       cpl_error_reset();                          \</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor">       goto cleanup;                               \</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor">    } } while (false)</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="keyword">static</span> <span class="keywordtype">char</span> title[MAXTITLELENGTH];</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> plotting_enabled = <span class="keyword">false</span>;           <span class="comment">/* If caller forgets to call </span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment">                           the initializer, plotting</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">                           will be disabled */</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *plotter = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment">                        Implementation</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> cpl_error_code</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> uves_plot_initialize(<span class="keyword">const</span> <span class="keywordtype">char</span> *plotter_command)</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> {</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     <span class="keywordtype">char</span> *test_cmd = NULL;</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <span class="keywordtype">char</span> *first_word = NULL;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     plotting_enabled = (strcmp(plotter_command, <span class="stringliteral">"no"</span>) != 0);</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     <span class="comment">/* Note that 'setenv' is *not* ANSI C. If it does not exist, tell user to</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment">     *  define the environment variable him-/herself.</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     <span class="keywordflow">if</span> (plotting_enabled)</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     {</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *env = <span class="stringliteral">"CPL_PLOTTER"</span>;</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>         <span class="comment">/* Check if 'which x' returns non-zero.</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment">           x is the first word of plotting command.</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">           Note: this assumes the environment understands</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment">           'which' and '> /dev/null'. If not,</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment">           plotting will be disabled.</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>         first_word = uves_sprintf(<span class="stringliteral">"%s "</span>, plotter_command);</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>         </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>         assure( strtok(first_word, <span class="stringliteral">" "</span>) != NULL, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>             <span class="stringliteral">"Error splitting string '%s'"</span>, first_word);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>         </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>         test_cmd = uves_sprintf(<span class="stringliteral">"which %s > /dev/null"</span>, first_word);</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>         </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="preprocessor">#if defined HAVE_SETENV && HAVE_SETENV</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         <span class="keywordflow">if</span> (setenv(env, plotter_command, 1) != 0)</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>         {</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Could not set environment variable '%s'. "</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                      <span class="stringliteral">"Plotting disabled!"</span>, env);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>             plotting_enabled = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>         }</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>         <span class="comment">/* popen may return non-NULL even when the external command</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="comment">           is not available. This causes the recipe to crash when writing</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment">           to an invalid FILE pointer.</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment">           Therefore, check (using 'which') that the</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment">           command is available.</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (system(test_cmd) != 0)</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>         {</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Command '%s' returned non-zero"</span>, test_cmd);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Command '%s' failed. Plotting disabled!"</span>, test_cmd);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>             plotting_enabled = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>         }</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>         {</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>             <span class="comment">/* Setenv succeeded, remember command */</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"setenv %s='%s' succeeded"</span>, env, plotter_command);</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Command '%s' returned zero"</span>, test_cmd);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>             plotter = plotter_command;</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>         }</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="preprocessor"></span>        <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"setenv() is not available on this platform. You have to manually "</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                  <span class="stringliteral">"set the environment variable '%s' to '%s'"</span>, env, plotter_command);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         plotter = plotter_command;</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="preprocessor"></span>    }   </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>    </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>   cleanup:</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     cpl_free(test_cmd);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     cpl_free(first_word);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> }</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> cpl_error_code</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> uves_plot_image_rows(<span class="keyword">const</span> cpl_image *image, <span class="keywordtype">int</span> first_row, <span class="keywordtype">int</span> last_row, <span class="keywordtype">int</span> step, </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *xtitle, <span class="keyword">const</span> <span class="keywordtype">char</span> *ytitle, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...)</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> {</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     va_list al;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     <span class="keywordtype">char</span> *pre = NULL;</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     <span class="keywordtype">char</span> *options = NULL;</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *post = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     cpl_image *thresholded = NULL;</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     assure( image != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <span class="keywordflow">if</span> (xtitle == NULL) xtitle = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     <span class="keywordflow">if</span> (ytitle == NULL) ytitle = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     assure( 1 <= first_row && first_row <= last_row && </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>         last_row <= cpl_image_get_size_y(image), </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>         CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>         <span class="stringliteral">"Illegal rows: %d - %d; rows in image = %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>         first_row, last_row, cpl_image_get_size_y(image));</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     assure( step >= 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>         <span class="stringliteral">"Illegal step size: %d"</span>, step);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     <span class="keywordflow">if</span> (plotting_enabled)</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     {</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *pre_format;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>         <span class="keywordtype">int</span> row;</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>         </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>         <span class="comment">/* Create pre string */</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>         pre_format = <span class="stringliteral">"set grid; set xlabel '%s'; set ylabel '%s';"</span>;</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>         pre = cpl_calloc(strlen(pre_format) + </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>                  strlen(xtitle) + strlen(ytitle) + 1,</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>                  <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>         sprintf(pre, pre_format, xtitle, ytitle);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>         </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>         va_start(al, format);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>         vsnprintf(title, MAXTITLELENGTH - 1, format, al);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>         va_end(al);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>         title[MAXTITLELENGTH - 1] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>         </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>         options = title_string(title, cpl_image_get_size_x(image));</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>         <span class="comment">/* Threshold each row */</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>         thresholded = cpl_image_duplicate(image);</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         <span class="keywordflow">for</span> (row = first_row; row <= last_row; row++)</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>         {</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>             <span class="keywordtype">int</span> nx = cpl_image_get_size_x(thresholded);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>             <span class="keywordtype">double</span> median = cpl_image_get_median_window(thresholded,</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>                                 1, first_row,</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>                                 nx, last_row);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>             <span class="keywordtype">double</span> stdev = cpl_image_get_stdev_window(thresholded,</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>                                   1, first_row,</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>                                   nx, last_row);</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>             <span class="keywordtype">double</span> locut = median - 3*stdev;</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>             <span class="keywordtype">double</span> hicut = median + 3*stdev;</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>             </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>             <span class="keywordtype">int</span> x, pis_rejected;</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>             <span class="keywordflow">for</span> (x = 1; x <= nx; x++)</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>             {</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>                 <span class="keywordtype">double</span> data = </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>                 cpl_image_get(thresholded, x, row, &pis_rejected);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>                 <span class="keywordflow">if</span> (data < locut) data = locut;</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>                 <span class="keywordflow">if</span> (data > hicut) data = hicut;</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>                 cpl_image_set(thresholded, x, row, data);</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>             }</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>         }</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>         </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>         cpl_plot_image_row(pre,</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>                   (strcmp(options, <span class="stringliteral">"t '%s'"</span>) == 0) ? <span class="stringliteral">""</span> : options, </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>                   post, </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>                   thresholded,</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>                   first_row, last_row, step);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>         </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>         RECOVER_FROM_ERROR(plotter);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     }</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>         </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>   cleanup:</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     uves_free_image(&thresholded);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     cpl_free(pre);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     cpl_free(options);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> }</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> cpl_error_code</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> uves_plot_image_columns(<span class="keyword">const</span> cpl_image *image, <span class="keywordtype">int</span> first_column, <span class="keywordtype">int</span> last_column, <span class="keywordtype">int</span> step,</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *xtitle, <span class="keyword">const</span> <span class="keywordtype">char</span> *ytitle, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...)</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> {</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     va_list al;</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>     </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>     <span class="keywordtype">char</span> *pre = NULL;</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>     <span class="keywordtype">char</span> *options = NULL;</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *post = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     cpl_image *thresholded = NULL;</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     assure( image != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     <span class="keywordflow">if</span> (xtitle == NULL) xtitle = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     <span class="keywordflow">if</span> (ytitle == NULL) ytitle = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     assure( 1 <= first_column && first_column <= last_column &&</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>         last_column <= cpl_image_get_size_x(image), </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>         CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>         <span class="stringliteral">"Illegal columns: %d - %d; columns in image = %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>         first_column, last_column, cpl_image_get_size_x(image));</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     assure( step >= 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>         <span class="stringliteral">"Illegal step size: %d"</span>, step);</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     <span class="keywordflow">if</span> (plotting_enabled)</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     {</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *pre_format;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>         <span class="keywordtype">int</span> col;</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> </div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>         <span class="comment">/* Create pre string */</span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>         pre_format = <span class="stringliteral">"set grid; set xlabel '%s'; set ylabel '%s';"</span>;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>         pre = cpl_calloc(strlen(pre_format) + </div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>                  strlen(xtitle) + strlen(ytitle) + 1,</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>                  <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>         sprintf(pre, pre_format, xtitle, ytitle);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>         </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>         va_start(al, format);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>         vsnprintf(title, MAXTITLELENGTH - 1, format, al);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>         va_end(al);</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>         title[MAXTITLELENGTH - 1] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>         </div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>         options = title_string(title, cpl_image_get_size_y(image));</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> </div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>         <span class="comment">/* Threshold each column */</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>         thresholded = cpl_image_duplicate(image);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>         <span class="keywordflow">for</span> (col = first_column; col <= last_column; col++)</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>         {</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>             <span class="keywordtype">int</span> ny = cpl_image_get_size_x(thresholded);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>             <span class="keywordtype">double</span> median = cpl_image_get_median_window(thresholded,</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>                                 first_column, 1,</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>                                 last_column, ny);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>             <span class="keywordtype">double</span> stdev = cpl_image_get_stdev_window(thresholded,</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>                                   first_column, 1,</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                                   last_column, ny);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>             <span class="keywordtype">double</span> locut = median - 3*stdev;</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>             <span class="keywordtype">double</span> hicut = median + 3*stdev;</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>             </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>             <span class="keywordtype">int</span> y, pis_rejected;</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>             <span class="keywordflow">for</span> (y = 1; y <= ny; y++)</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>             {</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>                 <span class="keywordtype">double</span> data = cpl_image_get(thresholded, col, y, &pis_rejected);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>                 <span class="keywordflow">if</span> (data < locut) data = locut;</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>                 <span class="keywordflow">if</span> (data > hicut) data = hicut;</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>                 cpl_image_set(thresholded, col, y, data);</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>             }</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>         }</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>         </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>         </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_plot_image_col(pre,</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                      (strcmp(options, <span class="stringliteral">"t '%s'"</span>) == 0) ? <span class="stringliteral">""</span> : options, </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                      post, </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                      image,</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                      first_column, last_column, step), </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>            <span class="stringliteral">"Error plotting image"</span>);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>         </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>         RECOVER_FROM_ERROR(plotter);</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     }</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     </div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>   cleanup:</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     uves_free_image(&thresholded);</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     cpl_free(pre);</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>     cpl_free(options);</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> }</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> uves_plot_bivectors(cpl_bivector **bivectors, <span class="keywordtype">char</span> **titles, </div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>             <span class="keywordtype">int</span> N, <span class="keyword">const</span> <span class="keywordtype">char</span> *xtitle,</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *ytitle)</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> {</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     <span class="keywordtype">char</span> *pre = NULL;</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     <span class="keywordtype">char</span> **options = NULL;</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *post = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     options = cpl_calloc(N, <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *)); <span class="comment">/* Initialized to NULL */</span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( options );</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> </div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>     <span class="keywordflow">if</span> (plotting_enabled)</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     {</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>         <span class="keywordtype">int</span> npoints, i;</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>         cpl_bivector *temp;</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>         <span class="keywordtype">char</span> *temps;</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>         <span class="comment">/* Create options strings */</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>         </div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>         npoints = 0;</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>         <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>         {</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>             npoints += cpl_bivector_get_size(bivectors[i]);</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>         }</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>         <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>         {        </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>             options[i] = title_string(titles[i], npoints);</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>         }</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>         </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>         </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>         {</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>         <span class="keywordtype">double</span> datamax = cpl_vector_get_max(cpl_bivector_get_y(bivectors[0]));</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>         <span class="keywordtype">double</span> datamin = cpl_vector_get_min(cpl_bivector_get_y(bivectors[0]));</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>         <span class="keywordtype">double</span> locut = datamin - 0.2*(datamax-datamin);</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>         <span class="keywordtype">double</span> hicut = datamax + 0.2*(datamax-datamin);</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>         </div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>         <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>             {</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>             <span class="keywordtype">int</span> j;</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>             <span class="keywordflow">for</span> (j = 0; j < cpl_bivector_get_size(bivectors[i]); j++)</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>                 {</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>                 <span class="keywordflow">if</span> (cpl_bivector_get_y_data(bivectors[i])[j] < locut)</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>                     {</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>                     cpl_bivector_get_y_data(bivectors[i])[j] = locut;</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>                     }</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>                 <span class="keywordflow">if</span> (cpl_bivector_get_y_data(bivectors[i])[j] > hicut)</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>                     {</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>                     cpl_bivector_get_y_data(bivectors[i])[j] = hicut;</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>                     }</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>                 }</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>             }</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>         }</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> </div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>         <span class="comment">/* Swap first/last bivectors */</span></div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>         temp = bivectors[0];</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>         bivectors[0] = bivectors[N-1];</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>         bivectors[N-1] = temp;</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>         </div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>         temps = options[0];</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>         options[0] = options[N-1];</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>         options[N-1] = temps;</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>         </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>         pre = uves_sprintf(</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>         <span class="stringliteral">"set grid; set xlabel '%s'; set ylabel '%s';"</span>, xtitle, ytitle);</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>         </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>         cpl_plot_bivectors(pre,</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>                   (<span class="keyword">const</span> <span class="keywordtype">char</span> **)options,</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>                   post,</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>                   (<span class="keyword">const</span> cpl_bivector **)bivectors, N);</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>         </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>         RECOVER_FROM_ERROR(plotter);</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>     }</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>   cleanup:</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>     cpl_free(pre);</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>     {</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>     <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>         {        </div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>         cpl_free(options[i]);</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>         }</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>     }</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>     cpl_free(options);</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> }</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> </div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span> cpl_error_code</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> uves_plot_table(<span class="keyword">const</span> cpl_table *table, <span class="keyword">const</span> <span class="keywordtype">char</span> *colx, <span class="keyword">const</span> <span class="keywordtype">char</span> *coly, </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...)</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> {</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>     va_list al;</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>     </div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>     <span class="keywordtype">char</span> *pre = NULL;</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>     <span class="keywordtype">char</span> *options = NULL;</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *post = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>     cpl_table *thresholded = NULL;</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> </div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>     assure( table != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table"</span>);</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>     assure( colx  != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null x column"</span>);</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>     assure( coly  != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null y column"</span>);</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     assure( cpl_table_has_column(table, colx), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>         <span class="stringliteral">"No such column: '%s'"</span>, colx);</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>     assure( cpl_table_has_column(table, coly), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>         <span class="stringliteral">"No such column: '%s'"</span>, coly);</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>     </div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     assure( cpl_table_get_column_type(table, colx) == CPL_TYPE_INT    ||</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>         cpl_table_get_column_type(table, colx) == CPL_TYPE_FLOAT  ||</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>         cpl_table_get_column_type(table, colx) == CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>         CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>         <span class="stringliteral">"Column '%s' has type '%s'. Numerical type expected"</span>,</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>         colx,</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_table_get_column_type(table, colx)));</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     </div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     assure( cpl_table_get_column_type(table, coly) == CPL_TYPE_INT    ||</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>         cpl_table_get_column_type(table, coly) == CPL_TYPE_FLOAT  ||</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>         cpl_table_get_column_type(table, coly) == CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>         CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>         <span class="stringliteral">"Column '%s' has type '%s'. Numerical type expected"</span>,</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>         coly,</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_table_get_column_type(table, coly)));</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>     </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     <span class="keywordflow">if</span> (plotting_enabled)</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     {</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *pre_format;</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> </div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>         <span class="comment">/* Create options string */</span></div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>         va_start(al, format);</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>         vsnprintf(title, MAXTITLELENGTH - 1, format, al);</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>         va_end(al);</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>         title[MAXTITLELENGTH - 1] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>         </div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>         options = title_string(title, cpl_table_get_nrow(table));</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>         </div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>         <span class="comment">/* Create pre string */</span></div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>         pre_format = <span class="stringliteral">"set grid; set xlabel '%s'; set ylabel '%s';"</span>;</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>         pre = cpl_calloc(strlen(pre_format) + strlen(colx) + strlen(coly) + 1, </div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>                  <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));  </div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>                              <span class="comment">/* It's a couple of bytes more than enough */</span></div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>         sprintf(pre, pre_format, colx, coly);</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span> </div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> </div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>         <span class="comment">/* Threshold y-values to median +- 3 sigma before plotting */</span></div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>         {</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>         <span class="keywordtype">double</span> median, sigma, locut, hicut;</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>         </div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>         median = cpl_table_get_column_median(table, coly);</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>         sigma  = cpl_table_get_column_stdev(table, coly);</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>         </div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>         locut = median - 3*sigma;</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>         hicut = median + 3*sigma;</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>         </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>         <span class="comment">/* Copy the data we need, then threshold */</span></div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>         thresholded = cpl_table_new(cpl_table_get_nrow(table));</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>         cpl_table_duplicate_column(thresholded, coly, table, coly);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>         cpl_table_duplicate_column(thresholded, colx, table, colx);</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> </div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>         <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(thresholded); i++)</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>             {</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>             <span class="keywordtype">double</span> data = cpl_table_get(thresholded, coly, i, NULL); <span class="comment">/* polymorphic */</span></div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>             </div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>             <span class="keywordflow">if</span> (data < locut && data > hicut)</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                 {</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>                 cpl_table_set_invalid(thresholded, coly, i);</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                 }</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>             }</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> </div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>         }</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span> </div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>         cpl_plot_column(pre,</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>                   (strcmp(options, <span class="stringliteral">"t '%s'"</span>) == 0) ? <span class="stringliteral">""</span> : options, </div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>                   post,</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>                   thresholded, colx, coly);</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> </div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>         RECOVER_FROM_ERROR(plotter);</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>     }</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span> </div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>   cleanup:</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>     uves_free_table(&thresholded);</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     cpl_free(pre);</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>     cpl_free(options);</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span> }</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span> </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> <span class="keyword">static</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> title_string(<span class="keyword">const</span> <span class="keywordtype">char</span> *plot_title, <span class="keywordtype">int</span> npoints)</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> {</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>     <span class="comment">/* Option to choose plotting style</span></div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span> <span class="comment">     * depending on the number of points </span></div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *options = (npoints > 100) ?</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>     <span class="stringliteral">"w points pointsize 1"</span> :</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>     <span class="stringliteral">"w linespoints pointsize 1"</span>;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     <span class="comment">/* If less than, say, 100 points, connect them with lines */</span></div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     <span class="keywordtype">size_t</span> length = strlen(<span class="stringliteral">"t '' "</span>) + strlen(plot_title) + strlen(options) + 1;</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     <span class="keywordtype">char</span> *result = cpl_calloc(length, <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>     </div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     snprintf(result, length, <span class="stringliteral">"t '%s' %s"</span>, plot_title, options);</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>     </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> }</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__plot_8h_source.html b/html/uves__plot_8h_source.html
deleted file mode 100644
index 6d9643f..0000000
--- a/html/uves__plot_8h_source.html
+++ /dev/null
@@ -1,142 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_plot.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_plot.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 13:56:00 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.11 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.10  2010/09/24 09:32:07  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.8  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.7  2007/05/22 11:31:35  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Removed image plotting functionality</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.6  2006/08/23 15:09:25  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added uves_plot_bivectors</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.5  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.4  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#ifndef UVES_PLOT_H</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PLOT_H</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> cpl_error_code</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> uves_plot_initialize(<span class="keyword">const</span> <span class="keywordtype">char</span> *plotter_command);</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> cpl_error_code</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> uves_plot_table(<span class="keyword">const</span> cpl_table *table, <span class="keyword">const</span> <span class="keywordtype">char</span> *colx, <span class="keyword">const</span> <span class="keywordtype">char</span> *coly,</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...)</div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#ifdef __GNUC__</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor"></span>__attribute__((format (printf, 4, 5)))</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span>;</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> cpl_error_code</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> uves_plot_image_rows(<span class="keyword">const</span> cpl_image *image, <span class="keywordtype">int</span> first_row, <span class="keywordtype">int</span> last_row, <span class="keywordtype">int</span> step, </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *xtitle, <span class="keyword">const</span> <span class="keywordtype">char</span> *ytitle, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...)</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#ifdef __GNUC__</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span>__attribute__((format (printf, 7, 8)))</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor"></span>;</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> uves_plot_bivectors(cpl_bivector **bivectors, <span class="keywordtype">char</span> **titles, </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>             <span class="keywordtype">int</span> N, <span class="keyword">const</span> <span class="keywordtype">char</span> *xtitle,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *ytitle);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> cpl_error_code</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> uves_plot_image_columns(<span class="keyword">const</span> cpl_image *image, <span class="keywordtype">int</span> first_column, <span class="keywordtype">int</span> last_column, <span class="keywordtype">int</span> step, </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *xtitle, <span class="keyword">const</span> <span class="keywordtype">char</span> *ytitle, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...)</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor">#ifdef __GNUC__</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor"></span>__attribute__((format (printf, 7, 8)))</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor"></span>;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__plugin_8h_source.html b/html/uves__plugin_8h_source.html
deleted file mode 100644
index ead489a..0000000
--- a/html/uves__plugin_8h_source.html
+++ /dev/null
@@ -1,338 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_plugin.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_plugin.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: uves_plugin.h,v 1.1 2008-03-28 08:56:45 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the UVES package </span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-03-28 08:56:45 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef UVES_PLUGIN_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PLUGIN_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <irplib_utils.h></span>  <span class="comment">/* irplib_reset() */</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">                                   Define</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/* Needed to concatenate two macro arguments */</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#define UVES_CONCAT(a,b) a ## _ ## b</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_CONCAT2X(a,b) UVES_CONCAT(a,b)</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">/* A macro to generate the pipeline copyright and license */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#ifdef cpl_get_license</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_irplib_get_license cpl_get_license</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span><span class="comment">/* FIXME: Drop once CPL 4.0 is no longer supported */</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#define uves_irplib_get_license(PACKAGE_NAME, YEAR)                                 \</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">    "This file is part of the " PACKAGE_NAME "\n"                              \</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">    "Copyright (C) " YEAR " European Southern Observatory\n"                   \</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">    "\n"                                                                       \</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">    "This program is free software; you can redistribute it and/or modify\n"   \</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">    "it under the terms of the GNU General Public License as published by\n"   \</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">    "the Free Software Foundation; either version 2 of the License, or\n"      \</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">    "(at your option) any later version.\n"                                    \</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">    "\n"                                                                       \</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">    "This program is distributed in the hope that it will be useful,\n"        \</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">    "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"         \</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">    "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"          \</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">    "GNU General Public License for more details.\n"                           \</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">    "\n"                                                                       \</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">    "You should have received a copy of the GNU General Public License\n"      \</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">    "along with this program; if not, write to the Free Software\n"            \</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">    "Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, \n"                \</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">    "MA  02111-1307  USA"</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#ifdef CPL_RECIPE_DEFINE</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_IRPLIB_RECIPE_DEFINE CPL_RECIPE_DEFINE</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="preprocessor"></span><span class="comment">/* FIXME: Drop once CPL 4.0 is no longer supported */</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor">#define UVES_IRPLIB_RECIPE_DEFINE(RECIPE_NAME, RECIPE_VERSION, RECIPE_FILL_PARAMS,  \</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="preprocessor">                             RECIPE_AUTHOR, RECIPE_AUTHOR_EMAIL, RECIPE_YEAR,  \</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="preprocessor">                             RECIPE_SYNOPSIS, RECIPE_DESCRIPTION)              \</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="preprocessor">   </span><span class="comment">/* The prototypes of the recipe create, exec and destroy functions */</span><span class="preprocessor">       \</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="preprocessor">static int UVES_CONCAT2X(RECIPE_NAME,create) (cpl_plugin * plugin);          \</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="preprocessor">static int UVES_CONCAT2X(RECIPE_NAME,exec)   (cpl_plugin * plugin);          \</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="preprocessor">static int UVES_CONCAT2X(RECIPE_NAME,destroy)(cpl_plugin * plugin);          \</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="preprocessor">   </span><span class="comment">/* The prototype of the function called by the recipe exec function */</span><span class="preprocessor">      \</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="preprocessor">static int RECIPE_NAME(cpl_frameset *, const cpl_parameterlist *);             \</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="preprocessor">int cpl_plugin_get_info(cpl_pluginlist * list)                                 \</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="preprocessor">{                                                                              \</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="preprocessor">    cpl_recipe * recipe;                                                       \</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="preprocessor">    cpl_plugin * plugin;                                                       \</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="preprocessor">    </span><span class="comment">/* Verify that the compile-time and run-time versions of CPL match */</span><span class="preprocessor">      \</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="preprocessor">    </span><span class="comment">/* - this will work for run-time versions going back to CPL 3.0    */</span><span class="preprocessor">      \</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="preprocessor">    </span><span class="comment">/* - earlier versions will cause an exit with an unresolved symbol */</span><span class="preprocessor">      \</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="preprocessor">    const unsigned vruntime = CPL_VERSION(cpl_version_get_major(),             \</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="preprocessor">                                          cpl_version_get_minor(),             \</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="preprocessor">                                          cpl_version_get_micro());            \</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="preprocessor">    </span><span class="comment">/* The version number of the first major version */</span><span class="preprocessor">                        \</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="preprocessor">    const unsigned vmruntime = CPL_VERSION(cpl_version_get_major(), 0, 0);     \</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="preprocessor">    if (vruntime < CPL_VERSION_CODE) {                                         \</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="preprocessor">        cpl_msg_warning(cpl_func, "Run-time version %s of CPL is lower than "  \</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="preprocessor">                        "the compile-time version", cpl_version_get_version());\</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="preprocessor">    } else if (vmruntime > CPL_VERSION_CODE) {                                 \</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="preprocessor">        cpl_msg_warning(cpl_func, "Run-time version %s of CPL has a newer "    \</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="preprocessor">                        "major version than the compile-time version",         \</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="preprocessor">                        cpl_version_get_version());                            \</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="preprocessor">    } else if (vruntime > CPL_VERSION_CODE) {                                  \</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="preprocessor">        cpl_msg_info(cpl_func, "Run-time version %s of CPL is higher than "    \</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="preprocessor">                     "the compile-time version", cpl_version_get_version());   \</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor">    recipe = cpl_calloc(1, sizeof(*recipe));                                   \</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="preprocessor">    if (recipe == NULL) {                                                      \</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "Recipe allocation failed");                   \</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="preprocessor">        (void)cpl_error_set(cpl_func, CPL_ERROR_ILLEGAL_OUTPUT);               \</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="preprocessor">        return 1;                                                              \</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor">    plugin = &recipe->interface;                                               \</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="preprocessor">    if (cpl_plugin_init(plugin,                                                \</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="preprocessor">                    CPL_PLUGIN_API,                                            \</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="preprocessor">                    RECIPE_VERSION,                                            \</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="preprocessor">                    CPL_PLUGIN_TYPE_RECIPE,                                    \</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="preprocessor">                    #RECIPE_NAME,                                              \</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="preprocessor">                    RECIPE_SYNOPSIS,                                           \</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="preprocessor">                    RECIPE_DESCRIPTION,                                        \</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor">                    RECIPE_AUTHOR,                                             \</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor">                    RECIPE_AUTHOR_EMAIL,                                       \</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="preprocessor">                    uves_irplib_get_license(PACKAGE_NAME, RECIPE_YEAR),             \</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor">                    UVES_CONCAT2X(RECIPE_NAME,create),                       \</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="preprocessor">                    UVES_CONCAT2X(RECIPE_NAME,exec),                         \</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="preprocessor">                    UVES_CONCAT2X(RECIPE_NAME,destroy))) {                   \</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "Plugin initialization failed");               \</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="preprocessor">        (void)cpl_error_set_where(cpl_func);                                   \</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="preprocessor">        return 1;                                                              \</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="preprocessor">    if (cpl_pluginlist_append(list, plugin)) {                                 \</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "Error adding plugin to list");                \</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="preprocessor">        (void)cpl_error_set_where(cpl_func);                                   \</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="preprocessor">        return 1;                                                              \</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="preprocessor">    return 0;                                                                  \</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="preprocessor">}                                                                              \</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="preprocessor">   </span><span class="comment">/* The definition of the recipe create function */</span><span class="preprocessor">                          \</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="preprocessor">static int UVES_CONCAT2X(RECIPE_NAME,create)(cpl_plugin * plugin)            \</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="preprocessor">{                                                                              \</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="preprocessor">    cpl_recipe * recipe;                                                       \</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="preprocessor">    </span><span class="comment">/* Do not create the recipe if an error code is already set */</span><span class="preprocessor">             \</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="preprocessor">    if (cpl_error_get_code() != CPL_ERROR_NONE) {                              \</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "%s():%d: An error is already set: %s",        \</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="preprocessor">                      cpl_func, __LINE__, cpl_error_get_where());              \</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="preprocessor">        return (int)cpl_error_get_code();                                      \</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="preprocessor">    if (plugin == NULL) {                                                      \</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "Null plugin");                                \</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="preprocessor">        cpl_ensure_code(0, (int)CPL_ERROR_NULL_INPUT);                         \</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="preprocessor">    </span><span class="comment">/* Verify plugin type */</span><span class="preprocessor">                                                   \</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="preprocessor">    if (cpl_plugin_get_type(plugin) != CPL_PLUGIN_TYPE_RECIPE) {               \</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "Plugin is not a recipe");                     \</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="preprocessor">        cpl_ensure_code(0, (int)CPL_ERROR_TYPE_MISMATCH);                      \</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="preprocessor">    </span><span class="comment">/* Get the recipe */</span><span class="preprocessor">                                                       \</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="preprocessor">    recipe = (cpl_recipe *)plugin;                                             \</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="preprocessor">    </span><span class="comment">/* Create the parameters list in the cpl_recipe object */</span><span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="preprocessor">    recipe->parameters = cpl_parameterlist_new();                              \</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="preprocessor">    if (recipe->parameters == NULL) {                                          \</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "Parameter list allocation failed");           \</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="preprocessor">        cpl_ensure_code(0, (int)CPL_ERROR_ILLEGAL_OUTPUT);                     \</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="preprocessor">    </span><span class="comment">/* Fill the parameters list */</span><span class="preprocessor">                                             \</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="preprocessor">    return(RECIPE_FILL_PARAMS);                                                \</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="preprocessor">}                                                                              \</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="preprocessor">   </span><span class="comment">/* The definition of the recipe exec function */</span><span class="preprocessor">                            \</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="preprocessor">static int UVES_CONCAT2X(RECIPE_NAME,exec)(cpl_plugin * plugin)              \</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="preprocessor">{                                                                              \</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="preprocessor">    cpl_recipe * recipe;                                                       \</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="preprocessor">    int recipe_status;                                                         \</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="preprocessor">    cpl_errorstate initial_errorstate = cpl_errorstate_get();                  \</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="preprocessor">    </span><span class="comment">/* Return immediately if an error code is already set */</span><span class="preprocessor">                   \</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="preprocessor">    if (cpl_error_get_code() != CPL_ERROR_NONE) {                              \</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "%s():%d: An error is already set: %s",        \</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="preprocessor">                      cpl_func, __LINE__, cpl_error_get_where());              \</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="preprocessor">        return (int)cpl_error_get_code();                                      \</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="preprocessor">    if (plugin == NULL) {                                                      \</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "Null plugin");                                \</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="preprocessor">        cpl_ensure_code(0, (int)CPL_ERROR_NULL_INPUT);                         \</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="preprocessor">    </span><span class="comment">/* Verify plugin type */</span><span class="preprocessor">                                                   \</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="preprocessor">    if (cpl_plugin_get_type(plugin) != CPL_PLUGIN_TYPE_RECIPE) {               \</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "Plugin is not a recipe");                     \</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="preprocessor">        cpl_ensure_code(0, (int)CPL_ERROR_TYPE_MISMATCH);                      \</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="preprocessor">    </span><span class="comment">/* Get the recipe */</span><span class="preprocessor">                                                       \</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="preprocessor">    recipe = (cpl_recipe *)plugin;                                             \</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="preprocessor">    </span><span class="comment">/* Verify parameter and frame lists */</span><span class="preprocessor">                                     \</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="preprocessor">    if (recipe->parameters == NULL) {                                          \</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "Recipe invoked with NULL parameter list");    \</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="preprocessor">        cpl_ensure_code(0, (int)CPL_ERROR_NULL_INPUT);                         \</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="preprocessor">    if (recipe->frames == NULL) {                                              \</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "Recipe invoked with NULL frame set");         \</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="preprocessor">        cpl_ensure_code(0, (int)CPL_ERROR_NULL_INPUT);                         \</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="preprocessor">    </span><span class="comment">/* Reset the UVES internal state before actually starting */</span><span class="preprocessor">             \</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="preprocessor">    irplib_reset();                                                            \</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="preprocessor">    </span><span class="comment">/* Invoke the recipe */</span><span class="preprocessor">                                                    \</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="preprocessor">    recipe_status = RECIPE_NAME(recipe->frames, recipe->parameters);           \</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="preprocessor">    if (!cpl_errorstate_is_equal(initial_errorstate)) {                        \</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="preprocessor">        </span><span class="comment">/* Dump the error history since recipe execution start.                \</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment">           At this point the recipe cannot recover from the error */</span><span class="preprocessor">           \</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="preprocessor">        cpl_errorstate_dump(initial_errorstate, CPL_FALSE, NULL);              \</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="preprocessor">    return recipe_status;                                                      \</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="preprocessor">}                                                                              \</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="preprocessor">   </span><span class="comment">/* The definition of the recipe destroy function */</span><span class="preprocessor">                         \</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="preprocessor">static int UVES_CONCAT2X(RECIPE_NAME,destroy)(cpl_plugin * plugin)           \</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="preprocessor">{                                                                              \</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="preprocessor">    cpl_recipe * recipe;                                                       \</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="preprocessor">    if (plugin == NULL) {                                                      \</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "Null plugin");                                \</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="preprocessor">        cpl_ensure_code(0, (int)CPL_ERROR_NULL_INPUT);                         \</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="preprocessor">    </span><span class="comment">/* Verify plugin type */</span><span class="preprocessor">                                                   \</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="preprocessor">    if (cpl_plugin_get_type(plugin) != CPL_PLUGIN_TYPE_RECIPE) {               \</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="preprocessor">        cpl_msg_error(cpl_func, "Plugin is not a recipe");                     \</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="preprocessor">        cpl_ensure_code(0, (int)CPL_ERROR_TYPE_MISMATCH);                      \</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="preprocessor">    }                                                                          \</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="preprocessor">    </span><span class="comment">/* Get the recipe */</span><span class="preprocessor">                                                       \</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="preprocessor">    recipe = (cpl_recipe *)plugin;                                             \</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="preprocessor">    if (recipe->parameters != NULL)                                            \</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="preprocessor">        cpl_parameterlist_delete(recipe->parameters);                          \</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="preprocessor">    return  0;                                                                 \</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="preprocessor">}                                                                              \</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="preprocessor">  </span><span class="comment">/* This dummy declaration requires the macro to be invoked as if it was      \</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment">     a kind of function definition, with a terminating ; */</span><span class="preprocessor">                    \</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="preprocessor">extern int uves_plugin_end</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="comment">                                   Function prototypes</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__polynomial-test_8c_source.html b/html/uves__polynomial-test_8c_source.html
deleted file mode 100644
index 4ac2e8f..0000000
--- a/html/uves__polynomial-test_8c_source.html
+++ /dev/null
@@ -1,289 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_polynomial-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_polynomial-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-01-17 07:53:20 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.9 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.8  2009/06/05 05:49:02  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * updated init/end to cpl5</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.7  2007/09/11 17:10:20  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * moved test_midas_poly to test_dfs</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.6  2007/06/20 13:04:26  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * fix interface to</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.5  2007/05/23 06:43:23  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.4  2007/05/03 15:18:22  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added function to add polynomials</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.3  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.2  2007/03/19 13:51:41  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added test of 2d fitting</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.1  2007/03/15 12:27:18  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Moved unit tests to ./uves/tests and ./flames/tests</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.3  2007/02/27 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Move unit test infrastructure to IRPLIB</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.2  2007/01/29 12:17:54  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Support setting verbosity from command line</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.1  2006/11/24 09:40:17  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Added polynomial tests</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.1  2006/11/22 08:04:59  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Added uves_dfs unit test module</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.20  2006/11/16 09:49:25  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Fixed doxygen bug</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.19  2006/11/08 14:04:03  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Doxybugfix</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="group__uves__polynomial__test.html#gaecea8e95aa6be883a21e039669855c2f">  102</a></span> <a class="code" href="group__uves__polynomial__test.html#gaecea8e95aa6be883a21e039669855c2f" title="Test polynomial fitting.">test_polynomial_fit_2d</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> {</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *pol = NULL;</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     cpl_vector *x = NULL;</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     cpl_vector *y = NULL;</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     cpl_bivector *xy = NULL;</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     cpl_vector *z = NULL;</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">/*    cpl_vector *sigma = NULL;*/</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     <span class="keywordtype">int</span> degx, degy;</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>     <span class="comment">/* build data */</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     <span class="keywordtype">double</span> coeff[3] = {43, -0.3, 0.0001};</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     <span class="keywordtype">double</span> valx, valy, valz;</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     <span class="keywordtype">int</span> npoints = 0;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     x = cpl_vector_new(1);</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     y = cpl_vector_new(1);</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     z = cpl_vector_new(1);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     <span class="keywordflow">for</span> (valx = -10; valx <= 50; valx += 4.7)</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>         <span class="keywordflow">for</span> (valy = 0.001; valy <= 0.002; valy *= 1.1)</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>             {</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>                 <span class="comment">/* z = (2, 4) degree polynomial in x, y */</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>                 valz = coeff[0]*valx*valx + coeff[1]*valy*valx + coeff[2]*valy*valy*valy*valy;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>                 npoints++;</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>                 cpl_vector_set_size(x, npoints);</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>                 cpl_vector_set_size(y, npoints);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>                 cpl_vector_set_size(z, npoints);</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>                 cpl_vector_set(x, npoints-1, valx);</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>                 cpl_vector_set(y, npoints-1, valy);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>                 cpl_vector_set(z, npoints-1, valz);</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>             }</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     <span class="comment">/* call function */</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     <span class="keywordflow">for</span> (degx = 0; degx <= 5; degx++)</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>         <span class="keywordflow">for</span> (degy = 0; degy <= 5; degy++) {</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>             uves_unwrap_bivector_vectors(&xy);</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>             xy = cpl_bivector_wrap_vectors(x, y);</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>             </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>             <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&pol);                    </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( pol = <a class="code" href="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3" title="Fit a 2d surface with a polynomial in x and y.">uves_polynomial_fit_2d</a>(xy,</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>                                                       z,</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>                                                       NULL, <span class="comment">/* sigma */</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>                                                       degx, degy,</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>                                                       NULL, NULL, NULL));</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>             </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>             <span class="comment">/* test results */</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>             <span class="keywordflow">if</span> (degx >= 2 && degy >= 4) {</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>                 <span class="comment">/* Then we should have reproduced the input polynomial */</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>                 <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                 <span class="keywordflow">for</span> (i = 0; i < cpl_vector_get_size(x); i++)</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>                     {</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>                         cpl_test_rel(<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(pol, </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>                                                                     cpl_vector_get(x, i),</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>                                                                     cpl_vector_get(y, i)),</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>                                         cpl_vector_get(z, i), 0.001);</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                     }</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                 </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>                 <span class="comment">/* comparing the actual coefficients is less reliable */</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="preprocessor"></span>                <span class="keywordflow">for</span> (i = 0; i <= degx; i++)</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>                     <span class="keywordflow">for</span> (j = 0; j <= degy; j++)</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>                         <span class="keywordflow">if</span> (i == 2 && j == 0)</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>                             cpl_test_rel(<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(pol, i, j), coeff[0], 0.0001);</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>                         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i == 1 && j == 1)</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>                             cpl_test_rel(<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(pol, i, j), coeff[1], 0.0001);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>                         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i == 0 && j == 4)</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>                             cpl_test_rel(<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(pol, i, j), coeff[2], 0.0001);</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>                         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>                             {</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>                                 <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"%d, %d"</span>, i, j);</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>                                 cpl_test_abs(<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(pol, i, j), 0, 0.1);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>                             }</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor"></span>            }</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>         }</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>   cleanup:</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     uves_free_vector(&x);</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     uves_free_vector(&y);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     uves_free_vector(&z);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     uves_unwrap_bivector_vectors(&xy);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&pol);                    </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> }</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno"><a class="code" href="group__uves__polynomial__test.html#ga9f16114e84dbc27c20652d0e2876d021">  193</a></span> <a class="code" href="group__uves__polynomial__test.html#ga9f16114e84dbc27c20652d0e2876d021" title="Various tests.">test_polynomial</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> {</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     cpl_polynomial *cp1 = cpl_polynomial_new(2);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     cpl_polynomial *cp2 = cpl_polynomial_new(2);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     cpl_size power[2] = {0, 3};</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *p1;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *p2;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *p3;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     cpl_polynomial_set_coeff(cp1, power, 7.0);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     cpl_polynomial_set_coeff(cp2, power, 9.0);</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     p1 = <a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(cp1);</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     p2 = <a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(cp2);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <a class="code" href="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081" title="Rescale a polynomial.">uves_polynomial_rescale</a>(p1, 0, 2.0);</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <a class="code" href="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081" title="Rescale a polynomial.">uves_polynomial_rescale</a>(p2, 0, 2.0);</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( p3 = <a class="code" href="group__uves__utils__polynomial.html#gab234ee00fd4ba72b05a50adb61947306" title="Add two polynomials.">uves_polynomial_add_2d</a>(p1, p2) );</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     cpl_test_abs(<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(p3, 0, 0), 0 , 0.0001);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     cpl_test_abs(<a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(p3, 0, 3), 7*2+9*2, 0.0001);</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>   cleanup:</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     uves_free_polynomial(&cp1);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     uves_free_polynomial(&cp2);</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p1);</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p2);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p3);</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> }</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>    </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno"><a class="code" href="group__uves__polynomial__test.html#ga840291bc02cba5474a4cb46a9b9566fe">  232</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> {</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <a class="code" href="group__uves__polynomial__test.html#gaecea8e95aa6be883a21e039669855c2f" title="Test polynomial fitting.">test_polynomial_fit_2d</a>();</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__polynomial__test.html#ga9f16114e84dbc27c20652d0e2876d021" title="Various tests.">test_polynomial</a>() );</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>   cleanup:</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> }</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__propertylist-test_8c_source.html b/html/uves__propertylist-test_8c_source.html
deleted file mode 100644
index 7a8f325..0000000
--- a/html/uves__propertylist-test_8c_source.html
+++ /dev/null
@@ -1,1135 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_propertylist-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_propertylist-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: uves_propertylist-test.c,v 1.3 2009-06-05 05:49:02 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO Common Pipeline Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2009-06-05 05:49:02 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#undef CX_DISABLE_ASSERT</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor"></span><span class="preprocessor">#undef CX_LOG_DOMAIN</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">//#include "cpl_init.h"</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">//#include "cpl_error.h"</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">//#include "uves_propertylist_impl.h"</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <cxmemory.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <cxmessages.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <qfits.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#define FLT_EPS  1.0e-6</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#define DBL_EPS  1.0e-14</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> test_property_dump(cpl_property *property)</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> {</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>     <span class="keyword">const</span> cxchar *name = cpl_property_get_name(property);</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>     <span class="keyword">const</span> cxchar *comment = cpl_property_get_comment(property);</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>     cxchar c;</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     <span class="keywordtype">long</span> size = cpl_property_get_size(property);</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     cpl_type type = cpl_property_get_type(property);</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     fprintf(stderr, <span class="stringliteral">"Property at address %p\n"</span>, (<span class="keywordtype">void</span> *)property);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     fprintf(stderr, <span class="stringliteral">"\tname   : %p '%s'\n"</span>, (<span class="keywordtype">void</span> *)name, name);</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     fprintf(stderr, <span class="stringliteral">"\tcomment: %p '%s'\n"</span>, (<span class="keywordtype">void</span> *)comment, comment);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     fprintf(stderr, <span class="stringliteral">"\ttype   : %#09x\n"</span>, type);</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     fprintf(stderr, <span class="stringliteral">"\tsize   : %ld\n"</span>, size);</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     fprintf(stderr, <span class="stringliteral">"\tvalue  : "</span>);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     <span class="keywordflow">switch</span> (type) {</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>     <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>         c = cpl_property_get_char(property);</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>         <span class="keywordflow">if</span> (!c)</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>             fprintf(stderr, <span class="stringliteral">"''"</span>);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>             fprintf(stderr, <span class="stringliteral">"'%c'"</span>, c);</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>         fprintf(stderr, <span class="stringliteral">"%d"</span>, cpl_property_get_bool(property));</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>         fprintf(stderr, <span class="stringliteral">"%d"</span>, cpl_property_get_int(property));</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>         fprintf(stderr, <span class="stringliteral">"%ld"</span>, cpl_property_get_long(property));</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>         fprintf(stderr, <span class="stringliteral">"%.7g"</span>, cpl_property_get_float(property));</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>         fprintf(stderr, <span class="stringliteral">"%.15g"</span>, cpl_property_get_double(property));</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>         fprintf(stderr, <span class="stringliteral">"'%s'"</span>, cpl_property_get_string(property));</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>         fprintf(stderr, <span class="stringliteral">"unknown."</span>);</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     }</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     fprintf(stderr, <span class="stringliteral">"\n"</span>);</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> }</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> test_plist_dump(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist)</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> {</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     cxlong i;</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     cxlong sz = <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist);</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> </div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     fprintf(stderr, <span class="stringliteral">"Property list at address %p:\n"</span>, (<span class="keywordtype">void</span> *) plist);</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     <span class="keywordflow">for</span> (i = 0; i < sz; i++) {</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>         cpl_property *p = uves_propertylist_get(plist, i);</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>         test_property_dump(p);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     }</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> }</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="keyword">static</span> <span class="keywordtype">int</span> test_main(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> {</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     <span class="keyword">const</span> cxchar *keys[] = {</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>         <span class="stringliteral">"a"</span>, <span class="stringliteral">"b"</span>, <span class="stringliteral">"c"</span>, <span class="stringliteral">"d"</span>, <span class="stringliteral">"e"</span>, <span class="stringliteral">"f"</span>, <span class="stringliteral">"g"</span>,</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>         <span class="stringliteral">"A"</span>, <span class="stringliteral">"B"</span>, <span class="stringliteral">"C"</span>, <span class="stringliteral">"D"</span>, <span class="stringliteral">"E"</span>, <span class="stringliteral">"F"</span>, <span class="stringliteral">"G"</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     };</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     <span class="keyword">const</span> cxchar *comments[] = {</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>         <span class="stringliteral">"A character value"</span>,</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>         <span class="stringliteral">"A boolean value"</span>,</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>         <span class="stringliteral">"A integer value"</span>,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>         <span class="stringliteral">"A long integer value"</span>,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>         <span class="stringliteral">"A floating point number"</span>,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>         <span class="stringliteral">"A double precision number"</span>,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>         <span class="stringliteral">"A string value"</span>,</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     };</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     cpl_type types[] = {</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>         CPL_TYPE_CHAR,</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>         CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>         CPL_TYPE_INT,</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>         CPL_TYPE_LONG,</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>         CPL_TYPE_FLOAT,</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>         CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>         CPL_TYPE_STRING</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     };</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     cxlong i;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     cxfloat fval[] = {-1.23456789, 0.};</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     cxdouble dval[] = {-1.23456789, 0.};</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, *_plist;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     qfits_header *header, *_header;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     <span class="keyword">struct </span>fcard {</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>         <span class="keyword">const</span> cxchar *key;</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>         <span class="keyword">const</span> cxchar *val;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>         <span class="keyword">const</span> cxchar *com;</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>         cpl_type type;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     };</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     <span class="keyword">struct </span>fcard hdr[] = {</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>         {<span class="stringliteral">"SIMPLE"</span>, <span class="stringliteral">"T"</span>,</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>          <span class="stringliteral">"Standard FITS format (NOST-100.0)"</span>,</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>          CPL_TYPE_BOOL},</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>         {<span class="stringliteral">"BITPIX"</span>, <span class="stringliteral">"16"</span>,</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>          <span class="stringliteral">"# of bits storing pix values"</span>,</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>         {<span class="stringliteral">"NAXIS"</span>, <span class="stringliteral">"2"</span>,</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>          <span class="stringliteral">"# of axes in frame"</span>,</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>         {<span class="stringliteral">"NAXIS1"</span>, <span class="stringliteral">"2148"</span>,</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>          <span class="stringliteral">"# pixels/axis"</span>,</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>         {<span class="stringliteral">"NAXIS2"</span>, <span class="stringliteral">"2340"</span>,</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>          <span class="stringliteral">"# pixels/axis"</span>,</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>         {<span class="stringliteral">"ORIGIN"</span>, <span class="stringliteral">"ESO"</span>,</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>          <span class="stringliteral">"European Southern Observatory"</span>,</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>         {<span class="stringliteral">"DATE"</span>, <span class="stringliteral">"2002-03-08T04:27:21.420"</span>,</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>          <span class="stringliteral">"Date this file was written (dd/mm/yyyy)"</span>,</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>         {<span class="stringliteral">"MJD-OBS"</span>, <span class="stringliteral">"52341.17813019"</span>,</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>          <span class="stringliteral">"Obs start 2002-03-08T04:16:30.448"</span>,</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>         {<span class="stringliteral">"DATE-OBS"</span>, <span class="stringliteral">"2002-03-08T04:16:30.448"</span>,</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>          <span class="stringliteral">"Date of observation"</span>,</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>         {<span class="stringliteral">"EXPTIME"</span>, <span class="stringliteral">"600.000"</span>,</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>          <span class="stringliteral">"Total integration time. 00:10:00.000"</span>,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>         {<span class="stringliteral">"TELESCOP"</span>, <span class="stringliteral">"VLT"</span>,</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>          <span class="stringliteral">"ESO <TEL>"</span>,</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>         {<span class="stringliteral">"RA"</span>, <span class="stringliteral">"181.41734"</span>,</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>          <span class="stringliteral">"12:05:40.1 RA (J2000) pointing"</span>,</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>         {<span class="stringliteral">"DEC"</span>, <span class="stringliteral">"-7.65555"</span>,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>          <span class="stringliteral">"-07:39:19.9  DEC (J2000) pointing"</span>,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>         {<span class="stringliteral">"EQUINOX"</span>, <span class="stringliteral">"2000."</span>,</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>          <span class="stringliteral">"Standard FK5 (years)"</span>,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>         {<span class="stringliteral">"RADECSYS"</span>, <span class="stringliteral">"FK5"</span>,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>          <span class="stringliteral">"Coordinate reference frame"</span>,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         {<span class="stringliteral">"LST"</span>, <span class="stringliteral">"38309.370"</span>,</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>          <span class="stringliteral">"10:38:29.370 LST at start"</span>,</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>         {<span class="stringliteral">"UTC"</span>, <span class="stringliteral">"15438.000"</span>,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>          <span class="stringliteral">"04:17:18.000 UT at start"</span>,</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>         {<span class="stringliteral">"OBSERVER"</span>, <span class="stringliteral">"UNKNOWN"</span>,</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>          <span class="stringliteral">"Name of observer"</span>,</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>         {<span class="stringliteral">"INSTRUME"</span>, <span class="stringliteral">"UNKNOWN"</span>,</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>          <span class="stringliteral">"Instrument used"</span>,</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         {<span class="stringliteral">"PI-COI"</span>, <span class="stringliteral">"'555555555'"</span>,</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>          <span class="stringliteral">"Name of PI and COI"</span>,</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>         {<span class="stringliteral">"OBJECT"</span>, <span class="stringliteral">"None"</span>,</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>          <span class="stringliteral">"Original target"</span>,</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>         {<span class="stringliteral">"PCOUNT"</span>, <span class="stringliteral">"0"</span>,</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>          <span class="stringliteral">"Number of parameters per group"</span>,</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>         {<span class="stringliteral">"GCOUNT"</span>, <span class="stringliteral">"1"</span>,</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>          <span class="stringliteral">"Number of groups"</span>,</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>         {<span class="stringliteral">"CRVAL1"</span>, <span class="stringliteral">"181.41734"</span>,</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>          <span class="stringliteral">"12:05:40.1, RA at ref pixel"</span>,</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         {<span class="stringliteral">"CRPIX1"</span>, <span class="stringliteral">"2341.8585366"</span>,</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>          <span class="stringliteral">"Reference pixel in X"</span>,</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>         {<span class="stringliteral">"CDELT1"</span>, <span class="stringliteral">"0.20500000"</span>,</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>          <span class="stringliteral">"SS arcsec per pixel in RA"</span>,</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>         {<span class="stringliteral">"CTYPE1"</span>, <span class="stringliteral">"RA---TAN"</span>,</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>          <span class="stringliteral">"pixel coordinate system"</span>,</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>         {<span class="stringliteral">"CRVAL2"</span>, <span class="stringliteral">"-7.65555"</span>,</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>          <span class="stringliteral">"-07:39:19.9, DEC at ref pixel"</span>,</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>         {<span class="stringliteral">"CRPIX2"</span>, <span class="stringliteral">"2487.8585366"</span>,</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>          <span class="stringliteral">"Reference pixel in Y"</span>,</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>         {<span class="stringliteral">"CDELT2"</span>, <span class="stringliteral">"0.20500000"</span>,</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>          <span class="stringliteral">"SS arcsec per pixel in DEC"</span>,</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         {<span class="stringliteral">"CTYPE2"</span>, <span class="stringliteral">"DEC--TAN"</span>,</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>          <span class="stringliteral">"pixel coordinate system"</span>,</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>         {<span class="stringliteral">"BSCALE"</span>, <span class="stringliteral">"1.0"</span>,</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>          <span class="stringliteral">"pixel=FITS*BSCALE+BZERO"</span>,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>         {<span class="stringliteral">"BZERO"</span>, <span class="stringliteral">"32768.0"</span>,</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>          <span class="stringliteral">"pixel=FITS*BSCALE+BZERO"</span>,</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>         {<span class="stringliteral">"CD1_1"</span>, <span class="stringliteral">"0.000057"</span>,</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>          <span class="stringliteral">"Translation matrix element"</span>,</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>         {<span class="stringliteral">"CD1_2"</span>, <span class="stringliteral">"0.000000"</span>,</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>          <span class="stringliteral">"Translation matrix element"</span>,</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>         {<span class="stringliteral">"CD2_1"</span>, <span class="stringliteral">"0.000000"</span>,</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>          <span class="stringliteral">"Translation matrix element"</span>,</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>         {<span class="stringliteral">"CD2_2"</span>, <span class="stringliteral">"0.000057"</span>,</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>          <span class="stringliteral">"Translation matrix element"</span>,</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>          CPL_TYPE_DOUBLE},</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>         {<span class="stringliteral">"HIERARCH ESO OBS DID"</span>, <span class="stringliteral">"ESO-VLT-DIC.OBS-1.7"</span>,</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>          <span class="stringliteral">"OBS Dictionary"</span>,</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>         {<span class="stringliteral">"HIERARCH ESO OBS OBSERVER"</span>, <span class="stringliteral">"UNKNOWN"</span>,</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>          <span class="stringliteral">"Observer Name"</span>,</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>         {<span class="stringliteral">"HIERARCH ESO OBS PI-COI NAME"</span>, <span class="stringliteral">"UNKNOWN"</span>,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>          <span class="stringliteral">"PI-COI name"</span>,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>         {<span class="stringliteral">"HIERARCH ESO INS GRAT NAME"</span>, <span class="stringliteral">"HR"</span>,</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>          <span class="stringliteral">"Grating name"</span>,</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>         {<span class="stringliteral">"HIERARCH ESO PRO CATG"</span>, <span class="stringliteral">"X"</span>,</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>          <span class="stringliteral">"Product category"</span>,</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>          CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>         {<span class="stringliteral">"HIERARCH ESO TPL NEXP"</span>, <span class="stringliteral">"5"</span>,</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>          <span class="stringliteral">"Number of exposures"</span>,</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>          CPL_TYPE_INT},</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>         {<span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"1st history record"</span>, NULL, CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>         {<span class="stringliteral">"COMMENT"</span>, <span class="stringliteral">"1st comment record"</span>, NULL, CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>         {<span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"2st history record"</span>, NULL, CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>         {<span class="stringliteral">"COMMENT"</span>, <span class="stringliteral">"2st comment record"</span>, NULL, CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>         {<span class="stringliteral">"COMMENT"</span>, <span class="stringliteral">"3st comment record"</span>, NULL, CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>         {<span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">"3st history record"</span>, NULL, CPL_TYPE_STRING},</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>         {<span class="stringliteral">"END"</span>, NULL, NULL, CPL_TYPE_STRING}</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     };</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     FILE *file;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     <span class="keyword">const</span> cxchar *longname = <span class="stringliteral">"0123456789012345678901234567890123456789"</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>         <span class="stringliteral">"0123456789012345678901234567890123456789"</span>;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment">     * Test 1: Create a property list and check its validity.</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     plist = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     cx_assert(plist != NULL);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(plist));</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist) == 0);</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> <span class="comment">     * Test 2: Append properties to the list created in the previous test</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment">     *         and verify the data.</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     uves_propertylist_append_char(plist, keys[0], <span class="charliteral">'a'</span>);</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, keys[0], comments[0]);</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     uves_propertylist_append_bool(plist, keys[1], 1);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, keys[1], comments[1]);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     uves_propertylist_append_int(plist, keys[2], -1);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, keys[2], comments[2]);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     uves_propertylist_append_long(plist, keys[3], 32768);</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, keys[3], comments[3]);</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     uves_propertylist_append_float(plist, keys[4], fval[0]);</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, keys[4], comments[4]);</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     uves_propertylist_append_double(plist, keys[5], dval[0]);</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, keys[5], comments[5]);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     uves_propertylist_append_string(plist, keys[6], comments[6]);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, keys[6], comments[6]);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     cx_assert(!<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(plist));</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist) == 7);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     <span class="keywordflow">for</span> (i = 0; i < <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist); i++) {</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>         cpl_property *p = uves_propertylist_get(plist, i);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>         cx_assert(!strcmp(cpl_property_get_name(p), keys[i]));</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>         cx_assert(!strcmp(cpl_property_get_comment(p), comments[i]));</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>         cx_assert(cpl_property_get_type(p) == types[i]);</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>         cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, keys[i]));</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>         cx_assert(!strcmp(<a class="code" href="group__uves__propertylist.html#ga648f33387b636d2fea612aafbac02d18" title="Get the comment of the given property list entry.">uves_propertylist_get_comment</a>(plist, keys[i]),</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>                           comments[i]));</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>         cx_assert(<a class="code" href="group__uves__propertylist.html#ga2ee26ca559adc30a12a3e4dcf003b52d" title="Get the the type of a property list entry.">uves_propertylist_get_type</a>(plist, keys[i]) == types[i]);</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     }</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gae9273c454206f9c51055aa1206183d37" title="Get the character value of the given property list entry.">uves_propertylist_get_char</a>(plist, keys[0]) == <span class="charliteral">'a'</span>);</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga1915e9a72e6f0580cadb0736ea43d6dc" title="Get the boolean value of the given property list entry.">uves_propertylist_get_bool</a>(plist, keys[1]) == 1);</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(plist, keys[2]) == -1);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga62f1a977f79c807936a3ff394ca6280e" title="Get the long value of the given property list entry.">uves_propertylist_get_long</a>(plist, keys[3]) == 32768);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> </div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     fval[1] = <a class="code" href="group__uves__propertylist.html#ga71f81602d966afe5b8efb2d4a962ba8b" title="Get the float value of the given property list entry.">uves_propertylist_get_float</a>(plist, keys[4]);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     cx_assert(!memcmp(&fval[0], &fval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)));</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>     dval[1] = <a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(plist, keys[5]);</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     cx_assert(!strcmp(<a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(plist, keys[6]),</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>                       comments[6]));</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="comment">     * Test 3: Modify the values of the property list entries</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="comment">     *         and verify the data.</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga3848313f04afa3606dbbc560746f5025" title="Set the value of the given character property list entry.">uves_propertylist_set_char</a>(plist, keys[0], <span class="charliteral">'b'</span>) == 0);</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gae9273c454206f9c51055aa1206183d37" title="Get the character value of the given property list entry.">uves_propertylist_get_char</a>(plist, keys[0]) == <span class="charliteral">'b'</span>);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga1b920e8880391034ba16248071aaeda5" title="Set the value of the given boolean property list entry.">uves_propertylist_set_bool</a>(plist, keys[1], 0) == 0);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga1915e9a72e6f0580cadb0736ea43d6dc" title="Get the boolean value of the given property list entry.">uves_propertylist_get_bool</a>(plist, keys[1]) == 0);</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaef59cbe7747d8778af96087b23c8d682" title="Set the value of the given integer property list entry.">uves_propertylist_set_int</a>(plist, keys[2], -1) == 0);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(plist, keys[2]) == -1);</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga188d6bd12ef15a5c4aff8713339a443a" title="Set the value of the given long property list entry.">uves_propertylist_set_long</a>(plist, keys[3], 1) == 0);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga62f1a977f79c807936a3ff394ca6280e" title="Get the long value of the given property list entry.">uves_propertylist_get_long</a>(plist, keys[3]) == 1);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     fval[0] = 9.87654321;</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gadf1317627ff51b6cbcff9aec380fd51a" title="Set the value of the given float property list entry.">uves_propertylist_set_float</a>(plist, keys[4], fval[0]) == 0);</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     fval[1] = <a class="code" href="group__uves__propertylist.html#ga71f81602d966afe5b8efb2d4a962ba8b" title="Get the float value of the given property list entry.">uves_propertylist_get_float</a>(plist, keys[4]);</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     cx_assert(!memcmp(&fval[0], &fval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)));</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     dval[0] = -9.87654321;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga5e507cfe564326f9e5474c5773d6dd24" title="Set the value of the given double property list entry.">uves_propertylist_set_double</a>(plist, keys[5], dval[0]) == 0);</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     dval[1] = <a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(plist, keys[5]);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabbc55af6700c2d1d28f82131b56a3b7b" title="Set the value of the given string property list entry.">uves_propertylist_set_string</a>(plist, keys[6], comments[0]) == 0);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     cx_assert(!strcmp(<a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(plist, keys[6]),</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>                       comments[0]));</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="comment">     * Test 4: Check that trying to modify an entry with a different</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> <span class="comment">     *         type is properly failing.</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> </div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     <span class="keywordflow">if</span> (0) test_plist_dump(plist);</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga3848313f04afa3606dbbc560746f5025" title="Set the value of the given character property list entry.">uves_propertylist_set_char</a>(plist, keys[1], <span class="charliteral">'a'</span>) ==</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>               CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     <span class="keywordflow">if</span> (0) test_plist_dump(plist);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> </div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga1b920e8880391034ba16248071aaeda5" title="Set the value of the given boolean property list entry.">uves_propertylist_set_bool</a>(plist, keys[2], 1) ==</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>               CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaef59cbe7747d8778af96087b23c8d682" title="Set the value of the given integer property list entry.">uves_propertylist_set_int</a>(plist, keys[3], 1) ==</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>               CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga188d6bd12ef15a5c4aff8713339a443a" title="Set the value of the given long property list entry.">uves_propertylist_set_long</a>(plist, keys[4], 1) ==</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>               CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gadf1317627ff51b6cbcff9aec380fd51a" title="Set the value of the given float property list entry.">uves_propertylist_set_float</a>(plist, keys[5], 1.) ==</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>               CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga5e507cfe564326f9e5474c5773d6dd24" title="Set the value of the given double property list entry.">uves_propertylist_set_double</a>(plist, keys[6], 1.) ==</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>               CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabbc55af6700c2d1d28f82131b56a3b7b" title="Set the value of the given string property list entry.">uves_propertylist_set_string</a>(plist, keys[0], comments[0]) ==</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>               CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> <span class="comment">     * Test 5: Verify that values are inserted correctly into the property</span></div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> <span class="comment">     *         list.</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gab67312fdd5ec2579db318e2b73f83793" title="Insert a character value into a property list at the given position.">uves_propertylist_insert_char</a>(plist, keys[0],</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                                            keys[7], <span class="charliteral">'a'</span>) == 0);</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga6f4d1c1ff4e0c8fc7bb2edb551cba11e" title="Insert a character value into a property list after the given position.">uves_propertylist_insert_after_char</a>(plist, keys[0],</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>                                                  keys[7], <span class="charliteral">'c'</span>) == 0);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga2dfd30cad698338aa24bed3807772bcb" title="Insert a boolean value into a property list at the given position.">uves_propertylist_insert_bool</a>(plist, keys[1],</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                                            keys[8], 0) == 0);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gafeb4307649f4b8edc101e73c21ec7392" title="Insert a boolean value into a property list after the given position.">uves_propertylist_insert_after_bool</a>(plist, keys[1],</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                                                  keys[8], 1) == 0);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf4317df2406162e173e8c78274650da4" title="Insert a integer value into a property list at the given position.">uves_propertylist_insert_int</a>(plist, keys[2],</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>                                           keys[9], 0) == 0);</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga5c0d4cd29cecab431fd25b85472c3897" title="Insert a integer value into a property list after the given position.">uves_propertylist_insert_after_int</a>(plist, keys[2],</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>                                                 keys[9], 1) == 0);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gad1eced1cf3c10a77997c02f20ced0922" title="Insert a long value into a property list at the given position.">uves_propertylist_insert_long</a>(plist, keys[3], keys[10],</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>                                            123456789) == 0);</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga05a5bb534ed7284bb107c3abb3edfa34" title="Insert a long value into a property list after the given position.">uves_propertylist_insert_after_long</a>(plist, keys[3], keys[10],</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>                                                  123456789) == 0);</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> </div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gafa987cf50ee6314a8eddf4e4c284cdd0" title="Insert a float value into a property list at the given position.">uves_propertylist_insert_float</a>(plist, keys[4], keys[11],</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>                                             fval[0]) == 0);</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gab2793113a4ef8e13c523c7cad9b03220" title="Insert a float value into a property list after the given position.">uves_propertylist_insert_after_float</a>(plist, keys[4], keys[11],</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>                                                   -fval[0]) == 0);</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga3541bde9170abf5eb52c6351ae03da31" title="Insert a double value into a property list at the given position.">uves_propertylist_insert_double</a>(plist, keys[5], keys[12],</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>                                              dval[0]) == 0);</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga448733ba77d4c3de7fd109ca7a07ffff" title="Insert a double value into a property list after the given position.">uves_propertylist_insert_after_double</a>(plist, keys[5], keys[12],</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>                                                    -dval[0]) == 0);</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gadae4a02d6cc8db83abeb9a8b670ade81" title="Insert a string value into a property list at the given position.">uves_propertylist_insert_string</a>(plist, keys[6],</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>                                              keys[13], <span class="stringliteral">""</span>) == 0);</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaa8d7d969eef7675c6ff44ff98e38dfe0" title="Insert a string value into a property list after the given position.">uves_propertylist_insert_after_string</a>(plist, keys[6],</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>                                                    keys[13], <span class="stringliteral">""</span>) == 0);</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     <span class="keywordflow">for</span> (i = 0; i < 7; i++) {</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>         cpl_property *p0 = uves_propertylist_get(plist, 3 * i);</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>         cpl_property *p1 = uves_propertylist_get(plist, 3 * i + 1);</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>         cpl_property *p2 = uves_propertylist_get(plist, 3 * i + 2);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>         cx_assert(!strcmp(cpl_property_get_name(p0), keys[i + 7]));</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>         cx_assert(!strcmp(cpl_property_get_name(p1), keys[i]));</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>         cx_assert(!strcmp(cpl_property_get_name(p2), keys[i + 7]));</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> </div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>         <span class="keywordflow">switch</span> (cpl_property_get_type(p0)) {</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>         <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>             cx_assert(cpl_property_get_char(p0) == <span class="charliteral">'a'</span>);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>             cx_assert(cpl_property_get_char(p2) == <span class="charliteral">'c'</span>);</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>             cx_assert(cpl_property_get_bool(p0) == 0);</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>             cx_assert(cpl_property_get_bool(p2) == 1);</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>             cx_assert(cpl_property_get_int(p0) == 0);</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>             cx_assert(cpl_property_get_int(p2) == 1);</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> </div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>         <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>             cx_assert(cpl_property_get_long(p0) == 123456789);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>             cx_assert(cpl_property_get_long(p2) == 123456789);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>             fval[1] = cpl_property_get_float(p0);</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>             cx_assert(!memcmp(&fval[0], &fval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)));</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>             fval[1] = -cpl_property_get_float(p2);</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>             cx_assert(!memcmp(&fval[0], &fval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)));</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> </div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>             dval[1] = cpl_property_get_double(p0);</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>             cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> </div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>             dval[1] = -cpl_property_get_double(p2);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>             cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>             cx_assert(!strcmp(cpl_property_get_string(p0), <span class="stringliteral">""</span>));</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>             cx_assert(!strcmp(cpl_property_get_string(p2), <span class="stringliteral">""</span>));</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> </div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>             <span class="comment">/* This point should never be reached */</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>             cx_log(<span class="stringliteral">"uves_propertylist-test"</span>, CX_LOG_LEVEL_ERROR, <span class="stringliteral">"file %s: "</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>                    <span class="stringliteral">"line %d: Invalid value type encountered"</span>, __FILE__,</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                    __LINE__);</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>         }</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>     }</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> </div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> </div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> <span class="comment">     * Test 6: Verify that modification of or insertion at/after a non</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> <span class="comment">     *         existing elements is reported correctly.</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, <span class="stringliteral">"Non-existing key"</span>) == 0);</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> </div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga3848313f04afa3606dbbc560746f5025" title="Set the value of the given character property list entry.">uves_propertylist_set_char</a>(plist, <span class="stringliteral">"Non-existing key"</span>, <span class="charliteral">'a'</span>) ==</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>               CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga1b920e8880391034ba16248071aaeda5" title="Set the value of the given boolean property list entry.">uves_propertylist_set_bool</a>(plist, <span class="stringliteral">"Non-existing key"</span>, 1) ==</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>               CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaef59cbe7747d8778af96087b23c8d682" title="Set the value of the given integer property list entry.">uves_propertylist_set_int</a>(plist, <span class="stringliteral">"Non-existing key"</span>, 1) ==</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>               CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga188d6bd12ef15a5c4aff8713339a443a" title="Set the value of the given long property list entry.">uves_propertylist_set_long</a>(plist, <span class="stringliteral">"Non-existing key"</span>, 1) ==</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>               CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gadf1317627ff51b6cbcff9aec380fd51a" title="Set the value of the given float property list entry.">uves_propertylist_set_float</a>(plist, <span class="stringliteral">"Non-existing key"</span>, 1) ==</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>               CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga5e507cfe564326f9e5474c5773d6dd24" title="Set the value of the given double property list entry.">uves_propertylist_set_double</a>(plist, <span class="stringliteral">"Non-existing key"</span>, 1) ==</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>               CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gabbc55af6700c2d1d28f82131b56a3b7b" title="Set the value of the given string property list entry.">uves_propertylist_set_string</a>(plist, <span class="stringliteral">"Non-existing key"</span>, <span class="stringliteral">""</span>) ==</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>               CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> </div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gab67312fdd5ec2579db318e2b73f83793" title="Insert a character value into a property list at the given position.">uves_propertylist_insert_char</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>                                            <span class="stringliteral">"h"</span>, <span class="charliteral">'a'</span>) == 1);</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga2dfd30cad698338aa24bed3807772bcb" title="Insert a boolean value into a property list at the given position.">uves_propertylist_insert_bool</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>                                            <span class="stringliteral">"h"</span>, 1) == 1);</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf4317df2406162e173e8c78274650da4" title="Insert a integer value into a property list at the given position.">uves_propertylist_insert_int</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>                                           <span class="stringliteral">"h"</span>, 1) == 1);</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gad1eced1cf3c10a77997c02f20ced0922" title="Insert a long value into a property list at the given position.">uves_propertylist_insert_long</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>                                            <span class="stringliteral">"h"</span>, 1) == 1);</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gafa987cf50ee6314a8eddf4e4c284cdd0" title="Insert a float value into a property list at the given position.">uves_propertylist_insert_float</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>                                             <span class="stringliteral">"h"</span>, 1) == 1);</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga3541bde9170abf5eb52c6351ae03da31" title="Insert a double value into a property list at the given position.">uves_propertylist_insert_double</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>                                              <span class="stringliteral">"h"</span>, 1) == 1);</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gadae4a02d6cc8db83abeb9a8b670ade81" title="Insert a string value into a property list at the given position.">uves_propertylist_insert_string</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>                                              <span class="stringliteral">"h"</span>, <span class="stringliteral">""</span>) == 1);</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> </div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga6f4d1c1ff4e0c8fc7bb2edb551cba11e" title="Insert a character value into a property list after the given position.">uves_propertylist_insert_after_char</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>                                                  <span class="stringliteral">"h"</span>, <span class="charliteral">'a'</span>) == 1);</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gafeb4307649f4b8edc101e73c21ec7392" title="Insert a boolean value into a property list after the given position.">uves_propertylist_insert_after_bool</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>                                                  <span class="stringliteral">"h"</span>, 1) == 1);</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga5c0d4cd29cecab431fd25b85472c3897" title="Insert a integer value into a property list after the given position.">uves_propertylist_insert_after_int</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>                                                 <span class="stringliteral">"h"</span>, 1) == 1);</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga05a5bb534ed7284bb107c3abb3edfa34" title="Insert a long value into a property list after the given position.">uves_propertylist_insert_after_long</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                                                  <span class="stringliteral">"h"</span>, 1) == 1);</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gab2793113a4ef8e13c523c7cad9b03220" title="Insert a float value into a property list after the given position.">uves_propertylist_insert_after_float</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                                                   <span class="stringliteral">"h"</span>, 1) == 1);</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga448733ba77d4c3de7fd109ca7a07ffff" title="Insert a double value into a property list after the given position.">uves_propertylist_insert_after_double</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                                                    <span class="stringliteral">"h"</span>, 1) == 1);</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaa8d7d969eef7675c6ff44ff98e38dfe0" title="Insert a string value into a property list after the given position.">uves_propertylist_insert_after_string</a>(plist, <span class="stringliteral">"Non-existing key"</span>,</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>                                                    <span class="stringliteral">"h"</span>, <span class="stringliteral">""</span>) == 1);</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> </div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> </div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="comment">     * Test 7: Create a copy of the property list and verify that original</span></div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> <span class="comment">     *         and copy are identical but do not share any resources.</span></div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> </div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>     _plist = <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(plist);</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>     cx_assert(_plist != NULL);</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>     cx_assert(_plist != plist);</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span> </div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>     <span class="keywordflow">for</span> (i = 0; i < <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist); i++) {</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>         cpl_property *p = uves_propertylist_get(plist, i);</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>         cpl_property *_p = uves_propertylist_get(_plist, i);</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> </div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>         cx_assert(cpl_property_get_name(p) != cpl_property_get_name(_p));</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>         cx_assert(!strcmp(cpl_property_get_name(p),</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>                           cpl_property_get_name(_p)));</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>         cx_assert(cpl_property_get_comment(p) == NULL ||</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>                   (cpl_property_get_comment(p) !=</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>                    cpl_property_get_comment(_p)));</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>         cx_assert(cpl_property_get_comment(p) == NULL ||</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>                   !strcmp(cpl_property_get_comment(p),</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>                           cpl_property_get_comment(_p)));</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> </div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>         <span class="keywordflow">switch</span> (cpl_property_get_type(p)) {</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>         <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>             cx_assert(cpl_property_get_char(p) ==</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>                       cpl_property_get_char(_p));</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>             cx_assert(cpl_property_get_bool(p) ==</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>                       cpl_property_get_bool(_p));</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> </div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>             cx_assert(cpl_property_get_int(p) ==</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>                       cpl_property_get_int(_p));</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> </div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>         <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>             cx_assert(cpl_property_get_long(p) ==</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>                       cpl_property_get_long(_p));</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> </div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>             fval[0] = cpl_property_get_float(p);</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>             fval[1] = cpl_property_get_float(_p);</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>             cx_assert(!memcmp(&fval[0], &fval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)));</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span> </div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>             dval[0] = cpl_property_get_double(p);</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>             dval[1] = cpl_property_get_double(_p);</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>             cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>             cx_assert(!strcmp(cpl_property_get_string(p),</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                               cpl_property_get_string(_p)));</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span> </div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>             <span class="comment">/* This point should never be reached */</span></div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>             cx_log(<span class="stringliteral">"uves_propertylist-test"</span>, CX_LOG_LEVEL_ERROR, <span class="stringliteral">"file %s: "</span></div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>                    <span class="stringliteral">"line %d: Invalid value type encountered"</span>, __FILE__,</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                    __LINE__);</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>         }</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>     }</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>     <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(_plist);</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> </div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> <span class="comment">     * Test 8: Erase elements from the property list and verify the list</span></div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> <span class="comment">     *         structure and the data.</span></div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span> </div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>     <span class="keywordflow">for</span> (i = 0; i < 7; i++) {</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>         <a class="code" href="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8" title="Erase the given property from a property list.">uves_propertylist_erase</a>(plist, keys[i + 7]);</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>         cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, keys[i + 7]) == 1);</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> </div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>         <a class="code" href="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8" title="Erase the given property from a property list.">uves_propertylist_erase</a>(plist, keys[i + 7]);</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>         cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, keys[i + 7]) == 0);</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>     }</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist) == 7);</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> </div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>     <span class="keywordflow">for</span> (i = 0; i < 7; i++) {</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>         cpl_property *p = uves_propertylist_get(plist, i);</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>         cx_assert(!strcmp(cpl_property_get_name(p), keys[i]));</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     }</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span> </div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     <span class="keywordflow">if</span> (0) test_plist_dump(plist);</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gae9273c454206f9c51055aa1206183d37" title="Get the character value of the given property list entry.">uves_propertylist_get_char</a>(plist, keys[0]) == <span class="charliteral">'b'</span>);</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga1915e9a72e6f0580cadb0736ea43d6dc" title="Get the boolean value of the given property list entry.">uves_propertylist_get_bool</a>(plist, keys[1]) == 0);</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(plist, keys[2]) == -1);</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga62f1a977f79c807936a3ff394ca6280e" title="Get the long value of the given property list entry.">uves_propertylist_get_long</a>(plist, keys[3]) == 1);</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> </div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>     fval[0] = 9.87654321;</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     fval[1] = <a class="code" href="group__uves__propertylist.html#ga71f81602d966afe5b8efb2d4a962ba8b" title="Get the float value of the given property list entry.">uves_propertylist_get_float</a>(plist, keys[4]);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     cx_assert(!memcmp(&fval[0], &fval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)));</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     dval[0] = -9.87654321;</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>     dval[1] = <a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(plist, keys[5]);</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> </div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>     cx_assert(!strcmp(<a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(plist, keys[6]),</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>                       comments[0]));</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> <span class="comment">     * Test 9: Erase all elements from the property list and verify that</span></div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span> <span class="comment">     *         the list is empty.</span></div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> </div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     <a class="code" href="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755" title="Remove all properties from a property list.">uves_propertylist_empty</a>(plist);</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(plist));</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist) == 0);</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> </div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(plist);</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span> </div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> <span class="comment">     * Test 10: Create a property list from an input (FITS) file. Verify the</span></div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> <span class="comment">     *          loaded data.</span></div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> </div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>     <span class="comment">/* Create a sample FITS header and save it to a file */</span></div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span> </div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>     header = qfits_header_new();</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> </div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>     <span class="keywordflow">for</span> (i = 0; (cxsize)i < <span class="keyword">sizeof</span> hdr / <span class="keyword">sizeof</span>(<span class="keyword">struct</span> fcard); i++)</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>         qfits_header_append(header, hdr[i].key, hdr[i].val, hdr[i].com, NULL);</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> </div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>     file = fopen(<span class="stringliteral">"cpltest1.fits"</span>, <span class="stringliteral">"w"</span>);</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>     qfits_header_dump(header, file);</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>     fclose(file);</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     <span class="comment">/* Load the 1st FITS header into a property list */</span></div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span> </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>     plist = <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(<span class="stringliteral">"cpltest1.fits"</span>, 0);</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>     cx_assert(plist != NULL);</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span> </div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, <span class="stringliteral">"END"</span>) == 0);</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist) ==</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>               (<span class="keyword">sizeof</span> hdr / <span class="keyword">sizeof</span>(<span class="keyword">struct</span> fcard) - 1));</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     <span class="keywordflow">for</span> (i = 0; i < <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist); i++) {</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>         <span class="keyword">const</span> cxchar *s = hdr[i].key;</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>         cpl_property *p = uves_propertylist_get(plist, i);</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> </div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span> <span class="comment">         * Strip HIERARCH from the keyword if it is present. HIERARCH</span></div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span> <span class="comment">         * is not carried over to the property name.</span></div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span> </div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>         <span class="keywordflow">if</span> (strstr(hdr[i].key, <span class="stringliteral">"HIERARCH"</span>))</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>             s = hdr[i].key + strlen(<span class="stringliteral">"HIERARCH"</span>) + 1;</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span> </div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>         cx_assert(!strcmp(cpl_property_get_name(p), s));</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>         cx_assert(hdr[i].com == NULL ||</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>                   !strcmp(cpl_property_get_comment(p), hdr[i].com));</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>         cx_assert(cpl_property_get_type(p) == hdr[i].type);</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span> </div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>         <span class="keywordflow">switch</span> (hdr[i].type) {</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>             cx_assert(cpl_property_get_bool(p) ==</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>                       (*hdr[i].val == <span class="charliteral">'T'</span> ? 1 : 0));</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span> </div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>             cx_assert(cpl_property_get_int(p) == atoi(hdr[i].val));</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> </div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>             dval[0] = cpl_property_get_double(p);</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>             dval[1] = atof(hdr[i].val);</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>             cx_assert(!memcmp(&dval[0], &dval[1], <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)));</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>             cx_assert(!strcmp(cpl_property_get_string(p),</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>                               qfits_pretty_string(hdr[i].val)));</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span> </div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>             cx_log(<span class="stringliteral">"uves_propertylist-test"</span>, CX_LOG_LEVEL_ERROR, <span class="stringliteral">"file %s: "</span></div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>                    <span class="stringliteral">"line %d: Invalid value type encountered"</span>, __FILE__,</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>                    __LINE__);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>         }</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>     }</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span> </div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span> <span class="comment">     * Test 11: Convert the qfits FITS header back into a property list and</span></div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span> <span class="comment">     *          verify that the original property list and the one created</span></div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> <span class="comment">     *          from the FITS header are identical.</span></div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span> </div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>     _plist = uves_propertylist_from_fits(header) ;</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>     cx_assert(_plist != NULL);</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist) ==</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>               <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(_plist));</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span> </div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>     <span class="keywordflow">for</span> (i = 0; i < <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist); i++) {</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>         cpl_property *p = uves_propertylist_get(plist, i);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>         cpl_property *_p = uves_propertylist_get(_plist, i);</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>         cx_assert(strcmp(cpl_property_get_name(p),</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>                          cpl_property_get_name(_p)) == 0);</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>         cx_assert(strcmp(cpl_property_get_comment(p),</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>                          cpl_property_get_comment(_p)) == 0);</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>         cx_assert(cpl_property_get_type(p) == cpl_property_get_type(_p));</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span> </div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>         <span class="keywordflow">switch</span> (cpl_property_get_type(p)) {</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>             cx_assert(cpl_property_get_bool(p) == cpl_property_get_bool(_p));</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span> </div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>             cx_assert(cpl_property_get_int(p) == cpl_property_get_int(_p));</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> </div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>             cx_assert(cpl_property_get_double(p) ==</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>                       cpl_property_get_double(_p));</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> </div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>             cx_assert(strcmp(cpl_property_get_string(p),</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>                              cpl_property_get_string(_p)) == 0);</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span> </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>             cx_log(<span class="stringliteral">"uves_propertylist-test"</span>, CX_LOG_LEVEL_ERROR,</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>                    <span class="stringliteral">"file %s: line %d: Invalid value type encountered"</span>,</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>                    __FILE__, __LINE__);</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>         }</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>     }</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> </div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>     <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(_plist);</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span> </div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span> </div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> <span class="comment">     * Test 12: Create a qfits header from the property list and verify</span></div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> <span class="comment">     *          the header data. Note that uves_propertylist_to_fits establishes</span></div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> <span class="comment">     *          the DICB sorting order.</span></div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> </div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>     qfits_header_sort(&header);</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span> </div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>     file = fopen(<span class="stringliteral">"cpltest1.fits"</span>, <span class="stringliteral">"w"</span>);</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>     qfits_header_dump(header, file);</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>     fclose(file);</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> </div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span> </div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>     _header = uves_propertylist_to_fits(plist);</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>     cx_assert(_header != NULL);</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> </div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>     file = fopen(<span class="stringliteral">"cpltest2.fits"</span>, <span class="stringliteral">"w"</span>);</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>     qfits_header_dump(_header, file);</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>     fclose(file);</div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> </div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> </div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>     <span class="keywordflow">for</span> (i = 0; i < header->n; i++) {</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>         cxchar key[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>         cxchar val[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>         cxchar com[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span> </div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>         cxchar _key[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>         cxchar _val[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>         cxchar _com[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span> </div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span> </div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>         qfits_header_getitem(header, i, key, val, com, NULL);</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>         cx_assert(qfits_header_getitem(_header, i, _key, _val,</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>                                        _com, NULL) == 0);</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span> </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>         cx_assert(!strcmp(key, _key));</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>         cx_assert(_com == NULL || !strcmp(com, _com));</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span> </div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>         <span class="keywordflow">switch</span> (qfits_get_type(val)) {</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>         <span class="keywordflow">case</span> QFITS_FLOAT:</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>             fval[0] = atof(val);</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>             fval[1] = atof(_val);</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span> </div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>             cx_assert(fabs(fval[0] - fval[1]) < FLT_EPS);</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> </div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>             cx_assert(strlen(val) == 0 ||</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>                       !strcmp(qfits_pretty_string(val),</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>                               qfits_pretty_string(_val)));</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>         }</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span> </div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>     }</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span> </div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>     qfits_header_destroy(header);</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>     qfits_header_destroy(_header);</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span> </div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span> </div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> <span class="comment">     * Test 13: Copy all propertys matching a given pattern from one</span></div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span> <span class="comment">     *          property list to another.</span></div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span> </div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>     _plist = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span> </div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>     <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(_plist, plist, <span class="stringliteral">"^ESO .*"</span>, 0);</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(_plist) == 6);</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(_plist, <span class="stringliteral">"ESO OBS DID"</span>) != 0);</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(_plist, <span class="stringliteral">"ESO OBS OBSERVER"</span>) != 0);</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(_plist, <span class="stringliteral">"ESO OBS PI-COI NAME"</span>) != 0);</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(_plist, <span class="stringliteral">"ESO INS GRAT NAME"</span>) != 0);</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(_plist, <span class="stringliteral">"ESO PRO CATG"</span>) != 0);</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(_plist, <span class="stringliteral">"ESO TPL NEXP"</span>) != 0);</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span> </div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>     <a class="code" href="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755" title="Remove all properties from a property list.">uves_propertylist_empty</a>(_plist);</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(_plist) != 0);</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> </div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>     <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(_plist, plist, <span class="stringliteral">"^ESO .*"</span>, 1);</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(_plist) ==</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>               (<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist) - 6));</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span> </div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span> </div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span> <span class="comment">     * Test 14: Erase all properties matching the given pattern from the</span></div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span> <span class="comment">     *          property list.</span></div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span> </div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>     <a class="code" href="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755" title="Remove all properties from a property list.">uves_propertylist_empty</a>(_plist);</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(_plist) != 0);</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> </div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>     <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(_plist, plist, <span class="stringliteral">"^ESO .*"</span>, 0);</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(_plist) == 6);</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span> </div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>     <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(_plist, <span class="stringliteral">"^ESO OBS .*"</span>, 0);</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(_plist) == 3);</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span> </div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>     <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(_plist, <span class="stringliteral">"ESO TPL NEXP"</span>, 0);</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(_plist) == 2);</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> </div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>     <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(_plist);</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>     <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(plist);</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span> </div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> <span class="comment">     * Test 15: Create a property list from a file. Only properties matching</span></div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span> <span class="comment">     *          the given pattern are loaded.</span></div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span> </div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>     plist = NULL;</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span> </div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>     plist = <a class="code" href="group__uves__propertylist.html#ga795683c7baa3ddfc26959339e90f8e6d" title="Create a filtered property list from a file.">uves_propertylist_load_regexp</a>(<span class="stringliteral">"cpltest1.fits"</span>, 0,</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>                                          <span class="stringliteral">"^ESO .*"</span>, 0);</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>     cx_assert(plist != NULL);</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(plist) == 0);</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist) == 6);</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, <span class="stringliteral">"ESO OBS DID"</span>) != 0);</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, <span class="stringliteral">"ESO OBS OBSERVER"</span>) != 0);</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, <span class="stringliteral">"ESO OBS PI-COI NAME"</span>) != 0);</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, <span class="stringliteral">"ESO INS GRAT NAME"</span>) != 0);</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, <span class="stringliteral">"ESO PRO CATG"</span>) != 0);</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, <span class="stringliteral">"ESO TPL NEXP"</span>) != 0);</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span> </div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>     <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(plist);</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> </div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span> </div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> <span class="comment">     * Test 16: Append a property list to another.</span></div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span> </div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>     plist = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>     _plist = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span> </div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>     uves_propertylist_append_char(plist, keys[0], <span class="charliteral">'a'</span>);</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, keys[0], comments[0]);</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> </div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>     uves_propertylist_append_bool(plist, keys[1], 1);</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, keys[1], comments[1]);</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span> </div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>     uves_propertylist_append_int(plist, keys[2], -1);</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, keys[2], comments[2]);</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span> </div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>     uves_propertylist_append_long(plist, keys[3], 32768);</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, keys[3], comments[3]);</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> </div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>     uves_propertylist_append_float(_plist, keys[4], fval[0]);</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(_plist, keys[4], comments[4]);</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> </div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>     uves_propertylist_append_double(_plist, keys[5], dval[0]);</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(_plist, keys[5], comments[5]);</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> </div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>     uves_propertylist_append_string(_plist, keys[6], comments[6]);</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(_plist, keys[6], comments[6]);</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> </div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>     cx_assert(!<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(plist));</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist) == 4);</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> </div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>     cx_assert(!<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(_plist));</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(_plist) == 3);</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> </div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>     <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(plist, _plist);</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> </div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>     cx_assert(!<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(plist));</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist) == 7);</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span> </div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>     cx_assert(!<a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(_plist));</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>     cx_assert(<a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(_plist) == 3);</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> </div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>     <span class="keywordflow">for</span> (i = 0; i < <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist); i++) {</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>         cpl_property *p = uves_propertylist_get(plist, i);</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span> </div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>         cx_assert(!strcmp(cpl_property_get_name(p), keys[i]));</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>         cx_assert(!strcmp(cpl_property_get_comment(p), comments[i]));</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>         cx_assert(cpl_property_get_type(p) == types[i]);</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> </div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>         cx_assert(<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, keys[i]));</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>         cx_assert(!strcmp(<a class="code" href="group__uves__propertylist.html#ga648f33387b636d2fea612aafbac02d18" title="Get the comment of the given property list entry.">uves_propertylist_get_comment</a>(plist, keys[i]),</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>                           comments[i]));</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>         cx_assert(<a class="code" href="group__uves__propertylist.html#ga2ee26ca559adc30a12a3e4dcf003b52d" title="Get the the type of a property list entry.">uves_propertylist_get_type</a>(plist, keys[i]) == types[i]);</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>     }</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span> </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> <span class="comment">     * Test 17: Create a FITS header using a list containing a property with</span></div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span> <span class="comment">     *          a name of length 80 characters (the length of a FITS card)</span></div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span> </div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>     <a class="code" href="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755" title="Remove all properties from a property list.">uves_propertylist_empty</a>(plist);</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>     uves_propertylist_append_string(plist, longname, comments[6]);</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> </div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>     qfits_header_destroy(uves_propertylist_to_fits(plist));</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> </div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span> </div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>     <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(_plist);</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>     _plist = NULL;</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> </div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>     <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(plist);</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>     plist = NULL;</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> </div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>     cx_assert( cpl_error_get_code() == CPL_ERROR_UNSPECIFIED );</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>     cpl_error_reset();</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> </div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> <span class="comment">     * All tests succeeded</span></div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> </div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span> </div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> }</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span> </div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> {</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> </div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>     <span class="comment">//cpl_msg_set_level(CPL_MSG_DEBUG);</span></div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>     test_main();</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> </div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__propertylist_8c_source.html b/html/uves__propertylist_8c_source.html
deleted file mode 100644
index 5ad148f..0000000
--- a/html/uves__propertylist_8c_source.html
+++ /dev/null
@@ -1,3555 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_propertylist.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_propertylist.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: uves_propertylist.c,v 1.20 2013-02-19 13:24:28 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO Common Pipeline Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2013-02-19 13:24:28 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.20 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> </div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#ifdef USE_CPL</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <uves_deque.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">//#include <cxmacros.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <cxmemory.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <cxmessages.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <cxstrutils.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <cxutils.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">//#include "cpl_error_impl.h"</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">//#include "cpl_propertylist_impl.h"</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <qfits.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <sys/types.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <regex.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <assert.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#include <cxdeque.h></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="keyword">enum</span> {</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     FITS_STDKEY_MAX = 8,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     FITS_SVALUE_MAX = 68</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> };</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * The property list type.</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="struct__uves__propertylist__.html">   89</a></span> <span class="keyword">struct </span><a class="code" href="struct__uves__propertylist__.html">_uves_propertylist_</a> {</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     <a class="code" href="struct__uves__deque__.html">uves_deque</a> *properties;</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> };</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Regular expresion filter type</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="struct__uves__regexp__.html">   98</a></span> <span class="keyword">struct </span><a class="code" href="struct__uves__regexp__.html">_uves_regexp_</a> {</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>     regex_t re;</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     cxbool invert;</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> };</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__uves__regexp__.html">_uves_regexp_</a> <a class="code" href="struct__uves__regexp__.html">uves_regexp</a>;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> propertylist_append_property(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keyword">const</span> cpl_property *p)</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> {</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     <span class="keywordflow">switch</span>(cpl_property_get_type(p)) {</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>         uves_propertylist_append_char(plist, cpl_property_get_name(p), cpl_property_get_char(p));</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>         uves_propertylist_append_bool(plist, cpl_property_get_name(p), cpl_property_get_bool(p));</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>         uves_propertylist_append_int(plist, cpl_property_get_name(p), cpl_property_get_int(p));</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>         uves_propertylist_append_long(plist, cpl_property_get_name(p), cpl_property_get_long(p));</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>         uves_propertylist_append_float(plist, cpl_property_get_name(p), cpl_property_get_float(p));</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>         uves_propertylist_append_double(plist, cpl_property_get_name(p), cpl_property_get_double(p));</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>         uves_propertylist_append_string(plist, cpl_property_get_name(p), cpl_property_get_string(p));</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>         cpl_msg_error(<span class="stringliteral">"Unknown property type: %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_property_get_type(p)));</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>         cpl_error_set(__func__, CPL_ERROR_UNSUPPORTED_MODE);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     }</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     <span class="comment">/* This is constant time!! */</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     cpl_property_set_comment(uves_propertylist_get(plist, <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist) - 1),</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>                              cpl_property_get_comment(p));</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> }</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> propertylist_prepend_property_cpl(cpl_propertylist *plist, <span class="keyword">const</span> cpl_property *p)</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> {</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     <span class="keywordflow">switch</span>(cpl_property_get_type(p)) {</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>         cpl_propertylist_prepend_char(plist, cpl_property_get_name(p), cpl_property_get_char(p));</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>         cpl_propertylist_prepend_bool(plist, cpl_property_get_name(p), cpl_property_get_bool(p));</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>         cpl_propertylist_prepend_int(plist, cpl_property_get_name(p), cpl_property_get_int(p));</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>         cpl_propertylist_prepend_long(plist, cpl_property_get_name(p), cpl_property_get_long(p));</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>         cpl_propertylist_prepend_float(plist, cpl_property_get_name(p), cpl_property_get_float(p));</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>         cpl_propertylist_prepend_double(plist, cpl_property_get_name(p), cpl_property_get_double(p));</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>         cpl_propertylist_prepend_string(plist, cpl_property_get_name(p), cpl_property_get_string(p));</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>         cpl_msg_error(<span class="stringliteral">"Unknown property type: %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_property_get_type(p)));</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>         cpl_error_set(__func__, CPL_ERROR_UNSUPPORTED_MODE);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     }</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     cpl_propertylist_set_comment(plist, cpl_property_get_name(p), cpl_property_get_comment(p));</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> }</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="keyword">static</span> cpl_propertylist *</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> uves_propertylist_to_cpl(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>)</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> {</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     cpl_propertylist *result;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     <span class="keywordtype">long</span> i;</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL) {</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>         result = NULL;</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     }</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>         result = cpl_propertylist_new();</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>         </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>         <span class="keywordflow">for</span> (i = <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(<span class="keyword">self</span>)-1; i >= 0; i--) {</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>             propertylist_prepend_property_cpl(</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                 result, </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>                 <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(<span class="keyword">self</span>, i));</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>         }</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     }</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> }</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> uves_propertylist_from_cpl(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> cpl_propertylist *list_cpl)</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> {</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     <span class="keywordtype">long</span> N = cpl_propertylist_get_size(list_cpl); <span class="comment">/* O(n) */</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     cpl_propertylist *copy = cpl_propertylist_duplicate(list_cpl); <span class="comment">/* O(n) */</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     <span class="keywordtype">long</span> i;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     assert( <a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(<span class="keyword">self</span>));</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     <span class="keywordflow">for</span> (i = 0; i < N; i++) {</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>         <span class="keyword">const</span> cpl_property *p = cpl_propertylist_get(copy, 0); <span class="comment">/* O(1) */</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>         propertylist_append_property(<span class="keyword">self</span>, p); <span class="comment">/* O(1) */</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>         cpl_propertylist_erase(copy, cpl_property_get_name(p)); <span class="comment">/* O(1),</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment">                                                                 erases only first match */</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     }</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     assert( cpl_propertylist_is_empty(copy));</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     cpl_propertylist_delete(copy);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> }</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment">/* Wrappers for often used functions which have cpl_propertylists in their interface */</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> cpl_error_code uves_vector_save(<span class="keyword">const</span> cpl_vector *v, <span class="keyword">const</span> <span class="keywordtype">char</span> *f, cpl_type_bpp bpp,</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>                                 <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header, <span class="keywordtype">unsigned</span> mode)</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> {</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     cpl_propertylist *header_cpl = uves_propertylist_to_cpl(header);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     cpl_vector_save(v, f, bpp, header_cpl, mode);</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     cpl_propertylist_delete(header_cpl);</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> }</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> cpl_error_code </div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> uves_image_save(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> <span class="keywordtype">char</span> *f, cpl_type_bpp bpp,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                                <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header, <span class="keywordtype">unsigned</span> mode)</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> {</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>   cpl_propertylist *header_cpl = NULL;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(header_cpl=uves_propertylist_to_cpl(header));</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_save(image, f, bpp, header_cpl, mode));</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>  cleanup:</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     cpl_propertylist_delete(header_cpl);</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> }</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> cpl_error_code uves_imagelist_save(<span class="keyword">const</span> cpl_imagelist *imagelist, <span class="keyword">const</span> <span class="keywordtype">char</span> *f, cpl_type_bpp bpp,</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>                                <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header, <span class="keywordtype">unsigned</span> mode)</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> {</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     cpl_propertylist *header_cpl = uves_propertylist_to_cpl(header);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     cpl_imagelist_save(imagelist, f, bpp, header_cpl, mode);</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     cpl_propertylist_delete(header_cpl);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> }</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> cpl_error_code uves_table_save(<span class="keyword">const</span> cpl_table *table, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header,</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>                                <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *ext_header, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename,</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>                                <span class="keywordtype">unsigned</span> mode)</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> {</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     cpl_propertylist *header_cpl = uves_propertylist_to_cpl(header);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     cpl_propertylist *ext_header_cpl = uves_propertylist_to_cpl(ext_header);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     cpl_table_save(table, header_cpl, ext_header_cpl, filename, mode);</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     cpl_propertylist_delete(header_cpl);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     cpl_propertylist_delete(ext_header_cpl);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> }</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> cpl_error_code uves_dfs_setup_product_header(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header,</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                                              <span class="keyword">const</span> cpl_frame *product_frame,</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                                              <span class="keyword">const</span> cpl_frameset *framelist,</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>                                              <span class="keyword">const</span> cpl_parameterlist *parlist,</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *recid,</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *pipeline_id,</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *dictionary_id)</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> {</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     cpl_propertylist *header_cpl = uves_propertylist_to_cpl(header);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 8, 0) </span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="preprocessor"></span>    cpl_dfs_setup_product_header(header_cpl,</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>                                  product_frame,</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>                                  framelist,</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>                                  parlist,</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>                                  recid,</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>                                  pipeline_id,</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>                                  dictionary_id,NULL);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="preprocessor">#else </span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="preprocessor"></span>    cpl_dfs_setup_product_header(header_cpl,</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>                                  product_frame,</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>                                  framelist,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                                  parlist,</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                                  recid,</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                                  pipeline_id,</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>                                  dictionary_id);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="preprocessor"></span>    <a class="code" href="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755" title="Remove all properties from a property list.">uves_propertylist_empty</a>(header);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     uves_propertylist_from_cpl(header, header_cpl);</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     cpl_propertylist_delete(header_cpl);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> </div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> }</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> cpl_error_code uves_table_sort(cpl_table *t, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *list)</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> {</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <span class="comment">/* Just use this workaround ... */</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>    cpl_table_sort(t, (<span class="keyword">const</span> cpl_propertylist*) list);</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="comment">/* ... instead of this one */</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="preprocessor"></span>    cpl_propertylist *list_cpl = uves_propertylist_to_cpl(list);</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     cpl_table_sort(t, list_cpl);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     cpl_propertylist_delete(list_cpl);</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="preprocessor">#endif    </span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="preprocessor"></span>    <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> }</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment"> * Private methods</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="comment">/* Workarounds for cpl_error_push/pop which are not exported */</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="keyword">static</span> cpl_error_code push_pop_error;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="keyword">static</span> <span class="keywordtype">void</span> error_push(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> {</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     push_pop_error = cpl_error_get_code();</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     <span class="comment">/* Don't track location */</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     cpl_error_reset();</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> }</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="keyword">static</span> <span class="keywordtype">void</span> error_pop(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> {</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     <span class="keywordflow">if</span> (push_pop_error != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>         {</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>             cpl_error_set(__func__, push_pop_error);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>         }</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> }</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> </div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="keyword">static</span> cxint</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> _uves_propertylist_filter_regexp(cxcptr key, cxcptr filter)</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> {</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     <span class="keyword">const</span> <a class="code" href="struct__uves__regexp__.html">uves_regexp</a> *_filter = (<span class="keyword">const</span> <a class="code" href="struct__uves__regexp__.html">uves_regexp</a> *)filter;</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     <span class="keywordflow">if</span> (regexec(&_filter->re, key, (<span class="keywordtype">size_t</span>)0, NULL, 0) == REG_NOMATCH)</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>         <span class="keywordflow">return</span> _filter->invert == TRUE ? TRUE : FALSE;</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     <span class="keywordflow">return</span> _filter->invert == TRUE ? FALSE : TRUE;</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> }</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> <span class="keyword">static</span> cxbool</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> _uves_propertylist_compare(<span class="keyword">const</span> cpl_property *property, <span class="keyword">const</span> <span class="keywordtype">char</span> *name)</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> {</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <span class="keyword">const</span> cxchar *key = cpl_property_get_name(property);</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     <span class="keywordflow">return</span> strcmp(key, name) == 0 ? TRUE : FALSE;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> }</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="comment">/* The following function is not used</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="comment">static cxbool</span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="comment">_uves_propertylist_compare_start(const cpl_property *property,</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="comment">                                const char *part_name)</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> <span class="comment">{</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="comment"></span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> <span class="comment">    const cxchar *key = cpl_property_get_name(property);</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="comment"></span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="comment">    if (strstr(key, part_name) == key)</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="comment">        return TRUE;</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="comment"></span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment">    return FALSE;</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="comment"></span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="comment">}</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> <span class="keyword">static</span> cxbool</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> _uves_propertylist_compare_regexp(<span class="keyword">const</span> cpl_property *property, <a class="code" href="struct__uves__regexp__.html">uves_regexp</a> *re)</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> {</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     <span class="keyword">const</span> cxchar *key = cpl_property_get_name(property);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     <span class="keywordflow">return</span> _uves_propertylist_filter_regexp(key, re);</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> }</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> </div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> </div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> <span class="keyword">static</span> uves_deque_iterator</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> _uves_propertylist_find(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name)</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> {</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     uves_deque_iterator first, last;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     cpl_property *p;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     first = uves_deque_begin(self->properties);</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     last = uves_deque_end(self->properties);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     <span class="keywordflow">while</span> (first != last) {</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>         p = uves_deque_get(self->properties, first);</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>         <span class="keywordflow">if</span> (_uves_propertylist_compare(p, name))</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>         first = uves_deque_next(self->properties, first);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     }</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     <span class="keywordflow">return</span> first;</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> }</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> <span class="keyword">static</span> cpl_property *</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> _uves_propertylist_get(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name)</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> {</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     uves_deque_iterator pos = _uves_propertylist_find(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     <span class="keywordflow">if</span> (pos == uves_deque_end(self->properties))</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     <span class="keywordflow">return</span> uves_deque_get(self->properties, pos);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> }</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> </div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> _uves_propertylist_insert(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> cxchar *where,</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>                          cxbool after, <span class="keyword">const</span> cxchar *name, cpl_type type,</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>                          cxptr value)</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> {</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     uves_deque_iterator pos;</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     cpl_property *property;</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> </div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> <span class="comment">     * Find the position where value should be inserted.</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> </div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     pos = _uves_propertylist_find(<span class="keyword">self</span>, where);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     <span class="keywordflow">if</span> (pos == uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     }</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     <span class="keywordflow">if</span> (after) {</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>         pos = uves_deque_next(self->properties, pos);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     }</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> <span class="comment">     * Create the property for value and fill it.</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>     <span class="keyword">property</span> = cpl_property_new(name, type);</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>     <span class="keywordflow">if</span> (!property) {</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     }</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> <span class="comment">     * Map property type to the driver function's argument type.</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     <span class="keywordflow">switch</span> (type) {</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>         <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>             cpl_property_set_char(property, *((cxchar *)value));</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> </div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>             cpl_property_set_bool(property, *((cxint *)value));</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>             cpl_property_set_int(property, *((cxint *)value));</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>         <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>             cpl_property_set_long(property, *((cxlong *)value));</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>             cpl_property_set_float(property, *((cxfloat *)value));</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>             cpl_property_set_double(property, *((cxdouble *)value));</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>             cpl_property_set_string(property, ((<span class="keyword">const</span> cxchar *)value));</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>             <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     }</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> <span class="comment">     * Insert it into the list</span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     uves_deque_insert(self->properties, pos, property);</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> </div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> }</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="comment"> * Parser for FITS cards. Returns 0 if the card was successfully parsed</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment"> * into its components, 1 if the card should be ignored and a negative</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="comment"> * number if an error occurred. If the parsing was successful the function</span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="comment"> * fills the buffers pointed to by key, value, comment and type.</span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="comment"> * The buffers key, value and comment must, at least, have the size</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="comment"> * FITS_LINESZ + 1!</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="comment"> * Errors:</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="comment"> *  -1  Invalid pointer to the input FITS header.</span></div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="comment"> *  -2  Invalid keyword name detected (cf. qfits_header_getitem())</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> </div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> <span class="keyword">static</span> cxint</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> _uves_propertylist_decode_fits(<span class="keyword">const</span> qfits_header *header, cxint i,</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>                               cxchar *key, cxint *type, cxchar *value,</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>                               cxchar *comment)</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> {</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     cxchar _key[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     cxchar _value[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     cxchar _comment[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>     cxchar *s;</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> </div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     <span class="keywordflow">if</span> (!header)</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> <span class="comment">     * Get a FITS card, decode it into its components and determine</span></div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> <span class="comment">     * its type.</span></div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>     <span class="keywordflow">if</span> (qfits_header_getitem((qfits_header *)header, i, _key, _value,</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>                              _comment, NULL) != 0) {</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>         <span class="keywordflow">return</span> -2;</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>     }</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> </div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> <span class="comment">     * Skip the END record. Qfits ignores empty header cards. Therefore</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> <span class="comment">     * we do not need to take care of them here, but who knows.</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> </div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     s = _key;</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>     <span class="keywordflow">if</span> (strncmp(s, <span class="stringliteral">"END"</span>, 3) == 0 || strncmp(s, <span class="stringliteral">"        "</span>, 8) == 0 ||</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>         strlen(s) == 0) {</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     }</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> </div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> </div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> <span class="comment">     * strip the HIERARCH prefix from the keyword name if it</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> <span class="comment">     * is present.</span></div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> </div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>     <span class="keywordflow">if</span> (strncmp(s, <span class="stringliteral">"HIERARCH "</span>, 9) == 0)</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>         s += 9;</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> </div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>     strncpy(key, s, FITS_LINESZ);</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>     key[FITS_LINESZ] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> </div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> <span class="comment">     * Parse the value string and determine its type. Comment and</span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> <span class="comment">     * history records are forced to be strings. The type check</span></div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> <span class="comment">     * has to be done before cleaning the value, so that strings</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="comment">     * like '1.0' are still recognized as such.</span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> </div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>     s = _value;</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> </div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>     <span class="keywordflow">if</span> (strncmp(_key, <span class="stringliteral">"COMMENT"</span>, 7) == 0 || strncmp(_key, <span class="stringliteral">"HISTORY"</span>, 7) == 0) {</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>         *type = QFITS_STRING;</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> </div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> <span class="comment">         * qfits returns an empty string if there is no value for a keyword</span></div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> </div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>         <span class="keywordflow">if</span> (strlen(s) == 0) {</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>             value[0] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>         }</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>             strncpy(value, s, FITS_LINESZ);</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>         }</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>     }</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>         *type = qfits_get_type(s);</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>         strncpy(value, qfits_pretty_string(s), FITS_LINESZ);</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>         value[FITS_LINESZ] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>     }</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> </div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> <span class="comment">     * Parse the comment</span></div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> </div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>     s = _comment;</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> </div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="comment">     * qfits returns an empty string if there is no value for a keyword</span></div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> </div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>     <span class="keywordflow">if</span> (strlen(s) == 0)</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>         comment[0] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>         strncpy(comment, s, FITS_LINESZ);</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>         comment[FITS_LINESZ] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>     }</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> </div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> }</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span> </div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span> </div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span> <span class="comment"> * The function converts a FITS header to a property list ignoring</span></div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span> <span class="comment"> * keywords for which _uves_propertylist_decode_fits() returns 1. If</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> <span class="comment"> * parsing a FITS keyword fails the function returns the status from</span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> <span class="comment"> * _uves_propertylist_decode_fits(). If the type of a FITS keyword is not</span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> <span class="comment"> * supported -1 is returned.</span></div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span> </div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> <span class="keyword">static</span> cxint</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> _uves_propertylist_from_fits(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>,</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>                             <span class="keyword">const</span> qfits_header *header,</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>                             cx_compare_func filter,</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>                             cxcptr data)</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> {</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> </div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     <span class="keyword">register</span> cxint i;</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span> </div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> </div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>     cx_assert(<span class="keyword">self</span> != NULL);</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>     cx_assert(header != NULL);</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> </div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> <span class="comment">     * Build the property list from the header.</span></div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> </div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>     <span class="keywordflow">for</span> (i = 0; i < header->n; i++) {</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>         <span class="keyword">register</span> cxint status;</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> </div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>         cxint type;</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>         cxint ival;</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span> </div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>         cxdouble dval;</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span> </div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>         cxchar key[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>         cxchar value[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>         cxchar comment[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>         cpl_property *property;</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span> </div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>         status = _uves_propertylist_decode_fits(header, i, key, &type,</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>                                                value, comment);</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>         <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>             <span class="keywordflow">switch</span> (status) {</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>             <span class="keywordflow">case</span> 1:</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                 <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> </div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>                 <span class="keywordflow">return</span> status;</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>             }</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>         }</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> </div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> </div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>         <span class="keywordflow">if</span> (filter != NULL && filter(key, data) == FALSE) {</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>             <span class="keywordflow">continue</span>;</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>         }</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span> </div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> </div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> <span class="comment">         * Create the property from the parsed FITS card.</span></div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span> </div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>         <span class="keywordflow">switch</span> (type) {</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>             <span class="keywordflow">case</span> QFITS_BOOLEAN:</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                 <span class="keyword">property</span> = cpl_property_new(key, CPL_TYPE_BOOL);</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span> </div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>                 ival = *value == <span class="charliteral">'T'</span> ? 1 : 0;</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>                 cpl_property_set_bool(property, ival);</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>                 cpl_property_set_comment(property, comment);</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span> </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>             <span class="keywordflow">case</span> QFITS_INT:</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                 <span class="keyword">property</span> = cpl_property_new(key, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span> </div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>                 sscanf(value, <span class="stringliteral">"%d"</span>, &ival);</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>                 cpl_property_set_int(property, ival);</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>                 cpl_property_set_comment(property, comment);</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span> </div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>             <span class="keywordflow">case</span> QFITS_FLOAT:</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>                 <span class="keyword">property</span> = cpl_property_new(key, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> </div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>                 sscanf(value, <span class="stringliteral">"%lf"</span>, &dval);</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>                 cpl_property_set_double(property, dval);</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>                 cpl_property_set_comment(property, comment);</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>                 <span class="comment">/* FIXME: qfits does not correctly report the type for</span></div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> <span class="comment">                 *        string values if the single quotes have been</span></div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span> <span class="comment">                 *        stripped. In this case it reports QFITS_UNKNOWN</span></div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> <span class="comment">                 *        for the value's type. As a temporary (!) work</span></div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> <span class="comment">                 *        around we accept everything unknown as a string.</span></div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> <span class="comment">                 */</span></div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>             <span class="keywordflow">case</span> QFITS_UNKNOWN:</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>             <span class="keywordflow">case</span> QFITS_STRING:</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>                 <span class="keyword">property</span> = cpl_property_new(key, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span> </div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>                 cpl_property_set_string(property, value);</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>                 cpl_property_set_comment(property, comment);</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> </div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>             <span class="keywordflow">case</span> QFITS_COMPLEX:</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> </div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>                 <span class="comment">/* FIXME: Add support for complex keywords. */</span></div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span> </div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>                 <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>         }</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span> </div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>         uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>     }</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span> </div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span> }</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span> </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span> </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span> </div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span> <span class="comment"> * Public methods</span></div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span> </div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *</div>
-<div class="line"><a name="l00772"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596">  772</a></span> <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> {</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span> </div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span> = cx_malloc(<span class="keyword">sizeof</span> *<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     <span class="keyword">self</span>->properties = uves_deque_new();</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>     <span class="keywordflow">return</span> <span class="keyword">self</span>;</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> </div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span> }</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> </div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span> </div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *</div>
-<div class="line"><a name="l00809"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07">  809</a></span> <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>)</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span> {</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span> </div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_duplicate"</span>;</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span> </div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>     uves_deque_iterator first, last;</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span> </div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *copy = NULL;</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> </div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span> </div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL) {</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>     }</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span> </div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>     cx_assert(self->properties != NULL);</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span> </div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span> </div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>     copy = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span> </div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>     first = uves_deque_begin(self->properties);</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>     last = uves_deque_end(self->properties);</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span> </div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>     <span class="keywordflow">while</span> (first != last) {</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>         cpl_property *tmp = uves_deque_get(self->properties, first);</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> </div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>         uves_deque_push_back(copy->properties, cpl_property_duplicate(tmp));</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>         first = uves_deque_next(self->properties, first);</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>     }</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span> </div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>     <span class="keywordflow">return</span> copy;</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span> </div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span> }</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span> </div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span> </div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00858"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90">  858</a></span> <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>)</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> {</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> </div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span>) {</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>         uves_deque_destroy(self->properties, (cx_free_func)cpl_property_delete);</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>         cx_free((<span class="keywordtype">void</span> *)<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>     }</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> </div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> </div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span> }</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> </div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> </div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> <span class="keywordtype">long</span></div>
-<div class="line"><a name="l00898"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851">  898</a></span> <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>)</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span> {</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> </div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_get_size"</span>;</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span> </div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span> </div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL) {</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>         <span class="keywordflow">return</span> 0L;</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>     }</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span> </div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>     <span class="keywordflow">return</span> (<span class="keywordtype">long</span>) uves_deque_size(self->properties);</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span> </div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span> }</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span> </div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span> </div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6">  940</a></span> <a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>)</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span> {</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> </div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_is_empty"</span>;</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span> </div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> </div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL) {</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>     }</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> </div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>     <span class="keywordflow">return</span> uves_deque_empty(self->properties);</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span> </div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span> }</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span> </div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> </div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> cpl_type</div>
-<div class="line"><a name="l00991"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga2ee26ca559adc30a12a3e4dcf003b52d">  991</a></span> <a class="code" href="group__uves__propertylist.html#ga2ee26ca559adc30a12a3e4dcf003b52d" title="Get the the type of a property list entry.">uves_propertylist_get_type</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>,  [...]
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> {</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span> </div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_get_type"</span>;</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span> </div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>     cpl_property *property;</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span> </div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> </div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>         <span class="keywordflow">return</span> CPL_TYPE_INVALID;</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>     }</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> </div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>     <span class="keywordflow">if</span> (property == NULL) {</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>         <span class="keywordflow">return</span> CPL_TYPE_INVALID;</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>     }</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> </div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>     <span class="keywordflow">return</span> cpl_property_get_type(property);</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> </div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> }</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> </div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> </div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01045"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b"> 1045</a></span> <a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword"> [...]
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> {</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> </div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_contains"</span>;</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span> </div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> </div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>     }</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> </div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>     <span class="keywordflow">return</span> _uves_propertylist_get(<span class="keyword">self</span>, name) != NULL ? 1 : 0;</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> </div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> }</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> </div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> </div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> </div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> </div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01093"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad"> 1093</a></span> <a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(<span class="keyword">const</span> cpl_propertylist *<span class="keyword">self</span>, <span class="keyword">const</span> <span class [...]
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> {</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> </div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"my_uves_propertylist_contains"</span>;</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> </div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> </div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>     }</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> </div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>     <span class="keywordflow">return</span> cpl_propertylist_has(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> </div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span> }</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span> </div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> </div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> </div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> </div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> </div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> </div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span> </div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span> cpl_error_code</div>
-<div class="line"><a name="l01153"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193"> 1153</a></span> <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="key [...]
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *comment)</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> {</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span> </div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_set_comment"</span>;</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> </div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>     cpl_property *property;</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> </div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> </div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>     }</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span> </div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span> </div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>     <span class="keywordflow">if</span> (property == NULL) {</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>         <span class="keywordflow">return</span> CPL_ERROR_DATA_NOT_FOUND;</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>     }</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span> </div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>     cpl_property_set_comment(property, comment);</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> </div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span> </div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span> }</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> </div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span> </div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span> cpl_error_code</div>
-<div class="line"><a name="l01218"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga3848313f04afa3606dbbc560746f5025"> 1218</a></span> <a class="code" href="group__uves__propertylist.html#ga3848313f04afa3606dbbc560746f5025" title="Set the value of the given character property list entry.">uves_propertylist_set_char</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword [...]
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>                           <span class="keywordtype">char</span> value)</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span> {</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> </div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_set_char"</span>;</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span> </div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>     cpl_property *property;</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> </div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span> </div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>     }</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> </div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span> </div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>     <span class="keywordflow">if</span> (property == NULL) {</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>         <span class="keywordflow">return</span> CPL_ERROR_DATA_NOT_FOUND;</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>     }</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span> </div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>     <span class="keywordflow">return</span> cpl_property_set_char(property, value);</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> </div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span> }</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> </div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span> </div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> cpl_error_code</div>
-<div class="line"><a name="l01281"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga1b920e8880391034ba16248071aaeda5"> 1281</a></span> <a class="code" href="group__uves__propertylist.html#ga1b920e8880391034ba16248071aaeda5" title="Set the value of the given boolean property list entry.">uves_propertylist_set_bool</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword"> [...]
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> {</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span> </div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_set_bool"</span>;</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span> </div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>     cpl_property *property;</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span> </div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span> </div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>     }</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> </div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span> </div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>     <span class="keywordflow">if</span> (property == NULL) {</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>         <span class="keywordflow">return</span> CPL_ERROR_DATA_NOT_FOUND;</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>     }</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> </div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>     <span class="keywordflow">return</span> cpl_property_set_bool(property, value);</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span> </div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span> }</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span> </div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span> </div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span> cpl_error_code</div>
-<div class="line"><a name="l01343"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gaef59cbe7747d8778af96087b23c8d682"> 1343</a></span> <a class="code" href="group__uves__propertylist.html#gaef59cbe7747d8778af96087b23c8d682" title="Set the value of the given integer property list entry.">uves_propertylist_set_int</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">c [...]
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span> {</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span> </div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_set_int"</span>;</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> </div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>     cpl_property *property;</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> </div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span> </div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>     }</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span> </div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span> </div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>     <span class="keywordflow">if</span> (property == NULL) {</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>         <span class="keywordflow">return</span> CPL_ERROR_DATA_NOT_FOUND;</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>     }</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span> </div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>     <span class="keywordflow">return</span> cpl_property_set_int(property, value);</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span> </div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span> }</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span> </div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span> </div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span> cpl_error_code</div>
-<div class="line"><a name="l01405"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga188d6bd12ef15a5c4aff8713339a443a"> 1405</a></span> <a class="code" href="group__uves__propertylist.html#ga188d6bd12ef15a5c4aff8713339a443a" title="Set the value of the given long property list entry.">uves_propertylist_set_long</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">con [...]
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>                           <span class="keywordtype">long</span> value)</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> {</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span> </div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_set_long"</span>;</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> </div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>     cpl_property *property;</div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> </div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> </div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>     }</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span> </div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span> </div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>     <span class="keywordflow">if</span> (property == NULL) {</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>         <span class="keywordflow">return</span> CPL_ERROR_DATA_NOT_FOUND;</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>     }</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> </div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>     <span class="keywordflow">return</span> cpl_property_set_long(property, value);</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span> </div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span> }</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span> </div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span> </div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> cpl_error_code</div>
-<div class="line"><a name="l01468"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gadf1317627ff51b6cbcff9aec380fd51a"> 1468</a></span> <a class="code" href="group__uves__propertylist.html#gadf1317627ff51b6cbcff9aec380fd51a" title="Set the value of the given float property list entry.">uves_propertylist_set_float</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">c [...]
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>                            <span class="keywordtype">float</span> value)</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span> {</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span> </div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_set_float"</span>;</div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span> </div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>     cpl_property *property;</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span> </div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span> </div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>     }</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span> </div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span> </div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>     <span class="keywordflow">if</span> (property == NULL) {</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>         <span class="keywordflow">return</span> CPL_ERROR_DATA_NOT_FOUND;</div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>     }</div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span> </div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>     <span class="keywordflow">return</span> cpl_property_set_float(property, value);</div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span> </div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span> }</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span> </div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span> </div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span> cpl_error_code</div>
-<div class="line"><a name="l01531"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga5e507cfe564326f9e5474c5773d6dd24"> 1531</a></span> <a class="code" href="group__uves__propertylist.html#ga5e507cfe564326f9e5474c5773d6dd24" title="Set the value of the given double property list entry.">uves_propertylist_set_double</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword" [...]
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>                             <span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span> {</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span> </div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_set_double"</span>;</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span> </div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>     cpl_property *property;</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span> </div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span> </div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>     }</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span> </div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span> </div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>     <span class="keywordflow">if</span> (property == NULL) {</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>         <span class="keywordflow">return</span> CPL_ERROR_DATA_NOT_FOUND;</div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>     }</div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span> </div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>     <span class="keywordflow">return</span> cpl_property_set_double(property, value);</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span> </div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span> }</div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span> </div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span> </div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span> cpl_error_code</div>
-<div class="line"><a name="l01594"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gabbc55af6700c2d1d28f82131b56a3b7b"> 1594</a></span> <a class="code" href="group__uves__propertylist.html#gabbc55af6700c2d1d28f82131b56a3b7b" title="Set the value of the given string property list entry.">uves_propertylist_set_string</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword" [...]
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>                             <span class="keyword">const</span> <span class="keywordtype">char</span> *value)</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span> {</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span> </div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_set_string"</span>;</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span> </div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>     cpl_property *property;</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span> </div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span> </div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>     }</div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span> </div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span> </div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>     <span class="keywordflow">if</span> (property == NULL) {</div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>         <span class="keywordflow">return</span> CPL_ERROR_DATA_NOT_FOUND;</div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>     }</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span> </div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>     <span class="keywordflow">return</span> cpl_property_set_string(property, value);</div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span> </div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span> }</div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span> </div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span> </div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span> <span class="keyword">const</span> cpl_property *</div>
-<div class="line"><a name="l01650"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155"> 1650</a></span> <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <s [...]
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span> {</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span> </div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_get"</span>;</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span> </div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span> <span class="comment">//    register cxsize i = 0;</span></div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span> </div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>     uves_deque_iterator first, last;</div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span> </div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span> </div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL) {</div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>     }</div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span> </div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>     <span class="keywordflow">if</span> (position < 0) {</div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>     }</div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span> </div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>     first = uves_deque_begin(self->properties);</div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>     last = uves_deque_end(self->properties);</div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span> </div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span> <span class="comment">//    while (i < (cxsize)position && first != last) {</span></div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span> <span class="comment">//        first = uves_deque_next(self->properties, first);</span></div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span> <span class="comment">//        i++;</span></div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span> <span class="comment">//    }</span></div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span> </div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>     <span class="keywordflow">if</span> (first == last) {</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>     }</div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span> </div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span> <span class="comment">//    return uves_deque_get(self->properties, first);</span></div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>     <span class="keywordflow">return</span> uves_deque_get(self->properties, position);</div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span> </div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span> }</div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span> </div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span> cpl_property *</div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span> uves_propertylist_get(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keywordtype">long</span> position)</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span> {</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>     <span class="keywordflow">return</span> (cpl_property *)<a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(<span class="keyword">self</span>, position);</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span> }</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span> </div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span> </div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l01729"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga648f33387b636d2fea612aafbac02d18"> 1729</a></span> <a class="code" href="group__uves__propertylist.html#ga648f33387b636d2fea612aafbac02d18" title="Get the comment of the given property list entry.">uves_propertylist_get_comment</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">sel [...]
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span> {</div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span> </div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_get_comment"</span>;</div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span> </div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>     cpl_property *property;</div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span> </div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span> </div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>     }</div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span> </div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span> </div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>     <span class="keywordflow">if</span> (!property) {</div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>     }</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span> </div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>     <span class="keywordflow">return</span> cpl_property_get_comment(property);</div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span> </div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span> }</div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span> </div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span> </div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span> <span class="keywordtype">char</span></div>
-<div class="line"><a name="l01796"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gae9273c454206f9c51055aa1206183d37"> 1796</a></span> <a class="code" href="group__uves__propertylist.html#gae9273c454206f9c51055aa1206183d37" title="Get the character value of the given property list entry.">uves_propertylist_get_char</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword [...]
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span> {</div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span> </div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_get_char"</span>;</div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span> </div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>     cxchar result;</div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span> </div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>     cpl_property *property;</div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span> </div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span> </div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>         <span class="keywordflow">return</span> <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>     }</div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span> </div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span> </div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>     <span class="keywordflow">if</span> (!property) {</div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>         <span class="keywordflow">return</span> <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>     }</div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span> </div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>     error_push();</div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_push();</span></div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span> </div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>     result = cpl_property_get_char(property);</div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span> </div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span> <span class="comment">     * If an error occurred change any possibly set location to this</span></div>
-<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span> <span class="comment">     * function.</span></div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span> </div>
-<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>         cpl_error_set_where(_id);</div>
-<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>         <span class="keywordflow">return</span> <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>     }</div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span> </div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_pop();</span></div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>     error_pop();</div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span> </div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span> </div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span> }</div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span> </div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span> </div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01885"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga1915e9a72e6f0580cadb0736ea43d6dc"> 1885</a></span> <a class="code" href="group__uves__propertylist.html#ga1915e9a72e6f0580cadb0736ea43d6dc" title="Get the boolean value of the given property list entry.">uves_propertylist_get_bool</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword"> [...]
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span> {</div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span> </div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_get_bool"</span>;</div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span> </div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>     cxbool result;</div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span> </div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>     cpl_property *property;</div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span> </div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span> </div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>     }</div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span> </div>
-<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span> </div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>     <span class="keywordflow">if</span> (!property) {</div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>     }</div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span> </div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>     error_push();</div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_push();</span></div>
-<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span> </div>
-<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>     result = cpl_property_get_bool(property);</div>
-<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span> </div>
-<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span> <span class="comment">     * If an error occurred change any possibly set location to this</span></div>
-<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span> <span class="comment">     * function.</span></div>
-<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span> </div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>         cpl_error_set_where(_id);</div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>     }</div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span> </div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_pop();</span></div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>     error_pop();</div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span> </div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>     <span class="keywordflow">return</span> result == TRUE ? 1 : 0;</div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span> </div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span> }</div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span> </div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span> </div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01972"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785"> 1972</a></span> <a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">s [...]
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span> {</div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span> </div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_get_int"</span>;</div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span> </div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>     cxint result;</div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span> </div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>     cpl_property *property;</div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span> </div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span> </div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>     }</div>
-<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span> </div>
-<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span> </div>
-<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>     <span class="keywordflow">if</span> (!property) {</div>
-<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>     }</div>
-<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span> </div>
-<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>     error_push();</div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_push();</span></div>
-<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span> </div>
-<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>     result = cpl_property_get_int(property);</div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span> </div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span> <span class="comment">     * If an error occurred change any possibly set location to this</span></div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span> <span class="comment">     * function.</span></div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span> </div>
-<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>         cpl_error_set_where(_id);</div>
-<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>     }</div>
-<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span> </div>
-<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_pop();</span></div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>     error_pop();</div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span> </div>
-<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span> </div>
-<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span> }</div>
-<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span> </div>
-<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span> </div>
-<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span> <span class="keywordtype">long</span></div>
-<div class="line"><a name="l02059"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga62f1a977f79c807936a3ff394ca6280e"> 2059</a></span> <a class="code" href="group__uves__propertylist.html#ga62f1a977f79c807936a3ff394ca6280e" title="Get the long value of the given property list entry.">uves_propertylist_get_long</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">sel [...]
-<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span> {</div>
-<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span> </div>
-<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_get_long"</span>;</div>
-<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span> </div>
-<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>     cxlong result;</div>
-<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span> </div>
-<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>     cpl_property *property;</div>
-<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span> </div>
-<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span> </div>
-<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>     }</div>
-<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span> </div>
-<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span> </div>
-<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>     <span class="keywordflow">if</span> (!property) {</div>
-<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>     }</div>
-<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span> </div>
-<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>     error_push();</div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_push();</span></div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span> </div>
-<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>     result = cpl_property_get_long(property);</div>
-<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span> </div>
-<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span> <span class="comment">     * If an error occurred change any possibly set location to this</span></div>
-<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span> <span class="comment">     * function.</span></div>
-<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span> </div>
-<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>         cpl_error_set_where(_id);</div>
-<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>     }</div>
-<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span> </div>
-<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_pop();</span></div>
-<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>     error_pop();</div>
-<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span> </div>
-<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span> </div>
-<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span> }</div>
-<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span> </div>
-<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span> </div>
-<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span> <span class="keywordtype">float</span></div>
-<div class="line"><a name="l02146"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga71f81602d966afe5b8efb2d4a962ba8b"> 2146</a></span> <a class="code" href="group__uves__propertylist.html#ga71f81602d966afe5b8efb2d4a962ba8b" title="Get the float value of the given property list entry.">uves_propertylist_get_float</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">s [...]
-<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span> {</div>
-<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span> </div>
-<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_get_float"</span>;</div>
-<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span> </div>
-<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>     cxfloat result;</div>
-<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span> </div>
-<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>     cpl_property *property;</div>
-<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span> </div>
-<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span> </div>
-<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>     }</div>
-<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span> </div>
-<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span> </div>
-<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>     <span class="keywordflow">if</span> (!property) {</div>
-<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>     }</div>
-<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span> </div>
-<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>     error_push();</div>
-<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_push();</span></div>
-<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span> </div>
-<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>     result = cpl_property_get_float(property);</div>
-<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span> </div>
-<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span> <span class="comment">     * If an error occurred change any possibly set location to this</span></div>
-<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span> <span class="comment">     * function.</span></div>
-<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span> </div>
-<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>         cpl_error_set_where(_id);</div>
-<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>     }</div>
-<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span> </div>
-<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_pop();</span></div>
-<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>     error_pop();</div>
-<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span> </div>
-<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span> </div>
-<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span> }</div>
-<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span> </div>
-<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span> </div>
-<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l02233"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681"> 2233</a></span> <a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword" [...]
-<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span> {</div>
-<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span> </div>
-<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_get_double"</span>;</div>
-<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span> </div>
-<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>     cxdouble result;</div>
-<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span> </div>
-<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>     cpl_property *property;</div>
-<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span> </div>
-<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span> </div>
-<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>     }</div>
-<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span> </div>
-<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span> </div>
-<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>     <span class="keywordflow">if</span> (!property) {</div>
-<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>     }</div>
-<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span> </div>
-<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>     error_push();</div>
-<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_push();</span></div>
-<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span> </div>
-<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>     result = cpl_property_get_double(property);</div>
-<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span> </div>
-<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span> <span class="comment">     * If an error occurred change any possibly set location to this</span></div>
-<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span> <span class="comment">     * function.</span></div>
-<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span> </div>
-<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>         cpl_error_set_where(_id);</div>
-<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>     }</div>
-<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span> </div>
-<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_pop();</span></div>
-<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>     error_pop();</div>
-<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span> </div>
-<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span> </div>
-<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span> }</div>
-<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span> </div>
-<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span> </div>
-<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l02322"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93"> 2322</a></span> <a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword" [...]
-<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span> {</div>
-<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span> </div>
-<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_get_string"</span>;</div>
-<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span> </div>
-<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span>     <span class="keyword">const</span> cxchar *result;</div>
-<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span> </div>
-<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>     cpl_property *property;</div>
-<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span> </div>
-<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span> </div>
-<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>     }</div>
-<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span> </div>
-<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>     <span class="keyword">property</span> = _uves_propertylist_get(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span> </div>
-<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>     <span class="keywordflow">if</span> (!property) {</div>
-<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>     }</div>
-<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span> </div>
-<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>     error_push();</div>
-<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_push();</span></div>
-<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span> </div>
-<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>     result = cpl_property_get_string(property);</div>
-<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span> </div>
-<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span> <span class="comment">     * If an error occurred change any possibly set location to this</span></div>
-<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span> <span class="comment">     * function.</span></div>
-<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span> </div>
-<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>         cpl_error_set_where(_id);</div>
-<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>     }</div>
-<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span> </div>
-<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span> <span class="comment">//jmlarsen: this is not exported    cpl_error_pop();</span></div>
-<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>     error_pop();</div>
-<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span> </div>
-<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span> </div>
-<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span> }</div>
-<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span> </div>
-<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span> </div>
-<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span> cpl_error_code</div>
-<div class="line"><a name="l02405"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gab67312fdd5ec2579db318e2b73f83793"> 2405</a></span> <a class="code" href="group__uves__propertylist.html#gab67312fdd5ec2579db318e2b73f83793" title="Insert a character value into a property list at the given position.">uves_propertylist_insert_char</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span  [...]
-<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">char</span> value)</div>
-<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span> {</div>
-<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span> </div>
-<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_char"</span>;</div>
-<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span> </div>
-<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>     cxint status = 0;</div>
-<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span> </div>
-<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span> </div>
-<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || here == NULL || name == NULL) {</div>
-<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>     }</div>
-<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span> </div>
-<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>     status = _uves_propertylist_insert(<span class="keyword">self</span>, here, FALSE, name,</div>
-<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>                                       CPL_TYPE_CHAR, &value);</div>
-<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span> </div>
-<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>     }</div>
-<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span> </div>
-<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span> </div>
-<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span> }</div>
-<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span> </div>
-<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span> </div>
-<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span> cpl_error_code</div>
-<div class="line"><a name="l02470"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga2dfd30cad698338aa24bed3807772bcb"> 2470</a></span> <a class="code" href="group__uves__propertylist.html#ga2dfd30cad698338aa24bed3807772bcb" title="Insert a boolean value into a property list at the given position.">uves_propertylist_insert_bool</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span cl [...]
-<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> value)</div>
-<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span> {</div>
-<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span> </div>
-<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_bool"</span>;</div>
-<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span> </div>
-<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>     cxint status = 0;</div>
-<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span> </div>
-<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span> </div>
-<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || here == NULL || name == NULL) {</div>
-<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>     }</div>
-<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span> </div>
-<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>     status =  _uves_propertylist_insert(<span class="keyword">self</span>, here, FALSE, name,</div>
-<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>                                        CPL_TYPE_BOOL, &value);</div>
-<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span> </div>
-<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>     }</div>
-<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span> </div>
-<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span> </div>
-<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span> }</div>
-<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span> </div>
-<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span> </div>
-<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span> cpl_error_code</div>
-<div class="line"><a name="l02535"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gaf4317df2406162e173e8c78274650da4"> 2535</a></span> <a class="code" href="group__uves__propertylist.html#gaf4317df2406162e173e8c78274650da4" title="Insert a integer value into a property list at the given position.">uves_propertylist_insert_int</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span cla [...]
-<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>                             <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> value)</div>
-<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span> {</div>
-<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span> </div>
-<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_int"</span>;</div>
-<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span> </div>
-<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>     cxint status = 0;</div>
-<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span> </div>
-<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span> </div>
-<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || here == NULL || name == NULL) {</div>
-<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>     }</div>
-<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span> </div>
-<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>     status = _uves_propertylist_insert(<span class="keyword">self</span>, here, FALSE, name,</div>
-<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>                                       CPL_TYPE_INT, &value);</div>
-<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span> </div>
-<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>     }</div>
-<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span> </div>
-<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span> </div>
-<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span> }</div>
-<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02589"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gafd6db82a3ab2a060af6cc2a661bbc032"> 2589</a></span> <a class="code" href="group__uves__propertylist.html#gafd6db82a3ab2a060af6cc2a661bbc032" title="Check whether a property is present in a property list.">uves_propertylist_has</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self< [...]
-<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span> {</div>
-<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span> </div>
-<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"cpl_propertylist_has"</span>;</div>
-<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span> </div>
-<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span> </div>
-<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span>     }</div>
-<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span> </div>
-<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span>     <span class="keywordflow">return</span> _uves_propertylist_get(<span class="keyword">self</span>, name) != NULL ? 1 : 0;</div>
-<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span> </div>
-<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span> }</div>
-<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span> </div>
-<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span> </div>
-<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span> cpl_error_code</div>
-<div class="line"><a name="l02643"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gad1eced1cf3c10a77997c02f20ced0922"> 2643</a></span> <a class="code" href="group__uves__propertylist.html#gad1eced1cf3c10a77997c02f20ced0922" title="Insert a long value into a property list at the given position.">uves_propertylist_insert_long</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class [...]
-<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">long</span> value)</div>
-<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span> {</div>
-<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span> </div>
-<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_long"</span>;</div>
-<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span> </div>
-<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>     cxint status = 0;</div>
-<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span> </div>
-<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span> </div>
-<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || here == NULL || name == NULL) {</div>
-<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>     }</div>
-<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span> </div>
-<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>     status = _uves_propertylist_insert(<span class="keyword">self</span>, here, FALSE, name,</div>
-<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>                                       CPL_TYPE_LONG, &value);</div>
-<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span> </div>
-<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>     }</div>
-<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span> </div>
-<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span> </div>
-<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span> }</div>
-<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span> </div>
-<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span> </div>
-<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span> cpl_error_code</div>
-<div class="line"><a name="l02708"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gafa987cf50ee6314a8eddf4e4c284cdd0"> 2708</a></span> <a class="code" href="group__uves__propertylist.html#gafa987cf50ee6314a8eddf4e4c284cdd0" title="Insert a float value into a property list at the given position.">uves_propertylist_insert_float</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span cla [...]
-<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>                               <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">float</span> value)</div>
-<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span> {</div>
-<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span> </div>
-<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_float"</span>;</div>
-<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span> </div>
-<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>     cxint status = 0;</div>
-<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span> </div>
-<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span> </div>
-<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || here == NULL || name == NULL) {</div>
-<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>     }</div>
-<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span> </div>
-<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>     status = _uves_propertylist_insert(<span class="keyword">self</span>, here, FALSE, name,</div>
-<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span>                                       CPL_TYPE_FLOAT, &value);</div>
-<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span> </div>
-<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>     }</div>
-<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span> </div>
-<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span> </div>
-<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span> }</div>
-<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span> </div>
-<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span> </div>
-<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span> cpl_error_code</div>
-<div class="line"><a name="l02773"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga3541bde9170abf5eb52c6351ae03da31"> 2773</a></span> <a class="code" href="group__uves__propertylist.html#ga3541bde9170abf5eb52c6351ae03da31" title="Insert a double value into a property list at the given position.">uves_propertylist_insert_double</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span c [...]
-<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span> {</div>
-<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span> </div>
-<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_char"</span>;</div>
-<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span> </div>
-<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>     cxint status = 0;</div>
-<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span> </div>
-<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span> </div>
-<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || here == NULL || name == NULL) {</div>
-<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>     }</div>
-<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span> </div>
-<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>     status = _uves_propertylist_insert(<span class="keyword">self</span>, here, FALSE, name,</div>
-<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>                                       CPL_TYPE_DOUBLE, &value);</div>
-<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span> </div>
-<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>     }</div>
-<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span> </div>
-<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span> </div>
-<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span> }</div>
-<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span> </div>
-<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span> </div>
-<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span> cpl_error_code</div>
-<div class="line"><a name="l02838"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gadae4a02d6cc8db83abeb9a8b670ade81"> 2838</a></span> <a class="code" href="group__uves__propertylist.html#gadae4a02d6cc8db83abeb9a8b670ade81" title="Insert a string value into a property list at the given position.">uves_propertylist_insert_string</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span c [...]
-<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> <span class="keywordtype">char</span> *value)</div>
-<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span> {</div>
-<div class="line"><a name="l02841"></a><span class="lineno"> 2841</span> </div>
-<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_string"</span>;</div>
-<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span> </div>
-<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>     cxint status = 0;</div>
-<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span> </div>
-<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span> </div>
-<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || here == NULL || name == NULL) {</div>
-<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span>     }</div>
-<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span> </div>
-<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span>     status = _uves_propertylist_insert(<span class="keyword">self</span>, here, FALSE, name,</div>
-<div class="line"><a name="l02853"></a><span class="lineno"> 2853</span>                                       CPL_TYPE_STRING, (cxptr)value);</div>
-<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span> </div>
-<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>     }</div>
-<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span> </div>
-<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span> </div>
-<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span> }</div>
-<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span> </div>
-<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span> </div>
-<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span> cpl_error_code</div>
-<div class="line"><a name="l02903"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga6f4d1c1ff4e0c8fc7bb2edb551cba11e"> 2903</a></span> <a class="code" href="group__uves__propertylist.html#ga6f4d1c1ff4e0c8fc7bb2edb551cba11e" title="Insert a character value into a property list after the given position.">uves_propertylist_insert_after_char</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span [...]
-<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span>                                    <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">char</span> value)</div>
-<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span> {</div>
-<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span> </div>
-<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_after_char"</span>;</div>
-<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span> </div>
-<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>     cxint status = 0;</div>
-<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span> </div>
-<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span> </div>
-<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || after == NULL || name == NULL) {</div>
-<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span>     }</div>
-<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span> </div>
-<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span>     status = _uves_propertylist_insert(<span class="keyword">self</span>, after, TRUE, name,</div>
-<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span>                                       CPL_TYPE_CHAR, &value);</div>
-<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span> </div>
-<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span>     }</div>
-<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span> </div>
-<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span> </div>
-<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span> }</div>
-<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span> </div>
-<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span> </div>
-<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span> cpl_error_code</div>
-<div class="line"><a name="l02968"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gafeb4307649f4b8edc101e73c21ec7392"> 2968</a></span> <a class="code" href="group__uves__propertylist.html#gafeb4307649f4b8edc101e73c21ec7392" title="Insert a boolean value into a property list after the given position.">uves_propertylist_insert_after_bool</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, [...]
-<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>                                    <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> value)</div>
-<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span> {</div>
-<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span> </div>
-<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_after_bool"</span>;</div>
-<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span> </div>
-<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span>     cxint status = 0;</div>
-<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span> </div>
-<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span> </div>
-<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || after == NULL || name == NULL) {</div>
-<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span>     }</div>
-<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span> </div>
-<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>     status = _uves_propertylist_insert(<span class="keyword">self</span>, after, TRUE, name,</div>
-<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>                                       CPL_TYPE_BOOL, &value);</div>
-<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span> </div>
-<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>     }</div>
-<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span> </div>
-<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span> </div>
-<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span> }</div>
-<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span> </div>
-<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span> </div>
-<div class="line"><a name="l03032"></a><span class="lineno"> 3032</span> cpl_error_code</div>
-<div class="line"><a name="l03033"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga5c0d4cd29cecab431fd25b85472c3897"> 3033</a></span> <a class="code" href="group__uves__propertylist.html#ga5c0d4cd29cecab431fd25b85472c3897" title="Insert a integer value into a property list after the given position.">uves_propertylist_insert_after_int</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>,  [...]
-<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span>                                   <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> value)</div>
-<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span> {</div>
-<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span> </div>
-<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_after_int"</span>;</div>
-<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span> </div>
-<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>     cxint status = 0;</div>
-<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span> </div>
-<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span> </div>
-<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || after == NULL || name == NULL) {</div>
-<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>     }</div>
-<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span> </div>
-<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>     status = _uves_propertylist_insert(<span class="keyword">self</span>, after, TRUE, name,</div>
-<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span>                                       CPL_TYPE_INT, &value);</div>
-<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span> </div>
-<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span>     }</div>
-<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span> </div>
-<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span> </div>
-<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span> }</div>
-<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span> </div>
-<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span> </div>
-<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span> cpl_error_code</div>
-<div class="line"><a name="l03098"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga05a5bb534ed7284bb107c3abb3edfa34"> 3098</a></span> <a class="code" href="group__uves__propertylist.html#ga05a5bb534ed7284bb107c3abb3edfa34" title="Insert a long value into a property list after the given position.">uves_propertylist_insert_after_long</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <s [...]
-<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>                                    <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">long</span> value)</div>
-<div class="line"><a name="l03100"></a><span class="lineno"> 3100</span> {</div>
-<div class="line"><a name="l03101"></a><span class="lineno"> 3101</span> </div>
-<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_after_long"</span>;</div>
-<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span> </div>
-<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span>     cxint status = 0;</div>
-<div class="line"><a name="l03105"></a><span class="lineno"> 3105</span> </div>
-<div class="line"><a name="l03106"></a><span class="lineno"> 3106</span> </div>
-<div class="line"><a name="l03107"></a><span class="lineno"> 3107</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || after == NULL || name == NULL) {</div>
-<div class="line"><a name="l03108"></a><span class="lineno"> 3108</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03109"></a><span class="lineno"> 3109</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03110"></a><span class="lineno"> 3110</span>     }</div>
-<div class="line"><a name="l03111"></a><span class="lineno"> 3111</span> </div>
-<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span>     status = _uves_propertylist_insert(<span class="keyword">self</span>, after, TRUE, name,</div>
-<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span>                                       CPL_TYPE_LONG, &value);</div>
-<div class="line"><a name="l03114"></a><span class="lineno"> 3114</span> </div>
-<div class="line"><a name="l03115"></a><span class="lineno"> 3115</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l03118"></a><span class="lineno"> 3118</span>     }</div>
-<div class="line"><a name="l03119"></a><span class="lineno"> 3119</span> </div>
-<div class="line"><a name="l03120"></a><span class="lineno"> 3120</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03121"></a><span class="lineno"> 3121</span> </div>
-<div class="line"><a name="l03122"></a><span class="lineno"> 3122</span> }</div>
-<div class="line"><a name="l03123"></a><span class="lineno"> 3123</span> </div>
-<div class="line"><a name="l03124"></a><span class="lineno"> 3124</span> </div>
-<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span> cpl_error_code</div>
-<div class="line"><a name="l03163"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gab2793113a4ef8e13c523c7cad9b03220"> 3163</a></span> <a class="code" href="group__uves__propertylist.html#gab2793113a4ef8e13c523c7cad9b03220" title="Insert a float value into a property list after the given position.">uves_propertylist_insert_after_float</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>,  [...]
-<div class="line"><a name="l03164"></a><span class="lineno"> 3164</span>                                     <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">float</span> value)</div>
-<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span> {</div>
-<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span> </div>
-<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_after_float"</span>;</div>
-<div class="line"><a name="l03168"></a><span class="lineno"> 3168</span> </div>
-<div class="line"><a name="l03169"></a><span class="lineno"> 3169</span>     cxint status = 0;</div>
-<div class="line"><a name="l03170"></a><span class="lineno"> 3170</span> </div>
-<div class="line"><a name="l03171"></a><span class="lineno"> 3171</span> </div>
-<div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || after == NULL || name == NULL) {</div>
-<div class="line"><a name="l03173"></a><span class="lineno"> 3173</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03174"></a><span class="lineno"> 3174</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03175"></a><span class="lineno"> 3175</span>     }</div>
-<div class="line"><a name="l03176"></a><span class="lineno"> 3176</span> </div>
-<div class="line"><a name="l03177"></a><span class="lineno"> 3177</span>     status = _uves_propertylist_insert(<span class="keyword">self</span>, after, TRUE, name,</div>
-<div class="line"><a name="l03178"></a><span class="lineno"> 3178</span>                                       CPL_TYPE_FLOAT, &value);</div>
-<div class="line"><a name="l03179"></a><span class="lineno"> 3179</span> </div>
-<div class="line"><a name="l03180"></a><span class="lineno"> 3180</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l03181"></a><span class="lineno"> 3181</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l03182"></a><span class="lineno"> 3182</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>     }</div>
-<div class="line"><a name="l03184"></a><span class="lineno"> 3184</span> </div>
-<div class="line"><a name="l03185"></a><span class="lineno"> 3185</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03186"></a><span class="lineno"> 3186</span> </div>
-<div class="line"><a name="l03187"></a><span class="lineno"> 3187</span> }</div>
-<div class="line"><a name="l03188"></a><span class="lineno"> 3188</span> </div>
-<div class="line"><a name="l03189"></a><span class="lineno"> 3189</span> </div>
-<div class="line"><a name="l03227"></a><span class="lineno"> 3227</span> cpl_error_code</div>
-<div class="line"><a name="l03228"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga448733ba77d4c3de7fd109ca7a07ffff"> 3228</a></span> <a class="code" href="group__uves__propertylist.html#ga448733ba77d4c3de7fd109ca7a07ffff" title="Insert a double value into a property list after the given position.">uves_propertylist_insert_after_double</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>,</div>
-<div class="line"><a name="l03229"></a><span class="lineno"> 3229</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *after, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l03230"></a><span class="lineno"> 3230</span>                                      <span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l03231"></a><span class="lineno"> 3231</span> {</div>
-<div class="line"><a name="l03232"></a><span class="lineno"> 3232</span> </div>
-<div class="line"><a name="l03233"></a><span class="lineno"> 3233</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_after_double"</span>;</div>
-<div class="line"><a name="l03234"></a><span class="lineno"> 3234</span> </div>
-<div class="line"><a name="l03235"></a><span class="lineno"> 3235</span>     cxint status = 0;</div>
-<div class="line"><a name="l03236"></a><span class="lineno"> 3236</span> </div>
-<div class="line"><a name="l03237"></a><span class="lineno"> 3237</span> </div>
-<div class="line"><a name="l03238"></a><span class="lineno"> 3238</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || after == NULL || name == NULL) {</div>
-<div class="line"><a name="l03239"></a><span class="lineno"> 3239</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03240"></a><span class="lineno"> 3240</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03241"></a><span class="lineno"> 3241</span>     }</div>
-<div class="line"><a name="l03242"></a><span class="lineno"> 3242</span> </div>
-<div class="line"><a name="l03243"></a><span class="lineno"> 3243</span>     status = _uves_propertylist_insert(<span class="keyword">self</span>, after, TRUE, name,</div>
-<div class="line"><a name="l03244"></a><span class="lineno"> 3244</span>                                       CPL_TYPE_DOUBLE, &value);</div>
-<div class="line"><a name="l03245"></a><span class="lineno"> 3245</span> </div>
-<div class="line"><a name="l03246"></a><span class="lineno"> 3246</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l03247"></a><span class="lineno"> 3247</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l03248"></a><span class="lineno"> 3248</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l03249"></a><span class="lineno"> 3249</span>     }</div>
-<div class="line"><a name="l03250"></a><span class="lineno"> 3250</span> </div>
-<div class="line"><a name="l03251"></a><span class="lineno"> 3251</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03252"></a><span class="lineno"> 3252</span> </div>
-<div class="line"><a name="l03253"></a><span class="lineno"> 3253</span> }</div>
-<div class="line"><a name="l03254"></a><span class="lineno"> 3254</span> </div>
-<div class="line"><a name="l03255"></a><span class="lineno"> 3255</span> </div>
-<div class="line"><a name="l03293"></a><span class="lineno"> 3293</span> cpl_error_code</div>
-<div class="line"><a name="l03294"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gaa8d7d969eef7675c6ff44ff98e38dfe0"> 3294</a></span> <a class="code" href="group__uves__propertylist.html#gaa8d7d969eef7675c6ff44ff98e38dfe0" title="Insert a string value into a property list after the given position.">uves_propertylist_insert_after_string</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>,</div>
-<div class="line"><a name="l03295"></a><span class="lineno"> 3295</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *after, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l03296"></a><span class="lineno"> 3296</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *value)</div>
-<div class="line"><a name="l03297"></a><span class="lineno"> 3297</span> {</div>
-<div class="line"><a name="l03298"></a><span class="lineno"> 3298</span> </div>
-<div class="line"><a name="l03299"></a><span class="lineno"> 3299</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_insert_after_string"</span>;</div>
-<div class="line"><a name="l03300"></a><span class="lineno"> 3300</span> </div>
-<div class="line"><a name="l03301"></a><span class="lineno"> 3301</span>     cxint status = 0;</div>
-<div class="line"><a name="l03302"></a><span class="lineno"> 3302</span> </div>
-<div class="line"><a name="l03303"></a><span class="lineno"> 3303</span> </div>
-<div class="line"><a name="l03304"></a><span class="lineno"> 3304</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || after == NULL || name == NULL) {</div>
-<div class="line"><a name="l03305"></a><span class="lineno"> 3305</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03306"></a><span class="lineno"> 3306</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03307"></a><span class="lineno"> 3307</span>     }</div>
-<div class="line"><a name="l03308"></a><span class="lineno"> 3308</span> </div>
-<div class="line"><a name="l03309"></a><span class="lineno"> 3309</span>     status =  _uves_propertylist_insert(<span class="keyword">self</span>, after, TRUE, name,</div>
-<div class="line"><a name="l03310"></a><span class="lineno"> 3310</span>                                        CPL_TYPE_STRING, (cxptr)value);</div>
-<div class="line"><a name="l03311"></a><span class="lineno"> 3311</span> </div>
-<div class="line"><a name="l03312"></a><span class="lineno"> 3312</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l03313"></a><span class="lineno"> 3313</span>         cpl_error_set(_id, CPL_ERROR_UNSPECIFIED);</div>
-<div class="line"><a name="l03314"></a><span class="lineno"> 3314</span>         <span class="keywordflow">return</span> CPL_ERROR_UNSPECIFIED;</div>
-<div class="line"><a name="l03315"></a><span class="lineno"> 3315</span>     }</div>
-<div class="line"><a name="l03316"></a><span class="lineno"> 3316</span> </div>
-<div class="line"><a name="l03317"></a><span class="lineno"> 3317</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03318"></a><span class="lineno"> 3318</span> </div>
-<div class="line"><a name="l03319"></a><span class="lineno"> 3319</span> }</div>
-<div class="line"><a name="l03320"></a><span class="lineno"> 3320</span> </div>
-<div class="line"><a name="l03321"></a><span class="lineno"> 3321</span> </div>
-<div class="line"><a name="l03350"></a><span class="lineno"> 3350</span> cpl_error_code</div>
-<div class="line"><a name="l03351"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gaa151bee689fe652596364001379e70fa"> 3351</a></span> <a class="code" href="group__uves__propertylist.html#gaa151bee689fe652596364001379e70fa" title="Prepend a character value to a property list.">uves_propertylist_prepend_char</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const< [...]
-<div class="line"><a name="l03352"></a><span class="lineno"> 3352</span>                               <span class="keywordtype">char</span> value)</div>
-<div class="line"><a name="l03353"></a><span class="lineno"> 3353</span> {</div>
-<div class="line"><a name="l03354"></a><span class="lineno"> 3354</span> </div>
-<div class="line"><a name="l03355"></a><span class="lineno"> 3355</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_prepend_char"</span>;</div>
-<div class="line"><a name="l03356"></a><span class="lineno"> 3356</span> </div>
-<div class="line"><a name="l03357"></a><span class="lineno"> 3357</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l03358"></a><span class="lineno"> 3358</span> </div>
-<div class="line"><a name="l03359"></a><span class="lineno"> 3359</span> </div>
-<div class="line"><a name="l03360"></a><span class="lineno"> 3360</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l03361"></a><span class="lineno"> 3361</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03362"></a><span class="lineno"> 3362</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03363"></a><span class="lineno"> 3363</span>     }</div>
-<div class="line"><a name="l03364"></a><span class="lineno"> 3364</span> </div>
-<div class="line"><a name="l03365"></a><span class="lineno"> 3365</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_CHAR);</div>
-<div class="line"><a name="l03366"></a><span class="lineno"> 3366</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l03367"></a><span class="lineno"> 3367</span> </div>
-<div class="line"><a name="l03368"></a><span class="lineno"> 3368</span>     cpl_property_set_char(property, value);</div>
-<div class="line"><a name="l03369"></a><span class="lineno"> 3369</span>     uves_deque_push_front(self->properties, property);</div>
-<div class="line"><a name="l03370"></a><span class="lineno"> 3370</span> </div>
-<div class="line"><a name="l03371"></a><span class="lineno"> 3371</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03372"></a><span class="lineno"> 3372</span> </div>
-<div class="line"><a name="l03373"></a><span class="lineno"> 3373</span> }</div>
-<div class="line"><a name="l03374"></a><span class="lineno"> 3374</span> </div>
-<div class="line"><a name="l03375"></a><span class="lineno"> 3375</span> </div>
-<div class="line"><a name="l03404"></a><span class="lineno"> 3404</span> cpl_error_code</div>
-<div class="line"><a name="l03405"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga25074f6f6ba24b2ccbbb91b1aa703da5"> 3405</a></span> <a class="code" href="group__uves__propertylist.html#ga25074f6f6ba24b2ccbbb91b1aa703da5" title="Prepend a boolean value to a property list.">uves_propertylist_prepend_bool</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</s [...]
-<div class="line"><a name="l03406"></a><span class="lineno"> 3406</span>                               <span class="keywordtype">int</span> value)</div>
-<div class="line"><a name="l03407"></a><span class="lineno"> 3407</span> {</div>
-<div class="line"><a name="l03408"></a><span class="lineno"> 3408</span> </div>
-<div class="line"><a name="l03409"></a><span class="lineno"> 3409</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_prepend_bool"</span>;</div>
-<div class="line"><a name="l03410"></a><span class="lineno"> 3410</span> </div>
-<div class="line"><a name="l03411"></a><span class="lineno"> 3411</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l03412"></a><span class="lineno"> 3412</span> </div>
-<div class="line"><a name="l03413"></a><span class="lineno"> 3413</span> </div>
-<div class="line"><a name="l03414"></a><span class="lineno"> 3414</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l03415"></a><span class="lineno"> 3415</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03416"></a><span class="lineno"> 3416</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03417"></a><span class="lineno"> 3417</span>     }</div>
-<div class="line"><a name="l03418"></a><span class="lineno"> 3418</span> </div>
-<div class="line"><a name="l03419"></a><span class="lineno"> 3419</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_BOOL);</div>
-<div class="line"><a name="l03420"></a><span class="lineno"> 3420</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l03421"></a><span class="lineno"> 3421</span> </div>
-<div class="line"><a name="l03422"></a><span class="lineno"> 3422</span>     cpl_property_set_bool(property, value);</div>
-<div class="line"><a name="l03423"></a><span class="lineno"> 3423</span>     uves_deque_push_front(self->properties, property);</div>
-<div class="line"><a name="l03424"></a><span class="lineno"> 3424</span> </div>
-<div class="line"><a name="l03425"></a><span class="lineno"> 3425</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03426"></a><span class="lineno"> 3426</span> </div>
-<div class="line"><a name="l03427"></a><span class="lineno"> 3427</span> }</div>
-<div class="line"><a name="l03428"></a><span class="lineno"> 3428</span> </div>
-<div class="line"><a name="l03429"></a><span class="lineno"> 3429</span> </div>
-<div class="line"><a name="l03458"></a><span class="lineno"> 3458</span> cpl_error_code</div>
-<div class="line"><a name="l03459"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga0133703baaa20b62bc57f9125ff105e0"> 3459</a></span> <a class="code" href="group__uves__propertylist.html#ga0133703baaa20b62bc57f9125ff105e0" title="Prepend a integer value to a property list.">uves_propertylist_prepend_int</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</sp [...]
-<div class="line"><a name="l03460"></a><span class="lineno"> 3460</span>                              <span class="keywordtype">int</span> value)</div>
-<div class="line"><a name="l03461"></a><span class="lineno"> 3461</span> {</div>
-<div class="line"><a name="l03462"></a><span class="lineno"> 3462</span> </div>
-<div class="line"><a name="l03463"></a><span class="lineno"> 3463</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_prepend_int"</span>;</div>
-<div class="line"><a name="l03464"></a><span class="lineno"> 3464</span> </div>
-<div class="line"><a name="l03465"></a><span class="lineno"> 3465</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l03466"></a><span class="lineno"> 3466</span> </div>
-<div class="line"><a name="l03467"></a><span class="lineno"> 3467</span> </div>
-<div class="line"><a name="l03468"></a><span class="lineno"> 3468</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l03469"></a><span class="lineno"> 3469</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03470"></a><span class="lineno"> 3470</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03471"></a><span class="lineno"> 3471</span>     }</div>
-<div class="line"><a name="l03472"></a><span class="lineno"> 3472</span> </div>
-<div class="line"><a name="l03473"></a><span class="lineno"> 3473</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_INT);</div>
-<div class="line"><a name="l03474"></a><span class="lineno"> 3474</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l03475"></a><span class="lineno"> 3475</span> </div>
-<div class="line"><a name="l03476"></a><span class="lineno"> 3476</span>     cpl_property_set_int(property, value);</div>
-<div class="line"><a name="l03477"></a><span class="lineno"> 3477</span>     uves_deque_push_front(self->properties, property);</div>
-<div class="line"><a name="l03478"></a><span class="lineno"> 3478</span> </div>
-<div class="line"><a name="l03479"></a><span class="lineno"> 3479</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03480"></a><span class="lineno"> 3480</span> </div>
-<div class="line"><a name="l03481"></a><span class="lineno"> 3481</span> }</div>
-<div class="line"><a name="l03482"></a><span class="lineno"> 3482</span> </div>
-<div class="line"><a name="l03483"></a><span class="lineno"> 3483</span> </div>
-<div class="line"><a name="l03512"></a><span class="lineno"> 3512</span> cpl_error_code</div>
-<div class="line"><a name="l03513"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gab8a9b7c5adf6a7c280a67dfb52693ad9"> 3513</a></span> <a class="code" href="group__uves__propertylist.html#gab8a9b7c5adf6a7c280a67dfb52693ad9" title="Prepend a long value to a property list.">uves_propertylist_prepend_long</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span [...]
-<div class="line"><a name="l03514"></a><span class="lineno"> 3514</span>                               <span class="keywordtype">long</span> value)</div>
-<div class="line"><a name="l03515"></a><span class="lineno"> 3515</span> {</div>
-<div class="line"><a name="l03516"></a><span class="lineno"> 3516</span> </div>
-<div class="line"><a name="l03517"></a><span class="lineno"> 3517</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_prepend_long"</span>;</div>
-<div class="line"><a name="l03518"></a><span class="lineno"> 3518</span> </div>
-<div class="line"><a name="l03519"></a><span class="lineno"> 3519</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l03520"></a><span class="lineno"> 3520</span> </div>
-<div class="line"><a name="l03521"></a><span class="lineno"> 3521</span> </div>
-<div class="line"><a name="l03522"></a><span class="lineno"> 3522</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l03523"></a><span class="lineno"> 3523</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03524"></a><span class="lineno"> 3524</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03525"></a><span class="lineno"> 3525</span>     }</div>
-<div class="line"><a name="l03526"></a><span class="lineno"> 3526</span> </div>
-<div class="line"><a name="l03527"></a><span class="lineno"> 3527</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_LONG);</div>
-<div class="line"><a name="l03528"></a><span class="lineno"> 3528</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l03529"></a><span class="lineno"> 3529</span> </div>
-<div class="line"><a name="l03530"></a><span class="lineno"> 3530</span>     cpl_property_set_long(property, value);</div>
-<div class="line"><a name="l03531"></a><span class="lineno"> 3531</span>     uves_deque_push_front(self->properties, property);</div>
-<div class="line"><a name="l03532"></a><span class="lineno"> 3532</span> </div>
-<div class="line"><a name="l03533"></a><span class="lineno"> 3533</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03534"></a><span class="lineno"> 3534</span> </div>
-<div class="line"><a name="l03535"></a><span class="lineno"> 3535</span> }</div>
-<div class="line"><a name="l03536"></a><span class="lineno"> 3536</span> </div>
-<div class="line"><a name="l03537"></a><span class="lineno"> 3537</span> </div>
-<div class="line"><a name="l03566"></a><span class="lineno"> 3566</span> cpl_error_code</div>
-<div class="line"><a name="l03567"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga47d49f4e59167222901c218d8dd02105"> 3567</a></span> <a class="code" href="group__uves__propertylist.html#ga47d49f4e59167222901c218d8dd02105" title="Prepend a float value to a property list.">uves_propertylist_prepend_float</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</sp [...]
-<div class="line"><a name="l03568"></a><span class="lineno"> 3568</span>                                <span class="keywordtype">float</span> value)</div>
-<div class="line"><a name="l03569"></a><span class="lineno"> 3569</span> {</div>
-<div class="line"><a name="l03570"></a><span class="lineno"> 3570</span> </div>
-<div class="line"><a name="l03571"></a><span class="lineno"> 3571</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_prepend_float"</span>;</div>
-<div class="line"><a name="l03572"></a><span class="lineno"> 3572</span> </div>
-<div class="line"><a name="l03573"></a><span class="lineno"> 3573</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l03574"></a><span class="lineno"> 3574</span> </div>
-<div class="line"><a name="l03575"></a><span class="lineno"> 3575</span> </div>
-<div class="line"><a name="l03576"></a><span class="lineno"> 3576</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l03577"></a><span class="lineno"> 3577</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03578"></a><span class="lineno"> 3578</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03579"></a><span class="lineno"> 3579</span>     }</div>
-<div class="line"><a name="l03580"></a><span class="lineno"> 3580</span> </div>
-<div class="line"><a name="l03581"></a><span class="lineno"> 3581</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l03582"></a><span class="lineno"> 3582</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l03583"></a><span class="lineno"> 3583</span> </div>
-<div class="line"><a name="l03584"></a><span class="lineno"> 3584</span>     cpl_property_set_float(property, value);</div>
-<div class="line"><a name="l03585"></a><span class="lineno"> 3585</span>     uves_deque_push_front(self->properties, property);</div>
-<div class="line"><a name="l03586"></a><span class="lineno"> 3586</span> </div>
-<div class="line"><a name="l03587"></a><span class="lineno"> 3587</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03588"></a><span class="lineno"> 3588</span> </div>
-<div class="line"><a name="l03589"></a><span class="lineno"> 3589</span> }</div>
-<div class="line"><a name="l03590"></a><span class="lineno"> 3590</span> </div>
-<div class="line"><a name="l03591"></a><span class="lineno"> 3591</span> </div>
-<div class="line"><a name="l03620"></a><span class="lineno"> 3620</span> cpl_error_code</div>
-<div class="line"><a name="l03621"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gaa5dab235d01e40a8e3721eaa8bc5a38d"> 3621</a></span> <a class="code" href="group__uves__propertylist.html#gaa5dab235d01e40a8e3721eaa8bc5a38d" title="Prepend a double value to a property list.">uves_propertylist_prepend_double</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</ [...]
-<div class="line"><a name="l03622"></a><span class="lineno"> 3622</span>                                 <span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l03623"></a><span class="lineno"> 3623</span> {</div>
-<div class="line"><a name="l03624"></a><span class="lineno"> 3624</span> </div>
-<div class="line"><a name="l03625"></a><span class="lineno"> 3625</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_prepend_double"</span>;</div>
-<div class="line"><a name="l03626"></a><span class="lineno"> 3626</span> </div>
-<div class="line"><a name="l03627"></a><span class="lineno"> 3627</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l03628"></a><span class="lineno"> 3628</span> </div>
-<div class="line"><a name="l03629"></a><span class="lineno"> 3629</span> </div>
-<div class="line"><a name="l03630"></a><span class="lineno"> 3630</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l03631"></a><span class="lineno"> 3631</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03632"></a><span class="lineno"> 3632</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03633"></a><span class="lineno"> 3633</span>     }</div>
-<div class="line"><a name="l03634"></a><span class="lineno"> 3634</span> </div>
-<div class="line"><a name="l03635"></a><span class="lineno"> 3635</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03636"></a><span class="lineno"> 3636</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l03637"></a><span class="lineno"> 3637</span> </div>
-<div class="line"><a name="l03638"></a><span class="lineno"> 3638</span>     cpl_property_set_double(property, value);</div>
-<div class="line"><a name="l03639"></a><span class="lineno"> 3639</span>     uves_deque_push_front(self->properties, property);</div>
-<div class="line"><a name="l03640"></a><span class="lineno"> 3640</span> </div>
-<div class="line"><a name="l03641"></a><span class="lineno"> 3641</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03642"></a><span class="lineno"> 3642</span> </div>
-<div class="line"><a name="l03643"></a><span class="lineno"> 3643</span> }</div>
-<div class="line"><a name="l03644"></a><span class="lineno"> 3644</span> </div>
-<div class="line"><a name="l03645"></a><span class="lineno"> 3645</span> </div>
-<div class="line"><a name="l03674"></a><span class="lineno"> 3674</span> cpl_error_code</div>
-<div class="line"><a name="l03675"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gadae05c6be2055c187a4a0ac66da762e0"> 3675</a></span> <a class="code" href="group__uves__propertylist.html#gadae05c6be2055c187a4a0ac66da762e0" title="Prepend a string value to a property list.">uves_propertylist_prepend_string</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</ [...]
-<div class="line"><a name="l03676"></a><span class="lineno"> 3676</span>                                 <span class="keyword">const</span> <span class="keywordtype">char</span> *value)</div>
-<div class="line"><a name="l03677"></a><span class="lineno"> 3677</span> {</div>
-<div class="line"><a name="l03678"></a><span class="lineno"> 3678</span> </div>
-<div class="line"><a name="l03679"></a><span class="lineno"> 3679</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_prepend_string"</span>;</div>
-<div class="line"><a name="l03680"></a><span class="lineno"> 3680</span> </div>
-<div class="line"><a name="l03681"></a><span class="lineno"> 3681</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l03682"></a><span class="lineno"> 3682</span> </div>
-<div class="line"><a name="l03683"></a><span class="lineno"> 3683</span> </div>
-<div class="line"><a name="l03684"></a><span class="lineno"> 3684</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l03685"></a><span class="lineno"> 3685</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03686"></a><span class="lineno"> 3686</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03687"></a><span class="lineno"> 3687</span>     }</div>
-<div class="line"><a name="l03688"></a><span class="lineno"> 3688</span> </div>
-<div class="line"><a name="l03689"></a><span class="lineno"> 3689</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l03690"></a><span class="lineno"> 3690</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l03691"></a><span class="lineno"> 3691</span> </div>
-<div class="line"><a name="l03692"></a><span class="lineno"> 3692</span>     cpl_property_set_string(property, value);</div>
-<div class="line"><a name="l03693"></a><span class="lineno"> 3693</span>     uves_deque_push_front(self->properties, property);</div>
-<div class="line"><a name="l03694"></a><span class="lineno"> 3694</span> </div>
-<div class="line"><a name="l03695"></a><span class="lineno"> 3695</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03696"></a><span class="lineno"> 3696</span> </div>
-<div class="line"><a name="l03697"></a><span class="lineno"> 3697</span> }</div>
-<div class="line"><a name="l03698"></a><span class="lineno"> 3698</span> </div>
-<div class="line"><a name="l03699"></a><span class="lineno"> 3699</span> </div>
-<div class="line"><a name="l03700"></a><span class="lineno"> 3700</span> </div>
-<div class="line"><a name="l03701"></a><span class="lineno"> 3701</span> cpl_error_code</div>
-<div class="line"><a name="l03702"></a><span class="lineno"> 3702</span> uves_propertylist_append_char(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l03703"></a><span class="lineno"> 3703</span>                              <span class="keywordtype">char</span> value)</div>
-<div class="line"><a name="l03704"></a><span class="lineno"> 3704</span> {</div>
-<div class="line"><a name="l03705"></a><span class="lineno"> 3705</span>     <span class="keywordflow">return</span> <a class="code" href="group__uves__propertylist.html#ga64519bda6f595f3ef9de641b5f37c9e1" title="Append a character value to a property list.">uves_propertylist_append_c_char</a>(<span class="keyword">self</span>, name, value, NULL);</div>
-<div class="line"><a name="l03706"></a><span class="lineno"> 3706</span> }</div>
-<div class="line"><a name="l03707"></a><span class="lineno"> 3707</span> cpl_error_code</div>
-<div class="line"><a name="l03708"></a><span class="lineno"> 3708</span> uves_propertylist_append_bool(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l03709"></a><span class="lineno"> 3709</span>                              <span class="keywordtype">int</span> value)</div>
-<div class="line"><a name="l03710"></a><span class="lineno"> 3710</span> {</div>
-<div class="line"><a name="l03711"></a><span class="lineno"> 3711</span>     <span class="keywordflow">return</span> <a class="code" href="group__uves__propertylist.html#ga40e676ee81b51d67da6ce7cba7c71b50" title="Append a boolean value to a property list.">uves_propertylist_append_c_bool</a>(<span class="keyword">self</span>, name, value, NULL);</div>
-<div class="line"><a name="l03712"></a><span class="lineno"> 3712</span> }</div>
-<div class="line"><a name="l03713"></a><span class="lineno"> 3713</span> </div>
-<div class="line"><a name="l03714"></a><span class="lineno"> 3714</span> cpl_error_code</div>
-<div class="line"><a name="l03715"></a><span class="lineno"> 3715</span> uves_propertylist_append_int(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l03716"></a><span class="lineno"> 3716</span>                             <span class="keywordtype">int</span> value)</div>
-<div class="line"><a name="l03717"></a><span class="lineno"> 3717</span> {</div>
-<div class="line"><a name="l03718"></a><span class="lineno"> 3718</span>     <span class="keywordflow">return</span> <a class="code" href="group__uves__propertylist.html#gaad79e5cdd03fa3c809205ca63c8951b9" title="Append an integer value to a property list.">uves_propertylist_append_c_int</a>(<span class="keyword">self</span>, name, value, NULL);</div>
-<div class="line"><a name="l03719"></a><span class="lineno"> 3719</span> }</div>
-<div class="line"><a name="l03720"></a><span class="lineno"> 3720</span> </div>
-<div class="line"><a name="l03721"></a><span class="lineno"> 3721</span> cpl_error_code</div>
-<div class="line"><a name="l03722"></a><span class="lineno"> 3722</span> uves_propertylist_append_long(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l03723"></a><span class="lineno"> 3723</span>                              <span class="keywordtype">long</span> value)</div>
-<div class="line"><a name="l03724"></a><span class="lineno"> 3724</span> {</div>
-<div class="line"><a name="l03725"></a><span class="lineno"> 3725</span>     <span class="keywordflow">return</span> <a class="code" href="group__uves__propertylist.html#gaa03d7d474068a0724398a8aef019c953" title="Append a long value to a property list.">uves_propertylist_append_c_long</a>(<span class="keyword">self</span>, name, value, NULL);</div>
-<div class="line"><a name="l03726"></a><span class="lineno"> 3726</span> }</div>
-<div class="line"><a name="l03727"></a><span class="lineno"> 3727</span> </div>
-<div class="line"><a name="l03728"></a><span class="lineno"> 3728</span> cpl_error_code</div>
-<div class="line"><a name="l03729"></a><span class="lineno"> 3729</span> uves_propertylist_append_float(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l03730"></a><span class="lineno"> 3730</span>                               <span class="keywordtype">float</span> value)</div>
-<div class="line"><a name="l03731"></a><span class="lineno"> 3731</span> {</div>
-<div class="line"><a name="l03732"></a><span class="lineno"> 3732</span>     <span class="keywordflow">return</span> <a class="code" href="group__uves__propertylist.html#ga31238b65a9fdb7e3db3d1d0dcf6b6bbe" title="Append a float value to a property list.">uves_propertylist_append_c_float</a>(<span class="keyword">self</span>, name, value, NULL);</div>
-<div class="line"><a name="l03733"></a><span class="lineno"> 3733</span> }</div>
-<div class="line"><a name="l03734"></a><span class="lineno"> 3734</span> </div>
-<div class="line"><a name="l03735"></a><span class="lineno"> 3735</span> cpl_error_code</div>
-<div class="line"><a name="l03736"></a><span class="lineno"> 3736</span> uves_propertylist_append_double(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l03737"></a><span class="lineno"> 3737</span>                                <span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l03738"></a><span class="lineno"> 3738</span> {</div>
-<div class="line"><a name="l03739"></a><span class="lineno"> 3739</span>     <span class="keywordflow">return</span> <a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93" title="Append a double value to a property list.">uves_propertylist_append_c_double</a>(<span class="keyword">self</span>, name, value, NULL);</div>
-<div class="line"><a name="l03740"></a><span class="lineno"> 3740</span> }</div>
-<div class="line"><a name="l03741"></a><span class="lineno"> 3741</span> </div>
-<div class="line"><a name="l03742"></a><span class="lineno"> 3742</span> cpl_error_code</div>
-<div class="line"><a name="l03743"></a><span class="lineno"> 3743</span> uves_propertylist_append_string(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l03744"></a><span class="lineno"> 3744</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *value)</div>
-<div class="line"><a name="l03745"></a><span class="lineno"> 3745</span> {</div>
-<div class="line"><a name="l03746"></a><span class="lineno"> 3746</span>     <span class="keywordflow">return</span> <a class="code" href="group__uves__propertylist.html#ga39fee1a93e3baa0085017d4870144d7c" title="Append a string value to a property list.">uves_propertylist_append_c_string</a>(<span class="keyword">self</span>, name, value, NULL);</div>
-<div class="line"><a name="l03747"></a><span class="lineno"> 3747</span> }</div>
-<div class="line"><a name="l03748"></a><span class="lineno"> 3748</span> </div>
-<div class="line"><a name="l03749"></a><span class="lineno"> 3749</span> </div>
-<div class="line"><a name="l03750"></a><span class="lineno"> 3750</span> </div>
-<div class="line"><a name="l03751"></a><span class="lineno"> 3751</span> </div>
-<div class="line"><a name="l03752"></a><span class="lineno"> 3752</span> </div>
-<div class="line"><a name="l03753"></a><span class="lineno"> 3753</span> </div>
-<div class="line"><a name="l03754"></a><span class="lineno"> 3754</span> </div>
-<div class="line"><a name="l03755"></a><span class="lineno"> 3755</span> </div>
-<div class="line"><a name="l03756"></a><span class="lineno"> 3756</span> </div>
-<div class="line"><a name="l03757"></a><span class="lineno"> 3757</span> </div>
-<div class="line"><a name="l03758"></a><span class="lineno"> 3758</span> </div>
-<div class="line"><a name="l03759"></a><span class="lineno"> 3759</span> </div>
-<div class="line"><a name="l03760"></a><span class="lineno"> 3760</span> </div>
-<div class="line"><a name="l03761"></a><span class="lineno"> 3761</span> </div>
-<div class="line"><a name="l03762"></a><span class="lineno"> 3762</span> </div>
-<div class="line"><a name="l03763"></a><span class="lineno"> 3763</span> </div>
-<div class="line"><a name="l03764"></a><span class="lineno"> 3764</span> </div>
-<div class="line"><a name="l03765"></a><span class="lineno"> 3765</span> </div>
-<div class="line"><a name="l03794"></a><span class="lineno"> 3794</span> cpl_error_code</div>
-<div class="line"><a name="l03795"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga64519bda6f595f3ef9de641b5f37c9e1"> 3795</a></span> <a class="code" href="group__uves__propertylist.html#ga64519bda6f595f3ef9de641b5f37c9e1" title="Append a character value to a property list.">uves_propertylist_append_c_char</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const< [...]
-<div class="line"><a name="l03796"></a><span class="lineno"> 3796</span>                              <span class="keywordtype">char</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment)</div>
-<div class="line"><a name="l03797"></a><span class="lineno"> 3797</span> {</div>
-<div class="line"><a name="l03798"></a><span class="lineno"> 3798</span> </div>
-<div class="line"><a name="l03799"></a><span class="lineno"> 3799</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_append_char"</span>;</div>
-<div class="line"><a name="l03800"></a><span class="lineno"> 3800</span> </div>
-<div class="line"><a name="l03801"></a><span class="lineno"> 3801</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l03802"></a><span class="lineno"> 3802</span> </div>
-<div class="line"><a name="l03803"></a><span class="lineno"> 3803</span> </div>
-<div class="line"><a name="l03804"></a><span class="lineno"> 3804</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l03805"></a><span class="lineno"> 3805</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03806"></a><span class="lineno"> 3806</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03807"></a><span class="lineno"> 3807</span>     }</div>
-<div class="line"><a name="l03808"></a><span class="lineno"> 3808</span> </div>
-<div class="line"><a name="l03809"></a><span class="lineno"> 3809</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_CHAR);</div>
-<div class="line"><a name="l03810"></a><span class="lineno"> 3810</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l03811"></a><span class="lineno"> 3811</span> </div>
-<div class="line"><a name="l03812"></a><span class="lineno"> 3812</span>     <span class="keywordflow">if</span> (comment != NULL) cpl_property_set_comment(property, comment);</div>
-<div class="line"><a name="l03813"></a><span class="lineno"> 3813</span> </div>
-<div class="line"><a name="l03814"></a><span class="lineno"> 3814</span>     cpl_property_set_char(property, value);</div>
-<div class="line"><a name="l03815"></a><span class="lineno"> 3815</span>     uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l03816"></a><span class="lineno"> 3816</span> </div>
-<div class="line"><a name="l03817"></a><span class="lineno"> 3817</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03818"></a><span class="lineno"> 3818</span> </div>
-<div class="line"><a name="l03819"></a><span class="lineno"> 3819</span> }</div>
-<div class="line"><a name="l03820"></a><span class="lineno"> 3820</span> </div>
-<div class="line"><a name="l03821"></a><span class="lineno"> 3821</span> </div>
-<div class="line"><a name="l03850"></a><span class="lineno"> 3850</span> cpl_error_code</div>
-<div class="line"><a name="l03851"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga40e676ee81b51d67da6ce7cba7c71b50"> 3851</a></span> <a class="code" href="group__uves__propertylist.html#ga40e676ee81b51d67da6ce7cba7c71b50" title="Append a boolean value to a property list.">uves_propertylist_append_c_bool</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</s [...]
-<div class="line"><a name="l03852"></a><span class="lineno"> 3852</span>                              <span class="keywordtype">int</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment)</div>
-<div class="line"><a name="l03853"></a><span class="lineno"> 3853</span> {</div>
-<div class="line"><a name="l03854"></a><span class="lineno"> 3854</span> </div>
-<div class="line"><a name="l03855"></a><span class="lineno"> 3855</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_append_bool"</span>;</div>
-<div class="line"><a name="l03856"></a><span class="lineno"> 3856</span> </div>
-<div class="line"><a name="l03857"></a><span class="lineno"> 3857</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l03858"></a><span class="lineno"> 3858</span> </div>
-<div class="line"><a name="l03859"></a><span class="lineno"> 3859</span> </div>
-<div class="line"><a name="l03860"></a><span class="lineno"> 3860</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l03861"></a><span class="lineno"> 3861</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03862"></a><span class="lineno"> 3862</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03863"></a><span class="lineno"> 3863</span>     }</div>
-<div class="line"><a name="l03864"></a><span class="lineno"> 3864</span> </div>
-<div class="line"><a name="l03865"></a><span class="lineno"> 3865</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_BOOL);</div>
-<div class="line"><a name="l03866"></a><span class="lineno"> 3866</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l03867"></a><span class="lineno"> 3867</span> </div>
-<div class="line"><a name="l03868"></a><span class="lineno"> 3868</span>     <span class="keywordflow">if</span> (comment != NULL) cpl_property_set_comment(property, comment);</div>
-<div class="line"><a name="l03869"></a><span class="lineno"> 3869</span> </div>
-<div class="line"><a name="l03870"></a><span class="lineno"> 3870</span>     cpl_property_set_bool(property, value);</div>
-<div class="line"><a name="l03871"></a><span class="lineno"> 3871</span>     uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l03872"></a><span class="lineno"> 3872</span> </div>
-<div class="line"><a name="l03873"></a><span class="lineno"> 3873</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03874"></a><span class="lineno"> 3874</span> </div>
-<div class="line"><a name="l03875"></a><span class="lineno"> 3875</span> }</div>
-<div class="line"><a name="l03876"></a><span class="lineno"> 3876</span> </div>
-<div class="line"><a name="l03877"></a><span class="lineno"> 3877</span> </div>
-<div class="line"><a name="l03906"></a><span class="lineno"> 3906</span> cpl_error_code</div>
-<div class="line"><a name="l03907"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gaad79e5cdd03fa3c809205ca63c8951b9"> 3907</a></span> <a class="code" href="group__uves__propertylist.html#gaad79e5cdd03fa3c809205ca63c8951b9" title="Append an integer value to a property list.">uves_propertylist_append_c_int</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</s [...]
-<div class="line"><a name="l03908"></a><span class="lineno"> 3908</span>                             <span class="keywordtype">int</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment)</div>
-<div class="line"><a name="l03909"></a><span class="lineno"> 3909</span> {</div>
-<div class="line"><a name="l03910"></a><span class="lineno"> 3910</span> </div>
-<div class="line"><a name="l03911"></a><span class="lineno"> 3911</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_append_int"</span>;</div>
-<div class="line"><a name="l03912"></a><span class="lineno"> 3912</span> </div>
-<div class="line"><a name="l03913"></a><span class="lineno"> 3913</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l03914"></a><span class="lineno"> 3914</span> </div>
-<div class="line"><a name="l03915"></a><span class="lineno"> 3915</span> </div>
-<div class="line"><a name="l03916"></a><span class="lineno"> 3916</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l03917"></a><span class="lineno"> 3917</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03918"></a><span class="lineno"> 3918</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03919"></a><span class="lineno"> 3919</span>     }</div>
-<div class="line"><a name="l03920"></a><span class="lineno"> 3920</span> </div>
-<div class="line"><a name="l03921"></a><span class="lineno"> 3921</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_INT);</div>
-<div class="line"><a name="l03922"></a><span class="lineno"> 3922</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l03923"></a><span class="lineno"> 3923</span> </div>
-<div class="line"><a name="l03924"></a><span class="lineno"> 3924</span>     <span class="keywordflow">if</span> (comment != NULL) cpl_property_set_comment(property, comment);</div>
-<div class="line"><a name="l03925"></a><span class="lineno"> 3925</span> </div>
-<div class="line"><a name="l03926"></a><span class="lineno"> 3926</span>     cpl_property_set_int(property, value);</div>
-<div class="line"><a name="l03927"></a><span class="lineno"> 3927</span>     uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l03928"></a><span class="lineno"> 3928</span> </div>
-<div class="line"><a name="l03929"></a><span class="lineno"> 3929</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03930"></a><span class="lineno"> 3930</span> </div>
-<div class="line"><a name="l03931"></a><span class="lineno"> 3931</span> }</div>
-<div class="line"><a name="l03932"></a><span class="lineno"> 3932</span> </div>
-<div class="line"><a name="l03933"></a><span class="lineno"> 3933</span> </div>
-<div class="line"><a name="l03962"></a><span class="lineno"> 3962</span> cpl_error_code</div>
-<div class="line"><a name="l03963"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gaa03d7d474068a0724398a8aef019c953"> 3963</a></span> <a class="code" href="group__uves__propertylist.html#gaa03d7d474068a0724398a8aef019c953" title="Append a long value to a property list.">uves_propertylist_append_c_long</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span [...]
-<div class="line"><a name="l03964"></a><span class="lineno"> 3964</span>                              <span class="keywordtype">long</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment)</div>
-<div class="line"><a name="l03965"></a><span class="lineno"> 3965</span> {</div>
-<div class="line"><a name="l03966"></a><span class="lineno"> 3966</span> </div>
-<div class="line"><a name="l03967"></a><span class="lineno"> 3967</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_append_long"</span>;</div>
-<div class="line"><a name="l03968"></a><span class="lineno"> 3968</span> </div>
-<div class="line"><a name="l03969"></a><span class="lineno"> 3969</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l03970"></a><span class="lineno"> 3970</span> </div>
-<div class="line"><a name="l03971"></a><span class="lineno"> 3971</span> </div>
-<div class="line"><a name="l03972"></a><span class="lineno"> 3972</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l03973"></a><span class="lineno"> 3973</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03974"></a><span class="lineno"> 3974</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l03975"></a><span class="lineno"> 3975</span>     }</div>
-<div class="line"><a name="l03976"></a><span class="lineno"> 3976</span> </div>
-<div class="line"><a name="l03977"></a><span class="lineno"> 3977</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_LONG);</div>
-<div class="line"><a name="l03978"></a><span class="lineno"> 3978</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l03979"></a><span class="lineno"> 3979</span> </div>
-<div class="line"><a name="l03980"></a><span class="lineno"> 3980</span>     <span class="keywordflow">if</span> (comment != NULL) cpl_property_set_comment(property, comment);</div>
-<div class="line"><a name="l03981"></a><span class="lineno"> 3981</span> </div>
-<div class="line"><a name="l03982"></a><span class="lineno"> 3982</span>     cpl_property_set_long(property, value);</div>
-<div class="line"><a name="l03983"></a><span class="lineno"> 3983</span>     uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l03984"></a><span class="lineno"> 3984</span> </div>
-<div class="line"><a name="l03985"></a><span class="lineno"> 3985</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l03986"></a><span class="lineno"> 3986</span> </div>
-<div class="line"><a name="l03987"></a><span class="lineno"> 3987</span> }</div>
-<div class="line"><a name="l03988"></a><span class="lineno"> 3988</span> </div>
-<div class="line"><a name="l03989"></a><span class="lineno"> 3989</span> </div>
-<div class="line"><a name="l04018"></a><span class="lineno"> 4018</span> cpl_error_code</div>
-<div class="line"><a name="l04019"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga31238b65a9fdb7e3db3d1d0dcf6b6bbe"> 4019</a></span> <a class="code" href="group__uves__propertylist.html#ga31238b65a9fdb7e3db3d1d0dcf6b6bbe" title="Append a float value to a property list.">uves_propertylist_append_c_float</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</sp [...]
-<div class="line"><a name="l04020"></a><span class="lineno"> 4020</span>                               <span class="keywordtype">float</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment)</div>
-<div class="line"><a name="l04021"></a><span class="lineno"> 4021</span> {</div>
-<div class="line"><a name="l04022"></a><span class="lineno"> 4022</span> </div>
-<div class="line"><a name="l04023"></a><span class="lineno"> 4023</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_append_float"</span>;</div>
-<div class="line"><a name="l04024"></a><span class="lineno"> 4024</span> </div>
-<div class="line"><a name="l04025"></a><span class="lineno"> 4025</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l04026"></a><span class="lineno"> 4026</span> </div>
-<div class="line"><a name="l04027"></a><span class="lineno"> 4027</span> </div>
-<div class="line"><a name="l04028"></a><span class="lineno"> 4028</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l04029"></a><span class="lineno"> 4029</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04030"></a><span class="lineno"> 4030</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l04031"></a><span class="lineno"> 4031</span>     }</div>
-<div class="line"><a name="l04032"></a><span class="lineno"> 4032</span> </div>
-<div class="line"><a name="l04033"></a><span class="lineno"> 4033</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l04034"></a><span class="lineno"> 4034</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l04035"></a><span class="lineno"> 4035</span> </div>
-<div class="line"><a name="l04036"></a><span class="lineno"> 4036</span>     <span class="keywordflow">if</span> (comment != NULL) cpl_property_set_comment(property, comment);</div>
-<div class="line"><a name="l04037"></a><span class="lineno"> 4037</span> </div>
-<div class="line"><a name="l04038"></a><span class="lineno"> 4038</span>     cpl_property_set_float(property, value);</div>
-<div class="line"><a name="l04039"></a><span class="lineno"> 4039</span>     uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l04040"></a><span class="lineno"> 4040</span> </div>
-<div class="line"><a name="l04041"></a><span class="lineno"> 4041</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l04042"></a><span class="lineno"> 4042</span> </div>
-<div class="line"><a name="l04043"></a><span class="lineno"> 4043</span> }</div>
-<div class="line"><a name="l04044"></a><span class="lineno"> 4044</span> </div>
-<div class="line"><a name="l04045"></a><span class="lineno"> 4045</span> </div>
-<div class="line"><a name="l04074"></a><span class="lineno"> 4074</span> cpl_error_code</div>
-<div class="line"><a name="l04075"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93"> 4075</a></span> <a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93" title="Append a double value to a property list.">uves_propertylist_append_c_double</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</ [...]
-<div class="line"><a name="l04076"></a><span class="lineno"> 4076</span>                                <span class="keywordtype">double</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment)</div>
-<div class="line"><a name="l04077"></a><span class="lineno"> 4077</span> {</div>
-<div class="line"><a name="l04078"></a><span class="lineno"> 4078</span> </div>
-<div class="line"><a name="l04079"></a><span class="lineno"> 4079</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_append_double"</span>;</div>
-<div class="line"><a name="l04080"></a><span class="lineno"> 4080</span> </div>
-<div class="line"><a name="l04081"></a><span class="lineno"> 4081</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l04082"></a><span class="lineno"> 4082</span> </div>
-<div class="line"><a name="l04083"></a><span class="lineno"> 4083</span> </div>
-<div class="line"><a name="l04084"></a><span class="lineno"> 4084</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l04085"></a><span class="lineno"> 4085</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04086"></a><span class="lineno"> 4086</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l04087"></a><span class="lineno"> 4087</span>     }</div>
-<div class="line"><a name="l04088"></a><span class="lineno"> 4088</span> </div>
-<div class="line"><a name="l04089"></a><span class="lineno"> 4089</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l04090"></a><span class="lineno"> 4090</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l04091"></a><span class="lineno"> 4091</span> </div>
-<div class="line"><a name="l04092"></a><span class="lineno"> 4092</span>     <span class="keywordflow">if</span> (comment != NULL) cpl_property_set_comment(property, comment);</div>
-<div class="line"><a name="l04093"></a><span class="lineno"> 4093</span> </div>
-<div class="line"><a name="l04094"></a><span class="lineno"> 4094</span>     cpl_property_set_double(property, value);</div>
-<div class="line"><a name="l04095"></a><span class="lineno"> 4095</span>     uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l04096"></a><span class="lineno"> 4096</span> </div>
-<div class="line"><a name="l04097"></a><span class="lineno"> 4097</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l04098"></a><span class="lineno"> 4098</span> </div>
-<div class="line"><a name="l04099"></a><span class="lineno"> 4099</span> }</div>
-<div class="line"><a name="l04100"></a><span class="lineno"> 4100</span> </div>
-<div class="line"><a name="l04101"></a><span class="lineno"> 4101</span> </div>
-<div class="line"><a name="l04130"></a><span class="lineno"> 4130</span> cpl_error_code</div>
-<div class="line"><a name="l04131"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga39fee1a93e3baa0085017d4870144d7c"> 4131</a></span> <a class="code" href="group__uves__propertylist.html#ga39fee1a93e3baa0085017d4870144d7c" title="Append a string value to a property list.">uves_propertylist_append_c_string</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</ [...]
-<div class="line"><a name="l04132"></a><span class="lineno"> 4132</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment)</div>
-<div class="line"><a name="l04133"></a><span class="lineno"> 4133</span> {</div>
-<div class="line"><a name="l04134"></a><span class="lineno"> 4134</span> </div>
-<div class="line"><a name="l04135"></a><span class="lineno"> 4135</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_append_string"</span>;</div>
-<div class="line"><a name="l04136"></a><span class="lineno"> 4136</span> </div>
-<div class="line"><a name="l04137"></a><span class="lineno"> 4137</span>     cpl_property *<span class="keyword">property</span> = NULL;</div>
-<div class="line"><a name="l04138"></a><span class="lineno"> 4138</span> </div>
-<div class="line"><a name="l04139"></a><span class="lineno"> 4139</span> </div>
-<div class="line"><a name="l04140"></a><span class="lineno"> 4140</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l04141"></a><span class="lineno"> 4141</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04142"></a><span class="lineno"> 4142</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l04143"></a><span class="lineno"> 4143</span>     }</div>
-<div class="line"><a name="l04144"></a><span class="lineno"> 4144</span> </div>
-<div class="line"><a name="l04145"></a><span class="lineno"> 4145</span>     <span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l04146"></a><span class="lineno"> 4146</span>     cx_assert(property != NULL);</div>
-<div class="line"><a name="l04147"></a><span class="lineno"> 4147</span> </div>
-<div class="line"><a name="l04148"></a><span class="lineno"> 4148</span>     <span class="keywordflow">if</span> (comment != NULL) cpl_property_set_comment(property, comment);</div>
-<div class="line"><a name="l04149"></a><span class="lineno"> 4149</span> </div>
-<div class="line"><a name="l04150"></a><span class="lineno"> 4150</span>     cpl_property_set_string(property, value);</div>
-<div class="line"><a name="l04151"></a><span class="lineno"> 4151</span>     uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l04152"></a><span class="lineno"> 4152</span> </div>
-<div class="line"><a name="l04153"></a><span class="lineno"> 4153</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l04154"></a><span class="lineno"> 4154</span> </div>
-<div class="line"><a name="l04155"></a><span class="lineno"> 4155</span> }</div>
-<div class="line"><a name="l04156"></a><span class="lineno"> 4156</span> </div>
-<div class="line"><a name="l04157"></a><span class="lineno"> 4157</span> </div>
-<div class="line"><a name="l04184"></a><span class="lineno"> 4184</span> cpl_error_code</div>
-<div class="line"><a name="l04185"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46"> 4185</a></span> <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>,</div>
-<div class="line"><a name="l04186"></a><span class="lineno"> 4186</span>                         <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *other)</div>
-<div class="line"><a name="l04187"></a><span class="lineno"> 4187</span> {</div>
-<div class="line"><a name="l04188"></a><span class="lineno"> 4188</span> </div>
-<div class="line"><a name="l04189"></a><span class="lineno"> 4189</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_append"</span>;</div>
-<div class="line"><a name="l04190"></a><span class="lineno"> 4190</span> </div>
-<div class="line"><a name="l04191"></a><span class="lineno"> 4191</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL) {</div>
-<div class="line"><a name="l04192"></a><span class="lineno"> 4192</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04193"></a><span class="lineno"> 4193</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l04194"></a><span class="lineno"> 4194</span>     }</div>
-<div class="line"><a name="l04195"></a><span class="lineno"> 4195</span> </div>
-<div class="line"><a name="l04196"></a><span class="lineno"> 4196</span>     <span class="keywordflow">if</span> (other != NULL) {</div>
-<div class="line"><a name="l04197"></a><span class="lineno"> 4197</span> </div>
-<div class="line"><a name="l04198"></a><span class="lineno"> 4198</span>         uves_deque_const_iterator pos = uves_deque_begin(other->properties);</div>
-<div class="line"><a name="l04199"></a><span class="lineno"> 4199</span> </div>
-<div class="line"><a name="l04200"></a><span class="lineno"> 4200</span>         <span class="keywordflow">while</span> (pos != uves_deque_end(other->properties)) {</div>
-<div class="line"><a name="l04201"></a><span class="lineno"> 4201</span> </div>
-<div class="line"><a name="l04202"></a><span class="lineno"> 4202</span>             <span class="keyword">const</span> cpl_property *p = uves_deque_get(other->properties, pos);</div>
-<div class="line"><a name="l04203"></a><span class="lineno"> 4203</span> </div>
-<div class="line"><a name="l04204"></a><span class="lineno"> 4204</span>             uves_deque_push_back(self->properties, cpl_property_duplicate(p));</div>
-<div class="line"><a name="l04205"></a><span class="lineno"> 4205</span>             pos = uves_deque_next(other->properties, pos);</div>
-<div class="line"><a name="l04206"></a><span class="lineno"> 4206</span> </div>
-<div class="line"><a name="l04207"></a><span class="lineno"> 4207</span>         }</div>
-<div class="line"><a name="l04208"></a><span class="lineno"> 4208</span> </div>
-<div class="line"><a name="l04209"></a><span class="lineno"> 4209</span>     }</div>
-<div class="line"><a name="l04210"></a><span class="lineno"> 4210</span> </div>
-<div class="line"><a name="l04211"></a><span class="lineno"> 4211</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l04212"></a><span class="lineno"> 4212</span> </div>
-<div class="line"><a name="l04213"></a><span class="lineno"> 4213</span> }</div>
-<div class="line"><a name="l04214"></a><span class="lineno"> 4214</span> </div>
-<div class="line"><a name="l04215"></a><span class="lineno"> 4215</span> </div>
-<div class="line"><a name="l04246"></a><span class="lineno"> 4246</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04247"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8"> 4247</a></span> <a class="code" href="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8" title="Erase the given property from a property list.">uves_propertylist_erase</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> [...]
-<div class="line"><a name="l04248"></a><span class="lineno"> 4248</span> {</div>
-<div class="line"><a name="l04249"></a><span class="lineno"> 4249</span> </div>
-<div class="line"><a name="l04250"></a><span class="lineno"> 4250</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_erase"</span>;</div>
-<div class="line"><a name="l04251"></a><span class="lineno"> 4251</span> </div>
-<div class="line"><a name="l04252"></a><span class="lineno"> 4252</span>     uves_deque_iterator pos;</div>
-<div class="line"><a name="l04253"></a><span class="lineno"> 4253</span> </div>
-<div class="line"><a name="l04254"></a><span class="lineno"> 4254</span> </div>
-<div class="line"><a name="l04255"></a><span class="lineno"> 4255</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l04256"></a><span class="lineno"> 4256</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04257"></a><span class="lineno"> 4257</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04258"></a><span class="lineno"> 4258</span>     }</div>
-<div class="line"><a name="l04259"></a><span class="lineno"> 4259</span> </div>
-<div class="line"><a name="l04260"></a><span class="lineno"> 4260</span>     pos = _uves_propertylist_find(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l04261"></a><span class="lineno"> 4261</span>     <span class="keywordflow">if</span> (pos == uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l04262"></a><span class="lineno"> 4262</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04263"></a><span class="lineno"> 4263</span>     }</div>
-<div class="line"><a name="l04264"></a><span class="lineno"> 4264</span> <span class="comment">//        fprintf(stderr, "%d\n", __LINE__);</span></div>
-<div class="line"><a name="l04265"></a><span class="lineno"> 4265</span> </div>
-<div class="line"><a name="l04266"></a><span class="lineno"> 4266</span>     uves_deque_erase(self->properties, pos, (cx_free_func)cpl_property_delete);</div>
-<div class="line"><a name="l04267"></a><span class="lineno"> 4267</span> </div>
-<div class="line"><a name="l04268"></a><span class="lineno"> 4268</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l04269"></a><span class="lineno"> 4269</span> </div>
-<div class="line"><a name="l04270"></a><span class="lineno"> 4270</span> }</div>
-<div class="line"><a name="l04271"></a><span class="lineno"> 4271</span> </div>
-<div class="line"><a name="l04307"></a><span class="lineno"> 4307</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04308"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10"> 4308</a></span> <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span  [...]
-<div class="line"><a name="l04309"></a><span class="lineno"> 4309</span>                               <span class="keywordtype">int</span> invert)</div>
-<div class="line"><a name="l04310"></a><span class="lineno"> 4310</span> {</div>
-<div class="line"><a name="l04311"></a><span class="lineno"> 4311</span> </div>
-<div class="line"><a name="l04312"></a><span class="lineno"> 4312</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_erase_regexp"</span>;</div>
-<div class="line"><a name="l04313"></a><span class="lineno"> 4313</span> </div>
-<div class="line"><a name="l04314"></a><span class="lineno"> 4314</span>     cxint status = 0;</div>
-<div class="line"><a name="l04315"></a><span class="lineno"> 4315</span>     cxint count = 0;</div>
-<div class="line"><a name="l04316"></a><span class="lineno"> 4316</span> </div>
-<div class="line"><a name="l04317"></a><span class="lineno"> 4317</span>     uves_deque_iterator first, last, pos;</div>
-<div class="line"><a name="l04318"></a><span class="lineno"> 4318</span> </div>
-<div class="line"><a name="l04319"></a><span class="lineno"> 4319</span>     cpl_property    *p;</div>
-<div class="line"><a name="l04320"></a><span class="lineno"> 4320</span> </div>
-<div class="line"><a name="l04321"></a><span class="lineno"> 4321</span>     <a class="code" href="struct__uves__regexp__.html">uves_regexp</a> filter;</div>
-<div class="line"><a name="l04322"></a><span class="lineno"> 4322</span> </div>
-<div class="line"><a name="l04323"></a><span class="lineno"> 4323</span> </div>
-<div class="line"><a name="l04324"></a><span class="lineno"> 4324</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || regexp == NULL) {</div>
-<div class="line"><a name="l04325"></a><span class="lineno"> 4325</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04326"></a><span class="lineno"> 4326</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04327"></a><span class="lineno"> 4327</span>     }</div>
-<div class="line"><a name="l04328"></a><span class="lineno"> 4328</span> </div>
-<div class="line"><a name="l04329"></a><span class="lineno"> 4329</span> </div>
-<div class="line"><a name="l04330"></a><span class="lineno"> 4330</span>     status = regcomp(&filter.re, regexp, REG_EXTENDED | REG_NOSUB);</div>
-<div class="line"><a name="l04331"></a><span class="lineno"> 4331</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l04332"></a><span class="lineno"> 4332</span>         cpl_error_set(_id, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l04333"></a><span class="lineno"> 4333</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04334"></a><span class="lineno"> 4334</span>     }</div>
-<div class="line"><a name="l04335"></a><span class="lineno"> 4335</span> </div>
-<div class="line"><a name="l04336"></a><span class="lineno"> 4336</span>     filter.invert = invert == 0 ? FALSE : TRUE;</div>
-<div class="line"><a name="l04337"></a><span class="lineno"> 4337</span> </div>
-<div class="line"><a name="l04338"></a><span class="lineno"> 4338</span>     first = uves_deque_begin(self->properties);</div>
-<div class="line"><a name="l04339"></a><span class="lineno"> 4339</span>     last  = uves_deque_end(self->properties);</div>
-<div class="line"><a name="l04340"></a><span class="lineno"> 4340</span> </div>
-<div class="line"><a name="l04341"></a><span class="lineno"> 4341</span>     <span class="keywordflow">while</span> (first < uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l04342"></a><span class="lineno"> 4342</span>         pos = first;</div>
-<div class="line"><a name="l04343"></a><span class="lineno"> 4343</span> <span class="comment">//        first = uves_deque_next(self->properties, first);</span></div>
-<div class="line"><a name="l04344"></a><span class="lineno"> 4344</span> </div>
-<div class="line"><a name="l04345"></a><span class="lineno"> 4345</span>         p = uves_deque_get(self->properties, pos);</div>
-<div class="line"><a name="l04346"></a><span class="lineno"> 4346</span>         <span class="keywordflow">if</span> (_uves_propertylist_compare_regexp(p, &filter) == TRUE) {</div>
-<div class="line"><a name="l04347"></a><span class="lineno"> 4347</span> </div>
-<div class="line"><a name="l04348"></a><span class="lineno"> 4348</span> <span class="comment">//            fprintf(stderr, "%d\n", __LINE__);</span></div>
-<div class="line"><a name="l04349"></a><span class="lineno"> 4349</span> </div>
-<div class="line"><a name="l04350"></a><span class="lineno"> 4350</span>             uves_deque_erase(self->properties, pos,</div>
-<div class="line"><a name="l04351"></a><span class="lineno"> 4351</span>                           (cx_free_func)cpl_property_delete);</div>
-<div class="line"><a name="l04352"></a><span class="lineno"> 4352</span>             count++;</div>
-<div class="line"><a name="l04353"></a><span class="lineno"> 4353</span>         }</div>
-<div class="line"><a name="l04354"></a><span class="lineno"> 4354</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04355"></a><span class="lineno"> 4355</span>             first = uves_deque_next(self->properties, first);</div>
-<div class="line"><a name="l04356"></a><span class="lineno"> 4356</span>     }</div>
-<div class="line"><a name="l04357"></a><span class="lineno"> 4357</span> </div>
-<div class="line"><a name="l04358"></a><span class="lineno"> 4358</span>     regfree(&filter.re);</div>
-<div class="line"><a name="l04359"></a><span class="lineno"> 4359</span> </div>
-<div class="line"><a name="l04360"></a><span class="lineno"> 4360</span>     <span class="keywordflow">return</span> count;</div>
-<div class="line"><a name="l04361"></a><span class="lineno"> 4361</span> </div>
-<div class="line"><a name="l04362"></a><span class="lineno"> 4362</span> }</div>
-<div class="line"><a name="l04363"></a><span class="lineno"> 4363</span> </div>
-<div class="line"><a name="l04364"></a><span class="lineno"> 4364</span> </div>
-<div class="line"><a name="l04389"></a><span class="lineno"> 4389</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l04390"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755"> 4390</a></span> <a class="code" href="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755" title="Remove all properties from a property list.">uves_propertylist_empty</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>)</div>
-<div class="line"><a name="l04391"></a><span class="lineno"> 4391</span> {</div>
-<div class="line"><a name="l04392"></a><span class="lineno"> 4392</span> </div>
-<div class="line"><a name="l04393"></a><span class="lineno"> 4393</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_empty"</span>;</div>
-<div class="line"><a name="l04394"></a><span class="lineno"> 4394</span> </div>
-<div class="line"><a name="l04395"></a><span class="lineno"> 4395</span>     uves_deque_iterator first, last;</div>
-<div class="line"><a name="l04396"></a><span class="lineno"> 4396</span> </div>
-<div class="line"><a name="l04397"></a><span class="lineno"> 4397</span> </div>
-<div class="line"><a name="l04398"></a><span class="lineno"> 4398</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL) {</div>
-<div class="line"><a name="l04399"></a><span class="lineno"> 4399</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04400"></a><span class="lineno"> 4400</span>         <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l04401"></a><span class="lineno"> 4401</span>     }</div>
-<div class="line"><a name="l04402"></a><span class="lineno"> 4402</span> </div>
-<div class="line"><a name="l04403"></a><span class="lineno"> 4403</span>     first = uves_deque_begin(self->properties);</div>
-<div class="line"><a name="l04404"></a><span class="lineno"> 4404</span>     last = uves_deque_end(self->properties);</div>
-<div class="line"><a name="l04405"></a><span class="lineno"> 4405</span> </div>
-<div class="line"><a name="l04406"></a><span class="lineno"> 4406</span>     <span class="keywordflow">while</span> (first < uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l04407"></a><span class="lineno"> 4407</span>         uves_deque_iterator pos = first;</div>
-<div class="line"><a name="l04408"></a><span class="lineno"> 4408</span>         </div>
-<div class="line"><a name="l04409"></a><span class="lineno"> 4409</span> <span class="comment">//        first = uves_deque_next(self->properties, first);</span></div>
-<div class="line"><a name="l04410"></a><span class="lineno"> 4410</span> <span class="comment">//        fprintf(stderr, "%d  %d %d %d\n", __LINE__, first, last, pos);</span></div>
-<div class="line"><a name="l04411"></a><span class="lineno"> 4411</span>         uves_deque_erase(self->properties, pos,</div>
-<div class="line"><a name="l04412"></a><span class="lineno"> 4412</span>                       (cx_free_func)cpl_property_delete);</div>
-<div class="line"><a name="l04413"></a><span class="lineno"> 4413</span> </div>
-<div class="line"><a name="l04414"></a><span class="lineno"> 4414</span> <span class="comment">//        first = uves_deque_next(self->properties, first);</span></div>
-<div class="line"><a name="l04415"></a><span class="lineno"> 4415</span>     }</div>
-<div class="line"><a name="l04416"></a><span class="lineno"> 4416</span> </div>
-<div class="line"><a name="l04417"></a><span class="lineno"> 4417</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l04418"></a><span class="lineno"> 4418</span> </div>
-<div class="line"><a name="l04419"></a><span class="lineno"> 4419</span> }</div>
-<div class="line"><a name="l04420"></a><span class="lineno"> 4420</span> </div>
-<div class="line"><a name="l04421"></a><span class="lineno"> 4421</span> </div>
-<div class="line"><a name="l04460"></a><span class="lineno"> 4460</span> cpl_error_code</div>
-<div class="line"><a name="l04461"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga810374cc06f2343166ed49fa1be9f7cb"> 4461</a></span> <a class="code" href="group__uves__propertylist.html#ga810374cc06f2343166ed49fa1be9f7cb" title="Update a property list with a character value.">uves_propertylist_update_char</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const< [...]
-<div class="line"><a name="l04462"></a><span class="lineno"> 4462</span>                              <span class="keywordtype">char</span> value)</div>
-<div class="line"><a name="l04463"></a><span class="lineno"> 4463</span> {</div>
-<div class="line"><a name="l04464"></a><span class="lineno"> 4464</span> </div>
-<div class="line"><a name="l04465"></a><span class="lineno"> 4465</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_update_char"</span>;</div>
-<div class="line"><a name="l04466"></a><span class="lineno"> 4466</span> </div>
-<div class="line"><a name="l04467"></a><span class="lineno"> 4467</span>     uves_deque_iterator pos;</div>
-<div class="line"><a name="l04468"></a><span class="lineno"> 4468</span> </div>
-<div class="line"><a name="l04469"></a><span class="lineno"> 4469</span> </div>
-<div class="line"><a name="l04470"></a><span class="lineno"> 4470</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l04471"></a><span class="lineno"> 4471</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04472"></a><span class="lineno"> 4472</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l04473"></a><span class="lineno"> 4473</span>     }</div>
-<div class="line"><a name="l04474"></a><span class="lineno"> 4474</span> </div>
-<div class="line"><a name="l04475"></a><span class="lineno"> 4475</span>     pos = _uves_propertylist_find(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l04476"></a><span class="lineno"> 4476</span> </div>
-<div class="line"><a name="l04477"></a><span class="lineno"> 4477</span>     <span class="keywordflow">if</span> (pos == uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l04478"></a><span class="lineno"> 4478</span> </div>
-<div class="line"><a name="l04479"></a><span class="lineno"> 4479</span>         cpl_property *<span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_CHAR);</div>
-<div class="line"><a name="l04480"></a><span class="lineno"> 4480</span> </div>
-<div class="line"><a name="l04481"></a><span class="lineno"> 4481</span> </div>
-<div class="line"><a name="l04482"></a><span class="lineno"> 4482</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04483"></a><span class="lineno"> 4483</span> </div>
-<div class="line"><a name="l04484"></a><span class="lineno"> 4484</span>         cpl_property_set_char(property, value);</div>
-<div class="line"><a name="l04485"></a><span class="lineno"> 4485</span>         uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l04486"></a><span class="lineno"> 4486</span>     }</div>
-<div class="line"><a name="l04487"></a><span class="lineno"> 4487</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04488"></a><span class="lineno"> 4488</span> </div>
-<div class="line"><a name="l04489"></a><span class="lineno"> 4489</span>         cpl_property *<span class="keyword">property</span> = uves_deque_get(self->properties, pos);</div>
-<div class="line"><a name="l04490"></a><span class="lineno"> 4490</span> </div>
-<div class="line"><a name="l04491"></a><span class="lineno"> 4491</span> </div>
-<div class="line"><a name="l04492"></a><span class="lineno"> 4492</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04493"></a><span class="lineno"> 4493</span> </div>
-<div class="line"><a name="l04494"></a><span class="lineno"> 4494</span>         <span class="keywordflow">if</span> (cpl_property_get_type(property) != CPL_TYPE_CHAR) {</div>
-<div class="line"><a name="l04495"></a><span class="lineno"> 4495</span>             cpl_error_set(_id, CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l04496"></a><span class="lineno"> 4496</span>             <span class="keywordflow">return</span> CPL_ERROR_TYPE_MISMATCH;</div>
-<div class="line"><a name="l04497"></a><span class="lineno"> 4497</span>         }</div>
-<div class="line"><a name="l04498"></a><span class="lineno"> 4498</span> </div>
-<div class="line"><a name="l04499"></a><span class="lineno"> 4499</span>         cpl_property_set_char(property, value);</div>
-<div class="line"><a name="l04500"></a><span class="lineno"> 4500</span> </div>
-<div class="line"><a name="l04501"></a><span class="lineno"> 4501</span>     }</div>
-<div class="line"><a name="l04502"></a><span class="lineno"> 4502</span> </div>
-<div class="line"><a name="l04503"></a><span class="lineno"> 4503</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l04504"></a><span class="lineno"> 4504</span> </div>
-<div class="line"><a name="l04505"></a><span class="lineno"> 4505</span> }</div>
-<div class="line"><a name="l04506"></a><span class="lineno"> 4506</span> </div>
-<div class="line"><a name="l04507"></a><span class="lineno"> 4507</span> </div>
-<div class="line"><a name="l04546"></a><span class="lineno"> 4546</span> cpl_error_code</div>
-<div class="line"><a name="l04547"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga843649fce9e26744ba7be376354d9c39"> 4547</a></span> <a class="code" href="group__uves__propertylist.html#ga843649fce9e26744ba7be376354d9c39" title="Update a property list with a boolean value.">uves_propertylist_update_bool</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</s [...]
-<div class="line"><a name="l04548"></a><span class="lineno"> 4548</span>                              <span class="keywordtype">int</span> value)</div>
-<div class="line"><a name="l04549"></a><span class="lineno"> 4549</span> {</div>
-<div class="line"><a name="l04550"></a><span class="lineno"> 4550</span> </div>
-<div class="line"><a name="l04551"></a><span class="lineno"> 4551</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_update_bool"</span>;</div>
-<div class="line"><a name="l04552"></a><span class="lineno"> 4552</span> </div>
-<div class="line"><a name="l04553"></a><span class="lineno"> 4553</span>     uves_deque_iterator pos;</div>
-<div class="line"><a name="l04554"></a><span class="lineno"> 4554</span> </div>
-<div class="line"><a name="l04555"></a><span class="lineno"> 4555</span> </div>
-<div class="line"><a name="l04556"></a><span class="lineno"> 4556</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l04557"></a><span class="lineno"> 4557</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04558"></a><span class="lineno"> 4558</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l04559"></a><span class="lineno"> 4559</span>     }</div>
-<div class="line"><a name="l04560"></a><span class="lineno"> 4560</span> </div>
-<div class="line"><a name="l04561"></a><span class="lineno"> 4561</span>     pos = _uves_propertylist_find(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l04562"></a><span class="lineno"> 4562</span> </div>
-<div class="line"><a name="l04563"></a><span class="lineno"> 4563</span>     <span class="keywordflow">if</span> (pos == uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l04564"></a><span class="lineno"> 4564</span> </div>
-<div class="line"><a name="l04565"></a><span class="lineno"> 4565</span>         cpl_property *<span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_BOOL);</div>
-<div class="line"><a name="l04566"></a><span class="lineno"> 4566</span> </div>
-<div class="line"><a name="l04567"></a><span class="lineno"> 4567</span> </div>
-<div class="line"><a name="l04568"></a><span class="lineno"> 4568</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04569"></a><span class="lineno"> 4569</span> </div>
-<div class="line"><a name="l04570"></a><span class="lineno"> 4570</span>         cpl_property_set_bool(property, value);</div>
-<div class="line"><a name="l04571"></a><span class="lineno"> 4571</span>         uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l04572"></a><span class="lineno"> 4572</span>     }</div>
-<div class="line"><a name="l04573"></a><span class="lineno"> 4573</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04574"></a><span class="lineno"> 4574</span> </div>
-<div class="line"><a name="l04575"></a><span class="lineno"> 4575</span>         cpl_property *<span class="keyword">property</span> = uves_deque_get(self->properties, pos);</div>
-<div class="line"><a name="l04576"></a><span class="lineno"> 4576</span> </div>
-<div class="line"><a name="l04577"></a><span class="lineno"> 4577</span> </div>
-<div class="line"><a name="l04578"></a><span class="lineno"> 4578</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04579"></a><span class="lineno"> 4579</span> </div>
-<div class="line"><a name="l04580"></a><span class="lineno"> 4580</span>         <span class="keywordflow">if</span> (cpl_property_get_type(property) != CPL_TYPE_BOOL) {</div>
-<div class="line"><a name="l04581"></a><span class="lineno"> 4581</span>             cpl_error_set(_id, CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l04582"></a><span class="lineno"> 4582</span>             <span class="keywordflow">return</span> CPL_ERROR_TYPE_MISMATCH;</div>
-<div class="line"><a name="l04583"></a><span class="lineno"> 4583</span>         }</div>
-<div class="line"><a name="l04584"></a><span class="lineno"> 4584</span> </div>
-<div class="line"><a name="l04585"></a><span class="lineno"> 4585</span>         cpl_property_set_bool(property, value);</div>
-<div class="line"><a name="l04586"></a><span class="lineno"> 4586</span> </div>
-<div class="line"><a name="l04587"></a><span class="lineno"> 4587</span>     }</div>
-<div class="line"><a name="l04588"></a><span class="lineno"> 4588</span> </div>
-<div class="line"><a name="l04589"></a><span class="lineno"> 4589</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l04590"></a><span class="lineno"> 4590</span> </div>
-<div class="line"><a name="l04591"></a><span class="lineno"> 4591</span> }</div>
-<div class="line"><a name="l04592"></a><span class="lineno"> 4592</span> </div>
-<div class="line"><a name="l04593"></a><span class="lineno"> 4593</span> </div>
-<div class="line"><a name="l04632"></a><span class="lineno"> 4632</span> cpl_error_code</div>
-<div class="line"><a name="l04633"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23"> 4633</a></span> <a class="code" href="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23" title="Update a property list with a integer value.">uves_propertylist_update_int</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</sp [...]
-<div class="line"><a name="l04634"></a><span class="lineno"> 4634</span>                             <span class="keywordtype">int</span> value)</div>
-<div class="line"><a name="l04635"></a><span class="lineno"> 4635</span> {</div>
-<div class="line"><a name="l04636"></a><span class="lineno"> 4636</span> </div>
-<div class="line"><a name="l04637"></a><span class="lineno"> 4637</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_update_int"</span>;</div>
-<div class="line"><a name="l04638"></a><span class="lineno"> 4638</span> </div>
-<div class="line"><a name="l04639"></a><span class="lineno"> 4639</span>     uves_deque_iterator pos;</div>
-<div class="line"><a name="l04640"></a><span class="lineno"> 4640</span> </div>
-<div class="line"><a name="l04641"></a><span class="lineno"> 4641</span> </div>
-<div class="line"><a name="l04642"></a><span class="lineno"> 4642</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l04643"></a><span class="lineno"> 4643</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04644"></a><span class="lineno"> 4644</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l04645"></a><span class="lineno"> 4645</span>     }</div>
-<div class="line"><a name="l04646"></a><span class="lineno"> 4646</span> </div>
-<div class="line"><a name="l04647"></a><span class="lineno"> 4647</span>     pos = _uves_propertylist_find(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l04648"></a><span class="lineno"> 4648</span> </div>
-<div class="line"><a name="l04649"></a><span class="lineno"> 4649</span>     <span class="keywordflow">if</span> (pos == uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l04650"></a><span class="lineno"> 4650</span> </div>
-<div class="line"><a name="l04651"></a><span class="lineno"> 4651</span>         cpl_property *<span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_INT);</div>
-<div class="line"><a name="l04652"></a><span class="lineno"> 4652</span> </div>
-<div class="line"><a name="l04653"></a><span class="lineno"> 4653</span> </div>
-<div class="line"><a name="l04654"></a><span class="lineno"> 4654</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04655"></a><span class="lineno"> 4655</span> </div>
-<div class="line"><a name="l04656"></a><span class="lineno"> 4656</span>         cpl_property_set_int(property, value);</div>
-<div class="line"><a name="l04657"></a><span class="lineno"> 4657</span>         uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l04658"></a><span class="lineno"> 4658</span>     }</div>
-<div class="line"><a name="l04659"></a><span class="lineno"> 4659</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04660"></a><span class="lineno"> 4660</span> </div>
-<div class="line"><a name="l04661"></a><span class="lineno"> 4661</span>         cpl_property *<span class="keyword">property</span> = uves_deque_get(self->properties, pos);</div>
-<div class="line"><a name="l04662"></a><span class="lineno"> 4662</span> </div>
-<div class="line"><a name="l04663"></a><span class="lineno"> 4663</span> </div>
-<div class="line"><a name="l04664"></a><span class="lineno"> 4664</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04665"></a><span class="lineno"> 4665</span> </div>
-<div class="line"><a name="l04666"></a><span class="lineno"> 4666</span>         <span class="keywordflow">if</span> (cpl_property_get_type(property) != CPL_TYPE_INT) {</div>
-<div class="line"><a name="l04667"></a><span class="lineno"> 4667</span>             cpl_error_set(_id, CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l04668"></a><span class="lineno"> 4668</span>             <span class="keywordflow">return</span> CPL_ERROR_TYPE_MISMATCH;</div>
-<div class="line"><a name="l04669"></a><span class="lineno"> 4669</span>         }</div>
-<div class="line"><a name="l04670"></a><span class="lineno"> 4670</span> </div>
-<div class="line"><a name="l04671"></a><span class="lineno"> 4671</span>         cpl_property_set_int(property, value);</div>
-<div class="line"><a name="l04672"></a><span class="lineno"> 4672</span> </div>
-<div class="line"><a name="l04673"></a><span class="lineno"> 4673</span>     }</div>
-<div class="line"><a name="l04674"></a><span class="lineno"> 4674</span> </div>
-<div class="line"><a name="l04675"></a><span class="lineno"> 4675</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l04676"></a><span class="lineno"> 4676</span> </div>
-<div class="line"><a name="l04677"></a><span class="lineno"> 4677</span> }</div>
-<div class="line"><a name="l04678"></a><span class="lineno"> 4678</span> </div>
-<div class="line"><a name="l04679"></a><span class="lineno"> 4679</span> </div>
-<div class="line"><a name="l04718"></a><span class="lineno"> 4718</span> cpl_error_code</div>
-<div class="line"><a name="l04719"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga8108bd5d80f387c4e65d80f38373de6e"> 4719</a></span> <a class="code" href="group__uves__propertylist.html#ga8108bd5d80f387c4e65d80f38373de6e" title="Update a property list with a long value.">uves_propertylist_update_long</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span [...]
-<div class="line"><a name="l04720"></a><span class="lineno"> 4720</span>                              <span class="keywordtype">long</span> value)</div>
-<div class="line"><a name="l04721"></a><span class="lineno"> 4721</span> {</div>
-<div class="line"><a name="l04722"></a><span class="lineno"> 4722</span> </div>
-<div class="line"><a name="l04723"></a><span class="lineno"> 4723</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_update_long"</span>;</div>
-<div class="line"><a name="l04724"></a><span class="lineno"> 4724</span> </div>
-<div class="line"><a name="l04725"></a><span class="lineno"> 4725</span>     uves_deque_iterator pos;</div>
-<div class="line"><a name="l04726"></a><span class="lineno"> 4726</span> </div>
-<div class="line"><a name="l04727"></a><span class="lineno"> 4727</span> </div>
-<div class="line"><a name="l04728"></a><span class="lineno"> 4728</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l04729"></a><span class="lineno"> 4729</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04730"></a><span class="lineno"> 4730</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l04731"></a><span class="lineno"> 4731</span>     }</div>
-<div class="line"><a name="l04732"></a><span class="lineno"> 4732</span> </div>
-<div class="line"><a name="l04733"></a><span class="lineno"> 4733</span>     pos = _uves_propertylist_find(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l04734"></a><span class="lineno"> 4734</span> </div>
-<div class="line"><a name="l04735"></a><span class="lineno"> 4735</span>     <span class="keywordflow">if</span> (pos == uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l04736"></a><span class="lineno"> 4736</span> </div>
-<div class="line"><a name="l04737"></a><span class="lineno"> 4737</span>         cpl_property *<span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_LONG);</div>
-<div class="line"><a name="l04738"></a><span class="lineno"> 4738</span> </div>
-<div class="line"><a name="l04739"></a><span class="lineno"> 4739</span> </div>
-<div class="line"><a name="l04740"></a><span class="lineno"> 4740</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04741"></a><span class="lineno"> 4741</span> </div>
-<div class="line"><a name="l04742"></a><span class="lineno"> 4742</span>         cpl_property_set_long(property, value);</div>
-<div class="line"><a name="l04743"></a><span class="lineno"> 4743</span>         uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l04744"></a><span class="lineno"> 4744</span>     }</div>
-<div class="line"><a name="l04745"></a><span class="lineno"> 4745</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04746"></a><span class="lineno"> 4746</span> </div>
-<div class="line"><a name="l04747"></a><span class="lineno"> 4747</span>         cpl_property *<span class="keyword">property</span> = uves_deque_get(self->properties, pos);</div>
-<div class="line"><a name="l04748"></a><span class="lineno"> 4748</span> </div>
-<div class="line"><a name="l04749"></a><span class="lineno"> 4749</span> </div>
-<div class="line"><a name="l04750"></a><span class="lineno"> 4750</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04751"></a><span class="lineno"> 4751</span> </div>
-<div class="line"><a name="l04752"></a><span class="lineno"> 4752</span>         <span class="keywordflow">if</span> (cpl_property_get_type(property) != CPL_TYPE_LONG) {</div>
-<div class="line"><a name="l04753"></a><span class="lineno"> 4753</span>             cpl_error_set(_id, CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l04754"></a><span class="lineno"> 4754</span>             <span class="keywordflow">return</span> CPL_ERROR_TYPE_MISMATCH;</div>
-<div class="line"><a name="l04755"></a><span class="lineno"> 4755</span>         }</div>
-<div class="line"><a name="l04756"></a><span class="lineno"> 4756</span> </div>
-<div class="line"><a name="l04757"></a><span class="lineno"> 4757</span>         cpl_property_set_long(property, value);</div>
-<div class="line"><a name="l04758"></a><span class="lineno"> 4758</span> </div>
-<div class="line"><a name="l04759"></a><span class="lineno"> 4759</span>     }</div>
-<div class="line"><a name="l04760"></a><span class="lineno"> 4760</span> </div>
-<div class="line"><a name="l04761"></a><span class="lineno"> 4761</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l04762"></a><span class="lineno"> 4762</span> </div>
-<div class="line"><a name="l04763"></a><span class="lineno"> 4763</span> }</div>
-<div class="line"><a name="l04764"></a><span class="lineno"> 4764</span> </div>
-<div class="line"><a name="l04765"></a><span class="lineno"> 4765</span> </div>
-<div class="line"><a name="l04804"></a><span class="lineno"> 4804</span> cpl_error_code</div>
-<div class="line"><a name="l04805"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga3dfc4fa6ae6687892c7cf6ef73f41ef3"> 4805</a></span> <a class="code" href="group__uves__propertylist.html#ga3dfc4fa6ae6687892c7cf6ef73f41ef3" title="Update a property list with a float value.">uves_propertylist_update_float</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</sp [...]
-<div class="line"><a name="l04806"></a><span class="lineno"> 4806</span>                               <span class="keywordtype">float</span> value)</div>
-<div class="line"><a name="l04807"></a><span class="lineno"> 4807</span> {</div>
-<div class="line"><a name="l04808"></a><span class="lineno"> 4808</span> </div>
-<div class="line"><a name="l04809"></a><span class="lineno"> 4809</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_update_float"</span>;</div>
-<div class="line"><a name="l04810"></a><span class="lineno"> 4810</span> </div>
-<div class="line"><a name="l04811"></a><span class="lineno"> 4811</span>     uves_deque_iterator pos;</div>
-<div class="line"><a name="l04812"></a><span class="lineno"> 4812</span> </div>
-<div class="line"><a name="l04813"></a><span class="lineno"> 4813</span> </div>
-<div class="line"><a name="l04814"></a><span class="lineno"> 4814</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l04815"></a><span class="lineno"> 4815</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04816"></a><span class="lineno"> 4816</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l04817"></a><span class="lineno"> 4817</span>     }</div>
-<div class="line"><a name="l04818"></a><span class="lineno"> 4818</span> </div>
-<div class="line"><a name="l04819"></a><span class="lineno"> 4819</span>     pos = _uves_propertylist_find(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l04820"></a><span class="lineno"> 4820</span> </div>
-<div class="line"><a name="l04821"></a><span class="lineno"> 4821</span>     <span class="keywordflow">if</span> (pos == uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l04822"></a><span class="lineno"> 4822</span> </div>
-<div class="line"><a name="l04823"></a><span class="lineno"> 4823</span>         cpl_property *<span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l04824"></a><span class="lineno"> 4824</span> </div>
-<div class="line"><a name="l04825"></a><span class="lineno"> 4825</span> </div>
-<div class="line"><a name="l04826"></a><span class="lineno"> 4826</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04827"></a><span class="lineno"> 4827</span> </div>
-<div class="line"><a name="l04828"></a><span class="lineno"> 4828</span>         cpl_property_set_float(property, value);</div>
-<div class="line"><a name="l04829"></a><span class="lineno"> 4829</span>         uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l04830"></a><span class="lineno"> 4830</span>     }</div>
-<div class="line"><a name="l04831"></a><span class="lineno"> 4831</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04832"></a><span class="lineno"> 4832</span> </div>
-<div class="line"><a name="l04833"></a><span class="lineno"> 4833</span>         cpl_property *<span class="keyword">property</span> = uves_deque_get(self->properties, pos);</div>
-<div class="line"><a name="l04834"></a><span class="lineno"> 4834</span> </div>
-<div class="line"><a name="l04835"></a><span class="lineno"> 4835</span> </div>
-<div class="line"><a name="l04836"></a><span class="lineno"> 4836</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04837"></a><span class="lineno"> 4837</span> </div>
-<div class="line"><a name="l04838"></a><span class="lineno"> 4838</span>         <span class="keywordflow">if</span> (cpl_property_get_type(property) != CPL_TYPE_FLOAT) {</div>
-<div class="line"><a name="l04839"></a><span class="lineno"> 4839</span>             cpl_error_set(_id, CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l04840"></a><span class="lineno"> 4840</span>             <span class="keywordflow">return</span> CPL_ERROR_TYPE_MISMATCH;</div>
-<div class="line"><a name="l04841"></a><span class="lineno"> 4841</span>         }</div>
-<div class="line"><a name="l04842"></a><span class="lineno"> 4842</span> </div>
-<div class="line"><a name="l04843"></a><span class="lineno"> 4843</span>         cpl_property_set_float(property, value);</div>
-<div class="line"><a name="l04844"></a><span class="lineno"> 4844</span> </div>
-<div class="line"><a name="l04845"></a><span class="lineno"> 4845</span>     }</div>
-<div class="line"><a name="l04846"></a><span class="lineno"> 4846</span> </div>
-<div class="line"><a name="l04847"></a><span class="lineno"> 4847</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l04848"></a><span class="lineno"> 4848</span> </div>
-<div class="line"><a name="l04849"></a><span class="lineno"> 4849</span> }</div>
-<div class="line"><a name="l04850"></a><span class="lineno"> 4850</span> </div>
-<div class="line"><a name="l04851"></a><span class="lineno"> 4851</span> </div>
-<div class="line"><a name="l04890"></a><span class="lineno"> 4890</span> cpl_error_code</div>
-<div class="line"><a name="l04891"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb"> 4891</a></span> <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</ [...]
-<div class="line"><a name="l04892"></a><span class="lineno"> 4892</span>                                <span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l04893"></a><span class="lineno"> 4893</span> {</div>
-<div class="line"><a name="l04894"></a><span class="lineno"> 4894</span> </div>
-<div class="line"><a name="l04895"></a><span class="lineno"> 4895</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_update_double"</span>;</div>
-<div class="line"><a name="l04896"></a><span class="lineno"> 4896</span> </div>
-<div class="line"><a name="l04897"></a><span class="lineno"> 4897</span>     uves_deque_iterator pos;</div>
-<div class="line"><a name="l04898"></a><span class="lineno"> 4898</span> </div>
-<div class="line"><a name="l04899"></a><span class="lineno"> 4899</span> </div>
-<div class="line"><a name="l04900"></a><span class="lineno"> 4900</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l04901"></a><span class="lineno"> 4901</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04902"></a><span class="lineno"> 4902</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l04903"></a><span class="lineno"> 4903</span>     }</div>
-<div class="line"><a name="l04904"></a><span class="lineno"> 4904</span> </div>
-<div class="line"><a name="l04905"></a><span class="lineno"> 4905</span>     pos = _uves_propertylist_find(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l04906"></a><span class="lineno"> 4906</span> </div>
-<div class="line"><a name="l04907"></a><span class="lineno"> 4907</span>     <span class="keywordflow">if</span> (pos == uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l04908"></a><span class="lineno"> 4908</span> </div>
-<div class="line"><a name="l04909"></a><span class="lineno"> 4909</span>         cpl_property *<span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l04910"></a><span class="lineno"> 4910</span> </div>
-<div class="line"><a name="l04911"></a><span class="lineno"> 4911</span> </div>
-<div class="line"><a name="l04912"></a><span class="lineno"> 4912</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04913"></a><span class="lineno"> 4913</span> </div>
-<div class="line"><a name="l04914"></a><span class="lineno"> 4914</span>         cpl_property_set_double(property, value);</div>
-<div class="line"><a name="l04915"></a><span class="lineno"> 4915</span>         uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l04916"></a><span class="lineno"> 4916</span>     }</div>
-<div class="line"><a name="l04917"></a><span class="lineno"> 4917</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04918"></a><span class="lineno"> 4918</span> </div>
-<div class="line"><a name="l04919"></a><span class="lineno"> 4919</span>         cpl_property *<span class="keyword">property</span> = uves_deque_get(self->properties, pos);</div>
-<div class="line"><a name="l04920"></a><span class="lineno"> 4920</span> </div>
-<div class="line"><a name="l04921"></a><span class="lineno"> 4921</span> </div>
-<div class="line"><a name="l04922"></a><span class="lineno"> 4922</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04923"></a><span class="lineno"> 4923</span> </div>
-<div class="line"><a name="l04924"></a><span class="lineno"> 4924</span>         <span class="keywordflow">if</span> (cpl_property_get_type(property) != CPL_TYPE_DOUBLE) {</div>
-<div class="line"><a name="l04925"></a><span class="lineno"> 4925</span>             cpl_error_set(_id, CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l04926"></a><span class="lineno"> 4926</span>             <span class="keywordflow">return</span> CPL_ERROR_TYPE_MISMATCH;</div>
-<div class="line"><a name="l04927"></a><span class="lineno"> 4927</span>         }</div>
-<div class="line"><a name="l04928"></a><span class="lineno"> 4928</span> </div>
-<div class="line"><a name="l04929"></a><span class="lineno"> 4929</span>         cpl_property_set_double(property, value);</div>
-<div class="line"><a name="l04930"></a><span class="lineno"> 4930</span> </div>
-<div class="line"><a name="l04931"></a><span class="lineno"> 4931</span>     }</div>
-<div class="line"><a name="l04932"></a><span class="lineno"> 4932</span> </div>
-<div class="line"><a name="l04933"></a><span class="lineno"> 4933</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l04934"></a><span class="lineno"> 4934</span> </div>
-<div class="line"><a name="l04935"></a><span class="lineno"> 4935</span> }</div>
-<div class="line"><a name="l04936"></a><span class="lineno"> 4936</span> </div>
-<div class="line"><a name="l04937"></a><span class="lineno"> 4937</span> </div>
-<div class="line"><a name="l04976"></a><span class="lineno"> 4976</span> cpl_error_code</div>
-<div class="line"><a name="l04977"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b"> 4977</a></span> <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</ [...]
-<div class="line"><a name="l04978"></a><span class="lineno"> 4978</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *value)</div>
-<div class="line"><a name="l04979"></a><span class="lineno"> 4979</span> {</div>
-<div class="line"><a name="l04980"></a><span class="lineno"> 4980</span> </div>
-<div class="line"><a name="l04981"></a><span class="lineno"> 4981</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_update_string"</span>;</div>
-<div class="line"><a name="l04982"></a><span class="lineno"> 4982</span> </div>
-<div class="line"><a name="l04983"></a><span class="lineno"> 4983</span>     uves_deque_iterator pos;</div>
-<div class="line"><a name="l04984"></a><span class="lineno"> 4984</span> </div>
-<div class="line"><a name="l04985"></a><span class="lineno"> 4985</span> </div>
-<div class="line"><a name="l04986"></a><span class="lineno"> 4986</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || name == NULL) {</div>
-<div class="line"><a name="l04987"></a><span class="lineno"> 4987</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l04988"></a><span class="lineno"> 4988</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l04989"></a><span class="lineno"> 4989</span>     }</div>
-<div class="line"><a name="l04990"></a><span class="lineno"> 4990</span> </div>
-<div class="line"><a name="l04991"></a><span class="lineno"> 4991</span>     pos = _uves_propertylist_find(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l04992"></a><span class="lineno"> 4992</span> </div>
-<div class="line"><a name="l04993"></a><span class="lineno"> 4993</span>     <span class="keywordflow">if</span> (pos == uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l04994"></a><span class="lineno"> 4994</span> </div>
-<div class="line"><a name="l04995"></a><span class="lineno"> 4995</span>         cpl_property *<span class="keyword">property</span> = cpl_property_new(name, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l04996"></a><span class="lineno"> 4996</span> </div>
-<div class="line"><a name="l04997"></a><span class="lineno"> 4997</span> </div>
-<div class="line"><a name="l04998"></a><span class="lineno"> 4998</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l04999"></a><span class="lineno"> 4999</span> </div>
-<div class="line"><a name="l05000"></a><span class="lineno"> 5000</span>         cpl_property_set_string(property, value);</div>
-<div class="line"><a name="l05001"></a><span class="lineno"> 5001</span>         uves_deque_push_back(self->properties, property);</div>
-<div class="line"><a name="l05002"></a><span class="lineno"> 5002</span>     }</div>
-<div class="line"><a name="l05003"></a><span class="lineno"> 5003</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l05004"></a><span class="lineno"> 5004</span> </div>
-<div class="line"><a name="l05005"></a><span class="lineno"> 5005</span>         cpl_property *<span class="keyword">property</span> = uves_deque_get(self->properties, pos);</div>
-<div class="line"><a name="l05006"></a><span class="lineno"> 5006</span> </div>
-<div class="line"><a name="l05007"></a><span class="lineno"> 5007</span> </div>
-<div class="line"><a name="l05008"></a><span class="lineno"> 5008</span>         cx_assert(property != NULL);</div>
-<div class="line"><a name="l05009"></a><span class="lineno"> 5009</span> </div>
-<div class="line"><a name="l05010"></a><span class="lineno"> 5010</span>         <span class="keywordflow">if</span> (cpl_property_get_type(property) != CPL_TYPE_STRING) {</div>
-<div class="line"><a name="l05011"></a><span class="lineno"> 5011</span>             cpl_error_set(_id, CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l05012"></a><span class="lineno"> 5012</span>             <span class="keywordflow">return</span> CPL_ERROR_TYPE_MISMATCH;</div>
-<div class="line"><a name="l05013"></a><span class="lineno"> 5013</span>         }</div>
-<div class="line"><a name="l05014"></a><span class="lineno"> 5014</span> </div>
-<div class="line"><a name="l05015"></a><span class="lineno"> 5015</span>         cpl_property_set_string(property, value);</div>
-<div class="line"><a name="l05016"></a><span class="lineno"> 5016</span> </div>
-<div class="line"><a name="l05017"></a><span class="lineno"> 5017</span>     }</div>
-<div class="line"><a name="l05018"></a><span class="lineno"> 5018</span> </div>
-<div class="line"><a name="l05019"></a><span class="lineno"> 5019</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l05020"></a><span class="lineno"> 5020</span> </div>
-<div class="line"><a name="l05021"></a><span class="lineno"> 5021</span> }</div>
-<div class="line"><a name="l05022"></a><span class="lineno"> 5022</span> </div>
-<div class="line"><a name="l05023"></a><span class="lineno"> 5023</span> </div>
-<div class="line"><a name="l05071"></a><span class="lineno"> 5071</span> cpl_error_code</div>
-<div class="line"><a name="l05072"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga498f10da2c5cd157cd004ce3e207ff6c"> 5072</a></span> <a class="code" href="group__uves__propertylist.html#ga498f10da2c5cd157cd004ce3e207ff6c" title="Copy a property from another property list.">uves_propertylist_copy_property</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>,</div>
-<div class="line"><a name="l05073"></a><span class="lineno"> 5073</span>                                <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *other,</div>
-<div class="line"><a name="l05074"></a><span class="lineno"> 5074</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *name)</div>
-<div class="line"><a name="l05075"></a><span class="lineno"> 5075</span> {</div>
-<div class="line"><a name="l05076"></a><span class="lineno"> 5076</span> </div>
-<div class="line"><a name="l05077"></a><span class="lineno"> 5077</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_copy_property"</span>;</div>
-<div class="line"><a name="l05078"></a><span class="lineno"> 5078</span> </div>
-<div class="line"><a name="l05079"></a><span class="lineno"> 5079</span>     uves_deque_iterator spos;</div>
-<div class="line"><a name="l05080"></a><span class="lineno"> 5080</span>     uves_deque_iterator tpos;</div>
-<div class="line"><a name="l05081"></a><span class="lineno"> 5081</span> </div>
-<div class="line"><a name="l05082"></a><span class="lineno"> 5082</span> </div>
-<div class="line"><a name="l05083"></a><span class="lineno"> 5083</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || other == NULL || name == NULL) {</div>
-<div class="line"><a name="l05084"></a><span class="lineno"> 5084</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l05085"></a><span class="lineno"> 5085</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l05086"></a><span class="lineno"> 5086</span>     }</div>
-<div class="line"><a name="l05087"></a><span class="lineno"> 5087</span> </div>
-<div class="line"><a name="l05088"></a><span class="lineno"> 5088</span>     spos = _uves_propertylist_find(other, name);</div>
-<div class="line"><a name="l05089"></a><span class="lineno"> 5089</span> </div>
-<div class="line"><a name="l05090"></a><span class="lineno"> 5090</span>     <span class="keywordflow">if</span> (spos == uves_deque_end(other->properties)) {</div>
-<div class="line"><a name="l05091"></a><span class="lineno"> 5091</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l05092"></a><span class="lineno"> 5092</span>         <span class="keywordflow">return</span> CPL_ERROR_DATA_NOT_FOUND;</div>
-<div class="line"><a name="l05093"></a><span class="lineno"> 5093</span>     }</div>
-<div class="line"><a name="l05094"></a><span class="lineno"> 5094</span> </div>
-<div class="line"><a name="l05095"></a><span class="lineno"> 5095</span>     tpos = _uves_propertylist_find(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l05096"></a><span class="lineno"> 5096</span> </div>
-<div class="line"><a name="l05097"></a><span class="lineno"> 5097</span>     <span class="keywordflow">if</span> (tpos == uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l05098"></a><span class="lineno"> 5098</span> </div>
-<div class="line"><a name="l05099"></a><span class="lineno"> 5099</span>         cpl_property *p = cpl_property_duplicate(uves_deque_get(other->properties,</div>
-<div class="line"><a name="l05100"></a><span class="lineno"> 5100</span>                                                              spos));</div>
-<div class="line"><a name="l05101"></a><span class="lineno"> 5101</span>         uves_deque_push_back(self->properties, p);</div>
-<div class="line"><a name="l05102"></a><span class="lineno"> 5102</span> </div>
-<div class="line"><a name="l05103"></a><span class="lineno"> 5103</span>     }</div>
-<div class="line"><a name="l05104"></a><span class="lineno"> 5104</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l05105"></a><span class="lineno"> 5105</span> </div>
-<div class="line"><a name="l05106"></a><span class="lineno"> 5106</span>         cpl_property *p = uves_deque_get(self->properties, tpos);</div>
-<div class="line"><a name="l05107"></a><span class="lineno"> 5107</span>         cpl_property *_p = uves_deque_get(self->properties, spos);</div>
-<div class="line"><a name="l05108"></a><span class="lineno"> 5108</span> </div>
-<div class="line"><a name="l05109"></a><span class="lineno"> 5109</span> </div>
-<div class="line"><a name="l05110"></a><span class="lineno"> 5110</span>         <span class="keywordflow">if</span> (cpl_property_get_type(p) != cpl_property_get_type(_p)) {</div>
-<div class="line"><a name="l05111"></a><span class="lineno"> 5111</span>             cpl_error_set(_id, CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l05112"></a><span class="lineno"> 5112</span>             <span class="keywordflow">return</span> CPL_ERROR_TYPE_MISMATCH;</div>
-<div class="line"><a name="l05113"></a><span class="lineno"> 5113</span>         }</div>
-<div class="line"><a name="l05114"></a><span class="lineno"> 5114</span> </div>
-<div class="line"><a name="l05115"></a><span class="lineno"> 5115</span>         <span class="keywordflow">switch</span> (cpl_property_get_type(_p)) {</div>
-<div class="line"><a name="l05116"></a><span class="lineno"> 5116</span> </div>
-<div class="line"><a name="l05117"></a><span class="lineno"> 5117</span>         <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l05118"></a><span class="lineno"> 5118</span>             cpl_property_set_char(p, cpl_property_get_char(_p));</div>
-<div class="line"><a name="l05119"></a><span class="lineno"> 5119</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05120"></a><span class="lineno"> 5120</span> </div>
-<div class="line"><a name="l05121"></a><span class="lineno"> 5121</span>         <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l05122"></a><span class="lineno"> 5122</span>             cpl_property_set_bool(p, cpl_property_get_bool(_p));</div>
-<div class="line"><a name="l05123"></a><span class="lineno"> 5123</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05124"></a><span class="lineno"> 5124</span> </div>
-<div class="line"><a name="l05125"></a><span class="lineno"> 5125</span>         <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l05126"></a><span class="lineno"> 5126</span>             cpl_property_set_int(p, cpl_property_get_int(_p));</div>
-<div class="line"><a name="l05127"></a><span class="lineno"> 5127</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05128"></a><span class="lineno"> 5128</span> </div>
-<div class="line"><a name="l05129"></a><span class="lineno"> 5129</span>         <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l05130"></a><span class="lineno"> 5130</span>             cpl_property_set_long(p, cpl_property_get_long(_p));</div>
-<div class="line"><a name="l05131"></a><span class="lineno"> 5131</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05132"></a><span class="lineno"> 5132</span> </div>
-<div class="line"><a name="l05133"></a><span class="lineno"> 5133</span>         <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l05134"></a><span class="lineno"> 5134</span>             cpl_property_set_float(p, cpl_property_get_float(_p));</div>
-<div class="line"><a name="l05135"></a><span class="lineno"> 5135</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05136"></a><span class="lineno"> 5136</span> </div>
-<div class="line"><a name="l05137"></a><span class="lineno"> 5137</span>         <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l05138"></a><span class="lineno"> 5138</span>             cpl_property_set_double(p, cpl_property_get_double(_p));</div>
-<div class="line"><a name="l05139"></a><span class="lineno"> 5139</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05140"></a><span class="lineno"> 5140</span> </div>
-<div class="line"><a name="l05141"></a><span class="lineno"> 5141</span>         <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l05142"></a><span class="lineno"> 5142</span>             cpl_property_set_string(p, cpl_property_get_string(_p));</div>
-<div class="line"><a name="l05143"></a><span class="lineno"> 5143</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05144"></a><span class="lineno"> 5144</span> </div>
-<div class="line"><a name="l05145"></a><span class="lineno"> 5145</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l05146"></a><span class="lineno"> 5146</span>             <span class="comment">/* This point should never be reached */</span></div>
-<div class="line"><a name="l05147"></a><span class="lineno"> 5147</span>             cx_error(<span class="stringliteral">"%s: Unsupported type encountered!"</span>, CX_CODE_POS);</div>
-<div class="line"><a name="l05148"></a><span class="lineno"> 5148</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05149"></a><span class="lineno"> 5149</span> </div>
-<div class="line"><a name="l05150"></a><span class="lineno"> 5150</span>         }</div>
-<div class="line"><a name="l05151"></a><span class="lineno"> 5151</span> </div>
-<div class="line"><a name="l05152"></a><span class="lineno"> 5152</span>         cpl_property_set_comment(p, cpl_property_get_comment(_p));</div>
-<div class="line"><a name="l05153"></a><span class="lineno"> 5153</span> </div>
-<div class="line"><a name="l05154"></a><span class="lineno"> 5154</span>     }</div>
-<div class="line"><a name="l05155"></a><span class="lineno"> 5155</span> </div>
-<div class="line"><a name="l05156"></a><span class="lineno"> 5156</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l05157"></a><span class="lineno"> 5157</span> </div>
-<div class="line"><a name="l05158"></a><span class="lineno"> 5158</span> }</div>
-<div class="line"><a name="l05159"></a><span class="lineno"> 5159</span> </div>
-<div class="line"><a name="l05160"></a><span class="lineno"> 5160</span> </div>
-<div class="line"><a name="l05220"></a><span class="lineno"> 5220</span> cpl_error_code</div>
-<div class="line"><a name="l05221"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882"> 5221</a></span> <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>,</div>
-<div class="line"><a name="l05222"></a><span class="lineno"> 5222</span>                                       <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *other,</div>
-<div class="line"><a name="l05223"></a><span class="lineno"> 5223</span>                                       <span class="keyword">const</span> <span class="keywordtype">char</span> *regexp,</div>
-<div class="line"><a name="l05224"></a><span class="lineno"> 5224</span>                                       <span class="keywordtype">int</span> invert)</div>
-<div class="line"><a name="l05225"></a><span class="lineno"> 5225</span> {</div>
-<div class="line"><a name="l05226"></a><span class="lineno"> 5226</span> </div>
-<div class="line"><a name="l05227"></a><span class="lineno"> 5227</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_copy_property_regexp"</span>;</div>
-<div class="line"><a name="l05228"></a><span class="lineno"> 5228</span> </div>
-<div class="line"><a name="l05229"></a><span class="lineno"> 5229</span>     cxint status;</div>
-<div class="line"><a name="l05230"></a><span class="lineno"> 5230</span> </div>
-<div class="line"><a name="l05231"></a><span class="lineno"> 5231</span>     cxsize i;</div>
-<div class="line"><a name="l05232"></a><span class="lineno"> 5232</span>     cxsize count = 0;</div>
-<div class="line"><a name="l05233"></a><span class="lineno"> 5233</span> </div>
-<div class="line"><a name="l05234"></a><span class="lineno"> 5234</span>     uves_deque_const_iterator first, last;</div>
-<div class="line"><a name="l05235"></a><span class="lineno"> 5235</span> </div>
-<div class="line"><a name="l05236"></a><span class="lineno"> 5236</span>     <span class="keyword">typedef</span> <span class="keyword">struct </span>_property_pair_ {</div>
-<div class="line"><a name="l05237"></a><span class="lineno"> 5237</span>         cpl_property *s;</div>
-<div class="line"><a name="l05238"></a><span class="lineno"> 5238</span>         cpl_property *t;</div>
-<div class="line"><a name="l05239"></a><span class="lineno"> 5239</span>     } property_pair;</div>
-<div class="line"><a name="l05240"></a><span class="lineno"> 5240</span> </div>
-<div class="line"><a name="l05241"></a><span class="lineno"> 5241</span>     property_pair *pairs = NULL;</div>
-<div class="line"><a name="l05242"></a><span class="lineno"> 5242</span> </div>
-<div class="line"><a name="l05243"></a><span class="lineno"> 5243</span>     <a class="code" href="struct__uves__regexp__.html">uves_regexp</a> filter;</div>
-<div class="line"><a name="l05244"></a><span class="lineno"> 5244</span> </div>
-<div class="line"><a name="l05245"></a><span class="lineno"> 5245</span> </div>
-<div class="line"><a name="l05246"></a><span class="lineno"> 5246</span>     <span class="keywordflow">if</span> (<span class="keyword">self</span> == NULL || other == NULL || regexp == NULL) {</div>
-<div class="line"><a name="l05247"></a><span class="lineno"> 5247</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l05248"></a><span class="lineno"> 5248</span>         <span class="keywordflow">return</span> CPL_ERROR_NULL_INPUT;</div>
-<div class="line"><a name="l05249"></a><span class="lineno"> 5249</span>     }</div>
-<div class="line"><a name="l05250"></a><span class="lineno"> 5250</span> </div>
-<div class="line"><a name="l05251"></a><span class="lineno"> 5251</span>     status = regcomp(&filter.re, regexp, REG_EXTENDED | REG_NOSUB);</div>
-<div class="line"><a name="l05252"></a><span class="lineno"> 5252</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l05253"></a><span class="lineno"> 5253</span>         cpl_error_set(_id, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l05254"></a><span class="lineno"> 5254</span>         <span class="keywordflow">return</span> CPL_ERROR_ILLEGAL_INPUT;</div>
-<div class="line"><a name="l05255"></a><span class="lineno"> 5255</span>     }</div>
-<div class="line"><a name="l05256"></a><span class="lineno"> 5256</span> </div>
-<div class="line"><a name="l05257"></a><span class="lineno"> 5257</span>     filter.invert = invert == 0 ? FALSE : TRUE;</div>
-<div class="line"><a name="l05258"></a><span class="lineno"> 5258</span> </div>
-<div class="line"><a name="l05259"></a><span class="lineno"> 5259</span> </div>
-<div class="line"><a name="l05260"></a><span class="lineno"> 5260</span>     count = uves_deque_size(other->properties);</div>
-<div class="line"><a name="l05261"></a><span class="lineno"> 5261</span> </div>
-<div class="line"><a name="l05262"></a><span class="lineno"> 5262</span>     <span class="keywordflow">if</span> (count == 0) {</div>
-<div class="line"><a name="l05263"></a><span class="lineno"> 5263</span>         regfree(&filter.re);</div>
-<div class="line"><a name="l05264"></a><span class="lineno"> 5264</span>         <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l05265"></a><span class="lineno"> 5265</span>     }</div>
-<div class="line"><a name="l05266"></a><span class="lineno"> 5266</span> </div>
-<div class="line"><a name="l05267"></a><span class="lineno"> 5267</span>     pairs = cx_malloc(count * <span class="keyword">sizeof</span>(property_pair));</div>
-<div class="line"><a name="l05268"></a><span class="lineno"> 5268</span>     cx_assert(pairs != NULL);</div>
-<div class="line"><a name="l05269"></a><span class="lineno"> 5269</span> </div>
-<div class="line"><a name="l05270"></a><span class="lineno"> 5270</span>     count = 0;</div>
-<div class="line"><a name="l05271"></a><span class="lineno"> 5271</span> </div>
-<div class="line"><a name="l05272"></a><span class="lineno"> 5272</span> </div>
-<div class="line"><a name="l05273"></a><span class="lineno"> 5273</span>     first = uves_deque_begin(other->properties);</div>
-<div class="line"><a name="l05274"></a><span class="lineno"> 5274</span>     last  = uves_deque_end(other->properties);</div>
-<div class="line"><a name="l05275"></a><span class="lineno"> 5275</span> </div>
-<div class="line"><a name="l05276"></a><span class="lineno"> 5276</span>     <span class="keywordflow">while</span> (first != last) {</div>
-<div class="line"><a name="l05277"></a><span class="lineno"> 5277</span> </div>
-<div class="line"><a name="l05278"></a><span class="lineno"> 5278</span>         cpl_property *p = uves_deque_get(other->properties, first);</div>
-<div class="line"><a name="l05279"></a><span class="lineno"> 5279</span> </div>
-<div class="line"><a name="l05280"></a><span class="lineno"> 5280</span> </div>
-<div class="line"><a name="l05281"></a><span class="lineno"> 5281</span>         <span class="keywordflow">if</span> (_uves_propertylist_compare_regexp(p, &filter) == TRUE) {</div>
-<div class="line"><a name="l05282"></a><span class="lineno"> 5282</span> </div>
-<div class="line"><a name="l05283"></a><span class="lineno"> 5283</span>             <span class="keyword">const</span> cxchar *name = cpl_property_get_name(p);</div>
-<div class="line"><a name="l05284"></a><span class="lineno"> 5284</span> </div>
-<div class="line"><a name="l05285"></a><span class="lineno"> 5285</span>             uves_deque_const_iterator pos = _uves_propertylist_find(<span class="keyword">self</span>, name);</div>
-<div class="line"><a name="l05286"></a><span class="lineno"> 5286</span> </div>
-<div class="line"><a name="l05287"></a><span class="lineno"> 5287</span>             cpl_property *_p = NULL;</div>
-<div class="line"><a name="l05288"></a><span class="lineno"> 5288</span> </div>
-<div class="line"><a name="l05289"></a><span class="lineno"> 5289</span> </div>
-<div class="line"><a name="l05290"></a><span class="lineno"> 5290</span>             <span class="keywordflow">if</span> (pos != uves_deque_end(self->properties)) {</div>
-<div class="line"><a name="l05291"></a><span class="lineno"> 5291</span> </div>
-<div class="line"><a name="l05292"></a><span class="lineno"> 5292</span>                 _p = uves_deque_get(self->properties, pos);</div>
-<div class="line"><a name="l05293"></a><span class="lineno"> 5293</span> </div>
-<div class="line"><a name="l05294"></a><span class="lineno"> 5294</span>                 <span class="keywordflow">if</span> (cpl_property_get_type(p) != cpl_property_get_type(_p)) {</div>
-<div class="line"><a name="l05295"></a><span class="lineno"> 5295</span> </div>
-<div class="line"><a name="l05296"></a><span class="lineno"> 5296</span>                     regfree(&filter.re);</div>
-<div class="line"><a name="l05297"></a><span class="lineno"> 5297</span> </div>
-<div class="line"><a name="l05298"></a><span class="lineno"> 5298</span>                     cx_free(pairs);</div>
-<div class="line"><a name="l05299"></a><span class="lineno"> 5299</span>                     pairs = NULL;</div>
-<div class="line"><a name="l05300"></a><span class="lineno"> 5300</span> </div>
-<div class="line"><a name="l05301"></a><span class="lineno"> 5301</span>                     cpl_error_set(_id, CPL_ERROR_TYPE_MISMATCH);</div>
-<div class="line"><a name="l05302"></a><span class="lineno"> 5302</span> </div>
-<div class="line"><a name="l05303"></a><span class="lineno"> 5303</span>                     <span class="keywordflow">return</span> CPL_ERROR_TYPE_MISMATCH;</div>
-<div class="line"><a name="l05304"></a><span class="lineno"> 5304</span> </div>
-<div class="line"><a name="l05305"></a><span class="lineno"> 5305</span>                 }</div>
-<div class="line"><a name="l05306"></a><span class="lineno"> 5306</span> </div>
-<div class="line"><a name="l05307"></a><span class="lineno"> 5307</span>             }</div>
-<div class="line"><a name="l05308"></a><span class="lineno"> 5308</span> </div>
-<div class="line"><a name="l05309"></a><span class="lineno"> 5309</span>             pairs[count].s = p;</div>
-<div class="line"><a name="l05310"></a><span class="lineno"> 5310</span>             pairs[count].t = _p;</div>
-<div class="line"><a name="l05311"></a><span class="lineno"> 5311</span>             ++count;</div>
-<div class="line"><a name="l05312"></a><span class="lineno"> 5312</span> </div>
-<div class="line"><a name="l05313"></a><span class="lineno"> 5313</span>         }</div>
-<div class="line"><a name="l05314"></a><span class="lineno"> 5314</span> </div>
-<div class="line"><a name="l05315"></a><span class="lineno"> 5315</span>         first = uves_deque_next(other->properties, first);</div>
-<div class="line"><a name="l05316"></a><span class="lineno"> 5316</span> </div>
-<div class="line"><a name="l05317"></a><span class="lineno"> 5317</span>     }</div>
-<div class="line"><a name="l05318"></a><span class="lineno"> 5318</span> </div>
-<div class="line"><a name="l05319"></a><span class="lineno"> 5319</span>     regfree(&filter.re);</div>
-<div class="line"><a name="l05320"></a><span class="lineno"> 5320</span> </div>
-<div class="line"><a name="l05321"></a><span class="lineno"> 5321</span> </div>
-<div class="line"><a name="l05322"></a><span class="lineno"> 5322</span>     <span class="keywordflow">for</span> (i = 0; i < count; i++) {</div>
-<div class="line"><a name="l05323"></a><span class="lineno"> 5323</span> </div>
-<div class="line"><a name="l05324"></a><span class="lineno"> 5324</span>         <span class="keywordflow">if</span> (pairs[i].t == NULL) {</div>
-<div class="line"><a name="l05325"></a><span class="lineno"> 5325</span> </div>
-<div class="line"><a name="l05326"></a><span class="lineno"> 5326</span>             cpl_property *p = cpl_property_duplicate(pairs[i].s);</div>
-<div class="line"><a name="l05327"></a><span class="lineno"> 5327</span>             uves_deque_push_back(self->properties, p);</div>
-<div class="line"><a name="l05328"></a><span class="lineno"> 5328</span> </div>
-<div class="line"><a name="l05329"></a><span class="lineno"> 5329</span>         }</div>
-<div class="line"><a name="l05330"></a><span class="lineno"> 5330</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l05331"></a><span class="lineno"> 5331</span> </div>
-<div class="line"><a name="l05332"></a><span class="lineno"> 5332</span>             <span class="keywordflow">switch</span> (cpl_property_get_type(pairs[i].s)) {</div>
-<div class="line"><a name="l05333"></a><span class="lineno"> 5333</span> </div>
-<div class="line"><a name="l05334"></a><span class="lineno"> 5334</span>             <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l05335"></a><span class="lineno"> 5335</span>                 cpl_property_set_char(pairs[i].t,</div>
-<div class="line"><a name="l05336"></a><span class="lineno"> 5336</span>                                       cpl_property_get_char(pairs[i].s));</div>
-<div class="line"><a name="l05337"></a><span class="lineno"> 5337</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05338"></a><span class="lineno"> 5338</span> </div>
-<div class="line"><a name="l05339"></a><span class="lineno"> 5339</span>             <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l05340"></a><span class="lineno"> 5340</span>                 cpl_property_set_bool(pairs[i].t,</div>
-<div class="line"><a name="l05341"></a><span class="lineno"> 5341</span>                                       cpl_property_get_bool(pairs[i].s));</div>
-<div class="line"><a name="l05342"></a><span class="lineno"> 5342</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05343"></a><span class="lineno"> 5343</span> </div>
-<div class="line"><a name="l05344"></a><span class="lineno"> 5344</span>             <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l05345"></a><span class="lineno"> 5345</span>                 cpl_property_set_int(pairs[i].t,</div>
-<div class="line"><a name="l05346"></a><span class="lineno"> 5346</span>                                      cpl_property_get_int(pairs[i].s));</div>
-<div class="line"><a name="l05347"></a><span class="lineno"> 5347</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05348"></a><span class="lineno"> 5348</span> </div>
-<div class="line"><a name="l05349"></a><span class="lineno"> 5349</span>             <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l05350"></a><span class="lineno"> 5350</span>                 cpl_property_set_long(pairs[i].t,</div>
-<div class="line"><a name="l05351"></a><span class="lineno"> 5351</span>                                       cpl_property_get_long(pairs[i].s));</div>
-<div class="line"><a name="l05352"></a><span class="lineno"> 5352</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05353"></a><span class="lineno"> 5353</span> </div>
-<div class="line"><a name="l05354"></a><span class="lineno"> 5354</span>             <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l05355"></a><span class="lineno"> 5355</span>                 cpl_property_set_float(pairs[i].t,</div>
-<div class="line"><a name="l05356"></a><span class="lineno"> 5356</span>                                        cpl_property_get_float(pairs[i].s));</div>
-<div class="line"><a name="l05357"></a><span class="lineno"> 5357</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05358"></a><span class="lineno"> 5358</span> </div>
-<div class="line"><a name="l05359"></a><span class="lineno"> 5359</span>             <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l05360"></a><span class="lineno"> 5360</span>                 cpl_property_set_double(pairs[i].t,</div>
-<div class="line"><a name="l05361"></a><span class="lineno"> 5361</span>                                         cpl_property_get_double(pairs[i].s));</div>
-<div class="line"><a name="l05362"></a><span class="lineno"> 5362</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05363"></a><span class="lineno"> 5363</span> </div>
-<div class="line"><a name="l05364"></a><span class="lineno"> 5364</span>             <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l05365"></a><span class="lineno"> 5365</span>                 cpl_property_set_string(pairs[i].t,</div>
-<div class="line"><a name="l05366"></a><span class="lineno"> 5366</span>                                         cpl_property_get_string(pairs[i].s));</div>
-<div class="line"><a name="l05367"></a><span class="lineno"> 5367</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05368"></a><span class="lineno"> 5368</span> </div>
-<div class="line"><a name="l05369"></a><span class="lineno"> 5369</span>             <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l05370"></a><span class="lineno"> 5370</span>                 <span class="comment">/* This point should never be reached */</span></div>
-<div class="line"><a name="l05371"></a><span class="lineno"> 5371</span>                 cx_free(pairs);</div>
-<div class="line"><a name="l05372"></a><span class="lineno"> 5372</span>                 cx_error(<span class="stringliteral">"%s: Unsupported type encountered!"</span>, CX_CODE_POS);</div>
-<div class="line"><a name="l05373"></a><span class="lineno"> 5373</span>                 <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05374"></a><span class="lineno"> 5374</span> </div>
-<div class="line"><a name="l05375"></a><span class="lineno"> 5375</span>             }</div>
-<div class="line"><a name="l05376"></a><span class="lineno"> 5376</span> </div>
-<div class="line"><a name="l05377"></a><span class="lineno"> 5377</span>         }</div>
-<div class="line"><a name="l05378"></a><span class="lineno"> 5378</span> </div>
-<div class="line"><a name="l05379"></a><span class="lineno"> 5379</span>     }</div>
-<div class="line"><a name="l05380"></a><span class="lineno"> 5380</span> </div>
-<div class="line"><a name="l05381"></a><span class="lineno"> 5381</span>     cx_free(pairs);</div>
-<div class="line"><a name="l05382"></a><span class="lineno"> 5382</span> </div>
-<div class="line"><a name="l05383"></a><span class="lineno"> 5383</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l05384"></a><span class="lineno"> 5384</span> </div>
-<div class="line"><a name="l05385"></a><span class="lineno"> 5385</span> }</div>
-<div class="line"><a name="l05386"></a><span class="lineno"> 5386</span> </div>
-<div class="line"><a name="l05387"></a><span class="lineno"> 5387</span> </div>
-<div class="line"><a name="l05448"></a><span class="lineno"> 5448</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *</div>
-<div class="line"><a name="l05449"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb"> 5449</a></span> <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> position)</div>
-<div class="line"><a name="l05450"></a><span class="lineno"> 5450</span> {</div>
-<div class="line"><a name="l05451"></a><span class="lineno"> 5451</span> </div>
-<div class="line"><a name="l05452"></a><span class="lineno"> 5452</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_load"</span>;</div>
-<div class="line"><a name="l05453"></a><span class="lineno"> 5453</span> </div>
-<div class="line"><a name="l05454"></a><span class="lineno"> 5454</span>     <span class="keyword">register</span> cxint n, status;</div>
-<div class="line"><a name="l05455"></a><span class="lineno"> 5455</span> </div>
-<div class="line"><a name="l05456"></a><span class="lineno"> 5456</span>     qfits_header *header;</div>
-<div class="line"><a name="l05457"></a><span class="lineno"> 5457</span> </div>
-<div class="line"><a name="l05458"></a><span class="lineno"> 5458</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>;</div>
-<div class="line"><a name="l05459"></a><span class="lineno"> 5459</span> </div>
-<div class="line"><a name="l05460"></a><span class="lineno"> 5460</span> </div>
-<div class="line"><a name="l05461"></a><span class="lineno"> 5461</span>     <span class="keywordflow">if</span> (name == NULL) {</div>
-<div class="line"><a name="l05462"></a><span class="lineno"> 5462</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l05463"></a><span class="lineno"> 5463</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05464"></a><span class="lineno"> 5464</span>     }</div>
-<div class="line"><a name="l05465"></a><span class="lineno"> 5465</span> </div>
-<div class="line"><a name="l05466"></a><span class="lineno"> 5466</span>     <span class="keywordflow">if</span> (position < 0) {</div>
-<div class="line"><a name="l05467"></a><span class="lineno"> 5467</span>         cpl_error_set(_id, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l05468"></a><span class="lineno"> 5468</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05469"></a><span class="lineno"> 5469</span>     }</div>
-<div class="line"><a name="l05470"></a><span class="lineno"> 5470</span> </div>
-<div class="line"><a name="l05471"></a><span class="lineno"> 5471</span>     status = qfits_is_fits((cxchar *)name);</div>
-<div class="line"><a name="l05472"></a><span class="lineno"> 5472</span>     <span class="keywordflow">if</span> (status == -1) {</div>
-<div class="line"><a name="l05473"></a><span class="lineno"> 5473</span>         cpl_error_set(_id, CPL_ERROR_FILE_IO);</div>
-<div class="line"><a name="l05474"></a><span class="lineno"> 5474</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05475"></a><span class="lineno"> 5475</span>     }</div>
-<div class="line"><a name="l05476"></a><span class="lineno"> 5476</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l05477"></a><span class="lineno"> 5477</span>         <span class="keywordflow">if</span> (status == 0) {</div>
-<div class="line"><a name="l05478"></a><span class="lineno"> 5478</span>             cpl_error_set(_id, CPL_ERROR_BAD_FILE_FORMAT);</div>
-<div class="line"><a name="l05479"></a><span class="lineno"> 5479</span>             <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05480"></a><span class="lineno"> 5480</span>         }</div>
-<div class="line"><a name="l05481"></a><span class="lineno"> 5481</span>     }</div>
-<div class="line"><a name="l05482"></a><span class="lineno"> 5482</span> </div>
-<div class="line"><a name="l05483"></a><span class="lineno"> 5483</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l05484"></a><span class="lineno"> 5484</span> <span class="comment">     * qfits_query_n_ext() only counts true extensions, i.e. it does not</span></div>
-<div class="line"><a name="l05485"></a><span class="lineno"> 5485</span> <span class="comment">     * count the primary FITS unit. But since we passed the qfits_is_fits()</span></div>
-<div class="line"><a name="l05486"></a><span class="lineno"> 5486</span> <span class="comment">     * check we can safely assume that there is one.</span></div>
-<div class="line"><a name="l05487"></a><span class="lineno"> 5487</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l05488"></a><span class="lineno"> 5488</span> </div>
-<div class="line"><a name="l05489"></a><span class="lineno"> 5489</span>     n = qfits_query_n_ext((cxchar *)name);</div>
-<div class="line"><a name="l05490"></a><span class="lineno"> 5490</span> </div>
-<div class="line"><a name="l05491"></a><span class="lineno"> 5491</span>     <span class="keywordflow">if</span> (n < position) {</div>
-<div class="line"><a name="l05492"></a><span class="lineno"> 5492</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l05493"></a><span class="lineno"> 5493</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05494"></a><span class="lineno"> 5494</span>     }</div>
-<div class="line"><a name="l05495"></a><span class="lineno"> 5495</span> </div>
-<div class="line"><a name="l05496"></a><span class="lineno"> 5496</span> </div>
-<div class="line"><a name="l05497"></a><span class="lineno"> 5497</span>     header = qfits_header_readext((cxchar *)name, position);</div>
-<div class="line"><a name="l05498"></a><span class="lineno"> 5498</span> </div>
-<div class="line"><a name="l05499"></a><span class="lineno"> 5499</span>     <span class="keywordflow">if</span> (header == NULL) {</div>
-<div class="line"><a name="l05500"></a><span class="lineno"> 5500</span>         cpl_error_set(_id, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l05501"></a><span class="lineno"> 5501</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05502"></a><span class="lineno"> 5502</span>     }</div>
-<div class="line"><a name="l05503"></a><span class="lineno"> 5503</span> </div>
-<div class="line"><a name="l05504"></a><span class="lineno"> 5504</span>     <span class="keyword">self</span> = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l05505"></a><span class="lineno"> 5505</span>     cx_assert(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l05506"></a><span class="lineno"> 5506</span> </div>
-<div class="line"><a name="l05507"></a><span class="lineno"> 5507</span>     status = _uves_propertylist_from_fits(<span class="keyword">self</span>, header, NULL, NULL);</div>
-<div class="line"><a name="l05508"></a><span class="lineno"> 5508</span> </div>
-<div class="line"><a name="l05509"></a><span class="lineno"> 5509</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l05510"></a><span class="lineno"> 5510</span>         <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l05511"></a><span class="lineno"> 5511</span>         qfits_header_destroy(header);</div>
-<div class="line"><a name="l05512"></a><span class="lineno"> 5512</span> </div>
-<div class="line"><a name="l05513"></a><span class="lineno"> 5513</span>         cpl_error_set(_id, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l05514"></a><span class="lineno"> 5514</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05515"></a><span class="lineno"> 5515</span>     }</div>
-<div class="line"><a name="l05516"></a><span class="lineno"> 5516</span> </div>
-<div class="line"><a name="l05517"></a><span class="lineno"> 5517</span>     qfits_header_destroy(header);</div>
-<div class="line"><a name="l05518"></a><span class="lineno"> 5518</span> </div>
-<div class="line"><a name="l05519"></a><span class="lineno"> 5519</span>     <span class="keywordflow">return</span> <span class="keyword">self</span>;</div>
-<div class="line"><a name="l05520"></a><span class="lineno"> 5520</span> </div>
-<div class="line"><a name="l05521"></a><span class="lineno"> 5521</span> }</div>
-<div class="line"><a name="l05522"></a><span class="lineno"> 5522</span> </div>
-<div class="line"><a name="l05523"></a><span class="lineno"> 5523</span> </div>
-<div class="line"><a name="l05595"></a><span class="lineno"> 5595</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *</div>
-<div class="line"><a name="l05596"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga795683c7baa3ddfc26959339e90f8e6d"> 5596</a></span> <a class="code" href="group__uves__propertylist.html#ga795683c7baa3ddfc26959339e90f8e6d" title="Create a filtered property list from a file.">uves_propertylist_load_regexp</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> position,</div>
-<div class="line"><a name="l05597"></a><span class="lineno"> 5597</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *regexp, <span class="keywordtype">int</span> invert)</div>
-<div class="line"><a name="l05598"></a><span class="lineno"> 5598</span> {</div>
-<div class="line"><a name="l05599"></a><span class="lineno"> 5599</span> </div>
-<div class="line"><a name="l05600"></a><span class="lineno"> 5600</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_load_regexp"</span>;</div>
-<div class="line"><a name="l05601"></a><span class="lineno"> 5601</span> </div>
-<div class="line"><a name="l05602"></a><span class="lineno"> 5602</span>     <span class="keyword">register</span> cxint n, status;</div>
-<div class="line"><a name="l05603"></a><span class="lineno"> 5603</span> </div>
-<div class="line"><a name="l05604"></a><span class="lineno"> 5604</span>     qfits_header *header;</div>
-<div class="line"><a name="l05605"></a><span class="lineno"> 5605</span> </div>
-<div class="line"><a name="l05606"></a><span class="lineno"> 5606</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>;</div>
-<div class="line"><a name="l05607"></a><span class="lineno"> 5607</span> </div>
-<div class="line"><a name="l05608"></a><span class="lineno"> 5608</span>     <a class="code" href="struct__uves__regexp__.html">uves_regexp</a> filter;</div>
-<div class="line"><a name="l05609"></a><span class="lineno"> 5609</span> </div>
-<div class="line"><a name="l05610"></a><span class="lineno"> 5610</span> </div>
-<div class="line"><a name="l05611"></a><span class="lineno"> 5611</span>     <span class="keywordflow">if</span> (name == NULL || regexp == NULL) {</div>
-<div class="line"><a name="l05612"></a><span class="lineno"> 5612</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l05613"></a><span class="lineno"> 5613</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05614"></a><span class="lineno"> 5614</span>     }</div>
-<div class="line"><a name="l05615"></a><span class="lineno"> 5615</span> </div>
-<div class="line"><a name="l05616"></a><span class="lineno"> 5616</span>     <span class="keywordflow">if</span> (position < 0) {</div>
-<div class="line"><a name="l05617"></a><span class="lineno"> 5617</span>         cpl_error_set(_id, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l05618"></a><span class="lineno"> 5618</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05619"></a><span class="lineno"> 5619</span>     }</div>
-<div class="line"><a name="l05620"></a><span class="lineno"> 5620</span> </div>
-<div class="line"><a name="l05621"></a><span class="lineno"> 5621</span>     status = regcomp(&filter.re, regexp, REG_EXTENDED | REG_NOSUB);</div>
-<div class="line"><a name="l05622"></a><span class="lineno"> 5622</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l05623"></a><span class="lineno"> 5623</span>         cpl_error_set(_id, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l05624"></a><span class="lineno"> 5624</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05625"></a><span class="lineno"> 5625</span>     }</div>
-<div class="line"><a name="l05626"></a><span class="lineno"> 5626</span> </div>
-<div class="line"><a name="l05627"></a><span class="lineno"> 5627</span>     filter.invert = invert == 0 ? FALSE : TRUE;</div>
-<div class="line"><a name="l05628"></a><span class="lineno"> 5628</span> </div>
-<div class="line"><a name="l05629"></a><span class="lineno"> 5629</span> </div>
-<div class="line"><a name="l05630"></a><span class="lineno"> 5630</span>     status = qfits_is_fits((cxchar *)name);</div>
-<div class="line"><a name="l05631"></a><span class="lineno"> 5631</span>     <span class="keywordflow">if</span> (status == -1) {</div>
-<div class="line"><a name="l05632"></a><span class="lineno"> 5632</span>         cpl_error_set(_id, CPL_ERROR_FILE_IO);</div>
-<div class="line"><a name="l05633"></a><span class="lineno"> 5633</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05634"></a><span class="lineno"> 5634</span>     }</div>
-<div class="line"><a name="l05635"></a><span class="lineno"> 5635</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l05636"></a><span class="lineno"> 5636</span>         <span class="keywordflow">if</span> (status == 0) {</div>
-<div class="line"><a name="l05637"></a><span class="lineno"> 5637</span>             cpl_error_set(_id, CPL_ERROR_BAD_FILE_FORMAT);</div>
-<div class="line"><a name="l05638"></a><span class="lineno"> 5638</span>             <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05639"></a><span class="lineno"> 5639</span>         }</div>
-<div class="line"><a name="l05640"></a><span class="lineno"> 5640</span>     }</div>
-<div class="line"><a name="l05641"></a><span class="lineno"> 5641</span> </div>
-<div class="line"><a name="l05642"></a><span class="lineno"> 5642</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l05643"></a><span class="lineno"> 5643</span> <span class="comment">     * qfits_query_n_ext() only counts true extensions, i.e. it does not</span></div>
-<div class="line"><a name="l05644"></a><span class="lineno"> 5644</span> <span class="comment">     * count the primary FITS unit. But since we passed the qfits_is_fits()</span></div>
-<div class="line"><a name="l05645"></a><span class="lineno"> 5645</span> <span class="comment">     * check we can safely assume that there is one.</span></div>
-<div class="line"><a name="l05646"></a><span class="lineno"> 5646</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l05647"></a><span class="lineno"> 5647</span> </div>
-<div class="line"><a name="l05648"></a><span class="lineno"> 5648</span>     n = qfits_query_n_ext((cxchar *)name);</div>
-<div class="line"><a name="l05649"></a><span class="lineno"> 5649</span> </div>
-<div class="line"><a name="l05650"></a><span class="lineno"> 5650</span>     <span class="keywordflow">if</span> (n < position) {</div>
-<div class="line"><a name="l05651"></a><span class="lineno"> 5651</span>         cpl_error_set(_id, CPL_ERROR_DATA_NOT_FOUND);</div>
-<div class="line"><a name="l05652"></a><span class="lineno"> 5652</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05653"></a><span class="lineno"> 5653</span>     }</div>
-<div class="line"><a name="l05654"></a><span class="lineno"> 5654</span> </div>
-<div class="line"><a name="l05655"></a><span class="lineno"> 5655</span> </div>
-<div class="line"><a name="l05656"></a><span class="lineno"> 5656</span>     header = qfits_header_readext((cxchar *)name, position);</div>
-<div class="line"><a name="l05657"></a><span class="lineno"> 5657</span> </div>
-<div class="line"><a name="l05658"></a><span class="lineno"> 5658</span>     <span class="keywordflow">if</span> (header == NULL) {</div>
-<div class="line"><a name="l05659"></a><span class="lineno"> 5659</span>         cpl_error_set(_id, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l05660"></a><span class="lineno"> 5660</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05661"></a><span class="lineno"> 5661</span>     }</div>
-<div class="line"><a name="l05662"></a><span class="lineno"> 5662</span> </div>
-<div class="line"><a name="l05663"></a><span class="lineno"> 5663</span>     <span class="keyword">self</span> = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l05664"></a><span class="lineno"> 5664</span>     cx_assert(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l05665"></a><span class="lineno"> 5665</span> </div>
-<div class="line"><a name="l05666"></a><span class="lineno"> 5666</span>     status = _uves_propertylist_from_fits(<span class="keyword">self</span>, header,</div>
-<div class="line"><a name="l05667"></a><span class="lineno"> 5667</span>                                          _uves_propertylist_filter_regexp,</div>
-<div class="line"><a name="l05668"></a><span class="lineno"> 5668</span>                                          &filter);</div>
-<div class="line"><a name="l05669"></a><span class="lineno"> 5669</span> </div>
-<div class="line"><a name="l05670"></a><span class="lineno"> 5670</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l05671"></a><span class="lineno"> 5671</span>         <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l05672"></a><span class="lineno"> 5672</span>         qfits_header_destroy(header);</div>
-<div class="line"><a name="l05673"></a><span class="lineno"> 5673</span> </div>
-<div class="line"><a name="l05674"></a><span class="lineno"> 5674</span>         regfree(&filter.re);</div>
-<div class="line"><a name="l05675"></a><span class="lineno"> 5675</span> </div>
-<div class="line"><a name="l05676"></a><span class="lineno"> 5676</span>         cpl_error_set(_id, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l05677"></a><span class="lineno"> 5677</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05678"></a><span class="lineno"> 5678</span>     }</div>
-<div class="line"><a name="l05679"></a><span class="lineno"> 5679</span> </div>
-<div class="line"><a name="l05680"></a><span class="lineno"> 5680</span>     qfits_header_destroy(header);</div>
-<div class="line"><a name="l05681"></a><span class="lineno"> 5681</span>     regfree(&filter.re);</div>
-<div class="line"><a name="l05682"></a><span class="lineno"> 5682</span> </div>
-<div class="line"><a name="l05683"></a><span class="lineno"> 5683</span>     <span class="keywordflow">return</span> <span class="keyword">self</span>;</div>
-<div class="line"><a name="l05684"></a><span class="lineno"> 5684</span> </div>
-<div class="line"><a name="l05685"></a><span class="lineno"> 5685</span> }</div>
-<div class="line"><a name="l05686"></a><span class="lineno"> 5686</span> </div>
-<div class="line"><a name="l05687"></a><span class="lineno"> 5687</span> </div>
-<div class="line"><a name="l05705"></a><span class="lineno"> 5705</span> qfits_header *</div>
-<div class="line"><a name="l05706"></a><span class="lineno"> 5706</span> uves_propertylist_to_fits(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>)</div>
-<div class="line"><a name="l05707"></a><span class="lineno"> 5707</span> {</div>
-<div class="line"><a name="l05708"></a><span class="lineno"> 5708</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_to_fits"</span>;</div>
-<div class="line"><a name="l05709"></a><span class="lineno"> 5709</span> </div>
-<div class="line"><a name="l05710"></a><span class="lineno"> 5710</span>     qfits_header *header;</div>
-<div class="line"><a name="l05711"></a><span class="lineno"> 5711</span> </div>
-<div class="line"><a name="l05712"></a><span class="lineno"> 5712</span> </div>
-<div class="line"><a name="l05713"></a><span class="lineno"> 5713</span>     cx_assert(<span class="keyword">self</span> != NULL);</div>
-<div class="line"><a name="l05714"></a><span class="lineno"> 5714</span> </div>
-<div class="line"><a name="l05715"></a><span class="lineno"> 5715</span>     header = qfits_header_new();</div>
-<div class="line"><a name="l05716"></a><span class="lineno"> 5716</span> </div>
-<div class="line"><a name="l05717"></a><span class="lineno"> 5717</span>     <span class="keywordflow">if</span> (!uves_deque_empty(self->properties)) {</div>
-<div class="line"><a name="l05718"></a><span class="lineno"> 5718</span>         uves_deque_iterator i = uves_deque_begin(self->properties);</div>
-<div class="line"><a name="l05719"></a><span class="lineno"> 5719</span>         uves_deque_iterator last = uves_deque_end(self->properties);</div>
-<div class="line"><a name="l05720"></a><span class="lineno"> 5720</span> </div>
-<div class="line"><a name="l05721"></a><span class="lineno"> 5721</span>         <span class="keywordflow">while</span> (i != last) {</div>
-<div class="line"><a name="l05722"></a><span class="lineno"> 5722</span>             cxchar tmp[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l05723"></a><span class="lineno"> 5723</span>             cxchar key[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l05724"></a><span class="lineno"> 5724</span>             cxchar value[FITS_LINESZ + 1];</div>
-<div class="line"><a name="l05725"></a><span class="lineno"> 5725</span>             cxfloat fval;</div>
-<div class="line"><a name="l05726"></a><span class="lineno"> 5726</span>             cxdouble dval;</div>
-<div class="line"><a name="l05727"></a><span class="lineno"> 5727</span>             cpl_property *property;</div>
-<div class="line"><a name="l05728"></a><span class="lineno"> 5728</span> </div>
-<div class="line"><a name="l05729"></a><span class="lineno"> 5729</span>             <span class="keyword">property</span> = uves_deque_get(self->properties, i);</div>
-<div class="line"><a name="l05730"></a><span class="lineno"> 5730</span> </div>
-<div class="line"><a name="l05731"></a><span class="lineno"> 5731</span>             <span class="comment">/*</span></div>
-<div class="line"><a name="l05732"></a><span class="lineno"> 5732</span> <span class="comment">             * Convert each property into a FITS keyword an error is</span></div>
-<div class="line"><a name="l05733"></a><span class="lineno"> 5733</span> <span class="comment">             * triggered for unsupported types. Also, since the FITS</span></div>
-<div class="line"><a name="l05734"></a><span class="lineno"> 5734</span> <span class="comment">             * format does not support array keywords, apart from strings,</span></div>
-<div class="line"><a name="l05735"></a><span class="lineno"> 5735</span> <span class="comment">             * i.e. character arrays, an error is triggered in this case too.</span></div>
-<div class="line"><a name="l05736"></a><span class="lineno"> 5736</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l05737"></a><span class="lineno"> 5737</span> <span class="comment">             * A possible solution for the array case would be to create</span></div>
-<div class="line"><a name="l05738"></a><span class="lineno"> 5738</span> <span class="comment">             * a sequence of indexed keywords. But this must be checked.</span></div>
-<div class="line"><a name="l05739"></a><span class="lineno"> 5739</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l05740"></a><span class="lineno"> 5740</span> </div>
-<div class="line"><a name="l05741"></a><span class="lineno"> 5741</span>             strncpy(tmp, cpl_property_get_name(property), FITS_LINESZ);</div>
-<div class="line"><a name="l05742"></a><span class="lineno"> 5742</span>             tmp[FITS_LINESZ] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l05743"></a><span class="lineno"> 5743</span> </div>
-<div class="line"><a name="l05744"></a><span class="lineno"> 5744</span>             <span class="keywordflow">if</span> (!cx_strupper(tmp)) {</div>
-<div class="line"><a name="l05745"></a><span class="lineno"> 5745</span>                 cpl_error_set(_id, CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l05746"></a><span class="lineno"> 5746</span> </div>
-<div class="line"><a name="l05747"></a><span class="lineno"> 5747</span>                 qfits_header_destroy(header);</div>
-<div class="line"><a name="l05748"></a><span class="lineno"> 5748</span> </div>
-<div class="line"><a name="l05749"></a><span class="lineno"> 5749</span>                 <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05750"></a><span class="lineno"> 5750</span>             }</div>
-<div class="line"><a name="l05751"></a><span class="lineno"> 5751</span> </div>
-<div class="line"><a name="l05752"></a><span class="lineno"> 5752</span>             key[0] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l05753"></a><span class="lineno"> 5753</span> </div>
-<div class="line"><a name="l05754"></a><span class="lineno"> 5754</span>             <span class="keywordflow">if</span> (strlen(tmp) > FITS_STDKEY_MAX &&</div>
-<div class="line"><a name="l05755"></a><span class="lineno"> 5755</span>                 strncmp(tmp, <span class="stringliteral">"HIERARCH "</span>, 9)) {</div>
-<div class="line"><a name="l05756"></a><span class="lineno"> 5756</span>                 strncat(key, <span class="stringliteral">"HIERARCH "</span>, 9);</div>
-<div class="line"><a name="l05757"></a><span class="lineno"> 5757</span>             }</div>
-<div class="line"><a name="l05758"></a><span class="lineno"> 5758</span>             strncat(key, tmp, FITS_LINESZ - strlen(key));</div>
-<div class="line"><a name="l05759"></a><span class="lineno"> 5759</span> </div>
-<div class="line"><a name="l05760"></a><span class="lineno"> 5760</span>             <span class="keywordflow">switch</span> (cpl_property_get_type(property)) {</div>
-<div class="line"><a name="l05761"></a><span class="lineno"> 5761</span>                 <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l05762"></a><span class="lineno"> 5762</span>                     cx_snprintf(value, FITS_LINESZ, <span class="stringliteral">"'%c'"</span>,</div>
-<div class="line"><a name="l05763"></a><span class="lineno"> 5763</span>                                 cpl_property_get_char(property));</div>
-<div class="line"><a name="l05764"></a><span class="lineno"> 5764</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05765"></a><span class="lineno"> 5765</span> </div>
-<div class="line"><a name="l05766"></a><span class="lineno"> 5766</span>                 <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l05767"></a><span class="lineno"> 5767</span>                 {</div>
-<div class="line"><a name="l05768"></a><span class="lineno"> 5768</span>                     cxint pvalue = cpl_property_get_bool(property);</div>
-<div class="line"><a name="l05769"></a><span class="lineno"> 5769</span> </div>
-<div class="line"><a name="l05770"></a><span class="lineno"> 5770</span>                     cx_snprintf(value, FITS_LINESZ, <span class="stringliteral">"%c"</span>,</div>
-<div class="line"><a name="l05771"></a><span class="lineno"> 5771</span>                                 pvalue == 1 ? <span class="charliteral">'T'</span> : <span class="charliteral">'F'</span>);</div>
-<div class="line"><a name="l05772"></a><span class="lineno"> 5772</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05773"></a><span class="lineno"> 5773</span>                 }</div>
-<div class="line"><a name="l05774"></a><span class="lineno"> 5774</span> </div>
-<div class="line"><a name="l05775"></a><span class="lineno"> 5775</span>                 <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l05776"></a><span class="lineno"> 5776</span>                     cx_snprintf(value, FITS_LINESZ, <span class="stringliteral">"%d"</span>,</div>
-<div class="line"><a name="l05777"></a><span class="lineno"> 5777</span>                                 cpl_property_get_int(property));</div>
-<div class="line"><a name="l05778"></a><span class="lineno"> 5778</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05779"></a><span class="lineno"> 5779</span> </div>
-<div class="line"><a name="l05780"></a><span class="lineno"> 5780</span>                 <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l05781"></a><span class="lineno"> 5781</span>                     cx_snprintf(value, FITS_LINESZ, <span class="stringliteral">"%ld"</span>,</div>
-<div class="line"><a name="l05782"></a><span class="lineno"> 5782</span>                                 cpl_property_get_long(property));</div>
-<div class="line"><a name="l05783"></a><span class="lineno"> 5783</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05784"></a><span class="lineno"> 5784</span> </div>
-<div class="line"><a name="l05785"></a><span class="lineno"> 5785</span>                 <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l05786"></a><span class="lineno"> 5786</span>                     fval = cpl_property_get_float(property);</div>
-<div class="line"><a name="l05787"></a><span class="lineno"> 5787</span>                     cx_snprintf(value, FITS_LINESZ, <span class="stringliteral">"%.7G"</span>, fval);</div>
-<div class="line"><a name="l05788"></a><span class="lineno"> 5788</span> </div>
-<div class="line"><a name="l05789"></a><span class="lineno"> 5789</span>                     <span class="keywordflow">if</span> (!strchr(value, <span class="charliteral">'.'</span>)) {</div>
-<div class="line"><a name="l05790"></a><span class="lineno"> 5790</span>                         <span class="keywordflow">if</span> (strchr(value, <span class="charliteral">'E'</span>))</div>
-<div class="line"><a name="l05791"></a><span class="lineno"> 5791</span>                             cx_snprintf(value, FITS_LINESZ, <span class="stringliteral">"%.1E"</span>, fval);</div>
-<div class="line"><a name="l05792"></a><span class="lineno"> 5792</span>                         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05793"></a><span class="lineno"> 5793</span>                             strcat(value, <span class="stringliteral">"."</span>);</div>
-<div class="line"><a name="l05794"></a><span class="lineno"> 5794</span>                     }</div>
-<div class="line"><a name="l05795"></a><span class="lineno"> 5795</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05796"></a><span class="lineno"> 5796</span> </div>
-<div class="line"><a name="l05797"></a><span class="lineno"> 5797</span>                 <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l05798"></a><span class="lineno"> 5798</span>                     dval = cpl_property_get_double(property);</div>
-<div class="line"><a name="l05799"></a><span class="lineno"> 5799</span>                     cx_snprintf(value, FITS_LINESZ, <span class="stringliteral">"%.15G"</span>, dval);</div>
-<div class="line"><a name="l05800"></a><span class="lineno"> 5800</span> </div>
-<div class="line"><a name="l05801"></a><span class="lineno"> 5801</span>                     <span class="keywordflow">if</span> (!strchr(value, <span class="charliteral">'.'</span>)) {</div>
-<div class="line"><a name="l05802"></a><span class="lineno"> 5802</span>                         <span class="keywordflow">if</span> (strchr(value, <span class="charliteral">'E'</span>))</div>
-<div class="line"><a name="l05803"></a><span class="lineno"> 5803</span>                             cx_snprintf(value, FITS_LINESZ, <span class="stringliteral">"%.1E"</span>, dval);</div>
-<div class="line"><a name="l05804"></a><span class="lineno"> 5804</span>                         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l05805"></a><span class="lineno"> 5805</span>                             strcat(value, <span class="stringliteral">"."</span>);</div>
-<div class="line"><a name="l05806"></a><span class="lineno"> 5806</span>                     }</div>
-<div class="line"><a name="l05807"></a><span class="lineno"> 5807</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05808"></a><span class="lineno"> 5808</span> </div>
-<div class="line"><a name="l05809"></a><span class="lineno"> 5809</span>                 <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l05810"></a><span class="lineno"> 5810</span>                     <span class="keywordflow">if</span> (!strcmp(key, <span class="stringliteral">"COMMENT"</span>) || !strcmp(key, <span class="stringliteral">"HISTORY"</span>)) {</div>
-<div class="line"><a name="l05811"></a><span class="lineno"> 5811</span>                         cx_snprintf(value, FITS_LINESZ, <span class="stringliteral">"%s"</span>,</div>
-<div class="line"><a name="l05812"></a><span class="lineno"> 5812</span>                                     cpl_property_get_string(property));</div>
-<div class="line"><a name="l05813"></a><span class="lineno"> 5813</span>                     }</div>
-<div class="line"><a name="l05814"></a><span class="lineno"> 5814</span>                     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l05815"></a><span class="lineno"> 5815</span> </div>
-<div class="line"><a name="l05816"></a><span class="lineno"> 5816</span>                         cxint n = 0;</div>
-<div class="line"><a name="l05817"></a><span class="lineno"> 5817</span> </div>
-<div class="line"><a name="l05818"></a><span class="lineno"> 5818</span>                         n = cx_snprintf(value, FITS_SVALUE_MAX + 1, <span class="stringliteral">"'%s'"</span>,</div>
-<div class="line"><a name="l05819"></a><span class="lineno"> 5819</span>                                         cpl_property_get_string(property));</div>
-<div class="line"><a name="l05820"></a><span class="lineno"> 5820</span> </div>
-<div class="line"><a name="l05821"></a><span class="lineno"> 5821</span>                         <span class="keywordflow">if</span> (n > FITS_SVALUE_MAX) {</div>
-<div class="line"><a name="l05822"></a><span class="lineno"> 5822</span>                             value[FITS_SVALUE_MAX - 1] = <span class="charliteral">'\''</span>;</div>
-<div class="line"><a name="l05823"></a><span class="lineno"> 5823</span>                             value[FITS_SVALUE_MAX] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l05824"></a><span class="lineno"> 5824</span>                         }</div>
-<div class="line"><a name="l05825"></a><span class="lineno"> 5825</span> </div>
-<div class="line"><a name="l05826"></a><span class="lineno"> 5826</span>                     }</div>
-<div class="line"><a name="l05827"></a><span class="lineno"> 5827</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05828"></a><span class="lineno"> 5828</span> </div>
-<div class="line"><a name="l05829"></a><span class="lineno"> 5829</span>                 <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l05830"></a><span class="lineno"> 5830</span>                     cpl_error_set(_id, CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l05831"></a><span class="lineno"> 5831</span> </div>
-<div class="line"><a name="l05832"></a><span class="lineno"> 5832</span>                     qfits_header_destroy(header);</div>
-<div class="line"><a name="l05833"></a><span class="lineno"> 5833</span> </div>
-<div class="line"><a name="l05834"></a><span class="lineno"> 5834</span>                     <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05835"></a><span class="lineno"> 5835</span>                     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05836"></a><span class="lineno"> 5836</span>             }</div>
-<div class="line"><a name="l05837"></a><span class="lineno"> 5837</span> </div>
-<div class="line"><a name="l05838"></a><span class="lineno"> 5838</span>             qfits_header_append(header, key, value,</div>
-<div class="line"><a name="l05839"></a><span class="lineno"> 5839</span>                                 (cxchar *)cpl_property_get_comment(property),</div>
-<div class="line"><a name="l05840"></a><span class="lineno"> 5840</span>                                 NULL);</div>
-<div class="line"><a name="l05841"></a><span class="lineno"> 5841</span> </div>
-<div class="line"><a name="l05842"></a><span class="lineno"> 5842</span>             i = uves_deque_next(self->properties, i);</div>
-<div class="line"><a name="l05843"></a><span class="lineno"> 5843</span>         }</div>
-<div class="line"><a name="l05844"></a><span class="lineno"> 5844</span>     }</div>
-<div class="line"><a name="l05845"></a><span class="lineno"> 5845</span> </div>
-<div class="line"><a name="l05846"></a><span class="lineno"> 5846</span> </div>
-<div class="line"><a name="l05847"></a><span class="lineno"> 5847</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l05848"></a><span class="lineno"> 5848</span> <span class="comment">     * Add the END keyword as last entry.</span></div>
-<div class="line"><a name="l05849"></a><span class="lineno"> 5849</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l05850"></a><span class="lineno"> 5850</span> </div>
-<div class="line"><a name="l05851"></a><span class="lineno"> 5851</span>     <span class="comment">/* FIXME: Maybe better to check if end is already present */</span></div>
-<div class="line"><a name="l05852"></a><span class="lineno"> 5852</span> </div>
-<div class="line"><a name="l05853"></a><span class="lineno"> 5853</span>     qfits_header_append(header, <span class="stringliteral">"END"</span>, NULL, NULL, NULL);</div>
-<div class="line"><a name="l05854"></a><span class="lineno"> 5854</span> </div>
-<div class="line"><a name="l05855"></a><span class="lineno"> 5855</span> </div>
-<div class="line"><a name="l05856"></a><span class="lineno"> 5856</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l05857"></a><span class="lineno"> 5857</span> <span class="comment">     * Sort the header according to ESO's DICB standard</span></div>
-<div class="line"><a name="l05858"></a><span class="lineno"> 5858</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l05859"></a><span class="lineno"> 5859</span> </div>
-<div class="line"><a name="l05860"></a><span class="lineno"> 5860</span>     <span class="keywordflow">if</span> (qfits_header_sort(&header) != 0) {</div>
-<div class="line"><a name="l05861"></a><span class="lineno"> 5861</span>         cpl_error_set(_id, CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l05862"></a><span class="lineno"> 5862</span> </div>
-<div class="line"><a name="l05863"></a><span class="lineno"> 5863</span>         qfits_header_destroy(header);</div>
-<div class="line"><a name="l05864"></a><span class="lineno"> 5864</span> </div>
-<div class="line"><a name="l05865"></a><span class="lineno"> 5865</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05866"></a><span class="lineno"> 5866</span>     }</div>
-<div class="line"><a name="l05867"></a><span class="lineno"> 5867</span> </div>
-<div class="line"><a name="l05868"></a><span class="lineno"> 5868</span>     <span class="keywordflow">return</span> header;</div>
-<div class="line"><a name="l05869"></a><span class="lineno"> 5869</span> </div>
-<div class="line"><a name="l05870"></a><span class="lineno"> 5870</span> }</div>
-<div class="line"><a name="l05871"></a><span class="lineno"> 5871</span> </div>
-<div class="line"><a name="l05895"></a><span class="lineno"> 5895</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *</div>
-<div class="line"><a name="l05896"></a><span class="lineno"> 5896</span> uves_propertylist_from_fits(<span class="keyword">const</span> qfits_header *header)</div>
-<div class="line"><a name="l05897"></a><span class="lineno"> 5897</span> {</div>
-<div class="line"><a name="l05898"></a><span class="lineno"> 5898</span> </div>
-<div class="line"><a name="l05899"></a><span class="lineno"> 5899</span>     <span class="keyword">const</span> cxchar *<span class="keyword">const</span> _id = <span class="stringliteral">"uves_propertylist_from_fits"</span>;</div>
-<div class="line"><a name="l05900"></a><span class="lineno"> 5900</span> </div>
-<div class="line"><a name="l05901"></a><span class="lineno"> 5901</span>     <span class="keyword">register</span> cxint status;</div>
-<div class="line"><a name="l05902"></a><span class="lineno"> 5902</span> </div>
-<div class="line"><a name="l05903"></a><span class="lineno"> 5903</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>;</div>
-<div class="line"><a name="l05904"></a><span class="lineno"> 5904</span> </div>
-<div class="line"><a name="l05905"></a><span class="lineno"> 5905</span> </div>
-<div class="line"><a name="l05906"></a><span class="lineno"> 5906</span>     <span class="keywordflow">if</span> (!header) {</div>
-<div class="line"><a name="l05907"></a><span class="lineno"> 5907</span>         cpl_error_set(_id, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l05908"></a><span class="lineno"> 5908</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05909"></a><span class="lineno"> 5909</span>     }</div>
-<div class="line"><a name="l05910"></a><span class="lineno"> 5910</span> </div>
-<div class="line"><a name="l05911"></a><span class="lineno"> 5911</span>     <span class="keyword">self</span> = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l05912"></a><span class="lineno"> 5912</span>     cx_assert(<span class="keyword">self</span> != NULL);</div>
-<div class="line"><a name="l05913"></a><span class="lineno"> 5913</span> </div>
-<div class="line"><a name="l05914"></a><span class="lineno"> 5914</span>     status = _uves_propertylist_from_fits(<span class="keyword">self</span>, header, NULL, NULL);</div>
-<div class="line"><a name="l05915"></a><span class="lineno"> 5915</span> </div>
-<div class="line"><a name="l05916"></a><span class="lineno"> 5916</span>     <span class="keywordflow">if</span> (status) {</div>
-<div class="line"><a name="l05917"></a><span class="lineno"> 5917</span>         <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(<span class="keyword">self</span>);</div>
-<div class="line"><a name="l05918"></a><span class="lineno"> 5918</span> </div>
-<div class="line"><a name="l05919"></a><span class="lineno"> 5919</span> <span class="comment">//        cpl_error_set_where(_id);</span></div>
-<div class="line"><a name="l05920"></a><span class="lineno"> 5920</span> </div>
-<div class="line"><a name="l05921"></a><span class="lineno"> 5921</span>         <span class="keywordflow">switch</span> (status) {</div>
-<div class="line"><a name="l05922"></a><span class="lineno"> 5922</span>         <span class="keywordflow">case</span> -2:</div>
-<div class="line"><a name="l05923"></a><span class="lineno"> 5923</span>         <span class="keywordflow">case</span> -1:</div>
-<div class="line"><a name="l05924"></a><span class="lineno"> 5924</span>             cpl_error_set(_id, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l05925"></a><span class="lineno"> 5925</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05926"></a><span class="lineno"> 5926</span> </div>
-<div class="line"><a name="l05927"></a><span class="lineno"> 5927</span>         <span class="keywordflow">case</span> 1:</div>
-<div class="line"><a name="l05928"></a><span class="lineno"> 5928</span>             cpl_error_set(_id, CPL_ERROR_INVALID_TYPE);</div>
-<div class="line"><a name="l05929"></a><span class="lineno"> 5929</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05930"></a><span class="lineno"> 5930</span> </div>
-<div class="line"><a name="l05931"></a><span class="lineno"> 5931</span>         <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l05932"></a><span class="lineno"> 5932</span>             <span class="comment">/* This should never be reached */</span></div>
-<div class="line"><a name="l05933"></a><span class="lineno"> 5933</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l05934"></a><span class="lineno"> 5934</span>         }</div>
-<div class="line"><a name="l05935"></a><span class="lineno"> 5935</span> </div>
-<div class="line"><a name="l05936"></a><span class="lineno"> 5936</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05937"></a><span class="lineno"> 5937</span>     }</div>
-<div class="line"><a name="l05938"></a><span class="lineno"> 5938</span> </div>
-<div class="line"><a name="l05939"></a><span class="lineno"> 5939</span>     <span class="keywordflow">return</span> <span class="keyword">self</span>;</div>
-<div class="line"><a name="l05940"></a><span class="lineno"> 5940</span> </div>
-<div class="line"><a name="l05941"></a><span class="lineno"> 5941</span> }</div>
-<div class="line"><a name="l05942"></a><span class="lineno"> 5942</span> </div>
-<div class="line"><a name="l05943"></a><span class="lineno"> 5943</span> <span class="preprocessor">#endif </span><span class="comment">/* USE_CPL */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l05944"></a><span class="lineno"> 5944</span> <span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__propertylist_8h_source.html b/html/uves__propertylist_8h_source.html
deleted file mode 100644
index 1118236..0000000
--- a/html/uves__propertylist_8h_source.html
+++ /dev/null
@@ -1,634 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_propertylist.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_propertylist.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: uves_propertylist.h,v 1.11 2010-09-24 09:32:07 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO Common Pipeline Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.11 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef UVES_PROPERTYLIST_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_PROPERTYLIST_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/* Define appropriately to switch on/off cpl_propertylists */</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#undef USE_CPL</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor"></span><span class="comment">//#define USE_CPL</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#ifdef USE_CPL</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor"></span><span class="comment">/* Workaround code ahead. No, it is not nice. */</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <fitsio.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <longnam.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#define uves_propertylist cpl_propertylist</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#define uves_vector_save(a, b, c, d, e) \</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor"> cpl_vector_save(a, b, c, d, e)</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_image_save(a, b, c, d, e) \</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"> cpl_image_save(a, b, c, d, e)</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_imagelist_save(a, b, c, d, e) \</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor"> cpl_imagelist_save(a, b, c, d, e)</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_table_save(a, b, c, d, e) \</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"> cpl_table_save(a, b, c, d, e)</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_dfs_setup_product_header(a, b, c, d, e, f, g) \</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor"> cpl_dfs_setup_product_header(a, b, c, d, e, f, g)</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="comment">//#define uves_table_sort(a, b)</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">// cpl_table_sort(a, b)</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#define uves_propertylist_new() \</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"> cpl_propertylist_new()</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_duplicate(a) \</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"> cpl_propertylist_duplicate(a)</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_delete(a) \</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor"> cpl_propertylist_delete(a)</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_get_size(a) \</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor"> cpl_propertylist_get_size(a)</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_is_empty(a) \</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"> cpl_propertylist_is_empty(a)</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_get_type(a, b) \</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor"> cpl_propertylist_get_type(a, b)</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_contains(a, b) \</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor"> cpl_propertylist_contains(a, b)</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor"></span><span class="preprocessor">#define my_uves_propertylist_contains(a, b) \</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor"> cpl_propertylist_contains(a, b)</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#define uves_propertylist_set_comment(a, b, c) \</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor"> cpl_propertylist_set_comment(a, b, c)</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_set_char(a, b, c) \</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="preprocessor"> cpl_propertylist_set_char(a, b, c)</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_set_bool(a, b, c) \</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor"> cpl_propertylist_set_bool(a, b, c)</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_set_int(a, b, c) \</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor"> cpl_propertylist_set_int(a, b, c)</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_set_long(a, b, c) \</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="preprocessor"> cpl_propertylist_set_long(a, b, c)</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_set_float(a, b, c) \</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor"> cpl_propertylist_set_float(a, b, c)</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_set_double(a, b, c) \</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor"> cpl_propertylist_set_double(a, b, c)</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_set_string(a, b, c) \</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor"> cpl_propertylist_set_string(a, b, c)</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_get_const(a, b) \</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor"> cpl_propertylist_get(a, b)</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_get(a, b) \</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="preprocessor"> cpl_propertylist_get(a, b)</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_get_comment(a, b) \</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor"> cpl_propertylist_get_comment(a, b)</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_get_char(a, b) \</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor"> cpl_propertylist_get_char(a, b)</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_get_bool(a, b) \</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor"> cpl_propertylist_get_bool(a, b)</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_get_int(a, b) \</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor"> cpl_propertylist_get_int(a, b)</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_get_long(a, b) \</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor"> cpl_propertylist_get_long(a, b)</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_get_float(a, b) \</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor"> cpl_propertylist_get_float(a, b)</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_get_double(a, b) \</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="preprocessor"> cpl_propertylist_get_double(a, b)</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_get_string(a, b) \</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor"> cpl_propertylist_get_string(a, b)</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_char(a, b, c, d) \</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor"> cpl_propertylist_insert_char(a, b, c, d)</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_bool(a, b, c, d) \</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="preprocessor"> cpl_propertylist_insert_bool(a, b, c, d)</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_int(a, b, c, d) \</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="preprocessor"> cpl_propertylist_insert_int(a, b, c, d)</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_long(a, b, c, d) \</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="preprocessor"> cpl_propertylist_insert_long(a, b, c, d)</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_float(a, b, c, d) \</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="preprocessor"> cpl_propertylist_insert_float(a, b, c, d)</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_double(a, b, c, d) \</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="preprocessor"> cpl_propertylist_insert_double(a, b, c, d)</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_string(a, b, c, d) \</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="preprocessor"> cpl_propertylist_insert_string(a, b, c, d)</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_after_char(a, b, c, d) \</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="preprocessor"> cpl_propertylist_insert_after_char(a, b, c, d)</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_after_bool(a, b, c, d) \</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="preprocessor"> cpl_propertylist_insert_after_bool(a, b, c, d)</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_after_int(a, b, c, d) \</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="preprocessor"> cpl_propertylist_insert_after_int(a, b, c, d)</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_after_long(a, b, c, d) \</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="preprocessor"> cpl_propertylist_insert_after_long(a, b, c, d)</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_after_float(a, b, c, d) \</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="preprocessor"> cpl_propertylist_insert_after_float(a, b, c, d)</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_after_double(a, b, c, d) \</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="preprocessor"> cpl_propertylist_insert_after_double(a, b, c, d)</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_insert_after_string(a, b, c, d) \</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="preprocessor"> cpl_propertylist_insert_after_string(a, b, c, d)</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_prepend_char(a, b, c) \</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="preprocessor"> cpl_propertylist_prepend_char(a, b, c)</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_prepend_bool(a, b, c) \</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="preprocessor"> cpl_propertylist_prepend_bool(a, b, c)</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_prepend_int(a, b, c) \</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="preprocessor"> cpl_propertylist_prepend_int(a, b, c)</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_prepend_long(a, b, c) \</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="preprocessor"> cpl_propertylist_prepend_long(a, b, c)</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_prepend_float(a, b, c) \</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="preprocessor"> cpl_propertylist_prepend_float(a, b, c)</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_prepend_double(a, b, c) \</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="preprocessor"> cpl_propertylist_prepend_double(a, b, c)</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_prepend_string(a, b, c) \</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="preprocessor"> cpl_propertylist_prepend_string(a, b, c)</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_append_char(a, b, c) \</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="preprocessor"> cpl_propertylist_append_char(a, b, c)</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_append_bool(a, b, c) \</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="preprocessor"> cpl_propertylist_append_bool(a, b, c)</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_append_int(a, b, c) \</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="preprocessor"> cpl_propertylist_append_int(a, b, c)</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_append_long(a, b, c) \</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="preprocessor"> cpl_propertylist_append_long(a, b, c)</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_append_float(a, b, c) \</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="preprocessor"> cpl_propertylist_append_float(a, b, c)</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_append_double(a, b, c) \</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="preprocessor"> cpl_propertylist_append_double(a, b, c)</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_append_string(a, b, c) \</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="preprocessor"> cpl_propertylist_append_string(a, b, c)</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_append(a, b) \</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="preprocessor"> cpl_propertylist_append(a, b)</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_erase(a, b) \</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="preprocessor"> cpl_propertylist_erase(a, b)</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_erase_regexp(a, b, c) \</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="preprocessor"> cpl_propertylist_erase_regexp(a, b, c)</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_empty(a) \</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="preprocessor"> cpl_propertylist_empty(a)</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_update_char(a, b, c) \</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="preprocessor"> cpl_propertylist_update_char(a, b, c)</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_update_bool(a, b, c) \</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor"> cpl_propertylist_update_bool(a, b, c)</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_update_int(a, b, c) \</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="preprocessor"> cpl_propertylist_update_int(a, b, c)</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_update_long(a, b, c) \</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="preprocessor"> cpl_propertylist_update_long(a, b, c)</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_update_float(a, b, c) \</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="preprocessor"> cpl_propertylist_update_float(a, b, c)</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_update_double(a, b, c) \</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="preprocessor"> cpl_propertylist_update_double(a, b, c)</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_update_string(a, b, c) \</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor"> cpl_propertylist_update_string(a, b, c)</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_copy_property(a, b, c) \</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor"> cpl_propertylist_copy_property(a, b, c)</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_copy_property_regexp(a, b, c, d) \</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="preprocessor"> cpl_propertylist_copy_property_regexp(a, b, c, d) </span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_load(a, b) \</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="preprocessor"> cpl_propertylist_load(a, b)  </span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_load_regexp(a, b, c, d) \</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="preprocessor"> cpl_propertylist_load_regexp(a, b, c, d) </span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_to_fits(a) \</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="preprocessor"> cpl_propertylist_to_fits(a) </span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="preprocessor"></span><span class="preprocessor">#define uves_propertylist_from_fits(a) \</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="preprocessor">     cpl_propertylist_from_fits(a) </span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="preprocessor">#else </span><span class="comment">/* if USE_CPL */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="preprocessor">#include <qfits.h></span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00211"></a><span class="lineno"><a class="code" href="group__uves__propertylist.html#ga7fb059a16cd07b497aadeba6c40c6621">  211</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__uves__propertylist__.html">_uves_propertylist_</a> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>;</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment"> * Wrappers for functions which have cpl_propertylists in their interface </span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> cpl_error_code uves_vector_save(<span class="keyword">const</span> cpl_vector *v, <span class="keyword">const</span> <span class="keywordtype">char</span> *f, cpl_type_bpp bpp,</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>                                 <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header, <span class="keywordtype">unsigned</span> mode);</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> cpl_error_code uves_image_save(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> <span class="keywordtype">char</span> *f, cpl_type_bpp bpp,</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>                                <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header, <span class="keywordtype">unsigned</span> mode);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> cpl_error_code uves_imagelist_save(<span class="keyword">const</span> cpl_imagelist *imagelist, <span class="keyword">const</span> <span class="keywordtype">char</span> *f, cpl_type_bpp bpp,</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                    <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header, <span class="keywordtype">unsigned</span> mode);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> cpl_error_code uves_table_save(<span class="keyword">const</span> cpl_table *table, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header,</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                    <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *ext_header, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                    <span class="keywordtype">unsigned</span> mode);</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> cpl_error_code uves_dfs_setup_product_header(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                                              <span class="keyword">const</span> cpl_frame *<a class="code" href="structframe.html">frame</a>,</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                                              <span class="keyword">const</span> cpl_frameset *<span class="keyword">set</span>,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                                              <span class="keyword">const</span> cpl_parameterlist *par,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *c1,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *c2,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *c3);</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> cpl_error_code uves_table_sort(cpl_table *, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment"> * Create, copy and destroy operations.</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *other);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment"> * Non modifying operations</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="keywordtype">long</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <a class="code" href="group__uves__propertylist.html#ga08dbbfc559ffcddf72092ef0a5a6b2e6" title="Check whether a property list is empty.">uves_propertylist_is_empty</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> cpl_type</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <a class="code" href="group__uves__propertylist.html#ga2ee26ca559adc30a12a3e4dcf003b52d" title="Get the the type of a property list entry.">uves_propertylist_get_type</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <a class="code" href="group__uves__propertylist.html#gabe6f3653a12455c6fc90c46127a6e2ad" title="Check whether a property is present in a property list.">my_uves_propertylist_contains</a>(<span class="keyword">const</span> cpl_propertylist *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment"> * Assignment operations</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> cpl_error_code</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *comment);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> cpl_error_code</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <a class="code" href="group__uves__propertylist.html#ga3848313f04afa3606dbbc560746f5025" title="Set the value of the given character property list entry.">uves_propertylist_set_char</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>                           <span class="keywordtype">char</span> value);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> cpl_error_code</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <a class="code" href="group__uves__propertylist.html#ga1b920e8880391034ba16248071aaeda5" title="Set the value of the given boolean property list entry.">uves_propertylist_set_bool</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name ,</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>                           <span class="keywordtype">int</span> value);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> cpl_error_code</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <a class="code" href="group__uves__propertylist.html#gaef59cbe7747d8778af96087b23c8d682" title="Set the value of the given integer property list entry.">uves_propertylist_set_int</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                          <span class="keywordtype">int</span> value);</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> cpl_error_code</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <a class="code" href="group__uves__propertylist.html#ga188d6bd12ef15a5c4aff8713339a443a" title="Set the value of the given long property list entry.">uves_propertylist_set_long</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                           <span class="keywordtype">long</span> value);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> cpl_error_code</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <a class="code" href="group__uves__propertylist.html#gadf1317627ff51b6cbcff9aec380fd51a" title="Set the value of the given float property list entry.">uves_propertylist_set_float</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>                            <span class="keywordtype">float</span> value);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> cpl_error_code</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <a class="code" href="group__uves__propertylist.html#ga5e507cfe564326f9e5474c5773d6dd24" title="Set the value of the given double property list entry.">uves_propertylist_set_double</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>                             <span class="keywordtype">double</span> value);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> cpl_error_code</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <a class="code" href="group__uves__propertylist.html#gabbc55af6700c2d1d28f82131b56a3b7b" title="Set the value of the given string property list entry.">uves_propertylist_set_string</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                             <span class="keyword">const</span> <span class="keywordtype">char</span> *value);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment"> * Element access</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="keyword">const</span> cpl_property *</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keywordtype">long</span> position);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> cpl_property *</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> uves_propertylist_get(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keywordtype">long</span> position);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <a class="code" href="group__uves__propertylist.html#ga648f33387b636d2fea612aafbac02d18" title="Get the comment of the given property list entry.">uves_propertylist_get_comment</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="keywordtype">char</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <a class="code" href="group__uves__propertylist.html#gae9273c454206f9c51055aa1206183d37" title="Get the character value of the given property list entry.">uves_propertylist_get_char</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name [...]
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <a class="code" href="group__uves__propertylist.html#ga1915e9a72e6f0580cadb0736ea43d6dc" title="Get the boolean value of the given property list entry.">uves_propertylist_get_bool</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="keywordtype">long</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <a class="code" href="group__uves__propertylist.html#ga62f1a977f79c807936a3ff394ca6280e" title="Get the long value of the given property list entry.">uves_propertylist_get_long</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="keywordtype">float</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <a class="code" href="group__uves__propertylist.html#ga71f81602d966afe5b8efb2d4a962ba8b" title="Get the float value of the given property list entry.">uves_propertylist_get_float</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="comment"> * Inserting and removing elements</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> cpl_error_code</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <a class="code" href="group__uves__propertylist.html#gab67312fdd5ec2579db318e2b73f83793" title="Insert a character value into a property list at the given position.">uves_propertylist_insert_char</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *here,</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">char</span> value);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> cpl_error_code</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <a class="code" href="group__uves__propertylist.html#ga2dfd30cad698338aa24bed3807772bcb" title="Insert a boolean value into a property list at the given position.">uves_propertylist_insert_bool</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *here,</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> value);</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> cpl_error_code</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <a class="code" href="group__uves__propertylist.html#gaf4317df2406162e173e8c78274650da4" title="Insert a integer value into a property list at the given position.">uves_propertylist_insert_int</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *here,</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>                             <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> value);</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> </div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> cpl_error_code</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <a class="code" href="group__uves__propertylist.html#gad1eced1cf3c10a77997c02f20ced0922" title="Insert a long value into a property list at the given position.">uves_propertylist_insert_long</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *here,</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">long</span> value);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> cpl_error_code</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <a class="code" href="group__uves__propertylist.html#gafa987cf50ee6314a8eddf4e4c284cdd0" title="Insert a float value into a property list at the given position.">uves_propertylist_insert_float</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *here,</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>                               <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">float</span> value);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> cpl_error_code</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <a class="code" href="group__uves__propertylist.html#ga3541bde9170abf5eb52c6351ae03da31" title="Insert a double value into a property list at the given position.">uves_propertylist_insert_double</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *here,</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">double</span> value);</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> cpl_error_code</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <a class="code" href="group__uves__propertylist.html#gadae4a02d6cc8db83abeb9a8b670ade81" title="Insert a string value into a property list at the given position.">uves_propertylist_insert_string</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *here,</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> <span class="keywordtype">char</span> *value);</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> cpl_error_code</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <a class="code" href="group__uves__propertylist.html#ga6f4d1c1ff4e0c8fc7bb2edb551cba11e" title="Insert a character value into a property list after the given position.">uves_propertylist_insert_after_char</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *after,</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>                                    <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">char</span> value);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> cpl_error_code</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <a class="code" href="group__uves__propertylist.html#gafeb4307649f4b8edc101e73c21ec7392" title="Insert a boolean value into a property list after the given position.">uves_propertylist_insert_after_bool</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *after,</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                                    <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> value);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> cpl_error_code</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <a class="code" href="group__uves__propertylist.html#ga5c0d4cd29cecab431fd25b85472c3897" title="Insert a integer value into a property list after the given position.">uves_propertylist_insert_after_int</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *after,</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>                                   <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> value);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> cpl_error_code</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> <a class="code" href="group__uves__propertylist.html#ga05a5bb534ed7284bb107c3abb3edfa34" title="Insert a long value into a property list after the given position.">uves_propertylist_insert_after_long</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *after,</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                                    <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">long</span> value);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> cpl_error_code</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> <a class="code" href="group__uves__propertylist.html#gab2793113a4ef8e13c523c7cad9b03220" title="Insert a float value into a property list after the given position.">uves_propertylist_insert_after_float</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *after,</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>                                     <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">float</span> value);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> cpl_error_code</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <a class="code" href="group__uves__propertylist.html#ga448733ba77d4c3de7fd109ca7a07ffff" title="Insert a double value into a property list after the given position.">uves_propertylist_insert_after_double</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *after,</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">double</span> value);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> </div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> cpl_error_code</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> <a class="code" href="group__uves__propertylist.html#gaa8d7d969eef7675c6ff44ff98e38dfe0" title="Insert a string value into a property list after the given position.">uves_propertylist_insert_after_string</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *after,</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> <span class="keywordtype">char</span> *value);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> cpl_error_code</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <a class="code" href="group__uves__propertylist.html#gaa151bee689fe652596364001379e70fa" title="Prepend a character value to a property list.">uves_propertylist_prepend_char</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>                               <span class="keywordtype">char</span> value);</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> cpl_error_code</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> <a class="code" href="group__uves__propertylist.html#ga25074f6f6ba24b2ccbbb91b1aa703da5" title="Prepend a boolean value to a property list.">uves_propertylist_prepend_bool</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                               <span class="keywordtype">int</span> value);</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> cpl_error_code</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <a class="code" href="group__uves__propertylist.html#ga0133703baaa20b62bc57f9125ff105e0" title="Prepend a integer value to a property list.">uves_propertylist_prepend_int</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>                              <span class="keywordtype">int</span> value);</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> cpl_error_code</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <a class="code" href="group__uves__propertylist.html#gab8a9b7c5adf6a7c280a67dfb52693ad9" title="Prepend a long value to a property list.">uves_propertylist_prepend_long</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                               <span class="keywordtype">long</span> value);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> cpl_error_code</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> <a class="code" href="group__uves__propertylist.html#ga47d49f4e59167222901c218d8dd02105" title="Prepend a float value to a property list.">uves_propertylist_prepend_float</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                                <span class="keywordtype">float</span> value);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> cpl_error_code</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> <a class="code" href="group__uves__propertylist.html#gaa5dab235d01e40a8e3721eaa8bc5a38d" title="Prepend a double value to a property list.">uves_propertylist_prepend_double</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                                 <span class="keywordtype">double</span> value);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> cpl_error_code</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <a class="code" href="group__uves__propertylist.html#gadae05c6be2055c187a4a0ac66da762e0" title="Prepend a string value to a property list.">uves_propertylist_prepend_string</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                                 <span class="keyword">const</span> <span class="keywordtype">char</span> *value);</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> cpl_error_code</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <a class="code" href="group__uves__propertylist.html#ga64519bda6f595f3ef9de641b5f37c9e1" title="Append a character value to a property list.">uves_propertylist_append_c_char</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>                              <span class="keywordtype">char</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> cpl_error_code</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> <a class="code" href="group__uves__propertylist.html#ga40e676ee81b51d67da6ce7cba7c71b50" title="Append a boolean value to a property list.">uves_propertylist_append_c_bool</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>                              <span class="keywordtype">int</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> cpl_error_code</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <a class="code" href="group__uves__propertylist.html#gaad79e5cdd03fa3c809205ca63c8951b9" title="Append an integer value to a property list.">uves_propertylist_append_c_int</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>                             <span class="keywordtype">int</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> cpl_error_code</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <a class="code" href="group__uves__propertylist.html#gaa03d7d474068a0724398a8aef019c953" title="Append a long value to a property list.">uves_propertylist_append_c_long</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>                              <span class="keywordtype">long</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment);</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> </div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> cpl_error_code</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <a class="code" href="group__uves__propertylist.html#ga31238b65a9fdb7e3db3d1d0dcf6b6bbe" title="Append a float value to a property list.">uves_propertylist_append_c_float</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>                               <span class="keywordtype">float</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment);</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> </div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> cpl_error_code</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93" title="Append a double value to a property list.">uves_propertylist_append_c_double</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>                                <span class="keywordtype">double</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> </div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> cpl_error_code</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> <a class="code" href="group__uves__propertylist.html#ga39fee1a93e3baa0085017d4870144d7c" title="Append a string value to a property list.">uves_propertylist_append_c_string</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *value, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> cpl_error_code</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> uves_propertylist_append_char(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>                              <span class="keywordtype">char</span> value);</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> cpl_error_code</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> uves_propertylist_append_bool(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>                              <span class="keywordtype">int</span> value);</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> cpl_error_code</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> uves_propertylist_append_int(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                             <span class="keywordtype">int</span> value);</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> cpl_error_code</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> uves_propertylist_append_long(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                              <span class="keywordtype">long</span> value);</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> </div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> cpl_error_code</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> uves_propertylist_append_float(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>                               <span class="keywordtype">float</span> value);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> cpl_error_code</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> uves_propertylist_append_double(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>                                <span class="keywordtype">double</span> value);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> cpl_error_code</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> uves_propertylist_append_string(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *value);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> </div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> cpl_error_code</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>,</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>                         <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *other);</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> <a class="code" href="group__uves__propertylist.html#ga5e67017d9408f2b3bdf58b87ecbfbde8" title="Erase the given property from a property list.">uves_propertylist_erase</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *regexp,</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>                               <span class="keywordtype">int</span> invert);</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> <a class="code" href="group__uves__propertylist.html#ga2f16e593835cd524eb374474fd226755" title="Remove all properties from a property list.">uves_propertylist_empty</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="comment"> * Convenience functions</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> <a class="code" href="group__uves__propertylist.html#gafd6db82a3ab2a060af6cc2a661bbc032" title="Check whether a property is present in a property list.">uves_propertylist_has</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> cpl_error_code</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> <a class="code" href="group__uves__propertylist.html#ga810374cc06f2343166ed49fa1be9f7cb" title="Update a property list with a character value.">uves_propertylist_update_char</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>                              <span class="keywordtype">char</span> value);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> cpl_error_code</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <a class="code" href="group__uves__propertylist.html#ga843649fce9e26744ba7be376354d9c39" title="Update a property list with a boolean value.">uves_propertylist_update_bool</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>                              <span class="keywordtype">int</span> value);</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> cpl_error_code</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <a class="code" href="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23" title="Update a property list with a integer value.">uves_propertylist_update_int</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>                             <span class="keywordtype">int</span> value);</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> cpl_error_code</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <a class="code" href="group__uves__propertylist.html#ga8108bd5d80f387c4e65d80f38373de6e" title="Update a property list with a long value.">uves_propertylist_update_long</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>                              <span class="keywordtype">long</span> value);</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> cpl_error_code</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <a class="code" href="group__uves__propertylist.html#ga3dfc4fa6ae6687892c7cf6ef73f41ef3" title="Update a property list with a float value.">uves_propertylist_update_float</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>                               <span class="keywordtype">float</span> value);</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> cpl_error_code</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <a class="code" href="group__uves__propertylist.html#gaa8ed814c29f535237f05563c1bc319eb" title="Update a property list with a double value.">uves_propertylist_update_double</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                                <span class="keywordtype">double</span> value);</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> cpl_error_code</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <a class="code" href="group__uves__propertylist.html#ga874aa2d181f7fa454371991de1f6c90b" title="Update a property list with a string value.">uves_propertylist_update_string</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *value);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> cpl_error_code</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <a class="code" href="group__uves__propertylist.html#ga498f10da2c5cd157cd004ce3e207ff6c" title="Copy a property from another property list.">uves_propertylist_copy_property</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>,</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>                                <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *other,</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>                                <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> cpl_error_code</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> <a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>,</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>                                       <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *other,</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>                                       <span class="keyword">const</span> <span class="keywordtype">char</span> *regexp,</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>                                       <span class="keywordtype">int</span> invert);</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> </div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> <span class="comment"> * Loading, saving and conversion operations.</span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> </div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> <a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> position);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> <a class="code" href="group__uves__propertylist.html#ga795683c7baa3ddfc26959339e90f8e6d" title="Create a filtered property list from a file.">uves_propertylist_load_regexp</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> position,</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *regexp, <span class="keywordtype">int</span> invert);</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> </div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> </div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> <span class="comment">/* Internal functions */</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> qfits_header *</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> uves_propertylist_to_fits(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<span class="keyword">self</span>);</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> uves_propertylist_from_fits(<span class="keyword">const</span> qfits_header *header);</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> cpl_propertylist *</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> my_uves_propertylist_from_fits(<span class="keyword">const</span> cpl_propertylist *header);</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> </div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> <span class="comment">cpl_propertylist *</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> <span class="comment">my_cpl_propertylist_from_fitsfile(fitsfile *file);</span></div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> </div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="comment">cxint</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> <span class="comment">_my_uves_propertylist_from_fitsfile(cpl_propertylist *self, fitsfile *file,</span></div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> <span class="comment">                   cx_compare_func filter, cxptr data);</span></div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> <span class="comment"></span></div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> <span class="comment"></span></div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> <span class="comment">static cxint</span></div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> <span class="comment">_my_uves_propertylist_to_fitsfile(fitsfile *file, const cpl_propertylist *self,</span></div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> <span class="comment">                  cx_compare_func filter, cxptr data);</span></div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span> <span class="comment">cpl_propertylist *</span></div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> <span class="comment">my_uves_propertylist_from_fitsfile(fitsfile *file);</span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="preprocessor">#endif </span><span class="comment">/* USE_CPL */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_PROPERTYLIST_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__qclog-test_8c_source.html b/html/uves__qclog-test_8c_source.html
deleted file mode 100644
index f5ccc40..0000000
--- a/html/uves__qclog-test_8c_source.html
+++ /dev/null
@@ -1,180 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_qclog-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_qclog-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2009-06-05 05:49:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.4 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.3  2008/09/29 07:01:54  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.2  2007/05/23 06:43:23  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.1  2007/03/15 12:27:18  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Moved unit tests to ./uves/tests and ./flames/tests</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2007/02/27 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Move unit test infrastructure to IRPLIB</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2007/01/29 12:17:54  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Support setting verbosity from command line</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/11/28 08:26:35  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added QC log unit test</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno"><a class="code" href="group__uves__qclog__test.html#gaf1c56ce99831ec1d5b6a82019609f9bd">   82</a></span> <a class="code" href="group__uves__qclog__test.html#gaf1c56ce99831ec1d5b6a82019609f9bd" title="test QC name">test_qc_name</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> {</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_name = NULL;</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">"SOMETHING"</span>;</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     <span class="keywordtype">int</span> trace_number = 2;</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     <span class="keywordtype">bool</span> flames = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     <span class="comment">/* UVES */</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     qc_name = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(name, flames, trace_number);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     assure( strcmp(qc_name, <span class="stringliteral">"QC SOMETHING"</span>) == 0,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>         CPL_ERROR_ILLEGAL_OUTPUT, <span class="stringliteral">"%s != %s"</span>,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>         qc_name, <span class="stringliteral">"QC SOMETHING"</span>);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     <span class="comment">/* FLAMES */</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     flames = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     uves_free_string_const(&qc_name);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     qc_name = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(name, flames, trace_number);</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     assure( strcmp(qc_name, <span class="stringliteral">"QC FIB3 SOMETHING"</span>) == 0,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>         CPL_ERROR_ILLEGAL_OUTPUT, <span class="stringliteral">"%s != %s"</span>,</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>         qc_name, <span class="stringliteral">"QC FIB3 SOMETHING"</span>);</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>   cleanup:</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     uves_free_string_const(&qc_name);</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> }</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>    </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> </div>
-<div class="line"><a name="l00119"></a><span class="lineno"><a class="code" href="group__uves__qclog__test.html#ga840291bc02cba5474a4cb46a9b9566fe">  119</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> {</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     <span class="comment">/* Initialize CPL + UVES messaging */</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__qclog__test.html#gaf1c56ce99831ec1d5b6a82019609f9bd" title="test QC name">test_qc_name</a>(),</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>        <span class="stringliteral">"Test of QC names failed"</span>);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>   cleanup:</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> }</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> </div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__qclog_8c_source.html b/html/uves__qclog_8c_source.html
deleted file mode 100644
index 1adf7ac..0000000
--- a/html/uves__qclog_8c_source.html
+++ /dev/null
@@ -1,1105 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_qclog.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_qclog.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: uves_qclog.c,v 1.53 2012-11-19 09:12:54 jtaylor Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the UVES Pipeline</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: jtaylor $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2012-11-19 09:12:54 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.53 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_time.h></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#include <uves_globals.h></span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">                Defines</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#define FILE_NAME_SZ 1024  </span><span class="comment">/* fixme: should not use fixed size buffers */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">                Includes</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include "uves_qclog.h"</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_baryvel.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">                Forward declarations</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">                Function codes</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keyword">static</span> FILE * <a class="code" href="group__uves__qclog.html#ga18caeeaa4c1ba5d2cb2062fab6a56121" title="Open a new PAF file, output a default header.">uves_paf_print_header</a>(</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>    *   filename,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>    *   paf_id,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>    *   paf_desc,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>    *   login_name,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>         <span class="keyword">const</span> <span class="keywordtype">char</span>    *   datetime) ;</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> </div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#ga18caeeaa4c1ba5d2cb2062fab6a56121">  101</a></span> <span class="keyword">static</span> FILE * <a class="code" href="group__uves__qclog.html#ga18caeeaa4c1ba5d2cb2062fab6a56121" title="Open a new PAF file, output a default header.">uves_paf_print_header</a>(</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>    *   filename,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>    *      paf_id,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>    *    paf_desc,</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>    *   login_name,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>    *   datetime)</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> {</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     FILE * paf ;</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     <span class="keywordflow">if</span> ((paf=fopen(filename, <span class="stringliteral">"w"</span>))==NULL) {</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>         <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"cannot create PAF file [%s]"</span>, filename);</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>         <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     }</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     fprintf(paf, <span class="stringliteral">"PAF.HDR.START         ; # start of header\n"</span>);</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     fprintf(paf, <span class="stringliteral">"PAF.TYPE              \"pipeline product\" ;\n"</span>);</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     fprintf(paf, <span class="stringliteral">"PAF.ID                \"%s\"\n"</span>, paf_id);</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     fprintf(paf, <span class="stringliteral">"PAF.NAME              \"%s\"\n"</span>, filename);</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     fprintf(paf, <span class="stringliteral">"PAF.DESC              \"%s\"\n"</span>, paf_desc);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     fprintf(paf, <span class="stringliteral">"PAF.CRTE.NAME         \"%s\"\n"</span>, login_name) ;</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     fprintf(paf, <span class="stringliteral">"PAF.CRTE.DAYTIM       \"%s\"\n"</span>, datetime) ;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     fprintf(paf, <span class="stringliteral">"PAF.LCHG.NAME         \"%s\"\n"</span>, login_name) ;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     fprintf(paf, <span class="stringliteral">"PAF.LCHG.DAYTIM       \"%s\"\n"</span>, datetime) ;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     fprintf(paf, <span class="stringliteral">"PAF.CHCK.CHECKSUM     \"\"\n"</span>);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     fprintf(paf, <span class="stringliteral">"PAF.HDR.END           ; # end of header\n"</span>);</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     fprintf(paf, <span class="stringliteral">"\n"</span>);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     <span class="keywordflow">return</span> paf ;</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> }</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00137"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#gaee7a0d27a947e1e0b3e8d0f94b5c3dff">  137</a></span> <a class="code" href="group__uves__qclog.html#gaee7a0d27a947e1e0b3e8d0f94b5c3dff" title="computes rootname">uves_get_rootname</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * filename)</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> {</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     <span class="keyword">static</span> <span class="keywordtype">char</span> path[MAX_NAME_SIZE+1];</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="keywordtype">char</span> * lastdot ;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <span class="keywordflow">if</span> (strlen(filename)>MAX_NAME_SIZE) <span class="keywordflow">return</span> NULL ;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     memset(path, 0, MAX_NAME_SIZE);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     strcpy(path, filename);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     lastdot = strrchr(path, <span class="charliteral">'.'</span>);</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     <span class="keywordflow">if</span> (lastdot == NULL) <span class="keywordflow">return</span> path ;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="keywordflow">if</span> ((!strcmp(lastdot, <span class="stringliteral">".fits"</span>)) || (!strcmp(lastdot, <span class="stringliteral">".FITS"</span>)) ||</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>         (!strcmp(lastdot, <span class="stringliteral">".paf"</span>)) || (!strcmp(lastdot, <span class="stringliteral">".PAF"</span>)) ||</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>         (!strcmp(lastdot, <span class="stringliteral">".dat"</span>)) || (!strcmp(lastdot, <span class="stringliteral">".DAT"</span>)) ||</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>         (!strcmp(lastdot, <span class="stringliteral">".tfits"</span>)) || (!strcmp(lastdot, <span class="stringliteral">".TFITS"</span>)) ||</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>         (!strcmp(lastdot, <span class="stringliteral">".ascii"</span>)) || (!strcmp(lastdot, <span class="stringliteral">".ASCII"</span>)))</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     {</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>         lastdot[0] = (char)0;</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     }</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <span class="keywordflow">return</span> path ;</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> }</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#ga315583aa3196da7e1648ec9203837279">  165</a></span> <a class="code" href="group__uves__qclog.html#ga315583aa3196da7e1648ec9203837279" title="get paf file name">uves_get_paf_name</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* in, <span class="keywordtype">int</span> paf_no, <span class="keywordtype">char</span>** paf) </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> {</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <span class="keywordtype">char</span>* tmp=NULL;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     <span class="keywordtype">char</span>  name_b[512] ;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     <span class="keywordflow">if</span> (strstr(in, <span class="stringliteral">"."</span> ) != NULL ) </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     {</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>         tmp = <a class="code" href="group__uves__qclog.html#gaee7a0d27a947e1e0b3e8d0f94b5c3dff" title="computes rootname">uves_get_rootname</a>(in);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>         strcpy(name_b, tmp);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     } </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     {</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>         sprintf(name_b, <span class="stringliteral">"%s"</span>, in) ;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     }</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     sprintf(*paf, <span class="stringliteral">"%s-%d.paf"</span>, name_b, paf_no);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> }</div>
-<div class="line"><a name="l00189"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c">  189</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * in, <span class="keywordtype">char</span>* ou) </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> {</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>   <span class="keywordtype">int</span> len=0;</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   strcpy(ou,in);</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>   len = strlen(in);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>   <span class="keywordflow">for</span> (i=0;i<len;i++)</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     {</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>       <span class="keywordflow">if</span> (in[i] == <span class="charliteral">' '</span>) {</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>           ou[i] =  <span class="charliteral">'.'</span>;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>       }</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     }</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> }</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#ga4db1dc810fc251a2bebba5ddf8dc0ddc">  225</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__qclog.html#ga4db1dc810fc251a2bebba5ddf8dc0ddc" title="Init QC-LOG table.">uves_save_paf</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename, </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>           <span class="keywordtype">int</span> paf_no,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>* rec_id,  </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                   <span class="keyword">const</span> cpl_table* qclog,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>*   plist,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                   <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>*   rhead,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*      pro_catg)</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> {</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     FILE            *   paf ;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>      *   sval ;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="keywordtype">char</span>            key_name[FILE_NAME_SZ] ;</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <span class="keywordtype">char</span>            key_paf[FILE_NAME_SZ] ;</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <span class="keywordtype">char</span>            key_dpaf[FILE_NAME_SZ] ;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <span class="keywordtype">char</span>            key_type[FILE_NAME_SZ] ;</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="keywordtype">char</span>            key_value[FILE_NAME_SZ] ;</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <span class="keywordtype">char</span>            key_help[FILE_NAME_SZ] ;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     <span class="keywordtype">char</span>* name_p=NULL;</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     <span class="keywordtype">int</span> i =0;</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     <span class="keywordtype">int</span> n=0;</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     name_p = cpl_malloc(FILE_NAME_SZ * <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <a class="code" href="group__uves__qclog.html#ga315583aa3196da7e1648ec9203837279" title="get paf file name">uves_get_paf_name</a>(filename, paf_no, &name_p);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>( <span class="stringliteral">"Writing %s"</span> , name_p) ;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="comment">/* Create the default PAF header */</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <span class="keywordflow">if</span> ((paf = <a class="code" href="group__uves__qclog.html#ga18caeeaa4c1ba5d2cb2062fab6a56121" title="Open a new PAF file, output a default header.">uves_paf_print_header</a>(</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>          name_p,</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>          rec_id,</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>          <span class="stringliteral">"QC file"</span>,</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>          <span class="stringliteral">"login-name"</span>,</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>          <a class="code" href="group__uves__time.html#ga1db9a9647c947cd72abe846a12d483fc" title="Returns the current date and time as a static string.">uves_get_datetime_iso8601</a>())) == NULL) {</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>( <span class="stringliteral">"cannot open file [%s] for output"</span>, name_p) ;</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     }</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     cpl_free(name_p);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     strcpy(key_name,KEY_NAME_QC_DID);        </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     strcpy(key_paf,PAF_NAME_QC_DID);</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf,key_dpaf);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     fprintf(paf,<span class="stringliteral">"%-21s \"%s\" ; # %s \n"</span>,key_dpaf,</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>         <a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(plist,key_name),KEY_HELP_QC_DID);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(PAF_NAME_PIPE_ID,key_dpaf);</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     fprintf(paf,<span class="stringliteral">"%-21s \"%s/%s\" ; # %s \n"</span>, key_dpaf,</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>                  PACKAGE, PACKAGE_VERSION,KEY_HELP_PIPE_ID);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     strcpy(key_name, KEY_NAME_PIPEFILE);        </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     strcpy(key_paf, KEY_NAME_PIPEFILE);        </div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf, key_dpaf);</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, key_name)) {</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>        fprintf(paf,<span class="stringliteral">"%-21s \"%s\" ; # %s \n"</span>, key_dpaf,</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>        <a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(plist,key_name),KEY_HELP_PIPEFILE);</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     }</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     <span class="comment">/* Value: "TEMPORARY", "PREPROCESSED", "REDUCED" or "QCPARAM". */</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     strcpy(key_name,KEY_NAME_PRO_TYPE);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     strcpy(key_paf,PAF_NAME_PRO_TYPE);    </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf,key_dpaf);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, key_name)) {</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>        fprintf(paf,<span class="stringliteral">"%-21s \"%s\" ; # %s \n"</span>, key_dpaf,</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>        <a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(plist,key_name),KEY_HELP_PRO_TYPE);</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     }</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     strcpy(key_name,KEY_NAME_PRO_RECID);  </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     strcpy(key_paf,PAF_NAME_PRO_RECID);  </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf,key_dpaf);        </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, key_name)) {</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>       fprintf(paf,<span class="stringliteral">"%-21s \"%s\" ; # %s \n"</span>, key_dpaf,</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>           <a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(plist,key_name),KEY_HELP_PRO_RECID);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     }</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <span class="comment">/* sprintf(cval, "CPL-%s", get_cpl_version()); */</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     strcpy(key_name,KEY_NAME_PRO_DRSID); </div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     strcpy(key_paf,PAF_NAME_PRO_DRSID); </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf,key_dpaf);        </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, key_name)) {</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>       fprintf(paf,<span class="stringliteral">"%-21s \"%s\" ; # %s \n"</span>,key_dpaf, </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>           <a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(plist,key_name),KEY_HELP_PRO_DRSID);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     }</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment">    if (uves_propertylist_contains(plist,KEY_NAME_DATE_OBS)) {</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment">      sval = uves_pfits_get_date_obs(plist);</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment">      strcpy(key_paf,KEY_NAME_DATE_OBS); </span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment">      uves_blank2dot(key_paf,key_dpaf);        </span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="comment">      fprintf(paf, "%-21s \"%s\" ; # %s\n",key_dpaf, </span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="comment">                sval,KEY_HELP_DATE_OBS) ;</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="comment">    }</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>       <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(rhead,KEY_NAME_ARCFILE)) {</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>       sval = <a class="code" href="group__uves__pfits.html#ga2cc76a99674d90a86d9d7174f33dc893" title="find out the arcfile">uves_pfits_get_arcfile</a>(rhead);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>       strcpy(key_paf,KEY_NAME_ARCFILE);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>       <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf,key_dpaf);      </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>       fprintf(paf, <span class="stringliteral">"%-21s \"%s\" ; # %s \n"</span>, key_dpaf,sval,KEY_HELP_ARCFILE) ;</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(rhead,KEY_NAME_PRO_REC1_RAW1_NAME)) {</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>       sval = <a class="code" href="group__uves__pfits.html#ga2b39689fbd7baa3e56d34c2200317649" title="find out the arcfile">uves_pfits_get_rec1raw1name</a>(rhead);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>       strcpy(key_paf,KEY_NAME_ARCFILE);</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>       <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf,key_dpaf);        </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>    } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"%s is missing QC LOG will fail!"</span>,KEY_NAME_ARCFILE);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     }</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist,KEY_NAME_TPL_ID)) {</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>       sval = <a class="code" href="group__uves__pfits.html#gaf694501f3a20536e64cad6efc2a0e5b5" title="find out the template id">uves_pfits_get_templateid</a>(plist);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>       strcpy(key_paf,PAF_NAME_TPL_ID);</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>       <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf,key_dpaf);       </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>       fprintf(paf, <span class="stringliteral">"%-21s \"%s\" ; # %s\n"</span>, key_dpaf,</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>           sval,KEY_HELP_TPL_ID) ;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>  </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     }</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist,KEY_NAME_DPR_TYPE)) {</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>       sval = <a class="code" href="group__uves__pfits.html#ga5bb5b7dee7a50351450a64182f1458fe" title="find out the data type as defined by the DataFlow">uves_pfits_get_dpr_type</a>(plist);</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>       strcpy(key_paf,PAF_NAME_DPR_TYPE); </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>       <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf,key_dpaf);        </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>       fprintf(paf, <span class="stringliteral">"%-21s \"%s\" ; # %s\n"</span>, key_dpaf,</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>                 sval, KEY_HELP_DPR_TYPE) ;</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     }</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist,KEY_NAME_DPR_TECH)) {</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>       sval = <a class="code" href="group__uves__pfits.html#ga2833b60dd4a735740352b9c24c6b01f9" title="find out the data tech as defined by the DataFlow">uves_pfits_get_dpr_tech</a>(plist);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>       strcpy(key_paf,PAF_NAME_DPR_TECH); </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>       <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf,key_dpaf);   </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>       fprintf(paf, <span class="stringliteral">"%-21s \"%s\" ; # %s\n"</span>, key_dpaf,</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>                 sval, KEY_HELP_DPR_TECH) ;</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     }</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist,KEY_NAME_DPR_CATG)) {</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>       sval = <a class="code" href="group__uves__pfits.html#ga9a720fb2cb64f6f8704b53d6d5869017" title="find out the data category as defined by the DataFlow">uves_pfits_get_dpr_catg</a>(plist);</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>       strcpy(key_paf,PAF_NAME_DPR_CATG); </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>       <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf,key_dpaf); </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>       fprintf(paf, <span class="stringliteral">"%-21s \"%s\" ; # %s\n"</span>, key_dpaf,</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>                 sval, KEY_HELP_DPR_CATG) ;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     }</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     strcpy(key_paf,PAF_NAME_PRO_CATG); </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf,key_dpaf); </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     fprintf(paf, <span class="stringliteral">"%-21s \"%s\" ; # %s\n"</span>, key_dpaf,</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                 pro_catg, KEY_HELP_PRO_CATG) ;</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     n=cpl_table_get_nrow(qclog);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     <span class="keywordflow">for</span>(i=0;i<n;i++) </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     {</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>         strcpy(key_paf,cpl_table_get_string(qclog,<span class="stringliteral">"key_name"</span>,i));</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>         <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(key_paf,key_name);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>         strcpy(key_type,  cpl_table_get_string(qclog, <span class="stringliteral">"key_type"</span>,i));</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>         strcpy(key_value, cpl_table_get_string(qclog, <span class="stringliteral">"key_value"</span>,i));</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>         strcpy(key_help,  cpl_table_get_string(qclog, <span class="stringliteral">"key_help"</span> , i));</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>         </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>         <span class="keywordflow">if</span> (strcmp(key_type, <span class="stringliteral">"CPL_TYPE_STRING"</span>) == 0)</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>         {</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>             fprintf(paf,<span class="stringliteral">"%s               \"%s\"\n"</span>,</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>                 key_name, key_value);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>         }</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>         {</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>             fprintf(paf,<span class="stringliteral">"%s               %s\n"</span>,</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>                 key_name, key_value);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>         }</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     }</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     fprintf(paf, <span class="stringliteral">"\n"</span>);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     fclose(paf) ;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> }</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> cpl_table *</div>
-<div class="line"><a name="l00410"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2">  410</a></span> <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>         <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> {</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>   cpl_table *qclog = NULL;</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>   qclog = cpl_table_new(0);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>   cpl_table_new_column(qclog,<span class="stringliteral">"key_name"</span>, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>   cpl_table_new_column(qclog,<span class="stringliteral">"key_type"</span>, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>   cpl_table_new_column(qclog,<span class="stringliteral">"key_value"</span>, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>   cpl_table_new_column(qclog,<span class="stringliteral">"key_help"</span>, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                     <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(KEY_NAME_QC_DID,<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                     <span class="stringliteral">"UVES-1.14"</span>,</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>                     KEY_NAME_QC_DID,</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>                     <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>   <span class="comment">/* Not present in bias/dark frames: */</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>   <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(raw_header, UVES_INSPATH))</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>       {</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>                         <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_INSPATH,<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>                         <a class="code" href="group__uves__pfits.html#gaeefa3dc2dbf45776accef00f67b7002f" title="find out the chip name value">uves_pfits_get_inspath</a>(raw_header),</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>                         <span class="stringliteral">"Optical path used."</span>,</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>                         <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>       }</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>       {</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Missing descriptor %s"</span>, UVES_INSPATH);</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>       }</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> </div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>   <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(raw_header, UVES_INSMODE))</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>       {</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>                         <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_INSMODE,<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>                         <a class="code" href="group__uves__pfits.html#gaa56bfa63f004c7046a5a5242312a792f" title="find out the chip name value">uves_pfits_get_insmode</a>(raw_header),</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>                         <span class="stringliteral">"Instrument mode used."</span>,</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>                         <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>       }</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>       {</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Missing descriptor %s"</span>, UVES_INSMODE);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>       }</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>   <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(raw_header, UVES_GRATNAME(chip)))</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>       {</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>                         <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_GRATNAME(chip),<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>                         <a class="code" href="group__uves__pfits.html#ga58d2d231e9bcf59d84ce42cf527b2071" title="find out the grating name value">uves_pfits_get_gratname</a>(raw_header,chip),</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>                         <span class="stringliteral">"Grating common name"</span>,</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>                         <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>       }</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>       {</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Missing descriptor %s"</span>, UVES_GRATNAME(chip));</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>       }</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>   </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>   <span class="comment">/* Always present: */</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                     <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_READ_SPEED,<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                     <a class="code" href="group__uves__pfits.html#ga5dc4ab669bc41d6c481905c16afa59a0" title="find out the readout speed">uves_pfits_get_readspeed</a>(raw_header),</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                     <span class="stringliteral">"Readout speed"</span>,</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>                     <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>   </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>                  <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_BINX, <span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>                  <a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(raw_header),</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>                  <span class="stringliteral">"Binning factor along X"</span>,</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>                  <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>   </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>                  <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_BINY, <span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>                  <a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(raw_header),</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>                  <span class="stringliteral">"Binning factor along Y"</span>,</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>                  <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>   </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>   <span class="keywordflow">if</span> (<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(raw_header, UVES_CHIP_NAME(chip)))</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>       {</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>                         <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_CHIP_NAME(chip),<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>                         <span class="comment">/* UVES_QC_CHIP_VAL(chip), */</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>                         <a class="code" href="group__uves__pfits.html#ga764b711e645e416c5be3882765baa14e" title="Find out the chip name.">uves_pfits_get_chip_name</a>(raw_header, chip),</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>                         <span class="stringliteral">"Detector chip name"</span>,</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>                         <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>       }</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>   <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>       {</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>       <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Missing descriptor %s"</span>, UVES_CHIP_NAME(chip));</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>       }</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>   </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>   cleanup:</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>   <span class="keywordflow">return</span> qclog;</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> }</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> </div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> </div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16">  521</a></span> <a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(cpl_table* table,</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  key_name,  </div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>                   <span class="keyword">const</span> <span class="keywordtype">int</span>    value,</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  key_help,</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  format)</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> {</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>   <span class="keywordtype">int</span> sz = cpl_table_get_nrow(table);</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>   <span class="keywordtype">int</span> raw = sz;</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>   <span class="keywordtype">char</span> key_value[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>   <span class="keywordtype">char</span> key_type[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>   sprintf(key_value,format,value);</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>   strcpy(key_type,<span class="stringliteral">"CPL_TYPE_INT"</span>); </div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>  </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>   cpl_table_set_size(table,sz+1);</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> </div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>   cpl_table_set_string(table,<span class="stringliteral">"key_name"</span> ,raw,key_name);</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>   cpl_table_set_string(table,<span class="stringliteral">"key_type"</span> ,raw,key_type);</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>   cpl_table_set_string(table,<span class="stringliteral">"key_value"</span>,raw,key_value);</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>   cpl_table_set_string(table,<span class="stringliteral">"key_help"</span> ,raw,key_help);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> </div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> }</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> </div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> </div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> </div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#ga13ef561d5d2f87bb90450c21ffcf221e">  561</a></span> <a class="code" href="group__uves__qclog.html#ga13ef561d5d2f87bb90450c21ffcf221e" title="Add boolean key to QC-LOG table.">uves_qclog_add_bool</a>(cpl_table* table,</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  key_name,  </div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>   value,</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  key_help,</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  format)</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> {</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>   <span class="keywordtype">int</span> sz = cpl_table_get_nrow(table);</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>   <span class="keywordtype">int</span> raw = sz;</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>   <span class="keywordtype">char</span> key_value[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>   <span class="keywordtype">char</span> key_type[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>   sprintf(key_value,format,value);</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>   strcpy(key_type,<span class="stringliteral">"CPL_TYPE_BOOL"</span>); </div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>   cpl_table_set_size(table,sz+1);</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> </div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>   cpl_table_set_string(table,<span class="stringliteral">"key_name"</span> ,raw,key_name);</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>   cpl_table_set_string(table,<span class="stringliteral">"key_type"</span> ,raw,key_type);</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>   cpl_table_set_string(table,<span class="stringliteral">"key_value"</span>,raw,key_value);</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>   cpl_table_set_string(table,<span class="stringliteral">"key_help"</span> ,raw,key_help);</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> </div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> </div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> }</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> </div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> </div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00600"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#ga9b27f428bd465c6b4db422a793067e67">  600</a></span> <a class="code" href="group__uves__qclog.html#ga9b27f428bd465c6b4db422a793067e67" title="Add float key to QC-LOG table.">uves_qclog_add_float</a>(cpl_table* table,</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  key_name,  </div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                   <span class="keyword">const</span> <span class="keywordtype">float</span>  value,</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  key_help,</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  format)</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span> {</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>   <span class="keywordtype">int</span> sz = cpl_table_get_nrow(table);</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>   <span class="keywordtype">int</span> raw = sz;</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>   <span class="keywordtype">char</span> key_value[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>   <span class="keywordtype">char</span> key_type[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> </div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>   sprintf(key_value,format,value);</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>   strcpy(key_type,<span class="stringliteral">"CPL_TYPE_FLOAT"</span>); </div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>  </div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>   cpl_table_set_size(table,sz+1);</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> </div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>   cpl_table_set_string(table,<span class="stringliteral">"key_name"</span> ,raw,key_name);</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>   cpl_table_set_string(table,<span class="stringliteral">"key_type"</span> ,raw,key_type);</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>   cpl_table_set_string(table,<span class="stringliteral">"key_value"</span>,raw,key_value);</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>   cpl_table_set_string(table,<span class="stringliteral">"key_help"</span> ,raw,key_help);</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> </div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span> </div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> }</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> </div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> </div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> </div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00641"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64">  641</a></span> <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(cpl_table* table,</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  key_name,  </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> value,</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  key_help,</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  format)</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> {</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>   <span class="keywordtype">int</span> sz = cpl_table_get_nrow(table);</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>   <span class="keywordtype">int</span> raw = sz;</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>   <span class="keywordtype">char</span> key_value[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>   <span class="keywordtype">char</span> key_type[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> </div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>   sprintf(key_value,format,value);</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>   strcpy(key_type,<span class="stringliteral">"CPL_TYPE_DOUBLE"</span>); </div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> </div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>   cpl_table_set_size(table,sz+1);</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> </div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>   cpl_table_set_string(table,<span class="stringliteral">"key_name"</span> ,raw,key_name);</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>   cpl_table_set_string(table,<span class="stringliteral">"key_type"</span> ,raw,key_type);</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>   cpl_table_set_string(table,<span class="stringliteral">"key_value"</span>,raw,key_value);</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>   cpl_table_set_string(table,<span class="stringliteral">"key_help"</span> ,raw,key_help);</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span> </div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span> </div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> }</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span> </div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> </div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> </div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> </div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> </div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00683"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3">  683</a></span> <a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(cpl_table* table,</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  key_name,  </div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  value,</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  key_help,</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*  format)</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> {</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>   <span class="keywordtype">int</span> sz = cpl_table_get_nrow(table);</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>   <span class="keywordtype">int</span> raw = sz;</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>   <span class="keywordtype">char</span> key_value[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>   <span class="keywordtype">char</span> key_type[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span> </div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>   sprintf(key_value,format,value);</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>   strcpy(key_type,<span class="stringliteral">"CPL_TYPE_STRING"</span>); </div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>  </div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>   cpl_table_set_size(table,sz+1);</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span> </div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>   cpl_table_set_string(table,<span class="stringliteral">"key_name"</span> ,raw,key_name);</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>   cpl_table_set_string(table,<span class="stringliteral">"key_type"</span> ,raw,key_type);</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>   cpl_table_set_string(table,<span class="stringliteral">"key_value"</span>,raw,key_value);</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>   cpl_table_set_string(table,<span class="stringliteral">"key_help"</span> ,raw,key_help);</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span> </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span> </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span> }</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> </div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3">  716</a></span> <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(cpl_table** table)</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> {</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>   <span class="keywordflow">if</span> (table != NULL) { </div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>     cpl_table_delete(*table);</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     *table = NULL;</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>   }</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> }</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> </div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> </div>
-<div class="line"><a name="l00735"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#gaed8104b6319a79c1e9513a9aaf140a65">  735</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__qclog.html#gaed8104b6319a79c1e9513a9aaf140a65" title="Add QC-LOG to FITS header.">uves_pfits_put_qc</a>(</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>         <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>       *   plist,</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>         <span class="keyword">const</span> cpl_table          *   qclog)</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span> {</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>   <span class="keywordtype">char</span>            key_name[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>   <span class="keywordtype">char</span>            key_value[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>   <span class="keywordtype">char</span>            key_type[FILE_NAME_SZ];</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>   <span class="keywordtype">char</span>            key_help[FILE_NAME_SZ] ;</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span> </div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>   <span class="keywordtype">int</span>             i =0;</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>   <span class="keywordtype">int</span> n =0;</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>   <span class="comment">/* Test entries */</span></div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>   <span class="keywordflow">if</span> (plist == NULL) {</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"plist=NULL, something strange"</span>);</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>   }</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>   <span class="comment">/* Parameter Name:    PIPEFILE */</span></div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span> </div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>   n=cpl_table_get_nrow(qclog);</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>   <span class="keywordflow">for</span>(i=0;i<n;i++) {</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>     strcpy(key_name,<span class="stringliteral">"ESO "</span>);</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     strcat(key_name,cpl_table_get_string(qclog,<span class="stringliteral">"key_name"</span>,i));</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>     strcpy(key_type,cpl_table_get_string(qclog,<span class="stringliteral">"key_type"</span>,i));</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     strcpy(key_value,cpl_table_get_string(qclog,<span class="stringliteral">"key_value"</span>,i));</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     strcpy(key_help,cpl_table_get_string(qclog,<span class="stringliteral">"key_help"</span>,i));</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span> </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>     <span class="comment">/* uves_msg("name=%s type=%s value=%s\n",key_name,key_type,key_value); */</span></div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>     <span class="keywordflow">if</span>(!<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist,key_name)) {</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>       <span class="keywordflow">if</span>(strcmp(key_type,<span class="stringliteral">"CPL_TYPE_STRING"</span>) == 0) {</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     uves_propertylist_append_string(plist, key_name,key_value) ;</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, key_name,key_help) ;</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(strcmp(key_type,<span class="stringliteral">"CPL_TYPE_BOOL"</span>) == 0) {</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>       <span class="comment">/* printf("key_value=%s\n",key_value); */</span></div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     uves_propertylist_append_bool(plist, key_name,atoi(key_value)) ;</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, key_name,key_help) ;</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(strcmp(key_type,<span class="stringliteral">"CPL_TYPE_INT"</span>) == 0) {</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>     uves_propertylist_append_int(plist,key_name,atoi(key_value)) ;</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>     <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, key_name,key_help) ;</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(strcmp(key_type,<span class="stringliteral">"CPL_TYPE_FLOAT"</span>) == 0) {</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>         uves_propertylist_append_float(plist, key_name,(<span class="keywordtype">float</span>)atof(key_value)) ;</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>         <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, key_name,key_help) ;</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(strcmp(key_type,<span class="stringliteral">"CPL_TYPE_DOUBLE"</span>) == 0) {</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>         uves_propertylist_append_double(plist, key_name,atof(key_value)) ;</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>         <a class="code" href="group__uves__propertylist.html#ga1a5d3673829cac01d0c0f6938973c193" title="Modify the comment field of the given property list entry.">uves_propertylist_set_comment</a>(plist, key_name,key_help) ;</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>       }</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>       {</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>           <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Unrecognized type: %s"</span>, key_type);</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>           <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>       }</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>     }</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> </div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>   }</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span> </div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>   <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> }</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span> </div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00803"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#gaf6a3fc6cf06a17550bd0320603287ace">  803</a></span> <a class="code" href="group__uves__qclog.html#gaf6a3fc6cf06a17550bd0320603287ace" title="Write QC parameters related to science reduction.">uves_qclog_add_sci</a>(cpl_table *qclog,</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>            <span class="keyword">const</span> cpl_image *raw_image,</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>            <span class="keywordtype">double</span> slit,</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>            <span class="keyword">const</span> cpl_table *info_tbl)</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> {</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>     <span class="keywordtype">char</span> key_name[80];</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>     </div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>     <span class="comment">/* These QC parameters are computed only in optimal extraction.</span></div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span> <span class="comment">       Update: After request from DFO, these are also calculated for</span></div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span> <span class="comment">       average+linear extraction.</span></div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span> </div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>     <span class="keywordflow">if</span> (info_tbl != NULL) {</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>     <span class="keywordtype">int</span> minorder = cpl_table_get_int(info_tbl, <span class="stringliteral">"Order"</span>, 0, NULL);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>     <span class="keywordtype">int</span> maxorder = minorder;</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>     <span class="keywordtype">int</span> norder;          <span class="comment">/* Number of orders extracted */</span></div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span> </div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>     <span class="keywordflow">for</span>(i = 0; i < cpl_table_get_nrow(info_tbl); i++) {</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>         <span class="keywordtype">int</span> order = cpl_table_get_int(info_tbl,<span class="stringliteral">"Order"</span>, i, NULL);</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span> </div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>         minorder = uves_min_int(minorder, order);</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>         maxorder = uves_max_int(maxorder, order);</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span> </div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> <span class="comment">          sprintf(key_name, "QC ORDER NUM%d", i);</span></div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span> <span class="comment">          check_nomsg(uves_qclog_add_int(qclog,</span></div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span> <span class="comment">          key_name,</span></div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span> <span class="comment">          cpl_table_get_int(info_tbl,"Order",i, NULL),</span></div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span> <span class="comment">          "Order Number",</span></div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> <span class="comment">          "%d"));</span></div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>         </div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"QC-LOG: Order = %d, S/N = %g, Pos = %g, FHWM = %g, RI = %g"</span>, </div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>                order,</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>                cpl_table_get_double(info_tbl, <span class="stringliteral">"ObjSnBlzCentre"</span>  ,i ,NULL),</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>                cpl_table_get_double(info_tbl, <span class="stringliteral">"ObjPosOnSlit"</span>  ,i ,NULL),</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>                cpl_table_get_double(info_tbl, <span class="stringliteral">"ObjFwhmAvg"</span> ,i ,NULL),</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>                            cpl_table_get_double(info_tbl, <span class="stringliteral">"Ripple"</span> ,i ,NULL));</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>         </div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>         </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>         sprintf(key_name, <span class="stringliteral">"QC ORD%d OBJ SN"</span>, order);</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>                           key_name,</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>                           cpl_table_get_double(info_tbl,<span class="stringliteral">"ObjSnBlzCentre"</span>,i, NULL),</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>                           <span class="stringliteral">"Av. S/N at order center"</span>,</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>                           <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>         </div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>         sprintf(key_name, <span class="stringliteral">"QC ORD%d OBJ POS"</span>, order);</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>                           key_name,</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>                           cpl_table_get_double(info_tbl,<span class="stringliteral">"ObjPosOnSlit"</span>,i, NULL),</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>                           <span class="stringliteral">"Av. OBJ POS at order center"</span>,</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>                           <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>         </div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>         sprintf(key_name, <span class="stringliteral">"QC ORD%d OBJ FWHM"</span>, order);</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>                           key_name,</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>                           cpl_table_get_double(info_tbl,<span class="stringliteral">"ObjFwhmAvg"</span>,i, NULL),</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>                           <span class="stringliteral">"Av. FWHM on order"</span>,</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>                           <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> </div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>         sprintf(key_name, <span class="stringliteral">"QC ORD%d OBJ RPLPAR"</span>, order);</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>                           key_name,</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>                           cpl_table_get_double(info_tbl,<span class="stringliteral">"Ripple"</span>,i, NULL),</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>                           <span class="stringliteral">"Av. relative ripple amplitude"</span>,</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>                           <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>     } <span class="comment">/* for i */</span></div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> </div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>        <span class="comment">/* !WARNING!: Duplicate code follows. If changed, please</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> <span class="comment">        * synchronize with the place where ORDER_TRACE_xxxx</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> <span class="comment">        * is saved.</span></div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span> <span class="comment">        *</span></div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span> <span class="comment">        * These parameters used to (MIDAS),</span></div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span> <span class="comment">        * be added only to ORDER_TRACE_xxxx.</span></div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> <span class="comment">        * Now add them to the same products as other</span></div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span> <span class="comment">        * QC parameters</span></div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>     norder = maxorder - minorder + 1;</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>                        <span class="stringliteral">"QC EX NORD"</span>,</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>                        norder,</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>                        <span class="stringliteral">"No. of orders extracted"</span>,</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>                        <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>     </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>                        <span class="stringliteral">"QC EX XSIZE"</span>,</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>                        cpl_image_get_size_x(raw_image),</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>                        <span class="stringliteral">"Input image width (pixels)"</span>,</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>                        <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>     </div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>                        <span class="stringliteral">"QC EX YSIZE"</span>,</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>                        uves_round_double(slit),</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>                        <span class="stringliteral">"Extraction slit (pixels)"</span>,</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>                        <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>     } <span class="comment">/* if info_tbl != NULL */</span></div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>     </div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>     {</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>     <span class="keywordtype">double</span> barycor, helicor;</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span> </div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__baryvel.html#ga7ab5f73d3e1aad2933cbcf66dff04aa3" title="Compute velocity correction.">uves_baryvel</a>(raw_header, </div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>                 &barycor,</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>                 &helicor),</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>            <span class="stringliteral">"Could not compute velocity corrections"</span>);</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>     </div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>                       <span class="stringliteral">"QC VRAD BARYCOR"</span>,</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>                       barycor,</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>                       <span class="stringliteral">"Barycentric radial velocity correction "</span>,</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>                       <span class="stringliteral">"%13.6f"</span>));</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>     </div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>                       <span class="stringliteral">"QC VRAD HELICOR"</span>,</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>                       helicor,</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>                       <span class="stringliteral">"Heliocentric radial velocity correction "</span>,</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                       <span class="stringliteral">"%13.6f"</span>));</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>     }</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>            </div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>   cleanup:</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> }</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span> </div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span> </div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00942"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#ga66d1b116b78a6302ce5a2bb2d00c5d41">  942</a></span> <a class="code" href="group__uves__qclog.html#ga66d1b116b78a6302ce5a2bb2d00c5d41" title="Write common QC parameters.">uves_qclog_add_common_wave</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                cpl_table *qclog)</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> {</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> </div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>                                       <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_SLITWIDTH(chip),<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>                                       <a class="code" href="group__uves__pfits.html#gadbfe6eb96c384b6b971b634ab8b79fab" title="find out the slit width">uves_pfits_get_slitwidth</a>(raw_header,chip),</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>                                       <span class="stringliteral">"Slit width (arcsec) [arcsec] (hs)."</span>,</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                                       <span class="stringliteral">"%.1f"</span>));</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span> </div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>                       <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_GRATWLEN(chip),<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                       <a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(raw_header,chip),</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                       <span class="stringliteral">"Grating central wavelength [nm] (hs)."</span>,</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                       <span class="stringliteral">"%.1f"</span>));</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>     </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span> </div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span> </div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> </div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>                       <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_TEMPCAM(chip),<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>                       <a class="code" href="group__uves__pfits.html#ga266ea18052beecac005d60558904a490" title="find out the pressure value">uves_pfits_get_tempcam</a>(raw_header,chip),</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>                       <span class="stringliteral">"Average temperature [C] (ho)."</span>,</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>                       <span class="stringliteral">"%.1f"</span>));</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span> </div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span> </div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span> </div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>   cleanup:</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span> }</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span> </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> </div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00985"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b">  985</a></span> <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>                <span class="keywordtype">bool</span> flames, <span class="keywordtype">int</span> trace_number)</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span> {</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>     {</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>         <span class="keywordflow">return</span> uves_sprintf(<span class="stringliteral">"QC FIB%d %s"</span>, trace_number + 1, name);</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>     }</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>     {</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>         <span class="keywordflow">return</span> uves_sprintf(<span class="stringliteral">"QC %s"</span>, name);</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>     }</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> }</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span> </div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01009"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#gadb993bcb25e5b1537f17d17c2fb27684"> 1009</a></span> <a class="code" href="group__uves__qclog.html#gadb993bcb25e5b1537f17d17c2fb27684" title="Create common QC log.">uves_qclog_dump_common</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist,</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>                <span class="keyword">enum</span> uves_chip chip, </div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>                        cpl_table* qclog)</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> </div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> {</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> </div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> </div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>   <span class="keywordtype">int</span> binx=0;</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>   <span class="keywordtype">int</span> biny=0;</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* read_speed=NULL;</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* dpr_type=NULL;</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* tpl_id=NULL;</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* arcfile=NULL;</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* pro_catg=NULL;</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* pipefile=NULL;</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* ins_path=NULL;</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* ins_mode=NULL;</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* name_cross=NULL;</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* name_ccd=NULL;</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>   </div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> </div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(binx=<a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(plist));</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(biny=<a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(plist));</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(read_speed=<a class="code" href="group__uves__pfits.html#ga5dc4ab669bc41d6c481905c16afa59a0" title="find out the readout speed">uves_pfits_get_readspeed</a>(plist));</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(dpr_type=<a class="code" href="group__uves__pfits.html#ga9a720fb2cb64f6f8704b53d6d5869017" title="find out the data category as defined by the DataFlow">uves_pfits_get_dpr_catg</a>(plist));</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tpl_id=<a class="code" href="group__uves__pfits.html#gaf694501f3a20536e64cad6efc2a0e5b5" title="find out the template id">uves_pfits_get_templateid</a>(plist));    </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(arcfile=<a class="code" href="group__uves__pfits.html#ga2cc76a99674d90a86d9d7174f33dc893" title="find out the arcfile">uves_pfits_get_arcfile</a>(plist));</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pro_catg=<a class="code" href="group__uves__pfits.html#ga77477da1d35f89951eb8eace41938d41" title="find out the product category as defined by the DataFlow">uves_pfits_get_pro_catg</a>(plist));</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pipefile=<a class="code" href="group__uves__pfits.html#ga29aa57ccf95058c909572ed494be97b1" title="find out the pipefile">uves_pfits_get_pipefile</a>(plist)); </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ins_path=<a class="code" href="group__uves__pfits.html#gaeefa3dc2dbf45776accef00f67b7002f" title="find out the chip name value">uves_pfits_get_inspath</a>(plist)); </div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ins_mode=<a class="code" href="group__uves__pfits.html#gaa56bfa63f004c7046a5a5242312a792f" title="find out the chip name value">uves_pfits_get_insmode</a>(plist)); </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(name_cross=<a class="code" href="group__uves__pfits.html#ga58d2d231e9bcf59d84ce42cf527b2071" title="find out the grating name value">uves_pfits_get_gratname</a>(plist,chip)); </div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(name_ccd=<a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e" title="Find out the chip ID.">uves_pfits_get_chipid</a>(plist,chip)); </div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span> </div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>                   <span class="stringliteral">"PRO REC1 PIPE ID"</span>,</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>                   PACKAGE_VERSION,</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>                   <span class="stringliteral">"Pipeline (unique) identifier"</span>,</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>                   <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> </div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>                   <span class="stringliteral">"DPR TYPE"</span>,</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>                   dpr_type,</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                   <span class="stringliteral">"Data Processing Type"</span>,</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>                   <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> </div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                   <span class="stringliteral">"TPL ID"</span>,</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                   tpl_id,</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>                   <span class="stringliteral">"Template Id"</span>,</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>                   <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> </div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>                   <span class="stringliteral">"ARCFILE"</span>,</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>                   arcfile,</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>                   <span class="stringliteral">"Archive file name"</span>,</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>                   <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span> </div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>                   <span class="stringliteral">"PRO CATG"</span>,</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>                   pro_catg,</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>                   <span class="stringliteral">"Product Category"</span>,</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>                   <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> </div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> </div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>                   <span class="stringliteral">"PIPEFILE"</span>,</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>                   pipefile,</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>                   <span class="stringliteral">"Pipeline file name"</span>,</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>                   <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> </div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> </div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>                   <span class="stringliteral">"INS PATH"</span>,</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>                   ins_path,</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>                   <span class="stringliteral">"Instrument Path"</span>,</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                   <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> </div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> </div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>                   <span class="stringliteral">"INS MODE"</span>,</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>                   ins_mode,</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>                   <span class="stringliteral">"Instrument mode"</span>,</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>                   <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> </div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>                   <span class="stringliteral">"NAME CROSS"</span>,</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>                   name_cross,</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>                   <span class="stringliteral">"Grating common name"</span>,</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>                   <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> </div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>                   <span class="stringliteral">"NAME CCD"</span>,</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>                   name_ccd,</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>                   <span class="stringliteral">"Detector chip name"</span>,</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>                   <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> </div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span> </div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span> <span class="comment">  qc1log/out 1 {p2} "PRO.REC1.PIPE.ID" "{p_version}" "Pipeline (unique) identifier" PRO</span></div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> <span class="comment">  qc1log/out 1 {p1} {h_dprtype} "{dpr_type}" + DPR</span></div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> <span class="comment">  qc1log/out 1 {p2} {h_tpid} "{tpl_id}" + TPL</span></div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> <span class="comment">  qc1log/out 1 {p2} {h_arcfile} {arcfile} + PRIMARY-FITS</span></div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> <span class="comment">  qc1log/out 1 {p2} {h_procatg} {pro_catg} + PRO</span></div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> <span class="comment">  qc1log/out 1 {p2} {h_pipefile} {p2} + PRO</span></div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span> <span class="comment">  set/format i1 f8.4,f8.4</span></div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> <span class="comment">   qc1log/out 1 {p2} {h_inspath} {{p1},{h_inspath}}                 "Optical path used."         UVES_ICS</span></div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span> <span class="comment">   qc1log/out 1 {p2} {h_insmode} {{p1},{h_insmode}}                 "Instrument mode used."      UVES_ICS  </span></div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> <span class="comment">qc1log/out 1 {p2} "{h_namecros({PATHID})(5:18)}" {{p1},{h_namecros({PATHID})}}         "Grating common name"            UVES_ICS</span></div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> <span class="comment">nameccd =  "{{p1},{h_fits_nameccd({PATHID})}}"</span></div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> <span class="comment">qc1log/out 1 {p2} "{h_fits_nameccd({PATHID})(5:)}" "{nameccd}" "Detector chip name"              CCDDCS</span></div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> <span class="comment">qc1log/out 1 {p2} "{h_speed}"   {speed} "Readout speed"     CCDDCS</span></div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> <span class="comment">qc1log/out 1 {p2} "{h_xwinbin}" {binx}  "Binning factor along X"  CCDDCS</span></div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> <span class="comment">qc1log/out 1 {p2} "{h_ywinbin}" {biny}  "Binning factor along Y"  CCDDCS</span></div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> <span class="comment">set/format</span></div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> </div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>                   <span class="stringliteral">"DET READ SPEED"</span>,</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>                   read_speed,</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>                   <span class="stringliteral">"Readout speed"</span>,</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>                   <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span> </div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> </div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>                   <span class="stringliteral">"DET BINX"</span>,</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>                   binx,</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>                   <span class="stringliteral">"Binning factor along X"</span>,</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>                   <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> </div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> </div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>   ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>                   <span class="stringliteral">"DET BINY"</span>,</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>                   biny,</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>                   <span class="stringliteral">"Binning factor along Y"</span>,</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>                   <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> </div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span> </div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> </div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>   <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>  cleanup:</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>   <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span> </div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span> }</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span> </div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span> </div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span> </div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01166"></a><span class="lineno"><a class="code" href="group__uves__qclog.html#ga2e1dbad185cd0eeceb6512e9c9d865fb"> 1166</a></span> <a class="code" href="group__uves__qclog.html#ga2e1dbad185cd0eeceb6512e9c9d865fb" title="Create common QC log.">uves_qclog_dump_common_wave</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist,</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>                     <span class="keyword">enum</span> uves_chip chip, </div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>                             cpl_table* qclog)</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>   {</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>     <span class="keywordtype">double</span> slit_width=0;</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>     <span class="keywordtype">double</span> temp_cam=0;</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>     <span class="keywordtype">double</span> wave_len=0;</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(wave_len=<a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(plist,chip));</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(temp_cam=<a class="code" href="group__uves__pfits.html#ga266ea18052beecac005d60558904a490" title="find out the pressure value">uves_pfits_get_tempcam</a>(plist,chip));</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(slit_width=<a class="code" href="group__uves__pfits.html#gadbfe6eb96c384b6b971b634ab8b79fab" title="find out the slit width">uves_pfits_get_slitwidth</a>(plist,chip));</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> </div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span> </div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>  ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>                   <span class="stringliteral">"DET SLIT WIDTH"</span>,</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>                   slit_width,</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>                   <span class="stringliteral">"Slit width (arcsec) [arcsec] (hs)."</span>,</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>                   <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span> </div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> </div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>  ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>                   <span class="stringliteral">"DET WCENT"</span>,</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>                   wave_len,</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>                   <span class="stringliteral">"Grating central wavelength [nm] (hs)."</span>,</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>                   <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> </div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span> </div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>  ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>                   <span class="stringliteral">"TEMP CAM"</span>,</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>                   temp_cam,</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>                   <span class="stringliteral">"Average temperature [c] (ho)."</span>,</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>                   <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span> </div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> </div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> <span class="comment">    set/format i1 f8.4,f8.4</span></div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> <span class="comment">   qc1log/out 1 {p2} "{h_slwidth({PATHID})}"         {swid}     "Slit width (arcsec) [arcsec] (hs)."    UVES_ICS</span></div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> <span class="comment">qc1log/out 1 {p2} "{h_cwlen({PATHID})(5:)}"       {wlen}     "Grating central wavelength [nm] (hs)." UVES_ICS</span></div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> <span class="comment">qc1log/out 1 {p2} "{h_tempcam({PATHID})(5:)}"      {temp}    "Average temperature [c] (ho)."         UVES_ICS</span></div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> <span class="comment">set/format</span></div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> <span class="comment"></span></div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> </div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>   cleanup:</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>     <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> </div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> }</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__qclog_8h_source.html b/html/uves__qclog_8h_source.html
deleted file mode 100644
index c6fe29a..0000000
--- a/html/uves__qclog_8h_source.html
+++ /dev/null
@@ -1,285 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_qclog.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_qclog.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2002, 2003, 2004, 2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.24 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.22  2007/08/30 14:05:19  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * moved MAX_NAME_SIZE def to uves_globals.h</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.21  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.20  2007/04/24 14:09:29  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Removed obsolete log_slitwidth option to uves_qclog_add_common_wave()</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.19  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.18  2007/02/26 10:16:42  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Support not logging slit width</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.17  2007/01/29 12:11:02  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Log QC parameters (pos, fwhm, s/n) also for simple extraction</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.16  2007/01/26 12:33:57  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * added function for common QC</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.15  2006/12/07 08:26:21  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added uves_pfits_get_readspeed</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.14  2006/12/01 12:28:18  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added function to create QC parameter names</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.13  2006/10/04 10:59:04  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Implemented QC.VRAD parameters</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.12  2006/10/02 08:35:01  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * const bugfix</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.11  2006/09/19 14:32:43  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Factored out common code to compute extraction QC parameters</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.10  2006/08/24 11:38:32  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Write QC dictionary ID to product header</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.9  2006/07/14 12:28:02  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Added function to write common QC parameters</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.8  2006/06/28 13:27:50  amodigli</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Fixed problem dumping ARCFILE key changing uves_save_paf interface</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.7  2006/06/22 08:58:33  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Use correct port number for QC</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.6  2006/05/05 13:55:45  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Removed lone CPL_END_DECLS</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor">#ifndef UVES_QCLOG_H</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_QCLOG_H</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor">#define KEY_NAME_PRO_REC1_RAW1_NAME        "ESO PRO REC1 RAW1 NAME"</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="preprocessor">#define KEY_NAME_PRO_DRSID                 "ESO PRO REC1 DRS ID"</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="preprocessor"></span><span class="preprocessor">#define PAF_NAME_PRO_DRSID                 "PRO REC1 DRS ID"</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_PRO_DRSID                 "Data Reduction System identifier"</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor">#define KEY_NAME_PIPE_ID                   "ESO PRO REC1 PIPE ID"</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor"></span><span class="preprocessor">#define PAF_NAME_PIPE_ID                   "PRO REC1 PIPE ID"</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_PIPE_ID                   "Pipeline (unique) identifier"</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_NAME_PIPEFILE                  "PIPEFILE"</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_PIPEFILE                  "Filename of data product"</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#define KEY_NAME_QC_DID                    "ESO QC DID"</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor"></span><span class="preprocessor">#define PAF_NAME_QC_DID                    "QC DID"</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_QC_DID                    "Data dictionary for QC"</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="preprocessor">#define KEY_NAME_PRO_TYPE                  "ESO PRO TYPE"</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor"></span><span class="preprocessor">#define PAF_NAME_PRO_TYPE                  "PRO TYPE"</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_PRO_TYPE                  "Product Type"</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor">#define KEY_NAME_DATE_OBS                  "DATE-OBS"</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_DATE_OBS                  "Observing date"</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="preprocessor">#define KEY_NAME_PRO_RECID                 "ESO PRO REC1 ID"</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="preprocessor"></span><span class="preprocessor">#define PAF_NAME_PRO_RECID                 "PRO REC1 ID"</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_PRO_RECID                 "Pipeline recipe(unique) identifier"</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="preprocessor">#define KEY_NAME_DPR_TYPE                  "ESO DPR TYPE"</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_NAME_DPR_CATG                  "ESO DPR CATG"</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_NAME_DPR_TECH                  "ESO DPR TECH"</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_NAME_PRO_CATG                  "ESO PRO CATG"</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_NAME_TPL_ID                    "ESO TPL ID"</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_NAME_ARCFILE                   "ARCFILE"</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="preprocessor">#define PAF_NAME_DPR_TYPE                  "DPR TYPE"</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="preprocessor"></span><span class="preprocessor">#define PAF_NAME_DPR_CATG                  "DPR CATG"</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="preprocessor"></span><span class="preprocessor">#define PAF_NAME_DPR_TECH                  "DPR TECH"</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="preprocessor"></span><span class="preprocessor">#define PAF_NAME_PRO_CATG                  "PRO CATG"</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="preprocessor"></span><span class="preprocessor">#define PAF_NAME_TPL_ID                    "TPL ID"</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="preprocessor"></span><span class="preprocessor">#define PAF_NAME_PRO_DRSID                 "PRO REC1 DRS ID"</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor">#define KEY_HELP_DPR_TYPE                  "Observation type"</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_DPR_CATG                  "Observation category"</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_DPR_TECH                  "Observation technique"</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_PRO_CATG                  "Category of pipeline product frame"</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_TPL_ID                    "Template sig"</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_ARCFILE                   "Archive file name"</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="preprocessor"></span><span class="preprocessor">#define KEY_HELP_PRO_DRSID                 "Data Reduction System identifier"</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="preprocessor">#define PORT_ID(chip) (((chip) == UVES_CHIP_REDL) ? 4 : 1)</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__qclog.html#gaee7a0d27a947e1e0b3e8d0f94b5c3dff" title="computes rootname">uves_get_rootname</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * filename);</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__qclog.html#ga315583aa3196da7e1648ec9203837279" title="get paf file name">uves_get_paf_name</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* in, <span class="keywordtype">int</span> paf_no, <span class="keywordtype">char</span>** paf);</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__qclog.html#gaff1f9eaf65f4225d2dd01f635a1ac49c" title="replace a blank to a dot">uves_blank2dot</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * in, <span class="keywordtype">char</span>* ou);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> </div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__qclog.html#ga4db1dc810fc251a2bebba5ddf8dc0ddc" title="Init QC-LOG table.">uves_save_paf</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename, </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>           <span class="keywordtype">int</span> paf_no,</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>* rec_id,  </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>                   <span class="keyword">const</span> cpl_table* qclog,</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>                   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>*   plist,</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>                   <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>*   rhead,</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span>*      pro_catg);</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> cpl_table *</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>         <span class="keyword">enum</span> uves_chip chip);</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(cpl_table* table,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>* name,  </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>                  <span class="keyword">const</span> <span class="keywordtype">int</span>   value,</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>* help,</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>          <span class="keyword">const</span> <span class="keywordtype">char</span>* format);</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <a class="code" href="group__uves__qclog.html#ga13ef561d5d2f87bb90450c21ffcf221e" title="Add boolean key to QC-LOG table.">uves_qclog_add_bool</a>(cpl_table* table,</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>* name,  </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>  value,</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>* help,</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>          <span class="keyword">const</span> <span class="keywordtype">char</span>* format);</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <a class="code" href="group__uves__qclog.html#ga9b27f428bd465c6b4db422a793067e67" title="Add float key to QC-LOG table.">uves_qclog_add_float</a>(cpl_table* table,</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>* name,  </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>                  <span class="keyword">const</span> <span class="keywordtype">float</span> value,</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>* help,</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>          <span class="keyword">const</span> <span class="keywordtype">char</span>* format);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(cpl_table* table,</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>* name,  </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>                  <span class="keyword">const</span> <span class="keywordtype">double</span> value,</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>* help,</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>          <span class="keyword">const</span> <span class="keywordtype">char</span>* format);</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(cpl_table* table,</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>* name,  </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>* value,</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>                  <span class="keyword">const</span> <span class="keywordtype">char</span>* help,</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>          <span class="keyword">const</span> <span class="keywordtype">char</span>* format);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(cpl_table** table);</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__qclog.html#gaed8104b6319a79c1e9513a9aaf140a65" title="Add QC-LOG to FITS header.">uves_pfits_put_qc</a>(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> * plist, <span class="keyword">const</span> cpl_table * qclog);</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__qclog.html#gaf6a3fc6cf06a17550bd0320603287ace" title="Write QC parameters related to science reduction.">uves_qclog_add_sci</a>(cpl_table *qclog,</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>             <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>             <span class="keyword">const</span> cpl_image *raw_image,</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>             <span class="keywordtype">double</span> slit,</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>             <span class="keyword">const</span> cpl_table *info_tbl);</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <a class="code" href="group__uves__qclog.html#ga66d1b116b78a6302ce5a2bb2d00c5d41" title="Write common QC parameters.">uves_qclog_add_common_wave</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>                <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>                cpl_table *qclog);</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>                <span class="keywordtype">bool</span> flames, <span class="keywordtype">int</span> trace_number);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <a class="code" href="group__uves__qclog.html#gadb993bcb25e5b1537f17d17c2fb27684" title="Create common QC log.">uves_qclog_dump_common</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist,</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>                <span class="keyword">enum</span> uves_chip chip, </div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                        cpl_table* qclog);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <a class="code" href="group__uves__qclog.html#ga2e1dbad185cd0eeceb6512e9c9d865fb" title="Create common QC log.">uves_qclog_dump_common_wave</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist,</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>                     <span class="keyword">enum</span> uves_chip chip, </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                             cpl_table* qclog);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__rebin_8c_source.html b/html/uves__rebin_8c_source.html
deleted file mode 100644
index 6260a5b..0000000
--- a/html/uves__rebin_8c_source.html
+++ /dev/null
@@ -1,1210 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_rebin.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_rebin.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-04-16 15:45:44 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.52 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.51  2010/11/09 17:23:13  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * added integrate_noise() and made changes to properly rebin noise spectrum (sum in quadrature over variance, than take sqrt)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.50  2010/09/24 09:32:07  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.48  2010/06/08 11:25:47  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * changed wavestep parmeters range to -1.0,-1.0,DBL_MAX</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.47  2010/06/07 09:48:46  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * changed unit: Angstrom->Ang</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.46  2010/06/02 13:10:12  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * set wavestep as parameter with range, min allowed is -1, max allowed is 0.4</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.45  2010/02/13 12:22:31  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * removed inlines (let's do work to compiler)</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.44  2009/01/27 10:11:30  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * fixed problem bue to cpl_image_get_bpm() API change</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.43  2007/09/17 08:11:27  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * added support CPL_TYPE_INT</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.42  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.41  2007/06/21 07:29:11  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Fixed memory error</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.40  2007/06/19 11:59:37  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * added several uves_msg statements to check vs flames_obs_scired</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.39  2007/06/18 15:35:27  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Added support for in/out image type=float (used in FLAMES)</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.38  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.37  2007/05/22 11:38:13  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Removed MIDAS flag for good</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.36  2007/05/07 10:18:27  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Added option to enforce positive resulting values (useful for error bars)</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.35  2007/05/03 15:21:10  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Decreased output message verbosity</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.34  2007/04/27 07:21:15  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Show warning but don't fail if dispersion is ill-formed</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.33  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.32  2007/01/17 13:28:07  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Shortened line</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.31  2006/11/15 15:02:15  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.29  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is </span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Revision 1.28  2006/11/13 14:23:55  jmlarsen</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * Removed workarounds for CPL const bugs</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.27  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Revision 1.26  2006/10/31 09:15:34  jmlarsen</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> * Fixed buffer overrun</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Revision 1.25  2006/10/10 11:28:19  jmlarsen</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> * Renamed line table columns to match MIDAS</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Revision 1.24  2006/10/10 11:20:11  jmlarsen</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> * Renamed line table columns to match MIDAS</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Revision 1.23  2006/10/02 08:37:35  jmlarsen</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * Do not avoid reserving space for bad pixels near edge of orders, like MIDAS</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Revision 1.22  2006/09/20 12:53:57  jmlarsen</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> * Replaced stringcat functions with uves_sprintf()</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Revision 1.21  2006/09/11 13:58:41  jmlarsen</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> * Changed CRVAL1 from 1 to 0 in rebinned image</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Revision 1.20  2006/08/17 14:40:06  jmlarsen</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Revision 1.19  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Revision 1.18  2006/08/17 09:17:39  jmlarsen</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Removed CPL2 code</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Revision 1.17  2006/08/10 10:52:58  jmlarsen</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * Removed workaround for cpl_image_get_bpm</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Revision 1.16  2006/08/07 11:35:35  jmlarsen</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * Disabled parameter environment variable mode</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Revision 1.15  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Revision 1.14  2006/05/08 11:36:10  jmlarsen</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> * Fixed normalization bug for bins at edge of order</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Revision 1.13  2006/05/05 13:57:01  jmlarsen</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * Implemented more careful flux interpolation</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Revision 1.12  2006/04/06 08:39:36  jmlarsen</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Added void to function prototype</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Revision 1.11  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Revision 1.10  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Revision 1.9  2006/01/31 08:24:29  jmlarsen</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> * Wrapper for cpl_image_get_bpm</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Revision 1.8  2006/01/25 16:13:20  jmlarsen</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * Changed interface of gauss.fitting routine</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Revision 1.7  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Revision 1.6  2005/12/16 14:22:23  jmlarsen</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Removed midas test data; Added sof files</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Revision 1.5  2005/12/02 10:41:49  jmlarsen</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Revision 1.4  2005/11/28 08:18:12  jmlarsen</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * Replaced cpl_mask_get_bpm -> cpl_image_get_bpm</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * Revision 1.3  2005/11/24 15:09:06  jmlarsen</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> * Implemented 2d extraction/rebinning/merging</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Revision 1.2  2005/11/24 11:54:46  jmlarsen</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> * Added support for CPL 3 interface</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * Revision 1.1  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="preprocessor">#include <uves_rebin.h></span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="preprocessor">#include <uves_wavecal_utils.h></span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <a class="code" href="group__uves__rebin.html#ga9746917b2a07e3ede927b28ad927d6ca" title="Integrate flux.">integrate_flux</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *spectrum_data_double,</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>                <span class="keyword">const</span> <span class="keywordtype">float</span>  *spectrum_data_float,</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>                <span class="keyword">const</span> <span class="keywordtype">int</span>  *spectrum_data_int,</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>                <span class="keyword">const</span> cpl_binary *spectrum_bad,</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>                <span class="keywordtype">int</span> spectrum_row,</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>                <span class="keywordtype">int</span> nx,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                <span class="keywordtype">double</span> x_min, <span class="keywordtype">double</span> x_max,</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>                <span class="keywordtype">bool</span> threshold_to_positive,</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>                <span class="keywordtype">bool</span> *is_bad);</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <a class="code" href="group__uves__rebin.html#ga0f756f87f2bfbf7797c348ae30d77494" title="Integrate variance.">integrate_noise</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *spectrum_data_double,</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                <span class="keyword">const</span> <span class="keywordtype">float</span>  *spectrum_data_float,</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>                <span class="keyword">const</span> <span class="keywordtype">int</span>  *spectrum_data_int,</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                <span class="keyword">const</span> cpl_binary *spectrum_bad,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                <span class="keywordtype">int</span> spectrum_row,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                <span class="keywordtype">int</span> nx,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                <span class="keywordtype">double</span> x_min, <span class="keywordtype">double</span> x_max,</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                <span class="keywordtype">bool</span> threshold_to_positive,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                <span class="keywordtype">bool</span> *is_bad);</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> cpl_parameterlist *</div>
-<div class="line"><a name="l00245"></a><span class="lineno"><a class="code" href="group__uves__rebin.html#gad96c455875e2415225b27a3280516c0c">  245</a></span> <a class="code" href="group__uves__rebin.html#gad96c455875e2415225b27a3280516c0c" title="Define recipe parameters used for rebinning.">uves_rebin_define_parameters</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> {</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     cpl_parameter *p = NULL;</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     cpl_parameterlist *parameters = NULL;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     parameters = cpl_parameterlist_new();</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     {</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     name = <span class="stringliteral">"wavestep"</span>;</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_REBIN_ID, name);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                  CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                  <span class="stringliteral">"The bin size (in w.l.u.) in wavelength space. "</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>                  <span class="stringliteral">"If negative, a step size of "</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                  <span class="stringliteral">"2/3 * ( average pixel size ) is used."</span>,</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                  UVES_REBIN_ID,</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                              -1.0,-1.0,DBL_MAX);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     name = <span class="stringliteral">"scale"</span>;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_REBIN_ID, name);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>                  CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>                  <span class="stringliteral">"Whether or not to multiply by the factor "</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>                  <span class="stringliteral">"dx/dlambda (pixels per wavelength) "</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>                  <span class="stringliteral">"during the rebinning. This option is disabled "</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>                  <span class="stringliteral">"as default in concordance with the "</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>                  <span class="stringliteral">"method used in the MIDAS pipeline. This "</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>                  <span class="stringliteral">"option should be set to true "</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>                  <span class="stringliteral">"to convert the observed flux (in pixel-space) "</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>                  <span class="stringliteral">"to a flux per wavelength (in "</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>                  <span class="stringliteral">"wavelength-space)."</span>,</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>                  UVES_REBIN_ID,</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>                  <span class="keyword">false</span>);</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     cpl_free(full_name);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     }</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     {</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of rebinning parameters failed: '%s'"</span>, </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>         cpl_parameterlist_delete(parameters);</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     }</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     {</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>         <span class="keywordflow">return</span> parameters;</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     }</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> }</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> cpl_image *</div>
-<div class="line"><a name="l00348"></a><span class="lineno"><a class="code" href="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c">  348</a></span> <a class="code" href="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c" title="Rebin a spectrum.">uves_rebin</a>(<span class="keyword">const</span> cpl_image *spectrum,</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>        <span class="keyword">const</span> cpl_parameterlist *parameters, <span class="keyword">const</span> <span class="keywordtype">char</span> *context,</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>        <span class="keyword">const</span> cpl_table *linetable, <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation, </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>        <span class="keywordtype">int</span> first_abs_order, <span class="keywordtype">int</span> last_abs_order,</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>        <span class="keywordtype">int</span> n_traces,</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>            <span class="keywordtype">bool</span> threshold_to_positive,</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>            <span class="keywordtype">bool</span> is_noise,</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>        <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **rebinned_header)</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> {</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     <span class="keywordtype">double</span> wavestep;</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <span class="keywordtype">bool</span> scale;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     cpl_image *spectrum_local       = NULL;   <span class="comment">/* input */</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     cpl_image *rebinned       = NULL;   <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <span class="keywordtype">double</span> *rebinned_data_double = NULL;</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     <span class="keywordtype">float</span>  *rebinned_data_float  = NULL;</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     <span class="keywordtype">int</span>  *rebinned_data_int  = NULL;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     cpl_mask *rebinned_badmap = NULL;   <span class="comment">/* Map of unused bins */</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     cpl_binary *rebinned_bad  = NULL;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *spectrum_data_double = NULL;   <span class="comment">/* Direct pointer to input data */</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     <span class="keyword">const</span> <span class="keywordtype">float</span>  *spectrum_data_float  = NULL;   <span class="comment">/* unused pointer remains NULL */</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     <span class="keyword">const</span> <span class="keywordtype">int</span>  *spectrum_data_int  = NULL;   <span class="comment">/* unused pointer remains NULL */</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     <span class="keyword">const</span> cpl_mask *spectrum_badmap = NULL;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     <span class="keyword">const</span> cpl_binary *spectrum_bad  = NULL;</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *disprel_1d    = NULL;   <span class="comment">/* Dispersion relation for 1 order */</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     <span class="keywordtype">int</span> nx, ny, nlambda, norders;     <span class="comment">/* Image dimensions */</span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     <span class="keywordtype">bool</span> warning_shown = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>    </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( spectrum != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( dispersion_relation != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( rebinned_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     assure( cpl_image_get_type(spectrum) == CPL_TYPE_DOUBLE ||</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>             cpl_image_get_type(spectrum) == CPL_TYPE_FLOAT ||</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>             cpl_image_get_type(spectrum) == CPL_TYPE_INT,</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>             CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>         <span class="stringliteral">"Spectrum must have type double, float or int. It is '%s'"</span>,</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(spectrum)));</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> </div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     <span class="comment">/* Get recipe parameters */</span></div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_REBIN_ID, <span class="stringliteral">"wavestep"</span>, </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>                   CPL_TYPE_DOUBLE, &wavestep ), </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, context, UVES_REBIN_ID, <span class="stringliteral">"scale"</span>   , </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>                   CPL_TYPE_BOOL,   &scale    ), </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>     <span class="comment">/* Set sample bin width if user didn't */</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     <span class="keywordflow">if</span> (wavestep < 0)</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>     {</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>         <span class="keywordtype">double</span> pixelsize;</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( pixelsize = cpl_table_get_column_mean(linetable, LINETAB_PIXELSIZE),</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>            <span class="stringliteral">"Error reading mean pixelsize"</span>);</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Average pixelsize = %f w.l.u."</span>, pixelsize);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>         wavestep = pixelsize*2.0/3;</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>         }</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     assure( wavestep > 0 , CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>         <span class="stringliteral">"Illegal step size: %e wlu"</span>, wavestep);</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     assure( n_traces >= 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>         <span class="stringliteral">"Illegal number of traces: %d"</span>, n_traces);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     nx = cpl_image_get_size_x(spectrum);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     ny = cpl_image_get_size_y(spectrum);</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     assure( ny % n_traces == 0, CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>         <span class="stringliteral">"Spectrum image height (%d) is not a multiple of "</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>         <span class="stringliteral">"the number of traces (%d). Confused, bailing out"</span>,</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>         ny, n_traces);</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     norders         = ny / n_traces;</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     spectrum_local=(cpl_image*) spectrum;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> </div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     <span class="keywordflow">if</span>(is_noise) {       </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>        cpl_image_power(spectrum_local,2);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     }</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     <span class="keywordflow">if</span> (cpl_image_get_type(spectrum_local) == CPL_TYPE_DOUBLE) {</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>         spectrum_data_double   = cpl_image_get_data_double(spectrum_local);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     }</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cpl_image_get_type(spectrum_local) == CPL_TYPE_FLOAT) {</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>         spectrum_data_float   = cpl_image_get_data_float(spectrum_local);</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>         spectrum_data_int   = cpl_image_get_data_int(spectrum_local);</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     }</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(spectrum_badmap = cpl_image_get_bpm(spectrum_local));</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(spectrum_bad    = cpl_mask_get_data_const(spectrum_badmap));</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> </div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     assure( norders >= 1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Empty spectrum"</span>);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     assure( uves_round_double(fabs(first_abs_order - last_abs_order)) + 1 == norders, </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>         <span class="stringliteral">"Spectrum contains %d orders, but line table absolute "</span></div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>         <span class="stringliteral">"order numbering is %d - %d"</span>,</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>         norders, first_abs_order, last_abs_order);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *rebinned_header = <a class="code" href="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37" title="Initialize image header.">uves_initialize_image_header</a>(</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>            <span class="stringliteral">"AWAV"</span>,                        <span class="comment">/* CTYPE */</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>            (n_traces > 1) ? <span class="stringliteral">"PIXEL"</span> : <span class="stringliteral">"ORDER"</span>,</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>            <span class="stringliteral">"Angstrom"</span>,</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>            (n_traces > 1) ? <span class="stringliteral">"PIXEL"</span> : NULL,</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>            (scale) ? <span class="stringliteral">"FLUX PER WAVEL"</span> : <span class="stringliteral">"ADU"</span>, <span class="comment">/* BUNIT */</span></div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>            0,</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>            0.0, 1.0,                            <span class="comment">/* CRVAL  */</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>            1.0, 1.0,                            <span class="comment">/* CRPIX  */</span></div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>            wavestep, 1.0),                      <span class="comment">/* CDELT  */</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>        <span class="stringliteral">"Error setting up rebinned image header"</span>);</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     <span class="comment">/* CRVAL1 is set to zero. It should really be set to WSTARTi</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> <span class="comment">       for the i'th row of the image (but obviously that's not possible).</span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> <span class="comment">       CRVAL1 is set to zero so that the true starting position of</span></div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> <span class="comment">       the i'th image row is simply calculated as  CRVAL1 + WSTARTi.</span></div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>        </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     <span class="comment">/* Get width of rebinned image and offsets for each order */</span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     nlambda = -1;                      <span class="comment">/* Maximum number of bins in any order */</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     <span class="keywordflow">for</span> (order = 1; order <= norders; order++)</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     {</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>         <span class="comment">/*int trace = 1;*/</span></div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>                           <span class="comment">/* In the case where there are more traces in each order </span></div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <span class="comment">                 (2d extraction), just use the 1st trace to get the</span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> <span class="comment">                 wavelength range for the current order. The wavelength</span></div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> <span class="comment">                 range is the same for all traces. </span></div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> <span class="comment">                  */</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>         <span class="comment">/* int spectrum_row = (order - 1)*n_traces + trace; */</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>         <span class="keywordtype">int</span> absorder = <a class="code" href="group__uves__utils.html#ga579bc295bb9d73af0b052f37b576f552" title="Get the absolute order number.">uves_absolute_order</a>(first_abs_order, last_abs_order, order);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>         <span class="keywordtype">double</span> lambda_min, lambda_max;</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>         <span class="keywordtype">int</span> nbins;</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>         </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>         <span class="keywordtype">int</span> minx, maxx;  <span class="comment">/* Range of good pixels in current order */</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>         </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>         minx = 1;  </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> <span class="comment">/* The following is commented out to get the same</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> <span class="comment">   alignment as MIDAS</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> <span class="comment">        while (minx <= nx && cpl_image_is_rejected(spectrum, minx, spectrum_row)) minx++;</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>         maxx = nx; </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> <span class="comment">/*        while (maxx >=  1 && cpl_image_is_rejected(spectrum, maxx, spectrum_row)) maxx--; */</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>         <span class="keywordflow">if</span> ( minx > nx )</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>         {</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Nothing extracted in order #%d"</span>, order);</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>             minx = maxx = nx/2;</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>         }</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>         </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>         lambda_min = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>         dispersion_relation, minx - 0.5, absorder)/absorder;</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>         lambda_max = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>         dispersion_relation, maxx + 0.5, absorder)/absorder;</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>         </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>         nbins =</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>         uves_round_double(lambda_max / wavestep) -</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>         uves_round_double(lambda_min / wavestep) + 1;</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>             </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>         nlambda = uves_max_int(nlambda, nbins);  </div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>         </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga343861c33e84f1358c3235d41e8474b8" title="Write the wstart keyword.">uves_pfits_set_wstart</a>(</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>                *rebinned_header, order,</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>                wavestep * uves_round_double(lambda_min / wavestep)),</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>            <span class="stringliteral">"Error writing adding WSTART keyword to header"</span>);</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>         </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga30c035689f06d716cca55250181f9956" title="Write the wend keyword.">uves_pfits_set_wend</a>( </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>                *rebinned_header, order,</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>                wavestep * uves_round_double(lambda_max / wavestep)),</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>            <span class="stringliteral">"Error writing adding WEND keyword to header"</span>);</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>         </div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Rebinning abs. order #%d. "</span></div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                <span class="stringliteral">"Range = %d - %d pix = %f - %f wlu, %d bins"</span>, </div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>                absorder,</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>                minx, maxx,</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>                lambda_min,</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>                lambda_max,</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>                nbins);</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>         }</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>     </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Step size = %f wlu (%d orders x %d bins)"</span>, wavestep, norders, nlambda);</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     </div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     <span class="comment">/* Do the rebinning */</span></div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>     <span class="comment">/* Create empty image */</span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( rebinned = cpl_image_new(nlambda, norders*n_traces, cpl_image_get_type(spectrum_local)));</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( rebinned );</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>     <span class="keywordflow">if</span> (cpl_image_get_type(spectrum_local) == CPL_TYPE_DOUBLE) {</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>         rebinned_data_double   = cpl_image_get_data_double(rebinned);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     }</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cpl_image_get_type(spectrum_local) == CPL_TYPE_FLOAT) {</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>         rebinned_data_float   = cpl_image_get_data_float(rebinned);</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>         rebinned_data_int   = cpl_image_get_data_int(rebinned);</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     }</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>     rebinned_badmap = cpl_image_get_bpm(rebinned);</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     rebinned_bad    = cpl_mask_get_data(rebinned_badmap);</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>         </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     <span class="comment">/* Reject all pixels in output image,</span></div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> <span class="comment">       accept as values are computed */</span></div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>     uves_image_reject_all(rebinned);</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>     <span class="keywordflow">for</span> (order = 1; order <= norders; order++)</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     {</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>         <span class="keywordtype">int</span> absorder = <a class="code" href="group__uves__utils.html#ga579bc295bb9d73af0b052f37b576f552" title="Get the absolute order number.">uves_absolute_order</a>(first_abs_order, last_abs_order, order);</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>         <span class="keywordtype">double</span> lambda_start;        <span class="comment">/* Center of first wavel. bin */</span></div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>         <span class="keywordtype">int</span> trace;</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> </div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>         <span class="comment">/* uves_msg_progress(order - 1, norders, ".."); */</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>             </div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_start = <a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203" title="Read the wstart keyword.">uves_pfits_get_wstart</a>(*rebinned_header, order),</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>            <span class="stringliteral">"Error reading product header"</span>);</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> </div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>         <span class="comment">/* For efficiency, collapse 2d polynomial to 1d only once per order */</span></div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&disprel_1d);</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( disprel_1d = <a class="code" href="group__uves__utils__polynomial.html#gaec68fa3685c9988c384e327268d2d6b9" title="Collapse a polynomial by fixing one variable to a constant.">uves_polynomial_collapse</a>(dispersion_relation,</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>                              2,   <span class="comment">/* Independent variable number */</span></div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>                              absorder),</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>            <span class="stringliteral">"Error getting 1d dispersion relation for absolute order #%d"</span>, absorder);</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>         </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> </div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>         </div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>         <span class="keywordflow">for</span> (trace = 1; trace <= n_traces; trace++) </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>         {</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>             <span class="keywordtype">int</span> spectrum_row = (order - 1)*n_traces + trace;</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>             <span class="keywordtype">int</span> bin;</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>             <span class="keywordtype">double</span> x = 1;</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>             <span class="keywordtype">double</span> x_min = 1;</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>             <span class="keywordtype">double</span> x_max = 1;</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>             </div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>             <span class="keywordflow">for</span> (bin = 1; bin <= nlambda && x_min <= nx+0.5; bin++)</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>             {</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>                 <span class="keywordtype">double</span> lambda = lambda_start + (bin-1) * wavestep;</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>                 <span class="comment">/* Solve   f(x, m) = lambda*m  for x  */</span></div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>                 <span class="keywordtype">int</span> multiplicity = 1;</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>                 <span class="keywordtype">double</span> x_guess = x;</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>                  </div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> </div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>            </div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>                             x     =  <a class="code" href="group__uves__utils__polynomial.html#gadc218f4dd3fa80d91949611419b75abb" title="Solve p(x) = value.">uves_polynomial_solve_1d</a>(disprel_1d,</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>                                                               lambda * absorder,</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>                                                               x_guess, </div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>                                                               multiplicity);</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>                 </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>                             <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_DIVISION_BY_ZERO) {</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>                                 <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>                                 <span class="keywordflow">if</span> (!warning_shown) {</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>                                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Could not invert dispersion relation at "</span></div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>                                                      <span class="stringliteral">"order = %d, x = %f. This might be caused "</span></div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                                                      <span class="stringliteral">"by fitting a too high degree polynomial to "</span></div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                                                      <span class="stringliteral">"too few lines. Decrease dispersion "</span></div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                                                      <span class="stringliteral">"polynomial degree "</span></div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                                                      <span class="stringliteral">"or relax rejection parameters!"</span>,</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                                                      absorder, x_guess);</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>                                     warning_shown = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>                                 }</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>                                 x = x_guess;</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>                             }</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>                             <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>                                 assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>                                         cpl_error_get_code(),</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                                         <span class="stringliteral">"Could not invert dispersion relation"</span>);</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>                             }</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> </div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>            </div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>                 x_guess = x;</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>                             x_min = <a class="code" href="group__uves__utils__polynomial.html#gadc218f4dd3fa80d91949611419b75abb" title="Solve p(x) = value.">uves_polynomial_solve_1d</a>(</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>                                 disprel_1d,</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                                 (lambda - 0.5*wavestep) * absorder,</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>                                 x_guess,</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>                                 multiplicity);</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>                             </div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>                             <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_DIVISION_BY_ZERO) {</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>                                 <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>                                 <span class="keywordflow">if</span> (!warning_shown) {</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>                                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Could not invert dispersion relation at "</span></div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>                                                      <span class="stringliteral">"order = %d, x = %f. This might be caused "</span></div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>                                                      <span class="stringliteral">"by fitting a too high degree polynomial to "</span></div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>                                                      <span class="stringliteral">"too few lines. Decrease dispersion "</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>                                                      <span class="stringliteral">"polynomial degree "</span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>                                                      <span class="stringliteral">"or relax rejection parameters!"</span>,</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>                                                      absorder, x_guess);</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>                                     warning_shown = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>                                 }</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>                                 x_min = x_guess;</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>                             }</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>                             <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>                                 assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>                                         cpl_error_get_code(),</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>                                         <span class="stringliteral">"Could not invert dispersion relation"</span>);</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>                             }</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> </div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span> </div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>                             x_max = <a class="code" href="group__uves__utils__polynomial.html#gadc218f4dd3fa80d91949611419b75abb" title="Solve p(x) = value.">uves_polynomial_solve_1d</a>(</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>                                 disprel_1d,</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>                                 (lambda + 0.5*wavestep) * absorder,</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>                                 x_guess,</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>                                 multiplicity);</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>                             </div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>                             <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_DIVISION_BY_ZERO) {</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>                                 <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>                                 <span class="keywordflow">if</span> (!warning_shown) {</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>                                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Could not invert dispersion relation at "</span></div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>                                                      <span class="stringliteral">"order = %d, x = %f. This might be caused "</span></div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>                                                      <span class="stringliteral">"by fitting a too high degree polynomial to "</span></div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>                                                      <span class="stringliteral">"too few lines. Decrease dispersion "</span></div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>                                                      <span class="stringliteral">"polynomial degree "</span></div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>                                                      <span class="stringliteral">"or relax rejection parameters!"</span>,</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>                                                      absorder, x_guess);</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>                                     warning_shown = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>                                 }</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>                                 x_max = x_guess;</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>                             }</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>                             <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                                 assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>                                         cpl_error_get_code(),</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                                         <span class="stringliteral">"Could not invert dispersion relation"</span>);</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                             }</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>                             </div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>                 <span class="comment">/* If bin overlaps with source image */</span></div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>                 <span class="keywordflow">if</span> (uves_max_double(0.5, uves_min_double(nx+0.5, x_min)) <</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>                 uves_max_double(0.5, uves_min_double(nx+0.5, x_max)))</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>                 {</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                     <span class="comment">/* Measure average flux in range [xmin; xmax]:</span></div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> <span class="comment"></span></div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> <span class="comment">                       flux_x  = [ int_xmin^xmax f(x) dx ] / (xmax-xmin)</span></div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                     <span class="keywordtype">bool</span> pis_rejected;</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>                     <span class="keywordtype">double</span> p_min=uves_max_double(0.5, uves_min_double(nx+0.5, x_min));</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                     <span class="keywordtype">double</span> p_max=uves_max_double(0.5, uves_min_double(nx+0.5, x_max));</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                     <span class="keywordtype">double</span> flux_x =0;</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                     <span class="keywordflow">if</span>(is_noise) {</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>                        flux_x = <a class="code" href="group__uves__rebin.html#ga0f756f87f2bfbf7797c348ae30d77494" title="Integrate variance.">integrate_noise</a>(</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>                           spectrum_data_double,</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>                           spectrum_data_float,</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>                           spectrum_data_int,</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>                           spectrum_bad,</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>                           spectrum_row,</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>                           nx,</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>                           p_min,</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>                           p_max,</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>                           threshold_to_positive,</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>                           &pis_rejected) </div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                           / (( p_max -p_min) * ( p_max -p_min));</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span> </div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>                     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>                        flux_x = <a class="code" href="group__uves__rebin.html#ga9746917b2a07e3ede927b28ad927d6ca" title="Integrate flux.">integrate_flux</a>(</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>                           spectrum_data_double,</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>                           spectrum_data_float,</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>                           spectrum_data_int,</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>                           spectrum_bad,</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                           spectrum_row,</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>                           nx,</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>                           p_min,</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>                           p_max,</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>                           threshold_to_positive,</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>                           &pis_rejected) </div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>                           / ( p_max - p_min );</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>                     }</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>                     <span class="keywordflow">if</span> (!pis_rejected)</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>                     {</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>                         <span class="comment">/* Convert to flux per wavelength if requested */</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> </div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>                         <span class="keywordtype">double</span> dldx;</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>  </div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>                         <span class="keywordflow">if</span> (scale)</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>                         {</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>                             <span class="comment">/*  For constant m: </span></div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> <span class="comment">                             *   dl/dx = d(l*m)/dx / m</span></div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> <span class="comment">                             */</span>    </div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>                             dldx = <a class="code" href="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a" title="Evaluate the partial derivative of a 2d polynomial.">uves_polynomial_derivative_2d</a>(</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>                             dispersion_relation, x, absorder, 1)</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>                             / absorder;</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>  </div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>                             <span class="keywordflow">if</span>(is_noise) {</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>                                dldx *= dldx;</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>                             }                           </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>                         }</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>                         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>                         {</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>                             dldx = 1;</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>                         }</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>                         </div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>                         <span class="comment">/* Density in wavelength space :   </span></div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span> <span class="comment">                           N_lambda = N_x / |dl/dx|  */</span></div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span> </div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>                         <span class="keywordflow">if</span> (cpl_image_get_type(spectrum_local) == CPL_TYPE_DOUBLE) {</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>                             rebinned_data_double[(bin-1) + </div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>                                           (spectrum_row-1)*nlambda] = </div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>                                 flux_x / fabs(dldx);</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>                         }</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>                         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cpl_image_get_type(spectrum_local) == CPL_TYPE_FLOAT) {</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>                             rebinned_data_float[(bin-1) + </div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>                                                 (spectrum_row-1)*nlambda] = </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>                                 flux_x / fabs(dldx);</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>                         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>                             rebinned_data_int[(bin-1) + </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>                                                 (spectrum_row-1)*nlambda] = </div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>                                 flux_x / fabs(dldx);</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span> </div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span> </div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>             }</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> </div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>                         rebinned_bad[(bin-1) +</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>                              (spectrum_row-1)*nlambda] =</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>                         CPL_BINARY_0;</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>                     }</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>                     {</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>                         <span class="comment">/* Interpolation interval had no good pixels */</span></div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>                                             <span class="comment">/* Pixel marked as bad */</span></div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>                     }</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span> </div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>                 }</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>                 {</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>                     <span class="comment">/* Current wavelength bin is outside input image */</span></div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>                                     <span class="comment">/* Pixel marked as bad */</span></div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>                 }</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>             }<span class="comment">/* for each wavelength bin */</span></div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>                 } <span class="comment">/* for trace */</span></div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> </div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     } <span class="comment">/* for order */</span></div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>     <span class="comment">/* Done rebinning */</span></div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     <span class="keywordflow">if</span>(is_noise) {</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>        cpl_image_power(rebinned,0.5);</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     }</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> </div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> </div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>   cleanup:</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&disprel_1d);</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     {</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>         uves_free_image(&rebinned);</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>         uves_free_propertylist(rebinned_header);</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>     }</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span> </div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>     <span class="keywordflow">return</span> rebinned;</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span> }</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00825"></a><span class="lineno"><a class="code" href="group__uves__rebin.html#ga9746917b2a07e3ede927b28ad927d6ca">  825</a></span> <a class="code" href="group__uves__rebin.html#ga9746917b2a07e3ede927b28ad927d6ca" title="Integrate flux.">integrate_flux</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *spectrum_data_double,</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>                <span class="keyword">const</span> <span class="keywordtype">float</span> *spectrum_data_float,</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>                <span class="keyword">const</span> <span class="keywordtype">int</span> *spectrum_data_int,</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>                <span class="keyword">const</span> cpl_binary *spectrum_bad,</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>                <span class="keywordtype">int</span> spectrum_row,</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>                <span class="keywordtype">int</span> nx,</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>                <span class="keywordtype">double</span> x_min, <span class="keywordtype">double</span> x_max,</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>                <span class="keywordtype">bool</span> threshold_to_positive,</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>                <span class="keywordtype">bool</span> *is_bad)</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> {</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>     <span class="keywordtype">double</span> sum = 0;           <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>     <span class="keywordtype">double</span> sum_interval = 0;  <span class="comment">/* The length of the interval defined as the unioun</span></div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span> <span class="comment">                 of good pixels */</span></div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>     <span class="keywordtype">int</span> x;</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>     <span class="keywordtype">int</span> first_good = 0;</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span> </div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>     *is_bad = <span class="keyword">true</span>;           <span class="comment">/* Until at least one good pixel found */</span></div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>     </div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>     <span class="keywordflow">for</span> (x  = uves_min_int(nx, uves_max_int(1, uves_round_double(x_min)));</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>      <span class="comment">/* The thresholding is necessary, or nx+0.5 would be rounded to nx+1</span></div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span> <span class="comment">        which would cause a memory error */</span></div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>      x <= uves_min_int(nx, uves_max_int(1, uves_round_double(x_max)));</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>      x++)</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>     {  </div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span> </div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>         <span class="keywordflow">if</span> (spectrum_bad[(x-1) + (spectrum_row-1)*nx] == CPL_BINARY_0)</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>         <span class="comment">/* If good pixel */</span></div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>         {</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>             <span class="keywordtype">double</span> flux;             <span class="comment">/* "Raw" flux of current bin */</span></div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>             <span class="keywordtype">double</span> interval_length;</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>             <span class="keywordtype">double</span> current_term;     <span class="comment">/* Integral over current pixel */</span></div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>            </div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>             <span class="comment">/* Use a piecewise linear profile like this</span></div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> <span class="comment">             *   </span></div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> <span class="comment">             *                   C</span></div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> <span class="comment">             *  interpolant  => / \</span></div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> <span class="comment">             *              ---/---\-- <= "raw" flux</span></div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span> <span class="comment">             *              | /     \|</span></div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span> <span class="comment">             *              |/       B</span></div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> <span class="comment">             *              A        |________ <= non-continous interpolation</span></div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> <span class="comment">             *             /|     </span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> <span class="comment">             *    __________|        </span></div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span> <span class="comment">             * The flux levels A and B are midway between the current</span></div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> <span class="comment">             * pixel flux and its neighbours' levels.</span></div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> <span class="comment">             * C is chosen so that the integrated flux over the current </span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> <span class="comment">             * pixel equals the observed flux.</span></div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> <span class="comment">             * This interpolant is continous as well as flux conserving.</span></div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>             </div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>             <span class="keywordtype">int</span> x_prev = x-1;</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>             <span class="keywordtype">int</span> x_next = x+1;</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>             <span class="keywordtype">bool</span> pis_rejected_prev = (x_prev < 1 ) || </div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>             (spectrum_bad[(x_prev-1) + (spectrum_row-1)*nx] == CPL_BINARY_1);</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>             <span class="keywordtype">bool</span> pis_rejected_next = (nx < x_next) || </div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>             (spectrum_bad[(x_next-1) + (spectrum_row-1)*nx] == CPL_BINARY_1);</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> </div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>             <span class="keywordflow">if</span> (spectrum_data_double != NULL) {</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>                 flux = spectrum_data_double[(x-1) + (spectrum_row-1)*nx];</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>             }</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (spectrum_data_float != NULL) {</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>                 flux = spectrum_data_float [(x-1) + (spectrum_row-1)*nx];</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>                 flux = spectrum_data_int [(x-1) + (spectrum_row-1)*nx];</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>         }</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>             </div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>             <span class="keywordflow">if</span> (!pis_rejected_prev && !pis_rejected_next)</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>             {</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>                 <span class="comment">/* Define flux at pixel borders (A and B) as </span></div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> <span class="comment">                   mean value of this and neighbouring pixel */</span></div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>                 <span class="comment">/* CHANGE in case of noise divide by 4 instead of 2 </span></div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> <span class="comment">                   (input has to be variance) */</span></div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>                 <span class="keywordtype">double</span> flux_minus, flux_plus;</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>                 <span class="keywordflow">if</span> (spectrum_data_double != NULL) {</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>                     flux_minus =</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>                         (flux + spectrum_data_double[(x_prev-1) + (spectrum_row-1)*nx])</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>                         / 2.0;</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>                     flux_plus =</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>                         (flux + spectrum_data_double[(x_next-1) + (spectrum_row-1)*nx])</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>                         / 2.0;</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>                 }</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (spectrum_data_float != NULL) { </div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>                     flux_minus =</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>                         (flux + spectrum_data_float[(x_prev-1) + (spectrum_row-1)*nx])</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>                         / 2.0;</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>                     flux_plus =</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>                         (flux + spectrum_data_float[(x_next-1) + (spectrum_row-1)*nx])</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>                         / 2.0;</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>                 } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>                     flux_minus =</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>                         (flux + spectrum_data_int[(x_prev-1) + (spectrum_row-1)*nx])</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>                         / 2.0;</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>                     flux_plus =</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>                         (flux + spectrum_data_int[(x_next-1) + (spectrum_row-1)*nx])</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>                         / 2.0;</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>         }</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                 </div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>                 <span class="comment">/* Define flux at pixel center, fluxc, so that the average flux is</span></div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> <span class="comment">                 * equal to the "raw" flux:</span></div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span> <span class="comment">                 *</span></div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span> <span class="comment">                 * ((flux- + fluxc)/2 + (flux+ + fluxc)/2) / 2 = flux</span></div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> <span class="comment">                 * =>  flux- + flux+ + 2fluxc = 4flux</span></div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span> <span class="comment">                 * =>  fluxc = ...</span></div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> <span class="comment">                 */</span></div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>                 {</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>                     <span class="keywordtype">double</span> flux_center = 2*flux - (flux_minus + flux_plus) / 2.0;</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>                     <span class="comment">/* CHANGE:   4*flux + (flux_minus + flux_plus) / 4.0 */</span></div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> </div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>                     <span class="comment">/* Line slopes */</span></div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>                     <span class="keywordtype">double</span> slope_minus = (flux_center - flux_minus )/ 0.5;</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>                     <span class="keywordtype">double</span> slope_plus  = (flux_plus   - flux_center) / 0.5;</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                     <span class="comment">/* CHANGE: </span></div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span> <span class="comment">                              (flux_center + flux_minus )/ 0.25;</span></div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> <span class="comment">                     (flux_plus   + flux_center) / 0.25;</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                     <span class="comment">/*  Define overlap between [x_min; x_max] and</span></div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> <span class="comment">                        interval between A-C:  [x-0.5; x]) */</span></div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                     <span class="keywordtype">double</span> lo1 = uves_max_double(x-0.5, uves_min_double(x, x_min));</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                     <span class="keywordtype">double</span> hi1 = uves_max_double(x-0.5, uves_min_double(x, x_max));</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>                     <span class="keywordtype">double</span> dy1 = hi1-lo1;</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>                     </div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>                     <span class="comment">/*  Define overlap between [x_min; x_max] and</span></div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> <span class="comment">                        interval between C-B:  [x; x+0.5]) */</span></div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>                     <span class="keywordtype">double</span> lo2 = uves_max_double(x, uves_min_double(x+0.5, x_min));</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>                     <span class="keywordtype">double</span> hi2 = uves_max_double(x, uves_min_double(x+0.5, x_max));</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                     <span class="keywordtype">double</span> dy2 = hi2-lo2;</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>                     </div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>                     <span class="comment">/* Integrate interpolant over A-C and C-B */</span></div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>                     <span class="comment">/* A-C: interpolant(x) = flux_center + slope_minus *(x-x)</span></div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> <span class="comment">                       C-B: interpolant(x) = flux_center + slope_plus  *(x-x)</span></div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                 </div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span> </div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                     current_term =</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                         dy1 * (flux_center + slope_minus * ((lo1+hi1)/2.0 - x))</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>                         +</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>                         dy2 * (flux_center + slope_plus  * ((lo2+hi2)/2.0 - x));</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>                     <span class="comment">/* CHANGE</span></div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> <span class="comment">                   current_term =</span></div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span> <span class="comment">                        (dy1)^2 * (flux_center + slope_minus * ((lo1+hi1)/2.0 - x)^2)</span></div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span> <span class="comment">                        +</span></div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span> <span class="comment">                        (dy2)^2 * (flux_center + slope_plus  * ((lo2+hi2)/2.0 - x)^2);</span></div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span> <span class="comment"></span></div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>                     interval_length = dy1 + dy2;</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>                 }</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                 </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>             }<span class="comment">/* Neighbours are good */</span></div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>             {</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>                 interval_length = </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>                 uves_min_double(x_max, x+0.5) -</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>                 uves_max_double(x_min, x-0.5);</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> </div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                 current_term = interval_length * flux;</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>                 <span class="comment">/* CHANGE </span></div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> <span class="comment">                current_term = (interval_length)^2 * flux;</span></div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>             }</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>             </div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>             <span class="keywordflow">if</span> (*is_bad) {</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                 first_good = x;</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>             }</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>             *is_bad = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>             </div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>             sum += current_term;</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>             sum_interval += interval_length; </div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>         }</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>     }</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>     </div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>     <span class="keywordflow">if</span> (sum_interval == 0)</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>     {</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>         *is_bad = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>     }</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>     {</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>         <span class="comment">/* In case of bad pixels, rescale sum to full interval</span></div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> <span class="comment">           (If there are only good pixels then sum_interval == x_max-x_min)</span></div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>             <span class="keywordtype">double</span> result =  sum*(x_max-x_min)/sum_interval;</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>             <span class="comment">/* CHANGE</span></div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> <span class="comment">            double result =  sum*[(x_max-x_min)/sum_interval]^2;</span></div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>             <span class="keywordflow">if</span> (threshold_to_positive) {</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>                 <span class="keywordflow">if</span> (result == 0) {</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>                     <span class="comment">/* give up */</span></div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>                     *is_bad = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>                     <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>                 }</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>                     result = fabs(result);</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>                 }</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>             }</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>             <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>     }</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> }</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span> </div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> </div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l01053"></a><span class="lineno"><a class="code" href="group__uves__rebin.html#ga0f756f87f2bfbf7797c348ae30d77494"> 1053</a></span> <a class="code" href="group__uves__rebin.html#ga0f756f87f2bfbf7797c348ae30d77494" title="Integrate variance.">integrate_noise</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> *spectrum_data_double,</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>                <span class="keyword">const</span> <span class="keywordtype">float</span> *spectrum_data_float,</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>                <span class="keyword">const</span> <span class="keywordtype">int</span> *spectrum_data_int,</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                <span class="keyword">const</span> cpl_binary *spectrum_bad,</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                <span class="keywordtype">int</span> spectrum_row,</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>                <span class="keywordtype">int</span> nx,</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>                <span class="keywordtype">double</span> x_min, <span class="keywordtype">double</span> x_max,</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>                <span class="keywordtype">bool</span> threshold_to_positive,</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>                <span class="keywordtype">bool</span> *is_bad)</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> {</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>     <span class="keywordtype">double</span> sum = 0;           <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>     <span class="keywordtype">double</span> sum_interval = 0;  <span class="comment">/* The length of the interval defined as the unioun</span></div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> <span class="comment">                 of good pixels */</span></div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>     <span class="keywordtype">int</span> x;</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>     <span class="keywordtype">int</span> first_good = 0;</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> </div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>     *is_bad = <span class="keyword">true</span>;           <span class="comment">/* Until at least one good pixel found */</span></div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>     </div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>     <span class="keywordflow">for</span> (x  = uves_min_int(nx, uves_max_int(1, uves_round_double(x_min)));</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>      <span class="comment">/* The thresholding is necessary, or nx+0.5 would be rounded to nx+1</span></div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> <span class="comment">        which would cause a memory error */</span></div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>      x <= uves_min_int(nx, uves_max_int(1, uves_round_double(x_max)));</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>      x++)</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>     {  </div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> </div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>         <span class="keywordflow">if</span> (spectrum_bad[(x-1) + (spectrum_row-1)*nx] == CPL_BINARY_0)</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>         <span class="comment">/* If good pixel */</span></div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>         {</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>             <span class="keywordtype">double</span> flux;             <span class="comment">/* "Raw" flux of current bin */</span></div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>             <span class="keywordtype">double</span> interval_length;</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>             <span class="keywordtype">double</span> current_term;     <span class="comment">/* Integral over current pixel */</span></div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>            </div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>             <span class="comment">/* Use a piecewise linear profile like this</span></div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> <span class="comment">             *   </span></div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> <span class="comment">             *                   C</span></div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> <span class="comment">             *  interpolant  => / \</span></div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> <span class="comment">             *              ---/---\-- <= "raw" flux</span></div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> <span class="comment">             *              | /     \|</span></div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> <span class="comment">             *              |/       B</span></div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span> <span class="comment">             *              A        |________ <= non-continous interpolation</span></div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> <span class="comment">             *             /|     </span></div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> <span class="comment">             *    __________|        </span></div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span> <span class="comment">             * The flux levels A and B are midway between the current</span></div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> <span class="comment">             * pixel flux and its neighbours' levels.</span></div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> <span class="comment">             * C is chosen so that the integrated flux over the current </span></div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> <span class="comment">             * pixel equals the observed flux.</span></div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> <span class="comment">             * This interpolant is continous as well as flux conserving.</span></div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>             </div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>             <span class="keywordtype">int</span> x_prev = x-1;</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>             <span class="keywordtype">int</span> x_next = x+1;</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>             <span class="keywordtype">bool</span> pis_rejected_prev = (x_prev < 1 ) || </div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>             (spectrum_bad[(x_prev-1) + (spectrum_row-1)*nx] == CPL_BINARY_1);</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>             <span class="keywordtype">bool</span> pis_rejected_next = (nx < x_next) || </div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>             (spectrum_bad[(x_next-1) + (spectrum_row-1)*nx] == CPL_BINARY_1);</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> </div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>             <span class="keywordflow">if</span> (spectrum_data_double != NULL) {</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>                 flux = spectrum_data_double[(x-1) + (spectrum_row-1)*nx];</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>             }</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (spectrum_data_float != NULL) {</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>                 flux = spectrum_data_float [(x-1) + (spectrum_row-1)*nx];</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>             } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>                 flux = spectrum_data_int [(x-1) + (spectrum_row-1)*nx];</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>         }</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>             </div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>             <span class="keywordflow">if</span> (!pis_rejected_prev && !pis_rejected_next)</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>             {</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>                 <span class="comment">/* Define flux at pixel borders (A and B) as </span></div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> <span class="comment">                   mean value of this and neighbouring pixel */</span></div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>                 <span class="comment">/* CHANGED in case of noise divide by 4 instead of 2 </span></div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> <span class="comment">                   (input is to be variance) */</span></div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>                 <span class="keywordtype">double</span> flux_minus, flux_plus;</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>                 <span class="keywordflow">if</span> (spectrum_data_double != NULL) {</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>                     flux_minus =</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>                         (flux + spectrum_data_double[(x_prev-1) + (spectrum_row-1)*nx])</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>                         / 4.0;</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>                     flux_plus =</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>                         (flux + spectrum_data_double[(x_next-1) + (spectrum_row-1)*nx])</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>                         / 4.0;</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>                 }</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (spectrum_data_float != NULL) { </div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>                     flux_minus =</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>                         (flux + spectrum_data_float[(x_prev-1) + (spectrum_row-1)*nx])</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>                         / 4.0;</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>                     flux_plus =</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>                         (flux + spectrum_data_float[(x_next-1) + (spectrum_row-1)*nx])</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>                         / 4.0;</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>                 } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>                     flux_minus =</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>                         (flux + spectrum_data_int[(x_prev-1) + (spectrum_row-1)*nx])</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>                         / 4.0;</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>                     flux_plus =</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>                         (flux + spectrum_data_int[(x_next-1) + (spectrum_row-1)*nx])</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>                         / 4.0;</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>         }</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>                 </div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>                 <span class="comment">/* Define flux at pixel center, fluxc, so that the average flux is</span></div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span> <span class="comment">                 * equal to the "raw" flux:</span></div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span> <span class="comment">                 *</span></div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span> <span class="comment">                 * ((flux- + fluxc)/2 + (flux+ + fluxc)/2) / 2 = flux</span></div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> <span class="comment">                 * =>  flux- + flux+ + 2fluxc = 4flux</span></div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span> <span class="comment">                 * =>  fluxc = ...</span></div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span> <span class="comment">                 */</span></div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>                 {</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>                     <span class="keywordtype">double</span> flux_center = 4*flux - (flux_minus + flux_plus) / 4.0;</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>                     <span class="comment">/* CHANGED:   4*flux + (flux_minus + flux_plus) / 4.0 */</span></div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> </div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>                     <span class="comment">/* Line slopes */</span></div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>                     <span class="keywordtype">double</span> slope_minus = 4.0 * (flux_center + flux_minus );</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>                     <span class="keywordtype">double</span> slope_plus  = 4.0 * (flux_plus   + flux_center);</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>                     <span class="comment">/* CHANGED for variance: </span></div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span> <span class="comment">                              (flux_center + flux_minus )/ 0.25;</span></div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> <span class="comment">                              (flux_plus   + flux_center) / 0.25;</span></div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>                     <span class="comment">/*  Define overlap between [x_min; x_max] and</span></div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span> <span class="comment">                        interval between A-C:  [x-0.5; x]) */</span></div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>                     <span class="keywordtype">double</span> lo1 = uves_max_double(x-0.5, uves_min_double(x, x_min));</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>                     <span class="keywordtype">double</span> hi1 = uves_max_double(x-0.5, uves_min_double(x, x_max));</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>                     <span class="keywordtype">double</span> dy1 = hi1-lo1;</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>                     </div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>                     <span class="comment">/*  Define overlap between [x_min; x_max] and</span></div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> <span class="comment">                        interval between C-B:  [x; x+0.5]) */</span></div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>                     <span class="keywordtype">double</span> lo2 = uves_max_double(x, uves_min_double(x+0.5, x_min));</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>                     <span class="keywordtype">double</span> hi2 = uves_max_double(x, uves_min_double(x+0.5, x_max));</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>                     <span class="keywordtype">double</span> dy2 = hi2-lo2;</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>                     </div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>                     <span class="comment">/* Integrate interpolant over A-C and C-B */</span></div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>                     <span class="comment">/* A-C: interpolant(x) = flux_center + slope_minus *(x-x)</span></div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span> <span class="comment">                       C-B: interpolant(x) = flux_center + slope_plus  *(x-x)</span></div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>                 </div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span> </div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> </div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>                     current_term =</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>                         dy1*dy1 * (flux_center + slope_minus * </div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>                                   ((lo1+hi1)/2.0 - x) * ((lo1+hi1)/2.0 - x)   )</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>                         +</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>                         dy2*dy2 * (flux_center + slope_plus  * </div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>                                  ((lo2+hi2)/2.0 - x)  * ((lo2+hi2)/2.0 - x)  );</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>                     <span class="comment">/* CHANGED</span></div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span> <span class="comment">                   current_term =</span></div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> <span class="comment">                        (dy1)^2 * (flux_center + slope_minus * ((lo1+hi1)/2.0 - x)^2)</span></div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span> <span class="comment">                        +</span></div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> <span class="comment">                        (dy2)^2 * (flux_center + slope_plus  * ((lo2+hi2)/2.0 - x)^2);</span></div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> <span class="comment"></span></div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>                     interval_length = dy1 + dy2;</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>                 }</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>                 </div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>             }<span class="comment">/* Neighbours are good */</span></div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>             {</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>                 interval_length = </div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>                 uves_min_double(x_max, x+0.5) -</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>                 uves_max_double(x_min, x-0.5);</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> </div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>                 current_term = interval_length * interval_length * flux;</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>                 <span class="comment">/* CHANGED </span></div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> <span class="comment">                current_term = (interval_length)^2 * flux;</span></div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>             }</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>             </div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>             <span class="keywordflow">if</span> (*is_bad) {</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>                 first_good = x;</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>             }</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>             *is_bad = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>             </div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>             sum += current_term;</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>             sum_interval += interval_length; </div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>         }</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>     }</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>     </div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>     <span class="keywordflow">if</span> (sum_interval == 0)</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>     {</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>         *is_bad = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>     }</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>     {</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>         <span class="comment">/* In case of bad pixels, rescale sum to full interval</span></div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span> <span class="comment">           (If there are only good pixels then sum_interval == x_max-x_min)</span></div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>             <span class="keywordtype">double</span> result =  sum*(x_max-x_min)/sum_interval*</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>                                  (x_max-x_min)/sum_interval;</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>             <span class="comment">/* CHANGED</span></div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> <span class="comment">            double result =  sum*[(x_max-x_min)/sum_interval]^2;</span></div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>             <span class="keywordflow">if</span> (threshold_to_positive) {</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>                 <span class="keywordflow">if</span> (result == 0) {</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>                     <span class="comment">/* give up */</span></div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>                     *is_bad = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>                     <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>                 }</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>                     result = fabs(result);</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>                 }</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>             }</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>             <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>     }</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span> }</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> </div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span> </div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__rebin_8h_source.html b/html/uves__rebin_8h_source.html
deleted file mode 100644
index e969235..0000000
--- a/html/uves__rebin_8h_source.html
+++ /dev/null
@@ -1,135 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_rebin.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_rebin.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-11-09 17:21:57 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.11 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.10  2010/09/24 09:32:07  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.8  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.7  2007/05/22 11:38:18  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Removed MIDAS flag for good</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.6  2007/05/07 10:18:25  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added option to enforce positive resulting values (useful for error bars)</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.5  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.4  2006/04/06 08:39:36  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added void to function prototype</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.3  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.2  2005/11/24 11:54:46  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added support for CPL 3 interface</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.1  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#ifndef UVES_REBIN_H</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_REBIN_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> cpl_parameterlist *<a class="code" href="group__uves__rebin.html#gad96c455875e2415225b27a3280516c0c" title="Define recipe parameters used for rebinning.">uves_rebin_define_parameters</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> cpl_image *</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <a class="code" href="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c" title="Rebin a spectrum.">uves_rebin</a>(<span class="keyword">const</span> cpl_image *spectrum,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>        <span class="keyword">const</span> cpl_parameterlist *parameters, <span class="keyword">const</span> <span class="keywordtype">char</span> *context,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>        <span class="keyword">const</span> cpl_table *linetable, <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation, </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>        <span class="keywordtype">int</span> first_abs_order, <span class="keywordtype">int</span> last_abs_order,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>        <span class="keywordtype">int</span> n_traces,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>            <span class="keywordtype">bool</span> threshold_to_positive,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>            <span class="keywordtype">bool</span> is_noise,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>        <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **rebinned_header);</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__recipe_8c_source.html b/html/uves__recipe_8c_source.html
deleted file mode 100644
index 75fd8cc..0000000
--- a/html/uves__recipe_8c_source.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_recipe.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_recipe.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.7  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> {</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     {</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"I am recipe version %d, but I am linking "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     }</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordflow">return</span> recipe_get_info(list);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__recipe_8h_source.html b/html/uves__recipe_8h_source.html
deleted file mode 100644
index 9f5f960..0000000
--- a/html/uves__recipe_8h_source.html
+++ /dev/null
@@ -1,190 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_recipe.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_recipe.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.15 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.13  2008/03/28 08:56:19  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * IRPLIB_RECIPE_DEFINE-->UVES_IRPLIB_RECIPE_DEFINE IRPLIB_CONCAT2X UVES_CONCAT2X irplib_plugin-->uves_plugin</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.12  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.11  2007/02/09 15:10:42  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Show recipe name correctly</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.10  2007/02/09 13:40:11  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added year 2007</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.9  2007/01/10 12:39:44  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Replace UVES_TFLAT_ID with recipe name parameter</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.8  2006/11/16 14:10:49  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Fixed usage of recipe name string in error message</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.7  2006/11/15 15:02:15  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.5  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Revision 1.4  2006/10/24 14:01:21  jmlarsen</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> * include uves_msg.h</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Revision 1.3  2006/10/17 12:33:08  jmlarsen</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> * Added semicolon at UVES_RECIPE_DEFINE invocation</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Revision 1.2  2006/10/10 14:43:48  jmlarsen</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> * Add semicolon at invocation of IRPLIB_RECIPE_DEFINE</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Revision 1.1  2006/10/09 13:01:33  jmlarsen</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> * Use macro to define recipe interface functions</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Revision 1.3  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#ifndef UVES_RECIPE_H</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_RECIPE_H</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor">#include <uves_plugin.h></span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor">#define UVES_RECIPE_DEFINE(NAME, MSG_DOMAIN, FILL_PARAMS_FUNC,                 \</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor">               AUTHOR, AUTHOR_EMAIL,                               \</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="preprocessor">               SYNOPSIS, DESCRIPTION)                              \</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor">     UVES_IRPLIB_RECIPE_DEFINE(NAME, UVES_BINARY_VERSION,                           \</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor">     FILL_PARAMS_FUNC(recipe->parameters),                                     \</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor">     AUTHOR, AUTHOR_EMAIL, "2004, 2005, 2006, 2007", SYNOPSIS, DESCRIPTION);   \</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor">static void UVES_CONCAT2X(NAME,exe)(cpl_frameset *,                          \</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor">                     const cpl_parameterlist *,                \</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor">                                     const char *starttime);                   \</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="preprocessor"></span><span class="comment">/* This is the UVES pipeline specific (but common to all recipes)              \</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">   code to run before/after executing each recipe. It calls the function       \</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">   uves_rrrecipe_exe(frames, parameters, starttime) declared above. */</span><span class="preprocessor">         \</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="preprocessor">static int NAME(cpl_frameset *frames,                                          \</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor">        const cpl_parameterlist *parameters)                           \</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor">{                                                                              \</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor">    char *starttime = NULL;                                                    \</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor">    </span><span class="comment">/* Error handling (irplib) was already initialized */</span><span class="preprocessor">                      \</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">    </span><span class="comment">/* Initialize messaging */</span><span class="preprocessor">                                                 \</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor">    uves_msg_init(-1, MSG_DOMAIN);        </span><span class="comment">/* -1 = max level */</span><span class="preprocessor">                 \</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor">    </span><span class="comment">/* Initialize recipe */</span><span class="preprocessor">                                                    \</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="preprocessor">    check( (uves_msg_louder(),                                                 \</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor">            starttime = uves_initialize(frames, parameters, make_str(NAME),    \</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor">                       SYNOPSIS),                              \</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor">            uves_msg_softer()),                                                \</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor">       "Initialization failed");                                           \</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="preprocessor">    </span><span class="comment">/* Recipe specific actions */</span><span class="preprocessor">                                              \</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="preprocessor">    check( (uves_msg_louder(),                                                 \</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="preprocessor">            UVES_CONCAT2X(NAME,exe)(frames, parameters, starttime),          \</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="preprocessor">            uves_msg_softer()),                                                \</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="preprocessor">        MSG_DOMAIN " execution failed");                                   \</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="preprocessor">    </span><span class="comment">/* Terminate recipe */</span><span class="preprocessor">                                                     \</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="preprocessor">    check( uves_end(make_str(NAME), frames), "Termination failed");            \</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="preprocessor">                                                                               \</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="preprocessor">  cleanup:                                                                     \</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="preprocessor">    cpl_free(starttime);                                                       \</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="preprocessor">                                           \</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="preprocessor">    return (cpl_error_get_code() == CPL_ERROR_NONE) ? 0 : 1;                   \</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="preprocessor">}                                                                              \</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="preprocessor">  </span><span class="comment">/* This dummy declaration requires the macro to be invoked as if it was      \</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment">     a kind of function declaration, with a terminating ; */</span><span class="preprocessor">                   \</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="preprocessor">extern int uves_recipe_end</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__redchain_8c_source.html b/html/uves__redchain_8c_source.html
deleted file mode 100644
index 778cea9..0000000
--- a/html/uves__redchain_8c_source.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_redchain.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_redchain.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.24 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.23  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> {</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     {</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"I am uves_redchain version %d, but I am linking "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     }</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordflow">return</span> uves_redchain_get_info(list);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__redchain__impl_8c_source.html b/html/uves__redchain__impl_8c_source.html
deleted file mode 100644
index 3d30d0e..0000000
--- a/html/uves__redchain__impl_8c_source.html
+++ /dev/null
@@ -1,1202 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_redchain_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_redchain_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.47 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.45  2010/06/09 07:17:14  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * renamed parameter definition function used by response step in redchain recipe to make them more explicit</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.44  2010/06/08 16:30:18  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Fixed problems in parameter definition for reduction chain recipe</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.43  2010/04/28 08:48:23  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * use uves_define_efficiency_parameters()</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.42  2008/09/29 06:59:16  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.41  2008/03/28 08:54:27  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * IRPLIB_CONCAT2X-->UVES_CONCAT2X</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.40  2008/02/15 12:43:49  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * allow lower/upper chip for parameter process_chip</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.39  2007/11/13 16:19:55  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * adding DATAMD5 to calib products</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.38  2007/10/05 16:01:45  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * using proces_chip parameter to process or not a given RED chip</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.37  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.36  2007/06/28 09:19:24  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Do not compute master dark if provided</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.35  2007/06/11 13:28:26  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Changed recipe contact address to cpl at eso.org</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.34  2007/06/08 13:06:16  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Send bug reports to Andrea</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.33  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.32  2007/05/22 09:11:06  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Reverse logic bugfix</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.31  2007/05/22 08:13:19  amodigli</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * allow to process only blu or red data</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.30  2007/05/14 08:09:48  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * updated input frames and tag description in recipe man page</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.29  2007/05/03 16:03:58  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * uves_obs_redchain: Implemented option to skip final science reduction</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.28  2007/02/09 13:40:26  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Use defines for recipe id</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.27  2007/02/09 08:58:51  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Use define's rather than hard-coded recipe names</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.26  2006/11/24 16:21:39  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Added FIB_LINE_TABLE_x</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.25  2006/11/15 15:02:15  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.23  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.22  2006/11/13 12:47:08  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Changed syntax of UVES_ARC_LAMP to support FLAMES</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Revision 1.21  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Revision 1.20  2006/10/24 14:06:27  jmlarsen</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> * Added flames=false where relevant</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Revision 1.19  2006/10/19 13:53:25  jmlarsen</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> * Changed guess line table tag to LINE_GUESS_TAB</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Revision 1.18  2006/10/17 12:33:02  jmlarsen</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * Added semicolon at UVES_RECIPE_DEFINE invocation</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Revision 1.17  2006/10/09 13:01:13  jmlarsen</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> * Use macro to define recipe interface functions</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Revision 1.16  2006/10/02 08:37:49  jmlarsen</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> * Added REF_TFLAT</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Revision 1.15  2006/09/27 15:08:45  jmlarsen</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> * Fixed doc. bug</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Revision 1.14  2006/09/14 08:46:51  jmlarsen</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * Added support for TFLAT, SCREEN_FLAT frames</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Revision 1.13  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Revision 1.12  2006/08/16 11:58:02  jmlarsen</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * Fixed trivial but harmful buffer overrun</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Revision 1.11  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Revision 1.10  2006/07/14 12:30:34  jmlarsen</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * Compute PRO CATG depending on DO CATG</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Revision 1.9  2006/07/03 13:27:10  jmlarsen</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> * Minor doc update</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Revision 1.8  2006/07/03 13:16:47  amodigli</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * updated description</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Revision 1.7  2006/06/16 08:25:45  jmlarsen</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Manually propagate ESO.DET. keywords from 1st/2nd input header</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Revision 1.6  2006/06/13 12:00:54  jmlarsen</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * Support ORDER_GUESS_TAB</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Revision 1.5  2006/04/24 09:23:33  jmlarsen</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Recognize PDARK, DFLAT, IFLAT as products</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Revision 1.4  2006/04/06 12:56:50  jmlarsen</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> * Added support for PDARK, IFLAT, DLFAT frames</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Revision 1.3  2006/04/06 11:48:17  jmlarsen</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * Support for SCI_POINT_-, SCI_EXTND_- and SCI_SLICER-frames</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Revision 1.2  2006/04/06 08:47:16  jmlarsen</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Support DFLAT, IFLAT, PDARK</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Revision 1.14  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Revision 1.13  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment">/* Library */</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment">                            Local constants</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> flames = <span class="keyword">false</span>;  <span class="comment">/* This recipe is only for UVES */</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> frame_is_needed(<span class="keywordtype">bool</span> blue, <span class="keyword">const</span> cpl_frame *f);</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="keyword">static</span> cpl_error_code execute_recipe(<span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>                                      cpl_frameset *frames, <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *products[], <span class="keywordtype">int</span> n_products, <span class="keywordtype">bool</span> reclassify);</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> is_missing(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *frame1, <span class="keyword">const</span> <span class="keywordtype">char</span> *frame2);</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="keyword">static</span> <span class="keywordtype">void</span> remove_input_frame(cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *tag);</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="keyword">static</span> <span class="keywordtype">int</span> uves_redchain_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="preprocessor">#define cpl_plugin_get_info uves_redchain_get_info</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     UVES_REDCHAIN_ID, UVES_REDCHAIN_DOM, uves_redchain_define_parameters,</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     <span class="stringliteral">"Jonas M. Larsen"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     <span class="stringliteral">"Runs the full UVES reduction chain"</span>,</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     <span class="stringliteral">"This recipe does a complete science reduction. It runs all necessary\n"</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     <span class="stringliteral">"calibration recipes depending on the availability of raw/processed\n"</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     <span class="stringliteral">"calibration frames.\n"</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     <span class="stringliteral">"Input frames are all UVES raw and reference frames:\n"</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     <span class="stringliteral">"formatchecks, ARC_LAMP_FORM_xxxx, xxxx=BLUE or RED,\n"</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     <span class="stringliteral">"order definition frames, ORDER_FLAT_xxx,\n"</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     <span class="stringliteral">"biases, BIAS_xxx,\n"</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     <span class="stringliteral">"darks, DARK_xxx,\n"</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="stringliteral">"flats, FLAT_xxx,\n"</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     <span class="stringliteral">"arc lamps, ARC_LAMP_xxx,\n"</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     <span class="stringliteral">"standard stars, STANDARD_xxx\n"</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     <span class="stringliteral">"a wavelength catalogue table,LINE_REFER_TABLE, \n"</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     <span class="stringliteral">"and optionally a wavelength table of bright lines,LINE_INTMON_TABLE, \n"</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     <span class="stringliteral">"used only for computing Quality Control parameters.\n"</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <span class="stringliteral">"a reference standard star flux table, FLUX_STD_TABLE, \n"</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="stringliteral">"a table describing the atmospheric extintion,EXTCOEFF_TABLE.\n"</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <span class="stringliteral">"optionally, science frames, SCIENCE_xxx, or UVES_SCI_POINT_xxx, \n"</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <span class="stringliteral">"or UVES_SCI_EXTND_xxx, or UVES_SCI_SLICER_xxx.\n"</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <span class="stringliteral">"For further details on the data reduction and the input frame types\n"</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="stringliteral">"refer to the man page of the individual recipes.\n"</span>);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment">                              Functions code</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> uves_redchain_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> {</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id = make_str(UVES_REDCHAIN_ID);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext = NULL;</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>    </div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     uves_par_new_value(<span class="stringliteral">"scired"</span>,</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                        CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                        <span class="stringliteral">"Whether or not to do science reduction. "</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                        <span class="stringliteral">"If false, only master calibration frames "</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>                        <span class="stringliteral">"are created. If false, either zero or all "</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>                        <span class="stringliteral">"necessary calibration frames must be provided "</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>                        <span class="stringliteral">"for each arm"</span>,</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                        <span class="keyword">true</span>);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment">     *    General    *</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     <span class="keywordflow">if</span> (uves_define_global_parameters(parameters) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>         {</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>         }</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     <span class="comment">/******************</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment">     *   Master bias  *</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     <span class="keywordflow">if</span> (uves_propagate_parameters(</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>             make_str(UVES_MBIAS_ID), parameters, make_str(UVES_REDCHAIN_ID), NULL) != 0)</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>         {</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>         }</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     <span class="comment">/******************</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment">     *   Master dark  *</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <span class="keywordflow">if</span> (uves_propagate_parameters(</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>             make_str(UVES_MDARK_ID), parameters, make_str(UVES_REDCHAIN_ID), NULL) != 0)</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>         {</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>         }</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <span class="comment">/******************</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="comment">     * Physical model *</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="keywordflow">if</span> (uves_propagate_parameters(</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>             make_str(UVES_PHYSMOD_ID), parameters, make_str(UVES_REDCHAIN_ID), NULL) != 0)</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>         {</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>         }</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <span class="comment">/******************</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="comment">     * Order position *</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     <span class="keywordflow">if</span> (uves_propagate_parameters(</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>             make_str(UVES_ORDERPOS_ID), parameters, make_str(UVES_REDCHAIN_ID), NULL) != 0)</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>         {</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>         }</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     <span class="comment">/******************</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="comment">     *   Master flat  *</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     <span class="keywordflow">if</span> (uves_propagate_parameters(</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>             make_str(UVES_MFLAT_ID), parameters, make_str(UVES_REDCHAIN_ID), NULL) != 0)</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>         {</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>         }</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <span class="comment">/******************</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment">     *   Wave.cal.    *</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     <span class="keywordflow">if</span> (uves_propagate_parameters(</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>             make_str(UVES_WAVECAL_ID), parameters, make_str(UVES_REDCHAIN_ID), NULL) != 0)</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>         {</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>         }</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     <span class="comment">/******************</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment">     *    Response    *</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment">    if (uves_propagate_parameters(</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment">             make_str(UVES_RESPONSE_ID), parameters, make_str(UVES_REDCHAIN_ID), NULL) != 0)</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="comment">    {</span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="comment">             return -1;</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="comment">    }</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     uves_define_background_for_response_chain_parameters(parameters);</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     uves_define_extract_for_response_chain_parameters(parameters);</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     uves_define_reduce_for_response_chain_parameters(parameters);</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     uves_define_rebin_for_response_chain_parameters(parameters);</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     uves_define_efficiency_for_response_chain_parameters(parameters);</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>   </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     <span class="comment">/******************</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> <span class="comment">     *    Scired      *</span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     <span class="keywordflow">if</span> (uves_propagate_parameters(</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>             make_str(UVES_SCIRED_ID), parameters, make_str(UVES_REDCHAIN_ID), NULL) != 0)</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>         {</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>         }</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> }</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> UVES_CONCAT2X(UVES_REDCHAIN_ID,exe)(cpl_frameset *frames,</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>                       <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> {</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     cpl_frameset *blue_frames = NULL;</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     cpl_frameset *red_frames = NULL;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     cpl_frameset *common_frames = NULL;</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>  </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     <span class="keywordtype">bool</span> blue;</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     <span class="keywordtype">bool</span> do_science;</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>     <span class="keywordtype">bool</span> run_mbias[2];     <span class="comment">/* index 0 (==false): red  arm */</span></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     <span class="keywordtype">bool</span> run_mdark[2];     <span class="comment">/* index 1 (==true ): blue arm  */</span></div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     <span class="keywordtype">bool</span> run_mflat[2];</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     <span class="keywordtype">bool</span> run_physmod[2];</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     <span class="keywordtype">bool</span> run_orderpos[2];</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     <span class="keywordtype">bool</span> run_wavecal[2];</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>     <span class="keywordtype">bool</span> run_response[2];</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="keywordtype">bool</span> run_scired[2];</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     <span class="keywordtype">bool</span> nraw_arm[2];      <span class="comment">/* Do we have frames used exclusively</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> <span class="comment">                              for this arm? */</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>     <span class="comment">/* Exceptionally, this parameter is not used because this</span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> <span class="comment">       recipe does not create any products on its own. Suppress</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="comment">       warning about unused variable */</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>     starttime = starttime;</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, make_str(UVES_REDCHAIN_ID), <span class="stringliteral">"scired"</span>, </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>                               CPL_TYPE_BOOL, &do_science), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     <span class="comment">/* Check for at least one science frame */</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     assure(!do_science ||</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>            cpl_frameset_find(frames, UVES_SCIENCE(<span class="keyword">true</span> ))    != NULL ||</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>            cpl_frameset_find(frames, UVES_SCIENCE(<span class="keyword">false</span>))    != NULL ||</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>            cpl_frameset_find(frames, UVES_SCI_EXTND(<span class="keyword">true</span> ))  != NULL ||</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>            cpl_frameset_find(frames, UVES_SCI_EXTND(<span class="keyword">false</span>))  != NULL ||</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>            cpl_frameset_find(frames, UVES_SCI_POINT(<span class="keyword">true</span> ))  != NULL ||</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>            cpl_frameset_find(frames, UVES_SCI_POINT(<span class="keyword">false</span>))  != NULL ||</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>            cpl_frameset_find(frames, UVES_SCI_SLICER(<span class="keyword">true</span> )) != NULL ||</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>            cpl_frameset_find(frames, UVES_SCI_SLICER(<span class="keyword">false</span>)) != NULL,</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>            CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"No %s, %s, %s, %s, %s, %s, %s or %s in frame set"</span>, </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>            UVES_SCIENCE(<span class="keyword">true</span>),</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>            UVES_SCIENCE(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>            UVES_SCI_EXTND(<span class="keyword">true</span>),</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>            UVES_SCI_EXTND(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>            UVES_SCI_POINT(<span class="keyword">true</span>),</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>            UVES_SCI_POINT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>            UVES_SCI_SLICER(<span class="keyword">true</span>),</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>            UVES_SCI_SLICER(<span class="keyword">false</span>));</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>         </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     blue_frames = cpl_frameset_new();</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     red_frames = cpl_frameset_new();</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     common_frames = cpl_frameset_new();</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"process_chip"</span>, CPL_TYPE_STRING, &PROCESS_CHIP),</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     <span class="comment">/* Split in blue/red frames */</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     {</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>         cpl_frame *f = NULL;</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> </div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>         <span class="keywordflow">for</span> (f = cpl_frameset_get_first(frames);</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>              f != NULL;</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>              f = cpl_frameset_get_next(frames))</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>             {</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>                 <span class="keywordflow">if</span> (frame_is_needed(<span class="keyword">true</span>, f))    <span class="comment">/* Used in blue arm? */</span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>                     {</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>                         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Found blue frame: '%s'"</span>, cpl_frame_get_tag(f));</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>                         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_frameset_insert(blue_frames, cpl_frame_duplicate(f)),</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                                <span class="stringliteral">"Error extracting frame '%s' from frame set"</span>,</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                                cpl_frame_get_tag(f));</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>                     }</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                 <span class="keywordflow">if</span> (frame_is_needed(<span class="keyword">false</span>, f))  <span class="comment">/* Used in red arm? */</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                     {</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Found red frame: '%s'"</span>, cpl_frame_get_tag(f));</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>                         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_frameset_insert(red_frames, cpl_frame_duplicate(f)),</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>                                <span class="stringliteral">"Error extracting frame '%s' from frame set"</span>,</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>                                cpl_frame_get_tag(f));</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>                     }</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>                 <span class="keywordflow">if</span> (frame_is_needed(<span class="keyword">true</span>, f) && </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>                     frame_is_needed(<span class="keyword">false</span>, f))  <span class="comment">/* Used in both arms? */</span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                     {</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>                         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Found common frame: '%s'"</span>, cpl_frame_get_tag(f));</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_frameset_insert(common_frames, cpl_frame_duplicate(f)),</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                                <span class="stringliteral">"Error extracting frame '%s' from frame set"</span>,</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>                                cpl_frame_get_tag(f));</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                     }</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>             }</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>         <span class="comment">/* Remove all frames from input frame set */</span></div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>         <span class="keywordflow">while</span> ((f = cpl_frameset_get_first(frames)) != NULL)</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>             {</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>                 cpl_frameset_erase_frame(frames, f);</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>             }</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     }</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     <span class="comment">/* Algorithm:</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="comment">       (with purpose of failing early if we have to fail.)</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> <span class="comment"></span></div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> <span class="comment">       1) Find out which recipes to run</span></div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> <span class="comment">       2) Check for necessary input frames</span></div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> <span class="comment">       3) Execute</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     blue = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>         <span class="keyword">enum</span> uves_chip chip1 = (blue) ? UVES_CHIP_BLUE : UVES_CHIP_REDL;</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>         <span class="keyword">enum</span> uves_chip chip2 = (blue) ? UVES_CHIP_BLUE : UVES_CHIP_REDU;</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>         </div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>         cpl_frameset *fms = (blue) ? blue_frames : red_frames;</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>         nraw_arm[blue] = </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>             cpl_frameset_get_size(fms) > </div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>             cpl_frameset_get_size(common_frames);</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>         </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"nraw_arm=%d (%s arm)"</span>, nraw_arm[blue], blue ? <span class="stringliteral">"blue"</span> : <span class="stringliteral">"red"</span>);</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>         </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>         run_scired[blue] = do_science &&</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>             !(is_missing(fms, UVES_SCIENCE(blue), NULL) &&</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>               is_missing(fms, UVES_SCI_EXTND(blue), NULL) &&</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>               is_missing(fms, UVES_SCI_POINT(blue), NULL) &&</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>               is_missing(fms, UVES_SCI_SLICER(blue), NULL));</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>         </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>         <span class="comment">/* If calibrations must be produced for this arm */</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>         <span class="keywordflow">if</span> (run_scired[blue]</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>             ||</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>             (!do_science && nraw_arm[blue])) {</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>             </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>             <span class="comment">/* Require master bias */</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>             run_mbias[blue] = is_missing(fms, </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>                                          UVES_MASTER_BIAS(chip1),</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>                                          UVES_MASTER_BIAS(chip2)</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>                 );</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>             </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>             <span class="comment">/* Run master dark, only if raw frames are available */</span> </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>             run_mdark[blue] = </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>                 is_missing(fms,</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>                            UVES_MASTER_DARK(chip1),</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                            UVES_MASTER_DARK(chip2)) </div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                 &&</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>                 is_missing(fms,</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>                            UVES_MASTER_PDARK(chip1),</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>                            UVES_MASTER_PDARK(chip2))</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>                 &&(</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>                     !is_missing(fms, UVES_DARK(blue), NULL) ||</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>                     !is_missing(fms, UVES_PDARK(blue), NULL));</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>             </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>             <span class="comment">/* Run orderpos if either order table is missing, </span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="comment">               or raw frame available */</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>             run_orderpos[blue] = is_missing(fms,</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>                                             UVES_ORDER_TABLE(flames, chip1),</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>                                             UVES_ORDER_TABLE(flames, chip2)</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>                 ) ||</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>                 !is_missing(fms, UVES_ORDER_FLAT(flames, blue), NULL);</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>             </div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>             <span class="comment">/* Run master flat recipe if master flat frame is missing */</span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>             run_mflat[blue] = </div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>                 is_missing(fms,</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>                            UVES_MASTER_FLAT(chip1),</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>                            UVES_MASTER_FLAT(chip2))</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>                 &&</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>                 is_missing(fms,</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>                            UVES_MASTER_DFLAT(chip1),</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>                            UVES_MASTER_DFLAT(chip2))</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>                 &&</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>                 is_missing(fms,</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>                            UVES_MASTER_IFLAT(chip1),</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>                            UVES_MASTER_IFLAT(chip2))</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>                 &&</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>                 is_missing(fms,</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                            UVES_MASTER_SCREEN_FLAT(chip1),</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                            UVES_MASTER_SCREEN_FLAT(chip2))</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                 &&</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                 is_missing(fms,</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                            UVES_REF_TFLAT(chip1),</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>                            UVES_REF_TFLAT(chip2));</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>             </div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>             </div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>             <span class="comment">/* Line tables are used as both input and output</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> <span class="comment">               for wavecal recipe. A provided line table is </span></div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> <span class="comment">               interpreted as an input table if an arc lamp </span></div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> <span class="comment">               frame is also available, otherwise as output.</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> <span class="comment">               Line tables produce by the physmod recipe are</span></div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> <span class="comment">               input tables. The logic is</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="comment">               </span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> <span class="comment">               if !linetable</span></div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> <span class="comment">                 physmod=yes</span></div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span> <span class="comment">                 wavecal=yes</span></div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> <span class="comment">               if linetable</span></div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> <span class="comment">                 physmod=no</span></div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> <span class="comment">                 if !arclamp</span></div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> <span class="comment">                   wavecal=no   // line table is final</span></div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span> <span class="comment">                 if arclamp</span></div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> <span class="comment">                   wavecal=yes  // line table is guess</span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>             </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>             <span class="comment">/* Run physical model if there's no</span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="comment">               line table */</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>             run_physmod[blue] = is_missing(fms,</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>                                            UVES_LINE_TABLE(flames, chip1),</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>                                            UVES_LINE_TABLE(flames, chip2))</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>                 &&</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>         is_missing(fms,</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>                UVES_GUESS_LINE_TABLE(flames, chip1),</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>                UVES_GUESS_LINE_TABLE(flames, chip2))</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>                 &&</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>                 (</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>                     is_missing(fms,</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>                                UVES_LINE_TABLE_MIDAS(chip1, 1), </div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>                                UVES_LINE_TABLE_MIDAS(chip2, 1)) ||</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>                     is_missing(fms,</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>                                UVES_LINE_TABLE_MIDAS(chip1, 2),</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>                                UVES_LINE_TABLE_MIDAS(chip2, 2)) ||</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>                     is_missing(fms,</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>                                UVES_LINE_TABLE_MIDAS(chip1, 3),</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>                                UVES_LINE_TABLE_MIDAS(chip2, 3))</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>                     );</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>                     </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>             <span class="comment">/* Run wavecal if no line table,</span></div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> <span class="comment">               or if there's an arc lamp frame</span></div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>             run_wavecal[blue] = </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                 run_physmod[blue]</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                 ||</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>         (</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>             is_missing(fms,</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>                    UVES_LINE_TABLE(flames, chip1),</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>                    UVES_LINE_TABLE(flames, chip2))</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>             &&</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>             (</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>             is_missing(fms,</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                    UVES_LINE_TABLE_MIDAS(chip1, 1), </div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>                    UVES_LINE_TABLE_MIDAS(chip2, 1)) ||</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>             is_missing(fms,</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>                    UVES_LINE_TABLE_MIDAS(chip1, 2),</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>                    UVES_LINE_TABLE_MIDAS(chip2, 2)) ||</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>             is_missing(fms,</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>                    UVES_LINE_TABLE_MIDAS(chip1, 3),</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                    UVES_LINE_TABLE_MIDAS(chip2, 3))</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>             )</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>             )</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>         ||</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>         (</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>             !is_missing(fms,</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>                                 UVES_ARC_LAMP(flames, blue), NULL) ||</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>                     !is_missing(fms,</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>                                 UVES_ECH_ARC_LAMP(blue), NULL)</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>                     );</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>         </div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>             <span class="comment">/* Run response only if there's a standard star.</span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span> <span class="comment">               Otherwise no response correction is done */</span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>             run_response[blue] = !is_missing(fms,</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>                                              UVES_STD_STAR(blue), NULL);</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>                     </div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>                     </div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Reduction strategy for %s arm:"</span>, (blue) ? <span class="stringliteral">"BLUE"</span> : <span class="stringliteral">"RED"</span>);</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Run %-13s: %s"</span>, make_str(UVES_MBIAS_ID)   , (run_mbias[blue]   ) ? <span class="stringliteral">"Yes"</span> : <span class="stringliteral">"No"</span>);</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Run %-13s: %s"</span>, make_str(UVES_MDARK_ID)   , (run_mdark[blue]   ) ? <span class="stringliteral">"Yes"</span> : <span class="stringliteral">"No"</span>);</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Run %-13s: %s"</span>, make_str(UVES_PHYSMOD_ID) , (run_physmod[blue] ) ? <span class="stringliteral">"Yes"</span> : <span class="stringliteral">"No"</span>);</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Run %-13s: %s"</span>, make_str(UVES_ORDERPOS_ID), (run_orderpos[blue]) ? <span class="stringliteral">"Yes"</span> : <span class="stringliteral">"No"</span>);</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Run %-13s: %s"</span>, make_str(UVES_MFLAT_ID)   , (run_mflat[blue]   ) ? <span class="stringliteral">"Yes"</span> : <span class="stringliteral">"No"</span>);</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Run %-13s: %s"</span>, make_str(UVES_WAVECAL_ID) , (run_wavecal[blue] ) ? <span class="stringliteral">"Yes"</span> : <span class="stringliteral">"No"</span>);</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Run %-13s: %s"</span>, make_str(UVES_RESPONSE_ID), (run_response[blue]) ? <span class="stringliteral">"Yes"</span> : <span class="stringliteral">"No"</span>);</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Run %-13s: %s"</span>, make_str(UVES_SCIRED_ID)  , (run_scired[blue]  ) ? <span class="stringliteral">"Yes"</span> : <span class="stringliteral">"No"</span>);</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>     </div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>         }  <span class="comment">/* if reduce this arm */</span></div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping %s arm"</span>, </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>                      (blue) ? <span class="stringliteral">"BLUE"</span> : <span class="stringliteral">"RED"</span>);</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> </div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>             run_mbias[blue] = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>             run_mdark[blue] = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>             run_mflat[blue] = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>             run_physmod[blue] = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>             run_orderpos[blue] = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>             run_wavecal[blue] = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>             run_response[blue] = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>         }</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>             </div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>         blue = !blue;</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>     }</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>     <span class="keywordflow">while</span> (!blue);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span> </div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>     <span class="comment">/* As a service to the user, assure that required</span></div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> <span class="comment">       raw frames and catalogue calibration frames</span></div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> <span class="comment">       exist *before* doing the reduction */</span></div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     </div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>     blue = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>     <span class="keywordflow">do</span></div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>         {</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>             cpl_frameset *fms = (blue) ? blue_frames : red_frames;</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> </div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>             assure( !run_mbias[blue] || !is_missing(fms, UVES_BIAS(blue), NULL), </div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                     CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>                     <span class="stringliteral">"One or more '%s' frames needed for recipe '%s'"</span>,</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>                     UVES_BIAS(blue), make_str(UVES_MBIAS_ID));</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>             </div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>             assure( !run_mdark[blue] || </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>                     !is_missing(fms, UVES_DARK(blue), NULL) ||</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>                     !is_missing(fms, UVES_PDARK(blue), NULL),</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                     CPL_ERROR_DATA_NOT_FOUND, </div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                     <span class="stringliteral">"One or more '%s' or '%s' frames needed for recipe '%s'"</span>,</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                     UVES_DARK(blue), UVES_PDARK(blue), make_str(UVES_MDARK_ID));</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>             </div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>             assure( !run_physmod[blue] || !is_missing(fms, UVES_FORMATCHECK(flames, blue), NULL),</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>                     CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"Frame '%s' needed for recipe '%s'"</span>,</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>                     UVES_FORMATCHECK(flames, blue), make_str(UVES_PHYSMOD_ID));</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>             </div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>             assure( !run_orderpos[blue] || !is_missing(fms, UVES_ORDER_FLAT(flames, blue), NULL),</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>                     CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"Frame '%s' needed for recipe '%s'"</span>,</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>                     UVES_ORDER_FLAT(flames, blue), make_str(UVES_ORDERPOS_ID));</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>             </div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>             assure( !run_mflat[blue] || </div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>                     !is_missing(fms, UVES_FLAT(blue), NULL) ||</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                     !is_missing(fms, UVES_IFLAT(blue), NULL) ||</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>                     !is_missing(fms, UVES_SCREEN_FLAT(blue), NULL) ||</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>                     !is_missing(fms, UVES_DFLAT(blue), NULL) ||</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>                     !is_missing(fms, UVES_TFLAT(blue), NULL),</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>                     CPL_ERROR_DATA_NOT_FOUND, </div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>                     <span class="stringliteral">"One or more '%s', '%s', '%s', '%s' or '%s' frames needed for recipe '%s'"</span>,</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>                     UVES_FLAT(blue), </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>                     UVES_IFLAT(blue), </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                     UVES_SCREEN_FLAT(blue), </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>                     UVES_DFLAT(blue), </div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>                     UVES_TFLAT(blue), </div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>                     make_str(UVES_MFLAT_ID));</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>             </div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>             assure( !run_wavecal[blue] || (</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>                         !is_missing(fms, UVES_ARC_LAMP(flames, blue), NULL) ||</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>                         !is_missing(fms, UVES_ECH_ARC_LAMP(blue), NULL)),</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>                     CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"Frame '%s' or '%s' needed for recipe '%s'"</span>,</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>                     UVES_ARC_LAMP(flames, blue), UVES_ECH_ARC_LAMP(blue), make_str(UVES_WAVECAL_ID));</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>             assure( !run_wavecal[blue] || !is_missing(fms, UVES_LINE_REFER_TABLE, NULL),</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>                     CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"Frame '%s' needed for recipe '%s'"</span>,</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>                     UVES_LINE_REFER_TABLE, make_str(UVES_WAVECAL_ID));</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>             </div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>             assure( !run_response[blue] || !is_missing(fms, UVES_STD_STAR(blue), NULL), </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>                     CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"Frame '%s' needed for recipe '%s'"</span>,</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>                     UVES_STD_STAR(blue), make_str(UVES_RESPONSE_ID));</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>             assure( !run_response[blue] || !is_missing(fms, UVES_FLUX_STD_TABLE, NULL), </div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>                     CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"Frame '%s' needed for recipe '%s'"</span>,</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>                     UVES_FLUX_STD_TABLE, make_str(UVES_RESPONSE_ID));</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>             assure( !run_response[blue] || !is_missing(fms, UVES_EXTCOEFF_TABLE, NULL), </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>                     CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"Frame '%s' needed for recipe '%s'"</span>,</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>                     UVES_EXTCOEFF_TABLE, make_str(UVES_RESPONSE_ID));</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>             </div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>             blue = !blue;</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>         }</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>     <span class="keywordflow">while</span> (!blue);</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>    </div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>     <span class="comment">/* We now know which recipes to run and</span></div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span> <span class="comment">     * that required input frames exist. Execute</span></div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> <span class="comment">     * chain; re-classify PRODUCT->CALIB under way</span></div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>     </div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>     blue = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>     <span class="keywordflow">do</span></div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>         {</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>             <span class="keyword">enum</span> uves_chip chip1 = (blue) ? UVES_CHIP_BLUE : UVES_CHIP_REDL;</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>             <span class="keyword">enum</span> uves_chip chip2 = (blue) ? UVES_CHIP_BLUE : UVES_CHIP_REDU;</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span> </div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>             cpl_frameset *fms = (blue) ? blue_frames : red_frames;</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> </div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>             <span class="keywordflow">if</span> (run_mbias[blue])</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>                 {</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *products[2];</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>                     </div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>                     <span class="keywordtype">int</span> nprod = <span class="keyword">sizeof</span>(products) / <span class="keyword">sizeof</span> (<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>                     </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>                     products[0] = UVES_MASTER_BIAS(chip1);</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>                     products[1] = UVES_MASTER_BIAS(chip2);</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>                     </div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>                     <span class="keywordflow">if</span> (blue) nprod /= 2;</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>                     </div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( execute_recipe(make_str(UVES_MBIAS_ID), fms, parameters, products, nprod, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>                            <span class="stringliteral">"Recipe execution failed"</span>);</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>                 }</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>             </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_BIAS(blue)), <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>             </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>             <span class="keywordflow">if</span> (run_mdark[blue])</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>                 {</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *products[4];</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>                     </div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>                     <span class="keywordtype">int</span> nprod = <span class="keyword">sizeof</span>(products) / <span class="keyword">sizeof</span> (<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>                     </div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>                     products[0] = UVES_MASTER_DARK(chip1);</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>                     products[1] = UVES_MASTER_PDARK(chip1);</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>                     products[2] = UVES_MASTER_DARK(chip2);</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>                     products[3] = UVES_MASTER_PDARK(chip2);</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>                     </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>                     <span class="keywordflow">if</span> (blue) nprod /= 2;</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( execute_recipe(</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>                                make_str(UVES_MDARK_ID), fms, parameters, products, nprod, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>                            <span class="stringliteral">"Recipe execution failed"</span>);</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>                 }</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>             </div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_DARK(blue)), <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_PDARK(blue)), <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>             </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>             <span class="keywordflow">if</span> (run_physmod[blue])</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>                 {</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *products[4];</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>                     <span class="keywordtype">int</span> nprod = <span class="keyword">sizeof</span>(products) / <span class="keyword">sizeof</span> (<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>                     </div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>                     products[0] = UVES_GUESS_LINE_TABLE (flames, chip1);</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>                     products[1] = UVES_GUESS_ORDER_TABLE(flames, chip1);</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>                     products[2] = UVES_GUESS_LINE_TABLE (flames, chip2);</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>                     products[3] = UVES_GUESS_ORDER_TABLE(flames, chip2);</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>                     </div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>                     <span class="keywordflow">if</span> (blue) nprod /= 2;</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>                     </div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( execute_recipe(</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>                                make_str(UVES_PHYSMOD_ID), </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>                                fms, parameters, products, nprod, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>                            <span class="stringliteral">"Recipe execution failed"</span>);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>                 }</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>             </div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_FORMATCHECK(flames, blue)), </div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>                    <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>             </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>             <span class="keywordflow">if</span> (run_orderpos[blue])</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>                 {</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *products[2];</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>                     <span class="keywordtype">int</span> nprod = <span class="keyword">sizeof</span>(products) / <span class="keyword">sizeof</span> (<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>                     </div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>                     products[0] = UVES_ORDER_TABLE(flames, chip1);</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>                     products[1] = UVES_ORDER_TABLE(flames, chip2);</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>                     </div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>                     <span class="keywordflow">if</span> (blue) nprod /= 2;</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>                             </div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( execute_recipe(</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>                                make_str(UVES_ORDERPOS_ID), </div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>                                fms, parameters, products, nprod, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>                            <span class="stringliteral">"Recipe execution failed"</span>);</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>                 }</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span> </div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_ORDER_FLAT(flames, blue)),</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>                    <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>                     </div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>             <span class="keywordflow">if</span> (run_mflat[blue])</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>                 {</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *products[10];</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>                             </div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>                     <span class="keywordtype">int</span> nprod = <span class="keyword">sizeof</span>(products) / <span class="keyword">sizeof</span> (<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> </div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>                     products[0] = UVES_MASTER_FLAT(chip1);</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>                     products[1] = UVES_MASTER_DFLAT(chip1);</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>                     products[2] = UVES_MASTER_IFLAT(chip1);</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>                     products[3] = UVES_MASTER_TFLAT(chip1);</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>                     products[4] = UVES_MASTER_SCREEN_FLAT(chip1);</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>                     products[5] = UVES_MASTER_FLAT(chip2);</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>                     products[6] = UVES_MASTER_DFLAT(chip2);</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>                     products[7] = UVES_MASTER_IFLAT(chip2);</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>                     products[8] = UVES_MASTER_TFLAT(chip2);</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>                     products[9] = UVES_MASTER_SCREEN_FLAT(chip2);</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>                             </div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>                     <span class="keywordflow">if</span> (blue) nprod /= 2;</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>                             </div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( execute_recipe(make_str(UVES_MFLAT_ID), </div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>                                           fms, parameters, products, nprod, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>                            <span class="stringliteral">"Recipe execution failed"</span>);</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>                 }</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>                     </div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_FLAT(blue)), <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_IFLAT(blue)), <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_DFLAT(blue)), <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_TFLAT(blue)), <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_SCREEN_FLAT(blue)), <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>                     </div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>             <span class="keywordflow">if</span> (run_wavecal[blue])</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>                 {</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *products[2];</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>                             </div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>                     <span class="keywordtype">int</span> nprod = <span class="keyword">sizeof</span>(products) / <span class="keyword">sizeof</span> (<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> </div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>                     products[0] = UVES_LINE_TABLE(flames, chip1);</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>                     products[1] = UVES_LINE_TABLE(flames, chip2);</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>                             </div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>                     <span class="keywordflow">if</span> (blue) nprod /= 2;</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>                     </div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( execute_recipe(make_str(UVES_WAVECAL_ID), </div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>                                           fms, parameters, products, nprod, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>                            <span class="stringliteral">"Recipe execution failed"</span>);</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>                 }</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> </div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_ARC_LAMP(flames, blue)), </div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>            <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_ECH_ARC_LAMP(blue)), </div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>            <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_LINE_REFER_TABLE), </div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>            <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>                     </div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>             <span class="keywordflow">if</span> (run_response[blue])</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>                 {</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *products[2];</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>                             </div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>                     <span class="keywordtype">int</span> nprod = <span class="keyword">sizeof</span>(products) / <span class="keyword">sizeof</span> (<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> </div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>                     products[0] = UVES_INSTR_RESPONSE(chip1);</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>                     products[1] = UVES_INSTR_RESPONSE(chip2);</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>                             </div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>                     <span class="keywordflow">if</span> (blue) nprod /= 2;</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>                             </div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>                      <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( execute_recipe(make_str(UVES_RESPONSE_ID), </div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>                                           fms, parameters, products, nprod, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>                            <span class="stringliteral">"Recipe execution failed"</span>);</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>                 }</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> </div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_STD_STAR(blue)), <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_FLUX_STD_TABLE), <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> </div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>             <span class="keywordflow">if</span> (run_scired[blue])</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>                 {</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *products[2];</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>                             </div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>                     <span class="keywordtype">int</span> nprod = <span class="keyword">sizeof</span>(products) / <span class="keyword">sizeof</span> (<span class="keywordtype">char</span> *);</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> </div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>                     products[0] = blue ? <span class="stringliteral">"RED_SCIENCE_BLUE"</span> : <span class="stringliteral">"RED_SCIENCE_REDL"</span>;</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>                     products[1] = blue ? <span class="stringliteral">"RED_SCIENCE_BLUE"</span> : <span class="stringliteral">"RED_SCIENCE_REDU"</span>;</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>                             </div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>                     <span class="keywordflow">if</span> (blue) nprod /= 2;</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span> </div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( execute_recipe(make_str(UVES_SCIRED_ID), </div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>                                           fms, parameters, products, nprod, <span class="keyword">false</span>),</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>                            <span class="stringliteral">"Recipe execution failed"</span>);</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>                 }</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>                     </div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_SCIENCE(blue))   , <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_SCI_EXTND(blue)) , <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_SCI_POINT(blue)) , <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( remove_input_frame(fms, UVES_SCI_SLICER(blue)), <span class="stringliteral">"Error removing input frames"</span>);</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>                     </div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>             <span class="comment">/* Insert all product frames into recipe frame set */</span></div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>             {</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>                 cpl_frame *f = NULL;</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>                 </div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>                 <span class="keywordflow">for</span> (f = cpl_frameset_get_first(fms);</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                      f != NULL;</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>                      f = cpl_frameset_get_next(fms))</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>                     {</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>                         <span class="keywordflow">if</span> (cpl_frame_get_group(f) == CPL_FRAME_GROUP_PRODUCT)</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>                             {</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>                                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_frameset_insert(frames, cpl_frame_duplicate(f)),</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>                                        <span class="stringliteral">"Error inserting product '%s' into frame set"</span>,</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>                                        cpl_frame_get_tag(f));</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>                             }</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>                     }</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>             }</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>             </div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>             blue = !blue;</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>         }</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>     <span class="keywordflow">while</span>(!blue);     <span class="comment">/* For each arm */</span></div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>     </div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>   cleanup:</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>     uves_free_frameset(&blue_frames);</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>     uves_free_frameset(&red_frames);</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>     uves_free_frameset(&common_frames);</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> </div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span> }</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> </div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> <span class="comment">/* Returns true, iff frame is used for blue/red arm</span></div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> <span class="comment">   (note that some frames like UVES_FLUX_STD_TABLE are</span></div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> <span class="comment">   used for both arms) */</span></div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span> <span class="keyword">static</span> <span class="keywordtype">bool</span></div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> frame_is_needed(<span class="keywordtype">bool</span> blue, <span class="keyword">const</span> cpl_frame *f)</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span> {</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *tag = cpl_frame_get_tag(f);</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>     </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>     <span class="keywordtype">bool</span> result = (strcmp(tag, UVES_ORDER_FLAT (flames, blue)) == 0 ||</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                    strcmp(tag, UVES_BIAS       (blue)) == 0 ||</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                    strcmp(tag, UVES_DARK       (blue)) == 0 ||</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                    strcmp(tag, UVES_PDARK      (blue)) == 0 ||</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>                    strcmp(tag, UVES_FLAT       (blue)) == 0 ||</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                    strcmp(tag, UVES_IFLAT      (blue)) == 0 ||</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                    strcmp(tag, UVES_DFLAT      (blue)) == 0 ||</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                    strcmp(tag, UVES_TFLAT      (blue)) == 0 ||</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>                    strcmp(tag, UVES_SCREEN_FLAT(blue)) == 0 ||</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>                    strcmp(tag, UVES_STD_STAR   (blue)) == 0 ||</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>                    strcmp(tag, UVES_FORMATCHECK(flames, blue)) == 0 ||</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>                    strcmp(tag, UVES_STD_STAR   (blue)) == 0 ||</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>                    strcmp(tag, UVES_SCIENCE    (blue)) == 0 ||</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>                    strcmp(tag, UVES_SCI_EXTND  (blue)) == 0 ||</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>                    strcmp(tag, UVES_SCI_POINT  (blue)) == 0 ||</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>                    strcmp(tag, UVES_SCI_SLICER (blue)) == 0 ||</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>                    strcmp(tag, UVES_ARC_LAMP   (flames, blue)) == 0 ||</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>                    strcmp(tag, UVES_ECH_ARC_LAMP(blue)) == 0);</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>     </div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>     <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>     </div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>     <span class="comment">/* Loop through all blue or red chips  (1 or 2) */</span></div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>     <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>          chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>         {</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>             result = result || (strcmp(tag, UVES_DRS_SETUP(flames, chip)) == 0 ||</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                                 strcmp(tag, UVES_ORDER_TABLE(flames, chip)) == 0 ||</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>                                 strcmp(tag, UVES_GUESS_ORDER_TABLE(flames, chip)) == 0 ||</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>                                 strcmp(tag, UVES_MASTER_BIAS(chip)) == 0 ||</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>                                 strcmp(tag, UVES_MASTER_DARK(chip)) == 0 ||</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>                                 strcmp(tag, UVES_MASTER_PDARK(chip)) == 0 ||</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>                                 strcmp(tag, UVES_MASTER_FLAT(chip)) == 0 ||</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>                                 strcmp(tag, UVES_MASTER_DFLAT(chip)) == 0 ||</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                                 strcmp(tag, UVES_MASTER_IFLAT(chip)) == 0 ||</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>                                 strcmp(tag, UVES_MASTER_TFLAT(chip)) == 0 ||</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>                                 strcmp(tag, UVES_REF_TFLAT(chip)) == 0 ||</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>                                 strcmp(tag, UVES_MASTER_SCREEN_FLAT(chip)) == 0 ||</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>                                 strcmp(tag, UVES_LINE_TABLE (flames, chip)) == 0 ||</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>                                 strcmp(tag, UVES_GUESS_LINE_TABLE(flames, chip)) == 0 ||</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>                                 strcmp(tag, UVES_LINE_TABLE_MIDAS(chip, 1)) == 0 ||</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>                                 strcmp(tag, UVES_LINE_TABLE_MIDAS(chip, 2)) == 0 ||</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>                                 strcmp(tag, UVES_LINE_TABLE_MIDAS(chip, 3)) == 0 ||</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>                                 strcmp(tag, UVES_LINE_REFER_TABLE ) == 0 ||</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>                                 strcmp(tag, UVES_FLUX_STD_TABLE   ) == 0 ||</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>                                 strcmp(tag, UVES_EXTCOEFF_TABLE   ) == 0);</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>         }</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> }</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> </div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> <span class="comment">/* Execute a recipe and re-classify its products as calibration frames */</span></div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> execute_recipe(<span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, </div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>                cpl_frameset *frames, <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *products[],</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>                <span class="keywordtype">int</span> n_products,</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>                <span class="keywordtype">bool</span> reclassify)              <span class="comment">/* Re-classify products? */</span></div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span> {</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>   <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>   cpl_frame *f = NULL;</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> </div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>   <span class="comment">/* Remove (from frame set) any product</span></div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> <span class="comment">     frames already present */</span></div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>   <span class="keywordflow">for</span> (i = 0; i < n_products; i++)</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>       {</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>           <span class="keywordflow">if</span> ((f = cpl_frameset_find(frames, products[i])) != NULL)</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>               {</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>                   <span class="keywordflow">if</span> (cpl_frame_get_group(f) == CPL_FRAME_GROUP_PRODUCT)</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>                       {</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>                           cpl_msg_warning(__func__, <span class="stringliteral">"Ignoring %s frame in '%s'. "</span></div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>                                           <span class="stringliteral">"A new %s frame will now be calculated"</span>,</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>                                           products[i], cpl_frame_get_filename(f),</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>                                           products[i]);</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>                           </div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>                           cpl_frameset_erase_frame(frames, f);</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>                       }</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>               }</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>       }</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>   </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>   <span class="comment">/* Execute */</span></div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_invoke_recipe(recipe_id, parameters, frames, make_str(UVES_REDCHAIN_ID), NULL),</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>          <span class="stringliteral">"Recipe '%s' failed"</span>, recipe_id);</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>             </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_dfs_update_product_header(frames),<span class="stringliteral">"Error updating pipe products' header"</span>);</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>   <span class="keywordflow">if</span> (reclassify)</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>       {</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>           <span class="comment">/* Now re-classify PRODUCT->CALIB to be used in the remaining</span></div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span> <span class="comment">             reduction chain. Before doing that, we have to remove any</span></div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span> <span class="comment">             calibration frame with same tag as a product (such as line tables),</span></div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span> <span class="comment">             in order not to confuse the re-classified products with the</span></div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> <span class="comment">             previous calibration frames */</span></div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>           </div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>           <span class="keywordflow">for</span> (i = 0; i < n_products; i++)</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>               {</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>                   <span class="keywordflow">if</span> ((f = cpl_frameset_find(frames, products[i])) != NULL &&</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>                       cpl_frame_get_group(f) != CPL_FRAME_GROUP_PRODUCT)</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>                       {</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>                           <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Removing %s frame in '%s' from frameset. "</span></div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                                    <span class="stringliteral">"It is not tagged as a product"</span>,</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>                                    products[i], cpl_frame_get_filename(f));</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>                           </div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>                           cpl_frameset_erase_frame(frames, f);</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                       }</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>               }</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>           </div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>           <span class="comment">/*</span></div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> <span class="comment">           * Re-classify products</span></div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> <span class="comment">           */</span></div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>           <span class="keywordflow">for</span> (i = 0; i < n_products; i++)</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>               {</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>                   cpl_frame *found = NULL;</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>                   <span class="keywordflow">for</span> (f = cpl_frameset_get_first(frames);</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>                        f != NULL;</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>                        f = cpl_frameset_get_next(frames))</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>                       {</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>                           <span class="keywordflow">if</span> (cpl_frame_get_group(f) == CPL_FRAME_GROUP_PRODUCT)</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>                               {</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>                                   <span class="keywordflow">if</span> (strcmp(cpl_frame_get_tag(f), products[i]) == 0)</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>                                       {</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>                                           found = f;</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>                                       }</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>                               }</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>                       }</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>                   </div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>                   <span class="keywordflow">if</span> (found != NULL)</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>                       {</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>                           <span class="comment">/* Re-classify the product as calibration frames */</span></div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>                           <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Re-classifying %s product in '%s' PRODUCT->CALIB"</span>,</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>                                    products[i], cpl_frame_get_filename(found));</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>                           </div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>                           cpl_frame_set_group(found, CPL_FRAME_GROUP_CALIB);</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                       }</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>               }</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>           </div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>           <span class="comment">/*</span></div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> <span class="comment">           * Remove other products that </span></div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> <span class="comment">           * are not used later  (e.g. BKG_FLAT_xxxx)</span></div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> <span class="comment">           */</span></div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>           <span class="keywordflow">for</span> (f = cpl_frameset_get_first(frames);</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>                f != NULL;</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>                f = cpl_frameset_get_next(frames))</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>               {</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>                   <span class="keywordflow">if</span> (cpl_frame_get_group(f) == CPL_FRAME_GROUP_PRODUCT)</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>                       {</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>                           <span class="comment">/* Remove this product */</span></div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>                           <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Removing product %s in '%s' from frameset. "</span></div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>                                    <span class="stringliteral">"Not needed later"</span>,</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>                                    cpl_frame_get_tag(f), cpl_frame_get_filename(f));</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>                           </div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>                           cpl_frameset_erase_frame(frames, f);</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>                           </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>                       }</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>               }  </div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>       } <span class="comment">/* if re-classify... */</span>  </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span> </div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>   cleanup:</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>   <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> }</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>   </div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> </div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span> <span class="comment">/* Retruns true if either frame 1 or frame 2 is not in the</span></div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> <span class="comment">   provided frame set </span></div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span> <span class="comment"></span></div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> <span class="comment">   fixme: reverse the logic of this function, i.e. rename to 'contains'</span></div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> <span class="keyword">static</span> <span class="keywordtype">bool</span></div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> is_missing(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *frame1, <span class="keyword">const</span> <span class="keywordtype">char</span> *frame2)</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> {</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>     <span class="keywordtype">bool</span> result = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>     <span class="keywordflow">if</span> (cpl_frameset_find_const(frames, frame1) == NULL)</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>         {</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"checking for %s... no"</span>, frame1);</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>             result = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>         }</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>         {</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"checking for %s... yes"</span>, frame1);</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>         }</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>     </div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>     <span class="keywordflow">if</span> (frame2 != NULL && strcmp(frame1, frame2) != 0)</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>         {</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>             <span class="keywordflow">if</span> (cpl_frameset_find_const(frames, frame2) == NULL)</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>                 {</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"checking for %s... no"</span>, frame2);</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>                     result = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>                 }</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>                 {</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"checking for %s... yes"</span>, frame2);</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>                 }</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>         }</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>     </div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>   <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> }</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> </div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> </div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> <span class="comment">/* Remove input frames (e.g. bias frames) along the way */</span></div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span> remove_input_frame(cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> *tag)</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span> {</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>     <span class="keywordtype">int</span> removed = cpl_frameset_erase(frames, tag);</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> </div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>     <span class="keywordflow">if</span> (removed > 0)</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>         {</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Removing %d %s frame(s) from frame set"</span>, removed, tag);</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>         }</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> </div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__reduce_8c_source.html b/html/uves__reduce_8c_source.html
deleted file mode 100644
index 6378d63..0000000
--- a/html/uves__reduce_8c_source.html
+++ /dev/null
@@ -1,3218 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_reduce.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_reduce.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.125 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include "uves_reduce.h"</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_extract.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <uves_backsub.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_flatfield.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_rebin.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_merge.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <uves_plot.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment">  -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#define UVES_MIN_LINE_ROWS_TO_MAKE_FIT 5</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_BLAZE_DUMMY_VAL 999.</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor"></span><span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <a class="code" href="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6" title="Reduce one extraction window.">extract_ff_rebin_merge</a>(cpl_image *back_subbed, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>                        cpl_image *backsubbed_noise,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>                <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *backsubbed_header,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>                <span class="keyword">const</span> cpl_image *master_flat, </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>                        cpl_image *mflat_noise,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>                <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>                        <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>                <span class="keyword">const</span> cpl_table *linetable, </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>                        <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *linetable_header[3],</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>                        <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation[3],</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>                <span class="keywordtype">double</span> slit_length, </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>                        <span class="keywordtype">double</span> slit_offset, </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>                        <span class="keywordtype">int</span> window,</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>                <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>                <span class="keywordtype">bool</span> blaze_correct,</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>                        <span class="keywordtype">bool</span> tilt_corr,</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>                        <span class="keywordtype">bool</span> debug_mode,</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>                <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>                        <span class="keyword">const</span> <span class="keywordtype">char</span> *context,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>                        <span class="keyword">const</span> <span class="keywordtype">char</span> *mode,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>                flatfielding_method ff_method,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>                extract_method ee_method,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>                merge_method m_method,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>                <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                cpl_image **x, </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>                        <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **x_header,</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                cpl_image **fx,</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                cpl_table **cosmic_mask,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                cpl_image **wave_map,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                cpl_image **flatfielded_variance,</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **flatfielded_variance_header,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                cpl_image **resampled_spectrum,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>                cpl_image **resampled_mf,</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                cpl_image **merged_sky,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                cpl_image **rebinned_spectrum, </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                        cpl_image **rebinned_noise, </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>                        <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **rebinned_header,</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>                cpl_image **merged_spectrum, </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>                        cpl_image **merged_noise, </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>                        <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **merged_header,</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                        cpl_table** info_tbl,</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>                        cpl_table **order_trace);</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <a class="code" href="group__uves__reduce.html#gad5574e8fead13bd32bd46eb60ca091ac" title="Subtract sky from extracted spectrum.">subtract_sky</a>(cpl_image *rebinned_obj, </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>              cpl_image *rebinned_obj_noise, </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>              <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rebinned_obj_header,</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>          <span class="keyword">const</span> cpl_image *rebinned_sky1, </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>              <span class="keyword">const</span> cpl_image *rebinned_sky1_noise, </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>              <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rebinned_sky1_header,</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>          <span class="keyword">const</span> cpl_image *rebinned_sky2, </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>              <span class="keyword">const</span> cpl_image *rebinned_sky2_noise, </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>              <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rebinned_sky2_header,</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>          cpl_image **merged_obj, </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>              cpl_image **merged_obj_noise, </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>              <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *merged_obj_header,</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>          <span class="keyword">const</span> cpl_image *merged_sky1, </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>              <span class="keyword">const</span> cpl_image *merged_sky1_noise, </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>              <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *merged_sky1_header,</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>          <span class="keyword">const</span> cpl_image *merged_sky2, </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>              <span class="keyword">const</span> cpl_image *merged_sky2_noise, </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>              <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *merged_sky2_header,</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>          <span class="keywordtype">double</span> obj_slit, </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>              <span class="keywordtype">double</span> sky1_slit, </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>              <span class="keywordtype">double</span> sky2_slit);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <a class="code" href="group__uves__reduce.html#ga26fe47b7ce4f084c5833056dcda44fb5" title="Subtract sky from 1 row of spectrum.">subtract_sky_row</a>(cpl_image *obj, </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>                  cpl_image *obj_noise, </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>                  <span class="keywordtype">double</span> obj_start, </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>                  <span class="keywordtype">double</span> obj_end, </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>                  <span class="keywordtype">double</span> obj_slit,</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>          <span class="keyword">const</span> cpl_image *sky1, </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>                  <span class="keyword">const</span> cpl_image *sky1_noise, </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>                  <span class="keywordtype">double</span> sky1_start, </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>                  <span class="keywordtype">double</span> sky1_end, </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>                  <span class="keywordtype">double</span> sky1_slit,</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>          <span class="keyword">const</span> cpl_image *sky2, </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                  <span class="keyword">const</span> cpl_image *sky2_noise, </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>                  <span class="keywordtype">double</span> sky2_start, </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>                  <span class="keywordtype">double</span> sky2_end, </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>                  <span class="keywordtype">double</span> sky2_slit,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>          <span class="keywordtype">int</span> row, </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>                  <span class="keywordtype">double</span> wavestep, </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                  <span class="keywordtype">double</span> *common_start, </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                  <span class="keywordtype">double</span> *common_end);</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__reduce.html#gad6aedc87f04001c793180df5b7edac16" title="Measure object offset w.r.t. slit center.">get_offset</a>(<span class="keyword">const</span> cpl_image *back_subbed, </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>              <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>                          <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>              <span class="keywordtype">double</span> search_range, </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>                          <span class="keywordtype">int</span> nsamples, </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>                          <span class="keywordtype">double</span> *doffset);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <a class="code" href="group__uves__reduce.html#ga14f04fabe88e704a3e9fd81e666ed237" title="Get (normalized) object to flat-field blaze function ratio.">uves_get_blaze_ratio</a>(<span class="keyword">const</span> cpl_image *spectrum,</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>              <span class="keyword">const</span> cpl_image *spectrum_noise);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment">                              Implementation</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment">  -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> cpl_parameterlist *</div>
-<div class="line"><a name="l00187"></a><span class="lineno"><a class="code" href="group__uves__reduce.html#gaf0fe2418683acd1504f0c2c90c9c417a">  187</a></span> <a class="code" href="group__uves__reduce.html#gaf0fe2418683acd1504f0c2c90c9c417a" title="Define recipe parameters used for reducing a frame.">uves_reduce_define_parameters</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> {</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     cpl_parameterlist *parameters = NULL;</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>     cpl_parameter *p = NULL;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     parameters = cpl_parameterlist_new();</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     <span class="comment">/**************</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment">     *  Backsub   *</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment">     **************/</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     {</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>         uves_propagate_parameters_step(UVES_BACKSUB_ID, parameters, </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>                        UVES_REDUCE_ID, NULL);</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     }</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment">     *  Extraction   *</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     {</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>         uves_propagate_parameters_step(UVES_EXTRACT_ID, parameters, </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>                        UVES_REDUCE_ID, NULL);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     }</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     <span class="comment">/******************</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">     *  Slit geometry *</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     {</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>         name = <span class="stringliteral">"slitlength"</span>;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_REDUCE_ID, name);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>         </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>         uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                     CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                     <span class="stringliteral">"Extraction slit length (in pixels). "</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                     <span class="stringliteral">"If negative, the value "</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                     <span class="stringliteral">"inferred from the raw frame header is used"</span>,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                     UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                     -1.0,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                     -2.0, DBL_MAX);</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     }</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     {</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>         name = <span class="stringliteral">"skysub"</span>;</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_REDUCE_ID, name);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>         </div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                      CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>                      <span class="stringliteral">"Do sky-subtraction (only applicable to linear "</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                      <span class="stringliteral">"and average extractions)?"</span>,</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>                      <span class="keyword">true</span>);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>         </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     }</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> </div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     {</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>         name = <span class="stringliteral">"objoffset"</span>;</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_REDUCE_ID, name);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>         </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                      CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                      <span class="stringliteral">"Offset (in pixels) of extraction slit "</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                                      <span class="stringliteral">"with respect to center of order. "</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                                      <span class="stringliteral">"This parameter applies to linear/average/"</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>                                      <span class="stringliteral">"optimal extraction. "</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>                                      <span class="stringliteral">"For linear/average extraction, if the related "</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>                                      <span class="stringliteral">"parameter objslit is negative, the offset is "</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                      <span class="stringliteral">"automatically determined by measuring the "</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>                      <span class="stringliteral">"actual object position. "</span>,</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>                      0.0);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>         </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     }</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>         {</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>             name = <span class="stringliteral">"objslit"</span>;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>             full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_REDUCE_ID, name);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>             </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>             uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                                      CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                                      <span class="stringliteral">"Object window size (in pixels). This must "</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>                                      <span class="stringliteral">"be less than the total slit length. If "</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                                      <span class="stringliteral">"negative, the default value (half of full "</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>                                      <span class="stringliteral">"slit length) is used. The upper and lower "</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>                                      <span class="stringliteral">"sky windows are defined as the part of the "</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>                                      <span class="stringliteral">"full slit (if any) outside the object "</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>                                      <span class="stringliteral">"window. The center of the object window "</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>                                      <span class="stringliteral">"is determined by the offset parameter. "</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>                                      <span class="stringliteral">"This parameter does not apply to optimal "</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>                                      <span class="stringliteral">"extraction."</span>,</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>                                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                                      -1.0,</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>                                      -2.0, DBL_MAX);</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>         </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     }</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> </div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     {</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>         name = <span class="stringliteral">"tiltcorr"</span>;</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_REDUCE_ID, name);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>         </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>         uves_parameter_new_value(p, full_name,</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>                      CPL_TYPE_BOOL,</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>                      <span class="stringliteral">"If enabled (recommended), the provided "</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>                                      <span class="stringliteral">"dispersion solutions "</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>                                      <span class="stringliteral">"obtained at different slit positions are "</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>                                      <span class="stringliteral">"interpolated linearly at the actually "</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>                                      <span class="stringliteral">"measured position of the object/sky. "</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                                      <span class="stringliteral">"Line tilt correction is currently not supported "</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                                      <span class="stringliteral">"for 2d extraction, in which case the "</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                                      <span class="stringliteral">"dispersion solution obtained at the middle of "</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>                                      <span class="stringliteral">"the slit is always used."</span>,</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>                      UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                      <span class="keyword">true</span>);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>         </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     }</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="comment">     *  Flatfielding *</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     {</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>         name = <span class="stringliteral">"ffmethod"</span>;</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_REDUCE_ID, name);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>         </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>         uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>                     CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>                     <span class="stringliteral">"Flat-fielding method. If set to 'pixel', "</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>                     <span class="stringliteral">"flat-fielding is done in pixel-pixel space "</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>                     <span class="stringliteral">"(before extraction); if set to 'extract', "</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>                     <span class="stringliteral">"flat-fielding is performed in pixel-order "</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>                     <span class="stringliteral">"space (i.e. after extraction). If set to "</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>                     <span class="stringliteral">"'no', no flat-field correction is done"</span>,</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>                     UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>                     <span class="stringliteral">"extract"</span>,    <span class="comment">/* 'Pixel' method is usually preferred,</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> <span class="comment">                             but do like UVES/MIDAS */</span></div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>                     3, </div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>                     <span class="stringliteral">"pixel"</span>, <span class="stringliteral">"extract"</span>, <span class="stringliteral">"no"</span>);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>         </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>         cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>         cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>         cpl_free(full_name);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     }</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="comment">     *  Blaze corr.  *</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     {</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="comment">        name = "blazecorr";</span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="comment">        full_name = uves_sprintf("%s.%s", UVES_REDUCE_ID, name);</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="comment">        </span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> <span class="comment">        uves_parameter_new_value(p, full_name,</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="comment">                    CPL_TYPE_BOOL,</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> <span class="comment">                    "(highly experimental, recommended=false) "</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="comment">                    "Apply a correction for the different shapes "</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="comment">                    "of flat-field and science blaze functions? "</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="comment">                    "For this to be possible, flat-fielding method "</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="comment">                    "must be different from 'no'.",</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment">                    UVES_REDUCE_ID,</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="comment">                    false);</span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="comment">        </span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="comment">        cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> <span class="comment">        cpl_parameterlist_append(parameters, p);</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> <span class="comment">        cpl_free(full_name);</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     }</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> <span class="comment">     *  Rebinning    *</span></div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>     {</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>         uves_propagate_parameters_step(UVES_REBIN_ID, parameters, </div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>                        UVES_REDUCE_ID, NULL);</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     }</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> <span class="comment">     *   Merging     *</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     {</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>       name = <span class="stringliteral">"merge"</span>;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_REDUCE_ID, name);</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>         </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>       uves_parameter_new_enum(p, full_name,</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                   CPL_TYPE_STRING,</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>                               <span class="stringliteral">"Order merging method. If 'optimal', the "</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>                               <span class="stringliteral">"flux in the overlapping region is set "</span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>                               <span class="stringliteral">"to the (optimally computed, using the "</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>                               <span class="stringliteral">"uncertainties) average of single order "</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                               <span class="stringliteral">"spectra. If 'sum', the flux in the "</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                               <span class="stringliteral">"overlapping region is computed as the "</span></div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>                               <span class="stringliteral">"sum of the single order spectra. If 'noappend' "</span></div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>                               <span class="stringliteral">"the spectrum is simply rebinned but not merged."</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                               <span class="stringliteral">"If flat-fielding is done, method 'optimal' "</span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                               <span class="stringliteral">"is recommended, otherwise 'sum'."</span>,</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                               UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                               <span class="stringliteral">"optimal"</span>,</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                               3, </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>                   <span class="stringliteral">"optimal"</span>, <span class="stringliteral">"sum"</span>, <span class="stringliteral">"noappend"</span>);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>         </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>       name = <span class="stringliteral">"merge_delt1"</span>;</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_REDUCE_ID, name);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>         </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>       uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>                    CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>                                <span class="stringliteral">"Order merging left hand (short wavelength) "</span></div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>                                <span class="stringliteral">"cut. To reduce the amount of order "</span></div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>                                <span class="stringliteral">"overlapping regions we allow to cut short and "</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>                                <span class="stringliteral">"long wavelength ranges. "</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>                                <span class="stringliteral">"This may reduce the ripple possibly "</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>                                <span class="stringliteral">"introduced by the order merging. "</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>                                <span class="stringliteral">"Suggested values are: "</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>                                <span class="stringliteral">"10 (W<=390), 12 (390<W<=437, 520<W<=564), "</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>                    <span class="stringliteral">"14 (437<W<=520, 564<W) "</span>,</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>                                UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>                                0.,0.,20.);</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>         </div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>       name = <span class="stringliteral">"merge_delt2"</span>;</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>       full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, UVES_REDUCE_ID, name);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>         </div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>       uves_parameter_new_range(p, full_name,</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                    CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                                <span class="stringliteral">"Order merging right hand (long wavelength) "</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>                                <span class="stringliteral">"cut. To reduce the amount of order "</span></div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                                <span class="stringliteral">"overlapping regions we allow to cut short and "</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                                <span class="stringliteral">"long wavelength ranges. "</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                                <span class="stringliteral">"This may reduce the ripple possibly "</span></div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>                                <span class="stringliteral">"introduced by the order merging. "</span></div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>                                <span class="stringliteral">"Suggested values is 4"</span>,</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>                                UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>                                0.,0.,20.);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>         </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>       cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, name);</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>       cpl_parameterlist_append(parameters, p);</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>       cpl_free(full_name);</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     }</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     {</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>         cpl_msg_error(__func__, <span class="stringliteral">"Creation of reduction parameters failed: '%s'"</span>, </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>               cpl_error_get_where());</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>         cpl_parameterlist_delete(parameters);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     }</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> </div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     </div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     <span class="keywordflow">return</span> parameters;</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> }</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> </div>
-<div class="line"><a name="l00574"></a><span class="lineno"><a class="code" href="group__uves__reduce.html#gad5308bc6e13c7e02e134e6f0ce6be722">  574</a></span> cpl_error_code <a class="code" href="group__uves__reduce.html#gad5308bc6e13c7e02e134e6f0ce6be722" title="Reduce a science frame.">uves_reduce</a>(<span class="keyword">const</span> cpl_image *raw_image, </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header, </div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header,</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>                            <span class="keyword">const</span> cpl_image *master_bias,</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>                            <span class="keyword">const</span> cpl_image *master_dark,</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mdark_header, </div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>                            <span class="keyword">const</span> cpl_image *master_flat,</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mflat_header,</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>                            <span class="keyword">const</span> cpl_table *ordertable,</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>                            <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>                            <span class="keyword">const</span> cpl_table *linetable[3],</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *linetable_header[3], </div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>                            <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation[3],</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>                            <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>                <span class="comment">/* General */</span></div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>                <span class="keywordtype">bool</span>   debug_mode,</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>                <span class="comment">/* Backsub */</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>                <span class="comment">/* Flat fielding */</span></div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>                <span class="comment">/* Extraction */</span></div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>                <span class="comment">/* Rebinning  */</span></div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>                <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>                            <span class="keyword">const</span> <span class="keywordtype">char</span> *rec_id,</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *mode,</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>                <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>                cpl_image **x, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **x_header,</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>                cpl_image **fx,</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>                cpl_table **cosmic_mask,</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>                cpl_image **wave_map,</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                cpl_image **background,</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                cpl_image **flatfielded_variance,</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **flatfielded_variance_header,</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                cpl_image **resampled_spectrum,</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                cpl_image **resampled_mf,</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>                cpl_image **merged_sky,</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>                <span class="comment">/* Before sky-subtraction */</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>                cpl_image **rebinned_spectrum, </div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>                            cpl_image **rebinned_noise, </div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>                            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **rebinned_header,</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>                cpl_image **merged_spectrum  , </div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>                            cpl_image **merged_noise, </div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **merged_header,</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>                <span class="comment">/* After sky-subtraction */</span></div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>                cpl_image **reduced_rebinned_spectrum, </div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>                            cpl_image **reduced_rebinned_noise,</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>                cpl_image **reduced_spectrum         , </div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>                            cpl_image **reduced_noise, </div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>                            cpl_table **info_tbl,</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                <span class="keywordtype">double</span> *extraction_slit,</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>                            cpl_table **order_trace)</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> {</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     <span class="comment">/* Recipe parameters */</span></div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>   <span class="keywordtype">char</span> context[80];</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>     flatfielding_method ff_method;</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>     merge_method m_method;</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     extract_method ex_method;</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>     <span class="keywordtype">bool</span> blaze_corr=<span class="keyword">false</span>;</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     <span class="keywordtype">bool</span> sky_sub;</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     <span class="keywordtype">bool</span> tilt_corr;</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     <span class="keywordtype">double</span> full_slit;</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>     <span class="keywordtype">double</span> obj_slit;</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     <span class="keywordtype">double</span> obj_offset;</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>     <span class="keywordtype">double</span> exptime=0;</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>     cpl_image *back_subbed         = NULL;         <span class="comment">/* Image before extraction */</span></div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>     cpl_image *backsubbed_noise    = NULL;</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> </div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>     cpl_image *mflat_noise         = NULL;         <span class="comment">/* Master flat noise */</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> </div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     cpl_image *simple_extracted    = NULL;         <span class="comment">/* Needed only for blaze-correction */</span></div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>     cpl_image *simple_extracted_mf = NULL; </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> </div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     cpl_image *sky_lo                = NULL;       <span class="comment">/* Merged sky spectra */</span></div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>     cpl_image *sky_lo_noise          = NULL;</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>     cpl_image *sky_hi                = NULL;</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>     cpl_image *sky_hi_noise          = NULL;</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *sky_lo_header  = NULL;</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *sky_hi_header  = NULL;</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>     cpl_image *sky_lo_rebinned       = NULL;       <span class="comment">/* Rebinned sky spectra */</span></div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>     cpl_image *sky_lo_rebinned_noise = NULL;</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>     cpl_image *sky_hi_rebinned       = NULL;</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>     cpl_image *sky_hi_rebinned_noise = NULL;</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *sky_lo_rebinned_header = NULL;</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *sky_hi_rebinned_header = NULL;</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> </div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>     <span class="keywordtype">char</span> *subcontext                 = NULL;</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>     <span class="keywordtype">double</span> header_full_slit;                       <span class="comment">/* Slit length in pixels</span></div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span> <span class="comment">                              from FITS header */</span></div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>     <span class="keywordtype">char</span> *ex_method_string           = NULL;</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>     <span class="keywordtype">double</span> dnoise=-999;</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>     <span class="keywordtype">double</span> bnoise=-999;</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>     <span class="keywordtype">bool</span> has_fnoise=<span class="keyword">false</span>;</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>     <span class="keywordtype">double</span> fnoise=0;</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* local_raw_header=NULL;</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>     <span class="comment">/* Check, initialize input */</span></div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( background                 != NULL, <span class="stringliteral">" "</span>); *background                = NULL;</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     <span class="comment">/* resampled_spectrum, resampled_mf may be NULL */</span></div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( rebinned_spectrum          != NULL, <span class="stringliteral">" "</span>); *rebinned_spectrum         = NULL;</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( rebinned_noise             != NULL, <span class="stringliteral">" "</span>); *rebinned_noise            = NULL;</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( rebinned_header            != NULL, <span class="stringliteral">" "</span>); *rebinned_header           = NULL;</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( merged_spectrum            != NULL, <span class="stringliteral">" "</span>); *merged_spectrum           = NULL;</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( merged_sky                 != NULL, <span class="stringliteral">" "</span>); *merged_sky                = NULL;</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( merged_noise               != NULL, <span class="stringliteral">" "</span>); *merged_noise              = NULL;</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( merged_header              != NULL, <span class="stringliteral">" "</span>); *merged_header             = NULL;</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( reduced_rebinned_spectrum  != NULL, <span class="stringliteral">" "</span>); *reduced_rebinned_spectrum = NULL;</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( reduced_rebinned_noise     != NULL, <span class="stringliteral">" "</span>); *reduced_rebinned_noise    = NULL;</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( reduced_spectrum           != NULL, <span class="stringliteral">" "</span>); *reduced_spectrum          = NULL;</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( reduced_noise              != NULL, <span class="stringliteral">" "</span>); *reduced_noise             = NULL;</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> </div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( (flatfielded_variance == NULL) == (flatfielded_variance_header == NULL),</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>          <span class="stringliteral">"%d %d"</span>, flatfielded_variance == NULL, flatfielded_variance_header == NULL);</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span> </div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( extraction_slit != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> </div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     <span class="comment">/* Get flat-fielding/extract method (recipe parameters) </span></div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> <span class="comment">       These parameters determine the overall reduction strategy. */</span></div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>     {</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>      <span class="keywordflow">if</span>(strcmp(mode,<span class="stringliteral">".efficiency"</span>)==0) {</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>        sprintf(context,<span class="stringliteral">"%s%s"</span>,rec_id,mode);</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>      } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>        sprintf(context,<span class="stringliteral">"%s"</span>,rec_id);</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>      }</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ff_method = <a class="code" href="group__uves__flatfield.html#gaf870caa19bcc12c4b863a0a022663f22" title="Read flat-field method from parameter list.">uves_get_flatfield_method</a>(parameters, context, UVES_REDUCE_ID),</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>            <span class="stringliteral">"Could not read flat-fielding method"</span>);</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>      </div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     assure( ff_method == FF_NO || master_flat != NULL, CPL_ERROR_NULL_INPUT,</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>         <span class="stringliteral">"Flat-fielding requested, but no flat field provided"</span>);</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="comment">/* Read extract method from  <context>.<uves_reduce>.<extract>.method  */</span></div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ex_method = <a class="code" href="group__uves__extract.html#gaa6ae7afeaf5c4a71eb399ffa29a828f7" title="Read extraction method from parameter list.">uves_get_extract_method</a>(parameters, context,</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>                            UVES_REDUCE_ID <span class="stringliteral">"."</span> UVES_EXTRACT_ID),</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>            <span class="stringliteral">"Could not get extraction method"</span>);</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>            </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>     assure( ex_method != EXTRACT_WEIGHTED, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>         <span class="stringliteral">"Weighted extraction is used only internally, "</span></div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>         <span class="stringliteral">"as a part of optimal extraction"</span>);</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> </div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( m_method = <a class="code" href="group__uves__merge.html#gaeef8fc529ffcfda1a562fd06c7540069" title="Read merging method from parameter list.">uves_get_merge_method</a>(parameters, context, UVES_REDUCE_ID),</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>            <span class="stringliteral">"Could not get merging method"</span>);</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> <span class="comment">    check( uves_get_parameter(parameters, rec_id, UVES_REDUCE_ID,</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> <span class="comment">                  "blazecorr", CPL_TYPE_BOOL, &blaze_corr),</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> <span class="comment">           "Could not read parameter");</span></div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     <span class="comment">/*Forcing blazecorection to be off */</span></div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>     blaze_corr=<span class="keyword">false</span>;</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, rec_id, UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>                   <span class="stringliteral">"skysub"</span>, CPL_TYPE_BOOL, &sky_sub),</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>            <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>     </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, rec_id, UVES_REDUCE_ID,</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>                   <span class="stringliteral">"tiltcorr"</span>, CPL_TYPE_BOOL, &tilt_corr),</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>            <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     </div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     assure( !blaze_corr || ff_method != FF_NO, CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>         <span class="stringliteral">"Sorry, cannot apply blaze function "</span></div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>         <span class="stringliteral">"correction when no flatfielding is done"</span>);</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     <span class="keywordflow">if</span> (blaze_corr && ex_method == EXTRACT_2D)</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>         {</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"There will be no blaze function correction "</span></div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>                  <span class="stringliteral">"for 2d extraction"</span>);</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>         }</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> </div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>     <span class="keywordflow">if</span> (ff_method == FF_NO && m_method == MERGE_OPTIMAL)</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>         {</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"No flat-fielding done, but merge method = optimal. "</span></div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>                  <span class="stringliteral">"Is this really what you want?"</span>);</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>         }</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>     <span class="keywordflow">if</span> (ff_method != FF_NO && m_method == MERGE_SUM)</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>         {</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Flat-fielding will be done, but merge method = sum. "</span></div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>                  <span class="stringliteral">"Is this really what you want?"</span>);</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>         }</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, rec_id, UVES_REDUCE_ID, <span class="stringliteral">"slitlength"</span>, </div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>                   CPL_TYPE_DOUBLE, &full_slit), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span> </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, rec_id, UVES_REDUCE_ID, <span class="stringliteral">"objoffset"</span>,</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>                                   CPL_TYPE_DOUBLE, &obj_offset), </div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, rec_id, UVES_REDUCE_ID, <span class="stringliteral">"objslit"</span>,</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>                                   CPL_TYPE_DOUBLE, &obj_slit), </div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     }</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span> </div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>     <span class="comment">/* Append '.uves_reduce' to context */</span></div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>     subcontext = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, rec_id, UVES_REDUCE_ID);</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>     <span class="comment">/* Subtract bias */</span></div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( back_subbed = cpl_image_duplicate(raw_image),</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>        <span class="stringliteral">"Error copying raw image"</span>);</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span> </div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>     local_raw_header=(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* )raw_header;</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     <span class="keywordflow">if</span> (master_bias != NULL)</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>     {</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting master bias"</span>);</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils.html#gaab60ba58a3dc620bf79a91ebde2751b3" title="Subtract bias.">uves_subtract_bias</a>(back_subbed, master_bias),</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>            <span class="stringliteral">"Error subtracting master bias"</span>);</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>         bnoise=cpl_image_get_stdev(master_bias);</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>       <a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93" title="Append a double value to a property list.">uves_propertylist_append_c_double</a>(local_raw_header,UVES_BNOISE,bnoise,</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>                                           <span class="stringliteral">"Master bias RMS on frame"</span>);</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     }</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>     {</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping bias subtraction"</span>);</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>     }</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     </div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>     <span class="comment">/* Subtract dark if available */</span></div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     <span class="keywordflow">if</span> (master_dark != NULL)</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>     {</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting master dark"</span>);</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils.html#gaa065c666cf2f7a17a0d20f42e742a793" title="Subtract dark.">uves_subtract_dark</a>(back_subbed, raw_header,</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>                       master_dark, mdark_header),</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>            <span class="stringliteral">"Error subtracting master dark"</span>);</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>         dnoise=cpl_image_get_stdev(master_dark);</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"noise master dark (not rescaled) %g"</span>,dnoise);</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>         exptime=<a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(mdark_header);</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Exptime master dark %g"</span>,exptime);</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span> </div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>         <a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93" title="Append a double value to a property list.">uves_propertylist_append_c_double</a>(local_raw_header,UVES_DNOISE,dnoise,</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>                                           <span class="stringliteral">"Master dark RMS on frame"</span>);</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>         <a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93" title="Append a double value to a property list.">uves_propertylist_append_c_double</a>(local_raw_header,UVES_DTIME,exptime,</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>                                           <span class="stringliteral">"Master dark RMS on frame"</span>);</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>     }</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>     {</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping dark subtraction"</span>);</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>     }</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>     <span class="keywordflow">if</span> (master_flat != NULL)</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>     {</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>        has_fnoise=<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(mflat_header,UVES_FNOISE);</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>        <span class="keywordflow">if</span>(has_fnoise) {</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>          fnoise=<a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(mflat_header,UVES_FNOISE);</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>        }</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>     }</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>     <span class="keywordflow">if</span> (debug_mode) <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Bias/dark subtracted raw image"</span>, <span class="stringliteral">"pre"</span>,</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>                         back_subbed, chip, -1, -1, rotated_header, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>               <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span> </div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Creating noise image"</span>);</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> </div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>     <span class="comment">/* Define/initialize input image noise (r.o.n. and photonic) */</span></div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( backsubbed_noise = <a class="code" href="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7" title="Create noise image.">uves_define_noise</a>(back_subbed, raw_header, </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>                                                 1, chip),</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>        <span class="stringliteral">"Could not calculate noise image"</span>);    </div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span> </div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>     <span class="comment">/* Save noise image */</span></div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>     <span class="keywordflow">if</span> (debug_mode) <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Background subtracted raw image noise"</span>,</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>                         <span class="stringliteral">"errb"</span>, backsubbed_noise,</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>                         chip, -1, -1, rotated_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>               <span class="stringliteral">"Error saving image"</span>); </div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span> </div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>     <span class="comment">/* Subtract background  */</span></div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting inter-order background"</span>);</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>     </div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_backsub_spline(back_subbed, raw_header,</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>                    ordertable, order_locations,</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>                    parameters, subcontext,</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>                    chip,</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>                    <span class="keyword">false</span>,           <span class="comment">/* Use flat-field parameters? */</span></div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>                    background),</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>        <span class="stringliteral">"Error subtracting background"</span>);</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> </div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>     <span class="comment">/* Save bias, dark, background subtracted frame */</span></div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>     <span class="keywordflow">if</span> (debug_mode) <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Background subtracted raw image"</span>, <span class="stringliteral">"b"</span>,</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>                         back_subbed, chip, -1, -1, rotated_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>               <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span> </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span> </div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>     <span class="comment">/* </span></div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span> <span class="comment">     * Initialize flat-field noise (if necessary)</span></div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>     <span class="keywordflow">if</span> (ff_method == FF_NO)</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>     {</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping flat-field correction"</span>);</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>     }</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span> </div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>     <span class="keywordflow">if</span> (ff_method != FF_NO || resampled_mf != NULL)</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>     {</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>         <span class="keywordtype">int</span> mflat_datancom;</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> </div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>         <span class="comment">/* Save master flat image */</span></div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>         <span class="keywordflow">if</span> (debug_mode)</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>         {</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Master flat image"</span>, <span class="stringliteral">"mf"</span>, </div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>                          master_flat,</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>                          chip, -1, -1, rotated_header, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>                <span class="stringliteral">"Error saving master flat image"</span>);</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>         }</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>         </div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>         </div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>         <span class="comment">/* Define master flat noise */</span></div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( mflat_datancom  = <a class="code" href="group__uves__pfits.html#ga2b4f1ab25eca67e06373e637b34f96a2" title="Find out the number of input raw frames.">uves_pfits_get_datancom</a>(mflat_header),</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>            <span class="stringliteral">"Error reading number of raw flat field frames "</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>            <span class="stringliteral">"used for master flat image"</span>);</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> </div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Creating master flat noise image"</span>);</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>         </div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( mflat_noise = <a class="code" href="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7" title="Create noise image.">uves_define_noise</a>(master_flat, mflat_header, </div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>                                                mflat_datancom,chip),</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>            <span class="stringliteral">"Could not define master flat noise"</span>);</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span> </div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span> </div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>         <span class="comment">/* Save master flat noise image */</span></div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>         <span class="keywordflow">if</span> (debug_mode)</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>         {</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Master flat noise"</span>, <span class="stringliteral">"errmf"</span>, mflat_noise,</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>                          chip, -1, -1, rotated_header, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>                <span class="stringliteral">"Error saving master flat image"</span>);</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>         }</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>     }</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span> </div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span> </div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span> <span class="comment">     * Get full slit length </span></div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( header_full_slit = <a class="code" href="group__uves__pfits.html#gada5bfd486b316634b1d107ea5fc2cd12" title="Read the slit length in pixels.">uves_pfits_get_slitlength_pixels</a>(raw_header, chip),</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>        <span class="stringliteral">"Could not read slit length"</span>);</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>     </div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>     <span class="comment">/* If user didn't specify slit length, use header value */</span></div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>     <span class="keywordflow">if</span> (full_slit < 0)</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>     {</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>         <span class="comment">/* Avoid pixels at the edge of the slit</span></div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> <span class="comment">         *  which are likely to be noisy</span></div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>         full_slit = uves_max_double(1.0, header_full_slit - 2);</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>     }</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>     {</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>         <span class="comment">/* Warn if user specified value is larger than header value */</span></div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>         <span class="keywordflow">if</span> (full_slit > header_full_slit)</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>         {</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Specified full slit length (%e pixels) "</span></div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>                      <span class="stringliteral">"is larger than input header slit "</span></div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>                      <span class="stringliteral">"length (%e pixels)"</span>,</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>                      full_slit, header_full_slit);</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>         }</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>     }</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     </div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Slit length = %.2f pixels"</span>, full_slit);</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>     *extraction_slit = full_slit;</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span> </div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>     <span class="keywordflow">if</span> (ff_method == FF_PIXEL)</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>     {</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Dividing by normalized master flat-field (method = pixel)"</span>);</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>         </div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__flatfield.html#gaa96727cda19ae088e522da95f95e6dbd" title="Divide by flat field.">uves_flatfielding</a>(back_subbed, backsubbed_noise,</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>                      master_flat, mflat_noise),</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>            <span class="stringliteral">"Could not perform flat-fielding"</span>);</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>         </div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>             <span class="comment">/* Save flat-fielded image + noise */</span></div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>         <span class="keywordflow">if</span> (debug_mode) </div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>         {</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Flat-fielded image"</span>, <span class="stringliteral">"fb"</span>, </div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>                          back_subbed, chip, -1, -1, </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>                          rotated_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>                <span class="stringliteral">"Error saving flat-fielded image"</span>);</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>             </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Flat-fielded image noise"</span>, <span class="stringliteral">"errfb"</span>, </div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>                          backsubbed_noise, chip, -1, -1,</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                          rotated_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>                <span class="stringliteral">"Error saving noise of flat-fielded image"</span>);</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>         }</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>     }</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>     </div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>     <span class="comment">/* Extract the object window (+ sky windows depending on method) */</span></div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>     <span class="keywordflow">switch</span>(ex_method)</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>     {</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>     <span class="keywordflow">case</span> EXTRACT_OPTIMAL:</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>     {</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>         <span class="keywordtype">int</span> window_number = 2;</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> </div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6" title="Reduce one extraction window.">extract_ff_rebin_merge</a>(back_subbed, </div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>                                       backsubbed_noise,</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                                       raw_header,</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>                                       master_flat, </div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>                                       mflat_noise,</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>                                       ordertable, </div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                                       order_locations,</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                                       linetable[window_number-1],</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                                       linetable_header,</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>                                       dispersion_relation,</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                                       full_slit, </div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                                       obj_offset,</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                                       window_number,</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>                                       chip,</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>                                       blaze_corr,</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>                                       tilt_corr,</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>                                       debug_mode,</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>                                       parameters, </div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>                                       subcontext,</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>                       mode,</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>                                       ff_method,</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>                                       ex_method,</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>                                       m_method,</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>                                       NULL, </div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                                       NULL, </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                                       NULL,</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>                                       cosmic_mask,</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>                       wave_map, </div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>                                       flatfielded_variance,</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>                                       flatfielded_variance_header,</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>                                       resampled_spectrum,</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>                                       resampled_mf,</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                                       merged_sky,</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>                                       <span class="comment">/* merged_sky will be computed </span></div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> <span class="comment">                                         during optimal extraction */</span></div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>                                       rebinned_spectrum, </div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>                                       rebinned_noise, </div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>                                       rebinned_header,</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>                                       merged_spectrum, </div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                                       merged_noise, </div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>                                       merged_header,</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>                                       info_tbl,</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>                                       order_trace),</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>                <span class="stringliteral">"Error during reduction"</span>);</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>         </div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>         <span class="comment">/* The sky-subtracted spectra are just the optimally extracted spectra</span></div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span> <span class="comment">         * (since sky-subtraction is done during extraction)</span></div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( *reduced_spectrum = cpl_image_duplicate(*merged_spectrum),</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>             *reduced_noise    = cpl_image_duplicate(*merged_noise),</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>             *reduced_rebinned_spectrum = cpl_image_duplicate(*rebinned_spectrum),</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>             *reduced_rebinned_noise    = cpl_image_duplicate(*rebinned_noise)),</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>           <span class="stringliteral">"Error creating sky-subtracted spectra"</span>);</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>     }</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>     <span class="keywordflow">case</span> EXTRACT_LINEAR: <span class="comment">/* Same as average (pass ex-method to uves_extract) */</span></div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>     <span class="keywordflow">case</span> EXTRACT_AVERAGE:</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>     {</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>         <span class="comment">/* Average/linear extraction.</span></div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> <span class="comment">         * Define sky+object+sky windows, </span></div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> <span class="comment">         * extract, rebin, merge, subtract</span></div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>         </div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *slicer_name;</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>         <span class="keywordtype">double</span> doffset = 0;</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>         <span class="keywordtype">double</span> obj_hi, obj_lo;</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>         <span class="keywordtype">double</span> sky_lo_slit, sky_hi_slit;</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>         <span class="keywordtype">int</span> window_number;</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>         </div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> <span class="comment">         *  See if there's an image slicer</span></div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span> <span class="comment">         *  Extract sky only if not</span></div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>         </div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( slicer_name = <a class="code" href="group__uves__pfits.html#gadb0a05528f0429187a6af97bcb3f4a25" title="Get image slicer name.">uves_pfits_get_slit1_name</a>(raw_header),</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>            <span class="stringliteral">"Could not read slicer id"</span>);</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>           </div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Slicer name = '%s'%s"</span>, slicer_name, </div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>              (strcmp(slicer_name, <span class="stringliteral">"FREE"</span>) == 0) ? <span class="stringliteral">" (no slicer)"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>           </div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>         <span class="keywordflow">if</span> ( strncmp(slicer_name, <span class="stringliteral">"SLIC"</span>, 4) == 0)</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>         {</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>             <span class="comment">/*</span></div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> <span class="comment">             *    Use full slit for object, no sky</span></div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>               </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>                     obj_hi = uves_min_double(+full_slit/2, obj_offset + full_slit/2);</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>                     obj_lo = uves_max_double(-full_slit/2, obj_offset - full_slit/2);</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>                     </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>                     obj_slit = obj_hi - obj_lo;</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>               </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>             sky_lo_slit = -1;        <span class="comment">/* Don't extract sky */</span></div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>             sky_hi_slit = -1;</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>               </div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Extraction slits (full slit = %.2f pixels)"</span>, full_slit);</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"|* Sky 1 *|******** Obj ********|* Sky 2 *|"</span>);</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"|* %-5.1f *|******* %-5.1f *******|* %-5.1f *|"</span>,</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>                  0.0, obj_slit, 0.0);</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>         }</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>         {</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>             <span class="comment">/* There's no slicer */</span></div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>             assure( strncmp(slicer_name, <span class="stringliteral">"FREE"</span>, 4) == 0, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                 <span class="stringliteral">"Unrecognized slicer name: '%s'. "</span></div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>                 <span class="stringliteral">"Recognized names include 'FREE', 'SLIC#1', 'SLIC#2', 'SLIC#3'."</span>,</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>                 slicer_name);</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>             </div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>             <span class="comment">/* Measure offset if user didn't specify */</span></div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>             <span class="keywordflow">if</span> (obj_slit < 0)</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>             {</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( obj_offset = </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>                    <a class="code" href="group__uves__reduce.html#gad6aedc87f04001c793180df5b7edac16" title="Measure object offset w.r.t. slit center.">get_offset</a>(back_subbed, </div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>                           ordertable, order_locations,</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>                           full_slit/2, <span class="comment">/* Offset search range */</span></div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>                           10,          <span class="comment">/* Samples per order */</span></div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>                           &doffset),</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>                    <span class="stringliteral">"Could not find object offset"</span>);</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>                 </div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Measured object position = %.2f +- %.2f pixels"</span>, </div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>                      obj_offset, doffset);</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> </div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>                 <span class="keywordflow">if</span> (sky_sub)</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>                 {</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>                     <span class="comment">/* Define object extraction slit length </span></div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> <span class="comment">                       as half of full slit. */</span></div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>                     obj_hi = uves_min_double(+full_slit/2, </div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>                                  obj_offset + full_slit/4.0);</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>                     obj_lo = uves_max_double(-full_slit/2, </div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>                                  obj_offset - full_slit/4.0);</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>                 }</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>                 <span class="comment">/* No sky subtraction. Object = full slit */</span></div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>                 {</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>                     obj_hi = uves_min_double(+full_slit/2, </div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>                                  obj_offset + full_slit/2.0);</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>                     obj_lo = uves_max_double(-full_slit/2, </div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                                  obj_offset - full_slit/2.0);</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>                 }</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                 obj_slit = obj_hi - obj_lo;</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>             }</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>             <span class="comment">/* User specified object slit */</span></div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>             {</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Object offset = %.2f pixels"</span>, obj_offset);</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> </div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>                 obj_hi = obj_offset + obj_slit / 2;</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>                 obj_lo = obj_offset - obj_slit / 2;</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>             }</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>             </div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Object slit = %.2f pixels"</span>, obj_slit);</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>             </div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>             assure( -full_slit / 2 < obj_offset && obj_offset < full_slit / 2, </div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>                 CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>                 <span class="stringliteral">"Object is outside slit! Offset = %f, Slit length = %f"</span>,</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>                 obj_offset, full_slit);</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>             </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>             <span class="comment">/* Sky slits (might be negative if object has large offset) */</span></div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>             <span class="keywordflow">if</span> (sky_sub)</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>             {</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>                 sky_lo_slit = obj_lo - (-full_slit/2);</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>                 sky_hi_slit = full_slit/2 - obj_hi;</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>                 </div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>                 assure( sky_lo_slit > 0 || sky_hi_slit > 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>                     <span class="stringliteral">"At least one sky slit length must be positive. "</span></div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>                     <span class="stringliteral">"They are %f and %f pixels"</span>, sky_lo_slit, sky_hi_slit);</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>             }</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>             {</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>                 sky_lo_slit = -1; <span class="comment">/* Don't extract sky */</span></div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>                 sky_hi_slit = -1;</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>             }</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>             </div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Extraction slits (full slit = %.2f pixels)"</span>, full_slit);</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"|*** Sky 1 **%s|**** Obj ****|%s** Sky 2 ***|"</span>, </div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>                  (obj_lo > -obj_hi) ? <span class="stringliteral">"*"</span> : <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>                  (obj_lo > -obj_hi) ? <span class="stringliteral">""</span>  : <span class="stringliteral">"*"</span>);</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"|*** %-5.1f **%s|*** %-5.1f ***|%s** %-5.1f ***|"</span>,</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>                  sky_lo_slit, (obj_lo > -obj_hi) ? <span class="stringliteral">"*"</span> : <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>                  obj_slit   , (obj_lo > -obj_hi) ? <span class="stringliteral">""</span>  : <span class="stringliteral">"*"</span>,</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>                  sky_hi_slit);</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>         }</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>         </div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>         <span class="comment">/* The window geometry has now been deermined. Extract spectra.</span></div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> <span class="comment"></span></div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> <span class="comment">           It is important to use the same rebinning step size,</span></div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> <span class="comment">           for sky and object (otherwise the sky spectrum cannot (easily)</span></div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> <span class="comment">           be subtracted). If this step size is not specified (i.e. is negative)</span></div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> <span class="comment">           in the parameter list, it is determined from the </span></div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> <span class="comment">           average pixelsize, which is read from the line table.</span></div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> <span class="comment">           Therefore pass the object's line table also for the sky windows</span></div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> <span class="comment">           (but still use different dispersion relations for sky/object)</span></div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>         </div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>         <span class="comment">/* Extract sky 1 */</span></div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>         window_number = 1;</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>         <span class="keywordflow">if</span> ( sky_lo_slit > 0 )</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>         {</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing sky 1 window"</span>);</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6" title="Reduce one extraction window.">extract_ff_rebin_merge</a>(back_subbed, </div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>                                           backsubbed_noise,</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>                                           raw_header,</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>                                           master_flat, </div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>                                           mflat_noise,</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>                                           ordertable, </div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>                                           order_locations,</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>                                           linetable[2-1],   <span class="comment">/* Object linetable */</span></div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>                                           linetable_header,</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>                                           dispersion_relation,</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>                                           sky_lo_slit,     <span class="comment">/* Slit length (pixels) */</span></div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>                                           -full_slit/2 + sky_lo_slit/2,</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>                                           <span class="comment">/* Slit center offset */</span></div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>                                           window_number,</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>                                           chip,</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>                                           blaze_corr,</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>                                           tilt_corr,</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>                                           debug_mode,</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>                                           parameters, </div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>                                           subcontext,</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>                       mode,</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>                                           ff_method,</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>                                           ex_method,</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>                                           m_method,</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>                                           NULL, </div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>                                           NULL, </div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>                                           NULL, </div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>                                           NULL,</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>                                           wave_map, </div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>                                           NULL,</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>                       NULL,</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>                                           NULL, </div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>                                           NULL, </div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>                                           NULL,</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>                                           &sky_lo_rebinned, </div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>                                           &sky_lo_rebinned_noise, </div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>                                           &sky_lo_rebinned_header,</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>                                           &sky_lo, </div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>                                           &sky_lo_noise, </div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>                                           &sky_lo_header,</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>                                           NULL, </div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>                                           NULL),</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>                <span class="stringliteral">"Error processing lower sky window"</span>);</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>         }</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>         {</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping sky 1 window"</span>);</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>             sky_lo_rebinned = NULL;</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>             sky_lo = NULL;</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>         }</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>         </div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>         <span class="comment">/* Extract sky 2 */</span></div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>         window_number = 3;</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>         <span class="keywordflow">if</span> ( sky_hi_slit > 0 )</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>         {</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing sky 2 window"</span>);</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>               </div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>             uves_free_propertylist(rebinned_header);</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6" title="Reduce one extraction window.">extract_ff_rebin_merge</a>(back_subbed, </div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>                                           backsubbed_noise,</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>                                           raw_header,</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>                                           master_flat, </div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>                                           mflat_noise,</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>                                           ordertable, </div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>                                           order_locations,</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>                                           linetable[2-1], <span class="comment">/* Object linetable */</span></div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>                                           linetable_header, </div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>                                           dispersion_relation,</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>                                           sky_hi_slit,    <span class="comment">/* Slit length (pixels) */</span></div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>                                           full_slit/2 - sky_hi_slit/2,</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>                                           <span class="comment">/* Slit center offset      */</span></div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>                                           window_number,</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>                                           chip,</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>                                           blaze_corr,</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>                                           tilt_corr,</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>                                           debug_mode,</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>                                           parameters, </div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>                                           subcontext,</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>                       mode,</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>                                           ff_method,</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>                                           ex_method,</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>                                           m_method,</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>                                           NULL, </div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>                                           NULL, </div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>                                           NULL,</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>                                           NULL,</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>                                           wave_map, </div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>                                           NULL,</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>                                           NULL,</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>                       NULL, </div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>                                           NULL, </div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>                                           NULL,</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>                                           &sky_hi_rebinned, </div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>                                           &sky_hi_rebinned_noise, </div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>                                           &sky_hi_rebinned_header,</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>                                           &sky_hi, </div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>                                           &sky_hi_noise, </div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>                                           &sky_hi_header,</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>                                           NULL,</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>                                           NULL),</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>                    <span class="stringliteral">"Error processing upper sky window"</span>);</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>         }</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>         {</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping sky 2 window"</span>);</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>             sky_hi_rebinned = NULL;</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>             sky_hi = NULL;</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>         }</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>           </div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>         <span class="comment">/* Extract object */</span></div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>         window_number = 2;</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing object window"</span>);</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>         uves_free_propertylist(rebinned_header);</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6" title="Reduce one extraction window.">extract_ff_rebin_merge</a>(back_subbed, backsubbed_noise, raw_header,</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>                                       master_flat, mflat_noise,</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>                                       ordertable, order_locations,</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>                                       linetable[window_number-1], </div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>                                       linetable_header, </div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>                                       dispersion_relation,</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>                                       obj_slit,   <span class="comment">/* Slit length (pixels) */</span></div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>                                       obj_offset,   </div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>                                       <span class="comment">/* Slit center offset */</span></div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>                                       window_number,</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>                                       chip,</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>                                       blaze_corr,</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>                                       tilt_corr,</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>                                       debug_mode,</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>                                       parameters, </div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>                                       subcontext,</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>                       mode,</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>                                       ff_method,</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>                                       ex_method, </div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>                                       m_method,</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>                                       NULL, </div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>                                       NULL, </div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>                       NULL, </div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>                                       NULL,</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>                                       wave_map,</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>                                       flatfielded_variance,</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>                                       flatfielded_variance_header,</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>                                       resampled_spectrum, </div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>                                       resampled_mf, </div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>                                       NULL,</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>                                       rebinned_spectrum, </div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>                                       rebinned_noise, </div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>                                       rebinned_header,</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>                                       merged_spectrum, </div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>                                       merged_noise, </div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>                                       merged_header,</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>                                       info_tbl,</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>                                       NULL),</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>                <span class="stringliteral">"Error processing object window"</span>);</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span> </div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>         <span class="keywordflow">if</span> (info_tbl != NULL && *info_tbl != NULL)</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>         {</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>             <span class="comment">/* Compute obj. position from sky_lo_slit</span></div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span> <span class="comment">               for consistency with optimal extraction */</span></div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>             <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(*info_tbl); i++)</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>             {</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>                 cpl_table_set_double(*info_tbl, <span class="stringliteral">"ObjPosOnSlit"</span>, i,</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>                          cpl_table_get_double(*info_tbl, <span class="stringliteral">"ObjPosOnSlit"</span>, i, NULL)</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>                          + </div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>                          ((sky_lo_slit >= 0) ? sky_lo_slit : 0));</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span> </div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>             }</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>         }</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>                 </div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>           </div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>         <span class="comment">/* Now subtract sky from both rebinned spectrum and merged spectrum */</span></div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>           </div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>         <span class="comment">/* Duplicate, then subtract */</span></div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>         </div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>         <span class="comment">/* 1d spectrum */</span></div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( *reduced_spectrum = cpl_image_duplicate(*merged_spectrum),</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>             *reduced_noise    = cpl_image_duplicate(*merged_noise)),</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>           <span class="stringliteral">"Error allocating sky-subtracted spectra"</span>);</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>         </div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>         <span class="comment">/* 2d (wavelength, order) spectrum */</span></div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( *reduced_rebinned_spectrum = </div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>             cpl_image_duplicate(*rebinned_spectrum),</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>             *reduced_rebinned_noise    = </div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>             cpl_image_duplicate(*rebinned_noise)),</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>           <span class="stringliteral">"Error allocating sky-subtracted spectra"</span>);</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>         </div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>         <span class="keywordflow">if</span> (sky_lo != NULL || sky_hi != NULL)</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>         {</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting sky"</span>);</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>             </div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *merged_sky = </div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>                <a class="code" href="group__uves__reduce.html#gad5574e8fead13bd32bd46eb60ca091ac" title="Subtract sky from extracted spectrum.">subtract_sky</a>(*reduced_rebinned_spectrum, </div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>                     *reduced_rebinned_noise, *rebinned_header,</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>                     sky_lo_rebinned, sky_lo_rebinned_noise, </div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>                     sky_lo_rebinned_header,</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>                     sky_hi_rebinned, sky_hi_rebinned_noise,</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>                     sky_hi_rebinned_header,</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>                     reduced_spectrum, reduced_noise, *merged_header,</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>                     sky_lo, sky_lo_noise, sky_lo_header,</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>                     sky_hi, sky_hi_noise, sky_hi_header,</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>                     (ex_method == EXTRACT_AVERAGE) ? 1.0 : obj_slit,</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>                     (ex_method == EXTRACT_AVERAGE) ? 1.0 : sky_lo_slit,</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>                     (ex_method == EXTRACT_AVERAGE) ? 1.0 : sky_hi_slit),</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>                <span class="stringliteral">"Could not subtract sky"</span>);</div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span> </div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>             <span class="keywordflow">if</span> (*merged_sky == NULL)</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>             {</div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>                 <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Could not subtract sky"</span>);</div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>             }</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>         }</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>         {</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Skipping sky subtraction"</span>);</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>               </div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>             <span class="comment">/* Return no sky spectrum */</span></div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>             *merged_sky = NULL;</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>         }</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>     } <span class="comment">/* Simple extraction */</span></div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>     <span class="keywordflow">case</span> EXTRACT_2D:</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>     {</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>         <span class="keywordtype">int</span> window_number = 2;    <span class="comment">/* Use middle line table for entire</span></div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span> <span class="comment">                     slit length (like MIDAS) */</span></div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span> </div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>         <span class="keywordtype">int</span> half_slit_length;     <span class="comment">/* The slit length is</span></div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span> <span class="comment">                     2*half_slit_length = an even number */</span></div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>         </div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>         <span class="comment">/* Round to nearest integer, remove (noisy) edge (~2 pixels) */</span></div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>         half_slit_length = </div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>         uves_max_int(1, uves_round_double(header_full_slit/2) - 1);</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span> </div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6" title="Reduce one extraction window.">extract_ff_rebin_merge</a>(back_subbed, </div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>                                           backsubbed_noise,</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>                       raw_header,</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>                       master_flat, </div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>                                           mflat_noise,</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>                       ordertable, </div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>                                           order_locations,</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>                       linetable[window_number-1],</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>                       linetable_header,</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>                       dispersion_relation,</div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>                       2*half_slit_length, </div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>                                           0, <span class="comment">/* offset is not used when method=2d */</span></div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>                       window_number,</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>                       chip,</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>                       blaze_corr,</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>                                           tilt_corr,</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>                                           debug_mode,</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>                       parameters, </div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>                                           subcontext,</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>                       mode,</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>                       ff_method,</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>                       ex_method,</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>                       m_method,</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>                       x, </div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>                                           x_header, </div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>                                           fx,      <span class="comment">/* 2d-ex. output      */</span></div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>                       NULL,  NULL,</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>                                           NULL,    <span class="comment">/* Optimal-ex. output */</span></div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>                       NULL, </div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>                                           NULL,    <span class="comment">/* Don't want resampled_spectrum,</span></div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> <span class="comment">                              resampled_mf */</span></div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>                       NULL,    <span class="comment">/* Don't want sky spectrum */</span></div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>                                           NULL,    <span class="comment">/* Don't want </span></div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> <span class="comment">                              flatfielded_variance+header */</span></div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>                       rebinned_spectrum, </div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>                                           rebinned_noise, </div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>                                           rebinned_header,</div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>                       merged_spectrum, </div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>                                           merged_noise, </div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>                                           merged_header, </div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>                                           info_tbl,</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>                                           NULL),</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>            <span class="stringliteral">"Error during reduction"</span>);</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span> </div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>             <span class="keywordflow">if</span> (x_header != NULL)</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>                 {</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>                     <a class="code" href="group__uves__pfits.html#ga3a62ab3d0a3cbff46e6587757c951c7d" title="Write the 2d extractino slit length.">uves_pfits_set_hs</a>(*x_header, </div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>                                       uves_round_double(2*half_slit_length));</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>                 }</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>             <span class="keywordflow">if</span> (rebinned_header != NULL)</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>                 {</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>                     <a class="code" href="group__uves__pfits.html#ga3a62ab3d0a3cbff46e6587757c951c7d" title="Write the 2d extractino slit length.">uves_pfits_set_hs</a>(*rebinned_header, </div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>                                       uves_round_double(2*half_slit_length));</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>                 }</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>             <span class="keywordflow">if</span> (merged_header != NULL)</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>                 {</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>                     <a class="code" href="group__uves__pfits.html#ga3a62ab3d0a3cbff46e6587757c951c7d" title="Write the 2d extractino slit length.">uves_pfits_set_hs</a>(*merged_header, </div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>                                       uves_round_double(2*half_slit_length));</div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>                 }</div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> </div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span> </div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>         <span class="comment">/* No sky-subtraction done. Just copy the merged spectra</span></div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="comment">         * to get the 'reduced' (i.e. sky-subtracted) spectra</span></div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( *reduced_spectrum = cpl_image_duplicate(*merged_spectrum),</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>             *reduced_noise    = cpl_image_duplicate(*merged_noise),</div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>             *reduced_rebinned_spectrum = cpl_image_duplicate(*rebinned_spectrum),</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>             *reduced_rebinned_noise    = cpl_image_duplicate(*rebinned_noise)),</div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>           <span class="stringliteral">"Error allocating reduced spectra"</span>);</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>     }</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>         assure( <span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>             <span class="stringliteral">"Unknown extraction method: %d"</span>, ex_method);</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>     } <span class="comment">/* switch extraction method optimal/simple/2d */</span></div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>     </div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>   cleanup:</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>     uves_free_image(&back_subbed);</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>     uves_free_image(&backsubbed_noise);</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>     uves_free_image(&mflat_noise);</div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>     uves_free_image(&simple_extracted);</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>     uves_free_image(&simple_extracted_mf);</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>     uves_free_image(&sky_lo);</div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>     uves_free_image(&sky_lo_noise);</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>     uves_free_image(&sky_hi);</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>     uves_free_image(&sky_hi_noise);</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>     uves_free_image(&sky_lo_rebinned);</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>     uves_free_image(&sky_lo_rebinned_noise);</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>     uves_free_image(&sky_hi_rebinned);</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>     uves_free_image(&sky_hi_rebinned_noise);</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>     uves_free_propertylist(&sky_lo_header);</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>     uves_free_propertylist(&sky_hi_header);</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>     uves_free_propertylist(&sky_lo_rebinned_header);</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>     uves_free_propertylist(&sky_hi_rebinned_header);</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span> </div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>     cpl_free(subcontext);</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>     cpl_free(ex_method_string);</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span> </div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>     {</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>         uves_free_image(background);</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>         uves_free_image(flatfielded_variance);</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>         uves_free_propertylist(flatfielded_variance_header);</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>         uves_free_image(resampled_spectrum);</div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>         uves_free_image(resampled_mf);</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>         uves_free_image(merged_sky);</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>         uves_free_image(rebinned_spectrum);</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>         uves_free_image(rebinned_noise);</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>         uves_free_propertylist(rebinned_header);</div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>         </div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>         uves_free_image(merged_noise);</div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>         uves_free_image(merged_spectrum);</div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>         uves_free_propertylist(merged_header);</div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>     }</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span> </div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> }</div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span> </div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span> </div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span> <span class="keyword">static</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l01509"></a><span class="lineno"><a class="code" href="group__uves__reduce.html#gacf021d0b42c1b02d38ecbff5f3353f54"> 1509</a></span> <a class="code" href="group__uves__reduce.html#gacf021d0b42c1b02d38ecbff5f3353f54" title="1st order line tilt correction">interpolate_wave</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation[3],</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>                  <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *linetable_header[3],</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>                  <span class="keywordtype">double</span> objoffset)</div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span> {</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion = NULL;</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *q1 = NULL;</div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *q2 = NULL;</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>     cpl_table *offset = cpl_table_new(3);</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>     <span class="keywordtype">int</span> ilow, ihigh;</div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>     <span class="keywordtype">double</span> offset1, offset2;</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>     </div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>     <span class="comment">/* We need the sort pattern. Use a table for that */</span></div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>     cpl_table_new_column(offset, <span class="stringliteral">"Index"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>     cpl_table_new_column(offset, <span class="stringliteral">"Offset"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>     </div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>     {</div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>         <span class="keywordtype">bool</span> reverse;</div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>         <span class="keywordflow">for</span> (i = 0; i < 3; i++) {</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>             cpl_table_set_int(offset, <span class="stringliteral">"Index"</span>, i, i);</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>             cpl_table_set_double(offset, <span class="stringliteral">"Offset"</span>, i,</div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>                                  <a class="code" href="group__uves__pfits.html#gaef0d7e4491440deeda27c14d65c34d7b" title="Get the trace offset.">uves_pfits_get_offset</a>(linetable_header[i]));</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>             </div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Wavecal %d offset is %f pixels"</span>, i, </div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>                            cpl_table_get_double(offset, <span class="stringliteral">"Offset"</span>, i, NULL));</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>         }</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span> </div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>         reverse = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>         uves_sort_table_1(offset, <span class="stringliteral">"Offset"</span>, reverse);</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>     }</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>     </div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>     <span class="comment">/* Find indices of the two dispersion solutions neares to the object position */</span></div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>     <span class="keywordflow">if</span> (objoffset <= cpl_table_get_double(offset, <span class="stringliteral">"Offset"</span>, 1, NULL))</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>         {</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>             ilow    = cpl_table_get_int(offset, <span class="stringliteral">"Index"</span>, 0, NULL);</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>             ihigh   = cpl_table_get_int(offset, <span class="stringliteral">"Index"</span>, 1, NULL);</div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>             offset1 = cpl_table_get_double(offset, <span class="stringliteral">"Offset"</span>, 0, NULL);</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>             offset2 = cpl_table_get_double(offset, <span class="stringliteral">"Offset"</span>, 1, NULL);</div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>         }</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>         {</div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>             ilow  = cpl_table_get_int(offset, <span class="stringliteral">"Index"</span>, 1, NULL);</div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>             ihigh = cpl_table_get_int(offset, <span class="stringliteral">"Index"</span>, 2, NULL);</div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>             offset1 = cpl_table_get_double(offset, <span class="stringliteral">"Offset"</span>, 1, NULL);</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>             offset2 = cpl_table_get_double(offset, <span class="stringliteral">"Offset"</span>, 2, NULL);</div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>         }</div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span> </div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Interpolating dispersion relation at offset = %.2f"</span>,</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>              objoffset);</div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span> </div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Using previous solutions at %.2f and %.2f pixels"</span>,</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>                    offset1, offset2);</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>     </div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>     <span class="comment">/* Fail cleanly if 2 dispersion solution were obtained at the same offset</span></div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span> <span class="comment">       (rather than silently dividing by zero) */</span></div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>     assure( offset1 < offset2,</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>             CPL_ERROR_DIVISION_BY_ZERO,</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>             <span class="stringliteral">"Dispersion solution %d offset = %.2f pixels; "</span></div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>             <span class="stringliteral">"dispersion solution %d offset = %.2f pixels; cannot extrapolate"</span>,</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>             ilow, offset1,</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>             ihigh, offset2);</div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>     </div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>     <span class="comment">/* Do simple linear interpolation =</span></div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span> <span class="comment">           p = a p1 + b p2</span></div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span> <span class="comment">       where</span></div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span> <span class="comment">          a = (offset2 - offset) / (offset2 - offset1)</span></div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span> <span class="comment">          b = (offset1 - offset) / (offset1 - offset2)</span></div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span> <span class="comment"></span></div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span> <span class="comment">       which corrects for any line tilt to 1st order.</span></div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span> <span class="comment"></span></div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span> <span class="comment">       A 2nd order line tilt correction (distortions) is probably overkill</span></div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span> <span class="comment">       because of UVES' short slit and very straight arclines.</span></div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>     {</div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>         <span class="keywordtype">double</span> a = (offset2 - objoffset) / (offset2 - offset1);</div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>         <span class="keywordtype">double</span> b = (offset1 - objoffset) / (offset1 - offset2);</div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>         </div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>         q1 = <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(dispersion_relation[ilow]); </div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>         <a class="code" href="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081" title="Rescale a polynomial.">uves_polynomial_rescale</a>(q1, 0, a); </div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>         <span class="comment">/* q1 = a p1 */</span></div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>         </div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>         q2 = <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(dispersion_relation[ihigh]); </div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>         <a class="code" href="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081" title="Rescale a polynomial.">uves_polynomial_rescale</a>(q2, 0, b); </div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>         <span class="comment">/* q2 = b p2 */</span></div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>         </div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>         dispersion = <a class="code" href="group__uves__utils__polynomial.html#gab234ee00fd4ba72b05a50adb61947306" title="Add two polynomials.">uves_polynomial_add_2d</a>(q1, q2);</div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>     }</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>     </div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>   cleanup:</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>     uves_free_table(&offset);</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&q1);</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&q2);</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>     <span class="keywordflow">return</span> dispersion;</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span> }</div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span> </div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span> </div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span> </div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l01687"></a><span class="lineno"><a class="code" href="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6"> 1687</a></span> <a class="code" href="group__uves__reduce.html#ga94e58008d7821520c65b64f3f0bedca6" title="Reduce one extraction window.">extract_ff_rebin_merge</a>(cpl_image *back_subbed, </div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>                        cpl_image *backsubbed_noise,</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>                <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *backsubbed_header,</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>                <span class="keyword">const</span> cpl_image *master_flat, </div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>                        cpl_image *mflat_noise,</div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>                <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>                        <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>                <span class="keyword">const</span> cpl_table *linetable, </div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>                        <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *linetable_header[3], </div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>                        <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation[3],</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>                <span class="keywordtype">double</span> slit_length, </div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>                        <span class="keywordtype">double</span> slit_offset,</div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>                <span class="keywordtype">int</span> window, </div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>                        <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>                <span class="keywordtype">bool</span> blaze_correct,</div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>                        <span class="keywordtype">bool</span> tilt_corr,</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>                        <span class="keywordtype">bool</span> debug_mode,</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>                <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>                        <span class="keyword">const</span> <span class="keywordtype">char</span> *context,</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>                        <span class="keyword">const</span> <span class="keywordtype">char</span> *mode,</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>                flatfielding_method ff_method,</div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>                extract_method ex_method,</div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>                merge_method m_method,</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>                <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>                cpl_image **x, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **x_header,</div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>                cpl_image **fx,</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>                cpl_table **cosmic_mask,</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>                cpl_image **wave_map,</div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>                cpl_image **flatfielded_variance,</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>                <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **flatfielded_variance_header,</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>                cpl_image **resampled_spectrum,</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>                cpl_image **resampled_mf,</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>                cpl_image **merged_sky,</div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>                cpl_image **rebinned_spectrum, </div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>                        cpl_image **rebinned_noise, </div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>                        <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **rebinned_header,</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>                cpl_image **merged_spectrum, </div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>                        cpl_image **merged_noise, </div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>                        <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **merged_header,</div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>                        cpl_table **info_tbl,</div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>                        cpl_table **order_trace)</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span> {</div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>     cpl_image *extracted           = NULL;</div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>     cpl_image *extracted_noff      = NULL;</div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>     cpl_image *extracted_noise     = NULL;</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>     cpl_image *extracted_sky       = NULL;   <span class="comment">/* For optimal extraction */</span></div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>     cpl_image *extracted_sky_noise = NULL;</div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>     cpl_image *blaze_ratio         = NULL;   <span class="comment">/* The (per-order normalized)</span></div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span> <span class="comment">                                                ratio of blaze functions */</span></div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span> </div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>     cpl_image *cosmic_image        = NULL;</div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>     cpl_image *weights             = NULL;</div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>     cpl_table *profile_table       = NULL;</div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *extracted_header = NULL;</div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span> </div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>     cpl_image *extracted_mf        = NULL;</div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>     cpl_image *extracted_mf_noise  = NULL;</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span> </div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>     cpl_image *rebinned_sky        = NULL;</div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>     cpl_image *rebinned_sky_noise  = NULL;</div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>     cpl_image *merged_sky_noise    = NULL;</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span> </div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_int     = NULL;    <span class="comment">/* interpolated at object position */</span></div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_int_sky = NULL;    <span class="comment">/* if sky was extracted simultaneously</span></div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span> <span class="comment">                                                 with the object (optimal extraction)</span></div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span> <span class="comment">                                                 this is the dispersion at the average</span></div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span> <span class="comment">                                                 sky position */</span></div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>     cpl_table *poly_table          = NULL;</div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>     cpl_image *temp_image          = NULL;</div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span> </div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>     <span class="keywordtype">int</span> n_traces;                             <span class="comment">/* Number of traces. Equal to 1,</span></div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span> <span class="comment">                         unless for 2d reduction */</span></div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>     <span class="keywordtype">int</span> first_abs_order, last_abs_order;</div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>     <span class="keywordtype">int</span> filename_window;                      <span class="comment">/* The window number appended to </span></div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span> <span class="comment">                         the filenames of local products */</span></div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>     <span class="comment">//const char* recipe_id=make_str(UVES_SCIRED_ID);</span></div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>    <span class="keywordtype">double</span> delt1=0;</div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>    <span class="keywordtype">double</span> delt2=0;</div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span> </div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span> </div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>     <span class="comment">/* If ff_method is FF_EXTRACT, or if resampled_mf is requested,</span></div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span> <span class="comment">       then master flat must be provided */</span></div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>((ff_method != FF_EXTRACT && resampled_mf == NULL) </div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>         ||</div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>         master_flat != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span> </div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>     <span class="comment">/* Blaze correction only makes sense if flat-fielding,</span></div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( !blaze_correct || ff_method != FF_NO, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span> </div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( ex_method != EXTRACT_OPTIMAL || merged_sky != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( ex_method != EXTRACT_OPTIMAL || cosmic_mask != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span> </div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(1 <= window && window <= 3, <span class="stringliteral">"Illegal window: %d"</span>, window);</div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span> </div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( (x == NULL) == (x_header == NULL) &&</div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>          (x == NULL) == (fx == NULL), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span> </div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span> </div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span> </div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span> </div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span> </div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, </div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>                   context, <span class="stringliteral">"merge_delt1"</span>,</div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>                   CPL_TYPE_DOUBLE, &delt1),</div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>        <span class="stringliteral">"Could not read parameter delt1"</span>);</div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>     </div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, </div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>                   context, <span class="stringliteral">"merge_delt2"</span>,</div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>                   CPL_TYPE_DOUBLE, &delt2),</div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>        <span class="stringliteral">"Could not read parameter delt2"</span>);</div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span> </div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span> </div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span> </div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span> </div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span> </div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span> </div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>     <span class="keywordflow">if</span> (ex_method == EXTRACT_OPTIMAL || ex_method == EXTRACT_2D)</div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>     {</div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>         <span class="comment">/* Don't append window number if optimal/2d extraction.</span></div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span> <span class="comment">           There's only one window in these cases, and</span></div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span> <span class="comment">           it allows the response/efficiency recipe to save </span></div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span> <span class="comment">           both optimally and linearly extracted spectra</span></div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span> <span class="comment">           (without overwriting). */</span></div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span> </div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>         filename_window = -1;  <span class="comment">/* -1 means don't append window</span></div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span> <span class="comment">                      number to filename */</span></div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>     }</div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>     {</div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>         filename_window = window;</div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>     }</div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span> </div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>     n_traces = (ex_method == EXTRACT_2D) ? uves_round_double(slit_length) : 1;</div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>     </div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( first_abs_order = <a class="code" href="group__uves__pfits.html#gaa6a185f3150b22d6ce30439bfacbb78c" title="Get first absolute order number.">uves_pfits_get_firstabsorder</a>(linetable_header[0]), </div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>        <span class="stringliteral">"Could not read order numbers from line table header"</span>);</div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( last_abs_order  = <a class="code" href="group__uves__pfits.html#gad090d54b01606904ef8d740f766c2fde" title="Get last absolute order number.">uves_pfits_get_lastabsorder</a> (linetable_header[0]), </div>
-<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>        <span class="stringliteral">"Could not read order numbers from line table header"</span>);</div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span> </div>
-<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>     <span class="keywordflow">if</span> (window == 2)</div>
-<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>     {</div>
-<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Extracting object"</span>);</div>
-<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>     }</div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>     <span class="keywordflow">if</span>( ff_method == FF_EXTRACT ) {</div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cosmic_image=<a class="code" href="group__uves__utils.html#gaa4b717df379e29d4c74c066a528e37b2" title="Flag blemishes in a flat image.">uves_image_mflat_detect_blemishes</a>(master_flat,</div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>                                  backsubbed_header));</div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>     }</div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span> </div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( extracted = </div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>        <a class="code" href="group__uves__extract.html#ga724649dabb1df68c512fdd9e99b36f0d" title="Extract a spectrum.">uves_extract</a>(back_subbed, </div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>             backsubbed_noise,</div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>             backsubbed_header,</div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>             ordertable, </div>
-<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>             order_locations,</div>
-<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>             slit_length,               <span class="comment">/* Slit length (pixels)     */</span></div>
-<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>             slit_offset,               <span class="comment">/* Slit center offset       */</span></div>
-<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>             parameters, </div>
-<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>             context,                   <span class="comment">/* Extraction method, kappa */</span></div>
-<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>         mode,</div>
-<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>             <span class="keyword">false</span>,                     <span class="comment">/* Don't extract partial bins */</span></div>
-<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>                         debug_mode,</div>
-<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>             chip,</div>
-<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>             &extracted_header,         <span class="comment">/* Spectrum header          */</span></div>
-<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>             &extracted_noise,          <span class="comment">/* Spectrum noise           */</span></div>
-<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>             <span class="comment">/* Optimal extraction parameters: */</span></div>
-<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>             &extracted_sky,            <span class="comment">/* Sky                      */</span></div>
-<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>             &extracted_sky_noise,      <span class="comment">/* Sky                      */</span></div>
-<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>             cosmic_mask, </div>
-<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>             &cosmic_image,</div>
-<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>             (debug_mode) ? </div>
-<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>             &profile_table : NULL,</div>
-<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>             &weights,                  <span class="comment">/* If optimal, weights</span></div>
-<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span> <span class="comment">                              are defined              */</span></div>
-<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>             info_tbl,</div>
-<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>                         order_trace),</div>
-<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>        <span class="stringliteral">"Error extracting spectrum"</span>);</div>
-<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span> </div>
-<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>     <span class="keywordflow">if</span> (x != NULL) {</div>
-<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>         *x = cpl_image_duplicate(extracted);</div>
-<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>         *x_header = <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(extracted_header);</div>
-<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>     }</div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span> </div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>     <span class="keywordflow">if</span> (ex_method == EXTRACT_OPTIMAL) {</div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>         <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" hot pixels were detected during optimal extraction"</span>,</div>
-<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>                      cpl_table_get_nrow(*cosmic_mask));</div>
-<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>         </div>
-<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>         <span class="keywordflow">if</span> (cpl_table_get_nrow(*cosmic_mask) > 0) {</div>
-<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_table(*cosmic_mask, <span class="stringliteral">"X"</span>, <span class="stringliteral">"Y"</span>, </div>
-<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>                                    <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">"hot/cold pixels"</span>,</div>
-<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>                                    cpl_table_get_nrow(*cosmic_mask)),</div>
-<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>                    <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>         }</div>
-<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>     }</div>
-<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>     </div>
-<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>     <span class="comment">/* Save extracted spectrum + noise + sky + noise, and</span></div>
-<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span> <span class="comment">       if optimal: weightmap + crmask + order_trace */</span></div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>     <span class="keywordflow">if</span> (debug_mode) {</div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>         <span class="comment">/* This (bit ugly) code selects filename</span></div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span> <span class="comment">         *  and description string depending on</span></div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span> <span class="comment">         *  whether flat-fielding was already done</span></div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span> </div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span> </div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span> </div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(extracted_header,</div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>                            backsubbed_header,</div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>                            <span class="stringliteral">"^ESO "</span>,0),<span class="stringliteral">"error copying hierarch keys"</span>);</div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span> </div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span> </div>
-<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local((ff_method == FF_PIXEL) ? </div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>                                      <span class="stringliteral">"Extracted, flatfielded spectrum"</span> :</div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>                                      <span class="stringliteral">"Extracted spectrum"</span>,</div>
-<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>                                      (ff_method == FF_PIXEL) ? </div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>                                      <span class="stringliteral">"xfb"</span> : <span class="stringliteral">"xb"</span>,</div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>                                      extracted, chip, -1,</div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>                                      filename_window, extracted_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>                <span class="stringliteral">"Error saving extracted%s spectrum"</span>, </div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>                (ff_method == FF_PIXEL) ? <span class="stringliteral">", flatfielded"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>         </div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local((ff_method == FF_PIXEL) ?</div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>                                      <span class="stringliteral">"Extracted, flatfielded spectrum noise"</span> :</div>
-<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>                                      <span class="stringliteral">"Extracted spectrum noise"</span>,</div>
-<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>                                      (ff_method == FF_PIXEL) ? </div>
-<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>                                      <span class="stringliteral">"errxfb"</span> : <span class="stringliteral">"errxb"</span>,</div>
-<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>                                      extracted_noise, chip, -1, </div>
-<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>                                      filename_window, extracted_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>                <span class="stringliteral">"Error saving noise of extracted%s spectrum"</span>, </div>
-<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>                (ff_method == FF_PIXEL) ? <span class="stringliteral">", flatfielded"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>         </div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>         <span class="keywordflow">if</span> (extracted_sky != NULL)</div>
-<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>             {</div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local((ff_method == FF_PIXEL) ? </div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>                                              <span class="stringliteral">"Extracted, flatfielded sky"</span> : </div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>                                              <span class="stringliteral">"Extracted sky"</span>,</div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>                                              (ff_method == FF_PIXEL) ? </div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>                                              <span class="stringliteral">"xfsky"</span> : <span class="stringliteral">"xsky"</span>,</div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>                                              extracted_sky, chip, -1,</div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>                                              filename_window, extracted_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>                        <span class="stringliteral">"Error saving extracted%s sky"</span>, </div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>                        (ff_method == FF_PIXEL) ? <span class="stringliteral">", flatfielded"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>                 </div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local((ff_method == FF_PIXEL) ? </div>
-<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>                                              <span class="stringliteral">"Noise of extracted, flatfielded sky"</span> : </div>
-<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>                                              <span class="stringliteral">"Noise of extracted sky"</span>,</div>
-<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>                                              (ff_method == FF_PIXEL) ? </div>
-<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>                                              <span class="stringliteral">"errxfsky"</span> : <span class="stringliteral">"errxsky"</span>,</div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>                                              extracted_sky_noise, chip, -1,</div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>                                              filename_window, extracted_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>                        <span class="stringliteral">"Error saving extracted%s sky noise"</span>, </div>
-<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>                        (ff_method == FF_PIXEL) ? <span class="stringliteral">", flatfielded"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>             }</div>
-<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>         </div>
-<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>         <span class="keywordflow">if</span> (ex_method == EXTRACT_OPTIMAL)</div>
-<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span>             {</div>
-<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Optimal extraction weights"</span>, </div>
-<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>                                              <span class="stringliteral">"weights"</span>,</div>
-<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>                                              weights, chip, -1,</div>
-<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>                                              filename_window, </div>
-<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>                                              backsubbed_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>                        <span class="stringliteral">"Error saving weights map"</span>);</div>
-<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>                 </div>
-<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"Cosmic ray table"</span>, <span class="stringliteral">"crmask"</span>, </div>
-<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>                                              *cosmic_mask, chip, -1,</div>
-<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>                                              filename_window, </div>
-<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>                                              backsubbed_header, NULL),</div>
-<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>                        <span class="stringliteral">"Error saving cosmic ray mask"</span>);</div>
-<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span> </div>
-<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Cosmic ray image"</span>, <span class="stringliteral">"crimage"</span>,</div>
-<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>                                              cosmic_image, chip, -1,</div>
-<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>                                              filename_window, </div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>                                              backsubbed_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>                        <span class="stringliteral">"Error saving cosmic ray mask"</span>);</div>
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span> </div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>                 <span class="keywordflow">if</span> (profile_table != NULL)</div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>                     {</div>
-<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>                         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"Profile table"</span>, <span class="stringliteral">"profile"</span>, </div>
-<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>                                                      profile_table, chip, -1,</div>
-<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>                                                      filename_window, </div>
-<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>                                                      backsubbed_header, NULL),</div>
-<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>                                <span class="stringliteral">"Error saving profile table"</span>);</div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>                     }</div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>             }</div>
-<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>     }</div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span> </div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>     <span class="comment">/* Extract + resample master flat, only if necessary */</span></div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>     <span class="keywordflow">if</span> (master_flat != NULL && (ff_method == FF_EXTRACT || resampled_mf != NULL))</div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>     {</div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Extracting master flat field"</span>);</div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>         </div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>         <span class="comment">/* Extract the master flat spectrum.</span></div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span> <span class="comment">           If object was extracted with method=optimal,</span></div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span> <span class="comment">           then temporarily set method=weighted */</span></div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>         </div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>         <span class="keywordflow">if</span> (ex_method == EXTRACT_OPTIMAL)</div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>         {</div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *temp_method = <span class="stringliteral">"weighted"</span>;</div>
-<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>             </div>
-<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>             <span class="comment">/* Cast to non-const is okay. After extraction, the </span></div>
-<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span> <span class="comment">               parameter is set to 'optimal' (see below), so there</span></div>
-<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span> <span class="comment">               is not net change (unless the extraction fails, in</span></div>
-<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span> <span class="comment">               which case parameter list will change).</span></div>
-<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_set_parameter((cpl_parameterlist *) parameters,</div>
-<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>                           context, UVES_EXTRACT_ID <span class="stringliteral">".method"</span>, </div>
-<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>                           CPL_TYPE_STRING, &temp_method),</div>
-<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>                <span class="stringliteral">"Error setting extraction method to '%s'"</span>, temp_method);</div>
-<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>         }</div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>         </div>
-<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( extracted_mf = </div>
-<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>            <a class="code" href="group__uves__extract.html#ga724649dabb1df68c512fdd9e99b36f0d" title="Extract a spectrum.">uves_extract</a>((cpl_image *)master_flat,  <span class="comment">/* const-cast ok,</span></div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span> <span class="comment">                                  outlier pixels are</span></div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span> <span class="comment">                                  flagged bad only in</span></div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span> <span class="comment">                                  optimal extraction */</span></div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>                 mflat_noise,</div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>                 NULL,           <span class="comment">/* FITS header */</span></div>
-<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>                 ordertable, </div>
-<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>                 order_locations,</div>
-<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>                 slit_length,    <span class="comment">/* Slit length (pixels)     */</span></div>
-<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>                 slit_offset,    <span class="comment">/* Slit center offset       */</span></div>
-<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>                 parameters, context, <span class="comment">/* Extraction method, </span></div>
-<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span> <span class="comment">                            kappa */</span></div>
-<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>             mode,</div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>                 <span class="keyword">false</span>,          <span class="comment">/* Extraction partial bins? */</span></div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>                                 debug_mode,</div>
-<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>                 chip,</div>
-<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>                 NULL,           <span class="comment">/* Spectrum header          */</span></div>
-<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>                 &extracted_mf_noise,  <span class="comment">/* Spectrum noise     */</span></div>
-<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>                 NULL, </div>
-<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>                 NULL,           <span class="comment">/* Sky                      */</span></div>
-<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>                 NULL, </div>
-<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>                 NULL, </div>
-<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>                 NULL,    <span class="comment">/* Cosmic ray table/image,</span></div>
-<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span> <span class="comment">                         profile     */</span></div>
-<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>                 &weights, <span class="comment">/* Weights are used unchanged */</span></div>
-<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>                 NULL,</div>
-<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>                                 NULL),  </div>
-<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>            <span class="stringliteral">"Error extracting master flat spectrum"</span>);</div>
-<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>         </div>
-<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>         <span class="comment">/* Reset parameter to previous value </span></div>
-<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span> <span class="comment">           (parameter list is declared const) */</span></div>
-<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>         <span class="keywordflow">if</span> (ex_method == EXTRACT_OPTIMAL) {</div>
-<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>                 <span class="keyword">const</span> <span class="keywordtype">char</span> *method = <span class="stringliteral">"optimal"</span>;</div>
-<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>                 </div>
-<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>                 <span class="comment">/* Cast to non-const is okay. On successful termination,</span></div>
-<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span> <span class="comment">                   there is no net change in the parameter list (see above). */</span></div>
-<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_set_parameter((cpl_parameterlist *) parameters,</div>
-<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>                                           context, UVES_EXTRACT_ID <span class="stringliteral">".method"</span>, </div>
-<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>                                           CPL_TYPE_STRING, &method),</div>
-<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span>                        <span class="stringliteral">"Error resetting extraction method to '%s'"</span>, method);</div>
-<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>             }</div>
-<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>         </div>
-<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>         <span class="keywordflow">if</span> (debug_mode) {</div>
-<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>                 <span class="keywordtype">double</span> ff_mean;</div>
-<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>                 </div>
-<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>                 <span class="comment">/* Save normalized master flat spectrum + noise */</span></div>
-<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>                 uves_free_image(&temp_image);</div>
-<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span>                 </div>
-<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span>                 ff_mean    = cpl_image_get_mean(extracted_mf);</div>
-<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>                 </div>
-<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( temp_image = </div>
-<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>                        cpl_image_divide_scalar_create(extracted_mf, ff_mean),</div>
-<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>                        <span class="stringliteral">"Could not normalize master flat spectrum"</span>);</div>
-<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>                 </div>
-<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Normalized master flat spectrum"</span>,</div>
-<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>                                              <span class="stringliteral">"xmf"</span>,</div>
-<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>                                              temp_image, chip, -1,</div>
-<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>                                              filename_window, extracted_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>                        <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>                 </div>
-<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>                 <span class="comment">/* Also rescale noise before saving */</span></div>
-<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>                 uves_free_image(&temp_image);</div>
-<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( temp_image = </div>
-<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>                        cpl_image_divide_scalar_create(extracted_mf_noise,</div>
-<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>                                                       ff_mean),</div>
-<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span>                        <span class="stringliteral">"Could not rescale master flat noise spectrum"</span>);</div>
-<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>                 </div>
-<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Noise of normalized "</span></div>
-<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>                                              <span class="stringliteral">"master flat spectrum"</span>, <span class="stringliteral">"errxmf"</span>,</div>
-<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>                                              temp_image, chip, -1,</div>
-<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span>                                              filename_window, extracted_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>                        <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>                 </div>
-<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>                 uves_free_image(&temp_image);</div>
-<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>             }</div>
-<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>         </div>
-<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>         <span class="comment">/* Rebin master flat */</span></div>
-<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>         <span class="keywordflow">if</span> (resampled_mf != NULL) {</div>
-<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Rebinning master flat spectrum"</span>);</div>
-<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span> </div>
-<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span> </div>
-<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>                 <span class="comment">/* Use dispersion solution obtained at slit center </span></div>
-<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span> <span class="comment">                 * (high accuracy is non-essential here, the resampled</span></div>
-<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span> <span class="comment">                 * flat-field is not used in further processing</span></div>
-<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span> <span class="comment">                 */</span></div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span> </div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *resampled_mf = <a class="code" href="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c" title="Rebin a spectrum.">uves_rebin</a>(extracted_mf,</div>
-<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>                                                   parameters, context,</div>
-<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>                                                   linetable,</div>
-<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>                                                   dispersion_relation[1],</div>
-<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>                                                   first_abs_order,</div>
-<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>                                                   last_abs_order,</div>
-<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>                                                   n_traces,</div>
-<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>                                                   <span class="keyword">false</span>,</div>
-<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>                                                   <span class="keyword">false</span>,</div>
-<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>                                                   rebinned_header),</div>
-<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>                        <span class="stringliteral">"Error resampling master flat"</span>);</div>
-<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>            </div>
-<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>  </div>
-<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *wave_map = <a class="code" href="group__uves__utils.html#gae7a22d7bd34d61c32515d570e512e189" title="Generates wave map.">uves_get_wave_map</a>(back_subbed,</div>
-<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>                             context,</div>
-<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>                             parameters,</div>
-<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>                             ordertable, </div>
-<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>                             linetable,</div>
-<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>                             order_locations,</div>
-<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>                             dispersion_relation[1],</div>
-<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>                             first_abs_order,</div>
-<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>                             last_abs_order,</div>
-<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>                             slit_length),</div>
-<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>                        <span class="stringliteral">"Error generating wave map"</span>);</div>
-<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>  </div>
-<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Wave map"</span>,</div>
-<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>                                              <span class="stringliteral">"wave_map"</span>,</div>
-<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>                                              *wave_map, chip, -1,</div>
-<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>                                              filename_window, </div>
-<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>                          extracted_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>                        <span class="stringliteral">"Error saving wavemap image"</span>);</div>
-<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>                 </div>
-<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>  </div>
-<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span> </div>
-<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>                 <span class="keywordflow">if</span> (debug_mode) {</div>
-<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span> </div>
-<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(*rebinned_header,</div>
-<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>                            backsubbed_header,</div>
-<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>                            <span class="stringliteral">"^ESO "</span>, 0),<span class="stringliteral">"error copying hierarch keys"</span>);</div>
-<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span> </div>
-<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span> </div>
-<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Resampled master flat spectrum"</span>,</div>
-<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>                                                  <span class="stringliteral">"wxmf"</span>, *resampled_mf, chip, -1,</div>
-<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>                                                  filename_window, *rebinned_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>                            <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>                 }</div>
-<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>             }</div>
-<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>     } <span class="comment">/* Extract, rebin master flat */</span></div>
-<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>  </div>
-<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>     <span class="comment">/* If we didn't already, divide by the flat field */</span></div>
-<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>     <span class="keywordflow">if</span> (ff_method == FF_EXTRACT)</div>
-<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>     {</div>
-<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span> </div>
-<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Dividing by normalized master flat-field (method = extract)"</span>);</div>
-<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>         </div>
-<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>     <span class="comment">/* Remember this for later */</span></div>
-<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span>     extracted_noff = cpl_image_duplicate(extracted);</div>
-<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span> </div>
-<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__flatfield.html#gaa96727cda19ae088e522da95f95e6dbd" title="Divide by flat field.">uves_flatfielding</a>(extracted   , extracted_noise,</div>
-<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>                              extracted_mf, extracted_mf_noise),</div>
-<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>            <span class="stringliteral">"Could not perform flat-fielding"</span>);</div>
-<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span> </div>
-<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>     <span class="keywordflow">if</span> (extracted_sky != NULL)</div>
-<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>     {</div>
-<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__flatfield.html#gaa96727cda19ae088e522da95f95e6dbd" title="Divide by flat field.">uves_flatfielding</a>(extracted_sky, extracted_sky_noise,</div>
-<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>                                 extracted_mf, extracted_mf_noise),</div>
-<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>               <span class="stringliteral">"Could not perform flat-fielding"</span>);</div>
-<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>     }</div>
-<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span> </div>
-<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>     <span class="comment">/* Save flat-fielded spectrum + noise */</span></div>
-<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>     <span class="keywordflow">if</span> (debug_mode) </div>
-<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>     {</div>
-<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Flat-fielded spectrum"</span>, <span class="stringliteral">"fxb"</span>,</div>
-<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>                                     extracted, chip, -1, filename_window,</div>
-<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>                                     extracted_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>               <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>             </div>
-<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Flat-fielded spectrum noise"</span>, </div>
-<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>                                     <span class="stringliteral">"errfxb"</span>, extracted_noise, chip,</div>
-<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>                                     -1, filename_window, extracted_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>               <span class="stringliteral">"Error saving noise of flat-fielded image"</span>);</div>
-<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>     }</div>
-<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span> </div>
-<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>     <span class="keywordflow">if</span> (debug_mode && extracted_sky != NULL) </div>
-<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>     {</div>
-<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Flat-fielded sky"</span>, <span class="stringliteral">"fxsky"</span>, </div>
-<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>                                     extracted_sky, chip, -1,</div>
-<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>                                     filename_window, extracted_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>               <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span>             </div>
-<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Flat-fielded sky noise"</span>, <span class="stringliteral">"errfxsky"</span>,</div>
-<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>                                     extracted_sky_noise, chip, -1,</div>
-<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>                                     filename_window, extracted_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>               <span class="stringliteral">"Error saving noise of flat-fielded image"</span>);</div>
-<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>     }</div>
-<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>     }</div>
-<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span> </div>
-<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>     <span class="keywordflow">if</span> (fx != NULL)</div>
-<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>     {</div>
-<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>        *fx = cpl_image_duplicate(extracted);</div>
-<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>     }</div>
-<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span> </div>
-<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>     <span class="comment">/* Variance of flat-fielded, pre-rebinned spectrum</span></div>
-<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span> <span class="comment">       is a product of science recipe (for whatever reason...) */</span></div>
-<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>     <span class="keywordflow">if</span> (flatfielded_variance != NULL)</div>
-<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>     {</div>
-<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span> </div>
-<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *flatfielded_variance = </div>
-<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>               cpl_image_multiply_create(extracted_noise, </div>
-<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>                                         extracted_noise),</div>
-<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>               <span class="stringliteral">"Error creating variance of flatfielded spectrum"</span>);</div>
-<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span> </div>
-<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>        <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(flatfielded_variance_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *flatfielded_variance_header = </div>
-<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>               <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(extracted_header),</div>
-<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>               <span class="stringliteral">"Could not copy extracted spectrum header"</span>);</div>
-<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>     }</div>
-<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>     </div>
-<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>     <span class="keywordflow">if</span> (blaze_correct)</div>
-<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>     {</div>
-<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>        <span class="keywordflow">if</span> (ex_method == EXTRACT_2D)</div>
-<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>        {</div>
-<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>           <span class="comment">/* It requires an extracted spectrum which we don't have in 2d mode */</span></div>
-<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>           <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Skipping blaze function correction for 2d extraction mode"</span>);</div>
-<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>        }</div>
-<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>        <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>        {</div>
-<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>           <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating blaze function correction"</span>);</div>
-<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>             </div>
-<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( blaze_ratio = <a class="code" href="group__uves__reduce.html#ga14f04fabe88e704a3e9fd81e666ed237" title="Get (normalized) object to flat-field blaze function ratio.">uves_get_blaze_ratio</a>(extracted, extracted_noise),</div>
-<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span>                  <span class="stringliteral">"Error calculating blaze function correction"</span>);</div>
-<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>             </div>
-<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>           <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Applying blaze function correction"</span>);</div>
-<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>             </div>
-<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_image_divide(extracted      , blaze_ratio),</div>
-<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span>                   cpl_image_divide(extracted_noise, blaze_ratio)),</div>
-<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span>                 <span class="stringliteral">"Error applying blaze function correction"</span>);</div>
-<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>             </div>
-<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>           <span class="keywordflow">if</span> (extracted_sky != NULL)   <span class="comment">/* If sky was extracted (optimal) */</span></div>
-<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>           {</div>
-<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>              <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_image_multiply(extracted_sky, blaze_ratio),</div>
-<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>                      cpl_image_multiply(extracted_sky_noise, blaze_ratio)),</div>
-<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>                    <span class="stringliteral">"Error applying blaze function correction"</span>);</div>
-<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>           }</div>
-<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>        }</div>
-<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>     }</div>
-<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span> </div>
-<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>     <span class="comment">/* Rebin from (x, order) to (wavelength, order) */</span></div>
-<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Rebinning spectrum"</span>);</div>
-<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>     <span class="keywordflow">if</span> (ex_method == EXTRACT_2D) {</div>
-<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>        <span class="keywordflow">if</span> (tilt_corr) {</div>
-<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>           <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Line tilt correction in rebinning "</span></div>
-<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>                            <span class="stringliteral">"of 2d spectra is unsupported"</span>);</div>
-<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>        }</div>
-<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>        dispersion_int = <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(dispersion_relation[window-1]);</div>
-<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>     }</div>
-<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (tilt_corr) { </div>
-<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>        <span class="keywordtype">double</span> objoffset;</div>
-<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>         </div>
-<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>        <span class="keywordflow">if</span> (info_tbl != NULL) {</div>
-<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>           objoffset = cpl_table_get_column_median(*info_tbl, <span class="stringliteral">"ObjPosOnSlit"</span>);</div>
-<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>           <span class="comment">/* This is the object position measured from the bottom of</span></div>
-<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span> <span class="comment">             the of specified extraction window.</span></div>
-<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span> <span class="comment">             Need to convert this to the same coordinates as used in the wavecal.</span></div>
-<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span> <span class="comment">          */</span></div>
-<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>             </div>
-<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Object position (from bottom of extraction window) = %.2f pixels"</span>,</div>
-<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>                          objoffset);</div>
-<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>             </div>
-<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>           objoffset -= slit_length / 2;</div>
-<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>           <span class="comment">/* Now wrt middle of specified window */</span></div>
-<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>             </div>
-<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>           objoffset += slit_offset;</div>
-<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>           <span class="comment">/* Now wrt order trace center */</span></div>
-<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span>             </div>
-<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Object position (from slit center) = %.2f pixels"</span>,</div>
-<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>                          objoffset);</div>
-<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>        }</div>
-<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>        <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>           <span class="comment">/* Sky windows */</span></div>
-<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Object offset not measured during extraction, "</span></div>
-<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>                          <span class="stringliteral">"using %.2f pixels"</span>, slit_offset);</div>
-<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>           objoffset = slit_offset;</div>
-<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>        }</div>
-<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>         </div>
-<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dispersion_int = <a class="code" href="group__uves__reduce.html#gacf021d0b42c1b02d38ecbff5f3353f54" title="1st order line tilt correction">interpolate_wave</a>(dispersion_relation,</div>
-<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>                                                 linetable_header,</div>
-<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>                                                 objoffset),</div>
-<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>               <span class="stringliteral">"Could not interpolate dispersion solutions"</span>);</div>
-<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>         </div>
-<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>        <span class="keywordflow">if</span> (debug_mode) {</div>
-<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( poly_table = <a class="code" href="group__uves__utils__polynomial.html#ga63ecda6c71765c319dc2d4141222bb42" title="Convert a polynomial to a table.">uves_polynomial_convert_to_table</a>(dispersion_int), </div>
-<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>                  <span class="stringliteral">"Error converting polynomial to table"</span>);</div>
-<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>             </div>
-<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"Interpolated dispersion relation"</span>,</div>
-<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span>                                        <span class="stringliteral">"intdisp"</span>, </div>
-<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>                                        poly_table, chip, -1,</div>
-<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>                                        filename_window, backsubbed_header, NULL),</div>
-<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>                  <span class="stringliteral">"Error saving interpolated dispersion solution"</span>);</div>
-<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>        }</div>
-<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>     }</div>
-<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>        dispersion_int = <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(dispersion_relation[window-1]);</div>
-<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>     }</div>
-<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>     </div>
-<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>     uves_free_propertylist(rebinned_header);</div>
-<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *rebinned_spectrum = <a class="code" href="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c" title="Rebin a spectrum.">uves_rebin</a>(extracted,</div>
-<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>                                            parameters, context, </div>
-<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>                                            linetable, dispersion_int,</div>
-<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>                                            first_abs_order,</div>
-<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span>                                            last_abs_order,</div>
-<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span>                                            n_traces,</div>
-<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>                                            <span class="keyword">false</span>,</div>
-<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>                                            <span class="keyword">false</span>,</div>
-<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>                                            rebinned_header),</div>
-<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>            <span class="stringliteral">"Could not rebin spectrum"</span>);</div>
-<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>     </div>
-<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Rebinning spectrum noise"</span>);</div>
-<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span> </div>
-<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>     <span class="comment">/* As in UVES/MIDAS the noise spectrum is rebinned to the same</span></div>
-<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span> <span class="comment">     * level. It is not propagated using error propagation formula.</span></div>
-<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span> <span class="comment">     * In other words, after this step, the noise level no longer</span></div>
-<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span> <span class="comment">     *  describes the empirical noise actually observed in the spectrum</span></div>
-<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span> <span class="comment">     * (which does change during rebinning depending on the bin width)</span></div>
-<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span> </div>
-<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span>     {</div>
-<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>        <span class="keywordtype">bool</span> threshold_to_positive = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span> </div>
-<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>        uves_free_propertylist(rebinned_header);</div>
-<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *rebinned_noise = <a class="code" href="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c" title="Rebin a spectrum.">uves_rebin</a>(extracted_noise,</div>
-<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span>                                            parameters, context, </div>
-<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span>                                            linetable, dispersion_int,</div>
-<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span>                                            first_abs_order,</div>
-<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span>                                            last_abs_order,</div>
-<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span>                                            n_traces,</div>
-<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span>                                            threshold_to_positive,</div>
-<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span>                                            <span class="keyword">true</span>,</div>
-<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span>                                            rebinned_header),</div>
-<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>               <span class="stringliteral">"Could not rebin spectrum noise"</span>);</div>
-<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span>     }</div>
-<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span> </div>
-<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>     <span class="keywordflow">if</span> (extracted_sky != NULL) {</div>
-<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>        <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Rebinning sky spectrum"</span>);</div>
-<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span> </div>
-<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>        <span class="keywordflow">if</span> (tilt_corr) {</div>
-<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>           <span class="comment">/* Optimal extraction extracts an average of the sky</span></div>
-<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span> <span class="comment">             in the entire extraction window.</span></div>
-<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span> <span class="comment">               </span></div>
-<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span> <span class="comment">             Calibrate the sky spectrum using the dispersion solution</span></div>
-<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span> <span class="comment">             at the extraction window center, i.e. at offset = slit_offset</span></div>
-<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span> <span class="comment">          */</span></div>
-<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>             </div>
-<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dispersion_int_sky = <a class="code" href="group__uves__reduce.html#gacf021d0b42c1b02d38ecbff5f3353f54" title="1st order line tilt correction">interpolate_wave</a>(dispersion_relation,</div>
-<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>                                                        linetable_header,</div>
-<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>                                                        slit_offset),</div>
-<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>                  <span class="stringliteral">"Could not interpolate dispersion solutions"</span>);</div>
-<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>        }</div>
-<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>        <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>           <span class="comment">/* Use middle solution */</span></div>
-<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>           dispersion_int_sky = <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(dispersion_relation[1]);</div>
-<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>        }</div>
-<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span> </div>
-<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>        <span class="comment">/* Re-use the same rebinned_header */</span></div>
-<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>        uves_free_propertylist(rebinned_header);</div>
-<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( rebinned_sky = <a class="code" href="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c" title="Rebin a spectrum.">uves_rebin</a>(extracted_sky,</div>
-<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>                                         parameters, context, </div>
-<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>                                         linetable, dispersion_int_sky,</div>
-<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>                                         first_abs_order,</div>
-<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>                                         last_abs_order,</div>
-<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>                                         n_traces,</div>
-<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>                                         <span class="keyword">false</span>,</div>
-<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>                                         <span class="keyword">false</span>,</div>
-<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>                                         rebinned_header),</div>
-<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>               <span class="stringliteral">"Could not rebin sky noise"</span>);</div>
-<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>         </div>
-<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>        <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Rebinning sky spectrum noise"</span>);</div>
-<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>         </div>
-<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>        uves_free_propertylist(rebinned_header);</div>
-<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( rebinned_sky_noise = <a class="code" href="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c" title="Rebin a spectrum.">uves_rebin</a>(extracted_sky_noise,</div>
-<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>                                               parameters, context, </div>
-<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>                                               linetable, dispersion_int_sky,</div>
-<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>                                               first_abs_order,</div>
-<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>                                               last_abs_order,</div>
-<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>                                               n_traces,</div>
-<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>                                               <span class="keyword">true</span>,</div>
-<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>                                               <span class="keyword">true</span>,</div>
-<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>                                               rebinned_header),</div>
-<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>               <span class="stringliteral">"Could not rebin sky noise"</span>);</div>
-<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>     }</div>
-<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>     </div>
-<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>     <span class="comment">/* Save rebinned spectrum + noise */</span></div>
-<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>     <span class="keywordflow">if</span> (debug_mode) </div>
-<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>     {</div>
-<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>        <span class="keyword">const</span> <span class="keywordtype">char</span> *filename         = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>        <span class="keyword">const</span> <span class="keywordtype">char</span> *filename_err     = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>        <span class="keyword">const</span> <span class="keywordtype">char</span> *filename_sky     = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>        <span class="keyword">const</span> <span class="keywordtype">char</span> *filename_sky_err = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>        <span class="keywordflow">if</span> (ff_method == FF_PIXEL)</div>
-<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>        {</div>
-<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span>           filename         = <span class="stringliteral">"wxfb"</span>;</div>
-<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>           filename_err     = <span class="stringliteral">"errwxfb"</span>;</div>
-<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>           filename_sky     = <span class="stringliteral">"wxfsky"</span>;</div>
-<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>           filename_sky_err = <span class="stringliteral">"errwxfsky"</span>;</div>
-<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>        }</div>
-<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ff_method == FF_EXTRACT)</div>
-<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>        {</div>
-<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span>           filename         =    <span class="stringliteral">"wfxb"</span>;</div>
-<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>           filename_err     = <span class="stringliteral">"errwfxb"</span>;</div>
-<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>           filename_sky     =    <span class="stringliteral">"wfxsky"</span>;</div>
-<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>           filename_sky_err = <span class="stringliteral">"errwfxsky"</span>;</div>
-<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>        }</div>
-<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ff_method == FF_NO)</div>
-<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>        {</div>
-<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>           filename         =    <span class="stringliteral">"wxb"</span>;</div>
-<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>           filename_err     = <span class="stringliteral">"errwxb"</span>;</div>
-<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>           filename_sky     =    <span class="stringliteral">"wxsky"</span>;</div>
-<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>           filename_sky_err = <span class="stringliteral">"errwxsky"</span>;</div>
-<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>        }</div>
-<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>        <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>        {</div>
-<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>           <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <span class="keyword">false</span>, <span class="stringliteral">"Unknown ff_method: %d"</span>, ff_method);</div>
-<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>        }</div>
-<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span> </div>
-<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(*rebinned_header,</div>
-<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>                                                     backsubbed_header,</div>
-<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>                                                     <span class="stringliteral">"^ESO "</span>, 1),<span class="stringliteral">"error copying hierarch keys"</span>);</div>
-<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span> </div>
-<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>         </div>
-<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Rebinned spectrum"</span>,</div>
-<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>                                     filename, *rebinned_spectrum,</div>
-<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>                                     chip, -1, filename_window, *rebinned_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>               <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>         </div>
-<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Noise of rebinned spectrum"</span>, filename_err,</div>
-<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>                                     *rebinned_noise, chip, -1, filename_window, </div>
-<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>                                     *rebinned_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>               <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span> </div>
-<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>        <span class="keywordflow">if</span> (extracted_sky != NULL)</div>
-<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>        {</div>
-<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Rebinned sky"</span>, filename_sky,</div>
-<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>                                        rebinned_sky, chip, -1,</div>
-<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>                                        filename_window, *rebinned_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>                  <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>             </div>
-<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Noise of rebinned sky"</span>,</div>
-<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>                                        filename_sky_err, </div>
-<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>                                        rebinned_sky_noise, chip, -1,</div>
-<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>                                        filename_window, *rebinned_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>                  <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>        }</div>
-<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>     }</div>
-<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span> </div>
-<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>     <span class="comment">/* We also need to produce the  rebinned-immediately-after-extraction</span></div>
-<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span> <span class="comment">       (but non flat-fielded) spectrum,</span></div>
-<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span> <span class="comment">       which is a product of the science recipe.</span></div>
-<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span> <span class="comment">       This is trivial unless ff_method is FF_EXTRACT </span></div>
-<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span>     <span class="keywordflow">if</span> (resampled_spectrum != NULL)   <span class="comment">/* Not for sky windows */</span></div>
-<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span>     {</div>
-<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>        <span class="keywordflow">if</span> (ff_method == FF_EXTRACT)</div>
-<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>        {</div>
-<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>           <span class="comment">/* Rebin the extracted spectrum (before flatfielding) */</span></div>
-<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>           <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Rebinning pre-flatfielded spectrum"</span>);    </div>
-<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>             </div>
-<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>           uves_free_propertylist(rebinned_header);</div>
-<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *resampled_spectrum = </div>
-<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>                  <a class="code" href="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c" title="Rebin a spectrum.">uves_rebin</a>(extracted_noff,</div>
-<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>                             parameters, context, </div>
-<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>                             linetable, dispersion_int,</div>
-<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>                             first_abs_order,</div>
-<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>                             last_abs_order,</div>
-<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>                             n_traces,</div>
-<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>                             <span class="keyword">false</span>,</div>
-<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>                             <span class="keyword">false</span>,</div>
-<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>                             rebinned_header),</div>
-<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>                  <span class="stringliteral">"Could not rebin spectrum"</span>);</div>
-<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>             </div>
-<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>           <span class="keywordflow">if</span> (debug_mode) {</div>
-<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span> </div>
-<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>              <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Rebinned, extracted spectrum"</span>, </div>
-<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>                                           <span class="stringliteral">"wx"</span>, *resampled_spectrum, </div>
-<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>                                           chip, -1, filename_window,</div>
-<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>                                           *rebinned_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>                     <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>           }</div>
-<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span> </div>
-<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>        }</div>
-<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>        <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>        {</div>
-<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *resampled_spectrum = cpl_image_duplicate(*rebinned_spectrum),</div>
-<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>                  <span class="stringliteral">"Error copying rebinned spectrum"</span>);</div>
-<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>        }</div>
-<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>     }</div>
-<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span> </div>
-<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>     <span class="comment">/* Merge orders to 1D spectrum */</span></div>
-<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>     <span class="keywordflow">if</span> (extracted_sky != NULL)</div>
-<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>     {</div>
-<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>        <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Merging sky"</span>);</div>
-<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *merged_sky = <a class="code" href="group__uves__merge.html#gad20fc9888b15052d53d15c7fd2041181" title="Merge orders.">uves_merge_orders</a>(rebinned_sky, </div>
-<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>                                               rebinned_sky_noise,</div>
-<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>                                               *rebinned_header,</div>
-<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>                                               m_method,</div>
-<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>                                               n_traces,</div>
-<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span>                                               merged_header,</div>
-<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>                                               delt1,delt2,chip,</div>
-<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>                                               &merged_sky_noise),</div>
-<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>               <span class="stringliteral">"Error merging sky"</span>);</div>
-<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>     }</div>
-<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>     </div>
-<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Merging spectrum"</span>);</div>
-<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span>     uves_free_propertylist(merged_header);</div>
-<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *merged_spectrum = <a class="code" href="group__uves__merge.html#gad20fc9888b15052d53d15c7fd2041181" title="Merge orders.">uves_merge_orders</a>(*rebinned_spectrum, </div>
-<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>                                                 *rebinned_noise,</div>
-<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>                         *rebinned_header,</div>
-<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>                         m_method,</div>
-<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>                         n_traces,</div>
-<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>                         merged_header,</div>
-<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>                         delt1,delt2,chip,</div>
-<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>                         merged_noise),</div>
-<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>            <span class="stringliteral">"Error merging orders"</span>);</div>
-<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span> </div>
-<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(*merged_header,</div>
-<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>                          backsubbed_header,</div>
-<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>                          <span class="stringliteral">"^ESO "</span>, 0),<span class="stringliteral">"error copying hierarch keys"</span>);</div>
-<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span> </div>
-<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span>     <span class="keywordflow">if</span> (debug_mode)</div>
-<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>     {</div>
-<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Merged spectrum"</span>, <span class="stringliteral">"m"</span>, *merged_spectrum, </div>
-<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>                                     chip, -1, filename_window, *merged_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>               <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>         </div>
-<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Noise of merged spectrum"</span>, <span class="stringliteral">"errm"</span>,</div>
-<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>                                     *merged_noise, chip, -1,</div>
-<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>                                     filename_window, *merged_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>               <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>     }</div>
-<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>     </div>
-<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>     <span class="keywordflow">if</span> (debug_mode && extracted_sky != NULL)</div>
-<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>     {</div>
-<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Merged sky"</span>, <span class="stringliteral">"msky"</span>, *merged_sky, </div>
-<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>                                     chip, -1,</div>
-<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>                                     filename_window, *merged_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>               <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>         </div>
-<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Noise of merged sky"</span>, <span class="stringliteral">"errmsky"</span>, </div>
-<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>                                     merged_sky_noise, chip, -1,</div>
-<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span>                                     filename_window, *merged_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span>               <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span>     }</div>
-<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span> </div>
-<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>   cleanup:</div>
-<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>     uves_free_image(&extracted);</div>
-<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>     uves_free_image(&extracted_noff);</div>
-<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>     uves_free_image(&extracted_noise);</div>
-<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>     uves_free_image(&extracted_sky);</div>
-<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>     uves_free_image(&extracted_sky_noise);</div>
-<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>     uves_free_image(&cosmic_image);</div>
-<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>     uves_free_image(&blaze_ratio);</div>
-<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>     uves_free_image(&weights);</div>
-<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&dispersion_int);</div>
-<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&dispersion_int_sky);</div>
-<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>     uves_free_table(&poly_table);</div>
-<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>     uves_free_propertylist(&extracted_header);</div>
-<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>     uves_free_table(&profile_table);</div>
-<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>     uves_free_image(&extracted_mf);</div>
-<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>     uves_free_image(&extracted_mf_noise);</div>
-<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>     uves_free_image(&rebinned_sky);</div>
-<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>     uves_free_image(&rebinned_sky_noise);</div>
-<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>     uves_free_image(&merged_sky_noise);</div>
-<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>     </div>
-<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>     uves_free_image(&temp_image);</div>
-<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>     </div>
-<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span> }</div>
-<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span> </div>
-<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>                       </div>
-<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span> </div>
-<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l02600"></a><span class="lineno"><a class="code" href="group__uves__reduce.html#gad5574e8fead13bd32bd46eb60ca091ac"> 2600</a></span> <a class="code" href="group__uves__reduce.html#gad5574e8fead13bd32bd46eb60ca091ac" title="Subtract sky from extracted spectrum.">subtract_sky</a>(cpl_image *rebinned_obj, cpl_image *rebinned_obj_noise,</div>
-<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span>          <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rebinned_obj_header,</div>
-<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>          <span class="keyword">const</span> cpl_image *rebinned_sky1, <span class="keyword">const</span> cpl_image *rebinned_sky1_noise,</div>
-<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span>          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rebinned_sky1_header,</div>
-<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>          <span class="keyword">const</span> cpl_image *rebinned_sky2, <span class="keyword">const</span> cpl_image *rebinned_sky2_noise,</div>
-<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rebinned_sky2_header,</div>
-<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>          cpl_image **merged_obj, cpl_image **merged_obj_noise, </div>
-<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>          <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *merged_obj_header,</div>
-<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>          <span class="keyword">const</span> cpl_image *merged_sky1, <span class="keyword">const</span> cpl_image *merged_sky1_noise, </div>
-<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *merged_sky1_header,</div>
-<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span>          <span class="keyword">const</span> cpl_image *merged_sky2, <span class="keyword">const</span> cpl_image *merged_sky2_noise, </div>
-<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *merged_sky2_header,</div>
-<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span>          <span class="keywordtype">double</span> obj_slit, <span class="keywordtype">double</span> sky1_slit, <span class="keywordtype">double</span> sky2_slit)</div>
-<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span> {</div>
-<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span>     <span class="keywordtype">double</span> wavestep;</div>
-<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span>     <span class="keywordtype">int</span> norders;</div>
-<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span> </div>
-<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span>     cpl_image *merged_sky = NULL;               <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l02618"></a><span class="lineno"> 2618</span>     </div>
-<div class="line"><a name="l02619"></a><span class="lineno"> 2619</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( rebinned_obj != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( rebinned_obj_noise != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( rebinned_obj_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( merged_obj != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( merged_obj_noise != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( merged_obj_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( *merged_obj != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( *merged_obj_noise != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span>     <span class="comment">/* Sky spectra may be NULL (if not extracted) */</span></div>
-<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span> </div>
-<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( wavestep = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(rebinned_obj_header), </div>
-<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span>        <span class="stringliteral">"Error reading wavelength step"</span>);</div>
-<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span>     norders = cpl_image_get_size_y(rebinned_obj);</div>
-<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span> </div>
-<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>     <span class="comment">/* Do some consistency checking</span></div>
-<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span> <span class="comment">       (that 'wavestep' and 'norders' is same for all spectra) */</span></div>
-<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>     assure((rebinned_sky1 == NULL || norders == cpl_image_get_size_y(rebinned_sky1)) &&</div>
-<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>        (rebinned_sky2 == NULL || norders == cpl_image_get_size_y(rebinned_sky2)), </div>
-<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>        CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span>        <span class="stringliteral">"Different number of orders in object/sky spectra: obj = %d, "</span></div>
-<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>        <span class="stringliteral">"sky1 = %"</span> CPL_SIZE_FORMAT <span class="stringliteral">", sky3 = %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>        norders,</div>
-<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>        cpl_image_get_size_y(rebinned_sky1),</div>
-<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>        cpl_image_get_size_y(rebinned_sky2));</div>
-<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span> </div>
-<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>     <span class="keywordflow">if</span> (rebinned_sky1 != NULL)</div>
-<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>     {</div>
-<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>         <span class="keywordtype">double</span> wavestep1;</div>
-<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( wavestep1 = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(rebinned_sky1_header), </div>
-<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>            <span class="stringliteral">"Error reading wavelength step"</span>);</div>
-<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>         assure( fabs(wavestep1 - wavestep) / wavestep < 0.01, </div>
-<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span>             CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>             <span class="stringliteral">"Different bin widths: sky1 = %f ; obj = %f"</span>, </div>
-<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>             wavestep1, wavestep);</div>
-<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>     }</div>
-<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>     <span class="keywordflow">if</span> (rebinned_sky2 != NULL)</div>
-<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>     {</div>
-<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>         <span class="keywordtype">double</span> wavestep2;</div>
-<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( wavestep2 = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(rebinned_sky2_header),</div>
-<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>            <span class="stringliteral">"Error reading wavelength step"</span>);</div>
-<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>         assure( fabs(wavestep2 - wavestep) / wavestep < 0.01,</div>
-<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>             CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>             <span class="stringliteral">"Different bin widths: sky3 = %f ; obj = %f"</span>,</div>
-<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>             wavestep2, wavestep);</div>
-<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>     }</div>
-<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span> </div>
-<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>     <span class="comment">/* Subtract sky (rebinned spectrum) */</span></div>
-<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>     {</div>
-<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span>     <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>     <span class="keywordflow">for</span> (order = 1; order <= norders; order++)</div>
-<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>         {</div>
-<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span>         <span class="keywordtype">double</span> obj_start   , obj_end;</div>
-<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>         <span class="keywordtype">double</span> sky1_start  , sky1_end;</div>
-<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>         <span class="keywordtype">double</span> sky2_start  , sky2_end;</div>
-<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>         <span class="keywordtype">double</span> common_start, common_end;</div>
-<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>         </div>
-<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( obj_start = <a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203" title="Read the wstart keyword.">uves_pfits_get_wstart</a>(rebinned_obj_header, order),</div>
-<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>                <span class="stringliteral">"Error reading start wavelength for order #%d"</span>, order);</div>
-<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( obj_end   = <a class="code" href="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595" title="Read the wend keyword.">uves_pfits_get_wend</a>  (rebinned_obj_header, order),</div>
-<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>                <span class="stringliteral">"Error reading end wavelength for order #%d"</span>, order);</div>
-<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span>         </div>
-<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>         <span class="keywordflow">if</span> (rebinned_sky1 != NULL)</div>
-<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>             {</div>
-<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( sky1_start = </div>
-<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>                    <a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203" title="Read the wstart keyword.">uves_pfits_get_wstart</a>(rebinned_sky1_header, order), </div>
-<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span>                    <span class="stringliteral">"Error reading start wavelength for order #%d"</span>, order);</div>
-<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( sky1_end   = </div>
-<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>                    <a class="code" href="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595" title="Read the wend keyword.">uves_pfits_get_wend</a>  (rebinned_sky1_header, order), </div>
-<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span>                    <span class="stringliteral">"Error reading end wavelength for order #%d"</span>, order);</div>
-<div class="line"><a name="l02688"></a><span class="lineno"> 2688</span>             }</div>
-<div class="line"><a name="l02689"></a><span class="lineno"> 2689</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span>             {</div>
-<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>             sky1_start = obj_start;</div>
-<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>             sky1_end   = obj_end;</div>
-<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>             }</div>
-<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>         </div>
-<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>         <span class="keywordflow">if</span> (rebinned_sky2 != NULL)</div>
-<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span>             {</div>
-<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( sky2_start = </div>
-<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>                    <a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203" title="Read the wstart keyword.">uves_pfits_get_wstart</a>(rebinned_sky2_header, order), </div>
-<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>                    <span class="stringliteral">"Error reading start wavelength for order #%d"</span>, order);</div>
-<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( sky2_end   = </div>
-<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>                    <a class="code" href="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595" title="Read the wend keyword.">uves_pfits_get_wend</a>  (rebinned_sky2_header, order),</div>
-<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>                    <span class="stringliteral">"Error reading end wavelength for order #%d"</span>, order);</div>
-<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>             }</div>
-<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>             {</div>
-<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>             sky2_start = obj_start;</div>
-<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>             sky2_end   = obj_end;</div>
-<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>             }</div>
-<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>         </div>
-<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( merged_sky =</div>
-<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>                <a class="code" href="group__uves__reduce.html#ga26fe47b7ce4f084c5833056dcda44fb5" title="Subtract sky from 1 row of spectrum.">subtract_sky_row</a>(rebinned_obj , rebinned_obj_noise , </div>
-<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>                     obj_start , obj_end,  obj_slit,</div>
-<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>                     rebinned_sky1, rebinned_sky1_noise,</div>
-<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>                     sky1_start, sky1_end, sky1_slit,</div>
-<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>                     rebinned_sky2, rebinned_sky2_noise, </div>
-<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>                     sky2_start, sky2_end, sky2_slit,</div>
-<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>                     order, wavestep, &common_start, </div>
-<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>                     &common_end),</div>
-<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>                <span class="stringliteral">"Could not subtract sky for rebinned spectrum order #%d"</span>, order);</div>
-<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>         uves_free_image(&merged_sky);</div>
-<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span>         </div>
-<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga343861c33e84f1358c3235d41e8474b8" title="Write the wstart keyword.">uves_pfits_set_wstart</a>(rebinned_obj_header, order, common_start),</div>
-<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span>                <span class="stringliteral">"Error updating start wavelength for order #%d"</span>, order);</div>
-<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga30c035689f06d716cca55250181f9956" title="Write the wend keyword.">uves_pfits_set_wend</a>  (rebinned_obj_header, order, common_end  ), </div>
-<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>                <span class="stringliteral">"Error updating start wavelength for order #%d"</span>, order);</div>
-<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>         }</div>
-<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>     }</div>
-<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span> </div>
-<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>     <span class="comment">/* Subtract sky (merged spectrum) */</span></div>
-<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>     {</div>
-<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>     <span class="keywordtype">double</span> obj_start   , obj_end;</div>
-<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>     <span class="keywordtype">double</span> sky1_start  , sky1_end;</div>
-<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>     <span class="keywordtype">double</span> sky2_start  , sky2_end;</div>
-<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>     <span class="keywordtype">double</span> common_start, common_end;</div>
-<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span>     </div>
-<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>     obj_start = <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(merged_obj_header);</div>
-<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span>     obj_end   = obj_start + wavestep * (cpl_image_get_size_x(*merged_obj) - 1);</div>
-<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>     </div>
-<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>     <span class="keywordflow">if</span> (merged_sky1 != NULL)</div>
-<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>         {</div>
-<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>         sky1_start = <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(merged_sky1_header);</div>
-<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>         sky1_end   = sky1_start +</div>
-<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>             wavestep * (cpl_image_get_size_x(merged_sky1) - 1);</div>
-<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>         }</div>
-<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>         {</div>
-<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>         sky1_start = obj_start;</div>
-<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>         sky1_end   = obj_end;</div>
-<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>         }</div>
-<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>     </div>
-<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>     <span class="keywordflow">if</span> (merged_sky2 != NULL)</div>
-<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>         {</div>
-<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>         sky2_start = <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(merged_sky2_header);</div>
-<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>         sky2_end   = sky2_start + </div>
-<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>             wavestep * (cpl_image_get_size_x(merged_sky2) - 1);</div>
-<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>         }</div>
-<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>         {</div>
-<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>         sky2_start = obj_start;</div>
-<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>         sky2_end   = obj_end;</div>
-<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>         }</div>
-<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>     </div>
-<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>     <span class="comment">/* Subtract sky for image row 1 (the only row in the image) */</span></div>
-<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(     merged_sky = <a class="code" href="group__uves__reduce.html#ga26fe47b7ce4f084c5833056dcda44fb5" title="Subtract sky from 1 row of spectrum.">subtract_sky_row</a>(*merged_obj, *merged_obj_noise, </div>
-<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>                           obj_start , obj_end,  obj_slit,</div>
-<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>                           merged_sky1, merged_sky1_noise,</div>
-<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>                           sky1_start, sky1_end, sky1_slit,</div>
-<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>                           merged_sky2, merged_sky2_noise,</div>
-<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>                           sky2_start, sky2_end, sky2_slit,</div>
-<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>                           1, wavestep, &common_start,</div>
-<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>                           &common_end),</div>
-<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>         <span class="stringliteral">"Error subtracting sky of merged spectrum"</span>);</div>
-<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span>     </div>
-<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gaaed14627f7b8206cc8970cd1f787a6db" title="Write the crval1 keyword.">uves_pfits_set_crval1</a>(merged_obj_header, common_start),</div>
-<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>            <span class="stringliteral">"Could not update start wavelength"</span>);</div>
-<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span>     </div>
-<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>     <span class="comment">/* Make sure that the last bin corresponds to 'common_end' wavelength */</span></div>
-<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_crop_image(merged_obj,</div>
-<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>                    1, 1,</div>
-<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>                    1 + uves_round_double((common_end - </div>
-<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>                               common_start)/wavestep), </div>
-<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>                    1),</div>
-<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>            <span class="stringliteral">"Error cropping merged spectrum"</span>);</div>
-<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>     </div>
-<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_crop_image(merged_obj_noise,</div>
-<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>                    1, 1,</div>
-<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>                    1 + uves_round_double((common_end - </div>
-<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>                               common_start)/wavestep), </div>
-<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>                    1),</div>
-<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>            <span class="stringliteral">"Error cropping merged spectrum noise"</span>);</div>
-<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>     </div>
-<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>     <span class="keywordflow">if</span> (merged_sky != NULL)</div>
-<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>         {</div>
-<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>         <span class="comment">/* The image header also applies for the sky */</span></div>
-<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>         assure( cpl_image_get_size_x(merged_sky) == </div>
-<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>             cpl_image_get_size_x(*merged_obj), CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>             <span class="stringliteral">"Sky and object spectrum sizes differ, "</span></div>
-<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>             <span class="stringliteral">"sky = %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" bins, obj = %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" bins"</span>, </div>
-<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>             cpl_image_get_size_x(merged_sky),</div>
-<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>             cpl_image_get_size_x(*merged_obj));</div>
-<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>         }</div>
-<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>     }</div>
-<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>     </div>
-<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>   cleanup:</div>
-<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span>     {</div>
-<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>         uves_free_image(&merged_sky);</div>
-<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span>     }</div>
-<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>     <span class="keywordflow">return</span> merged_sky;</div>
-<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span> }    </div>
-<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span> </div>
-<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span> </div>
-<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l02847"></a><span class="lineno"><a class="code" href="group__uves__reduce.html#ga26fe47b7ce4f084c5833056dcda44fb5"> 2847</a></span> <a class="code" href="group__uves__reduce.html#ga26fe47b7ce4f084c5833056dcda44fb5" title="Subtract sky from 1 row of spectrum.">subtract_sky_row</a>(cpl_image *obj, cpl_image *obj_noise, </div>
-<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span>          <span class="keywordtype">double</span> obj_start, <span class="keywordtype">double</span> obj_end, <span class="keywordtype">double</span> obj_slit,</div>
-<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>          <span class="keyword">const</span> cpl_image *sky1, <span class="keyword">const</span> cpl_image *sky1_noise, </div>
-<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span>          <span class="keywordtype">double</span> sky1_start, <span class="keywordtype">double</span> sky1_end, <span class="keywordtype">double</span> sky1_slit,</div>
-<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span>          <span class="keyword">const</span> cpl_image *sky2, <span class="keyword">const</span> cpl_image *sky2_noise, </div>
-<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span>          <span class="keywordtype">double</span> sky2_start, <span class="keywordtype">double</span> sky2_end, <span class="keywordtype">double</span> sky2_slit,</div>
-<div class="line"><a name="l02853"></a><span class="lineno"> 2853</span>          <span class="keywordtype">int</span> row, <span class="keywordtype">double</span> wavestep, </div>
-<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>          <span class="keywordtype">double</span> *common_start, <span class="keywordtype">double</span> *common_end)</div>
-<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span> {</div>
-<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>     <span class="keywordtype">int</span> first_bin_obj;</div>
-<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>     <span class="keywordtype">int</span> first_bin_sky1;</div>
-<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>     <span class="keywordtype">int</span> first_bin_sky2;</div>
-<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span>     <span class="keywordtype">int</span> nbins;</div>
-<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span>     cpl_image *common_obj = NULL;     <span class="comment">/* Extract the common wavelength range ... */</span></div>
-<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span>     cpl_image *common_sky1 = NULL;    <span class="comment">/* ... to these 1D images                  */</span></div>
-<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span>     cpl_image *common_sky2 = NULL;</div>
-<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span>     cpl_image *common_obj_noise = NULL;</div>
-<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>     cpl_image *common_sky1_noise = NULL;</div>
-<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>     cpl_image *common_sky2_noise = NULL;</div>
-<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span>     <span class="keywordtype">bool</span> is_good1, is_good2;          <span class="comment">/* Do the two sky images contain valid pixels? */</span></div>
-<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span> </div>
-<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>     cpl_image *common_sky         = NULL;   <span class="comment">/* The combined sky spectrum normalized</span></div>
-<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span> <span class="comment">                           to object slit length (returned) */</span></div>
-<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span>     cpl_image *common_sky_noise   = NULL;</div>
-<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span> </div>
-<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span>     cpl_image *temp               = NULL;</div>
-<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span> </div>
-<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span>     *common_start = uves_max_double(obj_start, uves_max_double(sky1_start, sky2_start));</div>
-<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span>     *common_end   = uves_min_double(obj_end  , uves_min_double(sky1_end  , sky2_end  ));</div>
-<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span> </div>
-<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>     <span class="keywordflow">if</span> (*common_start <= *common_end)</div>
-<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span>     {</div>
-<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>         nbins = 1 + uves_round_double((*common_end - *common_start) / wavestep);</div>
-<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>         </div>
-<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Lower sky range: %f - %f w.l.u."</span>, sky1_start, sky1_end);</div>
-<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Upper sky range: %f - %f w.l.u."</span>, sky2_start, sky2_end);</div>
-<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Object sky range: %f - %f w.l.u."</span>, obj_start, obj_end);</div>
-<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Sky/object common wavelength range in order %d: "</span></div>
-<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span>                <span class="stringliteral">"%f - %f w.l.u. (%d bins)"</span>, </div>
-<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span>                row, *common_start, *common_end, nbins);</div>
-<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span>         </div>
-<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span>         first_bin_obj  = 1 + uves_round_double((*common_start - obj_start )/wavestep);</div>
-<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>         first_bin_sky1 = 1 + uves_round_double((*common_start - sky1_start)/wavestep);</div>
-<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>         first_bin_sky2 = 1 + uves_round_double((*common_start - sky2_start)/wavestep);</div>
-<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span>         </div>
-<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span>         <span class="comment">/* Extract common bins, normalize sky windows to object slit length */</span></div>
-<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( common_obj       = cpl_image_extract(obj, </div>
-<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span>                             first_bin_obj, row,</div>
-<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span>                             first_bin_obj + nbins-1, row), </div>
-<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>            <span class="stringliteral">"Error extracting common rows (object)"</span>);</div>
-<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>         </div>
-<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( common_obj_noise = cpl_image_extract(obj_noise, </div>
-<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>                             first_bin_obj, row,</div>
-<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>                             first_bin_obj + nbins-1, row), </div>
-<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span>            <span class="stringliteral">"Error extracting common rows (object noise)"</span>);</div>
-<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span>         </div>
-<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span>         <span class="keywordflow">if</span> (sky1 != NULL)</div>
-<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span>         {</div>
-<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( common_sky1 =</div>
-<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>                cpl_image_extract(sky1, </div>
-<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>                          first_bin_sky1, row,</div>
-<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span>                          first_bin_sky1 + nbins-1, row),</div>
-<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>                <span class="stringliteral">"Error extracting common rows (lower sky)"</span>);</div>
-<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>             </div>
-<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( common_sky1_noise =</div>
-<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span>                cpl_image_extract(sky1_noise, </div>
-<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>                          first_bin_sky1, row,</div>
-<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>                          first_bin_sky1 + nbins-1, row), </div>
-<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span>                <span class="stringliteral">"Error extracting common rows (lower sky noise)"</span>);</div>
-<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span>             </div>
-<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_image_multiply_scalar(common_sky1      , obj_slit / sky1_slit),</div>
-<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span>                 cpl_image_multiply_scalar(common_sky1_noise, obj_slit / sky1_slit)),</div>
-<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span>                <span class="stringliteral">"Error normalizing sky flux"</span>);</div>
-<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span>             </div>
-<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span>             is_good1 = </div>
-<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span>             cpl_image_count_rejected(common_sky1) <</div>
-<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span>             cpl_image_get_size_x(common_sky1)*</div>
-<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span>             cpl_image_get_size_y(common_sky1) &&  </div>
-<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span>             <span class="comment">/* Note order of evaluation. cpl_image_get_min() would fail if</span></div>
-<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span> <span class="comment">               there were no good pixels */</span></div>
-<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span>             cpl_image_get_min(common_sky1_noise) > 0;</div>
-<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span>         }</div>
-<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span>         {</div>
-<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span>             is_good1 = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>         }</div>
-<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>         <span class="keywordflow">if</span> (sky2 != NULL)</div>
-<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>         {</div>
-<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( common_sky2       = cpl_image_extract(sky2, </div>
-<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>                                  first_bin_sky2, row,</div>
-<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>                                  first_bin_sky2 + nbins-1, row), </div>
-<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>                <span class="stringliteral">"Error extracting common rows (upper sky)"</span>);</div>
-<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>             </div>
-<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( common_sky2_noise = cpl_image_extract(sky2_noise, </div>
-<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>                                  first_bin_sky2, row,</div>
-<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>                                  first_bin_sky2 + nbins-1, row), </div>
-<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>                <span class="stringliteral">"Error extracting common rows (upper sky noise)"</span>);</div>
-<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>             </div>
-<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_image_multiply_scalar(common_sky2      , obj_slit / sky2_slit),</div>
-<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>                 cpl_image_multiply_scalar(common_sky2_noise, obj_slit / sky2_slit)),</div>
-<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>                <span class="stringliteral">"Error normalizing sky flux"</span>);</div>
-<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span> </div>
-<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>             is_good2 = </div>
-<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>             cpl_image_count_rejected(common_sky2) <</div>
-<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span>             cpl_image_get_size_x(common_sky2)*</div>
-<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>             cpl_image_get_size_y(common_sky2) &&  </div>
-<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>             cpl_image_get_min(common_sky2_noise) > 0;</div>
-<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>         }</div>
-<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>         {</div>
-<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>             is_good2 = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>         }</div>
-<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>                </div>
-<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>         </div>
-<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>         <span class="comment">/* Optimally average the two sky windows </span></div>
-<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span> <span class="comment">           (one of which might not have been extracted) */</span></div>
-<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>         <span class="keywordflow">if</span> (is_good1 && is_good2)</div>
-<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>         {</div>
-<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( common_sky = </div>
-<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span>                            <a class="code" href="group__uves__utils.html#ga1f407a71fc1fd3d5d0d83fdc141669eb" title="Optimally average images.">uves_average_images</a>(common_sky1, common_sky1_noise,</div>
-<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span>                                                common_sky2, common_sky2_noise,</div>
-<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span>                                                &common_sky_noise),</div>
-<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>                            <span class="stringliteral">"Error combining sky windows"</span>);</div>
-<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>                 }</div>
-<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (is_good1 && !is_good2)</div>
-<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>         {</div>
-<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>             common_sky       = cpl_image_duplicate(common_sky1);</div>
-<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span>             common_sky_noise = cpl_image_duplicate(common_sky1_noise);</div>
-<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>         }</div>
-<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!is_good1 && is_good2)</div>
-<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span>         {</div>
-<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>             common_sky       = cpl_image_duplicate(common_sky2);</div>
-<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>             common_sky_noise = cpl_image_duplicate(common_sky2_noise);</div>
-<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span>         }</div>
-<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>         {</div>
-<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>             common_sky = NULL;</div>
-<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>         }</div>
-<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>         </div>
-<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>         <span class="keywordflow">if</span> (common_sky != NULL)</div>
-<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>         {   </div>
-<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>             <span class="comment">/* Do the subtraction, threshold to [0 ; oo [  */</span></div>
-<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>       <span class="comment">/* Commented out as we should not lower threshold to 0</span></div>
-<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span> <span class="comment">            check(( cpl_image_subtract (common_obj, common_sky),</span></div>
-<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span> <span class="comment">                cpl_image_threshold(common_obj, </span></div>
-<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span> <span class="comment">                        0, DBL_MAX,</span></div>
-<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span> <span class="comment">                        0, DBL_MAX)),</span></div>
-<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span> <span class="comment">              "Error subtracting combined sky");</span></div>
-<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span> <span class="comment">      */</span></div>
-<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_image_subtract (common_obj, common_sky)),</div>
-<div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>               <span class="stringliteral">"Error subtracting combined sky"</span>);</div>
-<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>             </div>
-<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>             <span class="comment">/*  Propagate noise:  </span></div>
-<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span> <span class="comment">            obj_noise := sqrt( obj_noise^2 + sky_noise^2 )  */</span></div>
-<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_image_power(common_obj_noise, 2),</div>
-<div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>                 cpl_image_power(common_sky_noise, 2),</div>
-<div class="line"><a name="l03003"></a><span class="lineno"> 3003</span>                 cpl_image_add  (common_obj_noise, common_sky_noise),</div>
-<div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>                 cpl_image_power(common_obj_noise, 0.5)),</div>
-<div class="line"><a name="l03005"></a><span class="lineno"> 3005</span>               <span class="stringliteral">"Error propagating noise during sky subtration"</span>);</div>
-<div class="line"><a name="l03006"></a><span class="lineno"> 3006</span>             </div>
-<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span>             <span class="comment">/* Copy results to relevant row of input spectrum */</span></div>
-<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_image_copy(obj,</div>
-<div class="line"><a name="l03009"></a><span class="lineno"> 3009</span>                        common_obj,</div>
-<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span>                        1, row),</div>
-<div class="line"><a name="l03011"></a><span class="lineno"> 3011</span>                 cpl_image_copy(obj_noise,</div>
-<div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>                        common_obj_noise,</div>
-<div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>                        1, row)),</div>
-<div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>               <span class="stringliteral">"Error writing subtracted flux to row %d of spectrum"</span>, row);</div>
-<div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>         }</div>
-<div class="line"><a name="l03016"></a><span class="lineno"> 3016</span> </div>
-<div class="line"><a name="l03017"></a><span class="lineno"> 3017</span>     } <span class="comment">/* Object and both sky windows do have an overlap in this order */</span></div>
-<div class="line"><a name="l03018"></a><span class="lineno"> 3018</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03019"></a><span class="lineno"> 3019</span>     {</div>
-<div class="line"><a name="l03020"></a><span class="lineno"> 3020</span>         <span class="keywordtype">int</span> x;</div>
-<div class="line"><a name="l03021"></a><span class="lineno"> 3021</span>         </div>
-<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>         <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Extracted object and sky spectra have no overlap in order #%d. "</span></div>
-<div class="line"><a name="l03023"></a><span class="lineno"> 3023</span>              <span class="stringliteral">"Order marked as bad"</span>, row);</div>
-<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span>         </div>
-<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>         <span class="keywordflow">for</span> (x = 1; x <= cpl_image_get_size_x(obj); x++)</div>
-<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>         {</div>
-<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_image_reject(obj      , x, row),</div>
-<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span>                 cpl_image_reject(obj_noise, x, row)),</div>
-<div class="line"><a name="l03029"></a><span class="lineno"> 3029</span>               <span class="stringliteral">"Error rejecting sky-subtracted spectrum "</span></div>
-<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span>               <span class="stringliteral">"at (x, row) = (%d, %d)"</span>, x, row);</div>
-<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span>         }</div>
-<div class="line"><a name="l03032"></a><span class="lineno"> 3032</span>     }</div>
-<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span>     </div>
-<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span>   cleanup:</div>
-<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span>     uves_free_image(&common_obj);</div>
-<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>     uves_free_image(&common_sky1);</div>
-<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span>     uves_free_image(&common_sky2);</div>
-<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span>     uves_free_image(&common_obj_noise);</div>
-<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>     uves_free_image(&common_sky_noise);</div>
-<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span>     uves_free_image(&common_sky1_noise);</div>
-<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span>     uves_free_image(&common_sky2_noise);</div>
-<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>     uves_free_image(&temp);</div>
-<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>     {</div>
-<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>         uves_free_image(&common_sky);</div>
-<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span>     }</div>
-<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>     </div>
-<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span>     <span class="keywordflow">return</span> common_sky;</div>
-<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span> }</div>
-<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span> </div>
-<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03069"></a><span class="lineno"><a class="code" href="group__uves__reduce.html#gad6aedc87f04001c793180df5b7edac16"> 3069</a></span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__reduce.html#gad6aedc87f04001c793180df5b7edac16" title="Measure object offset w.r.t. slit center.">get_offset</a>(<span class="keyword">const</span> cpl_image *back_subbed, </div>
-<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span>              <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span>              <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span>              <span class="keywordtype">double</span> search_range, <span class="keywordtype">int</span> nsamples, <span class="keywordtype">double</span> *doffset)</div>
-<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span> {</div>
-<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span>     cpl_image *chunk = NULL;          <span class="comment">/* Chunks                          */</span></div>
-<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span>     cpl_image *chunk_col = NULL;      <span class="comment">/* Chunks median collapsed along x */</span></div>
-<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span> </div>
-<div class="line"><a name="l03077"></a><span class="lineno"> 3077</span>     <span class="keywordtype">int</span> minorder, maxorder;</div>
-<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span>     <span class="keywordtype">int</span> order, x, nx, ny;</div>
-<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span>     <span class="keywordtype">double</span> sum = 0, sum_o = 0, sum_oo = 0;         <span class="comment">/* Zero'th, first and </span></div>
-<div class="line"><a name="l03080"></a><span class="lineno"> 3080</span> <span class="comment">                              second moment of offsets */</span></div>
-<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span>     <span class="keywordtype">int</span> s_r_int = uves_round_double(search_range); <span class="comment">/* Search range as an integer */</span></div>
-<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span> </div>
-<div class="line"><a name="l03083"></a><span class="lineno"> 3083</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( back_subbed != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( ordertable != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03085"></a><span class="lineno"> 3085</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( order_locations != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span>     <span class="comment">/* doffset may be NULL */</span></div>
-<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span>     assure( nsamples >= 1, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l03088"></a><span class="lineno"> 3088</span>         <span class="stringliteral">"Illegal number of sample points per order: %d"</span>, nsamples);</div>
-<div class="line"><a name="l03089"></a><span class="lineno"> 3089</span> </div>
-<div class="line"><a name="l03090"></a><span class="lineno"> 3090</span>     minorder = cpl_table_get_column_min(ordertable, <span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l03091"></a><span class="lineno"> 3091</span>     maxorder = cpl_table_get_column_max(ordertable, <span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>     nx = cpl_image_get_size_x(back_subbed);</div>
-<div class="line"><a name="l03093"></a><span class="lineno"> 3093</span>     ny = cpl_image_get_size_y(back_subbed);</div>
-<div class="line"><a name="l03094"></a><span class="lineno"> 3094</span> </div>
-<div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>     sum    = 0;</div>
-<div class="line"><a name="l03096"></a><span class="lineno"> 3096</span>     sum_o  = 0;</div>
-<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span>     sum_oo = 0;</div>
-<div class="line"><a name="l03098"></a><span class="lineno"> 3098</span>     <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++)</div>
-<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>     {</div>
-<div class="line"><a name="l03100"></a><span class="lineno"> 3100</span>         <span class="keywordtype">int</span> stepx = nx / nsamples;</div>
-<div class="line"><a name="l03101"></a><span class="lineno"> 3101</span>         </div>
-<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span>         <span class="keywordflow">for</span> (x = stepx/2; x <= nx; x += stepx)</div>
-<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span>         {</div>
-<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span>             <span class="keywordtype">int</span> y = uves_round_double(</div>
-<div class="line"><a name="l03105"></a><span class="lineno"> 3105</span>             <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x, order));</div>
-<div class="line"><a name="l03106"></a><span class="lineno"> 3106</span> </div>
-<div class="line"><a name="l03107"></a><span class="lineno"> 3107</span>             <span class="keywordflow">if</span> (1 <= y - s_r_int && y + s_r_int <= ny)</div>
-<div class="line"><a name="l03108"></a><span class="lineno"> 3108</span>             {</div>
-<div class="line"><a name="l03109"></a><span class="lineno"> 3109</span>                 <span class="keywordtype">double</span> offset;</div>
-<div class="line"><a name="l03110"></a><span class="lineno"> 3110</span> </div>
-<div class="line"><a name="l03111"></a><span class="lineno"> 3111</span>                 <span class="comment">/* Get centroid.pos. of median collapsed window */</span></div>
-<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span>                 </div>
-<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span>                 chunk = </div>
-<div class="line"><a name="l03114"></a><span class="lineno"> 3114</span>                 cpl_image_extract(back_subbed,</div>
-<div class="line"><a name="l03115"></a><span class="lineno"> 3115</span>                           uves_max_int(1 , x - stepx/2), </div>
-<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span>                           y - s_r_int,</div>
-<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>                           uves_min_int(nx, x + stepx/2),</div>
-<div class="line"><a name="l03118"></a><span class="lineno"> 3118</span>                           y + s_r_int);</div>
-<div class="line"><a name="l03119"></a><span class="lineno"> 3119</span>                 </div>
-<div class="line"><a name="l03120"></a><span class="lineno"> 3120</span>                 chunk_col = </div>
-<div class="line"><a name="l03121"></a><span class="lineno"> 3121</span>                 <span class="comment">/* Result is single column image */</span></div>
-<div class="line"><a name="l03122"></a><span class="lineno"> 3122</span>                 cpl_image_collapse_median_create(chunk,</div>
-<div class="line"><a name="l03123"></a><span class="lineno"> 3123</span>                                  1,</div>
-<div class="line"><a name="l03124"></a><span class="lineno"> 3124</span>                                  0, 0); <span class="comment">/* No filtering */</span></div>
-<div class="line"><a name="l03125"></a><span class="lineno"> 3125</span>                 </div>
-<div class="line"><a name="l03126"></a><span class="lineno"> 3126</span>                 </div>
-<div class="line"><a name="l03127"></a><span class="lineno"> 3127</span>                 <span class="comment">/* Offset in world coordinates: row=1 in 'chunk_col'</span></div>
-<div class="line"><a name="l03128"></a><span class="lineno"> 3128</span> <span class="comment">                   corresponds to row=(y - s_r_int) in 'back_subbed' */</span></div>
-<div class="line"><a name="l03129"></a><span class="lineno"> 3129</span>                 offset = (y - s_r_int - 1) + </div>
-<div class="line"><a name="l03130"></a><span class="lineno"> 3130</span>                 cpl_image_get_centroid_y_window(chunk_col,</div>
-<div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>                                 1, 1,</div>
-<div class="line"><a name="l03132"></a><span class="lineno"> 3132</span>                                 1, </div>
-<div class="line"><a name="l03133"></a><span class="lineno"> 3133</span>                                 cpl_image_get_size_y(chunk_col));</div>
-<div class="line"><a name="l03134"></a><span class="lineno"> 3134</span> </div>
-<div class="line"><a name="l03135"></a><span class="lineno"> 3135</span>                 <span class="comment">/* Get offset relative to slit center */</span></div>
-<div class="line"><a name="l03136"></a><span class="lineno"> 3136</span>                 offset -= y;</div>
-<div class="line"><a name="l03137"></a><span class="lineno"> 3137</span> </div>
-<div class="line"><a name="l03138"></a><span class="lineno"> 3138</span>                 uves_free_image(&chunk);</div>
-<div class="line"><a name="l03139"></a><span class="lineno"> 3139</span>                 uves_free_image(&chunk_col);</div>
-<div class="line"><a name="l03140"></a><span class="lineno"> 3140</span>                 </div>
-<div class="line"><a name="l03141"></a><span class="lineno"> 3141</span>                 sum    += 1;</div>
-<div class="line"><a name="l03142"></a><span class="lineno"> 3142</span>                 sum_o  += offset;</div>
-<div class="line"><a name="l03143"></a><span class="lineno"> 3143</span>                 sum_oo += offset*offset;</div>
-<div class="line"><a name="l03144"></a><span class="lineno"> 3144</span>             }</div>
-<div class="line"><a name="l03145"></a><span class="lineno"> 3145</span>         }</div>
-<div class="line"><a name="l03146"></a><span class="lineno"> 3146</span>     }</div>
-<div class="line"><a name="l03147"></a><span class="lineno"> 3147</span>     </div>
-<div class="line"><a name="l03148"></a><span class="lineno"> 3148</span>     <span class="comment">/* This should never happen, but if it does </span></div>
-<div class="line"><a name="l03149"></a><span class="lineno"> 3149</span> <span class="comment">       fail cleanly instead of dividing by zero */</span></div>
-<div class="line"><a name="l03150"></a><span class="lineno"> 3150</span>     assure( sum > 0, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l03151"></a><span class="lineno"> 3151</span>         <span class="stringliteral">"No evaluation points inside image!"</span>);</div>
-<div class="line"><a name="l03152"></a><span class="lineno"> 3152</span> </div>
-<div class="line"><a name="l03153"></a><span class="lineno"> 3153</span>     <span class="keywordflow">if</span> (doffset != NULL)</div>
-<div class="line"><a name="l03154"></a><span class="lineno"> 3154</span>     {</div>
-<div class="line"><a name="l03155"></a><span class="lineno"> 3155</span>         *doffset = sqrt(sum_oo/(1.0*sum) - </div>
-<div class="line"><a name="l03156"></a><span class="lineno"> 3156</span>                 (sum_o*sum_o) / (sum*1.0*sum));</div>
-<div class="line"><a name="l03157"></a><span class="lineno"> 3157</span>     }</div>
-<div class="line"><a name="l03158"></a><span class="lineno"> 3158</span>     </div>
-<div class="line"><a name="l03159"></a><span class="lineno"> 3159</span>   cleanup:</div>
-<div class="line"><a name="l03160"></a><span class="lineno"> 3160</span>     uves_free_image(&chunk);</div>
-<div class="line"><a name="l03161"></a><span class="lineno"> 3161</span>     uves_free_image(&chunk_col);</div>
-<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span> </div>
-<div class="line"><a name="l03163"></a><span class="lineno"> 3163</span>     <span class="keywordflow">return</span> (1.0*sum_o) / sum;</div>
-<div class="line"><a name="l03164"></a><span class="lineno"> 3164</span> }</div>
-<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span> </div>
-<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span> </div>
-<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03189"></a><span class="lineno"> 3189</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03190"></a><span class="lineno"> 3190</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l03191"></a><span class="lineno"><a class="code" href="group__uves__reduce.html#ga14f04fabe88e704a3e9fd81e666ed237"> 3191</a></span> <a class="code" href="group__uves__reduce.html#ga14f04fabe88e704a3e9fd81e666ed237" title="Get (normalized) object to flat-field blaze function ratio.">uves_get_blaze_ratio</a>(<span class="keyword">const</span> cpl_image *spectrum,</div>
-<div class="line"><a name="l03192"></a><span class="lineno"> 3192</span>              <span class="keyword">const</span> cpl_image *spectrum_noise)</div>
-<div class="line"><a name="l03193"></a><span class="lineno"> 3193</span> {</div>
-<div class="line"><a name="l03194"></a><span class="lineno"> 3194</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l03195"></a><span class="lineno"> 3195</span>     <span class="keywordtype">int</span> smooth_x, smooth_y;</div>
-<div class="line"><a name="l03196"></a><span class="lineno"> 3196</span> </div>
-<div class="line"><a name="l03197"></a><span class="lineno"> 3197</span>     cpl_image *blaze_ratio       = NULL;</div>
-<div class="line"><a name="l03198"></a><span class="lineno"> 3198</span>     cpl_image *blaze_ratio_noise = NULL;</div>
-<div class="line"><a name="l03199"></a><span class="lineno"> 3199</span> </div>
-<div class="line"><a name="l03200"></a><span class="lineno"> 3200</span>     cpl_table *values = NULL;</div>
-<div class="line"><a name="l03201"></a><span class="lineno"> 3201</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *p = NULL;</div>
-<div class="line"><a name="l03202"></a><span class="lineno"> 3202</span> </div>
-<div class="line"><a name="l03203"></a><span class="lineno"> 3203</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( spectrum       != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03204"></a><span class="lineno"> 3204</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( spectrum_noise != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03205"></a><span class="lineno"> 3205</span>     </div>
-<div class="line"><a name="l03206"></a><span class="lineno"> 3206</span>     nx = cpl_image_get_size_x(spectrum);</div>
-<div class="line"><a name="l03207"></a><span class="lineno"> 3207</span>     ny = cpl_image_get_size_y(spectrum);</div>
-<div class="line"><a name="l03208"></a><span class="lineno"> 3208</span>     </div>
-<div class="line"><a name="l03209"></a><span class="lineno"> 3209</span>     blaze_ratio       = cpl_image_duplicate(spectrum);</div>
-<div class="line"><a name="l03210"></a><span class="lineno"> 3210</span>     blaze_ratio_noise = cpl_image_duplicate(spectrum_noise);</div>
-<div class="line"><a name="l03211"></a><span class="lineno"> 3211</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( blaze_ratio );</div>
-<div class="line"><a name="l03212"></a><span class="lineno"> 3212</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( blaze_ratio_noise );</div>
-<div class="line"><a name="l03213"></a><span class="lineno"> 3213</span>     </div>
-<div class="line"><a name="l03214"></a><span class="lineno"> 3214</span>     <span class="comment">/* Normalize each row in ratio to median = 1,</span></div>
-<div class="line"><a name="l03215"></a><span class="lineno"> 3215</span> <span class="comment">       so that the overall normalization doesn't change </span></div>
-<div class="line"><a name="l03216"></a><span class="lineno"> 3216</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l03217"></a><span class="lineno"> 3217</span> </div>
-<div class="line"><a name="l03218"></a><span class="lineno"> 3218</span> </div>
-<div class="line"><a name="l03219"></a><span class="lineno"> 3219</span>     {</div>
-<div class="line"><a name="l03220"></a><span class="lineno"> 3220</span>     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l03221"></a><span class="lineno"> 3221</span>     </div>
-<div class="line"><a name="l03222"></a><span class="lineno"> 3222</span>     <span class="keywordflow">for</span> (y = 1; y <= ny; y++)</div>
-<div class="line"><a name="l03223"></a><span class="lineno"> 3223</span>         {</div>
-<div class="line"><a name="l03224"></a><span class="lineno"> 3224</span>         <span class="keywordtype">double</span> median = cpl_image_get_median_window(blaze_ratio,</div>
-<div class="line"><a name="l03225"></a><span class="lineno"> 3225</span>                                 1, y,</div>
-<div class="line"><a name="l03226"></a><span class="lineno"> 3226</span>                                 nx, y);</div>
-<div class="line"><a name="l03227"></a><span class="lineno"> 3227</span>         </div>
-<div class="line"><a name="l03228"></a><span class="lineno"> 3228</span>         <span class="keywordflow">if</span> (median == 0)</div>
-<div class="line"><a name="l03229"></a><span class="lineno"> 3229</span>             {</div>
-<div class="line"><a name="l03230"></a><span class="lineno"> 3230</span>             <span class="comment">/* The cpl_image_get_median_window function is broken;</span></div>
-<div class="line"><a name="l03231"></a><span class="lineno"> 3231</span> <span class="comment">               it doesn't take bad pixels into account. That sometimes</span></div>
-<div class="line"><a name="l03232"></a><span class="lineno"> 3232</span> <span class="comment">               leads to a zero median */</span></div>
-<div class="line"><a name="l03233"></a><span class="lineno"> 3233</span>             </div>
-<div class="line"><a name="l03234"></a><span class="lineno"> 3234</span>             <span class="comment">/* This mostly happens for the first and last orders */</span></div>
-<div class="line"><a name="l03235"></a><span class="lineno"> 3235</span>             </div>
-<div class="line"><a name="l03236"></a><span class="lineno"> 3236</span>             <span class="keywordtype">double</span> max_noise = cpl_image_get_max(blaze_ratio_noise);</div>
-<div class="line"><a name="l03237"></a><span class="lineno"> 3237</span> </div>
-<div class="line"><a name="l03238"></a><span class="lineno"> 3238</span>             <span class="keywordflow">for</span> (x = 1; x <= nx; x++)</div>
-<div class="line"><a name="l03239"></a><span class="lineno"> 3239</span>                 {</div>
-<div class="line"><a name="l03240"></a><span class="lineno"> 3240</span>                 cpl_image_set(blaze_ratio      , x, y, 1);</div>
-<div class="line"><a name="l03241"></a><span class="lineno"> 3241</span> </div>
-<div class="line"><a name="l03242"></a><span class="lineno"> 3242</span>                 <span class="comment">/* effectively exclude from fit: */</span></div>
-<div class="line"><a name="l03243"></a><span class="lineno"> 3243</span>                 cpl_image_set(blaze_ratio_noise, x, y, max_noise);</div>
-<div class="line"><a name="l03244"></a><span class="lineno"> 3244</span>                 }</div>
-<div class="line"><a name="l03245"></a><span class="lineno"> 3245</span>             }</div>
-<div class="line"><a name="l03246"></a><span class="lineno"> 3246</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03247"></a><span class="lineno"> 3247</span>             {</div>
-<div class="line"><a name="l03248"></a><span class="lineno"> 3248</span>             <span class="comment">/* Divide this row by median,</span></div>
-<div class="line"><a name="l03249"></a><span class="lineno"> 3249</span> <span class="comment">               Exclude pixels deviating more than a factor of, say, 5 */</span></div>
-<div class="line"><a name="l03250"></a><span class="lineno"> 3250</span>             <span class="keywordtype">double</span> exclude = 2;</div>
-<div class="line"><a name="l03251"></a><span class="lineno"> 3251</span> </div>
-<div class="line"><a name="l03252"></a><span class="lineno"> 3252</span>             <span class="keywordflow">for</span> (x = 1; x <= nx; x++)</div>
-<div class="line"><a name="l03253"></a><span class="lineno"> 3253</span>                 {</div>
-<div class="line"><a name="l03254"></a><span class="lineno"> 3254</span>                 <span class="keywordtype">int</span> pis_rejected1, pis_rejected2;</div>
-<div class="line"><a name="l03255"></a><span class="lineno"> 3255</span>                 <span class="keywordtype">double</span> val1, val2;</div>
-<div class="line"><a name="l03256"></a><span class="lineno"> 3256</span>                 </div>
-<div class="line"><a name="l03257"></a><span class="lineno"> 3257</span>                 val1 = cpl_image_get(blaze_ratio      , </div>
-<div class="line"><a name="l03258"></a><span class="lineno"> 3258</span>                              x, y, &pis_rejected1);</div>
-<div class="line"><a name="l03259"></a><span class="lineno"> 3259</span>                 val2 = cpl_image_get(blaze_ratio_noise,</div>
-<div class="line"><a name="l03260"></a><span class="lineno"> 3260</span>                              x, y, &pis_rejected2);</div>
-<div class="line"><a name="l03261"></a><span class="lineno"> 3261</span>                 </div>
-<div class="line"><a name="l03262"></a><span class="lineno"> 3262</span>                 <span class="keywordflow">if</span> (!pis_rejected1 && !pis_rejected2 && </div>
-<div class="line"><a name="l03263"></a><span class="lineno"> 3263</span>                     val1/median < exclude && val1/median > 1/exclude)</div>
-<div class="line"><a name="l03264"></a><span class="lineno"> 3264</span>                     {</div>
-<div class="line"><a name="l03265"></a><span class="lineno"> 3265</span>                     cpl_image_set(blaze_ratio      , </div>
-<div class="line"><a name="l03266"></a><span class="lineno"> 3266</span>                               x, y, val1 / median); </div>
-<div class="line"><a name="l03267"></a><span class="lineno"> 3267</span>                     cpl_image_set(blaze_ratio_noise, </div>
-<div class="line"><a name="l03268"></a><span class="lineno"> 3268</span>                               x, y, val2 / median); </div>
-<div class="line"><a name="l03269"></a><span class="lineno"> 3269</span>                     }</div>
-<div class="line"><a name="l03270"></a><span class="lineno"> 3270</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03271"></a><span class="lineno"> 3271</span>                     {</div>
-<div class="line"><a name="l03272"></a><span class="lineno"> 3272</span>                     <span class="comment">/* Set to 1, then reject. This is to deal with</span></div>
-<div class="line"><a name="l03273"></a><span class="lineno"> 3273</span> <span class="comment">                       a plotter that might plot bad pixels */</span></div>
-<div class="line"><a name="l03274"></a><span class="lineno"> 3274</span>                     cpl_image_set   (blaze_ratio      , x, y, 1);</div>
-<div class="line"><a name="l03275"></a><span class="lineno"> 3275</span> </div>
-<div class="line"><a name="l03276"></a><span class="lineno"> 3276</span>                     cpl_image_reject(blaze_ratio      , x, y);</div>
-<div class="line"><a name="l03277"></a><span class="lineno"> 3277</span>                     cpl_image_reject(blaze_ratio_noise, x, y);</div>
-<div class="line"><a name="l03278"></a><span class="lineno"> 3278</span>                     }</div>
-<div class="line"><a name="l03279"></a><span class="lineno"> 3279</span>                 }</div>
-<div class="line"><a name="l03280"></a><span class="lineno"> 3280</span>             }</div>
-<div class="line"><a name="l03281"></a><span class="lineno"> 3281</span>         }</div>
-<div class="line"><a name="l03282"></a><span class="lineno"> 3282</span> </div>
-<div class="line"><a name="l03283"></a><span class="lineno"> 3283</span>     uves_plot_image_rows(blaze_ratio, 1, ny, ny/10,</div>
-<div class="line"><a name="l03284"></a><span class="lineno"> 3284</span>                  <span class="stringliteral">"x"</span>, <span class="stringliteral">"y"</span>, <span class="stringliteral">"ratio (normalized to 1)"</span>);</div>
-<div class="line"><a name="l03285"></a><span class="lineno"> 3285</span>     }</div>
-<div class="line"><a name="l03286"></a><span class="lineno"> 3286</span> </div>
-<div class="line"><a name="l03287"></a><span class="lineno"> 3287</span>     smooth_x = nx / 20 + 1;   <span class="comment">/* >0 */</span></div>
-<div class="line"><a name="l03288"></a><span class="lineno"> 3288</span>     smooth_y = ny / 20 + 1;   <span class="comment">/* >0 */</span></div>
-<div class="line"><a name="l03289"></a><span class="lineno"> 3289</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f" title="Median filter.">uves_filter_image_median</a>(&blaze_ratio,</div>
-<div class="line"><a name="l03290"></a><span class="lineno"> 3290</span>                     smooth_x, smooth_y,       <span class="comment">/* x-radius, y-radius */</span></div>
-<div class="line"><a name="l03291"></a><span class="lineno"> 3291</span>                     <span class="keyword">false</span>),         <span class="comment">/* extrapolate border pixels? */</span></div>
-<div class="line"><a name="l03292"></a><span class="lineno"> 3292</span>        <span class="stringliteral">"Error creating smoothed ratio"</span>);</div>
-<div class="line"><a name="l03293"></a><span class="lineno"> 3293</span> </div>
-<div class="line"><a name="l03294"></a><span class="lineno"> 3294</span>     uves_plot_image_rows(blaze_ratio, 1, ny, ny/10, <span class="stringliteral">"x"</span>, <span class="stringliteral">"y"</span>, <span class="stringliteral">"ratio (smoothed)"</span>);</div>
-<div class="line"><a name="l03295"></a><span class="lineno"> 3295</span>     </div>
-<div class="line"><a name="l03296"></a><span class="lineno"> 3296</span> </div>
-<div class="line"><a name="l03297"></a><span class="lineno"> 3297</span>     <span class="comment">/* For each x, fit polynomial as function of y.</span></div>
-<div class="line"><a name="l03298"></a><span class="lineno"> 3298</span> <span class="comment">     * Use kappa-sigma clipping to eliminate single order</span></div>
-<div class="line"><a name="l03299"></a><span class="lineno"> 3299</span> <span class="comment">     * spectral featues. This should leave only the</span></div>
-<div class="line"><a name="l03300"></a><span class="lineno"> 3300</span> <span class="comment">     * systematics (i.e. the ratio of obj/flat blaze profiles)</span></div>
-<div class="line"><a name="l03301"></a><span class="lineno"> 3301</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l03302"></a><span class="lineno"> 3302</span>     {</div>
-<div class="line"><a name="l03303"></a><span class="lineno"> 3303</span>     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l03304"></a><span class="lineno"> 3304</span>     <span class="keywordtype">double</span> interpolated=0;</div>
-<div class="line"><a name="l03305"></a><span class="lineno"> 3305</span>     <span class="keywordflow">for</span> (x = 1; x <= nx; x++)</div>
-<div class="line"><a name="l03306"></a><span class="lineno"> 3306</span>         {</div>
-<div class="line"><a name="l03307"></a><span class="lineno"> 3307</span>         <span class="keywordtype">int</span> current_row;</div>
-<div class="line"><a name="l03308"></a><span class="lineno"> 3308</span> </div>
-<div class="line"><a name="l03309"></a><span class="lineno"> 3309</span>         <span class="comment">/* Table rows are removed when kappa-sigma clipping,</span></div>
-<div class="line"><a name="l03310"></a><span class="lineno"> 3310</span> <span class="comment">           so we have to create a new table for each column */</span></div>
-<div class="line"><a name="l03311"></a><span class="lineno"> 3311</span> </div>
-<div class="line"><a name="l03312"></a><span class="lineno"> 3312</span>         uves_free_table(&values);</div>
-<div class="line"><a name="l03313"></a><span class="lineno"> 3313</span>         values = cpl_table_new(ny);</div>
-<div class="line"><a name="l03314"></a><span class="lineno"> 3314</span>         cpl_table_new_column(values, <span class="stringliteral">"Y"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l03315"></a><span class="lineno"> 3315</span>         cpl_table_new_column(values, <span class="stringliteral">"Ratio"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03316"></a><span class="lineno"> 3316</span>         cpl_table_new_column(values, <span class="stringliteral">"dRatio"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03317"></a><span class="lineno"> 3317</span>         </div>
-<div class="line"><a name="l03318"></a><span class="lineno"> 3318</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( values );</div>
-<div class="line"><a name="l03319"></a><span class="lineno"> 3319</span> </div>
-<div class="line"><a name="l03320"></a><span class="lineno"> 3320</span>         current_row = 0;</div>
-<div class="line"><a name="l03321"></a><span class="lineno"> 3321</span>         <span class="keywordflow">for</span> (y = 1; y <= ny; y++)</div>
-<div class="line"><a name="l03322"></a><span class="lineno"> 3322</span>             {</div>
-<div class="line"><a name="l03323"></a><span class="lineno"> 3323</span>             <span class="keywordtype">double</span> ratio=0., dratio=0.;</div>
-<div class="line"><a name="l03324"></a><span class="lineno"> 3324</span>             <span class="keywordtype">int</span> pis_rejected1=0, pis_rejected2=0;</div>
-<div class="line"><a name="l03325"></a><span class="lineno"> 3325</span> </div>
-<div class="line"><a name="l03326"></a><span class="lineno"> 3326</span>             ratio  = cpl_image_get(blaze_ratio      , </div>
-<div class="line"><a name="l03327"></a><span class="lineno"> 3327</span>                            x, y, &pis_rejected1);</div>
-<div class="line"><a name="l03328"></a><span class="lineno"> 3328</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(dratio = cpl_image_get(blaze_ratio_noise, </div>
-<div class="line"><a name="l03329"></a><span class="lineno"> 3329</span>                                                x, y, &pis_rejected2));</div>
-<div class="line"><a name="l03330"></a><span class="lineno"> 3330</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l03331"></a><span class="lineno"> 3331</span> <span class="comment">            uves_msg("x=%d, y=%d, rej1=%d rej2=%d",</span></div>
-<div class="line"><a name="l03332"></a><span class="lineno"> 3332</span> <span class="comment">                     x,y,pis_rejected1,pis_rejected2);</span></div>
-<div class="line"><a name="l03333"></a><span class="lineno"> 3333</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l03334"></a><span class="lineno"> 3334</span>             <span class="keywordflow">if</span> (!pis_rejected1 && !pis_rejected2)</div>
-<div class="line"><a name="l03335"></a><span class="lineno"> 3335</span>                 {</div>
-<div class="line"><a name="l03336"></a><span class="lineno"> 3336</span>                 cpl_table_set_int   (values, <span class="stringliteral">"Y"</span>     , </div>
-<div class="line"><a name="l03337"></a><span class="lineno"> 3337</span>                              current_row, y);</div>
-<div class="line"><a name="l03338"></a><span class="lineno"> 3338</span>                 cpl_table_set_double(values, <span class="stringliteral">"Ratio"</span> , </div>
-<div class="line"><a name="l03339"></a><span class="lineno"> 3339</span>                              current_row, ratio);</div>
-<div class="line"><a name="l03340"></a><span class="lineno"> 3340</span>                 cpl_table_set_double(values, <span class="stringliteral">"dRatio"</span>, </div>
-<div class="line"><a name="l03341"></a><span class="lineno"> 3341</span>                              current_row, dratio);</div>
-<div class="line"><a name="l03342"></a><span class="lineno"> 3342</span>                 current_row += 1;</div>
-<div class="line"><a name="l03343"></a><span class="lineno"> 3343</span>                 }</div>
-<div class="line"><a name="l03344"></a><span class="lineno"> 3344</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03345"></a><span class="lineno"> 3345</span>                 {</div>
-<div class="line"><a name="l03346"></a><span class="lineno"> 3346</span>                 <span class="comment">/* Ignore current order */</span></div>
-<div class="line"><a name="l03347"></a><span class="lineno"> 3347</span>                 }</div>
-<div class="line"><a name="l03348"></a><span class="lineno"> 3348</span>             }</div>
-<div class="line"><a name="l03349"></a><span class="lineno"> 3349</span>          </div>
-<div class="line"><a name="l03350"></a><span class="lineno"> 3350</span>         cpl_table_set_size(values, current_row);</div>
-<div class="line"><a name="l03351"></a><span class="lineno"> 3351</span>         <span class="keywordflow">if</span>(current_row>UVES_MIN_LINE_ROWS_TO_MAKE_FIT)</div>
-<div class="line"><a name="l03352"></a><span class="lineno"> 3352</span>         {</div>
-<div class="line"><a name="l03353"></a><span class="lineno"> 3353</span>             <span class="keywordtype">int</span> degree = 2;</div>
-<div class="line"><a name="l03354"></a><span class="lineno"> 3354</span>             <span class="keywordtype">double</span> kappa = 2;</div>
-<div class="line"><a name="l03355"></a><span class="lineno"> 3355</span>             </div>
-<div class="line"><a name="l03356"></a><span class="lineno"> 3356</span>             <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p);</div>
-<div class="line"><a name="l03357"></a><span class="lineno"> 3357</span>             p = <a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d</a>(values,</div>
-<div class="line"><a name="l03358"></a><span class="lineno"> 3358</span>                               <span class="stringliteral">"Y"</span>, <span class="stringliteral">"Ratio"</span>, <span class="stringliteral">"dRatio"</span>,</div>
-<div class="line"><a name="l03359"></a><span class="lineno"> 3359</span>                               degree,</div>
-<div class="line"><a name="l03360"></a><span class="lineno"> 3360</span>                               NULL, NULL, <span class="comment">/* fit, residual^2 */</span></div>
-<div class="line"><a name="l03361"></a><span class="lineno"> 3361</span>                               NULL,       <span class="comment">/* mse             */</span></div>
-<div class="line"><a name="l03362"></a><span class="lineno"> 3362</span>                               kappa);</div>
-<div class="line"><a name="l03363"></a><span class="lineno"> 3363</span> </div>
-<div class="line"><a name="l03364"></a><span class="lineno"> 3364</span>             <span class="comment">/* If fitting failed because there were too few points,</span></div>
-<div class="line"><a name="l03365"></a><span class="lineno"> 3365</span> <span class="comment">             * or matrix was singular */</span></div>
-<div class="line"><a name="l03366"></a><span class="lineno"> 3366</span>             <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_ILLEGAL_INPUT || </div>
-<div class="line"><a name="l03367"></a><span class="lineno"> 3367</span>             cpl_error_get_code() == CPL_ERROR_ILLEGAL_OUTPUT)</div>
-<div class="line"><a name="l03368"></a><span class="lineno"> 3368</span>             {</div>
-<div class="line"><a name="l03369"></a><span class="lineno"> 3369</span>                 <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l03370"></a><span class="lineno"> 3370</span>                 </div>
-<div class="line"><a name="l03371"></a><span class="lineno"> 3371</span>                 <span class="comment">/* Then set p(x) = 1 </span></div>
-<div class="line"><a name="l03372"></a><span class="lineno"> 3372</span> <span class="comment">                 * by fitting a line through (1,1) - (2,1)</span></div>
-<div class="line"><a name="l03373"></a><span class="lineno"> 3373</span> <span class="comment">                 */</span></div>
-<div class="line"><a name="l03374"></a><span class="lineno"> 3374</span> </div>
-<div class="line"><a name="l03375"></a><span class="lineno"> 3375</span> </div>
-<div class="line"><a name="l03376"></a><span class="lineno"> 3376</span>                 <span class="comment">/* The table is in a 'dirty' state (contains</span></div>
-<div class="line"><a name="l03377"></a><span class="lineno"> 3377</span> <span class="comment">                   temporary columns) if fitting routine failed</span></div>
-<div class="line"><a name="l03378"></a><span class="lineno"> 3378</span> <span class="comment">                   (that routine is not exception safe),</span></div>
-<div class="line"><a name="l03379"></a><span class="lineno"> 3379</span> <span class="comment">                   so don't try to reuse current table */</span></div>
-<div class="line"><a name="l03380"></a><span class="lineno"> 3380</span>                 </div>
-<div class="line"><a name="l03381"></a><span class="lineno"> 3381</span>                 uves_free_table(&values);</div>
-<div class="line"><a name="l03382"></a><span class="lineno"> 3382</span>                 values = cpl_table_new(2);</div>
-<div class="line"><a name="l03383"></a><span class="lineno"> 3383</span>                 cpl_table_new_column(values, <span class="stringliteral">"Y"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l03384"></a><span class="lineno"> 3384</span>                 cpl_table_new_column(values, <span class="stringliteral">"Ratio"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03385"></a><span class="lineno"> 3385</span>                 cpl_table_set_int   (values, <span class="stringliteral">"Y"</span>     , 0, 1);</div>
-<div class="line"><a name="l03386"></a><span class="lineno"> 3386</span>                 cpl_table_set_double(values, <span class="stringliteral">"Ratio"</span> , 0, 1);</div>
-<div class="line"><a name="l03387"></a><span class="lineno"> 3387</span>                 cpl_table_set_int   (values, <span class="stringliteral">"Y"</span>     , 1, 2);</div>
-<div class="line"><a name="l03388"></a><span class="lineno"> 3388</span>                 cpl_table_set_double(values, <span class="stringliteral">"Ratio"</span> , 1, 1);</div>
-<div class="line"><a name="l03389"></a><span class="lineno"> 3389</span>                 </div>
-<div class="line"><a name="l03390"></a><span class="lineno"> 3390</span>                 degree = 2;</div>
-<div class="line"><a name="l03391"></a><span class="lineno"> 3391</span>                 kappa = -1;</div>
-<div class="line"><a name="l03392"></a><span class="lineno"> 3392</span>                 <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p);</div>
-<div class="line"><a name="l03393"></a><span class="lineno"> 3393</span>                 p = <a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d</a>(values,</div>
-<div class="line"><a name="l03394"></a><span class="lineno"> 3394</span>                                   <span class="stringliteral">"Y"</span>, <span class="stringliteral">"Ratio"</span>, NULL,</div>
-<div class="line"><a name="l03395"></a><span class="lineno"> 3395</span>                                   degree,       </div>
-<div class="line"><a name="l03396"></a><span class="lineno"> 3396</span>                                   NULL, NULL, <span class="comment">/* fit, residual^2 */</span></div>
-<div class="line"><a name="l03397"></a><span class="lineno"> 3397</span>                                   NULL,       <span class="comment">/* mse             */</span></div>
-<div class="line"><a name="l03398"></a><span class="lineno"> 3398</span>                                   kappa);                  </div>
-<div class="line"><a name="l03399"></a><span class="lineno"> 3399</span>             }</div>
-<div class="line"><a name="l03400"></a><span class="lineno"> 3400</span>             assure( cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(),</div>
-<div class="line"><a name="l03401"></a><span class="lineno"> 3401</span>                 <span class="stringliteral">"Could not fit %d. degree polynomial to column %d"</span>, degree, x);</div>
-<div class="line"><a name="l03402"></a><span class="lineno"> 3402</span> </div>
-<div class="line"><a name="l03403"></a><span class="lineno"> 3403</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l03404"></a><span class="lineno"> 3404</span>            interpolated=UVES_BLAZE_DUMMY_VAL;</div>
-<div class="line"><a name="l03405"></a><span class="lineno"> 3405</span>         }</div>
-<div class="line"><a name="l03406"></a><span class="lineno"> 3406</span> </div>
-<div class="line"><a name="l03407"></a><span class="lineno"> 3407</span>         <span class="keywordflow">for</span> (y = 1; y <= ny; y++)</div>
-<div class="line"><a name="l03408"></a><span class="lineno"> 3408</span>             {</div>
-<div class="line"><a name="l03409"></a><span class="lineno"> 3409</span>                <span class="keywordflow">if</span>(current_row>UVES_MIN_LINE_ROWS_TO_MAKE_FIT) {</div>
-<div class="line"><a name="l03410"></a><span class="lineno"> 3410</span>                   interpolated = <a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(p, y);</div>
-<div class="line"><a name="l03411"></a><span class="lineno"> 3411</span>                }</div>
-<div class="line"><a name="l03412"></a><span class="lineno"> 3412</span>                cpl_image_set(blaze_ratio, x, y, fabs(interpolated));</div>
-<div class="line"><a name="l03413"></a><span class="lineno"> 3413</span>             }</div>
-<div class="line"><a name="l03414"></a><span class="lineno"> 3414</span> </div>
-<div class="line"><a name="l03415"></a><span class="lineno"> 3415</span>         }</div>
-<div class="line"><a name="l03416"></a><span class="lineno"> 3416</span> </div>
-<div class="line"><a name="l03417"></a><span class="lineno"> 3417</span>     <span class="comment">/* post smooth */</span></div>
-<div class="line"><a name="l03418"></a><span class="lineno"> 3418</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f" title="Median filter.">uves_filter_image_median</a>(&blaze_ratio, </div>
-<div class="line"><a name="l03419"></a><span class="lineno"> 3419</span>                     2*smooth_x, 2*smooth_y, <span class="comment">/* x-radius, y-radius */</span></div>
-<div class="line"><a name="l03420"></a><span class="lineno"> 3420</span>                     <span class="keyword">false</span>),                 <span class="comment">/* extrapolate at border? */</span></div>
-<div class="line"><a name="l03421"></a><span class="lineno"> 3421</span>            <span class="stringliteral">"Error creating smoothed ratio"</span>);</div>
-<div class="line"><a name="l03422"></a><span class="lineno"> 3422</span>     </div>
-<div class="line"><a name="l03423"></a><span class="lineno"> 3423</span>     uves_plot_image_rows(blaze_ratio, 1, ny, ny/10, <span class="stringliteral">"x"</span>, <span class="stringliteral">"y"</span>, <span class="stringliteral">"ratio (poly. fit)"</span>);</div>
-<div class="line"><a name="l03424"></a><span class="lineno"> 3424</span> </div>
-<div class="line"><a name="l03425"></a><span class="lineno"> 3425</span>     }</div>
-<div class="line"><a name="l03426"></a><span class="lineno"> 3426</span> </div>
-<div class="line"><a name="l03427"></a><span class="lineno"> 3427</span>     </div>
-<div class="line"><a name="l03428"></a><span class="lineno"> 3428</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l03429"></a><span class="lineno"> 3429</span> <span class="comment">      printf("ratio\n");</span></div>
-<div class="line"><a name="l03430"></a><span class="lineno"> 3430</span> <span class="comment">      cpl_stats_dump(cpl_stats_new_from_image(ratio, CPL_STATS_ALL), CPL_STATS_ALL, stdout);</span></div>
-<div class="line"><a name="l03431"></a><span class="lineno"> 3431</span> <span class="comment">      printf("image\n");</span></div>
-<div class="line"><a name="l03432"></a><span class="lineno"> 3432</span> <span class="comment">      cpl_stats_dump(cpl_stats_new_from_image(image, CPL_STATS_ALL), CPL_STATS_ALL, stdout);</span></div>
-<div class="line"><a name="l03433"></a><span class="lineno"> 3433</span> <span class="comment">      printf("noise\n");</span></div>
-<div class="line"><a name="l03434"></a><span class="lineno"> 3434</span> <span class="comment">      cpl_stats_dump(cpl_stats_new_from_image(noise, CPL_STATS_ALL), CPL_STATS_ALL, stdout);</span></div>
-<div class="line"><a name="l03435"></a><span class="lineno"> 3435</span> <span class="comment">      </span></div>
-<div class="line"><a name="l03436"></a><span class="lineno"> 3436</span> <span class="comment">      passure(false, "");</span></div>
-<div class="line"><a name="l03437"></a><span class="lineno"> 3437</span> <span class="comment">      </span></div>
-<div class="line"><a name="l03438"></a><span class="lineno"> 3438</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l03439"></a><span class="lineno"> 3439</span> </div>
-<div class="line"><a name="l03440"></a><span class="lineno"> 3440</span>   cleanup:</div>
-<div class="line"><a name="l03441"></a><span class="lineno"> 3441</span>     uves_free_table(&values);</div>
-<div class="line"><a name="l03442"></a><span class="lineno"> 3442</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p);</div>
-<div class="line"><a name="l03443"></a><span class="lineno"> 3443</span>     uves_free_image(&blaze_ratio_noise);</div>
-<div class="line"><a name="l03444"></a><span class="lineno"> 3444</span> </div>
-<div class="line"><a name="l03445"></a><span class="lineno"> 3445</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l03446"></a><span class="lineno"> 3446</span>     {</div>
-<div class="line"><a name="l03447"></a><span class="lineno"> 3447</span>         uves_free_image(&blaze_ratio);</div>
-<div class="line"><a name="l03448"></a><span class="lineno"> 3448</span>     }</div>
-<div class="line"><a name="l03449"></a><span class="lineno"> 3449</span>     <span class="keywordflow">return</span> blaze_ratio;</div>
-<div class="line"><a name="l03450"></a><span class="lineno"> 3450</span> }</div>
-<div class="line"><a name="l03451"></a><span class="lineno"> 3451</span> </div>
-<div class="line"><a name="l03452"></a><span class="lineno"> 3452</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__reduce_8h_source.html b/html/uves__reduce_8h_source.html
deleted file mode 100644
index a9e167d..0000000
--- a/html/uves__reduce_8h_source.html
+++ /dev/null
@@ -1,147 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_reduce.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_reduce.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.28 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifndef UVES_REDUCE_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_REDUCE_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> </div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> cpl_parameterlist *<a class="code" href="group__uves__reduce.html#gaf0fe2418683acd1504f0c2c90c9c417a" title="Define recipe parameters used for reducing a frame.">uves_reduce_define_parameters</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> cpl_error_code <a class="code" href="group__uves__reduce.html#gad5308bc6e13c7e02e134e6f0ce6be722" title="Reduce a science frame.">uves_reduce</a>(<span class="keyword">const</span> cpl_image *raw_image, </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header, </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header,</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>                <span class="keyword">const</span> cpl_image *master_bias,</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>                <span class="keyword">const</span> cpl_image *master_dark, </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mdark_header, </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>                <span class="keyword">const</span> cpl_image *master_flat, </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mflat_header,</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>                <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>                            <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span>                <span class="keyword">const</span> cpl_table *linetable[3], </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *linetable_header[3], </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span>                            <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation[3],</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>                <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>                <span class="comment">/* General */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>                <span class="keywordtype">bool</span>   debug_mode,</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>                <span class="comment">/* Backsub */</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>                <span class="comment">/* Flat fielding */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>                <span class="comment">/* Extraction */</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>                <span class="comment">/* Rebinning  */</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>                <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>                            <span class="keyword">const</span> <span class="keywordtype">char</span> *rec_id,</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>                            <span class="keyword">const</span> <span class="keywordtype">char</span> *mode,</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>                <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>                cpl_image **x, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **x_header,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>                cpl_image **fx,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>                cpl_table **cosmic_mask,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>                cpl_image **wave_map,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>                cpl_image **background,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>                cpl_image **flatfielded_variance,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>                <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **flatfielded_variance_header,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>                cpl_image **resampled_spectrum,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>                cpl_image **resampled_mf,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>                cpl_image **merged_sky,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>                cpl_image **rebinned_spectrum, </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>                            cpl_image **rebinned_noise, </div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>                            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **rebinned_header,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>                cpl_image **merged_spectrum,   </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>                            cpl_image **merged_noise, </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>                            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **merged_header,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>                cpl_image **reduced_rebinned_spectrum, </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>                            cpl_image **reduced_rebinned_noise,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>                cpl_image **reduced_spectrum , </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>                            cpl_image **reduced_noise,</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>                            cpl_table **info_tbl,</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>                <span class="keywordtype">double</span> *extraction_slit,</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>                cpl_table **order_trace);</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor">#endif  </span><span class="comment">/* UVES_REDUCE_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__reduce__mflat_8c_source.html b/html/uves__reduce__mflat_8c_source.html
deleted file mode 100644
index 86d9c39..0000000
--- a/html/uves__reduce__mflat_8c_source.html
+++ /dev/null
@@ -1,1051 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_reduce_mflat.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_reduce_mflat.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.53 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> </div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <uves_reduce_mflat.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_backsub.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__reduce__mflat.html#ga02a8ec0f31954bdcb88ca7b73f06babb" title="Process a single chip.">uves_mflat_qclog</a>(<span class="keyword">const</span> cpl_imagelist* raw_images,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>                      cpl_table* qclog);</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="keyword">static</span> cpl_error_code <a class="code" href="group__uves__reduce__mflat.html#gad7e37298e7f0b43a3ce3edff25ac4e45" title="Computes coherent master sflats.">uves_msflats</a>(cpl_frameset * <span class="keyword">set</span>, <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime);</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__reduce__mflat.html#ga2598ddc0ef2df5c66cd4710829a02353" title="Get the command line options and execute the data reduction.">uves_mflat_one</a>(cpl_frameset *frames,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>                <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>                <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>                <span class="keyword">const</span> <span class="keywordtype">char</span>* prefix);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <a class="code" href="group__uves__reduce__mflat.html#ga429b19c63b9710f0d332a2f39ddac05a" title="Computes coherent master sflats.">uves_mflat_at_ypos</a>(cpl_frameset* <span class="keyword">set</span>,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>            <span class="keyword">const</span> cpl_parameterlist* parameters,</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>                    <span class="keyword">const</span> cpl_frameset* raw,</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>                    <span class="keyword">const</span> cpl_frameset* cdb,</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>                    <span class="keyword">const</span> <span class="keywordtype">int</span> ref_x1enc,</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>                    <span class="keyword">const</span> <span class="keywordtype">int</span> ref_x2enc,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>            <span class="keyword">const</span> <span class="keywordtype">int</span> set_no);</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__reduce__mflat.html#ga8d36f48466a867a45e7653f484414ee6" title="Get the command line options and execute the data reduction.">uves_reduce_mflat</a>(cpl_frameset *frames, <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>                   <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *prefix);</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_mflat_desc =</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="stringliteral">"This recipe creates a master flat frame by 1) subtracting the master bias\n"</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="stringliteral">"frame from each flat field frame, 2) dividing each flat field frame by the\n"</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="stringliteral">" exposure time for that frame, 3) taking the median of all bias subtracted,\n"</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="stringliteral">" normalized raw\n flat frames, 4) optionally subtracting the master dark \n"</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="stringliteral">"frame, and 5) subtracting\n the background to get the bias subtracted, \n"</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="stringliteral">"optionally dark subtracted, normalized, background subtracted master \n"</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="stringliteral">"flat-field frame. Symbolically,\n"</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="stringliteral">" masterflat = median( (flat_i - masterbias)/exptime_i ) - masterdark/exptime\n"</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="stringliteral">"            - background.\n"</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="stringliteral">"The input flat field frames must have same tag which must match\n"</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="stringliteral">"(I|D|S|T|SCREEN|)FLAT_(BLUE|RED), for example TFLAT_BLUE or FLAT_RED. Also, a\n"</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="stringliteral">"master bias (MASTER_BIAS_xxxx) and ordertable (ORDER_TABLE_xxxx) must be\n"</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="stringliteral">"provided for each chip (xxxx = BLUE, REDL, REDU). A master dark frame\n"</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="stringliteral">"(MASTER_(P)DARK_xxxx) may optionally be provided. On blue input the recipe\n"</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="stringliteral">"computes one master flat field frame; on red input the recipe produces a\n"</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="stringliteral">"master flat field frame for each chip (MASTER_FLAT_xxxx, MASTER_IFLAT_xxxx,\n"</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="stringliteral">"MASTER_DFLAT_xxxx, MASTER_TFLAT_xxxx or MASTER_SCREEN_FLAT_xxxx)."</span>;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno"><a class="code" href="group__uves__reduce__mflat.html#ga7d38d6807a0067cc5e8dd44a44ebaa07">  126</a></span> <a class="code" href="group__uves__reduce__mflat.html#ga7d38d6807a0067cc5e8dd44a44ebaa07" title="Setup the recipe options.">uves_mflat_define_parameters_body</a>(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> {</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>    cpl_parameter* p=NULL;</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>    <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment">    *    General    *</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment">    *****************/</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>    <span class="keywordflow">if</span> (uves_define_global_parameters(parameters) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>    {</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>       <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>    }</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>    <span class="keywordflow">if</span> (uves_corr_traps_define_parameters(parameters,recipe_id) </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>        != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>    {</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>       <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>    }</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     <span class="comment">/**************************************</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment">     *  Master stack generation           *</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment">     **************************************/</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="keywordflow">if</span> (uves_master_flat_define_parameters(parameters,recipe_id) </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>         != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     {</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     }</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>     <span class="keywordflow">if</span>(strcmp(recipe_id,<span class="stringliteral">"flames_cal_mkmaster"</span>) ==0) {</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>        <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(p=cpl_parameterlist_find(parameters,<span class="stringliteral">"flames_cal_mkmaster.norm_method"</span>));</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>        cpl_parameter_set_string(p,<span class="stringliteral">"exptime"</span>);</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     }</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>   cleanup:</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment">    if (uves_master_stack_define_parameters(parameters,recipe_id) </span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment">        != CPL_ERROR_NONE)</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment">        {</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment">            return -1;</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment">        }</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     <span class="comment">/****************************</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment">     *  Spline back.sub.        *</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment">     ****************************/</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     <span class="keywordflow">if</span> (uves_propagate_parameters_step(UVES_BACKSUB_ID, parameters, </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>                        recipe_id, NULL) != 0)</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     {</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     }</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> }</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l00221"></a><span class="lineno"><a class="code" href="group__uves__reduce__mflat.html#ga28f40f90cc7f91b1e2ef317c74c73fa2">  221</a></span> <a class="code" href="group__uves__reduce__mflat.html#ga28f40f90cc7f91b1e2ef317c74c73fa2" title="Process a single chip.">uves_mflat_process_chip</a>(<span class="keyword">const</span> cpl_imagelist *raw_images, </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                         <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **raw_headers, </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>                         <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_flat_header,</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                         <span class="keyword">const</span> cpl_image *master_bias,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                         <span class="keyword">const</span> cpl_image *master_dark, </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                         <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mdark_header, </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                         <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                         <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                         <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                         <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                         <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                         <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>                         <span class="keywordtype">bool</span> debug_mode,</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>                         cpl_image **background)</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> {</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     cpl_image *master_flat        = NULL; <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     cpl_image *master_flat_tmp        = NULL; <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     cpl_image *current_flat       = NULL;</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>    </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* FLAT_METHOD=NULL;</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     cpl_vector* exptimes=NULL;</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     cpl_vector* gain_vals=NULL;</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     <span class="keywordtype">double</span> mdark_exposure=0;</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     cpl_image* mdark_scaled=NULL;</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     <span class="keywordtype">double</span> fnoise=0;</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <span class="keywordtype">double</span> gain=0;</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     cpl_imagelist *raw_images_local=NULL;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     <span class="comment">/* First process each input image and store the results in a new image list */</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>    <span class="comment">/* Get recipe parameters */</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"norm_method"</span>, </div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>              CPL_TYPE_STRING, &FLAT_METHOD),</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)FLAT_METHOD);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     raw_images_local=(cpl_imagelist*) raw_images;</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     exptimes=cpl_vector_new(cpl_imagelist_get_size(raw_images));</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     gain_vals=cpl_vector_new(cpl_imagelist_get_size(raw_images));</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     <span class="comment">/* to remove compiler warnings */</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_imagelist_get_size(raw_images); i++)</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     {</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>         <span class="keywordtype">double</span> exposure_time = 0.0;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>         <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *current_header = NULL;</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>         current_flat   = cpl_image_duplicate(cpl_imagelist_get_const(raw_images, i));</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>         current_header = raw_headers[i];</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>         </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>         <span class="comment">/* Subtract master bias */</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>         <span class="keywordflow">if</span> (master_bias != NULL)</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>         {</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting master bias"</span>);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils.html#gaab60ba58a3dc620bf79a91ebde2751b3" title="Subtract bias.">uves_subtract_bias</a>(current_flat, master_bias), </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>                <span class="stringliteral">"Error subtracting master bias"</span>);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         }</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>         {</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping bias subtraction"</span>);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>         }</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>         </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>         <span class="comment">/* Normalize to unit exposure time */</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( exposure_time = <a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(current_header), </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>            <span class="stringliteral">"Error reading exposure time"</span>);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( gain = <a class="code" href="group__uves__pfits.html#ga4f4be35f30bd7d46f8c7421907ac8695" title="Find out the gain.">uves_pfits_get_gain</a>(current_header,chip), </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>            <span class="stringliteral">"Error reading gain value"</span>);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>         </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Normalizing flat from %f s to unit exposure time"</span>, exposure_time);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_divide_scalar(current_flat, exposure_time),</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>            <span class="stringliteral">"Error normalizing flat field"</span>);</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gae45226fec29767907871c9f34f61f61a" title="Write the exposure time.">uves_pfits_set_exptime</a>(master_flat_header, 1.0),</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>            <span class="stringliteral">"Error writing master frame exposure time"</span>);</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>         cpl_vector_set(exptimes,i,exposure_time);</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>         cpl_vector_set(gain_vals,i,gain);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>         <span class="comment">/* Append to imagelist */</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_imagelist_set(raw_images_local,     <span class="comment">/* Image list */</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>                      current_flat,       <span class="comment">/* Image to insert */</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>                      i),                 <span class="comment">/* Position (number_of_images=>append) */</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>            <span class="stringliteral">"Could not insert image into image list"</span>);</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>         </div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>         <span class="comment">/* Don't deallocate the image. It will be deallocated when</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="comment">           the image list is deallocated */</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>         current_flat = NULL;</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     }</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     <span class="comment">/* subtract master dark if present */</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="keywordflow">if</span> (master_dark != NULL)</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     {</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting master dark"</span>);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( mdark_exposure = <a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(mdark_header));</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>         mdark_scaled=cpl_image_duplicate(master_dark);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>         cpl_image_divide_scalar(mdark_scaled,mdark_exposure); </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_imagelist_subtract_image(raw_images_local,mdark_scaled), </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>            <span class="stringliteral">"Error subtracting master dark"</span>);</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>         uves_free_image(&mdark_scaled);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     }</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     {</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping dark subtraction"</span>);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     }</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     <span class="comment">/* Take median of all input flats */</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     <span class="keywordflow">if</span>(strcmp(FLAT_METHOD,<span class="stringliteral">"EXPTIME"</span>)==0) {</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>        <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating stack median"</span>);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(master_flat=cpl_imagelist_collapse_median_create(raw_images_local), </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>               <span class="stringliteral">"Error computing median"</span>);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>        <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating stack normalized master"</span>);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( master_flat_tmp = <a class="code" href="group__uves__utils.html#gaa6e2f1554b5345868a2f71604a42409b" title="Stack images using k-sigma clipping.">uves_flat_create_normalized_master</a>(raw_images_local,</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>                                    ordertable,</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>                                    order_locations,gain_vals,&fnoise),</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>               <span class="stringliteral">"Error computing master flat with normalization"</span>);</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( master_flat = <a class="code" href="group__uves__utils.html#gaabfabe05e25ffc4af017f4e29b22a56e" title="Stack images using k-sigma clipping.">uves_flat_create_normalized_master2</a>(raw_images_local,</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>                                                                ordertable,</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>                                                               order_locations,</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>                                                                master_flat_tmp),</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>               <span class="stringliteral">"Error computing master flat with normalization"</span>);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>       uves_free_image(&master_flat_tmp);</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>       <a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93" title="Append a double value to a property list.">uves_propertylist_append_c_double</a>(master_flat_header,UVES_FNOISE,fnoise,</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>                                           <span class="stringliteral">"Master flat RMS on frame"</span>);</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     }</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     <span class="comment">/*clean mem and reset local pointers to null */</span></div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     raw_images_local=NULL;</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     uves_free_vector(&exptimes);</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     uves_free_vector(&gain_vals);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     <span class="keywordflow">if</span> (debug_mode && !flames)</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     {</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Pre-background subtracted master flat"</span>, <span class="stringliteral">"pre"</span>,</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>                                      master_flat, chip, -1, -1, master_flat_header, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>            <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     }</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     <span class="comment">/* Subtract background from master flat */</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <span class="keywordflow">if</span> (!flames)</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     {</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting background"</span>);</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>         </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_backsub_spline(master_flat, </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>                        <span class="comment">/* Info about chip (wavelength, ...) is </span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="comment">                      stored in any raw header,</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> <span class="comment">                      so just pass the first one   */</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>                        raw_headers[0],                </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                        ordertable, order_locations, </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>                        parameters, recipe_id,</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                        chip,</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>                        <span class="keyword">true</span>,     <span class="comment">/* Use flat-field parameters? */</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>                        background),</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>            <span class="stringliteral">"Error subtracting background from master flat"</span>);</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     }</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     {</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping background subtraction"</span>);</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     }</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>         </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>   cleanup:</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     uves_free_image(&current_flat);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     {</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>         uves_free_image(&master_flat);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     }</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     </div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     <span class="keywordflow">return</span> master_flat;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> }</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno"><a class="code" href="group__uves__reduce__mflat.html#ga1bae4e786a7fc24b0061ae293112f5ae">  408</a></span> <a class="code" href="group__uves__reduce__mflat.html#ga1bae4e786a7fc24b0061ae293112f5ae" title="Get the command line options and execute the data reduction.">uves_mflat_exe_body</a>(cpl_frameset *frames, </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                     <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> {</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     <span class="comment">/* Do FLAMES reduction if SFLAT frame is given */</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_SFLAT(<span class="keyword">false</span>)) != NULL) {</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>   </div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__reduce__mflat.html#gad7e37298e7f0b43a3ce3edff25ac4e45" title="Computes coherent master sflats.">uves_msflats</a>(frames, parameters, recipe_id, starttime),</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>               <span class="stringliteral">"find same sflats failed"</span>);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     }</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>         <span class="keywordtype">bool</span> flames = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__reduce__mflat.html#ga2598ddc0ef2df5c66cd4710829a02353" title="Get the command line options and execute the data reduction.">uves_mflat_one</a>(frames, parameters, flames, recipe_id, </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                              starttime, <span class="stringliteral">""</span>),</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>               <span class="stringliteral">"Master flat one failed"</span>);</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     }</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     </div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>  cleanup:</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> }</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00438"></a><span class="lineno"><a class="code" href="group__uves__reduce__mflat.html#gad7e37298e7f0b43a3ce3edff25ac4e45">  438</a></span> <a class="code" href="group__uves__reduce__mflat.html#gad7e37298e7f0b43a3ce3edff25ac4e45" title="Computes coherent master sflats.">uves_msflats</a>(cpl_frameset * <span class="keyword">set</span>, <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>          <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>          <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> {</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>   <span class="comment">/* Pseudocode:</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> <span class="comment">     extract raw frames from set</span></div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> <span class="comment">     extract cdb frames from set</span></div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <span class="comment">     identifies how many different Y position we have </span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> <span class="comment">     for each Y pos:</span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> <span class="comment">         extract from the raw_set the raw frames corresponding to each Y pos </span></div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> <span class="comment">         merge in a new wrk_set the cdb_set </span></div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> <span class="comment">         computes the corresponding master flat </span></div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> <span class="comment">         put the products in the final set </span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> <span class="comment">     endfor </span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>   cpl_frameset* raw=NULL;</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>   cpl_frameset* cdb=NULL;</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>   cpl_frameset* pro=NULL;</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>   <span class="keywordtype">int</span> status=0;</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>   <span class="keywordtype">int</span> x1enc=0;</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>   <span class="keywordtype">int</span> x2enc=0;</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> </div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>   cpl_table* encoder_tbl=NULL;</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>   <span class="keywordtype">int</span> nset=0;</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>   <span class="comment">//Extracts SFLAT raw frames </span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(raw=<a class="code" href="group__uves__utils.html#ga5d332ad2d1f28993e9c2db3154b2236b" title="Extract frames with given tag from frameset.">uves_frameset_extract</a>(<span class="keyword">set</span>,UVES_SFLAT(<span class="keyword">false</span>)),</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                   <span class="stringliteral">"Extract %s frames failed"</span>,</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>                   UVES_SFLAT(<span class="keyword">false</span>));</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_extract_frames_group_type(<span class="keyword">set</span>,&cdb,CPL_FRAME_GROUP_CALIB),</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     <span class="stringliteral">"Extract cdb frames failed"</span>);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_sflats_get_encoder_steps(raw,&encoder_tbl,&nset),</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     <span class="stringliteral">"Get encoder steps failed"</span>);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Check Slit Flat Field Y nominal positions within each set"</span>);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>   <span class="keywordflow">for</span>(i=0;i<nset;i++) {</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>          <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Slit Flat field set %d: x1enc = %d x2enc = %d"</span>,</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>               i+1,</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>               cpl_table_get_int(encoder_tbl,<span class="stringliteral">"x1enc"</span>,i,&status),</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>               cpl_table_get_int(encoder_tbl,<span class="stringliteral">"x2enc"</span>,i,&status));</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>   }</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>   <span class="keywordflow">for</span>(i=0;i<nset;i++) {</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     x1enc=cpl_table_get_int(encoder_tbl,<span class="stringliteral">"x1enc"</span>,i,&status);</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     x2enc=cpl_table_get_int(encoder_tbl,<span class="stringliteral">"x2enc"</span>,i,&status);</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing set %d"</span>, i+1);</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>    </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__reduce__mflat.html#ga429b19c63b9710f0d332a2f39ddac05a" title="Computes coherent master sflats.">uves_mflat_at_ypos</a>(<span class="keyword">set</span>,parameters,recipe_id,starttime,raw,cdb,x1enc,x2enc,i+1),</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>       <span class="stringliteral">"Master flat one failed"</span>);</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>   }</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>   cleanup:</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>   uves_free_table(&encoder_tbl);</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>   uves_free_frameset(&raw);</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>   uves_free_frameset(&cdb);</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>   uves_free_frameset(&pro);</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> }</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> </div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00511"></a><span class="lineno"><a class="code" href="group__uves__reduce__mflat.html#ga429b19c63b9710f0d332a2f39ddac05a">  511</a></span> <a class="code" href="group__uves__reduce__mflat.html#ga429b19c63b9710f0d332a2f39ddac05a" title="Computes coherent master sflats.">uves_mflat_at_ypos</a>(cpl_frameset* <span class="keyword">set</span>,</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>            <span class="keyword">const</span> cpl_parameterlist* parameters,</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>                    <span class="keyword">const</span> cpl_frameset* raw,</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>                    <span class="keyword">const</span> cpl_frameset* cdb,</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>                    <span class="keyword">const</span> <span class="keywordtype">int</span> ref_x1enc,</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>                    <span class="keyword">const</span> <span class="keywordtype">int</span> ref_x2enc,</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>                    <span class="keyword">const</span> <span class="keywordtype">int</span> set_no)</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> {</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> </div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>     <span class="keyword">const</span> cpl_frame* frm_tmp=NULL;</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>   <span class="keywordtype">char</span>* file=NULL;</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* plist=NULL;</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>   cpl_size i=0;</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>   <span class="keyword">const</span> <span class="keywordtype">int</span> threshold = 5;</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>   cpl_frame* frm_dup=NULL;</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>   cpl_frameset* tmp=NULL;</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>   cpl_frameset* pro=NULL;</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>   <span class="keywordtype">int</span> x1enc=0;</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>   <span class="keywordtype">int</span> x2enc=0;</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>   <span class="keywordtype">char</span> prefix[255];</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>   <span class="keywordtype">bool</span> flames = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(tmp=cpl_frameset_new());</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>    <span class="keywordflow">for</span>(i=0;i<cpl_frameset_get_size(raw);i++)</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>     {</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(frm_tmp=cpl_frameset_get_frame_const(raw,i));</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(file=cpl_strdup(cpl_frame_get_filename(frm_tmp)));</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(plist=<a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(file,0));</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(x1enc=<a class="code" href="group__uves__pfits.html#ga88d114f3cb4427cf679e9f7b7696bcd9" title="find out the value of UVES_ENCODER_REF1">uves_pfits_get_slit3_x1encoder</a>(plist));</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(x2enc=<a class="code" href="group__uves__pfits.html#ga12fe6f500e105193aa9faae4258ef51d" title="find out the value of UVES_ENCODER_REF2">uves_pfits_get_slit3_x2encoder</a>(plist));</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>     <span class="keywordflow">if</span>( (fabs(x1enc - ref_x1enc) <= threshold) &&</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>         (fabs(x2enc - ref_x2enc) <= threshold) ) {</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"file=%s x1enc=%d x2enc=%d"</span>,file,x1enc,x2enc);</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(frm_dup = cpl_frame_duplicate(frm_tmp),<span class="stringliteral">"duplicate"</span>);</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_frameset_insert(tmp,frm_dup),<span class="stringliteral">"insert"</span>);</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>     }</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     cpl_free(file);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>     uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>     }</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_frameset_merge(tmp,cdb));</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>    sprintf(prefix,<span class="stringliteral">"%s%d%s"</span>,<span class="stringliteral">"set"</span>,set_no,<span class="stringliteral">"_"</span>);</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__reduce__mflat.html#ga2598ddc0ef2df5c66cd4710829a02353" title="Get the command line options and execute the data reduction.">uves_mflat_one</a>(tmp,parameters, flames, recipe_id, starttime,prefix),<span class="stringliteral">"Master flat one failed"</span>);</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_extract_frames_group_type(tmp,&pro,CPL_FRAME_GROUP_PRODUCT));</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_frameset_merge(<span class="keyword">set</span>,pro));</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> </div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>  cleanup:</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>    uves_free_frameset(&tmp);</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>    uves_free_frameset(&pro);</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>    uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>   </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> }</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno"><a class="code" href="group__uves__reduce__mflat.html#ga2598ddc0ef2df5c66cd4710829a02353">  581</a></span> <a class="code" href="group__uves__reduce__mflat.html#ga2598ddc0ef2df5c66cd4710829a02353" title="Get the command line options and execute the data reduction.">uves_mflat_one</a>(cpl_frameset *frames,</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>            <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>            <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>                <span class="keyword">const</span> <span class="keywordtype">char</span>* prefix)</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> {</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     <span class="comment">/* Do flat-fielding */</span></div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__reduce__mflat.html#ga8d36f48466a867a45e7653f484414ee6" title="Get the command line options and execute the data reduction.">uves_reduce_mflat</a>(frames, parameters, </div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>                    flames, recipe_id,</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>                    starttime, prefix) );</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> </div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>   cleanup:</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> }</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00610"></a><span class="lineno"><a class="code" href="group__uves__reduce__mflat.html#ga8d36f48466a867a45e7653f484414ee6">  610</a></span> <a class="code" href="group__uves__reduce__mflat.html#ga8d36f48466a867a45e7653f484414ee6" title="Get the command line options and execute the data reduction.">uves_reduce_mflat</a>(cpl_frameset *frames, <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>           <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, </div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> *prefix)</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> {</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>     <span class="keywordtype">bool</span> debug_mode;</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> </div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>     <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     cpl_imagelist       *raw_images[2] = {NULL, NULL}; <span class="comment">/* An image list for both chips */</span></div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>  **raw_headers[2] = {NULL, NULL}; <span class="comment">/* Two arrays of pointers */</span></div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     <span class="comment">/* Master bias */</span></div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>     cpl_image *master_bias               = NULL;</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_bias_header = NULL;</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>     <span class="comment">/* Master dark */</span></div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>     cpl_image *master_dark               = NULL;</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_dark_header = NULL;</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> </div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     <span class="comment">/* Order table */</span></div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     cpl_table        *ordertable            = NULL;</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *ordertable_header     = NULL;</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>     <a class="code" href="struct__polynomial.html">polynomial</a>       *order_locations       = NULL;</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     cpl_table        *traces                = NULL;</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>     </div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>     <span class="comment">/* Reference master flat */</span></div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>     cpl_image        *ref_flat              = NULL;</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *ref_flat_header       = NULL;</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     cpl_table *qclog[]                  = {NULL, NULL};</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>     cpl_image *master_flat              = NULL;</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>     cpl_image *background               = NULL;</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *product_header[]  = {NULL, NULL};</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>     cpl_image *ratio                    = NULL;</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>     </div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>     <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>     <span class="keywordtype">char</span> *product_filename = NULL;</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>     <span class="keywordtype">char</span> pro_filename[255];</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *product_tag[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>     <span class="keywordtype">bool</span> blue;</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>     <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> </div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> </div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> </div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> </div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *ordertable_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *master_bias_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *master_dark_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>     <span class="keywordtype">int</span> raw_index = 0;</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *ref_flat_filename;</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> </div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>     <span class="comment">/* Read recipe parameters */</span></div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>     {</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>     <span class="comment">/* General */</span></div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"debug"</span>, CPL_TYPE_BOOL  , &debug_mode ), </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>            <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>     }</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"process_chip"</span>, CPL_TYPE_STRING, &PROCESS_CHIP), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> </div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>     <span class="comment">/* Load and check raw flat images and headers, identify arm (blue/red) */</span></div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>     <span class="comment">/* On success, 'raw_headers' will be an array with the same size as 'raw_images' */</span></div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>     <span class="comment">/* Set product tags to match input tag */</span></div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> </div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>     <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_FLAT(<span class="keyword">true</span> )) != NULL ||</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>     cpl_frameset_find(frames, UVES_FLAT(<span class="keyword">false</span>)) != NULL)</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>     {</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_raw_imagelist(frames, </div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                        flames,</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                        UVES_FLAT(<span class="keyword">true</span>), UVES_FLAT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                        CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>                        raw_images, raw_headers, product_header, </div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>                        &blue), <span class="stringliteral">"Error loading raw flat frames"</span>);</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>         </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>         <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>         {</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>             product_tag[<a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip)] = UVES_MASTER_FLAT(chip);</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>         }</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>     }</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_DFLAT(<span class="keyword">true</span> )) != NULL ||</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>          cpl_frameset_find(frames, UVES_DFLAT(<span class="keyword">false</span>)) != NULL)</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>     {</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_raw_imagelist(frames, </div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>                        flames,</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>                        UVES_DFLAT(<span class="keyword">true</span>), UVES_DFLAT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>                        CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>                        raw_images, raw_headers, product_header, </div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>                        &blue), <span class="stringliteral">"Error loading raw flat frames"</span>);</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>         <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>          chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>         {</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>             product_tag[<a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip)] = UVES_MASTER_DFLAT(chip);</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>         }</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     }</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span>  (cpl_frameset_find(frames, UVES_IFLAT(<span class="keyword">true</span> )) != NULL ||</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>           cpl_frameset_find(frames, UVES_IFLAT(<span class="keyword">false</span>)) != NULL)</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     {</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_raw_imagelist(frames, </div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>                        flames,</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>                        UVES_IFLAT(<span class="keyword">true</span>), UVES_IFLAT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>                        CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>                        raw_images, raw_headers, product_header, </div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>                        &blue), <span class="stringliteral">"Error loading raw flat frames"</span>);</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>         <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>          chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>         {</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>             product_tag[<a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip)] = UVES_MASTER_IFLAT(chip);</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>         }</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>     }</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span>  (cpl_frameset_find(frames, UVES_TFLAT(<span class="keyword">true</span> )) != NULL ||</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>           cpl_frameset_find(frames, UVES_TFLAT(<span class="keyword">false</span>)) != NULL)</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>     {</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_raw_imagelist(frames, </div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>                        flames,</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>                        UVES_TFLAT(<span class="keyword">true</span>), UVES_TFLAT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>                        CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>                        raw_images, raw_headers, product_header, </div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>                        &blue), <span class="stringliteral">"Error loading raw flat frames"</span>);</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>         <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>          chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>         {</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>             product_tag[<a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip)] = UVES_MASTER_TFLAT(chip);</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>         }</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>     }</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span>  (cpl_frameset_find(frames, UVES_SCREEN_FLAT(<span class="keyword">true</span> )) != NULL ||</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>           cpl_frameset_find(frames, UVES_SCREEN_FLAT(<span class="keyword">false</span>)) != NULL)</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>     {</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_raw_imagelist(frames, </div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>                        flames,</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>                        UVES_SCREEN_FLAT(<span class="keyword">true</span>), UVES_SCREEN_FLAT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>                        CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>                        raw_images, raw_headers, product_header, </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>                        &blue), <span class="stringliteral">"Error loading raw flat frames"</span>);</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>         <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>          chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>         {</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>             product_tag[<a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip)] = UVES_MASTER_SCREEN_FLAT(chip);</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>         }</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     }</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span>  (cpl_frameset_find(frames, UVES_SFLAT(<span class="keyword">true</span> )) != NULL ||</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>           cpl_frameset_find(frames, UVES_SFLAT(<span class="keyword">false</span>)) != NULL)</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>     {</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_raw_imagelist(frames, </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>                        flames,</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>                        UVES_SFLAT(<span class="keyword">true</span>), UVES_SFLAT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>                        CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>                        raw_images, raw_headers, product_header, </div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>                        &blue), <span class="stringliteral">"Error loading raw flat frames"</span>);</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>         <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>          chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>         {</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>             product_tag[<a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip)] = UVES_MASTER_SFLAT(chip);</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>         }</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>     }</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     {</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>         assure(<span class="keyword">false</span>, CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>            <span class="stringliteral">"Missing input flat frame: "</span></div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>            <span class="stringliteral">"%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s or %s expected"</span>,</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>            UVES_FLAT(<span class="keyword">true</span>) , UVES_FLAT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>            UVES_DFLAT(<span class="keyword">true</span>), UVES_DFLAT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>            UVES_IFLAT(<span class="keyword">true</span>), UVES_IFLAT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>            UVES_TFLAT(<span class="keyword">true</span>), UVES_TFLAT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>            UVES_SCREEN_FLAT(<span class="keyword">true</span>), UVES_SCREEN_FLAT(<span class="keyword">false</span>),</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>            UVES_SFLAT(<span class="keyword">true</span>), UVES_SFLAT(<span class="keyword">false</span>));</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>     }</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> </div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     <span class="comment">/* Loop over one or two chips */</span></div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>      chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>      chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>     {</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span> </div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDU"</span>) == 0) {</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>       }</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>         </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>         raw_index = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>         </div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing %s chip"</span>, <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span> </div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>         <span class="comment">/* Chip name of first input frame */</span></div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( chip_name = <a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e" title="Find out the chip ID.">uves_pfits_get_chipid</a>(raw_headers[raw_index][0], chip));</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>         <span class="comment">/* Load master bias, set pointer to NULL if not present */</span></div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>         uves_free_image(&master_bias);</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>         uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>         <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_MASTER_BIAS(chip)) != NULL)</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>         {</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>             uves_free_image(&master_bias);</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>             uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mbias(frames,</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>                        chip_name,</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>                        &master_bias_filename, &master_bias,</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>                        &master_bias_header, chip), </div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>                <span class="stringliteral">"Error loading master bias"</span>);</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>             </div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master bias in '%s'"</span>, master_bias_filename);</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>         }</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>         {</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No master bias in SOF. Bias subtraction not done"</span>);</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>         }</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>     </div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>         <span class="comment">/* Load master dark, set pointer to NULL if not present */</span></div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>         uves_free_image(&master_dark);</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>         uves_free_propertylist(&master_dark_header);</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>         <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_MASTER_DARK(chip))  != NULL ||</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>         cpl_frameset_find(frames, UVES_MASTER_PDARK(chip)) != NULL)</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>         {</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>             uves_free_image(&master_dark);</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>             uves_free_propertylist(&master_dark_header);</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mdark(frames, chip_name,</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>                        &master_dark_filename, &master_dark,</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>                        &master_dark_header, chip), </div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>                <span class="stringliteral">"Error loading master dark"</span>);</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>             </div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master dark in '%s'"</span>, master_dark_filename);</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>         }</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>         {</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No master dark in SOF. Dark subtraction not done"</span>);</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>         }</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>     </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>         <span class="comment">/* Load the order table for this chip */</span></div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>         <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>         <span class="comment">/* FLAMES does not do background subtraction (here)</span></div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span> <span class="comment">           and therefore does not need an ordertable */</span></div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>         {</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>             <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_ORDER_TABLE(flames, chip)) != NULL)</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>             {</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>                 <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Order table (%s) is not used in FLAMES reduction"</span>,</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>                          UVES_ORDER_TABLE(flames, chip));</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>             }</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>         }</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>         {</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>             uves_free_table       (&ordertable);</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>             uves_free_propertylist(&ordertable_header);</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>             <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>             uves_free_table       (&traces);</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>             </div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_ordertable(frames,</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>                         flames,</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>                         chip_name,</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>                         &ordertable_filename, </div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>                                                 &ordertable,</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>                         &ordertable_header, </div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>                                                 NULL,</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>                                                 &order_locations,</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>                         &traces, NULL, NULL,</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>                                        NULL, NULL, <span class="comment">/* fibre_pos,fibre_mask */</span></div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>                         chip,</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>                         <span class="keyword">false</span>),</div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>                <span class="stringliteral">"Could not load order table"</span>);</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using order table in '%s'"</span>, ordertable_filename);</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>         }</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span> </div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>         <span class="comment">/* Compute QC parameters and save */</span></div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Computing QC parameters"</span>);</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>             <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>             qclog[0] = <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(raw_headers[raw_index][0], chip);</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__reduce__mflat.html#ga02a8ec0f31954bdcb88ca7b73f06babb" title="Process a single chip.">uves_mflat_qclog</a>(raw_images[raw_index],</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>                    qclog[0]),<span class="stringliteral">"error computing qclog"</span>);</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>     </div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span> </div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>        </div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>         <span class="comment">/* Process chip */</span></div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>         uves_free_image(&master_flat);</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>         uves_free_image(&background);</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( master_flat = <a class="code" href="group__uves__reduce__mflat.html#ga28f40f90cc7f91b1e2ef317c74c73fa2" title="Process a single chip.">uves_mflat_process_chip</a>(</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>                raw_images[raw_index], raw_headers[raw_index],</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>                product_header[raw_index],</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>                master_bias,</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>                master_dark, master_dark_header,</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>                ordertable, order_locations,</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>                flames,</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>                parameters,</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>                chip,</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>                recipe_id,</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>                debug_mode,</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>                &background),</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>            <span class="stringliteral">"Error processing chip"</span>);</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span> </div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>          <span class="comment">/* Finished. Save */</span> </div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Saving products"</span>);</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>     </div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>         cpl_free(product_filename);</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = uves_masterflat_filename(chip), </div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>                <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>         strcpy(pro_filename,prefix);</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>         strcat(pro_filename,product_filename);</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>                    frames,</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>                    master_flat,</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>                    CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>                    CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>                    CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>                    pro_filename,</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>                    product_tag[raw_index],</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                    raw_headers[raw_index][0],</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>                    product_header[raw_index],</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>                    NULL,</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>                    parameters,</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>                    recipe_id,</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>                    PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION, qclog,</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>                    starttime, <span class="keyword">true</span>, UVES_ALL_STATS),</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>                <span class="stringliteral">"Could not add master flat %s %s to frameset"</span>, </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>                product_filename, product_tag[raw_index]);</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Master flat %s %s added to frameset"</span>, </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>                  pro_filename, product_tag[raw_index]);</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> </div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>         <span class="comment">/* Save background image */</span></div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>         <span class="keywordflow">if</span> (!flames)</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>         {</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>             cpl_free(product_filename);</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = uves_masterflat_bkg_filename(chip), </div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>                <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>             strcpy(pro_filename,prefix);</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>             strcat(pro_filename,product_filename);</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>             </div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                         background,</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>                         CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>                         CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>                         CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>                         pro_filename,</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>                         UVES_BKG_FLAT(chip),</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>                         raw_headers[raw_index][0],</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                         product_header[raw_index],</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>                         NULL,</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>                         parameters,</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>                         recipe_id,</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                         PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION, NULL,</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                         starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                         CPL_STATS_MIN | CPL_STATS_MAX),</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>                <span class="stringliteral">"Could not add background image '%s' to frameset"</span>, </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                product_filename);</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Master flat background '%s' added to frameset"</span>, </div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                  product_filename);</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>                 }</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> </div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>         <span class="comment">/* Compute and save ratio MASTER_TFLAT / REF_TFLAT */</span></div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>         <span class="keywordflow">if</span> (strcmp(recipe_id, make_str(UVES_TFLAT_ID)) == 0)</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>         {</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span> </div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>             uves_free_image(&ref_flat);</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>             uves_free_propertylist(&ref_flat_header);</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span> </div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_ref_flat(frames, chip_name, &ref_flat_filename, </div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>                           &ref_flat, &ref_flat_header, </div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                           chip),</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                <span class="stringliteral">"Error loading reference flat field"</span>);</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>             </div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using reference flat field in '%s'"</span>, ref_flat_filename);</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span> </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ratio = cpl_image_divide_create(master_flat, ref_flat),</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>                <span class="stringliteral">"Error computing ratio of master and reference flat"</span>);</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> </div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>             cpl_free(product_filename);</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = uves_flat_ratio_filename(chip), </div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>                <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>             </div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>                         ratio,</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>                         CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                         CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>                         CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>                         product_filename,</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>                         UVES_RATIO_TFLAT(chip),</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>                         raw_headers[raw_index][0],</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>                         product_header[raw_index],</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>                         NULL,</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>                         parameters,</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>                         recipe_id,</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>                         PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>                         qclog,</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>                         starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>                         UVES_ALL_STATS),</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>                <span class="stringliteral">"Could not add ratio image '%s' to frameset"</span>, product_filename);</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> </div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Master flat ratio '%s' added to frameset"</span>, product_filename);</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>         }</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> </div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDL"</span>) == 0) {</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>       }</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> </div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>     </div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>     } <span class="comment">/* For each chip */</span></div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>     </div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>   cleanup:</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>     <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>     <span class="keywordflow">if</span> (raw_images[0] != NULL)</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>     {</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>         <span class="keywordflow">for</span> (i = 0; i < cpl_imagelist_get_size(raw_images[0]); i++) </div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>         {</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>             <span class="keywordflow">if</span> (raw_headers[0] != NULL) uves_free_propertylist(&raw_headers[0][i]);</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>             <span class="keywordflow">if</span> (raw_headers[1] != NULL) uves_free_propertylist(&raw_headers[1][i]);</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>         }</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>         cpl_free(raw_headers[0]); raw_headers[0] = NULL;</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>         cpl_free(raw_headers[1]); raw_headers[1] = NULL;</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>     }</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> </div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>     uves_free_imagelist(&raw_images[0]);</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>     uves_free_imagelist(&raw_images[1]);</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> </div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>     <span class="comment">/* Master bias */</span></div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>     uves_free_image(&master_bias);</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>     uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> </div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>     <span class="comment">/* Master dark */</span></div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>     uves_free_image(&master_dark);</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>     uves_free_propertylist(&master_dark_header);</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span> </div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>     <span class="comment">/* Order table */</span></div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>     uves_free_table(&ordertable);</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>     uves_free_propertylist(&ordertable_header);</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>     uves_free_table(&traces);</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>     <span class="comment">/* Reference master flat */</span></div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>     uves_free_image(&ref_flat);</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>     uves_free_propertylist(&ref_flat_header);</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>     </div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>     uves_free_image(&master_flat);</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>     uves_free_image(&background);</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>     uves_free_image(&ratio);</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>     uves_free_propertylist(&product_header[0]);</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>     uves_free_propertylist(&product_header[1]);</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>     cpl_free(product_filename);</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>     </div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> }</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> </div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> </div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> </div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01071"></a><span class="lineno"><a class="code" href="group__uves__reduce__mflat.html#ga02a8ec0f31954bdcb88ca7b73f06babb"> 1071</a></span> <a class="code" href="group__uves__reduce__mflat.html#ga02a8ec0f31954bdcb88ca7b73f06babb" title="Process a single chip.">uves_mflat_qclog</a>(<span class="keyword">const</span> cpl_imagelist* raw_images,</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>          cpl_table* qclog)</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> {</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>   <span class="keywordtype">int</span> nraw=0;</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> </div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>                         <span class="stringliteral">"QC TEST1 ID"</span>,</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>                         <span class="stringliteral">"Test-on-Master-Flat"</span>,</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>                         <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>                         <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nraw=cpl_imagelist_get_size(raw_images));</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> </div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>                         <span class="stringliteral">"PRO DATANCOM"</span>,</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                         nraw,</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>                         <span class="stringliteral">"Number of frames combined"</span>,</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                         <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>  cleanup:</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__reduce__mflat_8h_source.html b/html/uves__reduce__mflat_8h_source.html
deleted file mode 100644
index 302af54..0000000
--- a/html/uves__reduce__mflat_8h_source.html
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_reduce_mflat.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_reduce_mflat.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.6 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.4  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.3  2007/02/09 13:41:04  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Enable calling from uves_mkmaster_sflat</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.2  2006/11/13 12:47:42  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Don't subtract background for FLAMES reduction</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.1  2006/09/27 13:22:43  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Factored out flat reduction</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#ifndef UVES_REDUCE_MFLAT_H</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_REDUCE_MFLAT_H</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <a class="code" href="group__uves__reduce__mflat.html#ga7d38d6807a0067cc5e8dd44a44ebaa07" title="Setup the recipe options.">uves_mflat_define_parameters_body</a>(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <a class="code" href="group__uves__reduce__mflat.html#ga1bae4e786a7fc24b0061ae293112f5ae" title="Get the command line options and execute the data reduction.">uves_mflat_exe_body</a>(cpl_frameset *frames, </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>             <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_mflat_desc;</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#endif  </span><span class="comment">/* UVES_REDUCE_MFLAT_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__reduce__mflat__combine_8c_source.html b/html/uves__reduce__mflat__combine_8c_source.html
deleted file mode 100644
index d327b8f..0000000
--- a/html/uves__reduce__mflat__combine_8c_source.html
+++ /dev/null
@@ -1,524 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_reduce_mflat_combine.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_reduce_mflat_combine.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.12 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> </div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <uves_reduce_mflat_combine.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_backsub.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="keyword">static</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <a class="code" href="group__uves__reduce__mflat__combine.html#ga2b69a8d67f29f1794ee4efe7bbbcb699" title="Get the command line options and execute the data reduction.">uves_reduce_mflat_combine</a>(cpl_frameset *frames, </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>                           <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>                           <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>                           <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>                           <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime);</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_mflat_combine_desc =</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="stringliteral">"This recipe combined a MASTER_FLAT_xxxx with a MASTER_DFLAT_xxxx\n"</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="stringliteral">"Input are:\n"</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="stringliteral">"a master flat (MASTER_FLAT_xxxx)\n"</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="stringliteral">"a master dflat (MASTER_DFLAT_xxxx)\n"</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="stringliteral">"an order table (ORDER_TABLE_xxxx)\n"</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="stringliteral">"provided for each chip (xxxx = BLUE, REDL, REDU). \n"</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="stringliteral">"Output is a MASTER_FLAT_xxxx\n"</span>;</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="group__uves__reduce__mflat__combine.html#ga74ca4174a5bba5f066a627eddc5d5d9c">   92</a></span> <a class="code" href="group__uves__reduce__mflat__combine.html#ga74ca4174a5bba5f066a627eddc5d5d9c" title="Setup the recipe options.">uves_mflat_combine_define_parameters_body</a>(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> {</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">    *    General    *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment">    *****************/</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>    <span class="keywordflow">if</span> (uves_define_global_parameters(parameters) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>    {</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>       <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>    }</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> }</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="group__uves__reduce__mflat__combine.html#ga7c98495b1b6ad337e267c3fd44d12c4b">  124</a></span> <a class="code" href="group__uves__reduce__mflat__combine.html#ga7c98495b1b6ad337e267c3fd44d12c4b" title="Get the command line options and execute the data reduction.">uves_mflat_combine_exe_body</a>(cpl_frameset *frames, </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>                             <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>                             <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>                             <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> {</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>    <span class="keywordtype">bool</span> flames = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__reduce__mflat__combine.html#ga2b69a8d67f29f1794ee4efe7bbbcb699" title="Get the command line options and execute the data reduction.">uves_reduce_mflat_combine</a>(frames, parameters,flames,recipe_id,</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>                                    starttime));</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>   cleanup:</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>    <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> }</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> cpl_image*</div>
-<div class="line"><a name="l00154"></a><span class="lineno"><a class="code" href="group__uves__reduce__mflat__combine.html#gabd0a1d5c0c76fcafb1ff0d3fb7aa9249">  154</a></span> <a class="code" href="group__uves__reduce__mflat__combine.html#gabd0a1d5c0c76fcafb1ff0d3fb7aa9249" title="Get the command line options and execute the data reduction.">uves_combine_flats</a>(<span class="keyword">const</span> cpl_frame* frm_flat,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>                    <span class="keyword">const</span> cpl_frame* frm_dflat,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>                    cpl_frameset* frames,</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                    <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> ORDER_THRESHOLD)</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> {</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>    <span class="keyword">const</span> <span class="keywordtype">char</span>                *   name_flat=NULL ;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>    <span class="keyword">const</span> <span class="keywordtype">char</span>                *   name_dflat=NULL ;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>    <span class="keyword">const</span> <span class="keywordtype">char</span> *ordertable_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>    cpl_image*              ima_flat=NULL;</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>    cpl_image*              ima_dflat=NULL;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>    cpl_image*              ima_cflat=NULL;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>    cpl_image*              ima_mask=NULL;</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>    <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>    <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>    <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>    <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>  </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>    <span class="keywordtype">double</span>* point_mask=NULL;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>    <span class="keywordtype">double</span> xpos=0;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>    <span class="keywordtype">double</span> ypos=0;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>   </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>    <span class="keywordtype">double</span> order_ref=(double)ORDER_THRESHOLD;</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>    <span class="keywordtype">int</span> ypos_min=0;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>    <span class="keywordtype">int</span> ypos_max=0;</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>    <span class="keywordtype">int</span> ypos_cen=0;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>    <span class="keywordtype">int</span> xpos_cen=0;</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>    <span class="keywordtype">int</span> xrad=5;</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>    <span class="keywordtype">int</span> yrad=5;</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>    <span class="keywordtype">int</span> llx=0;</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>    <span class="keywordtype">int</span> lly=0;</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>    <span class="keywordtype">int</span> urx=0;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>    <span class="keywordtype">int</span> ury=0;</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>    <span class="keywordtype">double</span> dflux=0;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>    <span class="keywordtype">double</span> fflux=0;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>    <span class="keywordtype">double</span> scale=0;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>    <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>    <span class="comment">/* Order table */</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>    cpl_table        *ordertable            = NULL;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>    <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *ordertable_header     = NULL;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>    <a class="code" href="struct__polynomial.html">polynomial</a>       *order_locations       = NULL;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>    cpl_table        *traces                = NULL;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>   <span class="keyword">enum</span> uves_chip chip=UVES_CHIP_BLUE;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>  </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>  </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>    name_flat=cpl_frame_get_filename(frm_flat);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>    name_dflat=cpl_frame_get_filename(frm_dflat);</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_flat=cpl_image_load(name_flat,CPL_TYPE_DOUBLE,0,0));</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_dflat=cpl_image_load(name_dflat,CPL_TYPE_DOUBLE,0,0));</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>    <span class="comment">/* check size flat is same as size dflat */</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>    sx=cpl_image_get_size_x(ima_flat);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>    sy=cpl_image_get_size_y(ima_flat);</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>    assure(sx==cpl_image_get_size_x(ima_dflat),CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>           <span class="stringliteral">"illagal x size"</span>);</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>    assure(sy==cpl_image_get_size_y(ima_dflat),CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>           <span class="stringliteral">"illagal y size"</span>);</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>  </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( chip_name = UVES_CHIP_ID(chip));</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Combining %s chip"</span>, <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>    </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_ordertable(frames,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                                flames,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                                chip_name,</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                                &ordertable_filename, </div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                                &ordertable,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                                &ordertable_header, </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                                NULL,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                                &order_locations,</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>                                &traces, NULL, NULL,</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>                                NULL, NULL, <span class="comment">/* fibre_pos,fibre_mask */</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>                                chip,</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>                                <span class="keyword">false</span>),</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>           <span class="stringliteral">"Could not load order table"</span>);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using order table in '%s'"</span>, ordertable_filename);</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>    <span class="comment">/* Do real job */</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>    ypos=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations,0,order_ref);</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>    ypos+=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations,0,order_ref+1);</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>    ypos/=2.;</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>    ypos_min=(int)ypos;</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> </div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>    ypos=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations,(<span class="keywordtype">double</span>)sx,order_ref);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>    ypos+=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations,(<span class="keywordtype">double</span>)sx,order_ref+1);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>    ypos/=2.;</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>    ypos_max=(int)ypos;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>  </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"ypos min=%d max=%d"</span>,ypos_min,ypos_max);</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>    ima_mask = cpl_image_new(sx,sy,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>    point_mask=cpl_image_get_data_double(ima_mask);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>    <span class="comment">/* set upper part of mask to 1 */</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>    <span class="keywordflow">for</span>(j=(<span class="keywordtype">int</span>)ypos_max;j<sy;j++) {</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>       <span class="keywordflow">for</span>(i=0;i<sx;i++) {</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>          point_mask[j*sx+i]=1.;</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>       }</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>    }</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>    <span class="comment">/* in transition region (only) make the check */</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>    <span class="keywordflow">for</span>(j=ypos_min;j<ypos_max;j++) {</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>       <span class="keywordflow">for</span>(i=0;i<sx;i++) {</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>          xpos=(double)i;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>          <span class="comment">/* Here the order trace pass through the order center </span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment">            but we want to have the trace in the inter order region</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment">            y=(yc1+yc2)/2; where yc1 and yc2 are the two position at </span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment">                           order center and order+1 center</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment">         */</span> </div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>          ypos= <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations,xpos,order_ref);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>          ypos+=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations,xpos,order_ref+1);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>          ypos/=2.;</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>          <span class="keywordflow">if</span>(j > ypos)  {</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>             point_mask[j*sx+i] = 1.;</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>          }</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>       }</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>    }</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="comment">   cpl_image_save(ima_mask,"ima_mask_ord.fits", CPL_BPP_IEEE_FLOAT,NULL,</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment">                  CPL_IO_DEFAULT);</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="comment"></span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>    <span class="comment">/*determine ref flux on flat (order_ref+1) */</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>    xpos_cen=sx/2;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>    llx=xpos_cen-xrad;</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>    urx=xpos_cen+xrad; </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>    ypos= <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations,(<span class="keywordtype">double</span>)xpos_cen,</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>                                      order_ref+1);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>    ypos_cen=(int)ypos;</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>    lly=ypos_cen-yrad;</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>    ury=ypos_cen+yrad;</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>    fflux=cpl_image_get_median_window(ima_flat,llx,lly,urx,ury);</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>    <span class="comment">/*determine ref flux on dflat (order_ref) */</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>    ypos=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations,(<span class="keywordtype">double</span>)xpos_cen,order_ref);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>    ypos_cen=(int)ypos;</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>    lly=ypos_cen-yrad;</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>    ury=ypos_cen+yrad;</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>    dflux=cpl_image_get_median_window(ima_dflat,llx,lly,urx,ury);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>  </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>    scale=fflux/dflux;</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"flux: n=%g d=%g s=%g"</span>,fflux,dflux,scale);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>    <span class="comment">/* combine images */</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>    ima_cflat=cpl_image_duplicate(ima_flat);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>    cpl_image_multiply(ima_cflat,ima_mask);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>    cpl_image_multiply_scalar(ima_mask,-1.);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>    cpl_image_add_scalar(ima_mask,1.);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>    cpl_image_multiply(ima_dflat,ima_mask);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>    cpl_image_multiply_scalar(ima_dflat,scale);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>    cpl_image_add(ima_cflat,ima_dflat);</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="comment">   cpl_image_save(ima_cflat,"ima_cflat.fits", CPL_BPP_IEEE_FLOAT,NULL,</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment">                  CPL_IO_DEFAULT);</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>   cleanup:</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>    uves_free_table(&ordertable);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>    uves_free_propertylist(&ordertable_header);</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>    <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>    uves_free_table(&traces);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>    uves_free_image(&ima_flat);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>    uves_free_image(&ima_dflat);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>    uves_free_image(&ima_mask);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>    <span class="keywordflow">return</span> ima_cflat;</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> }</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno"><a class="code" href="group__uves__reduce__mflat__combine.html#ga2b69a8d67f29f1794ee4efe7bbbcb699">  348</a></span> <a class="code" href="group__uves__reduce__mflat__combine.html#ga2b69a8d67f29f1794ee4efe7bbbcb699" title="Get the command line options and execute the data reduction.">uves_reduce_mflat_combine</a>(cpl_frameset *frames, </div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>                           <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>                           <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>                           <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>                           <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> {</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>    <span class="keywordtype">bool</span> debug_mode;</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>    cpl_frame           *   frm_dflat=NULL ;</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>    cpl_frame           *   frm_flat=NULL ;</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>                *   name_flat=NULL ;</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>    <span class="keyword">const</span> <span class="keywordtype">char</span>                *   name_dflat=NULL ;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>    <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* hflat=NULL;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>    <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>    cpl_table *qclog[]                  = {NULL, NULL};</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>    <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *product_header=NULL;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>    cpl_image* ima_cflat=NULL;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>  </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>    <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>    <span class="comment">//char *product_filename = "master_cflat_blue.fits";</span></div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>    <span class="keywordtype">char</span> *product_filename = NULL;</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>    <span class="keyword">const</span> <span class="keywordtype">char</span> *product_tag[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>    <span class="keywordtype">char</span> pro_filename[255];</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>    <span class="comment">//const char *product_tag = "MASTER_FLAT_BLUE";</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>    <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>    <span class="keywordtype">int</span> ORDER_THRESHOLD=7;</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>    <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>    <span class="keywordtype">int</span> raw_index=0;</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>    <span class="keywordtype">bool</span> blue=<span class="keyword">true</span>;</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>    <span class="comment">/* Read recipe parameters */</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>    {</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>       <span class="comment">/* General */</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"debug"</span>, </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>                                 CPL_TYPE_BOOL  , &debug_mode ),</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>              <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>    }</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"process_chip"</span>, </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>                              CPL_TYPE_STRING, &PROCESS_CHIP), </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>           <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> </div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>    <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> </div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"order_threshold"</span>, </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>                              CPL_TYPE_INT, &ORDER_THRESHOLD), </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>           <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>    <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>         chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>    {</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>       <span class="keywordflow">if</span> (</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>         cpl_frameset_find(frames,UVES_MASTER_FLAT(chip)) != NULL || </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>         cpl_frameset_find(frames,UVES_MASTER_DFLAT(chip)) != NULL </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>          )</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>       {</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>          <span class="keywordflow">if</span>(chip == UVES_CHIP_BLUE) {</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>             blue = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>          }</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>          <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>             blue = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>          }</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>             blue = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>       }</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>    }</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>    </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>    <span class="comment">/* Load and check input frames */</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>    <span class="comment">/* Loop over one or two chips */</span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>    <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>         chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>         chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>    {</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDU"</span>) == 0) {</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>       }</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>         </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>       raw_index = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>         </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing %s chip"</span>, <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>  </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>       frm_flat=cpl_frameset_find(frames,UVES_MASTER_FLAT(chip));</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>       frm_dflat=cpl_frameset_find(frames,UVES_MASTER_DFLAT(chip));</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>  </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>       <span class="keywordflow">if</span>(frm_flat == NULL && frm_dflat == NULL) {</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>          <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"A %s or %s frame or both must be provided in input"</span>,</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>                         UVES_MASTER_FLAT(chip),UVES_MASTER_DFLAT(chip));</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>          <span class="keywordflow">goto</span> cleanup;</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>       }</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>       <span class="keywordflow">else</span> <span class="keywordflow">if</span>(frm_flat == NULL && frm_dflat != NULL) {</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>          name_dflat=cpl_frame_get_filename(frm_dflat); </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>          hflat=<a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(name_dflat,0);</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>          ima_cflat=cpl_image_load(name_dflat,CPL_TYPE_DOUBLE,0,0);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (frm_flat != NULL && frm_dflat == NULL) {</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>          name_flat=cpl_frame_get_filename(frm_flat); </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>          hflat=<a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(name_flat,0);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>          ima_cflat=cpl_image_load(name_flat,CPL_TYPE_DOUBLE,0,0);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>          <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(name_dflat=cpl_frame_get_filename(frm_dflat));</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>          <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(hflat=<a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(name_dflat,0));</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>          <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_cflat=<a class="code" href="group__uves__reduce__mflat__combine.html#gabd0a1d5c0c76fcafb1ff0d3fb7aa9249" title="Get the command line options and execute the data reduction.">uves_combine_flats</a>(frm_flat,frm_dflat,frames,</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                                                   flames,ORDER_THRESHOLD));</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>   </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>       }</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>       cpl_free(product_filename);</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = uves_masterflat_filename(chip),</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>             <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>       sprintf(pro_filename,product_filename);</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>       product_header=<a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(hflat);</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>       product_tag[<a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip)] = UVES_MASTER_FLAT(chip);</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>    </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                 frames,</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                 ima_cflat,</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                 CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                 CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                 CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>                 pro_filename,</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>                 product_tag[raw_index],</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>                 hflat,</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>                 product_header,</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>                 NULL,</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>                 parameters,</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>                 recipe_id,</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>                 PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION, qclog,</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>                 starttime, <span class="keyword">true</span>, UVES_ALL_STATS),</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>              <span class="stringliteral">"Could not add master flat %s %s to frameset"</span>, </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>              pro_filename, product_tag[raw_index]);</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Master flat %s %s added to frameset"</span>, </div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>                pro_filename, product_tag[raw_index]);</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDL"</span>) == 0) {</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>       }</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>      uves_free_image(&ima_cflat);</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>      <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>      uves_free_propertylist(&product_header);</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>      uves_free_propertylist(&hflat);</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>    } <span class="comment">/* For each chip */</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> </div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>   cleanup:</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>   </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>   uves_free_image(&ima_cflat);</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>   <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>   uves_free_propertylist(&product_header);</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>   uves_free_propertylist(&hflat);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>   cpl_free(product_filename);</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> </div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>    <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> }</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__reduce__mflat__combine_8h_source.html b/html/uves__reduce__mflat__combine_8h_source.html
deleted file mode 100644
index 596762d..0000000
--- a/html/uves__reduce__mflat__combine_8h_source.html
+++ /dev/null
@@ -1,106 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_reduce_mflat_combine.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_reduce_mflat_combine.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-12-07 16:57:23 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.1 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifndef UVES_REDUCE_MFLAT_COMBINE_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_REDUCE_MFLAT_COMBINE_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> </div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> </div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <a class="code" href="group__uves__reduce__mflat__combine.html#ga74ca4174a5bba5f066a627eddc5d5d9c" title="Setup the recipe options.">uves_mflat_combine_define_parameters_body</a>(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <a class="code" href="group__uves__reduce__mflat__combine.html#ga7c98495b1b6ad337e267c3fd44d12c4b" title="Get the command line options and execute the data reduction.">uves_mflat_combine_exe_body</a>(cpl_frameset *frames, </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span>             <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime,</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_mflat_combine_desc;</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#endif  </span><span class="comment">/* UVES_REDUCE_MFLAT_COMBINE_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__reduce__scired_8c_source.html b/html/uves__reduce__scired_8c_source.html
deleted file mode 100644
index 08e0a8f..0000000
--- a/html/uves__reduce__scired_8c_source.html
+++ /dev/null
@@ -1,2227 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_reduce_scired.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_reduce_scired.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.70 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <uves_reduce_scired.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_reduce.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <uves_reduce_utils.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves_corrbadpix.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_plot.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <uves_merge.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <a class="code" href="group__uves__scired.html#ga699b1c68f1d91a6b1ca600921c41d21a" title="compute science QC">scired_qclog</a>(<span class="keyword">const</span> cpl_table* info_tbl, </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>          <span class="keyword">const</span> cpl_image *raw_image,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>          <span class="keywordtype">double</span> slit,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>          cpl_table* qclog);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <a class="code" href="group__uves__scired.html#ga32377202a0bcb66b410988f7c6cf51fa" title="compute tflat QC">tflat_qclog</a>(<span class="keyword">const</span> cpl_image* ima,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>         cpl_table* qclog);</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_scired_desc_short = <span class="stringliteral">"Reduces a science frame"</span>;</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_scired_desc =</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="stringliteral">"This recipe reduces a science frame (SCIENCE_BLUE or SCIENCE_RED, or\n"</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="stringliteral">"UVES_SCI_POINT_BLUE or UVES_SCI_POINT_RED, or \n"</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="stringliteral">"UVES_SCI_EXTND_BLUE or UVES_SCI_EXTND_RED or \n"</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="stringliteral">"UVES_SCI_SLICER_BLUE or UVES_SCI_SLICER_RED) using "</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="stringliteral">"a combination (depending on recipe parameters and provided input frames) of "</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="stringliteral">"the steps:\n"</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="stringliteral">" - bias subtraction,\n"</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="stringliteral">" - dark subtraction,\n"</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="stringliteral">" - background subtraction,\n"</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="stringliteral">" - extraction/cosmic ray removal,\n"</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="stringliteral">" - flat field correction,\n"</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="stringliteral">" - wavelength rebinning,\n"</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="stringliteral">" - sky subtraction,\n"</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="stringliteral">" - order merging,\n"</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="stringliteral">" - response correction (if response curve is provided).\n"</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="stringliteral">"Additional input for this recipe are: \n"</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="stringliteral">"order table(s) for each chip, ORDER_TABLE_xxxx (where xxxx=BLUE, REDL, REDU),\n"</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="stringliteral">"line table(s) for each chip, LINE_TABLE_xxxx, a master bias frame,\n"</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="stringliteral">"MASTER_BIAS_xxxx, a master flat, MASTER_FLAT_xxxx, \n"</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="stringliteral">"optionally an instrument  response table, INSTR_RESPONSE_xxx\n"</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="stringliteral">"optionally a table describing the atmospheric extintion,\n"</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="stringliteral">"EXTCOEFF_TABLE. \n"</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="stringliteral">"For each chip (xxxx = BLUE, REDL, REDU) the recipe produces a combination of "</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="stringliteral">"the products:\n"</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="stringliteral">" 'RED_SCIENCE_xxxx'        Reduced science spectrum\n"</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="stringliteral">" 'MERGED_SCIENCE_xxxx'     Merged spectrum, no sky subtraction\n"</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="stringliteral">" 'WCALIB_SCIENCE_xxxx'     Extracted, wavelength calibrated frame in\n"</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="stringliteral">"                           (wavelength, order) space\n"</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="stringliteral">" 'WCALIB_FF_SCIENCE_xxxx'  Extracted, flat-fielded, wave.cal. frame in\n"</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="stringliteral">"                           (wavelength, order) space\n"</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="stringliteral">"                           (Only if flatfielding done)\n"</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="stringliteral">" 'WCALIB_FLAT_OBJ_xxxx'    Extracted, wavelength calibrated flat field\n"</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="stringliteral">"                           in (wavelength, order) space\n"</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="stringliteral">"                           (Only if flatfielding done)\n"</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="stringliteral">" 'ERRORBAR_SCIENCE_xxxx'   Error bars of 'RED_SCIENCE_xxxx'\n"</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="stringliteral">" 'VARIANCE_SCIENCE_xxxx'   Variance of extracted, flatfielded object in\n"</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="stringliteral">"                           (pixel, order) space\n"</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="stringliteral">" 'ORDER_TRACE_xxxx'        Table describing the spatial profile\n"</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="stringliteral">" 'FLUXCAL_SCIENCE_xxxx'    Flux-calibrated science spectrum\n"</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="stringliteral">" 'FLUXCAL_ERROR_xxxx'      Error bars of 'FLUXCAL_SCIENCE_xxxx'\n"</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="stringliteral">" 'BKG_SCI_xxxx'            The subtracted background image\n"</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="stringliteral">" 'CRMASK_xxxx'             List of cosmic ray hits\n"</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="stringliteral">" 'MERGED_SKY_xxxx'         The merged sky spectrum\n"</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="stringliteral">" 'EXT_2D_SCIENCE_xxxx'     The 2d extracted spectrum\n"</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="stringliteral">" 'FF2D_SCIENCE_xxxx'       The 2d extracted, flat-fielded spectrum\n"</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="stringliteral">" 'WCAL2D_SCIENCE_xxxx'     The 2d extracted, flat-fielded, wave.cal. spectrum\n"</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="stringliteral">" 'MER2D_SCIENCE_xxxx'      The 2d reduced, flux-calibrated (if possible) \n"</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="stringliteral">"                           science spectrum\n"</span>;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="keyword">static</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>*</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> uves_paste_wave_accuracy(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* header_from)</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> {</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* header_add=NULL;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>   <span class="keywordtype">double</span> waverms=0;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>   <span class="keywordtype">double</span> wavenlin=0;</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>   <span class="keywordtype">double</span> waveerr=0;</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>   <span class="keywordtype">double</span> wavesys=0;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* key_comm=NULL;</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>   <span class="keywordtype">char</span> key_name_i[40];</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>   <span class="keywordtype">char</span> key_name_o[40];</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"paste wave accuracy"</span>);</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>   header_add=<a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>   sprintf(key_name_o,<span class="stringliteral">"CUNIT1"</span>);</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>   key_comm=<span class="stringliteral">"Wavelength units"</span>;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>   <a class="code" href="group__uves__propertylist.html#ga39fee1a93e3baa0085017d4870144d7c" title="Append a string value to a property list.">uves_propertylist_append_c_string</a>(header_add,key_name_o,<span class="stringliteral">"Angstrom"</span>,key_comm);</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>   sprintf(key_name_i,<span class="stringliteral">"ESO QC LINE RESIDRMS WLU"</span>);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   sprintf(key_name_o,<span class="stringliteral">"LAMRMS"</span>);</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>   key_comm=<span class="stringliteral">"RMS of wavelength solution [CUNIT1]"</span>;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>   <span class="keywordflow">if</span>(<a class="code" href="group__uves__propertylist.html#gafd6db82a3ab2a060af6cc2a661bbc032" title="Check whether a property is present in a property list.">uves_propertylist_has</a>(header_from,key_name_i)) {</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     waverms=<a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(header_from,key_name_i);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     <a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93" title="Append a double value to a property list.">uves_propertylist_append_c_double</a>(header_add,key_name_o,waverms,key_comm);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>   }</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>   sprintf(key_name_i,<span class="stringliteral">"ESO QC NLINSOL"</span>);</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>   sprintf(key_name_o,<span class="stringliteral">"LAMNLIN"</span>);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>   key_comm=<span class="stringliteral">"No. of lines used in wavelength solution"</span>;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>   <span class="keywordflow">if</span>(<a class="code" href="group__uves__propertylist.html#gafd6db82a3ab2a060af6cc2a661bbc032" title="Check whether a property is present in a property list.">uves_propertylist_has</a>(header_from,key_name_i)) {</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     wavenlin=<a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(header_from,key_name_i);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     <a class="code" href="group__uves__propertylist.html#gaad79e5cdd03fa3c809205ca63c8951b9" title="Append an integer value to a property list.">uves_propertylist_append_c_int</a>(header_add,key_name_o,wavenlin,key_comm);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>   }</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>   sprintf(key_name_i,<span class="stringliteral">"ESO QC LINE WAVEERR"</span>);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>   sprintf(key_name_o,<span class="stringliteral">"CRDER1"</span>);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>   key_comm=<span class="stringliteral">"Wavelength uncertainty [CUNIT1]"</span>;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>   <span class="keywordflow">if</span>(<a class="code" href="group__uves__propertylist.html#gafd6db82a3ab2a060af6cc2a661bbc032" title="Check whether a property is present in a property list.">uves_propertylist_has</a>(header_from,key_name_i)) {</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     waveerr=<a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(header_from,key_name_i);</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     <a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93" title="Append a double value to a property list.">uves_propertylist_append_c_double</a>(header_add,key_name_o,waveerr,key_comm);</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>   }</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>   sprintf(key_name_i,<span class="stringliteral">"ESO QC LINE SYSERR"</span>);</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>   sprintf(key_name_o,<span class="stringliteral">"CSYER1"</span>);</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   key_comm=<span class="stringliteral">"Typical systematic wavelength error [CUNIT1]"</span>;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>   <span class="keywordflow">if</span>(<a class="code" href="group__uves__propertylist.html#gafd6db82a3ab2a060af6cc2a661bbc032" title="Check whether a property is present in a property list.">uves_propertylist_has</a>(header_from,key_name_i)) {</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     wavesys=<a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(header_from,key_name_i);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     <a class="code" href="group__uves__propertylist.html#gab4b3c176085a36d143893fe7aca72e93" title="Append a double value to a property list.">uves_propertylist_append_c_double</a>(header_add,key_name_o,wavesys,key_comm);</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>   }</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>   <span class="keywordflow">return</span> header_add;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> }</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno"><a class="code" href="group__uves__scired.html#ga1c491907022557327d0a5bad5281965f">  216</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__scired.html#ga1c491907022557327d0a5bad5281965f" title="Setup the recipe options.">uves_scired_define_parameters_body</a>(cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                        <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id)</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> {</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">     *    General    *</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     <span class="keywordflow">if</span> (uves_define_global_parameters(parameters) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>         {</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>         }</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     <span class="comment">/**************************************</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment">     *  detector's trap correction        *</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment">     **************************************/</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>  </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     <span class="keywordflow">if</span> (uves_corr_traps_define_parameters(parameters,recipe_id) </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         {</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>         }</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <span class="comment">/*******************</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment">     *  Reduce.        *</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="keywordflow">if</span> (uves_propagate_parameters_step(UVES_REDUCE_ID, parameters,</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>                                        recipe_id, NULL) != 0)</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         {</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         }</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> }</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> uves_get_pro_catg_special(<span class="keywordtype">bool</span> extract_is_2d, merge_method m_method) {</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>    <span class="keyword">const</span> <span class="keywordtype">char</span>* result=NULL;</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>    <span class="keywordflow">if</span>(extract_is_2d && m_method == MERGE_NOAPPEND) {</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>       result=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!extract_is_2d && </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>               m_method == MERGE_NOAPPEND) {</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>       result=<span class="stringliteral">"_NONMERGED"</span>;</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>    } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>       result=<span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>    }</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>    <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> }</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="keyword">static</span> cpl_frame **</div>
-<div class="line"><a name="l00274"></a><span class="lineno"><a class="code" href="group__uves__scired.html#gae1ef37fb82ed9624dcb990d250c927c9">  274</a></span> <a class="code" href="group__uves__scired.html#gae1ef37fb82ed9624dcb990d250c927c9" title="Change tag of RAW frames to NONE.">set_all_raw_none</a>(cpl_frameset *frames)</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> {</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     cpl_frame **result = NULL;</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     cpl_frame *f;</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     result = cpl_calloc( cpl_frameset_get_size(frames) + 1,</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>                          <span class="keyword">sizeof</span>(*result) );</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     <span class="keywordflow">for</span> (f = cpl_frameset_get_first(frames), i = 0;</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>          f != NULL;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>          f = cpl_frameset_get_next(frames))</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>         {</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>             <span class="keywordflow">if</span> (cpl_frame_get_group(f) == CPL_FRAME_GROUP_RAW)</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>                 {</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>                     <span class="comment">/* Change + remember this frame */</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>                     cpl_frame_set_group(f, CPL_FRAME_GROUP_NONE);</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>                     result[i] = f;</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>                     i++;</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>                 }</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>         }</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     <span class="comment">/* 'result' is now a NULL-terminated array of the frames that were changed */</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> }</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00374"></a><span class="lineno"><a class="code" href="group__uves__scired.html#ga6a10de9dbd4e09a1d341a778df5ac85e">  374</a></span> <a class="code" href="group__uves__scired.html#ga6a10de9dbd4e09a1d341a778df5ac85e" title="Reduce one chip of a UVES science frame.">uves_scired_process_chip</a>(<span class="keyword">const</span> cpl_image *raw_image, </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header,</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>                          <span class="keyword">const</span> cpl_image *master_bias,</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>                          <span class="keyword">const</span> cpl_image *master_dark, </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mdark_header,</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                          <span class="keyword">const</span> cpl_image *master_flat, </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mflat_header,</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>                          <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>                          <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>                          <span class="keyword">const</span> cpl_table *linetable[3], </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *linetable_header[3], </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>                          <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation[3],</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>                          <span class="keyword">const</span> cpl_image *response_curve, </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>              <span class="keyword">const</span> cpl_table *master_response,</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *response_curve_header,</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>                          <span class="keyword">const</span> cpl_table *atm_extinction,</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>                          <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>                          <span class="comment">/* General */</span></div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>                          <span class="keywordtype">bool</span>   debug_mode,</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>                          <span class="comment">/* Backsub */</span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>                          <span class="comment">/* Flat fielding */</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>                          <span class="comment">/* Extraction */</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>                          <span class="comment">/* Rebinning  */</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>                          <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                          <span class="comment">/* Output     */</span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                          cpl_image **x2d, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **x2d_header,</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>                          cpl_image **fx2d,</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                          cpl_image **background,</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>                          cpl_image **flatfielded_variance,</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>                          <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **flatfielded_variance_header,</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>                          cpl_image **resampled_science,</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>                          cpl_image **resampled_mf,</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                          cpl_image **rebinned_science, </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                          <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **rebinned_header,</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>                          cpl_image **merged_sky,</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>                          cpl_image **merged_science, </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                          <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **merged_header,</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                          cpl_image **reduced_science,</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                          cpl_image **reduced_science_error,</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                          cpl_table **cosmic_mask,</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                          cpl_image **wave_map,</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>                          cpl_image **fluxcal_science,</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>                          cpl_image **fluxcal_error,</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                          <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **fluxcal_header,</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                          cpl_table **info_tbl,</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>              <span class="keywordtype">double</span> *extraction_slit,</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                          cpl_table **order_trace)</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> {</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     cpl_image *rebinned_noise = NULL;</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     cpl_image *merged_noise   = NULL;</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     cpl_image *reduced_rebinned = NULL;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     cpl_image *reduced_rebinned_noise = NULL;</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     cpl_table *response_table = NULL;</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     <span class="comment">/* Do the science reduction. Produces wave.cal. spectra. */</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Reducing science object"</span>);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__reduce.html#gad5308bc6e13c7e02e134e6f0ce6be722" title="Reduce a science frame.">uves_reduce</a>(raw_image, </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>                        raw_header, </div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>                        rotated_header,</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>                        master_bias,</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>                        master_dark, </div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>                        mdark_header,</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>                        master_flat, </div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>                        mflat_header, </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>                        ordertable, </div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>                        order_locations,</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>                        linetable, </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>                        linetable_header, </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>                        dispersion_relation,</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>                        chip,</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>                        debug_mode, </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                        parameters, </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                        recipe_id,</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>                        <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                        <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                        x2d, </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                        x2d_header, </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>                        fx2d,</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>                       cosmic_mask,</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>                        wave_map,</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>                         background,</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>                        flatfielded_variance, </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>                        flatfielded_variance_header,</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>                        resampled_science,</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                        resampled_mf,</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>                        merged_sky,</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                        rebinned_science, </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                        &rebinned_noise, </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>                        rebinned_header,</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                        merged_science, </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                        &merged_noise, </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                        merged_header,</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                        &reduced_rebinned, </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                        &reduced_rebinned_noise,</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>                        reduced_science, </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>                        reduced_science_error,</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>                        info_tbl,</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>                extraction_slit,</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>                        order_trace),</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>            <span class="stringliteral">"Could not reduce frame"</span>);</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>     <span class="comment">/* Plot middle row */</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_image_rows(*reduced_science, </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>                 1 + cpl_image_get_size_y(*reduced_science)/2,</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>                 1 + cpl_image_get_size_y(*reduced_science)/2, 1,</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>                 <span class="stringliteral">"Wavelength (arbitrary units)"</span>, <span class="stringliteral">"Relative flux"</span>,</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>                 <span class="stringliteral">"Reduced science spectrum"</span>),</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>        <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> <span class="comment">     * Flux calibrate the reduced spectrum</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> <span class="comment">     * (which is an image of height 1, or more if extract.method=2d)</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     <span class="keywordflow">if</span> (response_curve != NULL || master_response != NULL)</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>         {</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>             <span class="keywordtype">double</span> lambda_start;</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>             <span class="keywordtype">double</span> dlambda;</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>             <span class="keywordtype">int</span> bin;</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>             <span class="comment">/* Number of spatial traces (> 1 for 2d extraction) */</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>             <span class="keywordtype">int</span> n_traces = cpl_image_get_size_y(*reduced_science);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>             </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Flux calibrating spectrum"</span>);</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>             <span class="comment">/* We cannot be certain that the formats (wavelength start, bin width)</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> <span class="comment">               of the science spectrum and the response curve are identical.</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="comment">               Therefore we interpolate the response curve at the wavelengths </span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> <span class="comment">               defined by the bins of the science spectrum. */</span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>                 </div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> </div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>             <span class="comment">/* If the response curve is an image, convert to table.</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment">           This is needed for the interpolation */</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>         <span class="keywordflow">if</span> (response_curve != NULL) {</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>                 response_table = cpl_table_new(cpl_image_get_size_x(response_curve));</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>                 cpl_table_new_column(response_table, <span class="stringliteral">"LAMBDA"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>                 cpl_table_new_column(response_table, <span class="stringliteral">"FLUX_CONV"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>                 </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_start = <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(response_curve_header),</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>                        <span class="stringliteral">"Error reading response curve start wavelength from header"</span>);</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                 </div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dlambda = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(response_curve_header),</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>                        <span class="stringliteral">"Error reading bin width from header"</span>);</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>                 </div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>                 <span class="keywordflow">for</span> (bin = 1; bin <= cpl_image_get_size_x(response_curve); bin++) {</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>                     <span class="keywordtype">double</span> lambda;</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>                     <span class="keywordtype">double</span> response;</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>                     <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>                     </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>                     lambda = lambda_start + (bin-1) * dlambda;</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>                     </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( response = cpl_image_get(response_curve, bin, 1, &pis_rejected),</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>                            <span class="stringliteral">"Error reading response curve bin = %d"</span>, bin);</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>                     </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>((cpl_table_set_double(response_table, <span class="stringliteral">"LAMBDA"</span>, bin - 1, lambda),</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>                            cpl_table_set_double(response_table, <span class="stringliteral">"FLUX_CONV"</span>, bin - 1, response)),</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>                           <span class="stringliteral">"Error updating response table at row %d"</span>, bin - 1);</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>                 }</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>             } </div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>         response_table = cpl_table_duplicate( master_response );</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>         } <span class="comment">/* Response table created */</span>        </div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>             </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>             <span class="comment">/*</span></div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> <span class="comment">             * Correct for exposure time, gain, binning, atm. ext.</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>             </div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *fluxcal_science = <a class="code" href="group__uves__reduce.html#ga1867e835a6183494d513613729836205" title="Normalize a spectrum.">uves_normalize_spectrum</a>(*reduced_science,</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>                                                               *reduced_science_error,</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>                                                               *merged_header,</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>                                                               raw_header,</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>                                                               n_traces,</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                                                               chip,</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                                                               atm_extinction,</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                                                               <span class="keyword">true</span>,    <span class="comment">/* Divide by binning? */</span></div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                                                               fluxcal_error), </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                    <span class="stringliteral">"Error normalizing reduced spectrum"</span>);</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>             </div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>             <span class="comment">/* </span></div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> <span class="comment">             * Flux calibrate reduced spectrum </span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> <span class="comment">             *  flux := flux * response</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Multiplying by response function"</span>);</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>             {</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>                 <span class="keywordtype">int</span> nbins   = cpl_image_get_size_x(*fluxcal_science);</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>                 <span class="keywordtype">int</span> ntraces = cpl_image_get_size_y(*fluxcal_science);</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>                 <span class="keywordtype">double</span> *fluxcal_science_data  = cpl_image_get_data_double(*fluxcal_science);</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>                 <span class="keywordtype">double</span> *fluxcal_science_noise = cpl_image_get_data_double(*fluxcal_error);</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>                 </div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_start = <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(*merged_header),</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>                        <span class="stringliteral">"Error reading start wavelength from reduced science header"</span>);</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                 </div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dlambda = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(*merged_header),</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>                        <span class="stringliteral">"Error reading bin width from header"</span>);</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                 </div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                 <span class="keywordflow">for</span> (bin = 1; bin <= nbins; bin++)</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>                     {</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>                         <span class="keywordtype">double</span> lambda;</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>                         <span class="keywordtype">double</span> response;</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>                         <span class="keywordtype">int</span> trace;       <span class="comment">/* Spatial traces (for 2d extracted spectra) */</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>                         <span class="keywordtype">int</span> istart = 0;</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span> </div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>                         lambda = lambda_start + (bin-1) * dlambda;</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>                         </div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>                         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( response = </div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>                                <a class="code" href="group__uves__utils.html#ga182ae551020b196be2e177c09f16b220" title="Spline interpolation based on Hermite polynomials.">uves_spline_hermite_table</a>(lambda, response_table, </div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>                            <span class="stringliteral">"LAMBDA"</span>, <span class="stringliteral">"FLUX_CONV"</span>, &istart),</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>                                <span class="stringliteral">"Error interpolating response curve at lambda = %f wlu"</span>, lambda);</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>                         </div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>                         <span class="keywordflow">for</span> (trace = 1; trace <= ntraces; trace++)</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>                             {</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>                 <span class="comment">/* Don't check for bad pixels here, also correct those.</span></div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> <span class="comment">                 * The fluxcal image has the same bad pixels as the reduced_science</span></div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> <span class="comment">                 * image */</span></div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> </div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>                 fluxcal_science_data [(bin-1) + (trace-1)*nbins] *= response;</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>                 fluxcal_science_noise[(bin-1) + (trace-1)*nbins] *= response;</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> </div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>                 <span class="comment">/* Do not propagate the error of the response </span></div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> <span class="comment">                   curve which is negligibly small (and unknown at this point!).</span></div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                 }</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>             }</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                 </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                 <span class="comment">/* Plot middle row */</span></div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_image_rows(*fluxcal_science, </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>                                             1 + cpl_image_get_size_y(*fluxcal_science)/2,</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>                                             1 + cpl_image_get_size_y(*fluxcal_science)/2, 1,</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>                                             <span class="stringliteral">"Wavelength (arbitrary units)"</span>, </div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>                                             <span class="stringliteral">"Flux (10^-16 erg/cm^2/A/sec)"</span>, </div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>                                             <span class="stringliteral">"Flux calibrated science spectrum"</span>),</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>                        <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>                 </div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *fluxcal_header = <a class="code" href="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37" title="Initialize image header.">uves_initialize_image_header</a>(<span class="stringliteral">"AWAV"</span>, <span class="stringliteral">" "</span>, </div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>                                                                       <span class="stringliteral">"Angstrom"</span>, NULL,</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>                                                                       <span class="stringliteral">"10^-16 erg/cm^2/A/sec"</span>,</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>                                                                       1,</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>                                                                       lambda_start, 1.0,</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>                                                                       1.0, 1.0,</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>                                                                       dlambda, 1.0),</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                        <span class="stringliteral">"Error initializing flux calibrated spectrum header"</span>);</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>             } <span class="comment">/* Done multiplying by response curve */</span></div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>         }</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>         {</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping absolute flux calibration"</span>);</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>         }</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     </div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>   cleanup:</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     uves_free_image(&rebinned_noise);</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     uves_free_image(&merged_noise);</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     uves_free_image(&reduced_rebinned_noise);</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>     uves_free_image(&reduced_rebinned);</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     uves_free_table(&response_table);</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> </div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>         {</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>         }</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span> }</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> </div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00654"></a><span class="lineno"><a class="code" href="group__uves__scired.html#ga0780489bfd35e6728e0d1b9c7036e119">  654</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__scired.html#ga0780489bfd35e6728e0d1b9c7036e119" title="Get the command line options and execute the data reduction.">uves_reduce_scired</a>(cpl_frameset *frames, <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> {</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>     <span class="comment">/* Recipe parameters */</span></div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>     <span class="keywordtype">bool</span> debug_mode;</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>     <span class="keywordtype">bool</span> CLEAN_TRAPS;</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>     <span class="keywordtype">bool</span> extract_is_2d = <span class="keyword">false</span>;     <span class="comment">/* Are we doing a 2d reduction? */</span></div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span> </div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>     <span class="comment">/* Input, raw */</span></div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>     cpl_image        *raw_image[2]      = {NULL, NULL};</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2]     = {NULL, NULL};</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>     <span class="comment">/* Input, calib */</span></div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>     cpl_image        *master_bias        = NULL;</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_bias_header = NULL;</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>     cpl_image        *master_flat        = NULL;</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_flat_header = NULL;</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> </div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>     cpl_image        *master_dark        = NULL;</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_dark_header = NULL;</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> </div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>     cpl_table        *ordertable       = NULL;</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *ordertable_header= NULL;</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>     <a class="code" href="struct__polynomial.html">polynomial</a>       *order_locations  = NULL;</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>     cpl_table        *traces           = NULL;</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> </div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>     <span class="comment">/* Line tables for sky, object, sky (UVES specific) */</span></div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>     <span class="keyword">const</span> cpl_table        *linetable[3]           = {NULL, NULL, NULL};</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>     <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *linetable_header[3]    = {NULL, NULL, NULL};</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>     <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a>       *dispersion_relation[3] = {NULL, NULL, NULL};</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> </div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     cpl_image        *response_curve        = NULL;</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *response_curve_header = NULL;</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>     cpl_table        *master_response       = NULL;</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> </div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>     cpl_table        *atm_extinction        = NULL;</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> </div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>     <span class="comment">/*  BKG_SCI           */</span></div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     cpl_image        *background            = NULL;</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> </div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>     <span class="comment">/*  VARIANCE_SCIENCE                 */</span>  </div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     cpl_image        *flatfielded_variance  = NULL;</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *flatfielded_variance_header = NULL;</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="comment">/*  WCALIB_SCIENCE    */</span></div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     cpl_image        *resampled_science     = NULL;     <span class="comment">/* extracted -> rebinned */</span></div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     <span class="comment">/*  WCALIB_FLAT_OBJ   */</span></div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>     cpl_image        *resampled_mf          = NULL;</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>     <span class="comment">/*  WCALIB_FF_SCIENCE */</span></div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>     cpl_image        *rebinned_science      = NULL;     <span class="comment">/* extracted -> ff -> rebinned */</span></div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> </div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rebinned_header       = NULL;</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> </div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     <span class="comment">/*  MERGED_SKY        */</span></div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     cpl_image        *merged_sky            = NULL;</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     <span class="comment">/*  MERGED_SCIENCE / MER2D_SCIENCE   */</span></div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>     <span class="comment">/*  RED_SCIENCE                      */</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     <span class="comment">/*  ERRORBAR_SCIENCE                 */</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>     cpl_image        *merged_science        = NULL;</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *merged_header         = NULL;</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     cpl_image        *reduced_science       = NULL;</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>     cpl_image        *reduced_science_error = NULL;</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>   </div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     <span class="comment">/*  FLUXCAL_SCIENCE / FLUXCAL_ERROR */</span></div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>     cpl_image        *fluxcal_science       = NULL;</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>     cpl_image        *fluxcal_error         = NULL;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *fluxcal_header       = NULL;</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     <span class="comment">/*  ORDER_TRACE       */</span></div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     cpl_table         *order_trace        = NULL;</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *order_trace_header = NULL;</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span> </div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     <span class="comment">/* EXT_2D_SCIENCE */</span></div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>     cpl_image        *x2d        = NULL;</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *x2d_header = NULL;</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>     <span class="comment">/* FF2D_SCIENCE */</span></div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>     cpl_image        *fx2d       = NULL;</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> </div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>     <span class="comment">/*  CRMASK            */</span></div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>     cpl_table        *cosmic_mask           = NULL;</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *cosmic_mask_header    = NULL;</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> </div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>     <span class="comment">/* QC */</span></div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>     cpl_table* qclog[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>     cpl_table *qclog_tflat = NULL;</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> </div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>     <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *raw_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *atm_ext_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *sci_type = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>     cpl_frame **raw_frames = NULL;  <span class="comment">/* Array of cpl_frame pointers */</span></div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>     <span class="keywordtype">char</span> *product_tag = NULL;</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>     <span class="keywordtype">char</span> *product_filename = NULL;</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>     <span class="keywordtype">char</span> *context = NULL;</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>     <span class="keywordtype">double</span> extraction_slit;</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span> </div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     <span class="keywordtype">bool</span> blue  = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>     <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     <span class="keywordtype">int</span> binx = 0;</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     <span class="keywordtype">int</span> biny = 0;</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>     </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>     cpl_table* info_tbl = NULL;</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>     <span class="keywordtype">bool</span> red_ccd_is_new=0;</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     merge_method m_method;</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* catg_is_noappend=NULL;</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>     cpl_image* wave_map=NULL;</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* wave_map_header=NULL;</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* wave_acc_header=NULL;</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span> </div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>     <span class="comment">/* Read recipe parameters */</span></div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>     {</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *ex_method = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>         <span class="comment">/* General */</span></div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"debug"</span>, CPL_TYPE_BOOL, &debug_mode),</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> </div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> </div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"debug"</span>, CPL_TYPE_BOOL, &debug_mode),</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span> </div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> </div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"process_chip"</span>, CPL_TYPE_STRING, &PROCESS_CHIP),</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span> </div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span> </div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters,NULL,recipe_id, <span class="stringliteral">"clean_traps"</span>, CPL_TYPE_BOOL, &CLEAN_TRAPS),</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> </div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span> </div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>         </div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>         <span class="comment">/* Reduction method */</span></div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>     context = uves_sprintf(<span class="stringliteral">"%s.%s.%s"</span>, recipe_id, UVES_REDUCE_ID, UVES_EXTRACT_ID);</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>                                   context, <span class="stringliteral">"method"</span>,</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>                                   CPL_TYPE_STRING, &ex_method),</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> </div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>         extract_is_2d = (strcmp(ex_method, <span class="stringliteral">"2d"</span>) == 0); </div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>     </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>     <span class="comment">/* Load raw image and header, and identify input frame as red or blue */</span></div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_science(frames, &raw_filename, raw_image, raw_header, rotated_header,</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>                  &blue, &sci_type),</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>            <span class="stringliteral">"Error loading raw frame"</span>);</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>     </div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>     <span class="keywordflow">if</span> ((strcmp(sci_type, <span class="stringliteral">"SCI_SLICER"</span>) == 0 ||</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>          strcmp(sci_type, <span class="stringliteral">"SCI_EXTND"</span> ) == 0) &&</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>         strcmp(ex_method, <span class="stringliteral">"optimal"</span>) == 0)</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>         {</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Going to optimally extract an extended object (%s). "</span></div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>                  <span class="stringliteral">"This may not work because the sky cannot be "</span></div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>                  <span class="stringliteral">"reliably determined"</span>,</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>                  sci_type);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>         }</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>     }</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>     </div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>     <span class="comment">/* Load atmospheric extinction table if present */</span></div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>     <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_EXTCOEFF_TABLE) != NULL)</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>         {</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_atmo_ext(frames, &atm_ext_filename, &atm_extinction),</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>                    <span class="stringliteral">"Error loading atm. extinction coefficients"</span>);</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>             </div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using atmospheric extinction table in '%s'"</span>, atm_ext_filename);</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>         }</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>         {</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No atmospheric extinction table. Flux calibration not done"</span>);</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>         }</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span> </div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( m_method = <a class="code" href="group__uves__merge.html#gaeef8fc529ffcfda1a562fd06c7540069" title="Read merging method from parameter list.">uves_get_merge_method</a>(parameters, recipe_id, <span class="stringliteral">"reduce"</span>),</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>            <span class="stringliteral">"Could not get merging method"</span>);</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>     </div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>     <span class="comment">/* Adjust parameters according to binning </span></div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span> <span class="comment">     * (note that x- and y-directions are swapped later by uves_crop_and_rotate()) </span></div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (binx = <a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(raw_header[0]), </div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>            <span class="stringliteral">"Could not read x binning factor from input header"</span>);</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (biny = <a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(raw_header[0]), </div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>            <span class="stringliteral">"Could not read y binning factor from input header"</span>);</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span> </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(red_ccd_is_new=<a class="code" href="group__uves__pfits.html#ga84bbe16d83dc492a6104f3b301f1c2f9" title="Find out if CCD header is new.">uves_ccd_is_new</a>(raw_header[0]));</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>     <span class="comment">/* Loop over one or two chips, over traces and</span></div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span> <span class="comment">       over extraction windows */</span></div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>     <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue);</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>          chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>         {</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> </div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span> </div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span> </div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDU"</span>) == 0) {</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>       }</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> </div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>             cpl_frame *mflat_frame = NULL;</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *ordertable_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *linetable_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *master_bias_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *master_dark_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *master_flat_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *response_curve_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>             <span class="comment">/* const char *drs_filename        = "";    not used */</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>             <span class="comment">/* Do this to skip REDL chip: chip = uves_chip_get_next(chip); */</span></div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>             <span class="keywordtype">int</span> raw_index = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>             <span class="keywordtype">int</span> tracerow;                      <span class="comment">/* Index of table row */</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>             </div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing %s chip in '%s'"</span>,</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>                      <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip), raw_filename);</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>             </div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( chip_name = <a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e" title="Find out the chip ID.">uves_pfits_get_chipid</a>(raw_header[raw_index], chip));</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> </div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Binning = %dx%d"</span>, binx, biny);</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>             </div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>             </div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>             <span class="comment">/* Load master bias, set pointer to NULL if not present */</span></div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>             uves_free_image(&master_bias);</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>             uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>             <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_MASTER_BIAS(chip)) != NULL)</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>                 {</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>                     uves_free_image(&master_bias);</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>                     uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span> </div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mbias(frames, chip_name, &master_bias_filename,</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>                                            &master_bias, &master_bias_header,</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>                                            chip),</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>                            <span class="stringliteral">"Error loading master bias"</span>);</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>                     </div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>                     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master bias in '%s'"</span>, master_bias_filename);</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>                 }</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>                 {</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>                     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No master bias in SOF. Bias subtraction not done"</span>);</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>                 }</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span> </div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>             <span class="comment">/* Load master dark, set pointer to NULL if not present */</span></div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>             uves_free_image(&master_dark);</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>             uves_free_propertylist(&master_dark_header);</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>             <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_MASTER_DARK(chip))  != NULL ||</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>                 cpl_frameset_find(frames, UVES_MASTER_PDARK(chip)) != NULL)</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span> </div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>                 {</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mdark(frames, chip_name, &master_dark_filename,</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>                                            &master_dark, &master_dark_header, chip),</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>                            <span class="stringliteral">"Error loading master dark"</span>);</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>                     </div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>                     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master dark in '%s'"</span>, master_dark_filename);</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>                 }</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>                 {</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>                     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No master dark in SOF. Dark subtraction not done"</span>);</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>                 }</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>             </div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>             <span class="comment">/* Load master flat */</span></div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>             uves_free_image(&master_flat);</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>             uves_free_propertylist(&master_flat_header);</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mflat(frames, chip_name, &master_flat_filename, &master_flat, </div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                                    &master_flat_header, chip, &mflat_frame),</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>                    <span class="stringliteral">"Error loading master flat"</span>);</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>             </div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master flat in '%s'"</span>, master_flat_filename);</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>             </div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>             </div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>             <span class="comment">/* Load the order table for this chip */</span></div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>             uves_free_table       (&ordertable);</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>             uves_free_propertylist(&ordertable_header);</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>             <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>             uves_free_table       (&traces);</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>             </div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_ordertable(frames, </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>                     <span class="keyword">false</span>,  <span class="comment">/* FLAMES? */</span></div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>                     chip_name, </div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                                         &ordertable_filename, </div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>                                         &ordertable, </div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>                                         &ordertable_header,</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                                         NULL, </div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                                         &order_locations, </div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>                                         &traces,</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                     NULL, NULL,</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                                        NULL, NULL, <span class="comment">/* fibre_pos,fibre_mask */</span></div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>                                         chip, <span class="keyword">false</span>),</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>                    <span class="stringliteral">"Could not load order table"</span>);</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using order table in '%s'"</span>, ordertable_filename);</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> </div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>             <span class="comment">/* Load response curve, if present. </span></div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> <span class="comment">               Only if atm. extinction table was present. */</span></div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>             <span class="keywordflow">if</span> (atm_extinction != NULL)</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>                 {</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>                     <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_INSTR_RESPONSE(chip)) != NULL ||</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>             cpl_frameset_find(frames, UVES_MASTER_RESPONSE(chip)) != NULL)</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                         {</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                             uves_free_image(&response_curve);</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                             uves_free_table(&master_response);</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>                             uves_free_propertylist(&response_curve_header);</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_response_curve(frames, chip_name,</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                                                             &response_curve_filename,</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                                                             &response_curve, </div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>                                 &master_response,</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>                                                             &response_curve_header,</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>                                                             chip),</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>                                    <span class="stringliteral">"Error loading response curve"</span>);</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>                             </div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>                 <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using %sresponse curve in '%s'"</span>, </div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>                      master_response != NULL ? <span class="stringliteral">"master "</span> : <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>                      response_curve_filename);</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>                         }</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>                         {</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No response curve in SOF. "</span></div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                                          <span class="stringliteral">"Flux calibration not done"</span>);</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>                         }</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>                 }</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>                 {</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"There is no atmospheric extinction table. "</span></div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>                                    <span class="stringliteral">"Do not look for response curve"</span>);</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                 }</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>             </div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>             <span class="comment">/* Loop over all traces (1 trace for UVES) */</span></div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>             <span class="keywordflow">for</span>(tracerow = 0; tracerow < cpl_table_get_nrow(traces); tracerow++)</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>                 {</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>                     <span class="keywordtype">double</span> trace_offset;</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>                     <span class="keywordtype">int</span> trace_number;</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                     <span class="keywordtype">int</span> trace_enabled;</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>                     <span class="keywordtype">int</span> badpixels_cleaned;</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>                     trace_offset  = cpl_table_get_double(traces, <span class="stringliteral">"Offset"</span>    , tracerow, NULL);</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>                     trace_number  = cpl_table_get_int   (traces, <span class="stringliteral">"TraceID"</span>   , tracerow, NULL);</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>                     trace_enabled = cpl_table_get_int   (traces, <span class="stringliteral">"Tracemask"</span> , tracerow, NULL);</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>                     </div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>                     <span class="keywordflow">if</span> (trace_enabled != 0)</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>                         {</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>                             <span class="keywordtype">int</span> window;          <span class="comment">/* window number */</span></div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>                             </div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>                             <span class="keywordflow">if</span> (cpl_table_get_nrow(traces) > 1) {</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>                                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing trace %d"</span>, trace_number);</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>                             }</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>                             </div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>                             <span class="comment">/* This is UVES specific. Load linetable for the </span></div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> <span class="comment">                               two sky windows (number 1, 3) and for the object</span></div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> <span class="comment">                               window (number 2) */</span></div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>                             </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>                             <span class="keywordflow">for</span> (window = 1; window <= 3; window ++) {</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>                                 uves_free_table_const ( &(linetable[window-1]) );</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>                                 uves_free_propertylist_const( &(linetable_header[window-1]) );</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>                                 <a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd" title="Delete a const polynomial.">uves_polynomial_delete_const</a>( &(dispersion_relation[window-1]) );</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>                                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_linetable_const(frames,</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>                                <span class="keyword">false</span>,  <span class="comment">/* FLAMES? */</span></div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>                                chip_name,</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>                                                            order_locations,</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>                                                            cpl_table_get_column_min(</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>                                                                ordertable, <span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>                                                            cpl_table_get_column_max(</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>                                                                ordertable, <span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>                                                            &linetable_filename,</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>                                                            &(linetable          [window-1]),</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>                                                            &(linetable_header   [window-1]),</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>                                                            &(dispersion_relation[window-1]),</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>                                                            NULL,</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>                                                            chip,</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>                                                            trace_number,</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>                                                            window),</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>                                        <span class="stringliteral">"Could not load line table, window #%d"</span>, window);</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>                                 </div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>                                 <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using line table(s) in '%s'"</span>, linetable_filename);</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> </div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>                             }</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>                             <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* plist=<a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(linetable_filename,0);</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>                 uves_free_propertylist(&wave_acc_header);</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>                 wave_acc_header=uves_paste_wave_accuracy(plist);</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>                             uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>                             <span class="comment">/* end, UVES specific */</span></div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>                             </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>                             <span class="comment">/* Do the science reduction + flux calibration */</span></div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>                             uves_free_image(&x2d);</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>                             uves_free_image(&fx2d);</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>                             uves_free_propertylist(&x2d_header);</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>                             uves_free_image(&background);</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>                             uves_free_image(&flatfielded_variance);</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>                             uves_free_propertylist(&flatfielded_variance_header);</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>                             uves_free_image(&resampled_science);</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>                             uves_free_image(&resampled_mf);</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>                             uves_free_image(&rebinned_science);</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>                             uves_free_propertylist(&rebinned_header);</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>                             uves_free_image(&merged_sky);</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>                             uves_free_image(&merged_science);</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>                             uves_free_propertylist(&merged_header);</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>                             uves_free_image(&reduced_science);</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                             uves_free_image(&reduced_science_error);</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>                             uves_free_table(&cosmic_mask);</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>                             uves_free_image(&fluxcal_science);</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>                             uves_free_image(&fluxcal_error);</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                             uves_free_propertylist(&fluxcal_header);</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                             uves_free_table(&info_tbl);</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>                             uves_free_table(&order_trace);                            </div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>                             <span class="keywordflow">if</span>(CLEAN_TRAPS) {</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> </div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( badpixels_cleaned = </div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>                                    <a class="code" href="group__uves__corrbadpix.html#gabddade195002b7813f7cb41baa85b729" title="Correct all bad pixels on a chip.">uves_correct_badpix_all</a>(raw_image[raw_index],</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>                                                            raw_header[raw_index], </div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>                                                            chip, binx, biny, </div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>                                                            <span class="keyword">false</span>,red_ccd_is_new),</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>                                    <span class="stringliteral">"Error replacing bad pixels"</span>);</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> </div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>                             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%d bad pixels replaced"</span>, </div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>                                      badpixels_cleaned);</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>                             }</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>   </div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__scired.html#ga6a10de9dbd4e09a1d341a778df5ac85e" title="Reduce one chip of a UVES science frame.">uves_scired_process_chip</a>(</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>                                        raw_image[raw_index], </div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>                                        raw_header[raw_index],           <span class="comment">/* Raw         */</span></div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>                                        rotated_header[raw_index],</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>                                        master_bias,           <span class="comment">/* Calibration */</span></div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>                                        master_dark, </div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>                                        master_dark_header,</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>                                        master_flat, </div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>                                        master_flat_header,</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>                                        ordertable, </div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>                                        order_locations,</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>                                        linetable, </div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                                        linetable_header, </div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>                                        dispersion_relation,</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                                        response_curve, </div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>                        master_response,</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>                                        response_curve_header,</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>                                        atm_extinction,</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>                                        chip,</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>                                        debug_mode, </div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>                                        parameters,</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>                        recipe_id,</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>                                        &x2d, </div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>                                        &x2d_header, </div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>                                        &fx2d,            <span class="comment">/* Products      */</span></div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>                                        &background,</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>                                        &flatfielded_variance,</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>                                        &flatfielded_variance_header,</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>                                        &resampled_science,</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>                                        &resampled_mf,</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>                                        &rebinned_science, </div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>                                        &rebinned_header,</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>                                        &merged_sky,</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>                                        &merged_science, </div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>                                        &merged_header,</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>                                        &reduced_science,</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>                                        &reduced_science_error,</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>                                        &cosmic_mask,</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>                        &wave_map,</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>                                        &fluxcal_science,</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>                                        &fluxcal_error,</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>                                        &fluxcal_header,</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>                                        &info_tbl,</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>                        &extraction_slit,</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>                                        &order_trace),</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>                                    <span class="stringliteral">"Science reduction failed"</span>);</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>                             </div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>                             <span class="keywordflow">if</span> (!extract_is_2d)</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>                                 {</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>                                     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>                                     qclog[0] = <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(raw_header[raw_index], chip);</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>                                     </div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__scired.html#ga699b1c68f1d91a6b1ca600921c41d21a" title="compute science QC">scired_qclog</a>(info_tbl, </div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>                             raw_header[raw_index],</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>                             raw_image[raw_index],</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>                             extraction_slit,</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>                             qclog[0]),</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>                                            <span class="stringliteral">"Could not compute QC parameters"</span>);</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>                                 }</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>                             </div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>                             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Saving products..."</span>);</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>                             <span class="comment">/* It is important to save products in the correct</span></div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> <span class="comment">                             * order, because users want to identify products depending on</span></div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> <span class="comment">                             * their number rather than the PRO-CATG (which would perhaps</span></div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> <span class="comment">                             * make more sense).</span></div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> <span class="comment">                             */</span></div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>     </div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>                             <span class="comment">/* Save RED_SCIENCE / RED2D_SCIENCE = </span></div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span> <span class="comment">                               (reduced_science, merged_header) */</span></div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>                             cpl_free(product_filename);</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>                    (extract_is_2d) ? </div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>                                    uves_scired_red_2d_science_filename(chip) : </div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>                                    ((m_method == MERGE_NOAPPEND) ? </div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>                                    uves_scired_red_noappend_science_filename(chip): uves_scired_red_science_filename(chip)),</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>                                    <span class="stringliteral">"Error getting filename"</span>);   </div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> </div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>                             cpl_free(product_tag);</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>                             catg_is_noappend=uves_get_pro_catg_special(extract_is_2d,m_method);</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>                             product_tag = uves_sprintf(</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>                                <span class="stringliteral">"RED%s%s_%s_%s"</span>,</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>                                 catg_is_noappend,</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>                 (extract_is_2d) ? <span class="stringliteral">"_2D"</span> : <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>                 sci_type, <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>                             </div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>                     <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(merged_header,wave_acc_header);</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> </div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>                                                         reduced_science,</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>                                                         CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>                                                         CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>                                                         CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>                                                         product_filename,</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>                                                         product_tag,</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>                                                         raw_header[raw_index],</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>                                                         merged_header,</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>                                                         NULL,</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>                                                         parameters,</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>                                                         recipe_id,</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>                                                         PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>                                                         qclog,</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>                                                         starttime,</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>                             <span class="keyword">false</span>,    <span class="comment">/* Do not create QC log */</span></div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>                                                         UVES_ALL_STATS),</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>                                    <span class="stringliteral">"Could not add reduced science spectrum '%s' (%s) to frameset"</span>,</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>                                    product_filename, product_tag);</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>                             </div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>                             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Reduced science spectrum '%s' (%s) added to frameset"</span>,</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>                                      product_filename, product_tag);</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>                             </div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>                             <span class="keywordflow">if</span> (extract_is_2d)</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>                                 {</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>                                     <span class="comment">/* Save EXT_2D_SCIENCE_xxxx = (x2d, x2d_header) */</span></div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>                                     cpl_free(product_filename);</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = uves_scired_ext2d_filename(chip), </div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>                                            <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>                                     </div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>                                     cpl_free(product_tag);</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>                                     product_tag = </div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>                                         uves_sprintf(<span class="stringliteral">"EXT_2D_%s_%s"</span>, sci_type,</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>                              <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>                                     </div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span> </div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> </div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>                                                                 x2d,</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>                                                                 CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>                                                                 CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>                                                                 CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>                                                                 product_filename,</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>                                                                 product_tag,</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>                                                                 raw_header[raw_index],</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>                                                                 x2d_header,</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>                                                                 NULL,</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>                                                                 parameters,</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>                                                                 recipe_id,</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>                                                                 PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION, </div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>                                                                 qclog,</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>                                                                 starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>                                                                 UVES_ALL_STATS),</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>                                            <span class="stringliteral">"Could not add 2d extracted "</span></div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>                                            <span class="stringliteral">"spectrum '%s' (%s) to frameset"</span>,</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>                                            product_filename, product_tag);</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>                                     </div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>                                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"2d extracted spectrum '%s' (%s) added to frameset"</span>,</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>                                              product_filename, product_tag);</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> </div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>                                 }</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>                             </div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>                             <span class="comment">/* Save MERGED_SCIENCE / MER2D_SCIENCE = </span></div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span> <span class="comment">                               (merged_science, merged_header) */</span></div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>                             cpl_free(product_filename);</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = (extract_is_2d) ? </div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>                                  uves_scired_merged_2d_science_filename(chip) :</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>                                  uves_scired_merged_science_filename(chip),</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>                                    <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>                             cpl_free(product_tag);</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>                             product_tag = uves_sprintf(</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>                 <span class="stringliteral">"%s_%s_%s"</span>,</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>                 (extract_is_2d) ? <span class="stringliteral">"MER_2D"</span> : <span class="stringliteral">"MERGED"</span>,</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>                                 sci_type, <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> </div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>                 <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(merged_header,wave_acc_header);</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span> </div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>                                                         merged_science,</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>                                                         CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>                                                         CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>                                                         CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>                                                         product_filename,</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>                                                         product_tag,</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>                                                         raw_header[raw_index],</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>                                                         merged_header,</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>                                                         NULL,</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>                                                         parameters,</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>                                                         recipe_id,</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>                                                         PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>                                                         qclog,</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>                                                         starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>                                                         UVES_ALL_STATS),</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>                                    <span class="stringliteral">"Could not add merged science spectrum '%s' (%s) to frameset"</span>,</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>                                    product_filename, product_tag);</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>                             </div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>                             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Merged science spectrum '%s' (%s) added to frameset"</span>, </div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>                                      product_filename, product_tag);</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>                             </div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>                             <span class="keywordflow">if</span> (!extract_is_2d)</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>                                 {</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>                                     <span class="comment">/* Save WCALIB_SCIENCE = (resampled_science, rebinned_header) </span></div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span> <span class="comment">                                     * If ff_method = extract, this product was not flat-fielded</span></div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span> <span class="comment">                                     */</span></div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>                                     cpl_free(product_filename);</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = (extract_is_2d) ?</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>                                            uves_scired_resampled_2d_filename(chip) :</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>                                            uves_scired_resampled_filename(chip), </div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>                                            <span class="stringliteral">"Error getting filename"</span>);   </div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> </div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>                                     cpl_free(product_tag);</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>                                     product_tag = </div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>                                         uves_sprintf(<span class="stringliteral">"WCALIB_%s_%s"</span>, sci_type,</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>                              <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>                             </div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>                 <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(rebinned_header,wave_acc_header);</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> </div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>                                                                 resampled_science,</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>                                                                 CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>                                                                 CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>                                                                 CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>                                                                 product_filename,</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>                                                                 product_tag,</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>                                                                 raw_header[raw_index],</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>                                                                 rebinned_header,</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>                                                                 NULL,</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>                                                                 parameters,</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>                                                                 recipe_id,</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>                                                                 PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>                                                                 qclog,</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>                                                                 starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>                                                                 UVES_ALL_STATS),</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>                                            <span class="stringliteral">"Could not add wavelength calibrated science "</span></div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>                                            <span class="stringliteral">"spectrum '%s' (%s) to frameset"</span>, product_filename, </div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>                                            product_tag);</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>                                     </div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>                                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Wavelength calibrated science spectrum '%s' "</span></div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>                                              <span class="stringliteral">"(%s) added to frameset"</span>, product_filename, </div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>                                              product_tag);</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> </div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> </div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>                                     cpl_free(product_filename);</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>                               </div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>                                            uves_order_extract_qc_standard_filename(chip),</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>                                            <span class="stringliteral">"Error getting filename"</span>);   </div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span> </div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span> </div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>                                                                 info_tbl,</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>                                                                 CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>                                                                 CPL_FRAME_TYPE_TABLE,</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>                                                                 CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>                                                                 product_filename,</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>                                                                 UVES_ORDER_EXTRACT_QC(chip),</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>                                                                 raw_header[raw_index],</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>                                                                 rotated_header[raw_index],</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>                                                                 NULL,</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>                                                                 parameters,</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>                                                                 recipe_id,</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>                                                                 PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>                                                                 NULL,</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>                                                                 starttime, <span class="keyword">true</span>, </div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>                                                                 0),</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>                                            <span class="stringliteral">"Could not add extraction quality table %s (%s)"</span></div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>                                            , product_filename, </div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>                                            UVES_ORDER_EXTRACT_QC(chip));</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span> </div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>                                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Extraction quality table '%s' "</span></div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>                                              <span class="stringliteral">"(%s) added to frameset"</span>, product_filename, </div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>                                              UVES_ORDER_EXTRACT_QC(chip));</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span> </div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span> </div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>                                 } <span class="comment">/* if not 2d extracted */</span></div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>                             </div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span> </div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>                             {</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>                                 <span class="keyword">const</span> <span class="keywordtype">char</span> *ff = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>                                 </div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>                                 <span class="comment">/* Read uves_scired.reduce.ffmethd */</span></div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>                 cpl_free(context);</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>                 context = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, recipe_id, UVES_REDUCE_ID);</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>                                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, </div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>                                                           context,</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>                                                           <span class="stringliteral">"ffmethod"</span>,</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>                                                           CPL_TYPE_STRING, &ff),</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>                                        <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>                                 </div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>                                 <span class="comment">/* If flat-fielding was done */</span></div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>                                 <span class="keywordflow">if</span> (strcmp(ff, <span class="stringliteral">"no"</span>) != 0)</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>                                     {</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>                                         <span class="comment">/* Save WCALIB_FF_SCIENCE / WCAL2D_SCIENCE =</span></div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> <span class="comment">                                           (rebinned_science, rebinned_header) */</span></div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>                     cpl_table *qc_tabs[] = {NULL, NULL, NULL};</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span> </div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>                     <span class="comment">/* QC consists of usual science QC and</span></div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span> <span class="comment">                       optionally TFLAT QC</span></div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>                     </div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>                     <span class="keywordflow">if</span> ( strcmp(recipe_id, make_str(UVES_TFLAT_ID)) == 0 )</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>                         {</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>                         <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog_tflat);</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>                         qclog_tflat = </div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>                             <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(raw_header[raw_index], chip);</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>                         </div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>                         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__scired.html#ga32377202a0bcb66b410988f7c6cf51fa" title="compute tflat QC">tflat_qclog</a>(resampled_science,</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>                                    raw_header[raw_index],</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>                                    qclog_tflat),</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>                                <span class="stringliteral">"Could not compute QC parameters"</span>);</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span> </div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>                         qc_tabs[0] = qclog_tflat;</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>                         qc_tabs[1] = qclog[0];</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>                         }</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>                         {</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>                         qc_tabs[0] = qclog[0];</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>                         qc_tabs[1] = NULL;</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>                         }</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>                     </div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>                                         cpl_free(product_filename);</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>                                         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>                                                (extract_is_2d) ? </div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>                                                uves_scired_rebinned_2d_filename(chip) :</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>                                                uves_scired_rebinned_filename(chip), </div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>                                                <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span> </div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>                                         cpl_free(product_tag);</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>                                         product_tag = uves_sprintf(</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>                         <span class="stringliteral">"%s_%s_%s"</span>,</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>                                             (extract_is_2d) ? <span class="stringliteral">"WCAL_2D"</span> : <span class="stringliteral">"WCALIB_FF"</span>,</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>                                             sci_type, <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>                                         </div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>                 <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(rebinned_header,wave_acc_header);</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span> </div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>                                         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>                                                                     rebinned_science,</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>                                                                     CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>                                                                     CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>                                                                     CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>                                                                     product_filename,</div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>                                                                     product_tag,</div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>                                                                     raw_header[raw_index],</div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>                                                                     rebinned_header,</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>                                                                     NULL,</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>                                                                     parameters,</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>                                                                     recipe_id,</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>                                                                     PACKAGE <span class="stringliteral">"/"</span> </div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>                                                                     PACKAGE_VERSION,</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>                                                                     qc_tabs,</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>                                                                     starttime, <span class="keyword">true</span>,</div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>                                                                     UVES_ALL_STATS),</div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>                                                <span class="stringliteral">"Could not add wavelength calibrated flat-fielded "</span></div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>                                                <span class="stringliteral">"science spectrum '%s' (%s) to frameset"</span>, </div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>                                                product_filename, product_tag);</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>                                     </div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>                                         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Wavelength calibrated flat-fielded science "</span></div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>                                                  <span class="stringliteral">"spectrum '%s' (%s) added to frameset"</span>,</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>                                                  product_filename, product_tag);</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>                                         </div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>                                         <span class="keywordflow">if</span> (!extract_is_2d)</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>                                             {</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>                                                 <span class="comment">/* Save WCALIB_FLAT_OBJ_xxxx =</span></div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span> <span class="comment">                                                   (resampled_mf, rebinned_header) */</span></div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>                                                 cpl_free(product_filename);</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>                                                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>                                                        uves_scired_resampledmf_filename(chip),</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>                                                        <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>                                                 </div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>                                                 cpl_free(product_tag);</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>                                                 product_tag = </div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>                                                     uves_sprintf(</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>                                                         <span class="stringliteral">"WCALIB_FLAT_OBJ_%s"</span>,</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>                                                         <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>                                                 <span class="comment">/* Independent of sci_type */</span></div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> </div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> </div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>                                                 <span class="comment">/* !!!Exception!!!</span></div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> <span class="comment">                                                 *</span></div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="comment">                                                 * For this reduced master flat frame we</span></div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="comment">                                                 * want to propagate the keywords *not*</span></div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> <span class="comment">                                                 * from the first raw input frame but</span></div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> <span class="comment">                                                 * from the master flat field itself.</span></div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span> <span class="comment">                                                 *</span></div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> <span class="comment">                                                 * For that to work we temporarily set</span></div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span> <span class="comment">                                                 * </span></div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span> <span class="comment">                                                 * all raw frames    := NONE</span></div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span> <span class="comment">                                                 * master.flat frame := RAW</span></div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span> <span class="comment">                                                 *</span></div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span> <span class="comment">                                                 * This will make cpl_dfs_setup_product_header()</span></div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span> <span class="comment">                                                 * find the proper "raw" frame (i.e. the mf)</span></div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span> <span class="comment">                                                 * Also the required 'raw_header' must be</span></div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span> <span class="comment">                                                 * that of the master flat frame, not science.</span></div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span> <span class="comment">                                                 * After propagating keywords, we change back</span></div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span> <span class="comment">                                                 * to normal:</span></div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span> <span class="comment">                                                 *</span></div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span> <span class="comment">                                                 * all raw frames    := RAW</span></div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span> <span class="comment">                                                 * master.flat frame := CALIB</span></div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span> <span class="comment">                                                 *</span></div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span> <span class="comment">                                                 * (Since there could be more than 1 raw frame,</span></div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span> <span class="comment">                                                 *  simply changing the first raw frame would</span></div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span> <span class="comment">                                                 *  not work)</span></div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span> <span class="comment">                                                 */</span>                             </div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>                                                 </div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>                                                 cpl_free(raw_frames);</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>                                                 <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( raw_frames =</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>                                                              <a class="code" href="group__uves__scired.html#gae1ef37fb82ed9624dcb990d250c927c9" title="Change tag of RAW frames to NONE.">set_all_raw_none</a>(frames) );</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> </div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>                                                 cpl_frame_set_group(mflat_frame, </div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>                                                                     CPL_FRAME_GROUP_RAW);</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>                                          </div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>                 <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(rebinned_header,wave_acc_header);</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span> </div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>                                                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>                                                            frames,</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>                                                            resampled_mf,</div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>                                                            CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>                                                            CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>                                                            CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>                                                            product_filename,</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>                                                            product_tag,</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>                                                            master_flat_header,  <span class="comment">/* Note! */</span></div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>                                                            rebinned_header,</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>                                                            NULL,</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>                                                            parameters,</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>                                                            recipe_id,</div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>                                                            PACKAGE <span class="stringliteral">"/"</span> </div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>                                                            PACKAGE_VERSION,</div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>                                                            NULL, <span class="comment">/* No QC: qclog */</span></div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>                                                            starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>                                                            CPL_STATS_MIN | CPL_STATS_MAX),</div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>                                                        <span class="stringliteral">"Could not add wavelength calibrated "</span></div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>                                                        <span class="stringliteral">"flat-field '%s' (%s) to frameset"</span>, </div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>                                                        product_filename, product_tag);</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>                                                 </div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>                                                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Wavelength calibrated flat-field "</span></div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>                                                          <span class="stringliteral">"spectrum '%s' (%s) added to frameset"</span>, </div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>                                                          product_filename, product_tag);</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span> </div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>                                                 <span class="comment">/* Change frames groups back to normal */</span></div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>                                                 {</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>                                                     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>                                                     <span class="keywordflow">for</span> (i = 0;</div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>                                                          raw_frames[i] != NULL;</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>                                                          i++)</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>                                                         {</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>                                                             cpl_frame_set_group(</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>                                                                 raw_frames[i], </div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>                                                                 CPL_FRAME_GROUP_RAW);</div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>                                                         }</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>                                                 }</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>                                                 cpl_frame_set_group(mflat_frame, </div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>                                                                     CPL_FRAME_GROUP_CALIB);</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>                                             }</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span> </div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>                                         <span class="keywordflow">if</span> (extract_is_2d)</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>                                             {</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>                                                 <span class="comment">/* Save FF2D_SCIENCE_xxxx = (fx2d, x2d_header) */</span></div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>                                                 cpl_free(product_filename);</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>                                                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>                                                        uves_scired_ff2d_filename(chip), </div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>                                                        <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span> </div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>                                                 cpl_free(product_tag);</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>                                                 product_tag = </div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>                                                     uves_sprintf(</div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>                             <span class="stringliteral">"FF_2D_%s_%s"</span>, sci_type,</div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>                                                         <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>                                          </div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span> </div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>                                                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>                                                            frames,</div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>                                                            fx2d,</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>                                                            CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>                                                            CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>                                                            CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>                                                            product_filename,</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>                                                            product_tag,</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>                                                            raw_header[raw_index],</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>                                                            x2d_header,</div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>                                                            NULL,</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>                                                            parameters,</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>                                                            recipe_id,</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>                                                            PACKAGE <span class="stringliteral">"/"</span> </div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>                                                            PACKAGE_VERSION,</div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>                                                            qclog,</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>                                                            starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>                                                            UVES_ALL_STATS),</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>                                                        <span class="stringliteral">"Could not add 2d extracted, flat-fielded "</span></div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>                                                        <span class="stringliteral">"spectrum '%s' (%s) to frameset"</span>, </div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>                                                        product_filename, product_tag);</div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>                                                 </div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>                                                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"2d extracted, flat-fielded spectrum "</span></div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>                                                          <span class="stringliteral">"'%s' (%s) added to frameset"</span>, </div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>                                                          product_filename, product_tag);</div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span> </div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>                                             }</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>                                         </div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>                                     }<span class="comment">/* If flat-fielding != no */</span></div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span> </div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga1dcf84ae52c90eecc51ca448a63cfc5e" title="Write the bunit keyword.">uves_pfits_set_bunit</a>(merged_header, <span class="stringliteral">"REL. FLUX."</span>),</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>                                            <span class="stringliteral">"Error writing error spectrum header"</span>);</div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>                                     </div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>                                     <span class="comment">/* Save ERRORBAR_SCIENCE_xxxx =</span></div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span> <span class="comment">                                       (reduced_science_error, merged_header) */</span></div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>                                     cpl_free(product_filename);</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span> </div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>                                    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>                    (extract_is_2d) ? </div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>                                    uves_scired_red_2d_error_filename(chip) : </div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>                                    ((m_method == MERGE_NOAPPEND) ? </div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>                                     uves_scired_red_noappend_error_filename(chip): uves_scired_red_error_filename(chip)),</div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>                                    <span class="stringliteral">"Error getting filename"</span>);   </div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span> </div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span> </div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>                                     cpl_free(product_tag);</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>                                     catg_is_noappend=uves_get_pro_catg_special(extract_is_2d,m_method);</div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>                                     product_tag = uves_sprintf(<span class="stringliteral">"%s%s_%s_%s"</span>,</div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>                                                                (extract_is_2d) ? <span class="stringliteral">"ERR_2D"</span> : <span class="stringliteral">"ERRORBAR"</span>,catg_is_noappend,</div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>                                             sci_type, <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span> </div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span> <span class="comment">                                    product_tag = uves_sprintf(</span></div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span> <span class="comment">                                       "%s%s_%s_%s",</span></div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span> <span class="comment">                                       (m_method == MERGE_NOAPPEND) ? "ERRORBAR_NONMERGED" : "ERRORBAR",</span></div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span> <span class="comment">                                       (extract_is_2d) ? "_2D" : "",</span></div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span> <span class="comment">                                       sci_type, uves_chip_tostring_upper(chip));</span></div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span> <span class="comment"></span></div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>                 <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(merged_header,wave_acc_header);</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span> </div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(</div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>                                                frames,</div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>                                                reduced_science_error,</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>                                                CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>                                                CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>                                                CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>                                                product_filename,</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>                                                product_tag,</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>                                                raw_header[raw_index],</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>                                                merged_header,</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>                                                NULL,</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>                                                parameters,</div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>                                                recipe_id,</div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>                                                PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>                                                qclog,</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>                                                starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>                                                CPL_STATS_MIN | CPL_STATS_MAX),</div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>                                            <span class="stringliteral">"Could not add error bars '%s' (%s) to frameset"</span>, </div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>                                            product_filename, product_tag);</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>                                     </div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>                                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Science spectrum error '%s' (%s) "</span></div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>                                              <span class="stringliteral">"added to frameset"</span>, </div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>                                              product_filename, product_tag);</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>                                     </div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span> </div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>                             <span class="keywordflow">if</span> (!extract_is_2d)</div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>                                 {</div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span> </div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span> </div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>                                     <span class="comment">/* Save VARIANCE_SCIENCE_xxxx = </span></div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span> <span class="comment">                                       (flatfielded_variance, flatfielded_variance_header) */</span></div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>                                     cpl_free(product_filename);</div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>                                            uves_scired_ff_variance_filename(chip),</div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>                                            <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>                                     </div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>                                     cpl_free(product_tag);</div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>                                     product_tag = </div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>                                         uves_sprintf(<span class="stringliteral">"VARIANCE_%s_%s"</span>, sci_type,</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>                              <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>                                     </div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span> </div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>             </div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span> </div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>                                                                 flatfielded_variance,</div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>                                                                 CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>                                                                 CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>                                                                 CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>                                                                 product_filename,</div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>                                                                 product_tag,</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>                                                                 raw_header[raw_index],</div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>                                                                 flatfielded_variance_header,</div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>                                                                 NULL,</div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>                                                                 parameters,</div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>                                                                 recipe_id,</div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>                                                                 PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>                                                                 qclog,</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>                                                                 starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>                                                                 CPL_STATS_MIN | CPL_STATS_MAX),</div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>                                            <span class="stringliteral">"Could not add flat-fielded spectrum variance "</span></div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>                                            <span class="stringliteral">"'%s' (%s) to frameset"</span>, </div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>                                            product_filename, product_tag);</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>                                     </div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>                                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Flat-fielded spectrum variance '%s' (%s) "</span></div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>                                              <span class="stringliteral">"added to frameset"</span>, </div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>                                              product_filename, product_tag);</div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>                                     </div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>                                 } <span class="comment">/* if not 2d extraction */</span></div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>                             }</div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span> </div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>                             <span class="keywordflow">if</span> (!extract_is_2d)</div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>                                 {</div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>                                     <span class="comment">/* Save BKG_SCI_xxxx = (background, rotated_header) */</span></div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>                                     cpl_free(product_filename);</div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>                                            uves_scired_background_filename(chip),</div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>                                            <span class="stringliteral">"Error getting filename"</span>);   </div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span> </div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>                                     cpl_free(product_tag);</div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>                                     product_tag = </div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>                                         uves_sprintf(<span class="stringliteral">"BKG_SCI_%s"</span>,</div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>                              <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>                                     </div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span> </div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>                                                                 background,</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>                                                                 CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>                                                                 CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>                                                                 CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>                                                                 product_filename,</div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>                                                                 product_tag,</div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>                                                                 raw_header[raw_index],</div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>                                                                 rotated_header[raw_index],</div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>                                                                 NULL,</div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>                                                                 parameters,</div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>                                                                 recipe_id,</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>                                                                 PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>                                                                 NULL, <span class="comment">/* QC */</span></div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>                                                                 starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>                                                                 CPL_STATS_MIN | CPL_STATS_MAX),</div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>                                            <span class="stringliteral">"Could not add background image '%s' (%s) "</span></div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>                                            <span class="stringliteral">"to frameset"</span>, product_filename, product_tag);</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>                                     </div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>                                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Background image '%s' (%s) added to frameset"</span>, </div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>                                              product_filename, product_tag);</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>                                     </div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>                                     <span class="comment">/* If optimal extraction, also save</span></div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span> <span class="comment">                                       cosmic_mask, order_trace */</span></div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>                                     <span class="keywordflow">if</span> (order_trace != NULL)</div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>                                         {</div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>                                             <span class="comment">/* Save ORDER_TRACE_xxxx  */</span></div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>                                             uves_free_propertylist(&order_trace_header);</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>                                             order_trace_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span> </div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span> </div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>                                             <span class="comment">/* !WARNING!: Duplicate code follows, be careful if/when</span></div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span> <span class="comment">                                               changing. These parameters should be calculated</span></div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span> <span class="comment">                                               the same way as in uves_qclog_add_sci().</span></div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span> <span class="comment"></span></div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span> <span class="comment">                                               The MIDAS pipeline wrote these parameters only</span></div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span> <span class="comment">                                               in this product, and for backwards compatibility</span></div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span> <span class="comment">                                               do the same here.</span></div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span> <span class="comment">                                            */</span></div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span> </div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>                                             <a class="code" href="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23" title="Update a property list with a integer value.">uves_propertylist_update_int</a>(</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>                                                 order_trace_header, <span class="stringliteral">"ESO QC OPTEX NORD"</span>,</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>                                                 uves_round_double(</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>                                                     cpl_table_get_column_max(ordertable, <span class="stringliteral">"Order"</span>)-</div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>                                                     cpl_table_get_column_min(ordertable, <span class="stringliteral">"Order"</span>)+1));</div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span> </div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>                                             <a class="code" href="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23" title="Update a property list with a integer value.">uves_propertylist_update_int</a>(</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>                                                 order_trace_header, <span class="stringliteral">"ESO QC OPTEX XSIZE"</span>,</div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>                                                 cpl_image_get_size_x(raw_image[raw_index]));</div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span> </div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>                                             <a class="code" href="group__uves__propertylist.html#ga818ed657e06685898c1424daa6c37a23" title="Update a property list with a integer value.">uves_propertylist_update_int</a>(</div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>                                                 order_trace_header, <span class="stringliteral">"ESO QC OPTEX YSIZE"</span>,</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>                                                 uves_round_double(extraction_slit));</div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span> </div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span> </div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>                                             cpl_free(product_filename);</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>                                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename =</div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>                                                    uves_scired_ordertrace_filename(chip),</div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>                                                    <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span> </div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>                                             cpl_free(product_tag);</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>                                             product_tag =</div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>                                                 uves_sprintf(<span class="stringliteral">"ORDER_TRACE_%s"</span>,</div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>                                                              <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>                                          </div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span> </div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>                                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>                                                                         order_trace,</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>                                                                         CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>                                                                         CPL_FRAME_TYPE_TABLE,</div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>                                                                         CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>                                                                         product_filename,</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>                                                                         product_tag,</div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>                                                                         raw_header[raw_index],</div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>                                                                         order_trace_header,</div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>                                                                         NULL,</div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>                                                                         parameters,</div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>                                                                         recipe_id,</div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>                                                                         PACKAGE <span class="stringliteral">"/"</span></div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>                                                                         PACKAGE_VERSION,</div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>                                                                         qclog,</div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>                                                                         starttime, <span class="keyword">false</span>,</div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>                                                                         0),</div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>                                                    <span class="stringliteral">"Could not add sky spectrum '%s' (%s) "</span></div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>                                                    <span class="stringliteral">"to frameset"</span>,</div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>                                                    product_filename, product_tag);</div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span> </div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>                                             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Order trace table '%s' (%s) "</span></div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>                                                      <span class="stringliteral">"added to frameset"</span>,</div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>                                                      product_filename, product_tag);</div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>                                         }</div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span> </div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span> </div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span> </div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>                                     <span class="keywordflow">if</span> (cosmic_mask != NULL)</div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>                                         {</div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>                                             <span class="comment">/* Save CRMASK_xxxx  */</span></div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>                                             uves_free_propertylist(&cosmic_mask_header);</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>                                             cosmic_mask_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>                                             </div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>                                             cpl_free(product_filename);</div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>                                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>                                                    uves_scired_crmask_filename(chip), </div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>                                                    <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span> </div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>                                             cpl_free(product_tag);</div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>                                             product_tag = </div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>                                                 uves_sprintf(<span class="stringliteral">"CRMASK_%s"</span>,</div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>                                  <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>                                          </div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span> </div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>                                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>                                                                         cosmic_mask,</div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>                                                                         CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>                                                                         CPL_FRAME_TYPE_TABLE,</div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>                                                                         CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>                                                                         product_filename,</div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>                                                                         product_tag,</div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>                                                                         raw_header[raw_index],</div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>                                                                         cosmic_mask_header,</div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>                                                                         NULL,</div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>                                                                         parameters,</div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>                                                                         recipe_id,</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>                                                                         PACKAGE <span class="stringliteral">"/"</span> </div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>                                                                         PACKAGE_VERSION,</div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>                                                                         NULL, <span class="comment">/* qc */</span></div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>                                                                         starttime, <span class="keyword">false</span>,</div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>                                                                         0),</div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>                                                    <span class="stringliteral">"Could not add cosmic ray table "</span></div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>                                                    <span class="stringliteral">"'%s' (%s) to frameset"</span>, </div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>                                                    product_filename, product_tag);</div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>                                             </div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>                                             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Cosmic ray table '%s' (%s) "</span></div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>                                                      <span class="stringliteral">"added to frameset"</span>,</div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>                                                      product_filename, product_tag);</div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>                                         }</div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span> </div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span> </div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span> </div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span> </div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span> </div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span> </div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span> </div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span> </div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>                                     <span class="keywordflow">if</span> (wave_map != NULL)</div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>                                         {</div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>                                             <span class="comment">/* Save WAVE_MAP_xxxx  */</span></div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>                                             uves_free_propertylist(&wave_map_header);</div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>                                             wave_map_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>                                             </div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>                                             cpl_free(product_filename);</div>
-<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>                                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>                                                    uves_scired_wmap_filename(chip), </div>
-<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>                                                    <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span> </div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>                                             cpl_free(product_tag);</div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>                                             product_tag = </div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>                                                 uves_sprintf(<span class="stringliteral">"WAVE_MAP_%s"</span>,</div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>                                  <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>                                             <a class="code" href="group__uves__pfits.html#gac948997f6142c218334d0cb70a4eeabc" title="Write the ctype1 keyword.">uves_pfits_set_ctype1</a>(wave_map_header,<span class="stringliteral">"PIXEL"</span>);</div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>                                             <a class="code" href="group__uves__pfits.html#ga1644b60894010bfaa365370ff6851aaf" title="Write the ctype2 keyword.">uves_pfits_set_ctype2</a>(wave_map_header,<span class="stringliteral">"PIXEL"</span>);</div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>                                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>                                                                         wave_map,</div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>                                                                         CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>                                                                         CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>                                                                         CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>                                                                         product_filename,</div>
-<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>                                                                         product_tag,</div>
-<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>                                                                         raw_header[raw_index],</div>
-<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>                                                                         wave_map_header,</div>
-<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>                                                                         NULL,</div>
-<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>                                                                         parameters,</div>
-<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>                                                                         recipe_id,</div>
-<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>                                                                         PACKAGE <span class="stringliteral">"/"</span> </div>
-<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>                                                                         PACKAGE_VERSION,</div>
-<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>                                                                         NULL, <span class="comment">/* qc */</span></div>
-<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>                                                                         starttime, <span class="keyword">false</span>,</div>
-<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>                                                                         0),</div>
-<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>                                                    <span class="stringliteral">"Could not add wave map "</span></div>
-<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>                                                    <span class="stringliteral">"'%s' (%s) to frameset"</span>, </div>
-<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>                                                    product_filename, product_tag);</div>
-<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>                                             </div>
-<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>                                             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Wave map '%s' (%s) "</span></div>
-<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>                                                      <span class="stringliteral">"added to frameset"</span>,</div>
-<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>                                                      product_filename, product_tag);</div>
-<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>                                         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>                       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"no wave map!!!!!!!!!"</span>);</div>
-<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>                     }</div>
-<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>                             uves_free_image(&wave_map);</div>
-<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span> </div>
-<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span> </div>
-<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>                                     <span class="keywordflow">if</span> (merged_sky != NULL)     </div>
-<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>                                         <span class="comment">/* In slicer mode / 2d mode, no sky </span></div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span> <span class="comment">                                           spectrum is extracted */</span></div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>                                         {</div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>                                             <span class="comment">/* Save MERGED_SKY_xxxx = </span></div>
-<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span> <span class="comment">                                               (merged_sky, merged_header) */</span></div>
-<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>                                             cpl_free(product_filename);</div>
-<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>                                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>                                                    uves_scired_merged_sky_filename(chip),</div>
-<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>                                                    <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>                                             </div>
-<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>                                             cpl_free(product_tag);</div>
-<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>                                             product_tag = </div>
-<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>                                                 uves_sprintf(<span class="stringliteral">"MERGED_SKY_%s"</span>,</div>
-<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>                                  <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span> </div>
-<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>                     <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(merged_header,wave_acc_header);</div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span> </div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span> </div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>                                             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(</div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>                                frames,</div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>                                merged_sky,</div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>                                CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>                                CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>                                CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>                                product_filename,</div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>                                product_tag,</div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>                                raw_header[raw_index],</div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>                                merged_header,</div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>                                NULL,</div>
-<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>                                parameters,</div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>                                recipe_id,</div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>                                PACKAGE <span class="stringliteral">"/"</span> </div>
-<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>                                PACKAGE_VERSION,</div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>                                NULL, <span class="comment">/* QC */</span></div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>                                starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>                                CPL_STATS_MIN | CPL_STATS_MAX),</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>                                                    <span class="stringliteral">"Could not add sky spectrum "</span></div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>                                                    <span class="stringliteral">"'%s' (%s) to frameset"</span>, </div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>                                                    product_filename, product_tag);</div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>                                             </div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>                                             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Sky spectrum '%s' (%s) added to frameset"</span>, </div>
-<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>                                                      product_filename, product_tag);</div>
-<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>                                         }</div>
-<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>                                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>                                         {</div>
-<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>                                             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No sky spectrum to save"</span>);</div>
-<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>                                         }</div>
-<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>                                     </div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>                                 }<span class="comment">/* if extract is 2d */</span></div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span> </div>
-<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>                             <span class="keywordflow">if</span> (fluxcal_science != NULL)</div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>                                 {</div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>                                     <span class="comment">/* Save FLUXCAL_SCIENCE = </span></div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span> <span class="comment">                                       (fluxcal_science, fluxcal_header) */</span></div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>                                     cpl_free(product_filename);</div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span> </div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>                                    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>                    (extract_is_2d) ? </div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>                                    uves_scired_fluxcal_science_2d_filename(chip) : </div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>                                    ((m_method == MERGE_NOAPPEND) ? </div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>                                     uves_scired_fluxcal_science_noappend_filename(chip): uves_scired_fluxcal_science_filename(chip)),</div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>                                    <span class="stringliteral">"Error getting filename"</span>);   </div>
-<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span> </div>
-<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span> </div>
-<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>                                     cpl_free(product_tag);</div>
-<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span> </div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span> </div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span> </div>
-<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>                                     catg_is_noappend=uves_get_pro_catg_special(extract_is_2d,m_method);</div>
-<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>                                     product_tag = uves_sprintf(<span class="stringliteral">"FLUXCAL%s%s_%s_%s"</span>,</div>
-<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>                                                                (extract_is_2d) ? <span class="stringliteral">"_2D"</span> : <span class="stringliteral">""</span>,catg_is_noappend,</div>
-<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>                                             sci_type, <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span> </div>
-<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span> </div>
-<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>                                     <span class="comment">/* Always _SCIENCE_, independent of sci_type */</span></div>
-<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span> </div>
-<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>                     <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(fluxcal_header,wave_acc_header);</div>
-<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>                                    </div>
-<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>                                                                 fluxcal_science,</div>
-<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>                                                                 CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>                                                                 CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>                                                                 CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>                                                                 product_filename,</div>
-<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>                                                                 product_tag,</div>
-<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>                                                                 raw_header[raw_index],</div>
-<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>                                                                 fluxcal_header,</div>
-<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>                                                                 NULL,</div>
-<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>                                                                 parameters,</div>
-<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>                                                                 recipe_id,</div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>                                                                 PACKAGE <span class="stringliteral">"/"</span></div>
-<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>                                                                 PACKAGE_VERSION,</div>
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>                                                                 qclog,</div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>                                                                 starttime, <span class="keyword">false</span>,</div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>                                                                 CPL_STATS_MIN | CPL_STATS_MAX),</div>
-<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>                                            <span class="stringliteral">"Could not add flux-calibrated science "</span></div>
-<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>                                            <span class="stringliteral">"spectrum '%s' (%s) to frameset"</span>, </div>
-<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>                                            product_filename, product_tag);</div>
-<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span> </div>
-<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>                                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Flux-calibrated science spectrum "</span></div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>                                              <span class="stringliteral">"'%s' (%s) added to frameset"</span>, </div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>                                              product_filename, product_tag);</div>
-<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span> </div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>                                     <span class="comment">/* Save FLUXCAL_ERRORBAR = (fluxcal_error, fluxcal_header) */</span></div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga1dcf84ae52c90eecc51ca448a63cfc5e" title="Write the bunit keyword.">uves_pfits_set_bunit</a>(fluxcal_header, </div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>                                                                 <span class="stringliteral">"10^-16 erg/cm^2/A/sec"</span>),</div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>                                            <span class="stringliteral">"Error writing error spectrum header"</span>);</div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span> </div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>                                     cpl_free(product_filename);</div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span> </div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>                                    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>                    (extract_is_2d) ? </div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>                                    uves_scired_fluxcal_error_2d_filename(chip) : </div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>                                    ((m_method == MERGE_NOAPPEND) ? </div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>                                     uves_scired_fluxcal_error_noappend_filename(chip): uves_scired_fluxcal_error_filename(chip)),</div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>                                    <span class="stringliteral">"Error getting filename"</span>);   </div>
-<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span> </div>
-<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span> </div>
-<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>                                     cpl_free(product_tag);</div>
-<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span> </div>
-<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span> </div>
-<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>                                     catg_is_noappend=uves_get_pro_catg_special(extract_is_2d,m_method);</div>
-<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>                                     product_tag = uves_sprintf(<span class="stringliteral">"FLUXCAL_ERRORBAR%s%s_%s_%s"</span>,</div>
-<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>                                                                (extract_is_2d) ? <span class="stringliteral">"_2D"</span> : <span class="stringliteral">""</span>,catg_is_noappend,</div>
-<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>                                             sci_type, <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip));</div>
-<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span> </div>
-<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>                     <a class="code" href="group__uves__propertylist.html#gaaca2f4f3cc44998aead9feed586a3c46" title="Append a property list..">uves_propertylist_append</a>(fluxcal_header,wave_acc_header);</div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span> </div>
-<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>                                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>                                                                 fluxcal_error,</div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>                                                                 CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>                                                                 CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>                                                                 CPL_FRAME_LEVEL_FINAL,</div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>                                                                 product_filename,</div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>                                                                 product_tag,</div>
-<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>                                                                 raw_header[raw_index],</div>
-<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>                                                                 fluxcal_header,</div>
-<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>                                                                 NULL,</div>
-<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>                                                                 parameters,</div>
-<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>                                                                 recipe_id,</div>
-<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>                                                                 PACKAGE <span class="stringliteral">"/"</span> </div>
-<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>                                                                 PACKAGE_VERSION,</div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>                                                                 qclog,</div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>                                                                 starttime, <span class="keyword">false</span>,</div>
-<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>                                                                 CPL_STATS_MIN | CPL_STATS_MAX),</div>
-<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>                                            <span class="stringliteral">"Could not add flux-calibrated science "</span></div>
-<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>                                            <span class="stringliteral">"spectrum error '%s' (%s) to frameset"</span>,</div>
-<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>                                            product_filename, product_tag);</div>
-<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>                                     </div>
-<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>                                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Flux-calibrated science spectrum error "</span></div>
-<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>                                              <span class="stringliteral">"'%s' (%s) added to frameset"</span>, </div>
-<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>                                              product_filename, product_tag);</div>
-<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>                                     </div>
-<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>                                 } <span class="comment">/* If flux calibration done */</span></div>
-<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>                             </div>
-<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>                         }<span class="comment">/* if trace is enabled */</span></div>
-<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>                         {</div>
-<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>                             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping trace number %d"</span>, trace_number);</div>
-<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>                         }</div>
-<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>                 </div>
-<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span> </div>
-<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>                 }<span class="comment">/* for each trace */</span></div>
-<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span> </div>
-<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span> </div>
-<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDL"</span>) == 0) {</div>
-<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>       }</div>
-<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span> </div>
-<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>         </div>
-<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>         }<span class="comment">/* For each chip */</span></div>
-<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>        </div>
-<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>   cleanup:   </div>
-<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>     <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>     uves_free_table(&info_tbl);</div>
-<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>     uves_free_image(&raw_image[0]);</div>
-<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span>     uves_free_image(&raw_image[1]);</div>
-<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span>     uves_free_propertylist(&raw_header[0]);</div>
-<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>     uves_free_propertylist(&raw_header[1]);</div>
-<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>     uves_free_propertylist(&rotated_header[0]);</div>
-<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>     uves_free_propertylist(&rotated_header[1]);</div>
-<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>     uves_free_propertylist(&wave_map_header);</div>
-<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>     uves_free_propertylist(&wave_acc_header);</div>
-<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>     </div>
-<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>     <span class="comment">/* Input, calib */</span></div>
-<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>     uves_free_image(&master_bias);</div>
-<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>     uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>     </div>
-<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>     uves_free_image(&master_dark);</div>
-<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>     uves_free_propertylist(&master_dark_header);</div>
-<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span> </div>
-<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>     uves_free_image(&master_flat);</div>
-<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>     uves_free_propertylist(&master_flat_header);</div>
-<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>     </div>
-<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span>     uves_free_table(&ordertable);</div>
-<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>     uves_free_propertylist(&ordertable_header);</div>
-<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>     uves_free_table(&traces);</div>
-<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>     </div>
-<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span>     uves_free_table_const( &(linetable[0]) );</div>
-<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>     uves_free_table_const( &(linetable[1]) );</div>
-<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>     uves_free_table_const( &(linetable[2]) );</div>
-<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>     uves_free_propertylist_const( &(linetable_header[0]) );</div>
-<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>     uves_free_propertylist_const( &(linetable_header[1]) );</div>
-<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>     uves_free_propertylist_const( &(linetable_header[2]) );</div>
-<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>     <a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd" title="Delete a const polynomial.">uves_polynomial_delete_const</a>( &(dispersion_relation[0]) );</div>
-<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>     <a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd" title="Delete a const polynomial.">uves_polynomial_delete_const</a>( &(dispersion_relation[1]) );</div>
-<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>     <a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd" title="Delete a const polynomial.">uves_polynomial_delete_const</a>( &(dispersion_relation[2]) );</div>
-<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span> </div>
-<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>     uves_free_image(&response_curve);</div>
-<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>     uves_free_propertylist(&response_curve_header);</div>
-<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>     uves_free_table(&master_response);</div>
-<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>     </div>
-<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>     uves_free_table(&atm_extinction);</div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span> </div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog_tflat);</div>
-<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>     uves_free_image(&background);</div>
-<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>     uves_free_image(&flatfielded_variance);</div>
-<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>     uves_free_propertylist(&flatfielded_variance_header);</div>
-<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>     uves_free_image(&rebinned_science);</div>
-<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>     uves_free_propertylist(&rebinned_header);</div>
-<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>     uves_free_image(&resampled_science);</div>
-<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>     uves_free_image(&resampled_mf);</div>
-<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>     uves_free_image(&merged_sky);</div>
-<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span> </div>
-<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>     uves_free_image(&merged_science);</div>
-<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>     uves_free_propertylist(&merged_header);</div>
-<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>     uves_free_image(&reduced_science);</div>
-<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>     uves_free_image(&reduced_science_error);</div>
-<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>     uves_free_image(&fluxcal_science);</div>
-<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>     uves_free_image(&fluxcal_error);</div>
-<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>     uves_free_propertylist(&fluxcal_header);</div>
-<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>     uves_free_table(&cosmic_mask);</div>
-<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>     uves_free_propertylist(&cosmic_mask_header);</div>
-<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span> </div>
-<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>     uves_free_table(&order_trace);</div>
-<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>     uves_free_propertylist(&order_trace_header);</div>
-<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span> </div>
-<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>     uves_free_image(&x2d);</div>
-<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>     uves_free_image(&fx2d);</div>
-<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>     uves_free_propertylist(&x2d_header);</div>
-<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>     </div>
-<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>     cpl_free(raw_frames);</div>
-<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>     cpl_free(product_filename);</div>
-<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>     cpl_free(context);</div>
-<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>     cpl_free(product_tag);</div>
-<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>     </div>
-<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span> }</div>
-<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span> </div>
-<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l02131"></a><span class="lineno"><a class="code" href="group__uves__scired.html#ga699b1c68f1d91a6b1ca600921c41d21a"> 2131</a></span> <a class="code" href="group__uves__scired.html#ga699b1c68f1d91a6b1ca600921c41d21a" title="compute science QC">scired_qclog</a>(<span class="keyword">const</span> cpl_table* info_tbl, </div>
-<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>          <span class="keyword">const</span> cpl_image *raw_image,</div>
-<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>          <span class="keywordtype">double</span> slit,</div>
-<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>          cpl_table* qclog)</div>
-<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span> {</div>
-<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>   <span class="comment">/* This test does not exist as an official QC-TEST in the MIDAS pipeline. But</span></div>
-<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span> <span class="comment">     the QC parameters are written to the product header */</span></div>
-<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span> </div>
-<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,                </div>
-<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>                                     <span class="stringliteral">"QC TEST1 ID"</span>,</div>
-<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>                                     <span class="stringliteral">"Science-Reduction-Test-Results"</span>,</div>
-<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>                                     <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>                                     <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>   </div>
-<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__qclog.html#gaf6a3fc6cf06a17550bd0320603287ace" title="Write QC parameters related to science reduction.">uves_qclog_add_sci</a>(qclog,</div>
-<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>                   raw_header, </div>
-<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>                   raw_image,</div>
-<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>                   slit,</div>
-<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>                   info_tbl) );</div>
-<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span> </div>
-<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>   cleanup:</div>
-<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span> </div>
-<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span> }</div>
-<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span> </div>
-<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l02166"></a><span class="lineno"><a class="code" href="group__uves__scired.html#ga32377202a0bcb66b410988f7c6cf51fa"> 2166</a></span> <a class="code" href="group__uves__scired.html#ga32377202a0bcb66b410988f7c6cf51fa" title="compute tflat QC">tflat_qclog</a>(<span class="keyword">const</span> cpl_image* ima,</div>
-<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>         <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>         cpl_table* qclog)</div>
-<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span> {</div>
-<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>   <span class="keywordtype">char</span> key_name[80];</div>
-<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>   cpl_image *window = NULL;</div>
-<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span> </div>
-<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>   <span class="keywordtype">double</span> exptime;</div>
-<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>   <span class="keywordtype">int</span> nx;</div>
-<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>   <span class="keywordtype">int</span> ny;</div>
-<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>   <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>   </div>
-<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>                     <span class="stringliteral">"QC TEST1 ID"</span>,</div>
-<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>                     <span class="stringliteral">"TFLAT-QC"</span>,</div>
-<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>                     <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>                     <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>   </div>
-<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span> </div>
-<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>                     <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_INSMODE, <span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>                     <a class="code" href="group__uves__pfits.html#gaa56bfa63f004c7046a5a5242312a792f" title="find out the chip name value">uves_pfits_get_insmode</a>(raw_header),</div>
-<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>                     <span class="stringliteral">"Instrument mode used."</span>,</div>
-<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>                     <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>   </div>
-<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>                     <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_INSPATH, <span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>                     <a class="code" href="group__uves__pfits.html#gaeefa3dc2dbf45776accef00f67b7002f" title="find out the chip name value">uves_pfits_get_inspath</a>(raw_header),</div>
-<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>                     <span class="stringliteral">"Optical path used."</span>,</div>
-<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>                     <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span> </div>
-<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>                     <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_SLIT1NAME, <span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>                     <a class="code" href="group__uves__pfits.html#gadb0a05528f0429187a6af97bcb3f4a25" title="Get image slicer name.">uves_pfits_get_slit1_name</a>(raw_header),</div>
-<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>                     <span class="stringliteral">"Slit common name."</span>,</div>
-<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>                     <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span> </div>
-<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( exptime = <a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(raw_header),</div>
-<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>      <span class="stringliteral">"Error reading exposure time"</span>);</div>
-<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>   </div>
-<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>   nx = cpl_image_get_size_x(ima);</div>
-<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>   ny = cpl_image_get_size_y(ima);</div>
-<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span> </div>
-<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>   <span class="keywordflow">for</span> (i = 1; i <= ny; i++) </div>
-<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>       <span class="comment">/* Always count order numbers from 1, like MIDAS */</span></div>
-<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>       {</div>
-<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>       <span class="keywordtype">int</span> size = 100;</div>
-<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span>       <span class="keywordtype">int</span> xlo = uves_max_int(1 , (nx+1)/2 - size);</div>
-<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>       <span class="keywordtype">int</span> xhi = uves_min_int(nx, (nx+1)/2 + size);</div>
-<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>           </div>
-<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>       <span class="keywordtype">double</span> min, max, avg, rms, med;</div>
-<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span> </div>
-<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span>       uves_free_image(&window);</div>
-<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span>       window = cpl_image_extract(ima, xlo, i, xhi, i);</div>
-<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>       <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( window );</div>
-<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span> </div>
-<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>       <span class="keywordflow">if</span> (cpl_image_count_rejected(window) >= cpl_image_get_size_x(window) - 2)</div>
-<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>           {</div>
-<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>           min = max = avg = rms = med = 0;</div>
-<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>           }</div>
-<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>           {</div>
-<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>           min = cpl_image_get_min   (window) / exptime;</div>
-<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>           max = cpl_image_get_max   (window) / exptime;</div>
-<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>           avg = cpl_image_get_mean  (window) / exptime;</div>
-<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>           rms = cpl_image_get_stdev (window) / exptime;</div>
-<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>           med = cpl_image_get_median(window) / exptime;</div>
-<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>           }</div>
-<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>                        </div>
-<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>       sprintf(key_name, <span class="stringliteral">"QC ORD%d DATAMIN"</span>, i);</div>
-<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>                         key_name,</div>
-<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>                         min,</div>
-<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span>                         <span class="stringliteral">"extracted order datamin"</span>,</div>
-<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>                         <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>                   </div>
-<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>       sprintf(key_name, <span class="stringliteral">"QC ORD%d DATAMAX"</span>, i);</div>
-<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>                         key_name,</div>
-<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>                         max,</div>
-<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>                         <span class="stringliteral">"extracted order datamax"</span>,</div>
-<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span>                         <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>                   </div>
-<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>       sprintf(key_name, <span class="stringliteral">"QC ORD%d DATAAVG"</span>, i);</div>
-<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>                         key_name,</div>
-<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>                         avg,</div>
-<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>                         <span class="stringliteral">"extracted order datamean"</span>,</div>
-<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>                         <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>                   </div>
-<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>       sprintf(key_name, <span class="stringliteral">"QC ORD%d DATARMS"</span>, i);</div>
-<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>                         key_name,</div>
-<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>                         rms,</div>
-<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>                         <span class="stringliteral">"extracted order datarms"</span>,</div>
-<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>                         <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span> </div>
-<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>       sprintf(key_name, <span class="stringliteral">"QC ORD%d DATAMED"</span>, i);</div>
-<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>                         key_name,</div>
-<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>                         med,</div>
-<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>                         <span class="stringliteral">"extracted order datamed"</span>,</div>
-<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>                         <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>       }</div>
-<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>   </div>
-<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>   cleanup:</div>
-<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>   uves_free_image(&window);</div>
-<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span> </div>
-<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span> }</div>
-<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__reduce__scired_8h_source.html b/html/uves__reduce__scired_8h_source.html
deleted file mode 100644
index e041a5a..0000000
--- a/html/uves__reduce__scired_8h_source.html
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_reduce_scired.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_reduce_scired.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.3  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.2  2007/02/09 13:41:31  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Enable calling from uves_obs_spatred</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.1  2006/09/27 13:22:38  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Factored out scired body to enable calling it from other recipes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#ifndef UVES_REDUCE_SCIRED_H</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_REDUCE_SCIRED_H</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__scired.html#ga0780489bfd35e6728e0d1b9c7036e119" title="Get the command line options and execute the data reduction.">uves_reduce_scired</a>(cpl_frameset *frames, <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>             <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime);</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__scired.html#ga1c491907022557327d0a5bad5281965f" title="Setup the recipe options.">uves_scired_define_parameters_body</a>(cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>                        <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id);</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_scired_desc_short;</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_scired_desc;</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#endif  </span><span class="comment">/* UVES_REDUCE_SCIRED_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__reduce__utils_8c_source.html b/html/uves__reduce__utils_8c_source.html
deleted file mode 100644
index 233b7d5..0000000
--- a/html/uves__reduce__utils_8c_source.html
+++ /dev/null
@@ -1,364 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_reduce_utils.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_reduce_utils.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-10-11 12:43:10 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.17 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.15  2012/03/02 16:49:48  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * fixed warning related to upgrade to CPL6</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.14  2011/12/08 14:05:48  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Fix warnings with CPL6</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.13  2010/09/24 09:32:07  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.11  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.10  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.9  2007/04/10 07:09:37  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Changed interface of uves_spline_hermite()</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.8  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.7  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.6  2006/05/12 15:10:07  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Shortened lines</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.5  2006/04/10 12:38:13  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Bugfix: don't read uninitialized memory (caused atmospheric extinction step </span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> * to be randomly disabled)</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Revision 1.4  2006/04/06 08:49:23  jmlarsen</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> * Propagate errors when normalizing spectrum</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Revision 1.3  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Revision 1.2  2005/12/16 14:22:23  jmlarsen</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * Removed midas test data; Added sof files</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.1  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor">#include <uves_reduce_utils.h></span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> cpl_image *</div>
-<div class="line"><a name="l00128"></a><span class="lineno"><a class="code" href="group__uves__reduce.html#ga1867e835a6183494d513613729836205">  128</a></span> <a class="code" href="group__uves__reduce.html#ga1867e835a6183494d513613729836205" title="Normalize a spectrum.">uves_normalize_spectrum</a>(<span class="keyword">const</span> cpl_image *spectrum, <span class="keyword">const</span> cpl_image *spectrum_error,</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>             <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *spectrum_header,</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>             <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>             <span class="keywordtype">int</span> n_traces,</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>             <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>             <span class="keyword">const</span> cpl_table *atm_extinction,</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>             <span class="keywordtype">bool</span> correct_binning,</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>             cpl_image **scaled_error)</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> {</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     cpl_image *scaled = NULL;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="keywordtype">double</span> exptime, gain;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     <span class="keywordtype">int</span> binx;</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="keywordtype">int</span> norders, ny, nx;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( spectrum != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( scaled_error == NULL || spectrum_error != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( spectrum_header != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     nx = cpl_image_get_size_x(spectrum);</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     ny = cpl_image_get_size_y(spectrum);</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     <span class="keywordflow">if</span> (spectrum_error != NULL)</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     {</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>         assure( nx == cpl_image_get_size_x(spectrum_error) &&</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>             ny == cpl_image_get_size_y(spectrum_error), CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>             <span class="stringliteral">"Error spectrum geometry differs from spectrum: %"</span> CPL_SIZE_FORMAT <span class="stringliteral">"x%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" vs. %d x %d"</span>,</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>             cpl_image_get_size_x(spectrum_error),</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>             cpl_image_get_size_y(spectrum_error),</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>             nx, ny);</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     }</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     assure( ny % n_traces == 0, CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>         <span class="stringliteral">"Spectrum image height (%d) is not a multiple of "</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>         <span class="stringliteral">"the number of traces (%d). Confused, bailing out"</span>,</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>         ny, n_traces);</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     norders = ny / n_traces;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment">     * Correct for exposure time, gain, bin </span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( exptime = <a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(raw_header),</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>        <span class="stringliteral">"Could not read exposure time"</span>);</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( gain = <a class="code" href="group__uves__pfits.html#ga4f4be35f30bd7d46f8c7421907ac8695" title="Find out the gain.">uves_pfits_get_gain</a>(raw_header, chip),</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>        <span class="stringliteral">"Could not read gain factor"</span>);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     <span class="keywordflow">if</span> (correct_binning)</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     {</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>         <span class="comment">/* x-binning of rotated image is y-binning of raw image */</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( binx  = <a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(raw_header),</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>            <span class="stringliteral">"Could not read binning"</span>);</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     }</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     {</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Spectrum will not be normalized to unit binning"</span>);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>         binx = 1;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     }</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>     assure( exptime > 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Non-positive exposure time: %f s"</span>, exptime);</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>     assure( gain    > 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Non-positive gain: %f"</span>, gain);</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     assure( binx    > 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal binning: %d"</span>, binx);</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Correcting for exposure time = %f s, gain = %f, binx = %d"</span>, exptime, gain, binx);</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>     </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( scaled        = cpl_image_divide_scalar_create(spectrum, exptime * gain * binx),</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>        <span class="stringliteral">"Error correcting spectrum for gain, exposure time, binning"</span>);</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     <span class="keywordflow">if</span> (scaled_error != NULL)</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     {</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *scaled_error = cpl_image_divide_scalar_create(spectrum_error, </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>                                   exptime * gain * binx),</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>            <span class="stringliteral">"Error correcting rebinned spectrum for gain, exposure time, binning"</span>);</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     }</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     <span class="comment">/* </span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment">     * Correct for atmospheric extinction </span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     {</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <span class="keywordtype">double</span> airmass;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <span class="keywordtype">double</span> dlambda, lambda_start;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     {</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>         <span class="keywordtype">double</span> airmass_start, airmass_end;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>         </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( airmass_start = <a class="code" href="group__uves__pfits.html#ga36f17263450ba556317388c15905bc7e" title="Find out the start airmass.">uves_pfits_get_airmass_start</a>(raw_header),</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>            <span class="stringliteral">"Error reading airmass start"</span>);</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>         </div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( airmass_end = <a class="code" href="group__uves__pfits.html#ga2aba19c10f2f21a717691bd4b148f669" title="Find out the end airmass.">uves_pfits_get_airmass_end</a>(raw_header),</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>            <span class="stringliteral">"Error reading airmass end"</span>);</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>         </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>         <span class="comment">/* Use arithmetic mean of airmass start/end */</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>         airmass = (airmass_start + airmass_end) / 2;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     }</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Correcting for extinction through airmass %f"</span>, airmass);</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>         </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dlambda = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(spectrum_header),</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>            <span class="stringliteral">"Error reading bin width from header"</span>);</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="keywordflow">for</span> (order = 1; order <= norders; order++)</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>         {</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         <span class="keywordtype">int</span> trace;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         <span class="comment">/* If spectrum was already merged, then read crval1,</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment">         * otherwise read wstart for each order</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>         </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>         <span class="keywordflow">if</span> (norders == 1)</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>             {</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_start = <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(spectrum_header),</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>                    <span class="stringliteral">"Error reading start wavelength from header"</span>);    </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>             }</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>             {</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_start = <a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203" title="Read the wstart keyword.">uves_pfits_get_wstart</a>(spectrum_header, order),</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                    <span class="stringliteral">"Error reading start wavelength from header"</span>);    </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>             }</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>         <span class="keywordflow">for</span> (trace = 1; trace <= n_traces; trace++)</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>             {</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>             <span class="keywordtype">int</span> spectrum_row = (order - 1)*n_traces + trace;</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>             <span class="keywordtype">int</span> x;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>             </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>             <span class="keywordflow">for</span> (x = 1; x <= nx; x++)</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                 {</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                 <span class="keywordtype">int</span> pis_rejected1;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                 <span class="keywordtype">int</span> pis_rejected2;</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                 <span class="keywordtype">double</span> flux;</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                 <span class="keywordtype">double</span> dflux = 0;</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>                 <span class="keywordtype">double</span> extinction;</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                 <span class="keywordtype">double</span> lambda;</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                 lambda = lambda_start + (x-1) * dlambda;</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                 </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>                 flux  = cpl_image_get(scaled, x, spectrum_row, &pis_rejected1);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>                 <span class="keywordflow">if</span> (scaled_error != NULL)</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>                     {</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                     dflux = cpl_image_get(*scaled_error, x, </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>                                   spectrum_row, &pis_rejected2);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>                     }</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>                 <span class="keywordflow">if</span> (!pis_rejected1 && (scaled_error == NULL || !pis_rejected2))</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>                     {</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>                                         <span class="keywordtype">int</span> istart = 0;</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>                     <span class="comment">/* Read extinction (units: magnitude per airmass) */</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( extinction = </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>                            <a class="code" href="group__uves__utils.html#ga182ae551020b196be2e177c09f16b220" title="Spline interpolation based on Hermite polynomials.">uves_spline_hermite_table</a>(</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>                            lambda, atm_extinction,</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>                            <span class="stringliteral">"LAMBDA"</span>, <span class="stringliteral">"LA_SILLA"</span>, &istart),</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>                            <span class="stringliteral">"Error interpolating extinction coefficient"</span>);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>                     </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                     <span class="comment">/* Correct for extinction using</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="comment">                     * the magnitude/flux relation</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="comment">                     * m = -2.5 log_10 F</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="comment">                     *  => </span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment">                     * F = 10^(-m*0.4)</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="comment">                     *</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment">                     * m_top-of-atmosphere = m - ext.coeff*airmass</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment">                     * F_top-of-atmosphere = F * 10^(0.4 * ext.coeff*airmass)</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment">                     */</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>                     cpl_image_set(</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>                         scaled, x, spectrum_row,</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>                         flux * pow(10, 0.4 * extinction * airmass));</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                     <span class="keywordflow">if</span> (scaled_error != NULL)</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>                         {</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>                         cpl_image_set(</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>                             *scaled_error, x, spectrum_row,</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>                             dflux * pow(10, 0.4 * extinction * airmass));</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>                         }</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>                     }</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                     {</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                     cpl_image_reject(scaled, x, spectrum_row);</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                     <span class="keywordflow">if</span> (scaled_error != NULL)</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                         {</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>                         cpl_image_reject(*scaled_error, x, spectrum_row);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>                         }</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>                     }</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>                 } <span class="comment">/* for each x */</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>             } <span class="comment">/* for each (possibly only 1) trace */</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>         } <span class="comment">/* for each (possibly only 1) order */</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     }</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>   cleanup:</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     {</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>         uves_free_image(&scaled);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>         <span class="keywordflow">if</span> (scaled_error != NULL)</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>         {</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>             uves_free_image(scaled_error);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>         }</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     }</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     <span class="keywordflow">return</span> scaled;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> }</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__reduce__utils_8h_source.html b/html/uves__reduce__utils_8h_source.html
deleted file mode 100644
index e0acc99..0000000
--- a/html/uves__reduce__utils_8h_source.html
+++ /dev/null
@@ -1,127 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_reduce_utils.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_reduce_utils.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 14:06:15 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.9 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.8  2010/09/24 09:32:07  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/04/06 08:49:23  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Propagate errors when normalizing spectrum</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2005/12/16 14:22:23  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed midas test data; Added sof files</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#ifndef UVES_REDUCE_UTILS_H</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_REDUCE_UTILS_H</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> cpl_image *</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <a class="code" href="group__uves__reduce.html#ga1867e835a6183494d513613729836205" title="Normalize a spectrum.">uves_normalize_spectrum</a>(<span class="keyword">const</span> cpl_image *spectrum, <span class="keyword">const</span> cpl_image *spectrum_error,</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>             <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *spectrum_header,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>             <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>             <span class="keywordtype">int</span> n_traces,</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>             <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>             <span class="keyword">const</span> cpl_table *atm_extinction,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>             <span class="keywordtype">bool</span> correct_binning,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>             cpl_image **scaled_error);</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__remove__crh__single_8c_source.html b/html/uves__remove__crh__single_8c_source.html
deleted file mode 100644
index 5e0343a..0000000
--- a/html/uves__remove__crh__single_8c_source.html
+++ /dev/null
@@ -1,527 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_remove_crh_single.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_remove_crh_single.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                            *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO X-shooter Pipeline                          *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2006 European Southern Observatory                         *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify     *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by     *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or        *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                      *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,          *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of           *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                             *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                            *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License        *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software              *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA     *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                            */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"></span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2010-12-08 14:11:18 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.7  2010/09/24 09:32:07  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2010/02/08 07:10:14  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace cpl_image_filter_median/linear by uves_image_filter_median/linear</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2010/01/07 08:12:09  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * saved old version</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.2  2009/02/18 12:06:38  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * fixe compiler warning</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.1  2009/01/02 08:31:34  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * copmmitted to CVS</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">  Includes</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">-----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">//#include <xsh_drl.h></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">//#include <xsh_data_pre.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">//#include <xsh_dfs.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">//#include <xsh_pfits.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">//#include <xsh_badpixelmap.h></span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">//#include <xsh_parameters.h></span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">//#include <xsh_data_localization.h></span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment">  Functions prototypes</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">  Implementation</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment">/* This should be defined in a more clever way, a parameter for example */</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor">#define MAX_ITERATIONS 6</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="group__uves__remove__crh__single.html#ga7e6109abce4aa245c65f9cf39e1c8c8a">  100</a></span> cpl_image * <a class="code" href="group__uves__remove__crh__single.html#ga7e6109abce4aa245c65f9cf39e1c8c8a">uves_remove_crh_single</a>( cpl_image * sci_image,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                      <span class="keywordtype">double</span> crh_frac_max,</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                      <span class="keywordtype">double</span> sigma_lim,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                      <span class="keywordtype">double</span> f_lim,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>                      <span class="keywordtype">int</span> max_iter,</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                      <span class="keywordtype">double</span> gain,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                      <span class="keywordtype">double</span> ron)</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> {</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>   <span class="keywordtype">int</span> i,j,k,l,m;</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>   <span class="keywordtype">double</span>  frac = 0. ;</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>   <span class="comment">/* Only pointers */</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>   <span class="comment">/* Need to be free */</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>   <span class="comment">//xsh_localization_list * loc_list = NULL ;</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>   cpl_image* laplacian_image = NULL;</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>   cpl_image* laplacian_redu_image = NULL;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>   cpl_image* two_sub_sample = NULL;</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>   cpl_image* sci_median5_image = NULL;</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>   cpl_image* noise_image = NULL;</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>   cpl_image* s_image = NULL;</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>   cpl_image* s_median_image = NULL;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>   cpl_image* s2_image = NULL;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>   cpl_image* sci_median3_image = NULL;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>   cpl_image* sci_median3_7_image = NULL;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>   cpl_image* f_image = NULL;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>   cpl_image* r_image = NULL;</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>   <span class="keywordtype">int</span> two_sub_sample_nx = 0;</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>   <span class="keywordtype">int</span> two_sub_sample_ny = 0;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>   <span class="comment">/* Only pointers */</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>   <span class="keywordtype">float</span>* sci_data = NULL;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>   <span class="keywordtype">float</span>* two_sub_sample_data = NULL;</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>   <span class="keywordtype">float</span>* laplacian_data = NULL;</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>   <span class="keywordtype">float</span>* laplacian_redu_data = NULL;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>   <span class="keywordtype">float</span>* sci_median5_data = NULL;</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>   <span class="keywordtype">float</span>* sci_median3_data = NULL;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>   <span class="keywordtype">float</span>* sci_median3_7_data = NULL;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>   <span class="keywordtype">float</span>* noise_data = NULL;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>   <span class="keywordtype">float</span>* s_data = NULL;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>   <span class="keywordtype">float</span>* s_median_data = NULL;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>   <span class="keywordtype">float</span>* s2_data = NULL;</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>   <span class="keywordtype">float</span>* f_data = NULL;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>   <span class="keywordtype">float</span>* r_data = NULL;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>   <span class="comment">/* Need to be free */</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>   <span class="keywordtype">float</span>* cosmic_data = NULL; </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>  </div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>   cpl_matrix* laplacian_kernel = NULL;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>   cpl_matrix* median3_kernel = NULL;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>   cpl_matrix* median5_kernel = NULL;</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>   cpl_matrix* median7_kernel = NULL;</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>   <span class="keywordtype">int</span> new_crh =1, nb_crh = 0;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>   <span class="keywordtype">int</span> nbiter = 1 ;</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>   cpl_vector* median = NULL;</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>   <span class="comment">/* const char * tag = NULL ; */</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>   <span class="keywordtype">int</span> nx=0;</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>   <span class="keywordtype">int</span> ny=0;</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>   cpl_image* res_image=NULL;</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>   <span class="comment">/* Check parameters */</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>   cknull( sci_image,<span class="stringliteral">"null input image"</span> ) ; ;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>( <span class="stringliteral">"Entering uves_remove_crh_single"</span>);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>( <span class="stringliteral">"  Params: frac_max %.1f, sigma_lim %.2f f_lim %.2f, iter %d"</span>,</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>        crh_frac_max, sigma_lim, f_lim, max_iter);</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>   <span class="comment">/* Preparing different kernels */</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>   nx=cpl_image_get_size_x(sci_image);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>   ny=cpl_image_get_size_y(sci_image);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>   <span class="comment">/* Laplacian */</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( laplacian_kernel = cpl_matrix_new(3,3));</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>   cpl_matrix_set( laplacian_kernel,0,0,0.0);</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>   cpl_matrix_set( laplacian_kernel,0,1,-1.0);</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>   cpl_matrix_set( laplacian_kernel,0,2,0.0);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>   cpl_matrix_set( laplacian_kernel,1,0,-1.0);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>   cpl_matrix_set( laplacian_kernel,1,1,4.0);</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>   cpl_matrix_set( laplacian_kernel,1,2,-1.0);</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>   cpl_matrix_set( laplacian_kernel,2,0,0.0);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>   cpl_matrix_set( laplacian_kernel,2,1,-1.0);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>   cpl_matrix_set( laplacian_kernel,2,2,0.0);</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>   cpl_matrix_divide_scalar( laplacian_kernel, 4.0);     </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">  cpl_matrix_set( laplacian_kernel,0,0,-1.0);</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment">  cpl_matrix_set( laplacian_kernel,0,1,-1.0);</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment">  cpl_matrix_set( laplacian_kernel,0,2,-1.0);</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment">  cpl_matrix_set( laplacian_kernel,1,0,-1.0);</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment">  cpl_matrix_set( laplacian_kernel,1,1,8.0);</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment">  cpl_matrix_set( laplacian_kernel,1,2,-1.0);</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment">  cpl_matrix_set( laplacian_kernel,2,0,-1.0);</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment">  cpl_matrix_set( laplacian_kernel,2,1,-1.0);</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">  cpl_matrix_set( laplacian_kernel,2,2,-1.0);</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">  cpl_matrix_divide_scalar( laplacian_kernel, 8.0);</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>   <span class="comment">/* Median 3x3*/</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( median3_kernel = cpl_matrix_new(3,3));</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   <span class="keywordflow">for</span>(j=0; j< 3; j++){</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     <span class="keywordflow">for</span>(i=0; i< 3; i++){</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>       cpl_matrix_set( median3_kernel, i,j,1.0);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     }</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>   }</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> </div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>   <span class="comment">/* Median 5x5 */</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( median5_kernel = cpl_matrix_new(5,5));</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>   <span class="keywordflow">for</span>(j=0; j< 5; j++){</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     <span class="keywordflow">for</span>(i=0; i< 5; i++){</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>       cpl_matrix_set( median5_kernel, i,j,1.0);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     }</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>   }</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>   <span class="comment">/* Median 7x7 */</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( median7_kernel = cpl_matrix_new(7,7));</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>   <span class="keywordflow">for</span>(j=0; j< 7; j++){</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     <span class="keywordflow">for</span>(i=0; i< 7; i++){</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>       cpl_matrix_set( median7_kernel, i,j,1.0);</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     }</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>   }</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a> (res_image = cpl_image_duplicate( sci_image));</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>   <span class="comment">/* Allocate images and pointers */</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a> (sci_data = cpl_image_get_data_float( res_image));</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>   two_sub_sample_nx = nx*2;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>   two_sub_sample_ny = ny*2;</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( two_sub_sample = cpl_image_new( two_sub_sample_nx,</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     two_sub_sample_ny, CPL_TYPE_FLOAT));</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(two_sub_sample_data = cpl_image_get_data_float( two_sub_sample));</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( laplacian_redu_image = cpl_image_new(nx,ny, CPL_TYPE_FLOAT));</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(laplacian_redu_data = cpl_image_get_data_float(</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     laplacian_redu_image));</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( noise_image = cpl_image_new(nx,ny, CPL_TYPE_FLOAT));</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( noise_data = cpl_image_get_data_float( noise_image));</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( s_image = cpl_image_new(nx,ny, CPL_TYPE_FLOAT));</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( s_data = cpl_image_get_data_float( s_image));</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( s2_image = cpl_image_new(nx,ny, CPL_TYPE_FLOAT));</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( s2_data = cpl_image_get_data_float( s2_image));</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( f_image = cpl_image_new(nx,ny, CPL_TYPE_FLOAT));</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( f_data = cpl_image_get_data_float( f_image));</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( r_image = cpl_image_new(nx,ny, CPL_TYPE_FLOAT));</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( r_data = cpl_image_get_data_float( r_image));</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>   cosmic_data=cpl_calloc(nx*ny, <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>));</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>   <span class="comment">/* LGG - Added limit on frac_max AND limit on nb iterations */</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>   <span class="keywordflow">while</span>( new_crh > 0 && frac < crh_frac_max && nbiter <= max_iter ){</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Iteration %d"</span>,nbiter );</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     <span class="comment">/* Create a 2n x 2n images like this </span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment">        | 1 | 2 |  =>  | 1 | 1 | 2 | 2 |</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment">        | 3 | 4 |      | 1 | 1 | 2 | 2 |</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment">                       | 3 | 3 | 4 | 4 |</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">                       | 3 | 3 | 4 | 4 | */</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Create a 2n images"</span>);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     <span class="keywordflow">for</span>( j=0; j< ny; j++){</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>       <span class="keywordflow">for</span>( i=0; i< nx; i++){</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>         <span class="keywordtype">float</span> val = sci_data[i+j*nx];</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <span class="keywordflow">if</span> ( val < 0. ) val = 0. ;</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>         two_sub_sample_data[i*2+j*2*two_sub_sample_nx] = val;</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>         two_sub_sample_data[i*2+1+j*2*two_sub_sample_nx] = val;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>         two_sub_sample_data[i*2+(j*2+1)*two_sub_sample_nx] = val;</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>         two_sub_sample_data[i*2+1+(j*2+1)*two_sub_sample_nx] = val;</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>       }</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     }</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Doing laplacian convolution"</span>);</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     <span class="comment">/* Doing the laplacian convolution </span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment">        0  -1   0</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment">       -1   4  -1 </span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment">        0  -1   0 */</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(laplacian_image = uves_image_filter_linear( two_sub_sample, </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>                                                             laplacian_kernel));</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     <span class="comment">/* multiply by two to normalize correctly the laplacian [RD5] </span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment">       and filter negative values */</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Normalize laplacian"</span>);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a> (laplacian_data = cpl_image_get_data_float( laplacian_image));</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     <span class="keywordflow">for</span> ( i=0; i< two_sub_sample_nx*two_sub_sample_ny; i++){</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>       <span class="keywordflow">if</span> (laplacian_data[i] > 0.0){</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>         laplacian_data[i] = 2.0 * laplacian_data[i]; </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>       }</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>       <span class="keywordflow">else</span>{</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         laplacian_data[i] = 0.0;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>       }</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     }</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Save Lpositive"</span>);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     cpl_image_save(laplacian_image, <span class="stringliteral">"Lpositive.fits"</span>, CPL_BPP_IEEE_FLOAT, NULL,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>       CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     <span class="comment">/* resample to the original size </span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="comment">       | 1 | 1 | 2 | 2 |    | 1 | 2 | </span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment">       | 1 | 1 | 2 | 2 |    | 3 | 4 |</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="comment">       | 3 | 3 | 4 | 4 | => </span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment">       | 3 | 3 | 4 | 4 |               */</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Resample to the original size"</span>);</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     <span class="keywordflow">for</span>( j=0; j< ny; j++){</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>       <span class="keywordflow">for</span>( i=0; i< nx; i++){</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>         laplacian_redu_data[i+j*nx] = </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>           (laplacian_data[i*2+j*2*two_sub_sample_nx]+</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>            laplacian_data[i*2+1+j*2*two_sub_sample_nx]+</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>            laplacian_data[i*2+(j*2+1)*two_sub_sample_nx]+</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>            laplacian_data[i*2+1+(j*2+1)*two_sub_sample_nx])/4.0;</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>       }</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     }</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     cpl_image_save(laplacian_redu_image, <span class="stringliteral">"Lplus.fits"</span>, CPL_BPP_IEEE_FLOAT, </div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>       NULL, CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Apply median filter"</span>);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     <span class="comment">/* Apply 5x5 median filter on data */</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( sci_median5_image = uves_image_filter_median( sci_image, </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>       median5_kernel)); </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a> (sci_median5_data = cpl_image_get_data_float( sci_median5_image));</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>  </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Compute noise"</span>);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     <span class="comment">/* computes the noise image */</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     <span class="keywordflow">for</span>( i=0; i< nx*ny; i++){</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>       noise_data[i] = sqrt(sci_median5_data[i]*gain+</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>         ron*ron)/ gain;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     }</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Compute S"</span>);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     <span class="comment">/* compute S image */</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     <span class="keywordflow">for</span>( i=0; i< nx*ny; i++){</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>       s_data[i] = laplacian_redu_data[i] / (2.0*noise_data[i]);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     }</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Compute S median"</span>);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     <span class="comment">/* compute S median image */</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( s_median_image = uves_image_filter_median( s_image,</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>       median5_kernel));</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( s_median_data = cpl_image_get_data_float( s_median_image));</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Compute s2"</span>);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     <span class="comment">/* compute s2 */</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     <span class="keywordflow">for</span>( i=0; i< nx*ny; i++){</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>       s2_data[i] = s_data[i] -s_median_data[i];</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     }</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>  </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>        cpl_image_save( s2_image, <span class="stringliteral">"S2.fits"</span>, CPL_BPP_IEEE_FLOAT, NULL,</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>      CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> </div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Apply 3x3 filter"</span>);</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     <span class="comment">/* Apply 3x3 median filter on data */</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( sci_median3_image = uves_image_filter_median( sci_image,</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>       median3_kernel));</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Apply 7x7 filter"</span>);</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     <span class="comment">/* Apply 7x7 median filter */</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( sci_median3_7_image = uves_image_filter_median( sci_median3_image,</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>       median7_kernel));</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Apply 7x7 filter ok"</span>);</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a> ( sci_median3_data = cpl_image_get_data_float( sci_median3_image));</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a> ( sci_median3_7_data = cpl_image_get_data_float( </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>       sci_median3_7_image));</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Compute F"</span>);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     <span class="comment">/* compute F */</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     <span class="keywordflow">for</span>( i=0; i< nx*ny; i++){</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>       f_data[i] = sci_median3_data[i] -sci_median3_7_data[i];</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>       <span class="keywordflow">if</span> (f_data[i] < 0.01){</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>         f_data[i] = 0.01;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>       }</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     }</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     cpl_image_save( f_image, <span class="stringliteral">"F.fits"</span>, CPL_BPP_IEEE_FLOAT, NULL,</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>       CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Compute R"</span>);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     <span class="comment">/* compute R */</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     <span class="keywordflow">for</span>( i=0; i< nx*ny; i++){</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>       r_data[i] = laplacian_redu_data[i]/f_data[i];</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     }</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     cpl_image_save( r_image, <span class="stringliteral">"R.fits"</span>, CPL_BPP_IEEE_FLOAT, NULL,</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>       CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     <span class="comment">/* Search for cosmics */</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Search for cosmic"</span>);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     new_crh = 0;</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     median = cpl_vector_new(24);</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     <span class="keywordflow">for</span>( j=1; j< ny-1; j++){</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>       <span class="keywordtype">double</span> *data = NULL;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>       cpl_vector* med_vect = NULL;</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>       <span class="keywordflow">for</span>( i=1; i< nx-1; i++){</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>         <span class="keywordflow">if</span> ( (s2_data[i+j*nx] >= sigma_lim) && </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>           (r_data[i+j*nx] >= f_lim)){</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>           <span class="keywordtype">int</span> li,lj,ui,uj;</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>           cosmic_data[i+j*nx] = 1.0;</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>           new_crh++;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>           li = i-2;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>           lj = j-2;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>           ui = i+2;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>           uj = j+2;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>           m = 0;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>           <span class="keywordflow">if</span> (li < 0) li = 0;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>           <span class="keywordflow">if</span> (ui >= nx) ui = nx-1;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>           <span class="keywordflow">if</span> (lj < 0) lj = 0;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>           <span class="keywordflow">if</span> (uj >= ny) uj = ny-1;</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>           <span class="keywordflow">for</span>( k=lj; k <= uj; k++){</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>             <span class="keywordflow">for</span>( l=li; l <= ui; l++){</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>               <span class="comment">//uves_msg("REGDEBUG k %d l %d m %d", k, l, m);</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>               <span class="keywordflow">if</span> ( k < j){</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                 cpl_vector_set(median, m, sci_data[l+k*nx]);</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>                 m++;</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>               }</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>               <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( (k == j) && ( l < i)){</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>                  cpl_vector_set(median, m, sci_data[l+k*nx]);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                 m++;</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>               }</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>               <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( l!=i && k!=j && (s2_data[l+k*nx] < sigma_lim)</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>                 && (r_data[l+k*nx] < f_lim)){</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                 cpl_vector_set(median, m, sci_data[l+k*nx]);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                 m++;</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>               }</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>             }</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>           }</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( data = cpl_vector_get_data( median));</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>           <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"REGDEBUG i %d j %d m %d"</span>, i, j ,m);</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( med_vect = cpl_vector_wrap( m, data));</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( sci_data[i+j*nx] = cpl_vector_get_median( med_vect));</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>           cpl_vector_unwrap( med_vect);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>         }</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>       }</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     }</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     uves_free_vector( &median ) ;</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     nb_crh += new_crh;</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     frac = (double)nb_crh/(<span class="keywordtype">double</span>)(nx*ny) ;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"   new cosmics %d, total %d, frac %.4f [%d pixels]"</span>,new_crh,nb_crh,</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>         frac, nx*ny);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     nbiter++;</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     uves_free_image( &laplacian_image);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     uves_free_image( &sci_median3_7_image ) ;</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     uves_free_image( &sci_median3_image ) ;</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     uves_free_image( &s_median_image ) ;</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     uves_free_image( &sci_median5_image ) ;</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>   }</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>   {</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     FILE *debug = NULL;</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> </div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     debug = fopen(<span class="stringliteral">"cosmic.log"</span>,<span class="stringliteral">"w"</span>);</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     </div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     <span class="keywordflow">for</span>( j=0; j< ny; j++){</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>       <span class="keywordflow">for</span>( i=0; i< nx; i++){</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>         <span class="keywordflow">if</span> ( cosmic_data[i+j*nx] == 1.0){</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>           fprintf(debug,<span class="stringliteral">"%.1f %.1f\n"</span>,i+1.0,j+1.0);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         }</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>       }</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     }</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     fclose(debug);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>   }</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>   <span class="comment">//check_nomsg( res_frame = cpl_frame_duplicate( sci_frame ) ) ;</span></div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>   <span class="comment">//uves_msg( "Saving Result Frame '%s'", res_name ) ;</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>   <span class="comment">//check_nomsg( add_qc_crh( sci_pre, nb_crh, 1, instrument ) ) ;</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>   <span class="comment">//check_nomsg( res_frame = xsh_pre_save( sci_pre, res_name, 1 ) ) ;</span></div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>   <span class="comment">//tag = cpl_frame_get_tag( in_sci_frame ) ;</span></div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>   <span class="comment">//check_nomsg( cpl_frame_set_tag( res_frame, tag ) ) ;</span></div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> </div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>   cleanup:</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>   <span class="comment">//xsh_pre_free( &sci_pre);</span></div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>   <span class="comment">//xsh_localization_list_free( &loc_list ) ;</span></div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     <span class="comment">/* free kernel */</span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     uves_free_matrix( &laplacian_kernel);</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     uves_free_matrix( &median3_kernel);</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     uves_free_matrix( &median5_kernel);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>     uves_free_matrix( &median7_kernel);</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     <span class="comment">/* free images */</span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     uves_free_image( &laplacian_image);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     uves_free_image( &laplacian_redu_image);</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     uves_free_image( &two_sub_sample);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     uves_free_image( &sci_median5_image);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     uves_free_image( &noise_image);</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     uves_free_image( &s_image);</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     uves_free_image( &s_median_image); </div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     uves_free_image( &s2_image);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     uves_free_image( &sci_median3_image);</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     uves_free_image( &sci_median3_7_image);</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>     uves_free_image( &f_image);</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     uves_free_image( &r_image);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     <span class="comment">/* free vector */</span></div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     uves_free_vector( &median);</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     <span class="comment">/* free tab */</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     <span class="keywordflow">if</span>(cosmic_data!=NULL) cpl_free( cosmic_data);</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     <span class="keywordflow">return</span> res_image;</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__remove__crh__single_8h_source.html b/html/uves__remove__crh__single_8h_source.html
deleted file mode 100644
index 256d428..0000000
--- a/html/uves__remove__crh__single_8h_source.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_remove_crh_single.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_remove_crh_single.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> cpl_image * <a class="code" href="group__uves__remove__crh__single.html#ga7e6109abce4aa245c65f9cf39e1c8c8a">uves_remove_crh_single</a>( cpl_image * sci_image, </div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span>                    <span class="keywordtype">double</span> frac_max,</div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span>                    <span class="keywordtype">double</span> sigma_lim,</div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span>                    <span class="keywordtype">double</span> f_lim,</div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span>                      <span class="keywordtype">int</span> max_iter,</div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span>                      <span class="keywordtype">double</span> gain,</div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span>                      <span class="keywordtype">double</span> ron);</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__response-test_8c_source.html b/html/uves__response-test_8c_source.html
deleted file mode 100644
index d2cd5c4..0000000
--- a/html/uves__response-test_8c_source.html
+++ /dev/null
@@ -1,411 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_response-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_response-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-01-17 07:53:20 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.7  2010/02/08 07:11:39  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * added test_load_3dtable</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2009/06/05 05:49:02  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * updated init/end to cpl5</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2008/09/29 07:02:05  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2007/05/23 06:43:23  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2007/03/20 07:28:02  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Test TYPE = 'NULL'</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2007/03/15 12:27:18  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Moved unit tests to ./uves/tests and ./flames/tests</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.2  2007/02/27 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Move unit test infrastructure to IRPLIB</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.1  2007/02/21 12:38:26  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Renamed _test -> -test</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.22  2007/01/29 12:17:54  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Support setting verbosity from command line</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.21  2006/11/24 09:39:35  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Factored out termination code</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.20  2006/11/16 09:49:25  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Fixed doxygen bug</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.19  2006/11/08 14:03:59  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Doxybugfix</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.18  2006/11/07 13:59:19  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Removed memory leaks</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.17  2006/11/06 15:31:52  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Added check for memory leak</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.16  2006/11/06 15:30:54  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Added missing includes</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.15  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.14  2006/11/03 15:15:46  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Added test of uves_align</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.16  2006/09/11 13:59:01  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Renamed identifier reserved by POSIX</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="preprocessor">#include <uves_response_utils.h></span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno"><a class="code" href="group__uves__response__test.html#ga725c6509665bad47a2dfc8338b9513a2">  122</a></span> <a class="code" href="group__uves__response__test.html#ga725c6509665bad47a2dfc8338b9513a2" title="Test of uves_align.">test_load_3dtable</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> {</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>    cpl_table *flux_table = NULL;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>    <span class="keyword">const</span> <span class="keywordtype">char</span>* dir_name=<span class="stringliteral">"/media/VERBATIM/data7/flames/flames_uves_demo/ref/"</span>;</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>    <span class="keyword">const</span> <span class="keywordtype">char</span>* tab_name=<span class="stringliteral">"flxstd.fits"</span>;</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>    <span class="keywordtype">char</span> res_name[80];</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>    <span class="keywordtype">char</span> ref_name[25];</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>    <span class="keywordtype">char</span> ref_type[25];</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> </div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>    <span class="keywordtype">char</span> full_name[256];</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>    <span class="keywordtype">int</span> nraws=0;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>    <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>    <span class="keywordtype">double</span> ref_ra=0;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>    <span class="keywordtype">double</span> ref_dec=0;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>    <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* header=NULL;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>    <span class="keyword">const</span> <span class="keywordtype">char</span> *columns[3] = {<span class="stringliteral">"LAMBDA"</span>, <span class="stringliteral">"BIN_WIDTH"</span>, <span class="stringliteral">"F_LAMBDA"</span>};</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>    <span class="keywordtype">int</span> ndata;                      <span class="comment">/* Number of elements in column */</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>    <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>    cpl_table* result=NULL;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>    sprintf(full_name,<span class="stringliteral">"%s%s"</span>,dir_name,tab_name);</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"full name: %s"</span>,full_name);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>    flux_table=cpl_table_load(full_name,1,0);</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>    nraws=cpl_table_get_nrow(flux_table);</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>    header=<a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(full_name,0);</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"std: name \t type \t ra \t dec"</span>);</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>    <span class="keywordflow">for</span>(i=0;i<nraws; i++) {</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>      <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ref_ra  = cpl_table_get_double(flux_table, <span class="stringliteral">"RA_DEG"</span>, i, NULL),</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>         <span class="stringliteral">"Could not read catalogue star right ascension"</span>);</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>      <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ref_dec = cpl_table_get_double(flux_table, <span class="stringliteral">"DEC_DEG"</span>, i, NULL),</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>         <span class="stringliteral">"Could not read catalogue star declination"</span>);</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>      <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( sprintf(ref_name, cpl_table_get_string(flux_table, <span class="stringliteral">"OBJECT"</span>, i)),</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>             <span class="stringliteral">"Could not read reference object name"</span>);</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>      <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( sprintf(ref_type,cpl_table_get_string(flux_table, <span class="stringliteral">"TYPE"</span>, i)),</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>         <span class="stringliteral">"Could not read reference object type"</span>);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>      <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"std: %s \t %s \t %f \t %f"</span>,ref_name,ref_type,ref_ra,ref_dec);</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>      sprintf(res_name,<span class="stringliteral">"%s.fits"</span>,ref_name);</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>      <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ndata = cpl_table_get_int(flux_table, <span class="stringliteral">"NDATA"</span>, i, NULL),</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>         <span class="stringliteral">"Error reading length of flux array"</span>);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>      result=cpl_table_new(ndata);</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>      <span class="keywordflow">for</span>(j = 0; j < 3; j++)</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>        {</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>      <span class="keyword">const</span> cpl_array *data;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>      <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>         </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>      cpl_table_new_column(result, columns[j], CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>         </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>      data = cpl_table_get_array(flux_table, columns[j], i);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>      <span class="comment">/* Only the 'ndata' first elements of the array are used,</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment">        and the array may be longer than this */</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>      <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"3d table array size = %"</span> CPL_SIZE_FORMAT <span class="stringliteral">", ndata = %d"</span>,</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>             cpl_array_get_size(data), ndata);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>      assure( cpl_array_get_size(data) >= ndata,</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>          CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>          <span class="stringliteral">"Flux table row %d: column '%s' depth (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">") "</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>          <span class="stringliteral">"is less than NDATA (%d)"</span>,</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>          i, columns[j], cpl_array_get_size(data), ndata);</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>      <span class="keywordflow">for</span> (indx = 0; indx < ndata; indx++)</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>        {</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>          <span class="comment">/* 3d columns are float */</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>          cpl_table_set_double(result, columns[j], indx, </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>                   cpl_array_get_float(data, indx, NULL));</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>        }</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>        }</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>      </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>      uves_table_save(result, header, NULL,res_name, CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>      uves_free_table(&result);</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>    }</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>   </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>   cleanup:</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>    uves_free_table(&flux_table);</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>    uves_free_propertylist(&header);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> }</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno"><a class="code" href="group__uves__response__test.html#ga0e5837c456b51889ea0c7af0e03eb661">  215</a></span> <a class="code" href="group__uves__response__test.html#ga0e5837c456b51889ea0c7af0e03eb661" title="Test of uves_align.">test_3dtable</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> {</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     <span class="comment">/* Create flux table + header */</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     cpl_table *flux_table = NULL;</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header = NULL;</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     cpl_array *values = NULL;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     <span class="keywordtype">int</span> depth = 10;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     <span class="keywordtype">int</span> nrow = 2;</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">object</span>[] = {<span class="stringliteral">"first std"</span>, <span class="stringliteral">"another standard star"</span>};</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *type  [] = {<span class="stringliteral">"NULL"</span>, <span class="stringliteral">"type 2"</span>};</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> lambda[] = {8000, 2000};</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> fluxes[] = {1000000, 200};</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> bin_width[] = {0.8, 0.0003};</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> ra[] = {10, 80};</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> dec[] = {-8, 0};</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     cpl_table *cat_flux = NULL;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     <span class="keywordtype">char</span> *ref_name = NULL;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <span class="comment">/* Create flux table */</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     flux_table = cpl_table_new(nrow);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     cpl_table_new_column(flux_table, <span class="stringliteral">"RA_DEG"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     cpl_table_new_column(flux_table, <span class="stringliteral">"DEC_DEG"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     cpl_table_new_column(flux_table, <span class="stringliteral">"OBJECT"</span>, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     cpl_table_new_column(flux_table, <span class="stringliteral">"TYPE"</span>, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     cpl_table_new_column(flux_table, <span class="stringliteral">"NDATA"</span>, CPL_TYPE_INT); <span class="comment">/* depth of arrays */</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     cpl_table_new_column_array(flux_table, <span class="stringliteral">"LAMBDA"</span>, CPL_TYPE_FLOAT, depth);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     cpl_table_new_column_array(flux_table, <span class="stringliteral">"BIN_WIDTH"</span>, CPL_TYPE_FLOAT, depth);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     cpl_table_new_column_array(flux_table, <span class="stringliteral">"F_LAMBDA"</span>, CPL_TYPE_FLOAT, depth);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     values = cpl_array_new(depth, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="keywordflow">for</span> (i = 0; i < nrow; i++)</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     {</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>         cpl_table_set_double(flux_table, <span class="stringliteral">"RA_DEG"</span>, i, ra[i]); </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>         cpl_table_set_double(flux_table, <span class="stringliteral">"DEC_DEG"</span>, i, dec[i]);</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>         cpl_table_set_string(flux_table, <span class="stringliteral">"OBJECT"</span>, i, <span class="keywordtype">object</span>[i]);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>         cpl_table_set_string(flux_table, <span class="stringliteral">"TYPE"</span>, i, type[i]);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>         cpl_table_set_int   (flux_table, <span class="stringliteral">"NDATA"</span>, i, depth);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> </div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>         cpl_array_fill_window_float(values, 0, depth, lambda[i]); </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>         cpl_table_set_array(flux_table, <span class="stringliteral">"LAMBDA"</span>, i, values);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         cpl_array_fill_window_float(values, 0, depth, bin_width[i]); </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>         cpl_table_set_array(flux_table, <span class="stringliteral">"BIN_WIDTH"</span>, i, values);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>         cpl_array_fill_window_float(values, 0, depth, fluxes[i]); </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>         cpl_table_set_array(flux_table, <span class="stringliteral">"F_LAMBDA"</span>, i, values);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     }</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> </div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     <span class="comment">/* Create header */</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     raw_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     <span class="comment">/* Set RA, DEC to match each row of flux table, and verify that</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment">       we got the corresponding std star */</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     <span class="keywordflow">for</span> (i = 0; i < nrow; i++)</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     {</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         <span class="keywordtype">double</span> paccuracy = 60; <span class="comment">/* arcsecs */</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>         <span class="keywordtype">double</span> residual = 30;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>         </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>         <a class="code" href="group__uves__pfits.html#ga38758b23b33b80f7e27476783fddc3e3" title="Write the right ascension.">uves_pfits_set_ra</a> (raw_header, ra[i]+residual/3600);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>         <a class="code" href="group__uves__pfits.html#ga9f62d68dba4e530ef2a0407d4752e6fc" title="Write the declination.">uves_pfits_set_dec</a>(raw_header, dec[i]-residual/3600);</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>         </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>         uves_free_table(&cat_flux);</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>         cpl_free(ref_name); ref_name = NULL;</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cat_flux = <a class="code" href="group__uves__response.html#ga9efc933848e1bebb4766a0d10a8e9c93" title="Match a star against a catalogue of stars.">uves_align</a>(raw_header,</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                            flux_table,</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>                            paccuracy,</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>                            &ref_name));</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>         <span class="comment">/* Saving table string values to FITS might add trailing blanks;</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment">           replace with end-of-string */</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>         <span class="keywordflow">while</span>(ref_name[strlen(ref_name)-1] == <span class="charliteral">' '</span>)</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>         {</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>             <span class="comment">/* O(n^2) but that is okay */</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>             ref_name[strlen(ref_name)-1] = <span class="charliteral">'\0'</span>;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>         }</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>         <span class="comment">/* cpl_table_dump(cat_flux, 0, cpl_table_get_nrow(cat_flux), stdout); */</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>         </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>         assure( cpl_table_get_nrow(cat_flux) == depth, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>             <span class="stringliteral">"Flux table has %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" rows, %d expected"</span>,</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>             cpl_table_get_nrow(cat_flux), depth);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>         </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>         assure( strcmp(ref_name, <span class="keywordtype">object</span>[i]) == 0, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>             <span class="stringliteral">"Found '%s'; Expected '%s'"</span>, ref_name, <span class="keywordtype">object</span>[i]);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>         </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="preprocessor"></span>        assure( float_equal(cpl_table_get_column_mean(cat_flux, <span class="stringliteral">"LAMBDA"</span>), </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>                 lambda[i], 0.001),</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>             CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>             <span class="stringliteral">"LAMBDA = %f; Expected = %f"</span>, </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>             cpl_table_get_column_mean(cat_flux, <span class="stringliteral">"LAMBDA"</span>), lambda[i]);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>         </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>         assure( float_equal(cpl_table_get_column_mean(cat_flux, <span class="stringliteral">"BIN_WIDTH"</span>), </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                 bin_width[i], 0.001),</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>             CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>             <span class="stringliteral">"BIN_WIDTH = %f; Expected = %f"</span>, </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>             cpl_table_get_column_mean(cat_flux, <span class="stringliteral">"BIN_WIDTH"</span>), bin_width[i]);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>         </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>         assure( float_equal(cpl_table_get_column_mean(cat_flux, <span class="stringliteral">"F_LAMBDA"</span>), </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                 fluxes[i], 0.001),</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>             CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>             <span class="stringliteral">"F_LAMBDA = %f; Expected = %f"</span>, </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>             cpl_table_get_column_mean(cat_flux, <span class="stringliteral">"F_LAMBDA"</span>), fluxes[i]);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="preprocessor"></span>        cpl_test_rel(cpl_table_get_column_mean(cat_flux, <span class="stringliteral">"LAMBDA"</span>), </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>                             lambda[i], 0.001);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>         </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>         cpl_test_rel(cpl_table_get_column_mean(cat_flux, <span class="stringliteral">"BIN_WIDTH"</span>), </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>                             bin_width[i], 0.001);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>         </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>         cpl_test_rel(cpl_table_get_column_mean(cat_flux, <span class="stringliteral">"F_LAMBDA"</span>),</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>                             fluxes[i], 0.001);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     }</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>   cleanup:</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     uves_free_table(&flux_table);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     uves_free_table(&cat_flux);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     uves_free_array(&values);</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     uves_free_propertylist(&raw_header);</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     cpl_free(ref_name);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> </div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> }</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno"><a class="code" href="group__uves__response__test.html#ga840291bc02cba5474a4cb46a9b9566fe">  354</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> {</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__response__test.html#ga0e5837c456b51889ea0c7af0e03eb661" title="Test of uves_align.">test_3dtable</a>() );</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     <span class="comment">//check_nomsg( test_load_3dtable() );</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>   cleanup:</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> }</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__response_8c_source.html b/html/uves__response_8c_source.html
deleted file mode 100644
index ef758d8..0000000
--- a/html/uves__response_8c_source.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_response.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_response.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.51 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.50  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> {</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     {</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"I am uves_response version %d, but I am linking "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     }</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordflow">return</span> uves_response_get_info(list);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__response__efficiency_8c_source.html b/html/uves__response__efficiency_8c_source.html
deleted file mode 100644
index 95e9ee9..0000000
--- a/html/uves__response__efficiency_8c_source.html
+++ /dev/null
@@ -1,610 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_response_efficiency.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_response_efficiency.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.39 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> </div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <uves_response_efficiency.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <uves_response_utils.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <uves_reduce.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <uves_reduce_utils.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves_wavecal_utils.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#define H_BAR 6.626068e-34           </span><span class="comment">/* SI-units */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span><span class="preprocessor">#define PRIMARY_DIA 818              </span><span class="comment">/* Primary diameter (cm) */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor"></span><span class="preprocessor">#define OBSTR_DIA   140              </span><span class="comment">/* Central obstruction diameter (cm) */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor"></span><span class="preprocessor">#define TELESCOPE_EFFECTIVE_AREA   \</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">  (M_PI * (PRIMARY_DIA * PRIMARY_DIA - OBSTR_DIA * OBSTR_DIA) / 4.0)  </span><span class="comment">/* (cm^2) */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> cpl_error_code</div>
-<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="group__uves__response.html#ga85c178e57e3a92c7ce1cb47d46e84188">  100</a></span> <a class="code" href="group__uves__response.html#ga85c178e57e3a92c7ce1cb47d46e84188" title="Calculate quantum detection efficiency.">uves_response_efficiency</a>(<span class="keyword">const</span> cpl_image *raw_image, </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header, </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                          <span class="keyword">const</span> cpl_image *master_bias,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>                          <span class="keyword">const</span> cpl_image *master_dark, </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mdark_header, </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                          <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                          <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>                          <span class="keyword">const</span> cpl_table *linetable[3], </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *linetable_header[3], </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>                          <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation[3],</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>                          <span class="keyword">const</span> cpl_table *flux_table,</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                          <span class="keyword">const</span> cpl_table *atm_extinction,</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>                          <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>                          <span class="keywordtype">bool</span> debug_mode,</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>                          <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                          <span class="comment">/* Identification */</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                          <span class="keywordtype">double</span> PACCURACY,</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                          <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>                          cpl_table **efficiency,</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                          cpl_table **blaze_efficiency)</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> {</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     cpl_image *background             = NULL;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     cpl_image *rebinned_spectrum      = NULL;</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     cpl_image *rebinned_noise         = NULL;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     cpl_image *merged_sky             = NULL;</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     cpl_image *merged_spectrum        = NULL;</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     cpl_image *merged_noise           = NULL;</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     cpl_image *reduced_spectrum       = NULL;</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     cpl_image *reduced_noise          = NULL;</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>     cpl_image *reduced_rebinned       = NULL;</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>     cpl_image *reduced_rebinned_noise = NULL;</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rebinned_header = NULL;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *reduced_header  = NULL;</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *disprel_1d            = NULL;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     cpl_image *response_orders     = NULL;</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     cpl_image *efficiency_spectrum = NULL;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     cpl_table *central_efficiency  = NULL;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     cpl_table *info_tbl            = NULL;  <span class="comment">/* Local. The info tbl</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment">                           should not be calculated twice</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment">                           in the response recipe. It is</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment">                           calculated in the first extraction */</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> </div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     <span class="keywordtype">char</span> *ref_obj_id = NULL;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="keywordtype">double</span> wavestep;</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     <span class="keywordtype">double</span> extraction_slit;</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     cpl_image* wave_map=NULL;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     cpl_image* reduced_rebinned_no_bpm=NULL;</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     cpl_mask* bpm=NULL;</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>     <span class="comment">/* Set parameters</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment">       wavestep       = 10 * 2/3 * mean(pixelsize)</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"></span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment">       After execution, revert to current value</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     {</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <span class="keywordtype">double</span> smooth_step;</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="comment">/* wavestep */</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>                   make_str(UVES_RESPONSE_ID) <span class="stringliteral">""</span>, <span class="stringliteral">"reduce.rebin.wavestep"</span>, </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>                   CPL_TYPE_DOUBLE, &wavestep),</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>            <span class="stringliteral">"Error getting resampling step size"</span>);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( smooth_step = cpl_table_get_column_mean(linetable[1], LINETAB_PIXELSIZE),</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>            <span class="stringliteral">"Error reading mean pixelsize"</span>);</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>     smooth_step = 10*2*smooth_step/3;</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>         </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     <span class="comment">/* Cast to non-const is okay. The parameter is reset to its previous value</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment">       (see below), so there is not net change (unless the reduction fails, </span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment">       in which case parameter list will change).</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_set_parameter((cpl_parameterlist *) parameters,</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>                   make_str(UVES_RESPONSE_ID) <span class="stringliteral">""</span>, <span class="stringliteral">"reduce.rebin.wavestep"</span>,</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>                   CPL_TYPE_DOUBLE, &smooth_step),</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>            <span class="stringliteral">"Error setting resampling step size"</span>);</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     }</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     </div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__reduce.html#gad5308bc6e13c7e02e134e6f0ce6be722" title="Reduce a science frame.">uves_reduce</a>(raw_image, </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>                        raw_header, </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>                        rotated_header,</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>                master_bias,</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>                master_dark, </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>                        mdark_header,</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                NULL, </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                        NULL,                              <span class="comment">/* No master flat */</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                ordertable, </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>                        order_locations,</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>                linetable, </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>                        linetable_header, </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>                        dispersion_relation,</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>                chip,</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>                debug_mode, </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>                parameters, </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>                        make_str(UVES_RESPONSE_ID),</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>                        <span class="stringliteral">".efficiency"</span>,</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>                <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>                NULL, </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>                        NULL, </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>                        NULL,                        <span class="comment">/* 2d products */</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>                NULL,                        <span class="comment">/* Cosmic ray table */</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>                &wave_map,</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>                &background,</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>                NULL, </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>                        NULL,                        <span class="comment">/* Variance of flat-fielded spectrum */</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>                NULL, </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>                        NULL,                        <span class="comment">/* Don't need these </span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment">                               intermediate products */</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>                &merged_sky,</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>                &rebinned_spectrum, </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>                        &rebinned_noise, </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>                        &rebinned_header,</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>                &merged_spectrum, </div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                        &merged_noise, </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>                        &reduced_header,</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>                &reduced_rebinned, </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>                        &reduced_rebinned_noise,</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>                &reduced_spectrum, </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                        &reduced_noise,</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>                        &info_tbl,</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                &extraction_slit,   <span class="comment">/* not passed on to the caller */</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                        NULL),</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>        <span class="stringliteral">"Could not reduce frame"</span>);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     <span class="comment">/* Reset parameter to previous value */</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     {</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Resetting parameter wavestep = %e"</span>, wavestep);</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     <span class="comment">/* Cast to non-const is okay. There is no net change in the parameter list (see above). */</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_set_parameter((cpl_parameterlist *) parameters, </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>                   make_str(UVES_RESPONSE_ID) <span class="stringliteral">""</span>, <span class="stringliteral">"reduce.rebin.wavestep"</span>, </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>                   CPL_TYPE_DOUBLE, &wavestep),</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>            <span class="stringliteral">"Error resetting resampling step size"</span>);</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     }</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <span class="comment">/* Save reduced spectrum */</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="keywordflow">if</span> (debug_mode) </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     {</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         <span class="comment">/* Window number doesn't apply. This is middle window minus two other (sky) windows */</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Reduced spectrum (2d)"</span>, <span class="stringliteral">"reduced"</span>, </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>                      reduced_rebinned, chip, -1, -1, rebinned_header, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>            <span class="stringliteral">"Error saving reduced spectrum (2d)"</span>);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>         </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Reduced spectrum (2d) noise"</span>, <span class="stringliteral">"errreduced"</span>, </div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>                      reduced_rebinned_noise, chip, -1, -1, rebinned_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>            <span class="stringliteral">"Error saving reduced spectrum (2d) noise"</span>);</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Reduced spectrum"</span>, <span class="stringliteral">"merged"</span>, </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>                      reduced_spectrum, chip, -1, -1, reduced_header, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>            <span class="stringliteral">"Error saving reduced spectrum"</span>);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>         </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Reduced spectrum noise"</span>, <span class="stringliteral">"errmerged"</span>, </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                      reduced_noise, chip, -1, -1, reduced_header, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>            <span class="stringliteral">"Error saving reduced spectrum noise"</span>);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     }</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     </div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Dividing by catalogue flux"</span>);</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment">     * Calculate 2d response curve  (don't scale to unit exposure time, binning, gain, ... ) </span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     <span class="comment">/* in some cases are flagged too many bad pixels on sky frames used </span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment">       to compute reduced object in linear extraction method, this </span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="comment">       affecting the number of bad pixels of the reduced_rebinned obj spectrum</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="comment">       to fix this we erase the associated bad pixel map</span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     reduced_rebinned_no_bpm=cpl_image_duplicate(reduced_rebinned);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     bpm=cpl_image_unset_bpm(reduced_rebinned_no_bpm);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( response_orders = <a class="code" href="group__uves__response.html#ga0e3832a791528896648761e02fac2b9c" title="Calculate response.">uves_calculate_response</a>(reduced_rebinned_no_bpm, </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>                                                      rebinned_header,</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>                                                      flux_table,</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>                                                      raw_header, PACCURACY,</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>                                                      <span class="keyword">false</span>,</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>                                                      &ref_obj_id),<span class="comment">/*  flux/std_flux  */</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>        <span class="stringliteral">"Could not calculate response curve"</span>);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     uves_free_image(&reduced_rebinned_no_bpm);</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     uves_free_mask(&bpm);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     <span class="keywordflow">if</span> (debug_mode)</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     {</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"2d response curve"</span>, <span class="stringliteral">"resp"</span>,</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>                      response_orders, chip, -1, -1, rebinned_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>            <span class="stringliteral">"Error saving 2d response curve"</span>);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     }</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment">     *   Extinction correction, exposure time + gain</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     {</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     <span class="keywordtype">int</span> n_traces = cpl_image_get_size_y(merged_spectrum);    <span class="comment">/* Number of spatial traces */</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     assure( n_traces == 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>         <span class="stringliteral">"2d extraction/reduction not supported"</span>);</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( efficiency_spectrum = <a class="code" href="group__uves__reduce.html#ga1867e835a6183494d513613729836205" title="Normalize a spectrum.">uves_normalize_spectrum</a>(response_orders, NULL,</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>                                  <span class="comment">/* Spectrum, noise */</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>                                  rebinned_header,</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>                                  raw_header,</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>                                  n_traces,</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                                  chip,</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                                  atm_extinction,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                                  <span class="keyword">false</span>,  <span class="comment">/* Don't divide by binning */</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                                  NULL),  <span class="comment">/* Don't need output noise */</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>            <span class="stringliteral">"Could not normalize spectrum"</span>);</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     }</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment">     *   7 x 1 median filter</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Applying 7x1 median filter"</span>);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f" title="Median filter.">uves_filter_image_median</a>(&efficiency_spectrum, 3, 0, <span class="keyword">false</span>),</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>        <span class="stringliteral">"Error applying median filter"</span>);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating quantum detection efficiency"</span>);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     {</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     <span class="keywordtype">int</span> nx, nbins, norders, order;</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     <span class="keywordtype">int</span> first_abs_order, last_abs_order, abs_order;  <span class="comment">/* Absolute order numbers */</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     <span class="keywordtype">double</span> dlambda;</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <span class="keywordtype">double</span> average_noise;               <span class="comment">/* Median of noise of rebinned spectrum */</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     <span class="keywordtype">int</span> row = 0;                                       <span class="comment">/* Next unused table row */</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     <span class="keywordtype">double</span> *efficiency_data;               <span class="comment">/* For efficiency. cpl_image_get()   */</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     <span class="keywordtype">double</span> *reduced_noise_data;            <span class="comment">/* is slow when there are bad pixels */</span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     efficiency_data    = cpl_image_get_data_double(efficiency_spectrum);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     reduced_noise_data = cpl_image_get_data_double(reduced_rebinned_noise);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     nx      = cpl_image_get_size_x(raw_image);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     nbins   = cpl_image_get_size_x(efficiency_spectrum);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     norders = cpl_image_get_size_y(efficiency_spectrum);</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     *efficiency = cpl_table_new(nbins * norders);</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     cpl_table_new_column(*efficiency, <span class="stringliteral">"Wave"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     cpl_table_new_column(*efficiency, <span class="stringliteral">"Eff"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     cpl_table_new_column(*efficiency, <span class="stringliteral">"Binsize"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     cpl_table_new_column(*efficiency, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     row = 0;</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( first_abs_order = <a class="code" href="group__uves__pfits.html#gaa6a185f3150b22d6ce30439bfacbb78c" title="Get first absolute order number.">uves_pfits_get_firstabsorder</a>(linetable_header[1]), </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>            <span class="stringliteral">"Could not read order numbers from line table header"</span>);</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( last_abs_order  = <a class="code" href="group__uves__pfits.html#gad090d54b01606904ef8d740f766c2fde" title="Get last absolute order number.">uves_pfits_get_lastabsorder</a> (linetable_header[1]), </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>            <span class="stringliteral">"Could not read order numbers from line table header"</span>);</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dlambda = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(rebinned_header),</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>            <span class="stringliteral">"Error reading bin width from header"</span>);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( average_noise = cpl_image_get_median(reduced_rebinned_noise),</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>            <span class="stringliteral">"Error reading median noise level"</span>);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> </div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     <span class="keywordflow">for</span> (order = 1; order <= norders; order++)</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>         {</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>         <span class="keywordtype">double</span> lambda_start, lambda, lambda_end;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>         <span class="keywordtype">double</span> x;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>         <span class="keywordtype">int</span> bin;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>         abs_order = <a class="code" href="group__uves__utils.html#ga579bc295bb9d73af0b052f37b576f552" title="Get the absolute order number.">uves_absolute_order</a>(first_abs_order, last_abs_order, order);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_start = <a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203" title="Read the wstart keyword.">uves_pfits_get_wstart</a>(rebinned_header, order),</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>                <span class="stringliteral">"Error reading start wavelength from header"</span>);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>         </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_end   = <a class="code" href="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595" title="Read the wend keyword.">uves_pfits_get_wend</a>(rebinned_header, order),</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>                <span class="stringliteral">"Error reading end wavelength from header"</span>);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>         <span class="comment">/* Get 1d dispersion relation for this order</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="comment">           f_1d = f(x, m=abs_order) </span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="comment"></span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="comment">           Collapsing a polynomial is slow, so do it</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="comment">           only once per order</span></div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&disprel_1d);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( disprel_1d = <a class="code" href="group__uves__utils__polynomial.html#gaec68fa3685c9988c384e327268d2d6b9" title="Collapse a polynomial by fixing one variable to a constant.">uves_polynomial_collapse</a>(dispersion_relation[1],</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>                                  2,  <span class="comment">/* Independent variable number */</span></div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                                  abs_order),</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                <span class="stringliteral">"Error getting 1d dispersion relation for absolute order #%d"</span>, abs_order);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>         x = 1;</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>         <span class="keywordflow">for</span> (lambda = lambda_start, bin = 1;</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>              lambda < lambda_end + 0.5 * dlambda && bin <= nbins; </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>              bin++, lambda += dlambda)</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>             {</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>             <span class="keywordtype">double</span> flux;</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>             <span class="keywordtype">double</span> dldx;</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>             <span class="keywordtype">double</span> noise;            <span class="comment">/* Only use positions with low noise </span></div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> <span class="comment">                            (middle of blaze function) */</span></div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>             </div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>             <span class="comment">/* flux  = cpl_image_get(efficiency_spectrum, </span></div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> <span class="comment">                                     bin, order, &pis_rejected);</span></div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="comment">               noise = cpl_image_get(reduced_rebinned_noise, </span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> <span class="comment">               bin, order, &pis_rejected); */</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>             flux  = efficiency_data   [(bin-1) + (order-1) * nbins];</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>             noise = reduced_noise_data[(bin-1) + (order-1) * nbins];</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>             <span class="comment">/*</span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> <span class="comment">             *   Energy per (time * area * wavelength) =</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="comment">             *    ((electron counts)/gain) * (hc/lambda) / </span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="comment">             *    (time * area * |dlambda/dx|)</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> <span class="comment">             *   We already divided by exposure time, gain</span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> <span class="comment">             *   We did not multiply by dlambda/dx during rebinning,</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="comment">             *    so now is the time to do it</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>             <span class="comment">/* Solve  f(x,m) = m*lambda  for x.</span></div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> <span class="comment">             *</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> <span class="comment">             * This is equivalent to solving f_1d(x) = m*lambda</span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>             </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( x = <a class="code" href="group__uves__utils__polynomial.html#gadc218f4dd3fa80d91949611419b75abb" title="Solve p(x) = value.">uves_polynomial_solve_1d</a>(</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                    disprel_1d, </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>                    abs_order * lambda, <span class="comment">/* right hand side    */</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>                    x,                  <span class="comment">/* guess              */</span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                    1),                 <span class="comment">/* multiplicity       */</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                    <span class="stringliteral">"Could not solve dispersion relation for x "</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                    <span class="stringliteral">"at (m, lambda) = (%d, %f)"</span>, abs_order, lambda);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>             </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>             <span class="comment">/*  For constant absolute order number, m:</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> <span class="comment">                dl/dx  =  d (l.m)/dx / m  */</span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>             </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dldx = fabs(<a class="code" href="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a" title="Evaluate the partial derivative of a 2d polynomial.">uves_polynomial_derivative_2d</a>(</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>                            dispersion_relation[1], </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>                            x, </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>                            abs_order, 1) / abs_order),</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>                    <span class="stringliteral">"Could not evaluate dispersion relation"</span>);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>             </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>                         <span class="comment">/* Don't make a linear interpolation</span></div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> <span class="comment">            weight = (lambda - lambda_start) / (lambda_end - lambda_start);</span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="comment">            </span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment">            check( dldx =</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> <span class="comment">                   fabs(uves_polynomial_derivative_2d(</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="comment">                    dispersion_relation[1],</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="comment">                    1 , abs_order,</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <span class="comment">                    1) / abs_order) * (1 - weight) +</span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> <span class="comment">                   fabs(uves_polynomial_derivative_2d(</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> <span class="comment">                    dispersion_relation[1],</span></div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> <span class="comment">                    nx, abs_order, 1) / abs_order) * weight,</span></div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <span class="comment">                   "Could not evaluate dispersion relation");</span></div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> </div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>             flux = flux * 1e16 * 1e17 * H_BAR * SPEED_OF_LIGHT /</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>                 (dldx * lambda * TELESCOPE_EFFECTIVE_AREA);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>             <span class="comment">/* The factor 1e17 accounts for the conversion Joule<-erg</span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> <span class="comment">             * (10^7) and Angstrom->meters (10^10)</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> <span class="comment">             * The factor 1e16 is to correct for the fact that the</span></div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> <span class="comment">             * catalogue flux is in units of (10^-16 <standard units>)</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>             <span class="keywordflow">if</span> (noise < 3*average_noise)</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>                 {</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_set_double(*efficiency, <span class="stringliteral">"Wave"</span>, row, lambda),</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>                     cpl_table_set_double(*efficiency, <span class="stringliteral">"Eff"</span>,  row, flux),</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>                     cpl_table_set_double(*efficiency, <span class="stringliteral">"Binsize"</span>,  row, dldx),</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>                     cpl_table_set_int   (*efficiency, <span class="stringliteral">"Order"</span>,  row, order),</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>                     row++),</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                        <span class="stringliteral">"Error updating efficiency table row %d"</span>, row);</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>                 }</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>             }</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>         }</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>     <span class="comment">/* Remove unused rows of efficiency table */</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_set_size(*efficiency, row), </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>            <span class="stringliteral">"Error setting size of efficiency table to %d rows"</span>, row);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     <span class="comment">/* remove negative efficiency points */</span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     cpl_table* tmp=cpl_table_duplicate(*efficiency);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     row=cpl_table_and_selected_double(tmp,<span class="stringliteral">"Eff"</span>,CPL_GREATER_THAN,0.);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     uves_free_table(efficiency);</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     *efficiency=cpl_table_extract_selected(tmp);</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     uves_free_table(&tmp);</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> </div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     <span class="comment">/* Get the "top efficiency" (90% percentile efficiency of middle 20% of each order) */</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     *blaze_efficiency = cpl_table_new(norders);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     cpl_table_new_column(*blaze_efficiency, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     cpl_table_new_column(*blaze_efficiency, <span class="stringliteral">"Wave"</span> , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     cpl_table_new_column(*blaze_efficiency, <span class="stringliteral">"Eff"</span>  , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     row = 0;</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     <span class="keywordflow">for</span> (order = 1; order <= norders; order++)</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>         {</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>         <span class="keywordtype">double</span> lambda_min;</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>         <span class="keywordtype">double</span> lambda_central_min;</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>         <span class="keywordtype">double</span> lambda_central;</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>         <span class="keywordtype">double</span> lambda_central_max;</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>         <span class="keywordtype">double</span> lambda_max;</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>         <span class="keywordtype">double</span> top_efficiency;</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> </div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>         abs_order = <a class="code" href="group__uves__utils.html#ga579bc295bb9d73af0b052f37b576f552" title="Get the absolute order number.">uves_absolute_order</a>(first_abs_order, last_abs_order, order);</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_min = <a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203" title="Read the wstart keyword.">uves_pfits_get_wstart</a>(rebinned_header, order),</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>                <span class="stringliteral">"Error reading bin width from header"</span>);</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> </div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_max = <a class="code" href="group__uves__pfits.html#ga3443f7c706d4711dbb277ab6d2f59595" title="Read the wend keyword.">uves_pfits_get_wend</a>(rebinned_header, order),</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>                <span class="stringliteral">"Error reading bin width from header"</span>);</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>         </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>         lambda_central_min = lambda_min + 0.4 * (lambda_max - lambda_min);</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>         lambda_central     = lambda_min + 0.5 * (lambda_max - lambda_min);</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>         lambda_central_max = lambda_min + 0.6 * (lambda_max - lambda_min);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>         </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>         <span class="comment">/* Select rows in this order in range </span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> <span class="comment">           ]lambda_central_min ; lambda_central_max[ */</span></div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>         cpl_table_select_all(*efficiency);</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>         cpl_table_and_selected_int   (*efficiency, <span class="stringliteral">"Order"</span>, </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>                           CPL_EQUAL_TO    , order);</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>         cpl_table_and_selected_double(*efficiency, <span class="stringliteral">"Wave"</span> , </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>                           CPL_GREATER_THAN, lambda_central_min);</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>         cpl_table_and_selected_double(*efficiency, <span class="stringliteral">"Wave"</span> , </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>                           CPL_LESS_THAN   , lambda_central_max);</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>         </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" bins in central 20 %% range of order #%d"</span>,</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>                    cpl_table_count_selected(*efficiency), order);</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>         </div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>         <span class="keywordflow">if</span> ( cpl_table_count_selected(*efficiency) > 0)</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>             {</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>             uves_free_table(&central_efficiency);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>             central_efficiency = cpl_table_extract_selected(*efficiency);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>             </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>             <span class="comment">/* Get 90% percentile efficiency */</span></div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>             uves_sort_table_1(central_efficiency, <span class="stringliteral">"Eff"</span>, <span class="keyword">false</span>);     <span class="comment">/* Ascending */</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>             </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>             top_efficiency = cpl_table_get_double(</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>                 central_efficiency, <span class="stringliteral">"Eff"</span>, </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>                 (<span class="keywordtype">int</span>) (0.9 * cpl_table_get_nrow(central_efficiency)), NULL);</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>             }</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>             {</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"No wavelength bins in central 20%% range of order #%d"</span>,</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>                        order);</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>             top_efficiency = 0;</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>             }</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>         </div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Efficiency(lambda = %.2f A) = %.2f%%"</span>, </div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>              lambda_central, top_efficiency*100);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_set_int   (*blaze_efficiency, <span class="stringliteral">"Order"</span>, row, order),</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>             cpl_table_set_double(*blaze_efficiency, <span class="stringliteral">"Wave"</span> , row, lambda_central),</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>             cpl_table_set_double(*blaze_efficiency, <span class="stringliteral">"Eff"</span>  , row, top_efficiency),</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>             row++),</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>                <span class="stringliteral">"Error updating blaze efficiency table"</span>);</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>         } <span class="comment">/* for order */</span></div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     }</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>   cleanup:</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     uves_free_image(&background);</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>     uves_free_image(&rebinned_spectrum);</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     uves_free_image(&rebinned_noise);</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>     uves_free_image(&merged_sky);</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>     uves_free_image(&merged_spectrum);</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     uves_free_image(&merged_noise);</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>     uves_free_image(&reduced_spectrum);</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     uves_free_image(&reduced_noise);</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>     uves_free_image(&reduced_rebinned);</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>     uves_free_image(&reduced_rebinned_noise);</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>     uves_free_propertylist(&reduced_header);</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>     uves_free_propertylist(&rebinned_header);</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&disprel_1d);</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     uves_free_image(&response_orders);</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>     uves_free_image(&efficiency_spectrum);</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>     uves_free_table(&central_efficiency);</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>     uves_free_table(&info_tbl);</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>     </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>     cpl_free(ref_obj_id);</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> </div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     {</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>         uves_free_table(efficiency);</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>         uves_free_table(blaze_efficiency);</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>     }</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>     </div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__response__efficiency_8h_source.html b/html/uves__response__efficiency_8h_source.html
deleted file mode 100644
index 2d56bd3..0000000
--- a/html/uves__response__efficiency_8h_source.html
+++ /dev/null
@@ -1,159 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_response_efficiency.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_response_efficiency.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.14 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.13  2013/07/01 15:35:42  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Rename DEBUG to debug_mode to remove compiler error on some platforms (that name is reserved to special compiler options)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.12  2011/12/08 14:02:01  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * include uves_cpl_size.h for CPL6</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.11  2010/09/24 09:32:07  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.9  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.8  2007/05/22 11:44:34  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed MIDAS flag for good</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.7  2007/05/03 15:24:58  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Fixed const bugs</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.6  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.5  2007/01/29 12:13:29  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Calculate extraction slit length</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.4  2006/11/06 15:19:42  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.3  2006/11/03 15:01:21  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Killed UVES 3d table module and use CPL 3d tables</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.2  2006/05/16 12:13:07  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * added QC log</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.1  2006/02/03 07:51:04  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.7  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#ifndef UVES_RESPONSE_EFFICIENCY_H</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_RESPONSE_EFFICIENCY_H</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> cpl_error_code</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <a class="code" href="group__uves__response.html#ga85c178e57e3a92c7ce1cb47d46e84188" title="Calculate quantum detection efficiency.">uves_response_efficiency</a>(<span class="keyword">const</span> cpl_image *raw_image, </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header, </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header,</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>              <span class="keyword">const</span> cpl_image *master_bias,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>              <span class="keyword">const</span> cpl_image *master_dark, </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mdark_header, </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>              <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>                          <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>              <span class="keyword">const</span> cpl_table *linetable[3], </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>                          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *linetable_header[3], </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>                          <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation[3],</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>              <span class="keyword">const</span> cpl_table *flux_table,</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>              <span class="keyword">const</span> cpl_table *atm_extinction,</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>              <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>                          <span class="keywordtype">bool</span> debug_mode,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>              <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>              <span class="comment">/* Identification */</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>              <span class="keywordtype">double</span> PACCURACY,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>              <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>              cpl_table **efficiency,</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>              cpl_table **blaze_efficiency);</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_RESPONSE_EFFICIENCY_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__response__impl_8c_source.html b/html/uves__response__impl_8c_source.html
deleted file mode 100644
index 14ad926..0000000
--- a/html/uves__response__impl_8c_source.html
+++ /dev/null
@@ -1,1369 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_response_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_response_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:46 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.85 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">/* Definitions */</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">/* Macro steps */</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_reduce.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <uves_reduce_utils.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_response_efficiency.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_response_utils.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">/* Utility functions */</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_extract.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_plot.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <uves_merge.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/* Library */</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_efficiency_qclog(cpl_table* table,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>                   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* raw_header, </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>                   <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>                   cpl_table* qclog,</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *ref_obj_name);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> uves_response_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor">#define cpl_plugin_get_info uves_response_get_info</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     UVES_RESPONSE_ID, UVES_RESPONSE_DOM, uves_response_define_parameters,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     <span class="stringliteral">"Jonas M. Larsen"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     <span class="stringliteral">"Determines response function and quantum efficiency"</span>,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="stringliteral">"This recipe reduces a standard star frame (STANDARD_xxx or STANDARD_xxx,\n"</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="stringliteral">"where xxx = BLUE, RED) using a combination (depending on recipe parameters\n"</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="stringliteral">"and provided input frames) of the steps:\n"</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="stringliteral">"  - bias subtraction,\n"</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="stringliteral">"  - dark subtraction,\n"</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="stringliteral">"  - background subtraction,\n"</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="stringliteral">"  - extraction/cosmic ray removal,\n"</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="stringliteral">"  - flat-field correction,\n"</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="stringliteral">"  - wavelength rebinning,\n"</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="stringliteral">"  - sky subtraction,\n"</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="stringliteral">"  - order merging.\n"</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="stringliteral">" Expected input for this recipe is an raw std star frame, STANDARD_xxx or \n"</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="stringliteral">"order table(s) for each chip, ORDER_TABLE_xxxx (where xxxx=BLUE, REDL, REDU),\n"</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="stringliteral">"line table(s) for each chip, LINE_TABLE_xxxx, a master bias frame,\n"</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="stringliteral">"MASTER_BIAS_xxxx, a master flat, MASTER_FLAT_xxxx, a reference standard star\n"</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="stringliteral">"flux table, FLUX_STD_TABLE, a table describing the atmospheric extintion,\n"</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="stringliteral">"EXTCOEFF_TABLE. \n"</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="stringliteral">"Two reductions are performed, the first using optimal extraction (used to\n"</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="stringliteral">"compute the instrument response function), the second using linear extraction\n"</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="stringliteral">"(used to get the Quantum Detection Efficiency)\n"</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="stringliteral">"For each chip (xxxx = BLUE, REDL, REDU) the recipe produces\n"</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="stringliteral">"  INSTR_RESPONSE_xxxx          Response curve\n"</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="stringliteral">"  WCALIB_FF_RESPONSE_xxxx      Response curve in (lambda,order) space before\n"</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="stringliteral">"                               correcting for exposure time, gain, binning and\n"</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="stringliteral">"                               atmospheric absorption\n"</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="stringliteral">"  RED_STD_xxxx                 Reduced spectrum\n"</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="stringliteral">"  EFFICIENCY_TABLE_xxxx        Efficiency table\n"</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     <span class="stringliteral">"  BKG_STD_xxxx                 The subtracted background\n"</span>);</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> uves_response_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> {</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment">     *    General    *</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="keywordflow">if</span> (uves_define_global_parameters(parameters) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     {</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     }</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     <span class="comment">/*******************</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment">     *    Reduce       *</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     <span class="comment">/* Get reduce parameters for the top level and also for 'efficiency' substep */</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     <span class="keywordflow">if</span> (uves_propagate_parameters_step(</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>         UVES_REDUCE_ID, parameters, make_str(UVES_RESPONSE_ID), NULL) != 0)</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     {</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     }</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_define_efficiency_parameters(parameters),</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>           <span class="stringliteral">"Defining efficiency parameters"</span>);</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   cleanup:</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> }</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> uves_response_process_chip(<span class="keyword">const</span> cpl_image *raw_image, </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header, </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                <span class="keyword">const</span> cpl_image *master_bias,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                <span class="keyword">const</span> cpl_image *master_dark, </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mdark_header, </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                <span class="keyword">const</span> cpl_image *master_flat, </div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mflat_header,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                            <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                <span class="keyword">const</span> cpl_table *linetable[3], </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>                            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *linetable_header[3], </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>                            <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation[3],</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>                <span class="keyword">const</span> cpl_table *flux_table,</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>                <span class="keyword">const</span> cpl_table *atm_extinction,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>                <span class="comment">/* General */</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>                <span class="keywordtype">bool</span>   debug_mode,</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>                <span class="comment">/* Backsub */</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>                <span class="comment">/* Flat fielding */</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>                <span class="comment">/* Extraction */</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>                <span class="comment">/* Rebinning  */</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>                <span class="keywordtype">bool</span> calc_response,</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                <span class="comment">/* Identification */</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>                <span class="keywordtype">double</span> PACCURACY,</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>                <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>                <span class="keywordtype">char</span> **ref_obj_id,</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>                cpl_image **reduced_spectrum, </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>                            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **reduced_header, </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>                            cpl_image **background,</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>                cpl_image **response_orders, </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>                            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **response_header_2d,</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                cpl_image **response_curve,  </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                            <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **response_header,</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                cpl_table **efficiency, </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                            cpl_table** blaze_efficiency,</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                            cpl_table** info_tbl,</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>                <span class="keywordtype">double</span> *extraction_slit)</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> {</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     cpl_image        *rebinned_spectrum = NULL;</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     cpl_image        *rebinned_noise    = NULL;</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rebinned_header   = NULL;</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     cpl_image        *reduced_rebinned = NULL;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     cpl_image        *reduced_rebinned_noise = NULL;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     cpl_image        *reduced_noise    = NULL;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     cpl_table *cosmic_mask     = NULL;   <span class="comment">/* Cosmic ray table  (not a product of this recipe) */</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     cpl_table *order_trace     = NULL;   <span class="comment">/* Order trace table (not a product of this recipe) */</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     cpl_image *merged_spectrum = NULL;   <span class="comment">/* Not sky-subtracted (if simple extraction)        */</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     cpl_image *wave_map      = NULL;</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     cpl_image *merged_sky      = NULL;</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     cpl_image *merged_noise    = NULL;</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     cpl_image *reduced_scaled  = NULL;   <span class="comment">/* Merged, sky-subtracted and normalized </span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment">                        (exposure time, gain...) */</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> </div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     cpl_table *catalogue_flux = NULL;    <span class="comment">/* Std star catalogue flux */</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>  </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     <span class="comment">/* Do the science reduction. Produces wave.cal. spectra. */</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Reducing standard star"</span>);</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__reduce.html#gad5308bc6e13c7e02e134e6f0ce6be722" title="Reduce a science frame.">uves_reduce</a>(raw_image, </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                        raw_header, </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>                        rotated_header,</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                master_bias,</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>                master_dark, </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>                        mdark_header,</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>                master_flat, </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>                        mflat_header,</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>                ordertable, </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>                        order_locations,</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>                linetable, </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>                        linetable_header, </div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                        dispersion_relation,</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>                chip,</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>                debug_mode, </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>                parameters, </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>                        make_str(UVES_RESPONSE_ID),</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>                <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>                <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>                NULL, </div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                        NULL, </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                        NULL,                   <span class="comment">/* 2d products */</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                &cosmic_mask,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                &wave_map,</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>                background,</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>                NULL, </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>                        NULL,                          <span class="comment">/* Variance of flat-fielded */</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>                NULL, </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>                        NULL,                         <span class="comment">/* Don't need these </span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment">                                  intermediate products */</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>                &merged_sky,</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>                &rebinned_spectrum, </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                        &rebinned_noise, </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                        &rebinned_header,</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                &merged_spectrum,   </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>                        &merged_noise, </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>                        reduced_header,</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                &reduced_rebinned,  </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                        &reduced_rebinned_noise,</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>                reduced_spectrum,   </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>                        &reduced_noise,</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>                        info_tbl,</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>                extraction_slit,</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>                        &order_trace),</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>        <span class="stringliteral">"Could not reduce frame"</span>);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_image_rows(*reduced_spectrum, 1, 1, 1,</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>                 <span class="stringliteral">"Wavelength (arbitrary units)"</span>, NULL,</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>                 <span class="stringliteral">"Reduced spectrum (%s chip)"</span>, </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>                 <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip)),</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>        <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     <span class="keywordflow">if</span> (calc_response)</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     {</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>         <span class="comment">/* Calculate 2d response curve  (but don't scale to unit exposure time, ...) */</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Filtering rebinned spectrum"</span>);</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f" title="Median filter.">uves_filter_image_median</a>(&reduced_rebinned, 10, 0, <span class="keyword">false</span>), </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>            <span class="stringliteral">"Could not smooth spectrum"</span>);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__cpl.html#ga61202bb11e2387a91f36248674241b98" title="Average filter.">uves_filter_image_average</a>(reduced_rebinned, 10, 0), </div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>            <span class="stringliteral">"Could not smooth spectrum"</span>);    </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>         </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating 2d response curve"</span>);</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>         </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *response_orders = <a class="code" href="group__uves__response.html#ga0e3832a791528896648761e02fac2b9c" title="Calculate response.">uves_calculate_response</a>(reduced_rebinned, </div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>                                   rebinned_header,</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>                                   flux_table,</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>                                   raw_header, </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>                                   PACCURACY,</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>                                   <span class="keyword">true</span>,     </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>                                   <span class="comment">/*  std_flux / flux  */</span></div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>                                   ref_obj_id),</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>            <span class="stringliteral">"Could not calculate response curve"</span>);</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>         </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *response_header_2d = <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(rebinned_header),</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>            <span class="stringliteral">"Error creating FITS header for 2d response curve"</span>);</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>         </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga1dcf84ae52c90eecc51ca448a63cfc5e" title="Write the bunit keyword.">uves_pfits_set_bunit</a>(*response_header_2d, <span class="stringliteral">"FLUX_CAT / FLUX_STD"</span>),</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>            <span class="stringliteral">"Error writing BUNIT keyword"</span>);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>         </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="comment">         *  Calculate 1d response curve</span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>         </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Normalizing reduced spectrum"</span>);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>         </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>         {</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>         <span class="keywordtype">int</span> n_traces = cpl_image_get_size_y(*reduced_spectrum);</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>         assure( n_traces == 1, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>             <span class="stringliteral">"2d extraction/reduction not supported"</span>);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>         </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( reduced_scaled = <a class="code" href="group__uves__reduce.html#ga1867e835a6183494d513613729836205" title="Normalize a spectrum.">uves_normalize_spectrum</a>(*reduced_spectrum, </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>                                 reduced_noise, </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>                                 *reduced_header,</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>                                 raw_header,</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                                 n_traces,</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                                 chip,</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>                                 atm_extinction,</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>                                 <span class="keyword">true</span>,  <span class="comment">/* Yes, divide by binning */</span></div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>                                 NULL), <span class="comment">/* Noise spectrum         */</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>                <span class="stringliteral">"Error normalizing reduced spectrum"</span>);</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>         }</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>         </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Filtering reduced spectrum"</span>);</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f" title="Median filter.">uves_filter_image_median</a>(&reduced_scaled, 10, 0, <span class="keyword">false</span>), </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>            <span class="stringliteral">"Could not smooth spectrum"</span>);</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__cpl.html#ga61202bb11e2387a91f36248674241b98" title="Average filter.">uves_filter_image_average</a>(reduced_scaled, 10, 0), </div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>            <span class="stringliteral">"Could not smooth spectrum"</span>);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating response curve from scaled spectrum"</span>);</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>         </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>         cpl_free(*ref_obj_id); *ref_obj_id = NULL;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *response_curve = <a class="code" href="group__uves__response.html#ga0e3832a791528896648761e02fac2b9c" title="Calculate response.">uves_calculate_response</a>(reduced_scaled, </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>                                  *reduced_header,</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>                                  flux_table,</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>                                  raw_header, </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                                  PACCURACY, </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                                  <span class="keyword">true</span>, <span class="comment">/*  catalogue_flux / flux  */</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>                                  ref_obj_id),</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>            <span class="stringliteral">"Could not calculate response curve"</span>);</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>         </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *response_header = <a class="code" href="group__uves__propertylist.html#ga79c637a212cf4556348c3ba3375b3a07" title="Create a copy of the given property list.">uves_propertylist_duplicate</a>(*reduced_header),</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>            <span class="stringliteral">"Error creating FITS header for response curve"</span>);</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>         </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga1dcf84ae52c90eecc51ca448a63cfc5e" title="Write the bunit keyword.">uves_pfits_set_bunit</a>(*response_header, <span class="stringliteral">"FLUX_CAT / FLUX_STD"</span>),</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>            <span class="stringliteral">"Error writing BUNIT keyword"</span>);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>         </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>         <span class="keywordflow">if</span> (debug_mode)</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>         {</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Pre-smoothed response curve"</span>, <span class="stringliteral">"raw_response"</span>, </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                          *response_curve, chip, -1, -1, *response_header, <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                <span class="stringliteral">"Error saving image"</span>);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>         }</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>         </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_image_rows(*response_curve, 1, 1, 1, <span class="stringliteral">"Wavelength (arbitrary units)"</span>, </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                     NULL,</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                     <span class="stringliteral">"Raw response (%s chip)"</span>, <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip)),</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>            <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>         </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>         </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>         <span class="comment">/* Rebin the response curve to 50 wlu:</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="comment">           1) smooth it using a radius of    25 wlu,</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> <span class="comment">           2) then extract every n'th pixel where n = 50/step */</span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Rebinning response curve to step size = 50 w.l.u."</span>);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>         {</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>         <span class="keywordtype">double</span> dlambda, lambda_start;</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>         <span class="keywordtype">int</span> n, bin, newbin;</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_start = <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(*response_header),</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>                <span class="stringliteral">"Error reading start wavelength from header"</span>);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dlambda = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(*response_header),</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>                <span class="stringliteral">"Error reading wavelength step from header"</span>);</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>         </div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>         n = uves_round_double(50.0/dlambda);</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>         </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>         assure( n >= 1, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>             <span class="stringliteral">"Cannot rebin to 50 w.l.u. Current step is only %f w.l.u."</span>, dlambda);</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>         </div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>         <span class="comment">/* Filter radius = 25 wlu, 0    (It's a 1d image) */</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__cpl.html#ga61202bb11e2387a91f36248674241b98" title="Average filter.">uves_filter_image_average</a>(*response_curve, n/2, 0),</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>                <span class="stringliteral">"Error filtering response curve"</span>);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>         </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         newbin = 1;</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>         <span class="keywordflow">for</span> (bin = 1+n/2; bin <= cpl_image_get_size_x(*response_curve); bin += n)</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>             {</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>             <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>             </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>             <span class="comment">/* Write to the same image buffer */</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>             cpl_image_set(*response_curve, </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                       newbin, 1,</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                       cpl_image_get(*response_curve, bin, 1, &pis_rejected)</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                 );</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>             newbin++;</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>             }</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>         </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>         </div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>         <span class="comment">/* Extract image, update start+step wavelengths */</span></div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>         uves_crop_image(response_curve, 1, 1, newbin-1, 1);</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>         </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>         lambda_start = lambda_start + dlambda * ((1+n/2) - 1);  <span class="comment">/* Center of first bin */</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>         dlambda      = n * dlambda;</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>         </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gaaed14627f7b8206cc8970cd1f787a6db" title="Write the crval1 keyword.">uves_pfits_set_crval1</a>(*response_header, lambda_start),</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>                <span class="stringliteral">"Error updating start wavelength"</span>);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga0d13232557903e763483cc57b4cfa0c4" title="Write the cdelt1 keyword.">uves_pfits_set_cdelt1</a>(*response_header, dlambda),</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                <span class="stringliteral">"Error updating wavelength step"</span>);</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>         </div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>         }</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>         </div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_image_rows(*response_curve, 1, 1, 1, <span class="stringliteral">"Wavelength (arbitrary units)"</span>, </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>                     NULL,</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>                     <span class="stringliteral">"Response curve (%s chip)"</span>, </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>                     <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip)),</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>            <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>         </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>         <span class="comment">/* Calculate efficiency table */</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Calculating efficiency curve"</span>);</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>         </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__response.html#ga85c178e57e3a92c7ce1cb47d46e84188" title="Calculate quantum detection efficiency.">uves_response_efficiency</a>(raw_image, </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>                         raw_header, </div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>                         rotated_header,</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>                         master_bias,</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>                         master_dark, </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>                         mdark_header, </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>                         ordertable, </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>                         order_locations,</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>                         linetable, </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>                         linetable_header, </div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>                         dispersion_relation,</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>                         flux_table,</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>                         atm_extinction,</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>                         chip,</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>                         debug_mode,</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>                         parameters,</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>                         PACCURACY,</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>                         efficiency, </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>                         blaze_efficiency),</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>            <span class="stringliteral">"Efficiency calculation failed"</span>);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>         </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_table(*efficiency, <span class="stringliteral">"Wave"</span>, <span class="stringliteral">"Eff"</span>,</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>                    <span class="stringliteral">"Detection Quantum Efficiency (%s chip)"</span>, </div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>                    <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip)), </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>            <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>         </div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>         <span class="comment">/* Save blaze function efficiency (efficiency at center of order) */</span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>         <span class="keywordflow">if</span> (debug_mode) <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"Blaze efficiency table"</span>,</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>                             <span class="stringliteral">"blaze_efficiency"</span>, </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>                             *blaze_efficiency, chip, -1, -1, rotated_header, NULL),</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>                   <span class="stringliteral">"Error saving blaze efficiency table"</span>);</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     }</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     {</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping response/efficiency computation"</span>);</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>     }</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>   cleanup:</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>     uves_free_propertylist(&rebinned_header);</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>     uves_free_image(&rebinned_noise);</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>     uves_free_image(&rebinned_spectrum);</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     uves_free_table(&cosmic_mask);</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     uves_free_table(&order_trace);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     uves_free_image(&merged_spectrum);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     uves_free_image(&merged_noise);</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     uves_free_image(&merged_sky);</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     uves_free_image(&reduced_rebinned);</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>     uves_free_image(&reduced_rebinned_noise);</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>     uves_free_image(&reduced_noise);</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     uves_free_image(&reduced_scaled);</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     uves_free_table(&catalogue_flux);</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> </div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>     {</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>         <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>         uves_free_image(reduced_spectrum);</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>         uves_free_image(background);</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>         uves_free_image(response_orders);</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>         uves_free_image(response_curve);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>         uves_free_propertylist(reduced_header);</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>         uves_free_propertylist(response_header);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>         uves_free_propertylist(response_header_2d);</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>         uves_free_table(efficiency);</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>     }</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> }</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> UVES_CONCAT2X(UVES_RESPONSE_ID,exe)(cpl_frameset *frames,</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>           <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> {</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> <span class="comment">     * Variables containg the values of recipe parameters </span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     <span class="comment">/* General */</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>     <span class="keywordtype">bool</span> debug_mode;</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> </div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>     <span class="comment">/* Background subtraction */</span></div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>     <span class="comment">/* Implicitly passed */</span></div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> </div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>     <span class="comment">/* Flat-fielding */</span></div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     <span class="comment">/* Extraction */</span></div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>     <span class="comment">/* Implicitly passed */</span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>     </div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>     <span class="comment">/* Rebinning */</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>     <span class="comment">/* Implicitly passed */</span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> </div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>     <span class="comment">/* Efficiency */</span></div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>     <span class="keywordtype">double</span> PACCURACY;</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> </div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>     <span class="comment">/* CPL objects */</span></div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>     <span class="comment">/* Input, raw */</span></div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>     cpl_image        *raw_image[2]      = {NULL, NULL};</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2]     = {NULL, NULL};</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> </div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     <span class="comment">/* Input, calib */</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     cpl_image        *master_bias        = NULL;</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_bias_header = NULL;</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     cpl_image        *master_dark        = NULL;</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_dark_header = NULL;</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>     cpl_image        *master_flat        = NULL;</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_flat_header = NULL;</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> </div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>     cpl_table        *ordertable       = NULL;</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *ordertable_header= NULL;</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>     <a class="code" href="struct__polynomial.html">polynomial</a>       *order_locations  = NULL;</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     cpl_table        *traces           = NULL;</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>     cpl_table        *flux_table       = NULL;</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     cpl_table        *atm_extinction   = NULL;</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> </div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>     <span class="comment">/* Line tables for sky, object, sky (UVES specific) */</span></div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>     <span class="keyword">const</span> cpl_table        *linetable[3]           = {NULL, NULL, NULL};</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>     <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *linetable_header[3]    = {NULL, NULL, NULL};</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>     <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a>       *dispersion_relation[3] = {NULL, NULL, NULL};</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> </div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>     cpl_image        *background         = NULL;</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>     cpl_image        *reduced_spectrum   = NULL;</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *spectrum_header    = NULL;</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>     cpl_image        *response_orders    = NULL;</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *response_header_2d = NULL;</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>     cpl_image        *response_curve     = NULL;</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *response_header    = NULL;</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     cpl_table        *efficiency         = NULL;</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>     cpl_table        *blaze_efficiency   = NULL;</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *efficiency_header  = NULL;</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     cpl_table* info_tbl=NULL;</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>     <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     cpl_table *qclog[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>     cpl_table *qclog_optext[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     cpl_table *catalogue_flux = NULL;</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *raw_filename = <span class="stringliteral">""</span>;        <span class="comment">/* Static */</span></div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *flux_table_filename = <span class="stringliteral">""</span>; <span class="comment">/* Static */</span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *atm_ext_filename = <span class="stringliteral">""</span>;    <span class="comment">/* Static */</span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     <span class="keywordtype">char</span> *product_filename = NULL;        <span class="comment">/* Dynamically allocated */</span></div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>     <span class="keywordtype">char</span> *prod_catg = NULL; </div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>     <span class="keywordtype">char</span> *ref_obj_name = NULL;            <span class="comment">/* Reference object id */</span></div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>     <span class="keywordtype">bool</span> calc_response = <span class="keyword">false</span>;           <span class="comment">/* Calculate instr response? */</span></div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>     <span class="keywordtype">double</span> extraction_slit;</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     <span class="keywordtype">bool</span> blue  = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>     <span class="keywordtype">int</span> binx = 0;</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>     <span class="keywordtype">int</span> biny = 0;</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span> </div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *ordertable_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *linetable_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *master_bias_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *master_dark_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *master_flat_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>     <span class="keywordtype">int</span> tracerow=0;                  <span class="comment">/* Index of table row */</span></div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>         </div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>     <span class="keywordtype">int</span> raw_index = 0;</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> </div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> </div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>     <span class="keywordtype">double</span> trace_offset=0;</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>     <span class="keywordtype">int</span> trace_number=0;</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>     <span class="keywordtype">int</span> trace_enabled=0;</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>     <span class="keywordtype">int</span> window=0;          <span class="comment">/* window number */</span></div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>     merge_method m_method;</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span> </div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>     <span class="comment">/* Read recipe parameters */</span></div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>     {</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>     <span class="comment">/* General */</span></div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"debug"</span>, </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                   CPL_TYPE_BOOL  , &debug_mode      ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"process_chip"</span>, CPL_TYPE_STRING, &PROCESS_CHIP),</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> </div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>     <span class="comment">/* Background subtraction, Flat-fielding, Rebinning */</span></div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>     <span class="comment">/* The input parameter list is passed */</span></div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>     </div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>     <span class="comment">/* For both response curve and efficiency step:</span></div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> <span class="comment">       Allow only extraction methods average/linear/optimal */</span></div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>     {</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>         extract_method em;</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>         <span class="comment">/* Validate uves_response.reduce.extract.method */</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( em = <a class="code" href="group__uves__extract.html#gaa6ae7afeaf5c4a71eb399ffa29a828f7" title="Read extraction method from parameter list.">uves_get_extract_method</a>(</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                parameters, NULL,</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                make_str(UVES_RESPONSE_ID) <span class="stringliteral">"."</span> UVES_REDUCE_ID <span class="stringliteral">"."</span> UVES_EXTRACT_ID),</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>            <span class="stringliteral">"Could not read extraction method"</span>);</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>         </div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>         assure( em == EXTRACT_LINEAR || em == EXTRACT_AVERAGE || em == EXTRACT_OPTIMAL,</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>             CPL_ERROR_UNSUPPORTED_MODE, </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>             <span class="stringliteral">"Use linear/average/optimal extraction method to calculate response curve"</span>);</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>         </div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>         <span class="comment">/* Validate uves_response.efficiency.reduce.extract.method */</span></div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( em = <a class="code" href="group__uves__extract.html#gaa6ae7afeaf5c4a71eb399ffa29a828f7" title="Read extraction method from parameter list.">uves_get_extract_method</a>(</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>                parameters, NULL,</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>                make_str(UVES_RESPONSE_ID) <span class="stringliteral">".efficiency."</span> UVES_REDUCE_ID <span class="stringliteral">"."</span> UVES_EXTRACT_ID),</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>            <span class="stringliteral">"Could not read extraction method"</span>);</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>         </div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>         assure( em == EXTRACT_LINEAR || em == EXTRACT_AVERAGE || em == EXTRACT_OPTIMAL,</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>             CPL_ERROR_UNSUPPORTED_MODE, </div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>             <span class="stringliteral">"Use linear/average/optimal extraction "</span></div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>             <span class="stringliteral">"method to calculate quantum efficiency"</span>);</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     }</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     </div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     <span class="comment">/* Identification */</span></div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                   make_str(UVES_RESPONSE_ID) <span class="stringliteral">".efficiency"</span>, <span class="stringliteral">"paccuracy"</span>, </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>                   CPL_TYPE_DOUBLE, &PACCURACY), </div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>            <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>     }</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>     </div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     <span class="comment">/* Load raw image and header, and identify input frame as red or blue */</span></div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_standard(frames,</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>                   &raw_filename, raw_image, raw_header, rotated_header, </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>                   &blue), </div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>        <span class="stringliteral">"Error loading raw frame"</span>);</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> </div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>     <span class="comment">/* Load flux table */</span></div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_flux_table(frames, &flux_table_filename, &flux_table),</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>        <span class="stringliteral">"Error loading standard flux table"</span>);</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using standard star flux table in '%s'"</span>, flux_table_filename);</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     <span class="comment">/* Before doing the reduction, find out if the standard star is in the table.</span></div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> <span class="comment">     * If not, still do the science reduction, but skip the instr.response part</span></div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     catalogue_flux = <a class="code" href="group__uves__response.html#ga9efc933848e1bebb4766a0d10a8e9c93" title="Match a star against a catalogue of stars.">uves_align</a>(raw_header[0], flux_table, PACCURACY, &ref_obj_name);</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     calc_response = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_INCOMPATIBLE_INPUT)</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>     {</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>         <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"No catalogue object found within %.2f arcsecs. "</span></div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>                  <span class="stringliteral">"Instrument response curve will not be computed"</span>,</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>                  PACCURACY);</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> </div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>         calc_response = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>     }</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span> </div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>     <span class="comment">/* Load atmospheric extinction table */</span></div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_atmo_ext(frames, &atm_ext_filename, &atm_extinction), </div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>        <span class="stringliteral">"Error loading extinction coefficients"</span>);</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>     </div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using atmospheric extinction table in '%s'"</span>, atm_ext_filename);</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> </div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>     <span class="comment">//cpl_parameterlist_dump(parameters,stdout);</span></div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>     <span class="comment">//uves_msg("recipe=%s",UVES_RESPONSE_ID);</span></div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( m_method = <a class="code" href="group__uves__merge.html#gaeef8fc529ffcfda1a562fd06c7540069" title="Read merging method from parameter list.">uves_get_merge_method</a>(parameters, <span class="stringliteral">"uves_cal_response"</span>, <span class="stringliteral">"reduce"</span>),</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>            <span class="stringliteral">"Could not get merging method"</span>);</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     <span class="comment">/* Adjust parameters according to binning </span></div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (binx = <a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(raw_header[0]), </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>        <span class="stringliteral">"Could not read x binning factor from input header"</span>);</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (biny = <a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(raw_header[0]),</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>        <span class="stringliteral">"Could not read y binning factor from input header"</span>);</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span> </div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     <span class="comment">/* Loop over one or two chips, over traces and</span></div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> <span class="comment">       over extraction windows */</span></div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue);</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>      chip != UVES_CHIP_INVALID;</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>      chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>     {</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span> </div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDU"</span>) == 0) {</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>       }</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span> </div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span> </div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>         <span class="comment">/* const char *drs_filename        = "";    not used */</span></div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>         raw_index = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing %s chip in '%s'"</span>,</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>              <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip), raw_filename);</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>         </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( chip_name = <a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e" title="Find out the chip ID.">uves_pfits_get_chipid</a>(raw_header[raw_index], chip));</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Binning = %dx%d"</span>, binx, biny);</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>         </div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>         <span class="comment">/* Load master bias, set pointer to NULL if not present */</span></div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>         uves_free_image(&master_bias);</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>         uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>         <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_MASTER_BIAS(chip)) != NULL)</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>         {</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mbias(frames, chip_name, </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>                        &master_bias_filename,</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>                        &master_bias,</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>                        &master_bias_header, chip), </div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>                <span class="stringliteral">"Error loading master bias"</span>);</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>             </div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master bias in '%s'"</span>, master_bias_filename);</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>         }</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>         {</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No master bias in SOF. Bias subtraction not done"</span>);</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>         }</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>         </div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>         </div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>         <span class="comment">/* Load master dark, set pointer to NULL if not present */</span></div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>         uves_free_image(&master_dark);</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>         uves_free_propertylist(&master_dark_header);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>         <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_MASTER_DARK(chip)) != NULL)</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>         {</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mdark(frames, chip_name,</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>                        &master_dark_filename,</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>                        &master_dark,</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>                        &master_dark_header, chip),</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>                <span class="stringliteral">"Error loading master dark"</span>);</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>             </div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master dark in '%s'"</span>, master_dark_filename);</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>         }</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>         {</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>             <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"No master dark in SOF. Dark subtraction not done"</span>);</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>         }</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>         </div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>         <span class="comment">/* Load master flat */</span></div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>         uves_free_image(&master_flat);</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>         uves_free_propertylist(&master_flat_header);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mflat_const(frames, chip_name, </div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>                      &master_flat_filename,</div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>                      &master_flat, </div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>                      &master_flat_header, </div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>                      chip, NULL), <span class="stringliteral">"Error loading master flat"</span>);</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>         </div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>         <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master flat in '%s'"</span>, master_flat_filename);</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>         </div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>         </div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>         <span class="comment">/* Load the order table for this chip */</span></div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>         uves_free_table       (&ordertable);</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>         uves_free_propertylist(&ordertable_header);</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>         uves_free_table       (&traces);</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>     </div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_ordertable(frames, </div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>                     <span class="keyword">false</span>,  <span class="comment">/* FLAMES? */</span></div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>                     chip_name,</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>                     &ordertable_filename, </div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>                     &ordertable, </div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>                     &ordertable_header,</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>                                         NULL,</div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>                     &order_locations, &traces, </div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>                     NULL, NULL,</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>                                        NULL, NULL, <span class="comment">/* fibre_pos,fibre_mask */</span></div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>                     chip, <span class="keyword">false</span>),</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>            <span class="stringliteral">"Could not load order table"</span>);</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>         <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using order table in '%s'"</span>, ordertable_filename);</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>         </div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>         </div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>         <span class="comment">/* Loop over all traces (1 trace for UVES) */</span></div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>         <span class="keywordflow">for</span>(tracerow = 0; tracerow < cpl_table_get_nrow(traces); tracerow++)</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>         {</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span> </div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>             </div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>             trace_offset  = cpl_table_get_double(traces, <span class="stringliteral">"Offset"</span>    , tracerow, NULL);</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>             trace_number  = cpl_table_get_int   (traces, <span class="stringliteral">"TraceID"</span>   , tracerow, NULL);</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>             trace_enabled = cpl_table_get_int   (traces, <span class="stringliteral">"Tracemask"</span> , tracerow, NULL);</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>             </div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>             <span class="keywordflow">if</span> (trace_enabled != 0)</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>             {</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>                 </div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>                             <span class="keywordflow">if</span> (cpl_table_get_nrow(traces) > 1) {</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>                                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing trace %d"</span>, trace_number);</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>                             }</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>                 </div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>                 <span class="comment">/* This is UVES specific. Load linetable for the </span></div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> <span class="comment">                   two sky windows (number 1, 3) and for the object</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> <span class="comment">                   window (number 2) */</span></div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>                 </div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>                 <span class="keywordflow">for</span> (window = 1; window <= 3; window ++)</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>                 {</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>                     uves_free_table_const ( &(linetable[window-1]) );</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>                     uves_free_propertylist_const( &(linetable_header[window-1]) );</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>                     <a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd" title="Delete a const polynomial.">uves_polynomial_delete_const</a>( &(dispersion_relation[window-1]) );</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_linetable_const(</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>                            frames, </div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>                            <span class="keyword">false</span>,  <span class="comment">/* FLAMES? */</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>                            chip_name,</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>                            order_locations,</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>                            cpl_table_get_column_min(ordertable, <span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>                            cpl_table_get_column_max(ordertable, <span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>                            &linetable_filename,</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>                            &(linetable          [window-1]),</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>                            &(linetable_header   [window-1]),</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>                            &(dispersion_relation[window-1]),</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>                            NULL,</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>                            chip,</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>                            trace_number,</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>                            window),</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>                        <span class="stringliteral">"Could not load line table, window #%d"</span>, window);</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>                 }</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>                 </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>                 <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using line tables in '%s'"</span>, linetable_filename);</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>                 <span class="comment">/* end, UVES specific */</span></div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>                 </div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>                 <span class="comment">/* Do the reduction + response calculation */</span></div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>                 cpl_free(ref_obj_name); ref_obj_name = NULL;</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>                 uves_free_image(&reduced_spectrum);</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>                 uves_free_image(&background);</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>                 uves_free_image(&response_orders);</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>                 uves_free_image(&response_curve);</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>                 uves_free_propertylist(&response_header);</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>                 uves_free_propertylist(&spectrum_header);</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>                 uves_free_propertylist(&response_header_2d);</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>                 uves_free_table(&efficiency);</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>                 uves_free_table(&blaze_efficiency);</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>                 uves_free_table(&info_tbl);</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>                 </div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_response_process_chip(</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>                        raw_image[raw_index],   <span class="comment">/* Raw         */</span></div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>                                        raw_header[raw_index],  </div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>                        rotated_header[raw_index],</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>                        master_bias,            <span class="comment">/* Calibration */</span></div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>                        master_dark, </div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>                                        master_dark_header,</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>                        master_flat, </div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>                                        master_flat_header,</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>                        ordertable, </div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>                                        order_locations,</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>                        linetable, </div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>                                        linetable_header, </div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>                                        dispersion_relation,</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>                        flux_table,</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                        atm_extinction,</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>                        chip,                  <span class="comment">/* Parameters  */</span></div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>                        debug_mode, </div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>                        parameters,</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>                        calc_response,</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>                        PACCURACY,             <span class="comment">/* Identification */</span></div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>                        &ref_obj_name,</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>                        &reduced_spectrum, </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>                                        &spectrum_header, </div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>                                        &background,</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>                        &response_orders, </div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>                                        &response_header_2d,</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>                        &response_curve,  </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>                                        &response_header,</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>                        &efficiency, </div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                                        &blaze_efficiency,</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>                                        &info_tbl,</div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>                        &extraction_slit),</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                    <span class="stringliteral">"Response computation failed"</span>);</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                 </div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Saving products..."</span>);</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                 </div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                 <span class="comment">/* Calculate QC (two tables) */</span></div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>                 </div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>                 <span class="keywordflow">if</span> (calc_response)</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>                 {</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>                     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>                     qclog[0] = <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(raw_header[raw_index], chip);</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> </div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_efficiency_qclog(blaze_efficiency,</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>                                  raw_header[raw_index],</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>                                  chip,</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>                                  qclog[0],</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                                  ref_obj_name), </div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                        <span class="stringliteral">"Error generating efficiency QC log"</span>);</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                 }</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>                 </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                 <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog_optext[0]);</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                         qclog_optext[0] = cpl_table_new(0);</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                 <span class="comment">/* Do not:  </span></div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span> <span class="comment">                   qclog_optext[0] = uves_qclog_init(raw_header[raw_index], chip);</span></div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> <span class="comment">                   because we don't want QC.DID for this</span></div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>                 cpl_table_new_column(qclog_optext[0],<span class="stringliteral">"key_name"</span>, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>                 cpl_table_new_column(qclog_optext[0],<span class="stringliteral">"key_type"</span>, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>                 cpl_table_new_column(qclog_optext[0],<span class="stringliteral">"key_value"</span>,CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>                 cpl_table_new_column(qclog_optext[0],<span class="stringliteral">"key_help"</span>, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>                 </div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__qclog.html#gaf6a3fc6cf06a17550bd0320603287ace" title="Write QC parameters related to science reduction.">uves_qclog_add_sci</a>(qclog_optext[0],</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>                               raw_header[raw_index],</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>                               raw_image[raw_index],</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                               extraction_slit,</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                               info_tbl),</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>                    <span class="stringliteral">"Error generating extraction QC log"</span>);</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span> </div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>                 <span class="keywordflow">if</span> (calc_response)</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>                 {</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>                     <span class="comment">/* Save response curve */</span></div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>                     cpl_free(product_filename);</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = uves_response_curve_filename(chip),</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>                        <span class="stringliteral">"Error getting filename"</span>);    </div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>                            frames,</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>                            response_curve,</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>                            CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>                            CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                            CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>                            product_filename,</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>                            UVES_INSTR_RESPONSE(chip),</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>                            raw_header[raw_index],</div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>                            response_header,</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>                            NULL,</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>                            parameters,</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>                            make_str(UVES_RESPONSE_ID),</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>                            PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION, </div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>                            qclog_optext,</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>                            starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>                            UVES_ALL_STATS),</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>                        <span class="stringliteral">"Could not add response curve '%s' (%s) to frameset"</span>, </div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>                        product_filename, UVES_INSTR_RESPONSE(chip));</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>                     </div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Response curve '%s' (%s) added to frameset"</span>,</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>                          product_filename, UVES_INSTR_RESPONSE(chip));</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>                     </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>                     <span class="comment">/* Save response curve (2d) */</span></div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>                     cpl_free(product_filename);</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>                        uves_response_curve_2d_filename(chip), </div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>                        <span class="stringliteral">"Error getting filename"</span>);    </div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>                            frames,</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>                            response_orders,</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>                            CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>                            CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>                            CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>                            product_filename,</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>                            UVES_WCALIB_FF_RESPONSE(chip),</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>                            raw_header[raw_index],</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>                            response_header_2d,</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>                            NULL,</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>                            parameters,</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>                            make_str(UVES_RESPONSE_ID),</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>                            PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>                            qclog_optext,</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>                            starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>                            UVES_ALL_STATS),</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>                        <span class="stringliteral">"Could not add response curve (2d) "</span></div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>                        <span class="stringliteral">"'%s' (%s) to frameset"</span>,</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>                        product_filename, UVES_WCALIB_FF_RESPONSE(chip));</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>             </div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Response curve (2d) '%s' (%s) added to frameset"</span>, </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>                          product_filename, UVES_WCALIB_FF_RESPONSE(chip));</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>                 }</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span> </div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>                 <span class="comment">/* Save reduced spectrum */</span></div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>                 cpl_free(product_filename);</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>                 <span class="keywordflow">if</span> (m_method == MERGE_NOAPPEND) {</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>                <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = uves_response_red_noappend_standard_filename(chip),</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>                    <span class="stringliteral">"Error getting filename"</span>);    </div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>                    prod_catg=UVES_RED_NOAPPEND_STD(chip);</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>                 } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span> </div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = uves_response_red_standard_filename(chip),</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>                    <span class="stringliteral">"Error getting filename"</span>);    </div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>                    prod_catg=UVES_RED_STD(chip);</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> </div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>                 }</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>                             reduced_spectrum,</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>                             CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                             CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>                             CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>                             product_filename,</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>                             prod_catg,</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                             raw_header[raw_index],</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                             spectrum_header,</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>                             NULL,</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>                             parameters,</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>                             make_str(UVES_RESPONSE_ID),</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>                             PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>                             qclog_optext,</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>                             starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>                             UVES_ALL_STATS),</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>                    <span class="stringliteral">"Could not add reduced spectrum '%s' (%s) to frameset"</span>,</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>                    product_filename, UVES_RED_STD(chip));</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>                 </div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Reduced spectrum '%s' (%s) added to frameset"</span>, </div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>                      product_filename, UVES_RED_STD(chip));</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> </div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>                 <span class="keywordflow">if</span> (calc_response)</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>                 {</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>                     <span class="comment">/* Save efficiency table */</span></div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>                     uves_free_propertylist(&efficiency_header);</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>                     efficiency_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>                     </div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>                     cpl_free(product_filename);</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>                        uves_response_efficiency_filename(chip),</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>                        <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>                     </div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>                            frames,</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>                            efficiency,</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                            CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>                            CPL_FRAME_TYPE_TABLE,</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                            CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>                            product_filename,</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>                            UVES_EFFICIENCY_TABLE(chip),</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>                            raw_header[raw_index],</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>                            efficiency_header,</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>                            NULL,</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>                            parameters,</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>                            make_str(UVES_RESPONSE_ID),</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>                            PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>                            qclog,</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>                            starttime, <span class="keyword">true</span>, 0),</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>                        <span class="stringliteral">"Could not add background image '%s' (%s) to frameset"</span>,</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>                        product_filename, UVES_EFFICIENCY_TABLE(chip));</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>                     </div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Efficiency table '%s' (%s) added to frameset"</span>, </div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>                          product_filename, UVES_EFFICIENCY_TABLE(chip));</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>                 } <span class="comment">/* end if calc_response */</span></div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>                 </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>                 <span class="comment">/* Save background image */</span></div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>                 cpl_free(product_filename);</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>                    uves_response_bkg_standard_filename(chip), </div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>                    <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>                             background,</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>                             CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>                             CPL_FRAME_TYPE_IMAGE,</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>                             CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>                             product_filename,</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>                             UVES_BKG_STD(chip),</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>                             raw_header[raw_index],</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>                             rotated_header[raw_index],</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>                             NULL,</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>                             parameters,</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>                             make_str(UVES_RESPONSE_ID),</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>                             PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION, NULL,</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>                             starttime, <span class="keyword">false</span>, </div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>                             CPL_STATS_MIN | CPL_STATS_MAX),</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>                    <span class="stringliteral">"Could not add background image '%s' (%s) to frameset"</span>,</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>                    product_filename, UVES_BKG_STD(chip));</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span> </div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Background image '%s' (%s) added to frameset"</span>,</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>                      product_filename, UVES_BKG_STD(chip));</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>                 </div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span> </div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>                 <span class="comment">/* Save info table */</span></div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>                cpl_free(product_filename);</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = </div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>                    uves_order_extract_qc_standard_filename(chip), </div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>                    <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(frames,</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>                             info_tbl,</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>                             CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>                             CPL_FRAME_TYPE_TABLE,</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>                             CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>                             product_filename,</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>                             UVES_ORDER_EXTRACT_QC(chip),</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>                             raw_header[raw_index],</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>                             rotated_header[raw_index],</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>                             NULL,</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>                             parameters,</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>                             make_str(UVES_RESPONSE_ID),</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>                             PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION, NULL,</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>                             starttime, <span class="keyword">true</span>, </div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>                             0),</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>                    <span class="stringliteral">"Could not add extraction quality table '%s' (%s) to frameset"</span>,</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>                    product_filename, UVES_ORDER_EXTRACT_QC(chip));</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span> </div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Extraction quality table '%s' (%s) added to frameset"</span>,</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>                      product_filename, UVES_ORDER_EXTRACT_QC(chip));</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>                 </div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> </div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> </div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>             }<span class="comment">/* ... if trace is enabled */</span></div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>             {</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>                 <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Skipping trace number %d"</span>, trace_number);</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>             }</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>         </div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>         }<span class="comment">/* For each trace */</span></div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>     </div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span> </div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDL"</span>) == 0) {</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>       }</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span> </div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span> </div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span> </div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> </div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>     } <span class="comment">/* For each chip */</span></div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>     </div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>   cleanup:</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>     <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>     uves_free_image(&raw_image[0]);</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>     uves_free_image(&raw_image[1]);</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>     uves_free_propertylist(&raw_header[0]);</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>     uves_free_propertylist(&raw_header[1]);</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>     uves_free_propertylist(&rotated_header[0]);</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>     uves_free_propertylist(&rotated_header[1]);</div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>     </div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>     <span class="comment">/* Input, calib */</span></div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>     uves_free_image(&master_bias);</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>     uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>     </div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>     uves_free_image(&master_dark);</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>     uves_free_propertylist(&master_dark_header);</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>     uves_free_image(&master_flat);</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>     uves_free_propertylist(&master_flat_header);</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>     </div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>     uves_free_table(&ordertable);</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>     uves_free_propertylist(&ordertable_header);</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>     uves_free_table(&traces);</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>     </div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>     uves_free_table_const( &(linetable[0]) );</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>     uves_free_table_const( &(linetable[1]) );</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>     uves_free_table_const( &(linetable[2]) );</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>     uves_free_propertylist_const( &(linetable_header[0]) );</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>     uves_free_propertylist_const( &(linetable_header[1]) );</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>     uves_free_propertylist_const( &(linetable_header[2]) );</div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>     <a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd" title="Delete a const polynomial.">uves_polynomial_delete_const</a>( &(dispersion_relation[0]) );</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>     <a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd" title="Delete a const polynomial.">uves_polynomial_delete_const</a>( &(dispersion_relation[1]) );</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>     <a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd" title="Delete a const polynomial.">uves_polynomial_delete_const</a>( &(dispersion_relation[2]) );</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>     uves_free_table( &flux_table );</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>     uves_free_table( &atm_extinction );</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>     </div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog_optext[0]);</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>     uves_free_image(&background);</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>     uves_free_image(&reduced_spectrum);</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>     uves_free_propertylist(&spectrum_header);</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>     uves_free_propertylist(&response_header_2d);</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>     uves_free_propertylist(&response_header);</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>     uves_free_propertylist(&efficiency_header);</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>     uves_free_image(&response_orders);</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>     uves_free_image(&response_curve);</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>     uves_free_table(&efficiency);</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>     uves_free_table(&blaze_efficiency);</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>     uves_free_table(&info_tbl);</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>     </div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>     <span class="comment">/* Local */</span></div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>     uves_free_table(&catalogue_flux);    </div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>     cpl_free(product_filename);</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>     cpl_free(ref_obj_name);</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>     </div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span> }</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span> </div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_efficiency_qclog(cpl_table* table,</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>                   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* raw_header, </div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>                   <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>                   cpl_table* qclog,</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *ref_obj_name)</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span> {</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>   <span class="keywordtype">bool</span> new_format;</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>   </div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( new_format = <a class="code" href="group__uves__pfits.html#ga115883e477eed165595a0843010ec45f" title="Find out FITS header format.">uves_format_is_new</a>(raw_header),</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>      <span class="stringliteral">"Error determining FITS header format"</span>);</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> </div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>                         <span class="stringliteral">"QC TEST1 ID"</span>,</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>                         <span class="stringliteral">"Efficiency-Test-Results"</span>,</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>                         <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>                     <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span> </div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>                         <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_INSPATH,<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>                          <a class="code" href="group__uves__pfits.html#gaeefa3dc2dbf45776accef00f67b7002f" title="find out the chip name value">uves_pfits_get_inspath</a>(raw_header),</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>                         <span class="stringliteral">"Optical path used."</span>,</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>                    <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> </div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>                         <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_INSMODE,<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>                          <a class="code" href="group__uves__pfits.html#gaa56bfa63f004c7046a5a5242312a792f" title="find out the chip name value">uves_pfits_get_insmode</a>(raw_header),</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>                         <span class="stringliteral">"Instrument mode used."</span>,</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>                    <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span> </div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>                     <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_GRATNAME(chip),<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>                     <a class="code" href="group__uves__pfits.html#ga58d2d231e9bcf59d84ce42cf527b2071" title="find out the grating name value">uves_pfits_get_gratname</a>(raw_header,chip),</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>                     <span class="stringliteral">"Cross disperser ID"</span>,</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>                     <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> </div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga66d1b116b78a6302ce5a2bb2d00c5d41" title="Write common QC parameters.">uves_qclog_add_common_wave</a>(raw_header,</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>                                          chip, qclog));</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> </div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>       <a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>                 <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_CHIP_NAME(chip),<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>                 <span class="comment">/* UVES_QC_CHIP_VAL(chip), */</span></div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>                 <a class="code" href="group__uves__pfits.html#ga764b711e645e416c5be3882765baa14e" title="Find out the chip name.">uves_pfits_get_chip_name</a>(raw_header, chip),</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>                 <span class="stringliteral">"Detector chip name"</span>,</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>                 <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>   </div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>       <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>                 <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_GRATWLEN(chip),<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>                 <a class="code" href="group__uves__pfits.html#ga05a41349a41189d1bae7fd0faa932abd" title="find out the central wavelength">uves_pfits_get_gratwlen</a>(raw_header,chip),</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>                 <span class="stringliteral">"Grating central wavelength [nm] (hs)."</span>,</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>                 <span class="stringliteral">"%.1f"</span>));</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>   </div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>       <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>                 <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_CONAD(new_format, chip),<span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>                 <a class="code" href="group__uves__pfits.html#gab40bd41082796c15947b75ceddbbbd5c" title="Find out the conad.">uves_pfits_get_conad</a>(raw_header, chip),</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>                 <span class="stringliteral">"Conversion from ADUs to electrons"</span>,</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>                 <span class="stringliteral">"%8.2f"</span>));</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>   </div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>  </div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>       <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>                 <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_QC_UIT(new_format, chip), <span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>                 <a class="code" href="group__uves__pfits.html#ga94a0f9aec24d8d9ce2a936a1cd7985dd" title="Find out the user integration time.">uves_pfits_get_uit</a>(raw_header),</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>                 <span class="stringliteral">"user defined subintegration time"</span>,</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>                 <span class="stringliteral">"%8.0f"</span>));</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>   </div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>       <a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>                 <span class="stringliteral">"AIRMASS"</span>,</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>                 (<a class="code" href="group__uves__pfits.html#ga36f17263450ba556317388c15905bc7e" title="Find out the start airmass.">uves_pfits_get_airmass_start</a>(raw_header) +</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>                  <a class="code" href="group__uves__pfits.html#ga2aba19c10f2f21a717691bd4b148f669" title="Find out the end airmass.">uves_pfits_get_airmass_end</a>(raw_header))/2.0,</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>                 <span class="stringliteral">"Averaged airmass"</span>,</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>                 <span class="stringliteral">"%8.4f"</span>));</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span> </div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>       <a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>                 <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(UVES_TARG_NAME, <span class="stringliteral">"ESO "</span>),</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>                 ref_obj_name,</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>                 <span class="stringliteral">"OB target name"</span>,</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>                 <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>   </div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>  </div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>   <span class="keywordflow">for</span>(i = 0; i < cpl_table_get_nrow(table); i++) </div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>       {</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>       <span class="keywordtype">char</span> key_name[25];</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span> </div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>       <span class="keywordtype">int</span> order = cpl_table_get_int(table, <span class="stringliteral">"Order"</span>, i, NULL);</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span> </div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>       sprintf(key_name,<span class="stringliteral">"QC BLAZEFF%d"</span>, order);</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span> </div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>                         key_name,</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>                         cpl_table_get_double(table, <span class="stringliteral">"Eff"</span>, i, NULL),</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>                         <span class="stringliteral">"Blaze Efficiency"</span>,</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>                         <span class="stringliteral">"%13.6f"</span>));</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>       <span class="comment">/*</span></div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span> <span class="comment">        uves_msg("QC-LOG: Wlen =%g Eff=%g", </span></div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span> <span class="comment">        cpl_table_get_double(table,"Wave",i,NULL),</span></div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> <span class="comment">        cpl_table_get_double(table,"Eff",i,NULL));</span></div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span> <span class="comment">      */</span></div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> </div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>       sprintf(key_name,<span class="stringliteral">"QC BLAZWLEN%d"</span>, order);</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>                         key_name,</div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>                         cpl_table_get_double(table, <span class="stringliteral">"Wave"</span>, i, NULL)/10.,</div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>                         <span class="stringliteral">"Blaze wavelength"</span>,  <span class="comment">/* nm */</span></div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>                         <span class="stringliteral">"%13.6f"</span>));</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>       }</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span> </div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>   <span class="comment">/* Are these QC parameters needed anywhere? */</span></div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span> <span class="preprocessor"></span>  <span class="keywordflow">for</span>(i = 0; i < cpl_table_get_nrow(info_tbl); i++) </div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>       {</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>       <span class="keywordtype">char</span> key_name[25];</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span> </div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>       <span class="keywordtype">int</span> order = cpl_table_get_int(info_tbl, <span class="stringliteral">"Order"</span>, i, NULL);</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span> </div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>       sprintf(key_name,<span class="stringliteral">"QC ORDER NUM%d"</span>, order);</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>                      key_name,</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>                      order,</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>                      <span class="stringliteral">"Order Number"</span>,</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>                      <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>       <span class="comment">/*</span></div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span> <span class="comment">        uves_msg("QC-LOG: Order =%d S/N=%g", </span></div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> <span class="comment">        cpl_table_get_int(info_tbl,"Order",i,NULL),</span></div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span> <span class="comment">        cpl_table_get_double(info_tbl,"S/N",i,NULL));</span></div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span> <span class="comment">      */</span></div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span> </div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>       sprintf(key_name,<span class="stringliteral">"QC OBJ SN%d"</span>, order);</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>                         key_name,</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>                         cpl_table_get_double(info_tbl,<span class="stringliteral">"S/N"</span>,i,NULL),</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>                         <span class="stringliteral">"Order S/N"</span>,</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>                         <span class="stringliteral">"%f13.6"</span>));</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>       }</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>  cleanup:</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span> }</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__response__utils_8c_source.html b/html/uves__response__utils_8c_source.html
deleted file mode 100644
index 4f45867..0000000
--- a/html/uves__response__utils_8c_source.html
+++ /dev/null
@@ -1,423 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_response_utils.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_response_utils.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-03-02 16:38:14 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.19 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.18  2011/12/08 14:02:17  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Fix warnings with CPL6</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.17  2010/09/24 09:32:07  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.15  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.14  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.13  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.12  2007/04/10 07:09:48  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Changed interface of uves_spline_hermite()</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.11  2006/11/15 15:02:15  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.9  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Revision 1.8  2006/11/07 14:04:45  jmlarsen</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> * Fixed memory error by setting pointer to NULL after cpl_free</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Revision 1.7  2006/11/06 15:19:42  jmlarsen</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Revision 1.6  2006/11/03 15:01:21  jmlarsen</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> * Killed UVES 3d table module and use CPL 3d tables</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Revision 1.5  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Revision 1.4  2006/08/17 09:20:43  jmlarsen</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * Get reference object ID from flux table, not raw header</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.3  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Revision 1.2  2006/03/24 13:56:13  jmlarsen</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * Changed ambigous text message</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Revision 1.1  2006/02/03 07:51:04  jmlarsen</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Revision 1.2  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Revision 1.1  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor">#include <uves_response_utils.h></span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">                            Defines</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> cpl_image *</div>
-<div class="line"><a name="l00140"></a><span class="lineno"><a class="code" href="group__uves__response.html#ga0e3832a791528896648761e02fac2b9c">  140</a></span> <a class="code" href="group__uves__response.html#ga0e3832a791528896648761e02fac2b9c" title="Calculate response.">uves_calculate_response</a>(<span class="keyword">const</span> cpl_image *spectrum, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *spectrum_head [...]
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>             <span class="keyword">const</span> cpl_table *flux_table,</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>             <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>             <span class="keywordtype">double</span> PACCURACY,</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>             <span class="keywordtype">bool</span> inverse,</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>             <span class="keywordtype">char</span> **ref_obj_id)</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> {</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     cpl_image *response = NULL;             <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     cpl_table *catalogue_flux = NULL;</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     <span class="keywordtype">int</span> nx, norders;</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     nx      = cpl_image_get_size_x(spectrum);</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     norders = cpl_image_get_size_y(spectrum);</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>     </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     response = cpl_image_new(nx, norders, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( catalogue_flux = <a class="code" href="group__uves__response.html#ga9efc933848e1bebb4766a0d10a8e9c93" title="Match a star against a catalogue of stars.">uves_align</a>(raw_header, flux_table, PACCURACY, ref_obj_id),</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>        <span class="stringliteral">"Cannot read catalogue flux"</span>);</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <span class="comment">/* Correct for atmospheric extinction, and calculate response */</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     {</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keywordtype">double</span> dlambda;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     </div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dlambda = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(spectrum_header),</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>            <span class="stringliteral">"Error reading bin width from header"</span>);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>     </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <span class="keywordflow">for</span> (order = 1; order <= norders; order++)</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>         {</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>         <span class="keywordtype">double</span> lambda_start;</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>         <span class="keywordtype">int</span> x;</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>         </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>         <span class="comment">/* If spectrum was already merged, then read cdelt1,</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment">         * otherwise read wstart for each order</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>         <span class="keywordflow">if</span> (norders == 1)</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>             {</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_start = <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(spectrum_header),</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>                    <span class="stringliteral">"Error reading start wavelength from header"</span>);    </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>             }</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>             {</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_start = <a class="code" href="group__uves__pfits.html#gaa8f810cc3210842daea835201a6a5203" title="Read the wstart keyword.">uves_pfits_get_wstart</a>(spectrum_header, order),</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>                    <span class="stringliteral">"Error reading start wavelength from header"</span>);    </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>             }</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>         </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>         <span class="keywordflow">for</span> (x = 1; x <= nx; x++)</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>             {</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>             <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>             <span class="keywordtype">double</span> lambda;            </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>             <span class="keywordtype">double</span> flux, std_flux, resp;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>                         <span class="keywordtype">int</span> istart = 0;</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>             lambda = lambda_start + (x-1) * dlambda;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>             </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( flux = cpl_image_get(spectrum, x, order, &pis_rejected),</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>                    <span class="stringliteral">"Error reading flux"</span>);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>             </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>             <span class="keywordflow">if</span> (!pis_rejected)</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>                 {</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>                 <span class="comment">/* Get interpolated catalogue flux */</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( std_flux = <a class="code" href="group__uves__utils.html#ga182ae551020b196be2e177c09f16b220" title="Spline interpolation based on Hermite polynomials.">uves_spline_hermite_table</a>(</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>                        lambda, catalogue_flux,</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>                        <span class="stringliteral">"LAMBDA"</span>, <span class="stringliteral">"F_LAMBDA"</span>, &istart),</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>                        <span class="stringliteral">"Error interpolating catalogue flux"</span>);</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>                 </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>                 <span class="keywordflow">if</span> (inverse)</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>                     {</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>                     resp = (flux == 0) ? 0 : std_flux / flux;</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>                     }</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>                     {</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>                     resp = (std_flux == 0) ? 0 : flux / std_flux;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>                     }</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>                 </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(response, x, order, resp),</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>                        <span class="stringliteral">"Error writing response image"</span>);</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                 }</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>                 {</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>                 cpl_image_reject(response, x, order);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>                 }</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>             }</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>         }</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     }</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>   cleanup:</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     uves_free_table(&catalogue_flux);</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     {</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>         uves_free_image(&response);</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     }</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     <span class="keywordflow">return</span> response;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> }</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> cpl_table *</div>
-<div class="line"><a name="l00257"></a><span class="lineno"><a class="code" href="group__uves__response.html#ga9efc933848e1bebb4766a0d10a8e9c93">  257</a></span> <a class="code" href="group__uves__response.html#ga9efc933848e1bebb4766a0d10a8e9c93" title="Match a star against a catalogue of stars.">uves_align</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *object_header, <span class="keyword">const</span> cpl_table [...]
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>        <span class="keywordtype">double</span> accuracy,</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>        <span class="keywordtype">char</span> **ref_name_dynamic)</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> {</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     <span class="keywordtype">double</span> obj_ra, obj_dec;  <span class="comment">/* Object position in degrees    */</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     <span class="keywordtype">int</span> nident = 0;          <span class="comment">/* Number of identifications     */</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     <span class="keywordtype">int</span> match_row = 0;       <span class="comment">/* Catalogue row number of match */</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     <span class="keywordtype">double</span> min_dist = 0;     <span class="comment">/* Accuracy of match             */</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     <span class="keywordtype">double</span> std_ra = 0, std_dec = 0;    <span class="comment">/* Catalogue position  */</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *ref_type = NULL;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     cpl_table *result = NULL;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( ref_name_dynamic != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     *ref_name_dynamic = NULL;</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( obj_ra  = <a class="code" href="group__uves__pfits.html#ga2f4307d12086db9c739fe3df79931a10" title="Find out the right ascension.">uves_pfits_get_ra</a> (object_header), <span class="stringliteral">"Could not read right ascension"</span>);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( obj_dec = <a class="code" href="group__uves__pfits.html#gabee157c267487c9edc9b7f478f781173" title="Find out the declination.">uves_pfits_get_dec</a>(object_header), <span class="stringliteral">"Could not read declination"</span>);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Object RA, DEC = (%e, %e)"</span>, obj_ra, obj_dec);</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     nident = 0;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(flux_table); i++)</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     {</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>         <span class="keywordtype">double</span> ref_ra, ref_dec;</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>         <span class="keywordtype">double</span> dist;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ref_ra  = cpl_table_get_double(flux_table, <span class="stringliteral">"RA_DEG"</span>, i, NULL),</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>            <span class="stringliteral">"Could not read catalogue star right ascension"</span>);</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ref_dec = cpl_table_get_double(flux_table, <span class="stringliteral">"DEC_DEG"</span>, i, NULL),</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>            <span class="stringliteral">"Could not read catalogue star declination"</span>);</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>         <span class="comment">/* Calculate angular separation in arcsecs</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment">         * cos(sep) = sin(d1)sin(d2) + cos(d1)cos(d2)cos(ra1-ra2) </span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment">         * All input angles are in degrees.</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>         </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>         dist = </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>         SIN_DEG(obj_dec)*SIN_DEG(ref_dec) + </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>         COS_DEG(obj_dec)*COS_DEG(ref_dec)*COS_DEG(obj_ra - ref_ra);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>         </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>         dist = uves_max_double(dist, -1);</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>         dist = uves_min_double(dist,  1);</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>         </div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>         dist = ACOS_DEG(dist) * 3600;</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Angular separation = %f arcseconds"</span>, dist);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>         <span class="comment">/* Keep track of best match also if it is not within the pointing accuracy */</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>         <span class="keywordflow">if</span> (i == 0 || dist < min_dist)</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>         {</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>             min_dist = dist;</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>             std_ra = ref_ra;</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>             std_dec = ref_dec;</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>         }</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>         <span class="comment">/* Does it match? */</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>         <span class="keywordflow">if</span> (dist < accuracy)</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>         {</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>             nident += 1;</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>             match_row = i;        </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>             min_dist = dist;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>             std_ra = ref_ra;</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>             std_dec = ref_dec;            </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>         }</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     }</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     assure( nident >= 1, CPL_ERROR_INCOMPATIBLE_INPUT, </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>         <span class="stringliteral">"No catalogue object within %f arcsecs. "</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>         <span class="stringliteral">"Nearest object is %f arcsecs away at (RA, DEC) = (%f, %f)"</span>, </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>         accuracy, min_dist, std_ra, std_dec);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     assure( nident <= 1, CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>         <span class="stringliteral">"%d matching catalogue objects found. Confused. "</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>         <span class="stringliteral">"Decrease pointing accuracy (currently %f arcsecs) to get fewer matches"</span>, </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         nident, accuracy);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *ref_name_dynamic = cpl_strdup(</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>            cpl_table_get_string(flux_table, <span class="stringliteral">"OBJECT"</span>, match_row)),</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>        <span class="stringliteral">"Could not read reference object name"</span>);</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ref_type = cpl_table_get_string(flux_table, <span class="stringliteral">"TYPE"</span>, match_row),</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>        <span class="stringliteral">"Could not read reference object type"</span>);</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Object ID is '%s', type = '%s'. Residual between header/catalogue = %f arcsecs"</span>,</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>          *ref_name_dynamic, ref_type, min_dist);</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     </div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     <span class="comment">/* Create (2d) flux table from catalogue table row number 'match_row' */</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     {</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *columns[3] = {<span class="stringliteral">"LAMBDA"</span>, <span class="stringliteral">"BIN_WIDTH"</span>, <span class="stringliteral">"F_LAMBDA"</span>};</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     <span class="keywordtype">int</span> ndata;                      <span class="comment">/* Number of elements in column */</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ndata = cpl_table_get_int(flux_table, <span class="stringliteral">"NDATA"</span>, match_row, NULL),</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>            <span class="stringliteral">"Error reading length of flux array"</span>);</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     result = cpl_table_new(ndata);</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     <span class="keywordflow">for</span>(i = 0; i < 3; i++)</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>         {</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>         <span class="keyword">const</span> cpl_array *data;</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>         <span class="keywordtype">int</span> indx;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>         </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>         cpl_table_new_column(result, columns[i], CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>         </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>         data = cpl_table_get_array(flux_table, columns[i], match_row);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span> </div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>         <span class="comment">/* Only the 'ndata' first elements of the array are used,</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> <span class="comment">           and the array may be longer than this */</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"3d table array size = %"</span> CPL_SIZE_FORMAT <span class="stringliteral">", ndata = %d"</span>,</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                    cpl_array_get_size(data), ndata);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>         assure( cpl_array_get_size(data) >= ndata,</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>             CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>             <span class="stringliteral">"Flux table row %d: column '%s' depth (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">") "</span></div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>             <span class="stringliteral">"is less than NDATA (%d)"</span>,</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>             match_row, columns[i], cpl_array_get_size(data), ndata);</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>         <span class="keywordflow">for</span> (indx = 0; indx < ndata; indx++)</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>             {</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>             <span class="comment">/* 3d columns are float */</span></div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>             cpl_table_set_double(result, columns[i], indx, </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>                          cpl_array_get_float(data, indx, NULL));</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>             }</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>         }</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     }</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>   </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>   cleanup:</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     {</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         uves_free_table(&result);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>         <span class="keywordflow">if</span> (ref_name_dynamic != NULL) </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>         {</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>             cpl_free(*ref_name_dynamic);</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>             *ref_name_dynamic = NULL;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>         }</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     }</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> }</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__response__utils_8h_source.html b/html/uves__response__utils_8h_source.html
deleted file mode 100644
index 67775e9..0000000
--- a/html/uves__response__utils_8h_source.html
+++ /dev/null
@@ -1,130 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_response_utils.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_response_utils.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 13:55:38 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.7  2010/09/24 09:32:07  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2006/11/03 15:01:21  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Killed UVES 3d table module and use CPL 3d tables</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/08/17 09:20:43  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Get reference object ID from flux table, not raw header</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/02/03 07:51:04  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.2  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.1  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#ifndef UVES_RESPONSE_UTILS_H</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_RESPONSE_UTILS_H</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> cpl_image *</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <a class="code" href="group__uves__response.html#ga0e3832a791528896648761e02fac2b9c" title="Calculate response.">uves_calculate_response</a>(<span class="keyword">const</span> cpl_image *spectrum, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *spectrum_header,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>             <span class="keyword">const</span> cpl_table *flux_table,</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>             <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header,</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>             <span class="keywordtype">double</span> PACCURACY,</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>             <span class="keywordtype">bool</span> inverse,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>             <span class="keywordtype">char</span> **ref_obj_id);</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> cpl_table *</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <a class="code" href="group__uves__response.html#ga9efc933848e1bebb4766a0d10a8e9c93" title="Match a star against a catalogue of stars.">uves_align</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *object_header, <span class="keyword">const</span> cpl_table *flux_table, </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>        <span class="keywordtype">double</span> accuracy, <span class="keywordtype">char</span> **ref_name_dynamic);</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__scired_8c_source.html b/html/uves__scired_8c_source.html
deleted file mode 100644
index 4803a75..0000000
--- a/html/uves__scired_8c_source.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_scired.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_scired.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.58 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.57  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> {</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     {</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"I am uves_scired version %d, but I am linking "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     }</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordflow">return</span> uves_scired_get_info(list);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__scired__impl_8c_source.html b/html/uves__scired__impl_8c_source.html
deleted file mode 100644
index 532cc7c..0000000
--- a/html/uves__scired__impl_8c_source.html
+++ /dev/null
@@ -1,287 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_scired_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_scired_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:07 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.44 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.42  2008/03/28 08:54:39  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * IRPLIB_CONCAT2X-->UVES_CONCAT2X</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.41  2007/06/11 13:28:26  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Changed recipe contact address to cpl at eso.org</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.40  2007/06/08 13:06:16  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Send bug reports to Andrea</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.39  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.38  2007/02/09 13:44:15  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Moved code to reduce_scired to enable calling from uves_obs_spatred</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.37  2006/11/06 15:19:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.36  2006/10/17 12:33:02  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added semicolon at UVES_RECIPE_DEFINE invocation</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.35  2006/10/09 13:01:13  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Use macro to define recipe interface functions</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.34  2006/09/27 15:08:45  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Fixed doc. bug</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.33  2006/09/27 13:19:00  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Factored out scired body to enable calling it from other recipes</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.32  2006/09/20 15:42:18  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Implemented MASTER_RESPONSE support</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.31  2006/09/20 12:53:57  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Replaced stringcat functions with uves_sprintf()</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.30  2006/09/20 07:26:43  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.29  2006/09/19 14:25:26  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Propagate FITS keywords from master flat, not science, to WCALIB_FLAT_OBJ</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.28  2006/09/19 06:55:31  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Changed interface of uves_frameset to optionally write image statistics kewwords</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.27  2006/09/06 14:47:05  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Added commented out code to skip one chip</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.26  2006/08/24 11:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.25  2006/08/22 15:13:15  amodigli</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * fix typo</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.24  2006/08/22 14:18:59  amodigli</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * new format for SCI QC key</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.23  2006/08/18 13:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Fixed/changed QC parameter formats</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.22  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.21  2006/08/17 09:19:19  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Removed CPL2 code</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.20  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.19  2006/08/11 09:00:21  jmlarsen</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Take into account the different meanings of line table 'Y' column</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.18  2006/08/10 12:35:15  amodigli</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * added QC log</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.17  2006/08/07 14:42:02  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Implemented on-the-fly correction of a line table when its order numbering</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> * is inconsistent with the order table (DFS02694)</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Revision 1.16  2006/07/14 12:30:34  jmlarsen</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * Compute PRO CATG depending on DO CATG</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Revision 1.15  2006/07/03 12:46:34  amodigli</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> * updated description</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Revision 1.14  2006/06/16 08:25:45  jmlarsen</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> * Manually propagate ESO.DET. keywords from 1st/2nd input header</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Revision 1.13  2006/06/13 11:57:02  jmlarsen</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> * Check that calibration frames are from the same chip ID</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Revision 1.12  2006/06/06 08:40:10  jmlarsen</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Revision 1.11  2006/05/16 12:13:07  amodigli</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * added QC log</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Revision 1.10  2006/05/12 15:11:15  jmlarsen</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * Implemented bad pixel propagation for flux calibration</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Revision 1.9  2006/04/24 09:25:34  jmlarsen</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * Use FITS convention for coordinates in QC calculation</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Revision 1.8  2006/04/20 10:47:39  amodigli</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * added qclog</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Revision 1.7  2006/04/06 09:48:15  amodigli</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> * changed uves_frameset_insert interface to have QC log</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Revision 1.6  2006/04/06 08:51:04  jmlarsen</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * Added flux-calibrated science products</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Revision 1.5  2006/03/24 14:46:39  jmlarsen</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Doc. bugfix</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Revision 1.4  2006/03/24 13:51:50  jmlarsen</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * Changed meaning of VARIANCE_SCIENCE to match MIDAS</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Revision 1.3  2006/03/06 09:22:43  jmlarsen</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Added support for reading MIDAS line tables with MIDAS tags</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Revision 1.2  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Revision 1.1  2006/02/03 07:51:04  jmlarsen</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Revision 1.48  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Revision 1.47  2005/12/20 16:10:32  jmlarsen</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> * Added some documentation</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Revision 1.46  2005/12/20 10:33:20  jmlarsen</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> * Added some doxygen doc.</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Revision 1.45  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="preprocessor">#include <uves_reduce_scired.h></span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> uves_scired_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="preprocessor">#define cpl_plugin_get_info uves_scired_get_info</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     UVES_SCIRED_ID, UVES_SCIRED_DOM, uves_scired_define_parameters,</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     <span class="stringliteral">"Jonas M. Larsen"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     uves_scired_desc_short,</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     uves_scired_desc);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment">                              Functions code</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> uves_scired_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> {</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     <span class="keywordflow">return</span> <a class="code" href="group__uves__scired.html#ga1c491907022557327d0a5bad5281965f" title="Setup the recipe options.">uves_scired_define_parameters_body</a>(parameters, make_str(UVES_SCIRED_ID));</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> }</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> UVES_CONCAT2X(UVES_SCIRED_ID,exe)(cpl_frameset *frames,</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>         <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> {</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <span class="comment">/* Do science reduction while pretending to be 'make_str(UVES_SCIRED_ID)' */</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <a class="code" href="group__uves__scired.html#ga0780489bfd35e6728e0d1b9c7036e119" title="Get the command line options and execute the data reduction.">uves_reduce_scired</a>(frames, parameters, make_str(UVES_SCIRED_ID), starttime);</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> }</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__test__simulate_8c_source.html b/html/uves__test__simulate_8c_source.html
deleted file mode 100644
index 243ca52..0000000
--- a/html/uves__test__simulate_8c_source.html
+++ /dev/null
@@ -1,353 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_test_simulate.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_test_simulate.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:31:49 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.14 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.12  2007/09/11 17:10:49  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * added uves_utils_polynomial.h</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.11  2007/08/30 07:56:05  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * fixed some doxygen warnings</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.10  2007/06/26 14:51:00  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Fixed bug in load_linetable</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.9  2007/06/20 15:55:37  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Parametrized assumption about MIDAS format</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.8  2007/06/20 15:49:59  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Use MIDAS compatible column names</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.7  2007/06/20 08:28:53  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * updated interface to uves_polynomial_convert_from_plist_midas</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.6  2007/05/22 11:28:14  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.5  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.4  2007/04/10 11:34:48  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * More points per order in order table</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.3  2007/04/10 07:22:07  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Changed interface of polynomial_regression_2d()</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.2  2007/03/15 14:44:51  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Removed debugging dump</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.1  2007/03/15 12:47:32  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Imported sources</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor">#include <uves_test_simulate.h></span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">//#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor">#include <uves_wavecal_utils.h></span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno"><a class="code" href="group__uves__test__simulate.html#ga81a0d2793233e8b9c72f1141a3168924">  110</a></span> <a class="code" href="group__uves__test__simulate.html#ga81a0d2793233e8b9c72f1141a3168924" title="Create order table.">create_order_table</a>(cpl_table **ordertable, </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>                    <a class="code" href="struct__polynomial.html">polynomial</a> **order_locations, </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                    cpl_table **tracetable,</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>                    <span class="keywordtype">int</span> minorder, </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>                    <span class="keywordtype">int</span> maxorder, </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>                    <span class="keywordtype">int</span> nx)</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> {</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header = NULL;</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     <span class="comment">/* Create polynomial */</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>(order_locations != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     {</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *data[] = {<span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>                               <span class="stringliteral">"'COEFFI','I*4',1,7,'7I10'"</span>,</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>                               <span class="stringliteral">"     53889         2         3         2         1         4         5"</span>,</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>                               <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>                               <span class="stringliteral">"'COEFFR','R*4',1,5,'5E14.7'"</span>,</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>                               <span class="stringliteral">" 4.3300000E+02 4.0880000E+03 1.0000000E+00 2.1000000E+01 0.0000000E+00"</span>,</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>                               <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>                               <span class="stringliteral">"'COEFFD','R*8',1,30,'3E23.15'"</span>,</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>                               <span class="stringliteral">" -7.097005629698889E+01  4.050908371864904E-02 -2.886756545398909E-06"</span>,</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>                               <span class="stringliteral">"  5.504345508879626E-10 -5.583004967206025E-14  7.624532125635992E+01"</span>,</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>                               <span class="stringliteral">" -2.428213567964009E-03  1.819158447566360E-06 -5.090366383338846E-10"</span>,</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>                               <span class="stringliteral">"  5.198098506055602E-14  3.513177145982783E-01  5.570332137951829E-04"</span>,</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>                               <span class="stringliteral">" -3.876157463910250E-07  1.113253735718822E-10 -1.132455173423791E-14"</span>,</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>                               <span class="stringliteral">"  2.977232589499959E-02 -5.389240622889887E-05  3.777456726044612E-08"</span>,</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>                               <span class="stringliteral">" -1.083863050648735E-11  1.098450510939580E-15 -1.093309039442914E-03"</span>,          </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>                               <span class="stringliteral">"  2.402609262989674E-06 -1.688416547941747E-09  4.839101712729582E-13"</span>,</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>                               <span class="stringliteral">" -4.884504488944702E-17  1.919853952642526E-05 -4.004133160220927E-08"</span>,</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>                               <span class="stringliteral">"  2.816206503824200E-11 -8.051313882805877E-15  8.090579180112579E-19"</span>,</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>                               <span class="stringliteral">" "</span>,</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>                               <span class="stringliteral">"'TAB_IN_OUT_YSHIFT','R*8',1,1,'3E23.15'"</span>,</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>                               <span class="stringliteral">"  4.180818583555659E+01          "</span>,</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>                               <span class="stringliteral">" "</span>};</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>             </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>         header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>         {</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>             <span class="keywordtype">unsigned</span> i;</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>             <span class="keywordflow">for</span> (i = 0; i < <span class="keyword">sizeof</span>(data)/<span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *); i++)</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>                 {</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                     uves_propertylist_append_string(header, <span class="stringliteral">"HISTORY"</span>,</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>                                                    data[i]);</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>                 }</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>         }</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>             </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( *order_locations = uves_polynomial_convert_from_plist_midas(header, </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                                                                                  <span class="stringliteral">"COEFF"</span>,-1));</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     }</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     <span class="comment">/* Fill order table */</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keywordflow">if</span> (ordertable != NULL)</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>         {</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>             <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>             <span class="keywordtype">int</span> row = 0;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>             *ordertable = cpl_table_new(5*(maxorder - minorder + 1));</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>             cpl_table_new_column(*ordertable, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>             cpl_table_new_column(*ordertable, <span class="stringliteral">"X"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>             cpl_table_new_column(*ordertable, <span class="stringliteral">"Yfit"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>             <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++)</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>                 {</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>                     <span class="keywordtype">int</span> x[5];</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>                     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>                     x[0] = (1*nx)/6+1;</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>                     x[1] = (2*nx)/6+1;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>                     x[2] = (3*nx)/6+1;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>                     x[3] = (4*nx)/6+1;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>                     x[4] = (5*nx)/6+1;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>                     </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>                     <span class="keywordflow">for</span> (i = 0; i < 5; i++)</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>                         {</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>                             cpl_table_set_int(*ordertable, <span class="stringliteral">"Order"</span>, row, order);</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>                             cpl_table_set_int(*ordertable, <span class="stringliteral">"X"</span>, row, x[i]);</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>                             cpl_table_set_double(*ordertable, <span class="stringliteral">"Yfit"</span>, row, </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>                                                  <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(*order_locations,</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>                                                                              x[i], order));</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                             row++;</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                         }</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                 }</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>         }</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>   </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>   <span class="comment">/* Not implemented: */</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>   <span class="comment">/* Fill tracetable */</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     tracetable = tracetable; <span class="comment">/* suppress warnings */</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>   </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>  cleanup:</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>   uves_free_propertylist(&header);</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> }</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno"><a class="code" href="group__uves__test__simulate.html#ga6fbf196c4ff48ceb9f9a5dc64830dffe">  218</a></span> <a class="code" href="group__uves__test__simulate.html#ga6fbf196c4ff48ceb9f9a5dc64830dffe" title="Create line table.">create_line_table</a>(cpl_table **linetable, </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>                   <a class="code" href="struct__polynomial.html">polynomial</a> **dispersion, </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>                   <a class="code" href="struct__polynomial.html">polynomial</a> **abs_orders,</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>                   <span class="keywordtype">int</span> *firstabs, </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                   <span class="keywordtype">int</span> *lastabs,</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>                   <span class="keywordtype">int</span> minorder, </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                   <span class="keywordtype">int</span> maxorder, </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                   <span class="keywordtype">int</span> nx)</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> {</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations = NULL;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     cpl_table *ordertable = NULL;</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     cpl_table *tracetable = NULL;</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="keyword">const</span> <span class="keywordtype">bool</span> midas_format = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *ORDER = midas_format ? <span class="stringliteral">"ORDER"</span> : <span class="stringliteral">"Order"</span>;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *IDENT = midas_format ? <span class="stringliteral">"IDENT"</span> : <span class="stringliteral">"Ident"</span>;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *YNEW = midas_format ? <span class="stringliteral">"YNEW"</span> : <span class="stringliteral">"Ynew"</span>;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <a class="code" href="group__uves__test__simulate.html#ga81a0d2793233e8b9c72f1141a3168924" title="Create order table.">create_order_table</a>(&ordertable, &order_locations, &tracetable,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                        minorder, maxorder, nx);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>(linetable != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     {</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>         <span class="keywordtype">int</span> row = 0;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         *linetable = cpl_table_new(cpl_table_get_nrow(ordertable));</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         cpl_table_new_column(*linetable, <span class="stringliteral">"X"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         cpl_table_new_column(*linetable, YNEW, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>         cpl_table_new_column(*linetable, <span class="stringliteral">"Y"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>         cpl_table_new_column(*linetable, ORDER, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>         cpl_table_new_column(*linetable, LINETAB_LAMBDAC, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>         cpl_table_new_column(*linetable, IDENT, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>         cpl_table_new_column(*linetable, <span class="stringliteral">"Aux"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>         <span class="keywordflow">for</span> (row = 0; row < cpl_table_get_nrow(ordertable); row++)</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>             {</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>                 <span class="keywordtype">int</span> order = cpl_table_get_int(ordertable, <span class="stringliteral">"Order"</span>, row, NULL);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>                 <span class="keywordtype">double</span> x  = cpl_table_get_int(ordertable, <span class="stringliteral">"X"</span>, row, NULL);</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                 <span class="keywordtype">double</span> y  = cpl_table_get_double(ordertable, <span class="stringliteral">"Yfit"</span>, row, NULL);</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>                 <span class="keywordtype">int</span> m = 120 - order; <span class="comment">/* absolute order number */</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>                 <span class="keywordtype">double</span> lambda = 3000 + 50*(order - minorder) + 80*(x*1.0/nx);</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>                 </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>                 cpl_table_set_double(*linetable, <span class="stringliteral">"X"</span>, row, x);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>                 cpl_table_set_double(*linetable, YNEW, row, y);</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                 cpl_table_set_int(*linetable, <span class="stringliteral">"Y"</span>, row, order);   <span class="comment">/* it's correct! */</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                 cpl_table_set_int(*linetable, ORDER, row, m);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                 cpl_table_set_double(*linetable, LINETAB_LAMBDAC, row, lambda);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                 cpl_table_set_double(*linetable, IDENT, row, lambda); <span class="comment">/* exact! */</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>                 cpl_table_set_double(*linetable, <span class="stringliteral">"Aux"</span>, row, lambda*m);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>             }</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     }</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     <span class="keywordflow">if</span> (abs_orders != NULL)</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>         {</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>             <span class="comment">/* Create polynomial</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment">               absorders(x, y) = m</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>             <span class="keywordtype">int</span> degree = 2;</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>             *abs_orders = <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(*linetable,</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>                                                         <span class="stringliteral">"X"</span>, YNEW, ORDER, NULL,</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>                                                         degree, degree,</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>                                                         NULL, NULL, NULL, <span class="comment">/* new columns */</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>                                                         NULL, NULL, <span class="comment">/* mse, red_chisq */</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>                                                         NULL, -1, -1)); <span class="comment">/* variance, kappa */</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>             <span class="keywordflow">if</span> (firstabs != NULL) {</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                 <span class="keywordtype">double</span> x = nx/2;</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                 <span class="keywordtype">double</span> y = </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                     <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x, minorder);</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>                 </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                 *firstabs = uves_round_double(</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>                     <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(*abs_orders, x, y));</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>             }</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>             <span class="keywordflow">if</span> (lastabs != NULL) {</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>                 <span class="keywordtype">double</span> x = nx/2;</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>                 <span class="keywordtype">double</span> y = </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>                     <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x, maxorder);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>                 </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>                 *lastabs = uves_round_double(</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>                     <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(*abs_orders, x, y));</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>             }</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>         }</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <span class="keywordflow">if</span> (dispersion != NULL)</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>         {</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>             <span class="comment">/* Create polynomial of this form</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="comment">               f(x, m) = lambda m</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>             <span class="keywordtype">int</span> degree = 2;</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>             *dispersion = <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(*linetable,</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>                                                         <span class="stringliteral">"X"</span>, ORDER, <span class="stringliteral">"Aux"</span>, NULL,</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>                                                         degree, degree,</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>                                                         NULL, NULL, NULL, <span class="comment">/* new columns */</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>                                                         NULL, NULL, <span class="comment">/* mse, red_chisq */</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>                                                         NULL, -1, -1)); <span class="comment">/* variance, kappa */</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>         }</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>  cleanup:</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     uves_free_table(&ordertable);</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     uves_free_table(&tracetable);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__test__simulate_8h_source.html b/html/uves__test__simulate_8h_source.html
deleted file mode 100644
index be1281d..0000000
--- a/html/uves__test__simulate_8h_source.html
+++ /dev/null
@@ -1,116 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_test_simulate.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_test_simulate.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: jmlarsen $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-26 14:51:01 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.4  2007/06/20 15:55:37  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Parametrized assumption about MIDAS format</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.3  2007/06/20 15:49:31  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Support creating first/last abs. order number</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.2  2007/05/22 11:28:14  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.1  2007/03/15 12:47:34  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Imported sources</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#ifndef UVES_TEST_SIMULATE_H</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TEST_SIMULATE_H</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <a class="code" href="group__uves__test__simulate.html#ga81a0d2793233e8b9c72f1141a3168924" title="Create order table.">create_order_table</a>(cpl_table **ordertable, <a class="code" href="struct__polynomial.html">polynomial</a> **order_locations, cpl_table **tracetable,</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>                    <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder, <span class="keywordtype">int</span> nx);</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <a class="code" href="group__uves__test__simulate.html#ga6fbf196c4ff48ceb9f9a5dc64830dffe" title="Create line table.">create_line_table</a>(cpl_table **linetable, <a class="code" href="struct__polynomial.html">polynomial</a> **dispersion, <a class="code" href="struct__polynomial.html">polynomial</a> **abs_orders,</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>                   <span class="keywordtype">int</span> *firstabs, <span class="keywordtype">int</span> *lastabs,</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>                   <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder, <span class="keywordtype">int</span> nx);</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__tflat_8c_source.html b/html/uves__tflat_8c_source.html
deleted file mode 100644
index 0d5d345..0000000
--- a/html/uves__tflat_8c_source.html
+++ /dev/null
@@ -1,111 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_tflat.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_tflat.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-04-08 07:58:34 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.7 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> </div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> {</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span>     {</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span>               <span class="stringliteral">"I am uves_tflat version %d, but I am linking "</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span>     }</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>     <span class="keywordflow">return</span> uves_tflat_get_info(list);</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__tflat__impl_8c_source.html b/html/uves__tflat__impl_8c_source.html
deleted file mode 100644
index 2cf6d4c..0000000
--- a/html/uves__tflat__impl_8c_source.html
+++ /dev/null
@@ -1,238 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_tflat_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_tflat_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-04-08 10:47:27 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.26 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <uves_reduce_mflat.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <uves_reduce_scired.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> uves_tflat_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#define cpl_plugin_get_info uves_tflat_get_info</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     UVES_TFLAT_ID, UVES_TFLAT_DOM, uves_tflat_define_parameters,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     <span class="stringliteral">"Jonas M. Larsen"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="stringliteral">"Reduces a TFLAT frame"</span>,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     <span class="stringliteral">"This recipe reduces a TFLAT_xxx frame (xxx = BLUE,RED). This is\n"</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     <span class="stringliteral">"achieved by\n"</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="stringliteral">"1) combining all provided TFLAT frames to a MASTER_TFLAT frame, then\n"</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     <span class="stringliteral">"2) doing a normal science reduction on the first input TFLAT frame\n"</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     <span class="stringliteral">"Input frames are raw TFLAT_xxx  frames, and: \n"</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     <span class="stringliteral">"order table(s) for each chip, ORDER_TABLE_xxxx (where xxxx=BLUE, REDL, REDU),\n"</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     <span class="stringliteral">"line table(s) for each chip, LINE_TABLE_xxxx, a master bias frame,\n"</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     <span class="stringliteral">"MASTER_BIAS_xxxx, a master flat, MASTER_FLAT_xxxx, \n"</span>);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">                              Functions code</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> uves_tflat_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> {</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>    <span class="keywordtype">int</span> res=0;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>    res=<a class="code" href="group__uves__reduce__mflat.html#ga7d38d6807a0067cc5e8dd44a44ebaa07" title="Setup the recipe options.">uves_mflat_define_parameters_body</a>(parameters,<span class="stringliteral">"uves_cal_tflat"</span> );</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     <span class="comment">/*******************</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">     *  Reduce.        *</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">     ******************/</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>     <span class="keywordflow">if</span> (uves_propagate_parameters_step(UVES_REDUCE_ID, parameters,</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                                        make_str(UVES_TFLAT_ID), NULL) != 0)</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>         {</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>             <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>         }</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     <span class="comment">/* For TFLAT reduction: average extraction, no sky subtraction */</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     {</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *param = <span class="stringliteral">"average"</span>;</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     <span class="keywordtype">bool</span> bool_param;</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     <span class="keywordflow">if</span> (uves_set_parameter_default(parameters, </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>                        make_str(UVES_TFLAT_ID), <span class="stringliteral">"reduce.extract.method"</span>,</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>                        CPL_TYPE_STRING, &param) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>         {</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>         }</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     bool_param = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     <span class="keywordflow">if</span> (uves_set_parameter_default(parameters, </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                        make_str(UVES_TFLAT_ID), <span class="stringliteral">"reduce.skysub"</span>,</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>                        CPL_TYPE_BOOL, &bool_param) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>         {</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>         }</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     }</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> }</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> UVES_CONCAT2X(UVES_TFLAT_ID,exe)(cpl_frameset *frames,</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>                    <span class="keyword">const</span> cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> {</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Creating master tflat"</span>);</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__reduce__mflat.html#ga1bae4e786a7fc24b0061ae293112f5ae" title="Get the command line options and execute the data reduction.">uves_mflat_exe_body</a>(frames, parameters, </div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>                      starttime,</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>                      make_str(UVES_TFLAT_ID)) );</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Reducing first raw tflat"</span>);</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__scired.html#ga0780489bfd35e6728e0d1b9c7036e119" title="Get the command line options and execute the data reduction.">uves_reduce_scired</a>(frames, parameters, make_str(UVES_TFLAT_ID), starttime) );</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     <span class="comment">/* The MASTER_TFLAT was reclassified as CALIB by the reduction step.</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment">       But it is actually a product of this recipe, so retag it */</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     {</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>       <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>       <span class="keywordtype">int</span> blue;</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>       <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>       cpl_frame *f = NULL;</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"process_chip"</span>, CPL_TYPE_STRING, &PROCESS_CHIP),</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>          <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>       <span class="comment">/* Loop over all possible MASTER_TFLATs */</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>       <span class="keywordflow">for</span> (blue = 0; blue <= 1; blue++)</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>         {</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>       <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue);</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>            chip != UVES_CHIP_INVALID;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>            chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>             {</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>           <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDU"</span>) == 0) {</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>         chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>           }</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>           f = cpl_frameset_find(frames, UVES_MASTER_TFLAT(chip));</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>           <span class="keywordflow">if</span> (f != NULL)</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>                 {</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>           cpl_frame_set_group(f, CPL_FRAME_GROUP_PRODUCT);</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>                 }</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>             </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>           f = cpl_frameset_find(frames, UVES_BKG_FLAT(chip));</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>           <span class="keywordflow">if</span> (f != NULL)</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>                 {</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>           cpl_frame_set_group(f, CPL_FRAME_GROUP_PRODUCT);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>                 }</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>             }</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDL"</span>) == 0) {</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>         chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>       }</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>         }</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     }</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>   cleanup:</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> }</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__time_8c_source.html b/html/uves__time_8c_source.html
deleted file mode 100644
index 45ed7fb..0000000
--- a/html/uves__time_8c_source.html
+++ /dev/null
@@ -1,244 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_time.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_time.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: uves_time.c,v 1.2 2009-04-22 15:16:37 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO UVES Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2009-04-22 15:16:37 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.2 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span><span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> </div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <time.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <pwd.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <unistd.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <sys/time.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include "uves_time.h"</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include "uves_globals.h"</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">                                   Macros</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment">/* Get century from a date in long format */</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#define GET_CENTURY(d)      (int) ( (d) / 1000000L)</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span><span class="comment">/* Get century year from a date in long format */</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#define GET_CCYEAR(d)       (int) ( (d) / 10000L)</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="comment">/* Get year from a date in long format */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#define GET_YEAR(d)         (int) (((d) % 1000000L) / 10000L)</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span><span class="comment">/* Get month from a date in long format */</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#define GET_MONTH(d)        (int) (((d) % 10000L) / 100)</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor"></span><span class="comment">/* Get day from a date in long format */</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#define GET_DAY(d)          (int) ( (d) % 100)</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">/* Get hours from a date in long format */</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#define GET_HOUR(t)         (int) ( (t) / 1000000L)</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor"></span><span class="comment">/* Get minutes from a date in long format */</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#define GET_MINUTE(t)       (int) (((t) % 1000000L) / 10000L)</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span><span class="comment">/* Get seconds from a date in long format */</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#define GET_SECOND(t)       (int) (((t) % 10000L) / 100)</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor"></span><span class="comment">/* Get centi-seconds from a date in long format */</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#define GET_CENTI(t)        (int) ( (t) % 100)</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/* Make date in long format from its components */</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#define MAKE_DATE(c,y,m,d)  (long) (c) * 1000000L +                          \</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor">                            (long) (y) * 10000L +                            \</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">                            (long) (m) * 100 + (d)</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor"></span><span class="comment">/* Make time in long format from its components */</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor">#define MAKE_TIME(h,m,s,c)  (long) (h) * 1000000L +                          \</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="preprocessor">                            (long) (m) * 10000L +                            \</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="preprocessor">                            (long) (s) * 100 + (c)</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment">/*  Interval values, specified in centiseconds */</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor">#define INTERVAL_CENTI      1</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor"></span><span class="preprocessor">#define INTERVAL_SEC        100</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="preprocessor"></span><span class="preprocessor">#define INTERVAL_MIN        6000</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor"></span><span class="preprocessor">#define INTERVAL_HOUR       360000L</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor"></span><span class="preprocessor">#define INTERVAL_DAY        8640000L</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">                            Private to this module</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="keyword">static</span> <span class="keywordtype">long</span> timer_to_date(time_t time_secs) ;</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="keyword">static</span> <span class="keywordtype">long</span> timer_to_time(time_t time_secs) ;</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="keyword">static</span> <span class="keywordtype">long</span> uves_time_now(<span class="keywordtype">void</span>) ;</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="keyword">static</span> <span class="keywordtype">long</span> uves_date_now (<span class="keywordtype">void</span>) ;</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">                              Function codes</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="group__uves__time.html#ga1db9a9647c947cd72abe846a12d483fc">  118</a></span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__time.html#ga1db9a9647c947cd72abe846a12d483fc" title="Returns the current date and time as a static string.">uves_get_datetime_iso8601</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> {</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     <span class="keyword">static</span> <span class="keywordtype">char</span> date_iso8601[MAX_NAME_SIZE] ;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     <span class="keywordtype">long</span>        curdate ;</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     <span class="keywordtype">long</span>        curtime ;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     curdate  = uves_date_now() ;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     curtime  = uves_time_now() ;</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     snprintf(date_iso8601, MAX_NAME_SIZE-1,</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>             <span class="stringliteral">"%04d-%02d-%02dT%02d:%02d:%02d"</span>,</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>             GET_CCYEAR(curdate),</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>             GET_MONTH(curdate),</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>             GET_DAY(curdate),</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>             GET_HOUR(curtime),</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>             GET_MINUTE(curtime),</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>             GET_SECOND(curtime));</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     <span class="keywordflow">return</span> date_iso8601 ;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> }</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="keyword">static</span> <span class="keywordtype">long</span> uves_date_now (<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> {</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <span class="keywordflow">return</span> (timer_to_date (time (NULL)));</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> }</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="keyword">static</span> <span class="keywordtype">long</span> uves_time_now(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> {</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     <span class="keyword">struct </span>timeval time_struct;</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     gettimeofday (&time_struct, 0);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     <span class="keywordflow">return</span> (timer_to_time (time_struct.tv_sec)</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>                          + time_struct.tv_usec / 10000);</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> }</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="keyword">static</span> <span class="keywordtype">long</span> timer_to_date(time_t time_secs)</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> {</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     <span class="keyword">struct </span>tm *time_struct;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     <span class="keywordflow">if</span> (time_secs == 0) {</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>         <span class="comment">/*  Convert into a long value CCYYMMDD */</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>         time_struct = localtime (&time_secs);</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>         <span class="keywordflow">if</span> (time_struct) {</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>             time_struct-> tm_year += 1900;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>             <span class="keywordflow">return</span> (MAKE_DATE (    time_struct-> tm_year / 100,</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>                                 time_struct-> tm_year % 100,</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>                                 time_struct-> tm_mon + 1,</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>                                 time_struct-> tm_mday));</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>             <span class="keywordflow">return</span> (19700101);</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>         }</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     }</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> }</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="keyword">static</span> <span class="keywordtype">long</span> timer_to_time(time_t time_secs)</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> {</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     <span class="keyword">struct </span>tm *time_struct;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> </div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     <span class="keywordflow">if</span> (time_secs == 0) {</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         <span class="comment">/*  Convert into a long value HHMMSS00 */</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         time_struct = localtime (&time_secs);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>         <span class="keywordflow">if</span> (time_struct) {</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>             <span class="keywordflow">return</span> (MAKE_TIME (time_struct-> tm_hour,</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>                                time_struct-> tm_min,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                                time_struct-> tm_sec,</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>                                0));</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>             <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>         }</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     }</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> }</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__time_8h_source.html b/html/uves__time_8h_source.html
deleted file mode 100644
index d3a8148..0000000
--- a/html/uves__time_8h_source.html
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_time.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_time.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: uves_time.h,v 1.1 2008-09-15 07:03:19 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO UVES Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-09-15 07:03:19 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef UVES_TIME_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TIME_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                        Function ANSI C prototypes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__time.html#ga1db9a9647c947cd72abe846a12d483fc" title="Returns the current date and time as a static string.">uves_get_datetime_iso8601</a>(<span class="keywordtype">void</span>) ;</div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utils-test_8c_source.html b/html/uves__utils-test_8c_source.html
deleted file mode 100644
index ee931ae..0000000
--- a/html/uves__utils-test_8c_source.html
+++ /dev/null
@@ -1,3718 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utils-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utils-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:31:49 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.14 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> </div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment">                            Defines</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> *   The following is duplicated from CPL's unit test</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> *   to test the workaround for cpl_table_erase_selected()</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#define test_data(r,f,m)    \</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">printf(m);                  \</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">fflush(stdout);             \</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">fflush(stderr);             \</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">r = f;                      \</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">if (!r) {                   \</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">  printf("Failure\n");      \</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">  return 1;                 \</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor">}                           \</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">printf("OK\n")</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="preprocessor">#define test_data(r,f,m)    \</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor">r = f;                      \</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor">if (!r) {                   \</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor">  printf(m);                \</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor">  printf("Failure\n");      \</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor">  return 1;                 \</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="preprocessor">}</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Test for functions returning 0 on success.</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * f = function call</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * m = message</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="preprocessor">#define test(f,m)           \</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor">printf(m);                  \</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor">fflush(stdout);             \</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor">fflush(stderr);             \</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor">if (f) {                    \</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor">  printf("Failure\n");      \</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor">  return 1;                 \</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="preprocessor">}                           \</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor">printf("OK\n")</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="preprocessor">#define test(f,m)           \</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="preprocessor">if (f) {                    \</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="preprocessor">  printf(m);                \</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="preprocessor">  printf("Failure\n");      \</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="preprocessor">  return 1;                 \</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="preprocessor">}</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Test for expected failure in functions returning 0 on success.</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * e = expected error code</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * f = function call</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * m = message</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor">#define test_failure(e,f,m)                                         \</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="preprocessor">printf(m);                                                          \</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="preprocessor">fflush(stdout);                                                     \</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="preprocessor">fflush(stderr);                                                     \</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="preprocessor">if (f != e) {                                                       \</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="preprocessor">  printf("\n");                                                     \</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="preprocessor">  printf("     Received error: \"%s\"\n", cpl_error_get_message()); \</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="preprocessor">  cpl_error_set("cpl_table-test", e);                               \</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="preprocessor">  printf("     Expected error: \"%s\"\n", cpl_error_get_message()); \</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="preprocessor">  return 1;                                                         \</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="preprocessor">}                                                                   \</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="preprocessor">cpl_error_reset();                                                  \</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="preprocessor">printf("OK\n")</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="preprocessor">#define test_failure(e,f,m)                                         \</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="preprocessor">if (f != e) {                                                       \</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="preprocessor">  printf(m);                                                        \</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="preprocessor">  printf("\n");                                                     \</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="preprocessor">  printf("     Received error: \"%s\"\n", cpl_error_get_message()); \</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="preprocessor">  cpl_error_set("cpl_table-test", e);                               \</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="preprocessor">  printf("     Expected error: \"%s\"\n", cpl_error_get_message()); \</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="preprocessor">  return 1;                                                         \</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="preprocessor">}                                                                   \</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="preprocessor">cpl_error_reset()</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> * Test for functions returning an expected integer value.</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * e = expected value</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> * f = function call</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> * m = message</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="preprocessor">#define test_ivalue(e,f,m)                        \</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="preprocessor">printf(m);                                        \</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor">fflush(stdout);                                   \</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor">fflush(stderr);                                   \</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="preprocessor">itest = f;                                        \</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="preprocessor">if (itest != e) {                                 \</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="preprocessor">  printf("Received %d, expected %d\n", itest, e); \</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="preprocessor">  return 1;                                       \</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="preprocessor">}                                                 \</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="preprocessor">printf("OK\n")</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="preprocessor">#define test_ivalue(e,f,m)                        \</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor">itest = f;                                        \</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="preprocessor">if (itest != e) {                                 \</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="preprocessor">  printf(m);                                      \</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="preprocessor">  printf("Received %d, expected %d\n", itest, e); \</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="preprocessor">  return 1;                                       \</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="preprocessor">}</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment"> * Test for functions returning an expected pointer value.</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"> * e = expected value</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment"> * f = function call</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"> * m = message</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="preprocessor">#define test_pvalue(e,f,m)                        \</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="preprocessor">printf(m);                                        \</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="preprocessor">fflush(stdout);             \</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="preprocessor">fflush(stderr);             \</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="preprocessor">ptest = f;                                        \</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="preprocessor">if (ptest != e) {                                 \</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="preprocessor">  printf("Received %p, expected %p\n", ptest, e); \</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="preprocessor">  return 1;                                       \</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="preprocessor">}                                                 \</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="preprocessor">printf("OK\n")</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="preprocessor">#define test_pvalue(e,f,m)                        \</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="preprocessor">ptest = f;                                        \</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="preprocessor">if (ptest != e) {                                 \</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="preprocessor">  printf(m);                                      \</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="preprocessor">  printf("Received %p, expected %p\n", ptest, e); \</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="preprocessor">  return 1;                                       \</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="preprocessor">}</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment"> * Test for functions returning an expected floating point value.</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment"> * e = expected value</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment"> * t = tolerance on expected value</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment"> * f = function call</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment"> * m = message</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>   </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="preprocessor">#define test_fvalue(e,t,f,m)                      \</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="preprocessor">printf(m);                                        \</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="preprocessor">fflush(stdout);             \</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="preprocessor">fflush(stderr);             \</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="preprocessor">ftest = f;                                        \</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="preprocessor">if (fabs(ftest - (e)) > t) {                        \</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="preprocessor">  printf("Received %f, expected %f\n", ftest, e); \</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="preprocessor">  return 1;                                       \</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="preprocessor">}                                                 \</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="preprocessor">printf("OK\n")</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="preprocessor">#define test_fvalue(e,t,f,m)                      \</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="preprocessor">ftest = f;                                        \</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="preprocessor">if (fabs(ftest - (e)) > t) {                        \</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="preprocessor">  printf(m);                                      \</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="preprocessor">  printf("Received %f, expected %f\n", ftest, e); \</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="preprocessor">  return 1;                                       \</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="preprocessor">}</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment"> * Test for functions returning an expected character string.</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment"> * e = expected value</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment"> * f = function call</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="comment"> * m = message</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="preprocessor">#define test_svalue(e,f,m)                        \</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="preprocessor">printf(m);                                        \</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="preprocessor">fflush(stdout);             \</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="preprocessor">fflush(stderr);             \</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="preprocessor">stest = f;                                        \</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="preprocessor">if (strcmp(e,stest)) {                            \</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="preprocessor">  printf("Received %s, expected %s\n", stest, e); \</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="preprocessor">  return 1;                                       \</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="preprocessor">}                                                 \</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="preprocessor">printf("OK\n")</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="preprocessor">#define test_svalue(e,f,m)                        \</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="preprocessor">stest = f;                                        \</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="preprocessor">if (strcmp(e,stest)) {                            \</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="preprocessor">  printf(m);                                      \</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="preprocessor">  printf("Received %s, expected %s\n", stest, e); \</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="preprocessor">                  \</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="preprocessor">  return 1;                                       \</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="preprocessor">}</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="preprocessor">#define MAX_SIZE 4096</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="preprocessor"></span><span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> uves_filter_cosmic_test(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> {</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>   <span class="comment">//const char* src_dir="/data1/uves/valentina/";</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* src_dir=<span class="stringliteral">"/media/disk/uves/valentina/"</span>;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>   <span class="comment">//const char* src_dir="./";</span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>    <span class="keyword">const</span> <span class="keywordtype">char</span>* input=<span class="stringliteral">"PA1_D2B_001.fits"</span>;</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>    <span class="comment">//const char* input="cleaned.fits";</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>    <span class="keywordtype">char</span> cosmic_name[MAX_SIZE];</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>    <span class="keywordtype">char</span> filter_name[MAX_SIZE];</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>    <span class="keywordtype">char</span> clean_name[MAX_SIZE];</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>    <span class="keywordtype">char</span> mask_name[MAX_SIZE];</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>    <span class="keyword">const</span> <span class="keywordtype">double</span> sky=150.;</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>    <span class="keyword">const</span> <span class="keywordtype">double</span> gain=1.84;</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>    <span class="keyword">const</span> <span class="keywordtype">double</span> ron=4.1;</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>    <span class="keyword">const</span> <span class="keywordtype">int</span> ns=4;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>    <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>    <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>    <span class="keyword">const</span> <span class="keywordtype">double</span> rc=2;</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>    cpl_frame* frm=NULL;</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>    cpl_image* inp=NULL;</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>    cpl_image* flt=NULL;</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>    cpl_image* out=NULL;</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>    cpl_image* msk=NULL;</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>    cpl_propertylist* h=NULL;</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>    sprintf(cosmic_name,<span class="stringliteral">"%s%s"</span>,src_dir,input);</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>    sprintf(filter_name,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"filter.fits"</span>);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>    sprintf(clean_name,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"cleaned.fits"</span>);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>    sprintf(mask_name,<span class="stringliteral">"%s"</span>,<span class="stringliteral">"mask.fits"</span>);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(frm=cpl_frame_new());</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_filename(frm,cosmic_name));</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_type(frm,CPL_FRAME_TYPE_IMAGE));</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_group(frm,CPL_FRAME_GROUP_RAW));</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(inp=cpl_image_load(cosmic_name,CPL_TYPE_FLOAT,0,0));</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(h=cpl_propertylist_load(cosmic_name,0));</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sx=cpl_image_get_size_x(inp));</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sy=cpl_image_get_size_y(inp));</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(msk=cpl_image_new(sx,sy,CPL_TYPE_INT));</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__utils.html#gaaed2a3318adb62b1725bc28273757e58" title="Remove cosmic ray events on single ccd exposure and replace them by interpolation on neighbourhood pi...">uves_rcosmic</a>(inp,&flt,&out,&msk,sky,ron,gain,ns,rc));</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_save(flt,filter_name,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>                               h,CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_save(msk,mask_name,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                               h,CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_save(out,clean_name,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                               h,CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>   cleanup:</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>    uves_free_frame(&frm);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>    cpl_propertylist_delete(h);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>    uves_free_image(&inp);</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>    uves_free_image(&out);</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>    uves_free_image(&flt);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>    uves_free_image(&msk);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>    <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> }</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> uves_find_property_test(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> {</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> </div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     uves_propertylist_append_int(header, <span class="stringliteral">"INTVAL"</span>, 3);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     uves_propertylist_append_double(header, <span class="stringliteral">"HELLO"</span>, 98.12);</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>     uves_propertylist_append_int(header, <span class="stringliteral">"INTVAL"</span>, 3);</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     uves_propertylist_append_double(header, <span class="stringliteral">"HELLO"</span>, 98.12);</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     uves_propertylist_append_int(header, <span class="stringliteral">"INTVAL"</span>, 3);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     <span class="comment">/* Now CPL sets an error status (not catched by UVES propertylist wrapper)</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> <span class="comment">       on the first 3 extensions as they miss the keyword. </span></div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> <span class="comment">       We need to comment out those: or FIX uves_propertylist.c</span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> <span class="comment">    TO_BE_FIXED</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="comment">    cpl_test( uves_find_property(header, "INTVAL", 0) != NULL);</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="comment">    cpl_test( uves_find_property(header, "INTVAL", 1) != NULL);</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="comment">    cpl_test( uves_find_property(header, "INTVAL", 2) != NULL);</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> <span class="comment">    cpl_test( uves_find_property(header, "INTVAL", 3) == NULL);</span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> <span class="comment">    cpl_test( uves_find_property(header, "INTVAL", 4) == NULL);</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     uves_free_propertylist(&header);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> }</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> uves_average_reject_test(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> {</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     cpl_table *table = cpl_table_new(100);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     cpl_table_new_column(table, <span class="stringliteral">"X"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     cpl_table_set_double(table, <span class="stringliteral">"X"</span>, 0, 100);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     cpl_table_set_double(table, <span class="stringliteral">"X"</span>, 1, 101);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     cpl_table_set_double(table, <span class="stringliteral">"X"</span>, 2, 2000); <span class="comment">/* Outlier here */</span></div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     cpl_table_set_double(table, <span class="stringliteral">"X"</span>, 3,  98);</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     cpl_table_set_double(table, <span class="stringliteral">"X"</span>, 4, 103);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     cpl_table_set_double(table, <span class="stringliteral">"X"</span>, 5, 102);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     cpl_table_set_double(table, <span class="stringliteral">"X"</span>, 6, 100);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     cpl_table_set_double(table, <span class="stringliteral">"X"</span>, 7, 103);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     cpl_table_set_double(table, <span class="stringliteral">"X"</span>, 8, 100);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     cpl_table_set_double(table, <span class="stringliteral">"X"</span>, 9, 99);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     srand(0); <span class="comment">/* For reproducability */</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     <span class="keywordflow">for</span> (i = 10; i < 100; i++)</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>         {</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>             cpl_table_set_double(table, <span class="stringliteral">"X"</span>, i, 100 + 3*<a class="code" href="group__uves__utils.html#ga81ac7cec9a26af57d8e43728c004a072" title="Pseudo-random gaussian distributed number.">uves_gaussrand</a>());</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>             </div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>         }</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     {</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>         <span class="keywordtype">double</span> kappa = 4.0;</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>         <span class="keywordtype">double</span> expected_avg = 100;</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>         <span class="keywordtype">double</span> tolerance = 3.0;</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>         </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>         cpl_test( 2000 - 100 > kappa * cpl_table_get_column_stdev(table, <span class="stringliteral">"X"</span>));</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>         cpl_test_abs( <a class="code" href="group__uves__utils.html#ga8ec4a0e22ac62eaed019f740acf6810d" title="Get average with iterative rejection.">uves_average_reject</a>(table, <span class="stringliteral">"X"</span>, <span class="stringliteral">"temp"</span>, kappa),</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>                          expected_avg, tolerance);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     }</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     cpl_test_eq( cpl_table_get_nrow(table), 99);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     cpl_test_abs( cpl_table_get_double(table, <span class="stringliteral">"X"</span>, 0, NULL), 100, 0.1);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     cpl_test_abs( cpl_table_get_double(table, <span class="stringliteral">"X"</span>, 1, NULL), 101, 0.1);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     cpl_test_abs( cpl_table_get_double(table, <span class="stringliteral">"X"</span>, 2, NULL),  98, 0.1);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     cpl_test_abs( cpl_table_get_double(table, <span class="stringliteral">"X"</span>, 3, NULL), 103, 0.1);</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     uves_free_table(&table);</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> }                     </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> uves_polynomial_fit_2d_test(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> {</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>     <span class="keywordtype">unsigned</span> size = 4;</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     cpl_bivector *xy_pos = cpl_bivector_new(size);</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     cpl_vector *values = cpl_vector_new(size);</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     cpl_vector *sigmas = NULL;</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     <span class="keywordtype">int</span> deg1 = 0;</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     <span class="keywordtype">int</span> deg2 = 0;</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *solution;</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     <span class="comment">/* "good" input */</span></div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     cpl_bivector_get_x_data(xy_pos)[0] = 1;</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     cpl_bivector_get_x_data(xy_pos)[1] = 2;</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     cpl_bivector_get_x_data(xy_pos)[2] = 3;</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     cpl_bivector_get_x_data(xy_pos)[3] = 4;</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     cpl_bivector_get_y_data(xy_pos)[0] = 4;</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     cpl_bivector_get_y_data(xy_pos)[1] = 3;</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     cpl_bivector_get_y_data(xy_pos)[2] = 2;</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     cpl_bivector_get_y_data(xy_pos)[3] = 1;</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     cpl_vector_get_data(values)[0] = 17;</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     cpl_vector_get_data(values)[1] = 17;</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     cpl_vector_get_data(values)[2] = 17;</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     cpl_vector_get_data(values)[3] = 17;</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> </div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     solution = <a class="code" href="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3" title="Fit a 2d surface with a polynomial in x and y.">uves_polynomial_fit_2d</a>(xy_pos, values, sigmas,</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>                                       deg1, deg2,</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>                                       NULL, NULL, NULL); <span class="comment">/* mse, red_chisq, variance */</span></div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> </div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     cpl_test(solution != NULL);</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     cpl_test_abs(<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(solution, 1, 1), 17, 0.001);</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     <span class="comment">/* Degenerate input */</span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     deg1 = 1;</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     deg2 = 1;</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     cpl_bivector_get_x_data(xy_pos)[0] = 1;</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     cpl_bivector_get_x_data(xy_pos)[1] = 1;</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     cpl_bivector_get_x_data(xy_pos)[2] = 1;</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     cpl_bivector_get_x_data(xy_pos)[3] = 1;</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> </div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     cpl_bivector_get_y_data(xy_pos)[0] = 1;</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     cpl_bivector_get_y_data(xy_pos)[1] = 1;</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     cpl_bivector_get_y_data(xy_pos)[2] = 1;</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     cpl_bivector_get_y_data(xy_pos)[3] = 1;</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> </div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> </div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&solution);</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     solution = <a class="code" href="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3" title="Fit a 2d surface with a polynomial in x and y.">uves_polynomial_fit_2d</a>(xy_pos, values, sigmas,</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>                                       deg1, deg2,</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>                                       NULL, NULL, NULL); <span class="comment">/* mse, red_chisq, variance */</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     cpl_test(cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX);</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     cpl_test(solution == NULL);</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&solution);</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>     uves_free_bivector(&xy_pos);</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>     uves_free_vector(&values);</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> </div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> }</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> </div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> </div>
-<div class="line"><a name="l00528"></a><span class="lineno"><a class="code" href="group__uves__utils__test.html#ga08eba462d1c80f2b403eb9da1fc1e698">  528</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utils__test.html#ga08eba462d1c80f2b403eb9da1fc1e698">table_erase_selected</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> {</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>   <span class="keywordtype">int</span>         nrows = 10;</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>   <span class="keywordtype">int</span>         i, j, k, null, error;</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>   <span class="keywordtype">int</span>         pp;</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>   <span class="keywordtype">int</span>         itest;</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>   <span class="keywordtype">double</span>      ftest;</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *stest;</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>   <span class="keywordtype">void</span>       *ptest;</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>   <span class="keywordtype">char</span>        message[80];</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> </div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>   <span class="keywordtype">int</span>        *iArray;</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>   <span class="keywordtype">float</span>      *fArray;</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>   <span class="keywordtype">double</span>     *dArray;</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>   <span class="keywordtype">double</span>     *ddArray;</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>   <span class="keywordtype">char</span>      **sArray;</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> </div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>   <span class="keywordtype">int</span>        icheck[25];</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>   <span class="keywordtype">float</span>      fcheck[25];</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>   <span class="keywordtype">double</span>     dcheck[25];</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>      *scheck[25];</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> </div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>      *unit;</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>      *names[2];</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>   <span class="keywordtype">int</span>        reverse[2];</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> </div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>   cpl_table  *table;</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>   cpl_table  *copia;</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>   cpl_array  *array;</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> </div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>  *reflist;</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span> </div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span> <span class="comment">  uves_propertylist  *list1;</span></div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> <span class="comment">  uves_propertylist  *list2;</span></div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>   iArray = cpl_malloc(nrows * <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>   fArray = cpl_malloc(nrows * <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>));</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>   dArray = cpl_malloc(nrows * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>   ddArray = cpl_malloc(nrows * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>   sArray = cpl_malloc(nrows * <span class="keyword">sizeof</span>(<span class="keywordtype">char</span> *));</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span> </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>   iArray[0] = 5;</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>   iArray[1] = 0;</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>   iArray[2] = 2;</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>   iArray[3] = 8;</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>   iArray[4] = 9;</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>   iArray[5] = 3;</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>   iArray[6] = 7;</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>   iArray[7] = 1;</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>   iArray[8] = 4;</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>   iArray[9] = 6;</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span> </div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>   fArray[0] = 5.1;</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>   fArray[1] = 0.1;</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>   fArray[2] = 2.1;</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>   fArray[3] = 8.1;</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>   fArray[4] = 9.1;</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>   fArray[5] = 3.1;</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>   fArray[6] = 7.1;</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>   fArray[7] = 1.1;</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>   fArray[8] = 4.1;</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>   fArray[9] = 6.1;</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>   ddArray[0] = dArray[0] = 5.11;</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>   ddArray[1] = dArray[1] = 0.11;</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>   ddArray[2] = dArray[2] = 2.11;</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>   ddArray[3] = dArray[3] = 8.11;</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>   ddArray[4] = dArray[4] = 9.11;</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>   ddArray[5] = dArray[5] = 3.11;</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>   ddArray[6] = dArray[6] = 7.11;</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>   ddArray[7] = dArray[7] = 1.11;</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>   ddArray[8] = dArray[8] = 4.11;</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>   ddArray[9] = dArray[9] = 6.11;</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>   sArray[0] = cpl_strdup(<span class="stringliteral">"caaa"</span>);</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>   sArray[1] = cpl_strdup(<span class="stringliteral">"abcd"</span>);</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>   sArray[2] = cpl_strdup(<span class="stringliteral">"aaaa"</span>);</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>   sArray[3] = cpl_strdup(<span class="stringliteral">"daaa"</span>);</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>   sArray[4] = cpl_strdup(<span class="stringliteral">"acde"</span>);</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>   sArray[5] = cpl_strdup(<span class="stringliteral">"baaa"</span>);</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>   sArray[6] = cpl_strdup(<span class="stringliteral">"aaaa"</span>);</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>   sArray[7] = cpl_strdup(<span class="stringliteral">"acde"</span>);</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>   sArray[8] = cpl_strdup(<span class="stringliteral">" sss"</span>);</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>   sArray[9] = cpl_strdup(<span class="stringliteral">"daaa"</span>);</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> </div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> </div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span> <span class="comment">   *  Testing begins here</span></div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span> </div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span> <span class="comment">   *  Testing tables with zero rows.</span></div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> </div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>   test_data(table, cpl_table_new(0), <span class="stringliteral">"Creating a table without rows... "</span>);</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>   test(cpl_table_new_column(table, <span class="stringliteral">"Int"</span>, CPL_TYPE_INT), </div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>                             <span class="stringliteral">"Creating empty Integer column... "</span>);</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>   test(cpl_table_new_column(table, <span class="stringliteral">"Float"</span>, CPL_TYPE_FLOAT), </div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>                             <span class="stringliteral">"Creating empty Float column... "</span>);</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>   test(cpl_table_new_column(table, <span class="stringliteral">"Double"</span>, CPL_TYPE_DOUBLE), </div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>                             <span class="stringliteral">"Creating empty Double column... "</span>);</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>   test(cpl_table_new_column(table, <span class="stringliteral">"String"</span>, CPL_TYPE_STRING), </div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>                             <span class="stringliteral">"Creating empty String column... "</span>);</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>   test(cpl_table_new_column_array(table, <span class="stringliteral">"AInt"</span>, </div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>                                   CPL_TYPE_INT | CPL_TYPE_POINTER, 0),</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>                                   <span class="stringliteral">"Creating empty IntegerArray column... "</span>);</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>   test(cpl_table_new_column_array(table, <span class="stringliteral">"AFloat"</span>, </div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>                                   CPL_TYPE_FLOAT | CPL_TYPE_POINTER, 0),</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>                                   <span class="stringliteral">"Creating empty FloatArray column... "</span>);</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>   test(cpl_table_new_column_array(table, <span class="stringliteral">"ADouble"</span>, </div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>                                   CPL_TYPE_DOUBLE | CPL_TYPE_POINTER, 0),</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>                                   <span class="stringliteral">"Creating empty DoubleArray column... "</span>);</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> </div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>   test_ivalue(0, cpl_table_get_nrow(table), <span class="stringliteral">"Check zero table length... "</span>);</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>   test_ivalue(7, cpl_table_get_ncol(table), <span class="stringliteral">"Check zero table width... "</span>);</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> </div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>   test_ivalue(0, cpl_table_get_column_depth(table, <span class="stringliteral">"Double"</span>), </div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>               <span class="stringliteral">"Check \"Double\" depth... "</span>);</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>   test_ivalue(0, cpl_table_get_column_depth(table, <span class="stringliteral">"AInt"</span>), </div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>               <span class="stringliteral">"Check \"AInt\" depth... "</span>);</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> </div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>   test(cpl_table_set_size(table, 1), <span class="stringliteral">"Expanding table to one row... "</span>);</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> </div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>   test_ivalue(1, cpl_table_get_nrow(table), <span class="stringliteral">"Check table with one row... "</span>);</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> </div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>   test(cpl_table_set_size(table, 0), <span class="stringliteral">"Deleting all rows from table... "</span>);</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> </div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>   test_ivalue(0, cpl_table_get_nrow(table), </div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>               <span class="stringliteral">"Check again zero table length... "</span>);</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span> </div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>   test(cpl_table_erase_column(table, <span class="stringliteral">"Double"</span>),</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>                               <span class="stringliteral">"Delete zero-column \"Double\"... "</span>);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span> </div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>   test_ivalue(6, cpl_table_get_ncol(table), <span class="stringliteral">"Check zero-column removal... "</span>);</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> </div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>   test(cpl_table_erase_column(table, <span class="stringliteral">"AInt"</span>),</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                               <span class="stringliteral">"Delete zero-column \"AInt\"... "</span>);</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>   test_ivalue(5, cpl_table_get_ncol(table), </div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>               <span class="stringliteral">"Check zero-column array removal... "</span>);</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> </div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>   test_pvalue(NULL, cpl_table_get_data_float(table, <span class="stringliteral">"Float"</span>),</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>                             <span class="stringliteral">"Check NULL pointer to column Float... "</span>);</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> </div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>   test_failure(CPL_ERROR_NULL_INPUT, </div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>                cpl_table_erase_selected(NULL),</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>                <span class="stringliteral">"Erase selected on NULL table... "</span>);</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span> </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>   test(cpl_table_erase_selected(table),</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>        <span class="stringliteral">"Erase selected on empty table... "</span>);</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span> </div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>   test_failure(CPL_ERROR_NULL_INPUT, </div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                cpl_table_set_column_unit(NULL, <span class="stringliteral">"Float"</span>, <span class="stringliteral">"arcsec"</span>),</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>                <span class="stringliteral">"Try to assign unit to NULL table... "</span>);</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span> </div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>   test_failure(CPL_ERROR_NULL_INPUT, </div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>                cpl_table_set_column_unit(table, NULL, <span class="stringliteral">"arcsec"</span>),</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>                <span class="stringliteral">"Try to assign unit to NULL column... "</span>);</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> </div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>   test_failure(CPL_ERROR_DATA_NOT_FOUND, </div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>                cpl_table_set_column_unit(table, <span class="stringliteral">"Double"</span>, <span class="stringliteral">"arcsec"</span>),</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>                <span class="stringliteral">"Try to assign unit to non existing column... "</span>);</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span> </div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>   test(cpl_table_set_column_unit(table, <span class="stringliteral">"Float"</span>, <span class="stringliteral">"arcsec"</span>),</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                <span class="stringliteral">"Assign unit 'arcsec' to column Float... "</span>);</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span> </div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>   <span class="keywordflow">if</span> (strcmp(unit = (<span class="keywordtype">char</span> *)cpl_table_get_column_unit(table, <span class="stringliteral">"Float"</span>), </div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>       <span class="stringliteral">"arcsec"</span>)) {</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     printf(<span class="stringliteral">"Check column unit... "</span>);</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     printf(<span class="stringliteral">"Expected \"arcsec\", obtained \"%s\"\n"</span>, unit);</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>   }</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span> </div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>   test(cpl_table_set_column_unit(table, <span class="stringliteral">"Float"</span>, NULL),</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>                <span class="stringliteral">"Assign unit NULL to column Float... "</span>);</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> </div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>   test_pvalue(NULL, (<span class="keywordtype">char</span> *)cpl_table_get_column_unit(table, <span class="stringliteral">"Float"</span>),</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>               <span class="stringliteral">"Get unit NULL from column Float... "</span>);</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>   test(cpl_table_set_size(table, 1), <span class="stringliteral">"Expanding again table to one row... "</span>);</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> </div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>   test(cpl_table_erase_invalid_rows(table), <span class="stringliteral">"Pruning table to zero... "</span>);</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> </div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>   test_ivalue(1, cpl_table_get_nrow(table),</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>                        <span class="stringliteral">"Checking zero-table length after pruning... "</span>);</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>   test_ivalue(0, cpl_table_get_ncol(table),</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>                        <span class="stringliteral">"Checking zero-table width after pruning... "</span>);</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span> </div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span> </div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> <span class="comment">/* %%% */</span></div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> <span class="comment">   *  Testing tables with more rows</span></div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span> </div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>   test_data(table, cpl_table_new(nrows), <span class="stringliteral">"Creating the test table... "</span>);</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span> </div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>   test(cpl_table_wrap_int(table, iArray, <span class="stringliteral">"Integer"</span>), </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>                                          <span class="stringliteral">"Wrapping the Integer column... "</span>);</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> </div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> <span class="comment">//  test_pvalue(iArray, cpl_table_unwrap(table, "Integer"),</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span> <span class="comment">//                                         "Unwrap the Integer column data... ");</span></div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>   cpl_table_unwrap(table, <span class="stringliteral">"Integer"</span>);</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span> </div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>   test(cpl_table_wrap_int(table, iArray, <span class="stringliteral">"Integer"</span>), </div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>                                          <span class="stringliteral">"Creating the Integer column... "</span>);</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> </div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>   test(cpl_table_wrap_double(table, dArray, <span class="stringliteral">"Double"</span>), </div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>                                          <span class="stringliteral">"Creating the Double column... "</span>);</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> </div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>   test(cpl_table_wrap_double(table, ddArray, <span class="stringliteral">"DoubleDouble"</span>), </div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>                                   <span class="stringliteral">"Creating the DoubleDouble column... "</span>);</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>   test(cpl_table_wrap_string(table, sArray, <span class="stringliteral">"String"</span>),</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>                                          <span class="stringliteral">"Creating the String column... "</span>);</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span> </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>   test(cpl_table_new_column(table, <span class="stringliteral">"Float"</span>, CPL_TYPE_FLOAT),</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>                                          <span class="stringliteral">"Creating the Float column... "</span>);</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span> </div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     sprintf(message, <span class="stringliteral">"Writing to row %d of the Float column... "</span>, i);</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>     test(cpl_table_set_float(table, <span class="stringliteral">"Float"</span>, i, fArray[i]), message);</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>   }</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span> </div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>   test(cpl_table_new_column_array(table, <span class="stringliteral">"AInt"</span>, </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>                                   CPL_TYPE_INT | CPL_TYPE_POINTER, 2),</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>                                   <span class="stringliteral">"Creating the ArrayInt column... "</span>);</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span> </div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>   test(cpl_table_new_column_array(table, <span class="stringliteral">"AFloat"</span>, CPL_TYPE_FLOAT, 2),</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>                                   <span class="stringliteral">"Creating the ArrayFloat column... "</span>);</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span> </div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>   test(cpl_table_new_column_array(table, <span class="stringliteral">"ADouble"</span>, </div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>                                   CPL_TYPE_DOUBLE | CPL_TYPE_POINTER, 2),</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>                                   <span class="stringliteral">"Creating the ArrayDouble column... "</span>);</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> </div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>   test_ivalue(2, cpl_table_get_column_depth(table, <span class="stringliteral">"AInt"</span>), </div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>               <span class="stringliteral">"Check \"AInt\" depth (2)... "</span>);</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>   k = 0;</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>   array = cpl_array_new(2, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     <span class="keywordflow">for</span> (j = 0; j < 2; j++) {</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>       sprintf(message, </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>               <span class="stringliteral">"Writing element %d of array %d of the AInt column... "</span>, j, i);</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>       k++;</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>       test(cpl_array_set_int(array, j, k), message);</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     }</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>     sprintf(message, <span class="stringliteral">"Setting array at position %d of the AInt column... "</span>, i);</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     test(cpl_table_set_array(table, <span class="stringliteral">"AInt"</span>, i, array), message);</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>   }</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>   cpl_array_delete(array);</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> </div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>   k = 0;</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     sprintf(message, <span class="stringliteral">"Getting array %d of the AInt column... "</span>, i);</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>     test_data(array, (cpl_array *)cpl_table_get_array(table, <span class="stringliteral">"AInt"</span>, i), </div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>               message);</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>     <span class="keywordflow">for</span> (j = 0; j < 2; j++) {</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>       sprintf(message,</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>               <span class="stringliteral">"Reading element %d of array %d of the AInt column... "</span>, j, i);</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>       k++;</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>       test_ivalue(k, cpl_array_get_int(array, j, NULL), message);</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>     }</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>   }</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span> </div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>   k = 0;</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>   array = cpl_array_new(2, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>     <span class="keywordflow">for</span> (j = 0; j < 2; j++) {</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>       sprintf(message, </div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>               <span class="stringliteral">"Writing element %d of array %d of the AFloat column... "</span>, j, i);</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>       k++;</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>       test(cpl_array_set_float(array, j, k), message);</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>     }</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>     sprintf(message, </div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>             <span class="stringliteral">"Setting array at position %d of the AFloat column... "</span>, i);</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>     test(cpl_table_set_array(table, <span class="stringliteral">"AFloat"</span>, i, array), message);</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>   }</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>   cpl_array_delete(array);</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>   </div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>   k = 0;</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>     sprintf(message, <span class="stringliteral">"Getting array %d of the AFloat column... "</span>, i);</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>     test_data(array, (cpl_array *)cpl_table_get_array(table, <span class="stringliteral">"AFloat"</span>, i),  </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>               message);</div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>     <span class="keywordflow">for</span> (j = 0; j < 2; j++) {</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>       sprintf(message,</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>               <span class="stringliteral">"Reading element %d of array %d of the AFloat column... "</span>, j, i);</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>       k++;</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>       test_fvalue((<span class="keywordtype">float</span>)k, 0.0001, </div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>             cpl_array_get_float(array, j, NULL), message);</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>     }</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>   }</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> </div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>   k = 0;</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>   array = cpl_array_new(2, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>     <span class="keywordflow">for</span> (j = 0; j < 2; j++) {</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>       sprintf(message, </div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>               <span class="stringliteral">"Writing element %d of array %d of the ADouble column... "</span>, j, i);</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>       k++;</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>       test(cpl_array_set_double(array, j, k), message);</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>     }</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>     sprintf(message, </div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>             <span class="stringliteral">"Setting array at position %d of the ADouble column... "</span>, i);</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>     test(cpl_table_set_array(table, <span class="stringliteral">"ADouble"</span>, i, array), message);</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>   }</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>   cpl_array_delete(array);</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>   </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>   k = 0;</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>     sprintf(message, <span class="stringliteral">"Getting array %d of the ADouble column... "</span>, i);</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>     test_data(array, (cpl_array *)cpl_table_get_array(table, <span class="stringliteral">"ADouble"</span>, i),</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>               message);</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>     <span class="keywordflow">for</span> (j = 0; j < 2; j++) {</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>       sprintf(message,</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>               <span class="stringliteral">"Reading element %d of array %d of the ADouble column... "</span>, j, i);</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>       k++;</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>       test_fvalue((<span class="keywordtype">float</span>)k, 0.0001, </div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>             cpl_array_get_double(array, j, NULL), message);</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>     }</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>   }</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> </div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>   test_ivalue(2, cpl_table_get_column_depth(table, <span class="stringliteral">"AInt"</span>), </div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>               <span class="stringliteral">"Check \"AInt\" depth (3)... "</span>);</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> </div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>   test_data(array, (cpl_array *)cpl_table_get_array(table, <span class="stringliteral">"AInt"</span>, 0), </div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>             <span class="stringliteral">"Get AInt array"</span>);</div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>   test_ivalue(CPL_TYPE_INT, cpl_array_get_type(array),</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>               <span class="stringliteral">"Array AInt must be int... "</span>);</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> </div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> <span class="comment">/**** %%%</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span> <span class="comment">  list1 = uves_propertylist_new();</span></div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> <span class="comment">  uves_propertylist_append_bool(list1, "hierarch eso ins bool", 0);</span></div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> <span class="comment">  uves_propertylist_append_bool(list1, "hierarch eso ins bool", 0);</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> <span class="comment">  uves_propertylist_set_comment(list1, "hierarch eso ins bool", "This is a comment");</span></div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> <span class="comment">  uves_propertylist_append_int(list1, "NAXIS", 111);</span></div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> <span class="comment">  uves_propertylist_set_comment(list1, "NAXIS", "This is a comment");</span></div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> <span class="comment">  uves_propertylist_append_long(list1, "long", 111111111);</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> <span class="comment">  uves_propertylist_set_comment(list1, "long", "This is a comment");</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> <span class="comment">  uves_propertylist_append_float(list1, "float", 4.4);</span></div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span> <span class="comment">  uves_propertylist_set_comment(list1, "float", "This is a comment");</span></div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span> <span class="comment">  uves_propertylist_append_double(list1, "double", 8.8);</span></div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span> <span class="comment">  uves_propertylist_set_comment(list1, "double", "This is a comment");</span></div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> <span class="comment">  uves_propertylist_append_char(list1, "char", 'D');</span></div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span> <span class="comment">  uves_propertylist_set_comment(list1, "char", "This is a comment");</span></div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> <span class="comment">  list2 = uves_propertylist_new();</span></div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> <span class="comment">  uves_propertylist_append_string(list2, "hierarch eso det string", "This is a test");</span></div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span> <span class="comment">  uves_propertylist_set_comment(list2, "hierarch eso det string", "This is a comment");</span></div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span> <span class="comment">  uves_propertylist_append_int(list2, "TFIELDS", 3000);</span></div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span> <span class="comment">  uves_propertylist_set_comment(list2, "TFIELDS", "This is a comment");</span></div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span> <span class="comment">  uves_propertylist_append_string(list2, "TUNIT2", "This is a test");</span></div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span> <span class="comment">  uves_propertylist_set_comment(list2, "TUNIT2", "This is a comment");</span></div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span> <span class="comment">  uves_propertylist_append_string(list2, "TFORM1", "This is a test");</span></div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span> <span class="comment">  uves_propertylist_set_comment(list2, "TFORM1", "This is a comment");</span></div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span> <span class="comment">  uves_propertylist_append_string(list2, "TTYPE3", "This is a test");</span></div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> <span class="comment">  uves_propertylist_set_comment(list2, "TTYPE3", "This is a comment");</span></div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span> <span class="comment">  uves_propertylist_append_bool(list2, "hierarch eso ins bool", 0);</span></div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span> <span class="comment">  uves_propertylist_set_comment(list2, "hierarch eso ins bool", "This is a comment");</span></div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> <span class="comment">  uves_propertylist_append_int(list2, "hierarch eso det int", 111);</span></div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span> <span class="comment">  uves_propertylist_set_comment(list2, "hierarch eso det int", "This is a comment");</span></div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> <span class="comment">  uves_propertylist_append_long(list2, "long", 111111111);</span></div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span> <span class="comment">  uves_propertylist_set_comment(list2, "long", "This is a comment");</span></div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span> <span class="comment">  uves_propertylist_append_float(list2, "float", 4.4);</span></div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> <span class="comment">  uves_propertylist_set_comment(list2, "float", "This is a comment");</span></div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> <span class="comment">  uves_propertylist_append_double(list2, "double", 8.8);</span></div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span> <span class="comment">  uves_propertylist_set_comment(list2, "double", "This is a comment");</span></div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span> <span class="comment">  uves_propertylist_append_char(list2, "char", 'D');</span></div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span> <span class="comment">  uves_propertylist_set_comment(list2, "char", "This is a comment");</span></div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span> <span class="comment">****/</span></div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span> </div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span> <span class="comment">/****</span></div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span> <span class="comment">  uves_propertylist_delete(list1);</span></div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span> <span class="comment">  uves_propertylist_delete(list2);</span></div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> <span class="comment">****/</span></div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span> </div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>   test_ivalue(10, cpl_table_get_nrow(table), <span class="stringliteral">"Check table length (1)... "</span>);</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>   test_ivalue(8, cpl_table_get_ncol(table), <span class="stringliteral">"Check table width... "</span>);</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span> </div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>   test_failure(CPL_ERROR_DATA_NOT_FOUND, </div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                cpl_table_erase_column(table, <span class="stringliteral">"Diable"</span>), </div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>                <span class="stringliteral">"Trying to delete a not existing column... "</span>);</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> </div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>   test(cpl_table_erase_column(table, <span class="stringliteral">"DoubleDouble"</span>), </div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>                                 <span class="stringliteral">"Delete column \"DoubleDouble\"... "</span>);</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span> </div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>   test_ivalue(7, cpl_table_get_ncol(table), <span class="stringliteral">"Check again table width... "</span>);</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>   test_ivalue(CPL_TYPE_INT, cpl_table_get_column_type(table, <span class="stringliteral">"Integer"</span>),</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>                                 <span class="stringliteral">"Column Integer must be int... "</span>);</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>   test_ivalue(CPL_TYPE_DOUBLE, cpl_table_get_column_type(table, <span class="stringliteral">"Double"</span>),</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>                                 <span class="stringliteral">"Column Double must be double... "</span>);</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>   test_ivalue(CPL_TYPE_STRING, cpl_table_get_column_type(table, <span class="stringliteral">"String"</span>),</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>                                 <span class="stringliteral">"Column String must be char*... "</span>);</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>   test_ivalue(CPL_TYPE_FLOAT, cpl_table_get_column_type(table, <span class="stringliteral">"Float"</span>),</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>                                 <span class="stringliteral">"Column Float must be float... "</span>);</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>   test_ivalue((CPL_TYPE_INT | CPL_TYPE_POINTER), </div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>               cpl_table_get_column_type(table, <span class="stringliteral">"AInt"</span>),</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>               <span class="stringliteral">"Column AInt must be arrays of int... "</span>);</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>   test_ivalue((CPL_TYPE_DOUBLE | CPL_TYPE_POINTER), </div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>               cpl_table_get_column_type(table, <span class="stringliteral">"ADouble"</span>),</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>               <span class="stringliteral">"Column Double must be arrays of double... "</span>);</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>   test_ivalue((CPL_TYPE_FLOAT | CPL_TYPE_POINTER), </div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>               cpl_table_get_column_type(table, <span class="stringliteral">"AFloat"</span>),</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>               <span class="stringliteral">"Column Float must be arrays of float... "</span>);</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> </div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> <span class="comment">//  test_pvalue(iArray, cpl_table_get_data_int(table, "Integer"),</span></div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span> <span class="comment">//                                "Check pointer to column Integer data... ");</span></div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> <span class="comment">//  test_pvalue(dArray, cpl_table_get_data_double(table, "Double"),</span></div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span> <span class="comment">//                                "Check pointer to column Double data... ");</span></div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span> <span class="comment">//  test_pvalue(sArray, cpl_table_get_data_string(table, "String"),</span></div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span> <span class="comment">//                                "Check pointer to column String data... ");</span></div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span> </div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> </div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>   copia = cpl_table_new(5);</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span> </div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>   test(cpl_table_copy_structure(copia, table),</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>        <span class="stringliteral">"Creating a new cpl_table modeled on an existing cpl_table... "</span>);</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span> </div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>   test_ivalue(5, cpl_table_get_nrow(copia), <span class="stringliteral">"Check table length (2)... "</span>);</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>   test_ivalue(7, cpl_table_get_ncol(copia), <span class="stringliteral">"Check table width... "</span>);</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> </div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>   test(cpl_table_compare_structure(table, copia), </div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>                                  <span class="stringliteral">"Tables must have the same structure... "</span>);</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>   cpl_table_erase_column(copia, <span class="stringliteral">"Double"</span>);</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>   test_ivalue(1, cpl_table_compare_structure(table, copia), </div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>     <span class="stringliteral">"Deleting column Double - now tables must have different structure... "</span>);</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>   test(cpl_table_new_column(copia, <span class="stringliteral">"Double"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>                                  <span class="stringliteral">"Creating again the Double column... "</span>);</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>   test(cpl_table_compare_structure(table, copia), </div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>                          <span class="stringliteral">"Tables must have the same structure again... "</span>);</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span> </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>   test(cpl_table_fill_column_window_int(copia, <span class="stringliteral">"Integer"</span>, 0, 5, -1),</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>                                  <span class="stringliteral">"Fill column Integer of new table... "</span>);</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>   test(cpl_table_fill_column_window_double(copia, <span class="stringliteral">"Double"</span>, 0, 5, -1.11),</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>                                  <span class="stringliteral">"Fill column Double of new table... "</span>);</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>   test(cpl_table_fill_column_window_float(copia, <span class="stringliteral">"Float"</span>, 0, 5, -1.1),</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>                                  <span class="stringliteral">"Fill column Float of new table... "</span>);</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>   test(cpl_table_fill_column_window_string(copia, <span class="stringliteral">"String"</span>, 0, 5, <span class="stringliteral">"extra"</span>),</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                                  <span class="stringliteral">"Fill column String of new table... "</span>);</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span> </div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>   array = cpl_array_new(2, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>   <span class="keywordflow">for</span> (j = 0; j < 2; j++)</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>     cpl_array_set_int(array, j, j);</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>   test(cpl_table_fill_column_window_array(copia, <span class="stringliteral">"AInt"</span>, 0, 5, array),</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>                                  <span class="stringliteral">"Fill column AInt of new table... "</span>);</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>   cpl_array_delete(array);</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span> </div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>   array = cpl_array_new(2, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span>   <span class="keywordflow">for</span> (j = 0; j < 2; j++) </div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>     cpl_array_set_float(array, j, j);</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>   test(cpl_table_fill_column_window_array(copia, <span class="stringliteral">"AFloat"</span>, 0, 5, array),</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>                                  <span class="stringliteral">"Fill column AFloat of new table... "</span>);</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>   cpl_array_delete(array);</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> </div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>   array = cpl_array_new(2, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>   <span class="keywordflow">for</span> (j = 0; j < 2; j++) </div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>     cpl_array_set_double(array, j, j);</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>   test(cpl_table_fill_column_window_array(copia, <span class="stringliteral">"ADouble"</span>, 0, 5, array),</div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>                                  <span class="stringliteral">"Fill column ADouble of new table... "</span>);</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>   cpl_array_delete(array);</div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> </div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>   test(cpl_table_insert(table, copia, 15), </div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>                                  <span class="stringliteral">"Appending new table to old table... "</span>);</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>   test(cpl_table_insert(table, copia, 5), </div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>                                  <span class="stringliteral">"Inserting new table in old table... "</span>);</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>   test(cpl_table_insert(table, copia, 0), </div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>                                  <span class="stringliteral">"Prepending new table to old table... "</span>);</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> </div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> </div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> </div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>   </div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>   test_ivalue(25, cpl_table_get_nrow(table), <span class="stringliteral">"Check table length (3)... "</span>);</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> </div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>   icheck[0] = -1;</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>   icheck[1] = -1;</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>   icheck[2] = -1;</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>   icheck[3] = -1;</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>   icheck[4] = -1;</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>   icheck[5] = 5;</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>   icheck[6] = 0;</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>   icheck[7] = 2;</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>   icheck[8] = 8;</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>   icheck[9] = 9;</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>   icheck[10] = -1;</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>   icheck[11] = -1;</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>   icheck[12] = -1;</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>   icheck[13] = -1;</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>   icheck[14] = -1;</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>   icheck[15] = 3;</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>   icheck[16] = 7;</div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>   icheck[17] = 1;</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>   icheck[18] = 4;</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>   icheck[19] = 6;</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>   icheck[20] = -1;</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>   icheck[21] = -1;</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>   icheck[22] = -1;</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>   icheck[23] = -1;</div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>   icheck[24] = -1;</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> </div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>   error = 0;</div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> </div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>     <span class="keywordflow">if</span> (cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, i, NULL) != icheck[i]) {</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>       error = 1;</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>     }</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>   }</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> </div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>     printf(<span class="stringliteral">"Check Integer column... "</span>);</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>     </div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>   }</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span> </div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>   dcheck[0] = -1.1100;</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>   dcheck[1] = -1.1100;</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>   dcheck[2] = -1.1100;</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>   dcheck[3] = -1.1100;</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>   dcheck[4] = -1.1100;</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>   dcheck[5] = 5.1100;</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>   dcheck[6] = 0.1100;</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>   dcheck[7] = 2.1100;</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>   dcheck[8] = 8.1100;</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>   dcheck[9] = 9.1100;</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>   dcheck[10] = -1.1100;</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>   dcheck[11] = -1.1100;</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>   dcheck[12] = -1.1100;</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>   dcheck[13] = -1.1100;</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>   dcheck[14] = -1.1100;</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>   dcheck[15] = 3.1100;</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>   dcheck[16] = 7.1100;</div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>   dcheck[17] = 1.1100;</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>   dcheck[18] = 4.1100;</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>   dcheck[19] = 6.1100;</div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>   dcheck[20] = -1.1100;</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>   dcheck[21] = -1.1100;</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>   dcheck[22] = -1.1100;</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>   dcheck[23] = -1.1100;</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>   dcheck[24] = -1.1100;</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> </div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>   error = 0;</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span> </div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>     <span class="keywordflow">if</span> (fabs(cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, i, NULL) - dcheck[i]) </div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>                                                                   > 0.00001) {</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>       error = 1;</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>     }</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>   }</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span> </div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>     printf(<span class="stringliteral">"Check Double column... "</span>);</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>     </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>   }</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>   scheck[0] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>   scheck[1] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>   scheck[2] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>   scheck[3] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>   scheck[4] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>   scheck[5] = <span class="stringliteral">"caaa"</span>;</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>   scheck[6] = <span class="stringliteral">"abcd"</span>;</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>   scheck[7] = <span class="stringliteral">"aaaa"</span>;</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>   scheck[8] = <span class="stringliteral">"daaa"</span>;</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>   scheck[9] = <span class="stringliteral">"acde"</span>;</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>   scheck[10] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>   scheck[11] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>   scheck[12] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>   scheck[13] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>   scheck[14] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>   scheck[15] = <span class="stringliteral">"baaa"</span>;</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>   scheck[16] = <span class="stringliteral">"aaaa"</span>;</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>   scheck[17] = <span class="stringliteral">"acde"</span>;</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>   scheck[18] = <span class="stringliteral">" sss"</span>;</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>   scheck[19] = <span class="stringliteral">"daaa"</span>;</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>   scheck[20] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>   scheck[21] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>   scheck[22] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>   scheck[23] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>   scheck[24] = <span class="stringliteral">"extra"</span>;</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> </div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>   error = 0;</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> </div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>     <span class="keywordflow">if</span> (strcmp(cpl_table_get_string(table, <span class="stringliteral">"String"</span>, i), scheck[i])) {</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>       error = 1;</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>     }</div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>   }</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span> </div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>     printf(<span class="stringliteral">"Check String column... "</span>);</div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>     </div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>   }</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> </div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>   fcheck[0] = -1.10;</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>   fcheck[1] = -1.10;</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>   fcheck[2] = -1.10;</div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>   fcheck[3] = -1.10;</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>   fcheck[4] = -1.10;</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>   fcheck[5] = 5.10;</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>   fcheck[6] = 0.10;</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>   fcheck[7] = 2.10;</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>   fcheck[8] = 8.10;</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>   fcheck[9] = 9.10;</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>   fcheck[10] = -1.10;</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>   fcheck[11] = -1.10;</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>   fcheck[12] = -1.10;</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>   fcheck[13] = -1.10;</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>   fcheck[14] = -1.10;</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>   fcheck[15] = 3.10;</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>   fcheck[16] = 7.10;</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>   fcheck[17] = 1.10;</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>   fcheck[18] = 4.10;</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>   fcheck[19] = 6.10;</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>   fcheck[20] = -1.10;</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>   fcheck[21] = -1.10;</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>   fcheck[22] = -1.10;</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>   fcheck[23] = -1.10;</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>   fcheck[24] = -1.10;</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> </div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>   error = 0;</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span> </div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>     <span class="keywordflow">if</span> (fabs(cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, i, NULL) - fcheck[i])</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>                                                                   > 0.00001) {</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>       error = 1;</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>     }</div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>   }</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> </div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>     printf(<span class="stringliteral">"Check Float column... "</span>);</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>     </div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>   }</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> </div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"Integer"</span>, 0), </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>                              <span class="stringliteral">"Set Integer 0 to NULL... "</span>);</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"Integer"</span>, 5), </div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>                              <span class="stringliteral">"Set Integer 5 to NULL... "</span>);</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"Integer"</span>, 24), </div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>                              <span class="stringliteral">"Set Integer 24 to NULL... "</span>);</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> </div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"AInt"</span>, 0),</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>                              <span class="stringliteral">"Set AInt 0 to NULL... "</span>);</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"AFloat"</span>, 5),</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>                              <span class="stringliteral">"Set AFloat 5 to NULL... "</span>);</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"ADouble"</span>, 24),</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>                              <span class="stringliteral">"Set ADouble 24 to NULL... "</span>);</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> </div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> </div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> </div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>   test_ivalue(3, cpl_table_count_invalid(table, <span class="stringliteral">"Integer"</span>), </div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>               <span class="stringliteral">"Count Integer written NULLs... "</span>);</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>   test_ivalue(1, cpl_table_count_invalid(table, <span class="stringliteral">"AInt"</span>),</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>               <span class="stringliteral">"Count AInt written NULLs... "</span>);</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>   test_ivalue(1, cpl_table_count_invalid(table, <span class="stringliteral">"AFloat"</span>),</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>               <span class="stringliteral">"Count AFloat written NULLs... "</span>);</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>   test_ivalue(1, cpl_table_count_invalid(table, <span class="stringliteral">"ADouble"</span>),</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>               <span class="stringliteral">"Count ADouble written NULLs... "</span>);</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span> </div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>   error = 0;</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> </div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>     cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, i, &null);</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>     <span class="keywordflow">if</span> (!null) {</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>       <span class="keywordflow">if</span> (cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, i, &null) != icheck[i]) {</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>         error = 1;</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>       }</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>     }</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i != 0 && i != 5 && i != 24) {</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>       error = 1;</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>     }</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>   }</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span> </div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>     printf(<span class="stringliteral">"Check Integer column... "</span>);</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>     </div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>   }</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> </div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>   test(cpl_table_set_int(table, <span class="stringliteral">"Integer"</span>, 0, -1), </div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>                                               <span class="stringliteral">"Set Integer 0 to -1... "</span>);</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>   test(cpl_table_set_int(table, <span class="stringliteral">"Integer"</span>, 5, 5), </div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>                                               <span class="stringliteral">"Set Integer 5 to 5... "</span>);</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>   test(cpl_table_set_int(table, <span class="stringliteral">"Integer"</span>, 24, -1), </div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>                                               <span class="stringliteral">"Set Integer 24 to -1... "</span>);</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> </div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>   array = cpl_array_new(2, CPL_TYPE_INT);</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>   <span class="keywordflow">for</span> (j = 0; j < 2; j++)</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>     cpl_array_set_int(array, j, j);</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>   test(cpl_table_set_array(table, <span class="stringliteral">"AInt"</span>, 0, array),</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>                            <span class="stringliteral">"Set a valid array to AInt 0... "</span>);</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>   cpl_array_delete(array);</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>   test_ivalue(0, cpl_table_count_invalid(table, <span class="stringliteral">"AInt"</span>),</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>               <span class="stringliteral">"No invalid elements in AInt... "</span>);</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span> </div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>   array = cpl_array_new(2, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>   <span class="keywordflow">for</span> (j = 0; j < 2; j++)</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>     cpl_array_set_float(array, j, j);</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>   test(cpl_table_set_array(table, <span class="stringliteral">"AFloat"</span>, 5, array),</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>                            <span class="stringliteral">"Set a valid array to AFloat 5... "</span>);</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>   cpl_array_delete(array);</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>   test_ivalue(0, cpl_table_count_invalid(table, <span class="stringliteral">"AFloat"</span>),</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>               <span class="stringliteral">"No invalid elements in AFloat... "</span>);</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span> </div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>   array = cpl_array_new(2, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>   <span class="keywordflow">for</span> (j = 0; j < 2; j++)</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>     cpl_array_set_double(array, j, j);</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>   test(cpl_table_set_array(table, <span class="stringliteral">"ADouble"</span>, 24, array),</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>                            <span class="stringliteral">"Set a valid array to ADouble 24... "</span>);</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>   cpl_array_delete(array);</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>   test_ivalue(0, cpl_table_count_invalid(table, <span class="stringliteral">"ADouble"</span>),</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>               <span class="stringliteral">"No invalid elements in ADouble... "</span>);</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> </div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span> </div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span> </div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>   test_ivalue(0, cpl_table_count_invalid(table, <span class="stringliteral">"Integer"</span>), </div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>                                               <span class="stringliteral">"Count NULLs... "</span>);</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> </div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>   error = 0;</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> </div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>     cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, i, &null);</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>     <span class="keywordflow">if</span> (!null) {</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>       <span class="keywordflow">if</span> (cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, i, &null) != icheck[i]) {</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>         error = 1;</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>       }</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>     }</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>       error = 1;</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>     }</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>   }</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span> </div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>     printf(<span class="stringliteral">"Check Integer column... "</span>);</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>     </div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>   }</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span> </div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"Double"</span>, 0), <span class="stringliteral">"Set Double 0 to NULL... "</span>);</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"Double"</span>, 5), <span class="stringliteral">"Set Double 5 to NULL... "</span>);</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"Double"</span>, 24), <span class="stringliteral">"Set Double 24 to NULL... "</span>);</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span> </div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span> </div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span> </div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>   test_ivalue(3, cpl_table_count_invalid(table, <span class="stringliteral">"Double"</span>), </div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>                                                   <span class="stringliteral">"Count written NULLs... "</span>);</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span> </div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>   error = 0;</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span> </div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>     cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, i, &null);</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>     <span class="keywordflow">if</span> (!null) {</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>       <span class="keywordflow">if</span> (cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, i, &null) != dcheck[i]) {</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>         error = 1;</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>       }</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>     }</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i != 0 && i != 5 && i != 24) {</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>       error = 1;</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>     }</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>   }</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span> </div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>     printf(<span class="stringliteral">"Check Double column... "</span>);</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>     </div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>   }</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span> </div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>   test(cpl_table_set_double(table, <span class="stringliteral">"Double"</span>, 0, -1.11), </div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>                                               <span class="stringliteral">"Set Double 0 to -1.11... "</span>);</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>   test(cpl_table_set_double(table, <span class="stringliteral">"Double"</span>, 5, 5.11), </div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>                                               <span class="stringliteral">"Set Double 5 to 5.11... "</span>);</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>   test(cpl_table_set_double(table, <span class="stringliteral">"Double"</span>, 24, -1.11), </div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>                                               <span class="stringliteral">"Set Double 24 to -1.11... "</span>);</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span> </div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span> </div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span> </div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>   test_ivalue(0, cpl_table_count_invalid(table, <span class="stringliteral">"Double"</span>), </div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>                                                   <span class="stringliteral">"Count NULLs... "</span>);</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span> </div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>   error = 0;</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span> </div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>     cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, i, &null);</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>     <span class="keywordflow">if</span> (!null) {</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>       <span class="keywordflow">if</span> (fabs(cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, i, &null)-dcheck[i])</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>                                                               > 0.00001) {</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>         error = 1;</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>       }</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>     }</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>       error = 1;</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>     }</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>   }</div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span> </div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>     printf(<span class="stringliteral">"Check Double column... "</span>);</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>     </div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>   }</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span> </div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span> </div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"String"</span>, 0), <span class="stringliteral">"Set String 0 to NULL... "</span>);</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"String"</span>, 5), <span class="stringliteral">"Set String 5 to NULL... "</span>);</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"String"</span>, 24), <span class="stringliteral">"Set String 24 to NULL... "</span>);</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span> </div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> </div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> </div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>   test_ivalue(3, cpl_table_count_invalid(table, <span class="stringliteral">"String"</span>), </div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>                                                   <span class="stringliteral">"Count written NULLs... "</span>);</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> </div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>   error = 0;</div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> </div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>     <span class="keywordflow">if</span> (cpl_table_get_string(table, <span class="stringliteral">"String"</span>, i)) {</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>       <span class="keywordflow">if</span> (strcmp(cpl_table_get_string(table, <span class="stringliteral">"String"</span>, i), scheck[i])) {</div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>         error = 1;</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>       }</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>     }</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i != 0 && i != 5 && i != 24) {</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>       error = 1;</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>     }</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>   }</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> </div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>     printf(<span class="stringliteral">"Check String column... "</span>);</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>     </div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>   }</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span> </div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>   test(cpl_table_set_string(table, <span class="stringliteral">"String"</span>, 0, <span class="stringliteral">"extra"</span>),</div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>                                               <span class="stringliteral">"Set String 0 to \"extra\"... "</span>);</div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>   test(cpl_table_set_string(table, <span class="stringliteral">"String"</span>, 5, <span class="stringliteral">"caaa"</span>), </div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>                                               <span class="stringliteral">"Set String 5 to \"caaa\"... "</span>);</div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>   test(cpl_table_set_string(table, <span class="stringliteral">"String"</span>, 24, <span class="stringliteral">"extra"</span>), </div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>                                               <span class="stringliteral">"Set String 24 to \"extra\"... "</span>);</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> </div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span> </div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span> </div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>   test_ivalue(0, cpl_table_count_invalid(table, <span class="stringliteral">"String"</span>), </div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>                                               <span class="stringliteral">"Count NULLs... "</span>);</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span> </div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>   error = 0;</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span> </div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>     <span class="keywordflow">if</span> (cpl_table_get_string(table, <span class="stringliteral">"String"</span>, i)) {</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>       <span class="keywordflow">if</span> (strcmp(cpl_table_get_string(table, <span class="stringliteral">"String"</span>, i), scheck[i])) {</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>         error = 1;</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>       }</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>     }</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>       error = 1;</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>     }</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>   }</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span> </div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>     printf(<span class="stringliteral">"Check String column... "</span>);</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>     </div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>   }</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span> </div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span> </div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"Float"</span>, 0), <span class="stringliteral">"Set Float 0 to NULL... "</span>);</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"Float"</span>, 5), <span class="stringliteral">"Set Float 5 to NULL... "</span>);</div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"Float"</span>, 24), <span class="stringliteral">"Set Float 24 to NULL... "</span>);</div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span> </div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span> </div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span> </div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>   test_ivalue(3, cpl_table_count_invalid(table, <span class="stringliteral">"Float"</span>), </div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>                                                   <span class="stringliteral">"Count written NULLs... "</span>);</div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span> </div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>   error = 0;</div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span> </div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>     cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, i, &null);</div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>     <span class="keywordflow">if</span> (!null) {</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>       <span class="keywordflow">if</span> (cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, i, &null) != fcheck[i]) {</div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>         error = 1;</div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>       }</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>     }</div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i != 0 && i != 5 && i != 24) {</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>       error = 1;</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>     }</div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>   }</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span> </div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>     printf(<span class="stringliteral">"Check Float column... "</span>);</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>     </div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>   }</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span> </div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>   test(cpl_table_set_float(table, <span class="stringliteral">"Float"</span>, 0, -1.1), </div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>                                               <span class="stringliteral">"Set Float 0 to -1.1... "</span>);</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>   test(cpl_table_set_float(table, <span class="stringliteral">"Float"</span>, 5, 5.1), </div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>                                               <span class="stringliteral">"Set Float 5 to 5.1... "</span>);</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>   test(cpl_table_set_float(table, <span class="stringliteral">"Float"</span>, 24, -1.1), </div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>                                               <span class="stringliteral">"Set Float 24 to -1.1... "</span>);</div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span> </div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span> </div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span> </div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>   test_ivalue(0, cpl_table_count_invalid(table, <span class="stringliteral">"Float"</span>), </div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>                                               <span class="stringliteral">"Count NULLs... "</span>);</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span> </div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>   error = 0;</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span> </div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>     cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, i, &null);</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>     <span class="keywordflow">if</span> (!null) {</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>       <span class="keywordflow">if</span> (fabs(cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, i, &null)-fcheck[i])</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>                                                               > 0.00001) {</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>         error = 1;</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>       }</div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>     }</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>       error = 1;</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>     }</div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>   }</div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span> </div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>     printf(<span class="stringliteral">"Check Float column... "</span>);</div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>     </div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>   }</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span> </div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>  <span class="comment">/* %%% */</span></div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span> </div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"Integer"</span>, 0, 3), </div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>                                   <span class="stringliteral">"Set Integer 0-2 to NULL... "</span>);</div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"Integer"</span>, 5, 3), </div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>                                   <span class="stringliteral">"Set Integer 5-7 to NULL... "</span>);</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"Integer"</span>, 20, 20), </div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>                                   <span class="stringliteral">"Set Integer 20 till end to NULL... "</span>);</div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span> </div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"AInt"</span>, 0, 3),</div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>                                   <span class="stringliteral">"Set AInt 0-2 to NULL... "</span>);</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"AInt"</span>, 5, 3),</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>                                   <span class="stringliteral">"Set AInt 5-7 to NULL... "</span>);</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"AInt"</span>, 20, 20),</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>                                   <span class="stringliteral">"Set AInt 20 till end to NULL... "</span>);</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span> </div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span> </div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span> </div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>   test_ivalue(11, cpl_table_count_invalid(table, <span class="stringliteral">"Integer"</span>), </div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>               <span class="stringliteral">"Count Integer NULLs... "</span>);</div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span> </div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>   test_ivalue(11, cpl_table_count_invalid(table, <span class="stringliteral">"AInt"</span>), </div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>               <span class="stringliteral">"Count AInt NULLs... "</span>);</div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span> </div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>   error = 0;</div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span> </div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>     cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, i, &null);</div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>     <span class="keywordflow">if</span> (!null) {</div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>       <span class="keywordflow">if</span> (cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, i, &null) != icheck[i]) {</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>         error = 1;</div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>       }</div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>     }</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((i > 2 && i < 5) || (i > 7 && i < 20)) {</div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>       error = 1;</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>     }</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>   }</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span> </div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>     printf(<span class="stringliteral">"Check Integer column... "</span>);</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>     </div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>   }</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span> </div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"Double"</span>, 0, 3),</div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>                                   <span class="stringliteral">"Set Double 0-2 to NULL... "</span>);</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"Double"</span>, 5, 3),</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>                                   <span class="stringliteral">"Set Double 5-7 to NULL... "</span>);</div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"Double"</span>, 20, 20),</div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>                                   <span class="stringliteral">"Set Double 20 till end to NULL... "</span>);</div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span> </div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span> </div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span> </div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>   test_ivalue(11, cpl_table_count_invalid(table, <span class="stringliteral">"Double"</span>),</div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>                                                <span class="stringliteral">"Count written NULLs... "</span>);</div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span> </div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>   error = 0;</div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span> </div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>     cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, i, &null);</div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>     <span class="keywordflow">if</span> (!null) {</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>       <span class="keywordflow">if</span> (fabs(cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, i, &null)-dcheck[i])</div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>                                                        > 0.000001) {</div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>         error = 1;</div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>       }</div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>     }</div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((i > 2 && i < 5) || (i > 7 && i < 20)) {</div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>       error = 1;</div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>     }</div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>   }</div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span> </div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>     printf(<span class="stringliteral">"Check Double column... "</span>);</div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>     </div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>   }</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span> </div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span> </div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"Float"</span>, 0, 3),</div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>                                   <span class="stringliteral">"Set Float 0-2 to NULL... "</span>);</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"Float"</span>, 5, 3),</div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>                                   <span class="stringliteral">"Set Float 5-7 to NULL... "</span>);</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"Float"</span>, 20, 20),</div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>                                   <span class="stringliteral">"Set Float 20 till end to NULL... "</span>);</div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span> </div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span> </div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span> </div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>   test_ivalue(11, cpl_table_count_invalid(table, <span class="stringliteral">"Float"</span>),</div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>                                                <span class="stringliteral">"Count written NULLs... "</span>);</div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span> </div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>   error = 0;</div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span> </div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>     cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, i, &null);</div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>     <span class="keywordflow">if</span> (!null) {</div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>       <span class="keywordflow">if</span> (fabs(cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, i, &null)-fcheck[i]) </div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>                                                            > 0.000001) {</div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>         error = 1;</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>       }</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>     }</div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((i > 2 && i < 5) || (i > 7 && i < 20)) {</div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>       error = 1;</div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>     }</div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>   }</div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span> </div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>     printf(<span class="stringliteral">"Check Float column... "</span>);</div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>     </div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>   }</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span> </div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span> </div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"String"</span>, 0, 3),</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>                                   <span class="stringliteral">"Set String 0-2 to NULL... "</span>);</div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"String"</span>, 5, 3),</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>                                   <span class="stringliteral">"Set String 5-7 to NULL... "</span>);</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"String"</span>, 20, 20),</div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>                                   <span class="stringliteral">"Set String 20 till end to NULL... "</span>);</div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span> </div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span> </div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span> </div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>   test_ivalue(11, cpl_table_count_invalid(table, <span class="stringliteral">"String"</span>),</div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>                                                <span class="stringliteral">"Count written NULLs... "</span>);</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span> </div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>   error = 0;</div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span> </div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>   <span class="keywordflow">for</span> (i = 0; i < 25; i++) {</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>     <span class="keywordflow">if</span> (cpl_table_get_string(table, <span class="stringliteral">"String"</span>, i)) {</div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>       <span class="keywordflow">if</span> (strcmp(cpl_table_get_string(table, <span class="stringliteral">"String"</span>, i), scheck[i])) {</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>         error = 1;</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>       }</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>     }</div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((i > 2 && i < 5) || (i > 7 && i < 20)) {</div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>       error = 1;</div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>       <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>     }</div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>   }</div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span> </div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>   <span class="keywordflow">if</span> (error) {</div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>     printf(<span class="stringliteral">"Check String column... "</span>);</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>     printf(<span class="stringliteral">"Failure\n"</span>);</div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>     </div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>     <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>   }</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span> </div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>   test(cpl_table_erase_window(table, 21, 4), <span class="stringliteral">"Delete last 4 table rows... "</span>);</div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span> </div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>   test(cpl_table_erase_window(table, 7, 4), </div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>                                <span class="stringliteral">"Delete table rows from 7 to 10... "</span>);</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span> </div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>   test(cpl_table_erase_window(table, 3, 3), </div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>                                <span class="stringliteral">"Delete table rows from 3 to 5... "</span>);</div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span> </div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>   test(cpl_table_erase_window(table, 0, 2), <span class="stringliteral">"Delete first two table rows... "</span>);</div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span> </div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>   test_ivalue(12, cpl_table_get_nrow(table), <span class="stringliteral">"Check table length (4)... "</span>);</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span> </div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>   test_ivalue(3, cpl_table_count_invalid(table, <span class="stringliteral">"Integer"</span>), </div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>                                        <span class="stringliteral">"Count Integer NULLs... "</span>);</div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span> </div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>   test_ivalue(3, cpl_table_count_invalid(table, <span class="stringliteral">"Double"</span>), </div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>                                        <span class="stringliteral">"Count Double NULLs... "</span>);</div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span> </div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>   test_ivalue(3, cpl_table_count_invalid(table, <span class="stringliteral">"String"</span>), </div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>                                        <span class="stringliteral">"Count String NULLs... "</span>);</div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span> </div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>   test_ivalue(3, cpl_table_count_invalid(table, <span class="stringliteral">"Float"</span>), </div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>                                        <span class="stringliteral">"Count Float NULLs... "</span>);</div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span> </div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>   test_ivalue(3, cpl_table_count_invalid(table, <span class="stringliteral">"AInt"</span>),</div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>                                        <span class="stringliteral">"Count AInt NULLs... "</span>);</div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span> </div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>   test_ivalue(0, cpl_table_count_invalid(table, <span class="stringliteral">"ADouble"</span>),</div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>                                        <span class="stringliteral">"Count ADouble NULLs... "</span>);</div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span> </div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>   test_ivalue(0, cpl_table_count_invalid(table, <span class="stringliteral">"AFloat"</span>),</div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>                                        <span class="stringliteral">"Count AFloat NULLs... "</span>);</div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span> </div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>   test(cpl_table_insert_window(table, 20, 5),</div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>                                 <span class="stringliteral">"Append 5 NULLs at table end... "</span>);</div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span> </div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>   test(cpl_table_insert_window(table, 6, 4),</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>                                 <span class="stringliteral">"Insert segment of 4 NULLs at row 6... "</span>);</div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span> </div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>   test(cpl_table_insert_window(table, 1, 2),</div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>                                 <span class="stringliteral">"Insert segment of 2 NULLs at row 1... "</span>);</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span> </div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>   test_ivalue(23, cpl_table_get_nrow(table), <span class="stringliteral">"Check table length (5)... "</span>);</div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span> </div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>   test_ivalue(14, cpl_table_count_invalid(table, <span class="stringliteral">"Integer"</span>), </div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>                                        <span class="stringliteral">"Count Integer NULLs... "</span>);</div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span> </div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>   test_ivalue(14, cpl_table_count_invalid(table, <span class="stringliteral">"Double"</span>), </div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>                                        <span class="stringliteral">"Count Double NULLs... "</span>);</div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span> </div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>   test_ivalue(14, cpl_table_count_invalid(table, <span class="stringliteral">"String"</span>), </div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>                                        <span class="stringliteral">"Count String NULLs... "</span>);</div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span> </div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>   test_ivalue(14, cpl_table_count_invalid(table, <span class="stringliteral">"Float"</span>), </div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>                                        <span class="stringliteral">"Count Float NULLs... "</span>);</div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span> </div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>   test(cpl_table_fill_column_window_int(table, <span class="stringliteral">"Integer"</span>, 0, 2, 999),</div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>        <span class="stringliteral">"Write 999 in \"Integer\" column from 0 to 1... "</span>);</div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span> </div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>   test(cpl_table_fill_column_window_int(table, <span class="stringliteral">"Integer"</span>, 3, 3, 999),</div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>        <span class="stringliteral">"Write 999 in \"Integer\" column from 3 to 5... "</span>);</div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span> </div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>   test(cpl_table_fill_column_window_int(table, <span class="stringliteral">"Integer"</span>, 7, 4, 999),</div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>        <span class="stringliteral">"Write 999 in \"Integer\" column from 7 to 10... "</span>);</div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span> </div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>   test(cpl_table_fill_column_window_int(table, <span class="stringliteral">"Integer"</span>, 20, 7, 999),</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>        <span class="stringliteral">"Write 999 in \"Integer\" column from 20 to end... "</span>);</div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span> </div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>   test(cpl_table_fill_column_window_float(table, <span class="stringliteral">"Float"</span>, 0, 2, 999.99),</div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>        <span class="stringliteral">"Write 999.99 in \"Float\" column from 0 to 1... "</span>);</div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span> </div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>   test(cpl_table_fill_column_window_float(table, <span class="stringliteral">"Float"</span>, 3, 3, 999.99),</div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>        <span class="stringliteral">"Write 999.99 in \"Float\" column from 3 to 5... "</span>);</div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span> </div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>   test(cpl_table_fill_column_window_float(table, <span class="stringliteral">"Float"</span>, 7, 4, 999.99),</div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>        <span class="stringliteral">"Write 999.99 in \"Float\" column from 7 to 10... "</span>);</div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span> </div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>   test(cpl_table_fill_column_window_float(table, <span class="stringliteral">"Float"</span>, 20, 7, 999.99),</div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>        <span class="stringliteral">"Write 999.99 in \"Float\" column from 20 to end... "</span>);</div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span> </div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>   test(cpl_table_fill_column_window_double(table, <span class="stringliteral">"Double"</span>, 0, 2, 999.88),</div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>        <span class="stringliteral">"Write 999.88 in \"Double\" column from 0 to 1... "</span>);</div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span> </div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>   test(cpl_table_fill_column_window_double(table, <span class="stringliteral">"Double"</span>, 3, 3, 999.88),</div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>        <span class="stringliteral">"Write 999.88 in \"Double\" column from 3 to 5... "</span>);</div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span> </div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>   test(cpl_table_fill_column_window_double(table, <span class="stringliteral">"Double"</span>, 7, 4, 999.88),</div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>        <span class="stringliteral">"Write 999.88 in \"Double\" column from 7 to 10... "</span>);</div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span> </div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>   test(cpl_table_fill_column_window_double(table, <span class="stringliteral">"Double"</span>, 20, 7, 999.88),</div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>        <span class="stringliteral">"Write 999.88 in \"Double\" column from 20 to end... "</span>);</div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span> </div>
-<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>   test(cpl_table_fill_column_window_string(table, <span class="stringliteral">"String"</span>, 0, 2, <span class="stringliteral">"999"</span>),</div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>        <span class="stringliteral">"Write \"999\" in \"String\" column from 0 to 1... "</span>);</div>
-<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span> </div>
-<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>   test(cpl_table_fill_column_window_string(table, <span class="stringliteral">"String"</span>, 3, 3, <span class="stringliteral">"999"</span>),</div>
-<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>        <span class="stringliteral">"Write \"999\" in \"String\" column from 3 to 5... "</span>);</div>
-<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span> </div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>   test(cpl_table_fill_column_window_string(table, <span class="stringliteral">"String"</span>, 7, 4, <span class="stringliteral">"999"</span>),</div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>        <span class="stringliteral">"Write \"999\" in \"String\" column from 7 to 10... "</span>);</div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span> </div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>   test(cpl_table_fill_column_window_string(table, <span class="stringliteral">"String"</span>, 20, 7, <span class="stringliteral">"999"</span>),</div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>        <span class="stringliteral">"Write \"999\" in \"String\" column from 20 to end... "</span>);</div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span> </div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span> </div>
-<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span> </div>
-<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>   test_ivalue(23, cpl_table_get_nrow(table), <span class="stringliteral">"Check table length (6)... "</span>);</div>
-<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span> </div>
-<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>   test_ivalue(5, cpl_table_count_invalid(table, <span class="stringliteral">"Integer"</span>), </div>
-<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>                                        <span class="stringliteral">"Count Integer NULLs... "</span>);</div>
-<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span> </div>
-<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>   test_ivalue(5, cpl_table_count_invalid(table, <span class="stringliteral">"Float"</span>), </div>
-<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>                                        <span class="stringliteral">"Count Float NULLs... "</span>);</div>
-<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span> </div>
-<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>   test_ivalue(5, cpl_table_count_invalid(table, <span class="stringliteral">"Double"</span>), </div>
-<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>                                        <span class="stringliteral">"Count Double NULLs... "</span>);</div>
-<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span> </div>
-<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>   test_ivalue(5, cpl_table_count_invalid(table, <span class="stringliteral">"String"</span>), </div>
-<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>                                        <span class="stringliteral">"Count String NULLs... "</span>);</div>
-<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span> </div>
-<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>   test_ivalue(14, cpl_table_count_invalid(table, <span class="stringliteral">"AInt"</span>),</div>
-<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>                                        <span class="stringliteral">"Count AInt NULLs... "</span>);</div>
-<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span> </div>
-<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>   test_ivalue(11, cpl_table_count_invalid(table, <span class="stringliteral">"AFloat"</span>),</div>
-<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>                                        <span class="stringliteral">"Count AFloat NULLs... "</span>);</div>
-<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span> </div>
-<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>   test_ivalue(11, cpl_table_count_invalid(table, <span class="stringliteral">"ADouble"</span>),</div>
-<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>                                        <span class="stringliteral">"Count ADouble NULLs... "</span>);</div>
-<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span> </div>
-<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Integer"</span>, 2), </div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>                     <span class="stringliteral">"Check that third element of \"Integer\" is NULL... "</span>);</div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span> </div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>   test_ivalue(1, cpl_table_is_valid(table, <span class="stringliteral">"Double"</span>, 0), </div>
-<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>                     <span class="stringliteral">"Check that first element of \"Double\" is not NULL... "</span>);</div>
-<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span> </div>
-<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>   test_ivalue(1, cpl_table_is_valid(table, <span class="stringliteral">"String"</span>, 0), </div>
-<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>                     <span class="stringliteral">"Check that first element of \"String\" is not NULL... "</span>);</div>
-<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span> </div>
-<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"String"</span>, 2), </div>
-<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>                     <span class="stringliteral">"Check that third element of \"String\" is NULL... "</span>);</div>
-<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span> </div>
-<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"AInt"</span>, 17),</div>
-<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>                     <span class="stringliteral">"Check that third element of \"AInt\" is NULL... "</span>);</div>
-<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span> </div>
-<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>   test_ivalue(1, cpl_table_is_valid(table, <span class="stringliteral">"ADouble"</span>, 17),</div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>                     <span class="stringliteral">"Check that first element of \"ADouble\" is not NULL... "</span>);</div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span> </div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>   test_ivalue(1, cpl_table_is_valid(table, <span class="stringliteral">"AFloat"</span>, 17),</div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>                     <span class="stringliteral">"Check that third element of \"AFloat\" is NULL... "</span>);</div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span> </div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>   test_data(copia, cpl_table_duplicate(table), <span class="stringliteral">"Duplicate table... "</span>);</div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span> </div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>   test(cpl_table_duplicate_column(table, <span class="stringliteral">"New Integer"</span>, table, <span class="stringliteral">"Integer"</span>),</div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>                         <span class="stringliteral">"Duplicate \"Integer\" column within same table... "</span>);</div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span> </div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>   test(cpl_table_duplicate_column(table, <span class="stringliteral">"New Float"</span>, table, <span class="stringliteral">"Float"</span>),</div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>                         <span class="stringliteral">"Duplicate \"Float\" column within same table... "</span>);</div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span> </div>
-<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>   test(cpl_table_duplicate_column(table, <span class="stringliteral">"New Double"</span>, table, <span class="stringliteral">"Double"</span>),</div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>                         <span class="stringliteral">"Duplicate \"Double\" column within same table... "</span>);</div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span> </div>
-<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>   test(cpl_table_duplicate_column(table, <span class="stringliteral">"New String"</span>, table, <span class="stringliteral">"String"</span>),</div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>                         <span class="stringliteral">"Duplicate \"String\" column within same table... "</span>);</div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span> </div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>   test(cpl_table_duplicate_column(table, <span class="stringliteral">"New AInt"</span>, table, <span class="stringliteral">"AInt"</span>),</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>                         <span class="stringliteral">"Duplicate \"AInt\" column within same table... "</span>);</div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span> </div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>   test(cpl_table_duplicate_column(table, <span class="stringliteral">"New AFloat"</span>, table, <span class="stringliteral">"AFloat"</span>),</div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>                         <span class="stringliteral">"Duplicate \"AFloat\" column within same table... "</span>);</div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span> </div>
-<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>   test(cpl_table_duplicate_column(table, <span class="stringliteral">"New ADouble"</span>, table, <span class="stringliteral">"ADouble"</span>),</div>
-<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>                         <span class="stringliteral">"Duplicate \"ADouble\" column within same table... "</span>);</div>
-<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span> </div>
-<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>   test_ivalue(5, cpl_table_count_invalid(table, <span class="stringliteral">"New Integer"</span>), </div>
-<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>                                        <span class="stringliteral">"Count New Integer NULLs... "</span>);</div>
-<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span> </div>
-<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>   test_ivalue(5, cpl_table_count_invalid(table, <span class="stringliteral">"New Float"</span>), </div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>                                        <span class="stringliteral">"Count New Float NULLs... "</span>);</div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span> </div>
-<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>   test_ivalue(5, cpl_table_count_invalid(table, <span class="stringliteral">"New Double"</span>), </div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>                                        <span class="stringliteral">"Count New Double NULLs... "</span>);</div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span> </div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>   test_ivalue(5, cpl_table_count_invalid(table, <span class="stringliteral">"New String"</span>), </div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>                                        <span class="stringliteral">"Count New String NULLs... "</span>);</div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span> </div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>   test_ivalue(14, cpl_table_count_invalid(table, <span class="stringliteral">"New AInt"</span>),</div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>                                        <span class="stringliteral">"Count New AInt NULLs... "</span>);</div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span> </div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>   test_ivalue(11, cpl_table_count_invalid(table, <span class="stringliteral">"New AFloat"</span>),</div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>                                        <span class="stringliteral">"Count New AFloat NULLs... "</span>);</div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span> </div>
-<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>   test_ivalue(11, cpl_table_count_invalid(table, <span class="stringliteral">"New ADouble"</span>),</div>
-<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>                                        <span class="stringliteral">"Count New ADouble NULLs... "</span>);</div>
-<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span> </div>
-<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>   test(cpl_table_move_column(copia, <span class="stringliteral">"New Integer"</span>, table), </div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>            <span class="stringliteral">"Moving column \"New Integer\" to another table... "</span>);</div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span> </div>
-<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>   test(cpl_table_move_column(copia, <span class="stringliteral">"New Float"</span>, table), </div>
-<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>            <span class="stringliteral">"Moving column \"New Float\" to another table... "</span>);</div>
-<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span> </div>
-<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>   test(cpl_table_move_column(copia, <span class="stringliteral">"New Double"</span>, table), </div>
-<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>            <span class="stringliteral">"Moving column \"New Double\" to another table... "</span>);</div>
-<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span> </div>
-<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>   test(cpl_table_move_column(copia, <span class="stringliteral">"New String"</span>, table), </div>
-<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>            <span class="stringliteral">"Moving column \"New String\" to another table... "</span>);</div>
-<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span> </div>
-<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>   test_failure(CPL_ERROR_ILLEGAL_OUTPUT, </div>
-<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>                cpl_table_name_column(copia, <span class="stringliteral">"New String"</span>, <span class="stringliteral">"String"</span>),</div>
-<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>                <span class="stringliteral">"Try illegal column renaming... "</span>);</div>
-<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span> </div>
-<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>   test(cpl_table_name_column(copia, <span class="stringliteral">"New Integer"</span>, <span class="stringliteral">"Old Integer"</span>),</div>
-<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>            <span class="stringliteral">"Try legal column renaming... "</span>);</div>
-<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span> </div>
-<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"New AInt"</span>, 320);</div>
-<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span> </div>
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span> </div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>   test_ivalue(!0, cpl_table_has_column(copia, <span class="stringliteral">"Old Integer"</span>),</div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>            <span class="stringliteral">"Check if column \"Old Integer\" exists... "</span>);</div>
-<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span> </div>
-<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>   test_svalue(<span class="stringliteral">"Integer"</span>, cpl_table_get_column_name(copia),</div>
-<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>                                             <span class="stringliteral">"Check name column 1... "</span>);</div>
-<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span> </div>
-<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>   test_svalue(<span class="stringliteral">"Double"</span>, cpl_table_get_column_name(NULL),</div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>                                             <span class="stringliteral">"Check name column 2... "</span>);</div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span> </div>
-<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>   test_svalue(<span class="stringliteral">"String"</span>, cpl_table_get_column_name(NULL),</div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>                                             <span class="stringliteral">"Check name column 3... "</span>);</div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span> </div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>   test_svalue(<span class="stringliteral">"Float"</span>, cpl_table_get_column_name(NULL),</div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>                                             <span class="stringliteral">"Check name column 4... "</span>);</div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span> </div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>   test_svalue(<span class="stringliteral">"AInt"</span>, cpl_table_get_column_name(NULL),</div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>                                             <span class="stringliteral">"Check name column 5... "</span>);</div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span> </div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>   test_svalue(<span class="stringliteral">"AFloat"</span>, cpl_table_get_column_name(NULL),</div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>                                             <span class="stringliteral">"Check name column 6... "</span>);</div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>   </div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>   test_svalue(<span class="stringliteral">"ADouble"</span>, cpl_table_get_column_name(NULL),</div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>                                             <span class="stringliteral">"Check name column 7... "</span>);</div>
-<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>   </div>
-<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>   test_svalue(<span class="stringliteral">"Old Integer"</span>, cpl_table_get_column_name(NULL),</div>
-<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>                                             <span class="stringliteral">"Check name column 8... "</span>);</div>
-<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span> </div>
-<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>   test_svalue(<span class="stringliteral">"New Float"</span>, cpl_table_get_column_name(NULL),</div>
-<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>                                             <span class="stringliteral">"Check name column 9... "</span>);</div>
-<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span> </div>
-<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>   test_svalue(<span class="stringliteral">"New Double"</span>, cpl_table_get_column_name(NULL),</div>
-<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>                                             <span class="stringliteral">"Check name column 10... "</span>);</div>
-<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span> </div>
-<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>   test_svalue(<span class="stringliteral">"New String"</span>, cpl_table_get_column_name(NULL),</div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>                                             <span class="stringliteral">"Check name column 11... "</span>);</div>
-<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span> </div>
-<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>   test_pvalue(NULL, (<span class="keywordtype">void</span> *)cpl_table_get_column_name(NULL),</div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>                                             <span class="stringliteral">"Check if no more colums... "</span>);</div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span> </div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span> </div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span> </div>
-<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>   test(cpl_table_set_size(table, 30), <span class="stringliteral">"Expanding table to 30 rows... "</span>);</div>
-<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span> </div>
-<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span> <span class="comment"> * The following would do the same as cpl_table_set_size(table, 30), in</span></div>
-<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span> <span class="comment"> * case cpl_table_set_size() would be crossed out...</span></div>
-<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span> <span class="comment"></span></div>
-<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span> <span class="comment">  test(cpl_table_insert_window(table, 24, 7), "Expanding table to 30 rows... ");</span></div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span> </div>
-<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>   test_ivalue(12, cpl_table_count_invalid(table, <span class="stringliteral">"Integer"</span>),</div>
-<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>                                        <span class="stringliteral">"Count \"Integer\" NULLs... "</span>);</div>
-<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span> </div>
-<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>   test_ivalue(12, cpl_table_count_invalid(table, <span class="stringliteral">"String"</span>),</div>
-<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>                                        <span class="stringliteral">"Count \"String\" NULLs... "</span>);</div>
-<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span> </div>
-<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>   test(cpl_table_set_size(table, 22), <span class="stringliteral">"Truncating table to 22 rows... "</span>);</div>
-<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span> </div>
-<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span> <span class="comment"> * The following would do the same as cpl_table_set_size(table, 30), in</span></div>
-<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span> <span class="comment"> * case cpl_table_set_size() would be crossed out...</span></div>
-<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span> <span class="comment"></span></div>
-<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span> <span class="comment">  test(cpl_table_erase_window(table, 22, 1000), </span></div>
-<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span> <span class="comment">                               "Truncating table to 22 rows... ");</span></div>
-<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span> </div>
-<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"New AInt"</span>, 320);</div>
-<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span> </div>
-<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span> </div>
-<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>   test_ivalue(5, cpl_table_count_invalid(table, <span class="stringliteral">"Integer"</span>),</div>
-<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>                                        <span class="stringliteral">"Count \"Integer\" NULLs (2)... "</span>);</div>
-<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span> </div>
-<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>   test_ivalue(5, cpl_table_count_invalid(table, <span class="stringliteral">"String"</span>),</div>
-<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>                                        <span class="stringliteral">"Count \"String\" NULLs (2)... "</span>);</div>
-<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span> </div>
-<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>   test_data(copia, cpl_table_extract(table, 0, 5), </div>
-<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span>                        <span class="stringliteral">"Creating subtable from rows 0-5 of original... "</span>);</div>
-<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span> </div>
-<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>   test_ivalue(1, cpl_table_count_invalid(copia, <span class="stringliteral">"Integer"</span>),</div>
-<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>                                        <span class="stringliteral">"Count \"Integer\" NULLs... "</span>);</div>
-<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span> </div>
-<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>   test_ivalue(1, cpl_table_count_invalid(copia, <span class="stringliteral">"String"</span>),</div>
-<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>                                        <span class="stringliteral">"Count \"String\" NULLs... "</span>);</div>
-<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span> </div>
-<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span> </div>
-<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>   test_data(copia, cpl_table_extract(table, 8, 5), </div>
-<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>                        <span class="stringliteral">"Creating subtable from rows 8-5 of original... "</span>);</div>
-<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span> </div>
-<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>   test_ivalue(1, cpl_table_count_invalid(copia, <span class="stringliteral">"Float"</span>),</div>
-<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>                                        <span class="stringliteral">"Count \"Float\" NULLs... "</span>);</div>
-<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span> </div>
-<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>   test_ivalue(1, cpl_table_count_invalid(copia, <span class="stringliteral">"String"</span>),</div>
-<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>                                        <span class="stringliteral">"Count \"String\" NULLs... "</span>);</div>
-<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span> </div>
-<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span> </div>
-<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>   test_data(copia, cpl_table_extract(table, 15, 30), </div>
-<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>               <span class="stringliteral">"Creating subtable from rows 15 till end of original... "</span>);</div>
-<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span> </div>
-<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>   test_ivalue(3, cpl_table_count_invalid(copia, <span class="stringliteral">"Double"</span>),</div>
-<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>                                        <span class="stringliteral">"Count \"Double\" NULLs... "</span>);</div>
-<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span> </div>
-<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>   test_ivalue(3, cpl_table_count_invalid(copia, <span class="stringliteral">"String"</span>),</div>
-<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>                                        <span class="stringliteral">"Count \"String\" NULLs... "</span>);</div>
-<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span> </div>
-<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span> </div>
-<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>   test(cpl_table_cast_column(table, <span class="stringliteral">"Float"</span>, <span class="stringliteral">"FloatToInt"</span>, CPL_TYPE_INT),</div>
-<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>                       <span class="stringliteral">"Casting float column to integer colum... "</span>);</div>
-<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span> </div>
-<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"FloatToInt"</span>, -2);</div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"New AInt"</span>, 320);</div>
-<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span> </div>
-<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span> </div>
-<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>   test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 0, NULL),</div>
-<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>                        <span class="stringliteral">"Check element  1 of casted column... "</span>);</div>
-<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>   test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 1, NULL),</div>
-<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>                        <span class="stringliteral">"Check element  2 of casted column... "</span>);</div>
-<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"FloatToInt"</span>, 2),</div>
-<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>                        <span class="stringliteral">"Check element  3 of casted column... "</span>);</div>
-<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>   test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 3, NULL),</div>
-<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>                        <span class="stringliteral">"Check element  4 of casted column... "</span>);</div>
-<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>   test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 4, NULL),</div>
-<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>                        <span class="stringliteral">"Check element  5 of casted column... "</span>);</div>
-<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>   test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 5, NULL),</div>
-<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>                        <span class="stringliteral">"Check element  6 of casted column... "</span>);</div>
-<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>   test_ivalue(-1, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 6, NULL),</div>
-<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>                        <span class="stringliteral">"Check element  7 of casted column... "</span>);</div>
-<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>   test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 7, NULL),</div>
-<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>                        <span class="stringliteral">"Check element  8 of casted column... "</span>);</div>
-<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>   test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 8, NULL),</div>
-<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>                        <span class="stringliteral">"Check element  9 of casted column... "</span>);</div>
-<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>   test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 9, NULL),</div>
-<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>                        <span class="stringliteral">"Check element 10 of casted column... "</span>);</div>
-<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>   test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 10, NULL),</div>
-<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>                        <span class="stringliteral">"Check element 11 of casted column... "</span>);</div>
-<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"FloatToInt"</span>, 11),</div>
-<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>                        <span class="stringliteral">"Check element 12 of casted column... "</span>);</div>
-<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>   test_ivalue(3, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 12, NULL),</div>
-<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>                        <span class="stringliteral">"Check element 13 of casted column... "</span>);</div>
-<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>   test_ivalue(7, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 13, NULL),</div>
-<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>                        <span class="stringliteral">"Check element 14 of casted column... "</span>);</div>
-<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>   test_ivalue(1, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 14, NULL),</div>
-<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span>                        <span class="stringliteral">"Check element 15 of casted column... "</span>);</div>
-<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>   test_ivalue(4, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 15, NULL),</div>
-<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>                        <span class="stringliteral">"Check element 16 of casted column... "</span>);</div>
-<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>   test_ivalue(6, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 16, NULL),</div>
-<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span>                        <span class="stringliteral">"Check element 17 of casted column... "</span>);</div>
-<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"FloatToInt"</span>, 17),</div>
-<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>                        <span class="stringliteral">"Check element 18 of casted column... "</span>);</div>
-<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"FloatToInt"</span>, 18),</div>
-<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>                        <span class="stringliteral">"Check element 19 of casted column... "</span>);</div>
-<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"FloatToInt"</span>, 19),</div>
-<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>                        <span class="stringliteral">"Check element 20 of casted column... "</span>);</div>
-<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>   test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 20, NULL),</div>
-<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>                        <span class="stringliteral">"Check element 21 of casted column... "</span>);</div>
-<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>   test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"FloatToInt"</span>, 21, NULL),</div>
-<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>                        <span class="stringliteral">"Check element 22 of casted column... "</span>);</div>
-<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span> </div>
-<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>   test(cpl_table_erase_column(table, <span class="stringliteral">"FloatToInt"</span>),</div>
-<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>                                       <span class="stringliteral">"Delete casted column... "</span>);</div>
-<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span> </div>
-<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>   test(cpl_table_cast_column(table, <span class="stringliteral">"Integer"</span>, <span class="stringliteral">"IntToFloat"</span>, CPL_TYPE_FLOAT),</div>
-<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>                       <span class="stringliteral">"Casting integer column to float colum... "</span>);</div>
-<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span> </div>
-<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"New AInt"</span>, 320);</div>
-<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span> </div>
-<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span> </div>
-<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 0, NULL),</div>
-<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>                      <span class="stringliteral">"Check element  1 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 1, NULL),</div>
-<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>                      <span class="stringliteral">"Check element  2 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 2),</div>
-<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>                      <span class="stringliteral">"Check element  3 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 3, NULL),</div>
-<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>                      <span class="stringliteral">"Check element  4 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 4, NULL),</div>
-<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>                      <span class="stringliteral">"Check element  5 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 5, NULL),</div>
-<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>                      <span class="stringliteral">"Check element  6 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>   test_fvalue(-1.0, 0.00001,</div>
-<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 6, NULL),</div>
-<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>                      <span class="stringliteral">"Check element  7 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 7, NULL),</div>
-<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>                      <span class="stringliteral">"Check element  8 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 8, NULL),</div>
-<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>                      <span class="stringliteral">"Check element  9 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 9, NULL),</div>
-<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>                      <span class="stringliteral">"Check element 10 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 10, NULL),</div>
-<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>                      <span class="stringliteral">"Check element 11 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 11),</div>
-<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>                      <span class="stringliteral">"Check element 12 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>   test_fvalue(3.0, 0.00001,</div>
-<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 12, NULL),</div>
-<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>                      <span class="stringliteral">"Check element 13 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>   test_fvalue(7.0, 0.00001,</div>
-<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 13, NULL),</div>
-<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>                      <span class="stringliteral">"Check element 14 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>   test_fvalue(1.0, 0.00001,</div>
-<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 14, NULL),</div>
-<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>                      <span class="stringliteral">"Check element 15 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>   test_fvalue(4.0, 0.00001,</div>
-<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 15, NULL),</div>
-<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>                      <span class="stringliteral">"Check element 16 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>   test_fvalue(6.0, 0.00001,</div>
-<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 16, NULL),</div>
-<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>                      <span class="stringliteral">"Check element 17 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 17),</div>
-<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>                      <span class="stringliteral">"Check element 18 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 18),</div>
-<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>                      <span class="stringliteral">"Check element 19 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 19),</div>
-<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>                      <span class="stringliteral">"Check element 20 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 20, NULL),</div>
-<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>                      <span class="stringliteral">"Check element 21 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 21, NULL),</div>
-<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>                      <span class="stringliteral">"Check element 22 of casted column (2)... "</span>);</div>
-<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span> </div>
-<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>   test(cpl_table_shift_column(table, <span class="stringliteral">"IntToFloat"</span>, 1), </div>
-<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>                               <span class="stringliteral">"Shift new column one position down... "</span>);</div>
-<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span> </div>
-<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 0),</div>
-<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>                      <span class="stringliteral">"Check element  1 of shifted column... "</span>);</div>
-<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 1, NULL),</div>
-<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span>                      <span class="stringliteral">"Check element  2 of shifted column... "</span>);</div>
-<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 2, NULL),</div>
-<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>                      <span class="stringliteral">"Check element  3 of shifted column... "</span>);</div>
-<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 3),</div>
-<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>                      <span class="stringliteral">"Check element  4 of shifted column... "</span>);</div>
-<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 4, NULL),</div>
-<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>                      <span class="stringliteral">"Check element  5 of shifted column... "</span>);</div>
-<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 5, NULL),</div>
-<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>                      <span class="stringliteral">"Check element  6 of shifted column... "</span>);</div>
-<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 6, NULL),</div>
-<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>                      <span class="stringliteral">"Check element  7 of shifted column... "</span>);</div>
-<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>   test_fvalue(-1.0, 0.00001,</div>
-<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 7, NULL),</div>
-<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>                      <span class="stringliteral">"Check element  8 of shifted column... "</span>);</div>
-<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 8, NULL),</div>
-<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>                      <span class="stringliteral">"Check element  9 of shifted column... "</span>);</div>
-<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 9, NULL),</div>
-<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>                      <span class="stringliteral">"Check element 10 of shifted column... "</span>);</div>
-<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 10, NULL),</div>
-<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>                      <span class="stringliteral">"Check element 11 of shifted column... "</span>);</div>
-<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 11, NULL),</div>
-<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span>                      <span class="stringliteral">"Check element 12 of shifted column... "</span>);</div>
-<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 12),</div>
-<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>                      <span class="stringliteral">"Check element 13 of shifted column... "</span>);</div>
-<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>   test_fvalue(3.0, 0.00001,</div>
-<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 13, NULL),</div>
-<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>                      <span class="stringliteral">"Check element 14 of shifted column... "</span>);</div>
-<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>   test_fvalue(7.0, 0.00001,</div>
-<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 14, NULL),</div>
-<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>                      <span class="stringliteral">"Check element 15 of shifted column... "</span>);</div>
-<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>   test_fvalue(1.0, 0.00001,</div>
-<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 15, NULL),</div>
-<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>                      <span class="stringliteral">"Check element 16 of shifted column... "</span>);</div>
-<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>   test_fvalue(4.0, 0.00001,</div>
-<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 16, NULL),</div>
-<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>                      <span class="stringliteral">"Check element 17 of shifted column... "</span>);</div>
-<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>   test_fvalue(6.0, 0.00001,</div>
-<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 17, NULL),</div>
-<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>                      <span class="stringliteral">"Check element 18 of shifted column... "</span>);</div>
-<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 18),</div>
-<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>                      <span class="stringliteral">"Check element 19 of shifted column... "</span>);</div>
-<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 19),</div>
-<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>                      <span class="stringliteral">"Check element 20 of shifted column... "</span>);</div>
-<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 20),</div>
-<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>                      <span class="stringliteral">"Check element 21 of shifted column... "</span>);</div>
-<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>   test_fvalue(999.0, 0.00001,</div>
-<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 21, NULL),</div>
-<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>                      <span class="stringliteral">"Check element 22 of shifted column... "</span>);</div>
-<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span> </div>
-<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>   test(cpl_table_add_columns(table, <span class="stringliteral">"Integer"</span>, <span class="stringliteral">"IntToFloat"</span>), </div>
-<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>                             <span class="stringliteral">"Sum \"IntToFloat\" to \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span> </div>
-<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"New AInt"</span>, 320);</div>
-<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span> </div>
-<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span> </div>
-<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Integer"</span>, 0),</div>
-<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>                        <span class="stringliteral">"Check element  1 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>   test_ivalue(1998, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 1, NULL),</div>
-<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>                        <span class="stringliteral">"Check element  2 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Integer"</span>, 2),</div>
-<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>                        <span class="stringliteral">"Check element  3 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Integer"</span>, 3),</div>
-<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span>                        <span class="stringliteral">"Check element  4 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>   test_ivalue(1998, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 4, NULL),</div>
-<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>                        <span class="stringliteral">"Check element  5 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>   test_ivalue(1998, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 5, NULL),</div>
-<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>                        <span class="stringliteral">"Check element  6 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>   test_ivalue(998, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 6, NULL),</div>
-<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span>                        <span class="stringliteral">"Check element  7 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>   test_ivalue(998, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 7, NULL),</div>
-<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>                        <span class="stringliteral">"Check element  8 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span>   test_ivalue(1998, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 8, NULL),</div>
-<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>                        <span class="stringliteral">"Check element  9 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>   test_ivalue(1998, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 9, NULL),</div>
-<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span>                        <span class="stringliteral">"Check element 10 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span>   test_ivalue(1998, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 10, NULL),</div>
-<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span>                        <span class="stringliteral">"Check element 11 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Integer"</span>, 11),</div>
-<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>                        <span class="stringliteral">"Check element 12 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Integer"</span>, 12),</div>
-<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>                        <span class="stringliteral">"Check element 13 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span>   test_ivalue(10, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 13, NULL),</div>
-<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span>                        <span class="stringliteral">"Check element 14 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span>   test_ivalue(8, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 14, NULL),</div>
-<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span>                        <span class="stringliteral">"Check element 15 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span>   test_ivalue(5, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 15, NULL),</div>
-<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span>                        <span class="stringliteral">"Check element 16 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span>   test_ivalue(10, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 16, NULL),</div>
-<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span>                        <span class="stringliteral">"Check element 17 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Integer"</span>, 17),</div>
-<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>                        <span class="stringliteral">"Check element 18 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Integer"</span>, 18),</div>
-<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>                        <span class="stringliteral">"Check element 19 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Integer"</span>, 19),</div>
-<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>                        <span class="stringliteral">"Check element 20 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Integer"</span>, 20),</div>
-<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>                        <span class="stringliteral">"Check element 21 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>   test_ivalue(1998, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 21, NULL),</div>
-<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span>                        <span class="stringliteral">"Check element 22 of \"Integer\" += \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span> </div>
-<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>   test(cpl_table_subtract_columns(table, <span class="stringliteral">"Integer"</span>, <span class="stringliteral">"IntToFloat"</span>), </div>
-<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>                             <span class="stringliteral">"Subtract \"IntToFloat\" from \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span> </div>
-<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>   test(cpl_table_subtract_columns(table, <span class="stringliteral">"IntToFloat"</span>, <span class="stringliteral">"Integer"</span>), </div>
-<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>                             <span class="stringliteral">"Subtract \"Integer\" from \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span> </div>
-<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 0),</div>
-<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>                      <span class="stringliteral">"Check element  1 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 1, NULL),</div>
-<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>                      <span class="stringliteral">"Check element  2 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 2),</div>
-<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>                      <span class="stringliteral">"Check element  3 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 3),</div>
-<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>                      <span class="stringliteral">"Check element  4 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 4, NULL),</div>
-<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>                      <span class="stringliteral">"Check element  5 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 5, NULL),</div>
-<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>                      <span class="stringliteral">"Check element  6 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>   test_fvalue(1000.0, 0.00001,</div>
-<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 6, NULL),</div>
-<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>                      <span class="stringliteral">"Check element  7 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>   test_fvalue(-1000.0, 0.00001,</div>
-<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 7, NULL),</div>
-<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>                      <span class="stringliteral">"Check element  8 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 8, NULL),</div>
-<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>                      <span class="stringliteral">"Check element  9 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 9, NULL),</div>
-<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>                      <span class="stringliteral">"Check element 10 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 10, NULL),</div>
-<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>                      <span class="stringliteral">"Check element 11 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 11),</div>
-<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>                      <span class="stringliteral">"Check element 12 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 12),</div>
-<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>                      <span class="stringliteral">"Check element 13 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>   test_fvalue(-4.0, 0.00001,</div>
-<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 13, NULL),</div>
-<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>                      <span class="stringliteral">"Check element 14 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>   test_fvalue(6.0, 0.00001,</div>
-<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 14, NULL),</div>
-<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>                      <span class="stringliteral">"Check element 15 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>   test_fvalue(-3.0, 0.00001,</div>
-<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 15, NULL),</div>
-<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>                      <span class="stringliteral">"Check element 16 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>   test_fvalue(-2.0, 0.00001,</div>
-<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 16, NULL),</div>
-<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span>                      <span class="stringliteral">"Check element 17 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 17),</div>
-<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>                      <span class="stringliteral">"Check element 18 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 18),</div>
-<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>                      <span class="stringliteral">"Check element 19 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 19),</div>
-<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>                      <span class="stringliteral">"Check element 20 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 20),</div>
-<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>                      <span class="stringliteral">"Check element 21 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 21, NULL),</div>
-<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>                      <span class="stringliteral">"Check element 22 of \"IntToFloat\" -= \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span> </div>
-<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>   test(cpl_table_multiply_columns(table, <span class="stringliteral">"IntToFloat"</span>, <span class="stringliteral">"Double"</span>), </div>
-<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>                      <span class="stringliteral">"Multiply double column with float column... "</span>);</div>
-<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span> </div>
-<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 0),</div>
-<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>                      <span class="stringliteral">"Check element  1 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 1, NULL),</div>
-<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>                      <span class="stringliteral">"Check element  2 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 2),</div>
-<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>                      <span class="stringliteral">"Check element  3 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 3),</div>
-<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>                      <span class="stringliteral">"Check element  4 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 4, NULL),</div>
-<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>                      <span class="stringliteral">"Check element  5 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 5, NULL),</div>
-<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>                      <span class="stringliteral">"Check element  6 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>   test_fvalue(-1110.0, 0.00001,</div>
-<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 6, NULL),</div>
-<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>                      <span class="stringliteral">"Check element  7 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>   test_fvalue(-999880.0, 0.00001,</div>
-<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 7, NULL),</div>
-<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>                      <span class="stringliteral">"Check element  8 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 8, NULL),</div>
-<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>                      <span class="stringliteral">"Check element  9 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 9, NULL),</div>
-<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>                      <span class="stringliteral">"Check element 10 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 10, NULL),</div>
-<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>                      <span class="stringliteral">"Check element 11 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 11),</div>
-<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>                      <span class="stringliteral">"Check element 12 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 12),</div>
-<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>                      <span class="stringliteral">"Check element 13 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>   test_fvalue(-28.44, 0.00001,</div>
-<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 13, NULL),</div>
-<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>                      <span class="stringliteral">"Check element 14 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>   test_fvalue(6.66, 0.00001,</div>
-<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 14, NULL),</div>
-<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>                      <span class="stringliteral">"Check element 15 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>   test_fvalue(-12.33, 0.00001,</div>
-<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 15, NULL),</div>
-<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span>                      <span class="stringliteral">"Check element 16 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span>   test_fvalue(-12.22, 0.00001,</div>
-<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 16, NULL),</div>
-<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>                      <span class="stringliteral">"Check element 17 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 17),</div>
-<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>                      <span class="stringliteral">"Check element 18 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 18),</div>
-<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>                      <span class="stringliteral">"Check element 19 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 19),</div>
-<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>                      <span class="stringliteral">"Check element 20 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"IntToFloat"</span>, 20),</div>
-<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>                      <span class="stringliteral">"Check element 21 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>                      cpl_table_get_float(table, <span class="stringliteral">"IntToFloat"</span>, 21, NULL),</div>
-<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>                      <span class="stringliteral">"Check element 22 of \"IntToFloat\" *= \"Double\"... "</span>);</div>
-<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span> </div>
-<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>   test(cpl_table_divide_columns(table, <span class="stringliteral">"Float"</span>, <span class="stringliteral">"IntToFloat"</span>), </div>
-<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>                      <span class="stringliteral">"Divide float column with float column... "</span>);</div>
-<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span> </div>
-<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 0),</div>
-<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>                      <span class="stringliteral">"Check element  1 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 1),</div>
-<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>                      <span class="stringliteral">"Check element  2 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 2),</div>
-<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>                      <span class="stringliteral">"Check element  3 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 3),</div>
-<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>                      <span class="stringliteral">"Check element  4 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 4),</div>
-<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>                      <span class="stringliteral">"Check element  5 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 5),</div>
-<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>                      <span class="stringliteral">"Check element  6 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>   test_fvalue(0.000991, 0.0000001,</div>
-<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>                      cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 6, NULL),</div>
-<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>                      <span class="stringliteral">"Check element  7 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>   test_fvalue(-0.0010001, 0.0000001,</div>
-<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>                      cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 7, NULL),</div>
-<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>                      <span class="stringliteral">"Check element  8 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 8),</div>
-<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>                      <span class="stringliteral">"Check element  9 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 9),</div>
-<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>                      <span class="stringliteral">"Check element 10 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 10),</div>
-<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>                      <span class="stringliteral">"Check element 11 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 11),</div>
-<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>                      <span class="stringliteral">"Check element 12 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 12),</div>
-<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>                      <span class="stringliteral">"Check element 13 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span>   test_fvalue(-0.2496484, 0.0000001,</div>
-<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>                      cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 13, NULL),</div>
-<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>                      <span class="stringliteral">"Check element 14 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>   test_fvalue(0.1651652, 0.0000001,</div>
-<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>                      cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 14, NULL),</div>
-<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>                      <span class="stringliteral">"Check element 15 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>   test_fvalue(-0.3325223, 0.0000001,</div>
-<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span>                      cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 15, NULL),</div>
-<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>                      <span class="stringliteral">"Check element 16 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>   test_fvalue(-0.4991817, 0.0000001,</div>
-<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>                      cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 16, NULL),</div>
-<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>                      <span class="stringliteral">"Check element 17 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 17),</div>
-<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>                      <span class="stringliteral">"Check element 18 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 18),</div>
-<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>                      <span class="stringliteral">"Check element 19 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 19),</div>
-<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>                      <span class="stringliteral">"Check element 20 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 20),</div>
-<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>                      <span class="stringliteral">"Check element 21 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 21),</div>
-<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span>                      <span class="stringliteral">"Check element 22 of \"Float\" /= \"IntToFloat\"... "</span>);</div>
-<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span> </div>
-<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>   test(cpl_table_add_scalar(table, <span class="stringliteral">"Float"</span>, 1), </div>
-<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>                      <span class="stringliteral">"Add integer constant to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span> </div>
-<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 0),</div>
-<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>                      <span class="stringliteral">"Check element  1 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 1),</div>
-<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>                      <span class="stringliteral">"Check element  2 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 2),</div>
-<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>                      <span class="stringliteral">"Check element  3 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 3),</div>
-<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>                      <span class="stringliteral">"Check element  4 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 4),</div>
-<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>                      <span class="stringliteral">"Check element  5 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 5),</div>
-<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>                      <span class="stringliteral">"Check element  6 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>   test_fvalue(1.000991, 0.0000001,</div>
-<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>                      cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 6, NULL),</div>
-<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>                      <span class="stringliteral">"Check element  7 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>   test_fvalue(1-0.0010001, 0.0000001,</div>
-<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>                      cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 7, NULL),</div>
-<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span>                      <span class="stringliteral">"Check element  8 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 8),</div>
-<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span>                      <span class="stringliteral">"Check element  9 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 9),</div>
-<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>                      <span class="stringliteral">"Check element 10 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 10),</div>
-<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>                      <span class="stringliteral">"Check element 11 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 11),</div>
-<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>                      <span class="stringliteral">"Check element 12 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 12),</div>
-<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>                      <span class="stringliteral">"Check element 13 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>   test_fvalue(1-0.2496484, 0.0000001,</div>
-<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>                      cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 13, NULL),</div>
-<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>                      <span class="stringliteral">"Check element 14 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>   test_fvalue(1.1651652, 0.0000001,</div>
-<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>                      cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 14, NULL),</div>
-<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>                      <span class="stringliteral">"Check element 15 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>   test_fvalue(1-0.3325223, 0.0000001,</div>
-<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>                      cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 15, NULL),</div>
-<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>                      <span class="stringliteral">"Check element 16 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>   test_fvalue(1-0.4991817, 0.0000001,</div>
-<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>                      cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 16, NULL),</div>
-<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>                      <span class="stringliteral">"Check element 17 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 17),</div>
-<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>                      <span class="stringliteral">"Check element 18 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 18),</div>
-<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>                      <span class="stringliteral">"Check element 19 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 19),</div>
-<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>                      <span class="stringliteral">"Check element 20 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 20),</div>
-<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span>                      <span class="stringliteral">"Check element 21 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 21),</div>
-<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span>                      <span class="stringliteral">"Check element 22 of adding 1 to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02564"></a><span class="lineno"> 2564</span> </div>
-<div class="line"><a name="l02565"></a><span class="lineno"> 2565</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"Float"</span>, 0, </div>
-<div class="line"><a name="l02566"></a><span class="lineno"> 2566</span>                      cpl_table_get_nrow(table)), </div>
-<div class="line"><a name="l02567"></a><span class="lineno"> 2567</span>                      <span class="stringliteral">"Set \"Float\" column to NULL... "</span>);</div>
-<div class="line"><a name="l02568"></a><span class="lineno"> 2568</span> </div>
-<div class="line"><a name="l02569"></a><span class="lineno"> 2569</span>   test_data(copia, cpl_table_duplicate(table), <span class="stringliteral">"Duplicate table... "</span>);</div>
-<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span> </div>
-<div class="line"><a name="l02571"></a><span class="lineno"> 2571</span>   test(cpl_table_erase_invalid_rows(table), <span class="stringliteral">"Pruning table... "</span>);</div>
-<div class="line"><a name="l02572"></a><span class="lineno"> 2572</span> </div>
-<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span>   test_ivalue(18, cpl_table_get_nrow(table), </div>
-<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span>                        <span class="stringliteral">"Checking table length after pruning... "</span>);</div>
-<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span> </div>
-<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span>   test_ivalue(10, cpl_table_get_ncol(table), </div>
-<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span>                        <span class="stringliteral">"Checking table width after pruning... "</span>);</div>
-<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span> </div>
-<div class="line"><a name="l02579"></a><span class="lineno"> 2579</span>   test(cpl_table_erase_invalid(copia), <span class="stringliteral">"Cleaning table... "</span>);</div>
-<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span> </div>
-<div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>   test_ivalue(8, cpl_table_get_nrow(copia), </div>
-<div class="line"><a name="l02582"></a><span class="lineno"> 2582</span>                        <span class="stringliteral">"Checking table length after cleaning... "</span>);</div>
-<div class="line"><a name="l02583"></a><span class="lineno"> 2583</span> </div>
-<div class="line"><a name="l02584"></a><span class="lineno"> 2584</span>   test_ivalue(10, cpl_table_get_ncol(copia), </div>
-<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span>                        <span class="stringliteral">"Checking table width after cleaning... "</span>);</div>
-<div class="line"><a name="l02586"></a><span class="lineno"> 2586</span> </div>
-<div class="line"><a name="l02587"></a><span class="lineno"> 2587</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span> </div>
-<div class="line"><a name="l02589"></a><span class="lineno"> 2589</span>   test(cpl_table_name_column(table, <span class="stringliteral">"IntToFloat"</span>, <span class="stringliteral">"Float"</span>),</div>
-<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span>            <span class="stringliteral">"Renaming \"IntToFloat\" to \"Float\"... "</span>);</div>
-<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span> </div>
-<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span>   test(cpl_table_set_column_invalid(table, <span class="stringliteral">"Integer"</span>, 7, 2), </div>
-<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>                               <span class="stringliteral">"Set NULLs in \"Integer\" column... "</span>);</div>
-<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span> </div>
-<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"Float"</span>, 7), </div>
-<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span>                               <span class="stringliteral">"Set NULL in \"Float\" column... "</span>);</div>
-<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span> </div>
-<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"Float"</span>, 9), </div>
-<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span>                               <span class="stringliteral">"Set another NULL in \"Float\" column... "</span>);</div>
-<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span> </div>
-<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"Double"</span>, 7), </div>
-<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>                               <span class="stringliteral">"Set NULL in \"Double\" column... "</span>);</div>
-<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span> </div>
-<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>   test(cpl_table_set_invalid(table, <span class="stringliteral">"String"</span>, 7), </div>
-<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>                               <span class="stringliteral">"Set NULL in \"String\" column... "</span>);</div>
-<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span> </div>
-<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>   test(cpl_table_new_column(table, <span class="stringliteral">"Sequence"</span>, CPL_TYPE_INT),</div>
-<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>                                 <span class="stringliteral">"Creating the \"Sequence\" column... "</span>);</div>
-<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span> </div>
-<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span>   <span class="keywordflow">for</span> (i = 0; i < 18; i++) {</div>
-<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>     sprintf(message, <span class="stringliteral">"Writing to row %d of the \"Sequence\" column... "</span>, i);</div>
-<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span>     test(cpl_table_set_int(table, <span class="stringliteral">"Sequence"</span>, i, i), message);</div>
-<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span>   }</div>
-<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span> <span class="comment">  cpl_table_dump_structure(table);</span></div>
-<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span> <span class="comment">  cpl_table_dump(table, 0, cpl_table_get_nrow(table));</span></div>
-<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l02618"></a><span class="lineno"> 2618</span>   names[0] = <span class="stringliteral">"Integer"</span>;</div>
-<div class="line"><a name="l02619"></a><span class="lineno"> 2619</span> </div>
-<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span>   reflist = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>   uves_propertylist_append_bool(reflist, names[0], 0);</div>
-<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span> <span class="comment">/* %$% */</span></div>
-<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span> <span class="comment">cpl_table_dump_structure(table, NULL);</span></div>
-<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span> <span class="comment">cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</span></div>
-<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span> </div>
-<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>   test(uves_table_sort(table, reflist), </div>
-<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span>        <span class="stringliteral">"Sorting by increasing values of the \"Integer\" column... "</span>);</div>
-<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span> </div>
-<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span>   <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(reflist);</div>
-<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span> </div>
-<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"New AInt"</span>, 320);</div>
-<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span> </div>
-<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span> </div>
-<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>   test_ivalue(18, cpl_table_get_nrow(table),</div>
-<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>                        <span class="stringliteral">"Checking table length after sorting... "</span>);</div>
-<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span> </div>
-<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>   test_ivalue(11, cpl_table_get_ncol(table),</div>
-<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>                        <span class="stringliteral">"Checking table width after sorting... "</span>);</div>
-<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span> </div>
-<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>   test_ivalue(7, cpl_table_count_invalid(table, <span class="stringliteral">"Integer"</span>),</div>
-<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>                      <span class="stringliteral">"Count \"Integer\" NULLs after sorting... "</span>);</div>
-<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span> </div>
-<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>   test_ivalue(7, cpl_table_count_invalid(table, <span class="stringliteral">"Float"</span>),</div>
-<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>                      <span class="stringliteral">"Count \"Float\" NULLs after sorting... "</span>);</div>
-<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span> </div>
-<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>   test_ivalue(2, cpl_table_count_invalid(table, <span class="stringliteral">"Double"</span>),</div>
-<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>                      <span class="stringliteral">"Count \"Double\" NULLs after sorting... "</span>);</div>
-<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span> </div>
-<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>   test_ivalue(2, cpl_table_count_invalid(table, <span class="stringliteral">"String"</span>),</div>
-<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>                      <span class="stringliteral">"Count \"String\" NULLs after sorting... "</span>);</div>
-<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span> </div>
-<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>   <span class="keywordflow">for</span> (i = 0; i < 7; i++) {</div>
-<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>     sprintf(message, <span class="stringliteral">"Check element  %d of sorted \"Integer\"... "</span>, i + 1);</div>
-<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>     test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Integer"</span>, i), message);</div>
-<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>   }</div>
-<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span> </div>
-<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>   test_ivalue(-1, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 7, NULL),</div>
-<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>                      <span class="stringliteral">"Check element  7 of sorted \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span> </div>
-<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>   test_ivalue(1, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 8, NULL),</div>
-<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>                      <span class="stringliteral">"Check element  8 of sorted \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span> </div>
-<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>   test_ivalue(4, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 9, NULL),</div>
-<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>                      <span class="stringliteral">"Check element  9 of sorted \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span> </div>
-<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>   test_ivalue(6, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 10, NULL),</div>
-<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>                      <span class="stringliteral">"Check element 10 of sorted \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span> </div>
-<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>   test_ivalue(7, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 11, NULL),</div>
-<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>                      <span class="stringliteral">"Check element 11 of sorted \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span> </div>
-<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>   <span class="keywordflow">for</span> (i = 12; i < 18; i++) {</div>
-<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>     sprintf(message, <span class="stringliteral">"Check element  %d of sorted \"Integer\"... "</span>, i + 1);</div>
-<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>     test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, i, NULL),</div>
-<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>                        message);</div>
-<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span>   }</div>
-<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span> </div>
-<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>   test_fvalue(999.88, 0.00001,</div>
-<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span>                      cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 0, NULL),</div>
-<div class="line"><a name="l02688"></a><span class="lineno"> 2688</span>                      <span class="stringliteral">"Check element  1 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02689"></a><span class="lineno"> 2689</span> </div>
-<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span>   test_fvalue(999.88, 0.00001,</div>
-<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>                      cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 1, NULL),</div>
-<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>                      <span class="stringliteral">"Check element  2 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span> </div>
-<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Double"</span>, 2), </div>
-<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>                      <span class="stringliteral">"Check element  3 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span> </div>
-<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>   test_fvalue(999.88, 0.00001,</div>
-<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>                      cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 3, NULL),</div>
-<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>                      <span class="stringliteral">"Check element  4 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span> </div>
-<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>   test_fvalue(3.11, 0.00001,</div>
-<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>                      cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 4, NULL),</div>
-<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>                      <span class="stringliteral">"Check element  5 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span> </div>
-<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Double"</span>, 5), </div>
-<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>                      <span class="stringliteral">"Check element  6 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span> </div>
-<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>   test_fvalue(999.88, 0.00001,</div>
-<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>                      cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 6, NULL),</div>
-<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>                      <span class="stringliteral">"Check element  7 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span> </div>
-<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>   test_fvalue(-1.11, 0.00001,</div>
-<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>                      cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 7, NULL),</div>
-<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>                      <span class="stringliteral">"Check element  8 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span> </div>
-<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>   test_fvalue(1.11, 0.00001,</div>
-<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>                     cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 8, NULL),</div>
-<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>                     <span class="stringliteral">"Check element  9 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span> </div>
-<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>   test_fvalue(4.11, 0.00001,</div>
-<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span>                     cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 9, NULL),</div>
-<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>                     <span class="stringliteral">"Check element  10 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span> </div>
-<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span>   test_fvalue(6.11, 0.00001,</div>
-<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>                     cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 10, NULL),</div>
-<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>                     <span class="stringliteral">"Check element 11 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span> </div>
-<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>   test_fvalue(7.11, 0.00001,</div>
-<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>                     cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 11, NULL),</div>
-<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>                     <span class="stringliteral">"Check element 12 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span> </div>
-<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>   <span class="keywordflow">for</span> (i = 12; i < 18; i++) {</div>
-<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>     sprintf(message, <span class="stringliteral">"Check element  %d of sorted \"Double\"... "</span>, i + 1);</div>
-<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>     test_fvalue(999.88, 0.00001, </div>
-<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span>                 cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, i, NULL), message);</div>
-<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>   }</div>
-<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span> </div>
-<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>   test_svalue(<span class="stringliteral">"999"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 0),</div>
-<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>               <span class="stringliteral">"Check element  1 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span> </div>
-<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>   test_svalue(<span class="stringliteral">"999"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 1),</div>
-<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>               <span class="stringliteral">"Check element  2 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span> </div>
-<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"String"</span>, 2),</div>
-<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>               <span class="stringliteral">"Check element  3 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span> </div>
-<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>   test_svalue(<span class="stringliteral">"999"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 3),</div>
-<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>               <span class="stringliteral">"Check element  4 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span> </div>
-<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>   test_svalue(<span class="stringliteral">"baaa"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 4),</div>
-<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>               <span class="stringliteral">"Check element  5 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span> </div>
-<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"String"</span>, 5),</div>
-<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>               <span class="stringliteral">"Check element  6 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span> </div>
-<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>   test_svalue(<span class="stringliteral">"999"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 6),</div>
-<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>               <span class="stringliteral">"Check element  7 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span> </div>
-<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>   test_svalue(<span class="stringliteral">"extra"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 7),</div>
-<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>               <span class="stringliteral">"Check element  8 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span> </div>
-<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>   test_svalue(<span class="stringliteral">"acde"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 8),</div>
-<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>               <span class="stringliteral">"Check element  9 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span> </div>
-<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>   test_svalue(<span class="stringliteral">" sss"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 9),</div>
-<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>               <span class="stringliteral">"Check element 10 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span> </div>
-<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>   test_svalue(<span class="stringliteral">"daaa"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 10),</div>
-<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>               <span class="stringliteral">"Check element 11 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span> </div>
-<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>   test_svalue(<span class="stringliteral">"aaaa"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 11),</div>
-<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>               <span class="stringliteral">"Check element 11 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span> </div>
-<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>   <span class="keywordflow">for</span> (i = 12; i < 18; i++) {</div>
-<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>     sprintf(message, <span class="stringliteral">"Check element  %d of sorted \"String\"... "</span>, i + 1);</div>
-<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span>     test_svalue(<span class="stringliteral">"999"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, i), message);</div>
-<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>   }</div>
-<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span> </div>
-<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span> </div>
-<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 0),</div>
-<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>               <span class="stringliteral">"Check element  1 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span> </div>
-<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 1),</div>
-<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>               <span class="stringliteral">"Check element  2 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span> </div>
-<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 2),</div>
-<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>               <span class="stringliteral">"Check element  3 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span> </div>
-<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>   test_fvalue(0.0, 0.00001, cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 3, NULL),</div>
-<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>               <span class="stringliteral">"Check element  4 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span> </div>
-<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 4),</div>
-<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>               <span class="stringliteral">"Check element  5 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span> </div>
-<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 5),</div>
-<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>               <span class="stringliteral">"Check element  6 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span> </div>
-<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 6),</div>
-<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>               <span class="stringliteral">"Check element  7 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span> </div>
-<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>   test_fvalue(-1110.0, 0.00001, </div>
-<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 7, NULL),</div>
-<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>               <span class="stringliteral">"Check element  8 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span> </div>
-<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span>   test_fvalue(6.66, 0.00001, </div>
-<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 8, NULL),</div>
-<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>               <span class="stringliteral">"Check element  9 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span> </div>
-<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>   test_fvalue(-12.33, 0.00001, </div>
-<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 9, NULL),</div>
-<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>               <span class="stringliteral">"Check element 10 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span> </div>
-<div class="line"><a name="l02813"></a><span class="lineno"> 2813</span>   test_fvalue(-12.22, 0.00001, </div>
-<div class="line"><a name="l02814"></a><span class="lineno"> 2814</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 10, NULL),</div>
-<div class="line"><a name="l02815"></a><span class="lineno"> 2815</span>               <span class="stringliteral">"Check element 11 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02816"></a><span class="lineno"> 2816</span> </div>
-<div class="line"><a name="l02817"></a><span class="lineno"> 2817</span>   test_fvalue(-28.44, 0.00001, </div>
-<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 11, NULL),</div>
-<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span>               <span class="stringliteral">"Check element 12 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02820"></a><span class="lineno"> 2820</span> </div>
-<div class="line"><a name="l02821"></a><span class="lineno"> 2821</span>   test_fvalue(0.0, 0.00001, </div>
-<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 12, NULL),</div>
-<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>               <span class="stringliteral">"Check element 13 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span> </div>
-<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span>   test_fvalue(0.0, 0.00001, </div>
-<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 13, NULL),</div>
-<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>               <span class="stringliteral">"Check element 14 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span> </div>
-<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span>   test_fvalue(0.0, 0.00001, </div>
-<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 14, NULL),</div>
-<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span>               <span class="stringliteral">"Check element 15 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span> </div>
-<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>   test_fvalue(-999880.0, 0.00001, </div>
-<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 15, NULL),</div>
-<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>               <span class="stringliteral">"Check element 16 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span> </div>
-<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 16),</div>
-<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span>               <span class="stringliteral">"Check element 17 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span> </div>
-<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span>   test_fvalue(0.0, 0.00001, </div>
-<div class="line"><a name="l02841"></a><span class="lineno"> 2841</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 17, NULL),</div>
-<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span>               <span class="stringliteral">"Check element 18 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span> </div>
-<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>   names[0] = <span class="stringliteral">"Sequence"</span>;</div>
-<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span> </div>
-<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span>   reflist = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span>   uves_propertylist_append_bool(reflist, names[0], 0);</div>
-<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span> </div>
-<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>   test(uves_table_sort(table, reflist), <span class="stringliteral">"Undo table sorting... "</span>);</div>
-<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span> </div>
-<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span>   <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(reflist);</div>
-<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span> </div>
-<div class="line"><a name="l02853"></a><span class="lineno"> 2853</span>   names[0] = <span class="stringliteral">"Integer"</span>;</div>
-<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>   reverse[0] = 1;</div>
-<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span> </div>
-<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>   reflist = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>   uves_propertylist_append_bool(reflist, names[0], 1);</div>
-<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span> </div>
-<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span>   test(uves_table_sort(table, reflist), </div>
-<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span>        <span class="stringliteral">"Sorting by decreasing values of the \"Integer\" column... "</span>);</div>
-<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span> </div>
-<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span> <span class="comment">/* %$% */</span></div>
-<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span> <span class="comment">cpl_table_dump_structure(table, NULL);</span></div>
-<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span> <span class="comment">cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</span></div>
-<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span> </div>
-<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>   <a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(reflist);</div>
-<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span> </div>
-<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span> <span class="comment">  cpl_table_dump_structure(table, NULL);</span></div>
-<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span> <span class="comment">  cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</span></div>
-<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span> <span class="comment"></span></div>
-<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span> <span class="comment">  printf("Median of Integer: %d\n", cpl_table_median_int(table, "Integer"));</span></div>
-<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span> <span class="comment">  printf("Median of Float: %f\n", cpl_table_median_float(table, "Float"));</span></div>
-<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span> <span class="comment">  printf("Median of Double: %f\n", cpl_table_median_double(table, "Double"));</span></div>
-<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span> <span class="comment">  printf("Median of Sequence: %d\n", cpl_table_median_int(table, "Sequence"));</span></div>
-<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span> </div>
-<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span> <span class="comment"></span></div>
-<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span> <span class="comment">cpl_table_dump_structure(table, NULL);</span></div>
-<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span> <span class="comment">cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</span></div>
-<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span> <span class="comment"></span></div>
-<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span> </div>
-<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span>   test_fvalue(999.000000, 0.001, cpl_table_get_column_median(table, <span class="stringliteral">"Integer"</span>),</div>
-<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span>                    <span class="stringliteral">"Median of Integer..."</span>);</div>
-<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>   test_fvalue(0.000000, 0.001, cpl_table_get_column_median(table, <span class="stringliteral">"Float"</span>),</div>
-<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>                    <span class="stringliteral">"Median of Float..."</span>);</div>
-<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span>   test_fvalue(999.880000, 0.001, cpl_table_get_column_median(table, <span class="stringliteral">"Double"</span>),</div>
-<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span>                    <span class="stringliteral">"Median of Double..."</span>);</div>
-<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span>   test_fvalue(8.000000, 0.001, cpl_table_get_column_median(table, <span class="stringliteral">"Sequence"</span>),</div>
-<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span>                    <span class="stringliteral">"Median of Sequence..."</span>);</div>
-<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span>   test_fvalue(546.454545, 0.001, cpl_table_get_column_mean(table, <span class="stringliteral">"Integer"</span>),</div>
-<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>                    <span class="stringliteral">"Mean of Integer..."</span>);</div>
-<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>   test_fvalue(-91003.302727, 0.001, cpl_table_get_column_mean(table, <span class="stringliteral">"Float"</span>),</div>
-<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>                    <span class="stringliteral">"Mean of Float..."</span>);</div>
-<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>   test_fvalue(626.202500, 0.001, cpl_table_get_column_mean(table, <span class="stringliteral">"Double"</span>),</div>
-<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>                    <span class="stringliteral">"Mean of Double..."</span>);</div>
-<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span>   test_fvalue(8.500000, 0.001, cpl_table_get_column_mean(table, <span class="stringliteral">"Sequence"</span>),</div>
-<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span>                    <span class="stringliteral">"Mean of Sequence..."</span>);</div>
-<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span>   test_fvalue(519.939489, 0.001, cpl_table_get_column_stdev(table, <span class="stringliteral">"Integer"</span>),</div>
-<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span>                    <span class="stringliteral">"Stdev of Integer..."</span>);</div>
-<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>   test_fvalue(301440.480937, 0.001, cpl_table_get_column_stdev(table, <span class="stringliteral">"Float"</span>),</div>
-<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>                    <span class="stringliteral">"Stdev of Float..."</span>);</div>
-<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>   test_fvalue(498.239830, 0.001, cpl_table_get_column_stdev(table, <span class="stringliteral">"Double"</span>),</div>
-<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span>                    <span class="stringliteral">"Stdev of Double..."</span>);</div>
-<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>   test_fvalue(5.338539, 0.001, cpl_table_get_column_stdev(table, <span class="stringliteral">"Sequence"</span>),</div>
-<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>                    <span class="stringliteral">"Stdev of Sequence..."</span>);</div>
-<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span> </div>
-<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span> <span class="comment"></span></div>
-<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span> <span class="comment">  printf("median of Integer: %f\n", cpl_table_get_column_median(table, "Integer"));</span></div>
-<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span> <span class="comment">  printf("median of Float: %f\n", cpl_table_get_column_median(table, "Float"));</span></div>
-<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span> <span class="comment">  printf("median of Double: %f\n", cpl_table_get_column_median(table, "Double"));</span></div>
-<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span> <span class="comment">  printf("median of Sequence: %f\n", cpl_table_get_column_median(table, "Sequence"));</span></div>
-<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span> <span class="comment">  printf("mean of Integer: %f\n", cpl_table_get_column_mean(table, "Integer"));</span></div>
-<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span> <span class="comment">  printf("mean of Float: %f\n", cpl_table_get_column_mean(table, "Float"));</span></div>
-<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span> <span class="comment">  printf("mean of Double: %f\n", cpl_table_get_column_mean(table, "Double"));</span></div>
-<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span> <span class="comment">  printf("mean of Sequence: %f\n", cpl_table_get_column_mean(table, "Sequence"));</span></div>
-<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span> <span class="comment">  printf("Stdev of Integer: %f\n", cpl_table_get_column_stdev(table, "Integer"));</span></div>
-<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span> <span class="comment">  printf("Stdev of Float: %f\n", cpl_table_get_column_stdev(table, "Float"));</span></div>
-<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span> <span class="comment">  printf("Stdev of Double: %f\n", cpl_table_get_column_stdev(table, "Double"));</span></div>
-<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span> <span class="comment">  printf("Stdev of Sequence: %f\n", cpl_table_get_column_stdev(table, "Sequence"));</span></div>
-<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span> </div>
-<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"Integer"</span>, 320);</div>
-<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"AInt"</span>, 320);</div>
-<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span>   cpl_table_fill_invalid_int(table, <span class="stringliteral">"New AInt"</span>, 320);</div>
-<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_save(table, NULL, NULL, <span class="stringliteral">"test_table.tfits"</span>, CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>   table = cpl_table_load(<span class="stringliteral">"test_table.tfits"</span>, 1, 1);</div>
-<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span> </div>
-<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span> </div>
-<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>   test_ivalue(18, cpl_table_get_nrow(table),</div>
-<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>                        <span class="stringliteral">"Checking table length after decreasing sorting... "</span>);</div>
-<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span> </div>
-<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>   test_ivalue(11, cpl_table_get_ncol(table),</div>
-<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>                        <span class="stringliteral">"Checking table width after decreasing sorting... "</span>);</div>
-<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span> </div>
-<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>   test_ivalue(7, cpl_table_count_invalid(table, <span class="stringliteral">"Integer"</span>),</div>
-<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>                      <span class="stringliteral">"Count \"Integer\" NULLs after decreasing sorting... "</span>);</div>
-<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span> </div>
-<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>   test_ivalue(7, cpl_table_count_invalid(table, <span class="stringliteral">"Float"</span>),</div>
-<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>                      <span class="stringliteral">"Count \"Float\" NULLs after decreasing sorting... "</span>);</div>
-<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span> </div>
-<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>   test_ivalue(2, cpl_table_count_invalid(table, <span class="stringliteral">"Double"</span>),</div>
-<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>                      <span class="stringliteral">"Count \"Double\" NULLs after decreasing sorting... "</span>);</div>
-<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span> </div>
-<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>   test_ivalue(2, cpl_table_count_invalid(table, <span class="stringliteral">"String"</span>),</div>
-<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>                      <span class="stringliteral">"Count \"String\" NULLs after decreasing sorting... "</span>);</div>
-<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span> </div>
-<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>   <span class="keywordflow">for</span> (i = 0; i < 7; i++) {</div>
-<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>     sprintf(message, <span class="stringliteral">"Check element  %d of sorted \"Integer\"... "</span>, i + 1);</div>
-<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>     test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Integer"</span>, i), message);</div>
-<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>   }</div>
-<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span> </div>
-<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>   <span class="keywordflow">for</span> (i = 7; i < 13; i++) {</div>
-<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>     sprintf(message, <span class="stringliteral">"Check element  %d of sorted \"Integer\"... "</span>, i + 1);</div>
-<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>     test_ivalue(999, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, i, NULL),</div>
-<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>                        message);</div>
-<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>   }</div>
-<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span> </div>
-<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span>   test_ivalue(7, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 13, NULL),</div>
-<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span>                      <span class="stringliteral">"Check element 13 of sorted \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span> </div>
-<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>   test_ivalue(6, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 14, NULL),</div>
-<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>                      <span class="stringliteral">"Check element 14 of sorted \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span> </div>
-<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>   test_ivalue(4, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 15, NULL),</div>
-<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>                      <span class="stringliteral">"Check element 15 of sorted \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span> </div>
-<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>   test_ivalue(1, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 16, NULL),</div>
-<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span>                      <span class="stringliteral">"Check element 16 of sorted \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span> </div>
-<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>   test_ivalue(-1, cpl_table_get_int(table, <span class="stringliteral">"Integer"</span>, 17, NULL),</div>
-<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>                      <span class="stringliteral">"Check element 17 of sorted \"Integer\"... "</span>);</div>
-<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span> </div>
-<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span> </div>
-<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>   test_fvalue(999.88, 0.00001,</div>
-<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>                      cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 0, NULL),</div>
-<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>                      <span class="stringliteral">"Check element  1 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span> </div>
-<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>   test_fvalue(999.88, 0.00001,</div>
-<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>                      cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 1, NULL),</div>
-<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>                      <span class="stringliteral">"Check element  2 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span> </div>
-<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Double"</span>, 2),</div>
-<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span>                      <span class="stringliteral">"Check element  3 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span> </div>
-<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>   test_fvalue(999.88, 0.00001,</div>
-<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>                      cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 3, NULL),</div>
-<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>                      <span class="stringliteral">"Check element  4 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span> </div>
-<div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>   test_fvalue(3.11, 0.00001,</div>
-<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>                      cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 4, NULL),</div>
-<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>                      <span class="stringliteral">"Check element  5 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span> </div>
-<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Double"</span>, 5),</div>
-<div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>                      <span class="stringliteral">"Check element  6 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l03003"></a><span class="lineno"> 3003</span> </div>
-<div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>   test_fvalue(999.88, 0.00001,</div>
-<div class="line"><a name="l03005"></a><span class="lineno"> 3005</span>                      cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 6, NULL),</div>
-<div class="line"><a name="l03006"></a><span class="lineno"> 3006</span>                      <span class="stringliteral">"Check element  7 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span> </div>
-<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span>   <span class="keywordflow">for</span> (i = 7; i < 13; i++) {</div>
-<div class="line"><a name="l03009"></a><span class="lineno"> 3009</span>     sprintf(message, <span class="stringliteral">"Check element  %d of sorted \"Double\"... "</span>, i + 1);</div>
-<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span>     test_fvalue(999.88, 0.00001,</div>
-<div class="line"><a name="l03011"></a><span class="lineno"> 3011</span>                 cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, i, NULL), message);</div>
-<div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>   }</div>
-<div class="line"><a name="l03013"></a><span class="lineno"> 3013</span> </div>
-<div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>   test_fvalue(7.11, 0.00001,</div>
-<div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>                     cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 13, NULL),</div>
-<div class="line"><a name="l03016"></a><span class="lineno"> 3016</span>                     <span class="stringliteral">"Check element 14 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l03017"></a><span class="lineno"> 3017</span> </div>
-<div class="line"><a name="l03018"></a><span class="lineno"> 3018</span>   test_fvalue(6.11, 0.00001,</div>
-<div class="line"><a name="l03019"></a><span class="lineno"> 3019</span>                     cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 14, NULL),</div>
-<div class="line"><a name="l03020"></a><span class="lineno"> 3020</span>                     <span class="stringliteral">"Check element 15 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l03021"></a><span class="lineno"> 3021</span> </div>
-<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>   test_fvalue(4.11, 0.00001,</div>
-<div class="line"><a name="l03023"></a><span class="lineno"> 3023</span>                     cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 15, NULL),</div>
-<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span>                     <span class="stringliteral">"Check element 16 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span> </div>
-<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>   test_fvalue(1.11, 0.00001,</div>
-<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>                     cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 16, NULL),</div>
-<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span>                     <span class="stringliteral">"Check element 17 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l03029"></a><span class="lineno"> 3029</span> </div>
-<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span>   test_fvalue(-1.11, 0.00001,</div>
-<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span>                      cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, 17, NULL),</div>
-<div class="line"><a name="l03032"></a><span class="lineno"> 3032</span>                      <span class="stringliteral">"Check element 18 of sorted \"Double\"... "</span>);</div>
-<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span> </div>
-<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span> </div>
-<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span>   test_svalue(<span class="stringliteral">"999"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 0),</div>
-<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>               <span class="stringliteral">"Check element  1 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span> </div>
-<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span>   test_svalue(<span class="stringliteral">"999"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 1),</div>
-<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>               <span class="stringliteral">"Check element  2 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span> </div>
-<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"String"</span>, 2),</div>
-<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>               <span class="stringliteral">"Check element  3 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span> </div>
-<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>   test_svalue(<span class="stringliteral">"999"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 3),</div>
-<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>               <span class="stringliteral">"Check element  4 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span> </div>
-<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>   test_svalue(<span class="stringliteral">"baaa"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 4),</div>
-<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span>               <span class="stringliteral">"Check element  5 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span> </div>
-<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"String"</span>, 5),</div>
-<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>               <span class="stringliteral">"Check element  6 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span> </div>
-<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span>   test_svalue(<span class="stringliteral">"999"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 6),</div>
-<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span>               <span class="stringliteral">"Check element  7 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span> </div>
-<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span>   <span class="keywordflow">for</span> (i = 7; i < 13; i++) {</div>
-<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span>     sprintf(message, <span class="stringliteral">"Check element  %d of sorted \"String\"... "</span>, i + 1);</div>
-<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span>     test_svalue(<span class="stringliteral">"999"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, i), message);</div>
-<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span>   }</div>
-<div class="line"><a name="l03060"></a><span class="lineno"> 3060</span> </div>
-<div class="line"><a name="l03061"></a><span class="lineno"> 3061</span>   test_svalue(<span class="stringliteral">"aaaa"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 13),</div>
-<div class="line"><a name="l03062"></a><span class="lineno"> 3062</span>               <span class="stringliteral">"Check element 14 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l03063"></a><span class="lineno"> 3063</span> </div>
-<div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>   test_svalue(<span class="stringliteral">"daaa"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 14),</div>
-<div class="line"><a name="l03065"></a><span class="lineno"> 3065</span>               <span class="stringliteral">"Check element 15 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l03066"></a><span class="lineno"> 3066</span> </div>
-<div class="line"><a name="l03067"></a><span class="lineno"> 3067</span>   test_svalue(<span class="stringliteral">" sss"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 15),</div>
-<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span>               <span class="stringliteral">"Check element 16 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l03069"></a><span class="lineno"> 3069</span> </div>
-<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span>   test_svalue(<span class="stringliteral">"acde"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 16),</div>
-<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span>               <span class="stringliteral">"Check element 17 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span> </div>
-<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span>   test_svalue(<span class="stringliteral">"extra"</span>, cpl_table_get_string(table, <span class="stringliteral">"String"</span>, 17),</div>
-<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span>               <span class="stringliteral">"Check element 18 of sorted \"String\"... "</span>);</div>
-<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span> </div>
-<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span> </div>
-<div class="line"><a name="l03077"></a><span class="lineno"> 3077</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 0),</div>
-<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span>               <span class="stringliteral">"Check element  1 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span> </div>
-<div class="line"><a name="l03080"></a><span class="lineno"> 3080</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 1),</div>
-<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span>               <span class="stringliteral">"Check element  2 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span> </div>
-<div class="line"><a name="l03083"></a><span class="lineno"> 3083</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 2),</div>
-<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span>               <span class="stringliteral">"Check element  3 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03085"></a><span class="lineno"> 3085</span> </div>
-<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span>   test_fvalue(0.0, 0.00001, cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 3, NULL),</div>
-<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span>               <span class="stringliteral">"Check element  4 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03088"></a><span class="lineno"> 3088</span> </div>
-<div class="line"><a name="l03089"></a><span class="lineno"> 3089</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 4),</div>
-<div class="line"><a name="l03090"></a><span class="lineno"> 3090</span>               <span class="stringliteral">"Check element  5 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03091"></a><span class="lineno"> 3091</span> </div>
-<div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 5),</div>
-<div class="line"><a name="l03093"></a><span class="lineno"> 3093</span>               <span class="stringliteral">"Check element  6 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03094"></a><span class="lineno"> 3094</span> </div>
-<div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 6),</div>
-<div class="line"><a name="l03096"></a><span class="lineno"> 3096</span>               <span class="stringliteral">"Check element  7 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span> </div>
-<div class="line"><a name="l03098"></a><span class="lineno"> 3098</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 7, NULL),</div>
-<div class="line"><a name="l03100"></a><span class="lineno"> 3100</span>               <span class="stringliteral">"Check element  8 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03101"></a><span class="lineno"> 3101</span> </div>
-<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 8, NULL),</div>
-<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span>               <span class="stringliteral">"Check element  9 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03105"></a><span class="lineno"> 3105</span> </div>
-<div class="line"><a name="l03106"></a><span class="lineno"> 3106</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l03107"></a><span class="lineno"> 3107</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 9, NULL),</div>
-<div class="line"><a name="l03108"></a><span class="lineno"> 3108</span>               <span class="stringliteral">"Check element 10 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03109"></a><span class="lineno"> 3109</span> </div>
-<div class="line"><a name="l03110"></a><span class="lineno"> 3110</span>   test_fvalue(-999880.0, 0.00001,</div>
-<div class="line"><a name="l03111"></a><span class="lineno"> 3111</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 10, NULL),</div>
-<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span>               <span class="stringliteral">"Check element 11 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span> </div>
-<div class="line"><a name="l03114"></a><span class="lineno"> 3114</span>   test_ivalue(0, cpl_table_is_valid(table, <span class="stringliteral">"Float"</span>, 11),</div>
-<div class="line"><a name="l03115"></a><span class="lineno"> 3115</span>               <span class="stringliteral">"Check element 12 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span> </div>
-<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>   test_fvalue(0.0, 0.00001,</div>
-<div class="line"><a name="l03118"></a><span class="lineno"> 3118</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 12, NULL),</div>
-<div class="line"><a name="l03119"></a><span class="lineno"> 3119</span>               <span class="stringliteral">"Check element 13 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03120"></a><span class="lineno"> 3120</span> </div>
-<div class="line"><a name="l03121"></a><span class="lineno"> 3121</span>   test_fvalue(-28.44, 0.00001,</div>
-<div class="line"><a name="l03122"></a><span class="lineno"> 3122</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 13, NULL),</div>
-<div class="line"><a name="l03123"></a><span class="lineno"> 3123</span>               <span class="stringliteral">"Check element 14 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03124"></a><span class="lineno"> 3124</span> </div>
-<div class="line"><a name="l03125"></a><span class="lineno"> 3125</span>   test_fvalue(-12.22, 0.00001,</div>
-<div class="line"><a name="l03126"></a><span class="lineno"> 3126</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 14, NULL),</div>
-<div class="line"><a name="l03127"></a><span class="lineno"> 3127</span>               <span class="stringliteral">"Check element 15 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03128"></a><span class="lineno"> 3128</span> </div>
-<div class="line"><a name="l03129"></a><span class="lineno"> 3129</span>   test_fvalue(-12.33, 0.00001,</div>
-<div class="line"><a name="l03130"></a><span class="lineno"> 3130</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 15, NULL),</div>
-<div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>               <span class="stringliteral">"Check element 16 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03132"></a><span class="lineno"> 3132</span> </div>
-<div class="line"><a name="l03133"></a><span class="lineno"> 3133</span>   test_fvalue(6.66, 0.00001,</div>
-<div class="line"><a name="l03134"></a><span class="lineno"> 3134</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 16, NULL),</div>
-<div class="line"><a name="l03135"></a><span class="lineno"> 3135</span>               <span class="stringliteral">"Check element 17 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03136"></a><span class="lineno"> 3136</span> </div>
-<div class="line"><a name="l03137"></a><span class="lineno"> 3137</span>   test_fvalue(-1110.0, 0.00001,</div>
-<div class="line"><a name="l03138"></a><span class="lineno"> 3138</span>               cpl_table_get_float(table, <span class="stringliteral">"Float"</span>, 17, NULL),</div>
-<div class="line"><a name="l03139"></a><span class="lineno"> 3139</span>               <span class="stringliteral">"Check element 18 of sorted \"Float\"... "</span>);</div>
-<div class="line"><a name="l03140"></a><span class="lineno"> 3140</span> </div>
-<div class="line"><a name="l03141"></a><span class="lineno"> 3141</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l03142"></a><span class="lineno"> 3142</span>   cpl_free(fArray);</div>
-<div class="line"><a name="l03143"></a><span class="lineno"> 3143</span> </div>
-<div class="line"><a name="l03144"></a><span class="lineno"> 3144</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l03145"></a><span class="lineno"> 3145</span> <span class="comment">   * Powers</span></div>
-<div class="line"><a name="l03146"></a><span class="lineno"> 3146</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l03147"></a><span class="lineno"> 3147</span> </div>
-<div class="line"><a name="l03148"></a><span class="lineno"> 3148</span>   nrows = 7;</div>
-<div class="line"><a name="l03149"></a><span class="lineno"> 3149</span> </div>
-<div class="line"><a name="l03150"></a><span class="lineno"> 3150</span>   table = cpl_table_new(nrows);</div>
-<div class="line"><a name="l03151"></a><span class="lineno"> 3151</span>   cpl_table_new_column(table, <span class="stringliteral">"Int"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l03152"></a><span class="lineno"> 3152</span>   cpl_table_new_column(table, <span class="stringliteral">"Float"</span>, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l03153"></a><span class="lineno"> 3153</span>   cpl_table_new_column(table, <span class="stringliteral">"Double"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03154"></a><span class="lineno"> 3154</span> </div>
-<div class="line"><a name="l03155"></a><span class="lineno"> 3155</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l03156"></a><span class="lineno"> 3156</span>       cpl_table_set_int(table, <span class="stringliteral">"Int"</span>, i, i);</div>
-<div class="line"><a name="l03157"></a><span class="lineno"> 3157</span>       cpl_table_set_float(table, <span class="stringliteral">"Float"</span>, i, i);</div>
-<div class="line"><a name="l03158"></a><span class="lineno"> 3158</span>       cpl_table_set_double(table, <span class="stringliteral">"Double"</span>, i, i);</div>
-<div class="line"><a name="l03159"></a><span class="lineno"> 3159</span>   }</div>
-<div class="line"><a name="l03160"></a><span class="lineno"> 3160</span> </div>
-<div class="line"><a name="l03161"></a><span class="lineno"> 3161</span>   cpl_table_exponential_column(table, <span class="stringliteral">"Int"</span>, 2);</div>
-<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span>   cpl_table_exponential_column(table, <span class="stringliteral">"Float"</span>, 2);</div>
-<div class="line"><a name="l03163"></a><span class="lineno"> 3163</span>   cpl_table_exponential_column(table, <span class="stringliteral">"Double"</span>, 2);</div>
-<div class="line"><a name="l03164"></a><span class="lineno"> 3164</span> </div>
-<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span>   pp = 1;</div>
-<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>       test_ivalue(pp, cpl_table_get_int(table, </div>
-<div class="line"><a name="l03168"></a><span class="lineno"> 3168</span>                       <span class="stringliteral">"Int"</span>, i, NULL), <span class="stringliteral">"Check expo Int... "</span>);</div>
-<div class="line"><a name="l03169"></a><span class="lineno"> 3169</span>       test_fvalue((<span class="keywordtype">float</span>)pp, 0.00001, cpl_table_get_float(table, </div>
-<div class="line"><a name="l03170"></a><span class="lineno"> 3170</span>                       <span class="stringliteral">"Float"</span>, i, NULL), <span class="stringliteral">"Check expo Float... "</span>);</div>
-<div class="line"><a name="l03171"></a><span class="lineno"> 3171</span>       test_fvalue((<span class="keywordtype">float</span>)pp, 0.00001, cpl_table_get_double(table, </div>
-<div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>                       <span class="stringliteral">"Double"</span>, i, NULL), <span class="stringliteral">"Check expo Double... "</span>);</div>
-<div class="line"><a name="l03173"></a><span class="lineno"> 3173</span>       pp *= 2;</div>
-<div class="line"><a name="l03174"></a><span class="lineno"> 3174</span>   }</div>
-<div class="line"><a name="l03175"></a><span class="lineno"> 3175</span> </div>
-<div class="line"><a name="l03176"></a><span class="lineno"> 3176</span>   cpl_table_logarithm_column(table, <span class="stringliteral">"Int"</span>, 2);</div>
-<div class="line"><a name="l03177"></a><span class="lineno"> 3177</span>   cpl_table_logarithm_column(table, <span class="stringliteral">"Float"</span>, 2);</div>
-<div class="line"><a name="l03178"></a><span class="lineno"> 3178</span>   cpl_table_logarithm_column(table, <span class="stringliteral">"Double"</span>, 2);</div>
-<div class="line"><a name="l03179"></a><span class="lineno"> 3179</span> </div>
-<div class="line"><a name="l03180"></a><span class="lineno"> 3180</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l03181"></a><span class="lineno"> 3181</span>       test_ivalue(i, cpl_table_get_int(table, </div>
-<div class="line"><a name="l03182"></a><span class="lineno"> 3182</span>                      <span class="stringliteral">"Int"</span>, i, NULL), <span class="stringliteral">"Check log Int... "</span>);</div>
-<div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>       test_fvalue((<span class="keywordtype">float</span>)i, 0.00001, cpl_table_get_float(table, </div>
-<div class="line"><a name="l03184"></a><span class="lineno"> 3184</span>                      <span class="stringliteral">"Float"</span>, i, NULL), <span class="stringliteral">"Check log Float... "</span>);</div>
-<div class="line"><a name="l03185"></a><span class="lineno"> 3185</span>       test_fvalue((<span class="keywordtype">float</span>)i, 0.00001, cpl_table_get_double(table, </div>
-<div class="line"><a name="l03186"></a><span class="lineno"> 3186</span>                      <span class="stringliteral">"Double"</span>, i, NULL), <span class="stringliteral">"Check log Double... "</span>);</div>
-<div class="line"><a name="l03187"></a><span class="lineno"> 3187</span>   }</div>
-<div class="line"><a name="l03188"></a><span class="lineno"> 3188</span> </div>
-<div class="line"><a name="l03189"></a><span class="lineno"> 3189</span>   cpl_table_power_column(table, <span class="stringliteral">"Int"</span>, 2);</div>
-<div class="line"><a name="l03190"></a><span class="lineno"> 3190</span>   cpl_table_power_column(table, <span class="stringliteral">"Float"</span>, 2);</div>
-<div class="line"><a name="l03191"></a><span class="lineno"> 3191</span>   cpl_table_power_column(table, <span class="stringliteral">"Double"</span>, 2);</div>
-<div class="line"><a name="l03192"></a><span class="lineno"> 3192</span> </div>
-<div class="line"><a name="l03193"></a><span class="lineno"> 3193</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l03194"></a><span class="lineno"> 3194</span>       test_ivalue(i*i, cpl_table_get_int(table,</div>
-<div class="line"><a name="l03195"></a><span class="lineno"> 3195</span>                      <span class="stringliteral">"Int"</span>, i, NULL), <span class="stringliteral">"Check pow Int... "</span>);</div>
-<div class="line"><a name="l03196"></a><span class="lineno"> 3196</span>       test_fvalue((<span class="keywordtype">float</span>)i*i, 0.00001, cpl_table_get_float(table,</div>
-<div class="line"><a name="l03197"></a><span class="lineno"> 3197</span>                      <span class="stringliteral">"Float"</span>, i, NULL), <span class="stringliteral">"Check pow Float... "</span>);</div>
-<div class="line"><a name="l03198"></a><span class="lineno"> 3198</span>       test_fvalue((<span class="keywordtype">float</span>)i*i, 0.00001, cpl_table_get_double(table,</div>
-<div class="line"><a name="l03199"></a><span class="lineno"> 3199</span>                      <span class="stringliteral">"Double"</span>, i, NULL), <span class="stringliteral">"Check pow Double... "</span>);</div>
-<div class="line"><a name="l03200"></a><span class="lineno"> 3200</span>   }</div>
-<div class="line"><a name="l03201"></a><span class="lineno"> 3201</span> </div>
-<div class="line"><a name="l03202"></a><span class="lineno"> 3202</span>   cpl_table_power_column(table, <span class="stringliteral">"Int"</span>, 0.5);</div>
-<div class="line"><a name="l03203"></a><span class="lineno"> 3203</span>   cpl_table_power_column(table, <span class="stringliteral">"Float"</span>, 0.5); </div>
-<div class="line"><a name="l03204"></a><span class="lineno"> 3204</span>   cpl_table_power_column(table, <span class="stringliteral">"Double"</span>, 0.5); </div>
-<div class="line"><a name="l03205"></a><span class="lineno"> 3205</span> </div>
-<div class="line"><a name="l03206"></a><span class="lineno"> 3206</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l03207"></a><span class="lineno"> 3207</span>       test_ivalue(i, cpl_table_get_int(table,</div>
-<div class="line"><a name="l03208"></a><span class="lineno"> 3208</span>                      <span class="stringliteral">"Int"</span>, i, NULL), <span class="stringliteral">"Check sqrt Int... "</span>);</div>
-<div class="line"><a name="l03209"></a><span class="lineno"> 3209</span>       test_fvalue((<span class="keywordtype">float</span>)i, 0.00001, cpl_table_get_float(table,</div>
-<div class="line"><a name="l03210"></a><span class="lineno"> 3210</span>                      <span class="stringliteral">"Float"</span>, i, NULL), <span class="stringliteral">"Check sqrt Float... "</span>);</div>
-<div class="line"><a name="l03211"></a><span class="lineno"> 3211</span>       test_fvalue((<span class="keywordtype">float</span>)i, 0.00001, cpl_table_get_double(table,</div>
-<div class="line"><a name="l03212"></a><span class="lineno"> 3212</span>                      <span class="stringliteral">"Double"</span>, i, NULL), <span class="stringliteral">"Check sqrt Double... "</span>);</div>
-<div class="line"><a name="l03213"></a><span class="lineno"> 3213</span>   }</div>
-<div class="line"><a name="l03214"></a><span class="lineno"> 3214</span> </div>
-<div class="line"><a name="l03215"></a><span class="lineno"> 3215</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l03216"></a><span class="lineno"> 3216</span> </div>
-<div class="line"><a name="l03217"></a><span class="lineno"> 3217</span> </div>
-<div class="line"><a name="l03218"></a><span class="lineno"> 3218</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l03219"></a><span class="lineno"> 3219</span> <span class="comment">   * Testing the selection functions</span></div>
-<div class="line"><a name="l03220"></a><span class="lineno"> 3220</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l03221"></a><span class="lineno"> 3221</span> </div>
-<div class="line"><a name="l03222"></a><span class="lineno"> 3222</span>   nrows = 7;</div>
-<div class="line"><a name="l03223"></a><span class="lineno"> 3223</span> </div>
-<div class="line"><a name="l03224"></a><span class="lineno"> 3224</span>   table = cpl_table_new(nrows);</div>
-<div class="line"><a name="l03225"></a><span class="lineno"> 3225</span>   cpl_table_new_column(table, <span class="stringliteral">"Int"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l03226"></a><span class="lineno"> 3226</span>   cpl_table_new_column(table, <span class="stringliteral">"String"</span>, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l03227"></a><span class="lineno"> 3227</span> </div>
-<div class="line"><a name="l03228"></a><span class="lineno"> 3228</span>   unit = <span class="stringliteral">"abcd\0efgh\0ijkl\0mnop\0qrst\0uvwx\0yz"</span>;</div>
-<div class="line"><a name="l03229"></a><span class="lineno"> 3229</span> </div>
-<div class="line"><a name="l03230"></a><span class="lineno"> 3230</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l03231"></a><span class="lineno"> 3231</span>        cpl_table_set_int(table, <span class="stringliteral">"Int"</span>, i, i);</div>
-<div class="line"><a name="l03232"></a><span class="lineno"> 3232</span>        cpl_table_set_string(table, <span class="stringliteral">"String"</span>, i, unit + i*5);</div>
-<div class="line"><a name="l03233"></a><span class="lineno"> 3233</span>   }</div>
-<div class="line"><a name="l03234"></a><span class="lineno"> 3234</span> </div>
-<div class="line"><a name="l03235"></a><span class="lineno"> 3235</span>   cpl_table_duplicate_column(table, <span class="stringliteral">"Int2"</span>, table, <span class="stringliteral">"Int"</span>);</div>
-<div class="line"><a name="l03236"></a><span class="lineno"> 3236</span>   cpl_table_multiply_columns(table, <span class="stringliteral">"Int2"</span>, <span class="stringliteral">"Int2"</span>);</div>
-<div class="line"><a name="l03237"></a><span class="lineno"> 3237</span>   cpl_table_cast_column(table, <span class="stringliteral">"Int"</span>, <span class="stringliteral">"Float"</span>, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l03238"></a><span class="lineno"> 3238</span> </div>
-<div class="line"><a name="l03239"></a><span class="lineno"> 3239</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03240"></a><span class="lineno"> 3240</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03241"></a><span class="lineno"> 3241</span>   printf(<span class="stringliteral">"\nThis is the test table:\n\n"</span>);</div>
-<div class="line"><a name="l03242"></a><span class="lineno"> 3242</span>   cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</div>
-<div class="line"><a name="l03243"></a><span class="lineno"> 3243</span> </div>
-<div class="line"><a name="l03244"></a><span class="lineno"> 3244</span>   printf(<span class="stringliteral">"\nNow erase all selected:\n\n"</span>);</div>
-<div class="line"><a name="l03245"></a><span class="lineno"> 3245</span> </div>
-<div class="line"><a name="l03246"></a><span class="lineno"> 3246</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03247"></a><span class="lineno"> 3247</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03248"></a><span class="lineno"> 3248</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03249"></a><span class="lineno"> 3249</span>   test_ivalue(7, cpl_table_count_selected(copia), <span class="stringliteral">"Check all selected... "</span>);</div>
-<div class="line"><a name="l03250"></a><span class="lineno"> 3250</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03251"></a><span class="lineno"> 3251</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03252"></a><span class="lineno"> 3252</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03253"></a><span class="lineno"> 3253</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03254"></a><span class="lineno"> 3254</span> <span class="preprocessor"></span>  test_ivalue(0, cpl_table_get_nrow(copia), </div>
-<div class="line"><a name="l03255"></a><span class="lineno"> 3255</span>               <span class="stringliteral">"Check length erase all selected... "</span>);</div>
-<div class="line"><a name="l03256"></a><span class="lineno"> 3256</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03257"></a><span class="lineno"> 3257</span> </div>
-<div class="line"><a name="l03258"></a><span class="lineno"> 3258</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03259"></a><span class="lineno"> 3259</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03260"></a><span class="lineno"> 3260</span>   printf(<span class="stringliteral">"\nThis is the test table:\n\n"</span>);</div>
-<div class="line"><a name="l03261"></a><span class="lineno"> 3261</span>   cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</div>
-<div class="line"><a name="l03262"></a><span class="lineno"> 3262</span> </div>
-<div class="line"><a name="l03263"></a><span class="lineno"> 3263</span>   printf(<span class="stringliteral">"\nNow delete all Int >= Int2:\n\n"</span>);</div>
-<div class="line"><a name="l03264"></a><span class="lineno"> 3264</span> </div>
-<div class="line"><a name="l03265"></a><span class="lineno"> 3265</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03266"></a><span class="lineno"> 3266</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03267"></a><span class="lineno"> 3267</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03268"></a><span class="lineno"> 3268</span>   cpl_table_and_selected(copia, <span class="stringliteral">"Int"</span>, CPL_NOT_LESS_THAN, <span class="stringliteral">"Int2"</span>);</div>
-<div class="line"><a name="l03269"></a><span class="lineno"> 3269</span>   test_ivalue(2, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03270"></a><span class="lineno"> 3270</span>               <span class="stringliteral">"Check Int >= Int2 selected... "</span>);</div>
-<div class="line"><a name="l03271"></a><span class="lineno"> 3271</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03272"></a><span class="lineno"> 3272</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03273"></a><span class="lineno"> 3273</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03274"></a><span class="lineno"> 3274</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03275"></a><span class="lineno"> 3275</span> <span class="preprocessor"></span>  test_ivalue(5, cpl_table_get_nrow(copia), </div>
-<div class="line"><a name="l03276"></a><span class="lineno"> 3276</span>               <span class="stringliteral">"Check length erase all Int >= Int2... "</span>);</div>
-<div class="line"><a name="l03277"></a><span class="lineno"> 3277</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03278"></a><span class="lineno"> 3278</span> </div>
-<div class="line"><a name="l03279"></a><span class="lineno"> 3279</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03280"></a><span class="lineno"> 3280</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03281"></a><span class="lineno"> 3281</span>   printf(<span class="stringliteral">"\nThis is the test table:\n\n"</span>);</div>
-<div class="line"><a name="l03282"></a><span class="lineno"> 3282</span>   cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</div>
-<div class="line"><a name="l03283"></a><span class="lineno"> 3283</span> </div>
-<div class="line"><a name="l03284"></a><span class="lineno"> 3284</span>   printf(<span class="stringliteral">"\nNow delete all Int > 3:\n\n"</span>);</div>
-<div class="line"><a name="l03285"></a><span class="lineno"> 3285</span> </div>
-<div class="line"><a name="l03286"></a><span class="lineno"> 3286</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03287"></a><span class="lineno"> 3287</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03288"></a><span class="lineno"> 3288</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03289"></a><span class="lineno"> 3289</span>   cpl_table_and_selected_int(copia, <span class="stringliteral">"Int"</span>, CPL_GREATER_THAN, 3);</div>
-<div class="line"><a name="l03290"></a><span class="lineno"> 3290</span>   test_ivalue(3, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03291"></a><span class="lineno"> 3291</span>               <span class="stringliteral">"Check Int > 3 selected... "</span>);</div>
-<div class="line"><a name="l03292"></a><span class="lineno"> 3292</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03293"></a><span class="lineno"> 3293</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03294"></a><span class="lineno"> 3294</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03295"></a><span class="lineno"> 3295</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03296"></a><span class="lineno"> 3296</span> <span class="preprocessor"></span>  test_ivalue(4, cpl_table_get_nrow(copia), </div>
-<div class="line"><a name="l03297"></a><span class="lineno"> 3297</span>               <span class="stringliteral">"Check length erase all Int > 3... "</span>);</div>
-<div class="line"><a name="l03298"></a><span class="lineno"> 3298</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03299"></a><span class="lineno"> 3299</span> </div>
-<div class="line"><a name="l03300"></a><span class="lineno"> 3300</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03301"></a><span class="lineno"> 3301</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03302"></a><span class="lineno"> 3302</span>   printf(<span class="stringliteral">"\nThis is the test table:\n\n"</span>);</div>
-<div class="line"><a name="l03303"></a><span class="lineno"> 3303</span>   cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</div>
-<div class="line"><a name="l03304"></a><span class="lineno"> 3304</span> </div>
-<div class="line"><a name="l03305"></a><span class="lineno"> 3305</span>   printf(<span class="stringliteral">"\nNow delete all Int2 > Float:\n\n"</span>);</div>
-<div class="line"><a name="l03306"></a><span class="lineno"> 3306</span> </div>
-<div class="line"><a name="l03307"></a><span class="lineno"> 3307</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03308"></a><span class="lineno"> 3308</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03309"></a><span class="lineno"> 3309</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03310"></a><span class="lineno"> 3310</span>   cpl_table_and_selected(copia, <span class="stringliteral">"Int2"</span>, CPL_GREATER_THAN, <span class="stringliteral">"Float"</span>);</div>
-<div class="line"><a name="l03311"></a><span class="lineno"> 3311</span>   test_ivalue(5, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03312"></a><span class="lineno"> 3312</span>               <span class="stringliteral">"Check Int2 > Float selected... "</span>);</div>
-<div class="line"><a name="l03313"></a><span class="lineno"> 3313</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03314"></a><span class="lineno"> 3314</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03315"></a><span class="lineno"> 3315</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03316"></a><span class="lineno"> 3316</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03317"></a><span class="lineno"> 3317</span> <span class="preprocessor"></span>  test_ivalue(2, cpl_table_get_nrow(copia), </div>
-<div class="line"><a name="l03318"></a><span class="lineno"> 3318</span>               <span class="stringliteral">"Check length erase all Int2 > Float... "</span>);</div>
-<div class="line"><a name="l03319"></a><span class="lineno"> 3319</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03320"></a><span class="lineno"> 3320</span> </div>
-<div class="line"><a name="l03321"></a><span class="lineno"> 3321</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03322"></a><span class="lineno"> 3322</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03323"></a><span class="lineno"> 3323</span>   printf(<span class="stringliteral">"\nThis is the test table:\n\n"</span>);</div>
-<div class="line"><a name="l03324"></a><span class="lineno"> 3324</span>   cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</div>
-<div class="line"><a name="l03325"></a><span class="lineno"> 3325</span> </div>
-<div class="line"><a name="l03326"></a><span class="lineno"> 3326</span>   printf(<span class="stringliteral">"\nNow delete all String == \"^[a-l].*\":\n\n"</span>);</div>
-<div class="line"><a name="l03327"></a><span class="lineno"> 3327</span> </div>
-<div class="line"><a name="l03328"></a><span class="lineno"> 3328</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03329"></a><span class="lineno"> 3329</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03330"></a><span class="lineno"> 3330</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03331"></a><span class="lineno"> 3331</span>   cpl_table_and_selected_string(copia, <span class="stringliteral">"String"</span>, CPL_EQUAL_TO, <span class="stringliteral">"^[a-l].*"</span>);</div>
-<div class="line"><a name="l03332"></a><span class="lineno"> 3332</span>   test_ivalue(3, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03333"></a><span class="lineno"> 3333</span>               <span class="stringliteral">"Check String == \"^[a-l].*\" selected... "</span>);</div>
-<div class="line"><a name="l03334"></a><span class="lineno"> 3334</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03335"></a><span class="lineno"> 3335</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03336"></a><span class="lineno"> 3336</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03337"></a><span class="lineno"> 3337</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03338"></a><span class="lineno"> 3338</span> <span class="preprocessor"></span>  test_ivalue(4, cpl_table_get_nrow(copia), </div>
-<div class="line"><a name="l03339"></a><span class="lineno"> 3339</span>               <span class="stringliteral">"Check length erase all String == \"^[a-l].*\"... "</span>);</div>
-<div class="line"><a name="l03340"></a><span class="lineno"> 3340</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03341"></a><span class="lineno"> 3341</span> </div>
-<div class="line"><a name="l03342"></a><span class="lineno"> 3342</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03343"></a><span class="lineno"> 3343</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03344"></a><span class="lineno"> 3344</span>   printf(<span class="stringliteral">"\nThis is the test table:\n\n"</span>);</div>
-<div class="line"><a name="l03345"></a><span class="lineno"> 3345</span>   cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</div>
-<div class="line"><a name="l03346"></a><span class="lineno"> 3346</span> </div>
-<div class="line"><a name="l03347"></a><span class="lineno"> 3347</span>   printf(<span class="stringliteral">"\nNow delete all String > \"carlo\":\n\n"</span>);</div>
-<div class="line"><a name="l03348"></a><span class="lineno"> 3348</span> </div>
-<div class="line"><a name="l03349"></a><span class="lineno"> 3349</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03350"></a><span class="lineno"> 3350</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03351"></a><span class="lineno"> 3351</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03352"></a><span class="lineno"> 3352</span>   cpl_table_and_selected_string(copia, <span class="stringliteral">"String"</span>, CPL_GREATER_THAN, <span class="stringliteral">"carlo"</span>);</div>
-<div class="line"><a name="l03353"></a><span class="lineno"> 3353</span>   test_ivalue(6, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03354"></a><span class="lineno"> 3354</span>               <span class="stringliteral">"Check String > \"carlo\" selected... "</span>);</div>
-<div class="line"><a name="l03355"></a><span class="lineno"> 3355</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03356"></a><span class="lineno"> 3356</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03357"></a><span class="lineno"> 3357</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03358"></a><span class="lineno"> 3358</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03359"></a><span class="lineno"> 3359</span> <span class="preprocessor"></span>  test_ivalue(1, cpl_table_get_nrow(copia), </div>
-<div class="line"><a name="l03360"></a><span class="lineno"> 3360</span>               <span class="stringliteral">"Check length erase all String > \"carlo\"... "</span>);</div>
-<div class="line"><a name="l03361"></a><span class="lineno"> 3361</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03362"></a><span class="lineno"> 3362</span> </div>
-<div class="line"><a name="l03363"></a><span class="lineno"> 3363</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03364"></a><span class="lineno"> 3364</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03365"></a><span class="lineno"> 3365</span>   printf(<span class="stringliteral">"\nThis is the test table:\n\n"</span>);</div>
-<div class="line"><a name="l03366"></a><span class="lineno"> 3366</span>   cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</div>
-<div class="line"><a name="l03367"></a><span class="lineno"> 3367</span> </div>
-<div class="line"><a name="l03368"></a><span class="lineno"> 3368</span>   printf(<span class="stringliteral">"\nNow delete all String > \"tattoo\" and Int == 3:\n\n"</span>);</div>
-<div class="line"><a name="l03369"></a><span class="lineno"> 3369</span> </div>
-<div class="line"><a name="l03370"></a><span class="lineno"> 3370</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03371"></a><span class="lineno"> 3371</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03372"></a><span class="lineno"> 3372</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03373"></a><span class="lineno"> 3373</span>   cpl_table_and_selected_string(copia, <span class="stringliteral">"String"</span>, CPL_GREATER_THAN, <span class="stringliteral">"tattoo"</span>);</div>
-<div class="line"><a name="l03374"></a><span class="lineno"> 3374</span>   cpl_table_or_selected_int(copia, <span class="stringliteral">"Int"</span>, CPL_EQUAL_TO, 3);</div>
-<div class="line"><a name="l03375"></a><span class="lineno"> 3375</span>   test_ivalue(3, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03376"></a><span class="lineno"> 3376</span>               <span class="stringliteral">"Check String > \"tattoo\" and Int == 3 selected... "</span>);</div>
-<div class="line"><a name="l03377"></a><span class="lineno"> 3377</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03378"></a><span class="lineno"> 3378</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03379"></a><span class="lineno"> 3379</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03380"></a><span class="lineno"> 3380</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03381"></a><span class="lineno"> 3381</span> <span class="preprocessor"></span>  test_ivalue(4, cpl_table_get_nrow(copia),</div>
-<div class="line"><a name="l03382"></a><span class="lineno"> 3382</span>               <span class="stringliteral">"Check length erase all String > \"tattoo\" and Int == 3... "</span>);</div>
-<div class="line"><a name="l03383"></a><span class="lineno"> 3383</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03384"></a><span class="lineno"> 3384</span> </div>
-<div class="line"><a name="l03385"></a><span class="lineno"> 3385</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03386"></a><span class="lineno"> 3386</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03387"></a><span class="lineno"> 3387</span>   printf(<span class="stringliteral">"\nNow keep all String > \"tattoo\" and Int == 3:\n\n"</span>);</div>
-<div class="line"><a name="l03388"></a><span class="lineno"> 3388</span> </div>
-<div class="line"><a name="l03389"></a><span class="lineno"> 3389</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03390"></a><span class="lineno"> 3390</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03391"></a><span class="lineno"> 3391</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03392"></a><span class="lineno"> 3392</span>   cpl_table_and_selected_string(copia, <span class="stringliteral">"String"</span>, CPL_GREATER_THAN, <span class="stringliteral">"tattoo"</span>);</div>
-<div class="line"><a name="l03393"></a><span class="lineno"> 3393</span>   cpl_table_or_selected_int(copia, <span class="stringliteral">"Int"</span>, CPL_EQUAL_TO, 3);</div>
-<div class="line"><a name="l03394"></a><span class="lineno"> 3394</span>   cpl_table_not_selected(copia);</div>
-<div class="line"><a name="l03395"></a><span class="lineno"> 3395</span>   test_ivalue(4, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03396"></a><span class="lineno"> 3396</span>               <span class="stringliteral">"Check String > \"tattoo\" and Int == 3 rejected... "</span>);</div>
-<div class="line"><a name="l03397"></a><span class="lineno"> 3397</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03398"></a><span class="lineno"> 3398</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03399"></a><span class="lineno"> 3399</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03400"></a><span class="lineno"> 3400</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03401"></a><span class="lineno"> 3401</span> <span class="preprocessor"></span>  test_ivalue(3, cpl_table_get_nrow(copia),</div>
-<div class="line"><a name="l03402"></a><span class="lineno"> 3402</span>               <span class="stringliteral">"Check length keep all String > \"tattoo\" and Int == 3... "</span>);</div>
-<div class="line"><a name="l03403"></a><span class="lineno"> 3403</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03404"></a><span class="lineno"> 3404</span> </div>
-<div class="line"><a name="l03405"></a><span class="lineno"> 3405</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03406"></a><span class="lineno"> 3406</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03407"></a><span class="lineno"> 3407</span>   printf(<span class="stringliteral">"\nThis is the test table:\n\n"</span>);</div>
-<div class="line"><a name="l03408"></a><span class="lineno"> 3408</span>   cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</div>
-<div class="line"><a name="l03409"></a><span class="lineno"> 3409</span> </div>
-<div class="line"><a name="l03410"></a><span class="lineno"> 3410</span>   printf(<span class="stringliteral">"\nNow delete rows 0, 2, and 6:\n\n"</span>);</div>
-<div class="line"><a name="l03411"></a><span class="lineno"> 3411</span> </div>
-<div class="line"><a name="l03412"></a><span class="lineno"> 3412</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03413"></a><span class="lineno"> 3413</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03414"></a><span class="lineno"> 3414</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03415"></a><span class="lineno"> 3415</span>   cpl_table_unselect_all(copia);</div>
-<div class="line"><a name="l03416"></a><span class="lineno"> 3416</span>   cpl_table_select_row(copia, 0);</div>
-<div class="line"><a name="l03417"></a><span class="lineno"> 3417</span>   cpl_table_select_row(copia, 2);</div>
-<div class="line"><a name="l03418"></a><span class="lineno"> 3418</span>   cpl_table_select_row(copia, 6);</div>
-<div class="line"><a name="l03419"></a><span class="lineno"> 3419</span>   test_ivalue(3, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03420"></a><span class="lineno"> 3420</span>               <span class="stringliteral">"Check rows 0, 2, and 6 selected... "</span>);</div>
-<div class="line"><a name="l03421"></a><span class="lineno"> 3421</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03422"></a><span class="lineno"> 3422</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03423"></a><span class="lineno"> 3423</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03424"></a><span class="lineno"> 3424</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03425"></a><span class="lineno"> 3425</span> <span class="preprocessor"></span>  test_ivalue(4, cpl_table_get_nrow(copia),</div>
-<div class="line"><a name="l03426"></a><span class="lineno"> 3426</span>               <span class="stringliteral">"Check length erase rows 0, 2, and 6... "</span>);</div>
-<div class="line"><a name="l03427"></a><span class="lineno"> 3427</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03428"></a><span class="lineno"> 3428</span> </div>
-<div class="line"><a name="l03429"></a><span class="lineno"> 3429</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03430"></a><span class="lineno"> 3430</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03431"></a><span class="lineno"> 3431</span>   printf(<span class="stringliteral">"\nNow keep rows 0, 2, and 6:\n\n"</span>);</div>
-<div class="line"><a name="l03432"></a><span class="lineno"> 3432</span> </div>
-<div class="line"><a name="l03433"></a><span class="lineno"> 3433</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03434"></a><span class="lineno"> 3434</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03435"></a><span class="lineno"> 3435</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03436"></a><span class="lineno"> 3436</span>   cpl_table_unselect_row(copia, 0);</div>
-<div class="line"><a name="l03437"></a><span class="lineno"> 3437</span>   cpl_table_unselect_row(copia, 2);</div>
-<div class="line"><a name="l03438"></a><span class="lineno"> 3438</span>   cpl_table_unselect_row(copia, 6);</div>
-<div class="line"><a name="l03439"></a><span class="lineno"> 3439</span>   test_ivalue(4, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03440"></a><span class="lineno"> 3440</span>               <span class="stringliteral">"Check rows 0, 2, and 6 rejected... "</span>);</div>
-<div class="line"><a name="l03441"></a><span class="lineno"> 3441</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03442"></a><span class="lineno"> 3442</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03443"></a><span class="lineno"> 3443</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03444"></a><span class="lineno"> 3444</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03445"></a><span class="lineno"> 3445</span> <span class="preprocessor"></span>  test_ivalue(3, cpl_table_get_nrow(copia),</div>
-<div class="line"><a name="l03446"></a><span class="lineno"> 3446</span>               <span class="stringliteral">"Check length erase rows 0, 2, and 6... "</span>);</div>
-<div class="line"><a name="l03447"></a><span class="lineno"> 3447</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03448"></a><span class="lineno"> 3448</span> </div>
-<div class="line"><a name="l03449"></a><span class="lineno"> 3449</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03450"></a><span class="lineno"> 3450</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03451"></a><span class="lineno"> 3451</span>   printf(<span class="stringliteral">"\nThis is the test table:\n\n"</span>);</div>
-<div class="line"><a name="l03452"></a><span class="lineno"> 3452</span>   cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</div>
-<div class="line"><a name="l03453"></a><span class="lineno"> 3453</span> </div>
-<div class="line"><a name="l03454"></a><span class="lineno"> 3454</span>   printf(<span class="stringliteral">"\nNow delete first 3 rows:\n\n"</span>);</div>
-<div class="line"><a name="l03455"></a><span class="lineno"> 3455</span> </div>
-<div class="line"><a name="l03456"></a><span class="lineno"> 3456</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03457"></a><span class="lineno"> 3457</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03458"></a><span class="lineno"> 3458</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03459"></a><span class="lineno"> 3459</span>   cpl_table_and_selected_window(copia, 0, 3);</div>
-<div class="line"><a name="l03460"></a><span class="lineno"> 3460</span>   test_ivalue(3, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03461"></a><span class="lineno"> 3461</span>               <span class="stringliteral">"Check first 3 rows selected... "</span>);</div>
-<div class="line"><a name="l03462"></a><span class="lineno"> 3462</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03463"></a><span class="lineno"> 3463</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03464"></a><span class="lineno"> 3464</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03465"></a><span class="lineno"> 3465</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03466"></a><span class="lineno"> 3466</span> <span class="preprocessor"></span>  test_ivalue(4, cpl_table_get_nrow(copia),</div>
-<div class="line"><a name="l03467"></a><span class="lineno"> 3467</span>               <span class="stringliteral">"Check length erase first 3 rows... "</span>);</div>
-<div class="line"><a name="l03468"></a><span class="lineno"> 3468</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03469"></a><span class="lineno"> 3469</span> </div>
-<div class="line"><a name="l03470"></a><span class="lineno"> 3470</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03471"></a><span class="lineno"> 3471</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03472"></a><span class="lineno"> 3472</span>   printf(<span class="stringliteral">"\nNow delete last 2 rows:\n\n"</span>);</div>
-<div class="line"><a name="l03473"></a><span class="lineno"> 3473</span> </div>
-<div class="line"><a name="l03474"></a><span class="lineno"> 3474</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03475"></a><span class="lineno"> 3475</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03476"></a><span class="lineno"> 3476</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03477"></a><span class="lineno"> 3477</span>   cpl_table_and_selected_window(copia, 5, 2);</div>
-<div class="line"><a name="l03478"></a><span class="lineno"> 3478</span>   test_ivalue(2, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03479"></a><span class="lineno"> 3479</span>               <span class="stringliteral">"Check last 2 rows selected... "</span>);</div>
-<div class="line"><a name="l03480"></a><span class="lineno"> 3480</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03481"></a><span class="lineno"> 3481</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03482"></a><span class="lineno"> 3482</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03483"></a><span class="lineno"> 3483</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03484"></a><span class="lineno"> 3484</span> <span class="preprocessor"></span>  test_ivalue(5, cpl_table_get_nrow(copia),</div>
-<div class="line"><a name="l03485"></a><span class="lineno"> 3485</span>               <span class="stringliteral">"Check length erase last 2 rows... "</span>);</div>
-<div class="line"><a name="l03486"></a><span class="lineno"> 3486</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03487"></a><span class="lineno"> 3487</span> </div>
-<div class="line"><a name="l03488"></a><span class="lineno"> 3488</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03489"></a><span class="lineno"> 3489</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03490"></a><span class="lineno"> 3490</span>   printf(<span class="stringliteral">"\nNow delete rows from 2 to 3:\n\n"</span>);</div>
-<div class="line"><a name="l03491"></a><span class="lineno"> 3491</span> </div>
-<div class="line"><a name="l03492"></a><span class="lineno"> 3492</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03493"></a><span class="lineno"> 3493</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03494"></a><span class="lineno"> 3494</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03495"></a><span class="lineno"> 3495</span>   cpl_table_and_selected_window(copia, 2, 2);</div>
-<div class="line"><a name="l03496"></a><span class="lineno"> 3496</span>   test_ivalue(2, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03497"></a><span class="lineno"> 3497</span>               <span class="stringliteral">"Check middle 2 rows selected... "</span>);</div>
-<div class="line"><a name="l03498"></a><span class="lineno"> 3498</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03499"></a><span class="lineno"> 3499</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03500"></a><span class="lineno"> 3500</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03501"></a><span class="lineno"> 3501</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03502"></a><span class="lineno"> 3502</span> <span class="preprocessor"></span>  test_ivalue(5, cpl_table_get_nrow(copia),</div>
-<div class="line"><a name="l03503"></a><span class="lineno"> 3503</span>               <span class="stringliteral">"Check length erase rows from 2 to 3... "</span>);</div>
-<div class="line"><a name="l03504"></a><span class="lineno"> 3504</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03505"></a><span class="lineno"> 3505</span> </div>
-<div class="line"><a name="l03506"></a><span class="lineno"> 3506</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03507"></a><span class="lineno"> 3507</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03508"></a><span class="lineno"> 3508</span>   printf(<span class="stringliteral">"\nNow delete rows from 1 to 3 and row 6:\n\n"</span>);</div>
-<div class="line"><a name="l03509"></a><span class="lineno"> 3509</span> </div>
-<div class="line"><a name="l03510"></a><span class="lineno"> 3510</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03511"></a><span class="lineno"> 3511</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03512"></a><span class="lineno"> 3512</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03513"></a><span class="lineno"> 3513</span>   cpl_table_and_selected_window(copia, 1, 3);</div>
-<div class="line"><a name="l03514"></a><span class="lineno"> 3514</span>   cpl_table_or_selected_window(copia, 6, 1);</div>
-<div class="line"><a name="l03515"></a><span class="lineno"> 3515</span>   test_ivalue(4, cpl_table_count_selected(copia), </div>
-<div class="line"><a name="l03516"></a><span class="lineno"> 3516</span>               <span class="stringliteral">"Check rows 1 to 3 and row 6 rejected... "</span>);</div>
-<div class="line"><a name="l03517"></a><span class="lineno"> 3517</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03518"></a><span class="lineno"> 3518</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03519"></a><span class="lineno"> 3519</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03520"></a><span class="lineno"> 3520</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03521"></a><span class="lineno"> 3521</span> <span class="preprocessor"></span>  test_ivalue(3, cpl_table_get_nrow(copia),</div>
-<div class="line"><a name="l03522"></a><span class="lineno"> 3522</span>               <span class="stringliteral">"Check length erase rows from 1 to 3 and row 6... "</span>);</div>
-<div class="line"><a name="l03523"></a><span class="lineno"> 3523</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03524"></a><span class="lineno"> 3524</span> </div>
-<div class="line"><a name="l03525"></a><span class="lineno"> 3525</span>   <span class="comment">/* Erase only invalid elements */</span></div>
-<div class="line"><a name="l03526"></a><span class="lineno"> 3526</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03527"></a><span class="lineno"> 3527</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l03528"></a><span class="lineno"> 3528</span>       cpl_table_set_invalid(copia, <span class="stringliteral">"Int"</span>, i);</div>
-<div class="line"><a name="l03529"></a><span class="lineno"> 3529</span>   }</div>
-<div class="line"><a name="l03530"></a><span class="lineno"> 3530</span> </div>
-<div class="line"><a name="l03531"></a><span class="lineno"> 3531</span>   cpl_table_unselect_row(copia, nrows-1);</div>
-<div class="line"><a name="l03532"></a><span class="lineno"> 3532</span> </div>
-<div class="line"><a name="l03533"></a><span class="lineno"> 3533</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03534"></a><span class="lineno"> 3534</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03535"></a><span class="lineno"> 3535</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03536"></a><span class="lineno"> 3536</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03537"></a><span class="lineno"> 3537</span> <span class="preprocessor"></span>  test_ivalue(1, cpl_table_get_nrow(copia),</div>
-<div class="line"><a name="l03538"></a><span class="lineno"> 3538</span>               <span class="stringliteral">"Check length erase last row, only invalid values... "</span>);</div>
-<div class="line"><a name="l03539"></a><span class="lineno"> 3539</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03540"></a><span class="lineno"> 3540</span> </div>
-<div class="line"><a name="l03541"></a><span class="lineno"> 3541</span>   <span class="comment">/* Erase array column with valid/invalid values */</span></div>
-<div class="line"><a name="l03542"></a><span class="lineno"> 3542</span>   copia = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l03543"></a><span class="lineno"> 3543</span> </div>
-<div class="line"><a name="l03544"></a><span class="lineno"> 3544</span>   cpl_table_cast_column(copia, <span class="stringliteral">"Int"</span>, <span class="stringliteral">"Double"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03545"></a><span class="lineno"> 3545</span> </div>
-<div class="line"><a name="l03546"></a><span class="lineno"> 3546</span>   test(cpl_table_new_column_array(copia, <span class="stringliteral">"ADouble"</span>, </div>
-<div class="line"><a name="l03547"></a><span class="lineno"> 3547</span>                                   CPL_TYPE_DOUBLE | CPL_TYPE_POINTER, 2),</div>
-<div class="line"><a name="l03548"></a><span class="lineno"> 3548</span>                                   <span class="stringliteral">"Creating the ArrayDouble column... "</span>);</div>
-<div class="line"><a name="l03549"></a><span class="lineno"> 3549</span> </div>
-<div class="line"><a name="l03550"></a><span class="lineno"> 3550</span>   array = cpl_array_new(2, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03551"></a><span class="lineno"> 3551</span>   test(cpl_table_set_array(copia, <span class="stringliteral">"ADouble"</span>, 1, array),</div>
-<div class="line"><a name="l03552"></a><span class="lineno"> 3552</span>        <span class="stringliteral">"Set a valid array to ADouble 1... "</span>);</div>
-<div class="line"><a name="l03553"></a><span class="lineno"> 3553</span>   test(cpl_table_set_array(copia, <span class="stringliteral">"ADouble"</span>, 2, array),</div>
-<div class="line"><a name="l03554"></a><span class="lineno"> 3554</span>        <span class="stringliteral">"Set a valid array to ADouble 2... "</span>);</div>
-<div class="line"><a name="l03555"></a><span class="lineno"> 3555</span>   cpl_array_delete(array);</div>
-<div class="line"><a name="l03556"></a><span class="lineno"> 3556</span> </div>
-<div class="line"><a name="l03557"></a><span class="lineno"> 3557</span>   cpl_table_unselect_row(copia, 0);</div>
-<div class="line"><a name="l03558"></a><span class="lineno"> 3558</span>   cpl_table_unselect_row(copia, 2);</div>
-<div class="line"><a name="l03559"></a><span class="lineno"> 3559</span>   cpl_table_set_invalid(copia, <span class="stringliteral">"Int"</span>, 6);</div>
-<div class="line"><a name="l03560"></a><span class="lineno"> 3560</span>   cpl_table_set_invalid(copia, <span class="stringliteral">"Int2"</span>, 0);</div>
-<div class="line"><a name="l03561"></a><span class="lineno"> 3561</span>   cpl_table_set_invalid(copia, <span class="stringliteral">"Int2"</span>, 1);</div>
-<div class="line"><a name="l03562"></a><span class="lineno"> 3562</span>   cpl_table_set_invalid(copia, <span class="stringliteral">"Double"</span>, 0);</div>
-<div class="line"><a name="l03563"></a><span class="lineno"> 3563</span>   cpl_table_set_invalid(copia, <span class="stringliteral">"Double"</span>, 1);</div>
-<div class="line"><a name="l03564"></a><span class="lineno"> 3564</span> </div>
-<div class="line"><a name="l03565"></a><span class="lineno"> 3565</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03566"></a><span class="lineno"> 3566</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03567"></a><span class="lineno"> 3567</span> <span class="preprocessor"></span>  cpl_table_dump(copia, 0, cpl_table_get_nrow(copia), NULL);</div>
-<div class="line"><a name="l03568"></a><span class="lineno"> 3568</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03569"></a><span class="lineno"> 3569</span> <span class="preprocessor"></span>  test_ivalue(2, cpl_table_get_nrow(copia),</div>
-<div class="line"><a name="l03570"></a><span class="lineno"> 3570</span>               <span class="stringliteral">"Check length erase valid/invalid values... "</span>);</div>
-<div class="line"><a name="l03571"></a><span class="lineno"> 3571</span>   test_ivalue(0, cpl_table_is_valid(copia, <span class="stringliteral">"Int2"</span>, 0), </div>
-<div class="line"><a name="l03572"></a><span class="lineno"> 3572</span>                     <span class="stringliteral">"Check that first element of \"Int2\" is still NULL... "</span>);</div>
-<div class="line"><a name="l03573"></a><span class="lineno"> 3573</span>   test_ivalue(1, cpl_table_is_valid(copia, <span class="stringliteral">"Int2"</span>, 1), </div>
-<div class="line"><a name="l03574"></a><span class="lineno"> 3574</span>                     <span class="stringliteral">"Check that first element of \"Int2\" is now valid... "</span>);</div>
-<div class="line"><a name="l03575"></a><span class="lineno"> 3575</span> </div>
-<div class="line"><a name="l03576"></a><span class="lineno"> 3576</span>   cpl_table_unselect_row(copia, 0);</div>
-<div class="line"><a name="l03577"></a><span class="lineno"> 3577</span>   cpl_table_unselect_row(copia, 1);</div>
-<div class="line"><a name="l03578"></a><span class="lineno"> 3578</span>   cpl_table_erase_selected(copia);</div>
-<div class="line"><a name="l03579"></a><span class="lineno"> 3579</span>   test_ivalue(2, cpl_table_count_selected(copia),</div>
-<div class="line"><a name="l03580"></a><span class="lineno"> 3580</span>               <span class="stringliteral">"Check that rows are selected... "</span>);</div>
-<div class="line"><a name="l03581"></a><span class="lineno"> 3581</span> </div>
-<div class="line"><a name="l03582"></a><span class="lineno"> 3582</span>   cpl_table_delete(copia);</div>
-<div class="line"><a name="l03583"></a><span class="lineno"> 3583</span> </div>
-<div class="line"><a name="l03584"></a><span class="lineno"> 3584</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l03585"></a><span class="lineno"> 3585</span> </div>
-<div class="line"><a name="l03586"></a><span class="lineno"> 3586</span> </div>
-<div class="line"><a name="l03587"></a><span class="lineno"> 3587</span> </div>
-<div class="line"><a name="l03588"></a><span class="lineno"> 3588</span>   table = cpl_table_new(4);</div>
-<div class="line"><a name="l03589"></a><span class="lineno"> 3589</span>   cpl_table_new_column(table, <span class="stringliteral">"S"</span>, CPL_TYPE_STRING);</div>
-<div class="line"><a name="l03590"></a><span class="lineno"> 3590</span>   cpl_table_new_column(table, <span class="stringliteral">"D"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03591"></a><span class="lineno"> 3591</span> </div>
-<div class="line"><a name="l03592"></a><span class="lineno"> 3592</span>   cpl_table_set_double(table, <span class="stringliteral">"D"</span>, 0, 43.04);</div>
-<div class="line"><a name="l03593"></a><span class="lineno"> 3593</span>   cpl_table_set_double(table, <span class="stringliteral">"D"</span>, 1, 43.04);</div>
-<div class="line"><a name="l03594"></a><span class="lineno"> 3594</span>   cpl_table_set_double(table, <span class="stringliteral">"D"</span>, 2, 43.04);</div>
-<div class="line"><a name="l03595"></a><span class="lineno"> 3595</span>   cpl_table_set_double(table, <span class="stringliteral">"D"</span>, 3, 43.04);</div>
-<div class="line"><a name="l03596"></a><span class="lineno"> 3596</span>   cpl_table_set_invalid(table, <span class="stringliteral">"D"</span>, 3);</div>
-<div class="line"><a name="l03597"></a><span class="lineno"> 3597</span> </div>
-<div class="line"><a name="l03598"></a><span class="lineno"> 3598</span>   cpl_table_set_string(table, <span class="stringliteral">"S"</span>, 0, <span class="stringliteral">"type"</span>);</div>
-<div class="line"><a name="l03599"></a><span class="lineno"> 3599</span>   cpl_table_set_string(table, <span class="stringliteral">"S"</span>, 1, <span class="stringliteral">"type"</span>);</div>
-<div class="line"><a name="l03600"></a><span class="lineno"> 3600</span>   cpl_table_set_string(table, <span class="stringliteral">"S"</span>, 2, <span class="stringliteral">"type"</span>);</div>
-<div class="line"><a name="l03601"></a><span class="lineno"> 3601</span>   cpl_table_set_string(table, <span class="stringliteral">"S"</span>, 3, <span class="stringliteral">"type"</span>);</div>
-<div class="line"><a name="l03602"></a><span class="lineno"> 3602</span>   cpl_table_set_invalid(table, <span class="stringliteral">"S"</span>, 1);</div>
-<div class="line"><a name="l03603"></a><span class="lineno"> 3603</span> </div>
-<div class="line"><a name="l03604"></a><span class="lineno"> 3604</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03605"></a><span class="lineno"> 3605</span> <span class="preprocessor"></span>  cpl_table_dump(table, 0, 4, stdout);</div>
-<div class="line"><a name="l03606"></a><span class="lineno"> 3606</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03607"></a><span class="lineno"> 3607</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03608"></a><span class="lineno"> 3608</span>   cpl_table_select_all(table);</div>
-<div class="line"><a name="l03609"></a><span class="lineno"> 3609</span>   test_ivalue(4, cpl_table_count_selected(table), <span class="stringliteral">"A..."</span>);</div>
-<div class="line"><a name="l03610"></a><span class="lineno"> 3610</span>   cpl_table_and_selected_invalid(table, <span class="stringliteral">"D"</span>);</div>
-<div class="line"><a name="l03611"></a><span class="lineno"> 3611</span>   test_ivalue(1, cpl_table_count_selected(table), <span class="stringliteral">"B..."</span>);</div>
-<div class="line"><a name="l03612"></a><span class="lineno"> 3612</span> </div>
-<div class="line"><a name="l03613"></a><span class="lineno"> 3613</span>   cpl_table_select_all(table);</div>
-<div class="line"><a name="l03614"></a><span class="lineno"> 3614</span>   test_ivalue(4, cpl_table_count_selected(table), <span class="stringliteral">"C..."</span>);</div>
-<div class="line"><a name="l03615"></a><span class="lineno"> 3615</span> </div>
-<div class="line"><a name="l03616"></a><span class="lineno"> 3616</span> <span class="comment">//fails:  cpl_table_and_selected_invalid(table, "S");</span></div>
-<div class="line"><a name="l03617"></a><span class="lineno"> 3617</span>   uves_table_and_selected_invalid(table, <span class="stringliteral">"S"</span>);</div>
-<div class="line"><a name="l03618"></a><span class="lineno"> 3618</span> </div>
-<div class="line"><a name="l03619"></a><span class="lineno"> 3619</span>   test_ivalue(1, cpl_table_count_selected(table), <span class="stringliteral">"D..."</span>);</div>
-<div class="line"><a name="l03620"></a><span class="lineno"> 3620</span> </div>
-<div class="line"><a name="l03621"></a><span class="lineno"> 3621</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l03622"></a><span class="lineno"> 3622</span> </div>
-<div class="line"><a name="l03623"></a><span class="lineno"> 3623</span> </div>
-<div class="line"><a name="l03624"></a><span class="lineno"> 3624</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l03625"></a><span class="lineno"> 3625</span> <span class="comment">   * Test case: dividing a double column by integer</span></div>
-<div class="line"><a name="l03626"></a><span class="lineno"> 3626</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l03627"></a><span class="lineno"> 3627</span> </div>
-<div class="line"><a name="l03628"></a><span class="lineno"> 3628</span>   nrows = 100;</div>
-<div class="line"><a name="l03629"></a><span class="lineno"> 3629</span> </div>
-<div class="line"><a name="l03630"></a><span class="lineno"> 3630</span>   table = cpl_table_new(nrows);</div>
-<div class="line"><a name="l03631"></a><span class="lineno"> 3631</span>   cpl_table_new_column(table, <span class="stringliteral">"Int"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l03632"></a><span class="lineno"> 3632</span> </div>
-<div class="line"><a name="l03633"></a><span class="lineno"> 3633</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++)</div>
-<div class="line"><a name="l03634"></a><span class="lineno"> 3634</span>        cpl_table_set_int(table, <span class="stringliteral">"Int"</span>, i, i + 1);</div>
-<div class="line"><a name="l03635"></a><span class="lineno"> 3635</span> </div>
-<div class="line"><a name="l03636"></a><span class="lineno"> 3636</span>   cpl_table_cast_column(table, <span class="stringliteral">"Int"</span>, <span class="stringliteral">"Double"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l03637"></a><span class="lineno"> 3637</span> </div>
-<div class="line"><a name="l03638"></a><span class="lineno"> 3638</span>   test(cpl_table_divide_columns(table, <span class="stringliteral">"Double"</span>, <span class="stringliteral">"Int"</span>), </div>
-<div class="line"><a name="l03639"></a><span class="lineno"> 3639</span>                      <span class="stringliteral">"Divide double column with integer column... "</span>);</div>
-<div class="line"><a name="l03640"></a><span class="lineno"> 3640</span> </div>
-<div class="line"><a name="l03641"></a><span class="lineno"> 3641</span>   <span class="keywordflow">for</span> (i = 0; i < nrows; i++) {</div>
-<div class="line"><a name="l03642"></a><span class="lineno"> 3642</span>     sprintf(message, <span class="stringliteral">"Check element %d of result column... "</span>, i);</div>
-<div class="line"><a name="l03643"></a><span class="lineno"> 3643</span>     test_fvalue(1.0, 0.00001, cpl_table_get_double(table, <span class="stringliteral">"Double"</span>, i, NULL), </div>
-<div class="line"><a name="l03644"></a><span class="lineno"> 3644</span>                 message);</div>
-<div class="line"><a name="l03645"></a><span class="lineno"> 3645</span>   }</div>
-<div class="line"><a name="l03646"></a><span class="lineno"> 3646</span> </div>
-<div class="line"><a name="l03647"></a><span class="lineno"> 3647</span> <span class="preprocessor">#ifdef VERBOSE</span></div>
-<div class="line"><a name="l03648"></a><span class="lineno"> 3648</span> <span class="preprocessor"></span>  cpl_table_dump(table, 0, cpl_table_get_nrow(table), NULL);</div>
-<div class="line"><a name="l03649"></a><span class="lineno"> 3649</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03650"></a><span class="lineno"> 3650</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03651"></a><span class="lineno"> 3651</span>   cpl_table_delete(table);</div>
-<div class="line"><a name="l03652"></a><span class="lineno"> 3652</span> </div>
-<div class="line"><a name="l03653"></a><span class="lineno"> 3653</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l03654"></a><span class="lineno"> 3654</span> <span class="comment">  table = cpl_table_load("/home/cizzo/qfits/qfits/test/asciitable.tfits", 1, 1);</span></div>
-<div class="line"><a name="l03655"></a><span class="lineno"> 3655</span> <span class="comment">  table = cpl_table_load("/home/cizzo/qfits/qfits/test/bintable.tfits", 1, 1);</span></div>
-<div class="line"><a name="l03656"></a><span class="lineno"> 3656</span> <span class="comment"></span></div>
-<div class="line"><a name="l03657"></a><span class="lineno"> 3657</span> <span class="comment">  names[0] = "IDENT";</span></div>
-<div class="line"><a name="l03658"></a><span class="lineno"> 3658</span> <span class="comment">  names[1] = "Mag";</span></div>
-<div class="line"><a name="l03659"></a><span class="lineno"> 3659</span> <span class="comment">  reverse[0] = 0;</span></div>
-<div class="line"><a name="l03660"></a><span class="lineno"> 3660</span> <span class="comment">  reverse[1] = 1;</span></div>
-<div class="line"><a name="l03661"></a><span class="lineno"> 3661</span> <span class="comment">  uves_table_sort(table, names, 2, reverse);</span></div>
-<div class="line"><a name="l03662"></a><span class="lineno"> 3662</span> <span class="comment"> </span></div>
-<div class="line"><a name="l03663"></a><span class="lineno"> 3663</span> <span class="comment">  cpl_table_dump_structure(table);</span></div>
-<div class="line"><a name="l03664"></a><span class="lineno"> 3664</span> <span class="comment">  cpl_table_dump(table, 0, cpl_table_get_nrow(table));</span></div>
-<div class="line"><a name="l03665"></a><span class="lineno"> 3665</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l03666"></a><span class="lineno"> 3666</span>  cleanup:</div>
-<div class="line"><a name="l03667"></a><span class="lineno"> 3667</span>   <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l03668"></a><span class="lineno"> 3668</span> </div>
-<div class="line"><a name="l03669"></a><span class="lineno"> 3669</span> }</div>
-<div class="line"><a name="l03670"></a><span class="lineno"> 3670</span> </div>
-<div class="line"><a name="l03671"></a><span class="lineno"> 3671</span> </div>
-<div class="line"><a name="l03672"></a><span class="lineno"> 3672</span> </div>
-<div class="line"><a name="l03673"></a><span class="lineno"> 3673</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03677"></a><span class="lineno"> 3677</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03678"></a><span class="lineno"> 3678</span> </div>
-<div class="line"><a name="l03679"></a><span class="lineno"><a class="code" href="group__uves__utils__test.html#ga840291bc02cba5474a4cb46a9b9566fe"> 3679</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l03680"></a><span class="lineno"> 3680</span> {</div>
-<div class="line"><a name="l03681"></a><span class="lineno"> 3681</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l03682"></a><span class="lineno"> 3682</span> </div>
-<div class="line"><a name="l03683"></a><span class="lineno"> 3683</span>     cpl_test_eq(0, <a class="code" href="group__uves__utils__test.html#ga08eba462d1c80f2b403eb9da1fc1e698">table_erase_selected</a>());</div>
-<div class="line"><a name="l03684"></a><span class="lineno"> 3684</span>     uves_find_property_test();</div>
-<div class="line"><a name="l03685"></a><span class="lineno"> 3685</span>     uves_average_reject_test();</div>
-<div class="line"><a name="l03686"></a><span class="lineno"> 3686</span>     uves_polynomial_fit_2d_test();</div>
-<div class="line"><a name="l03687"></a><span class="lineno"> 3687</span>    </div>
-<div class="line"><a name="l03688"></a><span class="lineno"> 3688</span>     <span class="comment">//uves_filter_cosmic_test();</span></div>
-<div class="line"><a name="l03689"></a><span class="lineno"> 3689</span> </div>
-<div class="line"><a name="l03690"></a><span class="lineno"> 3690</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l03691"></a><span class="lineno"> 3691</span> }</div>
-<div class="line"><a name="l03692"></a><span class="lineno"> 3692</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utils_8c_source.html b/html/uves__utils_8c_source.html
deleted file mode 100644
index d5f46f4..0000000
--- a/html/uves__utils_8c_source.html
+++ /dev/null
@@ -1,4516 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utils.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utils.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-04-16 15:36:11 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.204 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> </div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">                            Includes</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <irplib_ksigma_clip.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> * System Headers</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <errno.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <uves_extract_profile.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_plot.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_wavecal_utils.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <uves_time.h></span> <span class="comment">/* iso time */</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <ctype.h></span>  <span class="comment">/* tolower */</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment">                            Defines</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">// The following macros are used to provide a fast</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">// and readable way to convert C-indexes to FORTRAN-indexes.</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor">#define C_TO_FORTRAN_INDEXING(a) &a[-1]</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="preprocessor"></span><span class="preprocessor">#define FORTRAN_TO_C_INDEXING(a) &a[1]</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="keyword">static</span> cpl_error_code </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <a class="code" href="group__uves__utils.html#gaea6246a88791de8614f3af35802dc644" title="Remove cosmic ray events on single ccd exposure and replace them by interpolation on neighbourhood pi...">uves_cosrout</a>(cpl_image* ima,</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span>              cpl_image** msk,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> ron, </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> gain,</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>              <span class="keyword">const</span> <span class="keywordtype">int</span> ns,</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> sky,</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> rc,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>              cpl_image** flt,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>              cpl_image** out);</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="keyword">static</span> cpl_image * </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <a class="code" href="group__uves__utils.html#gab6d9ffe3669b75518bf7108681c52fa6" title="Generate a low pass filter for FFT convolution .">uves_gen_lowpass</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> xs, </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                   <span class="keyword">const</span> <span class="keywordtype">int</span> ys, </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> sigma_x, </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> sigma_y);</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="keyword">static</span> cpl_error_code </div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> uves_find_next(cpl_image** msk,</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                <span class="keyword">const</span> <span class="keywordtype">int</span> first_y,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                <span class="keywordtype">int</span>* next_x,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>            <span class="keywordtype">int</span>* next_y);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> uves_sort(<span class="keyword">const</span> <span class="keywordtype">int</span> kmax,<span class="keywordtype">float</span>* inp, <span class="keywordtype">int</span>* ord);</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> cpl_error_code</div>
-<div class="line"><a name="l00162"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gaaed2a3318adb62b1725bc28273757e58">  162</a></span> <a class="code" href="group__uves__utils.html#gaaed2a3318adb62b1725bc28273757e58" title="Remove cosmic ray events on single ccd exposure and replace them by interpolation on neighbourhood pi...">uves_rcosmic</a>(cpl_image* ima,</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>              cpl_image** flt,</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>              cpl_image** out,</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>              cpl_image** msk,</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> sky,</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> ron,</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> gain,</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>              <span class="keyword">const</span> <span class="keywordtype">int</span> ns,</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> rc)</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> {</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"></span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"></span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">      PROGRAM RCOSMIC</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment">      INTEGER*4 IAV,I</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment">      INTEGER*4 STATUS,MADRID,SIZEX,IOMODE</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">      INTEGER*4 NAXIS,NPIX(2),IMNI,IMNO,IMNF,IMNC</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment">      INTEGER*8 PNTRI,PNTRF,PNTRO,PNTRC</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment">      INTEGER*4 KUN,KNUL</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment">      CHARACTER*60 IMAGE,OBJET,COSMIC</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment">      CHARACTER*72 IDENT1,IDENT2,IDENT3</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment">      CHARACTER*48 CUNIT</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment">      DOUBLE PRECISION START(2),STEP(2)</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment">      REAL*4 SKY,GAIN,RON,NS,RC,PARAM(5),CUTS(2)</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">      INCLUDE 'MID_INCLUDE:ST_DEF.INC'</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">      COMMON/VMR/MADRID(1)</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment">      INCLUDE 'MID_INCLUDE:ST_DAT.INC'</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment">      DATA IDENT1 /' '/</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment">      DATA IDENT2 /' '/</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment">      DATA IDENT3 /'cosmic ray mask '/</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment">      DATA CUNIT /' '/</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment">      CALL STSPRO('RCOSMIC')</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment">      CALL STKRDC('IN_A',1,1,60,IAV,IMAGE,KUN,KNUL,STATUS)</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment">      CALL STIGET(IMAGE,D_R4_FORMAT,F_I_MODE,F_IMA_TYPE,</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment">     1                2,NAXIS,NPIX,START,STEP</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment">     1                ,IDENT1,CUNIT,PNTRI,IMNI,STATUS)</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"></span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment">      CALL STKRDR('PARAMS',1,5,IAV,PARAM,KUN,KNUL,STATUS)</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment">      CALL STIGET('middumma',D_R4_FORMAT,F_I_MODE,F_IMA_TYPE,</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment">     1                2,NAXIS,NPIX,START,STEP</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment">     1                ,IDENT2,CUNIT,PNTRF,IMNF,STATUS)</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment">      SKY = PARAM(1)</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment">      GAIN = PARAM(2)</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment">      RON = PARAM(3)</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment">      NS = PARAM(4)</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment">      RC = PARAM(5)</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"></span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*flt=cpl_image_duplicate(ima));</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f" title="Median filter.">uves_filter_image_median</a>(flt,1,1,<span class="keyword">false</span>));</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment"></span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment">      CALL STKRDC('OUTIMA',1,1,60,IAV,OBJET,KUN,KNUL,STATUS)</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment">      CALL STIPUT(OBJET,D_R4_FORMAT,F_O_MODE,F_IMA_TYPE,</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment">     1                 NAXIS,NPIX,START,STEP</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="comment">     1                ,IDENT1,CUNIT,PNTRO,IMNO,STATUS)</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="comment"></span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment">      SIZEX = 1</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment">      DO I=1,NAXIS</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment">         SIZEX = SIZEX*NPIX(I)</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment">      ENDDO</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="comment">      CALL STKRDC('COSMIC',1,1,60,IAV,COSMIC,KUN,KNUL,STATUS)</span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment">      IF (COSMIC(1:1).EQ.'+') THEN</span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment">            COSMIC = 'dummy_frame'</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment">            IOMODE = F_X_MODE</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment">      ELSE</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment">            IOMODE = F_O_MODE</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="comment">      ENDIF    </span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment">      CALL STIPUT(COSMIC,D_I2_FORMAT,IOMODE,F_IMA_TYPE</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment">     1                 ,NAXIS,NPIX,START,STEP</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment">     1                ,IDENT3,CUNIT,PNTRC,IMNC,STATUS)</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="comment">      CALL COSROUT(MADRID(PNTRI),MADRID(PNTRC),NPIX(1),NPIX(2),</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> <span class="comment">     1             RON,GAIN,NS,SKY,RC</span></div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment">     1            ,MADRID(PNTRF),MADRID(PNTRO))</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="comment"></span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment">      CUTS(1) = 0</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="comment">      CUTS(2) = 1</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="comment">      IF (IOMODE.EQ.F_O_MODE) </span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">     + CALL STDWRR(IMNC,'LHCUTS',CUTS,1,2,KUN,STATUS)</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment">      CALL DSCUPT(IMNI,IMNO,' ',STATUS) </span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment">      CALL STSEPI</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment">      END</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="comment"></span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="comment"></span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__utils.html#gaea6246a88791de8614f3af35802dc644" title="Remove cosmic ray events on single ccd exposure and replace them by interpolation on neighbourhood pi...">uves_cosrout</a>(ima,msk,ron,gain,ns,sky,rc,flt,out));</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>   cleanup:</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>   <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> }</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> </div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="keyword">static</span> <span class="keywordtype">double</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga8927e9c74fcd2ff11122490e4f42fe90">  277</a></span> <a class="code" href="group__uves__utils.html#ga8927e9c74fcd2ff11122490e4f42fe90" title="Perform kappa-sigma clip.">uves_ksigma_vector</a>(cpl_vector *values,<span class="keywordtype">double</span> klow, <span class="keywordtype">double</span> khigh, <span class="keywordtype">int</span> kiter)</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> {</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     cpl_vector *accepted;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     <span class="keywordtype">double</span>  mean  = 0.0;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     <span class="keywordtype">double</span>  sigma = 0.0;</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     <span class="keywordtype">double</span> *data  = cpl_vector_get_data(values);</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     <span class="keywordtype">int</span>     n     = cpl_vector_get_size(values);</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     <span class="keywordtype">int</span>     ngood = n;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     <span class="keywordtype">int</span>     count = 0;</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     <span class="keywordtype">int</span>     i;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>  </div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment">     * At first iteration the mean is taken as the median, and the</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment">     * standard deviation relative to this value is computed.</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(mean = cpl_vector_get_median(values));</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     <span class="keywordflow">for</span> (i = 0; i < n; i++) {</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>         sigma += (mean - data[i]) * (mean - data[i]);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     }</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     sigma = sqrt(sigma / (n - 1));</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="keywordflow">while</span> (kiter) {</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>         count = 0;</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>         <span class="keywordflow">for</span> (i = 0; i < ngood; i++) {</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>             <span class="keywordflow">if</span> (data[i]-mean < khigh*sigma && mean-data[i] < klow*sigma) {</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>                 data[count] = data[i];</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                 ++count;</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>             }</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>         }</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>         <span class="keywordflow">if</span> (count == 0) <span class="comment">// This cannot happen at first iteration.</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>             <span class="keywordflow">break</span>;      <span class="comment">// So we can break: we have already computed a mean.</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment">         * The mean must be computed even if no element was rejected</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment">         * (count == ngood), because at first iteration median instead</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="comment">         * of mean was computed.</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(accepted = cpl_vector_wrap(count, data));</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(mean = cpl_vector_get_mean(accepted));</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>         <span class="keywordflow">if</span>(count>1) {</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>            <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sigma = cpl_vector_get_stdev(accepted));</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>         }</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_vector_unwrap(accepted));</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>         <span class="keywordflow">if</span> (count == ngood) {</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>             <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>         }</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>         ngood = count;</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>         --kiter;</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     }</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>   cleanup:</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     <span class="keywordflow">return</span> mean;</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> }</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> cpl_image *</div>
-<div class="line"><a name="l00356"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gad61bad9fe3d7614ebd9de472f600c6eb">  356</a></span> <a class="code" href="group__uves__utils.html#gad61bad9fe3d7614ebd9de472f600c6eb" title="Stack images using k-sigma clipping.">uves_ksigma_stack</a>(<span class="keyword">const</span> cpl_imagelist *imlist, <span class="keywordtype">double</span> klow, <span class="keywordtype">double</span> khigh, <span class="keywordtype">in [...]
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> {</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <span class="keywordtype">int</span>         ni, nx, ny, npix;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     cpl_image  *out_ima=NULL;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     cpl_imagelist  *loc_iml=NULL;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <span class="keywordtype">double</span>      *pout_ima=NULL;</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     cpl_image  *image=NULL;</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>     **data=NULL;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     <span class="keywordtype">double</span>     *med=NULL;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     cpl_vector *time_line=NULL;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>   </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     <span class="keywordtype">double</span>     *ptime_line=NULL;</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     <span class="keywordtype">int</span>         i, j;</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>    <span class="keywordtype">double</span> mean_of_medians=0;</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(imlist != NULL, <span class="stringliteral">"Null input imagelist!"</span>);</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     ni         = cpl_imagelist_get_size(imlist);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     loc_iml        = cpl_imagelist_duplicate(imlist);</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     image      = cpl_imagelist_get(loc_iml, 0);</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     nx         = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     ny         = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     npix       = nx * ny;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     out_ima    = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     pout_ima   = cpl_image_get_data_double(out_ima);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     time_line  = cpl_vector_new(ni);</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>    </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     ptime_line = cpl_vector_get_data(time_line);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     data = cpl_calloc(<span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *), ni);</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>     med  = cpl_calloc(<span class="keyword">sizeof</span>(<span class="keywordtype">double</span>), ni);</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> </div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     <span class="keywordflow">for</span> (i = 0; i < ni; i++) {</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>         image = cpl_imagelist_get(loc_iml, i);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         med[i]=cpl_image_get_median(image);</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>         cpl_image_subtract_scalar(image,med[i]);</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>         data[i] = cpl_image_get_data_double(image);</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>         mean_of_medians+=med[i];</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     }</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     mean_of_medians/=ni;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> </div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     <span class="keywordflow">for</span> (i = 0; i < npix; i++) {</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>         <span class="keywordflow">for</span> (j = 0; j < ni; j++) {</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>              ptime_line[j] = data[j][i];</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>          }</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pout_ima[i] = <a class="code" href="group__uves__utils.html#ga8927e9c74fcd2ff11122490e4f42fe90" title="Perform kappa-sigma clip.">uves_ksigma_vector</a>(time_line, klow, khigh, kiter)); </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>     }</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>  </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     cpl_image_add_scalar(out_ima,mean_of_medians);</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>   cleanup:</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     cpl_free(data);</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     cpl_free(med);</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     cpl_vector_delete(time_line);</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     uves_free_imagelist(&loc_iml);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     <span class="keywordflow">return</span> out_ima;</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> </div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span> } </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> cpl_image *</div>
-<div class="line"><a name="l00452"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gae7a22d7bd34d61c32515d570e512e189">  452</a></span> <a class="code" href="group__uves__utils.html#gae7a22d7bd34d61c32515d570e512e189" title="Generates wave map.">uves_get_wave_map</a>(</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                   cpl_image * ima_sci,</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> *context,</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                   <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>           <span class="keyword">const</span> cpl_table *ordertable,</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>           <span class="keyword">const</span> cpl_table *linetable,</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>           <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a>* order_locations,</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>           <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation,</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>           <span class="keyword">const</span> <span class="keywordtype">int</span> first_abs_order,</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>           <span class="keyword">const</span> <span class="keywordtype">int</span> last_abs_order,</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>           <span class="keyword">const</span> <span class="keywordtype">int</span> slit_size)</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span> {</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>   cpl_image* wave_map=NULL;</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>   <span class="keywordtype">double</span>* pwmap=NULL;</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>   <span class="keywordtype">int</span> ord_min=0;</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>   <span class="keywordtype">int</span> ord_max=0;</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>   <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>   <span class="keywordtype">double</span> xpos=0;</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>   <span class="keywordtype">double</span> ypos=0;</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>   <span class="keywordtype">double</span> wlen=0;</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>   </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>   <span class="keywordtype">int</span> nx=0;</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>   <span class="keywordtype">int</span> ny=0;</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>   <span class="keywordtype">int</span> aord=0;</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>   <span class="keywordtype">int</span> order=0;</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>   <span class="keywordtype">int</span> jj=0;</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>   <span class="keywordtype">int</span> norders=0;</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>   <span class="keywordtype">int</span> hs=0;</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Creating wave map"</span>);</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>   <span class="comment">/* set half slit size */</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>   hs=slit_size/2;</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>   <span class="comment">/* get wave map size */</span> </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>   nx = cpl_image_get_size_x(ima_sci);</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>   ny = cpl_image_get_size_y(ima_sci);</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>      </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>   <span class="comment">/* get ord min-max */</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>   ord_min=cpl_table_get_column_min(ordertable,<span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>   ord_max=cpl_table_get_column_max(ordertable,<span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>   norders=ord_max-ord_min+1;</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> </div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(wave_map=cpl_image_new(nx,ny,CPL_TYPE_DOUBLE));</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>   pwmap=cpl_image_get_data_double(wave_map);</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>   <span class="keywordflow">for</span> (order = 1; order <= norders; order++){</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     <span class="comment">/* wave solution need absolute order value */</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     aord = <a class="code" href="group__uves__utils.html#ga579bc295bb9d73af0b052f37b576f552" title="Get the absolute order number.">uves_absolute_order</a>(first_abs_order, last_abs_order, order);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     <span class="keywordflow">for</span> (i=0;i<nx;i++) {</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>       xpos=(double)i;</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>       wlen=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(dispersion_relation,xpos,aord)/aord;</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>       ypos=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations,xpos,order);</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>       <span class="keywordflow">for</span> (jj=-hs;jj<hs;jj++) {</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     j=(int)(ypos+jj+0.5);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>         <span class="comment">/* check the point is on the detector */</span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     <span class="keywordflow">if</span>( (j>0) && ( (j*nx+i)<nx*ny) ) {</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>       pwmap[j*nx+i]=wlen;</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>     }</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>       }</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     }</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>   }</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="comment">  check_nomsg(cpl_image_save(wave_map,"wmap.fits",CPL_BPP_IEEE_FLOAT,NULL,</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="comment">                 CPL_IO_DEFAULT));</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>  cleanup:</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>   <span class="keywordflow">return</span> wave_map;</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> }</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> </div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> </div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> </div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> </div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> cpl_image *</div>
-<div class="line"><a name="l00551"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gaabfabe05e25ffc4af017f4e29b22a56e">  551</a></span> <a class="code" href="group__uves__utils.html#gaabfabe05e25ffc4af017f4e29b22a56e" title="Stack images using k-sigma clipping.">uves_flat_create_normalized_master2</a>(cpl_imagelist * flats,</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>                                     <span class="keyword">const</span> cpl_table *ordertable,</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                                     <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a>* order_locations,</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                                     <span class="keyword">const</span> cpl_image* mflat)</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span> {</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>    cpl_imagelist* flats_norm=NULL;</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> </div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>    cpl_image* master_flat=NULL;</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>    <span class="comment">/* cpl_image* img=NULL; */</span></div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>    cpl_image* flat=NULL;</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>    cpl_image* flat_mflat=NULL;</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>    cpl_vector* vec_flux=NULL;</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>    <span class="keywordtype">double</span>* pvec_flux=NULL;</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>    <span class="keywordtype">int</span> ni=0;</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>    <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>    <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>    <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>    <span class="keywordtype">int</span> ord_min=0;</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>    <span class="keywordtype">int</span> ord_max=0;</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>    <span class="keywordtype">int</span> nord=0;</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>    <span class="keywordtype">int</span> nsam=10;</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>    <span class="keywordtype">int</span> x_space=10;</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>    <span class="keywordtype">int</span> llx=0;</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>    <span class="keywordtype">int</span> lly=0;</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>    <span class="keywordtype">int</span> urx=0;</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>    <span class="keywordtype">int</span> ury=0;</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>    <span class="keywordtype">int</span> hbox_sx=0;</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>    <span class="keywordtype">int</span> hbox_sy=0;</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>    <span class="keywordtype">int</span> ord=0;</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>    <span class="keywordtype">int</span> absord=0;</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>    <span class="keywordtype">int</span> pos_x=0;</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>    <span class="keywordtype">int</span> pos_y=0;</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>    <span class="keywordtype">double</span> x=0;</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>    <span class="keywordtype">double</span> y=0;</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>    <span class="keywordtype">double</span> flux_median=0;</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>    <span class="keywordtype">double</span> mean_explevel=0;</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>    <span class="comment">/* double exptime=0; */</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>    <span class="keywordtype">int</span> is=0;</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>    <span class="keywordtype">int</span> k=0;</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>    ni=cpl_imagelist_get_size(flats);</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>    </div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>    <span class="comment">/* evaluate medain on many windows distribuited all over orders of flats */</span></div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>    sx         = cpl_image_get_size_x(mflat);</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>    sy         = cpl_image_get_size_y(mflat);</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> </div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>    ord_min=cpl_table_get_column_min(ordertable,<span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>    ord_max=cpl_table_get_column_max(ordertable,<span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>    nord=ord_max-ord_min+1;</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span> </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>    hbox_sx=(int)((sx-2*x_space)/(2*nsam)+0.5);</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>    flats_norm=cpl_imagelist_new();</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>    <span class="keywordflow">for</span>(i=0;i<ni;i++) {</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>    uves_free_vector(&vec_flux);</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>    vec_flux=cpl_vector_new(nord*nsam);</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>    pvec_flux=cpl_vector_get_data(vec_flux);</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>      uves_free_image(&flat_mflat);</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>      uves_free_image(&flat);</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(flat = cpl_image_duplicate(cpl_imagelist_get(flats, i)));</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>       <span class="comment">/* normalize flats by master flat */</span></div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>       flat_mflat=cpl_image_duplicate(flat);</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>       cpl_image_divide(flat_mflat,mflat);</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>       </div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>       k=0;</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>       <span class="keywordflow">for</span>(ord=0;ord<nord;ord++) {</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>          absord=ord+ord_min;</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>          pos_x=-hbox_sx;</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>          <span class="keywordflow">for</span>(is=0;is<nsam;is++) {</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>             pos_x+=(2*hbox_sx+x_space);</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>             x=(int)(pos_x+0.5);</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(y=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>                                                       x, absord));</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>             pos_y=(int)(y+0.5);</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> </div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(llx=uves_max_int(pos_x-hbox_sx,1));</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(lly=uves_max_int(pos_y-hbox_sy,1));</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(llx=uves_min_int(llx,sx));</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(lly=uves_min_int(lly,sy));</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> </div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(urx=uves_min_int(pos_x+hbox_sx,sx));</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ury=uves_min_int(pos_y+hbox_sy,sy));</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(urx=uves_max_int(urx,1));</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ury=uves_max_int(ury,1));</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(llx=uves_min_int(llx,urx));</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(lly=uves_min_int(lly,ury));</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pvec_flux[k]=0);</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> </div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pvec_flux[k]=cpl_image_get_median_window(flat_mflat,llx,lly,urx,ury));</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> </div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>             k++;</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>          }</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> </div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>       }</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> </div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>       flux_median=cpl_vector_get_median(vec_flux);</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Flat %d normalize factor iter2: %g"</span>,i,flux_median);</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>       cpl_image_divide_scalar(flat,flux_median);</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>       cpl_imagelist_set(flats_norm,cpl_image_duplicate(flat),i);</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>       mean_explevel+=flux_median;</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>    }</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>    mean_explevel/=ni;</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>    </div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_imagelist_multiply_scalar(flats_norm,mean_explevel));</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span> </div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( master_flat = cpl_imagelist_collapse_median_create(flats_norm),</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>           <span class="stringliteral">"Error computing median"</span>);</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> </div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span> </div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span> </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span> </div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>   cleanup:</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span> </div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>    uves_free_imagelist(&flats_norm);</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>    uves_free_vector(&vec_flux);</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>    uves_free_image(&flat_mflat);</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>    uves_free_image(&flat);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>    uves_check_rec_status(0);</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>    <span class="keywordflow">return</span> master_flat;</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span> </div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span> }</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> </div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span> cpl_image *</div>
-<div class="line"><a name="l00702"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gaa6e2f1554b5345868a2f71604a42409b">  702</a></span> <a class="code" href="group__uves__utils.html#gaa6e2f1554b5345868a2f71604a42409b" title="Stack images using k-sigma clipping.">uves_flat_create_normalized_master</a>(cpl_imagelist * flats,</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>                                    <span class="keyword">const</span> cpl_table *ordertable,</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>                                    <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a>* order_locations,</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                    <span class="keyword">const</span> cpl_vector* gain_vals ,</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>                    <span class="keywordtype">double</span>* fnoise)</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> {</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>    <span class="keywordtype">int</span>         ni;</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>    cpl_image  *image=NULL;</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>    cpl_image* master_flat=NULL;</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>    cpl_imagelist* flats_norm=NULL;</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>    <span class="keywordtype">int</span>   k=0;</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>    <span class="keywordtype">int</span> ord_min=0;</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>    <span class="keywordtype">int</span> ord_max=0;</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>    <span class="keywordtype">int</span> nord=0;</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>    <span class="keywordtype">double</span> flux_mean=0;</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>    <span class="keywordtype">int</span> nsam=10;</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>    <span class="keywordtype">int</span> x_space=10;</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>    <span class="keywordtype">int</span> hbox_sx=0;</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>    <span class="keywordtype">int</span> hbox_sy=10;</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>    <span class="keywordtype">int</span> is=0;</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>    <span class="keywordtype">int</span> pos_x=0;</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>    <span class="keywordtype">int</span> pos_y=0;</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>    <span class="keywordtype">int</span> llx=0;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>    <span class="keywordtype">int</span> lly=0;</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>    <span class="keywordtype">int</span> urx=0;</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>    <span class="keywordtype">int</span> ury=0;</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> </div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>    <span class="keywordtype">double</span> x=0;</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>    <span class="keywordtype">double</span> y=0;</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>    <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>    <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>    cpl_vector* vec_flux_ord=NULL;</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>    cpl_vector* vec_flux_sam=NULL;</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>    <span class="keywordtype">double</span>* pvec_flux_ord=NULL;</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>    <span class="keywordtype">double</span>* pvec_flux_sam=NULL;</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>    <span class="keywordtype">int</span> absord=0;</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>    <span class="keywordtype">int</span> ord=0;</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>    <span class="keyword">const</span> <span class="keywordtype">double</span>* pgain_vals=NULL;</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>    <span class="keywordtype">double</span> fnoise_local=0;</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> </div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>    <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(flats != NULL, <span class="stringliteral">"Null input flats imagelist!"</span>);</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>    <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(order_locations != NULL, <span class="stringliteral">"Null input order locations polinomial!"</span>);</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> </div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>    ni         = cpl_imagelist_get_size(flats);</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span> </div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>    image      = cpl_image_duplicate(cpl_imagelist_get(flats, 0));</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>    sx         = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>    sy         = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span> </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>    uves_free_image(&image);</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>    ord_min=cpl_table_get_column_min(ordertable,<span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>    ord_max=cpl_table_get_column_max(ordertable,<span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>    nord=ord_max-ord_min+1;</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>    vec_flux_ord=cpl_vector_new(nord);</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>    vec_flux_sam=cpl_vector_new(nsam);</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>    pvec_flux_ord=cpl_vector_get_data(vec_flux_ord);</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>    pvec_flux_sam=cpl_vector_get_data(vec_flux_sam);</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>    hbox_sx=(int)((sx-2*x_space)/(2*nsam)+0.5);</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>    flats_norm=cpl_imagelist_new();</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>    pgain_vals=cpl_vector_get_data_const(gain_vals);</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> </div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>    <span class="keywordflow">for</span>(k=0;k<ni;k++) {</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>       uves_free_image(&image);</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>       image = cpl_image_duplicate(cpl_imagelist_get(flats, k));</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>       <span class="keywordflow">for</span>(ord=0;ord<nord;ord++) {</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>          absord=ord+ord_min;</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>          pos_x=-hbox_sx;</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>          <span class="keywordflow">for</span>(is=0;is<nsam;is++) {</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>             pos_x+=(2*hbox_sx+x_space);</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>             x=(int)(pos_x+0.5);</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span> </div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(y=<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>                                                       x, absord));</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>             pos_y=(int)(y+0.5);</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>             llx=uves_max_int(pos_x-hbox_sx,1);</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>             lly=uves_max_int(pos_y-hbox_sy,1);</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>             llx=uves_min_int(llx,sx);</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>             lly=uves_min_int(lly,sy);</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> </div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>             urx=uves_min_int(pos_x+hbox_sx,sx);</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>             ury=uves_min_int(pos_y+hbox_sy,sy);</div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>             urx=uves_max_int(urx,1);</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>             ury=uves_max_int(ury,1);</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> </div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>             llx=uves_min_int(llx,urx);</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>             lly=uves_min_int(lly,ury);</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span> </div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pvec_flux_sam[is]=cpl_image_get_median_window(image,llx,lly,urx,ury));</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span> </div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>          }</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>          pvec_flux_ord[ord]=cpl_vector_get_mean(vec_flux_sam);</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>       }</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span> </div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>       flux_mean=cpl_vector_get_mean(vec_flux_ord);</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Flat %d normalize factor inter1: %g"</span>,k,flux_mean);</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>       fnoise_local+=pgain_vals[k]*flux_mean;</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>       cpl_image_divide_scalar(image,flux_mean);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>       cpl_imagelist_set(flats_norm,cpl_image_duplicate(image),k);</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>    }</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>    *fnoise=1./sqrt(fnoise_local);</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( master_flat = cpl_imagelist_collapse_median_create(flats_norm),</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>           <span class="stringliteral">"Error computing median"</span>);</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>  </div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>    <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"FNOISE %g "</span>,*fnoise);</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>   cleanup:</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> </div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>    uves_free_vector(&vec_flux_ord);</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>    uves_free_vector(&vec_flux_sam);</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>    uves_free_image(&image);</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>    uves_free_imagelist(&flats_norm);</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span> </div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> </div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>    <span class="keywordflow">return</span> master_flat;</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span> </div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> }</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span> </div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span> </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span> <span class="keyword">static</span> cpl_error_code </div>
-<div class="line"><a name="l00846"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gaea6246a88791de8614f3af35802dc644">  846</a></span> <a class="code" href="group__uves__utils.html#gaea6246a88791de8614f3af35802dc644" title="Remove cosmic ray events on single ccd exposure and replace them by interpolation on neighbourhood pi...">uves_cosrout</a>(cpl_image* ima,</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>              cpl_image** msk,</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> ron, </div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> gain,</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>              <span class="keyword">const</span> <span class="keywordtype">int</span> ns,</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> sky,</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> rc,</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>              cpl_image** flt,</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>              cpl_image** out)</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span> {</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span> </div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> </div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> <span class="comment"></span></div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> <span class="comment">      SUBROUTINE COSROUT(AI,COSMIC,I_IMA,J_IMA,RON,GAIN,</span></div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> <span class="comment">     1                   NS,SKY,RC,AM,AO)</span></div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span> <span class="comment">      INTEGER I_IMA,J_IMA,NUM</span></div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span> <span class="comment">      INTEGER ORD(10000)</span></div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> <span class="comment">      INTEGER K,L</span></div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> <span class="comment">      INTEGER IDUMAX,JDUMAX,I1,I2,J1,II,JJ</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> <span class="comment">      INTEGER I,J,IMAX,JMAX,IMIN,JMIN</span></div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> <span class="comment">      INTEGER FIRST(2),NEXT(2)</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span> <span class="comment">      INTEGER*2 COSMIC(I_IMA,J_IMA)</span></div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> <span class="comment">      REAL*4 VECTEUR(10000),FMAX,ASUM,RC</span></div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> <span class="comment">      REAL*4 AI(I_IMA,J_IMA),AO(I_IMA,J_IMA),AM(I_IMA,J_IMA)</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> <span class="comment">      REAL*4 SIGMA,SKY,S1,S2</span></div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> <span class="comment">      REAL*4 RON,GAIN,NS,AMEDIAN</span></div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> <span class="comment"></span></div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> </div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>   <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>   <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>   <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>   <span class="keywordtype">int</span> k=1;</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>   <span class="keywordtype">int</span> pix=0;</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>   <span class="keywordtype">int</span> first[2];</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>   <span class="keywordtype">int</span> next_x=0;</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>   <span class="keywordtype">int</span> next_y=0;</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>   <span class="keywordtype">int</span> i_min=0;</div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>   <span class="keywordtype">int</span> i_max=0;</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>   <span class="keywordtype">int</span> j_min=0;</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>   <span class="keywordtype">int</span> j_max=0;</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>   <span class="keywordtype">int</span> idu_max=0;</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>   <span class="keywordtype">int</span> jdu_max=0;</div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>   <span class="keywordtype">int</span> i1=0;</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>   <span class="keywordtype">int</span> i2=0;</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>   <span class="keywordtype">int</span> ii=0;</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>   <span class="keywordtype">int</span> jj=0;</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>   <span class="keywordtype">int</span> j1=0;</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>   <span class="keywordtype">int</span> num=0;</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>   <span class="keywordtype">int</span> l=0;</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>   <span class="keywordtype">int</span> nmax=1e6;</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>   <span class="keywordtype">int</span> ord[nmax];</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> </div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> </div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>   <span class="keywordtype">float</span>* pi=NULL;</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>   <span class="keywordtype">float</span>* po=NULL;</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>   <span class="keywordtype">float</span>* pf=NULL;</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>   <span class="keywordtype">int</span>* pm=NULL;</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>   <span class="keywordtype">float</span> sigma=0;</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span> </div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span> </div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>   <span class="keywordtype">float</span> vec[nmax];</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span> </div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>   <span class="keywordtype">double</span> f_max=0;</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>   <span class="keywordtype">double</span> s1=0;</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>   <span class="keywordtype">double</span> s2=0;</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>   <span class="keywordtype">double</span> asum=0;</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>   <span class="keywordtype">double</span> a_median=0;</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> </div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>   <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"sky=%g gain=%g ron=%g ns=%d rc=%g"</span>,sky,gain,ron,ns,rc);</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sx=cpl_image_get_size_x(ima));</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sy=cpl_image_get_size_y(ima));</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pi=cpl_image_get_data_float(ima));</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>   <span class="comment">//*flt=cpl_image_new(sx,sy,CPL_TYPE_FLOAT);</span></div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>   *msk=cpl_image_new(sx,sy,CPL_TYPE_INT);</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span> </div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pf=cpl_image_get_data_float(*flt));</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pm=cpl_image_get_data_int(*msk));</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span> </div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(*out=cpl_image_duplicate(ima));</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(po=cpl_image_get_data_float(*out));</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span> <span class="comment"></span></div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span> <span class="comment">      DO 10 J=1,J_IMA</span></div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> <span class="comment">      DO 5 I=1,I_IMA</span></div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span> <span class="comment">      AO(I,J)=AI(I,J)</span></div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> <span class="comment">      COSMIC(I,J)= 0</span></div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> <span class="comment">    5 CONTINUE</span></div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span> <span class="comment">   10 CONTINUE</span></div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span> <span class="comment"></span></div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> <span class="comment">C</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span> <span class="comment">C     La boucle suivante selectionne les pixels qui sont</span></div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span> <span class="comment">C     significativ+ement au dessus de l'image filtree medianement.</span></div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> <span class="comment">C</span></div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span> <span class="comment">C    The flowing loop selects the pixels that are much higher that the </span></div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span> <span class="comment">C    median filter image</span></div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span> <span class="comment">C</span></div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> <span class="comment">C     COSMIC =-1 ----> candidate for cosmic</span></div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span> <span class="comment">C            = 0 ----> not a cosmic</span></div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> <span class="comment">C            = 1 -----> a cosmic (at the end)</span></div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span> <span class="comment">C            = 2 ----> member of the group</span></div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span> <span class="comment">C            = 3 ----> member of a group which has been examined</span></div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span> <span class="comment">C            = 4 ----> neighbourhood  of the group</span></div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span> <span class="comment">      K=1</span></div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span> <span class="comment">      DO 80 J=2,J_IMA-1</span></div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span> <span class="comment">      DO 70 I=2,I_IMA-1</span></div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> <span class="comment">      SIGMA=SQRT(RON**2+AM(I,J)/GAIN)</span></div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> <span class="comment">      IF ((AI(I,J)-AM(I,J)).GE.(NS*SIGMA)) THEN</span></div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span> <span class="comment">            COSMIC(I,J) = -1</span></div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> <span class="comment">            K = K+1</span></div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span> <span class="comment">      ENDIF</span></div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span> <span class="comment">   70 CONTINUE</span></div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> <span class="comment">   80 CONTINUE</span></div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span> <span class="comment"></span></div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span> <span class="comment"></span></div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> </div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span> </div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>   <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Set all pix to = -1 -> candidate for cosmic"</span>);</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>   k=1;</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>   <span class="keywordflow">for</span>(j=1;j<sy-1;j++) {</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>     <span class="keywordflow">for</span>(i=1;i<sx-1;i++) {</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>       pix=j*sx+i;</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>       sigma=sqrt(ron*ron+pf[pix]/gain);</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>       <span class="keywordflow">if</span> ( (pi[pix]-pf[pix]) >= (ns*sigma) ) {</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>     pm[pix]=-1;</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>         k++;</div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>       }</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>     }</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>   }</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span> </div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> </div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span> <span class="comment"></span></div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> <span class="comment">     La boucle suivante selectionne les pixels qui sont</span></div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span> <span class="comment">     significativement au dessus de l'image filtree medianement.</span></div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span> <span class="comment"></span></div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> <span class="comment">     The flowing loop selects the pixels that are much higher that the </span></div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span> <span class="comment">     median filter image</span></div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span> <span class="comment"></span></div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span> <span class="comment"></span></div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> <span class="comment">     COSMIC =-1 ----> candidate for cosmic</span></div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> <span class="comment">            = 0 ----> not a cosmic</span></div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> <span class="comment">            = 1 -----> a cosmic (at the end)</span></div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span> <span class="comment">            = 2 ----> member of the group</span></div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span> <span class="comment">            = 3 ----> member of a group which has been examined</span></div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span> <span class="comment">            = 4 ----> neighbourhood  of the group</span></div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> <span class="comment"></span></div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> </div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span> </div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> <span class="comment">  Ces pixels sont regroupes par ensembles connexes dans la boucle</span></div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> <span class="comment">  This pixels are gouped as grouped together if neibours</span></div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> </div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>   first[0]=1;</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>   first[1]=1;</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>  lab100:</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_find_next(msk,first[1],&next_x, &next_y));</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> </div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>   <span class="keywordflow">if</span>(next_x==-1) <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>   i=next_x;</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>   j=next_y;</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> </div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"p[%d,%d]=  2 -> member of the group"</span>,i,j);</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>   pix=j*sx+i;</div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>   pm[pix]=2;</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> </div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>   i_min=i;</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>   i_max=i;</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>   j_min=j;</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>   j_max=j;</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>   idu_max=i;</div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>   jdu_max=j;</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>   f_max=pi[pix];</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span> </div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>  lab110:</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>   i1=0;</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>   i2=0;</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> </div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> </div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> <span class="comment">      FIRST(1) = 2</span></div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span> <span class="comment">      FIRST(2) = 2</span></div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> <span class="comment">  100 CALL FINDNEXT(COSMIC,I_IMA,J_IMA,FIRST,NEXT)</span></div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span> <span class="comment">      IF (NEXT(1).EQ.-1) RETURN</span></div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span> <span class="comment">      I = NEXT(1)</span></div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> <span class="comment">      J = NEXT(2) </span></div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span> <span class="comment">      COSMIC(I,J) = 2</span></div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span> <span class="comment">      IMIN = I</span></div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span> <span class="comment">      IMAX = I </span></div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span> <span class="comment">      JMIN = J</span></div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> <span class="comment">      JMAX = J</span></div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> <span class="comment">      IDUMAX = I</span></div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> <span class="comment">      JDUMAX = J</span></div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> <span class="comment">      FMAX = AI(I,J)</span></div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> <span class="comment">  110 I1 = 0</span></div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span> <span class="comment">      I2 = 0</span></div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> <span class="comment">      CONTINUE</span></div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> <span class="comment"></span></div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> </div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>   <span class="keywordflow">for</span>(l=0;l<2;l++) {</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>     <span class="keywordflow">for</span>(k=0;k<2;k++) {</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>       ii=i+k-l;</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>       jj=j+k+l-3;</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>       pix=jj*sx+ii;</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>       <span class="keywordflow">if</span>(pm[pix]==-1) {</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>     i1=ii;</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>     j1=jj;</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>     i_min=(i_min<ii) ? i_min: ii;</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>     i_max=(i_max>ii) ? i_max: ii;</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>     j_min=(j_min<jj) ? j_min: jj;</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>     j_max=(j_max>jj) ? j_max: jj;</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"p[%d,%d]= 2 -> member of the group"</span>,ii,jj);</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>     pm[pix]=2;</div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>     <span class="keywordflow">if</span>(pi[pix]>f_max) {</div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>       f_max=pi[pix];</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>       idu_max=ii;</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>       idu_max=jj;</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>     }</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(pm[pix]==0) {</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>     pm[pix]=4;</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"p[%d,%d]= 4 -> neighbourhood  of the group"</span>,k,l);</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>       }</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>     }</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>   }</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> </div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> </div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> <span class="comment">      DO 125 L=1,2</span></div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span> <span class="comment">          DO 115 K=1,2</span></div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> <span class="comment">               II = I+K-L</span></div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> <span class="comment">               JJ = J+K+L-3</span></div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> <span class="comment">               IF (COSMIC(II,JJ).EQ.-1) THEN</span></div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> <span class="comment">                   I1 = II</span></div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> <span class="comment">                   J1 = JJ  </span></div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> <span class="comment">                   IMIN = MIN(IMIN,II) </span></div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> <span class="comment">                   IMAX = MAX(IMAX,II)</span></div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> <span class="comment">                   JMIN = MIN(JMIN,JJ)</span></div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span> <span class="comment">                   JMAX = MAX(JMAX,JJ)</span></div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> <span class="comment">                   COSMIC(II,JJ) = 2</span></div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> <span class="comment">                   IF (AI(II,JJ).GT.FMAX) THEN</span></div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> <span class="comment">                         FMAX = AI(II,JJ)</span></div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span> <span class="comment">                         IDUMAX = II</span></div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> <span class="comment">                         JDUMAX = JJ</span></div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> <span class="comment">                   ENDIF</span></div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> <span class="comment">                ELSE IF (COSMIC(II,JJ).EQ.0) THEN</span></div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span> <span class="comment">                   COSMIC(II,JJ) = 4</span></div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> <span class="comment">                ENDIF</span></div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span> <span class="comment">  115     CONTINUE </span></div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> <span class="comment">  125 CONTINUE </span></div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> <span class="comment"></span></div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span> </div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> </div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>   pix=j*sx+i;</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>   pm[pix]=3;</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>   <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"p[%d,%d]= 3 -> member of a group which has been examined"</span>,i,j);</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>   <span class="keywordflow">if</span>(i1 != 0) {</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>     i=i1;</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>     j=j1;</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>     <span class="keywordflow">goto</span> lab110;</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>   }</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span> </div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> </div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> <span class="comment">      COSMIC(I,J) = 3</span></div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> <span class="comment">      IF (I1.NE.0) THEN</span></div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> <span class="comment">      I = I1</span></div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> <span class="comment">      J = J1</span></div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> <span class="comment">      GOTO 110</span></div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> <span class="comment">      ENDIF    </span></div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span> </div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>   <span class="keywordflow">for</span>(l=j_min;l<=j_max;l++){</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>     <span class="keywordflow">for</span>(k=i_min;k<=i_max;k++){</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>       pix=l*sy+k;</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>       <span class="keywordflow">if</span>(pm[pix] == 2) {</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>     i=k;</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>     j=l;</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>     <span class="keywordflow">goto</span> lab110;</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>       }</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>     }</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>   }</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>   first[0] = next_x+1;</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>   first[1] = next_y; </div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> </div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> </div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span> <span class="comment">      DO 140 L = JMIN,JMAX  </span></div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span> <span class="comment">         DO 130 K = IMIN,IMAX</span></div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span> <span class="comment">              IF (COSMIC(K,L).EQ.2) THEN</span></div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> <span class="comment">                 I = K</span></div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span> <span class="comment">                 J = L</span></div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> <span class="comment">                 GOTO 110</span></div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> <span class="comment">              ENDIF</span></div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> <span class="comment">  130 CONTINUE</span></div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> <span class="comment">  140 CONTINUE   </span></div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span> <span class="comment">      FIRST(1) = NEXT(1)+1</span></div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span> <span class="comment">      FIRST(2) = NEXT(2) </span></div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span> <span class="comment"></span></div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> </div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span> </div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> <span class="comment">  We start here the real work....</span></div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> <span class="comment">  1- decide if the pixel's group is a cosmic</span></div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> <span class="comment">  2-replace these values by another one</span></div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>   s1=pi[(jdu_max-1)*sx+idu_max-1]+</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>      pi[(jdu_max-1)*sx+idu_max+1]+</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>      pi[(jdu_max-1)*sx+idu_max]+</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>      pi[(jdu_max+1)*sx+idu_max];</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span> </div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>   s2=pi[(jdu_max+1)*sy+idu_max-1]+</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>      pi[(jdu_max+1)*sy+idu_max+1]+</div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>      pi[(jdu_max)*sy+idu_max-1]+</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>      pi[(jdu_max)*sy+idu_max+1];</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>   asum=(s1+s2)/8.-sky;</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span> </div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span> </div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> <span class="comment"></span></div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> <span class="comment">C We start here the real work....</span></div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span> <span class="comment">C 1- decide if the pixel's group is a cosmic</span></div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span> <span class="comment">C 2-replace these values by another one</span></div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> <span class="comment">      </span></div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span> <span class="comment">      S1 = AI(IDUMAX-1,JDUMAX-1) + </span></div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span> <span class="comment">     !     AI(IDUMAX+1,JDUMAX-1) +     </span></div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span> <span class="comment">     !     AI(IDUMAX,JDUMAX-1)   +</span></div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span> <span class="comment">     !     AI(IDUMAX,JDUMAX+1)</span></div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> <span class="comment"></span></div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> <span class="comment">      S2 = AI(IDUMAX-1,JDUMAX+1) + </span></div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span> <span class="comment">     !     AI(IDUMAX+1,JDUMAX+1) +</span></div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> <span class="comment">     !     AI(IDUMAX-1,JDUMAX)   + </span></div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span> <span class="comment">     !     AI(IDUMAX+1,JDUMAX)</span></div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span> <span class="comment">      ASUM = (S1+S2)/8.-SKY</span></div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> <span class="comment"></span></div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> </div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>   <span class="keywordflow">if</span>((f_max-sky) > rc*asum) {</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>     num=0;</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>     <span class="keywordflow">for</span>( l = j_min-1; l <= j_max+1; l++) {</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>       <span class="keywordflow">for</span>( k = i_min-1; k<= i_max+1;k++) {</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>     <span class="keywordflow">if</span>(pm[l*sx+k]==4) {</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>       vec[num]=pi[l*sx+k];</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>       num++;</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>     }</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>       }</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>     }</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> </div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> </div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> <span class="comment"></span></div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> <span class="comment">      IF ((FMAX-SKY).GT.RC*ASUM) THEN</span></div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> <span class="comment">         NUM = 1</span></div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> <span class="comment">         DO L = JMIN-1,JMAX+1</span></div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> <span class="comment">            DO K = IMIN-1,IMAX+1</span></div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> <span class="comment">               IF (COSMIC(K,L).EQ.4) THEN</span></div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> <span class="comment">                   VECTEUR(NUM) = AI(K,L)</span></div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> <span class="comment">                   NUM = NUM+1</span></div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> <span class="comment">               ENDIF    </span></div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> <span class="comment">            ENDDO</span></div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> <span class="comment">         ENDDO</span></div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span> <span class="comment"></span></div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> </div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>     uves_sort(num-1,vec,ord);</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>     a_median=vec[ord[(num-1)/2]];</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>     <span class="keywordflow">for</span>(l = j_min-1; l <= j_max+1 ; l++){</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>       <span class="keywordflow">for</span>(k = i_min-1 ; k <= i_max+1 ; k++){</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>     <span class="keywordflow">if</span>(pm[l*sx+k] == 3) {</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>        pm[l*sx+k]=1;</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>            <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"p[%d,%d]= 1 -> a cosmic (at the end)"</span>,k,l);</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> </div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>        po[l*sx+k]=a_median;</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pm[l*sx+k] == 4) {</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>        po[l*sx+k]=0;</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>        po[l*sx+k]=a_median;<span class="comment">//here we set to median instead than 0</span></div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>     }</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>       }</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>     }</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span> </div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span> </div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span> <span class="comment">         CALL SORT(NUM-1,VECTEUR,ORD)</span></div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span> <span class="comment">         AMEDIAN = VECTEUR(ORD((NUM-1)/2))</span></div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> <span class="comment">         DO L = JMIN-1,JMAX+1</span></div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span> <span class="comment">            DO K = IMIN-1,IMAX+1</span></div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> <span class="comment">               IF (COSMIC(K,L).EQ.3) THEN</span></div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span> <span class="comment">                   COSMIC(K,L) = 1</span></div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span> <span class="comment">                   AO(K,L) = AMEDIAN</span></div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span> <span class="comment">               ELSE IF (COSMIC(K,L).EQ.4) THEN</span></div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> <span class="comment">                   COSMIC(K,L) = 0</span></div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> <span class="comment">               ENDIF</span></div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span> <span class="comment">            ENDDO</span></div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> <span class="comment">         ENDDO</span></div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span> </div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>     <span class="keywordflow">for</span>( l = j_min-1 ; l <= j_max+1 ; l++) {</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>       <span class="keywordflow">for</span>( k = i_min-1 ; k <= i_max+1 ; k++) {</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>     <span class="keywordflow">if</span>(pm[l*sx+k] != -1) {</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>            <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"p[%d,%d]= 0 -> not a cosmic"</span>,k,l);</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>        pm[l*sx+k] = 0;</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>     }</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>       }</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>     }</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>   }</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span> </div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span> </div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>   <span class="keywordflow">if</span> (next_x >0) <span class="keywordflow">goto</span> lab100;</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span> </div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span> </div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> <span class="comment">      ELSE </span></div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> <span class="comment">         DO L = JMIN-1,JMAX+1</span></div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> <span class="comment">            DO K = IMIN-1,IMAX+1</span></div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span> <span class="comment">               IF (COSMIC(K,L).NE.-1) COSMIC(K,L) = 0</span></div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> <span class="comment">            ENDDO</span></div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> <span class="comment">          ENDDO</span></div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> <span class="comment">      ENDIF</span></div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span> <span class="comment">        </span></div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> <span class="comment">      </span></div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span> <span class="comment"> </span></div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> <span class="comment">      IF (NEXT(1).GT.0) GOTO 100</span></div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span> <span class="comment">C</span></div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> <span class="comment">C</span></div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> <span class="comment">C</span></div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> <span class="comment">      RETURN</span></div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span> <span class="comment">      END</span></div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> <span class="comment"></span></div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span> <span class="comment"></span></div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span> </div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span> </div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>   cleanup:</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span> </div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>   <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> </div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> }</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span> </div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span> </div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span> </div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span> </div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> </div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span> <span class="keyword">static</span> cpl_error_code </div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> uves_find_next(cpl_image** msk,</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>                <span class="keyword">const</span> <span class="keywordtype">int</span> first_y,</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>                <span class="keywordtype">int</span>* next_x,</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>                <span class="keywordtype">int</span>* next_y)</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span> {</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>   <span class="keywordtype">int</span> sx=cpl_image_get_size_x(*msk);</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>   <span class="keywordtype">int</span> sy=cpl_image_get_size_y(*msk);</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>   <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>   <span class="keywordtype">int</span>* pc=NULL;</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>   <span class="keywordtype">int</span> pix=0;</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span> </div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span> </div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span> </div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pc=cpl_image_get_data_int(*msk));</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>   <span class="keywordflow">for</span>(j=first_y;j<sy;j++) {</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>     <span class="keywordflow">for</span>(i=1;i<sx;i++) {</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>       pix=j*sx+i;</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>       <span class="keywordflow">if</span>(pc[pix]==-1) {</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>     *next_x=i;</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>     *next_y=j;</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>       }</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>     }</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>   }</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span> </div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>   *next_x=-1;</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>   *next_y=-1;</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>   cleanup:</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>   <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span> </div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span> }</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span> </div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span> <span class="comment"></span></div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span> <span class="comment">      SUBROUTINE FINDNEXT(COSMIC,I_IMA,J_IMA,FIRST,NEXT)</span></div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span> <span class="comment">      INTEGER I_IMA,J_IMA,FIRST(2),NEXT(2)</span></div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span> <span class="comment">      INTEGER I,J</span></div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span> <span class="comment">      INTEGER*2 COSMIC(I_IMA,J_IMA)</span></div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span> <span class="comment">      DO J = FIRST(2), J_IMA</span></div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span> <span class="comment">          DO I = 2, I_IMA</span></div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span> <span class="comment">             IF (COSMIC(I,J).EQ.-1) THEN</span></div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span> <span class="comment">                 NEXT(1) = I</span></div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span> <span class="comment">                 NEXT(2) = J</span></div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span> <span class="comment">                 RETURN</span></div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span> <span class="comment">             ENDIF</span></div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span> <span class="comment">          ENDDO</span></div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> <span class="comment">      ENDDO </span></div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span> <span class="comment">      NEXT(1) = -1</span></div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> <span class="comment">      NEXT(2) = -1</span></div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span> <span class="comment">      RETURN</span></div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span> <span class="comment">      END</span></div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span> <span class="comment"></span></div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span> </div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span> </div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span> <span class="comment">//Be carefull with F77 and C indexing</span></div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> uves_sort(<span class="keyword">const</span> <span class="keywordtype">int</span> kmax,<span class="keywordtype">float</span>* inp, <span class="keywordtype">int</span>* ord)</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span> {</div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>   <span class="keywordtype">int</span> k=0;</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>   <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>   <span class="keywordtype">int</span> l=0;</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>   <span class="keywordtype">float</span> f=0;</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>   <span class="keywordtype">int</span> i_min=0;</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>   <span class="keywordtype">int</span> i_max=0;</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span> </div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>   <span class="keywordflow">for</span>(k=0;k<kmax;k++) {</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>     ord[k]=k;</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>   }</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span> </div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>   <span class="keywordflow">if</span>(inp[0]>inp[1]) {</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>     ord[0]=1;</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>     ord[1]=0;</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>   }</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span> </div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>   <span class="keywordflow">for</span>(j=2;j<kmax;j++) {</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>     f=inp[j];</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>     l=inp[j-1];</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span> </div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span> <span class="comment">      SUBROUTINE SORT(KMAX,INP,ORD)</span></div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span> <span class="comment">      INTEGER KMAX,IMIN,IMAX,I,J,K,L</span></div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span> <span class="comment">      INTEGER ORD(10000)</span></div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span> <span class="comment">      REAL*4 INP(10000),F</span></div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span> <span class="comment">      DO 4100 J=1,KMAX</span></div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span> <span class="comment">      ORD(J)=J</span></div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span> <span class="comment"> 4100 CONTINUE</span></div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span> <span class="comment">      IF (INP(1).GT.INP(2)) THEN </span></div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span> <span class="comment">             ORD(1)=2</span></div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span> <span class="comment">             ORD(2)=1</span></div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span> <span class="comment">      END IF</span></div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span> <span class="comment">      DO 4400 J=3,KMAX</span></div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span> <span class="comment">      F=INP(J)</span></div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span> <span class="comment">      L=ORD(J-1)</span></div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span> </div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>   <span class="keywordflow">if</span>(inp[l]<=f) <span class="keywordflow">goto</span> lab4400;</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>     l=ord[0];</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>     i_min=0;</div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>     <span class="keywordflow">if</span>(f<=inp[l]) <span class="keywordflow">goto</span> lab4250;</div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>     i_max=j-1;</div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>   lab4200:</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>     i=(i_min+i_max)/2;</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>     l=ord[i];</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> </div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span> <span class="comment">      IF (INP(L).LE.F) GO TO 4400</span></div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> <span class="comment">      L=ORD(1)</span></div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> <span class="comment">      IMIN=1</span></div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span> <span class="comment">      IF (F.LE.INP(L)) GO TO 4250</span></div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> <span class="comment">      IMAX=J-1</span></div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> <span class="comment"> 4200 I=(IMIN+IMAX)/2</span></div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span> <span class="comment">      L=ORD(I)</span></div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span> </div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>     <span class="keywordflow">if</span>(inp[l]<f) {</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>       i_min=i;</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>       i_max=i;</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>     }</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>     <span class="keywordflow">if</span>(i_max>(i_min+1)) <span class="keywordflow">goto</span> lab4200;</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>     i_min=i_max;</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>   lab4250:</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>     <span class="keywordflow">for</span>(k=j-2;k>=i_min;k--) {</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>       ord[k+1]=ord[k];</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>     }</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>     ord[i_min]=j;</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>   lab4400:</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>   }</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span> }</div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span> </div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> <span class="comment">      IF (INP(L).LT.F) THEN</span></div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span> <span class="comment">              IMIN=I</span></div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> <span class="comment">              ELSE</span></div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="comment">              IMAX=I</span></div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="comment">      END IF</span></div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> <span class="comment">      IF (IMAX.GT.(IMIN+1)) GO TO 4200</span></div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> <span class="comment">      IMIN=IMAX</span></div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span> <span class="comment"> 4250 DO 4300 K=J-1,IMIN,-1</span></div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> <span class="comment">      ORD(K+1)=ORD(K)</span></div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span> <span class="comment"> 4300 CONTINUE</span></div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span> <span class="comment">      ORD(IMIN)=J</span></div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span> <span class="comment"> 4400 CONTINUE</span></div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span> <span class="comment">      RETURN</span></div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span> <span class="comment">      END</span></div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span> </div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span> </div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span> cpl_parameterlist* </div>
-<div class="line"><a name="l01461"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga003a5b56bc7da0142638881e47006716"> 1461</a></span> <a class="code" href="group__uves__utils.html#ga003a5b56bc7da0142638881e47006716" title="Extract frames with given tag from frameset.">uves_parameterlist_duplicate</a>(<span class="keyword">const</span> cpl_parameterlist* pin){</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span> </div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>    cpl_parameter* p=NULL;</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>    cpl_parameterlist* pout=NULL;</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span> </div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>    pout=cpl_parameterlist_new();</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>    p=cpl_parameterlist_get_first((cpl_parameterlist*)pin);</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>    <span class="keywordflow">while</span> (p != NULL)</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>    {</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>       cpl_parameterlist_append(pout,p);</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>       p=cpl_parameterlist_get_next((cpl_parameterlist*)pin);</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>    }</div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>    <span class="keywordflow">return</span> pout;</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span> </div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span> }</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*</div>
-<div class="line"><a name="l01493"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487"> 1493</a></span> <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>(<span class="keywordtype">char</span>* s)</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> {</div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span> </div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>     <span class="keywordtype">char</span> *t = s;</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span> </div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>     <span class="keywordflow">if</span>( s == NULL) { </div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>        cpl_error_set(cpl_func,CPL_ERROR_NULL_INPUT); </div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>        <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>     };</div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>     <span class="keywordflow">while</span> (*t) {</div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>         *t = toupper(*t);</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>         t++;</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>     }</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span> </div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>     <span class="keywordflow">return</span> s;</div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span> </div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span> }</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span> </div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*</div>
-<div class="line"><a name="l01527"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gaaa9ef34eb0091a167b88ed0cf17b758c"> 1527</a></span> <a class="code" href="group__uves__utils.html#gaaa9ef34eb0091a167b88ed0cf17b758c" title="Convert all uppercase characters in a string into lowercase characters.">uves_string_tolower</a>(<span class="keywordtype">char</span>* s)</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span> {</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span> </div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>     <span class="keywordtype">char</span> *t = s;</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span> </div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>     <span class="keywordflow">if</span>( s == NULL) { </div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>        cpl_error_set(cpl_func,CPL_ERROR_NULL_INPUT); </div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>        <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>     };</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>     <span class="keywordflow">while</span> (*t) {</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>         *t = tolower(*t);</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>         t++;</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>     }</div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span> </div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>     <span class="keywordflow">return</span> s;</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span> </div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span> }</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span> </div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span> </div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span> </div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span> </div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span> cpl_frameset *</div>
-<div class="line"><a name="l01557"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga5d332ad2d1f28993e9c2db3154b2236b"> 1557</a></span> <a class="code" href="group__uves__utils.html#ga5d332ad2d1f28993e9c2db3154b2236b" title="Extract frames with given tag from frameset.">uves_frameset_extract</a>(<span class="keyword">const</span> cpl_frameset *frames,</div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span> *tag)</div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span> {</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>     cpl_frameset *subset = NULL;</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>     <span class="keyword">const</span> cpl_frame *f;</div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span> </div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span> </div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span> </div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>     assure( frames != NULL, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Null frameset"</span> );</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>     assure( tag    != NULL, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Null tag"</span> );</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>     </div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>     subset = cpl_frameset_new();</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span> </div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>     <span class="keywordflow">for</span> (f = cpl_frameset_find_const(frames, tag);</div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>          f != NULL;</div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>          f = cpl_frameset_find_const(frames, NULL)) {</div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span> </div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>         cpl_frameset_insert(subset, cpl_frame_duplicate(f));</div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>     }</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span> </div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>  cleanup:</div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>     <span class="keywordflow">return</span> subset;</div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span> }</div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span> </div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l01593"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054"> 1593</a></span> <a class="code" href="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054" title="Calculate x to the y'th.">uves_pow_int</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">int</span> y)</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span> {</div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>     <span class="keywordtype">double</span> result = 1.0;</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span> </div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>     <span class="comment">/* Invariant is:   result * x ^ y   */</span></div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>     </div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span> </div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>     <span class="keywordflow">while</span>(y != 0)</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>     {</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>         <span class="keywordflow">if</span> (y % 2 == 0)</div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>         {</div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>             x *= x;</div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>             y /= 2;</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>         }</div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>         {</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>             <span class="keywordflow">if</span> (y > 0)</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>             {</div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>                 result *= x;</div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>                 y -= 1;            </div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>             }</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>             {</div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>                 result /= x;</div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>                 y += 1;            </div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>             }</div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>         }</div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>     }</div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>     </div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span> }</div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span> </div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span> </div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span> </div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span> </div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span> </div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span> </div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span> cpl_error_code</div>
-<div class="line"><a name="l01641"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga576094df329c3bb87a80a251007400a6"> 1641</a></span> <a class="code" href="group__uves__utils.html#ga576094df329c3bb87a80a251007400a6" title="Get UVES library version number.">uves_get_version</a>(<span class="keywordtype">int</span> *major, <span class="keywordtype">int</span> *minor, <span class="keywordtype">int</span> *micro)</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span> {</div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>     <span class="comment">/* Macros are defined in config.h */</span></div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>     <span class="keywordflow">if</span> (major != NULL) *major = UVES_MAJOR_VERSION;</div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>     <span class="keywordflow">if</span> (minor != NULL) *minor = UVES_MINOR_VERSION;</div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>     <span class="keywordflow">if</span> (micro != NULL) *micro = UVES_MICRO_VERSION;</div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span> </div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span> }</div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span> </div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span> </div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01660"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4"> 1660</a></span> <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span> {</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>     <span class="keywordflow">return</span> UVES_BINARY_VERSION;</div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span> }</div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span> </div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span> </div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l01676"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gae14eb4ed643b704af7b942f55eac9575"> 1676</a></span> <a class="code" href="group__uves__utils.html#gae14eb4ed643b704af7b942f55eac9575" title="Get the pipeline copyright and license.">uves_get_license</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span> {</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>     <span class="keywordflow">return</span></div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>     <span class="stringliteral">"This file is part of the ESO UVES Instrument Pipeline\n"</span></div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>     <span class="stringliteral">"Copyright (C) 2004,2005,2006 European Southern Observatory\n"</span></div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>     <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>     <span class="stringliteral">"This program is free software; you can redistribute it and/or modify\n"</span></div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>     <span class="stringliteral">"it under the terms of the GNU General Public License as published by\n"</span></div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>     <span class="stringliteral">"the Free Software Foundation; either version 2 of the License, or\n"</span></div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>     <span class="stringliteral">"(at your option) any later version.\n"</span></div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>     <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>     <span class="stringliteral">"This program is distributed in the hope that it will be useful,\n"</span></div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>     <span class="stringliteral">"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"</span></div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>     <span class="stringliteral">"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"</span></div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>         <span class="stringliteral">"GNU General Public License for more details.\n"</span></div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>         <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>         <span class="stringliteral">"You should have received a copy of the GNU General Public License\n"</span></div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>         <span class="stringliteral">"along with this program; if not, write to the Free Software\n"</span></div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>         <span class="stringliteral">"Foundation, 51 Franklin St, Fifth Floor, Boston, \n"</span></div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>         <span class="stringliteral">"MA  02111-1307  USA"</span> ;</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span> </div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>     <span class="comment">/* Note that long strings are unsupported in C89 */</span></div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span> }</div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span> </div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span> <span class="comment">/* To change requirements, just edit these numbers */</span></div>
-<div class="line"><a name="l01712"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gaa6f08c08604f669d5248a50db05095c6"> 1712</a></span> <span class="preprocessor">#define REQ_CPL_MAJOR 3</span></div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span> <span class="preprocessor"></span><span class="preprocessor">#define REQ_CPL_MINOR 1</span></div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span> <span class="preprocessor"></span><span class="preprocessor">#define REQ_CPL_MICRO 0</span></div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span> <span class="preprocessor">#define REQ_QF_MAJOR 6</span></div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span> <span class="preprocessor"></span><span class="preprocessor">#define REQ_QF_MINOR 2</span></div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span> <span class="preprocessor"></span><span class="preprocessor">#define REQ_QF_MICRO 0</span></div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span> uves_check_version(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span> {</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span> <span class="preprocessor">#ifdef CPL_VERSION_CODE</span></div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span> <span class="preprocessor"></span><span class="preprocessor">#if CPL_VERSION_CODE >= CPL_VERSION(REQ_CPL_MAJOR, REQ_CPL_MINOR, REQ_CPL_MICRO)</span></div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span> <span class="preprocessor"></span>    <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Compile time CPL version code was %d "</span></div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>                    <span class="stringliteral">"(version %d-%d-%d, code %d required)"</span>,</div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>                    CPL_VERSION_CODE, <a class="code" href="group__uves__utils.html#gaa6f08c08604f669d5248a50db05095c6" title="Check compile time and runtime library versions.">REQ_CPL_MAJOR</a>, REQ_CPL_MINOR, REQ_CPL_MICRO,</div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>                    CPL_VERSION(<a class="code" href="group__uves__utils.html#gaa6f08c08604f669d5248a50db05095c6" title="Check compile time and runtime library versions.">REQ_CPL_MAJOR</a>, REQ_CPL_MINOR, REQ_CPL_MICRO));</div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span> <span class="preprocessor"></span><span class="preprocessor">#error CPL version too old</span></div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span> <span class="preprocessor"></span><span class="preprocessor">#else  </span><span class="comment">/* ifdef CPL_VERSION_CODE */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span> <span class="preprocessor"></span><span class="preprocessor">#error CPL_VERSION_CODE not defined. CPL version too old</span></div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>     <span class="keywordflow">if</span> (cpl_version_get_major() < <a class="code" href="group__uves__utils.html#gaa6f08c08604f669d5248a50db05095c6" title="Check compile time and runtime library versions.">REQ_CPL_MAJOR</a> ||</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>     (cpl_version_get_major() == <a class="code" href="group__uves__utils.html#gaa6f08c08604f669d5248a50db05095c6" title="Check compile time and runtime library versions.">REQ_CPL_MAJOR</a> && </div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>      (<span class="keywordtype">int</span>) cpl_version_get_minor() < REQ_CPL_MINOR) || <span class="comment">/* cast suppresses warning</span></div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span> <span class="comment">                                                              about comparing unsigned < 0 */</span></div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>     (cpl_version_get_major() == <a class="code" href="group__uves__utils.html#gaa6f08c08604f669d5248a50db05095c6" title="Check compile time and runtime library versions.">REQ_CPL_MAJOR</a> &&</div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>      cpl_version_get_minor() == REQ_CPL_MINOR && </div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>      (<span class="keywordtype">int</span>) cpl_version_get_micro() < REQ_CPL_MICRO)</div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>     )</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>     {</div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"CPL version %s (%d.%d.%d) (detected) is not supported. "</span></div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>                  <span class="stringliteral">"Please update to CPL version %d.%d.%d or later"</span>, </div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>                  cpl_version_get_version(),</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>                  cpl_version_get_major(),</div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>                  cpl_version_get_minor(),</div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>                  cpl_version_get_micro(),</div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>                  <a class="code" href="group__uves__utils.html#gaa6f08c08604f669d5248a50db05095c6" title="Check compile time and runtime library versions.">REQ_CPL_MAJOR</a>,</div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>                  REQ_CPL_MINOR,</div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>                  REQ_CPL_MICRO);</div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>     }</div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>     {</div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Runtime CPL version %s (%d.%d.%d) detected (%d.%d.%d or later required)"</span>,</div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>                cpl_version_get_version(),</div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>                cpl_version_get_major(),</div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>                cpl_version_get_minor(),</div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>                cpl_version_get_micro(),</div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>                <a class="code" href="group__uves__utils.html#gaa6f08c08604f669d5248a50db05095c6" title="Check compile time and runtime library versions.">REQ_CPL_MAJOR</a>,</div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>                REQ_CPL_MINOR,</div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>                REQ_CPL_MICRO);</div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>     }</div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span> </div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>     {</div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qfts_v = <span class="stringliteral">" "</span>;</div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>     <span class="keywordtype">char</span> *suffix;</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>     </div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>     <span class="keywordtype">long</span> qfts_major;</div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>     <span class="keywordtype">long</span> qfts_minor;</div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>     <span class="keywordtype">long</span> qfts_micro;</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span> </div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>     qfts_v = qfits_version();</div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span> </div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>     assure( qfts_v != NULL, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>         <span class="stringliteral">"Error reading qfits version"</span>);</div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span> </div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>     <span class="comment">/* Parse    "X.[...]" */</span></div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>     qfts_major = strtol(qfts_v, &suffix, 10);</div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>     assure( suffix != NULL && suffix[0] == <span class="charliteral">'.'</span> && suffix[1] != <span class="charliteral">'\0'</span>, </div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>         CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>         <span class="stringliteral">"Error parsing version string '%s'. "</span></div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>         <span class="stringliteral">"Format 'X.Y.Z' expected"</span>, qfts_v);</div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span> </div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>     <span class="comment">/* Parse    "Y.[...]" */</span></div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>     qfts_minor = strtol(suffix+1, &suffix, 10);</div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>     assure( suffix != NULL && suffix[0] == <span class="charliteral">'.'</span> && suffix[1] != <span class="charliteral">'\0'</span>, </div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>         CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>         <span class="stringliteral">"Error parsing version string '%s'. "</span></div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>         <span class="stringliteral">"Format 'X.Y.Z' expected"</span>, qfts_v);</div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span> </div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>     <span class="comment">/* Parse    "Z" */</span></div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>     qfts_micro = strtol(suffix+1, &suffix, 10);</div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span> </div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>     <span class="comment">/* If qfits version is earlier than required ... */</span></div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>     <span class="keywordflow">if</span> (qfts_major < REQ_QF_MAJOR ||</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>         (qfts_major == REQ_QF_MAJOR && qfts_minor  < REQ_QF_MINOR) ||</div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>         (qfts_major == REQ_QF_MAJOR && qfts_minor == REQ_QF_MINOR && </div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>          qfts_micro < REQ_QF_MICRO)</div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>         )</div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>         {</div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"qfits version %s (detected) is not supported. "</span></div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>                  <span class="stringliteral">"Please update to qfits version %d.%d.%d or later"</span>, </div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>                  qfts_v,</div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>                  REQ_QF_MAJOR,</div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>                  REQ_QF_MINOR,</div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>                  REQ_QF_MICRO);</div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>         }</div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>         {</div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"qfits version %ld.%ld.%ld detected "</span></div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>                    <span class="stringliteral">"(%d.%d.%d or later required)"</span>, </div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>                    qfts_major, qfts_minor, qfts_micro,</div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>                    REQ_QF_MAJOR,</div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>                    REQ_QF_MINOR,</div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>                    REQ_QF_MICRO);</div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>         }</div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>     }</div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>     </div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>   cleanup:</div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span> }</div>
-<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span> </div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span> cpl_error_code</div>
-<div class="line"><a name="l01840"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gab22cde2fd3c6fcee8f63c8b27431f0be"> 1840</a></span> <a class="code" href="group__uves__utils.html#gab22cde2fd3c6fcee8f63c8b27431f0be" title="Recipe termination.">uves_end</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> cpl_frameset *frames)</div>
-<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span> {</div>
-<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>     cpl_frameset *products = NULL;</div>
-<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>     <span class="keyword">const</span> cpl_frame *f;</div>
-<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>     <span class="keywordtype">int</span> warnings = <a class="code" href="group__uves__msg.html#ga781eb662fe1449b6ffc27c381d177158" title="Get number of warnings printed so far.">uves_msg_get_warnings</a>();</div>
-<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span> </div>
-<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>     recipe_id = recipe_id; <span class="comment">/* Suppress warning about unused variable,</span></div>
-<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span> <span class="comment">                  perhaps we the recipe_id later, so</span></div>
-<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span> <span class="comment">                  keep it in the interface. */</span></div>
-<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span> </div>
-<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span> </div>
-<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>     <span class="comment">/* Print (only) output frames */</span></div>
-<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span> </div>
-<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>     products = cpl_frameset_new();</div>
-<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( products );</div>
-<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span> </div>
-<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>     <span class="keywordflow">for</span> (f = cpl_frameset_get_first_const(frames);</div>
-<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>      f != NULL;</div>
-<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>      f = cpl_frameset_get_next_const(frames))</div>
-<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>     {</div>
-<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>         <span class="keywordflow">if</span> (cpl_frame_get_group(f) == CPL_FRAME_GROUP_PRODUCT)</div>
-<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>         {</div>
-<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(</div>
-<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>             cpl_frameset_insert(products, cpl_frame_duplicate(f)));</div>
-<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>         }</div>
-<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>     }</div>
-<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span> </div>
-<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span> <span class="comment">/* Don't do this. EsoRex should.</span></div>
-<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span> <span class="comment">   uves_msg_low("Output frames");</span></div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span> <span class="comment">   check( uves_print_cpl_frameset(products),</span></div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span> <span class="comment">   "Could not print output frames");</span></div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span> </div>
-<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>     <span class="comment">/* Summarize warnings, if any */</span></div>
-<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>     <span class="keywordflow">if</span>( warnings > 0)</div>
-<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>     {</div>
-<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Recipe produced %d warning%s (excluding this one)"</span>,</div>
-<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>                  <a class="code" href="group__uves__msg.html#ga781eb662fe1449b6ffc27c381d177158" title="Get number of warnings printed so far.">uves_msg_get_warnings</a>(),</div>
-<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>                  <span class="comment">/* Plural? */</span> (warnings > 1) ? <span class="stringliteral">"s"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>     }</div>
-<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span> </div>
-<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>   cleanup:</div>
-<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>     uves_free_frameset(&products);</div>
-<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>     <span class="keywordflow">return</span> cpl_error_get_code();    </div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span> }</div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span> </div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l01909"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga91713592f345a0d1a44e37a50202d6ed"> 1909</a></span> <a class="code" href="group__uves__utils.html#ga91713592f345a0d1a44e37a50202d6ed" title="Recipe initialization.">uves_initialize</a>(cpl_frameset *frames, <span class="keyword">const</span> cpl_parameterlist *parlist, </div>
-<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *short_descr)</div>
-<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span> {</div>
-<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>     <span class="keywordtype">char</span> *recipe_string = NULL;</div>
-<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>     <span class="keywordtype">char</span> *stars = NULL;     <span class="comment">/* A string of stars */</span></div>
-<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>     <span class="keywordtype">char</span> *spaces1 = NULL;</div>
-<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>     <span class="keywordtype">char</span> *spaces2 = NULL;</div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>     <span class="keywordtype">char</span> *spaces3 = NULL;</div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>     <span class="keywordtype">char</span> *spaces4 = NULL;</div>
-<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>     <span class="keywordtype">char</span> *start_time = NULL;</div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span> </div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>     start_time = uves_sprintf(<span class="stringliteral">"%s"</span>, <a class="code" href="group__uves__time.html#ga1db9a9647c947cd72abe846a12d483fc" title="Returns the current date and time as a static string.">uves_get_datetime_iso8601</a>());</div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span> </div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_check_version(), <span class="stringliteral">"Library validation failed"</span>);</div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span> </div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>     <span class="comment">/* Now read parameters and set specified message level */</span></div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>     {</div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *plotter_command;</div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>     <span class="keywordtype">int</span> msglevel;</div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>     </div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>     <span class="comment">/* Read parameters using context = recipe_id */</span></div>
-<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span> </div>
-<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>         <span class="keywordflow">if</span> (0) <span class="comment">/* disabled */</span></div>
-<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parlist, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"msginfolevel"</span>, </div>
-<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>                                       CPL_TYPE_INT, &msglevel),</div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>                    <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>             {</div>
-<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>                 msglevel = -1; <span class="comment">/* max verbosity */</span></div>
-<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>             }</div>
-<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>     <a class="code" href="group__uves__msg.html#gab9fee51244a39b8b83db0c6fa9c374ed" title="Set output level.">uves_msg_set_level</a>(msglevel);</div>
-<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parlist, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"plotter"</span>,</div>
-<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span>                   CPL_TYPE_STRING, &plotter_command), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>     </div>
-<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>     <span class="comment">/* Initialize plotting */</span></div>
-<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_initialize(plotter_command), </div>
-<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>            <span class="stringliteral">"Could not initialize plotting"</span>);</div>
-<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>     }    </div>
-<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span> </div>
-<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>     <span class="comment">/* Print </span></div>
-<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span> <span class="comment">     *************************</span></div>
-<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span> <span class="comment">     ***   PACAGE_STRING   ***</span></div>
-<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span> <span class="comment">     *** Recipe: recipe_id ***</span></div>
-<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span> <span class="comment">     *************************</span></div>
-<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>     recipe_string = uves_sprintf(<span class="stringliteral">"Recipe: %s"</span>, recipe_id);</div>
-<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>     {</div>
-<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>     <span class="keywordtype">int</span> field = uves_max_int(strlen(PACKAGE_STRING), strlen(recipe_string));</div>
-<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>     <span class="keywordtype">int</span> nstars = 3+1 + field + 1+3;</div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>     <span class="keywordtype">int</span> nspaces1, nspaces2, nspaces3, nspaces4;</div>
-<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>     </div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>     <span class="comment">/* ' ' padding */</span></div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>     nspaces1 = (field - strlen(PACKAGE_STRING)) / 2; </div>
-<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>     nspaces2 = field - strlen(PACKAGE_STRING) - nspaces1;</div>
-<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span> </div>
-<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>     nspaces3 = (field - strlen(recipe_string)) / 2;</div>
-<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>     nspaces4 = field - strlen(recipe_string) - nspaces3;</div>
-<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span> </div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>     spaces1 = cpl_calloc(nspaces1 + 1, <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>)); </div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>     spaces2 = cpl_calloc(nspaces2 + 1, <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>     spaces3 = cpl_calloc(nspaces3 + 1, <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>)); </div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>     spaces4 = cpl_calloc(nspaces4 + 1, <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>     <span class="keywordflow">for</span> (i = 0; i < nspaces1; i++) spaces1[i] = <span class="charliteral">' '</span>;</div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>     <span class="keywordflow">for</span> (i = 0; i < nspaces2; i++) spaces2[i] = <span class="charliteral">' '</span>;</div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>     <span class="keywordflow">for</span> (i = 0; i < nspaces3; i++) spaces3[i] = <span class="charliteral">' '</span>;</div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>     <span class="keywordflow">for</span> (i = 0; i < nspaces4; i++) spaces4[i] = <span class="charliteral">' '</span>;</div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span> </div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>     stars = cpl_calloc(nstars + 1, <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>     <span class="keywordflow">for</span> (i = 0; i < nstars; i++) stars[i] = <span class="charliteral">'*'</span>;</div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>     </div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%s"</span>, stars);</div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"*** %s%s%s ***"</span>, spaces1, PACKAGE_STRING, spaces2);</div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"*** %s%s%s ***"</span>, spaces3, recipe_string, spaces4);</div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%s"</span>, stars);</div>
-<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>     }</div>
-<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span> </div>
-<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"This recipe %c%s"</span>, tolower(short_descr[0]), short_descr+1);</div>
-<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span> </div>
-<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>     <span class="keywordflow">if</span> (cpl_frameset_is_empty(frames)) {</div>
-<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Guvf cvcryvar unf ernpurq vgf uvtu dhnyvgl qhr na npgvir "</span></div>
-<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>                        <span class="stringliteral">"hfre pbzzhavgl naq gur erfcbafvoyr naq vqrnyvfgvp jbex bs "</span></div>
-<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>                        <span class="stringliteral">"vaqvivqhny cvcryvar qrirybcref, naq qrfcvgr orvat 'onfrq ba' "</span></div>
-<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>                        <span class="stringliteral">"PCY juvpu vf n cvrpr bs cbyvgvpny penc"</span>);</div>
-<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>     }</div>
-<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span> </div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>     <span class="comment">/* Set group (RAW/CALIB) of input frames */</span></div>
-<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>     <span class="comment">/* This is mandatory for the later call of </span></div>
-<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span> <span class="comment">       cpl_dfs_setup_product_header */</span></div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_dfs_set_groups(frames), <span class="stringliteral">"Could not classify input frames"</span>);</div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span> </div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>     <span class="comment">/* Print input frames */</span></div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>     <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Input frames"</span>);</div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__dump.html#ga74fae5c56aeaf8262cf416a8d747d3f2" title="Print a frame set.">uves_print_cpl_frameset</a>(frames), <span class="stringliteral">"Could not print input frames"</span> );</div>
-<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span> </div>
-<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>   cleanup:</div>
-<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>     cpl_free(recipe_string);</div>
-<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>     cpl_free(stars);</div>
-<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>     cpl_free(spaces1);</div>
-<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>     cpl_free(spaces2);</div>
-<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>     cpl_free(spaces3);</div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>     cpl_free(spaces4);</div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>     <span class="keywordflow">return</span> start_time;</div>
-<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span> }</div>
-<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span> </div>
-<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span> </div>
-<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span> cpl_image *</div>
-<div class="line"><a name="l02045"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga1f407a71fc1fd3d5d0d83fdc141669eb"> 2045</a></span> <a class="code" href="group__uves__utils.html#ga1f407a71fc1fd3d5d0d83fdc141669eb" title="Optimally average images.">uves_average_images</a>(<span class="keyword">const</span> cpl_image *image1, <span class="keyword">const</span> cpl_image *noise1,</div>
-<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>             <span class="keyword">const</span> cpl_image *image2, <span class="keyword">const</span> cpl_image *noise2,</div>
-<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>             cpl_image **noise)</div>
-<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span> {</div>
-<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>     cpl_image *result = NULL;</div>
-<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>     cpl_size nx, ny; </div>
-<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span> </div>
-<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>     assure( image1 != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>     assure( image2 != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>     assure( noise1 != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>     assure( noise2 != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>     assure( noise  != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span> </div>
-<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>     assure( cpl_image_get_min(noise1) > 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>         <span class="stringliteral">"Noise must be everywhere positive, minimum = %e"</span>, cpl_image_get_min(noise1));</div>
-<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span>     assure( cpl_image_get_min(noise2) > 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>         <span class="stringliteral">"Noise must be everywhere positive, minimum = %e"</span>, cpl_image_get_min(noise2));</div>
-<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>     </div>
-<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>     nx = cpl_image_get_size_x(image1);</div>
-<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>     ny = cpl_image_get_size_y(image1);</div>
-<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span> </div>
-<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>     assure( nx == cpl_image_get_size_x(image2), CPL_ERROR_INCOMPATIBLE_INPUT, </div>
-<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>         <span class="stringliteral">"Size mismatch %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" != %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>         nx,   cpl_image_get_size_x(image2));</div>
-<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>     assure( nx == cpl_image_get_size_x(noise1), CPL_ERROR_INCOMPATIBLE_INPUT, </div>
-<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>         <span class="stringliteral">"Size mismatch %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" != %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>         nx,   cpl_image_get_size_x(noise1));</div>
-<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>     assure( nx == cpl_image_get_size_x(noise2), CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>         <span class="stringliteral">"Size mismatch %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" != %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>         nx,   cpl_image_get_size_x(noise2));</div>
-<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>     assure( ny == cpl_image_get_size_y(image2), CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>         <span class="stringliteral">"Size mismatch %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" != %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>         ny,   cpl_image_get_size_y(image2));</div>
-<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>     assure( ny == cpl_image_get_size_y(noise1), CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>         <span class="stringliteral">"Size mismatch %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" != %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>         ny,   cpl_image_get_size_y(noise1));</div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>     assure( ny == cpl_image_get_size_y(noise2), CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>         <span class="stringliteral">"Size mismatch %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" != %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>         ny,   cpl_image_get_size_y(noise2));</div>
-<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>     </div>
-<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>     result = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>     *noise = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span> </div>
-<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>     <span class="comment">/* Do the calculation */</span></div>
-<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>     <span class="keywordflow">for</span> (y = 1; y <= ny; y++)</div>
-<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>     {</div>
-<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>         <span class="keywordflow">for</span> (x = 1; x <= nx; x++)</div>
-<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>         {</div>
-<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>             <span class="keywordtype">double</span> flux1, flux2;</div>
-<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>             <span class="keywordtype">double</span> sigma1, sigma2;</div>
-<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>             <span class="keywordtype">int</span> pis_rejected1, noise_rejected1;</div>
-<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>             <span class="keywordtype">int</span> pis_rejected2, noise_rejected2;</div>
-<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span> </div>
-<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>             flux1  = cpl_image_get(image1, x, y, &pis_rejected1);</div>
-<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>             flux2  = cpl_image_get(image2, x, y, &pis_rejected2);</div>
-<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>             sigma1 = cpl_image_get(noise1, x, y, &noise_rejected1);</div>
-<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>             sigma2 = cpl_image_get(noise2, x, y, &noise_rejected2);</div>
-<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span> </div>
-<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>             pis_rejected1 = pis_rejected1 || noise_rejected1;</div>
-<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>             pis_rejected2 = pis_rejected2 || noise_rejected2;</div>
-<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>             </div>
-<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>             <span class="keywordflow">if</span> (pis_rejected1 && pis_rejected2)</div>
-<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>             {</div>
-<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>                 cpl_image_reject(result, x, y);</div>
-<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>                 cpl_image_reject(*noise, x, y);</div>
-<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>             }</div>
-<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>             {</div>
-<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>                 <span class="comment">/* At least one good pixel */</span></div>
-<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span> </div>
-<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>                 <span class="keywordtype">double</span> flux, sigma;</div>
-<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span>                 </div>
-<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>                 <span class="keywordflow">if</span> (pis_rejected1 && !pis_rejected2)</div>
-<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>                 {</div>
-<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>                     flux = flux2;</div>
-<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span>                     sigma = sigma2;</div>
-<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span>                 }</div>
-<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!pis_rejected1 && pis_rejected2)</div>
-<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>                 {</div>
-<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>                     flux = flux1;</div>
-<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>                     sigma = sigma1;</div>
-<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>                 }</div>
-<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>                 {</div>
-<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>                     <span class="comment">/* Both pixels are good */</span></div>
-<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>                     sigma =</div>
-<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>                     1 / (sigma1*sigma1) +</div>
-<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>                     1 / (sigma2*sigma2);</div>
-<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>                     </div>
-<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>                     flux = flux1/(sigma1*sigma1) + flux2/(sigma2*sigma2);</div>
-<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>                     flux /= sigma;</div>
-<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>                     </div>
-<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span>                     sigma = sqrt(sigma);</div>
-<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>                 }</div>
-<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>                 </div>
-<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>                 cpl_image_set(result, x, y, flux);</div>
-<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>                 cpl_image_set(*noise, x, y, sigma);</div>
-<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>             }</div>
-<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>         }</div>
-<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>     }</div>
-<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>     </div>
-<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>   cleanup:</div>
-<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) </div>
-<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>     {</div>
-<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>         uves_free_image(&result);</div>
-<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>     }</div>
-<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span> }</div>
-<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span> </div>
-<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *</div>
-<div class="line"><a name="l02173"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37"> 2173</a></span> <a class="code" href="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37" title="Initialize image header.">uves_initialize_image_header</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *ctype1, <span class="keyword">const</span> <span class="keywordtype">char</span> *ctype2, </div>
-<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *cunit1, <span class="keyword">const</span> <span class="keywordtype">char</span> *cunit2,</div>
-<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *bunit,<span class="keyword">const</span> <span class="keywordtype">double</span> bscale,</div>
-<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>                  <span class="keywordtype">double</span> crval1, <span class="keywordtype">double</span> crval2,</div>
-<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>                  <span class="keywordtype">double</span> crpix1, <span class="keywordtype">double</span> crpix2,</div>
-<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>                  <span class="keywordtype">double</span> cdelt1, <span class="keywordtype">double</span> cdelt2)</div>
-<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span> {</div>
-<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *header = NULL;  <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span> </div>
-<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>     header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span> </div>
-<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gac948997f6142c218334d0cb70a4eeabc" title="Write the ctype1 keyword.">uves_pfits_set_ctype1</a>(header, ctype1), <span class="stringliteral">"Error writing keyword"</span>);</div>
-<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga1644b60894010bfaa365370ff6851aaf" title="Write the ctype2 keyword.">uves_pfits_set_ctype2</a>(header, ctype2), <span class="stringliteral">"Error writing keyword"</span>);</div>
-<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gaf22ae9bd0d4e3492b1595f49ec00edc8" title="Write the cunit1 keyword.">uves_pfits_set_cunit1</a>(header, cunit1), <span class="stringliteral">"Error writing keyword"</span>);</div>
-<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>     <span class="keywordflow">if</span>(cunit2 != NULL) {</div>
-<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga6bef11d061318a2656e16fb83717965b" title="Write the cunit2 keyword.">uves_pfits_set_cunit2</a>(header, cunit2), <span class="stringliteral">"Error writing keyword"</span>);</div>
-<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>     }</div>
-<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga1dcf84ae52c90eecc51ca448a63cfc5e" title="Write the bunit keyword.">uves_pfits_set_bunit</a> (header, bunit ), <span class="stringliteral">"Error writing keyword"</span>);</div>
-<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>     <span class="keywordflow">if</span>(bscale) {</div>
-<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>        <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gace68beef266360129dce0860c4fb1731" title="Write the bscale keyword.">uves_pfits_set_bscale</a> (header, bscale ), <span class="stringliteral">"Error writing keyword"</span>);</div>
-<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>     }</div>
-<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gaaed14627f7b8206cc8970cd1f787a6db" title="Write the crval1 keyword.">uves_pfits_set_crval1</a>(header, crval1), <span class="stringliteral">"Error writing keyword"</span>);</div>
-<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga510ee409ec059fdbd8991d88a7639152" title="Write the crval2 keyword.">uves_pfits_set_crval2</a>(header, crval2), <span class="stringliteral">"Error writing keyword"</span>);</div>
-<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga0fb41e9ccebfde88e71dcd6ed2dff570" title="Write the crpix1 keyword.">uves_pfits_set_crpix1</a>(header, crpix1), <span class="stringliteral">"Error writing keyword"</span>);</div>
-<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gaf6964f0063821d3f357125f149f87367" title="Write the crpix2 keyword.">uves_pfits_set_crpix2</a>(header, crpix2), <span class="stringliteral">"Error writing keyword"</span>);</div>
-<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga0d13232557903e763483cc57b4cfa0c4" title="Write the cdelt1 keyword.">uves_pfits_set_cdelt1</a>(header, cdelt1), <span class="stringliteral">"Error writing keyword"</span>);</div>
-<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga80ad6ea5e902d3cc3a1f3745035e528e" title="Write the cdelt2 keyword.">uves_pfits_set_cdelt2</a>(header, cdelt2), <span class="stringliteral">"Error writing keyword"</span>);</div>
-<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>     </div>
-<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>   cleanup:</div>
-<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>     <span class="keywordflow">return</span> header;</div>
-<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span> }</div>
-<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span> </div>
-<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span> cpl_image *</div>
-<div class="line"><a name="l02225"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7"> 2225</a></span> <a class="code" href="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7" title="Create noise image.">uves_define_noise</a>(<span class="keyword">const</span> cpl_image *image, </div>
-<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>                   <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *image_header,</div>
-<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>                   <span class="keywordtype">int</span> ncom, <span class="keyword">enum</span> uves_chip chip)</div>
-<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span> {</div>
-<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span> <span class="comment">          \/  __</span></div>
-<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span> <span class="comment">           \_(__)_...</span></div>
-<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span> </div>
-<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>     cpl_image *noise = NULL;      <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span> </div>
-<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>     <span class="comment">/* cpl_image *in_med = NULL;     Median filtered input image */</span></div>
-<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span> </div>
-<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>     <span class="keywordtype">double</span> ron;                   <span class="comment">/* Read-out noise in ADU */</span></div>
-<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span>     <span class="keywordtype">double</span> gain;</div>
-<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>     <span class="keywordtype">int</span> nx, ny, i;</div>
-<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>     <span class="keywordtype">double</span> *noise_data;</div>
-<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *image_data;</div>
-<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>     <span class="keywordtype">bool</span> has_bnoise=<span class="keyword">false</span>;</div>
-<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>     <span class="keywordtype">bool</span> has_dnoise=<span class="keyword">false</span>;</div>
-<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>     <span class="keywordtype">double</span> bnoise=0;</div>
-<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>     <span class="keywordtype">double</span> dnoise=0;</div>
-<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span>     <span class="keywordtype">double</span> dtime=0;</div>
-<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>     <span class="keywordtype">double</span> bnoise2=0;</div>
-<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>     <span class="keywordtype">double</span> dnoise2=0;</div>
-<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>     <span class="keywordtype">double</span> exptime=0;</div>
-<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>     <span class="keywordtype">double</span> exptime2=0;</div>
-<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>     <span class="keywordtype">double</span> tot_noise2=0;</div>
-<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>     <span class="keywordtype">double</span> var_bias_dark=0;</div>
-<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span> </div>
-<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>     <span class="comment">/* Read, check input parameters */</span></div>
-<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>     assure( ncom >= 1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Number of combined frames = %d"</span>, ncom);</div>
-<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span>     </div>
-<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ron = <a class="code" href="group__uves__pfits.html#gabd4b8ee6fb59b708093644f50c321978" title="Find out the readout noise in ADU.">uves_pfits_get_ron_adu</a>(image_header, chip),</div>
-<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>        <span class="stringliteral">"Could not read read-out noise"</span>);</div>
-<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>     </div>
-<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( gain = <a class="code" href="group__uves__pfits.html#ga4f4be35f30bd7d46f8c7421907ac8695" title="Find out the gain.">uves_pfits_get_gain</a>(image_header, chip),</div>
-<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>        <span class="stringliteral">"Could not read gain factor"</span>);</div>
-<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>     assure( gain > 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Non-positive gain: %e"</span>, gain);</div>
-<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span> </div>
-<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span> </div>
-<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>     <span class="comment">/* For efficiency reasons, use pointers to image data buffers */</span></div>
-<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>     assure(cpl_image_count_rejected(image) == 0, </div>
-<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>        CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Input image contains bad pixels"</span>);</div>
-<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>     assure(cpl_image_get_type(image) == CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>        CPL_ERROR_UNSUPPORTED_MODE, </div>
-<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>        <span class="stringliteral">"Input image is of type %s. double expected"</span>, </div>
-<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span>        <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(image)));</div>
-<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span> </div>
-<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>     noise = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( noise );</div>
-<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span> </div>
-<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>     noise_data = cpl_image_get_data_double(noise);</div>
-<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span> </div>
-<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>     image_data = cpl_image_get_data_double_const(image);</div>
-<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span> </div>
-<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span> </div>
-<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>     <span class="keywordflow">if</span>(image_header != NULL) {</div>
-<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>        has_bnoise=<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(image_header,UVES_BNOISE);</div>
-<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>        has_dnoise=<a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(image_header,UVES_DNOISE);</div>
-<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>     }</div>
-<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span> </div>
-<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>     <span class="keywordflow">if</span>(has_bnoise) {</div>
-<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>        bnoise=<a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(image_header,UVES_BNOISE);</div>
-<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>        bnoise2=bnoise*bnoise;</div>
-<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>     }</div>
-<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span> </div>
-<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span>     <span class="keywordflow">if</span>(has_dnoise) {</div>
-<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>        dnoise=<a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(image_header,UVES_DNOISE);</div>
-<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>        dnoise2=dnoise*dnoise;</div>
-<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>        dtime=<a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(image_header,UVES_DTIME);</div>
-<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>        exptime=<a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(image_header);</div>
-<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>        exptime2=exptime*exptime/dtime/dtime;</div>
-<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span>     }</div>
-<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>     var_bias_dark=bnoise2+dnoise2*exptime2;</div>
-<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"bnoise=%g dnoise=%g sci exptime=%g dark exptime=%g"</span>,</div>
-<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span>          bnoise,dnoise,exptime,dtime);</div>
-<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span> </div>
-<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>     <span class="comment">/* Apply 3x3 median filter to get rid of isolated hot/cold pixels */</span></div>
-<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span> </div>
-<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span>     <span class="comment">/* This filter is disabled, as there is often structure on the scale</span></div>
-<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span> <span class="comment">       of 1 pixel (e.g. UVES_ORDER_FLAT frames). Smoothing out this</span></div>
-<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span> <span class="comment">       structure *does* result in worse fits to the data.</span></div>
-<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span> <span class="comment"></span></div>
-<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span> <span class="comment">       in_med = cpl_image_duplicate(image);</span></div>
-<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span> <span class="comment">       assure( in_med != NULL, CPL_ERROR_ILLEGAL_OUTPUT, "Image duplication failed");</span></div>
-<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span> <span class="comment">       </span></div>
-<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span> <span class="comment">       uves_msg_low("Applying 3x3 median filter");</span></div>
-<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span> <span class="comment">       </span></div>
-<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span> <span class="comment">       check( uves_filter_image_median(&in_med, 1, 1), "Could not filter image");</span></div>
-<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span> <span class="comment">       image_data = cpl_image_get_data_double(in_med);</span></div>
-<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span> <span class="comment">       </span></div>
-<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span> <span class="comment">       uves_msg_low("Setting pixel flux uncertainty");</span></div>
-<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span> </div>
-<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>     <span class="comment">/* We assume median stacked input (master flat, master dark, ...) */</span></div>
-<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span>     <span class="keywordtype">double</span> median_factor = (ncom > 1) ? 2.0/M_PI : 1.0;</div>
-<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>     <span class="keywordtype">double</span> gain2=gain*gain;</div>
-<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>         </div>
-<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>     <span class="keywordtype">double</span> quant_var = uves_max_double(0, (1 - gain2)/12.0);</div>
-<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span>     <span class="comment">/* Quant. error =</span></div>
-<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span> <span class="comment">     * sqrt((g^2-1)/12)</span></div>
-<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span>     <span class="keywordtype">double</span> flux_var_adu=0;</div>
-<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span>     <span class="keywordtype">double</span> ron2=ron*ron;</div>
-<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>     <span class="keywordtype">double</span> inv_ncom_median_factor=1./(ncom * median_factor);</div>
-<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>     <span class="keywordflow">for</span> (i = 0; i < nx*ny; i++)</div>
-<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>     {</div>
-<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>          </div>
-<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>         <span class="comment">/* Slow: flux = cpl_image_get(image, x, y, &pis_rejected); */</span></div>
-<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>         <span class="comment">/* Slow: flux = image_data[(x-1) + (y-1) * nx]; */</span></div>
-<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>         flux_var_adu =  uves_max_double(image_data[i],0)*gain;</div>
-<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>         </div>
-<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>         <span class="comment">/* For a number, N, of averaged or median stacked "identical" frames</span></div>
-<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span> <span class="comment">         * (gaussian distribution assumed), the combined noise is</span></div>
-<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span> <span class="comment">         *  sigma_N = sigma / sqrt(N*f)</span></div>
-<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span> <span class="comment">         *  where (to a good approximation)</span></div>
-<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span> <span class="comment">         *        f ~= { 1    , N = 1</span></div>
-<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span> <span class="comment">         *             { 2/pi , N > 1</span></div>
-<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span> <span class="comment">         *  (i.e. the resulting uncertainty is</span></div>
-<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span> <span class="comment">         *   larger than for average stacked inputs where f = 1)</span></div>
-<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>         </div>
-<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>         <span class="comment">/* Slow: cpl_image_set(noise, x, y, ... ); */</span></div>
-<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>         <span class="comment">/* Slow: noise_data[(x-1) + (y-1)*nx] = </span></div>
-<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span> <span class="comment">                 sqrt((ron*ron + quant_var + sigma_adu*sigma_adu) /</span></div>
-<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span> <span class="comment">              ((MIDAS) ? 1 : ncom * median_factor)); */</span></div>
-<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span> </div>
-<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>         </div>
-<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>       tot_noise2=(( ron2 + quant_var + flux_var_adu )*inv_ncom_median_factor)+</div>
-<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>          var_bias_dark;</div>
-<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span> </div>
-<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>       <span class="comment">/*</span></div>
-<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span> <span class="comment">      tot_noise2=(( ron2 + quant_var + flux_var_adu )*inv_ncom_median_factor);</span></div>
-<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span> <span class="comment">      */</span></div>
-<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>         noise_data[i] = sqrt(tot_noise2);</div>
-<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>     }</div>
-<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span> </div>
-<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>   cleanup:</div>
-<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>     <span class="comment">/* uves_free_image(&in_med); */</span></div>
-<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>     {</div>
-<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>         uves_free_image(&noise);</div>
-<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>     }</div>
-<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span> </div>
-<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>     <span class="keywordflow">return</span> noise;</div>
-<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span> }</div>
-<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span> </div>
-<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span> </div>
-<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span> cpl_error_code</div>
-<div class="line"><a name="l02391"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gaab60ba58a3dc620bf79a91ebde2751b3"> 2391</a></span> <a class="code" href="group__uves__utils.html#gaab60ba58a3dc620bf79a91ebde2751b3" title="Subtract bias.">uves_subtract_bias</a>(cpl_image *image, <span class="keyword">const</span> cpl_image *master_bias)</div>
-<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span> {</div>
-<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a> ( image != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a> ( master_bias != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span> </div>
-<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_subtract(image, master_bias),</div>
-<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>        <span class="stringliteral">"Error subtracting bias"</span>);</div>
-<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span> </div>
-<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>     <span class="comment">/* Due to different bad column correction in image/master_bias,</span></div>
-<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span> <span class="comment">       it might happen that the image has become negative after </span></div>
-<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span> <span class="comment">       subtracting the bias. Disallow that. */</span></div>
-<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span> </div>
-<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span> <span class="preprocessor"></span>    <span class="comment">/* No, for backwards compatibility, allow negative values.</span></div>
-<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span> <span class="comment">     * MIDAS has an inconsistent logic on this matter.</span></div>
-<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span> <span class="comment">     * For master dark frames, the thresholding *is* applied,</span></div>
-<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span> <span class="comment">     * but not for science frames. Therefore we have to</span></div>
-<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span> <span class="comment">     * apply thresholding on a case-by-case base (i.e. from</span></div>
-<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span> <span class="comment">     * the caller).</span></div>
-<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_threshold(image, </div>
-<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>                    0, DBL_MAX,     <span class="comment">/* Interval */</span></div>
-<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>                    0, DBL_MAX),    <span class="comment">/* New values */</span></div>
-<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>        <span class="stringliteral">"Error thresholding image"</span>);</div>
-<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>   cleanup:</div>
-<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span> }</div>
-<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span> cpl_error_code</div>
-<div class="line"><a name="l02435"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gaa065c666cf2f7a17a0d20f42e742a793"> 2435</a></span> <a class="code" href="group__uves__utils.html#gaa065c666cf2f7a17a0d20f42e742a793" title="Subtract dark.">uves_subtract_dark</a>(cpl_image *image, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *image_header,</div>
-<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>            <span class="keyword">const</span> cpl_image *master_dark,</div>
-<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>            <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mdark_header)</div>
-<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span> {</div>
-<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>     cpl_image *normalized_mdark = NULL;</div>
-<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span>     <span class="keywordtype">double</span> image_exptime = 0.0;</div>
-<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span>     <span class="keywordtype">double</span> mdark_exptime = 0.0;</div>
-<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span> </div>
-<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a> ( image != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a> ( image_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a> ( master_dark != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a> ( mdark_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span> </div>
-<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>     <span class="comment">/* Normalize mdark to same exposure time as input image, then subtract*/</span></div>
-<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( image_exptime = <a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(image_header), </div>
-<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>        <span class="stringliteral">"Error reading input image exposure time"</span>);</div>
-<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( mdark_exptime = <a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(mdark_header), </div>
-<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>        <span class="stringliteral">"Error reading master dark exposure time"</span>);</div>
-<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>     </div>
-<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Rescaling master dark from %f s to %f s exposure time"</span>, </div>
-<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>          mdark_exptime, image_exptime);</div>
-<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>     </div>
-<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( normalized_mdark = </div>
-<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>        cpl_image_multiply_scalar_create(master_dark,</div>
-<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>                         image_exptime / mdark_exptime),</div>
-<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>        <span class="stringliteral">"Error normalizing master dark"</span>);</div>
-<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>     </div>
-<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_subtract(image, normalized_mdark), </div>
-<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>        <span class="stringliteral">"Error subtracting master dark"</span>);</div>
-<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span> </div>
-<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"noise rescaled master dark %g"</span>,cpl_image_get_stdev(normalized_mdark));</div>
-<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span> </div>
-<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span> </div>
-<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>   cleanup:</div>
-<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>     uves_free_image(&normalized_mdark);</div>
-<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span> }</div>
-<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span> </div>
-<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02488"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga579bc295bb9d73af0b052f37b576f552"> 2488</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utils.html#ga579bc295bb9d73af0b052f37b576f552" title="Get the absolute order number.">uves_absolute_order</a>(<span class="keywordtype">int</span> first_abs_order, <span class="keywordtype">int</span> last_abs_order, <span class="keywordtype">int</span> re [...]
-<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span> {</div>
-<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>     <span class="keywordflow">return</span> (first_abs_order +</div>
-<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>         (relative_order-1)*((last_abs_order > first_abs_order) ? 1 : -1));</div>
-<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span> }</div>
-<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span> </div>
-<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l02510"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga8ec4a0e22ac62eaed019f740acf6810d"> 2510</a></span> <a class="code" href="group__uves__utils.html#ga8ec4a0e22ac62eaed019f740acf6810d" title="Get average with iterative rejection.">uves_average_reject</a>(cpl_table *t,</div>
-<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *column,</div>
-<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *residual2,</div>
-<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>                     <span class="keywordtype">double</span> kappa)</div>
-<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span> {</div>
-<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>     <span class="keywordtype">double</span> mean = 0, median, sigma2;</div>
-<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>     <span class="keywordtype">int</span> rejected;</div>
-<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>     </div>
-<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>     <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>         <span class="comment">/* Robust estimation */</span></div>
-<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(median = cpl_table_get_column_median(t, column));</div>
-<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span> </div>
-<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>         <span class="comment">/* Create column</span></div>
-<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span> <span class="comment">           residual2 = (column - median)^2   */</span></div>
-<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_duplicate_column(t, residual2, t, column));</div>
-<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_subtract_scalar(t, residual2, median));</div>
-<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_multiply_columns(t, residual2, residual2));</div>
-<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span> </div>
-<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>         <span class="comment">/* For a Gaussian distribution:</span></div>
-<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span> <span class="comment">         * sigma    ~= median(|residual|) / 0.6744</span></div>
-<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span> <span class="comment">         * sigma^2  ~= median(residual^2) / 0.6744^2  </span></div>
-<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span> </div>
-<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sigma2 = cpl_table_get_column_median(t, residual2) / (0.6744 * 0.6744));</div>
-<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span> </div>
-<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>         <span class="comment">/* Reject values where</span></div>
-<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span> <span class="comment">           residual^2 > (kappa*sigma)^2</span></div>
-<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( rejected = uves_erase_table_rows(t, residual2,</div>
-<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>                                                       CPL_GREATER_THAN,</div>
-<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>                                                       kappa*kappa*sigma2));</div>
-<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>         </div>
-<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_table_erase_column(t, residual2));</div>
-<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span> </div>
-<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>     } <span class="keywordflow">while</span> (rejected > 0);</div>
-<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span> </div>
-<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(mean  = cpl_table_get_column_mean(t, column));</div>
-<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>     </div>
-<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>   cleanup:</div>
-<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>     <span class="keywordflow">return</span> mean;</div>
-<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span> }</div>
-<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span> </div>
-<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02586"></a><span class="lineno"> 2586</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l02587"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3"> 2587</a></span> <a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d</a>(cpl_table *t,</div>
-<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *X, <span class="keyword">const</span> <span class="keywordtype">char</span> *Y, <span class="keyword">const</span> <span class="keywordtype">char</span> *sigmaY, </div>
-<div class="line"><a name="l02589"></a><span class="lineno"> 2589</span>                   <span class="keywordtype">int</span> degree, </div>
-<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *polynomial_fit, <span class="keyword">const</span> <span class="keywordtype">char</span> *residual_square,</div>
-<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span>                   <span class="keywordtype">double</span> *mean_squared_error, <span class="keywordtype">double</span> kappa)</div>
-<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span> {</div>
-<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>     <span class="keywordtype">int</span> N;</div>
-<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span>     <span class="keywordtype">int</span> total_rejected = 0;  <span class="comment">/* Rejected in kappa sigma clipping */</span></div>
-<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span>     <span class="keywordtype">int</span> rejected = 0;</div>
-<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span>     <span class="keywordtype">double</span> mse;                  <span class="comment">/* local mean squared error */</span></div>
-<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span>     <span class="keywordtype">double</span> *x;</div>
-<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span>     <span class="keywordtype">double</span> *y;</div>
-<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span>     <span class="keywordtype">double</span> *sy;</div>
-<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *result = NULL;</div>
-<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span>     cpl_vector *vx = NULL;</div>
-<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>     cpl_vector *vy = NULL;</div>
-<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span>     cpl_vector *vsy = NULL;</div>
-<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>     cpl_type type;</div>
-<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span> </div>
-<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>     assure( t != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table"</span>);</div>
-<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>     assure( X != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null column name"</span>);</div>
-<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>     assure( Y != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null column name"</span>);</div>
-<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span>     assure( cpl_table_has_column(t, X), CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"No such column: %s"</span>, X);</div>
-<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>     assure( cpl_table_has_column(t, Y), CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"No such column: %s"</span>, Y);</div>
-<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span>     assure( sigmaY == NULL || cpl_table_has_column(t, sigmaY) , CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span>         <span class="stringliteral">"No such column: %s"</span>, sigmaY);</div>
-<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span> </div>
-<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span>     assure( polynomial_fit == NULL || !cpl_table_has_column(t, polynomial_fit),</div>
-<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span>         CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Column '%s' already present"</span>, polynomial_fit);</div>
-<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span> </div>
-<div class="line"><a name="l02618"></a><span class="lineno"> 2618</span>     assure( residual_square == NULL || !cpl_table_has_column(t, residual_square), </div>
-<div class="line"><a name="l02619"></a><span class="lineno"> 2619</span>         CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Column '%s' already present"</span>, residual_square);</div>
-<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span>     </div>
-<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>     <span class="comment">/* Check column types */</span></div>
-<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span>     type = cpl_table_get_column_type(t, Y);</div>
-<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span>     assure( type == CPL_TYPE_DOUBLE || type == CPL_TYPE_INT, CPL_ERROR_INVALID_TYPE, </div>
-<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span>         <span class="stringliteral">"Input column '%s' has wrong type (%s)"</span>, Y, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>     type = cpl_table_get_column_type(t, X);</div>
-<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span>     assure( type == CPL_TYPE_DOUBLE || type == CPL_TYPE_INT, CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span>         <span class="stringliteral">"Input column '%s' has wrong type (%s)"</span>, X, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>     <span class="keywordflow">if</span> (sigmaY != NULL)</div>
-<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span>     {</div>
-<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span>         type = cpl_table_get_column_type(t, sigmaY);</div>
-<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span>         assure( type == CPL_TYPE_INT || type == CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span>             CPL_ERROR_INVALID_TYPE, </div>
-<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>             <span class="stringliteral">"Input column '%s' has wrong type (%s)"</span>, </div>
-<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span>             sigmaY, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>     }</div>
-<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span> </div>
-<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_cast_column(t, X, <span class="stringliteral">"_X_double"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span>        <span class="stringliteral">"Could not cast table column '%s' to double"</span>, X);</div>
-<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_cast_column(t, Y, <span class="stringliteral">"_Y_double"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>        <span class="stringliteral">"Could not cast table column '%s' to double"</span>, Y);</div>
-<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>     <span class="keywordflow">if</span> (sigmaY != NULL)</div>
-<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>     {</div>
-<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_cast_column(t, sigmaY, <span class="stringliteral">"_sY_double"</span>, CPL_TYPE_DOUBLE), </div>
-<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>            <span class="stringliteral">"Could not cast table column '%s' to double"</span>, sigmaY);</div>
-<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>     } </div>
-<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>     </div>
-<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span> </div>
-<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>     total_rejected = 0;</div>
-<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>     rejected = 0;</div>
-<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_new_column(t, <span class="stringliteral">"_residual_square"</span>, CPL_TYPE_DOUBLE), </div>
-<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>        <span class="stringliteral">"Could not create column"</span>);</div>
-<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>     <span class="keywordflow">do</span>{</div>
-<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( (N = cpl_table_get_nrow(t),</div>
-<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>         x = cpl_table_get_data_double(t, <span class="stringliteral">"_X_double"</span>),</div>
-<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>         y = cpl_table_get_data_double(t, <span class="stringliteral">"_Y_double"</span>)),</div>
-<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>            <span class="stringliteral">"Could not read table data"</span>);</div>
-<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>     </div>
-<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>     <span class="keywordflow">if</span> (sigmaY != NULL) </div>
-<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>         {</div>
-<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( sy = cpl_table_get_data_double(t,  <span class="stringliteral">"_sY_double"</span>),</div>
-<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>                <span class="stringliteral">"Could not read table data"</span>);</div>
-<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>         } </div>
-<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>     <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>         {</div>
-<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>         sy = NULL;</div>
-<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>         }</div>
-<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span>   </div>
-<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>     assure( N > 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Empty table. "</span></div>
-<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>             <span class="stringliteral">"No points to fit in poly 1d regression. At least 2 needed"</span>);</div>
-<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span> </div>
-<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>     assure( N > degree, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"%d points to fit in poly 1d "</span></div>
-<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>            <span class="stringliteral">"regression of degree %d. At least %d needed."</span>,</div>
-<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>             N,degree,degree+1);</div>
-<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span> </div>
-<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>     <span class="comment">/* Wrap vectors */</span></div>
-<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>     uves_unwrap_vector(&vx);</div>
-<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>     uves_unwrap_vector(&vy);</div>
-<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>     </div>
-<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span>     vx = cpl_vector_wrap(N, x);</div>
-<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>     vy = cpl_vector_wrap(N, y);</div>
-<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>        </div>
-<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>     <span class="keywordflow">if</span> (sy != NULL)</div>
-<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>         {</div>
-<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span>         uves_unwrap_vector(&vsy);</div>
-<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span>         vsy = cpl_vector_wrap(N, sy);</div>
-<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>         }</div>
-<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02688"></a><span class="lineno"> 2688</span>         {</div>
-<div class="line"><a name="l02689"></a><span class="lineno"> 2689</span>         vsy = NULL;</div>
-<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span>         }</div>
-<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>      </div>
-<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>     <span class="comment">/* Fit! */</span></div>
-<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&result);</div>
-<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( result = <a class="code" href="group__uves__utils__polynomial.html#ga7ad30cd55f4aac4454029be7ffd3f5b1" title="Fit a 1d function with a polynomial.">uves_polynomial_fit_1d</a>(vx, vy, vsy, degree, &mse), </div>
-<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>            <span class="stringliteral">"Could not fit polynomial"</span>);</div>
-<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span>     </div>
-<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>     <span class="comment">/* If requested, calculate residuals and perform kappa-sigma clipping */</span></div>
-<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>     <span class="keywordflow">if</span> (kappa > 0)</div>
-<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>         {</div>
-<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>         <span class="keywordtype">double</span> sigma2;   <span class="comment">/* sigma squared */</span></div>
-<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>         </div>
-<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>         <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>             {</div>
-<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>             <span class="keywordtype">double</span> xval, yval, yfit;</div>
-<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>             </div>
-<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( xval = cpl_table_get_double(t, <span class="stringliteral">"_X_double"</span>, i, NULL),</div>
-<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>                 yval = cpl_table_get_double(t, <span class="stringliteral">"_Y_double"</span> ,i, NULL),</div>
-<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>                 yfit = <a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(result, xval),</div>
-<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>     </div>
-<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>                 cpl_table_set_double(t, <span class="stringliteral">"_residual_square"</span>, i, </div>
-<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>                              (yfit-yval)*(yfit-yval))),</div>
-<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>                 <span class="stringliteral">"Could not evaluate polynomial"</span>);</div>
-<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>             }</div>
-<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>         </div>
-<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>         <span class="comment">/* For robustness, estimate sigma as (third quartile) / 0.6744</span></div>
-<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span> <span class="comment">         * (68% is within 1 sigma, 50% is within 3rd quartile, so sigma is > 3rd quartile)</span></div>
-<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span> <span class="comment">         * The third quartile is estimated as the median of the absolute residuals,</span></div>
-<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span> <span class="comment">         * so  sigma    ~= median(|residual|) / 0.6744  , i.e.</span></div>
-<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span> <span class="comment">         *     sigma^2  ~= median(residual^2) / 0.6744^2  </span></div>
-<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>         sigma2 = cpl_table_get_column_median(t, <span class="stringliteral">"_residual_square"</span>) / (0.6744 * 0.6744);</div>
-<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span> </div>
-<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span>         <span class="comment">/* Remove points with residual^2 > kappa^2 * sigma^2 */</span></div>
-<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( rejected = uves_erase_table_rows(t, <span class="stringliteral">"_residual_square"</span>, </div>
-<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>                             CPL_GREATER_THAN, kappa*kappa*sigma2),</div>
-<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>                <span class="stringliteral">"Could not remove outlier points"</span>);</div>
-<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>         </div>
-<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%d of %d points rejected in kappa-sigma clipping. rms=%f"</span>,</div>
-<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>                    rejected, N, sqrt(mse));</div>
-<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>         </div>
-<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>         <span class="comment">/* Update */</span></div>
-<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>         total_rejected += rejected;</div>
-<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>         N = cpl_table_get_nrow(t);</div>
-<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span>         }</div>
-<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>     </div>
-<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span> } <span class="keywordflow">while</span> (rejected > 0);</div>
-<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>     </div>
-<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>     cpl_table_erase_column(t,  <span class="stringliteral">"_residual_square"</span>);    </div>
-<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>     </div>
-<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>     <span class="keywordflow">if</span> (kappa > 0)</div>
-<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>     {    </div>
-<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%d of %d points (%f %%) rejected in kappa-sigma clipping"</span>,</div>
-<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>               total_rejected,</div>
-<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>               N + total_rejected,</div>
-<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>               (100.0*total_rejected)/(N + total_rejected)</div>
-<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>         );</div>
-<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>     }</div>
-<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>     </div>
-<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>     <span class="keywordflow">if</span> (mean_squared_error != NULL) *mean_squared_error = mse;</div>
-<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>     </div>
-<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>     <span class="comment">/* Add the fitted values to table if requested */</span></div>
-<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>     <span class="keywordflow">if</span> (polynomial_fit != NULL || residual_square != NULL)</div>
-<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>     {</div>
-<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>         </div>
-<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_new_column(t, <span class="stringliteral">"_polynomial_fit"</span>, CPL_TYPE_DOUBLE), </div>
-<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>            <span class="stringliteral">"Could not create column"</span>);</div>
-<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>         <span class="keywordflow">for</span> (i = 0; i < N; i++){</div>
-<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>         <span class="keywordtype">double</span> xval;</div>
-<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>         <span class="keywordtype">double</span> yfit;</div>
-<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>         </div>
-<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>((</div>
-<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>               xval = cpl_table_get_double(t, <span class="stringliteral">"_X_double"</span>, i, NULL),</div>
-<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>               yfit = <a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(result, xval),</div>
-<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>               cpl_table_set_double(t, <span class="stringliteral">"_polynomial_fit"</span>, i, yfit)),</div>
-<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>               <span class="stringliteral">"Could not evaluate polynomial"</span>);</div>
-<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>         }</div>
-<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>         </div>
-<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>         <span class="comment">/* Add residual^2  =  (Polynomial fit  -  Y)^2  if requested */</span></div>
-<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>         <span class="keywordflow">if</span> (residual_square != NULL)</div>
-<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>         {</div>
-<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_duplicate_column(t, residual_square,     <span class="comment">/* RS := PF */</span></div>
-<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>                                t, <span class="stringliteral">"_polynomial_fit"</span>),</div>
-<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>                 cpl_table_subtract_columns(t, residual_square, Y), <span class="comment">/* RS := RS - Y */</span></div>
-<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span>                 cpl_table_multiply_columns(t, residual_square, residual_square)),</div>
-<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>                                                                                <span class="comment">/* RS := RS^2 */</span></div>
-<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span>                 <span class="stringliteral">"Could not calculate Residual of fit"</span>);</div>
-<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>         }</div>
-<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>         </div>
-<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>         <span class="comment">/* Keep the polynomial_fit column if requested */</span></div>
-<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>         <span class="keywordflow">if</span> (polynomial_fit != NULL)</div>
-<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>         {</div>
-<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>             cpl_table_name_column(t, <span class="stringliteral">"_polynomial_fit"</span>, polynomial_fit);</div>
-<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>         }</div>
-<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>         {</div>
-<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>             cpl_table_erase_column(t, <span class="stringliteral">"_polynomial_fit"</span>);</div>
-<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>         }</div>
-<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>     }</div>
-<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>     </div>
-<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_erase_column(t, <span class="stringliteral">"_X_double"</span>),</div>
-<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>         cpl_table_erase_column(t, <span class="stringliteral">"_Y_double"</span>)),</div>
-<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>       <span class="stringliteral">"Could not delete temporary columns"</span>);</div>
-<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>     </div>
-<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>     <span class="keywordflow">if</span> (sigmaY != NULL) </div>
-<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>     {</div>
-<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_erase_column(t, <span class="stringliteral">"_sY_double"</span>), </div>
-<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>            <span class="stringliteral">"Could not delete temporary column"</span>);</div>
-<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>     } </div>
-<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>     </div>
-<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>   cleanup:</div>
-<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>     uves_unwrap_vector(&vx);</div>
-<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>     uves_unwrap_vector(&vy);</div>
-<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span>     uves_unwrap_vector(&vsy);</div>
-<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>     {</div>
-<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&result);</div>
-<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>     }</div>
-<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>     </div>
-<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span> }</div>
-<div class="line"><a name="l02813"></a><span class="lineno"> 2813</span> </div>
-<div class="line"><a name="l02814"></a><span class="lineno"> 2814</span> </div>
-<div class="line"><a name="l02815"></a><span class="lineno"> 2815</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span> </div>
-<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l02866"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0"> 2866</a></span> <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(cpl_table *t,</div>
-<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *X1, <span class="keyword">const</span> <span class="keywordtype">char</span> *X2, <span class="keyword">const</span> <span class="keywordtype">char</span> *Y, </div>
-<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *sigmaY,</div>
-<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span>                   <span class="keywordtype">int</span> degree1, <span class="keywordtype">int</span> degree2,</div>
-<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *polynomial_fit, <span class="keyword">const</span> <span class="keywordtype">char</span> *residual_square, </div>
-<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *variance_fit,</div>
-<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span>                   <span class="keywordtype">double</span> *mse, <span class="keywordtype">double</span> *red_chisq,</div>
-<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span>                   <a class="code" href="struct__polynomial.html">polynomial</a> **variance, <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span>                               <span class="keywordtype">double</span> min_reject)</div>
-<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span> {</div>
-<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span>     <span class="keywordtype">int</span> N;</div>
-<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>     <span class="keywordtype">int</span> rejected;</div>
-<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span>     <span class="keywordtype">int</span> total_rejected;</div>
-<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>     <span class="keywordtype">double</span> *x1;</div>
-<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>     <span class="keywordtype">double</span> *x2;</div>
-<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span>     <span class="keywordtype">double</span> *y;</div>
-<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span>     <span class="keywordtype">double</span> *res;</div>
-<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span>     <span class="keywordtype">double</span> *sy;</div>
-<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *p = NULL;               <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *variance_local = NULL;</div>
-<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span>     cpl_vector *vx1 = NULL;</div>
-<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span>     cpl_vector *vx2 = NULL;</div>
-<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span>     cpl_bivector *vx = NULL;</div>
-<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>     cpl_vector *vy = NULL;</div>
-<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>     cpl_vector *vsy= NULL;</div>
-<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span>     cpl_type type;</div>
-<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span> </div>
-<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span>     assure( t != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table"</span>);</div>
-<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span>     N  = cpl_table_get_nrow(t);</div>
-<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>     assure( N > 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"The table with column to compute regression has 0 rows!"</span>);</div>
-<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>     assure( N > 8, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"For poly regression you need at least 9 points. The table with column to compute regression has %d rows!"</span>,N);</div>
-<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span> </div>
-<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>     assure( cpl_table_has_column(t, X1), CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"No such column: %s"</span>, X1);</div>
-<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>     assure( cpl_table_has_column(t, X2), CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"No such column: %s"</span>, X2);</div>
-<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span>     assure( cpl_table_has_column(t, Y) , CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"No such column: %s"</span>, Y);</div>
-<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span>     assure( (variance == NULL && variance_fit == NULL) || sigmaY != NULL,</div>
-<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span>         CPL_ERROR_INCOMPATIBLE_INPUT, <span class="stringliteral">"Cannot calculate variances without sigmaY"</span>);</div>
-<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span>     <span class="keywordflow">if</span> (sigmaY != NULL)</div>
-<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>     {</div>
-<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>         assure( cpl_table_has_column(t, sigmaY) , CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>             <span class="stringliteral">"No such column: %s"</span>, sigmaY);</div>
-<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span>     }</div>
-<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>     <span class="keywordflow">if</span> (polynomial_fit != NULL)</div>
-<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>     {</div>
-<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>         assure( !cpl_table_has_column(t, polynomial_fit) , CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span>             <span class="stringliteral">"Table already has '%s' column"</span>, polynomial_fit);</div>
-<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>     }</div>
-<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>     <span class="keywordflow">if</span> (residual_square != NULL)</div>
-<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span>     {</div>
-<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span>         assure( !cpl_table_has_column(t, residual_square), CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span>             <span class="stringliteral">"Table already has '%s' column"</span>, residual_square);</div>
-<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span>     }</div>
-<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span>     <span class="keywordflow">if</span> (variance_fit != NULL)</div>
-<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span>     {</div>
-<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span>         assure( !cpl_table_has_column(t, variance_fit) , CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span>             <span class="stringliteral">"Table already has '%s' column"</span>, variance_fit);</div>
-<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span>     }</div>
-<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span> </div>
-<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span>     <span class="comment">/* Check column types */</span></div>
-<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span>     type = cpl_table_get_column_type(t, X1);</div>
-<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span>     assure( type == CPL_TYPE_INT || type == CPL_TYPE_DOUBLE, CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span>         <span class="stringliteral">"Input column '%s' has wrong type (%s)"</span>, X1, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>     type = cpl_table_get_column_type(t, X2);</div>
-<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span>     assure( type == CPL_TYPE_INT || type == CPL_TYPE_DOUBLE, CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span>         <span class="stringliteral">"Input column '%s' has wrong type (%s)"</span>, X2, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>     type = cpl_table_get_column_type(t, Y);</div>
-<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>     assure( type == CPL_TYPE_INT || type == CPL_TYPE_DOUBLE, CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>         <span class="stringliteral">"Input column '%s' has wrong type (%s)"</span>, Y, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>     <span class="keywordflow">if</span> (sigmaY != NULL)</div>
-<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>     {</div>
-<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>         type = cpl_table_get_column_type(t, sigmaY);</div>
-<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>         assure( type == CPL_TYPE_INT || type == CPL_TYPE_DOUBLE, CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>             <span class="stringliteral">"Input column '%s' has wrong type (%s)"</span>, </div>
-<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>             sigmaY, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>     }</div>
-<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span> </div>
-<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>     <span class="comment">/* In the case that these temporary columns already exist, a run-time error will occur */</span></div>
-<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_cast_column(t, X1    , <span class="stringliteral">"_X1_double"</span>, CPL_TYPE_DOUBLE), </div>
-<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>        <span class="stringliteral">"Could not cast table column to double"</span>);</div>
-<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_cast_column(t, X2    , <span class="stringliteral">"_X2_double"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>        <span class="stringliteral">"Could not cast table column to double"</span>);</div>
-<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_cast_column(t,  Y    ,  <span class="stringliteral">"_Y_double"</span>, CPL_TYPE_DOUBLE), </div>
-<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>        <span class="stringliteral">"Could not cast table column to double"</span>);</div>
-<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>     <span class="keywordflow">if</span> (sigmaY != NULL)</div>
-<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span>     {</div>
-<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_cast_column(t, sigmaY, <span class="stringliteral">"_sY_double"</span>, CPL_TYPE_DOUBLE), </div>
-<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>            <span class="stringliteral">"Could not cast table column to double"</span>);</div>
-<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>     }</div>
-<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>     </div>
-<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>     total_rejected = 0;</div>
-<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>     rejected = 0;</div>
-<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_new_column(t, <span class="stringliteral">"_residual_square"</span>, CPL_TYPE_DOUBLE), </div>
-<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>        <span class="stringliteral">"Could not create column"</span>);</div>
-<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span> </div>
-<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>     <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>         <span class="comment">/* WARNING!!! Code duplication (see below). Be careful</span></div>
-<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span> <span class="comment">           when updating */</span></div>
-<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( N  = cpl_table_get_nrow(t),</div>
-<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span>         x1 = cpl_table_get_data_double(t, <span class="stringliteral">"_X1_double"</span>),</div>
-<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span>         x2 = cpl_table_get_data_double(t, <span class="stringliteral">"_X2_double"</span>),</div>
-<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span>         y  = cpl_table_get_data_double(t, <span class="stringliteral">"_Y_double"</span>),</div>
-<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span>                 res= cpl_table_get_data_double(t, <span class="stringliteral">"_residual_square"</span>)),</div>
-<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>           <span class="stringliteral">"Could not read table data"</span>);</div>
-<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>     </div>
-<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>     <span class="keywordflow">if</span> (sigmaY != NULL) </div>
-<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>         {</div>
-<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (sy = cpl_table_get_data_double(t,  <span class="stringliteral">"_sY_double"</span>),</div>
-<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span>                <span class="stringliteral">"Could not read table data"</span>);</div>
-<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>         }</div>
-<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span>     <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span>         {</div>
-<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>         sy = NULL;</div>
-<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>         }</div>
-<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span> </div>
-<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>     assure( N > 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Empty table"</span>);</div>
-<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>     </div>
-<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>     <span class="comment">/* Wrap vectors */</span></div>
-<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>     uves_unwrap_vector(&vx1);</div>
-<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>     uves_unwrap_vector(&vx2);</div>
-<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>     uves_unwrap_vector(&vy);</div>
-<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span> </div>
-<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>     vx1 = cpl_vector_wrap(N, x1);</div>
-<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>     vx2 = cpl_vector_wrap(N, x2);</div>
-<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>     vy  = cpl_vector_wrap(N, y);</div>
-<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span>     <span class="keywordflow">if</span> (sy != NULL)</div>
-<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span>         {</div>
-<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>         uves_unwrap_vector(&vsy);</div>
-<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>         vsy = cpl_vector_wrap(N, sy);</div>
-<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>         }</div>
-<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>         {</div>
-<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>         vsy = NULL;</div>
-<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>         }</div>
-<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span>     </div>
-<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span>     <span class="comment">/* Wrap up the bi-vector */</span></div>
-<div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>     uves_unwrap_bivector_vectors(&vx);</div>
-<div class="line"><a name="l03003"></a><span class="lineno"> 3003</span>     vx = cpl_bivector_wrap_vectors(vx1, vx2);</div>
-<div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>   </div>
-<div class="line"><a name="l03005"></a><span class="lineno"> 3005</span>     <span class="comment">/* Fit! */</span></div>
-<div class="line"><a name="l03006"></a><span class="lineno"> 3006</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p);</div>
-<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( p =  <a class="code" href="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3" title="Fit a 2d surface with a polynomial in x and y.">uves_polynomial_fit_2d</a>(vx, vy, vsy, degree1, degree2, </div>
-<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span>                                            NULL, NULL, NULL),</div>
-<div class="line"><a name="l03009"></a><span class="lineno"> 3009</span>                <span class="stringliteral">"Could not fit polynomial"</span>);</div>
-<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span> </div>
-<div class="line"><a name="l03011"></a><span class="lineno"> 3011</span>     <span class="comment">/* If requested, calculate residuals and perform kappa-sigma clipping */</span></div>
-<div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>     <span class="keywordflow">if</span> (kappa > 0)</div>
-<div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>         {</div>
-<div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>         <span class="keywordtype">double</span> sigma2;   <span class="comment">/* sigma squared */</span></div>
-<div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03016"></a><span class="lineno"> 3016</span> </div>
-<div class="line"><a name="l03017"></a><span class="lineno"> 3017</span>                 cpl_table_fill_column_window_double(t, <span class="stringliteral">"_residual_square"</span>, 0, </div>
-<div class="line"><a name="l03018"></a><span class="lineno"> 3018</span>                                                     cpl_table_get_nrow(t), 0.0);</div>
-<div class="line"><a name="l03019"></a><span class="lineno"> 3019</span> </div>
-<div class="line"><a name="l03020"></a><span class="lineno"> 3020</span>         <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l03021"></a><span class="lineno"> 3021</span>             {</div>
-<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>                         <span class="keywordtype">double</span> yval, yfit;</div>
-<div class="line"><a name="l03023"></a><span class="lineno"> 3023</span> </div>
-<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span>                         yval  = y[i];</div>
-<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>                         yfit  = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(p, x1[i], x2[i]);</div>
-<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>                         res[i] = (yfit-y[i])*(yfit-y[i]);</div>
-<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>             }</div>
-<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span>         </div>
-<div class="line"><a name="l03029"></a><span class="lineno"> 3029</span>         <span class="comment">/* For robustness, estimate sigma as (third quartile) / 0.6744</span></div>
-<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span> <span class="comment">         * (68% is within 1 sigma, 50% is within 3rd quartile, so sigma is > 3rd quartile)</span></div>
-<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span> <span class="comment">         * The third quartile is estimated as the median of the absolute residuals,</span></div>
-<div class="line"><a name="l03032"></a><span class="lineno"> 3032</span> <span class="comment">         * so  sigma    ~= median(|residual|) / 0.6744  , i.e.</span></div>
-<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span> <span class="comment">         *     sigma^2  ~= median(residual^2) / 0.6744^2  </span></div>
-<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span>         sigma2 = cpl_table_get_column_median(t, <span class="stringliteral">"_residual_square"</span>) / (0.6744 * 0.6744);</div>
-<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>                              </div>
-<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span> </div>
-<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span>         <span class="comment">/* Remove points with residual^2 > kappa^2 * sigma^2 */</span></div>
-<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( rejected = uves_erase_table_rows(t, <span class="stringliteral">"_residual_square"</span>, </div>
-<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span>                             CPL_GREATER_THAN, kappa*kappa*sigma2),</div>
-<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span>                <span class="stringliteral">"Could not remove outlier points"</span>);</div>
-<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>         <span class="comment">/* Note! All pointers to table data are now invalid! */</span></div>
-<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span> </div>
-<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span> </div>
-<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%d of %d points rejected in kappa-sigma clipping. rms=%f"</span>, </div>
-<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span>                    rejected, N, sqrt(sigma2));</div>
-<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>         </div>
-<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span>         <span class="comment">/* Update */</span></div>
-<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span>         total_rejected += rejected;</div>
-<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>         N = cpl_table_get_nrow(t);</div>
-<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>         }</div>
-<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span>         </div>
-<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span>     <span class="comment">/* Stop also if there are too few points left to make the fit.</span></div>
-<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span> <span class="comment">     * Needed number of points = (degree1+1)(degree2+1) coefficients</span></div>
-<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span> <span class="comment">     *      plus one extra point for chi^2 computation.   */</span></div>
-<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span>     } <span class="keywordflow">while</span> (rejected > 0 && rejected > min_reject*(N+rejected) &&</div>
-<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span>              N >= (degree1 + 1)*(degree2 + 1) + 1);</div>
-<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span>     </div>
-<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span>     <span class="keywordflow">if</span> (kappa > 0)</div>
-<div class="line"><a name="l03060"></a><span class="lineno"> 3060</span>     {    </div>
-<div class="line"><a name="l03061"></a><span class="lineno"> 3061</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%d of %d points (%f %%) rejected in kappa-sigma clipping"</span>,</div>
-<div class="line"><a name="l03062"></a><span class="lineno"> 3062</span>                 total_rejected,</div>
-<div class="line"><a name="l03063"></a><span class="lineno"> 3063</span>                 N + total_rejected,</div>
-<div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>                 (100.0*total_rejected)/(N + total_rejected)</div>
-<div class="line"><a name="l03065"></a><span class="lineno"> 3065</span>         );</div>
-<div class="line"><a name="l03066"></a><span class="lineno"> 3066</span>     }</div>
-<div class="line"><a name="l03067"></a><span class="lineno"> 3067</span>        </div>
-<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span>     <span class="comment">/* Final fit */</span></div>
-<div class="line"><a name="l03069"></a><span class="lineno"> 3069</span>     {</div>
-<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span>         <span class="comment">/* Need to convert to vector again. */</span></div>
-<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span> </div>
-<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span>         <span class="comment">/* WARNING!!! Code duplication (see above). Be careful</span></div>
-<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span> <span class="comment">           when updating */</span></div>
-<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( N  = cpl_table_get_nrow(t),</div>
-<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span>         x1 = cpl_table_get_data_double(t, <span class="stringliteral">"_X1_double"</span>),</div>
-<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span>         x2 = cpl_table_get_data_double(t, <span class="stringliteral">"_X2_double"</span>),</div>
-<div class="line"><a name="l03077"></a><span class="lineno"> 3077</span>         y  = cpl_table_get_data_double(t, <span class="stringliteral">"_Y_double"</span>),</div>
-<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span>                 res= cpl_table_get_data_double(t, <span class="stringliteral">"_residual_square"</span>)),</div>
-<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span>           <span class="stringliteral">"Could not read table data"</span>);</div>
-<div class="line"><a name="l03080"></a><span class="lineno"> 3080</span>     </div>
-<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span>     <span class="keywordflow">if</span> (sigmaY != NULL) </div>
-<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span>         {</div>
-<div class="line"><a name="l03083"></a><span class="lineno"> 3083</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (sy = cpl_table_get_data_double(t,  <span class="stringliteral">"_sY_double"</span>),</div>
-<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span>                <span class="stringliteral">"Could not read table data"</span>);</div>
-<div class="line"><a name="l03085"></a><span class="lineno"> 3085</span>         }</div>
-<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span>     <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span>         {</div>
-<div class="line"><a name="l03088"></a><span class="lineno"> 3088</span>         sy = NULL;</div>
-<div class="line"><a name="l03089"></a><span class="lineno"> 3089</span>         }</div>
-<div class="line"><a name="l03090"></a><span class="lineno"> 3090</span> </div>
-<div class="line"><a name="l03091"></a><span class="lineno"> 3091</span>     assure( N > 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Empty table"</span>);</div>
-<div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>     </div>
-<div class="line"><a name="l03093"></a><span class="lineno"> 3093</span>     <span class="comment">/* Wrap vectors */</span></div>
-<div class="line"><a name="l03094"></a><span class="lineno"> 3094</span>     uves_unwrap_vector(&vx1);</div>
-<div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>     uves_unwrap_vector(&vx2);</div>
-<div class="line"><a name="l03096"></a><span class="lineno"> 3096</span>     uves_unwrap_vector(&vy);</div>
-<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span> </div>
-<div class="line"><a name="l03098"></a><span class="lineno"> 3098</span>     vx1 = cpl_vector_wrap(N, x1);</div>
-<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>     vx2 = cpl_vector_wrap(N, x2);</div>
-<div class="line"><a name="l03100"></a><span class="lineno"> 3100</span>     vy  = cpl_vector_wrap(N, y);</div>
-<div class="line"><a name="l03101"></a><span class="lineno"> 3101</span>     <span class="keywordflow">if</span> (sy != NULL)</div>
-<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span>         {</div>
-<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span>         uves_unwrap_vector(&vsy);</div>
-<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span>         vsy = cpl_vector_wrap(N, sy);</div>
-<div class="line"><a name="l03105"></a><span class="lineno"> 3105</span>         }</div>
-<div class="line"><a name="l03106"></a><span class="lineno"> 3106</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03107"></a><span class="lineno"> 3107</span>         {</div>
-<div class="line"><a name="l03108"></a><span class="lineno"> 3108</span>         vsy = NULL;</div>
-<div class="line"><a name="l03109"></a><span class="lineno"> 3109</span>         }</div>
-<div class="line"><a name="l03110"></a><span class="lineno"> 3110</span>     </div>
-<div class="line"><a name="l03111"></a><span class="lineno"> 3111</span>     <span class="comment">/* Wrap up the bi-vector */</span></div>
-<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span>     uves_unwrap_bivector_vectors(&vx);</div>
-<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span>     vx = cpl_bivector_wrap_vectors(vx1, vx2);</div>
-<div class="line"><a name="l03114"></a><span class="lineno"> 3114</span>     }</div>
-<div class="line"><a name="l03115"></a><span class="lineno"> 3115</span> </div>
-<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p);</div>
-<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>     <span class="keywordflow">if</span> (variance_fit != NULL || variance != NULL)</div>
-<div class="line"><a name="l03118"></a><span class="lineno"> 3118</span>         {</div>
-<div class="line"><a name="l03119"></a><span class="lineno"> 3119</span>             <span class="comment">/* If requested, also compute variance */</span></div>
-<div class="line"><a name="l03120"></a><span class="lineno"> 3120</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( p = <a class="code" href="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3" title="Fit a 2d surface with a polynomial in x and y.">uves_polynomial_fit_2d</a>(vx, vy, vsy, degree1, degree2,</div>
-<div class="line"><a name="l03121"></a><span class="lineno"> 3121</span>                                               mse, red_chisq, &variance_local),</div>
-<div class="line"><a name="l03122"></a><span class="lineno"> 3122</span>                    <span class="stringliteral">"Could not fit polynomial"</span>);</div>
-<div class="line"><a name="l03123"></a><span class="lineno"> 3123</span>         }</div>
-<div class="line"><a name="l03124"></a><span class="lineno"> 3124</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03125"></a><span class="lineno"> 3125</span>         {</div>
-<div class="line"><a name="l03126"></a><span class="lineno"> 3126</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( p = <a class="code" href="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3" title="Fit a 2d surface with a polynomial in x and y.">uves_polynomial_fit_2d</a>(vx, vy, vsy, degree1, degree2, </div>
-<div class="line"><a name="l03127"></a><span class="lineno"> 3127</span>                                               mse, red_chisq, NULL),</div>
-<div class="line"><a name="l03128"></a><span class="lineno"> 3128</span>                    <span class="stringliteral">"Could not fit polynomial"</span>);</div>
-<div class="line"><a name="l03129"></a><span class="lineno"> 3129</span>         }</div>
-<div class="line"><a name="l03130"></a><span class="lineno"> 3130</span> </div>
-<div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>     cpl_table_erase_column(t,  <span class="stringliteral">"_residual_square"</span>);</div>
-<div class="line"><a name="l03132"></a><span class="lineno"> 3132</span>     </div>
-<div class="line"><a name="l03133"></a><span class="lineno"> 3133</span>     <span class="comment">/* Add the fitted values to table as requested */</span></div>
-<div class="line"><a name="l03134"></a><span class="lineno"> 3134</span>     <span class="keywordflow">if</span> (polynomial_fit != NULL || residual_square != NULL)</div>
-<div class="line"><a name="l03135"></a><span class="lineno"> 3135</span>     {</div>
-<div class="line"><a name="l03136"></a><span class="lineno"> 3136</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03137"></a><span class="lineno"> 3137</span>             <span class="keywordtype">double</span> *pf;</div>
-<div class="line"><a name="l03138"></a><span class="lineno"> 3138</span>         </div>
-<div class="line"><a name="l03139"></a><span class="lineno"> 3139</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_new_column(t, <span class="stringliteral">"_polynomial_fit"</span>, CPL_TYPE_DOUBLE), </div>
-<div class="line"><a name="l03140"></a><span class="lineno"> 3140</span>            <span class="stringliteral">"Could not create column"</span>);</div>
-<div class="line"><a name="l03141"></a><span class="lineno"> 3141</span> </div>
-<div class="line"><a name="l03142"></a><span class="lineno"> 3142</span>             cpl_table_fill_column_window_double(t, <span class="stringliteral">"_polynomial_fit"</span>, 0, </div>
-<div class="line"><a name="l03143"></a><span class="lineno"> 3143</span>                                                 cpl_table_get_nrow(t), 0.0);</div>
-<div class="line"><a name="l03144"></a><span class="lineno"> 3144</span> </div>
-<div class="line"><a name="l03145"></a><span class="lineno"> 3145</span>             x1 = cpl_table_get_data_double(t, <span class="stringliteral">"_X1_double"</span>);</div>
-<div class="line"><a name="l03146"></a><span class="lineno"> 3146</span>             x2 = cpl_table_get_data_double(t, <span class="stringliteral">"_X2_double"</span>);</div>
-<div class="line"><a name="l03147"></a><span class="lineno"> 3147</span>             pf = cpl_table_get_data_double(t, <span class="stringliteral">"_polynomial_fit"</span>);</div>
-<div class="line"><a name="l03148"></a><span class="lineno"> 3148</span> </div>
-<div class="line"><a name="l03149"></a><span class="lineno"> 3149</span>         <span class="keywordflow">for</span> (i = 0; i < N; i++){</div>
-<div class="line"><a name="l03150"></a><span class="lineno"> 3150</span> <span class="preprocessor">#if 0        </span></div>
-<div class="line"><a name="l03151"></a><span class="lineno"> 3151</span> <span class="preprocessor"></span>        <span class="keywordtype">double</span> x1val, x2val, yfit;</div>
-<div class="line"><a name="l03152"></a><span class="lineno"> 3152</span> </div>
-<div class="line"><a name="l03153"></a><span class="lineno"> 3153</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( x1val = cpl_table_get_double(t, <span class="stringliteral">"_X1_double"</span>, i, NULL),</div>
-<div class="line"><a name="l03154"></a><span class="lineno"> 3154</span>             x2val = cpl_table_get_double(t, <span class="stringliteral">"_X2_double"</span>, i, NULL),</div>
-<div class="line"><a name="l03155"></a><span class="lineno"> 3155</span>             yfit  = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(p, x1val, x2val),</div>
-<div class="line"><a name="l03156"></a><span class="lineno"> 3156</span>             </div>
-<div class="line"><a name="l03157"></a><span class="lineno"> 3157</span>             cpl_table_set_double(t, <span class="stringliteral">"_polynomial_fit"</span>, i, yfit)),</div>
-<div class="line"><a name="l03158"></a><span class="lineno"> 3158</span>             <span class="stringliteral">"Could not evaluate polynomial"</span>);</div>
-<div class="line"><a name="l03159"></a><span class="lineno"> 3159</span> </div>
-<div class="line"><a name="l03160"></a><span class="lineno"> 3160</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03161"></a><span class="lineno"> 3161</span> <span class="preprocessor"></span>                pf[i] = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(p, x1[i], x2[i]);</div>
-<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03163"></a><span class="lineno"> 3163</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l03164"></a><span class="lineno"> 3164</span>         </div>
-<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span>         <span class="comment">/* Add residual^2  =  (Polynomial fit  -  Y)^2  if requested */</span></div>
-<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>         <span class="keywordflow">if</span> (residual_square != NULL)</div>
-<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>         {</div>
-<div class="line"><a name="l03168"></a><span class="lineno"> 3168</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_duplicate_column(t, residual_square,     <span class="comment">/* RS := PF */</span></div>
-<div class="line"><a name="l03169"></a><span class="lineno"> 3169</span>                                t, <span class="stringliteral">"_polynomial_fit"</span>),</div>
-<div class="line"><a name="l03170"></a><span class="lineno"> 3170</span>                 cpl_table_subtract_columns(t, residual_square, Y), <span class="comment">/* RS := RS - Y */</span></div>
-<div class="line"><a name="l03171"></a><span class="lineno"> 3171</span>                 cpl_table_multiply_columns(t, residual_square, residual_square)),</div>
-<div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>                                                                    <span class="comment">/* RS := RS^2 */</span></div>
-<div class="line"><a name="l03173"></a><span class="lineno"> 3173</span>                <span class="stringliteral">"Could not calculate Residual of fit"</span>);</div>
-<div class="line"><a name="l03174"></a><span class="lineno"> 3174</span>         }</div>
-<div class="line"><a name="l03175"></a><span class="lineno"> 3175</span>         </div>
-<div class="line"><a name="l03176"></a><span class="lineno"> 3176</span>         <span class="comment">/* Keep the polynomial_fit column if requested */</span></div>
-<div class="line"><a name="l03177"></a><span class="lineno"> 3177</span>         <span class="keywordflow">if</span> (polynomial_fit != NULL)</div>
-<div class="line"><a name="l03178"></a><span class="lineno"> 3178</span>         {</div>
-<div class="line"><a name="l03179"></a><span class="lineno"> 3179</span>             cpl_table_name_column(t, <span class="stringliteral">"_polynomial_fit"</span>, polynomial_fit);</div>
-<div class="line"><a name="l03180"></a><span class="lineno"> 3180</span>         }</div>
-<div class="line"><a name="l03181"></a><span class="lineno"> 3181</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03182"></a><span class="lineno"> 3182</span>         {</div>
-<div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>             cpl_table_erase_column(t, <span class="stringliteral">"_polynomial_fit"</span>);</div>
-<div class="line"><a name="l03184"></a><span class="lineno"> 3184</span>         }</div>
-<div class="line"><a name="l03185"></a><span class="lineno"> 3185</span>     }</div>
-<div class="line"><a name="l03186"></a><span class="lineno"> 3186</span>     </div>
-<div class="line"><a name="l03187"></a><span class="lineno"> 3187</span>     <span class="comment">/* Add variance of poly_fit if requested */</span></div>
-<div class="line"><a name="l03188"></a><span class="lineno"> 3188</span>     <span class="keywordflow">if</span> (variance_fit != NULL)</div>
-<div class="line"><a name="l03189"></a><span class="lineno"> 3189</span>     {</div>
-<div class="line"><a name="l03190"></a><span class="lineno"> 3190</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03191"></a><span class="lineno"> 3191</span>             <span class="keywordtype">double</span> *vf;</div>
-<div class="line"><a name="l03192"></a><span class="lineno"> 3192</span> </div>
-<div class="line"><a name="l03193"></a><span class="lineno"> 3193</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_new_column(t, variance_fit, CPL_TYPE_DOUBLE), </div>
-<div class="line"><a name="l03194"></a><span class="lineno"> 3194</span>            <span class="stringliteral">"Could not create column"</span>);</div>
-<div class="line"><a name="l03195"></a><span class="lineno"> 3195</span>             </div>
-<div class="line"><a name="l03196"></a><span class="lineno"> 3196</span>             cpl_table_fill_column_window_double(t, variance_fit, 0,</div>
-<div class="line"><a name="l03197"></a><span class="lineno"> 3197</span>                                                 cpl_table_get_nrow(t), 0.0);</div>
-<div class="line"><a name="l03198"></a><span class="lineno"> 3198</span> </div>
-<div class="line"><a name="l03199"></a><span class="lineno"> 3199</span>             x1 = cpl_table_get_data_double(t, <span class="stringliteral">"_X1_double"</span>);</div>
-<div class="line"><a name="l03200"></a><span class="lineno"> 3200</span>             x2 = cpl_table_get_data_double(t, <span class="stringliteral">"_X2_double"</span>);</div>
-<div class="line"><a name="l03201"></a><span class="lineno"> 3201</span>             vf = cpl_table_get_data_double(t, variance_fit);</div>
-<div class="line"><a name="l03202"></a><span class="lineno"> 3202</span> </div>
-<div class="line"><a name="l03203"></a><span class="lineno"> 3203</span>         <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l03204"></a><span class="lineno"> 3204</span>         {</div>
-<div class="line"><a name="l03205"></a><span class="lineno"> 3205</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l03206"></a><span class="lineno"> 3206</span> <span class="preprocessor"></span>            <span class="keywordtype">double</span> x1val, x2val, yfit_variance;</div>
-<div class="line"><a name="l03207"></a><span class="lineno"> 3207</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( x1val         = cpl_table_get_double(t, <span class="stringliteral">"_X1_double"</span>, i, NULL),</div>
-<div class="line"><a name="l03208"></a><span class="lineno"> 3208</span>                 x2val         = cpl_table_get_double(t, <span class="stringliteral">"_X2_double"</span>, i, NULL),</div>
-<div class="line"><a name="l03209"></a><span class="lineno"> 3209</span>                 yfit_variance = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(variance_local, </div>
-<div class="line"><a name="l03210"></a><span class="lineno"> 3210</span>                                     x1val, x2val),</div>
-<div class="line"><a name="l03211"></a><span class="lineno"> 3211</span>                 </div>
-<div class="line"><a name="l03212"></a><span class="lineno"> 3212</span>                 cpl_table_set_double(t, variance_fit, i, yfit_variance)),</div>
-<div class="line"><a name="l03213"></a><span class="lineno"> 3213</span>                <span class="stringliteral">"Could not evaluate polynomial"</span>);</div>
-<div class="line"><a name="l03214"></a><span class="lineno"> 3214</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l03215"></a><span class="lineno"> 3215</span> <span class="preprocessor"></span>                    vf[i] = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(variance_local, x1[i], x2[i]);</div>
-<div class="line"><a name="l03216"></a><span class="lineno"> 3216</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l03217"></a><span class="lineno"> 3217</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l03218"></a><span class="lineno"> 3218</span>         }</div>
-<div class="line"><a name="l03219"></a><span class="lineno"> 3219</span>     }</div>
-<div class="line"><a name="l03220"></a><span class="lineno"> 3220</span>     </div>
-<div class="line"><a name="l03221"></a><span class="lineno"> 3221</span>     </div>
-<div class="line"><a name="l03222"></a><span class="lineno"> 3222</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_erase_column(t, <span class="stringliteral">"_X1_double"</span>),</div>
-<div class="line"><a name="l03223"></a><span class="lineno"> 3223</span>         cpl_table_erase_column(t, <span class="stringliteral">"_X2_double"</span>),</div>
-<div class="line"><a name="l03224"></a><span class="lineno"> 3224</span>         cpl_table_erase_column(t,  <span class="stringliteral">"_Y_double"</span>)),</div>
-<div class="line"><a name="l03225"></a><span class="lineno"> 3225</span>       <span class="stringliteral">"Could not delete temporary columns"</span>);</div>
-<div class="line"><a name="l03226"></a><span class="lineno"> 3226</span>       </div>
-<div class="line"><a name="l03227"></a><span class="lineno"> 3227</span>     <span class="keywordflow">if</span> (sigmaY != NULL) </div>
-<div class="line"><a name="l03228"></a><span class="lineno"> 3228</span>     {</div>
-<div class="line"><a name="l03229"></a><span class="lineno"> 3229</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_erase_column(t, <span class="stringliteral">"_sY_double"</span>),</div>
-<div class="line"><a name="l03230"></a><span class="lineno"> 3230</span>            <span class="stringliteral">"Could not delete temporary column"</span>);</div>
-<div class="line"><a name="l03231"></a><span class="lineno"> 3231</span>     }</div>
-<div class="line"><a name="l03232"></a><span class="lineno"> 3232</span>     </div>
-<div class="line"><a name="l03233"></a><span class="lineno"> 3233</span>   cleanup:</div>
-<div class="line"><a name="l03234"></a><span class="lineno"> 3234</span>     uves_unwrap_bivector_vectors(&vx);</div>
-<div class="line"><a name="l03235"></a><span class="lineno"> 3235</span>     uves_unwrap_vector(&vx1);</div>
-<div class="line"><a name="l03236"></a><span class="lineno"> 3236</span>     uves_unwrap_vector(&vx2);</div>
-<div class="line"><a name="l03237"></a><span class="lineno"> 3237</span>     uves_unwrap_vector(&vy);</div>
-<div class="line"><a name="l03238"></a><span class="lineno"> 3238</span>     uves_unwrap_vector(&vsy);</div>
-<div class="line"><a name="l03239"></a><span class="lineno"> 3239</span>     <span class="comment">/* Delete 'variance_local', or return through 'variance' parameter */</span></div>
-<div class="line"><a name="l03240"></a><span class="lineno"> 3240</span>     <span class="keywordflow">if</span> (variance != NULL)</div>
-<div class="line"><a name="l03241"></a><span class="lineno"> 3241</span>     {</div>
-<div class="line"><a name="l03242"></a><span class="lineno"> 3242</span>         *variance = variance_local;</div>
-<div class="line"><a name="l03243"></a><span class="lineno"> 3243</span>     }</div>
-<div class="line"><a name="l03244"></a><span class="lineno"> 3244</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03245"></a><span class="lineno"> 3245</span>     {</div>
-<div class="line"><a name="l03246"></a><span class="lineno"> 3246</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&variance_local);</div>
-<div class="line"><a name="l03247"></a><span class="lineno"> 3247</span>     }</div>
-<div class="line"><a name="l03248"></a><span class="lineno"> 3248</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l03249"></a><span class="lineno"> 3249</span>     {</div>
-<div class="line"><a name="l03250"></a><span class="lineno"> 3250</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p);</div>
-<div class="line"><a name="l03251"></a><span class="lineno"> 3251</span>     }</div>
-<div class="line"><a name="l03252"></a><span class="lineno"> 3252</span> </div>
-<div class="line"><a name="l03253"></a><span class="lineno"> 3253</span>     <span class="keywordflow">return</span> p;</div>
-<div class="line"><a name="l03254"></a><span class="lineno"> 3254</span> }</div>
-<div class="line"><a name="l03255"></a><span class="lineno"> 3255</span> </div>
-<div class="line"><a name="l03256"></a><span class="lineno"> 3256</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03299"></a><span class="lineno"> 3299</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03300"></a><span class="lineno"> 3300</span> </div>
-<div class="line"><a name="l03301"></a><span class="lineno"> 3301</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l03302"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b"> 3302</a></span> <a class="code" href="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d_autodegree</a>(cpl_table *t,</div>
-<div class="line"><a name="l03303"></a><span class="lineno"> 3303</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *X1, <span class="keyword">const</span> <span class="keywordtype">char</span> *X2, <span class="keyword">const</span> <span class="keywordtype">char</span> *Y,</div>
-<div class="line"><a name="l03304"></a><span class="lineno"> 3304</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *sigmaY,</div>
-<div class="line"><a name="l03305"></a><span class="lineno"> 3305</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *polynomial_fit,</div>
-<div class="line"><a name="l03306"></a><span class="lineno"> 3306</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *residual_square, </div>
-<div class="line"><a name="l03307"></a><span class="lineno"> 3307</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *variance_fit,</div>
-<div class="line"><a name="l03308"></a><span class="lineno"> 3308</span>                      <span class="keywordtype">double</span> *mean_squared_error, <span class="keywordtype">double</span> *red_chisq,</div>
-<div class="line"><a name="l03309"></a><span class="lineno"> 3309</span>                      <a class="code" href="struct__polynomial.html">polynomial</a> **variance, <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l03310"></a><span class="lineno"> 3310</span>                      <span class="keywordtype">int</span> maxdeg1, <span class="keywordtype">int</span> maxdeg2, <span class="keywordtype">double</span> min_rms,</div>
-<div class="line"><a name="l03311"></a><span class="lineno"> 3311</span>                                          <span class="keywordtype">double</span> min_reject,</div>
-<div class="line"><a name="l03312"></a><span class="lineno"> 3312</span>                                          <span class="keywordtype">bool</span> verbose,</div>
-<div class="line"><a name="l03313"></a><span class="lineno"> 3313</span>                      <span class="keyword">const</span> <span class="keywordtype">double</span> *min_val,</div>
-<div class="line"><a name="l03314"></a><span class="lineno"> 3314</span>                      <span class="keyword">const</span> <span class="keywordtype">double</span> *max_val,</div>
-<div class="line"><a name="l03315"></a><span class="lineno"> 3315</span>                      <span class="keywordtype">int</span> npos, <span class="keywordtype">double</span> positions[][2])</div>
-<div class="line"><a name="l03316"></a><span class="lineno"> 3316</span> {</div>
-<div class="line"><a name="l03317"></a><span class="lineno"> 3317</span>     <span class="keywordtype">int</span> deg1 = 0;               <span class="comment">/* Current degrees                                  */</span></div>
-<div class="line"><a name="l03318"></a><span class="lineno"> 3318</span>     <span class="keywordtype">int</span> deg2 = 0;               <span class="comment">/* Current degrees                                  */</span></div>
-<div class="line"><a name="l03319"></a><span class="lineno"> 3319</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03320"></a><span class="lineno"> 3320</span> </div>
-<div class="line"><a name="l03321"></a><span class="lineno"> 3321</span>     <span class="keywordtype">double</span> **mse = NULL;</div>
-<div class="line"><a name="l03322"></a><span class="lineno"> 3322</span>     <span class="keywordtype">bool</span> adjust1 = <span class="keyword">true</span>;      <span class="comment">/* Flags indicating if DEFPOL1/DEFPOL2 should be adjusted */</span></div>
-<div class="line"><a name="l03323"></a><span class="lineno"> 3323</span>     <span class="keywordtype">bool</span> adjust2 = <span class="keyword">true</span>;      <span class="comment">/*   (or held constant)            */</span></div>
-<div class="line"><a name="l03324"></a><span class="lineno"> 3324</span>     <span class="keywordtype">bool</span> finished = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03325"></a><span class="lineno"> 3325</span> </div>
-<div class="line"><a name="l03326"></a><span class="lineno"> 3326</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *y_unit;</div>
-<div class="line"><a name="l03327"></a><span class="lineno"> 3327</span>     cpl_table *temp = NULL;</div>
-<div class="line"><a name="l03328"></a><span class="lineno"> 3328</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *bivariate_fit = NULL;   <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l03329"></a><span class="lineno"> 3329</span> </div>
-<div class="line"><a name="l03330"></a><span class="lineno"> 3330</span>     assure( (min_val == NULL && max_val == NULL) || positions != NULL,</div>
-<div class="line"><a name="l03331"></a><span class="lineno"> 3331</span>         CPL_ERROR_NULL_INPUT,</div>
-<div class="line"><a name="l03332"></a><span class="lineno"> 3332</span>         <span class="stringliteral">"Missing positions array"</span>);    </div>
-<div class="line"><a name="l03333"></a><span class="lineno"> 3333</span> </div>
-<div class="line"><a name="l03334"></a><span class="lineno"> 3334</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( y_unit = cpl_table_get_column_unit(t, Y));</div>
-<div class="line"><a name="l03335"></a><span class="lineno"> 3335</span>     <span class="keywordflow">if</span> (y_unit == NULL)</div>
-<div class="line"><a name="l03336"></a><span class="lineno"> 3336</span>     {</div>
-<div class="line"><a name="l03337"></a><span class="lineno"> 3337</span>         y_unit = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l03338"></a><span class="lineno"> 3338</span>     }</div>
-<div class="line"><a name="l03339"></a><span class="lineno"> 3339</span> </div>
-<div class="line"><a name="l03340"></a><span class="lineno"> 3340</span>     assure(maxdeg1 >= 1 && maxdeg2 >= 1, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l03341"></a><span class="lineno"> 3341</span>        <span class="stringliteral">"Illegal max. degrees: (%d, %d)"</span>,</div>
-<div class="line"><a name="l03342"></a><span class="lineno"> 3342</span>        maxdeg1, maxdeg2);</div>
-<div class="line"><a name="l03343"></a><span class="lineno"> 3343</span> </div>
-<div class="line"><a name="l03344"></a><span class="lineno"> 3344</span>     mse = cpl_calloc(maxdeg1+1, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
-<div class="line"><a name="l03345"></a><span class="lineno"> 3345</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(mse);</div>
-<div class="line"><a name="l03346"></a><span class="lineno"> 3346</span>     <span class="keywordflow">for</span> (i = 0; i < maxdeg1+1; i++)</div>
-<div class="line"><a name="l03347"></a><span class="lineno"> 3347</span>     {</div>
-<div class="line"><a name="l03348"></a><span class="lineno"> 3348</span>         <span class="keywordtype">int</span> j;</div>
-<div class="line"><a name="l03349"></a><span class="lineno"> 3349</span>         mse[i] = cpl_calloc(maxdeg2+1, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l03350"></a><span class="lineno"> 3350</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(mse);</div>
-<div class="line"><a name="l03351"></a><span class="lineno"> 3351</span> </div>
-<div class="line"><a name="l03352"></a><span class="lineno"> 3352</span>         <span class="keywordflow">for</span> (j = 0; j < maxdeg2+1; j++)</div>
-<div class="line"><a name="l03353"></a><span class="lineno"> 3353</span>         {</div>
-<div class="line"><a name="l03354"></a><span class="lineno"> 3354</span>             mse[i][j] = -1;</div>
-<div class="line"><a name="l03355"></a><span class="lineno"> 3355</span>         }</div>
-<div class="line"><a name="l03356"></a><span class="lineno"> 3356</span>     }</div>
-<div class="line"><a name="l03357"></a><span class="lineno"> 3357</span> </div>
-<div class="line"><a name="l03358"></a><span class="lineno"> 3358</span>     temp = cpl_table_duplicate(t);</div>
-<div class="line"><a name="l03359"></a><span class="lineno"> 3359</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(temp);</div>
-<div class="line"><a name="l03360"></a><span class="lineno"> 3360</span> </div>
-<div class="line"><a name="l03361"></a><span class="lineno"> 3361</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&bivariate_fit);</div>
-<div class="line"><a name="l03362"></a><span class="lineno"> 3362</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( bivariate_fit = <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(temp,</div>
-<div class="line"><a name="l03363"></a><span class="lineno"> 3363</span>                              X1, X2, Y, sigmaY,</div>
-<div class="line"><a name="l03364"></a><span class="lineno"> 3364</span>                              deg1,</div>
-<div class="line"><a name="l03365"></a><span class="lineno"> 3365</span>                              deg2,</div>
-<div class="line"><a name="l03366"></a><span class="lineno"> 3366</span>                              NULL, NULL, NULL,  <span class="comment">/* new columns  */</span></div>
-<div class="line"><a name="l03367"></a><span class="lineno"> 3367</span>                              &mse[deg1][deg2], NULL, <span class="comment">/* chi^2/N */</span></div>
-<div class="line"><a name="l03368"></a><span class="lineno"> 3368</span>                              NULL,              <span class="comment">/* variance pol.*/</span></div>
-<div class="line"><a name="l03369"></a><span class="lineno"> 3369</span>                              kappa, min_reject),</div>
-<div class="line"><a name="l03370"></a><span class="lineno"> 3370</span>        <span class="stringliteral">"Error fitting polynomial"</span>);</div>
-<div class="line"><a name="l03371"></a><span class="lineno"> 3371</span>     <span class="keywordflow">if</span> (verbose)</div>
-<div class="line"><a name="l03372"></a><span class="lineno"> 3372</span>         <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"(%d, %d)-degree: RMS = %.3g %s (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">"/%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" outliers)"</span>,</div>
-<div class="line"><a name="l03373"></a><span class="lineno"> 3373</span>                      deg1, deg2, sqrt(mse[deg1][deg2]), y_unit,</div>
-<div class="line"><a name="l03374"></a><span class="lineno"> 3374</span>                      cpl_table_get_nrow(t) - cpl_table_get_nrow(temp),</div>
-<div class="line"><a name="l03375"></a><span class="lineno"> 3375</span>                      cpl_table_get_nrow(t));</div>
-<div class="line"><a name="l03376"></a><span class="lineno"> 3376</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03377"></a><span class="lineno"> 3377</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"(%d, %d)-degree: RMS = %.3g %s (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">"/%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" outliers)"</span>,</div>
-<div class="line"><a name="l03378"></a><span class="lineno"> 3378</span>                        deg1, deg2, sqrt(mse[deg1][deg2]), y_unit,</div>
-<div class="line"><a name="l03379"></a><span class="lineno"> 3379</span>                      cpl_table_get_nrow(t) - cpl_table_get_nrow(temp),</div>
-<div class="line"><a name="l03380"></a><span class="lineno"> 3380</span>                      cpl_table_get_nrow(t));</div>
-<div class="line"><a name="l03381"></a><span class="lineno"> 3381</span>     <span class="comment">/* Find best values of deg1, deg2 less than or equal to 8,8</span></div>
-<div class="line"><a name="l03382"></a><span class="lineno"> 3382</span> <span class="comment">       (the fitting algorithm is unstable after this point, anyway) */</span></div>
-<div class="line"><a name="l03383"></a><span class="lineno"> 3383</span>     <span class="keywordflow">do</span></div>
-<div class="line"><a name="l03384"></a><span class="lineno"> 3384</span>     {</div>
-<div class="line"><a name="l03385"></a><span class="lineno"> 3385</span>         <span class="keywordtype">int</span> new_deg1, new_deg2;</div>
-<div class="line"><a name="l03386"></a><span class="lineno"> 3386</span>         <span class="keywordtype">double</span> m;</div>
-<div class="line"><a name="l03387"></a><span class="lineno"> 3387</span> </div>
-<div class="line"><a name="l03388"></a><span class="lineno"> 3388</span>         finished = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l03389"></a><span class="lineno"> 3389</span> </div>
-<div class="line"><a name="l03390"></a><span class="lineno"> 3390</span>         adjust1 = adjust1 && (deg1 + 2 <= maxdeg1);</div>
-<div class="line"><a name="l03391"></a><span class="lineno"> 3391</span>         adjust2 = adjust2 && (deg2 + 2 <= maxdeg2);</div>
-<div class="line"><a name="l03392"></a><span class="lineno"> 3392</span>         </div>
-<div class="line"><a name="l03393"></a><span class="lineno"> 3393</span>         <span class="comment">/* Try the new degrees</span></div>
-<div class="line"><a name="l03394"></a><span class="lineno"> 3394</span> <span class="comment"></span></div>
-<div class="line"><a name="l03395"></a><span class="lineno"> 3395</span> <span class="comment">                              (d1+1, d2  ) (d1+2, d2)</span></div>
-<div class="line"><a name="l03396"></a><span class="lineno"> 3396</span> <span class="comment">                       (d1, d2+1) (d1+1, d2+1)</span></div>
-<div class="line"><a name="l03397"></a><span class="lineno"> 3397</span> <span class="comment">                       (d1, d2+2)</span></div>
-<div class="line"><a name="l03398"></a><span class="lineno"> 3398</span> <span class="comment"></span></div>
-<div class="line"><a name="l03399"></a><span class="lineno"> 3399</span> <span class="comment">           in the following order:</span></div>
-<div class="line"><a name="l03400"></a><span class="lineno"> 3400</span> <span class="comment"></span></div>
-<div class="line"><a name="l03401"></a><span class="lineno"> 3401</span> <span class="comment">                                     1            3</span></div>
-<div class="line"><a name="l03402"></a><span class="lineno"> 3402</span> <span class="comment">                          1          2</span></div>
-<div class="line"><a name="l03403"></a><span class="lineno"> 3403</span> <span class="comment">                          3</span></div>
-<div class="line"><a name="l03404"></a><span class="lineno"> 3404</span> <span class="comment"></span></div>
-<div class="line"><a name="l03405"></a><span class="lineno"> 3405</span> <span class="comment">               (i.e. only move to '3' if positions '1' and '2' were no better, etc.)</span></div>
-<div class="line"><a name="l03406"></a><span class="lineno"> 3406</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l03407"></a><span class="lineno"> 3407</span>         <span class="keywordflow">for</span> (new_deg1 = deg1; new_deg1 <= deg1+2; new_deg1++)</div>
-<div class="line"><a name="l03408"></a><span class="lineno"> 3408</span>         <span class="keywordflow">for</span> (new_deg2 = deg2; new_deg2 <= deg2+2; new_deg2++)</div>
-<div class="line"><a name="l03409"></a><span class="lineno"> 3409</span>             <span class="keywordflow">if</span> ( (</div>
-<div class="line"><a name="l03410"></a><span class="lineno"> 3410</span>                  (new_deg1 == deg1+1 && new_deg2 == deg2   && adjust1) ||</div>
-<div class="line"><a name="l03411"></a><span class="lineno"> 3411</span>                  (new_deg1 == deg1+2 && new_deg2 == deg2   && adjust1) ||</div>
-<div class="line"><a name="l03412"></a><span class="lineno"> 3412</span>                  (new_deg1 == deg1   && new_deg2 == deg2+1 && adjust2) ||</div>
-<div class="line"><a name="l03413"></a><span class="lineno"> 3413</span>                  (new_deg1 == deg1   && new_deg2 == deg2+2 && adjust2) ||</div>
-<div class="line"><a name="l03414"></a><span class="lineno"> 3414</span>                  (new_deg1 == deg1+1 && new_deg2 == deg2+1 && adjust1 && adjust2)</div>
-<div class="line"><a name="l03415"></a><span class="lineno"> 3415</span>                  )</div>
-<div class="line"><a name="l03416"></a><span class="lineno"> 3416</span>              && mse[new_deg1][new_deg2] < 0)</div>
-<div class="line"><a name="l03417"></a><span class="lineno"> 3417</span>             {</div>
-<div class="line"><a name="l03418"></a><span class="lineno"> 3418</span>                 <span class="keywordtype">int</span> rejected = 0;</div>
-<div class="line"><a name="l03419"></a><span class="lineno"> 3419</span> </div>
-<div class="line"><a name="l03420"></a><span class="lineno"> 3420</span>                 uves_free_table(&temp);</div>
-<div class="line"><a name="l03421"></a><span class="lineno"> 3421</span>                 temp = cpl_table_duplicate(t);</div>
-<div class="line"><a name="l03422"></a><span class="lineno"> 3422</span>                 <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(temp);</div>
-<div class="line"><a name="l03423"></a><span class="lineno"> 3423</span> </div>
-<div class="line"><a name="l03424"></a><span class="lineno"> 3424</span>                 <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&bivariate_fit);</div>
-<div class="line"><a name="l03425"></a><span class="lineno"> 3425</span>                 bivariate_fit = <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(temp,</div>
-<div class="line"><a name="l03426"></a><span class="lineno"> 3426</span>                                       X1, X2, Y, sigmaY,</div>
-<div class="line"><a name="l03427"></a><span class="lineno"> 3427</span>                                       new_deg1,</div>
-<div class="line"><a name="l03428"></a><span class="lineno"> 3428</span>                                       new_deg2,</div>
-<div class="line"><a name="l03429"></a><span class="lineno"> 3429</span>                                       NULL, NULL, NULL,</div>
-<div class="line"><a name="l03430"></a><span class="lineno"> 3430</span>                                       &(mse[new_deg1]</div>
-<div class="line"><a name="l03431"></a><span class="lineno"> 3431</span>                                         [new_deg2]),</div>
-<div class="line"><a name="l03432"></a><span class="lineno"> 3432</span>                                       NULL,</div>
-<div class="line"><a name="l03433"></a><span class="lineno"> 3433</span>                                       NULL,</div>
-<div class="line"><a name="l03434"></a><span class="lineno"> 3434</span>                                       kappa, min_reject);</div>
-<div class="line"><a name="l03435"></a><span class="lineno"> 3435</span> </div>
-<div class="line"><a name="l03436"></a><span class="lineno"> 3436</span>                 <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX)</div>
-<div class="line"><a name="l03437"></a><span class="lineno"> 3437</span>                 {</div>
-<div class="line"><a name="l03438"></a><span class="lineno"> 3438</span>                     <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l03439"></a><span class="lineno"> 3439</span> </div>
-<div class="line"><a name="l03440"></a><span class="lineno"> 3440</span>                                     <span class="keywordflow">if</span> (verbose)</div>
-<div class="line"><a name="l03441"></a><span class="lineno"> 3441</span>                                         <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"(%d, %d)-degree: Singular matrix"</span>, </div>
-<div class="line"><a name="l03442"></a><span class="lineno"> 3442</span>                          new_deg1, new_deg2);</div>
-<div class="line"><a name="l03443"></a><span class="lineno"> 3443</span>                                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03444"></a><span class="lineno"> 3444</span>                                         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"(%d, %d)-degree: Singular matrix"</span>, </div>
-<div class="line"><a name="l03445"></a><span class="lineno"> 3445</span>                          new_deg1, new_deg2);</div>
-<div class="line"><a name="l03446"></a><span class="lineno"> 3446</span>                     </div>
-<div class="line"><a name="l03447"></a><span class="lineno"> 3447</span>                     mse[new_deg1][new_deg2] = DBL_MAX/2; </div>
-<div class="line"><a name="l03448"></a><span class="lineno"> 3448</span>                 }</div>
-<div class="line"><a name="l03449"></a><span class="lineno"> 3449</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03450"></a><span class="lineno"> 3450</span>                 {</div>
-<div class="line"><a name="l03451"></a><span class="lineno"> 3451</span>                     assure( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l03452"></a><span class="lineno"> 3452</span>                         cpl_error_get_code(),</div>
-<div class="line"><a name="l03453"></a><span class="lineno"> 3453</span>                         <span class="stringliteral">"Error fitting (%d, %d)-degree polynomial"</span>, </div>
-<div class="line"><a name="l03454"></a><span class="lineno"> 3454</span>                         new_deg1, new_deg2 );</div>
-<div class="line"><a name="l03455"></a><span class="lineno"> 3455</span>                     </div>
-<div class="line"><a name="l03456"></a><span class="lineno"> 3456</span>                     rejected = cpl_table_get_nrow(t) - cpl_table_get_nrow(temp);</div>
-<div class="line"><a name="l03457"></a><span class="lineno"> 3457</span>                 </div>
-<div class="line"><a name="l03458"></a><span class="lineno"> 3458</span>                                     <span class="keywordflow">if</span> (verbose)</div>
-<div class="line"><a name="l03459"></a><span class="lineno"> 3459</span>                                         <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"(%d,%d)-degree: RMS = %.3g %s (%d/%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" outliers)"</span>,</div>
-<div class="line"><a name="l03460"></a><span class="lineno"> 3460</span>                                                      new_deg1, new_deg2, sqrt(mse[new_deg1][new_deg2]), y_unit,</div>
-<div class="line"><a name="l03461"></a><span class="lineno"> 3461</span>                                                      rejected, cpl_table_get_nrow(t));</div>
-<div class="line"><a name="l03462"></a><span class="lineno"> 3462</span>                                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03463"></a><span class="lineno"> 3463</span>                                         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"(%d,%d)-degree: RMS = %.3g %s (%d/%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" outliers)"</span>,</div>
-<div class="line"><a name="l03464"></a><span class="lineno"> 3464</span>                                                      new_deg1, new_deg2, sqrt(mse[new_deg1][new_deg2]), y_unit,</div>
-<div class="line"><a name="l03465"></a><span class="lineno"> 3465</span>                                                      rejected, cpl_table_get_nrow(t));</div>
-<div class="line"><a name="l03466"></a><span class="lineno"> 3466</span> </div>
-<div class="line"><a name="l03467"></a><span class="lineno"> 3467</span>                     <span class="comment">/* Reject if fit produced bad values */</span></div>
-<div class="line"><a name="l03468"></a><span class="lineno"> 3468</span>                     <span class="keywordflow">if</span> (min_val != NULL || max_val != NULL)</div>
-<div class="line"><a name="l03469"></a><span class="lineno"> 3469</span>                     {</div>
-<div class="line"><a name="l03470"></a><span class="lineno"> 3470</span>                         <span class="keywordflow">for</span> (i = 0; i < npos; i++)</div>
-<div class="line"><a name="l03471"></a><span class="lineno"> 3471</span>                         {</div>
-<div class="line"><a name="l03472"></a><span class="lineno"> 3472</span>                             <span class="keywordtype">double</span> val = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l03473"></a><span class="lineno"> 3473</span>                             bivariate_fit,</div>
-<div class="line"><a name="l03474"></a><span class="lineno"> 3474</span>                             positions[i][0], positions[i][1]);</div>
-<div class="line"><a name="l03475"></a><span class="lineno"> 3475</span>                             <span class="keywordflow">if</span> (min_val != NULL && val < *min_val)</div>
-<div class="line"><a name="l03476"></a><span class="lineno"> 3476</span>                             {</div>
-<div class="line"><a name="l03477"></a><span class="lineno"> 3477</span>                                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Bad fit: %f < %f"</span>, </div>
-<div class="line"><a name="l03478"></a><span class="lineno"> 3478</span>                                        val,</div>
-<div class="line"><a name="l03479"></a><span class="lineno"> 3479</span>                                        *min_val);</div>
-<div class="line"><a name="l03480"></a><span class="lineno"> 3480</span>                                 mse[new_deg1][new_deg2] = DBL_MAX/2; </div>
-<div class="line"><a name="l03481"></a><span class="lineno"> 3481</span>                                 <span class="comment">/* A large number, even if we add a bit */</span></div>
-<div class="line"><a name="l03482"></a><span class="lineno"> 3482</span>                             }</div>
-<div class="line"><a name="l03483"></a><span class="lineno"> 3483</span>                             <span class="keywordflow">if</span> (max_val != NULL && val > *max_val)</div>
-<div class="line"><a name="l03484"></a><span class="lineno"> 3484</span>                             {</div>
-<div class="line"><a name="l03485"></a><span class="lineno"> 3485</span>                                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Bad fit: %f > %f"</span>, </div>
-<div class="line"><a name="l03486"></a><span class="lineno"> 3486</span>                                        val,</div>
-<div class="line"><a name="l03487"></a><span class="lineno"> 3487</span>                                        *max_val);</div>
-<div class="line"><a name="l03488"></a><span class="lineno"> 3488</span>                                 mse[new_deg1][new_deg2] = DBL_MAX/2; </div>
-<div class="line"><a name="l03489"></a><span class="lineno"> 3489</span>                             }</div>
-<div class="line"><a name="l03490"></a><span class="lineno"> 3490</span>                         }</div>
-<div class="line"><a name="l03491"></a><span class="lineno"> 3491</span>                     }</div>
-<div class="line"><a name="l03492"></a><span class="lineno"> 3492</span>                 </div>
-<div class="line"><a name="l03493"></a><span class="lineno"> 3493</span>                     <span class="comment">/* For robustness, make sure that we don't accept a solution that</span></div>
-<div class="line"><a name="l03494"></a><span class="lineno"> 3494</span> <span class="comment">                       rejected too many points (say, 80%)</span></div>
-<div class="line"><a name="l03495"></a><span class="lineno"> 3495</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l03496"></a><span class="lineno"> 3496</span>                     <span class="keywordflow">if</span> (rejected >= (4*cpl_table_get_nrow(t))/5)</div>
-<div class="line"><a name="l03497"></a><span class="lineno"> 3497</span>                     {</div>
-<div class="line"><a name="l03498"></a><span class="lineno"> 3498</span>                         mse[new_deg1][new_deg2] = DBL_MAX/2; </div>
-<div class="line"><a name="l03499"></a><span class="lineno"> 3499</span>                     }</div>
-<div class="line"><a name="l03500"></a><span class="lineno"> 3500</span>                     </div>
-<div class="line"><a name="l03501"></a><span class="lineno"> 3501</span>                 }<span class="comment">/* if fit succeeded */</span></div>
-<div class="line"><a name="l03502"></a><span class="lineno"> 3502</span>             }</div>
-<div class="line"><a name="l03503"></a><span class="lineno"> 3503</span>         </div>
-<div class="line"><a name="l03504"></a><span class="lineno"> 3504</span>         <span class="comment">/* If fit is significantly better (say, 10% improvement in MSE) in either direction, </span></div>
-<div class="line"><a name="l03505"></a><span class="lineno"> 3505</span> <span class="comment">         * (in (degree,degree)-space) then move in that direction.</span></div>
-<div class="line"><a name="l03506"></a><span class="lineno"> 3506</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l03507"></a><span class="lineno"> 3507</span> <span class="comment">         * First try to move one step horizontal/vertical, </span></div>
-<div class="line"><a name="l03508"></a><span class="lineno"> 3508</span> <span class="comment">         * otherwise try to move diagonally (i.e. increase both degrees),</span></div>
-<div class="line"><a name="l03509"></a><span class="lineno"> 3509</span> <span class="comment">         * otherwise move two steps horizontal/vertical</span></div>
-<div class="line"><a name="l03510"></a><span class="lineno"> 3510</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l03511"></a><span class="lineno"> 3511</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l03512"></a><span class="lineno"> 3512</span>         m = mse[deg1][deg2];</div>
-<div class="line"><a name="l03513"></a><span class="lineno"> 3513</span> </div>
-<div class="line"><a name="l03514"></a><span class="lineno"> 3514</span>         <span class="keywordflow">if</span>      (adjust1                              </div>
-<div class="line"><a name="l03515"></a><span class="lineno"> 3515</span>              && (m - mse[deg1+1][deg2])/m > 0.1</div>
-<div class="line"><a name="l03516"></a><span class="lineno"> 3516</span>              && (!adjust2 || mse[deg1+1][deg2] <= mse[deg1][deg2+1])</div>
-<div class="line"><a name="l03517"></a><span class="lineno"> 3517</span>              <span class="comment">/* The condition is read like this:</span></div>
-<div class="line"><a name="l03518"></a><span class="lineno"> 3518</span> <span class="comment">            if </span></div>
-<div class="line"><a name="l03519"></a><span class="lineno"> 3519</span> <span class="comment">            - we are trying to move right, and</span></div>
-<div class="line"><a name="l03520"></a><span class="lineno"> 3520</span> <span class="comment">            - this is this is a better place than the current, and</span></div>
-<div class="line"><a name="l03521"></a><span class="lineno"> 3521</span> <span class="comment">                - this is better than moving down */</span></div>
-<div class="line"><a name="l03522"></a><span class="lineno"> 3522</span>         )</div>
-<div class="line"><a name="l03523"></a><span class="lineno"> 3523</span>         {</div>
-<div class="line"><a name="l03524"></a><span class="lineno"> 3524</span>             deg1++;</div>
-<div class="line"><a name="l03525"></a><span class="lineno"> 3525</span>             finished = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03526"></a><span class="lineno"> 3526</span>         }</div>
-<div class="line"><a name="l03527"></a><span class="lineno"> 3527</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (adjust2 &&</div>
-<div class="line"><a name="l03528"></a><span class="lineno"> 3528</span>              (m - mse[deg1][deg2+1])/m > 0.1</div>
-<div class="line"><a name="l03529"></a><span class="lineno"> 3529</span>              && (!adjust1 || mse[deg1+1][deg2] > mse[deg1][deg2+1])</div>
-<div class="line"><a name="l03530"></a><span class="lineno"> 3530</span>         )</div>
-<div class="line"><a name="l03531"></a><span class="lineno"> 3531</span>         {</div>
-<div class="line"><a name="l03532"></a><span class="lineno"> 3532</span>             deg2++;</div>
-<div class="line"><a name="l03533"></a><span class="lineno"> 3533</span>             finished = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03534"></a><span class="lineno"> 3534</span>         }</div>
-<div class="line"><a name="l03535"></a><span class="lineno"> 3535</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (adjust1 && adjust2 && (m - mse[deg1+1][deg2+1])/m > 0.1)</div>
-<div class="line"><a name="l03536"></a><span class="lineno"> 3536</span>         {</div>
-<div class="line"><a name="l03537"></a><span class="lineno"> 3537</span>             deg1++;</div>
-<div class="line"><a name="l03538"></a><span class="lineno"> 3538</span>             deg2++;</div>
-<div class="line"><a name="l03539"></a><span class="lineno"> 3539</span>             finished = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03540"></a><span class="lineno"> 3540</span>         }</div>
-<div class="line"><a name="l03541"></a><span class="lineno"> 3541</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (adjust1</div>
-<div class="line"><a name="l03542"></a><span class="lineno"> 3542</span>              && (m - mse[deg1+2][deg2])/m > 0.1</div>
-<div class="line"><a name="l03543"></a><span class="lineno"> 3543</span>              && (!adjust2 || mse[deg1+2][deg2] <= mse[deg1][deg2+2])</div>
-<div class="line"><a name="l03544"></a><span class="lineno"> 3544</span>         )</div>
-<div class="line"><a name="l03545"></a><span class="lineno"> 3545</span>         {</div>
-<div class="line"><a name="l03546"></a><span class="lineno"> 3546</span>             deg1 += 2;</div>
-<div class="line"><a name="l03547"></a><span class="lineno"> 3547</span>             finished = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03548"></a><span class="lineno"> 3548</span>         }</div>
-<div class="line"><a name="l03549"></a><span class="lineno"> 3549</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (adjust2 </div>
-<div class="line"><a name="l03550"></a><span class="lineno"> 3550</span>              && (m - mse[deg1][deg2+2])/m > 0.1</div>
-<div class="line"><a name="l03551"></a><span class="lineno"> 3551</span>              && (!adjust1 || mse[deg1+2][deg2] < mse[deg1][deg2+2]))</div>
-<div class="line"><a name="l03552"></a><span class="lineno"> 3552</span>         {</div>
-<div class="line"><a name="l03553"></a><span class="lineno"> 3553</span>             deg2 += 2;</div>
-<div class="line"><a name="l03554"></a><span class="lineno"> 3554</span>             finished = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l03555"></a><span class="lineno"> 3555</span>         }</div>
-<div class="line"><a name="l03556"></a><span class="lineno"> 3556</span> </div>
-<div class="line"><a name="l03557"></a><span class="lineno"> 3557</span>         <span class="comment">/* For efficiency, stop if rms reached min_rms */</span>   </div>
-<div class="line"><a name="l03558"></a><span class="lineno"> 3558</span>         finished = finished || (sqrt(mse[deg1][deg2]) < min_rms);</div>
-<div class="line"><a name="l03559"></a><span class="lineno"> 3559</span> </div>
-<div class="line"><a name="l03560"></a><span class="lineno"> 3560</span>     } <span class="keywordflow">while</span> (!finished);</div>
-<div class="line"><a name="l03561"></a><span class="lineno"> 3561</span> </div>
-<div class="line"><a name="l03562"></a><span class="lineno"> 3562</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&bivariate_fit);</div>
-<div class="line"><a name="l03563"></a><span class="lineno"> 3563</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( bivariate_fit = <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(t,</div>
-<div class="line"><a name="l03564"></a><span class="lineno"> 3564</span>                              X1, X2, Y, sigmaY,</div>
-<div class="line"><a name="l03565"></a><span class="lineno"> 3565</span>                              deg1,</div>
-<div class="line"><a name="l03566"></a><span class="lineno"> 3566</span>                              deg2,</div>
-<div class="line"><a name="l03567"></a><span class="lineno"> 3567</span>                              polynomial_fit, residual_square, </div>
-<div class="line"><a name="l03568"></a><span class="lineno"> 3568</span>                              variance_fit,</div>
-<div class="line"><a name="l03569"></a><span class="lineno"> 3569</span>                              mean_squared_error, red_chisq,</div>
-<div class="line"><a name="l03570"></a><span class="lineno"> 3570</span>                              variance, kappa, min_reject),</div>
-<div class="line"><a name="l03571"></a><span class="lineno"> 3571</span>        <span class="stringliteral">"Error fitting (%d, %d)-degree polynomial"</span>, deg1, deg2);</div>
-<div class="line"><a name="l03572"></a><span class="lineno"> 3572</span> </div>
-<div class="line"><a name="l03573"></a><span class="lineno"> 3573</span>     <span class="keywordflow">if</span> (verbose)</div>
-<div class="line"><a name="l03574"></a><span class="lineno"> 3574</span>         <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using degree (%d, %d), RMS = %.3g %s"</span>, deg1, deg2, </div>
-<div class="line"><a name="l03575"></a><span class="lineno"> 3575</span>                      sqrt(mse[deg1][deg2]), y_unit);</div>
-<div class="line"><a name="l03576"></a><span class="lineno"> 3576</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03577"></a><span class="lineno"> 3577</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Using degree (%d, %d), RMS = %.3g %s"</span>, deg1, deg2, </div>
-<div class="line"><a name="l03578"></a><span class="lineno"> 3578</span>                      sqrt(mse[deg1][deg2]), y_unit);</div>
-<div class="line"><a name="l03579"></a><span class="lineno"> 3579</span>     </div>
-<div class="line"><a name="l03580"></a><span class="lineno"> 3580</span>   cleanup:</div>
-<div class="line"><a name="l03581"></a><span class="lineno"> 3581</span>     <span class="keywordflow">if</span> (mse != NULL)</div>
-<div class="line"><a name="l03582"></a><span class="lineno"> 3582</span>     {</div>
-<div class="line"><a name="l03583"></a><span class="lineno"> 3583</span>         <span class="keywordflow">for</span> (i = 0; i < maxdeg1+1; i++)</div>
-<div class="line"><a name="l03584"></a><span class="lineno"> 3584</span>         {</div>
-<div class="line"><a name="l03585"></a><span class="lineno"> 3585</span>             <span class="keywordflow">if</span> (mse[i] != NULL)</div>
-<div class="line"><a name="l03586"></a><span class="lineno"> 3586</span>             {</div>
-<div class="line"><a name="l03587"></a><span class="lineno"> 3587</span>                 cpl_free(mse[i]);</div>
-<div class="line"><a name="l03588"></a><span class="lineno"> 3588</span>             }</div>
-<div class="line"><a name="l03589"></a><span class="lineno"> 3589</span>         }</div>
-<div class="line"><a name="l03590"></a><span class="lineno"> 3590</span>         cpl_free(mse);</div>
-<div class="line"><a name="l03591"></a><span class="lineno"> 3591</span>     }</div>
-<div class="line"><a name="l03592"></a><span class="lineno"> 3592</span>     uves_free_table(&temp);</div>
-<div class="line"><a name="l03593"></a><span class="lineno"> 3593</span>     </div>
-<div class="line"><a name="l03594"></a><span class="lineno"> 3594</span>     <span class="keywordflow">return</span> bivariate_fit;    </div>
-<div class="line"><a name="l03595"></a><span class="lineno"> 3595</span> }</div>
-<div class="line"><a name="l03596"></a><span class="lineno"> 3596</span> </div>
-<div class="line"><a name="l03597"></a><span class="lineno"> 3597</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03607"></a><span class="lineno"> 3607</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03608"></a><span class="lineno"> 3608</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l03609"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4"> 3609</a></span> <a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *s, <span class="keyword">const</span> <span class="keywordtype">char</span> *prefix)</div>
-<div class="line"><a name="l03610"></a><span class="lineno"> 3610</span> {</div>
-<div class="line"><a name="l03611"></a><span class="lineno"> 3611</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *result = NULL;</div>
-<div class="line"><a name="l03612"></a><span class="lineno"> 3612</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> prefix_length;</div>
-<div class="line"><a name="l03613"></a><span class="lineno"> 3613</span> </div>
-<div class="line"><a name="l03614"></a><span class="lineno"> 3614</span>     assure( s != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null string"</span>);</div>
-<div class="line"><a name="l03615"></a><span class="lineno"> 3615</span>     assure( prefix != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null string"</span>);</div>
-<div class="line"><a name="l03616"></a><span class="lineno"> 3616</span> </div>
-<div class="line"><a name="l03617"></a><span class="lineno"> 3617</span>     prefix_length = strlen(prefix);</div>
-<div class="line"><a name="l03618"></a><span class="lineno"> 3618</span> </div>
-<div class="line"><a name="l03619"></a><span class="lineno"> 3619</span>     assure( strlen(s) >= prefix_length &&</div>
-<div class="line"><a name="l03620"></a><span class="lineno"> 3620</span>         strncmp(s, prefix, prefix_length) == 0,</div>
-<div class="line"><a name="l03621"></a><span class="lineno"> 3621</span>         CPL_ERROR_INCOMPATIBLE_INPUT, <span class="stringliteral">"'%s' is not a prefix of '%s'"</span>,</div>
-<div class="line"><a name="l03622"></a><span class="lineno"> 3622</span>         prefix, s);</div>
-<div class="line"><a name="l03623"></a><span class="lineno"> 3623</span>     </div>
-<div class="line"><a name="l03624"></a><span class="lineno"> 3624</span>     result = s + prefix_length;</div>
-<div class="line"><a name="l03625"></a><span class="lineno"> 3625</span>     </div>
-<div class="line"><a name="l03626"></a><span class="lineno"> 3626</span>   cleanup:</div>
-<div class="line"><a name="l03627"></a><span class="lineno"> 3627</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l03628"></a><span class="lineno"> 3628</span> }</div>
-<div class="line"><a name="l03629"></a><span class="lineno"> 3629</span> </div>
-<div class="line"><a name="l03630"></a><span class="lineno"> 3630</span> </div>
-<div class="line"><a name="l03631"></a><span class="lineno"> 3631</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03640"></a><span class="lineno"> 3640</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03641"></a><span class="lineno"> 3641</span> </div>
-<div class="line"><a name="l03642"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga81ac7cec9a26af57d8e43728c004a072"> 3642</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils.html#ga81ac7cec9a26af57d8e43728c004a072" title="Pseudo-random gaussian distributed number.">uves_gaussrand</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l03643"></a><span class="lineno"> 3643</span> {</div>
-<div class="line"><a name="l03644"></a><span class="lineno"> 3644</span>     <span class="keyword">static</span> <span class="keywordtype">double</span> V1, V2, S;</div>
-<div class="line"><a name="l03645"></a><span class="lineno"> 3645</span>     <span class="keyword">static</span> <span class="keywordtype">int</span> phase = 0;</div>
-<div class="line"><a name="l03646"></a><span class="lineno"> 3646</span>     <span class="keywordtype">double</span> X;</div>
-<div class="line"><a name="l03647"></a><span class="lineno"> 3647</span>     </div>
-<div class="line"><a name="l03648"></a><span class="lineno"> 3648</span>     <span class="keywordflow">if</span>(phase == 0) {</div>
-<div class="line"><a name="l03649"></a><span class="lineno"> 3649</span>     <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l03650"></a><span class="lineno"> 3650</span>         <span class="keywordtype">double</span> U1 = (double)rand() / RAND_MAX;</div>
-<div class="line"><a name="l03651"></a><span class="lineno"> 3651</span>         <span class="keywordtype">double</span> U2 = (double)rand() / RAND_MAX;</div>
-<div class="line"><a name="l03652"></a><span class="lineno"> 3652</span>         </div>
-<div class="line"><a name="l03653"></a><span class="lineno"> 3653</span>         V1 = 2 * U1 - 1;</div>
-<div class="line"><a name="l03654"></a><span class="lineno"> 3654</span>         V2 = 2 * U2 - 1;</div>
-<div class="line"><a name="l03655"></a><span class="lineno"> 3655</span>         S = V1 * V1 + V2 * V2;</div>
-<div class="line"><a name="l03656"></a><span class="lineno"> 3656</span>     } <span class="keywordflow">while</span>(S >= 1 || S == 0);</div>
-<div class="line"><a name="l03657"></a><span class="lineno"> 3657</span>     </div>
-<div class="line"><a name="l03658"></a><span class="lineno"> 3658</span>     X = V1 * sqrt(-2 * log(S) / S);</div>
-<div class="line"><a name="l03659"></a><span class="lineno"> 3659</span>     } <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03660"></a><span class="lineno"> 3660</span>     X = V2 * sqrt(-2 * log(S) / S);</div>
-<div class="line"><a name="l03661"></a><span class="lineno"> 3661</span>     </div>
-<div class="line"><a name="l03662"></a><span class="lineno"> 3662</span>     phase = 1 - phase;</div>
-<div class="line"><a name="l03663"></a><span class="lineno"> 3663</span>     </div>
-<div class="line"><a name="l03664"></a><span class="lineno"> 3664</span>     <span class="keywordflow">return</span> X;</div>
-<div class="line"><a name="l03665"></a><span class="lineno"> 3665</span> }</div>
-<div class="line"><a name="l03666"></a><span class="lineno"> 3666</span> </div>
-<div class="line"><a name="l03667"></a><span class="lineno"> 3667</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03678"></a><span class="lineno"> 3678</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03679"></a><span class="lineno"> 3679</span> </div>
-<div class="line"><a name="l03680"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga182ae551020b196be2e177c09f16b220"> 3680</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils.html#ga182ae551020b196be2e177c09f16b220" title="Spline interpolation based on Hermite polynomials.">uves_spline_hermite_table</a>( <span class="keywordtype">double</span> xp, <span class="keyword">const</span> cpl_table *t, <span class="keyword">c [...]
-<div class="line"><a name="l03681"></a><span class="lineno"> 3681</span>                 <span class="keyword">const</span> <span class="keywordtype">char</span> *column_y, <span class="keywordtype">int</span> *istart )</div>
-<div class="line"><a name="l03682"></a><span class="lineno"> 3682</span> {</div>
-<div class="line"><a name="l03683"></a><span class="lineno"> 3683</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l03684"></a><span class="lineno"> 3684</span>     <span class="keywordtype">int</span> n;</div>
-<div class="line"><a name="l03685"></a><span class="lineno"> 3685</span> </div>
-<div class="line"><a name="l03686"></a><span class="lineno"> 3686</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *x, *y;</div>
-<div class="line"><a name="l03687"></a><span class="lineno"> 3687</span>     </div>
-<div class="line"><a name="l03688"></a><span class="lineno"> 3688</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( x = cpl_table_get_data_double_const(t, column_x),</div>
-<div class="line"><a name="l03689"></a><span class="lineno"> 3689</span>        <span class="stringliteral">"Error reading column '%s'"</span>, column_x);</div>
-<div class="line"><a name="l03690"></a><span class="lineno"> 3690</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( y = cpl_table_get_data_double_const(t, column_y),</div>
-<div class="line"><a name="l03691"></a><span class="lineno"> 3691</span>        <span class="stringliteral">"Error reading column '%s'"</span>, column_y);</div>
-<div class="line"><a name="l03692"></a><span class="lineno"> 3692</span> </div>
-<div class="line"><a name="l03693"></a><span class="lineno"> 3693</span>     n = cpl_table_get_nrow(t);</div>
-<div class="line"><a name="l03694"></a><span class="lineno"> 3694</span> </div>
-<div class="line"><a name="l03695"></a><span class="lineno"> 3695</span>     result = <a class="code" href="group__uves__utils.html#gaa3c7eb6c7f122eb98af78d5cab6cb122" title="Spline interpolation based on Hermite polynomials.">uves_spline_hermite</a>(xp, x, y, n, istart);</div>
-<div class="line"><a name="l03696"></a><span class="lineno"> 3696</span> </div>
-<div class="line"><a name="l03697"></a><span class="lineno"> 3697</span>   cleanup:</div>
-<div class="line"><a name="l03698"></a><span class="lineno"> 3698</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l03699"></a><span class="lineno"> 3699</span> }</div>
-<div class="line"><a name="l03700"></a><span class="lineno"> 3700</span> </div>
-<div class="line"><a name="l03701"></a><span class="lineno"> 3701</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03717"></a><span class="lineno"> 3717</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03718"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gaa3c7eb6c7f122eb98af78d5cab6cb122"> 3718</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils.html#gaa3c7eb6c7f122eb98af78d5cab6cb122" title="Spline interpolation based on Hermite polynomials.">uves_spline_hermite</a>( <span class="keywordtype">double</span> xp, <span class="keyword">const</span> <span class="keywordtype">double</span> *x, [...]
-<div class="line"><a name="l03719"></a><span class="lineno"> 3719</span> {</div>
-<div class="line"><a name="l03720"></a><span class="lineno"> 3720</span>     <span class="keywordtype">double</span> yp1, yp2, yp = 0;</div>
-<div class="line"><a name="l03721"></a><span class="lineno"> 3721</span>     <span class="keywordtype">double</span> xpi, xpi1, l1, l2, lp1, lp2;</div>
-<div class="line"><a name="l03722"></a><span class="lineno"> 3722</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03723"></a><span class="lineno"> 3723</span> </div>
-<div class="line"><a name="l03724"></a><span class="lineno"> 3724</span>     <span class="keywordflow">if</span> ( x[0] <= x[n-1] && (xp < x[0] || xp > x[n-1]) )    <span class="keywordflow">return</span> 0.0;</div>
-<div class="line"><a name="l03725"></a><span class="lineno"> 3725</span>     <span class="keywordflow">if</span> ( x[0] >  x[n-1] && (xp > x[0] || xp < x[n-1]) )    <span class="keywordflow">return</span> 0.0;</div>
-<div class="line"><a name="l03726"></a><span class="lineno"> 3726</span> </div>
-<div class="line"><a name="l03727"></a><span class="lineno"> 3727</span>     <span class="keywordflow">if</span> ( x[0] <= x[n-1] )</div>
-<div class="line"><a name="l03728"></a><span class="lineno"> 3728</span>     {</div>
-<div class="line"><a name="l03729"></a><span class="lineno"> 3729</span>         <span class="keywordflow">for</span> ( i = (*istart)+1; i <= n && xp >= x[i-1]; i++ )</div>
-<div class="line"><a name="l03730"></a><span class="lineno"> 3730</span>         ;</div>
-<div class="line"><a name="l03731"></a><span class="lineno"> 3731</span>     }</div>
-<div class="line"><a name="l03732"></a><span class="lineno"> 3732</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03733"></a><span class="lineno"> 3733</span>     {</div>
-<div class="line"><a name="l03734"></a><span class="lineno"> 3734</span>         <span class="keywordflow">for</span> ( i = (*istart)+1; i <= n && xp <= x[i-1]; i++ )</div>
-<div class="line"><a name="l03735"></a><span class="lineno"> 3735</span>         ;</div>
-<div class="line"><a name="l03736"></a><span class="lineno"> 3736</span>     }</div>
-<div class="line"><a name="l03737"></a><span class="lineno"> 3737</span> </div>
-<div class="line"><a name="l03738"></a><span class="lineno"> 3738</span>     *istart = i;</div>
-<div class="line"><a name="l03739"></a><span class="lineno"> 3739</span>     i--;</div>
-<div class="line"><a name="l03740"></a><span class="lineno"> 3740</span>     </div>
-<div class="line"><a name="l03741"></a><span class="lineno"> 3741</span>     lp1 = 1.0 / (x[i-1] - x[i]);</div>
-<div class="line"><a name="l03742"></a><span class="lineno"> 3742</span>     lp2 = -lp1;</div>
-<div class="line"><a name="l03743"></a><span class="lineno"> 3743</span> </div>
-<div class="line"><a name="l03744"></a><span class="lineno"> 3744</span>     <span class="keywordflow">if</span> ( i == 1 )</div>
-<div class="line"><a name="l03745"></a><span class="lineno"> 3745</span>     {</div>
-<div class="line"><a name="l03746"></a><span class="lineno"> 3746</span>         yp1 = (y[1] - y[0]) / (x[1] - x[0]);</div>
-<div class="line"><a name="l03747"></a><span class="lineno"> 3747</span>     }</div>
-<div class="line"><a name="l03748"></a><span class="lineno"> 3748</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03749"></a><span class="lineno"> 3749</span>     {</div>
-<div class="line"><a name="l03750"></a><span class="lineno"> 3750</span>         yp1 = (y[i] - y[i-2]) / (x[i] - x[i-2]);</div>
-<div class="line"><a name="l03751"></a><span class="lineno"> 3751</span>     }</div>
-<div class="line"><a name="l03752"></a><span class="lineno"> 3752</span> </div>
-<div class="line"><a name="l03753"></a><span class="lineno"> 3753</span>     <span class="keywordflow">if</span> ( i >= n - 1 )</div>
-<div class="line"><a name="l03754"></a><span class="lineno"> 3754</span>     {</div>
-<div class="line"><a name="l03755"></a><span class="lineno"> 3755</span>         yp2 = (y[n-1] - y[n-2]) / (x[n-1] - x[n-2]);</div>
-<div class="line"><a name="l03756"></a><span class="lineno"> 3756</span>     }</div>
-<div class="line"><a name="l03757"></a><span class="lineno"> 3757</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03758"></a><span class="lineno"> 3758</span>     {</div>
-<div class="line"><a name="l03759"></a><span class="lineno"> 3759</span>         yp2 = (y[i+1] - y[i-1]) / (x[i+1] - x[i-1]);</div>
-<div class="line"><a name="l03760"></a><span class="lineno"> 3760</span>     }</div>
-<div class="line"><a name="l03761"></a><span class="lineno"> 3761</span> </div>
-<div class="line"><a name="l03762"></a><span class="lineno"> 3762</span>     xpi1 = xp - x[i];</div>
-<div class="line"><a name="l03763"></a><span class="lineno"> 3763</span>     xpi  = xp - x[i-1];</div>
-<div class="line"><a name="l03764"></a><span class="lineno"> 3764</span>     l1   = xpi1*lp1;</div>
-<div class="line"><a name="l03765"></a><span class="lineno"> 3765</span>     l2   = xpi*lp2;</div>
-<div class="line"><a name="l03766"></a><span class="lineno"> 3766</span> </div>
-<div class="line"><a name="l03767"></a><span class="lineno"> 3767</span>     yp = y[i-1]*(1 - 2.0*lp1*xpi)*l1*l1 + </div>
-<div class="line"><a name="l03768"></a><span class="lineno"> 3768</span>          y[i]*(1 - 2.0*lp2*xpi1)*l2*l2 + </div>
-<div class="line"><a name="l03769"></a><span class="lineno"> 3769</span>          yp1*xpi*l1*l1 + yp2*xpi1*l2*l2;</div>
-<div class="line"><a name="l03770"></a><span class="lineno"> 3770</span> </div>
-<div class="line"><a name="l03771"></a><span class="lineno"> 3771</span>     <span class="keywordflow">return</span> yp;</div>
-<div class="line"><a name="l03772"></a><span class="lineno"> 3772</span> }</div>
-<div class="line"><a name="l03773"></a><span class="lineno"> 3773</span> </div>
-<div class="line"><a name="l03774"></a><span class="lineno"> 3774</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03788"></a><span class="lineno"> 3788</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03789"></a><span class="lineno"> 3789</span> </div>
-<div class="line"><a name="l03790"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gac567d2b17fd517da5e872f292c203339"> 3790</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils.html#gac567d2b17fd517da5e872f292c203339" title="Natural cubic-spline interpolation.">uves_spline_cubic</a>( <span class="keywordtype">double</span> xp, <span class="keywordtype">double</span> *x, <span class="keywordtype">float</span> *y, <span cl [...]
-<div class="line"><a name="l03791"></a><span class="lineno"> 3791</span> {</div>
-<div class="line"><a name="l03792"></a><span class="lineno"> 3792</span>     <span class="keywordtype">int</span> klo, khi, k;</div>
-<div class="line"><a name="l03793"></a><span class="lineno"> 3793</span>     <span class="keywordtype">double</span> a, b, h, yp = 0;</div>
-<div class="line"><a name="l03794"></a><span class="lineno"> 3794</span> </div>
-<div class="line"><a name="l03795"></a><span class="lineno"> 3795</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( x  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03796"></a><span class="lineno"> 3796</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( y  != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03797"></a><span class="lineno"> 3797</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( y2 != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03798"></a><span class="lineno"> 3798</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( kstart != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l03799"></a><span class="lineno"> 3799</span> </div>
-<div class="line"><a name="l03800"></a><span class="lineno"> 3800</span>     klo = *kstart;</div>
-<div class="line"><a name="l03801"></a><span class="lineno"> 3801</span>     khi = n;</div>
-<div class="line"><a name="l03802"></a><span class="lineno"> 3802</span> </div>
-<div class="line"><a name="l03803"></a><span class="lineno"> 3803</span>     <span class="keywordflow">if</span> ( xp < x[1] || xp > x[n] )</div>
-<div class="line"><a name="l03804"></a><span class="lineno"> 3804</span>     {</div>
-<div class="line"><a name="l03805"></a><span class="lineno"> 3805</span>         <span class="keywordflow">return</span> 0.0;</div>
-<div class="line"><a name="l03806"></a><span class="lineno"> 3806</span>     }</div>
-<div class="line"><a name="l03807"></a><span class="lineno"> 3807</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( xp == x[1] )</div>
-<div class="line"><a name="l03808"></a><span class="lineno"> 3808</span>     {</div>
-<div class="line"><a name="l03809"></a><span class="lineno"> 3809</span>         <span class="keywordflow">return</span>(y[1]);</div>
-<div class="line"><a name="l03810"></a><span class="lineno"> 3810</span>     }</div>
-<div class="line"><a name="l03811"></a><span class="lineno"> 3811</span>     </div>
-<div class="line"><a name="l03812"></a><span class="lineno"> 3812</span>     <span class="keywordflow">for</span> ( k = klo; k < n && xp > x[k]; k++ )</div>
-<div class="line"><a name="l03813"></a><span class="lineno"> 3813</span>     ;</div>
-<div class="line"><a name="l03814"></a><span class="lineno"> 3814</span> </div>
-<div class="line"><a name="l03815"></a><span class="lineno"> 3815</span>     klo = *kstart = k-1;</div>
-<div class="line"><a name="l03816"></a><span class="lineno"> 3816</span>     khi = k;</div>
-<div class="line"><a name="l03817"></a><span class="lineno"> 3817</span> </div>
-<div class="line"><a name="l03818"></a><span class="lineno"> 3818</span>     h = x[khi] - x[klo];</div>
-<div class="line"><a name="l03819"></a><span class="lineno"> 3819</span>     assure( h != 0.0, CPL_ERROR_DIVISION_BY_ZERO,</div>
-<div class="line"><a name="l03820"></a><span class="lineno"> 3820</span>         <span class="stringliteral">"Empty x-value range: xlo = %e ; xhi = %e"</span>, x[khi], x[klo]);</div>
-<div class="line"><a name="l03821"></a><span class="lineno"> 3821</span> </div>
-<div class="line"><a name="l03822"></a><span class="lineno"> 3822</span>     a = (x[khi] - xp) / h;</div>
-<div class="line"><a name="l03823"></a><span class="lineno"> 3823</span>     b = (xp - x[klo]) / h;</div>
-<div class="line"><a name="l03824"></a><span class="lineno"> 3824</span> </div>
-<div class="line"><a name="l03825"></a><span class="lineno"> 3825</span>     yp = a*y[klo] + b*y[khi] + ((a*a*a - a)*y2[klo] + (b*b*b - b)*y2[khi])*</div>
-<div class="line"><a name="l03826"></a><span class="lineno"> 3826</span>      (h*h) / 6.0;</div>
-<div class="line"><a name="l03827"></a><span class="lineno"> 3827</span> </div>
-<div class="line"><a name="l03828"></a><span class="lineno"> 3828</span>   cleanup:</div>
-<div class="line"><a name="l03829"></a><span class="lineno"> 3829</span>     <span class="keywordflow">return</span> yp;</div>
-<div class="line"><a name="l03830"></a><span class="lineno"> 3830</span> }</div>
-<div class="line"><a name="l03831"></a><span class="lineno"> 3831</span> </div>
-<div class="line"><a name="l03832"></a><span class="lineno"> 3832</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03842"></a><span class="lineno"> 3842</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03843"></a><span class="lineno"> 3843</span> <span class="keywordtype">bool</span></div>
-<div class="line"><a name="l03844"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gafe2dc57751c934dd70ebc93c0e25ee18"> 3844</a></span> <a class="code" href="group__uves__utils.html#gafe2dc57751c934dd70ebc93c0e25ee18" title="Determine if a table is sorted.">uves_table_is_sorted_double</a>(<span class="keyword">const</span> cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column, <span class="keyword">const</span> <span cl [...]
-<div class="line"><a name="l03845"></a><span class="lineno"> 3845</span> {</div>
-<div class="line"><a name="l03846"></a><span class="lineno"> 3846</span>     <span class="keywordtype">bool</span> is_sorted = <span class="keyword">true</span>;       <span class="comment">/* ... until proven false */</span></div>
-<div class="line"><a name="l03847"></a><span class="lineno"> 3847</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l03848"></a><span class="lineno"> 3848</span>     <span class="keywordtype">int</span> N;</div>
-<div class="line"><a name="l03849"></a><span class="lineno"> 3849</span>     <span class="keywordtype">double</span> previous, current;    <span class="comment">/* column values */</span></div>
-<div class="line"><a name="l03850"></a><span class="lineno"> 3850</span> </div>
-<div class="line"><a name="l03851"></a><span class="lineno"> 3851</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(t != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03852"></a><span class="lineno"> 3852</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(cpl_table_has_column(t, column), <span class="stringliteral">"No column '%s'"</span>, column);</div>
-<div class="line"><a name="l03853"></a><span class="lineno"> 3853</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(cpl_table_get_column_type(t, column) == CPL_TYPE_DOUBLE, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l03854"></a><span class="lineno"> 3854</span>     </div>
-<div class="line"><a name="l03855"></a><span class="lineno"> 3855</span>     N = cpl_table_get_nrow(t);</div>
-<div class="line"><a name="l03856"></a><span class="lineno"> 3856</span> </div>
-<div class="line"><a name="l03857"></a><span class="lineno"> 3857</span>     <span class="keywordflow">if</span> (N > 1) </div>
-<div class="line"><a name="l03858"></a><span class="lineno"> 3858</span>     {</div>
-<div class="line"><a name="l03859"></a><span class="lineno"> 3859</span>         previous = cpl_table_get_double(t, column, 0, NULL);</div>
-<div class="line"><a name="l03860"></a><span class="lineno"> 3860</span>         </div>
-<div class="line"><a name="l03861"></a><span class="lineno"> 3861</span>         <span class="keywordflow">for</span>(i = 1; i < N && is_sorted; i++)</div>
-<div class="line"><a name="l03862"></a><span class="lineno"> 3862</span>         {</div>
-<div class="line"><a name="l03863"></a><span class="lineno"> 3863</span>             current = cpl_table_get_double(t, column, i, NULL);</div>
-<div class="line"><a name="l03864"></a><span class="lineno"> 3864</span>             <span class="keywordflow">if</span> (!reverse)</div>
-<div class="line"><a name="l03865"></a><span class="lineno"> 3865</span>             {</div>
-<div class="line"><a name="l03866"></a><span class="lineno"> 3866</span>                 <span class="comment">/* Check for ascending */</span></div>
-<div class="line"><a name="l03867"></a><span class="lineno"> 3867</span>                 is_sorted = is_sorted && ( current >= previous );</div>
-<div class="line"><a name="l03868"></a><span class="lineno"> 3868</span>             }</div>
-<div class="line"><a name="l03869"></a><span class="lineno"> 3869</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03870"></a><span class="lineno"> 3870</span>             {</div>
-<div class="line"><a name="l03871"></a><span class="lineno"> 3871</span>                 <span class="comment">/* Check for descending */</span></div>
-<div class="line"><a name="l03872"></a><span class="lineno"> 3872</span>                 is_sorted = is_sorted && ( current <= previous );</div>
-<div class="line"><a name="l03873"></a><span class="lineno"> 3873</span>             }</div>
-<div class="line"><a name="l03874"></a><span class="lineno"> 3874</span>             </div>
-<div class="line"><a name="l03875"></a><span class="lineno"> 3875</span>             previous = current;</div>
-<div class="line"><a name="l03876"></a><span class="lineno"> 3876</span>         }</div>
-<div class="line"><a name="l03877"></a><span class="lineno"> 3877</span>     }</div>
-<div class="line"><a name="l03878"></a><span class="lineno"> 3878</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03879"></a><span class="lineno"> 3879</span>     {</div>
-<div class="line"><a name="l03880"></a><span class="lineno"> 3880</span>         <span class="comment">/* 0 or 1 rows. Table is sorted */</span>        </div>
-<div class="line"><a name="l03881"></a><span class="lineno"> 3881</span>     }</div>
-<div class="line"><a name="l03882"></a><span class="lineno"> 3882</span>     </div>
-<div class="line"><a name="l03883"></a><span class="lineno"> 3883</span>   cleanup:</div>
-<div class="line"><a name="l03884"></a><span class="lineno"> 3884</span>     <span class="keywordflow">return</span> is_sorted;</div>
-<div class="line"><a name="l03885"></a><span class="lineno"> 3885</span> }</div>
-<div class="line"><a name="l03886"></a><span class="lineno"> 3886</span> </div>
-<div class="line"><a name="l03887"></a><span class="lineno"> 3887</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03893"></a><span class="lineno"> 3893</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03894"></a><span class="lineno"> 3894</span> cpl_table *</div>
-<div class="line"><a name="l03895"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga5498ccadef9be3eee6cfacfac75c7478"> 3895</a></span> <a class="code" href="group__uves__utils.html#ga5498ccadef9be3eee6cfacfac75c7478" title="Create the table that describes fibre traces.">uves_ordertable_traces_new</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l03896"></a><span class="lineno"> 3896</span> {</div>
-<div class="line"><a name="l03897"></a><span class="lineno"> 3897</span>     cpl_table *result = NULL;</div>
-<div class="line"><a name="l03898"></a><span class="lineno"> 3898</span>     </div>
-<div class="line"><a name="l03899"></a><span class="lineno"> 3899</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>((</div>
-<div class="line"><a name="l03900"></a><span class="lineno"> 3900</span>           result = cpl_table_new(0),</div>
-<div class="line"><a name="l03901"></a><span class="lineno"> 3901</span>           cpl_table_new_column(result, <span class="stringliteral">"TraceID"</span>  , CPL_TYPE_INT),</div>
-<div class="line"><a name="l03902"></a><span class="lineno"> 3902</span>           cpl_table_new_column(result, <span class="stringliteral">"Offset"</span>   , CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l03903"></a><span class="lineno"> 3903</span>           cpl_table_new_column(result, <span class="stringliteral">"Tracemask"</span>, CPL_TYPE_INT)),</div>
-<div class="line"><a name="l03904"></a><span class="lineno"> 3904</span>     <span class="stringliteral">"Error creating table"</span>);</div>
-<div class="line"><a name="l03905"></a><span class="lineno"> 3905</span>     </div>
-<div class="line"><a name="l03906"></a><span class="lineno"> 3906</span>   cleanup:</div>
-<div class="line"><a name="l03907"></a><span class="lineno"> 3907</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l03908"></a><span class="lineno"> 3908</span> }</div>
-<div class="line"><a name="l03909"></a><span class="lineno"> 3909</span> </div>
-<div class="line"><a name="l03910"></a><span class="lineno"> 3910</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03920"></a><span class="lineno"> 3920</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03921"></a><span class="lineno"> 3921</span> cpl_error_code</div>
-<div class="line"><a name="l03922"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gab4d35d91d7acd120872d427842b13942"> 3922</a></span> <a class="code" href="group__uves__utils.html#gab4d35d91d7acd120872d427842b13942" title="Add a trace.">uves_ordertable_traces_add</a>(cpl_table *traces, </div>
-<div class="line"><a name="l03923"></a><span class="lineno"> 3923</span>                <span class="keywordtype">int</span> fibre_ID, <span class="keywordtype">double</span> fibre_offset, <span class="keywordtype">int</span> fibre_mask)</div>
-<div class="line"><a name="l03924"></a><span class="lineno"> 3924</span> {</div>
-<div class="line"><a name="l03925"></a><span class="lineno"> 3925</span>     <span class="keywordtype">int</span> size;</div>
-<div class="line"><a name="l03926"></a><span class="lineno"> 3926</span> </div>
-<div class="line"><a name="l03927"></a><span class="lineno"> 3927</span>     assure( traces != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table!"</span>);</div>
-<div class="line"><a name="l03928"></a><span class="lineno"> 3928</span>     </div>
-<div class="line"><a name="l03929"></a><span class="lineno"> 3929</span>     <span class="comment">/* Write to new table row */</span></div>
-<div class="line"><a name="l03930"></a><span class="lineno"> 3930</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>((</div>
-<div class="line"><a name="l03931"></a><span class="lineno"> 3931</span>           size = cpl_table_get_nrow(traces),</div>
-<div class="line"><a name="l03932"></a><span class="lineno"> 3932</span>           cpl_table_set_size  (traces, size+1),</div>
-<div class="line"><a name="l03933"></a><span class="lineno"> 3933</span>           cpl_table_set_int   (traces, <span class="stringliteral">"TraceID"</span>  , size, fibre_ID),</div>
-<div class="line"><a name="l03934"></a><span class="lineno"> 3934</span>           cpl_table_set_double(traces, <span class="stringliteral">"Offset"</span>   , size, fibre_offset),</div>
-<div class="line"><a name="l03935"></a><span class="lineno"> 3935</span>           cpl_table_set_int   (traces, <span class="stringliteral">"Tracemask"</span>, size, fibre_mask)),</div>
-<div class="line"><a name="l03936"></a><span class="lineno"> 3936</span>       <span class="stringliteral">"Error updating table"</span>);</div>
-<div class="line"><a name="l03937"></a><span class="lineno"> 3937</span> </div>
-<div class="line"><a name="l03938"></a><span class="lineno"> 3938</span>   cleanup:</div>
-<div class="line"><a name="l03939"></a><span class="lineno"> 3939</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l03940"></a><span class="lineno"> 3940</span> }</div>
-<div class="line"><a name="l03941"></a><span class="lineno"> 3941</span> </div>
-<div class="line"><a name="l03942"></a><span class="lineno"> 3942</span> </div>
-<div class="line"><a name="l03943"></a><span class="lineno"> 3943</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03949"></a><span class="lineno"> 3949</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03950"></a><span class="lineno"> 3950</span> cpl_error_code</div>
-<div class="line"><a name="l03951"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga7734a51460651fa363eacdf284986447"> 3951</a></span> <a class="code" href="group__uves__utils.html#ga7734a51460651fa363eacdf284986447" title="Remove column units from a table.">uves_tablename_remove_units</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* tname)</div>
-<div class="line"><a name="l03952"></a><span class="lineno"> 3952</span> {</div>
-<div class="line"><a name="l03953"></a><span class="lineno"> 3953</span>    cpl_table* tab=NULL;</div>
-<div class="line"><a name="l03954"></a><span class="lineno"> 3954</span>    <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* head=NULL;</div>
-<div class="line"><a name="l03955"></a><span class="lineno"> 3955</span>    tab=cpl_table_load(tname,1,0);</div>
-<div class="line"><a name="l03956"></a><span class="lineno"> 3956</span>    head=<a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(tname,0);</div>
-<div class="line"><a name="l03957"></a><span class="lineno"> 3957</span>    <a class="code" href="group__uves__utils.html#ga7d2ec6462cf581bf7172368747e5f9d6" title="Remove column units from a table.">uves_table_remove_units</a>(&tab);</div>
-<div class="line"><a name="l03958"></a><span class="lineno"> 3958</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_table_save(tab,head,NULL,tname,CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l03959"></a><span class="lineno"> 3959</span> </div>
-<div class="line"><a name="l03960"></a><span class="lineno"> 3960</span>   cleanup:</div>
-<div class="line"><a name="l03961"></a><span class="lineno"> 3961</span>    uves_free_table(&tab);</div>
-<div class="line"><a name="l03962"></a><span class="lineno"> 3962</span>    uves_free_propertylist(&head);</div>
-<div class="line"><a name="l03963"></a><span class="lineno"> 3963</span>    <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l03964"></a><span class="lineno"> 3964</span> }</div>
-<div class="line"><a name="l03965"></a><span class="lineno"> 3965</span> </div>
-<div class="line"><a name="l03966"></a><span class="lineno"> 3966</span> </div>
-<div class="line"><a name="l03967"></a><span class="lineno"> 3967</span> </div>
-<div class="line"><a name="l03968"></a><span class="lineno"> 3968</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03975"></a><span class="lineno"> 3975</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l03976"></a><span class="lineno"> 3976</span> cpl_error_code</div>
-<div class="line"><a name="l03977"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga613ac59edcddc7ba24d4bf6d5a563c35"> 3977</a></span> <a class="code" href="group__uves__utils.html#ga613ac59edcddc7ba24d4bf6d5a563c35" title="Unify column units in tables.">uves_tablenames_unify_units</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* tname2, <span class="keyword">const</span> <span class="keywordtype">char</span>* tname1)</div>
-<div class="line"><a name="l03978"></a><span class="lineno"> 3978</span> {</div>
-<div class="line"><a name="l03979"></a><span class="lineno"> 3979</span>    cpl_table* tab1=NULL;</div>
-<div class="line"><a name="l03980"></a><span class="lineno"> 3980</span>    cpl_table* tab2=NULL;</div>
-<div class="line"><a name="l03981"></a><span class="lineno"> 3981</span>    <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* head2=NULL;</div>
-<div class="line"><a name="l03982"></a><span class="lineno"> 3982</span> </div>
-<div class="line"><a name="l03983"></a><span class="lineno"> 3983</span>    tab1=cpl_table_load(tname1,1,0);</div>
-<div class="line"><a name="l03984"></a><span class="lineno"> 3984</span> </div>
-<div class="line"><a name="l03985"></a><span class="lineno"> 3985</span>    tab2=cpl_table_load(tname2,1,0);</div>
-<div class="line"><a name="l03986"></a><span class="lineno"> 3986</span>    head2=<a class="code" href="group__uves__propertylist.html#ga5de7b249b679dc82b32e730e8d22a8bb" title="Create a property list from a file.">uves_propertylist_load</a>(tname2,0);</div>
-<div class="line"><a name="l03987"></a><span class="lineno"> 3987</span> </div>
-<div class="line"><a name="l03988"></a><span class="lineno"> 3988</span>    <a class="code" href="group__uves__utils.html#ga42288426fcfd847780e7f412756c55db" title="Unify column units of table2 to table1.">uves_table_unify_units</a>(&tab2,&tab1);</div>
-<div class="line"><a name="l03989"></a><span class="lineno"> 3989</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(uves_table_save(tab2,head2,NULL,tname2,CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l03990"></a><span class="lineno"> 3990</span> </div>
-<div class="line"><a name="l03991"></a><span class="lineno"> 3991</span>   cleanup:</div>
-<div class="line"><a name="l03992"></a><span class="lineno"> 3992</span>    uves_free_table(&tab1);</div>
-<div class="line"><a name="l03993"></a><span class="lineno"> 3993</span>    uves_free_table(&tab2);</div>
-<div class="line"><a name="l03994"></a><span class="lineno"> 3994</span>    uves_free_propertylist(&head2);</div>
-<div class="line"><a name="l03995"></a><span class="lineno"> 3995</span>    <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l03996"></a><span class="lineno"> 3996</span> </div>
-<div class="line"><a name="l03997"></a><span class="lineno"> 3997</span> }</div>
-<div class="line"><a name="l03998"></a><span class="lineno"> 3998</span> </div>
-<div class="line"><a name="l03999"></a><span class="lineno"> 3999</span> </div>
-<div class="line"><a name="l04000"></a><span class="lineno"> 4000</span> </div>
-<div class="line"><a name="l04001"></a><span class="lineno"> 4001</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04007"></a><span class="lineno"> 4007</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04008"></a><span class="lineno"> 4008</span> cpl_error_code</div>
-<div class="line"><a name="l04009"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga7d2ec6462cf581bf7172368747e5f9d6"> 4009</a></span> <a class="code" href="group__uves__utils.html#ga7d2ec6462cf581bf7172368747e5f9d6" title="Remove column units from a table.">uves_table_remove_units</a>(cpl_table **table)</div>
-<div class="line"><a name="l04010"></a><span class="lineno"> 4010</span> {</div>
-<div class="line"><a name="l04011"></a><span class="lineno"> 4011</span>     <span class="keywordtype">int</span> ncols;</div>
-<div class="line"><a name="l04012"></a><span class="lineno"> 4012</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* colname=NULL;</div>
-<div class="line"><a name="l04013"></a><span class="lineno"> 4013</span>     <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l04014"></a><span class="lineno"> 4014</span>     cpl_array *names=NULL;</div>
-<div class="line"><a name="l04015"></a><span class="lineno"> 4015</span> </div>
-<div class="line"><a name="l04016"></a><span class="lineno"> 4016</span>     assure( *table != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null input table!"</span>);</div>
-<div class="line"><a name="l04017"></a><span class="lineno"> 4017</span>     ncols = cpl_table_get_ncol(*table);</div>
-<div class="line"><a name="l04018"></a><span class="lineno"> 4018</span>     names = cpl_table_get_column_names(*table);</div>
-<div class="line"><a name="l04019"></a><span class="lineno"> 4019</span>     <span class="keywordflow">for</span>(i=0;i<ncols;i++) {</div>
-<div class="line"><a name="l04020"></a><span class="lineno"> 4020</span>        colname=cpl_array_get_string(names, i);</div>
-<div class="line"><a name="l04021"></a><span class="lineno"> 4021</span>        cpl_table_set_column_unit(*table,colname,NULL);</div>
-<div class="line"><a name="l04022"></a><span class="lineno"> 4022</span>     }</div>
-<div class="line"><a name="l04023"></a><span class="lineno"> 4023</span> </div>
-<div class="line"><a name="l04024"></a><span class="lineno"> 4024</span>   cleanup:</div>
-<div class="line"><a name="l04025"></a><span class="lineno"> 4025</span>     uves_free_array(&names);</div>
-<div class="line"><a name="l04026"></a><span class="lineno"> 4026</span> </div>
-<div class="line"><a name="l04027"></a><span class="lineno"> 4027</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l04028"></a><span class="lineno"> 4028</span> }</div>
-<div class="line"><a name="l04029"></a><span class="lineno"> 4029</span> </div>
-<div class="line"><a name="l04030"></a><span class="lineno"> 4030</span> </div>
-<div class="line"><a name="l04031"></a><span class="lineno"> 4031</span> </div>
-<div class="line"><a name="l04032"></a><span class="lineno"> 4032</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04039"></a><span class="lineno"> 4039</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04040"></a><span class="lineno"> 4040</span> cpl_error_code</div>
-<div class="line"><a name="l04041"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga42288426fcfd847780e7f412756c55db"> 4041</a></span> <a class="code" href="group__uves__utils.html#ga42288426fcfd847780e7f412756c55db" title="Unify column units of table2 to table1.">uves_table_unify_units</a>(cpl_table **table2,  cpl_table **table1)</div>
-<div class="line"><a name="l04042"></a><span class="lineno"> 4042</span> {</div>
-<div class="line"><a name="l04043"></a><span class="lineno"> 4043</span>     <span class="keywordtype">int</span> ncols1;</div>
-<div class="line"><a name="l04044"></a><span class="lineno"> 4044</span>     <span class="keywordtype">int</span> ncols2;</div>
-<div class="line"><a name="l04045"></a><span class="lineno"> 4045</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* colname=NULL;</div>
-<div class="line"><a name="l04046"></a><span class="lineno"> 4046</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* unit1=NULL;</div>
-<div class="line"><a name="l04047"></a><span class="lineno"> 4047</span> </div>
-<div class="line"><a name="l04048"></a><span class="lineno"> 4048</span>     <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l04049"></a><span class="lineno"> 4049</span>     cpl_array *names=NULL;</div>
-<div class="line"><a name="l04050"></a><span class="lineno"> 4050</span> </div>
-<div class="line"><a name="l04051"></a><span class="lineno"> 4051</span>     assure( table1 != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null input table!"</span>);</div>
-<div class="line"><a name="l04052"></a><span class="lineno"> 4052</span>     assure( *table2 != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null input table!"</span>);</div>
-<div class="line"><a name="l04053"></a><span class="lineno"> 4053</span>     ncols1 = cpl_table_get_ncol(*table1);</div>
-<div class="line"><a name="l04054"></a><span class="lineno"> 4054</span>     ncols2 = cpl_table_get_ncol(*table2);</div>
-<div class="line"><a name="l04055"></a><span class="lineno"> 4055</span>     assure( ncols1 == ncols2, CPL_ERROR_NULL_INPUT, </div>
-<div class="line"><a name="l04056"></a><span class="lineno"> 4056</span>             <span class="stringliteral">"n columns (tab1) != n columns (tab2)"</span>);</div>
-<div class="line"><a name="l04057"></a><span class="lineno"> 4057</span> </div>
-<div class="line"><a name="l04058"></a><span class="lineno"> 4058</span>     names = cpl_table_get_column_names(*table1);</div>
-<div class="line"><a name="l04059"></a><span class="lineno"> 4059</span>     <span class="keywordflow">for</span>(i=0;i<ncols1;i++) {</div>
-<div class="line"><a name="l04060"></a><span class="lineno"> 4060</span>        colname=cpl_array_get_string(names, i);</div>
-<div class="line"><a name="l04061"></a><span class="lineno"> 4061</span>        unit1=cpl_table_get_column_unit(*table1,colname);</div>
-<div class="line"><a name="l04062"></a><span class="lineno"> 4062</span>        cpl_table_set_column_unit(*table2,colname,unit1);</div>
-<div class="line"><a name="l04063"></a><span class="lineno"> 4063</span>     }</div>
-<div class="line"><a name="l04064"></a><span class="lineno"> 4064</span> </div>
-<div class="line"><a name="l04065"></a><span class="lineno"> 4065</span>   cleanup:</div>
-<div class="line"><a name="l04066"></a><span class="lineno"> 4066</span>     uves_free_array(&names);</div>
-<div class="line"><a name="l04067"></a><span class="lineno"> 4067</span> </div>
-<div class="line"><a name="l04068"></a><span class="lineno"> 4068</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l04069"></a><span class="lineno"> 4069</span> }</div>
-<div class="line"><a name="l04070"></a><span class="lineno"> 4070</span> </div>
-<div class="line"><a name="l04071"></a><span class="lineno"> 4071</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l04072"></a><span class="lineno"> 4072</span> <span class="comment"> * modified on 2006/04/19</span></div>
-<div class="line"><a name="l04073"></a><span class="lineno"> 4073</span> <span class="comment"> *  jmlarsen:  float[5] -> const double[]</span></div>
-<div class="line"><a name="l04074"></a><span class="lineno"> 4074</span> <span class="comment"> *             changed mapping of indices to parameters</span></div>
-<div class="line"><a name="l04075"></a><span class="lineno"> 4075</span> <span class="comment"> *             Normalized the profile to 1 and changed meaning</span></div>
-<div class="line"><a name="l04076"></a><span class="lineno"> 4076</span> <span class="comment"> *             of (a[3], a[2]) to (integrated flux, stdev)</span></div>
-<div class="line"><a name="l04077"></a><span class="lineno"> 4077</span> <span class="comment"> *             Disabled debugging messages</span></div>
-<div class="line"><a name="l04078"></a><span class="lineno"> 4078</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l04079"></a><span class="lineno"> 4079</span> <span class="comment"> * modified on 2005/07/29 to make dydapar a FORTRAN array</span></div>
-<div class="line"><a name="l04080"></a><span class="lineno"> 4080</span> <span class="comment"> * (indiced from 1 to N instead of 0 to N-1).</span></div>
-<div class="line"><a name="l04081"></a><span class="lineno"> 4081</span> <span class="comment"> * This allows the array to be passed to C functions expecting</span></div>
-<div class="line"><a name="l04082"></a><span class="lineno"> 4082</span> <span class="comment"> * FORTRAN-like arrays.</span></div>
-<div class="line"><a name="l04083"></a><span class="lineno"> 4083</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l04084"></a><span class="lineno"> 4084</span> <span class="comment"> * modified on 2005/08/02 to make the function prototype ANSI</span></div>
-<div class="line"><a name="l04085"></a><span class="lineno"> 4085</span> <span class="comment"> * compliant (so it can be used with the levmar library).</span></div>
-<div class="line"><a name="l04086"></a><span class="lineno"> 4086</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l04087"></a><span class="lineno"> 4087</span> <span class="comment"> * modified on 2005/08/16. The function now expects C-indexed</span></div>
-<div class="line"><a name="l04088"></a><span class="lineno"> 4088</span> <span class="comment"> * arrays as parameters (to allow proper integration). However, the</span></div>
-<div class="line"><a name="l04089"></a><span class="lineno"> 4089</span> <span class="comment"> * arrays are still converted to FORTRAN-indexed arrays internally.</span></div>
-<div class="line"><a name="l04090"></a><span class="lineno"> 4090</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l04091"></a><span class="lineno"> 4091</span> </div>
-<div class="line"><a name="l04102"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga6ec891ebf5e364519c678c11600a35e0"> 4102</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__utils.html#ga6ec891ebf5e364519c678c11600a35e0" title="This subroutine gives the value of the Moffat (beta=4)+ linear functions at pixel of coordinates x es...">fmoffa_i</a>(<span class="keywordtype">float</span> x,<span [...]
-<div class="line"><a name="l04103"></a><span class="lineno"> 4103</span> </div>
-<div class="line"><a name="l04104"></a><span class="lineno"> 4104</span>  </div>
-<div class="line"><a name="l04105"></a><span class="lineno"> 4105</span>      <span class="comment">/*     int na;*/</span></div>
-<div class="line"><a name="l04106"></a><span class="lineno"> 4106</span> {</div>
-<div class="line"><a name="l04107"></a><span class="lineno"> 4107</span>   <span class="keywordtype">double</span> fac=0, fac2=0, fac4= 0, fac4i=0, arg=0, arg2=0;</div>
-<div class="line"><a name="l04108"></a><span class="lineno"> 4108</span>   <span class="keywordtype">double</span> a2i=0, m = 0, p = 0, dif =0;</div>
-<div class="line"><a name="l04109"></a><span class="lineno"> 4109</span>   <span class="keywordtype">double</span> sqrt5 = 2.23606797749979;</div>
-<div class="line"><a name="l04110"></a><span class="lineno"> 4110</span> </div>
-<div class="line"><a name="l04111"></a><span class="lineno"> 4111</span>   *y=0.0;</div>
-<div class="line"><a name="l04112"></a><span class="lineno"> 4112</span> <span class="comment">//  a2i = 1.0/a[2];</span></div>
-<div class="line"><a name="l04113"></a><span class="lineno"> 4113</span>   a2i = 1.0/(a[2]*sqrt5);</div>
-<div class="line"><a name="l04114"></a><span class="lineno"> 4114</span> </div>
-<div class="line"><a name="l04115"></a><span class="lineno"> 4115</span>   dif=x-a[1];</div>
-<div class="line"><a name="l04116"></a><span class="lineno"> 4116</span>   arg=dif*a2i;</div>
-<div class="line"><a name="l04117"></a><span class="lineno"> 4117</span>   arg2=arg*arg;</div>
-<div class="line"><a name="l04118"></a><span class="lineno"> 4118</span> </div>
-<div class="line"><a name="l04119"></a><span class="lineno"> 4119</span>   fac=1.0+arg2;</div>
-<div class="line"><a name="l04120"></a><span class="lineno"> 4120</span>   fac2=fac*fac;</div>
-<div class="line"><a name="l04121"></a><span class="lineno"> 4121</span>   fac4=fac2*fac2;</div>
-<div class="line"><a name="l04122"></a><span class="lineno"> 4122</span>   fac4i = 1.0/fac4;</div>
-<div class="line"><a name="l04123"></a><span class="lineno"> 4123</span>   </div>
-<div class="line"><a name="l04124"></a><span class="lineno"> 4124</span> <span class="comment">//  m = a[1]*fac4i;</span></div>
-<div class="line"><a name="l04125"></a><span class="lineno"> 4125</span>   m = a[3]*fac4i * a2i*16/(5.0*M_PI);</div>
-<div class="line"><a name="l04126"></a><span class="lineno"> 4126</span>   *y = m + a[4]*(1.0+dif*a[5]);  </div>
-<div class="line"><a name="l04127"></a><span class="lineno"> 4127</span>   p = 8.0*m/fac*arg*a2i;</div>
-<div class="line"><a name="l04128"></a><span class="lineno"> 4128</span> </div>
-<div class="line"><a name="l04129"></a><span class="lineno"> 4129</span>   dyda[3] = m/a[3];</div>
-<div class="line"><a name="l04130"></a><span class="lineno"> 4130</span>   dyda[2] = p*dif/a[2] - m/a[2];</div>
-<div class="line"><a name="l04131"></a><span class="lineno"> 4131</span> </div>
-<div class="line"><a name="l04132"></a><span class="lineno"> 4132</span> <span class="comment">//  dyda[3]=fac4i;</span></div>
-<div class="line"><a name="l04133"></a><span class="lineno"> 4133</span>   dyda[1]=p-a[4]*a[5];</div>
-<div class="line"><a name="l04134"></a><span class="lineno"> 4134</span> <span class="comment">//  dyda[2]=p*dif*a2i;</span></div>
-<div class="line"><a name="l04135"></a><span class="lineno"> 4135</span>   dyda[4]=1.0+dif*a[5];</div>
-<div class="line"><a name="l04136"></a><span class="lineno"> 4136</span>   dyda[5]=a[4]*dif;</div>
-<div class="line"><a name="l04137"></a><span class="lineno"> 4137</span> </div>
-<div class="line"><a name="l04138"></a><span class="lineno"> 4138</span> </div>
-<div class="line"><a name="l04139"></a><span class="lineno"> 4139</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l04140"></a><span class="lineno"> 4140</span> <span class="preprocessor"></span>  {</div>
-<div class="line"><a name="l04141"></a><span class="lineno"> 4141</span>      <span class="keywordtype">int</span> i = 0, npar=5 ;</div>
-<div class="line"><a name="l04142"></a><span class="lineno"> 4142</span>      printf(<span class="stringliteral">"fmoffat_i \n"</span>);</div>
-<div class="line"><a name="l04143"></a><span class="lineno"> 4143</span>      <span class="keywordflow">for</span> (i = 1;i<=npar;i++) printf(<span class="stringliteral">"a[%1i] %f :\n"</span>,i,a[i]);</div>
-<div class="line"><a name="l04144"></a><span class="lineno"> 4144</span>      </div>
-<div class="line"><a name="l04145"></a><span class="lineno"> 4145</span>      printf(<span class="stringliteral">"fmoffat_i "</span>);</div>
-<div class="line"><a name="l04146"></a><span class="lineno"> 4146</span>      <span class="keywordflow">for</span> (i = 1;i<=npar;i++) printf(<span class="stringliteral">"%i %f :"</span>,i,dyda[i]);</div>
-<div class="line"><a name="l04147"></a><span class="lineno"> 4147</span>      printf(<span class="stringliteral">"\n"</span>);</div>
-<div class="line"><a name="l04148"></a><span class="lineno"> 4148</span>   }</div>
-<div class="line"><a name="l04149"></a><span class="lineno"> 4149</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04150"></a><span class="lineno"> 4150</span> <span class="preprocessor"></span>  </div>
-<div class="line"><a name="l04151"></a><span class="lineno"> 4151</span> }</div>
-<div class="line"><a name="l04152"></a><span class="lineno"> 4152</span> </div>
-<div class="line"><a name="l04171"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gab2caa5d2f377b40374ac88e708f739b7"> 4171</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__utils.html#gab2caa5d2f377b40374ac88e708f739b7" title="Moffat profile.">fmoffa_c</a>(<span class="keywordtype">float</span> x,<span class="keyword">const</span> <span class="keywordtype">double</span> a[],<span class="ke [...]
-<div class="line"><a name="l04172"></a><span class="lineno"> 4172</span> <span class="comment">//void fmoffa_c(x,a,y, dyda)</span></div>
-<div class="line"><a name="l04173"></a><span class="lineno"> 4173</span> </div>
-<div class="line"><a name="l04174"></a><span class="lineno"> 4174</span> </div>
-<div class="line"><a name="l04175"></a><span class="lineno"> 4175</span> <span class="comment">//     float x,*a,*y,*dyda;</span></div>
-<div class="line"><a name="l04176"></a><span class="lineno"> 4176</span> <span class="comment">/*int na;*/</span></div>
-<div class="line"><a name="l04177"></a><span class="lineno"> 4177</span> {</div>
-<div class="line"><a name="l04178"></a><span class="lineno"> 4178</span>   <span class="keywordtype">int</span> npoint = 3;</div>
-<div class="line"><a name="l04179"></a><span class="lineno"> 4179</span>   <span class="keywordtype">double</span> <span class="keyword">const</span> xgl[3] = {-0.387298334621,0.,0.387298334621};</div>
-<div class="line"><a name="l04180"></a><span class="lineno"> 4180</span>   <span class="keywordtype">double</span> <span class="keyword">const</span> wgl[3] = {.2777777777778,0.444444444444,0.2777777777778};</div>
-<div class="line"><a name="l04181"></a><span class="lineno"> 4181</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l04182"></a><span class="lineno"> 4182</span>   <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l04183"></a><span class="lineno"> 4183</span>   <span class="keywordtype">int</span> npar = 5;</div>
-<div class="line"><a name="l04184"></a><span class="lineno"> 4184</span>   <span class="keywordtype">double</span> xmod = 0;</div>
-<div class="line"><a name="l04185"></a><span class="lineno"> 4185</span>   <span class="keywordtype">double</span> dydapar[5]; <span class="comment">/* = {0.,0.,0.,0.,0.,};*/</span></div>
-<div class="line"><a name="l04186"></a><span class="lineno"> 4186</span>   <span class="keywordtype">double</span> ypar;</div>
-<div class="line"><a name="l04187"></a><span class="lineno"> 4187</span> </div>
-<div class="line"><a name="l04188"></a><span class="lineno"> 4188</span> </div>
-<div class="line"><a name="l04189"></a><span class="lineno"> 4189</span>   <span class="comment">// Convert C-indexed arrays to FORTRAN-indexed arrays</span></div>
-<div class="line"><a name="l04190"></a><span class="lineno"> 4190</span>   a    = C_TO_FORTRAN_INDEXING(a);</div>
-<div class="line"><a name="l04191"></a><span class="lineno"> 4191</span>   dyda = C_TO_FORTRAN_INDEXING(dyda);</div>
-<div class="line"><a name="l04192"></a><span class="lineno"> 4192</span> </div>
-<div class="line"><a name="l04193"></a><span class="lineno"> 4193</span>   *y = 0.0;</div>
-<div class="line"><a name="l04194"></a><span class="lineno"> 4194</span>   <span class="keywordflow">for</span> (i = 1;i<=npar;i++) dyda[i] = 0.;</div>
-<div class="line"><a name="l04195"></a><span class="lineno"> 4195</span>   <span class="comment">/*  printf("fmoffat_c ");</span></div>
-<div class="line"><a name="l04196"></a><span class="lineno"> 4196</span> <span class="comment">  for (i = 1;i<=npar;i++) printf("%i %f :",i,a[i]);*/</span></div>
-<div class="line"><a name="l04197"></a><span class="lineno"> 4197</span>   <span class="comment">/*for (i = 0;i<3;i++) printf("%i %f %f:",i,xgl[i],wgl[i]);*/</span></div>
-<div class="line"><a name="l04198"></a><span class="lineno"> 4198</span>   <span class="comment">/*  printf("\n");*/</span></div>
-<div class="line"><a name="l04199"></a><span class="lineno"> 4199</span>   <span class="keywordflow">for</span> (j=0; j < npoint; j++) </div>
-<div class="line"><a name="l04200"></a><span class="lineno"> 4200</span>       {</div>
-<div class="line"><a name="l04201"></a><span class="lineno"> 4201</span>       xmod = x+xgl[j];</div>
-<div class="line"><a name="l04202"></a><span class="lineno"> 4202</span> </div>
-<div class="line"><a name="l04203"></a><span class="lineno"> 4203</span>       <a class="code" href="group__uves__utils.html#ga6ec891ebf5e364519c678c11600a35e0" title="This subroutine gives the value of the Moffat (beta=4)+ linear functions at pixel of coordinates x es...">fmoffa_i</a>(xmod,a,&ypar,&dydapar[-1]);</div>
-<div class="line"><a name="l04204"></a><span class="lineno"> 4204</span>       </div>
-<div class="line"><a name="l04205"></a><span class="lineno"> 4205</span>       *y = *y + ypar*wgl[j];</div>
-<div class="line"><a name="l04206"></a><span class="lineno"> 4206</span>       </div>
-<div class="line"><a name="l04207"></a><span class="lineno"> 4207</span>       <span class="keywordflow">for</span> (i = 1; i <= npar; i++)</div>
-<div class="line"><a name="l04208"></a><span class="lineno"> 4208</span>           {</div>
-<div class="line"><a name="l04209"></a><span class="lineno"> 4209</span>           dyda[i] = dyda[i] + dydapar[i-1]*wgl[j] ;</div>
-<div class="line"><a name="l04210"></a><span class="lineno"> 4210</span>           }</div>
-<div class="line"><a name="l04211"></a><span class="lineno"> 4211</span> </div>
-<div class="line"><a name="l04212"></a><span class="lineno"> 4212</span>      <span class="comment">/*      if (j == 2) </span></div>
-<div class="line"><a name="l04213"></a><span class="lineno"> 4213</span> <span class="comment">    for (i = 1;i<=npar;i++) </span></div>
-<div class="line"><a name="l04214"></a><span class="lineno"> 4214</span> <span class="comment">      {</span></div>
-<div class="line"><a name="l04215"></a><span class="lineno"> 4215</span> <span class="comment">        dyda[i] = dydapar[i];</span></div>
-<div class="line"><a name="l04216"></a><span class="lineno"> 4216</span> <span class="comment">      };</span></div>
-<div class="line"><a name="l04217"></a><span class="lineno"> 4217</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l04218"></a><span class="lineno"> 4218</span>     }</div>
-<div class="line"><a name="l04219"></a><span class="lineno"> 4219</span> </div>
-<div class="line"><a name="l04220"></a><span class="lineno"> 4220</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l04221"></a><span class="lineno"> 4221</span> <span class="preprocessor"></span>      printf(<span class="stringliteral">"fmoffat_c "</span>);</div>
-<div class="line"><a name="l04222"></a><span class="lineno"> 4222</span>       <span class="keywordflow">for</span> (i = 1;i<=npar;i++) printf(<span class="stringliteral">"%i %f %f: \n"</span>,i,a[i],dyda[i]);</div>
-<div class="line"><a name="l04223"></a><span class="lineno"> 4223</span>       printf(<span class="stringliteral">"\n"</span>);</div>
-<div class="line"><a name="l04224"></a><span class="lineno"> 4224</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l04225"></a><span class="lineno"> 4225</span> <span class="preprocessor"></span>}</div>
-<div class="line"><a name="l04226"></a><span class="lineno"> 4226</span> </div>
-<div class="line"><a name="l04227"></a><span class="lineno"> 4227</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04235"></a><span class="lineno"> 4235</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04236"></a><span class="lineno"> 4236</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04237"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga32f63d655b7a15cb65c59f6ed9153a69"> 4237</a></span> <a class="code" href="group__uves__utils.html#ga32f63d655b7a15cb65c59f6ed9153a69" title="Evaluate a Moffat.">uves_moffat</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *re [...]
-<div class="line"><a name="l04238"></a><span class="lineno"> 4238</span> {</div>
-<div class="line"><a name="l04239"></a><span class="lineno"> 4239</span>     <span class="keywordtype">double</span> dyda[5];</div>
-<div class="line"><a name="l04240"></a><span class="lineno"> 4240</span> </div>
-<div class="line"><a name="l04241"></a><span class="lineno"> 4241</span>     <a class="code" href="group__uves__utils.html#gab2caa5d2f377b40374ac88e708f739b7" title="Moffat profile.">fmoffa_c</a>(x[0], a, result, dyda);</div>
-<div class="line"><a name="l04242"></a><span class="lineno"> 4242</span> </div>
-<div class="line"><a name="l04243"></a><span class="lineno"> 4243</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04244"></a><span class="lineno"> 4244</span> }</div>
-<div class="line"><a name="l04245"></a><span class="lineno"> 4245</span> </div>
-<div class="line"><a name="l04246"></a><span class="lineno"> 4246</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04254"></a><span class="lineno"> 4254</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04255"></a><span class="lineno"> 4255</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04256"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga3268b9eca855e33e38a5bd58c5d512c0"> 4256</a></span> <a class="code" href="group__uves__utils.html#ga3268b9eca855e33e38a5bd58c5d512c0" title="Evaluate Moffat derivative.">uves_moffat_derivative</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtyp [...]
-<div class="line"><a name="l04257"></a><span class="lineno"> 4257</span> {</div>
-<div class="line"><a name="l04258"></a><span class="lineno"> 4258</span>     <span class="keywordtype">double</span> y;</div>
-<div class="line"><a name="l04259"></a><span class="lineno"> 4259</span> </div>
-<div class="line"><a name="l04260"></a><span class="lineno"> 4260</span>     <a class="code" href="group__uves__utils.html#gab2caa5d2f377b40374ac88e708f739b7" title="Moffat profile.">fmoffa_c</a>(x[0], a, &y, result);</div>
-<div class="line"><a name="l04261"></a><span class="lineno"> 4261</span> </div>
-<div class="line"><a name="l04262"></a><span class="lineno"> 4262</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04263"></a><span class="lineno"> 4263</span> }</div>
-<div class="line"><a name="l04264"></a><span class="lineno"> 4264</span> </div>
-<div class="line"><a name="l04265"></a><span class="lineno"> 4265</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04285"></a><span class="lineno"> 4285</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04286"></a><span class="lineno"> 4286</span> </div>
-<div class="line"><a name="l04287"></a><span class="lineno"> 4287</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04288"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c"> 4288</a></span> <a class="code" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c" title="Evaluate a gaussian.">uves_gauss</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *r [...]
-<div class="line"><a name="l04289"></a><span class="lineno"> 4289</span> {</div>
-<div class="line"><a name="l04290"></a><span class="lineno"> 4290</span>     <span class="keywordtype">double</span> my    = a[0];</div>
-<div class="line"><a name="l04291"></a><span class="lineno"> 4291</span>     <span class="keywordtype">double</span> sigma = a[1];</div>
-<div class="line"><a name="l04292"></a><span class="lineno"> 4292</span> </div>
-<div class="line"><a name="l04293"></a><span class="lineno"> 4293</span>     <span class="keywordflow">if</span> (sigma == 0)</div>
-<div class="line"><a name="l04294"></a><span class="lineno"> 4294</span>     {</div>
-<div class="line"><a name="l04295"></a><span class="lineno"> 4295</span>         <span class="comment">/* Dirac's delta function */</span></div>
-<div class="line"><a name="l04296"></a><span class="lineno"> 4296</span>         <span class="keywordflow">if</span> (x[0] == my)</div>
-<div class="line"><a name="l04297"></a><span class="lineno"> 4297</span>         {</div>
-<div class="line"><a name="l04298"></a><span class="lineno"> 4298</span>             *result = DBL_MAX;</div>
-<div class="line"><a name="l04299"></a><span class="lineno"> 4299</span>         }</div>
-<div class="line"><a name="l04300"></a><span class="lineno"> 4300</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04301"></a><span class="lineno"> 4301</span>         {</div>
-<div class="line"><a name="l04302"></a><span class="lineno"> 4302</span>             *result = 0;</div>
-<div class="line"><a name="l04303"></a><span class="lineno"> 4303</span>         }</div>
-<div class="line"><a name="l04304"></a><span class="lineno"> 4304</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04305"></a><span class="lineno"> 4305</span>     }</div>
-<div class="line"><a name="l04306"></a><span class="lineno"> 4306</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04307"></a><span class="lineno"> 4307</span>     {</div>
-<div class="line"><a name="l04308"></a><span class="lineno"> 4308</span>         <span class="keywordtype">double</span> A     = a[2];</div>
-<div class="line"><a name="l04309"></a><span class="lineno"> 4309</span>         <span class="keywordtype">double</span> B     = a[3];</div>
-<div class="line"><a name="l04310"></a><span class="lineno"> 4310</span>         </div>
-<div class="line"><a name="l04311"></a><span class="lineno"> 4311</span>         *result = B    +</div>
-<div class="line"><a name="l04312"></a><span class="lineno"> 4312</span>         A/(sqrt(2*M_PI*sigma*sigma)) *</div>
-<div class="line"><a name="l04313"></a><span class="lineno"> 4313</span>         exp(- (x[0] - my)*(x[0] - my)</div>
-<div class="line"><a name="l04314"></a><span class="lineno"> 4314</span>             / (2*sigma*sigma));</div>
-<div class="line"><a name="l04315"></a><span class="lineno"> 4315</span>     }</div>
-<div class="line"><a name="l04316"></a><span class="lineno"> 4316</span>     </div>
-<div class="line"><a name="l04317"></a><span class="lineno"> 4317</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04318"></a><span class="lineno"> 4318</span> }</div>
-<div class="line"><a name="l04319"></a><span class="lineno"> 4319</span> </div>
-<div class="line"><a name="l04320"></a><span class="lineno"> 4320</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04340"></a><span class="lineno"> 4340</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04341"></a><span class="lineno"> 4341</span> </div>
-<div class="line"><a name="l04342"></a><span class="lineno"> 4342</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04343"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea"> 4343</a></span> <a class="code" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea" title="Evaluate the derivatives of a gaussian.">uves_gauss_derivative</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class= [...]
-<div class="line"><a name="l04344"></a><span class="lineno"> 4344</span> {</div>
-<div class="line"><a name="l04345"></a><span class="lineno"> 4345</span>     <span class="keywordtype">double</span> my    = a[0];</div>
-<div class="line"><a name="l04346"></a><span class="lineno"> 4346</span>     <span class="keywordtype">double</span> sigma = a[1];</div>
-<div class="line"><a name="l04347"></a><span class="lineno"> 4347</span>     <span class="keywordtype">double</span> A     = a[2];</div>
-<div class="line"><a name="l04348"></a><span class="lineno"> 4348</span>     <span class="comment">/* a[3] not used */</span></div>
-<div class="line"><a name="l04349"></a><span class="lineno"> 4349</span> </div>
-<div class="line"><a name="l04350"></a><span class="lineno"> 4350</span>     <span class="keywordtype">double</span> factor;</div>
-<div class="line"><a name="l04351"></a><span class="lineno"> 4351</span>    </div>
-<div class="line"><a name="l04352"></a><span class="lineno"> 4352</span>     <span class="comment">/* f(x) = B + A/sqrt(2 pi s^2) exp(-(x-my)^2/2s^2)</span></div>
-<div class="line"><a name="l04353"></a><span class="lineno"> 4353</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l04354"></a><span class="lineno"> 4354</span> <span class="comment">     * df/d(my) = A/sqrt(2 pi s^2) exp(-(x-my)^2/2s^2) * (x-my)  / s^2</span></div>
-<div class="line"><a name="l04355"></a><span class="lineno"> 4355</span> <span class="comment">     *          = A * fac. * (x-my)  / s^2</span></div>
-<div class="line"><a name="l04356"></a><span class="lineno"> 4356</span> <span class="comment">     * df/ds    = A/sqrt(2 pi s^2) exp(-(x-my)^2/2s^2) * ((x-my)^2/s^3 - 1/s)</span></div>
-<div class="line"><a name="l04357"></a><span class="lineno"> 4357</span> <span class="comment">     *          = A * fac. * ((x-my)^2 / s^2 - 1) / s</span></div>
-<div class="line"><a name="l04358"></a><span class="lineno"> 4358</span> <span class="comment">     * df/dA    = 1/sqrt(2 pi s^2) exp(-(x-my)^2/2s^2)</span></div>
-<div class="line"><a name="l04359"></a><span class="lineno"> 4359</span> <span class="comment">     *          = fac.</span></div>
-<div class="line"><a name="l04360"></a><span class="lineno"> 4360</span> <span class="comment">     * df/dB    = 1</span></div>
-<div class="line"><a name="l04361"></a><span class="lineno"> 4361</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l04362"></a><span class="lineno"> 4362</span>     </div>
-<div class="line"><a name="l04363"></a><span class="lineno"> 4363</span>     <span class="keywordflow">if</span> (sigma == 0)</div>
-<div class="line"><a name="l04364"></a><span class="lineno"> 4364</span>     {</div>
-<div class="line"><a name="l04365"></a><span class="lineno"> 4365</span>         <span class="comment">/* Derivative of Dirac's delta function */</span></div>
-<div class="line"><a name="l04366"></a><span class="lineno"> 4366</span>         result[0] = 0;</div>
-<div class="line"><a name="l04367"></a><span class="lineno"> 4367</span>         result[1] = 0;</div>
-<div class="line"><a name="l04368"></a><span class="lineno"> 4368</span>         result[2] = 0;</div>
-<div class="line"><a name="l04369"></a><span class="lineno"> 4369</span>         result[3] = 0;</div>
-<div class="line"><a name="l04370"></a><span class="lineno"> 4370</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04371"></a><span class="lineno"> 4371</span>     }</div>
-<div class="line"><a name="l04372"></a><span class="lineno"> 4372</span> </div>
-<div class="line"><a name="l04373"></a><span class="lineno"> 4373</span>     factor = exp( -(x[0] - my)*(x[0] - my)/(2*sigma*sigma) )</div>
-<div class="line"><a name="l04374"></a><span class="lineno"> 4374</span>     / (sqrt(2*M_PI*sigma*sigma));</div>
-<div class="line"><a name="l04375"></a><span class="lineno"> 4375</span> </div>
-<div class="line"><a name="l04376"></a><span class="lineno"> 4376</span>     result[0] = A * factor * (x[0]-my) / (sigma*sigma);</div>
-<div class="line"><a name="l04377"></a><span class="lineno"> 4377</span>     result[1] = A * factor * ((x[0]-my)*(x[0]-my) / (sigma*sigma) - 1) / sigma;</div>
-<div class="line"><a name="l04378"></a><span class="lineno"> 4378</span>     result[2] = factor;</div>
-<div class="line"><a name="l04379"></a><span class="lineno"> 4379</span>     result[3] = 1;</div>
-<div class="line"><a name="l04380"></a><span class="lineno"> 4380</span> </div>
-<div class="line"><a name="l04381"></a><span class="lineno"> 4381</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04382"></a><span class="lineno"> 4382</span> }</div>
-<div class="line"><a name="l04383"></a><span class="lineno"> 4383</span> </div>
-<div class="line"><a name="l04384"></a><span class="lineno"> 4384</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04405"></a><span class="lineno"> 4405</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04406"></a><span class="lineno"> 4406</span> </div>
-<div class="line"><a name="l04407"></a><span class="lineno"> 4407</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04408"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga9f3e7e9d99f1b9785c335cc1a8ecb49f"> 4408</a></span> <a class="code" href="group__uves__utils.html#ga9f3e7e9d99f1b9785c335cc1a8ecb49f" title="Evaluate a gaussian with linear background.">uves_gauss_linear</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class= [...]
-<div class="line"><a name="l04409"></a><span class="lineno"> 4409</span> {</div>
-<div class="line"><a name="l04410"></a><span class="lineno"> 4410</span>     <span class="keywordtype">double</span> my    = a[0];</div>
-<div class="line"><a name="l04411"></a><span class="lineno"> 4411</span>     <span class="keywordtype">double</span> sigma = a[1];</div>
-<div class="line"><a name="l04412"></a><span class="lineno"> 4412</span> </div>
-<div class="line"><a name="l04413"></a><span class="lineno"> 4413</span>     <span class="keywordflow">if</span> (sigma == 0)</div>
-<div class="line"><a name="l04414"></a><span class="lineno"> 4414</span>     {</div>
-<div class="line"><a name="l04415"></a><span class="lineno"> 4415</span>         <span class="comment">/* Dirac's delta function */</span></div>
-<div class="line"><a name="l04416"></a><span class="lineno"> 4416</span>         <span class="keywordflow">if</span> (x[0] == my)</div>
-<div class="line"><a name="l04417"></a><span class="lineno"> 4417</span>         {</div>
-<div class="line"><a name="l04418"></a><span class="lineno"> 4418</span>             *result = DBL_MAX;</div>
-<div class="line"><a name="l04419"></a><span class="lineno"> 4419</span>         }</div>
-<div class="line"><a name="l04420"></a><span class="lineno"> 4420</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04421"></a><span class="lineno"> 4421</span>         {</div>
-<div class="line"><a name="l04422"></a><span class="lineno"> 4422</span>             *result = 0;</div>
-<div class="line"><a name="l04423"></a><span class="lineno"> 4423</span>         }</div>
-<div class="line"><a name="l04424"></a><span class="lineno"> 4424</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04425"></a><span class="lineno"> 4425</span>     }</div>
-<div class="line"><a name="l04426"></a><span class="lineno"> 4426</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04427"></a><span class="lineno"> 4427</span>     {</div>
-<div class="line"><a name="l04428"></a><span class="lineno"> 4428</span>         <span class="keywordtype">double</span> A     = a[2];</div>
-<div class="line"><a name="l04429"></a><span class="lineno"> 4429</span>         <span class="keywordtype">double</span> B     = a[3];</div>
-<div class="line"><a name="l04430"></a><span class="lineno"> 4430</span>         <span class="keywordtype">double</span> C     = a[4];</div>
-<div class="line"><a name="l04431"></a><span class="lineno"> 4431</span>         </div>
-<div class="line"><a name="l04432"></a><span class="lineno"> 4432</span>         *result = B    + C*(x[0] - my) +</div>
-<div class="line"><a name="l04433"></a><span class="lineno"> 4433</span>         A/(sqrt(2*M_PI*sigma*sigma)) *</div>
-<div class="line"><a name="l04434"></a><span class="lineno"> 4434</span>         exp(- (x[0] - my)*(x[0] - my)</div>
-<div class="line"><a name="l04435"></a><span class="lineno"> 4435</span>             / (2*sigma*sigma));</div>
-<div class="line"><a name="l04436"></a><span class="lineno"> 4436</span>     }</div>
-<div class="line"><a name="l04437"></a><span class="lineno"> 4437</span>     </div>
-<div class="line"><a name="l04438"></a><span class="lineno"> 4438</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04439"></a><span class="lineno"> 4439</span> }</div>
-<div class="line"><a name="l04440"></a><span class="lineno"> 4440</span> </div>
-<div class="line"><a name="l04441"></a><span class="lineno"> 4441</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04464"></a><span class="lineno"> 4464</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04465"></a><span class="lineno"> 4465</span> </div>
-<div class="line"><a name="l04466"></a><span class="lineno"> 4466</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l04467"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga98837a7122178c9d18c99174bfd53d9b"> 4467</a></span> <a class="code" href="group__uves__utils.html#ga98837a7122178c9d18c99174bfd53d9b" title="Evaluate the derivatives of a gaussian with linear background.">uves_gauss_linear_derivative</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">d [...]
-<div class="line"><a name="l04468"></a><span class="lineno"> 4468</span> {</div>
-<div class="line"><a name="l04469"></a><span class="lineno"> 4469</span>     <span class="keywordtype">double</span> my    = a[0];</div>
-<div class="line"><a name="l04470"></a><span class="lineno"> 4470</span>     <span class="keywordtype">double</span> sigma = a[1];</div>
-<div class="line"><a name="l04471"></a><span class="lineno"> 4471</span>     <span class="keywordtype">double</span> A     = a[2];</div>
-<div class="line"><a name="l04472"></a><span class="lineno"> 4472</span>     <span class="comment">/* a[3] not used */</span></div>
-<div class="line"><a name="l04473"></a><span class="lineno"> 4473</span>     <span class="keywordtype">double</span> C     = a[4];</div>
-<div class="line"><a name="l04474"></a><span class="lineno"> 4474</span> </div>
-<div class="line"><a name="l04475"></a><span class="lineno"> 4475</span>     <span class="keywordtype">double</span> factor;</div>
-<div class="line"><a name="l04476"></a><span class="lineno"> 4476</span>    </div>
-<div class="line"><a name="l04477"></a><span class="lineno"> 4477</span>     <span class="comment">/* f(x) = B + C(x-my) + A/sqrt(2 pi s^2) exp(-(x-my)^2/2s^2)</span></div>
-<div class="line"><a name="l04478"></a><span class="lineno"> 4478</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l04479"></a><span class="lineno"> 4479</span> <span class="comment">     * df/d(my) = A/sqrt(2 pi s^2) exp(-(x-my)^2/2s^2) * (x-my)  / s^2</span></div>
-<div class="line"><a name="l04480"></a><span class="lineno"> 4480</span> <span class="comment">     *          = A * fac. * (x-my)  / s^2   - C</span></div>
-<div class="line"><a name="l04481"></a><span class="lineno"> 4481</span> <span class="comment">     * df/ds    = A/sqrt(2 pi s^2) exp(-(x-my)^2/2s^2) * ((x-my)^2/s^3 - 1/s)</span></div>
-<div class="line"><a name="l04482"></a><span class="lineno"> 4482</span> <span class="comment">     *          = A * fac. * ((x-my)^2 / s^2 - 1) / s</span></div>
-<div class="line"><a name="l04483"></a><span class="lineno"> 4483</span> <span class="comment">     * df/dA    = 1/sqrt(2 pi s^2) exp(-(x-my)^2/2s^2)</span></div>
-<div class="line"><a name="l04484"></a><span class="lineno"> 4484</span> <span class="comment">     *          = fac.</span></div>
-<div class="line"><a name="l04485"></a><span class="lineno"> 4485</span> <span class="comment">     * df/dB    = 1</span></div>
-<div class="line"><a name="l04486"></a><span class="lineno"> 4486</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l04487"></a><span class="lineno"> 4487</span> <span class="comment">     * df/dC    = x-my</span></div>
-<div class="line"><a name="l04488"></a><span class="lineno"> 4488</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l04489"></a><span class="lineno"> 4489</span>     </div>
-<div class="line"><a name="l04490"></a><span class="lineno"> 4490</span>     <span class="keywordflow">if</span> (sigma == 0)</div>
-<div class="line"><a name="l04491"></a><span class="lineno"> 4491</span>     {</div>
-<div class="line"><a name="l04492"></a><span class="lineno"> 4492</span>         <span class="comment">/* Derivative of Dirac's delta function */</span></div>
-<div class="line"><a name="l04493"></a><span class="lineno"> 4493</span>         result[0] = -C;</div>
-<div class="line"><a name="l04494"></a><span class="lineno"> 4494</span>         result[1] = 0;</div>
-<div class="line"><a name="l04495"></a><span class="lineno"> 4495</span>         result[2] = 0;</div>
-<div class="line"><a name="l04496"></a><span class="lineno"> 4496</span>         result[3] = 0;</div>
-<div class="line"><a name="l04497"></a><span class="lineno"> 4497</span>         result[4] = x[0];</div>
-<div class="line"><a name="l04498"></a><span class="lineno"> 4498</span>         <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04499"></a><span class="lineno"> 4499</span>     }</div>
-<div class="line"><a name="l04500"></a><span class="lineno"> 4500</span> </div>
-<div class="line"><a name="l04501"></a><span class="lineno"> 4501</span>     factor = exp( -(x[0] - my)*(x[0] - my)/(2*sigma*sigma) )</div>
-<div class="line"><a name="l04502"></a><span class="lineno"> 4502</span>     / (sqrt(2*M_PI*sigma*sigma));</div>
-<div class="line"><a name="l04503"></a><span class="lineno"> 4503</span> </div>
-<div class="line"><a name="l04504"></a><span class="lineno"> 4504</span>     result[0] = A * factor * (x[0]-my) / (sigma*sigma);</div>
-<div class="line"><a name="l04505"></a><span class="lineno"> 4505</span>     result[1] = A * factor * ((x[0]-my)*(x[0]-my) / (sigma*sigma) - 1) / sigma;</div>
-<div class="line"><a name="l04506"></a><span class="lineno"> 4506</span>     result[2] = factor;</div>
-<div class="line"><a name="l04507"></a><span class="lineno"> 4507</span>     result[3] = 1;</div>
-<div class="line"><a name="l04508"></a><span class="lineno"> 4508</span>     result[4] = x[0] - my;</div>
-<div class="line"><a name="l04509"></a><span class="lineno"> 4509</span> </div>
-<div class="line"><a name="l04510"></a><span class="lineno"> 4510</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l04511"></a><span class="lineno"> 4511</span> }</div>
-<div class="line"><a name="l04512"></a><span class="lineno"> 4512</span> </div>
-<div class="line"><a name="l04513"></a><span class="lineno"> 4513</span> </div>
-<div class="line"><a name="l04514"></a><span class="lineno"> 4514</span> </div>
-<div class="line"><a name="l04515"></a><span class="lineno"> 4515</span> </div>
-<div class="line"><a name="l04516"></a><span class="lineno"> 4516</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04529"></a><span class="lineno"> 4529</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04530"></a><span class="lineno"> 4530</span> cpl_image *</div>
-<div class="line"><a name="l04531"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga7146e7bab312652fdb0a9e88e838ef8d"> 4531</a></span> <a class="code" href="group__uves__utils.html#ga7146e7bab312652fdb0a9e88e838ef8d" title="Reconstruct echelle image from spectrum.">uves_create_image</a>(uves_iterate_position *pos, <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l04532"></a><span class="lineno"> 4532</span>                   <span class="keyword">const</span> cpl_image *spectrum, <span class="keyword">const</span> cpl_image *sky,</div>
-<div class="line"><a name="l04533"></a><span class="lineno"> 4533</span>                   <span class="keyword">const</span> cpl_image *cosmic_image,</div>
-<div class="line"><a name="l04534"></a><span class="lineno"> 4534</span>                   <span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l04535"></a><span class="lineno"> 4535</span>                   cpl_image **image_noise, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **image_header)</div>
-<div class="line"><a name="l04536"></a><span class="lineno"> 4536</span> {</div>
-<div class="line"><a name="l04537"></a><span class="lineno"> 4537</span>     cpl_image *image = NULL;</div>
-<div class="line"><a name="l04538"></a><span class="lineno"> 4538</span> </div>
-<div class="line"><a name="l04539"></a><span class="lineno"> 4539</span>     cpl_binary *bpm = NULL;</div>
-<div class="line"><a name="l04540"></a><span class="lineno"> 4540</span>     <span class="keywordtype">bool</span> loop_y = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l04541"></a><span class="lineno"> 4541</span> </div>
-<div class="line"><a name="l04542"></a><span class="lineno"> 4542</span>     <span class="keywordtype">double</span> ron = 3;</div>
-<div class="line"><a name="l04543"></a><span class="lineno"> 4543</span>     <span class="keywordtype">double</span> gain = 1.0; <span class="comment">//fixme</span></div>
-<div class="line"><a name="l04544"></a><span class="lineno"> 4544</span>     <span class="keywordtype">bool</span> new_format = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l04545"></a><span class="lineno"> 4545</span> </div>
-<div class="line"><a name="l04546"></a><span class="lineno"> 4546</span>     image        = cpl_image_new(pos->nx, pos->ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l04547"></a><span class="lineno"> 4547</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( image );</div>
-<div class="line"><a name="l04548"></a><span class="lineno"> 4548</span>     <span class="keywordflow">if</span> (image_noise != NULL) {</div>
-<div class="line"><a name="l04549"></a><span class="lineno"> 4549</span>         *image_noise = cpl_image_new(pos->nx, pos->ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l04550"></a><span class="lineno"> 4550</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( *image_noise );</div>
-<div class="line"><a name="l04551"></a><span class="lineno"> 4551</span>         cpl_image_add_scalar(*image_noise, 0.01); <span class="comment">/* To avoid non-positive values */</span></div>
-<div class="line"><a name="l04552"></a><span class="lineno"> 4552</span>     }</div>
-<div class="line"><a name="l04553"></a><span class="lineno"> 4553</span> </div>
-<div class="line"><a name="l04554"></a><span class="lineno"> 4554</span>     <span class="keywordflow">if</span> (image_header != NULL) {</div>
-<div class="line"><a name="l04555"></a><span class="lineno"> 4555</span>         *image_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l04556"></a><span class="lineno"> 4556</span>       </div>
-<div class="line"><a name="l04557"></a><span class="lineno"> 4557</span>         uves_propertylist_append_double(*image_header, UVES_MJDOBS, 60000);</div>
-<div class="line"><a name="l04558"></a><span class="lineno"> 4558</span>         uves_propertylist_append_double(*image_header, UVES_RON(new_format, chip), ron);</div>
-<div class="line"><a name="l04559"></a><span class="lineno"> 4559</span>         uves_propertylist_append_double(*image_header, UVES_GAIN(new_format, chip), gain);</div>
-<div class="line"><a name="l04560"></a><span class="lineno"> 4560</span>     }</div>
-<div class="line"><a name="l04561"></a><span class="lineno"> 4561</span> </div>
-<div class="line"><a name="l04562"></a><span class="lineno"> 4562</span>     <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l04563"></a><span class="lineno"> 4563</span>                                 1, pos->nx,</div>
-<div class="line"><a name="l04564"></a><span class="lineno"> 4564</span>                                 pos->minorder, pos->maxorder,</div>
-<div class="line"><a name="l04565"></a><span class="lineno"> 4565</span>                                 bpm,</div>
-<div class="line"><a name="l04566"></a><span class="lineno"> 4566</span>                                 loop_y);</div>
-<div class="line"><a name="l04567"></a><span class="lineno"> 4567</span>          !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos); </div>
-<div class="line"><a name="l04568"></a><span class="lineno"> 4568</span>          <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos)) {</div>
-<div class="line"><a name="l04569"></a><span class="lineno"> 4569</span>       </div>
-<div class="line"><a name="l04570"></a><span class="lineno"> 4570</span>         <span class="comment">/* Manual loop over y */</span></div>
-<div class="line"><a name="l04571"></a><span class="lineno"> 4571</span>         uves_extract_profile_set(profile, pos, NULL);</div>
-<div class="line"><a name="l04572"></a><span class="lineno"> 4572</span>         <span class="keywordflow">for</span> (pos->y = pos->ylow; pos->y <= pos->yhigh; pos->y++) {</div>
-<div class="line"><a name="l04573"></a><span class="lineno"> 4573</span> </div>
-<div class="line"><a name="l04574"></a><span class="lineno"> 4574</span>             <span class="comment">/* Get empirical and model profile */</span></div>
-<div class="line"><a name="l04575"></a><span class="lineno"> 4575</span>             <span class="keywordtype">double</span> flux, sky_flux;</div>
-<div class="line"><a name="l04576"></a><span class="lineno"> 4576</span>             <span class="keywordtype">int</span> bad;</div>
-<div class="line"><a name="l04577"></a><span class="lineno"> 4577</span>             <span class="keywordtype">int</span> spectrum_row = pos->order - pos->minorder + 1;</div>
-<div class="line"><a name="l04578"></a><span class="lineno"> 4578</span>             <span class="keywordtype">double</span> noise;</div>
-<div class="line"><a name="l04579"></a><span class="lineno"> 4579</span>             <span class="keywordtype">double</span> prof = uves_extract_profile_evaluate(profile, pos);</div>
-<div class="line"><a name="l04580"></a><span class="lineno"> 4580</span>           </div>
-<div class="line"><a name="l04581"></a><span class="lineno"> 4581</span>             <span class="keywordflow">if</span> (sky != NULL)</div>
-<div class="line"><a name="l04582"></a><span class="lineno"> 4582</span>                 {</div>
-<div class="line"><a name="l04583"></a><span class="lineno"> 4583</span>                     sky_flux = cpl_image_get(sky, pos->x, spectrum_row, &bad)/pos->sg.length;</div>
-<div class="line"><a name="l04584"></a><span class="lineno"> 4584</span>                 }</div>
-<div class="line"><a name="l04585"></a><span class="lineno"> 4585</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l04586"></a><span class="lineno"> 4586</span>                 {</div>
-<div class="line"><a name="l04587"></a><span class="lineno"> 4587</span>                     sky_flux = 0;</div>
-<div class="line"><a name="l04588"></a><span class="lineno"> 4588</span>                 }</div>
-<div class="line"><a name="l04589"></a><span class="lineno"> 4589</span> </div>
-<div class="line"><a name="l04590"></a><span class="lineno"> 4590</span>             flux = cpl_image_get(spectrum, pos->x, spectrum_row, &bad) * prof + sky_flux;</div>
-<div class="line"><a name="l04591"></a><span class="lineno"> 4591</span>           </div>
-<div class="line"><a name="l04592"></a><span class="lineno"> 4592</span>             <span class="comment">//fixme: check this formula</span></div>
-<div class="line"><a name="l04593"></a><span class="lineno"> 4593</span>             noise = sqrt(gain)*sqrt(ron*ron/(gain*gain) + sky_flux/gain + flux/gain);</div>
-<div class="line"><a name="l04594"></a><span class="lineno"> 4594</span> <span class="comment">//          uves_msg_error("%f", prof);</span></div>
-<div class="line"><a name="l04595"></a><span class="lineno"> 4595</span>             cpl_image_set(image, pos->x, pos->y, </div>
-<div class="line"><a name="l04596"></a><span class="lineno"> 4596</span>                           flux);</div>
-<div class="line"><a name="l04597"></a><span class="lineno"> 4597</span>             <span class="keywordflow">if</span> (image_noise != NULL) cpl_image_set(*image_noise, pos->x, pos->y, noise);</div>
-<div class="line"><a name="l04598"></a><span class="lineno"> 4598</span>           </div>
-<div class="line"><a name="l04599"></a><span class="lineno"> 4599</span>         }</div>
-<div class="line"><a name="l04600"></a><span class="lineno"> 4600</span>     }</div>
-<div class="line"><a name="l04601"></a><span class="lineno"> 4601</span> </div>
-<div class="line"><a name="l04602"></a><span class="lineno"> 4602</span>     <span class="keywordflow">if</span> (cosmic_image != NULL) {</div>
-<div class="line"><a name="l04603"></a><span class="lineno"> 4603</span>         <span class="keywordtype">double</span> cr_val = 2*cpl_image_get_max(image);</div>
-<div class="line"><a name="l04604"></a><span class="lineno"> 4604</span>         <span class="comment">/* assign high pixel value to CR pixels */</span></div>
-<div class="line"><a name="l04605"></a><span class="lineno"> 4605</span>         </div>
-<div class="line"><a name="l04606"></a><span class="lineno"> 4606</span>         loop_y = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l04607"></a><span class="lineno"> 4607</span>         </div>
-<div class="line"><a name="l04608"></a><span class="lineno"> 4608</span>         <span class="keywordflow">for</span> (<a class="code" href="group__uves__extract__iterate.html#ga6c4c5f1101f32bd7dcc6a219429cfdcb" title="Initialize iteration.">uves_iterate_set_first</a>(pos,</div>
-<div class="line"><a name="l04609"></a><span class="lineno"> 4609</span>                                     1, pos->nx,</div>
-<div class="line"><a name="l04610"></a><span class="lineno"> 4610</span>                                     pos->minorder, pos->maxorder,</div>
-<div class="line"><a name="l04611"></a><span class="lineno"> 4611</span>                                     bpm,</div>
-<div class="line"><a name="l04612"></a><span class="lineno"> 4612</span>                                     loop_y);</div>
-<div class="line"><a name="l04613"></a><span class="lineno"> 4613</span>              !<a class="code" href="group__uves__extract__iterate.html#gae0b4f4387f12b425233172516089f961" title="Finished iterating?">uves_iterate_finished</a>(pos); </div>
-<div class="line"><a name="l04614"></a><span class="lineno"> 4614</span>              <a class="code" href="group__uves__extract__iterate.html#ga5d42b2cc98942efc016cf9ec572fb58a" title="Get next position.">uves_iterate_increment</a>(pos)) {</div>
-<div class="line"><a name="l04615"></a><span class="lineno"> 4615</span>             </div>
-<div class="line"><a name="l04616"></a><span class="lineno"> 4616</span>             <span class="keywordtype">int</span> is_rejected;</div>
-<div class="line"><a name="l04617"></a><span class="lineno"> 4617</span>             <span class="keywordflow">if</span> (cpl_image_get(cosmic_image, pos->x, pos->y, &is_rejected) > 0) {</div>
-<div class="line"><a name="l04618"></a><span class="lineno"> 4618</span>                 cpl_image_set(image, pos->x, pos->y, cr_val);</div>
-<div class="line"><a name="l04619"></a><span class="lineno"> 4619</span>             }</div>
-<div class="line"><a name="l04620"></a><span class="lineno"> 4620</span>         }</div>
-<div class="line"><a name="l04621"></a><span class="lineno"> 4621</span>     }</div>
-<div class="line"><a name="l04622"></a><span class="lineno"> 4622</span>     </div>
-<div class="line"><a name="l04623"></a><span class="lineno"> 4623</span>   cleanup:</div>
-<div class="line"><a name="l04624"></a><span class="lineno"> 4624</span>     <span class="keywordflow">return</span> image;</div>
-<div class="line"><a name="l04625"></a><span class="lineno"> 4625</span> }</div>
-<div class="line"><a name="l04626"></a><span class="lineno"> 4626</span> </div>
-<div class="line"><a name="l04627"></a><span class="lineno"> 4627</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l04628"></a><span class="lineno"> 4628</span> uves_frameset_dump(cpl_frameset* <span class="keyword">set</span>)</div>
-<div class="line"><a name="l04629"></a><span class="lineno"> 4629</span> {</div>
-<div class="line"><a name="l04630"></a><span class="lineno"> 4630</span> </div>
-<div class="line"><a name="l04631"></a><span class="lineno"> 4631</span>   cpl_frame* frm=NULL;</div>
-<div class="line"><a name="l04632"></a><span class="lineno"> 4632</span>   <span class="keywordtype">int</span> sz=0;</div>
-<div class="line"><a name="l04633"></a><span class="lineno"> 4633</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l04634"></a><span class="lineno"> 4634</span> </div>
-<div class="line"><a name="l04635"></a><span class="lineno"> 4635</span>   cknull(<span class="keyword">set</span>,<span class="stringliteral">"Null input frameset"</span>);</div>
-<div class="line"><a name="l04636"></a><span class="lineno"> 4636</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sz=cpl_frameset_get_size(<span class="keyword">set</span>));</div>
-<div class="line"><a name="l04637"></a><span class="lineno"> 4637</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(frm=cpl_frameset_get_first(<span class="keyword">set</span>));</div>
-<div class="line"><a name="l04638"></a><span class="lineno"> 4638</span>   <span class="keywordflow">do</span>{</div>
-<div class="line"><a name="l04639"></a><span class="lineno"> 4639</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"frame %d tag %s filename %s group %d"</span>,</div>
-<div class="line"><a name="l04640"></a><span class="lineno"> 4640</span>          i,</div>
-<div class="line"><a name="l04641"></a><span class="lineno"> 4641</span>              cpl_frame_get_tag(frm),</div>
-<div class="line"><a name="l04642"></a><span class="lineno"> 4642</span>              cpl_frame_get_filename(frm),</div>
-<div class="line"><a name="l04643"></a><span class="lineno"> 4643</span>              cpl_frame_get_group(frm));</div>
-<div class="line"><a name="l04644"></a><span class="lineno"> 4644</span>     i++;</div>
-<div class="line"><a name="l04645"></a><span class="lineno"> 4645</span>   } <span class="keywordflow">while</span> ((frm=cpl_frameset_get_next(<span class="keyword">set</span>)) != NULL);</div>
-<div class="line"><a name="l04646"></a><span class="lineno"> 4646</span> </div>
-<div class="line"><a name="l04647"></a><span class="lineno"> 4647</span>   cleanup:</div>
-<div class="line"><a name="l04648"></a><span class="lineno"> 4648</span> </div>
-<div class="line"><a name="l04649"></a><span class="lineno"> 4649</span>   return ;</div>
-<div class="line"><a name="l04650"></a><span class="lineno"> 4650</span> }</div>
-<div class="line"><a name="l04651"></a><span class="lineno"> 4651</span> </div>
-<div class="line"><a name="l04652"></a><span class="lineno"> 4652</span> </div>
-<div class="line"><a name="l04653"></a><span class="lineno"> 4653</span> </div>
-<div class="line"><a name="l04654"></a><span class="lineno"> 4654</span> </div>
-<div class="line"><a name="l04655"></a><span class="lineno"> 4655</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04669"></a><span class="lineno"> 4669</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04670"></a><span class="lineno"> 4670</span> </div>
-<div class="line"><a name="l04671"></a><span class="lineno"> 4671</span> cpl_image *</div>
-<div class="line"><a name="l04672"></a><span class="lineno"> 4672</span> uves_image_smooth_x(cpl_image * inp, <span class="keyword">const</span> <span class="keywordtype">int</span> r)</div>
-<div class="line"><a name="l04673"></a><span class="lineno"> 4673</span> {</div>
-<div class="line"><a name="l04674"></a><span class="lineno"> 4674</span> </div>
-<div class="line"><a name="l04675"></a><span class="lineno"> 4675</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l04676"></a><span class="lineno"> 4676</span> <span class="comment">   @param xp     x-value to interpolate</span></div>
-<div class="line"><a name="l04677"></a><span class="lineno"> 4677</span> <span class="comment">   @param x      x-values</span></div>
-<div class="line"><a name="l04678"></a><span class="lineno"> 4678</span> <span class="comment">   @param y      y-values</span></div>
-<div class="line"><a name="l04679"></a><span class="lineno"> 4679</span> <span class="comment">   @param n      array length</span></div>
-<div class="line"><a name="l04680"></a><span class="lineno"> 4680</span> <span class="comment">   @param istart    (input/output) initial row (set to 0 to search all row)</span></div>
-<div class="line"><a name="l04681"></a><span class="lineno"> 4681</span> <span class="comment"></span></div>
-<div class="line"><a name="l04682"></a><span class="lineno"> 4682</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l04683"></a><span class="lineno"> 4683</span>   <span class="keywordtype">float</span>* pinp=NULL;</div>
-<div class="line"><a name="l04684"></a><span class="lineno"> 4684</span>   <span class="keywordtype">float</span>* pout=NULL;</div>
-<div class="line"><a name="l04685"></a><span class="lineno"> 4685</span>   <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l04686"></a><span class="lineno"> 4686</span>   <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l04687"></a><span class="lineno"> 4687</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l04688"></a><span class="lineno"> 4688</span>   <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l04689"></a><span class="lineno"> 4689</span>   <span class="keywordtype">int</span> k=0;</div>
-<div class="line"><a name="l04690"></a><span class="lineno"> 4690</span> </div>
-<div class="line"><a name="l04691"></a><span class="lineno"> 4691</span>   cpl_image* out=NULL;</div>
-<div class="line"><a name="l04692"></a><span class="lineno"> 4692</span> </div>
-<div class="line"><a name="l04693"></a><span class="lineno"> 4693</span>   cknull(inp,<span class="stringliteral">"Null in put image, exit"</span>);</div>
-<div class="line"><a name="l04694"></a><span class="lineno"> 4694</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(out=cpl_image_duplicate(inp));</div>
-<div class="line"><a name="l04695"></a><span class="lineno"> 4695</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sx=cpl_image_get_size_x(inp));</div>
-<div class="line"><a name="l04696"></a><span class="lineno"> 4696</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sy=cpl_image_get_size_y(inp));</div>
-<div class="line"><a name="l04697"></a><span class="lineno"> 4697</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pinp=cpl_image_get_data_float(inp));</div>
-<div class="line"><a name="l04698"></a><span class="lineno"> 4698</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pout=cpl_image_get_data_float(out));</div>
-<div class="line"><a name="l04699"></a><span class="lineno"> 4699</span>   <span class="keywordflow">for</span>(j=0;j<sy;j++) {</div>
-<div class="line"><a name="l04700"></a><span class="lineno"> 4700</span>     <span class="keywordflow">for</span>(i=r;i<sx-r;i++) {</div>
-<div class="line"><a name="l04701"></a><span class="lineno"> 4701</span>       <span class="keywordflow">for</span>(k=-r;k<r;k++) {</div>
-<div class="line"><a name="l04702"></a><span class="lineno"> 4702</span>     pout[j*sx+i]+=pinp[j*sx+i+k];</div>
-<div class="line"><a name="l04703"></a><span class="lineno"> 4703</span>       }</div>
-<div class="line"><a name="l04704"></a><span class="lineno"> 4704</span>       pout[j*sx+i]/=2*r;</div>
-<div class="line"><a name="l04705"></a><span class="lineno"> 4705</span>     }</div>
-<div class="line"><a name="l04706"></a><span class="lineno"> 4706</span>   }</div>
-<div class="line"><a name="l04707"></a><span class="lineno"> 4707</span> </div>
-<div class="line"><a name="l04708"></a><span class="lineno"> 4708</span>  cleanup:</div>
-<div class="line"><a name="l04709"></a><span class="lineno"> 4709</span> </div>
-<div class="line"><a name="l04710"></a><span class="lineno"> 4710</span>   <span class="keywordflow">if</span>(cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l04711"></a><span class="lineno"> 4711</span>     <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l04712"></a><span class="lineno"> 4712</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04713"></a><span class="lineno"> 4713</span>     <span class="keywordflow">return</span> out;</div>
-<div class="line"><a name="l04714"></a><span class="lineno"> 4714</span> </div>
-<div class="line"><a name="l04715"></a><span class="lineno"> 4715</span>   }</div>
-<div class="line"><a name="l04716"></a><span class="lineno"> 4716</span> </div>
-<div class="line"><a name="l04717"></a><span class="lineno"> 4717</span> }</div>
-<div class="line"><a name="l04718"></a><span class="lineno"> 4718</span> </div>
-<div class="line"><a name="l04719"></a><span class="lineno"> 4719</span> </div>
-<div class="line"><a name="l04720"></a><span class="lineno"> 4720</span> </div>
-<div class="line"><a name="l04721"></a><span class="lineno"> 4721</span> </div>
-<div class="line"><a name="l04722"></a><span class="lineno"> 4722</span> </div>
-<div class="line"><a name="l04723"></a><span class="lineno"> 4723</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04737"></a><span class="lineno"> 4737</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04738"></a><span class="lineno"> 4738</span> </div>
-<div class="line"><a name="l04739"></a><span class="lineno"> 4739</span> cpl_image *</div>
-<div class="line"><a name="l04740"></a><span class="lineno"> 4740</span> uves_image_smooth_y(cpl_image * inp, <span class="keyword">const</span> <span class="keywordtype">int</span> r)</div>
-<div class="line"><a name="l04741"></a><span class="lineno"> 4741</span> {</div>
-<div class="line"><a name="l04742"></a><span class="lineno"> 4742</span> </div>
-<div class="line"><a name="l04743"></a><span class="lineno"> 4743</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l04744"></a><span class="lineno"> 4744</span> <span class="comment">   @param xp     x-value to interpolate</span></div>
-<div class="line"><a name="l04745"></a><span class="lineno"> 4745</span> <span class="comment">   @param x      x-values</span></div>
-<div class="line"><a name="l04746"></a><span class="lineno"> 4746</span> <span class="comment">   @param y      y-values</span></div>
-<div class="line"><a name="l04747"></a><span class="lineno"> 4747</span> <span class="comment">   @param n      array length</span></div>
-<div class="line"><a name="l04748"></a><span class="lineno"> 4748</span> <span class="comment">   @param istart    (input/output) initial row (set to 0 to search all row)</span></div>
-<div class="line"><a name="l04749"></a><span class="lineno"> 4749</span> <span class="comment"></span></div>
-<div class="line"><a name="l04750"></a><span class="lineno"> 4750</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l04751"></a><span class="lineno"> 4751</span>   <span class="keywordtype">float</span>* pinp=NULL;</div>
-<div class="line"><a name="l04752"></a><span class="lineno"> 4752</span>   <span class="keywordtype">float</span>* pout=NULL;</div>
-<div class="line"><a name="l04753"></a><span class="lineno"> 4753</span>   <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l04754"></a><span class="lineno"> 4754</span>   <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l04755"></a><span class="lineno"> 4755</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l04756"></a><span class="lineno"> 4756</span>   <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l04757"></a><span class="lineno"> 4757</span>   <span class="keywordtype">int</span> k=0;</div>
-<div class="line"><a name="l04758"></a><span class="lineno"> 4758</span> </div>
-<div class="line"><a name="l04759"></a><span class="lineno"> 4759</span>   cpl_image* out=NULL;</div>
-<div class="line"><a name="l04760"></a><span class="lineno"> 4760</span> </div>
-<div class="line"><a name="l04761"></a><span class="lineno"> 4761</span>   cknull(inp,<span class="stringliteral">"Null in put image, exit"</span>);</div>
-<div class="line"><a name="l04762"></a><span class="lineno"> 4762</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(out=cpl_image_duplicate(inp));</div>
-<div class="line"><a name="l04763"></a><span class="lineno"> 4763</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sx=cpl_image_get_size_x(inp));</div>
-<div class="line"><a name="l04764"></a><span class="lineno"> 4764</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sy=cpl_image_get_size_y(inp));</div>
-<div class="line"><a name="l04765"></a><span class="lineno"> 4765</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pinp=cpl_image_get_data_float(inp));</div>
-<div class="line"><a name="l04766"></a><span class="lineno"> 4766</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pout=cpl_image_get_data_float(out));</div>
-<div class="line"><a name="l04767"></a><span class="lineno"> 4767</span>   <span class="keywordflow">for</span>(j=r;j<sy-r;j++) {</div>
-<div class="line"><a name="l04768"></a><span class="lineno"> 4768</span>     <span class="keywordflow">for</span>(i=0;i<sx;i++) {</div>
-<div class="line"><a name="l04769"></a><span class="lineno"> 4769</span>       <span class="keywordflow">for</span>(k=-r;k<r;k++) {</div>
-<div class="line"><a name="l04770"></a><span class="lineno"> 4770</span>     pout[j*sx+i]+=pinp[(j+k)*sx+i];</div>
-<div class="line"><a name="l04771"></a><span class="lineno"> 4771</span>       }</div>
-<div class="line"><a name="l04772"></a><span class="lineno"> 4772</span>       pout[j*sx+i]/=2*r;</div>
-<div class="line"><a name="l04773"></a><span class="lineno"> 4773</span>     }</div>
-<div class="line"><a name="l04774"></a><span class="lineno"> 4774</span>   }</div>
-<div class="line"><a name="l04775"></a><span class="lineno"> 4775</span> </div>
-<div class="line"><a name="l04776"></a><span class="lineno"> 4776</span>  cleanup:</div>
-<div class="line"><a name="l04777"></a><span class="lineno"> 4777</span> </div>
-<div class="line"><a name="l04778"></a><span class="lineno"> 4778</span>   <span class="keywordflow">if</span>(cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l04779"></a><span class="lineno"> 4779</span>     <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l04780"></a><span class="lineno"> 4780</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04781"></a><span class="lineno"> 4781</span>     <span class="keywordflow">return</span> out;</div>
-<div class="line"><a name="l04782"></a><span class="lineno"> 4782</span> </div>
-<div class="line"><a name="l04783"></a><span class="lineno"> 4783</span>   }</div>
-<div class="line"><a name="l04784"></a><span class="lineno"> 4784</span> </div>
-<div class="line"><a name="l04785"></a><span class="lineno"> 4785</span> }</div>
-<div class="line"><a name="l04786"></a><span class="lineno"> 4786</span> </div>
-<div class="line"><a name="l04787"></a><span class="lineno"> 4787</span> </div>
-<div class="line"><a name="l04788"></a><span class="lineno"> 4788</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04802"></a><span class="lineno"> 4802</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04803"></a><span class="lineno"> 4803</span> </div>
-<div class="line"><a name="l04804"></a><span class="lineno"> 4804</span> cpl_image *</div>
-<div class="line"><a name="l04805"></a><span class="lineno"> 4805</span> uves_image_smooth_mean_x(cpl_image * inp, <span class="keyword">const</span> <span class="keywordtype">int</span> r)</div>
-<div class="line"><a name="l04806"></a><span class="lineno"> 4806</span> {</div>
-<div class="line"><a name="l04807"></a><span class="lineno"> 4807</span> </div>
-<div class="line"><a name="l04808"></a><span class="lineno"> 4808</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l04809"></a><span class="lineno"> 4809</span> <span class="comment">   @param xp     x-value to interpolate</span></div>
-<div class="line"><a name="l04810"></a><span class="lineno"> 4810</span> <span class="comment">   @param x      x-values</span></div>
-<div class="line"><a name="l04811"></a><span class="lineno"> 4811</span> <span class="comment">   @param y      y-values</span></div>
-<div class="line"><a name="l04812"></a><span class="lineno"> 4812</span> <span class="comment">   @param n      array length</span></div>
-<div class="line"><a name="l04813"></a><span class="lineno"> 4813</span> <span class="comment">   @param istart    (input/output) initial row (set to 0 to search all row)</span></div>
-<div class="line"><a name="l04814"></a><span class="lineno"> 4814</span> <span class="comment"></span></div>
-<div class="line"><a name="l04815"></a><span class="lineno"> 4815</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l04816"></a><span class="lineno"> 4816</span>   <span class="keywordtype">float</span>* pinp=NULL;</div>
-<div class="line"><a name="l04817"></a><span class="lineno"> 4817</span>   <span class="keywordtype">float</span>* pout=NULL;</div>
-<div class="line"><a name="l04818"></a><span class="lineno"> 4818</span>   <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l04819"></a><span class="lineno"> 4819</span>   <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l04820"></a><span class="lineno"> 4820</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l04821"></a><span class="lineno"> 4821</span>   <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l04822"></a><span class="lineno"> 4822</span>   <span class="keywordtype">int</span> k=0;</div>
-<div class="line"><a name="l04823"></a><span class="lineno"> 4823</span> </div>
-<div class="line"><a name="l04824"></a><span class="lineno"> 4824</span>   cpl_image* out=NULL;</div>
-<div class="line"><a name="l04825"></a><span class="lineno"> 4825</span> </div>
-<div class="line"><a name="l04826"></a><span class="lineno"> 4826</span>   cknull(inp,<span class="stringliteral">"Null in put image, exit"</span>);</div>
-<div class="line"><a name="l04827"></a><span class="lineno"> 4827</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(out=cpl_image_duplicate(inp));</div>
-<div class="line"><a name="l04828"></a><span class="lineno"> 4828</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sx=cpl_image_get_size_x(inp));</div>
-<div class="line"><a name="l04829"></a><span class="lineno"> 4829</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sy=cpl_image_get_size_y(inp));</div>
-<div class="line"><a name="l04830"></a><span class="lineno"> 4830</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pinp=cpl_image_get_data_float(inp));</div>
-<div class="line"><a name="l04831"></a><span class="lineno"> 4831</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pout=cpl_image_get_data_float(out));</div>
-<div class="line"><a name="l04832"></a><span class="lineno"> 4832</span>   <span class="keywordflow">for</span>(j=0;j<sy;j++) {</div>
-<div class="line"><a name="l04833"></a><span class="lineno"> 4833</span>     <span class="keywordflow">for</span>(i=r;i<sx-r;i++) {</div>
-<div class="line"><a name="l04834"></a><span class="lineno"> 4834</span>       <span class="keywordflow">for</span>(k=-r;k<r;k++) {</div>
-<div class="line"><a name="l04835"></a><span class="lineno"> 4835</span>     pout[j*sx+i]+=pinp[j*sx+i+k];</div>
-<div class="line"><a name="l04836"></a><span class="lineno"> 4836</span>       }</div>
-<div class="line"><a name="l04837"></a><span class="lineno"> 4837</span>       pout[j*sx+i]/=2*r;</div>
-<div class="line"><a name="l04838"></a><span class="lineno"> 4838</span>     }</div>
-<div class="line"><a name="l04839"></a><span class="lineno"> 4839</span>   }</div>
-<div class="line"><a name="l04840"></a><span class="lineno"> 4840</span> </div>
-<div class="line"><a name="l04841"></a><span class="lineno"> 4841</span>  cleanup:</div>
-<div class="line"><a name="l04842"></a><span class="lineno"> 4842</span> </div>
-<div class="line"><a name="l04843"></a><span class="lineno"> 4843</span>   <span class="keywordflow">if</span>(cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l04844"></a><span class="lineno"> 4844</span>     <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l04845"></a><span class="lineno"> 4845</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04846"></a><span class="lineno"> 4846</span>     <span class="keywordflow">return</span> out;</div>
-<div class="line"><a name="l04847"></a><span class="lineno"> 4847</span> </div>
-<div class="line"><a name="l04848"></a><span class="lineno"> 4848</span>   }</div>
-<div class="line"><a name="l04849"></a><span class="lineno"> 4849</span> </div>
-<div class="line"><a name="l04850"></a><span class="lineno"> 4850</span> }</div>
-<div class="line"><a name="l04851"></a><span class="lineno"> 4851</span> </div>
-<div class="line"><a name="l04852"></a><span class="lineno"> 4852</span> </div>
-<div class="line"><a name="l04853"></a><span class="lineno"> 4853</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04867"></a><span class="lineno"> 4867</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04868"></a><span class="lineno"> 4868</span> </div>
-<div class="line"><a name="l04869"></a><span class="lineno"> 4869</span> cpl_image *</div>
-<div class="line"><a name="l04870"></a><span class="lineno"> 4870</span> uves_image_smooth_median_x(cpl_image * inp, <span class="keyword">const</span> <span class="keywordtype">int</span> r)</div>
-<div class="line"><a name="l04871"></a><span class="lineno"> 4871</span> {</div>
-<div class="line"><a name="l04872"></a><span class="lineno"> 4872</span> </div>
-<div class="line"><a name="l04873"></a><span class="lineno"> 4873</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l04874"></a><span class="lineno"> 4874</span> <span class="comment">   @param xp     x-value to interpolate</span></div>
-<div class="line"><a name="l04875"></a><span class="lineno"> 4875</span> <span class="comment">   @param x      x-values</span></div>
-<div class="line"><a name="l04876"></a><span class="lineno"> 4876</span> <span class="comment">   @param y      y-values</span></div>
-<div class="line"><a name="l04877"></a><span class="lineno"> 4877</span> <span class="comment">   @param n      array length</span></div>
-<div class="line"><a name="l04878"></a><span class="lineno"> 4878</span> <span class="comment">   @param istart    (input/output) initial row (set to 0 to search all row)</span></div>
-<div class="line"><a name="l04879"></a><span class="lineno"> 4879</span> <span class="comment"></span></div>
-<div class="line"><a name="l04880"></a><span class="lineno"> 4880</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l04881"></a><span class="lineno"> 4881</span>   <span class="keywordtype">float</span>* pout=NULL;</div>
-<div class="line"><a name="l04882"></a><span class="lineno"> 4882</span>   <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l04883"></a><span class="lineno"> 4883</span>   <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l04884"></a><span class="lineno"> 4884</span>   <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l04885"></a><span class="lineno"> 4885</span>   <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l04886"></a><span class="lineno"> 4886</span> </div>
-<div class="line"><a name="l04887"></a><span class="lineno"> 4887</span>   cpl_image* out=NULL;</div>
-<div class="line"><a name="l04888"></a><span class="lineno"> 4888</span> </div>
-<div class="line"><a name="l04889"></a><span class="lineno"> 4889</span> </div>
-<div class="line"><a name="l04890"></a><span class="lineno"> 4890</span>   cknull(inp,<span class="stringliteral">"Null in put image, exit"</span>);</div>
-<div class="line"><a name="l04891"></a><span class="lineno"> 4891</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(out=cpl_image_duplicate(inp));</div>
-<div class="line"><a name="l04892"></a><span class="lineno"> 4892</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sx=cpl_image_get_size_x(inp));</div>
-<div class="line"><a name="l04893"></a><span class="lineno"> 4893</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sy=cpl_image_get_size_y(inp));</div>
-<div class="line"><a name="l04894"></a><span class="lineno"> 4894</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pout=cpl_image_get_data_float(out));</div>
-<div class="line"><a name="l04895"></a><span class="lineno"> 4895</span> </div>
-<div class="line"><a name="l04896"></a><span class="lineno"> 4896</span>   <span class="keywordflow">for</span>(j=1;j<sy;j++) {</div>
-<div class="line"><a name="l04897"></a><span class="lineno"> 4897</span>     <span class="keywordflow">for</span>(i=1+r;i<sx-r;i++) {</div>
-<div class="line"><a name="l04898"></a><span class="lineno"> 4898</span>       pout[j*sx+i]=(float)cpl_image_get_median_window(inp,i,j,i+r,j);</div>
-<div class="line"><a name="l04899"></a><span class="lineno"> 4899</span>     }</div>
-<div class="line"><a name="l04900"></a><span class="lineno"> 4900</span>   }</div>
-<div class="line"><a name="l04901"></a><span class="lineno"> 4901</span> </div>
-<div class="line"><a name="l04902"></a><span class="lineno"> 4902</span>  cleanup:</div>
-<div class="line"><a name="l04903"></a><span class="lineno"> 4903</span> </div>
-<div class="line"><a name="l04904"></a><span class="lineno"> 4904</span>   <span class="keywordflow">if</span>(cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l04905"></a><span class="lineno"> 4905</span>     <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l04906"></a><span class="lineno"> 4906</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04907"></a><span class="lineno"> 4907</span>     <span class="keywordflow">return</span> out;</div>
-<div class="line"><a name="l04908"></a><span class="lineno"> 4908</span> </div>
-<div class="line"><a name="l04909"></a><span class="lineno"> 4909</span>   }</div>
-<div class="line"><a name="l04910"></a><span class="lineno"> 4910</span> </div>
-<div class="line"><a name="l04911"></a><span class="lineno"> 4911</span> }</div>
-<div class="line"><a name="l04912"></a><span class="lineno"> 4912</span> </div>
-<div class="line"><a name="l04913"></a><span class="lineno"> 4913</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04926"></a><span class="lineno"> 4926</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l04927"></a><span class="lineno"> 4927</span> </div>
-<div class="line"><a name="l04928"></a><span class="lineno"> 4928</span> cpl_image *</div>
-<div class="line"><a name="l04929"></a><span class="lineno"> 4929</span> uves_image_smooth_fft(cpl_image * inp, <span class="keyword">const</span> <span class="keywordtype">int</span> fx)</div>
-<div class="line"><a name="l04930"></a><span class="lineno"> 4930</span> {</div>
-<div class="line"><a name="l04931"></a><span class="lineno"> 4931</span> </div>
-<div class="line"><a name="l04932"></a><span class="lineno"> 4932</span>   <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l04933"></a><span class="lineno"> 4933</span>   <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l04934"></a><span class="lineno"> 4934</span> </div>
-<div class="line"><a name="l04935"></a><span class="lineno"> 4935</span>   cpl_image* out=NULL;</div>
-<div class="line"><a name="l04936"></a><span class="lineno"> 4936</span>   cpl_image* im_re=NULL;</div>
-<div class="line"><a name="l04937"></a><span class="lineno"> 4937</span>   cpl_image* im_im=NULL;</div>
-<div class="line"><a name="l04938"></a><span class="lineno"> 4938</span>   cpl_image* ifft_re=NULL;</div>
-<div class="line"><a name="l04939"></a><span class="lineno"> 4939</span>   cpl_image* ifft_im=NULL;</div>
-<div class="line"><a name="l04940"></a><span class="lineno"> 4940</span>   cpl_image* filter=NULL; </div>
-<div class="line"><a name="l04941"></a><span class="lineno"> 4941</span> </div>
-<div class="line"><a name="l04942"></a><span class="lineno"> 4942</span>   <span class="keywordtype">int</span> sigma_x=fx;</div>
-<div class="line"><a name="l04943"></a><span class="lineno"> 4943</span>   <span class="keywordtype">int</span> sigma_y=0;</div>
-<div class="line"><a name="l04944"></a><span class="lineno"> 4944</span> </div>
-<div class="line"><a name="l04945"></a><span class="lineno"> 4945</span>   cknull(inp,<span class="stringliteral">"Null in put image, exit"</span>);</div>
-<div class="line"><a name="l04946"></a><span class="lineno"> 4946</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(im_re = cpl_image_cast(inp, CPL_TYPE_DOUBLE));</div>
-<div class="line"><a name="l04947"></a><span class="lineno"> 4947</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(im_im = cpl_image_cast(inp, CPL_TYPE_DOUBLE));</div>
-<div class="line"><a name="l04948"></a><span class="lineno"> 4948</span> </div>
-<div class="line"><a name="l04949"></a><span class="lineno"> 4949</span>   <span class="comment">// Compute FFT</span></div>
-<div class="line"><a name="l04950"></a><span class="lineno"> 4950</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_fft(im_re,im_im,CPL_FFT_DEFAULT));</div>
-<div class="line"><a name="l04951"></a><span class="lineno"> 4951</span> </div>
-<div class="line"><a name="l04952"></a><span class="lineno"> 4952</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sx=cpl_image_get_size_x(inp));</div>
-<div class="line"><a name="l04953"></a><span class="lineno"> 4953</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sy=cpl_image_get_size_y(inp));</div>
-<div class="line"><a name="l04954"></a><span class="lineno"> 4954</span>   sigma_x=sx;</div>
-<div class="line"><a name="l04955"></a><span class="lineno"> 4955</span> </div>
-<div class="line"><a name="l04956"></a><span class="lineno"> 4956</span>   <span class="comment">//Generates filter image</span></div>
-<div class="line"><a name="l04957"></a><span class="lineno"> 4957</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(filter = <a class="code" href="group__uves__utils.html#gab6d9ffe3669b75518bf7108681c52fa6" title="Generate a low pass filter for FFT convolution .">uves_gen_lowpass</a>(sx,sy,sigma_x,sigma_y));</div>
-<div class="line"><a name="l04958"></a><span class="lineno"> 4958</span> </div>
-<div class="line"><a name="l04959"></a><span class="lineno"> 4959</span>   <span class="comment">//Apply filter</span></div>
-<div class="line"><a name="l04960"></a><span class="lineno"> 4960</span>   cpl_image_multiply(im_re,filter);</div>
-<div class="line"><a name="l04961"></a><span class="lineno"> 4961</span>   cpl_image_multiply(im_im,filter);</div>
-<div class="line"><a name="l04962"></a><span class="lineno"> 4962</span> </div>
-<div class="line"><a name="l04963"></a><span class="lineno"> 4963</span>   uves_free_image(&filter);</div>
-<div class="line"><a name="l04964"></a><span class="lineno"> 4964</span> </div>
-<div class="line"><a name="l04965"></a><span class="lineno"> 4965</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ifft_re = cpl_image_duplicate(im_re));</div>
-<div class="line"><a name="l04966"></a><span class="lineno"> 4966</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ifft_im = cpl_image_duplicate(im_im));</div>
-<div class="line"><a name="l04967"></a><span class="lineno"> 4967</span> </div>
-<div class="line"><a name="l04968"></a><span class="lineno"> 4968</span>   uves_free_image(&im_re);</div>
-<div class="line"><a name="l04969"></a><span class="lineno"> 4969</span>   uves_free_image(&im_im);</div>
-<div class="line"><a name="l04970"></a><span class="lineno"> 4970</span> </div>
-<div class="line"><a name="l04971"></a><span class="lineno"> 4971</span>   <span class="comment">//Computes FFT-INVERSE</span></div>
-<div class="line"><a name="l04972"></a><span class="lineno"> 4972</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_fft(ifft_re,ifft_im,CPL_FFT_INVERSE));</div>
-<div class="line"><a name="l04973"></a><span class="lineno"> 4973</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(out = cpl_image_cast(ifft_re, CPL_TYPE_FLOAT));</div>
-<div class="line"><a name="l04974"></a><span class="lineno"> 4974</span> </div>
-<div class="line"><a name="l04975"></a><span class="lineno"> 4975</span>  cleanup:</div>
-<div class="line"><a name="l04976"></a><span class="lineno"> 4976</span> </div>
-<div class="line"><a name="l04977"></a><span class="lineno"> 4977</span>   uves_free_image(&ifft_re);</div>
-<div class="line"><a name="l04978"></a><span class="lineno"> 4978</span>   uves_free_image(&ifft_im);</div>
-<div class="line"><a name="l04979"></a><span class="lineno"> 4979</span>   uves_free_image(&filter);</div>
-<div class="line"><a name="l04980"></a><span class="lineno"> 4980</span>   uves_free_image(&im_re);</div>
-<div class="line"><a name="l04981"></a><span class="lineno"> 4981</span>   uves_free_image(&im_im);</div>
-<div class="line"><a name="l04982"></a><span class="lineno"> 4982</span> </div>
-<div class="line"><a name="l04983"></a><span class="lineno"> 4983</span>   <span class="keywordflow">if</span>(cpl_error_get_code() != CPL_ERROR_NONE) {</div>
-<div class="line"><a name="l04984"></a><span class="lineno"> 4984</span>     <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l04985"></a><span class="lineno"> 4985</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l04986"></a><span class="lineno"> 4986</span>     <span class="keywordflow">return</span> out;</div>
-<div class="line"><a name="l04987"></a><span class="lineno"> 4987</span>   }</div>
-<div class="line"><a name="l04988"></a><span class="lineno"> 4988</span> </div>
-<div class="line"><a name="l04989"></a><span class="lineno"> 4989</span> }</div>
-<div class="line"><a name="l04990"></a><span class="lineno"> 4990</span> </div>
-<div class="line"><a name="l04991"></a><span class="lineno"> 4991</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05000"></a><span class="lineno"> 5000</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05001"></a><span class="lineno"> 5001</span> cpl_vector * </div>
-<div class="line"><a name="l05002"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga9a60246b0b018cbee0593ced9361484f"> 5002</a></span> <a class="code" href="group__uves__utils.html#ga9a60246b0b018cbee0593ced9361484f" title="Computes kappa-sigma clean mean (free bad pixels) for each input image of the input imagelist...">uves_imagelist_get_clean_mean_levels</a>(cpl_imagelist* iml, <span class="keywordtype">double</span> kappa)</div>
-<div class="line"><a name="l05003"></a><span class="lineno"> 5003</span> {</div>
-<div class="line"><a name="l05004"></a><span class="lineno"> 5004</span> </div>
-<div class="line"><a name="l05005"></a><span class="lineno"> 5005</span>    cpl_image* img=NULL;</div>
-<div class="line"><a name="l05006"></a><span class="lineno"> 5006</span>    <span class="keywordtype">int</span> size=0;</div>
-<div class="line"><a name="l05007"></a><span class="lineno"> 5007</span>    <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l05008"></a><span class="lineno"> 5008</span>    cpl_vector* values=NULL;</div>
-<div class="line"><a name="l05009"></a><span class="lineno"> 5009</span>    <span class="keywordtype">double</span>* pval=NULL;</div>
-<div class="line"><a name="l05010"></a><span class="lineno"> 5010</span>    <span class="keywordtype">double</span> mean=0;</div>
-<div class="line"><a name="l05011"></a><span class="lineno"> 5011</span>    <span class="keywordtype">double</span> stdev=0;</div>
-<div class="line"><a name="l05012"></a><span class="lineno"> 5012</span>   </div>
-<div class="line"><a name="l05013"></a><span class="lineno"> 5013</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(size=cpl_imagelist_get_size(iml));</div>
-<div class="line"><a name="l05014"></a><span class="lineno"> 5014</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(values=cpl_vector_new(size));</div>
-<div class="line"><a name="l05015"></a><span class="lineno"> 5015</span>    pval=cpl_vector_get_data(values);</div>
-<div class="line"><a name="l05016"></a><span class="lineno"> 5016</span>    <span class="keywordflow">for</span>(i=0;i<size;i++) {</div>
-<div class="line"><a name="l05017"></a><span class="lineno"> 5017</span>       img=cpl_imagelist_get(iml,i);</div>
-<div class="line"><a name="l05018"></a><span class="lineno"> 5018</span>       irplib_ksigma_clip(img,1,1,</div>
-<div class="line"><a name="l05019"></a><span class="lineno"> 5019</span>                          cpl_image_get_size_x(img),</div>
-<div class="line"><a name="l05020"></a><span class="lineno"> 5020</span>                          cpl_image_get_size_y(img),</div>
-<div class="line"><a name="l05021"></a><span class="lineno"> 5021</span>                          5,kappa,1.e-5,&mean,&stdev);</div>
-<div class="line"><a name="l05022"></a><span class="lineno"> 5022</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Ima %d mean level: %g"</span>,i+1,mean);</div>
-<div class="line"><a name="l05023"></a><span class="lineno"> 5023</span>       pval[i]=mean;</div>
-<div class="line"><a name="l05024"></a><span class="lineno"> 5024</span>    }</div>
-<div class="line"><a name="l05025"></a><span class="lineno"> 5025</span> </div>
-<div class="line"><a name="l05026"></a><span class="lineno"> 5026</span>   cleanup:</div>
-<div class="line"><a name="l05027"></a><span class="lineno"> 5027</span> </div>
-<div class="line"><a name="l05028"></a><span class="lineno"> 5028</span>    <span class="keywordflow">return</span> values;</div>
-<div class="line"><a name="l05029"></a><span class="lineno"> 5029</span> }</div>
-<div class="line"><a name="l05030"></a><span class="lineno"> 5030</span> </div>
-<div class="line"><a name="l05031"></a><span class="lineno"> 5031</span> </div>
-<div class="line"><a name="l05032"></a><span class="lineno"> 5032</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05041"></a><span class="lineno"> 5041</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05042"></a><span class="lineno"> 5042</span> cpl_error_code</div>
-<div class="line"><a name="l05043"></a><span class="lineno"><a class="code" href="group__uves__utils.html#ga4cbaa270b775e7460b66e02f5b204203"> 5043</a></span> <a class="code" href="group__uves__utils.html#ga4cbaa270b775e7460b66e02f5b204203" title="Subtract from input imagelist values specified in input vector.">uves_imagelist_subtract_values</a>(cpl_imagelist** iml, cpl_vector* values)</div>
-<div class="line"><a name="l05044"></a><span class="lineno"> 5044</span> {</div>
-<div class="line"><a name="l05045"></a><span class="lineno"> 5045</span> </div>
-<div class="line"><a name="l05046"></a><span class="lineno"> 5046</span>    cpl_image* img=NULL;</div>
-<div class="line"><a name="l05047"></a><span class="lineno"> 5047</span>    <span class="keywordtype">int</span> size=0;</div>
-<div class="line"><a name="l05048"></a><span class="lineno"> 5048</span>    <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l05049"></a><span class="lineno"> 5049</span>    <span class="keywordtype">double</span>* pval=NULL;</div>
-<div class="line"><a name="l05050"></a><span class="lineno"> 5050</span>   </div>
-<div class="line"><a name="l05051"></a><span class="lineno"> 5051</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(size=cpl_imagelist_get_size(*iml));</div>
-<div class="line"><a name="l05052"></a><span class="lineno"> 5052</span>    pval=cpl_vector_get_data(values);</div>
-<div class="line"><a name="l05053"></a><span class="lineno"> 5053</span>    <span class="keywordflow">for</span>(i=0;i<size;i++) {</div>
-<div class="line"><a name="l05054"></a><span class="lineno"> 5054</span>       img=cpl_imagelist_get(*iml,i);</div>
-<div class="line"><a name="l05055"></a><span class="lineno"> 5055</span>       cpl_image_subtract_scalar(img,pval[i]);</div>
-<div class="line"><a name="l05056"></a><span class="lineno"> 5056</span>       cpl_imagelist_set(*iml,img,i);</div>
-<div class="line"><a name="l05057"></a><span class="lineno"> 5057</span>    }</div>
-<div class="line"><a name="l05058"></a><span class="lineno"> 5058</span> </div>
-<div class="line"><a name="l05059"></a><span class="lineno"> 5059</span>   cleanup:</div>
-<div class="line"><a name="l05060"></a><span class="lineno"> 5060</span> </div>
-<div class="line"><a name="l05061"></a><span class="lineno"> 5061</span>    <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l05062"></a><span class="lineno"> 5062</span> }</div>
-<div class="line"><a name="l05063"></a><span class="lineno"> 5063</span> </div>
-<div class="line"><a name="l05064"></a><span class="lineno"> 5064</span> </div>
-<div class="line"><a name="l05065"></a><span class="lineno"> 5065</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05081"></a><span class="lineno"> 5081</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05082"></a><span class="lineno"> 5082</span> <span class="keyword">static</span> cpl_image * </div>
-<div class="line"><a name="l05083"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gab6d9ffe3669b75518bf7108681c52fa6"> 5083</a></span> <a class="code" href="group__uves__utils.html#gab6d9ffe3669b75518bf7108681c52fa6" title="Generate a low pass filter for FFT convolution .">uves_gen_lowpass</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> xs, </div>
-<div class="line"><a name="l05084"></a><span class="lineno"> 5084</span>                   <span class="keyword">const</span> <span class="keywordtype">int</span> ys, </div>
-<div class="line"><a name="l05085"></a><span class="lineno"> 5085</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> sigma_x, </div>
-<div class="line"><a name="l05086"></a><span class="lineno"> 5086</span>                   <span class="keyword">const</span> <span class="keywordtype">double</span> sigma_y)</div>
-<div class="line"><a name="l05087"></a><span class="lineno"> 5087</span> {</div>
-<div class="line"><a name="l05088"></a><span class="lineno"> 5088</span> </div>
-<div class="line"><a name="l05089"></a><span class="lineno"> 5089</span>     <span class="keywordtype">int</span> i= 0.0;</div>
-<div class="line"><a name="l05090"></a><span class="lineno"> 5090</span>     <span class="keywordtype">int</span> j= 0.0;</div>
-<div class="line"><a name="l05091"></a><span class="lineno"> 5091</span>     <span class="keywordtype">int</span> hlx= 0.0;</div>
-<div class="line"><a name="l05092"></a><span class="lineno"> 5092</span>     <span class="keywordtype">int</span> hly = 0.0;</div>
-<div class="line"><a name="l05093"></a><span class="lineno"> 5093</span>     <span class="keywordtype">double</span> x= 0.0;</div>
-<div class="line"><a name="l05094"></a><span class="lineno"> 5094</span>     <span class="keywordtype">double</span> y= 0.0;</div>
-<div class="line"><a name="l05095"></a><span class="lineno"> 5095</span>     <span class="keywordtype">double</span> gaussval= 0.0;</div>
-<div class="line"><a name="l05096"></a><span class="lineno"> 5096</span>     <span class="keywordtype">double</span> inv_sigma_x=1./sigma_x;</div>
-<div class="line"><a name="l05097"></a><span class="lineno"> 5097</span>     <span class="keywordtype">double</span> inv_sigma_y=1./sigma_y;</div>
-<div class="line"><a name="l05098"></a><span class="lineno"> 5098</span> </div>
-<div class="line"><a name="l05099"></a><span class="lineno"> 5099</span>     <span class="keywordtype">float</span> *data;</div>
-<div class="line"><a name="l05100"></a><span class="lineno"> 5100</span> </div>
-<div class="line"><a name="l05101"></a><span class="lineno"> 5101</span>     cpl_image   *lowpass_image=NULL;</div>
-<div class="line"><a name="l05102"></a><span class="lineno"> 5102</span> </div>
-<div class="line"><a name="l05103"></a><span class="lineno"> 5103</span> </div>
-<div class="line"><a name="l05104"></a><span class="lineno"> 5104</span>     lowpass_image = cpl_image_new (xs, ys, CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l05105"></a><span class="lineno"> 5105</span>     <span class="keywordflow">if</span> (lowpass_image == NULL) {</div>
-<div class="line"><a name="l05106"></a><span class="lineno"> 5106</span>         <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Cannot generate lowpass filter <%s>"</span>,</div>
-<div class="line"><a name="l05107"></a><span class="lineno"> 5107</span>                         cpl_error_get_message());</div>
-<div class="line"><a name="l05108"></a><span class="lineno"> 5108</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l05109"></a><span class="lineno"> 5109</span>     }</div>
-<div class="line"><a name="l05110"></a><span class="lineno"> 5110</span> </div>
-<div class="line"><a name="l05111"></a><span class="lineno"> 5111</span>     hlx = xs/2;</div>
-<div class="line"><a name="l05112"></a><span class="lineno"> 5112</span>     hly = ys/2;</div>
-<div class="line"><a name="l05113"></a><span class="lineno"> 5113</span> </div>
-<div class="line"><a name="l05114"></a><span class="lineno"> 5114</span>     data = cpl_image_get_data_float(lowpass_image);</div>
-<div class="line"><a name="l05115"></a><span class="lineno"> 5115</span>         </div>
-<div class="line"><a name="l05116"></a><span class="lineno"> 5116</span> <span class="comment">/* Given an image with pixels 0<=i<N, 0<=j<M then the convolution image</span></div>
-<div class="line"><a name="l05117"></a><span class="lineno"> 5117</span> <span class="comment">   has the following properties:</span></div>
-<div class="line"><a name="l05118"></a><span class="lineno"> 5118</span> <span class="comment"></span></div>
-<div class="line"><a name="l05119"></a><span class="lineno"> 5119</span> <span class="comment">   ima[0][0] = 1</span></div>
-<div class="line"><a name="l05120"></a><span class="lineno"> 5120</span> <span class="comment">   ima[i][0] = ima[N-i][0] = exp (-0.5 * (i/sig_i)^2)   1<=i<N/2</span></div>
-<div class="line"><a name="l05121"></a><span class="lineno"> 5121</span> <span class="comment">   ima[0][j] = ima[0][M-j] = exp (-0.5 * (j/sig_j)^2)   1<=j<M/2</span></div>
-<div class="line"><a name="l05122"></a><span class="lineno"> 5122</span> <span class="comment">   ima[i][j] = ima[N-i][j] = ima[i][M-j] = ima[N-i][M-j] </span></div>
-<div class="line"><a name="l05123"></a><span class="lineno"> 5123</span> <span class="comment">             = exp (-0.5 * ((i/sig_i)^2 + (j/sig_j)^2)) </span></div>
-<div class="line"><a name="l05124"></a><span class="lineno"> 5124</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l05125"></a><span class="lineno"> 5125</span> </div>
-<div class="line"><a name="l05126"></a><span class="lineno"> 5126</span>     data[0] = 1.0;</div>
-<div class="line"><a name="l05127"></a><span class="lineno"> 5127</span> </div>
-<div class="line"><a name="l05128"></a><span class="lineno"> 5128</span>     <span class="comment">/* first row */</span></div>
-<div class="line"><a name="l05129"></a><span class="lineno"> 5129</span>     <span class="keywordflow">for</span> (i=1 ; i<=hlx ; i++) {</div>
-<div class="line"><a name="l05130"></a><span class="lineno"> 5130</span>         x = i * inv_sigma_x;</div>
-<div class="line"><a name="l05131"></a><span class="lineno"> 5131</span>         gaussval = exp(-0.5*x*x);</div>
-<div class="line"><a name="l05132"></a><span class="lineno"> 5132</span>         data[i] = gaussval;</div>
-<div class="line"><a name="l05133"></a><span class="lineno"> 5133</span>         data[xs-i] = gaussval;</div>
-<div class="line"><a name="l05134"></a><span class="lineno"> 5134</span>     }</div>
-<div class="line"><a name="l05135"></a><span class="lineno"> 5135</span> </div>
-<div class="line"><a name="l05136"></a><span class="lineno"> 5136</span>     <span class="keywordflow">for</span> (j=1; j<=hly ; j++) {</div>
-<div class="line"><a name="l05137"></a><span class="lineno"> 5137</span>         y = j * inv_sigma_y;</div>
-<div class="line"><a name="l05138"></a><span class="lineno"> 5138</span>       <span class="comment">/* first column */</span></div>
-<div class="line"><a name="l05139"></a><span class="lineno"> 5139</span>         data[j*xs] = exp(-0.5*y*y);</div>
-<div class="line"><a name="l05140"></a><span class="lineno"> 5140</span>         data[(ys-j)*xs] = exp(-0.5*y*y);</div>
-<div class="line"><a name="l05141"></a><span class="lineno"> 5141</span> </div>
-<div class="line"><a name="l05142"></a><span class="lineno"> 5142</span>         <span class="keywordflow">for</span> (i=1 ; i<=hlx ; i++) {</div>
-<div class="line"><a name="l05143"></a><span class="lineno"> 5143</span>     <span class="comment">/* Use internal symetries */</span></div>
-<div class="line"><a name="l05144"></a><span class="lineno"> 5144</span>             x = i * inv_sigma_x;</div>
-<div class="line"><a name="l05145"></a><span class="lineno"> 5145</span>             gaussval = exp (-0.5*(x*x+y*y));</div>
-<div class="line"><a name="l05146"></a><span class="lineno"> 5146</span>             data[j*xs+i] = gaussval;</div>
-<div class="line"><a name="l05147"></a><span class="lineno"> 5147</span>             data[(j+1)*xs-i] = gaussval;</div>
-<div class="line"><a name="l05148"></a><span class="lineno"> 5148</span>             data[(ys-j)*xs+i] = gaussval;</div>
-<div class="line"><a name="l05149"></a><span class="lineno"> 5149</span>             data[(ys+1-j)*xs-i] = gaussval;</div>
-<div class="line"><a name="l05150"></a><span class="lineno"> 5150</span> </div>
-<div class="line"><a name="l05151"></a><span class="lineno"> 5151</span>         }</div>
-<div class="line"><a name="l05152"></a><span class="lineno"> 5152</span>     }</div>
-<div class="line"><a name="l05153"></a><span class="lineno"> 5153</span> </div>
-<div class="line"><a name="l05154"></a><span class="lineno"> 5154</span>     <span class="comment">/* FIXME: for the moment, reset errno which is coming from exp()</span></div>
-<div class="line"><a name="l05155"></a><span class="lineno"> 5155</span> <span class="comment">            in first for-loop at i=348. This is causing cfitsio to</span></div>
-<div class="line"><a name="l05156"></a><span class="lineno"> 5156</span> <span class="comment">            fail when loading an extension image (bug in cfitsio too).</span></div>
-<div class="line"><a name="l05157"></a><span class="lineno"> 5157</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l05158"></a><span class="lineno"> 5158</span>     <span class="keywordflow">if</span>(errno != 0)</div>
-<div class="line"><a name="l05159"></a><span class="lineno"> 5159</span>         errno = 0;</div>
-<div class="line"><a name="l05160"></a><span class="lineno"> 5160</span>     </div>
-<div class="line"><a name="l05161"></a><span class="lineno"> 5161</span>     <span class="keywordflow">return</span> lowpass_image;</div>
-<div class="line"><a name="l05162"></a><span class="lineno"> 5162</span> }</div>
-<div class="line"><a name="l05163"></a><span class="lineno"> 5163</span> <span class="comment">/*-------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05171"></a><span class="lineno"> 5171</span> <span class="comment">/*--------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l05172"></a><span class="lineno"> 5172</span> cpl_image*</div>
-<div class="line"><a name="l05173"></a><span class="lineno"><a class="code" href="group__uves__utils.html#gaa4b717df379e29d4c74c066a528e37b2"> 5173</a></span> <a class="code" href="group__uves__utils.html#gaa4b717df379e29d4c74c066a528e37b2" title="Flag blemishes in a flat image.">uves_image_mflat_detect_blemishes</a>(<span class="keyword">const</span> cpl_image* flat, </div>
-<div class="line"><a name="l05174"></a><span class="lineno"> 5174</span>                                   <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* head)</div>
-<div class="line"><a name="l05175"></a><span class="lineno"> 5175</span> {</div>
-<div class="line"><a name="l05176"></a><span class="lineno"> 5176</span> </div>
-<div class="line"><a name="l05177"></a><span class="lineno"> 5177</span>    cpl_image* result=NULL;</div>
-<div class="line"><a name="l05178"></a><span class="lineno"> 5178</span>    cpl_image* diff=NULL;</div>
-<div class="line"><a name="l05179"></a><span class="lineno"> 5179</span>    cpl_image* flat_smooth=NULL;</div>
-<div class="line"><a name="l05180"></a><span class="lineno"> 5180</span>    cpl_array* val=NULL;</div>
-<div class="line"><a name="l05181"></a><span class="lineno"> 5181</span>    cpl_matrix* mx=NULL;</div>
-<div class="line"><a name="l05182"></a><span class="lineno"> 5182</span> </div>
-<div class="line"><a name="l05183"></a><span class="lineno"> 5183</span>    <span class="keywordtype">int</span> binx=0;</div>
-<div class="line"><a name="l05184"></a><span class="lineno"> 5184</span>    <span class="keywordtype">int</span> biny=0;</div>
-<div class="line"><a name="l05185"></a><span class="lineno"> 5185</span>    <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l05186"></a><span class="lineno"> 5186</span>    <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l05187"></a><span class="lineno"> 5187</span>    <span class="keywordtype">int</span> size=0;</div>
-<div class="line"><a name="l05188"></a><span class="lineno"> 5188</span>    <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l05189"></a><span class="lineno"> 5189</span>    <span class="keywordtype">int</span> j=0;</div>
-<div class="line"><a name="l05190"></a><span class="lineno"> 5190</span>    <span class="keywordtype">int</span> k=0;</div>
-<div class="line"><a name="l05191"></a><span class="lineno"> 5191</span>    <span class="keywordtype">int</span> niter=3;</div>
-<div class="line"><a name="l05192"></a><span class="lineno"> 5192</span>    <span class="keywordtype">int</span> filter_width_x=7;</div>
-<div class="line"><a name="l05193"></a><span class="lineno"> 5193</span>    <span class="keywordtype">int</span> filter_width_y=7;</div>
-<div class="line"><a name="l05194"></a><span class="lineno"> 5194</span> </div>
-<div class="line"><a name="l05195"></a><span class="lineno"> 5195</span>    <span class="keywordtype">double</span> mean=0;</div>
-<div class="line"><a name="l05196"></a><span class="lineno"> 5196</span>    <span class="keywordtype">double</span> stdev=0;</div>
-<div class="line"><a name="l05197"></a><span class="lineno"> 5197</span>    <span class="keywordtype">double</span> stdev_x_4=0;</div>
-<div class="line"><a name="l05198"></a><span class="lineno"> 5198</span> </div>
-<div class="line"><a name="l05199"></a><span class="lineno"> 5199</span>    <span class="keywordtype">double</span> med_flat=0;</div>
-<div class="line"><a name="l05200"></a><span class="lineno"> 5200</span> </div>
-<div class="line"><a name="l05201"></a><span class="lineno"> 5201</span>    <span class="keywordtype">double</span>* pres=NULL;</div>
-<div class="line"><a name="l05202"></a><span class="lineno"> 5202</span>    <span class="keyword">const</span> <span class="keywordtype">double</span>* pima=NULL;</div>
-<div class="line"><a name="l05203"></a><span class="lineno"> 5203</span>    <span class="keywordtype">double</span>* pval=NULL;</div>
-<div class="line"><a name="l05204"></a><span class="lineno"> 5204</span>    <span class="keywordtype">double</span>* pdif=NULL;</div>
-<div class="line"><a name="l05205"></a><span class="lineno"> 5205</span>    <span class="keywordtype">int</span> npixs=0;</div>
-<div class="line"><a name="l05206"></a><span class="lineno"> 5206</span> </div>
-<div class="line"><a name="l05207"></a><span class="lineno"> 5207</span>    <span class="comment">/* check input is valid */</span></div>
-<div class="line"><a name="l05208"></a><span class="lineno"> 5208</span>    <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( flat !=NULL , <span class="stringliteral">"NULL input flat "</span>);</div>
-<div class="line"><a name="l05209"></a><span class="lineno"> 5209</span>    <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( head !=NULL , <span class="stringliteral">"NULL input head "</span>);</div>
-<div class="line"><a name="l05210"></a><span class="lineno"> 5210</span>   </div>
-<div class="line"><a name="l05211"></a><span class="lineno"> 5211</span>    <span class="comment">/* get image and bin sizes */</span></div>
-<div class="line"><a name="l05212"></a><span class="lineno"> 5212</span>    sx=cpl_image_get_size_x(flat);</div>
-<div class="line"><a name="l05213"></a><span class="lineno"> 5213</span>    sy=cpl_image_get_size_y(flat);</div>
-<div class="line"><a name="l05214"></a><span class="lineno"> 5214</span>    npixs=sx*sy;</div>
-<div class="line"><a name="l05215"></a><span class="lineno"> 5215</span> </div>
-<div class="line"><a name="l05216"></a><span class="lineno"> 5216</span>    binx=<a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(head);</div>
-<div class="line"><a name="l05217"></a><span class="lineno"> 5217</span>    biny=<a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(head);</div>
-<div class="line"><a name="l05218"></a><span class="lineno"> 5218</span> </div>
-<div class="line"><a name="l05219"></a><span class="lineno"> 5219</span>    <span class="comment">/* set proper x/y filter width. Start values are 3 */</span></div>
-<div class="line"><a name="l05220"></a><span class="lineno"> 5220</span>    <span class="keywordflow">if</span> (binx>1) filter_width_x=5;</div>
-<div class="line"><a name="l05221"></a><span class="lineno"> 5221</span>    <span class="keywordflow">if</span> (biny>1) filter_width_y=5;</div>
-<div class="line"><a name="l05222"></a><span class="lineno"> 5222</span> </div>
-<div class="line"><a name="l05223"></a><span class="lineno"> 5223</span> </div>
-<div class="line"><a name="l05224"></a><span class="lineno"> 5224</span>    <span class="comment">/* create residuals image from smoothed flat */</span></div>
-<div class="line"><a name="l05225"></a><span class="lineno"> 5225</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(mx=cpl_matrix_new(filter_width_x,filter_width_y));</div>
-<div class="line"><a name="l05226"></a><span class="lineno"> 5226</span>   </div>
-<div class="line"><a name="l05227"></a><span class="lineno"> 5227</span>   <span class="keywordflow">for</span>(j=0; j< filter_width_y; j++){</div>
-<div class="line"><a name="l05228"></a><span class="lineno"> 5228</span>     <span class="keywordflow">for</span>(i=0; i< filter_width_x; i++){</div>
-<div class="line"><a name="l05229"></a><span class="lineno"> 5229</span>       cpl_matrix_set( mx, i,j,1.0);</div>
-<div class="line"><a name="l05230"></a><span class="lineno"> 5230</span>     }</div>
-<div class="line"><a name="l05231"></a><span class="lineno"> 5231</span>   }</div>
-<div class="line"><a name="l05232"></a><span class="lineno"> 5232</span>   </div>
-<div class="line"><a name="l05233"></a><span class="lineno"> 5233</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(diff=cpl_image_duplicate(flat));</div>
-<div class="line"><a name="l05234"></a><span class="lineno"> 5234</span> </div>
-<div class="line"><a name="l05235"></a><span class="lineno"> 5235</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(flat_smooth=uves_image_filter_median(flat,mx));</div>
-<div class="line"><a name="l05236"></a><span class="lineno"> 5236</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l05237"></a><span class="lineno"> 5237</span> <span class="comment">   check_nomsg(cpl_image_save(flat_smooth,"flat_smooth.fits",</span></div>
-<div class="line"><a name="l05238"></a><span class="lineno"> 5238</span> <span class="comment">                  CPL_BPP_IEEE_FLOAT,NULL,CPL_IO_DEFAULT));</span></div>
-<div class="line"><a name="l05239"></a><span class="lineno"> 5239</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l05240"></a><span class="lineno"> 5240</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_subtract(diff,flat_smooth));</div>
-<div class="line"><a name="l05241"></a><span class="lineno"> 5241</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l05242"></a><span class="lineno"> 5242</span> <span class="comment">   check_nomsg(cpl_image_save(diff,"diff.fits",</span></div>
-<div class="line"><a name="l05243"></a><span class="lineno"> 5243</span> <span class="comment">                  CPL_BPP_IEEE_FLOAT,NULL,CPL_IO_DEFAULT));</span></div>
-<div class="line"><a name="l05244"></a><span class="lineno"> 5244</span> <span class="comment">   */</span>  </div>
-<div class="line"><a name="l05245"></a><span class="lineno"> 5245</span>    <span class="comment">/* compute median of flat */</span></div>
-<div class="line"><a name="l05246"></a><span class="lineno"> 5246</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(med_flat=cpl_image_get_median(flat));</div>
-<div class="line"><a name="l05247"></a><span class="lineno"> 5247</span> </div>
-<div class="line"><a name="l05248"></a><span class="lineno"> 5248</span>    <span class="comment">/* prepare array of flat pixel values greater than the median */</span></div>
-<div class="line"><a name="l05249"></a><span class="lineno"> 5249</span>    val=cpl_array_new(npixs,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l05250"></a><span class="lineno"> 5250</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_array_fill_window_double(val,0,npixs,0));</div>
-<div class="line"><a name="l05251"></a><span class="lineno"> 5251</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pval=cpl_array_get_data_double(val));</div>
-<div class="line"><a name="l05252"></a><span class="lineno"> 5252</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pima=cpl_image_get_data_double_const(flat));</div>
-<div class="line"><a name="l05253"></a><span class="lineno"> 5253</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pdif=cpl_image_get_data_double(diff));</div>
-<div class="line"><a name="l05254"></a><span class="lineno"> 5254</span>    k=0;</div>
-<div class="line"><a name="l05255"></a><span class="lineno"> 5255</span>    <span class="keywordflow">for</span>(i=0;i<npixs;i++) {</div>
-<div class="line"><a name="l05256"></a><span class="lineno"> 5256</span>      <span class="keywordflow">if</span>(pima[i]>med_flat) {</div>
-<div class="line"><a name="l05257"></a><span class="lineno"> 5257</span>         pval[k]=pdif[i]; </div>
-<div class="line"><a name="l05258"></a><span class="lineno"> 5258</span>         k++;</div>
-<div class="line"><a name="l05259"></a><span class="lineno"> 5259</span>      } </div>
-<div class="line"><a name="l05260"></a><span class="lineno"> 5260</span>    }   </div>
-<div class="line"><a name="l05261"></a><span class="lineno"> 5261</span> </div>
-<div class="line"><a name="l05262"></a><span class="lineno"> 5262</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_array_set_size(val,k));</div>
-<div class="line"><a name="l05263"></a><span class="lineno"> 5263</span>    </div>
-<div class="line"><a name="l05264"></a><span class="lineno"> 5264</span>    <span class="comment">/* computes 4 sigma clip mean of values */</span></div>
-<div class="line"><a name="l05265"></a><span class="lineno"> 5265</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(mean=cpl_array_get_mean(val));</div>
-<div class="line"><a name="l05266"></a><span class="lineno"> 5266</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(stdev=cpl_array_get_stdev(val));</div>
-<div class="line"><a name="l05267"></a><span class="lineno"> 5267</span>    stdev_x_4=stdev*4.;</div>
-<div class="line"><a name="l05268"></a><span class="lineno"> 5268</span>    <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(size=cpl_array_get_size(val));</div>
-<div class="line"><a name="l05269"></a><span class="lineno"> 5269</span> </div>
-<div class="line"><a name="l05270"></a><span class="lineno"> 5270</span>    <span class="keywordflow">for</span>(i=0;i<niter;i++) {</div>
-<div class="line"><a name="l05271"></a><span class="lineno"> 5271</span>      <span class="keywordflow">for</span>(k=0;k<size;k++) {</div>
-<div class="line"><a name="l05272"></a><span class="lineno"> 5272</span>        <span class="keywordflow">if</span>(fabs(pval[k]-mean)>stdev_x_4) {</div>
-<div class="line"><a name="l05273"></a><span class="lineno"> 5273</span>      cpl_array_set_invalid(val,k);</div>
-<div class="line"><a name="l05274"></a><span class="lineno"> 5274</span>        }</div>
-<div class="line"><a name="l05275"></a><span class="lineno"> 5275</span>      }</div>
-<div class="line"><a name="l05276"></a><span class="lineno"> 5276</span>      mean=cpl_array_get_mean(val);</div>
-<div class="line"><a name="l05277"></a><span class="lineno"> 5277</span>      stdev=cpl_array_get_stdev(val);</div>
-<div class="line"><a name="l05278"></a><span class="lineno"> 5278</span>      stdev_x_4=stdev*4.;</div>
-<div class="line"><a name="l05279"></a><span class="lineno"> 5279</span>    }</div>
-<div class="line"><a name="l05280"></a><span class="lineno"> 5280</span> </div>
-<div class="line"><a name="l05281"></a><span class="lineno"> 5281</span>    <span class="comment">/* compute absolute value of difference image */</span></div>
-<div class="line"><a name="l05282"></a><span class="lineno"> 5282</span>    result=cpl_image_new(sx,sy,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l05283"></a><span class="lineno"> 5283</span>    pres=cpl_image_get_data_double(result);</div>
-<div class="line"><a name="l05284"></a><span class="lineno"> 5284</span>    <span class="keywordflow">for</span>(i=0;i<npixs;i++) {</div>
-<div class="line"><a name="l05285"></a><span class="lineno"> 5285</span>      <span class="keywordflow">if</span>(fabs(pdif[i])<stdev_x_4) {</div>
-<div class="line"><a name="l05286"></a><span class="lineno"> 5286</span>        pres[i]=1.;</div>
-<div class="line"><a name="l05287"></a><span class="lineno"> 5287</span>      }</div>
-<div class="line"><a name="l05288"></a><span class="lineno"> 5288</span>    }</div>
-<div class="line"><a name="l05289"></a><span class="lineno"> 5289</span> </div>
-<div class="line"><a name="l05290"></a><span class="lineno"> 5290</span>    <span class="comment">/* save result to debug */</span></div>
-<div class="line"><a name="l05291"></a><span class="lineno"> 5291</span>    <span class="comment">/*</span></div>
-<div class="line"><a name="l05292"></a><span class="lineno"> 5292</span> <span class="comment">   check_nomsg(cpl_image_save(result,"blemish.fits",CPL_BPP_IEEE_FLOAT,NULL,</span></div>
-<div class="line"><a name="l05293"></a><span class="lineno"> 5293</span> <span class="comment">            CPL_IO_DEFAULT));</span></div>
-<div class="line"><a name="l05294"></a><span class="lineno"> 5294</span> <span class="comment">   */</span></div>
-<div class="line"><a name="l05295"></a><span class="lineno"> 5295</span> </div>
-<div class="line"><a name="l05296"></a><span class="lineno"> 5296</span>  cleanup:</div>
-<div class="line"><a name="l05297"></a><span class="lineno"> 5297</span>    uves_free_array(&val);</div>
-<div class="line"><a name="l05298"></a><span class="lineno"> 5298</span>    uves_free_image(&diff);</div>
-<div class="line"><a name="l05299"></a><span class="lineno"> 5299</span>    uves_free_image(&flat_smooth);</div>
-<div class="line"><a name="l05300"></a><span class="lineno"> 5300</span>    uves_free_matrix(&mx);</div>
-<div class="line"><a name="l05301"></a><span class="lineno"> 5301</span>    <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l05302"></a><span class="lineno"> 5302</span> }</div>
-<div class="line"><a name="l05303"></a><span class="lineno"> 5303</span> </div>
-<div class="line"><a name="l05304"></a><span class="lineno"> 5304</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utils_8h_source.html b/html/uves__utils_8h_source.html
deleted file mode 100644
index 40b4137..0000000
--- a/html/uves__utils_8h_source.html
+++ /dev/null
@@ -1,604 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utils.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utils.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-04-16 15:35:24 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.121 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.120  2013/03/08 12:58:23  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * moved uves_min_int uves_min_double uves_error_fractionuves_max_int uves_max_int uves_max_double uves_round_double and similar small functions to header to speed-up</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.119  2013/02/12 10:52:38  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * removed scaling by exptime as requested by Daniel PIPE-4020</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.118  2011/12/08 13:54:40  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * include uves_cpl_size.h for CPL6</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.117  2011/01/11 18:00:16  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * fixed compiler warnings (DFS09815)</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.116  2010/12/20 16:35:57  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * added uves_table_remove_units(), uves_table_unify_units(), uves_tablenames_unify_units(), uves_tablename_remove_units(), useful in flames/uves to fix a problem on raw order fibre table generated by flames_cal_prep_sff_ofpos that has in an instance units filled by a string like '   ' and is being merged with a table with empty units. CPL5.3 makes a check on table column units con [...]
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.115  2010/12/16 16:57:40  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * fixed compiler warnings</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.114  2010/12/01 11:32:22  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * add uves_image_mflat_detect_blemishes()</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.113  2010/11/26 07:43:11  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * added uves_get_wave_map()</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.112  2010/11/25 10:37:59  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * changed interface uves_flat_create_normalized_master()</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.111  2010/10/06 07:52:13  amodigli</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * changed interface uves_flat_create_normalized_master2()</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.110  2010/09/29 09:40:05  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * fixed compiler warnings (changed function interface)</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.109  2010/09/24 09:32:08  amodigli</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.107  2010/06/02 09:19:01  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * removed chip param from uves_imagelist_get_clean_mean_levels()</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.106  2010/05/18 11:37:44  amodigli</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * added uves_imagelist_get_clean_mean_levels</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.105  2010/05/04 17:21:14  amodigli</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * added uves_flat_create_normalized_master2</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.104  2010/04/07 06:29:19  amodigli</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * fixed compiler warnings</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.103  2010/04/06 17:39:39  amodigli</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * added uves_flat_create_normalized_master()</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.102  2010/03/22 15:56:15  amodigli</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * added uves_ksigma_stack</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.101  2009/08/03 12:46:44  amodigli</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * added uves_image_smooth_y</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.100  2009/07/28 13:48:52  amodigli</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * added smoothing functions</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.99  2008/03/25 08:55:21  amodigli</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * check if inline is defined to remove possible compilation warnings</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.98  2008/02/29 10:26:08  amodigli</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * added uves_rcosmic</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.97  2008/02/15 12:43:21  amodigli</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * added uves_string_tolower uves_string_toupper</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.96  2008/02/04 14:08:58  amodigli</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * added uves_parameterlist_duplicate</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.95  2007/09/11 12:11:49  amodigli</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * added uves_frameset_extract</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.94  2007/08/02 15:18:44  amodigli</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * added uves_frameset_dump</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.93  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.92  2007/05/22 11:30:57  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Removed MIDAS flag for good</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.91  2007/05/02 13:18:52  jmlarsen</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Added function to simulate reconstruct raw image</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.90  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.89  2007/04/12 11:58:07  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Check compile time CPL version number</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.88  2007/04/10 07:10:50  jmlarsen</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * uves_spline_hermite(): maintain current array position (for efficiency)</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.87  2007/03/28 11:39:38  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Removed MIDAS flag from uves_define_noise</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.86  2007/03/13 15:34:07  jmlarsen</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Parametrize verbosity of autodegree fitting function</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.85  2007/03/05 10:19:54  jmlarsen</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Define SPEED_OF_LIGHT</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.84  2007/02/22 15:34:48  jmlarsen</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Implement gaussian function with linear background</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.83  2006/11/13 12:49:38  jmlarsen</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Removed re-definition of cpl_table_erase_selected</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Revision 1.82  2006/11/07 14:05:35  jmlarsen</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Removed flag to enable/disable FLAMES code generation</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Revision 1.81  2006/11/06 15:19:42  jmlarsen</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Revision 1.80  2006/11/03 15:01:21  jmlarsen</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Killed UVES 3d table module and use CPL 3d tables</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Revision 1.79  2006/10/19 08:23:09  jmlarsen</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Enabled FLAMES code</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Revision 1.78  2006/10/12 11:37:28  jmlarsen</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Temporarily disabled FLAMES code generation</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Revision 1.77  2006/10/09 13:04:22  jmlarsen</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Removed message domain parameter of uves_initialize</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Revision 1.76  2006/09/20 12:53:57  jmlarsen</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Replaced stringcat functions with uves_sprintf()</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Revision 1.75  2006/09/08 14:05:39  jmlarsen</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Added max/min allowed values in autodegree fitting</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> * Revision 1.74  2006/08/24 11:43:49  jmlarsen</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> * Revision 1.73  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> * Revision 1.72  2006/08/11 14:37:30  jmlarsen</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Implemented workaround for slow cpl_table_erase_selected</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> * Revision 1.71  2006/08/11 11:29:11  jmlarsen</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * uves_get_version_binary</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> * Revision 1.70  2006/08/08 11:27:18  amodigli</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"> * upgrade to CPL3</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment"> * Revision 1.69  2006/07/14 12:42:42  jmlarsen</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> * Added function uves_strincat_4</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"> * Revision 1.68  2006/06/22 09:44:02  jmlarsen</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"> * Added function to remove string prefix</span></div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"> * Revision 1.67  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment"> * Revision 1.66  2006/05/12 15:12:11  jmlarsen</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <span class="comment"> * Support minimum RMS in auto-degree fitting</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment"> * Revision 1.65  2006/05/05 13:58:09  jmlarsen</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment"> * Added uves_polynomial_regression_2d_autodegree</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment"> * Revision 1.64  2006/04/24 09:26:37  jmlarsen</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="comment"> * Added code to compute Moffat profile</span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment"> * Revision 1.63  2006/04/06 08:51:43  jmlarsen</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment"> * Allow setting WANT_TIME_MEASURE when ./configure'ing</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment"> * Revision 1.62  2006/03/24 13:48:09  jmlarsen</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment"> * Macro to turn on/off timing info</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> * Revision 1.61  2006/03/09 10:55:50  jmlarsen</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"> * Added timing macros</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"> * Revision 1.60  2006/02/28 09:15:23  jmlarsen</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> * Revision 1.59  2006/02/21 14:26:54  jmlarsen</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> <span class="comment"> * Revision 1.58  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment"> * Revision 1.57  2006/01/12 15:41:14  jmlarsen</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment"> * Moved gauss. fitting to irplib</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment"> * Revision 1.56  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="preprocessor">#ifndef UVES_UTILS_H</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_UTILS_H</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment">                    Includes</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="preprocessor">#include <uves_extract_iterate.h></span></div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="preprocessor">#include <uves_extract_profile.h></span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="preprocessor">#include <uves_chip.h></span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment">                             Defines</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> </div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="comment">/* If __func__ is not declared, use a default function name */</span></div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span> <span class="preprocessor">#if defined HAVE_DECL___FUNC__ && !HAVE_DECL___FUNC__</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="preprocessor"></span><span class="comment">//static const char __func__[] = "<fctid>";</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="preprocessor">#ifndef __func__</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> <span class="preprocessor"></span><span class="preprocessor">#define __func__ "<fct.id>"</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="preprocessor">#ifndef inline</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="preprocessor"></span><span class="preprocessor">#define inline </span><span class="comment">/* inline */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="comment"> * The purpose of this target is to</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="comment"> * decrease the amount of messages</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="comment"> * printed at the debug level.</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment"> * If set to non-zero, even more messages</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment"> * are printed at the debug level</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment"> * (sometimes 50 - 100 MB)</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="preprocessor">#ifndef WANT_BIG_LOGFILE</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="preprocessor"></span><span class="preprocessor">#define WANT_BIG_LOGFILE 0</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment"> * Set to 1 to show timing</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment"> * information on msg-level = info</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="preprocessor">#ifndef WANT_TIME_MEASURE</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="preprocessor"></span><span class="preprocessor">#define WANT_TIME_MEASURE 0</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="preprocessor">#if WANT_TIME_MEASURE</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TIME_START(what) uves_msg("Timing (%s, l%d) %s start", \</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> <span class="preprocessor">                       __FILE__, __LINE__, what)</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TIME_END         uves_msg("Timing (%s, l%d) end", \</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="preprocessor">                       __FILE__, __LINE__)</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TIME_START(what) uves_msg_debug("Timing (%s, l%d) %s start", \</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="preprocessor">                         __FILE__, __LINE__, what)</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_TIME_END         uves_msg_debug("Timing (%s, l%d) end", \</span></div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="preprocessor">                         __FILE__, __LINE__)</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="preprocessor">#ifndef stringify</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="preprocessor"></span><span class="preprocessor">#ifndef make_str</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="preprocessor"></span><span class="preprocessor">#define stringify(X) #X</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="preprocessor"></span><span class="preprocessor">#define make_str(X) stringify(X)</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="preprocessor">#define TWOSQRT2LN2 2.35482004503095</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="preprocessor">#ifndef M_PI </span></div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="preprocessor"></span><span class="preprocessor">#define M_PI 3.1415926535897932384626433832795</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="preprocessor">#define SPEED_OF_LIGHT  299792458    </span><span class="comment">/* SI-units */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="preprocessor">#define COS_DEG(x) cos(((x)/180)*M_PI)</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="preprocessor"></span><span class="preprocessor">#define SIN_DEG(x) sin(((x)/180)*M_PI)</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="preprocessor"></span><span class="preprocessor">#define ACOS_DEG(x) (acos(x)*180/M_PI)</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment">                                   Prototypes</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> cpl_image *</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <a class="code" href="group__uves__utils.html#ga7146e7bab312652fdb0a9e88e838ef8d" title="Reconstruct echelle image from spectrum.">uves_create_image</a>(uves_iterate_position *pos, <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                   <span class="keyword">const</span> cpl_image *spectrum, <span class="keyword">const</span> cpl_image *sky,</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                   <span class="keyword">const</span> cpl_image *cosmic_image,</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                   <span class="keyword">const</span> uves_extract_profile *profile,</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>                   cpl_image **image_noise, <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **image_header);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> cpl_frameset *</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <a class="code" href="group__uves__utils.html#ga5d332ad2d1f28993e9c2db3154b2236b" title="Extract frames with given tag from frameset.">uves_frameset_extract</a>(<span class="keyword">const</span> cpl_frameset *frames,<span class="keyword">const</span> <span class="keywordtype">char</span> *tag);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <a class="code" href="group__uves__utils.html#gaaa9ef34eb0091a167b88ed0cf17b758c" title="Convert all uppercase characters in a string into lowercase characters.">uves_string_tolower</a>(<span class="keywordtype">char</span>* s);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>(<span class="keywordtype">char</span>* s);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils.html#ga81ac7cec9a26af57d8e43728c004a072" title="Pseudo-random gaussian distributed number.">uves_gaussrand</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054" title="Calculate x to the y'th.">uves_pow_int</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">int</span> y);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">long</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> uves_round_double(<span class="keywordtype">double</span> x)</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> {</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     <span class="keywordflow">return</span> (x >=0) ? (long)(x+0.5) : (long)(x-0.5);</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> }</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> uves_max_double(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y)</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> {</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     <span class="keywordflow">return</span> (x >=y) ? x : y;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> }</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> uves_max_int(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y)</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> {</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     <span class="keywordflow">return</span> (x >=y) ? x : y;</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> }</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> uves_min_double(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y)</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> {</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     <span class="keywordflow">return</span> (x <=y) ? x : y;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> }</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> uves_min_int(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y)</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> {</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     <span class="keywordflow">return</span> (x <=y) ? x : y;</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> }</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> uves_error_fraction(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> dx, <span class="keywordtype">double</span> dy)</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> {</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     <span class="comment">/* Error propagation:</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="comment">     * sigma(x/y)^2 = (1/y sigma(x))^2 + (-x/y^2 sigma(y))^2 </span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     <span class="keywordflow">return</span> sqrt( dx*dx/(y*y) + x*x*dy*dy/(y*y*y*y) );</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> }</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__utils.html#gae14eb4ed643b704af7b942f55eac9575" title="Get the pipeline copyright and license.">uves_get_license</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> cpl_error_code <a class="code" href="group__uves__utils.html#ga576094df329c3bb87a80a251007400a6" title="Get UVES library version number.">uves_get_version</a>(<span class="keywordtype">int</span> *major, <span class="keywordtype">int</span> *minor, <span class="keywordtype">int</span> *micro);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span> </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> <span class="keywordtype">char</span> * <a class="code" href="group__uves__utils.html#ga91713592f345a0d1a44e37a50202d6ed" title="Recipe initialization.">uves_initialize</a>(cpl_frameset *frames, <span class="keyword">const</span> cpl_parameterlist *parlist, </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *short_descr);</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> cpl_error_code <a class="code" href="group__uves__utils.html#gab22cde2fd3c6fcee8f63c8b27431f0be" title="Recipe termination.">uves_end</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> cpl_frameset *frames);</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *<a class="code" href="group__uves__utils.html#ga5beb7a6ed53b7f1a4442189d47af0e37" title="Initialize image header.">uves_initialize_image_header</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *ctype1, <span class="keyword">const</span> <span class="keywordtype">char</span> *ctype2, <span class="keyword"> [...]
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>                            <span class="keyword">const</span> <span class="keywordtype">char</span> *bunit,<span class="keyword">const</span> <span class="keywordtype">double</span> bscale,</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>                            <span class="keywordtype">double</span> crval1 , <span class="keywordtype">double</span> crval2,</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>                            <span class="keywordtype">double</span> crpix1 , <span class="keywordtype">double</span> crpix2,</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>                            <span class="keywordtype">double</span> crdelt1, <span class="keywordtype">double</span> crdelt2);</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span> </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> cpl_parameterlist* </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> <a class="code" href="group__uves__utils.html#ga003a5b56bc7da0142638881e47006716" title="Extract frames with given tag from frameset.">uves_parameterlist_duplicate</a>(<span class="keyword">const</span> cpl_parameterlist* pin);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> </div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> cpl_image *<a class="code" href="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7" title="Create noise image.">uves_define_noise</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *image_header,</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>                  <span class="keywordtype">int</span> ncom, <span class="keyword">enum</span> uves_chip);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span> cpl_image *<a class="code" href="group__uves__utils.html#ga1f407a71fc1fd3d5d0d83fdc141669eb" title="Optimally average images.">uves_average_images</a>(<span class="keyword">const</span> cpl_image *image1, <span class="keyword">const</span> cpl_image *noise1,</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                    <span class="keyword">const</span> cpl_image *image2, <span class="keyword">const</span> cpl_image *noise2,</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>                    cpl_image **noise);</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> cpl_error_code <a class="code" href="group__uves__utils.html#gaab60ba58a3dc620bf79a91ebde2751b3" title="Subtract bias.">uves_subtract_bias</a>(cpl_image *image, <span class="keyword">const</span> cpl_image *master_bias);</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> cpl_error_code <a class="code" href="group__uves__utils.html#gaa065c666cf2f7a17a0d20f42e742a793" title="Subtract dark.">uves_subtract_dark</a>(cpl_image *image, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *image_header,</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>                   <span class="keyword">const</span> cpl_image *master_dark, </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>                   <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *mdark_header);</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> </div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> <a class="code" href="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d_autodegree</a>(cpl_table *t,</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *X1, <span class="keyword">const</span> <span class="keywordtype">char</span> *X2, <span class="keyword">const</span> <span class="keywordtype">char</span> *Y,</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *sigmaY,</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *polynomial_fit,</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *residual_square, </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *variance_fit,</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>                      <span class="keywordtype">double</span> *mean_squared_error, <span class="keywordtype">double</span> *red_chisq,</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                      <a class="code" href="struct__polynomial.html">polynomial</a> **variance, <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                      <span class="keywordtype">int</span> maxdeg1, <span class="keywordtype">int</span> maxdeg2, <span class="keywordtype">double</span> min_rms,</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                                          <span class="keywordtype">double</span> min_reject,</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                                          <span class="keywordtype">bool</span> verbose,</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                      <span class="keyword">const</span> <span class="keywordtype">double</span> *min_val,</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>                      <span class="keyword">const</span> <span class="keywordtype">double</span> *max_val,</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>                      <span class="keywordtype">int</span> npos, <span class="keywordtype">double</span> positions[][2]);</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span> <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(cpl_table *t,</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *X1, <span class="keyword">const</span> <span class="keywordtype">char</span> *X2, <span class="keyword">const</span> <span class="keywordtype">char</span> *Y, </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *sigmaY,</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>                   <span class="keywordtype">int</span> degree1, <span class="keywordtype">int</span> degree2,</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *polynomial_fit, <span class="keyword">const</span> <span class="keywordtype">char</span> *residual_square, </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *variance_fit,</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>                   <span class="keywordtype">double</span> *mse, <span class="keywordtype">double</span> *red_chisq,</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>                   <a class="code" href="struct__polynomial.html">polynomial</a> **variance, <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>                               <span class="keywordtype">double</span> min_reject);</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> <a class="code" href="struct__polynomial.html">polynomial</a> *<a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d</a>(cpl_table *t, </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span> *X, <span class="keyword">const</span> <span class="keywordtype">char</span> *Y, <span class="keyword">const</span> <span class="keywordtype">char</span> *sigmaY, </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>                       <span class="keywordtype">int</span> degree, </div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span> *polynomial_fit, <span class="keyword">const</span> <span class="keywordtype">char</span> *residual_square,</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>                       <span class="keywordtype">double</span> *mean_squared_error, <span class="keyword">const</span> <span class="keywordtype">double</span> kappa);</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__uves__utils.html#ga99e9592bc265e99533524a996b462ef4" title="Remove named prefix from string.">uves_remove_string_prefix</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *s, <span class="keyword">const</span> <span class="keywordtype">char</span> *prefix);</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils.html#ga182ae551020b196be2e177c09f16b220" title="Spline interpolation based on Hermite polynomials.">uves_spline_hermite_table</a>( <span class="keywordtype">double</span> xp, <span class="keyword">const</span> cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column_x, </div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *column_y, <span class="keywordtype">int</span> *istart );</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span> </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils.html#gaa3c7eb6c7f122eb98af78d5cab6cb122" title="Spline interpolation based on Hermite polynomials.">uves_spline_hermite</a>( <span class="keywordtype">double</span> xp, <span class="keyword">const</span> <span class="keywordtype">double</span> *x, <span class="keyword">const</span> <span class="keywordtype">double</span> *y, <span  [...]
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils.html#gac567d2b17fd517da5e872f292c203339" title="Natural cubic-spline interpolation.">uves_spline_cubic</a>(<span class="keywordtype">double</span> xp, <span class="keywordtype">double</span> *x, <span class="keywordtype">float</span> *y, <span class="keywordtype">float</span> *y2, <span class="keywordtype">int</span> n, <span class [...]
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> </div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utils.html#ga579bc295bb9d73af0b052f37b576f552" title="Get the absolute order number.">uves_absolute_order</a>(<span class="keywordtype">int</span> first_abs_order, <span class="keywordtype">int</span> last_abs_order, <span class="keywordtype">int</span> relative_order);</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils.html#ga8ec4a0e22ac62eaed019f740acf6810d" title="Get average with iterative rejection.">uves_average_reject</a>(cpl_table *t,</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *column,</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *residual2,</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>                <span class="keywordtype">double</span> kappa);</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> </div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> </div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> cpl_table *<a class="code" href="group__uves__utils.html#ga5498ccadef9be3eee6cfacfac75c7478" title="Create the table that describes fibre traces.">uves_ordertable_traces_new</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> cpl_error_code <a class="code" href="group__uves__utils.html#gab4d35d91d7acd120872d427842b13942" title="Add a trace.">uves_ordertable_traces_add</a>(cpl_table *traces, </div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>                       <span class="keywordtype">int</span> fibre_ID, <span class="keywordtype">double</span> fibre_offset, <span class="keywordtype">int</span> fibre_mask);</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="keywordtype">bool</span> <a class="code" href="group__uves__utils.html#gafe2dc57751c934dd70ebc93c0e25ee18" title="Determine if a table is sorted.">uves_table_is_sorted_double</a>(<span class="keyword">const</span> cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column, <span class="keyword">const</span> <span class="keywordtype">bool</span> reverse);</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> </div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utils.html#ga32f63d655b7a15cb65c59f6ed9153a69" title="Evaluate a Moffat.">uves_moffat</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result);</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utils.html#ga3268b9eca855e33e38a5bd58c5d512c0" title="Evaluate Moffat derivative.">uves_moffat_derivative</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]);</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c" title="Evaluate a gaussian.">uves_gauss</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result);</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea" title="Evaluate the derivatives of a gaussian.">uves_gauss_derivative</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]);</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utils.html#ga9f3e7e9d99f1b9785c335cc1a8ecb49f" title="Evaluate a gaussian with linear background.">uves_gauss_linear</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result);</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utils.html#ga98837a7122178c9d18c99174bfd53d9b" title="Evaluate the derivatives of a gaussian with linear background.">uves_gauss_linear_derivative</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">doubl [...]
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="keywordtype">void</span> uves_check_version(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="keywordtype">void</span> uves_frameset_dump(cpl_frameset* <span class="keyword">set</span>);</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> cpl_error_code</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <a class="code" href="group__uves__utils.html#gaaed2a3318adb62b1725bc28273757e58" title="Remove cosmic ray events on single ccd exposure and replace them by interpolation on neighbourhood pi...">uves_rcosmic</a>(cpl_image* ima,</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>              cpl_image** flt,</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>              cpl_image** out,</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>              cpl_image** msk,</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> sky,</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> ron,</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> gain,</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>              <span class="keyword">const</span> <span class="keywordtype">int</span> ns,</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> rc);</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> </div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> cpl_image *</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> uves_image_smooth_x(cpl_image * inp, <span class="keyword">const</span> <span class="keywordtype">int</span> r);</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> cpl_image *</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> uves_image_smooth_y(cpl_image * inp, <span class="keyword">const</span> <span class="keywordtype">int</span> r);</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> cpl_image *</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> uves_image_smooth_mean_x(cpl_image * inp, <span class="keyword">const</span> <span class="keywordtype">int</span> r);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> </div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span> cpl_image *</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> uves_image_smooth_median_x(cpl_image * inp, <span class="keyword">const</span> <span class="keywordtype">int</span> r);</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> cpl_image *</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> uves_image_smooth_fft(cpl_image * inp, <span class="keyword">const</span> <span class="keywordtype">int</span> fx);</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> cpl_image *</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> <a class="code" href="group__uves__utils.html#gad61bad9fe3d7614ebd9de472f600c6eb" title="Stack images using k-sigma clipping.">uves_ksigma_stack</a>(<span class="keyword">const</span> cpl_imagelist *imlist, <span class="keywordtype">double</span> klow, <span class="keywordtype">double</span> khigh, <span class="keywordtype">int</span> kiter);</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> </div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> cpl_image *</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> <a class="code" href="group__uves__utils.html#gaa6e2f1554b5345868a2f71604a42409b" title="Stack images using k-sigma clipping.">uves_flat_create_normalized_master</a>(cpl_imagelist * flats,</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                    <span class="keyword">const</span> cpl_table *ordertable,</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                                    <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a>* order_locations,</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                    <span class="keyword">const</span> cpl_vector* gain_vals,</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                    <span class="keywordtype">double</span>* fnoise);</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> </div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> cpl_image *</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> <a class="code" href="group__uves__utils.html#gaabfabe05e25ffc4af017f4e29b22a56e" title="Stack images using k-sigma clipping.">uves_flat_create_normalized_master2</a>(cpl_imagelist * flats,</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>                                    <span class="keyword">const</span> cpl_table *ordertable,</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>                                    <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a>* order_locations,</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>                                     <span class="keyword">const</span> cpl_image* mflat);</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> cpl_vector * </div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> <a class="code" href="group__uves__utils.html#ga9a60246b0b018cbee0593ced9361484f" title="Computes kappa-sigma clean mean (free bad pixels) for each input image of the input imagelist...">uves_imagelist_get_clean_mean_levels</a>(cpl_imagelist* iml, <span class="keywordtype">double</span> kappa);</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> cpl_error_code</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <a class="code" href="group__uves__utils.html#ga4cbaa270b775e7460b66e02f5b204203" title="Subtract from input imagelist values specified in input vector.">uves_imagelist_subtract_values</a>(cpl_imagelist** iml, cpl_vector* values);</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> cpl_image *</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> <a class="code" href="group__uves__utils.html#gae7a22d7bd34d61c32515d570e512e189" title="Generates wave map.">uves_get_wave_map</a>(cpl_image * ima_sci,</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> *context,</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>                   <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>           <span class="keyword">const</span> cpl_table *ordertable,</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>           <span class="keyword">const</span> cpl_table *linetable,</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>           <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a>* order_locations,</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>           <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation,</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>           <span class="keyword">const</span> <span class="keywordtype">int</span> first_abs_order,</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>           <span class="keyword">const</span> <span class="keywordtype">int</span> last_abs_order,</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>           <span class="keyword">const</span> <span class="keywordtype">int</span> slit_size);</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> </div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> cpl_image*</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> <a class="code" href="group__uves__utils.html#gaa4b717df379e29d4c74c066a528e37b2" title="Flag blemishes in a flat image.">uves_image_mflat_detect_blemishes</a>(<span class="keyword">const</span> cpl_image* flat, </div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>                                   <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* head);</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> </div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> </div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> cpl_error_code</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> <a class="code" href="group__uves__utils.html#ga7d2ec6462cf581bf7172368747e5f9d6" title="Remove column units from a table.">uves_table_remove_units</a>(cpl_table **table);</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span> cpl_error_code</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> <a class="code" href="group__uves__utils.html#ga42288426fcfd847780e7f412756c55db" title="Unify column units of table2 to table1.">uves_table_unify_units</a>(cpl_table **table2,  cpl_table **table1);</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> cpl_error_code</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> <a class="code" href="group__uves__utils.html#ga613ac59edcddc7ba24d4bf6d5a563c35" title="Unify column units in tables.">uves_tablenames_unify_units</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* tname2, <span class="keyword">const</span> <span class="keywordtype">char</span>* tname1);</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> cpl_error_code</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> <a class="code" href="group__uves__utils.html#ga7734a51460651fa363eacdf284986447" title="Remove column units from a table.">uves_tablename_remove_units</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* tname);</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utils__cpl_8c_source.html b/html/uves__utils__cpl_8c_source.html
deleted file mode 100644
index f8b1859..0000000
--- a/html/uves__utils__cpl_8c_source.html
+++ /dev/null
@@ -1,755 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utils_cpl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utils_cpl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-02-12 10:56:25 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.92 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.91  2012/10/27 15:26:23  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * fixed mem leak</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.90  2012/03/02 16:53:31  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * fixed warning related to upgrade to CPL6</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.89  2011/12/08 13:59:32  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Fox warnings with CPL6</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.88  2010/09/24 09:32:08  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.86  2010/02/13 12:22:31  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * removed inlines (let's do work to compiler)</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.85  2010/01/07 07:49:17  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * added some 'check_nomsg' statementsuves_utils.c</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.84  2008/09/29 07:00:55  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * add #include <string.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.83  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.82  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.81  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.80  2007/04/10 07:11:35  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Added check on input image type</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.79  2007/03/05 10:20:22  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Support slope parameter in 1d fitting</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.78  2007/02/27 14:08:46  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Extended interface of uves_find_property</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.77  2007/01/29 12:14:49  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Added uves_find_property()</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.76  2007/01/15 08:48:20  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Exported get_kth function</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.75  2006/12/07 08:28:18  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * compute median as average of two middle elements</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.74  2006/11/15 15:02:15  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.72  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Revision 1.71  2006/11/06 15:19:42  jmlarsen</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Revision 1.70  2006/09/19 07:17:08  jmlarsen</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * Reformatted line</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Revision 1.69  2006/09/08 14:06:04  jmlarsen</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * Added uves_tools_get_median()</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Revision 1.68  2006/08/23 09:33:03  jmlarsen</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * Renamed local variables shadowing POSIX reserved names</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.67  2006/08/18 14:21:03  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Added code to support CPL3 median filtering</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Revision 1.66  2006/08/17 14:11:25  jmlarsen</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> * Use assure_mem macro to check for memory allocation failure</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Revision 1.65  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Revision 1.64  2006/08/14 12:19:59  jmlarsen</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> * Removed unused functions</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Revision 1.63  2006/08/11 14:56:06  amodigli</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Revision 1.62  2006/08/10 10:54:09  jmlarsen</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> * Removed CX_PI definition</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Revision 1.61  2006/08/08 11:27:18  amodigli</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> * upgrade to CPL3</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Revision 1.60  2006/07/03 13:21:41  jmlarsen</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> * Changed 1d-fit parameter estimation method when only sky needs to be determined</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Revision 1.59  2006/06/13 12:02:22  jmlarsen</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * Renamed y0 -> y_0</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Revision 1.58  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Revision 1.57  2006/05/12 15:13:04  jmlarsen</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * Pass image bpm as extra parameter to fitting routine for efficiency reasons</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Revision 1.56  2006/04/24 09:27:48  jmlarsen</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> * Allow fixing background in gauss. fit</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Revision 1.55  2006/03/09 13:54:44  jmlarsen</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> * Optimization of median computation</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Revision 1.54  2006/03/09 10:51:19  jmlarsen</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> * Changed order of for loops</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Revision 1.53  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * Revision 1.52  2006/02/21 14:24:45  jmlarsen</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> * Parameterized behaviour of median filter near image border</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Revision 1.51  2006/01/31 08:25:49  jmlarsen</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> * Renamed uves_fit_gaussian_2d -> uves_fit_gaussian_2d_image</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Revision 1.50  2006/01/25 16:13:20  jmlarsen</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> * Changed interface of gauss.fitting routine</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Revision 1.49  2006/01/12 15:41:14  jmlarsen</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> * Moved gauss. fitting to irplib</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Revision 1.48  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="keyword">static</span> cpl_image *<a class="code" href="group__uves__utils__cpl.html#gafc2ebb8a19b1e10153319a018a743c9e" title="Median filter.">filter_median</a>(<span class="keyword">const</span> cpl_image *image, <span class="keywordtype">int</span> radx, <span class="keywordtype">int</span> rady,</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>                 <span class="keywordtype">bool</span> extrapolate_border);</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="keyword">const</span> cpl_property *</div>
-<div class="line"><a name="l00199"></a><span class="lineno"><a class="code" href="group__uves__utils__cpl.html#gab27457a252d480095e9f78b904becdc6">  199</a></span> <a class="code" href="group__uves__utils__cpl.html#gab27457a252d480095e9f78b904becdc6" title="Find named property.">uves_find_property_const</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keyword">const</span> <span class="keywordt [...]
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>                    <span class="keywordtype">int</span> number)</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> {</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     <span class="keywordtype">int</span> i = 0;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     <span class="keywordtype">int</span> size = <a class="code" href="group__uves__propertylist.html#gaf5397227fe7008f590b7d56bd8e0f851" title="Get the current size of a property list.">uves_propertylist_get_size</a>(plist);</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     assure( number >= 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Number (%d) must be non-negative"</span>,</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>             number);</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <span class="keywordflow">for</span> (i = 0; i < size; i++)</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     {</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>         <span class="keyword">const</span> cpl_property *p = <a class="code" href="group__uves__propertylist.html#ga987313a29d189a7bb6d120af09b25155" title="Access property list elements by index.">uves_propertylist_get_const</a>(plist, i);</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>         <span class="keywordflow">if</span> (strcmp(cpl_property_get_name(p), name) == 0)</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>         {</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>                     <span class="keywordflow">if</span> (number == 0)</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>                         {</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>                             <span class="keywordflow">return</span> p;</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                         }</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>                         <span class="comment">/* Continue search */</span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>                         {</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>                             number--;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>                         }</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>         }</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     }</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>   cleanup:</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> }</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> cpl_property *</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> uves_find_property(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                    <span class="keywordtype">int</span> number)</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> {</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     <span class="keywordflow">return</span> (cpl_property *) <a class="code" href="group__uves__utils__cpl.html#gab27457a252d480095e9f78b904becdc6" title="Find named property.">uves_find_property_const</a>(plist, name, number);</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> }</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> cpl_error_code</div>
-<div class="line"><a name="l00250"></a><span class="lineno"><a class="code" href="group__uves__utils__cpl.html#ga61202bb11e2387a91f36248674241b98">  250</a></span> <a class="code" href="group__uves__utils__cpl.html#ga61202bb11e2387a91f36248674241b98" title="Average filter.">uves_filter_image_average</a>(cpl_image *image, <span class="keywordtype">int</span> radius_x, <span class="keywordtype">int</span> radius_y)</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> {</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     cpl_image *aux = NULL;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="keywordtype">double</span> *image_data = NULL;</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <span class="keywordtype">double</span> *aux_data = NULL;</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     <span class="comment">/* For bad pixel handling, create a similar auxillary image that counts the bad pixels */</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     assure( image != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     assure( radius_x >= 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Negative x-radius (%d)"</span>, radius_x);</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     assure( radius_y >= 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Negative y-radius (%d)"</span>, radius_y);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     assure( cpl_image_get_type(image) == CPL_TYPE_DOUBLE, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         <span class="stringliteral">"Type is %s. double expected"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(image)));</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     image_data = cpl_image_get_data_double(image);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     <span class="comment">/* (Disabled:) To avoid problems with overflow (the total flux in the image might</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> <span class="comment">       be larger than INT_MAX) subtract a constant (the average flux), apply the filter,</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> <span class="comment">       then add the constant       */</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     <span class="comment">/* First build auxillary image:</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment">     * aux(x,y) = sum_{i=0,x-1} sum_{j=0,y-1}  image(i,j)</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment">     *          = sum of rectangle (0,0)-(x-1,y-1)</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span> </div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     aux = cpl_image_new(nx+1, ny+1, CPL_TYPE_DOUBLE);          <span class="comment">/* Initialized to zero */</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     aux_data = cpl_image_get_data(aux);</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     <span class="comment">/* Column x=0 and row y=0 are already zero and need not be calculated,</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="comment">     * start from 1.    */</span></div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment">/* Slow:    for (x = 1; x < nx+1; x++)</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> <span class="comment">            {</span></div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment">        for (y = 1; y < ny+1; y++)</span></div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment">        {</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     <span class="keywordflow">for</span> (i = 0; i < (nx+1)*(ny+1); i++)</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     {</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>         <span class="keywordtype">int</span> x = i % (nx+1);</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>         <span class="keywordtype">int</span> y = i / (nx+1);</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>         </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>         <span class="keywordflow">if</span> ( x >= 1 && y >= 1)</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>         {</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>             aux_data[x + y*(nx+1)] = image_data[x-1 + (y-1) * nx]</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>             + aux_data  [x-1 +    y * (nx+1)]</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>             + aux_data  [x   + (y-1)* (nx+1)]</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>             - aux_data  [x-1 + (y-1)* (nx+1)];</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>         }</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>         </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>         <span class="comment">/* Proof of induction step</span></div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="comment">         * (assume that formula holds up to (x-1,y) and (x,y-1) and prove formula for (x,y))</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="comment">         *  aux(x,y) = image(x-1, y-1) + aux(x-1, y) + aux(x, y-1) - aux(x-1, y-1)  (see code)</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> <span class="comment">         *  = image(x-1, y-1)</span></div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span> <span class="comment">         *  + sum_{i=0,x-2}_{j=0,y-1} image(i,j)  _</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> <span class="comment">         *  + sum_{i=0,x-1}_{j=0,y-2} image(i,j)   \_ sum_{j=0,y-2} image(x-1, j)  </span></div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment">         *  - sum_{i=0,x-2}_{j=0,y-2} image(i,j)  _/ </span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment">         * </span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> <span class="comment">         *  = sum_{i=0,x-2}_{j=0,y-1} image(i,j)</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="comment">         *  + sum_          {j=0,y-1} image(x-1, j)  </span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="comment">         *  </span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="comment">         *  = sum_{j=0,y-1} [ ( sum_{i=0,x-2} image(i,j) ) + image(x-1,j) ]</span></div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> <span class="comment">         *  = sum_{j=0,y-1}     sum_{i=0,x-1} image(i,j)      q.e.d.</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="comment">         *  It's simpler when you draw it... </span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     }</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Finished setting up auxillary image. Get average"</span>);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     <span class="comment">/* Then calculate average = (flux in window) / (image size) */</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     <span class="keywordflow">for</span> (i = 0; i < nx*ny; i++)</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     {</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>         <span class="keywordtype">int</span> x = (i % nx);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>         <span class="keywordtype">int</span> y = (i / nx);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>         <span class="keywordtype">int</span> lower, upper;</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>         <span class="keywordtype">int</span> left, right;</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>         </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>         lower = y - radius_y; <span class="keywordflow">if</span> (lower <   0) lower = 0;</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         upper = y + radius_y; <span class="keywordflow">if</span> (upper >= ny) upper = ny - 1;</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>         </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>         left  = x - radius_x; <span class="keywordflow">if</span> (left  <   0) left  = 0;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>         right = x + radius_x; <span class="keywordflow">if</span> (right >= nx) right = nx - 1;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>         </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>         image_data[x + y*nx] =</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>         (</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>             aux_data[(right+1) + (upper+1)*(nx+1)] +</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>             aux_data[ left     +  lower   *(nx+1)] -</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>             aux_data[ left     + (upper+1)*(nx+1)] -</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>             aux_data[(right+1) +  lower   *(nx+1)]</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>             )</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>         /</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>         ( (<span class="keywordtype">double</span>) (upper-lower+1) * (right-left+1) );</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     }</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>   cleanup:</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     uves_free_image(&aux);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> }</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> </div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> cpl_error_code</div>
-<div class="line"><a name="l00375"></a><span class="lineno"><a class="code" href="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f">  375</a></span> <a class="code" href="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f" title="Median filter.">uves_filter_image_median</a>(cpl_image **image, <span class="keywordtype">int</span> xwindow, <span class="keywordtype">int</span> ywindow, <span class="keywordtype">bool</span> extrapolate_border)</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> {</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     cpl_matrix *<span class="keywordtype">id</span> = NULL;</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     cpl_image *temp = NULL;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>     assure( xwindow >= 0 && ywindow >= 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>         <span class="stringliteral">"Illegal window radius: %d x %d"</span>, </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>         (2*xwindow + 1),</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>         (2*ywindow + 1));</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     UVES_TIME_START(<span class="stringliteral">"median filter"</span>);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span> </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     <span class="keywordflow">if</span> (xwindow <= 1 && ywindow <= 1)</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> <span class="comment">/* CPL 3 supports   if (xwindow <= 4 && ywindow <= 4) */</span></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     {</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( <span class="keywordtype">id</span> = cpl_matrix_new(2*xwindow+1, 2*ywindow+1),</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>             cpl_matrix_fill(<span class="keywordtype">id</span>, 1)), <span class="stringliteral">"Could not create kernel matrix"</span>);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>         </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>         <span class="comment">/* Image to cpl_image_filter_median must be float or double */</span></div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>         <span class="keywordflow">if</span> (cpl_image_get_type(*image) == CPL_TYPE_INT)</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>         {</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>             temp = cpl_image_cast(*image, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>             uves_free_image(image);</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         }</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>         {</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>       temp = cpl_image_duplicate(*image);</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>       uves_free_image(image);</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>         }</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *image = uves_image_filter_median(temp, <span class="keywordtype">id</span>), <span class="stringliteral">"Error applying median filter"</span>);</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>         uves_free_image(&temp);</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>         <span class="comment">/* fixme: the CPL function marks border pixels as bad. Do something</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="comment">           depending on the extrapolate_border flag */</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     }</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     {</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>         temp = *image;</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *image = <a class="code" href="group__uves__utils__cpl.html#gafc2ebb8a19b1e10153319a018a743c9e" title="Median filter.">filter_median</a>(temp, xwindow, ywindow, extrapolate_border),</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>            <span class="stringliteral">"Error applying median filter"</span>);</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>         uves_free_image(&temp);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     }</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     UVES_TIME_END;    </div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>   cleanup:</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     uves_free_matrix(&<span class="keywordtype">id</span>);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     uves_free_image(&temp);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> }</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="preprocessor">#define DOUBLE_SWAP(a,b) { register double t=(a);(a)=(b);(b)=t; }</span></div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00439"></a><span class="lineno"><a class="code" href="group__uves__utils__cpl.html#gaab92b190da2ce4979277ec4f0a09cc5b">  439</a></span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils__cpl.html#gaab92b190da2ce4979277ec4f0a09cc5b" title="returns the kth value of an array">uves_utils_get_kth_double</a>(</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>         <span class="keywordtype">double</span>  *   a, </div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>         <span class="keywordtype">int</span>         n, </div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>         <span class="keywordtype">int</span>         k)</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> {</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     <span class="keyword">register</span> <span class="keywordtype">double</span> x ;</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     <span class="keyword">register</span> <span class="keywordtype">int</span>    i, j, l, m ;</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     l=0 ; m=n-1 ;</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     <span class="keywordflow">while</span> (l<m) {</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>         x=a[k] ;</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>         i=l ;</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>         j=m ;</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>         <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>             <span class="keywordflow">while</span> (a[i]<x) i++ ;</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>             <span class="keywordflow">while</span> (x<a[j]) j-- ;</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>             <span class="keywordflow">if</span> (i<=j) {</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>                 DOUBLE_SWAP(a[i],a[j]) ;</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>                 i++ ; j-- ;</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>             }</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>         } <span class="keywordflow">while</span> (i<=j) ;</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>         <span class="keywordflow">if</span> (j<k) l=i ;</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>         <span class="keywordflow">if</span> (k<i) m=j ;</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>     }</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     <span class="keywordflow">return</span> a[k] ;</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> }</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00475"></a><span class="lineno"><a class="code" href="group__uves__utils__cpl.html#ga94492b7e724286022f3bc946952dc79d">  475</a></span> <a class="code" href="group__uves__utils__cpl.html#ga94492b7e724286022f3bc946952dc79d" title="returns median (not CPL median) of an array">uves_tools_get_median</a>(<span class="keywordtype">double</span> *a, <span class="keywordtype">int</span> n)</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> {</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     <span class="keywordflow">if</span> (n % 2 == 0)</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     {</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>         <span class="keywordflow">return</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>         (<a class="code" href="group__uves__utils__cpl.html#gaab92b190da2ce4979277ec4f0a09cc5b" title="returns the kth value of an array">uves_utils_get_kth_double</a>(a, n, n/2) +</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>          <a class="code" href="group__uves__utils__cpl.html#gaab92b190da2ce4979277ec4f0a09cc5b" title="returns the kth value of an array">uves_utils_get_kth_double</a>(a, n, n/2-1))/2.0;</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>         </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     }</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     {</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>         <span class="keywordflow">return</span> <a class="code" href="group__uves__utils__cpl.html#gaab92b190da2ce4979277ec4f0a09cc5b" title="returns the kth value of an array">uves_utils_get_kth_double</a>(a, n, (n-1)/2);</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     }</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> }</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> </div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> </div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="keyword">static</span> cpl_image *</div>
-<div class="line"><a name="l00516"></a><span class="lineno"><a class="code" href="group__uves__utils__cpl.html#gafc2ebb8a19b1e10153319a018a743c9e">  516</a></span> <a class="code" href="group__uves__utils__cpl.html#gafc2ebb8a19b1e10153319a018a743c9e" title="Median filter.">filter_median</a>(<span class="keyword">const</span> cpl_image *image, <span class="keywordtype">int</span> radx, <span class="keywordtype">int</span> rady, <span class="keywordtype">bool</span> extrapolate_border)</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> {</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>     <span class="keywordtype">int</span> nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>     <span class="keywordtype">int</span> ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>     cpl_image *result = cpl_image_new(nx, ny, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>     <span class="keywordtype">double</span> *result_data;</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *image_data;</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     <span class="keywordtype">double</span> *window = NULL;</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> </div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     window = cpl_malloc(<span class="keyword">sizeof</span>(<span class="keywordtype">double</span>) * (2*radx+1)*(2*rady+1));</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( result );</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     assure( cpl_image_get_type(image) == CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>             CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Type is %s"</span>, </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>             <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(image)));</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     result_data = cpl_image_get_data_double(result);</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     image_data = cpl_image_get_data_double_const(image);</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>     <span class="keywordflow">for</span> (y = 1; y <= ny; y++)</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     {</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>         <span class="keywordflow">for</span> (x = 1; x <= nx; x++)</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>         {</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>             <span class="keywordtype">int</span> x1, y_1, x2, y2;</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>             </div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>             x1 = x - radx; y_1 = y - rady;</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>             x2 = x + radx; y2  = y + rady;</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>             <span class="keywordflow">if</span> (extrapolate_border)</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>             {</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>                 <span class="comment">/* At edge of image, move median box, so</span></div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> <span class="comment">                   that entire box is inside of image */</span></div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>                 <span class="keywordflow">if</span> (x1 < 1)</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>                 {</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>                     x2 += (1 - x1);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>                     x1 += (1 - x1);</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>                 }</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                 <span class="keywordflow">if</span> (nx < x2)</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                 {</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                     x1 -= (x2 - nx);</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                     x2 -= (x2 - nx);</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                 }</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>                 </div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>                 <span class="keywordflow">if</span> (y_1 < 1)</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>                 {</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>                     y2  += (1 - y_1);</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>                     y_1 += (1 - y_1);</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>                 }</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>                 <span class="keywordflow">if</span> (ny < y2)</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>                 {</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>                     y_1 -= (y2 - ny);</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>                     y2  -= (y2 - ny);</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>                 }</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>             }</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>             <span class="keywordflow">else</span> { <span class="comment">/* Rely on the use of min/max below */</span> }</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>             </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span> <span class="preprocessor"></span>            result_data[(x-1) + (y-1)*nx] = </div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>             cpl_image_get_median_window(image,  </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                             uves_max_int(1,  x1),</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                             uves_max_int(1,  y_1),</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>                             uves_min_int(nx, x2),</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>                             uves_min_int(ny, y2));</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> </div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> <span class="preprocessor"></span>            <span class="comment">/* This saves a few (~10-20) percent execution time */</span></div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>             {</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>             <span class="keywordtype">int</span> i, j, k;</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>             </div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>             k = 0;</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>             <span class="keywordflow">for</span> (j  = uves_max_int(1 , y_1)-1;</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>                  j <= uves_min_int(ny, y2 )-1;</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>                  j++)</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>                 <span class="keywordflow">for</span> (i  = uves_max_int(1,  x1)-1; </div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>                  i <= uves_min_int(nx, x2)-1; </div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>                  i++)</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>                 {</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>                     window[k++] = image_data[i + j*nx];</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>                 }</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>             </div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>             result_data[(x-1) + (y-1)*nx] = </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>                 <a class="code" href="group__uves__utils__cpl.html#gaab92b190da2ce4979277ec4f0a09cc5b" title="returns the kth value of an array">uves_utils_get_kth_double</a>(window,k,(((k)&1)?((k)/2):(((k)/2)-1))) ;</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>             }</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> <span class="preprocessor">#endif        </span></div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>     }</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>     </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span> </div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>     assure( cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(), </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>         <span class="stringliteral">"Error calculating %dx%d median filter"</span>, radx, rady);</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>     </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>   cleanup:</div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>     cpl_free(window);</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> }</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> </div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> </div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> cpl_error_code</div>
-<div class="line"><a name="l00644"></a><span class="lineno"><a class="code" href="group__uves__utils__cpl.html#ga925c077e4720e3357196ef4161ffea53">  644</a></span> <a class="code" href="group__uves__utils__cpl.html#ga925c077e4720e3357196ef4161ffea53" title="Fit a 2d gaussian to an image sub-window.">uves_fit_gaussian_2d_image</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *noise,</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>                <span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y_1,</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>                <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y2,</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>                <span class="keywordtype">double</span> *x0, <span class="keywordtype">double</span> *y_0, <span class="keywordtype">double</span> *sigmax, <span class="keywordtype">double</span> *sigmay,</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>                <span class="keywordtype">double</span> *amplitude,</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>                <span class="keywordtype">double</span> *dx0, <span class="keywordtype">double</span> *dy0</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>     )</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> {</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>     cpl_image  *marginal_x = NULL;</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>     cpl_image  *marginal_y = NULL;</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>     cpl_image  *marginal_x_noise = NULL;</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>     cpl_image  *marginal_y_noise = NULL;</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>     cpl_image  *variance = NULL;</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>     cpl_matrix *covariance = NULL;</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span> </div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>     <span class="keywordtype">double</span> norm_x, norm_y;</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>     <span class="keywordtype">double</span> background_x, background_y;</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span> </div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>     assure( image != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>     assure( noise != NULL || (dx0 == NULL && dy0 == NULL), CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>         <span class="stringliteral">"Cannot compute uncertainty of fit with no noise image specified"</span>);</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     assure( noise == NULL || </div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>         (cpl_image_get_size_x(noise) == nx &&</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>          cpl_image_get_size_y(noise) == ny),</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>         CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>         <span class="stringliteral">"Size of input image (%dx%d) and noise image (%"</span> CPL_SIZE_FORMAT <span class="stringliteral">"x%"</span> CPL_SIZE_FORMAT <span class="stringliteral">") differ"</span>, </div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>         nx, ny,</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>         cpl_image_get_size_x(noise),</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>         cpl_image_get_size_y(noise));</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>     assure( 1 <= x1 && x1 <= x2 && x2 <= nx &&</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>         1 <= y_1 && y_1 <= y2 && y2 <= ny, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>         <span class="stringliteral">"Illegal window: (%d, %d)-(%d, %d)"</span>, x1, y_1, x2, y2);</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>     assure( x0 != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null x-center"</span>);</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>     assure( y_0 != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null y-center"</span>);</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>     assure( sigmax != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null sigma_x"</span>);</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>     assure( sigmay != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null sigma_y"</span>);</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>     <span class="comment">/* amplitude, dx0, dy0 may be NULL */</span></div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span> </div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>     <span class="keywordflow">if</span> (noise != NULL)</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     {</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>         <span class="comment">/* Variance = noise^2 */</span></div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( variance = cpl_image_extract(noise, x1, y_1, x2, y2),</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>             cpl_image_power(variance, 2.0)),</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>            <span class="stringliteral">"Error creating variance image"</span>);</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>     }</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>     </div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>     <span class="comment">/* Collapse along columns (result is horizontal) */</span></div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( marginal_x = cpl_image_collapse_window_create(image,</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>                              x1, y_1, x2, y2,</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                              0),           <span class="comment">/* Sum of columns */</span></div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>        <span class="stringliteral">"Error collapsing window (%d, %d) - (%d, %d)"</span>, x1, y_1, x2, y2);  </div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span> </div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     <span class="keywordflow">if</span> (noise != NULL)</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     {</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>         <span class="comment">/* Sigma of sum = sqrt [ sum sigma_i^2 ] */</span></div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>         </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( marginal_x_noise = cpl_image_collapse_window_create(variance,</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                                        1, 1, </div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>                                        x2-x1+1, y2-y_1+1,</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>                                        0), <span class="comment">/* Sum of columns */</span></div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>            <span class="stringliteral">"Error collapsing window (1, 1) - (%d, %d)"</span>, x2-x1+1, y2-y_1+1);</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> </div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>         <span class="comment">/* Sqrt */</span></div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>         cpl_image_power(marginal_x_noise, 0.5);</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     }</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     </div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>     <span class="comment">/* Collapse along rows (result is vertical) */</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( marginal_y = cpl_image_collapse_window_create(image,</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>                              x1, y_1, x2, y2,</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>                              1),           <span class="comment">/* Sum of rows */</span></div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>        <span class="stringliteral">"Error collapsing window (%d, %d) - (%d, %d)"</span>, x1, y_1, x2, y2);  </div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>     </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>     <span class="keywordflow">if</span> (noise != NULL)</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>     {</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( marginal_y_noise = cpl_image_collapse_window_create(variance,</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>                                        1, 1,</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>                                        x2-x1+1, y2-y_1+1,</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>                                        1), <span class="comment">/* Sum of rows */</span></div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>            <span class="stringliteral">"Error collapsing window (1, 1) - (%d, %d)"</span>, x2-x1+1, y2-y_1+1);</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span> </div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>         <span class="comment">/* Sqrt */</span></div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>         cpl_image_power(marginal_y_noise, 0.5);</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     }</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span> </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     <span class="comment">/* Fit x-distribution */</span></div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>     uves_fit_1d_image(marginal_x, marginal_x_noise, NULL,</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>               <span class="keyword">true</span>,                       <span class="comment">/* Horizontal ?                  */</span></div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>               <span class="keyword">false</span>, <span class="keyword">false</span>,               <span class="comment">/* Fix/fit background ?          */</span></div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>               1, x2 - x1 + 1, 1,          <span class="comment">/* xlo, xhi, y                   */</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>               x0, sigmax, &norm_x, &background_x, NULL,</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>               NULL, NULL,                 <span class="comment">/* mse, red. chi^2               */</span></div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>               (dx0 != NULL) ? &covariance : NULL,</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>               <a class="code" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c" title="Evaluate a gaussian.">uves_gauss</a>, <a class="code" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea" title="Evaluate the derivatives of a gaussian.">uves_gauss_derivative</a>, 4);</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> </div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>     <span class="comment">/* Set code 'CPL_ERROR_CONTINUE' if fitting failed, check for unexpected errors */</span></div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>     assure( cpl_error_get_code() != CPL_ERROR_CONTINUE ||</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>         cpl_error_get_code() != CPL_ERROR_SINGULAR_MATRIX,</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>         CPL_ERROR_CONTINUE, <span class="stringliteral">"Fitting along x failed"</span>);</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>     assure( cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(), </div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>         <span class="stringliteral">"Fitting along x failed"</span>);</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>      </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     <span class="comment">/* Map to world-coordinates */</span></div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>     *x0 += (x1 - 1);</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>     </div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>     <span class="keywordflow">if</span> (dx0 != NULL)</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>     {</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>         *dx0 = cpl_matrix_get(covariance, 0, 0);</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>     }</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span> </div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>     <span class="comment">/* Fit y-distribution */</span></div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>     uves_free_matrix(&covariance);</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>     uves_fit_1d_image(marginal_y, marginal_y_noise, NULL,</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>               <span class="keyword">false</span>,                      <span class="comment">/* Horizontal ?                  */</span></div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>               <span class="keyword">false</span>, <span class="keyword">false</span>,               <span class="comment">/* Fix/fit background ?          */</span></div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>               1, y2 - y_1 + 1, 1,          <span class="comment">/* ylo, yhi, x                   */</span></div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>               y_0, sigmay, &norm_y, &background_y, NULL,</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>               NULL, NULL,                 <span class="comment">/* mse, red. chi^2               */</span></div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>               (dy0 != NULL) ? &covariance : NULL,</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>               <a class="code" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c" title="Evaluate a gaussian.">uves_gauss</a>, <a class="code" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea" title="Evaluate the derivatives of a gaussian.">uves_gauss_derivative</a>, 4);</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     </div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>     <span class="comment">/* Set code 'CPL_ERROR_CONTINUE' if fitting failed, check for unexpected errors */</span></div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>     assure( cpl_error_get_code() != CPL_ERROR_CONTINUE ||</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>         cpl_error_get_code() != CPL_ERROR_SINGULAR_MATRIX,</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>         CPL_ERROR_CONTINUE, <span class="stringliteral">"Fitting along y failed"</span>);</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>     assure( cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(), </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>         <span class="stringliteral">"Fitting along y failed"</span>);</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     <span class="comment">/* Map to world-coordinates */</span></div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>     *y_0 += (y_1 - 1);</div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>     </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>     <span class="keywordflow">if</span> (dy0 != NULL)</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     {</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>         *dy0 = cpl_matrix_get(covariance, 0, 0);</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     }</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>     </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     <span class="comment">/* Set amplitude  = N / [ sqrt(2pi sigmax^2) sqrt(2pi sigmay^2) ].</span></div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> <span class="comment">     * The fitted norm (area), N, is the same (up to numerical errors) in both directions,</span></div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> <span class="comment">     * so use geometric average as an estimate of N.</span></div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     <span class="keywordflow">if</span> (amplitude != NULL)</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     {</div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>         *amplitude = sqrt(norm_x * norm_y) / (2*M_PI * (*sigmax) * (*sigmay));</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>     }</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>     </div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>   cleanup:</div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>     uves_free_matrix(&covariance);</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>     uves_free_image(&variance);</div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>     uves_free_image(&marginal_x);</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>     uves_free_image(&marginal_x_noise);</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>     uves_free_image(&marginal_y);</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>     uves_free_image(&marginal_y_noise);</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>     </div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span> }</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utils__cpl_8h_source.html b/html/uves__utils__cpl_8h_source.html
deleted file mode 100644
index 53dd014..0000000
--- a/html/uves__utils__cpl_8h_source.html
+++ /dev/null
@@ -1,196 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utils_cpl.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utils_cpl.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:08 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.44 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.42  2010/02/13 12:22:31  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * removed inlines (let's do work to compiler)</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.41  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.40  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.39  2007/02/27 14:08:46  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Extended interface of uves_find_property</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.38  2007/01/29 12:14:51  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added uves_find_property()</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.37  2007/01/15 08:48:26  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Exported get_kth function</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.36  2006/11/06 15:19:42  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.35  2006/09/19 07:17:08  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Reformatted line</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.34  2006/09/11 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Renamed identifier reserved by POSIX</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.33  2006/09/08 14:06:03  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Added uves_tools_get_median()</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.32  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.31  2006/06/13 12:02:21  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Renamed y0 -> y_0</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.30  2006/02/21 14:24:45  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Parameterized behaviour of median filter near image border</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.29  2006/01/31 08:25:50  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Renamed uves_fit_gaussian_2d -> uves_fit_gaussian_2d_image</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.28  2006/01/25 16:13:20  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Changed interface of gauss.fitting routine</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.27  2006/01/12 15:41:14  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Moved gauss. fitting to irplib</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.26  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor">#ifndef UVES_UTILS_CPL_H</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_UTILS_CPL_H</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">                    Includes</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor">#include <limits.h></span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">                             Defines</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">                                   Prototypes</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="keyword">const</span> cpl_property * <a class="code" href="group__uves__utils__cpl.html#gab27457a252d480095e9f78b904becdc6" title="Find named property.">uves_find_property_const</a>(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                     <span class="keywordtype">int</span> number);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> cpl_property * uves_find_property(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                   <span class="keywordtype">int</span> number);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> cpl_error_code <a class="code" href="group__uves__utils__cpl.html#ga2637b4cd5f703fad74d5f9a9aef2394f" title="Median filter.">uves_filter_image_median</a>(cpl_image **image, <span class="keywordtype">int</span> xwindow, </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                     <span class="keywordtype">int</span> ywindow, <span class="keywordtype">bool</span> extrapolate_border);</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> cpl_error_code <a class="code" href="group__uves__utils__cpl.html#ga61202bb11e2387a91f36248674241b98" title="Average filter.">uves_filter_image_average</a>(cpl_image *image, <span class="keywordtype">int</span> radius_x, </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>                      <span class="keywordtype">int</span> radius_y);</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> cpl_error_code <a class="code" href="group__uves__utils__cpl.html#ga925c077e4720e3357196ef4161ffea53" title="Fit a 2d gaussian to an image sub-window.">uves_fit_gaussian_2d_image</a>(<span class="keyword">const</span> cpl_image *image, </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>                       <span class="keyword">const</span> cpl_image *noise,</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>                       <span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y_1,</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                       <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y2,</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>                       <span class="keywordtype">double</span> *x0, <span class="keywordtype">double</span> *y_0,</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>                       <span class="keywordtype">double</span> *sigmax, <span class="keywordtype">double</span> *sigmay,</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>                       <span class="keywordtype">double</span> *amplitude,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                       <span class="keywordtype">double</span> *dx0, <span class="keywordtype">double</span> *dy0);</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils__cpl.html#ga94492b7e724286022f3bc946952dc79d" title="returns median (not CPL median) of an array">uves_tools_get_median</a>(<span class="keywordtype">double</span> *a, <span class="keywordtype">int</span> n);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="keywordtype">double</span> <a class="code" href="group__uves__utils__cpl.html#gaab92b190da2ce4979277ec4f0a09cc5b" title="returns the kth value of an array">uves_utils_get_kth_double</a>(<span class="keywordtype">double</span>  *   a, </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                     <span class="keywordtype">int</span>         n, </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>                     <span class="keywordtype">int</span>         k);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> </div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utils__polynomial_8c_source.html b/html/uves__utils__polynomial_8c_source.html
deleted file mode 100644
index 02c8cb5..0000000
--- a/html/uves__utils__polynomial_8c_source.html
+++ /dev/null
@@ -1,1579 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utils_polynomial.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utils_polynomial.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-01-12 16:44:43 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.68 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.67  2011/12/08 14:03:32  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Fix warnings with CPL6</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.66  2010/09/24 09:32:08  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.64  2007/09/11 17:08:49  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * mooved uves_polynomial_convert_from_plist_midas to uves_dfs</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.63  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.62  2007/06/20 15:34:50  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Changed indentation</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.61  2007/06/20 08:30:00  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * added index parameter to support FIBER mode lintab in uves_polynomial_convert_from_plist_midas</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.60  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.59  2007/05/03 15:23:08  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Removed dead code</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.58  2007/05/03 15:18:29  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added function to add polynomials</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.57  2007/04/27 07:21:51  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Polyfit: Changed error code from ILLEGAL_INPUT to SINGULAR_MATRIX</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.56  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.55  2007/03/23 08:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Fixed mixed code and declarations</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.54  2007/03/19 15:10:03  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Optimization in 2d fitting: do not call pow too often</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.53  2007/03/13 15:35:11  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Made a few time optimizations</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.52  2007/03/05 10:20:49  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Added uves_polynomial_delete_const()</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.51  2007/01/15 08:48:51  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Shortened lines</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.50  2006/11/24 09:36:49  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Workaround for slow uves_propertylist_get_size</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.49  2006/11/15 15:02:15  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.47  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Revision 1.46  2006/11/13 14:23:55  jmlarsen</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * Removed workarounds for CPL const bugs</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Revision 1.45  2006/11/06 15:19:42  jmlarsen</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Revision 1.44  2006/09/08 14:06:29  jmlarsen</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * Removed profiling code</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.43  2006/09/06 14:46:21  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Added missing newline in uves_polynomial_dump()</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Revision 1.42  2006/08/17 14:11:25  jmlarsen</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> * Use assure_mem macro to check for memory allocation failure</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Revision 1.41  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Revision 1.40  2006/07/03 13:27:52  jmlarsen</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> * Moved failing assertion to where it should be</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Revision 1.39  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Revision 1.38  2006/05/05 13:59:03  jmlarsen</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> * Support fitting zero-degree polynomial</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Revision 1.37  2006/04/24 09:28:29  jmlarsen</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> * Added function to create zero-polynomial</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Revision 1.36  2006/03/27 09:41:37  jmlarsen</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> * Added timing markers</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Revision 1.35  2006/03/09 10:52:25  jmlarsen</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * Renamed pow->power</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Revision 1.34  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Revision 1.33  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> *  When storing a 2d polynomial in a table,</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> *  these column names are used</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="preprocessor">#define COLUMN_ORDER1 "Order1"</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="preprocessor"></span><span class="preprocessor">#define COLUMN_ORDER2 "Order2"</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="preprocessor"></span><span class="preprocessor">#define COLUMN_COEFF  "Coeff"</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment">                            Typedefs</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno"><a class="code" href="struct__polynomial.html">  186</a></span> <span class="keyword">struct </span><a class="code" href="struct__polynomial.html">_polynomial</a> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> {</div>
-<div class="line"><a name="l00189"></a><span class="lineno"><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">  189</a></span>     cpl_polynomial *<a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>; </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno"><a class="code" href="struct__polynomial.html#a8ebfb08c87b2969c891912c8edee2d6d">  192</a></span>     cpl_vector *<a class="code" href="struct__polynomial.html#a8ebfb08c87b2969c891912c8edee2d6d">vec</a>;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     <span class="keywordtype">double</span> *vec_data;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     <span class="keywordtype">int</span> dimension;  <span class="comment">/* for efficiency */</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno"><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">  198</a></span>     <span class="keywordtype">double</span> *<a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno"><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">  201</a></span>     <span class="keywordtype">double</span> *<a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> };</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00220"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6">  220</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(<span class="keyword">const</span> cpl_polynomial *pol)</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> {</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *p = NULL;</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     <span class="comment">/* Test input */</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     assure(pol != NULL, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     <span class="comment">/* Allocate and initialize struct */</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     p = cpl_calloc(1, <span class="keyword">sizeof</span>(<a class="code" href="struct__polynomial.html">polynomial</a>)) ;</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( p );</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( p->dimension = cpl_polynomial_get_dimension(pol), <span class="stringliteral">"Error reading dimension"</span>);</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     <span class="comment">/* Allocate vector */</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     p-><a class="code" href="struct__polynomial.html#a8ebfb08c87b2969c891912c8edee2d6d">vec</a> = cpl_vector_new(p->dimension);</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( p-><a class="code" href="struct__polynomial.html#a8ebfb08c87b2969c891912c8edee2d6d">vec</a> );</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     p->vec_data = cpl_vector_get_data(p-><a class="code" href="struct__polynomial.html#a8ebfb08c87b2969c891912c8edee2d6d">vec</a>);</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <span class="comment">/* Shifts are initialized to zero, scales to 1 */</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a> = cpl_calloc(p->dimension + 1, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a> );</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> </div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a> = cpl_malloc((p->dimension + 1) * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a> );</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     <span class="keywordflow">for</span> (i = 0; i <= p->dimension; i++)</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[i] = 1.0;</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a> = cpl_polynomial_duplicate(pol), <span class="stringliteral">"Error copying polynomial"</span>);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>   cleanup:</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p);</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     </div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <span class="keywordflow">return</span> p;</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> }</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> </div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00267"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded">  267</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(<span class="keywordtype">int</span> dim)</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> {</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *result = NULL;</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     cpl_polynomial *p = NULL;</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     assure( dim >= 1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal dimension: %d"</span>, dim);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     p = cpl_polynomial_new(dim);</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( p );</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     result = <a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(p);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( result );</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>   cleanup:</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     uves_free_polynomial(&p);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> }</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00295"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969">  295</a></span> <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(<a class="code" href="struct__polynomial.html">polynomial</a> **p)</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> {</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd" title="Delete a const polynomial.">uves_polynomial_delete_const</a>((<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> **)p);</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> }</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l00309"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd">  309</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd" title="Delete a const polynomial.">uves_polynomial_delete_const</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> **p)</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> {</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="keywordflow">if</span> (*p == NULL) <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     cpl_polynomial_delete((*p)->pol);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     cpl_vector_delete((*p)->vec);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     cpl_free((*p)->shift);</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     cpl_free((*p)->scale);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     uves_free(*p);</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     *p = NULL;</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> }</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga56987ebb6bb09ab3f7477783627cba7b">  328</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga56987ebb6bb09ab3f7477783627cba7b" title="Get degree.">uves_polynomial_get_degree</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p)</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> {</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     <span class="keywordtype">int</span> result = -1;</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     assure( p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     result = cpl_polynomial_get_degree(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>);</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>   cleanup:</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> }</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00347"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53">  347</a></span> <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p)</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span> {</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *result = NULL;</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     <span class="keywordtype">int</span> dimension;</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     assure( p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     dimension = <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p);</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> </div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( result = <a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>),</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>        <span class="stringliteral">"Error allocating polynomial"</span>);</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     <span class="keywordflow">for</span> (i = 0; i <= dimension; i++)</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     {</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>         result-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[i] = p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[i];</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>         result-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[i] = p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[i];</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     }</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span> </div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>   cleanup:</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     {</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&result);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>         <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     }</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> }</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span> cpl_table *</div>
-<div class="line"><a name="l00389"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga63ecda6c71765c319dc2d4141222bb42">  389</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga63ecda6c71765c319dc2d4141222bb42" title="Convert a polynomial to a table.">uves_polynomial_convert_to_table</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p)</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> {</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     cpl_table *t = NULL; <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     <span class="keywordtype">int</span> degree;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     <span class="keywordtype">int</span> i, j, row;</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     assure( p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>     assure( <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p) == 2, </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Polynomial must be 2D"</span>);</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>     </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>     degree = cpl_polynomial_get_degree(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>);</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     <span class="comment">/* Allocate space for 3 shifts, 3 scale factors and all</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="comment">       coefficients */</span></div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>     t = cpl_table_new(3 + 3 + (degree + 1)*(degree + 2)/2);</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>     cpl_table_new_column(t, COLUMN_ORDER1, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     cpl_table_new_column(t, COLUMN_ORDER2, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     cpl_table_new_column(t, COLUMN_COEFF , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     row = 0;</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     <span class="comment">/* First write the shifts, write non-garbage to coeff columns (which are not used) */</span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     cpl_table_set_int   (t, COLUMN_ORDER1, row, -1);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     cpl_table_set_int   (t, COLUMN_ORDER2, row, -1);</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     cpl_table_set_double(t, COLUMN_COEFF , row, p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[0]); row++;</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> </div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     cpl_table_set_int   (t, COLUMN_ORDER1, row, -1);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     cpl_table_set_int   (t, COLUMN_ORDER2, row, -1);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     cpl_table_set_double(t, COLUMN_COEFF , row, p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[1]); row++;</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     cpl_table_set_int   (t, COLUMN_ORDER1, row, -1);</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     cpl_table_set_int   (t, COLUMN_ORDER2, row, -1);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     cpl_table_set_double(t, COLUMN_COEFF , row, p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[2]); row++;</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     <span class="comment">/* Then the scale factors */</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     cpl_table_set_int   (t, COLUMN_ORDER1, row, -1);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     cpl_table_set_int   (t, COLUMN_ORDER2, row, -1);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     cpl_table_set_double(t, COLUMN_COEFF, row, p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[0]); row++;</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span> </div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     cpl_table_set_int   (t, COLUMN_ORDER1, row, -1);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     cpl_table_set_int   (t, COLUMN_ORDER2, row, -1);</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     cpl_table_set_double(t, COLUMN_COEFF, row, p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[1]); row++;</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     cpl_table_set_int   (t, COLUMN_ORDER1, row, -1);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     cpl_table_set_int   (t, COLUMN_ORDER2, row, -1);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     cpl_table_set_double(t, COLUMN_COEFF, row, p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[2]); row++;</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> </div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     <span class="comment">/* And then write the coefficients */</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     <span class="keywordflow">for</span> (i = 0; i <= degree; i++){</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     <span class="keywordflow">for</span> (j = 0; j+i <= degree; j++){</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>         <span class="keywordtype">double</span> coeff;</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>         cpl_size power[2];</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>         power[0] = i;</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>         power[1] = j;</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>         </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>         coeff = cpl_polynomial_get_coeff(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>, power);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         cpl_table_set_int   (t, COLUMN_ORDER1, row, power[0]);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>         cpl_table_set_int   (t, COLUMN_ORDER2, row, power[1]);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>         cpl_table_set_double(t, COLUMN_COEFF , row, coeff);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>         </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>         row++;</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     }</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     }</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span> </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>   cleanup:</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     <span class="keywordflow">return</span> t;</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> }</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00469"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga135ba9a062f18392bb33b678c9dedaa4">  469</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga135ba9a062f18392bb33b678c9dedaa4" title="Convert a table to a polynomial.">uves_polynomial_convert_from_table</a>(cpl_table *t)</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span> {</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *p = NULL;  <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     cpl_polynomial *pol = NULL;</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     cpl_type type;</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     <span class="comment">/* Only 2d supported */</span></div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( pol = cpl_polynomial_new(2), <span class="stringliteral">"Error initializing polynomial"</span>);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     <span class="comment">/* Check table format */</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>     assure(t != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table"</span>);</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     assure(cpl_table_has_column(t, COLUMN_ORDER1), CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>        <span class="stringliteral">"No '%s' column found in table"</span>, COLUMN_ORDER1);</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     assure(cpl_table_has_column(t, COLUMN_ORDER2), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>        <span class="stringliteral">"No '%s' column found in table"</span>, COLUMN_ORDER2);</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     assure(cpl_table_has_column(t, COLUMN_COEFF ), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>        <span class="stringliteral">"No '%s' column found in table"</span>, COLUMN_COEFF );</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     type = cpl_table_get_column_type(t, COLUMN_ORDER1);</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     assure(type == CPL_TYPE_INT   , CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>        <span class="stringliteral">"Column '%s' has type %s. Integer expected"</span>, COLUMN_ORDER1,</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>        <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>     </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>     type = cpl_table_get_column_type(t, COLUMN_ORDER2);</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     assure(type == CPL_TYPE_INT   , CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>        <span class="stringliteral">"Column '%s' has type %s. Integer expected"</span>, COLUMN_ORDER2,</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>        <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     type = cpl_table_get_column_type(t, COLUMN_COEFF);</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     assure(type == CPL_TYPE_DOUBLE, CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>        <span class="stringliteral">"Column '%s' has type %s. Double expected"</span>, COLUMN_COEFF ,</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>        <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     assure(cpl_table_get_nrow(t) > 1 + 2 + 1 + 2, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>        <span class="stringliteral">"Table must contain at least one coefficient"</span>);</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     </div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     <span class="comment">/* Read the coefficients */</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     <span class="keywordflow">for</span>(i = 3 + 3; i < cpl_table_get_nrow(t); i++) {</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>     <span class="keywordtype">double</span> coeff;</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     cpl_size power[2];</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( power[0] = cpl_table_get_int(t, COLUMN_ORDER1, i, NULL),</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>         power[1] = cpl_table_get_int(t, COLUMN_ORDER2, i, NULL),</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>         coeff  = cpl_table_get_double(t, COLUMN_COEFF , i, NULL)),</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>            <span class="stringliteral">"Error reading table row %d"</span>, i);</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Pol.coeff.(%"</span> CPL_SIZE_FORMAT <span class="stringliteral">", %"</span> CPL_SIZE_FORMAT <span class="stringliteral">") = %e"</span>, power[0], power[1], coeff);</div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_polynomial_set_coeff(pol, power, coeff), <span class="stringliteral">"Error creating polynomial"</span>);</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>     }</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>     p = <a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(pol);</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> </div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>     <span class="comment">/* Read shifts and rescaling */</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     <a class="code" href="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081" title="Rescale a polynomial.">uves_polynomial_rescale</a>(p, 0, cpl_table_get_double( t, COLUMN_COEFF, 3, NULL));</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     <a class="code" href="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081" title="Rescale a polynomial.">uves_polynomial_rescale</a>(p, 1, cpl_table_get_double( t, COLUMN_COEFF, 4, NULL));</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     <a class="code" href="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081" title="Rescale a polynomial.">uves_polynomial_rescale</a>(p, 2, cpl_table_get_double( t, COLUMN_COEFF, 5, NULL));</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>  (p, 0, cpl_table_get_double( t, COLUMN_COEFF, 0, NULL));</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>  (p, 1, cpl_table_get_double( t, COLUMN_COEFF, 1, NULL));</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>  (p, 2, cpl_table_get_double( t, COLUMN_COEFF, 2, NULL));</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>   cleanup:</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     uves_free_polynomial(&pol);</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&p);</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>     <span class="keywordflow">return</span> p;</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> }</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> </div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00547"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616">  547</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p)</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span> {</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>     <span class="keywordtype">int</span> dim = -1;</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     assure(p != NULL, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> <span class="comment">/* slow     check( dim = cpl_polynomial_get_dimension(p->pol), "Error reading dimension"); */</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     dim = p->dimension;</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>     </div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>   cleanup:</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>     <span class="keywordflow">return</span> dim;</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> }</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span> </div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga0879179dcb0100de2d26f8de459d5838">  568</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__utils__polynomial.html#ga0879179dcb0100de2d26f8de459d5838" title="Print a polynomial.">uves_polynomial_dump</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, FILE *stream)</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> {</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>     <span class="keywordflow">if</span> (p == NULL)</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>     fprintf(stream, <span class="stringliteral">"Null polynomial\n"</span>);</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>     cpl_polynomial_dump(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>, stream);</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     fprintf(stream, <span class="stringliteral">"shift_y \t= %f  \tscale_y \t= %f\n"</span>, p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[0], p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[0]);</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>     <span class="keywordflow">for</span> (i = 1; i <= <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p); i++)</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>         {</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>         fprintf(stream, <span class="stringliteral">"shift_x%d \t= %f  \tscale_x%d \t= %f\n"</span>, </div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>             i, p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[i], i, p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[i]);</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>         }</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>     }</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span> }</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span> </div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> cpl_error_code</div>
-<div class="line"><a name="l00601"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081">  601</a></span> <a class="code" href="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081" title="Rescale a polynomial.">uves_polynomial_rescale</a>(<a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">int</span> varno, <span class="keywordtype">double</span> scale)</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> {</div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     assure(p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>     assure(0 <= varno && varno <= <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p), </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>        CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal variable number: %d"</span>, varno);</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span> </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     <span class="comment">/*  Rescaling an x variable by the factor S corresponds to:  </span></div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span> <span class="comment">     *    p'(x) := p(x/S)  =</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span> <span class="comment">     *  cpl( (x/S -  shiftx ) /    scalex  ) * scaley + shifty  = </span></div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> <span class="comment">     *  cpl( (x - (S*shiftx)) / (S*scalex) ) * scaley + shifty      */</span></div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> </div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>     <span class="comment">/*  Rescaling the y variable by the factor S corresponds to:  </span></div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> <span class="comment">     *    p'(x) := S*p(x)  =</span></div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span> <span class="comment">     *  S * ( cpl((x - shiftx)/scalex) * scaley     + shifty )  = </span></div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span> <span class="comment">     *        cpl((x - shiftx)/scalex) * (S*scaley) + (S*shifty) </span></div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> <span class="comment">     *  therefore the implementation is the same in the two cases. */</span></div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>      </div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[varno] *= scale;</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>     p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[varno] *= scale;</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span> </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>   cleanup:</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> }</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span> </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span> cpl_error_code</div>
-<div class="line"><a name="l00642"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4">  642</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(<a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">int</span> varno, <span class="keywordtype">double</span> shift)</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> {</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     assure(p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>     assure(0 <= varno && varno <= <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p), </div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>        CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal variable number: %d"</span>, varno);</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> </div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>     <span class="comment">/* The implementation is similar for x and y variables because</span></div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> <span class="comment">     *  p(x-S)  =</span></div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span> <span class="comment">     *  cpl( (x-S - shiftx)   / scalex ) * scaley + shifty  = </span></div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span> <span class="comment">     *  cpl( (x - (shiftx+S)) / scalex ) * scaley + shifty</span></div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span> <span class="comment">     * and</span></div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> <span class="comment">     *  p(x) + S  =</span></div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> <span class="comment">     *  cpl( (x - shiftx)/scalex ) * scaley + shifty + S  = </span></div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> <span class="comment">     *  cpl( (x - shiftx)/scalex ) * scaley + (shifty+S)      */</span></div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span> </div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>     p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[varno] += shift;</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span> </div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>   cleanup:</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span> }</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span> </div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00674"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538">  674</a></span> <a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">double</span> x)</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span> {</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>     </div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>     assure(p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>     assure(<a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p) == 1, </div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>        CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Polynomial must be 1d"</span>);</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>     </div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( result = </div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>        cpl_polynomial_eval_1d(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>, (x - p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[1])/p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[1], NULL)</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>        * p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[0] + p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[0],</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>        <span class="stringliteral">"Could not evaluate polynomial"</span>);</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>     </div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>   cleanup:</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span> }</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> </div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> </div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span> </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00705"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89">  705</a></span> <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">double</span> x1, <span class [...]
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span> {</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> </div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>     assure(p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     assure(p->dimension == 2, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>        <span class="stringliteral">"Polynomial must be 2d. It's %dd"</span>, p->dimension);</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     {</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>         <span class="keywordtype">double</span> scale = p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[0];</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>         <span class="keywordtype">double</span> shift = p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[0];</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span> </div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>         <span class="comment">//    cpl_vector_set(p->vec, 0, (x1 - p->shift[1]) / p->scale[1]);</span></div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>         <span class="comment">//    cpl_vector_set(p->vec, 1, (x2 - p->shift[2]) / p->scale[2]);</span></div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>         p->vec_data[0] = (x1 - p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[1]) / p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[1];</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>         p->vec_data[1] = (x2 - p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[2]) / p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[2];</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>         </div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>         result = cpl_polynomial_eval(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>, p-><a class="code" href="struct__polynomial.html#a8ebfb08c87b2969c891912c8edee2d6d">vec</a>) * scale + shift;</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>     }</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>   cleanup:</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span> }</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span> </div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00743"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#gadc218f4dd3fa80d91949611419b75abb">  743</a></span> <a class="code" href="group__uves__utils__polynomial.html#gadc218f4dd3fa80d91949611419b75abb" title="Solve p(x) = value.">uves_polynomial_solve_1d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">double</span> value, <span class="keyw [...]
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> {</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>     cpl_size power[1];</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>     <span class="keywordtype">double</span> coeff0;</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span> </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     assure(p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>     assure(<a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p) == 1, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>        <span class="stringliteral">"Polynomial must be 1d"</span>);</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>     </div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>     <span class="comment">/* Solving p(x) = value corresponds to solving</span></div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span> <span class="comment">       <=>    cpl_p( (x-xshift)/xscale )*yscale + yshift = value</span></div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span> <span class="comment">       <=>    cpl_p( (x-xshift)/xscale ) + (yshift - value)/yscale = 0 </span></div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span> <span class="comment"></span></div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> <span class="comment">       So   1) find zero point for the polynomial   cpl() + (yshift-value)/yscale</span></div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> <span class="comment">       Then 2) shift and rescale the result</span></div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span> </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>     power[0] = 0;</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( coeff0 = cpl_polynomial_get_coeff(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>, power),</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>         cpl_polynomial_set_coeff(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>, power, coeff0 + (p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[0] - value)/p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[0])),</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>       <span class="stringliteral">"Error setting coefficient"</span>);</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span> </div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_polynomial_solve_1d(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>, (guess - p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[1]) / p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601 [...]
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>                    &result, multiplicity), <span class="stringliteral">"Could not find root"</span>);</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     <span class="comment">/* Restore polynomial */</span></div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>     cpl_polynomial_set_coeff(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>, power, coeff0);</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>     </div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>     <span class="comment">/* Shift solution */</span></div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>     result = result * p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[1] + p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[1];</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span> </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>   cleanup:</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span> }</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> </div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00797"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#gacfd8db401e1250a53b8877ae118cce43">  797</a></span> <a class="code" href="group__uves__utils__polynomial.html#gacfd8db401e1250a53b8877ae118cce43" title="Solve p(x1, x2) = value.">uves_polynomial_solve_2d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">double</span> value, <span class= [...]
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>              <span class="keywordtype">int</span> multiplicity, <span class="keywordtype">int</span> varno, <span class="keywordtype">double</span> x_value)</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span> {</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *pol_1d = NULL;</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span> </div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>     assure( 1 <= varno && varno <= 2, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>         <span class="stringliteral">"Illegal variable number: %d"</span>, varno);</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span> </div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( pol_1d = <a class="code" href="group__uves__utils__polynomial.html#gaec68fa3685c9988c384e327268d2d6b9" title="Collapse a polynomial by fixing one variable to a constant.">uves_polynomial_collapse</a>(p, varno, x_value),</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>        <span class="stringliteral">"Could not collapse polynomial"</span>);</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span> </div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( result = <a class="code" href="group__uves__utils__polynomial.html#gadc218f4dd3fa80d91949611419b75abb" title="Solve p(x) = value.">uves_polynomial_solve_1d</a>(pol_1d, value, guess, multiplicity),</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>        <span class="stringliteral">"Could not find root"</span>);</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span> </div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>   cleanup:</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&pol_1d);</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span> }</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span> </div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00828"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a">  828</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a" title="Evaluate the partial derivative of a 2d polynomial.">uves_polynomial_derivative_2d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">d [...]
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> {</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>     cpl_size power[2];</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span> </div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>     assure (1 <= varno && varno <= 2, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>         <span class="stringliteral">"Illegal variable number (%d)"</span>, varno);</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span> </div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>     assure(p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>     assure(<a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p) == 2, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>        <span class="stringliteral">"Polynomial must be 2d. It's %dd"</span>, <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p));</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> </div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>     <span class="comment">/*  d/dx_i [ p(x) ] =</span></div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span> <span class="comment">     *  d/dx_i [ cpl( (x - shiftx) / scalex ) * scaley + shifty ] = </span></div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span> <span class="comment">     *  [ d(cpl)/dx_i ( (x - shiftx) / scalex ) * scaley ]</span></div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span> </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>     <span class="comment">/* Shift, scale  (x1, x2) */</span></div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>     x1 = (x1 - p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[1])/p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[1];</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>     x2 = (x2 - p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[2])/p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[2];</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>  </div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>     <span class="comment">/* Get derivative of cpl polynomial.</span></div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span> <span class="comment">     * </span></div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>     {</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>     <span class="keywordtype">int</span> degree = cpl_polynomial_get_degree(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>);</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>     <span class="keywordtype">double</span> yj = 1;  <span class="comment">/* y^j */</span></div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>     <span class="keywordtype">int</span> i, j;</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>     </div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>     result = 0;</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>     <span class="keywordflow">for</span> (j = 0, yj = 1;</div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>          j <= degree; j++,</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>          yj *= (varno == 1) ? x2 : x1)</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>         {</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>         <span class="comment">/*  Proof by example (degree = 3): For each j account for these terms</span></div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span> <span class="comment">         *  using Horner's rule:</span></div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> <span class="comment">         * d/dx     y^j * [  c_3j x^3 +  c_2j x^2 +  c_1j x^1 + c_0j ]   =</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> <span class="comment">         *          y^j * [ 3c_3j x^2 + 2c_2j x^1 + 1c_1j ]     =</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span> <span class="comment">         *</span></div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> <span class="comment">         *          y^j * [ ((3c_3j) x + 2c_2j) x + 1c_1j ]</span></div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> </div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>         <span class="keywordtype">double</span> sum = 0;</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>         <span class="keywordflow">for</span> (i = degree; i >= 1; i--)</div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>             {</div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>             <span class="keywordtype">double</span> c_ij;</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> </div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>             power[0] = (varno == 1) ? i : j;</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>             power[1] = (varno == 1) ? j : i;</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>             </div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>             c_ij = cpl_polynomial_get_coeff(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>, power);</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>             </div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span>             sum += (i * c_ij);</div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>             <span class="keywordflow">if</span> (i >= 2) sum *= (varno == 1) ? x1 : x2;</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>             }</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span> </div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>         <span class="comment">/* Collect terms */</span></div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>         result += yj * sum;</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>         }</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>     }</div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span> </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>     result *= p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[0];</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> </div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span> </div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span> <span class="comment">/* Old code: This method (valid for varno = 2)</span></div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> <span class="comment">   of getting the derivative of</span></div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span> <span class="comment">   the CPL polynomial is slow because of the call to </span></div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span> <span class="comment">   uves_polynomial_collapse()</span></div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span> <span class="comment"></span></div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span> <span class="comment">   check( pol_1d = uves_polynomial_collapse(p, 1, x1);</span></div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span> <span class="comment">   dummy = cpl_polynomial_eval_1d(pol_1d->pol, (x2 - pol_1d->shift[1])/pol_1d->scale[1], &result),</span></div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span> <span class="comment">   "Error evaluating derivative");</span></div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>     </div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>   cleanup:</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span> }</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span> </div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00917"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga182b594d06b39bdac65d27bca0104a13">  917</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga182b594d06b39bdac65d27bca0104a13" title="Evaluate the derivative of a 1d polynomial.">uves_polynomial_derivative_1d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">double</s [...]
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span> {</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>     <span class="keywordtype">double</span> dummy;</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span> </div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>     assure(p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>     assure(<a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p) == 1, </div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>        CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Polynomial must be 1d"</span>);</div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>     </div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dummy = cpl_polynomial_eval_1d(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>, (x - p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[1])/p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f94860 [...]
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>        <span class="stringliteral">"Error evaluating derivative"</span>);</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>     </div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>   cleanup:</div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span> }</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span> </div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00942"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#gab234ee00fd4ba72b05a50adb61947306">  942</a></span> <a class="code" href="group__uves__utils__polynomial.html#gab234ee00fd4ba72b05a50adb61947306" title="Add two polynomials.">uves_polynomial_add_2d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p1, <span class="keyword">const</span> <a class="code" href="struct_ [...]
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span> {</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *result = NULL;</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>     cpl_polynomial *pol = NULL;</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span> </div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>     assure(p1 != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>     assure(p2 != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>     assure(<a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p1) == 2, </div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>        CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Polynomial must be 2d"</span>);</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>     assure(<a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p2) == 2, </div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>        CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Polynomial must be 2d"</span>);</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span> </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>     <span class="comment">/* cpl_polynomial1((x - shift_x1)/scale_x1) * scale_y1 + shift_y1</span></div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span> <span class="comment">       +</span></div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span> <span class="comment">       cpl_polynomial2((x - shift_x2)/scale_x2) * scale_y2 + shift_y2</span></div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span> <span class="comment">       = ???</span></div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> <span class="comment">       Not easy.</span></div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span> <span class="comment"></span></div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span> <span class="comment">       Use brute force:</span></div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>     </div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>     {</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>         <span class="keywordtype">int</span> degree, i, j;</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span> </div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>         degree = uves_max_int(<a class="code" href="group__uves__utils__polynomial.html#ga56987ebb6bb09ab3f7477783627cba7b" title="Get degree.">uves_polynomial_get_degree</a>(p1),</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>                               <a class="code" href="group__uves__utils__polynomial.html#ga56987ebb6bb09ab3f7477783627cba7b" title="Get degree.">uves_polynomial_get_degree</a>(p2));</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>         </div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>         pol = cpl_polynomial_new(2);</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>         <span class="keywordflow">for</span> (i = 0; i <= degree; i++)</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>             <span class="keywordflow">for</span> (j = 0; j <= degree; j++) {</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>                 <span class="keywordtype">double</span> coeff1, coeff2;</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                 cpl_size power[2];</div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span> </div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>                 <span class="comment">/* Simple: add coefficients of the same power */</span></div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>                 coeff1 = <a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(p1, i, j);</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>                 coeff2 = <a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(p2, i, j);</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>                 </div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>                 power[0] = i;</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>                 power[1] = j;</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                 cpl_polynomial_set_coeff(pol, power, coeff1 + coeff2);</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>             }</div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>     }</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span> </div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>     result = <a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(pol);</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>    </div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>   cleanup:</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     uves_free_polynomial(&pol);</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> }</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> </div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l01007"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga3308f7853a8f3e62d777e814f411f9c0"> 1007</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga3308f7853a8f3e62d777e814f411f9c0" title="Calculate the partial derivative of a CPL-polynomial.">derivative_cpl_polynomial</a>(cpl_polynomial *p, <span class="keywordtype">int</span> varno)</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> {</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>     <span class="keywordtype">int</span> dimension, degree;</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>     <span class="keywordtype">int</span> i, j;</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>     cpl_size power[2];</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>     </div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>     assure(p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>     dimension = cpl_polynomial_get_dimension(p);</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>     degree = cpl_polynomial_get_degree(p);</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>     assure( 1 <= dimension && dimension <= 2, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>         <span class="stringliteral">"Illegal dimension: %d"</span>, dimension);</div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>     assure( 1 <= varno && varno <= dimension, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>         <span class="stringliteral">"Illegal variable number: %d"</span>, varno);</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>     </div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>     <span class="keywordflow">if</span> (dimension == 1)</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>     {</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>         <span class="comment">/*  a_i := (i+1) * a_(i+1) */</span></div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>         <span class="keywordflow">for</span>(i = 0; i <= degree; i++)</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>         {</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>             <span class="keywordtype">double</span> coeff;</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>             power[0] = i+1;</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>             <span class="comment">/* power[1] is ignored */</span></div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>             </div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>             coeff = cpl_polynomial_get_coeff(p, power);</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>                 </div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>             power[0] = i;            </div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>             cpl_polynomial_set_coeff(p, power, (i+1) * coeff);</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>         }</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>     }</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>     </div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>     <span class="keywordflow">if</span> (dimension == 2)</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>     {</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>         <span class="comment">/*  a_ij := (i+1) * a_{(i+1),j} */</span></div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>         <span class="keywordflow">for</span>(i = 0; i <= degree; i++)</div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>         {</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>             <span class="keywordflow">for</span>(j = 0; i + j <= degree; j++)</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>             {</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>                 <span class="keywordtype">double</span> coeff;</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>                 power[varno - 1] = i+1;    <span class="comment">/* varno == 1:    0,1  */</span> </div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>                 power[2 - varno] = j;      <span class="comment">/* varno == 2:    1,0  */</span></div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>                 </div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>                 coeff = cpl_polynomial_get_coeff(p, power);</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>                 </div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>                 power[varno - 1] = i;</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>                 </div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                 cpl_polynomial_set_coeff(p, power, (i+1) * coeff);</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>             }</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>         }</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>     }</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> </div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>   cleanup:</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> }</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> </div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> cpl_error_code</div>
-<div class="line"><a name="l01073"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga1d4833534bce8b70f0311a652961b806"> 1073</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga1d4833534bce8b70f0311a652961b806" title="Calculate the partial derivative of a polynomial.">uves_polynomial_derivative</a>(<a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">int</span> varno)</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span> {</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>     <span class="keywordtype">int</span> dimension;</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>     </div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>     assure( p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> ( dimension = <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p), <span class="stringliteral">"Error reading dimension"</span>);</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>     assure( 1 <= varno && varno <= dimension, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>         <span class="stringliteral">"Illegal variable number: %d"</span>, varno);</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> </div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> </div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>     <span class="comment">/*   d/dx_i [ cpl( (x - shiftx) / scalex ) * scaley + shifty ] = </span></div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> <span class="comment">     *     sum_j d(cpl)/dx_j ( (x - shiftx) / scalex ) * scaley * dx_j/dx_i / scalex_j =</span></div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> <span class="comment">     *     d(cpl)/dx_i ( (x - shiftx) / scalex ) * scaley/scalex_i,</span></div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> <span class="comment">     * </span></div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> <span class="comment">     * so transform :      shifty -> 0</span></div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> <span class="comment">     *                     shiftx -> shiftx</span></div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> <span class="comment">     *                     scaley -> scaley/scalex_i</span></div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> <span class="comment">     *                     scalex -> scalex</span></div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> <span class="comment">     *                       cpl  -> d(cpl)/dx_i</span></div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> </div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>     p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[0] = 0;</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>     p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[0] = p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[0] / p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[varno];</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span> </div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__polynomial.html#ga3308f7853a8f3e62d777e814f411f9c0" title="Calculate the partial derivative of a CPL-polynomial.">derivative_cpl_polynomial</a>(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>, varno),</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>        <span class="stringliteral">"Error calculating derivative of CPL-polynomial"</span>);</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>     </div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>   cleanup:</div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span> }</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> </div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> </div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l01116"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d"> 1116</a></span> <a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">int</span> degre [...]
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> {</div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *pp = NULL;</div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>     <span class="keywordtype">int</span> dimension;</div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>     <span class="keywordtype">double</span> factorial;</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>     </div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>     assure( p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> ( dimension = <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p), <span class="stringliteral">"Error reading dimension"</span>);</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>     assure(dimension == 2, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal dimension: %d"</span>, dimension);</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>     assure( 0 <= degree1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal degree: %d"</span>, degree1);</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>     assure( 0 <= degree2, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal degree: %d"</span>, degree2);</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span> </div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>     <span class="comment">/* Calculate the coefficient as</span></div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span> <span class="comment">     * d^N p / (dx1^degree1 dx2^degree2)  /  (degree1! * degree2!)</span></div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span> <span class="comment">     * evaluated in (0,0)</span></div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> </div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>     pp = <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(p);</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> </div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>     factorial = 1;</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>     <span class="keywordflow">while</span>(degree1 > 0)</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>     {</div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__polynomial.html#ga1d4833534bce8b70f0311a652961b806" title="Calculate the partial derivative of a polynomial.">uves_polynomial_derivative</a>(pp, 1), <span class="stringliteral">"Error calculating derivative"</span>);</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> </div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>         factorial *= degree1;</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>         degree1 -= 1;</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>     }</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span> </div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>     <span class="keywordflow">while</span>(degree2 > 0)</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>     {</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__polynomial.html#ga1d4833534bce8b70f0311a652961b806" title="Calculate the partial derivative of a polynomial.">uves_polynomial_derivative</a>(pp, 2), <span class="stringliteral">"Error calculating derivative"</span>);</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> </div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>         factorial *= degree2;</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>         degree2 -= 1;</div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>     }</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>     </div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( result = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(pp, 0, 0) / factorial,</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>        <span class="stringliteral">"Error evaluating polynomial"</span>);</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>     </div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>   cleanup:</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&pp);</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> }</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l01172"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8"> 1172</a></span> <a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">int</span> degre [...]
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span> {</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *pp = NULL;</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>     <span class="keywordtype">int</span> dimension;</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>     <span class="keywordtype">double</span> result = 0;</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>     <span class="keywordtype">double</span> factorial;</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>     </div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>     assure( p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> ( dimension = <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p), <span class="stringliteral">"Error reading dimension"</span>);</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>     assure(dimension == 1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal dimension: %d"</span>, dimension);</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>     assure( 0 <= degree, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal degree: %d"</span>, degree);</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>     </div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>     <span class="comment">/* Calculate the coefficient as</span></div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> <span class="comment">     *  d^degree p/dx^degree  /  (degree1! * degree2!)</span></div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span> <span class="comment">     * evaluated in 0.</span></div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>     </div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>     pp = <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(p);</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>     </div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>     factorial = 1;</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>     <span class="keywordflow">while</span>(degree > 0)</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>     {</div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils__polynomial.html#ga1d4833534bce8b70f0311a652961b806" title="Calculate the partial derivative of a polynomial.">uves_polynomial_derivative</a>(pp, 1), <span class="stringliteral">"Error calculating derivative"</span>);</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>         </div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>         factorial *= degree;</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>         degree -= 1;</div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>     }</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>     </div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( result = <a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(pp, 0) / factorial,</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>        <span class="stringliteral">"Error evaluating polynomial"</span>);</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>     </div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>   cleanup:</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&pp);</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> }</div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> </div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> </div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l01227"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#gaec68fa3685c9988c384e327268d2d6b9"> 1227</a></span> <a class="code" href="group__uves__utils__polynomial.html#gaec68fa3685c9988c384e327268d2d6b9" title="Collapse a polynomial by fixing one variable to a constant.">uves_polynomial_collapse</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype [...]
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span> {</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>     <a class="code" href="struct__polynomial.html">polynomial</a>     *result  = NULL;</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>     cpl_polynomial *pol     = NULL;</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>     cpl_size            *power     = NULL;</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span> </div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>     <span class="keywordtype">int</span> i, j;</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>     <span class="keywordtype">int</span> degree, dimension;</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>     </div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>     assure(p != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>     dimension = <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(p);</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>     assure(dimension  > 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>        <span class="stringliteral">"Polynomial has non-positive dimension: %d"</span>, dimension);</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>     assure(dimension != 1, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>        <span class="stringliteral">"Don't collapse a 1d polynomial. Evaluate it!"</span>);</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> </div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>     <span class="comment">/* To generalize this function to work with dimensions higher than 2,</span></div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span> <span class="comment">       also changes needs to be made below (use varno properly). For now,</span></div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span> <span class="comment">       support only 2d. */</span></div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>     assure(dimension == 2, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Polynomial must be 2d"</span>);</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>     </div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>     assure(1 <= varno && varno <= dimension, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>        <span class="stringliteral">"Wrong variable number"</span>);</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>     value = (value - p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[varno]) / p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[varno];</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span> </div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>     <span class="comment">/* Compute new coefficients */</span></div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>     degree = cpl_polynomial_get_degree(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>);</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>     pol    = cpl_polynomial_new(dimension - 1);</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>     power = cpl_malloc(<span class="keyword">sizeof</span>(cpl_size) * dimension);</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( power );</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>     <span class="keywordflow">for</span> (i = 0; i <= degree; i++) </div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>     {</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>         <span class="keywordtype">double</span> coeff;</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>         </div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>         power[2-varno] = i;   <span class="comment">/* map 2->0  and 1->1 */</span></div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>         </div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>         <span class="comment">/* Collect all terms with x^i  (using Horner's rule) */</span></div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>         coeff = 0;</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>         <span class="keywordflow">for</span> (j = degree - i; j >= 0; j--) </div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>         {</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>             power[varno-1] = j;  <span class="comment">/* map 2->1 and 1->0 */</span></div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>             coeff += cpl_polynomial_get_coeff(p-><a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>, power);</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>             <span class="keywordflow">if</span> (j > 0) coeff *= value;</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>         }</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>         <span class="comment">/* Write coefficient in 1d polynomial */</span></div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>         power[0] = i;</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>         cpl_polynomial_set_coeff(pol, power, coeff);</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>     }</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>     </div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>     <span class="comment">/* Wrap the polynomial */</span></div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>     result = <a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(pol);</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> </div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>     <span class="comment">/* Copy the shifts and scales, skip variable number varno */</span></div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>     j = 0;</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>     <span class="keywordflow">for</span>(i = 0; i <= dimension - 1; i++) </div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>     {</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>         <span class="keywordflow">if</span> (i == varno) </div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>         {</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>             <span class="comment">/* Don't copy */</span></div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>             j += 2;</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>             <span class="comment">/* For the remainder of this for loop, j = i+1 */</span></div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>         }</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>         <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>         {</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>             result-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[i] = p-><a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>[j];</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>             result-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[i] = p-><a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>[j];</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>             j += 1;</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>         }</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>     }</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>     </div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>     assure(cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(), </div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>        <span class="stringliteral">"Error collapsing polynomial"</span>);</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>     </div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>   cleanup:</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>     cpl_free(power); power = NULL;</div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>     uves_free_polynomial(&pol);</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>     {</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&result);</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>     }</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span> }</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span> </div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span> </div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span> </div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01333"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#ga7ad30cd55f4aac4454029be7ffd3f5b1"> 1333</a></span> <a class="code" href="struct__polynomial.html">polynomial</a> * <a class="code" href="group__uves__utils__polynomial.html#ga7ad30cd55f4aac4454029be7ffd3f5b1" title="Fit a 1d function with a polynomial.">uves_polynomial_fit_1d</a>(</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>     <span class="keyword">const</span> cpl_vector    *   x_pos,</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>     <span class="keyword">const</span> cpl_vector    *   values,</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>     <span class="keyword">const</span> cpl_vector    *   sigmas,</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>     <span class="keywordtype">int</span>                     poly_deg,</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>     <span class="keywordtype">double</span>              *   mse)</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span> {</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>     <span class="keywordtype">int</span>                 nc ;</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>     <span class="keywordtype">int</span>                 np ;</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>     cpl_matrix      *   ma = NULL;</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>     cpl_matrix      *   mb = NULL;</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>     cpl_matrix      *   mx = NULL;</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   x_pos_data ;</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   values_data ;</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   sigmas_data = NULL;</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>     <span class="keywordtype">double</span>              mean_x, mean_z;</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>     <a class="code" href="struct__polynomial.html">polynomial</a>      *   result = NULL;</div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>     cpl_polynomial  *   out ;</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>     cpl_vector      *   x_val = NULL;</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>     <span class="keywordtype">int</span>                 i, j ;</div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>     </div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( x_pos != NULL && values != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>     assure( poly_deg >= 0, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>         <span class="stringliteral">"Polynomial degree is %d. Must be non-negative"</span>, poly_deg);</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>     np = cpl_vector_get_size(x_pos) ;</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>     </div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>     nc = 1 + poly_deg ;</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>     assure( np >= nc, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>         <span class="stringliteral">"Not enough points (%d) to fit %d-order polynomial. %d point(s) needed"</span>,</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>         np, poly_deg, nc);</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span> </div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>     <span class="comment">/* Fill up look-up table for coefficients to compute */</span></div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>     <span class="comment">/* Initialize matrices */</span></div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>     <span class="comment">/* ma contains the polynomial terms for each input point. */</span></div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>     <span class="comment">/* mb contains the values */</span></div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>     ma = cpl_matrix_new(np, nc) ;</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>     mb = cpl_matrix_new(np, 1) ;</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span> </div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>     <span class="comment">/* Get mean values */</span></div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>     mean_x = cpl_vector_get_mean(x_pos);</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>     mean_z = cpl_vector_get_mean(values);</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span> </div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>     <span class="comment">/* Fill up matrices, shift */</span></div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>     x_pos_data = cpl_vector_get_data_const(x_pos) ;</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>     values_data = cpl_vector_get_data_const(values) ;</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>     <span class="keywordflow">if</span> (sigmas != NULL)</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>     {</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>         sigmas_data = cpl_vector_get_data_const(sigmas) ;</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>     }</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span> </div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>     <span class="keywordflow">if</span> (sigmas != NULL)</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>     {</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>         <span class="keywordflow">for</span> (i=0 ; i<np ; i++) </div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>         {</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>             <span class="comment">/* Catch division by zero */</span></div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>             <span class="keywordflow">if</span> (sigmas_data[i] == 0)</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>             {</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>                 uves_free_matrix(&ma) ;</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>                 uves_free_matrix(&mb) ;</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>                 assure(<span class="keyword">false</span>, CPL_ERROR_DIVISION_BY_ZERO,</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>                    <span class="stringliteral">"Sigmas must be non-zero"</span>);</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>             }</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>             <span class="keywordflow">for</span> (j=0 ; j<nc ; j++) </div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>             {</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>                 cpl_matrix_set(ma, i, j,  </div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>                        <a class="code" href="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054" title="Calculate x to the y'th.">uves_pow_int</a>(x_pos_data[i] - mean_x, j) /</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>                        sigmas_data[i]) ;</div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>             }</div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>             <span class="comment">/* mb contains surface values (z-axis) */</span></div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>             cpl_matrix_set(mb, i, 0, (values_data[i] - mean_z) / sigmas_data[i]);</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>         }</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>     }</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>     <span class="keywordflow">else</span>  <span class="comment">/* Use sigma = 1 */</span></div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>     {</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>         <span class="keywordflow">for</span> (i=0 ; i<np ; i++) </div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>         {</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>             <span class="keywordflow">for</span> (j=0 ; j<nc ; j++) </div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>             {</div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>                 cpl_matrix_set(ma, i, j,  </div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>                        <a class="code" href="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054" title="Calculate x to the y'th.">uves_pow_int</a>(x_pos_data[i] - mean_x, j) / 1);</div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>             }</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>             <span class="comment">/* mb contains surface values (z-values) */</span></div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>             cpl_matrix_set(mb, i, 0, (values_data[i] - mean_z) / 1) ;</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>         }</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>     }</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>     </div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>     <span class="comment">/* Solve XA=B by a least-square solution (aka pseudo-inverse). */</span></div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( mx = cpl_matrix_solve_normal(ma, mb),</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>        <span class="stringliteral">"Could not invert matrix"</span>);</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>     uves_free_matrix(&ma);</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>     uves_free_matrix(&mb);</div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> </div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>     <span class="comment">/* Store coefficients for output */</span></div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>     out = cpl_polynomial_new(1) ;</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>     cpl_size deg=0;</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>     <span class="keywordflow">for</span> (deg=0 ; deg<nc ; deg++) {</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>         cpl_polynomial_set_coeff(out, &deg, cpl_matrix_get(mx, deg, 0)) ;</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>     }</div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>     uves_free_matrix(&mx);</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span> </div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>     <span class="comment">/* If requested, compute mean squared error */</span></div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>     <span class="keywordflow">if</span> (mse != NULL) {</div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>         *mse = 0.00 ;</div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>         x_val = cpl_vector_new(1) ;</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>         <span class="keywordflow">for</span> (i=0 ; i<np ; i++)</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>         {</div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>         <span class="keywordtype">double</span> residual;</div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>         cpl_vector_set(x_val, 0, x_pos_data[i] - mean_x) ;</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>         <span class="comment">/* Subtract from the true value, square, accumulate */</span></div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>         residual = (values_data[i] - mean_z) - cpl_polynomial_eval(out, x_val);</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>         *mse += residual*residual;</div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>         }</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>         uves_free_vector(&x_val) ;</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>         <span class="comment">/* Average the error term */</span></div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>         *mse /= (double)np ;</div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>     }</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span> </div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>     <span class="comment">/* Create and shift result */</span></div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>     result = <a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(out);</div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>     uves_free_polynomial(&out);</div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span> </div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>     <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(result, 0, mean_z);</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>     <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(result, 1, mean_x);</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span> </div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>   cleanup:</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>     uves_free_vector(&x_val);</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>     uves_free_matrix(&ma);</div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>     uves_free_matrix(&mb);</div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>     uves_free_matrix(&mx);</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span> }</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span> </div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span> </div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l01513"></a><span class="lineno"><a class="code" href="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3"> 1513</a></span> <a class="code" href="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3" title="Fit a 2d surface with a polynomial in x and y.">uves_polynomial_fit_2d</a>(</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>     <span class="keyword">const</span> cpl_bivector     *  xy_pos,</div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>     <span class="keyword">const</span> cpl_vector       *  values,</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>     <span class="keyword">const</span> cpl_vector       *  sigmas,</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>     <span class="keywordtype">int</span>                       poly_deg1,</div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>     <span class="keywordtype">int</span>                       poly_deg2,</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>     <span class="keywordtype">double</span>                 *  mse,</div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>     <span class="keywordtype">double</span>                 *  red_chisq,</div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>     <a class="code" href="struct__polynomial.html">polynomial</a>             ** variance)</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span> {</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>     <span class="keywordtype">int</span>                 nc ;</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>     <span class="keywordtype">int</span>                 degx, degy ;</div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>     <span class="keywordtype">int</span>             *   degx_tab ;</div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>     <span class="keywordtype">int</span>             *   degy_tab ;</div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>     <span class="keywordtype">int</span>                 np ;</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>     cpl_matrix      *   ma ;</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>     cpl_matrix      *   mb ;</div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>     cpl_matrix      *   mx ;</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>     cpl_matrix      *   mat;</div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>     cpl_matrix      *   mat_ma;</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>     cpl_matrix      *   cov = NULL;</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   xy_pos_data_x ;</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   xy_pos_data_y ;</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   values_data ;</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>     <span class="keyword">const</span> <span class="keywordtype">double</span>    *   sigmas_data = NULL;</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>     <span class="keyword">const</span> cpl_vector*   xy_pos_x;</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>     <span class="keyword">const</span> cpl_vector*   xy_pos_y;</div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>     <span class="keywordtype">double</span>              mean_x, mean_y, mean_z;</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>     cpl_polynomial  *   out ;</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>     cpl_polynomial  *   variance_cpl ;</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>     <a class="code" href="struct__polynomial.html">polynomial</a>      *   result         = NULL;</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>     cpl_size             *   powers ;</div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span> </div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>     <span class="comment">/* Check entries */</span></div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>     assure(xy_pos && values, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null input"</span>);</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>     assure(poly_deg1 >= 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Polynomial degree1 is %d"</span>, poly_deg1);</div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>     assure(poly_deg2 >= 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Polynomial degree2 is %d"</span>, poly_deg2);</div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>     np = cpl_bivector_get_size(xy_pos) ;</div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span> </div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>     <span class="comment">/* Can't calculate variance and chi_sq without sigmas */</span></div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>     assure( (variance == NULL && red_chisq == NULL) || sigmas != NULL, </div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>         CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>         <span class="stringliteral">"Cannot calculate variance or chi_sq without knowing"</span>);</div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span> </div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>     <span class="comment">/* Fill up look-up table for coefficients to compute */</span></div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>     nc = (1 + poly_deg1)*(1 + poly_deg2) ;     <span class="comment">/* rectangular matrix */</span></div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>     </div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>     assure(np >= nc, CPL_ERROR_SINGULAR_MATRIX, <span class="stringliteral">"%d coefficients. Only %d points"</span>, nc, np);</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>     <span class="comment">/* The error code here is set to SINGULAR_MATRIX, in order to allow the caller</span></div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span> <span class="comment">       to detect when too many coefficients are fitted to too few points */</span></div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span> </div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>     <span class="comment">/* Need an extra point to calculate reduced chi^2 */</span></div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>     assure(red_chisq == NULL || np > nc, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>        <span class="stringliteral">"%d coefficients. %d points. Cannot calculate chi square"</span>, nc, np);</div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>     </div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>     degx_tab = cpl_malloc(nc * <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>)) ;</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( degx_tab );</div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span> </div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>     degy_tab = cpl_malloc(nc * <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>)) ;</div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>     <span class="keywordflow">if</span> (degy_tab == NULL) {</div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>     cpl_free(degx_tab);</div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( <span class="keyword">false</span> );</div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>     }</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span> </div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>     {</div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>         <span class="keywordtype">int</span> i=0 ;</div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>         <span class="keywordflow">for</span> (degy=0 ; degy<=poly_deg2 ; degy++) {     <span class="comment">/* rectangular matrix */</span></div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>             <span class="keywordflow">for</span> (degx=0 ; degx<=poly_deg1 ; degx++) {</div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>                 degx_tab[i] = degx ;</div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>                 degy_tab[i] = degy ;</div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>                 i++ ;</div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>             }</div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>         }</div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>     }</div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>     </div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>     <span class="comment">/* Initialize matrices */</span></div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>     <span class="comment">/* ma contains the polynomial terms in the order described */</span></div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>     <span class="comment">/* above in each column, for each input point. */</span></div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>     <span class="comment">/* mb contains the values */</span></div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>     ma = cpl_matrix_new(np, nc) ;</div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>     mb = cpl_matrix_new(np, 1) ;</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span> </div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>     <span class="comment">/* Get the mean of each variable */</span></div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>     xy_pos_x = cpl_bivector_get_x_const(xy_pos);</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>     xy_pos_y = cpl_bivector_get_y_const(xy_pos);</div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span> </div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>     mean_x = cpl_vector_get_mean(xy_pos_x);</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>     mean_y = cpl_vector_get_mean(xy_pos_y);</div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>     mean_z = cpl_vector_get_mean(values);</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span> </div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>     <span class="comment">/* Fill up matrices. At the same time shift the data</span></div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span> <span class="comment">       so that it is centered around zero */</span></div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>     xy_pos_data_x = cpl_vector_get_data_const(xy_pos_x) ;</div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>     xy_pos_data_y = cpl_vector_get_data_const(xy_pos_y) ;</div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>     values_data   = cpl_vector_get_data_const(values) ;</div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>     <span class="keywordflow">if</span> (sigmas != NULL)</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>     {</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>         sigmas_data = cpl_vector_get_data_const(sigmas) ;</div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>     }</div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span> </div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>     <span class="keywordflow">if</span> (sigmas != NULL)</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>     {</div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>         <span class="keywordflow">for</span> (i=0 ; i<np ; i++) {</div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>                 <span class="keywordtype">double</span> *ma_data = cpl_matrix_get_data(ma);</div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>                 <span class="keywordtype">double</span> *mb_data = cpl_matrix_get_data(mb);</div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span> </div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>                 <span class="keywordtype">int</span> j = 0;</div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>                 <span class="keywordtype">double</span> valy = 1;</div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span> </div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>         <span class="comment">/* Catch division by zero */</span></div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>         <span class="keywordflow">if</span> (sigmas_data[i] == 0)</div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>             {</div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>             uves_free_matrix(&ma) ;</div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>             uves_free_matrix(&mb) ;</div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>             cpl_free(degx_tab) ;</div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>             cpl_free(degy_tab) ;</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>             assure(<span class="keyword">false</span>, CPL_ERROR_DIVISION_BY_ZERO,</div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>                                <span class="stringliteral">"Sigmas must be non-zero. sigma[%d] is %f"</span>, i, sigmas_data[i]);</div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>             }</div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span> </div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>                 <span class="keywordflow">for</span> (degy=0 ; degy<=poly_deg2 ; degy++) {</div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>                     <span class="keywordtype">double</span> valx = 1; </div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>                     <span class="keywordflow">for</span> (degx=0 ; degx<=poly_deg1 ; degx++) {</div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>                         ma_data[j + i*nc] = valx * valy / sigmas_data[i];</div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>                         valx *= (xy_pos_data_x[i] - mean_x);</div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>                         j++;</div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>                     }</div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>                     valy *= (xy_pos_data_y[i] - mean_y);</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>                 }</div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span> </div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>         <span class="comment">/* mb contains surface values (z-axis) */</span></div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span> </div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>         mb_data[0 + i*1] = (values_data[i] - mean_z) / sigmas_data[i];</div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>         }</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>     }</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>     <span class="keywordflow">else</span>  <span class="comment">/* Use sigma = 1 */</span></div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>     {</div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>         <span class="keywordflow">for</span> (i=0 ; i<np ; i++) {</div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>                 <span class="keywordtype">double</span> *ma_data = cpl_matrix_get_data(ma);</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>                 <span class="keywordtype">double</span> *mb_data = cpl_matrix_get_data(mb);</div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span> </div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>                 <span class="keywordtype">double</span> valy = 1;</div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>                 <span class="keywordtype">int</span> j = 0;</div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>                 <span class="keywordflow">for</span> (degy=0 ; degy<=poly_deg2 ; degy++) {</div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>                     <span class="keywordtype">double</span> valx = 1; </div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>                     <span class="keywordflow">for</span> (degx=0 ; degx<=poly_deg1 ; degx++) {</div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>                         ma_data[j + i*nc] = valx * valy / 1;</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>                         valx *= (xy_pos_data_x[i] - mean_x);</div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>                         j++;</div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>                     }</div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>                     valy *= (xy_pos_data_y[i] - mean_y);</div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>                 }</div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span> </div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>         <span class="comment">/* mb contains surface values (z-axis) */</span></div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span> <span class="comment">//        cpl_matrix_set(mb, i, 0, (values_data[i] - mean_z) / 1) ;</span></div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>         mb_data[0 + i*1] = (values_data[i] - mean_z) / 1;</div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>         }</div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>     }</div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>     </div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>     <span class="comment">/* If variance polynomial is requested, </span></div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span> <span class="comment">       compute covariance matrix = (A^T * A)^-1 */</span></div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>     <span class="keywordflow">if</span> (variance != NULL)</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>     {</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>         mat    = cpl_matrix_transpose_create(ma);</div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>         <span class="keywordflow">if</span> (mat != NULL)</div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>         {</div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>             mat_ma = cpl_matrix_product_create(mat, ma);</div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>             <span class="keywordflow">if</span> (mat_ma != NULL)</div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>             {</div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>                 cov          = cpl_matrix_invert_create(mat_ma);</div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>                 <span class="comment">/* Here, one might do a (paranoia) check that the covariance</span></div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span> <span class="comment">                   matrix is symmetrical and has positive eigenvalues (so that</span></div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span> <span class="comment">                   the returned variance polynomial is guaranteed to be positive) */</span></div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span> </div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>                 variance_cpl = cpl_polynomial_new(2);</div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>             }</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>         }</div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>         uves_free_matrix(&mat);</div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>         uves_free_matrix(&mat_ma);</div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>     }</div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span> </div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>     <span class="comment">/* Solve XA=B by a least-square solution (aka pseudo-inverse). */</span></div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>     mx = cpl_matrix_solve_normal(ma, mb) ;</div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span> </div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>     uves_free_matrix(&ma) ;</div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>     uves_free_matrix(&mb) ;</div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>     <span class="keywordflow">if</span> (mx == NULL) {</div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>         cpl_free(degx_tab) ;</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>         cpl_free(degy_tab) ;</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>     uves_free_matrix(&cov) ;</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>         assure(<span class="keyword">false</span>, CPL_ERROR_ILLEGAL_OUTPUT, <span class="stringliteral">"Matrix inversion failed"</span>) ;</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>     }</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span> </div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>     <span class="comment">/* Store coefficients for output */</span></div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>     out = cpl_polynomial_new(2) ;</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>     powers = cpl_malloc(2 * <span class="keyword">sizeof</span>(cpl_size)) ;</div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>     <span class="keywordflow">if</span> (powers == NULL) {</div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>         cpl_free(degx_tab) ;</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>         cpl_free(degy_tab) ;</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>     uves_free_matrix(&mx) ;</div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>     uves_free_matrix(&cov) ;</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>     uves_free_polynomial(&out) ;</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( <span class="keyword">false</span> );</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>     }</div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span> </div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>     {</div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>     <span class="keywordflow">for</span> (i = 0 ; i < nc ; i++)</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>     {</div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>         powers[0] = degx_tab[i] ;</div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>         powers[1] = degy_tab[i] ;</div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>         cpl_polynomial_set_coeff(out, powers, cpl_matrix_get(mx, i, 0)) ;</div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>         </div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>         <span class="comment">/* Create variance polynomial (if requested) */</span></div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>         <span class="keywordflow">if</span> (variance != NULL &&                   <span class="comment">/* Requested? */</span></div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>         cov != NULL && variance_cpl != NULL   <span class="comment">/* covariance computation succeeded? */</span></div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>         )</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>         {</div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>                     <span class="keywordtype">int</span> j;</div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>             <span class="keywordflow">for</span> (j = 0; j < nc; j++)</div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>             {</div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>                 <span class="keywordtype">double</span> coeff;</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>                 <span class="comment">/* Add cov_ij to the proper coeff:</span></div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span> <span class="comment">                   cov_ij * dp/d(ai) * dp/d(aj) =</span></div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span> <span class="comment">                   cov_ij * (x^degx[i] * y^degy[i]) * (x^degx[i] * y^degy[i]) =</span></div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span> <span class="comment">                   cov_ij * x^(degx[i]+degx[j]) * y^(degy[i] + degy[j]),</span></div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span> <span class="comment">                   </span></div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span> <span class="comment">                   i.e. add cov_ij to coeff (degx[i]+degx[j], degy[i]+degy[j]) */</span></div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>                 powers[0] = degx_tab[i] + degx_tab[j] ;</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>                 powers[1] = degy_tab[i] + degy_tab[j] ;</div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>                 </div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>                 coeff = cpl_polynomial_get_coeff(variance_cpl, powers);</div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>                 cpl_polynomial_set_coeff(variance_cpl, powers, </div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>                              coeff + cpl_matrix_get(cov, i, j)) ;</div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>             }</div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>         }</div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>     }</div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>     }</div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>     </div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>     cpl_free(powers) ;</div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>     cpl_free(degx_tab) ;</div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>     cpl_free(degy_tab) ;</div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>     uves_free_matrix(&cov) ;</div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>     uves_free_matrix(&mx) ;</div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>     </div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>     <span class="comment">/* Create and shift result */</span></div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>     result = <a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(out);</div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>     uves_free_polynomial(&out);</div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>     <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(result, 0, mean_z);</div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>     <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(result, 1, mean_x);</div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>     <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(result, 2, mean_y);</div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span> </div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>     <span class="comment">/* Wrap up variance polynomial */</span></div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>     <span class="keywordflow">if</span> (variance != NULL)</div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>     {</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>         *variance = <a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(variance_cpl);</div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>         uves_free_polynomial(&variance_cpl);</div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>             <span class="comment">/* The variance of the fit does not change</span></div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span> <span class="comment">           when a constant is added to the a_00</span></div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span> <span class="comment">           coefficient of the polynomial, so don't:</span></div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span> <span class="comment">           uves_polynomial_shift(*variance, 0, mean_z); */</span></div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>         <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(*variance, 1, mean_x);</div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>         <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(*variance, 2, mean_y);</div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span> </div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>         <span class="comment">/* Maybe here add a consistency check that the variance polynomial is </span></div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span> <span class="comment">           positive at all input points */</span></div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>     }  </div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span> </div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>     <span class="comment">/* If requested, compute mean squared error */</span></div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>     <span class="keywordflow">if</span> (mse != NULL || red_chisq != NULL) </div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>     {</div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span> </div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>         <span class="keywordflow">if</span> (mse       != NULL) *mse = 0.00 ;</div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>         <span class="keywordflow">if</span> (red_chisq != NULL) *red_chisq = 0.00 ;</div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>         <span class="keywordflow">for</span> (i = 0 ; i < np ; i++) </div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>         {</div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>             <span class="keywordtype">double</span> regress = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(result, </div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>                                  xy_pos_data_x[i],</div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>                                  xy_pos_data_y[i]);</div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>             <span class="comment">/* Subtract from the true value, square, accumulate */</span></div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>             <span class="keywordflow">if</span> (mse != NULL)</div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>             {</div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>                 <span class="keywordtype">double</span> residual = values_data[i] - regress;</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>                 *mse += residual*residual;</div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>             }</div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>             <span class="keywordflow">if</span> (red_chisq != NULL)</div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>             {</div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>                 *red_chisq += <a class="code" href="group__uves__utils.html#ga42520f7d747ed8b56ea4a48a12757054" title="Calculate x to the y'th.">uves_pow_int</a>((values_data[i] - regress) /</div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>                                sigmas_data[i], 2);</div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>             }</div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>         }</div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>         <span class="comment">/* Get average */</span></div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>         <span class="keywordflow">if</span> (mse       != NULL)  *mse       /= (double) np ;</div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>         </div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>         <span class="keywordflow">if</span> (red_chisq != NULL)</div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>         {</div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( np > nc, <span class="stringliteral">"%d %d"</span>, np, nc); <span class="comment">/* Was already checked */</span></div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>             *red_chisq /= (double) (np - nc) ;</div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>         }</div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>     }</div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span> </div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>   cleanup:</div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>     <span class="keywordflow">return</span> result ;</div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span> }</div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span> </div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utils__polynomial_8h_source.html b/html/uves__utils__polynomial_8h_source.html
deleted file mode 100644
index 6b0662d..0000000
--- a/html/uves__utils__polynomial_8h_source.html
+++ /dev/null
@@ -1,189 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utils_polynomial.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utils_polynomial.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 13:54:13 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.25 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.24  2010/09/24 09:32:09  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.22  2007/09/11 17:08:49  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * mooved uves_polynomial_convert_from_plist_midas to uves_dfs</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.21  2007/06/20 08:30:03  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * added index parameter to support FIBER mode lintab in uves_polynomial_convert_from_plist_midas</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.20  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.19  2007/05/03 15:18:31  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added function to add polynomials</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.18  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.17  2007/03/19 15:04:57  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added get_degree function</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.16  2007/03/05 10:20:51  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added uves_polynomial_delete_const()</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.15  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.14  2006/04/24 09:28:29  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Added function to create zero-polynomial</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.13  2005/12/19 16:17:56  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#ifndef UVES_UTILS_POLYNOMIAL_H</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_UTILS_POLYNOMIAL_H</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment">                                   Typedefs</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__polynomial.html">_polynomial</a> <a class="code" href="struct__polynomial.html">polynomial</a> ;</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment">                                   Prototypes</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <a class="code" href="struct__polynomial.html">polynomial</a> *<a class="code" href="group__uves__utils__polynomial.html#ga9096ba565ded9c57ef3fc560e3d991b6" title="Create a polynomial.">uves_polynomial_new</a>(<span class="keyword">const</span> cpl_polynomial *<a class="code" href="struct__polynomial.html#a8624da8affb85547a8661758293cf6a9">pol</a>);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <a class="code" href="struct__polynomial.html">polynomial</a> *<a class="code" href="group__uves__utils__polynomial.html#ga7c239852c8d8b8b2059e8dd663cecded" title="Create a zero polynomial.">uves_polynomial_new_zero</a>(<span class="keywordtype">int</span> dim);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <a class="code" href="struct__polynomial.html">polynomial</a> *<a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p);</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <a class="code" href="struct__polynomial.html">polynomial</a> *<a class="code" href="group__uves__utils__polynomial.html#ga135ba9a062f18392bb33b678c9dedaa4" title="Convert a table to a polynomial.">uves_polynomial_convert_from_table</a>(cpl_table *t);</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <a class="code" href="struct__polynomial.html">polynomial</a> *<a class="code" href="group__uves__utils__polynomial.html#gaec68fa3685c9988c384e327268d2d6b9" title="Collapse a polynomial by fixing one variable to a constant.">uves_polynomial_collapse</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">int</span> varno, <span class="ke [...]
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <a class="code" href="struct__polynomial.html">polynomial</a> * <a class="code" href="group__uves__utils__polynomial.html#ga7ad30cd55f4aac4454029be7ffd3f5b1" title="Fit a 1d function with a polynomial.">uves_polynomial_fit_1d</a>(<span class="keyword">const</span> cpl_vector    *   x_pos,</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>                     <span class="keyword">const</span> cpl_vector    *   values,</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>                     <span class="keyword">const</span> cpl_vector    *   sigmas,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>                     <span class="keywordtype">int</span>                     poly_deg,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>                     <span class="keywordtype">double</span>              *   mse);</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <a class="code" href="struct__polynomial.html">polynomial</a> *<a class="code" href="group__uves__utils__polynomial.html#gab14a64f250fb7d98d0a16d3b112430c3" title="Fit a 2d surface with a polynomial in x and y.">uves_polynomial_fit_2d</a>(<span class="keyword">const</span> cpl_bivector     *  xy_pos,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>                    <span class="keyword">const</span> cpl_vector       *  values,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>                    <span class="keyword">const</span> cpl_vector       *  sigmas,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                    <span class="keywordtype">int</span>                       poly_deg1,</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>                    <span class="keywordtype">int</span>                       poly_deg2,</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                    <span class="keywordtype">double</span>                 *  mse,</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                    <span class="keywordtype">double</span>                 *  red_chisq,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                    <a class="code" href="struct__polynomial.html">polynomial</a>             ** variance);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <a class="code" href="struct__polynomial.html">polynomial</a> *<a class="code" href="group__uves__utils__polynomial.html#gab234ee00fd4ba72b05a50adb61947306" title="Add two polynomials.">uves_polynomial_add_2d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p1, <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p [...]
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utils__polynomial.html#ga56987ebb6bb09ab3f7477783627cba7b" title="Get degree.">uves_polynomial_get_degree</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(<a class="code" href="struct__polynomial.html">polynomial</a> **p);</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd" title="Delete a const polynomial.">uves_polynomial_delete_const</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> **p);</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> cpl_table     *<a class="code" href="group__uves__utils__polynomial.html#ga63ecda6c71765c319dc2d4141222bb42" title="Convert a polynomial to a table.">uves_polynomial_convert_to_table</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p);</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="keywordtype">int</span>            <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p);</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="keywordtype">void</span>           <a class="code" href="group__uves__utils__polynomial.html#ga0879179dcb0100de2d26f8de459d5838" title="Print a polynomial.">uves_polynomial_dump</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, FILE *stream);</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> cpl_error_code <a class="code" href="group__uves__utils__polynomial.html#ga92dd36f46989bfa0c6dc8cea6012c5e4" title="Shift a polynomial.">uves_polynomial_shift</a>(<a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">int</span> varno, <span class="keywordtype">double</span> <a class="code" href="struct__polynomial.html#a048f19c9b93d8531c1d850629a1ba596">shift</a>);</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> cpl_error_code <a class="code" href="group__uves__utils__polynomial.html#gad1b02406a2e665216eb47b64010a7081" title="Rescale a polynomial.">uves_polynomial_rescale</a>(<a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">int</span> varno, <span class="keywordtype">double</span> <a class="code" href="struct__polynomial.html#ad04fe30bf71ee54089d95ce12f948601">scale</a>);</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="keywordtype">double</span>         <a class="code" href="group__uves__utils__polynomial.html#gacf2ce658f1bd12581b1adcef88aa97a8" title="Get a coefficient of a 1D polynomial.">uves_polynomial_get_coeff_1d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">int</span> degree);</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="keywordtype">double</span>         <a class="code" href="group__uves__utils__polynomial.html#ga4db2d12df5c712085f53c050c219d39d" title="Get a coefficient of a 2D polynomial.">uves_polynomial_get_coeff_2d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                         <span class="keywordtype">int</span> degree1, <span class="keywordtype">int</span> degree2);</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="keywordtype">double</span>         <a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">double</span> x);</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="keywordtype">double</span>         <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">double</span> x1, <span class="keywordtype">double</span> x2);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="keywordtype">double</span>         <a class="code" href="group__uves__utils__polynomial.html#gadc218f4dd3fa80d91949611419b75abb" title="Solve p(x) = value.">uves_polynomial_solve_1d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">double</span> value, </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                     <span class="keywordtype">double</span> guess, <span class="keywordtype">int</span> multiplicity);</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="keywordtype">double</span>         <a class="code" href="group__uves__utils__polynomial.html#gacfd8db401e1250a53b8877ae118cce43" title="Solve p(x1, x2) = value.">uves_polynomial_solve_2d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">double</span> value, </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>                     <span class="keywordtype">double</span> guess, <span class="keywordtype">int</span> multiplicity, </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>                     <span class="keywordtype">int</span> varno, <span class="keywordtype">double</span> x_value);</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="keywordtype">double</span>         <a class="code" href="group__uves__utils__polynomial.html#ga182b594d06b39bdac65d27bca0104a13" title="Evaluate the derivative of a 1d polynomial.">uves_polynomial_derivative_1d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">double</span> x);</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="keywordtype">double</span>         <a class="code" href="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a" title="Evaluate the partial derivative of a 2d polynomial.">uves_polynomial_derivative_2d</a>(<span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">double</span> x1,</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>                          <span class="keywordtype">double</span> x2, <span class="keywordtype">int</span> varno);</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> cpl_error_code <a class="code" href="group__uves__utils__polynomial.html#ga1d4833534bce8b70f0311a652961b806" title="Calculate the partial derivative of a polynomial.">uves_polynomial_derivative</a>(<a class="code" href="struct__polynomial.html">polynomial</a> *p, <span class="keywordtype">int</span> varno);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utils__wrappers_8c_source.html b/html/uves__utils__wrappers_8c_source.html
deleted file mode 100644
index d47e30f..0000000
--- a/html/uves__utils__wrappers_8c_source.html
+++ /dev/null
@@ -1,2540 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utils_wrappers.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utils_wrappers.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-05-01 06:27:56 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.123 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> </div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <assert.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">                                   Local functions</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keyword">static</span> <span class="keywordtype">int</span> get_candidate(<span class="keyword">const</span> <span class="keywordtype">double</span> *a, <span class="keyword">const</span> <span class="keywordtype">int</span> ia[],</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>              <span class="keywordtype">int</span> M, <span class="keywordtype">int</span> N, <span class="keywordtype">int</span> D,</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>              <span class="keywordtype">double</span> lambda,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>              <span class="keywordtype">int</span>    (*f)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>                      <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>              <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>                      <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> *x,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> *y,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>              <span class="keyword">const</span> <span class="keywordtype">double</span> *sigma,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>              <span class="keywordtype">double</span> *partials,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>              cpl_matrix *alpha,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>              cpl_matrix *beta,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>              <span class="keywordtype">double</span> *a_da);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="keyword">static</span> <span class="keywordtype">double</span> get_chisq(<span class="keywordtype">int</span> N, <span class="keywordtype">int</span> D,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>             <span class="keywordtype">int</span> (*f)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>                  <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> *a,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> *x,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> *y,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> *sigma);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> </div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="keyword">static</span> cpl_image * </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> uves_image_filter_wrapper(<span class="keyword">const</span> cpl_image *b, </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span>                           <span class="keyword">const</span> cpl_matrix *k, </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>                           cpl_filter_mode mode);</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> cpl_image * </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> uves_image_filter_median(<span class="keyword">const</span> cpl_image * img, <span class="keyword">const</span> cpl_matrix * mx)</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> {</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     <span class="keywordflow">return</span> uves_image_filter_wrapper(img, mx, CPL_FILTER_MEDIAN);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> }</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> cpl_image * </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> uves_image_filter_linear(<span class="keyword">const</span> cpl_image *img, <span class="keyword">const</span> cpl_matrix * mx)</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> {</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>     <span class="keywordflow">return</span> uves_image_filter_wrapper(img, mx, CPL_FILTER_LINEAR);</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> }</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment">/*----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> ---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="preprocessor">#define image_is_rejected(badmap, x, y) \</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor">  ((badmap) != NULL && (badmap)[((x)-1) + ((y)-1)*nx] == CPL_BINARY_1)</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor">#ifndef UVES_FIT_MAXITER</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_FIT_MAXITER 1000</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment">                                   Types</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">/* @cond */</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     <span class="keywordtype">double</span> x;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     <span class="keywordtype">double</span> y;</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> } uves_fit_1d_input;</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">/* @endcond */</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment">                                   Implementation</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="keyword">static</span> cpl_image * </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> uves_image_filter_wrapper(<span class="keyword">const</span> cpl_image *b, </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>                           <span class="keyword">const</span> cpl_matrix *k, </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>                           cpl_filter_mode mode)</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> {</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> EPSILON = 1E-5;</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     <span class="keywordtype">int</span> nx   = cpl_image_get_size_x(b);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     <span class="keywordtype">int</span> ny   = cpl_image_get_size_y(b);</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     <span class="keywordtype">int</span> nrow = cpl_matrix_get_nrow(k);</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>     <span class="keywordtype">int</span> ncol = cpl_matrix_get_ncol(k);</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     <span class="keywordtype">int</span> i, j;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     cpl_type type = cpl_image_get_type(b);</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>     cpl_image * a = cpl_image_new(nx, ny, type);</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="comment">// where m is a cpl_mask with a CPL_BINARY_1 whereever k has a 1.0.</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     cpl_mask* m = cpl_mask_new(ncol, nrow);</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     cpl_msg_warning(cpl_func, <span class="stringliteral">"nx[%d], ny[%d], ncol[%d], nrow[%d]"</span>, nx, ny, ncol, nrow);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     <span class="keywordflow">for</span> (i = 0; i < ncol ; i++)</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     {</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>         <span class="keywordflow">for</span> (j = 0; j < nrow ; j++)</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>         {</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>             <span class="keywordtype">double</span> value = cpl_matrix_get(k, j, i);</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>             <span class="keywordflow">if</span> (fabs(value - 1.0) < EPSILON)</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>             {</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>                 cpl_mask_set(m, i + 1, j + 1, CPL_BINARY_1);</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>             }</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>         }</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>     }</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     cpl_image_filter_mask(a, b, m, mode, CPL_BORDER_FILTER);</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     cpl_mask_delete(m);</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     <span class="keywordflow">return</span> a;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> }</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> cpl_image*</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> uves_image_filter_mode(<span class="keyword">const</span> cpl_image* b,</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>                       <span class="keyword">const</span> cpl_matrix * ker,</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>                       cpl_filter_mode filter)</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> {</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>   <span class="keywordtype">int</span> nx   = cpl_image_get_size_x(b);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>   <span class="keywordtype">int</span> ny   = cpl_image_get_size_y(b);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>   <span class="keywordtype">int</span> type = cpl_image_get_type(b);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>   cpl_image * a = cpl_image_new(nx, ny, type);</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>   <span class="keywordflow">switch</span>(filter) {</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>   <span class="keywordflow">case</span> CPL_FILTER_MEDIAN:</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_filter(a, b, ker, CPL_FILTER_MEDIAN, CPL_BORDER_FILTER));</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>   <span class="keywordflow">case</span> CPL_FILTER_LINEAR:</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_filter(a, b, ker, CPL_FILTER_LINEAR, CPL_BORDER_FILTER));</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>   <span class="keywordflow">case</span> CPL_FILTER_STDEV:</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     cpl_image_filter(a, b, ker, CPL_FILTER_STDEV, CPL_BORDER_FILTER);</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>   <span class="keywordflow">case</span> CPL_FILTER_MORPHO:</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     cpl_image_filter(a, b, ker, CPL_FILTER_MORPHO, CPL_BORDER_FILTER);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>   <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Filter type not supported"</span>);</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     <span class="keywordflow">return</span> NULL;</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>   }</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>  cleanup:</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>   <span class="keywordflow">return</span> a;</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> }</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="keywordtype">void</span> uves_image_reject_all(cpl_image *image)</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> {</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( image != NULL, CPL_ERROR_NULL_INPUT );</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span> </div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     <span class="keywordflow">for</span> (y = 1; y <= ny; y++) {</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>         <span class="keywordflow">for</span> (x = 1; x <= nx; x++) {</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>             cpl_image_reject(image, x, y);</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>         }</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     }</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     </div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>   cleanup:</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>     <span class="keywordflow">return</span>;    </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> }</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> cpl_error_code</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> uves_fit_1d_image(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *noise,</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>           <span class="keyword">const</span> cpl_binary *image_badmap,</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>           <span class="keywordtype">bool</span> horizontal, <span class="keywordtype">bool</span> fix_back, <span class="keywordtype">bool</span> fit_back,</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>           <span class="keywordtype">int</span> xlo, <span class="keywordtype">int</span> xhi, <span class="keywordtype">int</span> y_0,</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>           <span class="keywordtype">double</span> *x0, <span class="keywordtype">double</span> *sigma, <span class="keywordtype">double</span> *norm, <span class="keywordtype">double</span> *background,</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>                   <span class="keywordtype">double</span> *slope,</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>           <span class="keywordtype">double</span> *mse, <span class="keywordtype">double</span> *red_chisq,</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>           cpl_matrix **covariance,</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>           <span class="keywordtype">int</span> (*f)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>           <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>           <span class="keywordtype">int</span> M)</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> {</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     cpl_vector *x = NULL;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     cpl_vector *y = NULL;</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     cpl_vector *sigma_y = NULL;     <span class="comment">/* Noise vector          */</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     </div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     cpl_fit_mode fit_pattern;</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <span class="keywordtype">int</span> nx, ny;                     <span class="comment">/* Image size            */</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <span class="keywordtype">int</span> N;                          <span class="comment">/* Number of good pixels */</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="keywordtype">int</span> i, j;</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     cpl_type image_type;</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *image_data       = NULL;        <span class="comment">/* Pointer to data */</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data       = NULL;        <span class="comment">/* Pointer to data */</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     assure( x0 != NULL        , CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null fit parameter"</span>);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     assure( sigma != NULL     , CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null fit parameter"</span>);</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     assure( norm != NULL      , CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null fit parameter"</span>);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     assure( background != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null fit parameter"</span>);</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     <span class="comment">/* mse, red_chisq, covariance may be NULL */</span></div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     assure( image != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>    </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     image_type = cpl_image_get_type(image);</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     <span class="comment">/* To support the following types, use cpl_image_get() or</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment">       more multiple type pointers to data buffer.</span></div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="comment">       cpl_ensure_code( image_type == CPL_TYPE_INT ||</span></div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="comment">       image_type == CPL_TYPE_FLOAT ||</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="comment">       image_type == CPL_TYPE_DOUBLE,</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="comment">       CPL_ERROR_TYPE_MISMATCH);</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     assure( image_type == CPL_TYPE_DOUBLE, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>         <span class="stringliteral">"Unsupported type: %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(image_type));</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> </div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     image_data = cpl_image_get_data_double_const(image);</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     <span class="keywordflow">if</span> (noise != NULL)</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     {</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>         image_type = cpl_image_get_type(noise);</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>         <span class="comment">/*  See comment above.</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="comment">          cpl_ensure_code( image_type == CPL_TYPE_INT ||</span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment">          image_type == CPL_TYPE_FLOAT ||</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment">          image_type == CPL_TYPE_DOUBLE,</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment">          CPL_ERROR_TYPE_MISMATCH);</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>         assure( image_type == CPL_TYPE_DOUBLE, CPL_ERROR_UNSUPPORTED_MODE, </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>             <span class="stringliteral">"Unsupported type: %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(image_type));</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> </div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>         noise_data = cpl_image_get_data_double_const(noise);</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     }   </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     <span class="keywordflow">if</span> (horizontal)</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     {</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>         assure( 1 <= xlo && xlo <= xhi && xhi <= nx &&</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>             1 <= y_0  && y_0  <= ny, CPL_ERROR_ACCESS_OUT_OF_RANGE,</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>             <span class="stringliteral">"Illegal window (%d, %d)-(%d, %d), image: %dx%d"</span>,</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>             xlo, y_0, xhi, y_0,</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>             nx, ny);</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     }</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     {</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>         assure( 1 <= xlo && xlo <= xhi && xhi <= ny &&</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>             1 <= y_0  && y_0  <= nx,</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>             CPL_ERROR_ACCESS_OUT_OF_RANGE,</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>             <span class="stringliteral">"Illegal window (%d, %d)-(%d, %d), image: %dx%d"</span>,</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>             y_0, xlo, y_0, xhi,</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>             nx, ny);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     }</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     <span class="comment">/* Noise image must have same size</span></div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> <span class="comment">     * as the input image</span></div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     <span class="keywordflow">if</span> (noise != NULL)</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     {</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>         assure( cpl_image_get_size_x(noise) == nx &&</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>             cpl_image_get_size_y(noise) == ny,</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>             CPL_ERROR_INCOMPATIBLE_INPUT, <span class="stringliteral">"Noise image: %"</span> CPL_SIZE_FORMAT <span class="stringliteral">"x%"</span> CPL_SIZE_FORMAT <span class="stringliteral">", image: %dx%d:"</span>,</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>             cpl_image_get_size_x(noise),</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>             cpl_image_get_size_y(noise),</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>             nx, ny);</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     }</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>    </div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     <span class="comment">/* Count good pixels in sub-window, check that noise image is positive */</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     N = 0;</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>     <span class="keywordflow">for</span> (i = xlo; i <= xhi; i++)</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     {</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>         <span class="keywordflow">if</span> ( !image_is_rejected(image_badmap,</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>                     (horizontal) ? i : y_0,</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>                     (horizontal) ? y_0 : i) )</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>         {</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>             <span class="keywordflow">if</span> ( noise != NULL)</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>             {</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>                 <span class="keywordflow">if</span>( !image_is_rejected(image_badmap,</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>                            (horizontal) ? i : y_0,</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>                            (horizontal) ? y_0 : i) )</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>                 {</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>                     <span class="comment">/* Noise image must be positive (only check</span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <span class="comment">                       pixels that are actually used) */</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>                     assure( <span class="comment">/*cpl_image_get(noise,</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span> <span class="comment">                          (horizontal) ? i : y_0,</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> <span class="comment">                          (horizontal) ? y_0 : i,</span></div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span> <span class="comment">                          &pis_rejected)*/</span></div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                     noise_data[(((horizontal) ? i : y_0) - 1) +</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>                            (((horizontal) ? y_0 : i) - 1) * nx]</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>                     > 0,</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>                     CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>                     <span class="stringliteral">"Non-positive noise at (%d, %d): %e"</span>,</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>                     (horizontal) ? i : y_0,</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>                     (horizontal) ? y_0 : i,</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>                     noise_data[(((horizontal) ? i : y_0) - 1) +</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>                            (((horizontal) ? y_0 : i) - 1) * nx]</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>                     );</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>                     </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                     N += 1;</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                 }</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                 {</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                     <span class="comment">/* Pixel value is good, but noise pixel is</span></div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> <span class="comment">                       bad. Don't use. */</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>                 }</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>             }</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>             {</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                 <span class="comment">/* Pixel is good. No noise image */</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                 N += 1;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>             }</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>         }</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     }</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>    </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     <span class="comment">/* Check that there is at least one good pixel */</span></div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     assure( N >= 1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Only %d good pixel(s)"</span>, N);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     <span class="comment">/* Allocate space */</span></div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     x = cpl_vector_new(N);</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     y = cpl_vector_new(N);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     <span class="keywordflow">if</span> (noise != NULL)</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     {</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>         sigma_y = cpl_vector_new(N);</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>         <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( sigma_y );</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     }</div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> </div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     <span class="keywordflow">if</span> (fix_back)</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     {</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>         fit_pattern = CPL_FIT_CENTROID | CPL_FIT_STDEV | CPL_FIT_AREA;</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     }</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (fit_back)</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     {</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         fit_pattern = CPL_FIT_AREA | CPL_FIT_OFFSET;</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     }</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     {</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>         fit_pattern = CPL_FIT_ALL;</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     }</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>    </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( x );</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( y );</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>     <span class="comment">/* Copy the N good pixels from the input image to vectors,</span></div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> <span class="comment">       j count good pixels */</span></div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>     <span class="keywordflow">for</span> (i = xlo, j = 0;</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>      i <= xhi;</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>      i++)</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>     {</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>         <span class="keywordtype">double</span> flux;</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>         </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> <span class="comment">          flux = cpl_image_get(image,</span></div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> <span class="comment">          (horizontal) ? xlo+i : y_0,</span></div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span> <span class="comment">          (horizontal) ? y_0 : xlo+i,</span></div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span> <span class="comment">          &pis_rejected);</span></div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>         </div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>         flux = image_data[(((horizontal) ? i : y_0) - 1) +</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                   (((horizontal) ? y_0 : i) - 1) * nx];</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>        </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>         <span class="comment">//if (!pis_rejected)</span></div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>         <span class="keywordflow">if</span> ( !image_is_rejected(image_badmap,</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>                     (horizontal) ? i : y_0,</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>                     (horizontal) ? y_0 : i) )</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>         {</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>             <span class="keywordflow">if</span> (noise != NULL)</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>             {</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>                 <span class="keywordtype">double</span> flux_noise;</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>                </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>                 <span class="comment">/* flux_noise = cpl_image_get(noise,</span></div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> <span class="comment">                   (horizontal) ? xlo+i : y_0,</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> <span class="comment">                   (horizontal) ? y_0 : xlo+i,</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> <span class="comment">                   &pis_rejected);</span></div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span> <span class="comment">                */</span></div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>                </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>                 flux_noise = noise_data</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>                 [(((horizontal) ? i : y_0) - 1) +</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>                  (((horizontal) ? y_0 : i) - 1) * nx];</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>                </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>                 <span class="comment">//if (!pis_rejected)</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>                 <span class="keywordflow">if</span> ( !image_is_rejected(image_badmap,</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>                             (horizontal) ?</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>                             i : y_0,</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>                             (horizontal)</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>                             ? y_0 : i) )</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>                 {</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>                     cpl_vector_set(x,       j, i);</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>                     cpl_vector_set(y,       j, flux);</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>                     cpl_vector_set(sigma_y, j, flux_noise);</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>                     j++;</div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>                 }</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>             }</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>             {</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>                 cpl_vector_set(x, j, i);</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>                 cpl_vector_set(y, j, flux);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>                 j++;</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>             }</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>         }</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     }</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( j == N, <span class="stringliteral">"%d %d"</span>, j, N);</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_fit_1d(x, NULL,      <span class="comment">/* x, sigma_x */</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>                y, sigma_y,</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>                fit_pattern, fit_back,</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>                x0, sigma, norm, background,</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>                        slope,</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                mse, red_chisq,</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                covariance,</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>                f, dfda, M),</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>        <span class="stringliteral">"Fit failed"</span>);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> </div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>   cleanup:</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>     uves_free_vector(&x);</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>     uves_free_vector(&y);</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>     uves_free_vector(&sigma_y);</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> }</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> <span class="keyword">static</span> <span class="keywordtype">int</span> uves_fit_1d_compare(<span class="keyword">const</span> <span class="keywordtype">void</span> *left,</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>                    <span class="keyword">const</span> <span class="keywordtype">void</span> *right)</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> {</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>     <span class="keywordflow">return</span> </div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     (((uves_fit_1d_input *)left )->x <  </div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>      ((uves_fit_1d_input *)right)->x) ? -1 :</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     (((uves_fit_1d_input *)left )->x == </div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>      ((uves_fit_1d_input *)right)->x) ? 0  : 1;</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span> }</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span> </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> cpl_error_code</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> uves_fit_1d(cpl_vector *x, <span class="keyword">const</span> cpl_vector *sigma_x,</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>             cpl_vector *y, <span class="keyword">const</span> cpl_vector *sigma_y,</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>             cpl_fit_mode fit_pars, <span class="keywordtype">bool</span> fit_back,</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>             <span class="keywordtype">double</span> *x0, <span class="keywordtype">double</span> *sigma, <span class="keywordtype">double</span> *area, <span class="keywordtype">double</span> *offset, <span class="keywordtype">double</span> *slope,</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>             <span class="keywordtype">double</span> *mse, <span class="keywordtype">double</span> *red_chisq,</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>             cpl_matrix **covariance,</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>             <span class="keywordtype">int</span> (*f)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>             <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>             <span class="keywordtype">int</span> M)</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span> {</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>     cpl_matrix *x_matrix = NULL; <span class="comment">/* LM algorithm needs a matrix,</span></div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> <span class="comment">                      not a vector                 */</span></div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> </div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     <span class="keywordtype">int</span> N;                          <span class="comment">/* Number of data points        */</span></div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>     <span class="keywordtype">double</span> xlo, xhi;                <span class="comment">/* Min/max x                    */</span></div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> </div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     <span class="comment">/* Initial parameter values */</span></div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>     <span class="keywordtype">double</span> x0_guess    = 0;  <span class="comment">/* Avoid warnings about uninitialized variables */</span></div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>     <span class="keywordtype">double</span> sigma_guess = 0;</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     <span class="keywordtype">double</span> area_guess;</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>     <span class="keywordtype">double</span> offset_guess;</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> </div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>     cpl_ensure_code( M == 4 || M == 5, CPL_ERROR_UNSUPPORTED_MODE);</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     <span class="comment">/* Validate input */</span></div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>     cpl_ensure_code( x       != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>     cpl_ensure_code( sigma_x == NULL, CPL_ERROR_UNSUPPORTED_MODE);</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>     cpl_ensure_code( y       != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     <span class="comment">/* sigma_y may be NULL or non-NULL */</span></div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>     </div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>     N = cpl_vector_get_size(x);</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span> </div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>     cpl_ensure_code( N == cpl_vector_get_size(y),</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>              CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> </div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>     <span class="keywordflow">if</span> (sigma_x != NULL)</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>     {</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>         cpl_ensure_code( N == cpl_vector_get_size(sigma_x),</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>                  CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>     }</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     <span class="keywordflow">if</span> (sigma_y != NULL)</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>     {</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>         cpl_ensure_code( N == cpl_vector_get_size(sigma_y),</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>                  CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>     }</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> </div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     cpl_ensure_code( x0     != NULL &&</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>              sigma  != NULL &&</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>              area   != NULL &&</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>              offset != NULL &&</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>                      (M != 5 || slope != NULL), CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span> </div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     <span class="keywordflow">if</span> (! (fit_pars & CPL_FIT_STDEV))</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     {</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>         cpl_ensure_code( *sigma > 0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     }</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> </div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>     cpl_ensure_code( !fit_back || fit_pars == (CPL_FIT_OFFSET | CPL_FIT_AREA),</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>              CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span> </div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>     <span class="comment">/* Input area must be positive if fit_back is false */</span></div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     <span class="keywordflow">if</span> (! (fit_pars & CPL_FIT_AREA) && !fit_back)</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     {</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>         cpl_ensure_code( *area > 0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>     }</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> </div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>     <span class="comment">/* mse, red_chisq may be NULL */</span></div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span> </div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>     <span class="comment">/* Need more than number_of_parameters points to calculate chi^2.</span></div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span> <span class="comment">     * There are less than 5 parameters. */</span></div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>     cpl_ensure_code( red_chisq == NULL || N >= 5, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>     </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>     <span class="keywordflow">if</span> (covariance != NULL) *covariance = NULL;</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>     <span class="comment">/* If covariance computation is requested, then</span></div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> <span class="comment">     * return either the covariance matrix or NULL</span></div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> <span class="comment">     * (don't return undefined pointer).</span></div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>     </div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>     <span class="comment">/* Cannot compute chi square & covariance without sigma_y */</span></div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>     cpl_ensure_code( (red_chisq == NULL && covariance == NULL) || </div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>              sigma_y != NULL,</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>              CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>     </div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>     <span class="comment">/* Create matrix from x-data */</span></div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>     x_matrix = cpl_matrix_wrap(N, 1, cpl_vector_get_data(x));</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>     <span class="keywordflow">if</span> (x_matrix == NULL)</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>     {</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>         cpl_ensure_code(</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                 CPL_FALSE,</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>         CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     }</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>     </div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>     <span class="comment">/* Check that any provided sigmas are positive. */</span></div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>     <span class="keywordflow">if</span> (sigma_x != NULL && cpl_vector_get_min(sigma_x) <= 0)</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>     {</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>         cpl_matrix_unwrap(x_matrix);</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>         cpl_ensure_code(</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>         CPL_FALSE,</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>         CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>     }</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>     <span class="keywordflow">if</span> (sigma_y != NULL && cpl_vector_get_min(sigma_y) <= 0)</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>     {</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>         cpl_matrix_unwrap(x_matrix);</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>         cpl_ensure_code(</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>         CPL_FALSE,</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>         CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>     }</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span> </div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     <span class="comment">/* Compute guess parameters using robust estimation</span></div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span> <span class="comment">     * (This step might be improved by taking into account the </span></div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span> <span class="comment">     * uncertainties but for simplicity's sake do not)</span></div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>     <span class="keywordflow">if</span> (fit_back)</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>     {</div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>         <span class="comment">/* We need to estimate only these two parameters */</span></div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>         assert( fit_pars == CPL_FIT_OFFSET || CPL_FIT_AREA);</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span> </div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> <span class="preprocessor"></span>        offset_guess = cpl_vector_get_median_const(y);</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span> <span class="preprocessor"></span>        offset_guess = cpl_vector_get_median(y);</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span> <span class="preprocessor"></span>        area_guess = N*(cpl_vector_get_mean(y) - offset_guess);</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>         <span class="comment">/* Sum of (flux-offset) */</span></div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span> </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>         x0_guess = *x0;</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>         sigma_guess = *sigma;</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>     }</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>     <span class="keywordtype">double</span> sum  = 0.0;</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>     <span class="keywordtype">double</span> quartile[3];</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     <span class="keywordtype">double</span> fraction[3] = {0.25 , 0.50 , 0.75};</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *y_data = cpl_vector_get_data_const(y);</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     <span class="keywordflow">if</span> (fit_pars & CPL_FIT_OFFSET)</div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>         {</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>         <span class="comment">/* Estimate offset as 25% percentile of y-values.</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span> <span class="comment">           (The minimum value may be too low for noisy input,</span></div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span> <span class="comment">           the median is too high if there is not much</span></div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span> <span class="comment">           background in the supplied data, so use</span></div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> <span class="comment">           something inbetween).</span></div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>         cpl_vector *y_dup = cpl_vector_duplicate(y);</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>         </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>         <span class="keywordflow">if</span> (y_dup == NULL)</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>             {</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>             cpl_matrix_unwrap(x_matrix);</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>             cpl_ensure_code(</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>                 CPL_FALSE,</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span>                 CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>             }</div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>         </div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>         offset_guess = <a class="code" href="group__uves__utils__cpl.html#gaab92b190da2ce4979277ec4f0a09cc5b" title="returns the kth value of an array">uves_utils_get_kth_double</a>(</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>             cpl_vector_get_data(y_dup), N, N/4);</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>         </div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>         cpl_vector_delete(y_dup);</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>         }</div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>         {</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>         offset_guess = *offset;</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>         }</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>     </div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>     <span class="comment">/* Get quartiles of distribution</span></div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span> <span class="comment">       (only bother if it's needed for estimation of x0 or sigma) */</span></div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>     <span class="keywordflow">if</span> ( (fit_pars & CPL_FIT_CENTROID) ||</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>          (fit_pars & CPL_FIT_STDEV   )</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>         )</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>         {</div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>         <span class="comment">/* The algorithm requires the input to be sorted</span></div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span> <span class="comment">           as function of x, so do that (using qsort), and</span></div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span> <span class="comment">           work on the sorted copy. Of course, the y-vector</span></div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span> <span class="comment">           must be re-ordered along with x.</span></div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span> <span class="comment">           sigma_x and sigma_y are not used, so don't copy those.</span></div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>         </div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>         uves_fit_1d_input</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span>             *sorted_input = cpl_malloc(N * <span class="keyword">sizeof</span>(*sorted_input));</div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> *x_data = cpl_matrix_get_data_const(x_matrix);</div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>         cpl_boolean is_sorted = CPL_TRUE;</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>         </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>         <span class="keywordflow">if</span> (sorted_input == NULL)</div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>             {</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span>             cpl_matrix_unwrap(x_matrix);</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>             cpl_ensure_code(</div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>                 CPL_FALSE,</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>                 CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>             }</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>         </div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>         <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>             {</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span>             sorted_input[i].x = x_data[i];</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>             sorted_input[i].y = y_data[i];</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>             </div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>             is_sorted = is_sorted && </div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span>                 (i==0 || (x_data[i-1] < x_data[i]));</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>             }            </div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>         </div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>         <span class="keywordflow">if</span> (!is_sorted)</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>             {</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>             qsort(sorted_input, N, <span class="keyword">sizeof</span>(*sorted_input),</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>                   &uves_fit_1d_compare);</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>             }</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>         <span class="keywordflow">for</span>(i = 0; i < N; i++)</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>             {</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>             <span class="keywordtype">double</span> flux = sorted_input[i].y;</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>             </div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>             sum += (flux - offset_guess);</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>             }</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>         <span class="comment">/* Note that 'sum' must be calculated the same way as</span></div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span> <span class="comment">           'running_sum' below, Otherwise (due to round-off error)</span></div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> <span class="comment">           'running_sum' might end up being different from 'sum'(!).</span></div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span> <span class="comment">           Specifically, it will not work to calculate 'sum' as</span></div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span> <span class="comment">           </span></div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span> <span class="comment">           (flux1 + ... + fluxN)  -  N*offset_guess</span></div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>         </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>         <span class="keywordflow">if</span> (sum > 0.0)</div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>             {</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>             <span class="keywordtype">double</span> flux, x1, x2;</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>             <span class="keywordtype">double</span> running_sum = 0.0;</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>             <span class="keywordtype">int</span> j;</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>             </div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>             i = 0;</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>             flux = sorted_input[i].y - offset_guess;</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>             </div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>             <span class="keywordflow">for</span> (j = 0; j < 3; j++)</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>                 {</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>                 <span class="keywordtype">double</span> limit = fraction[j] * sum;</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>                 <span class="keywordtype">double</span> k;</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>                 </div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>                 <span class="keywordflow">while</span> (running_sum + flux < limit && i < N-1)</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>                     {</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>                     running_sum += flux;</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>                     i++;</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>                     flux = sorted_input[i].y - offset_guess;</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>                     }</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span> </div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>                 <span class="comment">/* Fraction [0;1] of current flux needed</span></div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span> <span class="comment">                   to reach the quartile */</span></div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>                 k = (limit - running_sum)/flux;</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>                 </div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>                 <span class="keywordflow">if</span> (k <= 0.5)</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>                     {</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>                     <span class="comment">/* Interpolate linearly between</span></div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span> <span class="comment">                       current and previous position</span></div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span> <span class="comment">                    */</span></div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>                     <span class="keywordflow">if</span> (0 < i)</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>                         {</div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>                         x1 = sorted_input[i-1].x;</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>                         x2 = sorted_input[i].x;</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>                         </div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>                         quartile[j] = </div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>                             x1*(0.5-k) +</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>                             x2*(0.5+k);</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>                         <span class="comment">/*</span></div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span> <span class="comment">                          k=0   => quartile = midpoint,</span></div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span> <span class="comment">                          k=0.5 => quartile = x2</span></div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> <span class="comment">                        */</span></div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>                         }</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>                         {</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>                         quartile[j] = sorted_input[i].x;</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>                         }</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>                     }</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>                     {</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>                     <span class="comment">/* Interpolate linearly between</span></div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span> <span class="comment">                       current and next position */</span></div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>                     <span class="keywordflow">if</span> (i < N-1)</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>                         {</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>                         x1 = sorted_input[i].x;</div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>                         x2 = sorted_input[i+1].x;</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>                         </div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>                         quartile[j] = </div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>                             x1*( 1.5-k) +</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>                             x2*(-0.5+k);</div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>                         <span class="comment">/*</span></div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> <span class="comment">                          k=0.5 => quartile = x1,</span></div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> <span class="comment">                          k=1.0 => quartile = midpoint</span></div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> <span class="comment">                        */</span></div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>                         }</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span>                     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>                         {</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span>                         quartile[j] = sorted_input[i].x;</div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>                         }</div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>                     }</div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>                 }</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>             }</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>             {</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>             <span class="comment">/* If there's no flux (sum = 0) then</span></div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> <span class="comment">               set quartiles to something that's not </span></div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> <span class="comment">               completely insensible.</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>             quartile[1] = cpl_matrix_get_mean(x_matrix);</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>             </div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>             quartile[2] = quartile[1];</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>             quartile[0] = quartile[2] - 1.0;</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>             <span class="comment">/* Then sigma_guess = 1.0 */</span></div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>             }</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> </div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>         cpl_free(sorted_input);</div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>         } <span class="comment">/* If need to compute quartiles */</span></div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>         </div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>     <span class="comment">/* x0_guess = median of distribution */</span></div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>     x0_guess = (fit_pars & CPL_FIT_CENTROID) ? quartile[1] : *x0;</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>     </div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>     <span class="comment">/* sigma_guess = median of absolute residuals</span></div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span> <span class="comment">     *  (68% is within 1 sigma, and 50% is within 0.6744</span></div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> <span class="comment">     *  sigma,  => quartile3-quartile1 = 2*0.6744 sigma)</span></div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>     sigma_guess = (fit_pars & CPL_FIT_STDEV) ? </div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>         (quartile[2] - quartile[0]) / (2*0.6744) : *sigma;</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>     </div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>     area_guess  = (fit_pars & CPL_FIT_AREA) ?</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>         (cpl_vector_get_max(y) - offset_guess) * sqrt(2*M_PI) * sigma_guess : *area;</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>     <span class="comment">/* This formula makes sense only if the area is positive */</span></div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>     </div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>     <span class="comment">/* Make sure that the area is a positive number */</span></div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>     <span class="keywordflow">if</span> ( area_guess <= 0)  area_guess = 1.0;</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>     <span class="keywordflow">if</span> (sigma_guess <= 0) sigma_guess = 1.0;</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>     }</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>     </div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>     <span class="comment">/* Wrap parameters, fit, unwrap */</span></div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>     {</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>     cpl_vector *a;</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>     <span class="keywordtype">int</span> ia[5];            <span class="comment">/* The last element</span></div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span> <span class="comment">                 is ignored if</span></div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span> <span class="comment">                 M = 4 */</span></div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>     cpl_error_code ec;</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span> </div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>     assert(M == 4 || M == 5);</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     a = cpl_vector_new(M);</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span> </div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>     <span class="keywordflow">if</span> (a == NULL)</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>         {</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>         cpl_matrix_unwrap(x_matrix);</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>         cpl_ensure_code(</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>             CPL_FALSE,</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>             CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>         }</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> </div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>     cpl_vector_set(a, 0, x0_guess);</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>     cpl_vector_set(a, 1, sigma_guess);</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>     cpl_vector_set(a, 2, area_guess);</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>     cpl_vector_set(a, 3, offset_guess);</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>     </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>     ia[0] = fit_pars & CPL_FIT_CENTROID;</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>     ia[1] = fit_pars & CPL_FIT_STDEV;</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>     ia[2] = fit_pars & CPL_FIT_AREA;</div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>     ia[3] = fit_pars & CPL_FIT_OFFSET;</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span> </div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>     <span class="keywordflow">if</span> (M == 5)</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>         {</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>         <span class="comment">/* linear sky-term, first hold it constant,</span></div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span> <span class="comment">         * then call LM-fitting a second time where</span></div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> <span class="comment">         * it is non-constant */</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>         <span class="keywordflow">if</span> (fit_pars & CPL_FIT_OFFSET)</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                     {</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>                         cpl_vector_set(a, 4, 0);</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                     }</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>                     {</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>                         cpl_vector_set(a, 4, *slope);</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>                     }</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span> </div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>         ia[4] = 0;</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>         }</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>     </div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>     ec = uves_fit(x_matrix, NULL,</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>             y, sigma_y, </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>             a, ia, f, dfda,</div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>             mse, red_chisq,</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>             covariance);</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>     </div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span> <span class="comment">//    printf("Sky: e='%s'\n", cpl_error_get_message()); cpl_vector_dump(a, stdout);</span></div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>     <span class="keywordflow">if</span> (M == 5)</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>         {</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>         ia[4] = fit_pars & CPL_FIT_OFFSET;</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span> </div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>         <span class="keywordflow">if</span> (covariance != NULL)</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>             {</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>             uves_free_matrix(covariance);</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>             }</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span> </div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>         ec = uves_fit(x_matrix, NULL,</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>                 y, sigma_y, </div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>                 a, ia, f, dfda,</div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>                 mse, red_chisq,</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>                 covariance);</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span> <span class="comment">//    printf("Sky: e='%s'\n", cpl_error_get_message()); cpl_vector_dump(a, stdout);</span></div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>         }</div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span> </div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>     cpl_matrix_unwrap(x_matrix);</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>     </div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>     <span class="comment">/* Check return status of fitting routine */</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>     <span class="keywordflow">if</span> (ec == CPL_ERROR_NONE      ||</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>         ec == CPL_ERROR_SINGULAR_MATRIX)</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>         {</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>         <span class="comment">/* The LM algorithm converged. The computation</span></div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> <span class="comment">         *  of the covariance matrix might have failed.</span></div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>         </div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>         <span class="comment">/* In principle, the LM algorithm might have converged</span></div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span> <span class="comment">         * to a negative sigma (even if the guess value was</span></div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span> <span class="comment">         * positive). Make sure that the returned sigma is positive</span></div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span> <span class="comment">         * (by convention).</span></div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> </div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span>         <span class="keywordflow">if</span> (CPL_FIT_CENTROID) *x0     = cpl_vector_get(a, 0);</div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>         <span class="keywordflow">if</span> (CPL_FIT_STDEV   ) *sigma  = fabs(cpl_vector_get(a, 1));</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>         <span class="keywordflow">if</span> (CPL_FIT_AREA    ) *area   = cpl_vector_get(a, 2);</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span>         <span class="keywordflow">if</span> (CPL_FIT_OFFSET  ) {</div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>                     *offset = cpl_vector_get(a, 3);</div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>                     <span class="keywordflow">if</span> (M == 5) *slope = cpl_vector_get(a, 4);</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>                 }</div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span>         }</div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>     </div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>     cpl_vector_delete(a);</div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>     </div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>     xlo = cpl_vector_get_min(x);</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>     xhi = cpl_vector_get_max(x);</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> </div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>     <span class="keywordflow">if</span> (ec == CPL_ERROR_CONTINUE ||</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>         !(</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>         !irplib_isnan(*x0    ) && !irplib_isinf(*x0    ) &&</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>         !irplib_isnan(*sigma ) && !irplib_isinf(*sigma ) &&</div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>         !irplib_isnan(*area  ) && !irplib_isinf(*area  ) &&</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>         !irplib_isnan(*offset) && !irplib_isinf(*offset) &&</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>         ((M != 5) || (!irplib_isnan(*slope ) && !irplib_isinf(*slope ))) &&</div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>         xlo <= *x0 && *x0 <= xhi &&</div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>         0 < *sigma && *sigma < (xhi - xlo + 1) &&</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>         (fit_back || 0 < *area)</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>         <span class="comment">/* This extra check on the background level makes sense</span></div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> <span class="comment">           iff the input flux is assumed to be positive</span></div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> <span class="comment">           && *offset > - *area  */</span></div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>         )</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>         )</div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>         {</div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>         <span class="comment">/* The LM algorithm did not converge, or it converged to</span></div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> <span class="comment">         * a non-sensical result. Return the guess parameter values</span></div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span> <span class="comment">         * in order to enable the caller to recover. */</span></div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> </div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>         *x0         = x0_guess;</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>         *sigma      = sigma_guess;</div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>         *area       = area_guess;</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>         *offset     = offset_guess;</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>                 <span class="keywordflow">if</span> (M == 5) *slope = 0;</div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>         </div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>         <span class="comment">/* In this case the covariance matrix will not make sense</span></div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> <span class="comment">           (because the LM algorithm failed), so delete it */</span></div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>         <span class="keywordflow">if</span> (covariance != NULL && *covariance != NULL)</div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>             {</div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>             cpl_matrix_delete(*covariance);</div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>             *covariance = NULL;</div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>             }</div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> </div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>         <span class="comment">/* Return CPL_ERROR_CONTINUE if the fitting routine failed */</span></div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>         cpl_ensure_code(</div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>             CPL_FALSE,</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>             CPL_ERROR_CONTINUE);</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>         }</div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>     }</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>     </div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> }</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span> <span class="comment">/* @endcond */</span></div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> </div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> <span class="preprocessor">#define DEBUG_LM 0   </span><span class="comment">/* Set to non-zero to print info on the error msg level */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> <span class="preprocessor"></span><span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> cpl_error_code</div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> uves_fit(<span class="keyword">const</span> cpl_matrix *x, <span class="keyword">const</span> cpl_matrix *sigma_x,</div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>      <span class="keyword">const</span> cpl_vector *y, <span class="keyword">const</span> cpl_vector *sigma_y,</div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>      cpl_vector *a, <span class="keyword">const</span> <span class="keywordtype">int</span> ia[],</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>      <span class="keywordtype">int</span>    (*f)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>      <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>      <span class="keywordtype">double</span> *mse,</div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>      <span class="keywordtype">double</span> *red_chisq,</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>      cpl_matrix **covariance)</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span> {</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *x_data     = NULL; <span class="comment">/* Pointer to input data                  */</span></div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *y_data     = NULL; <span class="comment">/* Pointer to input data                  */</span></div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *sigma_data = NULL; <span class="comment">/* Pointer to input data                  */</span></div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>     <span class="keywordtype">int</span> N    = 0;                    <span class="comment">/* Number of data points                  */</span></div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>     <span class="keywordtype">int</span> D    = 0;                    <span class="comment">/* Dimension of x-points                  */</span></div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>     <span class="keywordtype">int</span> M    = 0;                    <span class="comment">/* Number of fit parameters               */</span></div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>     <span class="keywordtype">int</span> Mfit = 0;                    <span class="comment">/* Number of non-constant fit</span></div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> <span class="comment">                        parameters                             */</span></div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> </div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>     <span class="keywordtype">double</span> lambda    = 0.0;          <span class="comment">/* Lambda in L-M algorithm                */</span></div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>     <span class="keywordtype">double</span> MAXLAMBDA = 10e40;        <span class="comment">/* Parameter to control the graceful exit</span></div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span> <span class="comment">                    if steepest descent unexpectedly fails */</span></div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>     <span class="keywordtype">double</span> chi_sq    = 0.0;          <span class="comment">/* Current  chi^2                         */</span></div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>     <span class="keywordtype">int</span> count        = 0;            <span class="comment">/* Number of successive small improvements</span></div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span> <span class="comment">                    in chi^2 */</span></div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>     <span class="keywordtype">int</span> iterations   = 0;</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>    </div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>     cpl_matrix *alpha  = NULL;       <span class="comment">/* The MxM ~curvature matrix used in L-M  */</span></div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>     cpl_matrix *beta   = NULL;       <span class="comment">/* Mx1 matrix = -.5 grad(chi^2)           */</span></div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>     <span class="keywordtype">double</span> *a_data     = NULL;       <span class="comment">/* Parameters, a                          */</span></div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>     <span class="keywordtype">double</span> *a_da       = NULL;       <span class="comment">/* Candidate position a+da                */</span></div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>     <span class="keywordtype">double</span> *part       = NULL;       <span class="comment">/* The partial derivatives df/da          */</span></div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>     <span class="keywordtype">int</span> *ia_local      = NULL;       <span class="comment">/* non-NULL version of ia                 */</span></div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>    </div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>     <span class="comment">/* If covariance computation is requested, then either</span></div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> <span class="comment">     * return the covariance matrix or return NULL.</span></div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     <span class="keywordflow">if</span> (covariance != NULL) *covariance = NULL;</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> </div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>     <span class="comment">/* Validate input */</span></div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>     cpl_ensure_code(x       != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>     cpl_ensure_code(sigma_x == NULL, CPL_ERROR_UNSUPPORTED_MODE);</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>     cpl_ensure_code(y       != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>     cpl_ensure_code(a       != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>     <span class="comment">/* ia may be NULL */</span></div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>     cpl_ensure_code(f       != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>     cpl_ensure_code(dfda    != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> </div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>     <span class="comment">/* Chi^2 and covariance computations require sigmas to be known */</span></div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>     cpl_ensure_code( sigma_y != NULL || (red_chisq == NULL && covariance == NULL),</div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>              CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span> </div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>     D = cpl_matrix_get_ncol(x);</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>     N = cpl_matrix_get_nrow(x);</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>     M = cpl_vector_get_size(a);</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>     cpl_ensure_code(N > 0 && D > 0 && M > 0, CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> </div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>     cpl_ensure_code( cpl_vector_get_size(y) == N,</div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>              CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> </div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>     x_data = cpl_matrix_get_data_const(x);</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>     y_data = cpl_vector_get_data_const(y);</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>     a_data = cpl_vector_get_data(a);</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span> </div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>     <span class="keywordflow">if</span> (sigma_y != NULL)</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>     {</div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>         cpl_ensure_code( cpl_vector_get_size(sigma_y) == N,</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>                  CPL_ERROR_INCOMPATIBLE_INPUT);</div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>         <span class="comment">/* Sigmas must be positive */</span></div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>         cpl_ensure_code( cpl_vector_get_min (sigma_y) > 0,</div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>                  CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>         sigma_data = cpl_vector_get_data_const(sigma_y);</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>     }</div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>     ia_local = cpl_malloc(M * <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>     cpl_ensure_code(ia_local != NULL, CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> </div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>     <span class="comment">/* Count non-constant fit parameters, copy ia */</span></div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>     <span class="keywordflow">if</span> (ia != NULL)</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>     {</div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> </div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>         Mfit = 0;</div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>         <span class="keywordflow">for</span> (i = 0; i < M; i++)</div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>         {</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>             ia_local[i] = ia[i];</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> </div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>             <span class="keywordflow">if</span> (ia[i] != 0) </div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>             {</div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>                 Mfit += 1;</div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>             }</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>         }</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>         </div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>         <span class="keywordflow">if</span> (! (Mfit > 0))</div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>         {</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>             cpl_free(ia_local);</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>             cpl_ensure_code( CPL_FALSE,</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>                      CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>         }</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>     }</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>     {</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>         <span class="comment">/* All parameters participate */</span></div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>         </div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>         Mfit = M;</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>         </div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>         <span class="keywordflow">for</span> (i = 0; i < M; i++)</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>         {</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>             ia_local[i] = 1;</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>         }</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>     }</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span> </div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>     <span class="comment">/* To compute reduced chi^2, we need N > Mfit */</span></div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>     <span class="keywordflow">if</span> (! ( red_chisq == NULL || N > Mfit ) )</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>     {</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>         cpl_free(ia_local);</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>         cpl_ensure_code(</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>         CPL_FALSE,</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>         CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>     }</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span> </div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>     <span class="comment">/* Create alpha, beta, a_da, part  work space */</span></div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>     alpha = cpl_matrix_new(Mfit, Mfit);</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>     <span class="keywordflow">if</span> (alpha == NULL)</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>     {</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>         cpl_free(ia_local);</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>         cpl_ensure_code(</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>         CPL_FALSE,</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>         CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>     }</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>    </div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>     beta = cpl_matrix_new(Mfit, 1);</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>     <span class="keywordflow">if</span> (beta == NULL)</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>     {</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>         cpl_free(ia_local);</div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>         cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>         cpl_ensure_code(</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>         CPL_FALSE,</div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>         CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>     }</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span> </div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>     a_da = cpl_malloc(M * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>     <span class="keywordflow">if</span> (a_da == NULL)</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>     {</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>         cpl_free(ia_local);</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>         cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>         cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>         cpl_ensure_code(</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>         CPL_FALSE,</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>         CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>     }</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> </div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>     part = cpl_malloc(M * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>     <span class="keywordflow">if</span> (part == NULL)</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>     {</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>         cpl_free(ia_local);</div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>         cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>         cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>         cpl_free(a_da);</div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>         cpl_ensure_code(</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>         CPL_FALSE,</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>         CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>     }</div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> </div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>     <span class="comment">/* Initialize loop variables */</span></div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>     lambda = 0.001;</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>     count = 0;</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>     iterations = 0;</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>     <span class="keywordflow">if</span>( (chi_sq = get_chisq(N, D, f, a_data, x_data, y_data, sigma_data)) < 0)</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>     {</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>         cpl_free(ia_local);</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>         cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>         cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>         cpl_free(a_da);</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>         cpl_free(part);</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>         cpl_ensure_code(</div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>         CPL_FALSE,</div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>         cpl_error_get_code());</div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>     }</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> </div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> <span class="preprocessor">#if DEBUG_LM    </span></div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span> <span class="preprocessor"></span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Initial chi^2 = %f"</span>, chi_sq); </div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>      {<span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>      <span class="keywordflow">for</span> (i = 0; i < M; i++) </div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>      {</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>          <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Initial a[%d] = %e"</span>, i, a_data[i]); </div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>      }</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>      }</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>     <span class="comment">/* Iterate until chi^2 didn't improve substantially many (say, 5)</span></div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span> <span class="comment">       times in a row */</span></div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>     <span class="keywordflow">while</span> (count < 5 && lambda < MAXLAMBDA && iterations < UVES_FIT_MAXITER)</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>     {</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>         <span class="comment">/* In each iteration lambda increases, or chi^2 decreases or</span></div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span> <span class="comment">           count increases. Because chi^2 is bounded from below</span></div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span> <span class="comment">           (and lambda and count from above), the loop will terminate */</span></div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span> </div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>         <span class="keywordtype">double</span> chi_sq_candidate = 0.0;</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>         <span class="keywordtype">int</span> returncode = 0;</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span> </div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>         <span class="comment">/* Get candidate position in parameter space = a+da,</span></div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span> <span class="comment">         * where  alpha * da = beta .</span></div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span> <span class="comment">         * Increase lambda until alpha is non-singular</span></div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>        </div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>         <span class="keywordflow">while</span>( (returncode = get_candidate(a_data, ia_local,</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>                            M, N, D,</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>                            lambda, f, dfda,</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>                            x_data, y_data, sigma_data,</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>                            part, alpha, beta, a_da)</div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>                ) != 0</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>            && cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>            && lambda < MAXLAMBDA)</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>         {</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span> <span class="preprocessor">#if DEBUG_LM    </span></div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Singular matrix. lambda = %e"</span>, lambda);</div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span> <span class="preprocessor"></span>            cpl_error_reset();</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>             lambda *= 9.0;</div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>         }</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>        </div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>         <span class="comment">/* Set error if lambda diverged */</span></div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>         <span class="keywordflow">if</span> ( !( lambda < MAXLAMBDA ) )</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>         {</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>             cpl_free(ia_local);</div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>             cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>             cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>             cpl_free(a_da);</div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>             cpl_free(part);</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>             cpl_ensure_code(</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>             CPL_FALSE,</div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>             CPL_ERROR_CONTINUE);</div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>         }</div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>        </div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>         <span class="keywordflow">if</span> (returncode != 0)</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>         {</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>             cpl_free(ia_local);</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>             cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>             cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>             cpl_free(a_da);</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>             cpl_free(part);</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>             cpl_ensure_code(</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>             CPL_FALSE,</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>             cpl_error_get_code());</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>         }</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span> </div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>         <span class="comment">/* Get chi^2(a+da) */</span></div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>         <span class="keywordflow">if</span> ((chi_sq_candidate = get_chisq(N, D, f, a_da,</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>                           x_data, y_data, sigma_data)) < 0)</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>         {</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>             cpl_free(ia_local);</div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>             cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>             cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>             cpl_free(a_da);</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>             cpl_free(part);</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>             cpl_ensure_code(</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>             CPL_FALSE,</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>             cpl_error_get_code());</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>         }</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span> </div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>         <span class="keywordflow">if</span> (chi_sq_candidate > 1.000001 * chi_sq)</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>         {</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>             <span class="comment">/* Move towards steepest descent */</span></div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span> <span class="preprocessor">#if DEBUG_LM</span></div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Chi^2 = %f  Candidate = %f  Lambda = %e"</span>,</div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>                chi_sq, chi_sq_candidate, lambda); </div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span> <span class="preprocessor">#endif            </span></div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span> <span class="preprocessor"></span>            lambda *= 9.0;</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>         }</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>         {</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span> <span class="preprocessor">#if DEBUG_LM</span></div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Chi^2 = %f  Candidate = %f* Lambda = %e count = %d"</span>,</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>                chi_sq, chi_sq_candidate, lambda, count);</div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span> <span class="preprocessor"></span>       </div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>             <span class="comment">/* Move towards Newton's algorithm */</span></div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>             lambda /= 10.0;</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> </div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>             <span class="comment">/* Count the number of successive improvements in chi^2 of</span></div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span> <span class="comment">               less than 0.01 relative */</span></div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>             <span class="keywordflow">if</span> ( chi_sq == 0 ||</div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>              (chi_sq - chi_sq_candidate)/chi_sq < .01)</div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>             {</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>                 count += 1;</div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>             }</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>             {</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>                 <span class="comment">/* Chi^2 improved by a significant amount,</span></div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span> <span class="comment">                   reset counter */</span></div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>                 count = 0;</div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>             }</div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span> </div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>             <span class="keywordflow">if</span> (chi_sq_candidate < chi_sq)</div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>             {</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>                 <span class="comment">/* chi^2 improved, update a and chi^2 */</span></div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>                 <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>                 <span class="keywordflow">for</span> (i = 0; i < M; i++) </div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>                 {</div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>                     a_data[i] = a_da[i];</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span> <span class="preprocessor">#if DEBUG_LM</span></div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span> <span class="preprocessor"></span>                    <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"-> a[%d] = %e"</span>, i, a_da[i]); </div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> <span class="preprocessor"></span>                }</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>                 chi_sq = chi_sq_candidate;</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>             }</div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>         }</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>         iterations++;</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>     }</div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span> </div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>     <span class="comment">/* Set error if we didn't converge */</span></div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>     <span class="keywordflow">if</span> ( !( lambda < MAXLAMBDA && iterations < UVES_FIT_MAXITER ) )</div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>     {</div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> <span class="preprocessor">#if DEBUG_LM</span></div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> <span class="preprocessor"></span>        <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Failed to converge, lambda=%f iterations=%d"</span>,</div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>                lambda, iterations);</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="preprocessor"></span>        cpl_free(ia_local);</div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>         cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>         cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>         cpl_free(a_da);</div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>         cpl_free(part);</div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>         cpl_ensure_code(</div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>         CPL_FALSE,</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>         CPL_ERROR_CONTINUE);</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>     }</div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span> </div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>     <span class="comment">/* Compute mse if requested */</span></div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>     <span class="keywordflow">if</span> (mse != NULL)</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>     {</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span> </div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>         *mse = 0.0;</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>        </div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>         <span class="keywordflow">for</span>(i = 0; i < N; i++)</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>         {</div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>             <span class="keywordtype">double</span> fx_i = 0.0;</div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>             <span class="keywordtype">double</span> residual = 0.0;</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>            </div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>             <span class="comment">/* Evaluate f(x_i) at the best fit parameters */</span></div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>             <span class="keywordflow">if</span>( f(&(x_data[i*D]),</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>               a_data,</div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>               &fx_i) != 0)</div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>             {</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>                 cpl_free(ia_local);</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>                 cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>                 cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>                 cpl_free(a_da);</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>                 cpl_free(part);</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>                 cpl_ensure_code(</div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>                 CPL_FALSE,</div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>                 CPL_ERROR_ILLEGAL_INPUT);</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>             }</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span> </div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>             residual = y_data[i] - fx_i;</div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>             *mse += residual * residual;</div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>         }</div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>         *mse /= N;</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>     }</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span> </div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>     <span class="comment">/* Compute reduced chi^2 if requested */</span></div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>     <span class="keywordflow">if</span> (red_chisq != NULL)</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>     {</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>         <span class="comment">/* We already know the optimal chi^2 (and that N > Mfit)*/</span></div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>         *red_chisq = chi_sq / (N-Mfit);</div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>     }</div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span> </div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>     <span class="comment">/* Compute covariance matrix if requested</span></div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span> <span class="comment">     * cov = alpha(lambda=0)^-1              </span></div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>     <span class="keywordflow">if</span> (covariance != NULL)</div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>     {</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>         cpl_matrix *cov;</div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span> </div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>         <span class="keywordflow">if</span>( get_candidate(a_data, ia_local, </div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>                   M, N, D, 0.0, f, dfda, </div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>                   x_data, y_data, sigma_data,</div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>                   part, alpha, beta, a_da)</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>         != 0)</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>         {</div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>             cpl_free(ia_local);</div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>             cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>             cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>             cpl_free(a_da);</div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>             cpl_free(part);</div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>             cpl_ensure_code(</div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>             CPL_FALSE,</div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>             cpl_error_get_code());</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>         }</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>        </div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>         cov = cpl_matrix_invert_create(alpha);</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>         <span class="keywordflow">if</span> (cov == NULL)</div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>         {</div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>             cpl_free(ia_local);</div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>             cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>             cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>             cpl_free(a_da);</div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>             cpl_free(part);</div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>             cpl_ensure_code(</div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>             CPL_FALSE,</div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>             cpl_error_get_code());</div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>         }</div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>        </div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>         <span class="comment">/* Make sure that variances are positive */</span></div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>         {</div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>         <span class="keywordflow">for</span> (i = 0; i < Mfit; i++)</div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>             {</div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>             <span class="keywordflow">if</span> ( !(cpl_matrix_get(cov, i, i) > 0) )</div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>                 {</div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>                 cpl_free(ia_local);</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>                 cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>                 cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>                 cpl_free(a_da);</div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>                 cpl_free(part);</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>                 cpl_matrix_delete(cov);</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>                 *covariance = NULL;</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>                 cpl_ensure_code(</div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>                     CPL_FALSE,</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>                     CPL_ERROR_SINGULAR_MATRIX);</div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>                 }</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>             }</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>         }</div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span> </div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>         <span class="comment">/* Expand covariance matrix from Mfit x Mfit</span></div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span> <span class="comment">           to M x M. Set rows/columns corresponding to fixed</span></div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span> <span class="comment">           parameters to zero */</span></div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span> </div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>         *covariance = cpl_matrix_new(M, M);</div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>         <span class="keywordflow">if</span> (*covariance == NULL)</div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>         {</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>             cpl_free(ia_local);</div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>             cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>             cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>             cpl_free(a_da);</div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>             cpl_free(part);</div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>             cpl_matrix_delete(cov);</div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>             cpl_ensure_code(</div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>             CPL_FALSE,</div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>             CPL_ERROR_ILLEGAL_OUTPUT);</div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>         }</div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span> </div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>         {</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>         <span class="keywordtype">int</span> j, jmfit;</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span> </div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>         <span class="keywordflow">for</span> (j = 0, jmfit = 0; j < M; j++)</div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>             <span class="keywordflow">if</span> (ia_local[j] != 0)</div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>             {</div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>                 <span class="keywordtype">int</span> i, imfit;</div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span> </div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>                 <span class="keywordflow">for</span> (i = 0, imfit = 0; i < M; i++)</div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>                 <span class="keywordflow">if</span> (ia_local[i] != 0)</div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>                     {</div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>                     cpl_matrix_set(*covariance, i, j,</div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>                                cpl_matrix_get(</div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>                                cov, imfit, jmfit));</div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>                     imfit += 1;</div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>                     }</div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>                 </div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>                 assert( imfit == Mfit );</div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span> </div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>                 jmfit += 1;</div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>             }</div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>         </div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>         assert( jmfit == Mfit );</div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>         }</div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span> </div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>         cpl_matrix_delete(cov);</div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>     }</div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>     </div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>     cpl_free(ia_local);</div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>     cpl_matrix_delete(alpha);</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>     cpl_matrix_delete(beta);</div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>     cpl_free(a_da);</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>     cpl_free(part);</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>    </div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span> }</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span> </div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span> cpl_error_code</div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span> uves_cast_image(cpl_image **image, cpl_type to_type)</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span> {</div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>     cpl_image *temp = NULL;</div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>     </div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>     assure( image != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span> </div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>     temp = *image;</div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>     </div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *image = cpl_image_cast(temp, to_type), <span class="stringliteral">"Couldn't convert image to %s"</span>, </div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>        <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(to_type));</div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>     </div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>   cleanup:</div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>     uves_free_image(&temp);</div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>     <span class="keywordflow">return</span> cpl_error_get_code();    </div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span> }</div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span> </div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span> </div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span> <span class="comment">/*-----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span> <span class="comment">/*-----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span> cpl_error_code</div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span> uves_crop_image(cpl_image **image, <span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y_1, <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y2)</div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span> {</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>     cpl_image *temp = NULL;</div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>     </div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>     assure( image != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null image"</span>);</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span> </div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>     temp = *image;</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>     </div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *image = cpl_image_extract(temp, x1, y_1, x2, y2), </div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>        <span class="stringliteral">"Could not extract image"</span>);</div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>     </div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>   cleanup:</div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>     uves_free_image(&temp);</div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>     <span class="keywordflow">return</span> cpl_error_get_code();    </div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span> }</div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span> </div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span> cpl_error_code</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span> uves_get_property_value(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keyword">const</span> <span class="keywordtype">char</span> *keyword, </div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>             cpl_type keywordtype, <span class="keywordtype">void</span> *result)</div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span> {</div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>     cpl_type t;</div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>     </div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>     assure( plist != NULL  , CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null property list"</span>);</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>     assure( keyword != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null keyword"</span>);</div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>     </div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>     <span class="comment">/* Check for existence... */</span></div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>     assure( <a class="code" href="group__uves__propertylist.html#ga0fce53213cd728ed91e048737e61371b" title="Check whether a property is present in a property list.">uves_propertylist_contains</a>(plist, keyword), CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>         <span class="stringliteral">"Keyword %s does not exist"</span>, keyword );</div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>     <span class="comment">/* ...and type of keyword */</span></div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( t = <a class="code" href="group__uves__propertylist.html#ga2ee26ca559adc30a12a3e4dcf003b52d" title="Get the the type of a property list entry.">uves_propertylist_get_type</a>(plist, keyword) ,</div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>        <span class="stringliteral">"Could not read type of keyword '%s'"</span>, keyword );</div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>     assure(t == keywordtype , CPL_ERROR_TYPE_MISMATCH, </div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>        <span class="stringliteral">"Keyword '%s' has wrong type (%s). %s expected"</span>,</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>        keyword, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(t), <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(keywordtype));</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>     </div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>     <span class="comment">/* Read the keyword */</span></div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>     <span class="keywordflow">switch</span> (keywordtype)</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>     {</div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>     <span class="keywordflow">case</span> CPL_TYPE_INT   : </div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *((      <span class="keywordtype">int</span>    *)result) =</div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>         <a class="code" href="group__uves__propertylist.html#ga34a6adea62f635e9b75cb4b5f614c785" title="Get the integer value of the given property list entry.">uves_propertylist_get_int</a>(plist, keyword),</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>         <span class="stringliteral">"Could not get (integer) value of %s"</span>, keyword );</div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>     <span class="keywordflow">case</span> CPL_TYPE_BOOL  : </div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *((      <span class="keywordtype">bool</span>   *)result) =</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>            <a class="code" href="group__uves__propertylist.html#ga1915e9a72e6f0580cadb0736ea43d6dc" title="Get the boolean value of the given property list entry.">uves_propertylist_get_bool</a>(plist, keyword), </div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>            <span class="stringliteral">"Could not get (boolean) value of %s"</span>, keyword ); </div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *((      <span class="keywordtype">double</span> *)result) = </div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>            <a class="code" href="group__uves__propertylist.html#ga076b98ab4044b08ea0804e03e92ae681" title="Get the double value of the given property list entry.">uves_propertylist_get_double</a>(plist, keyword), </div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>            <span class="stringliteral">"Could not get (double) value of %s"</span> , keyword );</div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING: </div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *((<span class="keyword">const</span> <span class="keywordtype">char</span> * *)result) = </div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>            <a class="code" href="group__uves__propertylist.html#ga0fbe9d1642f9b6a884565d0cf47edb93" title="Get the string value of the given property list entry.">uves_propertylist_get_string</a>(plist, keyword), </div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>            <span class="stringliteral">"Could not get (string) value of %s"</span> , keyword ); </div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>         assure( <span class="keyword">false</span>, CPL_ERROR_INVALID_TYPE, <span class="stringliteral">"Unknown type"</span>);</div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>     }</div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>     </div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>   cleanup:</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span> }</div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span> </div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span> </div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span> </div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span> uves_find_frame(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> **wanted, <span class="keywordtype">int</span> N, <span class="keywordtype">int</span> *found,</div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>         <span class="keyword">const</span> cpl_frame **<a class="code" href="structframe.html">frame</a>)</div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span> {</div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *filename = NULL;  <span class="comment">/* Return NULL in case of error */</span></div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>     <span class="keyword">const</span> cpl_frame *f = NULL;</div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>     </div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>     <span class="comment">/* Return well-defined pointers in case of error */</span></div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>     *found = 0;</div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>     <span class="keywordflow">if</span> (frame != NULL)</div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>     {</div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>         *frame = NULL;</div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>     }</div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span> </div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>     <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>     {</div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( f = cpl_frameset_find_const(frames, wanted[i]), </div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>            <span class="stringliteral">"Could not search through frame set"</span>);</div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>         <span class="keywordflow">if</span> (f != NULL) </div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>         {</div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( filename = cpl_frame_get_filename(f), </div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>                <span class="stringliteral">"Could not read frame filename"</span>);</div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>             *found = i;</div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>             <span class="keywordflow">if</span> (frame != NULL)</div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>             {</div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>                 *frame = f;</div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>             }</div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>             <span class="comment">/* break */</span></div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>             i = N;</div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>         }</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>     }</div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>     </div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>     <span class="comment">/* Set an error if a matching frame wasn't found */</span></div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>     assure(filename != NULL, CPL_ERROR_DATA_NOT_FOUND, <span class="stringliteral">"No such frame in frame set"</span>);</div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span> </div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>   cleanup:</div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>     <span class="keywordflow">return</span> filename;</div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span> }</div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span> </div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span> </div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span> cpl_size</div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span> uves_get_nextensions(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename)</div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span> {</div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>     cpl_size result = 0;</div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>     cpl_frame *f = NULL;</div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>     </div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>     <span class="comment">/* CPL only supports reading the number of extensions of a FITS</span></div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span> <span class="comment">       file if this is in a frame, so create a frame for the specified file */</span></div>
-<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>       </div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( f = cpl_frame_new(),</div>
-<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>         cpl_frame_set_filename(f, filename)),</div>
-<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>       <span class="stringliteral">"Could not create frame"</span>);</div>
-<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span> </div>
-<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( result = cpl_frame_get_nextensions(f),</div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>        <span class="stringliteral">"Error reading number of extensions of file '%s'"</span>, filename);</div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>   cleanup:</div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>     cpl_frame_delete(f);</div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span> }</div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span> </div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span> cpl_error_code</div>
-<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span> uves_get_parameter(<span class="keyword">const</span> cpl_parameterlist *parameters, <span class="keyword">const</span> <span class="keywordtype">char</span> *context,</div>
-<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, cpl_type type, </div>
-<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>            <span class="keywordtype">void</span> *value)</div>
-<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span> {</div>
-<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>     <span class="keywordtype">char</span> *fullname = NULL;</div>
-<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>     <span class="keyword">const</span> cpl_parameter *p = NULL;</div>
-<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>     </div>
-<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( parameters != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>     <span class="comment">/* 'context' may be NULL */</span></div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( recipe_id != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( name != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( value != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span> </div>
-<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>     <span class="keywordflow">if</span> (context != NULL)</div>
-<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>     {</div>
-<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( fullname = uves_sprintf(<span class="stringliteral">"%s.%s.%s"</span>, context, recipe_id, name),</div>
-<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>            <span class="stringliteral">"Error getting full parameter name"</span>);</div>
-<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>     }</div>
-<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>     {</div>
-<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( fullname = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, recipe_id, name),</div>
-<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>            <span class="stringliteral">"Error getting full parameter name"</span>);</div>
-<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>     }</div>
-<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span> </div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>     <span class="comment">/* Const cast */</span></div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( p = cpl_parameterlist_find_const(parameters, fullname), </div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>        <span class="stringliteral">"Error searching for parameter '%s'"</span>, fullname);</div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>     assure( p != NULL, CPL_ERROR_DATA_NOT_FOUND, </div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>         <span class="stringliteral">"No parameter '%s' in parameter list"</span>, fullname);</div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>     </div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>     <span class="comment">/* Check that parameter has the correct type */</span></div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>     {</div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>     cpl_type partype;</div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(  partype = cpl_parameter_get_type(p), </div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>         <span class="stringliteral">"Could not read type of parameter '%s'"</span>, fullname);</div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>     assure( partype == type, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>         <span class="stringliteral">"Parameter '%s' has type %s. Expected type was %s"</span>, </div>
-<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>         fullname,</div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(partype), <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));    </div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>     }</div>
-<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span> </div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>     <span class="comment">/* Read the parameter */</span></div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>     <span class="keywordflow">switch</span>(type)</div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>     {</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *(<span class="keywordtype">int</span> *         )value = </div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>            cpl_parameter_get_int   (p),</div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>            <span class="stringliteral">"Could not read integer parameter '%s'"</span>, fullname);  </div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>     <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *(<span class="keywordtype">bool</span> *        )value = </div>
-<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>            cpl_parameter_get_bool  (p),</div>
-<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>            <span class="stringliteral">"Could not read boolean parameter '%s'"</span>, fullname);  </div>
-<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:    </div>
-<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *(<span class="keywordtype">double</span> *      )value = </div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>            cpl_parameter_get_double(p),</div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>            <span class="stringliteral">"Could not read double parameter '%s'"</span> , fullname );  </div>
-<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *(<span class="keyword">const</span> <span class="keywordtype">char</span> ** )value = </div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>            cpl_parameter_get_string(p),</div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>            <span class="stringliteral">"Could not read string parameter '%s'"</span> , fullname );  </div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>         assure(<span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>            <span class="stringliteral">"Don't know how to read parameter '%s' of type %s"</span>,</div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>            fullname, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>     }</div>
-<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>     </div>
-<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>   cleanup:</div>
-<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>     cpl_free(fullname); fullname = NULL;</div>
-<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span> }</div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span> </div>
-<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span> cpl_error_code</div>
-<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span> uves_set_parameter(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> *context,</div>
-<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>            <span class="keyword">const</span> <span class="keywordtype">char</span> *name, cpl_type type, <span class="keywordtype">void</span> *value)</div>
-<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span> {</div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>     <span class="keywordtype">char</span> *fullname = NULL;</div>
-<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>     cpl_parameter *p = NULL;</div>
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>     </div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( fullname = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, context, name),</div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>        <span class="stringliteral">"Error getting full parameter name"</span>);</div>
-<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span> </div>
-<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>     <span class="comment">/* Const cast */</span></div>
-<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( p = cpl_parameterlist_find(parameters, fullname), </div>
-<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>        <span class="stringliteral">"Error searching for parameter '%s'"</span>, fullname);</div>
-<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>     assure( p != NULL, CPL_ERROR_DATA_NOT_FOUND, </div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>         <span class="stringliteral">"No parameter '%s' in parameter list"</span>, fullname);</div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span> </div>
-<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>     <span class="comment">/* Check that parameter has the correct type */</span></div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>     {</div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>     cpl_type partype;</div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(  partype = cpl_parameter_get_type(p), </div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>         <span class="stringliteral">"Could not read type of parameter '%s'"</span>, fullname);</div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>     assure( partype == type, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>         <span class="stringliteral">"Parameter '%s' has type %s. Expected type was %s"</span>, </div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>         fullname, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(partype),</div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));    </div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>     }</div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span> </div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>     <span class="comment">/* Set the parameter */</span></div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>     <span class="keywordflow">switch</span>(type)</div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>     {</div>
-<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_parameter_set_int   (p, *((<span class="keywordtype">int</span> *)    value)), </div>
-<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>            <span class="stringliteral">"Could not set integer parameter '%s'"</span>, fullname);  </div>
-<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>     <span class="keywordflow">case</span> CPL_TYPE_BOOL:    </div>
-<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_parameter_set_bool  (p, *((<span class="keywordtype">bool</span> *)    value)), </div>
-<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>            <span class="stringliteral">"Could not set boolean parameter '%s'"</span>, fullname);</div>
-<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_parameter_set_double(p, *((<span class="keywordtype">double</span> *) value)), </div>
-<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>            <span class="stringliteral">"Could not set double parameter '%s'"</span> , fullname);</div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_parameter_set_string(p, *((<span class="keywordtype">char</span> **)  value)),</div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>            <span class="stringliteral">"Could not set string parameter '%s'"</span> , fullname);  </div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>         assure(<span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>            <span class="stringliteral">"Don't know how to set parameter of type %s"</span>, </div>
-<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>            <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>     }</div>
-<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>     </div>
-<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>   cleanup:</div>
-<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>     cpl_free(fullname); fullname = NULL;</div>
-<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span> }</div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span> </div>
-<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span> </div>
-<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span> cpl_error_code</div>
-<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span> uves_set_parameter_default(cpl_parameterlist *parameters, <span class="keyword">const</span> <span class="keywordtype">char</span> *context,</div>
-<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *parname, </div>
-<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>                cpl_type type, <span class="keywordtype">void</span> *value)</div>
-<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span> {</div>
-<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *full_name = NULL;</div>
-<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>     cpl_parameter *p = NULL;</div>
-<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>     cpl_type partype;</div>
-<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span> </div>
-<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>     <span class="keywordflow">if</span> (context != NULL)</div>
-<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>     {</div>
-<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>         full_name = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, context, parname);</div>
-<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>     }</div>
-<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>     {</div>
-<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>         full_name = uves_sprintf(<span class="stringliteral">"%s"</span>, parname);</div>
-<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span>     }</div>
-<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span> </div>
-<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>     <span class="keywordflow">if</span> (full_name == NULL)</div>
-<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>     {</div>
-<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>         <span class="keywordflow">return</span> CPL_ERROR_ILLEGAL_OUTPUT;</div>
-<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>     }</div>
-<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span> </div>
-<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span> </div>
-<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>     <span class="keywordflow">if</span> ( (p = cpl_parameterlist_find(parameters, full_name)) == NULL)</div>
-<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>     {</div>
-<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>         <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Missing parameter: '%s'"</span>, full_name);</div>
-<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span> </div>
-<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>         uves_free_string_const(&full_name);</div>
-<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>         <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>         <span class="keywordflow">else</span> <span class="keywordflow">return</span> CPL_ERROR_DATA_NOT_FOUND;</div>
-<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>     }</div>
-<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>     </div>
-<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>     partype = cpl_parameter_get_type(p);</div>
-<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span>     </div>
-<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>     <span class="keywordflow">if</span> (partype != type)</div>
-<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>     {</div>
-<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>         <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Parameter '%s' has type %s. Expected type was %s"</span>, </div>
-<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>               full_name, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(partype), </div>
-<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span>               <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span> </div>
-<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>         uves_free_string_const(&full_name);</div>
-<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>         <span class="keywordflow">return</span> CPL_ERROR_TYPE_MISMATCH;</div>
-<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>     }</div>
-<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span> </div>
-<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>     <span class="keywordflow">switch</span>(type)</div>
-<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>     {</div>
-<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>         cpl_parameter_set_default_int   (p, *((<span class="keywordtype">int</span> *)    value)); </div>
-<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>     <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>         cpl_parameter_set_default_bool  (p, *((<span class="keywordtype">bool</span> *)   value)); </div>
-<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>         cpl_parameter_set_default_double(p, *((<span class="keywordtype">double</span> *) value)); </div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>         cpl_parameter_set_default_string(p, *((<span class="keywordtype">char</span> **)  value)); </div>
-<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>         <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Unknown type: %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span> </div>
-<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>         uves_free_string_const(&full_name);</div>
-<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>         <span class="keywordflow">return</span> CPL_ERROR_INVALID_TYPE;</div>
-<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>     }</div>
-<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span> </div>
-<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>     {</div>
-<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>         <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Error changing value of parameter '%s'"</span>, </div>
-<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>                full_name);</div>
-<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span> </div>
-<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>         uves_free_string_const(&full_name);</div>
-<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>         <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>     }</div>
-<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span> </div>
-<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span> </div>
-<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>     uves_free_string_const(&full_name);</div>
-<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>     <span class="keywordflow">return</span> CPL_ERROR_NONE;</div>
-<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span> }</div>
-<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span> </div>
-<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span> </div>
-<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span> <span class="keywordtype">void</span> </div>
-<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span> uves_raise_to_median_frac(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column, <span class="keywordtype">double</span> fraction)</div>
-<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span> {</div>
-<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>     <span class="keywordtype">int</span> i = 0;</div>
-<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>     <span class="keywordtype">double</span> threshold;</div>
-<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span> </div>
-<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>(t != NULL, CPL_ERROR_NULL_INPUT);</div>
-<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>     assure(cpl_table_has_column(t, column), CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>        <span class="stringliteral">"No such column: %s"</span>, column);</div>
-<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span> </div>
-<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>     assure(cpl_table_get_column_type(t, column) == CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>        CPL_ERROR_UNSUPPORTED_MODE, <span class="stringliteral">"Column %s has type %s. %s expected"</span>,</div>
-<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>        column,</div>
-<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>        <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_table_get_column_type(t, column)),</div>
-<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>        <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(CPL_TYPE_DOUBLE));</div>
-<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span> </div>
-<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span> </div>
-<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span>     threshold = fraction * cpl_table_get_column_median(t, column);</div>
-<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(t); i++)</div>
-<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>     {</div>
-<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>         <span class="keywordflow">if</span> (cpl_table_get_double(t, column, i, NULL) < threshold)</div>
-<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>         {</div>
-<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>             cpl_table_set_double(t, column, i, threshold);</div>
-<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>         }</div>
-<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>     }</div>
-<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span> </div>
-<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>   cleanup:</div>
-<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span> }</div>
-<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span> </div>
-<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span> </div>
-<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span> </div>
-<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span> uves_select_table_rows(cpl_table *t,  <span class="keyword">const</span> <span class="keywordtype">char</span> *column, </div>
-<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>                cpl_table_select_operator <span class="keyword">operator</span>, <span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span> {</div>
-<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>     <span class="keywordtype">int</span> result = 0;</div>
-<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>     cpl_type type;</div>
-<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>     </div>
-<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>     assure( t != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table"</span>);</div>
-<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>     assure( cpl_table_has_column(t, column), CPL_ERROR_INCOMPATIBLE_INPUT, </div>
-<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>         <span class="stringliteral">"No such column: %s"</span>, column);</div>
-<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span> </div>
-<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>     type = cpl_table_get_column_type(t, column);</div>
-<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span> </div>
-<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>     assure( type == CPL_TYPE_DOUBLE || type == CPL_TYPE_FLOAT ||</div>
-<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>         type == CPL_TYPE_INT, CPL_ERROR_INVALID_TYPE,</div>
-<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>         <span class="stringliteral">"Column '%s' must be double or int. %s found"</span>, column, </div>
-<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(type));</div>
-<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span> </div>
-<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_select_all(t), <span class="stringliteral">"Error selecting rows"</span>);</div>
-<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>     </div>
-<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>     <span class="keywordflow">if</span>      (type == CPL_TYPE_DOUBLE)</div>
-<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>     {</div>
-<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>         result = cpl_table_and_selected_double(t, column, <span class="keyword">operator</span>, value);</div>
-<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>     }</div>
-<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (type == CPL_TYPE_FLOAT)</div>
-<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>     {</div>
-<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>         result = cpl_table_and_selected_float(t, column, <span class="keyword">operator</span>, value);</div>
-<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>     }</div>
-<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (type == CPL_TYPE_INT)</div>
-<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>     {</div>
-<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>         result = cpl_table_and_selected_int(t, column, <span class="keyword">operator</span>, </div>
-<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>                                                 uves_round_double(value));</div>
-<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>     }</div>
-<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>     <span class="keywordflow">else</span> { <span class="comment">/*impossible*/</span> <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(<span class="keyword">false</span>, <span class="stringliteral">""</span>); }</div>
-<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>     </div>
-<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>   cleanup:</div>
-<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span> </div>
-<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span> }</div>
-<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span> </div>
-<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span> uves_extract_table_rows_local(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column,</div>
-<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>                   cpl_table_select_operator <span class="keyword">operator</span>, <span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span> {</div>
-<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>     <span class="keywordtype">int</span> result = 0;</div>
-<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>     </div>
-<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>     assure( t != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table"</span>);</div>
-<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>     assure( cpl_table_has_column(t, column), CPL_ERROR_INCOMPATIBLE_INPUT, </div>
-<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>         <span class="stringliteral">"No such column: %s"</span>, column);</div>
-<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span> </div>
-<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( result = uves_select_table_rows(t, column, <span class="keyword">operator</span>, value),</div>
-<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>        <span class="stringliteral">"Error selecting rows"</span>);</div>
-<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span> </div>
-<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_not_selected(t), <span class="stringliteral">"Error selecting rows"</span>);</div>
-<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span> </div>
-<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_erase_selected(t), <span class="stringliteral">"Error deleting rows"</span>);</div>
-<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span> </div>
-<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>   cleanup:</div>
-<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span> }</div>
-<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span> </div>
-<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span> uves_erase_table_rows(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column,</div>
-<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>               cpl_table_select_operator <span class="keyword">operator</span>, <span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span> {</div>
-<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>     <span class="keywordtype">int</span> result = 0;</div>
-<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>     </div>
-<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span>     assure( t != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table"</span>);</div>
-<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>     assure( cpl_table_has_column(t, column), CPL_ERROR_INCOMPATIBLE_INPUT, </div>
-<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>         <span class="stringliteral">"No such column: %s"</span>, column);</div>
-<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span> </div>
-<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( result = uves_select_table_rows(t, column, <span class="keyword">operator</span>, value),</div>
-<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>        <span class="stringliteral">"Error selecting rows"</span>);</div>
-<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span> </div>
-<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_erase_selected(t), <span class="stringliteral">"Error deleting rows"</span>);</div>
-<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span> </div>
-<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>   cleanup:</div>
-<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span> }</div>
-<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span> </div>
-<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span> </div>
-<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span> </div>
-<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span> </div>
-<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span> </div>
-<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span> </div>
-<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span> <span class="keywordtype">void</span> uves_propertylist_append_property(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist, <span class="keyword">const</span> cpl_property *p)</div>
-<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span> {</div>
-<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>     <span class="keywordflow">switch</span>(cpl_property_get_type(p)) {</div>
-<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>     <span class="keywordflow">case</span> CPL_TYPE_CHAR:</div>
-<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span>         uves_propertylist_append_char(plist, cpl_property_get_name(p), cpl_property_get_char(p));</div>
-<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span>     <span class="keywordflow">case</span> CPL_TYPE_BOOL:</div>
-<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span>         uves_propertylist_append_bool(plist, cpl_property_get_name(p), cpl_property_get_bool(p));</div>
-<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>     <span class="keywordflow">case</span> CPL_TYPE_INT:</div>
-<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>         uves_propertylist_append_int(plist, cpl_property_get_name(p), cpl_property_get_int(p));</div>
-<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span>     <span class="keywordflow">case</span> CPL_TYPE_LONG:</div>
-<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span>         uves_propertylist_append_long(plist, cpl_property_get_name(p), cpl_property_get_long(p));</div>
-<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span>     <span class="keywordflow">case</span> CPL_TYPE_FLOAT:</div>
-<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span>         uves_propertylist_append_float(plist, cpl_property_get_name(p), cpl_property_get_float(p));</div>
-<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span>     <span class="keywordflow">case</span> CPL_TYPE_DOUBLE:</div>
-<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span>         uves_propertylist_append_double(plist, cpl_property_get_name(p), cpl_property_get_double(p));</div>
-<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span>     <span class="keywordflow">case</span> CPL_TYPE_STRING:</div>
-<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>         uves_propertylist_append_string(plist, cpl_property_get_name(p), cpl_property_get_string(p));</div>
-<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>     <span class="keywordflow">default</span>:</div>
-<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span>         assure( <span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>                 <span class="stringliteral">"Type is %s"</span>, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_property_get_type(p)));</div>
-<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>         <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span>     }</div>
-<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span>   cleanup:</div>
-<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span> }</div>
-<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span> </div>
-<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span> </div>
-<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span> </div>
-<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span> uves_table_and_selected_invalid(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column)</div>
-<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span> {</div>
-<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>     <span class="keywordflow">if</span> (cpl_table_get_column_type(t, column) != CPL_TYPE_STRING)</div>
-<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>         {</div>
-<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>             <span class="keywordflow">return</span> cpl_table_and_selected_invalid(t, column);</div>
-<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>         }</div>
-<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>         {</div>
-<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>             <span class="keywordtype">int</span> i = 0;</div>
-<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>             <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(t); i++)</div>
-<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>                 {</div>
-<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>                     <span class="keywordflow">if</span> (cpl_table_is_selected(t, i))</div>
-<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>                         {</div>
-<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>                             <span class="keywordflow">if</span> (cpl_table_is_valid(t, column, i))</div>
-<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>                                 {</div>
-<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>                                     cpl_table_unselect_row(t, i);</div>
-<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>                                 }</div>
-<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>                             <span class="comment">/* else keep it selected */</span></div>
-<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>                         }</div>
-<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>                     <span class="comment">/* else unselected, don't change */</span></div>
-<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>                 }</div>
-<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span> </div>
-<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>             <span class="keywordflow">return</span> cpl_table_count_selected(t);</div>
-<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>         }</div>
-<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span> }</div>
-<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span> </div>
-<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>     </div>
-<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span> uves_erase_invalid_table_rows(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column)</div>
-<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span> {</div>
-<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>     <span class="keywordtype">int</span> result = 0;</div>
-<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span> </div>
-<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>     assure( t != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table"</span>);</div>
-<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span> </div>
-<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>     <span class="keywordflow">if</span> (column == NULL)</div>
-<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>     <span class="comment">/* Loop through all columns */</span></div>
-<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>     {</div>
-<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *name;</div>
-<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>         cpl_table *argument = t;</div>
-<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>         result = 0;</div>
-<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>         <span class="keywordflow">while</span> ( (name = cpl_table_get_column_name(argument)) != NULL)</div>
-<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>         {</div>
-<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>             <span class="keywordtype">int</span> n_deleted_rows;</div>
-<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span> </div>
-<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>             argument = NULL;</div>
-<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>             n_deleted_rows = uves_erase_invalid_table_rows(t, name);</div>
-<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span> </div>
-<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>             <span class="keywordflow">if</span> (n_deleted_rows > 0) </div>
-<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>             {</div>
-<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>                 <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"%d rows with invalid '%s' removed"</span>, </div>
-<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>                      n_deleted_rows, name);</div>
-<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>             }</div>
-<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>             result += n_deleted_rows;</div>
-<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>         }</div>
-<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>     }</div>
-<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>     {</div>
-<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>         assure( cpl_table_has_column(t, column), CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>             <span class="stringliteral">"No such column: %s"</span>, column);</div>
-<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>         </div>
-<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_select_all(t),</div>
-<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>             result = uves_table_and_selected_invalid(t, column), <span class="comment">/* workaround here */</span></div>
-<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>             cpl_table_erase_selected(t)),              <span class="comment">/* and here */</span></div>
-<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>                   <span class="stringliteral">"Error deleting rows"</span>);</div>
-<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>     }</div>
-<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>     </div>
-<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>   cleanup:</div>
-<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span> }</div>
-<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span> </div>
-<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span> cpl_table *</div>
-<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span> uves_extract_table_rows(<span class="keyword">const</span> cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column,</div>
-<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>             cpl_table_select_operator <span class="keyword">operator</span>, <span class="keywordtype">double</span> value)</div>
-<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span> {</div>
-<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>     cpl_table *result = NULL;</div>
-<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>     </div>
-<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>     assure( t != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table"</span>);</div>
-<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>     assure( cpl_table_has_column(t, column), CPL_ERROR_INCOMPATIBLE_INPUT,</div>
-<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>         <span class="stringliteral">"No such column: %s"</span>, column);</div>
-<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>     </div>
-<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>     <span class="comment">/* 1. Extract (duplicate) the entire table</span></div>
-<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span> <span class="comment">       2. remove rows *not* satisfying the criterion */</span></div>
-<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( result = cpl_table_duplicate(t),</div>
-<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span> </div>
-<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>         uves_select_table_rows(result, column, <span class="keyword">operator</span>, value),</div>
-<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>         cpl_table_not_selected(result),  <span class="comment">/* Inverses selection */</span></div>
-<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>         </div>
-<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>         cpl_table_erase_selected(result)),</div>
-<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>        </div>
-<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>        <span class="stringliteral">"Error extracting rows"</span>);</div>
-<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span> </div>
-<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_count_selected(result) == cpl_table_get_nrow(result),</div>
-<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>              <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>              cpl_table_count_selected(result), cpl_table_get_nrow(result) );</div>
-<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>     </div>
-<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>   cleanup:</div>
-<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span>     {</div>
-<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>         uves_free_table(&result);</div>
-<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>     }</div>
-<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span> }</div>
-<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span> </div>
-<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span> uves_sort_table_1(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column, <span class="keywordtype">bool</span> reverse)</div>
-<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span> {</div>
-<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist = NULL;</div>
-<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>     </div>
-<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>     assure(t != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table"</span>);</div>
-<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>     assure(cpl_table_has_column(t, column), CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>        <span class="stringliteral">"No column '%s'"</span>, column);</div>
-<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span> </div>
-<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( plist = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>(),</div>
-<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>         uves_propertylist_append_bool(plist, column, reverse)),</div>
-<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>        <span class="stringliteral">"Could not create property list for sorting"</span>);</div>
-<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span> </div>
-<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_table_sort(t, plist), <span class="stringliteral">"Could not sort table"</span>);</div>
-<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span> </div>
-<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>   cleanup:</div>
-<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>     uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span> }</div>
-<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span> </div>
-<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span> uves_sort_table_2(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column1, <span class="keyword">const</span> <span class="keywordtype">char</span> *column2, </div>
-<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>           <span class="keywordtype">bool</span> reverse1, <span class="keywordtype">bool</span> reverse2)</div>
-<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span> {</div>
-<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist = NULL;</div>
-<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>     </div>
-<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>     assure(t != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table"</span>);</div>
-<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>     assure(cpl_table_has_column(t, column1), CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>        <span class="stringliteral">"No column '%s'"</span>, column1);</div>
-<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>     assure(cpl_table_has_column(t, column2), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>        <span class="stringliteral">"No column '%s'"</span>, column2);</div>
-<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span> </div>
-<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( plist = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>(),</div>
-<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>         uves_propertylist_append_bool(plist, column1, reverse1),</div>
-<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>         uves_propertylist_append_bool(plist, column2, reverse2)),</div>
-<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>        <span class="stringliteral">"Could not create property list for sorting"</span>);</div>
-<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_table_sort(t, plist), <span class="stringliteral">"Could not sort table"</span>);</div>
-<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>     </div>
-<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>   cleanup:</div>
-<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>     uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span> }</div>
-<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02571"></a><span class="lineno"> 2571</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02572"></a><span class="lineno"> 2572</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span> uves_sort_table_3(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column1, <span class="keyword">const</span> <span class="keywordtype">char</span> *column2, </div>
-<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *column3,</div>
-<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span>           <span class="keywordtype">bool</span> reverse1, <span class="keywordtype">bool</span> reverse2, <span class="keywordtype">bool</span> reverse3)</div>
-<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span> {</div>
-<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist = NULL;</div>
-<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span>     </div>
-<div class="line"><a name="l02579"></a><span class="lineno"> 2579</span>     assure(t != NULL, CPL_ERROR_NULL_INPUT, <span class="stringliteral">"Null table"</span>);</div>
-<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>     assure(cpl_table_has_column(t, column1), CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>        <span class="stringliteral">"No column '%s'"</span>, column1);</div>
-<div class="line"><a name="l02582"></a><span class="lineno"> 2582</span>     assure(cpl_table_has_column(t, column2), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02583"></a><span class="lineno"> 2583</span>        <span class="stringliteral">"No column '%s'"</span>, column2);</div>
-<div class="line"><a name="l02584"></a><span class="lineno"> 2584</span>     assure(cpl_table_has_column(t, column3), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span>        <span class="stringliteral">"No column '%s'"</span>, column3);</div>
-<div class="line"><a name="l02586"></a><span class="lineno"> 2586</span> </div>
-<div class="line"><a name="l02587"></a><span class="lineno"> 2587</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( plist = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>(),</div>
-<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span>         uves_propertylist_append_bool(plist, column1, reverse1),</div>
-<div class="line"><a name="l02589"></a><span class="lineno"> 2589</span>         uves_propertylist_append_bool(plist, column2, reverse2),</div>
-<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span>             uves_propertylist_append_bool(plist, column3, reverse3)),</div>
-<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span>         <span class="stringliteral">"Could not create property list for sorting"</span>);</div>
-<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_table_sort(t, plist), <span class="stringliteral">"Could not sort table"</span>);</div>
-<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>     </div>
-<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span>   cleanup:</div>
-<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span>     uves_free_propertylist(&plist);</div>
-<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span> }</div>
-<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span> <span class="keywordtype">void</span> uves_free(<span class="keyword">const</span> <span class="keywordtype">void</span> *mem)</div>
-<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span> {</div>
-<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>     cpl_free((<span class="keywordtype">void</span> *)mem); <span class="comment">/* No, it is not a bug. The cast is safe */</span></div>
-<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span> }</div>
-<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span> </div>
-<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span> <span class="keywordtype">void</span> uves_free_image(cpl_image **i) </div>
-<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span> {<span class="keywordflow">if</span>(i){cpl_image_delete(*i); *i = NULL;}}</div>
-<div class="line"><a name="l02618"></a><span class="lineno"> 2618</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span> <span class="keywordtype">void</span> uves_free_mask(cpl_mask **m)</div>
-<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span> {<span class="keywordflow">if</span>(m){cpl_mask_delete(*m); *m = NULL;}}</div>
-<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span> <span class="keywordtype">void</span> uves_free_imagelist(cpl_imagelist **i)</div>
-<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span> {<span class="keywordflow">if</span>(i){cpl_imagelist_delete(*i);        *i = NULL;}}</div>
-<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span> </div>
-<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span> <span class="keywordtype">void</span> uves_free_table(cpl_table **t)</div>
-<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span> {<span class="keywordflow">if</span>(t){cpl_table_delete(*t);            *t = NULL;}}</div>
-<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span> </div>
-<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span> <span class="keywordtype">void</span> uves_free_table_const(<span class="keyword">const</span> cpl_table **t)</div>
-<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span> {<span class="keywordflow">if</span>(t){cpl_table_delete((cpl_table*) (*t));            *t = NULL;}}</div>
-<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span> </div>
-<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span> <span class="keywordtype">void</span> uves_free_propertylist(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **p)</div>
-<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span> {<span class="keywordflow">if</span>(p){<a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(*p);     *p = NULL;}}</div>
-<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span> </div>
-<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span> <span class="keywordtype">void</span> uves_free_propertylist_const(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **p)</div>
-<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span> {<span class="keywordflow">if</span>(p){<a class="code" href="group__uves__propertylist.html#ga3c613b98402a757ff02df2334082ff90" title="Destroy a property list.">uves_propertylist_delete</a>(*p);     *p = NULL;}}</div>
-<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span> </div>
-<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span> <span class="keywordtype">void</span> uves_free_property(cpl_property **p)</div>
-<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span> {<span class="keywordflow">if</span>(p){cpl_property_delete(*p);     *p = NULL;}}</div>
-<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span> <span class="keywordtype">void</span> uves_free_polynomial(cpl_polynomial **p)</div>
-<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span> {<span class="keywordflow">if</span>(p){cpl_polynomial_delete(*p);       *p = NULL;}}</div>
-<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span> <span class="keywordtype">void</span> uves_free_matrix(cpl_matrix **m)</div>
-<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span> {<span class="keywordflow">if</span>(m){cpl_matrix_delete(*m);           *m = NULL;}}</div>
-<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span> <span class="keywordtype">void</span> uves_free_parameterlist(cpl_parameterlist **p)</div>
-<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span> {<span class="keywordflow">if</span>(p){cpl_parameterlist_delete(*p);    *p = NULL;}}</div>
-<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span> <span class="keywordtype">void</span> uves_free_frameset(cpl_frameset **f)</div>
-<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span> {<span class="keywordflow">if</span>(f){cpl_frameset_delete(*f);    *f = NULL;}}</div>
-<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span> <span class="keywordtype">void</span> uves_free_frame(cpl_frame **f)</div>
-<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span> {<span class="keywordflow">if</span>(f){cpl_frame_delete(*f);    *f = NULL;}}</div>
-<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span> <span class="keywordtype">void</span> uves_free_bivector(cpl_bivector **b)</div>
-<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span> {<span class="keywordflow">if</span>(b){cpl_bivector_delete(*b);           *b = NULL;}}</div>
-<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span> <span class="keywordtype">void</span> uves_free_vector(cpl_vector **v)</div>
-<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span> {<span class="keywordflow">if</span>(v){cpl_vector_delete(*v);           *v = NULL;}}</div>
-<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span> <span class="keywordtype">void</span> uves_free_stats(cpl_stats **s)</div>
-<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span> {<span class="keywordflow">if</span>(s){cpl_stats_delete(*s);            *s = NULL;}}</div>
-<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span> <span class="keywordtype">void</span> uves_unwrap_vector(cpl_vector **v)</div>
-<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span> {<span class="keywordflow">if</span>(v){cpl_vector_unwrap(*v);           *v = NULL;}}</div>
-<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span> <span class="keywordtype">void</span> uves_unwrap_vector_const(<span class="keyword">const</span> cpl_vector **v)</div>
-<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span> {<span class="keywordflow">if</span>(v){cpl_vector_unwrap((cpl_vector*) (*v));           *v = NULL;}}</div>
-<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span> <span class="keywordtype">void</span> uves_unwrap_bivector_vectors(cpl_bivector **b)</div>
-<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span> {<span class="keywordflow">if</span>(b){cpl_bivector_unwrap_vectors(*b); *b = NULL;}}</div>
-<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span> <span class="keywordtype">void</span> uves_free_array(cpl_array **a)</div>
-<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span> {<span class="keywordflow">if</span>(a){cpl_array_delete(*a);           *a = NULL;}}</div>
-<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span> </div>
-<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span> <span class="keywordtype">void</span> uves_free_int(<span class="keywordtype">int</span> **i)</div>
-<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span> {<span class="keywordflow">if</span>(i){cpl_free(*i);           *i = NULL;}}</div>
-<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span> </div>
-<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span> <span class="keywordtype">void</span> uves_free_int_const(<span class="keyword">const</span> <span class="keywordtype">int</span> **i)</div>
-<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span> {<span class="keywordflow">if</span>(i){uves_free(*i);           *i = NULL;}}</div>
-<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span> <span class="keywordtype">void</span> uves_free_float(<span class="keywordtype">float</span> **f)</div>
-<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span> {<span class="keywordflow">if</span>(f){cpl_free(*f);           *f = NULL;}}</div>
-<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span> </div>
-<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span> <span class="keywordtype">void</span> uves_free_double(<span class="keywordtype">double</span> **d)</div>
-<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span> {<span class="keywordflow">if</span>(d){cpl_free(*d);           *d = NULL;}}</div>
-<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span> </div>
-<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02816"></a><span class="lineno"> 2816</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02817"></a><span class="lineno"> 2817</span> <span class="keywordtype">void</span> uves_free_string(<span class="keywordtype">char</span> **s)</div>
-<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span> {<span class="keywordflow">if</span>(s){cpl_free(*s);           *s = NULL;}}</div>
-<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span> <span class="keywordtype">void</span> uves_free_string_const(<span class="keyword">const</span> <span class="keywordtype">char</span> **s)</div>
-<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span> {<span class="keywordflow">if</span>(s){uves_free(*s);           *s = NULL;}}</div>
-<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span> </div>
-<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span> </div>
-<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span> get_chisq(<span class="keywordtype">int</span> N, <span class="keywordtype">int</span> D,</div>
-<div class="line"><a name="l02853"></a><span class="lineno"> 2853</span>       <span class="keywordtype">int</span> (*f)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>       <span class="keyword">const</span> <span class="keywordtype">double</span> *a,</div>
-<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>       <span class="keyword">const</span> <span class="keywordtype">double</span> *x,</div>
-<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>       <span class="keyword">const</span> <span class="keywordtype">double</span> *y,</div>
-<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>       <span class="keyword">const</span> <span class="keywordtype">double</span> *sigma)</div>
-<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span> {</div>
-<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span>     <span class="keywordtype">double</span> chi_sq;     <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span>     <span class="keywordtype">int</span> i = 0;</div>
-<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span> </div>
-<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span>     <span class="comment">/* For efficiency, don't check input in this static function */</span></div>
-<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span> </div>
-<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>     chi_sq = 0.0;</div>
-<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>     <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
-<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span>     {</div>
-<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span>         <span class="keywordtype">double</span> fx_i;</div>
-<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>         <span class="keywordtype">double</span> residual;                 <span class="comment">/* Residual in units of uncertainty */</span></div>
-<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> *x_i = &(x[0+i*D]);</div>
-<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span> </div>
-<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span>         <span class="comment">/* Evaluate */</span></div>
-<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span>         cpl_ensure( f(x_i,</div>
-<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span>               a,</div>
-<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span>               &fx_i) == 0, CPL_ERROR_ILLEGAL_INPUT, -1.0);</div>
-<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span> </div>
-<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span>         <span class="comment">/* Accumulate */</span></div>
-<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>         <span class="keywordflow">if</span> (sigma == NULL)</div>
-<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span>         {</div>
-<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>             residual = (fx_i - y[i]);</div>
-<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>         }</div>
-<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span>         {</div>
-<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span>             residual = (fx_i - y[i]) / sigma[i];</div>
-<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span>         }</div>
-<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span> </div>
-<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span>         chi_sq += residual*residual;</div>
-<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span>        </div>
-<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span>     }</div>
-<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span> </div>
-<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>     <span class="keywordflow">return</span> chi_sq;</div>
-<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span> }</div>
-<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span> get_candidate(<span class="keyword">const</span> <span class="keywordtype">double</span> *a, <span class="keyword">const</span> <span class="keywordtype">int</span> ia[],</div>
-<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>           <span class="keywordtype">int</span> M, <span class="keywordtype">int</span> N, <span class="keywordtype">int</span> D,</div>
-<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span>           <span class="keywordtype">double</span> lambda,</div>
-<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span>           <span class="keywordtype">int</span>    (*f)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>           <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>           <span class="keyword">const</span> <span class="keywordtype">double</span> *x,</div>
-<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>           <span class="keyword">const</span> <span class="keywordtype">double</span> *y,</div>
-<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>           <span class="keyword">const</span> <span class="keywordtype">double</span> *sigma,</div>
-<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>           <span class="keywordtype">double</span> *partials,</div>
-<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>           cpl_matrix *alpha,</div>
-<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>           cpl_matrix *beta,</div>
-<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>           <span class="keywordtype">double</span> *a_da)</div>
-<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span> {</div>
-<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>     <span class="keywordtype">int</span> Mfit = 0;         <span class="comment">/* Number of non-constant fit parameters */</span></div>
-<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>     cpl_matrix *da;       <span class="comment">/* Solution of   alpha * da = beta */</span></div>
-<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>     <span class="keywordtype">double</span> *alpha_data;</div>
-<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>     <span class="keywordtype">double</span> *beta_data;</div>
-<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>     <span class="keywordtype">double</span> *da_data;</div>
-<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>     <span class="keywordtype">int</span> i, imfit = 0;</div>
-<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>     <span class="keywordtype">int</span> j, jmfit = 0;</div>
-<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>     <span class="keywordtype">int</span> k = 0;</div>
-<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span> </div>
-<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>     <span class="comment">/* For efficiency, don't check input in this static function */</span></div>
-<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span> </div>
-<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>     Mfit = cpl_matrix_get_nrow(alpha);</div>
-<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span> </div>
-<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>     alpha_data    = cpl_matrix_get_data(alpha);</div>
-<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>     beta_data     = cpl_matrix_get_data(beta);</div>
-<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>    </div>
-<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>     <span class="comment">/* Build alpha, beta:</span></div>
-<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span> <span class="comment">     *  alpha[i,j] = sum_{k=1,N} (sigma_k)^-2 * df/da_i * df/da_j  *</span></div>
-<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span> <span class="comment">     *                           (1 + delta_ij lambda) ,</span></div>
-<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span> <span class="comment">     *   beta[i]   = sum_{k=1,N} (sigma_k)^-2 * ( y_k - f(x_k) ) * df/da_i</span></div>
-<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span> <span class="comment">     *</span></div>
-<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span> <span class="comment">     * where (i,j) loop over the non-constant parameters (0 to Mfit-1),</span></div>
-<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span> <span class="comment">     * delta is Kronecker's delta, and all df/da are evaluated in x_k</span></div>
-<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span> </div>
-<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span>     cpl_matrix_fill(alpha, 0.0);</div>
-<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>     cpl_matrix_fill(beta , 0.0);</div>
-<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span> </div>
-<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>     <span class="keywordflow">for</span> (k = 0; k < N; k++)</div>
-<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>     {</div>
-<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>         <span class="keywordtype">double</span> sm2 = 0.0;                <span class="comment">/* (sigma_k)^-2 */</span></div>
-<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span>         <span class="keywordtype">double</span> fx_k = 0.0;               <span class="comment">/* f(x_k)       */</span></div>
-<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>         <span class="keyword">const</span> <span class="keywordtype">double</span> *x_k = &(x[0+k*D]); <span class="comment">/* x_k          */</span></div>
-<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span> </div>
-<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span>         <span class="keywordflow">if</span> (sigma == NULL)</div>
-<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>         {</div>
-<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>             sm2 = 1.0;</div>
-<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span>         }</div>
-<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>         {</div>
-<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>             sm2 = 1.0 / (sigma[k] * sigma[k]);</div>
-<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>         }</div>
-<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>         </div>
-<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>         <span class="comment">/* Evaluate f(x_k) */</span></div>
-<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>         cpl_ensure( f(x_k, a, &fx_k) == 0, CPL_ERROR_ILLEGAL_INPUT, -1);</div>
-<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span> </div>
-<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>         <span class="comment">/* Evaluate (all) df/da (x_k) */</span></div>
-<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>         cpl_ensure( dfda(x_k, a, partials) == 0, </div>
-<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span>             CPL_ERROR_ILLEGAL_INPUT, -1);</div>
-<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span> </div>
-<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>         <span class="keywordflow">for</span> (i = 0, imfit = 0; i < M; i++)</div>
-<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>         {</div>
-<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>             <span class="keywordflow">if</span> (ia[i] != 0)</div>
-<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>             {</div>
-<div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>                 <span class="comment">/* Beta */</span></div>
-<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>                 beta_data[imfit] +=</div>
-<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>                 sm2 * (y[k] - fx_k) * partials[i];</div>
-<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span>                 </div>
-<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span>                 <span class="comment">/* Alpha is symmetrical, so compute</span></div>
-<div class="line"><a name="l03002"></a><span class="lineno"> 3002</span> <span class="comment">                   only lower-left part */</span></div>
-<div class="line"><a name="l03003"></a><span class="lineno"> 3003</span>                 <span class="keywordflow">for</span> (j = 0, jmfit = 0; j < i; j++)</div>
-<div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>                 {</div>
-<div class="line"><a name="l03005"></a><span class="lineno"> 3005</span>                     <span class="keywordflow">if</span> (ia[j] != 0)</div>
-<div class="line"><a name="l03006"></a><span class="lineno"> 3006</span>                     {</div>
-<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span>                         alpha_data[jmfit + imfit*Mfit] +=</div>
-<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span>                         sm2 * partials[i] * </div>
-<div class="line"><a name="l03009"></a><span class="lineno"> 3009</span>                         partials[j];</div>
-<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span>                         </div>
-<div class="line"><a name="l03011"></a><span class="lineno"> 3011</span>                         jmfit += 1;</div>
-<div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>                     }</div>
-<div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>                 }</div>
-<div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>                 </div>
-<div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>                 <span class="comment">/* Alpha, diagonal terms */</span></div>
-<div class="line"><a name="l03016"></a><span class="lineno"> 3016</span>                 j = i;</div>
-<div class="line"><a name="l03017"></a><span class="lineno"> 3017</span>                 jmfit = imfit;</div>
-<div class="line"><a name="l03018"></a><span class="lineno"> 3018</span>                 </div>
-<div class="line"><a name="l03019"></a><span class="lineno"> 3019</span>                 alpha_data[jmfit + imfit*Mfit] += </div>
-<div class="line"><a name="l03020"></a><span class="lineno"> 3020</span>                 sm2 * partials[i] *</div>
-<div class="line"><a name="l03021"></a><span class="lineno"> 3021</span>                 partials[j] * (1 + lambda);</div>
-<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>                 </div>
-<div class="line"><a name="l03023"></a><span class="lineno"> 3023</span>                 imfit += 1;</div>
-<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span>             }</div>
-<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>         }</div>
-<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span> </div>
-<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>         assert( imfit == Mfit );</div>
-<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span>     }</div>
-<div class="line"><a name="l03029"></a><span class="lineno"> 3029</span> </div>
-<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span>     <span class="comment">/* Create upper-right part of alpha */</span></div>
-<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span>     <span class="keywordflow">for</span> (i = 0, imfit = 0; i < M; i++)</div>
-<div class="line"><a name="l03032"></a><span class="lineno"> 3032</span>     {</div>
-<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span>         <span class="keywordflow">if</span> (ia[i] != 0)</div>
-<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span>         {</div>
-<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span>             <span class="keywordflow">for</span> (j = i+1, jmfit = imfit+1; j < M; j++)</div>
-<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>             {</div>
-<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span>                 <span class="keywordflow">if</span> (ia[j] != 0)</div>
-<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span>                 {</div>
-<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>                     alpha_data[jmfit + imfit*Mfit] = </div>
-<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span>                     alpha_data[imfit + jmfit*Mfit];</div>
-<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span>                     </div>
-<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>                     jmfit += 1;</div>
-<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>                 }</div>
-<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>             }</div>
-<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>             assert( jmfit == Mfit );</div>
-<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span> </div>
-<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>             imfit += 1;</div>
-<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span>         }</div>
-<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span>     }</div>
-<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>     assert( imfit == Mfit );</div>
-<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>     </div>
-<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span>     da = cpl_matrix_solve(alpha, beta);</div>
-<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span> </div>
-<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span>     cpl_ensure(da != NULL, cpl_error_get_code(), -1);</div>
-<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span> </div>
-<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span>     <span class="comment">/* Create a+da vector by adding a and da */</span></div>
-<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span>     da_data   = cpl_matrix_get_data(da);</div>
-<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span> </div>
-<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span>     <span class="keywordflow">for</span> (i = 0, imfit = 0; i < M; i++)</div>
-<div class="line"><a name="l03060"></a><span class="lineno"> 3060</span>     {</div>
-<div class="line"><a name="l03061"></a><span class="lineno"> 3061</span>         <span class="keywordflow">if</span> (ia[i] != 0)</div>
-<div class="line"><a name="l03062"></a><span class="lineno"> 3062</span>         {</div>
-<div class="line"><a name="l03063"></a><span class="lineno"> 3063</span>             a_da[i] = a[i] + da_data[0 + imfit*1];</div>
-<div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>             </div>
-<div class="line"><a name="l03065"></a><span class="lineno"> 3065</span>             imfit += 1;</div>
-<div class="line"><a name="l03066"></a><span class="lineno"> 3066</span>         }</div>
-<div class="line"><a name="l03067"></a><span class="lineno"> 3067</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span>         {</div>
-<div class="line"><a name="l03069"></a><span class="lineno"> 3069</span>             a_da[i] = a[i];</div>
-<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span>         }</div>
-<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span>     }</div>
-<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span>     </div>
-<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span>     assert( imfit == Mfit );</div>
-<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span> </div>
-<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span>     cpl_matrix_delete(da);</div>
-<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span> </div>
-<div class="line"><a name="l03077"></a><span class="lineno"> 3077</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span> }</div>
-<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utils__wrappers_8h_source.html b/html/uves__utils__wrappers_8h_source.html
deleted file mode 100644
index acd27c1..0000000
--- a/html/uves__utils__wrappers_8h_source.html
+++ /dev/null
@@ -1,259 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utils_wrappers.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utils_wrappers.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-05-01 06:28:00 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.67 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="preprocessor">#ifndef UVES_UTILS_WRAPPERS_H</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_UTILS_WRAPPERS_H</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor"></span><span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                    Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <uves_propertylist.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">                             Defines</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> </div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> </div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment">                                   Prototypes</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#define uves_sprintf(...) cpl_sprintf(__VA_ARGS__)</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> cpl_image * </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> uves_image_filter_median(<span class="keyword">const</span> cpl_image * img, <span class="keyword">const</span> cpl_matrix * mx);</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> cpl_image * </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> uves_image_filter_linear(<span class="keyword">const</span> cpl_image *img, <span class="keyword">const</span> cpl_matrix * mx);</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *uves_find_frame(<span class="keyword">const</span> cpl_frameset *frames, <span class="keyword">const</span> <span class="keywordtype">char</span> **wanted, </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>                 <span class="keywordtype">int</span> N, <span class="keywordtype">int</span> *found, <span class="keyword">const</span> cpl_frame **<a class="code" href="structframe.html">frame</a>);</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> cpl_error_code uves_cast_image(cpl_image **image, cpl_type to_type);</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> cpl_error_code uves_crop_image(cpl_image **image, <span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y_1, <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y2);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> cpl_error_code uves_get_property_value(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *plist,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>                        <span class="keyword">const</span> <span class="keywordtype">char</span> *keyword, cpl_type keywordtype, </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>                        <span class="keywordtype">void</span> *result);</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> cpl_error_code uves_get_parameter(<span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *context, <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *name, cpl_type type, <span class="keywordtype">void</span> *value);</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> cpl_error_code uves_set_parameter(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>                   <span class="keyword">const</span> <span class="keywordtype">char</span> *context, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>                   cpl_type type, <span class="keywordtype">void</span> *value);</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> cpl_error_code uves_set_parameter_default(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span> *context,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>                       <span class="keyword">const</span> <span class="keywordtype">char</span> *parname, </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>                       cpl_type type, <span class="keywordtype">void</span> *value);</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="keywordtype">void</span> uves_image_reject_all(cpl_image *image);</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> cpl_size uves_get_nextensions(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename);</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="keywordtype">int</span> uves_select_table_rows(cpl_table *t,  <span class="keyword">const</span> <span class="keywordtype">char</span> *column,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>                       cpl_table_select_operator <span class="keyword">operator</span>, </div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>                       <span class="keywordtype">double</span> value);</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="keywordtype">int</span> uves_erase_invalid_table_rows(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column);</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="keywordtype">int</span> uves_erase_table_rows(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column, </div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>               cpl_table_select_operator <span class="keyword">operator</span>,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>               <span class="keywordtype">double</span> value);</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="keywordtype">int</span> uves_extract_table_rows_local(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>                   cpl_table_select_operator <span class="keyword">operator</span>, <span class="keywordtype">double</span> value);</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> cpl_table *uves_extract_table_rows(<span class="keyword">const</span> cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column,</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                    cpl_table_select_operator <span class="keyword">operator</span>,</div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>                    <span class="keywordtype">double</span> value);</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> </div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> cpl_error_code</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> uves_table_sort_dfsxxxx(cpl_table *table, <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *reflist);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="keywordtype">void</span> uves_sort_table_1(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column1,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                <span class="keywordtype">bool</span> reverse1);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="keywordtype">void</span> uves_sort_table_2(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column1, </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *column2, <span class="keywordtype">bool</span> reverse1, </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                <span class="keywordtype">bool</span> reverse2);</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="keywordtype">void</span> uves_sort_table_3(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column1, </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>                <span class="keyword">const</span> <span class="keywordtype">char</span> *column2, <span class="keyword">const</span> <span class="keywordtype">char</span> *column3,</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>                <span class="keywordtype">bool</span> reverse1, <span class="keywordtype">bool</span> reverse2, <span class="keywordtype">bool</span> reverse3);</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> cpl_error_code uves_fit(<span class="keyword">const</span> cpl_matrix *x, <span class="keyword">const</span> cpl_matrix *sigma_x,</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>             <span class="keyword">const</span> cpl_vector *y, <span class="keyword">const</span> cpl_vector *sigma_y,</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>             cpl_vector *a, <span class="keyword">const</span> <span class="keywordtype">int</span> ia[],</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>             <span class="keywordtype">int</span>    (*f)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                     <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>             <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                     <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>             <span class="keywordtype">double</span> *mse,</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>             <span class="keywordtype">double</span> *red_chisq,</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>             cpl_matrix **covariance);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> cpl_error_code</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> uves_fit_1d(cpl_vector *x, <span class="keyword">const</span> cpl_vector *sigma_x,</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>         cpl_vector *y, <span class="keyword">const</span> cpl_vector *sigma_y,</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>         cpl_fit_mode fit_pars, <span class="keywordtype">bool</span> fit_back,</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>         <span class="keywordtype">double</span> *x0, <span class="keywordtype">double</span> *sigma, <span class="keywordtype">double</span> *area, <span class="keywordtype">double</span> *offset, <span class="keywordtype">double</span> *slope,</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>             <span class="keywordtype">double</span> *mse, <span class="keywordtype">double</span> *red_chisq,</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>         cpl_matrix **covariance,</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>         <span class="keywordtype">int</span> (*f)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span>         <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>         <span class="keywordtype">int</span> M);</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> </div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> cpl_error_code</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> uves_fit_1d_image(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *noise,</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span>           <span class="keyword">const</span> cpl_binary *image_badmap,</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>           <span class="keywordtype">bool</span> horizontal, <span class="keywordtype">bool</span> fix_back, <span class="keywordtype">bool</span> fit_back,</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>           <span class="keywordtype">int</span> xlo, <span class="keywordtype">int</span> xhi, <span class="keywordtype">int</span> y_0,</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>           <span class="keywordtype">double</span> *x0, <span class="keywordtype">double</span> *sigma, <span class="keywordtype">double</span> *norm, <span class="keywordtype">double</span> *background,</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>                   <span class="keywordtype">double</span> *slope,</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>           <span class="keywordtype">double</span> *mse, <span class="keywordtype">double</span> *red_chisq,</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>           cpl_matrix **covariance,</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>           <span class="keywordtype">int</span> (*f)   (<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> *result),</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>           <span class="keywordtype">int</span> (*dfda)(<span class="keyword">const</span> <span class="keywordtype">double</span> x[], <span class="keyword">const</span> <span class="keywordtype">double</span> a[], <span class="keywordtype">double</span> result[]),</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>           <span class="keywordtype">int</span> M);</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="keywordtype">void</span> uves_propertylist_append_property(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *result, <span class="keyword">const</span> cpl_property *p);</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> cpl_error_code uves_table_erase_selected_dfs02356(cpl_table *t);</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="keywordtype">int</span> uves_table_and_selected_invalid(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column);</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="keywordtype">void</span> uves_raise_to_median_frac(cpl_table *t, <span class="keyword">const</span> <span class="keywordtype">char</span> *column, <span class="keywordtype">double</span> fraction);</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="keywordtype">void</span> uves_free(<span class="keyword">const</span> <span class="keywordtype">void</span> *mem);</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="keywordtype">void</span> uves_free_image(cpl_image **i);</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="keywordtype">void</span> uves_free_mask(cpl_mask **m);</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="keywordtype">void</span> uves_free_imagelist(cpl_imagelist **i);</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="keywordtype">void</span> uves_free_table(cpl_table **t);</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="keywordtype">void</span> uves_free_table_const(<span class="keyword">const</span> cpl_table **t);</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="keywordtype">void</span> uves_free_propertylist(<a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **p);</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="keywordtype">void</span> uves_free_propertylist_const(<span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> **p);</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="keywordtype">void</span> uves_free_property(cpl_property **p);</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="keywordtype">void</span> uves_free_polynomial(cpl_polynomial **p);</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="keywordtype">void</span> uves_free_matrix(cpl_matrix **m);</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="keywordtype">void</span> uves_free_vector(cpl_vector **v);</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="keywordtype">void</span> uves_free_bivector(cpl_bivector **b);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="keywordtype">void</span> uves_free_stats(cpl_stats **s);</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="keywordtype">void</span> uves_unwrap_vector(cpl_vector **v);</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="keywordtype">void</span> uves_unwrap_vector_const(<span class="keyword">const</span> cpl_vector **v);</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="keywordtype">void</span> uves_unwrap_bivector_vectors(cpl_bivector **b);</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="keywordtype">void</span> uves_free_parameterlist(cpl_parameterlist **p);</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="keywordtype">void</span> uves_free_frameset(cpl_frameset **f);</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="keywordtype">void</span> uves_free_frame(cpl_frame **f);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="keywordtype">void</span> uves_free_array(cpl_array **a);</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="keywordtype">void</span> uves_free_int(<span class="keywordtype">int</span> **i);</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="keywordtype">void</span> uves_free_int_const(<span class="keyword">const</span> <span class="keywordtype">int</span> **i);</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="keywordtype">void</span> uves_free_float(<span class="keywordtype">float</span> **f);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="keywordtype">void</span> uves_free_double(<span class="keywordtype">double</span> **d);</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="keywordtype">void</span> uves_free_string(<span class="keywordtype">char</span> **s);</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="keywordtype">void</span> uves_free_string_const(<span class="keyword">const</span> <span class="keywordtype">char</span> **s);</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span> cpl_image*</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> uves_image_filter_mode(<span class="keyword">const</span> cpl_image* b,</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>                       <span class="keyword">const</span> cpl_matrix * ker,</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>                       cpl_filter_mode filter);</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> </div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utl__ima__arith_8c_source.html b/html/uves__utl__ima__arith_8c_source.html
deleted file mode 100644
index 8aa082b..0000000
--- a/html/uves__utl__ima__arith_8c_source.html
+++ /dev/null
@@ -1,456 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utl_ima_arith.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utl_ima_arith.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: uves_utl_ima_arith.c,v 1.1 2009-02-18 12:19:38 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the UVES Pipeline</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2009-02-18 12:19:38 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/* cpl */</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/* irplib */</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">//#include <uves_tpl_utils.h></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">//#include <uves_key_names.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">//#include <uves_pro_types.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">//#include <uves_functions.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#define KEY_VALUE_HPRO_DID                 "PRO-1.15"</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="preprocessor">#define PRO_IMA "IMA"</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor"></span><span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__ima__arith.html#ga954092253234f48324af709c2d7ea7d5" title="Setup the recipe options.">uves_utl_ima_arith_create</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__ima__arith.html#gadb1e3d51a74afcdbff10fef274707c8f" title="Execute the plugin instance given by the interface.">uves_utl_ima_arith_exec</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__ima__arith.html#gaf349b59d28b57f043bf44c361370bb46" title="Destroy what has been created by the 'create' function.">uves_utl_ima_arith_destroy</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__ima__arith.html#ga381a7f807d484e3b74ea7d9bacdcb820" title="Get the command line options and execute the data reduction.">uves_utl_ima_arith</a>(cpl_parameterlist *, cpl_frameset *) ;</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="keyword">static</span> <span class="keywordtype">char</span> uves_utl_ima_arith_description[] =</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="stringliteral">"This recipe performs image computation.\n"</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="stringliteral">"The input files are 2 images\n"</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="stringliteral">"their associated tags should be IMA.\n"</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="stringliteral">"The output is an image resulting from the IMA op IMA where op indicates\n"</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="stringliteral">"the operation to be performed specified by the parameter \n"</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="stringliteral">"uves.uves_utl_ima_arith.op having alias 'op'\n"</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="stringliteral">"Information on relevant parameters can be found with\n"</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="stringliteral">"esorex --params uves_utl_ima_arith\n"</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="stringliteral">"esorex --help uves_utl_ima_arith\n"</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="stringliteral">"\n"</span>;</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment">                                Functions code</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="group__uves__utl__ima__arith.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693">   98</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist * list)</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> {</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>     cpl_recipe  *   recipe = cpl_calloc(1, <span class="keyword">sizeof</span> *recipe ) ;</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>     cpl_plugin  *   plugin = &recipe->interface ;</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     cpl_plugin_init(plugin,</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>                     CPL_PLUGIN_API,</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>                     UVES_BINARY_VERSION,</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>                     CPL_PLUGIN_TYPE_RECIPE,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                     <span class="stringliteral">"uves_utl_ima_arith"</span>,</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>                     <span class="stringliteral">"Computes result of ima1 op ima2"</span>,</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>                     uves_utl_ima_arith_description,</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>                     <span class="stringliteral">"Andrea Modigliani"</span>,</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>                     <span class="stringliteral">"Andrea.Modigliani at eso.org"</span>,</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                     <a class="code" href="group__uves__utils.html#gae14eb4ed643b704af7b942f55eac9575" title="Get the pipeline copyright and license.">uves_get_license</a>(),</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>                     <a class="code" href="group__uves__utl__ima__arith.html#ga954092253234f48324af709c2d7ea7d5" title="Setup the recipe options.">uves_utl_ima_arith_create</a>,</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>                     <a class="code" href="group__uves__utl__ima__arith.html#gadb1e3d51a74afcdbff10fef274707c8f" title="Execute the plugin instance given by the interface.">uves_utl_ima_arith_exec</a>,</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>                     <a class="code" href="group__uves__utl__ima__arith.html#gaf349b59d28b57f043bf44c361370bb46" title="Destroy what has been created by the 'create' function.">uves_utl_ima_arith_destroy</a>) ;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     cpl_pluginlist_append(list, plugin) ;</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> }</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno"><a class="code" href="group__uves__utl__ima__arith.html#ga954092253234f48324af709c2d7ea7d5">  132</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__ima__arith.html#ga954092253234f48324af709c2d7ea7d5" title="Setup the recipe options.">uves_utl_ima_arith_create</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> {</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     cpl_recipe      * recipe ;</div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span>     cpl_parameter   * p ;</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     cpl_error_reset();</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     <a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e" title="Reset IRPLIB state.">irplib_reset</a>();</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     <span class="comment">/* Create the parameters list in the cpl_recipe object */</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     recipe->parameters = cpl_parameterlist_new() ; </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="comment">/* Fill the parameters list */</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     <span class="comment">/* --stropt */</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_ima_arith.op"</span>, </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>                                 CPL_TYPE_STRING, </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>                                 <span class="stringliteral">"A possible operation"</span>, </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>                                 <span class="stringliteral">"uves.uves_utl_ima_arith"</span>,<span class="stringliteral">"+"</span>);</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"op"</span>) ;</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     <span class="comment">/* --doubleopt */</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_ima_arith.value"</span>, </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>             CPL_TYPE_DOUBLE, <span class="stringliteral">"a value"</span>, <span class="stringliteral">"uves.uves_utl_ima_arith"</span>, 9999.) ;</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"value"</span>) ;</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>  </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <span class="comment">/* Return */</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> }</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno"><a class="code" href="group__uves__utl__ima__arith.html#gadb1e3d51a74afcdbff10fef274707c8f">  173</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__ima__arith.html#gadb1e3d51a74afcdbff10fef274707c8f" title="Execute the plugin instance given by the interface.">uves_utl_ima_arith_exec</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> {</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>     cpl_recipe  *   recipe ;</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>      <span class="keywordtype">int</span> code=0;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>      cpl_errorstate initial_errorstate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>     cpl_error_reset();</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     <a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e" title="Reset IRPLIB state.">irplib_reset</a>();</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     code = <a class="code" href="group__uves__utl__ima__arith.html#ga381a7f807d484e3b74ea7d9bacdcb820" title="Get the command line options and execute the data reduction.">uves_utl_ima_arith</a>(recipe->parameters, recipe->frames) ;</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>     <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(initial_errorstate)) {                      </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>         <span class="comment">/* Dump the error history since recipe execution start.                </span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment">           At this point the recipe cannot recover from the error */</span>           </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>         cpl_errorstate_dump(initial_errorstate, CPL_FALSE, NULL);              </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>     } </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     <span class="keywordflow">return</span> code ;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> }</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno"><a class="code" href="group__uves__utl__ima__arith.html#gaf349b59d28b57f043bf44c361370bb46">  204</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__ima__arith.html#gaf349b59d28b57f043bf44c361370bb46" title="Destroy what has been created by the 'create' function.">uves_utl_ima_arith_destroy</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> {</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     cpl_recipe  *   recipe ;</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     cpl_parameterlist_delete(recipe->parameters) ; </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> }</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> </div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00226"></a><span class="lineno"><a class="code" href="group__uves__utl__ima__arith.html#ga381a7f807d484e3b74ea7d9bacdcb820">  226</a></span> <a class="code" href="group__uves__utl__ima__arith.html#ga381a7f807d484e3b74ea7d9bacdcb820" title="Get the command line options and execute the data reduction.">uves_utl_ima_arith</a>( cpl_parameterlist   *   parlist, </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>         cpl_frameset        *   framelist)</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> {</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     cpl_parameter       *   param= NULL ;</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>          *   operation=NULL;</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     <span class="keywordtype">double</span>                     value=1 ;</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     cpl_frame           *   frm_ima1=NULL ;</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     cpl_frame           *   frm_ima2=NULL ;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     cpl_image           *   ima1=NULL ;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     cpl_image           *   ima2=NULL ;</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <span class="keywordtype">int</span> switch_ima2     = 0;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>                *   name_o=NULL ;</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     cpl_propertylist    *   plist=NULL ;</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     cpl_image           *   image=NULL ;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     cpl_frame           *   product_frame=NULL;</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     cpl_frameset * raw_set=NULL;</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <span class="keywordtype">int</span> nraw=0;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     <span class="keywordtype">int</span> n=0;</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>           <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Welcome to UVES Pipeline release %d.%d.%d"</span>,</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         UVES_MAJOR_VERSION,UVES_MINOR_VERSION,UVES_MICRO_VERSION);</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     <span class="comment">/* HOW TO RETRIEVE INPUT PARAMETERS */</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     <span class="comment">/* --stropt */</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist, </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>                                              <span class="stringliteral">"uves.uves_utl_ima_arith.op"</span>));</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(operation=cpl_parameter_get_string(param));</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="comment">/* --boolopt */</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist,</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>                                              <span class="stringliteral">"uves.uves_utl_ima_arith.value"</span>));</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(value = cpl_parameter_get_double(param)) ;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>   </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     <span class="comment">/* Identify the RAW and CALIB frames in the input frameset */</span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_dfs_set_groups(framelist),</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>          <span class="stringliteral">"Cannot identify RAW and CALIB frames"</span>) ;</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>  </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     <span class="comment">/* HOW TO ACCESS INPUT DATA */</span></div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     n=cpl_frameset_get_size(framelist);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     <span class="keywordflow">if</span>(n<1) {</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Empty input frame list!"</span>);</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>       <span class="keywordflow">goto</span> cleanup ;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     }</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     <span class="comment">/* HOW TO ACCESS INPUT DATA */</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(raw_set=cpl_frameset_new());</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_contains_frames_kind(framelist,raw_set,PRO_IMA),</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>      <span class="stringliteral">"Found no input frames with tag %s"</span>,PRO_IMA);</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nraw=cpl_frameset_get_size(raw_set));</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     <span class="keywordflow">if</span> (nraw<1) {</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Found no input frames with tag %s"</span>,PRO_IMA);</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>       <span class="keywordflow">goto</span> cleanup;</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>          <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(frm_ima1=cpl_frameset_get_frame(framelist,0));</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>          <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima1=cpl_image_load(cpl_frame_get_filename(frm_ima1),</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>                                          CPL_TYPE_FLOAT,0,0));</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>      <span class="keywordflow">if</span> (nraw>1) {</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>          <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(frm_ima2=cpl_frameset_get_frame(framelist,1));</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>          <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima2 = cpl_image_load(cpl_frame_get_filename(frm_ima2),</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                                            CPL_TYPE_FLOAT,0,0));</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>          switch_ima2=1;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (value == 9999.) {</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>         <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Found only one input frames with tag %s"</span>,PRO_IMA);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>         <span class="keywordflow">goto</span> cleanup; </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Perform image arithmetics on frame %s"</span>,PRO_IMA);</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>       }</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     }</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> </div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     uves_free_frameset(&raw_set);</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <span class="comment">/* HOW TO GET THE VALUE OF A FITS KEYWORD */</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(plist=cpl_propertylist_load(cpl_frame_get_filename(frm_ima1),0),</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>           <span class="stringliteral">"Cannot read the FITS header"</span>) ;</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <span class="comment">/* Now performing the data reduction */</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <span class="comment">/* Let's generate one image for the example */</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="keywordflow">if</span> (value == 9999.) {</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> </div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>       <span class="keywordflow">if</span>(ima1 != NULL && ima2 != NULL) {</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"ima1 %s ima2"</span>,operation);</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     <span class="keywordflow">if</span> (strcmp(operation,<span class="stringliteral">"+"</span>) == 0 ) {</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(image = cpl_image_add_create(ima1, ima2),</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>                 <span class="stringliteral">"Cannot generate the %s image"</span>,operation) ;</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(operation,<span class="stringliteral">"-"</span>) == 0 ) {</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(image = cpl_image_subtract_create(ima1, ima2),               </div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>         <span class="stringliteral">"Cannot generate the %s image"</span>,operation) ;</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(operation,<span class="stringliteral">"*"</span>) == 0 ) {</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(image = cpl_image_multiply_create(ima1, ima2),</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>         <span class="stringliteral">"Cannot generate the %s image"</span>,operation) ;</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(operation,<span class="stringliteral">"/"</span>) == 0 ) {</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(image = cpl_image_divide_create(ima1, ima2),</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>         <span class="stringliteral">"Cannot generate the %s image"</span>,operation) ;</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>           <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Operation %s not supported"</span>,operation);</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>           <span class="keywordflow">goto</span> cleanup;</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     }</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>       uves_free_image(&ima1);</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>       uves_free_image(&ima2);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> </div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>       }</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"ima1 %s %f"</span>,operation,value);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>        </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>       <span class="keywordflow">if</span>(switch_ima2 == 1) {</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>       uves_free_image(&ima2);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>       }</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>        </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>       <span class="keywordflow">if</span> (strcmp(operation,<span class="stringliteral">"+"</span>) == 0 ) {</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(image = cpl_image_add_scalar_create(ima1, value),</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>           <span class="stringliteral">"Cannot apply the %s operator"</span>,operation) ;</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(operation,<span class="stringliteral">"-"</span>) == 0 ) {</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(image = cpl_image_subtract_scalar_create(ima1, value),</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>           <span class="stringliteral">"Cannot apply the %s operator"</span>,operation) ;</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(operation,<span class="stringliteral">"*"</span>) == 0 ) {</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(image = cpl_image_multiply_scalar_create(ima1, value),</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>           <span class="stringliteral">"Cannot apply the %s operator"</span>,operation) ;</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(operation,<span class="stringliteral">"/"</span>) == 0 ) {</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(image = cpl_image_divide_scalar_create(ima1, value),</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>           <span class="stringliteral">"Cannot apply the %s operator"</span>,operation) ;</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Operation %s not supported"</span>,operation);</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     <span class="keywordflow">goto</span> cleanup;</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>       }</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>       uves_free_image(&ima1);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     }</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> </div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     <span class="comment">/* HOW TO SAVE A PRODUCT ON DISK  */</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <span class="comment">/* Set the file name */</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     name_o = <span class="stringliteral">"ima_res.fits"</span> ;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     <span class="comment">/* Create product frame */</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(product_frame = cpl_frame_new());</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_filename(product_frame, name_o)) ;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_tag(product_frame, PRO_IMA)) ;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_type(product_frame, CPL_FRAME_TYPE_IMAGE)) ;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_group(product_frame, CPL_FRAME_GROUP_PRODUCT)) ;</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_frame_set_level(product_frame, CPL_FRAME_LEVEL_FINAL),</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>       <span class="stringliteral">"Error while initialising the product frame"</span>) ;</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     <span class="comment">/* Add DataFlow keywords */</span></div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_propertylist_erase_regexp(plist, <span class="stringliteral">"^ESO PRO CATG"</span>,0));</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 8, 0)  </span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="preprocessor"></span>    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_dfs_setup_product_header(plist, </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>                                        product_frame, </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                                        framelist, </div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>                                        parlist,</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>                                        <span class="stringliteral">"uves_utl_ima_arith"</span>, </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>                                        <span class="stringliteral">"UVES"</span>, </div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                                        KEY_VALUE_HPRO_DID,NULL),</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>       <span class="stringliteral">"Problem in the product DFS-compliance"</span>) ;</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> <span class="preprocessor"></span>    <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_dfs_setup_product_header(plist, </div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>                                        product_frame, </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>                                        framelist, </div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>                                        parlist,</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>                                        <span class="stringliteral">"uves_utl_ima_arith"</span>, </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>                                        <span class="stringliteral">"UVES"</span>, </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                                        KEY_VALUE_HPRO_DID),</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>       <span class="stringliteral">"Problem in the product DFS-compliance"</span>) ;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     <span class="comment">/* Save the file */</span></div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_image_save(image, </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>                          name_o, </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>                          CPL_BPP_IEEE_FLOAT, </div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>                          plist,</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>                          CPL_IO_DEFAULT),</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>       <span class="stringliteral">"Could not save product"</span>);</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span> </div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>     <span class="keywordflow">if</span> (plist != NULL) {</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>         cpl_propertylist_delete(plist) ; </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>         plist=NULL;</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>     }</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>     </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>     uves_free_image(&image);</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     <span class="comment">/* Log the saved file in the input frameset */</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frameset_insert(framelist, product_frame)) ;</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>  cleanup:</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>    </div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     uves_free_image(&ima1);</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     uves_free_image(&ima2);</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     uves_free_frameset(&raw_set);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     <span class="keywordflow">if</span> (plist != NULL) {</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>         cpl_propertylist_delete(plist) ; </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>         plist=NULL;</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     }</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     <span class="comment">/* This is usually freed by esorex: but what about if errors occurs?</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="comment">    uves_free_frame(&product_frame) ;</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     uves_free_image(&image) ;</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>     <span class="keywordflow">if</span> (cpl_error_get_code()) {</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>         <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     }</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utl__physmod_8c_source.html b/html/uves__utl__physmod_8c_source.html
deleted file mode 100644
index 7bc2d60..0000000
--- a/html/uves__utl__physmod_8c_source.html
+++ /dev/null
@@ -1,562 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utl_physmod.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utl_physmod.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: uves_utl_physmod.c,v 1.2 2010-06-15 16:17:35 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the UVES Pipeline</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2010-06-15 16:17:35 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.2 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/* cpl */</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/* irplib */</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">#include <uves_tpl_utils.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">#include <uves_key_names.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">#include <uves_raw_types.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">#include <uves_pro_types.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment">#include <uves_functions.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_physmod_create_table.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#define UVES_IMA_SIZE_X 4096</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_IMA_SIZE_Y 2048</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_LINE_SIGMA_X 2.0</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_LINE_SIGMA_Y 2.0</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__physmod.html#ga7feecac1261438a6dc3b68924fbce98f" title="Setup the recipe options.">uves_utl_physmod_create</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__physmod.html#ga287c8ed12ad70e2683f833c80296b6d5" title="Execute the plugin instance given by the interface.">uves_utl_physmod_exec</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__physmod.html#ga5c8210b4d7ab88b21125bd696c51e6c8" title="Destroy what has been created by the 'create' function.">uves_utl_physmod_destroy</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__physmod.html#ga3e4da7ad21ef98fc09d1302fbd3d12fd" title="Get the command line options and execute the data reduction.">uves_utl_physmod</a>(cpl_parameterlist *, cpl_frameset *) ;</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="keyword">static</span> <span class="keywordtype">char</span> uves_utl_physmod_description[] =</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="stringliteral">"This recipe generates an image using the physical model.\n"</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="stringliteral">"The input file is the reference arc line (LINE_REFER_TABLE)\n"</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="stringliteral">"The output is the image simulated with the UVES physical model\n"</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="stringliteral">"Information on relevant parameters can be found with\n"</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="stringliteral">"esorex --params uves_utl_physmod\n"</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="stringliteral">"esorex --help uves_utl_physmod\n"</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="stringliteral">"\n"</span>;</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> </div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment">                                Functions code</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="group__uves__utl__physmod.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693">  105</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist * list)</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> {</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     cpl_recipe  *   recipe = cpl_calloc(1, <span class="keyword">sizeof</span> *recipe ) ;</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     cpl_plugin  *   plugin = &recipe->interface ;</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     cpl_plugin_init(plugin,</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>                     CPL_PLUGIN_API,</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                     UVES_BINARY_VERSION,</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>                     CPL_PLUGIN_TYPE_RECIPE,</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>                     <span class="stringliteral">"uves_utl_physmod"</span>,</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>                     <span class="stringliteral">"Generates a simulated image"</span>,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                     uves_utl_physmod_description,</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                     <span class="stringliteral">"Andrea Modigliani"</span>,</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                     <span class="stringliteral">"Andrea.Modigliani at eso.org"</span>,</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>                     <a class="code" href="group__uves__utils.html#gae14eb4ed643b704af7b942f55eac9575" title="Get the pipeline copyright and license.">uves_get_license</a>(),</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                     <a class="code" href="group__uves__utl__physmod.html#ga7feecac1261438a6dc3b68924fbce98f" title="Setup the recipe options.">uves_utl_physmod_create</a>,</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>                     <a class="code" href="group__uves__utl__physmod.html#ga287c8ed12ad70e2683f833c80296b6d5" title="Execute the plugin instance given by the interface.">uves_utl_physmod_exec</a>,</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>                     <a class="code" href="group__uves__utl__physmod.html#ga5c8210b4d7ab88b21125bd696c51e6c8" title="Destroy what has been created by the 'create' function.">uves_utl_physmod_destroy</a>) ;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     cpl_pluginlist_append(list, plugin) ;</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> }</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno"><a class="code" href="group__uves__utl__physmod.html#ga7feecac1261438a6dc3b68924fbce98f">  139</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__physmod.html#ga7feecac1261438a6dc3b68924fbce98f" title="Setup the recipe options.">uves_utl_physmod_create</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> {</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     cpl_recipe      * recipe ;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     cpl_parameter   * p ;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     cpl_error_reset();</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span>     <a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e" title="Reset IRPLIB state.">irplib_reset</a>();</div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> </div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     <span class="comment">/* Create the parameters list in the cpl_recipe object */</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     recipe->parameters = cpl_parameterlist_new() ; </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     <span class="comment">/* Fill the parameters list */</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <span class="comment">/* --stropt */</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_physmod.bias"</span>, </div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>                                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span>                                 <span class="stringliteral">"Bias level [ADUs]"</span>, </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>                                 <span class="stringliteral">"uves.uves_utl_physmod"</span>,200.);</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"bias"</span>) ;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     <span class="comment">/* --doubleopt */</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_physmod.ron"</span>, </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>                 <span class="stringliteral">"RON [ADU]"</span>,</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span>                 <span class="stringliteral">"uves.uves_utl_physmod"</span>, 3.) ;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"ron"</span>) ;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> </div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_physmod.gain"</span>, </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>                 <span class="stringliteral">"Detector gain"</span>,</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>                 <span class="stringliteral">"uves.uves_utl_physmod"</span>, 0.7) ;</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"gain"</span>) ;</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span> </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_physmod.flux"</span>,</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span>                 <span class="stringliteral">"Flux level"</span>,</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>                 <span class="stringliteral">"uves.uves_utl_physmod"</span>,1.0e4) ;</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"flux"</span>) ;</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> </div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_physmod.wlen"</span>,</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                 CPL_TYPE_INT, </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>                 <span class="stringliteral">"Wavelength setting"</span>,</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>                 <span class="stringliteral">"uves.uves_utl_physmod"</span>,580) ;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"wlen"</span>) ;</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_physmod.binx"</span>,</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>                 CPL_TYPE_INT, </div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>                 <span class="stringliteral">"BINX"</span>,</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>                 <span class="stringliteral">"uves.uves_utl_physmod"</span>,1) ;</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"binx"</span>) ;</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> </div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> </div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_physmod.biny"</span>,</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>                 CPL_TYPE_INT, </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>                 <span class="stringliteral">"BINY"</span>,</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>                 <span class="stringliteral">"uves.uves_utl_physmod"</span>,1) ;</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"biny"</span>) ;</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> </div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves_utl_physmod.mbox_x"</span>,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                 CPL_TYPE_INT, </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>                 <span class="stringliteral">"MBOX_X"</span>,</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>                 <span class="stringliteral">"uves_utl_physmod"</span>,40) ;</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"mbox_x"</span>) ;</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves_utl_physmod.mbox_y"</span>,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                 CPL_TYPE_INT, </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                 <span class="stringliteral">"MBOX_Y"</span>,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                 <span class="stringliteral">"uves_utl_physmod"</span>,40) ;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"mbox_y"</span>) ;</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves_utl_physmod.trans_x"</span>,</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>                 <span class="stringliteral">"X-offset"</span>,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                 <span class="stringliteral">"uves_utl_physmod"</span>,0.) ;</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"trans_x"</span>) ;</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> </div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves_utl_physmod.trans_y"</span>,</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>                 <span class="stringliteral">"Y-offset"</span>,</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>                 <span class="stringliteral">"uves_utl_physmod"</span>,0.) ;</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"trans_y"</span>) ;</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves_utl_physmod.ech_angle_off"</span>,</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>                 <span class="stringliteral">"Offset on echelle angle"</span>,</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>                 <span class="stringliteral">"uves_utl_physmod"</span>,0.) ;</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"ech_angle_off"</span>) ;</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> </div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves_utl_physmod.cd_angle_off"</span>,</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>                 <span class="stringliteral">"Offset on cross disperser angle"</span>,</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                 <span class="stringliteral">"uves_utl_physmod"</span>,0.) ;</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"cd_angle_off"</span>) ;</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves_utl_physmod.ccd_rot_angle_off"</span>,</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>                 <span class="stringliteral">"CCD rotation angle"</span>,</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>                 <span class="stringliteral">"uves_utl_physmod"</span>,0.) ;</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"ccd_rot_angle_off"</span>) ;</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves_utl_physmod.compute_regression_sw"</span>,</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>                 CPL_TYPE_BOOL, </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>                 <span class="stringliteral">"Compute regression"</span>,</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>                 <span class="stringliteral">"uves_utl_physmod"</span>,CPL_TRUE) ;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"compute_regression_sw"</span>) ;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves_utl_physmod.process_chip"</span>,</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>                 CPL_TYPE_STRING, </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                 <span class="stringliteral">"Chip to be processed"</span>,</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                 <span class="stringliteral">"uves_utl_physmod"</span>,<span class="stringliteral">"both"</span>) ;</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"process_chip"</span>) ;</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     <span class="comment">/* Return */</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> }</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span> </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00301"></a><span class="lineno"><a class="code" href="group__uves__utl__physmod.html#ga287c8ed12ad70e2683f833c80296b6d5">  301</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__physmod.html#ga287c8ed12ad70e2683f833c80296b6d5" title="Execute the plugin instance given by the interface.">uves_utl_physmod_exec</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> {</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     cpl_recipe  *   recipe ;</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>      <span class="keywordtype">int</span> code=0;</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>      cpl_errorstate initial_errorstate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     cpl_error_reset();</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     <a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e" title="Reset IRPLIB state.">irplib_reset</a>();</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     code = <a class="code" href="group__uves__utl__physmod.html#ga3e4da7ad21ef98fc09d1302fbd3d12fd" title="Get the command line options and execute the data reduction.">uves_utl_physmod</a>(recipe->parameters, recipe->frames) ;</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(initial_errorstate)) {                      </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>         <span class="comment">/* Dump the error history since recipe execution start.                </span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="comment">           At this point the recipe cannot recover from the error */</span>           </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>         cpl_errorstate_dump(initial_errorstate, CPL_FALSE, NULL);              </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     } </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     <span class="keywordflow">return</span> code ;</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> }</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno"><a class="code" href="group__uves__utl__physmod.html#ga5c8210b4d7ab88b21125bd696c51e6c8">  332</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__physmod.html#ga5c8210b4d7ab88b21125bd696c51e6c8" title="Destroy what has been created by the 'create' function.">uves_utl_physmod_destroy</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> {</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     cpl_recipe  *   recipe ;</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     </div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     cpl_parameterlist_delete(recipe->parameters) ; </div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> }</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno"><a class="code" href="group__uves__utl__physmod.html#ga3e4da7ad21ef98fc09d1302fbd3d12fd">  354</a></span> <a class="code" href="group__uves__utl__physmod.html#ga3e4da7ad21ef98fc09d1302fbd3d12fd" title="Get the command line options and execute the data reduction.">uves_utl_physmod</a>( cpl_parameterlist   *   parlist, </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>           cpl_frameset        *   frames)</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> {</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>   cpl_parameter       *   p= NULL ;</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>   <span class="keywordtype">double</span> bias=200;</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>   <span class="keywordtype">double</span> ron=0;</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>   <span class="keywordtype">double</span> gain=0;</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>   <span class="keywordtype">double</span> flux=0;</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>   <span class="keywordtype">double</span> offx=0;</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>   <span class="keywordtype">double</span> offy=0;</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>   <span class="keywordtype">int</span> wlen=0;</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>   <span class="keywordtype">int</span> binx=0;</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>   <span class="keywordtype">int</span> biny=0;</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>   cpl_image* ima=NULL;</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>   cpl_image* noise=NULL;</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>   cpl_image* fck=NULL;</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>   <span class="keywordtype">int</span> sx=0;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>   <span class="keywordtype">int</span> sy=0;</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>   <span class="keywordtype">double</span> xc=100;</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>   <span class="keywordtype">double</span> yc=100;</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>   <span class="keywordtype">char</span> name[80];</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>   <span class="keywordtype">int</span> nfrm=0;</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>   <span class="keywordtype">int</span> nraw=0;</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* plist=NULL;</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>   cpl_frame* product_frame=NULL;</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>   cpl_frameset* ref_set=NULL;</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>   cpl_frameset* fck_set=NULL;</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>   cpl_table* line_ref_tbl=NULL;</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>   cpl_frame* line_ref_frame=NULL;</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>   cpl_frame* fck_frame=NULL;</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>   cpl_table* mod_tbl=NULL;</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>   cpl_table* fsr_tbl=NULL;</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>   <span class="keywordtype">bool</span> flames=<span class="keyword">false</span>;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>   <span class="keyword">enum</span> uves_chip chip = UVES_CHIP_REDL;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>   cpl_image        *raw_image[2]      = {NULL, NULL};</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *raw_header[2]     = {NULL, NULL};</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>   <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2] = {NULL, NULL};</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *raw_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>   <span class="keywordtype">bool</span> blue = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *line_refer_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>   cpl_table        *line_refer            = NULL;</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>   <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>   <span class="keywordtype">int</span> raw_index = 0;</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *product_filename = NULL;</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>   <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Welcome to UVES Pipeline release %d.%d.%d"</span>,</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>        UVES_MAJOR_VERSION,UVES_MINOR_VERSION,UVES_MICRO_VERSION);</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span> </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>   <span class="comment">/* HOW TO RETRIEVE INPUT PARAMETERS */</span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(p=cpl_parameterlist_find(parlist,<span class="stringliteral">"uves.uves_utl_physmod.bias"</span>));</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(bias=cpl_parameter_get_double(p));</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> </div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(p=cpl_parameterlist_find(parlist,<span class="stringliteral">"uves.uves_utl_physmod.ron"</span>));</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ron = cpl_parameter_get_double(p)) ;</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(p=cpl_parameterlist_find(parlist,<span class="stringliteral">"uves.uves_utl_physmod.gain"</span>));</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(gain = cpl_parameter_get_double(p)) ;</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(p=cpl_parameterlist_find(parlist,<span class="stringliteral">"uves.uves_utl_physmod.flux"</span>));</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(flux = cpl_parameter_get_double(p)) ;</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(p=cpl_parameterlist_find(parlist,<span class="stringliteral">"uves.uves_utl_physmod.wlen"</span>));</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(wlen = cpl_parameter_get_int(p)) ;</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(p=cpl_parameterlist_find(parlist,<span class="stringliteral">"uves.uves_utl_physmod.binx"</span>));</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(binx = cpl_parameter_get_int(p)) ;</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(p=cpl_parameterlist_find(parlist,<span class="stringliteral">"uves.uves_utl_physmod.biny"</span>));</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(biny = cpl_parameter_get_int(p)) ;</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(p=cpl_parameterlist_find(parlist,<span class="stringliteral">"uves_utl_physmod.trans_x"</span>));</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(offx = cpl_parameter_get_double(p)) ;</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(p=cpl_parameterlist_find(parlist,<span class="stringliteral">"uves_utl_physmod.trans_y"</span>));</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(offy = cpl_parameter_get_double(p)) ;</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parlist, NULL, <span class="stringliteral">"uves_utl_physmod"</span>, <span class="stringliteral">"process_chip"</span>, </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>                 CPL_TYPE_STRING, &PROCESS_CHIP),</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>      <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>   <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> </div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>   <span class="comment">/* Identify the RAW and CALIB frames in the input frameset */</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_dfs_set_groups(frames),</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     <span class="stringliteral">"Cannot identify RAW and CALIB frames"</span>) ;</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>   <span class="comment">//cpl_frameset_dump(frames,stdout);</span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>   <span class="comment">/* HOW TO ACCESS INPUT DATA */</span></div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>   nfrm=cpl_frameset_get_size(frames);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>   <span class="keywordflow">if</span>(nfrm<1) {</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Empty input frame list!"</span>);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     <span class="keywordflow">goto</span> cleanup ;</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>   }</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>   <span class="comment">/* HOW TO ACCESS INPUT DATA */</span></div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ref_set=cpl_frameset_new());</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span> </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_formatcheck(frames, flames, &raw_filename, raw_image, </div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                    raw_header, rotated_header, &blue), </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>      <span class="stringliteral">"Error loading raw frame"</span>);</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span> </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_linerefertable(frames, &line_refer_filename, </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>                   &line_refer, NULL), </div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>      <span class="stringliteral">"Could not load line reference table"</span>);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span> </div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>   <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>        chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>        chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip))</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>     {</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>  </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDU"</span>) == 0) {</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>       }</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"processing frame %s"</span>,<a class="code" href="group__uves__chip.html#ga8319c211e6b7c649287e432bf78dc719" title="Convert to string.">uves_chip_tostring_lower</a>(chip));</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>       raw_index = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__physmod.html#ga00e5ea8f673b3dfd86ba0d7982e0d793" title="Generates two tables with results of the UVES physical model.">uves_physmod_create_table</a>(raw_header[raw_index],chip,flames,</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                                             <span class="stringliteral">"uves_utl_physmod"</span>,</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>                                             parlist,line_refer,offx,offy,</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>                                             &mod_tbl,&fsr_tbl));</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     }</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>   product_filename = <span class="stringliteral">"model_prediction"</span>;</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"Physical model table"</span>, </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>                                product_filename, mod_tbl, </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>                                chip, -1, -1, raw_header[raw_index], NULL),</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>          <span class="stringliteral">"Error saving physical model table"</span>);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span> </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>   product_filename = <span class="stringliteral">"free_spectral_range"</span>;</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_table_local(<span class="stringliteral">"FSR table"</span>,</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>                                product_filename, fsr_tbl,</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>                                chip, -1, -1, raw_header[raw_index], NULL),</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>          <span class="stringliteral">"Error saving free spectral range table"</span>);</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>   exit(0);</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> </div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span> </div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>   <span class="comment">/* Create product frame */</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(product_frame = cpl_frame_new());</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_filename(product_frame, name)) ;</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_tag(product_frame, <span class="stringliteral">"PRODUCT"</span>)) ;</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_type(product_frame, CPL_FRAME_TYPE_IMAGE)) ;</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_group(product_frame, CPL_FRAME_GROUP_PRODUCT)) ;</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>   <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_frame_set_level(product_frame, CPL_FRAME_LEVEL_FINAL),</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     <span class="stringliteral">"Error while initialising the product frame"</span>) ;</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>   <span class="comment">/* Add DataFlow keywords */</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__propertylist.html#ga261c398cc08ce5175706d3830952ea10" title="Erase all properties with name matching a given regular expression.">uves_propertylist_erase_regexp</a>(plist, <span class="stringliteral">"^ESO PRO CATG"</span>,0));</div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>   <span class="comment">/*</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> <span class="comment">    check(cpl_dfs_setup_product_header(plist, </span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> <span class="comment">    product_frame, </span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> <span class="comment">    frames, </span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="comment">    parlist,</span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> <span class="comment">    "uves_utl_physmod", </span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <span class="comment">    "UVES", </span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> <span class="comment">    DICTIONARY),</span></div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> <span class="comment">    "Problem in the product DFS-compliance") ;</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>   <span class="comment">/* Save the file </span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="comment">     check(cpl_image_save(ima_res, </span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="comment">     name, </span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="comment">     CPL_BPP_IEEE_FLOAT, </span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="comment">     plist1,</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="comment">     CPL_IO_DEFAULT),</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">     "Could not save product");</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="comment">  */</span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>   uves_free_propertylist(&plist); </div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> </div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>   <span class="comment">/* Log the saved file in the input frameset */</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>   <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frameset_insert(frames, product_frame)) ;</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span> </div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>  cleanup:</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> </div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>   <span class="keywordflow">if</span> (cpl_error_get_code()) {</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>     <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>   } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>   }</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> </div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utl__rcosmic_8c_source.html b/html/uves__utl__rcosmic_8c_source.html
deleted file mode 100644
index a796f3b..0000000
--- a/html/uves__utl__rcosmic_8c_source.html
+++ /dev/null
@@ -1,572 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utl_rcosmic.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utl_rcosmic.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: uves_utl_rcosmic.c,v 1.3 2012-05-01 06:26:02 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the UVES Pipeline</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2012-05-01 06:26:02 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.3 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/* cpl */</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/* irplib */</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">#include <uves_tpl_utils.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">#include <uves_key_names.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">#include <uves_raw_types.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">#include <uves_pro_types.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment">#include <uves_functions.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__rcosmic.html#ga940ab9e0385afa1268c588e9aa836451" title="Setup the recipe options.">uves_utl_rcosmic_create</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__rcosmic.html#gaa68234d2c406b6364833a3ad4149527c" title="Execute the plugin instance given by the interface.">uves_utl_rcosmic_exec</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__rcosmic.html#ga49eb605c1cc3b32055a86debc26c0bf8" title="Destroy what has been created by the 'create' function.">uves_utl_rcosmic_destroy</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__rcosmic.html#ga4cd36a4feb367778454485205928db66" title="Get the command line options and execute the data reduction.">uves_utl_rcosmic</a>(cpl_parameterlist *, cpl_frameset *) ;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="keyword">static</span> <span class="keywordtype">char</span> uves_utl_rcosmic_description[] =</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="stringliteral">"This recipe performs image computation.\n"</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="stringliteral">"The input files are two images\n"</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="stringliteral">"one (containing cosmic ray hits) with associated tag RAW_IMA.\n"</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="stringliteral">"[optional] a bias frame with tag  BIAS_BLUE or BIAS_RED.\n"</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="stringliteral">"The output is the image cleaned from CRHs\n"</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="stringliteral">"Information on relevant parameters can be found with\n"</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="stringliteral">"esorex --params uves_utl_rcosmic\n"</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="stringliteral">"esorex --help uves_utl_rcosmic\n"</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="stringliteral">"\n"</span>;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">                                Functions code</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="group__uves__utl__rcosmic.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693">  101</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist * list)</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> {</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     cpl_recipe  *   recipe = cpl_calloc(1, <span class="keyword">sizeof</span> *recipe ) ;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     cpl_plugin  *   plugin = &recipe->interface ;</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     cpl_plugin_init(plugin,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                     CPL_PLUGIN_API,</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>                     UVES_BINARY_VERSION,</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>                     CPL_PLUGIN_TYPE_RECIPE,</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>                     <span class="stringliteral">"uves_utl_rcosmic"</span>,</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>                     <span class="stringliteral">"Remove CRHs from an image"</span>,</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                     uves_utl_rcosmic_description,</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>                     <span class="stringliteral">"Andrea Modigliani"</span>,</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>                     <span class="stringliteral">"Andrea.Modigliani at eso.org"</span>,</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>                     <a class="code" href="group__uves__utils.html#gae14eb4ed643b704af7b942f55eac9575" title="Get the pipeline copyright and license.">uves_get_license</a>(),</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                     <a class="code" href="group__uves__utl__rcosmic.html#ga940ab9e0385afa1268c588e9aa836451" title="Setup the recipe options.">uves_utl_rcosmic_create</a>,</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                     <a class="code" href="group__uves__utl__rcosmic.html#gaa68234d2c406b6364833a3ad4149527c" title="Execute the plugin instance given by the interface.">uves_utl_rcosmic_exec</a>,</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                     <a class="code" href="group__uves__utl__rcosmic.html#ga49eb605c1cc3b32055a86debc26c0bf8" title="Destroy what has been created by the 'create' function.">uves_utl_rcosmic_destroy</a>) ;</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     cpl_pluginlist_append(list, plugin) ;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> }</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno"><a class="code" href="group__uves__utl__rcosmic.html#ga940ab9e0385afa1268c588e9aa836451">  135</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__rcosmic.html#ga940ab9e0385afa1268c588e9aa836451" title="Setup the recipe options.">uves_utl_rcosmic_create</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> {</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     cpl_recipe      * recipe ;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     cpl_parameter   * p ;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     cpl_error_reset();</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     <a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e" title="Reset IRPLIB state.">irplib_reset</a>();</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="comment">/* Create the parameters list in the cpl_recipe object */</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     recipe->parameters = cpl_parameterlist_new() ; </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     <span class="comment">/* Fill the parameters list */</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     <span class="comment">/* --stropt */</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_rcosmic.sky_mean"</span>, </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>                                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>                                 <span class="stringliteral">"Mean sky value [ADUs]"</span>, </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>                                 <span class="stringliteral">"uves.uves_utl_rcosmic"</span>,10.);</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"sky_mean"</span>) ;</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <span class="comment">/* --doubleopt */</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_rcosmic.ron"</span>, </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>                 <span class="stringliteral">"RON [ADU]"</span>,</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>                 <span class="stringliteral">"uves.uves_utl_rcosmic"</span>, 3.) ;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"ron"</span>) ;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_rcosmic.gain"</span>, </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>                 <span class="stringliteral">"Detector gain"</span>,</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>                 <span class="stringliteral">"uves.uves_utl_rcosmic"</span>, 0.7) ;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"gain"</span>) ;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_rcosmic.kappa"</span>,</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>                 CPL_TYPE_INT, </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>                 <span class="stringliteral">"Kappa value in kappa-sigma CRH clip"</span>,</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>                 <span class="stringliteral">"uves.uves_utl_rcosmic"</span>,5) ;</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"kappa"</span>) ;</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_rcosmic.nc"</span>,</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>                 CPL_TYPE_INT, </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>                 <span class="stringliteral">" critical ratio for discrimination of objects and cosmic rays"</span>,</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                 <span class="stringliteral">"uves.uves_utl_rcosmic"</span>,5) ;</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"nc"</span>) ;</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>  </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     <span class="comment">/* Return */</span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> }</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno"><a class="code" href="group__uves__utl__rcosmic.html#gaa68234d2c406b6364833a3ad4149527c">  204</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__rcosmic.html#gaa68234d2c406b6364833a3ad4149527c" title="Execute the plugin instance given by the interface.">uves_utl_rcosmic_exec</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> {</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>     cpl_recipe  *   recipe ;</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>      <span class="keywordtype">int</span> code=0;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>      cpl_errorstate initial_errorstate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     cpl_error_reset();</div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     <a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e" title="Reset IRPLIB state.">irplib_reset</a>();</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     code = <a class="code" href="group__uves__utl__rcosmic.html#ga4cd36a4feb367778454485205928db66" title="Get the command line options and execute the data reduction.">uves_utl_rcosmic</a>(recipe->parameters, recipe->frames) ;</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(initial_errorstate)) {                      </div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>         <span class="comment">/* Dump the error history since recipe execution start.                </span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">           At this point the recipe cannot recover from the error */</span>           </div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>         cpl_errorstate_dump(initial_errorstate, CPL_FALSE, NULL);              </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     } </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     <span class="keywordflow">return</span> code ;</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> }</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno"><a class="code" href="group__uves__utl__rcosmic.html#ga49eb605c1cc3b32055a86debc26c0bf8">  235</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__rcosmic.html#ga49eb605c1cc3b32055a86debc26c0bf8" title="Destroy what has been created by the 'create' function.">uves_utl_rcosmic_destroy</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> {</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     cpl_recipe  *   recipe ;</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     cpl_parameterlist_delete(recipe->parameters) ; </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> }</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00257"></a><span class="lineno"><a class="code" href="group__uves__utl__rcosmic.html#ga4cd36a4feb367778454485205928db66">  257</a></span> <a class="code" href="group__uves__utl__rcosmic.html#ga4cd36a4feb367778454485205928db66" title="Get the command line options and execute the data reduction.">uves_utl_rcosmic</a>( cpl_parameterlist   *   parlist, </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>         cpl_frameset        *   framelist)</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> {</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     cpl_parameter       *   param= NULL ;</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     cpl_frameset * raw_on=NULL;</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     cpl_frameset * raw_off=NULL;</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     <span class="keywordtype">double</span> sky_mean=0;</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     <span class="keywordtype">double</span> ron=0;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     <span class="keywordtype">double</span> gain=0;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     <span class="keywordtype">int</span> kappa=0;</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     <span class="keywordtype">int</span> nc=0;</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     <span class="keywordtype">int</span> nraw=0;</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     cpl_image* ima_res=NULL;</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     cpl_image* ima_on=NULL;</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     cpl_image* ima_off=NULL;</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     cpl_image* ima_flt=NULL;</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     cpl_image* ima_msk=NULL;</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> </div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     cpl_size next1=0;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* name1=NULL;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span> </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     cpl_size next2=0;</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* name2=NULL;</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> </div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     <span class="keywordtype">int</span> noff=0;</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     cpl_propertylist* plist1=NULL;</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     cpl_propertylist* plist2=NULL;</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     cpl_propertylist* pliste=NULL;</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* name_r=<span class="stringliteral">"ima_res.fits"</span>;</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     cpl_frame* product_frame=NULL;</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     cpl_frame* frame_on=NULL;</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     cpl_frame* frame_off=NULL;</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     <span class="keywordtype">int</span> chips=0;</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     <span class="keywordtype">int</span> nfrm=0;</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>   </div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Welcome to UVES Pipeline release %d.%d.%d"</span>,</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>         UVES_MAJOR_VERSION,UVES_MINOR_VERSION,UVES_MICRO_VERSION);</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     <span class="comment">/* HOW TO RETRIEVE INPUT PARAMETERS */</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist, </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>                                              <span class="stringliteral">"uves.uves_utl_rcosmic.sky_mean"</span>));</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sky_mean=cpl_parameter_get_double(param));</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist,</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                                              <span class="stringliteral">"uves.uves_utl_rcosmic.ron"</span>));</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ron = cpl_parameter_get_double(param)) ;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist,</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>                                              <span class="stringliteral">"uves.uves_utl_rcosmic.gain"</span>));</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(gain = cpl_parameter_get_double(param)) ;</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span> </div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist,</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>                                              <span class="stringliteral">"uves.uves_utl_rcosmic.kappa"</span>));</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(kappa = cpl_parameter_get_int(param)) ;</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist,</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>                                              <span class="stringliteral">"uves.uves_utl_rcosmic.nc"</span>));</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nc = cpl_parameter_get_int(param)) ;</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span> </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     <span class="comment">/* Identify the RAW and CALIB frames in the input frameset */</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_dfs_set_groups(framelist),</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>          <span class="stringliteral">"Cannot identify RAW and CALIB frames"</span>) ;</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     <span class="comment">//cpl_frameset_dump(framelist,stdout);</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     <span class="comment">/* HOW TO ACCESS INPUT DATA */</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     nfrm=cpl_frameset_get_size(framelist);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     <span class="keywordflow">if</span>(nfrm<1) {</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Empty input frame list!"</span>);</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>       <span class="keywordflow">goto</span> cleanup ;</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     }</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     <span class="comment">/* HOW TO ACCESS INPUT DATA */</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(raw_on=cpl_frameset_new());</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_contains_frames_kind(framelist,raw_on,<span class="stringliteral">"RAW_IMA"</span>),</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>      <span class="stringliteral">"Found no input frames with tag %s"</span>,<span class="stringliteral">"RAW_IMA"</span>);</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nraw=cpl_frameset_get_size(raw_on));</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     <span class="keywordflow">if</span> (nraw<1) {</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Found no input frames with tag %s"</span>,<span class="stringliteral">"RAW_IMA"</span>);</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>       <span class="keywordflow">goto</span> cleanup;</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     }</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"nraw=%d"</span>,nraw);</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(frame_on=cpl_frameset_get_first(raw_on));</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(next1=cpl_frame_get_nextensions(frame_on));</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(name1=cpl_frame_get_filename(frame_on));</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(plist1=cpl_propertylist_load(name1,0));</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"CRH affected file name =%s"</span>,name1);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> </div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     <span class="keywordflow">if</span> (nfrm>1) {</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>       <span class="comment">/* if input has more than a frame, search for bias */</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(raw_off=cpl_frameset_new());</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>  </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>       chips=cpl_propertylist_get_int(plist1,<span class="stringliteral">"ESO DET CHIPS"</span>);</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>       <span class="comment">/* deal with BLUE/RED arms and search for proper bias*/</span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>       <span class="keywordflow">if</span>(chips==2) {</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_contains_frames_kind(framelist,raw_off,<span class="stringliteral">"BIAS_RED"</span>),</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>           <span class="stringliteral">"Found no input frames with tag %s"</span>,<span class="stringliteral">"BIAS_RED"</span>);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_contains_frames_kind(framelist,raw_off,<span class="stringliteral">"BIAS_BLUE"</span>),</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>           <span class="stringliteral">"Found no input frames with tag %s"</span>,<span class="stringliteral">"BIAS_BLUE"</span>);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>       }</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>  </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(noff=cpl_frameset_get_size(raw_off));</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>       <span class="keywordflow">if</span> (noff<1) {</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Found no input bias frames"</span>);</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>       </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     frame_off=cpl_frameset_get_first(raw_off);</div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     next2=cpl_frame_get_nextensions(frame_off);</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>         <span class="comment">/* check that raw frame and bias are coherent else exit */</span></div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>         <span class="keywordflow">if</span>(next2 != next1) {</div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Raw frames with different number of extensions"</span>);</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Something wrong! Exit"</span>);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>           <span class="keywordflow">goto</span> cleanup;</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     }</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     name2=cpl_frame_get_filename(frame_off);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Bias file name =%s"</span>,name2);</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_save(NULL, name_r,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                    plist1,CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span> </div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>         <span class="comment">/* subtract bias on each extension */</span></div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     <span class="keywordflow">if</span>(next1==0) {</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>           <span class="comment">/*  </span></div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> <span class="comment">             subtract bias, </span></div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="comment">             correct for cosmics, </span></div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span> <span class="comment">             save result </span></div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> <span class="comment">          */</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span> </div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_on=cpl_image_load(name1,CPL_TYPE_FLOAT,0,0));</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_off=cpl_image_load(name2,CPL_TYPE_FLOAT,0,0));</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_subtract(ima_on,ima_off));</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>       cpl_image_save(ima_on,<span class="stringliteral">"image_with_crh.fits"</span>,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>              NULL,CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>    </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__utils.html#gaaed2a3318adb62b1725bc28273757e58" title="Remove cosmic ray events on single ccd exposure and replace them by interpolation on neighbourhood pi...">uves_rcosmic</a>(ima_on,&ima_flt,&ima_res,&ima_msk,</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>                  sky_mean,ron,gain,kappa,nc),</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>         <span class="stringliteral">"fail to remove CRHs"</span>);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span> </div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_add(ima_res,ima_off));</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> </div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_save(ima_res, name_r,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                      plist1,CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"next=%d"</span>,next1);</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>           <span class="comment">/* loop over extensions, </span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span> <span class="comment">             subtract bias, </span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="comment">             correct for cosmics, </span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="comment">             save result </span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="comment">          */</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span> </div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span> </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>       <span class="keywordflow">for</span>(i=1;i<=next1;i++) {</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"name1=%s"</span>,name1);</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"name2=%s"</span>,name2);</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_on=cpl_image_load(name1,CPL_TYPE_FLOAT,0,i));</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span> </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pliste=cpl_propertylist_load(name1,i));</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span> </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>         <span class="keywordflow">if</span>(next2==0) {</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_off=cpl_image_load(name2,CPL_TYPE_FLOAT,0,0));</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_off=cpl_image_load(name2,CPL_TYPE_FLOAT,0,i));</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>         }</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"ima_on=%p ima_off=%p"</span>,ima_on,ima_off);</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_subtract(ima_on,ima_off));</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>         cpl_image_save(ima_on,<span class="stringliteral">"image_with_crh.fits"</span>,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>                NULL,CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>    </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__utils.html#gaaed2a3318adb62b1725bc28273757e58" title="Remove cosmic ray events on single ccd exposure and replace them by interpolation on neighbourhood pi...">uves_rcosmic</a>(ima_on,&ima_flt,&ima_res,&ima_msk,</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>                    sky_mean,ron,gain,kappa,nc),</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>           <span class="stringliteral">"fail to remove CRHs"</span>);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_add(ima_res,ima_off));</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>  </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>         <span class="keywordflow">if</span>(i>0) {</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_save(ima_res, name_r,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                      pliste,CPL_IO_EXTEND));</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>         }</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>         uves_free_image(&ima_on);</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>         uves_free_image(&ima_off);</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>         uves_free_image(&ima_flt);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>         uves_free_image(&ima_res);</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>         cpl_propertylist_delete(pliste); pliste=NULL; </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>  </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>       }</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span> </div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span> </div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     }</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>       }</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>       uves_free_frameset(&raw_off);</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>       uves_free_frameset(&raw_on);</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span> </div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span> </div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Please, provide a bias frame. Exit."</span>);</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>       <span class="keywordflow">goto</span> cleanup;</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     }</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> </div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     <span class="comment">/* HOW TO SAVE A PRODUCT ON DISK  */</span></div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     <span class="comment">/* Set the file name */</span></div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     name_r = <span class="stringliteral">"ima_res.fits"</span> ;</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     <span class="comment">/* Create product frame */</span></div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(product_frame = cpl_frame_new());</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_filename(product_frame, name_r)) ;</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_tag(product_frame, <span class="stringliteral">"PRODUCT"</span>)) ;</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_type(product_frame, CPL_FRAME_TYPE_IMAGE)) ;</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_group(product_frame, CPL_FRAME_GROUP_PRODUCT)) ;</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_frame_set_level(product_frame, CPL_FRAME_LEVEL_FINAL),</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>       <span class="stringliteral">"Error while initialising the product frame"</span>) ;</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>     </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     <span class="comment">/* Add DataFlow keywords */</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_propertylist_erase_regexp(plist1, <span class="stringliteral">"^ESO PRO CATG"</span>,0));</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> <span class="comment">    check(cpl_dfs_setup_product_header(plist1, </span></div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> <span class="comment">                                       product_frame, </span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="comment">                                       framelist, </span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="comment">                                       parlist,</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> <span class="comment">                                       "uves_utl_rcosmic", </span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span> <span class="comment">                                       "UVES", </span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span> <span class="comment">                                       DICTIONARY),</span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span> <span class="comment">      "Problem in the product DFS-compliance") ;</span></div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     <span class="comment">/* Save the file </span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> <span class="comment">    check(cpl_image_save(ima_res, </span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <span class="comment">                         name_r, </span></div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span> <span class="comment">                         CPL_BPP_IEEE_FLOAT, </span></div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> <span class="comment">                         plist1,</span></div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="comment">                         CPL_IO_DEFAULT),</span></div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment">      "Could not save product");</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     cpl_propertylist_delete(plist1) ; plist1=NULL;</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>     <span class="comment">/* Log the saved file in the input frameset */</span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frameset_insert(framelist, product_frame)) ;</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> </div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> </div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>  cleanup:</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>      uves_free_frameset(&raw_on);</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>      uves_free_frameset(&raw_off);</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>      uves_free_image(&ima_on);</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>      uves_free_image(&ima_off);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>      <span class="comment">/* the following image cannot be erased</span></div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> <span class="comment">      uves_free_image(&ima_msk);</span></div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>      uves_free_image(&ima_flt);</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>      uves_free_image(&ima_res);</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> </div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>      <span class="keywordflow">if</span>(pliste!=NULL) cpl_propertylist_delete(pliste); pliste=NULL; </div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> </div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>      <span class="keywordflow">if</span> (plist1!=NULL) cpl_propertylist_delete(plist1);plist1=NULL;</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>      <span class="keywordflow">if</span> (plist2!=NULL) cpl_propertylist_delete(plist2);plist2=NULL;</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> </div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>     <span class="comment">/* This is usually freed by esorex: but what about if errors occurs?</span></div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> <span class="comment">    uves_free_frame(&product_frame) ;</span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span> </div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>     <span class="keywordflow">if</span> (cpl_error_get_code()) {</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>         <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>     }</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__utl__remove__crh__single_8c_source.html b/html/uves__utl__remove__crh__single_8c_source.html
deleted file mode 100644
index 35e95a0..0000000
--- a/html/uves__utl__remove__crh__single_8c_source.html
+++ /dev/null
@@ -1,582 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_utl_remove_crh_single.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_utl_remove_crh_single.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: uves_utl_remove_crh_single.c,v 1.4 2012-05-09 12:50:33 amodigli Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the UVES Pipeline</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2002,2003 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2012-05-09 12:50:33 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.4 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/* cpl */</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/* irplib */</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <irplib_utils.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">#include <uves_tpl_utils.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">#include <uves_key_names.h></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">#include <uves_raw_types.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment">#include <uves_pro_types.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment">#include <uves_functions.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> </div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_remove_crh_single.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__remove__crh__single.html#ga05031cc6c2fa53d8083fd51ee62ac2a9" title="Setup the recipe options.">uves_utl_remove_crh_single_create</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__remove__crh__single.html#ga8e95dd4390ec7d77c17a8f649f7758ff" title="Execute the plugin instance given by the interface.">uves_utl_remove_crh_single_exec</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__remove__crh__single.html#ga824f6d04d13d57ea573e9cd21ca74900" title="Destroy what has been created by the 'create' function.">uves_utl_remove_crh_single_destroy</a>(cpl_plugin *) ;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__remove__crh__single.html#gab497c9910c4b906bed52ccc1d3ad9d79" title="Get the command line options and execute the data reduction.">uves_utl_remove_crh_single</a>(cpl_parameterlist *, cpl_frameset *) ;</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">                            Static variables</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="keyword">static</span> <span class="keywordtype">char</span> uves_utl_remove_crh_single_description[] =</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="stringliteral">"This recipe performs image computation.\n"</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="stringliteral">"The input files is one image\n"</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="stringliteral">"their associated tags should be IMA.\n"</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="stringliteral">"The output is the image cleaned from CRHs\n"</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="stringliteral">"Information on relevant parameters can be found with\n"</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="stringliteral">"esorex --params uves_utl_remove_crh_single\n"</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="stringliteral">"esorex --help uves_utl_remove_crh_single\n"</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="stringliteral">"\n"</span>;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">                                Functions code</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> ----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="group__uves__utl__remove__crh__single.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693">  101</a></span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist * list)</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> {</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     cpl_recipe  *   recipe = cpl_calloc(1, <span class="keyword">sizeof</span> *recipe ) ;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     cpl_plugin  *   plugin = &recipe->interface ;</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     cpl_plugin_init(plugin,</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>                     CPL_PLUGIN_API,</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>                     UVES_BINARY_VERSION,</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>                     CPL_PLUGIN_TYPE_RECIPE,</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>                     <span class="stringliteral">"uves_utl_remove_crh_single"</span>,</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>                     <span class="stringliteral">"Remove CRHs from an image"</span>,</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                     uves_utl_remove_crh_single_description,</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>                     <span class="stringliteral">"Andrea Modigliani"</span>,</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>                     <span class="stringliteral">"Andrea.Modigliani at eso.org"</span>,</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>                     <a class="code" href="group__uves__utils.html#gae14eb4ed643b704af7b942f55eac9575" title="Get the pipeline copyright and license.">uves_get_license</a>(),</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                     <a class="code" href="group__uves__utl__remove__crh__single.html#ga05031cc6c2fa53d8083fd51ee62ac2a9" title="Setup the recipe options.">uves_utl_remove_crh_single_create</a>,</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                     <a class="code" href="group__uves__utl__remove__crh__single.html#ga8e95dd4390ec7d77c17a8f649f7758ff" title="Execute the plugin instance given by the interface.">uves_utl_remove_crh_single_exec</a>,</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                     <a class="code" href="group__uves__utl__remove__crh__single.html#ga824f6d04d13d57ea573e9cd21ca74900" title="Destroy what has been created by the 'create' function.">uves_utl_remove_crh_single_destroy</a>) ;</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     cpl_pluginlist_append(list, plugin) ;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> }</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno"><a class="code" href="group__uves__utl__remove__crh__single.html#ga05031cc6c2fa53d8083fd51ee62ac2a9">  135</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__remove__crh__single.html#ga05031cc6c2fa53d8083fd51ee62ac2a9" title="Setup the recipe options.">uves_utl_remove_crh_single_create</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> {</div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     cpl_recipe      * recipe ;</div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>     cpl_parameter   * p ;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     cpl_error_reset();</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     <a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e" title="Reset IRPLIB state.">irplib_reset</a>();</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> </div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     <span class="comment">/* Create the parameters list in the cpl_recipe object */</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>     recipe->parameters = cpl_parameterlist_new() ; </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>     <span class="comment">/* Fill the parameters list */</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     <span class="comment">/* --stropt */</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_remove_crh_single.crh_frac_max"</span>, </div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>                                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>                                 <span class="stringliteral">"Maximum fraction of allowed CRHs"</span>, </div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>                                 <span class="stringliteral">"uves.uves_utl_remove_crh_single"</span>,0.7);</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"crh_frac_max"</span>) ;</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <span class="comment">/* --doubleopt */</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_remove_crh_single.sigma_lim"</span>, </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>                 <span class="stringliteral">"Maximum sigma in kappa-sigma clip"</span>,</div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>                 <span class="stringliteral">"uves.uves_utl_remove_crh_single"</span>, 25.) ;</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"sigma_lim"</span>) ;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> </div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_remove_crh_single.f_lim"</span>, </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>                 <span class="stringliteral">"Max fraction of bad pixels allowed"</span>,</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>                 <span class="stringliteral">"uves.uves_utl_remove_crh_single"</span>, 0.7) ;</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"f_lim"</span>) ;</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_remove_crh_single.max_iter"</span>,</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span>                 CPL_TYPE_INT, </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span>                 <span class="stringliteral">"Max fraction of bad pixels allowed"</span>,</div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>                 <span class="stringliteral">"uves.uves_utl_remove_crh_single"</span>,5) ;</div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"max_iter"</span>) ;</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> </div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_remove_crh_single.gain"</span>,</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                 <span class="stringliteral">"Detector's gain"</span>,</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                 <span class="stringliteral">"uves.uves_utl_remove_crh_single"</span>,2.42) ;</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"gain"</span>) ;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> </div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     p = cpl_parameter_new_value(<span class="stringliteral">"uves.uves_utl_remove_crh_single.ron"</span>,</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span>                 CPL_TYPE_DOUBLE, </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>                 <span class="stringliteral">"Detector's ron"</span>,</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>                 <span class="stringliteral">"uves.uves_utl_remove_crh_single"</span>,1.) ;</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, <span class="stringliteral">"ron"</span>) ;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     cpl_parameterlist_append(recipe->parameters, p) ;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> </div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>  </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>     <span class="comment">/* Return */</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>     <span class="keywordflow">return</span> 0;</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> }</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> </div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno"><a class="code" href="group__uves__utl__remove__crh__single.html#ga8e95dd4390ec7d77c17a8f649f7758ff">  215</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__remove__crh__single.html#ga8e95dd4390ec7d77c17a8f649f7758ff" title="Execute the plugin instance given by the interface.">uves_utl_remove_crh_single_exec</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> {</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     cpl_recipe  *   recipe ;</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>      <span class="keywordtype">int</span> code=0;</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>      cpl_errorstate initial_errorstate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>     cpl_error_reset();</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>     <a class="code" href="group__irplib__utils.html#gaf9d392144014e2363054bc3f83c8e47e" title="Reset IRPLIB state.">irplib_reset</a>();</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     code = <a class="code" href="group__uves__utl__remove__crh__single.html#gab497c9910c4b906bed52ccc1d3ad9d79" title="Get the command line options and execute the data reduction.">uves_utl_remove_crh_single</a>(recipe->parameters, recipe->frames) ;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> </div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <span class="keywordflow">if</span> (!cpl_errorstate_is_equal(initial_errorstate)) {                      </div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>         <span class="comment">/* Dump the error history since recipe execution start.                </span></div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment">           At this point the recipe cannot recover from the error */</span>           </div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         cpl_errorstate_dump(initial_errorstate, CPL_FALSE, NULL);              </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     } </div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <span class="keywordflow">return</span> code ;</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> }</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00246"></a><span class="lineno"><a class="code" href="group__uves__utl__remove__crh__single.html#ga824f6d04d13d57ea573e9cd21ca74900">  246</a></span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__utl__remove__crh__single.html#ga824f6d04d13d57ea573e9cd21ca74900" title="Destroy what has been created by the 'create' function.">uves_utl_remove_crh_single_destroy</a>(cpl_plugin * plugin)</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> {</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     cpl_recipe  *   recipe ;</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     <span class="comment">/* Get the recipe out of the plugin */</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     <span class="keywordflow">if</span> (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE) </div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>         recipe = (cpl_recipe *)plugin ;</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="keywordflow">else</span> <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> </div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     cpl_parameterlist_delete(recipe->parameters) ; </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> }</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="comment">/*---------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> <span class="keyword">static</span> <span class="keywordtype">int</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno"><a class="code" href="group__uves__utl__remove__crh__single.html#gab497c9910c4b906bed52ccc1d3ad9d79">  268</a></span> <a class="code" href="group__uves__utl__remove__crh__single.html#gab497c9910c4b906bed52ccc1d3ad9d79" title="Get the command line options and execute the data reduction.">uves_utl_remove_crh_single</a>( cpl_parameterlist   *   parlist, </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>         cpl_frameset        *   framelist)</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> {</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     cpl_parameter       *   param= NULL ;</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     cpl_frameset * raw_on=NULL;</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     cpl_frameset * raw_off=NULL;</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     <span class="keywordtype">double</span> crh_frac_max=0;</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     <span class="keywordtype">double</span> sigma_lim=0;</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     <span class="keywordtype">double</span> f_lim=0;</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     <span class="keywordtype">int</span> max_iter=0;</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     <span class="keywordtype">double</span> gain=0;</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     <span class="keywordtype">double</span> ron=0;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     <span class="keywordtype">int</span> nraw=0;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>    </div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     cpl_image* ima_res=NULL;</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     cpl_image* ima_on=NULL;</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     cpl_image* ima_off=NULL;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     cpl_propertylist* plist1=NULL;</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     cpl_propertylist* plist2=NULL;</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     cpl_propertylist* pliste=NULL;</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* name_r=<span class="stringliteral">"ima_res.fits"</span>;</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> </div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     cpl_frame* product_frame=NULL;</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     cpl_frame* frame_on=NULL;</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     cpl_frame* frame_off=NULL;</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     cpl_size next1=0;</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* name1=NULL;</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     cpl_size next2=0;</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* name2=NULL;</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <span class="keywordtype">int</span> noff=0;</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="keywordtype">int</span> chips=0;</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     <span class="keywordtype">int</span> nfrm=0;</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     <span class="keywordtype">int</span> i=0;</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>   </div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Welcome to UVES Pipeline release %d.%d.%d"</span>,</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>         UVES_MAJOR_VERSION,UVES_MINOR_VERSION,UVES_MICRO_VERSION);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="comment">/* HOW TO RETRIEVE INPUT PARAMETERS */</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist, </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>                                              <span class="stringliteral">"uves.uves_utl_remove_crh_single.crh_frac_max"</span>));</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(crh_frac_max=cpl_parameter_get_double(param));</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist,</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                                              <span class="stringliteral">"uves.uves_utl_remove_crh_single.sigma_lim"</span>));</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(sigma_lim = cpl_parameter_get_double(param)) ;</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                                              <span class="stringliteral">"uves.uves_utl_remove_crh_single.f_lim"</span>));</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(f_lim = cpl_parameter_get_double(param)) ;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist,</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>                                              <span class="stringliteral">"uves.uves_utl_remove_crh_single.max_iter"</span>));</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(max_iter = cpl_parameter_get_int(param)) ;</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> </div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist,</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>                                              <span class="stringliteral">"uves.uves_utl_remove_crh_single.gain"</span>));</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(gain = cpl_parameter_get_double(param)) ;</div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> </div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(param=cpl_parameterlist_find(parlist,</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>                                              <span class="stringliteral">"uves.uves_utl_remove_crh_single.ron"</span>));</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ron = cpl_parameter_get_double(param)) ;</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>   </div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> </div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     <span class="comment">/* Identify the RAW and CALIB frames in the input frameset */</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_dfs_set_groups(framelist),</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>          <span class="stringliteral">"Cannot identify RAW and CALIB frames"</span>) ;</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     <span class="comment">//cpl_frameset_dump(framelist,stdout);</span></div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span> </div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     <span class="comment">/* HOW TO ACCESS INPUT DATA */</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     nfrm=cpl_frameset_get_size(framelist);</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     <span class="keywordflow">if</span>(nfrm<1) {</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Empty input frame list!"</span>);</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>       <span class="keywordflow">goto</span> cleanup ;</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>     }</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> </div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     <span class="comment">/* HOW TO ACCESS INPUT DATA */</span></div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(raw_on=cpl_frameset_new());</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span> </div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_contains_frames_kind(framelist,raw_on,<span class="stringliteral">"RAW_IMA"</span>),</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>      <span class="stringliteral">"Found no input frames with tag %s"</span>,<span class="stringliteral">"RAW_IMA"</span>);</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(nraw=cpl_frameset_get_size(raw_on));</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     <span class="keywordflow">if</span> (nraw<1) {</div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Found no input frames with tag %s"</span>,<span class="stringliteral">"RAW_IMA"</span>);</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>       <span class="keywordflow">goto</span> cleanup;</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>     }</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"nraw=%d"</span>,nraw);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span> </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(frame_on=cpl_frameset_get_first(raw_on));</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(next1=cpl_frame_get_nextensions(frame_on));</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(name1=cpl_frame_get_filename(frame_on));</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(plist1=cpl_propertylist_load(name1,0));</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"CRH affected file name =%s"</span>,name1);</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> </div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     <span class="keywordflow">if</span> (nfrm>1) {</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>       <span class="comment">/* if input has more than a frame, search for bias */</span></div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(raw_off=cpl_frameset_new());</div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>  </div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>       chips=cpl_propertylist_get_int(plist1,<span class="stringliteral">"ESO DET CHIPS"</span>);</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>       <span class="comment">/* deal with BLUE/RED arms and search for proper bias*/</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>       <span class="keywordflow">if</span>(chips==2) {</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_contains_frames_kind(framelist,raw_off,<span class="stringliteral">"BIAS_RED"</span>),</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>           <span class="stringliteral">"Found no input frames with tag %s"</span>,<span class="stringliteral">"BIAS_RED"</span>);</div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(uves_contains_frames_kind(framelist,raw_off,<span class="stringliteral">"BIAS_BLUE"</span>),</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>           <span class="stringliteral">"Found no input frames with tag %s"</span>,<span class="stringliteral">"BIAS_BLUE"</span>);</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>       }</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>  </div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(noff=cpl_frameset_get_size(raw_off));</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>       <span class="keywordflow">if</span> (noff<1) {</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Found no input bias frames"</span>);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>       </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     frame_off=cpl_frameset_get_first(raw_off);</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     next2=cpl_frame_get_nextensions(frame_off);</div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>         <span class="comment">/* check that raw frame and bias are coherent else exit */</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         <span class="keywordflow">if</span>(next2 != next1) {</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Raw frames with different number of extensions"</span>);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>       <a class="code" href="group__uves__msg.html#ga85ffbceb46903c0532510fa0aa73d61b" title="Print an error message.">uves_msg_error</a>(<span class="stringliteral">"Something wrong! Exit"</span>);</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>           <span class="keywordflow">goto</span> cleanup;</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     }</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span>     name2=cpl_frame_get_filename(frame_off);</div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Bias file name =%s"</span>,name2);</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_save(NULL, name_r,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>                    plist1,CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>         <span class="comment">/* subtract bias on each extension */</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     <span class="keywordflow">if</span>(next1==0) {</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>           <span class="comment">/*  </span></div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> <span class="comment">             subtract bias, </span></div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span> <span class="comment">             correct for cosmics, </span></div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span> <span class="comment">             save result </span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span> <span class="comment">          */</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> </div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_on=cpl_image_load(name1,CPL_TYPE_FLOAT,0,0));</div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_off=cpl_image_load(name2,CPL_TYPE_FLOAT,0,0));</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_subtract(ima_on,ima_off));</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span> </div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>       cpl_image_save(ima_on,<span class="stringliteral">"image_with_crh.fits"</span>,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>              NULL,CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>    </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span> </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(ima_res=<a class="code" href="group__uves__remove__crh__single.html#ga7e6109abce4aa245c65f9cf39e1c8c8a">uves_remove_crh_single</a>(ima_on,crh_frac_max,</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>                                                  sigma_lim,f_lim,</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>                          max_iter,gain,ron),</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>           <span class="stringliteral">"fail to remove CRHs"</span>);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_add(ima_res,ima_off));</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>       </div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_save(ima_res, name_r,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>                      plist1,CPL_IO_DEFAULT));</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"next=%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,next1);</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>           <span class="comment">/* loop over extensions, </span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment">             subtract bias, </span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> <span class="comment">             correct for cosmics, </span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="comment">             save result </span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="comment">          */</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> </div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> </div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>       <span class="keywordflow">for</span>(i=1;i<=next1;i++) {</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"name1=%s"</span>,name1);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"name2=%s"</span>,name2);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_on=cpl_image_load(name1,CPL_TYPE_FLOAT,0,i));</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> </div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(pliste=cpl_propertylist_load(name1,i));</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>         <span class="keywordflow">if</span>(next2==0) {</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_off=cpl_image_load(name2,CPL_TYPE_FLOAT,0,0));</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> </div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>         } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(ima_off=cpl_image_load(name2,CPL_TYPE_FLOAT,0,i));</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>         }</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"ima_on=%p ima_off=%p"</span>,ima_on,ima_off);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_subtract(ima_on,ima_off));</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span> </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>         cpl_image_save(ima_on,<span class="stringliteral">"image_with_crh.fits"</span>,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>                NULL,CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>    </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(ima_res=<a class="code" href="group__uves__remove__crh__single.html#ga7e6109abce4aa245c65f9cf39e1c8c8a">uves_remove_crh_single</a>(ima_on,crh_frac_max,</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                                                  sigma_lim,f_lim,</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>                          max_iter,gain,ron),</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>           <span class="stringliteral">"fail to remove CRHs"</span>);</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span> </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_add(ima_res,ima_off));</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span> </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>  </div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>         <span class="keywordflow">if</span>(i>0) {</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>           <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_image_save(ima_res, name_r,CPL_BPP_IEEE_FLOAT,</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>                      pliste,CPL_IO_EXTEND));</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>         }</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>         uves_free_image(&ima_on);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>         uves_free_image(&ima_off);</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>         uves_free_image(&ima_res);</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>         cpl_propertylist_delete(pliste); pliste=NULL; </div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>  </div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>       }</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span> </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span> </div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     }</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>       }</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span> </div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>       uves_free_frameset(&raw_off);</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>       uves_free_frameset(&raw_on);</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span> </div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Please, provide a bias frame. Exit."</span>);</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>       <span class="keywordflow">goto</span> cleanup;</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     }</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>  </div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span> </div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     <span class="comment">/* HOW TO SAVE A PRODUCT ON DISK  */</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     <span class="comment">/* Set the file name */</span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>  </div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     <span class="comment">/* Create product frame */</span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(product_frame = cpl_frame_new());</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_filename(product_frame, name_r)) ;</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_tag(product_frame, <span class="stringliteral">"PRODUCT"</span>)) ;</div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_type(product_frame, CPL_FRAME_TYPE_IMAGE)) ;</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frame_set_group(product_frame, CPL_FRAME_GROUP_PRODUCT)) ;</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(cpl_frame_set_level(product_frame, CPL_FRAME_LEVEL_FINAL),</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>       <span class="stringliteral">"Error while initialising the product frame"</span>) ;</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>     </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>     <span class="comment">/* Add DataFlow keywords */</span></div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_propertylist_erase_regexp(plist1, <span class="stringliteral">"^ESO PRO CATG"</span>,0));</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="comment">    check(cpl_dfs_setup_product_header(plist, </span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="comment">                                       product_frame, </span></div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="comment">                                       framelist, </span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">                                       parlist,</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="comment">                                       "uves_utl_remove_crh_single", </span></div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="comment">                                       "UVES", </span></div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="comment">                                       DICTIONARY),</span></div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> <span class="comment">      "Problem in the product DFS-compliance") ;</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     <span class="comment">/* Save the file </span></div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> <span class="comment">    check(cpl_image_save(ima_res, </span></div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> <span class="comment">                         name_r, </span></div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <span class="comment">                         CPL_BPP_IEEE_FLOAT, </span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span> <span class="comment">                         plist1,</span></div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span> <span class="comment">                         CPL_IO_DEFAULT),</span></div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="comment">      "Could not save product");</span></div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     cpl_propertylist_delete(plist1) ; plist1=NULL;</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> </div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>     <span class="comment">/* Log the saved file in the input frameset */</span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(cpl_frameset_insert(framelist, product_frame)) ;</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> </div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span> </div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>  cleanup:</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>      uves_free_frameset(&raw_off);</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>      uves_free_image(&ima_on);</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>      uves_free_image(&ima_off);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>      uves_free_image(&ima_res);</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span> </div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>      <span class="keywordflow">if</span>(pliste!=NULL) cpl_propertylist_delete(pliste); pliste=NULL; </div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span> </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>      <span class="keywordflow">if</span> (plist1!=NULL) cpl_propertylist_delete(plist1);plist1=NULL;</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>      <span class="keywordflow">if</span> (plist2!=NULL) cpl_propertylist_delete(plist2);plist2=NULL;</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span> </div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span> </div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>     <span class="keywordflow">if</span> (cpl_error_get_code()) {</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>         <span class="keywordflow">return</span> -1 ;</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>         <span class="keywordflow">return</span> 0 ;</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     }</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal-test_8c_source.html b/html/uves__wavecal-test_8c_source.html
deleted file mode 100644
index 05d0133..0000000
--- a/html/uves__wavecal-test_8c_source.html
+++ /dev/null
@@ -1,223 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal-test.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li><li class="navelem"><a class="el" href="dir_481eb1706afc14ed6b3611394691cd00.html">tests</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal-test.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2009-06-05 05:49:02 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.4 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.3  2007/08/13 12:15:43  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * support of CPL4</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.2  2007/05/23 06:43:23  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Removed unused variables</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.1  2007/03/15 12:27:18  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Moved unit tests to ./uves/tests and ./flames/tests</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2007/02/27 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Move unit test infrastructure to IRPLIB</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2007/01/29 12:17:54  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Support setting verbosity from command line</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/11/28 08:26:35  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added QC log unit test</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#include <uves_wavecal_identify.h></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <uves_wavecal_utils.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <cpl_test.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="group__uves__wavecal__test.html#gaef1e683ff19a9e4e2e4932e88c952561">   84</a></span> <a class="code" href="group__uves__wavecal__test.html#gaef1e683ff19a9e4e2e4932e88c952561" title="test point pattern matching">test_ppm</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> {</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>     <span class="keywordtype">int</span> nlines = 50;</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>     <span class="keywordtype">int</span> minorder = 94;</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>     <span class="keywordtype">int</span> maxorder = 97;</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> norders = maxorder - minorder + 1;</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>     <span class="keywordtype">int</span> i, order;</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> </div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     cpl_table *linetable  = cpl_table_new(norders * nlines);</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     cpl_table *line_refer = cpl_table_new(nlines);</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>     cpl_table_new_column(line_refer, <span class="stringliteral">"Wave"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>  </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>     <span class="keywordflow">for</span> (i = 0; i < nlines; i++)</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>         {</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>             cpl_table_set_double(line_refer, <span class="stringliteral">"Wave"</span>, i, 1000 + 500*sin(i));</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>         }</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>     cpl_test_eq( cpl_error_get_code(), CPL_ERROR_NONE );</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>     </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     cpl_table_new_column(linetable, <span class="stringliteral">"X"</span>              , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span>     cpl_table_new_column(linetable, <span class="stringliteral">"Order"</span>          , CPL_TYPE_INT);</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     cpl_table_new_column(linetable, LINETAB_LAMBDAC  , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     cpl_table_new_column(linetable, LINETAB_PIXELSIZE, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++)</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span>         {</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>             <span class="keywordflow">for</span> (i = 0; i < nlines; i++)</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                 {</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>                     <span class="keywordtype">int</span> row = (order-minorder)*nlines + i;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>                     cpl_table_set_int(linetable, <span class="stringliteral">"Order"</span>, row, </div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                                       order);</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> </div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                     cpl_table_set_double(linetable, LINETAB_PIXELSIZE, row, 1);</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                     <span class="comment">/* Set X = catalogue wavelength */</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>                     cpl_table_set_double(linetable, <span class="stringliteral">"X"</span>, row, </div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>                                          cpl_table_get_double(line_refer, <span class="stringliteral">"Wave"</span>, i, NULL));</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>                     </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>                     cpl_table_set_double(linetable, LINETAB_LAMBDAC, row, </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>                                          cpl_table_get_double(line_refer, <span class="stringliteral">"Wave"</span>, i, NULL));</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span>                 }</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>         }</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>     cpl_test_eq( cpl_error_get_code(), CPL_ERROR_NONE );</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> </div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment">  cpl_table_dump_structure(linetable, stdout);</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment">  cpl_table_dump(linetable, 0, cpl_table_get_nrow(linetable), stdout);</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment">  cpl_table_dump(line_refer, 0, cpl_table_get_nrow(line_refer), stdout);</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> </div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span>     <a class="code" href="group__uves__wavecal.html#gad453e932c1e4d99548688995d4e1000b" title="Identify lines using point pattern matching.">uves_wavecal_identify_lines_ppm</a>(linetable, </div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span>                                     line_refer);</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     cpl_test( cpl_table_has_column(linetable, <span class="stringliteral">"Ident_ppm"</span>) );</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> </div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>     uves_free_table(&linetable);</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>     uves_free_table(&line_refer);    </div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> </div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> }</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>    </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> </div>
-<div class="line"><a name="l00155"></a><span class="lineno"><a class="code" href="group__uves__wavecal__test.html#ga840291bc02cba5474a4cb46a9b9566fe">  155</a></span> <span class="keywordtype">int</span> <a class="code" href="group__uves__test.html#ga840291bc02cba5474a4cb46a9b9566fe" title="Various tests of low-level library functions.">main</a>(<span class="keywordtype">void</span>)</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> {</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="preprocessor"></span>    cpl_errorstate initial_errorstate = cpl_errorstate_get();</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="preprocessor"></span>    <a class="code" href="group__uves__wavecal__test.html#gaef1e683ff19a9e4e2e4932e88c952561" title="test point pattern matching">test_ppm</a>();</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>         {</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="preprocessor"></span>      cpl_errorstate_dump(initial_errorstate,CPL_FALSE,NULL);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__error.html#ga7e6bb359a87117dfc0e2c38d9f5d0108">uves_error_dump</a>();</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     <span class="keywordflow">return</span> cpl_test_end(0);</div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> }</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> </div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal_8c_source.html b/html/uves__wavecal_8c_source.html
deleted file mode 100644
index dca6aa1..0000000
--- a/html/uves__wavecal_8c_source.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_b351cdfeb4656d7d168dc72b273024e7.html">recipes</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2007-06-06 08:17:33 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.67 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.66  2006/10/26 14:01:55  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Replaced hard-coded package name with PACKAGE_NAME</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.6  2006/10/19 08:19:10  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Doc. update</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.5  2006/08/11 11:26:20  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Added runtime check of UVES library version number</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.4  2006/05/05 13:52:54  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added doxygen header, include config.h</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.3  2006/04/24 09:17:19  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Removed explicit uves_-prefix'</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.2  2006/02/03 08:55:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Removed stray doxygen marker</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.1  2006/02/03 07:55:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added plugin template</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.42  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.41  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">int</span> <a class="code" href="group__flames__utl__unpack.html#ga31d1fccd4cd15b1c1f3c5edc8cb18693" title="Build the list of available plugins, for this module.">cpl_plugin_get_info</a>(cpl_pluginlist *list)</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> {</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="keywordflow">if</span> (UVES_BINARY_VERSION != <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>())</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     {</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         cpl_msg_error(__func__, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="stringliteral">"I am uves_wavecal version %d, but I am linking "</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>               <span class="stringliteral">"against UVES library version %d. "</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>               <span class="stringliteral">"This will not work. "</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>               <span class="stringliteral">"Please remove all previous installations "</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>               <span class="stringliteral">"of the "</span> PACKAGE_NAME <span class="stringliteral">" and try again."</span>,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>               UVES_BINARY_VERSION, <a class="code" href="group__uves__utils.html#gadebc096a23126aea985ce9f492e62cf4" title="Get UVES library binary version number.">uves_get_version_binary</a>());</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>         <span class="keywordflow">return</span> 1;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     }</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordflow">return</span> uves_wavecal_get_info(list);</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal__body_8c_source.html b/html/uves__wavecal__body_8c_source.html
deleted file mode 100644
index 270d7fc..0000000
--- a/html/uves__wavecal__body_8c_source.html
+++ /dev/null
@@ -1,2696 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal_body.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal_body.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-08-08 13:36:47 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.103 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> </div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor"></span><span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include <uves_wavecal_body.h></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/* Definitions */</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">/* Macro steps */</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include <uves_extract.h></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <uves_flatfield.h></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <uves_wavecal_search.h></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include <uves_wavecal_firstsolution.h></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_wavecal_identify.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <uves_rebin.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <uves_merge.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">/* Utility functions */</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor">#include <uves_wavecal_utils.h></span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <uves_plot.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <uves_parameters.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#include <uves_dfs.h></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <flames_reduce_vcorrel.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">/* threshold values for maximum pixel saturation */</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="preprocessor">#define DRS_PTHRES_MAX 55000</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="preprocessor"></span><span class="preprocessor">#define DRS_PTHRES_MIN -20</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="preprocessor"></span><span class="preprocessor">#define DRS_CVEL_MIN -6.</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor"></span><span class="preprocessor">#define DRS_CVEL_MAX +6.</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="preprocessor"></span><span class="preprocessor">#define N_FIBRES_MAX 9</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="preprocessor"></span><span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_wavecal_qclog(<span class="keyword">const</span> cpl_table* table,</div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span>                                <span class="keywordtype">int</span> firstabs,</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>                                <span class="keywordtype">int</span> lastabs,</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span>                    <span class="keyword">const</span> cpl_image *arclamp,</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span>                    <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* raw_header,</div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span>                    <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span>                    <span class="keywordtype">int</span> trace_number,</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span>                    <span class="keywordtype">int</span> fibre_mask,</div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span>                    <span class="keywordtype">double</span> offset,</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>                    <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>                    cpl_table* qclog);</div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_wavecal_qclog_intmon(cpl_table* table,</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>                       <span class="keyword">const</span> cpl_table *line_intmon,</div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span>                       <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* raw_header,</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>                       <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>                       <span class="keywordtype">int</span> fibre,</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>                       <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>                       cpl_table* qclog);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_wavecal_desc_short = <span class="stringliteral">"Performs the wavelength calibration"</span>;</div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_wavecal_desc =</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="stringliteral">"The recipe performs a wavelength calibration for each extraction window.\n"</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="stringliteral">"Conceptually, each chip contains a number of order lines, each of which\n"</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="stringliteral">"contains a number of fibre traces, each of which contains a number of\n"</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="stringliteral">"extraction windows. For UVES data, there is only one trace per order and\n"</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="stringliteral">"three extraction windows (sky, object, sky). For FLAMES/UVES data there\n"</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="stringliteral">"are multiple traces per order but only one extraction window per trace.\n"</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="stringliteral">"The number of traces is defined in the order table while the geometry of\n"</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="stringliteral">"the extraction windows is specified by recipe parameters (see below).\n"</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="stringliteral">"Expected input for this recipe is an arc lamp frame, ARC_LAMP_xxx or\n"</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="stringliteral">"ECH_ARC_LAMP_xxx (where xxx=BLUE, RED), order table(s) for each chip,\n"</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="stringliteral">"ORDER_TABLE_xxxx (where xxxx=BLUE, REDL, REDU), 'guess' line table(s)\n"</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="stringliteral">"for each chip, LINE_TABLE_xxxx, a wavelength catalogue table, \n"</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="stringliteral">"LINE_REFER_TABLE, and optionally a wavelength table of bright lines,\n"</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="stringliteral">"LINE_INTMON_TABLE, used only for computing Quality Control parameters.\n"</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="stringliteral">"The output line table(s), LINE_TABLE_xxxx, contains the columns\n"</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="stringliteral">"X            : Horizontal position (from Gaussian fit) of detected line\n"</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="stringliteral">"dX           : Uncertainty (one sigma) of X\n"</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="stringliteral">"Ynew         : Vertical position of detected line\n"</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="stringliteral">"XWidth       : Width (in pixels) of detected line from Gaussian fit\n"</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="stringliteral">"Peak         : Intensity of detected line\n"</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="stringliteral">"Background   : Fitted background (ADU) of detected line\n"</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="stringliteral">"Slope        : Linear background slope (ADU/pixel) of detected line\n"</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="stringliteral">"               from Gaussian fit\n"</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="stringliteral">"Intensity    : Intensity of detected line scaled to unit exposure\n"</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="stringliteral">"               time. (This column only present if a LINE_INTMON_TABLE\n"</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="stringliteral">"               is provided.)\n"</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="stringliteral">"Order        : Absolute order number of detected line\n"</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="stringliteral">"Y            : Relative order number of detected line\n"</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="stringliteral">"               (it's not a very descriptive column name)\n"</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="stringliteral">"WaveC        : Wavelength of this line (computed using the resulting\n"</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="stringliteral">"               dispersion relation)\n"</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="stringliteral">"dLambdaC     : Uncertainty (one sigma) of 'WaveC'.\n"</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="stringliteral">"Pixel        : The width in w.l.u. of a pixel (computed locally).\n"</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="stringliteral">"Residual     : Residual (in w.l.u.) of this line\n"</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="stringliteral">"Residual_pix : Residual (in pixels) of this line\n"</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="stringliteral">"Lambda_candidate : Nearest line in catalogue\n"</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="stringliteral">"dLambda_cat_sq   : Squared distance to nearest catalogue line\n"</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="stringliteral">"dLambda_nn_sq    : Squared distance to nearest neighbour multiplied by ALPHA\n"</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="stringliteral">"Ident        : The wavelength associated with this emission line,\n"</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="stringliteral">"               or invalid if this line was not identified\n"</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="stringliteral">"dIdent       : Uncertainty of catalogue wavelength\n"</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="stringliteral">"Select       : 1 if the line was identified, 0 otherwise\n"</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="stringliteral">"NLinSol      : 1 if the line was identified and accepted for the\n"</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="stringliteral">"               polynomial fit, 0 otherwise\n"</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="stringliteral">"Intensity    : Intensity of detected line scaled to unit exposure\n"</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="stringliteral">"               time. (This column is present only if a LINE_INTMON_TABLE\n"</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="stringliteral">"               is provided.)\n"</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="stringliteral">"The 2nd table extension contains the dispersion relation (a 2d polynomial).\n"</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="stringliteral">"The 3rd table extension contains the map from (pixel, pixel)-space to\n"</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="stringliteral">" physical order numbers (used internally by the calibration recipe; \n"</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="stringliteral">"another 2d polynomial).\n"</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="stringliteral">"\n"</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="stringliteral">"If there is more than one extraction window, the results of each calibration\n"</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="stringliteral">"is stored in subsequent table extensions of the same FITS file. For \n"</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="stringliteral">"example, extensions 4, 5 and 6 would contain the resulting line table \n"</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="stringliteral">"(and its two associated polynomials) for the second extraction window. \n"</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="stringliteral">"The results for the calibration of the n'th extraction window is stored \n"</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="stringliteral">"in extensions (3*n - 2) to 3*n.\n"</span>;</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="comment">                            Functions code</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> uves_wavecal_define_parameters_body(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keywordtype">double</span> slit)</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> {</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *subcontext;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment">     *    General    *</span></div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     <span class="keywordflow">if</span> (uves_define_global_parameters(parameters) != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     {</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     }</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment">     *  Extraction   *</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> </div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     subcontext = NULL;</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span> </div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="comment">/* nwindows */</span></div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     uves_par_new_range(<span class="stringliteral">"nwindows"</span>,</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>                <span class="stringliteral">"Number of extraction windows per trace. "</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>                <span class="stringliteral">"The windows will be aligned (i.e. no overlap "</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>                <span class="stringliteral">"and no spacing between adjacent windows). "</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>                <span class="stringliteral">"Unless an offset is specified, the middle "</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>                <span class="stringliteral">"window(s) is centered on the trace"</span>,</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>                strcmp(recipe_id, <span class="stringliteral">"flames_cal_wavecal"</span>) == 0 ?</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>             1 : 3,      <span class="comment">/* FLAMES: 1; UVES: 3 */</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>             1, INT_MAX);</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     <span class="comment">/* length */</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>     uves_par_new_range(<span class="stringliteral">"length"</span>,</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>                CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>                <span class="stringliteral">"Length (in pixels) of each extraction window. "</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                <span class="stringliteral">"This parameter is also equal to the seperation of "</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                <span class="stringliteral">"adjacent window centers, causing the extraction "</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                <span class="stringliteral">"windows to always be aligned. The parameter is "</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>                <span class="stringliteral">"automatically adjusted according to the binning "</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                <span class="stringliteral">"of the input raw frame. If negative, the extraction "</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>                        <span class="stringliteral">"window length is determined automatically "</span></div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>                        <span class="stringliteral">"to cover the full slit"</span>,</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>                slit, -2.0, DBL_MAX);</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>     <span class="comment">/* offset */</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     uves_par_new_range(<span class="stringliteral">"offset"</span>,</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>                CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                <span class="stringliteral">"A global offset (in pixels) of all extraction windows"</span>,</div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>                0.0, -25., 25.);</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <span class="comment">/* method */</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="keywordflow">if</span> (uves_propagate_parameters_step(UVES_EXTRACT_ID, parameters, </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>                        recipe_id, NULL) != 0)</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     {</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     }</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     </div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     <span class="comment">/* Override default optimal extraction profile. Assume constant profile */</span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="preprocessor"></span>    <span class="comment">/* this should perhaps be enabled but doesn't work properly in the moment.</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment"></span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="comment">        ChangeLog:</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> <span class="comment">    uves_cal_wavecal: The arc lamp spectrum is now extracted using</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> <span class="comment">    average extraction and weighting each pixel with its inverse</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> <span class="comment">    variance. This is equivalent to doing an optimal extraction under</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> <span class="comment">    the assumption of a constant spatial profile, and is implemented</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span> <span class="comment">    as such. This was a necessary change in order to be robust against</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> <span class="comment">    interorder noisy pixels caused by dividing by the flat-field.</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> <span class="comment"></span></div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="comment">       */</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     {</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *profile = <span class="stringliteral">"constant"</span>;</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>         <span class="keywordtype">double</span> kappa = -1;</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     <span class="keywordflow">if</span> (uves_set_parameter_default(parameters, </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>                        recipe_id, UVES_EXTRACT_ID <span class="stringliteral">".profile"</span>,</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>                        CPL_TYPE_STRING, &profile)</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>         != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>         {</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>         }</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>         <span class="comment">/* Disable cosmic ray rejection, it does not work well for</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment">           this particular profile and very high S/N */</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     <span class="keywordflow">if</span> (uves_set_parameter_default(parameters,</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>                        recipe_id, UVES_EXTRACT_ID <span class="stringliteral">".kappa"</span>,</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>                        CPL_TYPE_DOUBLE, &kappa)</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>         != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         {</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>         }</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     }</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> <span class="preprocessor"></span>    {</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *method = <span class="stringliteral">"average"</span>;</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     <span class="keywordflow">if</span> (uves_set_parameter_default(parameters, </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                        recipe_id, UVES_EXTRACT_ID <span class="stringliteral">".method"</span>,</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>                        CPL_TYPE_STRING, &method)</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>         != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>         {</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>         }</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>         </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     }</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="preprocessor"></span>    </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="comment">     *    Search     *</span></div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>     subcontext = <span class="stringliteral">"search"</span>;</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="comment">/* range */</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>     uves_par_new_range(<span class="stringliteral">"range"</span>,</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                <span class="stringliteral">"Width (pix) of search window is 2*range + 1. "</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>                <span class="stringliteral">"This parameter is automatically adjusted "</span></div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>                <span class="stringliteral">"according to binning."</span>,</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>                8, 1, INT_MAX);</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span> </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="comment">/* minlines */</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     uves_par_new_range(<span class="stringliteral">"minlines"</span>,</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>                <span class="stringliteral">"Minimum number of lines to detect. If zero, "</span></div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>                <span class="stringliteral">"the default value (1100 for BLUE/REDL chips; "</span></div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>                <span class="stringliteral">"1000 for REDU chip) is used."</span>,</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                0, 0, INT_MAX);</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     <span class="comment">/* maxlines */</span></div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span>     uves_par_new_range(<span class="stringliteral">"maxlines"</span>,</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                <span class="stringliteral">"Maximum number of lines to detect. If zero, "</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>                <span class="stringliteral">"the default value (1600 for BLUE/REDL chip; "</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>                <span class="stringliteral">"1400 for REDU chip) is used."</span>,</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>                0, 0, INT_MAX);</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     <span class="comment">/* centeringmethod */</span></div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="comment">/*  Temporally removed as 'gravity' do not work and it does not make </span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="comment">    sense a parameter with only one option</span></div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="comment"></span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="comment">    uves_par_new_enum("centeringmethod",</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="comment">              CPL_TYPE_STRING,</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment">              "Line centering method",</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="comment">              "gaussian",             // Default </span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment">              1,                      // Number of options </span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> <span class="comment">                      "gaussian");    // List of options </span></div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span> <span class="comment">     </span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>          <span class="comment">/* old setting allowed gravity "gaussian", "gravity"); */</span></div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     <span class="comment">/*******************</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="comment">     *  First solution *</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="comment">     *******************/</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     subcontext = <span class="stringliteral">"first"</span>;</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span> </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     <span class="comment">/* shiftmax */</span></div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     uves_par_new_range(<span class="stringliteral">"shiftmax"</span>,</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>                CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>                <span class="stringliteral">"The maximum shift (pix) in either direction compared to "</span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>                <span class="stringliteral">"guess solution. This parameter is automatically "</span></div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>                <span class="stringliteral">"corrected for binning"</span>,</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>                10.0, 0.0, DBL_MAX);</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     <span class="comment">/* shiftstep */</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     uves_par_new_range(<span class="stringliteral">"shiftstep"</span>,</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>                CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>                <span class="stringliteral">"The step size (pix) used when searching "</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>                <span class="stringliteral">"for the optimum shift. This parameter is "</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>                <span class="stringliteral">"automatically corrected for binning"</span>,</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>                0.1, 0.0, DBL_MAX);</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> </div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     <span class="comment">/* shifttoler */</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>     uves_par_new_range(<span class="stringliteral">"shifttoler"</span>,</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>                CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>                <span class="stringliteral">"Tolerance (pix) when matching shifted lines. "</span></div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>                <span class="stringliteral">"This parameter is not adjusted according to binning"</span>,</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>                0.05, 0.0, DBL_MAX);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="comment">     *  Identify     *</span></div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> </div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>     subcontext = <span class="stringliteral">"identify"</span>;</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span>     </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     <span class="comment">/* alpha */</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     uves_par_new_range(<span class="stringliteral">"alpha"</span>,</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span>                <span class="stringliteral">"The parameter that controls the distance to the "</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span>                <span class="stringliteral">"nearest neighbours"</span>,</div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>                0.1, 0.0, 1.0);</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     <span class="comment">/* maxerror */</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>     uves_par_new_range(<span class="stringliteral">"maxerror"</span>,</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>                CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span>                <span class="stringliteral">"This parameter controls the graceful exit of "</span></div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>                <span class="stringliteral">"the identification loop. If the RMS of the "</span></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>                <span class="stringliteral">"global fit exceeds this value (pix) the "</span></div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>                <span class="stringliteral">"iteration stops"</span>,</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>                20.0, 0.0, DBL_MAX);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     <span class="comment">/* degree */</span></div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>     uves_par_new_range(<span class="stringliteral">"degree"</span>,</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>                CPL_TYPE_INT,</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>                <span class="stringliteral">"Degrees of the global 2d dispersion polynomial. If "</span></div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>                        <span class="stringliteral">"a negative number is specified, the polynomial "</span></div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>                        <span class="stringliteral">"degrees are automatically selected by starting from "</span></div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>                        <span class="stringliteral">"(1, 1) and inreasing the degrees as long as the RMS "</span></div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                        <span class="stringliteral">"residual decreases significantly"</span>,</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                4, -2, INT_MAX);</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>     <span class="comment">/*****************</span></div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span> <span class="comment">     * Calibration   *</span></div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span> <span class="comment">     *****************/</span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     subcontext = <span class="stringliteral">"calibrate"</span>;</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     <span class="comment">/* tolerance */</span></div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     uves_par_new_value(<span class="stringliteral">"tolerance"</span>,</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                        CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>                        <span class="stringliteral">"Tolerance of fit. If positive, the tolerance "</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>                        <span class="stringliteral">"is in pixel units. If negative, abs(tolerance) "</span></div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>                        <span class="stringliteral">"is in wavelength units. Lines with residuals "</span></div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>                        <span class="stringliteral">"worse than the tolerance are excluded from the "</span></div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>                        <span class="stringliteral">"final fit. Unlike in previous versions, this "</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>                        <span class="stringliteral">"parameter is not corrected for CCD binning. "</span></div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                        <span class="stringliteral">"This rejection based on the absolute residual in "</span></div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                        <span class="stringliteral">"pixel can be effectively disabled by setting the "</span></div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>                        <span class="stringliteral">"tolerance to a very large number (e.g. 9999). In "</span></div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>                        <span class="stringliteral">"that case outliers will be rejected using only "</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                        <span class="stringliteral">"kappa sigma clipping."</span>,</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>                        0.6); </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="comment">/*               0.07); */</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span> <span class="comment">/*                       9999.0);*/</span></div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     </div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     <span class="comment">/* kappa */</span></div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     uves_par_new_range(<span class="stringliteral">"kappa"</span>,</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>                CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>                <span class="stringliteral">"Lines with residuals more then kappa stdev "</span></div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>                        <span class="stringliteral">"are rejected from the final fit"</span>,</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>                        4.0,0.,100.);</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     <span class="comment">/***************</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment">     * Rebinning   *</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> <span class="comment">     ***************/</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     <span class="keywordflow">if</span> (uves_propagate_parameters_step(UVES_REBIN_ID, parameters, </div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>                        recipe_id, NULL) != 0)</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     {</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>         <span class="keywordflow">return</span> -1;</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     }</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     <span class="keywordflow">return</span> (cpl_error_get_code() != CPL_ERROR_NONE);</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span> }</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span> </div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="keyword">static</span> cpl_table *</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span> uves_wavecal_process_window(<span class="keyword">const</span> cpl_image *arclamp, </div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                             <span class="keyword">const</span> cpl_image *arclamp_noise,</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>                             <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header,</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>                             <span class="keyword">const</span> cpl_table *ordertable, </div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>                             <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>                             <span class="keywordtype">bool</span> flat_fielded,</div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>                             cpl_image *weights,</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>                             <span class="comment">/* const cpl_table *drs_table,  Not used */</span></div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>                             <span class="keyword">const</span> cpl_table *guess,</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>                             <span class="keyword">const</span> cpl_table *line_refer,</div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>                             <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>                             <span class="keywordtype">int</span> tab_in_out_oshift,</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>                             <span class="keywordtype">double</span> tab_in_out_yshift,</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>                             <span class="keyword">enum</span> uves_chip chip, <span class="keywordtype">int</span> bin_disp,</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>                             <span class="keywordtype">int</span> trace, <span class="keywordtype">int</span> window, <span class="keywordtype">int</span> NWINDOWS,</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>                             <span class="comment">/* General */</span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>                             <span class="keywordtype">bool</span> debug_mode,</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>                             <span class="comment">/* Extraction */</span></div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>                             <span class="keywordtype">double</span> offset,</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>                             <span class="keywordtype">double</span> slitlength,</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>                             <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>                             <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>                             <span class="comment">/* Search */</span></div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>                             <span class="keywordtype">int</span> RANGE,</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>                             <span class="keywordtype">int</span> MINLINES,</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>                             <span class="keywordtype">int</span> MAXLINES,</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>                             centering_method CENTERING_METHOD,</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>                             <span class="comment">/* First solution */</span></div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>                             <span class="keywordtype">double</span> SHIFT_MAX,</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>                             <span class="keywordtype">double</span> SHIFT_STEP,</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>                             <span class="keywordtype">double</span> SHIFT_TOLERANCE,</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>                             <span class="comment">/* Identify */</span></div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                             <span class="keywordtype">double</span> ALPHA,</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                             <span class="keywordtype">double</span> MAXERROR,</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                             <span class="keywordtype">int</span> DEGREE,</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                             <span class="comment">/* Calibrate */</span></div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                             <span class="keywordtype">double</span> TOLERANCE,</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>                             <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>                             cpl_frame* corvel_frm,</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>                             cpl_table** flames_qclog,</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>                             <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>                             <a class="code" href="struct__polynomial.html">polynomial</a> **dispersion_relation,</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>                             <a class="code" href="struct__polynomial.html">polynomial</a> **absolute_order,</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>                             <span class="keywordtype">int</span> *first_absolute_order,</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>                             <span class="keywordtype">int</span> *last_absolute_order)</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span> {</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     cpl_table        *linetable          = NULL;  <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>     cpl_table        *temp               = NULL;</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>     cpl_image        *spectrum           = NULL;</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>     cpl_image        *spectrum_noise     = NULL;</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>     cpl_image        *debug_image        = NULL;</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>     <a class="code" href="struct__polynomial.html">polynomial</a>       *initial_dispersion = NULL;</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>     <span class="keywordtype">int</span>              *relative_order     = NULL;  <span class="comment">/* Map from physical </span></div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span> <span class="comment">                             order to relative order */</span></div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *spectrum_header    = NULL;</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span> </div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>     cpl_image        *rebinned           = NULL;  <span class="comment">/* Used for calculating </span></div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span> <span class="comment">                             the instrument resolution */</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>     cpl_image        *rebinned_noise     = NULL;  <span class="comment">/* Used for calculating </span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="comment">                             the instrument resolution */</span></div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rebinned_header    = NULL;</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>     cpl_image        *merged             = NULL;</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>     cpl_image        *merged_noise       = NULL;</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *merged_header      = NULL;</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>     cpl_table        *info_tbl           = NULL;</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> </div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>     <span class="comment">/* Needed for optimal extraction */</span></div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     cpl_image *weights_opt = NULL;</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>     cpl_table *cr_table = NULL;</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>     cpl_image *cr_image = NULL;</div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>     cpl_table *order_trace = NULL;</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> </div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>     merge_method m_method = flat_fielded ? MERGE_OPTIMAL : MERGE_SUM;</div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span> </div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     <span class="comment">/* Extract the spectrum */</span></div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>     uves_free_table(&info_tbl);</div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> </div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span> </div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( spectrum = <a class="code" href="group__uves__extract.html#ga724649dabb1df68c512fdd9e99b36f0d" title="Extract a spectrum.">uves_extract</a>((cpl_image *)arclamp,<span class="comment">/* Const-casts are okay,</span></div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span> <span class="comment">                                                           the image (bpm) + error bars</span></div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span> <span class="comment">                                                           is changed</span></div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span> <span class="comment">                                                           only in optimal extraction */</span></div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                                    (cpl_image *)arclamp_noise,</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                                    NULL,            <span class="comment">/* Header (optimal only)    */</span></div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                                    ordertable, </div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                                    order_locations,</div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>                                    slitlength,      <span class="comment">/* Slit length (pixels)     */</span></div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>                                    offset,          <span class="comment">/* Slit center offset       */</span></div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>                                    parameters,      <span class="comment">/* Extraction method        */</span></div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>                                    recipe_id, </div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>                                    <span class="stringliteral">""</span>,     </div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>                                    <span class="keyword">true</span>,            <span class="comment">/* Extraction partial bins? */</span></div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>                                    debug_mode,</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                                    chip,</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>                                    &spectrum_header,</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>                                    &spectrum_noise,</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>                                    NULL, </div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>                                    NULL,            <span class="comment">/* Optimal:  sky+noise      */</span></div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>                                    &cr_table, </div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>                                    &cr_image, </div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                                    NULL, </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>                                    (weights != NULL) ? &weights : &weights_opt,</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>                                    &info_tbl,</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>                                    &order_trace),</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>            <span class="stringliteral">"Error extracting spectrum"</span>);</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>     uves_free_table(&info_tbl);</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span> </div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span> </div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(spectrum_header,</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>                                                  rotated_header,</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>                          <span class="stringliteral">"^ESO "</span>, 0),<span class="stringliteral">"error copying hierarch keys"</span>);</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> </div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>     <span class="comment">/* Set bad pixels to 0, so that the search algorithm doesn't</span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span> <span class="comment">       fail because of bad pixels (but simply does not detect anything)</span></div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>     cpl_image_fill_rejected(spectrum, 0);</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>     cpl_image_accept_all(spectrum);</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>     cpl_image_fill_rejected(spectrum_noise, 1);</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>     cpl_image_accept_all(spectrum_noise);</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span> </div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     <span class="comment">/* Save spectrum + noise */</span></div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>     <span class="keywordflow">if</span> (debug_mode)</div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>     {</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span> </div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span> </div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(<a class="code" href="group__uves__propertylist.html#gaac698be25bd8c0a7bb5dd4c188a55882" title="Copy matching properties from another property list.">uves_propertylist_copy_property_regexp</a>(spectrum_header, rotated_header,</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>           <span class="stringliteral">"^ESO "</span>, 0),</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>        <span class="stringliteral">"Error copying hieararch keys"</span>);</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span> </div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Extracted spectrum"</span>, <span class="stringliteral">"spectrum"</span>, </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>                      spectrum, chip, trace, window, spectrum_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>            <span class="stringliteral">"Error saving spectrum"</span>);</div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span> </div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Extracted spectrum noise"</span>, <span class="stringliteral">"spectrum_noise"</span>,</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>                      spectrum_noise, chip, trace, window, spectrum_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>            <span class="stringliteral">"Error saving spectrum"</span>);</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>     }</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span> </div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>     <span class="comment">/* Locate lines */</span></div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>     debug_image = cpl_image_duplicate(arclamp);</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( linetable = <a class="code" href="group__uves__wavecal.html#ga0baa7a6c85fde5b3e8fe805cf5f4b6c6" title="Search for a given number of emission lines.">uves_wavecal_search</a>(spectrum, </div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>                                            spectrum_noise,</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>                                            spectrum_header,</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>                                            flat_fielded,</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>                                            order_locations,</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>                                            debug_image,</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                                            RANGE,</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>                                            MINLINES, </div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                                            MAXLINES, </div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                                            CENTERING_METHOD,</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>                                            bin_disp,trace,window,</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>                                            flames_qclog[0]),</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>        <span class="stringliteral">"Line search failed"</span>);</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> </div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>      <span class="comment">/* Read first solution from guess line table */</span></div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>     {</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>         <span class="keywordtype">int</span> degree = 5; <span class="comment">/* for the initial solution only. For the</span></div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span> <span class="comment">                           final solution the degree given as recipe</span></div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span> <span class="comment">                           parameter is used */</span></div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&initial_dispersion);</div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>         cpl_free(relative_order);</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( initial_dispersion = uves_wavecal_firstsolution(linetable,</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>                                                                guess, </div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>                                                                absolute_order,</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>                                                                ordertable,</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>                                                                order_locations,</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>                                                                flames,</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>                                                                offset,</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>                                                                &relative_order,</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>                                                                degree,</div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>                                                                SHIFT_MAX, </div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span>                                                                SHIFT_STEP, </div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>                                                                SHIFT_TOLERANCE, </div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>                                                                MAXERROR,</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>                                                                first_absolute_order,</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>                                                                last_absolute_order),</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                <span class="stringliteral">"Could not get first solution"</span>);</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     }</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span> </div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> </div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     {</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>         <span class="comment">/* !AM: To correct eventual residual shifts between Guess and Final order</span></div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span> <span class="comment">           ! (and line) table</span></div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span> <span class="comment">           compute/table {LINTAB} :YNEW =</span></div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span> <span class="comment">           :YNEW - {{ORDTAB},TAB_IN_OUT_YSHIFT} - {{OLDORDTAB},FIBREPOS({i1})}</span></div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span> <span class="comment">           compute/table {LINTAB} :Y = :Y +{{ORDTAB},TAB_IN_OUT_OSHIFT}</span></div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span> </div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>         cpl_table_add_scalar(linetable, <span class="stringliteral">"Y"</span>, tab_in_out_oshift);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>         cpl_table_add_scalar(linetable, <span class="stringliteral">"Ynew"</span>, - tab_in_out_yshift - offset);</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     }</div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span> </div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>     <span class="comment">/* Calibrate */</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *dispersion_relation = <a class="code" href="group__uves__wavecal.html#gaefff8994a1bf3be10c46012cff86ef04" title="Obtain final dispersion relation.">uves_wavecal_identify</a>(linetable, <span class="comment">/* Guess solution */</span></div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>                                                         line_refer,</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>                                                         initial_dispersion,</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>                                                         DEGREE,</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>                                                         TOLERANCE, ALPHA, </div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>                                                         MAXERROR,</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>                                                         kappa,trace,window,flames_qclog[0]),</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span>        <span class="stringliteral">"Could not calibrate orders"</span>);</div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span> </div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>     <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     {</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>         <span class="comment">/* AM: To have correct split of fibres in line table:</span></div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span> <span class="comment">           > compute/table {LINTAB} :YNEW = :YNEW + {{ORDTAB},TAB_IN_OUT_YSHIFT}</span></div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span> <span class="comment">                     + {{OLDORDTAB},FIBREPOS({i1})}</span></div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span> </div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>         cpl_table_add_scalar(linetable, <span class="stringliteral">"Ynew"</span>, + tab_in_out_yshift + offset);</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     }</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span> </div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>     <span class="comment">/* UVES: make plots (resolution + etc.) for the central window,</span></div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span> <span class="comment">     * FLAMES: all fibres</span></div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>     <span class="keywordflow">if</span> (flames || (trace == 0 && window == 2)|| (window == 1 && NWINDOWS == 1))</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>     {</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>         <span class="comment">/* Create x-FWHM column:   FWHM = 2.3548 sigma */</span></div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_duplicate_column(linetable, <span class="stringliteral">"deltaX"</span>, linetable, <span class="stringliteral">"Xwidth"</span>),</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>             cpl_table_multiply_scalar (linetable, <span class="stringliteral">"deltaX"</span>, TWOSQRT2LN2)),</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>           <span class="stringliteral">"Error creating FWHM column"</span>);</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>         </div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span> </div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( temp = uves_extract_table_rows(</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>                              linetable, <span class="stringliteral">"NLinSol"</span>, CPL_NOT_EQUAL_TO, 0) );</div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span> </div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_table(temp, <span class="stringliteral">"Order"</span>, LINETAB_RESIDUAL, <span class="stringliteral">"Residual of fit"</span>), </div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>            <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>         </div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_table(temp, <span class="stringliteral">"X"</span>, <span class="stringliteral">"deltaX"</span>, <span class="stringliteral">"line FWHM (mean = %.2f pixels)"</span>,</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>                    cpl_table_get_column_mean(linetable, <span class="stringliteral">"deltaX"</span>)),</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>            <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>         <span class="comment">/*</span></div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span> <span class="comment">          check( uves_plot_table(linetable, "Y", "deltaX", </span></div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span> <span class="comment">          "line FWHM (mean FWHM = %.2f pixels)",</span></div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span> <span class="comment">          cpl_table_get_column_mean(linetable, "deltaX")), "Plotting failed");</span></div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>         </div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>         </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span>         <span class="comment">/* Compute resolution as as lambda / deltalambda   where deltalambda</span></div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span> <span class="comment">               is the peak FWHM in wavelength space (after resampling using </span></div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span> <span class="comment">           WAVESTEP = average pixelsize) </span></div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>         </div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>         {</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>         <span class="comment">/* Rebin using steps of median pixelsize */</span></div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>         <span class="keywordtype">double</span> wavestep;</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>         <span class="keywordtype">double</span> lambda_start = 0;</div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>         <span class="keywordtype">int</span> n_traces = 1;      <span class="comment">/* We didn't do a 2d extraction; </span></div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> <span class="comment">                      there's only 1 trace</span></div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span> <span class="comment">                      per order */</span></div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>         <span class="keywordtype">int</span> i, nbins;</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>                 <span class="keywordtype">bool</span> threshold_to_positive = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> </div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>         cpl_table_new_column(linetable, <span class="stringliteral">"deltaLambda"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span>         </div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( rebinned_noise = <a class="code" href="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c" title="Rebin a spectrum.">uves_rebin</a>(spectrum_noise,</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>                                            parameters, </div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>                                            recipe_id,</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>                                            linetable, </div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>                                            *dispersion_relation, </div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span>                                            *first_absolute_order, </div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>                                            *last_absolute_order,</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>                                            n_traces,</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>                                            threshold_to_positive,</div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span>                                            <span class="keyword">true</span>,</div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>                                            &rebinned_header),</div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span>                <span class="stringliteral">"Could not rebin noise of arc lamp spectrum"</span>);</div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> </div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>         threshold_to_positive = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>         uves_free_propertylist(&rebinned_header);</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( rebinned = <a class="code" href="group__uves__rebin.html#gaf5ceddc54f64c88b3f06ebbc11655c1c" title="Rebin a spectrum.">uves_rebin</a>(spectrum,</div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>                                      parameters, </div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span>                                      recipe_id,</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>                                      linetable, </div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span>                                      *dispersion_relation, </div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span>                                      *first_absolute_order, </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>                                      *last_absolute_order,</div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>                                      n_traces,</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>                                      threshold_to_positive,</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>                                      <span class="keyword">false</span>,</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span>                                      &rebinned_header),</div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>                <span class="stringliteral">"Could not rebin arc lamp spectrum"</span>);</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span> </div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>         <span class="comment">/* Save order-by-order rebinned spectrum+noise */</span></div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>         <span class="keywordflow">if</span> (debug_mode)</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>             {</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Rebinned spectrum"</span>,</div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>                              <span class="stringliteral">"wxb"</span>, rebinned, chip, </div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>                              trace, window, rebinned_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>                    <span class="stringliteral">"Error saving rebinned spectrum"</span>);</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span> </div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Noise of rebinned spectrum"</span>,</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>                              <span class="stringliteral">"errwxb"</span>, rebinned_noise, chip, </div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>                              trace, window, rebinned_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>                    <span class="stringliteral">"Error saving noise of rebinned spectrum"</span>);</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>             }</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>         </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( merged = <a class="code" href="group__uves__merge.html#gad20fc9888b15052d53d15c7fd2041181" title="Merge orders.">uves_merge_orders</a>(rebinned, </div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>                       rebinned_noise,</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>                       rebinned_header,</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>                       m_method,</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>                       n_traces,</div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>                       &merged_header,</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>                       0,0,chip,</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>                       &merged_noise),</div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>                <span class="stringliteral">"Could not merge arc lamp spectrum"</span>);</div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> </div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_image_rows(merged, 1, 1, 1, </div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>                         <span class="stringliteral">"Wavelength (arbitrary units)"</span>, </div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>                         <span class="stringliteral">"Flux"</span>, <span class="stringliteral">"Resampled arc lamp spectrum"</span>),</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>                <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span> </div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>         <span class="comment">/* Save merged arc lamp spectrum */</span></div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>         <span class="keywordflow">if</span> (debug_mode)</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>             {</div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Rebinned, merged spectrum"</span>,</div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>                              <span class="stringliteral">"merged"</span>, merged, chip, </div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>                              trace, window, merged_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>                    <span class="stringliteral">"Error saving merged spectrum"</span>);</div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>             }</div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>         </div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>         nbins = cpl_image_get_size_x(merged);</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span> </div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( wavestep = <a class="code" href="group__uves__pfits.html#ga275ac7ecf1fc85f2d4d06eae8a950ba7" title="Find out the cdelt1.">uves_pfits_get_cdelt1</a>(merged_header),</div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>                <span class="stringliteral">"Error reading resampling step size"</span>);</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>         </div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda_start = <a class="code" href="group__uves__pfits.html#ga03b112a6789efbba09a9781fbc48dd81" title="Find out the crval1.">uves_pfits_get_crval1</a>(merged_header), </div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>                <span class="stringliteral">"Could not read start wavelength of merged spectrum"</span>);</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span> </div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> </div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>     <span class="comment">//Begin commented region</span></div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>     </div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>    <span class="keywordflow">if</span> (flames && trace == 0 && corvel_frm != NULL)</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span>     {</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span>        <span class="comment">//The following (flames_reduce.VCORREL) calculates </span></div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span>        <span class="comment">//a cross correlation and does some QC</span></div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span> </div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span> </div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span> <span class="comment">//> !To support simcal Mode</span></div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span> <span class="comment">//> if i1 .eq. 1 then</span></div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span> <span class="comment">//>    w/o "DRS_CVEL_SWITCH={DRS_CVEL_SWITCH}"</span></div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span> <span class="comment">//>    if "{DRS_CVEL_SWITCH}" .eq. "Y" then</span></div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> <span class="comment">//>       w/o "To support simcal Mode"</span></div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span> <span class="comment">//>       define/local ord_min/i/1/1 0</span></div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span> <span class="comment">//>       define/local ord_max/i/1/1 0</span></div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span> <span class="comment">//>       define/local rsample/d/1/1 0</span></div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span> <span class="comment">//>       statistic/table {ORDTAB} :ORDER >Null</span></div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span> <span class="comment">//>       ord_min = outputr(1)</span></div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span> <span class="comment">//>       ord_max = outputr(2)</span></div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span> <span class="comment">//>       rsample = {{LINTAB},PIXEL(1)}</span></div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span> <span class="comment">//>       rsample = 2./3. * rsample</span></div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span> <span class="comment">//>       rebin/echelle  {ofrm} w{ofrm} {rsample} NONL {LINTAB} {SESSOUTV}</span></div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span> <span class="comment">//>       mercut/echelle w{ofrm} mw{ofrm} {ord_min},{ord_max} NOAPPEND</span></div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span> <span class="comment">//>       !corvel stuff</span></div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span> <span class="comment">//>       define/local OLD_CVEL_MAX/d/1/1 {DRS_CVEL_MAX}</span></div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span> <span class="comment">//>       define/local OLD_CVEL_MIN/d/1/1 {DRS_CVEL_MIN}</span></div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span> <span class="comment">//>       @p flames_reduce,VCORREL x1_rbf_ cvel1 0 {ord_max} {parCorVelTab} _0 _{chip({PATHID})} 0</span></div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span> <span class="comment">//>       DRS_CVEL_MAX = DRS_CVEL_MAX + {q1}</span></div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span> <span class="comment">//>       DRS_CVEL_MIN = DRS_CVEL_MIN + {q1}</span></div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> <span class="comment">//></span></div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span> <span class="comment">//>       @p flames_reduce,VCORREL x1_rbf_ cvel2 0 {ord_max} {parCorVelTab} _0 _{chip({PATHID})} 0</span></div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span> <span class="comment">//>       cvel_0 = {q1}</span></div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span> <span class="comment">//>       DRS_CVEL_MAX = OLD_CVEL_MAX</span></div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span> <span class="comment">//>       DRS_CVEL_MIN = OLD_CVEL_MIN</span></div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span> <span class="comment">//>    endif</span></div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span> <span class="comment">//>    write/keyword DRS_CVEL_SWITCH Y</span></div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span> <span class="comment">//> endif</span></div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span> </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span> </div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span> </div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span> </div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>        </div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span> </div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span> </div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>       <span class="keyword">const</span> <span class="keywordtype">char</span>* drs_base_name=NULL;</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>       <span class="keyword">const</span> <span class="keywordtype">char</span>* prefid=NULL;</div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>       <span class="keywordtype">double</span> ccf_posmax_zero_point=0;</div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>       <span class="keywordtype">double</span> ccf_posmax_zero_point_iter0=0;</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>       <span class="keywordtype">double</span> cvel_max=0;</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>       <span class="keywordtype">double</span> cvel_sig=0;</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>       <span class="keywordflow">if</span>(chip == UVES_CHIP_REDL) {</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span>     prefid=<span class="stringliteral">"l"</span>;</div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>       } <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>     prefid=<span class="stringliteral">"u"</span>;</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>       }</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>       <span class="keyword">const</span> <span class="keywordtype">char</span>* name=NULL;</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>       <span class="keyword">const</span> <span class="keywordtype">char</span>* file=NULL;</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>       cpl_propertylist* plist=NULL;</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>       <span class="keywordtype">double</span> drs_cvel_min=0;</div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>       <span class="keywordtype">double</span> drs_cvel_max=0;</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span> </div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>  </div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Rebinned spectrum"</span>,</div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>                    <span class="stringliteral">"wxb"</span>, rebinned, chip, </div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>                    trace, window, rebinned_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>          <span class="stringliteral">"Error saving rebinned spectrum"</span>);</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span> </div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Rebinned, merged spectrum"</span>,</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>                    <span class="stringliteral">"mwxb"</span>, merged, chip, </div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span>                    trace, window, merged_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>          <span class="stringliteral">"Error saving merged spectrum"</span>);</div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span>      </div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span> </div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( file = uves_local_filename(<span class="stringliteral">"wxb"</span>, chip, trace, window),</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>          <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(plist=cpl_propertylist_load(file,0));</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span> </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>       name=uves_sprintf(<span class="stringliteral">"wfxb_%s%s%4.4d%s"</span>,prefid,<span class="stringliteral">"_raw"</span>,1,<span class="stringliteral">".fits"</span>);</div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>       drs_base_name=uves_sprintf(<span class="stringliteral">"fxb_%s"</span>,prefid);</div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span> </div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>       cpl_image_save(rebinned,name, CPL_BPP_IEEE_FLOAT,plist, </div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>              CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span> </div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span> </div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span>       name=uves_sprintf(<span class="stringliteral">"mwfxb_%s%s%4.4d%s"</span>,prefid,<span class="stringliteral">"_raw"</span>,1,<span class="stringliteral">".fits"</span>);</div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>       cpl_image_save(merged,name, CPL_BPP_IEEE_FLOAT,plist, </div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span>              CPL_IO_DEFAULT);</div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>      </div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>       cpl_propertylist_delete(plist);</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span> </div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span> </div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>       <span class="keywordtype">int</span> ord_max=(*first_absolute_order-*last_absolute_order)+1;</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>      </div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"cvel max:%g %g"</span>,DRS_CVEL_MAX,DRS_CVEL_MIN);</div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>       drs_cvel_max =DRS_CVEL_MAX;</div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>       drs_cvel_min =DRS_CVEL_MIN;</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span> </div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(flames_reduce_vcorrel(drs_base_name,</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                     <span class="stringliteral">"cvel2"</span>, </div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>                     prefid,</div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>                     ord_max,</div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>                     corvel_frm, </div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>                     <span class="stringliteral">"_raw0001"</span>, </div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>                     <span class="stringliteral">"_raw0001"</span>, </div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                                         DRS_CVEL_MIN,</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>                                         DRS_CVEL_MAX,</div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>                     &ccf_posmax_zero_point,</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>                     &cvel_max,</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                     &cvel_sig,</div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>                     flames_qclog[0]));</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>      </div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>      drs_cvel_max +=cvel_max;</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>      drs_cvel_min +=cvel_max;</div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>      ccf_posmax_zero_point_iter0 =cvel_max;</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>      <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"cvel max:%g %g"</span>,drs_cvel_max,drs_cvel_min);</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span> </div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>      <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(flames_reduce_vcorrel(drs_base_name,</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>                     <span class="stringliteral">"cvel2"</span>, </div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>                     prefid,</div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span>                     ord_max,</div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                     corvel_frm, </div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                     <span class="stringliteral">"_raw0001"</span>, </div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span>                     <span class="stringliteral">"_raw0001"</span>, </div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span>                                         drs_cvel_min,</div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span>                                         drs_cvel_max,</div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span>                     &ccf_posmax_zero_point,</div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span>                     &cvel_max,</div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span>                     &cvel_sig,</div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                     flames_qclog[1]));</div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span>       </div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span>       drs_cvel_max +=cvel_max;</div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span>       drs_cvel_min +=cvel_max;</div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span>       ccf_posmax_zero_point =ccf_posmax_zero_point_iter0;</div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span>       ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(flames_qclog[1],</div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span>                    <span class="stringliteral">"QC CCF POSOFF"</span>,</div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>                    ccf_posmax_zero_point,</div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>                    <span class="stringliteral">"CCF pos avg from ThAr calibration"</span>,</div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span>                    <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> </div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> </div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"cvel max:%g min: %g zp: %g"</span>,</div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span>            drs_cvel_max,drs_cvel_min,ccf_posmax_zero_point);</div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span> </div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span>    </div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span>     }</div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span>    <span class="comment">//End commented region</span></div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span> </div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> </div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>         <span class="comment">/* For all identified lines fit the line width in the</span></div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> <span class="comment">           merged spectrum to get the resolution  */</span></div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>          <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(linetable); i++)</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>             {</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>             <span class="keywordtype">double</span> lambda = cpl_table_get_double(</div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>                 linetable, LINETAB_LAMBDAC, i, NULL);</div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>             <span class="keywordtype">double</span> width  = </div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>                 cpl_table_get_double(linetable, <span class="stringliteral">"Xwidth"</span>   , i, NULL) *</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>                 fabs(cpl_table_get_double(linetable, LINETAB_PIXELSIZE, i, NULL)); </div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>             <span class="comment">/* in wlu */</span></div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>             </div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>             <span class="comment">/* Convert line wavelength and width to 'bin' units */</span></div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>             <span class="keywordtype">int</span> bin       = 1 + </div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>                 uves_round_double((lambda - lambda_start) / wavestep);</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>             <span class="keywordtype">double</span> width_bin = width / wavestep;</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> </div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>             <span class="comment">/* Set fitting window to +-5 sigma */</span></div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>             <span class="keywordtype">int</span> first_bin = uves_max_int(    1, uves_round_double(bin - 5*width_bin));</div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>             <span class="keywordtype">int</span> last_bin  = uves_min_int(nbins, uves_round_double(bin + 5*width_bin));</div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span> </div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>             <span class="keywordtype">double</span> my, sigma, norm, background;    <span class="comment">/* Results of fit */</span></div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>             <span class="keywordtype">double</span> lambda_fwhm;</div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>             </div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>             <span class="keywordflow">if</span> (cpl_table_is_valid(linetable, <span class="stringliteral">"Ident"</span>, i) && first_bin < last_bin)</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>                 {</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>                 <span class="comment">/* Fit a gaussian to the merged arc spectrum */</span></div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>                 uves_fit_1d_image(merged, </div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span> #<span class="keywordflow">if</span> 1</div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>                                                   merged_noise, </div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> #<span class="keywordflow">else</span> <span class="comment">/* Unweighted fit like MIDAS which gives larger sigma */</span></div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>                                                   NULL,</div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> #endif</div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>                                                   NULL,</div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>                           <span class="keyword">true</span>,     <span class="comment">/* Horizontal?    */</span></div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>                           <span class="keyword">false</span>,    <span class="comment">/* Fix background?*/</span></div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>                           <span class="keyword">false</span>,    <span class="comment">/* Fit background?*/</span></div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>                           first_bin, </div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>                                                   last_bin, </div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>                                                   1,  <span class="comment">/* xlo, xhi, y    */</span></div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>                           &my, </div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>                                                   &sigma, </div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>                                                   &norm, </div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>                                                   &background, NULL, <span class="comment">/* slope */</span></div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>                           NULL, </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>                                                   NULL, </div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>                                                   NULL,    <span class="comment">/* mse, red_chisq,</span></div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> <span class="comment">                                  covariance     */</span></div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>                           <a class="code" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c" title="Evaluate a gaussian.">uves_gauss</a>, </div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>                                                   <a class="code" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea" title="Evaluate the derivatives of a gaussian.">uves_gauss_derivative</a>, </div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>                                                   4);</div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>                                         </div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                 <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_CONTINUE)</div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>                     {</div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>                     <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Gaussian fitting failed "</span></div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                                <span class="stringliteral">"at lambda = %f wlu, bins = "</span></div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                                <span class="stringliteral">"%d - %d, ignoring line"</span>,</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>                                lambda, first_bin, last_bin);</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>                     </div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>                     cpl_table_set_invalid(linetable, <span class="stringliteral">"deltaLambda"</span>, i);</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>                     </div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>                     }</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>                     {</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>                         assure(cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>                                cpl_error_get_code(), <span class="stringliteral">"Gaussian fitting failed"</span>);</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>                     </div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>                     <span class="comment">/* Convert from bins to wavelength */</span></div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>                     lambda_fwhm = TWOSQRT2LN2 * sigma * wavestep;</div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>                     </div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>                     cpl_table_set_double(linetable, <span class="stringliteral">"deltaLambda"</span>,</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>                                  i, lambda_fwhm);</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> </div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>                     }</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>                 }</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>                 {</div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>                 cpl_table_set_invalid(linetable, <span class="stringliteral">"deltaLambda"</span>, i);</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>                 }</div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>             }</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>         </div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>         </div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>         <span class="comment">/* Create column 'Resol'(ution) = lambda / deltalambda */</span></div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_duplicate_column(linetable, <span class="stringliteral">"Resol"</span>, </div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>                            linetable, LINETAB_LAMBDAC),</div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>             cpl_table_divide_columns  (linetable, <span class="stringliteral">"Resol"</span>,</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                            <span class="stringliteral">"deltaLambda"</span>)),</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>               <span class="stringliteral">"Error creating 'Resol' column"</span>);</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>         </div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>         <span class="comment">/* Filter out extreme outliers (due to bad gaussian fit) */</span></div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>         {</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>          </div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>           <span class="keywordtype">int</span> ninvalid=0;</div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>           <span class="keywordtype">int</span> nrows=0;</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>            <span class="keywordtype">double</span> resol_avg   = 0;</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>            <span class="keywordtype">double</span> resol_stdev = 0;</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>            <span class="keywordtype">double</span> kappar = 10.0;</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>            nrows=cpl_table_get_nrow(linetable);</div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>            ninvalid=cpl_table_count_invalid(linetable,<span class="stringliteral">"Resol"</span>);</div>
-<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>            assure(ninvalid < nrows,CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>                  <span class="stringliteral">"No valid elements in Resol column. "</span></div>
-<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>                  <span class="stringliteral">"You must decrease parameter rebin.wavestep"</span>);</div>
-<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>            <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(resol_avg=cpl_table_get_column_median(linetable, <span class="stringliteral">"Resol"</span>));</div>
-<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>            <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(resol_stdev=cpl_table_get_column_stdev (linetable, <span class="stringliteral">"Resol"</span>));</div>
-<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> </div>
-<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>             <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(linetable); i++)</div>
-<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>             {</div>
-<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>                 <span class="keywordtype">double</span> r = cpl_table_get_double(linetable, <span class="stringliteral">"Resol"</span>, i, NULL);</div>
-<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>                 <span class="keywordflow">if</span> (r < resol_avg - kappar*resol_stdev ||</div>
-<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>                 r > resol_avg + kappar*resol_stdev)</div>
-<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>                 {</div>
-<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>                     cpl_table_set_invalid(linetable, <span class="stringliteral">"Resol"</span>, i);</div>
-<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>                     cpl_table_set_invalid(linetable, <span class="stringliteral">"deltaLambda"</span>, i);</div>
-<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>                 }</div>
-<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>             }</div>
-<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>         }</div>
-<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> </div>
-<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>         <span class="comment">/* check( uves_plot_table(linetable, "X", "Resol", </span></div>
-<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> <span class="comment">           "(x, l / dl)"), "Plotting failed"); </span></div>
-<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> <span class="comment">           check( uves_plot_table(linetable, "Y", "Resol", </span></div>
-<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> <span class="comment">           "(y, l / dl)"), "Plotting failed"); </span></div>
-<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_table(linetable, LINETAB_LAMBDAC, <span class="stringliteral">"Resol"</span>,</div>
-<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>                        <span class="stringliteral">"(l, l / dl)"</span>), <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>         }</div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>         </div>
-<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>         <span class="comment">/* Plot identifications */</span></div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>             uves_free_table(&temp);</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( temp = cpl_table_duplicate(linetable), </div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>            <span class="stringliteral">"Error copying line table"</span>);</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_erase_invalid_table_rows(temp, <span class="stringliteral">"Ident"</span>), </div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>            <span class="stringliteral">"Error removing un-identified lines"</span>);</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_plot_table(temp, <span class="stringliteral">"X"</span>, <span class="stringliteral">"Ynew"</span>, </div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>                    <span class="stringliteral">"Line identifications"</span>), </div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>            <span class="stringliteral">"Plotting failed"</span>);</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>         uves_free_table(&temp);</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> </div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>     } <span class="comment">/* Plots for middle (object) window */</span></div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> </div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>     <span class="keywordflow">if</span> (debug_mode) </div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>     {</div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>         <span class="comment">/* Results of uves_wavecal_search are already </span></div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span> <span class="comment">           drawn on debug_image */</span></div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>         </div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>         <span class="comment">/* Draw guess table lines using the initial solution */</span></div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>         <span class="keywordflow">if</span> (0) <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__wavecal.html#ga274e895ff3513060affa6b987a13842a" title="Draw lines in an echelle image.">uves_draw_lines</a>(debug_image, initial_dispersion,</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>                       order_locations, guess,</div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>                       <span class="stringliteral">"Ident"</span>, <span class="stringliteral">"Order"</span>, relative_order,</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>                       -1, -1,</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>                       <span class="keyword">false</span>,     <span class="comment">/* true = vertical */</span></div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>                       12), <span class="stringliteral">"Error drawing guess solution"</span>);</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>         </div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>         <span class="comment">/* Draw catalogue lines using the initial solution */</span></div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__wavecal.html#ga274e895ff3513060affa6b987a13842a" title="Draw lines in an echelle image.">uves_draw_lines</a>(debug_image, initial_dispersion, order_locations,</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>                    line_refer, <span class="stringliteral">"Wave"</span>, NULL, relative_order,</div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>                    uves_min_int(*first_absolute_order, *last_absolute_order),</div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>                    uves_max_int(*first_absolute_order, *last_absolute_order),</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>                    <span class="keyword">true</span>,                   <span class="comment">/* true = vertical */</span></div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>                    8), <span class="stringliteral">"Error drawing catalogue lines"</span>);</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>         </div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>         <span class="comment">/* Draw catalogue lines using the final solution */</span></div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__wavecal.html#ga274e895ff3513060affa6b987a13842a" title="Draw lines in an echelle image.">uves_draw_lines</a>(debug_image, *dispersion_relation, order_locations, </div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>                    line_refer, <span class="stringliteral">"Wave"</span>, NULL, relative_order,</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>                    uves_min_int(*first_absolute_order, *last_absolute_order),</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>                    uves_max_int(*first_absolute_order, *last_absolute_order),</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>                    <span class="keyword">true</span>,                     <span class="comment">/* true = vertical */</span></div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>                    16), <span class="stringliteral">"Error drawing catalogue lines"</span>);</div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>         </div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>         <span class="comment">/* Draw detected lines using initial solution */</span></div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>         <span class="keywordflow">if</span> (0) <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__wavecal.html#ga274e895ff3513060affa6b987a13842a" title="Draw lines in an echelle image.">uves_draw_lines</a>(debug_image, initial_dispersion, </div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>                       order_locations, linetable, </div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>                       LINETAB_LAMBDAC, <span class="stringliteral">"Order"</span>, relative_order,</div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>                       -1, -1,</div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>                       <span class="keyword">false</span>,            <span class="comment">/* true = vertical */</span></div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>                       -16), <span class="stringliteral">"Error drawing detected lines"</span>);</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>         </div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>         <span class="comment">/* Draw IDed lines */</span></div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>             uves_free_table(&temp);</div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( temp = cpl_table_duplicate(linetable),</div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>             <span class="comment">/* Delete rows with invalid 'Ident' */</span></div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>             uves_erase_invalid_table_rows(temp, <span class="stringliteral">"Ident"</span>)),</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>           <span class="stringliteral">"Error duplicating table"</span>);</div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>         </div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__wavecal.html#ga274e895ff3513060affa6b987a13842a" title="Draw lines in an echelle image.">uves_draw_lines</a>(debug_image, *dispersion_relation, order_locations,</div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>                    temp, LINETAB_LAMBDAC, <span class="stringliteral">"Order"</span>, relative_order,</div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>                    -1, -1,</div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>                    <span class="keyword">true</span>,                  <span class="comment">/* true = vertical */</span></div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>                    0), <span class="stringliteral">"Error drawing detected lines"</span>);</div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>         </div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> </div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>         <span class="comment">/* Explanation of drawing produced by code above:</span></div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> <span class="comment">           The output frame emission lines will look like this</span></div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> <span class="comment"></span></div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span> <span class="comment"></span></div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span> <span class="comment">                     #### |1</span></div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> <span class="comment">                         ####   |2  </span></div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span> <span class="comment">                         #|3#</span></div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> <span class="comment">                         -+--</span></div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span> <span class="comment">                         #|##</span></div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> <span class="comment">                         ####</span></div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> <span class="comment">                         ####</span></div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> <span class="comment">        </span></div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> <span class="comment"></span></div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> <span class="comment">                Legend:</span></div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> <span class="comment"></span></div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span> <span class="comment">                  ##: The emmission line</span></div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> <span class="comment">                  --: (horizontal line) The line was detected</span></div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> <span class="comment">                  |1: (vertical line)   Predicted position (final solution)</span></div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> <span class="comment">                  |2: (vertical line)   Predicted position (initial solution)</span></div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> <span class="comment">                  |3: (vertical line)   Is drawn iff the line was identified</span></div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> <span class="comment"></span></div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> <span class="comment"></span></div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> <span class="comment">          </span></div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> </div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>         <span class="comment">/* Save the raw arc frame with detected emission lines marked */</span></div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Debug image"</span>, <span class="stringliteral">"rawdebug"</span>, </div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>                      debug_image, chip, trace, window,</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>                      rotated_header, <span class="keyword">true</span>),</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>            <span class="stringliteral">"Error saving spectrum"</span>);</div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>     }</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span> </div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>     <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>     {</div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>         <span class="keywordtype">int</span> start = 0;</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>         <span class="keywordtype">int</span> count = cpl_table_get_nrow(linetable);</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span> </div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( cpl_table_new_column(linetable, <span class="stringliteral">"Fibre"</span>, CPL_TYPE_INT) );</div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span> </div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>         cpl_table_fill_column_window(linetable, <span class="stringliteral">"Fibre"</span>,</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>                      start, count,</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>                      trace + 1);   <span class="comment">/* Write value in range 1-9 */</span></div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>     }</div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> </div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>   cleanup:</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span> </div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>     uves_free_table(&info_tbl);</div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>     uves_free_table(&temp);</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>     uves_free_image(&weights_opt);</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>     uves_free_table(&cr_table);</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>     uves_free_image(&cr_image);</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>     uves_free_image(&spectrum);</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>     uves_free_image(&spectrum_noise);</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>     uves_free_image(&debug_image);</div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>     uves_free_image(&rebinned);</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>     uves_free_image(&rebinned_noise);</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>     uves_free_image(&merged);</div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>     uves_free_image(&merged_noise);</div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>     uves_free_propertylist(&spectrum_header);</div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>     uves_free_propertylist(&rebinned_header);</div>
-<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>     uves_free_propertylist(&merged_header);</div>
-<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>     cpl_free(relative_order);</div>
-<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&initial_dispersion);</div>
-<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>     uves_free_table(&order_trace);</div>
-<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> </div>
-<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>     <span class="keywordflow">return</span> linetable;</div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> }</div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> </div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span> </div>
-<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span> </div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span> uves_wavecal_exe_body(cpl_frameset *frames,</div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>               <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>               <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> {</div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span> <span class="comment">     * Variables containg the values of recipe parameters </span></div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span> </div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>     <span class="comment">/* General */</span></div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>     <span class="keywordtype">bool</span> debug_mode;</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> </div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>     <span class="comment">/* Extraction */</span></div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>     <span class="keywordtype">int</span> NWINDOWS;</div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>     <span class="keywordtype">double</span> OFFSET;</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>     <span class="keywordtype">double</span> SLITLENGTH_par;  <span class="comment">/* slitlength given by user */</span></div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span> </div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>     <span class="comment">/* Search */</span></div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>     <span class="keywordtype">int</span>    RANGE;</div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>     <span class="keywordtype">int</span>    MAXLINES;</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>     <span class="keywordtype">int</span>    MINLINES;</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>     centering_method CENTERING_METHOD;</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span> </div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>     <span class="comment">/* First solution */</span></div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>     <span class="keywordtype">double</span> SHIFT_MAX;</div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>     <span class="keywordtype">double</span> SHIFT_STEP;</div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>     <span class="keywordtype">double</span> SHIFT_TOLERANCE;</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span> </div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>     <span class="comment">/* Identify */</span></div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>     <span class="keywordtype">double</span>  ALPHA;</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>     <span class="keywordtype">double</span>  MAXERROR;</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>     <span class="keywordtype">int</span>     DEGREE;</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>     <span class="comment">/* Calibrate */</span></div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>     <span class="keywordtype">double</span>  TOLERANCE;</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>     <span class="keywordtype">double</span>  KAPPA;</div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span> </div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>     <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>     cpl_image        *arclamp[2]          = {NULL, NULL};</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>     cpl_image        *arclamp_noise       = NULL;</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *arclamp_header[2]   = {NULL, NULL};</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *rotated_header[2]   = {NULL, NULL};</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>     </div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>     <span class="comment">/* Order table */</span></div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>     cpl_table        *ordertable            = NULL;</div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *ordertable_header     = NULL;</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>     <a class="code" href="struct__polynomial.html">polynomial</a>       *order_locations       = NULL;</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>     cpl_table        *traces                = NULL;</div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>     </div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>     <span class="comment">/* Bias */</span></div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>     cpl_image        *master_bias        = NULL;</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_bias_header = NULL;</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span> </div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>     <span class="comment">/* Flat field */</span></div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>     cpl_image        *master_flat        = NULL;</div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>     cpl_image        *mflat_noise        = NULL;</div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *master_flat_header = NULL;</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span> </div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>     <span class="comment">/* Weight map */</span></div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>     cpl_image        *weights            = NULL;</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span> </div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>     <span class="comment">/* DRS guess table is not used */</span></div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>     <span class="comment">/* </span></div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span> <span class="comment">       cpl_table        *drs_table             = NULL;</span></div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span> <span class="comment">       uves_propertylist *drs_header            = NULL;</span></div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span> </div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>     <span class="comment">//FLAMES-DRS specific descriptors</span></div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>     <span class="keywordtype">int</span>* fibres_mask=NULL;</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>     <span class="keywordtype">double</span>* fibres_pos=NULL;</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> </div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>     <span class="comment">/* Guess line table */</span></div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>     cpl_table        *guess              = NULL;</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>     <a class="code" href="struct__polynomial.html">polynomial</a>       *absolute_order     = NULL;</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>     </div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>     <span class="comment">/* Velocity correction table */</span></div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>     cpl_table        *corvel             = NULL;</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>     cpl_frame        *corvel_frm         = NULL;</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *corvel_header      = NULL;</div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span> </div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>     <span class="comment">/* Reference catalogue */</span></div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>     cpl_table        *line_refer            = NULL;</div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>     cpl_table        *line_intmon           = NULL;</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>    </div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>     <a class="code" href="structlt__type.html">lt_type</a>          *linetable             = NULL;</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> </div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *primary_header        = NULL;</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>     <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *table_header          = NULL;</div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>     <span class="comment">/* QC for resolution + intmon + NULL */</span></div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>     cpl_table        *qclog[3]              = {NULL, NULL, NULL};</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span> </div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>     <span class="comment">/* Local variables */</span></div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>     cpl_image        *absorder_image     = NULL;</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *arclamp_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *line_refer_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *line_intmon_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>     <span class="keywordtype">char</span> *product_filename = NULL;</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>     <span class="keywordtype">char</span> *temp = NULL;</div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>     <span class="keywordtype">bool</span> blue  = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>     <span class="keywordtype">bool</span> sim_cal = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>     <span class="keyword">enum</span> uves_chip chip;</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>     <span class="keywordtype">int</span> binx = 0;</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>     <span class="keywordtype">int</span> biny = 0;</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>     <span class="keywordtype">bool</span> drs_cvel_sw=<span class="keyword">false</span>;</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* PROCESS_CHIP=NULL;</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>     extract_method em;</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span> </div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>     <span class="comment">/* Read recipe parameters */</span></div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>     {</div>
-<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *centering_m = <span class="stringliteral">"gaussian"</span>;</div>
-<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *profile = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> </div>
-<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>  </div>
-<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span> </div>
-<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>     <span class="comment">/* General */</span></div>
-<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"debug"</span>, </div>
-<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>                   CPL_TYPE_BOOL, &debug_mode), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>     </div>
-<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, <span class="stringliteral">"uves"</span>, <span class="stringliteral">"process_chip"</span>, CPL_TYPE_STRING, &PROCESS_CHIP),</div>
-<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>                <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>     <a class="code" href="group__uves__utils.html#ga2a5caaaeaa2b6c3aac70fe5b01be9487" title="Convert all lowercase characters in a string into uppercase characters.">uves_string_toupper</a>((<span class="keywordtype">char</span>*)PROCESS_CHIP);</div>
-<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> </div>
-<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>         <span class="comment">/* Extraction */</span></div>
-<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"nwindows"</span>,</div>
-<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>                   CPL_TYPE_INT   , &NWINDOWS    ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"length"</span>,</div>
-<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>                   CPL_TYPE_DOUBLE, &SLITLENGTH_par), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"offset"</span>,</div>
-<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>                   CPL_TYPE_DOUBLE, &OFFSET      ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>     </div>
-<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>     <span class="comment">/* Don't allow optimal extraction. This requires that</span></div>
-<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span> <span class="comment">       additional arguments (weight image, ..) are passed to uves_extract */</span></div>
-<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>     temp = uves_sprintf(<span class="stringliteral">"%s.%s"</span>, recipe_id, UVES_EXTRACT_ID);</div>
-<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( em = <a class="code" href="group__uves__extract.html#gaa6ae7afeaf5c4a71eb399ffa29a828f7" title="Read extraction method from parameter list.">uves_get_extract_method</a>(parameters, NULL, temp),</div>
-<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>            <span class="stringliteral">"Could not read extraction method"</span>);</div>
-<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>     </div>
-<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, UVES_EXTRACT_ID <span class="stringliteral">".profile"</span>,</div>
-<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>                   CPL_TYPE_STRING, &profile), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span> </div>
-<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>     assure( em == EXTRACT_LINEAR || em == EXTRACT_AVERAGE || em == EXTRACT_WEIGHTED ||</div>
-<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>             (em == EXTRACT_OPTIMAL && strcmp(profile, <span class="stringliteral">"constant"</span>) == 0),</div>
-<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>             CPL_ERROR_UNSUPPORTED_MODE, </div>
-<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>             <span class="stringliteral">"Only linear/average/weighted/optimal(constant profile) extraction "</span></div>
-<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>             <span class="stringliteral">"methods are supported by this recipe"</span>);</div>
-<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>     </div>
-<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>     <span class="comment">/* Search */</span></div>
-<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"search.range"</span>,</div>
-<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>                   CPL_TYPE_INT   , &RANGE       ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"search.minlines"</span>,</div>
-<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>                   CPL_TYPE_INT   , &MINLINES    ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"search.maxlines"</span>,</div>
-<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>                   CPL_TYPE_INT   , &MAXLINES    ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> <span class="comment">    check( uves_get_parameter(parameters, NULL, recipe_id, "search.centeringmethod",</span></div>
-<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span> <span class="comment">                  CPL_TYPE_STRING, &centering_m ), "Could not read parameter");</span></div>
-<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> <span class="comment">*/</span></div>
-<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>     <span class="keywordflow">if</span>      (strcmp(centering_m, <span class="stringliteral">"gravity"</span> ) == 0) CENTERING_METHOD = CENTERING_GRAVITY;</div>
-<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(centering_m, <span class="stringliteral">"gaussian"</span>) == 0) CENTERING_METHOD = CENTERING_GAUSSIAN;</div>
-<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>         { </div>
-<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>         <span class="comment">/* Impossible */</span> assure(<span class="keyword">false</span>, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>                     <span class="stringliteral">"Unrecognized parameter value '%s'"</span>, centering_m);</div>
-<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>         }</div>
-<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>     </div>
-<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>     <span class="comment">/* First solution */</span></div>
-<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"first.shiftmax"</span>,</div>
-<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>                   CPL_TYPE_DOUBLE , &SHIFT_MAX      ),</div>
-<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>            <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"first.shiftstep"</span>, </div>
-<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>                   CPL_TYPE_DOUBLE , &SHIFT_STEP     ), </div>
-<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>            <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"first.shifttoler"</span>,</div>
-<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>                   CPL_TYPE_DOUBLE , &SHIFT_TOLERANCE), </div>
-<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>            <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>     </div>
-<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>     <span class="comment">/* Identify */</span></div>
-<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"identify.alpha"</span>,</div>
-<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>                   CPL_TYPE_DOUBLE , &ALPHA      ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"identify.maxerror"</span>,</div>
-<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>                   CPL_TYPE_DOUBLE , &MAXERROR   ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"identify.degree"</span>,</div>
-<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>                   CPL_TYPE_INT    , &DEGREE     ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>     </div>
-<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>     <span class="comment">/* Calibrate */</span></div>
-<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"calibrate.tolerance"</span>,</div>
-<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>                   CPL_TYPE_DOUBLE, &TOLERANCE   ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_get_parameter(parameters, NULL, recipe_id, <span class="stringliteral">"calibrate.kappa"</span>,</div>
-<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>                   CPL_TYPE_DOUBLE, &KAPPA   ), <span class="stringliteral">"Could not read parameter"</span>);</div>
-<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>     </div>
-<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>     <span class="comment">/* Additional checks */</span></div>
-<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>     <span class="keywordflow">if</span> (CENTERING_METHOD == CENTERING_GRAVITY)</div>
-<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>         {</div>
-<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Centering method 'gravity' might lead to inaccurate "</span></div>
-<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>                  <span class="stringliteral">"results. Recommended is 'gaussian'"</span>);</div>
-<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>         }</div>
-<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>     }</div>
-<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span> </div>
-<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>     <span class="comment">/* Load raw image and header, and identify input frame as red or blue */</span></div>
-<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_arclamp(frames, flames, &arclamp_filename, arclamp, arclamp_header, </div>
-<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>                  rotated_header, &blue, &sim_cal), <span class="stringliteral">"Error loading raw frame"</span>);</div>
-<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span> </div>
-<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>     <span class="comment">/* Load reference line table */</span></div>
-<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_linerefertable(frames, &line_refer_filename, &line_refer, NULL),</div>
-<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>        <span class="stringliteral">"Could not load line reference table"</span>);</div>
-<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using line reference table '%s'"</span>, line_refer_filename);</div>
-<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>     </div>
-<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>     <span class="comment">/* Load INTensity MONitoring table if present */</span></div>
-<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>     <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_LINE_INTMON_TABLE) != NULL)</div>
-<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>     {</div>
-<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>         uves_free_table(&line_intmon);</div>
-<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_lineintmon(frames, &line_intmon_filename,</div>
-<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>                     &line_intmon),</div>
-<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>            <span class="stringliteral">"Error loading line reference table"</span>);</div>
-<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>         </div>
-<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using bright line table '%s'"</span>, line_intmon_filename);</div>
-<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>     }</div>
-<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>   </div>
-<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>     <span class="comment">/*</span></div>
-<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span> <span class="comment">     * Adjust parameters according to binning </span></div>
-<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (binx = <a class="code" href="group__uves__pfits.html#gae0b6ba580cfa7d01649e9ed588e900c5" title="Find out the x binning factor.">uves_pfits_get_binx</a>(arclamp_header[0]),</div>
-<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>        <span class="stringliteral">"Could not read x binning factor from input header"</span>);</div>
-<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (biny = <a class="code" href="group__uves__pfits.html#ga84364746b39a7419cf7151b5030b98bc" title="Find out the y binning factor.">uves_pfits_get_biny</a>(arclamp_header[0]),</div>
-<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>        <span class="stringliteral">"Could not read y binning factor from input header"</span>);</div>
-<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>     SLITLENGTH_par /= (1.0*binx);  <span class="comment">/* Extraction slit length */</span></div>
-<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>     RANGE /= (1.0*biny);           <span class="comment">/* Search window */</span></div>
-<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>     SHIFT_MAX /= (1.0*binx);       <span class="comment">/* Max shift compared to guess solution */</span></div>
-<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>     SHIFT_STEP /= (1.0*binx);</div>
-<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span> </div>
-<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>     <span class="comment">/* After the default tolerance was lowered to 0.07, do not adjust it according to binning,</span></div>
-<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span> <span class="comment">       which would cause too many lines to be rejected</span></div>
-<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span> <span class="comment">       </span></div>
-<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span> <span class="comment">       TOLERANCE /= (1.0*biny); </span></div>
-<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span> </div>
-<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span> </div>
-<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>     <span class="comment">/* Loop over one or two chips, over traces and</span></div>
-<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span> <span class="comment">       over extraction windows */</span></div>
-<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>     <span class="keywordflow">for</span> (chip = <a class="code" href="group__uves__chip.html#gaf7467d3681b7049a7d6f8757eda8c29e" title="Get first chip for blue or red arm.">uves_chip_get_first</a>(blue); </div>
-<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>          chip != UVES_CHIP_INVALID; </div>
-<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>          chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip)) {</div>
-<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span> </div>
-<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span> </div>
-<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>         <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDU"</span>) == 0) {</div>
-<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>             chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>         }</div>
-<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>       </div>
-<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *ordertable_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *corvel_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *master_flat_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *master_bias_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *weights_filename = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>         <span class="comment">/* const char *drs_filename        = "";    not used */</span></div>
-<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *guess_filename      = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *chip_name = <span class="stringliteral">""</span>;</div>
-<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>         <span class="keywordtype">int</span> ntraces;</div>
-<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>         <span class="keywordtype">int</span> tracerow;                       <span class="comment">/* Index of table row */</span></div>
-<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>         <span class="keywordtype">int</span> raw_index = <a class="code" href="group__uves__chip.html#ga1a38f30e8415ff169d514267a6d30142" title="Convert to integer.">uves_chip_get_index</a>(chip);</div>
-<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>         <span class="keywordtype">int</span> current_linetable_extension;</div>
-<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>         <span class="keywordtype">int</span> tab_in_out_oshift = -1;</div>
-<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>         <span class="keywordtype">double</span> tab_in_out_yshift = -1;</div>
-<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>         <span class="keywordtype">double</span> slitlength;</div>
-<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>       </div>
-<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing %s chip in '%s'"</span>,</div>
-<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>                <a class="code" href="group__uves__chip.html#ga8a5203429297c2ab00a49b758f00091d" title="Convert to string.">uves_chip_tostring_upper</a>(chip), arclamp_filename);</div>
-<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>       </div>
-<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>       <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( chip_name = <a class="code" href="group__uves__pfits.html#ga6f098728931dd4ac2f2598991f920a8e" title="Find out the chip ID.">uves_pfits_get_chipid</a>(arclamp_header[raw_index], chip));</div>
-<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>       </div>
-<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>       </div>
-<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>       <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"binning = %dx%d"</span>, binx, biny);</div>
-<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>       </div>
-<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>       </div>
-<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>       <span class="comment">/* Load the order table for this chip */</span></div>
-<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>       uves_free_table       (&ordertable);</div>
-<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>       uves_free_propertylist(&ordertable_header);</div>
-<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>       <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>       uves_free_table       (&traces);</div>
-<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>       </div>
-<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>       </div>
-<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_ordertable(frames, </div>
-<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>                                   flames,</div>
-<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>                                   chip_name, </div>
-<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>                                   &ordertable_filename,</div>
-<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>                                   &ordertable, </div>
-<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>                                   &ordertable_header,</div>
-<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>                                   NULL,</div>
-<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>                                   &order_locations, </div>
-<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>                                   &traces, </div>
-<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>                                   (flames) ? &tab_in_out_oshift : NULL,</div>
-<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>                                   (flames) ? &tab_in_out_yshift : NULL,</div>
-<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>                                   &fibres_mask, </div>
-<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>                                   &fibres_pos, <span class="comment">/* fibre_pos,fibre_mask */</span></div>
-<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>                                   chip, </div>
-<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>                                   <span class="keyword">false</span>  <span class="comment">/* load guess table? */</span>),</div>
-<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>              <span class="stringliteral">"Could not load order table"</span>);</div>
-<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using order table in '%s'"</span>, ordertable_filename);</div>
-<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>       ntraces = cpl_table_get_nrow(traces);</div>
-<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>       uves_free_double(&fibres_pos);</div>
-<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>       uves_free_int(&fibres_mask);</div>
-<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>       </div>
-<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>       <span class="comment">/* Load master bias if present */</span></div>
-<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>       uves_free_image(&master_bias);</div>
-<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>       uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>       <span class="keywordflow">if</span> (cpl_frameset_find(frames, UVES_MASTER_BIAS(chip)) != NULL)</div>
-<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>           {</div>
-<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>               <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mbias(frames, chip_name, &master_bias_filename, &master_bias, </div>
-<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>                                      &master_bias_header, chip),</div>
-<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>                      <span class="stringliteral">"Error loading master bias"</span>);</div>
-<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>               </div>
-<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>               <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master bias in '%s'"</span>, master_bias_filename);</div>
-<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>           }</div>
-<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>           {</div>
-<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>               <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Master bias not provided. Bias subtraction not done"</span>);</div>
-<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>           }</div>
-<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>       </div>
-<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>       </div>
-<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>       <span class="comment">/* Load master flat if present */</span></div>
-<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>       uves_free_image(&master_flat);</div>
-<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>       uves_free_propertylist(&master_flat_header);</div>
-<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>       <span class="keywordflow">if</span> ((cpl_frameset_find(frames, UVES_MASTER_FLAT(chip)) != NULL ||</div>
-<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>            cpl_frameset_find(frames, UVES_MASTER_DFLAT(chip)) != NULL ||</div>
-<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>            cpl_frameset_find(frames, UVES_MASTER_IFLAT(chip)) != NULL ||</div>
-<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>            cpl_frameset_find(frames, UVES_MASTER_TFLAT(chip)) != NULL))</div>
-<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>           {</div>
-<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>               <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_mflat(frames, chip_name, &master_flat_filename, &master_flat, </div>
-<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>                                      &master_flat_header, chip, NULL),</div>
-<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>                      <span class="stringliteral">"Error loading master flat"</span>);</div>
-<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>               </div>
-<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>               <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using master flat in '%s'"</span>, master_flat_filename);</div>
-<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>           }</div>
-<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>       <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>           {</div>
-<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>               <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Master flat not provided. Flat-fielding not done"</span>);</div>
-<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>           }</div>
-<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span> </div>
-<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>       <span class="comment">/* Load weight map if present */</span></div>
-<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>       <span class="keywordflow">if</span> (em == EXTRACT_WEIGHTED) {</div>
-<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>           uves_free_image(&weights);</div>
-<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( weights = uves_load_weights(frames, &weights_filename, chip),</div>
-<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>                  <span class="stringliteral">"Error loading weight map"</span>);</div>
-<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span> </div>
-<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>           <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Using weight map %s"</span>, weights_filename);</div>
-<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>       }</div>
-<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span> </div>
-<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>       <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>           <span class="comment">/* Load CORVEL table */</span></div>
-<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>           {</div>
-<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>              <span class="keywordflow">if</span> ((corvel_frm=cpl_frameset_find(frames, FLAMES_CORVEL_MASK)))</div>
-<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>                   {</div>
-<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>                       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_corvel(frames,</div>
-<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>                                               &corvel, &corvel_header,</div>
-<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>                                               &corvel_filename),</div>
-<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>                              <span class="stringliteral">"Could not load velocity correction table"</span>);</div>
-<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>                       </div>
-<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>                       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using velocity correction table %s"</span>, corvel_filename);</div>
-<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>                       drs_cvel_sw=<span class="keyword">true</span>;</div>
-<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>                       </div>
-<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>                       </div>
-<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>                   }</div>
-<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>               <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>                   {</div>
-<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>                       <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"No corvel table found. Switch off corvel"</span>);</div>
-<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>                       corvel = NULL;</div>
-<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>                   }</div>
-<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>           }</div>
-<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span> </div>
-<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>       <span class="comment">/* Allocate all line tables for this chip */</span></div>
-<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>       <a class="code" href="group__uves__wavecal.html#gad74b8d3dab9e9b4d32d0cc2d4bf898be" title="Deallocate line table.">uves_lt_delete</a>(&linetable);</div>
-<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>       linetable = <a class="code" href="group__uves__wavecal.html#ga50d8473c5bddc7dec58f539a6026eb49" title="Allocate line table.">uves_lt_new</a>(NWINDOWS, ntraces);</div>
-<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span> </div>
-<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span> </div>
-<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>       <span class="comment">/* Init QC tables for this chip */</span></div>
-<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>       <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]); qclog[0] = <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(arclamp_header[raw_index], chip);</div>
-<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>       <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[1]); qclog[1] = <a class="code" href="group__uves__qclog.html#ga1f5820862cbc6db753cd48235a97f1e2" title="Init QC-LOG table.">uves_qclog_init</a>(arclamp_header[raw_index], chip);</div>
-<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span> </div>
-<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>       <span class="comment">/* Saving the rotated raw arc frame */</span></div>
-<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>       <span class="keywordflow">if</span> (debug_mode) <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Arc lamp frame"</span>, <span class="stringliteral">"raw"</span>, </div>
-<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>                                               arclamp[raw_index], </div>
-<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>                                               chip, -1, -1, rotated_header[raw_index], <span class="keyword">true</span>),</div>
-<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>                         <span class="stringliteral">"Error saving arc lamp frame"</span>);</div>
-<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span> </div>
-<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>       <span class="keywordflow">if</span> (master_bias != NULL)</div>
-<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>           {</div>
-<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>               <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Subtracting master bias"</span>);</div>
-<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>                 </div>
-<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>               <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__utils.html#gaab60ba58a3dc620bf79a91ebde2751b3" title="Subtract bias.">uves_subtract_bias</a>(arclamp[raw_index], master_bias),</div>
-<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>                      <span class="stringliteral">"Error during bias subtraction"</span>);</div>
-<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>           }</div>
-<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>       <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>           <span class="comment">/* In lack of a real master bias frame, one might subtract the bias by estimating it</span></div>
-<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span> <span class="comment">             as the median value across the chip (which should be okay for arc lamp frames)</span></div>
-<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span> <span class="comment">          */</span></div>
-<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>             </div>
-<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>           <span class="comment">/* Disabled. Would need to be tested. probably doesn't make any big difference anyway</span></div>
-<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span> <span class="comment">             double bias = cpl_image_get_median(ff);</span></div>
-<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span> <span class="comment">             uves_msg_debug("Estimated bias level is %f ADU", bias);</span></div>
-<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span> <span class="comment">             cpl_image_subtract_scalar(ff, bias);</span></div>
-<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span> <span class="comment">          */</span></div>
-<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>       }</div>
-<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span> </div>
-<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span> </div>
-<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>       <span class="comment">/* Define arc lamp noise */</span></div>
-<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>       uves_free_image(&arclamp_noise);</div>
-<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>       <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( arclamp_noise = <a class="code" href="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7" title="Create noise image.">uves_define_noise</a>(arclamp[raw_index], </div>
-<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>                                                arclamp_header[raw_index], 1, chip),</div>
-<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>              <span class="stringliteral">"Could not set arc lamp noise"</span>);</div>
-<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span> </div>
-<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>       <span class="keywordflow">if</span> (master_flat != NULL)</div>
-<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>           {</div>
-<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>               <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Dividing by master flat"</span>);</div>
-<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>                 </div>
-<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>               uves_free_image(&mflat_noise);</div>
-<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>               <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( mflat_noise = </div>
-<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>                      <a class="code" href="group__uves__utils.html#gaefe47144b27fa36ac8a024aa7813bce7" title="Create noise image.">uves_define_noise</a>(master_flat, master_flat_header, </div>
-<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>                                        <a class="code" href="group__uves__pfits.html#ga2b4f1ab25eca67e06373e637b34f96a2" title="Find out the number of input raw frames.">uves_pfits_get_datancom</a>(master_flat_header),</div>
-<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>                                        chip),</div>
-<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>                      <span class="stringliteral">"Could not set master flat error bars"</span>);</div>
-<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>                 </div>
-<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>               <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__flatfield.html#gaa96727cda19ae088e522da95f95e6dbd" title="Divide by flat field.">uves_flatfielding</a>(arclamp[raw_index], arclamp_noise,</div>
-<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>                                        master_flat, mflat_noise),</div>
-<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>                      <span class="stringliteral">"Error while dividing by flat field"</span>);</div>
-<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>           }</div>
-<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span> </div>
-<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>       <span class="keywordflow">if</span> (debug_mode) <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Pre-processed arc lamp frame"</span>,</div>
-<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>                                               <span class="stringliteral">"preproc"</span>, </div>
-<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>                                               arclamp[raw_index], chip, -1, -1,</div>
-<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>                                               rotated_header[raw_index], <span class="keyword">true</span>),</div>
-<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>                         <span class="stringliteral">"Error saving arc lamp frame"</span>);</div>
-<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span> </div>
-<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>       <span class="comment">/* Set appropriate slitlength if user did not */</span></div>
-<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>       <span class="keywordflow">if</span> (SLITLENGTH_par < 0) {</div>
-<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>             </div>
-<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>           <span class="keywordtype">double</span> header_full_slit;</div>
-<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>             </div>
-<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>           <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( header_full_slit = </div>
-<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>                  <a class="code" href="group__uves__pfits.html#gada5bfd486b316634b1d107ea5fc2cd12" title="Read the slit length in pixels.">uves_pfits_get_slitlength_pixels</a>(arclamp_header[raw_index], chip),</div>
-<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>                  <span class="stringliteral">"Could not read slit length"</span>);</div>
-<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>             </div>
-<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>           <span class="comment">/* Avoid pixels at the edge of the slit</span></div>
-<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span> <span class="comment">           *  which are likely to be noisy </span></div>
-<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span> <span class="comment">           */</span></div>
-<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>           slitlength = uves_max_double(1.0, (header_full_slit - 2)/NWINDOWS);</div>
-<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span> </div>
-<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>           <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Full slit = %.2f pixels"</span>, header_full_slit);</div>
-<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>       }</div>
-<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>       <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>           slitlength = SLITLENGTH_par;</div>
-<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>       }</div>
-<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>                 </div>
-<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>    </div>
-<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>       <span class="comment">/* Loop over traces */</span></div>
-<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>       <span class="keywordflow">for</span>(tracerow = 0; tracerow < ntraces; tracerow++) {</div>
-<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>         <span class="keywordtype">double</span> trace_offset;</div>
-<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>         <span class="keywordtype">int</span> trace_number;</div>
-<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>         <span class="keywordtype">int</span> trace_enabled;</div>
-<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>         </div>
-<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>         trace_offset  = cpl_table_get_double(traces, <span class="stringliteral">"Offset"</span>   , tracerow, NULL);</div>
-<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>         trace_number  = cpl_table_get_int   (traces, <span class="stringliteral">"TraceID"</span>  , tracerow, NULL);</div>
-<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>         trace_enabled = cpl_table_get_int   (traces, <span class="stringliteral">"Tracemask"</span>, tracerow, NULL);</div>
-<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span> </div>
-<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>             <span class="keywordflow">if</span> (ntraces > 1) {</div>
-<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing trace %d"</span>, trace_number);</div>
-<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>             }</div>
-<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span> </div>
-<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>         <span class="keywordflow">if</span> (flames && sim_cal) </div>
-<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>         {</div>
-<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>             <span class="comment">/* Only calibrate SIMCAL fibre in SIMCAL mode */</span></div>
-<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>             trace_enabled = (trace_number == 1) ? 1 : 0;</div>
-<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>         }</div>
-<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span> </div>
-<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>         <a class="code" href="group__uves__msg.html#ga860195adbe6423be80bd52ab72c156dc" title="Print a message on a lower message level.">uves_msg_low</a>(<span class="stringliteral">"Trace offset = %.2f pixels ; enabled = %d"</span>,</div>
-<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>              trace_offset, trace_enabled);</div>
-<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>         </div>
-<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>         assure( flames || trace_number == 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>             <span class="stringliteral">"%s: UVES trace number must be 0, it is %d"</span>, </div>
-<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>             ordertable_filename, trace_number );</div>
-<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>         </div>
-<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>         </div>
-<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>         <span class="keywordflow">if</span> (trace_enabled != 0) {</div>
-<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>         <span class="keywordtype">int</span> window;          <span class="comment">/* window number */</span></div>
-<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span> </div>
-<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>         <span class="comment">/* Load guess line table for this trace, any window */</span></div>
-<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>         uves_free_table       (&guess);</div>
-<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&absolute_order);</div>
-<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span> </div>
-<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_load_linetable(</div>
-<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>                frames, flames, chip_name, order_locations,</div>
-<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>                cpl_table_get_column_min(ordertable, <span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>                cpl_table_get_column_max(ordertable, <span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>                &guess_filename, &guess, </div>
-<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>                NULL, NULL,</div>
-<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>                &absolute_order, chip, trace_number, -1),</div>
-<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>                <span class="stringliteral">"Could not load guess line table for trace number %d"</span>, </div>
-<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>                trace_number);</div>
-<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Using guess line table '%s'"</span>, guess_filename);</div>
-<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>  </div>
-<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>         <span class="keywordflow">if</span> (debug_mode)</div>
-<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>             {</div>
-<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>             <span class="comment">/* Create an image showing the polynomial   m = f(x,y)</span></div>
-<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span> <span class="comment">               where m is the absolute order number</span></div>
-<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>             <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span> </div>
-<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>             absorder_image = cpl_image_new(cpl_image_get_size_x(arclamp[raw_index]),</div>
-<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>                                cpl_image_get_size_y(arclamp[raw_index]),</div>
-<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>                                CPL_TYPE_FLOAT);</div>
-<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>             <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(absorder_image);</div>
-<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>             </div>
-<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>             <span class="keywordflow">for</span> (y = 1; y <= cpl_image_get_size_y(arclamp[raw_index]); y++)</div>
-<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>                 {</div>
-<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>                 <span class="keywordflow">for</span> (x = 1; x <= cpl_image_get_size_x(arclamp[raw_index]); x++)</div>
-<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>                     {</div>
-<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>                     <span class="keywordtype">double</span> absorder = </div>
-<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>                         <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(absolute_order, x, y);</div>
-<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>                     </div>
-<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>                     cpl_image_set(absorder_image, x, y, absorder);</div>
-<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>                     }</div>
-<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>                 }</div>
-<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>             </div>
-<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_image_local(<span class="stringliteral">"Absolute order image"</span>, <span class="stringliteral">"absord"</span>,</div>
-<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>                              absorder_image, chip, trace_number,</div>
-<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>                              1, rotated_header[raw_index], <span class="keyword">true</span>),</div>
-<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>                    <span class="stringliteral">"Error saving absolute order image"</span>);</div>
-<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>             </div>
-<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>             uves_free_image(&absorder_image);</div>
-<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>             }</div>
-<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span> </div>
-<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>         <span class="comment">/* Loop over sky windows */</span></div>
-<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>         <span class="keywordflow">for</span> (window = 1; window <= NWINDOWS; window ++) {</div>
-<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>             <span class="comment">/*      </span></div>
-<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span> <span class="comment">                | -trace_offs- | </span></div>
-<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span> <span class="comment">                |              |  -win_offs-  |</span></div>
-<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span> <span class="comment">                |              |              |</span></div>
-<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span> <span class="comment">                |              | | -glb_offs- | </span></div>
-<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span> <span class="comment">                        order_loc.=0       |</span></div>
-<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span> <span class="comment">                |</span></div>
-<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span> <span class="comment">                window_loc.</span></div>
-<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>                 </div>
-<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>             <span class="comment">/* Adjacent windows are separated by slitlength,</span></div>
-<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span> <span class="comment">               and offset is zero when window_number = (NWINDOWS+1)/2,</span></div>
-<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span> <span class="comment">               so the formula is */</span></div>
-<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>             <span class="keywordtype">double</span> window_offset =</div>
-<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>             slitlength * (window - (NWINDOWS+1) / 2.0);</div>
-<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span> </div>
-<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>             <span class="comment">/* Total offset (see sketch) */</span></div>
-<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>             <span class="keywordtype">double</span> offset = trace_offset + window_offset + OFFSET;</div>
-<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span> </div>
-<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>             <span class="comment">/* Number of lines to detect. Use defaults if </span></div>
-<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span> <span class="comment">               parameter values are negative */</span></div>
-<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span> <span class="preprocessor">#if 0</span></div>
-<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span> <span class="preprocessor"></span>            <span class="keywordtype">int</span> lines_min = (MINLINES >= 1) ? MINLINES : </div>
-<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>             (chip == UVES_CHIP_REDU) ? 1000 : 2000;</div>
-<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>             <span class="keywordtype">int</span> lines_max = (MAXLINES >= 1) ? MAXLINES : </div>
-<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>             (chip == UVES_CHIP_REDU) ? 1400 : 2400;</div>
-<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span> <span class="preprocessor"></span><span class="comment">/* like MIDAS (fewer lines): */</span></div>
-<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>             <span class="keywordtype">int</span> lines_min = (MINLINES >= 1) ? MINLINES : </div>
-<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>             (chip == UVES_CHIP_REDU) ? 1000 : 1100;</div>
-<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>             <span class="keywordtype">int</span> lines_max = (MAXLINES >= 1) ? MAXLINES : </div>
-<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>             (chip == UVES_CHIP_REDU) ? 1400 : 1600;</div>
-<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>             assure( lines_min <= lines_max , CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>                 <span class="stringliteral">"Minimum and maximum number of requested line "</span></div>
-<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>                 <span class="stringliteral">"detections don't make sense (min = %d; max = %d)"</span>,</div>
-<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>                 lines_min, lines_max);</div>
-<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span> </div>
-<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>             <span class="keywordflow">if</span> (NWINDOWS > 1) {</div>
-<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Processing window %d of %d"</span>, window, NWINDOWS);</div>
-<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>             }</div>
-<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>                     </div>
-<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( *(<a class="code" href="group__uves__wavecal.html#gaa98b57c1a71f64a50a4f4fa83d2d590c" title="Get dispersion relation.">uves_lt_get_disprel</a>(linetable, window, trace_number))</div>
-<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>                  == NULL, <span class="stringliteral">"%d %d"</span>, window, trace_number);</div>
-<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( *(<a class="code" href="group__uves__wavecal.html#ga28897452a40eb7c7a957c0761dd21842" title="Get absolute order polynomial.">uves_lt_get_absord</a> (linetable, window, trace_number))</div>
-<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>                  == NULL, <span class="stringliteral">"%d %d"</span>, window, trace_number);</div>
-<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span> </div>
-<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span> </div>
-<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>             <span class="keywordflow">if</span> (weights != NULL) {</div>
-<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>                 <span class="comment">/* Object weighted extraction, use offset = 0 three times */</span></div>
-<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>                 offset = 0;</div>
-<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>             }</div>
-<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>                     </div>
-<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>             <span class="comment">/* Set absord guess solution */</span></div>
-<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>             *<a class="code" href="group__uves__wavecal.html#ga28897452a40eb7c7a957c0761dd21842" title="Get absolute order polynomial.">uves_lt_get_absord</a>(linetable, window, trace_number) = </div>
-<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>             <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(absolute_order);</div>
-<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span> </div>
-<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>             <span class="comment">/* Execute macrosteps */</span></div>
-<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *<a class="code" href="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff" title="Get the table structure.">uves_lt_get_table</a>(linetable, window, trace_number) =</div>
-<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>                    uves_wavecal_process_window(</div>
-<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>                        <span class="comment">/* Raw */</span></div>
-<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>                        arclamp[raw_index], </div>
-<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>                        arclamp_noise,</div>
-<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>                        rotated_header[raw_index],</div>
-<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>                        <span class="comment">/* Calibration */</span></div>
-<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>                        ordertable, order_locations,</div>
-<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>                        master_flat != NULL,</div>
-<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>                        weights,</div>
-<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>                        <span class="comment">/* drs_table,  not used */</span></div>
-<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>                        guess,</div>
-<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>                        line_refer,</div>
-<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>                        flames,</div>
-<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>                        tab_in_out_oshift,</div>
-<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>                        tab_in_out_yshift,</div>
-<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>                    <span class="comment">/* Which window? */</span></div>
-<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>                        chip, biny, trace_number, window,NWINDOWS,</div>
-<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>                    <span class="comment">/* Parameters    */</span></div>
-<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>                    debug_mode,</div>
-<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>                    <span class="comment">/* Extract       */</span></div>
-<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>                    offset, slitlength, parameters, recipe_id,</div>
-<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>                    <span class="comment">/* Search        */</span></div>
-<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>                    RANGE, lines_min, lines_max, CENTERING_METHOD,</div>
-<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>                    <span class="comment">/* First solution */</span></div>
-<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>                    SHIFT_MAX, SHIFT_STEP, SHIFT_TOLERANCE,</div>
-<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>                    <span class="comment">/* Identify      */</span></div>
-<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>                    ALPHA, MAXERROR, DEGREE,</div>
-<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>                    <span class="comment">/* Calibrate     */</span></div>
-<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>                TOLERANCE, KAPPA,</div>
-<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>                        corvel_frm,qclog,</div>
-<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>                    <span class="comment">/* Returned */</span></div>
-<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>                    <a class="code" href="group__uves__wavecal.html#gaa98b57c1a71f64a50a4f4fa83d2d590c" title="Get dispersion relation.">uves_lt_get_disprel</a>(linetable, window, trace_number),</div>
-<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>                    <a class="code" href="group__uves__wavecal.html#ga28897452a40eb7c7a957c0761dd21842" title="Get absolute order polynomial.">uves_lt_get_absord</a> (linetable, window, trace_number),</div>
-<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>                    <a class="code" href="group__uves__wavecal.html#gaabce897a294645e87763f7f5ecdbcd30" title="Get first absolute order.">uves_lt_get_firstabs</a>(linetable, window, trace_number),</div>
-<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>                    <a class="code" href="group__uves__wavecal.html#gaca1246cec58a8bb8f218b993428985bc" title="Get last absolute order.">uves_lt_get_lastabs</a>(linetable, window, trace_number)),</div>
-<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>                <span class="stringliteral">"Wavelength calibration failed"</span>);</div>
-<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span> </div>
-<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span> </div>
-<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>             <span class="comment">//If CORVEL map is provided we perform the </span></div>
-<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>                     <span class="comment">//corresponding analysis</span></div>
-<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>             <span class="keywordflow">if</span>(drs_cvel_sw) {</div>
-<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>               <span class="comment">/*</span></div>
-<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span> <span class="comment">              define/local ord_min/i/1/1 0</span></div>
-<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span> <span class="comment">              define/local ord_max/i/1/1 0</span></div>
-<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span> <span class="comment">              define/local rsample/d/1/1 0</span></div>
-<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span> <span class="comment">              statistic/table {ORDTAB} :ORDER >Null</span></div>
-<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span> <span class="comment">              ord_min = outputr(1)</span></div>
-<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span> <span class="comment">              ord_max = outputr(2)</span></div>
-<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span> <span class="comment">              rsample = {{LINTAB},PIXEL(1)}</span></div>
-<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span> <span class="comment">              rsample = 2./3. * rsample</span></div>
-<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span> <span class="comment">              rebin/echelle  {ofrm} w{ofrm} {rsample} NONL {LINTAB} {SESSOUTV}</span></div>
-<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span> <span class="comment">              mercut/echelle w{ofrm} mw{ofrm} {ord_min},{ord_max} NOAPPEND </span></div>
-<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span> <span class="comment">              !corvel stuff</span></div>
-<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span> <span class="comment">              define/local OLD_CVEL_MAX/d/1/1 {DRS_CVEL_MAX}</span></div>
-<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span> <span class="comment">              define/local OLD_CVEL_MIN/d/1/1 {DRS_CVEL_MIN}</span></div>
-<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span> <span class="comment">              @p flames_reduce,VCORREL x1_rbf_ cvel1 0 {ord_max} {parCorVelTab} _0 _{chip({PATHID})} 0</span></div>
-<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span> <span class="comment">              DRS_CVEL_MAX = DRS_CVEL_MAX + {q1}</span></div>
-<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span> <span class="comment">              DRS_CVEL_MIN = DRS_CVEL_MIN + {q1}</span></div>
-<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span> <span class="comment"></span></div>
-<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span> <span class="comment">              @p flames_reduce,VCORREL x1_rbf_ cvel2 0 {ord_max} {parCorVelTab} _0 _{chip({PATHID})} 0</span></div>
-<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span> <span class="comment">              cvel_0 = {q1}</span></div>
-<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span> <span class="comment">              DRS_CVEL_MAX = OLD_CVEL_MAX</span></div>
-<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span> <span class="comment">              DRS_CVEL_MIN = OLD_CVEL_MIN</span></div>
-<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span> <span class="comment">              */</span></div>
-<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span> </div>
-<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span> </div>
-<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>             }</div>
-<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span> </div>
-<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span> </div>
-<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span> </div>
-<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>             <span class="keywordflow">if</span> (flames ||                             <span class="comment">/* FLAMES: all fibres */</span></div>
-<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>             (window == 2 && trace_number == 0)|| <span class="comment">/* UVES: central window */</span></div>
-<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>             (window == 1 && NWINDOWS == 1)) { <span class="comment">/* UVES: special user setting */</span></div>
-<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span> </div>
-<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_wavecal_qclog(</div>
-<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>                    *<a class="code" href="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff" title="Get the table structure.">uves_lt_get_table</a>(</div>
-<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>                        linetable,</div>
-<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>                        window,</div>
-<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>                        trace_number),</div>
-<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>                                    *<a class="code" href="group__uves__wavecal.html#gaabce897a294645e87763f7f5ecdbcd30" title="Get first absolute order.">uves_lt_get_firstabs</a>(linetable, window, trace_number),</div>
-<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>                                    *<a class="code" href="group__uves__wavecal.html#gaca1246cec58a8bb8f218b993428985bc" title="Get last absolute order.">uves_lt_get_lastabs</a>(linetable, window, trace_number),</div>
-<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>                    arclamp[raw_index], </div>
-<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>                    arclamp_header[raw_index],</div>
-<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>                    flames, </div>
-<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>                    trace_number, trace_enabled, trace_offset,</div>
-<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>                    chip,</div>
-<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>                                    qclog[0]),</div>
-<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>                    <span class="stringliteral">"Could not calculate resolution QC parameters"</span>);</div>
-<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span> </div>
-<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>             <span class="keywordflow">if</span> (line_intmon != NULL) {</div>
-<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_wavecal_qclog_intmon(</div>
-<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>                        *<a class="code" href="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff" title="Get the table structure.">uves_lt_get_table</a>(</div>
-<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>                        linetable,</div>
-<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>                        window,</div>
-<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>                        trace_number), </div>
-<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>                        line_intmon,</div>
-<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>                        arclamp_header[raw_index],</div>
-<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>                        flames, trace_number,</div>
-<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>                        chip,</div>
-<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>                        qclog[1]),</div>
-<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>                    <span class="stringliteral">"Could not calculate int.mon. QC parameters"</span>);</div>
-<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>             }</div>
-<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>                 {</div>
-<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>                 <span class="comment">/* Kill initialization and set pointer to NULL */</span></div>
-<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>                 <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[1]);</div>
-<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>                 }</div>
-<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>             }</div>
-<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>                     </div>
-<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>             <span class="comment">/* Finished processing. Save later (because</span></div>
-<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span> <span class="comment">               all QC parameters must be available</span></div>
-<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span> <span class="comment">               when the product file is first created). */</span></div>
-<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span> </div>
-<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>         }<span class="comment">/* for each window... */</span></div>
-<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>             </div>
-<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>         }<span class="comment">/* if trace enabled? */</span></div>
-<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>         {</div>
-<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Skipping trace number %d"</span>, trace_number);</div>
-<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>         }</div>
-<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>     }<span class="comment">/* for each trace... */</span></div>
-<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span> </div>
-<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>     <span class="comment">/* Finished calculating all line tables for current chip. Now save. */</span></div>
-<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span> </div>
-<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>     <span class="comment">/* Prepare product filename </span></div>
-<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span> <span class="comment">       (which need not be calculated for each trace and window) */</span></div>
-<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>     cpl_free(product_filename);</div>
-<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( product_filename = uves_line_table_filename(chip), <span class="stringliteral">"Error getting filename"</span>);</div>
-<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>     current_linetable_extension = 1;</div>
-<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>         </div>
-<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>     <span class="comment">/* Loop over traces */</span></div>
-<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>     <span class="keywordflow">for</span>(tracerow = 0; tracerow < cpl_table_get_nrow(traces); tracerow++)</div>
-<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>         {</div>
-<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>         <span class="keywordtype">int</span> trace_number;</div>
-<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>         <span class="keywordtype">double</span> trace_offset;</div>
-<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>         <span class="keywordtype">int</span> trace_enabled;</div>
-<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>             </div>
-<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>         trace_offset  = cpl_table_get_double(traces, <span class="stringliteral">"Offset"</span>    , tracerow, NULL);</div>
-<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>         trace_number  = cpl_table_get_int   (traces, <span class="stringliteral">"TraceID"</span>   , tracerow, NULL);</div>
-<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>         trace_enabled = cpl_table_get_int   (traces, <span class="stringliteral">"Tracemask"</span> , tracerow, NULL);</div>
-<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>             </div>
-<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>         <span class="keywordflow">if</span> (trace_enabled != 0)</div>
-<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>                     {</div>
-<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>             <span class="keywordtype">int</span> window;</div>
-<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>                 </div>
-<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>             <span class="comment">/* Loop over sky windows */</span></div>
-<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>             <span class="keywordflow">for</span> (window = 1; window <= NWINDOWS; window ++)</div>
-<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>                 {</div>
-<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>                 <span class="keywordtype">double</span> window_offset =</div>
-<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>                     slitlength * (window - (NWINDOWS+1) / 2.0);</div>
-<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>             </div>
-<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>                 <span class="keywordtype">double</span> offset = trace_offset + window_offset + OFFSET;</div>
-<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>         </div>
-<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span>                 <span class="comment">/* Table header */</span></div>
-<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>                 uves_free_propertylist(&table_header);</div>
-<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>                 table_header   = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga7ee7734c381f31039220820182a749c9" title="Write the trace ID.">uves_pfits_set_traceid</a>     ( table_header, trace_number),</div>
-<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span>                        <span class="stringliteral">"Error writing trace ID to product header"</span>);</div>
-<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gae66ad0ee347230f2fea240f445104a20" title="Write the trace offset.">uves_pfits_set_offset</a>      ( table_header, offset),</div>
-<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>                        <span class="stringliteral">"Error writing trace offset to product header"</span>);</div>
-<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#gab684709b2ade5e2322325761799e92d0" title="Write the window number.">uves_pfits_set_windownumber</a>( table_header, window),</div>
-<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>                        <span class="stringliteral">"Error writing window number to product header"</span>);</div>
-<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga33e51be1bfd4b8f42972789c417211ae" title="Write the first absolute order number.">uves_pfits_set_firstabsorder</a>( table_header, </div>
-<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>                                      *<a class="code" href="group__uves__wavecal.html#gaabce897a294645e87763f7f5ecdbcd30" title="Get first absolute order.">uves_lt_get_firstabs</a>(</div>
-<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>                                      linetable, </div>
-<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span>                                      window,</div>
-<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span>                                      trace_number)),</div>
-<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>                        <span class="stringliteral">"Error writing order number to product header"</span>);</div>
-<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__pfits.html#ga69fae305f143947cdd58f3c575e7ba9a" title="Write the last absolute order number.">uves_pfits_set_lastabsorder</a>( table_header,</div>
-<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>                                     *<a class="code" href="group__uves__wavecal.html#gaca1246cec58a8bb8f218b993428985bc" title="Get last absolute order.">uves_lt_get_lastabs</a>(</div>
-<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>                                     linetable, </div>
-<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>                                     window,</div>
-<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>                                     trace_number)),</div>
-<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>                        <span class="stringliteral">"Error writing order number to product header"</span>);</div>
-<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span> </div>
-<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>                 <span class="comment">/* Save line table + 2 polynomials (in 3 extensions) */</span></div>
-<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span> </div>
-<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>                 <span class="keywordflow">if</span> (current_linetable_extension == 1) {</div>
-<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>                     uves_free_propertylist(&primary_header);</div>
-<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>                     primary_header = <a class="code" href="group__uves__propertylist.html#gac87c6bfca337c5c592ee22e30fc8b596" title="Create an empty property list.">uves_propertylist_new</a>();</div>
-<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>                     </div>
-<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>                     <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>               {</div>
-<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span>             <span class="keywordtype">char</span> values[80];</div>
-<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>             <span class="comment">/* The MIDAS pipeline writes this QC to the</span></div>
-<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span> <span class="comment">               header (always zero), but not as part of</span></div>
-<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span> <span class="comment">               the QC logging */</span></div>
-<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__pfits.html#ga18d5d37d2b633d137b3c256e9e61c029" title="Write the ccfposmax keyword (what is it?)">uves_flames_pfits_set_ccfposmax</a>(</div>
-<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span>                                      primary_header, 0.0) );</div>
-<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>             <span class="comment">//Add descriptors needed for science reduction</span></div>
-<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>             <span class="comment">/* FIBREMASK */</span></div>
-<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span> </div>
-<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>             uves_propertylist_append_string(primary_header, </div>
-<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>                             <span class="stringliteral">"HISTORY"</span>, </div>
-<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>                             <span class="stringliteral">"'FIBREMASK','I*4'"</span>);</div>
-<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span> </div>
-<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>             {</div>
-<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>               <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>               <span class="keywordflow">for</span> (i = 0; i < N_FIBRES_MAX; i++) {</div>
-<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>                 snprintf(values, 80, <span class="stringliteral">"%1.1d "</span>,</div>
-<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>                      cpl_table_get_int(traces,<span class="stringliteral">"Tracemask"</span>,</div>
-<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>                                i,NULL));</div>
-<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>                 uves_propertylist_append_string(primary_header,</div>
-<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>                                 <span class="stringliteral">"HISTORY"</span>, values);</div>
-<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>                 <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"value=%d"</span>,</div>
-<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>                          cpl_table_get_int(traces,</div>
-<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>                                    <span class="stringliteral">"Tracemask"</span>,</div>
-<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>                                    i,NULL));</div>
-<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>               }</div>
-<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>             }</div>
-<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>             uves_propertylist_append_string(primary_header,</div>
-<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>                             <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span> </div>
-<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span> </div>
-<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>             <span class="comment">/* PIXEL */</span>        </div>
-<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>                         <span class="keywordtype">double</span> pixelsize;</div>
-<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>                         <span class="keywordtype">double</span> wavestep;</div>
-<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span> </div>
-<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( pixelsize = </div>
-<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>                    cpl_table_get_column_mean(</div>
-<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>                              *<a class="code" href="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff" title="Get the table structure.">uves_lt_get_table</a>(</div>
-<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>                                         linetable,</div>
-<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>                                         window,</div>
-<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>                                         trace_number),</div>
-<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>                              LINETAB_PIXELSIZE),</div>
-<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>                    <span class="stringliteral">"Error reading mean pixelsize"</span>);</div>
-<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>             <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Average pixelsize = %f w.l.u."</span>, </div>
-<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>                        pixelsize);</div>
-<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span> </div>
-<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>             wavestep = pixelsize*2.0/3;</div>
-<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span> </div>
-<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>             uves_propertylist_append_string(primary_header, </div>
-<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>                             <span class="stringliteral">"HISTORY"</span>, </div>
-<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>                             <span class="stringliteral">"'PIXEL','R*4'"</span>);</div>
-<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>             snprintf(values,80,<span class="stringliteral">"%14.7g %14.7g"</span>,pixelsize,pixelsize);</div>
-<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>             uves_propertylist_append_string(primary_header,</div>
-<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>                             <span class="stringliteral">"HISTORY"</span>, values);</div>
-<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>             uves_propertylist_append_string(primary_header,</div>
-<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>                             <span class="stringliteral">"HISTORY"</span>, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span>                       </div>
-<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span> </div>
-<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span> </div>
-<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>               }</div>
-<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span>                     </div>
-<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span>                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Creating line table '%s'"</span>, product_filename);</div>
-<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_frameset_insert(</div>
-<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>                            frames,</div>
-<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>                            *<a class="code" href="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff" title="Get the table structure.">uves_lt_get_table</a>(</div>
-<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>                                linetable,</div>
-<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>                                window,</div>
-<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>                                trace_number),</div>
-<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>                            CPL_FRAME_GROUP_PRODUCT,</div>
-<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>                            CPL_FRAME_TYPE_TABLE,</div>
-<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>                            CPL_FRAME_LEVEL_INTERMEDIATE,</div>
-<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>                            product_filename,</div>
-<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>                            UVES_LINE_TABLE(flames, chip),</div>
-<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>                            arclamp_header[raw_index],     </div>
-<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>                            primary_header,</div>
-<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>                            table_header,</div>
-<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>                            parameters,</div>
-<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span>                            recipe_id,</div>
-<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>                            PACKAGE <span class="stringliteral">"/"</span> PACKAGE_VERSION,</div>
-<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>                            qclog, starttime, <span class="keyword">true</span>, 0),</div>
-<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>                            <span class="stringliteral">"Could not add line table '%s' (%s) to frameset"</span>,</div>
-<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>                            product_filename, UVES_LINE_TABLE(flames, chip));</div>
-<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>                         </div>
-<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>                     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Line table '%s' (%s) added to frameset"</span>,</div>
-<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>                          product_filename, UVES_LINE_TABLE(flames, chip));</div>
-<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>                     }</div>
-<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>                 <span class="keywordflow">else</span>   <span class="comment">/* If this is not the first line table, </span></div>
-<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span> <span class="comment">                      append to the existing file */</span></div>
-<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>                     {</div>
-<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>                     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_table_save(</div>
-<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>                            *<a class="code" href="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff" title="Get the table structure.">uves_lt_get_table</a>(linetable,</div>
-<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>                                       window,</div>
-<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>                                       trace_number),</div>
-<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>                            NULL,            <span class="comment">/* Primary header,</span></div>
-<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span> <span class="comment">                                       ignored when mode</span></div>
-<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span> <span class="comment">                                       is IO_EXTEND */</span></div>
-<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>                            table_header,    <span class="comment">/* Extension header */</span></div>
-<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>                            product_filename,<span class="comment">/* This file </span></div>
-<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span> <span class="comment">                                       already exists */</span></div>
-<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>                            CPL_IO_EXTEND),   <span class="comment">/* Append to</span></div>
-<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span> <span class="comment">                                    existing file */</span></div>
-<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>                            <span class="stringliteral">"Error appending table to file '%s'"</span>, </div>
-<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>                            product_filename);</div>
-<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>                     }</div>
-<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>                 current_linetable_extension += 1;</div>
-<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>                 </div>
-<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>                 <span class="comment">/* Save in next extension */</span></div>
-<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_polynomial(*<a class="code" href="group__uves__wavecal.html#gaa98b57c1a71f64a50a4f4fa83d2d590c" title="Get dispersion relation.">uves_lt_get_disprel</a>(</div>
-<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>                                 linetable, </div>
-<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>                                 window,</div>
-<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span>                                 trace_number),</div>
-<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>                                 product_filename,</div>
-<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>                                 table_header), </div>
-<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>                        <span class="stringliteral">"Could not write polynomial to file '%s'"</span>, </div>
-<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>                        product_filename);</div>
-<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>                 current_linetable_extension += 1;</div>
-<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span> </div>
-<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>                 <span class="comment">/* Save in next extension */</span></div>
-<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_save_polynomial(*<a class="code" href="group__uves__wavecal.html#ga28897452a40eb7c7a957c0761dd21842" title="Get absolute order polynomial.">uves_lt_get_absord</a>(</div>
-<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>                                 linetable, </div>
-<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>                                 window,</div>
-<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>                                 trace_number), </div>
-<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>                                 product_filename,</div>
-<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>                                 table_header), </div>
-<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>                        <span class="stringliteral">"Could not write polynomial to file '%s'"</span>, </div>
-<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>                        product_filename);</div>
-<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>                 current_linetable_extension += 1;</div>
-<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span> </div>
-<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>                 <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Line table for trace %d, window #%d "</span></div>
-<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>                      <span class="stringliteral">"saved to extensions %d-%d of '%s'"</span>,</div>
-<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>                      trace_number, window, </div>
-<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>                      current_linetable_extension - 3,</div>
-<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>                      current_linetable_extension - 1, </div>
-<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>                      product_filename);</div>
-<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span> </div>
-<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>                 } <span class="comment">/* for each window */</span></div>
-<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>             } <span class="comment">/* if trace enabled */</span></div>
-<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>         } <span class="comment">/* for each trace */</span></div>
-<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span> </div>
-<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>       <span class="keywordflow">if</span>(strcmp(PROCESS_CHIP,<span class="stringliteral">"REDL"</span>) == 0) {</div>
-<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>     chip = <a class="code" href="group__uves__chip.html#ga5055cc8c352e54991b620ae8cbd2466a" title="Get next chip.">uves_chip_get_next</a>(chip);</div>
-<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>       }</div>
-<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span> </div>
-<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span> </div>
-<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>     }<span class="comment">/* For each chip */</span></div>
-<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span> </div>
-<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>   cleanup:</div>
-<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span> </div>
-<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>     <span class="comment">/* Input */</span></div>
-<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>     uves_free_image(&arclamp[0]);</div>
-<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>     uves_free_image(&arclamp[1]);</div>
-<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span>     uves_free_image(&arclamp_noise);</div>
-<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>     uves_free_image(&absorder_image);</div>
-<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>     uves_free_propertylist(&arclamp_header[0]);</div>
-<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>     uves_free_propertylist(&arclamp_header[1]);</div>
-<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span>     uves_free_propertylist(&rotated_header[0]);</div>
-<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span>     uves_free_propertylist(&rotated_header[1]);</div>
-<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span> </div>
-<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span> </div>
-<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>     uves_free_table(&ordertable);</div>
-<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>     uves_free_propertylist(&ordertable_header);</div>
-<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>     uves_free_table(&corvel);</div>
-<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>     uves_free_propertylist(&corvel_header);</div>
-<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&order_locations);</div>
-<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&absolute_order);</div>
-<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>     uves_free_table(&traces);</div>
-<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span> </div>
-<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>     </div>
-<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>     uves_free_image(&master_bias);</div>
-<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>     uves_free_propertylist(&master_bias_header);</div>
-<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>     uves_free_image(&master_flat);</div>
-<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>     uves_free_image(&mflat_noise);</div>
-<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>     uves_free_propertylist(&master_flat_header);</div>
-<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>     uves_free_image(&weights);</div>
-<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span> </div>
-<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>     </div>
-<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>     <span class="comment">/* DRS not used</span></div>
-<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span> <span class="comment">       uves_free_table(&drs_table);</span></div>
-<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span> <span class="comment">       uves_free_propertylist(&drs_header);</span></div>
-<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>     </div>
-<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>     uves_free_table(&guess);</div>
-<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span> </div>
-<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>     uves_free_table(&line_refer);</div>
-<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>     uves_free_table(&line_intmon);</div>
-<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span> </div>
-<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span> </div>
-<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>     <span class="comment">/* Output */</span></div>
-<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>     <a class="code" href="group__uves__wavecal.html#gad74b8d3dab9e9b4d32d0cc2d4bf898be" title="Deallocate line table.">uves_lt_delete</a>(&linetable);</div>
-<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>     uves_free_propertylist(&primary_header);</div>
-<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>     uves_free_propertylist(&table_header);</div>
-<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[0]);</div>
-<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>     <a class="code" href="group__uves__qclog.html#gaa539e5d75f0e2bfabfc82b3ae4ec59f3" title="delete QC-LOG table">uves_qclog_delete</a>(&qclog[1]);</div>
-<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span> </div>
-<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>     cpl_free(product_filename);</div>
-<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span>     cpl_free(temp);</div>
-<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>      </div>
-<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span> }</div>
-<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span> </div>
-<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span> </div>
-<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_wavecal_qclog(<span class="keyword">const</span> cpl_table* linetable,</div>
-<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>                                <span class="keywordtype">int</span> firstabs,</div>
-<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span>                                <span class="keywordtype">int</span> lastabs,</div>
-<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span>                    <span class="keyword">const</span> cpl_image *arclamp,</div>
-<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>                    <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* raw_header,</div>
-<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>                    <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>                    <span class="keywordtype">int</span> trace_number,</div>
-<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>                    <span class="keywordtype">int</span> fibre_mask,</div>
-<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>                    <span class="keywordtype">double</span> offset,</div>
-<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>                    <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>                    cpl_table* qclog)</div>
-<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span> {</div>
-<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span> </div>
-<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_fib_drsno_name= <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"DRSNO"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_fib_seq_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"SEQ"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_fib_pos_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"POS"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_fib_msk_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"MSK"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_fwhmavg_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"FWHMAVG"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_fwhmrms_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"FWHMRMS"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_fwhmmed_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"FWHMMED"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_resolavg_name = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"RESOLAVG"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_resolrms_name = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"RESOLRMS"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_resolmed_name = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"RESOLMED"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_wlenmin_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"WLENMIN"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_wlenmax_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"WLENMAX"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_ordmin_name   = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"ORDMIN"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_ordmax_name   = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"ORDMAX"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_detected_ordmin_name   = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"ORDMIN DETECTED"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_detected_ordmax_name   = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"ORDMAX DETECTED"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_nlintot_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"NLINTOT"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_nlinsel_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"NLINSEL"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_nlinsol_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"NLINSOL"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_line_werr_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"LINE WAVEERR"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_line_wsys_name  = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"LINE SYSERR"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_nlinres1_name = <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"NLINRES1"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_lineresidavg_name = </div>
-<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>     <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"LINE RESIDAVG"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_lineresidrms_name = </div>
-<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span>     <a class="code" href="group__uves__qclog.html#ga6dd3d2c8c84269547ca6bb213c2ab60b" title="Create QC parameter name.">uves_qclog_get_qc_name</a>(<span class="stringliteral">"LINE RESIDRMS"</span>, flames, trace_number);</div>
-<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span>     <span class="keywordtype">char</span> comment[80];</div>
-<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span>     cpl_table *selected = NULL;</div>
-<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span>     <span class="keywordtype">double</span> wmin=0;</div>
-<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span>     <span class="keywordtype">double</span> wmax=0;</div>
-<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span>     <span class="keywordtype">double</span> wcen=0;</div>
-<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span>     <span class="keywordtype">int</span> nfinal=0;</div>
-<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span> </div>
-<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span>     <span class="keywordtype">char</span> test_id[80];</div>
-<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>     sprintf(test_id,<span class="stringliteral">"%sResolution-Test-Results"</span>,flames ? <span class="stringliteral">"Fibre-"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span> </div>
-<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>                       <span class="stringliteral">"QC TEST1 ID"</span>,</div>
-<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>                       test_id,</div>
-<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span>                       <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>                       <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span> </div>
-<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__qclog.html#ga66d1b116b78a6302ce5a2bb2d00c5d41" title="Write common QC parameters.">uves_qclog_add_common_wave</a>(raw_header, chip, qclog) );</div>
-<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span> </div>
-<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>     <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>     {</div>
-<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>         <span class="comment">/* Fibre ID */</span></div>
-<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>                        qc_fib_drsno_name,</div>
-<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>                        trace_number + 1,</div>
-<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>                        <span class="stringliteral">"DRS det. fibre seq. pos."</span>,</div>
-<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>                        <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>         </div>
-<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>         <span class="comment">/* Index */</span></div>
-<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>                        qc_fib_seq_name,</div>
-<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>                        trace_number + 1,</div>
-<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span>                        <span class="stringliteral">"det. fibre seq. no."</span>,</div>
-<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>                        <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span> </div>
-<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>                           qc_fib_pos_name,</div>
-<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>                           offset,</div>
-<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>                           <span class="stringliteral">"det. fibre seq. rel. pos."</span>,</div>
-<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>                           <span class="stringliteral">"%.4f"</span>));</div>
-<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span> </div>
-<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>                        qc_fib_msk_name,</div>
-<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>                        fibre_mask,</div>
-<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>                        <span class="stringliteral">"DRS det. fibre mask value"</span>,</div>
-<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>                        <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span> </div>
-<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>         {</div>
-<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span> </div>
-<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>         <span class="keywordtype">double</span> exptime;</div>
-<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>       </div>
-<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( exptime = <a class="code" href="group__uves__pfits.html#ga7bcb4bda625a9aee0a93daaa409e1320" title="Find out the integration time.">uves_flames_pfits_get_dit</a>(raw_header),</div>
-<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>                <span class="stringliteral">"Error reading exposure time"</span>);</div>
-<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>       </div>
-<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>                           <span class="stringliteral">"QC FIB ABSTRANS"</span>,</div>
-<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>                           cpl_image_get_flux(arclamp) / exptime,</div>
-<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>                           <span class="stringliteral">"abs. trans. countrate"</span>,</div>
-<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>                           <span class="stringliteral">"%.4f"</span>));</div>
-<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>         }</div>
-<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>         {</div>
-<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>         <span class="keywordtype">int</span> n_hpix;</div>
-<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>         <span class="keywordtype">int</span> x, y;</div>
-<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>       </div>
-<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>         n_hpix = 0;</div>
-<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>         <span class="keywordflow">for</span> (y = 1; y <= cpl_image_get_size_y(arclamp); y++)</div>
-<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>             <span class="keywordflow">for</span> (x = 1; x <= cpl_image_get_size_x(arclamp); x++)</div>
-<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>             {</div>
-<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>                 <span class="keywordtype">int</span> pis_rejected;</div>
-<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>                 <span class="keywordtype">int</span> value = cpl_image_get(arclamp, x, y, &pis_rejected);</div>
-<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span>           </div>
-<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>                 <span class="keywordflow">if</span> (!pis_rejected &&</div>
-<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>                 (value < DRS_PTHRES_MIN || value > DRS_PTHRES_MAX))</div>
-<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>                 {</div>
-<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>                     n_hpix += 1;</div>
-<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>                 }</div>
-<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>             }</div>
-<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span> </div>
-<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>                            <span class="stringliteral">"QC NHOTPIX"</span>,</div>
-<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>                            n_hpix,</div>
-<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>                            <span class="stringliteral">"no. of hot pixels"</span>,</div>
-<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>                            <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>       </div>
-<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>         }</div>
-<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>   </div>
-<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>         {</div>
-<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>         <span class="keywordtype">int</span> plate_id;</div>
-<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( plate_id = <a class="code" href="group__uves__pfits.html#gae70f662017b21fd4d83fa9d7b16fec50" title="read the plate id">uves_flames_pfits_get_plateid</a>(raw_header),</div>
-<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>                <span class="stringliteral">"Error reading plate ID"</span>);</div>
-<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>                            <span class="stringliteral">"QC PLATENO"</span>,</div>
-<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>                            plate_id,</div>
-<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>                            <span class="stringliteral">"Plate Id."</span>,</div>
-<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>                            <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>         }</div>
-<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span> </div>
-<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>     } <span class="comment">/* if flames */</span></div>
-<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span> </div>
-<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>     <span class="comment">/* FLAMES + UVES common QC params */</span></div>
-<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>     selected = uves_extract_table_rows(linetable, <span class="stringliteral">"NLinSol"</span>, CPL_NOT_EQUAL_TO, 0);</div>
-<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>     <span class="comment">/* FWHM in pixels */</span></div>
-<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>     sprintf(comment,<span class="stringliteral">"average FWHM in X of sel lines on TRACE%d WIN2 [pix]"</span>,trace_number);</div>
-<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>                       qc_fwhmavg_name,</div>
-<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>                       cpl_table_get_column_mean(selected,<span class="stringliteral">"Xwidth"</span>)*TWOSQRT2LN2,</div>
-<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>                       comment,</div>
-<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>                       <span class="stringliteral">"%.2f"</span>));</div>
-<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span> </div>
-<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>     sprintf(comment,<span class="stringliteral">"stdev FWHM in X of sel lines on TRACE%d WIN2 [pix]"</span>,trace_number);</div>
-<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>                       qc_fwhmrms_name,</div>
-<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>                       cpl_table_get_column_stdev(selected,<span class="stringliteral">"Xwidth"</span>)*TWOSQRT2LN2,</div>
-<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>                       comment,</div>
-<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>                       <span class="stringliteral">"%.4f"</span>));</div>
-<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span> </div>
-<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>     sprintf(comment,<span class="stringliteral">"median FWHM in X of sel lines on TRACE%d WIN2 [pix]"</span>,trace_number);</div>
-<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>                       qc_fwhmmed_name,</div>
-<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>                       cpl_table_get_column_median(selected,<span class="stringliteral">"Xwidth"</span>)*TWOSQRT2LN2,</div>
-<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>                       comment,</div>
-<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>                       <span class="stringliteral">"%.4f"</span>));</div>
-<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>    </div>
-<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>     sprintf(comment,<span class="stringliteral">"mean R of sel lines on TRACE%d WIN2"</span>,trace_number);</div>
-<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>                       qc_resolavg_name,</div>
-<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>                       cpl_table_get_column_mean(selected,<span class="stringliteral">"Resol"</span>),</div>
-<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span>                       comment,</div>
-<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span>                       <span class="stringliteral">"%.4f"</span>));</div>
-<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span> </div>
-<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span>     sprintf(comment,<span class="stringliteral">"stdev R of sel lines on TRACE%d WIN2"</span>,trace_number);</div>
-<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>                       qc_resolrms_name,</div>
-<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>                       cpl_table_get_column_stdev(selected,<span class="stringliteral">"Resol"</span>),</div>
-<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>                       comment,</div>
-<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>                       <span class="stringliteral">"%.4f"</span>));</div>
-<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span> </div>
-<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>     sprintf(comment,<span class="stringliteral">"median R of sel lines on TRACE%d WIN2"</span>,trace_number);</div>
-<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>                       qc_resolmed_name,</div>
-<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>                       cpl_table_get_column_median(selected,<span class="stringliteral">"Resol"</span>),</div>
-<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>                       comment,</div>
-<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>                       <span class="stringliteral">"%.4f"</span>));</div>
-<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span> </div>
-<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>     <span class="comment">/* Convert A -> picometers */</span></div>
-<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>     sprintf(comment,<span class="stringliteral">"mean line pos resid on TRACE%d WIN2 [pm]"</span>,trace_number);</div>
-<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>                       qc_lineresidavg_name,</div>
-<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>                       cpl_table_get_column_mean(selected, LINETAB_RESIDUAL)*100,</div>
-<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>                       comment,</div>
-<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>                       <span class="stringliteral">"%.4f"</span>));</div>
-<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span> </div>
-<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>     sprintf(comment,<span class="stringliteral">"sigma line pos resid on TRACE%d WIN2 [pm]"</span>,trace_number);</div>
-<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>                       qc_lineresidrms_name,</div>
-<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>                       cpl_table_get_column_stdev(selected, LINETAB_RESIDUAL)*100,</div>
-<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>                       comment,</div>
-<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>                       <span class="stringliteral">"%.4f"</span>));</div>
-<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span> </div>
-<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>     <span class="comment">/* Convert A -> nm */</span></div>
-<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>     wmin=cpl_table_get_column_min(linetable,LINETAB_LAMBDAC)/10.0;</div>
-<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>     sprintf(comment,<span class="stringliteral">"minimum wavelength on TRACE%d WIN2 [nm]"</span>,trace_number);</div>
-<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>                       qc_wlenmin_name,</div>
-<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>                       wmin,</div>
-<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span>                       comment,</div>
-<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>                       <span class="stringliteral">"%.4f"</span>));</div>
-<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span> </div>
-<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>     wmax=cpl_table_get_column_max(linetable,LINETAB_LAMBDAC)/10.0;</div>
-<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>     sprintf(comment,<span class="stringliteral">"maximum wavelength on TRACE%d WIN2 [nm]"</span>,trace_number);</div>
-<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>                       qc_wlenmax_name,</div>
-<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>                       wmax,</div>
-<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>                       comment,</div>
-<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>                       <span class="stringliteral">"%.4f"</span>));</div>
-<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span> </div>
-<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>     sprintf(comment,<span class="stringliteral">"minimum order number expected on TRACE%d WIN2"</span>,trace_number);</div>
-<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>                    qc_ordmin_name,</div>
-<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>                    uves_min_int(firstabs, lastabs),</div>
-<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>                    comment,</div>
-<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span> </div>
-<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>     sprintf(comment,<span class="stringliteral">"maximum order number expected on TRACE%d WIN2"</span>,trace_number);</div>
-<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>                    qc_ordmax_name,</div>
-<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>                    uves_max_int(firstabs, lastabs),</div>
-<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>                    comment,</div>
-<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span> </div>
-<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span> </div>
-<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>     sprintf(comment,<span class="stringliteral">"minimum order number detected on TRACE%d WIN2"</span>,trace_number);</div>
-<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>                    qc_detected_ordmin_name,</div>
-<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>                    cpl_table_get_column_min(linetable,<span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>                    comment,</div>
-<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span> </div>
-<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>     sprintf(comment,<span class="stringliteral">"maximum order number detected on TRACE%d WIN2"</span>,trace_number);</div>
-<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>                    qc_detected_ordmax_name,</div>
-<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>                    cpl_table_get_column_max(linetable,<span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>                    comment,</div>
-<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span> </div>
-<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>     sprintf(comment,<span class="stringliteral">"No. of lines found on TRACE%d WIN2"</span>,trace_number);</div>
-<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>                    qc_nlintot_name,</div>
-<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>                    cpl_table_get_nrow(linetable),</div>
-<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>                    comment,</div>
-<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span> </div>
-<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>     sprintf(comment,<span class="stringliteral">"No. of lines selected on TRACE%d WIN2"</span>,trace_number);</div>
-<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>                    qc_nlinsel_name,</div>
-<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>                    cpl_table_get_nrow(linetable) -</div>
-<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>                                    cpl_table_count_invalid(linetable, <span class="stringliteral">"Ident"</span>),</div>
-<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>                    comment,</div>
-<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span> </div>
-<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span>     nfinal=cpl_table_get_nrow(selected);</div>
-<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span>     sprintf(comment,<span class="stringliteral">"Final No. of lines used on TRACE%d WIN2"</span>,trace_number);</div>
-<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>                    qc_nlinsol_name,</div>
-<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>                    nfinal,</div>
-<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>                    comment,</div>
-<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span> </div>
-<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>     cpl_table* extracted=NULL;</div>
-<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>     <span class="keywordtype">double</span> rms_wlu=0;</div>
-<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>* rms_wlu_alpha=NULL;</div>
-<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>     <span class="keywordtype">double</span> lines_sqrt=0;</div>
-<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>     <span class="keywordtype">double</span> lines_werr=0;</div>
-<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>     <span class="keywordtype">int</span> next=0;</div>
-<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>     wcen=0.5*(wmin+wmax);</div>
-<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(next=cpl_table_and_selected_string(qclog,<span class="stringliteral">"key_name"</span>,</div>
-<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>                                                    CPL_EQUAL_TO,</div>
-<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>                                                    <span class="stringliteral">"QC LINE RESIDRMS WLU"</span>));</div>
-<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(extracted=cpl_table_extract_selected(qclog));</div>
-<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>   </div>
-<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(rms_wlu_alpha=cpl_table_get_string(extracted,<span class="stringliteral">"key_value"</span>,0));</div>
-<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>     rms_wlu=atof(rms_wlu_alpha);</div>
-<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>     lines_sqrt=sqrt(nfinal);</div>
-<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>     lines_werr=rms_wlu/lines_sqrt;</div>
-<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>     sprintf(comment,<span class="stringliteral">"Wavelength error on TRACE%d [Angstrom]"</span>,trace_number);</div>
-<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>                                    qc_line_werr_name,</div>
-<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>                                    lines_werr,</div>
-<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span>                                    comment,</div>
-<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span>                                    <span class="stringliteral">"%.3g"</span>));</div>
-<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span> </div>
-<div class="line"><a name="l02564"></a><span class="lineno"> 2564</span>     uves_free_table(&extracted);</div>
-<div class="line"><a name="l02565"></a><span class="lineno"> 2565</span>     uves_free_table(&selected);</div>
-<div class="line"><a name="l02566"></a><span class="lineno"> 2566</span>     selected = cpl_table_duplicate(linetable);</div>
-<div class="line"><a name="l02567"></a><span class="lineno"> 2567</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( selected );</div>
-<div class="line"><a name="l02568"></a><span class="lineno"> 2568</span> </div>
-<div class="line"><a name="l02569"></a><span class="lineno"> 2569</span> </div>
-<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span>     sprintf(comment,<span class="stringliteral">"Wavelength systematic error on TRACE%d [Angstrom]"</span>,trace_number);</div>
-<div class="line"><a name="l02571"></a><span class="lineno"> 2571</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02572"></a><span class="lineno"> 2572</span>                                    qc_line_wsys_name,</div>
-<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span>                                    wcen*100./SPEED_OF_LIGHT,</div>
-<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span>                                    comment,</div>
-<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span>                                    <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span> </div>
-<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span> </div>
-<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span>     <span class="comment">/* Remove unidentified lines and</span></div>
-<div class="line"><a name="l02579"></a><span class="lineno"> 2579</span> <span class="comment">       lines with residual > 1 A      */</span></div>
-<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_erase_invalid_table_rows(selected, <span class="stringliteral">"Ident"</span>) );</div>
-<div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( uves_erase_table_rows(selected, LINETAB_RESIDUAL, </div>
-<div class="line"><a name="l02582"></a><span class="lineno"> 2582</span>                        CPL_NOT_LESS_THAN,</div>
-<div class="line"><a name="l02583"></a><span class="lineno"> 2583</span>                        1.0) );</div>
-<div class="line"><a name="l02584"></a><span class="lineno"> 2584</span>   </div>
-<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span>     sprintf(comment,<span class="stringliteral">"No. of lines with residuals < 0.1 nm on TRACE%d"</span>,trace_number);</div>
-<div class="line"><a name="l02586"></a><span class="lineno"> 2586</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02587"></a><span class="lineno"> 2587</span>                    qc_nlinres1_name,</div>
-<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span>                    cpl_table_get_nrow(selected),</div>
-<div class="line"><a name="l02589"></a><span class="lineno"> 2589</span>                    comment,</div>
-<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span>                    <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span> </div>
-<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span> </div>
-<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>   cleanup:</div>
-<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span> </div>
-<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span>     uves_free_string_const(&qc_fib_drsno_name);</div>
-<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span>     uves_free_string_const(&qc_fib_seq_name);</div>
-<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span>     uves_free_string_const(&qc_fib_pos_name);</div>
-<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span>     uves_free_string_const(&qc_fib_msk_name);</div>
-<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span>     uves_free_string_const(&qc_fwhmavg_name);</div>
-<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span>     uves_free_string_const(&qc_fwhmrms_name);</div>
-<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span>     uves_free_string_const(&qc_fwhmmed_name);</div>
-<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span> </div>
-<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span>     uves_free_string_const(&qc_resolavg_name);</div>
-<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>     uves_free_string_const(&qc_resolrms_name);</div>
-<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>     uves_free_string_const(&qc_resolmed_name);</div>
-<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>     uves_free_string_const(&qc_wlenmin_name);</div>
-<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>     uves_free_string_const(&qc_wlenmax_name);</div>
-<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>     uves_free_string_const(&qc_ordmin_name);</div>
-<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>     uves_free_string_const(&qc_ordmax_name);</div>
-<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span>     uves_free_string_const(&qc_nlintot_name);</div>
-<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>     uves_free_string_const(&qc_nlinsel_name);</div>
-<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span>     uves_free_string_const(&qc_line_werr_name);</div>
-<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span>     uves_free_string_const(&qc_line_wsys_name);</div>
-<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span>     uves_free_string_const(&qc_nlinsol_name);</div>
-<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span>     uves_free_string_const(&qc_nlinres1_name);</div>
-<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span>     uves_free_string_const(&qc_lineresidavg_name);</div>
-<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span>     uves_free_string_const(&qc_lineresidrms_name);</div>
-<div class="line"><a name="l02618"></a><span class="lineno"> 2618</span>     uves_free_string_const(&qc_detected_ordmin_name);</div>
-<div class="line"><a name="l02619"></a><span class="lineno"> 2619</span>     uves_free_string_const(&qc_detected_ordmax_name);</div>
-<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span> </div>
-<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>     uves_free_table(&selected);</div>
-<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span> </div>
-<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span>  </div>
-<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span> }</div>
-<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span> </div>
-<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span> <span class="keyword">static</span> <span class="keywordtype">void</span> uves_wavecal_qclog_intmon(cpl_table* table,</div>
-<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>                       <span class="keyword">const</span> cpl_table *line_intmon,</div>
-<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>                       <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a>* raw_header,</div>
-<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span>                       <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>                       <span class="keywordtype">int</span> fibre,</div>
-<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>                       <span class="keyword">enum</span> uves_chip chip,</div>
-<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>                       cpl_table* qclog)</div>
-<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span> {</div>
-<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_intavg_name = NULL;</div>
-<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *qc_nlinint_name = NULL;</div>
-<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span> </div>
-<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>     cpl_table *temp = NULL;</div>
-<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span>         </div>
-<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga7e1e7665df98839bdc2a873f82b71fc3" title="Add string key to QC-LOG table.">uves_qclog_add_string</a>(qclog,</div>
-<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>                                       <span class="stringliteral">"QC TEST2 ID"</span>,</div>
-<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span>                                       flames ? <span class="stringliteral">"Fibre-Line-Intensity-Test-Results"</span></div>
-<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>                                       : <span class="stringliteral">"Line-Intensity-Test-Results"</span>,</div>
-<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>                                       <span class="stringliteral">"Name of QC test"</span>,</div>
-<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>                                       <span class="stringliteral">"%s"</span>));</div>
-<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span> </div>
-<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__qclog.html#ga66d1b116b78a6302ce5a2bb2d00c5d41" title="Write common QC parameters.">uves_qclog_add_common_wave</a>(raw_header,</div>
-<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>                                             chip, qclog) );</div>
-<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span> </div>
-<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>     {</div>
-<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>     <span class="keywordtype">double</span> tolerance = 0.001; <span class="comment">/* (A) </span></div>
-<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span> <span class="comment">                     The lines in the line table</span></div>
-<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span> <span class="comment">                     and intmon table are considered</span></div>
-<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span> <span class="comment">                     identical if the difference</span></div>
-<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span> <span class="comment">                     is less than this number.</span></div>
-<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span> <span class="comment">                  */</span></div>
-<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>                       </div>
-<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>     <span class="keywordtype">double</span> exptime;</div>
-<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span> </div>
-<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>     <span class="keywordtype">int</span> N_bright = cpl_table_get_nrow(line_intmon);</div>
-<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span> </div>
-<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( exptime = <a class="code" href="group__uves__pfits.html#ga6143e112905f368114637062d4600c04" title="Find out the exposure time in seconds.">uves_pfits_get_exptime</a>(raw_header),</div>
-<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>            <span class="stringliteral">"Could not get exposure time"</span>);</div>
-<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>     </div>
-<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>     cpl_table_new_column(table, <span class="stringliteral">"Intensity"</span>, CPL_TYPE_DOUBLE); </div>
-<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(table); i++)</div>
-<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>     {</div>
-<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>         <span class="keywordtype">int</span> is_null;</div>
-<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>         <span class="keywordtype">double</span> ident = cpl_table_get_double(table, <span class="stringliteral">"Ident"</span>, i, &is_null);</div>
-<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span> </div>
-<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>         <span class="keywordflow">if</span> (!is_null)</div>
-<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>         {</div>
-<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>             <span class="keywordtype">int</span> bright_index = <a class="code" href="group__uves__wavecal.html#gae0d2cfe5965b9e1f8655d1265b6bdde3" title="Find best matching catalogue wavelength.">uves_wavecal_find_nearest</a>(</div>
-<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>             line_intmon, ident, 0, N_bright-1);</div>
-<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span> </div>
-<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span>             <span class="keywordtype">double</span> bright = cpl_table_get_double(</div>
-<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>             line_intmon, <span class="stringliteral">"Wave"</span>, bright_index, NULL);</div>
-<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span> </div>
-<div class="line"><a name="l02688"></a><span class="lineno"> 2688</span>             <span class="keywordflow">if</span> (fabs(bright - ident) < tolerance)</div>
-<div class="line"><a name="l02689"></a><span class="lineno"> 2689</span>             {</div>
-<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span>                 <span class="keywordtype">double</span> peak = cpl_table_get_double(table, <span class="stringliteral">"Peak"</span>, i, NULL);</div>
-<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>                 <span class="keywordtype">double</span> pixelsize = </div>
-<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>                 fabs(cpl_table_get_double(table, LINETAB_PIXELSIZE, i, NULL));</div>
-<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span> </div>
-<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>                 <span class="keywordtype">double</span> lambda_fwhm = cpl_table_get_double(table, <span class="stringliteral">"Xwidth"</span>, i, NULL)</div>
-<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>                 * TWOSQRT2LN2 * pixelsize;</div>
-<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span>                 <span class="comment">/* Line FWHM in wlu */</span></div>
-<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span> </div>
-<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>                 <span class="keywordtype">double</span> intensity = peak * lambda_fwhm / exptime;</div>
-<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>                 <span class="comment">/* Same formula as in MIDAS */</span></div>
-<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span> </div>
-<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>                 cpl_table_set_double(table, <span class="stringliteral">"Intensity"</span>, i, intensity);</div>
-<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>             }</div>
-<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>             {</div>
-<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>                 cpl_table_set_invalid(table, <span class="stringliteral">"Intensity"</span>, i);</div>
-<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>             }</div>
-<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>         }</div>
-<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>         {</div>
-<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>             cpl_table_set_invalid(table, <span class="stringliteral">"Intensity"</span>, i);</div>
-<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>         }</div>
-<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>     }</div>
-<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>     }</div>
-<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span> </div>
-<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>     uves_free_table(&temp);</div>
-<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>     temp = cpl_table_duplicate(table);</div>
-<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>     uves_erase_invalid_table_rows(temp, <span class="stringliteral">"Intensity"</span>);</div>
-<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span> </div>
-<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>     {</div>
-<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>     <span class="keywordtype">double</span> mean;</div>
-<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span>     <span class="keywordflow">if</span> (cpl_table_get_nrow(temp) == 0)</div>
-<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>         {</div>
-<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"No bright lines found!"</span>);</div>
-<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span>         mean = 0;</div>
-<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>         }</div>
-<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>         {</div>
-<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>         mean = cpl_table_get_column_mean(temp, <span class="stringliteral">"Intensity"</span>);</div>
-<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>         }</div>
-<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span> </div>
-<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>     <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>         {</div>
-<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>         qc_intavg_name  = uves_sprintf(<span class="stringliteral">"QC FIB%d INTAVG"</span>, fibre+1); <span class="comment">/* Count 1-9 */</span></div>
-<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>         qc_nlinint_name = uves_sprintf(<span class="stringliteral">"QC FIB%d NLININT"</span>, fibre+1);</div>
-<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span>         }</div>
-<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span>         {</div>
-<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>         qc_intavg_name  = uves_sprintf(<span class="stringliteral">"QC INTAVG"</span>);</div>
-<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>         qc_nlinint_name = uves_sprintf(<span class="stringliteral">"QC NLININT"</span>);</div>
-<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>         }</div>
-<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>         </div>
-<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,</div>
-<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>                       qc_intavg_name,</div>
-<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>                       mean,</div>
-<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>                       <span class="stringliteral">"average intensity of line list on TRACE0 WIN2"</span>,</div>
-<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>                       <span class="stringliteral">"%.4f"</span>));</div>
-<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>     </div>
-<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>     <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,</div>
-<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>                        qc_nlinint_name,</div>
-<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>                        cpl_table_get_nrow(temp),</div>
-<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>                        <span class="stringliteral">"No. of lines to measure INTAVG on TRACE0 WIN2"</span>,</div>
-<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>                        <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>     }</div>
-<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span> </div>
-<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>  cleanup:</div>
-<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>     uves_free_string_const(&qc_intavg_name);</div>
-<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>     uves_free_string_const(&qc_nlinint_name);</div>
-<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>   uves_free_table(&temp);</div>
-<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>   <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span> }</div>
-<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span> </div>
-<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal__body_8h_source.html b/html/uves__wavecal__body_8h_source.html
deleted file mode 100644
index f35e4c3..0000000
--- a/html/uves__wavecal__body_8h_source.html
+++ /dev/null
@@ -1,128 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal_body.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal_body.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES  Pipeline                                *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:09 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.5 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.3  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.2  2006/12/07 08:29:00  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Support different slit for UVES, FLAMES</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.1  2006/11/13 12:42:55  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Factored out common UVES/FLAMES wavecal code</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.2  2006/10/26 14:03:31  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Fixed position of const modifier</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.1  2006/10/24 14:03:00  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Factored out common UVES/FLAMES code</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.10  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#ifndef UVES_WAVECAL_BODY_H</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_WAVECAL_BODY_H</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> </div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> uves_wavecal_define_parameters_body(cpl_parameterlist *parameters, </div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>                     <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id, <span class="keywordtype">double</span> slit);</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> uves_wavecal_exe_body(cpl_frameset *frames,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>               <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *recipe_id,</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>               <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>               <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime);</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> </div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_wavecal_desc_short;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> uves_wavecal_desc;</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#endif </span><span class="comment">/* UVES_WAVECAL_BODY_H */</span><span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal__firstsolution_8c_source.html b/html/uves__wavecal__firstsolution_8c_source.html
deleted file mode 100644
index f9ca2b0..0000000
--- a/html/uves__wavecal__firstsolution_8c_source.html
+++ /dev/null
@@ -1,682 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal_firstsolution.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal_firstsolution.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:09 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.23 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.21  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.20  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.19  2007/05/25 07:05:21  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Decreased  warning verbosity</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.18  2007/04/26 13:21:04  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Made more robust against inaccurate abs_order polynomial</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.17  2007/04/10 07:11:56  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Changed interface of polynomial_regression_2d()</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.16  2007/03/05 10:22:24  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Fixed bug in computation of max/min physical order number</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.15  2007/01/15 08:58:20  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * More robust polynomial fitting</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.14  2007/01/10 12:40:12  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Removed unused parameter</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.13  2006/12/07 08:29:58  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Compute correct Ynew column for FLAMES</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.12  2006/11/24 16:24:32  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Added check of abs order polynomial</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.11  2006/11/15 15:02:15  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.9  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is </span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> * already in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Revision 1.8  2006/11/06 15:19:42  jmlarsen</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Revision 1.7  2006/08/18 07:07:43  jmlarsen</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> * Switched order of cpl_calloc arguments</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Revision 1.6  2006/07/14 12:43:47  jmlarsen</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> * Documentation update</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Revision 1.5  2006/07/03 13:29:45  jmlarsen</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Revision 1.4  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Revision 1.3  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Revision 1.2  2006/02/08 09:25:05  jmlarsen</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> * Fixed bug caused by == comparison of doubles</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Revision 1.27  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * @addtogroup uves_wavecal</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="preprocessor">#include <uves_wavecal_firstsolution.h></span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> </div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> </div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="keyword">static</span> <span class="keywordtype">int</span> *</div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> write_physical_order(cpl_table *linetable,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>              <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *absolute_order, </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                      <span class="keyword">const</span> cpl_table *ordertable,</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>              <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>              <span class="keywordtype">int</span> *first_abs_order, <span class="keywordtype">int</span> *last_abs_order);</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> calculate_shift(<span class="keyword">const</span> cpl_table *linetable, <span class="keyword">const</span> cpl_table *previous, </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *column, <span class="keyword">const</span> <span class="keywordtype">char</span> *reference_column, </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>         <span class="keywordtype">double</span> range, <span class="keywordtype">double</span> step, <span class="keywordtype">double</span> tolerance);</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> </div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> cross_correlation(<span class="keywordtype">double</span> shift, </div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>           <span class="keyword">const</span> cpl_table *t1, <span class="keyword">const</span> cpl_table *t2,</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> *column, <span class="keyword">const</span> <span class="keywordtype">char</span>* reference_column, </div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span>           <span class="keywordtype">int</span> minref, <span class="keywordtype">int</span> maxref, <span class="keywordtype">double</span> tolerance);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="keyword">static</span> <a class="code" href="struct__polynomial.html">polynomial</a> *apply_shift(<span class="keyword">const</span> cpl_table *previous, </div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span>                    <span class="keyword">const</span> <span class="keywordtype">double</span> shift, <span class="keyword">const</span> <span class="keywordtype">int</span> degree, <span class="keywordtype">double</span> *mse);</div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> </div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> uves_wavecal_firstsolution(cpl_table *linetable,</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>                <span class="keyword">const</span> cpl_table *guess, </div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>                <a class="code" href="struct__polynomial.html">polynomial</a> **absolute_order, </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>                            <span class="keyword">const</span> cpl_table *ordertable,</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                            <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                <span class="keywordtype">double</span> offset,</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>                <span class="keywordtype">int</span> **relative_order, </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>                <span class="keywordtype">int</span> DEGREE, <span class="keywordtype">double</span> CORREL_RANGE, <span class="keywordtype">double</span> CORREL_STEP,</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>                <span class="keywordtype">double</span> CORREL_TOLERANCE, <span class="keywordtype">double</span> MAXERROR, </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span>                <span class="keywordtype">int</span> *first_abs_order, <span class="keywordtype">int</span> *last_abs_order)</div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> {</div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *initial_dispersion = NULL;</div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *new_absorder = NULL;</div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *er_msg = NULL;</div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     <span class="keywordtype">double</span> shift;</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     <span class="keywordtype">double</span> mse;</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> </div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     <span class="comment">/* Get physical order numbering */</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( *relative_order =   write_physical_order(linetable, *absolute_order, </div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>                                                     ordertable,</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>                             order_locations,</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>                             first_abs_order,</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span>                             last_abs_order),</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>        <span class="stringliteral">"Could not calculate absolute order numbers"</span>);</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     <span class="comment">/* Update the 'absolute_order' map */</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     {</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     <span class="keywordtype">int</span> row;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     <span class="comment">/* Create column for Y-location (in pixels) of order */</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     cpl_table_new_column(linetable, <span class="stringliteral">"Ynew"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     <span class="keywordflow">for</span> (row = 0; row < cpl_table_get_nrow(linetable); row++)</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>         {</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span>         <span class="comment">/* For historical reasons, the column 'Y' contains the</span></div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment">           (relative) order number while 'Ynew' contains </span></div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment">           the y-coordinate (in pixels) of the emission line. */</span></div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>         <span class="keywordtype">int</span> order = cpl_table_get_int   (linetable, <span class="stringliteral">"Y"</span>, row, NULL);</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span>         <span class="keywordtype">double</span> x  = cpl_table_get_double(linetable, <span class="stringliteral">"X"</span>, row, NULL);</div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>         </div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>         cpl_table_set_double(</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>             linetable, <span class="stringliteral">"Ynew"</span>, row, </div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>             <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x, order));</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>         }</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> </div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     <a class="code" href="group__uves__error.html#ga4885b4eef4da182a79064b4a9d91a595">assure_nomsg</a>( cpl_error_get_code() == CPL_ERROR_NONE,</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>               cpl_error_get_code() );</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     new_absorder =</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>         <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(linetable, <span class="stringliteral">"X"</span>, <span class="stringliteral">"Ynew"</span>, <span class="stringliteral">"Order"</span>,</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>                       NULL,              <span class="comment">/* uncertainty of order number */</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>                       DEGREE, DEGREE,</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>                       NULL, NULL, NULL,  <span class="comment">/* New columns */</span></div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>                       NULL, NULL,        <span class="comment">/* mse, chi^2 */</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>                       NULL,              <span class="comment">/* variance pol. */</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>                       -1, -1);           <span class="comment">/* kappa */</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) <span class="comment">/* Singular matrix, or too few points */</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>         {</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         er_msg = uves_sprintf(<span class="stringliteral">"%s"</span>, cpl_error_get_message());</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         </div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Could not make global fit of absolute order number (%s). "</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>                  <span class="stringliteral">"Polynomial is not updated"</span>,</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>                  er_msg);</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>         }</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>         {</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(absolute_order);</div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>         *absolute_order = <a class="code" href="group__uves__utils__polynomial.html#gad8738d35bff3f87c37e520c63fc87e53" title="Copy a polynomial.">uves_polynomial_duplicate</a>(new_absorder);</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>         }</div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <span class="comment">/* Calculate absolute_order wrt center of orders, but add offset to Ynew column */</span></div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     <span class="keywordflow">if</span> (flames)</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>         {</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>         cpl_table_add_scalar(linetable, <span class="stringliteral">"Ynew"</span>, + offset);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         }</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     }</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     <span class="comment">/* Sort linetable by 'Order' (ascending), then 'X' (ascending) */</span></div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     uves_sort_table_2(linetable, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"X"</span>, <span class="keyword">false</span>, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> </div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     <span class="comment">/* Cross correlation of guess (linetable) and linetable */</span></div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     <span class="comment">/* Step size should not be less than 2*tolerance */</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( shift = calculate_shift(guess, linetable, <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>                    CORREL_RANGE, CORREL_STEP, CORREL_TOLERANCE),</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>        <span class="stringliteral">"Could not calculate shift of position w.r.t. guess solution"</span>);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     <span class="comment">/* Apply shift to guess solution</span></div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> <span class="comment">     * Note that it doesn't help to simply call uves_polynomial_shift()</span></div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span> <span class="comment">     * on the guess solution</span></div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span> <span class="comment">     * because the requested 'DEGREE' might be different from</span></div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> <span class="comment">     * the degree used in the guess solution</span></div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     </div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( initial_dispersion = apply_shift(guess, shift, DEGREE, &mse),</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>        <span class="stringliteral">"Could not calculate initial dispersion relation"</span>);</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     <span class="comment">/* This fit may fail if the input guess table has too few or badly</span></div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> <span class="comment">       distributed points, but there is not much to do about that */</span></div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span> </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     <span class="comment">/* Check quality of initial solution */</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     <span class="keywordflow">if</span>(mse > MAXERROR*MAXERROR) </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     {</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"RMS of initial fit (%f pixels) is greater "</span></div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>                  <span class="stringliteral">"than tolerance (%f pixels)"</span>, sqrt(mse), MAXERROR);</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     }</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     </div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>   cleanup:</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     uves_free_string_const(&er_msg);</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&new_absorder);</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     {</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&initial_dispersion);</div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     }</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     </div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>     <span class="keywordflow">return</span> initial_dispersion;</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span> }</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span> </div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> <span class="keyword">static</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> apply_shift(<span class="keyword">const</span> cpl_table *guess, <span class="keywordtype">double</span> shift, <span class="keywordtype">int</span> degree, <span class="keywordtype">double</span> *mse)</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> {</div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *result = NULL;</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     cpl_table *t = NULL;</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>     </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     <span class="comment">/* Copy guess table */</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( t = cpl_table_duplicate(guess),</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>        <span class="stringliteral">"Error duplicating table"</span>);</div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>     </div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>     <span class="comment">/* Create auxillary column  Ident*Order  */</span></div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_duplicate_column(t, <span class="stringliteral">"ident_order"</span>, t, <span class="stringliteral">"Ident"</span>),</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>         cpl_table_multiply_columns(t, <span class="stringliteral">"ident_order"</span>, <span class="stringliteral">"Order"</span>)),</div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>       <span class="comment">/* ident_order = Ident * Order */</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>       <span class="stringliteral">"Error creating auxillary column"</span>);</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>     </div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     <span class="comment">/* Shift x values */</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_add_scalar(t, <span class="stringliteral">"X"</span>, shift), <span class="stringliteral">"Error shifting column 'X'"</span>);</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span> </div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     <span class="comment">/* Fit lambda*m = f(x, m) */</span></div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     <span class="comment">/* Don't use uncertainties because they might not exist in guess solution */</span></div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>     result = <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(t, <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"ident_order"</span>, NULL,</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>                        degree, degree,</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>                        NULL, NULL, NULL,</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>                        mse, NULL,</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>                        NULL, -1, -1);</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span> </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     <span class="comment">/* If failed, set error to SINGULAR_MATRIX */</span></div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE) <span class="comment">/* Singular matrix or too few points */</span></div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     {</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>         <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>         assure( <span class="keyword">false</span>, CPL_ERROR_SINGULAR_MATRIX,</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>             <span class="stringliteral">"Polynomial fitting failed"</span>);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     }</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>   cleanup:</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>     uves_free_table(&t);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> }</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span> calculate_shift(<span class="keyword">const</span> cpl_table *linetable, <span class="keyword">const</span> cpl_table *guess, <span class="keyword">const</span> <span class="keywordtype">char</span> *column,</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *reference_column, <span class="keywordtype">double</span> range, <span class="keywordtype">double</span> step, <span class="keywordtype">double</span> tolerance)</div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> {</div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>     cpl_type t;</div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     <span class="keywordtype">int</span> minorder, maxorder;</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     <span class="keywordtype">int</span> N, i;</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     <span class="keywordtype">double</span> shift, max_corr, median_corr, maxpos = 0;</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     cpl_table *temp = NULL;</div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>     assure( cpl_table_has_column(linetable, column), </div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>         CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Table has no '%s' column"</span>, column);</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     assure( cpl_table_has_column(guess , column), </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>         CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Table has no '%s' column"</span>, column);</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     assure( cpl_table_has_column(linetable, reference_column),</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>         CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Table has no '%s' column"</span>, reference_column);</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>     assure( cpl_table_has_column(guess , reference_column), </div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span>         CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Table has no '%s' column"</span>, reference_column);</div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span>     assure( range > 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Range = %f"</span>, range);</div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>     t = cpl_table_get_column_type(linetable, column);</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>     assure( t == CPL_TYPE_DOUBLE, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>         <span class="stringliteral">"Column '%s' has type '%s'. Double expected"</span>, column, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(t));</div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> </div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     t = cpl_table_get_column_type(guess, column);</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     assure( t == CPL_TYPE_DOUBLE, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>         <span class="stringliteral">"Column '%s' has type '%s'. Double expected"</span>, column, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(t));</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span> </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     t = cpl_table_get_column_type(linetable, reference_column);</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     assure( t == CPL_TYPE_INT, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>         <span class="stringliteral">"Ref. column '%s' has type '%s'. Integer expected"</span>, </div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>         reference_column, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(t));</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     t = cpl_table_get_column_type(guess, reference_column);</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     assure( t == CPL_TYPE_INT, CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>         <span class="stringliteral">"Ref. column '%s' has type '%s'. Integer expected"</span>,</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>         reference_column, <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(t));</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span> </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     <span class="comment">/* Identify common orders    */</span></div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( minorder = </div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>         uves_max_int(cpl_table_get_column_min(guess, reference_column), </div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>              cpl_table_get_column_min(linetable, reference_column)),</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>         maxorder = </div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>         uves_min_int(cpl_table_get_column_max(guess, reference_column), </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>              cpl_table_get_column_max(linetable, reference_column))),</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>       <span class="stringliteral">"Error reading column '%s'"</span>, reference_column);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     assure(maxorder >= minorder, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"No common orders found"</span>);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Min/max common absolute orders = %d - %d"</span>, minorder, maxorder);</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     </div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     <span class="comment">/* Find maximum of cross correlation function </span></div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="comment">       for shifts in [-range ; range]</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span> </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     <span class="comment">/* Count number of candidates,</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="comment">       so we can create a table of the correct size</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <span class="comment">       which is used to get the median of</span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span> <span class="comment">       all cross-correlation values */</span></div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     N = 0;</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     <span class="keywordflow">for</span> (shift = -range; shift <= range; shift += step) </div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>     {</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         N += 1;</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     }</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> </div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     temp = cpl_table_new(N);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     cpl_table_new_column(temp, <span class="stringliteral">"Corr"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span> </div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     max_corr = -1;</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     maxpos = 0;</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>     <span class="keywordflow">for</span> (shift = -range, i = 0;</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>      i < N;</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>      shift += step , i++) </div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>     {</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>         <span class="keywordtype">double</span> corr;</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( corr = cross_correlation(shift, linetable, guess, column, </div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>                         reference_column, minorder, maxorder, tolerance),</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>            <span class="stringliteral">"Error calculating spectrum cross correlation for shift = %f pixel(s)"</span>, </div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>            shift);</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>         </div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>         <span class="comment">/* Update table */</span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_set_double(temp, <span class="stringliteral">"Corr"</span>, i, corr),</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>            <span class="stringliteral">"Error updating table"</span>);</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>         </div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Correlation(shift=%f) = %f"</span>, shift, corr);</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>         </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>         <span class="keywordflow">if</span> (corr > max_corr) </div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>         {</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>             max_corr = corr;</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>             maxpos = shift;</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>         }</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     }</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span> </div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     <span class="comment">/* To estimate significance,</span></div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span> <span class="comment">       compare the detected max cross-correlation </span></div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span> <span class="comment">       value to "no correlation" estimated as the</span></div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="comment">       median of all cross-corr. values */</span></div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span> </div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     median_corr = cpl_table_get_column_median(temp, <span class="stringliteral">"Corr"</span>);</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     </div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     <span class="comment">/* Correlation value is integer ; don't divide by zero */</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     <span class="keywordflow">if</span> (median_corr < 0.5)</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>     {</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>         median_corr = 1;</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     }</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> </div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Estimated shift compared to guess solution is %f pixels (%.2f sigma detection)"</span>,</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>          maxpos, max_corr / median_corr);</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> </div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>     <span class="comment">/* The correlation peak is usually </span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> <span class="comment">       ~30 or more times the background,</span></div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span> <span class="comment">       so warn if peak value is less than, say,</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span> <span class="comment">       10 times background. */</span></div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     <span class="keywordflow">if</span> (max_corr / median_corr < 10)</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     {</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Cross-correlation with guess solution is "</span></div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>                  <span class="stringliteral">"only %f times no correlation (usually >30). "</span></div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>                  <span class="stringliteral">"Make sure that the guess solution is within ~10 pixels "</span></div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>                  <span class="stringliteral">"of the real dispersion relation; otherwise the following "</span></div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>                  <span class="stringliteral">"wavelength calibration is likely to fail or converge "</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>                  <span class="stringliteral">"to a wrong solution"</span>,</div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>                  max_corr / median_corr);</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     }</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>     </div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>   cleanup:</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>     uves_free_table(&temp);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>     <span class="keywordflow">return</span> maxpos;</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span> }</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span> </div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span> cross_correlation(<span class="keywordtype">double</span> shift,</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>           <span class="keyword">const</span> cpl_table *t1, <span class="keyword">const</span> cpl_table *t2,</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>           <span class="keyword">const</span> <span class="keywordtype">char</span> *column, <span class="keyword">const</span> <span class="keywordtype">char</span>* reference_column, </div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>           <span class="keywordtype">int</span> minref, <span class="keywordtype">int</span> maxref, <span class="keywordtype">double</span> tolerance)</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span> {</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>     <span class="keywordtype">double</span> result = 0;  <span class="comment">/* The result */</span></div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     <span class="keywordtype">int</span> i1 = 0;         <span class="comment">/* Pointers to table rows */</span></div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>     <span class="keywordtype">int</span> i2 = 0;</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span> </div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>     <span class="comment">/* For efficiency reasons, retrieve the pointers to the columns */</span></div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *col1 = cpl_table_get_data_double_const(t1, column);</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *col2 = cpl_table_get_data_double_const(t2, column);</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> *ref1 = cpl_table_get_data_int_const(t1, reference_column);</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> *ref2 = cpl_table_get_data_int_const(t2, reference_column);</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>     <span class="keywordtype">int</span> N1 = cpl_table_get_nrow(t1);</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>     <span class="keywordtype">int</span> N2 = cpl_table_get_nrow(t2);</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span> </div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>     assure( cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(),</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>         <span class="stringliteral">"Error reading input table"</span>);</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>     </div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     <span class="comment">/* Search for matching rows */</span></div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>     <span class="keywordflow">while</span> (i1 < N1 && ref1[i1] <= maxref && </div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>        i2 < N2 && ref2[i2] <= maxref) {</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>     <span class="keywordflow">if</span>      (i1 < minref || ref1[i1] < ref2[i2])</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>         i1++;</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i2 < minref || ref1[i1] > ref2[i2])</div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>         i2++;</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>         <span class="comment">/* Reference values match */</span></div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>         <span class="keywordtype">double</span> difference = col2[i2] - (col1[i1] + shift);</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>         </div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>         <span class="keywordflow">if</span>      (difference > tolerance)</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>         {</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>             i1++;</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>         }</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (difference < -tolerance)</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>         {</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>             i2++;</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>         }</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>         <span class="comment">/* Matching rows found: |col2-col1-shift| <= tolerance.</span></div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span> <span class="comment">           Update result and continue search */</span></div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>         result += 1.0;</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>         i2++;</div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>         }</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>     }</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>     }</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> </div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span> </div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>   cleanup:</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span> }</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> </div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span> </div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="keyword">static</span> <span class="keywordtype">int</span> *</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span> write_physical_order(cpl_table *linetable, <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *absolute_order,</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                      <span class="keyword">const</span> cpl_table *ordertable,</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>              <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>              <span class="keywordtype">int</span> *first_abs_order, <span class="keywordtype">int</span> *last_abs_order)</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> {</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>     <span class="keywordtype">int</span> *relative_order = NULL; <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     <span class="keywordtype">int</span> *physical_order = NULL;</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>     <span class="keywordtype">int</span> minorder, maxorder;</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>     <span class="keywordtype">int</span> maxphysical;</div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     cpl_table *temp = NULL;</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>     <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *map = NULL;</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span> </div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     <span class="keywordtype">double</span> *sum = NULL;   <span class="comment">/* Auxillary variables used to calculate the average */</span></div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>     <span class="keywordtype">int</span>      *N = NULL;</div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>     </div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span> </div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_new_column(linetable, <span class="stringliteral">"Order"</span>, CPL_TYPE_INT),</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>        <span class="stringliteral">"Error creating column"</span>);</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span> </div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_new_column(linetable, <span class="stringliteral">"AbsOrder"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>        <span class="stringliteral">"Error creating column"</span>);</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>     </div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( minorder = cpl_table_get_column_min(ordertable, <span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>         maxorder = cpl_table_get_column_max(ordertable, <span class="stringliteral">"Order"</span>)),</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>       <span class="stringliteral">"Could not read min. and max. order numbers"</span>);</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span> </div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     assure( minorder > 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>         <span class="stringliteral">"Non-positive order number (%d) in linetable"</span>, minorder);</div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>     </div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span>     physical_order = cpl_calloc(maxorder + 1, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( physical_order );</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>     </div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>     <span class="comment">/* First calculate the estimation of the</span></div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span> <span class="comment">       absolute order number at each line position */</span></div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(linetable); i++) {</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>     <span class="keywordtype">double</span> x, y;</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>     <span class="keywordtype">double</span> absorder;</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>     <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>     </div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>     order = cpl_table_get_int   (linetable, <span class="stringliteral">"Y"</span>, i, NULL); </div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>         <span class="comment">/* The column 'Y' contains the (relative) order number */</span></div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span> </div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>     x     = cpl_table_get_double(linetable, <span class="stringliteral">"X"</span>, i, NULL);</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span> </div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>     y = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x, order);</div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span> </div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>         absorder = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(absolute_order, x, y);</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span> </div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order #%d: Absolute order = %f at x = %f"</span>,</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>                order, absorder, x);</div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span> </div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>         cpl_table_set_double(linetable, <span class="stringliteral">"AbsOrder"</span>, i, absorder);</div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>     }</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>  </div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>     {</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>         <span class="keywordtype">int</span> degree = 1;</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>         <span class="keywordtype">int</span> coeff1, coeff2;  <span class="comment">/* absorder = coeff1 + coeff2 * relative_order */</span></div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>         <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>         <span class="keywordtype">int</span> relorder_median;</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>         <span class="keywordtype">int</span> absorder_median;</div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span> </div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>         <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( map = </div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                      <a class="code" href="group__uves__utils.html#ga3b69d3e3f541c3e6744ebf80357da4e3" title="Fit a 1d polynomial to two table columns.">uves_polynomial_regression_1d</a>(linetable,</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>                                                    <span class="stringliteral">"Y"</span>, <span class="stringliteral">"AbsOrder"</span>, NULL,</div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>                                                    degree, </div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>                                                    NULL, NULL, NULL, -1));</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>         </div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span>         relorder_median = uves_round_double(cpl_table_get_column_median(linetable, <span class="stringliteral">"Y"</span>));</div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>         absorder_median = uves_round_double(<a class="code" href="group__uves__utils__polynomial.html#gad309846d159693cdb1f8be9f302dc538" title="Evaluate a 1d polynomial.">uves_polynomial_evaluate_1d</a>(map, relorder_median));</div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>             </div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>         <span class="keywordflow">if</span> (<a class="code" href="group__uves__utils__polynomial.html#ga182b594d06b39bdac65d27bca0104a13" title="Evaluate the derivative of a 1d polynomial.">uves_polynomial_derivative_1d</a>(map, relorder_median) > 0) {</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>             coeff2 = 1;</div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>         }</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>             coeff2 = -1;</div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>         }</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>         </div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span>         coeff1 = absorder_median - coeff2 * relorder_median;</div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> </div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Assuming relation: abs.order = %d + (%d) * rel.order"</span>,</div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>                        coeff1, coeff2);</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>         </div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>         maxphysical = -1;</div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>         <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++) {</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>             physical_order[order] = coeff1 + coeff2 * order;</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>             </div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>             assure(physical_order[order] > 0, CPL_ERROR_ILLEGAL_OUTPUT,</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>                    <span class="stringliteral">"Estimated physical order number is non-positive (%d)"</span>, </div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>                    physical_order[order]);</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>             </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>             <span class="keywordflow">if</span> (physical_order[order] > maxphysical) </div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                 {</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>                     maxphysical = physical_order[order];</div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>                 }</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> </div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Mapping relative order #%d to absolute order #%d"</span>, </div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>                            order, physical_order[order]);</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>         }</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>         </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>         <span class="comment">/* Get first and last physical orders */</span></div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>         *first_abs_order = physical_order[minorder];</div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>         *last_abs_order  = physical_order[maxorder];</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>         </div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( *first_abs_order - *last_abs_order == coeff2*(minorder - maxorder),</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>                  <span class="stringliteral">"%d %d %d %d %d"</span>,</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>                  *first_abs_order, *last_abs_order, coeff2, minorder, maxorder);</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>         </div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>     }</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span> </div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>     <span class="comment">/* Then write this rounded mean value to every row of the table */</span></div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>     <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(linetable); i++) {</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>     order = cpl_table_get_int (linetable, <span class="stringliteral">"Y"</span>, i, NULL);</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>     cpl_table_set_int(linetable, <span class="stringliteral">"Order"</span>, i, physical_order[order]);</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     }</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> </div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     <span class="comment">/* Calculate the inverse of 'physical_order' */</span></div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>     relative_order = cpl_calloc(maxphysical + 1, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     <span class="keywordflow">for</span> (i = 0; i <= maxorder; i++)</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>     {</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>         relative_order[physical_order[i]] = i;</div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>     }</div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>     </div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>   cleanup:</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>     uves_free_table(&temp);</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>     <a class="code" href="group__uves__utils__polynomial.html#ga4dc3bcf2a9f13387b0336a2a1e997ebd" title="Delete a const polynomial.">uves_polynomial_delete_const</a>(&map);</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>     cpl_free(sum);</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>     cpl_free(physical_order);</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>     cpl_free(N);</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span> </div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>     <span class="keywordflow">return</span> relative_order;</div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal__firstsolution_8h_source.html b/html/uves__wavecal__firstsolution_8h_source.html
deleted file mode 100644
index d6eedcb..0000000
--- a/html/uves__wavecal__firstsolution_8h_source.html
+++ /dev/null
@@ -1,128 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal_firstsolution.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal_firstsolution.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2002,2003 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:09 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.8 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.6  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.5  2007/03/05 10:22:35  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Fixed bug in computation of max/min physical order number</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.4  2006/12/07 08:29:56  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Compute correct Ynew column for FLAMES</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.3  2006/11/24 16:24:53  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Added window offset parameter</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.2  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.8  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#ifndef UVES_WAVECAL_FIRSTSOLUTION_H</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_WAVECAL_FIRSTSOLUTION_H</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> uves_wavecal_firstsolution(cpl_table *linetable, </div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>                <span class="keyword">const</span> cpl_table *guess,</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>                <a class="code" href="struct__polynomial.html">polynomial</a> **absolute_order, </div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>                <span class="keyword">const</span> cpl_table *order_table,</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span>                <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>                <span class="keywordtype">bool</span> flames,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>                <span class="keywordtype">double</span> offset, <span class="keywordtype">int</span> **relative_order, <span class="keywordtype">int</span> DEGREE,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>                <span class="keywordtype">double</span> CORREL_RANGE, <span class="keywordtype">double</span> CORREL_STEP, <span class="keywordtype">double</span> CORREL_TOLERANCE, </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>                <span class="keywordtype">double</span> TOLERANCE, <span class="keywordtype">int</span> *first_abs_order, <span class="keywordtype">int</span> *last_abs_order);</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal__identify_8c_source.html b/html/uves__wavecal__identify_8c_source.html
deleted file mode 100644
index 3776e48..0000000
--- a/html/uves__wavecal__identify_8c_source.html
+++ /dev/null
@@ -1,1320 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal_identify.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal_identify.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2012-05-02 06:11:40 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.38 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.37  2012/03/02 16:40:40  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * fixed warning related to upgrade to CPL6</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.36  2011/12/08 14:00:02  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Fox warnings with CPL6</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.35  2011/04/14 11:25:40  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * fixed typo QC key  in comments</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.34  2011/04/11 09:07:41  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * implemented QC comments corrections from DFO</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.33  2011/04/11 07:53:12  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * uniformed QC param key name</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.32  2011/03/23 12:27:31  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * changed QC key as user likes</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.31  2011/03/23 10:08:47  amodigli</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * added QC to better characterize wave accuracy</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.30  2010/09/24 09:32:09  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.28  2007/07/23 14:57:30  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Make workaround work</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.27  2007/07/23 12:40:37  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Update to CPL4</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.26  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.25  2007/05/22 11:46:15  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Removed 1d wavecal mode which was not supported</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.24  2007/05/16 16:33:42  amodigli</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * fixed leak</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.23  2007/05/10 08:32:48  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Minor output message change</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.22  2007/05/07 14:26:44  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Added QC.NLINSOL parameter</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.21  2007/05/07 07:13:59  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Made resolution computation robust against negative dl/dx</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.20  2007/04/27 07:22:57  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Implemented possibility to use automatic polynomial degree</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.19  2007/04/13 07:34:54  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Removed dead code</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.18  2007/04/10 07:12:09  jmlarsen</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Changed interface of polynomial_regression_2d()</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.17  2007/03/15 12:36:44  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Added experimental ppm code</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.16  2007/03/05 10:24:14  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Do kappa-sigma rejection only in second loop</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.15  2007/02/22 15:37:35  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Use kappa-sigma clipping when fitting dispersion</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.14  2007/01/15 08:58:51  jmlarsen</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Added text output</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.13  2006/11/06 15:19:42  jmlarsen</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.12  2006/10/12 11:36:48  jmlarsen</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.11  2006/10/10 11:20:11  jmlarsen</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Renamed line table columns to match MIDAS</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.10  2006/08/17 14:11:25  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Use assure_mem macro to check for memory allocation failure</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.9  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.8  2006/08/11 14:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Added profiling info</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.7  2006/08/07 11:35:08  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Removed hardcoded constant</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.6  2006/07/14 12:52:57  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Exported/renamed function find_nearest</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.5  2006/07/14 12:44:26  jmlarsen</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Use less significant digits</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.4  2006/04/24 09:33:48  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.3  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.2  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.31  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> </div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="preprocessor">#include <uves_wavecal_identify.h></span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="preprocessor">#include <uves_wavecal_utils.h></span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="preprocessor"></span><span class="preprocessor">#include <cpl_ppm.h></span> <span class="comment">/* missing from cpl.h */</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="preprocessor"></span><span class="preprocessor">#include <irplib_ppm.h></span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="preprocessor">#include <math.h></span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="preprocessor">#define USE_PPM 0</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="keyword">static</span> cpl_error_code <a class="code" href="group__uves__wavecal.html#ga83b2a3f8a025fdbb257ba8b6b6c0687a" title="Report quality of calibration.">verify_calibration</a>(<span class="keyword">const</span> cpl_table *selected,</div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span>                                          <span class="keyword">const</span> cpl_table *linetable, </div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span>                      <span class="keywordtype">double</span> TOLERANCE,</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span>                                          <span class="keywordtype">double</span> red_chisq,cpl_table* qclog);</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="keyword">static</span> cpl_error_code <a class="code" href="group__uves__wavecal.html#ga3d2a634d47ecc17a9550bc3169b45108" title="Apply dispersion relation to line table.">compute_lambda</a>(cpl_table *linetable, </div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span>                      <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation, </div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span>                      <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_variance,</div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span>                                      <span class="keywordtype">bool</span> verbose);</div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> </div>
-<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__wavecal.html#ga32817a71e6f80a75bd2d74e197f41002" title="Identify lines by comparing to catalogue wavelengths.">identify_lines</a>(cpl_table *linetable, </div>
-<div class="line"><a name="l00180"></a><span class="lineno">  180</span>                           <span class="keyword">const</span> cpl_table *line_refer, </div>
-<div class="line"><a name="l00181"></a><span class="lineno">  181</span>                           <span class="keywordtype">double</span> ALPHA);</div>
-<div class="line"><a name="l00182"></a><span class="lineno">  182</span> </div>
-<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="keyword">static</span> <a class="code" href="struct__polynomial.html">polynomial</a> *<a class="code" href="group__uves__wavecal.html#ga6441018223f000460da3fe4e29325806" title="Create a fit of all orders.">calibrate_global</a>(<span class="keyword">const</span> cpl_table *linetable,</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span>                                     cpl_table **selected,</div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span>                     <span class="keywordtype">int</span> degree, <span class="keywordtype">bool</span> verbose,</div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span>                                     <span class="keywordtype">bool</span> reject,</div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span>                     <span class="keywordtype">double</span> TOLERANCE, </div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span>                                     <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>                     <span class="keywordtype">double</span> *red_chisq, </div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span>                     <a class="code" href="struct__polynomial.html">polynomial</a> **dispersion_variance,</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span>                     <span class="keywordtype">double</span> *pixelsize,</div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span>                     <span class="keywordtype">double</span> *rms_wlu,</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span>                     <span class="keywordtype">double</span> *rms_pixels);</div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00238"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#gaefff8994a1bf3be10c46012cff86ef04">  238</a></span> <a class="code" href="group__uves__wavecal.html#gaefff8994a1bf3be10c46012cff86ef04" title="Obtain final dispersion relation.">uves_wavecal_identify</a>(cpl_table *linetable, </div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>               <span class="keyword">const</span> cpl_table *line_refer, </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>               <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *guess_dispersion, </div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>               <span class="keywordtype">int</span> DEGREE, <span class="keywordtype">double</span> TOLERANCE, </div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>               <span class="keywordtype">double</span> ALPHA, <span class="keywordtype">double</span> MAXERROR,</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>                       <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> trace,<span class="keyword">const</span> <span class="keywordtype">int</span> window,cpl_table* qclog)</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> {</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation = NULL; <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_variance = NULL; <span class="comment">/* Variance of result, </span></div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">                           written to line table */</span></div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <span class="keywordtype">int</span> current_id; <span class="comment">/* Current and previous number of line identifications */</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     <span class="keywordtype">int</span> previous_id;</div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     <span class="keywordtype">int</span> idloop;             <span class="comment">/* Number of iterations of grand loop */</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span>     <span class="keywordtype">int</span> n;                  <span class="comment">/* Number of iterations in ID loop */</span></div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <span class="keywordtype">double</span> pixelsize;       <span class="comment">/* Average conversion factor between pixels and wlu */</span></div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <span class="keywordtype">double</span> red_chisq;       <span class="comment">/* Reduced chi^2 of fit         */</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     cpl_table *selected = NULL;  <span class="comment">/* Lines used in final fit */</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <span class="keywordtype">char</span> qc_key[40];</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> </div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( linetable        != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( line_refer       != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( guess_dispersion != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     assure( 0 < ALPHA && ALPHA <= 1, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>         <span class="stringliteral">"Illegal alpha = %e"</span>, ALPHA);</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> </div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     <span class="comment">/* Calculate LambdaC from the initial dispersion relation */</span></div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     {</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     cpl_table_new_column(linetable, LINETAB_LAMBDAC    , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     cpl_table_new_column(linetable, <span class="stringliteral">"dLambdaC"</span>         , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     cpl_table_new_column(linetable, LINETAB_PIXELSIZE  , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>     cpl_table_new_column(linetable, LINETAB_RESIDUAL   , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     cpl_table_new_column(linetable, <span class="stringliteral">"Residual_pix"</span>     , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>     cpl_table_new_column(linetable, <span class="stringliteral">"Lambda_candidate"</span> , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     cpl_table_new_column(linetable, <span class="stringliteral">"dLambda_candidate"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     cpl_table_new_column(linetable, <span class="stringliteral">"dLambda_cat_sq"</span>   , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     cpl_table_new_column(linetable, <span class="stringliteral">"dLambda_nn_sq"</span>    , CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span> </div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     <span class="comment">/* Create columns 'Ident' and 'dIdent' (uncertainty) and fill with</span></div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span> <span class="comment">       invalid (no identification made) */</span></div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     cpl_table_new_column(linetable, <span class="stringliteral">"Ident"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     cpl_table_new_column(linetable, <span class="stringliteral">"dIdent"</span>,CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     cpl_table_set_column_invalid(linetable, <span class="stringliteral">"Ident"</span>, 0, cpl_table_get_nrow(linetable));</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     cpl_table_set_column_invalid(linetable, <span class="stringliteral">"dIdent"</span>,0, cpl_table_get_nrow(linetable));</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     </div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     <span class="comment">/* Residuals are not calculated because 'Ident' is invalid */</span></div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__wavecal.html#ga3d2a634d47ecc17a9550bc3169b45108" title="Apply dispersion relation to line table.">compute_lambda</a>(linetable, guess_dispersion, NULL, <span class="keyword">false</span>), </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>            <span class="stringliteral">"Error applying dispersion relation"</span>);</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     }</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="preprocessor">#if USE_PPM</span></div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="preprocessor"></span>    <span class="keywordflow">for</span> (idloop = 2; idloop <= 2; idloop += 1)</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span> #<span class="keywordflow">else</span></div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>     <span class="keywordflow">for</span> (idloop = 1; idloop <= 2; idloop += 1)</div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span> #endif</div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     {</div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> </div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>         current_id = 0;</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>         n = 0;</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>         <span class="comment">/* Iterate until no more identifications can be made */</span></div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>         <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>         <span class="keywordtype">double</span> rms_wlu;</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>         <span class="keywordtype">double</span> rms_pixels;</div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>                 <span class="keywordtype">bool</span> reject = (idloop == 2);</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="preprocessor">#if USE_PPM</span></div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="preprocessor"></span>                <span class="keywordtype">int</span> nident_ppm;</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="preprocessor"></span>        </div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>         previous_id = current_id;</div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>         n++;</div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>         </div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>         <span class="comment">/* Identify lines */</span></div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( current_id = <a class="code" href="group__uves__wavecal.html#ga32817a71e6f80a75bd2d74e197f41002" title="Identify lines by comparing to catalogue wavelengths.">identify_lines</a>(linetable, line_refer, ALPHA), </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>                <span class="stringliteral">"Error identifying lines"</span>);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span> </div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> <span class="preprocessor">#if USE_PPM</span></div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span> <span class="preprocessor"></span>                <span class="comment">/* Try PPM */</span></div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( nident_ppm = <a class="code" href="group__uves__wavecal.html#gad453e932c1e4d99548688995d4e1000b" title="Identify lines using point pattern matching.">uves_wavecal_identify_lines_ppm</a>(linetable, line_refer),</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>                        <span class="stringliteral">"Error during point pattern matching"</span>);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                 cpl_table_erase_column(linetable, <span class="stringliteral">"Ident"</span>);</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>                 cpl_table_duplicate_column(linetable, <span class="stringliteral">"Ident"</span>, linetable, <span class="stringliteral">"Ident_ppm"</span>);</div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>                 current_id = nident_ppm;</div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span> </div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>                 <span class="comment">/* FIXME: This only works if 'dIdent' is constant.</span></div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment">                   We should propagate error bars during ppm matching */</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>                 cpl_table_fill_column_window(linetable, <span class="stringliteral">"dIdent"</span>,</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>                                              0, cpl_table_get_nrow(linetable),</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>                                              cpl_table_get_column_mean(linetable, <span class="stringliteral">"dIdent"</span>));</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>         <span class="comment">/* Calibrate with </span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment">         * 1st loop: tolerance=infinity (i.e. all identified lines are considered good). </span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span> <span class="comment">         * 2nd loop: use specified tolerance (ignore outliers)</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&dispersion_relation);</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&dispersion_variance);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span> </div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dispersion_relation = <a class="code" href="group__uves__wavecal.html#ga6441018223f000460da3fe4e29325806" title="Create a fit of all orders.">calibrate_global</a>(</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>                linetable, NULL,</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>                            DEGREE, <span class="keyword">false</span>,</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>                            reject,</div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>                TOLERANCE,</div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>                kappa,</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>                &red_chisq,</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>                &dispersion_variance,</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>                &pixelsize,</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>                &rms_wlu,</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>                &rms_pixels),</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>                <span class="stringliteral">"Could not perform global calibration"</span>);</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> </div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Average pixelsize = %f wlu"</span>, pixelsize);</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span>                 <span class="keywordflow">if</span> (idloop == 1)</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>                     {</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>                         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%d identifications made. RMS = %.5f wlu = %.3f "</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>                                  <span class="stringliteral">"pixels (no rejection)"</span>, </div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>                                  current_id, rms_wlu, rms_pixels);</div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> </div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> </div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> </div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>                     }</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>                 <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>                     {</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>                         <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%d identifications made. RMS = %.5f wlu = %.3f "</span></div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>                                  <span class="stringliteral">"pixels (%f %s rejection, kappa = %.1f)"</span>, </div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>                                  current_id, rms_wlu, rms_pixels,</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>                                  fabs(TOLERANCE), (TOLERANCE > 0) ? <span class="stringliteral">"pixels"</span> : <span class="stringliteral">"wlu"</span>,</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>                                  kappa);</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>                     }</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span>                 sprintf(qc_key,<span class="stringliteral">"QC TRACE%d WIN%d NLINID%d"</span>,trace,window,idloop);</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span>                 ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,qc_key,current_id,</div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span>                                              <span class="stringliteral">"ThAr lamp identified lines"</span>,</div>
-<div class="line"><a name="l00375"></a><span class="lineno">  375</span>                                              <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l00376"></a><span class="lineno">  376</span> </div>
-<div class="line"><a name="l00377"></a><span class="lineno">  377</span> <span class="preprocessor">#if USE_PPM</span></div>
-<div class="line"><a name="l00378"></a><span class="lineno">  378</span> <span class="preprocessor"></span>                <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%d identifications from point pattern matching"</span>,</div>
-<div class="line"><a name="l00379"></a><span class="lineno">  379</span>                          nident_ppm);</div>
-<div class="line"><a name="l00380"></a><span class="lineno">  380</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00381"></a><span class="lineno">  381</span> <span class="preprocessor"></span>        </div>
-<div class="line"><a name="l00382"></a><span class="lineno">  382</span>         assure( rms_pixels < MAXERROR, CPL_ERROR_CONTINUE,</div>
-<div class="line"><a name="l00383"></a><span class="lineno">  383</span>             <span class="stringliteral">"Wavelength calibration did not converge. "</span></div>
-<div class="line"><a name="l00384"></a><span class="lineno">  384</span>             <span class="stringliteral">"After %d iterations the RMS was %f pixels. "</span></div>
-<div class="line"><a name="l00385"></a><span class="lineno">  385</span>             <span class="stringliteral">"Try to improve on the initial solution"</span>, n, rms_pixels);</div>
-<div class="line"><a name="l00386"></a><span class="lineno">  386</span>         </div>
-<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
-<div class="line"><a name="l00388"></a><span class="lineno">  388</span>         <span class="comment">/* Apply calibration result */</span></div>
-<div class="line"><a name="l00389"></a><span class="lineno">  389</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__wavecal.html#ga3d2a634d47ecc17a9550bc3169b45108" title="Apply dispersion relation to line table.">compute_lambda</a>(linetable, dispersion_relation, dispersion_variance,</div>
-<div class="line"><a name="l00390"></a><span class="lineno">  390</span>                                       <span class="keyword">false</span>),</div>
-<div class="line"><a name="l00391"></a><span class="lineno">  391</span>                <span class="stringliteral">"Error applying dispersion relation"</span>);</div>
-<div class="line"><a name="l00392"></a><span class="lineno">  392</span> </div>
-<div class="line"><a name="l00393"></a><span class="lineno">  393</span> </div>
-<div class="line"><a name="l00394"></a><span class="lineno">  394</span>         }</div>
-<div class="line"><a name="l00395"></a><span class="lineno">  395</span>         <span class="keywordflow">while</span> (current_id > previous_id) ;</div>
-<div class="line"><a name="l00396"></a><span class="lineno">  396</span> </div>
-<div class="line"><a name="l00397"></a><span class="lineno">  397</span>         sprintf(qc_key,<span class="stringliteral">"QC TRACE%d WIN%d NLINID NITERS"</span>,trace,window);</div>
-<div class="line"><a name="l00398"></a><span class="lineno">  398</span>         ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,qc_key,idloop+1,</div>
-<div class="line"><a name="l00399"></a><span class="lineno">  399</span>                                      <span class="stringliteral">"Number of iterations"</span>,</div>
-<div class="line"><a name="l00400"></a><span class="lineno">  400</span>                                      <span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l00401"></a><span class="lineno">  401</span> </div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> </div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
-<div class="line"><a name="l00404"></a><span class="lineno">  404</span>         <span class="keywordflow">if</span> (idloop == 1)</div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>         {</div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>             <span class="comment">/* </span></div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="comment">             * Remove all identifications and repeat</span></div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="comment">             */</span></div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span>             </div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Identification loop converged. Resetting identifications"</span>);</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>             cpl_table_set_column_invalid(linetable, <span class="stringliteral">"Ident"</span>, 0, </div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>                          cpl_table_get_nrow(linetable));</div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>         }</div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     }</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span> </div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     <span class="comment">/* Calibrate again with a global polynomial, but this time don't</span></div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span> <span class="comment">       use lines with residuals worse than TOLERANCE */</span></div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&dispersion_relation);</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&dispersion_variance);</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>     uves_free_table(&selected);</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     </div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dispersion_relation = <a class="code" href="group__uves__wavecal.html#ga6441018223f000460da3fe4e29325806" title="Create a fit of all orders.">calibrate_global</a>(linetable,</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>                                                   &selected,</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>                                                   DEGREE, <span class="keyword">true</span>,</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>                                                   <span class="keyword">true</span>,  <span class="comment">/* do rejection? */</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>                                                   TOLERANCE,</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span>                                                   kappa,</div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>                                                   &red_chisq,</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>                                                   &dispersion_variance,</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>                                                   NULL, NULL, NULL),</div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>            <span class="stringliteral">"Could not perform global calibration"</span>);</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     <span class="comment">/* Update the computed wavelengths */</span></div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__wavecal.html#ga3d2a634d47ecc17a9550bc3169b45108" title="Apply dispersion relation to line table.">compute_lambda</a>(linetable, dispersion_relation, dispersion_variance,</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>                           <span class="keyword">true</span>), </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>            <span class="stringliteral">"Error applying dispersion relation"</span>);</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     </div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     <span class="comment">/* Add columns 'Select' and 'NLinSol' to linetable.</span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="comment">       The columns defines which lines were identified,</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="comment">       and which lines were used in the final fit */</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     {</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>         <span class="keywordtype">int</span> i, j;</div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span> </div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>         <span class="comment">/* Tables are sorted by Order, X */</span></div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         cpl_table_new_column(linetable, <span class="stringliteral">"NLinSol"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>         cpl_table_new_column(linetable, <span class="stringliteral">"Select"</span>, CPL_TYPE_INT);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span> </div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>         cpl_table_fill_column_window_int(linetable, <span class="stringliteral">"NLinSol"</span>, </div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>                                          0, cpl_table_get_nrow(linetable),</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>                                          0);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>         cpl_table_fill_column_window_int(linetable, <span class="stringliteral">"Select"</span>, </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>                                          0, cpl_table_get_nrow(linetable),</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                                          0);</div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span> </div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>         j = 0;</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>         <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(selected); i++) {</div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>             <span class="keywordtype">int</span> order = cpl_table_get_int(selected, <span class="stringliteral">"Order"</span>, i, NULL);</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>             <span class="keywordtype">double</span>  x = cpl_table_get_double(selected, <span class="stringliteral">"X"</span>, i, NULL);</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>             <span class="keywordtype">int</span> order2;</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>             <span class="keywordtype">double</span> x2;</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>             <span class="comment">/* Find this line in the original linetable */</span></div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( j < cpl_table_get_nrow(linetable), <span class="stringliteral">"%d %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>                      j, cpl_table_get_nrow(linetable));</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>             <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>                 order2 = cpl_table_get_int(linetable, <span class="stringliteral">"Order"</span>, j, NULL);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                 x2     = cpl_table_get_double(linetable, <span class="stringliteral">"X"</span>, j, NULL);</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>                 <span class="keywordflow">if</span> (cpl_table_is_valid(linetable, <span class="stringliteral">"Ident"</span>, j))</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>                     {</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>                         cpl_table_set_int(linetable, <span class="stringliteral">"Select"</span>, j, 1);</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                     }</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>                 j++;</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span> </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>             } <span class="keywordflow">while</span> (order2 < order || x2 < x - 0.1);</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>             </div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>             <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( order2 == order && fabs(x2 - x) < 0.1,</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>                      <span class="stringliteral">"%d %d %g %g"</span>, order2, order, x2, x);</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>             </div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>             cpl_table_set_int(linetable, <span class="stringliteral">"NLinSol"</span>, j-1, 1);</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>         }</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     }</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span> </div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     <span class="comment">/* Display results */</span></div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__wavecal.html#ga83b2a3f8a025fdbb257ba8b6b6c0687a" title="Report quality of calibration.">verify_calibration</a>(selected, linetable, TOLERANCE, red_chisq,qclog), </div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>        <span class="stringliteral">"Error verifying calibration"</span>);</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>   cleanup:</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     uves_free_table(&selected);</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&dispersion_variance);</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     <span class="keywordflow">return</span> dispersion_relation;</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> }</div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span> </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00510"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#ga83b2a3f8a025fdbb257ba8b6b6c0687a">  510</a></span> <a class="code" href="group__uves__wavecal.html#ga83b2a3f8a025fdbb257ba8b6b6c0687a" title="Report quality of calibration.">verify_calibration</a>(<span class="keyword">const</span> cpl_table *selected,</div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>                    <span class="keyword">const</span> cpl_table *linetable, <span class="keywordtype">double</span> TOLERANCE,</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>                    <span class="keywordtype">double</span> red_chisq, cpl_table* qclog)</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span> {</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>     cpl_table *brightest  = NULL;</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>     <span class="keywordtype">double</span> median_intensity;</div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>     <span class="keywordtype">int</span> ninvalid;    <span class="comment">/* Number of unidentified lines among the brightest half */</span></div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>     <span class="keywordtype">double</span> ratio;</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>     <span class="keywordtype">double</span> rms_wlu;</div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>     <span class="keywordtype">double</span> rms_pixels;</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>     <span class="keywordtype">double</span> rms_speed;</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>     <span class="keywordtype">char</span> qc_key[40];</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>     </div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     {</div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     <span class="keywordtype">double</span> mean;</div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>     <span class="keywordtype">double</span> stdev;</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span>     </div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( mean = cpl_table_get_column_mean (selected, LINETAB_RESIDUAL),</div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>         stdev= cpl_table_get_column_stdev(selected, LINETAB_RESIDUAL),</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>         rms_wlu = sqrt(mean*mean + stdev*stdev),</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>         </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>         mean = cpl_table_get_column_mean (selected, <span class="stringliteral">"Residual_pix"</span>),</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>         stdev= cpl_table_get_column_stdev(selected, <span class="stringliteral">"Residual_pix"</span>),</div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span>         rms_pixels = sqrt(mean*mean + stdev*stdev)),</div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span>           <span class="stringliteral">"Error reading RMS of fit"</span>);</div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span>     }</div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>     rms_speed=rms_wlu * SPEED_OF_LIGHT/</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>        cpl_table_get_column_mean(selected,LINETAB_LAMBDAC);</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" lines accepted"</span>, cpl_table_get_nrow(selected));</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Average RMS of calibration (tolerance = %.3f %s) = %.5f wlu = %.4f pixels ~ %.1f m/s"</span>,</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>          fabs(TOLERANCE),</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>          (TOLERANCE > 0) ? <span class="stringliteral">"pixels"</span> : <span class="stringliteral">"wlu"</span>,</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>          rms_wlu, rms_pixels, rms_speed);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>     </div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>    sprintf(qc_key,<span class="stringliteral">"QC LINE RESIDRMS WLU"</span>);</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>    ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,rms_wlu,</div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>                                    <span class="stringliteral">"Line ID RMS TRACE0 WIN2 [Angstrom]"</span>,</div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>                                    <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>    sprintf(qc_key,<span class="stringliteral">"QC LINE RESIDRMS PIX"</span>);</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>    ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,rms_pixels,</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>                                    <span class="stringliteral">"Line ID RMS TRACE0 WIN2 [pix]"</span>,</div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>                                    <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>    sprintf(qc_key,<span class="stringliteral">"QC LINE RESIDRMS SPEED"</span>);</div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>    ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,rms_speed,</div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                                    <span class="stringliteral">"Line ID RMS TRACE0 WIN2 [m/s]"</span>,</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                                    <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span> </div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span> </div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Reduced chi^2 of calibration = %f"</span>, red_chisq);</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>     sprintf(qc_key,<span class="stringliteral">"QC LINE IDCHI2"</span>);</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,red_chisq,</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>                                    <span class="stringliteral">"Reduced chi^2 of line ID TRACE0 WIN2"</span>,</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>                                    <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span>     <span class="keywordflow">if</span> (red_chisq < .01)</div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span>     {</div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Reduced chi^2 of fit is less than 1/100: %f"</span>, </div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span>                  red_chisq);</div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span>     }</div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span>     <span class="keywordflow">if</span> (red_chisq > 100)</div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>     {</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>         <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Reduced chi^2 of fit is greater than 100: %f"</span>, </div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                  red_chisq);</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>     }</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>     </div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( median_intensity = cpl_table_get_column_median(linetable, <span class="stringliteral">"Peak"</span>),</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>         brightest = uves_extract_table_rows(linetable, <span class="stringliteral">"Peak"</span>, </div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>                         CPL_GREATER_THAN, </div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>                         median_intensity),</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>         ninvalid = cpl_table_count_invalid(brightest, <span class="stringliteral">"Ident"</span>)),</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>       <span class="stringliteral">"Error counting identifications"</span>);</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span> </div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>     ratio = 1 - ((double) ninvalid)/cpl_table_get_nrow(brightest);</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Percentage of identifications among the half brighter lines : %.2f %%"</span>,</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>          100*ratio);</div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span> </div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>     sprintf(qc_key,<span class="stringliteral">"QC LINE HALFBRIG"</span>);</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga00d5aef00d604b9915036c03cae31b64" title="Add double key to QC-LOG table.">uves_qclog_add_double</a>(qclog,qc_key,100*ratio,</div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>                                    <span class="stringliteral">"Half brighter lines frac TRACE0 WIN2"</span>,</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>                                    <span class="stringliteral">"%f"</span>));</div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span> </div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>   cleanup:</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     uves_free_table(&brightest);</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span> </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span> }</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span> </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00613"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#ga3d2a634d47ecc17a9550bc3169b45108">  613</a></span> <a class="code" href="group__uves__wavecal.html#ga3d2a634d47ecc17a9550bc3169b45108" title="Apply dispersion relation to line table.">compute_lambda</a>(cpl_table *linetable, </div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>            <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation, </div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>            <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_variance,</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>                <span class="keywordtype">bool</span> verbose)</div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span> {</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>     <span class="keywordtype">bool</span> printed_warning = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>     </div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(linetable           != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(dispersion_relation != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>     <span class="comment">/* 'dispersion_variance' may be NULL */</span></div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     </div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(dispersion_relation) == 2, <span class="stringliteral">"%d"</span>, </div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>          <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(dispersion_relation));</div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>     </div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>     <span class="comment">/* Input columns */</span></div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(cpl_table_has_column(linetable, <span class="stringliteral">"X"</span>)           , <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(cpl_table_has_column(linetable, <span class="stringliteral">"Order"</span>)       , <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(cpl_table_has_column(linetable, <span class="stringliteral">"Ident"</span>)       , <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>     <span class="comment">/* Output columns */</span></div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(cpl_table_has_column(linetable, LINETAB_LAMBDAC)     , <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>     <span class="comment">/* The column 'dLambdaC' is set to invalid if 'dispersion_variance' is NULL */</span></div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(cpl_table_has_column(linetable, <span class="stringliteral">"dLambdaC"</span>)    , <span class="stringliteral">" "</span>);  </div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(cpl_table_has_column(linetable, <span class="stringliteral">"dIdent"</span>)      , <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(cpl_table_has_column(linetable, LINETAB_RESIDUAL), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(cpl_table_has_column(linetable, <span class="stringliteral">"Residual_pix"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(cpl_table_has_column(linetable, LINETAB_PIXELSIZE)   , <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span>     </div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span>     <span class="comment">/* The linetable is sorted w.r.t. order. </span></div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> <span class="comment">       Move to the first order above minorder */</span></div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>     <span class="keywordflow">for</span>(i = 0; i < cpl_table_get_nrow(linetable); i++)</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>     {</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>         <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>         <span class="keywordtype">double</span> x, dfdx;</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>         <span class="keywordtype">double</span> lambdac, dlambdac, pixelsize;</div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>         order = cpl_table_get_int(linetable, <span class="stringliteral">"Order"</span>, i, NULL);</div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>         </div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>         x     = cpl_table_get_double(linetable, <span class="stringliteral">"X"</span>, i, NULL);</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>         </div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>         <span class="comment">/* Evaluate the dispersion relation</span></div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span> <span class="comment">           m.lambda = f(x,m)  (2d global fit)  */</span></div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>         </div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>         lambdac =</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>         <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(dispersion_relation, x, order) / order;</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>         </div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>         <span class="comment">/* Pixelsize = dl/dx = (df/dx)/m  (for fixed m) */</span></div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>             dfdx = <a class="code" href="group__uves__utils__polynomial.html#ga90b4e6124461402f664687575400686a" title="Evaluate the partial derivative of a 2d polynomial.">uves_polynomial_derivative_2d</a>(dispersion_relation, x, order, 1);</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>             <span class="keywordflow">if</span> (dfdx < 0) {</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>                 <span class="keywordflow">if</span> (!printed_warning && verbose) {</div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Inferred dispersion (dlambda/dx) is negative at"</span></div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>                                      <span class="stringliteral">"(x, order) = (%f, %d)"</span>, x, order);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>                     printed_warning = <span class="keyword">true</span>;  <span class="comment">/* To avoid repeating the same warning */</span></div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>                 }</div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Inferred dispersion (dlambda/dx) is negative at "</span></div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span>                                    <span class="stringliteral">"(x, order) = (%f, %d)"</span>, x, order);</div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span>                 }</div>
-<div class="line"><a name="l00671"></a><span class="lineno">  671</span>             }</div>
-<div class="line"><a name="l00672"></a><span class="lineno">  672</span>             pixelsize = dfdx / order;</div>
-<div class="line"><a name="l00673"></a><span class="lineno">  673</span>         </div>
-<div class="line"><a name="l00674"></a><span class="lineno">  674</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_set_double(linetable, LINETAB_LAMBDAC , i, lambdac),</div>
-<div class="line"><a name="l00675"></a><span class="lineno">  675</span>             cpl_table_set_double(linetable, LINETAB_PIXELSIZE, i, pixelsize)),</div>
-<div class="line"><a name="l00676"></a><span class="lineno">  676</span>             <span class="stringliteral">"Error writing table"</span>);</div>
-<div class="line"><a name="l00677"></a><span class="lineno">  677</span>         </div>
-<div class="line"><a name="l00678"></a><span class="lineno">  678</span>         <span class="keywordflow">if</span> (dispersion_variance != NULL)</div>
-<div class="line"><a name="l00679"></a><span class="lineno">  679</span>         {</div>
-<div class="line"><a name="l00680"></a><span class="lineno">  680</span>             <span class="comment">/* d( lambda  (x, order) ) = </span></div>
-<div class="line"><a name="l00681"></a><span class="lineno">  681</span> <span class="comment">               d( lambda*m(x, order) ) / m    */</span></div>
-<div class="line"><a name="l00682"></a><span class="lineno">  682</span>             dlambdac = </div>
-<div class="line"><a name="l00683"></a><span class="lineno">  683</span>             sqrt(<a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(dispersion_variance, x, order))</div>
-<div class="line"><a name="l00684"></a><span class="lineno">  684</span>             / order;</div>
-<div class="line"><a name="l00685"></a><span class="lineno">  685</span>             </div>
-<div class="line"><a name="l00686"></a><span class="lineno">  686</span>             cpl_table_set_double(linetable, <span class="stringliteral">"dLambdaC"</span> , i, dlambdac);</div>
-<div class="line"><a name="l00687"></a><span class="lineno">  687</span>         }</div>
-<div class="line"><a name="l00688"></a><span class="lineno">  688</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00689"></a><span class="lineno">  689</span>         {</div>
-<div class="line"><a name="l00690"></a><span class="lineno">  690</span>             <span class="comment">/* Only the ratio of a line's "dLambdaC" to other</span></div>
-<div class="line"><a name="l00691"></a><span class="lineno">  691</span> <span class="comment">               lines' are used, so set "dLambdaC" to a constant value</span></div>
-<div class="line"><a name="l00692"></a><span class="lineno">  692</span> <span class="comment">               when the actual uncertainty is not known</span></div>
-<div class="line"><a name="l00693"></a><span class="lineno">  693</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00694"></a><span class="lineno">  694</span>             cpl_table_set_double(linetable, <span class="stringliteral">"dLambdaC"</span> , i, 1.0);</div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span>         }</div>
-<div class="line"><a name="l00696"></a><span class="lineno">  696</span>         </div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span>         <span class="comment">/* If line is identified, calculate residual */</span></div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>         <span class="keywordflow">if</span> (cpl_table_is_valid(linetable, <span class="stringliteral">"Ident"</span>, i)) </div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>         {</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span>             <span class="keywordtype">double</span> ident = cpl_table_get_double(linetable, <span class="stringliteral">"Ident"</span>, i, NULL);</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>             cpl_table_set_double(linetable, LINETAB_RESIDUAL, i,</div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>                      ident - lambdac);</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>             cpl_table_set_double(linetable, <span class="stringliteral">"Residual_pix"</span>, i, </div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>                      (ident - lambdac)/pixelsize);</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>         }</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>         {</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span>             cpl_table_set_invalid(linetable, LINETAB_RESIDUAL, i);</div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>             cpl_table_set_invalid(linetable, <span class="stringliteral">"Residual_pix"</span>, i);</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span>         }</div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     }</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     <span class="comment">/* Sort by 'Order' (ascending), then 'X' (ascending) */</span></div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_sort_table_2(linetable, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"X"</span>, <span class="keyword">false</span>, <span class="keyword">false</span>), </div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>        <span class="stringliteral">"Error sorting table"</span>);</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>     </div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>   cleanup:</div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span> }</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span> </div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span> </div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span> </div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00762"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#ga32817a71e6f80a75bd2d74e197f41002">  762</a></span> <a class="code" href="group__uves__wavecal.html#ga32817a71e6f80a75bd2d74e197f41002" title="Identify lines by comparing to catalogue wavelengths.">identify_lines</a>(cpl_table *linetable, <span class="keyword">const</span> cpl_table *line_refer, <span class="keywordtype">double</span> ALPHA)</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span> {</div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     <span class="keywordtype">int</span> number_identifications = 0;      <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>     <span class="keywordtype">int</span> linetable_size;</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>     <span class="keywordtype">int</span> linerefer_size;</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span>     <span class="keywordtype">int</span> row;</div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span>     <span class="keywordtype">int</span> *histogram = NULL;</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> minlog  = -5.0;         <span class="comment">/* Histogram (it's sort of ugly</span></div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span> <span class="comment">                        to hardcode these numbers, but</span></div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> <span class="comment">                        as long as it works, ...) */</span></div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> maxlog  = 15.0;</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>     <span class="keyword">const</span> <span class="keywordtype">int</span> nbins       = 400;</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>     <span class="keywordtype">double</span> error = 0;                    <span class="comment">/* Dimensionless factor</span></div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> <span class="comment">                        that controls IDs */</span></div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     <span class="keywordtype">double</span> average_dlambda_com = 0;      <span class="comment">/* Average of uncertainty of </span></div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> <span class="comment">                        predicted wavelenghts */</span></div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span> </div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( linetable  != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span>     <span class="comment">/* Line table input columns */</span></div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, LINETAB_LAMBDAC  ), <span class="stringliteral">" "</span>); <span class="comment">/* Predicted</span></div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> <span class="comment">                                      wavelength  */</span></div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"dLambdaC"</span> ), <span class="stringliteral">" "</span>); <span class="comment">/* Predicted wavelength </span></div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span> <span class="comment">                                    uncertainty  */</span></div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"X"</span>        ), <span class="stringliteral">" "</span>); <span class="comment">/* Line position, used</span></div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> <span class="comment">                                    only for messaging */</span></div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Order"</span>    ), <span class="stringliteral">" "</span>); <span class="comment">/* Absolute order number </span></div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span> <span class="comment">                                    of line */</span></div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Xwidth"</span>   ), <span class="stringliteral">" "</span>); <span class="comment">/* Line width (sigma) */</span></div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, LINETAB_PIXELSIZE), <span class="stringliteral">" "</span>); <span class="comment">/* Pixelsize */</span></div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span> </div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>     <span class="comment">/* Line table output columns */</span></div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Ident"</span>    ), <span class="stringliteral">" "</span>); <span class="comment">/* Identified catalogue </span></div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span> <span class="comment">                                    wavelength */</span></div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"dIdent"</span>   ), <span class="stringliteral">" "</span>); <span class="comment">/* Uncertainty of IDed</span></div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> <span class="comment">                                    catalogue wavelength */</span></div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> </div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span>     <span class="comment">/* Catalogue */</span></div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( line_refer != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(line_refer, <span class="stringliteral">"Wave"</span> ), <span class="stringliteral">" "</span>);    <span class="comment">/* Catalogue wavelength */</span></div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(line_refer, <span class="stringliteral">"dWave"</span>), <span class="stringliteral">" "</span>);    <span class="comment">/* Uncertainty of</span></div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span> <span class="comment">                                    catalogue wavelength */</span></div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span>     </div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>     linetable_size = cpl_table_get_nrow(linetable);</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>     linerefer_size = cpl_table_get_nrow(line_refer);</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>     assure(linerefer_size >= 1, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Empty line reference table"</span>);</div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>     </div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span>     <span class="comment">/* Parameter */</span></div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( 0 < ALPHA && ALPHA <= 1, <span class="stringliteral">"%e"</span>, ALPHA);</div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span> </div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>     <span class="comment">/* Get average uncertainty of predicted wavelength */</span></div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span>     average_dlambda_com = cpl_table_get_column_median(linetable, <span class="stringliteral">"dLambdaC"</span>);</div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> </div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>     <span class="comment">/* Initialize histogram to zero */</span></div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>     histogram = cpl_calloc(nbins, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( histogram );</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>     </div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span> </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>     <span class="comment">/* First: Find distance to closest catalogue match, </span></div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span> <span class="comment">       distance to nearest neighbour, </span></div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span> <span class="comment">       and calculate histogram (to get average of distances to nearest neighbour) */</span></div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>     <span class="keywordflow">for</span> (row = 0; row < linetable_size; row++) {</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>     <span class="keywordtype">double</span> lambda_com;                 <span class="comment">/* Computed (predicted) wavelength */</span></div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>     <span class="keywordtype">double</span> line_width;                 <span class="comment">/* Line width (sigma) in wlu       */</span></div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>     <span class="keywordtype">double</span> line_fwhm;                  <span class="comment">/* Line FWHM in wlu                */</span></div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span>     <span class="keywordtype">int</span> order;                         <span class="comment">/* (Absolute) order of detected wavelength */</span></div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span>     <span class="keywordtype">double</span> lambda_cat;                 <span class="comment">/* Catalogue wavelength */</span></div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span>     <span class="keywordtype">double</span> lambda_cat_sigma;           <span class="comment">/* Catalogue wavelength uncertainty */</span></div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>     <span class="keywordtype">double</span> distance_cat_sq;            <span class="comment">/* Distance to catalogue wavelength (squared) */</span></div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>     <span class="keywordtype">double</span> nn_distance_sq;             <span class="comment">/* Distance to nearest neighbour (squared) */</span></div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>     <span class="keywordtype">int</span> row_cat;                       <span class="comment">/* Row number of best matching catalogue wavelength */</span></div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>     </div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>     <span class="comment">/* Read line table */</span></div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span>     lambda_com  = cpl_table_get_double(linetable, LINETAB_LAMBDAC   , row, NULL);</div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span>     order       = cpl_table_get_int   (linetable, <span class="stringliteral">"Order"</span>     , row, NULL);</div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span> </div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span>     </div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span>     line_width = </div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span>         cpl_table_get_double(linetable, <span class="stringliteral">"Xwidth"</span>    , row, NULL) *</div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span>         fabs(cpl_table_get_double(linetable, LINETAB_PIXELSIZE , row, NULL)); </div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span>     <span class="comment">/* Convert pixel->wlu */</span></div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span> </div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span>     line_fwhm = TWOSQRT2LN2 * line_width;</div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>     </div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>     <span class="comment">/* Find closest match in catalogue */</span></div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>     row_cat          = <a class="code" href="group__uves__wavecal.html#gae0d2cfe5965b9e1f8655d1265b6bdde3" title="Find best matching catalogue wavelength.">uves_wavecal_find_nearest</a>(</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>         line_refer, lambda_com, 0, linerefer_size - 1);</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>     lambda_cat       = cpl_table_get_double(line_refer, <span class="stringliteral">"Wave"</span>, row_cat, NULL);</div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>     lambda_cat_sigma = cpl_table_get_double(line_refer, <span class="stringliteral">"dWave"</span>,row_cat, NULL);</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span> </div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span>     <span class="comment">/* Distance to closest match */</span></div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>     distance_cat_sq = (lambda_com - lambda_cat)*(lambda_com - lambda_cat);</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>     </div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>         <span class="comment">/* Determine the distance to the next neighbour</span></div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span> <span class="comment">     * There are (max) 4 candiates: 2 neigbours in spectrum (i.e. line table)</span></div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> <span class="comment">     *                          and 2 neigbours in line catalogue</span></div>
-<div class="line"><a name="l00858"></a><span class="lineno">  858</span> <span class="comment">     */</span></div>
-<div class="line"><a name="l00859"></a><span class="lineno">  859</span>     {</div>
-<div class="line"><a name="l00860"></a><span class="lineno">  860</span>         <span class="keywordtype">double</span> lambda_com_prev, lambda_com_next;</div>
-<div class="line"><a name="l00861"></a><span class="lineno">  861</span>         <span class="keywordtype">int</span> order_prev, order_next;</div>
-<div class="line"><a name="l00862"></a><span class="lineno">  862</span>         <span class="keywordtype">double</span> lambda_cat_prev, lambda_cat_next;</div>
-<div class="line"><a name="l00863"></a><span class="lineno">  863</span> </div>
-<div class="line"><a name="l00864"></a><span class="lineno">  864</span>         nn_distance_sq = DBL_MAX;</div>
-<div class="line"><a name="l00865"></a><span class="lineno">  865</span> </div>
-<div class="line"><a name="l00866"></a><span class="lineno">  866</span>         <span class="comment">/* Read previous and next rows of line table */</span></div>
-<div class="line"><a name="l00867"></a><span class="lineno">  867</span>         <span class="keywordflow">if</span> (row >= 1) </div>
-<div class="line"><a name="l00868"></a><span class="lineno">  868</span>         {</div>
-<div class="line"><a name="l00869"></a><span class="lineno">  869</span>             order_prev      = cpl_table_get_int   (</div>
-<div class="line"><a name="l00870"></a><span class="lineno">  870</span>             linetable, <span class="stringliteral">"Order"</span>  , row - 1, NULL);</div>
-<div class="line"><a name="l00871"></a><span class="lineno">  871</span>             lambda_com_prev = cpl_table_get_double(</div>
-<div class="line"><a name="l00872"></a><span class="lineno">  872</span>             linetable, LINETAB_LAMBDAC, row - 1, NULL);</div>
-<div class="line"><a name="l00873"></a><span class="lineno">  873</span>             </div>
-<div class="line"><a name="l00874"></a><span class="lineno">  874</span>             <span class="keywordflow">if</span> (order == order_prev) </div>
-<div class="line"><a name="l00875"></a><span class="lineno">  875</span>             {</div>
-<div class="line"><a name="l00876"></a><span class="lineno">  876</span>                 nn_distance_sq = uves_min_double(nn_distance_sq,</div>
-<div class="line"><a name="l00877"></a><span class="lineno">  877</span>                                  (lambda_com_prev - lambda_com)*</div>
-<div class="line"><a name="l00878"></a><span class="lineno">  878</span>                                  (lambda_com_prev - lambda_com)</div>
-<div class="line"><a name="l00879"></a><span class="lineno">  879</span>                 );</div>
-<div class="line"><a name="l00880"></a><span class="lineno">  880</span>             }</div>
-<div class="line"><a name="l00881"></a><span class="lineno">  881</span>         }</div>
-<div class="line"><a name="l00882"></a><span class="lineno">  882</span> </div>
-<div class="line"><a name="l00883"></a><span class="lineno">  883</span>         <span class="keywordflow">if</span> (row <= linetable_size - 2) </div>
-<div class="line"><a name="l00884"></a><span class="lineno">  884</span>         {</div>
-<div class="line"><a name="l00885"></a><span class="lineno">  885</span>             order_next      = cpl_table_get_int   (linetable, <span class="stringliteral">"Order"</span>, </div>
-<div class="line"><a name="l00886"></a><span class="lineno">  886</span>                                row + 1, NULL);</div>
-<div class="line"><a name="l00887"></a><span class="lineno">  887</span>             lambda_com_next = cpl_table_get_double(linetable, LINETAB_LAMBDAC,</div>
-<div class="line"><a name="l00888"></a><span class="lineno">  888</span>                                row + 1, NULL);</div>
-<div class="line"><a name="l00889"></a><span class="lineno">  889</span>             </div>
-<div class="line"><a name="l00890"></a><span class="lineno">  890</span>             <span class="keywordflow">if</span> (order == order_next) </div>
-<div class="line"><a name="l00891"></a><span class="lineno">  891</span>             {</div>
-<div class="line"><a name="l00892"></a><span class="lineno">  892</span>                 nn_distance_sq = uves_min_double(nn_distance_sq,</div>
-<div class="line"><a name="l00893"></a><span class="lineno">  893</span>                                  (lambda_com_next - lambda_com)*</div>
-<div class="line"><a name="l00894"></a><span class="lineno">  894</span>                                  (lambda_com_next - lambda_com)</div>
-<div class="line"><a name="l00895"></a><span class="lineno">  895</span>                 );</div>
-<div class="line"><a name="l00896"></a><span class="lineno">  896</span>             }</div>
-<div class="line"><a name="l00897"></a><span class="lineno">  897</span>         }</div>
-<div class="line"><a name="l00898"></a><span class="lineno">  898</span>         </div>
-<div class="line"><a name="l00899"></a><span class="lineno">  899</span>         <span class="comment">/* Read previous and next rows of catalogue */</span></div>
-<div class="line"><a name="l00900"></a><span class="lineno">  900</span>         <span class="keywordflow">if</span> (row_cat >= 1)</div>
-<div class="line"><a name="l00901"></a><span class="lineno">  901</span>         {</div>
-<div class="line"><a name="l00902"></a><span class="lineno">  902</span>             lambda_cat_prev = cpl_table_get_double(</div>
-<div class="line"><a name="l00903"></a><span class="lineno">  903</span>             line_refer, <span class="stringliteral">"Wave"</span>, row_cat - 1, NULL);</div>
-<div class="line"><a name="l00904"></a><span class="lineno">  904</span> </div>
-<div class="line"><a name="l00905"></a><span class="lineno">  905</span>             nn_distance_sq = uves_min_double(</div>
-<div class="line"><a name="l00906"></a><span class="lineno">  906</span>             nn_distance_sq,</div>
-<div class="line"><a name="l00907"></a><span class="lineno">  907</span>             (lambda_cat_prev - lambda_cat)*</div>
-<div class="line"><a name="l00908"></a><span class="lineno">  908</span>             (lambda_cat_prev - lambda_cat)</div>
-<div class="line"><a name="l00909"></a><span class="lineno">  909</span>             );</div>
-<div class="line"><a name="l00910"></a><span class="lineno">  910</span>         }</div>
-<div class="line"><a name="l00911"></a><span class="lineno">  911</span>         <span class="keywordflow">if</span> (row_cat <= linerefer_size - 2) </div>
-<div class="line"><a name="l00912"></a><span class="lineno">  912</span>         {</div>
-<div class="line"><a name="l00913"></a><span class="lineno">  913</span>             lambda_cat_next = cpl_table_get_double(</div>
-<div class="line"><a name="l00914"></a><span class="lineno">  914</span>             line_refer, <span class="stringliteral">"Wave"</span>, row_cat + 1, NULL);</div>
-<div class="line"><a name="l00915"></a><span class="lineno">  915</span> </div>
-<div class="line"><a name="l00916"></a><span class="lineno">  916</span>             nn_distance_sq = uves_min_double(</div>
-<div class="line"><a name="l00917"></a><span class="lineno">  917</span>             nn_distance_sq,</div>
-<div class="line"><a name="l00918"></a><span class="lineno">  918</span>             (lambda_cat_next - lambda_cat)*</div>
-<div class="line"><a name="l00919"></a><span class="lineno">  919</span>             (lambda_cat_next - lambda_cat)</div>
-<div class="line"><a name="l00920"></a><span class="lineno">  920</span>             );</div>
-<div class="line"><a name="l00921"></a><span class="lineno">  921</span>         }</div>
-<div class="line"><a name="l00922"></a><span class="lineno">  922</span> </div>
-<div class="line"><a name="l00923"></a><span class="lineno">  923</span>         <span class="comment">/* Update distance to nearest neighbour with a </span></div>
-<div class="line"><a name="l00924"></a><span class="lineno">  924</span> <span class="comment">           safety margin (determined by parameter ALPHA < 1) */</span></div>
-<div class="line"><a name="l00925"></a><span class="lineno">  925</span>         <span class="keywordflow">if</span> (nn_distance_sq < DBL_MAX)</div>
-<div class="line"><a name="l00926"></a><span class="lineno">  926</span>         {</div>
-<div class="line"><a name="l00927"></a><span class="lineno">  927</span>             nn_distance_sq *= ALPHA*ALPHA;</div>
-<div class="line"><a name="l00928"></a><span class="lineno">  928</span>         }</div>
-<div class="line"><a name="l00929"></a><span class="lineno">  929</span>         </div>
-<div class="line"><a name="l00930"></a><span class="lineno">  930</span>     }<span class="comment">/* Find next neighbour */</span></div>
-<div class="line"><a name="l00931"></a><span class="lineno">  931</span>     </div>
-<div class="line"><a name="l00932"></a><span class="lineno">  932</span>     <span class="comment">/* Update line table */</span></div>
-<div class="line"><a name="l00933"></a><span class="lineno">  933</span>     cpl_table_set_double(linetable, <span class="stringliteral">"Lambda_candidate"</span>, row, lambda_cat);</div>
-<div class="line"><a name="l00934"></a><span class="lineno">  934</span>     cpl_table_set_double(linetable, <span class="stringliteral">"dLambda_candidate"</span>,row, lambda_cat_sigma);</div>
-<div class="line"><a name="l00935"></a><span class="lineno">  935</span>     cpl_table_set_double(linetable, <span class="stringliteral">"dLambda_cat_sq"</span>, row, distance_cat_sq);</div>
-<div class="line"><a name="l00936"></a><span class="lineno">  936</span>     cpl_table_set_double(linetable, <span class="stringliteral">"dLambda_nn_sq"</span>, row, nn_distance_sq);</div>
-<div class="line"><a name="l00937"></a><span class="lineno">  937</span> </div>
-<div class="line"><a name="l00938"></a><span class="lineno">  938</span>     <span class="comment">/* Update histogram with the interval</span></div>
-<div class="line"><a name="l00939"></a><span class="lineno">  939</span> <span class="comment">       [distance_cat_sq ; nn_distance_sq]  (in units of line_fwhm) */</span></div>
-<div class="line"><a name="l00940"></a><span class="lineno">  940</span>     {</div>
-<div class="line"><a name="l00941"></a><span class="lineno">  941</span>         <span class="keywordtype">int</span> ilow  = uves_round_double((0.5*log(distance_cat_sq/(line_fwhm*line_fwhm))</div>
-<div class="line"><a name="l00942"></a><span class="lineno">  942</span>                        - minlog)/(maxlog - minlog) * nbins);</div>
-<div class="line"><a name="l00943"></a><span class="lineno">  943</span>         <span class="keywordtype">int</span> ihigh = uves_round_double((0.5*log(nn_distance_sq /(line_fwhm*line_fwhm))</div>
-<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                        - minlog)/(maxlog - minlog) * nbins);</div>
-<div class="line"><a name="l00945"></a><span class="lineno">  945</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00946"></a><span class="lineno">  946</span>         </div>
-<div class="line"><a name="l00947"></a><span class="lineno">  947</span>         <span class="keywordflow">for</span> (i = uves_max_int(ilow, 0); i < uves_min_int(ihigh, nbins); i++) </div>
-<div class="line"><a name="l00948"></a><span class="lineno">  948</span>         {</div>
-<div class="line"><a name="l00949"></a><span class="lineno">  949</span>             histogram[i] += 1;</div>
-<div class="line"><a name="l00950"></a><span class="lineno">  950</span>         }</div>
-<div class="line"><a name="l00951"></a><span class="lineno">  951</span>     }</div>
-<div class="line"><a name="l00952"></a><span class="lineno">  952</span>     }<span class="comment">/* ... finding neighbours */</span></div>
-<div class="line"><a name="l00953"></a><span class="lineno">  953</span>     </div>
-<div class="line"><a name="l00954"></a><span class="lineno">  954</span>     <span class="comment">/* Determine error as peak of histogram */</span></div>
-<div class="line"><a name="l00955"></a><span class="lineno">  955</span>     {</div>
-<div class="line"><a name="l00956"></a><span class="lineno">  956</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00957"></a><span class="lineno">  957</span>     <span class="keywordtype">int</span> maxfreq = -1;</div>
-<div class="line"><a name="l00958"></a><span class="lineno">  958</span>     <span class="keywordflow">for</span> (i = 0; i < nbins; i++) </div>
-<div class="line"><a name="l00959"></a><span class="lineno">  959</span>         {</div>
-<div class="line"><a name="l00960"></a><span class="lineno">  960</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"histogram[%d] = %d"</span>, i, histogram[i]);</div>
-<div class="line"><a name="l00961"></a><span class="lineno">  961</span>         <span class="keywordflow">if</span> (histogram[i] > maxfreq) </div>
-<div class="line"><a name="l00962"></a><span class="lineno">  962</span>             {</div>
-<div class="line"><a name="l00963"></a><span class="lineno">  963</span>             maxfreq = histogram[i];</div>
-<div class="line"><a name="l00964"></a><span class="lineno">  964</span>             error   = exp( i / ((<span class="keywordtype">double</span>)nbins) * (maxlog - minlog) + minlog ) ;</div>
-<div class="line"><a name="l00965"></a><span class="lineno">  965</span>             <span class="comment">/* == the dimensionless factor to be multiplied by Xwidth */</span></div>
-<div class="line"><a name="l00966"></a><span class="lineno">  966</span>             }</div>
-<div class="line"><a name="l00967"></a><span class="lineno">  967</span>         }</div>
-<div class="line"><a name="l00968"></a><span class="lineno">  968</span>     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Dimensionless error factor is %f"</span>, error);</div>
-<div class="line"><a name="l00969"></a><span class="lineno">  969</span>     }</div>
-<div class="line"><a name="l00970"></a><span class="lineno">  970</span>     </div>
-<div class="line"><a name="l00971"></a><span class="lineno">  971</span>     <span class="comment">/* Sketch of situation:</span></div>
-<div class="line"><a name="l00972"></a><span class="lineno">  972</span> <span class="comment">       </span></div>
-<div class="line"><a name="l00973"></a><span class="lineno">  973</span> <span class="comment">  lambda_com                  Nearest neighbour</span></div>
-<div class="line"><a name="l00974"></a><span class="lineno">  974</span> <span class="comment"></span></div>
-<div class="line"><a name="l00975"></a><span class="lineno">  975</span> <span class="comment">      |                            |</span></div>
-<div class="line"><a name="l00976"></a><span class="lineno">  976</span> <span class="comment">      |    |                       |</span></div>
-<div class="line"><a name="l00977"></a><span class="lineno">  977</span> <span class="comment">      |    |                       |</span></div>
-<div class="line"><a name="l00978"></a><span class="lineno">  978</span> <span class="comment">      |    |                       |</span></div>
-<div class="line"><a name="l00979"></a><span class="lineno">  979</span> <span class="comment">           |</span></div>
-<div class="line"><a name="l00980"></a><span class="lineno">  980</span> <span class="comment"></span></div>
-<div class="line"><a name="l00981"></a><span class="lineno">  981</span> <span class="comment">    lambda_cat</span></div>
-<div class="line"><a name="l00982"></a><span class="lineno">  982</span> <span class="comment"></span></div>
-<div class="line"><a name="l00983"></a><span class="lineno">  983</span> <span class="comment"></span></div>
-<div class="line"><a name="l00984"></a><span class="lineno">  984</span> <span class="comment">     The 'average' (as inferred from the histogram)</span></div>
-<div class="line"><a name="l00985"></a><span class="lineno">  985</span> <span class="comment">     midpoint between 'lambda_cat' and 'nearest neighbour'</span></div>
-<div class="line"><a name="l00986"></a><span class="lineno">  986</span> <span class="comment">     is at   'error' * 'line_fwhm' .</span></div>
-<div class="line"><a name="l00987"></a><span class="lineno">  987</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l00988"></a><span class="lineno">  988</span>     </div>
-<div class="line"><a name="l00989"></a><span class="lineno">  989</span>     <span class="comment">/* Make the identification if</span></div>
-<div class="line"><a name="l00990"></a><span class="lineno">  990</span> <span class="comment">       </span></div>
-<div class="line"><a name="l00991"></a><span class="lineno">  991</span> <span class="comment">    1) the catalogue candidate is within two sigma:</span></div>
-<div class="line"><a name="l00992"></a><span class="lineno">  992</span> <span class="comment">         | lambda_cat - lambda_com | < 2 * dlambda_com</span></div>
-<div class="line"><a name="l00993"></a><span class="lineno">  993</span> <span class="comment"></span></div>
-<div class="line"><a name="l00994"></a><span class="lineno">  994</span> <span class="comment">    and</span></div>
-<div class="line"><a name="l00995"></a><span class="lineno">  995</span> <span class="comment"></span></div>
-<div class="line"><a name="l00996"></a><span class="lineno">  996</span> <span class="comment">    2) after multiplying the distance to the nearest neighbour by ALPHA < 1,</span></div>
-<div class="line"><a name="l00997"></a><span class="lineno">  997</span> <span class="comment">    the nearest neighbour is farther away than the catalogue wavelength </span></div>
-<div class="line"><a name="l00998"></a><span class="lineno">  998</span> <span class="comment">         distance_nn  >  distance_cat</span></div>
-<div class="line"><a name="l00999"></a><span class="lineno">  999</span> <span class="comment">    and farther away than the tolerance</span></div>
-<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> <span class="comment">         distance_nn  >  line_fwhm * error</span></div>
-<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> <span class="comment">     </span></div>
-<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> <span class="comment">    */</span></div>
-<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>     <span class="keywordflow">for</span> (row = 0; row < linetable_size; row++)</div>
-<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>     {</div>
-<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>         <span class="keywordtype">double</span> distance_cat_sq;              <span class="comment">/* Distance to catalogue wavelength (squared) */</span></div>
-<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>         <span class="keywordtype">double</span> nn_distance_sq;               <span class="comment">/* Distance to nearest neighbour (squared) */</span></div>
-<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>         <span class="keywordtype">double</span> tolerance_sq;</div>
-<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>         <span class="keywordtype">double</span> dlambda_com;</div>
-<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>         <span class="keywordtype">double</span> line_width;                   <span class="comment">/* Line width (1 sigma) */</span></div>
-<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>         <span class="keywordtype">double</span> line_fwhm;</div>
-<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>         <span class="keywordtype">double</span> lambda_cat;</div>
-<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>         <span class="keywordtype">double</span> lambda_cat_sigma;             <span class="comment">/* Uncertainty of lambda_cat */</span></div>
-<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>         </div>
-<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>         lambda_cat       = cpl_table_get_double(linetable,  <span class="stringliteral">"Lambda_candidate"</span>, row, NULL);</div>
-<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>         lambda_cat_sigma = cpl_table_get_double(linetable, <span class="stringliteral">"dLambda_candidate"</span>, row, NULL);</div>
-<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>         </div>
-<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>         </div>
-<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>         <span class="comment">/* Sigma less than 1 pixel is usually not</span></div>
-<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> <span class="comment">           justified by the data (which obviously </span></div>
-<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span> <span class="comment">           has a resolution of only 1 pixel). Such</span></div>
-<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> <span class="comment">           an underenstimation of the uncertainty</span></div>
-<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> <span class="comment">           leads to wrong identifications.</span></div>
-<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> <span class="comment">           Therefore use a width of at least 1 pixel */</span></div>
-<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>         line_width =</div>
-<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>         uves_max_double(1, cpl_table_get_double(linetable, <span class="stringliteral">"Xwidth"</span>    , row, NULL)) *</div>
-<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>         fabs(cpl_table_get_double(linetable, LINETAB_PIXELSIZE , row, NULL));</div>
-<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>         <span class="comment">/* convert to wlu */</span></div>
-<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>         </div>
-<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>         line_fwhm = TWOSQRT2LN2 * line_width;</div>
-<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> </div>
-<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>         <span class="comment">/* As the uncertainty of the computed wavelength is used</span></div>
-<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> <span class="comment">         *  line_fwhm (in w.l.u.)</span></div>
-<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> <span class="comment">         * To take into account the fact that lines near the edge of</span></div>
-<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> <span class="comment">         * the chip have larger error of the computed wavelength,</span></div>
-<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span> <span class="comment">         * this is also scaled according to the accuracy of the dispersion</span></div>
-<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> <span class="comment">         * relation, i.e. multiplied by  dl/<dl>,</span></div>
-<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span> <span class="comment">         * where <dl> is an average, say the median, of uncertainties of</span></div>
-<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span> <span class="comment">         * all predicted wavelengths.</span></div>
-<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> <span class="comment">         */</span></div>
-<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>         </div>
-<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>         dlambda_com = line_fwhm </div>
-<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>         * cpl_table_get_double(linetable, <span class="stringliteral">"dLambdaC"</span>  , row, NULL)</div>
-<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>         / average_dlambda_com;</div>
-<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>         </div>
-<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>         tolerance_sq = line_fwhm*line_fwhm * error*error;</div>
-<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>         </div>
-<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>         distance_cat_sq = cpl_table_get_double(linetable, <span class="stringliteral">"dLambda_cat_sq"</span>, row, NULL);</div>
-<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>         nn_distance_sq  = cpl_table_get_double(linetable, <span class="stringliteral">"dLambda_nn_sq"</span> , row, NULL);</div>
-<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>         </div>
-<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> <span class="preprocessor">#if WANT_BIG_LOGFILE</span></div>
-<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> <span class="preprocessor"></span>        <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"(order,x) = (%d,%f) lcom = %f+-%f lcat = %f "</span></div>
-<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>                <span class="stringliteral">"dist_cat = %f (%f pixels) tolerance = %.3f error = %f "</span></div>
-<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>                <span class="stringliteral">"nn = %f (%f pixels)"</span>, </div>
-<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>                cpl_table_get_int   (linetable, <span class="stringliteral">"Order"</span>  , row, NULL),</div>
-<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>                cpl_table_get_double(linetable, <span class="stringliteral">"X"</span>      , row, NULL),</div>
-<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>                cpl_table_get_double(linetable, LINETAB_LAMBDAC, row, NULL),</div>
-<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>                dlambda_com,</div>
-<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>                lambda_cat,</div>
-<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>                sqrt(distance_cat_sq),</div>
-<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>                sqrt(distance_cat_sq)</div>
-<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>                /cpl_table_get_double(linetable, LINETAB_PIXELSIZE, row, NULL),</div>
-<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>                sqrt(tolerance_sq),</div>
-<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>                error,</div>
-<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>                sqrt(nn_distance_sq),</div>
-<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>                sqrt(nn_distance_sq)</div>
-<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>                /cpl_table_get_double(linetable, LINETAB_PIXELSIZE, row, NULL));</div>
-<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> <span class="preprocessor"></span>        </div>
-<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>         <span class="comment">/* Make the ID? */</span></div>
-<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>         <span class="keywordflow">if</span> (distance_cat_sq < (dlambda_com)*(dlambda_com)</div>
-<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>         && tolerance_sq < nn_distance_sq</div>
-<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>         && distance_cat_sq < nn_distance_sq)</div>
-<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>         {</div>
-<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>             number_identifications++;</div>
-<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>             cpl_table_set_double(linetable, <span class="stringliteral">"Ident"</span>, row, lambda_cat);</div>
-<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>             cpl_table_set_double(linetable, <span class="stringliteral">"dIdent"</span>,row, lambda_cat_sigma);</div>
-<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> <span class="preprocessor">#if WANT_BIG_LOGFILE</span></div>
-<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"ID made"</span>);</div>
-<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>         <span class="keywordflow">else</span> </div>
-<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>         {</div>
-<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>             <span class="keywordflow">if</span> (cpl_table_is_valid(linetable, <span class="stringliteral">"Ident"</span>, row)) {</div>
-<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>             number_identifications++;                      </div>
-<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>             <span class="comment">/* Also count lines that were already identified */</span></div>
-<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Line at (%d,%f) does not match ID criterion anymore"</span>,</div>
-<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>                        cpl_table_get_int   (linetable, <span class="stringliteral">"Order"</span>, row, NULL),</div>
-<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>                        cpl_table_get_double(linetable, <span class="stringliteral">"X"</span>, row, NULL)</div>
-<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>             );</div>
-<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>         }</div>
-<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>         }</div>
-<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>     }</div>
-<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> </div>
-<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>   cleanup:</div>
-<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>     cpl_free(histogram);</div>
-<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>     <span class="keywordflow">return</span> number_identifications;</div>
-<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> }</div>
-<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> </div>
-<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span> <span class="keyword">static</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l01127"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#ga6441018223f000460da3fe4e29325806"> 1127</a></span> <a class="code" href="group__uves__wavecal.html#ga6441018223f000460da3fe4e29325806" title="Create a fit of all orders.">calibrate_global</a>(<span class="keyword">const</span> cpl_table *linetable,</div>
-<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>                  cpl_table **selected,</div>
-<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>          <span class="keywordtype">int</span> degree, <span class="keywordtype">bool</span> verbose,</div>
-<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>                  <span class="keywordtype">bool</span> reject,</div>
-<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>          <span class="keywordtype">double</span> TOLERANCE,</div>
-<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>                  <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>          <span class="keywordtype">double</span> *red_chisq, <a class="code" href="struct__polynomial.html">polynomial</a> **dispersion_variance,</div>
-<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>          <span class="keywordtype">double</span> *pixelsize,</div>
-<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>          <span class="keywordtype">double</span> *rms_wlu,</div>
-<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>          <span class="keywordtype">double</span> *rms_pixels)</div>
-<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> {</div>
-<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>     <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion_relation = NULL; <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>     cpl_table *identified = NULL;</div>
-<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>     <span class="keywordtype">int</span> valid_ids = </div>
-<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>     cpl_table_get_nrow(linetable) - </div>
-<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>     cpl_table_count_invalid(linetable, <span class="stringliteral">"Ident"</span>);</div>
-<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>     <span class="keywordtype">int</span> rejected;</div>
-<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>     </div>
-<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( (pixelsize == NULL) == (rms_wlu    == NULL) &&</div>
-<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>          (pixelsize == NULL) == (rms_pixels == NULL), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> </div>
-<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>     assure( degree < 0 ||</div>
-<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>             valid_ids >= (degree + 1)*(degree + 1), CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>         <span class="stringliteral">"There are not enough identifications to create a %d.-degree global fit. "</span></div>
-<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>         <span class="stringliteral">"%d needed. %d found"</span>, degree, (degree + 1)*(degree + 1), valid_ids);</div>
-<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>     </div>
-<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>     identified = cpl_table_duplicate(linetable);</div>
-<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>(identified);</div>
-<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> </div>
-<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>     <span class="comment">/* Delete rows with invalid 'Ident' and large residuals */</span></div>
-<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>     <span class="keywordflow">if</span> (reject)</div>
-<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>         {</div>
-<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( rejected = <a class="code" href="group__uves__wavecal.html#ga2f7ee53133e419d19f10cbc231e8054a" title="Delete bad lines from line table.">uves_delete_bad_lines</a>(identified, TOLERANCE, kappa) );</div>
-<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%d lines rejected %f %f"</span>, rejected, TOLERANCE, kappa);</div>
-<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>         }</div>
-<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>         {</div>
-<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_erase_invalid_table_rows(identified, <span class="stringliteral">"Ident"</span>),</div>
-<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>                    <span class="stringliteral">"Error erasing un-identified lines"</span>);</div>
-<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>         }</div>
-<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> </div>
-<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>     </div>
-<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>     <span class="comment">/* Create column 'Aux' = 'Order' * 'Ident' */</span></div>
-<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>((  cpl_table_duplicate_column(identified, <span class="stringliteral">"Aux"</span>, identified, <span class="stringliteral">"Ident"</span>),</div>
-<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>              cpl_table_multiply_columns(identified, <span class="stringliteral">"Aux"</span>, <span class="stringliteral">"Order"</span>),</div>
-<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>              </div>
-<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>              <span class="comment">/* Create column 'dAux' = 'Order' * 'dIdent' */</span></div>
-<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>              cpl_table_duplicate_column(identified, <span class="stringliteral">"dAux"</span>, identified, <span class="stringliteral">"dIdent"</span>),</div>
-<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>              cpl_table_multiply_columns(identified, <span class="stringliteral">"dAux"</span>, <span class="stringliteral">"Order"</span>)),</div>
-<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>           <span class="stringliteral">"Error setting up temporary table"</span>);</div>
-<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span> </div>
-<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>     <span class="comment">/* Fit */</span></div>
-<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>     </div>
-<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>     <span class="keywordflow">if</span> (degree >= 0) {</div>
-<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dispersion_relation =</div>
-<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>                <a class="code" href="group__uves__utils.html#gafc0808f13c677459f41a27ad2c28a6f0" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d</a>(identified, </div>
-<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>                                              <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Aux"</span>, </div>
-<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>                                              <span class="stringliteral">"dAux"</span>, <span class="comment">/* Use "dAux" for weighting,</span></div>
-<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span> <span class="comment">                                                        to be able to compute an uncertainty</span></div>
-<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span> <span class="comment">                                                        of WAVEC.</span></div>
-<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> <span class="comment">                                                        </span></div>
-<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span> <span class="comment">                                                        It would probably make more sense</span></div>
-<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span> <span class="comment">                                                        to use the uncertainty of 'dX' for</span></div>
-<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> <span class="comment">                                                        weighting. */</span></div>
-<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>                                              degree, degree,</div>
-<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>                                              NULL, NULL, NULL,     <span class="comment">/* Don't add extra columns */</span></div>
-<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>                                              NULL,                 <span class="comment">/* mse */</span></div>
-<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>                                              red_chisq,</div>
-<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>                                              dispersion_variance, </div>
-<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>                                              reject ? kappa : -1, -1),</div>
-<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>                <span class="stringliteral">"Error fitting polynomial. Possible cause: too few (%d) "</span></div>
-<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>                <span class="stringliteral">"line identifications"</span>, valid_ids);</div>
-<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>     } </div>
-<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>         <span class="keywordtype">int</span> max_degree = 8;</div>
-<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>         <span class="keywordtype">double</span> min_rms = -1; <span class="comment">/* disabled */</span></div>
-<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>         <span class="keywordtype">double</span> min_reject = -1; <span class="comment">/* disabled */</span></div>
-<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( dispersion_relation =</div>
-<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>                <a class="code" href="group__uves__utils.html#ga0afd7f093baf963bc468b142b2fe5a7b" title="Fit a 2d polynomial to three table columns.">uves_polynomial_regression_2d_autodegree</a>(identified,</div>
-<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>                                                         <span class="stringliteral">"X"</span>, <span class="stringliteral">"Order"</span>, <span class="stringliteral">"Aux"</span>, </div>
-<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>                                                         <span class="stringliteral">"dAux"</span>, </div>
-<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>                                                         NULL, NULL, NULL,  </div>
-<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>                                                         NULL, </div>
-<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>                                                         red_chisq,</div>
-<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>                                                         dispersion_variance,</div>
-<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>                                                         reject ? kappa : -1,</div>
-<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>                                                         max_degree, max_degree, </div>
-<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>                                                         min_rms, min_reject,</div>
-<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>                                                         verbose,</div>
-<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>                                                         NULL, NULL, 0, NULL),</div>
-<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>                <span class="stringliteral">"Error fitting polynomial. Possible cause: too few (%d) "</span></div>
-<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>                <span class="stringliteral">"line identifications"</span>, valid_ids);</div>
-<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>     }</div>
-<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span> </div>
-<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>     <span class="keywordflow">if</span> (pixelsize != NULL)</div>
-<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>     {</div>
-<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>         <span class="comment">/* Compute parameters if requested */</span></div>
-<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span> </div>
-<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__wavecal.html#ga3d2a634d47ecc17a9550bc3169b45108" title="Apply dispersion relation to line table.">compute_lambda</a>(identified, dispersion_relation, NULL,</div>
-<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>                                   <span class="keyword">false</span>),</div>
-<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>            <span class="stringliteral">"Error applying dispersion relation"</span>);</div>
-<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>         </div>
-<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>         *pixelsize = cpl_table_get_column_median(identified, LINETAB_PIXELSIZE);</div>
-<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>         *rms_wlu   = cpl_table_get_column_stdev (identified, LINETAB_RESIDUAL);</div>
-<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>         *rms_pixels= cpl_table_get_column_stdev (identified, <span class="stringliteral">"Residual_pix"</span>);</div>
-<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>     }</div>
-<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span> </div>
-<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>     <span class="keywordflow">if</span> (selected != NULL) {</div>
-<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>         *selected = cpl_table_duplicate(identified);</div>
-<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>     }</div>
-<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span> </div>
-<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>   cleanup:</div>
-<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>     uves_free_table(&identified);</div>
-<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>     {</div>
-<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>         <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&dispersion_relation);</div>
-<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>     }</div>
-<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>     </div>
-<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>     <span class="keywordflow">return</span> dispersion_relation;</div>
-<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> }</div>
-<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span> </div>
-<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span> </div>
-<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> </div>
-<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> </div>
-<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l01260"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#gad453e932c1e4d99548688995d4e1000b"> 1260</a></span> <a class="code" href="group__uves__wavecal.html#gad453e932c1e4d99548688995d4e1000b" title="Identify lines using point pattern matching.">uves_wavecal_identify_lines_ppm</a>(cpl_table *linetable, <span class="keyword">const</span> cpl_table *line_refer)</div>
-<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span> {</div>
-<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>     <span class="keywordtype">int</span> result = 0;</div>
-<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>     <span class="keywordtype">int</span> minorder, maxorder;</div>
-<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>     <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>     cpl_table *lt_order = NULL;</div>
-<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>     cpl_table *refer_order = NULL;</div>
-<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>     cpl_vector *peaks = NULL;</div>
-<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>     cpl_vector *lines = NULL;</div>
-<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>     cpl_bivector *ids = NULL;</div>
-<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> </div>
-<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>     assure( cpl_table_has_column(linetable, LINETAB_LAMBDAC), CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>             <span class="stringliteral">"Missing column %s"</span>, LINETAB_LAMBDAC);</div>
-<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> </div>
-<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>     assure( cpl_table_has_column(linetable, LINETAB_PIXELSIZE), CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>             <span class="stringliteral">"Missing column %s"</span>, LINETAB_PIXELSIZE);</div>
-<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> </div>
-<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>     assure( cpl_table_has_column(linetable, <span class="stringliteral">"Order"</span>), CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>             <span class="stringliteral">"Missing column %s"</span>, <span class="stringliteral">"Order"</span>);</div>
-<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span> </div>
-<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>     minorder = uves_round_double( cpl_table_get_column_min(linetable, <span class="stringliteral">"Order"</span>));</div>
-<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>     maxorder = uves_round_double( cpl_table_get_column_max(linetable, <span class="stringliteral">"Order"</span>));</div>
-<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> </div>
-<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>     <span class="comment">/* Reset identifications */</span></div>
-<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>     <span class="keywordflow">if</span> (cpl_table_has_column(linetable, <span class="stringliteral">"Ident_ppm"</span>))</div>
-<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>         {</div>
-<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>             cpl_table_erase_column(linetable, <span class="stringliteral">"Ident_ppm"</span>);</div>
-<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>         }</div>
-<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span> </div>
-<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>     cpl_table_new_column(linetable, <span class="stringliteral">"Ident_ppm"</span>, CPL_TYPE_DOUBLE);</div>
-<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>     </div>
-<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>     <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++)</div>
-<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>         {</div>
-<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>             <span class="keyword">const</span> <span class="keywordtype">double</span> tolerance = 0.05; <span class="comment">/* relative tolerance on interval ratios */</span></div>
-<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>             <span class="keywordtype">double</span> min_lambda, max_lambda;</div>
-<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>             <span class="keywordtype">double</span> min_disp, max_disp;</div>
-<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span> </div>
-<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>             <span class="comment">/* Extract current order */</span></div>
-<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>            </div>
-<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>             uves_free_table(&lt_order);</div>
-<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>             lt_order = uves_extract_table_rows(linetable, <span class="stringliteral">"Order"</span>,</div>
-<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>                                                CPL_EQUAL_TO, order); <span class="comment">/* Uses integer comparison */</span></div>
-<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span> </div>
-<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>((min_lambda = cpl_table_get_column_min(lt_order, LINETAB_LAMBDAC),</div>
-<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>                          max_lambda = cpl_table_get_column_max(lt_order, LINETAB_LAMBDAC),</div>
-<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>                          min_disp   = cpl_table_get_column_min(lt_order, LINETAB_PIXELSIZE)*0.99,</div>
-<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>                          max_disp   = cpl_table_get_column_max(lt_order, LINETAB_PIXELSIZE)*1.01));</div>
-<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>                         </div>
-<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>             uves_free_table(&refer_order);</div>
-<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>             refer_order = uves_extract_table_rows(line_refer, <span class="stringliteral">"Wave"</span>, CPL_GREATER_THAN,</div>
-<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>                                                   min_lambda);</div>
-<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>             uves_extract_table_rows_local(refer_order, <span class="stringliteral">"Wave"</span>, CPL_LESS_THAN,</div>
-<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>                                           max_lambda);</div>
-<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span> </div>
-<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>             <span class="comment">/* Convert to vectors */</span></div>
-<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>             {</div>
-<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>                 <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>                 uves_free_vector(&peaks);</div>
-<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>                 peaks = cpl_vector_new(cpl_table_get_nrow(lt_order));</div>
-<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>                 <span class="keywordflow">for</span> (i = 0; i < cpl_vector_get_size(peaks); i++)</div>
-<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>                     {</div>
-<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>                         cpl_vector_set(peaks, i, cpl_table_get_double(lt_order, <span class="stringliteral">"X"</span>, i, NULL));</div>
-<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>                     }</div>
-<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>                 </div>
-<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>                 uves_free_vector(&lines);</div>
-<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>                 lines = cpl_vector_new(cpl_table_get_nrow(refer_order));</div>
-<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>                 <span class="keywordflow">for</span> (i = 0; i < cpl_vector_get_size(lines); i++)</div>
-<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>                     {</div>
-<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>                         cpl_vector_set(lines, i, cpl_table_get_double(refer_order, <span class="stringliteral">"Wave"</span>, i, NULL));</div>
-<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>                     }</div>
-<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>             }</div>
-<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>             </div>
-<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>             <span class="comment">/* Not sure if this is necessary for the PPM algorithm */</span></div>
-<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>             cpl_vector_sort(peaks, 1);</div>
-<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>             cpl_vector_sort(lines, 1);</div>
-<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span> </div>
-<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Call ppm with %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" peaks, %"</span> CPL_SIZE_FORMAT <span class="stringliteral">" lines, dispersion range = %f - %f A/pixel"</span>,</div>
-<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>                            cpl_vector_get_size(peaks), </div>
-<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>                            cpl_vector_get_size(lines),</div>
-<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>                            min_disp, max_disp);</div>
-<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span> </div>
-<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>             uves_free_bivector(&ids);</div>
-<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span> </div>
-<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span> <span class="preprocessor">#if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(4, 0, 0)</span></div>
-<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span> <span class="preprocessor"></span>            ids = cpl_ppm_match_positions(peaks, lines,</div>
-<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>                                           min_disp, max_disp,</div>
-<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>                                           tolerance, </div>
-<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>                                           NULL, NULL);</div>
-<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> <span class="preprocessor"></span>            ids = irplib_ppm_match_positions(peaks, lines,</div>
-<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>                                              min_disp, max_disp,</div>
-<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>                                              tolerance);</div>
-<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span> </div>
-<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span> </div>
-<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>             <span class="keywordflow">if</span> (ids == NULL)</div>
-<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>                 {</div>
-<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>                     <a class="code" href="group__uves__msg.html#gaac9aa9b939f91f2e2fe42a1300008b9e" title="Print an warning message.">uves_msg_warning</a>(<span class="stringliteral">"Order %d: Point pattern matching failed"</span>, order);</div>
-<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>                     <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>                         {</div>
-<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>                             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%s at %s"</span>, cpl_error_get_message(),</div>
-<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>                                            cpl_error_get_where());</div>
-<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>                             <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>                         }</div>
-<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>                 }</div>
-<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>                 {</div>
-<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>                     <span class="keywordtype">int</span> i, j;</div>
-<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span> </div>
-<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>                     <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">" identifications from point pattern matching (order %d)"</span>,</div>
-<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>                                    cpl_bivector_get_size(ids), order);</div>
-<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span> </div>
-<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>                     result += cpl_bivector_get_size(ids);</div>
-<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> </div>
-<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>                     <span class="keywordflow">for</span> (i = 0; i < cpl_table_get_nrow(linetable); i++) {</div>
-<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span> </div>
-<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>                         <span class="keywordflow">if</span> (cpl_table_get_int(linetable, <span class="stringliteral">"Order"</span>, i, NULL) == order)</div>
-<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>                             <span class="keywordflow">for</span> (j = 0; j < cpl_bivector_get_size(ids); j++)</div>
-<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>                                 {</div>
-<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>                                     <span class="keywordflow">if</span> (fabs(cpl_table_get_double(linetable, <span class="stringliteral">"X"</span>, i, NULL) -</div>
-<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>                                              cpl_bivector_get_x_data(ids)[j]) < 0.001)</div>
-<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>                                         cpl_table_set_double(linetable, <span class="stringliteral">"Ident_ppm"</span>, i,</div>
-<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>                                                              cpl_bivector_get_y_data(ids)[j]);</div>
-<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>                                 }</div>
-<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>                     }</div>
-<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>                 }</div>
-<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>         }</div>
-<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>     </div>
-<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>   cleanup:</div>
-<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>     uves_free_table(&lt_order);</div>
-<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>     uves_free_table(&refer_order);</div>
-<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>     uves_free_vector(&peaks);</div>
-<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>     uves_free_vector(&lines);</div>
-<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>     uves_free_bivector(&ids);</div>
-<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span> </div>
-<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal__identify_8h_source.html b/html/uves__wavecal__identify_8h_source.html
deleted file mode 100644
index 2bcc20d..0000000
--- a/html/uves__wavecal__identify_8h_source.html
+++ /dev/null
@@ -1,140 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal_identify.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal_identify.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2002,2003 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 13:54:03 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.12 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.11  2011/03/23 10:08:10  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * changed uves_wavecal_search() API to allow QC log</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.10  2010/09/24 09:32:09  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.8  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.7  2007/05/22 11:46:15  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed 1d wavecal mode which was not supported</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.6  2007/05/07 14:25:59  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Changed formatting</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.5  2007/03/15 12:36:46  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Added experimental ppm code</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.4  2007/03/05 10:24:40  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Parametrized kappa parameter</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.3  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.2  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.6  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#ifndef UVES_WAVECAL_IDENTIFY_H</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_WAVECAL_IDENTIFY_H</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> </div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <a class="code" href="struct__polynomial.html">polynomial</a> *</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <a class="code" href="group__uves__wavecal.html#gaefff8994a1bf3be10c46012cff86ef04" title="Obtain final dispersion relation.">uves_wavecal_identify</a>(cpl_table *linetable, </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>               <span class="keyword">const</span> cpl_table *line_refer, </div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>               <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *guess_dispersion, </div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>               <span class="keywordtype">int</span> DEGREE, <span class="keywordtype">double</span> TOLERANCE, </div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>               <span class="keywordtype">double</span> ALPHA, <span class="keywordtype">double</span> MAXERROR,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>                       <span class="keywordtype">double</span> kappa,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>                       <span class="keyword">const</span> <span class="keywordtype">int</span> trace, <span class="keyword">const</span> <span class="keywordtype">int</span> window,cpl_table* qclog);</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> </div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <a class="code" href="group__uves__wavecal.html#gad453e932c1e4d99548688995d4e1000b" title="Identify lines using point pattern matching.">uves_wavecal_identify_lines_ppm</a>(cpl_table *linetable, <span class="keyword">const</span> cpl_table *line_refer);</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal__impl_8c_source.html b/html/uves__wavecal__impl_8c_source.html
deleted file mode 100644
index 52e0eec..0000000
--- a/html/uves__wavecal__impl_8c_source.html
+++ /dev/null
@@ -1,291 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal_impl.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal_impl.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:09 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.56 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.54  2008/03/28 08:54:57  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * IRPLIB_CONCAT2X-->UVES_CONCAT2X</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.53  2007/06/11 13:28:26  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Changed recipe contact address to cpl at eso.org</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.52  2007/06/08 13:06:16  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Send bug reports to Andrea</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.51  2007/06/06 08:17:33  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.50  2007/05/09 14:48:06  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Read slitlength from header</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.49  2007/02/09 13:44:42  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Use defines for recipe id</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.48  2006/12/07 08:30:19  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Support different slit for UVES, FLAMES</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.47  2006/11/13 12:42:55  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Factored out common UVES/FLAMES wavecal code</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.37  2006/11/06 15:19:41  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.36  2006/10/25 07:21:52  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Documentation bug fix</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.35  2006/10/24 14:02:38  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Factored out common UVES/FLAMES code</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.34  2006/10/17 12:33:02  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Added semicolon at UVES_RECIPE_DEFINE invocation</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.33  2006/10/09 13:01:13  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Use macro to define recipe interface functions</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.32  2006/09/20 12:53:57  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Replaced stringcat functions with uves_sprintf()</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.31  2006/09/19 14:31:10  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * uves_insert_frame(): use bitmap to specify which image statistics keywords must be computed</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.30  2006/09/19 06:55:11  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Changed interface of uves_frameset to optionally write image statistics kewwords</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> * Revision 1.29  2006/08/24 11:36:37  jmlarsen</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Write recipe start/stop time to header</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> * Revision 1.28  2006/08/18 13:35:42  jmlarsen</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Fixed/changed QC parameter formats</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> * Revision 1.27  2006/08/11 14:56:05  amodigli</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * removed Doxygen warnings</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> * Revision 1.26  2006/08/07 11:35:35  jmlarsen</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Disabled parameter environment variable mode</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> * Revision 1.25  2006/07/14 12:19:28  jmlarsen</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Support multiple QC tests per product</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> * Revision 1.24  2006/07/03 14:20:39  jmlarsen</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Exclude bad pixels from order tracing</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> * Revision 1.23  2006/07/03 13:09:24  amodigli</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * adjusted description display layout</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> * Revision 1.22  2006/07/03 12:46:34  amodigli</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * updated description</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> * Revision 1.21  2006/06/22 12:13:10  amodigli</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * removed ESO prefix</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> * Revision 1.20  2006/06/22 06:44:06  amodigli</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * added some QC param</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> * Revision 1.19  2006/06/16 08:25:34  jmlarsen</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Do the order tracing on non-median filtered frame</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> * Revision 1.18  2006/06/13 11:57:02  jmlarsen</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Check that calibration frames are from the same chip ID</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> * Revision 1.17  2006/06/08 11:40:50  amodigli</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * added check to have output order table as input guess, if provided</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> * Revision 1.16  2006/06/08 08:42:53  jmlarsen</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Added support for computing Hough transform on image subwindow</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> * Revision 1.15  2006/06/07 13:06:28  jmlarsen</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Changed doxygen tag addtogroup -> defgroup</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> * Revision 1.14  2006/06/07 09:01:28  amodigli</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * added some doc</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> * Revision 1.13  2006/06/06 08:40:10  jmlarsen</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment"> * Revision 1.12  2006/05/09 15:42:00  amodigli</span></div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> <span class="comment"> * added QC log</span></div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment"> * Revision 1.11  2006/05/08 15:41:32  amodigli</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment"> * added order table chopping (commented out)</span></div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment"> * Revision 1.10  2006/05/05 13:55:17  jmlarsen</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"> * Minor doc update</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="comment"> * Revision 1.9  2006/04/20 10:47:39  amodigli</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="comment"> * added qclog</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="comment"> * Revision 1.8  2006/04/06 09:48:15  amodigli</span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"> * changed uves_frameset_insert interface to have QC log</span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment"> * Revision 1.7  2006/04/06 08:46:40  jmlarsen</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment"> * Changed default polynomial degrees to auto</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"> * Revision 1.6  2006/03/24 14:04:14  jmlarsen</span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="comment"> * Changed background subtraction sample density default parameter value</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="comment"> * Revision 1.5  2006/03/09 10:53:41  jmlarsen</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="comment"> * Changed default bivariate degrees to MIDAS values</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"> * Revision 1.4  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment"> * Revision 1.3  2006/02/28 09:15:22  jmlarsen</span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"> * Revision 1.2  2006/02/21 14:26:54  jmlarsen</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"> * Minor changes</span></div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment"> * Revision 1.63  2006/01/19 08:47:24  jmlarsen</span></div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"> * Inserted missing doxygen end tag</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment"> * Revision 1.62  2006/01/05 14:31:31  jmlarsen</span></div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment"> * Checking for guess DRS table before guess order table</span></div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"> * Revision 1.61  2005/12/20 16:10:32  jmlarsen</span></div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment"> * Added some documentation</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment"> * Revision 1.60  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> </div>
-<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> </div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="preprocessor">#include <uves_wavecal_body.h></span></div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="preprocessor">#include <uves_recipe.h></span></div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> <span class="preprocessor">#include <uves.h></span></div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> </div>
-<div class="line"><a name="l00196"></a><span class="lineno">  196</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00197"></a><span class="lineno">  197</span> </div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment">                            Forward declarations</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="keyword">static</span> <span class="keywordtype">int</span> uves_wavecal_define_parameters(cpl_parameterlist *parameters);</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> </div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> <span class="comment">                            Recipe standard code</span></div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span> <span class="preprocessor">#define cpl_plugin_get_info uves_wavecal_get_info</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> <span class="preprocessor"></span>UVES_RECIPE_DEFINE(</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     UVES_WAVECAL_ID, UVES_WAVECAL_DOM, uves_wavecal_define_parameters,</div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="stringliteral">"Jonas M. Larsen"</span>, <span class="stringliteral">"cpl at eso.org"</span>,</div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     uves_wavecal_desc_short,</div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     uves_wavecal_desc);</div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span> </div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment">                              Functions code</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="keyword">static</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> uves_wavecal_define_parameters(cpl_parameterlist *parameters)</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> {</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     <span class="keywordtype">double</span> slit_length_in_pixels = -1; <span class="comment">/* Use header value */</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     <span class="keywordflow">return</span> uves_wavecal_define_parameters_body(parameters, make_str(UVES_WAVECAL_ID),</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>                            slit_length_in_pixels);</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> }</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span> UVES_CONCAT2X(UVES_WAVECAL_ID,exe)(cpl_frameset *frames, </div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>                      <span class="keyword">const</span> cpl_parameterlist *parameters,</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>                      <span class="keyword">const</span> <span class="keywordtype">char</span> *starttime)</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> {</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>     <span class="keywordtype">bool</span> flames = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> </div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>     uves_wavecal_exe_body(frames, flames, make_str(UVES_WAVECAL_ID),</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>               parameters, starttime);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> }</div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal__search_8c_source.html b/html/uves__wavecal__search_8c_source.html
deleted file mode 100644
index 01ab21c..0000000
--- a/html/uves__wavecal__search_8c_source.html
+++ /dev/null
@@ -1,809 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal_search.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal_search.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2013-10-09 12:11:14 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.34 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.33  2012/03/02 16:43:12  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * fixed warning related to upgrade to CPL6</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.32  2011/12/08 13:59:43  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Fox warnings with CPL6</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.31  2011/03/25 07:44:19  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * cleaned output</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.30  2011/03/23 12:27:31  amodigli</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * changed QC key as user likes</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.29  2011/03/23 10:08:31  amodigli</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * added QC to better characterize wave accuracy</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.28  2010/09/24 09:32:10  amodigli</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.26  2007/08/21 13:08:26  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Removed irplib_access module, largely deprecated by CPL-4</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.25  2007/06/06 08:17:34  amodigli</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.24  2007/05/02 13:20:01  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Take error bars into account in line searching if arclamp was flat-fielded</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.23  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.22  2007/04/20 14:46:45  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Added commented out code</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.21  2007/03/05 10:25:08  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Include slope in Gaussian fit</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.20  2007/02/23 13:33:38  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Added code to test unweighted fitting</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.19  2007/02/22 15:38:26  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Use linear background term in Gaussian fit</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> * Revision 1.18  2006/11/15 15:02:15  jmlarsen</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment"> * Implemented const safe workarounds for CPL functions</span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="comment"> * Revision 1.16  2006/11/15 14:04:08  jmlarsen</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment"> * Removed non-const version of parameterlist_get_first/last/next which is already</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"> * in CPL, added const-safe wrapper, unwrapper and deallocator functions</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment"> * Revision 1.15  2006/11/06 15:19:42  jmlarsen</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> * Revision 1.14  2006/08/18 13:51:01  jmlarsen</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"> * Moved one message from info to debug level</span></div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment"> * Revision 1.13  2006/08/17 13:56:53  jmlarsen</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment"> * Reduced max line length</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="comment"> * Revision 1.12  2006/08/17 09:18:47  jmlarsen</span></div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="comment"> * Removed CPL2 code</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment"> * Revision 1.11  2006/08/11 14:38:24  jmlarsen</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment"> * Minor text output change</span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment"> * Revision 1.10  2006/08/11 09:01:17  jmlarsen</span></div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment"> * Set unextracted bins to zero flux rather than marking them as bad</span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment"> * Revision 1.9  2006/07/14 12:45:58  jmlarsen</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment"> * Removed a few messages</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment"> * Revision 1.8  2006/07/03 13:29:30  jmlarsen</span></div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment"> * Adapted to new 1d-fitting function interface</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> * Revision 1.7  2006/06/13 12:05:11  jmlarsen</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment"> * Revision 1.6  2006/05/12 15:06:30  jmlarsen</span></div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"> * Killed code for method = gravity</span></div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"> * Revision 1.5  2006/04/24 09:34:26  jmlarsen</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment"> * Adapted to new interface of gaussian fitting routine</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"> * Revision 1.4  2006/03/03 13:54:11  jmlarsen</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> <span class="comment"> * Changed syntax of check macro</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"> * Revision 1.3  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"> * Revision 1.2  2006/02/08 07:52:16  jmlarsen</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"> * Added function returning library version</span></div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment"> * Revision 1.34  2006/01/12 15:41:14  jmlarsen</span></div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment"> * Moved gauss. fitting to irplib</span></div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment"> * Revision 1.33  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> </div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00134"></a><span class="lineno">  134</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00135"></a><span class="lineno">  135</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="preprocessor">#include <uves_wavecal_search.h></span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="preprocessor">#include <uves_utils_cpl.h></span></div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="preprocessor">#include <uves_pfits.h></span></div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="preprocessor">#include <uves_dump.h></span></div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span> <span class="preprocessor">#include <uves_qclog.h></span></div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span> </div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span> <span class="preprocessor">#include <float.h></span></div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="preprocessor">#define FIT_SLOPE 1</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="preprocessor"></span><span class="preprocessor">#define WEIGHTED_FIT 1   </span><span class="comment">/* Define to zero to get unweighted fit of emmision line</span></div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment">                            (like MIDAS) */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <a class="code" href="group__uves__wavecal.html#ga7b49db5bd97eb1228d45a6d37190cef6" title="Refine the center position of an initially detected emission line.">xcenter</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *noise, <span class="keywordtype">int</span> xlo, <span class="keywordtype">int</span> xhi, <span class="keywordtype">int</span> row,</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     centering_method CENTERING_METHOD, <span class="keywordtype">int</span> bin_disp,</div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     <span class="keywordtype">double</span> *sigma, <span class="keywordtype">double</span> *intensity, <span class="keywordtype">double</span> *dx0, <span class="keywordtype">double</span> *slope, <span class="keywordtype">double</span> *background);</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span> </div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <a class="code" href="group__uves__wavecal.html#gabf8091bf00a26cfe084f73ef3cb80a29" title="Find emission lines above a certain threshold.">detect_lines</a>(<span class="keyword">const</span> cpl_image *spectrum, <span class="keyword">const</span> cpl_image *noise, </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *spectrum_header, </div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>              <span class="keywordtype">bool</span> flat_fielded,</div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span>          <span class="keywordtype">int</span> RANGE, <span class="keywordtype">double</span> THRESHOLD, centering_method CENTERING_METHOD, </div>
-<div class="line"><a name="l00163"></a><span class="lineno">  163</span>              <span class="keywordtype">int</span> bin_disp,</div>
-<div class="line"><a name="l00164"></a><span class="lineno">  164</span>          <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, cpl_image *arcframe, </div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>          cpl_table *linetable, </div>
-<div class="line"><a name="l00166"></a><span class="lineno">  166</span>          <span class="keywordtype">int</span> *ndetected, <span class="keywordtype">int</span> *nrows);</div>
-<div class="line"><a name="l00167"></a><span class="lineno">  167</span> </div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00198"></a><span class="lineno">  198</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#ga0baa7a6c85fde5b3e8fe805cf5f4b6c6">  199</a></span> cpl_table *</div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <a class="code" href="group__uves__wavecal.html#ga0baa7a6c85fde5b3e8fe805cf5f4b6c6" title="Search for a given number of emission lines.">uves_wavecal_search</a>(<span class="keyword">const</span> cpl_image *spectrum, <span class="keyword">const</span> cpl_image *noise,</div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span>                     <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *spectrum_header,</div>
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span>                     <span class="keywordtype">bool</span> flat_fielded,</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>                     <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, cpl_image *arcframe,</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span>                     <span class="keywordtype">int</span> RANGE, <span class="keywordtype">int</span> MINLINES, <span class="keywordtype">int</span> MAXLINES,</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span>                     centering_method CENTERING_METHOD,<span class="keywordtype">int</span> bin_disp,</div>
-<div class="line"><a name="l00206"></a><span class="lineno">  206</span>                     <span class="keyword">const</span> <span class="keywordtype">int</span> trace, <span class="keyword">const</span> <span class="keywordtype">int</span> window,  cpl_table* qclog)</div>
-<div class="line"><a name="l00207"></a><span class="lineno">  207</span> {</div>
-<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     cpl_table *linetable = NULL;       <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
-<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     <span class="keywordtype">int</span> nx, ny, norders;               <span class="comment">/* Dimensions of raw image, number of orders */</span></div>
-<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     <span class="keywordtype">double</span> threshold_low;              <span class="comment">/* Threshold limits used for binary search */</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     <span class="keywordtype">double</span> threshold_high;</div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     <span class="keywordtype">double</span> threshold = 0;             <span class="comment">/* Current threshold */</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     <span class="keywordtype">int</span> lines_in_table;               <span class="comment">/* Number of lines in line table */</span></div>
-<div class="line"><a name="l00215"></a><span class="lineno">  215</span>     <span class="keywordtype">int</span> lines_detected;               <span class="comment">/* Number of lines actually found */</span></div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span>     <span class="keywordtype">bool</span> max_thresh_found = <span class="keyword">false</span>;    <span class="comment">/* Is 'threshold_high' large enough? */</span></div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>   </div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> </div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( spectrum        != NULL, <span class="stringliteral">"Null input spectrum"</span>);</div>
-<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( order_locations != NULL, <span class="stringliteral">"Null polynomial"</span>);</div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( arcframe        != NULL, <span class="stringliteral">"Null raw image"</span>);</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     <span class="keywordflow">if</span> (flat_fielded) {</div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span>         assure( cpl_image_get_type(spectrum) == CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span>                 CPL_ERROR_TYPE_MISMATCH,</div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span>                 <span class="stringliteral">"Spectrum image type is %s, must be double"</span>,</div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span>                 <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(spectrum)));</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     }</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     </div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( nx      = cpl_image_get_size_x(spectrum),</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>         norders = cpl_image_get_size_y(spectrum)), <span class="stringliteral">"Error reading input spectrum"</span>);</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( ny      = cpl_image_get_size_y(arcframe), <span class="stringliteral">"Error reading input image"</span>);</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span>     assure(nx == cpl_image_get_size_x(arcframe), CPL_ERROR_INCOMPATIBLE_INPUT, </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span>        <span class="stringliteral">"Spectrum and image widths are different (%d and %"</span> CPL_SIZE_FORMAT <span class="stringliteral">")"</span>,</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span>        nx, cpl_image_get_size_x(arcframe));</div>
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     </div>
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     assure( MINLINES <= MAXLINES, CPL_ERROR_ILLEGAL_INPUT, </div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>         <span class="stringliteral">"minlines=%d maxlines=%d"</span>, MINLINES, MAXLINES );</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     </div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <span class="comment">/* Initialize result line table */</span></div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( linetable = cpl_table_new(MAXLINES),</div>
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>         cpl_table_new_column(linetable, <span class="stringliteral">"X"</span>     , CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         cpl_table_new_column(linetable, <span class="stringliteral">"dX"</span>    , CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         cpl_table_new_column(linetable, <span class="stringliteral">"Xwidth"</span>, CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         cpl_table_new_column(linetable, <span class="stringliteral">"Y"</span>     , CPL_TYPE_INT),</div>
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span>         cpl_table_new_column(linetable, <span class="stringliteral">"Peak"</span>  , CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>         cpl_table_new_column(linetable, <span class="stringliteral">"Background"</span> , CPL_TYPE_DOUBLE),</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span>         cpl_table_new_column(linetable, <span class="stringliteral">"Slope"</span> , CPL_TYPE_DOUBLE)),</div>
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span>       <span class="stringliteral">"Could not create line table"</span>);</div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span>     </div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span>     <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Searching for emission lines"</span>);</div>
-<div class="line"><a name="l00252"></a><span class="lineno">  252</span> </div>
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     threshold_low  = 0.0;</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> </div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     <span class="comment">/* This start (guess) value is doubled until too few lines are detected */</span></div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <span class="keywordflow">if</span> (flat_fielded) {</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>         threshold_high = 10.0; <span class="comment">/* dimensionless, number of stdevs above continuum */</span></div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     }</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         threshold_high = cpl_image_get_mean(spectrum);</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>         assure( threshold_high > 0, CPL_ERROR_ILLEGAL_INPUT,</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>                 <span class="stringliteral">"Spectrum median flux is %e. Must be positive"</span>,</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>                 cpl_image_get_median(spectrum));</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     }</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     </div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     max_thresh_found = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     <span class="comment">/* Detect lines and adjust threshold</span></div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span> <span class="comment">       until MINLINES <= lines_detected <= MAXLINES */</span></div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>     lines_detected = 0;</div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span> </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     <span class="keywordtype">char</span> qc_key[40];</div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>  </div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     <span class="keywordtype">int</span> kk=0;</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     <span class="keywordflow">while</span>( (lines_detected < MINLINES || MAXLINES < lines_detected) && </div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         fabs(threshold_low - threshold_high) > DBL_EPSILON )</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     {</div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>        kk++;</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>         threshold = (threshold_low + threshold_high)/2.0;</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span> </div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__wavecal.html#gabf8091bf00a26cfe084f73ef3cb80a29" title="Find emission lines above a certain threshold.">detect_lines</a>(spectrum, noise, spectrum_header,</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span>                                 flat_fielded,</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span>                 RANGE, threshold, CENTERING_METHOD,</div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span>                                 bin_disp,</div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span>                 order_locations,</div>
-<div class="line"><a name="l00288"></a><span class="lineno">  288</span>                 NULL,</div>
-<div class="line"><a name="l00289"></a><span class="lineno">  289</span>                 linetable,</div>
-<div class="line"><a name="l00290"></a><span class="lineno">  290</span>                 &lines_detected,</div>
-<div class="line"><a name="l00291"></a><span class="lineno">  291</span>                 &lines_in_table),</div>
-<div class="line"><a name="l00292"></a><span class="lineno">  292</span>            <span class="stringliteral">"Could not search for emission lines"</span>);</div>
-<div class="line"><a name="l00293"></a><span class="lineno">  293</span>         </div>
-<div class="line"><a name="l00294"></a><span class="lineno">  294</span>         <span class="comment">/* Update threshold */</span></div>
-<div class="line"><a name="l00295"></a><span class="lineno">  295</span>         <span class="comment">/* 'threshold_high' is doubled until the threshold is too high.</span></div>
-<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="comment">           Then a binary search is performed. */</span></div>
-<div class="line"><a name="l00297"></a><span class="lineno">  297</span>         <span class="keywordflow">if</span> (lines_detected < MINLINES)</div>
-<div class="line"><a name="l00298"></a><span class="lineno">  298</span>         {</div>
-<div class="line"><a name="l00299"></a><span class="lineno">  299</span>             max_thresh_found = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00300"></a><span class="lineno">  300</span>             threshold_high = threshold;</div>
-<div class="line"><a name="l00301"></a><span class="lineno">  301</span>         }</div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (MAXLINES < lines_detected) </div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span>         {</div>
-<div class="line"><a name="l00304"></a><span class="lineno">  304</span>             <span class="keywordflow">if</span> (!max_thresh_found)</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span>             {</div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>                 threshold_high *= 2;</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>             }</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span>             <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>             {                </div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>                 threshold_low = threshold;</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>             }</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span>         }</div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>         sprintf(qc_key,<span class="stringliteral">"QC TRACE%d WIN%d NLINDET%d"</span>,trace,window,kk);</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"ThAr lamp on trace %d window %d detected lines %d"</span>,</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>                  trace,window,lines_detected);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span>         ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,qc_key,lines_detected,</div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                                         <span class="stringliteral">"ThAr lamp detected lines"</span>,<span class="stringliteral">"%d"</span>));</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span> </div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span> </div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span> </div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     } <span class="comment">/* end while loop */</span></div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span> </div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     sprintf(qc_key,<span class="stringliteral">"QC TRACE%d WIN%d NLINDET NITERS"</span>,trace,window);</div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     ck0_nomsg(<a class="code" href="group__uves__qclog.html#ga46dcd316a20220290a5e6f4c8217fd16" title="Add integer key to QC-LOG table.">uves_qclog_add_int</a>(qclog,qc_key,kk,<span class="stringliteral">"Number of iterations"</span>,<span class="stringliteral">"%d"</span>) );</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>     assure( MINLINES <= lines_detected && lines_detected <= MAXLINES, </div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>         CPL_ERROR_CONTINUE,</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>         <span class="stringliteral">"Could not detect between %d and %d lines. Try to increase search range"</span>,</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>         MINLINES, MAXLINES);</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     </div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <span class="comment">/* Draw detections on input image  */</span></div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( <a class="code" href="group__uves__wavecal.html#gabf8091bf00a26cfe084f73ef3cb80a29" title="Find emission lines above a certain threshold.">detect_lines</a>(spectrum, noise, spectrum_header,</div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>                         flat_fielded,</div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>             RANGE, threshold, CENTERING_METHOD,</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>                         bin_disp,</div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>             order_locations,</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>             arcframe,</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>             linetable,</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span>             &lines_detected,</div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span>             &lines_in_table),</div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>        <span class="stringliteral">"Could not search for emission lines"</span>);</div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span>     </div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span>     <span class="comment">/* Remove the last part of the line table (garbage) */</span></div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_set_size(linetable, lines_in_table), </div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>        <span class="stringliteral">"Could not resize line table"</span>);</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     </div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     uves_sort_table_1(linetable, <span class="stringliteral">"X"</span>, <span class="keyword">false</span>);</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     </div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span>   cleanup:</div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="preprocessor">#if 0 </span><span class="comment">/* if flat-fielded */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span> <span class="preprocessor"></span>    uves_free_image(&temp);</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> <span class="preprocessor"></span>    <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     {</div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>         uves_free_table(&linetable);</div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span>     }</div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span>     {</div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span>         <span class="comment">/* Returned is... */</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_get_ncol(linetable) == 7, <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span>              cpl_table_get_ncol(linetable));</div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"X"</span>     ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"dX"</span>    ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Xwidth"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Y"</span>     ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Peak"</span>  ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Background"</span> ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Slope"</span> ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>         </div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     }</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span>     <span class="keywordflow">return</span> linetable;</div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> }</div>
-<div class="line"><a name="l00373"></a><span class="lineno">  373</span> </div>
-<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00426"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#gabf8091bf00a26cfe084f73ef3cb80a29">  426</a></span> <span class="keyword">static</span> cpl_error_code</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <a class="code" href="group__uves__wavecal.html#gabf8091bf00a26cfe084f73ef3cb80a29" title="Find emission lines above a certain threshold.">detect_lines</a>(<span class="keyword">const</span> cpl_image *spectrum, <span class="keyword">const</span> cpl_image *noise, </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>          <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *spectrum_header, </div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>              <span class="keywordtype">bool</span> flat_fielded,</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>          <span class="keywordtype">int</span> RANGE, <span class="keywordtype">double</span> THRESHOLD, centering_method CENTERING_METHOD, </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>              <span class="keywordtype">int</span> bin_disp,</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>          <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, cpl_image *arcframe, </div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>          cpl_table *linetable, </div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>          <span class="keywordtype">int</span> *ndetected, <span class="keywordtype">int</span> *nrows)</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span> {</div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     <span class="keywordtype">int</span> norders;      <span class="comment">/* Number of orders */</span></div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>     <span class="keywordtype">int</span> minorder;     <span class="comment">/* Relative order number of first row in spectrum image */</span></div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     <span class="keywordtype">int</span> MAXLINES;     <span class="comment">/* Number of rows in line table (max no. of </span></div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="comment">             lines to search for) */</span></div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     <span class="keywordtype">int</span> nx;           <span class="comment">/* Width of spectrum (and raw image) */</span></div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>     <span class="keywordtype">int</span> x, order;     <span class="comment">/* 'order' always counts from 1 */</span></div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *spectrum_data;</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *noise_data;</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span> </div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( spectrum        != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( noise           != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( spectrum_header != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>     nx      = cpl_image_get_size_x(spectrum);</div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     norders = cpl_image_get_size_y(spectrum);</div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>     </div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>     <span class="comment">/* For efficiency reasons, get direct pointer to buffer,</span></div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span> <span class="comment">       support only CPL_TYPE_DOUBLE */</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     assure( cpl_image_get_type(spectrum) == CPL_TYPE_DOUBLE,</div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>         CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>         <span class="stringliteral">"Image type must be double. It is %s"</span>, </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>         <a class="code" href="group__uves__dump.html#ga55b54db59732e986ca4e9c93cc6af69d" title="Convert a CPL type to a string.">uves_tostring_cpl_type</a>(cpl_image_get_type(spectrum)));</div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span> </div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>     spectrum_data = cpl_image_get_data_double_const(spectrum);</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>     noise_data    = cpl_image_get_data_double_const(noise);</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span> </div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( RANGE > 0, <span class="stringliteral">"%d"</span>, RANGE);</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span> </div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     <span class="keywordflow">if</span> (arcframe != NULL)</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>     {</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( order_locations != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( nx == cpl_image_get_size_x(arcframe), </div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>              <span class="stringliteral">"%d %"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>, nx, cpl_image_get_size_x(arcframe));</div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>     }</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     </div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( linetable != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     MAXLINES = cpl_table_get_nrow(linetable);</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_get_ncol(linetable) == 7, <span class="stringliteral">"%"</span> CPL_SIZE_FORMAT <span class="stringliteral">""</span>,</div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>          cpl_table_get_ncol(linetable));</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"X"</span>     ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"dX"</span>    ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Xwidth"</span>), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Y"</span>     ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Peak"</span>  ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Background"</span> ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(linetable, <span class="stringliteral">"Slope"</span> ), <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     </div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     assure( THRESHOLD > 0, CPL_ERROR_ILLEGAL_INPUT, <span class="stringliteral">"Illegal threshold: %e"</span>,</div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>         THRESHOLD);</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span> </div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( minorder = <a class="code" href="group__uves__pfits.html#gaefba8b3c1a2fbe5c0f42eaeaaafaf455" title="Find out the crval2.">uves_pfits_get_crval2</a>(spectrum_header), </div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>        <span class="stringliteral">"Error reading order number of first row"</span>);</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span> </div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>     *ndetected = 0;    <span class="comment">/* Counts the number of lines detected so far. */</span></div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     *nrows = 0;        <span class="comment">/* A pointer to the first unused row in the</span></div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="comment">                  line table */</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>     </div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     <span class="keywordflow">for</span> (order = minorder; order < minorder + norders; order++) {</div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>         <span class="keywordtype">int</span> spectrum_row = order - minorder + 1;</div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>         <span class="keywordtype">int</span> ndetected_order = 0;</div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>         <span class="keywordflow">for</span> (x = 1; x <= nx; x++) {</div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>         <span class="keywordtype">double</span> flux, dflux;</div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>         <span class="keywordtype">int</span> peak_width = 0;</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>         <span class="keywordtype">int</span> xlo, xhi;</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span>         <span class="keywordtype">double</span> local_median;</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span>         </div>
-<div class="line"><a name="l00503"></a><span class="lineno">  503</span>         <span class="comment">/* Check if there is a peak and determine its position and width */</span></div>
-<div class="line"><a name="l00504"></a><span class="lineno">  504</span>         <span class="comment">// flux = cpl_image_get(spectrum, x, spectrum_row, &pis_rejected);</span></div>
-<div class="line"><a name="l00505"></a><span class="lineno">  505</span>         flux  = spectrum_data[(x-1) + (spectrum_row - 1) * nx];</div>
-<div class="line"><a name="l00506"></a><span class="lineno">  506</span>                 dflux = noise_data   [(x-1) + (spectrum_row - 1) * nx];</div>
-<div class="line"><a name="l00507"></a><span class="lineno">  507</span>         </div>
-<div class="line"><a name="l00508"></a><span class="lineno">  508</span>         xlo = uves_max_int(x - RANGE, 1);</div>
-<div class="line"><a name="l00509"></a><span class="lineno">  509</span>         xhi = uves_min_int(x + RANGE, nx);</div>
-<div class="line"><a name="l00510"></a><span class="lineno">  510</span>         </div>
-<div class="line"><a name="l00511"></a><span class="lineno">  511</span>         local_median = cpl_image_get_median_window(</div>
-<div class="line"><a name="l00512"></a><span class="lineno">  512</span>             spectrum,</div>
-<div class="line"><a name="l00513"></a><span class="lineno">  513</span>             uves_max_int(xlo, 1 ), spectrum_row,</div>
-<div class="line"><a name="l00514"></a><span class="lineno">  514</span>             uves_min_int(xhi, nx), spectrum_row);</div>
-<div class="line"><a name="l00515"></a><span class="lineno">  515</span>         </div>
-<div class="line"><a name="l00516"></a><span class="lineno">  516</span>         <span class="keywordflow">while</span>(x <= nx && </div>
-<div class="line"><a name="l00517"></a><span class="lineno">  517</span>                       (</div>
-<div class="line"><a name="l00518"></a><span class="lineno">  518</span>                           (!flat_fielded && flux - local_median > THRESHOLD) </div>
-<div class="line"><a name="l00519"></a><span class="lineno">  519</span>                           ||</div>
-<div class="line"><a name="l00520"></a><span class="lineno">  520</span>                           (flat_fielded && (flux - local_median) > THRESHOLD * dflux)</div>
-<div class="line"><a name="l00521"></a><span class="lineno">  521</span>                           )</div>
-<div class="line"><a name="l00522"></a><span class="lineno">  522</span>                     ) {</div>
-<div class="line"><a name="l00523"></a><span class="lineno">  523</span> <span class="preprocessor">#if WANT_BIG_LOGFILE</span></div>
-<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"threshold = %f\tx = %d\tflux = %f\tmedian = %f"</span>, </div>
-<div class="line"><a name="l00525"></a><span class="lineno">  525</span>                    THRESHOLD, x, flux, local_median);</div>
-<div class="line"><a name="l00526"></a><span class="lineno">  526</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00527"></a><span class="lineno">  527</span> <span class="preprocessor"></span>            </div>
-<div class="line"><a name="l00528"></a><span class="lineno">  528</span>             x += 1;</div>
-<div class="line"><a name="l00529"></a><span class="lineno">  529</span>             peak_width += 1;</div>
-<div class="line"><a name="l00530"></a><span class="lineno">  530</span>             </div>
-<div class="line"><a name="l00531"></a><span class="lineno">  531</span>             <span class="keywordflow">if</span> (x <= nx) {</div>
-<div class="line"><a name="l00532"></a><span class="lineno">  532</span>             <span class="comment">/* flux =</span></div>
-<div class="line"><a name="l00533"></a><span class="lineno">  533</span> <span class="comment">               cpl_image_get(spectrum, x,</span></div>
-<div class="line"><a name="l00534"></a><span class="lineno">  534</span> <span class="comment">               spectrum_row, &pis_rejected);</span></div>
-<div class="line"><a name="l00535"></a><span class="lineno">  535</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00536"></a><span class="lineno">  536</span>             flux = spectrum_data[(x-1) + (spectrum_row - 1) * nx];</div>
-<div class="line"><a name="l00537"></a><span class="lineno">  537</span>             xlo = uves_max_int(x - RANGE, 1);</div>
-<div class="line"><a name="l00538"></a><span class="lineno">  538</span>             xhi = uves_min_int(x + RANGE, nx);</div>
-<div class="line"><a name="l00539"></a><span class="lineno">  539</span>             local_median = cpl_image_get_median_window(</div>
-<div class="line"><a name="l00540"></a><span class="lineno">  540</span>                 spectrum,</div>
-<div class="line"><a name="l00541"></a><span class="lineno">  541</span>                 uves_max_int(xlo, 1 ), spectrum_row,</div>
-<div class="line"><a name="l00542"></a><span class="lineno">  542</span>                 uves_min_int(xhi, nx), spectrum_row);</div>
-<div class="line"><a name="l00543"></a><span class="lineno">  543</span>             }</div>
-<div class="line"><a name="l00544"></a><span class="lineno">  544</span>         }</div>
-<div class="line"><a name="l00545"></a><span class="lineno">  545</span>         <span class="comment">/* x is now first position that is below (median + threshold) */</span></div>
-<div class="line"><a name="l00546"></a><span class="lineno">  546</span>         </div>
-<div class="line"><a name="l00547"></a><span class="lineno">  547</span>         <span class="keywordflow">if</span> (peak_width > 0) {</div>
-<div class="line"><a name="l00548"></a><span class="lineno">  548</span>             <span class="keywordtype">double</span> x_peak, dx = 0, sigma, slope, back;</div>
-<div class="line"><a name="l00549"></a><span class="lineno">  549</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( x_peak = <a class="code" href="group__uves__wavecal.html#ga7b49db5bd97eb1228d45a6d37190cef6" title="Refine the center position of an initially detected emission line.">xcenter</a>(spectrum, noise,</div>
-<div class="line"><a name="l00550"></a><span class="lineno">  550</span>                         uves_max_int(1, x - peak_width), </div>
-<div class="line"><a name="l00551"></a><span class="lineno">  551</span>                         <span class="comment">/* First position above threshold */</span> </div>
-<div class="line"><a name="l00552"></a><span class="lineno">  552</span>                         uves_max_int(1, x - 1),          </div>
-<div class="line"><a name="l00553"></a><span class="lineno">  553</span>                         <span class="comment">/* Last  position above threshold */</span> </div>
-<div class="line"><a name="l00554"></a><span class="lineno">  554</span>                         spectrum_row,</div>
-<div class="line"><a name="l00555"></a><span class="lineno">  555</span>                         CENTERING_METHOD,</div>
-<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                                             bin_disp,</div>
-<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                         &sigma,</div>
-<div class="line"><a name="l00558"></a><span class="lineno">  558</span>                         &flux,</div>
-<div class="line"><a name="l00559"></a><span class="lineno">  559</span>                         &dx,</div>
-<div class="line"><a name="l00560"></a><span class="lineno">  560</span>                                             &slope,</div>
-<div class="line"><a name="l00561"></a><span class="lineno">  561</span>                                             &back),</div>
-<div class="line"><a name="l00562"></a><span class="lineno">  562</span>                <span class="stringliteral">"Could not locate peak center"</span>);</div>
-<div class="line"><a name="l00563"></a><span class="lineno">  563</span>             </div>
-<div class="line"><a name="l00564"></a><span class="lineno">  564</span> <span class="preprocessor">#if WANT_BIG_LOGFILE</span></div>
-<div class="line"><a name="l00565"></a><span class="lineno">  565</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"(Order, x, flux) = (%d, %f, %f)"</span>, </div>
-<div class="line"><a name="l00566"></a><span class="lineno">  566</span>                    order, x_peak, flux);</div>
-<div class="line"><a name="l00567"></a><span class="lineno">  567</span> <span class="preprocessor">#endif        </span></div>
-<div class="line"><a name="l00568"></a><span class="lineno">  568</span> <span class="preprocessor"></span>            <span class="comment">/* Add line to line table, but only if less</span></div>
-<div class="line"><a name="l00569"></a><span class="lineno">  569</span> <span class="comment">               lines that MAXLINES have been detected */</span></div>
-<div class="line"><a name="l00570"></a><span class="lineno">  570</span>             <span class="keywordflow">if</span> (*nrows < MAXLINES) {</div>
-<div class="line"><a name="l00571"></a><span class="lineno">  571</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( cpl_table_set_int   (linetable, <span class="stringliteral">"Y"</span>     , *nrows, order),</div>
-<div class="line"><a name="l00572"></a><span class="lineno">  572</span>                 cpl_table_set_double(linetable, <span class="stringliteral">"X"</span>     , *nrows, x_peak),</div>
-<div class="line"><a name="l00573"></a><span class="lineno">  573</span>                 cpl_table_set_double(linetable, <span class="stringliteral">"dX"</span>    , *nrows, dx),</div>
-<div class="line"><a name="l00574"></a><span class="lineno">  574</span>                 cpl_table_set_double(linetable, <span class="stringliteral">"Xwidth"</span>, *nrows, sigma),</div>
-<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                 cpl_table_set_double(linetable, <span class="stringliteral">"Peak"</span>  , *nrows, flux),</div>
-<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                 cpl_table_set_double(linetable, <span class="stringliteral">"Background"</span> , *nrows, back),</div>
-<div class="line"><a name="l00577"></a><span class="lineno">  577</span>                 cpl_table_set_double(linetable, <span class="stringliteral">"Slope"</span> , *nrows, slope)),</div>
-<div class="line"><a name="l00578"></a><span class="lineno">  578</span>                   <span class="stringliteral">"Could not update line table row %d"</span>, *nrows);</div>
-<div class="line"><a name="l00579"></a><span class="lineno">  579</span>             (*nrows)++;</div>
-<div class="line"><a name="l00580"></a><span class="lineno">  580</span>             }</div>
-<div class="line"><a name="l00581"></a><span class="lineno">  581</span>             </div>
-<div class="line"><a name="l00582"></a><span class="lineno">  582</span>             ndetected_order++;</div>
-<div class="line"><a name="l00583"></a><span class="lineno">  583</span>             (*ndetected)++;</div>
-<div class="line"><a name="l00584"></a><span class="lineno">  584</span>             </div>
-<div class="line"><a name="l00585"></a><span class="lineno">  585</span>             <span class="keywordflow">if</span> (arcframe != NULL) {</div>
-<div class="line"><a name="l00586"></a><span class="lineno">  586</span>             <span class="keywordtype">int</span> x1;</div>
-<div class="line"><a name="l00587"></a><span class="lineno">  587</span>             <span class="keywordtype">int</span> pen = 0;  <span class="comment">/* Value to write */</span></div>
-<div class="line"><a name="l00588"></a><span class="lineno">  588</span>             <span class="keywordtype">int</span> ny = cpl_image_get_size_y(arcframe);</div>
-<div class="line"><a name="l00589"></a><span class="lineno">  589</span>             <span class="comment">/* We already know 'nx' from the width of the spectrum image */</span></div>
-<div class="line"><a name="l00590"></a><span class="lineno">  590</span>             </div>
-<div class="line"><a name="l00591"></a><span class="lineno">  591</span>             <span class="keywordflow">for</span> (x1  = uves_max_int(</div>
-<div class="line"><a name="l00592"></a><span class="lineno">  592</span>                  1 , uves_round_double(</div>
-<div class="line"><a name="l00593"></a><span class="lineno">  593</span>                      x_peak - peak_width - 0*RANGE/2.0)); </div>
-<div class="line"><a name="l00594"></a><span class="lineno">  594</span>                  x1 <= uves_min_int(</div>
-<div class="line"><a name="l00595"></a><span class="lineno">  595</span>                  nx, uves_round_double(</div>
-<div class="line"><a name="l00596"></a><span class="lineno">  596</span>                      x_peak + peak_width + 0*RANGE/2.0)); </div>
-<div class="line"><a name="l00597"></a><span class="lineno">  597</span>                  x1++) {</div>
-<div class="line"><a name="l00598"></a><span class="lineno">  598</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(</div>
-<div class="line"><a name="l00599"></a><span class="lineno">  599</span>                        arcframe,</div>
-<div class="line"><a name="l00600"></a><span class="lineno">  600</span>                        x1,</div>
-<div class="line"><a name="l00601"></a><span class="lineno">  601</span>                        uves_min_int(</div>
-<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                        ny, </div>
-<div class="line"><a name="l00603"></a><span class="lineno">  603</span>                        uves_max_int(</div>
-<div class="line"><a name="l00604"></a><span class="lineno">  604</span>                            1, </div>
-<div class="line"><a name="l00605"></a><span class="lineno">  605</span>                            (<span class="keywordtype">int</span>) <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00606"></a><span class="lineno">  606</span>                            order_locations, x1, order)     </div>
-<div class="line"><a name="l00607"></a><span class="lineno">  607</span>                            )), </div>
-<div class="line"><a name="l00608"></a><span class="lineno">  608</span>                        pen),</div>
-<div class="line"><a name="l00609"></a><span class="lineno">  609</span>                    <span class="stringliteral">"Error writing input image"</span>);</div>
-<div class="line"><a name="l00610"></a><span class="lineno">  610</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(</div>
-<div class="line"><a name="l00611"></a><span class="lineno">  611</span>                        arcframe,</div>
-<div class="line"><a name="l00612"></a><span class="lineno">  612</span>                        uves_min_int(</div>
-<div class="line"><a name="l00613"></a><span class="lineno">  613</span>                        nx,</div>
-<div class="line"><a name="l00614"></a><span class="lineno">  614</span>                        uves_max_int((<span class="keywordtype">int</span>) x_peak, 1)),</div>
-<div class="line"><a name="l00615"></a><span class="lineno">  615</span>                        uves_min_int(</div>
-<div class="line"><a name="l00616"></a><span class="lineno">  616</span>                        ny, </div>
-<div class="line"><a name="l00617"></a><span class="lineno">  617</span>                        uves_max_int(</div>
-<div class="line"><a name="l00618"></a><span class="lineno">  618</span>                            1,</div>
-<div class="line"><a name="l00619"></a><span class="lineno">  619</span>                            (<span class="keywordtype">int</span>) <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(</div>
-<div class="line"><a name="l00620"></a><span class="lineno">  620</span>                            order_locations, x1, order)</div>
-<div class="line"><a name="l00621"></a><span class="lineno">  621</span>                            - 10)), </div>
-<div class="line"><a name="l00622"></a><span class="lineno">  622</span>                        pen),</div>
-<div class="line"><a name="l00623"></a><span class="lineno">  623</span>                    <span class="stringliteral">"Error writing input image"</span>);</div>
-<div class="line"><a name="l00624"></a><span class="lineno">  624</span>             }</div>
-<div class="line"><a name="l00625"></a><span class="lineno">  625</span>             }</div>
-<div class="line"><a name="l00626"></a><span class="lineno">  626</span>         } <span class="comment">/* line found */</span></div>
-<div class="line"><a name="l00627"></a><span class="lineno">  627</span>         }<span class="comment">/* for x */</span></div>
-<div class="line"><a name="l00628"></a><span class="lineno">  628</span>         <span class="keywordflow">if</span> (arcframe != NULL) <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Order #%d: %d lines detected"</span>, </div>
-<div class="line"><a name="l00629"></a><span class="lineno">  629</span>                          order, ndetected_order);</div>
-<div class="line"><a name="l00630"></a><span class="lineno">  630</span>     }<span class="comment">/* for order */</span></div>
-<div class="line"><a name="l00631"></a><span class="lineno">  631</span>     </div>
-<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     <span class="comment">/* Remove doublets */</span></div>
-<div class="line"><a name="l00633"></a><span class="lineno">  633</span>     {</div>
-<div class="line"><a name="l00634"></a><span class="lineno">  634</span>     <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00635"></a><span class="lineno">  635</span>     <span class="keywordtype">int</span> doublets_removed = 0;</div>
-<div class="line"><a name="l00636"></a><span class="lineno">  636</span>     <span class="keywordflow">for</span> (i = 0; i+1 < *nrows; i++) {</div>
-<div class="line"><a name="l00637"></a><span class="lineno">  637</span>         <span class="keywordflow">if</span> (fabs(cpl_table_get_double(linetable, <span class="stringliteral">"X"</span>, i  , NULL) - </div>
-<div class="line"><a name="l00638"></a><span class="lineno">  638</span>              cpl_table_get_double(linetable, <span class="stringliteral">"X"</span>, i+1, NULL))  < 2.0) </div>
-<div class="line"><a name="l00639"></a><span class="lineno">  639</span>         {</div>
-<div class="line"><a name="l00640"></a><span class="lineno">  640</span>             <span class="comment">/* If a doublet was found, delete it. </span></div>
-<div class="line"><a name="l00641"></a><span class="lineno">  641</span> <span class="comment">               Make sure the table stays the same size</span></div>
-<div class="line"><a name="l00642"></a><span class="lineno">  642</span> <span class="comment">               by adding two rows at the end. */</span></div>
-<div class="line"><a name="l00643"></a><span class="lineno">  643</span> </div>
-<div class="line"><a name="l00644"></a><span class="lineno">  644</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_erase_window(linetable, i, 2),</div>
-<div class="line"><a name="l00645"></a><span class="lineno">  645</span>                <span class="stringliteral">"Error removing rows"</span>);</div>
-<div class="line"><a name="l00646"></a><span class="lineno">  646</span>             *nrows -= 2;</div>
-<div class="line"><a name="l00647"></a><span class="lineno">  647</span>             *ndetected -= 2;</div>
-<div class="line"><a name="l00648"></a><span class="lineno">  648</span>             </div>
-<div class="line"><a name="l00649"></a><span class="lineno">  649</span>             <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_table_set_size(linetable, </div>
-<div class="line"><a name="l00650"></a><span class="lineno">  650</span>                           cpl_table_get_nrow(linetable) + 2),</div>
-<div class="line"><a name="l00651"></a><span class="lineno">  651</span>                <span class="stringliteral">"Could not resize line table"</span>);</div>
-<div class="line"><a name="l00652"></a><span class="lineno">  652</span>             </div>
-<div class="line"><a name="l00653"></a><span class="lineno">  653</span>             doublets_removed++;</div>
-<div class="line"><a name="l00654"></a><span class="lineno">  654</span>         }</div>
-<div class="line"><a name="l00655"></a><span class="lineno">  655</span>     }</div>
-<div class="line"><a name="l00656"></a><span class="lineno">  656</span>     <span class="keywordflow">if</span> (doublets_removed > 0)</div>
-<div class="line"><a name="l00657"></a><span class="lineno">  657</span>         {</div>
-<div class="line"><a name="l00658"></a><span class="lineno">  658</span>         <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"%d doublet%s removed"</span>, </div>
-<div class="line"><a name="l00659"></a><span class="lineno">  659</span>                    doublets_removed, doublets_removed > 1 ? <span class="stringliteral">"s"</span> : <span class="stringliteral">""</span>);</div>
-<div class="line"><a name="l00660"></a><span class="lineno">  660</span>         }</div>
-<div class="line"><a name="l00661"></a><span class="lineno">  661</span>     }</div>
-<div class="line"><a name="l00662"></a><span class="lineno">  662</span>     </div>
-<div class="line"><a name="l00663"></a><span class="lineno">  663</span>             <a class="code" href="group__uves__msg.html#gaf23be4df15065d8667b83973c17eb7cb" title="Print a message on 'info' or 'debug' level.">uves_msg</a>(<span class="stringliteral">"Range = %d pixels; threshold = %.2f %s; %d lines detected"</span>, </div>
-<div class="line"><a name="l00664"></a><span class="lineno">  664</span>          RANGE, THRESHOLD, flat_fielded ? <span class="stringliteral">"stdev"</span> : <span class="stringliteral">"ADU"</span>, *ndetected);</div>
-<div class="line"><a name="l00665"></a><span class="lineno">  665</span>     </div>
-<div class="line"><a name="l00666"></a><span class="lineno">  666</span>   cleanup:    </div>
-<div class="line"><a name="l00667"></a><span class="lineno">  667</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00668"></a><span class="lineno">  668</span> }</div>
-<div class="line"><a name="l00669"></a><span class="lineno">  669</span> </div>
-<div class="line"><a name="l00670"></a><span class="lineno">  670</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00695"></a><span class="lineno">  695</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00696"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#ga7b49db5bd97eb1228d45a6d37190cef6">  696</a></span> <span class="keyword">static</span> <span class="keywordtype">double</span></div>
-<div class="line"><a name="l00697"></a><span class="lineno">  697</span> <a class="code" href="group__uves__wavecal.html#ga7b49db5bd97eb1228d45a6d37190cef6" title="Refine the center position of an initially detected emission line.">xcenter</a>(<span class="keyword">const</span> cpl_image *image, <span class="keyword">const</span> cpl_image *noise, <span class="keywordtype">int</span> xlo, <span class="keywordtype">int</span> xhi, <span class="keywordtype">int</span> row,</div>
-<div class="line"><a name="l00698"></a><span class="lineno">  698</span>     centering_method CENTERING_METHOD, <span class="keywordtype">int</span> bin_disp,</div>
-<div class="line"><a name="l00699"></a><span class="lineno">  699</span>     <span class="keywordtype">double</span> *sigma, <span class="keywordtype">double</span> *intensity, <span class="keywordtype">double</span> *dx0, <span class="keywordtype">double</span> *slope, <span class="keywordtype">double</span> *background)</div>
-<div class="line"><a name="l00700"></a><span class="lineno">  700</span> {</div>
-<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="keywordtype">double</span> x0;           <span class="comment">/* Result */</span></div>
-<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     cpl_matrix *covariance = NULL;</div>
-<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     <span class="keyword">const</span> <span class="keywordtype">double</span> *image_data;</div>
-<div class="line"><a name="l00704"></a><span class="lineno">  704</span>     <span class="keywordtype">bool</span> converged;</div>
-<div class="line"><a name="l00705"></a><span class="lineno">  705</span>     <span class="keywordtype">int</span> lo_r, hi_r;</div>
-<div class="line"><a name="l00706"></a><span class="lineno">  706</span>     </div>
-<div class="line"><a name="l00707"></a><span class="lineno">  707</span>     <span class="keywordtype">int</span> nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00708"></a><span class="lineno">  708</span> </div>
-<div class="line"><a name="l00709"></a><span class="lineno">  709</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>(cpl_image_get_type(image) == CPL_TYPE_DOUBLE, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00710"></a><span class="lineno">  710</span> </div>
-<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     image_data = cpl_image_get_data_double_const(image);</div>
-<div class="line"><a name="l00712"></a><span class="lineno">  712</span> </div>
-<div class="line"><a name="l00713"></a><span class="lineno">  713</span>     <span class="comment">/* Make sure fit window is 13-19 pixels</span></div>
-<div class="line"><a name="l00714"></a><span class="lineno">  714</span> <span class="comment">       (7-9 pixels for binned CCD) */</span></div>
-<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     lo_r = 6;</div>
-<div class="line"><a name="l00716"></a><span class="lineno">  716</span>     hi_r = 8;</div>
-<div class="line"><a name="l00717"></a><span class="lineno">  717</span>     <span class="keywordflow">if</span> (bin_disp >= 2) </div>
-<div class="line"><a name="l00718"></a><span class="lineno">  718</span>         {</div>
-<div class="line"><a name="l00719"></a><span class="lineno">  719</span>             lo_r = 4;</div>
-<div class="line"><a name="l00720"></a><span class="lineno">  720</span>             hi_r = 5;</div>
-<div class="line"><a name="l00721"></a><span class="lineno">  721</span>         }</div>
-<div class="line"><a name="l00722"></a><span class="lineno">  722</span> </div>
-<div class="line"><a name="l00723"></a><span class="lineno">  723</span>     {</div>
-<div class="line"><a name="l00724"></a><span class="lineno">  724</span>         <span class="keywordtype">int</span> xm = (xlo+xhi)/2;</div>
-<div class="line"><a name="l00725"></a><span class="lineno">  725</span> </div>
-<div class="line"><a name="l00726"></a><span class="lineno">  726</span>         xlo = uves_max_int(1, xm - lo_r);</div>
-<div class="line"><a name="l00727"></a><span class="lineno">  727</span>         xhi = uves_min_int(nx, xm + lo_r);</div>
-<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     }</div>
-<div class="line"><a name="l00729"></a><span class="lineno">  729</span> </div>
-<div class="line"><a name="l00730"></a><span class="lineno">  730</span>     <span class="comment">/* Increase fit window (up to 19 pixels) */</span></div>
-<div class="line"><a name="l00731"></a><span class="lineno">  731</span>     <span class="keywordflow">do</span> {</div>
-<div class="line"><a name="l00732"></a><span class="lineno">  732</span>         converged = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00733"></a><span class="lineno">  733</span>         <span class="keywordflow">if</span> (1 < xlo && 0 <</div>
-<div class="line"><a name="l00734"></a><span class="lineno">  734</span>             <span class="comment">//cpl_image_get(image, xlo - 1, row, &pis_rejected) &&</span></div>
-<div class="line"><a name="l00735"></a><span class="lineno">  735</span>             <span class="comment">//cpl_image_get(image, xlo - 1, row, &pis_rejected) <</span></div>
-<div class="line"><a name="l00736"></a><span class="lineno">  736</span>             <span class="comment">//cpl_image_get(image, xlo    , row, &pis_rejected) )</span></div>
-<div class="line"><a name="l00737"></a><span class="lineno">  737</span>             image_data[(xlo-1-1) + (row - 1) * nx] &&</div>
-<div class="line"><a name="l00738"></a><span class="lineno">  738</span>             image_data[(xlo-1-1) + (row - 1) * nx] <</div>
-<div class="line"><a name="l00739"></a><span class="lineno">  739</span>             image_data[(xlo  -1) + (row - 1) * nx] )</div>
-<div class="line"><a name="l00740"></a><span class="lineno">  740</span>             {</div>
-<div class="line"><a name="l00741"></a><span class="lineno">  741</span>                 converged = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00742"></a><span class="lineno">  742</span>                 xlo -= 1;</div>
-<div class="line"><a name="l00743"></a><span class="lineno">  743</span>             }</div>
-<div class="line"><a name="l00744"></a><span class="lineno">  744</span>         </div>
-<div class="line"><a name="l00745"></a><span class="lineno">  745</span>         <span class="keywordflow">if</span> (xhi < nx && 0 <</div>
-<div class="line"><a name="l00746"></a><span class="lineno">  746</span>             <span class="comment">//cpl_image_get(image, xhi + 1, row, &pis_rejected) && </span></div>
-<div class="line"><a name="l00747"></a><span class="lineno">  747</span>             <span class="comment">//cpl_image_get(image, xhi + 1, row, &pis_rejected) <</span></div>
-<div class="line"><a name="l00748"></a><span class="lineno">  748</span>             <span class="comment">//cpl_image_get(image, xhi    , row, &pis_rejected) )</span></div>
-<div class="line"><a name="l00749"></a><span class="lineno">  749</span>             image_data[(xhi+1-1) + (row - 1) * nx] &&</div>
-<div class="line"><a name="l00750"></a><span class="lineno">  750</span>             image_data[(xhi+1-1) + (row - 1) * nx] <</div>
-<div class="line"><a name="l00751"></a><span class="lineno">  751</span>             image_data[(xhi  -1) + (row - 1) * nx] )</div>
-<div class="line"><a name="l00752"></a><span class="lineno">  752</span>             {</div>
-<div class="line"><a name="l00753"></a><span class="lineno">  753</span>                 converged = <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00754"></a><span class="lineno">  754</span>                 xhi += 1;</div>
-<div class="line"><a name="l00755"></a><span class="lineno">  755</span>             }</div>
-<div class="line"><a name="l00756"></a><span class="lineno">  756</span> </div>
-<div class="line"><a name="l00757"></a><span class="lineno">  757</span>         <span class="keywordflow">if</span> ((xhi-xlo+1) >= hi_r) </div>
-<div class="line"><a name="l00758"></a><span class="lineno">  758</span>             {</div>
-<div class="line"><a name="l00759"></a><span class="lineno">  759</span>                 converged = <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00760"></a><span class="lineno">  760</span>             }</div>
-<div class="line"><a name="l00761"></a><span class="lineno">  761</span> </div>
-<div class="line"><a name="l00762"></a><span class="lineno">  762</span>     } <span class="keywordflow">while</span> (!converged);</div>
-<div class="line"><a name="l00763"></a><span class="lineno">  763</span> </div>
-<div class="line"><a name="l00764"></a><span class="lineno">  764</span>     <span class="comment">/* Get precise location */</span></div>
-<div class="line"><a name="l00765"></a><span class="lineno">  765</span>     <span class="keywordflow">if</span> (CENTERING_METHOD == CENTERING_GAUSSIAN)</div>
-<div class="line"><a name="l00766"></a><span class="lineno">  766</span>     {</div>
-<div class="line"><a name="l00767"></a><span class="lineno">  767</span> <span class="preprocessor">#if WEIGHTED_FIT</span></div>
-<div class="line"><a name="l00768"></a><span class="lineno">  768</span> <span class="preprocessor"></span>        uves_fit_1d_image(image, noise, NULL,</div>
-<div class="line"><a name="l00769"></a><span class="lineno">  769</span> #<span class="keywordflow">else</span> <span class="comment">/* Unweighted fit like MIDAS which gives larger sigma */</span></div>
-<div class="line"><a name="l00770"></a><span class="lineno">  770</span>         uves_fit_1d_image(image, NULL, NULL,</div>
-<div class="line"><a name="l00771"></a><span class="lineno">  771</span> #endif</div>
-<div class="line"><a name="l00772"></a><span class="lineno">  772</span>                   <span class="keyword">true</span>, <span class="keyword">false</span>, <span class="keyword">false</span>,</div>
-<div class="line"><a name="l00773"></a><span class="lineno">  773</span>                   xlo, xhi, row,</div>
-<div class="line"><a name="l00774"></a><span class="lineno">  774</span>                   &x0, sigma, intensity, background, slope,</div>
-<div class="line"><a name="l00775"></a><span class="lineno">  775</span> #<span class="keywordflow">if</span> WEIGHTED_FIT</div>
-<div class="line"><a name="l00776"></a><span class="lineno">  776</span>                   NULL, NULL, &covariance,</div>
-<div class="line"><a name="l00777"></a><span class="lineno">  777</span> #<span class="keywordflow">else</span></div>
-<div class="line"><a name="l00778"></a><span class="lineno">  778</span>                   NULL, NULL, NULL,</div>
-<div class="line"><a name="l00779"></a><span class="lineno">  779</span> #endif</div>
-<div class="line"><a name="l00780"></a><span class="lineno">  780</span> </div>
-<div class="line"><a name="l00781"></a><span class="lineno">  781</span> #<span class="keywordflow">if</span> FIT_SLOPE</div>
-<div class="line"><a name="l00782"></a><span class="lineno">  782</span>                               <a class="code" href="group__uves__utils.html#ga9f3e7e9d99f1b9785c335cc1a8ecb49f" title="Evaluate a gaussian with linear background.">uves_gauss_linear</a>, <a class="code" href="group__uves__utils.html#ga98837a7122178c9d18c99174bfd53d9b" title="Evaluate the derivatives of a gaussian with linear background.">uves_gauss_linear_derivative</a>, 5);</div>
-<div class="line"><a name="l00783"></a><span class="lineno">  783</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00784"></a><span class="lineno">  784</span> <span class="preprocessor"></span>                              <a class="code" href="group__uves__utils.html#gaeec991a9bd1a99f0141d9d2a9304f00c" title="Evaluate a gaussian.">uves_gauss</a>, <a class="code" href="group__uves__utils.html#ga6cd21b8becb2f077f455e47e35e0beea" title="Evaluate the derivatives of a gaussian.">uves_gauss_derivative</a>, 4);</div>
-<div class="line"><a name="l00785"></a><span class="lineno">  785</span>             *slope = 0;</div>
-<div class="line"><a name="l00786"></a><span class="lineno">  786</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00787"></a><span class="lineno">  787</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00788"></a><span class="lineno">  788</span>         <span class="comment">/* The fitting routine sometimes (i.e. regularly) fails</span></div>
-<div class="line"><a name="l00789"></a><span class="lineno">  789</span> <span class="comment">         * because of low statistics.</span></div>
-<div class="line"><a name="l00790"></a><span class="lineno">  790</span> <span class="comment">         * Recover from specific fitting errors */</span></div>
-<div class="line"><a name="l00791"></a><span class="lineno">  791</span>         <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00792"></a><span class="lineno">  792</span>         {</div>
-<div class="line"><a name="l00793"></a><span class="lineno">  793</span>             <span class="comment">/* Variance is guaranteed to be positive */</span></div>
-<div class="line"><a name="l00794"></a><span class="lineno">  794</span> <span class="preprocessor">#if WEIGHTED_FIT</span></div>
-<div class="line"><a name="l00795"></a><span class="lineno">  795</span> <span class="preprocessor"></span>            *dx0 = sqrt(cpl_matrix_get(covariance, 0, 0));</div>
-<div class="line"><a name="l00796"></a><span class="lineno">  796</span> <span class="preprocessor">#else</span></div>
-<div class="line"><a name="l00797"></a><span class="lineno">  797</span> <span class="preprocessor"></span>            *dx0 = *sigma / sqrt(*intensity);</div>
-<div class="line"><a name="l00798"></a><span class="lineno">  798</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00799"></a><span class="lineno">  799</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00800"></a><span class="lineno">  800</span> <span class="preprocessor">#if WANT_BIG_LOGFILE</span></div>
-<div class="line"><a name="l00801"></a><span class="lineno">  801</span> <span class="preprocessor"></span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Gaussian fit succeeded at (x, row, N) = (%f, %d, %d)"</span>,</div>
-<div class="line"><a name="l00802"></a><span class="lineno">  802</span>                     x0, row, xhi-xlo+1);</div>
-<div class="line"><a name="l00803"></a><span class="lineno">  803</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00804"></a><span class="lineno">  804</span> <span class="preprocessor"></span>        }</div>
-<div class="line"><a name="l00805"></a><span class="lineno">  805</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_CONTINUE)</div>
-<div class="line"><a name="l00806"></a><span class="lineno">  806</span>         {</div>
-<div class="line"><a name="l00807"></a><span class="lineno">  807</span>             <span class="comment">/* Fitting failed */</span></div>
-<div class="line"><a name="l00808"></a><span class="lineno">  808</span>             <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00809"></a><span class="lineno">  809</span> <span class="preprocessor">#if WANT_BIG_LOGFILE</span></div>
-<div class="line"><a name="l00810"></a><span class="lineno">  810</span> <span class="preprocessor"></span>            <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Gaussian fit failed at (x, row, N) ="</span></div>
-<div class="line"><a name="l00811"></a><span class="lineno">  811</span>                    <span class="stringliteral">" (%f, %d, %d), using centroid"</span>, </div>
-<div class="line"><a name="l00812"></a><span class="lineno">  812</span>                    x0, row, xhi-xlo+1);</div>
-<div class="line"><a name="l00813"></a><span class="lineno">  813</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00814"></a><span class="lineno">  814</span> <span class="preprocessor"></span>            *dx0 = *sigma / sqrt(*intensity);</div>
-<div class="line"><a name="l00815"></a><span class="lineno">  815</span>         }</div>
-<div class="line"><a name="l00816"></a><span class="lineno">  816</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cpl_error_get_code() == CPL_ERROR_SINGULAR_MATRIX)</div>
-<div class="line"><a name="l00817"></a><span class="lineno">  817</span>         {</div>
-<div class="line"><a name="l00818"></a><span class="lineno">  818</span>             <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00819"></a><span class="lineno">  819</span>             </div>
-<div class="line"><a name="l00820"></a><span class="lineno">  820</span>             <span class="comment">/* Fitting succeeded but covariance computation failed */</span></div>
-<div class="line"><a name="l00821"></a><span class="lineno">  821</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Covariance matrix computation failed"</span>);</div>
-<div class="line"><a name="l00822"></a><span class="lineno">  822</span>             *dx0 = *sigma / sqrt(*intensity);</div>
-<div class="line"><a name="l00823"></a><span class="lineno">  823</span>         }</div>
-<div class="line"><a name="l00824"></a><span class="lineno">  824</span>         </div>
-<div class="line"><a name="l00825"></a><span class="lineno">  825</span>         assure(cpl_error_get_code() == CPL_ERROR_NONE, cpl_error_get_code(),</div>
-<div class="line"><a name="l00826"></a><span class="lineno">  826</span>            <span class="stringliteral">"Gaussian fitting failed"</span>);</div>
-<div class="line"><a name="l00827"></a><span class="lineno">  827</span> </div>
-<div class="line"><a name="l00828"></a><span class="lineno">  828</span> <span class="preprocessor">#if WANT_BIG_LOGFILE</span></div>
-<div class="line"><a name="l00829"></a><span class="lineno">  829</span> <span class="preprocessor"></span>        <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"Fit   = (x0=%f, sigma=%f, norm=%f, backg=%f, N=%d)"</span>, </div>
-<div class="line"><a name="l00830"></a><span class="lineno">  830</span>                x0,</div>
-<div class="line"><a name="l00831"></a><span class="lineno">  831</span>                *sigma,</div>
-<div class="line"><a name="l00832"></a><span class="lineno">  832</span>                *intensity,</div>
-<div class="line"><a name="l00833"></a><span class="lineno">  833</span>                background,</div>
-<div class="line"><a name="l00834"></a><span class="lineno">  834</span>                xhi - xlo + 1);</div>
-<div class="line"><a name="l00835"></a><span class="lineno">  835</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00836"></a><span class="lineno">  836</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00837"></a><span class="lineno">  837</span>         <span class="comment">/* 'intensity' is the norm (area) of the gaussian fit.</span></div>
-<div class="line"><a name="l00838"></a><span class="lineno">  838</span> <span class="comment">           But we need to return the height above zero</span></div>
-<div class="line"><a name="l00839"></a><span class="lineno">  839</span> <span class="comment">           (for MIDAS compatibility). </span></div>
-<div class="line"><a name="l00840"></a><span class="lineno">  840</span> <span class="comment">           height = f(x0) = background + norm/sqrt(2pi sigma^2)</span></div>
-<div class="line"><a name="l00841"></a><span class="lineno">  841</span> <span class="comment">        */</span></div>
-<div class="line"><a name="l00842"></a><span class="lineno">  842</span> </div>
-<div class="line"><a name="l00843"></a><span class="lineno">  843</span>         *intensity = *background + (*intensity)/(sqrt(2*M_PI) * (*sigma));</div>
-<div class="line"><a name="l00844"></a><span class="lineno">  844</span> </div>
-<div class="line"><a name="l00845"></a><span class="lineno">  845</span>     }</div>
-<div class="line"><a name="l00846"></a><span class="lineno">  846</span>     <span class="keywordflow">else</span>   <span class="comment">/*  if (CENTERING_METHOD == CENTERING_GRAVITY) */</span></div>
-<div class="line"><a name="l00847"></a><span class="lineno">  847</span>     {</div>
-<div class="line"><a name="l00848"></a><span class="lineno">  848</span>         assure (<span class="keyword">false</span>, CPL_ERROR_UNSUPPORTED_MODE,</div>
-<div class="line"><a name="l00849"></a><span class="lineno">  849</span>             <span class="stringliteral">"Centering method (no. %d) is unsupported"</span>, </div>
-<div class="line"><a name="l00850"></a><span class="lineno">  850</span>             CENTERING_METHOD);</div>
-<div class="line"><a name="l00851"></a><span class="lineno">  851</span>     }</div>
-<div class="line"><a name="l00852"></a><span class="lineno">  852</span> </div>
-<div class="line"><a name="l00853"></a><span class="lineno">  853</span>   cleanup:</div>
-<div class="line"><a name="l00854"></a><span class="lineno">  854</span>     uves_free_matrix(&covariance);</div>
-<div class="line"><a name="l00855"></a><span class="lineno">  855</span>     <span class="keywordflow">return</span> x0;</div>
-<div class="line"><a name="l00856"></a><span class="lineno">  856</span> }</div>
-<div class="line"><a name="l00857"></a><span class="lineno">  857</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal__search_8h_source.html b/html/uves__wavecal__search_8h_source.html
deleted file mode 100644
index 48d69ce..0000000
--- a/html/uves__wavecal__search_8h_source.html
+++ /dev/null
@@ -1,134 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal_search.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal_search.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2002,2003 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2011-12-08 13:53:50 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.10 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.9  2011/03/23 09:52:36  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * changed uves_wavecal_search() API to allow QC log</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.8  2010/09/24 09:32:10  amodigli</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.6  2007/06/06 08:17:34  amodigli</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.5  2007/05/02 13:20:00  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Take error bars into account in line searching if arclamp was flat-fielded</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.4  2007/04/24 12:50:29  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Replaced cpl_propertylist -> uves_propertylist which is much faster</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.3  2007/03/05 10:41:48  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Use CCD binning when determining search window width</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.2  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.8  2005/12/20 08:11:44  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Added CVS  entry</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#ifndef UVES_WAVECAL_SEARCH_H</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_WAVECAL_SEARCH_H</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor"></span><span class="preprocessor">#include <uves_cpl_size.h></span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {CENTERING_GAUSSIAN, CENTERING_GRAVITY} centering_method;</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> cpl_table *</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <a class="code" href="group__uves__wavecal.html#ga0baa7a6c85fde5b3e8fe805cf5f4b6c6" title="Search for a given number of emission lines.">uves_wavecal_search</a>(<span class="keyword">const</span> cpl_image *spectrum, <span class="keyword">const</span> cpl_image *noise,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>             <span class="keyword">const</span> <a class="code" href="struct__uves__propertylist__.html">uves_propertylist</a> *spectrum_header,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>                     <span class="keywordtype">bool</span> flat_fielded,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>             <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, cpl_image *arcframe,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>             <span class="keywordtype">int</span> RANGE, <span class="keywordtype">int</span> MINLINES, <span class="keywordtype">int</span> MAXLINES,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>             centering_method CENTERING_METHOD,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>                     <span class="keywordtype">int</span> bin_disp,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>                     <span class="keyword">const</span> <span class="keywordtype">int</span> trace,<span class="keyword">const</span> <span class="keywordtype">int</span> window,  cpl_table* qclog);</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> </div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal__utils_8c_source.html b/html/uves__wavecal__utils_8c_source.html
deleted file mode 100644
index 148850e..0000000
--- a/html/uves__wavecal__utils_8c_source.html
+++ /dev/null
@@ -1,453 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal_utils.c Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal_utils.c</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*                                                                              *</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *   This file is part of the ESO UVES Pipeline                                 *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> *   Copyright (C) 2004,2005 European Southern Observatory                      *</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *   This library is free software; you can redistribute it and/or modify       *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> *   it under the terms of the GNU General Public License as published by       *</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or          *</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> *   (at your option) any later version.                                        *</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *   This program is distributed in the hope that it will be useful,            *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> *   GNU General Public License for more details.                               *</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *                                                                              *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *   You should have received a copy of the GNU General Public License          *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> *   along with this program; if not, write to the Free Software                *</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> *   Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA       *</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> *                                                                              */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:10 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.13 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.11  2007/06/06 08:17:34  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.10  2007/05/07 14:25:43  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Changed formatting</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.9  2007/03/05 10:43:16  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Reject outliers based on line FWHM and fit residual</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.8  2006/11/06 15:19:42  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Removed unused include directives</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.7  2006/10/10 11:20:11  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Renamed line table columns to match MIDAS</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.6  2006/07/14 12:52:57  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Exported/renamed function find_nearest</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.5  2006/06/06 08:40:25  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Shortened max line length</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.4  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.3  2006/04/21 12:29:30  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Write QC parameters to line table</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.2  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment"> * Revision 1.3  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="comment"> * Revision 1.2  2005/11/14 13:18:44  jmlarsen</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment"> * Minor update</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> * Revision 1.1  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> </div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor"></span><span class="preprocessor">#  include <config.h></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor">#include <uves_wavecal_utils.h></span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="preprocessor">#include <uves_utils.h></span></div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="preprocessor">#include <uves_utils_wrappers.h></span></div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="preprocessor">#include <uves_error.h></span></div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor">#include <uves_msg.h></span></div>
-<div class="line"><a name="l00090"></a><span class="lineno">   90</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span> <span class="comment">                            Functions prototypes</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment">                            Implementation</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#ga50d8473c5bddc7dec58f539a6026eb49">  110</a></span> <a class="code" href="structlt__type.html">lt_type</a> *<a class="code" href="group__uves__wavecal.html#ga50d8473c5bddc7dec58f539a6026eb49" title="Allocate line table.">uves_lt_new</a>(<span class="keywordtype">int</span> windows, <span class="keywordtype">int</span> traces)</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> {</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>     <span class="comment">/* Allocate all line tables for this chip */</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>     <a class="code" href="structlt__type.html">lt_type</a> *lt = cpl_malloc(<span class="keyword">sizeof</span>(<a class="code" href="structlt__type.html">lt_type</a>));</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span> </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>     <a class="code" href="group__uves__error.html#ga48d49e1d1eb218bc52176990079a0199">assure_mem</a>( lt );</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>     </div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>     lt-><a class="code" href="structlt__type.html#af01708c7edac3dd3d95f69db6a3d4d10">windows</a> = windows;</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     lt-><a class="code" href="structlt__type.html#a5506257685971316747b22175257f279">traces</a> = traces;</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span> </div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     <span class="comment">/* Initialize pointer to NULL */</span></div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>     lt-><a class="code" href="structlt__type.html#ad3796ff190452772b26c8f10cd11b49d">table</a>                = cpl_calloc(windows*traces, <span class="keyword">sizeof</span>(cpl_table *));</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     lt-><a class="code" href="structlt__type.html#a8b0b5b5221643675814bb5ff01574a75">dispersion_relation</a>  = cpl_calloc(windows*traces, <span class="keyword">sizeof</span>(<a class="code" href="struct__polynomial.html">polynomial</a> *));</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     lt-><a class="code" href="structlt__type.html#a2306b3c512175cded748edf1993d3b7c">absolute_order</a>       = cpl_calloc(windows*traces, <span class="keyword">sizeof</span>(<a class="code" href="struct__polynomial.html">polynomial</a> *));</div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span>     lt-><a class="code" href="structlt__type.html#a4e30c814b17e79857c8ada246960df6d">first_absolute_order</a> = cpl_calloc(windows*traces, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span>     lt-><a class="code" href="structlt__type.html#a40c09eb863858be2b592ba9dd1e5280f">last_absolute_order</a>  = cpl_calloc(windows*traces, <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> </div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span>   cleanup:</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span>     <span class="keywordflow">return</span> lt;</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> }</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> </div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00136"></a><span class="lineno">  136</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00137"></a><span class="lineno">  137</span> </div>
-<div class="line"><a name="l00138"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#gad74b8d3dab9e9b4d32d0cc2d4bf898be">  138</a></span> <span class="keywordtype">void</span> <a class="code" href="group__uves__wavecal.html#gad74b8d3dab9e9b4d32d0cc2d4bf898be" title="Deallocate line table.">uves_lt_delete</a>(<a class="code" href="structlt__type.html">lt_type</a> **lt)</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> {</div>
-<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     <span class="keywordflow">if</span> (lt != NULL && *lt != NULL)</div>
-<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     {</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span>         <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00143"></a><span class="lineno">  143</span>         <span class="keywordflow">for</span> (i = 0; i < (*lt)->windows * (*lt)->traces; i++)</div>
-<div class="line"><a name="l00144"></a><span class="lineno">  144</span>         {</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>             uves_free_table       (&((*lt)->table[i]));</div>
-<div class="line"><a name="l00146"></a><span class="lineno">  146</span>             <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&((*lt)->dispersion_relation[i]));</div>
-<div class="line"><a name="l00147"></a><span class="lineno">  147</span>             <a class="code" href="group__uves__utils__polynomial.html#gadce80195c8cb781f190dc02c1ad26969" title="Delete a polynomial.">uves_polynomial_delete</a>(&((*lt)->absolute_order[i]));</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span>         }</div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> </div>
-<div class="line"><a name="l00150"></a><span class="lineno">  150</span>         cpl_free((*lt)->table);</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>         cpl_free((*lt)->dispersion_relation);</div>
-<div class="line"><a name="l00152"></a><span class="lineno">  152</span>         cpl_free((*lt)->absolute_order);</div>
-<div class="line"><a name="l00153"></a><span class="lineno">  153</span>         cpl_free((*lt)->first_absolute_order);</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>         cpl_free((*lt)->last_absolute_order);</div>
-<div class="line"><a name="l00155"></a><span class="lineno">  155</span>         </div>
-<div class="line"><a name="l00156"></a><span class="lineno">  156</span>         cpl_free(*lt);</div>
-<div class="line"><a name="l00157"></a><span class="lineno">  157</span>     }</div>
-<div class="line"><a name="l00158"></a><span class="lineno">  158</span> </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <span class="keywordflow">return</span>;</div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span> }</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span> </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> cpl_table **</div>
-<div class="line"><a name="l00172"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff">  172</a></span> <a class="code" href="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff" title="Get the table structure.">uves_lt_get_table</a>(<span class="keyword">const</span> <a class="code" href="structlt__type.html">lt_type</a> *lt, <span class="keywordtype">int</span> window, <span class="keywordtype">int</span> trace)</div>
-<div class="line"><a name="l00173"></a><span class="lineno">  173</span> {</div>
-<div class="line"><a name="l00174"></a><span class="lineno">  174</span>     <span class="keywordflow">return</span> &(lt-><a class="code" href="structlt__type.html#ad3796ff190452772b26c8f10cd11b49d">table</a>[trace + (window-1)*lt-><a class="code" href="structlt__type.html#a5506257685971316747b22175257f279">traces</a>]);</div>
-<div class="line"><a name="l00175"></a><span class="lineno">  175</span> }</div>
-<div class="line"><a name="l00176"></a><span class="lineno">  176</span> </div>
-<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00186"></a><span class="lineno">  186</span> <a class="code" href="struct__polynomial.html">polynomial</a> **</div>
-<div class="line"><a name="l00187"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#gaa98b57c1a71f64a50a4f4fa83d2d590c">  187</a></span> <a class="code" href="group__uves__wavecal.html#gaa98b57c1a71f64a50a4f4fa83d2d590c" title="Get dispersion relation.">uves_lt_get_disprel</a>(<span class="keyword">const</span> <a class="code" href="structlt__type.html">lt_type</a> *lt, <span class="keywordtype">int</span> window, <span class="keywordtype">int</span> trace)</div>
-<div class="line"><a name="l00188"></a><span class="lineno">  188</span> {</div>
-<div class="line"><a name="l00189"></a><span class="lineno">  189</span>     <span class="keywordflow">return</span> &(lt-><a class="code" href="structlt__type.html#a8b0b5b5221643675814bb5ff01574a75">dispersion_relation</a>[trace + (window-1)*lt-><a class="code" href="structlt__type.html#a5506257685971316747b22175257f279">traces</a>]);</div>
-<div class="line"><a name="l00190"></a><span class="lineno">  190</span> }</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00199"></a><span class="lineno">  199</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno">  200</span> <a class="code" href="struct__polynomial.html">polynomial</a> **</div>
-<div class="line"><a name="l00201"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#ga28897452a40eb7c7a957c0761dd21842">  201</a></span> <a class="code" href="group__uves__wavecal.html#ga28897452a40eb7c7a957c0761dd21842" title="Get absolute order polynomial.">uves_lt_get_absord</a>(<span class="keyword">const</span> <a class="code" href="structlt__type.html">lt_type</a> *lt, <span class="keywordtype">int</span> window, <span class="keywordtype">int</span> tra [...]
-<div class="line"><a name="l00202"></a><span class="lineno">  202</span> {</div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     <span class="keywordflow">return</span> &(lt-><a class="code" href="structlt__type.html#a2306b3c512175cded748edf1993d3b7c">absolute_order</a>[trace + (window-1)*lt-><a class="code" href="structlt__type.html#a5506257685971316747b22175257f279">traces</a>]);</div>
-<div class="line"><a name="l00204"></a><span class="lineno">  204</span> }</div>
-<div class="line"><a name="l00205"></a><span class="lineno">  205</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="keywordtype">int</span> *</div>
-<div class="line"><a name="l00215"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#gaabce897a294645e87763f7f5ecdbcd30">  215</a></span> <a class="code" href="group__uves__wavecal.html#gaabce897a294645e87763f7f5ecdbcd30" title="Get first absolute order.">uves_lt_get_firstabs</a>(<span class="keyword">const</span> <a class="code" href="structlt__type.html">lt_type</a> *lt, <span class="keywordtype">int</span> window, <span class="keywordtype">int</span> trace)</div>
-<div class="line"><a name="l00216"></a><span class="lineno">  216</span> {</div>
-<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     <span class="keywordflow">return</span> &(lt-><a class="code" href="structlt__type.html#a4e30c814b17e79857c8ada246960df6d">first_absolute_order</a>[trace + (window-1)*lt-><a class="code" href="structlt__type.html#a5506257685971316747b22175257f279">traces</a>]);</div>
-<div class="line"><a name="l00218"></a><span class="lineno">  218</span> }</div>
-<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="keywordtype">int</span> *</div>
-<div class="line"><a name="l00229"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#gaca1246cec58a8bb8f218b993428985bc">  229</a></span> <a class="code" href="group__uves__wavecal.html#gaca1246cec58a8bb8f218b993428985bc" title="Get last absolute order.">uves_lt_get_lastabs</a>(<span class="keyword">const</span> <a class="code" href="structlt__type.html">lt_type</a> *lt, <span class="keywordtype">int</span> window, <span class="keywordtype">int</span> trace)</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> {</div>
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     <span class="keywordflow">return</span> &(lt-><a class="code" href="structlt__type.html#a40c09eb863858be2b592ba9dd1e5280f">last_absolute_order</a>[trace + (window-1)*lt-><a class="code" href="structlt__type.html#a5506257685971316747b22175257f279">traces</a>]);</div>
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span> }</div>
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> </div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00251"></a><span class="lineno">  251</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00252"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#gae0d2cfe5965b9e1f8655d1265b6bdde3">  252</a></span> <a class="code" href="group__uves__wavecal.html#gae0d2cfe5965b9e1f8655d1265b6bdde3" title="Find best matching catalogue wavelength.">uves_wavecal_find_nearest</a>(<span class="keyword">const</span> cpl_table *line_refer, <span class="keywordtype">double</span> lambda, <span class="keywordtype">int</span> lo, <span class="key [...]
-<div class="line"><a name="l00253"></a><span class="lineno">  253</span> {</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <span class="keywordflow">if</span> (lo == hi) <span class="comment">/* One-row interval */</span></div>
-<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     {</div>
-<div class="line"><a name="l00256"></a><span class="lineno">  256</span>         <span class="keywordflow">return</span> lo;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     }</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (lo + 1 == hi)</div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     {  <span class="comment">/* Two-row interval */</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span>         <span class="keywordtype">double</span> llo, lhi;</div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span>         lhi = cpl_table_get_double(line_refer, <span class="stringliteral">"Wave"</span>, hi, NULL);</div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span>         llo = cpl_table_get_double(line_refer, <span class="stringliteral">"Wave"</span>, lo, NULL);</div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span>         </div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span>         <span class="comment">/* Return the one of 'llo' and 'lhi' that is closest to 'lambda' */</span></div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span>         <span class="keywordflow">return</span> ((llo-lambda)*(llo-lambda) < (lhi-lambda)*(lhi-lambda)) ? lo : hi;</div>
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     }</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span>     { <span class="comment">/* Three or more rows to consider */</span> </div>
-<div class="line"><a name="l00269"></a><span class="lineno">  269</span>         <span class="keywordtype">double</span> lmid;</div>
-<div class="line"><a name="l00270"></a><span class="lineno">  270</span>         <span class="keywordtype">int</span> mid = (lo + hi)/2;</div>
-<div class="line"><a name="l00271"></a><span class="lineno">  271</span>         <span class="comment">/* mid is different from both 'lo' and 'hi', so this will terminate */</span></div>
-<div class="line"><a name="l00272"></a><span class="lineno">  272</span>         </div>
-<div class="line"><a name="l00273"></a><span class="lineno">  273</span>         lmid = cpl_table_get_double(line_refer, <span class="stringliteral">"Wave"</span>, mid, NULL);</div>
-<div class="line"><a name="l00274"></a><span class="lineno">  274</span>         </div>
-<div class="line"><a name="l00275"></a><span class="lineno">  275</span>         <span class="keywordflow">if</span> (lmid < lambda)</div>
-<div class="line"><a name="l00276"></a><span class="lineno">  276</span>         {</div>
-<div class="line"><a name="l00277"></a><span class="lineno">  277</span>             <span class="keywordflow">return</span> <a class="code" href="group__uves__wavecal.html#gae0d2cfe5965b9e1f8655d1265b6bdde3" title="Find best matching catalogue wavelength.">uves_wavecal_find_nearest</a>(line_refer, lambda, mid, hi);</div>
-<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         }</div>
-<div class="line"><a name="l00279"></a><span class="lineno">  279</span>         <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00280"></a><span class="lineno">  280</span>         {</div>
-<div class="line"><a name="l00281"></a><span class="lineno">  281</span>             <span class="keywordflow">return</span> <a class="code" href="group__uves__wavecal.html#gae0d2cfe5965b9e1f8655d1265b6bdde3" title="Find best matching catalogue wavelength.">uves_wavecal_find_nearest</a>(line_refer, lambda, lo, mid);</div>
-<div class="line"><a name="l00282"></a><span class="lineno">  282</span>         }</div>
-<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     }</div>
-<div class="line"><a name="l00284"></a><span class="lineno">  284</span> }</div>
-<div class="line"><a name="l00285"></a><span class="lineno">  285</span> </div>
-<div class="line"><a name="l00286"></a><span class="lineno">  286</span> </div>
-<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="keywordtype">int</span></div>
-<div class="line"><a name="l00304"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#ga2f7ee53133e419d19f10cbc231e8054a">  304</a></span> <a class="code" href="group__uves__wavecal.html#ga2f7ee53133e419d19f10cbc231e8054a" title="Delete bad lines from line table.">uves_delete_bad_lines</a>(cpl_table *table, <span class="keywordtype">double</span> TOLERANCE, <span class="keywordtype">double</span> kappa)</div>
-<div class="line"><a name="l00305"></a><span class="lineno">  305</span> {    </div>
-<div class="line"><a name="l00306"></a><span class="lineno">  306</span>     <span class="keywordtype">int</span> result = 0;</div>
-<div class="line"><a name="l00307"></a><span class="lineno">  307</span>     <span class="keywordtype">int</span> numb_lines = cpl_table_get_nrow(table);</div>
-<div class="line"><a name="l00308"></a><span class="lineno">  308</span> </div>
-<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     <span class="comment">/* Delete rows with invalid 'Ident' (and therefore invalid 'Residual_xxx') */</span></div>
-<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( uves_erase_invalid_table_rows(table, <span class="stringliteral">"Ident"</span>),</div>
-<div class="line"><a name="l00311"></a><span class="lineno">  311</span>        <span class="stringliteral">"Error erasing un-identified lines"</span>);</div>
-<div class="line"><a name="l00312"></a><span class="lineno">  312</span> </div>
-<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     assure( cpl_table_has_column(table, <span class="stringliteral">"Residual_pix"</span>),</div>
-<div class="line"><a name="l00314"></a><span class="lineno">  314</span>             CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00315"></a><span class="lineno">  315</span>             <span class="stringliteral">"Missing column 'Residual_pix'"</span>);</div>
-<div class="line"><a name="l00316"></a><span class="lineno">  316</span> </div>
-<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     assure( cpl_table_has_column(table, LINETAB_RESIDUAL),</div>
-<div class="line"><a name="l00318"></a><span class="lineno">  318</span>             CPL_ERROR_DATA_NOT_FOUND,</div>
-<div class="line"><a name="l00319"></a><span class="lineno">  319</span>             <span class="stringliteral">"Missing column '"</span> LINETAB_RESIDUAL <span class="stringliteral">"'"</span>);</div>
-<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
-<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     <span class="keywordflow">if</span> (TOLERANCE > 0)</div>
-<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     {   </div>
-<div class="line"><a name="l00323"></a><span class="lineno">  323</span>             <span class="comment">/* Pixel units */</span></div>
-<div class="line"><a name="l00324"></a><span class="lineno">  324</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( uves_erase_table_rows(table,        <span class="comment">/*  >  tol  */</span></div>
-<div class="line"><a name="l00325"></a><span class="lineno">  325</span>                       <span class="stringliteral">"Residual_pix"</span>, CPL_GREATER_THAN, TOLERANCE),</div>
-<div class="line"><a name="l00326"></a><span class="lineno">  326</span>             uves_erase_table_rows(table,        <span class="comment">/*  < -tol */</span></div>
-<div class="line"><a name="l00327"></a><span class="lineno">  327</span>                       <span class="stringliteral">"Residual_pix"</span>, CPL_LESS_THAN   , -TOLERANCE)),</div>
-<div class="line"><a name="l00328"></a><span class="lineno">  328</span>             <span class="stringliteral">"Error removing rows"</span>);</div>
-<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     }</div>
-<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     <span class="keywordflow">else</span></div>
-<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     {  </div>
-<div class="line"><a name="l00332"></a><span class="lineno">  332</span>             <span class="comment">/* Wavelength units */</span></div>
-<div class="line"><a name="l00333"></a><span class="lineno">  333</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>(( uves_erase_table_rows(table,       <span class="comment">/*  >  |tol| */</span></div>
-<div class="line"><a name="l00334"></a><span class="lineno">  334</span>                       LINETAB_RESIDUAL, CPL_GREATER_THAN, -TOLERANCE),</div>
-<div class="line"><a name="l00335"></a><span class="lineno">  335</span>             uves_erase_table_rows(table,       <span class="comment">/*  < -|tol| */</span></div>
-<div class="line"><a name="l00336"></a><span class="lineno">  336</span>                       LINETAB_RESIDUAL, CPL_LESS_THAN   , TOLERANCE)),</div>
-<div class="line"><a name="l00337"></a><span class="lineno">  337</span>           <span class="stringliteral">"Error removing rows"</span>);</div>
-<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     }</div>
-<div class="line"><a name="l00339"></a><span class="lineno">  339</span> </div>
-<div class="line"><a name="l00340"></a><span class="lineno">  340</span> </div>
-<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     <span class="comment">/* Also reject outliers (if more than 2 points)</span></div>
-<div class="line"><a name="l00342"></a><span class="lineno">  342</span> <span class="comment">       by kappa sigma clipping                       */</span></div>
-<div class="line"><a name="l00343"></a><span class="lineno">  343</span> </div>
-<div class="line"><a name="l00344"></a><span class="lineno">  344</span>     <span class="keywordflow">if</span> (cpl_table_get_nrow(table) - cpl_table_count_invalid(table, <span class="stringliteral">"Residual_pix"</span>) >= 2)</div>
-<div class="line"><a name="l00345"></a><span class="lineno">  345</span>         {</div>
-<div class="line"><a name="l00346"></a><span class="lineno">  346</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__utils.html#ga8ec4a0e22ac62eaed019f740acf6810d" title="Get average with iterative rejection.">uves_average_reject</a>(table,</div>
-<div class="line"><a name="l00347"></a><span class="lineno">  347</span>                                              <span class="stringliteral">"Residual_pix"</span>, <span class="stringliteral">"temp"</span>,</div>
-<div class="line"><a name="l00348"></a><span class="lineno">  348</span>                                              kappa));</div>
-<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
-<div class="line"><a name="l00350"></a><span class="lineno">  350</span>             <a class="code" href="group__uves__error.html#ga764ef7f937319b1b5a721776be3c2847">check_nomsg</a>( <a class="code" href="group__uves__utils.html#ga8ec4a0e22ac62eaed019f740acf6810d" title="Get average with iterative rejection.">uves_average_reject</a>(table,</div>
-<div class="line"><a name="l00351"></a><span class="lineno">  351</span>                                              <span class="stringliteral">"Xwidth"</span>, <span class="stringliteral">"temp"</span>,</div>
-<div class="line"><a name="l00352"></a><span class="lineno">  352</span>                                              kappa));</div>
-<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
-<div class="line"><a name="l00354"></a><span class="lineno">  354</span> </div>
-<div class="line"><a name="l00355"></a><span class="lineno">  355</span>             <span class="comment">/* Don't do this:</span></div>
-<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="comment">               the same is achieved by detecting fewer</span></div>
-<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="comment">               lines from the start </span></div>
-<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <span class="comment">            check_nomsg( uves_erase_table_rows(table,</span></div>
-<div class="line"><a name="l00359"></a><span class="lineno">  359</span> <span class="comment">                                               "Peak",</span></div>
-<div class="line"><a name="l00360"></a><span class="lineno">  360</span> <span class="comment">                                               CPL_LESS_THAN,</span></div>
-<div class="line"><a name="l00361"></a><span class="lineno">  361</span> <span class="comment">                                               0.5 *</span></div>
-<div class="line"><a name="l00362"></a><span class="lineno">  362</span> <span class="comment">                                               cpl_table_get_column_median(table, "Peak")));</span></div>
-<div class="line"><a name="l00363"></a><span class="lineno">  363</span> <span class="comment">            */</span></div>
-<div class="line"><a name="l00364"></a><span class="lineno">  364</span>         }</div>
-<div class="line"><a name="l00365"></a><span class="lineno">  365</span>     </div>
-<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     result = numb_lines - cpl_table_get_nrow(table);</div>
-<div class="line"><a name="l00367"></a><span class="lineno">  367</span> </div>
-<div class="line"><a name="l00368"></a><span class="lineno">  368</span>   cleanup:</div>
-<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     <span class="keywordflow">return</span> result;</div>
-<div class="line"><a name="l00370"></a><span class="lineno">  370</span> }</div>
-<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
-<div class="line"><a name="l00372"></a><span class="lineno">  372</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00403"></a><span class="lineno">  403</span> cpl_error_code</div>
-<div class="line"><a name="l00404"></a><span class="lineno"><a class="code" href="group__uves__wavecal.html#ga274e895ff3513060affa6b987a13842a">  404</a></span> <a class="code" href="group__uves__wavecal.html#ga274e895ff3513060affa6b987a13842a" title="Draw lines in an echelle image.">uves_draw_lines</a>(cpl_image *image, <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion, </div>
-<div class="line"><a name="l00405"></a><span class="lineno">  405</span>         <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations, <span class="keyword">const</span> cpl_table *t, </div>
-<div class="line"><a name="l00406"></a><span class="lineno">  406</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *lambda_column, <span class="keyword">const</span> <span class="keywordtype">char</span> *abs_order, </div>
-<div class="line"><a name="l00407"></a><span class="lineno">  407</span>         <span class="keyword">const</span> <span class="keywordtype">int</span> *relative_order, <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder,</div>
-<div class="line"><a name="l00408"></a><span class="lineno">  408</span>         <span class="keywordtype">bool</span> vertical, <span class="keywordtype">int</span> offset)</div>
-<div class="line"><a name="l00409"></a><span class="lineno">  409</span> {</div>
-<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     <span class="keywordtype">int</span> nx, ny;</div>
-<div class="line"><a name="l00411"></a><span class="lineno">  411</span>     <span class="keywordtype">int</span> row;</div>
-<div class="line"><a name="l00412"></a><span class="lineno">  412</span>     </div>
-<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     <span class="comment">/* Check input */</span></div>
-<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( image != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( dispersion != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(dispersion) == 2, <span class="stringliteral">"%d"</span>, </div>
-<div class="line"><a name="l00417"></a><span class="lineno">  417</span>          <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(dispersion));</div>
-<div class="line"><a name="l00418"></a><span class="lineno">  418</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( order_locations != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00419"></a><span class="lineno">  419</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(order_locations) == 2, <span class="stringliteral">"%d"</span>,</div>
-<div class="line"><a name="l00420"></a><span class="lineno">  420</span>          <a class="code" href="group__uves__utils__polynomial.html#ga9307b754cb4bda3fa8a5d39088b3b616" title="Get the dimension of a polynomial.">uves_polynomial_get_dimension</a>(order_locations));</div>
-<div class="line"><a name="l00421"></a><span class="lineno">  421</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( t != NULL, <span class="stringliteral">" "</span>);</div>
-<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(t, lambda_column), <span class="stringliteral">"%s"</span>, lambda_column);</div>
-<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     <span class="keywordflow">if</span> (abs_order != NULL)</div>
-<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     {</div>
-<div class="line"><a name="l00425"></a><span class="lineno">  425</span>         <a class="code" href="group__uves__error.html#ga91c7dd70a75c1387ea05a7ae83002067">passure</a>( cpl_table_has_column(t, abs_order), <span class="stringliteral">"%s"</span>, abs_order);</div>
-<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     }</div>
-<div class="line"><a name="l00427"></a><span class="lineno">  427</span> </div>
-<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     nx = cpl_image_get_size_x(image);</div>
-<div class="line"><a name="l00429"></a><span class="lineno">  429</span>     ny = cpl_image_get_size_y(image);</div>
-<div class="line"><a name="l00430"></a><span class="lineno">  430</span>     </div>
-<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     <span class="keywordflow">for</span> (row = 0; row < cpl_table_get_nrow(t); row++) {</div>
-<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     <span class="keywordtype">double</span> x, xguess;</div>
-<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     <span class="keywordtype">double</span> lambda, lambda_left, lambda_right;</div>
-<div class="line"><a name="l00434"></a><span class="lineno">  434</span>     <span class="keywordtype">int</span> order;</div>
-<div class="line"><a name="l00435"></a><span class="lineno">  435</span>     </div>
-<div class="line"><a name="l00436"></a><span class="lineno">  436</span>     <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( lambda    = cpl_table_get_double(t, lambda_column, row, NULL),</div>
-<div class="line"><a name="l00437"></a><span class="lineno">  437</span>            <span class="stringliteral">"Error reading table"</span>);</div>
-<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     </div>
-<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     <span class="keywordflow">if</span> (abs_order != NULL)</div>
-<div class="line"><a name="l00440"></a><span class="lineno">  440</span>         <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a> (minorder = maxorder = cpl_table_get_int(t, abs_order, row, NULL),</div>
-<div class="line"><a name="l00441"></a><span class="lineno">  441</span>            <span class="stringliteral">"Error reading table"</span>);</div>
-<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     </div>
-<div class="line"><a name="l00443"></a><span class="lineno">  443</span>     <span class="keywordflow">for</span> (order = minorder; order <= maxorder; order++) {</div>
-<div class="line"><a name="l00444"></a><span class="lineno">  444</span>         lambda_left  = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(dispersion, 1 , order)/order;</div>
-<div class="line"><a name="l00445"></a><span class="lineno">  445</span>         lambda_right = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(dispersion, nx, order)/order;</div>
-<div class="line"><a name="l00446"></a><span class="lineno">  446</span>         </div>
-<div class="line"><a name="l00447"></a><span class="lineno">  447</span>         <span class="comment">/* Solve  dispersion(x, m) = ident*m */</span></div>
-<div class="line"><a name="l00448"></a><span class="lineno">  448</span>         xguess = 1 + (nx - 1) * (lambda - lambda_left)/(lambda_right - lambda_left);</div>
-<div class="line"><a name="l00449"></a><span class="lineno">  449</span>             <span class="comment">/* Simple linear interpolation */</span></div>
-<div class="line"><a name="l00450"></a><span class="lineno">  450</span>         </div>
-<div class="line"><a name="l00451"></a><span class="lineno">  451</span>         <span class="comment">/* Skip if lambda is not in this order */</span></div>
-<div class="line"><a name="l00452"></a><span class="lineno">  452</span>         <span class="keywordflow">if</span> (1 <= xguess && xguess <= nx) {</div>
-<div class="line"><a name="l00453"></a><span class="lineno">  453</span>         x = <a class="code" href="group__uves__utils__polynomial.html#gacfd8db401e1250a53b8877ae118cce43" title="Solve p(x1, x2) = value.">uves_polynomial_solve_2d</a>(dispersion, lambda*order, xguess,</div>
-<div class="line"><a name="l00454"></a><span class="lineno">  454</span>                          1,                 <span class="comment">/* multiplicity */</span></div>
-<div class="line"><a name="l00455"></a><span class="lineno">  455</span>                          2,                 <span class="comment">/* fix this variable number */</span></div>
-<div class="line"><a name="l00456"></a><span class="lineno">  456</span>                          order);            <span class="comment">/* ... to this value */</span></div>
-<div class="line"><a name="l00457"></a><span class="lineno">  457</span>         </div>
-<div class="line"><a name="l00458"></a><span class="lineno">  458</span>         <span class="comment">/* Ignore if solve failed */</span></div>
-<div class="line"><a name="l00459"></a><span class="lineno">  459</span>         <span class="keywordflow">if</span> (cpl_error_get_code() != CPL_ERROR_NONE)</div>
-<div class="line"><a name="l00460"></a><span class="lineno">  460</span>             {</div>
-<div class="line"><a name="l00461"></a><span class="lineno">  461</span>             <a class="code" href="group__uves__error.html#ga83a764c3fb354fc9eb203966de6c6cc5">uves_error_reset</a>();</div>
-<div class="line"><a name="l00462"></a><span class="lineno">  462</span>             }</div>
-<div class="line"><a name="l00463"></a><span class="lineno">  463</span>         <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00464"></a><span class="lineno">  464</span>             <span class="comment">/* Otherwise plot the solution */</span></div>
-<div class="line"><a name="l00465"></a><span class="lineno">  465</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"lambda(x=%f)\t = %f"</span>, x     ,</div>
-<div class="line"><a name="l00466"></a><span class="lineno">  466</span>                    <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(dispersion, x     , order)/order);</div>
-<div class="line"><a name="l00467"></a><span class="lineno">  467</span>             <a class="code" href="group__uves__msg.html#ga44e8fba8fd214a1ec68f26e32e6f9f97" title="Print a debug message.">uves_msg_debug</a>(<span class="stringliteral">"lambda(x0=%f)\t = %f"</span>, xguess,</div>
-<div class="line"><a name="l00468"></a><span class="lineno">  468</span>                    <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(dispersion, xguess, order)/order);</div>
-<div class="line"><a name="l00469"></a><span class="lineno">  469</span>             </div>
-<div class="line"><a name="l00470"></a><span class="lineno">  470</span>             <span class="keywordflow">if</span> (1 <= x && x <= nx) {</div>
-<div class="line"><a name="l00471"></a><span class="lineno">  471</span>             <span class="keywordtype">double</span> y = <a class="code" href="group__uves__utils__polynomial.html#gaf7d99d1804bf2dc66d1ce026c1ec6b89" title="Evaluate a 2d polynomial.">uves_polynomial_evaluate_2d</a>(order_locations, x,</div>
-<div class="line"><a name="l00472"></a><span class="lineno">  472</span>                                    relative_order[order]);</div>
-<div class="line"><a name="l00473"></a><span class="lineno">  473</span>             <span class="keywordtype">int</span> i;</div>
-<div class="line"><a name="l00474"></a><span class="lineno">  474</span>             </div>
-<div class="line"><a name="l00475"></a><span class="lineno">  475</span>             <span class="keywordflow">for</span> (i = -3; i <= 3; i++) {</div>
-<div class="line"><a name="l00476"></a><span class="lineno">  476</span>                 <span class="keywordflow">if</span> (vertical) {</div>
-<div class="line"><a name="l00477"></a><span class="lineno">  477</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(image,</div>
-<div class="line"><a name="l00478"></a><span class="lineno">  478</span>                              uves_min_int(nx, uves_max_int(1, x    )),</div>
-<div class="line"><a name="l00479"></a><span class="lineno">  479</span>                              uves_min_int(ny, uves_max_int(1, (<span class="keywordtype">int</span>) y + i +</div>
-<div class="line"><a name="l00480"></a><span class="lineno">  480</span>                                            offset)), 0),</div>
-<div class="line"><a name="l00481"></a><span class="lineno">  481</span>                     <span class="stringliteral">"Error writing image"</span>);</div>
-<div class="line"><a name="l00482"></a><span class="lineno">  482</span>                 }</div>
-<div class="line"><a name="l00483"></a><span class="lineno">  483</span>                 <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00484"></a><span class="lineno">  484</span>                 <a class="code" href="group__uves__error.html#gaf6675f02f69f665c37ac92834a60315c">check</a>( cpl_image_set(image, </div>
-<div class="line"><a name="l00485"></a><span class="lineno">  485</span>                              uves_min_int(nx, uves_max_int(1, x - i)),</div>
-<div class="line"><a name="l00486"></a><span class="lineno">  486</span>                              uves_min_int(ny, uves_max_int(1, (<span class="keywordtype">int</span>) y +</div>
-<div class="line"><a name="l00487"></a><span class="lineno">  487</span>                                            offset)), 0),</div>
-<div class="line"><a name="l00488"></a><span class="lineno">  488</span>                        <span class="stringliteral">"Error writing image"</span>);</div>
-<div class="line"><a name="l00489"></a><span class="lineno">  489</span>                 }</div>
-<div class="line"><a name="l00490"></a><span class="lineno">  490</span>             }</div>
-<div class="line"><a name="l00491"></a><span class="lineno">  491</span>             }</div>
-<div class="line"><a name="l00492"></a><span class="lineno">  492</span>         } <span class="comment">/* Solve succeeded */</span></div>
-<div class="line"><a name="l00493"></a><span class="lineno">  493</span>         } <span class="comment">/* if lambda was inside this order */</span></div>
-<div class="line"><a name="l00494"></a><span class="lineno">  494</span>         </div>
-<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     } <span class="comment">/* for each order */</span></div>
-<div class="line"><a name="l00496"></a><span class="lineno">  496</span>     </div>
-<div class="line"><a name="l00497"></a><span class="lineno">  497</span>     } <span class="comment">/* for each lambda */</span></div>
-<div class="line"><a name="l00498"></a><span class="lineno">  498</span>     </div>
-<div class="line"><a name="l00499"></a><span class="lineno">  499</span>   cleanup:</div>
-<div class="line"><a name="l00500"></a><span class="lineno">  500</span>     <span class="keywordflow">return</span> cpl_error_get_code();</div>
-<div class="line"><a name="l00501"></a><span class="lineno">  501</span> }</div>
-<div class="line"><a name="l00502"></a><span class="lineno">  502</span> </div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/html/uves__wavecal__utils_8h_source.html b/html/uves__wavecal__utils_8h_source.html
deleted file mode 100644
index ac5992e..0000000
--- a/html/uves__wavecal__utils_8h_source.html
+++ /dev/null
@@ -1,177 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>UVES Pipeline Reference Manual: uves_wavecal_utils.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">UVES Pipeline Reference Manual
-    <span id="projectnumber">5.3.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Data Structures</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_49fdd486f031bb0e93313e8c1032e148.html">uves</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">uves_wavecal_utils.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> * This file is part of the ESO UVES Pipeline</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * Copyright (C) 2004,2005 European Southern Observatory</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> </div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment"> * $Author: amodigli $</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Date: 2010-09-24 09:32:10 $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Revision: 1.10 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Log: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> * Revision 1.8  2007/06/06 08:17:34  amodigli</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment"> * replace tab with 4 spaces</span></div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment"> * Revision 1.7  2007/03/05 10:47:00  jmlarsen</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment"> * Reject outliers based on line FWHM and fit residual</span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment"> * Revision 1.6  2006/10/10 11:20:11  jmlarsen</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> * Renamed line table columns to match MIDAS</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment"> * Revision 1.5  2006/07/14 12:52:57  jmlarsen</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="comment"> * Exported/renamed function find_nearest</span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment"> * Revision 1.4  2006/06/01 14:43:17  jmlarsen</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> * Added missing documentation</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> * Revision 1.3  2006/04/21 12:29:30  jmlarsen</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> * Write QC parameters to line table</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> * Revision 1.2  2006/02/15 13:19:15  jmlarsen</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="comment"> * Reduced source code max. line length</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment"> * Revision 1.1  2006/02/03 07:46:30  jmlarsen</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="comment"> * Moved recipe implementations to ./uves directory</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="comment"> * Revision 1.2  2005/12/19 16:17:55  jmlarsen</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment"> * Replaced bool -> int</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> * Revision 1.1  2005/11/11 13:18:54  jmlarsen</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment"> * Reorganized code, renamed source files</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#ifndef UVES_WAVECAL_UTILS_H</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span><span class="preprocessor">#define UVES_WAVECAL_UTILS_H</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor">#include <uves_utils_polynomial.h></span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#include <cpl.h></span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor">#include <stdbool.h></span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> </div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">                                Defines</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment">/* Use #defines to have consistent column names in all recipes */</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="preprocessor">#define LINETAB_PIXELSIZE "Pixel"</span></div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor"></span><span class="preprocessor">#define LINETAB_RESIDUAL  "Residual"  </span><span class="comment">/* in wlu, not pixels */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="preprocessor"></span><span class="preprocessor">#define LINETAB_LAMBDAC   "WaveC"     </span><span class="comment">/* computed wavelength */</span><span class="preprocessor"></span></div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment">                                Typedefs</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno"><a class="code" href="structlt__type.html">   85</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div>
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> {</div>
-<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="structlt__type.html#af01708c7edac3dd3d95f69db6a3d4d10">   88</a></span>     <span class="keywordtype">int</span> <a class="code" href="structlt__type.html#af01708c7edac3dd3d95f69db6a3d4d10">windows</a>;</div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
-<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="structlt__type.html#a5506257685971316747b22175257f279">   91</a></span>     <span class="keywordtype">int</span> <a class="code" href="structlt__type.html#a5506257685971316747b22175257f279">traces</a>;</div>
-<div class="line"><a name="l00092"></a><span class="lineno">   92</span> </div>
-<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="structlt__type.html#ad3796ff190452772b26c8f10cd11b49d">   94</a></span>     cpl_table        **<a class="code" href="structlt__type.html#ad3796ff190452772b26c8f10cd11b49d">table</a>;</div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> </div>
-<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="structlt__type.html#a8b0b5b5221643675814bb5ff01574a75">   97</a></span>     <a class="code" href="struct__polynomial.html">polynomial</a>       **<a class="code" href="structlt__type.html#a8b0b5b5221643675814bb5ff01574a75">dispersion_relation</a>;</div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span> </div>
-<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="structlt__type.html#a2306b3c512175cded748edf1993d3b7c">  100</a></span>     <a class="code" href="struct__polynomial.html">polynomial</a>       **<a class="code" href="structlt__type.html#a2306b3c512175cded748edf1993d3b7c">absolute_order</a>;</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span> </div>
-<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="structlt__type.html#a4e30c814b17e79857c8ada246960df6d">  103</a></span>     <span class="keywordtype">int</span> *<a class="code" href="structlt__type.html#a4e30c814b17e79857c8ada246960df6d">first_absolute_order</a>;</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span> </div>
-<div class="line"><a name="l00106"></a><span class="lineno"><a class="code" href="structlt__type.html#a40c09eb863858be2b592ba9dd1e5280f">  106</a></span>     <span class="keywordtype">int</span> *<a class="code" href="structlt__type.html#a40c09eb863858be2b592ba9dd1e5280f">last_absolute_order</a>;</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span> </div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span> } <a class="code" href="structlt__type.html">lt_type</a>;</div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__wavecal.html#gae0d2cfe5965b9e1f8655d1265b6bdde3" title="Find best matching catalogue wavelength.">uves_wavecal_find_nearest</a>(<span class="keyword">const</span> cpl_table *line_refer, <span class="keywordtype">double</span> lambda, <span class="keywordtype">int</span> lo, <span class="keywordtype">int</span> hi);</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span> </div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span> cpl_error_code <a class="code" href="group__uves__wavecal.html#ga274e895ff3513060affa6b987a13842a" title="Draw lines in an echelle image.">uves_draw_lines</a>(cpl_image *image,</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>                    <a class="code" href="struct__polynomial.html">polynomial</a> *dispersion, </div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>                    <span class="keyword">const</span> <a class="code" href="struct__polynomial.html">polynomial</a> *order_locations,</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                    <span class="keyword">const</span> cpl_table *t,</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                    <span class="keyword">const</span> <span class="keywordtype">char</span> *lambda_column, <span class="keyword">const</span> <span class="keywordtype">char</span> *abs_order,</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>                    <span class="keyword">const</span> <span class="keywordtype">int</span> *relative_order, </div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>                    <span class="keywordtype">int</span> minorder, <span class="keywordtype">int</span> maxorder, <span class="keywordtype">bool</span> vertical, <span class="keywordtype">int</span> offset);</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span> </div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="keywordtype">int</span> <a class="code" href="group__uves__wavecal.html#ga2f7ee53133e419d19f10cbc231e8054a" title="Delete bad lines from line table.">uves_delete_bad_lines</a>(cpl_table *table, <span class="keywordtype">double</span> TOLERANCE, <span class="keywordtype">double</span> kappa);</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span> </div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span> </div>
-<div class="line"><a name="l00124"></a><span class="lineno">  124</span> <a class="code" href="structlt__type.html">lt_type</a> *<a class="code" href="group__uves__wavecal.html#ga50d8473c5bddc7dec58f539a6026eb49" title="Allocate line table.">uves_lt_new</a>(<span class="keywordtype">int</span> windows, <span class="keywordtype">int</span> traces);</div>
-<div class="line"><a name="l00125"></a><span class="lineno">  125</span> <span class="keywordtype">void</span> <a class="code" href="group__uves__wavecal.html#gad74b8d3dab9e9b4d32d0cc2d4bf898be" title="Deallocate line table.">uves_lt_delete</a>(<a class="code" href="structlt__type.html">lt_type</a> **lt);</div>
-<div class="line"><a name="l00126"></a><span class="lineno">  126</span> cpl_table **<a class="code" href="group__uves__wavecal.html#ga4056e52158d53b14e5346871958976ff" title="Get the table structure.">uves_lt_get_table</a>(<span class="keyword">const</span> <a class="code" href="structlt__type.html">lt_type</a> *lt, <span class="keywordtype">int</span> window, <span class="keywordtype">int</span> trace);</div>
-<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <a class="code" href="struct__polynomial.html">polynomial</a> **<a class="code" href="group__uves__wavecal.html#gaa98b57c1a71f64a50a4f4fa83d2d590c" title="Get dispersion relation.">uves_lt_get_disprel</a>(<span class="keyword">const</span> <a class="code" href="structlt__type.html">lt_type</a> *lt, <span class="keywordtype">int</span> window, <span class="keywordtype">int</span> trace);</div>
-<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <a class="code" href="struct__polynomial.html">polynomial</a> **<a class="code" href="group__uves__wavecal.html#ga28897452a40eb7c7a957c0761dd21842" title="Get absolute order polynomial.">uves_lt_get_absord</a>(<span class="keyword">const</span> <a class="code" href="structlt__type.html">lt_type</a> *lt, <span class="keywordtype">int</span> window, <span class="keywordtype">int</span> trace);</div>
-<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="keywordtype">int</span> *<a class="code" href="group__uves__wavecal.html#gaabce897a294645e87763f7f5ecdbcd30" title="Get first absolute order.">uves_lt_get_firstabs</a>(<span class="keyword">const</span> <a class="code" href="structlt__type.html">lt_type</a> *lt, <span class="keywordtype">int</span> window, <span class="keywordtype">int</span> trace);</div>
-<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="keywordtype">int</span> *<a class="code" href="group__uves__wavecal.html#gaca1246cec58a8bb8f218b993428985bc" title="Get last absolute order.">uves_lt_get_lastabs</a>(<span class="keyword">const</span> <a class="code" href="structlt__type.html">lt_type</a> *lt, <span class="keywordtype">int</span> window, <span class="keywordtype">int</span> trace);</div>
-<div class="line"><a name="l00131"></a><span class="lineno">  131</span> </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00133"></a><span class="lineno">  133</span> <span class="preprocessor"></span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/AUTHORS b/libqfits/AUTHORS
deleted file mode 100644
index 23cc739..0000000
--- a/libqfits/AUTHORS
+++ /dev/null
@@ -1,2 +0,0 @@
-Nicolas Devillard   ndevilla at gmail.com      Initial author
-Yves Jung           yjung at eso.org           Maintainer since 2002
diff --git a/libqfits/Doxyfile.in b/libqfits/Doxyfile.in
deleted file mode 100644
index f784e26..0000000
--- a/libqfits/Doxyfile.in
+++ /dev/null
@@ -1,226 +0,0 @@
-# @configure_input@
-# Doxyfile 1.4.4
-
-#---------------------------------------------------------------------------
-# Project related configuration options
-#---------------------------------------------------------------------------
-PROJECT_NAME           = "C Standard Library Extensions"
-PROJECT_NUMBER         = @VERSION@
-OUTPUT_DIRECTORY       = .
-CREATE_SUBDIRS         = NO
-OUTPUT_LANGUAGE        = English
-USE_WINDOWS_ENCODING   = NO
-BRIEF_MEMBER_DESC      = YES
-REPEAT_BRIEF           = YES
-ABBREVIATE_BRIEF       =
-ALWAYS_DETAILED_SEC    = NO
-INLINE_INHERITED_MEMB  = NO
-FULL_PATH_NAMES        = NO
-STRIP_FROM_PATH        =
-STRIP_FROM_INC_PATH    =
-SHORT_NAMES            = NO
-JAVADOC_AUTOBRIEF      = NO
-MULTILINE_CPP_IS_BRIEF = NO
-DETAILS_AT_TOP         = NO
-INHERIT_DOCS           = YES
-DISTRIBUTE_GROUP_DOC   = NO
-SEPARATE_MEMBER_PAGES  = NO
-TAB_SIZE               = 4
-ALIASES                = doc=
-OPTIMIZE_OUTPUT_FOR_C  = NO
-OPTIMIZE_OUTPUT_JAVA   = NO
-SUBGROUPING            = YES
-#---------------------------------------------------------------------------
-# Build related configuration options
-#---------------------------------------------------------------------------
-EXTRACT_ALL            = NO
-EXTRACT_PRIVATE        = NO
-EXTRACT_STATIC         = NO
-EXTRACT_LOCAL_CLASSES  = YES
-EXTRACT_LOCAL_METHODS  = NO
-HIDE_UNDOC_MEMBERS     = YES
-HIDE_UNDOC_CLASSES     = YES
-HIDE_FRIEND_COMPOUNDS  = NO
-HIDE_IN_BODY_DOCS      = NO
-INTERNAL_DOCS          = NO
-CASE_SENSE_NAMES       = YES
-HIDE_SCOPE_NAMES       = NO
-SHOW_INCLUDE_FILES     = YES
-INLINE_INFO            = NO
-SORT_MEMBER_DOCS       = YES
-SORT_BRIEF_DOCS        = NO
-SORT_BY_SCOPE_NAME     = NO
-GENERATE_TODOLIST      = YES
-GENERATE_TESTLIST      = YES
-GENERATE_BUGLIST       = YES
-GENERATE_DEPRECATEDLIST= YES
-ENABLED_SECTIONS       =
-MAX_INITIALIZER_LINES  = 30
-SHOW_USED_FILES        = YES
-SHOW_DIRECTORIES       = YES
-FILE_VERSION_FILTER    =
-#---------------------------------------------------------------------------
-# configuration options related to warning and progress messages
-#---------------------------------------------------------------------------
-QUIET                  = NO
-WARNINGS               = YES
-WARN_IF_UNDOCUMENTED   = YES
-WARN_IF_DOC_ERROR      = YES
-WARN_NO_PARAMDOC       = NO
-WARN_FORMAT            =
-WARN_LOGFILE           =
-#---------------------------------------------------------------------------
-# configuration options related to the input files
-#---------------------------------------------------------------------------
-INPUT                  = @top_srcdir@/src
-FILE_PATTERNS          = *.dox \
-                         *.h \
-                         *.c
-RECURSIVE              = NO
-EXCLUDE                = CVS
-EXCLUDE_SYMLINKS       = NO
-EXCLUDE_PATTERNS       =
-EXAMPLE_PATH           =
-EXAMPLE_PATTERNS       =
-EXAMPLE_RECURSIVE      = NO
-IMAGE_PATH             =
-INPUT_FILTER           =
-FILTER_PATTERNS        =
-FILTER_SOURCE_FILES    = NO
-#---------------------------------------------------------------------------
-# configuration options related to source browsing
-#---------------------------------------------------------------------------
-SOURCE_BROWSER         = NO
-INLINE_SOURCES         = NO
-STRIP_CODE_COMMENTS    = YES
-REFERENCED_BY_RELATION = YES
-REFERENCES_RELATION    = YES
-USE_HTAGS              = NO
-VERBATIM_HEADERS       = YES
-#---------------------------------------------------------------------------
-# configuration options related to the alphabetical class index
-#---------------------------------------------------------------------------
-ALPHABETICAL_INDEX     = YES
-COLS_IN_ALPHA_INDEX    = 5
-IGNORE_PREFIX          =
-#---------------------------------------------------------------------------
-# configuration options related to the HTML output
-#---------------------------------------------------------------------------
-GENERATE_HTML          = YES
-HTML_OUTPUT            = html
-HTML_FILE_EXTENSION    = .html
-HTML_HEADER            =
-HTML_FOOTER            =
-HTML_STYLESHEET        =
-HTML_ALIGN_MEMBERS     = YES
-GENERATE_HTMLHELP      = NO
-CHM_FILE               =
-HHC_LOCATION           =
-GENERATE_CHI           = NO
-BINARY_TOC             = NO
-TOC_EXPAND             = NO
-DISABLE_INDEX          = NO
-ENUM_VALUES_PER_LINE   = 4
-GENERATE_TREEVIEW      = NO
-TREEVIEW_WIDTH         = 250
-#---------------------------------------------------------------------------
-# configuration options related to the LaTeX output
-#---------------------------------------------------------------------------
-GENERATE_LATEX         = NO
-LATEX_OUTPUT           = latex
-LATEX_CMD_NAME         = latex
-MAKEINDEX_CMD_NAME     = makeindex
-COMPACT_LATEX          = NO
-PAPER_TYPE             = a4wide
-EXTRA_PACKAGES         =
-LATEX_HEADER           =
-PDF_HYPERLINKS         = NO
-USE_PDFLATEX           = NO
-LATEX_BATCHMODE        = NO
-LATEX_HIDE_INDICES     = NO
-#---------------------------------------------------------------------------
-# configuration options related to the RTF output
-#---------------------------------------------------------------------------
-GENERATE_RTF           = NO
-RTF_OUTPUT             =
-COMPACT_RTF            = NO
-RTF_HYPERLINKS         = NO
-RTF_STYLESHEET_FILE    =
-RTF_EXTENSIONS_FILE    =
-#---------------------------------------------------------------------------
-# configuration options related to the man page output
-#---------------------------------------------------------------------------
-GENERATE_MAN           = NO
-MAN_OUTPUT             =
-MAN_EXTENSION          =
-MAN_LINKS              = NO
-#---------------------------------------------------------------------------
-# configuration options related to the XML output
-#---------------------------------------------------------------------------
-GENERATE_XML           = NO
-XML_OUTPUT             = xml
-XML_SCHEMA             =
-XML_DTD                =
-XML_PROGRAMLISTING     = YES
-#---------------------------------------------------------------------------
-# configuration options for the AutoGen Definitions output
-#---------------------------------------------------------------------------
-GENERATE_AUTOGEN_DEF   = NO
-#---------------------------------------------------------------------------
-# configuration options related to the Perl module output
-#---------------------------------------------------------------------------
-GENERATE_PERLMOD       = NO
-PERLMOD_LATEX          = NO
-PERLMOD_PRETTY         = YES
-PERLMOD_MAKEVAR_PREFIX =
-#---------------------------------------------------------------------------
-# Configuration options related to the preprocessor
-#---------------------------------------------------------------------------
-ENABLE_PREPROCESSING   = YES
-MACRO_EXPANSION        = YES
-EXPAND_ONLY_PREDEF     = YES
-SEARCH_INCLUDES        = YES
-INCLUDE_PATH           =
-INCLUDE_FILE_PATTERNS  =
-PREDEFINED             = "CX_BEGIN_DECLS= " \
-                         "CX_END_DECLS= "
-EXPAND_AS_DEFINED      =
-SKIP_FUNCTION_MACROS   = YES
-#---------------------------------------------------------------------------
-# Configuration::additions related to external references
-#---------------------------------------------------------------------------
-TAGFILES               =
-GENERATE_TAGFILE       =
-ALLEXTERNALS           = NO
-EXTERNAL_GROUPS        = YES
-PERL_PATH              =
-#---------------------------------------------------------------------------
-# Configuration options related to the dot tool
-#---------------------------------------------------------------------------
-CLASS_DIAGRAMS         = YES
-HIDE_UNDOC_RELATIONS   = YES
-HAVE_DOT               = NO
-CLASS_GRAPH            = YES
-COLLABORATION_GRAPH    = YES
-GROUP_GRAPHS           = YES
-UML_LOOK               = NO
-TEMPLATE_RELATIONS     = YES
-INCLUDE_GRAPH          = YES
-INCLUDED_BY_GRAPH      = YES
-CALL_GRAPH             = NO
-GRAPHICAL_HIERARCHY    = YES
-DIRECTORY_GRAPH        = YES
-DOT_IMAGE_FORMAT       = png
-DOT_PATH               =
-DOTFILE_DIRS           =
-MAX_DOT_GRAPH_WIDTH    = 1024
-MAX_DOT_GRAPH_HEIGHT   = 1024
-MAX_DOT_GRAPH_DEPTH    = 0
-DOT_TRANSPARENT        = NO
-DOT_MULTI_TARGETS      = NO
-GENERATE_LEGEND        = YES
-DOT_CLEANUP            = YES
-#---------------------------------------------------------------------------
-# Configuration::additions related to the search engine
-#---------------------------------------------------------------------------
-SEARCHENGINE           = NO
diff --git a/libqfits/Makefile.am b/libqfits/Makefile.am
deleted file mode 100644
index 15ae7b2..0000000
--- a/libqfits/Makefile.am
+++ /dev/null
@@ -1,37 +0,0 @@
-
-# AUTOMAKE_OPTIONS= 1.8 minimum expected version, 
-#                  foreign is most relaxed strictness
-AUTOMAKE_OPTIONS = 1.8 foreign 
-
-# Include macros implemented in directory m4macros
-ACLOCAL_AMFLAGS = -I m4macros 
-
-# DISTCLEANFILES=  remove also *~ when execute make clean
-DISTCLEANFILES = *~            
-
-# Build on subdirectories 
-SUBDIRS= src test
-
-noinst_HEADERS = qfits.h
-
-# Include the test for qfits options in the distribution
-EXTRA_DIST = m4macros/qfits_memory.m4  Doxyfile.in
-
-MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in config.log \
-         config.status configure stamp-h.in configure.scan autoscan.log \
-         admin/config.guess admin/config.sub admin/depcomp admin/install-sh \
-         admin/ltmain.sh admin/missing
-        
-clean-local: clean-html
-
-dist-hook: html
-	@if test -d $(top_builddir)/html; then \
-	  echo "cp -pr $(top_builddir)/html $(distdir)"; \
-	  cp -pr $(top_builddir)/html $(distdir); \
-	fi
-	find $(distdir) -type d ! -perm -222 -exec chmod u+w {} \; -o \
-	-type f ! -perm -222 -exec chmod u+w {} \; || chmod -R u+w $(distdir)
-
-uninstall-local: uninstall-html
-
-include $(top_srcdir)/admin/html.am
diff --git a/libqfits/Makefile.in b/libqfits/Makefile.in
deleted file mode 100644
index 34b006c..0000000
--- a/libqfits/Makefile.in
+++ /dev/null
@@ -1,887 +0,0 @@
-# Makefile.in generated by automake 1.11.6 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-# Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
- at SET_MAKE@
-
-VPATH = @srcdir@
-am__make_dryrun = \
-  { \
-    am__dry=no; \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        echo 'am--echo: ; @echo "AM"  OK' | $(MAKE) -f - 2>/dev/null \
-          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
-      *) \
-        for am__flg in $$MAKEFLAGS; do \
-          case $$am__flg in \
-            *=*|--*) ;; \
-            *n*) am__dry=yes; break;; \
-          esac; \
-        done;; \
-    esac; \
-    test $$am__dry = yes; \
-  }
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = README $(am__configure_deps) $(noinst_HEADERS) \
-	$(srcdir)/Doxyfile.in $(srcdir)/Makefile.am \
-	$(srcdir)/Makefile.in $(srcdir)/config.h.in \
-	$(top_srcdir)/admin/html.am $(top_srcdir)/configure AUTHORS \
-	admin/config.guess admin/config.sub admin/depcomp \
-	admin/install-sh admin/ltmain.sh admin/missing
-subdir = .
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4macros/eso.m4 \
-	$(top_srcdir)/m4macros/libtool.m4 \
-	$(top_srcdir)/m4macros/ltoptions.m4 \
-	$(top_srcdir)/m4macros/ltsugar.m4 \
-	$(top_srcdir)/m4macros/ltversion.m4 \
-	$(top_srcdir)/m4macros/lt~obsolete.m4 \
-	$(top_srcdir)/m4macros/qfits_memory.m4 \
-	$(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno config.status.lineno
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = config.h
-CONFIG_CLEAN_FILES = Doxyfile
-CONFIG_CLEAN_VPATH_FILES =
-SOURCES =
-DIST_SOURCES =
-RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
-	html-recursive info-recursive install-data-recursive \
-	install-dvi-recursive install-exec-recursive \
-	install-html-recursive install-info-recursive \
-	install-pdf-recursive install-ps-recursive install-recursive \
-	installcheck-recursive installdirs-recursive pdf-recursive \
-	ps-recursive uninstall-recursive
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-HEADERS = $(noinst_HEADERS)
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
-  distclean-recursive maintainer-clean-recursive
-AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
-	$(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
-	distdir dist dist-all distcheck
-ETAGS = etags
-CTAGS = ctags
-DIST_SUBDIRS = $(SUBDIRS)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-distdir = $(PACKAGE)-$(VERSION)
-top_distdir = $(distdir)
-am__remove_distdir = \
-  if test -d "$(distdir)"; then \
-    find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
-      && rm -rf "$(distdir)" \
-      || { sleep 5 && rm -rf "$(distdir)"; }; \
-  else :; fi
-am__relativize = \
-  dir0=`pwd`; \
-  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
-  sed_rest='s,^[^/]*/*,,'; \
-  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
-  sed_butlast='s,/*[^/]*$$,,'; \
-  while test -n "$$dir1"; do \
-    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
-    if test "$$first" != "."; then \
-      if test "$$first" = ".."; then \
-        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
-        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
-      else \
-        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
-        if test "$$first2" = "$$first"; then \
-          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
-        else \
-          dir2="../$$dir2"; \
-        fi; \
-        dir0="$$dir0"/"$$first"; \
-      fi; \
-    fi; \
-    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
-  done; \
-  reldir="$$dir2"
-DIST_ARCHIVES = $(distdir).tar.gz
-GZIP_ENV = --best
-distuninstallcheck_listfiles = find . -type f -print
-am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
-  | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
-distcleancheck_listfiles = find . -type f -print
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DOXYGEN = @DOXYGEN@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LATEX = @LATEX@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBTOOL_DEPS = @LIBTOOL_DEPS@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-LT_AGE = @LT_AGE@
-LT_CURRENT = @LT_CURRENT@
-LT_REVISION = @LT_REVISION@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-QFITS_CFLAGS = @QFITS_CFLAGS@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-
-# AUTOMAKE_OPTIONS= 1.8 minimum expected version, 
-#                  foreign is most relaxed strictness
-AUTOMAKE_OPTIONS = 1.8 foreign 
-
-# Include macros implemented in directory m4macros
-ACLOCAL_AMFLAGS = -I m4macros 
-
-# DISTCLEANFILES=  remove also *~ when execute make clean
-DISTCLEANFILES = *~            
-
-# Build on subdirectories 
-SUBDIRS = src test
-noinst_HEADERS = qfits.h
-
-# Include the test for qfits options in the distribution
-EXTRA_DIST = m4macros/qfits_memory.m4  Doxyfile.in
-MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in config.log \
-         config.status configure stamp-h.in configure.scan autoscan.log \
-         admin/config.guess admin/config.sub admin/depcomp admin/install-sh \
-         admin/ltmain.sh admin/missing
-
-HTML_BUILD_DIR = $(top_builddir)
-
-#if MAINTAINER_MODE
-HTML_RECURSIVE_TARGETS = install-html-recursive
-all: config.h
-	$(MAKE) $(AM_MAKEFLAGS) all-recursive
-
-.SUFFIXES:
-am--refresh: Makefile
-	@:
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am $(top_srcdir)/admin/html.am $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
-	      $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
-		&& exit 0; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    echo ' $(SHELL) ./config.status'; \
-	    $(SHELL) ./config.status;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
-	esac;
-$(top_srcdir)/admin/html.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	$(SHELL) ./config.status --recheck
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	$(am__cd) $(srcdir) && $(AUTOCONF)
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
-$(am__aclocal_m4_deps):
-
-config.h: stamp-h1
-	@if test ! -f $@; then rm -f stamp-h1; else :; fi
-	@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
-
-stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
-	@rm -f stamp-h1
-	cd $(top_builddir) && $(SHELL) ./config.status config.h
-$(srcdir)/config.h.in:  $(am__configure_deps) 
-	($(am__cd) $(top_srcdir) && $(AUTOHEADER))
-	rm -f stamp-h1
-	touch $@
-
-distclean-hdr:
-	-rm -f config.h stamp-h1
-Doxyfile: $(top_builddir)/config.status $(srcdir)/Doxyfile.in
-	cd $(top_builddir) && $(SHELL) ./config.status $@
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-
-distclean-libtool:
-	-rm -f libtool config.lt
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run `make' without going through this Makefile.
-# To change the values of `make' variables: instead of editing Makefiles,
-# (1) if the variable is set in `config.status', edit `config.status'
-#     (which will cause the Makefiles to be regenerated when you run `make');
-# (2) otherwise, pass the desired values on the `make' command line.
-$(RECURSIVE_TARGETS):
-	@fail= failcom='exit 1'; \
-	for f in x $$MAKEFLAGS; do \
-	  case $$f in \
-	    *=* | --[!k]*);; \
-	    *k*) failcom='fail=yes';; \
-	  esac; \
-	done; \
-	dot_seen=no; \
-	target=`echo $@ | sed s/-recursive//`; \
-	list='$(SUBDIRS)'; for subdir in $$list; do \
-	  echo "Making $$target in $$subdir"; \
-	  if test "$$subdir" = "."; then \
-	    dot_seen=yes; \
-	    local_target="$$target-am"; \
-	  else \
-	    local_target="$$target"; \
-	  fi; \
-	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
-	  || eval $$failcom; \
-	done; \
-	if test "$$dot_seen" = "no"; then \
-	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
-	fi; test -z "$$fail"
-
-$(RECURSIVE_CLEAN_TARGETS):
-	@fail= failcom='exit 1'; \
-	for f in x $$MAKEFLAGS; do \
-	  case $$f in \
-	    *=* | --[!k]*);; \
-	    *k*) failcom='fail=yes';; \
-	  esac; \
-	done; \
-	dot_seen=no; \
-	case "$@" in \
-	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
-	  *) list='$(SUBDIRS)' ;; \
-	esac; \
-	rev=''; for subdir in $$list; do \
-	  if test "$$subdir" = "."; then :; else \
-	    rev="$$subdir $$rev"; \
-	  fi; \
-	done; \
-	rev="$$rev ."; \
-	target=`echo $@ | sed s/-recursive//`; \
-	for subdir in $$rev; do \
-	  echo "Making $$target in $$subdir"; \
-	  if test "$$subdir" = "."; then \
-	    local_target="$$target-am"; \
-	  else \
-	    local_target="$$target"; \
-	  fi; \
-	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
-	  || eval $$failcom; \
-	done && test -z "$$fail"
-tags-recursive:
-	list='$(SUBDIRS)'; for subdir in $$list; do \
-	  test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
-	done
-ctags-recursive:
-	list='$(SUBDIRS)'; for subdir in $$list; do \
-	  test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
-	done
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
-	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
-	unique=`for i in $$list; do \
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-	  done | \
-	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
-	      END { if (nonempty) { for (i in files) print i; }; }'`; \
-	mkid -fID $$unique
-tags: TAGS
-
-TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
-		$(TAGS_FILES) $(LISP)
-	set x; \
-	here=`pwd`; \
-	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
-	  include_option=--etags-include; \
-	  empty_fix=.; \
-	else \
-	  include_option=--include; \
-	  empty_fix=; \
-	fi; \
-	list='$(SUBDIRS)'; for subdir in $$list; do \
-	  if test "$$subdir" = .; then :; else \
-	    test ! -f $$subdir/TAGS || \
-	      set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
-	  fi; \
-	done; \
-	list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
-	unique=`for i in $$list; do \
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-	  done | \
-	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
-	      END { if (nonempty) { for (i in files) print i; }; }'`; \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: CTAGS
-CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
-		$(TAGS_FILES) $(LISP)
-	list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
-	unique=`for i in $$list; do \
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-	  done | \
-	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
-	      END { if (nonempty) { for (i in files) print i; }; }'`; \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-	$(am__remove_distdir)
-	test -d "$(distdir)" || mkdir "$(distdir)"
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-	@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
-	  if test "$$subdir" = .; then :; else \
-	    $(am__make_dryrun) \
-	      || test -d "$(distdir)/$$subdir" \
-	      || $(MKDIR_P) "$(distdir)/$$subdir" \
-	      || exit 1; \
-	    dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
-	    $(am__relativize); \
-	    new_distdir=$$reldir; \
-	    dir1=$$subdir; dir2="$(top_distdir)"; \
-	    $(am__relativize); \
-	    new_top_distdir=$$reldir; \
-	    echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
-	    echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
-	    ($(am__cd) $$subdir && \
-	      $(MAKE) $(AM_MAKEFLAGS) \
-	        top_distdir="$$new_top_distdir" \
-	        distdir="$$new_distdir" \
-		am__remove_distdir=: \
-		am__skip_length_check=: \
-		am__skip_mode_fix=: \
-	        distdir) \
-	      || exit 1; \
-	  fi; \
-	done
-	$(MAKE) $(AM_MAKEFLAGS) \
-	  top_distdir="$(top_distdir)" distdir="$(distdir)" \
-	  dist-hook
-	-test -n "$(am__skip_mode_fix)" \
-	|| find "$(distdir)" -type d ! -perm -755 \
-		-exec chmod u+rwx,go+rx {} \; -o \
-	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
-	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
-	  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
-	|| chmod -R a+r "$(distdir)"
-dist-gzip: distdir
-	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
-	$(am__remove_distdir)
-
-dist-bzip2: distdir
-	tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
-	$(am__remove_distdir)
-
-dist-lzip: distdir
-	tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
-	$(am__remove_distdir)
-
-dist-lzma: distdir
-	tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
-	$(am__remove_distdir)
-
-dist-xz: distdir
-	tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
-	$(am__remove_distdir)
-
-dist-tarZ: distdir
-	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
-	$(am__remove_distdir)
-
-dist-shar: distdir
-	shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
-	$(am__remove_distdir)
-
-dist-zip: distdir
-	-rm -f $(distdir).zip
-	zip -rq $(distdir).zip $(distdir)
-	$(am__remove_distdir)
-
-dist dist-all: distdir
-	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
-	$(am__remove_distdir)
-
-# This target untars the dist file and tries a VPATH configuration.  Then
-# it guarantees that the distribution is self-contained by making another
-# tarfile.
-distcheck: dist
-	case '$(DIST_ARCHIVES)' in \
-	*.tar.gz*) \
-	  GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
-	*.tar.bz2*) \
-	  bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
-	*.tar.lzma*) \
-	  lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
-	*.tar.lz*) \
-	  lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
-	*.tar.xz*) \
-	  xz -dc $(distdir).tar.xz | $(am__untar) ;;\
-	*.tar.Z*) \
-	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
-	*.shar.gz*) \
-	  GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
-	*.zip*) \
-	  unzip $(distdir).zip ;;\
-	esac
-	chmod -R a-w $(distdir); chmod u+w $(distdir)
-	mkdir $(distdir)/_build
-	mkdir $(distdir)/_inst
-	chmod a-w $(distdir)
-	test -d $(distdir)/_build || exit 0; \
-	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
-	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
-	  && am__cwd=`pwd` \
-	  && $(am__cd) $(distdir)/_build \
-	  && ../configure --srcdir=.. --prefix="$$dc_install_base" \
-	    $(AM_DISTCHECK_CONFIGURE_FLAGS) \
-	    $(DISTCHECK_CONFIGURE_FLAGS) \
-	  && $(MAKE) $(AM_MAKEFLAGS) \
-	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
-	  && $(MAKE) $(AM_MAKEFLAGS) check \
-	  && $(MAKE) $(AM_MAKEFLAGS) install \
-	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
-	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
-	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
-	        distuninstallcheck \
-	  && chmod -R a-w "$$dc_install_base" \
-	  && ({ \
-	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
-	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
-	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
-	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
-	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
-	      } || { rm -rf "$$dc_destdir"; exit 1; }) \
-	  && rm -rf "$$dc_destdir" \
-	  && $(MAKE) $(AM_MAKEFLAGS) dist \
-	  && rm -rf $(DIST_ARCHIVES) \
-	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
-	  && cd "$$am__cwd" \
-	  || exit 1
-	$(am__remove_distdir)
-	@(echo "$(distdir) archives ready for distribution: "; \
-	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
-	  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
-distuninstallcheck:
-	@test -n '$(distuninstallcheck_dir)' || { \
-	  echo 'ERROR: trying to run $@ with an empty' \
-	       '$$(distuninstallcheck_dir)' >&2; \
-	  exit 1; \
-	}; \
-	$(am__cd) '$(distuninstallcheck_dir)' || { \
-	  echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
-	  exit 1; \
-	}; \
-	test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
-	   || { echo "ERROR: files left after uninstall:" ; \
-	        if test -n "$(DESTDIR)"; then \
-	          echo "  (check DESTDIR support)"; \
-	        fi ; \
-	        $(distuninstallcheck_listfiles) ; \
-	        exit 1; } >&2
-distcleancheck: distclean
-	@if test '$(srcdir)' = . ; then \
-	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \
-	  exit 1 ; \
-	fi
-	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
-	  || { echo "ERROR: files left in build directory after distclean:" ; \
-	       $(distcleancheck_listfiles) ; \
-	       exit 1; } >&2
-check-am: all-am
-check: check-recursive
-all-am: Makefile $(HEADERS) config.h
-installdirs: installdirs-recursive
-installdirs-am:
-install: install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-recursive
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-	-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-recursive
-
-clean-am: clean-generic clean-libtool clean-local mostlyclean-am
-
-distclean: distclean-recursive
-	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-	-rm -f Makefile
-distclean-am: clean-am distclean-generic distclean-hdr \
-	distclean-libtool distclean-tags
-
-dvi: dvi-recursive
-
-dvi-am:
-
-html: html-recursive
-
-info: info-recursive
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-recursive
-
-install-dvi-am:
-
-install-exec-am:
-
-install-info: install-info-recursive
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-recursive
-
-install-pdf-am:
-
-install-ps: install-ps-recursive
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-recursive
-	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-	-rm -rf $(top_srcdir)/autom4te.cache
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
-
-pdf: pdf-recursive
-
-pdf-am:
-
-ps: ps-recursive
-
-ps-am:
-
-uninstall-am: uninstall-local
-
-.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
-	ctags-recursive install-am install-strip tags-recursive
-
-.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
-	all all-am am--refresh check check-am clean clean-generic \
-	clean-libtool clean-local ctags ctags-recursive dist dist-all \
-	dist-bzip2 dist-gzip dist-hook dist-lzip dist-lzma dist-shar \
-	dist-tarZ dist-xz dist-zip distcheck distclean \
-	distclean-generic distclean-hdr distclean-libtool \
-	distclean-tags distcleancheck distdir distuninstallcheck dvi \
-	dvi-am html html-am info info-am install install-am \
-	install-data install-data-am install-dvi install-dvi-am \
-	install-exec install-exec-am install-html install-html-am \
-	install-info install-info-am install-man install-pdf \
-	install-pdf-am install-ps install-ps-am install-strip \
-	installcheck installcheck-am installdirs installdirs-am \
-	maintainer-clean maintainer-clean-generic mostlyclean \
-	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
-	tags tags-recursive uninstall uninstall-am uninstall-local
-
-
-clean-local: clean-html
-
-dist-hook: html
-	@if test -d $(top_builddir)/html; then \
-	  echo "cp -pr $(top_builddir)/html $(distdir)"; \
-	  cp -pr $(top_builddir)/html $(distdir); \
-	fi
-	find $(distdir) -type d ! -perm -222 -exec chmod u+w {} \; -o \
-	-type f ! -perm -222 -exec chmod u+w {} \; || chmod -R u+w $(distdir)
-
-uninstall-local: uninstall-html
-
-html-am:
-	@if test -f $(HTML_BUILD_DIR)/Doxyfile; then \
-	  echo "cd $(HTML_BUILD_DIR) && $(DOXYGEN)"; \
-	  d=`pwd`; cd $(HTML_BUILD_DIR) && $(DOXYGEN); cd $$d; \
-	  if test -n "$(POST_DOXYGEN_CLEANFILES)"; then \
-	    cd $(HTML_BUILD_DIR)/html && rm -f $(POST_DOXYGEN_CLEANFILES); \
-	  fi; \
-	else \
-	  echo "Nothing to be done for \`$@'."; \
-	fi
-
-clean-html: clean-html-am
-
-clean-html-am:
-	-rm -rf $(HTML_BUILD_DIR)/html
-
-install-html-am: html-am install-html-generic
-
-#else
-
-#HTML_RECURSIVE_TARGETS = install-html-recursive
-
-#install-html-am: install-html-generic
-
-#endif
-
-install-html: install-html-recursive
-
-install-html-generic:
-	@$(NORMAL_INSTALL)
-	@if test -d $(HTML_BUILD_DIR)/html; then \
-	  echo "$(mkinstalldirs) $(DESTDIR)$(htmldir)"; \
-	  $(mkinstalldirs) $(DESTDIR)$(htmldir); \
-	  list="`ls -1 $(HTML_BUILD_DIR)/html`"; \
-	  for p in $$list; do \
-	    if test -f $(HTML_BUILD_DIR)/html/$$p; then \
-	      echo " $(INSTALL_DATA) $(HTML_BUILD_DIR)/html/$$p $(DESTDIR)$(htmldir)/$$p"; \
-	      $(INSTALL_DATA) $(HTML_BUILD_DIR)/html/$$p $(DESTDIR)$(htmldir)/$$p; \
-	    else if test -f $$p; then \
-	      echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$p"; \
-	      $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$p; \
-	    fi; fi; \
-	  done; \
-	fi
-
-uninstall-html:
-	@$(NORMAL_UNINSTALL)
-	@list="`ls -1 $(DESTDIR)$(htmldir)`"; \
-	for p in $$list; do \
-	  echo " rm -f $(DESTDIR)$(htmldir)/$$p"; \
-	  rm -f $(DESTDIR)$(htmldir)/$$p; \
-	done
-
-$(HTML_RECURSIVE_TARGETS):
-	@set fnord $(MAKEFLAGS); amf=$$2; \
-	dot_seen=no; \
-	target=`echo $@ | sed s/-recursive//`; \
-	list='$(HTML_SUBDIRS)'; \
-	for subdir in $$list; do \
-	  echo "Making $$target in $$subdir"; \
-	  if test "$$subdir" = "."; then \
-	    dot_seen=yes; \
-	    local_target="$$target-am"; \
-	  else \
-	    local_target="$$target"; \
-	  fi; \
-	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
-	  || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
-	done; \
-	if test "$$dot_seen" = "no"; then \
-	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
-	fi; test -z "$$fail"
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/libqfits/README b/libqfits/README
deleted file mode 100644
index 3f93e5d..0000000
--- a/libqfits/README
+++ /dev/null
@@ -1,63 +0,0 @@
-
-qfits: quick FITS library
--------------------------
-
-Introduction
-------------
-
-qfits is a C library giving access to FITS file internals, both
-for reading and writing. qfits was born from the need to have a
-simple and efficient library to handle FITS files. It has been
-initially designed to support any kind of FITS data stream, but
-only relevant parts were implemented. New features and support
-for more data streams have been added as the need came up. This
-ensures that all features present in the library have been
-thoroughly tested, since they are all used daily in a production
-environment.
-
-Overview
---------
-
-The FITS format is pretty simple, declaring ancillary data in
-80-char lines in ASCII format, and storing values in fixed-size,
-uncompressed format. Data are stored on the disk more or less as
-they will be in memory (bar some trivial transformations).
-
-qfits has several levels of complexity, depending on whether you
-only want to retrieve ancillary data from headers, or only read
-pixels in, or do some true data manipulation or header
-re-formatting.
-
-People only interested in getting ancillary information from FITS
-files (i.e. reading FITS headers) will potentially use only 1 or
-2 functions from qfits. If you want to do header manipulation
-(remove/add/modify keywords and dump the header back to disk),
-you will definitely want to have a look into the qfits_header
-methods. If you want to load pixels from FITS images, a couple of
-function calls should do the job. If you want to work on table
-data, you will want to check the qfits_table methods for generic
-data loading.
-
-qfits only gives you handles on the FITS format, it does not
-provide extra functionalities related to table or image
-processing, this is left to other (higher-level) libraries.
-
-Implementation
---------------
-
-qfits is written in 100% pure ANSI C that should compile on any
-Unix. qfits has not been compiled or tested on any non-Unix
-platform (Windows, Be, etc.). qfits has been shown to work
-reliably on the following platforms:
-
-	- AIX
-	- Dec/OSF1 (True64)
-	- FreeBSD
-	- HPUX
-	- Linux
-	- Mac OS X / Darwin
-	- Solaris
-
-qfits should work fine on all POSIX-compliant Unixes. If you port
-qfits to any other platform, please let me know.
-
diff --git a/libqfits/acinclude.m4 b/libqfits/acinclude.m4
deleted file mode 100644
index f89aeac..0000000
--- a/libqfits/acinclude.m4
+++ /dev/null
@@ -1,13 +0,0 @@
-#
-# QFITS_SET_PATHS
-#---------------
-# Define auxiliary directories of the installed directory tree.
-AC_DEFUN([QFITS_SET_PATHS],
-[
-
-    if test -z "$htmldir"; then
-        htmldir='${datadir}/doc/${PACKAGE}/html'
-    fi
-
-    AC_SUBST(htmldir)
-])
diff --git a/libqfits/aclocal.m4 b/libqfits/aclocal.m4
deleted file mode 100644
index 815132a..0000000
--- a/libqfits/aclocal.m4
+++ /dev/null
@@ -1,979 +0,0 @@
-# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
-# Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-m4_ifndef([AC_AUTOCONF_VERSION],
-  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
-m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
-[m4_warning([this file was generated for autoconf 2.68.
-You have another version of autoconf.  It may work, but is not guaranteed to.
-If you have problems, you may need to regenerate the build system entirely.
-To do so, use the procedure documented by the package, typically `autoreconf'.])])
-
-# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
-# Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 1
-
-# AM_AUTOMAKE_VERSION(VERSION)
-# ----------------------------
-# Automake X.Y traces this macro to ensure aclocal.m4 has been
-# generated from the m4 files accompanying Automake X.Y.
-# (This private macro should not be called outside this file.)
-AC_DEFUN([AM_AUTOMAKE_VERSION],
-[am__api_version='1.11'
-dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
-dnl require some minimum version.  Point them to the right macro.
-m4_if([$1], [1.11.6], [],
-      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
-])
-
-# _AM_AUTOCONF_VERSION(VERSION)
-# -----------------------------
-# aclocal traces this macro to find the Autoconf version.
-# This is a private macro too.  Using m4_define simplifies
-# the logic in aclocal, which can simply ignore this definition.
-m4_define([_AM_AUTOCONF_VERSION], [])
-
-# AM_SET_CURRENT_AUTOMAKE_VERSION
-# -------------------------------
-# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
-# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
-AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-[AM_AUTOMAKE_VERSION([1.11.6])dnl
-m4_ifndef([AC_AUTOCONF_VERSION],
-  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
-_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
-
-# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
-
-# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 1
-
-# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
-# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
-# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
-#
-# Of course, Automake must honor this variable whenever it calls a
-# tool from the auxiliary directory.  The problem is that $srcdir (and
-# therefore $ac_aux_dir as well) can be either absolute or relative,
-# depending on how configure is run.  This is pretty annoying, since
-# it makes $ac_aux_dir quite unusable in subdirectories: in the top
-# source directory, any form will work fine, but in subdirectories a
-# relative path needs to be adjusted first.
-#
-# $ac_aux_dir/missing
-#    fails when called from a subdirectory if $ac_aux_dir is relative
-# $top_srcdir/$ac_aux_dir/missing
-#    fails if $ac_aux_dir is absolute,
-#    fails when called from a subdirectory in a VPATH build with
-#          a relative $ac_aux_dir
-#
-# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
-# are both prefixed by $srcdir.  In an in-source build this is usually
-# harmless because $srcdir is `.', but things will broke when you
-# start a VPATH build or use an absolute $srcdir.
-#
-# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
-# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
-#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
-# and then we would define $MISSING as
-#   MISSING="\${SHELL} $am_aux_dir/missing"
-# This will work as long as MISSING is not called from configure, because
-# unfortunately $(top_srcdir) has no meaning in configure.
-# However there are other variables, like CC, which are often used in
-# configure, and could therefore not use this "fixed" $ac_aux_dir.
-#
-# Another solution, used here, is to always expand $ac_aux_dir to an
-# absolute PATH.  The drawback is that using absolute paths prevent a
-# configured tree to be moved without reconfiguration.
-
-AC_DEFUN([AM_AUX_DIR_EXPAND],
-[dnl Rely on autoconf to set up CDPATH properly.
-AC_PREREQ([2.50])dnl
-# expand $ac_aux_dir to an absolute path
-am_aux_dir=`cd $ac_aux_dir && pwd`
-])
-
-# AM_CONDITIONAL                                            -*- Autoconf -*-
-
-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 9
-
-# AM_CONDITIONAL(NAME, SHELL-CONDITION)
-# -------------------------------------
-# Define a conditional.
-AC_DEFUN([AM_CONDITIONAL],
-[AC_PREREQ(2.52)dnl
- ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
-	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
-AC_SUBST([$1_TRUE])dnl
-AC_SUBST([$1_FALSE])dnl
-_AM_SUBST_NOTMAKE([$1_TRUE])dnl
-_AM_SUBST_NOTMAKE([$1_FALSE])dnl
-m4_define([_AM_COND_VALUE_$1], [$2])dnl
-if $2; then
-  $1_TRUE=
-  $1_FALSE='#'
-else
-  $1_TRUE='#'
-  $1_FALSE=
-fi
-AC_CONFIG_COMMANDS_PRE(
-[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
-  AC_MSG_ERROR([[conditional "$1" was never defined.
-Usually this means the macro was only invoked conditionally.]])
-fi])])
-
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
-# 2010, 2011 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 12
-
-# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
-# written in clear, in which case automake, when reading aclocal.m4,
-# will think it sees a *use*, and therefore will trigger all it's
-# C support machinery.  Also note that it means that autoscan, seeing
-# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
-
-
-# _AM_DEPENDENCIES(NAME)
-# ----------------------
-# See how the compiler implements dependency checking.
-# NAME is "CC", "CXX", "GCJ", or "OBJC".
-# We try a few techniques and use that to set a single cache variable.
-#
-# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
-# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
-# dependency, and given that the user is not expected to run this macro,
-# just rely on AC_PROG_CC.
-AC_DEFUN([_AM_DEPENDENCIES],
-[AC_REQUIRE([AM_SET_DEPDIR])dnl
-AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
-AC_REQUIRE([AM_MAKE_INCLUDE])dnl
-AC_REQUIRE([AM_DEP_TRACK])dnl
-
-ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
-       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
-       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
-       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
-       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
-                   [depcc="$$1"   am_compiler_list=])
-
-AC_CACHE_CHECK([dependency style of $depcc],
-               [am_cv_$1_dependencies_compiler_type],
-[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
-  # We make a subdir and do the tests there.  Otherwise we can end up
-  # making bogus files that we don't know about and never remove.  For
-  # instance it was reported that on HP-UX the gcc test will end up
-  # making a dummy file named `D' -- because `-MD' means `put the output
-  # in D'.
-  rm -rf conftest.dir
-  mkdir conftest.dir
-  # Copy depcomp to subdir because otherwise we won't find it if we're
-  # using a relative directory.
-  cp "$am_depcomp" conftest.dir
-  cd conftest.dir
-  # We will build objects and dependencies in a subdirectory because
-  # it helps to detect inapplicable dependency modes.  For instance
-  # both Tru64's cc and ICC support -MD to output dependencies as a
-  # side effect of compilation, but ICC will put the dependencies in
-  # the current directory while Tru64 will put them in the object
-  # directory.
-  mkdir sub
-
-  am_cv_$1_dependencies_compiler_type=none
-  if test "$am_compiler_list" = ""; then
-     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
-  fi
-  am__universal=false
-  m4_case([$1], [CC],
-    [case " $depcc " in #(
-     *\ -arch\ *\ -arch\ *) am__universal=true ;;
-     esac],
-    [CXX],
-    [case " $depcc " in #(
-     *\ -arch\ *\ -arch\ *) am__universal=true ;;
-     esac])
-
-  for depmode in $am_compiler_list; do
-    # Setup a source with many dependencies, because some compilers
-    # like to wrap large dependency lists on column 80 (with \), and
-    # we should not choose a depcomp mode which is confused by this.
-    #
-    # We need to recreate these files for each test, as the compiler may
-    # overwrite some of them when testing with obscure command lines.
-    # This happens at least with the AIX C compiler.
-    : > sub/conftest.c
-    for i in 1 2 3 4 5 6; do
-      echo '#include "conftst'$i'.h"' >> sub/conftest.c
-      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
-      # Solaris 8's {/usr,}/bin/sh.
-      touch sub/conftst$i.h
-    done
-    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
-
-    # We check with `-c' and `-o' for the sake of the "dashmstdout"
-    # mode.  It turns out that the SunPro C++ compiler does not properly
-    # handle `-M -o', and we need to detect this.  Also, some Intel
-    # versions had trouble with output in subdirs
-    am__obj=sub/conftest.${OBJEXT-o}
-    am__minus_obj="-o $am__obj"
-    case $depmode in
-    gcc)
-      # This depmode causes a compiler race in universal mode.
-      test "$am__universal" = false || continue
-      ;;
-    nosideeffect)
-      # after this tag, mechanisms are not by side-effect, so they'll
-      # only be used when explicitly requested
-      if test "x$enable_dependency_tracking" = xyes; then
-	continue
-      else
-	break
-      fi
-      ;;
-    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
-      # This compiler won't grok `-c -o', but also, the minuso test has
-      # not run yet.  These depmodes are late enough in the game, and
-      # so weak that their functioning should not be impacted.
-      am__obj=conftest.${OBJEXT-o}
-      am__minus_obj=
-      ;;
-    none) break ;;
-    esac
-    if depmode=$depmode \
-       source=sub/conftest.c object=$am__obj \
-       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
-       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
-         >/dev/null 2>conftest.err &&
-       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
-       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
-       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
-       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
-      # icc doesn't choke on unknown options, it will just issue warnings
-      # or remarks (even with -Werror).  So we grep stderr for any message
-      # that says an option was ignored or not supported.
-      # When given -MP, icc 7.0 and 7.1 complain thusly:
-      #   icc: Command line warning: ignoring option '-M'; no argument required
-      # The diagnosis changed in icc 8.0:
-      #   icc: Command line remark: option '-MP' not supported
-      if (grep 'ignoring option' conftest.err ||
-          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
-        am_cv_$1_dependencies_compiler_type=$depmode
-        break
-      fi
-    fi
-  done
-
-  cd ..
-  rm -rf conftest.dir
-else
-  am_cv_$1_dependencies_compiler_type=none
-fi
-])
-AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
-AM_CONDITIONAL([am__fastdep$1], [
-  test "x$enable_dependency_tracking" != xno \
-  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
-])
-
-
-# AM_SET_DEPDIR
-# -------------
-# Choose a directory name for dependency files.
-# This macro is AC_REQUIREd in _AM_DEPENDENCIES
-AC_DEFUN([AM_SET_DEPDIR],
-[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
-])
-
-
-# AM_DEP_TRACK
-# ------------
-AC_DEFUN([AM_DEP_TRACK],
-[AC_ARG_ENABLE(dependency-tracking,
-[  --disable-dependency-tracking  speeds up one-time build
-  --enable-dependency-tracking   do not reject slow dependency extractors])
-if test "x$enable_dependency_tracking" != xno; then
-  am_depcomp="$ac_aux_dir/depcomp"
-  AMDEPBACKSLASH='\'
-  am__nodep='_no'
-fi
-AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
-AC_SUBST([AMDEPBACKSLASH])dnl
-_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
-AC_SUBST([am__nodep])dnl
-_AM_SUBST_NOTMAKE([am__nodep])dnl
-])
-
-# Generate code to set up dependency tracking.              -*- Autoconf -*-
-
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-#serial 5
-
-# _AM_OUTPUT_DEPENDENCY_COMMANDS
-# ------------------------------
-AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
-[{
-  # Autoconf 2.62 quotes --file arguments for eval, but not when files
-  # are listed without --file.  Let's play safe and only enable the eval
-  # if we detect the quoting.
-  case $CONFIG_FILES in
-  *\'*) eval set x "$CONFIG_FILES" ;;
-  *)   set x $CONFIG_FILES ;;
-  esac
-  shift
-  for mf
-  do
-    # Strip MF so we end up with the name of the file.
-    mf=`echo "$mf" | sed -e 's/:.*$//'`
-    # Check whether this is an Automake generated Makefile or not.
-    # We used to match only the files named `Makefile.in', but
-    # some people rename them; so instead we look at the file content.
-    # Grep'ing the first line is not enough: some people post-process
-    # each Makefile.in and add a new line on top of each file to say so.
-    # Grep'ing the whole file is not good either: AIX grep has a line
-    # limit of 2048, but all sed's we know have understand at least 4000.
-    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
-      dirpart=`AS_DIRNAME("$mf")`
-    else
-      continue
-    fi
-    # Extract the definition of DEPDIR, am__include, and am__quote
-    # from the Makefile without running `make'.
-    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
-    test -z "$DEPDIR" && continue
-    am__include=`sed -n 's/^am__include = //p' < "$mf"`
-    test -z "am__include" && continue
-    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
-    # When using ansi2knr, U may be empty or an underscore; expand it
-    U=`sed -n 's/^U = //p' < "$mf"`
-    # Find all dependency output files, they are included files with
-    # $(DEPDIR) in their names.  We invoke sed twice because it is the
-    # simplest approach to changing $(DEPDIR) to its actual value in the
-    # expansion.
-    for file in `sed -n "
-      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
-	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
-      # Make sure the directory exists.
-      test -f "$dirpart/$file" && continue
-      fdir=`AS_DIRNAME(["$file"])`
-      AS_MKDIR_P([$dirpart/$fdir])
-      # echo "creating $dirpart/$file"
-      echo '# dummy' > "$dirpart/$file"
-    done
-  done
-}
-])# _AM_OUTPUT_DEPENDENCY_COMMANDS
-
-
-# AM_OUTPUT_DEPENDENCY_COMMANDS
-# -----------------------------
-# This macro should only be invoked once -- use via AC_REQUIRE.
-#
-# This code is only required when automatic dependency tracking
-# is enabled.  FIXME.  This creates each `.P' file that we will
-# need in order to bootstrap the dependency handling code.
-AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
-[AC_CONFIG_COMMANDS([depfiles],
-     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
-     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
-])
-
-# Do all the work for Automake.                             -*- Autoconf -*-
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 16
-
-# This macro actually does too much.  Some checks are only needed if
-# your package does certain things.  But this isn't really a big deal.
-
-# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
-# AM_INIT_AUTOMAKE([OPTIONS])
-# -----------------------------------------------
-# The call with PACKAGE and VERSION arguments is the old style
-# call (pre autoconf-2.50), which is being phased out.  PACKAGE
-# and VERSION should now be passed to AC_INIT and removed from
-# the call to AM_INIT_AUTOMAKE.
-# We support both call styles for the transition.  After
-# the next Automake release, Autoconf can make the AC_INIT
-# arguments mandatory, and then we can depend on a new Autoconf
-# release and drop the old call support.
-AC_DEFUN([AM_INIT_AUTOMAKE],
-[AC_PREREQ([2.62])dnl
-dnl Autoconf wants to disallow AM_ names.  We explicitly allow
-dnl the ones we care about.
-m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
-AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
-AC_REQUIRE([AC_PROG_INSTALL])dnl
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
-  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
-  # is not polluted with repeated "-I."
-  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
-  # test to see if srcdir already configured
-  if test -f $srcdir/config.status; then
-    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
-  fi
-fi
-
-# test whether we have cygpath
-if test -z "$CYGPATH_W"; then
-  if (cygpath --version) >/dev/null 2>/dev/null; then
-    CYGPATH_W='cygpath -w'
-  else
-    CYGPATH_W=echo
-  fi
-fi
-AC_SUBST([CYGPATH_W])
-
-# Define the identity of the package.
-dnl Distinguish between old-style and new-style calls.
-m4_ifval([$2],
-[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
- AC_SUBST([PACKAGE], [$1])dnl
- AC_SUBST([VERSION], [$2])],
-[_AM_SET_OPTIONS([$1])dnl
-dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
-m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
-  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
-
-_AM_IF_OPTION([no-define],,
-[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
- AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
-
-# Some tools Automake needs.
-AC_REQUIRE([AM_SANITY_CHECK])dnl
-AC_REQUIRE([AC_ARG_PROGRAM])dnl
-AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
-AM_MISSING_PROG(AUTOCONF, autoconf)
-AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
-AM_MISSING_PROG(AUTOHEADER, autoheader)
-AM_MISSING_PROG(MAKEINFO, makeinfo)
-AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
-AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
-AC_REQUIRE([AM_PROG_MKDIR_P])dnl
-# We need awk for the "check" target.  The system "awk" is bad on
-# some platforms.
-AC_REQUIRE([AC_PROG_AWK])dnl
-AC_REQUIRE([AC_PROG_MAKE_SET])dnl
-AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
-	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
-			     [_AM_PROG_TAR([v7])])])
-_AM_IF_OPTION([no-dependencies],,
-[AC_PROVIDE_IFELSE([AC_PROG_CC],
-		  [_AM_DEPENDENCIES(CC)],
-		  [define([AC_PROG_CC],
-			  defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_CXX],
-		  [_AM_DEPENDENCIES(CXX)],
-		  [define([AC_PROG_CXX],
-			  defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_OBJC],
-		  [_AM_DEPENDENCIES(OBJC)],
-		  [define([AC_PROG_OBJC],
-			  defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
-])
-_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
-dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
-dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
-dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
-AC_CONFIG_COMMANDS_PRE(dnl
-[m4_provide_if([_AM_COMPILER_EXEEXT],
-  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
-])
-
-dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
-dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
-dnl mangled by Autoconf and run in a shell conditional statement.
-m4_define([_AC_COMPILER_EXEEXT],
-m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
-
-
-# When config.status generates a header, we must update the stamp-h file.
-# This file resides in the same directory as the config header
-# that is generated.  The stamp files are numbered to have different names.
-
-# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
-# loop where config.status creates the headers, so we can generate
-# our stamp files there.
-AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
-[# Compute $1's index in $config_headers.
-_am_arg=$1
-_am_stamp_count=1
-for _am_header in $config_headers :; do
-  case $_am_header in
-    $_am_arg | $_am_arg:* )
-      break ;;
-    * )
-      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
-  esac
-done
-echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
-
-# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
-# Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 1
-
-# AM_PROG_INSTALL_SH
-# ------------------
-# Define $install_sh.
-AC_DEFUN([AM_PROG_INSTALL_SH],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-if test x"${install_sh}" != xset; then
-  case $am_aux_dir in
-  *\ * | *\	*)
-    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
-  *)
-    install_sh="\${SHELL} $am_aux_dir/install-sh"
-  esac
-fi
-AC_SUBST(install_sh)])
-
-# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 2
-
-# Check whether the underlying file-system supports filenames
-# with a leading dot.  For instance MS-DOS doesn't.
-AC_DEFUN([AM_SET_LEADING_DOT],
-[rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
-  am__leading_dot=.
-else
-  am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-AC_SUBST([am__leading_dot])])
-
-# Check to see how 'make' treats includes.	            -*- Autoconf -*-
-
-# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 4
-
-# AM_MAKE_INCLUDE()
-# -----------------
-# Check to see how make treats includes.
-AC_DEFUN([AM_MAKE_INCLUDE],
-[am_make=${MAKE-make}
-cat > confinc << 'END'
-am__doit:
-	@echo this is the am__doit target
-.PHONY: am__doit
-END
-# If we don't find an include directive, just comment out the code.
-AC_MSG_CHECKING([for style of include used by $am_make])
-am__include="#"
-am__quote=
-_am_result=none
-# First try GNU make style include.
-echo "include confinc" > confmf
-# Ignore all kinds of additional output from `make'.
-case `$am_make -s -f confmf 2> /dev/null` in #(
-*the\ am__doit\ target*)
-  am__include=include
-  am__quote=
-  _am_result=GNU
-  ;;
-esac
-# Now try BSD make style include.
-if test "$am__include" = "#"; then
-   echo '.include "confinc"' > confmf
-   case `$am_make -s -f confmf 2> /dev/null` in #(
-   *the\ am__doit\ target*)
-     am__include=.include
-     am__quote="\""
-     _am_result=BSD
-     ;;
-   esac
-fi
-AC_SUBST([am__include])
-AC_SUBST([am__quote])
-AC_MSG_RESULT([$_am_result])
-rm -f confinc confmf
-])
-
-# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
-
-# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 6
-
-# AM_MISSING_PROG(NAME, PROGRAM)
-# ------------------------------
-AC_DEFUN([AM_MISSING_PROG],
-[AC_REQUIRE([AM_MISSING_HAS_RUN])
-$1=${$1-"${am_missing_run}$2"}
-AC_SUBST($1)])
-
-
-# AM_MISSING_HAS_RUN
-# ------------------
-# Define MISSING if not defined so far and test if it supports --run.
-# If it does, set am_missing_run to use it, otherwise, to nothing.
-AC_DEFUN([AM_MISSING_HAS_RUN],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-AC_REQUIRE_AUX_FILE([missing])dnl
-if test x"${MISSING+set}" != xset; then
-  case $am_aux_dir in
-  *\ * | *\	*)
-    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
-  *)
-    MISSING="\${SHELL} $am_aux_dir/missing" ;;
-  esac
-fi
-# Use eval to expand $SHELL
-if eval "$MISSING --run true"; then
-  am_missing_run="$MISSING --run "
-else
-  am_missing_run=
-  AC_MSG_WARN([`missing' script is too old or missing])
-fi
-])
-
-# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
-# Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 1
-
-# AM_PROG_MKDIR_P
-# ---------------
-# Check for `mkdir -p'.
-AC_DEFUN([AM_PROG_MKDIR_P],
-[AC_PREREQ([2.60])dnl
-AC_REQUIRE([AC_PROG_MKDIR_P])dnl
-dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
-dnl while keeping a definition of mkdir_p for backward compatibility.
-dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
-dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
-dnl Makefile.ins that do not define MKDIR_P, so we do our own
-dnl adjustment using top_builddir (which is defined more often than
-dnl MKDIR_P).
-AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
-case $mkdir_p in
-  [[\\/$]]* | ?:[[\\/]]*) ;;
-  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
-esac
-])
-
-# Helper functions for option handling.                     -*- Autoconf -*-
-
-# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
-# Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 5
-
-# _AM_MANGLE_OPTION(NAME)
-# -----------------------
-AC_DEFUN([_AM_MANGLE_OPTION],
-[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
-
-# _AM_SET_OPTION(NAME)
-# --------------------
-# Set option NAME.  Presently that only means defining a flag for this option.
-AC_DEFUN([_AM_SET_OPTION],
-[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
-
-# _AM_SET_OPTIONS(OPTIONS)
-# ------------------------
-# OPTIONS is a space-separated list of Automake options.
-AC_DEFUN([_AM_SET_OPTIONS],
-[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
-
-# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
-# -------------------------------------------
-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
-AC_DEFUN([_AM_IF_OPTION],
-[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
-
-# Check to make sure that the build environment is sane.    -*- Autoconf -*-
-
-# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 5
-
-# AM_SANITY_CHECK
-# ---------------
-AC_DEFUN([AM_SANITY_CHECK],
-[AC_MSG_CHECKING([whether build environment is sane])
-# Just in case
-sleep 1
-echo timestamp > conftest.file
-# Reject unsafe characters in $srcdir or the absolute working directory
-# name.  Accept space and tab only in the latter.
-am_lf='
-'
-case `pwd` in
-  *[[\\\"\#\$\&\'\`$am_lf]]*)
-    AC_MSG_ERROR([unsafe absolute working directory name]);;
-esac
-case $srcdir in
-  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
-    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
-esac
-
-# Do `set' in a subshell so we don't clobber the current shell's
-# arguments.  Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
-   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
-   if test "$[*]" = "X"; then
-      # -L didn't work.
-      set X `ls -t "$srcdir/configure" conftest.file`
-   fi
-   rm -f conftest.file
-   if test "$[*]" != "X $srcdir/configure conftest.file" \
-      && test "$[*]" != "X conftest.file $srcdir/configure"; then
-
-      # If neither matched, then we have a broken ls.  This can happen
-      # if, for instance, CONFIG_SHELL is bash and it inherits a
-      # broken ls alias from the environment.  This has actually
-      # happened.  Such a system could not be considered "sane".
-      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
-alias in your environment])
-   fi
-
-   test "$[2]" = conftest.file
-   )
-then
-   # Ok.
-   :
-else
-   AC_MSG_ERROR([newly created file is older than distributed files!
-Check your system clock])
-fi
-AC_MSG_RESULT(yes)])
-
-# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 1
-
-# AM_PROG_INSTALL_STRIP
-# ---------------------
-# One issue with vendor `install' (even GNU) is that you can't
-# specify the program used to strip binaries.  This is especially
-# annoying in cross-compiling environments, where the build's strip
-# is unlikely to handle the host's binaries.
-# Fortunately install-sh will honor a STRIPPROG variable, so we
-# always use install-sh in `make install-strip', and initialize
-# STRIPPROG with the value of the STRIP variable (set by the user).
-AC_DEFUN([AM_PROG_INSTALL_STRIP],
-[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
-# Installed binaries are usually stripped using `strip' when the user
-# run `make install-strip'.  However `strip' might not be the right
-# tool to use in cross-compilation environments, therefore Automake
-# will honor the `STRIP' environment variable to overrule this program.
-dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
-if test "$cross_compiling" != no; then
-  AC_CHECK_TOOL([STRIP], [strip], :)
-fi
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
-AC_SUBST([INSTALL_STRIP_PROGRAM])])
-
-# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 3
-
-# _AM_SUBST_NOTMAKE(VARIABLE)
-# ---------------------------
-# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
-# This macro is traced by Automake.
-AC_DEFUN([_AM_SUBST_NOTMAKE])
-
-# AM_SUBST_NOTMAKE(VARIABLE)
-# --------------------------
-# Public sister of _AM_SUBST_NOTMAKE.
-AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
-
-# Check how to create a tarball.                            -*- Autoconf -*-
-
-# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 2
-
-# _AM_PROG_TAR(FORMAT)
-# --------------------
-# Check how to create a tarball in format FORMAT.
-# FORMAT should be one of `v7', `ustar', or `pax'.
-#
-# Substitute a variable $(am__tar) that is a command
-# writing to stdout a FORMAT-tarball containing the directory
-# $tardir.
-#     tardir=directory && $(am__tar) > result.tar
-#
-# Substitute a variable $(am__untar) that extract such
-# a tarball read from stdin.
-#     $(am__untar) < result.tar
-AC_DEFUN([_AM_PROG_TAR],
-[# Always define AMTAR for backward compatibility.  Yes, it's still used
-# in the wild :-(  We should find a proper way to deprecate it ...
-AC_SUBST([AMTAR], ['$${TAR-tar}'])
-m4_if([$1], [v7],
-     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
-     [m4_case([$1], [ustar],, [pax],,
-              [m4_fatal([Unknown tar format])])
-AC_MSG_CHECKING([how to create a $1 tar archive])
-# Loop over all known methods to create a tar archive until one works.
-_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
-_am_tools=${am_cv_prog_tar_$1-$_am_tools}
-# Do not fold the above two line into one, because Tru64 sh and
-# Solaris sh will not grok spaces in the rhs of `-'.
-for _am_tool in $_am_tools
-do
-  case $_am_tool in
-  gnutar)
-    for _am_tar in tar gnutar gtar;
-    do
-      AM_RUN_LOG([$_am_tar --version]) && break
-    done
-    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
-    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
-    am__untar="$_am_tar -xf -"
-    ;;
-  plaintar)
-    # Must skip GNU tar: if it does not support --format= it doesn't create
-    # ustar tarball either.
-    (tar --version) >/dev/null 2>&1 && continue
-    am__tar='tar chf - "$$tardir"'
-    am__tar_='tar chf - "$tardir"'
-    am__untar='tar xf -'
-    ;;
-  pax)
-    am__tar='pax -L -x $1 -w "$$tardir"'
-    am__tar_='pax -L -x $1 -w "$tardir"'
-    am__untar='pax -r'
-    ;;
-  cpio)
-    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
-    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
-    am__untar='cpio -i -H $1 -d'
-    ;;
-  none)
-    am__tar=false
-    am__tar_=false
-    am__untar=false
-    ;;
-  esac
-
-  # If the value was cached, stop now.  We just wanted to have am__tar
-  # and am__untar set.
-  test -n "${am_cv_prog_tar_$1}" && break
-
-  # tar/untar a dummy directory, and stop if the command works
-  rm -rf conftest.dir
-  mkdir conftest.dir
-  echo GrepMe > conftest.dir/file
-  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
-  rm -rf conftest.dir
-  if test -s conftest.tar; then
-    AM_RUN_LOG([$am__untar <conftest.tar])
-    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
-  fi
-done
-rm -rf conftest.dir
-
-AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
-AC_MSG_RESULT([$am_cv_prog_tar_$1])])
-AC_SUBST([am__tar])
-AC_SUBST([am__untar])
-]) # _AM_PROG_TAR
-
-m4_include([m4macros/eso.m4])
-m4_include([m4macros/libtool.m4])
-m4_include([m4macros/ltoptions.m4])
-m4_include([m4macros/ltsugar.m4])
-m4_include([m4macros/ltversion.m4])
-m4_include([m4macros/lt~obsolete.m4])
-m4_include([m4macros/qfits_memory.m4])
-m4_include([acinclude.m4])
diff --git a/libqfits/admin/config.guess b/libqfits/admin/config.guess
deleted file mode 100755
index d622a44..0000000
--- a/libqfits/admin/config.guess
+++ /dev/null
@@ -1,1530 +0,0 @@
-#! /bin/sh
-# Attempt to guess a canonical system name.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-#   2011, 2012 Free Software Foundation, Inc.
-
-timestamp='2012-02-10'
-
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, see <http://www.gnu.org/licenses/>.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Originally written by Per Bothner.  Please send patches (context
-# diff format) to <config-patches at gnu.org> and include a ChangeLog
-# entry.
-#
-# This script attempts to guess a canonical system name similar to
-# config.sub.  If it succeeds, it prints the system name on stdout, and
-# exits with 0.  Otherwise, it exits with 1.
-#
-# You can get the latest version of this script from:
-# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of the system \`$me' is run on.
-
-Operation modes:
-  -h, --help         print this help, then exit
-  -t, --time-stamp   print date of last modification, then exit
-  -v, --version      print version number, then exit
-
-Report bugs and patches to <config-patches at gnu.org>."
-
-version="\
-GNU config.guess ($timestamp)
-
-Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions.  There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
-  case $1 in
-    --time-stamp | --time* | -t )
-       echo "$timestamp" ; exit ;;
-    --version | -v )
-       echo "$version" ; exit ;;
-    --help | --h* | -h )
-       echo "$usage"; exit ;;
-    -- )     # Stop option processing
-       shift; break ;;
-    - )	# Use stdin as input.
-       break ;;
-    -* )
-       echo "$me: invalid option $1$help" >&2
-       exit 1 ;;
-    * )
-       break ;;
-  esac
-done
-
-if test $# != 0; then
-  echo "$me: too many arguments$help" >&2
-  exit 1
-fi
-
-trap 'exit 1' 1 2 15
-
-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
-# compiler to aid in system detection is discouraged as it requires
-# temporary files to be created and, as you can see below, it is a
-# headache to deal with in a portable fashion.
-
-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
-# use `HOST_CC' if defined, but it is deprecated.
-
-# Portable tmp directory creation inspired by the Autoconf team.
-
-set_cc_for_build='
-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
-: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
-dummy=$tmp/dummy ;
-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
-case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,)    echo "int x;" > $dummy.c ;
-	for c in cc gcc c89 c99 ; do
-	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
-	     CC_FOR_BUILD="$c"; break ;
-	  fi ;
-	done ;
-	if test x"$CC_FOR_BUILD" = x ; then
-	  CC_FOR_BUILD=no_compiler_found ;
-	fi
-	;;
- ,,*)   CC_FOR_BUILD=$CC ;;
- ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
-esac ; set_cc_for_build= ;'
-
-# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
-# (ghazi at noc.rutgers.edu 1994-08-24)
-if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
-	PATH=$PATH:/.attbin ; export PATH
-fi
-
-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
-UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
-UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
-UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
-
-# Note: order is significant - the case branches are not exclusive.
-
-case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
-    *:NetBSD:*:*)
-	# NetBSD (nbsd) targets should (where applicable) match one or
-	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
-	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
-	# switched to ELF, *-*-netbsd* would select the old
-	# object file format.  This provides both forward
-	# compatibility and a consistent mechanism for selecting the
-	# object file format.
-	#
-	# Note: NetBSD doesn't particularly care about the vendor
-	# portion of the name.  We always set it to "unknown".
-	sysctl="sysctl -n hw.machine_arch"
-	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
-	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
-	case "${UNAME_MACHINE_ARCH}" in
-	    armeb) machine=armeb-unknown ;;
-	    arm*) machine=arm-unknown ;;
-	    sh3el) machine=shl-unknown ;;
-	    sh3eb) machine=sh-unknown ;;
-	    sh5el) machine=sh5le-unknown ;;
-	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
-	esac
-	# The Operating System including object format, if it has switched
-	# to ELF recently, or will in the future.
-	case "${UNAME_MACHINE_ARCH}" in
-	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
-		eval $set_cc_for_build
-		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
-			| grep -q __ELF__
-		then
-		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
-		    # Return netbsd for either.  FIX?
-		    os=netbsd
-		else
-		    os=netbsdelf
-		fi
-		;;
-	    *)
-		os=netbsd
-		;;
-	esac
-	# The OS release
-	# Debian GNU/NetBSD machines have a different userland, and
-	# thus, need a distinct triplet. However, they do not need
-	# kernel version information, so it can be replaced with a
-	# suitable tag, in the style of linux-gnu.
-	case "${UNAME_VERSION}" in
-	    Debian*)
-		release='-gnu'
-		;;
-	    *)
-		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
-		;;
-	esac
-	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
-	# contains redundant information, the shorter form:
-	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
-	echo "${machine}-${os}${release}"
-	exit ;;
-    *:OpenBSD:*:*)
-	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
-	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
-	exit ;;
-    *:ekkoBSD:*:*)
-	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
-	exit ;;
-    *:SolidBSD:*:*)
-	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
-	exit ;;
-    macppc:MirBSD:*:*)
-	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
-	exit ;;
-    *:MirBSD:*:*)
-	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
-	exit ;;
-    alpha:OSF1:*:*)
-	case $UNAME_RELEASE in
-	*4.0)
-		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
-		;;
-	*5.*)
-		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
-		;;
-	esac
-	# According to Compaq, /usr/sbin/psrinfo has been available on
-	# OSF/1 and Tru64 systems produced since 1995.  I hope that
-	# covers most systems running today.  This code pipes the CPU
-	# types through head -n 1, so we only detect the type of CPU 0.
-	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
-	case "$ALPHA_CPU_TYPE" in
-	    "EV4 (21064)")
-		UNAME_MACHINE="alpha" ;;
-	    "EV4.5 (21064)")
-		UNAME_MACHINE="alpha" ;;
-	    "LCA4 (21066/21068)")
-		UNAME_MACHINE="alpha" ;;
-	    "EV5 (21164)")
-		UNAME_MACHINE="alphaev5" ;;
-	    "EV5.6 (21164A)")
-		UNAME_MACHINE="alphaev56" ;;
-	    "EV5.6 (21164PC)")
-		UNAME_MACHINE="alphapca56" ;;
-	    "EV5.7 (21164PC)")
-		UNAME_MACHINE="alphapca57" ;;
-	    "EV6 (21264)")
-		UNAME_MACHINE="alphaev6" ;;
-	    "EV6.7 (21264A)")
-		UNAME_MACHINE="alphaev67" ;;
-	    "EV6.8CB (21264C)")
-		UNAME_MACHINE="alphaev68" ;;
-	    "EV6.8AL (21264B)")
-		UNAME_MACHINE="alphaev68" ;;
-	    "EV6.8CX (21264D)")
-		UNAME_MACHINE="alphaev68" ;;
-	    "EV6.9A (21264/EV69A)")
-		UNAME_MACHINE="alphaev69" ;;
-	    "EV7 (21364)")
-		UNAME_MACHINE="alphaev7" ;;
-	    "EV7.9 (21364A)")
-		UNAME_MACHINE="alphaev79" ;;
-	esac
-	# A Pn.n version is a patched version.
-	# A Vn.n version is a released version.
-	# A Tn.n version is a released field test version.
-	# A Xn.n version is an unreleased experimental baselevel.
-	# 1.2 uses "1.2" for uname -r.
-	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
-	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
-	exitcode=$?
-	trap '' 0
-	exit $exitcode ;;
-    Alpha\ *:Windows_NT*:*)
-	# How do we know it's Interix rather than the generic POSIX subsystem?
-	# Should we change UNAME_MACHINE based on the output of uname instead
-	# of the specific Alpha model?
-	echo alpha-pc-interix
-	exit ;;
-    21064:Windows_NT:50:3)
-	echo alpha-dec-winnt3.5
-	exit ;;
-    Amiga*:UNIX_System_V:4.0:*)
-	echo m68k-unknown-sysv4
-	exit ;;
-    *:[Aa]miga[Oo][Ss]:*:*)
-	echo ${UNAME_MACHINE}-unknown-amigaos
-	exit ;;
-    *:[Mm]orph[Oo][Ss]:*:*)
-	echo ${UNAME_MACHINE}-unknown-morphos
-	exit ;;
-    *:OS/390:*:*)
-	echo i370-ibm-openedition
-	exit ;;
-    *:z/VM:*:*)
-	echo s390-ibm-zvmoe
-	exit ;;
-    *:OS400:*:*)
-	echo powerpc-ibm-os400
-	exit ;;
-    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
-	echo arm-acorn-riscix${UNAME_RELEASE}
-	exit ;;
-    arm:riscos:*:*|arm:RISCOS:*:*)
-	echo arm-unknown-riscos
-	exit ;;
-    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
-	echo hppa1.1-hitachi-hiuxmpp
-	exit ;;
-    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
-	# akee at wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
-	if test "`(/bin/universe) 2>/dev/null`" = att ; then
-		echo pyramid-pyramid-sysv3
-	else
-		echo pyramid-pyramid-bsd
-	fi
-	exit ;;
-    NILE*:*:*:dcosx)
-	echo pyramid-pyramid-svr4
-	exit ;;
-    DRS?6000:unix:4.0:6*)
-	echo sparc-icl-nx6
-	exit ;;
-    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
-	case `/usr/bin/uname -p` in
-	    sparc) echo sparc-icl-nx7; exit ;;
-	esac ;;
-    s390x:SunOS:*:*)
-	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-	exit ;;
-    sun4H:SunOS:5.*:*)
-	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-	exit ;;
-    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
-	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-	exit ;;
-    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
-	echo i386-pc-auroraux${UNAME_RELEASE}
-	exit ;;
-    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
-	eval $set_cc_for_build
-	SUN_ARCH="i386"
-	# If there is a compiler, see if it is configured for 64-bit objects.
-	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
-	# This test works for both compilers.
-	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
-	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
-		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
-		grep IS_64BIT_ARCH >/dev/null
-	    then
-		SUN_ARCH="x86_64"
-	    fi
-	fi
-	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-	exit ;;
-    sun4*:SunOS:6*:*)
-	# According to config.sub, this is the proper way to canonicalize
-	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
-	# it's likely to be more like Solaris than SunOS4.
-	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-	exit ;;
-    sun4*:SunOS:*:*)
-	case "`/usr/bin/arch -k`" in
-	    Series*|S4*)
-		UNAME_RELEASE=`uname -v`
-		;;
-	esac
-	# Japanese Language versions have a version number like `4.1.3-JL'.
-	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
-	exit ;;
-    sun3*:SunOS:*:*)
-	echo m68k-sun-sunos${UNAME_RELEASE}
-	exit ;;
-    sun*:*:4.2BSD:*)
-	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
-	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
-	case "`/bin/arch`" in
-	    sun3)
-		echo m68k-sun-sunos${UNAME_RELEASE}
-		;;
-	    sun4)
-		echo sparc-sun-sunos${UNAME_RELEASE}
-		;;
-	esac
-	exit ;;
-    aushp:SunOS:*:*)
-	echo sparc-auspex-sunos${UNAME_RELEASE}
-	exit ;;
-    # The situation for MiNT is a little confusing.  The machine name
-    # can be virtually everything (everything which is not
-    # "atarist" or "atariste" at least should have a processor
-    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
-    # to the lowercase version "mint" (or "freemint").  Finally
-    # the system name "TOS" denotes a system which is actually not
-    # MiNT.  But MiNT is downward compatible to TOS, so this should
-    # be no problem.
-    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
-	echo m68k-atari-mint${UNAME_RELEASE}
-	exit ;;
-    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
-	echo m68k-atari-mint${UNAME_RELEASE}
-	exit ;;
-    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
-	echo m68k-atari-mint${UNAME_RELEASE}
-	exit ;;
-    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
-	echo m68k-milan-mint${UNAME_RELEASE}
-	exit ;;
-    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
-	echo m68k-hades-mint${UNAME_RELEASE}
-	exit ;;
-    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
-	echo m68k-unknown-mint${UNAME_RELEASE}
-	exit ;;
-    m68k:machten:*:*)
-	echo m68k-apple-machten${UNAME_RELEASE}
-	exit ;;
-    powerpc:machten:*:*)
-	echo powerpc-apple-machten${UNAME_RELEASE}
-	exit ;;
-    RISC*:Mach:*:*)
-	echo mips-dec-mach_bsd4.3
-	exit ;;
-    RISC*:ULTRIX:*:*)
-	echo mips-dec-ultrix${UNAME_RELEASE}
-	exit ;;
-    VAX*:ULTRIX*:*:*)
-	echo vax-dec-ultrix${UNAME_RELEASE}
-	exit ;;
-    2020:CLIX:*:* | 2430:CLIX:*:*)
-	echo clipper-intergraph-clix${UNAME_RELEASE}
-	exit ;;
-    mips:*:*:UMIPS | mips:*:*:RISCos)
-	eval $set_cc_for_build
-	sed 's/^	//' << EOF >$dummy.c
-#ifdef __cplusplus
-#include <stdio.h>  /* for printf() prototype */
-	int main (int argc, char *argv[]) {
-#else
-	int main (argc, argv) int argc; char *argv[]; {
-#endif
-	#if defined (host_mips) && defined (MIPSEB)
-	#if defined (SYSTYPE_SYSV)
-	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
-	#endif
-	#if defined (SYSTYPE_SVR4)
-	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
-	#endif
-	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
-	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
-	#endif
-	#endif
-	  exit (-1);
-	}
-EOF
-	$CC_FOR_BUILD -o $dummy $dummy.c &&
-	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
-	  SYSTEM_NAME=`$dummy $dummyarg` &&
-	    { echo "$SYSTEM_NAME"; exit; }
-	echo mips-mips-riscos${UNAME_RELEASE}
-	exit ;;
-    Motorola:PowerMAX_OS:*:*)
-	echo powerpc-motorola-powermax
-	exit ;;
-    Motorola:*:4.3:PL8-*)
-	echo powerpc-harris-powermax
-	exit ;;
-    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
-	echo powerpc-harris-powermax
-	exit ;;
-    Night_Hawk:Power_UNIX:*:*)
-	echo powerpc-harris-powerunix
-	exit ;;
-    m88k:CX/UX:7*:*)
-	echo m88k-harris-cxux7
-	exit ;;
-    m88k:*:4*:R4*)
-	echo m88k-motorola-sysv4
-	exit ;;
-    m88k:*:3*:R3*)
-	echo m88k-motorola-sysv3
-	exit ;;
-    AViiON:dgux:*:*)
-	# DG/UX returns AViiON for all architectures
-	UNAME_PROCESSOR=`/usr/bin/uname -p`
-	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
-	then
-	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
-	       [ ${TARGET_BINARY_INTERFACE}x = x ]
-	    then
-		echo m88k-dg-dgux${UNAME_RELEASE}
-	    else
-		echo m88k-dg-dguxbcs${UNAME_RELEASE}
-	    fi
-	else
-	    echo i586-dg-dgux${UNAME_RELEASE}
-	fi
-	exit ;;
-    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
-	echo m88k-dolphin-sysv3
-	exit ;;
-    M88*:*:R3*:*)
-	# Delta 88k system running SVR3
-	echo m88k-motorola-sysv3
-	exit ;;
-    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
-	echo m88k-tektronix-sysv3
-	exit ;;
-    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
-	echo m68k-tektronix-bsd
-	exit ;;
-    *:IRIX*:*:*)
-	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
-	exit ;;
-    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
-	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
-	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
-    i*86:AIX:*:*)
-	echo i386-ibm-aix
-	exit ;;
-    ia64:AIX:*:*)
-	if [ -x /usr/bin/oslevel ] ; then
-		IBM_REV=`/usr/bin/oslevel`
-	else
-		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
-	fi
-	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
-	exit ;;
-    *:AIX:2:3)
-	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
-		eval $set_cc_for_build
-		sed 's/^		//' << EOF >$dummy.c
-		#include <sys/systemcfg.h>
-
-		main()
-			{
-			if (!__power_pc())
-				exit(1);
-			puts("powerpc-ibm-aix3.2.5");
-			exit(0);
-			}
-EOF
-		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
-		then
-			echo "$SYSTEM_NAME"
-		else
-			echo rs6000-ibm-aix3.2.5
-		fi
-	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
-		echo rs6000-ibm-aix3.2.4
-	else
-		echo rs6000-ibm-aix3.2
-	fi
-	exit ;;
-    *:AIX:*:[4567])
-	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
-	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
-		IBM_ARCH=rs6000
-	else
-		IBM_ARCH=powerpc
-	fi
-	if [ -x /usr/bin/oslevel ] ; then
-		IBM_REV=`/usr/bin/oslevel`
-	else
-		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
-	fi
-	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
-	exit ;;
-    *:AIX:*:*)
-	echo rs6000-ibm-aix
-	exit ;;
-    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
-	echo romp-ibm-bsd4.4
-	exit ;;
-    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
-	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
-	exit ;;                             # report: romp-ibm BSD 4.3
-    *:BOSX:*:*)
-	echo rs6000-bull-bosx
-	exit ;;
-    DPX/2?00:B.O.S.:*:*)
-	echo m68k-bull-sysv3
-	exit ;;
-    9000/[34]??:4.3bsd:1.*:*)
-	echo m68k-hp-bsd
-	exit ;;
-    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
-	echo m68k-hp-bsd4.4
-	exit ;;
-    9000/[34678]??:HP-UX:*:*)
-	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
-	case "${UNAME_MACHINE}" in
-	    9000/31? )            HP_ARCH=m68000 ;;
-	    9000/[34]?? )         HP_ARCH=m68k ;;
-	    9000/[678][0-9][0-9])
-		if [ -x /usr/bin/getconf ]; then
-		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
-		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
-		    case "${sc_cpu_version}" in
-		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
-		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
-		      532)                      # CPU_PA_RISC2_0
-			case "${sc_kernel_bits}" in
-			  32) HP_ARCH="hppa2.0n" ;;
-			  64) HP_ARCH="hppa2.0w" ;;
-			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
-			esac ;;
-		    esac
-		fi
-		if [ "${HP_ARCH}" = "" ]; then
-		    eval $set_cc_for_build
-		    sed 's/^		//' << EOF >$dummy.c
-
-		#define _HPUX_SOURCE
-		#include <stdlib.h>
-		#include <unistd.h>
-
-		int main ()
-		{
-		#if defined(_SC_KERNEL_BITS)
-		    long bits = sysconf(_SC_KERNEL_BITS);
-		#endif
-		    long cpu  = sysconf (_SC_CPU_VERSION);
-
-		    switch (cpu)
-			{
-			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
-			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
-			case CPU_PA_RISC2_0:
-		#if defined(_SC_KERNEL_BITS)
-			    switch (bits)
-				{
-				case 64: puts ("hppa2.0w"); break;
-				case 32: puts ("hppa2.0n"); break;
-				default: puts ("hppa2.0"); break;
-				} break;
-		#else  /* !defined(_SC_KERNEL_BITS) */
-			    puts ("hppa2.0"); break;
-		#endif
-			default: puts ("hppa1.0"); break;
-			}
-		    exit (0);
-		}
-EOF
-		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
-		    test -z "$HP_ARCH" && HP_ARCH=hppa
-		fi ;;
-	esac
-	if [ ${HP_ARCH} = "hppa2.0w" ]
-	then
-	    eval $set_cc_for_build
-
-	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
-	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
-	    # generating 64-bit code.  GNU and HP use different nomenclature:
-	    #
-	    # $ CC_FOR_BUILD=cc ./config.guess
-	    # => hppa2.0w-hp-hpux11.23
-	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
-	    # => hppa64-hp-hpux11.23
-
-	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
-		grep -q __LP64__
-	    then
-		HP_ARCH="hppa2.0w"
-	    else
-		HP_ARCH="hppa64"
-	    fi
-	fi
-	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
-	exit ;;
-    ia64:HP-UX:*:*)
-	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
-	echo ia64-hp-hpux${HPUX_REV}
-	exit ;;
-    3050*:HI-UX:*:*)
-	eval $set_cc_for_build
-	sed 's/^	//' << EOF >$dummy.c
-	#include <unistd.h>
-	int
-	main ()
-	{
-	  long cpu = sysconf (_SC_CPU_VERSION);
-	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
-	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
-	     results, however.  */
-	  if (CPU_IS_PA_RISC (cpu))
-	    {
-	      switch (cpu)
-		{
-		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
-		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
-		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
-		  default: puts ("hppa-hitachi-hiuxwe2"); break;
-		}
-	    }
-	  else if (CPU_IS_HP_MC68K (cpu))
-	    puts ("m68k-hitachi-hiuxwe2");
-	  else puts ("unknown-hitachi-hiuxwe2");
-	  exit (0);
-	}
-EOF
-	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
-		{ echo "$SYSTEM_NAME"; exit; }
-	echo unknown-hitachi-hiuxwe2
-	exit ;;
-    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
-	echo hppa1.1-hp-bsd
-	exit ;;
-    9000/8??:4.3bsd:*:*)
-	echo hppa1.0-hp-bsd
-	exit ;;
-    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
-	echo hppa1.0-hp-mpeix
-	exit ;;
-    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
-	echo hppa1.1-hp-osf
-	exit ;;
-    hp8??:OSF1:*:*)
-	echo hppa1.0-hp-osf
-	exit ;;
-    i*86:OSF1:*:*)
-	if [ -x /usr/sbin/sysversion ] ; then
-	    echo ${UNAME_MACHINE}-unknown-osf1mk
-	else
-	    echo ${UNAME_MACHINE}-unknown-osf1
-	fi
-	exit ;;
-    parisc*:Lites*:*:*)
-	echo hppa1.1-hp-lites
-	exit ;;
-    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
-	echo c1-convex-bsd
-	exit ;;
-    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
-	if getsysinfo -f scalar_acc
-	then echo c32-convex-bsd
-	else echo c2-convex-bsd
-	fi
-	exit ;;
-    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
-	echo c34-convex-bsd
-	exit ;;
-    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
-	echo c38-convex-bsd
-	exit ;;
-    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
-	echo c4-convex-bsd
-	exit ;;
-    CRAY*Y-MP:*:*:*)
-	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
-	exit ;;
-    CRAY*[A-Z]90:*:*:*)
-	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
-	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
-	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
-	      -e 's/\.[^.]*$/.X/'
-	exit ;;
-    CRAY*TS:*:*:*)
-	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
-	exit ;;
-    CRAY*T3E:*:*:*)
-	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
-	exit ;;
-    CRAY*SV1:*:*:*)
-	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
-	exit ;;
-    *:UNICOS/mp:*:*)
-	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
-	exit ;;
-    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
-	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
-	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
-	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
-	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
-	exit ;;
-    5000:UNIX_System_V:4.*:*)
-	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
-	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
-	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
-	exit ;;
-    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
-	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
-	exit ;;
-    sparc*:BSD/OS:*:*)
-	echo sparc-unknown-bsdi${UNAME_RELEASE}
-	exit ;;
-    *:BSD/OS:*:*)
-	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
-	exit ;;
-    *:FreeBSD:*:*)
-	UNAME_PROCESSOR=`/usr/bin/uname -p`
-	case ${UNAME_PROCESSOR} in
-	    amd64)
-		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
-	    *)
-		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
-	esac
-	exit ;;
-    i*:CYGWIN*:*)
-	echo ${UNAME_MACHINE}-pc-cygwin
-	exit ;;
-    *:MINGW*:*)
-	echo ${UNAME_MACHINE}-pc-mingw32
-	exit ;;
-    i*:MSYS*:*)
-	echo ${UNAME_MACHINE}-pc-msys
-	exit ;;
-    i*:windows32*:*)
-	# uname -m includes "-pc" on this system.
-	echo ${UNAME_MACHINE}-mingw32
-	exit ;;
-    i*:PW*:*)
-	echo ${UNAME_MACHINE}-pc-pw32
-	exit ;;
-    *:Interix*:*)
-	case ${UNAME_MACHINE} in
-	    x86)
-		echo i586-pc-interix${UNAME_RELEASE}
-		exit ;;
-	    authenticamd | genuineintel | EM64T)
-		echo x86_64-unknown-interix${UNAME_RELEASE}
-		exit ;;
-	    IA64)
-		echo ia64-unknown-interix${UNAME_RELEASE}
-		exit ;;
-	esac ;;
-    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
-	echo i${UNAME_MACHINE}-pc-mks
-	exit ;;
-    8664:Windows_NT:*)
-	echo x86_64-pc-mks
-	exit ;;
-    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
-	# How do we know it's Interix rather than the generic POSIX subsystem?
-	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
-	# UNAME_MACHINE based on the output of uname instead of i386?
-	echo i586-pc-interix
-	exit ;;
-    i*:UWIN*:*)
-	echo ${UNAME_MACHINE}-pc-uwin
-	exit ;;
-    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
-	echo x86_64-unknown-cygwin
-	exit ;;
-    p*:CYGWIN*:*)
-	echo powerpcle-unknown-cygwin
-	exit ;;
-    prep*:SunOS:5.*:*)
-	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-	exit ;;
-    *:GNU:*:*)
-	# the GNU system
-	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
-	exit ;;
-    *:GNU/*:*:*)
-	# other systems with GNU libc and userland
-	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
-	exit ;;
-    i*86:Minix:*:*)
-	echo ${UNAME_MACHINE}-pc-minix
-	exit ;;
-    aarch64:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    aarch64_be:Linux:*:*)
-	UNAME_MACHINE=aarch64_be
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    alpha:Linux:*:*)
-	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
-	  EV5)   UNAME_MACHINE=alphaev5 ;;
-	  EV56)  UNAME_MACHINE=alphaev56 ;;
-	  PCA56) UNAME_MACHINE=alphapca56 ;;
-	  PCA57) UNAME_MACHINE=alphapca56 ;;
-	  EV6)   UNAME_MACHINE=alphaev6 ;;
-	  EV67)  UNAME_MACHINE=alphaev67 ;;
-	  EV68*) UNAME_MACHINE=alphaev68 ;;
-	esac
-	objdump --private-headers /bin/sh | grep -q ld.so.1
-	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
-	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
-	exit ;;
-    arm*:Linux:*:*)
-	eval $set_cc_for_build
-	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
-	    | grep -q __ARM_EABI__
-	then
-	    echo ${UNAME_MACHINE}-unknown-linux-gnu
-	else
-	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
-		| grep -q __ARM_PCS_VFP
-	    then
-		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
-	    else
-		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
-	    fi
-	fi
-	exit ;;
-    avr32*:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    cris:Linux:*:*)
-	echo ${UNAME_MACHINE}-axis-linux-gnu
-	exit ;;
-    crisv32:Linux:*:*)
-	echo ${UNAME_MACHINE}-axis-linux-gnu
-	exit ;;
-    frv:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    hexagon:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    i*86:Linux:*:*)
-	LIBC=gnu
-	eval $set_cc_for_build
-	sed 's/^	//' << EOF >$dummy.c
-	#ifdef __dietlibc__
-	LIBC=dietlibc
-	#endif
-EOF
-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
-	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
-	exit ;;
-    ia64:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    m32r*:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    m68*:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    mips:Linux:*:* | mips64:Linux:*:*)
-	eval $set_cc_for_build
-	sed 's/^	//' << EOF >$dummy.c
-	#undef CPU
-	#undef ${UNAME_MACHINE}
-	#undef ${UNAME_MACHINE}el
-	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
-	CPU=${UNAME_MACHINE}el
-	#else
-	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
-	CPU=${UNAME_MACHINE}
-	#else
-	CPU=
-	#endif
-	#endif
-EOF
-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
-	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
-	;;
-    or32:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    padre:Linux:*:*)
-	echo sparc-unknown-linux-gnu
-	exit ;;
-    parisc64:Linux:*:* | hppa64:Linux:*:*)
-	echo hppa64-unknown-linux-gnu
-	exit ;;
-    parisc:Linux:*:* | hppa:Linux:*:*)
-	# Look for CPU level
-	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
-	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
-	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
-	  *)    echo hppa-unknown-linux-gnu ;;
-	esac
-	exit ;;
-    ppc64:Linux:*:*)
-	echo powerpc64-unknown-linux-gnu
-	exit ;;
-    ppc:Linux:*:*)
-	echo powerpc-unknown-linux-gnu
-	exit ;;
-    s390:Linux:*:* | s390x:Linux:*:*)
-	echo ${UNAME_MACHINE}-ibm-linux
-	exit ;;
-    sh64*:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    sh*:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    sparc:Linux:*:* | sparc64:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    tile*:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    vax:Linux:*:*)
-	echo ${UNAME_MACHINE}-dec-linux-gnu
-	exit ;;
-    x86_64:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    xtensa*:Linux:*:*)
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
-	exit ;;
-    i*86:DYNIX/ptx:4*:*)
-	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
-	# earlier versions are messed up and put the nodename in both
-	# sysname and nodename.
-	echo i386-sequent-sysv4
-	exit ;;
-    i*86:UNIX_SV:4.2MP:2.*)
-	# Unixware is an offshoot of SVR4, but it has its own version
-	# number series starting with 2...
-	# I am not positive that other SVR4 systems won't match this,
-	# I just have to hope.  -- rms.
-	# Use sysv4.2uw... so that sysv4* matches it.
-	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
-	exit ;;
-    i*86:OS/2:*:*)
-	# If we were able to find `uname', then EMX Unix compatibility
-	# is probably installed.
-	echo ${UNAME_MACHINE}-pc-os2-emx
-	exit ;;
-    i*86:XTS-300:*:STOP)
-	echo ${UNAME_MACHINE}-unknown-stop
-	exit ;;
-    i*86:atheos:*:*)
-	echo ${UNAME_MACHINE}-unknown-atheos
-	exit ;;
-    i*86:syllable:*:*)
-	echo ${UNAME_MACHINE}-pc-syllable
-	exit ;;
-    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
-	echo i386-unknown-lynxos${UNAME_RELEASE}
-	exit ;;
-    i*86:*DOS:*:*)
-	echo ${UNAME_MACHINE}-pc-msdosdjgpp
-	exit ;;
-    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
-	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
-	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
-		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
-	else
-		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
-	fi
-	exit ;;
-    i*86:*:5:[678]*)
-	# UnixWare 7.x, OpenUNIX and OpenServer 6.
-	case `/bin/uname -X | grep "^Machine"` in
-	    *486*)	     UNAME_MACHINE=i486 ;;
-	    *Pentium)	     UNAME_MACHINE=i586 ;;
-	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
-	esac
-	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
-	exit ;;
-    i*86:*:3.2:*)
-	if test -f /usr/options/cb.name; then
-		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
-		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
-	elif /bin/uname -X 2>/dev/null >/dev/null ; then
-		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
-		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
-		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
-			&& UNAME_MACHINE=i586
-		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
-			&& UNAME_MACHINE=i686
-		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
-			&& UNAME_MACHINE=i686
-		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
-	else
-		echo ${UNAME_MACHINE}-pc-sysv32
-	fi
-	exit ;;
-    pc:*:*:*)
-	# Left here for compatibility:
-	# uname -m prints for DJGPP always 'pc', but it prints nothing about
-	# the processor, so we play safe by assuming i586.
-	# Note: whatever this is, it MUST be the same as what config.sub
-	# prints for the "djgpp" host, or else GDB configury will decide that
-	# this is a cross-build.
-	echo i586-pc-msdosdjgpp
-	exit ;;
-    Intel:Mach:3*:*)
-	echo i386-pc-mach3
-	exit ;;
-    paragon:*:*:*)
-	echo i860-intel-osf1
-	exit ;;
-    i860:*:4.*:*) # i860-SVR4
-	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
-	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
-	else # Add other i860-SVR4 vendors below as they are discovered.
-	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
-	fi
-	exit ;;
-    mini*:CTIX:SYS*5:*)
-	# "miniframe"
-	echo m68010-convergent-sysv
-	exit ;;
-    mc68k:UNIX:SYSTEM5:3.51m)
-	echo m68k-convergent-sysv
-	exit ;;
-    M680?0:D-NIX:5.3:*)
-	echo m68k-diab-dnix
-	exit ;;
-    M68*:*:R3V[5678]*:*)
-	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
-    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
-	OS_REL=''
-	test -r /etc/.relid \
-	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
-	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
-	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
-	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
-	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
-    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
-	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
-	  && { echo i486-ncr-sysv4; exit; } ;;
-    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
-	OS_REL='.3'
-	test -r /etc/.relid \
-	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
-	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
-	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
-	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
-	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
-	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
-	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
-    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
-	echo m68k-unknown-lynxos${UNAME_RELEASE}
-	exit ;;
-    mc68030:UNIX_System_V:4.*:*)
-	echo m68k-atari-sysv4
-	exit ;;
-    TSUNAMI:LynxOS:2.*:*)
-	echo sparc-unknown-lynxos${UNAME_RELEASE}
-	exit ;;
-    rs6000:LynxOS:2.*:*)
-	echo rs6000-unknown-lynxos${UNAME_RELEASE}
-	exit ;;
-    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
-	echo powerpc-unknown-lynxos${UNAME_RELEASE}
-	exit ;;
-    SM[BE]S:UNIX_SV:*:*)
-	echo mips-dde-sysv${UNAME_RELEASE}
-	exit ;;
-    RM*:ReliantUNIX-*:*:*)
-	echo mips-sni-sysv4
-	exit ;;
-    RM*:SINIX-*:*:*)
-	echo mips-sni-sysv4
-	exit ;;
-    *:SINIX-*:*:*)
-	if uname -p 2>/dev/null >/dev/null ; then
-		UNAME_MACHINE=`(uname -p) 2>/dev/null`
-		echo ${UNAME_MACHINE}-sni-sysv4
-	else
-		echo ns32k-sni-sysv
-	fi
-	exit ;;
-    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
-			# says <Richard.M.Bartel at ccMail.Census.GOV>
-	echo i586-unisys-sysv4
-	exit ;;
-    *:UNIX_System_V:4*:FTX*)
-	# From Gerald Hewes <hewes at openmarket.com>.
-	# How about differentiating between stratus architectures? -djm
-	echo hppa1.1-stratus-sysv4
-	exit ;;
-    *:*:*:FTX*)
-	# From seanf at swdc.stratus.com.
-	echo i860-stratus-sysv4
-	exit ;;
-    i*86:VOS:*:*)
-	# From Paul.Green at stratus.com.
-	echo ${UNAME_MACHINE}-stratus-vos
-	exit ;;
-    *:VOS:*:*)
-	# From Paul.Green at stratus.com.
-	echo hppa1.1-stratus-vos
-	exit ;;
-    mc68*:A/UX:*:*)
-	echo m68k-apple-aux${UNAME_RELEASE}
-	exit ;;
-    news*:NEWS-OS:6*:*)
-	echo mips-sony-newsos6
-	exit ;;
-    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
-	if [ -d /usr/nec ]; then
-		echo mips-nec-sysv${UNAME_RELEASE}
-	else
-		echo mips-unknown-sysv${UNAME_RELEASE}
-	fi
-	exit ;;
-    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
-	echo powerpc-be-beos
-	exit ;;
-    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
-	echo powerpc-apple-beos
-	exit ;;
-    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
-	echo i586-pc-beos
-	exit ;;
-    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
-	echo i586-pc-haiku
-	exit ;;
-    SX-4:SUPER-UX:*:*)
-	echo sx4-nec-superux${UNAME_RELEASE}
-	exit ;;
-    SX-5:SUPER-UX:*:*)
-	echo sx5-nec-superux${UNAME_RELEASE}
-	exit ;;
-    SX-6:SUPER-UX:*:*)
-	echo sx6-nec-superux${UNAME_RELEASE}
-	exit ;;
-    SX-7:SUPER-UX:*:*)
-	echo sx7-nec-superux${UNAME_RELEASE}
-	exit ;;
-    SX-8:SUPER-UX:*:*)
-	echo sx8-nec-superux${UNAME_RELEASE}
-	exit ;;
-    SX-8R:SUPER-UX:*:*)
-	echo sx8r-nec-superux${UNAME_RELEASE}
-	exit ;;
-    Power*:Rhapsody:*:*)
-	echo powerpc-apple-rhapsody${UNAME_RELEASE}
-	exit ;;
-    *:Rhapsody:*:*)
-	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
-	exit ;;
-    *:Darwin:*:*)
-	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
-	case $UNAME_PROCESSOR in
-	    i386)
-		eval $set_cc_for_build
-		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
-		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
-		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
-		      grep IS_64BIT_ARCH >/dev/null
-		  then
-		      UNAME_PROCESSOR="x86_64"
-		  fi
-		fi ;;
-	    unknown) UNAME_PROCESSOR=powerpc ;;
-	esac
-	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
-	exit ;;
-    *:procnto*:*:* | *:QNX:[0123456789]*:*)
-	UNAME_PROCESSOR=`uname -p`
-	if test "$UNAME_PROCESSOR" = "x86"; then
-		UNAME_PROCESSOR=i386
-		UNAME_MACHINE=pc
-	fi
-	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
-	exit ;;
-    *:QNX:*:4*)
-	echo i386-pc-qnx
-	exit ;;
-    NEO-?:NONSTOP_KERNEL:*:*)
-	echo neo-tandem-nsk${UNAME_RELEASE}
-	exit ;;
-    NSE-?:NONSTOP_KERNEL:*:*)
-	echo nse-tandem-nsk${UNAME_RELEASE}
-	exit ;;
-    NSR-?:NONSTOP_KERNEL:*:*)
-	echo nsr-tandem-nsk${UNAME_RELEASE}
-	exit ;;
-    *:NonStop-UX:*:*)
-	echo mips-compaq-nonstopux
-	exit ;;
-    BS2000:POSIX*:*:*)
-	echo bs2000-siemens-sysv
-	exit ;;
-    DS/*:UNIX_System_V:*:*)
-	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
-	exit ;;
-    *:Plan9:*:*)
-	# "uname -m" is not consistent, so use $cputype instead. 386
-	# is converted to i386 for consistency with other x86
-	# operating systems.
-	if test "$cputype" = "386"; then
-	    UNAME_MACHINE=i386
-	else
-	    UNAME_MACHINE="$cputype"
-	fi
-	echo ${UNAME_MACHINE}-unknown-plan9
-	exit ;;
-    *:TOPS-10:*:*)
-	echo pdp10-unknown-tops10
-	exit ;;
-    *:TENEX:*:*)
-	echo pdp10-unknown-tenex
-	exit ;;
-    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
-	echo pdp10-dec-tops20
-	exit ;;
-    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
-	echo pdp10-xkl-tops20
-	exit ;;
-    *:TOPS-20:*:*)
-	echo pdp10-unknown-tops20
-	exit ;;
-    *:ITS:*:*)
-	echo pdp10-unknown-its
-	exit ;;
-    SEI:*:*:SEIUX)
-	echo mips-sei-seiux${UNAME_RELEASE}
-	exit ;;
-    *:DragonFly:*:*)
-	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
-	exit ;;
-    *:*VMS:*:*)
-	UNAME_MACHINE=`(uname -p) 2>/dev/null`
-	case "${UNAME_MACHINE}" in
-	    A*) echo alpha-dec-vms ; exit ;;
-	    I*) echo ia64-dec-vms ; exit ;;
-	    V*) echo vax-dec-vms ; exit ;;
-	esac ;;
-    *:XENIX:*:SysV)
-	echo i386-pc-xenix
-	exit ;;
-    i*86:skyos:*:*)
-	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
-	exit ;;
-    i*86:rdos:*:*)
-	echo ${UNAME_MACHINE}-pc-rdos
-	exit ;;
-    i*86:AROS:*:*)
-	echo ${UNAME_MACHINE}-pc-aros
-	exit ;;
-    x86_64:VMkernel:*:*)
-	echo ${UNAME_MACHINE}-unknown-esx
-	exit ;;
-esac
-
-#echo '(No uname command or uname output not recognized.)' 1>&2
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
-
-eval $set_cc_for_build
-cat >$dummy.c <<EOF
-#ifdef _SEQUENT_
-# include <sys/types.h>
-# include <sys/utsname.h>
-#endif
-main ()
-{
-#if defined (sony)
-#if defined (MIPSEB)
-  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
-     I don't know....  */
-  printf ("mips-sony-bsd\n"); exit (0);
-#else
-#include <sys/param.h>
-  printf ("m68k-sony-newsos%s\n",
-#ifdef NEWSOS4
-	"4"
-#else
-	""
-#endif
-	); exit (0);
-#endif
-#endif
-
-#if defined (__arm) && defined (__acorn) && defined (__unix)
-  printf ("arm-acorn-riscix\n"); exit (0);
-#endif
-
-#if defined (hp300) && !defined (hpux)
-  printf ("m68k-hp-bsd\n"); exit (0);
-#endif
-
-#if defined (NeXT)
-#if !defined (__ARCHITECTURE__)
-#define __ARCHITECTURE__ "m68k"
-#endif
-  int version;
-  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
-  if (version < 4)
-    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
-  else
-    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
-  exit (0);
-#endif
-
-#if defined (MULTIMAX) || defined (n16)
-#if defined (UMAXV)
-  printf ("ns32k-encore-sysv\n"); exit (0);
-#else
-#if defined (CMU)
-  printf ("ns32k-encore-mach\n"); exit (0);
-#else
-  printf ("ns32k-encore-bsd\n"); exit (0);
-#endif
-#endif
-#endif
-
-#if defined (__386BSD__)
-  printf ("i386-pc-bsd\n"); exit (0);
-#endif
-
-#if defined (sequent)
-#if defined (i386)
-  printf ("i386-sequent-dynix\n"); exit (0);
-#endif
-#if defined (ns32000)
-  printf ("ns32k-sequent-dynix\n"); exit (0);
-#endif
-#endif
-
-#if defined (_SEQUENT_)
-    struct utsname un;
-
-    uname(&un);
-
-    if (strncmp(un.version, "V2", 2) == 0) {
-	printf ("i386-sequent-ptx2\n"); exit (0);
-    }
-    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
-	printf ("i386-sequent-ptx1\n"); exit (0);
-    }
-    printf ("i386-sequent-ptx\n"); exit (0);
-
-#endif
-
-#if defined (vax)
-# if !defined (ultrix)
-#  include <sys/param.h>
-#  if defined (BSD)
-#   if BSD == 43
-      printf ("vax-dec-bsd4.3\n"); exit (0);
-#   else
-#    if BSD == 199006
-      printf ("vax-dec-bsd4.3reno\n"); exit (0);
-#    else
-      printf ("vax-dec-bsd\n"); exit (0);
-#    endif
-#   endif
-#  else
-    printf ("vax-dec-bsd\n"); exit (0);
-#  endif
-# else
-    printf ("vax-dec-ultrix\n"); exit (0);
-# endif
-#endif
-
-#if defined (alliant) && defined (i860)
-  printf ("i860-alliant-bsd\n"); exit (0);
-#endif
-
-  exit (1);
-}
-EOF
-
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
-	{ echo "$SYSTEM_NAME"; exit; }
-
-# Apollos put the system type in the environment.
-
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
-
-# Convex versions that predate uname can use getsysinfo(1)
-
-if [ -x /usr/convex/getsysinfo ]
-then
-    case `getsysinfo -f cpu_type` in
-    c1*)
-	echo c1-convex-bsd
-	exit ;;
-    c2*)
-	if getsysinfo -f scalar_acc
-	then echo c32-convex-bsd
-	else echo c2-convex-bsd
-	fi
-	exit ;;
-    c34*)
-	echo c34-convex-bsd
-	exit ;;
-    c38*)
-	echo c38-convex-bsd
-	exit ;;
-    c4*)
-	echo c4-convex-bsd
-	exit ;;
-    esac
-fi
-
-cat >&2 <<EOF
-$0: unable to guess system type
-
-This script, last modified $timestamp, has failed to recognize
-the operating system you are using. It is advised that you
-download the most up to date version of the config scripts from
-
-  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
-and
-  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
-
-If the version you run ($0) is already up to date, please
-send the following data and any information you think might be
-pertinent to <config-patches at gnu.org> in order to provide the needed
-information to handle your system.
-
-config.guess timestamp = $timestamp
-
-uname -m = `(uname -m) 2>/dev/null || echo unknown`
-uname -r = `(uname -r) 2>/dev/null || echo unknown`
-uname -s = `(uname -s) 2>/dev/null || echo unknown`
-uname -v = `(uname -v) 2>/dev/null || echo unknown`
-
-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
-/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
-
-hostinfo               = `(hostinfo) 2>/dev/null`
-/bin/universe          = `(/bin/universe) 2>/dev/null`
-/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
-/bin/arch              = `(/bin/arch) 2>/dev/null`
-/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
-
-UNAME_MACHINE = ${UNAME_MACHINE}
-UNAME_RELEASE = ${UNAME_RELEASE}
-UNAME_SYSTEM  = ${UNAME_SYSTEM}
-UNAME_VERSION = ${UNAME_VERSION}
-EOF
-
-exit 1
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
diff --git a/libqfits/admin/config.sub b/libqfits/admin/config.sub
deleted file mode 100755
index c894da4..0000000
--- a/libqfits/admin/config.sub
+++ /dev/null
@@ -1,1773 +0,0 @@
-#! /bin/sh
-# Configuration validation subroutine script.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-#   2011, 2012 Free Software Foundation, Inc.
-
-timestamp='2012-02-10'
-
-# This file is (in principle) common to ALL GNU software.
-# The presence of a machine in this file suggests that SOME GNU software
-# can handle that machine.  It does not imply ALL GNU software can.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, see <http://www.gnu.org/licenses/>.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Please send patches to <config-patches at gnu.org>.  Submit a context
-# diff and a properly formatted GNU ChangeLog entry.
-#
-# Configuration subroutine to validate and canonicalize a configuration type.
-# Supply the specified configuration type as an argument.
-# If it is invalid, we print an error message on stderr and exit with code 1.
-# Otherwise, we print the canonical config type on stdout and succeed.
-
-# You can get the latest version of this script from:
-# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
-
-# This file is supposed to be the same for all GNU packages
-# and recognize all the CPU types, system types and aliases
-# that are meaningful with *any* GNU software.
-# Each package is responsible for reporting which valid configurations
-# it does not support.  The user should be able to distinguish
-# a failure to support a valid configuration from a meaningless
-# configuration.
-
-# The goal of this file is to map all the various variations of a given
-# machine specification into a single specification in the form:
-#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
-# or in some cases, the newer four-part form:
-#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
-# It is wrong to echo any other type of specification.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION] CPU-MFR-OPSYS
-       $0 [OPTION] ALIAS
-
-Canonicalize a configuration name.
-
-Operation modes:
-  -h, --help         print this help, then exit
-  -t, --time-stamp   print date of last modification, then exit
-  -v, --version      print version number, then exit
-
-Report bugs and patches to <config-patches at gnu.org>."
-
-version="\
-GNU config.sub ($timestamp)
-
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions.  There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
-  case $1 in
-    --time-stamp | --time* | -t )
-       echo "$timestamp" ; exit ;;
-    --version | -v )
-       echo "$version" ; exit ;;
-    --help | --h* | -h )
-       echo "$usage"; exit ;;
-    -- )     # Stop option processing
-       shift; break ;;
-    - )	# Use stdin as input.
-       break ;;
-    -* )
-       echo "$me: invalid option $1$help"
-       exit 1 ;;
-
-    *local*)
-       # First pass through any local machine types.
-       echo $1
-       exit ;;
-
-    * )
-       break ;;
-  esac
-done
-
-case $# in
- 0) echo "$me: missing argument$help" >&2
-    exit 1;;
- 1) ;;
- *) echo "$me: too many arguments$help" >&2
-    exit 1;;
-esac
-
-# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
-# Here we must recognize all the valid KERNEL-OS combinations.
-maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
-case $maybe_os in
-  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
-  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
-  knetbsd*-gnu* | netbsd*-gnu* | \
-  kopensolaris*-gnu* | \
-  storm-chaos* | os2-emx* | rtmk-nova*)
-    os=-$maybe_os
-    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
-    ;;
-  android-linux)
-    os=-linux-android
-    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
-    ;;
-  *)
-    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
-    if [ $basic_machine != $1 ]
-    then os=`echo $1 | sed 's/.*-/-/'`
-    else os=; fi
-    ;;
-esac
-
-### Let's recognize common machines as not being operating systems so
-### that things like config.sub decstation-3100 work.  We also
-### recognize some manufacturers as not being operating systems, so we
-### can provide default operating systems below.
-case $os in
-	-sun*os*)
-		# Prevent following clause from handling this invalid input.
-		;;
-	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
-	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
-	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
-	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
-	-apple | -axis | -knuth | -cray | -microblaze)
-		os=
-		basic_machine=$1
-		;;
-	-bluegene*)
-		os=-cnk
-		;;
-	-sim | -cisco | -oki | -wec | -winbond)
-		os=
-		basic_machine=$1
-		;;
-	-scout)
-		;;
-	-wrs)
-		os=-vxworks
-		basic_machine=$1
-		;;
-	-chorusos*)
-		os=-chorusos
-		basic_machine=$1
-		;;
-	-chorusrdb)
-		os=-chorusrdb
-		basic_machine=$1
-		;;
-	-hiux*)
-		os=-hiuxwe2
-		;;
-	-sco6)
-		os=-sco5v6
-		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-		;;
-	-sco5)
-		os=-sco3.2v5
-		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-		;;
-	-sco4)
-		os=-sco3.2v4
-		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-		;;
-	-sco3.2.[4-9]*)
-		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
-		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-		;;
-	-sco3.2v[4-9]*)
-		# Don't forget version if it is 3.2v4 or newer.
-		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-		;;
-	-sco5v6*)
-		# Don't forget version if it is 3.2v4 or newer.
-		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-		;;
-	-sco*)
-		os=-sco3.2v2
-		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-		;;
-	-udk*)
-		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-		;;
-	-isc)
-		os=-isc2.2
-		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-		;;
-	-clix*)
-		basic_machine=clipper-intergraph
-		;;
-	-isc*)
-		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-		;;
-	-lynx*)
-		os=-lynxos
-		;;
-	-ptx*)
-		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
-		;;
-	-windowsnt*)
-		os=`echo $os | sed -e 's/windowsnt/winnt/'`
-		;;
-	-psos*)
-		os=-psos
-		;;
-	-mint | -mint[0-9]*)
-		basic_machine=m68k-atari
-		os=-mint
-		;;
-esac
-
-# Decode aliases for certain CPU-COMPANY combinations.
-case $basic_machine in
-	# Recognize the basic CPU types without company name.
-	# Some are omitted here because they have special meanings below.
-	1750a | 580 \
-	| a29k \
-	| aarch64 | aarch64_be \
-	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
-	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
-	| am33_2.0 \
-	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
-        | be32 | be64 \
-	| bfin \
-	| c4x | clipper \
-	| d10v | d30v | dlx | dsp16xx \
-	| epiphany \
-	| fido | fr30 | frv \
-	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
-	| hexagon \
-	| i370 | i860 | i960 | ia64 \
-	| ip2k | iq2000 \
-	| le32 | le64 \
-	| lm32 \
-	| m32c | m32r | m32rle | m68000 | m68k | m88k \
-	| maxq | mb | microblaze | mcore | mep | metag \
-	| mips | mipsbe | mipseb | mipsel | mipsle \
-	| mips16 \
-	| mips64 | mips64el \
-	| mips64octeon | mips64octeonel \
-	| mips64orion | mips64orionel \
-	| mips64r5900 | mips64r5900el \
-	| mips64vr | mips64vrel \
-	| mips64vr4100 | mips64vr4100el \
-	| mips64vr4300 | mips64vr4300el \
-	| mips64vr5000 | mips64vr5000el \
-	| mips64vr5900 | mips64vr5900el \
-	| mipsisa32 | mipsisa32el \
-	| mipsisa32r2 | mipsisa32r2el \
-	| mipsisa64 | mipsisa64el \
-	| mipsisa64r2 | mipsisa64r2el \
-	| mipsisa64sb1 | mipsisa64sb1el \
-	| mipsisa64sr71k | mipsisa64sr71kel \
-	| mipstx39 | mipstx39el \
-	| mn10200 | mn10300 \
-	| moxie \
-	| mt \
-	| msp430 \
-	| nds32 | nds32le | nds32be \
-	| nios | nios2 \
-	| ns16k | ns32k \
-	| open8 \
-	| or32 \
-	| pdp10 | pdp11 | pj | pjl \
-	| powerpc | powerpc64 | powerpc64le | powerpcle \
-	| pyramid \
-	| rl78 | rx \
-	| score \
-	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
-	| sh64 | sh64le \
-	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
-	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
-	| spu \
-	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
-	| ubicom32 \
-	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
-	| we32k \
-	| x86 | xc16x | xstormy16 | xtensa \
-	| z8k | z80)
-		basic_machine=$basic_machine-unknown
-		;;
-	c54x)
-		basic_machine=tic54x-unknown
-		;;
-	c55x)
-		basic_machine=tic55x-unknown
-		;;
-	c6x)
-		basic_machine=tic6x-unknown
-		;;
-	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
-		basic_machine=$basic_machine-unknown
-		os=-none
-		;;
-	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
-		;;
-	ms1)
-		basic_machine=mt-unknown
-		;;
-
-	strongarm | thumb | xscale)
-		basic_machine=arm-unknown
-		;;
-	xgate)
-		basic_machine=$basic_machine-unknown
-		os=-none
-		;;
-	xscaleeb)
-		basic_machine=armeb-unknown
-		;;
-
-	xscaleel)
-		basic_machine=armel-unknown
-		;;
-
-	# We use `pc' rather than `unknown'
-	# because (1) that's what they normally are, and
-	# (2) the word "unknown" tends to confuse beginning users.
-	i*86 | x86_64)
-	  basic_machine=$basic_machine-pc
-	  ;;
-	# Object if more than one company name word.
-	*-*-*)
-		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
-		exit 1
-		;;
-	# Recognize the basic CPU types with company name.
-	580-* \
-	| a29k-* \
-	| aarch64-* | aarch64_be-* \
-	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
-	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
-	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
-	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
-	| avr-* | avr32-* \
-	| be32-* | be64-* \
-	| bfin-* | bs2000-* \
-	| c[123]* | c30-* | [cjt]90-* | c4x-* \
-	| clipper-* | craynv-* | cydra-* \
-	| d10v-* | d30v-* | dlx-* \
-	| elxsi-* \
-	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
-	| h8300-* | h8500-* \
-	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
-	| hexagon-* \
-	| i*86-* | i860-* | i960-* | ia64-* \
-	| ip2k-* | iq2000-* \
-	| le32-* | le64-* \
-	| lm32-* \
-	| m32c-* | m32r-* | m32rle-* \
-	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
-	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
-	| mips16-* \
-	| mips64-* | mips64el-* \
-	| mips64octeon-* | mips64octeonel-* \
-	| mips64orion-* | mips64orionel-* \
-	| mips64r5900-* | mips64r5900el-* \
-	| mips64vr-* | mips64vrel-* \
-	| mips64vr4100-* | mips64vr4100el-* \
-	| mips64vr4300-* | mips64vr4300el-* \
-	| mips64vr5000-* | mips64vr5000el-* \
-	| mips64vr5900-* | mips64vr5900el-* \
-	| mipsisa32-* | mipsisa32el-* \
-	| mipsisa32r2-* | mipsisa32r2el-* \
-	| mipsisa64-* | mipsisa64el-* \
-	| mipsisa64r2-* | mipsisa64r2el-* \
-	| mipsisa64sb1-* | mipsisa64sb1el-* \
-	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
-	| mipstx39-* | mipstx39el-* \
-	| mmix-* \
-	| mt-* \
-	| msp430-* \
-	| nds32-* | nds32le-* | nds32be-* \
-	| nios-* | nios2-* \
-	| none-* | np1-* | ns16k-* | ns32k-* \
-	| open8-* \
-	| orion-* \
-	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
-	| pyramid-* \
-	| rl78-* | romp-* | rs6000-* | rx-* \
-	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
-	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
-	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
-	| sparclite-* \
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
-	| tahoe-* \
-	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
-	| tile*-* \
-	| tron-* \
-	| ubicom32-* \
-	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
-	| vax-* \
-	| we32k-* \
-	| x86-* | x86_64-* | xc16x-* | xps100-* \
-	| xstormy16-* | xtensa*-* \
-	| ymp-* \
-	| z8k-* | z80-*)
-		;;
-	# Recognize the basic CPU types without company name, with glob match.
-	xtensa*)
-		basic_machine=$basic_machine-unknown
-		;;
-	# Recognize the various machine names and aliases which stand
-	# for a CPU type and a company and sometimes even an OS.
-	386bsd)
-		basic_machine=i386-unknown
-		os=-bsd
-		;;
-	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
-		basic_machine=m68000-att
-		;;
-	3b*)
-		basic_machine=we32k-att
-		;;
-	a29khif)
-		basic_machine=a29k-amd
-		os=-udi
-		;;
-	abacus)
-		basic_machine=abacus-unknown
-		;;
-	adobe68k)
-		basic_machine=m68010-adobe
-		os=-scout
-		;;
-	alliant | fx80)
-		basic_machine=fx80-alliant
-		;;
-	altos | altos3068)
-		basic_machine=m68k-altos
-		;;
-	am29k)
-		basic_machine=a29k-none
-		os=-bsd
-		;;
-	amd64)
-		basic_machine=x86_64-pc
-		;;
-	amd64-*)
-		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	amdahl)
-		basic_machine=580-amdahl
-		os=-sysv
-		;;
-	amiga | amiga-*)
-		basic_machine=m68k-unknown
-		;;
-	amigaos | amigados)
-		basic_machine=m68k-unknown
-		os=-amigaos
-		;;
-	amigaunix | amix)
-		basic_machine=m68k-unknown
-		os=-sysv4
-		;;
-	apollo68)
-		basic_machine=m68k-apollo
-		os=-sysv
-		;;
-	apollo68bsd)
-		basic_machine=m68k-apollo
-		os=-bsd
-		;;
-	aros)
-		basic_machine=i386-pc
-		os=-aros
-		;;
-	aux)
-		basic_machine=m68k-apple
-		os=-aux
-		;;
-	balance)
-		basic_machine=ns32k-sequent
-		os=-dynix
-		;;
-	blackfin)
-		basic_machine=bfin-unknown
-		os=-linux
-		;;
-	blackfin-*)
-		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
-		os=-linux
-		;;
-	bluegene*)
-		basic_machine=powerpc-ibm
-		os=-cnk
-		;;
-	c54x-*)
-		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	c55x-*)
-		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	c6x-*)
-		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	c90)
-		basic_machine=c90-cray
-		os=-unicos
-		;;
-	cegcc)
-		basic_machine=arm-unknown
-		os=-cegcc
-		;;
-	convex-c1)
-		basic_machine=c1-convex
-		os=-bsd
-		;;
-	convex-c2)
-		basic_machine=c2-convex
-		os=-bsd
-		;;
-	convex-c32)
-		basic_machine=c32-convex
-		os=-bsd
-		;;
-	convex-c34)
-		basic_machine=c34-convex
-		os=-bsd
-		;;
-	convex-c38)
-		basic_machine=c38-convex
-		os=-bsd
-		;;
-	cray | j90)
-		basic_machine=j90-cray
-		os=-unicos
-		;;
-	craynv)
-		basic_machine=craynv-cray
-		os=-unicosmp
-		;;
-	cr16 | cr16-*)
-		basic_machine=cr16-unknown
-		os=-elf
-		;;
-	crds | unos)
-		basic_machine=m68k-crds
-		;;
-	crisv32 | crisv32-* | etraxfs*)
-		basic_machine=crisv32-axis
-		;;
-	cris | cris-* | etrax*)
-		basic_machine=cris-axis
-		;;
-	crx)
-		basic_machine=crx-unknown
-		os=-elf
-		;;
-	da30 | da30-*)
-		basic_machine=m68k-da30
-		;;
-	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
-		basic_machine=mips-dec
-		;;
-	decsystem10* | dec10*)
-		basic_machine=pdp10-dec
-		os=-tops10
-		;;
-	decsystem20* | dec20*)
-		basic_machine=pdp10-dec
-		os=-tops20
-		;;
-	delta | 3300 | motorola-3300 | motorola-delta \
-	      | 3300-motorola | delta-motorola)
-		basic_machine=m68k-motorola
-		;;
-	delta88)
-		basic_machine=m88k-motorola
-		os=-sysv3
-		;;
-	dicos)
-		basic_machine=i686-pc
-		os=-dicos
-		;;
-	djgpp)
-		basic_machine=i586-pc
-		os=-msdosdjgpp
-		;;
-	dpx20 | dpx20-*)
-		basic_machine=rs6000-bull
-		os=-bosx
-		;;
-	dpx2* | dpx2*-bull)
-		basic_machine=m68k-bull
-		os=-sysv3
-		;;
-	ebmon29k)
-		basic_machine=a29k-amd
-		os=-ebmon
-		;;
-	elxsi)
-		basic_machine=elxsi-elxsi
-		os=-bsd
-		;;
-	encore | umax | mmax)
-		basic_machine=ns32k-encore
-		;;
-	es1800 | OSE68k | ose68k | ose | OSE)
-		basic_machine=m68k-ericsson
-		os=-ose
-		;;
-	fx2800)
-		basic_machine=i860-alliant
-		;;
-	genix)
-		basic_machine=ns32k-ns
-		;;
-	gmicro)
-		basic_machine=tron-gmicro
-		os=-sysv
-		;;
-	go32)
-		basic_machine=i386-pc
-		os=-go32
-		;;
-	h3050r* | hiux*)
-		basic_machine=hppa1.1-hitachi
-		os=-hiuxwe2
-		;;
-	h8300hms)
-		basic_machine=h8300-hitachi
-		os=-hms
-		;;
-	h8300xray)
-		basic_machine=h8300-hitachi
-		os=-xray
-		;;
-	h8500hms)
-		basic_machine=h8500-hitachi
-		os=-hms
-		;;
-	harris)
-		basic_machine=m88k-harris
-		os=-sysv3
-		;;
-	hp300-*)
-		basic_machine=m68k-hp
-		;;
-	hp300bsd)
-		basic_machine=m68k-hp
-		os=-bsd
-		;;
-	hp300hpux)
-		basic_machine=m68k-hp
-		os=-hpux
-		;;
-	hp3k9[0-9][0-9] | hp9[0-9][0-9])
-		basic_machine=hppa1.0-hp
-		;;
-	hp9k2[0-9][0-9] | hp9k31[0-9])
-		basic_machine=m68000-hp
-		;;
-	hp9k3[2-9][0-9])
-		basic_machine=m68k-hp
-		;;
-	hp9k6[0-9][0-9] | hp6[0-9][0-9])
-		basic_machine=hppa1.0-hp
-		;;
-	hp9k7[0-79][0-9] | hp7[0-79][0-9])
-		basic_machine=hppa1.1-hp
-		;;
-	hp9k78[0-9] | hp78[0-9])
-		# FIXME: really hppa2.0-hp
-		basic_machine=hppa1.1-hp
-		;;
-	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
-		# FIXME: really hppa2.0-hp
-		basic_machine=hppa1.1-hp
-		;;
-	hp9k8[0-9][13679] | hp8[0-9][13679])
-		basic_machine=hppa1.1-hp
-		;;
-	hp9k8[0-9][0-9] | hp8[0-9][0-9])
-		basic_machine=hppa1.0-hp
-		;;
-	hppa-next)
-		os=-nextstep3
-		;;
-	hppaosf)
-		basic_machine=hppa1.1-hp
-		os=-osf
-		;;
-	hppro)
-		basic_machine=hppa1.1-hp
-		os=-proelf
-		;;
-	i370-ibm* | ibm*)
-		basic_machine=i370-ibm
-		;;
-	i*86v32)
-		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
-		os=-sysv32
-		;;
-	i*86v4*)
-		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
-		os=-sysv4
-		;;
-	i*86v)
-		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
-		os=-sysv
-		;;
-	i*86sol2)
-		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
-		os=-solaris2
-		;;
-	i386mach)
-		basic_machine=i386-mach
-		os=-mach
-		;;
-	i386-vsta | vsta)
-		basic_machine=i386-unknown
-		os=-vsta
-		;;
-	iris | iris4d)
-		basic_machine=mips-sgi
-		case $os in
-		    -irix*)
-			;;
-		    *)
-			os=-irix4
-			;;
-		esac
-		;;
-	isi68 | isi)
-		basic_machine=m68k-isi
-		os=-sysv
-		;;
-	m68knommu)
-		basic_machine=m68k-unknown
-		os=-linux
-		;;
-	m68knommu-*)
-		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
-		os=-linux
-		;;
-	m88k-omron*)
-		basic_machine=m88k-omron
-		;;
-	magnum | m3230)
-		basic_machine=mips-mips
-		os=-sysv
-		;;
-	merlin)
-		basic_machine=ns32k-utek
-		os=-sysv
-		;;
-	microblaze)
-		basic_machine=microblaze-xilinx
-		;;
-	mingw32)
-		basic_machine=i386-pc
-		os=-mingw32
-		;;
-	mingw32ce)
-		basic_machine=arm-unknown
-		os=-mingw32ce
-		;;
-	miniframe)
-		basic_machine=m68000-convergent
-		;;
-	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
-		basic_machine=m68k-atari
-		os=-mint
-		;;
-	mips3*-*)
-		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
-		;;
-	mips3*)
-		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
-		;;
-	monitor)
-		basic_machine=m68k-rom68k
-		os=-coff
-		;;
-	morphos)
-		basic_machine=powerpc-unknown
-		os=-morphos
-		;;
-	msdos)
-		basic_machine=i386-pc
-		os=-msdos
-		;;
-	ms1-*)
-		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
-		;;
-	msys)
-		basic_machine=i386-pc
-		os=-msys
-		;;
-	mvs)
-		basic_machine=i370-ibm
-		os=-mvs
-		;;
-	nacl)
-		basic_machine=le32-unknown
-		os=-nacl
-		;;
-	ncr3000)
-		basic_machine=i486-ncr
-		os=-sysv4
-		;;
-	netbsd386)
-		basic_machine=i386-unknown
-		os=-netbsd
-		;;
-	netwinder)
-		basic_machine=armv4l-rebel
-		os=-linux
-		;;
-	news | news700 | news800 | news900)
-		basic_machine=m68k-sony
-		os=-newsos
-		;;
-	news1000)
-		basic_machine=m68030-sony
-		os=-newsos
-		;;
-	news-3600 | risc-news)
-		basic_machine=mips-sony
-		os=-newsos
-		;;
-	necv70)
-		basic_machine=v70-nec
-		os=-sysv
-		;;
-	next | m*-next )
-		basic_machine=m68k-next
-		case $os in
-		    -nextstep* )
-			;;
-		    -ns2*)
-		      os=-nextstep2
-			;;
-		    *)
-		      os=-nextstep3
-			;;
-		esac
-		;;
-	nh3000)
-		basic_machine=m68k-harris
-		os=-cxux
-		;;
-	nh[45]000)
-		basic_machine=m88k-harris
-		os=-cxux
-		;;
-	nindy960)
-		basic_machine=i960-intel
-		os=-nindy
-		;;
-	mon960)
-		basic_machine=i960-intel
-		os=-mon960
-		;;
-	nonstopux)
-		basic_machine=mips-compaq
-		os=-nonstopux
-		;;
-	np1)
-		basic_machine=np1-gould
-		;;
-	neo-tandem)
-		basic_machine=neo-tandem
-		;;
-	nse-tandem)
-		basic_machine=nse-tandem
-		;;
-	nsr-tandem)
-		basic_machine=nsr-tandem
-		;;
-	op50n-* | op60c-*)
-		basic_machine=hppa1.1-oki
-		os=-proelf
-		;;
-	openrisc | openrisc-*)
-		basic_machine=or32-unknown
-		;;
-	os400)
-		basic_machine=powerpc-ibm
-		os=-os400
-		;;
-	OSE68000 | ose68000)
-		basic_machine=m68000-ericsson
-		os=-ose
-		;;
-	os68k)
-		basic_machine=m68k-none
-		os=-os68k
-		;;
-	pa-hitachi)
-		basic_machine=hppa1.1-hitachi
-		os=-hiuxwe2
-		;;
-	paragon)
-		basic_machine=i860-intel
-		os=-osf
-		;;
-	parisc)
-		basic_machine=hppa-unknown
-		os=-linux
-		;;
-	parisc-*)
-		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
-		os=-linux
-		;;
-	pbd)
-		basic_machine=sparc-tti
-		;;
-	pbb)
-		basic_machine=m68k-tti
-		;;
-	pc532 | pc532-*)
-		basic_machine=ns32k-pc532
-		;;
-	pc98)
-		basic_machine=i386-pc
-		;;
-	pc98-*)
-		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	pentium | p5 | k5 | k6 | nexgen | viac3)
-		basic_machine=i586-pc
-		;;
-	pentiumpro | p6 | 6x86 | athlon | athlon_*)
-		basic_machine=i686-pc
-		;;
-	pentiumii | pentium2 | pentiumiii | pentium3)
-		basic_machine=i686-pc
-		;;
-	pentium4)
-		basic_machine=i786-pc
-		;;
-	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
-		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	pentiumpro-* | p6-* | 6x86-* | athlon-*)
-		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
-		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	pentium4-*)
-		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	pn)
-		basic_machine=pn-gould
-		;;
-	power)	basic_machine=power-ibm
-		;;
-	ppc | ppcbe)	basic_machine=powerpc-unknown
-		;;
-	ppc-* | ppcbe-*)
-		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	ppcle | powerpclittle | ppc-le | powerpc-little)
-		basic_machine=powerpcle-unknown
-		;;
-	ppcle-* | powerpclittle-*)
-		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	ppc64)	basic_machine=powerpc64-unknown
-		;;
-	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
-		basic_machine=powerpc64le-unknown
-		;;
-	ppc64le-* | powerpc64little-*)
-		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	ps2)
-		basic_machine=i386-ibm
-		;;
-	pw32)
-		basic_machine=i586-unknown
-		os=-pw32
-		;;
-	rdos)
-		basic_machine=i386-pc
-		os=-rdos
-		;;
-	rom68k)
-		basic_machine=m68k-rom68k
-		os=-coff
-		;;
-	rm[46]00)
-		basic_machine=mips-siemens
-		;;
-	rtpc | rtpc-*)
-		basic_machine=romp-ibm
-		;;
-	s390 | s390-*)
-		basic_machine=s390-ibm
-		;;
-	s390x | s390x-*)
-		basic_machine=s390x-ibm
-		;;
-	sa29200)
-		basic_machine=a29k-amd
-		os=-udi
-		;;
-	sb1)
-		basic_machine=mipsisa64sb1-unknown
-		;;
-	sb1el)
-		basic_machine=mipsisa64sb1el-unknown
-		;;
-	sde)
-		basic_machine=mipsisa32-sde
-		os=-elf
-		;;
-	sei)
-		basic_machine=mips-sei
-		os=-seiux
-		;;
-	sequent)
-		basic_machine=i386-sequent
-		;;
-	sh)
-		basic_machine=sh-hitachi
-		os=-hms
-		;;
-	sh5el)
-		basic_machine=sh5le-unknown
-		;;
-	sh64)
-		basic_machine=sh64-unknown
-		;;
-	sparclite-wrs | simso-wrs)
-		basic_machine=sparclite-wrs
-		os=-vxworks
-		;;
-	sps7)
-		basic_machine=m68k-bull
-		os=-sysv2
-		;;
-	spur)
-		basic_machine=spur-unknown
-		;;
-	st2000)
-		basic_machine=m68k-tandem
-		;;
-	stratus)
-		basic_machine=i860-stratus
-		os=-sysv4
-		;;
-	strongarm-* | thumb-*)
-		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
-		;;
-	sun2)
-		basic_machine=m68000-sun
-		;;
-	sun2os3)
-		basic_machine=m68000-sun
-		os=-sunos3
-		;;
-	sun2os4)
-		basic_machine=m68000-sun
-		os=-sunos4
-		;;
-	sun3os3)
-		basic_machine=m68k-sun
-		os=-sunos3
-		;;
-	sun3os4)
-		basic_machine=m68k-sun
-		os=-sunos4
-		;;
-	sun4os3)
-		basic_machine=sparc-sun
-		os=-sunos3
-		;;
-	sun4os4)
-		basic_machine=sparc-sun
-		os=-sunos4
-		;;
-	sun4sol2)
-		basic_machine=sparc-sun
-		os=-solaris2
-		;;
-	sun3 | sun3-*)
-		basic_machine=m68k-sun
-		;;
-	sun4)
-		basic_machine=sparc-sun
-		;;
-	sun386 | sun386i | roadrunner)
-		basic_machine=i386-sun
-		;;
-	sv1)
-		basic_machine=sv1-cray
-		os=-unicos
-		;;
-	symmetry)
-		basic_machine=i386-sequent
-		os=-dynix
-		;;
-	t3e)
-		basic_machine=alphaev5-cray
-		os=-unicos
-		;;
-	t90)
-		basic_machine=t90-cray
-		os=-unicos
-		;;
-	tile*)
-		basic_machine=$basic_machine-unknown
-		os=-linux-gnu
-		;;
-	tx39)
-		basic_machine=mipstx39-unknown
-		;;
-	tx39el)
-		basic_machine=mipstx39el-unknown
-		;;
-	toad1)
-		basic_machine=pdp10-xkl
-		os=-tops20
-		;;
-	tower | tower-32)
-		basic_machine=m68k-ncr
-		;;
-	tpf)
-		basic_machine=s390x-ibm
-		os=-tpf
-		;;
-	udi29k)
-		basic_machine=a29k-amd
-		os=-udi
-		;;
-	ultra3)
-		basic_machine=a29k-nyu
-		os=-sym1
-		;;
-	v810 | necv810)
-		basic_machine=v810-nec
-		os=-none
-		;;
-	vaxv)
-		basic_machine=vax-dec
-		os=-sysv
-		;;
-	vms)
-		basic_machine=vax-dec
-		os=-vms
-		;;
-	vpp*|vx|vx-*)
-		basic_machine=f301-fujitsu
-		;;
-	vxworks960)
-		basic_machine=i960-wrs
-		os=-vxworks
-		;;
-	vxworks68)
-		basic_machine=m68k-wrs
-		os=-vxworks
-		;;
-	vxworks29k)
-		basic_machine=a29k-wrs
-		os=-vxworks
-		;;
-	w65*)
-		basic_machine=w65-wdc
-		os=-none
-		;;
-	w89k-*)
-		basic_machine=hppa1.1-winbond
-		os=-proelf
-		;;
-	xbox)
-		basic_machine=i686-pc
-		os=-mingw32
-		;;
-	xps | xps100)
-		basic_machine=xps100-honeywell
-		;;
-	xscale-* | xscalee[bl]-*)
-		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
-		;;
-	ymp)
-		basic_machine=ymp-cray
-		os=-unicos
-		;;
-	z8k-*-coff)
-		basic_machine=z8k-unknown
-		os=-sim
-		;;
-	z80-*-coff)
-		basic_machine=z80-unknown
-		os=-sim
-		;;
-	none)
-		basic_machine=none-none
-		os=-none
-		;;
-
-# Here we handle the default manufacturer of certain CPU types.  It is in
-# some cases the only manufacturer, in others, it is the most popular.
-	w89k)
-		basic_machine=hppa1.1-winbond
-		;;
-	op50n)
-		basic_machine=hppa1.1-oki
-		;;
-	op60c)
-		basic_machine=hppa1.1-oki
-		;;
-	romp)
-		basic_machine=romp-ibm
-		;;
-	mmix)
-		basic_machine=mmix-knuth
-		;;
-	rs6000)
-		basic_machine=rs6000-ibm
-		;;
-	vax)
-		basic_machine=vax-dec
-		;;
-	pdp10)
-		# there are many clones, so DEC is not a safe bet
-		basic_machine=pdp10-unknown
-		;;
-	pdp11)
-		basic_machine=pdp11-dec
-		;;
-	we32k)
-		basic_machine=we32k-att
-		;;
-	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
-		basic_machine=sh-unknown
-		;;
-	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
-		basic_machine=sparc-sun
-		;;
-	cydra)
-		basic_machine=cydra-cydrome
-		;;
-	orion)
-		basic_machine=orion-highlevel
-		;;
-	orion105)
-		basic_machine=clipper-highlevel
-		;;
-	mac | mpw | mac-mpw)
-		basic_machine=m68k-apple
-		;;
-	pmac | pmac-mpw)
-		basic_machine=powerpc-apple
-		;;
-	*-unknown)
-		# Make sure to match an already-canonicalized machine name.
-		;;
-	*)
-		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
-		exit 1
-		;;
-esac
-
-# Here we canonicalize certain aliases for manufacturers.
-case $basic_machine in
-	*-digital*)
-		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
-		;;
-	*-commodore*)
-		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
-		;;
-	*)
-		;;
-esac
-
-# Decode manufacturer-specific aliases for certain operating systems.
-
-if [ x"$os" != x"" ]
-then
-case $os in
-	# First match some system type aliases
-	# that might get confused with valid system types.
-	# -solaris* is a basic system type, with this one exception.
-	-auroraux)
-		os=-auroraux
-		;;
-	-solaris1 | -solaris1.*)
-		os=`echo $os | sed -e 's|solaris1|sunos4|'`
-		;;
-	-solaris)
-		os=-solaris2
-		;;
-	-svr4*)
-		os=-sysv4
-		;;
-	-unixware*)
-		os=-sysv4.2uw
-		;;
-	-gnu/linux*)
-		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
-		;;
-	# First accept the basic system types.
-	# The portable systems comes first.
-	# Each alternative MUST END IN A *, to match a version number.
-	# -sysv* is not here because it comes later, after sysvr4.
-	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
-	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
-	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
-	      | -sym* | -kopensolaris* \
-	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
-	      | -aos* | -aros* \
-	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
-	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
-	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
-	      | -openbsd* | -solidbsd* \
-	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
-	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
-	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
-	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
-	      | -chorusos* | -chorusrdb* | -cegcc* \
-	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
-	      | -mingw32* | -linux-gnu* | -linux-android* \
-	      | -linux-newlib* | -linux-uclibc* \
-	      | -uxpv* | -beos* | -mpeix* | -udk* \
-	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
-	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
-	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
-	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
-	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
-	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
-	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
-	# Remember, each alternative MUST END IN *, to match a version number.
-		;;
-	-qnx*)
-		case $basic_machine in
-		    x86-* | i*86-*)
-			;;
-		    *)
-			os=-nto$os
-			;;
-		esac
-		;;
-	-nto-qnx*)
-		;;
-	-nto*)
-		os=`echo $os | sed -e 's|nto|nto-qnx|'`
-		;;
-	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
-	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
-	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
-		;;
-	-mac*)
-		os=`echo $os | sed -e 's|mac|macos|'`
-		;;
-	-linux-dietlibc)
-		os=-linux-dietlibc
-		;;
-	-linux*)
-		os=`echo $os | sed -e 's|linux|linux-gnu|'`
-		;;
-	-sunos5*)
-		os=`echo $os | sed -e 's|sunos5|solaris2|'`
-		;;
-	-sunos6*)
-		os=`echo $os | sed -e 's|sunos6|solaris3|'`
-		;;
-	-opened*)
-		os=-openedition
-		;;
-	-os400*)
-		os=-os400
-		;;
-	-wince*)
-		os=-wince
-		;;
-	-osfrose*)
-		os=-osfrose
-		;;
-	-osf*)
-		os=-osf
-		;;
-	-utek*)
-		os=-bsd
-		;;
-	-dynix*)
-		os=-bsd
-		;;
-	-acis*)
-		os=-aos
-		;;
-	-atheos*)
-		os=-atheos
-		;;
-	-syllable*)
-		os=-syllable
-		;;
-	-386bsd)
-		os=-bsd
-		;;
-	-ctix* | -uts*)
-		os=-sysv
-		;;
-	-nova*)
-		os=-rtmk-nova
-		;;
-	-ns2 )
-		os=-nextstep2
-		;;
-	-nsk*)
-		os=-nsk
-		;;
-	# Preserve the version number of sinix5.
-	-sinix5.*)
-		os=`echo $os | sed -e 's|sinix|sysv|'`
-		;;
-	-sinix*)
-		os=-sysv4
-		;;
-	-tpf*)
-		os=-tpf
-		;;
-	-triton*)
-		os=-sysv3
-		;;
-	-oss*)
-		os=-sysv3
-		;;
-	-svr4)
-		os=-sysv4
-		;;
-	-svr3)
-		os=-sysv3
-		;;
-	-sysvr4)
-		os=-sysv4
-		;;
-	# This must come after -sysvr4.
-	-sysv*)
-		;;
-	-ose*)
-		os=-ose
-		;;
-	-es1800*)
-		os=-ose
-		;;
-	-xenix)
-		os=-xenix
-		;;
-	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
-		os=-mint
-		;;
-	-aros*)
-		os=-aros
-		;;
-	-kaos*)
-		os=-kaos
-		;;
-	-zvmoe)
-		os=-zvmoe
-		;;
-	-dicos*)
-		os=-dicos
-		;;
-	-nacl*)
-		;;
-	-none)
-		;;
-	*)
-		# Get rid of the `-' at the beginning of $os.
-		os=`echo $os | sed 's/[^-]*-//'`
-		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
-		exit 1
-		;;
-esac
-else
-
-# Here we handle the default operating systems that come with various machines.
-# The value should be what the vendor currently ships out the door with their
-# machine or put another way, the most popular os provided with the machine.
-
-# Note that if you're going to try to match "-MANUFACTURER" here (say,
-# "-sun"), then you have to tell the case statement up towards the top
-# that MANUFACTURER isn't an operating system.  Otherwise, code above
-# will signal an error saying that MANUFACTURER isn't an operating
-# system, and we'll never get to this point.
-
-case $basic_machine in
-	score-*)
-		os=-elf
-		;;
-	spu-*)
-		os=-elf
-		;;
-	*-acorn)
-		os=-riscix1.2
-		;;
-	arm*-rebel)
-		os=-linux
-		;;
-	arm*-semi)
-		os=-aout
-		;;
-	c4x-* | tic4x-*)
-		os=-coff
-		;;
-	tic54x-*)
-		os=-coff
-		;;
-	tic55x-*)
-		os=-coff
-		;;
-	tic6x-*)
-		os=-coff
-		;;
-	# This must come before the *-dec entry.
-	pdp10-*)
-		os=-tops20
-		;;
-	pdp11-*)
-		os=-none
-		;;
-	*-dec | vax-*)
-		os=-ultrix4.2
-		;;
-	m68*-apollo)
-		os=-domain
-		;;
-	i386-sun)
-		os=-sunos4.0.2
-		;;
-	m68000-sun)
-		os=-sunos3
-		;;
-	m68*-cisco)
-		os=-aout
-		;;
-	mep-*)
-		os=-elf
-		;;
-	mips*-cisco)
-		os=-elf
-		;;
-	mips*-*)
-		os=-elf
-		;;
-	or32-*)
-		os=-coff
-		;;
-	*-tti)	# must be before sparc entry or we get the wrong os.
-		os=-sysv3
-		;;
-	sparc-* | *-sun)
-		os=-sunos4.1.1
-		;;
-	*-be)
-		os=-beos
-		;;
-	*-haiku)
-		os=-haiku
-		;;
-	*-ibm)
-		os=-aix
-		;;
-	*-knuth)
-		os=-mmixware
-		;;
-	*-wec)
-		os=-proelf
-		;;
-	*-winbond)
-		os=-proelf
-		;;
-	*-oki)
-		os=-proelf
-		;;
-	*-hp)
-		os=-hpux
-		;;
-	*-hitachi)
-		os=-hiux
-		;;
-	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
-		os=-sysv
-		;;
-	*-cbm)
-		os=-amigaos
-		;;
-	*-dg)
-		os=-dgux
-		;;
-	*-dolphin)
-		os=-sysv3
-		;;
-	m68k-ccur)
-		os=-rtu
-		;;
-	m88k-omron*)
-		os=-luna
-		;;
-	*-next )
-		os=-nextstep
-		;;
-	*-sequent)
-		os=-ptx
-		;;
-	*-crds)
-		os=-unos
-		;;
-	*-ns)
-		os=-genix
-		;;
-	i370-*)
-		os=-mvs
-		;;
-	*-next)
-		os=-nextstep3
-		;;
-	*-gould)
-		os=-sysv
-		;;
-	*-highlevel)
-		os=-bsd
-		;;
-	*-encore)
-		os=-bsd
-		;;
-	*-sgi)
-		os=-irix
-		;;
-	*-siemens)
-		os=-sysv4
-		;;
-	*-masscomp)
-		os=-rtu
-		;;
-	f30[01]-fujitsu | f700-fujitsu)
-		os=-uxpv
-		;;
-	*-rom68k)
-		os=-coff
-		;;
-	*-*bug)
-		os=-coff
-		;;
-	*-apple)
-		os=-macos
-		;;
-	*-atari*)
-		os=-mint
-		;;
-	*)
-		os=-none
-		;;
-esac
-fi
-
-# Here we handle the case where we know the os, and the CPU type, but not the
-# manufacturer.  We pick the logical manufacturer.
-vendor=unknown
-case $basic_machine in
-	*-unknown)
-		case $os in
-			-riscix*)
-				vendor=acorn
-				;;
-			-sunos*)
-				vendor=sun
-				;;
-			-cnk*|-aix*)
-				vendor=ibm
-				;;
-			-beos*)
-				vendor=be
-				;;
-			-hpux*)
-				vendor=hp
-				;;
-			-mpeix*)
-				vendor=hp
-				;;
-			-hiux*)
-				vendor=hitachi
-				;;
-			-unos*)
-				vendor=crds
-				;;
-			-dgux*)
-				vendor=dg
-				;;
-			-luna*)
-				vendor=omron
-				;;
-			-genix*)
-				vendor=ns
-				;;
-			-mvs* | -opened*)
-				vendor=ibm
-				;;
-			-os400*)
-				vendor=ibm
-				;;
-			-ptx*)
-				vendor=sequent
-				;;
-			-tpf*)
-				vendor=ibm
-				;;
-			-vxsim* | -vxworks* | -windiss*)
-				vendor=wrs
-				;;
-			-aux*)
-				vendor=apple
-				;;
-			-hms*)
-				vendor=hitachi
-				;;
-			-mpw* | -macos*)
-				vendor=apple
-				;;
-			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
-				vendor=atari
-				;;
-			-vos*)
-				vendor=stratus
-				;;
-		esac
-		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
-		;;
-esac
-
-echo $basic_machine$os
-exit
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
diff --git a/libqfits/admin/depcomp b/libqfits/admin/depcomp
deleted file mode 100755
index 25a39e6..0000000
--- a/libqfits/admin/depcomp
+++ /dev/null
@@ -1,708 +0,0 @@
-#! /bin/sh
-# depcomp - compile a program generating dependencies as side-effects
-
-scriptversion=2012-03-27.16; # UTC
-
-# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
-# 2011, 2012 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# Originally written by Alexandre Oliva <oliva at dcc.unicamp.br>.
-
-case $1 in
-  '')
-     echo "$0: No command.  Try '$0 --help' for more information." 1>&2
-     exit 1;
-     ;;
-  -h | --h*)
-    cat <<\EOF
-Usage: depcomp [--help] [--version] PROGRAM [ARGS]
-
-Run PROGRAMS ARGS to compile a file, generating dependencies
-as side-effects.
-
-Environment variables:
-  depmode     Dependency tracking mode.
-  source      Source file read by 'PROGRAMS ARGS'.
-  object      Object file output by 'PROGRAMS ARGS'.
-  DEPDIR      directory where to store dependencies.
-  depfile     Dependency file to output.
-  tmpdepfile  Temporary file to use when outputting dependencies.
-  libtool     Whether libtool is used (yes/no).
-
-Report bugs to <bug-automake at gnu.org>.
-EOF
-    exit $?
-    ;;
-  -v | --v*)
-    echo "depcomp $scriptversion"
-    exit $?
-    ;;
-esac
-
-# A tabulation character.
-tab='	'
-# A newline character.
-nl='
-'
-
-if test -z "$depmode" || test -z "$source" || test -z "$object"; then
-  echo "depcomp: Variables source, object and depmode must be set" 1>&2
-  exit 1
-fi
-
-# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
-depfile=${depfile-`echo "$object" |
-  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
-tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
-
-rm -f "$tmpdepfile"
-
-# Some modes work just like other modes, but use different flags.  We
-# parameterize here, but still list the modes in the big case below,
-# to make depend.m4 easier to write.  Note that we *cannot* use a case
-# here, because this file can only contain one case statement.
-if test "$depmode" = hp; then
-  # HP compiler uses -M and no extra arg.
-  gccflag=-M
-  depmode=gcc
-fi
-
-if test "$depmode" = dashXmstdout; then
-   # This is just like dashmstdout with a different argument.
-   dashmflag=-xM
-   depmode=dashmstdout
-fi
-
-cygpath_u="cygpath -u -f -"
-if test "$depmode" = msvcmsys; then
-   # This is just like msvisualcpp but w/o cygpath translation.
-   # Just convert the backslash-escaped backslashes to single forward
-   # slashes to satisfy depend.m4
-   cygpath_u='sed s,\\\\,/,g'
-   depmode=msvisualcpp
-fi
-
-if test "$depmode" = msvc7msys; then
-   # This is just like msvc7 but w/o cygpath translation.
-   # Just convert the backslash-escaped backslashes to single forward
-   # slashes to satisfy depend.m4
-   cygpath_u='sed s,\\\\,/,g'
-   depmode=msvc7
-fi
-
-if test "$depmode" = xlc; then
-   # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.
-   gccflag=-qmakedep=gcc,-MF
-   depmode=gcc
-fi
-
-case "$depmode" in
-gcc3)
-## gcc 3 implements dependency tracking that does exactly what
-## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
-## it if -MD -MP comes after the -MF stuff.  Hmm.
-## Unfortunately, FreeBSD c89 acceptance of flags depends upon
-## the command line argument order; so add the flags where they
-## appear in depend2.am.  Note that the slowdown incurred here
-## affects only configure: in makefiles, %FASTDEP% shortcuts this.
-  for arg
-  do
-    case $arg in
-    -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
-    *)  set fnord "$@" "$arg" ;;
-    esac
-    shift # fnord
-    shift # $arg
-  done
-  "$@"
-  stat=$?
-  if test $stat -eq 0; then :
-  else
-    rm -f "$tmpdepfile"
-    exit $stat
-  fi
-  mv "$tmpdepfile" "$depfile"
-  ;;
-
-gcc)
-## There are various ways to get dependency output from gcc.  Here's
-## why we pick this rather obscure method:
-## - Don't want to use -MD because we'd like the dependencies to end
-##   up in a subdir.  Having to rename by hand is ugly.
-##   (We might end up doing this anyway to support other compilers.)
-## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
-##   -MM, not -M (despite what the docs say).
-## - Using -M directly means running the compiler twice (even worse
-##   than renaming).
-  if test -z "$gccflag"; then
-    gccflag=-MD,
-  fi
-  "$@" -Wp,"$gccflag$tmpdepfile"
-  stat=$?
-  if test $stat -eq 0; then :
-  else
-    rm -f "$tmpdepfile"
-    exit $stat
-  fi
-  rm -f "$depfile"
-  echo "$object : \\" > "$depfile"
-  alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
-## The second -e expression handles DOS-style file names with drive letters.
-  sed -e 's/^[^:]*: / /' \
-      -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
-## This next piece of magic avoids the "deleted header file" problem.
-## The problem is that when a header file which appears in a .P file
-## is deleted, the dependency causes make to die (because there is
-## typically no way to rebuild the header).  We avoid this by adding
-## dummy dependencies for each header file.  Too bad gcc doesn't do
-## this for us directly.
-  tr ' ' "$nl" < "$tmpdepfile" |
-## Some versions of gcc put a space before the ':'.  On the theory
-## that the space means something, we add a space to the output as
-## well.  hp depmode also adds that space, but also prefixes the VPATH
-## to the object.  Take care to not repeat it in the output.
-## Some versions of the HPUX 10.20 sed can't process this invocation
-## correctly.  Breaking it into two sed invocations is a workaround.
-    sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
-      | sed -e 's/$/ :/' >> "$depfile"
-  rm -f "$tmpdepfile"
-  ;;
-
-hp)
-  # This case exists only to let depend.m4 do its work.  It works by
-  # looking at the text of this script.  This case will never be run,
-  # since it is checked for above.
-  exit 1
-  ;;
-
-sgi)
-  if test "$libtool" = yes; then
-    "$@" "-Wp,-MDupdate,$tmpdepfile"
-  else
-    "$@" -MDupdate "$tmpdepfile"
-  fi
-  stat=$?
-  if test $stat -eq 0; then :
-  else
-    rm -f "$tmpdepfile"
-    exit $stat
-  fi
-  rm -f "$depfile"
-
-  if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files
-    echo "$object : \\" > "$depfile"
-
-    # Clip off the initial element (the dependent).  Don't try to be
-    # clever and replace this with sed code, as IRIX sed won't handle
-    # lines with more than a fixed number of characters (4096 in
-    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
-    # the IRIX cc adds comments like '#:fec' to the end of the
-    # dependency line.
-    tr ' ' "$nl" < "$tmpdepfile" \
-    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
-    tr "$nl" ' ' >> "$depfile"
-    echo >> "$depfile"
-
-    # The second pass generates a dummy entry for each header file.
-    tr ' ' "$nl" < "$tmpdepfile" \
-   | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
-   >> "$depfile"
-  else
-    # The sourcefile does not contain any dependencies, so just
-    # store a dummy comment line, to avoid errors with the Makefile
-    # "include basename.Plo" scheme.
-    echo "#dummy" > "$depfile"
-  fi
-  rm -f "$tmpdepfile"
-  ;;
-
-xlc)
-  # This case exists only to let depend.m4 do its work.  It works by
-  # looking at the text of this script.  This case will never be run,
-  # since it is checked for above.
-  exit 1
-  ;;
-
-aix)
-  # The C for AIX Compiler uses -M and outputs the dependencies
-  # in a .u file.  In older versions, this file always lives in the
-  # current directory.  Also, the AIX compiler puts '$object:' at the
-  # start of each line; $object doesn't have directory information.
-  # Version 6 uses the directory in both cases.
-  dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
-  test "x$dir" = "x$object" && dir=
-  base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
-  if test "$libtool" = yes; then
-    tmpdepfile1=$dir$base.u
-    tmpdepfile2=$base.u
-    tmpdepfile3=$dir.libs/$base.u
-    "$@" -Wc,-M
-  else
-    tmpdepfile1=$dir$base.u
-    tmpdepfile2=$dir$base.u
-    tmpdepfile3=$dir$base.u
-    "$@" -M
-  fi
-  stat=$?
-
-  if test $stat -eq 0; then :
-  else
-    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
-    exit $stat
-  fi
-
-  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
-  do
-    test -f "$tmpdepfile" && break
-  done
-  if test -f "$tmpdepfile"; then
-    # Each line is of the form 'foo.o: dependent.h'.
-    # Do two passes, one to just change these to
-    # '$object: dependent.h' and one to simply 'dependent.h:'.
-    sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
-    sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
-  else
-    # The sourcefile does not contain any dependencies, so just
-    # store a dummy comment line, to avoid errors with the Makefile
-    # "include basename.Plo" scheme.
-    echo "#dummy" > "$depfile"
-  fi
-  rm -f "$tmpdepfile"
-  ;;
-
-icc)
-  # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.
-  # However on
-  #    $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c
-  # ICC 7.0 will fill foo.d with something like
-  #    foo.o: sub/foo.c
-  #    foo.o: sub/foo.h
-  # which is wrong.  We want
-  #    sub/foo.o: sub/foo.c
-  #    sub/foo.o: sub/foo.h
-  #    sub/foo.c:
-  #    sub/foo.h:
-  # ICC 7.1 will output
-  #    foo.o: sub/foo.c sub/foo.h
-  # and will wrap long lines using '\':
-  #    foo.o: sub/foo.c ... \
-  #     sub/foo.h ... \
-  #     ...
-  # tcc 0.9.26 (FIXME still under development at the moment of writing)
-  # will emit a similar output, but also prepend the continuation lines
-  # with horizontal tabulation characters.
-  "$@" -MD -MF "$tmpdepfile"
-  stat=$?
-  if test $stat -eq 0; then :
-  else
-    rm -f "$tmpdepfile"
-    exit $stat
-  fi
-  rm -f "$depfile"
-  # Each line is of the form 'foo.o: dependent.h',
-  # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'.
-  # Do two passes, one to just change these to
-  # '$object: dependent.h' and one to simply 'dependent.h:'.
-  sed -e "s/^[ $tab][ $tab]*/  /" -e "s,^[^:]*:,$object :," \
-    < "$tmpdepfile" > "$depfile"
-  sed '
-    s/[ '"$tab"'][ '"$tab"']*/ /g
-    s/^ *//
-    s/ *\\*$//
-    s/^[^:]*: *//
-    /^$/d
-    /:$/d
-    s/$/ :/
-  ' < "$tmpdepfile" >> "$depfile"
-  rm -f "$tmpdepfile"
-  ;;
-
-hp2)
-  # The "hp" stanza above does not work with aCC (C++) and HP's ia64
-  # compilers, which have integrated preprocessors.  The correct option
-  # to use with these is +Maked; it writes dependencies to a file named
-  # 'foo.d', which lands next to the object file, wherever that
-  # happens to be.
-  # Much of this is similar to the tru64 case; see comments there.
-  dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
-  test "x$dir" = "x$object" && dir=
-  base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
-  if test "$libtool" = yes; then
-    tmpdepfile1=$dir$base.d
-    tmpdepfile2=$dir.libs/$base.d
-    "$@" -Wc,+Maked
-  else
-    tmpdepfile1=$dir$base.d
-    tmpdepfile2=$dir$base.d
-    "$@" +Maked
-  fi
-  stat=$?
-  if test $stat -eq 0; then :
-  else
-     rm -f "$tmpdepfile1" "$tmpdepfile2"
-     exit $stat
-  fi
-
-  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
-  do
-    test -f "$tmpdepfile" && break
-  done
-  if test -f "$tmpdepfile"; then
-    sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
-    # Add 'dependent.h:' lines.
-    sed -ne '2,${
-	       s/^ *//
-	       s/ \\*$//
-	       s/$/:/
-	       p
-	     }' "$tmpdepfile" >> "$depfile"
-  else
-    echo "#dummy" > "$depfile"
-  fi
-  rm -f "$tmpdepfile" "$tmpdepfile2"
-  ;;
-
-tru64)
-   # The Tru64 compiler uses -MD to generate dependencies as a side
-   # effect.  'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
-   # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
-   # dependencies in 'foo.d' instead, so we check for that too.
-   # Subdirectories are respected.
-   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
-   test "x$dir" = "x$object" && dir=
-   base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
-
-   if test "$libtool" = yes; then
-      # With Tru64 cc, shared objects can also be used to make a
-      # static library.  This mechanism is used in libtool 1.4 series to
-      # handle both shared and static libraries in a single compilation.
-      # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
-      #
-      # With libtool 1.5 this exception was removed, and libtool now
-      # generates 2 separate objects for the 2 libraries.  These two
-      # compilations output dependencies in $dir.libs/$base.o.d and
-      # in $dir$base.o.d.  We have to check for both files, because
-      # one of the two compilations can be disabled.  We should prefer
-      # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
-      # automatically cleaned when .libs/ is deleted, while ignoring
-      # the former would cause a distcleancheck panic.
-      tmpdepfile1=$dir.libs/$base.lo.d   # libtool 1.4
-      tmpdepfile2=$dir$base.o.d          # libtool 1.5
-      tmpdepfile3=$dir.libs/$base.o.d    # libtool 1.5
-      tmpdepfile4=$dir.libs/$base.d      # Compaq CCC V6.2-504
-      "$@" -Wc,-MD
-   else
-      tmpdepfile1=$dir$base.o.d
-      tmpdepfile2=$dir$base.d
-      tmpdepfile3=$dir$base.d
-      tmpdepfile4=$dir$base.d
-      "$@" -MD
-   fi
-
-   stat=$?
-   if test $stat -eq 0; then :
-   else
-      rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
-      exit $stat
-   fi
-
-   for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
-   do
-     test -f "$tmpdepfile" && break
-   done
-   if test -f "$tmpdepfile"; then
-      sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
-      sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
-   else
-      echo "#dummy" > "$depfile"
-   fi
-   rm -f "$tmpdepfile"
-   ;;
-
-msvc7)
-  if test "$libtool" = yes; then
-    showIncludes=-Wc,-showIncludes
-  else
-    showIncludes=-showIncludes
-  fi
-  "$@" $showIncludes > "$tmpdepfile"
-  stat=$?
-  grep -v '^Note: including file: ' "$tmpdepfile"
-  if test "$stat" = 0; then :
-  else
-    rm -f "$tmpdepfile"
-    exit $stat
-  fi
-  rm -f "$depfile"
-  echo "$object : \\" > "$depfile"
-  # The first sed program below extracts the file names and escapes
-  # backslashes for cygpath.  The second sed program outputs the file
-  # name when reading, but also accumulates all include files in the
-  # hold buffer in order to output them again at the end.  This only
-  # works with sed implementations that can handle large buffers.
-  sed < "$tmpdepfile" -n '
-/^Note: including file:  *\(.*\)/ {
-  s//\1/
-  s/\\/\\\\/g
-  p
-}' | $cygpath_u | sort -u | sed -n '
-s/ /\\ /g
-s/\(.*\)/'"$tab"'\1 \\/p
-s/.\(.*\) \\/\1:/
-H
-$ {
-  s/.*/'"$tab"'/
-  G
-  p
-}' >> "$depfile"
-  rm -f "$tmpdepfile"
-  ;;
-
-msvc7msys)
-  # This case exists only to let depend.m4 do its work.  It works by
-  # looking at the text of this script.  This case will never be run,
-  # since it is checked for above.
-  exit 1
-  ;;
-
-#nosideeffect)
-  # This comment above is used by automake to tell side-effect
-  # dependency tracking mechanisms from slower ones.
-
-dashmstdout)
-  # Important note: in order to support this mode, a compiler *must*
-  # always write the preprocessed file to stdout, regardless of -o.
-  "$@" || exit $?
-
-  # Remove the call to Libtool.
-  if test "$libtool" = yes; then
-    while test "X$1" != 'X--mode=compile'; do
-      shift
-    done
-    shift
-  fi
-
-  # Remove '-o $object'.
-  IFS=" "
-  for arg
-  do
-    case $arg in
-    -o)
-      shift
-      ;;
-    $object)
-      shift
-      ;;
-    *)
-      set fnord "$@" "$arg"
-      shift # fnord
-      shift # $arg
-      ;;
-    esac
-  done
-
-  test -z "$dashmflag" && dashmflag=-M
-  # Require at least two characters before searching for ':'
-  # in the target name.  This is to cope with DOS-style filenames:
-  # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
-  "$@" $dashmflag |
-    sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile"
-  rm -f "$depfile"
-  cat < "$tmpdepfile" > "$depfile"
-  tr ' ' "$nl" < "$tmpdepfile" | \
-## Some versions of the HPUX 10.20 sed can't process this invocation
-## correctly.  Breaking it into two sed invocations is a workaround.
-    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
-  rm -f "$tmpdepfile"
-  ;;
-
-dashXmstdout)
-  # This case only exists to satisfy depend.m4.  It is never actually
-  # run, as this mode is specially recognized in the preamble.
-  exit 1
-  ;;
-
-makedepend)
-  "$@" || exit $?
-  # Remove any Libtool call
-  if test "$libtool" = yes; then
-    while test "X$1" != 'X--mode=compile'; do
-      shift
-    done
-    shift
-  fi
-  # X makedepend
-  shift
-  cleared=no eat=no
-  for arg
-  do
-    case $cleared in
-    no)
-      set ""; shift
-      cleared=yes ;;
-    esac
-    if test $eat = yes; then
-      eat=no
-      continue
-    fi
-    case "$arg" in
-    -D*|-I*)
-      set fnord "$@" "$arg"; shift ;;
-    # Strip any option that makedepend may not understand.  Remove
-    # the object too, otherwise makedepend will parse it as a source file.
-    -arch)
-      eat=yes ;;
-    -*|$object)
-      ;;
-    *)
-      set fnord "$@" "$arg"; shift ;;
-    esac
-  done
-  obj_suffix=`echo "$object" | sed 's/^.*\././'`
-  touch "$tmpdepfile"
-  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
-  rm -f "$depfile"
-  # makedepend may prepend the VPATH from the source file name to the object.
-  # No need to regex-escape $object, excess matching of '.' is harmless.
-  sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
-  sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \
-## Some versions of the HPUX 10.20 sed can't process this invocation
-## correctly.  Breaking it into two sed invocations is a workaround.
-    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
-  rm -f "$tmpdepfile" "$tmpdepfile".bak
-  ;;
-
-cpp)
-  # Important note: in order to support this mode, a compiler *must*
-  # always write the preprocessed file to stdout.
-  "$@" || exit $?
-
-  # Remove the call to Libtool.
-  if test "$libtool" = yes; then
-    while test "X$1" != 'X--mode=compile'; do
-      shift
-    done
-    shift
-  fi
-
-  # Remove '-o $object'.
-  IFS=" "
-  for arg
-  do
-    case $arg in
-    -o)
-      shift
-      ;;
-    $object)
-      shift
-      ;;
-    *)
-      set fnord "$@" "$arg"
-      shift # fnord
-      shift # $arg
-      ;;
-    esac
-  done
-
-  "$@" -E |
-    sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
-       -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
-    sed '$ s: \\$::' > "$tmpdepfile"
-  rm -f "$depfile"
-  echo "$object : \\" > "$depfile"
-  cat < "$tmpdepfile" >> "$depfile"
-  sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
-  rm -f "$tmpdepfile"
-  ;;
-
-msvisualcpp)
-  # Important note: in order to support this mode, a compiler *must*
-  # always write the preprocessed file to stdout.
-  "$@" || exit $?
-
-  # Remove the call to Libtool.
-  if test "$libtool" = yes; then
-    while test "X$1" != 'X--mode=compile'; do
-      shift
-    done
-    shift
-  fi
-
-  IFS=" "
-  for arg
-  do
-    case "$arg" in
-    -o)
-      shift
-      ;;
-    $object)
-      shift
-      ;;
-    "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
-	set fnord "$@"
-	shift
-	shift
-	;;
-    *)
-	set fnord "$@" "$arg"
-	shift
-	shift
-	;;
-    esac
-  done
-  "$@" -E 2>/dev/null |
-  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
-  rm -f "$depfile"
-  echo "$object : \\" > "$depfile"
-  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
-  echo "$tab" >> "$depfile"
-  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
-  rm -f "$tmpdepfile"
-  ;;
-
-msvcmsys)
-  # This case exists only to let depend.m4 do its work.  It works by
-  # looking at the text of this script.  This case will never be run,
-  # since it is checked for above.
-  exit 1
-  ;;
-
-none)
-  exec "$@"
-  ;;
-
-*)
-  echo "Unknown depmode $depmode" 1>&2
-  exit 1
-  ;;
-esac
-
-exit 0
-
-# Local Variables:
-# mode: shell-script
-# sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/libqfits/admin/html.am b/libqfits/admin/html.am
deleted file mode 100644
index c98ff17..0000000
--- a/libqfits/admin/html.am
+++ /dev/null
@@ -1,78 +0,0 @@
-HTML_BUILD_DIR = $(top_builddir)
-
-#if MAINTAINER_MODE
-
-HTML_RECURSIVE_TARGETS = install-html-recursive
-
-html-am:
-	@if test -f $(HTML_BUILD_DIR)/Doxyfile; then \
-	  echo "cd $(HTML_BUILD_DIR) && $(DOXYGEN)"; \
-	  d=`pwd`; cd $(HTML_BUILD_DIR) && $(DOXYGEN); cd $$d; \
-	  if test -n "$(POST_DOXYGEN_CLEANFILES)"; then \
-	    cd $(HTML_BUILD_DIR)/html && rm -f $(POST_DOXYGEN_CLEANFILES); \
-	  fi; \
-	else \
-	  echo "Nothing to be done for \`$@'."; \
-	fi
-
-clean-html: clean-html-am
-
-clean-html-am:
-	-rm -rf $(HTML_BUILD_DIR)/html
-
-install-html-am: html-am install-html-generic
-
-#else
-
-#HTML_RECURSIVE_TARGETS = install-html-recursive
-
-#install-html-am: install-html-generic
-
-#endif
-
-install-html: install-html-recursive
-
-install-html-generic:
-	@$(NORMAL_INSTALL)
-	@if test -d $(HTML_BUILD_DIR)/html; then \
-	  echo "$(mkinstalldirs) $(DESTDIR)$(htmldir)"; \
-	  $(mkinstalldirs) $(DESTDIR)$(htmldir); \
-	  list="`ls -1 $(HTML_BUILD_DIR)/html`"; \
-	  for p in $$list; do \
-	    if test -f $(HTML_BUILD_DIR)/html/$$p; then \
-	      echo " $(INSTALL_DATA) $(HTML_BUILD_DIR)/html/$$p $(DESTDIR)$(htmldir)/$$p"; \
-	      $(INSTALL_DATA) $(HTML_BUILD_DIR)/html/$$p $(DESTDIR)$(htmldir)/$$p; \
-	    else if test -f $$p; then \
-	      echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$p"; \
-	      $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$p; \
-	    fi; fi; \
-	  done; \
-	fi
-
-uninstall-html:
-	@$(NORMAL_UNINSTALL)
-	@list="`ls -1 $(DESTDIR)$(htmldir)`"; \
-	for p in $$list; do \
-	  echo " rm -f $(DESTDIR)$(htmldir)/$$p"; \
-	  rm -f $(DESTDIR)$(htmldir)/$$p; \
-	done
-
-$(HTML_RECURSIVE_TARGETS):
-	@set fnord $(MAKEFLAGS); amf=$$2; \
-	dot_seen=no; \
-	target=`echo $@ | sed s/-recursive//`; \
-	list='$(HTML_SUBDIRS)'; \
-	for subdir in $$list; do \
-	  echo "Making $$target in $$subdir"; \
-	  if test "$$subdir" = "."; then \
-	    dot_seen=yes; \
-	    local_target="$$target-am"; \
-	  else \
-	    local_target="$$target"; \
-	  fi; \
-	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
-	  || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
-	done; \
-	if test "$$dot_seen" = "no"; then \
-	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
-	fi; test -z "$$fail"
diff --git a/libqfits/admin/install-sh b/libqfits/admin/install-sh
deleted file mode 100755
index a9244eb..0000000
--- a/libqfits/admin/install-sh
+++ /dev/null
@@ -1,527 +0,0 @@
-#!/bin/sh
-# install - install a program, script, or datafile
-
-scriptversion=2011-01-19.21; # UTC
-
-# This originates from X11R5 (mit/util/scripts/install.sh), which was
-# later released in X11R6 (xc/config/util/install.sh) with the
-# following copyright and license.
-#
-# Copyright (C) 1994 X Consortium
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
-# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
-# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
-# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#
-# Except as contained in this notice, the name of the X Consortium shall not
-# be used in advertising or otherwise to promote the sale, use or other deal-
-# ings in this Software without prior written authorization from the X Consor-
-# tium.
-#
-#
-# FSF changes to this file are in the public domain.
-#
-# Calling this script install-sh is preferred over install.sh, to prevent
-# `make' implicit rules from creating a file called install from it
-# when there is no Makefile.
-#
-# This script is compatible with the BSD install script, but was written
-# from scratch.
-
-nl='
-'
-IFS=" ""	$nl"
-
-# set DOITPROG to echo to test this script
-
-# Don't use :- since 4.3BSD and earlier shells don't like it.
-doit=${DOITPROG-}
-if test -z "$doit"; then
-  doit_exec=exec
-else
-  doit_exec=$doit
-fi
-
-# Put in absolute file names if you don't have them in your path;
-# or use environment vars.
-
-chgrpprog=${CHGRPPROG-chgrp}
-chmodprog=${CHMODPROG-chmod}
-chownprog=${CHOWNPROG-chown}
-cmpprog=${CMPPROG-cmp}
-cpprog=${CPPROG-cp}
-mkdirprog=${MKDIRPROG-mkdir}
-mvprog=${MVPROG-mv}
-rmprog=${RMPROG-rm}
-stripprog=${STRIPPROG-strip}
-
-posix_glob='?'
-initialize_posix_glob='
-  test "$posix_glob" != "?" || {
-    if (set -f) 2>/dev/null; then
-      posix_glob=
-    else
-      posix_glob=:
-    fi
-  }
-'
-
-posix_mkdir=
-
-# Desired mode of installed file.
-mode=0755
-
-chgrpcmd=
-chmodcmd=$chmodprog
-chowncmd=
-mvcmd=$mvprog
-rmcmd="$rmprog -f"
-stripcmd=
-
-src=
-dst=
-dir_arg=
-dst_arg=
-
-copy_on_change=false
-no_target_directory=
-
-usage="\
-Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
-   or: $0 [OPTION]... SRCFILES... DIRECTORY
-   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
-   or: $0 [OPTION]... -d DIRECTORIES...
-
-In the 1st form, copy SRCFILE to DSTFILE.
-In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
-In the 4th, create DIRECTORIES.
-
-Options:
-     --help     display this help and exit.
-     --version  display version info and exit.
-
-  -c            (ignored)
-  -C            install only if different (preserve the last data modification time)
-  -d            create directories instead of installing files.
-  -g GROUP      $chgrpprog installed files to GROUP.
-  -m MODE       $chmodprog installed files to MODE.
-  -o USER       $chownprog installed files to USER.
-  -s            $stripprog installed files.
-  -t DIRECTORY  install into DIRECTORY.
-  -T            report an error if DSTFILE is a directory.
-
-Environment variables override the default commands:
-  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
-  RMPROG STRIPPROG
-"
-
-while test $# -ne 0; do
-  case $1 in
-    -c) ;;
-
-    -C) copy_on_change=true;;
-
-    -d) dir_arg=true;;
-
-    -g) chgrpcmd="$chgrpprog $2"
-	shift;;
-
-    --help) echo "$usage"; exit $?;;
-
-    -m) mode=$2
-	case $mode in
-	  *' '* | *'	'* | *'
-'*	  | *'*'* | *'?'* | *'['*)
-	    echo "$0: invalid mode: $mode" >&2
-	    exit 1;;
-	esac
-	shift;;
-
-    -o) chowncmd="$chownprog $2"
-	shift;;
-
-    -s) stripcmd=$stripprog;;
-
-    -t) dst_arg=$2
-	# Protect names problematic for `test' and other utilities.
-	case $dst_arg in
-	  -* | [=\(\)!]) dst_arg=./$dst_arg;;
-	esac
-	shift;;
-
-    -T) no_target_directory=true;;
-
-    --version) echo "$0 $scriptversion"; exit $?;;
-
-    --)	shift
-	break;;
-
-    -*)	echo "$0: invalid option: $1" >&2
-	exit 1;;
-
-    *)  break;;
-  esac
-  shift
-done
-
-if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
-  # When -d is used, all remaining arguments are directories to create.
-  # When -t is used, the destination is already specified.
-  # Otherwise, the last argument is the destination.  Remove it from $@.
-  for arg
-  do
-    if test -n "$dst_arg"; then
-      # $@ is not empty: it contains at least $arg.
-      set fnord "$@" "$dst_arg"
-      shift # fnord
-    fi
-    shift # arg
-    dst_arg=$arg
-    # Protect names problematic for `test' and other utilities.
-    case $dst_arg in
-      -* | [=\(\)!]) dst_arg=./$dst_arg;;
-    esac
-  done
-fi
-
-if test $# -eq 0; then
-  if test -z "$dir_arg"; then
-    echo "$0: no input file specified." >&2
-    exit 1
-  fi
-  # It's OK to call `install-sh -d' without argument.
-  # This can happen when creating conditional directories.
-  exit 0
-fi
-
-if test -z "$dir_arg"; then
-  do_exit='(exit $ret); exit $ret'
-  trap "ret=129; $do_exit" 1
-  trap "ret=130; $do_exit" 2
-  trap "ret=141; $do_exit" 13
-  trap "ret=143; $do_exit" 15
-
-  # Set umask so as not to create temps with too-generous modes.
-  # However, 'strip' requires both read and write access to temps.
-  case $mode in
-    # Optimize common cases.
-    *644) cp_umask=133;;
-    *755) cp_umask=22;;
-
-    *[0-7])
-      if test -z "$stripcmd"; then
-	u_plus_rw=
-      else
-	u_plus_rw='% 200'
-      fi
-      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
-    *)
-      if test -z "$stripcmd"; then
-	u_plus_rw=
-      else
-	u_plus_rw=,u+rw
-      fi
-      cp_umask=$mode$u_plus_rw;;
-  esac
-fi
-
-for src
-do
-  # Protect names problematic for `test' and other utilities.
-  case $src in
-    -* | [=\(\)!]) src=./$src;;
-  esac
-
-  if test -n "$dir_arg"; then
-    dst=$src
-    dstdir=$dst
-    test -d "$dstdir"
-    dstdir_status=$?
-  else
-
-    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
-    # might cause directories to be created, which would be especially bad
-    # if $src (and thus $dsttmp) contains '*'.
-    if test ! -f "$src" && test ! -d "$src"; then
-      echo "$0: $src does not exist." >&2
-      exit 1
-    fi
-
-    if test -z "$dst_arg"; then
-      echo "$0: no destination specified." >&2
-      exit 1
-    fi
-    dst=$dst_arg
-
-    # If destination is a directory, append the input filename; won't work
-    # if double slashes aren't ignored.
-    if test -d "$dst"; then
-      if test -n "$no_target_directory"; then
-	echo "$0: $dst_arg: Is a directory" >&2
-	exit 1
-      fi
-      dstdir=$dst
-      dst=$dstdir/`basename "$src"`
-      dstdir_status=0
-    else
-      # Prefer dirname, but fall back on a substitute if dirname fails.
-      dstdir=`
-	(dirname "$dst") 2>/dev/null ||
-	expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-	     X"$dst" : 'X\(//\)[^/]' \| \
-	     X"$dst" : 'X\(//\)$' \| \
-	     X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
-	echo X"$dst" |
-	    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-		   s//\1/
-		   q
-		 }
-		 /^X\(\/\/\)[^/].*/{
-		   s//\1/
-		   q
-		 }
-		 /^X\(\/\/\)$/{
-		   s//\1/
-		   q
-		 }
-		 /^X\(\/\).*/{
-		   s//\1/
-		   q
-		 }
-		 s/.*/./; q'
-      `
-
-      test -d "$dstdir"
-      dstdir_status=$?
-    fi
-  fi
-
-  obsolete_mkdir_used=false
-
-  if test $dstdir_status != 0; then
-    case $posix_mkdir in
-      '')
-	# Create intermediate dirs using mode 755 as modified by the umask.
-	# This is like FreeBSD 'install' as of 1997-10-28.
-	umask=`umask`
-	case $stripcmd.$umask in
-	  # Optimize common cases.
-	  *[2367][2367]) mkdir_umask=$umask;;
-	  .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
-
-	  *[0-7])
-	    mkdir_umask=`expr $umask + 22 \
-	      - $umask % 100 % 40 + $umask % 20 \
-	      - $umask % 10 % 4 + $umask % 2
-	    `;;
-	  *) mkdir_umask=$umask,go-w;;
-	esac
-
-	# With -d, create the new directory with the user-specified mode.
-	# Otherwise, rely on $mkdir_umask.
-	if test -n "$dir_arg"; then
-	  mkdir_mode=-m$mode
-	else
-	  mkdir_mode=
-	fi
-
-	posix_mkdir=false
-	case $umask in
-	  *[123567][0-7][0-7])
-	    # POSIX mkdir -p sets u+wx bits regardless of umask, which
-	    # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
-	    ;;
-	  *)
-	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
-	    trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
-
-	    if (umask $mkdir_umask &&
-		exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
-	    then
-	      if test -z "$dir_arg" || {
-		   # Check for POSIX incompatibilities with -m.
-		   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
-		   # other-writeable bit of parent directory when it shouldn't.
-		   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
-		   ls_ld_tmpdir=`ls -ld "$tmpdir"`
-		   case $ls_ld_tmpdir in
-		     d????-?r-*) different_mode=700;;
-		     d????-?--*) different_mode=755;;
-		     *) false;;
-		   esac &&
-		   $mkdirprog -m$different_mode -p -- "$tmpdir" && {
-		     ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
-		     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
-		   }
-		 }
-	      then posix_mkdir=:
-	      fi
-	      rmdir "$tmpdir/d" "$tmpdir"
-	    else
-	      # Remove any dirs left behind by ancient mkdir implementations.
-	      rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
-	    fi
-	    trap '' 0;;
-	esac;;
-    esac
-
-    if
-      $posix_mkdir && (
-	umask $mkdir_umask &&
-	$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
-      )
-    then :
-    else
-
-      # The umask is ridiculous, or mkdir does not conform to POSIX,
-      # or it failed possibly due to a race condition.  Create the
-      # directory the slow way, step by step, checking for races as we go.
-
-      case $dstdir in
-	/*) prefix='/';;
-	[-=\(\)!]*) prefix='./';;
-	*)  prefix='';;
-      esac
-
-      eval "$initialize_posix_glob"
-
-      oIFS=$IFS
-      IFS=/
-      $posix_glob set -f
-      set fnord $dstdir
-      shift
-      $posix_glob set +f
-      IFS=$oIFS
-
-      prefixes=
-
-      for d
-      do
-	test X"$d" = X && continue
-
-	prefix=$prefix$d
-	if test -d "$prefix"; then
-	  prefixes=
-	else
-	  if $posix_mkdir; then
-	    (umask=$mkdir_umask &&
-	     $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
-	    # Don't fail if two instances are running concurrently.
-	    test -d "$prefix" || exit 1
-	  else
-	    case $prefix in
-	      *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
-	      *) qprefix=$prefix;;
-	    esac
-	    prefixes="$prefixes '$qprefix'"
-	  fi
-	fi
-	prefix=$prefix/
-      done
-
-      if test -n "$prefixes"; then
-	# Don't fail if two instances are running concurrently.
-	(umask $mkdir_umask &&
-	 eval "\$doit_exec \$mkdirprog $prefixes") ||
-	  test -d "$dstdir" || exit 1
-	obsolete_mkdir_used=true
-      fi
-    fi
-  fi
-
-  if test -n "$dir_arg"; then
-    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
-    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
-    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
-      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
-  else
-
-    # Make a couple of temp file names in the proper directory.
-    dsttmp=$dstdir/_inst.$$_
-    rmtmp=$dstdir/_rm.$$_
-
-    # Trap to clean up those temp files at exit.
-    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
-
-    # Copy the file name to the temp name.
-    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
-
-    # and set any options; do chmod last to preserve setuid bits.
-    #
-    # If any of these fail, we abort the whole thing.  If we want to
-    # ignore errors from any of these, just make sure not to ignore
-    # errors from the above "$doit $cpprog $src $dsttmp" command.
-    #
-    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
-    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
-    { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
-    { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
-
-    # If -C, don't bother to copy if it wouldn't change the file.
-    if $copy_on_change &&
-       old=`LC_ALL=C ls -dlL "$dst"	2>/dev/null` &&
-       new=`LC_ALL=C ls -dlL "$dsttmp"	2>/dev/null` &&
-
-       eval "$initialize_posix_glob" &&
-       $posix_glob set -f &&
-       set X $old && old=:$2:$4:$5:$6 &&
-       set X $new && new=:$2:$4:$5:$6 &&
-       $posix_glob set +f &&
-
-       test "$old" = "$new" &&
-       $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
-    then
-      rm -f "$dsttmp"
-    else
-      # Rename the file to the real destination.
-      $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
-
-      # The rename failed, perhaps because mv can't rename something else
-      # to itself, or perhaps because mv is so ancient that it does not
-      # support -f.
-      {
-	# Now remove or move aside any old file at destination location.
-	# We try this two ways since rm can't unlink itself on some
-	# systems and the destination file might be busy for other
-	# reasons.  In this case, the final cleanup might fail but the new
-	# file should still install successfully.
-	{
-	  test ! -f "$dst" ||
-	  $doit $rmcmd -f "$dst" 2>/dev/null ||
-	  { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
-	    { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
-	  } ||
-	  { echo "$0: cannot unlink or rename $dst" >&2
-	    (exit 1); exit 1
-	  }
-	} &&
-
-	# Now rename the file to the real destination.
-	$doit $mvcmd "$dsttmp" "$dst"
-      }
-    fi || exit 1
-
-    trap '' 0
-  fi
-done
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/libqfits/admin/ltmain.sh b/libqfits/admin/ltmain.sh
deleted file mode 100644
index 63ae69d..0000000
--- a/libqfits/admin/ltmain.sh
+++ /dev/null
@@ -1,9655 +0,0 @@
-
-# libtool (GNU libtool) 2.4.2
-# Written by Gordon Matzigkeit <gord at gnu.ai.mit.edu>, 1996
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
-# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
-# This is free software; see the source for copying conditions.  There is NO
-# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-# GNU Libtool is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# As a special exception to the GNU General Public License,
-# if you distribute this file as part of a program or library that
-# is built using GNU Libtool, you may include this file under the
-# same distribution terms that you use for the rest of that program.
-#
-# GNU Libtool is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Libtool; see the file COPYING.  If not, a copy
-# can be downloaded from http://www.gnu.org/licenses/gpl.html,
-# or obtained by writing to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-# Usage: $progname [OPTION]... [MODE-ARG]...
-#
-# Provide generalized library-building support services.
-#
-#       --config             show all configuration variables
-#       --debug              enable verbose shell tracing
-#   -n, --dry-run            display commands without modifying any files
-#       --features           display basic configuration information and exit
-#       --mode=MODE          use operation mode MODE
-#       --preserve-dup-deps  don't remove duplicate dependency libraries
-#       --quiet, --silent    don't print informational messages
-#       --no-quiet, --no-silent
-#                            print informational messages (default)
-#       --no-warn            don't display warning messages
-#       --tag=TAG            use configuration variables from tag TAG
-#   -v, --verbose            print more informational messages than default
-#       --no-verbose         don't print the extra informational messages
-#       --version            print version information
-#   -h, --help, --help-all   print short, long, or detailed help message
-#
-# MODE must be one of the following:
-#
-#         clean              remove files from the build directory
-#         compile            compile a source file into a libtool object
-#         execute            automatically set library path, then run a program
-#         finish             complete the installation of libtool libraries
-#         install            install libraries or executables
-#         link               create a library or an executable
-#         uninstall          remove libraries from an installed directory
-#
-# MODE-ARGS vary depending on the MODE.  When passed as first option,
-# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
-# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
-#
-# When reporting a bug, please describe a test case to reproduce it and
-# include the following information:
-#
-#         host-triplet:	$host
-#         shell:		$SHELL
-#         compiler:		$LTCC
-#         compiler flags:		$LTCFLAGS
-#         linker:		$LD (gnu? $with_gnu_ld)
-#         $progname:	(GNU libtool) 2.4.2
-#         automake:	$automake_version
-#         autoconf:	$autoconf_version
-#
-# Report bugs to <bug-libtool at gnu.org>.
-# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
-# General help using GNU software: <http://www.gnu.org/gethelp/>.
-
-PROGRAM=libtool
-PACKAGE=libtool
-VERSION=2.4.2
-TIMESTAMP=""
-package_revision=1.3337
-
-# Be Bourne compatible
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
-  emulate sh
-  NULLCMD=:
-  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
-fi
-BIN_SH=xpg4; export BIN_SH # for Tru64
-DUALCASE=1; export DUALCASE # for MKS sh
-
-# A function that is used when there is no print builtin or printf.
-func_fallback_echo ()
-{
-  eval 'cat <<_LTECHO_EOF
-$1
-_LTECHO_EOF'
-}
-
-# NLS nuisances: We save the old values to restore during execute mode.
-lt_user_locale=
-lt_safe_locale=
-for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
-do
-  eval "if test \"\${$lt_var+set}\" = set; then
-          save_$lt_var=\$$lt_var
-          $lt_var=C
-	  export $lt_var
-	  lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
-	  lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
-	fi"
-done
-LC_ALL=C
-LANGUAGE=C
-export LANGUAGE LC_ALL
-
-$lt_unset CDPATH
-
-
-# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
-# is ksh but when the shell is invoked as "sh" and the current value of
-# the _XPG environment variable is not equal to 1 (one), the special
-# positional parameter $0, within a function call, is the name of the
-# function.
-progpath="$0"
-
-
-
-: ${CP="cp -f"}
-test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
-: ${MAKE="make"}
-: ${MKDIR="mkdir"}
-: ${MV="mv -f"}
-: ${RM="rm -f"}
-: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
-: ${Xsed="$SED -e 1s/^X//"}
-
-# Global variables:
-EXIT_SUCCESS=0
-EXIT_FAILURE=1
-EXIT_MISMATCH=63  # $? = 63 is used to indicate version mismatch to missing.
-EXIT_SKIP=77	  # $? = 77 is used to indicate a skipped test to automake.
-
-exit_status=$EXIT_SUCCESS
-
-# Make sure IFS has a sensible default
-lt_nl='
-'
-IFS=" 	$lt_nl"
-
-dirname="s,/[^/]*$,,"
-basename="s,^.*/,,"
-
-# func_dirname file append nondir_replacement
-# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
-# otherwise set result to NONDIR_REPLACEMENT.
-func_dirname ()
-{
-    func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
-    if test "X$func_dirname_result" = "X${1}"; then
-      func_dirname_result="${3}"
-    else
-      func_dirname_result="$func_dirname_result${2}"
-    fi
-} # func_dirname may be replaced by extended shell implementation
-
-
-# func_basename file
-func_basename ()
-{
-    func_basename_result=`$ECHO "${1}" | $SED "$basename"`
-} # func_basename may be replaced by extended shell implementation
-
-
-# func_dirname_and_basename file append nondir_replacement
-# perform func_basename and func_dirname in a single function
-# call:
-#   dirname:  Compute the dirname of FILE.  If nonempty,
-#             add APPEND to the result, otherwise set result
-#             to NONDIR_REPLACEMENT.
-#             value returned in "$func_dirname_result"
-#   basename: Compute filename of FILE.
-#             value retuned in "$func_basename_result"
-# Implementation must be kept synchronized with func_dirname
-# and func_basename. For efficiency, we do not delegate to
-# those functions but instead duplicate the functionality here.
-func_dirname_and_basename ()
-{
-    # Extract subdirectory from the argument.
-    func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
-    if test "X$func_dirname_result" = "X${1}"; then
-      func_dirname_result="${3}"
-    else
-      func_dirname_result="$func_dirname_result${2}"
-    fi
-    func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
-} # func_dirname_and_basename may be replaced by extended shell implementation
-
-
-# func_stripname prefix suffix name
-# strip PREFIX and SUFFIX off of NAME.
-# PREFIX and SUFFIX must not contain globbing or regex special
-# characters, hashes, percent signs, but SUFFIX may contain a leading
-# dot (in which case that matches only a dot).
-# func_strip_suffix prefix name
-func_stripname ()
-{
-    case ${2} in
-      .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
-      *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
-    esac
-} # func_stripname may be replaced by extended shell implementation
-
-
-# These SED scripts presuppose an absolute path with a trailing slash.
-pathcar='s,^/\([^/]*\).*$,\1,'
-pathcdr='s,^/[^/]*,,'
-removedotparts=':dotsl
-		s@/\./@/@g
-		t dotsl
-		s,/\.$,/,'
-collapseslashes='s@/\{1,\}@/@g'
-finalslash='s,/*$,/,'
-
-# func_normal_abspath PATH
-# Remove doubled-up and trailing slashes, "." path components,
-# and cancel out any ".." path components in PATH after making
-# it an absolute path.
-#             value returned in "$func_normal_abspath_result"
-func_normal_abspath ()
-{
-  # Start from root dir and reassemble the path.
-  func_normal_abspath_result=
-  func_normal_abspath_tpath=$1
-  func_normal_abspath_altnamespace=
-  case $func_normal_abspath_tpath in
-    "")
-      # Empty path, that just means $cwd.
-      func_stripname '' '/' "`pwd`"
-      func_normal_abspath_result=$func_stripname_result
-      return
-    ;;
-    # The next three entries are used to spot a run of precisely
-    # two leading slashes without using negated character classes;
-    # we take advantage of case's first-match behaviour.
-    ///*)
-      # Unusual form of absolute path, do nothing.
-    ;;
-    //*)
-      # Not necessarily an ordinary path; POSIX reserves leading '//'
-      # and for example Cygwin uses it to access remote file shares
-      # over CIFS/SMB, so we conserve a leading double slash if found.
-      func_normal_abspath_altnamespace=/
-    ;;
-    /*)
-      # Absolute path, do nothing.
-    ;;
-    *)
-      # Relative path, prepend $cwd.
-      func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
-    ;;
-  esac
-  # Cancel out all the simple stuff to save iterations.  We also want
-  # the path to end with a slash for ease of parsing, so make sure
-  # there is one (and only one) here.
-  func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
-        -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
-  while :; do
-    # Processed it all yet?
-    if test "$func_normal_abspath_tpath" = / ; then
-      # If we ascended to the root using ".." the result may be empty now.
-      if test -z "$func_normal_abspath_result" ; then
-        func_normal_abspath_result=/
-      fi
-      break
-    fi
-    func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
-        -e "$pathcar"`
-    func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
-        -e "$pathcdr"`
-    # Figure out what to do with it
-    case $func_normal_abspath_tcomponent in
-      "")
-        # Trailing empty path component, ignore it.
-      ;;
-      ..)
-        # Parent dir; strip last assembled component from result.
-        func_dirname "$func_normal_abspath_result"
-        func_normal_abspath_result=$func_dirname_result
-      ;;
-      *)
-        # Actual path component, append it.
-        func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
-      ;;
-    esac
-  done
-  # Restore leading double-slash if one was found on entry.
-  func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
-}
-
-# func_relative_path SRCDIR DSTDIR
-# generates a relative path from SRCDIR to DSTDIR, with a trailing
-# slash if non-empty, suitable for immediately appending a filename
-# without needing to append a separator.
-#             value returned in "$func_relative_path_result"
-func_relative_path ()
-{
-  func_relative_path_result=
-  func_normal_abspath "$1"
-  func_relative_path_tlibdir=$func_normal_abspath_result
-  func_normal_abspath "$2"
-  func_relative_path_tbindir=$func_normal_abspath_result
-
-  # Ascend the tree starting from libdir
-  while :; do
-    # check if we have found a prefix of bindir
-    case $func_relative_path_tbindir in
-      $func_relative_path_tlibdir)
-        # found an exact match
-        func_relative_path_tcancelled=
-        break
-        ;;
-      $func_relative_path_tlibdir*)
-        # found a matching prefix
-        func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
-        func_relative_path_tcancelled=$func_stripname_result
-        if test -z "$func_relative_path_result"; then
-          func_relative_path_result=.
-        fi
-        break
-        ;;
-      *)
-        func_dirname $func_relative_path_tlibdir
-        func_relative_path_tlibdir=${func_dirname_result}
-        if test "x$func_relative_path_tlibdir" = x ; then
-          # Have to descend all the way to the root!
-          func_relative_path_result=../$func_relative_path_result
-          func_relative_path_tcancelled=$func_relative_path_tbindir
-          break
-        fi
-        func_relative_path_result=../$func_relative_path_result
-        ;;
-    esac
-  done
-
-  # Now calculate path; take care to avoid doubling-up slashes.
-  func_stripname '' '/' "$func_relative_path_result"
-  func_relative_path_result=$func_stripname_result
-  func_stripname '/' '/' "$func_relative_path_tcancelled"
-  if test "x$func_stripname_result" != x ; then
-    func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
-  fi
-
-  # Normalisation. If bindir is libdir, return empty string,
-  # else relative path ending with a slash; either way, target
-  # file name can be directly appended.
-  if test ! -z "$func_relative_path_result"; then
-    func_stripname './' '' "$func_relative_path_result/"
-    func_relative_path_result=$func_stripname_result
-  fi
-}
-
-# The name of this program:
-func_dirname_and_basename "$progpath"
-progname=$func_basename_result
-
-# Make sure we have an absolute path for reexecution:
-case $progpath in
-  [\\/]*|[A-Za-z]:\\*) ;;
-  *[\\/]*)
-     progdir=$func_dirname_result
-     progdir=`cd "$progdir" && pwd`
-     progpath="$progdir/$progname"
-     ;;
-  *)
-     save_IFS="$IFS"
-     IFS=${PATH_SEPARATOR-:}
-     for progdir in $PATH; do
-       IFS="$save_IFS"
-       test -x "$progdir/$progname" && break
-     done
-     IFS="$save_IFS"
-     test -n "$progdir" || progdir=`pwd`
-     progpath="$progdir/$progname"
-     ;;
-esac
-
-# Sed substitution that helps us do robust quoting.  It backslashifies
-# metacharacters that are still active within double-quoted strings.
-Xsed="${SED}"' -e 1s/^X//'
-sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
-
-# Same as above, but do not quote variable references.
-double_quote_subst='s/\(["`\\]\)/\\\1/g'
-
-# Sed substitution that turns a string into a regex matching for the
-# string literally.
-sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
-
-# Sed substitution that converts a w32 file name or path
-# which contains forward slashes, into one that contains
-# (escaped) backslashes.  A very naive implementation.
-lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
-
-# Re-`\' parameter expansions in output of double_quote_subst that were
-# `\'-ed in input to the same.  If an odd number of `\' preceded a '$'
-# in input to double_quote_subst, that '$' was protected from expansion.
-# Since each input `\' is now two `\'s, look for any number of runs of
-# four `\'s followed by two `\'s and then a '$'.  `\' that '$'.
-bs='\\'
-bs2='\\\\'
-bs4='\\\\\\\\'
-dollar='\$'
-sed_double_backslash="\
-  s/$bs4/&\\
-/g
-  s/^$bs2$dollar/$bs&/
-  s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
-  s/\n//g"
-
-# Standard options:
-opt_dry_run=false
-opt_help=false
-opt_quiet=false
-opt_verbose=false
-opt_warning=:
-
-# func_echo arg...
-# Echo program name prefixed message, along with the current mode
-# name if it has been set yet.
-func_echo ()
-{
-    $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
-}
-
-# func_verbose arg...
-# Echo program name prefixed message in verbose mode only.
-func_verbose ()
-{
-    $opt_verbose && func_echo ${1+"$@"}
-
-    # A bug in bash halts the script if the last line of a function
-    # fails when set -e is in force, so we need another command to
-    # work around that:
-    :
-}
-
-# func_echo_all arg...
-# Invoke $ECHO with all args, space-separated.
-func_echo_all ()
-{
-    $ECHO "$*"
-}
-
-# func_error arg...
-# Echo program name prefixed message to standard error.
-func_error ()
-{
-    $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
-}
-
-# func_warning arg...
-# Echo program name prefixed warning message to standard error.
-func_warning ()
-{
-    $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
-
-    # bash bug again:
-    :
-}
-
-# func_fatal_error arg...
-# Echo program name prefixed message to standard error, and exit.
-func_fatal_error ()
-{
-    func_error ${1+"$@"}
-    exit $EXIT_FAILURE
-}
-
-# func_fatal_help arg...
-# Echo program name prefixed message to standard error, followed by
-# a help hint, and exit.
-func_fatal_help ()
-{
-    func_error ${1+"$@"}
-    func_fatal_error "$help"
-}
-help="Try \`$progname --help' for more information."  ## default
-
-
-# func_grep expression filename
-# Check whether EXPRESSION matches any line of FILENAME, without output.
-func_grep ()
-{
-    $GREP "$1" "$2" >/dev/null 2>&1
-}
-
-
-# func_mkdir_p directory-path
-# Make sure the entire path to DIRECTORY-PATH is available.
-func_mkdir_p ()
-{
-    my_directory_path="$1"
-    my_dir_list=
-
-    if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
-
-      # Protect directory names starting with `-'
-      case $my_directory_path in
-        -*) my_directory_path="./$my_directory_path" ;;
-      esac
-
-      # While some portion of DIR does not yet exist...
-      while test ! -d "$my_directory_path"; do
-        # ...make a list in topmost first order.  Use a colon delimited
-	# list incase some portion of path contains whitespace.
-        my_dir_list="$my_directory_path:$my_dir_list"
-
-        # If the last portion added has no slash in it, the list is done
-        case $my_directory_path in */*) ;; *) break ;; esac
-
-        # ...otherwise throw away the child directory and loop
-        my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
-      done
-      my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
-
-      save_mkdir_p_IFS="$IFS"; IFS=':'
-      for my_dir in $my_dir_list; do
-	IFS="$save_mkdir_p_IFS"
-        # mkdir can fail with a `File exist' error if two processes
-        # try to create one of the directories concurrently.  Don't
-        # stop in that case!
-        $MKDIR "$my_dir" 2>/dev/null || :
-      done
-      IFS="$save_mkdir_p_IFS"
-
-      # Bail out if we (or some other process) failed to create a directory.
-      test -d "$my_directory_path" || \
-        func_fatal_error "Failed to create \`$1'"
-    fi
-}
-
-
-# func_mktempdir [string]
-# Make a temporary directory that won't clash with other running
-# libtool processes, and avoids race conditions if possible.  If
-# given, STRING is the basename for that directory.
-func_mktempdir ()
-{
-    my_template="${TMPDIR-/tmp}/${1-$progname}"
-
-    if test "$opt_dry_run" = ":"; then
-      # Return a directory name, but don't create it in dry-run mode
-      my_tmpdir="${my_template}-$$"
-    else
-
-      # If mktemp works, use that first and foremost
-      my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
-
-      if test ! -d "$my_tmpdir"; then
-        # Failing that, at least try and use $RANDOM to avoid a race
-        my_tmpdir="${my_template}-${RANDOM-0}$$"
-
-        save_mktempdir_umask=`umask`
-        umask 0077
-        $MKDIR "$my_tmpdir"
-        umask $save_mktempdir_umask
-      fi
-
-      # If we're not in dry-run mode, bomb out on failure
-      test -d "$my_tmpdir" || \
-        func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
-    fi
-
-    $ECHO "$my_tmpdir"
-}
-
-
-# func_quote_for_eval arg
-# Aesthetically quote ARG to be evaled later.
-# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
-# is double-quoted, suitable for a subsequent eval, whereas
-# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
-# which are still active within double quotes backslashified.
-func_quote_for_eval ()
-{
-    case $1 in
-      *[\\\`\"\$]*)
-	func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
-      *)
-        func_quote_for_eval_unquoted_result="$1" ;;
-    esac
-
-    case $func_quote_for_eval_unquoted_result in
-      # Double-quote args containing shell metacharacters to delay
-      # word splitting, command substitution and and variable
-      # expansion for a subsequent eval.
-      # Many Bourne shells cannot handle close brackets correctly
-      # in scan sets, so we specify it separately.
-      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
-        func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
-        ;;
-      *)
-        func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
-    esac
-}
-
-
-# func_quote_for_expand arg
-# Aesthetically quote ARG to be evaled later; same as above,
-# but do not quote variable references.
-func_quote_for_expand ()
-{
-    case $1 in
-      *[\\\`\"]*)
-	my_arg=`$ECHO "$1" | $SED \
-	    -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
-      *)
-        my_arg="$1" ;;
-    esac
-
-    case $my_arg in
-      # Double-quote args containing shell metacharacters to delay
-      # word splitting and command substitution for a subsequent eval.
-      # Many Bourne shells cannot handle close brackets correctly
-      # in scan sets, so we specify it separately.
-      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
-        my_arg="\"$my_arg\""
-        ;;
-    esac
-
-    func_quote_for_expand_result="$my_arg"
-}
-
-
-# func_show_eval cmd [fail_exp]
-# Unless opt_silent is true, then output CMD.  Then, if opt_dryrun is
-# not true, evaluate CMD.  If the evaluation of CMD fails, and FAIL_EXP
-# is given, then evaluate it.
-func_show_eval ()
-{
-    my_cmd="$1"
-    my_fail_exp="${2-:}"
-
-    ${opt_silent-false} || {
-      func_quote_for_expand "$my_cmd"
-      eval "func_echo $func_quote_for_expand_result"
-    }
-
-    if ${opt_dry_run-false}; then :; else
-      eval "$my_cmd"
-      my_status=$?
-      if test "$my_status" -eq 0; then :; else
-	eval "(exit $my_status); $my_fail_exp"
-      fi
-    fi
-}
-
-
-# func_show_eval_locale cmd [fail_exp]
-# Unless opt_silent is true, then output CMD.  Then, if opt_dryrun is
-# not true, evaluate CMD.  If the evaluation of CMD fails, and FAIL_EXP
-# is given, then evaluate it.  Use the saved locale for evaluation.
-func_show_eval_locale ()
-{
-    my_cmd="$1"
-    my_fail_exp="${2-:}"
-
-    ${opt_silent-false} || {
-      func_quote_for_expand "$my_cmd"
-      eval "func_echo $func_quote_for_expand_result"
-    }
-
-    if ${opt_dry_run-false}; then :; else
-      eval "$lt_user_locale
-	    $my_cmd"
-      my_status=$?
-      eval "$lt_safe_locale"
-      if test "$my_status" -eq 0; then :; else
-	eval "(exit $my_status); $my_fail_exp"
-      fi
-    fi
-}
-
-# func_tr_sh
-# Turn $1 into a string suitable for a shell variable name.
-# Result is stored in $func_tr_sh_result.  All characters
-# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
-# if $1 begins with a digit, a '_' is prepended as well.
-func_tr_sh ()
-{
-  case $1 in
-  [0-9]* | *[!a-zA-Z0-9_]*)
-    func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
-    ;;
-  * )
-    func_tr_sh_result=$1
-    ;;
-  esac
-}
-
-
-# func_version
-# Echo version message to standard output and exit.
-func_version ()
-{
-    $opt_debug
-
-    $SED -n '/(C)/!b go
-	:more
-	/\./!{
-	  N
-	  s/\n# / /
-	  b more
-	}
-	:go
-	/^# '$PROGRAM' (GNU /,/# warranty; / {
-        s/^# //
-	s/^# *$//
-        s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
-        p
-     }' < "$progpath"
-     exit $?
-}
-
-# func_usage
-# Echo short help message to standard output and exit.
-func_usage ()
-{
-    $opt_debug
-
-    $SED -n '/^# Usage:/,/^#  *.*--help/ {
-        s/^# //
-	s/^# *$//
-	s/\$progname/'$progname'/
-	p
-    }' < "$progpath"
-    echo
-    $ECHO "run \`$progname --help | more' for full usage"
-    exit $?
-}
-
-# func_help [NOEXIT]
-# Echo long help message to standard output and exit,
-# unless 'noexit' is passed as argument.
-func_help ()
-{
-    $opt_debug
-
-    $SED -n '/^# Usage:/,/# Report bugs to/ {
-	:print
-        s/^# //
-	s/^# *$//
-	s*\$progname*'$progname'*
-	s*\$host*'"$host"'*
-	s*\$SHELL*'"$SHELL"'*
-	s*\$LTCC*'"$LTCC"'*
-	s*\$LTCFLAGS*'"$LTCFLAGS"'*
-	s*\$LD*'"$LD"'*
-	s/\$with_gnu_ld/'"$with_gnu_ld"'/
-	s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
-	s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
-	p
-	d
-     }
-     /^# .* home page:/b print
-     /^# General help using/b print
-     ' < "$progpath"
-    ret=$?
-    if test -z "$1"; then
-      exit $ret
-    fi
-}
-
-# func_missing_arg argname
-# Echo program name prefixed message to standard error and set global
-# exit_cmd.
-func_missing_arg ()
-{
-    $opt_debug
-
-    func_error "missing argument for $1."
-    exit_cmd=exit
-}
-
-
-# func_split_short_opt shortopt
-# Set func_split_short_opt_name and func_split_short_opt_arg shell
-# variables after splitting SHORTOPT after the 2nd character.
-func_split_short_opt ()
-{
-    my_sed_short_opt='1s/^\(..\).*$/\1/;q'
-    my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
-
-    func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
-    func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
-} # func_split_short_opt may be replaced by extended shell implementation
-
-
-# func_split_long_opt longopt
-# Set func_split_long_opt_name and func_split_long_opt_arg shell
-# variables after splitting LONGOPT at the `=' sign.
-func_split_long_opt ()
-{
-    my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
-    my_sed_long_arg='1s/^--[^=]*=//'
-
-    func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
-    func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
-} # func_split_long_opt may be replaced by extended shell implementation
-
-exit_cmd=:
-
-
-
-
-
-magic="%%%MAGIC variable%%%"
-magic_exe="%%%MAGIC EXE variable%%%"
-
-# Global variables.
-nonopt=
-preserve_args=
-lo2o="s/\\.lo\$/.${objext}/"
-o2lo="s/\\.${objext}\$/.lo/"
-extracted_archives=
-extracted_serial=0
-
-# If this variable is set in any of the actions, the command in it
-# will be execed at the end.  This prevents here-documents from being
-# left over by shells.
-exec_cmd=
-
-# func_append var value
-# Append VALUE to the end of shell variable VAR.
-func_append ()
-{
-    eval "${1}=\$${1}\${2}"
-} # func_append may be replaced by extended shell implementation
-
-# func_append_quoted var value
-# Quote VALUE and append to the end of shell variable VAR, separated
-# by a space.
-func_append_quoted ()
-{
-    func_quote_for_eval "${2}"
-    eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
-} # func_append_quoted may be replaced by extended shell implementation
-
-
-# func_arith arithmetic-term...
-func_arith ()
-{
-    func_arith_result=`expr "${@}"`
-} # func_arith may be replaced by extended shell implementation
-
-
-# func_len string
-# STRING may not start with a hyphen.
-func_len ()
-{
-    func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
-} # func_len may be replaced by extended shell implementation
-
-
-# func_lo2o object
-func_lo2o ()
-{
-    func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
-} # func_lo2o may be replaced by extended shell implementation
-
-
-# func_xform libobj-or-source
-func_xform ()
-{
-    func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
-} # func_xform may be replaced by extended shell implementation
-
-
-# func_fatal_configuration arg...
-# Echo program name prefixed message to standard error, followed by
-# a configuration failure hint, and exit.
-func_fatal_configuration ()
-{
-    func_error ${1+"$@"}
-    func_error "See the $PACKAGE documentation for more information."
-    func_fatal_error "Fatal configuration error."
-}
-
-
-# func_config
-# Display the configuration for all the tags in this script.
-func_config ()
-{
-    re_begincf='^# ### BEGIN LIBTOOL'
-    re_endcf='^# ### END LIBTOOL'
-
-    # Default configuration.
-    $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
-
-    # Now print the configurations for the tags.
-    for tagname in $taglist; do
-      $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
-    done
-
-    exit $?
-}
-
-# func_features
-# Display the features supported by this script.
-func_features ()
-{
-    echo "host: $host"
-    if test "$build_libtool_libs" = yes; then
-      echo "enable shared libraries"
-    else
-      echo "disable shared libraries"
-    fi
-    if test "$build_old_libs" = yes; then
-      echo "enable static libraries"
-    else
-      echo "disable static libraries"
-    fi
-
-    exit $?
-}
-
-# func_enable_tag tagname
-# Verify that TAGNAME is valid, and either flag an error and exit, or
-# enable the TAGNAME tag.  We also add TAGNAME to the global $taglist
-# variable here.
-func_enable_tag ()
-{
-  # Global variable:
-  tagname="$1"
-
-  re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
-  re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
-  sed_extractcf="/$re_begincf/,/$re_endcf/p"
-
-  # Validate tagname.
-  case $tagname in
-    *[!-_A-Za-z0-9,/]*)
-      func_fatal_error "invalid tag name: $tagname"
-      ;;
-  esac
-
-  # Don't test for the "default" C tag, as we know it's
-  # there but not specially marked.
-  case $tagname in
-    CC) ;;
-    *)
-      if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
-	taglist="$taglist $tagname"
-
-	# Evaluate the configuration.  Be careful to quote the path
-	# and the sed script, to avoid splitting on whitespace, but
-	# also don't use non-portable quotes within backquotes within
-	# quotes we have to do it in 2 steps:
-	extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
-	eval "$extractedcf"
-      else
-	func_error "ignoring unknown tag $tagname"
-      fi
-      ;;
-  esac
-}
-
-# func_check_version_match
-# Ensure that we are using m4 macros, and libtool script from the same
-# release of libtool.
-func_check_version_match ()
-{
-  if test "$package_revision" != "$macro_revision"; then
-    if test "$VERSION" != "$macro_version"; then
-      if test -z "$macro_version"; then
-        cat >&2 <<_LT_EOF
-$progname: Version mismatch error.  This is $PACKAGE $VERSION, but the
-$progname: definition of this LT_INIT comes from an older release.
-$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
-$progname: and run autoconf again.
-_LT_EOF
-      else
-        cat >&2 <<_LT_EOF
-$progname: Version mismatch error.  This is $PACKAGE $VERSION, but the
-$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
-$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
-$progname: and run autoconf again.
-_LT_EOF
-      fi
-    else
-      cat >&2 <<_LT_EOF
-$progname: Version mismatch error.  This is $PACKAGE $VERSION, revision $package_revision,
-$progname: but the definition of this LT_INIT comes from revision $macro_revision.
-$progname: You should recreate aclocal.m4 with macros from revision $package_revision
-$progname: of $PACKAGE $VERSION and run autoconf again.
-_LT_EOF
-    fi
-
-    exit $EXIT_MISMATCH
-  fi
-}
-
-
-# Shorthand for --mode=foo, only valid as the first argument
-case $1 in
-clean|clea|cle|cl)
-  shift; set dummy --mode clean ${1+"$@"}; shift
-  ;;
-compile|compil|compi|comp|com|co|c)
-  shift; set dummy --mode compile ${1+"$@"}; shift
-  ;;
-execute|execut|execu|exec|exe|ex|e)
-  shift; set dummy --mode execute ${1+"$@"}; shift
-  ;;
-finish|finis|fini|fin|fi|f)
-  shift; set dummy --mode finish ${1+"$@"}; shift
-  ;;
-install|instal|insta|inst|ins|in|i)
-  shift; set dummy --mode install ${1+"$@"}; shift
-  ;;
-link|lin|li|l)
-  shift; set dummy --mode link ${1+"$@"}; shift
-  ;;
-uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
-  shift; set dummy --mode uninstall ${1+"$@"}; shift
-  ;;
-esac
-
-
-
-# Option defaults:
-opt_debug=:
-opt_dry_run=false
-opt_config=false
-opt_preserve_dup_deps=false
-opt_features=false
-opt_finish=false
-opt_help=false
-opt_help_all=false
-opt_silent=:
-opt_warning=:
-opt_verbose=:
-opt_silent=false
-opt_verbose=false
-
-
-# Parse options once, thoroughly.  This comes as soon as possible in the
-# script to make things like `--version' happen as quickly as we can.
-{
-  # this just eases exit handling
-  while test $# -gt 0; do
-    opt="$1"
-    shift
-    case $opt in
-      --debug|-x)	opt_debug='set -x'
-			func_echo "enabling shell trace mode"
-			$opt_debug
-			;;
-      --dry-run|--dryrun|-n)
-			opt_dry_run=:
-			;;
-      --config)
-			opt_config=:
-func_config
-			;;
-      --dlopen|-dlopen)
-			optarg="$1"
-			opt_dlopen="${opt_dlopen+$opt_dlopen
-}$optarg"
-			shift
-			;;
-      --preserve-dup-deps)
-			opt_preserve_dup_deps=:
-			;;
-      --features)
-			opt_features=:
-func_features
-			;;
-      --finish)
-			opt_finish=:
-set dummy --mode finish ${1+"$@"}; shift
-			;;
-      --help)
-			opt_help=:
-			;;
-      --help-all)
-			opt_help_all=:
-opt_help=': help-all'
-			;;
-      --mode)
-			test $# = 0 && func_missing_arg $opt && break
-			optarg="$1"
-			opt_mode="$optarg"
-case $optarg in
-  # Valid mode arguments:
-  clean|compile|execute|finish|install|link|relink|uninstall) ;;
-
-  # Catch anything else as an error
-  *) func_error "invalid argument for $opt"
-     exit_cmd=exit
-     break
-     ;;
-esac
-			shift
-			;;
-      --no-silent|--no-quiet)
-			opt_silent=false
-func_append preserve_args " $opt"
-			;;
-      --no-warning|--no-warn)
-			opt_warning=false
-func_append preserve_args " $opt"
-			;;
-      --no-verbose)
-			opt_verbose=false
-func_append preserve_args " $opt"
-			;;
-      --silent|--quiet)
-			opt_silent=:
-func_append preserve_args " $opt"
-        opt_verbose=false
-			;;
-      --verbose|-v)
-			opt_verbose=:
-func_append preserve_args " $opt"
-opt_silent=false
-			;;
-      --tag)
-			test $# = 0 && func_missing_arg $opt && break
-			optarg="$1"
-			opt_tag="$optarg"
-func_append preserve_args " $opt $optarg"
-func_enable_tag "$optarg"
-			shift
-			;;
-
-      -\?|-h)		func_usage				;;
-      --help)		func_help				;;
-      --version)	func_version				;;
-
-      # Separate optargs to long options:
-      --*=*)
-			func_split_long_opt "$opt"
-			set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
-			shift
-			;;
-
-      # Separate non-argument short options:
-      -\?*|-h*|-n*|-v*)
-			func_split_short_opt "$opt"
-			set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
-			shift
-			;;
-
-      --)		break					;;
-      -*)		func_fatal_help "unrecognized option \`$opt'" ;;
-      *)		set dummy "$opt" ${1+"$@"};	shift; break  ;;
-    esac
-  done
-
-  # Validate options:
-
-  # save first non-option argument
-  if test "$#" -gt 0; then
-    nonopt="$opt"
-    shift
-  fi
-
-  # preserve --debug
-  test "$opt_debug" = : || func_append preserve_args " --debug"
-
-  case $host in
-    *cygwin* | *mingw* | *pw32* | *cegcc*)
-      # don't eliminate duplications in $postdeps and $predeps
-      opt_duplicate_compiler_generated_deps=:
-      ;;
-    *)
-      opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
-      ;;
-  esac
-
-  $opt_help || {
-    # Sanity checks first:
-    func_check_version_match
-
-    if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
-      func_fatal_configuration "not configured to build any kind of library"
-    fi
-
-    # Darwin sucks
-    eval std_shrext=\"$shrext_cmds\"
-
-    # Only execute mode is allowed to have -dlopen flags.
-    if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
-      func_error "unrecognized option \`-dlopen'"
-      $ECHO "$help" 1>&2
-      exit $EXIT_FAILURE
-    fi
-
-    # Change the help message to a mode-specific one.
-    generic_help="$help"
-    help="Try \`$progname --help --mode=$opt_mode' for more information."
-  }
-
-
-  # Bail if the options were screwed
-  $exit_cmd $EXIT_FAILURE
-}
-
-
-
-
-## ----------- ##
-##    Main.    ##
-## ----------- ##
-
-# func_lalib_p file
-# True iff FILE is a libtool `.la' library or `.lo' object file.
-# This function is only a basic sanity check; it will hardly flush out
-# determined imposters.
-func_lalib_p ()
-{
-    test -f "$1" &&
-      $SED -e 4q "$1" 2>/dev/null \
-        | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
-}
-
-# func_lalib_unsafe_p file
-# True iff FILE is a libtool `.la' library or `.lo' object file.
-# This function implements the same check as func_lalib_p without
-# resorting to external programs.  To this end, it redirects stdin and
-# closes it afterwards, without saving the original file descriptor.
-# As a safety measure, use it only where a negative result would be
-# fatal anyway.  Works if `file' does not exist.
-func_lalib_unsafe_p ()
-{
-    lalib_p=no
-    if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
-	for lalib_p_l in 1 2 3 4
-	do
-	    read lalib_p_line
-	    case "$lalib_p_line" in
-		\#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
-	    esac
-	done
-	exec 0<&5 5<&-
-    fi
-    test "$lalib_p" = yes
-}
-
-# func_ltwrapper_script_p file
-# True iff FILE is a libtool wrapper script
-# This function is only a basic sanity check; it will hardly flush out
-# determined imposters.
-func_ltwrapper_script_p ()
-{
-    func_lalib_p "$1"
-}
-
-# func_ltwrapper_executable_p file
-# True iff FILE is a libtool wrapper executable
-# This function is only a basic sanity check; it will hardly flush out
-# determined imposters.
-func_ltwrapper_executable_p ()
-{
-    func_ltwrapper_exec_suffix=
-    case $1 in
-    *.exe) ;;
-    *) func_ltwrapper_exec_suffix=.exe ;;
-    esac
-    $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
-}
-
-# func_ltwrapper_scriptname file
-# Assumes file is an ltwrapper_executable
-# uses $file to determine the appropriate filename for a
-# temporary ltwrapper_script.
-func_ltwrapper_scriptname ()
-{
-    func_dirname_and_basename "$1" "" "."
-    func_stripname '' '.exe' "$func_basename_result"
-    func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
-}
-
-# func_ltwrapper_p file
-# True iff FILE is a libtool wrapper script or wrapper executable
-# This function is only a basic sanity check; it will hardly flush out
-# determined imposters.
-func_ltwrapper_p ()
-{
-    func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
-}
-
-
-# func_execute_cmds commands fail_cmd
-# Execute tilde-delimited COMMANDS.
-# If FAIL_CMD is given, eval that upon failure.
-# FAIL_CMD may read-access the current command in variable CMD!
-func_execute_cmds ()
-{
-    $opt_debug
-    save_ifs=$IFS; IFS='~'
-    for cmd in $1; do
-      IFS=$save_ifs
-      eval cmd=\"$cmd\"
-      func_show_eval "$cmd" "${2-:}"
-    done
-    IFS=$save_ifs
-}
-
-
-# func_source file
-# Source FILE, adding directory component if necessary.
-# Note that it is not necessary on cygwin/mingw to append a dot to
-# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
-# behavior happens only for exec(3), not for open(2)!  Also, sourcing
-# `FILE.' does not work on cygwin managed mounts.
-func_source ()
-{
-    $opt_debug
-    case $1 in
-    */* | *\\*)	. "$1" ;;
-    *)		. "./$1" ;;
-    esac
-}
-
-
-# func_resolve_sysroot PATH
-# Replace a leading = in PATH with a sysroot.  Store the result into
-# func_resolve_sysroot_result
-func_resolve_sysroot ()
-{
-  func_resolve_sysroot_result=$1
-  case $func_resolve_sysroot_result in
-  =*)
-    func_stripname '=' '' "$func_resolve_sysroot_result"
-    func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
-    ;;
-  esac
-}
-
-# func_replace_sysroot PATH
-# If PATH begins with the sysroot, replace it with = and
-# store the result into func_replace_sysroot_result.
-func_replace_sysroot ()
-{
-  case "$lt_sysroot:$1" in
-  ?*:"$lt_sysroot"*)
-    func_stripname "$lt_sysroot" '' "$1"
-    func_replace_sysroot_result="=$func_stripname_result"
-    ;;
-  *)
-    # Including no sysroot.
-    func_replace_sysroot_result=$1
-    ;;
-  esac
-}
-
-# func_infer_tag arg
-# Infer tagged configuration to use if any are available and
-# if one wasn't chosen via the "--tag" command line option.
-# Only attempt this if the compiler in the base compile
-# command doesn't match the default compiler.
-# arg is usually of the form 'gcc ...'
-func_infer_tag ()
-{
-    $opt_debug
-    if test -n "$available_tags" && test -z "$tagname"; then
-      CC_quoted=
-      for arg in $CC; do
-	func_append_quoted CC_quoted "$arg"
-      done
-      CC_expanded=`func_echo_all $CC`
-      CC_quoted_expanded=`func_echo_all $CC_quoted`
-      case $@ in
-      # Blanks in the command may have been stripped by the calling shell,
-      # but not from the CC environment variable when configure was run.
-      " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
-      " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
-      # Blanks at the start of $base_compile will cause this to fail
-      # if we don't check for them as well.
-      *)
-	for z in $available_tags; do
-	  if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
-	    # Evaluate the configuration.
-	    eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
-	    CC_quoted=
-	    for arg in $CC; do
-	      # Double-quote args containing other shell metacharacters.
-	      func_append_quoted CC_quoted "$arg"
-	    done
-	    CC_expanded=`func_echo_all $CC`
-	    CC_quoted_expanded=`func_echo_all $CC_quoted`
-	    case "$@ " in
-	    " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
-	    " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
-	      # The compiler in the base compile command matches
-	      # the one in the tagged configuration.
-	      # Assume this is the tagged configuration we want.
-	      tagname=$z
-	      break
-	      ;;
-	    esac
-	  fi
-	done
-	# If $tagname still isn't set, then no tagged configuration
-	# was found and let the user know that the "--tag" command
-	# line option must be used.
-	if test -z "$tagname"; then
-	  func_echo "unable to infer tagged configuration"
-	  func_fatal_error "specify a tag with \`--tag'"
-#	else
-#	  func_verbose "using $tagname tagged configuration"
-	fi
-	;;
-      esac
-    fi
-}
-
-
-
-# func_write_libtool_object output_name pic_name nonpic_name
-# Create a libtool object file (analogous to a ".la" file),
-# but don't create it if we're doing a dry run.
-func_write_libtool_object ()
-{
-    write_libobj=${1}
-    if test "$build_libtool_libs" = yes; then
-      write_lobj=\'${2}\'
-    else
-      write_lobj=none
-    fi
-
-    if test "$build_old_libs" = yes; then
-      write_oldobj=\'${3}\'
-    else
-      write_oldobj=none
-    fi
-
-    $opt_dry_run || {
-      cat >${write_libobj}T <<EOF
-# $write_libobj - a libtool object file
-# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
-#
-# Please DO NOT delete this file!
-# It is necessary for linking the library.
-
-# Name of the PIC object.
-pic_object=$write_lobj
-
-# Name of the non-PIC object
-non_pic_object=$write_oldobj
-
-EOF
-      $MV "${write_libobj}T" "${write_libobj}"
-    }
-}
-
-
-##################################################
-# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
-##################################################
-
-# func_convert_core_file_wine_to_w32 ARG
-# Helper function used by file name conversion functions when $build is *nix,
-# and $host is mingw, cygwin, or some other w32 environment. Relies on a
-# correctly configured wine environment available, with the winepath program
-# in $build's $PATH.
-#
-# ARG is the $build file name to be converted to w32 format.
-# Result is available in $func_convert_core_file_wine_to_w32_result, and will
-# be empty on error (or when ARG is empty)
-func_convert_core_file_wine_to_w32 ()
-{
-  $opt_debug
-  func_convert_core_file_wine_to_w32_result="$1"
-  if test -n "$1"; then
-    # Unfortunately, winepath does not exit with a non-zero error code, so we
-    # are forced to check the contents of stdout. On the other hand, if the
-    # command is not found, the shell will set an exit code of 127 and print
-    # *an error message* to stdout. So we must check for both error code of
-    # zero AND non-empty stdout, which explains the odd construction:
-    func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
-    if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
-      func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
-        $SED -e "$lt_sed_naive_backslashify"`
-    else
-      func_convert_core_file_wine_to_w32_result=
-    fi
-  fi
-}
-# end: func_convert_core_file_wine_to_w32
-
-
-# func_convert_core_path_wine_to_w32 ARG
-# Helper function used by path conversion functions when $build is *nix, and
-# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
-# configured wine environment available, with the winepath program in $build's
-# $PATH. Assumes ARG has no leading or trailing path separator characters.
-#
-# ARG is path to be converted from $build format to win32.
-# Result is available in $func_convert_core_path_wine_to_w32_result.
-# Unconvertible file (directory) names in ARG are skipped; if no directory names
-# are convertible, then the result may be empty.
-func_convert_core_path_wine_to_w32 ()
-{
-  $opt_debug
-  # unfortunately, winepath doesn't convert paths, only file names
-  func_convert_core_path_wine_to_w32_result=""
-  if test -n "$1"; then
-    oldIFS=$IFS
-    IFS=:
-    for func_convert_core_path_wine_to_w32_f in $1; do
-      IFS=$oldIFS
-      func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
-      if test -n "$func_convert_core_file_wine_to_w32_result" ; then
-        if test -z "$func_convert_core_path_wine_to_w32_result"; then
-          func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
-        else
-          func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
-        fi
-      fi
-    done
-    IFS=$oldIFS
-  fi
-}
-# end: func_convert_core_path_wine_to_w32
-
-
-# func_cygpath ARGS...
-# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
-# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
-# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
-# (2), returns the Cygwin file name or path in func_cygpath_result (input
-# file name or path is assumed to be in w32 format, as previously converted
-# from $build's *nix or MSYS format). In case (3), returns the w32 file name
-# or path in func_cygpath_result (input file name or path is assumed to be in
-# Cygwin format). Returns an empty string on error.
-#
-# ARGS are passed to cygpath, with the last one being the file name or path to
-# be converted.
-#
-# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
-# environment variable; do not put it in $PATH.
-func_cygpath ()
-{
-  $opt_debug
-  if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
-    func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
-    if test "$?" -ne 0; then
-      # on failure, ensure result is empty
-      func_cygpath_result=
-    fi
-  else
-    func_cygpath_result=
-    func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
-  fi
-}
-#end: func_cygpath
-
-
-# func_convert_core_msys_to_w32 ARG
-# Convert file name or path ARG from MSYS format to w32 format.  Return
-# result in func_convert_core_msys_to_w32_result.
-func_convert_core_msys_to_w32 ()
-{
-  $opt_debug
-  # awkward: cmd appends spaces to result
-  func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
-    $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
-}
-#end: func_convert_core_msys_to_w32
-
-
-# func_convert_file_check ARG1 ARG2
-# Verify that ARG1 (a file name in $build format) was converted to $host
-# format in ARG2. Otherwise, emit an error message, but continue (resetting
-# func_to_host_file_result to ARG1).
-func_convert_file_check ()
-{
-  $opt_debug
-  if test -z "$2" && test -n "$1" ; then
-    func_error "Could not determine host file name corresponding to"
-    func_error "  \`$1'"
-    func_error "Continuing, but uninstalled executables may not work."
-    # Fallback:
-    func_to_host_file_result="$1"
-  fi
-}
-# end func_convert_file_check
-
-
-# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
-# Verify that FROM_PATH (a path in $build format) was converted to $host
-# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
-# func_to_host_file_result to a simplistic fallback value (see below).
-func_convert_path_check ()
-{
-  $opt_debug
-  if test -z "$4" && test -n "$3"; then
-    func_error "Could not determine the host path corresponding to"
-    func_error "  \`$3'"
-    func_error "Continuing, but uninstalled executables may not work."
-    # Fallback.  This is a deliberately simplistic "conversion" and
-    # should not be "improved".  See libtool.info.
-    if test "x$1" != "x$2"; then
-      lt_replace_pathsep_chars="s|$1|$2|g"
-      func_to_host_path_result=`echo "$3" |
-        $SED -e "$lt_replace_pathsep_chars"`
-    else
-      func_to_host_path_result="$3"
-    fi
-  fi
-}
-# end func_convert_path_check
-
-
-# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
-# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
-# and appending REPL if ORIG matches BACKPAT.
-func_convert_path_front_back_pathsep ()
-{
-  $opt_debug
-  case $4 in
-  $1 ) func_to_host_path_result="$3$func_to_host_path_result"
-    ;;
-  esac
-  case $4 in
-  $2 ) func_append func_to_host_path_result "$3"
-    ;;
-  esac
-}
-# end func_convert_path_front_back_pathsep
-
-
-##################################################
-# $build to $host FILE NAME CONVERSION FUNCTIONS #
-##################################################
-# invoked via `$to_host_file_cmd ARG'
-#
-# In each case, ARG is the path to be converted from $build to $host format.
-# Result will be available in $func_to_host_file_result.
-
-
-# func_to_host_file ARG
-# Converts the file name ARG from $build format to $host format. Return result
-# in func_to_host_file_result.
-func_to_host_file ()
-{
-  $opt_debug
-  $to_host_file_cmd "$1"
-}
-# end func_to_host_file
-
-
-# func_to_tool_file ARG LAZY
-# converts the file name ARG from $build format to toolchain format. Return
-# result in func_to_tool_file_result.  If the conversion in use is listed
-# in (the comma separated) LAZY, no conversion takes place.
-func_to_tool_file ()
-{
-  $opt_debug
-  case ,$2, in
-    *,"$to_tool_file_cmd",*)
-      func_to_tool_file_result=$1
-      ;;
-    *)
-      $to_tool_file_cmd "$1"
-      func_to_tool_file_result=$func_to_host_file_result
-      ;;
-  esac
-}
-# end func_to_tool_file
-
-
-# func_convert_file_noop ARG
-# Copy ARG to func_to_host_file_result.
-func_convert_file_noop ()
-{
-  func_to_host_file_result="$1"
-}
-# end func_convert_file_noop
-
-
-# func_convert_file_msys_to_w32 ARG
-# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
-# conversion to w32 is not available inside the cwrapper.  Returns result in
-# func_to_host_file_result.
-func_convert_file_msys_to_w32 ()
-{
-  $opt_debug
-  func_to_host_file_result="$1"
-  if test -n "$1"; then
-    func_convert_core_msys_to_w32 "$1"
-    func_to_host_file_result="$func_convert_core_msys_to_w32_result"
-  fi
-  func_convert_file_check "$1" "$func_to_host_file_result"
-}
-# end func_convert_file_msys_to_w32
-
-
-# func_convert_file_cygwin_to_w32 ARG
-# Convert file name ARG from Cygwin to w32 format.  Returns result in
-# func_to_host_file_result.
-func_convert_file_cygwin_to_w32 ()
-{
-  $opt_debug
-  func_to_host_file_result="$1"
-  if test -n "$1"; then
-    # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
-    # LT_CYGPATH in this case.
-    func_to_host_file_result=`cygpath -m "$1"`
-  fi
-  func_convert_file_check "$1" "$func_to_host_file_result"
-}
-# end func_convert_file_cygwin_to_w32
-
-
-# func_convert_file_nix_to_w32 ARG
-# Convert file name ARG from *nix to w32 format.  Requires a wine environment
-# and a working winepath. Returns result in func_to_host_file_result.
-func_convert_file_nix_to_w32 ()
-{
-  $opt_debug
-  func_to_host_file_result="$1"
-  if test -n "$1"; then
-    func_convert_core_file_wine_to_w32 "$1"
-    func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
-  fi
-  func_convert_file_check "$1" "$func_to_host_file_result"
-}
-# end func_convert_file_nix_to_w32
-
-
-# func_convert_file_msys_to_cygwin ARG
-# Convert file name ARG from MSYS to Cygwin format.  Requires LT_CYGPATH set.
-# Returns result in func_to_host_file_result.
-func_convert_file_msys_to_cygwin ()
-{
-  $opt_debug
-  func_to_host_file_result="$1"
-  if test -n "$1"; then
-    func_convert_core_msys_to_w32 "$1"
-    func_cygpath -u "$func_convert_core_msys_to_w32_result"
-    func_to_host_file_result="$func_cygpath_result"
-  fi
-  func_convert_file_check "$1" "$func_to_host_file_result"
-}
-# end func_convert_file_msys_to_cygwin
-
-
-# func_convert_file_nix_to_cygwin ARG
-# Convert file name ARG from *nix to Cygwin format.  Requires Cygwin installed
-# in a wine environment, working winepath, and LT_CYGPATH set.  Returns result
-# in func_to_host_file_result.
-func_convert_file_nix_to_cygwin ()
-{
-  $opt_debug
-  func_to_host_file_result="$1"
-  if test -n "$1"; then
-    # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
-    func_convert_core_file_wine_to_w32 "$1"
-    func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
-    func_to_host_file_result="$func_cygpath_result"
-  fi
-  func_convert_file_check "$1" "$func_to_host_file_result"
-}
-# end func_convert_file_nix_to_cygwin
-
-
-#############################################
-# $build to $host PATH CONVERSION FUNCTIONS #
-#############################################
-# invoked via `$to_host_path_cmd ARG'
-#
-# In each case, ARG is the path to be converted from $build to $host format.
-# The result will be available in $func_to_host_path_result.
-#
-# Path separators are also converted from $build format to $host format.  If
-# ARG begins or ends with a path separator character, it is preserved (but
-# converted to $host format) on output.
-#
-# All path conversion functions are named using the following convention:
-#   file name conversion function    : func_convert_file_X_to_Y ()
-#   path conversion function         : func_convert_path_X_to_Y ()
-# where, for any given $build/$host combination the 'X_to_Y' value is the
-# same.  If conversion functions are added for new $build/$host combinations,
-# the two new functions must follow this pattern, or func_init_to_host_path_cmd
-# will break.
-
-
-# func_init_to_host_path_cmd
-# Ensures that function "pointer" variable $to_host_path_cmd is set to the
-# appropriate value, based on the value of $to_host_file_cmd.
-to_host_path_cmd=
-func_init_to_host_path_cmd ()
-{
-  $opt_debug
-  if test -z "$to_host_path_cmd"; then
-    func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
-    to_host_path_cmd="func_convert_path_${func_stripname_result}"
-  fi
-}
-
-
-# func_to_host_path ARG
-# Converts the path ARG from $build format to $host format. Return result
-# in func_to_host_path_result.
-func_to_host_path ()
-{
-  $opt_debug
-  func_init_to_host_path_cmd
-  $to_host_path_cmd "$1"
-}
-# end func_to_host_path
-
-
-# func_convert_path_noop ARG
-# Copy ARG to func_to_host_path_result.
-func_convert_path_noop ()
-{
-  func_to_host_path_result="$1"
-}
-# end func_convert_path_noop
-
-
-# func_convert_path_msys_to_w32 ARG
-# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
-# conversion to w32 is not available inside the cwrapper.  Returns result in
-# func_to_host_path_result.
-func_convert_path_msys_to_w32 ()
-{
-  $opt_debug
-  func_to_host_path_result="$1"
-  if test -n "$1"; then
-    # Remove leading and trailing path separator characters from ARG.  MSYS
-    # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
-    # and winepath ignores them completely.
-    func_stripname : : "$1"
-    func_to_host_path_tmp1=$func_stripname_result
-    func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
-    func_to_host_path_result="$func_convert_core_msys_to_w32_result"
-    func_convert_path_check : ";" \
-      "$func_to_host_path_tmp1" "$func_to_host_path_result"
-    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
-  fi
-}
-# end func_convert_path_msys_to_w32
-
-
-# func_convert_path_cygwin_to_w32 ARG
-# Convert path ARG from Cygwin to w32 format.  Returns result in
-# func_to_host_file_result.
-func_convert_path_cygwin_to_w32 ()
-{
-  $opt_debug
-  func_to_host_path_result="$1"
-  if test -n "$1"; then
-    # See func_convert_path_msys_to_w32:
-    func_stripname : : "$1"
-    func_to_host_path_tmp1=$func_stripname_result
-    func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
-    func_convert_path_check : ";" \
-      "$func_to_host_path_tmp1" "$func_to_host_path_result"
-    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
-  fi
-}
-# end func_convert_path_cygwin_to_w32
-
-
-# func_convert_path_nix_to_w32 ARG
-# Convert path ARG from *nix to w32 format.  Requires a wine environment and
-# a working winepath.  Returns result in func_to_host_file_result.
-func_convert_path_nix_to_w32 ()
-{
-  $opt_debug
-  func_to_host_path_result="$1"
-  if test -n "$1"; then
-    # See func_convert_path_msys_to_w32:
-    func_stripname : : "$1"
-    func_to_host_path_tmp1=$func_stripname_result
-    func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
-    func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
-    func_convert_path_check : ";" \
-      "$func_to_host_path_tmp1" "$func_to_host_path_result"
-    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
-  fi
-}
-# end func_convert_path_nix_to_w32
-
-
-# func_convert_path_msys_to_cygwin ARG
-# Convert path ARG from MSYS to Cygwin format.  Requires LT_CYGPATH set.
-# Returns result in func_to_host_file_result.
-func_convert_path_msys_to_cygwin ()
-{
-  $opt_debug
-  func_to_host_path_result="$1"
-  if test -n "$1"; then
-    # See func_convert_path_msys_to_w32:
-    func_stripname : : "$1"
-    func_to_host_path_tmp1=$func_stripname_result
-    func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
-    func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
-    func_to_host_path_result="$func_cygpath_result"
-    func_convert_path_check : : \
-      "$func_to_host_path_tmp1" "$func_to_host_path_result"
-    func_convert_path_front_back_pathsep ":*" "*:" : "$1"
-  fi
-}
-# end func_convert_path_msys_to_cygwin
-
-
-# func_convert_path_nix_to_cygwin ARG
-# Convert path ARG from *nix to Cygwin format.  Requires Cygwin installed in a
-# a wine environment, working winepath, and LT_CYGPATH set.  Returns result in
-# func_to_host_file_result.
-func_convert_path_nix_to_cygwin ()
-{
-  $opt_debug
-  func_to_host_path_result="$1"
-  if test -n "$1"; then
-    # Remove leading and trailing path separator characters from
-    # ARG. msys behavior is inconsistent here, cygpath turns them
-    # into '.;' and ';.', and winepath ignores them completely.
-    func_stripname : : "$1"
-    func_to_host_path_tmp1=$func_stripname_result
-    func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
-    func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
-    func_to_host_path_result="$func_cygpath_result"
-    func_convert_path_check : : \
-      "$func_to_host_path_tmp1" "$func_to_host_path_result"
-    func_convert_path_front_back_pathsep ":*" "*:" : "$1"
-  fi
-}
-# end func_convert_path_nix_to_cygwin
-
-
-# func_mode_compile arg...
-func_mode_compile ()
-{
-    $opt_debug
-    # Get the compilation command and the source file.
-    base_compile=
-    srcfile="$nonopt"  #  always keep a non-empty value in "srcfile"
-    suppress_opt=yes
-    suppress_output=
-    arg_mode=normal
-    libobj=
-    later=
-    pie_flag=
-
-    for arg
-    do
-      case $arg_mode in
-      arg  )
-	# do not "continue".  Instead, add this to base_compile
-	lastarg="$arg"
-	arg_mode=normal
-	;;
-
-      target )
-	libobj="$arg"
-	arg_mode=normal
-	continue
-	;;
-
-      normal )
-	# Accept any command-line options.
-	case $arg in
-	-o)
-	  test -n "$libobj" && \
-	    func_fatal_error "you cannot specify \`-o' more than once"
-	  arg_mode=target
-	  continue
-	  ;;
-
-	-pie | -fpie | -fPIE)
-          func_append pie_flag " $arg"
-	  continue
-	  ;;
-
-	-shared | -static | -prefer-pic | -prefer-non-pic)
-	  func_append later " $arg"
-	  continue
-	  ;;
-
-	-no-suppress)
-	  suppress_opt=no
-	  continue
-	  ;;
-
-	-Xcompiler)
-	  arg_mode=arg  #  the next one goes into the "base_compile" arg list
-	  continue      #  The current "srcfile" will either be retained or
-	  ;;            #  replaced later.  I would guess that would be a bug.
-
-	-Wc,*)
-	  func_stripname '-Wc,' '' "$arg"
-	  args=$func_stripname_result
-	  lastarg=
-	  save_ifs="$IFS"; IFS=','
-	  for arg in $args; do
-	    IFS="$save_ifs"
-	    func_append_quoted lastarg "$arg"
-	  done
-	  IFS="$save_ifs"
-	  func_stripname ' ' '' "$lastarg"
-	  lastarg=$func_stripname_result
-
-	  # Add the arguments to base_compile.
-	  func_append base_compile " $lastarg"
-	  continue
-	  ;;
-
-	*)
-	  # Accept the current argument as the source file.
-	  # The previous "srcfile" becomes the current argument.
-	  #
-	  lastarg="$srcfile"
-	  srcfile="$arg"
-	  ;;
-	esac  #  case $arg
-	;;
-      esac    #  case $arg_mode
-
-      # Aesthetically quote the previous argument.
-      func_append_quoted base_compile "$lastarg"
-    done # for arg
-
-    case $arg_mode in
-    arg)
-      func_fatal_error "you must specify an argument for -Xcompile"
-      ;;
-    target)
-      func_fatal_error "you must specify a target with \`-o'"
-      ;;
-    *)
-      # Get the name of the library object.
-      test -z "$libobj" && {
-	func_basename "$srcfile"
-	libobj="$func_basename_result"
-      }
-      ;;
-    esac
-
-    # Recognize several different file suffixes.
-    # If the user specifies -o file.o, it is replaced with file.lo
-    case $libobj in
-    *.[cCFSifmso] | \
-    *.ada | *.adb | *.ads | *.asm | \
-    *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
-    *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
-      func_xform "$libobj"
-      libobj=$func_xform_result
-      ;;
-    esac
-
-    case $libobj in
-    *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
-    *)
-      func_fatal_error "cannot determine name of library object from \`$libobj'"
-      ;;
-    esac
-
-    func_infer_tag $base_compile
-
-    for arg in $later; do
-      case $arg in
-      -shared)
-	test "$build_libtool_libs" != yes && \
-	  func_fatal_configuration "can not build a shared library"
-	build_old_libs=no
-	continue
-	;;
-
-      -static)
-	build_libtool_libs=no
-	build_old_libs=yes
-	continue
-	;;
-
-      -prefer-pic)
-	pic_mode=yes
-	continue
-	;;
-
-      -prefer-non-pic)
-	pic_mode=no
-	continue
-	;;
-      esac
-    done
-
-    func_quote_for_eval "$libobj"
-    test "X$libobj" != "X$func_quote_for_eval_result" \
-      && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"'	 &()|`$[]' \
-      && func_warning "libobj name \`$libobj' may not contain shell special characters."
-    func_dirname_and_basename "$obj" "/" ""
-    objname="$func_basename_result"
-    xdir="$func_dirname_result"
-    lobj=${xdir}$objdir/$objname
-
-    test -z "$base_compile" && \
-      func_fatal_help "you must specify a compilation command"
-
-    # Delete any leftover library objects.
-    if test "$build_old_libs" = yes; then
-      removelist="$obj $lobj $libobj ${libobj}T"
-    else
-      removelist="$lobj $libobj ${libobj}T"
-    fi
-
-    # On Cygwin there's no "real" PIC flag so we must build both object types
-    case $host_os in
-    cygwin* | mingw* | pw32* | os2* | cegcc*)
-      pic_mode=default
-      ;;
-    esac
-    if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
-      # non-PIC code in shared libraries is not supported
-      pic_mode=default
-    fi
-
-    # Calculate the filename of the output object if compiler does
-    # not support -o with -c
-    if test "$compiler_c_o" = no; then
-      output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
-      lockfile="$output_obj.lock"
-    else
-      output_obj=
-      need_locks=no
-      lockfile=
-    fi
-
-    # Lock this critical section if it is needed
-    # We use this script file to make the link, it avoids creating a new file
-    if test "$need_locks" = yes; then
-      until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
-	func_echo "Waiting for $lockfile to be removed"
-	sleep 2
-      done
-    elif test "$need_locks" = warn; then
-      if test -f "$lockfile"; then
-	$ECHO "\
-*** ERROR, $lockfile exists and contains:
-`cat $lockfile 2>/dev/null`
-
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together.  If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
-	$opt_dry_run || $RM $removelist
-	exit $EXIT_FAILURE
-      fi
-      func_append removelist " $output_obj"
-      $ECHO "$srcfile" > "$lockfile"
-    fi
-
-    $opt_dry_run || $RM $removelist
-    func_append removelist " $lockfile"
-    trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
-
-    func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
-    srcfile=$func_to_tool_file_result
-    func_quote_for_eval "$srcfile"
-    qsrcfile=$func_quote_for_eval_result
-
-    # Only build a PIC object if we are building libtool libraries.
-    if test "$build_libtool_libs" = yes; then
-      # Without this assignment, base_compile gets emptied.
-      fbsd_hideous_sh_bug=$base_compile
-
-      if test "$pic_mode" != no; then
-	command="$base_compile $qsrcfile $pic_flag"
-      else
-	# Don't build PIC code
-	command="$base_compile $qsrcfile"
-      fi
-
-      func_mkdir_p "$xdir$objdir"
-
-      if test -z "$output_obj"; then
-	# Place PIC objects in $objdir
-	func_append command " -o $lobj"
-      fi
-
-      func_show_eval_locale "$command"	\
-          'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
-
-      if test "$need_locks" = warn &&
-	 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
-	$ECHO "\
-*** ERROR, $lockfile contains:
-`cat $lockfile 2>/dev/null`
-
-but it should contain:
-$srcfile
-
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together.  If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
-	$opt_dry_run || $RM $removelist
-	exit $EXIT_FAILURE
-      fi
-
-      # Just move the object if needed, then go on to compile the next one
-      if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
-	func_show_eval '$MV "$output_obj" "$lobj"' \
-	  'error=$?; $opt_dry_run || $RM $removelist; exit $error'
-      fi
-
-      # Allow error messages only from the first compilation.
-      if test "$suppress_opt" = yes; then
-	suppress_output=' >/dev/null 2>&1'
-      fi
-    fi
-
-    # Only build a position-dependent object if we build old libraries.
-    if test "$build_old_libs" = yes; then
-      if test "$pic_mode" != yes; then
-	# Don't build PIC code
-	command="$base_compile $qsrcfile$pie_flag"
-      else
-	command="$base_compile $qsrcfile $pic_flag"
-      fi
-      if test "$compiler_c_o" = yes; then
-	func_append command " -o $obj"
-      fi
-
-      # Suppress compiler output if we already did a PIC compilation.
-      func_append command "$suppress_output"
-      func_show_eval_locale "$command" \
-        '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
-
-      if test "$need_locks" = warn &&
-	 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
-	$ECHO "\
-*** ERROR, $lockfile contains:
-`cat $lockfile 2>/dev/null`
-
-but it should contain:
-$srcfile
-
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together.  If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
-	$opt_dry_run || $RM $removelist
-	exit $EXIT_FAILURE
-      fi
-
-      # Just move the object if needed
-      if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
-	func_show_eval '$MV "$output_obj" "$obj"' \
-	  'error=$?; $opt_dry_run || $RM $removelist; exit $error'
-      fi
-    fi
-
-    $opt_dry_run || {
-      func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
-
-      # Unlock the critical section if it was locked
-      if test "$need_locks" != no; then
-	removelist=$lockfile
-        $RM "$lockfile"
-      fi
-    }
-
-    exit $EXIT_SUCCESS
-}
-
-$opt_help || {
-  test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
-}
-
-func_mode_help ()
-{
-    # We need to display help for each of the modes.
-    case $opt_mode in
-      "")
-        # Generic help is extracted from the usage comments
-        # at the start of this file.
-        func_help
-        ;;
-
-      clean)
-        $ECHO \
-"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
-
-Remove files from the build directory.
-
-RM is the name of the program to use to delete files associated with each FILE
-(typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
-to RM.
-
-If FILE is a libtool library, object or program, all the files associated
-with it are deleted. Otherwise, only FILE itself is deleted using RM."
-        ;;
-
-      compile)
-      $ECHO \
-"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
-
-Compile a source file into a libtool library object.
-
-This mode accepts the following additional options:
-
-  -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
-  -no-suppress      do not suppress compiler output for multiple passes
-  -prefer-pic       try to build PIC objects only
-  -prefer-non-pic   try to build non-PIC objects only
-  -shared           do not build a \`.o' file suitable for static linking
-  -static           only build a \`.o' file suitable for static linking
-  -Wc,FLAG          pass FLAG directly to the compiler
-
-COMPILE-COMMAND is a command to be used in creating a \`standard' object file
-from the given SOURCEFILE.
-
-The output file name is determined by removing the directory component from
-SOURCEFILE, then substituting the C source code suffix \`.c' with the
-library object suffix, \`.lo'."
-        ;;
-
-      execute)
-        $ECHO \
-"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
-
-Automatically set library path, then run a program.
-
-This mode accepts the following additional options:
-
-  -dlopen FILE      add the directory containing FILE to the library path
-
-This mode sets the library path environment variable according to \`-dlopen'
-flags.
-
-If any of the ARGS are libtool executable wrappers, then they are translated
-into their corresponding uninstalled binary, and any of their required library
-directories are added to the library path.
-
-Then, COMMAND is executed, with ARGS as arguments."
-        ;;
-
-      finish)
-        $ECHO \
-"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
-
-Complete the installation of libtool libraries.
-
-Each LIBDIR is a directory that contains libtool libraries.
-
-The commands that this mode executes may require superuser privileges.  Use
-the \`--dry-run' option if you just want to see what would be executed."
-        ;;
-
-      install)
-        $ECHO \
-"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
-
-Install executables or libraries.
-
-INSTALL-COMMAND is the installation command.  The first component should be
-either the \`install' or \`cp' program.
-
-The following components of INSTALL-COMMAND are treated specially:
-
-  -inst-prefix-dir PREFIX-DIR  Use PREFIX-DIR as a staging area for installation
-
-The rest of the components are interpreted as arguments to that command (only
-BSD-compatible install options are recognized)."
-        ;;
-
-      link)
-        $ECHO \
-"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
-
-Link object files or libraries together to form another library, or to
-create an executable program.
-
-LINK-COMMAND is a command using the C compiler that you would use to create
-a program from several object files.
-
-The following components of LINK-COMMAND are treated specially:
-
-  -all-static       do not do any dynamic linking at all
-  -avoid-version    do not add a version suffix if possible
-  -bindir BINDIR    specify path to binaries directory (for systems where
-                    libraries must be found in the PATH setting at runtime)
-  -dlopen FILE      \`-dlpreopen' FILE if it cannot be dlopened at runtime
-  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
-  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
-  -export-symbols SYMFILE
-                    try to export only the symbols listed in SYMFILE
-  -export-symbols-regex REGEX
-                    try to export only the symbols matching REGEX
-  -LLIBDIR          search LIBDIR for required installed libraries
-  -lNAME            OUTPUT-FILE requires the installed library libNAME
-  -module           build a library that can dlopened
-  -no-fast-install  disable the fast-install mode
-  -no-install       link a not-installable executable
-  -no-undefined     declare that a library does not refer to external symbols
-  -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
-  -objectlist FILE  Use a list of object files found in FILE to specify objects
-  -precious-files-regex REGEX
-                    don't remove output files matching REGEX
-  -release RELEASE  specify package release information
-  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
-  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
-  -shared           only do dynamic linking of libtool libraries
-  -shrext SUFFIX    override the standard shared library file extension
-  -static           do not do any dynamic linking of uninstalled libtool libraries
-  -static-libtool-libs
-                    do not do any dynamic linking of libtool libraries
-  -version-info CURRENT[:REVISION[:AGE]]
-                    specify library version info [each variable defaults to 0]
-  -weak LIBNAME     declare that the target provides the LIBNAME interface
-  -Wc,FLAG
-  -Xcompiler FLAG   pass linker-specific FLAG directly to the compiler
-  -Wl,FLAG
-  -Xlinker FLAG     pass linker-specific FLAG directly to the linker
-  -XCClinker FLAG   pass link-specific FLAG to the compiler driver (CC)
-
-All other options (arguments beginning with \`-') are ignored.
-
-Every other argument is treated as a filename.  Files ending in \`.la' are
-treated as uninstalled libtool libraries, other files are standard or library
-object files.
-
-If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
-only library objects (\`.lo' files) may be specified, and \`-rpath' is
-required, except when creating a convenience library.
-
-If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
-using \`ar' and \`ranlib', or on Windows using \`lib'.
-
-If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
-is created, otherwise an executable program is created."
-        ;;
-
-      uninstall)
-        $ECHO \
-"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
-
-Remove libraries from an installation directory.
-
-RM is the name of the program to use to delete files associated with each FILE
-(typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
-to RM.
-
-If FILE is a libtool library, all the files associated with it are deleted.
-Otherwise, only FILE itself is deleted using RM."
-        ;;
-
-      *)
-        func_fatal_help "invalid operation mode \`$opt_mode'"
-        ;;
-    esac
-
-    echo
-    $ECHO "Try \`$progname --help' for more information about other modes."
-}
-
-# Now that we've collected a possible --mode arg, show help if necessary
-if $opt_help; then
-  if test "$opt_help" = :; then
-    func_mode_help
-  else
-    {
-      func_help noexit
-      for opt_mode in compile link execute install finish uninstall clean; do
-	func_mode_help
-      done
-    } | sed -n '1p; 2,$s/^Usage:/  or: /p'
-    {
-      func_help noexit
-      for opt_mode in compile link execute install finish uninstall clean; do
-	echo
-	func_mode_help
-      done
-    } |
-    sed '1d
-      /^When reporting/,/^Report/{
-	H
-	d
-      }
-      $x
-      /information about other modes/d
-      /more detailed .*MODE/d
-      s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
-  fi
-  exit $?
-fi
-
-
-# func_mode_execute arg...
-func_mode_execute ()
-{
-    $opt_debug
-    # The first argument is the command name.
-    cmd="$nonopt"
-    test -z "$cmd" && \
-      func_fatal_help "you must specify a COMMAND"
-
-    # Handle -dlopen flags immediately.
-    for file in $opt_dlopen; do
-      test -f "$file" \
-	|| func_fatal_help "\`$file' is not a file"
-
-      dir=
-      case $file in
-      *.la)
-	func_resolve_sysroot "$file"
-	file=$func_resolve_sysroot_result
-
-	# Check to see that this really is a libtool archive.
-	func_lalib_unsafe_p "$file" \
-	  || func_fatal_help "\`$lib' is not a valid libtool archive"
-
-	# Read the libtool library.
-	dlname=
-	library_names=
-	func_source "$file"
-
-	# Skip this library if it cannot be dlopened.
-	if test -z "$dlname"; then
-	  # Warn if it was a shared library.
-	  test -n "$library_names" && \
-	    func_warning "\`$file' was not linked with \`-export-dynamic'"
-	  continue
-	fi
-
-	func_dirname "$file" "" "."
-	dir="$func_dirname_result"
-
-	if test -f "$dir/$objdir/$dlname"; then
-	  func_append dir "/$objdir"
-	else
-	  if test ! -f "$dir/$dlname"; then
-	    func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
-	  fi
-	fi
-	;;
-
-      *.lo)
-	# Just add the directory containing the .lo file.
-	func_dirname "$file" "" "."
-	dir="$func_dirname_result"
-	;;
-
-      *)
-	func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
-	continue
-	;;
-      esac
-
-      # Get the absolute pathname.
-      absdir=`cd "$dir" && pwd`
-      test -n "$absdir" && dir="$absdir"
-
-      # Now add the directory to shlibpath_var.
-      if eval "test -z \"\$$shlibpath_var\""; then
-	eval "$shlibpath_var=\"\$dir\""
-      else
-	eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
-      fi
-    done
-
-    # This variable tells wrapper scripts just to set shlibpath_var
-    # rather than running their programs.
-    libtool_execute_magic="$magic"
-
-    # Check if any of the arguments is a wrapper script.
-    args=
-    for file
-    do
-      case $file in
-      -* | *.la | *.lo ) ;;
-      *)
-	# Do a test to see if this is really a libtool program.
-	if func_ltwrapper_script_p "$file"; then
-	  func_source "$file"
-	  # Transform arg to wrapped name.
-	  file="$progdir/$program"
-	elif func_ltwrapper_executable_p "$file"; then
-	  func_ltwrapper_scriptname "$file"
-	  func_source "$func_ltwrapper_scriptname_result"
-	  # Transform arg to wrapped name.
-	  file="$progdir/$program"
-	fi
-	;;
-      esac
-      # Quote arguments (to preserve shell metacharacters).
-      func_append_quoted args "$file"
-    done
-
-    if test "X$opt_dry_run" = Xfalse; then
-      if test -n "$shlibpath_var"; then
-	# Export the shlibpath_var.
-	eval "export $shlibpath_var"
-      fi
-
-      # Restore saved environment variables
-      for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
-      do
-	eval "if test \"\${save_$lt_var+set}\" = set; then
-                $lt_var=\$save_$lt_var; export $lt_var
-	      else
-		$lt_unset $lt_var
-	      fi"
-      done
-
-      # Now prepare to actually exec the command.
-      exec_cmd="\$cmd$args"
-    else
-      # Display what would be done.
-      if test -n "$shlibpath_var"; then
-	eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
-	echo "export $shlibpath_var"
-      fi
-      $ECHO "$cmd$args"
-      exit $EXIT_SUCCESS
-    fi
-}
-
-test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
-
-
-# func_mode_finish arg...
-func_mode_finish ()
-{
-    $opt_debug
-    libs=
-    libdirs=
-    admincmds=
-
-    for opt in "$nonopt" ${1+"$@"}
-    do
-      if test -d "$opt"; then
-	func_append libdirs " $opt"
-
-      elif test -f "$opt"; then
-	if func_lalib_unsafe_p "$opt"; then
-	  func_append libs " $opt"
-	else
-	  func_warning "\`$opt' is not a valid libtool archive"
-	fi
-
-      else
-	func_fatal_error "invalid argument \`$opt'"
-      fi
-    done
-
-    if test -n "$libs"; then
-      if test -n "$lt_sysroot"; then
-        sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
-        sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
-      else
-        sysroot_cmd=
-      fi
-
-      # Remove sysroot references
-      if $opt_dry_run; then
-        for lib in $libs; do
-          echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
-        done
-      else
-        tmpdir=`func_mktempdir`
-        for lib in $libs; do
-	  sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
-	    > $tmpdir/tmp-la
-	  mv -f $tmpdir/tmp-la $lib
-	done
-        ${RM}r "$tmpdir"
-      fi
-    fi
-
-    if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
-      for libdir in $libdirs; do
-	if test -n "$finish_cmds"; then
-	  # Do each command in the finish commands.
-	  func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
-'"$cmd"'"'
-	fi
-	if test -n "$finish_eval"; then
-	  # Do the single finish_eval.
-	  eval cmds=\"$finish_eval\"
-	  $opt_dry_run || eval "$cmds" || func_append admincmds "
-       $cmds"
-	fi
-      done
-    fi
-
-    # Exit here if they wanted silent mode.
-    $opt_silent && exit $EXIT_SUCCESS
-
-    if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
-      echo "----------------------------------------------------------------------"
-      echo "Libraries have been installed in:"
-      for libdir in $libdirs; do
-	$ECHO "   $libdir"
-      done
-      echo
-      echo "If you ever happen to want to link against installed libraries"
-      echo "in a given directory, LIBDIR, you must either use libtool, and"
-      echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
-      echo "flag during linking and do at least one of the following:"
-      if test -n "$shlibpath_var"; then
-	echo "   - add LIBDIR to the \`$shlibpath_var' environment variable"
-	echo "     during execution"
-      fi
-      if test -n "$runpath_var"; then
-	echo "   - add LIBDIR to the \`$runpath_var' environment variable"
-	echo "     during linking"
-      fi
-      if test -n "$hardcode_libdir_flag_spec"; then
-	libdir=LIBDIR
-	eval flag=\"$hardcode_libdir_flag_spec\"
-
-	$ECHO "   - use the \`$flag' linker flag"
-      fi
-      if test -n "$admincmds"; then
-	$ECHO "   - have your system administrator run these commands:$admincmds"
-      fi
-      if test -f /etc/ld.so.conf; then
-	echo "   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
-      fi
-      echo
-
-      echo "See any operating system documentation about shared libraries for"
-      case $host in
-	solaris2.[6789]|solaris2.1[0-9])
-	  echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
-	  echo "pages."
-	  ;;
-	*)
-	  echo "more information, such as the ld(1) and ld.so(8) manual pages."
-	  ;;
-      esac
-      echo "----------------------------------------------------------------------"
-    fi
-    exit $EXIT_SUCCESS
-}
-
-test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
-
-
-# func_mode_install arg...
-func_mode_install ()
-{
-    $opt_debug
-    # There may be an optional sh(1) argument at the beginning of
-    # install_prog (especially on Windows NT).
-    if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
-       # Allow the use of GNU shtool's install command.
-       case $nonopt in *shtool*) :;; *) false;; esac; then
-      # Aesthetically quote it.
-      func_quote_for_eval "$nonopt"
-      install_prog="$func_quote_for_eval_result "
-      arg=$1
-      shift
-    else
-      install_prog=
-      arg=$nonopt
-    fi
-
-    # The real first argument should be the name of the installation program.
-    # Aesthetically quote it.
-    func_quote_for_eval "$arg"
-    func_append install_prog "$func_quote_for_eval_result"
-    install_shared_prog=$install_prog
-    case " $install_prog " in
-      *[\\\ /]cp\ *) install_cp=: ;;
-      *) install_cp=false ;;
-    esac
-
-    # We need to accept at least all the BSD install flags.
-    dest=
-    files=
-    opts=
-    prev=
-    install_type=
-    isdir=no
-    stripme=
-    no_mode=:
-    for arg
-    do
-      arg2=
-      if test -n "$dest"; then
-	func_append files " $dest"
-	dest=$arg
-	continue
-      fi
-
-      case $arg in
-      -d) isdir=yes ;;
-      -f)
-	if $install_cp; then :; else
-	  prev=$arg
-	fi
-	;;
-      -g | -m | -o)
-	prev=$arg
-	;;
-      -s)
-	stripme=" -s"
-	continue
-	;;
-      -*)
-	;;
-      *)
-	# If the previous option needed an argument, then skip it.
-	if test -n "$prev"; then
-	  if test "x$prev" = x-m && test -n "$install_override_mode"; then
-	    arg2=$install_override_mode
-	    no_mode=false
-	  fi
-	  prev=
-	else
-	  dest=$arg
-	  continue
-	fi
-	;;
-      esac
-
-      # Aesthetically quote the argument.
-      func_quote_for_eval "$arg"
-      func_append install_prog " $func_quote_for_eval_result"
-      if test -n "$arg2"; then
-	func_quote_for_eval "$arg2"
-      fi
-      func_append install_shared_prog " $func_quote_for_eval_result"
-    done
-
-    test -z "$install_prog" && \
-      func_fatal_help "you must specify an install program"
-
-    test -n "$prev" && \
-      func_fatal_help "the \`$prev' option requires an argument"
-
-    if test -n "$install_override_mode" && $no_mode; then
-      if $install_cp; then :; else
-	func_quote_for_eval "$install_override_mode"
-	func_append install_shared_prog " -m $func_quote_for_eval_result"
-      fi
-    fi
-
-    if test -z "$files"; then
-      if test -z "$dest"; then
-	func_fatal_help "no file or destination specified"
-      else
-	func_fatal_help "you must specify a destination"
-      fi
-    fi
-
-    # Strip any trailing slash from the destination.
-    func_stripname '' '/' "$dest"
-    dest=$func_stripname_result
-
-    # Check to see that the destination is a directory.
-    test -d "$dest" && isdir=yes
-    if test "$isdir" = yes; then
-      destdir="$dest"
-      destname=
-    else
-      func_dirname_and_basename "$dest" "" "."
-      destdir="$func_dirname_result"
-      destname="$func_basename_result"
-
-      # Not a directory, so check to see that there is only one file specified.
-      set dummy $files; shift
-      test "$#" -gt 1 && \
-	func_fatal_help "\`$dest' is not a directory"
-    fi
-    case $destdir in
-    [\\/]* | [A-Za-z]:[\\/]*) ;;
-    *)
-      for file in $files; do
-	case $file in
-	*.lo) ;;
-	*)
-	  func_fatal_help "\`$destdir' must be an absolute directory name"
-	  ;;
-	esac
-      done
-      ;;
-    esac
-
-    # This variable tells wrapper scripts just to set variables rather
-    # than running their programs.
-    libtool_install_magic="$magic"
-
-    staticlibs=
-    future_libdirs=
-    current_libdirs=
-    for file in $files; do
-
-      # Do each installation.
-      case $file in
-      *.$libext)
-	# Do the static libraries later.
-	func_append staticlibs " $file"
-	;;
-
-      *.la)
-	func_resolve_sysroot "$file"
-	file=$func_resolve_sysroot_result
-
-	# Check to see that this really is a libtool archive.
-	func_lalib_unsafe_p "$file" \
-	  || func_fatal_help "\`$file' is not a valid libtool archive"
-
-	library_names=
-	old_library=
-	relink_command=
-	func_source "$file"
-
-	# Add the libdir to current_libdirs if it is the destination.
-	if test "X$destdir" = "X$libdir"; then
-	  case "$current_libdirs " in
-	  *" $libdir "*) ;;
-	  *) func_append current_libdirs " $libdir" ;;
-	  esac
-	else
-	  # Note the libdir as a future libdir.
-	  case "$future_libdirs " in
-	  *" $libdir "*) ;;
-	  *) func_append future_libdirs " $libdir" ;;
-	  esac
-	fi
-
-	func_dirname "$file" "/" ""
-	dir="$func_dirname_result"
-	func_append dir "$objdir"
-
-	if test -n "$relink_command"; then
-	  # Determine the prefix the user has applied to our future dir.
-	  inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
-
-	  # Don't allow the user to place us outside of our expected
-	  # location b/c this prevents finding dependent libraries that
-	  # are installed to the same prefix.
-	  # At present, this check doesn't affect windows .dll's that
-	  # are installed into $libdir/../bin (currently, that works fine)
-	  # but it's something to keep an eye on.
-	  test "$inst_prefix_dir" = "$destdir" && \
-	    func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
-
-	  if test -n "$inst_prefix_dir"; then
-	    # Stick the inst_prefix_dir data into the link command.
-	    relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
-	  else
-	    relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
-	  fi
-
-	  func_warning "relinking \`$file'"
-	  func_show_eval "$relink_command" \
-	    'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
-	fi
-
-	# See the names of the shared library.
-	set dummy $library_names; shift
-	if test -n "$1"; then
-	  realname="$1"
-	  shift
-
-	  srcname="$realname"
-	  test -n "$relink_command" && srcname="$realname"T
-
-	  # Install the shared library and build the symlinks.
-	  func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
-	      'exit $?'
-	  tstripme="$stripme"
-	  case $host_os in
-	  cygwin* | mingw* | pw32* | cegcc*)
-	    case $realname in
-	    *.dll.a)
-	      tstripme=""
-	      ;;
-	    esac
-	    ;;
-	  esac
-	  if test -n "$tstripme" && test -n "$striplib"; then
-	    func_show_eval "$striplib $destdir/$realname" 'exit $?'
-	  fi
-
-	  if test "$#" -gt 0; then
-	    # Delete the old symlinks, and create new ones.
-	    # Try `ln -sf' first, because the `ln' binary might depend on
-	    # the symlink we replace!  Solaris /bin/ln does not understand -f,
-	    # so we also need to try rm && ln -s.
-	    for linkname
-	    do
-	      test "$linkname" != "$realname" \
-		&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
-	    done
-	  fi
-
-	  # Do each command in the postinstall commands.
-	  lib="$destdir/$realname"
-	  func_execute_cmds "$postinstall_cmds" 'exit $?'
-	fi
-
-	# Install the pseudo-library for information purposes.
-	func_basename "$file"
-	name="$func_basename_result"
-	instname="$dir/$name"i
-	func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
-
-	# Maybe install the static library, too.
-	test -n "$old_library" && func_append staticlibs " $dir/$old_library"
-	;;
-
-      *.lo)
-	# Install (i.e. copy) a libtool object.
-
-	# Figure out destination file name, if it wasn't already specified.
-	if test -n "$destname"; then
-	  destfile="$destdir/$destname"
-	else
-	  func_basename "$file"
-	  destfile="$func_basename_result"
-	  destfile="$destdir/$destfile"
-	fi
-
-	# Deduce the name of the destination old-style object file.
-	case $destfile in
-	*.lo)
-	  func_lo2o "$destfile"
-	  staticdest=$func_lo2o_result
-	  ;;
-	*.$objext)
-	  staticdest="$destfile"
-	  destfile=
-	  ;;
-	*)
-	  func_fatal_help "cannot copy a libtool object to \`$destfile'"
-	  ;;
-	esac
-
-	# Install the libtool object if requested.
-	test -n "$destfile" && \
-	  func_show_eval "$install_prog $file $destfile" 'exit $?'
-
-	# Install the old object if enabled.
-	if test "$build_old_libs" = yes; then
-	  # Deduce the name of the old-style object file.
-	  func_lo2o "$file"
-	  staticobj=$func_lo2o_result
-	  func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
-	fi
-	exit $EXIT_SUCCESS
-	;;
-
-      *)
-	# Figure out destination file name, if it wasn't already specified.
-	if test -n "$destname"; then
-	  destfile="$destdir/$destname"
-	else
-	  func_basename "$file"
-	  destfile="$func_basename_result"
-	  destfile="$destdir/$destfile"
-	fi
-
-	# If the file is missing, and there is a .exe on the end, strip it
-	# because it is most likely a libtool script we actually want to
-	# install
-	stripped_ext=""
-	case $file in
-	  *.exe)
-	    if test ! -f "$file"; then
-	      func_stripname '' '.exe' "$file"
-	      file=$func_stripname_result
-	      stripped_ext=".exe"
-	    fi
-	    ;;
-	esac
-
-	# Do a test to see if this is really a libtool program.
-	case $host in
-	*cygwin* | *mingw*)
-	    if func_ltwrapper_executable_p "$file"; then
-	      func_ltwrapper_scriptname "$file"
-	      wrapper=$func_ltwrapper_scriptname_result
-	    else
-	      func_stripname '' '.exe' "$file"
-	      wrapper=$func_stripname_result
-	    fi
-	    ;;
-	*)
-	    wrapper=$file
-	    ;;
-	esac
-	if func_ltwrapper_script_p "$wrapper"; then
-	  notinst_deplibs=
-	  relink_command=
-
-	  func_source "$wrapper"
-
-	  # Check the variables that should have been set.
-	  test -z "$generated_by_libtool_version" && \
-	    func_fatal_error "invalid libtool wrapper script \`$wrapper'"
-
-	  finalize=yes
-	  for lib in $notinst_deplibs; do
-	    # Check to see that each library is installed.
-	    libdir=
-	    if test -f "$lib"; then
-	      func_source "$lib"
-	    fi
-	    libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
-	    if test -n "$libdir" && test ! -f "$libfile"; then
-	      func_warning "\`$lib' has not been installed in \`$libdir'"
-	      finalize=no
-	    fi
-	  done
-
-	  relink_command=
-	  func_source "$wrapper"
-
-	  outputname=
-	  if test "$fast_install" = no && test -n "$relink_command"; then
-	    $opt_dry_run || {
-	      if test "$finalize" = yes; then
-	        tmpdir=`func_mktempdir`
-		func_basename "$file$stripped_ext"
-		file="$func_basename_result"
-	        outputname="$tmpdir/$file"
-	        # Replace the output file specification.
-	        relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
-
-	        $opt_silent || {
-	          func_quote_for_expand "$relink_command"
-		  eval "func_echo $func_quote_for_expand_result"
-	        }
-	        if eval "$relink_command"; then :
-	          else
-		  func_error "error: relink \`$file' with the above command before installing it"
-		  $opt_dry_run || ${RM}r "$tmpdir"
-		  continue
-	        fi
-	        file="$outputname"
-	      else
-	        func_warning "cannot relink \`$file'"
-	      fi
-	    }
-	  else
-	    # Install the binary that we compiled earlier.
-	    file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
-	  fi
-	fi
-
-	# remove .exe since cygwin /usr/bin/install will append another
-	# one anyway
-	case $install_prog,$host in
-	*/usr/bin/install*,*cygwin*)
-	  case $file:$destfile in
-	  *.exe:*.exe)
-	    # this is ok
-	    ;;
-	  *.exe:*)
-	    destfile=$destfile.exe
-	    ;;
-	  *:*.exe)
-	    func_stripname '' '.exe' "$destfile"
-	    destfile=$func_stripname_result
-	    ;;
-	  esac
-	  ;;
-	esac
-	func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
-	$opt_dry_run || if test -n "$outputname"; then
-	  ${RM}r "$tmpdir"
-	fi
-	;;
-      esac
-    done
-
-    for file in $staticlibs; do
-      func_basename "$file"
-      name="$func_basename_result"
-
-      # Set up the ranlib parameters.
-      oldlib="$destdir/$name"
-      func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
-      tool_oldlib=$func_to_tool_file_result
-
-      func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
-
-      if test -n "$stripme" && test -n "$old_striplib"; then
-	func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
-      fi
-
-      # Do each command in the postinstall commands.
-      func_execute_cmds "$old_postinstall_cmds" 'exit $?'
-    done
-
-    test -n "$future_libdirs" && \
-      func_warning "remember to run \`$progname --finish$future_libdirs'"
-
-    if test -n "$current_libdirs"; then
-      # Maybe just do a dry run.
-      $opt_dry_run && current_libdirs=" -n$current_libdirs"
-      exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
-    else
-      exit $EXIT_SUCCESS
-    fi
-}
-
-test "$opt_mode" = install && func_mode_install ${1+"$@"}
-
-
-# func_generate_dlsyms outputname originator pic_p
-# Extract symbols from dlprefiles and create ${outputname}S.o with
-# a dlpreopen symbol table.
-func_generate_dlsyms ()
-{
-    $opt_debug
-    my_outputname="$1"
-    my_originator="$2"
-    my_pic_p="${3-no}"
-    my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
-    my_dlsyms=
-
-    if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
-      if test -n "$NM" && test -n "$global_symbol_pipe"; then
-	my_dlsyms="${my_outputname}S.c"
-      else
-	func_error "not configured to extract global symbols from dlpreopened files"
-      fi
-    fi
-
-    if test -n "$my_dlsyms"; then
-      case $my_dlsyms in
-      "") ;;
-      *.c)
-	# Discover the nlist of each of the dlfiles.
-	nlist="$output_objdir/${my_outputname}.nm"
-
-	func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
-
-	# Parse the name list into a source file.
-	func_verbose "creating $output_objdir/$my_dlsyms"
-
-	$opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
-/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
-/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
-
-#ifdef __cplusplus
-extern \"C\" {
-#endif
-
-#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
-#pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
-#endif
-
-/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
-#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
-/* DATA imports from DLLs on WIN32 con't be const, because runtime
-   relocations are performed -- see ld's documentation on pseudo-relocs.  */
-# define LT_DLSYM_CONST
-#elif defined(__osf__)
-/* This system does not cope well with relocations in const data.  */
-# define LT_DLSYM_CONST
-#else
-# define LT_DLSYM_CONST const
-#endif
-
-/* External symbol declarations for the compiler. */\
-"
-
-	if test "$dlself" = yes; then
-	  func_verbose "generating symbol list for \`$output'"
-
-	  $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
-
-	  # Add our own program objects to the symbol list.
-	  progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
-	  for progfile in $progfiles; do
-	    func_to_tool_file "$progfile" func_convert_file_msys_to_w32
-	    func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
-	    $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
-	  done
-
-	  if test -n "$exclude_expsyms"; then
-	    $opt_dry_run || {
-	      eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
-	      eval '$MV "$nlist"T "$nlist"'
-	    }
-	  fi
-
-	  if test -n "$export_symbols_regex"; then
-	    $opt_dry_run || {
-	      eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
-	      eval '$MV "$nlist"T "$nlist"'
-	    }
-	  fi
-
-	  # Prepare the list of exported symbols
-	  if test -z "$export_symbols"; then
-	    export_symbols="$output_objdir/$outputname.exp"
-	    $opt_dry_run || {
-	      $RM $export_symbols
-	      eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
-	      case $host in
-	      *cygwin* | *mingw* | *cegcc* )
-                eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
-                eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
-	        ;;
-	      esac
-	    }
-	  else
-	    $opt_dry_run || {
-	      eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
-	      eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
-	      eval '$MV "$nlist"T "$nlist"'
-	      case $host in
-	        *cygwin* | *mingw* | *cegcc* )
-	          eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
-	          eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
-	          ;;
-	      esac
-	    }
-	  fi
-	fi
-
-	for dlprefile in $dlprefiles; do
-	  func_verbose "extracting global C symbols from \`$dlprefile'"
-	  func_basename "$dlprefile"
-	  name="$func_basename_result"
-          case $host in
-	    *cygwin* | *mingw* | *cegcc* )
-	      # if an import library, we need to obtain dlname
-	      if func_win32_import_lib_p "$dlprefile"; then
-	        func_tr_sh "$dlprefile"
-	        eval "curr_lafile=\$libfile_$func_tr_sh_result"
-	        dlprefile_dlbasename=""
-	        if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
-	          # Use subshell, to avoid clobbering current variable values
-	          dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
-	          if test -n "$dlprefile_dlname" ; then
-	            func_basename "$dlprefile_dlname"
-	            dlprefile_dlbasename="$func_basename_result"
-	          else
-	            # no lafile. user explicitly requested -dlpreopen <import library>.
-	            $sharedlib_from_linklib_cmd "$dlprefile"
-	            dlprefile_dlbasename=$sharedlib_from_linklib_result
-	          fi
-	        fi
-	        $opt_dry_run || {
-	          if test -n "$dlprefile_dlbasename" ; then
-	            eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
-	          else
-	            func_warning "Could not compute DLL name from $name"
-	            eval '$ECHO ": $name " >> "$nlist"'
-	          fi
-	          func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
-	          eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
-	            $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
-	        }
-	      else # not an import lib
-	        $opt_dry_run || {
-	          eval '$ECHO ": $name " >> "$nlist"'
-	          func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
-	          eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
-	        }
-	      fi
-	    ;;
-	    *)
-	      $opt_dry_run || {
-	        eval '$ECHO ": $name " >> "$nlist"'
-	        func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
-	        eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
-	      }
-	    ;;
-          esac
-	done
-
-	$opt_dry_run || {
-	  # Make sure we have at least an empty file.
-	  test -f "$nlist" || : > "$nlist"
-
-	  if test -n "$exclude_expsyms"; then
-	    $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
-	    $MV "$nlist"T "$nlist"
-	  fi
-
-	  # Try sorting and uniquifying the output.
-	  if $GREP -v "^: " < "$nlist" |
-	      if sort -k 3 </dev/null >/dev/null 2>&1; then
-		sort -k 3
-	      else
-		sort +2
-	      fi |
-	      uniq > "$nlist"S; then
-	    :
-	  else
-	    $GREP -v "^: " < "$nlist" > "$nlist"S
-	  fi
-
-	  if test -f "$nlist"S; then
-	    eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
-	  else
-	    echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
-	  fi
-
-	  echo >> "$output_objdir/$my_dlsyms" "\
-
-/* The mapping between symbol names and symbols.  */
-typedef struct {
-  const char *name;
-  void *address;
-} lt_dlsymlist;
-extern LT_DLSYM_CONST lt_dlsymlist
-lt_${my_prefix}_LTX_preloaded_symbols[];
-LT_DLSYM_CONST lt_dlsymlist
-lt_${my_prefix}_LTX_preloaded_symbols[] =
-{\
-  { \"$my_originator\", (void *) 0 },"
-
-	  case $need_lib_prefix in
-	  no)
-	    eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
-	    ;;
-	  *)
-	    eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
-	    ;;
-	  esac
-	  echo >> "$output_objdir/$my_dlsyms" "\
-  {0, (void *) 0}
-};
-
-/* This works around a problem in FreeBSD linker */
-#ifdef FREEBSD_WORKAROUND
-static const void *lt_preloaded_setup() {
-  return lt_${my_prefix}_LTX_preloaded_symbols;
-}
-#endif
-
-#ifdef __cplusplus
-}
-#endif\
-"
-	} # !$opt_dry_run
-
-	pic_flag_for_symtable=
-	case "$compile_command " in
-	*" -static "*) ;;
-	*)
-	  case $host in
-	  # compiling the symbol table file with pic_flag works around
-	  # a FreeBSD bug that causes programs to crash when -lm is
-	  # linked before any other PIC object.  But we must not use
-	  # pic_flag when linking with -static.  The problem exists in
-	  # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
-	  *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
-	    pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
-	  *-*-hpux*)
-	    pic_flag_for_symtable=" $pic_flag"  ;;
-	  *)
-	    if test "X$my_pic_p" != Xno; then
-	      pic_flag_for_symtable=" $pic_flag"
-	    fi
-	    ;;
-	  esac
-	  ;;
-	esac
-	symtab_cflags=
-	for arg in $LTCFLAGS; do
-	  case $arg in
-	  -pie | -fpie | -fPIE) ;;
-	  *) func_append symtab_cflags " $arg" ;;
-	  esac
-	done
-
-	# Now compile the dynamic symbol file.
-	func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
-
-	# Clean up the generated files.
-	func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
-
-	# Transform the symbol file into the correct name.
-	symfileobj="$output_objdir/${my_outputname}S.$objext"
-	case $host in
-	*cygwin* | *mingw* | *cegcc* )
-	  if test -f "$output_objdir/$my_outputname.def"; then
-	    compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
-	    finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
-	  else
-	    compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
-	    finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
-	  fi
-	  ;;
-	*)
-	  compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
-	  finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
-	  ;;
-	esac
-	;;
-      *)
-	func_fatal_error "unknown suffix for \`$my_dlsyms'"
-	;;
-      esac
-    else
-      # We keep going just in case the user didn't refer to
-      # lt_preloaded_symbols.  The linker will fail if global_symbol_pipe
-      # really was required.
-
-      # Nullify the symbol file.
-      compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
-      finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
-    fi
-}
-
-# func_win32_libid arg
-# return the library type of file 'arg'
-#
-# Need a lot of goo to handle *both* DLLs and import libs
-# Has to be a shell function in order to 'eat' the argument
-# that is supplied when $file_magic_command is called.
-# Despite the name, also deal with 64 bit binaries.
-func_win32_libid ()
-{
-  $opt_debug
-  win32_libid_type="unknown"
-  win32_fileres=`file -L $1 2>/dev/null`
-  case $win32_fileres in
-  *ar\ archive\ import\ library*) # definitely import
-    win32_libid_type="x86 archive import"
-    ;;
-  *ar\ archive*) # could be an import, or static
-    # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
-    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
-       $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
-      func_to_tool_file "$1" func_convert_file_msys_to_w32
-      win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
-	$SED -n -e '
-	    1,100{
-		/ I /{
-		    s,.*,import,
-		    p
-		    q
-		}
-	    }'`
-      case $win32_nmres in
-      import*)  win32_libid_type="x86 archive import";;
-      *)        win32_libid_type="x86 archive static";;
-      esac
-    fi
-    ;;
-  *DLL*)
-    win32_libid_type="x86 DLL"
-    ;;
-  *executable*) # but shell scripts are "executable" too...
-    case $win32_fileres in
-    *MS\ Windows\ PE\ Intel*)
-      win32_libid_type="x86 DLL"
-      ;;
-    esac
-    ;;
-  esac
-  $ECHO "$win32_libid_type"
-}
-
-# func_cygming_dll_for_implib ARG
-#
-# Platform-specific function to extract the
-# name of the DLL associated with the specified
-# import library ARG.
-# Invoked by eval'ing the libtool variable
-#    $sharedlib_from_linklib_cmd
-# Result is available in the variable
-#    $sharedlib_from_linklib_result
-func_cygming_dll_for_implib ()
-{
-  $opt_debug
-  sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
-}
-
-# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
-#
-# The is the core of a fallback implementation of a
-# platform-specific function to extract the name of the
-# DLL associated with the specified import library LIBNAME.
-#
-# SECTION_NAME is either .idata$6 or .idata$7, depending
-# on the platform and compiler that created the implib.
-#
-# Echos the name of the DLL associated with the
-# specified import library.
-func_cygming_dll_for_implib_fallback_core ()
-{
-  $opt_debug
-  match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
-  $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
-    $SED '/^Contents of section '"$match_literal"':/{
-      # Place marker at beginning of archive member dllname section
-      s/.*/====MARK====/
-      p
-      d
-    }
-    # These lines can sometimes be longer than 43 characters, but
-    # are always uninteresting
-    /:[	 ]*file format pe[i]\{,1\}-/d
-    /^In archive [^:]*:/d
-    # Ensure marker is printed
-    /^====MARK====/p
-    # Remove all lines with less than 43 characters
-    /^.\{43\}/!d
-    # From remaining lines, remove first 43 characters
-    s/^.\{43\}//' |
-    $SED -n '
-      # Join marker and all lines until next marker into a single line
-      /^====MARK====/ b para
-      H
-      $ b para
-      b
-      :para
-      x
-      s/\n//g
-      # Remove the marker
-      s/^====MARK====//
-      # Remove trailing dots and whitespace
-      s/[\. \t]*$//
-      # Print
-      /./p' |
-    # we now have a list, one entry per line, of the stringified
-    # contents of the appropriate section of all members of the
-    # archive which possess that section. Heuristic: eliminate
-    # all those which have a first or second character that is
-    # a '.' (that is, objdump's representation of an unprintable
-    # character.) This should work for all archives with less than
-    # 0x302f exports -- but will fail for DLLs whose name actually
-    # begins with a literal '.' or a single character followed by
-    # a '.'.
-    #
-    # Of those that remain, print the first one.
-    $SED -e '/^\./d;/^.\./d;q'
-}
-
-# func_cygming_gnu_implib_p ARG
-# This predicate returns with zero status (TRUE) if
-# ARG is a GNU/binutils-style import library. Returns
-# with nonzero status (FALSE) otherwise.
-func_cygming_gnu_implib_p ()
-{
-  $opt_debug
-  func_to_tool_file "$1" func_convert_file_msys_to_w32
-  func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
-  test -n "$func_cygming_gnu_implib_tmp"
-}
-
-# func_cygming_ms_implib_p ARG
-# This predicate returns with zero status (TRUE) if
-# ARG is an MS-style import library. Returns
-# with nonzero status (FALSE) otherwise.
-func_cygming_ms_implib_p ()
-{
-  $opt_debug
-  func_to_tool_file "$1" func_convert_file_msys_to_w32
-  func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
-  test -n "$func_cygming_ms_implib_tmp"
-}
-
-# func_cygming_dll_for_implib_fallback ARG
-# Platform-specific function to extract the
-# name of the DLL associated with the specified
-# import library ARG.
-#
-# This fallback implementation is for use when $DLLTOOL
-# does not support the --identify-strict option.
-# Invoked by eval'ing the libtool variable
-#    $sharedlib_from_linklib_cmd
-# Result is available in the variable
-#    $sharedlib_from_linklib_result
-func_cygming_dll_for_implib_fallback ()
-{
-  $opt_debug
-  if func_cygming_gnu_implib_p "$1" ; then
-    # binutils import library
-    sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
-  elif func_cygming_ms_implib_p "$1" ; then
-    # ms-generated import library
-    sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
-  else
-    # unknown
-    sharedlib_from_linklib_result=""
-  fi
-}
-
-
-# func_extract_an_archive dir oldlib
-func_extract_an_archive ()
-{
-    $opt_debug
-    f_ex_an_ar_dir="$1"; shift
-    f_ex_an_ar_oldlib="$1"
-    if test "$lock_old_archive_extraction" = yes; then
-      lockfile=$f_ex_an_ar_oldlib.lock
-      until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
-	func_echo "Waiting for $lockfile to be removed"
-	sleep 2
-      done
-    fi
-    func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
-		   'stat=$?; rm -f "$lockfile"; exit $stat'
-    if test "$lock_old_archive_extraction" = yes; then
-      $opt_dry_run || rm -f "$lockfile"
-    fi
-    if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
-     :
-    else
-      func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
-    fi
-}
-
-
-# func_extract_archives gentop oldlib ...
-func_extract_archives ()
-{
-    $opt_debug
-    my_gentop="$1"; shift
-    my_oldlibs=${1+"$@"}
-    my_oldobjs=""
-    my_xlib=""
-    my_xabs=""
-    my_xdir=""
-
-    for my_xlib in $my_oldlibs; do
-      # Extract the objects.
-      case $my_xlib in
-	[\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
-	*) my_xabs=`pwd`"/$my_xlib" ;;
-      esac
-      func_basename "$my_xlib"
-      my_xlib="$func_basename_result"
-      my_xlib_u=$my_xlib
-      while :; do
-        case " $extracted_archives " in
-	*" $my_xlib_u "*)
-	  func_arith $extracted_serial + 1
-	  extracted_serial=$func_arith_result
-	  my_xlib_u=lt$extracted_serial-$my_xlib ;;
-	*) break ;;
-	esac
-      done
-      extracted_archives="$extracted_archives $my_xlib_u"
-      my_xdir="$my_gentop/$my_xlib_u"
-
-      func_mkdir_p "$my_xdir"
-
-      case $host in
-      *-darwin*)
-	func_verbose "Extracting $my_xabs"
-	# Do not bother doing anything if just a dry run
-	$opt_dry_run || {
-	  darwin_orig_dir=`pwd`
-	  cd $my_xdir || exit $?
-	  darwin_archive=$my_xabs
-	  darwin_curdir=`pwd`
-	  darwin_base_archive=`basename "$darwin_archive"`
-	  darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
-	  if test -n "$darwin_arches"; then
-	    darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
-	    darwin_arch=
-	    func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
-	    for darwin_arch in  $darwin_arches ; do
-	      func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
-	      $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
-	      cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
-	      func_extract_an_archive "`pwd`" "${darwin_base_archive}"
-	      cd "$darwin_curdir"
-	      $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
-	    done # $darwin_arches
-            ## Okay now we've a bunch of thin objects, gotta fatten them up :)
-	    darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
-	    darwin_file=
-	    darwin_files=
-	    for darwin_file in $darwin_filelist; do
-	      darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
-	      $LIPO -create -output "$darwin_file" $darwin_files
-	    done # $darwin_filelist
-	    $RM -rf unfat-$$
-	    cd "$darwin_orig_dir"
-	  else
-	    cd $darwin_orig_dir
-	    func_extract_an_archive "$my_xdir" "$my_xabs"
-	  fi # $darwin_arches
-	} # !$opt_dry_run
-	;;
-      *)
-        func_extract_an_archive "$my_xdir" "$my_xabs"
-	;;
-      esac
-      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
-    done
-
-    func_extract_archives_result="$my_oldobjs"
-}
-
-
-# func_emit_wrapper [arg=no]
-#
-# Emit a libtool wrapper script on stdout.
-# Don't directly open a file because we may want to
-# incorporate the script contents within a cygwin/mingw
-# wrapper executable.  Must ONLY be called from within
-# func_mode_link because it depends on a number of variables
-# set therein.
-#
-# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
-# variable will take.  If 'yes', then the emitted script
-# will assume that the directory in which it is stored is
-# the $objdir directory.  This is a cygwin/mingw-specific
-# behavior.
-func_emit_wrapper ()
-{
-	func_emit_wrapper_arg1=${1-no}
-
-	$ECHO "\
-#! $SHELL
-
-# $output - temporary wrapper script for $objdir/$outputname
-# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
-#
-# The $output program cannot be directly executed until all the libtool
-# libraries that it depends on are installed.
-#
-# This wrapper script should never be moved out of the build directory.
-# If it is, it will not operate correctly.
-
-# Sed substitution that helps us do robust quoting.  It backslashifies
-# metacharacters that are still active within double-quoted strings.
-sed_quote_subst='$sed_quote_subst'
-
-# Be Bourne compatible
-if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
-  emulate sh
-  NULLCMD=:
-  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '\${1+\"\$@\"}'='\"\$@\"'
-  setopt NO_GLOB_SUBST
-else
-  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
-fi
-BIN_SH=xpg4; export BIN_SH # for Tru64
-DUALCASE=1; export DUALCASE # for MKS sh
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-relink_command=\"$relink_command\"
-
-# This environment variable determines our operation mode.
-if test \"\$libtool_install_magic\" = \"$magic\"; then
-  # install mode needs the following variables:
-  generated_by_libtool_version='$macro_version'
-  notinst_deplibs='$notinst_deplibs'
-else
-  # When we are sourced in execute mode, \$file and \$ECHO are already set.
-  if test \"\$libtool_execute_magic\" != \"$magic\"; then
-    file=\"\$0\""
-
-    qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
-    $ECHO "\
-
-# A function that is used when there is no print builtin or printf.
-func_fallback_echo ()
-{
-  eval 'cat <<_LTECHO_EOF
-\$1
-_LTECHO_EOF'
-}
-    ECHO=\"$qECHO\"
-  fi
-
-# Very basic option parsing. These options are (a) specific to
-# the libtool wrapper, (b) are identical between the wrapper
-# /script/ and the wrapper /executable/ which is used only on
-# windows platforms, and (c) all begin with the string "--lt-"
-# (application programs are unlikely to have options which match
-# this pattern).
-#
-# There are only two supported options: --lt-debug and
-# --lt-dump-script. There is, deliberately, no --lt-help.
-#
-# The first argument to this parsing function should be the
-# script's $0 value, followed by "$@".
-lt_option_debug=
-func_parse_lt_options ()
-{
-  lt_script_arg0=\$0
-  shift
-  for lt_opt
-  do
-    case \"\$lt_opt\" in
-    --lt-debug) lt_option_debug=1 ;;
-    --lt-dump-script)
-        lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
-        test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
-        lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
-        cat \"\$lt_dump_D/\$lt_dump_F\"
-        exit 0
-      ;;
-    --lt-*)
-        \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
-        exit 1
-      ;;
-    esac
-  done
-
-  # Print the debug banner immediately:
-  if test -n \"\$lt_option_debug\"; then
-    echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
-  fi
-}
-
-# Used when --lt-debug. Prints its arguments to stdout
-# (redirection is the responsibility of the caller)
-func_lt_dump_args ()
-{
-  lt_dump_args_N=1;
-  for lt_arg
-  do
-    \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
-    lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
-  done
-}
-
-# Core function for launching the target application
-func_exec_program_core ()
-{
-"
-  case $host in
-  # Backslashes separate directories on plain windows
-  *-*-mingw | *-*-os2* | *-cegcc*)
-    $ECHO "\
-      if test -n \"\$lt_option_debug\"; then
-        \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
-        func_lt_dump_args \${1+\"\$@\"} 1>&2
-      fi
-      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
-"
-    ;;
-
-  *)
-    $ECHO "\
-      if test -n \"\$lt_option_debug\"; then
-        \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
-        func_lt_dump_args \${1+\"\$@\"} 1>&2
-      fi
-      exec \"\$progdir/\$program\" \${1+\"\$@\"}
-"
-    ;;
-  esac
-  $ECHO "\
-      \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
-      exit 1
-}
-
-# A function to encapsulate launching the target application
-# Strips options in the --lt-* namespace from \$@ and
-# launches target application with the remaining arguments.
-func_exec_program ()
-{
-  case \" \$* \" in
-  *\\ --lt-*)
-    for lt_wr_arg
-    do
-      case \$lt_wr_arg in
-      --lt-*) ;;
-      *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
-      esac
-      shift
-    done ;;
-  esac
-  func_exec_program_core \${1+\"\$@\"}
-}
-
-  # Parse options
-  func_parse_lt_options \"\$0\" \${1+\"\$@\"}
-
-  # Find the directory that this script lives in.
-  thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
-  test \"x\$thisdir\" = \"x\$file\" && thisdir=.
-
-  # Follow symbolic links until we get to the real thisdir.
-  file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
-  while test -n \"\$file\"; do
-    destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
-
-    # If there was a directory component, then change thisdir.
-    if test \"x\$destdir\" != \"x\$file\"; then
-      case \"\$destdir\" in
-      [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
-      *) thisdir=\"\$thisdir/\$destdir\" ;;
-      esac
-    fi
-
-    file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
-    file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
-  done
-
-  # Usually 'no', except on cygwin/mingw when embedded into
-  # the cwrapper.
-  WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
-  if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
-    # special case for '.'
-    if test \"\$thisdir\" = \".\"; then
-      thisdir=\`pwd\`
-    fi
-    # remove .libs from thisdir
-    case \"\$thisdir\" in
-    *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
-    $objdir )   thisdir=. ;;
-    esac
-  fi
-
-  # Try to get the absolute directory name.
-  absdir=\`cd \"\$thisdir\" && pwd\`
-  test -n \"\$absdir\" && thisdir=\"\$absdir\"
-"
-
-	if test "$fast_install" = yes; then
-	  $ECHO "\
-  program=lt-'$outputname'$exeext
-  progdir=\"\$thisdir/$objdir\"
-
-  if test ! -f \"\$progdir/\$program\" ||
-     { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
-       test \"X\$file\" != \"X\$progdir/\$program\"; }; then
-
-    file=\"\$\$-\$program\"
-
-    if test ! -d \"\$progdir\"; then
-      $MKDIR \"\$progdir\"
-    else
-      $RM \"\$progdir/\$file\"
-    fi"
-
-	  $ECHO "\
-
-    # relink executable if necessary
-    if test -n \"\$relink_command\"; then
-      if relink_command_output=\`eval \$relink_command 2>&1\`; then :
-      else
-	$ECHO \"\$relink_command_output\" >&2
-	$RM \"\$progdir/\$file\"
-	exit 1
-      fi
-    fi
-
-    $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
-    { $RM \"\$progdir/\$program\";
-      $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
-    $RM \"\$progdir/\$file\"
-  fi"
-	else
-	  $ECHO "\
-  program='$outputname'
-  progdir=\"\$thisdir/$objdir\"
-"
-	fi
-
-	$ECHO "\
-
-  if test -f \"\$progdir/\$program\"; then"
-
-	# fixup the dll searchpath if we need to.
-	#
-	# Fix the DLL searchpath if we need to.  Do this before prepending
-	# to shlibpath, because on Windows, both are PATH and uninstalled
-	# libraries must come first.
-	if test -n "$dllsearchpath"; then
-	  $ECHO "\
-    # Add the dll search path components to the executable PATH
-    PATH=$dllsearchpath:\$PATH
-"
-	fi
-
-	# Export our shlibpath_var if we have one.
-	if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
-	  $ECHO "\
-    # Add our own library path to $shlibpath_var
-    $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
-
-    # Some systems cannot cope with colon-terminated $shlibpath_var
-    # The second colon is a workaround for a bug in BeOS R4 sed
-    $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
-
-    export $shlibpath_var
-"
-	fi
-
-	$ECHO "\
-    if test \"\$libtool_execute_magic\" != \"$magic\"; then
-      # Run the actual program with our arguments.
-      func_exec_program \${1+\"\$@\"}
-    fi
-  else
-    # The program doesn't exist.
-    \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
-    \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
-    \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
-    exit 1
-  fi
-fi\
-"
-}
-
-
-# func_emit_cwrapperexe_src
-# emit the source code for a wrapper executable on stdout
-# Must ONLY be called from within func_mode_link because
-# it depends on a number of variable set therein.
-func_emit_cwrapperexe_src ()
-{
-	cat <<EOF
-
-/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
-   Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
-
-   The $output program cannot be directly executed until all the libtool
-   libraries that it depends on are installed.
-
-   This wrapper executable should never be moved out of the build directory.
-   If it is, it will not operate correctly.
-*/
-EOF
-	    cat <<"EOF"
-#ifdef _MSC_VER
-# define _CRT_SECURE_NO_DEPRECATE 1
-#endif
-#include <stdio.h>
-#include <stdlib.h>
-#ifdef _MSC_VER
-# include <direct.h>
-# include <process.h>
-# include <io.h>
-#else
-# include <unistd.h>
-# include <stdint.h>
-# ifdef __CYGWIN__
-#  include <io.h>
-# endif
-#endif
-#include <malloc.h>
-#include <stdarg.h>
-#include <assert.h>
-#include <string.h>
-#include <ctype.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <sys/stat.h>
-
-/* declarations of non-ANSI functions */
-#if defined(__MINGW32__)
-# ifdef __STRICT_ANSI__
-int _putenv (const char *);
-# endif
-#elif defined(__CYGWIN__)
-# ifdef __STRICT_ANSI__
-char *realpath (const char *, char *);
-int putenv (char *);
-int setenv (const char *, const char *, int);
-# endif
-/* #elif defined (other platforms) ... */
-#endif
-
-/* portability defines, excluding path handling macros */
-#if defined(_MSC_VER)
-# define setmode _setmode
-# define stat    _stat
-# define chmod   _chmod
-# define getcwd  _getcwd
-# define putenv  _putenv
-# define S_IXUSR _S_IEXEC
-# ifndef _INTPTR_T_DEFINED
-#  define _INTPTR_T_DEFINED
-#  define intptr_t int
-# endif
-#elif defined(__MINGW32__)
-# define setmode _setmode
-# define stat    _stat
-# define chmod   _chmod
-# define getcwd  _getcwd
-# define putenv  _putenv
-#elif defined(__CYGWIN__)
-# define HAVE_SETENV
-# define FOPEN_WB "wb"
-/* #elif defined (other platforms) ... */
-#endif
-
-#if defined(PATH_MAX)
-# define LT_PATHMAX PATH_MAX
-#elif defined(MAXPATHLEN)
-# define LT_PATHMAX MAXPATHLEN
-#else
-# define LT_PATHMAX 1024
-#endif
-
-#ifndef S_IXOTH
-# define S_IXOTH 0
-#endif
-#ifndef S_IXGRP
-# define S_IXGRP 0
-#endif
-
-/* path handling portability macros */
-#ifndef DIR_SEPARATOR
-# define DIR_SEPARATOR '/'
-# define PATH_SEPARATOR ':'
-#endif
-
-#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
-  defined (__OS2__)
-# define HAVE_DOS_BASED_FILE_SYSTEM
-# define FOPEN_WB "wb"
-# ifndef DIR_SEPARATOR_2
-#  define DIR_SEPARATOR_2 '\\'
-# endif
-# ifndef PATH_SEPARATOR_2
-#  define PATH_SEPARATOR_2 ';'
-# endif
-#endif
-
-#ifndef DIR_SEPARATOR_2
-# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
-#else /* DIR_SEPARATOR_2 */
-# define IS_DIR_SEPARATOR(ch) \
-	(((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
-#endif /* DIR_SEPARATOR_2 */
-
-#ifndef PATH_SEPARATOR_2
-# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
-#else /* PATH_SEPARATOR_2 */
-# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
-#endif /* PATH_SEPARATOR_2 */
-
-#ifndef FOPEN_WB
-# define FOPEN_WB "w"
-#endif
-#ifndef _O_BINARY
-# define _O_BINARY 0
-#endif
-
-#define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
-#define XFREE(stale) do { \
-  if (stale) { free ((void *) stale); stale = 0; } \
-} while (0)
-
-#if defined(LT_DEBUGWRAPPER)
-static int lt_debug = 1;
-#else
-static int lt_debug = 0;
-#endif
-
-const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
-
-void *xmalloc (size_t num);
-char *xstrdup (const char *string);
-const char *base_name (const char *name);
-char *find_executable (const char *wrapper);
-char *chase_symlinks (const char *pathspec);
-int make_executable (const char *path);
-int check_executable (const char *path);
-char *strendzap (char *str, const char *pat);
-void lt_debugprintf (const char *file, int line, const char *fmt, ...);
-void lt_fatal (const char *file, int line, const char *message, ...);
-static const char *nonnull (const char *s);
-static const char *nonempty (const char *s);
-void lt_setenv (const char *name, const char *value);
-char *lt_extend_str (const char *orig_value, const char *add, int to_end);
-void lt_update_exe_path (const char *name, const char *value);
-void lt_update_lib_path (const char *name, const char *value);
-char **prepare_spawn (char **argv);
-void lt_dump_script (FILE *f);
-EOF
-
-	    cat <<EOF
-volatile const char * MAGIC_EXE = "$magic_exe";
-const char * LIB_PATH_VARNAME = "$shlibpath_var";
-EOF
-
-	    if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
-              func_to_host_path "$temp_rpath"
-	      cat <<EOF
-const char * LIB_PATH_VALUE   = "$func_to_host_path_result";
-EOF
-	    else
-	      cat <<"EOF"
-const char * LIB_PATH_VALUE   = "";
-EOF
-	    fi
-
-	    if test -n "$dllsearchpath"; then
-              func_to_host_path "$dllsearchpath:"
-	      cat <<EOF
-const char * EXE_PATH_VARNAME = "PATH";
-const char * EXE_PATH_VALUE   = "$func_to_host_path_result";
-EOF
-	    else
-	      cat <<"EOF"
-const char * EXE_PATH_VARNAME = "";
-const char * EXE_PATH_VALUE   = "";
-EOF
-	    fi
-
-	    if test "$fast_install" = yes; then
-	      cat <<EOF
-const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
-EOF
-	    else
-	      cat <<EOF
-const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
-EOF
-	    fi
-
-
-	    cat <<"EOF"
-
-#define LTWRAPPER_OPTION_PREFIX         "--lt-"
-
-static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
-static const char *dumpscript_opt       = LTWRAPPER_OPTION_PREFIX "dump-script";
-static const char *debug_opt            = LTWRAPPER_OPTION_PREFIX "debug";
-
-int
-main (int argc, char *argv[])
-{
-  char **newargz;
-  int  newargc;
-  char *tmp_pathspec;
-  char *actual_cwrapper_path;
-  char *actual_cwrapper_name;
-  char *target_name;
-  char *lt_argv_zero;
-  intptr_t rval = 127;
-
-  int i;
-
-  program_name = (char *) xstrdup (base_name (argv[0]));
-  newargz = XMALLOC (char *, argc + 1);
-
-  /* very simple arg parsing; don't want to rely on getopt
-   * also, copy all non cwrapper options to newargz, except
-   * argz[0], which is handled differently
-   */
-  newargc=0;
-  for (i = 1; i < argc; i++)
-    {
-      if (strcmp (argv[i], dumpscript_opt) == 0)
-	{
-EOF
-	    case "$host" in
-	      *mingw* | *cygwin* )
-		# make stdout use "unix" line endings
-		echo "          setmode(1,_O_BINARY);"
-		;;
-	      esac
-
-	    cat <<"EOF"
-	  lt_dump_script (stdout);
-	  return 0;
-	}
-      if (strcmp (argv[i], debug_opt) == 0)
-	{
-          lt_debug = 1;
-          continue;
-	}
-      if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
-        {
-          /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
-             namespace, but it is not one of the ones we know about and
-             have already dealt with, above (inluding dump-script), then
-             report an error. Otherwise, targets might begin to believe
-             they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
-             namespace. The first time any user complains about this, we'll
-             need to make LTWRAPPER_OPTION_PREFIX a configure-time option
-             or a configure.ac-settable value.
-           */
-          lt_fatal (__FILE__, __LINE__,
-		    "unrecognized %s option: '%s'",
-                    ltwrapper_option_prefix, argv[i]);
-        }
-      /* otherwise ... */
-      newargz[++newargc] = xstrdup (argv[i]);
-    }
-  newargz[++newargc] = NULL;
-
-EOF
-	    cat <<EOF
-  /* The GNU banner must be the first non-error debug message */
-  lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
-EOF
-	    cat <<"EOF"
-  lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
-  lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
-
-  tmp_pathspec = find_executable (argv[0]);
-  if (tmp_pathspec == NULL)
-    lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
-  lt_debugprintf (__FILE__, __LINE__,
-                  "(main) found exe (before symlink chase) at: %s\n",
-		  tmp_pathspec);
-
-  actual_cwrapper_path = chase_symlinks (tmp_pathspec);
-  lt_debugprintf (__FILE__, __LINE__,
-                  "(main) found exe (after symlink chase) at: %s\n",
-		  actual_cwrapper_path);
-  XFREE (tmp_pathspec);
-
-  actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
-  strendzap (actual_cwrapper_path, actual_cwrapper_name);
-
-  /* wrapper name transforms */
-  strendzap (actual_cwrapper_name, ".exe");
-  tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
-  XFREE (actual_cwrapper_name);
-  actual_cwrapper_name = tmp_pathspec;
-  tmp_pathspec = 0;
-
-  /* target_name transforms -- use actual target program name; might have lt- prefix */
-  target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
-  strendzap (target_name, ".exe");
-  tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
-  XFREE (target_name);
-  target_name = tmp_pathspec;
-  tmp_pathspec = 0;
-
-  lt_debugprintf (__FILE__, __LINE__,
-		  "(main) libtool target name: %s\n",
-		  target_name);
-EOF
-
-	    cat <<EOF
-  newargz[0] =
-    XMALLOC (char, (strlen (actual_cwrapper_path) +
-		    strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
-  strcpy (newargz[0], actual_cwrapper_path);
-  strcat (newargz[0], "$objdir");
-  strcat (newargz[0], "/");
-EOF
-
-	    cat <<"EOF"
-  /* stop here, and copy so we don't have to do this twice */
-  tmp_pathspec = xstrdup (newargz[0]);
-
-  /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
-  strcat (newargz[0], actual_cwrapper_name);
-
-  /* DO want the lt- prefix here if it exists, so use target_name */
-  lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
-  XFREE (tmp_pathspec);
-  tmp_pathspec = NULL;
-EOF
-
-	    case $host_os in
-	      mingw*)
-	    cat <<"EOF"
-  {
-    char* p;
-    while ((p = strchr (newargz[0], '\\')) != NULL)
-      {
-	*p = '/';
-      }
-    while ((p = strchr (lt_argv_zero, '\\')) != NULL)
-      {
-	*p = '/';
-      }
-  }
-EOF
-	    ;;
-	    esac
-
-	    cat <<"EOF"
-  XFREE (target_name);
-  XFREE (actual_cwrapper_path);
-  XFREE (actual_cwrapper_name);
-
-  lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
-  lt_setenv ("DUALCASE", "1");  /* for MSK sh */
-  /* Update the DLL searchpath.  EXE_PATH_VALUE ($dllsearchpath) must
-     be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
-     because on Windows, both *_VARNAMEs are PATH but uninstalled
-     libraries must come first. */
-  lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
-  lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
-
-  lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
-		  nonnull (lt_argv_zero));
-  for (i = 0; i < newargc; i++)
-    {
-      lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
-		      i, nonnull (newargz[i]));
-    }
-
-EOF
-
-	    case $host_os in
-	      mingw*)
-		cat <<"EOF"
-  /* execv doesn't actually work on mingw as expected on unix */
-  newargz = prepare_spawn (newargz);
-  rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
-  if (rval == -1)
-    {
-      /* failed to start process */
-      lt_debugprintf (__FILE__, __LINE__,
-		      "(main) failed to launch target \"%s\": %s\n",
-		      lt_argv_zero, nonnull (strerror (errno)));
-      return 127;
-    }
-  return rval;
-EOF
-		;;
-	      *)
-		cat <<"EOF"
-  execv (lt_argv_zero, newargz);
-  return rval; /* =127, but avoids unused variable warning */
-EOF
-		;;
-	    esac
-
-	    cat <<"EOF"
-}
-
-void *
-xmalloc (size_t num)
-{
-  void *p = (void *) malloc (num);
-  if (!p)
-    lt_fatal (__FILE__, __LINE__, "memory exhausted");
-
-  return p;
-}
-
-char *
-xstrdup (const char *string)
-{
-  return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
-			  string) : NULL;
-}
-
-const char *
-base_name (const char *name)
-{
-  const char *base;
-
-#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
-  /* Skip over the disk name in MSDOS pathnames. */
-  if (isalpha ((unsigned char) name[0]) && name[1] == ':')
-    name += 2;
-#endif
-
-  for (base = name; *name; name++)
-    if (IS_DIR_SEPARATOR (*name))
-      base = name + 1;
-  return base;
-}
-
-int
-check_executable (const char *path)
-{
-  struct stat st;
-
-  lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
-                  nonempty (path));
-  if ((!path) || (!*path))
-    return 0;
-
-  if ((stat (path, &st) >= 0)
-      && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
-    return 1;
-  else
-    return 0;
-}
-
-int
-make_executable (const char *path)
-{
-  int rval = 0;
-  struct stat st;
-
-  lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
-                  nonempty (path));
-  if ((!path) || (!*path))
-    return 0;
-
-  if (stat (path, &st) >= 0)
-    {
-      rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
-    }
-  return rval;
-}
-
-/* Searches for the full path of the wrapper.  Returns
-   newly allocated full path name if found, NULL otherwise
-   Does not chase symlinks, even on platforms that support them.
-*/
-char *
-find_executable (const char *wrapper)
-{
-  int has_slash = 0;
-  const char *p;
-  const char *p_next;
-  /* static buffer for getcwd */
-  char tmp[LT_PATHMAX + 1];
-  int tmp_len;
-  char *concat_name;
-
-  lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
-                  nonempty (wrapper));
-
-  if ((wrapper == NULL) || (*wrapper == '\0'))
-    return NULL;
-
-  /* Absolute path? */
-#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
-  if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
-    {
-      concat_name = xstrdup (wrapper);
-      if (check_executable (concat_name))
-	return concat_name;
-      XFREE (concat_name);
-    }
-  else
-    {
-#endif
-      if (IS_DIR_SEPARATOR (wrapper[0]))
-	{
-	  concat_name = xstrdup (wrapper);
-	  if (check_executable (concat_name))
-	    return concat_name;
-	  XFREE (concat_name);
-	}
-#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
-    }
-#endif
-
-  for (p = wrapper; *p; p++)
-    if (*p == '/')
-      {
-	has_slash = 1;
-	break;
-      }
-  if (!has_slash)
-    {
-      /* no slashes; search PATH */
-      const char *path = getenv ("PATH");
-      if (path != NULL)
-	{
-	  for (p = path; *p; p = p_next)
-	    {
-	      const char *q;
-	      size_t p_len;
-	      for (q = p; *q; q++)
-		if (IS_PATH_SEPARATOR (*q))
-		  break;
-	      p_len = q - p;
-	      p_next = (*q == '\0' ? q : q + 1);
-	      if (p_len == 0)
-		{
-		  /* empty path: current directory */
-		  if (getcwd (tmp, LT_PATHMAX) == NULL)
-		    lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
-                              nonnull (strerror (errno)));
-		  tmp_len = strlen (tmp);
-		  concat_name =
-		    XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
-		  memcpy (concat_name, tmp, tmp_len);
-		  concat_name[tmp_len] = '/';
-		  strcpy (concat_name + tmp_len + 1, wrapper);
-		}
-	      else
-		{
-		  concat_name =
-		    XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
-		  memcpy (concat_name, p, p_len);
-		  concat_name[p_len] = '/';
-		  strcpy (concat_name + p_len + 1, wrapper);
-		}
-	      if (check_executable (concat_name))
-		return concat_name;
-	      XFREE (concat_name);
-	    }
-	}
-      /* not found in PATH; assume curdir */
-    }
-  /* Relative path | not found in path: prepend cwd */
-  if (getcwd (tmp, LT_PATHMAX) == NULL)
-    lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
-              nonnull (strerror (errno)));
-  tmp_len = strlen (tmp);
-  concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
-  memcpy (concat_name, tmp, tmp_len);
-  concat_name[tmp_len] = '/';
-  strcpy (concat_name + tmp_len + 1, wrapper);
-
-  if (check_executable (concat_name))
-    return concat_name;
-  XFREE (concat_name);
-  return NULL;
-}
-
-char *
-chase_symlinks (const char *pathspec)
-{
-#ifndef S_ISLNK
-  return xstrdup (pathspec);
-#else
-  char buf[LT_PATHMAX];
-  struct stat s;
-  char *tmp_pathspec = xstrdup (pathspec);
-  char *p;
-  int has_symlinks = 0;
-  while (strlen (tmp_pathspec) && !has_symlinks)
-    {
-      lt_debugprintf (__FILE__, __LINE__,
-		      "checking path component for symlinks: %s\n",
-		      tmp_pathspec);
-      if (lstat (tmp_pathspec, &s) == 0)
-	{
-	  if (S_ISLNK (s.st_mode) != 0)
-	    {
-	      has_symlinks = 1;
-	      break;
-	    }
-
-	  /* search backwards for last DIR_SEPARATOR */
-	  p = tmp_pathspec + strlen (tmp_pathspec) - 1;
-	  while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
-	    p--;
-	  if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
-	    {
-	      /* no more DIR_SEPARATORS left */
-	      break;
-	    }
-	  *p = '\0';
-	}
-      else
-	{
-	  lt_fatal (__FILE__, __LINE__,
-		    "error accessing file \"%s\": %s",
-		    tmp_pathspec, nonnull (strerror (errno)));
-	}
-    }
-  XFREE (tmp_pathspec);
-
-  if (!has_symlinks)
-    {
-      return xstrdup (pathspec);
-    }
-
-  tmp_pathspec = realpath (pathspec, buf);
-  if (tmp_pathspec == 0)
-    {
-      lt_fatal (__FILE__, __LINE__,
-		"could not follow symlinks for %s", pathspec);
-    }
-  return xstrdup (tmp_pathspec);
-#endif
-}
-
-char *
-strendzap (char *str, const char *pat)
-{
-  size_t len, patlen;
-
-  assert (str != NULL);
-  assert (pat != NULL);
-
-  len = strlen (str);
-  patlen = strlen (pat);
-
-  if (patlen <= len)
-    {
-      str += len - patlen;
-      if (strcmp (str, pat) == 0)
-	*str = '\0';
-    }
-  return str;
-}
-
-void
-lt_debugprintf (const char *file, int line, const char *fmt, ...)
-{
-  va_list args;
-  if (lt_debug)
-    {
-      (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
-      va_start (args, fmt);
-      (void) vfprintf (stderr, fmt, args);
-      va_end (args);
-    }
-}
-
-static void
-lt_error_core (int exit_status, const char *file,
-	       int line, const char *mode,
-	       const char *message, va_list ap)
-{
-  fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
-  vfprintf (stderr, message, ap);
-  fprintf (stderr, ".\n");
-
-  if (exit_status >= 0)
-    exit (exit_status);
-}
-
-void
-lt_fatal (const char *file, int line, const char *message, ...)
-{
-  va_list ap;
-  va_start (ap, message);
-  lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
-  va_end (ap);
-}
-
-static const char *
-nonnull (const char *s)
-{
-  return s ? s : "(null)";
-}
-
-static const char *
-nonempty (const char *s)
-{
-  return (s && !*s) ? "(empty)" : nonnull (s);
-}
-
-void
-lt_setenv (const char *name, const char *value)
-{
-  lt_debugprintf (__FILE__, __LINE__,
-		  "(lt_setenv) setting '%s' to '%s'\n",
-                  nonnull (name), nonnull (value));
-  {
-#ifdef HAVE_SETENV
-    /* always make a copy, for consistency with !HAVE_SETENV */
-    char *str = xstrdup (value);
-    setenv (name, str, 1);
-#else
-    int len = strlen (name) + 1 + strlen (value) + 1;
-    char *str = XMALLOC (char, len);
-    sprintf (str, "%s=%s", name, value);
-    if (putenv (str) != EXIT_SUCCESS)
-      {
-        XFREE (str);
-      }
-#endif
-  }
-}
-
-char *
-lt_extend_str (const char *orig_value, const char *add, int to_end)
-{
-  char *new_value;
-  if (orig_value && *orig_value)
-    {
-      int orig_value_len = strlen (orig_value);
-      int add_len = strlen (add);
-      new_value = XMALLOC (char, add_len + orig_value_len + 1);
-      if (to_end)
-        {
-          strcpy (new_value, orig_value);
-          strcpy (new_value + orig_value_len, add);
-        }
-      else
-        {
-          strcpy (new_value, add);
-          strcpy (new_value + add_len, orig_value);
-        }
-    }
-  else
-    {
-      new_value = xstrdup (add);
-    }
-  return new_value;
-}
-
-void
-lt_update_exe_path (const char *name, const char *value)
-{
-  lt_debugprintf (__FILE__, __LINE__,
-		  "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
-                  nonnull (name), nonnull (value));
-
-  if (name && *name && value && *value)
-    {
-      char *new_value = lt_extend_str (getenv (name), value, 0);
-      /* some systems can't cope with a ':'-terminated path #' */
-      int len = strlen (new_value);
-      while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
-        {
-          new_value[len-1] = '\0';
-        }
-      lt_setenv (name, new_value);
-      XFREE (new_value);
-    }
-}
-
-void
-lt_update_lib_path (const char *name, const char *value)
-{
-  lt_debugprintf (__FILE__, __LINE__,
-		  "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
-                  nonnull (name), nonnull (value));
-
-  if (name && *name && value && *value)
-    {
-      char *new_value = lt_extend_str (getenv (name), value, 0);
-      lt_setenv (name, new_value);
-      XFREE (new_value);
-    }
-}
-
-EOF
-	    case $host_os in
-	      mingw*)
-		cat <<"EOF"
-
-/* Prepares an argument vector before calling spawn().
-   Note that spawn() does not by itself call the command interpreter
-     (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
-      ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
-         GetVersionEx(&v);
-         v.dwPlatformId == VER_PLATFORM_WIN32_NT;
-      }) ? "cmd.exe" : "command.com").
-   Instead it simply concatenates the arguments, separated by ' ', and calls
-   CreateProcess().  We must quote the arguments since Win32 CreateProcess()
-   interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
-   special way:
-   - Space and tab are interpreted as delimiters. They are not treated as
-     delimiters if they are surrounded by double quotes: "...".
-   - Unescaped double quotes are removed from the input. Their only effect is
-     that within double quotes, space and tab are treated like normal
-     characters.
-   - Backslashes not followed by double quotes are not special.
-   - But 2*n+1 backslashes followed by a double quote become
-     n backslashes followed by a double quote (n >= 0):
-       \" -> "
-       \\\" -> \"
-       \\\\\" -> \\"
- */
-#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
-#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
-char **
-prepare_spawn (char **argv)
-{
-  size_t argc;
-  char **new_argv;
-  size_t i;
-
-  /* Count number of arguments.  */
-  for (argc = 0; argv[argc] != NULL; argc++)
-    ;
-
-  /* Allocate new argument vector.  */
-  new_argv = XMALLOC (char *, argc + 1);
-
-  /* Put quoted arguments into the new argument vector.  */
-  for (i = 0; i < argc; i++)
-    {
-      const char *string = argv[i];
-
-      if (string[0] == '\0')
-	new_argv[i] = xstrdup ("\"\"");
-      else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
-	{
-	  int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
-	  size_t length;
-	  unsigned int backslashes;
-	  const char *s;
-	  char *quoted_string;
-	  char *p;
-
-	  length = 0;
-	  backslashes = 0;
-	  if (quote_around)
-	    length++;
-	  for (s = string; *s != '\0'; s++)
-	    {
-	      char c = *s;
-	      if (c == '"')
-		length += backslashes + 1;
-	      length++;
-	      if (c == '\\')
-		backslashes++;
-	      else
-		backslashes = 0;
-	    }
-	  if (quote_around)
-	    length += backslashes + 1;
-
-	  quoted_string = XMALLOC (char, length + 1);
-
-	  p = quoted_string;
-	  backslashes = 0;
-	  if (quote_around)
-	    *p++ = '"';
-	  for (s = string; *s != '\0'; s++)
-	    {
-	      char c = *s;
-	      if (c == '"')
-		{
-		  unsigned int j;
-		  for (j = backslashes + 1; j > 0; j--)
-		    *p++ = '\\';
-		}
-	      *p++ = c;
-	      if (c == '\\')
-		backslashes++;
-	      else
-		backslashes = 0;
-	    }
-	  if (quote_around)
-	    {
-	      unsigned int j;
-	      for (j = backslashes; j > 0; j--)
-		*p++ = '\\';
-	      *p++ = '"';
-	    }
-	  *p = '\0';
-
-	  new_argv[i] = quoted_string;
-	}
-      else
-	new_argv[i] = (char *) string;
-    }
-  new_argv[argc] = NULL;
-
-  return new_argv;
-}
-EOF
-		;;
-	    esac
-
-            cat <<"EOF"
-void lt_dump_script (FILE* f)
-{
-EOF
-	    func_emit_wrapper yes |
-	      $SED -n -e '
-s/^\(.\{79\}\)\(..*\)/\1\
-\2/
-h
-s/\([\\"]\)/\\\1/g
-s/$/\\n/
-s/\([^\n]*\).*/  fputs ("\1", f);/p
-g
-D'
-            cat <<"EOF"
-}
-EOF
-}
-# end: func_emit_cwrapperexe_src
-
-# func_win32_import_lib_p ARG
-# True if ARG is an import lib, as indicated by $file_magic_cmd
-func_win32_import_lib_p ()
-{
-    $opt_debug
-    case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
-    *import*) : ;;
-    *) false ;;
-    esac
-}
-
-# func_mode_link arg...
-func_mode_link ()
-{
-    $opt_debug
-    case $host in
-    *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
-      # It is impossible to link a dll without this setting, and
-      # we shouldn't force the makefile maintainer to figure out
-      # which system we are compiling for in order to pass an extra
-      # flag for every libtool invocation.
-      # allow_undefined=no
-
-      # FIXME: Unfortunately, there are problems with the above when trying
-      # to make a dll which has undefined symbols, in which case not
-      # even a static library is built.  For now, we need to specify
-      # -no-undefined on the libtool link line when we can be certain
-      # that all symbols are satisfied, otherwise we get a static library.
-      allow_undefined=yes
-      ;;
-    *)
-      allow_undefined=yes
-      ;;
-    esac
-    libtool_args=$nonopt
-    base_compile="$nonopt $@"
-    compile_command=$nonopt
-    finalize_command=$nonopt
-
-    compile_rpath=
-    finalize_rpath=
-    compile_shlibpath=
-    finalize_shlibpath=
-    convenience=
-    old_convenience=
-    deplibs=
-    old_deplibs=
-    compiler_flags=
-    linker_flags=
-    dllsearchpath=
-    lib_search_path=`pwd`
-    inst_prefix_dir=
-    new_inherited_linker_flags=
-
-    avoid_version=no
-    bindir=
-    dlfiles=
-    dlprefiles=
-    dlself=no
-    export_dynamic=no
-    export_symbols=
-    export_symbols_regex=
-    generated=
-    libobjs=
-    ltlibs=
-    module=no
-    no_install=no
-    objs=
-    non_pic_objects=
-    precious_files_regex=
-    prefer_static_libs=no
-    preload=no
-    prev=
-    prevarg=
-    release=
-    rpath=
-    xrpath=
-    perm_rpath=
-    temp_rpath=
-    thread_safe=no
-    vinfo=
-    vinfo_number=no
-    weak_libs=
-    single_module="${wl}-single_module"
-    func_infer_tag $base_compile
-
-    # We need to know -static, to get the right output filenames.
-    for arg
-    do
-      case $arg in
-      -shared)
-	test "$build_libtool_libs" != yes && \
-	  func_fatal_configuration "can not build a shared library"
-	build_old_libs=no
-	break
-	;;
-      -all-static | -static | -static-libtool-libs)
-	case $arg in
-	-all-static)
-	  if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
-	    func_warning "complete static linking is impossible in this configuration"
-	  fi
-	  if test -n "$link_static_flag"; then
-	    dlopen_self=$dlopen_self_static
-	  fi
-	  prefer_static_libs=yes
-	  ;;
-	-static)
-	  if test -z "$pic_flag" && test -n "$link_static_flag"; then
-	    dlopen_self=$dlopen_self_static
-	  fi
-	  prefer_static_libs=built
-	  ;;
-	-static-libtool-libs)
-	  if test -z "$pic_flag" && test -n "$link_static_flag"; then
-	    dlopen_self=$dlopen_self_static
-	  fi
-	  prefer_static_libs=yes
-	  ;;
-	esac
-	build_libtool_libs=no
-	build_old_libs=yes
-	break
-	;;
-      esac
-    done
-
-    # See if our shared archives depend on static archives.
-    test -n "$old_archive_from_new_cmds" && build_old_libs=yes
-
-    # Go through the arguments, transforming them on the way.
-    while test "$#" -gt 0; do
-      arg="$1"
-      shift
-      func_quote_for_eval "$arg"
-      qarg=$func_quote_for_eval_unquoted_result
-      func_append libtool_args " $func_quote_for_eval_result"
-
-      # If the previous option needs an argument, assign it.
-      if test -n "$prev"; then
-	case $prev in
-	output)
-	  func_append compile_command " @OUTPUT@"
-	  func_append finalize_command " @OUTPUT@"
-	  ;;
-	esac
-
-	case $prev in
-	bindir)
-	  bindir="$arg"
-	  prev=
-	  continue
-	  ;;
-	dlfiles|dlprefiles)
-	  if test "$preload" = no; then
-	    # Add the symbol object into the linking commands.
-	    func_append compile_command " @SYMFILE@"
-	    func_append finalize_command " @SYMFILE@"
-	    preload=yes
-	  fi
-	  case $arg in
-	  *.la | *.lo) ;;  # We handle these cases below.
-	  force)
-	    if test "$dlself" = no; then
-	      dlself=needless
-	      export_dynamic=yes
-	    fi
-	    prev=
-	    continue
-	    ;;
-	  self)
-	    if test "$prev" = dlprefiles; then
-	      dlself=yes
-	    elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
-	      dlself=yes
-	    else
-	      dlself=needless
-	      export_dynamic=yes
-	    fi
-	    prev=
-	    continue
-	    ;;
-	  *)
-	    if test "$prev" = dlfiles; then
-	      func_append dlfiles " $arg"
-	    else
-	      func_append dlprefiles " $arg"
-	    fi
-	    prev=
-	    continue
-	    ;;
-	  esac
-	  ;;
-	expsyms)
-	  export_symbols="$arg"
-	  test -f "$arg" \
-	    || func_fatal_error "symbol file \`$arg' does not exist"
-	  prev=
-	  continue
-	  ;;
-	expsyms_regex)
-	  export_symbols_regex="$arg"
-	  prev=
-	  continue
-	  ;;
-	framework)
-	  case $host in
-	    *-*-darwin*)
-	      case "$deplibs " in
-		*" $qarg.ltframework "*) ;;
-		*) func_append deplibs " $qarg.ltframework" # this is fixed later
-		   ;;
-	      esac
-	      ;;
-	  esac
-	  prev=
-	  continue
-	  ;;
-	inst_prefix)
-	  inst_prefix_dir="$arg"
-	  prev=
-	  continue
-	  ;;
-	objectlist)
-	  if test -f "$arg"; then
-	    save_arg=$arg
-	    moreargs=
-	    for fil in `cat "$save_arg"`
-	    do
-#	      func_append moreargs " $fil"
-	      arg=$fil
-	      # A libtool-controlled object.
-
-	      # Check to see that this really is a libtool object.
-	      if func_lalib_unsafe_p "$arg"; then
-		pic_object=
-		non_pic_object=
-
-		# Read the .lo file
-		func_source "$arg"
-
-		if test -z "$pic_object" ||
-		   test -z "$non_pic_object" ||
-		   test "$pic_object" = none &&
-		   test "$non_pic_object" = none; then
-		  func_fatal_error "cannot find name of object for \`$arg'"
-		fi
-
-		# Extract subdirectory from the argument.
-		func_dirname "$arg" "/" ""
-		xdir="$func_dirname_result"
-
-		if test "$pic_object" != none; then
-		  # Prepend the subdirectory the object is found in.
-		  pic_object="$xdir$pic_object"
-
-		  if test "$prev" = dlfiles; then
-		    if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
-		      func_append dlfiles " $pic_object"
-		      prev=
-		      continue
-		    else
-		      # If libtool objects are unsupported, then we need to preload.
-		      prev=dlprefiles
-		    fi
-		  fi
-
-		  # CHECK ME:  I think I busted this.  -Ossama
-		  if test "$prev" = dlprefiles; then
-		    # Preload the old-style object.
-		    func_append dlprefiles " $pic_object"
-		    prev=
-		  fi
-
-		  # A PIC object.
-		  func_append libobjs " $pic_object"
-		  arg="$pic_object"
-		fi
-
-		# Non-PIC object.
-		if test "$non_pic_object" != none; then
-		  # Prepend the subdirectory the object is found in.
-		  non_pic_object="$xdir$non_pic_object"
-
-		  # A standard non-PIC object
-		  func_append non_pic_objects " $non_pic_object"
-		  if test -z "$pic_object" || test "$pic_object" = none ; then
-		    arg="$non_pic_object"
-		  fi
-		else
-		  # If the PIC object exists, use it instead.
-		  # $xdir was prepended to $pic_object above.
-		  non_pic_object="$pic_object"
-		  func_append non_pic_objects " $non_pic_object"
-		fi
-	      else
-		# Only an error if not doing a dry-run.
-		if $opt_dry_run; then
-		  # Extract subdirectory from the argument.
-		  func_dirname "$arg" "/" ""
-		  xdir="$func_dirname_result"
-
-		  func_lo2o "$arg"
-		  pic_object=$xdir$objdir/$func_lo2o_result
-		  non_pic_object=$xdir$func_lo2o_result
-		  func_append libobjs " $pic_object"
-		  func_append non_pic_objects " $non_pic_object"
-	        else
-		  func_fatal_error "\`$arg' is not a valid libtool object"
-		fi
-	      fi
-	    done
-	  else
-	    func_fatal_error "link input file \`$arg' does not exist"
-	  fi
-	  arg=$save_arg
-	  prev=
-	  continue
-	  ;;
-	precious_regex)
-	  precious_files_regex="$arg"
-	  prev=
-	  continue
-	  ;;
-	release)
-	  release="-$arg"
-	  prev=
-	  continue
-	  ;;
-	rpath | xrpath)
-	  # We need an absolute path.
-	  case $arg in
-	  [\\/]* | [A-Za-z]:[\\/]*) ;;
-	  *)
-	    func_fatal_error "only absolute run-paths are allowed"
-	    ;;
-	  esac
-	  if test "$prev" = rpath; then
-	    case "$rpath " in
-	    *" $arg "*) ;;
-	    *) func_append rpath " $arg" ;;
-	    esac
-	  else
-	    case "$xrpath " in
-	    *" $arg "*) ;;
-	    *) func_append xrpath " $arg" ;;
-	    esac
-	  fi
-	  prev=
-	  continue
-	  ;;
-	shrext)
-	  shrext_cmds="$arg"
-	  prev=
-	  continue
-	  ;;
-	weak)
-	  func_append weak_libs " $arg"
-	  prev=
-	  continue
-	  ;;
-	xcclinker)
-	  func_append linker_flags " $qarg"
-	  func_append compiler_flags " $qarg"
-	  prev=
-	  func_append compile_command " $qarg"
-	  func_append finalize_command " $qarg"
-	  continue
-	  ;;
-	xcompiler)
-	  func_append compiler_flags " $qarg"
-	  prev=
-	  func_append compile_command " $qarg"
-	  func_append finalize_command " $qarg"
-	  continue
-	  ;;
-	xlinker)
-	  func_append linker_flags " $qarg"
-	  func_append compiler_flags " $wl$qarg"
-	  prev=
-	  func_append compile_command " $wl$qarg"
-	  func_append finalize_command " $wl$qarg"
-	  continue
-	  ;;
-	*)
-	  eval "$prev=\"\$arg\""
-	  prev=
-	  continue
-	  ;;
-	esac
-      fi # test -n "$prev"
-
-      prevarg="$arg"
-
-      case $arg in
-      -all-static)
-	if test -n "$link_static_flag"; then
-	  # See comment for -static flag below, for more details.
-	  func_append compile_command " $link_static_flag"
-	  func_append finalize_command " $link_static_flag"
-	fi
-	continue
-	;;
-
-      -allow-undefined)
-	# FIXME: remove this flag sometime in the future.
-	func_fatal_error "\`-allow-undefined' must not be used because it is the default"
-	;;
-
-      -avoid-version)
-	avoid_version=yes
-	continue
-	;;
-
-      -bindir)
-	prev=bindir
-	continue
-	;;
-
-      -dlopen)
-	prev=dlfiles
-	continue
-	;;
-
-      -dlpreopen)
-	prev=dlprefiles
-	continue
-	;;
-
-      -export-dynamic)
-	export_dynamic=yes
-	continue
-	;;
-
-      -export-symbols | -export-symbols-regex)
-	if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
-	  func_fatal_error "more than one -exported-symbols argument is not allowed"
-	fi
-	if test "X$arg" = "X-export-symbols"; then
-	  prev=expsyms
-	else
-	  prev=expsyms_regex
-	fi
-	continue
-	;;
-
-      -framework)
-	prev=framework
-	continue
-	;;
-
-      -inst-prefix-dir)
-	prev=inst_prefix
-	continue
-	;;
-
-      # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
-      # so, if we see these flags be careful not to treat them like -L
-      -L[A-Z][A-Z]*:*)
-	case $with_gcc/$host in
-	no/*-*-irix* | /*-*-irix*)
-	  func_append compile_command " $arg"
-	  func_append finalize_command " $arg"
-	  ;;
-	esac
-	continue
-	;;
-
-      -L*)
-	func_stripname "-L" '' "$arg"
-	if test -z "$func_stripname_result"; then
-	  if test "$#" -gt 0; then
-	    func_fatal_error "require no space between \`-L' and \`$1'"
-	  else
-	    func_fatal_error "need path for \`-L' option"
-	  fi
-	fi
-	func_resolve_sysroot "$func_stripname_result"
-	dir=$func_resolve_sysroot_result
-	# We need an absolute path.
-	case $dir in
-	[\\/]* | [A-Za-z]:[\\/]*) ;;
-	*)
-	  absdir=`cd "$dir" && pwd`
-	  test -z "$absdir" && \
-	    func_fatal_error "cannot determine absolute directory name of \`$dir'"
-	  dir="$absdir"
-	  ;;
-	esac
-	case "$deplibs " in
-	*" -L$dir "* | *" $arg "*)
-	  # Will only happen for absolute or sysroot arguments
-	  ;;
-	*)
-	  # Preserve sysroot, but never include relative directories
-	  case $dir in
-	    [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
-	    *) func_append deplibs " -L$dir" ;;
-	  esac
-	  func_append lib_search_path " $dir"
-	  ;;
-	esac
-	case $host in
-	*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
-	  testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
-	  case :$dllsearchpath: in
-	  *":$dir:"*) ;;
-	  ::) dllsearchpath=$dir;;
-	  *) func_append dllsearchpath ":$dir";;
-	  esac
-	  case :$dllsearchpath: in
-	  *":$testbindir:"*) ;;
-	  ::) dllsearchpath=$testbindir;;
-	  *) func_append dllsearchpath ":$testbindir";;
-	  esac
-	  ;;
-	esac
-	continue
-	;;
-
-      -l*)
-	if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
-	  case $host in
-	  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
-	    # These systems don't actually have a C or math library (as such)
-	    continue
-	    ;;
-	  *-*-os2*)
-	    # These systems don't actually have a C library (as such)
-	    test "X$arg" = "X-lc" && continue
-	    ;;
-	  *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
-	    # Do not include libc due to us having libc/libc_r.
-	    test "X$arg" = "X-lc" && continue
-	    ;;
-	  *-*-rhapsody* | *-*-darwin1.[012])
-	    # Rhapsody C and math libraries are in the System framework
-	    func_append deplibs " System.ltframework"
-	    continue
-	    ;;
-	  *-*-sco3.2v5* | *-*-sco5v6*)
-	    # Causes problems with __ctype
-	    test "X$arg" = "X-lc" && continue
-	    ;;
-	  *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
-	    # Compiler inserts libc in the correct place for threads to work
-	    test "X$arg" = "X-lc" && continue
-	    ;;
-	  esac
-	elif test "X$arg" = "X-lc_r"; then
-	 case $host in
-	 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
-	   # Do not include libc_r directly, use -pthread flag.
-	   continue
-	   ;;
-	 esac
-	fi
-	func_append deplibs " $arg"
-	continue
-	;;
-
-      -module)
-	module=yes
-	continue
-	;;
-
-      # Tru64 UNIX uses -model [arg] to determine the layout of C++
-      # classes, name mangling, and exception handling.
-      # Darwin uses the -arch flag to determine output architecture.
-      -model|-arch|-isysroot|--sysroot)
-	func_append compiler_flags " $arg"
-	func_append compile_command " $arg"
-	func_append finalize_command " $arg"
-	prev=xcompiler
-	continue
-	;;
-
-      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
-      |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
-	func_append compiler_flags " $arg"
-	func_append compile_command " $arg"
-	func_append finalize_command " $arg"
-	case "$new_inherited_linker_flags " in
-	    *" $arg "*) ;;
-	    * ) func_append new_inherited_linker_flags " $arg" ;;
-	esac
-	continue
-	;;
-
-      -multi_module)
-	single_module="${wl}-multi_module"
-	continue
-	;;
-
-      -no-fast-install)
-	fast_install=no
-	continue
-	;;
-
-      -no-install)
-	case $host in
-	*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
-	  # The PATH hackery in wrapper scripts is required on Windows
-	  # and Darwin in order for the loader to find any dlls it needs.
-	  func_warning "\`-no-install' is ignored for $host"
-	  func_warning "assuming \`-no-fast-install' instead"
-	  fast_install=no
-	  ;;
-	*) no_install=yes ;;
-	esac
-	continue
-	;;
-
-      -no-undefined)
-	allow_undefined=no
-	continue
-	;;
-
-      -objectlist)
-	prev=objectlist
-	continue
-	;;
-
-      -o) prev=output ;;
-
-      -precious-files-regex)
-	prev=precious_regex
-	continue
-	;;
-
-      -release)
-	prev=release
-	continue
-	;;
-
-      -rpath)
-	prev=rpath
-	continue
-	;;
-
-      -R)
-	prev=xrpath
-	continue
-	;;
-
-      -R*)
-	func_stripname '-R' '' "$arg"
-	dir=$func_stripname_result
-	# We need an absolute path.
-	case $dir in
-	[\\/]* | [A-Za-z]:[\\/]*) ;;
-	=*)
-	  func_stripname '=' '' "$dir"
-	  dir=$lt_sysroot$func_stripname_result
-	  ;;
-	*)
-	  func_fatal_error "only absolute run-paths are allowed"
-	  ;;
-	esac
-	case "$xrpath " in
-	*" $dir "*) ;;
-	*) func_append xrpath " $dir" ;;
-	esac
-	continue
-	;;
-
-      -shared)
-	# The effects of -shared are defined in a previous loop.
-	continue
-	;;
-
-      -shrext)
-	prev=shrext
-	continue
-	;;
-
-      -static | -static-libtool-libs)
-	# The effects of -static are defined in a previous loop.
-	# We used to do the same as -all-static on platforms that
-	# didn't have a PIC flag, but the assumption that the effects
-	# would be equivalent was wrong.  It would break on at least
-	# Digital Unix and AIX.
-	continue
-	;;
-
-      -thread-safe)
-	thread_safe=yes
-	continue
-	;;
-
-      -version-info)
-	prev=vinfo
-	continue
-	;;
-
-      -version-number)
-	prev=vinfo
-	vinfo_number=yes
-	continue
-	;;
-
-      -weak)
-        prev=weak
-	continue
-	;;
-
-      -Wc,*)
-	func_stripname '-Wc,' '' "$arg"
-	args=$func_stripname_result
-	arg=
-	save_ifs="$IFS"; IFS=','
-	for flag in $args; do
-	  IFS="$save_ifs"
-          func_quote_for_eval "$flag"
-	  func_append arg " $func_quote_for_eval_result"
-	  func_append compiler_flags " $func_quote_for_eval_result"
-	done
-	IFS="$save_ifs"
-	func_stripname ' ' '' "$arg"
-	arg=$func_stripname_result
-	;;
-
-      -Wl,*)
-	func_stripname '-Wl,' '' "$arg"
-	args=$func_stripname_result
-	arg=
-	save_ifs="$IFS"; IFS=','
-	for flag in $args; do
-	  IFS="$save_ifs"
-          func_quote_for_eval "$flag"
-	  func_append arg " $wl$func_quote_for_eval_result"
-	  func_append compiler_flags " $wl$func_quote_for_eval_result"
-	  func_append linker_flags " $func_quote_for_eval_result"
-	done
-	IFS="$save_ifs"
-	func_stripname ' ' '' "$arg"
-	arg=$func_stripname_result
-	;;
-
-      -Xcompiler)
-	prev=xcompiler
-	continue
-	;;
-
-      -Xlinker)
-	prev=xlinker
-	continue
-	;;
-
-      -XCClinker)
-	prev=xcclinker
-	continue
-	;;
-
-      # -msg_* for osf cc
-      -msg_*)
-	func_quote_for_eval "$arg"
-	arg="$func_quote_for_eval_result"
-	;;
-
-      # Flags to be passed through unchanged, with rationale:
-      # -64, -mips[0-9]      enable 64-bit mode for the SGI compiler
-      # -r[0-9][0-9]*        specify processor for the SGI compiler
-      # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
-      # +DA*, +DD*           enable 64-bit mode for the HP compiler
-      # -q*                  compiler args for the IBM compiler
-      # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
-      # -F/path              path to uninstalled frameworks, gcc on darwin
-      # -p, -pg, --coverage, -fprofile-*  profiling flags for GCC
-      # @file                GCC response files
-      # -tp=*                Portland pgcc target processor selection
-      # --sysroot=*          for sysroot support
-      # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
-      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
-      -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
-        func_quote_for_eval "$arg"
-	arg="$func_quote_for_eval_result"
-        func_append compile_command " $arg"
-        func_append finalize_command " $arg"
-        func_append compiler_flags " $arg"
-        continue
-        ;;
-
-      # Some other compiler flag.
-      -* | +*)
-        func_quote_for_eval "$arg"
-	arg="$func_quote_for_eval_result"
-	;;
-
-      *.$objext)
-	# A standard object.
-	func_append objs " $arg"
-	;;
-
-      *.lo)
-	# A libtool-controlled object.
-
-	# Check to see that this really is a libtool object.
-	if func_lalib_unsafe_p "$arg"; then
-	  pic_object=
-	  non_pic_object=
-
-	  # Read the .lo file
-	  func_source "$arg"
-
-	  if test -z "$pic_object" ||
-	     test -z "$non_pic_object" ||
-	     test "$pic_object" = none &&
-	     test "$non_pic_object" = none; then
-	    func_fatal_error "cannot find name of object for \`$arg'"
-	  fi
-
-	  # Extract subdirectory from the argument.
-	  func_dirname "$arg" "/" ""
-	  xdir="$func_dirname_result"
-
-	  if test "$pic_object" != none; then
-	    # Prepend the subdirectory the object is found in.
-	    pic_object="$xdir$pic_object"
-
-	    if test "$prev" = dlfiles; then
-	      if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
-		func_append dlfiles " $pic_object"
-		prev=
-		continue
-	      else
-		# If libtool objects are unsupported, then we need to preload.
-		prev=dlprefiles
-	      fi
-	    fi
-
-	    # CHECK ME:  I think I busted this.  -Ossama
-	    if test "$prev" = dlprefiles; then
-	      # Preload the old-style object.
-	      func_append dlprefiles " $pic_object"
-	      prev=
-	    fi
-
-	    # A PIC object.
-	    func_append libobjs " $pic_object"
-	    arg="$pic_object"
-	  fi
-
-	  # Non-PIC object.
-	  if test "$non_pic_object" != none; then
-	    # Prepend the subdirectory the object is found in.
-	    non_pic_object="$xdir$non_pic_object"
-
-	    # A standard non-PIC object
-	    func_append non_pic_objects " $non_pic_object"
-	    if test -z "$pic_object" || test "$pic_object" = none ; then
-	      arg="$non_pic_object"
-	    fi
-	  else
-	    # If the PIC object exists, use it instead.
-	    # $xdir was prepended to $pic_object above.
-	    non_pic_object="$pic_object"
-	    func_append non_pic_objects " $non_pic_object"
-	  fi
-	else
-	  # Only an error if not doing a dry-run.
-	  if $opt_dry_run; then
-	    # Extract subdirectory from the argument.
-	    func_dirname "$arg" "/" ""
-	    xdir="$func_dirname_result"
-
-	    func_lo2o "$arg"
-	    pic_object=$xdir$objdir/$func_lo2o_result
-	    non_pic_object=$xdir$func_lo2o_result
-	    func_append libobjs " $pic_object"
-	    func_append non_pic_objects " $non_pic_object"
-	  else
-	    func_fatal_error "\`$arg' is not a valid libtool object"
-	  fi
-	fi
-	;;
-
-      *.$libext)
-	# An archive.
-	func_append deplibs " $arg"
-	func_append old_deplibs " $arg"
-	continue
-	;;
-
-      *.la)
-	# A libtool-controlled library.
-
-	func_resolve_sysroot "$arg"
-	if test "$prev" = dlfiles; then
-	  # This library was specified with -dlopen.
-	  func_append dlfiles " $func_resolve_sysroot_result"
-	  prev=
-	elif test "$prev" = dlprefiles; then
-	  # The library was specified with -dlpreopen.
-	  func_append dlprefiles " $func_resolve_sysroot_result"
-	  prev=
-	else
-	  func_append deplibs " $func_resolve_sysroot_result"
-	fi
-	continue
-	;;
-
-      # Some other compiler argument.
-      *)
-	# Unknown arguments in both finalize_command and compile_command need
-	# to be aesthetically quoted because they are evaled later.
-	func_quote_for_eval "$arg"
-	arg="$func_quote_for_eval_result"
-	;;
-      esac # arg
-
-      # Now actually substitute the argument into the commands.
-      if test -n "$arg"; then
-	func_append compile_command " $arg"
-	func_append finalize_command " $arg"
-      fi
-    done # argument parsing loop
-
-    test -n "$prev" && \
-      func_fatal_help "the \`$prevarg' option requires an argument"
-
-    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
-      eval arg=\"$export_dynamic_flag_spec\"
-      func_append compile_command " $arg"
-      func_append finalize_command " $arg"
-    fi
-
-    oldlibs=
-    # calculate the name of the file, without its directory
-    func_basename "$output"
-    outputname="$func_basename_result"
-    libobjs_save="$libobjs"
-
-    if test -n "$shlibpath_var"; then
-      # get the directories listed in $shlibpath_var
-      eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
-    else
-      shlib_search_path=
-    fi
-    eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
-    eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
-
-    func_dirname "$output" "/" ""
-    output_objdir="$func_dirname_result$objdir"
-    func_to_tool_file "$output_objdir/"
-    tool_output_objdir=$func_to_tool_file_result
-    # Create the object directory.
-    func_mkdir_p "$output_objdir"
-
-    # Determine the type of output
-    case $output in
-    "")
-      func_fatal_help "you must specify an output file"
-      ;;
-    *.$libext) linkmode=oldlib ;;
-    *.lo | *.$objext) linkmode=obj ;;
-    *.la) linkmode=lib ;;
-    *) linkmode=prog ;; # Anything else should be a program.
-    esac
-
-    specialdeplibs=
-
-    libs=
-    # Find all interdependent deplibs by searching for libraries
-    # that are linked more than once (e.g. -la -lb -la)
-    for deplib in $deplibs; do
-      if $opt_preserve_dup_deps ; then
-	case "$libs " in
-	*" $deplib "*) func_append specialdeplibs " $deplib" ;;
-	esac
-      fi
-      func_append libs " $deplib"
-    done
-
-    if test "$linkmode" = lib; then
-      libs="$predeps $libs $compiler_lib_search_path $postdeps"
-
-      # Compute libraries that are listed more than once in $predeps
-      # $postdeps and mark them as special (i.e., whose duplicates are
-      # not to be eliminated).
-      pre_post_deps=
-      if $opt_duplicate_compiler_generated_deps; then
-	for pre_post_dep in $predeps $postdeps; do
-	  case "$pre_post_deps " in
-	  *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
-	  esac
-	  func_append pre_post_deps " $pre_post_dep"
-	done
-      fi
-      pre_post_deps=
-    fi
-
-    deplibs=
-    newdependency_libs=
-    newlib_search_path=
-    need_relink=no # whether we're linking any uninstalled libtool libraries
-    notinst_deplibs= # not-installed libtool libraries
-    notinst_path= # paths that contain not-installed libtool libraries
-
-    case $linkmode in
-    lib)
-	passes="conv dlpreopen link"
-	for file in $dlfiles $dlprefiles; do
-	  case $file in
-	  *.la) ;;
-	  *)
-	    func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
-	    ;;
-	  esac
-	done
-	;;
-    prog)
-	compile_deplibs=
-	finalize_deplibs=
-	alldeplibs=no
-	newdlfiles=
-	newdlprefiles=
-	passes="conv scan dlopen dlpreopen link"
-	;;
-    *)  passes="conv"
-	;;
-    esac
-
-    for pass in $passes; do
-      # The preopen pass in lib mode reverses $deplibs; put it back here
-      # so that -L comes before libs that need it for instance...
-      if test "$linkmode,$pass" = "lib,link"; then
-	## FIXME: Find the place where the list is rebuilt in the wrong
-	##        order, and fix it there properly
-        tmp_deplibs=
-	for deplib in $deplibs; do
-	  tmp_deplibs="$deplib $tmp_deplibs"
-	done
-	deplibs="$tmp_deplibs"
-      fi
-
-      if test "$linkmode,$pass" = "lib,link" ||
-	 test "$linkmode,$pass" = "prog,scan"; then
-	libs="$deplibs"
-	deplibs=
-      fi
-      if test "$linkmode" = prog; then
-	case $pass in
-	dlopen) libs="$dlfiles" ;;
-	dlpreopen) libs="$dlprefiles" ;;
-	link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
-	esac
-      fi
-      if test "$linkmode,$pass" = "lib,dlpreopen"; then
-	# Collect and forward deplibs of preopened libtool libs
-	for lib in $dlprefiles; do
-	  # Ignore non-libtool-libs
-	  dependency_libs=
-	  func_resolve_sysroot "$lib"
-	  case $lib in
-	  *.la)	func_source "$func_resolve_sysroot_result" ;;
-	  esac
-
-	  # Collect preopened libtool deplibs, except any this library
-	  # has declared as weak libs
-	  for deplib in $dependency_libs; do
-	    func_basename "$deplib"
-            deplib_base=$func_basename_result
-	    case " $weak_libs " in
-	    *" $deplib_base "*) ;;
-	    *) func_append deplibs " $deplib" ;;
-	    esac
-	  done
-	done
-	libs="$dlprefiles"
-      fi
-      if test "$pass" = dlopen; then
-	# Collect dlpreopened libraries
-	save_deplibs="$deplibs"
-	deplibs=
-      fi
-
-      for deplib in $libs; do
-	lib=
-	found=no
-	case $deplib in
-	-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
-        |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
-	  if test "$linkmode,$pass" = "prog,link"; then
-	    compile_deplibs="$deplib $compile_deplibs"
-	    finalize_deplibs="$deplib $finalize_deplibs"
-	  else
-	    func_append compiler_flags " $deplib"
-	    if test "$linkmode" = lib ; then
-		case "$new_inherited_linker_flags " in
-		    *" $deplib "*) ;;
-		    * ) func_append new_inherited_linker_flags " $deplib" ;;
-		esac
-	    fi
-	  fi
-	  continue
-	  ;;
-	-l*)
-	  if test "$linkmode" != lib && test "$linkmode" != prog; then
-	    func_warning "\`-l' is ignored for archives/objects"
-	    continue
-	  fi
-	  func_stripname '-l' '' "$deplib"
-	  name=$func_stripname_result
-	  if test "$linkmode" = lib; then
-	    searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
-	  else
-	    searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
-	  fi
-	  for searchdir in $searchdirs; do
-	    for search_ext in .la $std_shrext .so .a; do
-	      # Search the libtool library
-	      lib="$searchdir/lib${name}${search_ext}"
-	      if test -f "$lib"; then
-		if test "$search_ext" = ".la"; then
-		  found=yes
-		else
-		  found=no
-		fi
-		break 2
-	      fi
-	    done
-	  done
-	  if test "$found" != yes; then
-	    # deplib doesn't seem to be a libtool library
-	    if test "$linkmode,$pass" = "prog,link"; then
-	      compile_deplibs="$deplib $compile_deplibs"
-	      finalize_deplibs="$deplib $finalize_deplibs"
-	    else
-	      deplibs="$deplib $deplibs"
-	      test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
-	    fi
-	    continue
-	  else # deplib is a libtool library
-	    # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
-	    # We need to do some special things here, and not later.
-	    if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
-	      case " $predeps $postdeps " in
-	      *" $deplib "*)
-		if func_lalib_p "$lib"; then
-		  library_names=
-		  old_library=
-		  func_source "$lib"
-		  for l in $old_library $library_names; do
-		    ll="$l"
-		  done
-		  if test "X$ll" = "X$old_library" ; then # only static version available
-		    found=no
-		    func_dirname "$lib" "" "."
-		    ladir="$func_dirname_result"
-		    lib=$ladir/$old_library
-		    if test "$linkmode,$pass" = "prog,link"; then
-		      compile_deplibs="$deplib $compile_deplibs"
-		      finalize_deplibs="$deplib $finalize_deplibs"
-		    else
-		      deplibs="$deplib $deplibs"
-		      test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
-		    fi
-		    continue
-		  fi
-		fi
-		;;
-	      *) ;;
-	      esac
-	    fi
-	  fi
-	  ;; # -l
-	*.ltframework)
-	  if test "$linkmode,$pass" = "prog,link"; then
-	    compile_deplibs="$deplib $compile_deplibs"
-	    finalize_deplibs="$deplib $finalize_deplibs"
-	  else
-	    deplibs="$deplib $deplibs"
-	    if test "$linkmode" = lib ; then
-		case "$new_inherited_linker_flags " in
-		    *" $deplib "*) ;;
-		    * ) func_append new_inherited_linker_flags " $deplib" ;;
-		esac
-	    fi
-	  fi
-	  continue
-	  ;;
-	-L*)
-	  case $linkmode in
-	  lib)
-	    deplibs="$deplib $deplibs"
-	    test "$pass" = conv && continue
-	    newdependency_libs="$deplib $newdependency_libs"
-	    func_stripname '-L' '' "$deplib"
-	    func_resolve_sysroot "$func_stripname_result"
-	    func_append newlib_search_path " $func_resolve_sysroot_result"
-	    ;;
-	  prog)
-	    if test "$pass" = conv; then
-	      deplibs="$deplib $deplibs"
-	      continue
-	    fi
-	    if test "$pass" = scan; then
-	      deplibs="$deplib $deplibs"
-	    else
-	      compile_deplibs="$deplib $compile_deplibs"
-	      finalize_deplibs="$deplib $finalize_deplibs"
-	    fi
-	    func_stripname '-L' '' "$deplib"
-	    func_resolve_sysroot "$func_stripname_result"
-	    func_append newlib_search_path " $func_resolve_sysroot_result"
-	    ;;
-	  *)
-	    func_warning "\`-L' is ignored for archives/objects"
-	    ;;
-	  esac # linkmode
-	  continue
-	  ;; # -L
-	-R*)
-	  if test "$pass" = link; then
-	    func_stripname '-R' '' "$deplib"
-	    func_resolve_sysroot "$func_stripname_result"
-	    dir=$func_resolve_sysroot_result
-	    # Make sure the xrpath contains only unique directories.
-	    case "$xrpath " in
-	    *" $dir "*) ;;
-	    *) func_append xrpath " $dir" ;;
-	    esac
-	  fi
-	  deplibs="$deplib $deplibs"
-	  continue
-	  ;;
-	*.la)
-	  func_resolve_sysroot "$deplib"
-	  lib=$func_resolve_sysroot_result
-	  ;;
-	*.$libext)
-	  if test "$pass" = conv; then
-	    deplibs="$deplib $deplibs"
-	    continue
-	  fi
-	  case $linkmode in
-	  lib)
-	    # Linking convenience modules into shared libraries is allowed,
-	    # but linking other static libraries is non-portable.
-	    case " $dlpreconveniencelibs " in
-	    *" $deplib "*) ;;
-	    *)
-	      valid_a_lib=no
-	      case $deplibs_check_method in
-		match_pattern*)
-		  set dummy $deplibs_check_method; shift
-		  match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
-		  if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
-		    | $EGREP "$match_pattern_regex" > /dev/null; then
-		    valid_a_lib=yes
-		  fi
-		;;
-		pass_all)
-		  valid_a_lib=yes
-		;;
-	      esac
-	      if test "$valid_a_lib" != yes; then
-		echo
-		$ECHO "*** Warning: Trying to link with static lib archive $deplib."
-		echo "*** I have the capability to make that library automatically link in when"
-		echo "*** you link to this library.  But I can only do this if you have a"
-		echo "*** shared version of the library, which you do not appear to have"
-		echo "*** because the file extensions .$libext of this argument makes me believe"
-		echo "*** that it is just a static archive that I should not use here."
-	      else
-		echo
-		$ECHO "*** Warning: Linking the shared library $output against the"
-		$ECHO "*** static library $deplib is not portable!"
-		deplibs="$deplib $deplibs"
-	      fi
-	      ;;
-	    esac
-	    continue
-	    ;;
-	  prog)
-	    if test "$pass" != link; then
-	      deplibs="$deplib $deplibs"
-	    else
-	      compile_deplibs="$deplib $compile_deplibs"
-	      finalize_deplibs="$deplib $finalize_deplibs"
-	    fi
-	    continue
-	    ;;
-	  esac # linkmode
-	  ;; # *.$libext
-	*.lo | *.$objext)
-	  if test "$pass" = conv; then
-	    deplibs="$deplib $deplibs"
-	  elif test "$linkmode" = prog; then
-	    if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
-	      # If there is no dlopen support or we're linking statically,
-	      # we need to preload.
-	      func_append newdlprefiles " $deplib"
-	      compile_deplibs="$deplib $compile_deplibs"
-	      finalize_deplibs="$deplib $finalize_deplibs"
-	    else
-	      func_append newdlfiles " $deplib"
-	    fi
-	  fi
-	  continue
-	  ;;
-	%DEPLIBS%)
-	  alldeplibs=yes
-	  continue
-	  ;;
-	esac # case $deplib
-
-	if test "$found" = yes || test -f "$lib"; then :
-	else
-	  func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
-	fi
-
-	# Check to see that this really is a libtool archive.
-	func_lalib_unsafe_p "$lib" \
-	  || func_fatal_error "\`$lib' is not a valid libtool archive"
-
-	func_dirname "$lib" "" "."
-	ladir="$func_dirname_result"
-
-	dlname=
-	dlopen=
-	dlpreopen=
-	libdir=
-	library_names=
-	old_library=
-	inherited_linker_flags=
-	# If the library was installed with an old release of libtool,
-	# it will not redefine variables installed, or shouldnotlink
-	installed=yes
-	shouldnotlink=no
-	avoidtemprpath=
-
-
-	# Read the .la file
-	func_source "$lib"
-
-	# Convert "-framework foo" to "foo.ltframework"
-	if test -n "$inherited_linker_flags"; then
-	  tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
-	  for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
-	    case " $new_inherited_linker_flags " in
-	      *" $tmp_inherited_linker_flag "*) ;;
-	      *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
-	    esac
-	  done
-	fi
-	dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
-	if test "$linkmode,$pass" = "lib,link" ||
-	   test "$linkmode,$pass" = "prog,scan" ||
-	   { test "$linkmode" != prog && test "$linkmode" != lib; }; then
-	  test -n "$dlopen" && func_append dlfiles " $dlopen"
-	  test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
-	fi
-
-	if test "$pass" = conv; then
-	  # Only check for convenience libraries
-	  deplibs="$lib $deplibs"
-	  if test -z "$libdir"; then
-	    if test -z "$old_library"; then
-	      func_fatal_error "cannot find name of link library for \`$lib'"
-	    fi
-	    # It is a libtool convenience library, so add in its objects.
-	    func_append convenience " $ladir/$objdir/$old_library"
-	    func_append old_convenience " $ladir/$objdir/$old_library"
-	  elif test "$linkmode" != prog && test "$linkmode" != lib; then
-	    func_fatal_error "\`$lib' is not a convenience library"
-	  fi
-	  tmp_libs=
-	  for deplib in $dependency_libs; do
-	    deplibs="$deplib $deplibs"
-	    if $opt_preserve_dup_deps ; then
-	      case "$tmp_libs " in
-	      *" $deplib "*) func_append specialdeplibs " $deplib" ;;
-	      esac
-	    fi
-	    func_append tmp_libs " $deplib"
-	  done
-	  continue
-	fi # $pass = conv
-
-
-	# Get the name of the library we link against.
-	linklib=
-	if test -n "$old_library" &&
-	   { test "$prefer_static_libs" = yes ||
-	     test "$prefer_static_libs,$installed" = "built,no"; }; then
-	  linklib=$old_library
-	else
-	  for l in $old_library $library_names; do
-	    linklib="$l"
-	  done
-	fi
-	if test -z "$linklib"; then
-	  func_fatal_error "cannot find name of link library for \`$lib'"
-	fi
-
-	# This library was specified with -dlopen.
-	if test "$pass" = dlopen; then
-	  if test -z "$libdir"; then
-	    func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
-	  fi
-	  if test -z "$dlname" ||
-	     test "$dlopen_support" != yes ||
-	     test "$build_libtool_libs" = no; then
-	    # If there is no dlname, no dlopen support or we're linking
-	    # statically, we need to preload.  We also need to preload any
-	    # dependent libraries so libltdl's deplib preloader doesn't
-	    # bomb out in the load deplibs phase.
-	    func_append dlprefiles " $lib $dependency_libs"
-	  else
-	    func_append newdlfiles " $lib"
-	  fi
-	  continue
-	fi # $pass = dlopen
-
-	# We need an absolute path.
-	case $ladir in
-	[\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
-	*)
-	  abs_ladir=`cd "$ladir" && pwd`
-	  if test -z "$abs_ladir"; then
-	    func_warning "cannot determine absolute directory name of \`$ladir'"
-	    func_warning "passing it literally to the linker, although it might fail"
-	    abs_ladir="$ladir"
-	  fi
-	  ;;
-	esac
-	func_basename "$lib"
-	laname="$func_basename_result"
-
-	# Find the relevant object directory and library name.
-	if test "X$installed" = Xyes; then
-	  if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
-	    func_warning "library \`$lib' was moved."
-	    dir="$ladir"
-	    absdir="$abs_ladir"
-	    libdir="$abs_ladir"
-	  else
-	    dir="$lt_sysroot$libdir"
-	    absdir="$lt_sysroot$libdir"
-	  fi
-	  test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
-	else
-	  if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
-	    dir="$ladir"
-	    absdir="$abs_ladir"
-	    # Remove this search path later
-	    func_append notinst_path " $abs_ladir"
-	  else
-	    dir="$ladir/$objdir"
-	    absdir="$abs_ladir/$objdir"
-	    # Remove this search path later
-	    func_append notinst_path " $abs_ladir"
-	  fi
-	fi # $installed = yes
-	func_stripname 'lib' '.la' "$laname"
-	name=$func_stripname_result
-
-	# This library was specified with -dlpreopen.
-	if test "$pass" = dlpreopen; then
-	  if test -z "$libdir" && test "$linkmode" = prog; then
-	    func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
-	  fi
-	  case "$host" in
-	    # special handling for platforms with PE-DLLs.
-	    *cygwin* | *mingw* | *cegcc* )
-	      # Linker will automatically link against shared library if both
-	      # static and shared are present.  Therefore, ensure we extract
-	      # symbols from the import library if a shared library is present
-	      # (otherwise, the dlopen module name will be incorrect).  We do
-	      # this by putting the import library name into $newdlprefiles.
-	      # We recover the dlopen module name by 'saving' the la file
-	      # name in a special purpose variable, and (later) extracting the
-	      # dlname from the la file.
-	      if test -n "$dlname"; then
-	        func_tr_sh "$dir/$linklib"
-	        eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
-	        func_append newdlprefiles " $dir/$linklib"
-	      else
-	        func_append newdlprefiles " $dir/$old_library"
-	        # Keep a list of preopened convenience libraries to check
-	        # that they are being used correctly in the link pass.
-	        test -z "$libdir" && \
-	          func_append dlpreconveniencelibs " $dir/$old_library"
-	      fi
-	    ;;
-	    * )
-	      # Prefer using a static library (so that no silly _DYNAMIC symbols
-	      # are required to link).
-	      if test -n "$old_library"; then
-	        func_append newdlprefiles " $dir/$old_library"
-	        # Keep a list of preopened convenience libraries to check
-	        # that they are being used correctly in the link pass.
-	        test -z "$libdir" && \
-	          func_append dlpreconveniencelibs " $dir/$old_library"
-	      # Otherwise, use the dlname, so that lt_dlopen finds it.
-	      elif test -n "$dlname"; then
-	        func_append newdlprefiles " $dir/$dlname"
-	      else
-	        func_append newdlprefiles " $dir/$linklib"
-	      fi
-	    ;;
-	  esac
-	fi # $pass = dlpreopen
-
-	if test -z "$libdir"; then
-	  # Link the convenience library
-	  if test "$linkmode" = lib; then
-	    deplibs="$dir/$old_library $deplibs"
-	  elif test "$linkmode,$pass" = "prog,link"; then
-	    compile_deplibs="$dir/$old_library $compile_deplibs"
-	    finalize_deplibs="$dir/$old_library $finalize_deplibs"
-	  else
-	    deplibs="$lib $deplibs" # used for prog,scan pass
-	  fi
-	  continue
-	fi
-
-
-	if test "$linkmode" = prog && test "$pass" != link; then
-	  func_append newlib_search_path " $ladir"
-	  deplibs="$lib $deplibs"
-
-	  linkalldeplibs=no
-	  if test "$link_all_deplibs" != no || test -z "$library_names" ||
-	     test "$build_libtool_libs" = no; then
-	    linkalldeplibs=yes
-	  fi
-
-	  tmp_libs=
-	  for deplib in $dependency_libs; do
-	    case $deplib in
-	    -L*) func_stripname '-L' '' "$deplib"
-	         func_resolve_sysroot "$func_stripname_result"
-	         func_append newlib_search_path " $func_resolve_sysroot_result"
-		 ;;
-	    esac
-	    # Need to link against all dependency_libs?
-	    if test "$linkalldeplibs" = yes; then
-	      deplibs="$deplib $deplibs"
-	    else
-	      # Need to hardcode shared library paths
-	      # or/and link against static libraries
-	      newdependency_libs="$deplib $newdependency_libs"
-	    fi
-	    if $opt_preserve_dup_deps ; then
-	      case "$tmp_libs " in
-	      *" $deplib "*) func_append specialdeplibs " $deplib" ;;
-	      esac
-	    fi
-	    func_append tmp_libs " $deplib"
-	  done # for deplib
-	  continue
-	fi # $linkmode = prog...
-
-	if test "$linkmode,$pass" = "prog,link"; then
-	  if test -n "$library_names" &&
-	     { { test "$prefer_static_libs" = no ||
-	         test "$prefer_static_libs,$installed" = "built,yes"; } ||
-	       test -z "$old_library"; }; then
-	    # We need to hardcode the library path
-	    if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
-	      # Make sure the rpath contains only unique directories.
-	      case "$temp_rpath:" in
-	      *"$absdir:"*) ;;
-	      *) func_append temp_rpath "$absdir:" ;;
-	      esac
-	    fi
-
-	    # Hardcode the library path.
-	    # Skip directories that are in the system default run-time
-	    # search path.
-	    case " $sys_lib_dlsearch_path " in
-	    *" $absdir "*) ;;
-	    *)
-	      case "$compile_rpath " in
-	      *" $absdir "*) ;;
-	      *) func_append compile_rpath " $absdir" ;;
-	      esac
-	      ;;
-	    esac
-	    case " $sys_lib_dlsearch_path " in
-	    *" $libdir "*) ;;
-	    *)
-	      case "$finalize_rpath " in
-	      *" $libdir "*) ;;
-	      *) func_append finalize_rpath " $libdir" ;;
-	      esac
-	      ;;
-	    esac
-	  fi # $linkmode,$pass = prog,link...
-
-	  if test "$alldeplibs" = yes &&
-	     { test "$deplibs_check_method" = pass_all ||
-	       { test "$build_libtool_libs" = yes &&
-		 test -n "$library_names"; }; }; then
-	    # We only need to search for static libraries
-	    continue
-	  fi
-	fi
-
-	link_static=no # Whether the deplib will be linked statically
-	use_static_libs=$prefer_static_libs
-	if test "$use_static_libs" = built && test "$installed" = yes; then
-	  use_static_libs=no
-	fi
-	if test -n "$library_names" &&
-	   { test "$use_static_libs" = no || test -z "$old_library"; }; then
-	  case $host in
-	  *cygwin* | *mingw* | *cegcc*)
-	      # No point in relinking DLLs because paths are not encoded
-	      func_append notinst_deplibs " $lib"
-	      need_relink=no
-	    ;;
-	  *)
-	    if test "$installed" = no; then
-	      func_append notinst_deplibs " $lib"
-	      need_relink=yes
-	    fi
-	    ;;
-	  esac
-	  # This is a shared library
-
-	  # Warn about portability, can't link against -module's on some
-	  # systems (darwin).  Don't bleat about dlopened modules though!
-	  dlopenmodule=""
-	  for dlpremoduletest in $dlprefiles; do
-	    if test "X$dlpremoduletest" = "X$lib"; then
-	      dlopenmodule="$dlpremoduletest"
-	      break
-	    fi
-	  done
-	  if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
-	    echo
-	    if test "$linkmode" = prog; then
-	      $ECHO "*** Warning: Linking the executable $output against the loadable module"
-	    else
-	      $ECHO "*** Warning: Linking the shared library $output against the loadable module"
-	    fi
-	    $ECHO "*** $linklib is not portable!"
-	  fi
-	  if test "$linkmode" = lib &&
-	     test "$hardcode_into_libs" = yes; then
-	    # Hardcode the library path.
-	    # Skip directories that are in the system default run-time
-	    # search path.
-	    case " $sys_lib_dlsearch_path " in
-	    *" $absdir "*) ;;
-	    *)
-	      case "$compile_rpath " in
-	      *" $absdir "*) ;;
-	      *) func_append compile_rpath " $absdir" ;;
-	      esac
-	      ;;
-	    esac
-	    case " $sys_lib_dlsearch_path " in
-	    *" $libdir "*) ;;
-	    *)
-	      case "$finalize_rpath " in
-	      *" $libdir "*) ;;
-	      *) func_append finalize_rpath " $libdir" ;;
-	      esac
-	      ;;
-	    esac
-	  fi
-
-	  if test -n "$old_archive_from_expsyms_cmds"; then
-	    # figure out the soname
-	    set dummy $library_names
-	    shift
-	    realname="$1"
-	    shift
-	    libname=`eval "\\$ECHO \"$libname_spec\""`
-	    # use dlname if we got it. it's perfectly good, no?
-	    if test -n "$dlname"; then
-	      soname="$dlname"
-	    elif test -n "$soname_spec"; then
-	      # bleh windows
-	      case $host in
-	      *cygwin* | mingw* | *cegcc*)
-	        func_arith $current - $age
-		major=$func_arith_result
-		versuffix="-$major"
-		;;
-	      esac
-	      eval soname=\"$soname_spec\"
-	    else
-	      soname="$realname"
-	    fi
-
-	    # Make a new name for the extract_expsyms_cmds to use
-	    soroot="$soname"
-	    func_basename "$soroot"
-	    soname="$func_basename_result"
-	    func_stripname 'lib' '.dll' "$soname"
-	    newlib=libimp-$func_stripname_result.a
-
-	    # If the library has no export list, then create one now
-	    if test -f "$output_objdir/$soname-def"; then :
-	    else
-	      func_verbose "extracting exported symbol list from \`$soname'"
-	      func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
-	    fi
-
-	    # Create $newlib
-	    if test -f "$output_objdir/$newlib"; then :; else
-	      func_verbose "generating import library for \`$soname'"
-	      func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
-	    fi
-	    # make sure the library variables are pointing to the new library
-	    dir=$output_objdir
-	    linklib=$newlib
-	  fi # test -n "$old_archive_from_expsyms_cmds"
-
-	  if test "$linkmode" = prog || test "$opt_mode" != relink; then
-	    add_shlibpath=
-	    add_dir=
-	    add=
-	    lib_linked=yes
-	    case $hardcode_action in
-	    immediate | unsupported)
-	      if test "$hardcode_direct" = no; then
-		add="$dir/$linklib"
-		case $host in
-		  *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
-		  *-*-sysv4*uw2*) add_dir="-L$dir" ;;
-		  *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
-		    *-*-unixware7*) add_dir="-L$dir" ;;
-		  *-*-darwin* )
-		    # if the lib is a (non-dlopened) module then we can not
-		    # link against it, someone is ignoring the earlier warnings
-		    if /usr/bin/file -L $add 2> /dev/null |
-			 $GREP ": [^:]* bundle" >/dev/null ; then
-		      if test "X$dlopenmodule" != "X$lib"; then
-			$ECHO "*** Warning: lib $linklib is a module, not a shared library"
-			if test -z "$old_library" ; then
-			  echo
-			  echo "*** And there doesn't seem to be a static archive available"
-			  echo "*** The link will probably fail, sorry"
-			else
-			  add="$dir/$old_library"
-			fi
-		      elif test -n "$old_library"; then
-			add="$dir/$old_library"
-		      fi
-		    fi
-		esac
-	      elif test "$hardcode_minus_L" = no; then
-		case $host in
-		*-*-sunos*) add_shlibpath="$dir" ;;
-		esac
-		add_dir="-L$dir"
-		add="-l$name"
-	      elif test "$hardcode_shlibpath_var" = no; then
-		add_shlibpath="$dir"
-		add="-l$name"
-	      else
-		lib_linked=no
-	      fi
-	      ;;
-	    relink)
-	      if test "$hardcode_direct" = yes &&
-	         test "$hardcode_direct_absolute" = no; then
-		add="$dir/$linklib"
-	      elif test "$hardcode_minus_L" = yes; then
-		add_dir="-L$absdir"
-		# Try looking first in the location we're being installed to.
-		if test -n "$inst_prefix_dir"; then
-		  case $libdir in
-		    [\\/]*)
-		      func_append add_dir " -L$inst_prefix_dir$libdir"
-		      ;;
-		  esac
-		fi
-		add="-l$name"
-	      elif test "$hardcode_shlibpath_var" = yes; then
-		add_shlibpath="$dir"
-		add="-l$name"
-	      else
-		lib_linked=no
-	      fi
-	      ;;
-	    *) lib_linked=no ;;
-	    esac
-
-	    if test "$lib_linked" != yes; then
-	      func_fatal_configuration "unsupported hardcode properties"
-	    fi
-
-	    if test -n "$add_shlibpath"; then
-	      case :$compile_shlibpath: in
-	      *":$add_shlibpath:"*) ;;
-	      *) func_append compile_shlibpath "$add_shlibpath:" ;;
-	      esac
-	    fi
-	    if test "$linkmode" = prog; then
-	      test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
-	      test -n "$add" && compile_deplibs="$add $compile_deplibs"
-	    else
-	      test -n "$add_dir" && deplibs="$add_dir $deplibs"
-	      test -n "$add" && deplibs="$add $deplibs"
-	      if test "$hardcode_direct" != yes &&
-		 test "$hardcode_minus_L" != yes &&
-		 test "$hardcode_shlibpath_var" = yes; then
-		case :$finalize_shlibpath: in
-		*":$libdir:"*) ;;
-		*) func_append finalize_shlibpath "$libdir:" ;;
-		esac
-	      fi
-	    fi
-	  fi
-
-	  if test "$linkmode" = prog || test "$opt_mode" = relink; then
-	    add_shlibpath=
-	    add_dir=
-	    add=
-	    # Finalize command for both is simple: just hardcode it.
-	    if test "$hardcode_direct" = yes &&
-	       test "$hardcode_direct_absolute" = no; then
-	      add="$libdir/$linklib"
-	    elif test "$hardcode_minus_L" = yes; then
-	      add_dir="-L$libdir"
-	      add="-l$name"
-	    elif test "$hardcode_shlibpath_var" = yes; then
-	      case :$finalize_shlibpath: in
-	      *":$libdir:"*) ;;
-	      *) func_append finalize_shlibpath "$libdir:" ;;
-	      esac
-	      add="-l$name"
-	    elif test "$hardcode_automatic" = yes; then
-	      if test -n "$inst_prefix_dir" &&
-		 test -f "$inst_prefix_dir$libdir/$linklib" ; then
-		add="$inst_prefix_dir$libdir/$linklib"
-	      else
-		add="$libdir/$linklib"
-	      fi
-	    else
-	      # We cannot seem to hardcode it, guess we'll fake it.
-	      add_dir="-L$libdir"
-	      # Try looking first in the location we're being installed to.
-	      if test -n "$inst_prefix_dir"; then
-		case $libdir in
-		  [\\/]*)
-		    func_append add_dir " -L$inst_prefix_dir$libdir"
-		    ;;
-		esac
-	      fi
-	      add="-l$name"
-	    fi
-
-	    if test "$linkmode" = prog; then
-	      test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
-	      test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
-	    else
-	      test -n "$add_dir" && deplibs="$add_dir $deplibs"
-	      test -n "$add" && deplibs="$add $deplibs"
-	    fi
-	  fi
-	elif test "$linkmode" = prog; then
-	  # Here we assume that one of hardcode_direct or hardcode_minus_L
-	  # is not unsupported.  This is valid on all known static and
-	  # shared platforms.
-	  if test "$hardcode_direct" != unsupported; then
-	    test -n "$old_library" && linklib="$old_library"
-	    compile_deplibs="$dir/$linklib $compile_deplibs"
-	    finalize_deplibs="$dir/$linklib $finalize_deplibs"
-	  else
-	    compile_deplibs="-l$name -L$dir $compile_deplibs"
-	    finalize_deplibs="-l$name -L$dir $finalize_deplibs"
-	  fi
-	elif test "$build_libtool_libs" = yes; then
-	  # Not a shared library
-	  if test "$deplibs_check_method" != pass_all; then
-	    # We're trying link a shared library against a static one
-	    # but the system doesn't support it.
-
-	    # Just print a warning and add the library to dependency_libs so
-	    # that the program can be linked against the static library.
-	    echo
-	    $ECHO "*** Warning: This system can not link to static lib archive $lib."
-	    echo "*** I have the capability to make that library automatically link in when"
-	    echo "*** you link to this library.  But I can only do this if you have a"
-	    echo "*** shared version of the library, which you do not appear to have."
-	    if test "$module" = yes; then
-	      echo "*** But as you try to build a module library, libtool will still create "
-	      echo "*** a static module, that should work as long as the dlopening application"
-	      echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
-	      if test -z "$global_symbol_pipe"; then
-		echo
-		echo "*** However, this would only work if libtool was able to extract symbol"
-		echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
-		echo "*** not find such a program.  So, this module is probably useless."
-		echo "*** \`nm' from GNU binutils and a full rebuild may help."
-	      fi
-	      if test "$build_old_libs" = no; then
-		build_libtool_libs=module
-		build_old_libs=yes
-	      else
-		build_libtool_libs=no
-	      fi
-	    fi
-	  else
-	    deplibs="$dir/$old_library $deplibs"
-	    link_static=yes
-	  fi
-	fi # link shared/static library?
-
-	if test "$linkmode" = lib; then
-	  if test -n "$dependency_libs" &&
-	     { test "$hardcode_into_libs" != yes ||
-	       test "$build_old_libs" = yes ||
-	       test "$link_static" = yes; }; then
-	    # Extract -R from dependency_libs
-	    temp_deplibs=
-	    for libdir in $dependency_libs; do
-	      case $libdir in
-	      -R*) func_stripname '-R' '' "$libdir"
-	           temp_xrpath=$func_stripname_result
-		   case " $xrpath " in
-		   *" $temp_xrpath "*) ;;
-		   *) func_append xrpath " $temp_xrpath";;
-		   esac;;
-	      *) func_append temp_deplibs " $libdir";;
-	      esac
-	    done
-	    dependency_libs="$temp_deplibs"
-	  fi
-
-	  func_append newlib_search_path " $absdir"
-	  # Link against this library
-	  test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
-	  # ... and its dependency_libs
-	  tmp_libs=
-	  for deplib in $dependency_libs; do
-	    newdependency_libs="$deplib $newdependency_libs"
-	    case $deplib in
-              -L*) func_stripname '-L' '' "$deplib"
-                   func_resolve_sysroot "$func_stripname_result";;
-              *) func_resolve_sysroot "$deplib" ;;
-            esac
-	    if $opt_preserve_dup_deps ; then
-	      case "$tmp_libs " in
-	      *" $func_resolve_sysroot_result "*)
-                func_append specialdeplibs " $func_resolve_sysroot_result" ;;
-	      esac
-	    fi
-	    func_append tmp_libs " $func_resolve_sysroot_result"
-	  done
-
-	  if test "$link_all_deplibs" != no; then
-	    # Add the search paths of all dependency libraries
-	    for deplib in $dependency_libs; do
-	      path=
-	      case $deplib in
-	      -L*) path="$deplib" ;;
-	      *.la)
-	        func_resolve_sysroot "$deplib"
-	        deplib=$func_resolve_sysroot_result
-	        func_dirname "$deplib" "" "."
-		dir=$func_dirname_result
-		# We need an absolute path.
-		case $dir in
-		[\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
-		*)
-		  absdir=`cd "$dir" && pwd`
-		  if test -z "$absdir"; then
-		    func_warning "cannot determine absolute directory name of \`$dir'"
-		    absdir="$dir"
-		  fi
-		  ;;
-		esac
-		if $GREP "^installed=no" $deplib > /dev/null; then
-		case $host in
-		*-*-darwin*)
-		  depdepl=
-		  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
-		  if test -n "$deplibrary_names" ; then
-		    for tmp in $deplibrary_names ; do
-		      depdepl=$tmp
-		    done
-		    if test -f "$absdir/$objdir/$depdepl" ; then
-		      depdepl="$absdir/$objdir/$depdepl"
-		      darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
-                      if test -z "$darwin_install_name"; then
-                          darwin_install_name=`${OTOOL64} -L $depdepl  | awk '{if (NR == 2) {print $1;exit}}'`
-                      fi
-		      func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
-		      func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
-		      path=
-		    fi
-		  fi
-		  ;;
-		*)
-		  path="-L$absdir/$objdir"
-		  ;;
-		esac
-		else
-		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
-		  test -z "$libdir" && \
-		    func_fatal_error "\`$deplib' is not a valid libtool archive"
-		  test "$absdir" != "$libdir" && \
-		    func_warning "\`$deplib' seems to be moved"
-
-		  path="-L$absdir"
-		fi
-		;;
-	      esac
-	      case " $deplibs " in
-	      *" $path "*) ;;
-	      *) deplibs="$path $deplibs" ;;
-	      esac
-	    done
-	  fi # link_all_deplibs != no
-	fi # linkmode = lib
-      done # for deplib in $libs
-      if test "$pass" = link; then
-	if test "$linkmode" = "prog"; then
-	  compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
-	  finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
-	else
-	  compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
-	fi
-      fi
-      dependency_libs="$newdependency_libs"
-      if test "$pass" = dlpreopen; then
-	# Link the dlpreopened libraries before other libraries
-	for deplib in $save_deplibs; do
-	  deplibs="$deplib $deplibs"
-	done
-      fi
-      if test "$pass" != dlopen; then
-	if test "$pass" != conv; then
-	  # Make sure lib_search_path contains only unique directories.
-	  lib_search_path=
-	  for dir in $newlib_search_path; do
-	    case "$lib_search_path " in
-	    *" $dir "*) ;;
-	    *) func_append lib_search_path " $dir" ;;
-	    esac
-	  done
-	  newlib_search_path=
-	fi
-
-	if test "$linkmode,$pass" != "prog,link"; then
-	  vars="deplibs"
-	else
-	  vars="compile_deplibs finalize_deplibs"
-	fi
-	for var in $vars dependency_libs; do
-	  # Add libraries to $var in reverse order
-	  eval tmp_libs=\"\$$var\"
-	  new_libs=
-	  for deplib in $tmp_libs; do
-	    # FIXME: Pedantically, this is the right thing to do, so
-	    #        that some nasty dependency loop isn't accidentally
-	    #        broken:
-	    #new_libs="$deplib $new_libs"
-	    # Pragmatically, this seems to cause very few problems in
-	    # practice:
-	    case $deplib in
-	    -L*) new_libs="$deplib $new_libs" ;;
-	    -R*) ;;
-	    *)
-	      # And here is the reason: when a library appears more
-	      # than once as an explicit dependence of a library, or
-	      # is implicitly linked in more than once by the
-	      # compiler, it is considered special, and multiple
-	      # occurrences thereof are not removed.  Compare this
-	      # with having the same library being listed as a
-	      # dependency of multiple other libraries: in this case,
-	      # we know (pedantically, we assume) the library does not
-	      # need to be listed more than once, so we keep only the
-	      # last copy.  This is not always right, but it is rare
-	      # enough that we require users that really mean to play
-	      # such unportable linking tricks to link the library
-	      # using -Wl,-lname, so that libtool does not consider it
-	      # for duplicate removal.
-	      case " $specialdeplibs " in
-	      *" $deplib "*) new_libs="$deplib $new_libs" ;;
-	      *)
-		case " $new_libs " in
-		*" $deplib "*) ;;
-		*) new_libs="$deplib $new_libs" ;;
-		esac
-		;;
-	      esac
-	      ;;
-	    esac
-	  done
-	  tmp_libs=
-	  for deplib in $new_libs; do
-	    case $deplib in
-	    -L*)
-	      case " $tmp_libs " in
-	      *" $deplib "*) ;;
-	      *) func_append tmp_libs " $deplib" ;;
-	      esac
-	      ;;
-	    *) func_append tmp_libs " $deplib" ;;
-	    esac
-	  done
-	  eval $var=\"$tmp_libs\"
-	done # for var
-      fi
-      # Last step: remove runtime libs from dependency_libs
-      # (they stay in deplibs)
-      tmp_libs=
-      for i in $dependency_libs ; do
-	case " $predeps $postdeps $compiler_lib_search_path " in
-	*" $i "*)
-	  i=""
-	  ;;
-	esac
-	if test -n "$i" ; then
-	  func_append tmp_libs " $i"
-	fi
-      done
-      dependency_libs=$tmp_libs
-    done # for pass
-    if test "$linkmode" = prog; then
-      dlfiles="$newdlfiles"
-    fi
-    if test "$linkmode" = prog || test "$linkmode" = lib; then
-      dlprefiles="$newdlprefiles"
-    fi
-
-    case $linkmode in
-    oldlib)
-      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
-	func_warning "\`-dlopen' is ignored for archives"
-      fi
-
-      case " $deplibs" in
-      *\ -l* | *\ -L*)
-	func_warning "\`-l' and \`-L' are ignored for archives" ;;
-      esac
-
-      test -n "$rpath" && \
-	func_warning "\`-rpath' is ignored for archives"
-
-      test -n "$xrpath" && \
-	func_warning "\`-R' is ignored for archives"
-
-      test -n "$vinfo" && \
-	func_warning "\`-version-info/-version-number' is ignored for archives"
-
-      test -n "$release" && \
-	func_warning "\`-release' is ignored for archives"
-
-      test -n "$export_symbols$export_symbols_regex" && \
-	func_warning "\`-export-symbols' is ignored for archives"
-
-      # Now set the variables for building old libraries.
-      build_libtool_libs=no
-      oldlibs="$output"
-      func_append objs "$old_deplibs"
-      ;;
-
-    lib)
-      # Make sure we only generate libraries of the form `libNAME.la'.
-      case $outputname in
-      lib*)
-	func_stripname 'lib' '.la' "$outputname"
-	name=$func_stripname_result
-	eval shared_ext=\"$shrext_cmds\"
-	eval libname=\"$libname_spec\"
-	;;
-      *)
-	test "$module" = no && \
-	  func_fatal_help "libtool library \`$output' must begin with \`lib'"
-
-	if test "$need_lib_prefix" != no; then
-	  # Add the "lib" prefix for modules if required
-	  func_stripname '' '.la' "$outputname"
-	  name=$func_stripname_result
-	  eval shared_ext=\"$shrext_cmds\"
-	  eval libname=\"$libname_spec\"
-	else
-	  func_stripname '' '.la' "$outputname"
-	  libname=$func_stripname_result
-	fi
-	;;
-      esac
-
-      if test -n "$objs"; then
-	if test "$deplibs_check_method" != pass_all; then
-	  func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
-	else
-	  echo
-	  $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
-	  $ECHO "*** objects $objs is not portable!"
-	  func_append libobjs " $objs"
-	fi
-      fi
-
-      test "$dlself" != no && \
-	func_warning "\`-dlopen self' is ignored for libtool libraries"
-
-      set dummy $rpath
-      shift
-      test "$#" -gt 1 && \
-	func_warning "ignoring multiple \`-rpath's for a libtool library"
-
-      install_libdir="$1"
-
-      oldlibs=
-      if test -z "$rpath"; then
-	if test "$build_libtool_libs" = yes; then
-	  # Building a libtool convenience library.
-	  # Some compilers have problems with a `.al' extension so
-	  # convenience libraries should have the same extension an
-	  # archive normally would.
-	  oldlibs="$output_objdir/$libname.$libext $oldlibs"
-	  build_libtool_libs=convenience
-	  build_old_libs=yes
-	fi
-
-	test -n "$vinfo" && \
-	  func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
-
-	test -n "$release" && \
-	  func_warning "\`-release' is ignored for convenience libraries"
-      else
-
-	# Parse the version information argument.
-	save_ifs="$IFS"; IFS=':'
-	set dummy $vinfo 0 0 0
-	shift
-	IFS="$save_ifs"
-
-	test -n "$7" && \
-	  func_fatal_help "too many parameters to \`-version-info'"
-
-	# convert absolute version numbers to libtool ages
-	# this retains compatibility with .la files and attempts
-	# to make the code below a bit more comprehensible
-
-	case $vinfo_number in
-	yes)
-	  number_major="$1"
-	  number_minor="$2"
-	  number_revision="$3"
-	  #
-	  # There are really only two kinds -- those that
-	  # use the current revision as the major version
-	  # and those that subtract age and use age as
-	  # a minor version.  But, then there is irix
-	  # which has an extra 1 added just for fun
-	  #
-	  case $version_type in
-	  # correct linux to gnu/linux during the next big refactor
-	  darwin|linux|osf|windows|none)
-	    func_arith $number_major + $number_minor
-	    current=$func_arith_result
-	    age="$number_minor"
-	    revision="$number_revision"
-	    ;;
-	  freebsd-aout|freebsd-elf|qnx|sunos)
-	    current="$number_major"
-	    revision="$number_minor"
-	    age="0"
-	    ;;
-	  irix|nonstopux)
-	    func_arith $number_major + $number_minor
-	    current=$func_arith_result
-	    age="$number_minor"
-	    revision="$number_minor"
-	    lt_irix_increment=no
-	    ;;
-	  esac
-	  ;;
-	no)
-	  current="$1"
-	  revision="$2"
-	  age="$3"
-	  ;;
-	esac
-
-	# Check that each of the things are valid numbers.
-	case $current in
-	0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
-	*)
-	  func_error "CURRENT \`$current' must be a nonnegative integer"
-	  func_fatal_error "\`$vinfo' is not valid version information"
-	  ;;
-	esac
-
-	case $revision in
-	0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
-	*)
-	  func_error "REVISION \`$revision' must be a nonnegative integer"
-	  func_fatal_error "\`$vinfo' is not valid version information"
-	  ;;
-	esac
-
-	case $age in
-	0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
-	*)
-	  func_error "AGE \`$age' must be a nonnegative integer"
-	  func_fatal_error "\`$vinfo' is not valid version information"
-	  ;;
-	esac
-
-	if test "$age" -gt "$current"; then
-	  func_error "AGE \`$age' is greater than the current interface number \`$current'"
-	  func_fatal_error "\`$vinfo' is not valid version information"
-	fi
-
-	# Calculate the version variables.
-	major=
-	versuffix=
-	verstring=
-	case $version_type in
-	none) ;;
-
-	darwin)
-	  # Like Linux, but with the current version available in
-	  # verstring for coding it into the library header
-	  func_arith $current - $age
-	  major=.$func_arith_result
-	  versuffix="$major.$age.$revision"
-	  # Darwin ld doesn't like 0 for these options...
-	  func_arith $current + 1
-	  minor_current=$func_arith_result
-	  xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
-	  verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
-	  ;;
-
-	freebsd-aout)
-	  major=".$current"
-	  versuffix=".$current.$revision";
-	  ;;
-
-	freebsd-elf)
-	  major=".$current"
-	  versuffix=".$current"
-	  ;;
-
-	irix | nonstopux)
-	  if test "X$lt_irix_increment" = "Xno"; then
-	    func_arith $current - $age
-	  else
-	    func_arith $current - $age + 1
-	  fi
-	  major=$func_arith_result
-
-	  case $version_type in
-	    nonstopux) verstring_prefix=nonstopux ;;
-	    *)         verstring_prefix=sgi ;;
-	  esac
-	  verstring="$verstring_prefix$major.$revision"
-
-	  # Add in all the interfaces that we are compatible with.
-	  loop=$revision
-	  while test "$loop" -ne 0; do
-	    func_arith $revision - $loop
-	    iface=$func_arith_result
-	    func_arith $loop - 1
-	    loop=$func_arith_result
-	    verstring="$verstring_prefix$major.$iface:$verstring"
-	  done
-
-	  # Before this point, $major must not contain `.'.
-	  major=.$major
-	  versuffix="$major.$revision"
-	  ;;
-
-	linux) # correct to gnu/linux during the next big refactor
-	  func_arith $current - $age
-	  major=.$func_arith_result
-	  versuffix="$major.$age.$revision"
-	  ;;
-
-	osf)
-	  func_arith $current - $age
-	  major=.$func_arith_result
-	  versuffix=".$current.$age.$revision"
-	  verstring="$current.$age.$revision"
-
-	  # Add in all the interfaces that we are compatible with.
-	  loop=$age
-	  while test "$loop" -ne 0; do
-	    func_arith $current - $loop
-	    iface=$func_arith_result
-	    func_arith $loop - 1
-	    loop=$func_arith_result
-	    verstring="$verstring:${iface}.0"
-	  done
-
-	  # Make executables depend on our current version.
-	  func_append verstring ":${current}.0"
-	  ;;
-
-	qnx)
-	  major=".$current"
-	  versuffix=".$current"
-	  ;;
-
-	sunos)
-	  major=".$current"
-	  versuffix=".$current.$revision"
-	  ;;
-
-	windows)
-	  # Use '-' rather than '.', since we only want one
-	  # extension on DOS 8.3 filesystems.
-	  func_arith $current - $age
-	  major=$func_arith_result
-	  versuffix="-$major"
-	  ;;
-
-	*)
-	  func_fatal_configuration "unknown library version type \`$version_type'"
-	  ;;
-	esac
-
-	# Clear the version info if we defaulted, and they specified a release.
-	if test -z "$vinfo" && test -n "$release"; then
-	  major=
-	  case $version_type in
-	  darwin)
-	    # we can't check for "0.0" in archive_cmds due to quoting
-	    # problems, so we reset it completely
-	    verstring=
-	    ;;
-	  *)
-	    verstring="0.0"
-	    ;;
-	  esac
-	  if test "$need_version" = no; then
-	    versuffix=
-	  else
-	    versuffix=".0.0"
-	  fi
-	fi
-
-	# Remove version info from name if versioning should be avoided
-	if test "$avoid_version" = yes && test "$need_version" = no; then
-	  major=
-	  versuffix=
-	  verstring=""
-	fi
-
-	# Check to see if the archive will have undefined symbols.
-	if test "$allow_undefined" = yes; then
-	  if test "$allow_undefined_flag" = unsupported; then
-	    func_warning "undefined symbols not allowed in $host shared libraries"
-	    build_libtool_libs=no
-	    build_old_libs=yes
-	  fi
-	else
-	  # Don't allow undefined symbols.
-	  allow_undefined_flag="$no_undefined_flag"
-	fi
-
-      fi
-
-      func_generate_dlsyms "$libname" "$libname" "yes"
-      func_append libobjs " $symfileobj"
-      test "X$libobjs" = "X " && libobjs=
-
-      if test "$opt_mode" != relink; then
-	# Remove our outputs, but don't remove object files since they
-	# may have been created when compiling PIC objects.
-	removelist=
-	tempremovelist=`$ECHO "$output_objdir/*"`
-	for p in $tempremovelist; do
-	  case $p in
-	    *.$objext | *.gcno)
-	       ;;
-	    $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
-	       if test "X$precious_files_regex" != "X"; then
-		 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
-		 then
-		   continue
-		 fi
-	       fi
-	       func_append removelist " $p"
-	       ;;
-	    *) ;;
-	  esac
-	done
-	test -n "$removelist" && \
-	  func_show_eval "${RM}r \$removelist"
-      fi
-
-      # Now set the variables for building old libraries.
-      if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
-	func_append oldlibs " $output_objdir/$libname.$libext"
-
-	# Transform .lo files to .o files.
-	oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
-      fi
-
-      # Eliminate all temporary directories.
-      #for path in $notinst_path; do
-      #	lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
-      #	deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
-      #	dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
-      #done
-
-      if test -n "$xrpath"; then
-	# If the user specified any rpath flags, then add them.
-	temp_xrpath=
-	for libdir in $xrpath; do
-	  func_replace_sysroot "$libdir"
-	  func_append temp_xrpath " -R$func_replace_sysroot_result"
-	  case "$finalize_rpath " in
-	  *" $libdir "*) ;;
-	  *) func_append finalize_rpath " $libdir" ;;
-	  esac
-	done
-	if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
-	  dependency_libs="$temp_xrpath $dependency_libs"
-	fi
-      fi
-
-      # Make sure dlfiles contains only unique files that won't be dlpreopened
-      old_dlfiles="$dlfiles"
-      dlfiles=
-      for lib in $old_dlfiles; do
-	case " $dlprefiles $dlfiles " in
-	*" $lib "*) ;;
-	*) func_append dlfiles " $lib" ;;
-	esac
-      done
-
-      # Make sure dlprefiles contains only unique files
-      old_dlprefiles="$dlprefiles"
-      dlprefiles=
-      for lib in $old_dlprefiles; do
-	case "$dlprefiles " in
-	*" $lib "*) ;;
-	*) func_append dlprefiles " $lib" ;;
-	esac
-      done
-
-      if test "$build_libtool_libs" = yes; then
-	if test -n "$rpath"; then
-	  case $host in
-	  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
-	    # these systems don't actually have a c library (as such)!
-	    ;;
-	  *-*-rhapsody* | *-*-darwin1.[012])
-	    # Rhapsody C library is in the System framework
-	    func_append deplibs " System.ltframework"
-	    ;;
-	  *-*-netbsd*)
-	    # Don't link with libc until the a.out ld.so is fixed.
-	    ;;
-	  *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
-	    # Do not include libc due to us having libc/libc_r.
-	    ;;
-	  *-*-sco3.2v5* | *-*-sco5v6*)
-	    # Causes problems with __ctype
-	    ;;
-	  *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
-	    # Compiler inserts libc in the correct place for threads to work
-	    ;;
-	  *)
-	    # Add libc to deplibs on all other systems if necessary.
-	    if test "$build_libtool_need_lc" = "yes"; then
-	      func_append deplibs " -lc"
-	    fi
-	    ;;
-	  esac
-	fi
-
-	# Transform deplibs into only deplibs that can be linked in shared.
-	name_save=$name
-	libname_save=$libname
-	release_save=$release
-	versuffix_save=$versuffix
-	major_save=$major
-	# I'm not sure if I'm treating the release correctly.  I think
-	# release should show up in the -l (ie -lgmp5) so we don't want to
-	# add it in twice.  Is that correct?
-	release=""
-	versuffix=""
-	major=""
-	newdeplibs=
-	droppeddeps=no
-	case $deplibs_check_method in
-	pass_all)
-	  # Don't check for shared/static.  Everything works.
-	  # This might be a little naive.  We might want to check
-	  # whether the library exists or not.  But this is on
-	  # osf3 & osf4 and I'm not really sure... Just
-	  # implementing what was already the behavior.
-	  newdeplibs=$deplibs
-	  ;;
-	test_compile)
-	  # This code stresses the "libraries are programs" paradigm to its
-	  # limits. Maybe even breaks it.  We compile a program, linking it
-	  # against the deplibs as a proxy for the library.  Then we can check
-	  # whether they linked in statically or dynamically with ldd.
-	  $opt_dry_run || $RM conftest.c
-	  cat > conftest.c <<EOF
-	  int main() { return 0; }
-EOF
-	  $opt_dry_run || $RM conftest
-	  if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
-	    ldd_output=`ldd conftest`
-	    for i in $deplibs; do
-	      case $i in
-	      -l*)
-		func_stripname -l '' "$i"
-		name=$func_stripname_result
-		if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
-		  case " $predeps $postdeps " in
-		  *" $i "*)
-		    func_append newdeplibs " $i"
-		    i=""
-		    ;;
-		  esac
-		fi
-		if test -n "$i" ; then
-		  libname=`eval "\\$ECHO \"$libname_spec\""`
-		  deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
-		  set dummy $deplib_matches; shift
-		  deplib_match=$1
-		  if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
-		    func_append newdeplibs " $i"
-		  else
-		    droppeddeps=yes
-		    echo
-		    $ECHO "*** Warning: dynamic linker does not accept needed library $i."
-		    echo "*** I have the capability to make that library automatically link in when"
-		    echo "*** you link to this library.  But I can only do this if you have a"
-		    echo "*** shared version of the library, which I believe you do not have"
-		    echo "*** because a test_compile did reveal that the linker did not use it for"
-		    echo "*** its dynamic dependency list that programs get resolved with at runtime."
-		  fi
-		fi
-		;;
-	      *)
-		func_append newdeplibs " $i"
-		;;
-	      esac
-	    done
-	  else
-	    # Error occurred in the first compile.  Let's try to salvage
-	    # the situation: Compile a separate program for each library.
-	    for i in $deplibs; do
-	      case $i in
-	      -l*)
-		func_stripname -l '' "$i"
-		name=$func_stripname_result
-		$opt_dry_run || $RM conftest
-		if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
-		  ldd_output=`ldd conftest`
-		  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
-		    case " $predeps $postdeps " in
-		    *" $i "*)
-		      func_append newdeplibs " $i"
-		      i=""
-		      ;;
-		    esac
-		  fi
-		  if test -n "$i" ; then
-		    libname=`eval "\\$ECHO \"$libname_spec\""`
-		    deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
-		    set dummy $deplib_matches; shift
-		    deplib_match=$1
-		    if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
-		      func_append newdeplibs " $i"
-		    else
-		      droppeddeps=yes
-		      echo
-		      $ECHO "*** Warning: dynamic linker does not accept needed library $i."
-		      echo "*** I have the capability to make that library automatically link in when"
-		      echo "*** you link to this library.  But I can only do this if you have a"
-		      echo "*** shared version of the library, which you do not appear to have"
-		      echo "*** because a test_compile did reveal that the linker did not use this one"
-		      echo "*** as a dynamic dependency that programs can get resolved with at runtime."
-		    fi
-		  fi
-		else
-		  droppeddeps=yes
-		  echo
-		  $ECHO "*** Warning!  Library $i is needed by this library but I was not able to"
-		  echo "*** make it link in!  You will probably need to install it or some"
-		  echo "*** library that it depends on before this library will be fully"
-		  echo "*** functional.  Installing it before continuing would be even better."
-		fi
-		;;
-	      *)
-		func_append newdeplibs " $i"
-		;;
-	      esac
-	    done
-	  fi
-	  ;;
-	file_magic*)
-	  set dummy $deplibs_check_method; shift
-	  file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
-	  for a_deplib in $deplibs; do
-	    case $a_deplib in
-	    -l*)
-	      func_stripname -l '' "$a_deplib"
-	      name=$func_stripname_result
-	      if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
-		case " $predeps $postdeps " in
-		*" $a_deplib "*)
-		  func_append newdeplibs " $a_deplib"
-		  a_deplib=""
-		  ;;
-		esac
-	      fi
-	      if test -n "$a_deplib" ; then
-		libname=`eval "\\$ECHO \"$libname_spec\""`
-		if test -n "$file_magic_glob"; then
-		  libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
-		else
-		  libnameglob=$libname
-		fi
-		test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
-		for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
-		  if test "$want_nocaseglob" = yes; then
-		    shopt -s nocaseglob
-		    potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
-		    $nocaseglob
-		  else
-		    potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
-		  fi
-		  for potent_lib in $potential_libs; do
-		      # Follow soft links.
-		      if ls -lLd "$potent_lib" 2>/dev/null |
-			 $GREP " -> " >/dev/null; then
-			continue
-		      fi
-		      # The statement above tries to avoid entering an
-		      # endless loop below, in case of cyclic links.
-		      # We might still enter an endless loop, since a link
-		      # loop can be closed while we follow links,
-		      # but so what?
-		      potlib="$potent_lib"
-		      while test -h "$potlib" 2>/dev/null; do
-			potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
-			case $potliblink in
-			[\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
-			*) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
-			esac
-		      done
-		      if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
-			 $SED -e 10q |
-			 $EGREP "$file_magic_regex" > /dev/null; then
-			func_append newdeplibs " $a_deplib"
-			a_deplib=""
-			break 2
-		      fi
-		  done
-		done
-	      fi
-	      if test -n "$a_deplib" ; then
-		droppeddeps=yes
-		echo
-		$ECHO "*** Warning: linker path does not have real file for library $a_deplib."
-		echo "*** I have the capability to make that library automatically link in when"
-		echo "*** you link to this library.  But I can only do this if you have a"
-		echo "*** shared version of the library, which you do not appear to have"
-		echo "*** because I did check the linker path looking for a file starting"
-		if test -z "$potlib" ; then
-		  $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
-		else
-		  $ECHO "*** with $libname and none of the candidates passed a file format test"
-		  $ECHO "*** using a file magic. Last file checked: $potlib"
-		fi
-	      fi
-	      ;;
-	    *)
-	      # Add a -L argument.
-	      func_append newdeplibs " $a_deplib"
-	      ;;
-	    esac
-	  done # Gone through all deplibs.
-	  ;;
-	match_pattern*)
-	  set dummy $deplibs_check_method; shift
-	  match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
-	  for a_deplib in $deplibs; do
-	    case $a_deplib in
-	    -l*)
-	      func_stripname -l '' "$a_deplib"
-	      name=$func_stripname_result
-	      if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
-		case " $predeps $postdeps " in
-		*" $a_deplib "*)
-		  func_append newdeplibs " $a_deplib"
-		  a_deplib=""
-		  ;;
-		esac
-	      fi
-	      if test -n "$a_deplib" ; then
-		libname=`eval "\\$ECHO \"$libname_spec\""`
-		for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
-		  potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
-		  for potent_lib in $potential_libs; do
-		    potlib="$potent_lib" # see symlink-check above in file_magic test
-		    if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
-		       $EGREP "$match_pattern_regex" > /dev/null; then
-		      func_append newdeplibs " $a_deplib"
-		      a_deplib=""
-		      break 2
-		    fi
-		  done
-		done
-	      fi
-	      if test -n "$a_deplib" ; then
-		droppeddeps=yes
-		echo
-		$ECHO "*** Warning: linker path does not have real file for library $a_deplib."
-		echo "*** I have the capability to make that library automatically link in when"
-		echo "*** you link to this library.  But I can only do this if you have a"
-		echo "*** shared version of the library, which you do not appear to have"
-		echo "*** because I did check the linker path looking for a file starting"
-		if test -z "$potlib" ; then
-		  $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
-		else
-		  $ECHO "*** with $libname and none of the candidates passed a file format test"
-		  $ECHO "*** using a regex pattern. Last file checked: $potlib"
-		fi
-	      fi
-	      ;;
-	    *)
-	      # Add a -L argument.
-	      func_append newdeplibs " $a_deplib"
-	      ;;
-	    esac
-	  done # Gone through all deplibs.
-	  ;;
-	none | unknown | *)
-	  newdeplibs=""
-	  tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
-	  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
-	    for i in $predeps $postdeps ; do
-	      # can't use Xsed below, because $i might contain '/'
-	      tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
-	    done
-	  fi
-	  case $tmp_deplibs in
-	  *[!\	\ ]*)
-	    echo
-	    if test "X$deplibs_check_method" = "Xnone"; then
-	      echo "*** Warning: inter-library dependencies are not supported in this platform."
-	    else
-	      echo "*** Warning: inter-library dependencies are not known to be supported."
-	    fi
-	    echo "*** All declared inter-library dependencies are being dropped."
-	    droppeddeps=yes
-	    ;;
-	  esac
-	  ;;
-	esac
-	versuffix=$versuffix_save
-	major=$major_save
-	release=$release_save
-	libname=$libname_save
-	name=$name_save
-
-	case $host in
-	*-*-rhapsody* | *-*-darwin1.[012])
-	  # On Rhapsody replace the C library with the System framework
-	  newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
-	  ;;
-	esac
-
-	if test "$droppeddeps" = yes; then
-	  if test "$module" = yes; then
-	    echo
-	    echo "*** Warning: libtool could not satisfy all declared inter-library"
-	    $ECHO "*** dependencies of module $libname.  Therefore, libtool will create"
-	    echo "*** a static module, that should work as long as the dlopening"
-	    echo "*** application is linked with the -dlopen flag."
-	    if test -z "$global_symbol_pipe"; then
-	      echo
-	      echo "*** However, this would only work if libtool was able to extract symbol"
-	      echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
-	      echo "*** not find such a program.  So, this module is probably useless."
-	      echo "*** \`nm' from GNU binutils and a full rebuild may help."
-	    fi
-	    if test "$build_old_libs" = no; then
-	      oldlibs="$output_objdir/$libname.$libext"
-	      build_libtool_libs=module
-	      build_old_libs=yes
-	    else
-	      build_libtool_libs=no
-	    fi
-	  else
-	    echo "*** The inter-library dependencies that have been dropped here will be"
-	    echo "*** automatically added whenever a program is linked with this library"
-	    echo "*** or is declared to -dlopen it."
-
-	    if test "$allow_undefined" = no; then
-	      echo
-	      echo "*** Since this library must not contain undefined symbols,"
-	      echo "*** because either the platform does not support them or"
-	      echo "*** it was explicitly requested with -no-undefined,"
-	      echo "*** libtool will only create a static version of it."
-	      if test "$build_old_libs" = no; then
-		oldlibs="$output_objdir/$libname.$libext"
-		build_libtool_libs=module
-		build_old_libs=yes
-	      else
-		build_libtool_libs=no
-	      fi
-	    fi
-	  fi
-	fi
-	# Done checking deplibs!
-	deplibs=$newdeplibs
-      fi
-      # Time to change all our "foo.ltframework" stuff back to "-framework foo"
-      case $host in
-	*-*-darwin*)
-	  newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
-	  new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
-	  deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
-	  ;;
-      esac
-
-      # move library search paths that coincide with paths to not yet
-      # installed libraries to the beginning of the library search list
-      new_libs=
-      for path in $notinst_path; do
-	case " $new_libs " in
-	*" -L$path/$objdir "*) ;;
-	*)
-	  case " $deplibs " in
-	  *" -L$path/$objdir "*)
-	    func_append new_libs " -L$path/$objdir" ;;
-	  esac
-	  ;;
-	esac
-      done
-      for deplib in $deplibs; do
-	case $deplib in
-	-L*)
-	  case " $new_libs " in
-	  *" $deplib "*) ;;
-	  *) func_append new_libs " $deplib" ;;
-	  esac
-	  ;;
-	*) func_append new_libs " $deplib" ;;
-	esac
-      done
-      deplibs="$new_libs"
-
-      # All the library-specific variables (install_libdir is set above).
-      library_names=
-      old_library=
-      dlname=
-
-      # Test again, we may have decided not to build it any more
-      if test "$build_libtool_libs" = yes; then
-	# Remove ${wl} instances when linking with ld.
-	# FIXME: should test the right _cmds variable.
-	case $archive_cmds in
-	  *\$LD\ *) wl= ;;
-        esac
-	if test "$hardcode_into_libs" = yes; then
-	  # Hardcode the library paths
-	  hardcode_libdirs=
-	  dep_rpath=
-	  rpath="$finalize_rpath"
-	  test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
-	  for libdir in $rpath; do
-	    if test -n "$hardcode_libdir_flag_spec"; then
-	      if test -n "$hardcode_libdir_separator"; then
-		func_replace_sysroot "$libdir"
-		libdir=$func_replace_sysroot_result
-		if test -z "$hardcode_libdirs"; then
-		  hardcode_libdirs="$libdir"
-		else
-		  # Just accumulate the unique libdirs.
-		  case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
-		  *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
-		    ;;
-		  *)
-		    func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
-		    ;;
-		  esac
-		fi
-	      else
-		eval flag=\"$hardcode_libdir_flag_spec\"
-		func_append dep_rpath " $flag"
-	      fi
-	    elif test -n "$runpath_var"; then
-	      case "$perm_rpath " in
-	      *" $libdir "*) ;;
-	      *) func_append perm_rpath " $libdir" ;;
-	      esac
-	    fi
-	  done
-	  # Substitute the hardcoded libdirs into the rpath.
-	  if test -n "$hardcode_libdir_separator" &&
-	     test -n "$hardcode_libdirs"; then
-	    libdir="$hardcode_libdirs"
-	    eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
-	  fi
-	  if test -n "$runpath_var" && test -n "$perm_rpath"; then
-	    # We should set the runpath_var.
-	    rpath=
-	    for dir in $perm_rpath; do
-	      func_append rpath "$dir:"
-	    done
-	    eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
-	  fi
-	  test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
-	fi
-
-	shlibpath="$finalize_shlibpath"
-	test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
-	if test -n "$shlibpath"; then
-	  eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
-	fi
-
-	# Get the real and link names of the library.
-	eval shared_ext=\"$shrext_cmds\"
-	eval library_names=\"$library_names_spec\"
-	set dummy $library_names
-	shift
-	realname="$1"
-	shift
-
-	if test -n "$soname_spec"; then
-	  eval soname=\"$soname_spec\"
-	else
-	  soname="$realname"
-	fi
-	if test -z "$dlname"; then
-	  dlname=$soname
-	fi
-
-	lib="$output_objdir/$realname"
-	linknames=
-	for link
-	do
-	  func_append linknames " $link"
-	done
-
-	# Use standard objects if they are pic
-	test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
-	test "X$libobjs" = "X " && libobjs=
-
-	delfiles=
-	if test -n "$export_symbols" && test -n "$include_expsyms"; then
-	  $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
-	  export_symbols="$output_objdir/$libname.uexp"
-	  func_append delfiles " $export_symbols"
-	fi
-
-	orig_export_symbols=
-	case $host_os in
-	cygwin* | mingw* | cegcc*)
-	  if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
-	    # exporting using user supplied symfile
-	    if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
-	      # and it's NOT already a .def file. Must figure out
-	      # which of the given symbols are data symbols and tag
-	      # them as such. So, trigger use of export_symbols_cmds.
-	      # export_symbols gets reassigned inside the "prepare
-	      # the list of exported symbols" if statement, so the
-	      # include_expsyms logic still works.
-	      orig_export_symbols="$export_symbols"
-	      export_symbols=
-	      always_export_symbols=yes
-	    fi
-	  fi
-	  ;;
-	esac
-
-	# Prepare the list of exported symbols
-	if test -z "$export_symbols"; then
-	  if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
-	    func_verbose "generating symbol list for \`$libname.la'"
-	    export_symbols="$output_objdir/$libname.exp"
-	    $opt_dry_run || $RM $export_symbols
-	    cmds=$export_symbols_cmds
-	    save_ifs="$IFS"; IFS='~'
-	    for cmd1 in $cmds; do
-	      IFS="$save_ifs"
-	      # Take the normal branch if the nm_file_list_spec branch
-	      # doesn't work or if tool conversion is not needed.
-	      case $nm_file_list_spec~$to_tool_file_cmd in
-		*~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
-		  try_normal_branch=yes
-		  eval cmd=\"$cmd1\"
-		  func_len " $cmd"
-		  len=$func_len_result
-		  ;;
-		*)
-		  try_normal_branch=no
-		  ;;
-	      esac
-	      if test "$try_normal_branch" = yes \
-		 && { test "$len" -lt "$max_cmd_len" \
-		      || test "$max_cmd_len" -le -1; }
-	      then
-		func_show_eval "$cmd" 'exit $?'
-		skipped_export=false
-	      elif test -n "$nm_file_list_spec"; then
-		func_basename "$output"
-		output_la=$func_basename_result
-		save_libobjs=$libobjs
-		save_output=$output
-		output=${output_objdir}/${output_la}.nm
-		func_to_tool_file "$output"
-		libobjs=$nm_file_list_spec$func_to_tool_file_result
-		func_append delfiles " $output"
-		func_verbose "creating $NM input file list: $output"
-		for obj in $save_libobjs; do
-		  func_to_tool_file "$obj"
-		  $ECHO "$func_to_tool_file_result"
-		done > "$output"
-		eval cmd=\"$cmd1\"
-		func_show_eval "$cmd" 'exit $?'
-		output=$save_output
-		libobjs=$save_libobjs
-		skipped_export=false
-	      else
-		# The command line is too long to execute in one step.
-		func_verbose "using reloadable object file for export list..."
-		skipped_export=:
-		# Break out early, otherwise skipped_export may be
-		# set to false by a later but shorter cmd.
-		break
-	      fi
-	    done
-	    IFS="$save_ifs"
-	    if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
-	      func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
-	      func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
-	    fi
-	  fi
-	fi
-
-	if test -n "$export_symbols" && test -n "$include_expsyms"; then
-	  tmp_export_symbols="$export_symbols"
-	  test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
-	  $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
-	fi
-
-	if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
-	  # The given exports_symbols file has to be filtered, so filter it.
-	  func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
-	  # FIXME: $output_objdir/$libname.filter potentially contains lots of
-	  # 's' commands which not all seds can handle. GNU sed should be fine
-	  # though. Also, the filter scales superlinearly with the number of
-	  # global variables. join(1) would be nice here, but unfortunately
-	  # isn't a blessed tool.
-	  $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
-	  func_append delfiles " $export_symbols $output_objdir/$libname.filter"
-	  export_symbols=$output_objdir/$libname.def
-	  $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
-	fi
-
-	tmp_deplibs=
-	for test_deplib in $deplibs; do
-	  case " $convenience " in
-	  *" $test_deplib "*) ;;
-	  *)
-	    func_append tmp_deplibs " $test_deplib"
-	    ;;
-	  esac
-	done
-	deplibs="$tmp_deplibs"
-
-	if test -n "$convenience"; then
-	  if test -n "$whole_archive_flag_spec" &&
-	    test "$compiler_needs_object" = yes &&
-	    test -z "$libobjs"; then
-	    # extract the archives, so we have objects to list.
-	    # TODO: could optimize this to just extract one archive.
-	    whole_archive_flag_spec=
-	  fi
-	  if test -n "$whole_archive_flag_spec"; then
-	    save_libobjs=$libobjs
-	    eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
-	    test "X$libobjs" = "X " && libobjs=
-	  else
-	    gentop="$output_objdir/${outputname}x"
-	    func_append generated " $gentop"
-
-	    func_extract_archives $gentop $convenience
-	    func_append libobjs " $func_extract_archives_result"
-	    test "X$libobjs" = "X " && libobjs=
-	  fi
-	fi
-
-	if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
-	  eval flag=\"$thread_safe_flag_spec\"
-	  func_append linker_flags " $flag"
-	fi
-
-	# Make a backup of the uninstalled library when relinking
-	if test "$opt_mode" = relink; then
-	  $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
-	fi
-
-	# Do each of the archive commands.
-	if test "$module" = yes && test -n "$module_cmds" ; then
-	  if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
-	    eval test_cmds=\"$module_expsym_cmds\"
-	    cmds=$module_expsym_cmds
-	  else
-	    eval test_cmds=\"$module_cmds\"
-	    cmds=$module_cmds
-	  fi
-	else
-	  if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
-	    eval test_cmds=\"$archive_expsym_cmds\"
-	    cmds=$archive_expsym_cmds
-	  else
-	    eval test_cmds=\"$archive_cmds\"
-	    cmds=$archive_cmds
-	  fi
-	fi
-
-	if test "X$skipped_export" != "X:" &&
-	   func_len " $test_cmds" &&
-	   len=$func_len_result &&
-	   test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
-	  :
-	else
-	  # The command line is too long to link in one step, link piecewise
-	  # or, if using GNU ld and skipped_export is not :, use a linker
-	  # script.
-
-	  # Save the value of $output and $libobjs because we want to
-	  # use them later.  If we have whole_archive_flag_spec, we
-	  # want to use save_libobjs as it was before
-	  # whole_archive_flag_spec was expanded, because we can't
-	  # assume the linker understands whole_archive_flag_spec.
-	  # This may have to be revisited, in case too many
-	  # convenience libraries get linked in and end up exceeding
-	  # the spec.
-	  if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
-	    save_libobjs=$libobjs
-	  fi
-	  save_output=$output
-	  func_basename "$output"
-	  output_la=$func_basename_result
-
-	  # Clear the reloadable object creation command queue and
-	  # initialize k to one.
-	  test_cmds=
-	  concat_cmds=
-	  objlist=
-	  last_robj=
-	  k=1
-
-	  if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
-	    output=${output_objdir}/${output_la}.lnkscript
-	    func_verbose "creating GNU ld script: $output"
-	    echo 'INPUT (' > $output
-	    for obj in $save_libobjs
-	    do
-	      func_to_tool_file "$obj"
-	      $ECHO "$func_to_tool_file_result" >> $output
-	    done
-	    echo ')' >> $output
-	    func_append delfiles " $output"
-	    func_to_tool_file "$output"
-	    output=$func_to_tool_file_result
-	  elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
-	    output=${output_objdir}/${output_la}.lnk
-	    func_verbose "creating linker input file list: $output"
-	    : > $output
-	    set x $save_libobjs
-	    shift
-	    firstobj=
-	    if test "$compiler_needs_object" = yes; then
-	      firstobj="$1 "
-	      shift
-	    fi
-	    for obj
-	    do
-	      func_to_tool_file "$obj"
-	      $ECHO "$func_to_tool_file_result" >> $output
-	    done
-	    func_append delfiles " $output"
-	    func_to_tool_file "$output"
-	    output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
-	  else
-	    if test -n "$save_libobjs"; then
-	      func_verbose "creating reloadable object files..."
-	      output=$output_objdir/$output_la-${k}.$objext
-	      eval test_cmds=\"$reload_cmds\"
-	      func_len " $test_cmds"
-	      len0=$func_len_result
-	      len=$len0
-
-	      # Loop over the list of objects to be linked.
-	      for obj in $save_libobjs
-	      do
-		func_len " $obj"
-		func_arith $len + $func_len_result
-		len=$func_arith_result
-		if test "X$objlist" = X ||
-		   test "$len" -lt "$max_cmd_len"; then
-		  func_append objlist " $obj"
-		else
-		  # The command $test_cmds is almost too long, add a
-		  # command to the queue.
-		  if test "$k" -eq 1 ; then
-		    # The first file doesn't have a previous command to add.
-		    reload_objs=$objlist
-		    eval concat_cmds=\"$reload_cmds\"
-		  else
-		    # All subsequent reloadable object files will link in
-		    # the last one created.
-		    reload_objs="$objlist $last_robj"
-		    eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
-		  fi
-		  last_robj=$output_objdir/$output_la-${k}.$objext
-		  func_arith $k + 1
-		  k=$func_arith_result
-		  output=$output_objdir/$output_la-${k}.$objext
-		  objlist=" $obj"
-		  func_len " $last_robj"
-		  func_arith $len0 + $func_len_result
-		  len=$func_arith_result
-		fi
-	      done
-	      # Handle the remaining objects by creating one last
-	      # reloadable object file.  All subsequent reloadable object
-	      # files will link in the last one created.
-	      test -z "$concat_cmds" || concat_cmds=$concat_cmds~
-	      reload_objs="$objlist $last_robj"
-	      eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
-	      if test -n "$last_robj"; then
-	        eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
-	      fi
-	      func_append delfiles " $output"
-
-	    else
-	      output=
-	    fi
-
-	    if ${skipped_export-false}; then
-	      func_verbose "generating symbol list for \`$libname.la'"
-	      export_symbols="$output_objdir/$libname.exp"
-	      $opt_dry_run || $RM $export_symbols
-	      libobjs=$output
-	      # Append the command to create the export file.
-	      test -z "$concat_cmds" || concat_cmds=$concat_cmds~
-	      eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
-	      if test -n "$last_robj"; then
-		eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
-	      fi
-	    fi
-
-	    test -n "$save_libobjs" &&
-	      func_verbose "creating a temporary reloadable object file: $output"
-
-	    # Loop through the commands generated above and execute them.
-	    save_ifs="$IFS"; IFS='~'
-	    for cmd in $concat_cmds; do
-	      IFS="$save_ifs"
-	      $opt_silent || {
-		  func_quote_for_expand "$cmd"
-		  eval "func_echo $func_quote_for_expand_result"
-	      }
-	      $opt_dry_run || eval "$cmd" || {
-		lt_exit=$?
-
-		# Restore the uninstalled library and exit
-		if test "$opt_mode" = relink; then
-		  ( cd "$output_objdir" && \
-		    $RM "${realname}T" && \
-		    $MV "${realname}U" "$realname" )
-		fi
-
-		exit $lt_exit
-	      }
-	    done
-	    IFS="$save_ifs"
-
-	    if test -n "$export_symbols_regex" && ${skipped_export-false}; then
-	      func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
-	      func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
-	    fi
-	  fi
-
-          if ${skipped_export-false}; then
-	    if test -n "$export_symbols" && test -n "$include_expsyms"; then
-	      tmp_export_symbols="$export_symbols"
-	      test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
-	      $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
-	    fi
-
-	    if test -n "$orig_export_symbols"; then
-	      # The given exports_symbols file has to be filtered, so filter it.
-	      func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
-	      # FIXME: $output_objdir/$libname.filter potentially contains lots of
-	      # 's' commands which not all seds can handle. GNU sed should be fine
-	      # though. Also, the filter scales superlinearly with the number of
-	      # global variables. join(1) would be nice here, but unfortunately
-	      # isn't a blessed tool.
-	      $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
-	      func_append delfiles " $export_symbols $output_objdir/$libname.filter"
-	      export_symbols=$output_objdir/$libname.def
-	      $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
-	    fi
-	  fi
-
-	  libobjs=$output
-	  # Restore the value of output.
-	  output=$save_output
-
-	  if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
-	    eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
-	    test "X$libobjs" = "X " && libobjs=
-	  fi
-	  # Expand the library linking commands again to reset the
-	  # value of $libobjs for piecewise linking.
-
-	  # Do each of the archive commands.
-	  if test "$module" = yes && test -n "$module_cmds" ; then
-	    if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
-	      cmds=$module_expsym_cmds
-	    else
-	      cmds=$module_cmds
-	    fi
-	  else
-	    if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
-	      cmds=$archive_expsym_cmds
-	    else
-	      cmds=$archive_cmds
-	    fi
-	  fi
-	fi
-
-	if test -n "$delfiles"; then
-	  # Append the command to remove temporary files to $cmds.
-	  eval cmds=\"\$cmds~\$RM $delfiles\"
-	fi
-
-	# Add any objects from preloaded convenience libraries
-	if test -n "$dlprefiles"; then
-	  gentop="$output_objdir/${outputname}x"
-	  func_append generated " $gentop"
-
-	  func_extract_archives $gentop $dlprefiles
-	  func_append libobjs " $func_extract_archives_result"
-	  test "X$libobjs" = "X " && libobjs=
-	fi
-
-	save_ifs="$IFS"; IFS='~'
-	for cmd in $cmds; do
-	  IFS="$save_ifs"
-	  eval cmd=\"$cmd\"
-	  $opt_silent || {
-	    func_quote_for_expand "$cmd"
-	    eval "func_echo $func_quote_for_expand_result"
-	  }
-	  $opt_dry_run || eval "$cmd" || {
-	    lt_exit=$?
-
-	    # Restore the uninstalled library and exit
-	    if test "$opt_mode" = relink; then
-	      ( cd "$output_objdir" && \
-	        $RM "${realname}T" && \
-		$MV "${realname}U" "$realname" )
-	    fi
-
-	    exit $lt_exit
-	  }
-	done
-	IFS="$save_ifs"
-
-	# Restore the uninstalled library and exit
-	if test "$opt_mode" = relink; then
-	  $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
-
-	  if test -n "$convenience"; then
-	    if test -z "$whole_archive_flag_spec"; then
-	      func_show_eval '${RM}r "$gentop"'
-	    fi
-	  fi
-
-	  exit $EXIT_SUCCESS
-	fi
-
-	# Create links to the real library.
-	for linkname in $linknames; do
-	  if test "$realname" != "$linkname"; then
-	    func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
-	  fi
-	done
-
-	# If -module or -export-dynamic was specified, set the dlname.
-	if test "$module" = yes || test "$export_dynamic" = yes; then
-	  # On all known operating systems, these are identical.
-	  dlname="$soname"
-	fi
-      fi
-      ;;
-
-    obj)
-      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
-	func_warning "\`-dlopen' is ignored for objects"
-      fi
-
-      case " $deplibs" in
-      *\ -l* | *\ -L*)
-	func_warning "\`-l' and \`-L' are ignored for objects" ;;
-      esac
-
-      test -n "$rpath" && \
-	func_warning "\`-rpath' is ignored for objects"
-
-      test -n "$xrpath" && \
-	func_warning "\`-R' is ignored for objects"
-
-      test -n "$vinfo" && \
-	func_warning "\`-version-info' is ignored for objects"
-
-      test -n "$release" && \
-	func_warning "\`-release' is ignored for objects"
-
-      case $output in
-      *.lo)
-	test -n "$objs$old_deplibs" && \
-	  func_fatal_error "cannot build library object \`$output' from non-libtool objects"
-
-	libobj=$output
-	func_lo2o "$libobj"
-	obj=$func_lo2o_result
-	;;
-      *)
-	libobj=
-	obj="$output"
-	;;
-      esac
-
-      # Delete the old objects.
-      $opt_dry_run || $RM $obj $libobj
-
-      # Objects from convenience libraries.  This assumes
-      # single-version convenience libraries.  Whenever we create
-      # different ones for PIC/non-PIC, this we'll have to duplicate
-      # the extraction.
-      reload_conv_objs=
-      gentop=
-      # reload_cmds runs $LD directly, so let us get rid of
-      # -Wl from whole_archive_flag_spec and hope we can get by with
-      # turning comma into space..
-      wl=
-
-      if test -n "$convenience"; then
-	if test -n "$whole_archive_flag_spec"; then
-	  eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
-	  reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
-	else
-	  gentop="$output_objdir/${obj}x"
-	  func_append generated " $gentop"
-
-	  func_extract_archives $gentop $convenience
-	  reload_conv_objs="$reload_objs $func_extract_archives_result"
-	fi
-      fi
-
-      # If we're not building shared, we need to use non_pic_objs
-      test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
-
-      # Create the old-style object.
-      reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
-
-      output="$obj"
-      func_execute_cmds "$reload_cmds" 'exit $?'
-
-      # Exit if we aren't doing a library object file.
-      if test -z "$libobj"; then
-	if test -n "$gentop"; then
-	  func_show_eval '${RM}r "$gentop"'
-	fi
-
-	exit $EXIT_SUCCESS
-      fi
-
-      if test "$build_libtool_libs" != yes; then
-	if test -n "$gentop"; then
-	  func_show_eval '${RM}r "$gentop"'
-	fi
-
-	# Create an invalid libtool object if no PIC, so that we don't
-	# accidentally link it into a program.
-	# $show "echo timestamp > $libobj"
-	# $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
-	exit $EXIT_SUCCESS
-      fi
-
-      if test -n "$pic_flag" || test "$pic_mode" != default; then
-	# Only do commands if we really have different PIC objects.
-	reload_objs="$libobjs $reload_conv_objs"
-	output="$libobj"
-	func_execute_cmds "$reload_cmds" 'exit $?'
-      fi
-
-      if test -n "$gentop"; then
-	func_show_eval '${RM}r "$gentop"'
-      fi
-
-      exit $EXIT_SUCCESS
-      ;;
-
-    prog)
-      case $host in
-	*cygwin*) func_stripname '' '.exe' "$output"
-	          output=$func_stripname_result.exe;;
-      esac
-      test -n "$vinfo" && \
-	func_warning "\`-version-info' is ignored for programs"
-
-      test -n "$release" && \
-	func_warning "\`-release' is ignored for programs"
-
-      test "$preload" = yes \
-        && test "$dlopen_support" = unknown \
-	&& test "$dlopen_self" = unknown \
-	&& test "$dlopen_self_static" = unknown && \
-	  func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
-
-      case $host in
-      *-*-rhapsody* | *-*-darwin1.[012])
-	# On Rhapsody replace the C library is the System framework
-	compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
-	finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
-	;;
-      esac
-
-      case $host in
-      *-*-darwin*)
-	# Don't allow lazy linking, it breaks C++ global constructors
-	# But is supposedly fixed on 10.4 or later (yay!).
-	if test "$tagname" = CXX ; then
-	  case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
-	    10.[0123])
-	      func_append compile_command " ${wl}-bind_at_load"
-	      func_append finalize_command " ${wl}-bind_at_load"
-	    ;;
-	  esac
-	fi
-	# Time to change all our "foo.ltframework" stuff back to "-framework foo"
-	compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
-	finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
-	;;
-      esac
-
-
-      # move library search paths that coincide with paths to not yet
-      # installed libraries to the beginning of the library search list
-      new_libs=
-      for path in $notinst_path; do
-	case " $new_libs " in
-	*" -L$path/$objdir "*) ;;
-	*)
-	  case " $compile_deplibs " in
-	  *" -L$path/$objdir "*)
-	    func_append new_libs " -L$path/$objdir" ;;
-	  esac
-	  ;;
-	esac
-      done
-      for deplib in $compile_deplibs; do
-	case $deplib in
-	-L*)
-	  case " $new_libs " in
-	  *" $deplib "*) ;;
-	  *) func_append new_libs " $deplib" ;;
-	  esac
-	  ;;
-	*) func_append new_libs " $deplib" ;;
-	esac
-      done
-      compile_deplibs="$new_libs"
-
-
-      func_append compile_command " $compile_deplibs"
-      func_append finalize_command " $finalize_deplibs"
-
-      if test -n "$rpath$xrpath"; then
-	# If the user specified any rpath flags, then add them.
-	for libdir in $rpath $xrpath; do
-	  # This is the magic to use -rpath.
-	  case "$finalize_rpath " in
-	  *" $libdir "*) ;;
-	  *) func_append finalize_rpath " $libdir" ;;
-	  esac
-	done
-      fi
-
-      # Now hardcode the library paths
-      rpath=
-      hardcode_libdirs=
-      for libdir in $compile_rpath $finalize_rpath; do
-	if test -n "$hardcode_libdir_flag_spec"; then
-	  if test -n "$hardcode_libdir_separator"; then
-	    if test -z "$hardcode_libdirs"; then
-	      hardcode_libdirs="$libdir"
-	    else
-	      # Just accumulate the unique libdirs.
-	      case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
-	      *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
-		;;
-	      *)
-		func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
-		;;
-	      esac
-	    fi
-	  else
-	    eval flag=\"$hardcode_libdir_flag_spec\"
-	    func_append rpath " $flag"
-	  fi
-	elif test -n "$runpath_var"; then
-	  case "$perm_rpath " in
-	  *" $libdir "*) ;;
-	  *) func_append perm_rpath " $libdir" ;;
-	  esac
-	fi
-	case $host in
-	*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
-	  testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
-	  case :$dllsearchpath: in
-	  *":$libdir:"*) ;;
-	  ::) dllsearchpath=$libdir;;
-	  *) func_append dllsearchpath ":$libdir";;
-	  esac
-	  case :$dllsearchpath: in
-	  *":$testbindir:"*) ;;
-	  ::) dllsearchpath=$testbindir;;
-	  *) func_append dllsearchpath ":$testbindir";;
-	  esac
-	  ;;
-	esac
-      done
-      # Substitute the hardcoded libdirs into the rpath.
-      if test -n "$hardcode_libdir_separator" &&
-	 test -n "$hardcode_libdirs"; then
-	libdir="$hardcode_libdirs"
-	eval rpath=\" $hardcode_libdir_flag_spec\"
-      fi
-      compile_rpath="$rpath"
-
-      rpath=
-      hardcode_libdirs=
-      for libdir in $finalize_rpath; do
-	if test -n "$hardcode_libdir_flag_spec"; then
-	  if test -n "$hardcode_libdir_separator"; then
-	    if test -z "$hardcode_libdirs"; then
-	      hardcode_libdirs="$libdir"
-	    else
-	      # Just accumulate the unique libdirs.
-	      case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
-	      *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
-		;;
-	      *)
-		func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
-		;;
-	      esac
-	    fi
-	  else
-	    eval flag=\"$hardcode_libdir_flag_spec\"
-	    func_append rpath " $flag"
-	  fi
-	elif test -n "$runpath_var"; then
-	  case "$finalize_perm_rpath " in
-	  *" $libdir "*) ;;
-	  *) func_append finalize_perm_rpath " $libdir" ;;
-	  esac
-	fi
-      done
-      # Substitute the hardcoded libdirs into the rpath.
-      if test -n "$hardcode_libdir_separator" &&
-	 test -n "$hardcode_libdirs"; then
-	libdir="$hardcode_libdirs"
-	eval rpath=\" $hardcode_libdir_flag_spec\"
-      fi
-      finalize_rpath="$rpath"
-
-      if test -n "$libobjs" && test "$build_old_libs" = yes; then
-	# Transform all the library objects into standard objects.
-	compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
-	finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
-      fi
-
-      func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
-
-      # template prelinking step
-      if test -n "$prelink_cmds"; then
-	func_execute_cmds "$prelink_cmds" 'exit $?'
-      fi
-
-      wrappers_required=yes
-      case $host in
-      *cegcc* | *mingw32ce*)
-        # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
-        wrappers_required=no
-        ;;
-      *cygwin* | *mingw* )
-        if test "$build_libtool_libs" != yes; then
-          wrappers_required=no
-        fi
-        ;;
-      *)
-        if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
-          wrappers_required=no
-        fi
-        ;;
-      esac
-      if test "$wrappers_required" = no; then
-	# Replace the output file specification.
-	compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
-	link_command="$compile_command$compile_rpath"
-
-	# We have no uninstalled library dependencies, so finalize right now.
-	exit_status=0
-	func_show_eval "$link_command" 'exit_status=$?'
-
-	if test -n "$postlink_cmds"; then
-	  func_to_tool_file "$output"
-	  postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
-	  func_execute_cmds "$postlink_cmds" 'exit $?'
-	fi
-
-	# Delete the generated files.
-	if test -f "$output_objdir/${outputname}S.${objext}"; then
-	  func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
-	fi
-
-	exit $exit_status
-      fi
-
-      if test -n "$compile_shlibpath$finalize_shlibpath"; then
-	compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
-      fi
-      if test -n "$finalize_shlibpath"; then
-	finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
-      fi
-
-      compile_var=
-      finalize_var=
-      if test -n "$runpath_var"; then
-	if test -n "$perm_rpath"; then
-	  # We should set the runpath_var.
-	  rpath=
-	  for dir in $perm_rpath; do
-	    func_append rpath "$dir:"
-	  done
-	  compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
-	fi
-	if test -n "$finalize_perm_rpath"; then
-	  # We should set the runpath_var.
-	  rpath=
-	  for dir in $finalize_perm_rpath; do
-	    func_append rpath "$dir:"
-	  done
-	  finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
-	fi
-      fi
-
-      if test "$no_install" = yes; then
-	# We don't need to create a wrapper script.
-	link_command="$compile_var$compile_command$compile_rpath"
-	# Replace the output file specification.
-	link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
-	# Delete the old output file.
-	$opt_dry_run || $RM $output
-	# Link the executable and exit
-	func_show_eval "$link_command" 'exit $?'
-
-	if test -n "$postlink_cmds"; then
-	  func_to_tool_file "$output"
-	  postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
-	  func_execute_cmds "$postlink_cmds" 'exit $?'
-	fi
-
-	exit $EXIT_SUCCESS
-      fi
-
-      if test "$hardcode_action" = relink; then
-	# Fast installation is not supported
-	link_command="$compile_var$compile_command$compile_rpath"
-	relink_command="$finalize_var$finalize_command$finalize_rpath"
-
-	func_warning "this platform does not like uninstalled shared libraries"
-	func_warning "\`$output' will be relinked during installation"
-      else
-	if test "$fast_install" != no; then
-	  link_command="$finalize_var$compile_command$finalize_rpath"
-	  if test "$fast_install" = yes; then
-	    relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
-	  else
-	    # fast_install is set to needless
-	    relink_command=
-	  fi
-	else
-	  link_command="$compile_var$compile_command$compile_rpath"
-	  relink_command="$finalize_var$finalize_command$finalize_rpath"
-	fi
-      fi
-
-      # Replace the output file specification.
-      link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
-
-      # Delete the old output files.
-      $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
-
-      func_show_eval "$link_command" 'exit $?'
-
-      if test -n "$postlink_cmds"; then
-	func_to_tool_file "$output_objdir/$outputname"
-	postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
-	func_execute_cmds "$postlink_cmds" 'exit $?'
-      fi
-
-      # Now create the wrapper script.
-      func_verbose "creating $output"
-
-      # Quote the relink command for shipping.
-      if test -n "$relink_command"; then
-	# Preserve any variables that may affect compiler behavior
-	for var in $variables_saved_for_relink; do
-	  if eval test -z \"\${$var+set}\"; then
-	    relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
-	  elif eval var_value=\$$var; test -z "$var_value"; then
-	    relink_command="$var=; export $var; $relink_command"
-	  else
-	    func_quote_for_eval "$var_value"
-	    relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
-	  fi
-	done
-	relink_command="(cd `pwd`; $relink_command)"
-	relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
-      fi
-
-      # Only actually do things if not in dry run mode.
-      $opt_dry_run || {
-	# win32 will think the script is a binary if it has
-	# a .exe suffix, so we strip it off here.
-	case $output in
-	  *.exe) func_stripname '' '.exe' "$output"
-	         output=$func_stripname_result ;;
-	esac
-	# test for cygwin because mv fails w/o .exe extensions
-	case $host in
-	  *cygwin*)
-	    exeext=.exe
-	    func_stripname '' '.exe' "$outputname"
-	    outputname=$func_stripname_result ;;
-	  *) exeext= ;;
-	esac
-	case $host in
-	  *cygwin* | *mingw* )
-	    func_dirname_and_basename "$output" "" "."
-	    output_name=$func_basename_result
-	    output_path=$func_dirname_result
-	    cwrappersource="$output_path/$objdir/lt-$output_name.c"
-	    cwrapper="$output_path/$output_name.exe"
-	    $RM $cwrappersource $cwrapper
-	    trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
-
-	    func_emit_cwrapperexe_src > $cwrappersource
-
-	    # The wrapper executable is built using the $host compiler,
-	    # because it contains $host paths and files. If cross-
-	    # compiling, it, like the target executable, must be
-	    # executed on the $host or under an emulation environment.
-	    $opt_dry_run || {
-	      $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
-	      $STRIP $cwrapper
-	    }
-
-	    # Now, create the wrapper script for func_source use:
-	    func_ltwrapper_scriptname $cwrapper
-	    $RM $func_ltwrapper_scriptname_result
-	    trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
-	    $opt_dry_run || {
-	      # note: this script will not be executed, so do not chmod.
-	      if test "x$build" = "x$host" ; then
-		$cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
-	      else
-		func_emit_wrapper no > $func_ltwrapper_scriptname_result
-	      fi
-	    }
-	  ;;
-	  * )
-	    $RM $output
-	    trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
-
-	    func_emit_wrapper no > $output
-	    chmod +x $output
-	  ;;
-	esac
-      }
-      exit $EXIT_SUCCESS
-      ;;
-    esac
-
-    # See if we need to build an old-fashioned archive.
-    for oldlib in $oldlibs; do
-
-      if test "$build_libtool_libs" = convenience; then
-	oldobjs="$libobjs_save $symfileobj"
-	addlibs="$convenience"
-	build_libtool_libs=no
-      else
-	if test "$build_libtool_libs" = module; then
-	  oldobjs="$libobjs_save"
-	  build_libtool_libs=no
-	else
-	  oldobjs="$old_deplibs $non_pic_objects"
-	  if test "$preload" = yes && test -f "$symfileobj"; then
-	    func_append oldobjs " $symfileobj"
-	  fi
-	fi
-	addlibs="$old_convenience"
-      fi
-
-      if test -n "$addlibs"; then
-	gentop="$output_objdir/${outputname}x"
-	func_append generated " $gentop"
-
-	func_extract_archives $gentop $addlibs
-	func_append oldobjs " $func_extract_archives_result"
-      fi
-
-      # Do each command in the archive commands.
-      if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
-	cmds=$old_archive_from_new_cmds
-      else
-
-	# Add any objects from preloaded convenience libraries
-	if test -n "$dlprefiles"; then
-	  gentop="$output_objdir/${outputname}x"
-	  func_append generated " $gentop"
-
-	  func_extract_archives $gentop $dlprefiles
-	  func_append oldobjs " $func_extract_archives_result"
-	fi
-
-	# POSIX demands no paths to be encoded in archives.  We have
-	# to avoid creating archives with duplicate basenames if we
-	# might have to extract them afterwards, e.g., when creating a
-	# static archive out of a convenience library, or when linking
-	# the entirety of a libtool archive into another (currently
-	# not supported by libtool).
-	if (for obj in $oldobjs
-	    do
-	      func_basename "$obj"
-	      $ECHO "$func_basename_result"
-	    done | sort | sort -uc >/dev/null 2>&1); then
-	  :
-	else
-	  echo "copying selected object files to avoid basename conflicts..."
-	  gentop="$output_objdir/${outputname}x"
-	  func_append generated " $gentop"
-	  func_mkdir_p "$gentop"
-	  save_oldobjs=$oldobjs
-	  oldobjs=
-	  counter=1
-	  for obj in $save_oldobjs
-	  do
-	    func_basename "$obj"
-	    objbase="$func_basename_result"
-	    case " $oldobjs " in
-	    " ") oldobjs=$obj ;;
-	    *[\ /]"$objbase "*)
-	      while :; do
-		# Make sure we don't pick an alternate name that also
-		# overlaps.
-		newobj=lt$counter-$objbase
-		func_arith $counter + 1
-		counter=$func_arith_result
-		case " $oldobjs " in
-		*[\ /]"$newobj "*) ;;
-		*) if test ! -f "$gentop/$newobj"; then break; fi ;;
-		esac
-	      done
-	      func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
-	      func_append oldobjs " $gentop/$newobj"
-	      ;;
-	    *) func_append oldobjs " $obj" ;;
-	    esac
-	  done
-	fi
-	func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
-	tool_oldlib=$func_to_tool_file_result
-	eval cmds=\"$old_archive_cmds\"
-
-	func_len " $cmds"
-	len=$func_len_result
-	if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
-	  cmds=$old_archive_cmds
-	elif test -n "$archiver_list_spec"; then
-	  func_verbose "using command file archive linking..."
-	  for obj in $oldobjs
-	  do
-	    func_to_tool_file "$obj"
-	    $ECHO "$func_to_tool_file_result"
-	  done > $output_objdir/$libname.libcmd
-	  func_to_tool_file "$output_objdir/$libname.libcmd"
-	  oldobjs=" $archiver_list_spec$func_to_tool_file_result"
-	  cmds=$old_archive_cmds
-	else
-	  # the command line is too long to link in one step, link in parts
-	  func_verbose "using piecewise archive linking..."
-	  save_RANLIB=$RANLIB
-	  RANLIB=:
-	  objlist=
-	  concat_cmds=
-	  save_oldobjs=$oldobjs
-	  oldobjs=
-	  # Is there a better way of finding the last object in the list?
-	  for obj in $save_oldobjs
-	  do
-	    last_oldobj=$obj
-	  done
-	  eval test_cmds=\"$old_archive_cmds\"
-	  func_len " $test_cmds"
-	  len0=$func_len_result
-	  len=$len0
-	  for obj in $save_oldobjs
-	  do
-	    func_len " $obj"
-	    func_arith $len + $func_len_result
-	    len=$func_arith_result
-	    func_append objlist " $obj"
-	    if test "$len" -lt "$max_cmd_len"; then
-	      :
-	    else
-	      # the above command should be used before it gets too long
-	      oldobjs=$objlist
-	      if test "$obj" = "$last_oldobj" ; then
-		RANLIB=$save_RANLIB
-	      fi
-	      test -z "$concat_cmds" || concat_cmds=$concat_cmds~
-	      eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
-	      objlist=
-	      len=$len0
-	    fi
-	  done
-	  RANLIB=$save_RANLIB
-	  oldobjs=$objlist
-	  if test "X$oldobjs" = "X" ; then
-	    eval cmds=\"\$concat_cmds\"
-	  else
-	    eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
-	  fi
-	fi
-      fi
-      func_execute_cmds "$cmds" 'exit $?'
-    done
-
-    test -n "$generated" && \
-      func_show_eval "${RM}r$generated"
-
-    # Now create the libtool archive.
-    case $output in
-    *.la)
-      old_library=
-      test "$build_old_libs" = yes && old_library="$libname.$libext"
-      func_verbose "creating $output"
-
-      # Preserve any variables that may affect compiler behavior
-      for var in $variables_saved_for_relink; do
-	if eval test -z \"\${$var+set}\"; then
-	  relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
-	elif eval var_value=\$$var; test -z "$var_value"; then
-	  relink_command="$var=; export $var; $relink_command"
-	else
-	  func_quote_for_eval "$var_value"
-	  relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
-	fi
-      done
-      # Quote the link command for shipping.
-      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
-      relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
-      if test "$hardcode_automatic" = yes ; then
-	relink_command=
-      fi
-
-      # Only create the output if not a dry run.
-      $opt_dry_run || {
-	for installed in no yes; do
-	  if test "$installed" = yes; then
-	    if test -z "$install_libdir"; then
-	      break
-	    fi
-	    output="$output_objdir/$outputname"i
-	    # Replace all uninstalled libtool libraries with the installed ones
-	    newdependency_libs=
-	    for deplib in $dependency_libs; do
-	      case $deplib in
-	      *.la)
-		func_basename "$deplib"
-		name="$func_basename_result"
-		func_resolve_sysroot "$deplib"
-		eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
-		test -z "$libdir" && \
-		  func_fatal_error "\`$deplib' is not a valid libtool archive"
-		func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
-		;;
-	      -L*)
-		func_stripname -L '' "$deplib"
-		func_replace_sysroot "$func_stripname_result"
-		func_append newdependency_libs " -L$func_replace_sysroot_result"
-		;;
-	      -R*)
-		func_stripname -R '' "$deplib"
-		func_replace_sysroot "$func_stripname_result"
-		func_append newdependency_libs " -R$func_replace_sysroot_result"
-		;;
-	      *) func_append newdependency_libs " $deplib" ;;
-	      esac
-	    done
-	    dependency_libs="$newdependency_libs"
-	    newdlfiles=
-
-	    for lib in $dlfiles; do
-	      case $lib in
-	      *.la)
-	        func_basename "$lib"
-		name="$func_basename_result"
-		eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
-		test -z "$libdir" && \
-		  func_fatal_error "\`$lib' is not a valid libtool archive"
-		func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
-		;;
-	      *) func_append newdlfiles " $lib" ;;
-	      esac
-	    done
-	    dlfiles="$newdlfiles"
-	    newdlprefiles=
-	    for lib in $dlprefiles; do
-	      case $lib in
-	      *.la)
-		# Only pass preopened files to the pseudo-archive (for
-		# eventual linking with the app. that links it) if we
-		# didn't already link the preopened objects directly into
-		# the library:
-		func_basename "$lib"
-		name="$func_basename_result"
-		eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
-		test -z "$libdir" && \
-		  func_fatal_error "\`$lib' is not a valid libtool archive"
-		func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
-		;;
-	      esac
-	    done
-	    dlprefiles="$newdlprefiles"
-	  else
-	    newdlfiles=
-	    for lib in $dlfiles; do
-	      case $lib in
-		[\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
-		*) abs=`pwd`"/$lib" ;;
-	      esac
-	      func_append newdlfiles " $abs"
-	    done
-	    dlfiles="$newdlfiles"
-	    newdlprefiles=
-	    for lib in $dlprefiles; do
-	      case $lib in
-		[\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
-		*) abs=`pwd`"/$lib" ;;
-	      esac
-	      func_append newdlprefiles " $abs"
-	    done
-	    dlprefiles="$newdlprefiles"
-	  fi
-	  $RM $output
-	  # place dlname in correct position for cygwin
-	  # In fact, it would be nice if we could use this code for all target
-	  # systems that can't hard-code library paths into their executables
-	  # and that have no shared library path variable independent of PATH,
-	  # but it turns out we can't easily determine that from inspecting
-	  # libtool variables, so we have to hard-code the OSs to which it
-	  # applies here; at the moment, that means platforms that use the PE
-	  # object format with DLL files.  See the long comment at the top of
-	  # tests/bindir.at for full details.
-	  tdlname=$dlname
-	  case $host,$output,$installed,$module,$dlname in
-	    *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
-	      # If a -bindir argument was supplied, place the dll there.
-	      if test "x$bindir" != x ;
-	      then
-		func_relative_path "$install_libdir" "$bindir"
-		tdlname=$func_relative_path_result$dlname
-	      else
-		# Otherwise fall back on heuristic.
-		tdlname=../bin/$dlname
-	      fi
-	      ;;
-	  esac
-	  $ECHO > $output "\
-# $outputname - a libtool library file
-# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
-#
-# Please DO NOT delete this file!
-# It is necessary for linking the library.
-
-# The name that we can dlopen(3).
-dlname='$tdlname'
-
-# Names of this library.
-library_names='$library_names'
-
-# The name of the static archive.
-old_library='$old_library'
-
-# Linker flags that can not go in dependency_libs.
-inherited_linker_flags='$new_inherited_linker_flags'
-
-# Libraries that this one depends upon.
-dependency_libs='$dependency_libs'
-
-# Names of additional weak libraries provided by this library
-weak_library_names='$weak_libs'
-
-# Version information for $libname.
-current=$current
-age=$age
-revision=$revision
-
-# Is this an already installed library?
-installed=$installed
-
-# Should we warn about portability when linking against -modules?
-shouldnotlink=$module
-
-# Files to dlopen/dlpreopen
-dlopen='$dlfiles'
-dlpreopen='$dlprefiles'
-
-# Directory that this library needs to be installed in:
-libdir='$install_libdir'"
-	  if test "$installed" = no && test "$need_relink" = yes; then
-	    $ECHO >> $output "\
-relink_command=\"$relink_command\""
-	  fi
-	done
-      }
-
-      # Do a symbolic link so that the libtool archive can be found in
-      # LD_LIBRARY_PATH before the program is installed.
-      func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
-      ;;
-    esac
-    exit $EXIT_SUCCESS
-}
-
-{ test "$opt_mode" = link || test "$opt_mode" = relink; } &&
-    func_mode_link ${1+"$@"}
-
-
-# func_mode_uninstall arg...
-func_mode_uninstall ()
-{
-    $opt_debug
-    RM="$nonopt"
-    files=
-    rmforce=
-    exit_status=0
-
-    # This variable tells wrapper scripts just to set variables rather
-    # than running their programs.
-    libtool_install_magic="$magic"
-
-    for arg
-    do
-      case $arg in
-      -f) func_append RM " $arg"; rmforce=yes ;;
-      -*) func_append RM " $arg" ;;
-      *) func_append files " $arg" ;;
-      esac
-    done
-
-    test -z "$RM" && \
-      func_fatal_help "you must specify an RM program"
-
-    rmdirs=
-
-    for file in $files; do
-      func_dirname "$file" "" "."
-      dir="$func_dirname_result"
-      if test "X$dir" = X.; then
-	odir="$objdir"
-      else
-	odir="$dir/$objdir"
-      fi
-      func_basename "$file"
-      name="$func_basename_result"
-      test "$opt_mode" = uninstall && odir="$dir"
-
-      # Remember odir for removal later, being careful to avoid duplicates
-      if test "$opt_mode" = clean; then
-	case " $rmdirs " in
-	  *" $odir "*) ;;
-	  *) func_append rmdirs " $odir" ;;
-	esac
-      fi
-
-      # Don't error if the file doesn't exist and rm -f was used.
-      if { test -L "$file"; } >/dev/null 2>&1 ||
-	 { test -h "$file"; } >/dev/null 2>&1 ||
-	 test -f "$file"; then
-	:
-      elif test -d "$file"; then
-	exit_status=1
-	continue
-      elif test "$rmforce" = yes; then
-	continue
-      fi
-
-      rmfiles="$file"
-
-      case $name in
-      *.la)
-	# Possibly a libtool archive, so verify it.
-	if func_lalib_p "$file"; then
-	  func_source $dir/$name
-
-	  # Delete the libtool libraries and symlinks.
-	  for n in $library_names; do
-	    func_append rmfiles " $odir/$n"
-	  done
-	  test -n "$old_library" && func_append rmfiles " $odir/$old_library"
-
-	  case "$opt_mode" in
-	  clean)
-	    case " $library_names " in
-	    *" $dlname "*) ;;
-	    *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
-	    esac
-	    test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
-	    ;;
-	  uninstall)
-	    if test -n "$library_names"; then
-	      # Do each command in the postuninstall commands.
-	      func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
-	    fi
-
-	    if test -n "$old_library"; then
-	      # Do each command in the old_postuninstall commands.
-	      func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
-	    fi
-	    # FIXME: should reinstall the best remaining shared library.
-	    ;;
-	  esac
-	fi
-	;;
-
-      *.lo)
-	# Possibly a libtool object, so verify it.
-	if func_lalib_p "$file"; then
-
-	  # Read the .lo file
-	  func_source $dir/$name
-
-	  # Add PIC object to the list of files to remove.
-	  if test -n "$pic_object" &&
-	     test "$pic_object" != none; then
-	    func_append rmfiles " $dir/$pic_object"
-	  fi
-
-	  # Add non-PIC object to the list of files to remove.
-	  if test -n "$non_pic_object" &&
-	     test "$non_pic_object" != none; then
-	    func_append rmfiles " $dir/$non_pic_object"
-	  fi
-	fi
-	;;
-
-      *)
-	if test "$opt_mode" = clean ; then
-	  noexename=$name
-	  case $file in
-	  *.exe)
-	    func_stripname '' '.exe' "$file"
-	    file=$func_stripname_result
-	    func_stripname '' '.exe' "$name"
-	    noexename=$func_stripname_result
-	    # $file with .exe has already been added to rmfiles,
-	    # add $file without .exe
-	    func_append rmfiles " $file"
-	    ;;
-	  esac
-	  # Do a test to see if this is a libtool program.
-	  if func_ltwrapper_p "$file"; then
-	    if func_ltwrapper_executable_p "$file"; then
-	      func_ltwrapper_scriptname "$file"
-	      relink_command=
-	      func_source $func_ltwrapper_scriptname_result
-	      func_append rmfiles " $func_ltwrapper_scriptname_result"
-	    else
-	      relink_command=
-	      func_source $dir/$noexename
-	    fi
-
-	    # note $name still contains .exe if it was in $file originally
-	    # as does the version of $file that was added into $rmfiles
-	    func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
-	    if test "$fast_install" = yes && test -n "$relink_command"; then
-	      func_append rmfiles " $odir/lt-$name"
-	    fi
-	    if test "X$noexename" != "X$name" ; then
-	      func_append rmfiles " $odir/lt-${noexename}.c"
-	    fi
-	  fi
-	fi
-	;;
-      esac
-      func_show_eval "$RM $rmfiles" 'exit_status=1'
-    done
-
-    # Try to remove the ${objdir}s in the directories where we deleted files
-    for dir in $rmdirs; do
-      if test -d "$dir"; then
-	func_show_eval "rmdir $dir >/dev/null 2>&1"
-      fi
-    done
-
-    exit $exit_status
-}
-
-{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
-    func_mode_uninstall ${1+"$@"}
-
-test -z "$opt_mode" && {
-  help="$generic_help"
-  func_fatal_help "you must specify a MODE"
-}
-
-test -z "$exec_cmd" && \
-  func_fatal_help "invalid operation mode \`$opt_mode'"
-
-if test -n "$exec_cmd"; then
-  eval exec "$exec_cmd"
-  exit $EXIT_FAILURE
-fi
-
-exit $exit_status
-
-
-# The TAGs below are defined such that we never get into a situation
-# in which we disable both kinds of libraries.  Given conflicting
-# choices, we go for a static library, that is the most portable,
-# since we can't tell whether shared libraries were disabled because
-# the user asked for that or because the platform doesn't support
-# them.  This is particularly important on AIX, because we don't
-# support having both static and shared libraries enabled at the same
-# time on that platform, so we default to a shared-only configuration.
-# If a disable-shared tag is given, we'll fallback to a static-only
-# configuration.  But we'll never go from static-only to shared-only.
-
-# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
-build_libtool_libs=no
-build_old_libs=yes
-# ### END LIBTOOL TAG CONFIG: disable-shared
-
-# ### BEGIN LIBTOOL TAG CONFIG: disable-static
-build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
-# ### END LIBTOOL TAG CONFIG: disable-static
-
-# Local Variables:
-# mode:shell-script
-# sh-indentation:2
-# End:
-# vi:sw=2
-
diff --git a/libqfits/admin/missing b/libqfits/admin/missing
deleted file mode 100755
index 86a8fc3..0000000
--- a/libqfits/admin/missing
+++ /dev/null
@@ -1,331 +0,0 @@
-#! /bin/sh
-# Common stub for a few missing GNU programs while installing.
-
-scriptversion=2012-01-06.13; # UTC
-
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
-# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
-# Originally by Fran,cois Pinard <pinard at iro.umontreal.ca>, 1996.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-if test $# -eq 0; then
-  echo 1>&2 "Try \`$0 --help' for more information"
-  exit 1
-fi
-
-run=:
-sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
-sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
-
-# In the cases where this matters, `missing' is being run in the
-# srcdir already.
-if test -f configure.ac; then
-  configure_ac=configure.ac
-else
-  configure_ac=configure.in
-fi
-
-msg="missing on your system"
-
-case $1 in
---run)
-  # Try to run requested program, and just exit if it succeeds.
-  run=
-  shift
-  "$@" && exit 0
-  # Exit code 63 means version mismatch.  This often happens
-  # when the user try to use an ancient version of a tool on
-  # a file that requires a minimum version.  In this case we
-  # we should proceed has if the program had been absent, or
-  # if --run hadn't been passed.
-  if test $? = 63; then
-    run=:
-    msg="probably too old"
-  fi
-  ;;
-
-  -h|--h|--he|--hel|--help)
-    echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
-error status if there is no known handling for PROGRAM.
-
-Options:
-  -h, --help      display this help and exit
-  -v, --version   output version information and exit
-  --run           try to run the given command, and emulate it if it fails
-
-Supported PROGRAM values:
-  aclocal      touch file \`aclocal.m4'
-  autoconf     touch file \`configure'
-  autoheader   touch file \`config.h.in'
-  autom4te     touch the output file, or create a stub one
-  automake     touch all \`Makefile.in' files
-  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
-  flex         create \`lex.yy.c', if possible, from existing .c
-  help2man     touch the output file
-  lex          create \`lex.yy.c', if possible, from existing .c
-  makeinfo     touch the output file
-  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
-
-Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
-\`g' are ignored when checking the name.
-
-Send bug reports to <bug-automake at gnu.org>."
-    exit $?
-    ;;
-
-  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
-    echo "missing $scriptversion (GNU Automake)"
-    exit $?
-    ;;
-
-  -*)
-    echo 1>&2 "$0: Unknown \`$1' option"
-    echo 1>&2 "Try \`$0 --help' for more information"
-    exit 1
-    ;;
-
-esac
-
-# normalize program name to check for.
-program=`echo "$1" | sed '
-  s/^gnu-//; t
-  s/^gnu//; t
-  s/^g//; t'`
-
-# Now exit if we have it, but it failed.  Also exit now if we
-# don't have it and --version was passed (most likely to detect
-# the program).  This is about non-GNU programs, so use $1 not
-# $program.
-case $1 in
-  lex*|yacc*)
-    # Not GNU programs, they don't have --version.
-    ;;
-
-  *)
-    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
-       # We have it, but it failed.
-       exit 1
-    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
-       # Could not run --version or --help.  This is probably someone
-       # running `$TOOL --version' or `$TOOL --help' to check whether
-       # $TOOL exists and not knowing $TOOL uses missing.
-       exit 1
-    fi
-    ;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated version),
-# try to emulate it.
-case $program in
-  aclocal*)
-    echo 1>&2 "\
-WARNING: \`$1' is $msg.  You should only need it if
-         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
-         to install the \`Automake' and \`Perl' packages.  Grab them from
-         any GNU archive site."
-    touch aclocal.m4
-    ;;
-
-  autoconf*)
-    echo 1>&2 "\
-WARNING: \`$1' is $msg.  You should only need it if
-         you modified \`${configure_ac}'.  You might want to install the
-         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
-         archive site."
-    touch configure
-    ;;
-
-  autoheader*)
-    echo 1>&2 "\
-WARNING: \`$1' is $msg.  You should only need it if
-         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
-         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
-         from any GNU archive site."
-    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
-    test -z "$files" && files="config.h"
-    touch_files=
-    for f in $files; do
-      case $f in
-      *:*) touch_files="$touch_files "`echo "$f" |
-				       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
-      *) touch_files="$touch_files $f.in";;
-      esac
-    done
-    touch $touch_files
-    ;;
-
-  automake*)
-    echo 1>&2 "\
-WARNING: \`$1' is $msg.  You should only need it if
-         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
-         You might want to install the \`Automake' and \`Perl' packages.
-         Grab them from any GNU archive site."
-    find . -type f -name Makefile.am -print |
-	   sed 's/\.am$/.in/' |
-	   while read f; do touch "$f"; done
-    ;;
-
-  autom4te*)
-    echo 1>&2 "\
-WARNING: \`$1' is needed, but is $msg.
-         You might have modified some files without having the
-         proper tools for further handling them.
-         You can get \`$1' as part of \`Autoconf' from any GNU
-         archive site."
-
-    file=`echo "$*" | sed -n "$sed_output"`
-    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
-    if test -f "$file"; then
-	touch $file
-    else
-	test -z "$file" || exec >$file
-	echo "#! /bin/sh"
-	echo "# Created by GNU Automake missing as a replacement of"
-	echo "#  $ $@"
-	echo "exit 0"
-	chmod +x $file
-	exit 1
-    fi
-    ;;
-
-  bison*|yacc*)
-    echo 1>&2 "\
-WARNING: \`$1' $msg.  You should only need it if
-         you modified a \`.y' file.  You may need the \`Bison' package
-         in order for those modifications to take effect.  You can get
-         \`Bison' from any GNU archive site."
-    rm -f y.tab.c y.tab.h
-    if test $# -ne 1; then
-        eval LASTARG=\${$#}
-	case $LASTARG in
-	*.y)
-	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
-	    if test -f "$SRCFILE"; then
-	         cp "$SRCFILE" y.tab.c
-	    fi
-	    SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
-	    if test -f "$SRCFILE"; then
-	         cp "$SRCFILE" y.tab.h
-	    fi
-	  ;;
-	esac
-    fi
-    if test ! -f y.tab.h; then
-	echo >y.tab.h
-    fi
-    if test ! -f y.tab.c; then
-	echo 'main() { return 0; }' >y.tab.c
-    fi
-    ;;
-
-  lex*|flex*)
-    echo 1>&2 "\
-WARNING: \`$1' is $msg.  You should only need it if
-         you modified a \`.l' file.  You may need the \`Flex' package
-         in order for those modifications to take effect.  You can get
-         \`Flex' from any GNU archive site."
-    rm -f lex.yy.c
-    if test $# -ne 1; then
-        eval LASTARG=\${$#}
-	case $LASTARG in
-	*.l)
-	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
-	    if test -f "$SRCFILE"; then
-	         cp "$SRCFILE" lex.yy.c
-	    fi
-	  ;;
-	esac
-    fi
-    if test ! -f lex.yy.c; then
-	echo 'main() { return 0; }' >lex.yy.c
-    fi
-    ;;
-
-  help2man*)
-    echo 1>&2 "\
-WARNING: \`$1' is $msg.  You should only need it if
-	 you modified a dependency of a manual page.  You may need the
-	 \`Help2man' package in order for those modifications to take
-	 effect.  You can get \`Help2man' from any GNU archive site."
-
-    file=`echo "$*" | sed -n "$sed_output"`
-    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
-    if test -f "$file"; then
-	touch $file
-    else
-	test -z "$file" || exec >$file
-	echo ".ab help2man is required to generate this page"
-	exit $?
-    fi
-    ;;
-
-  makeinfo*)
-    echo 1>&2 "\
-WARNING: \`$1' is $msg.  You should only need it if
-         you modified a \`.texi' or \`.texinfo' file, or any other file
-         indirectly affecting the aspect of the manual.  The spurious
-         call might also be the consequence of using a buggy \`make' (AIX,
-         DU, IRIX).  You might want to install the \`Texinfo' package or
-         the \`GNU make' package.  Grab either from any GNU archive site."
-    # The file to touch is that specified with -o ...
-    file=`echo "$*" | sed -n "$sed_output"`
-    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
-    if test -z "$file"; then
-      # ... or it is the one specified with @setfilename ...
-      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
-      file=`sed -n '
-	/^@setfilename/{
-	  s/.* \([^ ]*\) *$/\1/
-	  p
-	  q
-	}' $infile`
-      # ... or it is derived from the source name (dir/f.texi becomes f.info)
-      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
-    fi
-    # If the file does not exist, the user really needs makeinfo;
-    # let's fail without touching anything.
-    test -f $file || exit 1
-    touch $file
-    ;;
-
-  *)
-    echo 1>&2 "\
-WARNING: \`$1' is needed, and is $msg.
-         You might have modified some files without having the
-         proper tools for further handling them.  Check the \`README' file,
-         it often tells you about the needed prerequisites for installing
-         this package.  You may also peek at any GNU archive site, in case
-         some other package would contain this missing \`$1' program."
-    exit 1
-    ;;
-esac
-
-exit 0
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/libqfits/config.h.in b/libqfits/config.h.in
deleted file mode 100644
index 0f3eef8..0000000
--- a/libqfits/config.h.in
+++ /dev/null
@@ -1,177 +0,0 @@
-/* config.h.in.  Generated from configure.ac by autoheader.  */
-
-/* Define if building universal (internal helper macro) */
-#undef AC_APPLE_UNIVERSAL_BUILD
-
-/* x86 CPU type */
-#undef CPU_X86
-
-/* Define to 1 if you have the `atexit' function. */
-#undef HAVE_ATEXIT
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-#undef HAVE_DLFCN_H
-
-/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
-#undef HAVE_DOPRNT
-
-/* Define to 1 if you have the <fcntl.h> header file. */
-#undef HAVE_FCNTL_H
-
-/* Define to 1 if you have the `getpagesize' function. */
-#undef HAVE_GETPAGESIZE
-
-/* Define to 1 if you have the `gettimeofday' function. */
-#undef HAVE_GETTIMEOFDAY
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-
-/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
-   to 0 otherwise. */
-#undef HAVE_MALLOC
-
-/* Define to 1 if you have the `memchr' function. */
-#undef HAVE_MEMCHR
-
-/* Define to 1 if you have the `memmove' function. */
-#undef HAVE_MEMMOVE
-
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
-
-/* Define to 1 if you have the `memset' function. */
-#undef HAVE_MEMSET
-
-/* Define to 1 if you have the `mkdir' function. */
-#undef HAVE_MKDIR
-
-/* Define to 1 if you have a working `mmap' system call. */
-#undef HAVE_MMAP
-
-/* Define to 1 if you have the `munmap' function. */
-#undef HAVE_MUNMAP
-
-/* Define to 1 if your system has a GNU libc compatible `realloc' function,
-   and to 0 otherwise. */
-#undef HAVE_REALLOC
-
-/* Define to 1 if you have the `regcomp' function. */
-#undef HAVE_REGCOMP
-
-/* Define to 1 if you have the `rmdir' function. */
-#undef HAVE_RMDIR
-
-/* Define to 1 if `stat' has the bug that it succeeds when given the
-   zero-length file name argument. */
-#undef HAVE_STAT_EMPTY_STRING_BUG
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#undef HAVE_STDINT_H
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
-
-/* Define to 1 if you have the `strchr' function. */
-#undef HAVE_STRCHR
-
-/* Define to 1 if you have the `strdup' function. */
-#undef HAVE_STRDUP
-
-/* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
-
-/* Define to 1 if you have the <string.h> header file. */
-#undef HAVE_STRING_H
-
-/* Define to 1 if you have the `strrchr' function. */
-#undef HAVE_STRRCHR
-
-/* Define to 1 if you have the `strstr' function. */
-#undef HAVE_STRSTR
-
-/* Define to 1 if you have the <sys/param.h> header file. */
-#undef HAVE_SYS_PARAM_H
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#undef HAVE_SYS_STAT_H
-
-/* Define to 1 if you have the <sys/time.h> header file. */
-#undef HAVE_SYS_TIME_H
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
-
-/* Define to 1 if you have the `uname' function. */
-#undef HAVE_UNAME
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
-/* Define to 1 if you have the `vprintf' function. */
-#undef HAVE_VPRINTF
-
-/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
-   slash. */
-#undef LSTAT_FOLLOWS_SLASHED_SYMLINK
-
-/* Define to the sub-directory in which libtool stores uninstalled libraries.
-   */
-#undef LT_OBJDIR
-
-/* Name of package */
-#undef PACKAGE
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the home page for this package. */
-#undef PACKAGE_URL
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
-/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
-#undef TIME_WITH_SYS_TIME
-
-/* Define to 1 if your <sys/time.h> declares `struct tm'. */
-#undef TM_IN_SYS_TIME
-
-/* Version number of package */
-#undef VERSION
-
-/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
-   significant byte first (like Motorola and SPARC, unlike Intel). */
-#if defined AC_APPLE_UNIVERSAL_BUILD
-# if defined __BIG_ENDIAN__
-#  define WORDS_BIGENDIAN 1
-# endif
-#else
-# ifndef WORDS_BIGENDIAN
-#  undef WORDS_BIGENDIAN
-# endif
-#endif
-
-/* Define to empty if `const' does not conform to ANSI C. */
-#undef const
-
-/* Define to rpl_malloc if the replacement function should be used. */
-#undef malloc
-
-/* Define to rpl_realloc if the replacement function should be used. */
-#undef realloc
-
-/* Define to `unsigned int' if <sys/types.h> does not define. */
-#undef size_t
diff --git a/libqfits/configure b/libqfits/configure
deleted file mode 100755
index 5481f2d..0000000
--- a/libqfits/configure
+++ /dev/null
@@ -1,14958 +0,0 @@
-#! /bin/sh
-# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for qfits 6.2.0.
-#
-# Report bugs to <yjung at eso.org>.
-#
-#
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
-# Foundation, Inc.
-#
-#
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-## -------------------- ##
-## M4sh Initialization. ##
-## -------------------- ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
-  emulate sh
-  NULLCMD=:
-  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in #(
-  *posix*) :
-    set -o posix ;; #(
-  *) :
-     ;;
-esac
-fi
-
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-# Prefer a ksh shell builtin over an external printf program on Solaris,
-# but without wasting forks for bash or zsh.
-if test -z "$BASH_VERSION$ZSH_VERSION" \
-    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
-  as_echo='print -r --'
-  as_echo_n='print -rn --'
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
-  as_echo='printf %s\n'
-  as_echo_n='printf %s'
-else
-  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
-    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
-    as_echo_n='/usr/ucb/echo -n'
-  else
-    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
-    as_echo_n_body='eval
-      arg=$1;
-      case $arg in #(
-      *"$as_nl"*)
-	expr "X$arg" : "X\\(.*\\)$as_nl";
-	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
-      esac;
-      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
-    '
-    export as_echo_n_body
-    as_echo_n='sh -c $as_echo_n_body as_echo'
-  fi
-  export as_echo_body
-  as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
-  PATH_SEPARATOR=:
-  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
-    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
-      PATH_SEPARATOR=';'
-  }
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order.  Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" ""	$as_nl"
-
-# Find who we are.  Look in the path if we contain no directory separator.
-as_myself=
-case $0 in #((
-  *[\\/]* ) as_myself=$0 ;;
-  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
-  done
-IFS=$as_save_IFS
-
-     ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
-  as_myself=$0
-fi
-if test ! -f "$as_myself"; then
-  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
-  exit 1
-fi
-
-# Unset variables that we do not need and which cause bugs (e.g. in
-# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
-# suppresses any "Segmentation fault" message there.  '((' could
-# trigger a bug in pdksh 5.2.14.
-for as_var in BASH_ENV ENV MAIL MAILPATH
-do eval test x\${$as_var+set} = xset \
-  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-if test "x$CONFIG_SHELL" = x; then
-  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
-  emulate sh
-  NULLCMD=:
-  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '\${1+\"\$@\"}'='\"\$@\"'
-  setopt NO_GLOB_SUBST
-else
-  case \`(set -o) 2>/dev/null\` in #(
-  *posix*) :
-    set -o posix ;; #(
-  *) :
-     ;;
-esac
-fi
-"
-  as_required="as_fn_return () { (exit \$1); }
-as_fn_success () { as_fn_return 0; }
-as_fn_failure () { as_fn_return 1; }
-as_fn_ret_success () { return 0; }
-as_fn_ret_failure () { return 1; }
-
-exitcode=0
-as_fn_success || { exitcode=1; echo as_fn_success failed.; }
-as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
-as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
-as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
-if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
-
-else
-  exitcode=1; echo positional parameters were not saved.
-fi
-test x\$exitcode = x0 || exit 1"
-  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
-  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
-  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
-  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
-
-  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
-    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
-    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
-    PATH=/empty FPATH=/empty; export PATH FPATH
-    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
-      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
-test \$(( 1 + 1 )) = 2 || exit 1"
-  if (eval "$as_required") 2>/dev/null; then :
-  as_have_required=yes
-else
-  as_have_required=no
-fi
-  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
-
-else
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_found=false
-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  as_found=:
-  case $as_dir in #(
-	 /*)
-	   for as_base in sh bash ksh sh5; do
-	     # Try only shells that exist, to save several forks.
-	     as_shell=$as_dir/$as_base
-	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
-		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
-  CONFIG_SHELL=$as_shell as_have_required=yes
-		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
-  break 2
-fi
-fi
-	   done;;
-       esac
-  as_found=false
-done
-$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
-	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
-  CONFIG_SHELL=$SHELL as_have_required=yes
-fi; }
-IFS=$as_save_IFS
-
-
-      if test "x$CONFIG_SHELL" != x; then :
-  # We cannot yet assume a decent shell, so we have to provide a
-	# neutralization value for shells without unset; and this also
-	# works around shells that cannot unset nonexistent variables.
-	# Preserve -v and -x to the replacement shell.
-	BASH_ENV=/dev/null
-	ENV=/dev/null
-	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
-	export CONFIG_SHELL
-	case $- in # ((((
-	  *v*x* | *x*v* ) as_opts=-vx ;;
-	  *v* ) as_opts=-v ;;
-	  *x* ) as_opts=-x ;;
-	  * ) as_opts= ;;
-	esac
-	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
-fi
-
-    if test x$as_have_required = xno; then :
-  $as_echo "$0: This script requires a shell more modern than all"
-  $as_echo "$0: the shells that I found on your system."
-  if test x${ZSH_VERSION+set} = xset ; then
-    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
-    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
-  else
-    $as_echo "$0: Please tell bug-autoconf at gnu.org and yjung at eso.org
-$0: about your system, including any error possibly output
-$0: before this message. Then install a modern shell, or
-$0: manually run the script under such a shell if you do
-$0: have one."
-  fi
-  exit 1
-fi
-fi
-fi
-SHELL=${CONFIG_SHELL-/bin/sh}
-export SHELL
-# Unset more variables known to interfere with behavior of common tools.
-CLICOLOR_FORCE= GREP_OPTIONS=
-unset CLICOLOR_FORCE GREP_OPTIONS
-
-## --------------------- ##
-## M4sh Shell Functions. ##
-## --------------------- ##
-# as_fn_unset VAR
-# ---------------
-# Portably unset VAR.
-as_fn_unset ()
-{
-  { eval $1=; unset $1;}
-}
-as_unset=as_fn_unset
-
-# as_fn_set_status STATUS
-# -----------------------
-# Set $? to STATUS, without forking.
-as_fn_set_status ()
-{
-  return $1
-} # as_fn_set_status
-
-# as_fn_exit STATUS
-# -----------------
-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
-as_fn_exit ()
-{
-  set +e
-  as_fn_set_status $1
-  exit $1
-} # as_fn_exit
-
-# as_fn_mkdir_p
-# -------------
-# Create "$as_dir" as a directory, including parents if necessary.
-as_fn_mkdir_p ()
-{
-
-  case $as_dir in #(
-  -*) as_dir=./$as_dir;;
-  esac
-  test -d "$as_dir" || eval $as_mkdir_p || {
-    as_dirs=
-    while :; do
-      case $as_dir in #(
-      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
-      *) as_qdir=$as_dir;;
-      esac
-      as_dirs="'$as_qdir' $as_dirs"
-      as_dir=`$as_dirname -- "$as_dir" ||
-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-	 X"$as_dir" : 'X\(//\)[^/]' \| \
-	 X"$as_dir" : 'X\(//\)$' \| \
-	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$as_dir" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)[^/].*/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\).*/{
-	    s//\1/
-	    q
-	  }
-	  s/.*/./; q'`
-      test -d "$as_dir" && break
-    done
-    test -z "$as_dirs" || eval "mkdir $as_dirs"
-  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
-
-
-} # as_fn_mkdir_p
-# as_fn_append VAR VALUE
-# ----------------------
-# Append the text in VALUE to the end of the definition contained in VAR. Take
-# advantage of any shell optimizations that allow amortized linear growth over
-# repeated appends, instead of the typical quadratic growth present in naive
-# implementations.
-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
-  eval 'as_fn_append ()
-  {
-    eval $1+=\$2
-  }'
-else
-  as_fn_append ()
-  {
-    eval $1=\$$1\$2
-  }
-fi # as_fn_append
-
-# as_fn_arith ARG...
-# ------------------
-# Perform arithmetic evaluation on the ARGs, and store the result in the
-# global $as_val. Take advantage of shells that can avoid forks. The arguments
-# must be portable across $(()) and expr.
-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
-  eval 'as_fn_arith ()
-  {
-    as_val=$(( $* ))
-  }'
-else
-  as_fn_arith ()
-  {
-    as_val=`expr "$@" || test $? -eq 1`
-  }
-fi # as_fn_arith
-
-
-# as_fn_error STATUS ERROR [LINENO LOG_FD]
-# ----------------------------------------
-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
-# script with STATUS, using 1 if that was 0.
-as_fn_error ()
-{
-  as_status=$1; test $as_status -eq 0 && as_status=1
-  if test "$4"; then
-    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
-  fi
-  $as_echo "$as_me: error: $2" >&2
-  as_fn_exit $as_status
-} # as_fn_error
-
-if expr a : '\(a\)' >/dev/null 2>&1 &&
-   test "X`expr 00001 : '.*\(...\)'`" = X001; then
-  as_expr=expr
-else
-  as_expr=false
-fi
-
-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
-  as_basename=basename
-else
-  as_basename=false
-fi
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
-  as_dirname=dirname
-else
-  as_dirname=false
-fi
-
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
-	 X"$0" : 'X\(//\)$' \| \
-	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X/"$0" |
-    sed '/^.*\/\([^/][^/]*\)\/*$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\/\(\/\/\)$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\/\(\/\).*/{
-	    s//\1/
-	    q
-	  }
-	  s/.*/./; q'`
-
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-
-  as_lineno_1=$LINENO as_lineno_1a=$LINENO
-  as_lineno_2=$LINENO as_lineno_2a=$LINENO
-  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
-  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
-  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
-  sed -n '
-    p
-    /[$]LINENO/=
-  ' <$as_myself |
-    sed '
-      s/[$]LINENO.*/&-/
-      t lineno
-      b
-      :lineno
-      N
-      :loop
-      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
-      t loop
-      s/-\n.*//
-    ' >$as_me.lineno &&
-  chmod +x "$as_me.lineno" ||
-    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
-
-  # Don't try to exec as it changes $[0], causing all sort of problems
-  # (the dirname of $[0] is not the place where we might find the
-  # original and so on.  Autoconf is especially sensitive to this).
-  . "./$as_me.lineno"
-  # Exit status is that of the last command.
-  exit
-}
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in #(((((
--n*)
-  case `echo 'xy\c'` in
-  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
-  xy)  ECHO_C='\c';;
-  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
-       ECHO_T='	';;
-  esac;;
-*)
-  ECHO_N='-n';;
-esac
-
-rm -f conf$$ conf$$.exe conf$$.file
-if test -d conf$$.dir; then
-  rm -f conf$$.dir/conf$$.file
-else
-  rm -f conf$$.dir
-  mkdir conf$$.dir 2>/dev/null
-fi
-if (echo >conf$$.file) 2>/dev/null; then
-  if ln -s conf$$.file conf$$ 2>/dev/null; then
-    as_ln_s='ln -s'
-    # ... but there are two gotchas:
-    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
-    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
-    # In both cases, we have to default to `cp -p'.
-    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
-      as_ln_s='cp -p'
-  elif ln conf$$.file conf$$ 2>/dev/null; then
-    as_ln_s=ln
-  else
-    as_ln_s='cp -p'
-  fi
-else
-  as_ln_s='cp -p'
-fi
-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
-rmdir conf$$.dir 2>/dev/null
-
-if mkdir -p . 2>/dev/null; then
-  as_mkdir_p='mkdir -p "$as_dir"'
-else
-  test -d ./-p && rmdir ./-p
-  as_mkdir_p=false
-fi
-
-if test -x / >/dev/null 2>&1; then
-  as_test_x='test -x'
-else
-  if ls -dL / >/dev/null 2>&1; then
-    as_ls_L_option=L
-  else
-    as_ls_L_option=
-  fi
-  as_test_x='
-    eval sh -c '\''
-      if test -d "$1"; then
-	test -d "$1/.";
-      else
-	case $1 in #(
-	-*)set "./$1";;
-	esac;
-	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
-	???[sx]*):;;*)false;;esac;fi
-    '\'' sh
-  '
-fi
-as_executable_p=$as_test_x
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-
-SHELL=${CONFIG_SHELL-/bin/sh}
-
-
-test -n "$DJDIR" || exec 7<&0 </dev/null
-exec 6>&1
-
-# Name of the host.
-# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
-# so uname gets run too.
-ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
-
-#
-# Initializations.
-#
-ac_default_prefix=/usr/local
-ac_clean_files=
-ac_config_libobj_dir=.
-LIBOBJS=
-cross_compiling=no
-subdirs=
-MFLAGS=
-MAKEFLAGS=
-
-# Identity of this package.
-PACKAGE_NAME='qfits'
-PACKAGE_TARNAME='qfits'
-PACKAGE_VERSION='6.2.0'
-PACKAGE_STRING='qfits 6.2.0'
-PACKAGE_BUGREPORT='yjung at eso.org'
-PACKAGE_URL=''
-
-ac_unique_file="Makefile.am"
-# Factoring default headers for most tests.
-ac_includes_default="\
-#include <stdio.h>
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#ifdef HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <stddef.h>
-#else
-# ifdef HAVE_STDLIB_H
-#  include <stdlib.h>
-# endif
-#endif
-#ifdef HAVE_STRING_H
-# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
-#  include <memory.h>
-# endif
-# include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-# include <strings.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif"
-
-ac_header_list=
-ac_subst_vars='am__EXEEXT_FALSE
-am__EXEEXT_TRUE
-LTLIBOBJS
-LIBOBJS
-QFITS_CFLAGS
-LT_AGE
-LT_REVISION
-LT_CURRENT
-LATEX
-DOXYGEN
-LIBTOOL_DEPS
-CPP
-OTOOL64
-OTOOL
-LIPO
-NMEDIT
-DSYMUTIL
-MANIFEST_TOOL
-RANLIB
-ac_ct_AR
-AR
-DLLTOOL
-OBJDUMP
-LN_S
-NM
-ac_ct_DUMPBIN
-DUMPBIN
-LD
-FGREP
-EGREP
-GREP
-SED
-host_os
-host_vendor
-host_cpu
-host
-build_os
-build_vendor
-build_cpu
-build
-LIBTOOL
-am__fastdepCC_FALSE
-am__fastdepCC_TRUE
-CCDEPMODE
-am__nodep
-AMDEPBACKSLASH
-AMDEP_FALSE
-AMDEP_TRUE
-am__quote
-am__include
-DEPDIR
-OBJEXT
-EXEEXT
-ac_ct_CC
-CPPFLAGS
-LDFLAGS
-CFLAGS
-CC
-am__untar
-am__tar
-AMTAR
-am__leading_dot
-SET_MAKE
-AWK
-mkdir_p
-MKDIR_P
-INSTALL_STRIP_PROGRAM
-STRIP
-install_sh
-MAKEINFO
-AUTOHEADER
-AUTOMAKE
-AUTOCONF
-ACLOCAL
-VERSION
-PACKAGE
-CYGPATH_W
-am__isrc
-INSTALL_DATA
-INSTALL_SCRIPT
-INSTALL_PROGRAM
-target_alias
-host_alias
-build_alias
-LIBS
-ECHO_T
-ECHO_N
-ECHO_C
-DEFS
-mandir
-localedir
-libdir
-psdir
-pdfdir
-dvidir
-htmldir
-infodir
-docdir
-oldincludedir
-includedir
-localstatedir
-sharedstatedir
-sysconfdir
-datadir
-datarootdir
-libexecdir
-sbindir
-bindir
-program_transform_name
-prefix
-exec_prefix
-PACKAGE_URL
-PACKAGE_BUGREPORT
-PACKAGE_STRING
-PACKAGE_VERSION
-PACKAGE_TARNAME
-PACKAGE_NAME
-PATH_SEPARATOR
-SHELL'
-ac_subst_files=''
-ac_user_opts='
-enable_option_checking
-enable_dependency_tracking
-enable_shared
-enable_static
-with_pic
-enable_fast_install
-with_gnu_ld
-with_sysroot
-enable_libtool_lock
-enable_memory_mode
-enable_max_ptrs
-'
-      ac_precious_vars='build_alias
-host_alias
-target_alias
-CC
-CFLAGS
-LDFLAGS
-LIBS
-CPPFLAGS
-CPP
-DOXYGEN
-LATEX'
-
-
-# Initialize some variables set by options.
-ac_init_help=
-ac_init_version=false
-ac_unrecognized_opts=
-ac_unrecognized_sep=
-# The variables have the same names as the options, with
-# dashes changed to underlines.
-cache_file=/dev/null
-exec_prefix=NONE
-no_create=
-no_recursion=
-prefix=NONE
-program_prefix=NONE
-program_suffix=NONE
-program_transform_name=s,x,x,
-silent=
-site=
-srcdir=
-verbose=
-x_includes=NONE
-x_libraries=NONE
-
-# Installation directory options.
-# These are left unexpanded so users can "make install exec_prefix=/foo"
-# and all the variables that are supposed to be based on exec_prefix
-# by default will actually change.
-# Use braces instead of parens because sh, perl, etc. also accept them.
-# (The list follows the same order as the GNU Coding Standards.)
-bindir='${exec_prefix}/bin'
-sbindir='${exec_prefix}/sbin'
-libexecdir='${exec_prefix}/libexec'
-datarootdir='${prefix}/share'
-datadir='${datarootdir}'
-sysconfdir='${prefix}/etc'
-sharedstatedir='${prefix}/com'
-localstatedir='${prefix}/var'
-includedir='${prefix}/include'
-oldincludedir='/usr/include'
-docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
-infodir='${datarootdir}/info'
-htmldir='${docdir}'
-dvidir='${docdir}'
-pdfdir='${docdir}'
-psdir='${docdir}'
-libdir='${exec_prefix}/lib'
-localedir='${datarootdir}/locale'
-mandir='${datarootdir}/man'
-
-ac_prev=
-ac_dashdash=
-for ac_option
-do
-  # If the previous option needs an argument, assign it.
-  if test -n "$ac_prev"; then
-    eval $ac_prev=\$ac_option
-    ac_prev=
-    continue
-  fi
-
-  case $ac_option in
-  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
-  *=)   ac_optarg= ;;
-  *)    ac_optarg=yes ;;
-  esac
-
-  # Accept the important Cygnus configure options, so we can diagnose typos.
-
-  case $ac_dashdash$ac_option in
-  --)
-    ac_dashdash=yes ;;
-
-  -bindir | --bindir | --bindi | --bind | --bin | --bi)
-    ac_prev=bindir ;;
-  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
-    bindir=$ac_optarg ;;
-
-  -build | --build | --buil | --bui | --bu)
-    ac_prev=build_alias ;;
-  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
-    build_alias=$ac_optarg ;;
-
-  -cache-file | --cache-file | --cache-fil | --cache-fi \
-  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
-    ac_prev=cache_file ;;
-  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
-  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
-    cache_file=$ac_optarg ;;
-
-  --config-cache | -C)
-    cache_file=config.cache ;;
-
-  -datadir | --datadir | --datadi | --datad)
-    ac_prev=datadir ;;
-  -datadir=* | --datadir=* | --datadi=* | --datad=*)
-    datadir=$ac_optarg ;;
-
-  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
-  | --dataroo | --dataro | --datar)
-    ac_prev=datarootdir ;;
-  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
-  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
-    datarootdir=$ac_optarg ;;
-
-  -disable-* | --disable-*)
-    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
-      as_fn_error $? "invalid feature name: $ac_useropt"
-    ac_useropt_orig=$ac_useropt
-    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
-    case $ac_user_opts in
-      *"
-"enable_$ac_useropt"
-"*) ;;
-      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
-	 ac_unrecognized_sep=', ';;
-    esac
-    eval enable_$ac_useropt=no ;;
-
-  -docdir | --docdir | --docdi | --doc | --do)
-    ac_prev=docdir ;;
-  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
-    docdir=$ac_optarg ;;
-
-  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
-    ac_prev=dvidir ;;
-  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
-    dvidir=$ac_optarg ;;
-
-  -enable-* | --enable-*)
-    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
-      as_fn_error $? "invalid feature name: $ac_useropt"
-    ac_useropt_orig=$ac_useropt
-    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
-    case $ac_user_opts in
-      *"
-"enable_$ac_useropt"
-"*) ;;
-      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
-	 ac_unrecognized_sep=', ';;
-    esac
-    eval enable_$ac_useropt=\$ac_optarg ;;
-
-  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
-  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
-  | --exec | --exe | --ex)
-    ac_prev=exec_prefix ;;
-  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
-  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
-  | --exec=* | --exe=* | --ex=*)
-    exec_prefix=$ac_optarg ;;
-
-  -gas | --gas | --ga | --g)
-    # Obsolete; use --with-gas.
-    with_gas=yes ;;
-
-  -help | --help | --hel | --he | -h)
-    ac_init_help=long ;;
-  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
-    ac_init_help=recursive ;;
-  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
-    ac_init_help=short ;;
-
-  -host | --host | --hos | --ho)
-    ac_prev=host_alias ;;
-  -host=* | --host=* | --hos=* | --ho=*)
-    host_alias=$ac_optarg ;;
-
-  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
-    ac_prev=htmldir ;;
-  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
-  | --ht=*)
-    htmldir=$ac_optarg ;;
-
-  -includedir | --includedir | --includedi | --included | --include \
-  | --includ | --inclu | --incl | --inc)
-    ac_prev=includedir ;;
-  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
-  | --includ=* | --inclu=* | --incl=* | --inc=*)
-    includedir=$ac_optarg ;;
-
-  -infodir | --infodir | --infodi | --infod | --info | --inf)
-    ac_prev=infodir ;;
-  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
-    infodir=$ac_optarg ;;
-
-  -libdir | --libdir | --libdi | --libd)
-    ac_prev=libdir ;;
-  -libdir=* | --libdir=* | --libdi=* | --libd=*)
-    libdir=$ac_optarg ;;
-
-  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
-  | --libexe | --libex | --libe)
-    ac_prev=libexecdir ;;
-  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
-  | --libexe=* | --libex=* | --libe=*)
-    libexecdir=$ac_optarg ;;
-
-  -localedir | --localedir | --localedi | --localed | --locale)
-    ac_prev=localedir ;;
-  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
-    localedir=$ac_optarg ;;
-
-  -localstatedir | --localstatedir | --localstatedi | --localstated \
-  | --localstate | --localstat | --localsta | --localst | --locals)
-    ac_prev=localstatedir ;;
-  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
-  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
-    localstatedir=$ac_optarg ;;
-
-  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
-    ac_prev=mandir ;;
-  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
-    mandir=$ac_optarg ;;
-
-  -nfp | --nfp | --nf)
-    # Obsolete; use --without-fp.
-    with_fp=no ;;
-
-  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
-  | --no-cr | --no-c | -n)
-    no_create=yes ;;
-
-  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
-  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
-    no_recursion=yes ;;
-
-  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
-  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
-  | --oldin | --oldi | --old | --ol | --o)
-    ac_prev=oldincludedir ;;
-  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
-  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
-  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
-    oldincludedir=$ac_optarg ;;
-
-  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
-    ac_prev=prefix ;;
-  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
-    prefix=$ac_optarg ;;
-
-  -program-prefix | --program-prefix | --program-prefi | --program-pref \
-  | --program-pre | --program-pr | --program-p)
-    ac_prev=program_prefix ;;
-  -program-prefix=* | --program-prefix=* | --program-prefi=* \
-  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
-    program_prefix=$ac_optarg ;;
-
-  -program-suffix | --program-suffix | --program-suffi | --program-suff \
-  | --program-suf | --program-su | --program-s)
-    ac_prev=program_suffix ;;
-  -program-suffix=* | --program-suffix=* | --program-suffi=* \
-  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
-    program_suffix=$ac_optarg ;;
-
-  -program-transform-name | --program-transform-name \
-  | --program-transform-nam | --program-transform-na \
-  | --program-transform-n | --program-transform- \
-  | --program-transform | --program-transfor \
-  | --program-transfo | --program-transf \
-  | --program-trans | --program-tran \
-  | --progr-tra | --program-tr | --program-t)
-    ac_prev=program_transform_name ;;
-  -program-transform-name=* | --program-transform-name=* \
-  | --program-transform-nam=* | --program-transform-na=* \
-  | --program-transform-n=* | --program-transform-=* \
-  | --program-transform=* | --program-transfor=* \
-  | --program-transfo=* | --program-transf=* \
-  | --program-trans=* | --program-tran=* \
-  | --progr-tra=* | --program-tr=* | --program-t=*)
-    program_transform_name=$ac_optarg ;;
-
-  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
-    ac_prev=pdfdir ;;
-  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
-    pdfdir=$ac_optarg ;;
-
-  -psdir | --psdir | --psdi | --psd | --ps)
-    ac_prev=psdir ;;
-  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
-    psdir=$ac_optarg ;;
-
-  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
-  | -silent | --silent | --silen | --sile | --sil)
-    silent=yes ;;
-
-  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
-    ac_prev=sbindir ;;
-  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
-  | --sbi=* | --sb=*)
-    sbindir=$ac_optarg ;;
-
-  -sharedstatedir | --sharedstatedir | --sharedstatedi \
-  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
-  | --sharedst | --shareds | --shared | --share | --shar \
-  | --sha | --sh)
-    ac_prev=sharedstatedir ;;
-  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
-  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
-  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
-  | --sha=* | --sh=*)
-    sharedstatedir=$ac_optarg ;;
-
-  -site | --site | --sit)
-    ac_prev=site ;;
-  -site=* | --site=* | --sit=*)
-    site=$ac_optarg ;;
-
-  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
-    ac_prev=srcdir ;;
-  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
-    srcdir=$ac_optarg ;;
-
-  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
-  | --syscon | --sysco | --sysc | --sys | --sy)
-    ac_prev=sysconfdir ;;
-  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
-  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
-    sysconfdir=$ac_optarg ;;
-
-  -target | --target | --targe | --targ | --tar | --ta | --t)
-    ac_prev=target_alias ;;
-  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
-    target_alias=$ac_optarg ;;
-
-  -v | -verbose | --verbose | --verbos | --verbo | --verb)
-    verbose=yes ;;
-
-  -version | --version | --versio | --versi | --vers | -V)
-    ac_init_version=: ;;
-
-  -with-* | --with-*)
-    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
-      as_fn_error $? "invalid package name: $ac_useropt"
-    ac_useropt_orig=$ac_useropt
-    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
-    case $ac_user_opts in
-      *"
-"with_$ac_useropt"
-"*) ;;
-      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
-	 ac_unrecognized_sep=', ';;
-    esac
-    eval with_$ac_useropt=\$ac_optarg ;;
-
-  -without-* | --without-*)
-    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
-      as_fn_error $? "invalid package name: $ac_useropt"
-    ac_useropt_orig=$ac_useropt
-    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
-    case $ac_user_opts in
-      *"
-"with_$ac_useropt"
-"*) ;;
-      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
-	 ac_unrecognized_sep=', ';;
-    esac
-    eval with_$ac_useropt=no ;;
-
-  --x)
-    # Obsolete; use --with-x.
-    with_x=yes ;;
-
-  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
-  | --x-incl | --x-inc | --x-in | --x-i)
-    ac_prev=x_includes ;;
-  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
-  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
-    x_includes=$ac_optarg ;;
-
-  -x-libraries | --x-libraries | --x-librarie | --x-librari \
-  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
-    ac_prev=x_libraries ;;
-  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
-  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
-    x_libraries=$ac_optarg ;;
-
-  -*) as_fn_error $? "unrecognized option: \`$ac_option'
-Try \`$0 --help' for more information"
-    ;;
-
-  *=*)
-    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
-    # Reject names that are not valid shell variable names.
-    case $ac_envvar in #(
-      '' | [0-9]* | *[!_$as_cr_alnum]* )
-      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
-    esac
-    eval $ac_envvar=\$ac_optarg
-    export $ac_envvar ;;
-
-  *)
-    # FIXME: should be removed in autoconf 3.0.
-    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
-    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
-      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
-    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
-    ;;
-
-  esac
-done
-
-if test -n "$ac_prev"; then
-  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
-  as_fn_error $? "missing argument to $ac_option"
-fi
-
-if test -n "$ac_unrecognized_opts"; then
-  case $enable_option_checking in
-    no) ;;
-    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
-    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
-  esac
-fi
-
-# Check all directory arguments for consistency.
-for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
-		datadir sysconfdir sharedstatedir localstatedir includedir \
-		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-		libdir localedir mandir
-do
-  eval ac_val=\$$ac_var
-  # Remove trailing slashes.
-  case $ac_val in
-    */ )
-      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
-      eval $ac_var=\$ac_val;;
-  esac
-  # Be sure to have absolute directory names.
-  case $ac_val in
-    [\\/$]* | ?:[\\/]* )  continue;;
-    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
-  esac
-  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
-done
-
-# There might be people who depend on the old broken behavior: `$host'
-# used to hold the argument of --host etc.
-# FIXME: To remove some day.
-build=$build_alias
-host=$host_alias
-target=$target_alias
-
-# FIXME: To remove some day.
-if test "x$host_alias" != x; then
-  if test "x$build_alias" = x; then
-    cross_compiling=maybe
-    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
-    If a cross compiler is detected then cross compile mode will be used" >&2
-  elif test "x$build_alias" != "x$host_alias"; then
-    cross_compiling=yes
-  fi
-fi
-
-ac_tool_prefix=
-test -n "$host_alias" && ac_tool_prefix=$host_alias-
-
-test "$silent" = yes && exec 6>/dev/null
-
-
-ac_pwd=`pwd` && test -n "$ac_pwd" &&
-ac_ls_di=`ls -di .` &&
-ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
-  as_fn_error $? "working directory cannot be determined"
-test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
-  as_fn_error $? "pwd does not report name of working directory"
-
-
-# Find the source files, if location was not specified.
-if test -z "$srcdir"; then
-  ac_srcdir_defaulted=yes
-  # Try the directory containing this script, then the parent directory.
-  ac_confdir=`$as_dirname -- "$as_myself" ||
-$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-	 X"$as_myself" : 'X\(//\)[^/]' \| \
-	 X"$as_myself" : 'X\(//\)$' \| \
-	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$as_myself" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)[^/].*/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\).*/{
-	    s//\1/
-	    q
-	  }
-	  s/.*/./; q'`
-  srcdir=$ac_confdir
-  if test ! -r "$srcdir/$ac_unique_file"; then
-    srcdir=..
-  fi
-else
-  ac_srcdir_defaulted=no
-fi
-if test ! -r "$srcdir/$ac_unique_file"; then
-  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
-  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
-fi
-ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
-ac_abs_confdir=`(
-	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
-	pwd)`
-# When building in place, set srcdir=.
-if test "$ac_abs_confdir" = "$ac_pwd"; then
-  srcdir=.
-fi
-# Remove unnecessary trailing slashes from srcdir.
-# Double slashes in file names in object file debugging info
-# mess up M-x gdb in Emacs.
-case $srcdir in
-*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
-esac
-for ac_var in $ac_precious_vars; do
-  eval ac_env_${ac_var}_set=\${${ac_var}+set}
-  eval ac_env_${ac_var}_value=\$${ac_var}
-  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
-  eval ac_cv_env_${ac_var}_value=\$${ac_var}
-done
-
-#
-# Report the --help message.
-#
-if test "$ac_init_help" = "long"; then
-  # Omit some internal or obsolete options to make the list less imposing.
-  # This message is too long to be a string in the A/UX 3.1 sh.
-  cat <<_ACEOF
-\`configure' configures qfits 6.2.0 to adapt to many kinds of systems.
-
-Usage: $0 [OPTION]... [VAR=VALUE]...
-
-To assign environment variables (e.g., CC, CFLAGS...), specify them as
-VAR=VALUE.  See below for descriptions of some of the useful variables.
-
-Defaults for the options are specified in brackets.
-
-Configuration:
-  -h, --help              display this help and exit
-      --help=short        display options specific to this package
-      --help=recursive    display the short help of all the included packages
-  -V, --version           display version information and exit
-  -q, --quiet, --silent   do not print \`checking ...' messages
-      --cache-file=FILE   cache test results in FILE [disabled]
-  -C, --config-cache      alias for \`--cache-file=config.cache'
-  -n, --no-create         do not create output files
-      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
-
-Installation directories:
-  --prefix=PREFIX         install architecture-independent files in PREFIX
-                          [$ac_default_prefix]
-  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
-                          [PREFIX]
-
-By default, \`make install' will install all the files in
-\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
-an installation prefix other than \`$ac_default_prefix' using \`--prefix',
-for instance \`--prefix=\$HOME'.
-
-For better control, use the options below.
-
-Fine tuning of the installation directories:
-  --bindir=DIR            user executables [EPREFIX/bin]
-  --sbindir=DIR           system admin executables [EPREFIX/sbin]
-  --libexecdir=DIR        program executables [EPREFIX/libexec]
-  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
-  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
-  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
-  --libdir=DIR            object code libraries [EPREFIX/lib]
-  --includedir=DIR        C header files [PREFIX/include]
-  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
-  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
-  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
-  --infodir=DIR           info documentation [DATAROOTDIR/info]
-  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
-  --mandir=DIR            man documentation [DATAROOTDIR/man]
-  --docdir=DIR            documentation root [DATAROOTDIR/doc/qfits]
-  --htmldir=DIR           html documentation [DOCDIR]
-  --dvidir=DIR            dvi documentation [DOCDIR]
-  --pdfdir=DIR            pdf documentation [DOCDIR]
-  --psdir=DIR             ps documentation [DOCDIR]
-_ACEOF
-
-  cat <<\_ACEOF
-
-Program names:
-  --program-prefix=PREFIX            prepend PREFIX to installed program names
-  --program-suffix=SUFFIX            append SUFFIX to installed program names
-  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
-
-System types:
-  --build=BUILD     configure for building on BUILD [guessed]
-  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
-_ACEOF
-fi
-
-if test -n "$ac_init_help"; then
-  case $ac_init_help in
-     short | recursive ) echo "Configuration of qfits 6.2.0:";;
-   esac
-  cat <<\_ACEOF
-
-Optional Features:
-  --disable-option-checking  ignore unrecognized --enable/--with options
-  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
-  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
-  --disable-dependency-tracking  speeds up one-time build
-  --enable-dependency-tracking   do not reject slow dependency extractors
-  --enable-shared[=PKGS]  build shared libraries [default=yes]
-  --enable-static[=PKGS]  build static libraries [default=yes]
-  --enable-fast-install[=PKGS]
-                          optimize for fast installation [default=yes]
-  --disable-libtool-lock  avoid locking (might break parallel builds)
-  --enable-memory-mode=M  where M=0 switches off the internal memory handling,
-                          M=1 exits the program whenever a memory allocation
-                          fails, M=2 switches on the internal memory handling,
-                          M=3 switches on the internal memory handling and the
-                          memory debug mode
-  --enable-max-ptrs=MAXPTRS
-                          MAXPTRS Set MAXPTRS as the maximum number of
-                          pointers allowed
-
-Optional Packages:
-  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
-  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
-  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
-                          both]
-  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
-  --with-sysroot=DIR Search for dependent libraries within DIR
-                        (or the compiler's sysroot if not specified).
-
-Some influential environment variables:
-  CC          C compiler command
-  CFLAGS      C compiler flags
-  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
-              nonstandard directory <lib dir>
-  LIBS        libraries to pass to the linker, e.g. -l<library>
-  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
-              you have headers in a nonstandard directory <include dir>
-  CPP         C preprocessor
-  DOXYGEN     doxygen command
-  LATEX       latex command
-
-Use these variables to override the choices made by `configure' or to help
-it to find libraries and programs with nonstandard names/locations.
-
-Report bugs to <yjung at eso.org>.
-_ACEOF
-ac_status=$?
-fi
-
-if test "$ac_init_help" = "recursive"; then
-  # If there are subdirs, report their specific --help.
-  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
-    test -d "$ac_dir" ||
-      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
-      continue
-    ac_builddir=.
-
-case "$ac_dir" in
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-*)
-  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
-  # A ".." for each directory in $ac_dir_suffix.
-  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
-  case $ac_top_builddir_sub in
-  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
-  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
-  esac ;;
-esac
-ac_abs_top_builddir=$ac_pwd
-ac_abs_builddir=$ac_pwd$ac_dir_suffix
-# for backward compatibility:
-ac_top_builddir=$ac_top_build_prefix
-
-case $srcdir in
-  .)  # We are building in place.
-    ac_srcdir=.
-    ac_top_srcdir=$ac_top_builddir_sub
-    ac_abs_top_srcdir=$ac_pwd ;;
-  [\\/]* | ?:[\\/]* )  # Absolute name.
-    ac_srcdir=$srcdir$ac_dir_suffix;
-    ac_top_srcdir=$srcdir
-    ac_abs_top_srcdir=$srcdir ;;
-  *) # Relative name.
-    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
-    ac_top_srcdir=$ac_top_build_prefix$srcdir
-    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
-esac
-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
-
-    cd "$ac_dir" || { ac_status=$?; continue; }
-    # Check for guested configure.
-    if test -f "$ac_srcdir/configure.gnu"; then
-      echo &&
-      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
-    elif test -f "$ac_srcdir/configure"; then
-      echo &&
-      $SHELL "$ac_srcdir/configure" --help=recursive
-    else
-      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
-    fi || ac_status=$?
-    cd "$ac_pwd" || { ac_status=$?; break; }
-  done
-fi
-
-test -n "$ac_init_help" && exit $ac_status
-if $ac_init_version; then
-  cat <<\_ACEOF
-qfits configure 6.2.0
-generated by GNU Autoconf 2.68
-
-Copyright (C) 2010 Free Software Foundation, Inc.
-This configure script is free software; the Free Software Foundation
-gives unlimited permission to copy, distribute and modify it.
-_ACEOF
-  exit
-fi
-
-## ------------------------ ##
-## Autoconf initialization. ##
-## ------------------------ ##
-
-# ac_fn_c_try_compile LINENO
-# --------------------------
-# Try to compile conftest.$ac_ext, and return whether this succeeded.
-ac_fn_c_try_compile ()
-{
-  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  rm -f conftest.$ac_objext
-  if { { ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_compile") 2>conftest.err
-  ac_status=$?
-  if test -s conftest.err; then
-    grep -v '^ *+' conftest.err >conftest.er1
-    cat conftest.er1 >&5
-    mv -f conftest.er1 conftest.err
-  fi
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } && {
-	 test -z "$ac_c_werror_flag" ||
-	 test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then :
-  ac_retval=0
-else
-  $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-	ac_retval=1
-fi
-  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-  as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_compile
-
-# ac_fn_c_try_link LINENO
-# -----------------------
-# Try to link conftest.$ac_ext, and return whether this succeeded.
-ac_fn_c_try_link ()
-{
-  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  rm -f conftest.$ac_objext conftest$ac_exeext
-  if { { ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_link") 2>conftest.err
-  ac_status=$?
-  if test -s conftest.err; then
-    grep -v '^ *+' conftest.err >conftest.er1
-    cat conftest.er1 >&5
-    mv -f conftest.er1 conftest.err
-  fi
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } && {
-	 test -z "$ac_c_werror_flag" ||
-	 test ! -s conftest.err
-       } && test -s conftest$ac_exeext && {
-	 test "$cross_compiling" = yes ||
-	 $as_test_x conftest$ac_exeext
-       }; then :
-  ac_retval=0
-else
-  $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-	ac_retval=1
-fi
-  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
-  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
-  # interfere with the next link command; also delete a directory that is
-  # left behind by Apple's compiler.  We do this before executing the actions.
-  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
-  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-  as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_link
-
-# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
-# -------------------------------------------------------
-# Tests whether HEADER exists and can be compiled using the include files in
-# INCLUDES, setting the cache variable VAR accordingly.
-ac_fn_c_check_header_compile ()
-{
-  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
-$as_echo_n "checking for $2... " >&6; }
-if eval \${$3+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-$4
-#include <$2>
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  eval "$3=yes"
-else
-  eval "$3=no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-eval ac_res=\$$3
-	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-
-} # ac_fn_c_check_header_compile
-
-# ac_fn_c_try_cpp LINENO
-# ----------------------
-# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
-ac_fn_c_try_cpp ()
-{
-  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  if { { ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
-  ac_status=$?
-  if test -s conftest.err; then
-    grep -v '^ *+' conftest.err >conftest.er1
-    cat conftest.er1 >&5
-    mv -f conftest.er1 conftest.err
-  fi
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } > conftest.i && {
-	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-	 test ! -s conftest.err
-       }; then :
-  ac_retval=0
-else
-  $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-    ac_retval=1
-fi
-  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-  as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_cpp
-
-# ac_fn_c_try_run LINENO
-# ----------------------
-# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
-# that executables *can* be run.
-ac_fn_c_try_run ()
-{
-  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  if { { ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_link") 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
-  { { case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_try") 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; }; then :
-  ac_retval=0
-else
-  $as_echo "$as_me: program exited with status $ac_status" >&5
-       $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_retval=$ac_status
-fi
-  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
-  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-  as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_run
-
-# ac_fn_c_check_func LINENO FUNC VAR
-# ----------------------------------
-# Tests whether FUNC exists, setting the cache variable VAR accordingly
-ac_fn_c_check_func ()
-{
-  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
-$as_echo_n "checking for $2... " >&6; }
-if eval \${$3+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
-#define $2 innocuous_$2
-
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char $2 (); below.
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-    <limits.h> exists even on freestanding compilers.  */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef $2
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char $2 ();
-/* The GNU C library defines this for functions which it implements
-    to always fail with ENOSYS.  Some functions are actually named
-    something starting with __ and the normal name is an alias.  */
-#if defined __stub_$2 || defined __stub___$2
-choke me
-#endif
-
-int
-main ()
-{
-return $2 ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  eval "$3=yes"
-else
-  eval "$3=no"
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-fi
-eval ac_res=\$$3
-	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-
-} # ac_fn_c_check_func
-
-# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
-# -------------------------------------------------------
-# Tests whether HEADER exists, giving a warning if it cannot be compiled using
-# the include files in INCLUDES and setting the cache variable VAR
-# accordingly.
-ac_fn_c_check_header_mongrel ()
-{
-  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  if eval \${$3+:} false; then :
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
-$as_echo_n "checking for $2... " >&6; }
-if eval \${$3+:} false; then :
-  $as_echo_n "(cached) " >&6
-fi
-eval ac_res=\$$3
-	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-else
-  # Is the header compilable?
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
-$as_echo_n "checking $2 usability... " >&6; }
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-$4
-#include <$2>
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_header_compiler=yes
-else
-  ac_header_compiler=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
-$as_echo "$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
-$as_echo_n "checking $2 presence... " >&6; }
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <$2>
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-  ac_header_preproc=yes
-else
-  ac_header_preproc=no
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
-$as_echo "$ac_header_preproc" >&6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
-  yes:no: )
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
-$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
-    ;;
-  no:yes:* )
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
-$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
-$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
-$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
-$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
-( $as_echo "## ---------------------------- ##
-## Report this to yjung at eso.org ##
-## ---------------------------- ##"
-     ) | sed "s/^/$as_me: WARNING:     /" >&2
-    ;;
-esac
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
-$as_echo_n "checking for $2... " >&6; }
-if eval \${$3+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  eval "$3=\$ac_header_compiler"
-fi
-eval ac_res=\$$3
-	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-fi
-  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-
-} # ac_fn_c_check_header_mongrel
-
-# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
-# -------------------------------------------
-# Tests whether TYPE exists after having included INCLUDES, setting cache
-# variable VAR accordingly.
-ac_fn_c_check_type ()
-{
-  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
-$as_echo_n "checking for $2... " >&6; }
-if eval \${$3+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  eval "$3=no"
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-$4
-int
-main ()
-{
-if (sizeof ($2))
-	 return 0;
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-$4
-int
-main ()
-{
-if (sizeof (($2)))
-	    return 0;
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-else
-  eval "$3=yes"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-eval ac_res=\$$3
-	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-
-} # ac_fn_c_check_type
-cat >config.log <<_ACEOF
-This file contains any messages produced by compilers while
-running configure, to aid debugging if configure makes a mistake.
-
-It was created by qfits $as_me 6.2.0, which was
-generated by GNU Autoconf 2.68.  Invocation command line was
-
-  $ $0 $@
-
-_ACEOF
-exec 5>>config.log
-{
-cat <<_ASUNAME
-## --------- ##
-## Platform. ##
-## --------- ##
-
-hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
-uname -m = `(uname -m) 2>/dev/null || echo unknown`
-uname -r = `(uname -r) 2>/dev/null || echo unknown`
-uname -s = `(uname -s) 2>/dev/null || echo unknown`
-uname -v = `(uname -v) 2>/dev/null || echo unknown`
-
-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
-/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
-
-/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
-/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
-/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
-/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
-/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
-/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
-
-_ASUNAME
-
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    $as_echo "PATH: $as_dir"
-  done
-IFS=$as_save_IFS
-
-} >&5
-
-cat >&5 <<_ACEOF
-
-
-## ----------- ##
-## Core tests. ##
-## ----------- ##
-
-_ACEOF
-
-
-# Keep a trace of the command line.
-# Strip out --no-create and --no-recursion so they do not pile up.
-# Strip out --silent because we don't want to record it for future runs.
-# Also quote any args containing shell meta-characters.
-# Make two passes to allow for proper duplicate-argument suppression.
-ac_configure_args=
-ac_configure_args0=
-ac_configure_args1=
-ac_must_keep_next=false
-for ac_pass in 1 2
-do
-  for ac_arg
-  do
-    case $ac_arg in
-    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
-    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
-    | -silent | --silent | --silen | --sile | --sil)
-      continue ;;
-    *\'*)
-      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
-    esac
-    case $ac_pass in
-    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
-    2)
-      as_fn_append ac_configure_args1 " '$ac_arg'"
-      if test $ac_must_keep_next = true; then
-	ac_must_keep_next=false # Got value, back to normal.
-      else
-	case $ac_arg in
-	  *=* | --config-cache | -C | -disable-* | --disable-* \
-	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
-	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
-	  | -with-* | --with-* | -without-* | --without-* | --x)
-	    case "$ac_configure_args0 " in
-	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
-	    esac
-	    ;;
-	  -* ) ac_must_keep_next=true ;;
-	esac
-      fi
-      as_fn_append ac_configure_args " '$ac_arg'"
-      ;;
-    esac
-  done
-done
-{ ac_configure_args0=; unset ac_configure_args0;}
-{ ac_configure_args1=; unset ac_configure_args1;}
-
-# When interrupted or exit'd, cleanup temporary files, and complete
-# config.log.  We remove comments because anyway the quotes in there
-# would cause problems or look ugly.
-# WARNING: Use '\'' to represent an apostrophe within the trap.
-# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
-trap 'exit_status=$?
-  # Save into config.log some information that might help in debugging.
-  {
-    echo
-
-    $as_echo "## ---------------- ##
-## Cache variables. ##
-## ---------------- ##"
-    echo
-    # The following way of writing the cache mishandles newlines in values,
-(
-  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
-    eval ac_val=\$$ac_var
-    case $ac_val in #(
-    *${as_nl}*)
-      case $ac_var in #(
-      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
-      esac
-      case $ac_var in #(
-      _ | IFS | as_nl) ;; #(
-      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
-      *) { eval $ac_var=; unset $ac_var;} ;;
-      esac ;;
-    esac
-  done
-  (set) 2>&1 |
-    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
-    *${as_nl}ac_space=\ *)
-      sed -n \
-	"s/'\''/'\''\\\\'\'''\''/g;
-	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
-      ;; #(
-    *)
-      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
-      ;;
-    esac |
-    sort
-)
-    echo
-
-    $as_echo "## ----------------- ##
-## Output variables. ##
-## ----------------- ##"
-    echo
-    for ac_var in $ac_subst_vars
-    do
-      eval ac_val=\$$ac_var
-      case $ac_val in
-      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
-      esac
-      $as_echo "$ac_var='\''$ac_val'\''"
-    done | sort
-    echo
-
-    if test -n "$ac_subst_files"; then
-      $as_echo "## ------------------- ##
-## File substitutions. ##
-## ------------------- ##"
-      echo
-      for ac_var in $ac_subst_files
-      do
-	eval ac_val=\$$ac_var
-	case $ac_val in
-	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
-	esac
-	$as_echo "$ac_var='\''$ac_val'\''"
-      done | sort
-      echo
-    fi
-
-    if test -s confdefs.h; then
-      $as_echo "## ----------- ##
-## confdefs.h. ##
-## ----------- ##"
-      echo
-      cat confdefs.h
-      echo
-    fi
-    test "$ac_signal" != 0 &&
-      $as_echo "$as_me: caught signal $ac_signal"
-    $as_echo "$as_me: exit $exit_status"
-  } >&5
-  rm -f core *.core core.conftest.* &&
-    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
-    exit $exit_status
-' 0
-for ac_signal in 1 2 13 15; do
-  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
-done
-ac_signal=0
-
-# confdefs.h avoids OS command line length limits that DEFS can exceed.
-rm -f -r conftest* confdefs.h
-
-$as_echo "/* confdefs.h */" > confdefs.h
-
-# Predefined preprocessor variables.
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_NAME "$PACKAGE_NAME"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_VERSION "$PACKAGE_VERSION"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_STRING "$PACKAGE_STRING"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_URL "$PACKAGE_URL"
-_ACEOF
-
-
-# Let the site file select an alternate cache file if it wants to.
-# Prefer an explicitly selected file to automatically selected ones.
-ac_site_file1=NONE
-ac_site_file2=NONE
-if test -n "$CONFIG_SITE"; then
-  # We do not want a PATH search for config.site.
-  case $CONFIG_SITE in #((
-    -*)  ac_site_file1=./$CONFIG_SITE;;
-    */*) ac_site_file1=$CONFIG_SITE;;
-    *)   ac_site_file1=./$CONFIG_SITE;;
-  esac
-elif test "x$prefix" != xNONE; then
-  ac_site_file1=$prefix/share/config.site
-  ac_site_file2=$prefix/etc/config.site
-else
-  ac_site_file1=$ac_default_prefix/share/config.site
-  ac_site_file2=$ac_default_prefix/etc/config.site
-fi
-for ac_site_file in "$ac_site_file1" "$ac_site_file2"
-do
-  test "x$ac_site_file" = xNONE && continue
-  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
-$as_echo "$as_me: loading site script $ac_site_file" >&6;}
-    sed 's/^/| /' "$ac_site_file" >&5
-    . "$ac_site_file" \
-      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "failed to load site script $ac_site_file
-See \`config.log' for more details" "$LINENO" 5; }
-  fi
-done
-
-if test -r "$cache_file"; then
-  # Some versions of bash will fail to source /dev/null (special files
-  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
-  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
-$as_echo "$as_me: loading cache $cache_file" >&6;}
-    case $cache_file in
-      [\\/]* | ?:[\\/]* ) . "$cache_file";;
-      *)                      . "./$cache_file";;
-    esac
-  fi
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
-$as_echo "$as_me: creating cache $cache_file" >&6;}
-  >$cache_file
-fi
-
-as_fn_append ac_header_list " stdlib.h"
-as_fn_append ac_header_list " unistd.h"
-as_fn_append ac_header_list " sys/param.h"
-# Check that the precious variables saved in the cache have kept the same
-# value.
-ac_cache_corrupted=false
-for ac_var in $ac_precious_vars; do
-  eval ac_old_set=\$ac_cv_env_${ac_var}_set
-  eval ac_new_set=\$ac_env_${ac_var}_set
-  eval ac_old_val=\$ac_cv_env_${ac_var}_value
-  eval ac_new_val=\$ac_env_${ac_var}_value
-  case $ac_old_set,$ac_new_set in
-    set,)
-      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
-$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
-      ac_cache_corrupted=: ;;
-    ,set)
-      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
-$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
-      ac_cache_corrupted=: ;;
-    ,);;
-    *)
-      if test "x$ac_old_val" != "x$ac_new_val"; then
-	# differences in whitespace do not lead to failure.
-	ac_old_val_w=`echo x $ac_old_val`
-	ac_new_val_w=`echo x $ac_new_val`
-	if test "$ac_old_val_w" != "$ac_new_val_w"; then
-	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
-$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
-	  ac_cache_corrupted=:
-	else
-	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
-$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
-	  eval $ac_var=\$ac_old_val
-	fi
-	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
-$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
-	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
-$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
-      fi;;
-  esac
-  # Pass precious variables to config.status.
-  if test "$ac_new_set" = set; then
-    case $ac_new_val in
-    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
-    *) ac_arg=$ac_var=$ac_new_val ;;
-    esac
-    case " $ac_configure_args " in
-      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
-      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
-    esac
-  fi
-done
-if $ac_cache_corrupted; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
-$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
-  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
-fi
-## -------------------- ##
-## Main body of script. ##
-## -------------------- ##
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-
-
-ac_config_headers="$ac_config_headers config.h"
-
-ac_aux_dir=
-for ac_dir in admin "$srcdir"/admin; do
-  if test -f "$ac_dir/install-sh"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/install-sh -c"
-    break
-  elif test -f "$ac_dir/install.sh"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/install.sh -c"
-    break
-  elif test -f "$ac_dir/shtool"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/shtool install -c"
-    break
-  fi
-done
-if test -z "$ac_aux_dir"; then
-  as_fn_error $? "cannot find install-sh, install.sh, or shtool in admin \"$srcdir\"/admin" "$LINENO" 5
-fi
-
-# These three variables are undocumented and unsupported,
-# and are intended to be withdrawn in a future Autoconf release.
-# They can cause serious problems if a builder's source tree is in a directory
-# whose full name contains unusual characters.
-ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
-ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
-ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
-
-
-am__api_version='1.11'
-
-# Find a good install program.  We prefer a C program (faster),
-# so one script is as good as another.  But avoid the broken or
-# incompatible versions:
-# SysV /etc/install, /usr/sbin/install
-# SunOS /usr/etc/install
-# IRIX /sbin/install
-# AIX /bin/install
-# AmigaOS /C/install, which installs bootblocks on floppy discs
-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
-# AFS /usr/afsws/bin/install, which mishandles nonexistent args
-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
-# OS/2's system install, which has a completely different semantic
-# ./install, which can be erroneously created by make from ./install.sh.
-# Reject install programs that cannot install multiple files.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
-$as_echo_n "checking for a BSD-compatible install... " >&6; }
-if test -z "$INSTALL"; then
-if ${ac_cv_path_install+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    # Account for people who put trailing slashes in PATH elements.
-case $as_dir/ in #((
-  ./ | .// | /[cC]/* | \
-  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
-  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
-  /usr/ucb/* ) ;;
-  *)
-    # OSF1 and SCO ODT 3.0 have their own names for install.
-    # Don't use installbsd from OSF since it installs stuff as root
-    # by default.
-    for ac_prog in ginstall scoinst install; do
-      for ac_exec_ext in '' $ac_executable_extensions; do
-	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
-	  if test $ac_prog = install &&
-	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
-	    # AIX install.  It has an incompatible calling convention.
-	    :
-	  elif test $ac_prog = install &&
-	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
-	    # program-specific install script used by HP pwplus--don't use.
-	    :
-	  else
-	    rm -rf conftest.one conftest.two conftest.dir
-	    echo one > conftest.one
-	    echo two > conftest.two
-	    mkdir conftest.dir
-	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
-	      test -s conftest.one && test -s conftest.two &&
-	      test -s conftest.dir/conftest.one &&
-	      test -s conftest.dir/conftest.two
-	    then
-	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
-	      break 3
-	    fi
-	  fi
-	fi
-      done
-    done
-    ;;
-esac
-
-  done
-IFS=$as_save_IFS
-
-rm -rf conftest.one conftest.two conftest.dir
-
-fi
-  if test "${ac_cv_path_install+set}" = set; then
-    INSTALL=$ac_cv_path_install
-  else
-    # As a last resort, use the slow shell script.  Don't cache a
-    # value for INSTALL within a source directory, because that will
-    # break other packages using the cache if that directory is
-    # removed, or if the value is a relative name.
-    INSTALL=$ac_install_sh
-  fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
-$as_echo "$INSTALL" >&6; }
-
-# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
-# It thinks the first close brace ends the variable substitution.
-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
-
-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
-
-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
-$as_echo_n "checking whether build environment is sane... " >&6; }
-# Just in case
-sleep 1
-echo timestamp > conftest.file
-# Reject unsafe characters in $srcdir or the absolute working directory
-# name.  Accept space and tab only in the latter.
-am_lf='
-'
-case `pwd` in
-  *[\\\"\#\$\&\'\`$am_lf]*)
-    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
-esac
-case $srcdir in
-  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
-    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
-esac
-
-# Do `set' in a subshell so we don't clobber the current shell's
-# arguments.  Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
-   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
-   if test "$*" = "X"; then
-      # -L didn't work.
-      set X `ls -t "$srcdir/configure" conftest.file`
-   fi
-   rm -f conftest.file
-   if test "$*" != "X $srcdir/configure conftest.file" \
-      && test "$*" != "X conftest.file $srcdir/configure"; then
-
-      # If neither matched, then we have a broken ls.  This can happen
-      # if, for instance, CONFIG_SHELL is bash and it inherits a
-      # broken ls alias from the environment.  This has actually
-      # happened.  Such a system could not be considered "sane".
-      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
-alias in your environment" "$LINENO" 5
-   fi
-
-   test "$2" = conftest.file
-   )
-then
-   # Ok.
-   :
-else
-   as_fn_error $? "newly created file is older than distributed files!
-Check your system clock" "$LINENO" 5
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-test "$program_prefix" != NONE &&
-  program_transform_name="s&^&$program_prefix&;$program_transform_name"
-# Use a double $ so make ignores it.
-test "$program_suffix" != NONE &&
-  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
-# Double any \ or $.
-# By default was `s,x,x', remove it if useless.
-ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
-program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
-
-# expand $ac_aux_dir to an absolute path
-am_aux_dir=`cd $ac_aux_dir && pwd`
-
-if test x"${MISSING+set}" != xset; then
-  case $am_aux_dir in
-  *\ * | *\	*)
-    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
-  *)
-    MISSING="\${SHELL} $am_aux_dir/missing" ;;
-  esac
-fi
-# Use eval to expand $SHELL
-if eval "$MISSING --run true"; then
-  am_missing_run="$MISSING --run "
-else
-  am_missing_run=
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
-$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
-fi
-
-if test x"${install_sh}" != xset; then
-  case $am_aux_dir in
-  *\ * | *\	*)
-    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
-  *)
-    install_sh="\${SHELL} $am_aux_dir/install-sh"
-  esac
-fi
-
-# Installed binaries are usually stripped using `strip' when the user
-# run `make install-strip'.  However `strip' might not be the right
-# tool to use in cross-compilation environments, therefore Automake
-# will honor the `STRIP' environment variable to overrule this program.
-if test "$cross_compiling" != no; then
-  if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
-set dummy ${ac_tool_prefix}strip; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_STRIP+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$STRIP"; then
-  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-STRIP=$ac_cv_prog_STRIP
-if test -n "$STRIP"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
-$as_echo "$STRIP" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_STRIP"; then
-  ac_ct_STRIP=$STRIP
-  # Extract the first word of "strip", so it can be a program name with args.
-set dummy strip; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_STRIP"; then
-  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_STRIP="strip"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
-if test -n "$ac_ct_STRIP"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
-$as_echo "$ac_ct_STRIP" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_STRIP" = x; then
-    STRIP=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    STRIP=$ac_ct_STRIP
-  fi
-else
-  STRIP="$ac_cv_prog_STRIP"
-fi
-
-fi
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
-$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
-if test -z "$MKDIR_P"; then
-  if ${ac_cv_path_mkdir+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_prog in mkdir gmkdir; do
-	 for ac_exec_ext in '' $ac_executable_extensions; do
-	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
-	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
-	     'mkdir (GNU coreutils) '* | \
-	     'mkdir (coreutils) '* | \
-	     'mkdir (fileutils) '4.1*)
-	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
-	       break 3;;
-	   esac
-	 done
-       done
-  done
-IFS=$as_save_IFS
-
-fi
-
-  test -d ./--version && rmdir ./--version
-  if test "${ac_cv_path_mkdir+set}" = set; then
-    MKDIR_P="$ac_cv_path_mkdir -p"
-  else
-    # As a last resort, use the slow shell script.  Don't cache a
-    # value for MKDIR_P within a source directory, because that will
-    # break other packages using the cache if that directory is
-    # removed, or if the value is a relative name.
-    MKDIR_P="$ac_install_sh -d"
-  fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
-$as_echo "$MKDIR_P" >&6; }
-
-mkdir_p="$MKDIR_P"
-case $mkdir_p in
-  [\\/$]* | ?:[\\/]*) ;;
-  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
-esac
-
-for ac_prog in gawk mawk nawk awk
-do
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_AWK+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$AWK"; then
-  ac_cv_prog_AWK="$AWK" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_AWK="$ac_prog"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-AWK=$ac_cv_prog_AWK
-if test -n "$AWK"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
-$as_echo "$AWK" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-  test -n "$AWK" && break
-done
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
-$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
-set x ${MAKE-make}
-ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
-if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat >conftest.make <<\_ACEOF
-SHELL = /bin/sh
-all:
-	@echo '@@@%%%=$(MAKE)=@@@%%%'
-_ACEOF
-# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
-case `${MAKE-make} -f conftest.make 2>/dev/null` in
-  *@@@%%%=?*=@@@%%%*)
-    eval ac_cv_prog_make_${ac_make}_set=yes;;
-  *)
-    eval ac_cv_prog_make_${ac_make}_set=no;;
-esac
-rm -f conftest.make
-fi
-if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-  SET_MAKE=
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-  SET_MAKE="MAKE=${MAKE-make}"
-fi
-
-rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
-  am__leading_dot=.
-else
-  am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
-  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
-  # is not polluted with repeated "-I."
-  am__isrc=' -I$(srcdir)'
-  # test to see if srcdir already configured
-  if test -f $srcdir/config.status; then
-    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
-  fi
-fi
-
-# test whether we have cygpath
-if test -z "$CYGPATH_W"; then
-  if (cygpath --version) >/dev/null 2>/dev/null; then
-    CYGPATH_W='cygpath -w'
-  else
-    CYGPATH_W=echo
-  fi
-fi
-
-
-# Define the identity of the package.
- PACKAGE='qfits'
- VERSION='6.2.0'
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE "$PACKAGE"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define VERSION "$VERSION"
-_ACEOF
-
-# Some tools Automake needs.
-
-ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
-
-
-AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
-
-
-AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
-
-
-AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
-
-
-MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
-
-# We need awk for the "check" target.  The system "awk" is bad on
-# some platforms.
-# Always define AMTAR for backward compatibility.  Yes, it's still used
-# in the wild :-(  We should find a proper way to deprecate it ...
-AMTAR='$${TAR-tar}'
-
-am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
-
-
-
-
-
-
-# Checks for programs.
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}gcc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$CC"; then
-  ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_CC="${ac_tool_prefix}gcc"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_CC"; then
-  ac_ct_CC=$CC
-  # Extract the first word of "gcc", so it can be a program name with args.
-set dummy gcc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_CC+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_CC"; then
-  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_CC="gcc"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
-$as_echo "$ac_ct_CC" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_CC" = x; then
-    CC=""
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    CC=$ac_ct_CC
-  fi
-else
-  CC="$ac_cv_prog_CC"
-fi
-
-if test -z "$CC"; then
-          if test -n "$ac_tool_prefix"; then
-    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}cc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$CC"; then
-  ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_CC="${ac_tool_prefix}cc"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-  fi
-fi
-if test -z "$CC"; then
-  # Extract the first word of "cc", so it can be a program name with args.
-set dummy cc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$CC"; then
-  ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-  ac_prog_rejected=no
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
-       ac_prog_rejected=yes
-       continue
-     fi
-    ac_cv_prog_CC="cc"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-if test $ac_prog_rejected = yes; then
-  # We found a bogon in the path, so make sure we never use it.
-  set dummy $ac_cv_prog_CC
-  shift
-  if test $# != 0; then
-    # We chose a different compiler from the bogus one.
-    # However, it has the same basename, so the bogon will be chosen
-    # first if we set CC to just the basename; use the full file name.
-    shift
-    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
-  fi
-fi
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$CC"; then
-  if test -n "$ac_tool_prefix"; then
-  for ac_prog in cl.exe
-  do
-    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$CC"; then
-  ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-    test -n "$CC" && break
-  done
-fi
-if test -z "$CC"; then
-  ac_ct_CC=$CC
-  for ac_prog in cl.exe
-do
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_CC+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_CC"; then
-  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_CC="$ac_prog"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
-$as_echo "$ac_ct_CC" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-  test -n "$ac_ct_CC" && break
-done
-
-  if test "x$ac_ct_CC" = x; then
-    CC=""
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    CC=$ac_ct_CC
-  fi
-fi
-
-fi
-
-
-test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5; }
-
-# Provide some information about the compiler.
-$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
-set X $ac_compile
-ac_compiler=$2
-for ac_option in --version -v -V -qversion; do
-  { { ac_try="$ac_compiler $ac_option >&5"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
-  ac_status=$?
-  if test -s conftest.err; then
-    sed '10a\
-... rest of stderr output deleted ...
-         10q' conftest.err >conftest.er1
-    cat conftest.er1 >&5
-  fi
-  rm -f conftest.er1 conftest.err
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }
-done
-
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
-# Try to create an executable without -o first, disregard a.out.
-# It will help us diagnose broken compilers, and finding out an intuition
-# of exeext.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
-$as_echo_n "checking whether the C compiler works... " >&6; }
-ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
-
-# The possible output files:
-ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
-
-ac_rmfiles=
-for ac_file in $ac_files
-do
-  case $ac_file in
-    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
-    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
-  esac
-done
-rm -f $ac_rmfiles
-
-if { { ac_try="$ac_link_default"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_link_default") 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; then :
-  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
-# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
-# in a Makefile.  We should not override ac_cv_exeext if it was cached,
-# so that the user can short-circuit this test for compilers unknown to
-# Autoconf.
-for ac_file in $ac_files ''
-do
-  test -f "$ac_file" || continue
-  case $ac_file in
-    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
-	;;
-    [ab].out )
-	# We found the default executable, but exeext='' is most
-	# certainly right.
-	break;;
-    *.* )
-	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
-	then :; else
-	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
-	fi
-	# We set ac_cv_exeext here because the later test for it is not
-	# safe: cross compilers may not add the suffix if given an `-o'
-	# argument, so we may need to know it at that point already.
-	# Even if this section looks crufty: it has the advantage of
-	# actually working.
-	break;;
-    * )
-	break;;
-  esac
-done
-test "$ac_cv_exeext" = no && ac_cv_exeext=
-
-else
-  ac_file=''
-fi
-if test -z "$ac_file"; then :
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-$as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error 77 "C compiler cannot create executables
-See \`config.log' for more details" "$LINENO" 5; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
-$as_echo_n "checking for C compiler default output file name... " >&6; }
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
-$as_echo "$ac_file" >&6; }
-ac_exeext=$ac_cv_exeext
-
-rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
-ac_clean_files=$ac_clean_files_save
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
-$as_echo_n "checking for suffix of executables... " >&6; }
-if { { ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_link") 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; then :
-  # If both `conftest.exe' and `conftest' are `present' (well, observable)
-# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
-# work properly (i.e., refer to `conftest.exe'), while it won't with
-# `rm'.
-for ac_file in conftest.exe conftest conftest.*; do
-  test -f "$ac_file" || continue
-  case $ac_file in
-    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
-    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
-	  break;;
-    * ) break;;
-  esac
-done
-else
-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-rm -f conftest conftest$ac_cv_exeext
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
-$as_echo "$ac_cv_exeext" >&6; }
-
-rm -f conftest.$ac_ext
-EXEEXT=$ac_cv_exeext
-ac_exeext=$EXEEXT
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdio.h>
-int
-main ()
-{
-FILE *f = fopen ("conftest.out", "w");
- return ferror (f) || fclose (f) != 0;
-
-  ;
-  return 0;
-}
-_ACEOF
-ac_clean_files="$ac_clean_files conftest.out"
-# Check that the compiler produces executables we can run.  If not, either
-# the compiler is broken, or we cross compile.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
-$as_echo_n "checking whether we are cross compiling... " >&6; }
-if test "$cross_compiling" != yes; then
-  { { ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_link") 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }
-  if { ac_try='./conftest$ac_cv_exeext'
-  { { case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_try") 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; }; then
-    cross_compiling=no
-  else
-    if test "$cross_compiling" = maybe; then
-	cross_compiling=yes
-    else
-	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run C compiled programs.
-If you meant to cross compile, use \`--host'.
-See \`config.log' for more details" "$LINENO" 5; }
-    fi
-  fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
-$as_echo "$cross_compiling" >&6; }
-
-rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
-ac_clean_files=$ac_clean_files_save
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
-$as_echo_n "checking for suffix of object files... " >&6; }
-if ${ac_cv_objext+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.o conftest.obj
-if { { ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_compile") 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; then :
-  for ac_file in conftest.o conftest.obj conftest.*; do
-  test -f "$ac_file" || continue;
-  case $ac_file in
-    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
-    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
-       break;;
-  esac
-done
-else
-  $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot compute suffix of object files: cannot compile
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-rm -f conftest.$ac_cv_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
-$as_echo "$ac_cv_objext" >&6; }
-OBJEXT=$ac_cv_objext
-ac_objext=$OBJEXT
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
-$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
-if ${ac_cv_c_compiler_gnu+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-#ifndef __GNUC__
-       choke me
-#endif
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_compiler_gnu=yes
-else
-  ac_compiler_gnu=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-ac_cv_c_compiler_gnu=$ac_compiler_gnu
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
-$as_echo "$ac_cv_c_compiler_gnu" >&6; }
-if test $ac_compiler_gnu = yes; then
-  GCC=yes
-else
-  GCC=
-fi
-ac_test_CFLAGS=${CFLAGS+set}
-ac_save_CFLAGS=$CFLAGS
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
-$as_echo_n "checking whether $CC accepts -g... " >&6; }
-if ${ac_cv_prog_cc_g+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_save_c_werror_flag=$ac_c_werror_flag
-   ac_c_werror_flag=yes
-   ac_cv_prog_cc_g=no
-   CFLAGS="-g"
-   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_prog_cc_g=yes
-else
-  CFLAGS=""
-      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-else
-  ac_c_werror_flag=$ac_save_c_werror_flag
-	 CFLAGS="-g"
-	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_prog_cc_g=yes
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-   ac_c_werror_flag=$ac_save_c_werror_flag
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
-$as_echo "$ac_cv_prog_cc_g" >&6; }
-if test "$ac_test_CFLAGS" = set; then
-  CFLAGS=$ac_save_CFLAGS
-elif test $ac_cv_prog_cc_g = yes; then
-  if test "$GCC" = yes; then
-    CFLAGS="-g -O2"
-  else
-    CFLAGS="-g"
-  fi
-else
-  if test "$GCC" = yes; then
-    CFLAGS="-O2"
-  else
-    CFLAGS=
-  fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
-$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
-if ${ac_cv_prog_cc_c89+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_cv_prog_cc_c89=no
-ac_save_CC=$CC
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdarg.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
-struct buf { int x; };
-FILE * (*rcsopen) (struct buf *, struct stat *, int);
-static char *e (p, i)
-     char **p;
-     int i;
-{
-  return p[i];
-}
-static char *f (char * (*g) (char **, int), char **p, ...)
-{
-  char *s;
-  va_list v;
-  va_start (v,p);
-  s = g (p, va_arg (v,int));
-  va_end (v);
-  return s;
-}
-
-/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
-   function prototypes and stuff, but not '\xHH' hex character constants.
-   These don't provoke an error unfortunately, instead are silently treated
-   as 'x'.  The following induces an error, until -std is added to get
-   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
-   array size at least.  It's necessary to write '\x00'==0 to get something
-   that's true only with -std.  */
-int osf4_cc_array ['\x00' == 0 ? 1 : -1];
-
-/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
-   inside strings and character constants.  */
-#define FOO(x) 'x'
-int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
-
-int test (int i, double x);
-struct s1 {int (*f) (int a);};
-struct s2 {int (*f) (double a);};
-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
-int argc;
-char **argv;
-int
-main ()
-{
-return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
-  ;
-  return 0;
-}
-_ACEOF
-for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
-	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
-do
-  CC="$ac_save_CC $ac_arg"
-  if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_prog_cc_c89=$ac_arg
-fi
-rm -f core conftest.err conftest.$ac_objext
-  test "x$ac_cv_prog_cc_c89" != "xno" && break
-done
-rm -f conftest.$ac_ext
-CC=$ac_save_CC
-
-fi
-# AC_CACHE_VAL
-case "x$ac_cv_prog_cc_c89" in
-  x)
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
-$as_echo "none needed" >&6; } ;;
-  xno)
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
-$as_echo "unsupported" >&6; } ;;
-  *)
-    CC="$CC $ac_cv_prog_cc_c89"
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
-$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
-esac
-if test "x$ac_cv_prog_cc_c89" != xno; then :
-
-fi
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-DEPDIR="${am__leading_dot}deps"
-
-ac_config_commands="$ac_config_commands depfiles"
-
-
-am_make=${MAKE-make}
-cat > confinc << 'END'
-am__doit:
-	@echo this is the am__doit target
-.PHONY: am__doit
-END
-# If we don't find an include directive, just comment out the code.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
-$as_echo_n "checking for style of include used by $am_make... " >&6; }
-am__include="#"
-am__quote=
-_am_result=none
-# First try GNU make style include.
-echo "include confinc" > confmf
-# Ignore all kinds of additional output from `make'.
-case `$am_make -s -f confmf 2> /dev/null` in #(
-*the\ am__doit\ target*)
-  am__include=include
-  am__quote=
-  _am_result=GNU
-  ;;
-esac
-# Now try BSD make style include.
-if test "$am__include" = "#"; then
-   echo '.include "confinc"' > confmf
-   case `$am_make -s -f confmf 2> /dev/null` in #(
-   *the\ am__doit\ target*)
-     am__include=.include
-     am__quote="\""
-     _am_result=BSD
-     ;;
-   esac
-fi
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
-$as_echo "$_am_result" >&6; }
-rm -f confinc confmf
-
-# Check whether --enable-dependency-tracking was given.
-if test "${enable_dependency_tracking+set}" = set; then :
-  enableval=$enable_dependency_tracking;
-fi
-
-if test "x$enable_dependency_tracking" != xno; then
-  am_depcomp="$ac_aux_dir/depcomp"
-  AMDEPBACKSLASH='\'
-  am__nodep='_no'
-fi
- if test "x$enable_dependency_tracking" != xno; then
-  AMDEP_TRUE=
-  AMDEP_FALSE='#'
-else
-  AMDEP_TRUE='#'
-  AMDEP_FALSE=
-fi
-
-
-
-depcc="$CC"   am_compiler_list=
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
-$as_echo_n "checking dependency style of $depcc... " >&6; }
-if ${am_cv_CC_dependencies_compiler_type+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
-  # We make a subdir and do the tests there.  Otherwise we can end up
-  # making bogus files that we don't know about and never remove.  For
-  # instance it was reported that on HP-UX the gcc test will end up
-  # making a dummy file named `D' -- because `-MD' means `put the output
-  # in D'.
-  rm -rf conftest.dir
-  mkdir conftest.dir
-  # Copy depcomp to subdir because otherwise we won't find it if we're
-  # using a relative directory.
-  cp "$am_depcomp" conftest.dir
-  cd conftest.dir
-  # We will build objects and dependencies in a subdirectory because
-  # it helps to detect inapplicable dependency modes.  For instance
-  # both Tru64's cc and ICC support -MD to output dependencies as a
-  # side effect of compilation, but ICC will put the dependencies in
-  # the current directory while Tru64 will put them in the object
-  # directory.
-  mkdir sub
-
-  am_cv_CC_dependencies_compiler_type=none
-  if test "$am_compiler_list" = ""; then
-     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
-  fi
-  am__universal=false
-  case " $depcc " in #(
-     *\ -arch\ *\ -arch\ *) am__universal=true ;;
-     esac
-
-  for depmode in $am_compiler_list; do
-    # Setup a source with many dependencies, because some compilers
-    # like to wrap large dependency lists on column 80 (with \), and
-    # we should not choose a depcomp mode which is confused by this.
-    #
-    # We need to recreate these files for each test, as the compiler may
-    # overwrite some of them when testing with obscure command lines.
-    # This happens at least with the AIX C compiler.
-    : > sub/conftest.c
-    for i in 1 2 3 4 5 6; do
-      echo '#include "conftst'$i'.h"' >> sub/conftest.c
-      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
-      # Solaris 8's {/usr,}/bin/sh.
-      touch sub/conftst$i.h
-    done
-    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
-
-    # We check with `-c' and `-o' for the sake of the "dashmstdout"
-    # mode.  It turns out that the SunPro C++ compiler does not properly
-    # handle `-M -o', and we need to detect this.  Also, some Intel
-    # versions had trouble with output in subdirs
-    am__obj=sub/conftest.${OBJEXT-o}
-    am__minus_obj="-o $am__obj"
-    case $depmode in
-    gcc)
-      # This depmode causes a compiler race in universal mode.
-      test "$am__universal" = false || continue
-      ;;
-    nosideeffect)
-      # after this tag, mechanisms are not by side-effect, so they'll
-      # only be used when explicitly requested
-      if test "x$enable_dependency_tracking" = xyes; then
-	continue
-      else
-	break
-      fi
-      ;;
-    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
-      # This compiler won't grok `-c -o', but also, the minuso test has
-      # not run yet.  These depmodes are late enough in the game, and
-      # so weak that their functioning should not be impacted.
-      am__obj=conftest.${OBJEXT-o}
-      am__minus_obj=
-      ;;
-    none) break ;;
-    esac
-    if depmode=$depmode \
-       source=sub/conftest.c object=$am__obj \
-       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
-       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
-         >/dev/null 2>conftest.err &&
-       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
-       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
-       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
-       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
-      # icc doesn't choke on unknown options, it will just issue warnings
-      # or remarks (even with -Werror).  So we grep stderr for any message
-      # that says an option was ignored or not supported.
-      # When given -MP, icc 7.0 and 7.1 complain thusly:
-      #   icc: Command line warning: ignoring option '-M'; no argument required
-      # The diagnosis changed in icc 8.0:
-      #   icc: Command line remark: option '-MP' not supported
-      if (grep 'ignoring option' conftest.err ||
-          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
-        am_cv_CC_dependencies_compiler_type=$depmode
-        break
-      fi
-    fi
-  done
-
-  cd ..
-  rm -rf conftest.dir
-else
-  am_cv_CC_dependencies_compiler_type=none
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
-$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
-CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
-
- if
-  test "x$enable_dependency_tracking" != xno \
-  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
-  am__fastdepCC_TRUE=
-  am__fastdepCC_FALSE='#'
-else
-  am__fastdepCC_TRUE='#'
-  am__fastdepCC_FALSE=
-fi
-
-
-
-# AC_PROG_RANLIB for static libraries without Libtool
-# AC_PROG_RANLIB
-
-# AC_PROG_LIBTOOL for static and shared libraries with Libtool
-case `pwd` in
-  *\ * | *\	*)
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
-$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
-esac
-
-
-
-macro_version='2.4.2'
-macro_revision='1.3337'
-
-
-
-
-
-
-
-
-
-
-
-
-
-ltmain="$ac_aux_dir/ltmain.sh"
-
-# Make sure we can run config.sub.
-$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
-  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
-$as_echo_n "checking build system type... " >&6; }
-if ${ac_cv_build+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_build_alias=$build_alias
-test "x$ac_build_alias" = x &&
-  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
-test "x$ac_build_alias" = x &&
-  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
-ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
-  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
-$as_echo "$ac_cv_build" >&6; }
-case $ac_cv_build in
-*-*-*) ;;
-*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
-esac
-build=$ac_cv_build
-ac_save_IFS=$IFS; IFS='-'
-set x $ac_cv_build
-shift
-build_cpu=$1
-build_vendor=$2
-shift; shift
-# Remember, the first character of IFS is used to create $*,
-# except with old shells:
-build_os=$*
-IFS=$ac_save_IFS
-case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
-$as_echo_n "checking host system type... " >&6; }
-if ${ac_cv_host+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test "x$host_alias" = x; then
-  ac_cv_host=$ac_cv_build
-else
-  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
-    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
-$as_echo "$ac_cv_host" >&6; }
-case $ac_cv_host in
-*-*-*) ;;
-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
-esac
-host=$ac_cv_host
-ac_save_IFS=$IFS; IFS='-'
-set x $ac_cv_host
-shift
-host_cpu=$1
-host_vendor=$2
-shift; shift
-# Remember, the first character of IFS is used to create $*,
-# except with old shells:
-host_os=$*
-IFS=$ac_save_IFS
-case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
-
-
-# Backslashify metacharacters that are still active within
-# double-quoted strings.
-sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
-
-# Same as above, but do not quote variable references.
-double_quote_subst='s/\(["`\\]\)/\\\1/g'
-
-# Sed substitution to delay expansion of an escaped shell variable in a
-# double_quote_subst'ed string.
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
-
-# Sed substitution to delay expansion of an escaped single quote.
-delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
-
-# Sed substitution to avoid accidental globbing in evaled expressions
-no_glob_subst='s/\*/\\\*/g'
-
-ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
-$as_echo_n "checking how to print strings... " >&6; }
-# Test print first, because it will be a builtin if present.
-if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
-   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
-  ECHO='print -r --'
-elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
-  ECHO='printf %s\n'
-else
-  # Use this function as a fallback that always works.
-  func_fallback_echo ()
-  {
-    eval 'cat <<_LTECHO_EOF
-$1
-_LTECHO_EOF'
-  }
-  ECHO='func_fallback_echo'
-fi
-
-# func_echo_all arg...
-# Invoke $ECHO with all args, space-separated.
-func_echo_all ()
-{
-    $ECHO ""
-}
-
-case "$ECHO" in
-  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
-$as_echo "printf" >&6; } ;;
-  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
-$as_echo "print -r" >&6; } ;;
-  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
-$as_echo "cat" >&6; } ;;
-esac
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
-$as_echo_n "checking for a sed that does not truncate output... " >&6; }
-if ${ac_cv_path_SED+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
-     for ac_i in 1 2 3 4 5 6 7; do
-       ac_script="$ac_script$as_nl$ac_script"
-     done
-     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
-     { ac_script=; unset ac_script;}
-     if test -z "$SED"; then
-  ac_path_SED_found=false
-  # Loop through the user's path and test for each of PROGNAME-LIST
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_prog in sed gsed; do
-    for ac_exec_ext in '' $ac_executable_extensions; do
-      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
-      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
-# Check for GNU ac_path_SED and select it if it is found.
-  # Check for GNU $ac_path_SED
-case `"$ac_path_SED" --version 2>&1` in
-*GNU*)
-  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
-*)
-  ac_count=0
-  $as_echo_n 0123456789 >"conftest.in"
-  while :
-  do
-    cat "conftest.in" "conftest.in" >"conftest.tmp"
-    mv "conftest.tmp" "conftest.in"
-    cp "conftest.in" "conftest.nl"
-    $as_echo '' >> "conftest.nl"
-    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
-    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
-    as_fn_arith $ac_count + 1 && ac_count=$as_val
-    if test $ac_count -gt ${ac_path_SED_max-0}; then
-      # Best one so far, save it but keep looking for a better one
-      ac_cv_path_SED="$ac_path_SED"
-      ac_path_SED_max=$ac_count
-    fi
-    # 10*(2^10) chars as input seems more than enough
-    test $ac_count -gt 10 && break
-  done
-  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
-
-      $ac_path_SED_found && break 3
-    done
-  done
-  done
-IFS=$as_save_IFS
-  if test -z "$ac_cv_path_SED"; then
-    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
-  fi
-else
-  ac_cv_path_SED=$SED
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
-$as_echo "$ac_cv_path_SED" >&6; }
- SED="$ac_cv_path_SED"
-  rm -f conftest.sed
-
-test -z "$SED" && SED=sed
-Xsed="$SED -e 1s/^X//"
-
-
-
-
-
-
-
-
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
-$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
-if ${ac_cv_path_GREP+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -z "$GREP"; then
-  ac_path_GREP_found=false
-  # Loop through the user's path and test for each of PROGNAME-LIST
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_prog in grep ggrep; do
-    for ac_exec_ext in '' $ac_executable_extensions; do
-      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
-      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
-# Check for GNU ac_path_GREP and select it if it is found.
-  # Check for GNU $ac_path_GREP
-case `"$ac_path_GREP" --version 2>&1` in
-*GNU*)
-  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
-*)
-  ac_count=0
-  $as_echo_n 0123456789 >"conftest.in"
-  while :
-  do
-    cat "conftest.in" "conftest.in" >"conftest.tmp"
-    mv "conftest.tmp" "conftest.in"
-    cp "conftest.in" "conftest.nl"
-    $as_echo 'GREP' >> "conftest.nl"
-    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
-    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
-    as_fn_arith $ac_count + 1 && ac_count=$as_val
-    if test $ac_count -gt ${ac_path_GREP_max-0}; then
-      # Best one so far, save it but keep looking for a better one
-      ac_cv_path_GREP="$ac_path_GREP"
-      ac_path_GREP_max=$ac_count
-    fi
-    # 10*(2^10) chars as input seems more than enough
-    test $ac_count -gt 10 && break
-  done
-  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
-
-      $ac_path_GREP_found && break 3
-    done
-  done
-  done
-IFS=$as_save_IFS
-  if test -z "$ac_cv_path_GREP"; then
-    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
-  fi
-else
-  ac_cv_path_GREP=$GREP
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
-$as_echo "$ac_cv_path_GREP" >&6; }
- GREP="$ac_cv_path_GREP"
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
-$as_echo_n "checking for egrep... " >&6; }
-if ${ac_cv_path_EGREP+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
-   then ac_cv_path_EGREP="$GREP -E"
-   else
-     if test -z "$EGREP"; then
-  ac_path_EGREP_found=false
-  # Loop through the user's path and test for each of PROGNAME-LIST
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_prog in egrep; do
-    for ac_exec_ext in '' $ac_executable_extensions; do
-      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
-      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
-# Check for GNU ac_path_EGREP and select it if it is found.
-  # Check for GNU $ac_path_EGREP
-case `"$ac_path_EGREP" --version 2>&1` in
-*GNU*)
-  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
-*)
-  ac_count=0
-  $as_echo_n 0123456789 >"conftest.in"
-  while :
-  do
-    cat "conftest.in" "conftest.in" >"conftest.tmp"
-    mv "conftest.tmp" "conftest.in"
-    cp "conftest.in" "conftest.nl"
-    $as_echo 'EGREP' >> "conftest.nl"
-    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
-    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
-    as_fn_arith $ac_count + 1 && ac_count=$as_val
-    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
-      # Best one so far, save it but keep looking for a better one
-      ac_cv_path_EGREP="$ac_path_EGREP"
-      ac_path_EGREP_max=$ac_count
-    fi
-    # 10*(2^10) chars as input seems more than enough
-    test $ac_count -gt 10 && break
-  done
-  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
-
-      $ac_path_EGREP_found && break 3
-    done
-  done
-  done
-IFS=$as_save_IFS
-  if test -z "$ac_cv_path_EGREP"; then
-    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
-  fi
-else
-  ac_cv_path_EGREP=$EGREP
-fi
-
-   fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
-$as_echo "$ac_cv_path_EGREP" >&6; }
- EGREP="$ac_cv_path_EGREP"
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
-$as_echo_n "checking for fgrep... " >&6; }
-if ${ac_cv_path_FGREP+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
-   then ac_cv_path_FGREP="$GREP -F"
-   else
-     if test -z "$FGREP"; then
-  ac_path_FGREP_found=false
-  # Loop through the user's path and test for each of PROGNAME-LIST
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_prog in fgrep; do
-    for ac_exec_ext in '' $ac_executable_extensions; do
-      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
-      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
-# Check for GNU ac_path_FGREP and select it if it is found.
-  # Check for GNU $ac_path_FGREP
-case `"$ac_path_FGREP" --version 2>&1` in
-*GNU*)
-  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
-*)
-  ac_count=0
-  $as_echo_n 0123456789 >"conftest.in"
-  while :
-  do
-    cat "conftest.in" "conftest.in" >"conftest.tmp"
-    mv "conftest.tmp" "conftest.in"
-    cp "conftest.in" "conftest.nl"
-    $as_echo 'FGREP' >> "conftest.nl"
-    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
-    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
-    as_fn_arith $ac_count + 1 && ac_count=$as_val
-    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
-      # Best one so far, save it but keep looking for a better one
-      ac_cv_path_FGREP="$ac_path_FGREP"
-      ac_path_FGREP_max=$ac_count
-    fi
-    # 10*(2^10) chars as input seems more than enough
-    test $ac_count -gt 10 && break
-  done
-  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
-
-      $ac_path_FGREP_found && break 3
-    done
-  done
-  done
-IFS=$as_save_IFS
-  if test -z "$ac_cv_path_FGREP"; then
-    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
-  fi
-else
-  ac_cv_path_FGREP=$FGREP
-fi
-
-   fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
-$as_echo "$ac_cv_path_FGREP" >&6; }
- FGREP="$ac_cv_path_FGREP"
-
-
-test -z "$GREP" && GREP=grep
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-# Check whether --with-gnu-ld was given.
-if test "${with_gnu_ld+set}" = set; then :
-  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
-else
-  with_gnu_ld=no
-fi
-
-ac_prog=ld
-if test "$GCC" = yes; then
-  # Check if gcc -print-prog-name=ld gives a path.
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
-$as_echo_n "checking for ld used by $CC... " >&6; }
-  case $host in
-  *-*-mingw*)
-    # gcc leaves a trailing carriage return which upsets mingw
-    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
-  *)
-    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
-  esac
-  case $ac_prog in
-    # Accept absolute paths.
-    [\\/]* | ?:[\\/]*)
-      re_direlt='/[^/][^/]*/\.\./'
-      # Canonicalize the pathname of ld
-      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
-      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
-	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
-      done
-      test -z "$LD" && LD="$ac_prog"
-      ;;
-  "")
-    # If it fails, then pretend we aren't using GCC.
-    ac_prog=ld
-    ;;
-  *)
-    # If it is relative, then search for the first ld in PATH.
-    with_gnu_ld=unknown
-    ;;
-  esac
-elif test "$with_gnu_ld" = yes; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
-$as_echo_n "checking for GNU ld... " >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
-$as_echo_n "checking for non-GNU ld... " >&6; }
-fi
-if ${lt_cv_path_LD+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -z "$LD"; then
-  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
-  for ac_dir in $PATH; do
-    IFS="$lt_save_ifs"
-    test -z "$ac_dir" && ac_dir=.
-    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
-      lt_cv_path_LD="$ac_dir/$ac_prog"
-      # Check to see if the program is GNU ld.  I'd rather use --version,
-      # but apparently some variants of GNU ld only accept -v.
-      # Break only if it was the GNU/non-GNU ld that we prefer.
-      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
-      *GNU* | *'with BFD'*)
-	test "$with_gnu_ld" != no && break
-	;;
-      *)
-	test "$with_gnu_ld" != yes && break
-	;;
-      esac
-    fi
-  done
-  IFS="$lt_save_ifs"
-else
-  lt_cv_path_LD="$LD" # Let the user override the test with a path.
-fi
-fi
-
-LD="$lt_cv_path_LD"
-if test -n "$LD"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
-$as_echo "$LD" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
-$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
-if ${lt_cv_prog_gnu_ld+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  # I'd rather use --version here, but apparently some GNU lds only accept -v.
-case `$LD -v 2>&1 </dev/null` in
-*GNU* | *'with BFD'*)
-  lt_cv_prog_gnu_ld=yes
-  ;;
-*)
-  lt_cv_prog_gnu_ld=no
-  ;;
-esac
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
-$as_echo "$lt_cv_prog_gnu_ld" >&6; }
-with_gnu_ld=$lt_cv_prog_gnu_ld
-
-
-
-
-
-
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
-$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
-if ${lt_cv_path_NM+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$NM"; then
-  # Let the user override the test.
-  lt_cv_path_NM="$NM"
-else
-  lt_nm_to_check="${ac_tool_prefix}nm"
-  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
-    lt_nm_to_check="$lt_nm_to_check nm"
-  fi
-  for lt_tmp_nm in $lt_nm_to_check; do
-    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
-    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
-      IFS="$lt_save_ifs"
-      test -z "$ac_dir" && ac_dir=.
-      tmp_nm="$ac_dir/$lt_tmp_nm"
-      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
-	# Check to see if the nm accepts a BSD-compat flag.
-	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
-	#   nm: unknown option "B" ignored
-	# Tru64's nm complains that /dev/null is an invalid object file
-	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
-	*/dev/null* | *'Invalid file or object type'*)
-	  lt_cv_path_NM="$tmp_nm -B"
-	  break
-	  ;;
-	*)
-	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
-	  */dev/null*)
-	    lt_cv_path_NM="$tmp_nm -p"
-	    break
-	    ;;
-	  *)
-	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
-	    continue # so that we can try to find one that supports BSD flags
-	    ;;
-	  esac
-	  ;;
-	esac
-      fi
-    done
-    IFS="$lt_save_ifs"
-  done
-  : ${lt_cv_path_NM=no}
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
-$as_echo "$lt_cv_path_NM" >&6; }
-if test "$lt_cv_path_NM" != "no"; then
-  NM="$lt_cv_path_NM"
-else
-  # Didn't find any BSD compatible name lister, look for dumpbin.
-  if test -n "$DUMPBIN"; then :
-    # Let the user override the test.
-  else
-    if test -n "$ac_tool_prefix"; then
-  for ac_prog in dumpbin "link -dump"
-  do
-    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_DUMPBIN+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$DUMPBIN"; then
-  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-DUMPBIN=$ac_cv_prog_DUMPBIN
-if test -n "$DUMPBIN"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
-$as_echo "$DUMPBIN" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-    test -n "$DUMPBIN" && break
-  done
-fi
-if test -z "$DUMPBIN"; then
-  ac_ct_DUMPBIN=$DUMPBIN
-  for ac_prog in dumpbin "link -dump"
-do
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_DUMPBIN"; then
-  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
-if test -n "$ac_ct_DUMPBIN"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
-$as_echo "$ac_ct_DUMPBIN" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-  test -n "$ac_ct_DUMPBIN" && break
-done
-
-  if test "x$ac_ct_DUMPBIN" = x; then
-    DUMPBIN=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    DUMPBIN=$ac_ct_DUMPBIN
-  fi
-fi
-
-    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
-    *COFF*)
-      DUMPBIN="$DUMPBIN -symbols"
-      ;;
-    *)
-      DUMPBIN=:
-      ;;
-    esac
-  fi
-
-  if test "$DUMPBIN" != ":"; then
-    NM="$DUMPBIN"
-  fi
-fi
-test -z "$NM" && NM=nm
-
-
-
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
-$as_echo_n "checking the name lister ($NM) interface... " >&6; }
-if ${lt_cv_nm_interface+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_nm_interface="BSD nm"
-  echo "int some_variable = 0;" > conftest.$ac_ext
-  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
-  (eval "$ac_compile" 2>conftest.err)
-  cat conftest.err >&5
-  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
-  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
-  cat conftest.err >&5
-  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
-  cat conftest.out >&5
-  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
-    lt_cv_nm_interface="MS dumpbin"
-  fi
-  rm -f conftest*
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
-$as_echo "$lt_cv_nm_interface" >&6; }
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
-$as_echo_n "checking whether ln -s works... " >&6; }
-LN_S=$as_ln_s
-if test "$LN_S" = "ln -s"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
-$as_echo "no, using $LN_S" >&6; }
-fi
-
-# find the maximum length of command line arguments
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
-$as_echo_n "checking the maximum length of command line arguments... " >&6; }
-if ${lt_cv_sys_max_cmd_len+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-    i=0
-  teststring="ABCD"
-
-  case $build_os in
-  msdosdjgpp*)
-    # On DJGPP, this test can blow up pretty badly due to problems in libc
-    # (any single argument exceeding 2000 bytes causes a buffer overrun
-    # during glob expansion).  Even if it were fixed, the result of this
-    # check would be larger than it should be.
-    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
-    ;;
-
-  gnu*)
-    # Under GNU Hurd, this test is not required because there is
-    # no limit to the length of command line arguments.
-    # Libtool will interpret -1 as no limit whatsoever
-    lt_cv_sys_max_cmd_len=-1;
-    ;;
-
-  cygwin* | mingw* | cegcc*)
-    # On Win9x/ME, this test blows up -- it succeeds, but takes
-    # about 5 minutes as the teststring grows exponentially.
-    # Worse, since 9x/ME are not pre-emptively multitasking,
-    # you end up with a "frozen" computer, even though with patience
-    # the test eventually succeeds (with a max line length of 256k).
-    # Instead, let's just punt: use the minimum linelength reported by
-    # all of the supported platforms: 8192 (on NT/2K/XP).
-    lt_cv_sys_max_cmd_len=8192;
-    ;;
-
-  mint*)
-    # On MiNT this can take a long time and run out of memory.
-    lt_cv_sys_max_cmd_len=8192;
-    ;;
-
-  amigaos*)
-    # On AmigaOS with pdksh, this test takes hours, literally.
-    # So we just punt and use a minimum line length of 8192.
-    lt_cv_sys_max_cmd_len=8192;
-    ;;
-
-  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
-    # This has been around since 386BSD, at least.  Likely further.
-    if test -x /sbin/sysctl; then
-      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
-    elif test -x /usr/sbin/sysctl; then
-      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
-    else
-      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
-    fi
-    # And add a safety zone
-    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
-    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
-    ;;
-
-  interix*)
-    # We know the value 262144 and hardcode it with a safety zone (like BSD)
-    lt_cv_sys_max_cmd_len=196608
-    ;;
-
-  os2*)
-    # The test takes a long time on OS/2.
-    lt_cv_sys_max_cmd_len=8192
-    ;;
-
-  osf*)
-    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
-    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
-    # nice to cause kernel panics so lets avoid the loop below.
-    # First set a reasonable default.
-    lt_cv_sys_max_cmd_len=16384
-    #
-    if test -x /sbin/sysconfig; then
-      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
-        *1*) lt_cv_sys_max_cmd_len=-1 ;;
-      esac
-    fi
-    ;;
-  sco3.2v5*)
-    lt_cv_sys_max_cmd_len=102400
-    ;;
-  sysv5* | sco5v6* | sysv4.2uw2*)
-    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
-    if test -n "$kargmax"; then
-      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
-    else
-      lt_cv_sys_max_cmd_len=32768
-    fi
-    ;;
-  *)
-    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
-    if test -n "$lt_cv_sys_max_cmd_len"; then
-      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
-      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
-    else
-      # Make teststring a little bigger before we do anything with it.
-      # a 1K string should be a reasonable start.
-      for i in 1 2 3 4 5 6 7 8 ; do
-        teststring=$teststring$teststring
-      done
-      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
-      # If test is not a shell built-in, we'll probably end up computing a
-      # maximum length that is only half of the actual maximum length, but
-      # we can't tell.
-      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
-	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
-	      test $i != 17 # 1/2 MB should be enough
-      do
-        i=`expr $i + 1`
-        teststring=$teststring$teststring
-      done
-      # Only check the string length outside the loop.
-      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
-      teststring=
-      # Add a significant safety factor because C++ compilers can tack on
-      # massive amounts of additional arguments before passing them to the
-      # linker.  It appears as though 1/2 is a usable value.
-      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
-    fi
-    ;;
-  esac
-
-fi
-
-if test -n $lt_cv_sys_max_cmd_len ; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
-$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
-$as_echo "none" >&6; }
-fi
-max_cmd_len=$lt_cv_sys_max_cmd_len
-
-
-
-
-
-
-: ${CP="cp -f"}
-: ${MV="mv -f"}
-: ${RM="rm -f"}
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
-$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
-# Try some XSI features
-xsi_shell=no
-( _lt_dummy="a/b/c"
-  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
-      = c,a/b,b/c, \
-    && eval 'test $(( 1 + 1 )) -eq 2 \
-    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
-  && xsi_shell=yes
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
-$as_echo "$xsi_shell" >&6; }
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
-$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
-lt_shell_append=no
-( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
-    >/dev/null 2>&1 \
-  && lt_shell_append=yes
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
-$as_echo "$lt_shell_append" >&6; }
-
-
-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
-  lt_unset=unset
-else
-  lt_unset=false
-fi
-
-
-
-
-
-# test EBCDIC or ASCII
-case `echo X|tr X '\101'` in
- A) # ASCII based system
-    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
-  lt_SP2NL='tr \040 \012'
-  lt_NL2SP='tr \015\012 \040\040'
-  ;;
- *) # EBCDIC based system
-  lt_SP2NL='tr \100 \n'
-  lt_NL2SP='tr \r\n \100\100'
-  ;;
-esac
-
-
-
-
-
-
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
-$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
-if ${lt_cv_to_host_file_cmd+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  case $host in
-  *-*-mingw* )
-    case $build in
-      *-*-mingw* ) # actually msys
-        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
-        ;;
-      *-*-cygwin* )
-        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
-        ;;
-      * ) # otherwise, assume *nix
-        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
-        ;;
-    esac
-    ;;
-  *-*-cygwin* )
-    case $build in
-      *-*-mingw* ) # actually msys
-        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
-        ;;
-      *-*-cygwin* )
-        lt_cv_to_host_file_cmd=func_convert_file_noop
-        ;;
-      * ) # otherwise, assume *nix
-        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
-        ;;
-    esac
-    ;;
-  * ) # unhandled hosts (and "normal" native builds)
-    lt_cv_to_host_file_cmd=func_convert_file_noop
-    ;;
-esac
-
-fi
-
-to_host_file_cmd=$lt_cv_to_host_file_cmd
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
-$as_echo "$lt_cv_to_host_file_cmd" >&6; }
-
-
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
-$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
-if ${lt_cv_to_tool_file_cmd+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  #assume ordinary cross tools, or native build.
-lt_cv_to_tool_file_cmd=func_convert_file_noop
-case $host in
-  *-*-mingw* )
-    case $build in
-      *-*-mingw* ) # actually msys
-        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
-        ;;
-    esac
-    ;;
-esac
-
-fi
-
-to_tool_file_cmd=$lt_cv_to_tool_file_cmd
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
-$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
-
-
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
-$as_echo_n "checking for $LD option to reload object files... " >&6; }
-if ${lt_cv_ld_reload_flag+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_ld_reload_flag='-r'
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
-$as_echo "$lt_cv_ld_reload_flag" >&6; }
-reload_flag=$lt_cv_ld_reload_flag
-case $reload_flag in
-"" | " "*) ;;
-*) reload_flag=" $reload_flag" ;;
-esac
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
-case $host_os in
-  cygwin* | mingw* | pw32* | cegcc*)
-    if test "$GCC" != yes; then
-      reload_cmds=false
-    fi
-    ;;
-  darwin*)
-    if test "$GCC" = yes; then
-      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
-    else
-      reload_cmds='$LD$reload_flag -o $output$reload_objs'
-    fi
-    ;;
-esac
-
-
-
-
-
-
-
-
-
-if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
-set dummy ${ac_tool_prefix}objdump; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_OBJDUMP+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$OBJDUMP"; then
-  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-OBJDUMP=$ac_cv_prog_OBJDUMP
-if test -n "$OBJDUMP"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
-$as_echo "$OBJDUMP" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_OBJDUMP"; then
-  ac_ct_OBJDUMP=$OBJDUMP
-  # Extract the first word of "objdump", so it can be a program name with args.
-set dummy objdump; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_OBJDUMP"; then
-  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_OBJDUMP="objdump"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
-if test -n "$ac_ct_OBJDUMP"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
-$as_echo "$ac_ct_OBJDUMP" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_OBJDUMP" = x; then
-    OBJDUMP="false"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    OBJDUMP=$ac_ct_OBJDUMP
-  fi
-else
-  OBJDUMP="$ac_cv_prog_OBJDUMP"
-fi
-
-test -z "$OBJDUMP" && OBJDUMP=objdump
-
-
-
-
-
-
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
-$as_echo_n "checking how to recognize dependent libraries... " >&6; }
-if ${lt_cv_deplibs_check_method+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_file_magic_cmd='$MAGIC_CMD'
-lt_cv_file_magic_test_file=
-lt_cv_deplibs_check_method='unknown'
-# Need to set the preceding variable on all platforms that support
-# interlibrary dependencies.
-# 'none' -- dependencies not supported.
-# `unknown' -- same as none, but documents that we really don't know.
-# 'pass_all' -- all dependencies passed with no checks.
-# 'test_compile' -- check by making test program.
-# 'file_magic [[regex]]' -- check by looking for files in library path
-# which responds to the $file_magic_cmd with a given extended regex.
-# If you have `file' or equivalent on your system and you're not sure
-# whether `pass_all' will *always* work, you probably want this one.
-
-case $host_os in
-aix[4-9]*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-beos*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-bsdi[45]*)
-  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
-  lt_cv_file_magic_cmd='/usr/bin/file -L'
-  lt_cv_file_magic_test_file=/shlib/libc.so
-  ;;
-
-cygwin*)
-  # func_win32_libid is a shell function defined in ltmain.sh
-  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
-  lt_cv_file_magic_cmd='func_win32_libid'
-  ;;
-
-mingw* | pw32*)
-  # Base MSYS/MinGW do not provide the 'file' command needed by
-  # func_win32_libid shell function, so use a weaker test based on 'objdump',
-  # unless we find 'file', for example because we are cross-compiling.
-  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
-  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
-    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
-    lt_cv_file_magic_cmd='func_win32_libid'
-  else
-    # Keep this pattern in sync with the one in func_win32_libid.
-    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
-    lt_cv_file_magic_cmd='$OBJDUMP -f'
-  fi
-  ;;
-
-cegcc*)
-  # use the weaker test based on 'objdump'. See mingw*.
-  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
-  lt_cv_file_magic_cmd='$OBJDUMP -f'
-  ;;
-
-darwin* | rhapsody*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-freebsd* | dragonfly*)
-  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
-    case $host_cpu in
-    i*86 )
-      # Not sure whether the presence of OpenBSD here was a mistake.
-      # Let's accept both of them until this is cleared up.
-      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
-      lt_cv_file_magic_cmd=/usr/bin/file
-      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
-      ;;
-    esac
-  else
-    lt_cv_deplibs_check_method=pass_all
-  fi
-  ;;
-
-gnu*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-haiku*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-hpux10.20* | hpux11*)
-  lt_cv_file_magic_cmd=/usr/bin/file
-  case $host_cpu in
-  ia64*)
-    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
-    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
-    ;;
-  hppa*64*)
-    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
-    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
-    ;;
-  *)
-    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
-    lt_cv_file_magic_test_file=/usr/lib/libc.sl
-    ;;
-  esac
-  ;;
-
-interix[3-9]*)
-  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
-  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
-  ;;
-
-irix5* | irix6* | nonstopux*)
-  case $LD in
-  *-32|*"-32 ") libmagic=32-bit;;
-  *-n32|*"-n32 ") libmagic=N32;;
-  *-64|*"-64 ") libmagic=64-bit;;
-  *) libmagic=never-match;;
-  esac
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-# This must be glibc/ELF.
-linux* | k*bsd*-gnu | kopensolaris*-gnu)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-netbsd*)
-  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
-    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
-  else
-    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
-  fi
-  ;;
-
-newos6*)
-  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
-  lt_cv_file_magic_cmd=/usr/bin/file
-  lt_cv_file_magic_test_file=/usr/lib/libnls.so
-  ;;
-
-*nto* | *qnx*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-openbsd*)
-  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
-  else
-    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
-  fi
-  ;;
-
-osf3* | osf4* | osf5*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-rdos*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-solaris*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-sysv4 | sysv4.3*)
-  case $host_vendor in
-  motorola)
-    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
-    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
-    ;;
-  ncr)
-    lt_cv_deplibs_check_method=pass_all
-    ;;
-  sequent)
-    lt_cv_file_magic_cmd='/bin/file'
-    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
-    ;;
-  sni)
-    lt_cv_file_magic_cmd='/bin/file'
-    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
-    lt_cv_file_magic_test_file=/lib/libc.so
-    ;;
-  siemens)
-    lt_cv_deplibs_check_method=pass_all
-    ;;
-  pc)
-    lt_cv_deplibs_check_method=pass_all
-    ;;
-  esac
-  ;;
-
-tpf*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-esac
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
-$as_echo "$lt_cv_deplibs_check_method" >&6; }
-
-file_magic_glob=
-want_nocaseglob=no
-if test "$build" = "$host"; then
-  case $host_os in
-  mingw* | pw32*)
-    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
-      want_nocaseglob=yes
-    else
-      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
-    fi
-    ;;
-  esac
-fi
-
-file_magic_cmd=$lt_cv_file_magic_cmd
-deplibs_check_method=$lt_cv_deplibs_check_method
-test -z "$deplibs_check_method" && deplibs_check_method=unknown
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
-set dummy ${ac_tool_prefix}dlltool; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_DLLTOOL+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$DLLTOOL"; then
-  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-DLLTOOL=$ac_cv_prog_DLLTOOL
-if test -n "$DLLTOOL"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
-$as_echo "$DLLTOOL" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_DLLTOOL"; then
-  ac_ct_DLLTOOL=$DLLTOOL
-  # Extract the first word of "dlltool", so it can be a program name with args.
-set dummy dlltool; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_DLLTOOL"; then
-  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
-if test -n "$ac_ct_DLLTOOL"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
-$as_echo "$ac_ct_DLLTOOL" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_DLLTOOL" = x; then
-    DLLTOOL="false"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    DLLTOOL=$ac_ct_DLLTOOL
-  fi
-else
-  DLLTOOL="$ac_cv_prog_DLLTOOL"
-fi
-
-test -z "$DLLTOOL" && DLLTOOL=dlltool
-
-
-
-
-
-
-
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
-$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
-if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_sharedlib_from_linklib_cmd='unknown'
-
-case $host_os in
-cygwin* | mingw* | pw32* | cegcc*)
-  # two different shell functions defined in ltmain.sh
-  # decide which to use based on capabilities of $DLLTOOL
-  case `$DLLTOOL --help 2>&1` in
-  *--identify-strict*)
-    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
-    ;;
-  *)
-    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
-    ;;
-  esac
-  ;;
-*)
-  # fallback: assume linklib IS sharedlib
-  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
-  ;;
-esac
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
-$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
-sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
-test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
-
-
-
-
-
-
-
-
-if test -n "$ac_tool_prefix"; then
-  for ac_prog in ar
-  do
-    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_AR+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$AR"; then
-  ac_cv_prog_AR="$AR" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-AR=$ac_cv_prog_AR
-if test -n "$AR"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
-$as_echo "$AR" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-    test -n "$AR" && break
-  done
-fi
-if test -z "$AR"; then
-  ac_ct_AR=$AR
-  for ac_prog in ar
-do
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_AR+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_AR"; then
-  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_AR="$ac_prog"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_AR=$ac_cv_prog_ac_ct_AR
-if test -n "$ac_ct_AR"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
-$as_echo "$ac_ct_AR" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-  test -n "$ac_ct_AR" && break
-done
-
-  if test "x$ac_ct_AR" = x; then
-    AR="false"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    AR=$ac_ct_AR
-  fi
-fi
-
-: ${AR=ar}
-: ${AR_FLAGS=cru}
-
-
-
-
-
-
-
-
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
-$as_echo_n "checking for archiver @FILE support... " >&6; }
-if ${lt_cv_ar_at_file+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_ar_at_file=no
-   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  echo conftest.$ac_objext > conftest.lst
-      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
-      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
-  (eval $lt_ar_try) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }
-      if test "$ac_status" -eq 0; then
-	# Ensure the archiver fails upon bogus file names.
-	rm -f conftest.$ac_objext libconftest.a
-	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
-  (eval $lt_ar_try) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }
-	if test "$ac_status" -ne 0; then
-          lt_cv_ar_at_file=@
-        fi
-      fi
-      rm -f conftest.* libconftest.a
-
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
-$as_echo "$lt_cv_ar_at_file" >&6; }
-
-if test "x$lt_cv_ar_at_file" = xno; then
-  archiver_list_spec=
-else
-  archiver_list_spec=$lt_cv_ar_at_file
-fi
-
-
-
-
-
-
-
-if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
-set dummy ${ac_tool_prefix}strip; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_STRIP+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$STRIP"; then
-  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-STRIP=$ac_cv_prog_STRIP
-if test -n "$STRIP"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
-$as_echo "$STRIP" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_STRIP"; then
-  ac_ct_STRIP=$STRIP
-  # Extract the first word of "strip", so it can be a program name with args.
-set dummy strip; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_STRIP"; then
-  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_STRIP="strip"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
-if test -n "$ac_ct_STRIP"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
-$as_echo "$ac_ct_STRIP" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_STRIP" = x; then
-    STRIP=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    STRIP=$ac_ct_STRIP
-  fi
-else
-  STRIP="$ac_cv_prog_STRIP"
-fi
-
-test -z "$STRIP" && STRIP=:
-
-
-
-
-
-
-if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
-set dummy ${ac_tool_prefix}ranlib; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_RANLIB+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$RANLIB"; then
-  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-RANLIB=$ac_cv_prog_RANLIB
-if test -n "$RANLIB"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
-$as_echo "$RANLIB" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_RANLIB"; then
-  ac_ct_RANLIB=$RANLIB
-  # Extract the first word of "ranlib", so it can be a program name with args.
-set dummy ranlib; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_RANLIB"; then
-  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_RANLIB="ranlib"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
-if test -n "$ac_ct_RANLIB"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
-$as_echo "$ac_ct_RANLIB" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_RANLIB" = x; then
-    RANLIB=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    RANLIB=$ac_ct_RANLIB
-  fi
-else
-  RANLIB="$ac_cv_prog_RANLIB"
-fi
-
-test -z "$RANLIB" && RANLIB=:
-
-
-
-
-
-
-# Determine commands to create old-style static archives.
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
-old_postinstall_cmds='chmod 644 $oldlib'
-old_postuninstall_cmds=
-
-if test -n "$RANLIB"; then
-  case $host_os in
-  openbsd*)
-    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
-    ;;
-  *)
-    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
-    ;;
-  esac
-  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
-fi
-
-case $host_os in
-  darwin*)
-    lock_old_archive_extraction=yes ;;
-  *)
-    lock_old_archive_extraction=no ;;
-esac
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-# If no C compiler was specified, use CC.
-LTCC=${LTCC-"$CC"}
-
-# If no C compiler flags were specified, use CFLAGS.
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
-
-# Allow CC to be a program name with arguments.
-compiler=$CC
-
-
-# Check for command to grab the raw symbol name followed by C symbol from nm.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
-$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
-if ${lt_cv_sys_global_symbol_pipe+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-
-# These are sane defaults that work on at least a few old systems.
-# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
-
-# Character class describing NM global symbol codes.
-symcode='[BCDEGRST]'
-
-# Regexp to match symbols that can be accessed directly from C.
-sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
-
-# Define system-specific variables.
-case $host_os in
-aix*)
-  symcode='[BCDT]'
-  ;;
-cygwin* | mingw* | pw32* | cegcc*)
-  symcode='[ABCDGISTW]'
-  ;;
-hpux*)
-  if test "$host_cpu" = ia64; then
-    symcode='[ABCDEGRST]'
-  fi
-  ;;
-irix* | nonstopux*)
-  symcode='[BCDEGRST]'
-  ;;
-osf*)
-  symcode='[BCDEGQRST]'
-  ;;
-solaris*)
-  symcode='[BDRT]'
-  ;;
-sco3.2v5*)
-  symcode='[DT]'
-  ;;
-sysv4.2uw2*)
-  symcode='[DT]'
-  ;;
-sysv5* | sco5v6* | unixware* | OpenUNIX*)
-  symcode='[ABDT]'
-  ;;
-sysv4)
-  symcode='[DFNSTU]'
-  ;;
-esac
-
-# If we're using GNU nm, then use its standard symbol codes.
-case `$NM -V 2>&1` in
-*GNU* | *'with BFD'*)
-  symcode='[ABCDGIRSTW]' ;;
-esac
-
-# Transform an extracted symbol line into a proper C declaration.
-# Some systems (esp. on ia64) link data and code symbols differently,
-# so use this general approach.
-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
-
-# Transform an extracted symbol line into symbol name and symbol address
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
-
-# Handle CRLF in mingw tool chain
-opt_cr=
-case $build_os in
-mingw*)
-  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
-  ;;
-esac
-
-# Try without a prefix underscore, then with it.
-for ac_symprfx in "" "_"; do
-
-  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
-  symxfrm="\\1 $ac_symprfx\\2 \\2"
-
-  # Write the raw and C identifiers.
-  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
-    # Fake it for dumpbin and say T for any non-static function
-    # and D for any global variable.
-    # Also find C++ and __fastcall symbols from MSVC++,
-    # which start with @ or ?.
-    lt_cv_sys_global_symbol_pipe="$AWK '"\
-"     {last_section=section; section=\$ 3};"\
-"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
-"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
-"     \$ 0!~/External *\|/{next};"\
-"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
-"     {if(hide[section]) next};"\
-"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
-"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
-"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
-"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
-"     ' prfx=^$ac_symprfx"
-  else
-    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
-  fi
-  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
-
-  # Check to see that the pipe works correctly.
-  pipe_works=no
-
-  rm -f conftest*
-  cat > conftest.$ac_ext <<_LT_EOF
-#ifdef __cplusplus
-extern "C" {
-#endif
-char nm_test_var;
-void nm_test_func(void);
-void nm_test_func(void){}
-#ifdef __cplusplus
-}
-#endif
-int main(){nm_test_var='a';nm_test_func();return(0);}
-_LT_EOF
-
-  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
-  (eval $ac_compile) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; then
-    # Now try to grab the symbols.
-    nlist=conftest.nm
-    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
-  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } && test -s "$nlist"; then
-      # Try sorting and uniquifying the output.
-      if sort "$nlist" | uniq > "$nlist"T; then
-	mv -f "$nlist"T "$nlist"
-      else
-	rm -f "$nlist"T
-      fi
-
-      # Make sure that we snagged all the symbols we need.
-      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
-	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
-	  cat <<_LT_EOF > conftest.$ac_ext
-/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
-#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
-/* DATA imports from DLLs on WIN32 con't be const, because runtime
-   relocations are performed -- see ld's documentation on pseudo-relocs.  */
-# define LT_DLSYM_CONST
-#elif defined(__osf__)
-/* This system does not cope well with relocations in const data.  */
-# define LT_DLSYM_CONST
-#else
-# define LT_DLSYM_CONST const
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-_LT_EOF
-	  # Now generate the symbol file.
-	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
-
-	  cat <<_LT_EOF >> conftest.$ac_ext
-
-/* The mapping between symbol names and symbols.  */
-LT_DLSYM_CONST struct {
-  const char *name;
-  void       *address;
-}
-lt__PROGRAM__LTX_preloaded_symbols[] =
-{
-  { "@PROGRAM@", (void *) 0 },
-_LT_EOF
-	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
-	  cat <<\_LT_EOF >> conftest.$ac_ext
-  {0, (void *) 0}
-};
-
-/* This works around a problem in FreeBSD linker */
-#ifdef FREEBSD_WORKAROUND
-static const void *lt_preloaded_setup() {
-  return lt__PROGRAM__LTX_preloaded_symbols;
-}
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-_LT_EOF
-	  # Now try linking the two files.
-	  mv conftest.$ac_objext conftstm.$ac_objext
-	  lt_globsym_save_LIBS=$LIBS
-	  lt_globsym_save_CFLAGS=$CFLAGS
-	  LIBS="conftstm.$ac_objext"
-	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
-	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
-  (eval $ac_link) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
-	    pipe_works=yes
-	  fi
-	  LIBS=$lt_globsym_save_LIBS
-	  CFLAGS=$lt_globsym_save_CFLAGS
-	else
-	  echo "cannot find nm_test_func in $nlist" >&5
-	fi
-      else
-	echo "cannot find nm_test_var in $nlist" >&5
-      fi
-    else
-      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
-    fi
-  else
-    echo "$progname: failed program was:" >&5
-    cat conftest.$ac_ext >&5
-  fi
-  rm -rf conftest* conftst*
-
-  # Do not use the global_symbol_pipe unless it works.
-  if test "$pipe_works" = yes; then
-    break
-  else
-    lt_cv_sys_global_symbol_pipe=
-  fi
-done
-
-fi
-
-if test -z "$lt_cv_sys_global_symbol_pipe"; then
-  lt_cv_sys_global_symbol_to_cdecl=
-fi
-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
-$as_echo "failed" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
-$as_echo "ok" >&6; }
-fi
-
-# Response file support.
-if test "$lt_cv_nm_interface" = "MS dumpbin"; then
-  nm_file_list_spec='@'
-elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
-  nm_file_list_spec='@'
-fi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
-$as_echo_n "checking for sysroot... " >&6; }
-
-# Check whether --with-sysroot was given.
-if test "${with_sysroot+set}" = set; then :
-  withval=$with_sysroot;
-else
-  with_sysroot=no
-fi
-
-
-lt_sysroot=
-case ${with_sysroot} in #(
- yes)
-   if test "$GCC" = yes; then
-     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
-   fi
-   ;; #(
- /*)
-   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
-   ;; #(
- no|'')
-   ;; #(
- *)
-   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
-$as_echo "${with_sysroot}" >&6; }
-   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
-   ;;
-esac
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
-$as_echo "${lt_sysroot:-no}" >&6; }
-
-
-
-
-
-# Check whether --enable-libtool-lock was given.
-if test "${enable_libtool_lock+set}" = set; then :
-  enableval=$enable_libtool_lock;
-fi
-
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
-
-# Some flags need to be propagated to the compiler or linker for good
-# libtool support.
-case $host in
-ia64-*-hpux*)
-  # Find out which ABI we are using.
-  echo 'int i;' > conftest.$ac_ext
-  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
-  (eval $ac_compile) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; then
-    case `/usr/bin/file conftest.$ac_objext` in
-      *ELF-32*)
-	HPUX_IA64_MODE="32"
-	;;
-      *ELF-64*)
-	HPUX_IA64_MODE="64"
-	;;
-    esac
-  fi
-  rm -rf conftest*
-  ;;
-*-*-irix6*)
-  # Find out which ABI we are using.
-  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
-  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
-  (eval $ac_compile) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; then
-    if test "$lt_cv_prog_gnu_ld" = yes; then
-      case `/usr/bin/file conftest.$ac_objext` in
-	*32-bit*)
-	  LD="${LD-ld} -melf32bsmip"
-	  ;;
-	*N32*)
-	  LD="${LD-ld} -melf32bmipn32"
-	  ;;
-	*64-bit*)
-	  LD="${LD-ld} -melf64bmip"
-	;;
-      esac
-    else
-      case `/usr/bin/file conftest.$ac_objext` in
-	*32-bit*)
-	  LD="${LD-ld} -32"
-	  ;;
-	*N32*)
-	  LD="${LD-ld} -n32"
-	  ;;
-	*64-bit*)
-	  LD="${LD-ld} -64"
-	  ;;
-      esac
-    fi
-  fi
-  rm -rf conftest*
-  ;;
-
-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
-s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
-  # Find out which ABI we are using.
-  echo 'int i;' > conftest.$ac_ext
-  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
-  (eval $ac_compile) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; then
-    case `/usr/bin/file conftest.o` in
-      *32-bit*)
-	case $host in
-	  x86_64-*kfreebsd*-gnu)
-	    LD="${LD-ld} -m elf_i386_fbsd"
-	    ;;
-	  x86_64-*linux*)
-	    LD="${LD-ld} -m elf_i386"
-	    ;;
-	  ppc64-*linux*|powerpc64-*linux*)
-	    LD="${LD-ld} -m elf32ppclinux"
-	    ;;
-	  s390x-*linux*)
-	    LD="${LD-ld} -m elf_s390"
-	    ;;
-	  sparc64-*linux*)
-	    LD="${LD-ld} -m elf32_sparc"
-	    ;;
-	esac
-	;;
-      *64-bit*)
-	case $host in
-	  x86_64-*kfreebsd*-gnu)
-	    LD="${LD-ld} -m elf_x86_64_fbsd"
-	    ;;
-	  x86_64-*linux*)
-	    LD="${LD-ld} -m elf_x86_64"
-	    ;;
-	  ppc*-*linux*|powerpc*-*linux*)
-	    LD="${LD-ld} -m elf64ppc"
-	    ;;
-	  s390*-*linux*|s390*-*tpf*)
-	    LD="${LD-ld} -m elf64_s390"
-	    ;;
-	  sparc*-*linux*)
-	    LD="${LD-ld} -m elf64_sparc"
-	    ;;
-	esac
-	;;
-    esac
-  fi
-  rm -rf conftest*
-  ;;
-
-*-*-sco3.2v5*)
-  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
-  SAVE_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS -belf"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
-$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
-if ${lt_cv_cc_needs_belf+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  lt_cv_cc_needs_belf=yes
-else
-  lt_cv_cc_needs_belf=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-     ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
-$as_echo "$lt_cv_cc_needs_belf" >&6; }
-  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
-    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
-    CFLAGS="$SAVE_CFLAGS"
-  fi
-  ;;
-*-*solaris*)
-  # Find out which ABI we are using.
-  echo 'int i;' > conftest.$ac_ext
-  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
-  (eval $ac_compile) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; then
-    case `/usr/bin/file conftest.o` in
-    *64-bit*)
-      case $lt_cv_prog_gnu_ld in
-      yes*)
-        case $host in
-        i?86-*-solaris*)
-          LD="${LD-ld} -m elf_x86_64"
-          ;;
-        sparc*-*-solaris*)
-          LD="${LD-ld} -m elf64_sparc"
-          ;;
-        esac
-        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
-        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
-          LD="${LD-ld}_sol2"
-        fi
-        ;;
-      *)
-	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
-	  LD="${LD-ld} -64"
-	fi
-	;;
-      esac
-      ;;
-    esac
-  fi
-  rm -rf conftest*
-  ;;
-esac
-
-need_locks="$enable_libtool_lock"
-
-if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
-set dummy ${ac_tool_prefix}mt; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$MANIFEST_TOOL"; then
-  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
-if test -n "$MANIFEST_TOOL"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
-$as_echo "$MANIFEST_TOOL" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
-  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
-  # Extract the first word of "mt", so it can be a program name with args.
-set dummy mt; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_MANIFEST_TOOL"; then
-  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
-if test -n "$ac_ct_MANIFEST_TOOL"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
-$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_MANIFEST_TOOL" = x; then
-    MANIFEST_TOOL=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
-  fi
-else
-  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
-fi
-
-test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
-$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
-if ${lt_cv_path_mainfest_tool+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_path_mainfest_tool=no
-  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
-  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
-  cat conftest.err >&5
-  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
-    lt_cv_path_mainfest_tool=yes
-  fi
-  rm -f conftest*
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
-$as_echo "$lt_cv_path_mainfest_tool" >&6; }
-if test "x$lt_cv_path_mainfest_tool" != xyes; then
-  MANIFEST_TOOL=:
-fi
-
-
-
-
-
-
-  case $host_os in
-    rhapsody* | darwin*)
-    if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
-set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_DSYMUTIL+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$DSYMUTIL"; then
-  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-DSYMUTIL=$ac_cv_prog_DSYMUTIL
-if test -n "$DSYMUTIL"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
-$as_echo "$DSYMUTIL" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_DSYMUTIL"; then
-  ac_ct_DSYMUTIL=$DSYMUTIL
-  # Extract the first word of "dsymutil", so it can be a program name with args.
-set dummy dsymutil; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_DSYMUTIL"; then
-  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
-if test -n "$ac_ct_DSYMUTIL"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
-$as_echo "$ac_ct_DSYMUTIL" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_DSYMUTIL" = x; then
-    DSYMUTIL=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    DSYMUTIL=$ac_ct_DSYMUTIL
-  fi
-else
-  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
-fi
-
-    if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
-set dummy ${ac_tool_prefix}nmedit; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_NMEDIT+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$NMEDIT"; then
-  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-NMEDIT=$ac_cv_prog_NMEDIT
-if test -n "$NMEDIT"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
-$as_echo "$NMEDIT" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_NMEDIT"; then
-  ac_ct_NMEDIT=$NMEDIT
-  # Extract the first word of "nmedit", so it can be a program name with args.
-set dummy nmedit; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_NMEDIT"; then
-  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_NMEDIT="nmedit"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
-if test -n "$ac_ct_NMEDIT"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
-$as_echo "$ac_ct_NMEDIT" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_NMEDIT" = x; then
-    NMEDIT=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    NMEDIT=$ac_ct_NMEDIT
-  fi
-else
-  NMEDIT="$ac_cv_prog_NMEDIT"
-fi
-
-    if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
-set dummy ${ac_tool_prefix}lipo; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_LIPO+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$LIPO"; then
-  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-LIPO=$ac_cv_prog_LIPO
-if test -n "$LIPO"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
-$as_echo "$LIPO" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_LIPO"; then
-  ac_ct_LIPO=$LIPO
-  # Extract the first word of "lipo", so it can be a program name with args.
-set dummy lipo; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_LIPO"; then
-  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_LIPO="lipo"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
-if test -n "$ac_ct_LIPO"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
-$as_echo "$ac_ct_LIPO" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_LIPO" = x; then
-    LIPO=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    LIPO=$ac_ct_LIPO
-  fi
-else
-  LIPO="$ac_cv_prog_LIPO"
-fi
-
-    if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
-set dummy ${ac_tool_prefix}otool; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_OTOOL+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$OTOOL"; then
-  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-OTOOL=$ac_cv_prog_OTOOL
-if test -n "$OTOOL"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
-$as_echo "$OTOOL" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_OTOOL"; then
-  ac_ct_OTOOL=$OTOOL
-  # Extract the first word of "otool", so it can be a program name with args.
-set dummy otool; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_OTOOL"; then
-  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_OTOOL="otool"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
-if test -n "$ac_ct_OTOOL"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
-$as_echo "$ac_ct_OTOOL" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_OTOOL" = x; then
-    OTOOL=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    OTOOL=$ac_ct_OTOOL
-  fi
-else
-  OTOOL="$ac_cv_prog_OTOOL"
-fi
-
-    if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
-set dummy ${ac_tool_prefix}otool64; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_OTOOL64+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$OTOOL64"; then
-  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-OTOOL64=$ac_cv_prog_OTOOL64
-if test -n "$OTOOL64"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
-$as_echo "$OTOOL64" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_OTOOL64"; then
-  ac_ct_OTOOL64=$OTOOL64
-  # Extract the first word of "otool64", so it can be a program name with args.
-set dummy otool64; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_OTOOL64"; then
-  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_OTOOL64="otool64"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
-if test -n "$ac_ct_OTOOL64"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
-$as_echo "$ac_ct_OTOOL64" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_OTOOL64" = x; then
-    OTOOL64=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    OTOOL64=$ac_ct_OTOOL64
-  fi
-else
-  OTOOL64="$ac_cv_prog_OTOOL64"
-fi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
-$as_echo_n "checking for -single_module linker flag... " >&6; }
-if ${lt_cv_apple_cc_single_mod+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_apple_cc_single_mod=no
-      if test -z "${LT_MULTI_MODULE}"; then
-	# By default we will add the -single_module flag. You can override
-	# by either setting the environment variable LT_MULTI_MODULE
-	# non-empty at configure time, or by adding -multi_module to the
-	# link flags.
-	rm -rf libconftest.dylib*
-	echo "int foo(void){return 1;}" > conftest.c
-	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
--dynamiclib -Wl,-single_module conftest.c" >&5
-	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
-        _lt_result=$?
-	# If there is a non-empty error log, and "single_module"
-	# appears in it, assume the flag caused a linker warning
-        if test -s conftest.err && $GREP single_module conftest.err; then
-	  cat conftest.err >&5
-	# Otherwise, if the output was created with a 0 exit code from
-	# the compiler, it worked.
-	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
-	  lt_cv_apple_cc_single_mod=yes
-	else
-	  cat conftest.err >&5
-	fi
-	rm -rf libconftest.dylib*
-	rm -f conftest.*
-      fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
-$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
-
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
-$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
-if ${lt_cv_ld_exported_symbols_list+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_ld_exported_symbols_list=no
-      save_LDFLAGS=$LDFLAGS
-      echo "_main" > conftest.sym
-      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
-      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  lt_cv_ld_exported_symbols_list=yes
-else
-  lt_cv_ld_exported_symbols_list=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-	LDFLAGS="$save_LDFLAGS"
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
-$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
-
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
-$as_echo_n "checking for -force_load linker flag... " >&6; }
-if ${lt_cv_ld_force_load+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_ld_force_load=no
-      cat > conftest.c << _LT_EOF
-int forced_loaded() { return 2;}
-_LT_EOF
-      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
-      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
-      echo "$AR cru libconftest.a conftest.o" >&5
-      $AR cru libconftest.a conftest.o 2>&5
-      echo "$RANLIB libconftest.a" >&5
-      $RANLIB libconftest.a 2>&5
-      cat > conftest.c << _LT_EOF
-int main() { return 0;}
-_LT_EOF
-      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
-      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
-      _lt_result=$?
-      if test -s conftest.err && $GREP force_load conftest.err; then
-	cat conftest.err >&5
-      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
-	lt_cv_ld_force_load=yes
-      else
-	cat conftest.err >&5
-      fi
-        rm -f conftest.err libconftest.a conftest conftest.c
-        rm -rf conftest.dSYM
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
-$as_echo "$lt_cv_ld_force_load" >&6; }
-    case $host_os in
-    rhapsody* | darwin1.[012])
-      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
-    darwin1.*)
-      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
-    darwin*) # darwin 5.x on
-      # if running on 10.5 or later, the deployment target defaults
-      # to the OS version, if on x86, and 10.4, the deployment
-      # target defaults to 10.4. Don't you love it?
-      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
-	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
-	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-	10.[012]*)
-	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
-	10.*)
-	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-      esac
-    ;;
-  esac
-    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
-      _lt_dar_single_mod='$single_module'
-    fi
-    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
-      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
-    else
-      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
-    fi
-    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
-      _lt_dsymutil='~$DSYMUTIL $lib || :'
-    else
-      _lt_dsymutil=
-    fi
-    ;;
-  esac
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
-$as_echo_n "checking how to run the C preprocessor... " >&6; }
-# On Suns, sometimes $CPP names a directory.
-if test -n "$CPP" && test -d "$CPP"; then
-  CPP=
-fi
-if test -z "$CPP"; then
-  if ${ac_cv_prog_CPP+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-      # Double quotes because CPP needs to be expanded
-    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
-    do
-      ac_preproc_ok=false
-for ac_c_preproc_warn_flag in '' yes
-do
-  # Use a header file that comes with gcc, so configuring glibc
-  # with a fresh cross-compiler works.
-  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-  # <limits.h> exists even on freestanding compilers.
-  # On the NeXT, cc -E runs the code through the compiler's parser,
-  # not just through cpp. "Syntax error" is here to catch this case.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-		     Syntax error
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-
-else
-  # Broken: fails on valid input.
-continue
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-
-  # OK, works on sane cases.  Now check whether nonexistent headers
-  # can be detected and how.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <ac_nonexistent.h>
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-  # Broken: success on invalid input.
-continue
-else
-  # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.i conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then :
-  break
-fi
-
-    done
-    ac_cv_prog_CPP=$CPP
-
-fi
-  CPP=$ac_cv_prog_CPP
-else
-  ac_cv_prog_CPP=$CPP
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
-$as_echo "$CPP" >&6; }
-ac_preproc_ok=false
-for ac_c_preproc_warn_flag in '' yes
-do
-  # Use a header file that comes with gcc, so configuring glibc
-  # with a fresh cross-compiler works.
-  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-  # <limits.h> exists even on freestanding compilers.
-  # On the NeXT, cc -E runs the code through the compiler's parser,
-  # not just through cpp. "Syntax error" is here to catch this case.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-		     Syntax error
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-
-else
-  # Broken: fails on valid input.
-continue
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-
-  # OK, works on sane cases.  Now check whether nonexistent headers
-  # can be detected and how.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <ac_nonexistent.h>
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-  # Broken: success on invalid input.
-continue
-else
-  # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.i conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then :
-
-else
-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
-$as_echo_n "checking for ANSI C header files... " >&6; }
-if ${ac_cv_header_stdc+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_header_stdc=yes
-else
-  ac_cv_header_stdc=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-if test $ac_cv_header_stdc = yes; then
-  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <string.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "memchr" >/dev/null 2>&1; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
-  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "free" >/dev/null 2>&1; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
-  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
-  if test "$cross_compiling" = yes; then :
-  :
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <ctype.h>
-#include <stdlib.h>
-#if ((' ' & 0x0FF) == 0x020)
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#else
-# define ISLOWER(c) \
-		   (('a' <= (c) && (c) <= 'i') \
-		     || ('j' <= (c) && (c) <= 'r') \
-		     || ('s' <= (c) && (c) <= 'z'))
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
-#endif
-
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int
-main ()
-{
-  int i;
-  for (i = 0; i < 256; i++)
-    if (XOR (islower (i), ISLOWER (i))
-	|| toupper (i) != TOUPPER (i))
-      return 2;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
-$as_echo "$ac_cv_header_stdc" >&6; }
-if test $ac_cv_header_stdc = yes; then
-
-$as_echo "#define STDC_HEADERS 1" >>confdefs.h
-
-fi
-
-# On IRIX 5.3, sys/types and inttypes.h are conflicting.
-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
-		  inttypes.h stdint.h unistd.h
-do :
-  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
-"
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-for ac_header in dlfcn.h
-do :
-  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
-"
-if test "x$ac_cv_header_dlfcn_h" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_DLFCN_H 1
-_ACEOF
-
-fi
-
-done
-
-
-
-
-
-# Set options
-
-
-
-        enable_dlopen=no
-
-
-  enable_win32_dll=no
-
-
-            # Check whether --enable-shared was given.
-if test "${enable_shared+set}" = set; then :
-  enableval=$enable_shared; p=${PACKAGE-default}
-    case $enableval in
-    yes) enable_shared=yes ;;
-    no) enable_shared=no ;;
-    *)
-      enable_shared=no
-      # Look at the argument we got.  We use all the common list separators.
-      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
-      for pkg in $enableval; do
-	IFS="$lt_save_ifs"
-	if test "X$pkg" = "X$p"; then
-	  enable_shared=yes
-	fi
-      done
-      IFS="$lt_save_ifs"
-      ;;
-    esac
-else
-  enable_shared=yes
-fi
-
-
-
-
-
-
-
-
-
-  # Check whether --enable-static was given.
-if test "${enable_static+set}" = set; then :
-  enableval=$enable_static; p=${PACKAGE-default}
-    case $enableval in
-    yes) enable_static=yes ;;
-    no) enable_static=no ;;
-    *)
-     enable_static=no
-      # Look at the argument we got.  We use all the common list separators.
-      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
-      for pkg in $enableval; do
-	IFS="$lt_save_ifs"
-	if test "X$pkg" = "X$p"; then
-	  enable_static=yes
-	fi
-      done
-      IFS="$lt_save_ifs"
-      ;;
-    esac
-else
-  enable_static=yes
-fi
-
-
-
-
-
-
-
-
-
-
-# Check whether --with-pic was given.
-if test "${with_pic+set}" = set; then :
-  withval=$with_pic; lt_p=${PACKAGE-default}
-    case $withval in
-    yes|no) pic_mode=$withval ;;
-    *)
-      pic_mode=default
-      # Look at the argument we got.  We use all the common list separators.
-      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
-      for lt_pkg in $withval; do
-	IFS="$lt_save_ifs"
-	if test "X$lt_pkg" = "X$lt_p"; then
-	  pic_mode=yes
-	fi
-      done
-      IFS="$lt_save_ifs"
-      ;;
-    esac
-else
-  pic_mode=default
-fi
-
-
-test -z "$pic_mode" && pic_mode=default
-
-
-
-
-
-
-
-  # Check whether --enable-fast-install was given.
-if test "${enable_fast_install+set}" = set; then :
-  enableval=$enable_fast_install; p=${PACKAGE-default}
-    case $enableval in
-    yes) enable_fast_install=yes ;;
-    no) enable_fast_install=no ;;
-    *)
-      enable_fast_install=no
-      # Look at the argument we got.  We use all the common list separators.
-      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
-      for pkg in $enableval; do
-	IFS="$lt_save_ifs"
-	if test "X$pkg" = "X$p"; then
-	  enable_fast_install=yes
-	fi
-      done
-      IFS="$lt_save_ifs"
-      ;;
-    esac
-else
-  enable_fast_install=yes
-fi
-
-
-
-
-
-
-
-
-
-
-
-# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ltmain"
-
-# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-test -z "$LN_S" && LN_S="ln -s"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-if test -n "${ZSH_VERSION+set}" ; then
-   setopt NO_GLOB_SUBST
-fi
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
-$as_echo_n "checking for objdir... " >&6; }
-if ${lt_cv_objdir+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  rm -f .libs 2>/dev/null
-mkdir .libs 2>/dev/null
-if test -d .libs; then
-  lt_cv_objdir=.libs
-else
-  # MS-DOS does not allow filenames that begin with a dot.
-  lt_cv_objdir=_libs
-fi
-rmdir .libs 2>/dev/null
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
-$as_echo "$lt_cv_objdir" >&6; }
-objdir=$lt_cv_objdir
-
-
-
-
-
-cat >>confdefs.h <<_ACEOF
-#define LT_OBJDIR "$lt_cv_objdir/"
-_ACEOF
-
-
-
-
-case $host_os in
-aix3*)
-  # AIX sometimes has problems with the GCC collect2 program.  For some
-  # reason, if we set the COLLECT_NAMES environment variable, the problems
-  # vanish in a puff of smoke.
-  if test "X${COLLECT_NAMES+set}" != Xset; then
-    COLLECT_NAMES=
-    export COLLECT_NAMES
-  fi
-  ;;
-esac
-
-# Global variables:
-ofile=libtool
-can_build_shared=yes
-
-# All known linkers require a `.a' archive for static linking (except MSVC,
-# which needs '.lib').
-libext=a
-
-with_gnu_ld="$lt_cv_prog_gnu_ld"
-
-old_CC="$CC"
-old_CFLAGS="$CFLAGS"
-
-# Set sane defaults for various variables
-test -z "$CC" && CC=cc
-test -z "$LTCC" && LTCC=$CC
-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
-test -z "$LD" && LD=ld
-test -z "$ac_objext" && ac_objext=o
-
-for cc_temp in $compiler""; do
-  case $cc_temp in
-    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
-    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
-    \-*) ;;
-    *) break;;
-  esac
-done
-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
-
-
-# Only perform the check for file, if the check method requires it
-test -z "$MAGIC_CMD" && MAGIC_CMD=file
-case $deplibs_check_method in
-file_magic*)
-  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
-$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
-if ${lt_cv_path_MAGIC_CMD+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  case $MAGIC_CMD in
-[\\/*] |  ?:[\\/]*)
-  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
-  ;;
-*)
-  lt_save_MAGIC_CMD="$MAGIC_CMD"
-  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
-  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
-  for ac_dir in $ac_dummy; do
-    IFS="$lt_save_ifs"
-    test -z "$ac_dir" && ac_dir=.
-    if test -f $ac_dir/${ac_tool_prefix}file; then
-      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
-      if test -n "$file_magic_test_file"; then
-	case $deplibs_check_method in
-	"file_magic "*)
-	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
-	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
-	    $EGREP "$file_magic_regex" > /dev/null; then
-	    :
-	  else
-	    cat <<_LT_EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such.  This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem.  Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool at gnu.org
-
-_LT_EOF
-	  fi ;;
-	esac
-      fi
-      break
-    fi
-  done
-  IFS="$lt_save_ifs"
-  MAGIC_CMD="$lt_save_MAGIC_CMD"
-  ;;
-esac
-fi
-
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
-$as_echo "$MAGIC_CMD" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-
-
-
-if test -z "$lt_cv_path_MAGIC_CMD"; then
-  if test -n "$ac_tool_prefix"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
-$as_echo_n "checking for file... " >&6; }
-if ${lt_cv_path_MAGIC_CMD+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  case $MAGIC_CMD in
-[\\/*] |  ?:[\\/]*)
-  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
-  ;;
-*)
-  lt_save_MAGIC_CMD="$MAGIC_CMD"
-  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
-  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
-  for ac_dir in $ac_dummy; do
-    IFS="$lt_save_ifs"
-    test -z "$ac_dir" && ac_dir=.
-    if test -f $ac_dir/file; then
-      lt_cv_path_MAGIC_CMD="$ac_dir/file"
-      if test -n "$file_magic_test_file"; then
-	case $deplibs_check_method in
-	"file_magic "*)
-	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
-	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
-	    $EGREP "$file_magic_regex" > /dev/null; then
-	    :
-	  else
-	    cat <<_LT_EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such.  This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem.  Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool at gnu.org
-
-_LT_EOF
-	  fi ;;
-	esac
-      fi
-      break
-    fi
-  done
-  IFS="$lt_save_ifs"
-  MAGIC_CMD="$lt_save_MAGIC_CMD"
-  ;;
-esac
-fi
-
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
-$as_echo "$MAGIC_CMD" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-  else
-    MAGIC_CMD=:
-  fi
-fi
-
-  fi
-  ;;
-esac
-
-# Use C for the default configuration in the libtool script
-
-lt_save_CC="$CC"
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-# Source file extension for C test sources.
-ac_ext=c
-
-# Object file extension for compiled C test sources.
-objext=o
-objext=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="int some_variable = 0;"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='int main(){return(0);}'
-
-
-
-
-
-
-
-# If no C compiler was specified, use CC.
-LTCC=${LTCC-"$CC"}
-
-# If no C compiler flags were specified, use CFLAGS.
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
-
-# Allow CC to be a program name with arguments.
-compiler=$CC
-
-# Save the default compiler, since it gets overwritten when the other
-# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
-compiler_DEFAULT=$CC
-
-# save warnings/boilerplate of simple test code
-ac_outfile=conftest.$ac_objext
-echo "$lt_simple_compile_test_code" >conftest.$ac_ext
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_compiler_boilerplate=`cat conftest.err`
-$RM conftest*
-
-ac_outfile=conftest.$ac_objext
-echo "$lt_simple_link_test_code" >conftest.$ac_ext
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_linker_boilerplate=`cat conftest.err`
-$RM -r conftest*
-
-
-## CAVEAT EMPTOR:
-## There is no encapsulation within the following macros, do not change
-## the running order or otherwise move them around unless you know exactly
-## what you are doing...
-if test -n "$compiler"; then
-
-lt_prog_compiler_no_builtin_flag=
-
-if test "$GCC" = yes; then
-  case $cc_basename in
-  nvcc*)
-    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
-  *)
-    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
-  esac
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
-$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
-if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_prog_compiler_rtti_exceptions=no
-   ac_outfile=conftest.$ac_objext
-   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
-   lt_compiler_flag="-fno-rtti -fno-exceptions"
-   # Insert the option either (1) after the last *FLAGS variable, or
-   # (2) before a word containing "conftest.", or (3) at the end.
-   # Note that $ac_compile itself does not contain backslashes and begins
-   # with a dollar sign (not a hyphen), so the echo should work correctly.
-   # The option is referenced via a variable to avoid confusing sed.
-   lt_compile=`echo "$ac_compile" | $SED \
-   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-   -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
-   (eval "$lt_compile" 2>conftest.err)
-   ac_status=$?
-   cat conftest.err >&5
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   if (exit $ac_status) && test -s "$ac_outfile"; then
-     # The compiler can only warn and ignore the option if not recognized
-     # So say no if there are warnings other than the usual output.
-     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
-     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
-     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
-       lt_cv_prog_compiler_rtti_exceptions=yes
-     fi
-   fi
-   $RM conftest*
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
-$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
-
-if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
-    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
-else
-    :
-fi
-
-fi
-
-
-
-
-
-
-  lt_prog_compiler_wl=
-lt_prog_compiler_pic=
-lt_prog_compiler_static=
-
-
-  if test "$GCC" = yes; then
-    lt_prog_compiler_wl='-Wl,'
-    lt_prog_compiler_static='-static'
-
-    case $host_os in
-      aix*)
-      # All AIX code is PIC.
-      if test "$host_cpu" = ia64; then
-	# AIX 5 now supports IA64 processor
-	lt_prog_compiler_static='-Bstatic'
-      fi
-      ;;
-
-    amigaos*)
-      case $host_cpu in
-      powerpc)
-            # see comment about AmigaOS4 .so support
-            lt_prog_compiler_pic='-fPIC'
-        ;;
-      m68k)
-            # FIXME: we need at least 68020 code to build shared libraries, but
-            # adding the `-m68020' flag to GCC prevents building anything better,
-            # like `-m68040'.
-            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
-        ;;
-      esac
-      ;;
-
-    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
-      # PIC is the default for these OSes.
-      ;;
-
-    mingw* | cygwin* | pw32* | os2* | cegcc*)
-      # This hack is so that the source file can tell whether it is being
-      # built for inclusion in a dll (and should export symbols for example).
-      # Although the cygwin gcc ignores -fPIC, still need this for old-style
-      # (--disable-auto-import) libraries
-      lt_prog_compiler_pic='-DDLL_EXPORT'
-      ;;
-
-    darwin* | rhapsody*)
-      # PIC is the default on this platform
-      # Common symbols not allowed in MH_DYLIB files
-      lt_prog_compiler_pic='-fno-common'
-      ;;
-
-    haiku*)
-      # PIC is the default for Haiku.
-      # The "-static" flag exists, but is broken.
-      lt_prog_compiler_static=
-      ;;
-
-    hpux*)
-      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
-      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
-      # sets the default TLS model and affects inlining.
-      case $host_cpu in
-      hppa*64*)
-	# +Z the default
-	;;
-      *)
-	lt_prog_compiler_pic='-fPIC'
-	;;
-      esac
-      ;;
-
-    interix[3-9]*)
-      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
-      # Instead, we relocate shared libraries at runtime.
-      ;;
-
-    msdosdjgpp*)
-      # Just because we use GCC doesn't mean we suddenly get shared libraries
-      # on systems that don't support them.
-      lt_prog_compiler_can_build_shared=no
-      enable_shared=no
-      ;;
-
-    *nto* | *qnx*)
-      # QNX uses GNU C++, but need to define -shared option too, otherwise
-      # it will coredump.
-      lt_prog_compiler_pic='-fPIC -shared'
-      ;;
-
-    sysv4*MP*)
-      if test -d /usr/nec; then
-	lt_prog_compiler_pic=-Kconform_pic
-      fi
-      ;;
-
-    *)
-      lt_prog_compiler_pic='-fPIC'
-      ;;
-    esac
-
-    case $cc_basename in
-    nvcc*) # Cuda Compiler Driver 2.2
-      lt_prog_compiler_wl='-Xlinker '
-      if test -n "$lt_prog_compiler_pic"; then
-        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
-      fi
-      ;;
-    esac
-  else
-    # PORTME Check for flag to pass linker flags through the system compiler.
-    case $host_os in
-    aix*)
-      lt_prog_compiler_wl='-Wl,'
-      if test "$host_cpu" = ia64; then
-	# AIX 5 now supports IA64 processor
-	lt_prog_compiler_static='-Bstatic'
-      else
-	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
-      fi
-      ;;
-
-    mingw* | cygwin* | pw32* | os2* | cegcc*)
-      # This hack is so that the source file can tell whether it is being
-      # built for inclusion in a dll (and should export symbols for example).
-      lt_prog_compiler_pic='-DDLL_EXPORT'
-      ;;
-
-    hpux9* | hpux10* | hpux11*)
-      lt_prog_compiler_wl='-Wl,'
-      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
-      # not for PA HP-UX.
-      case $host_cpu in
-      hppa*64*|ia64*)
-	# +Z the default
-	;;
-      *)
-	lt_prog_compiler_pic='+Z'
-	;;
-      esac
-      # Is there a better lt_prog_compiler_static that works with the bundled CC?
-      lt_prog_compiler_static='${wl}-a ${wl}archive'
-      ;;
-
-    irix5* | irix6* | nonstopux*)
-      lt_prog_compiler_wl='-Wl,'
-      # PIC (with -KPIC) is the default.
-      lt_prog_compiler_static='-non_shared'
-      ;;
-
-    linux* | k*bsd*-gnu | kopensolaris*-gnu)
-      case $cc_basename in
-      # old Intel for x86_64 which still supported -KPIC.
-      ecc*)
-	lt_prog_compiler_wl='-Wl,'
-	lt_prog_compiler_pic='-KPIC'
-	lt_prog_compiler_static='-static'
-        ;;
-      # icc used to be incompatible with GCC.
-      # ICC 10 doesn't accept -KPIC any more.
-      icc* | ifort*)
-	lt_prog_compiler_wl='-Wl,'
-	lt_prog_compiler_pic='-fPIC'
-	lt_prog_compiler_static='-static'
-        ;;
-      # Lahey Fortran 8.1.
-      lf95*)
-	lt_prog_compiler_wl='-Wl,'
-	lt_prog_compiler_pic='--shared'
-	lt_prog_compiler_static='--static'
-	;;
-      nagfor*)
-	# NAG Fortran compiler
-	lt_prog_compiler_wl='-Wl,-Wl,,'
-	lt_prog_compiler_pic='-PIC'
-	lt_prog_compiler_static='-Bstatic'
-	;;
-      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
-        # Portland Group compilers (*not* the Pentium gcc compiler,
-	# which looks to be a dead project)
-	lt_prog_compiler_wl='-Wl,'
-	lt_prog_compiler_pic='-fpic'
-	lt_prog_compiler_static='-Bstatic'
-        ;;
-      ccc*)
-        lt_prog_compiler_wl='-Wl,'
-        # All Alpha code is PIC.
-        lt_prog_compiler_static='-non_shared'
-        ;;
-      xl* | bgxl* | bgf* | mpixl*)
-	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
-	lt_prog_compiler_wl='-Wl,'
-	lt_prog_compiler_pic='-qpic'
-	lt_prog_compiler_static='-qstaticlink'
-	;;
-      *)
-	case `$CC -V 2>&1 | sed 5q` in
-	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
-	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
-	  lt_prog_compiler_pic='-KPIC'
-	  lt_prog_compiler_static='-Bstatic'
-	  lt_prog_compiler_wl=''
-	  ;;
-	*Sun\ F* | *Sun*Fortran*)
-	  lt_prog_compiler_pic='-KPIC'
-	  lt_prog_compiler_static='-Bstatic'
-	  lt_prog_compiler_wl='-Qoption ld '
-	  ;;
-	*Sun\ C*)
-	  # Sun C 5.9
-	  lt_prog_compiler_pic='-KPIC'
-	  lt_prog_compiler_static='-Bstatic'
-	  lt_prog_compiler_wl='-Wl,'
-	  ;;
-        *Intel*\ [CF]*Compiler*)
-	  lt_prog_compiler_wl='-Wl,'
-	  lt_prog_compiler_pic='-fPIC'
-	  lt_prog_compiler_static='-static'
-	  ;;
-	*Portland\ Group*)
-	  lt_prog_compiler_wl='-Wl,'
-	  lt_prog_compiler_pic='-fpic'
-	  lt_prog_compiler_static='-Bstatic'
-	  ;;
-	esac
-	;;
-      esac
-      ;;
-
-    newsos6)
-      lt_prog_compiler_pic='-KPIC'
-      lt_prog_compiler_static='-Bstatic'
-      ;;
-
-    *nto* | *qnx*)
-      # QNX uses GNU C++, but need to define -shared option too, otherwise
-      # it will coredump.
-      lt_prog_compiler_pic='-fPIC -shared'
-      ;;
-
-    osf3* | osf4* | osf5*)
-      lt_prog_compiler_wl='-Wl,'
-      # All OSF/1 code is PIC.
-      lt_prog_compiler_static='-non_shared'
-      ;;
-
-    rdos*)
-      lt_prog_compiler_static='-non_shared'
-      ;;
-
-    solaris*)
-      lt_prog_compiler_pic='-KPIC'
-      lt_prog_compiler_static='-Bstatic'
-      case $cc_basename in
-      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
-	lt_prog_compiler_wl='-Qoption ld ';;
-      *)
-	lt_prog_compiler_wl='-Wl,';;
-      esac
-      ;;
-
-    sunos4*)
-      lt_prog_compiler_wl='-Qoption ld '
-      lt_prog_compiler_pic='-PIC'
-      lt_prog_compiler_static='-Bstatic'
-      ;;
-
-    sysv4 | sysv4.2uw2* | sysv4.3*)
-      lt_prog_compiler_wl='-Wl,'
-      lt_prog_compiler_pic='-KPIC'
-      lt_prog_compiler_static='-Bstatic'
-      ;;
-
-    sysv4*MP*)
-      if test -d /usr/nec ;then
-	lt_prog_compiler_pic='-Kconform_pic'
-	lt_prog_compiler_static='-Bstatic'
-      fi
-      ;;
-
-    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
-      lt_prog_compiler_wl='-Wl,'
-      lt_prog_compiler_pic='-KPIC'
-      lt_prog_compiler_static='-Bstatic'
-      ;;
-
-    unicos*)
-      lt_prog_compiler_wl='-Wl,'
-      lt_prog_compiler_can_build_shared=no
-      ;;
-
-    uts4*)
-      lt_prog_compiler_pic='-pic'
-      lt_prog_compiler_static='-Bstatic'
-      ;;
-
-    *)
-      lt_prog_compiler_can_build_shared=no
-      ;;
-    esac
-  fi
-
-case $host_os in
-  # For platforms which do not support PIC, -DPIC is meaningless:
-  *djgpp*)
-    lt_prog_compiler_pic=
-    ;;
-  *)
-    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
-    ;;
-esac
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
-if ${lt_cv_prog_compiler_pic+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
-$as_echo "$lt_cv_prog_compiler_pic" >&6; }
-lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
-
-#
-# Check to make sure the PIC flag actually works.
-#
-if test -n "$lt_prog_compiler_pic"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
-$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
-if ${lt_cv_prog_compiler_pic_works+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_prog_compiler_pic_works=no
-   ac_outfile=conftest.$ac_objext
-   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
-   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
-   # Insert the option either (1) after the last *FLAGS variable, or
-   # (2) before a word containing "conftest.", or (3) at the end.
-   # Note that $ac_compile itself does not contain backslashes and begins
-   # with a dollar sign (not a hyphen), so the echo should work correctly.
-   # The option is referenced via a variable to avoid confusing sed.
-   lt_compile=`echo "$ac_compile" | $SED \
-   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-   -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
-   (eval "$lt_compile" 2>conftest.err)
-   ac_status=$?
-   cat conftest.err >&5
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   if (exit $ac_status) && test -s "$ac_outfile"; then
-     # The compiler can only warn and ignore the option if not recognized
-     # So say no if there are warnings other than the usual output.
-     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
-     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
-     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
-       lt_cv_prog_compiler_pic_works=yes
-     fi
-   fi
-   $RM conftest*
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
-$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
-
-if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
-    case $lt_prog_compiler_pic in
-     "" | " "*) ;;
-     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
-     esac
-else
-    lt_prog_compiler_pic=
-     lt_prog_compiler_can_build_shared=no
-fi
-
-fi
-
-
-
-
-
-
-
-
-
-
-
-#
-# Check to make sure the static flag actually works.
-#
-wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
-$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
-if ${lt_cv_prog_compiler_static_works+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_prog_compiler_static_works=no
-   save_LDFLAGS="$LDFLAGS"
-   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
-   echo "$lt_simple_link_test_code" > conftest.$ac_ext
-   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
-     # The linker can only warn and ignore the option if not recognized
-     # So say no if there are warnings
-     if test -s conftest.err; then
-       # Append any errors to the config.log.
-       cat conftest.err 1>&5
-       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
-       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
-       if diff conftest.exp conftest.er2 >/dev/null; then
-         lt_cv_prog_compiler_static_works=yes
-       fi
-     else
-       lt_cv_prog_compiler_static_works=yes
-     fi
-   fi
-   $RM -r conftest*
-   LDFLAGS="$save_LDFLAGS"
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
-$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
-
-if test x"$lt_cv_prog_compiler_static_works" = xyes; then
-    :
-else
-    lt_prog_compiler_static=
-fi
-
-
-
-
-
-
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
-$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
-if ${lt_cv_prog_compiler_c_o+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_prog_compiler_c_o=no
-   $RM -r conftest 2>/dev/null
-   mkdir conftest
-   cd conftest
-   mkdir out
-   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
-
-   lt_compiler_flag="-o out/conftest2.$ac_objext"
-   # Insert the option either (1) after the last *FLAGS variable, or
-   # (2) before a word containing "conftest.", or (3) at the end.
-   # Note that $ac_compile itself does not contain backslashes and begins
-   # with a dollar sign (not a hyphen), so the echo should work correctly.
-   lt_compile=`echo "$ac_compile" | $SED \
-   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-   -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
-   (eval "$lt_compile" 2>out/conftest.err)
-   ac_status=$?
-   cat out/conftest.err >&5
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   if (exit $ac_status) && test -s out/conftest2.$ac_objext
-   then
-     # The compiler can only warn and ignore the option if not recognized
-     # So say no if there are warnings
-     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
-     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
-     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
-       lt_cv_prog_compiler_c_o=yes
-     fi
-   fi
-   chmod u+w . 2>&5
-   $RM conftest*
-   # SGI C++ compiler will create directory out/ii_files/ for
-   # template instantiation
-   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
-   $RM out/* && rmdir out
-   cd ..
-   $RM -r conftest
-   $RM conftest*
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
-$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
-
-
-
-
-
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
-$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
-if ${lt_cv_prog_compiler_c_o+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_prog_compiler_c_o=no
-   $RM -r conftest 2>/dev/null
-   mkdir conftest
-   cd conftest
-   mkdir out
-   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
-
-   lt_compiler_flag="-o out/conftest2.$ac_objext"
-   # Insert the option either (1) after the last *FLAGS variable, or
-   # (2) before a word containing "conftest.", or (3) at the end.
-   # Note that $ac_compile itself does not contain backslashes and begins
-   # with a dollar sign (not a hyphen), so the echo should work correctly.
-   lt_compile=`echo "$ac_compile" | $SED \
-   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-   -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
-   (eval "$lt_compile" 2>out/conftest.err)
-   ac_status=$?
-   cat out/conftest.err >&5
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   if (exit $ac_status) && test -s out/conftest2.$ac_objext
-   then
-     # The compiler can only warn and ignore the option if not recognized
-     # So say no if there are warnings
-     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
-     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
-     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
-       lt_cv_prog_compiler_c_o=yes
-     fi
-   fi
-   chmod u+w . 2>&5
-   $RM conftest*
-   # SGI C++ compiler will create directory out/ii_files/ for
-   # template instantiation
-   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
-   $RM out/* && rmdir out
-   cd ..
-   $RM -r conftest
-   $RM conftest*
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
-$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
-
-
-
-
-hard_links="nottested"
-if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
-  # do not overwrite the value of need_locks provided by the user
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
-$as_echo_n "checking if we can lock with hard links... " >&6; }
-  hard_links=yes
-  $RM conftest*
-  ln conftest.a conftest.b 2>/dev/null && hard_links=no
-  touch conftest.a
-  ln conftest.a conftest.b 2>&5 || hard_links=no
-  ln conftest.a conftest.b 2>/dev/null && hard_links=no
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
-$as_echo "$hard_links" >&6; }
-  if test "$hard_links" = no; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
-$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
-    need_locks=warn
-  fi
-else
-  need_locks=no
-fi
-
-
-
-
-
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
-$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
-
-  runpath_var=
-  allow_undefined_flag=
-  always_export_symbols=no
-  archive_cmds=
-  archive_expsym_cmds=
-  compiler_needs_object=no
-  enable_shared_with_static_runtimes=no
-  export_dynamic_flag_spec=
-  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
-  hardcode_automatic=no
-  hardcode_direct=no
-  hardcode_direct_absolute=no
-  hardcode_libdir_flag_spec=
-  hardcode_libdir_separator=
-  hardcode_minus_L=no
-  hardcode_shlibpath_var=unsupported
-  inherit_rpath=no
-  link_all_deplibs=unknown
-  module_cmds=
-  module_expsym_cmds=
-  old_archive_from_new_cmds=
-  old_archive_from_expsyms_cmds=
-  thread_safe_flag_spec=
-  whole_archive_flag_spec=
-  # include_expsyms should be a list of space-separated symbols to be *always*
-  # included in the symbol list
-  include_expsyms=
-  # exclude_expsyms can be an extended regexp of symbols to exclude
-  # it will be wrapped by ` (' and `)$', so one must not match beginning or
-  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
-  # as well as any symbol that contains `d'.
-  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
-  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
-  # platforms (ab)use it in PIC code, but their linkers get confused if
-  # the symbol is explicitly referenced.  Since portable code cannot
-  # rely on this symbol name, it's probably fine to never include it in
-  # preloaded symbol tables.
-  # Exclude shared library initialization/finalization symbols.
-  extract_expsyms_cmds=
-
-  case $host_os in
-  cygwin* | mingw* | pw32* | cegcc*)
-    # FIXME: the MSVC++ port hasn't been tested in a loooong time
-    # When not using gcc, we currently assume that we are using
-    # Microsoft Visual C++.
-    if test "$GCC" != yes; then
-      with_gnu_ld=no
-    fi
-    ;;
-  interix*)
-    # we just hope/assume this is gcc and not c89 (= MSVC++)
-    with_gnu_ld=yes
-    ;;
-  openbsd*)
-    with_gnu_ld=no
-    ;;
-  esac
-
-  ld_shlibs=yes
-
-  # On some targets, GNU ld is compatible enough with the native linker
-  # that we're better off using the native interface for both.
-  lt_use_gnu_ld_interface=no
-  if test "$with_gnu_ld" = yes; then
-    case $host_os in
-      aix*)
-	# The AIX port of GNU ld has always aspired to compatibility
-	# with the native linker.  However, as the warning in the GNU ld
-	# block says, versions before 2.19.5* couldn't really create working
-	# shared libraries, regardless of the interface used.
-	case `$LD -v 2>&1` in
-	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
-	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
-	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
-	  *)
-	    lt_use_gnu_ld_interface=yes
-	    ;;
-	esac
-	;;
-      *)
-	lt_use_gnu_ld_interface=yes
-	;;
-    esac
-  fi
-
-  if test "$lt_use_gnu_ld_interface" = yes; then
-    # If archive_cmds runs LD, not CC, wlarc should be empty
-    wlarc='${wl}'
-
-    # Set some defaults for GNU ld with shared library support. These
-    # are reset later if shared libraries are not supported. Putting them
-    # here allows them to be overridden if necessary.
-    runpath_var=LD_RUN_PATH
-    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
-    export_dynamic_flag_spec='${wl}--export-dynamic'
-    # ancient GNU ld didn't support --whole-archive et. al.
-    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
-      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
-    else
-      whole_archive_flag_spec=
-    fi
-    supports_anon_versioning=no
-    case `$LD -v 2>&1` in
-      *GNU\ gold*) supports_anon_versioning=yes ;;
-      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
-      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
-      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
-      *\ 2.11.*) ;; # other 2.11 versions
-      *) supports_anon_versioning=yes ;;
-    esac
-
-    # See if GNU ld supports shared libraries.
-    case $host_os in
-    aix[3-9]*)
-      # On AIX/PPC, the GNU linker is very broken
-      if test "$host_cpu" != ia64; then
-	ld_shlibs=no
-	cat <<_LT_EOF 1>&2
-
-*** Warning: the GNU linker, at least up to release 2.19, is reported
-*** to be unable to reliably create shared libraries on AIX.
-*** Therefore, libtool is disabling shared libraries support.  If you
-*** really care for shared libraries, you may want to install binutils
-*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
-*** You will then need to restart the configuration process.
-
-_LT_EOF
-      fi
-      ;;
-
-    amigaos*)
-      case $host_cpu in
-      powerpc)
-            # see comment about AmigaOS4 .so support
-            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-            archive_expsym_cmds=''
-        ;;
-      m68k)
-            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
-            hardcode_libdir_flag_spec='-L$libdir'
-            hardcode_minus_L=yes
-        ;;
-      esac
-      ;;
-
-    beos*)
-      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
-	allow_undefined_flag=unsupported
-	# Joseph Beckenbach <jrb3 at best.com> says some releases of gcc
-	# support --undefined.  This deserves some investigation.  FIXME
-	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-      else
-	ld_shlibs=no
-      fi
-      ;;
-
-    cygwin* | mingw* | pw32* | cegcc*)
-      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
-      # as there is no search path for DLLs.
-      hardcode_libdir_flag_spec='-L$libdir'
-      export_dynamic_flag_spec='${wl}--export-all-symbols'
-      allow_undefined_flag=unsupported
-      always_export_symbols=no
-      enable_shared_with_static_runtimes=yes
-      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
-      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
-
-      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
-        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
-	# If the export-symbols file already is a .def file (1st line
-	# is EXPORTS), use it as is; otherwise, prepend...
-	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
-	  cp $export_symbols $output_objdir/$soname.def;
-	else
-	  echo EXPORTS > $output_objdir/$soname.def;
-	  cat $export_symbols >> $output_objdir/$soname.def;
-	fi~
-	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
-      else
-	ld_shlibs=no
-      fi
-      ;;
-
-    haiku*)
-      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-      link_all_deplibs=yes
-      ;;
-
-    interix[3-9]*)
-      hardcode_direct=no
-      hardcode_shlibpath_var=no
-      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
-      export_dynamic_flag_spec='${wl}-E'
-      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
-      # Instead, shared libraries are loaded at an image base (0x10000000 by
-      # default) and relocated if they conflict, which is a slow very memory
-      # consuming and fragmenting process.  To avoid this, we pick a random,
-      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
-      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
-      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
-      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
-      ;;
-
-    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
-      tmp_diet=no
-      if test "$host_os" = linux-dietlibc; then
-	case $cc_basename in
-	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
-	esac
-      fi
-      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
-	 && test "$tmp_diet" = no
-      then
-	tmp_addflag=' $pic_flag'
-	tmp_sharedflag='-shared'
-	case $cc_basename,$host_cpu in
-        pgcc*)				# Portland Group C compiler
-	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
-	  tmp_addflag=' $pic_flag'
-	  ;;
-	pgf77* | pgf90* | pgf95* | pgfortran*)
-					# Portland Group f77 and f90 compilers
-	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
-	  tmp_addflag=' $pic_flag -Mnomain' ;;
-	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
-	  tmp_addflag=' -i_dynamic' ;;
-	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
-	  tmp_addflag=' -i_dynamic -nofor_main' ;;
-	ifc* | ifort*)			# Intel Fortran compiler
-	  tmp_addflag=' -nofor_main' ;;
-	lf95*)				# Lahey Fortran 8.1
-	  whole_archive_flag_spec=
-	  tmp_sharedflag='--shared' ;;
-	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
-	  tmp_sharedflag='-qmkshrobj'
-	  tmp_addflag= ;;
-	nvcc*)	# Cuda Compiler Driver 2.2
-	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
-	  compiler_needs_object=yes
-	  ;;
-	esac
-	case `$CC -V 2>&1 | sed 5q` in
-	*Sun\ C*)			# Sun C 5.9
-	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
-	  compiler_needs_object=yes
-	  tmp_sharedflag='-G' ;;
-	*Sun\ F*)			# Sun Fortran 8.3
-	  tmp_sharedflag='-G' ;;
-	esac
-	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-
-        if test "x$supports_anon_versioning" = xyes; then
-          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
-	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
-	    echo "local: *; };" >> $output_objdir/$libname.ver~
-	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
-        fi
-
-	case $cc_basename in
-	xlf* | bgf* | bgxlf* | mpixlf*)
-	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
-	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
-	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
-	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
-	  if test "x$supports_anon_versioning" = xyes; then
-	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
-	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
-	      echo "local: *; };" >> $output_objdir/$libname.ver~
-	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
-	  fi
-	  ;;
-	esac
-      else
-        ld_shlibs=no
-      fi
-      ;;
-
-    netbsd*)
-      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
-	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
-	wlarc=
-      else
-	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-      fi
-      ;;
-
-    solaris*)
-      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
-	ld_shlibs=no
-	cat <<_LT_EOF 1>&2
-
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
-*** create shared libraries on Solaris systems.  Therefore, libtool
-*** is disabling shared libraries support.  We urge you to upgrade GNU
-*** binutils to release 2.9.1 or newer.  Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-_LT_EOF
-      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
-	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-      else
-	ld_shlibs=no
-      fi
-      ;;
-
-    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
-      case `$LD -v 2>&1` in
-        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
-	ld_shlibs=no
-	cat <<_LT_EOF 1>&2
-
-*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
-*** reliably create shared libraries on SCO systems.  Therefore, libtool
-*** is disabling shared libraries support.  We urge you to upgrade GNU
-*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-_LT_EOF
-	;;
-	*)
-	  # For security reasons, it is highly recommended that you always
-	  # use absolute paths for naming shared libraries, and exclude the
-	  # DT_RUNPATH tag from executables and libraries.  But doing so
-	  # requires that you compile everything twice, which is a pain.
-	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
-	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
-	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-	  else
-	    ld_shlibs=no
-	  fi
-	;;
-      esac
-      ;;
-
-    sunos4*)
-      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
-      wlarc=
-      hardcode_direct=yes
-      hardcode_shlibpath_var=no
-      ;;
-
-    *)
-      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
-	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-      else
-	ld_shlibs=no
-      fi
-      ;;
-    esac
-
-    if test "$ld_shlibs" = no; then
-      runpath_var=
-      hardcode_libdir_flag_spec=
-      export_dynamic_flag_spec=
-      whole_archive_flag_spec=
-    fi
-  else
-    # PORTME fill in a description of your system's linker (not GNU ld)
-    case $host_os in
-    aix3*)
-      allow_undefined_flag=unsupported
-      always_export_symbols=yes
-      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
-      # Note: this linker hardcodes the directories in LIBPATH if there
-      # are no directories specified by -L.
-      hardcode_minus_L=yes
-      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
-	# Neither direct hardcoding nor static linking is supported with a
-	# broken collect2.
-	hardcode_direct=unsupported
-      fi
-      ;;
-
-    aix[4-9]*)
-      if test "$host_cpu" = ia64; then
-	# On IA64, the linker does run time linking by default, so we don't
-	# have to do anything special.
-	aix_use_runtimelinking=no
-	exp_sym_flag='-Bexport'
-	no_entry_flag=""
-      else
-	# If we're using GNU nm, then we don't want the "-C" option.
-	# -C means demangle to AIX nm, but means don't demangle with GNU nm
-	# Also, AIX nm treats weak defined symbols like other global
-	# defined symbols, whereas GNU nm marks them as "W".
-	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
-	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
-	else
-	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
-	fi
-	aix_use_runtimelinking=no
-
-	# Test if we are trying to use run time linking or normal
-	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
-	# need to do runtime linking.
-	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
-	  for ld_flag in $LDFLAGS; do
-	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
-	    aix_use_runtimelinking=yes
-	    break
-	  fi
-	  done
-	  ;;
-	esac
-
-	exp_sym_flag='-bexport'
-	no_entry_flag='-bnoentry'
-      fi
-
-      # When large executables or shared objects are built, AIX ld can
-      # have problems creating the table of contents.  If linking a library
-      # or program results in "error TOC overflow" add -mminimal-toc to
-      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
-      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
-      archive_cmds=''
-      hardcode_direct=yes
-      hardcode_direct_absolute=yes
-      hardcode_libdir_separator=':'
-      link_all_deplibs=yes
-      file_list_spec='${wl}-f,'
-
-      if test "$GCC" = yes; then
-	case $host_os in aix4.[012]|aix4.[012].*)
-	# We only want to do this on AIX 4.2 and lower, the check
-	# below for broken collect2 doesn't work under 4.3+
-	  collect2name=`${CC} -print-prog-name=collect2`
-	  if test -f "$collect2name" &&
-	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
-	  then
-	  # We have reworked collect2
-	  :
-	  else
-	  # We have old collect2
-	  hardcode_direct=unsupported
-	  # It fails to find uninstalled libraries when the uninstalled
-	  # path is not listed in the libpath.  Setting hardcode_minus_L
-	  # to unsupported forces relinking
-	  hardcode_minus_L=yes
-	  hardcode_libdir_flag_spec='-L$libdir'
-	  hardcode_libdir_separator=
-	  fi
-	  ;;
-	esac
-	shared_flag='-shared'
-	if test "$aix_use_runtimelinking" = yes; then
-	  shared_flag="$shared_flag "'${wl}-G'
-	fi
-      else
-	# not using gcc
-	if test "$host_cpu" = ia64; then
-	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
-	# chokes on -Wl,-G. The following line is correct:
-	  shared_flag='-G'
-	else
-	  if test "$aix_use_runtimelinking" = yes; then
-	    shared_flag='${wl}-G'
-	  else
-	    shared_flag='${wl}-bM:SRE'
-	  fi
-	fi
-      fi
-
-      export_dynamic_flag_spec='${wl}-bexpall'
-      # It seems that -bexpall does not export symbols beginning with
-      # underscore (_), so it is better to generate a list of symbols to export.
-      always_export_symbols=yes
-      if test "$aix_use_runtimelinking" = yes; then
-	# Warning - without using the other runtime loading flags (-brtl),
-	# -berok will link without error, but may produce a broken library.
-	allow_undefined_flag='-berok'
-        # Determine the default libpath from the value encoded in an
-        # empty executable.
-        if test "${lt_cv_aix_libpath+set}" = set; then
-  aix_libpath=$lt_cv_aix_libpath
-else
-  if ${lt_cv_aix_libpath_+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-
-  lt_aix_libpath_sed='
-      /Import File Strings/,/^$/ {
-	  /^0/ {
-	      s/^0  *\([^ ]*\) *$/\1/
-	      p
-	  }
-      }'
-  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
-  # Check for a 64-bit object if we didn't find anything.
-  if test -z "$lt_cv_aix_libpath_"; then
-    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
-  fi
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-  if test -z "$lt_cv_aix_libpath_"; then
-    lt_cv_aix_libpath_="/usr/lib:/lib"
-  fi
-
-fi
-
-  aix_libpath=$lt_cv_aix_libpath_
-fi
-
-        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
-        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
-      else
-	if test "$host_cpu" = ia64; then
-	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
-	  allow_undefined_flag="-z nodefs"
-	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
-	else
-	 # Determine the default libpath from the value encoded in an
-	 # empty executable.
-	 if test "${lt_cv_aix_libpath+set}" = set; then
-  aix_libpath=$lt_cv_aix_libpath
-else
-  if ${lt_cv_aix_libpath_+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-
-  lt_aix_libpath_sed='
-      /Import File Strings/,/^$/ {
-	  /^0/ {
-	      s/^0  *\([^ ]*\) *$/\1/
-	      p
-	  }
-      }'
-  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
-  # Check for a 64-bit object if we didn't find anything.
-  if test -z "$lt_cv_aix_libpath_"; then
-    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
-  fi
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-  if test -z "$lt_cv_aix_libpath_"; then
-    lt_cv_aix_libpath_="/usr/lib:/lib"
-  fi
-
-fi
-
-  aix_libpath=$lt_cv_aix_libpath_
-fi
-
-	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
-	  # Warning - without using the other run time loading flags,
-	  # -berok will link without error, but may produce a broken library.
-	  no_undefined_flag=' ${wl}-bernotok'
-	  allow_undefined_flag=' ${wl}-berok'
-	  if test "$with_gnu_ld" = yes; then
-	    # We only use this code for GNU lds that support --whole-archive.
-	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
-	  else
-	    # Exported symbols can be pulled into shared objects from archives
-	    whole_archive_flag_spec='$convenience'
-	  fi
-	  archive_cmds_need_lc=yes
-	  # This is similar to how AIX traditionally builds its shared libraries.
-	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
-	fi
-      fi
-      ;;
-
-    amigaos*)
-      case $host_cpu in
-      powerpc)
-            # see comment about AmigaOS4 .so support
-            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-            archive_expsym_cmds=''
-        ;;
-      m68k)
-            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
-            hardcode_libdir_flag_spec='-L$libdir'
-            hardcode_minus_L=yes
-        ;;
-      esac
-      ;;
-
-    bsdi[45]*)
-      export_dynamic_flag_spec=-rdynamic
-      ;;
-
-    cygwin* | mingw* | pw32* | cegcc*)
-      # When not using gcc, we currently assume that we are using
-      # Microsoft Visual C++.
-      # hardcode_libdir_flag_spec is actually meaningless, as there is
-      # no search path for DLLs.
-      case $cc_basename in
-      cl*)
-	# Native MSVC
-	hardcode_libdir_flag_spec=' '
-	allow_undefined_flag=unsupported
-	always_export_symbols=yes
-	file_list_spec='@'
-	# Tell ltmain to make .lib files, not .a files.
-	libext=lib
-	# Tell ltmain to make .dll files, not .so files.
-	shrext_cmds=".dll"
-	# FIXME: Setting linknames here is a bad hack.
-	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
-	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
-	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
-	  else
-	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
-	  fi~
-	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
-	  linknames='
-	# The linker will not automatically build a static lib if we build a DLL.
-	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
-	enable_shared_with_static_runtimes=yes
-	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
-	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
-	# Don't use ranlib
-	old_postinstall_cmds='chmod 644 $oldlib'
-	postlink_cmds='lt_outputfile="@OUTPUT@"~
-	  lt_tool_outputfile="@TOOL_OUTPUT@"~
-	  case $lt_outputfile in
-	    *.exe|*.EXE) ;;
-	    *)
-	      lt_outputfile="$lt_outputfile.exe"
-	      lt_tool_outputfile="$lt_tool_outputfile.exe"
-	      ;;
-	  esac~
-	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
-	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
-	    $RM "$lt_outputfile.manifest";
-	  fi'
-	;;
-      *)
-	# Assume MSVC wrapper
-	hardcode_libdir_flag_spec=' '
-	allow_undefined_flag=unsupported
-	# Tell ltmain to make .lib files, not .a files.
-	libext=lib
-	# Tell ltmain to make .dll files, not .so files.
-	shrext_cmds=".dll"
-	# FIXME: Setting linknames here is a bad hack.
-	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
-	# The linker will automatically build a .lib file if we build a DLL.
-	old_archive_from_new_cmds='true'
-	# FIXME: Should let the user specify the lib program.
-	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
-	enable_shared_with_static_runtimes=yes
-	;;
-      esac
-      ;;
-
-    darwin* | rhapsody*)
-
-
-  archive_cmds_need_lc=no
-  hardcode_direct=no
-  hardcode_automatic=yes
-  hardcode_shlibpath_var=unsupported
-  if test "$lt_cv_ld_force_load" = "yes"; then
-    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
-
-  else
-    whole_archive_flag_spec=''
-  fi
-  link_all_deplibs=yes
-  allow_undefined_flag="$_lt_dar_allow_undefined"
-  case $cc_basename in
-     ifort*) _lt_dar_can_shared=yes ;;
-     *) _lt_dar_can_shared=$GCC ;;
-  esac
-  if test "$_lt_dar_can_shared" = "yes"; then
-    output_verbose_link_cmd=func_echo_all
-    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
-    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
-    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
-    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
-
-  else
-  ld_shlibs=no
-  fi
-
-      ;;
-
-    dgux*)
-      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-      hardcode_libdir_flag_spec='-L$libdir'
-      hardcode_shlibpath_var=no
-      ;;
-
-    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
-    # support.  Future versions do this automatically, but an explicit c++rt0.o
-    # does not break anything, and helps significantly (at the cost of a little
-    # extra space).
-    freebsd2.2*)
-      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
-      hardcode_libdir_flag_spec='-R$libdir'
-      hardcode_direct=yes
-      hardcode_shlibpath_var=no
-      ;;
-
-    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
-    freebsd2.*)
-      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
-      hardcode_direct=yes
-      hardcode_minus_L=yes
-      hardcode_shlibpath_var=no
-      ;;
-
-    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
-    freebsd* | dragonfly*)
-      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
-      hardcode_libdir_flag_spec='-R$libdir'
-      hardcode_direct=yes
-      hardcode_shlibpath_var=no
-      ;;
-
-    hpux9*)
-      if test "$GCC" = yes; then
-	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
-      else
-	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
-      fi
-      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
-      hardcode_libdir_separator=:
-      hardcode_direct=yes
-
-      # hardcode_minus_L: Not really in the search PATH,
-      # but as the default location of the library.
-      hardcode_minus_L=yes
-      export_dynamic_flag_spec='${wl}-E'
-      ;;
-
-    hpux10*)
-      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
-	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
-      else
-	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
-      fi
-      if test "$with_gnu_ld" = no; then
-	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
-	hardcode_libdir_separator=:
-	hardcode_direct=yes
-	hardcode_direct_absolute=yes
-	export_dynamic_flag_spec='${wl}-E'
-	# hardcode_minus_L: Not really in the search PATH,
-	# but as the default location of the library.
-	hardcode_minus_L=yes
-      fi
-      ;;
-
-    hpux11*)
-      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
-	case $host_cpu in
-	hppa*64*)
-	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
-	  ;;
-	ia64*)
-	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
-	  ;;
-	*)
-	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
-	  ;;
-	esac
-      else
-	case $host_cpu in
-	hppa*64*)
-	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
-	  ;;
-	ia64*)
-	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
-	  ;;
-	*)
-
-	  # Older versions of the 11.00 compiler do not understand -b yet
-	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
-	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
-$as_echo_n "checking if $CC understands -b... " >&6; }
-if ${lt_cv_prog_compiler__b+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_prog_compiler__b=no
-   save_LDFLAGS="$LDFLAGS"
-   LDFLAGS="$LDFLAGS -b"
-   echo "$lt_simple_link_test_code" > conftest.$ac_ext
-   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
-     # The linker can only warn and ignore the option if not recognized
-     # So say no if there are warnings
-     if test -s conftest.err; then
-       # Append any errors to the config.log.
-       cat conftest.err 1>&5
-       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
-       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
-       if diff conftest.exp conftest.er2 >/dev/null; then
-         lt_cv_prog_compiler__b=yes
-       fi
-     else
-       lt_cv_prog_compiler__b=yes
-     fi
-   fi
-   $RM -r conftest*
-   LDFLAGS="$save_LDFLAGS"
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
-$as_echo "$lt_cv_prog_compiler__b" >&6; }
-
-if test x"$lt_cv_prog_compiler__b" = xyes; then
-    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
-else
-    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
-fi
-
-	  ;;
-	esac
-      fi
-      if test "$with_gnu_ld" = no; then
-	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
-	hardcode_libdir_separator=:
-
-	case $host_cpu in
-	hppa*64*|ia64*)
-	  hardcode_direct=no
-	  hardcode_shlibpath_var=no
-	  ;;
-	*)
-	  hardcode_direct=yes
-	  hardcode_direct_absolute=yes
-	  export_dynamic_flag_spec='${wl}-E'
-
-	  # hardcode_minus_L: Not really in the search PATH,
-	  # but as the default location of the library.
-	  hardcode_minus_L=yes
-	  ;;
-	esac
-      fi
-      ;;
-
-    irix5* | irix6* | nonstopux*)
-      if test "$GCC" = yes; then
-	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-	# Try to use the -exported_symbol ld option, if it does not
-	# work, assume that -exports_file does not work either and
-	# implicitly export all symbols.
-	# This should be the same for all languages, so no per-tag cache variable.
-	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
-$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
-if ${lt_cv_irix_exported_symbol+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  save_LDFLAGS="$LDFLAGS"
-	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
-	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-int foo (void) { return 0; }
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  lt_cv_irix_exported_symbol=yes
-else
-  lt_cv_irix_exported_symbol=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-           LDFLAGS="$save_LDFLAGS"
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
-$as_echo "$lt_cv_irix_exported_symbol" >&6; }
-	if test "$lt_cv_irix_exported_symbol" = yes; then
-          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
-	fi
-      else
-	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
-	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
-      fi
-      archive_cmds_need_lc='no'
-      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
-      hardcode_libdir_separator=:
-      inherit_rpath=yes
-      link_all_deplibs=yes
-      ;;
-
-    netbsd*)
-      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
-	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
-      else
-	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
-      fi
-      hardcode_libdir_flag_spec='-R$libdir'
-      hardcode_direct=yes
-      hardcode_shlibpath_var=no
-      ;;
-
-    newsos6)
-      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-      hardcode_direct=yes
-      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
-      hardcode_libdir_separator=:
-      hardcode_shlibpath_var=no
-      ;;
-
-    *nto* | *qnx*)
-      ;;
-
-    openbsd*)
-      if test -f /usr/libexec/ld.so; then
-	hardcode_direct=yes
-	hardcode_shlibpath_var=no
-	hardcode_direct_absolute=yes
-	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
-	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
-	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
-	  export_dynamic_flag_spec='${wl}-E'
-	else
-	  case $host_os in
-	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
-	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
-	     hardcode_libdir_flag_spec='-R$libdir'
-	     ;;
-	   *)
-	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
-	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
-	     ;;
-	  esac
-	fi
-      else
-	ld_shlibs=no
-      fi
-      ;;
-
-    os2*)
-      hardcode_libdir_flag_spec='-L$libdir'
-      hardcode_minus_L=yes
-      allow_undefined_flag=unsupported
-      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
-      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
-      ;;
-
-    osf3*)
-      if test "$GCC" = yes; then
-	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
-	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-      else
-	allow_undefined_flag=' -expect_unresolved \*'
-	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
-      fi
-      archive_cmds_need_lc='no'
-      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
-      hardcode_libdir_separator=:
-      ;;
-
-    osf4* | osf5*)	# as osf3* with the addition of -msym flag
-      if test "$GCC" = yes; then
-	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
-	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
-      else
-	allow_undefined_flag=' -expect_unresolved \*'
-	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
-	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
-	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
-
-	# Both c and cxx compiler support -rpath directly
-	hardcode_libdir_flag_spec='-rpath $libdir'
-      fi
-      archive_cmds_need_lc='no'
-      hardcode_libdir_separator=:
-      ;;
-
-    solaris*)
-      no_undefined_flag=' -z defs'
-      if test "$GCC" = yes; then
-	wlarc='${wl}'
-	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
-	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
-      else
-	case `$CC -V 2>&1` in
-	*"Compilers 5.0"*)
-	  wlarc=''
-	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
-	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
-	  ;;
-	*)
-	  wlarc='${wl}'
-	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
-	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
-	  ;;
-	esac
-      fi
-      hardcode_libdir_flag_spec='-R$libdir'
-      hardcode_shlibpath_var=no
-      case $host_os in
-      solaris2.[0-5] | solaris2.[0-5].*) ;;
-      *)
-	# The compiler driver will combine and reorder linker options,
-	# but understands `-z linker_flag'.  GCC discards it without `$wl',
-	# but is careful enough not to reorder.
-	# Supported since Solaris 2.6 (maybe 2.5.1?)
-	if test "$GCC" = yes; then
-	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
-	else
-	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
-	fi
-	;;
-      esac
-      link_all_deplibs=yes
-      ;;
-
-    sunos4*)
-      if test "x$host_vendor" = xsequent; then
-	# Use $CC to link under sequent, because it throws in some extra .o
-	# files that make .init and .fini sections work.
-	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
-      else
-	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
-      fi
-      hardcode_libdir_flag_spec='-L$libdir'
-      hardcode_direct=yes
-      hardcode_minus_L=yes
-      hardcode_shlibpath_var=no
-      ;;
-
-    sysv4)
-      case $host_vendor in
-	sni)
-	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-	  hardcode_direct=yes # is this really true???
-	;;
-	siemens)
-	  ## LD is ld it makes a PLAMLIB
-	  ## CC just makes a GrossModule.
-	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
-	  reload_cmds='$CC -r -o $output$reload_objs'
-	  hardcode_direct=no
-        ;;
-	motorola)
-	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
-	;;
-      esac
-      runpath_var='LD_RUN_PATH'
-      hardcode_shlibpath_var=no
-      ;;
-
-    sysv4.3*)
-      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-      hardcode_shlibpath_var=no
-      export_dynamic_flag_spec='-Bexport'
-      ;;
-
-    sysv4*MP*)
-      if test -d /usr/nec; then
-	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-	hardcode_shlibpath_var=no
-	runpath_var=LD_RUN_PATH
-	hardcode_runpath_var=yes
-	ld_shlibs=yes
-      fi
-      ;;
-
-    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
-      no_undefined_flag='${wl}-z,text'
-      archive_cmds_need_lc=no
-      hardcode_shlibpath_var=no
-      runpath_var='LD_RUN_PATH'
-
-      if test "$GCC" = yes; then
-	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-      else
-	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-      fi
-      ;;
-
-    sysv5* | sco3.2v5* | sco5v6*)
-      # Note: We can NOT use -z defs as we might desire, because we do not
-      # link with -lc, and that would cause any symbols used from libc to
-      # always be unresolved, which means just about no library would
-      # ever link correctly.  If we're not using GNU ld we use -z text
-      # though, which does catch some bad symbols but isn't as heavy-handed
-      # as -z defs.
-      no_undefined_flag='${wl}-z,text'
-      allow_undefined_flag='${wl}-z,nodefs'
-      archive_cmds_need_lc=no
-      hardcode_shlibpath_var=no
-      hardcode_libdir_flag_spec='${wl}-R,$libdir'
-      hardcode_libdir_separator=':'
-      link_all_deplibs=yes
-      export_dynamic_flag_spec='${wl}-Bexport'
-      runpath_var='LD_RUN_PATH'
-
-      if test "$GCC" = yes; then
-	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-      else
-	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-      fi
-      ;;
-
-    uts4*)
-      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-      hardcode_libdir_flag_spec='-L$libdir'
-      hardcode_shlibpath_var=no
-      ;;
-
-    *)
-      ld_shlibs=no
-      ;;
-    esac
-
-    if test x$host_vendor = xsni; then
-      case $host in
-      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
-	export_dynamic_flag_spec='${wl}-Blargedynsym'
-	;;
-      esac
-    fi
-  fi
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
-$as_echo "$ld_shlibs" >&6; }
-test "$ld_shlibs" = no && can_build_shared=no
-
-with_gnu_ld=$with_gnu_ld
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-#
-# Do we need to explicitly link libc?
-#
-case "x$archive_cmds_need_lc" in
-x|xyes)
-  # Assume -lc should be added
-  archive_cmds_need_lc=yes
-
-  if test "$enable_shared" = yes && test "$GCC" = yes; then
-    case $archive_cmds in
-    *'~'*)
-      # FIXME: we may have to deal with multi-command sequences.
-      ;;
-    '$CC '*)
-      # Test whether the compiler implicitly links with -lc since on some
-      # systems, -lgcc has to come before -lc. If gcc already passes -lc
-      # to ld, don't add -lc before -lgcc.
-      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
-$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
-if ${lt_cv_archive_cmds_need_lc+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  $RM conftest*
-	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
-
-	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
-  (eval $ac_compile) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } 2>conftest.err; then
-	  soname=conftest
-	  lib=conftest
-	  libobjs=conftest.$ac_objext
-	  deplibs=
-	  wl=$lt_prog_compiler_wl
-	  pic_flag=$lt_prog_compiler_pic
-	  compiler_flags=-v
-	  linker_flags=-v
-	  verstring=
-	  output_objdir=.
-	  libname=conftest
-	  lt_save_allow_undefined_flag=$allow_undefined_flag
-	  allow_undefined_flag=
-	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
-  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }
-	  then
-	    lt_cv_archive_cmds_need_lc=no
-	  else
-	    lt_cv_archive_cmds_need_lc=yes
-	  fi
-	  allow_undefined_flag=$lt_save_allow_undefined_flag
-	else
-	  cat conftest.err 1>&5
-	fi
-	$RM conftest*
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
-$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
-      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
-      ;;
-    esac
-  fi
-  ;;
-esac
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
-$as_echo_n "checking dynamic linker characteristics... " >&6; }
-
-if test "$GCC" = yes; then
-  case $host_os in
-    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
-    *) lt_awk_arg="/^libraries:/" ;;
-  esac
-  case $host_os in
-    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
-    *) lt_sed_strip_eq="s,=/,/,g" ;;
-  esac
-  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
-  case $lt_search_path_spec in
-  *\;*)
-    # if the path contains ";" then we assume it to be the separator
-    # otherwise default to the standard path separator (i.e. ":") - it is
-    # assumed that no part of a normal pathname contains ";" but that should
-    # okay in the real world where ";" in dirpaths is itself problematic.
-    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
-    ;;
-  *)
-    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
-    ;;
-  esac
-  # Ok, now we have the path, separated by spaces, we can step through it
-  # and add multilib dir if necessary.
-  lt_tmp_lt_search_path_spec=
-  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
-  for lt_sys_path in $lt_search_path_spec; do
-    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
-      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
-    else
-      test -d "$lt_sys_path" && \
-	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
-    fi
-  done
-  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
-BEGIN {RS=" "; FS="/|\n";} {
-  lt_foo="";
-  lt_count=0;
-  for (lt_i = NF; lt_i > 0; lt_i--) {
-    if ($lt_i != "" && $lt_i != ".") {
-      if ($lt_i == "..") {
-        lt_count++;
-      } else {
-        if (lt_count == 0) {
-          lt_foo="/" $lt_i lt_foo;
-        } else {
-          lt_count--;
-        }
-      }
-    }
-  }
-  if (lt_foo != "") { lt_freq[lt_foo]++; }
-  if (lt_freq[lt_foo] == 1) { print lt_foo; }
-}'`
-  # AWK program above erroneously prepends '/' to C:/dos/paths
-  # for these hosts.
-  case $host_os in
-    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
-      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
-  esac
-  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
-else
-  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
-fi
-library_names_spec=
-libname_spec='lib$name'
-soname_spec=
-shrext_cmds=".so"
-postinstall_cmds=
-postuninstall_cmds=
-finish_cmds=
-finish_eval=
-shlibpath_var=
-shlibpath_overrides_runpath=unknown
-version_type=none
-dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
-need_lib_prefix=unknown
-hardcode_into_libs=no
-
-# when you set need_version to no, make sure it does not cause -set_version
-# flags to be left without arguments
-need_version=unknown
-
-case $host_os in
-aix3*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
-  shlibpath_var=LIBPATH
-
-  # AIX 3 has no versioning support, so we append a major version to the name.
-  soname_spec='${libname}${release}${shared_ext}$major'
-  ;;
-
-aix[4-9]*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  hardcode_into_libs=yes
-  if test "$host_cpu" = ia64; then
-    # AIX 5 supports IA64
-    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
-    shlibpath_var=LD_LIBRARY_PATH
-  else
-    # With GCC up to 2.95.x, collect2 would create an import file
-    # for dependence libraries.  The import file would start with
-    # the line `#! .'.  This would cause the generated library to
-    # depend on `.', always an invalid library.  This was fixed in
-    # development snapshots of GCC prior to 3.0.
-    case $host_os in
-      aix4 | aix4.[01] | aix4.[01].*)
-      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
-	   echo ' yes '
-	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
-	:
-      else
-	can_build_shared=no
-      fi
-      ;;
-    esac
-    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
-    # soname into executable. Probably we can add versioning support to
-    # collect2, so additional links can be useful in future.
-    if test "$aix_use_runtimelinking" = yes; then
-      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
-      # instead of lib<name>.a to let people know that these are not
-      # typical AIX shared libraries.
-      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-    else
-      # We preserve .a as extension for shared libraries through AIX4.2
-      # and later when we are not doing run time linking.
-      library_names_spec='${libname}${release}.a $libname.a'
-      soname_spec='${libname}${release}${shared_ext}$major'
-    fi
-    shlibpath_var=LIBPATH
-  fi
-  ;;
-
-amigaos*)
-  case $host_cpu in
-  powerpc)
-    # Since July 2007 AmigaOS4 officially supports .so libraries.
-    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-    ;;
-  m68k)
-    library_names_spec='$libname.ixlibrary $libname.a'
-    # Create ${libname}_ixlibrary.a entries in /sys/libs.
-    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
-    ;;
-  esac
-  ;;
-
-beos*)
-  library_names_spec='${libname}${shared_ext}'
-  dynamic_linker="$host_os ld.so"
-  shlibpath_var=LIBRARY_PATH
-  ;;
-
-bsdi[45]*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
-  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
-  # the default ld.so.conf also contains /usr/contrib/lib and
-  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
-  # libtool to hard-code these into programs
-  ;;
-
-cygwin* | mingw* | pw32* | cegcc*)
-  version_type=windows
-  shrext_cmds=".dll"
-  need_version=no
-  need_lib_prefix=no
-
-  case $GCC,$cc_basename in
-  yes,*)
-    # gcc
-    library_names_spec='$libname.dll.a'
-    # DLL is installed to $(libdir)/../bin by postinstall_cmds
-    postinstall_cmds='base_file=`basename \${file}`~
-      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
-      dldir=$destdir/`dirname \$dlpath`~
-      test -d \$dldir || mkdir -p \$dldir~
-      $install_prog $dir/$dlname \$dldir/$dlname~
-      chmod a+x \$dldir/$dlname~
-      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
-        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
-      fi'
-    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
-      dlpath=$dir/\$dldll~
-       $RM \$dlpath'
-    shlibpath_overrides_runpath=yes
-
-    case $host_os in
-    cygwin*)
-      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
-      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
-
-      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
-      ;;
-    mingw* | cegcc*)
-      # MinGW DLLs use traditional 'lib' prefix
-      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
-      ;;
-    pw32*)
-      # pw32 DLLs use 'pw' prefix rather than 'lib'
-      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
-      ;;
-    esac
-    dynamic_linker='Win32 ld.exe'
-    ;;
-
-  *,cl*)
-    # Native MSVC
-    libname_spec='$name'
-    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
-    library_names_spec='${libname}.dll.lib'
-
-    case $build_os in
-    mingw*)
-      sys_lib_search_path_spec=
-      lt_save_ifs=$IFS
-      IFS=';'
-      for lt_path in $LIB
-      do
-        IFS=$lt_save_ifs
-        # Let DOS variable expansion print the short 8.3 style file name.
-        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
-        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
-      done
-      IFS=$lt_save_ifs
-      # Convert to MSYS style.
-      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
-      ;;
-    cygwin*)
-      # Convert to unix form, then to dos form, then back to unix form
-      # but this time dos style (no spaces!) so that the unix form looks
-      # like /cygdrive/c/PROGRA~1:/cygdr...
-      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
-      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
-      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
-      ;;
-    *)
-      sys_lib_search_path_spec="$LIB"
-      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
-        # It is most probably a Windows format PATH.
-        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
-      else
-        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
-      fi
-      # FIXME: find the short name or the path components, as spaces are
-      # common. (e.g. "Program Files" -> "PROGRA~1")
-      ;;
-    esac
-
-    # DLL is installed to $(libdir)/../bin by postinstall_cmds
-    postinstall_cmds='base_file=`basename \${file}`~
-      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
-      dldir=$destdir/`dirname \$dlpath`~
-      test -d \$dldir || mkdir -p \$dldir~
-      $install_prog $dir/$dlname \$dldir/$dlname'
-    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
-      dlpath=$dir/\$dldll~
-       $RM \$dlpath'
-    shlibpath_overrides_runpath=yes
-    dynamic_linker='Win32 link.exe'
-    ;;
-
-  *)
-    # Assume MSVC wrapper
-    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
-    dynamic_linker='Win32 ld.exe'
-    ;;
-  esac
-  # FIXME: first we should search . and the directory the executable is in
-  shlibpath_var=PATH
-  ;;
-
-darwin* | rhapsody*)
-  dynamic_linker="$host_os dyld"
-  version_type=darwin
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
-  soname_spec='${libname}${release}${major}$shared_ext'
-  shlibpath_overrides_runpath=yes
-  shlibpath_var=DYLD_LIBRARY_PATH
-  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
-
-  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
-  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
-  ;;
-
-dgux*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  ;;
-
-freebsd* | dragonfly*)
-  # DragonFly does not have aout.  When/if they implement a new
-  # versioning mechanism, adjust this.
-  if test -x /usr/bin/objformat; then
-    objformat=`/usr/bin/objformat`
-  else
-    case $host_os in
-    freebsd[23].*) objformat=aout ;;
-    *) objformat=elf ;;
-    esac
-  fi
-  version_type=freebsd-$objformat
-  case $version_type in
-    freebsd-elf*)
-      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
-      need_version=no
-      need_lib_prefix=no
-      ;;
-    freebsd-*)
-      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
-      need_version=yes
-      ;;
-  esac
-  shlibpath_var=LD_LIBRARY_PATH
-  case $host_os in
-  freebsd2.*)
-    shlibpath_overrides_runpath=yes
-    ;;
-  freebsd3.[01]* | freebsdelf3.[01]*)
-    shlibpath_overrides_runpath=yes
-    hardcode_into_libs=yes
-    ;;
-  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
-  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
-    shlibpath_overrides_runpath=no
-    hardcode_into_libs=yes
-    ;;
-  *) # from 4.6 on, and DragonFly
-    shlibpath_overrides_runpath=yes
-    hardcode_into_libs=yes
-    ;;
-  esac
-  ;;
-
-gnu*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  ;;
-
-haiku*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  dynamic_linker="$host_os runtime_loader"
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
-  hardcode_into_libs=yes
-  ;;
-
-hpux9* | hpux10* | hpux11*)
-  # Give a soname corresponding to the major version so that dld.sl refuses to
-  # link against other versions.
-  version_type=sunos
-  need_lib_prefix=no
-  need_version=no
-  case $host_cpu in
-  ia64*)
-    shrext_cmds='.so'
-    hardcode_into_libs=yes
-    dynamic_linker="$host_os dld.so"
-    shlibpath_var=LD_LIBRARY_PATH
-    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-    soname_spec='${libname}${release}${shared_ext}$major'
-    if test "X$HPUX_IA64_MODE" = X32; then
-      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
-    else
-      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
-    fi
-    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
-    ;;
-  hppa*64*)
-    shrext_cmds='.sl'
-    hardcode_into_libs=yes
-    dynamic_linker="$host_os dld.sl"
-    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
-    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-    soname_spec='${libname}${release}${shared_ext}$major'
-    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
-    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
-    ;;
-  *)
-    shrext_cmds='.sl'
-    dynamic_linker="$host_os dld.sl"
-    shlibpath_var=SHLIB_PATH
-    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-    soname_spec='${libname}${release}${shared_ext}$major'
-    ;;
-  esac
-  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
-  postinstall_cmds='chmod 555 $lib'
-  # or fails outright, so override atomically:
-  install_override_mode=555
-  ;;
-
-interix[3-9]*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  ;;
-
-irix5* | irix6* | nonstopux*)
-  case $host_os in
-    nonstopux*) version_type=nonstopux ;;
-    *)
-	if test "$lt_cv_prog_gnu_ld" = yes; then
-		version_type=linux # correct to gnu/linux during the next big refactor
-	else
-		version_type=irix
-	fi ;;
-  esac
-  need_lib_prefix=no
-  need_version=no
-  soname_spec='${libname}${release}${shared_ext}$major'
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
-  case $host_os in
-  irix5* | nonstopux*)
-    libsuff= shlibsuff=
-    ;;
-  *)
-    case $LD in # libtool.m4 will add one of these switches to LD
-    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
-      libsuff= shlibsuff= libmagic=32-bit;;
-    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
-      libsuff=32 shlibsuff=N32 libmagic=N32;;
-    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
-      libsuff=64 shlibsuff=64 libmagic=64-bit;;
-    *) libsuff= shlibsuff= libmagic=never-match;;
-    esac
-    ;;
-  esac
-  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
-  shlibpath_overrides_runpath=no
-  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
-  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
-  hardcode_into_libs=yes
-  ;;
-
-# No shared lib support for Linux oldld, aout, or coff.
-linux*oldld* | linux*aout* | linux*coff*)
-  dynamic_linker=no
-  ;;
-
-# This must be glibc/ELF.
-linux* | k*bsd*-gnu | kopensolaris*-gnu)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-
-  # Some binutils ld are patched to set DT_RUNPATH
-  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_shlibpath_overrides_runpath=no
-    save_LDFLAGS=$LDFLAGS
-    save_libdir=$libdir
-    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
-	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
-    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
-  lt_cv_shlibpath_overrides_runpath=yes
-fi
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-    LDFLAGS=$save_LDFLAGS
-    libdir=$save_libdir
-
-fi
-
-  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
-
-  # This implies no fast_install, which is unacceptable.
-  # Some rework will be needed to allow for fast_install
-  # before this can be enabled.
-  hardcode_into_libs=yes
-
-  # Add ABI-specific directories to the system library path.
-  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
-
-  # Append ld.so.conf contents to the search path
-  if test -f /etc/ld.so.conf; then
-    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
-    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
-
-  fi
-
-  # We used to test for /lib/ld.so.1 and disable shared libraries on
-  # powerpc, because MkLinux only supported shared libraries with the
-  # GNU dynamic linker.  Since this was broken with cross compilers,
-  # most powerpc-linux boxes support dynamic linking these days and
-  # people can always --disable-shared, the test was removed, and we
-  # assume the GNU/Linux dynamic linker is in use.
-  dynamic_linker='GNU/Linux ld.so'
-  ;;
-
-netbsd*)
-  version_type=sunos
-  need_lib_prefix=no
-  need_version=no
-  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
-    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
-    dynamic_linker='NetBSD (a.out) ld.so'
-  else
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
-    soname_spec='${libname}${release}${shared_ext}$major'
-    dynamic_linker='NetBSD ld.elf_so'
-  fi
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  hardcode_into_libs=yes
-  ;;
-
-newsos6)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  ;;
-
-*nto* | *qnx*)
-  version_type=qnx
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  dynamic_linker='ldqnx.so'
-  ;;
-
-openbsd*)
-  version_type=sunos
-  sys_lib_dlsearch_path_spec="/usr/lib"
-  need_lib_prefix=no
-  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
-  case $host_os in
-    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
-    *)				need_version=no  ;;
-  esac
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-    case $host_os in
-      openbsd2.[89] | openbsd2.[89].*)
-	shlibpath_overrides_runpath=no
-	;;
-      *)
-	shlibpath_overrides_runpath=yes
-	;;
-      esac
-  else
-    shlibpath_overrides_runpath=yes
-  fi
-  ;;
-
-os2*)
-  libname_spec='$name'
-  shrext_cmds=".dll"
-  need_lib_prefix=no
-  library_names_spec='$libname${shared_ext} $libname.a'
-  dynamic_linker='OS/2 ld.exe'
-  shlibpath_var=LIBPATH
-  ;;
-
-osf3* | osf4* | osf5*)
-  version_type=osf
-  need_lib_prefix=no
-  need_version=no
-  soname_spec='${libname}${release}${shared_ext}$major'
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  shlibpath_var=LD_LIBRARY_PATH
-  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
-  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
-  ;;
-
-rdos*)
-  dynamic_linker=no
-  ;;
-
-solaris*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  hardcode_into_libs=yes
-  # ldd complains unless libraries are executable
-  postinstall_cmds='chmod +x $lib'
-  ;;
-
-sunos4*)
-  version_type=sunos
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
-  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  if test "$with_gnu_ld" = yes; then
-    need_lib_prefix=no
-  fi
-  need_version=yes
-  ;;
-
-sysv4 | sysv4.3*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  case $host_vendor in
-    sni)
-      shlibpath_overrides_runpath=no
-      need_lib_prefix=no
-      runpath_var=LD_RUN_PATH
-      ;;
-    siemens)
-      need_lib_prefix=no
-      ;;
-    motorola)
-      need_lib_prefix=no
-      need_version=no
-      shlibpath_overrides_runpath=no
-      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
-      ;;
-  esac
-  ;;
-
-sysv4*MP*)
-  if test -d /usr/nec ;then
-    version_type=linux # correct to gnu/linux during the next big refactor
-    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
-    soname_spec='$libname${shared_ext}.$major'
-    shlibpath_var=LD_LIBRARY_PATH
-  fi
-  ;;
-
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
-  version_type=freebsd-elf
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  hardcode_into_libs=yes
-  if test "$with_gnu_ld" = yes; then
-    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
-  else
-    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
-    case $host_os in
-      sco3.2v5*)
-        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
-	;;
-    esac
-  fi
-  sys_lib_dlsearch_path_spec='/usr/lib'
-  ;;
-
-tpf*)
-  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  ;;
-
-uts4*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  ;;
-
-*)
-  dynamic_linker=no
-  ;;
-esac
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
-$as_echo "$dynamic_linker" >&6; }
-test "$dynamic_linker" = no && can_build_shared=no
-
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
-if test "$GCC" = yes; then
-  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
-fi
-
-if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
-  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
-fi
-if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
-  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
-fi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
-$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
-hardcode_action=
-if test -n "$hardcode_libdir_flag_spec" ||
-   test -n "$runpath_var" ||
-   test "X$hardcode_automatic" = "Xyes" ; then
-
-  # We can hardcode non-existent directories.
-  if test "$hardcode_direct" != no &&
-     # If the only mechanism to avoid hardcoding is shlibpath_var, we
-     # have to relink, otherwise we might link with an installed library
-     # when we should be linking with a yet-to-be-installed one
-     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
-     test "$hardcode_minus_L" != no; then
-    # Linking always hardcodes the temporary library directory.
-    hardcode_action=relink
-  else
-    # We can link without hardcoding, and we can hardcode nonexisting dirs.
-    hardcode_action=immediate
-  fi
-else
-  # We cannot hardcode anything, or else we can only hardcode existing
-  # directories.
-  hardcode_action=unsupported
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
-$as_echo "$hardcode_action" >&6; }
-
-if test "$hardcode_action" = relink ||
-   test "$inherit_rpath" = yes; then
-  # Fast installation is not supported
-  enable_fast_install=no
-elif test "$shlibpath_overrides_runpath" = yes ||
-     test "$enable_shared" = no; then
-  # Fast installation is not necessary
-  enable_fast_install=needless
-fi
-
-
-
-
-
-
-  if test "x$enable_dlopen" != xyes; then
-  enable_dlopen=unknown
-  enable_dlopen_self=unknown
-  enable_dlopen_self_static=unknown
-else
-  lt_cv_dlopen=no
-  lt_cv_dlopen_libs=
-
-  case $host_os in
-  beos*)
-    lt_cv_dlopen="load_add_on"
-    lt_cv_dlopen_libs=
-    lt_cv_dlopen_self=yes
-    ;;
-
-  mingw* | pw32* | cegcc*)
-    lt_cv_dlopen="LoadLibrary"
-    lt_cv_dlopen_libs=
-    ;;
-
-  cygwin*)
-    lt_cv_dlopen="dlopen"
-    lt_cv_dlopen_libs=
-    ;;
-
-  darwin*)
-  # if libdl is installed we need to link against it
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
-$as_echo_n "checking for dlopen in -ldl... " >&6; }
-if ${ac_cv_lib_dl_dlopen+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dlopen ();
-int
-main ()
-{
-return dlopen ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_dl_dlopen=yes
-else
-  ac_cv_lib_dl_dlopen=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
-$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
-if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
-  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
-else
-
-    lt_cv_dlopen="dyld"
-    lt_cv_dlopen_libs=
-    lt_cv_dlopen_self=yes
-
-fi
-
-    ;;
-
-  *)
-    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
-if test "x$ac_cv_func_shl_load" = xyes; then :
-  lt_cv_dlopen="shl_load"
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
-$as_echo_n "checking for shl_load in -ldld... " >&6; }
-if ${ac_cv_lib_dld_shl_load+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldld  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char shl_load ();
-int
-main ()
-{
-return shl_load ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_dld_shl_load=yes
-else
-  ac_cv_lib_dld_shl_load=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
-$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
-if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
-  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
-else
-  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
-if test "x$ac_cv_func_dlopen" = xyes; then :
-  lt_cv_dlopen="dlopen"
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
-$as_echo_n "checking for dlopen in -ldl... " >&6; }
-if ${ac_cv_lib_dl_dlopen+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dlopen ();
-int
-main ()
-{
-return dlopen ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_dl_dlopen=yes
-else
-  ac_cv_lib_dl_dlopen=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
-$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
-if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
-  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
-$as_echo_n "checking for dlopen in -lsvld... " >&6; }
-if ${ac_cv_lib_svld_dlopen+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lsvld  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dlopen ();
-int
-main ()
-{
-return dlopen ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_svld_dlopen=yes
-else
-  ac_cv_lib_svld_dlopen=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
-$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
-if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
-  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
-$as_echo_n "checking for dld_link in -ldld... " >&6; }
-if ${ac_cv_lib_dld_dld_link+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldld  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dld_link ();
-int
-main ()
-{
-return dld_link ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_dld_dld_link=yes
-else
-  ac_cv_lib_dld_dld_link=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
-$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
-if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
-  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
-fi
-
-
-fi
-
-
-fi
-
-
-fi
-
-
-fi
-
-
-fi
-
-    ;;
-  esac
-
-  if test "x$lt_cv_dlopen" != xno; then
-    enable_dlopen=yes
-  else
-    enable_dlopen=no
-  fi
-
-  case $lt_cv_dlopen in
-  dlopen)
-    save_CPPFLAGS="$CPPFLAGS"
-    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
-
-    save_LDFLAGS="$LDFLAGS"
-    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
-
-    save_LIBS="$LIBS"
-    LIBS="$lt_cv_dlopen_libs $LIBS"
-
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
-$as_echo_n "checking whether a program can dlopen itself... " >&6; }
-if ${lt_cv_dlopen_self+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  	  if test "$cross_compiling" = yes; then :
-  lt_cv_dlopen_self=cross
-else
-  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
-  lt_status=$lt_dlunknown
-  cat > conftest.$ac_ext <<_LT_EOF
-#line $LINENO "configure"
-#include "confdefs.h"
-
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-
-#include <stdio.h>
-
-#ifdef RTLD_GLOBAL
-#  define LT_DLGLOBAL		RTLD_GLOBAL
-#else
-#  ifdef DL_GLOBAL
-#    define LT_DLGLOBAL		DL_GLOBAL
-#  else
-#    define LT_DLGLOBAL		0
-#  endif
-#endif
-
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
-   find out it does not work in some platform. */
-#ifndef LT_DLLAZY_OR_NOW
-#  ifdef RTLD_LAZY
-#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
-#  else
-#    ifdef DL_LAZY
-#      define LT_DLLAZY_OR_NOW		DL_LAZY
-#    else
-#      ifdef RTLD_NOW
-#        define LT_DLLAZY_OR_NOW	RTLD_NOW
-#      else
-#        ifdef DL_NOW
-#          define LT_DLLAZY_OR_NOW	DL_NOW
-#        else
-#          define LT_DLLAZY_OR_NOW	0
-#        endif
-#      endif
-#    endif
-#  endif
-#endif
-
-/* When -fvisbility=hidden is used, assume the code has been annotated
-   correspondingly for the symbols needed.  */
-#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
-int fnord () __attribute__((visibility("default")));
-#endif
-
-int fnord () { return 42; }
-int main ()
-{
-  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
-  int status = $lt_dlunknown;
-
-  if (self)
-    {
-      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
-      else
-        {
-	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
-          else puts (dlerror ());
-	}
-      /* dlclose (self); */
-    }
-  else
-    puts (dlerror ());
-
-  return status;
-}
-_LT_EOF
-  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
-  (eval $ac_link) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
-    (./conftest; exit; ) >&5 2>/dev/null
-    lt_status=$?
-    case x$lt_status in
-      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
-      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
-      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
-    esac
-  else :
-    # compilation failed
-    lt_cv_dlopen_self=no
-  fi
-fi
-rm -fr conftest*
-
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
-$as_echo "$lt_cv_dlopen_self" >&6; }
-
-    if test "x$lt_cv_dlopen_self" = xyes; then
-      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
-      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
-$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
-if ${lt_cv_dlopen_self_static+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  	  if test "$cross_compiling" = yes; then :
-  lt_cv_dlopen_self_static=cross
-else
-  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
-  lt_status=$lt_dlunknown
-  cat > conftest.$ac_ext <<_LT_EOF
-#line $LINENO "configure"
-#include "confdefs.h"
-
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-
-#include <stdio.h>
-
-#ifdef RTLD_GLOBAL
-#  define LT_DLGLOBAL		RTLD_GLOBAL
-#else
-#  ifdef DL_GLOBAL
-#    define LT_DLGLOBAL		DL_GLOBAL
-#  else
-#    define LT_DLGLOBAL		0
-#  endif
-#endif
-
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
-   find out it does not work in some platform. */
-#ifndef LT_DLLAZY_OR_NOW
-#  ifdef RTLD_LAZY
-#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
-#  else
-#    ifdef DL_LAZY
-#      define LT_DLLAZY_OR_NOW		DL_LAZY
-#    else
-#      ifdef RTLD_NOW
-#        define LT_DLLAZY_OR_NOW	RTLD_NOW
-#      else
-#        ifdef DL_NOW
-#          define LT_DLLAZY_OR_NOW	DL_NOW
-#        else
-#          define LT_DLLAZY_OR_NOW	0
-#        endif
-#      endif
-#    endif
-#  endif
-#endif
-
-/* When -fvisbility=hidden is used, assume the code has been annotated
-   correspondingly for the symbols needed.  */
-#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
-int fnord () __attribute__((visibility("default")));
-#endif
-
-int fnord () { return 42; }
-int main ()
-{
-  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
-  int status = $lt_dlunknown;
-
-  if (self)
-    {
-      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
-      else
-        {
-	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
-          else puts (dlerror ());
-	}
-      /* dlclose (self); */
-    }
-  else
-    puts (dlerror ());
-
-  return status;
-}
-_LT_EOF
-  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
-  (eval $ac_link) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
-    (./conftest; exit; ) >&5 2>/dev/null
-    lt_status=$?
-    case x$lt_status in
-      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
-      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
-      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
-    esac
-  else :
-    # compilation failed
-    lt_cv_dlopen_self_static=no
-  fi
-fi
-rm -fr conftest*
-
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
-$as_echo "$lt_cv_dlopen_self_static" >&6; }
-    fi
-
-    CPPFLAGS="$save_CPPFLAGS"
-    LDFLAGS="$save_LDFLAGS"
-    LIBS="$save_LIBS"
-    ;;
-  esac
-
-  case $lt_cv_dlopen_self in
-  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
-  *) enable_dlopen_self=unknown ;;
-  esac
-
-  case $lt_cv_dlopen_self_static in
-  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
-  *) enable_dlopen_self_static=unknown ;;
-  esac
-fi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-striplib=
-old_striplib=
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
-$as_echo_n "checking whether stripping libraries is possible... " >&6; }
-if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
-  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
-  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-else
-# FIXME - insert some real tests, host_os isn't really good enough
-  case $host_os in
-  darwin*)
-    if test -n "$STRIP" ; then
-      striplib="$STRIP -x"
-      old_striplib="$STRIP -S"
-      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-    else
-      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-    fi
-    ;;
-  *)
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-    ;;
-  esac
-fi
-
-
-
-
-
-
-
-
-
-
-
-
-  # Report which library types will actually be built
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
-$as_echo_n "checking if libtool supports shared libraries... " >&6; }
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
-$as_echo "$can_build_shared" >&6; }
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
-$as_echo_n "checking whether to build shared libraries... " >&6; }
-  test "$can_build_shared" = "no" && enable_shared=no
-
-  # On AIX, shared libraries and static libraries use the same namespace, and
-  # are all built from PIC.
-  case $host_os in
-  aix3*)
-    test "$enable_shared" = yes && enable_static=no
-    if test -n "$RANLIB"; then
-      archive_cmds="$archive_cmds~\$RANLIB \$lib"
-      postinstall_cmds='$RANLIB $lib'
-    fi
-    ;;
-
-  aix[4-9]*)
-    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
-      test "$enable_shared" = yes && enable_static=no
-    fi
-    ;;
-  esac
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
-$as_echo "$enable_shared" >&6; }
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
-$as_echo_n "checking whether to build static libraries... " >&6; }
-  # Make sure either enable_shared or enable_static is yes.
-  test "$enable_shared" = yes || enable_static=yes
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
-$as_echo "$enable_static" >&6; }
-
-
-
-
-fi
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-CC="$lt_save_CC"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-        ac_config_commands="$ac_config_commands libtool"
-
-
-
-
-# Only expand once:
-
-
-# Check whether --enable-static was given.
-if test "${enable_static+set}" = set; then :
-  enableval=$enable_static; p=${PACKAGE-default}
-    case $enableval in
-    yes) enable_static=yes ;;
-    no) enable_static=no ;;
-    *)
-     enable_static=no
-      # Look at the argument we got.  We use all the common list separators.
-      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
-      for pkg in $enableval; do
-	IFS="$lt_save_ifs"
-	if test "X$pkg" = "X$p"; then
-	  enable_static=yes
-	fi
-      done
-      IFS="$lt_save_ifs"
-      ;;
-    esac
-else
-  enable_static=yes
-fi
-
-
-
-
-
-
-# Check whether --enable-shared was given.
-if test "${enable_shared+set}" = set; then :
-  enableval=$enable_shared; p=${PACKAGE-default}
-    case $enableval in
-    yes) enable_shared=yes ;;
-    no) enable_shared=no ;;
-    *)
-      enable_shared=no
-      # Look at the argument we got.  We use all the common list separators.
-      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
-      for pkg in $enableval; do
-	IFS="$lt_save_ifs"
-	if test "X$pkg" = "X$p"; then
-	  enable_shared=yes
-	fi
-      done
-      IFS="$lt_save_ifs"
-      ;;
-    esac
-else
-  enable_shared=yes
-fi
-
-
-
-
-
-
-
-
-# Doxygen and LAtex
-
-
-    # Extract the first word of "doxygen", so it can be a program name with args.
-set dummy doxygen; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_DOXYGEN+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  case $DOXYGEN in
-  [\\/]* | ?:[\\/]*)
-  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
-  ;;
-  *)
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-  ;;
-esac
-fi
-DOXYGEN=$ac_cv_path_DOXYGEN
-if test -n "$DOXYGEN"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
-$as_echo "$DOXYGEN" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-
-
-    # Extract the first word of "latex", so it can be a program name with args.
-set dummy latex; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_LATEX+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  case $LATEX in
-  [\\/]* | ?:[\\/]*)
-  ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
-  ;;
-  *)
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-  ;;
-esac
-fi
-LATEX=$ac_cv_path_LATEX
-if test -n "$LATEX"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
-$as_echo "$LATEX" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-
-
-    if test -z "${DOXYGEN}"; then
-        DOXYGEN=":"
-    fi
-
-    if test -z "${LATEX}"; then
-        LATEX=":"
-    fi
-
-
-
-# Libtool versioning. First release 0.0.0
-LT_CURRENT=0
-LT_REVISION=0
-LT_AGE=0
-
-
-
-
-# Checks for libraries.
-# FIXME: Replace `main' with a function in `-lm':
-###AC_CHECK_LIB([m], [main])
-# FIXME: Replace `main' with a function in `-lqfits':
-# In comments next line created by autscan, we do not want to
-# check qfits lib, we want to create it.
-#AC_CHECK_LIB([qfits], [main])
-
-# Defined in the m4macros/qfits_memory.m4
-
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking qfits options" >&5
-$as_echo_n "checking qfits options... " >&6; }
-
-    # Check whether --enable-memory-mode was given.
-if test "${enable_memory_mode+set}" = set; then :
-  enableval=$enable_memory_mode;
-                    qfits_memory_flag=yes
-                    # $enableval=yes when no argument is given
-                    qfits_memory_mode=$enableval
-
-fi
-
-
-    # Check whether --enable-max-ptrs was given.
-if test "${enable_max_ptrs+set}" = set; then :
-  enableval=$enable_max_ptrs;
-                    qfits_max_ptrs_flag=yes
-                    qfits_max_ptrs=$enableval
-
-fi
-
-
-    # Pending: check qfits_max_ptrs is numeric, otherwise AC_MSG_ERROR
-    if test "x$qfits_max_ptrs_flag" = xyes ; then
-        QFITS_MAXPTRS_CFLAGS="-DQFITS_MEMORY_MAXPTRS=$qfits_max_ptrs"
-    else
-        QFITS_MAXPTRS_CFLAGS=""
-    fi
-
-    if test "x$qfits_memory_flag" = xyes ; then
-        QFITS_CFLAGS="-DQFITS_MEMORY_MODE=$qfits_memory_mode"
-        case $qfits_memory_mode in
-        yes)
-          QFITS_CFLAGS="-DQFITS_MEMORY_MODE=0 -DQFITS_MEMORY_MAXPRS=1"
-          break ;;
-        0|1)
-          QFITS_CFLAGS="-DQFITS_MEMORY_MODE=$qfits_memory_mode -DQFITS_MEMORY_MAXPRS=1"
-          break ;;
-        2)
-          QFITS_CFLAGS="-DQFITS_MEMORY_MODE=2 $QFITS_MAXPTRS_CFLAGS"
-          break ;;
-        3)
-          QFITS_CFLAGS="-DQFITS_MEMORY_MODE=2 -DQFITS_MEMORY_DEBUG=2 $QFITS_MAXPTRS_CFLAGS"
-          break ;;
-        *)
-          as_fn_error $? "Option --enable-memory-mode=$qfits_memory_mode not valid. Please check!" "$LINENO" 5
-          break ;;
-        esac
-
-    else
-        QFITS_CFLAGS="$QFITS_MAXPTRS_CFLAGS"
-    fi
-
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: QFITS_CFLAGS=$QFITS_CFLAGS" >&5
-$as_echo "QFITS_CFLAGS=$QFITS_CFLAGS" >&6; }
-
-
-
-# Checks for header files.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
-$as_echo_n "checking for ANSI C header files... " >&6; }
-if ${ac_cv_header_stdc+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_header_stdc=yes
-else
-  ac_cv_header_stdc=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-if test $ac_cv_header_stdc = yes; then
-  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <string.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "memchr" >/dev/null 2>&1; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
-  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "free" >/dev/null 2>&1; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
-  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
-  if test "$cross_compiling" = yes; then :
-  :
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <ctype.h>
-#include <stdlib.h>
-#if ((' ' & 0x0FF) == 0x020)
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#else
-# define ISLOWER(c) \
-		   (('a' <= (c) && (c) <= 'i') \
-		     || ('j' <= (c) && (c) <= 'r') \
-		     || ('s' <= (c) && (c) <= 'z'))
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
-#endif
-
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int
-main ()
-{
-  int i;
-  for (i = 0; i < 256; i++)
-    if (XOR (islower (i), ISLOWER (i))
-	|| toupper (i) != TOUPPER (i))
-      return 2;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
-$as_echo "$ac_cv_header_stdc" >&6; }
-if test $ac_cv_header_stdc = yes; then
-
-$as_echo "#define STDC_HEADERS 1" >>confdefs.h
-
-fi
-
-for ac_header in fcntl.h stdlib.h string.h sys/time.h unistd.h
-do :
-  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-# Checks for typedefs, structures, and compiler characteristics.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
-$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
-if ${ac_cv_c_const+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-/* FIXME: Include the comments suggested by Paul. */
-#ifndef __cplusplus
-  /* Ultrix mips cc rejects this.  */
-  typedef int charset[2];
-  const charset cs;
-  /* SunOS 4.1.1 cc rejects this.  */
-  char const *const *pcpcc;
-  char **ppc;
-  /* NEC SVR4.0.2 mips cc rejects this.  */
-  struct point {int x, y;};
-  static struct point const zero = {0,0};
-  /* AIX XL C 1.02.0.0 rejects this.
-     It does not let you subtract one const X* pointer from another in
-     an arm of an if-expression whose if-part is not a constant
-     expression */
-  const char *g = "string";
-  pcpcc = &g + (g ? g-g : 0);
-  /* HPUX 7.0 cc rejects these. */
-  ++pcpcc;
-  ppc = (char**) pcpcc;
-  pcpcc = (char const *const *) ppc;
-  { /* SCO 3.2v4 cc rejects this.  */
-    char *t;
-    char const *s = 0 ? (char *) 0 : (char const *) 0;
-
-    *t++ = 0;
-    if (s) return 0;
-  }
-  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
-    int x[] = {25, 17};
-    const int *foo = &x[0];
-    ++foo;
-  }
-  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
-    typedef const int *iptr;
-    iptr p = 0;
-    ++p;
-  }
-  { /* AIX XL C 1.02.0.0 rejects this saying
-       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
-    struct s { int j; const int *ap[3]; };
-    struct s *b; b->j = 5;
-  }
-  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
-    const int foo = 10;
-    if (!foo) return 0;
-  }
-  return !cs[0] && !zero.x;
-#endif
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_c_const=yes
-else
-  ac_cv_c_const=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
-$as_echo "$ac_cv_c_const" >&6; }
-if test $ac_cv_c_const = no; then
-
-$as_echo "#define const /**/" >>confdefs.h
-
-fi
-
-ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
-if test "x$ac_cv_type_size_t" = xyes; then :
-
-else
-
-cat >>confdefs.h <<_ACEOF
-#define size_t unsigned int
-_ACEOF
-
-fi
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
-$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
-if ${ac_cv_header_time+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <sys/types.h>
-#include <sys/time.h>
-#include <time.h>
-
-int
-main ()
-{
-if ((struct tm *) 0)
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_header_time=yes
-else
-  ac_cv_header_time=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
-$as_echo "$ac_cv_header_time" >&6; }
-if test $ac_cv_header_time = yes; then
-
-$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
-
-fi
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
-$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
-if ${ac_cv_struct_tm+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <sys/types.h>
-#include <time.h>
-
-int
-main ()
-{
-struct tm tm;
-				     int *p = &tm.tm_sec;
-				     return !p;
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_struct_tm=time.h
-else
-  ac_cv_struct_tm=sys/time.h
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
-$as_echo "$ac_cv_struct_tm" >&6; }
-if test $ac_cv_struct_tm = sys/time.h; then
-
-$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
-
-fi
-
-
-# Checks for library functions.
-for ac_header in stdlib.h
-do :
-  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
-if test "x$ac_cv_header_stdlib_h" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_STDLIB_H 1
-_ACEOF
-
-fi
-
-done
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
-$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
-if ${ac_cv_func_malloc_0_nonnull+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test "$cross_compiling" = yes; then :
-  ac_cv_func_malloc_0_nonnull=no
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#if defined STDC_HEADERS || defined HAVE_STDLIB_H
-# include <stdlib.h>
-#else
-char *malloc ();
-#endif
-
-int
-main ()
-{
-return ! malloc (0);
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-  ac_cv_func_malloc_0_nonnull=yes
-else
-  ac_cv_func_malloc_0_nonnull=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
-$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
-if test $ac_cv_func_malloc_0_nonnull = yes; then :
-
-$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
-
-else
-  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
-
-   case " $LIBOBJS " in
-  *" malloc.$ac_objext "* ) ;;
-  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
- ;;
-esac
-
-
-$as_echo "#define malloc rpl_malloc" >>confdefs.h
-
-fi
-
-
-
-
-
-  for ac_header in $ac_header_list
-do :
-  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
-"
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-
-
-
-
-
-
-for ac_func in getpagesize
-do :
-  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
-if test "x$ac_cv_func_getpagesize" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_GETPAGESIZE 1
-_ACEOF
-
-fi
-done
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
-$as_echo_n "checking for working mmap... " >&6; }
-if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test "$cross_compiling" = yes; then :
-  ac_cv_func_mmap_fixed_mapped=no
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-$ac_includes_default
-/* malloc might have been renamed as rpl_malloc. */
-#undef malloc
-
-/* Thanks to Mike Haertel and Jim Avera for this test.
-   Here is a matrix of mmap possibilities:
-	mmap private not fixed
-	mmap private fixed at somewhere currently unmapped
-	mmap private fixed at somewhere already mapped
-	mmap shared not fixed
-	mmap shared fixed at somewhere currently unmapped
-	mmap shared fixed at somewhere already mapped
-   For private mappings, we should verify that changes cannot be read()
-   back from the file, nor mmap's back from the file at a different
-   address.  (There have been systems where private was not correctly
-   implemented like the infamous i386 svr4.0, and systems where the
-   VM page cache was not coherent with the file system buffer cache
-   like early versions of FreeBSD and possibly contemporary NetBSD.)
-   For shared mappings, we should conversely verify that changes get
-   propagated back to all the places they're supposed to be.
-
-   Grep wants private fixed already mapped.
-   The main things grep needs to know about mmap are:
-   * does it exist and is it safe to write into the mmap'd area
-   * how to use it (BSD variants)  */
-
-#include <fcntl.h>
-#include <sys/mman.h>
-
-#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
-char *malloc ();
-#endif
-
-/* This mess was copied from the GNU getpagesize.h.  */
-#ifndef HAVE_GETPAGESIZE
-# ifdef _SC_PAGESIZE
-#  define getpagesize() sysconf(_SC_PAGESIZE)
-# else /* no _SC_PAGESIZE */
-#  ifdef HAVE_SYS_PARAM_H
-#   include <sys/param.h>
-#   ifdef EXEC_PAGESIZE
-#    define getpagesize() EXEC_PAGESIZE
-#   else /* no EXEC_PAGESIZE */
-#    ifdef NBPG
-#     define getpagesize() NBPG * CLSIZE
-#     ifndef CLSIZE
-#      define CLSIZE 1
-#     endif /* no CLSIZE */
-#    else /* no NBPG */
-#     ifdef NBPC
-#      define getpagesize() NBPC
-#     else /* no NBPC */
-#      ifdef PAGESIZE
-#       define getpagesize() PAGESIZE
-#      endif /* PAGESIZE */
-#     endif /* no NBPC */
-#    endif /* no NBPG */
-#   endif /* no EXEC_PAGESIZE */
-#  else /* no HAVE_SYS_PARAM_H */
-#   define getpagesize() 8192	/* punt totally */
-#  endif /* no HAVE_SYS_PARAM_H */
-# endif /* no _SC_PAGESIZE */
-
-#endif /* no HAVE_GETPAGESIZE */
-
-int
-main ()
-{
-  char *data, *data2, *data3;
-  const char *cdata2;
-  int i, pagesize;
-  int fd, fd2;
-
-  pagesize = getpagesize ();
-
-  /* First, make a file with some known garbage in it. */
-  data = (char *) malloc (pagesize);
-  if (!data)
-    return 1;
-  for (i = 0; i < pagesize; ++i)
-    *(data + i) = rand ();
-  umask (0);
-  fd = creat ("conftest.mmap", 0600);
-  if (fd < 0)
-    return 2;
-  if (write (fd, data, pagesize) != pagesize)
-    return 3;
-  close (fd);
-
-  /* Next, check that the tail of a page is zero-filled.  File must have
-     non-zero length, otherwise we risk SIGBUS for entire page.  */
-  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
-  if (fd2 < 0)
-    return 4;
-  cdata2 = "";
-  if (write (fd2, cdata2, 1) != 1)
-    return 5;
-  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
-  if (data2 == MAP_FAILED)
-    return 6;
-  for (i = 0; i < pagesize; ++i)
-    if (*(data2 + i))
-      return 7;
-  close (fd2);
-  if (munmap (data2, pagesize))
-    return 8;
-
-  /* Next, try to mmap the file at a fixed address which already has
-     something else allocated at it.  If we can, also make sure that
-     we see the same garbage.  */
-  fd = open ("conftest.mmap", O_RDWR);
-  if (fd < 0)
-    return 9;
-  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
-		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
-    return 10;
-  for (i = 0; i < pagesize; ++i)
-    if (*(data + i) != *(data2 + i))
-      return 11;
-
-  /* Finally, make sure that changes to the mapped area do not
-     percolate back to the file as seen by read().  (This is a bug on
-     some variants of i386 svr4.0.)  */
-  for (i = 0; i < pagesize; ++i)
-    *(data2 + i) = *(data2 + i) + 1;
-  data3 = (char *) malloc (pagesize);
-  if (!data3)
-    return 12;
-  if (read (fd, data3, pagesize) != pagesize)
-    return 13;
-  for (i = 0; i < pagesize; ++i)
-    if (*(data + i) != *(data3 + i))
-      return 14;
-  close (fd);
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-  ac_cv_func_mmap_fixed_mapped=yes
-else
-  ac_cv_func_mmap_fixed_mapped=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
-$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
-if test $ac_cv_func_mmap_fixed_mapped = yes; then
-
-$as_echo "#define HAVE_MMAP 1" >>confdefs.h
-
-fi
-rm -f conftest.mmap conftest.txt
-
-for ac_header in stdlib.h
-do :
-  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
-if test "x$ac_cv_header_stdlib_h" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_STDLIB_H 1
-_ACEOF
-
-fi
-
-done
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
-$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
-if ${ac_cv_func_realloc_0_nonnull+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test "$cross_compiling" = yes; then :
-  ac_cv_func_realloc_0_nonnull=no
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#if defined STDC_HEADERS || defined HAVE_STDLIB_H
-# include <stdlib.h>
-#else
-char *realloc ();
-#endif
-
-int
-main ()
-{
-return ! realloc (0, 0);
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-  ac_cv_func_realloc_0_nonnull=yes
-else
-  ac_cv_func_realloc_0_nonnull=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
-$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
-if test $ac_cv_func_realloc_0_nonnull = yes; then :
-
-$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
-
-else
-  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
-
-   case " $LIBOBJS " in
-  *" realloc.$ac_objext "* ) ;;
-  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
- ;;
-esac
-
-
-$as_echo "#define realloc rpl_realloc" >>confdefs.h
-
-fi
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
-$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
-if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  rm -f conftest.sym conftest.file
-echo >conftest.file
-if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
-  if test "$cross_compiling" = yes; then :
-  ac_cv_func_lstat_dereferences_slashed_symlink=no
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-$ac_includes_default
-int
-main ()
-{
-struct stat sbuf;
-     /* Linux will dereference the symlink and fail, as required by POSIX.
-	That is better in the sense that it means we will not
-	have to compile and use the lstat wrapper.  */
-     return lstat ("conftest.sym/", &sbuf) == 0;
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-  ac_cv_func_lstat_dereferences_slashed_symlink=yes
-else
-  ac_cv_func_lstat_dereferences_slashed_symlink=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-else
-  # If the `ln -s' command failed, then we probably don't even
-  # have an lstat function.
-  ac_cv_func_lstat_dereferences_slashed_symlink=no
-fi
-rm -f conftest.sym conftest.file
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
-$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
-
-test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
-
-cat >>confdefs.h <<_ACEOF
-#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
-_ACEOF
-
-
-if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
-  case " $LIBOBJS " in
-  *" lstat.$ac_objext "* ) ;;
-  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
- ;;
-esac
-
-fi
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
-$as_echo_n "checking whether stat accepts an empty string... " >&6; }
-if ${ac_cv_func_stat_empty_string_bug+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test "$cross_compiling" = yes; then :
-  ac_cv_func_stat_empty_string_bug=yes
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-$ac_includes_default
-int
-main ()
-{
-struct stat sbuf;
-  return stat ("", &sbuf) == 0;
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-  ac_cv_func_stat_empty_string_bug=no
-else
-  ac_cv_func_stat_empty_string_bug=yes
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
-$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
-if test $ac_cv_func_stat_empty_string_bug = yes; then
-  case " $LIBOBJS " in
-  *" stat.$ac_objext "* ) ;;
-  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
- ;;
-esac
-
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_STAT_EMPTY_STRING_BUG 1
-_ACEOF
-
-fi
-
-for ac_func in vprintf
-do :
-  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
-if test "x$ac_cv_func_vprintf" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_VPRINTF 1
-_ACEOF
-
-ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
-if test "x$ac_cv_func__doprnt" = xyes; then :
-
-$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
-
-fi
-
-fi
-done
-
-
-for ac_func in atexit getpagesize gettimeofday memchr memmove memset mkdir munmap regcomp rmdir strchr strdup strrchr strstr uname
-do :
-  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
-if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-done
-
-
-# CG. Check for the BIG_ENDIAN (needed by qfits sources)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
-$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
-if ${ac_cv_c_bigendian+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_cv_c_bigendian=unknown
-    # See if we're dealing with a universal compiler.
-    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#ifndef __APPLE_CC__
-	       not a universal capable compiler
-	     #endif
-	     typedef int dummy;
-
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-	# Check for potential -arch flags.  It is not universal unless
-	# there are at least two -arch flags with different values.
-	ac_arch=
-	ac_prev=
-	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
-	 if test -n "$ac_prev"; then
-	   case $ac_word in
-	     i?86 | x86_64 | ppc | ppc64)
-	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
-		 ac_arch=$ac_word
-	       else
-		 ac_cv_c_bigendian=universal
-		 break
-	       fi
-	       ;;
-	   esac
-	   ac_prev=
-	 elif test "x$ac_word" = "x-arch"; then
-	   ac_prev=arch
-	 fi
-       done
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-    if test $ac_cv_c_bigendian = unknown; then
-      # See if sys/param.h defines the BYTE_ORDER macro.
-      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <sys/types.h>
-	     #include <sys/param.h>
-
-int
-main ()
-{
-#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
-		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
-		     && LITTLE_ENDIAN)
-	      bogus endian macros
-	     #endif
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  # It does; now see whether it defined to BIG_ENDIAN or not.
-	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <sys/types.h>
-		#include <sys/param.h>
-
-int
-main ()
-{
-#if BYTE_ORDER != BIG_ENDIAN
-		 not big endian
-		#endif
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_c_bigendian=yes
-else
-  ac_cv_c_bigendian=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-    fi
-    if test $ac_cv_c_bigendian = unknown; then
-      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
-      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <limits.h>
-
-int
-main ()
-{
-#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
-	      bogus endian macros
-	     #endif
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  # It does; now see whether it defined to _BIG_ENDIAN or not.
-	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <limits.h>
-
-int
-main ()
-{
-#ifndef _BIG_ENDIAN
-		 not big endian
-		#endif
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_c_bigendian=yes
-else
-  ac_cv_c_bigendian=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-    fi
-    if test $ac_cv_c_bigendian = unknown; then
-      # Compile a test program.
-      if test "$cross_compiling" = yes; then :
-  # Try to guess by grepping values from an object file.
-	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-short int ascii_mm[] =
-		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
-		short int ascii_ii[] =
-		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
-		int use_ascii (int i) {
-		  return ascii_mm[i] + ascii_ii[i];
-		}
-		short int ebcdic_ii[] =
-		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
-		short int ebcdic_mm[] =
-		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
-		int use_ebcdic (int i) {
-		  return ebcdic_mm[i] + ebcdic_ii[i];
-		}
-		extern int foo;
-
-int
-main ()
-{
-return use_ascii (foo) == use_ebcdic (foo);
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
-	      ac_cv_c_bigendian=yes
-	    fi
-	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
-	      if test "$ac_cv_c_bigendian" = unknown; then
-		ac_cv_c_bigendian=no
-	      else
-		# finding both strings is unlikely to happen, but who knows?
-		ac_cv_c_bigendian=unknown
-	      fi
-	    fi
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-$ac_includes_default
-int
-main ()
-{
-
-	     /* Are we little or big endian?  From Harbison&Steele.  */
-	     union
-	     {
-	       long int l;
-	       char c[sizeof (long int)];
-	     } u;
-	     u.l = 1;
-	     return u.c[sizeof (long int) - 1] == 1;
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-  ac_cv_c_bigendian=no
-else
-  ac_cv_c_bigendian=yes
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-    fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
-$as_echo "$ac_cv_c_bigendian" >&6; }
- case $ac_cv_c_bigendian in #(
-   yes)
-     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
-;; #(
-   no)
-      ;; #(
-   universal)
-
-$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
-
-     ;; #(
-   *)
-     as_fn_error $? "unknown endianness
- presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
- esac
-
-
-case $host_cpu in
-i*86)
-    CPU_X86="`echo $host_cpu | cut -c 2-`"
-
-cat >>confdefs.h <<_ACEOF
-#define CPU_X86 $CPU_X86
-_ACEOF
-
-    ;;
-esac
-
-
-
-    if test -z "$htmldir"; then
-        htmldir='${datadir}/doc/${PACKAGE}/html'
-    fi
-
-
-
-
-ac_config_files="$ac_config_files Makefile Doxyfile src/Makefile test/Makefile"
-
-cat >confcache <<\_ACEOF
-# This file is a shell script that caches the results of configure
-# tests run on this system so they can be shared between configure
-# scripts and configure runs, see configure's option --config-cache.
-# It is not useful on other systems.  If it contains results you don't
-# want to keep, you may remove or edit it.
-#
-# config.status only pays attention to the cache file if you give it
-# the --recheck option to rerun configure.
-#
-# `ac_cv_env_foo' variables (set or unset) will be overridden when
-# loading this file, other *unset* `ac_cv_foo' will be assigned the
-# following values.
-
-_ACEOF
-
-# The following way of writing the cache mishandles newlines in values,
-# but we know of no workaround that is simple, portable, and efficient.
-# So, we kill variables containing newlines.
-# Ultrix sh set writes to stderr and can't be redirected directly,
-# and sets the high bit in the cache file unless we assign to the vars.
-(
-  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
-    eval ac_val=\$$ac_var
-    case $ac_val in #(
-    *${as_nl}*)
-      case $ac_var in #(
-      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
-      esac
-      case $ac_var in #(
-      _ | IFS | as_nl) ;; #(
-      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
-      *) { eval $ac_var=; unset $ac_var;} ;;
-      esac ;;
-    esac
-  done
-
-  (set) 2>&1 |
-    case $as_nl`(ac_space=' '; set) 2>&1` in #(
-    *${as_nl}ac_space=\ *)
-      # `set' does not quote correctly, so add quotes: double-quote
-      # substitution turns \\\\ into \\, and sed turns \\ into \.
-      sed -n \
-	"s/'/'\\\\''/g;
-	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
-      ;; #(
-    *)
-      # `set' quotes correctly as required by POSIX, so do not add quotes.
-      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
-      ;;
-    esac |
-    sort
-) |
-  sed '
-     /^ac_cv_env_/b end
-     t clear
-     :clear
-     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
-     t end
-     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
-     :end' >>confcache
-if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
-  if test -w "$cache_file"; then
-    if test "x$cache_file" != "x/dev/null"; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
-$as_echo "$as_me: updating cache $cache_file" >&6;}
-      if test ! -f "$cache_file" || test -h "$cache_file"; then
-	cat confcache >"$cache_file"
-      else
-        case $cache_file in #(
-        */* | ?:*)
-	  mv -f confcache "$cache_file"$$ &&
-	  mv -f "$cache_file"$$ "$cache_file" ;; #(
-        *)
-	  mv -f confcache "$cache_file" ;;
-	esac
-      fi
-    fi
-  else
-    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
-$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
-  fi
-fi
-rm -f confcache
-
-test "x$prefix" = xNONE && prefix=$ac_default_prefix
-# Let make expand exec_prefix.
-test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
-
-DEFS=-DHAVE_CONFIG_H
-
-ac_libobjs=
-ac_ltlibobjs=
-U=
-for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
-  # 1. Remove the extension, and $U if already installed.
-  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
-  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
-  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
-  #    will be set to the directory where LIBOBJS objects are built.
-  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
-  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
-done
-LIBOBJS=$ac_libobjs
-
-LTLIBOBJS=$ac_ltlibobjs
-
-
- if test -n "$EXEEXT"; then
-  am__EXEEXT_TRUE=
-  am__EXEEXT_FALSE='#'
-else
-  am__EXEEXT_TRUE='#'
-  am__EXEEXT_FALSE=
-fi
-
-if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
-  as_fn_error $? "conditional \"AMDEP\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
-  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-
-
-: "${CONFIG_STATUS=./config.status}"
-ac_write_fail=0
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files $CONFIG_STATUS"
-{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
-$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
-as_write_fail=0
-cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
-#! $SHELL
-# Generated by $as_me.
-# Run this file to recreate the current configuration.
-# Compiler output produced by configure, useful for debugging
-# configure, is in config.log if it exists.
-
-debug=false
-ac_cs_recheck=false
-ac_cs_silent=false
-
-SHELL=\${CONFIG_SHELL-$SHELL}
-export SHELL
-_ASEOF
-cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
-## -------------------- ##
-## M4sh Initialization. ##
-## -------------------- ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
-  emulate sh
-  NULLCMD=:
-  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in #(
-  *posix*) :
-    set -o posix ;; #(
-  *) :
-     ;;
-esac
-fi
-
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-# Prefer a ksh shell builtin over an external printf program on Solaris,
-# but without wasting forks for bash or zsh.
-if test -z "$BASH_VERSION$ZSH_VERSION" \
-    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
-  as_echo='print -r --'
-  as_echo_n='print -rn --'
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
-  as_echo='printf %s\n'
-  as_echo_n='printf %s'
-else
-  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
-    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
-    as_echo_n='/usr/ucb/echo -n'
-  else
-    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
-    as_echo_n_body='eval
-      arg=$1;
-      case $arg in #(
-      *"$as_nl"*)
-	expr "X$arg" : "X\\(.*\\)$as_nl";
-	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
-      esac;
-      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
-    '
-    export as_echo_n_body
-    as_echo_n='sh -c $as_echo_n_body as_echo'
-  fi
-  export as_echo_body
-  as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
-  PATH_SEPARATOR=:
-  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
-    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
-      PATH_SEPARATOR=';'
-  }
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order.  Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" ""	$as_nl"
-
-# Find who we are.  Look in the path if we contain no directory separator.
-as_myself=
-case $0 in #((
-  *[\\/]* ) as_myself=$0 ;;
-  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
-  done
-IFS=$as_save_IFS
-
-     ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
-  as_myself=$0
-fi
-if test ! -f "$as_myself"; then
-  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
-  exit 1
-fi
-
-# Unset variables that we do not need and which cause bugs (e.g. in
-# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
-# suppresses any "Segmentation fault" message there.  '((' could
-# trigger a bug in pdksh 5.2.14.
-for as_var in BASH_ENV ENV MAIL MAILPATH
-do eval test x\${$as_var+set} = xset \
-  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-
-# as_fn_error STATUS ERROR [LINENO LOG_FD]
-# ----------------------------------------
-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
-# script with STATUS, using 1 if that was 0.
-as_fn_error ()
-{
-  as_status=$1; test $as_status -eq 0 && as_status=1
-  if test "$4"; then
-    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
-  fi
-  $as_echo "$as_me: error: $2" >&2
-  as_fn_exit $as_status
-} # as_fn_error
-
-
-# as_fn_set_status STATUS
-# -----------------------
-# Set $? to STATUS, without forking.
-as_fn_set_status ()
-{
-  return $1
-} # as_fn_set_status
-
-# as_fn_exit STATUS
-# -----------------
-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
-as_fn_exit ()
-{
-  set +e
-  as_fn_set_status $1
-  exit $1
-} # as_fn_exit
-
-# as_fn_unset VAR
-# ---------------
-# Portably unset VAR.
-as_fn_unset ()
-{
-  { eval $1=; unset $1;}
-}
-as_unset=as_fn_unset
-# as_fn_append VAR VALUE
-# ----------------------
-# Append the text in VALUE to the end of the definition contained in VAR. Take
-# advantage of any shell optimizations that allow amortized linear growth over
-# repeated appends, instead of the typical quadratic growth present in naive
-# implementations.
-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
-  eval 'as_fn_append ()
-  {
-    eval $1+=\$2
-  }'
-else
-  as_fn_append ()
-  {
-    eval $1=\$$1\$2
-  }
-fi # as_fn_append
-
-# as_fn_arith ARG...
-# ------------------
-# Perform arithmetic evaluation on the ARGs, and store the result in the
-# global $as_val. Take advantage of shells that can avoid forks. The arguments
-# must be portable across $(()) and expr.
-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
-  eval 'as_fn_arith ()
-  {
-    as_val=$(( $* ))
-  }'
-else
-  as_fn_arith ()
-  {
-    as_val=`expr "$@" || test $? -eq 1`
-  }
-fi # as_fn_arith
-
-
-if expr a : '\(a\)' >/dev/null 2>&1 &&
-   test "X`expr 00001 : '.*\(...\)'`" = X001; then
-  as_expr=expr
-else
-  as_expr=false
-fi
-
-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
-  as_basename=basename
-else
-  as_basename=false
-fi
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
-  as_dirname=dirname
-else
-  as_dirname=false
-fi
-
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
-	 X"$0" : 'X\(//\)$' \| \
-	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X/"$0" |
-    sed '/^.*\/\([^/][^/]*\)\/*$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\/\(\/\/\)$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\/\(\/\).*/{
-	    s//\1/
-	    q
-	  }
-	  s/.*/./; q'`
-
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in #(((((
--n*)
-  case `echo 'xy\c'` in
-  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
-  xy)  ECHO_C='\c';;
-  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
-       ECHO_T='	';;
-  esac;;
-*)
-  ECHO_N='-n';;
-esac
-
-rm -f conf$$ conf$$.exe conf$$.file
-if test -d conf$$.dir; then
-  rm -f conf$$.dir/conf$$.file
-else
-  rm -f conf$$.dir
-  mkdir conf$$.dir 2>/dev/null
-fi
-if (echo >conf$$.file) 2>/dev/null; then
-  if ln -s conf$$.file conf$$ 2>/dev/null; then
-    as_ln_s='ln -s'
-    # ... but there are two gotchas:
-    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
-    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
-    # In both cases, we have to default to `cp -p'.
-    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
-      as_ln_s='cp -p'
-  elif ln conf$$.file conf$$ 2>/dev/null; then
-    as_ln_s=ln
-  else
-    as_ln_s='cp -p'
-  fi
-else
-  as_ln_s='cp -p'
-fi
-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
-rmdir conf$$.dir 2>/dev/null
-
-
-# as_fn_mkdir_p
-# -------------
-# Create "$as_dir" as a directory, including parents if necessary.
-as_fn_mkdir_p ()
-{
-
-  case $as_dir in #(
-  -*) as_dir=./$as_dir;;
-  esac
-  test -d "$as_dir" || eval $as_mkdir_p || {
-    as_dirs=
-    while :; do
-      case $as_dir in #(
-      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
-      *) as_qdir=$as_dir;;
-      esac
-      as_dirs="'$as_qdir' $as_dirs"
-      as_dir=`$as_dirname -- "$as_dir" ||
-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-	 X"$as_dir" : 'X\(//\)[^/]' \| \
-	 X"$as_dir" : 'X\(//\)$' \| \
-	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$as_dir" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)[^/].*/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\).*/{
-	    s//\1/
-	    q
-	  }
-	  s/.*/./; q'`
-      test -d "$as_dir" && break
-    done
-    test -z "$as_dirs" || eval "mkdir $as_dirs"
-  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
-
-
-} # as_fn_mkdir_p
-if mkdir -p . 2>/dev/null; then
-  as_mkdir_p='mkdir -p "$as_dir"'
-else
-  test -d ./-p && rmdir ./-p
-  as_mkdir_p=false
-fi
-
-if test -x / >/dev/null 2>&1; then
-  as_test_x='test -x'
-else
-  if ls -dL / >/dev/null 2>&1; then
-    as_ls_L_option=L
-  else
-    as_ls_L_option=
-  fi
-  as_test_x='
-    eval sh -c '\''
-      if test -d "$1"; then
-	test -d "$1/.";
-      else
-	case $1 in #(
-	-*)set "./$1";;
-	esac;
-	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
-	???[sx]*):;;*)false;;esac;fi
-    '\'' sh
-  '
-fi
-as_executable_p=$as_test_x
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-
-
-exec 6>&1
-## ----------------------------------- ##
-## Main body of $CONFIG_STATUS script. ##
-## ----------------------------------- ##
-_ASEOF
-test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-# Save the log message, to keep $0 and so on meaningful, and to
-# report actual input values of CONFIG_FILES etc. instead of their
-# values after options handling.
-ac_log="
-This file was extended by qfits $as_me 6.2.0, which was
-generated by GNU Autoconf 2.68.  Invocation command line was
-
-  CONFIG_FILES    = $CONFIG_FILES
-  CONFIG_HEADERS  = $CONFIG_HEADERS
-  CONFIG_LINKS    = $CONFIG_LINKS
-  CONFIG_COMMANDS = $CONFIG_COMMANDS
-  $ $0 $@
-
-on `(hostname || uname -n) 2>/dev/null | sed 1q`
-"
-
-_ACEOF
-
-case $ac_config_files in *"
-"*) set x $ac_config_files; shift; ac_config_files=$*;;
-esac
-
-case $ac_config_headers in *"
-"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
-esac
-
-
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-# Files that config.status was made for.
-config_files="$ac_config_files"
-config_headers="$ac_config_headers"
-config_commands="$ac_config_commands"
-
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-ac_cs_usage="\
-\`$as_me' instantiates files and other configuration actions
-from templates according to the current configuration.  Unless the files
-and actions are specified as TAGs, all are instantiated by default.
-
-Usage: $0 [OPTION]... [TAG]...
-
-  -h, --help       print this help, then exit
-  -V, --version    print version number and configuration settings, then exit
-      --config     print configuration, then exit
-  -q, --quiet, --silent
-                   do not print progress messages
-  -d, --debug      don't remove temporary files
-      --recheck    update $as_me by reconfiguring in the same conditions
-      --file=FILE[:TEMPLATE]
-                   instantiate the configuration file FILE
-      --header=FILE[:TEMPLATE]
-                   instantiate the configuration header FILE
-
-Configuration files:
-$config_files
-
-Configuration headers:
-$config_headers
-
-Configuration commands:
-$config_commands
-
-Report bugs to <yjung at eso.org>."
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
-ac_cs_version="\\
-qfits config.status 6.2.0
-configured by $0, generated by GNU Autoconf 2.68,
-  with options \\"\$ac_cs_config\\"
-
-Copyright (C) 2010 Free Software Foundation, Inc.
-This config.status script is free software; the Free Software Foundation
-gives unlimited permission to copy, distribute and modify it."
-
-ac_pwd='$ac_pwd'
-srcdir='$srcdir'
-INSTALL='$INSTALL'
-MKDIR_P='$MKDIR_P'
-AWK='$AWK'
-test -n "\$AWK" || AWK=awk
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-# The default lists apply if the user does not specify any file.
-ac_need_defaults=:
-while test $# != 0
-do
-  case $1 in
-  --*=?*)
-    ac_option=`expr "X$1" : 'X\([^=]*\)='`
-    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
-    ac_shift=:
-    ;;
-  --*=)
-    ac_option=`expr "X$1" : 'X\([^=]*\)='`
-    ac_optarg=
-    ac_shift=:
-    ;;
-  *)
-    ac_option=$1
-    ac_optarg=$2
-    ac_shift=shift
-    ;;
-  esac
-
-  case $ac_option in
-  # Handling of the options.
-  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
-    ac_cs_recheck=: ;;
-  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
-    $as_echo "$ac_cs_version"; exit ;;
-  --config | --confi | --conf | --con | --co | --c )
-    $as_echo "$ac_cs_config"; exit ;;
-  --debug | --debu | --deb | --de | --d | -d )
-    debug=: ;;
-  --file | --fil | --fi | --f )
-    $ac_shift
-    case $ac_optarg in
-    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
-    '') as_fn_error $? "missing file argument" ;;
-    esac
-    as_fn_append CONFIG_FILES " '$ac_optarg'"
-    ac_need_defaults=false;;
-  --header | --heade | --head | --hea )
-    $ac_shift
-    case $ac_optarg in
-    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
-    esac
-    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
-    ac_need_defaults=false;;
-  --he | --h)
-    # Conflict between --help and --header
-    as_fn_error $? "ambiguous option: \`$1'
-Try \`$0 --help' for more information.";;
-  --help | --hel | -h )
-    $as_echo "$ac_cs_usage"; exit ;;
-  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
-  | -silent | --silent | --silen | --sile | --sil | --si | --s)
-    ac_cs_silent=: ;;
-
-  # This is an error.
-  -*) as_fn_error $? "unrecognized option: \`$1'
-Try \`$0 --help' for more information." ;;
-
-  *) as_fn_append ac_config_targets " $1"
-     ac_need_defaults=false ;;
-
-  esac
-  shift
-done
-
-ac_configure_extra_args=
-
-if $ac_cs_silent; then
-  exec 6>/dev/null
-  ac_configure_extra_args="$ac_configure_extra_args --silent"
-fi
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-if \$ac_cs_recheck; then
-  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
-  shift
-  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
-  CONFIG_SHELL='$SHELL'
-  export CONFIG_SHELL
-  exec "\$@"
-fi
-
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-exec 5>>config.log
-{
-  echo
-  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
-## Running $as_me. ##
-_ASBOX
-  $as_echo "$ac_log"
-} >&5
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-#
-# INIT-COMMANDS
-#
-AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
-
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-sed_quote_subst='$sed_quote_subst'
-double_quote_subst='$double_quote_subst'
-delay_variable_subst='$delay_variable_subst'
-macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
-macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
-enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
-enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
-pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
-enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
-SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
-ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
-PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
-host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
-host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
-host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
-build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
-build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
-build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
-SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
-Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
-GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
-EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
-FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
-LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
-NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
-LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
-max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
-ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
-exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
-lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
-lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
-lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
-lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
-lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
-reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
-reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
-OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
-deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
-file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
-file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
-want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
-DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
-sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
-AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
-AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
-archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
-STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
-RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
-old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
-old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
-old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
-lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
-CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
-CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
-compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
-GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
-lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
-lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
-lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
-nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
-lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
-objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
-MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
-lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
-lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
-lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
-lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
-need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
-MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
-DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
-NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
-LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
-OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
-OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
-libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
-shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
-extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
-archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
-enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
-export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
-whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
-compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
-old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
-old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
-archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
-archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
-module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
-module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
-with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
-allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
-no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
-hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
-hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
-hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
-hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
-hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
-hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
-hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
-inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
-link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
-always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
-export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
-exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
-include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
-prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
-postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
-file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
-variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
-need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
-need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
-version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
-runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
-shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
-shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
-libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
-library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
-soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
-install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
-postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
-postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
-finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
-finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
-hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
-sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
-sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
-hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
-enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
-enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
-enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
-old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
-striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
-
-LTCC='$LTCC'
-LTCFLAGS='$LTCFLAGS'
-compiler='$compiler_DEFAULT'
-
-# A function that is used when there is no print builtin or printf.
-func_fallback_echo ()
-{
-  eval 'cat <<_LTECHO_EOF
-\$1
-_LTECHO_EOF'
-}
-
-# Quote evaled strings.
-for var in SHELL \
-ECHO \
-PATH_SEPARATOR \
-SED \
-GREP \
-EGREP \
-FGREP \
-LD \
-NM \
-LN_S \
-lt_SP2NL \
-lt_NL2SP \
-reload_flag \
-OBJDUMP \
-deplibs_check_method \
-file_magic_cmd \
-file_magic_glob \
-want_nocaseglob \
-DLLTOOL \
-sharedlib_from_linklib_cmd \
-AR \
-AR_FLAGS \
-archiver_list_spec \
-STRIP \
-RANLIB \
-CC \
-CFLAGS \
-compiler \
-lt_cv_sys_global_symbol_pipe \
-lt_cv_sys_global_symbol_to_cdecl \
-lt_cv_sys_global_symbol_to_c_name_address \
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
-nm_file_list_spec \
-lt_prog_compiler_no_builtin_flag \
-lt_prog_compiler_pic \
-lt_prog_compiler_wl \
-lt_prog_compiler_static \
-lt_cv_prog_compiler_c_o \
-need_locks \
-MANIFEST_TOOL \
-DSYMUTIL \
-NMEDIT \
-LIPO \
-OTOOL \
-OTOOL64 \
-shrext_cmds \
-export_dynamic_flag_spec \
-whole_archive_flag_spec \
-compiler_needs_object \
-with_gnu_ld \
-allow_undefined_flag \
-no_undefined_flag \
-hardcode_libdir_flag_spec \
-hardcode_libdir_separator \
-exclude_expsyms \
-include_expsyms \
-file_list_spec \
-variables_saved_for_relink \
-libname_spec \
-library_names_spec \
-soname_spec \
-install_override_mode \
-finish_eval \
-old_striplib \
-striplib; do
-    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
-    *[\\\\\\\`\\"\\\$]*)
-      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
-      ;;
-    *)
-      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
-      ;;
-    esac
-done
-
-# Double-quote double-evaled strings.
-for var in reload_cmds \
-old_postinstall_cmds \
-old_postuninstall_cmds \
-old_archive_cmds \
-extract_expsyms_cmds \
-old_archive_from_new_cmds \
-old_archive_from_expsyms_cmds \
-archive_cmds \
-archive_expsym_cmds \
-module_cmds \
-module_expsym_cmds \
-export_symbols_cmds \
-prelink_cmds \
-postlink_cmds \
-postinstall_cmds \
-postuninstall_cmds \
-finish_cmds \
-sys_lib_search_path_spec \
-sys_lib_dlsearch_path_spec; do
-    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
-    *[\\\\\\\`\\"\\\$]*)
-      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
-      ;;
-    *)
-      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
-      ;;
-    esac
-done
-
-ac_aux_dir='$ac_aux_dir'
-xsi_shell='$xsi_shell'
-lt_shell_append='$lt_shell_append'
-
-# See if we are running on zsh, and set the options which allow our
-# commands through without removal of \ escapes INIT.
-if test -n "\${ZSH_VERSION+set}" ; then
-   setopt NO_GLOB_SUBST
-fi
-
-
-    PACKAGE='$PACKAGE'
-    VERSION='$VERSION'
-    TIMESTAMP='$TIMESTAMP'
-    RM='$RM'
-    ofile='$ofile'
-
-
-
-
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-
-# Handling of arguments.
-for ac_config_target in $ac_config_targets
-do
-  case $ac_config_target in
-    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
-    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
-    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
-    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
-    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
-    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
-    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
-
-  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
-  esac
-done
-
-
-# If the user did not use the arguments to specify the items to instantiate,
-# then the envvar interface is used.  Set only those that are not.
-# We use the long form for the default assignment because of an extremely
-# bizarre bug on SunOS 4.1.3.
-if $ac_need_defaults; then
-  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
-  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
-  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
-fi
-
-# Have a temporary directory for convenience.  Make it in the build tree
-# simply because there is no reason against having it here, and in addition,
-# creating and moving files from /tmp can sometimes cause problems.
-# Hook for its removal unless debugging.
-# Note that there is a small window in which the directory will not be cleaned:
-# after its creation but before its name has been assigned to `$tmp'.
-$debug ||
-{
-  tmp= ac_tmp=
-  trap 'exit_status=$?
-  : "${ac_tmp:=$tmp}"
-  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
-' 0
-  trap 'as_fn_exit 1' 1 2 13 15
-}
-# Create a (secure) tmp directory for tmp files.
-
-{
-  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
-  test -d "$tmp"
-}  ||
-{
-  tmp=./conf$$-$RANDOM
-  (umask 077 && mkdir "$tmp")
-} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
-ac_tmp=$tmp
-
-# Set up the scripts for CONFIG_FILES section.
-# No need to generate them if there are no CONFIG_FILES.
-# This happens for instance with `./config.status config.h'.
-if test -n "$CONFIG_FILES"; then
-
-
-ac_cr=`echo X | tr X '\015'`
-# On cygwin, bash can eat \r inside `` if the user requested igncr.
-# But we know of no other shell where ac_cr would be empty at this
-# point, so we can use a bashism as a fallback.
-if test "x$ac_cr" = x; then
-  eval ac_cr=\$\'\\r\'
-fi
-ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
-if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
-  ac_cs_awk_cr='\\r'
-else
-  ac_cs_awk_cr=$ac_cr
-fi
-
-echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
-_ACEOF
-
-
-{
-  echo "cat >conf$$subs.awk <<_ACEOF" &&
-  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
-  echo "_ACEOF"
-} >conf$$subs.sh ||
-  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
-ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
-ac_delim='%!_!# '
-for ac_last_try in false false false false false :; do
-  . ./conf$$subs.sh ||
-    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
-
-  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
-  if test $ac_delim_n = $ac_delim_num; then
-    break
-  elif $ac_last_try; then
-    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
-  else
-    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
-  fi
-done
-rm -f conf$$subs.sh
-
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
-_ACEOF
-sed -n '
-h
-s/^/S["/; s/!.*/"]=/
-p
-g
-s/^[^!]*!//
-:repl
-t repl
-s/'"$ac_delim"'$//
-t delim
-:nl
-h
-s/\(.\{148\}\)..*/\1/
-t more1
-s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
-p
-n
-b repl
-:more1
-s/["\\]/\\&/g; s/^/"/; s/$/"\\/
-p
-g
-s/.\{148\}//
-t nl
-:delim
-h
-s/\(.\{148\}\)..*/\1/
-t more2
-s/["\\]/\\&/g; s/^/"/; s/$/"/
-p
-b
-:more2
-s/["\\]/\\&/g; s/^/"/; s/$/"\\/
-p
-g
-s/.\{148\}//
-t delim
-' <conf$$subs.awk | sed '
-/^[^""]/{
-  N
-  s/\n//
-}
-' >>$CONFIG_STATUS || ac_write_fail=1
-rm -f conf$$subs.awk
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-_ACAWK
-cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
-  for (key in S) S_is_set[key] = 1
-  FS = ""
-
-}
-{
-  line = $ 0
-  nfields = split(line, field, "@")
-  substed = 0
-  len = length(field[1])
-  for (i = 2; i < nfields; i++) {
-    key = field[i]
-    keylen = length(key)
-    if (S_is_set[key]) {
-      value = S[key]
-      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
-      len += length(value) + length(field[++i])
-      substed = 1
-    } else
-      len += 1 + keylen
-  }
-
-  print line
-}
-
-_ACAWK
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
-  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
-else
-  cat
-fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
-  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
-_ACEOF
-
-# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
-# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
-# trailing colons and then remove the whole line if VPATH becomes empty
-# (actually we leave an empty line to preserve line numbers).
-if test "x$srcdir" = x.; then
-  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
-h
-s///
-s/^/:/
-s/[	 ]*$/:/
-s/:\$(srcdir):/:/g
-s/:\${srcdir}:/:/g
-s/:@srcdir@:/:/g
-s/^:*//
-s/:*$//
-x
-s/\(=[	 ]*\).*/\1/
-G
-s/\n//
-s/^[^=]*=[	 ]*$//
-}'
-fi
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-fi # test -n "$CONFIG_FILES"
-
-# Set up the scripts for CONFIG_HEADERS section.
-# No need to generate them if there are no CONFIG_HEADERS.
-# This happens for instance with `./config.status Makefile'.
-if test -n "$CONFIG_HEADERS"; then
-cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
-BEGIN {
-_ACEOF
-
-# Transform confdefs.h into an awk script `defines.awk', embedded as
-# here-document in config.status, that substitutes the proper values into
-# config.h.in to produce config.h.
-
-# Create a delimiter string that does not exist in confdefs.h, to ease
-# handling of long lines.
-ac_delim='%!_!# '
-for ac_last_try in false false :; do
-  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
-  if test -z "$ac_tt"; then
-    break
-  elif $ac_last_try; then
-    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
-  else
-    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
-  fi
-done
-
-# For the awk script, D is an array of macro values keyed by name,
-# likewise P contains macro parameters if any.  Preserve backslash
-# newline sequences.
-
-ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
-sed -n '
-s/.\{148\}/&'"$ac_delim"'/g
-t rset
-:rset
-s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
-t def
-d
-:def
-s/\\$//
-t bsnl
-s/["\\]/\\&/g
-s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
-D["\1"]=" \3"/p
-s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
-d
-:bsnl
-s/["\\]/\\&/g
-s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
-D["\1"]=" \3\\\\\\n"\\/p
-t cont
-s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
-t cont
-d
-:cont
-n
-s/.\{148\}/&'"$ac_delim"'/g
-t clear
-:clear
-s/\\$//
-t bsnlc
-s/["\\]/\\&/g; s/^/"/; s/$/"/p
-d
-:bsnlc
-s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
-b cont
-' <confdefs.h | sed '
-s/'"$ac_delim"'/"\\\
-"/g' >>$CONFIG_STATUS || ac_write_fail=1
-
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-  for (key in D) D_is_set[key] = 1
-  FS = ""
-}
-/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
-  line = \$ 0
-  split(line, arg, " ")
-  if (arg[1] == "#") {
-    defundef = arg[2]
-    mac1 = arg[3]
-  } else {
-    defundef = substr(arg[1], 2)
-    mac1 = arg[2]
-  }
-  split(mac1, mac2, "(") #)
-  macro = mac2[1]
-  prefix = substr(line, 1, index(line, defundef) - 1)
-  if (D_is_set[macro]) {
-    # Preserve the white space surrounding the "#".
-    print prefix "define", macro P[macro] D[macro]
-    next
-  } else {
-    # Replace #undef with comments.  This is necessary, for example,
-    # in the case of _POSIX_SOURCE, which is predefined and required
-    # on some systems where configure will not decide to define it.
-    if (defundef == "undef") {
-      print "/*", prefix defundef, macro, "*/"
-      next
-    }
-  }
-}
-{ print }
-_ACAWK
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
-fi # test -n "$CONFIG_HEADERS"
-
-
-eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
-shift
-for ac_tag
-do
-  case $ac_tag in
-  :[FHLC]) ac_mode=$ac_tag; continue;;
-  esac
-  case $ac_mode$ac_tag in
-  :[FHL]*:*);;
-  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
-  :[FH]-) ac_tag=-:-;;
-  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
-  esac
-  ac_save_IFS=$IFS
-  IFS=:
-  set x $ac_tag
-  IFS=$ac_save_IFS
-  shift
-  ac_file=$1
-  shift
-
-  case $ac_mode in
-  :L) ac_source=$1;;
-  :[FH])
-    ac_file_inputs=
-    for ac_f
-    do
-      case $ac_f in
-      -) ac_f="$ac_tmp/stdin";;
-      *) # Look for the file first in the build tree, then in the source tree
-	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
-	 # because $ac_f cannot contain `:'.
-	 test -f "$ac_f" ||
-	   case $ac_f in
-	   [\\/$]*) false;;
-	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
-	   esac ||
-	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
-      esac
-      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
-      as_fn_append ac_file_inputs " '$ac_f'"
-    done
-
-    # Let's still pretend it is `configure' which instantiates (i.e., don't
-    # use $as_me), people would be surprised to read:
-    #    /* config.h.  Generated by config.status.  */
-    configure_input='Generated from '`
-	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
-	`' by configure.'
-    if test x"$ac_file" != x-; then
-      configure_input="$ac_file.  $configure_input"
-      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
-$as_echo "$as_me: creating $ac_file" >&6;}
-    fi
-    # Neutralize special characters interpreted by sed in replacement strings.
-    case $configure_input in #(
-    *\&* | *\|* | *\\* )
-       ac_sed_conf_input=`$as_echo "$configure_input" |
-       sed 's/[\\\\&|]/\\\\&/g'`;; #(
-    *) ac_sed_conf_input=$configure_input;;
-    esac
-
-    case $ac_tag in
-    *:-:* | *:-) cat >"$ac_tmp/stdin" \
-      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
-    esac
-    ;;
-  esac
-
-  ac_dir=`$as_dirname -- "$ac_file" ||
-$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-	 X"$ac_file" : 'X\(//\)[^/]' \| \
-	 X"$ac_file" : 'X\(//\)$' \| \
-	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$ac_file" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)[^/].*/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\).*/{
-	    s//\1/
-	    q
-	  }
-	  s/.*/./; q'`
-  as_dir="$ac_dir"; as_fn_mkdir_p
-  ac_builddir=.
-
-case "$ac_dir" in
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-*)
-  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
-  # A ".." for each directory in $ac_dir_suffix.
-  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
-  case $ac_top_builddir_sub in
-  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
-  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
-  esac ;;
-esac
-ac_abs_top_builddir=$ac_pwd
-ac_abs_builddir=$ac_pwd$ac_dir_suffix
-# for backward compatibility:
-ac_top_builddir=$ac_top_build_prefix
-
-case $srcdir in
-  .)  # We are building in place.
-    ac_srcdir=.
-    ac_top_srcdir=$ac_top_builddir_sub
-    ac_abs_top_srcdir=$ac_pwd ;;
-  [\\/]* | ?:[\\/]* )  # Absolute name.
-    ac_srcdir=$srcdir$ac_dir_suffix;
-    ac_top_srcdir=$srcdir
-    ac_abs_top_srcdir=$srcdir ;;
-  *) # Relative name.
-    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
-    ac_top_srcdir=$ac_top_build_prefix$srcdir
-    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
-esac
-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
-
-
-  case $ac_mode in
-  :F)
-  #
-  # CONFIG_FILE
-  #
-
-  case $INSTALL in
-  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
-  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
-  esac
-  ac_MKDIR_P=$MKDIR_P
-  case $MKDIR_P in
-  [\\/$]* | ?:[\\/]* ) ;;
-  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
-  esac
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-# If the template does not know about datarootdir, expand it.
-# FIXME: This hack should be removed a few years after 2.60.
-ac_datarootdir_hack=; ac_datarootdir_seen=
-ac_sed_dataroot='
-/datarootdir/ {
-  p
-  q
-}
-/@datadir@/p
-/@docdir@/p
-/@infodir@/p
-/@localedir@/p
-/@mandir@/p'
-case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
-*datarootdir*) ac_datarootdir_seen=yes;;
-*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
-$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-  ac_datarootdir_hack='
-  s&@datadir@&$datadir&g
-  s&@docdir@&$docdir&g
-  s&@infodir@&$infodir&g
-  s&@localedir@&$localedir&g
-  s&@mandir@&$mandir&g
-  s&\\\${datarootdir}&$datarootdir&g' ;;
-esac
-_ACEOF
-
-# Neutralize VPATH when `$srcdir' = `.'.
-# Shell code in configure.ac might set extrasub.
-# FIXME: do we really want to maintain this feature?
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-ac_sed_extra="$ac_vpsub
-$extrasub
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-:t
-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
-s|@configure_input@|$ac_sed_conf_input|;t t
-s&@top_builddir@&$ac_top_builddir_sub&;t t
-s&@top_build_prefix@&$ac_top_build_prefix&;t t
-s&@srcdir@&$ac_srcdir&;t t
-s&@abs_srcdir@&$ac_abs_srcdir&;t t
-s&@top_srcdir@&$ac_top_srcdir&;t t
-s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
-s&@builddir@&$ac_builddir&;t t
-s&@abs_builddir@&$ac_abs_builddir&;t t
-s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
-s&@INSTALL@&$ac_INSTALL&;t t
-s&@MKDIR_P@&$ac_MKDIR_P&;t t
-$ac_datarootdir_hack
-"
-eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
-  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
-
-test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
-  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
-  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
-      "$ac_tmp/out"`; test -z "$ac_out"; } &&
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
-which seems to be undefined.  Please make sure it is defined" >&5
-$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
-which seems to be undefined.  Please make sure it is defined" >&2;}
-
-  rm -f "$ac_tmp/stdin"
-  case $ac_file in
-  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
-  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
-  esac \
-  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
- ;;
-  :H)
-  #
-  # CONFIG_HEADER
-  #
-  if test x"$ac_file" != x-; then
-    {
-      $as_echo "/* $configure_input  */" \
-      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
-    } >"$ac_tmp/config.h" \
-      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
-    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
-$as_echo "$as_me: $ac_file is unchanged" >&6;}
-    else
-      rm -f "$ac_file"
-      mv "$ac_tmp/config.h" "$ac_file" \
-	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
-    fi
-  else
-    $as_echo "/* $configure_input  */" \
-      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
-      || as_fn_error $? "could not create -" "$LINENO" 5
-  fi
-# Compute "$ac_file"'s index in $config_headers.
-_am_arg="$ac_file"
-_am_stamp_count=1
-for _am_header in $config_headers :; do
-  case $_am_header in
-    $_am_arg | $_am_arg:* )
-      break ;;
-    * )
-      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
-  esac
-done
-echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
-$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-	 X"$_am_arg" : 'X\(//\)[^/]' \| \
-	 X"$_am_arg" : 'X\(//\)$' \| \
-	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$_am_arg" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)[^/].*/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\).*/{
-	    s//\1/
-	    q
-	  }
-	  s/.*/./; q'`/stamp-h$_am_stamp_count
- ;;
-
-  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
-$as_echo "$as_me: executing $ac_file commands" >&6;}
- ;;
-  esac
-
-
-  case $ac_file$ac_mode in
-    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
-  # Autoconf 2.62 quotes --file arguments for eval, but not when files
-  # are listed without --file.  Let's play safe and only enable the eval
-  # if we detect the quoting.
-  case $CONFIG_FILES in
-  *\'*) eval set x "$CONFIG_FILES" ;;
-  *)   set x $CONFIG_FILES ;;
-  esac
-  shift
-  for mf
-  do
-    # Strip MF so we end up with the name of the file.
-    mf=`echo "$mf" | sed -e 's/:.*$//'`
-    # Check whether this is an Automake generated Makefile or not.
-    # We used to match only the files named `Makefile.in', but
-    # some people rename them; so instead we look at the file content.
-    # Grep'ing the first line is not enough: some people post-process
-    # each Makefile.in and add a new line on top of each file to say so.
-    # Grep'ing the whole file is not good either: AIX grep has a line
-    # limit of 2048, but all sed's we know have understand at least 4000.
-    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
-      dirpart=`$as_dirname -- "$mf" ||
-$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-	 X"$mf" : 'X\(//\)[^/]' \| \
-	 X"$mf" : 'X\(//\)$' \| \
-	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$mf" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)[^/].*/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\).*/{
-	    s//\1/
-	    q
-	  }
-	  s/.*/./; q'`
-    else
-      continue
-    fi
-    # Extract the definition of DEPDIR, am__include, and am__quote
-    # from the Makefile without running `make'.
-    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
-    test -z "$DEPDIR" && continue
-    am__include=`sed -n 's/^am__include = //p' < "$mf"`
-    test -z "am__include" && continue
-    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
-    # When using ansi2knr, U may be empty or an underscore; expand it
-    U=`sed -n 's/^U = //p' < "$mf"`
-    # Find all dependency output files, they are included files with
-    # $(DEPDIR) in their names.  We invoke sed twice because it is the
-    # simplest approach to changing $(DEPDIR) to its actual value in the
-    # expansion.
-    for file in `sed -n "
-      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
-	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
-      # Make sure the directory exists.
-      test -f "$dirpart/$file" && continue
-      fdir=`$as_dirname -- "$file" ||
-$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-	 X"$file" : 'X\(//\)[^/]' \| \
-	 X"$file" : 'X\(//\)$' \| \
-	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$file" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)[^/].*/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\/\)$/{
-	    s//\1/
-	    q
-	  }
-	  /^X\(\/\).*/{
-	    s//\1/
-	    q
-	  }
-	  s/.*/./; q'`
-      as_dir=$dirpart/$fdir; as_fn_mkdir_p
-      # echo "creating $dirpart/$file"
-      echo '# dummy' > "$dirpart/$file"
-    done
-  done
-}
- ;;
-    "libtool":C)
-
-    # See if we are running on zsh, and set the options which allow our
-    # commands through without removal of \ escapes.
-    if test -n "${ZSH_VERSION+set}" ; then
-      setopt NO_GLOB_SUBST
-    fi
-
-    cfgfile="${ofile}T"
-    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
-    $RM "$cfgfile"
-
-    cat <<_LT_EOF >> "$cfgfile"
-#! $SHELL
-
-# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
-# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
-#
-#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-#                 Foundation, Inc.
-#   Written by Gordon Matzigkeit, 1996
-#
-#   This file is part of GNU Libtool.
-#
-# GNU Libtool is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of
-# the License, or (at your option) any later version.
-#
-# As a special exception to the GNU General Public License,
-# if you distribute this file as part of a program or library that
-# is built using GNU Libtool, you may include this file under the
-# same distribution terms that you use for the rest of that program.
-#
-# GNU Libtool is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Libtool; see the file COPYING.  If not, a copy
-# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
-# obtained by writing to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-
-# The names of the tagged configurations supported by this script.
-available_tags=""
-
-# ### BEGIN LIBTOOL CONFIG
-
-# Which release of libtool.m4 was used?
-macro_version=$macro_version
-macro_revision=$macro_revision
-
-# Whether or not to build shared libraries.
-build_libtool_libs=$enable_shared
-
-# Whether or not to build static libraries.
-build_old_libs=$enable_static
-
-# What type of objects to build.
-pic_mode=$pic_mode
-
-# Whether or not to optimize for fast installation.
-fast_install=$enable_fast_install
-
-# Shell to use when invoking shell scripts.
-SHELL=$lt_SHELL
-
-# An echo program that protects backslashes.
-ECHO=$lt_ECHO
-
-# The PATH separator for the build system.
-PATH_SEPARATOR=$lt_PATH_SEPARATOR
-
-# The host system.
-host_alias=$host_alias
-host=$host
-host_os=$host_os
-
-# The build system.
-build_alias=$build_alias
-build=$build
-build_os=$build_os
-
-# A sed program that does not truncate output.
-SED=$lt_SED
-
-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
-Xsed="\$SED -e 1s/^X//"
-
-# A grep program that handles long lines.
-GREP=$lt_GREP
-
-# An ERE matcher.
-EGREP=$lt_EGREP
-
-# A literal string matcher.
-FGREP=$lt_FGREP
-
-# A BSD- or MS-compatible name lister.
-NM=$lt_NM
-
-# Whether we need soft or hard links.
-LN_S=$lt_LN_S
-
-# What is the maximum length of a command?
-max_cmd_len=$max_cmd_len
-
-# Object file suffix (normally "o").
-objext=$ac_objext
-
-# Executable file suffix (normally "").
-exeext=$exeext
-
-# whether the shell understands "unset".
-lt_unset=$lt_unset
-
-# turn spaces into newlines.
-SP2NL=$lt_lt_SP2NL
-
-# turn newlines into spaces.
-NL2SP=$lt_lt_NL2SP
-
-# convert \$build file names to \$host format.
-to_host_file_cmd=$lt_cv_to_host_file_cmd
-
-# convert \$build files to toolchain format.
-to_tool_file_cmd=$lt_cv_to_tool_file_cmd
-
-# An object symbol dumper.
-OBJDUMP=$lt_OBJDUMP
-
-# Method to check whether dependent libraries are shared objects.
-deplibs_check_method=$lt_deplibs_check_method
-
-# Command to use when deplibs_check_method = "file_magic".
-file_magic_cmd=$lt_file_magic_cmd
-
-# How to find potential files when deplibs_check_method = "file_magic".
-file_magic_glob=$lt_file_magic_glob
-
-# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
-want_nocaseglob=$lt_want_nocaseglob
-
-# DLL creation program.
-DLLTOOL=$lt_DLLTOOL
-
-# Command to associate shared and link libraries.
-sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
-
-# The archiver.
-AR=$lt_AR
-
-# Flags to create an archive.
-AR_FLAGS=$lt_AR_FLAGS
-
-# How to feed a file listing to the archiver.
-archiver_list_spec=$lt_archiver_list_spec
-
-# A symbol stripping program.
-STRIP=$lt_STRIP
-
-# Commands used to install an old-style archive.
-RANLIB=$lt_RANLIB
-old_postinstall_cmds=$lt_old_postinstall_cmds
-old_postuninstall_cmds=$lt_old_postuninstall_cmds
-
-# Whether to use a lock for old archive extraction.
-lock_old_archive_extraction=$lock_old_archive_extraction
-
-# A C compiler.
-LTCC=$lt_CC
-
-# LTCC compiler flags.
-LTCFLAGS=$lt_CFLAGS
-
-# Take the output of nm and produce a listing of raw symbols and C names.
-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
-
-# Transform the output of nm in a proper C declaration.
-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
-
-# Transform the output of nm in a C name address pair.
-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
-
-# Transform the output of nm in a C name address pair when lib prefix is needed.
-global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
-
-# Specify filename containing input files for \$NM.
-nm_file_list_spec=$lt_nm_file_list_spec
-
-# The root where to search for dependent libraries,and in which our libraries should be installed.
-lt_sysroot=$lt_sysroot
-
-# The name of the directory that contains temporary libtool files.
-objdir=$objdir
-
-# Used to examine libraries when file_magic_cmd begins with "file".
-MAGIC_CMD=$MAGIC_CMD
-
-# Must we lock files when doing compilation?
-need_locks=$lt_need_locks
-
-# Manifest tool.
-MANIFEST_TOOL=$lt_MANIFEST_TOOL
-
-# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
-DSYMUTIL=$lt_DSYMUTIL
-
-# Tool to change global to local symbols on Mac OS X.
-NMEDIT=$lt_NMEDIT
-
-# Tool to manipulate fat objects and archives on Mac OS X.
-LIPO=$lt_LIPO
-
-# ldd/readelf like tool for Mach-O binaries on Mac OS X.
-OTOOL=$lt_OTOOL
-
-# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
-OTOOL64=$lt_OTOOL64
-
-# Old archive suffix (normally "a").
-libext=$libext
-
-# Shared library suffix (normally ".so").
-shrext_cmds=$lt_shrext_cmds
-
-# The commands to extract the exported symbol list from a shared archive.
-extract_expsyms_cmds=$lt_extract_expsyms_cmds
-
-# Variables whose values should be saved in libtool wrapper scripts and
-# restored at link time.
-variables_saved_for_relink=$lt_variables_saved_for_relink
-
-# Do we need the "lib" prefix for modules?
-need_lib_prefix=$need_lib_prefix
-
-# Do we need a version for libraries?
-need_version=$need_version
-
-# Library versioning type.
-version_type=$version_type
-
-# Shared library runtime path variable.
-runpath_var=$runpath_var
-
-# Shared library path variable.
-shlibpath_var=$shlibpath_var
-
-# Is shlibpath searched before the hard-coded library search path?
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
-
-# Format of library name prefix.
-libname_spec=$lt_libname_spec
-
-# List of archive names.  First name is the real one, the rest are links.
-# The last name is the one that the linker finds with -lNAME
-library_names_spec=$lt_library_names_spec
-
-# The coded name of the library, if different from the real name.
-soname_spec=$lt_soname_spec
-
-# Permission mode override for installation of shared libraries.
-install_override_mode=$lt_install_override_mode
-
-# Command to use after installation of a shared archive.
-postinstall_cmds=$lt_postinstall_cmds
-
-# Command to use after uninstallation of a shared archive.
-postuninstall_cmds=$lt_postuninstall_cmds
-
-# Commands used to finish a libtool library installation in a directory.
-finish_cmds=$lt_finish_cmds
-
-# As "finish_cmds", except a single script fragment to be evaled but
-# not shown.
-finish_eval=$lt_finish_eval
-
-# Whether we should hardcode library paths into libraries.
-hardcode_into_libs=$hardcode_into_libs
-
-# Compile-time system search path for libraries.
-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
-
-# Run-time system search path for libraries.
-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
-
-# Whether dlopen is supported.
-dlopen_support=$enable_dlopen
-
-# Whether dlopen of programs is supported.
-dlopen_self=$enable_dlopen_self
-
-# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=$enable_dlopen_self_static
-
-# Commands to strip libraries.
-old_striplib=$lt_old_striplib
-striplib=$lt_striplib
-
-
-# The linker used to build libraries.
-LD=$lt_LD
-
-# How to create reloadable object files.
-reload_flag=$lt_reload_flag
-reload_cmds=$lt_reload_cmds
-
-# Commands used to build an old-style archive.
-old_archive_cmds=$lt_old_archive_cmds
-
-# A language specific compiler.
-CC=$lt_compiler
-
-# Is the compiler the GNU compiler?
-with_gcc=$GCC
-
-# Compiler flag to turn off builtin functions.
-no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
-
-# Additional compiler flags for building library objects.
-pic_flag=$lt_lt_prog_compiler_pic
-
-# How to pass a linker flag through the compiler.
-wl=$lt_lt_prog_compiler_wl
-
-# Compiler flag to prevent dynamic linking.
-link_static_flag=$lt_lt_prog_compiler_static
-
-# Does compiler simultaneously support -c and -o options?
-compiler_c_o=$lt_lt_cv_prog_compiler_c_o
-
-# Whether or not to add -lc for building shared libraries.
-build_libtool_need_lc=$archive_cmds_need_lc
-
-# Whether or not to disallow shared libs when runtime libs are static.
-allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
-
-# Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
-
-# Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec=$lt_whole_archive_flag_spec
-
-# Whether the compiler copes with passing no objects directly.
-compiler_needs_object=$lt_compiler_needs_object
-
-# Create an old-style archive from a shared archive.
-old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
-
-# Create a temporary old-style archive to link instead of a shared archive.
-old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
-
-# Commands used to build a shared archive.
-archive_cmds=$lt_archive_cmds
-archive_expsym_cmds=$lt_archive_expsym_cmds
-
-# Commands used to build a loadable module if different from building
-# a shared archive.
-module_cmds=$lt_module_cmds
-module_expsym_cmds=$lt_module_expsym_cmds
-
-# Whether we are building with GNU ld or not.
-with_gnu_ld=$lt_with_gnu_ld
-
-# Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag=$lt_allow_undefined_flag
-
-# Flag that enforces no undefined symbols.
-no_undefined_flag=$lt_no_undefined_flag
-
-# Flag to hardcode \$libdir into a binary during linking.
-# This must work even if \$libdir does not exist
-hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
-
-# Whether we need a single "-rpath" flag with a separated argument.
-hardcode_libdir_separator=$lt_hardcode_libdir_separator
-
-# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
-# DIR into the resulting binary.
-hardcode_direct=$hardcode_direct
-
-# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
-# DIR into the resulting binary and the resulting library dependency is
-# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
-# library is relocated.
-hardcode_direct_absolute=$hardcode_direct_absolute
-
-# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
-# into the resulting binary.
-hardcode_minus_L=$hardcode_minus_L
-
-# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
-# into the resulting binary.
-hardcode_shlibpath_var=$hardcode_shlibpath_var
-
-# Set to "yes" if building a shared library automatically hardcodes DIR
-# into the library and all subsequent libraries and executables linked
-# against it.
-hardcode_automatic=$hardcode_automatic
-
-# Set to yes if linker adds runtime paths of dependent libraries
-# to runtime path list.
-inherit_rpath=$inherit_rpath
-
-# Whether libtool must link a program against all its dependency libraries.
-link_all_deplibs=$link_all_deplibs
-
-# Set to "yes" if exported symbols are required.
-always_export_symbols=$always_export_symbols
-
-# The commands to list exported symbols.
-export_symbols_cmds=$lt_export_symbols_cmds
-
-# Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms=$lt_exclude_expsyms
-
-# Symbols that must always be exported.
-include_expsyms=$lt_include_expsyms
-
-# Commands necessary for linking programs (against libraries) with templates.
-prelink_cmds=$lt_prelink_cmds
-
-# Commands necessary for finishing linking programs.
-postlink_cmds=$lt_postlink_cmds
-
-# Specify filename containing input files.
-file_list_spec=$lt_file_list_spec
-
-# How to hardcode a shared library path into an executable.
-hardcode_action=$hardcode_action
-
-# ### END LIBTOOL CONFIG
-
-_LT_EOF
-
-  case $host_os in
-  aix3*)
-    cat <<\_LT_EOF >> "$cfgfile"
-# AIX sometimes has problems with the GCC collect2 program.  For some
-# reason, if we set the COLLECT_NAMES environment variable, the problems
-# vanish in a puff of smoke.
-if test "X${COLLECT_NAMES+set}" != Xset; then
-  COLLECT_NAMES=
-  export COLLECT_NAMES
-fi
-_LT_EOF
-    ;;
-  esac
-
-
-ltmain="$ac_aux_dir/ltmain.sh"
-
-
-  # We use sed instead of cat because bash on DJGPP gets confused if
-  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
-  # text mode, it properly converts lines to CR/LF.  This bash problem
-  # is reportedly fixed, but why not run on old versions too?
-  sed '$q' "$ltmain" >> "$cfgfile" \
-     || (rm -f "$cfgfile"; exit 1)
-
-  if test x"$xsi_shell" = xyes; then
-  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
-func_dirname ()\
-{\
-\    case ${1} in\
-\      */*) func_dirname_result="${1%/*}${2}" ;;\
-\      *  ) func_dirname_result="${3}" ;;\
-\    esac\
-} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-
-
-  sed -e '/^func_basename ()$/,/^} # func_basename /c\
-func_basename ()\
-{\
-\    func_basename_result="${1##*/}"\
-} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-
-
-  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
-func_dirname_and_basename ()\
-{\
-\    case ${1} in\
-\      */*) func_dirname_result="${1%/*}${2}" ;;\
-\      *  ) func_dirname_result="${3}" ;;\
-\    esac\
-\    func_basename_result="${1##*/}"\
-} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-
-
-  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
-func_stripname ()\
-{\
-\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
-\    # positional parameters, so assign one to ordinary parameter first.\
-\    func_stripname_result=${3}\
-\    func_stripname_result=${func_stripname_result#"${1}"}\
-\    func_stripname_result=${func_stripname_result%"${2}"}\
-} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-
-
-  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
-func_split_long_opt ()\
-{\
-\    func_split_long_opt_name=${1%%=*}\
-\    func_split_long_opt_arg=${1#*=}\
-} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-
-
-  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
-func_split_short_opt ()\
-{\
-\    func_split_short_opt_arg=${1#??}\
-\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
-} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-
-
-  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
-func_lo2o ()\
-{\
-\    case ${1} in\
-\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
-\      *)    func_lo2o_result=${1} ;;\
-\    esac\
-} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-
-
-  sed -e '/^func_xform ()$/,/^} # func_xform /c\
-func_xform ()\
-{\
-    func_xform_result=${1%.*}.lo\
-} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-
-
-  sed -e '/^func_arith ()$/,/^} # func_arith /c\
-func_arith ()\
-{\
-    func_arith_result=$(( $* ))\
-} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-
-
-  sed -e '/^func_len ()$/,/^} # func_len /c\
-func_len ()\
-{\
-    func_len_result=${#1}\
-} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-
-fi
-
-if test x"$lt_shell_append" = xyes; then
-  sed -e '/^func_append ()$/,/^} # func_append /c\
-func_append ()\
-{\
-    eval "${1}+=\\${2}"\
-} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-
-
-  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
-func_append_quoted ()\
-{\
-\    func_quote_for_eval "${2}"\
-\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
-} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-
-
-  # Save a `func_append' function call where possible by direct use of '+='
-  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
-    && mv -f "$cfgfile.tmp" "$cfgfile" \
-      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-  test 0 -eq $? || _lt_function_replace_fail=:
-else
-  # Save a `func_append' function call even when '+=' is not available
-  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
-    && mv -f "$cfgfile.tmp" "$cfgfile" \
-      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-  test 0 -eq $? || _lt_function_replace_fail=:
-fi
-
-if test x"$_lt_function_replace_fail" = x":"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
-$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
-fi
-
-
-   mv -f "$cfgfile" "$ofile" ||
-    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
-  chmod +x "$ofile"
-
- ;;
-
-  esac
-done # for ac_tag
-
-
-as_fn_exit 0
-_ACEOF
-ac_clean_files=$ac_clean_files_save
-
-test $ac_write_fail = 0 ||
-  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
-
-
-# configure is writing to config.log, and then calls config.status.
-# config.status does its own redirection, appending to config.log.
-# Unfortunately, on DOS this fails, as config.log is still kept open
-# by configure, so config.status won't be able to write to it; its
-# output is simply discarded.  So we exec the FD to /dev/null,
-# effectively closing config.log, so it can be properly (re)opened and
-# appended to by config.status.  When coming back to configure, we
-# need to make the FD available again.
-if test "$no_create" != yes; then
-  ac_cs_success=:
-  ac_config_status_args=
-  test "$silent" = yes &&
-    ac_config_status_args="$ac_config_status_args --quiet"
-  exec 5>/dev/null
-  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
-  exec 5>>config.log
-  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
-  # would make configure fail if this is the last instruction.
-  $ac_cs_success || as_fn_exit 1
-fi
-if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
-$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
-fi
-
diff --git a/libqfits/configure.ac b/libqfits/configure.ac
deleted file mode 100644
index 232bd84..0000000
--- a/libqfits/configure.ac
+++ /dev/null
@@ -1,80 +0,0 @@
-#                                               -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
-
-AC_PREREQ(2.59)
-AC_INIT(qfits, 6.2.0, yjung at eso.org)
-
-AC_CONFIG_SRCDIR([Makefile.am])
-AC_CONFIG_HEADER([config.h])
-AC_CONFIG_AUX_DIR([admin])
-AM_INIT_AUTOMAKE
-
-# Checks for programs.
-AC_PROG_CC
-
-# AC_PROG_RANLIB for static libraries without Libtool
-# AC_PROG_RANLIB
-
-# AC_PROG_LIBTOOL for static and shared libraries with Libtool
-AC_PROG_LIBTOOL
-AC_ENABLE_STATIC([yes])
-AC_ENABLE_SHARED([yes])
-AC_SUBST(LIBTOOL_DEPS)
-
-# Doxygen and LAtex    
-ESO_CHECK_DOCTOOLS
-
-# Libtool versioning. First release 0.0.0
-LT_CURRENT=0
-LT_REVISION=0
-LT_AGE=0
-AC_SUBST([LT_CURRENT])
-AC_SUBST([LT_REVISION])
-AC_SUBST([LT_AGE]) 
-
-# Checks for libraries.
-# FIXME: Replace `main' with a function in `-lm':
-###AC_CHECK_LIB([m], [main])
-# FIXME: Replace `main' with a function in `-lqfits':
-# In comments next line created by autscan, we do not want to 
-# check qfits lib, we want to create it.
-#AC_CHECK_LIB([qfits], [main])
-
-# Defined in the m4macros/qfits_memory.m4
-QFITS_CHECK_MEMORY
-
-# Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
-
-# Checks for typedefs, structures, and compiler characteristics.
-AC_C_CONST
-AC_TYPE_SIZE_T
-AC_HEADER_TIME
-AC_STRUCT_TM
-
-# Checks for library functions.
-AC_FUNC_MALLOC
-AC_FUNC_MMAP
-AC_FUNC_REALLOC
-AC_FUNC_STAT
-AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([atexit getpagesize gettimeofday memchr memmove memset mkdir munmap regcomp rmdir strchr strdup strrchr strstr uname])
-
-# CG. Check for the BIG_ENDIAN (needed by qfits sources)
-AC_C_BIGENDIAN
-
-case $host_cpu in
-i*86)
-    CPU_X86="`echo $host_cpu | cut -c 2-`"
-    AC_DEFINE_UNQUOTED([CPU_X86], $CPU_X86, [x86 CPU type])
-    ;;
-esac
-
-QFITS_SET_PATHS
-
-AC_CONFIG_FILES([Makefile
-                Doxyfile
-                src/Makefile
-                test/Makefile])
-AC_OUTPUT
diff --git a/libqfits/html/annotated.html b/libqfits/html/annotated.html
deleted file mode 100644
index 263302c..0000000
--- a/libqfits/html/annotated.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Class List</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li class="current"><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Class List</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="textblock">Here are the classes, structs, unions and interfaces with brief descriptions:</div><div class="directory">
-<table class="directory">
-<tr id="row_0_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structqfits__col.html" target="_self">qfits_col</a></td><td class="desc">Column object</td></tr>
-<tr id="row_1_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structqfits__header.html" target="_self">qfits_header</a></td><td class="desc">FITS header object</td></tr>
-<tr id="row_2_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structqfits__table.html" target="_self">qfits_table</a></td><td class="desc">Table object</td></tr>
-<tr id="row_3_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structqfitsdumper.html" target="_self">qfitsdumper</a></td><td class="desc">Qfits dumper control object</td></tr>
-<tr id="row_4_" class="even"><td class="entry"><img src="ftv2lastnode.png" alt="\" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structqfitsloader.html" target="_self">qfitsloader</a></td><td class="desc">Qfits loader control object</td></tr>
-</table>
-</div><!-- directory -->
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/bc_s.png b/libqfits/html/bc_s.png
deleted file mode 100644
index 25e3beb..0000000
Binary files a/libqfits/html/bc_s.png and /dev/null differ
diff --git a/libqfits/html/bdwn.png b/libqfits/html/bdwn.png
deleted file mode 100644
index 940a0b9..0000000
Binary files a/libqfits/html/bdwn.png and /dev/null differ
diff --git a/libqfits/html/classes.html b/libqfits/html/classes.html
deleted file mode 100644
index 4311c9b..0000000
--- a/libqfits/html/classes.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Class Index</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li class="current"><a href="classes.html"><span>Class Index</span></a></li>
-      <li><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Class Index</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="qindex"><a class="qindex" href="#letter_Q">Q</a></div>
-<table style="margin: 10px; white-space: nowrap;" align="center" width="95%" border="0" cellspacing="0" cellpadding="0">
-<tr><td rowspan="2" valign="bottom"><a name="letter_Q"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  Q  </div></td></tr></table>
-</td><td valign="top"><a class="el" href="structqfits__header.html">qfits_header</a>   </td><td valign="top"><a class="el" href="structqfitsdumper.html">qfitsdumper</a>   </td><td></td></tr>
-<tr><td valign="top"><a class="el" href="structqfits__table.html">qfits_table</a>   </td><td valign="top"><a class="el" href="structqfitsloader.html">qfitsloader</a>   </td><td></td></tr>
-<tr><td valign="top"><a class="el" href="structqfits__col.html">qfits_col</a>   </td><td></td><td></td><td></td></tr>
-<tr><td></td><td></td><td></td><td></td></tr>
-</table>
-<div class="qindex"><a class="qindex" href="#letter_Q">Q</a></div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/closed.png b/libqfits/html/closed.png
deleted file mode 100644
index 98cc2c9..0000000
Binary files a/libqfits/html/closed.png and /dev/null differ
diff --git a/libqfits/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html b/libqfits/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html
deleted file mode 100644
index 64869ee..0000000
--- a/libqfits/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: src/ Directory Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">src Directory Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="files"></a>
-Files</h2></td></tr>
-<tr class="memitem:md5_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>md5.c</b></td></tr>
-<tr class="memitem:md5_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>md5.h</b> <a href="md5_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__byteswap_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_byteswap.c</b></td></tr>
-<tr class="memitem:qfits__byteswap_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_byteswap.h</b> <a href="qfits__byteswap_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__cache_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_cache.c</b></td></tr>
-<tr class="memitem:qfits__cache_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_cache.h</b> <a href="qfits__cache_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__card_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_card.c</b></td></tr>
-<tr class="memitem:qfits__card_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_card.h</b> <a href="qfits__card_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__error_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_error.c</b></td></tr>
-<tr class="memitem:qfits__error_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_error.h</b> <a href="qfits__error_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__filename_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_filename.c</b></td></tr>
-<tr class="memitem:qfits__filename_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_filename.h</b> <a href="qfits__filename_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__float_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_float.c</b></td></tr>
-<tr class="memitem:qfits__float_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_float.h</b> <a href="qfits__float_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__header_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_header.c</b></td></tr>
-<tr class="memitem:qfits__header_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_header.h</b> <a href="qfits__header_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__image_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_image.c</b></td></tr>
-<tr class="memitem:qfits__image_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_image.h</b> <a href="qfits__image_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__md5_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_md5.c</b></td></tr>
-<tr class="memitem:qfits__md5_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_md5.h</b> <a href="qfits__md5_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__memory_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_memory.c</b></td></tr>
-<tr class="memitem:qfits__memory_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_memory.h</b> <a href="qfits__memory_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__rw_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_rw.c</b></td></tr>
-<tr class="memitem:qfits__rw_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_rw.h</b> <a href="qfits__rw_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__std_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_std.h</b> <a href="qfits__std_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__table_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_table.c</b></td></tr>
-<tr class="memitem:qfits__table_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_table.h</b> <a href="qfits__table_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__time_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_time.c</b></td></tr>
-<tr class="memitem:qfits__time_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_time.h</b> <a href="qfits__time_8h_source.html">[code]</a></td></tr>
-<tr class="memitem:qfits__tools_8c"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_tools.c</b></td></tr>
-<tr class="memitem:qfits__tools_8h"><td class="memItemLeft" align="right" valign="top">file  </td><td class="memItemRight" valign="bottom"><b>qfits_tools.h</b> <a href="qfits__tools_8h_source.html">[code]</a></td></tr>
-</table>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/doxygen.css b/libqfits/html/doxygen.css
deleted file mode 100644
index 8589450..0000000
--- a/libqfits/html/doxygen.css
+++ /dev/null
@@ -1,1156 +0,0 @@
-/* The standard CSS for doxygen */
-
-body, table, div, p, dl {
-	font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif;
-	font-size: 13px;
-	line-height: 1.3;
-}
-
-/* @group Heading Levels */
-
-h1 {
-	font-size: 150%;
-}
-
-.title {
-	font-size: 150%;
-	font-weight: bold;
-	margin: 10px 2px;
-}
-
-h2 {
-	font-size: 120%;
-}
-
-h3 {
-	font-size: 100%;
-}
-
-h1, h2, h3, h4, h5, h6 {
-	-webkit-transition: text-shadow 0.5s linear;
-	-moz-transition: text-shadow 0.5s linear;
-	-ms-transition: text-shadow 0.5s linear;
-	-o-transition: text-shadow 0.5s linear;
-	transition: text-shadow 0.5s linear;
-	margin-right: 15px;
-}
-
-h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow {
-	text-shadow: 0 0 15px cyan;
-}
-
-dt {
-	font-weight: bold;
-}
-
-div.multicol {
-	-moz-column-gap: 1em;
-	-webkit-column-gap: 1em;
-	-moz-column-count: 3;
-	-webkit-column-count: 3;
-}
-
-p.startli, p.startdd, p.starttd {
-	margin-top: 2px;
-}
-
-p.endli {
-	margin-bottom: 0px;
-}
-
-p.enddd {
-	margin-bottom: 4px;
-}
-
-p.endtd {
-	margin-bottom: 2px;
-}
-
-/* @end */
-
-caption {
-	font-weight: bold;
-}
-
-span.legend {
-        font-size: 70%;
-        text-align: center;
-}
-
-h3.version {
-        font-size: 90%;
-        text-align: center;
-}
-
-div.qindex, div.navtab{
-	background-color: #EBEFF6;
-	border: 1px solid #A3B4D7;
-	text-align: center;
-}
-
-div.qindex, div.navpath {
-	width: 100%;
-	line-height: 140%;
-}
-
-div.navtab {
-	margin-right: 15px;
-}
-
-/* @group Link Styling */
-
-a {
-	color: #3D578C;
-	font-weight: normal;
-	text-decoration: none;
-}
-
-.contents a:visited {
-	color: #4665A2;
-}
-
-a:hover {
-	text-decoration: underline;
-}
-
-a.qindex {
-	font-weight: bold;
-}
-
-a.qindexHL {
-	font-weight: bold;
-	background-color: #9CAFD4;
-	color: #ffffff;
-	border: 1px double #869DCA;
-}
-
-.contents a.qindexHL:visited {
-        color: #ffffff;
-}
-
-a.el {
-	font-weight: bold;
-}
-
-a.elRef {
-}
-
-a.code, a.code:visited {
-	color: #4665A2; 
-}
-
-a.codeRef, a.codeRef:visited {
-	color: #4665A2; 
-}
-
-/* @end */
-
-dl.el {
-	margin-left: -1cm;
-}
-
-pre.fragment {
-        border: 1px solid #C4CFE5;
-        background-color: #FBFCFD;
-        padding: 4px 6px;
-        margin: 4px 8px 4px 2px;
-        overflow: auto;
-        word-wrap: break-word;
-        font-size:  9pt;
-        line-height: 125%;
-        font-family: monospace, fixed;
-        font-size: 105%;
-}
-
-div.fragment {
-        padding: 4px;
-        margin: 4px;
-	background-color: #FBFCFD;
-	border: 1px solid #C4CFE5;
-}
-
-div.line {
-	font-family: monospace, fixed;
-        font-size: 13px;
-	min-height: 13px;
-	line-height: 1.0;
-	text-wrap: unrestricted;
-	white-space: -moz-pre-wrap; /* Moz */
-	white-space: -pre-wrap;     /* Opera 4-6 */
-	white-space: -o-pre-wrap;   /* Opera 7 */
-	white-space: pre-wrap;      /* CSS3  */
-	word-wrap: break-word;      /* IE 5.5+ */
-	text-indent: -53px;
-	padding-left: 53px;
-	padding-bottom: 0px;
-	margin: 0px;
-	-webkit-transition-property: background-color, box-shadow;
-	-webkit-transition-duration: 0.5s;
-	-moz-transition-property: background-color, box-shadow;
-	-moz-transition-duration: 0.5s;
-	-ms-transition-property: background-color, box-shadow;
-	-ms-transition-duration: 0.5s;
-	-o-transition-property: background-color, box-shadow;
-	-o-transition-duration: 0.5s;
-	transition-property: background-color, box-shadow;
-	transition-duration: 0.5s;
-}
-
-div.line.glow {
-	background-color: cyan;
-	box-shadow: 0 0 10px cyan;
-}
-
-
-span.lineno {
-	padding-right: 4px;
-	text-align: right;
-	border-right: 2px solid #0F0;
-	background-color: #E8E8E8;
-        white-space: pre;
-}
-span.lineno a {
-	background-color: #D8D8D8;
-}
-
-span.lineno a:hover {
-	background-color: #C8C8C8;
-}
-
-div.ah {
-	background-color: black;
-	font-weight: bold;
-	color: #ffffff;
-	margin-bottom: 3px;
-	margin-top: 3px;
-	padding: 0.2em;
-	border: solid thin #333;
-	border-radius: 0.5em;
-	-webkit-border-radius: .5em;
-	-moz-border-radius: .5em;
-	box-shadow: 2px 2px 3px #999;
-	-webkit-box-shadow: 2px 2px 3px #999;
-	-moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px;
-	background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444));
-	background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000);
-}
-
-div.groupHeader {
-	margin-left: 16px;
-	margin-top: 12px;
-	font-weight: bold;
-}
-
-div.groupText {
-	margin-left: 16px;
-	font-style: italic;
-}
-
-body {
-	background-color: white;
-	color: black;
-        margin: 0;
-}
-
-div.contents {
-	margin-top: 10px;
-	margin-left: 12px;
-	margin-right: 8px;
-}
-
-td.indexkey {
-	background-color: #EBEFF6;
-	font-weight: bold;
-	border: 1px solid #C4CFE5;
-	margin: 2px 0px 2px 0;
-	padding: 2px 10px;
-        white-space: nowrap;
-        vertical-align: top;
-}
-
-td.indexvalue {
-	background-color: #EBEFF6;
-	border: 1px solid #C4CFE5;
-	padding: 2px 10px;
-	margin: 2px 0px;
-}
-
-tr.memlist {
-	background-color: #EEF1F7;
-}
-
-p.formulaDsp {
-	text-align: center;
-}
-
-img.formulaDsp {
-	
-}
-
-img.formulaInl {
-	vertical-align: middle;
-}
-
-div.center {
-	text-align: center;
-        margin-top: 0px;
-        margin-bottom: 0px;
-        padding: 0px;
-}
-
-div.center img {
-	border: 0px;
-}
-
-address.footer {
-	text-align: right;
-	padding-right: 12px;
-}
-
-img.footer {
-	border: 0px;
-	vertical-align: middle;
-}
-
-/* @group Code Colorization */
-
-span.keyword {
-	color: #008000
-}
-
-span.keywordtype {
-	color: #604020
-}
-
-span.keywordflow {
-	color: #e08000
-}
-
-span.comment {
-	color: #800000
-}
-
-span.preprocessor {
-	color: #806020
-}
-
-span.stringliteral {
-	color: #002080
-}
-
-span.charliteral {
-	color: #008080
-}
-
-span.vhdldigit { 
-	color: #ff00ff 
-}
-
-span.vhdlchar { 
-	color: #000000 
-}
-
-span.vhdlkeyword { 
-	color: #700070 
-}
-
-span.vhdllogic { 
-	color: #ff0000 
-}
-
-blockquote {
-        background-color: #F7F8FB;
-        border-left: 2px solid #9CAFD4;
-        margin: 0 24px 0 4px;
-        padding: 0 12px 0 16px;
-}
-
-/* @end */
-
-/*
-.search {
-	color: #003399;
-	font-weight: bold;
-}
-
-form.search {
-	margin-bottom: 0px;
-	margin-top: 0px;
-}
-
-input.search {
-	font-size: 75%;
-	color: #000080;
-	font-weight: normal;
-	background-color: #e8eef2;
-}
-*/
-
-td.tiny {
-	font-size: 75%;
-}
-
-.dirtab {
-	padding: 4px;
-	border-collapse: collapse;
-	border: 1px solid #A3B4D7;
-}
-
-th.dirtab {
-	background: #EBEFF6;
-	font-weight: bold;
-}
-
-hr {
-	height: 0px;
-	border: none;
-	border-top: 1px solid #4A6AAA;
-}
-
-hr.footer {
-	height: 1px;
-}
-
-/* @group Member Descriptions */
-
-table.memberdecls {
-	border-spacing: 0px;
-	padding: 0px;
-}
-
-.memberdecls td {
-	-webkit-transition-property: background-color, box-shadow;
-	-webkit-transition-duration: 0.5s;
-	-moz-transition-property: background-color, box-shadow;
-	-moz-transition-duration: 0.5s;
-	-ms-transition-property: background-color, box-shadow;
-	-ms-transition-duration: 0.5s;
-	-o-transition-property: background-color, box-shadow;
-	-o-transition-duration: 0.5s;
-	transition-property: background-color, box-shadow;
-	transition-duration: 0.5s;
-}
-
-.memberdecls td.glow {
-	background-color: cyan;
-	box-shadow: 0 0 15px cyan;
-}
-
-.mdescLeft, .mdescRight,
-.memItemLeft, .memItemRight,
-.memTemplItemLeft, .memTemplItemRight, .memTemplParams {
-	background-color: #F9FAFC;
-	border: none;
-	margin: 4px;
-	padding: 1px 0 0 8px;
-}
-
-.mdescLeft, .mdescRight {
-	padding: 0px 8px 4px 8px;
-	color: #555;
-}
-
-.memItemLeft, .memItemRight, .memTemplParams {
-	border-top: 1px solid #C4CFE5;
-}
-
-.memItemLeft, .memTemplItemLeft {
-        white-space: nowrap;
-}
-
-.memItemRight {
-	width: 100%;
-}
-
-.memTemplParams {
-	color: #4665A2;
-        white-space: nowrap;
-}
-
-/* @end */
-
-/* @group Member Details */
-
-/* Styles for detailed member documentation */
-
-.memtemplate {
-	font-size: 80%;
-	color: #4665A2;
-	font-weight: normal;
-	margin-left: 9px;
-}
-
-.memnav {
-	background-color: #EBEFF6;
-	border: 1px solid #A3B4D7;
-	text-align: center;
-	margin: 2px;
-	margin-right: 15px;
-	padding: 2px;
-}
-
-.mempage {
-	width: 100%;
-}
-
-.memitem {
-	padding: 0;
-	margin-bottom: 10px;
-	margin-right: 5px;
-        -webkit-transition: box-shadow 0.5s linear;
-        -moz-transition: box-shadow 0.5s linear;
-        -ms-transition: box-shadow 0.5s linear;
-        -o-transition: box-shadow 0.5s linear;
-        transition: box-shadow 0.5s linear;
-        display: table !important;
-        width: 100%;
-}
-
-.memitem.glow {
-         box-shadow: 0 0 15px cyan;
-}
-
-.memname {
-        font-weight: bold;
-        margin-left: 6px;
-}
-
-.memname td {
-	vertical-align: bottom;
-}
-
-.memproto, dl.reflist dt {
-        border-top: 1px solid #A8B8D9;
-        border-left: 1px solid #A8B8D9;
-        border-right: 1px solid #A8B8D9;
-        padding: 6px 0px 6px 0px;
-        color: #253555;
-        font-weight: bold;
-        text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
-        background-image:url('nav_f.png');
-        background-repeat:repeat-x;
-        background-color: #E2E8F2;
-        /* opera specific markup */
-        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
-        border-top-right-radius: 4px;
-        border-top-left-radius: 4px;
-        /* firefox specific markup */
-        -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;
-        -moz-border-radius-topright: 4px;
-        -moz-border-radius-topleft: 4px;
-        /* webkit specific markup */
-        -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
-        -webkit-border-top-right-radius: 4px;
-        -webkit-border-top-left-radius: 4px;
-
-}
-
-.memdoc, dl.reflist dd {
-        border-bottom: 1px solid #A8B8D9;      
-        border-left: 1px solid #A8B8D9;      
-        border-right: 1px solid #A8B8D9; 
-        padding: 6px 10px 2px 10px;
-        background-color: #FBFCFD;
-        border-top-width: 0;
-        background-image:url('nav_g.png');
-        background-repeat:repeat-x;
-        background-color: #FFFFFF;
-        /* opera specific markup */
-        border-bottom-left-radius: 4px;
-        border-bottom-right-radius: 4px;
-        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
-        /* firefox specific markup */
-        -moz-border-radius-bottomleft: 4px;
-        -moz-border-radius-bottomright: 4px;
-        -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;
-        /* webkit specific markup */
-        -webkit-border-bottom-left-radius: 4px;
-        -webkit-border-bottom-right-radius: 4px;
-        -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
-}
-
-dl.reflist dt {
-        padding: 5px;
-}
-
-dl.reflist dd {
-        margin: 0px 0px 10px 0px;
-        padding: 5px;
-}
-
-.paramkey {
-	text-align: right;
-}
-
-.paramtype {
-	white-space: nowrap;
-}
-
-.paramname {
-	color: #602020;
-	white-space: nowrap;
-}
-.paramname em {
-	font-style: normal;
-}
-.paramname code {
-        line-height: 14px;
-}
-
-.params, .retval, .exception, .tparams {
-        margin-left: 0px;
-        padding-left: 0px;
-}       
-
-.params .paramname, .retval .paramname {
-        font-weight: bold;
-        vertical-align: top;
-}
-        
-.params .paramtype {
-        font-style: italic;
-        vertical-align: top;
-}       
-        
-.params .paramdir {
-        font-family: "courier new",courier,monospace;
-        vertical-align: top;
-}
-
-table.mlabels {
-	border-spacing: 0px;
-}
-
-td.mlabels-left {
-	width: 100%;
-	padding: 0px;
-}
-
-td.mlabels-right {
-	vertical-align: bottom;
-	padding: 0px;
-	white-space: nowrap;
-}
-
-span.mlabels {
-        margin-left: 8px;
-}
-
-span.mlabel {
-        background-color: #728DC1;
-        border-top:1px solid #5373B4;
-        border-left:1px solid #5373B4;
-        border-right:1px solid #C4CFE5;
-        border-bottom:1px solid #C4CFE5;
-	text-shadow: none;
-        color: white;
-        margin-right: 4px;
-        padding: 2px 3px;
-        border-radius: 3px;
-        font-size: 7pt;
-	white-space: nowrap;
-}
-
-
-
-/* @end */
-
-/* these are for tree view when not used as main index */
-
-div.directory {
-        margin: 10px 0px;
-        border-top: 1px solid #A8B8D9;
-        border-bottom: 1px solid #A8B8D9;
-        width: 100%;
-}
-
-.directory table {
-        border-collapse:collapse;
-}
-
-.directory td {
-        margin: 0px;
-        padding: 0px;
-	vertical-align: top;
-}
-
-.directory td.entry {
-        white-space: nowrap;
-        padding-right: 6px;
-}
-
-.directory td.entry a {
-        outline:none;
-}
-
-.directory td.entry a img {
-        border: none;
-}
-
-.directory td.desc {
-        width: 100%;
-        padding-left: 6px;
-	padding-right: 6px;
-	border-left: 1px solid rgba(0,0,0,0.05);
-}
-
-.directory tr.even {
-	padding-left: 6px;
-	background-color: #F7F8FB;
-}
-
-.directory img {
-	vertical-align: -30%;
-}
-
-.directory .levels {
-        white-space: nowrap;
-        width: 100%;
-        text-align: right;
-        font-size: 9pt;
-}
-
-.directory .levels span {
-        cursor: pointer;
-        padding-left: 2px;
-        padding-right: 2px;
-	color: #3D578C;
-}
-
-div.dynheader {
-        margin-top: 8px;
-	-webkit-touch-callout: none;
-	-webkit-user-select: none;
-	-khtml-user-select: none;
-	-moz-user-select: none;
-	-ms-user-select: none;
-	user-select: none;
-}
-
-address {
-	font-style: normal;
-	color: #2A3D61;
-}
-
-table.doxtable {
-	border-collapse:collapse;
-        margin-top: 4px;
-        margin-bottom: 4px;
-}
-
-table.doxtable td, table.doxtable th {
-	border: 1px solid #2D4068;
-	padding: 3px 7px 2px;
-}
-
-table.doxtable th {
-	background-color: #374F7F;
-	color: #FFFFFF;
-	font-size: 110%;
-	padding-bottom: 4px;
-	padding-top: 5px;
-}
-
-table.fieldtable {
-        width: 100%;
-        margin-bottom: 10px;
-        border: 1px solid #A8B8D9;
-        border-spacing: 0px;
-        -moz-border-radius: 4px;
-        -webkit-border-radius: 4px;
-        border-radius: 4px;
-        -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px;
-        -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15);
-        box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15);
-}
-
-.fieldtable td, .fieldtable th {
-        padding: 3px 7px 2px;
-}
-
-.fieldtable td.fieldtype, .fieldtable td.fieldname {
-        white-space: nowrap;
-        border-right: 1px solid #A8B8D9;
-        border-bottom: 1px solid #A8B8D9;
-        vertical-align: top;
-}
-
-.fieldtable td.fielddoc {
-        border-bottom: 1px solid #A8B8D9;
-        width: 100%;
-}
-
-.fieldtable tr:last-child td {
-        border-bottom: none;
-}
-
-.fieldtable th {
-        background-image:url('nav_f.png');
-        background-repeat:repeat-x;
-        background-color: #E2E8F2;
-        font-size: 90%;
-        color: #253555;
-        padding-bottom: 4px;
-        padding-top: 5px;
-        text-align:left;
-        -moz-border-radius-topleft: 4px;
-        -moz-border-radius-topright: 4px;
-        -webkit-border-top-left-radius: 4px;
-        -webkit-border-top-right-radius: 4px;
-        border-top-left-radius: 4px;
-        border-top-right-radius: 4px;
-        border-bottom: 1px solid #A8B8D9;
-}
-
-
-.tabsearch {
-	top: 0px;
-	left: 10px;
-	height: 36px;
-	background-image: url('tab_b.png');
-	z-index: 101;
-	overflow: hidden;
-	font-size: 13px;
-}
-
-.navpath ul
-{
-	font-size: 11px;
-	background-image:url('tab_b.png');
-	background-repeat:repeat-x;
-	height:30px;
-	line-height:30px;
-	color:#8AA0CC;
-	border:solid 1px #C2CDE4;
-	overflow:hidden;
-	margin:0px;
-	padding:0px;
-}
-
-.navpath li
-{
-	list-style-type:none;
-	float:left;
-	padding-left:10px;
-	padding-right:15px;
-	background-image:url('bc_s.png');
-	background-repeat:no-repeat;
-	background-position:right;
-	color:#364D7C;
-}
-
-.navpath li.navelem a
-{
-	height:32px;
-	display:block;
-	text-decoration: none;
-	outline: none;
-}
-
-.navpath li.navelem a:hover
-{
-	color:#6884BD;
-}
-
-.navpath li.footer
-{
-        list-style-type:none;
-        float:right;
-        padding-left:10px;
-        padding-right:15px;
-        background-image:none;
-        background-repeat:no-repeat;
-        background-position:right;
-        color:#364D7C;
-        font-size: 8pt;
-}
-
-
-div.summary
-{
-	float: right;
-	font-size: 8pt;
-	padding-right: 5px;
-	width: 50%;
-	text-align: right;
-}       
-
-div.summary a
-{
-	white-space: nowrap;
-}
-
-div.ingroups
-{
-	font-size: 8pt;
-	width: 50%;
-	text-align: left;
-}
-
-div.ingroups a
-{
-	white-space: nowrap;
-}
-
-div.header
-{
-        background-image:url('nav_h.png');
-        background-repeat:repeat-x;
-	background-color: #F9FAFC;
-	margin:  0px;
-	border-bottom: 1px solid #C4CFE5;
-}
-
-div.headertitle
-{
-	padding: 5px 5px 5px 7px;
-}
-
-dl
-{
-        padding: 0 0 0 10px;
-}
-
-/* dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug */
-dl.section
-{
-	margin-left: 0px;
-	padding-left: 0px;
-}
-
-dl.note
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #D0C000;
-}
-
-dl.warning, dl.attention
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #FF0000;
-}
-
-dl.pre, dl.post, dl.invariant
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #00D000;
-}
-
-dl.deprecated
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #505050;
-}
-
-dl.todo
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #00C0E0;
-}
-
-dl.test
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #3030E0;
-}
-
-dl.bug
-{
-        margin-left:-7px;
-        padding-left: 3px;
-        border-left:4px solid;
-        border-color: #C08050;
-}
-
-dl.section dd {
-	margin-bottom: 6px;
-}
-
-
-#projectlogo
-{
-	text-align: center;
-	vertical-align: bottom;
-	border-collapse: separate;
-}
- 
-#projectlogo img
-{ 
-	border: 0px none;
-}
- 
-#projectname
-{
-	font: 300% Tahoma, Arial,sans-serif;
-	margin: 0px;
-	padding: 2px 0px;
-}
-    
-#projectbrief
-{
-	font: 120% Tahoma, Arial,sans-serif;
-	margin: 0px;
-	padding: 0px;
-}
-
-#projectnumber
-{
-	font: 50% Tahoma, Arial,sans-serif;
-	margin: 0px;
-	padding: 0px;
-}
-
-#titlearea
-{
-	padding: 0px;
-	margin: 0px;
-	width: 100%;
-	border-bottom: 1px solid #5373B4;
-}
-
-.image
-{
-        text-align: center;
-}
-
-.dotgraph
-{
-        text-align: center;
-}
-
-.mscgraph
-{
-        text-align: center;
-}
-
-.caption
-{
-	font-weight: bold;
-}
-
-div.zoom
-{
-	border: 1px solid #90A5CE;
-}
-
-dl.citelist {
-        margin-bottom:50px;
-}
-
-dl.citelist dt {
-        color:#334975;
-        float:left;
-        font-weight:bold;
-        margin-right:10px;
-        padding:5px;
-}
-
-dl.citelist dd {
-        margin:2px 0;
-        padding:5px 0;
-}
-
-div.toc {
-        padding: 14px 25px;
-        background-color: #F4F6FA;
-        border: 1px solid #D8DFEE;
-        border-radius: 7px 7px 7px 7px;
-        float: right;
-        height: auto;
-        margin: 0 20px 10px 10px;
-        width: 200px;
-}
-
-div.toc li {
-        background: url("bdwn.png") no-repeat scroll 0 5px transparent;
-        font: 10px/1.2 Verdana,DejaVu Sans,Geneva,sans-serif;
-        margin-top: 5px;
-        padding-left: 10px;
-        padding-top: 2px;
-}
-
-div.toc h3 {
-        font: bold 12px/1.2 Arial,FreeSans,sans-serif;
-	color: #4665A2;
-        border-bottom: 0 none;
-        margin: 0;
-}
-
-div.toc ul {
-        list-style: none outside none;
-        border: medium none;
-        padding: 0px;
-}       
-
-div.toc li.level1 {
-        margin-left: 0px;
-}
-
-div.toc li.level2 {
-        margin-left: 15px;
-}
-
-div.toc li.level3 {
-        margin-left: 30px;
-}
-
-div.toc li.level4 {
-        margin-left: 45px;
-}
-
-.inherit_header {
-        font-weight: bold;
-        color: gray;
-        cursor: pointer;
-	-webkit-touch-callout: none;
-	-webkit-user-select: none;
-	-khtml-user-select: none;
-	-moz-user-select: none;
-	-ms-user-select: none;
-	user-select: none;
-}
-
-.inherit_header td {
-        padding: 6px 0px 2px 5px;
-}
-
-.inherit {
-        display: none;
-}
-
-tr.heading h2 {
-        margin-top: 12px;
-        margin-bottom: 4px;
-}
-
- at media print
-{
-  #top { display: none; }
-  #side-nav { display: none; }
-  #nav-path { display: none; }
-  body { overflow:visible; }
-  h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
-  .summary { display: none; }
-  .memitem { page-break-inside: avoid; }
-  #doc-content
-  {
-    margin-left:0 !important;
-    height:auto !important;
-    width:auto !important;
-    overflow:inherit;
-    display:inline;
-  }
-}
-
diff --git a/libqfits/html/doxygen.png b/libqfits/html/doxygen.png
deleted file mode 100644
index 3ff17d8..0000000
Binary files a/libqfits/html/doxygen.png and /dev/null differ
diff --git a/libqfits/html/dynsections.js b/libqfits/html/dynsections.js
deleted file mode 100644
index 116542f..0000000
--- a/libqfits/html/dynsections.js
+++ /dev/null
@@ -1,78 +0,0 @@
-function toggleVisibility(linkObj)
-{
- var base = $(linkObj).attr('id');
- var summary = $('#'+base+'-summary');
- var content = $('#'+base+'-content');
- var trigger = $('#'+base+'-trigger');
- var src=$(trigger).attr('src');
- if (content.is(':visible')===true) {
-   content.hide();
-   summary.show();
-   $(linkObj).addClass('closed').removeClass('opened');
-   $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');
- } else {
-   content.show();
-   summary.hide();
-   $(linkObj).removeClass('closed').addClass('opened');
-   $(trigger).attr('src',src.substring(0,src.length-10)+'open.png');
- } 
- return false;
-}
-
-function updateStripes()
-{
-  $('table.directory tr').
-       removeClass('even').filter(':visible:even').addClass('even');
-}
-function toggleLevel(level)
-{
-  $('table.directory tr').each(function(){ 
-    var l = this.id.split('_').length-1;
-    var i = $('#img'+this.id.substring(3));
-    var a = $('#arr'+this.id.substring(3));
-    if (l<level+1) {
-      i.attr('src','ftv2folderopen.png');
-      a.attr('src','ftv2mnode.png');
-      $(this).show();
-    } else if (l==level+1) {
-      i.attr('src','ftv2folderclosed.png');
-      a.attr('src','ftv2pnode.png');
-      $(this).show();
-    } else {
-      $(this).hide();
-    }
-  });
-  updateStripes();
-}
-function toggleFolder(id) 
-{
-  var n = $('[id^=row_'+id+']');
-  var i = $('[id^=img_'+id+']');
-  var a = $('[id^=arr_'+id+']');
-  var c = n.slice(1);
-  if (c.filter(':first').is(':visible')===true) {
-    i.attr('src','ftv2folderclosed.png');
-    a.attr('src','ftv2pnode.png');
-    c.hide();
-  } else {
-    i.attr('src','ftv2folderopen.png');
-    a.attr('src','ftv2mnode.png');
-    c.show();
-  }
-  updateStripes();
-}
-
-function toggleInherit(id)
-{
-  var rows = $('tr.inherit.'+id);
-  var img = $('tr.inherit_header.'+id+' img');
-  var src = $(img).attr('src');
-  if (rows.filter(':first').is(':visible')===true) {
-    rows.css('display','none');
-    $(img).attr('src',src.substring(0,src.length-8)+'closed.png');
-  } else {
-    rows.css('display','table-row'); // using show() causes jump in firefox
-    $(img).attr('src',src.substring(0,src.length-10)+'open.png');
-  }
-}
-
diff --git a/libqfits/html/files.html b/libqfits/html/files.html
deleted file mode 100644
index 7fea9e2..0000000
--- a/libqfits/html/files.html
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: File List</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li class="current"><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">File List</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="textblock">Here is a list of all documented files with brief descriptions:</div><div class="directory">
-<table class="directory">
-<tr id="row_0_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="md5_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>md5.h</b></td><td class="desc"></td></tr>
-<tr id="row_1_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__byteswap_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_byteswap.h</b></td><td class="desc"></td></tr>
-<tr id="row_2_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__cache_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_cache.h</b></td><td class="desc"></td></tr>
-<tr id="row_3_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__card_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_card.h</b></td><td class="desc"></td></tr>
-<tr id="row_4_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__error_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_error.h</b></td><td class="desc"></td></tr>
-<tr id="row_5_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__filename_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_filename.h</b></td><td class="desc"></td></tr>
-<tr id="row_6_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__float_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_float.h</b></td><td class="desc"></td></tr>
-<tr id="row_7_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__header_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_header.h</b></td><td class="desc"></td></tr>
-<tr id="row_8_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__image_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_image.h</b></td><td class="desc"></td></tr>
-<tr id="row_9_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__md5_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_md5.h</b></td><td class="desc"></td></tr>
-<tr id="row_10_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__memory_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_memory.h</b></td><td class="desc"></td></tr>
-<tr id="row_11_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__rw_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_rw.h</b></td><td class="desc"></td></tr>
-<tr id="row_12_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__std_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_std.h</b></td><td class="desc"></td></tr>
-<tr id="row_13_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__table_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_table.h</b></td><td class="desc"></td></tr>
-<tr id="row_14_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="qfits__time_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_time.h</b></td><td class="desc"></td></tr>
-<tr id="row_15_"><td class="entry"><img src="ftv2lastnode.png" alt="\" width="16" height="22" /><a href="qfits__tools_8h_source.html"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>qfits_tools.h</b></td><td class="desc"></td></tr>
-</table>
-</div><!-- directory -->
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/ftv2blank.png b/libqfits/html/ftv2blank.png
deleted file mode 100644
index 63c605b..0000000
Binary files a/libqfits/html/ftv2blank.png and /dev/null differ
diff --git a/libqfits/html/ftv2cl.png b/libqfits/html/ftv2cl.png
deleted file mode 100644
index 132f657..0000000
Binary files a/libqfits/html/ftv2cl.png and /dev/null differ
diff --git a/libqfits/html/ftv2doc.png b/libqfits/html/ftv2doc.png
deleted file mode 100644
index 17edabf..0000000
Binary files a/libqfits/html/ftv2doc.png and /dev/null differ
diff --git a/libqfits/html/ftv2folderclosed.png b/libqfits/html/ftv2folderclosed.png
deleted file mode 100644
index bb8ab35..0000000
Binary files a/libqfits/html/ftv2folderclosed.png and /dev/null differ
diff --git a/libqfits/html/ftv2folderopen.png b/libqfits/html/ftv2folderopen.png
deleted file mode 100644
index d6c7f67..0000000
Binary files a/libqfits/html/ftv2folderopen.png and /dev/null differ
diff --git a/libqfits/html/ftv2lastnode.png b/libqfits/html/ftv2lastnode.png
deleted file mode 100644
index 63c605b..0000000
Binary files a/libqfits/html/ftv2lastnode.png and /dev/null differ
diff --git a/libqfits/html/ftv2link.png b/libqfits/html/ftv2link.png
deleted file mode 100644
index 17edabf..0000000
Binary files a/libqfits/html/ftv2link.png and /dev/null differ
diff --git a/libqfits/html/ftv2mlastnode.png b/libqfits/html/ftv2mlastnode.png
deleted file mode 100644
index 0b63f6d..0000000
Binary files a/libqfits/html/ftv2mlastnode.png and /dev/null differ
diff --git a/libqfits/html/ftv2mnode.png b/libqfits/html/ftv2mnode.png
deleted file mode 100644
index 0b63f6d..0000000
Binary files a/libqfits/html/ftv2mnode.png and /dev/null differ
diff --git a/libqfits/html/ftv2mo.png b/libqfits/html/ftv2mo.png
deleted file mode 100644
index 4bfb80f..0000000
Binary files a/libqfits/html/ftv2mo.png and /dev/null differ
diff --git a/libqfits/html/ftv2node.png b/libqfits/html/ftv2node.png
deleted file mode 100644
index 63c605b..0000000
Binary files a/libqfits/html/ftv2node.png and /dev/null differ
diff --git a/libqfits/html/ftv2ns.png b/libqfits/html/ftv2ns.png
deleted file mode 100644
index 72e3d71..0000000
Binary files a/libqfits/html/ftv2ns.png and /dev/null differ
diff --git a/libqfits/html/ftv2plastnode.png b/libqfits/html/ftv2plastnode.png
deleted file mode 100644
index c6ee22f..0000000
Binary files a/libqfits/html/ftv2plastnode.png and /dev/null differ
diff --git a/libqfits/html/ftv2pnode.png b/libqfits/html/ftv2pnode.png
deleted file mode 100644
index c6ee22f..0000000
Binary files a/libqfits/html/ftv2pnode.png and /dev/null differ
diff --git a/libqfits/html/ftv2splitbar.png b/libqfits/html/ftv2splitbar.png
deleted file mode 100644
index fe895f2..0000000
Binary files a/libqfits/html/ftv2splitbar.png and /dev/null differ
diff --git a/libqfits/html/ftv2vertline.png b/libqfits/html/ftv2vertline.png
deleted file mode 100644
index 63c605b..0000000
Binary files a/libqfits/html/ftv2vertline.png and /dev/null differ
diff --git a/libqfits/html/functions.html b/libqfits/html/functions.html
deleted file mode 100644
index c782c32..0000000
--- a/libqfits/html/functions.html
+++ /dev/null
@@ -1,268 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Class Members</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li class="current"><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow3" class="tabs2">
-    <ul class="tablist">
-      <li class="current"><a href="functions.html"><span>All</span></a></li>
-      <li><a href="functions_vars.html"><span>Variables</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow4" class="tabs3">
-    <ul class="tablist">
-      <li><a href="#index__"><span>_</span></a></li>
-      <li><a href="#index_a"><span>a</span></a></li>
-      <li><a href="#index_b"><span>b</span></a></li>
-      <li><a href="#index_c"><span>c</span></a></li>
-      <li><a href="#index_d"><span>d</span></a></li>
-      <li><a href="#index_e"><span>e</span></a></li>
-      <li><a href="#index_f"><span>f</span></a></li>
-      <li><a href="#index_i"><span>i</span></a></li>
-      <li><a href="#index_l"><span>l</span></a></li>
-      <li><a href="#index_m"><span>m</span></a></li>
-      <li><a href="#index_n"><span>n</span></a></li>
-      <li><a href="#index_o"><span>o</span></a></li>
-      <li><a href="#index_p"><span>p</span></a></li>
-      <li><a href="#index_r"><span>r</span></a></li>
-      <li><a href="#index_s"><span>s</span></a></li>
-      <li><a href="#index_t"><span>t</span></a></li>
-      <li><a href="#index_x"><span>x</span></a></li>
-      <li><a href="#index_z"><span>z</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="contents">
-<div class="textblock">Here is a list of all documented class members with links to the class documentation for each member:</div>
-
-<h3><a class="anchor" id="index__"></a>- _ -</h3><ul>
-<li>_init
-: <a class="el" href="structqfitsloader.html#a7432f89e962800dee98dd1096fda4bbe">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_a"></a>- a -</h3><ul>
-<li>atom_dec_nb
-: <a class="el" href="structqfits__col.html#ac9f510772ccdfc3543202984cbbf8d78">qfits_col</a>
-</li>
-<li>atom_nb
-: <a class="el" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">qfits_col</a>
-</li>
-<li>atom_size
-: <a class="el" href="structqfits__col.html#aac16a34501523b77bed062e9d89e25f4">qfits_col</a>
-</li>
-<li>atom_type
-: <a class="el" href="structqfits__col.html#ac591d6d9f8608c920fc0cb71ef457525">qfits_col</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_b"></a>- b -</h3><ul>
-<li>bitpix
-: <a class="el" href="structqfitsloader.html#a7f9d024efa767e451de26daf5ba4ffed">qfitsloader</a>
-</li>
-<li>bscale
-: <a class="el" href="structqfitsloader.html#a88c2700a244a127ee5438cbacd6a8b0f">qfitsloader</a>
-</li>
-<li>bzero
-: <a class="el" href="structqfitsloader.html#a79bc4b4ffc7df8d63acef6945bc92289">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_c"></a>- c -</h3><ul>
-<li>col
-: <a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">qfits_table</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_d"></a>- d -</h3><ul>
-<li>dbuf
-: <a class="el" href="structqfitsloader.html#abc565668aa520eef363c605216958093">qfitsloader</a>
-, <a class="el" href="structqfitsdumper.html#a149090f40a5a6954ce278d140f524f00">qfitsdumper</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_e"></a>- e -</h3><ul>
-<li>exts
-: <a class="el" href="structqfitsloader.html#ae4efb9ea8659659cc35080f7e90dc3de">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_f"></a>- f -</h3><ul>
-<li>fbuf
-: <a class="el" href="structqfitsloader.html#aabbef5dcffa5429c22f062024f7a2dea">qfitsloader</a>
-, <a class="el" href="structqfitsdumper.html#a4ee45b2224bccef4014771f73ab20401">qfitsdumper</a>
-</li>
-<li>filename
-: <a class="el" href="structqfitsdumper.html#a6c00e4a857fb7babd7b56e5d57b0d65b">qfitsdumper</a>
-, <a class="el" href="structqfitsloader.html#ac65772c0293a3632e27f5512e2b86213">qfitsloader</a>
-, <a class="el" href="structqfits__table.html#a91e80cea4099f0f08e8cb5bb78c06b77">qfits_table</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_i"></a>- i -</h3><ul>
-<li>ibuf
-: <a class="el" href="structqfitsloader.html#a675d5fd4425de2a4cea0772d07295377">qfitsloader</a>
-, <a class="el" href="structqfitsdumper.html#afeef2d85580153a3af53afe7a7eefb9d">qfitsdumper</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_l"></a>- l -</h3><ul>
-<li>lx
-: <a class="el" href="structqfitsloader.html#aeba7b81df69f628afada32fe32dddde6">qfitsloader</a>
-</li>
-<li>ly
-: <a class="el" href="structqfitsloader.html#a7afc84e3bb864ba88a8f9a5b72c49a7f">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_m"></a>- m -</h3><ul>
-<li>map
-: <a class="el" href="structqfitsloader.html#a633c3df6fa87c8deb7e3b199672974dc">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_n"></a>- n -</h3><ul>
-<li>nc
-: <a class="el" href="structqfits__table.html#af67a70e4e72ca3a75022900a1497b1a5">qfits_table</a>
-</li>
-<li>np
-: <a class="el" href="structqfitsloader.html#ab1a4a1c8055e83b1cc21260e339d539b">qfitsloader</a>
-</li>
-<li>npix
-: <a class="el" href="structqfitsdumper.html#aec1e2350cff8bff372150d6c15e20fd9">qfitsdumper</a>
-</li>
-<li>nr
-: <a class="el" href="structqfits__table.html#a0ddd9b546ee8d8d3adf640137ebc476a">qfits_table</a>
-</li>
-<li>nullval
-: <a class="el" href="structqfits__col.html#ae30c1a49f9939d7f0cd1ec22b68ad553">qfits_col</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_o"></a>- o -</h3><ul>
-<li>off_beg
-: <a class="el" href="structqfits__col.html#a0912e108e03ff4e074359e3f1ef9032f">qfits_col</a>
-</li>
-<li>out_ptype
-: <a class="el" href="structqfitsdumper.html#a6645789d9bc2e03d8f3a83b78569fdba">qfitsdumper</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_p"></a>- p -</h3><ul>
-<li>pnum
-: <a class="el" href="structqfitsloader.html#adcb0cefd447059da1f65f4775267305a">qfitsloader</a>
-</li>
-<li>ptype
-: <a class="el" href="structqfitsdumper.html#acdcf9753f787dc03a9f7ce5dcb0bfc4e">qfitsdumper</a>
-, <a class="el" href="structqfitsloader.html#a4aae21aa554e7f6c59798b34c26dea1e">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_r"></a>- r -</h3><ul>
-<li>readable
-: <a class="el" href="structqfits__col.html#a509c5e79f65feb58057ddd793cb58379">qfits_col</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_s"></a>- s -</h3><ul>
-<li>seg_size
-: <a class="el" href="structqfitsloader.html#ab89fe834e26a8c6ccdbf67ee4c71def9">qfitsloader</a>
-</li>
-<li>seg_start
-: <a class="el" href="structqfitsloader.html#ae492fd95d5ead66006235b12a8ed8c67">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_t"></a>- t -</h3><ul>
-<li>tab_t
-: <a class="el" href="structqfits__table.html#aee14f7bd2b26ebd2124ede91eb19f0f3">qfits_table</a>
-</li>
-<li>tab_w
-: <a class="el" href="structqfits__table.html#a31c46ca3eeb53ce7a1931b1b342842d6">qfits_table</a>
-</li>
-<li>tdisp
-: <a class="el" href="structqfits__col.html#ae4cf43106f6e35697fbe125b38e12e76">qfits_col</a>
-</li>
-<li>tlabel
-: <a class="el" href="structqfits__col.html#a9c08e400a42fa008eabc449ce00ca414">qfits_col</a>
-</li>
-<li>tunit
-: <a class="el" href="structqfits__col.html#a08967111cc77b195bf3a21354392bd06">qfits_col</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_x"></a>- x -</h3><ul>
-<li>xtnum
-: <a class="el" href="structqfitsloader.html#a3bf50fffd45c6c1b3adb75a2ab76e6f7">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_z"></a>- z -</h3><ul>
-<li>zero_present
-: <a class="el" href="structqfits__col.html#a3c9bafa164bf35b131bfc756305bb28e">qfits_col</a>
-</li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/functions_vars.html b/libqfits/html/functions_vars.html
deleted file mode 100644
index 2b6640a..0000000
--- a/libqfits/html/functions_vars.html
+++ /dev/null
@@ -1,268 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Class Members - Variables</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li class="current"><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow3" class="tabs2">
-    <ul class="tablist">
-      <li><a href="functions.html"><span>All</span></a></li>
-      <li class="current"><a href="functions_vars.html"><span>Variables</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow4" class="tabs3">
-    <ul class="tablist">
-      <li><a href="#index__"><span>_</span></a></li>
-      <li><a href="#index_a"><span>a</span></a></li>
-      <li><a href="#index_b"><span>b</span></a></li>
-      <li><a href="#index_c"><span>c</span></a></li>
-      <li><a href="#index_d"><span>d</span></a></li>
-      <li><a href="#index_e"><span>e</span></a></li>
-      <li><a href="#index_f"><span>f</span></a></li>
-      <li><a href="#index_i"><span>i</span></a></li>
-      <li><a href="#index_l"><span>l</span></a></li>
-      <li><a href="#index_m"><span>m</span></a></li>
-      <li><a href="#index_n"><span>n</span></a></li>
-      <li><a href="#index_o"><span>o</span></a></li>
-      <li><a href="#index_p"><span>p</span></a></li>
-      <li><a href="#index_r"><span>r</span></a></li>
-      <li><a href="#index_s"><span>s</span></a></li>
-      <li><a href="#index_t"><span>t</span></a></li>
-      <li><a href="#index_x"><span>x</span></a></li>
-      <li><a href="#index_z"><span>z</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="contents">
- 
-
-<h3><a class="anchor" id="index__"></a>- _ -</h3><ul>
-<li>_init
-: <a class="el" href="structqfitsloader.html#a7432f89e962800dee98dd1096fda4bbe">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_a"></a>- a -</h3><ul>
-<li>atom_dec_nb
-: <a class="el" href="structqfits__col.html#ac9f510772ccdfc3543202984cbbf8d78">qfits_col</a>
-</li>
-<li>atom_nb
-: <a class="el" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">qfits_col</a>
-</li>
-<li>atom_size
-: <a class="el" href="structqfits__col.html#aac16a34501523b77bed062e9d89e25f4">qfits_col</a>
-</li>
-<li>atom_type
-: <a class="el" href="structqfits__col.html#ac591d6d9f8608c920fc0cb71ef457525">qfits_col</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_b"></a>- b -</h3><ul>
-<li>bitpix
-: <a class="el" href="structqfitsloader.html#a7f9d024efa767e451de26daf5ba4ffed">qfitsloader</a>
-</li>
-<li>bscale
-: <a class="el" href="structqfitsloader.html#a88c2700a244a127ee5438cbacd6a8b0f">qfitsloader</a>
-</li>
-<li>bzero
-: <a class="el" href="structqfitsloader.html#a79bc4b4ffc7df8d63acef6945bc92289">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_c"></a>- c -</h3><ul>
-<li>col
-: <a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">qfits_table</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_d"></a>- d -</h3><ul>
-<li>dbuf
-: <a class="el" href="structqfitsloader.html#abc565668aa520eef363c605216958093">qfitsloader</a>
-, <a class="el" href="structqfitsdumper.html#a149090f40a5a6954ce278d140f524f00">qfitsdumper</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_e"></a>- e -</h3><ul>
-<li>exts
-: <a class="el" href="structqfitsloader.html#ae4efb9ea8659659cc35080f7e90dc3de">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_f"></a>- f -</h3><ul>
-<li>fbuf
-: <a class="el" href="structqfitsloader.html#aabbef5dcffa5429c22f062024f7a2dea">qfitsloader</a>
-, <a class="el" href="structqfitsdumper.html#a4ee45b2224bccef4014771f73ab20401">qfitsdumper</a>
-</li>
-<li>filename
-: <a class="el" href="structqfitsdumper.html#a6c00e4a857fb7babd7b56e5d57b0d65b">qfitsdumper</a>
-, <a class="el" href="structqfitsloader.html#ac65772c0293a3632e27f5512e2b86213">qfitsloader</a>
-, <a class="el" href="structqfits__table.html#a91e80cea4099f0f08e8cb5bb78c06b77">qfits_table</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_i"></a>- i -</h3><ul>
-<li>ibuf
-: <a class="el" href="structqfitsloader.html#a675d5fd4425de2a4cea0772d07295377">qfitsloader</a>
-, <a class="el" href="structqfitsdumper.html#afeef2d85580153a3af53afe7a7eefb9d">qfitsdumper</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_l"></a>- l -</h3><ul>
-<li>lx
-: <a class="el" href="structqfitsloader.html#aeba7b81df69f628afada32fe32dddde6">qfitsloader</a>
-</li>
-<li>ly
-: <a class="el" href="structqfitsloader.html#a7afc84e3bb864ba88a8f9a5b72c49a7f">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_m"></a>- m -</h3><ul>
-<li>map
-: <a class="el" href="structqfitsloader.html#a633c3df6fa87c8deb7e3b199672974dc">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_n"></a>- n -</h3><ul>
-<li>nc
-: <a class="el" href="structqfits__table.html#af67a70e4e72ca3a75022900a1497b1a5">qfits_table</a>
-</li>
-<li>np
-: <a class="el" href="structqfitsloader.html#ab1a4a1c8055e83b1cc21260e339d539b">qfitsloader</a>
-</li>
-<li>npix
-: <a class="el" href="structqfitsdumper.html#aec1e2350cff8bff372150d6c15e20fd9">qfitsdumper</a>
-</li>
-<li>nr
-: <a class="el" href="structqfits__table.html#a0ddd9b546ee8d8d3adf640137ebc476a">qfits_table</a>
-</li>
-<li>nullval
-: <a class="el" href="structqfits__col.html#ae30c1a49f9939d7f0cd1ec22b68ad553">qfits_col</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_o"></a>- o -</h3><ul>
-<li>off_beg
-: <a class="el" href="structqfits__col.html#a0912e108e03ff4e074359e3f1ef9032f">qfits_col</a>
-</li>
-<li>out_ptype
-: <a class="el" href="structqfitsdumper.html#a6645789d9bc2e03d8f3a83b78569fdba">qfitsdumper</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_p"></a>- p -</h3><ul>
-<li>pnum
-: <a class="el" href="structqfitsloader.html#adcb0cefd447059da1f65f4775267305a">qfitsloader</a>
-</li>
-<li>ptype
-: <a class="el" href="structqfitsdumper.html#acdcf9753f787dc03a9f7ce5dcb0bfc4e">qfitsdumper</a>
-, <a class="el" href="structqfitsloader.html#a4aae21aa554e7f6c59798b34c26dea1e">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_r"></a>- r -</h3><ul>
-<li>readable
-: <a class="el" href="structqfits__col.html#a509c5e79f65feb58057ddd793cb58379">qfits_col</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_s"></a>- s -</h3><ul>
-<li>seg_size
-: <a class="el" href="structqfitsloader.html#ab89fe834e26a8c6ccdbf67ee4c71def9">qfitsloader</a>
-</li>
-<li>seg_start
-: <a class="el" href="structqfitsloader.html#ae492fd95d5ead66006235b12a8ed8c67">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_t"></a>- t -</h3><ul>
-<li>tab_t
-: <a class="el" href="structqfits__table.html#aee14f7bd2b26ebd2124ede91eb19f0f3">qfits_table</a>
-</li>
-<li>tab_w
-: <a class="el" href="structqfits__table.html#a31c46ca3eeb53ce7a1931b1b342842d6">qfits_table</a>
-</li>
-<li>tdisp
-: <a class="el" href="structqfits__col.html#ae4cf43106f6e35697fbe125b38e12e76">qfits_col</a>
-</li>
-<li>tlabel
-: <a class="el" href="structqfits__col.html#a9c08e400a42fa008eabc449ce00ca414">qfits_col</a>
-</li>
-<li>tunit
-: <a class="el" href="structqfits__col.html#a08967111cc77b195bf3a21354392bd06">qfits_col</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_x"></a>- x -</h3><ul>
-<li>xtnum
-: <a class="el" href="structqfitsloader.html#a3bf50fffd45c6c1b3adb75a2ab76e6f7">qfitsloader</a>
-</li>
-</ul>
-
-
-<h3><a class="anchor" id="index_z"></a>- z -</h3><ul>
-<li>zero_present
-: <a class="el" href="structqfits__col.html#a3c9bafa164bf35b131bfc756305bb28e">qfits_col</a>
-</li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__md5.html b/libqfits/html/group__md5.html
deleted file mode 100644
index e32fe4f..0000000
--- a/libqfits/html/group__md5.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: MD5 message-digest algorithm</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">MD5 message-digest algorithm</div>  </div>
-</div><!--header-->
-<div class="contents">
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>The algorithm is due to Ron Rivest. This code was written by Colin Plumb in 1993, no copyright is claimed. This code is in the public domain; do with it what you wish. Equivalent code is available from RSA Data Security, Inc. This code has been tested against that, and is equivalent, except that you don't need to include two pages of legalese with every copy. To compute the message digest of a chunk of bytes, declare an MD5Context structure, pass it to MD5Init, call MD5Update as neede [...]
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__byteswap.html b/libqfits/html/group__qfits__byteswap.html
deleted file mode 100644
index c48709d..0000000
--- a/libqfits/html/group__qfits__byteswap.html
+++ /dev/null
@@ -1,157 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Low-level byte-swapping routines</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Low-level byte-swapping routines</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga411c432bffd5ebd38c0546edc7039c77"><td class="memItemLeft" align="right" valign="top">unsigned short </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__byteswap.html#ga411c432bffd5ebd38c0546edc7039c77">qfits_swap_bytes_16</a> (unsigned short w)</td></tr>
-<tr class="memdesc:ga411c432bffd5ebd38c0546edc7039c77"><td class="mdescLeft"> </td><td class="mdescRight">Swap a 16-bit number.  <a href="#ga411c432bffd5ebd38c0546edc7039c77"></a><br/></td></tr>
-<tr class="memitem:ga439a631ae13f9ef98ba838b55e25af5a"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__byteswap.html#ga439a631ae13f9ef98ba838b55e25af5a">qfits_swap_bytes_32</a> (unsigned int dw)</td></tr>
-<tr class="memdesc:ga439a631ae13f9ef98ba838b55e25af5a"><td class="mdescLeft"> </td><td class="mdescRight">Swap a 32-bit number.  <a href="#ga439a631ae13f9ef98ba838b55e25af5a"></a><br/></td></tr>
-<tr class="memitem:ga572c320dab274906968523e728e6e728"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__byteswap.html#ga572c320dab274906968523e728e6e728">qfits_swap_bytes</a> (void *p, int s)</td></tr>
-<tr class="memdesc:ga572c320dab274906968523e728e6e728"><td class="mdescLeft"> </td><td class="mdescRight">Swaps bytes in a variable of given size.  <a href="#ga572c320dab274906968523e728e6e728"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module offers access to byte-swapping routines. Generic routines are offered that should work everywhere. Assembler is also included for x86 architectures, and dedicated assembler calls for processors > 386. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga572c320dab274906968523e728e6e728"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_swap_bytes </td>
-          <td>(</td>
-          <td class="paramtype">void * </td>
-          <td class="paramname"><em>p</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>s</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Swaps bytes in a variable of given size. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">p</td><td>pointer to void (generic pointer) </td></tr>
-    <tr><td class="paramname">s</td><td>size of the element to swap, pointed to by p </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void</dd></dl>
-<p>This byte-swapper is portable and works for any even variable size. It is not truly the most efficient ever, but does its job fine everywhere this file compiles. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67">qfits_query_column()</a>, and <a class="el" href="group__qfits__table.html#ga37432ab039e40c243b04b9c68927e47e">qfits_query_column_seq()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga411c432bffd5ebd38c0546edc7039c77"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">unsigned short qfits_swap_bytes_16 </td>
-          <td>(</td>
-          <td class="paramtype">unsigned short </td>
-          <td class="paramname"><em>w</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Swap a 16-bit number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">w</td><td>A 16-bit (short) number to byte-swap. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The swapped version of w, w is untouched.</dd></dl>
-<p>This function swaps a 16-bit number, returned the swapped value without modifying the passed argument. Assembler included for x86 architectures. </p>
-
-</div>
-</div>
-<a class="anchor" id="ga439a631ae13f9ef98ba838b55e25af5a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">unsigned int qfits_swap_bytes_32 </td>
-          <td>(</td>
-          <td class="paramtype">unsigned int </td>
-          <td class="paramname"><em>dw</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Swap a 32-bit number. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">dw</td><td>A 32-bit (long) number to byte-swap. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The swapped version of dw, dw is untouched.</dd></dl>
-<p>This function swaps a 32-bit number, returned the swapped value without modifying the passed argument. Assembler included for x86 architectures and optimized for processors above 386. </p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__cache.html b/libqfits/html/group__qfits__cache.html
deleted file mode 100644
index 4e62fc7..0000000
--- a/libqfits/html/group__qfits__cache.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: FITS caching capabilities</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">FITS caching capabilities</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gae327e70e1699d121d9fa22d69025556a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__cache.html#gae327e70e1699d121d9fa22d69025556a">qfits_cache_purge</a> (void)</td></tr>
-<tr class="memdesc:gae327e70e1699d121d9fa22d69025556a"><td class="mdescLeft"> </td><td class="mdescRight">Purge the qfits cache.  <a href="#gae327e70e1699d121d9fa22d69025556a"></a><br/></td></tr>
-<tr class="memitem:ga404fe43b87bdb3ef2daea6871031a0bc"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__cache.html#ga404fe43b87bdb3ef2daea6871031a0bc">qfits_query</a> (const char *filename, int what)</td></tr>
-<tr class="memdesc:ga404fe43b87bdb3ef2daea6871031a0bc"><td class="mdescLeft"> </td><td class="mdescRight">Query a FITS file offset from the cache.  <a href="#ga404fe43b87bdb3ef2daea6871031a0bc"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This modules implements a cache for FITS access routines. The first time a FITS file is seen by the library, all corresponding pointers are cached here. This speeds up multiple accesses to large files by magnitudes. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gae327e70e1699d121d9fa22d69025556a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_cache_purge </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Purge the qfits cache. </p>
-<dl class="section return"><dt>Returns:</dt><dd>void</dd></dl>
-<p>This function is useful for programs running for a long period, to clean up the cache. Ideally in a daemon, it should be called by a timer at regular intervals. Notice that since the cache is fairly small, you should not need to care too much about this. </p>
-
-</div>
-</div>
-<a class="anchor" id="ga404fe43b87bdb3ef2daea6871031a0bc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_query </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>what</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Query a FITS file offset from the cache. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the file to examine. </td></tr>
-    <tr><td class="paramname">what</td><td>What should be queried (see below). </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>an integer offset, or -1 if an error occurred.</dd></dl>
-<p>This function queries the cache for FITS offset information. If the requested file name has never been seen before, it is completely parsed to extract all offset informations, which are then stored in the cache. The next query will get the informations from the cache, avoiding a complete re-parsing of the file. This is especially useful for large FITS files with lots of extensions, because querying the extensions is an expensive operation.</p>
-<p>This operation has side-effects: the cache is an automatically allocated structure in memory, that can only grow. Every request on a new FITS file will make it grow. The structure is pretty light-weight in memory, but nonetheless this is an issue for daemon-type programs which must run over long periods. The solution is to clean the cache using <a class="el" href="group__qfits__cache.html#gae327e70e1699d121d9fa22d69025556a" title="Purge the qfits cache.">qfits_cache_purge()</a> at reg [...]
-<p>To request information about a FITS file, you must pass an integer built from the following symbols:</p>
-<ul>
-<li><code>QFITS_QUERY_N_EXT</code> </li>
-<li><code>QFITS_QUERY_HDR_START</code> </li>
-<li><code>QFITS_QUERY_DAT_START</code> </li>
-<li><code>QFITS_QUERY_HDR_SIZE</code> </li>
-<li><code>QFITS_QUERY_DAT_SIZE</code> </li>
-</ul>
-<p>Querying the number of extensions present in a file is done simply with:</p>
-<div class="fragment"><div class="line">  next = <a class="code" href="group__qfits__cache.html#ga404fe43b87bdb3ef2daea6871031a0bc" title="Query a FITS file offset from the cache.">qfits_query</a>(filename, QFITS_QUERY_N_EXT);</div>
-</div><!-- fragment --><p>Querying the offset to the i-th extension header is done with:</p>
-<div class="fragment"><div class="line">  off = <a class="code" href="group__qfits__cache.html#ga404fe43b87bdb3ef2daea6871031a0bc" title="Query a FITS file offset from the cache.">qfits_query</a>(filename, QFITS_QUERY_HDR_START | i);</div>
-</div><!-- fragment --><p>i.e. you must OR (|) the extension number with the <code>QFITS_QUERY_HDR_START</code> symbol. Requesting offsets to extension data is done in the same way:</p>
-<div class="fragment"><div class="line">  off = <a class="code" href="group__qfits__cache.html#ga404fe43b87bdb3ef2daea6871031a0bc" title="Query a FITS file offset from the cache.">qfits_query</a>(filename, QFITS_QUERY_DAT_START | i);</div>
-</div><!-- fragment --><p>Notice that extension 0 is the main header and main data part of the FITS file. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__rw.html#ga26382a339b6a5ca0843dec82dc78be28">qfits_get_datinfo()</a>, <a class="el" href="group__qfits__rw.html#ga98043b1322f502acab5b99afbcb8165a">qfits_get_hdrinfo()</a>, and <a class="el" href="group__qfits__tools.html#ga584cb7b1cdbdbb78f130c18a20366146">qfits_query_n_ext()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__card.html b/libqfits/html/group__qfits__card.html
deleted file mode 100644
index 22414e0..0000000
--- a/libqfits/html/group__qfits__card.html
+++ /dev/null
@@ -1,238 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Card handling functions</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Card handling functions</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga486c44c7f3bc2fe66ff335e9617a5b1b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__card.html#ga486c44c7f3bc2fe66ff335e9617a5b1b">qfits_card_build</a> (char *line, const char *key, const char *val, const char *com)</td></tr>
-<tr class="memdesc:ga486c44c7f3bc2fe66ff335e9617a5b1b"><td class="mdescLeft"> </td><td class="mdescRight">Write out a card to a string on 80 chars.  <a href="#ga486c44c7f3bc2fe66ff335e9617a5b1b"></a><br/></td></tr>
-<tr class="memitem:gaf7e573cc540a3f45b8d37a41a58c5460"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__card.html#gaf7e573cc540a3f45b8d37a41a58c5460">qfits_getkey</a> (const char *line)</td></tr>
-<tr class="memdesc:gaf7e573cc540a3f45b8d37a41a58c5460"><td class="mdescLeft"> </td><td class="mdescRight">Find the keyword in a key card (80 chars)  <a href="#gaf7e573cc540a3f45b8d37a41a58c5460"></a><br/></td></tr>
-<tr class="memitem:ga679cc3b9aee2120740a2d02f10625b98"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__card.html#ga679cc3b9aee2120740a2d02f10625b98">qfits_getvalue</a> (const char *line)</td></tr>
-<tr class="memdesc:ga679cc3b9aee2120740a2d02f10625b98"><td class="mdescLeft"> </td><td class="mdescRight">Find the value in a key card (80 chars)  <a href="#ga679cc3b9aee2120740a2d02f10625b98"></a><br/></td></tr>
-<tr class="memitem:ga9b5f07bc890ed0026a784adf93c4f3cd"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__card.html#ga9b5f07bc890ed0026a784adf93c4f3cd">qfits_getcomment</a> (const char *line)</td></tr>
-<tr class="memdesc:ga9b5f07bc890ed0026a784adf93c4f3cd"><td class="mdescLeft"> </td><td class="mdescRight">Find the comment in a key card (80 chars)  <a href="#ga9b5f07bc890ed0026a784adf93c4f3cd"></a><br/></td></tr>
-<tr class="memitem:gadc46a615b643e7f6be067a3028d372af"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__card.html#gadc46a615b643e7f6be067a3028d372af">qfits_expand_keyword</a> (const char *keyword)</td></tr>
-<tr class="memdesc:gadc46a615b643e7f6be067a3028d372af"><td class="mdescLeft"> </td><td class="mdescRight">Expand a keyword from shortFITS to HIERARCH notation.  <a href="#gadc46a615b643e7f6be067a3028d372af"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module contains various routines to help parsing a single FITS card into its components: key, value, comment. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga486c44c7f3bc2fe66ff335e9617a5b1b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_card_build </td>
-          <td>(</td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>line</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>val</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>com</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Write out a card to a string on 80 chars. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">line</td><td>Allocated output character buffer. </td></tr>
-    <tr><td class="paramname">key</td><td>Key to write. </td></tr>
-    <tr><td class="paramname">val</td><td>Value to write. </td></tr>
-    <tr><td class="paramname">com</td><td>Comment to write. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void</dd></dl>
-<p>Write out a key, value and comment into an allocated character buffer. The buffer must be at least 80 chars to receive the information. Formatting is done according to FITS standard. </p>
-
-<p>References <a class="el" href="group__qfits__tools.html#gaa53de3a6fae72699f185ccb4917cc5ca">qfits_is_boolean()</a>, <a class="el" href="group__qfits__tools.html#gad8d941f09367844ee6317f05b474970f">qfits_is_complex()</a>, <a class="el" href="group__qfits__tools.html#gab26323633e112d41498246675d2b42b6">qfits_is_float()</a>, <a class="el" href="group__qfits__tools.html#ga5ba85c00493f0c641a2ca4c5d98a986b">qfits_is_int()</a>, and <a class="el" href="group__qfits__tools.html#ga6fb825df5050f [...]
-
-</div>
-</div>
-<a class="anchor" id="gadc46a615b643e7f6be067a3028d372af"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_expand_keyword </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>keyword</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Expand a keyword from shortFITS to HIERARCH notation. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">keyword</td><td>Keyword to expand. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 pointer to statically allocated string.</dd></dl>
-<p>This function expands a given keyword from shortFITS to HIERARCH notation, bringing it to uppercase at the same time.</p>
-<p>Examples:</p>
-<pre class="fragment">  det.dit          expands to     HIERARCH ESO DET DIT
-  ins.filt1.id     expands to     HIERARCH ESO INS FILT1 ID</pre><p>If the input keyword is a regular FITS keyword (i.e. it contains not dots '.') the result is identical to the input. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__header.html#gaaec8669e09dca5f346b92c03844c9f82">qfits_header_add_after()</a>, <a class="el" href="group__qfits__header.html#ga2ab695dbc2e17f35645251497d76e54e">qfits_header_del()</a>, <a class="el" href="group__qfits__header.html#gad1c255fa0ba92d7a196161b1d1739824">qfits_header_getcom()</a>, <a class="el" href="group__qfits__header.html#ga93f06e0a4dc9a377de106de07cb7ac54">qfits_header_getstr()</a>, <a class="el" href="group__qfits__heade [...]
-
-</div>
-</div>
-<a class="anchor" id="ga9b5f07bc890ed0026a784adf93c4f3cd"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_getcomment </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>line</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find the comment in a key card (80 chars) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">line</td><td>allocated 80-char line from a FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>statically allocated char *</dd></dl>
-<p>Find out the part of a FITS line corresponding to the comment. Returns NULL in case of error, or if no comment can be found. The returned pointer is statically allocated in this function, so do not modify or try to free it. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__rw.html#ga162f1d553ce43281b82699c1ca0f14cf">qfits_header_read_hdr()</a>, <a class="el" href="group__qfits__rw.html#ga6155704a411e9be7a2a1ee6b275380f7">qfits_header_read_hdr_string()</a>, and <a class="el" href="group__qfits__rw.html#ga930590f9b28a90dffb66024c96251162">qfits_header_readext()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf7e573cc540a3f45b8d37a41a58c5460"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_getkey </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>line</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find the keyword in a key card (80 chars) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">line</td><td>allocated 80-char line from a FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>statically allocated char *</dd></dl>
-<p>Find out the part of a FITS line corresponding to the keyword. Returns NULL in case of error. The returned pointer is statically allocated in this function, so do not modify or try to free it. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__rw.html#ga162f1d553ce43281b82699c1ca0f14cf">qfits_header_read_hdr()</a>, <a class="el" href="group__qfits__rw.html#ga6155704a411e9be7a2a1ee6b275380f7">qfits_header_read_hdr_string()</a>, and <a class="el" href="group__qfits__rw.html#ga930590f9b28a90dffb66024c96251162">qfits_header_readext()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga679cc3b9aee2120740a2d02f10625b98"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_getvalue </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>line</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find the value in a key card (80 chars) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">line</td><td>allocated 80-char line from a FITS header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>statically allocated char *</dd></dl>
-<p>Find out the part of a FITS line corresponding to the value. Returns NULL in case of error, or if no value can be found. The returned pointer is statically allocated in this function, so do not modify or try to free it. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__rw.html#ga162f1d553ce43281b82699c1ca0f14cf">qfits_header_read_hdr()</a>, <a class="el" href="group__qfits__rw.html#ga6155704a411e9be7a2a1ee6b275380f7">qfits_header_read_hdr_string()</a>, <a class="el" href="group__qfits__rw.html#ga930590f9b28a90dffb66024c96251162">qfits_header_readext()</a>, and <a class="el" href="group__qfits__tools.html#gae2889b70d541dcd43796f1f6c352467a">qfits_query_ext()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__error.html b/libqfits/html/group__qfits__error.html
deleted file mode 100644
index 34d6581..0000000
--- a/libqfits/html/group__qfits__error.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Messaging functionalities</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Messaging functionalities</div>  </div>
-</div><!--header-->
-<div class="contents">
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module is responsible for error message display. It allows to re-direct all messages to a given set of functions for display. </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__filename.html b/libqfits/html/group__qfits__filename.html
deleted file mode 100644
index fd9d887..0000000
--- a/libqfits/html/group__qfits__filename.html
+++ /dev/null
@@ -1,207 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Get various names (filenames, dir names,...)</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Get various names (filenames, dir names,...)</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gacb8835024cc4b6353768ddb1579940cb"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__filename.html#gacb8835024cc4b6353768ddb1579940cb">qfits_get_dir_name</a> (const char *filename)</td></tr>
-<tr class="memdesc:gacb8835024cc4b6353768ddb1579940cb"><td class="mdescLeft"> </td><td class="mdescRight">Find the directory name in the given string.  <a href="#gacb8835024cc4b6353768ddb1579940cb"></a><br/></td></tr>
-<tr class="memitem:ga32b141cd882cc4e9225adc75fce2e2fa"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__filename.html#ga32b141cd882cc4e9225adc75fce2e2fa">qfits_get_base_name</a> (const char *filename)</td></tr>
-<tr class="memdesc:ga32b141cd882cc4e9225adc75fce2e2fa"><td class="mdescLeft"> </td><td class="mdescRight">Find out the base name of a file (i.e. without prefix path)  <a href="#ga32b141cd882cc4e9225adc75fce2e2fa"></a><br/></td></tr>
-<tr class="memitem:gacc44fdec7ecc43c87faaff992cfb5806"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__filename.html#gacc44fdec7ecc43c87faaff992cfb5806">qfits_get_root_name</a> (const char *filename)</td></tr>
-<tr class="memdesc:gacc44fdec7ecc43c87faaff992cfb5806"><td class="mdescLeft"> </td><td class="mdescRight">Find out the root part of a basename (name without extension).  <a href="#gacc44fdec7ecc43c87faaff992cfb5806"></a><br/></td></tr>
-<tr class="memitem:ga6d9f03dd8f0fe2de7c394386e37f0659"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__filename.html#ga6d9f03dd8f0fe2de7c394386e37f0659">qfits_get_ext_name</a> (const char *filename)</td></tr>
-<tr class="memdesc:ga6d9f03dd8f0fe2de7c394386e37f0659"><td class="mdescLeft"> </td><td class="mdescRight">Find out the extension of a file name.  <a href="#ga6d9f03dd8f0fe2de7c394386e37f0659"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>The following functions are useful to cut out a filename into its components. All functions work with statically allocated memory, i.e. the pointers they return are not permanent but likely to be overwritten at each function call. If you need a returned value later on, you should store it into a local variable.</p>
-<p>Example:</p>
-<div class="fragment"><div class="line">   <span class="keywordtype">char</span> * s ;</div>
-<div class="line">   s = <a class="code" href="group__qfits__filename.html#gacb8835024cc4b6353768ddb1579940cb" title="Find the directory name in the given string.">qfits_get_dir_name</a>(<span class="stringliteral">"/mnt/cdrom/data/image.fits"</span>)</div>
-</div><!-- fragment --><p>s contains now "/mnt/cdrom/data" but will loose these contents at the next function call. To retain its value, you can either do:</p>
-<div class="fragment"><div class="line">   <span class="keywordtype">char</span> s[1024];</div>
-<div class="line">   strcpy(s, <a class="code" href="group__qfits__filename.html#gacb8835024cc4b6353768ddb1579940cb" title="Find the directory name in the given string.">qfits_get_dir_name</a>(<span class="stringliteral">"/mnt/cdrom/data/image.fits"</span>));</div>
-</div><!-- fragment --><p>or:</p>
-<div class="fragment"><div class="line">   <span class="keywordtype">char</span> * s;</div>
-<div class="line">   s = strdup(<a class="code" href="group__qfits__filename.html#gacb8835024cc4b6353768ddb1579940cb" title="Find the directory name in the given string.">qfits_get_dir_name</a>(<span class="stringliteral">"/mnt/cdrom/data/image.fits"</span>));</div>
-<div class="line">   ...</div>
-<div class="line">   free(s);</div>
-</div><!-- fragment --> <hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga32b141cd882cc4e9225adc75fce2e2fa"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_get_base_name </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the base name of a file (i.e. without prefix path) </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Full path name to scan. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to char within the input string.</dd></dl>
-<p>Provide a full path name and you get in return a pointer to a statically allocated string containing the name of the file only, without prefixing directory names. If the input string does not contain a slash (i.e. it is not a full path), the returned string is a copy of the input string.</p>
-<p>This function does not check for the existence of the path or the file.</p>
-<p>Examples: </p>
-<pre class="fragment">    qfits_get_base_name("/cdrom/data/image.fits") returns "image.fits"
-    qfits_get_base_name("filename.fits") returns "filename.fits"</pre> 
-</div>
-</div>
-<a class="anchor" id="gacb8835024cc4b6353768ddb1579940cb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_get_dir_name </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find the directory name in the given string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Full path name to scan. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to statically allocated string.</dd></dl>
-<p>Provide a full path name and you get in return a pointer to a statically allocated string containing the name of the directory only, without trailing slash. If the input string does not contain a slash (i.e. it is not a full path), the returned string is '.', corresponding to the current working directory. Since the returned string is statically allocated, do not try to free it or modify it.</p>
-<p>This function does not check for the existence of the path or the file.</p>
-<p>Examples: </p>
-<pre class="fragment">    qfits_get_dir_name("/cdrom/data/image.fits") returns "/cdrom/data"
-    qfits_get_dir_name("filename.fits") returns "."</pre> 
-</div>
-</div>
-<a class="anchor" id="ga6d9f03dd8f0fe2de7c394386e37f0659"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_get_ext_name </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the extension of a file name. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>File name without path prefix. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to char within the input string.</dd></dl>
-<p>Find out the extension of a given file name. Notice that the input character string must not contain a path prefix (typically, you feed in the output of <code>qfits_get_base_name</code>).</p>
-<p>Works with all kinds of extensions: returns the part of the string after the last dot. If no dot is found in the input string, NULL is returned.</p>
-<p>Examples: </p>
-<pre class="fragment">    qfits_get_ext_name("filename.fits") returns "fits"
-    qfits_get_ext_name("hello.c") returns "c"
-    qfits_get_ext_name("readme") returns NULL</pre> 
-</div>
-</div>
-<a class="anchor" id="gacc44fdec7ecc43c87faaff992cfb5806"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_get_root_name </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Find out the root part of a basename (name without extension). </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>File name to scan. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to statically allocated string.</dd></dl>
-<p>Find out the root part of a file name, i.e. the file name without extension. Since in Unix a file name can have several dots, only a number of extensions are supported. This includes:</p>
-<ul>
-<li>.fits and .FITS</li>
-<li>.tfits and .TFITS</li>
-<li>.paf and .PAF</li>
-<li>.ascii and .ASCII</li>
-<li>.dat and .DAT</li>
-<li>.txt and .TXT</li>
-</ul>
-<p>This function does not check for the existence of the path or the file.</p>
-<p>Examples: </p>
-<pre class="fragment">    qfits_get_root_name("/cdrom/filename.fits") returns "/cdrom/filename"
-    qfits_get_root_name("filename.paf") returns "filename"
-    qfits_get_root_name("filename") returns "filename"
-    qfits_get_root_name("filename.ext") returns "filename.ext"</pre><p>Since the returned string is statically allocated in this module, do not try to free it or modify its contents. </p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__float.html b/libqfits/html/group__qfits__float.html
deleted file mode 100644
index c28196d..0000000
--- a/libqfits/html/group__qfits__float.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: This module implements the qfits_isnan()</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">This module implements the qfits_isnan()</div>  </div>
-</div><!--header-->
-<div class="contents">
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<pre class="fragment">                    and qfits_isinf() macros
-</pre><p>The isnan() and isinf() macros are unfortunately not yet part of the standard C math library everywhere. They can usually be found in different places, if they are offered at all, and require the application to link against the math library. To avoid portability problems and linking against -lm, this module implements a fast and portable way of finding out whether a floating-point value (float or double) is a NaN or an Inf.</p>
-<p>Instead of calling isnan() and isinf(), the programmer including this file should call qfits_isnan() and qfits_isinf(). </p>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__header.html b/libqfits/html/group__qfits__header.html
deleted file mode 100644
index 1483ae8..0000000
--- a/libqfits/html/group__qfits__header.html
+++ /dev/null
@@ -1,843 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: FITS header handling</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">FITS header handling</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga66374136eafc13c56561be2edfd2c9cc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structqfits__header.html">qfits_header</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#ga66374136eafc13c56561be2edfd2c9cc">qfits_header_new</a> (void)</td></tr>
-<tr class="memdesc:ga66374136eafc13c56561be2edfd2c9cc"><td class="mdescLeft"> </td><td class="mdescRight">FITS header constructor.  <a href="#ga66374136eafc13c56561be2edfd2c9cc"></a><br/></td></tr>
-<tr class="memitem:ga3251cd06190404f27a8bdf5caf888c01"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structqfits__header.html">qfits_header</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#ga3251cd06190404f27a8bdf5caf888c01">qfits_header_default</a> (void)</td></tr>
-<tr class="memdesc:ga3251cd06190404f27a8bdf5caf888c01"><td class="mdescLeft"> </td><td class="mdescRight">FITS header default constructor.  <a href="#ga3251cd06190404f27a8bdf5caf888c01"></a><br/></td></tr>
-<tr class="memitem:ga7d9424e6358ddf28929c9ead23d4d347"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#ga7d9424e6358ddf28929c9ead23d4d347">qfits_header_add</a> (<a class="el" href="structqfits__header.html">qfits_header</a> *hdr, const char *key, const char *val, const char *com, const char *lin)</td></tr>
-<tr class="memdesc:ga7d9424e6358ddf28929c9ead23d4d347"><td class="mdescLeft"> </td><td class="mdescRight">Add a new card to a FITS header.  <a href="#ga7d9424e6358ddf28929c9ead23d4d347"></a><br/></td></tr>
-<tr class="memitem:gaaec8669e09dca5f346b92c03844c9f82"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#gaaec8669e09dca5f346b92c03844c9f82">qfits_header_add_after</a> (<a class="el" href="structqfits__header.html">qfits_header</a> *hdr, const char *after, const char *key, const char *val, const char *com, const char *lin)</td></tr>
-<tr class="memdesc:gaaec8669e09dca5f346b92c03844c9f82"><td class="mdescLeft"> </td><td class="mdescRight">add a new card to a FITS header  <a href="#gaaec8669e09dca5f346b92c03844c9f82"></a><br/></td></tr>
-<tr class="memitem:ga561679d8fc1ba9f8b6e1c619e4687154"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#ga561679d8fc1ba9f8b6e1c619e4687154">qfits_header_append</a> (<a class="el" href="structqfits__header.html">qfits_header</a> *hdr, const char *key, const char *val, const char *com, const char *lin)</td></tr>
-<tr class="memdesc:ga561679d8fc1ba9f8b6e1c619e4687154"><td class="mdescLeft"> </td><td class="mdescRight">Append a new card to a FITS header.  <a href="#ga561679d8fc1ba9f8b6e1c619e4687154"></a><br/></td></tr>
-<tr class="memitem:ga2ab695dbc2e17f35645251497d76e54e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#ga2ab695dbc2e17f35645251497d76e54e">qfits_header_del</a> (<a class="el" href="structqfits__header.html">qfits_header</a> *hdr, const char *key)</td></tr>
-<tr class="memdesc:ga2ab695dbc2e17f35645251497d76e54e"><td class="mdescLeft"> </td><td class="mdescRight">Delete a card in a FITS header.  <a href="#ga2ab695dbc2e17f35645251497d76e54e"></a><br/></td></tr>
-<tr class="memitem:gadfe9810507edcd87749f9d2b0b0dfbc2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#gadfe9810507edcd87749f9d2b0b0dfbc2">qfits_header_mod</a> (<a class="el" href="structqfits__header.html">qfits_header</a> *hdr, const char *key, const char *val, const char *com)</td></tr>
-<tr class="memdesc:gadfe9810507edcd87749f9d2b0b0dfbc2"><td class="mdescLeft"> </td><td class="mdescRight">Modifies a FITS card.  <a href="#gadfe9810507edcd87749f9d2b0b0dfbc2"></a><br/></td></tr>
-<tr class="memitem:ga6674ac912c68b117c04c001716140b0f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#ga6674ac912c68b117c04c001716140b0f">qfits_header_sort</a> (<a class="el" href="structqfits__header.html">qfits_header</a> **hdr)</td></tr>
-<tr class="memdesc:ga6674ac912c68b117c04c001716140b0f"><td class="mdescLeft"> </td><td class="mdescRight">Sort a FITS header.  <a href="#ga6674ac912c68b117c04c001716140b0f"></a><br/></td></tr>
-<tr class="memitem:gaeffc1010c25e936de293be0184787b17"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structqfits__header.html">qfits_header</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#gaeffc1010c25e936de293be0184787b17">qfits_header_copy</a> (const <a class="el" href="structqfits__header.html">qfits_header</a> *src)</td></tr>
-<tr class="memdesc:gaeffc1010c25e936de293be0184787b17"><td class="mdescLeft"> </td><td class="mdescRight">Copy a FITS header.  <a href="#gaeffc1010c25e936de293be0184787b17"></a><br/></td></tr>
-<tr class="memitem:gafef6f1ed212ce59e8e393f751077e543"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#gafef6f1ed212ce59e8e393f751077e543">qfits_header_destroy</a> (<a class="el" href="structqfits__header.html">qfits_header</a> *hdr)</td></tr>
-<tr class="memdesc:gafef6f1ed212ce59e8e393f751077e543"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> destructor  <a href="#gafef6f1ed212ce59e8e393f751077e543"></a><br/></td></tr>
-<tr class="memitem:ga93f06e0a4dc9a377de106de07cb7ac54"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#ga93f06e0a4dc9a377de106de07cb7ac54">qfits_header_getstr</a> (const <a class="el" href="structqfits__header.html">qfits_header</a> *hdr, const char *key)</td></tr>
-<tr class="memdesc:ga93f06e0a4dc9a377de106de07cb7ac54"><td class="mdescLeft"> </td><td class="mdescRight">Return the value associated to a key, as a string.  <a href="#ga93f06e0a4dc9a377de106de07cb7ac54"></a><br/></td></tr>
-<tr class="memitem:ga4eb87da6644379a22c99eb2cd284ddf5"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#ga4eb87da6644379a22c99eb2cd284ddf5">qfits_header_getitem</a> (const <a class="el" href="structqfits__header.html">qfits_header</a> *hdr, int idx, char *key, char *val, char *com, char *lin)</td></tr>
-<tr class="memdesc:ga4eb87da6644379a22c99eb2cd284ddf5"><td class="mdescLeft"> </td><td class="mdescRight">Return the i-th key/val/com/line tuple in a header.  <a href="#ga4eb87da6644379a22c99eb2cd284ddf5"></a><br/></td></tr>
-<tr class="memitem:gad1c255fa0ba92d7a196161b1d1739824"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#gad1c255fa0ba92d7a196161b1d1739824">qfits_header_getcom</a> (const <a class="el" href="structqfits__header.html">qfits_header</a> *hdr, const char *key)</td></tr>
-<tr class="memdesc:gad1c255fa0ba92d7a196161b1d1739824"><td class="mdescLeft"> </td><td class="mdescRight">Return the comment associated to a key, as a string.  <a href="#gad1c255fa0ba92d7a196161b1d1739824"></a><br/></td></tr>
-<tr class="memitem:gaa1d6ee802f52590e0f95f1a11c1107b7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#gaa1d6ee802f52590e0f95f1a11c1107b7">qfits_header_getint</a> (const <a class="el" href="structqfits__header.html">qfits_header</a> *hdr, const char *key, int errval)</td></tr>
-<tr class="memdesc:gaa1d6ee802f52590e0f95f1a11c1107b7"><td class="mdescLeft"> </td><td class="mdescRight">Return the value associated to a key, as an int.  <a href="#gaa1d6ee802f52590e0f95f1a11c1107b7"></a><br/></td></tr>
-<tr class="memitem:ga8c2768d848087b2204eb3ed0bfb147fa"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#ga8c2768d848087b2204eb3ed0bfb147fa">qfits_header_getdouble</a> (const <a class="el" href="structqfits__header.html">qfits_header</a> *hdr, const char *key, double errval)</td></tr>
-<tr class="memdesc:ga8c2768d848087b2204eb3ed0bfb147fa"><td class="mdescLeft"> </td><td class="mdescRight">Return the value associated to a key, as a double.  <a href="#ga8c2768d848087b2204eb3ed0bfb147fa"></a><br/></td></tr>
-<tr class="memitem:gae6cae963a6201a4d013ea288b3bd3a51"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#gae6cae963a6201a4d013ea288b3bd3a51">qfits_header_getboolean</a> (const <a class="el" href="structqfits__header.html">qfits_header</a> *hdr, const char *key, int errval)</td></tr>
-<tr class="memdesc:gae6cae963a6201a4d013ea288b3bd3a51"><td class="mdescLeft"> </td><td class="mdescRight">Return the value associated to a key, as a boolean (int).  <a href="#gae6cae963a6201a4d013ea288b3bd3a51"></a><br/></td></tr>
-<tr class="memitem:ga422380d3cd11eadfac3b20e59e1eaed0"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__header.html#ga422380d3cd11eadfac3b20e59e1eaed0">qfits_header_dump</a> (const <a class="el" href="structqfits__header.html">qfits_header</a> *hdr, FILE *out)</td></tr>
-<tr class="memdesc:ga422380d3cd11eadfac3b20e59e1eaed0"><td class="mdescLeft"> </td><td class="mdescRight">Dump a FITS header to an opened file.  <a href="#ga422380d3cd11eadfac3b20e59e1eaed0"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This file contains definition and related methods for the FITS header structure. This structure is meant to remain opaque to the user, who only accesses it through the dedicated functions.</p>
-<p>The 'keytuple' type is strictly internal to this module. It describes FITS cards as tuples (key,value,comment,line), where key is always a non-NULL character string, value and comment are allowed to be NULL. 'line' is a string containing the line as it has been read from the input FITS file (raw). It is set to NULL if the card is modified later. This allows in output two options: either reconstruct the FITS lines by printing key = value / comment in a FITS-compliant way, or output the [...]
-<p>The following functions are associated methods to this data structure:</p>
-<ul>
-<li>keytuple_new() constructor</li>
-<li>keytuple_del() destructor</li>
-<li>keytuple_dmp() dumps a keytuple to stdout </li>
-</ul>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga7d9424e6358ddf28929c9ead23d4d347"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_header_add </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>val</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>com</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>lin</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Add a new card to a FITS header. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object to modify </td></tr>
-    <tr><td class="paramname">key</td><td>FITS key </td></tr>
-    <tr><td class="paramname">val</td><td>FITS value </td></tr>
-    <tr><td class="paramname">com</td><td>FITS comment </td></tr>
-    <tr><td class="paramname">lin</td><td>FITS original line if exists </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void</dd></dl>
-<p>This function adds a new card into a header, at the one-before-last position, i.e. the entry just before the END entry if it is there. The key must always be a non-NULL string, all other input parameters are allowed to get NULL values. </p>
-
-</div>
-</div>
-<a class="anchor" id="gaaec8669e09dca5f346b92c03844c9f82"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_header_add_after </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>after</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>val</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>com</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>lin</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>add a new card to a FITS header </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object to modify </td></tr>
-    <tr><td class="paramname">after</td><td>Key to specify insertion place </td></tr>
-    <tr><td class="paramname">key</td><td>FITS key </td></tr>
-    <tr><td class="paramname">val</td><td>FITS value </td></tr>
-    <tr><td class="paramname">com</td><td>FITS comment </td></tr>
-    <tr><td class="paramname">lin</td><td>FITS original line if exists </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void</dd></dl>
-<p>Adds a new card to a FITS header, after the specified key. Nothing happens if the specified key is not found in the header. All fields can be NULL, except after and key. </p>
-
-<p>References <a class="el" href="group__qfits__card.html#gadc46a615b643e7f6be067a3028d372af">qfits_expand_keyword()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga561679d8fc1ba9f8b6e1c619e4687154"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_header_append </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>val</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>com</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>lin</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Append a new card to a FITS header. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object to modify </td></tr>
-    <tr><td class="paramname">key</td><td>FITS key </td></tr>
-    <tr><td class="paramname">val</td><td>FITS value </td></tr>
-    <tr><td class="paramname">com</td><td>FITS comment </td></tr>
-    <tr><td class="paramname">lin</td><td>FITS original line if exists </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void</dd></dl>
-<p>Adds a new card in a FITS header as the last one. All fields can be NULL except key. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__header.html#gaeffc1010c25e936de293be0184787b17">qfits_header_copy()</a>, <a class="el" href="group__qfits__header.html#ga3251cd06190404f27a8bdf5caf888c01">qfits_header_default()</a>, <a class="el" href="group__qfits__rw.html#ga162f1d553ce43281b82699c1ca0f14cf">qfits_header_read_hdr()</a>, <a class="el" href="group__qfits__rw.html#ga6155704a411e9be7a2a1ee6b275380f7">qfits_header_read_hdr_string()</a>, <a class="el" href="group__qfits__rw. [...]
-
-</div>
-</div>
-<a class="anchor" id="gaeffc1010c25e936de293be0184787b17"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structqfits__header.html">qfits_header</a>* qfits_header_copy </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>src</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Copy a FITS header. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">src</td><td>Header to replicate </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to newly allocated <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object.</dd></dl>
-<p>Makes a strict copy of all information contained in the source header. The returned header must be freed using qfits_header_destroy. </p>
-
-<p>References <a class="el" href="group__qfits__header.html#ga561679d8fc1ba9f8b6e1c619e4687154">qfits_header_append()</a>, and <a class="el" href="group__qfits__header.html#ga66374136eafc13c56561be2edfd2c9cc">qfits_header_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga3251cd06190404f27a8bdf5caf888c01"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structqfits__header.html">qfits_header</a>* qfits_header_default </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>FITS header default constructor. </p>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object.</dd></dl>
-<p>This is a secondary constructor for a <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object. It returns an allocated linked-list handler containing two cards: the first one (SIMPLE=T) and the last one (END). </p>
-
-<p>References <a class="el" href="group__qfits__header.html#ga561679d8fc1ba9f8b6e1c619e4687154">qfits_header_append()</a>, and <a class="el" href="group__qfits__header.html#ga66374136eafc13c56561be2edfd2c9cc">qfits_header_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2ab695dbc2e17f35645251497d76e54e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_header_del </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Delete a card in a FITS header. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> to modify </td></tr>
-    <tr><td class="paramname">key</td><td>specifies which card to remove </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void</dd></dl>
-<p>Removes a card from a FITS header. The first found card that matches the key is removed. </p>
-
-<p>References <a class="el" href="group__qfits__card.html#gadc46a615b643e7f6be067a3028d372af">qfits_expand_keyword()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gafef6f1ed212ce59e8e393f751077e543"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_header_destroy </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> destructor </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> to deallocate </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void</dd></dl>
-<p>Frees all memory associated to a given <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__rw.html#ga162f1d553ce43281b82699c1ca0f14cf">qfits_header_read_hdr()</a>, <a class="el" href="group__qfits__rw.html#ga6155704a411e9be7a2a1ee6b275380f7">qfits_header_read_hdr_string()</a>, <a class="el" href="group__qfits__rw.html#ga930590f9b28a90dffb66024c96251162">qfits_header_readext()</a>, <a class="el" href="group__qfits__header.html#ga6674ac912c68b117c04c001716140b0f">qfits_header_sort()</a>, <a class="el" href="group__qfits__table.h [...]
-
-</div>
-</div>
-<a class="anchor" id="ga422380d3cd11eadfac3b20e59e1eaed0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_header_dump </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">FILE * </td>
-          <td class="paramname"><em>out</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Dump a FITS header to an opened file. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td>FITS header to dump </td></tr>
-    <tr><td class="paramname">out</td><td>Opened file pointer </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 if Ok, -1 otherwise Dumps a FITS header to an opened file pointer. </dd></dl>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#ga501741264c6698c3625b468da65be774">qfits_save_table_hdrdump()</a>, and <a class="el" href="group__qfits__table.html#ga8d3d9a97097ce0d540845264748f7527">qfits_table_append_xtension_hdr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae6cae963a6201a4d013ea288b3bd3a51"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_header_getboolean </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>errval</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Return the value associated to a key, as a boolean (int). </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> to parse </td></tr>
-    <tr><td class="paramname">key</td><td>key to find </td></tr>
-    <tr><td class="paramname">errval</td><td>default value to return if nothing is found </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int</dd></dl>
-<p>Finds the value associated to the given key and return it as a boolean. Returns errval if no matching key is found or no value is attached. A boolean is here understood as an int taking the value 0 or 1. errval can be set to any other integer value to reflect that nothing was found.</p>
-<p>errval is returned if no matching key is found or no value is attached.</p>
-<p>A true value is any character string beginning with a 'y' (yes), a 't' (true) or the digit '1'. A false value is any character string beginning with a 'n' (no), a 'f' (false) or the digit '0'. </p>
-
-<p>References <a class="el" href="group__qfits__header.html#ga93f06e0a4dc9a377de106de07cb7ac54">qfits_header_getstr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad1c255fa0ba92d7a196161b1d1739824"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_header_getcom </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Return the comment associated to a key, as a string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> to parse </td></tr>
-    <tr><td class="paramname">key</td><td>key to find </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated string</dd></dl>
-<p>Finds the comment associated to the given key and return it as a string. The returned pointer is statically allocated, so do not modify its contents or try to free it.</p>
-<p>Returns NULL if no matching key is found or no comment is attached. </p>
-
-<p>References <a class="el" href="group__qfits__card.html#gadc46a615b643e7f6be067a3028d372af">qfits_expand_keyword()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8c2768d848087b2204eb3ed0bfb147fa"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double qfits_header_getdouble </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">double </td>
-          <td class="paramname"><em>errval</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Return the value associated to a key, as a double. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> to parse </td></tr>
-    <tr><td class="paramname">key</td><td>key to find </td></tr>
-    <tr><td class="paramname">errval</td><td>default value to return if nothing is found </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>double</dd></dl>
-<p>Finds the value associated to the given key and return it as a double. Returns errval if no matching key is found or no value is attached. </p>
-
-<p>References <a class="el" href="group__qfits__header.html#ga93f06e0a4dc9a377de106de07cb7ac54">qfits_header_getstr()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa1d6ee802f52590e0f95f1a11c1107b7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_header_getint </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>errval</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Return the value associated to a key, as an int. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> to parse </td></tr>
-    <tr><td class="paramname">key</td><td>key to find </td></tr>
-    <tr><td class="paramname">errval</td><td>default value to return if nothing is found </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int</dd></dl>
-<p>Finds the value associated to the given key and return it as an int. Returns errval if no matching key is found or no value is attached. </p>
-
-<p>References <a class="el" href="group__qfits__header.html#ga93f06e0a4dc9a377de106de07cb7ac54">qfits_header_getstr()</a>.</p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga4eb87da6644379a22c99eb2cd284ddf5"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_header_getitem </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>idx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>val</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>com</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>lin</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Return the i-th key/val/com/line tuple in a header. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td>Header to consider </td></tr>
-    <tr><td class="paramname">idx</td><td>Index of the requested card </td></tr>
-    <tr><td class="paramname">key</td><td>Output key </td></tr>
-    <tr><td class="paramname">val</td><td>Output value </td></tr>
-    <tr><td class="paramname">com</td><td>Output comment </td></tr>
-    <tr><td class="paramname">lin</td><td>Output initial line </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 if Ok, -1 if error occurred.</dd></dl>
-<p>This function is useful to browse a FITS header object card by card. By iterating on the number of cards (available in the 'n' field of the <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> struct), you can retrieve the FITS lines and their components one by one. Indexes run from 0 to n-1. You can pass NULL values for key, val, com or lin if you are not interested in a given field.</p>
-<div class="fragment"><div class="line">  <span class="keywordtype">int</span> i ;</div>
-<div class="line">  <span class="keywordtype">char</span> key[FITS_LINESZ+1] ;</div>
-<div class="line">  <span class="keywordtype">char</span> val[FITS_LINESZ+1] ;</div>
-<div class="line">  <span class="keywordtype">char</span> com[FITS_LINESZ+1] ;</div>
-<div class="line">  <span class="keywordtype">char</span> lin[FITS_LINESZ+1] ;</div>
-<div class="line"></div>
-<div class="line">  <span class="keywordflow">for</span> (i=0 ; i<hdr->n ; i++) {</div>
-<div class="line">      <a class="code" href="group__qfits__header.html#ga4eb87da6644379a22c99eb2cd284ddf5" title="Return the i-th key/val/com/line tuple in a header.">qfits_header_getitem</a>(hdr, i, key, val, com, lin);</div>
-<div class="line">    printf(<span class="stringliteral">"card[%d] key[%s] val[%s] com[%s]\n"</span>, i, key, val, com);</div>
-<div class="line">  }</div>
-</div><!-- fragment --><p>This function has primarily been written to interface a <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object to other languages (C++/Python). If you are working within a C program, you should use the other header manipulation routines available in this module. </p>
-
-</div>
-</div>
-<a class="anchor" id="ga93f06e0a4dc9a377de106de07cb7ac54"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_header_getstr </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Return the value associated to a key, as a string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> to parse </td></tr>
-    <tr><td class="paramname">key</td><td>key to find </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated string</dd></dl>
-<p>Finds the value associated to the given key and return it as a string. The returned pointer is statically allocated, so do not modify its contents or try to free it.</p>
-<p>Returns NULL if no matching key is found or no value is attached. </p>
-
-<p>References <a class="el" href="group__qfits__card.html#gadc46a615b643e7f6be067a3028d372af">qfits_expand_keyword()</a>.</p>
-
-<p>Referenced by <a class="el" href="group__qfits__header.html#gae6cae963a6201a4d013ea288b3bd3a51">qfits_header_getboolean()</a>, <a class="el" href="group__qfits__header.html#ga8c2768d848087b2204eb3ed0bfb147fa">qfits_header_getdouble()</a>, <a class="el" href="group__qfits__header.html#gaa1d6ee802f52590e0f95f1a11c1107b7">qfits_header_getint()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gadfe9810507edcd87749f9d2b0b0dfbc2"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_header_mod </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>key</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>val</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>com</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Modifies a FITS card. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td><a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> to modify </td></tr>
-    <tr><td class="paramname">key</td><td>FITS key </td></tr>
-    <tr><td class="paramname">val</td><td>FITS value </td></tr>
-    <tr><td class="paramname">com</td><td>FITS comment </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void</dd></dl>
-<p>Finds the first card in the header matching 'key', and replaces its value and comment fields by the provided values. The initial FITS line is set to NULL in the card. </p>
-
-<p>References <a class="el" href="group__qfits__card.html#gadc46a615b643e7f6be067a3028d372af">qfits_expand_keyword()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga66374136eafc13c56561be2edfd2c9cc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structqfits__header.html">qfits_header</a>* qfits_header_new </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>FITS header constructor. </p>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated (empty) <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object.</dd></dl>
-<p>This is the main constructor for a <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object. It returns an allocated linked-list handler with an empty card list. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__header.html#gaeffc1010c25e936de293be0184787b17">qfits_header_copy()</a>, <a class="el" href="group__qfits__header.html#ga3251cd06190404f27a8bdf5caf888c01">qfits_header_default()</a>, <a class="el" href="group__qfits__rw.html#ga162f1d553ce43281b82699c1ca0f14cf">qfits_header_read_hdr()</a>, <a class="el" href="group__qfits__rw.html#ga6155704a411e9be7a2a1ee6b275380f7">qfits_header_read_hdr_string()</a>, <a class="el" href="group__qfits__rw. [...]
-
-</div>
-</div>
-<a class="anchor" id="ga6674ac912c68b117c04c001716140b0f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_header_sort </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfits__header.html">qfits_header</a> ** </td>
-          <td class="paramname"><em>hdr</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Sort a FITS header. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr</td><td>Header to sort (modified) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>-1 in error case, 0 otherwise </dd></dl>
-
-<p>References <a class="el" href="group__qfits__header.html#gafef6f1ed212ce59e8e393f751077e543">qfits_header_destroy()</a>, and <a class="el" href="group__qfits__header.html#ga66374136eafc13c56561be2edfd2c9cc">qfits_header_new()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__image.html b/libqfits/html/group__qfits__image.html
deleted file mode 100644
index ef80528..0000000
--- a/libqfits/html/group__qfits__image.html
+++ /dev/null
@@ -1,238 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Pixel loader for FITS images.</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Pixel loader for FITS images.</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:gafa0ab253333d82171d5d17f4a36b4a2a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init</a> (<a class="el" href="structqfitsloader.html">qfitsloader</a> *ql)</td></tr>
-<tr class="memdesc:gafa0ab253333d82171d5d17f4a36b4a2a"><td class="mdescLeft"> </td><td class="mdescRight">Initialize a qfitsloader control object.  <a href="#gafa0ab253333d82171d5d17f4a36b4a2a"></a><br/></td></tr>
-<tr class="memitem:ga7b44eb748f6b8079c5fb270bbe78444c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__image.html#ga7b44eb748f6b8079c5fb270bbe78444c">qfits_loadpix</a> (<a class="el" href="structqfitsloader.html">qfitsloader</a> *ql)</td></tr>
-<tr class="memdesc:ga7b44eb748f6b8079c5fb270bbe78444c"><td class="mdescLeft"> </td><td class="mdescRight">Load a pixel buffer for one complete image.  <a href="#ga7b44eb748f6b8079c5fb270bbe78444c"></a><br/></td></tr>
-<tr class="memitem:ga88387ed921c4cd508b8e78b86c7cd23f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window</a> (<a class="el" href="structqfitsloader.html">qfitsloader</a> *ql, int llx, int lly, int urx, int ury)</td></tr>
-<tr class="memdesc:ga88387ed921c4cd508b8e78b86c7cd23f"><td class="mdescLeft"> </td><td class="mdescRight">Load a pixel buffer for one image window.  <a href="#ga88387ed921c4cd508b8e78b86c7cd23f"></a><br/></td></tr>
-<tr class="memitem:gabd911794a1a8798df0b5ad5cc1719472"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__image.html#gabd911794a1a8798df0b5ad5cc1719472">qfits_pixdump</a> (<a class="el" href="structqfitsdumper.html">qfitsdumper</a> *qd)</td></tr>
-<tr class="memdesc:gabd911794a1a8798df0b5ad5cc1719472"><td class="mdescLeft"> </td><td class="mdescRight">Dump a pixel buffer to an output FITS file in append mode.  <a href="#gabd911794a1a8798df0b5ad5cc1719472"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga7b44eb748f6b8079c5fb270bbe78444c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_loadpix </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfitsloader.html">qfitsloader</a> * </td>
-          <td class="paramname"><em>ql</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Load a pixel buffer for one complete image. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ql</td><td>Allocated and initialized qfitsloader control object. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 if Ok, -1 if error occurred. </dd></dl>
-<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f" title="Load a pixel buffer for one image window.">qfits_loadpix_window</a> </dd></dl>
-
-<p>References <a class="el" href="structqfitsloader.html#aeba7b81df69f628afada32fe32dddde6">qfitsloader::lx</a>, <a class="el" href="structqfitsloader.html#a7afc84e3bb864ba88a8f9a5b72c49a7f">qfitsloader::ly</a>, and <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga88387ed921c4cd508b8e78b86c7cd23f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_loadpix_window </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfitsloader.html">qfitsloader</a> * </td>
-          <td class="paramname"><em>ql</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>llx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>lly</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>urx</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>ury</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Load a pixel buffer for one image window. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ql</td><td>Allocated and initialized qfitsloader control object. </td></tr>
-    <tr><td class="paramname">llx</td><td></td></tr>
-    <tr><td class="paramname">lly</td><td>Position of the window (start with (1,1)) </td></tr>
-    <tr><td class="paramname">urx</td><td></td></tr>
-    <tr><td class="paramname">ury</td><td></td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 if Ok, -1 if error occurred.</dd></dl>
-<p>This function performs a load of a pixel buffer into memory. It expects an allocated and initialized qfitsloader object in input. See <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a" title="Initialize a qfitsloader control object.">qfitsloader_init()</a> about initializing the object.</p>
-<p>This function will fill up the ibuf/fbuf/dbuf field, depending on the requested pixel type (resp. int, float or double).</p>
-<p>If llx lly urx and ury do not specify the whole image, ql->map must be 0, we do not want to mmap a file an load only a part of it. </p>
-
-<p>References <a class="el" href="structqfitsloader.html#a7432f89e962800dee98dd1096fda4bbe">qfitsloader::_init</a>, <a class="el" href="structqfitsloader.html#a7f9d024efa767e451de26daf5ba4ffed">qfitsloader::bitpix</a>, <a class="el" href="structqfitsloader.html#a88c2700a244a127ee5438cbacd6a8b0f">qfitsloader::bscale</a>, <a class="el" href="structqfitsloader.html#a79bc4b4ffc7df8d63acef6945bc92289">qfitsloader::bzero</a>, <a class="el" href="structqfitsloader.html#abc565668aa520eef363c6052 [...]
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga7b44eb748f6b8079c5fb270bbe78444c">qfits_loadpix()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gabd911794a1a8798df0b5ad5cc1719472"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_pixdump </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfitsdumper.html">qfitsdumper</a> * </td>
-          <td class="paramname"><em>qd</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Dump a pixel buffer to an output FITS file in append mode. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">qd</td><td>qfitsdumper control object. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 if Ok, -1 otherwise.</dd></dl>
-<p>This function takes in input a qfitsdumper control object. This object must be allocated beforehand and contain valid references to the data to save, and how to save it.</p>
-<p>The minimum fields to fill are:</p>
-<ul>
-<li>filename: Name of the FITS file to dump to.</li>
-<li>npix: Number of pixels in the buffer to be dumped.</li>
-<li>ptype: Type of the passed buffer (PTYPE_FLOAT, PTYPE_INT, PTYPE_DOUBLE)</li>
-<li>out_ptype: Requested FITS BITPIX for the output.</li>
-</ul>
-<p>One of the following fields must point to the corresponding pixel buffer:</p>
-<ul>
-<li>ibuf for an int pixel buffer (ptype=PTYPE_INT)</li>
-<li>fbuf for a float pixel buffer (ptype=PTYPE_FLOAT)</li>
-<li>dbuf for a double pixel buffer (ptype=PTYPE_DOUBLE)</li>
-</ul>
-<p>This is a fairly low-level function, in the sense that it does not check that the output file already contains a proper header or even that the file it is appending to is indeed a FITS file. It will convert the pixel buffer to the requested BITPIX type and append the data to the file, without padding with zeros. See <a class="el" href="group__qfits__rw.html#gaf048e797ef10ca202581436833b37a7d" title="Pad an existing file with zeros to a multiple of 2880.">qfits_zeropad()</a> about padd [...]
-<p>If the given output file name is "STDOUT" (all caps), the dump will be performed to stdout. </p>
-
-<p>References <a class="el" href="structqfitsdumper.html#a149090f40a5a6954ce278d140f524f00">qfitsdumper::dbuf</a>, <a class="el" href="structqfitsdumper.html#a4ee45b2224bccef4014771f73ab20401">qfitsdumper::fbuf</a>, <a class="el" href="structqfitsdumper.html#a6c00e4a857fb7babd7b56e5d57b0d65b">qfitsdumper::filename</a>, <a class="el" href="structqfitsdumper.html#afeef2d85580153a3af53afe7a7eefb9d">qfitsdumper::ibuf</a>, <a class="el" href="structqfitsdumper.html#aec1e2350cff8bff372150d6c15 [...]
-
-</div>
-</div>
-<a class="anchor" id="gafa0ab253333d82171d5d17f4a36b4a2a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader_init </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfitsloader.html">qfitsloader</a> * </td>
-          <td class="paramname"><em>ql</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Initialize a qfitsloader control object. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ql</td><td>qfitsloader object to initialize. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 if Ok, -1 if error occurred.</dd></dl>
-<p>This function expects a qfitsloader object with a number of input fields correctly filled in. The minimum fields to set are:</p>
-<ul>
-<li>filename: Name of the file to examine.</li>
-<li>xtnum: Extension number to examine (0 for main section).</li>
-<li>pnum: Plane number in the requested extension.</li>
-<li>map : loading mode - flag to know if the file has to be mapped</li>
-</ul>
-<p>You can go ahead with these fields only if you only want to get file information for this plane in this extension. If you want to later load the plane, you must additionally fill the 'ptype' field to a correct value (PTYPE_INT, PTYPE_FLOAT, PTYPE_DOUBLE) before calling <a class="el" href="group__qfits__image.html#ga7b44eb748f6b8079c5fb270bbe78444c" title="Load a pixel buffer for one complete image.">qfits_loadpix()</a> so that it knows which conversion to perform.</p>
-<p>This function is basically a probe sent on a FITS file to ask qfits if loading these data would be Ok or not. The actual loading is performed by <a class="el" href="group__qfits__image.html#ga7b44eb748f6b8079c5fb270bbe78444c" title="Load a pixel buffer for one complete image.">qfits_loadpix()</a> afterwards. </p>
-
-<p>References <a class="el" href="structqfitsloader.html#a7432f89e962800dee98dd1096fda4bbe">qfitsloader::_init</a>, <a class="el" href="structqfitsloader.html#a7f9d024efa767e451de26daf5ba4ffed">qfitsloader::bitpix</a>, <a class="el" href="structqfitsloader.html#a88c2700a244a127ee5438cbacd6a8b0f">qfitsloader::bscale</a>, <a class="el" href="structqfitsloader.html#a79bc4b4ffc7df8d63acef6945bc92289">qfitsloader::bzero</a>, <a class="el" href="structqfitsloader.html#ae4efb9ea8659659cc35080f7 [...]
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__md5.html b/libqfits/html/group__qfits__md5.html
deleted file mode 100644
index 465ad3b..0000000
--- a/libqfits/html/group__qfits__md5.html
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: FITS data block MD5 computation routine</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">FITS data block MD5 computation routine</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga6cca6936b0596d532bd2272e65aa642d"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__md5.html#ga6cca6936b0596d532bd2272e65aa642d">qfits_datamd5</a> (const char *filename)</td></tr>
-<tr class="memdesc:ga6cca6936b0596d532bd2272e65aa642d"><td class="mdescLeft"> </td><td class="mdescRight">Compute the MD5 hash of data zones in a FITS file.  <a href="#ga6cca6936b0596d532bd2272e65aa642d"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module offers MD5 computation over all data areas of a FITS file. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga6cca6936b0596d532bd2272e65aa642d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* qfits_datamd5 </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Compute the MD5 hash of data zones in a FITS file. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the FITS file to examine. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 statically allocated character string, or NULL.</dd></dl>
-<p>This function expects the name of a FITS file. It will compute the MD5 hash on all data blocks in the main data section and possibly extensions (including zero-padding blocks if necessary) and return it as a string suitable for inclusion into a FITS keyword.</p>
-<p>The returned string is statically allocated inside this function, so do not free it or modify it. This function returns NULL in case of error. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#ga501741264c6698c3625b468da65be774">qfits_save_table_hdrdump()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__memory.html b/libqfits/html/group__qfits__memory.html
deleted file mode 100644
index a9b1ab4..0000000
--- a/libqfits/html/group__qfits__memory.html
+++ /dev/null
@@ -1,483 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: POSIX-compatible extended memory handling</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">POSIX-compatible extended memory handling</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga3f7de886609ee60fe55a310ada0d0871"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__memory.html#ga3f7de886609ee60fe55a310ada0d0871">qfits_memory_malloc</a> (size_t size, const char *filename, int lineno)</td></tr>
-<tr class="memdesc:ga3f7de886609ee60fe55a310ada0d0871"><td class="mdescLeft"> </td><td class="mdescRight">Allocate memory.  <a href="#ga3f7de886609ee60fe55a310ada0d0871"></a><br/></td></tr>
-<tr class="memitem:gabe151b6ddc8cd687d96d244fa4555897"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__memory.html#gabe151b6ddc8cd687d96d244fa4555897">qfits_memory_calloc</a> (size_t nmemb, size_t size, const char *filename, int lineno)</td></tr>
-<tr class="memdesc:gabe151b6ddc8cd687d96d244fa4555897"><td class="mdescLeft"> </td><td class="mdescRight">Allocate memory.  <a href="#gabe151b6ddc8cd687d96d244fa4555897"></a><br/></td></tr>
-<tr class="memitem:gafda029a79898b0f019bec5ca17f184ed"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__memory.html#gafda029a79898b0f019bec5ca17f184ed">qfits_memory_falloc</a> (char *name, size_t offs, size_t *size, const char *srcname, int srclin)</td></tr>
-<tr class="memdesc:gafda029a79898b0f019bec5ca17f184ed"><td class="mdescLeft"> </td><td class="mdescRight">Map a file's contents to memory as a char pointer.  <a href="#gafda029a79898b0f019bec5ca17f184ed"></a><br/></td></tr>
-<tr class="memitem:ga95375111742d72b8f467cec2a97c649d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__memory.html#ga95375111742d72b8f467cec2a97c649d">qfits_memory_fdealloc</a> (void *ptr, size_t offs, size_t size, const char *filename, int lineno)</td></tr>
-<tr class="memdesc:ga95375111742d72b8f467cec2a97c649d"><td class="mdescLeft"> </td><td class="mdescRight">Free memory that has been allocated with falloc.  <a href="#ga95375111742d72b8f467cec2a97c649d"></a><br/></td></tr>
-<tr class="memitem:ga991bc243fb22e07909ba2374cce6599c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__memory.html#ga991bc243fb22e07909ba2374cce6599c">qfits_memory_free</a> (void *ptr, const char *filename, int lineno)</td></tr>
-<tr class="memdesc:ga991bc243fb22e07909ba2374cce6599c"><td class="mdescLeft"> </td><td class="mdescRight">Free memory.  <a href="#ga991bc243fb22e07909ba2374cce6599c"></a><br/></td></tr>
-<tr class="memitem:ga70656f7702753ca58cb908219246a5f1"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__memory.html#ga70656f7702753ca58cb908219246a5f1">qfits_memory_realloc</a> (void *ptr, size_t size, const char *filename, int lineno)</td></tr>
-<tr class="memdesc:ga70656f7702753ca58cb908219246a5f1"><td class="mdescLeft"> </td><td class="mdescRight">Re-Allocate memory.  <a href="#ga70656f7702753ca58cb908219246a5f1"></a><br/></td></tr>
-<tr class="memitem:gaa301522a5f802cd49516569fb11a00dc"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__memory.html#gaa301522a5f802cd49516569fb11a00dc">qfits_memory_strdup</a> (const char *s, const char *filename, int lineno)</td></tr>
-<tr class="memdesc:gaa301522a5f802cd49516569fb11a00dc"><td class="mdescLeft"> </td><td class="mdescRight">Duplicate a string using calloc.  <a href="#gaa301522a5f802cd49516569fb11a00dc"></a><br/></td></tr>
-<tr class="memitem:gaeddd5339de68f2edb2ab78b43d0c2ffa"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__memory.html#gaeddd5339de68f2edb2ab78b43d0c2ffa">qfits_memory_status</a> (void)</td></tr>
-<tr class="memdesc:gaeddd5339de68f2edb2ab78b43d0c2ffa"><td class="mdescLeft"> </td><td class="mdescRight">Display memory status information.  <a href="#gaeddd5339de68f2edb2ab78b43d0c2ffa"></a><br/></td></tr>
-<tr class="memitem:gabccfc4a63280b6b70ad8145668348423"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__memory.html#gabccfc4a63280b6b70ad8145668348423">qfits_memory_is_empty</a> (void)</td></tr>
-<tr class="memdesc:gabccfc4a63280b6b70ad8145668348423"><td class="mdescLeft"> </td><td class="mdescRight">Tell if there is still some memory allocated.  <a href="#gabccfc4a63280b6b70ad8145668348423"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>qfits_memory is a small and efficient module offering memory extension capabitilies to ANSI C programs running on POSIX-compliant systems. It offers several useful features such as memory leak detection, protection for free on NULL or unallocated pointers, and virtually unlimited memory space. qfits_memory requires the <code>mmap()</code> system call to be implemented in the local C library to function. This module has been tested on a number of current Unix * flavours and is reported [...]
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gabe151b6ddc8cd687d96d244fa4555897"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void* qfits_memory_calloc </td>
-          <td>(</td>
-          <td class="paramtype">size_t </td>
-          <td class="paramname"><em>nmemb</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">size_t </td>
-          <td class="paramname"><em>size</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>lineno</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Allocate memory. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">nmemb</td><td>Number of elements to allocate. </td></tr>
-    <tr><td class="paramname">size</td><td>Size (in bytes) of each element. </td></tr>
-    <tr><td class="paramname">filename</td><td>Name of the file where the alloc took place. </td></tr>
-    <tr><td class="paramname">lineno</td><td>Line number in the file. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated pointer.</dd></dl>
-<p>This function is a replacement call for calloc. It should never be called directly but through a macro instead, as:</p>
-<div class="fragment"><div class="line">  <a class="code" href="group__qfits__memory.html#gabe151b6ddc8cd687d96d244fa4555897" title="Allocate memory.">qfits_memory_calloc</a>(nmemb, size, <strong>FILE</strong>, <strong>LINE</strong>)</div>
-</div><!-- fragment --> 
-<p>References <a class="el" href="group__qfits__memory.html#ga3f7de886609ee60fe55a310ada0d0871">qfits_memory_malloc()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gafda029a79898b0f019bec5ca17f184ed"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_memory_falloc </td>
-          <td>(</td>
-          <td class="paramtype">char * </td>
-          <td class="paramname"><em>name</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">size_t </td>
-          <td class="paramname"><em>offs</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">size_t * </td>
-          <td class="paramname"><em>size</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>srcname</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>srclin</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Map a file's contents to memory as a char pointer. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">name</td><td>Name of the file to map </td></tr>
-    <tr><td class="paramname">offs</td><td>Offset to the first mapped byte in file. </td></tr>
-    <tr><td class="paramname">size</td><td>Returned size of the mapped file in bytes. </td></tr>
-    <tr><td class="paramname">srcname</td><td>Name of the source file making the call. </td></tr>
-    <tr><td class="paramname">srclin</td><td>Line # where the call was made. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>A pointer to char, to be freed using <a class="el" href="group__qfits__memory.html#ga991bc243fb22e07909ba2374cce6599c" title="Free memory.">qfits_memory_free()</a>.</dd></dl>
-<p>This function takes in input the name of a file. It tries to map the file into memory and if it succeeds, returns the file's contents as a char pointer. It also modifies the input size variable to be the size of the mapped file in bytes. This function is normally never directly called but through the falloc() macro.</p>
-<p>The offset indicates the starting point for the mapping, i.e. if you are not interested in mapping the whole file but only from a given place.</p>
-<p>The returned pointer ptr must be deallocated with qfits_memory_fdealloc(ptr) </p>
-
-</div>
-</div>
-<a class="anchor" id="ga95375111742d72b8f467cec2a97c649d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_memory_fdealloc </td>
-          <td>(</td>
-          <td class="paramtype">void * </td>
-          <td class="paramname"><em>ptr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">size_t </td>
-          <td class="paramname"><em>offs</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">size_t </td>
-          <td class="paramname"><em>size</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>lineno</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Free memory that has been allocated with falloc. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ptr</td><td>Pointer to free. </td></tr>
-    <tr><td class="paramname">offs</td><td>Offset to the first mapped byte in file. </td></tr>
-    <tr><td class="paramname">size</td><td>size to unmap </td></tr>
-    <tr><td class="paramname">filename</td><td>Name of the file where the dealloc took place. </td></tr>
-    <tr><td class="paramname">lineno</td><td>Line number in the file. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>
-
-</div>
-</div>
-<a class="anchor" id="ga991bc243fb22e07909ba2374cce6599c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_memory_free </td>
-          <td>(</td>
-          <td class="paramtype">void * </td>
-          <td class="paramname"><em>ptr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>lineno</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Free memory. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ptr</td><td>Pointer to free. </td></tr>
-    <tr><td class="paramname">filename</td><td>Name of the file where the dealloc took place. </td></tr>
-    <tr><td class="paramname">lineno</td><td>Line number in the file. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void</dd></dl>
-<p>Free the memory associated to a given pointer. Prints out a warning on stderr if the requested pointer is NULL or cannot be found in the extended memory table. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__memory.html#ga70656f7702753ca58cb908219246a5f1">qfits_memory_realloc()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gabccfc4a63280b6b70ad8145668348423"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_memory_is_empty </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Tell if there is still some memory allocated. </p>
-<dl class="section return"><dt>Returns:</dt><dd>1 if the memory table is tempty, 0 if no, -1 if the memory model is off </dd></dl>
-
-</div>
-</div>
-<a class="anchor" id="ga3f7de886609ee60fe55a310ada0d0871"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void* qfits_memory_malloc </td>
-          <td>(</td>
-          <td class="paramtype">size_t </td>
-          <td class="paramname"><em>size</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>lineno</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Allocate memory. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">size</td><td>Size (in bytes) to allocate. </td></tr>
-    <tr><td class="paramname">filename</td><td>Name of the file where the alloc took place. </td></tr>
-    <tr><td class="paramname">lineno</td><td>Line number in the file. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated pointer.</dd></dl>
-<p>This function is a replacement call for malloc. It should never be called directly but through a macro instead, as:</p>
-<div class="fragment"><div class="line">  <a class="code" href="group__qfits__memory.html#ga3f7de886609ee60fe55a310ada0d0871" title="Allocate memory.">qfits_memory_malloc</a>(size, <strong>FILE</strong>, <strong>LINE</strong>)</div>
-</div><!-- fragment --> 
-<p>Referenced by <a class="el" href="group__qfits__memory.html#gabe151b6ddc8cd687d96d244fa4555897">qfits_memory_calloc()</a>, <a class="el" href="group__qfits__memory.html#ga70656f7702753ca58cb908219246a5f1">qfits_memory_realloc()</a>, and <a class="el" href="group__qfits__memory.html#gaa301522a5f802cd49516569fb11a00dc">qfits_memory_strdup()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga70656f7702753ca58cb908219246a5f1"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void* qfits_memory_realloc </td>
-          <td>(</td>
-          <td class="paramtype">void * </td>
-          <td class="paramname"><em>ptr</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">size_t </td>
-          <td class="paramname"><em>size</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>lineno</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Re-Allocate memory. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">ptr</td><td>Pointer to free. </td></tr>
-    <tr><td class="paramname">size</td><td>Size (in bytes) to allocate. </td></tr>
-    <tr><td class="paramname">filename</td><td>Name of the file where the alloc took place. </td></tr>
-    <tr><td class="paramname">lineno</td><td>Line number in the file. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated pointer.</dd></dl>
-<p>This function is a replacement call for realloc. It should never be called directly but through a macro instead, as:</p>
-<div class="fragment"><div class="line">  <a class="code" href="group__qfits__memory.html#ga70656f7702753ca58cb908219246a5f1" title="Re-Allocate memory.">qfits_memory_realloc</a>(nmemb, size, <strong>FILE</strong>, <strong>LINE</strong>)</div>
-</div><!-- fragment --> 
-<p>References <a class="el" href="group__qfits__memory.html#ga991bc243fb22e07909ba2374cce6599c">qfits_memory_free()</a>, and <a class="el" href="group__qfits__memory.html#ga3f7de886609ee60fe55a310ada0d0871">qfits_memory_malloc()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaeddd5339de68f2edb2ab78b43d0c2ffa"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_memory_status </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Display memory status information. </p>
-<dl class="section return"><dt>Returns:</dt><dd>void</dd></dl>
-<p>This function is meant for debugging purposes, but it is recommended to call it at the end of every executable making use of the extended memory features. </p>
-
-</div>
-</div>
-<a class="anchor" id="gaa301522a5f802cd49516569fb11a00dc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_memory_strdup </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>s</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>lineno</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Duplicate a string using calloc. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">s</td><td>String to duplicate. </td></tr>
-    <tr><td class="paramname">filename</td><td>Name of the file where the call took place. </td></tr>
-    <tr><td class="paramname">lineno</td><td>Line number in the file. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>1 newly allocated character string.</dd></dl>
-<p>This function calls in turn calloc to perform the allocation. It should never be called directly but only through a macro, like:</p>
-<div class="fragment"><div class="line">  <a class="code" href="group__qfits__memory.html#gaa301522a5f802cd49516569fb11a00dc" title="Duplicate a string using calloc.">qfits_memory_strdup</a>(s, __FILE__, __LINE__)</div>
-</div><!-- fragment --><p>This function calls <a class="el" href="group__qfits__memory.html#ga3f7de886609ee60fe55a310ada0d0871" title="Allocate memory.">qfits_memory_malloc()</a> to do the allocation. </p>
-
-<p>References <a class="el" href="group__qfits__memory.html#ga3f7de886609ee60fe55a310ada0d0871">qfits_memory_malloc()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__rw.html b/libqfits/html/group__qfits__rw.html
deleted file mode 100644
index 8b97c0b..0000000
--- a/libqfits/html/group__qfits__rw.html
+++ /dev/null
@@ -1,386 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: FITS header reading/writing</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">FITS header reading/writing</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga421b5a3c51be68732e07633657b378e3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structqfits__header.html">qfits_header</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__rw.html#ga421b5a3c51be68732e07633657b378e3">qfits_header_read</a> (const char *filename)</td></tr>
-<tr class="memdesc:ga421b5a3c51be68732e07633657b378e3"><td class="mdescLeft"> </td><td class="mdescRight">Read a FITS header from a file to an internal structure.  <a href="#ga421b5a3c51be68732e07633657b378e3"></a><br/></td></tr>
-<tr class="memitem:ga162f1d553ce43281b82699c1ca0f14cf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structqfits__header.html">qfits_header</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__rw.html#ga162f1d553ce43281b82699c1ca0f14cf">qfits_header_read_hdr</a> (const char *filename)</td></tr>
-<tr class="memdesc:ga162f1d553ce43281b82699c1ca0f14cf"><td class="mdescLeft"> </td><td class="mdescRight">Read a FITS header from a 'hdr' file.  <a href="#ga162f1d553ce43281b82699c1ca0f14cf"></a><br/></td></tr>
-<tr class="memitem:ga6155704a411e9be7a2a1ee6b275380f7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structqfits__header.html">qfits_header</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__rw.html#ga6155704a411e9be7a2a1ee6b275380f7">qfits_header_read_hdr_string</a> (const unsigned char *hdr_str, int nb_char)</td></tr>
-<tr class="memdesc:ga6155704a411e9be7a2a1ee6b275380f7"><td class="mdescLeft"> </td><td class="mdescRight">Read a FITS header from a 'hdr' string.  <a href="#ga6155704a411e9be7a2a1ee6b275380f7"></a><br/></td></tr>
-<tr class="memitem:ga930590f9b28a90dffb66024c96251162"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structqfits__header.html">qfits_header</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__rw.html#ga930590f9b28a90dffb66024c96251162">qfits_header_readext</a> (const char *filename, int xtnum)</td></tr>
-<tr class="memdesc:ga930590f9b28a90dffb66024c96251162"><td class="mdescLeft"> </td><td class="mdescRight">Read an extension header from a FITS file.  <a href="#ga930590f9b28a90dffb66024c96251162"></a><br/></td></tr>
-<tr class="memitem:gaf048e797ef10ca202581436833b37a7d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__rw.html#gaf048e797ef10ca202581436833b37a7d">qfits_zeropad</a> (const char *filename)</td></tr>
-<tr class="memdesc:gaf048e797ef10ca202581436833b37a7d"><td class="mdescLeft"> </td><td class="mdescRight">Pad an existing file with zeros to a multiple of 2880.  <a href="#gaf048e797ef10ca202581436833b37a7d"></a><br/></td></tr>
-<tr class="memitem:ga7315ec6b99b4da3af2059f988ffc9c9c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__rw.html#ga7315ec6b99b4da3af2059f988ffc9c9c">qfits_is_fits</a> (const char *filename)</td></tr>
-<tr class="memdesc:ga7315ec6b99b4da3af2059f988ffc9c9c"><td class="mdescLeft"> </td><td class="mdescRight">Identify if a file is a FITS file.  <a href="#ga7315ec6b99b4da3af2059f988ffc9c9c"></a><br/></td></tr>
-<tr class="memitem:ga98043b1322f502acab5b99afbcb8165a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__rw.html#ga98043b1322f502acab5b99afbcb8165a">qfits_get_hdrinfo</a> (const char *filename, int xtnum, int *seg_start, int *seg_size)</td></tr>
-<tr class="memdesc:ga98043b1322f502acab5b99afbcb8165a"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve offset to start and size of a header in a FITS file.  <a href="#ga98043b1322f502acab5b99afbcb8165a"></a><br/></td></tr>
-<tr class="memitem:ga26382a339b6a5ca0843dec82dc78be28"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__rw.html#ga26382a339b6a5ca0843dec82dc78be28">qfits_get_datinfo</a> (const char *filename, int xtnum, int *seg_start, int *seg_size)</td></tr>
-<tr class="memdesc:ga26382a339b6a5ca0843dec82dc78be28"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve offset to start and size of a data section in a file.  <a href="#ga26382a339b6a5ca0843dec82dc78be28"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga26382a339b6a5ca0843dec82dc78be28"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_get_datinfo </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>xtnum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>seg_start</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>seg_size</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Retrieve offset to start and size of a data section in a file. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the file to examine. </td></tr>
-    <tr><td class="paramname">xtnum</td><td>Extension number (0 for main). </td></tr>
-    <tr><td class="paramname">seg_start</td><td>Segment start in bytes (output). </td></tr>
-    <tr><td class="paramname">seg_size</td><td>Segment size in bytes (output). </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 if Ok, -1 otherwise.</dd></dl>
-<p>This function retrieves the two most important informations about a data section in a FITS file: the offset to its beginning, and the size of the section in bytes. Both values are returned in the passed pointers to ints. It is Ok to pass NULL for any pointer if you do not want to retrieve the associated value.</p>
-<p>You must provide an extension number for the header, 0 meaning the main header in the file. </p>
-
-<p>References <a class="el" href="group__qfits__cache.html#ga404fe43b87bdb3ef2daea6871031a0bc">qfits_query()</a>.</p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gae7aafce3d040136c4fb5882ad5a6344e">qfits_table_open()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga98043b1322f502acab5b99afbcb8165a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_get_hdrinfo </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>xtnum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>seg_start</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>seg_size</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Retrieve offset to start and size of a header in a FITS file. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the file to examine </td></tr>
-    <tr><td class="paramname">xtnum</td><td>Extension number (0 for main) </td></tr>
-    <tr><td class="paramname">seg_start</td><td>Segment start in bytes (output) </td></tr>
-    <tr><td class="paramname">seg_size</td><td>Segment size in bytes (output) </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 if Ok, -1 otherwise.</dd></dl>
-<p>This function retrieves the two most important informations about a header in a FITS file: the offset to its beginning, and the size of the header in bytes. Both values are returned in the passed pointers to ints. It is Ok to pass NULL for any pointer if you do not want to retrieve the associated value.</p>
-<p>You must provide an extension number for the header, 0 meaning the main header in the file. </p>
-
-<p>References <a class="el" href="group__qfits__cache.html#ga404fe43b87bdb3ef2daea6871031a0bc">qfits_query()</a>.</p>
-
-<p>Referenced by <a class="el" href="group__qfits__rw.html#ga930590f9b28a90dffb66024c96251162">qfits_header_readext()</a>, <a class="el" href="group__qfits__tools.html#gace22858611228d491326425cb8ddc9b8">qfits_query_card()</a>, <a class="el" href="group__qfits__tools.html#gae2889b70d541dcd43796f1f6c352467a">qfits_query_ext()</a>, and <a class="el" href="group__qfits__tools.html#ga7d24df36f71c8e27215f3eada5089b0f">qfits_replace_card()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga421b5a3c51be68732e07633657b378e3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structqfits__header.html">qfits_header</a>* qfits_header_read </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read a FITS header from a file to an internal structure. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the file to be read </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to newly allocated <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> or NULL in error case.</dd></dl>
-<p>This function parses a FITS (main) header, and returns an allocated <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object. The <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object contains a linked-list of key "tuples". A key tuple contains:</p>
-<ul>
-<li>A keyword</li>
-<li>A value</li>
-<li>A comment</li>
-<li>An original FITS line (as read from the input file)</li>
-</ul>
-<p>Direct access to the structure is not foreseen, use accessor functions in fits_h.h</p>
-<p>Value, comment, and original line might be NULL pointers. </p>
-
-<p>References <a class="el" href="group__qfits__rw.html#ga930590f9b28a90dffb66024c96251162">qfits_header_readext()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga162f1d553ce43281b82699c1ca0f14cf"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structqfits__header.html">qfits_header</a>* qfits_header_read_hdr </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read a FITS header from a 'hdr' file. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the file to be read </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to newly allocated <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> or NULL in error case</dd></dl>
-<p>This function parses a 'hdr' file, and returns an allocated <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object. A hdr file is an ASCII format were the header is written with a carriage return after each line. The command dfits typically displays a hdr file. </p>
-
-<p>References <a class="el" href="group__qfits__card.html#ga9b5f07bc890ed0026a784adf93c4f3cd">qfits_getcomment()</a>, <a class="el" href="group__qfits__card.html#gaf7e573cc540a3f45b8d37a41a58c5460">qfits_getkey()</a>, <a class="el" href="group__qfits__card.html#ga679cc3b9aee2120740a2d02f10625b98">qfits_getvalue()</a>, <a class="el" href="group__qfits__header.html#ga561679d8fc1ba9f8b6e1c619e4687154">qfits_header_append()</a>, <a class="el" href="group__qfits__header.html#gafef6f1ed212ce59 [...]
-
-</div>
-</div>
-<a class="anchor" id="ga6155704a411e9be7a2a1ee6b275380f7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structqfits__header.html">qfits_header</a>* qfits_header_read_hdr_string </td>
-          <td>(</td>
-          <td class="paramtype">const unsigned char * </td>
-          <td class="paramname"><em>hdr_str</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nb_char</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read a FITS header from a 'hdr' string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">hdr_str</td><td>String containing the hdr file </td></tr>
-    <tr><td class="paramname">nb_char</td><td>Number of characters in the string </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to newly allocated <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> or NULL in error case</dd></dl>
-<p>This function parses a 'hdr' string, and returns an allocated <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> object. </p>
-
-<p>References <a class="el" href="group__qfits__card.html#ga9b5f07bc890ed0026a784adf93c4f3cd">qfits_getcomment()</a>, <a class="el" href="group__qfits__card.html#gaf7e573cc540a3f45b8d37a41a58c5460">qfits_getkey()</a>, <a class="el" href="group__qfits__card.html#ga679cc3b9aee2120740a2d02f10625b98">qfits_getvalue()</a>, <a class="el" href="group__qfits__header.html#ga561679d8fc1ba9f8b6e1c619e4687154">qfits_header_append()</a>, <a class="el" href="group__qfits__header.html#gafef6f1ed212ce59 [...]
-
-</div>
-</div>
-<a class="anchor" id="ga930590f9b28a90dffb66024c96251162"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structqfits__header.html">qfits_header</a>* qfits_header_readext </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>xtnum</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read an extension header from a FITS file. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the FITS file to read </td></tr>
-    <tr><td class="paramname">xtnum</td><td>Extension number to read, starting from 0. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Newly allocated <a class="el" href="structqfits__header.html" title="FITS header object.">qfits_header</a> structure.</dd></dl>
-<p>Strictly similar to <a class="el" href="group__qfits__rw.html#ga421b5a3c51be68732e07633657b378e3" title="Read a FITS header from a file to an internal structure.">qfits_header_read()</a> but reads headers from extensions instead. If the requested xtension is 0, this function returns the main header.</p>
-<p>Returns NULL in case of error. </p>
-
-<p>References <a class="el" href="group__qfits__rw.html#ga98043b1322f502acab5b99afbcb8165a">qfits_get_hdrinfo()</a>, <a class="el" href="group__qfits__card.html#ga9b5f07bc890ed0026a784adf93c4f3cd">qfits_getcomment()</a>, <a class="el" href="group__qfits__card.html#gaf7e573cc540a3f45b8d37a41a58c5460">qfits_getkey()</a>, <a class="el" href="group__qfits__card.html#ga679cc3b9aee2120740a2d02f10625b98">qfits_getvalue()</a>, <a class="el" href="group__qfits__header.html#ga561679d8fc1ba9f8b6e1c [...]
-
-<p>Referenced by <a class="el" href="group__qfits__rw.html#ga421b5a3c51be68732e07633657b378e3">qfits_header_read()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7315ec6b99b4da3af2059f988ffc9c9c"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_is_fits </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Identify if a file is a FITS file. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>name of the file to check </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0, 1, or -1</dd></dl>
-<p>Returns 1 if the file name looks like a valid FITS file. Returns 0 else. If the file does not exist, returns -1. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gae7aafce3d040136c4fb5882ad5a6344e">qfits_table_open()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf048e797ef10ca202581436833b37a7d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_zeropad </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Pad an existing file with zeros to a multiple of 2880. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the file to pad. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void</dd></dl>
-<p>This function simply pads an existing file on disk with enough zeros for the file size to reach a multiple of 2880, as required by FITS. </p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__table.html b/libqfits/html/group__qfits__table.html
deleted file mode 100644
index 01530bb..0000000
--- a/libqfits/html/group__qfits__table.html
+++ /dev/null
@@ -1,903 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: FITS table handling</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">FITS table handling</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga2e65c23ba93807287cb2ae7b5e38f167"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#ga2e65c23ba93807287cb2ae7b5e38f167">qfits_is_table</a> (const char *filename, int xtnum)</td></tr>
-<tr class="memdesc:ga2e65c23ba93807287cb2ae7b5e38f167"><td class="mdescLeft"> </td><td class="mdescRight">Identify a file as containing a FITS table in extension.  <a href="#ga2e65c23ba93807287cb2ae7b5e38f167"></a><br/></td></tr>
-<tr class="memitem:ga6074bd22a3b657c667109fac82f3e37e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structqfits__header.html">qfits_header</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#ga6074bd22a3b657c667109fac82f3e37e">qfits_table_prim_header_default</a> (void)</td></tr>
-<tr class="memdesc:ga6074bd22a3b657c667109fac82f3e37e"><td class="mdescLeft"> </td><td class="mdescRight">Generate a default primary header to store tables.  <a href="#ga6074bd22a3b657c667109fac82f3e37e"></a><br/></td></tr>
-<tr class="memitem:gaf1f20765aa86e6696aac1b34cddb5fbb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structqfits__header.html">qfits_header</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#gaf1f20765aa86e6696aac1b34cddb5fbb">qfits_table_ext_header_default</a> (const <a class="el" href="structqfits__table.html">qfits_table</a> *t)</td></tr>
-<tr class="memdesc:gaf1f20765aa86e6696aac1b34cddb5fbb"><td class="mdescLeft"> </td><td class="mdescRight">Generate a default extension header to store tables.  <a href="#gaf1f20765aa86e6696aac1b34cddb5fbb"></a><br/></td></tr>
-<tr class="memitem:gaf33bb94058ccd42957fcb2cbbd9b72fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structqfits__table.html">qfits_table</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#gaf33bb94058ccd42957fcb2cbbd9b72fc">qfits_table_new</a> (const char *filename, int table_type, int table_width, int nb_cols, int nb_raws)</td></tr>
-<tr class="memdesc:gaf33bb94058ccd42957fcb2cbbd9b72fc"><td class="mdescLeft"> </td><td class="mdescRight">Table object constructor.  <a href="#gaf33bb94058ccd42957fcb2cbbd9b72fc"></a><br/></td></tr>
-<tr class="memitem:gabcf3b258731b0c99c64be2110c60e66b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill</a> (<a class="el" href="structqfits__col.html">qfits_col</a> *qc, int atom_nb, int atom_dec_nb, int atom_size, tfits_type atom_type, const char *label, const char *unit, const char *nullval, const char *disp, int zero_present, float z [...]
-<tr class="memdesc:gabcf3b258731b0c99c64be2110c60e66b"><td class="mdescLeft"> </td><td class="mdescRight">Fill a column object with some provided informations.  <a href="#gabcf3b258731b0c99c64be2110c60e66b"></a><br/></td></tr>
-<tr class="memitem:gae7aafce3d040136c4fb5882ad5a6344e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structqfits__table.html">qfits_table</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#gae7aafce3d040136c4fb5882ad5a6344e">qfits_table_open</a> (const char *filename, int xtnum)</td></tr>
-<tr class="memdesc:gae7aafce3d040136c4fb5882ad5a6344e"><td class="mdescLeft"> </td><td class="mdescRight">Read a FITS extension.  <a href="#gae7aafce3d040136c4fb5882ad5a6344e"></a><br/></td></tr>
-<tr class="memitem:ga59b5aa7c5b59e5dae95ea2b54512103a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#ga59b5aa7c5b59e5dae95ea2b54512103a">qfits_table_close</a> (<a class="el" href="structqfits__table.html">qfits_table</a> *t)</td></tr>
-<tr class="memdesc:ga59b5aa7c5b59e5dae95ea2b54512103a"><td class="mdescLeft"> </td><td class="mdescRight">Free a FITS table and associated pointers.  <a href="#ga59b5aa7c5b59e5dae95ea2b54512103a"></a><br/></td></tr>
-<tr class="memitem:gaf6ca73b2270b2ce9153b54d4f2f22e67"><td class="memItemLeft" align="right" valign="top">unsigned char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67">qfits_query_column</a> (const <a class="el" href="structqfits__table.html">qfits_table</a> *th, int colnum, const int *selection)</td></tr>
-<tr class="memdesc:gaf6ca73b2270b2ce9153b54d4f2f22e67"><td class="mdescLeft"> </td><td class="mdescRight">Extract data from a column in a FITS table.  <a href="#gaf6ca73b2270b2ce9153b54d4f2f22e67"></a><br/></td></tr>
-<tr class="memitem:ga37432ab039e40c243b04b9c68927e47e"><td class="memItemLeft" align="right" valign="top">unsigned char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#ga37432ab039e40c243b04b9c68927e47e">qfits_query_column_seq</a> (const <a class="el" href="structqfits__table.html">qfits_table</a> *th, int colnum, int start_ind, int nb_rows)</td></tr>
-<tr class="memdesc:ga37432ab039e40c243b04b9c68927e47e"><td class="mdescLeft"> </td><td class="mdescRight">Extract consequtive values from a column in a FITS table.  <a href="#ga37432ab039e40c243b04b9c68927e47e"></a><br/></td></tr>
-<tr class="memitem:ga2322a7004c7733d7551d94c8c2685d78"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#ga2322a7004c7733d7551d94c8c2685d78">qfits_query_column_data</a> (const <a class="el" href="structqfits__table.html">qfits_table</a> *th, int colnum, const int *selection, const void *null_value)</td></tr>
-<tr class="memdesc:ga2322a7004c7733d7551d94c8c2685d78"><td class="mdescLeft"> </td><td class="mdescRight">Extract binary data from a column in a FITS table.  <a href="#ga2322a7004c7733d7551d94c8c2685d78"></a><br/></td></tr>
-<tr class="memitem:gaba48a32c1d684f3d1155def221bdd8df"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#gaba48a32c1d684f3d1155def221bdd8df">qfits_query_column_seq_data</a> (const <a class="el" href="structqfits__table.html">qfits_table</a> *th, int colnum, int start_ind, int nb_rows, const void *null_value)</td></tr>
-<tr class="memdesc:gaba48a32c1d684f3d1155def221bdd8df"><td class="mdescLeft"> </td><td class="mdescRight">Extract binary data from a column in a FITS table.  <a href="#gaba48a32c1d684f3d1155def221bdd8df"></a><br/></td></tr>
-<tr class="memitem:ga7d5291d4c02f0d53938f0289a29be058"><td class="memItemLeft" align="right" valign="top">int * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#ga7d5291d4c02f0d53938f0289a29be058">qfits_query_column_nulls</a> (const <a class="el" href="structqfits__table.html">qfits_table</a> *th, int colnum, const int *selection, int *nb_vals, int *nb_nulls)</td></tr>
-<tr class="memdesc:ga7d5291d4c02f0d53938f0289a29be058"><td class="mdescLeft"> </td><td class="mdescRight">Detect NULL values in a column.  <a href="#ga7d5291d4c02f0d53938f0289a29be058"></a><br/></td></tr>
-<tr class="memitem:ga501741264c6698c3625b468da65be774"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#ga501741264c6698c3625b468da65be774">qfits_save_table_hdrdump</a> (const void **array, const <a class="el" href="structqfits__table.html">qfits_table</a> *table, const <a class="el" href="structqfits__header.html">qfits_header</a> *fh)</td></tr>
-<tr class="memdesc:ga501741264c6698c3625b468da65be774"><td class="mdescLeft"> </td><td class="mdescRight">Save a table to a FITS file with a given FITS header.  <a href="#ga501741264c6698c3625b468da65be774"></a><br/></td></tr>
-<tr class="memitem:ga8f8c574d5cfdfcb6ccc20d5f785f703f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#ga8f8c574d5cfdfcb6ccc20d5f785f703f">qfits_table_append_xtension</a> (FILE *outfile, const <a class="el" href="structqfits__table.html">qfits_table</a> *t, const void **data)</td></tr>
-<tr class="memdesc:ga8f8c574d5cfdfcb6ccc20d5f785f703f"><td class="mdescLeft"> </td><td class="mdescRight">Appends a std extension header + data to a FITS table file.  <a href="#ga8f8c574d5cfdfcb6ccc20d5f785f703f"></a><br/></td></tr>
-<tr class="memitem:ga8d3d9a97097ce0d540845264748f7527"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#ga8d3d9a97097ce0d540845264748f7527">qfits_table_append_xtension_hdr</a> (FILE *outfile, const <a class="el" href="structqfits__table.html">qfits_table</a> *t, const void **data, const <a class="el" href="structqfits__header.html">qfits_header</a> *hdr)</td></tr>
-<tr class="memdesc:ga8d3d9a97097ce0d540845264748f7527"><td class="mdescLeft"> </td><td class="mdescRight">Appends a specified extension header + data to a FITS table file.  <a href="#ga8d3d9a97097ce0d540845264748f7527"></a><br/></td></tr>
-<tr class="memitem:ga2bf072737a01327972eae852b49bb5b0"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__table.html#ga2bf072737a01327972eae852b49bb5b0">qfits_table_field_to_string</a> (const <a class="el" href="structqfits__table.html">qfits_table</a> *table, int col_id, int row_id, int use_zero_scale)</td></tr>
-<tr class="memdesc:ga2bf072737a01327972eae852b49bb5b0"><td class="mdescLeft"> </td><td class="mdescRight">given a col and a row, find out the string to write for display  <a href="#ga2bf072737a01327972eae852b49bb5b0"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gabcf3b258731b0c99c64be2110c60e66b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_col_fill </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfits__col.html">qfits_col</a> * </td>
-          <td class="paramname"><em>qc</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>atom_nb</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>atom_dec_nb</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>atom_size</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">tfits_type </td>
-          <td class="paramname"><em>atom_type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>label</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>unit</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>nullval</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>disp</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>zero_present</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>zero</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>scale_present</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">float </td>
-          <td class="paramname"><em>scale</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>offset_beg</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Fill a column object with some provided informations. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">qc</td><td>Pointer to the column that has to be filled </td></tr>
-    <tr><td class="paramname">unit</td><td>Unit of the data </td></tr>
-    <tr><td class="paramname">label</td><td>Label of the column </td></tr>
-    <tr><td class="paramname">disp</td><td>Way to display the data </td></tr>
-    <tr><td class="paramname">nullval</td><td>Null value </td></tr>
-    <tr><td class="paramname">atom_nb</td><td>Number of atoms per field. According to the type, an atom is a double, an int, a char, ... </td></tr>
-    <tr><td class="paramname">atom_dec_nb</td><td>Number of decimals as specified in TFORM </td></tr>
-    <tr><td class="paramname">atom_size</td><td>Size in bytes of the field for ASCII tables, and of an atom for BIN tables. ASCII tables only contain 1 atom per field (except for A type where you can of course have more than one char per field) </td></tr>
-    <tr><td class="paramname">atom_type</td><td>Type of data (11 types for BIN, 5 for ASCII) </td></tr>
-    <tr><td class="paramname">zero_present</td><td>Flag to use or not zero </td></tr>
-    <tr><td class="paramname">zero</td><td>Zero value </td></tr>
-    <tr><td class="paramname">scale_present</td><td>Flag to use or not scale </td></tr>
-    <tr><td class="paramname">scale</td><td>Scale value </td></tr>
-    <tr><td class="paramname">offset_beg</td><td>Gives the position of the column </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>-1 in error case, 0 otherwise </dd></dl>
-
-<p>References <a class="el" href="structqfits__col.html#ac9f510772ccdfc3543202984cbbf8d78">qfits_col::atom_dec_nb</a>, <a class="el" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">qfits_col::atom_nb</a>, <a class="el" href="structqfits__col.html#aac16a34501523b77bed062e9d89e25f4">qfits_col::atom_size</a>, <a class="el" href="structqfits__col.html#ac591d6d9f8608c920fc0cb71ef457525">qfits_col::atom_type</a>, <a class="el" href="structqfits__col.html#ae30c1a49f9939d7f0cd1ec2 [...]
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gae7aafce3d040136c4fb5882ad5a6344e">qfits_table_open()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2e65c23ba93807287cb2ae7b5e38f167"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_is_table </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>xtnum</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Identify a file as containing a FITS table in extension. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the FITS file to examine. </td></tr>
-    <tr><td class="paramname">xtnum</td><td>Extension number to check (starting from 1). </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 1 if the extension contains a table, 0 else. Examines the requested extension and identifies the presence of a FITS table. </dd></dl>
-
-<p>References <a class="el" href="group__qfits__tools.html#ga6fb825df5050fda4bc3b6903e65fbbac">qfits_pretty_string()</a>, and <a class="el" href="group__qfits__tools.html#gae2889b70d541dcd43796f1f6c352467a">qfits_query_ext()</a>.</p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gae7aafce3d040136c4fb5882ad5a6344e">qfits_table_open()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf6ca73b2270b2ce9153b54d4f2f22e67"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">unsigned char* qfits_query_column </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__table.html">qfits_table</a> * </td>
-          <td class="paramname"><em>th</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>colnum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>selection</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Extract data from a column in a FITS table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">th</td><td>Allocated <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> </td></tr>
-    <tr><td class="paramname">colnum</td><td>Number of the column to extract (from 0 to colnum-1) </td></tr>
-    <tr><td class="paramname">selection</td><td>boolean array to define the selected rows </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>unsigned char array</dd></dl>
-<p>If selection is NULL, select the complete column.</p>
-<p>Extract a column from a FITS table and return the data as a bytes array. The returned array type and size are determined by the column object in the <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> and by the selection parameter.</p>
-<p>Returned array size in bytes is: nbselected * col->natoms * col->atom_size</p>
-<p>Numeric types are correctly understood and byte-swapped if needed, to be converted to the local machine type.</p>
-<p>NULL values have to be handled by the caller.</p>
-<p>The returned object must be deallocated with qfits_free(). </p>
-
-<p>References <a class="el" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">qfits_col::atom_nb</a>, <a class="el" href="structqfits__col.html#aac16a34501523b77bed062e9d89e25f4">qfits_col::atom_size</a>, <a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">col</a>, <a class="el" href="structqfits__table.html#a91e80cea4099f0f08e8cb5bb78c06b77">filename</a>, <a class="el" href="structqfits__table.html#a0ddd9b546ee8d8d3adf640137ebc476a">nr</a>, <a cla [...]
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#ga2322a7004c7733d7551d94c8c2685d78">qfits_query_column_data()</a>, and <a class="el" href="group__qfits__table.html#ga7d5291d4c02f0d53938f0289a29be058">qfits_query_column_nulls()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga2322a7004c7733d7551d94c8c2685d78"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void* qfits_query_column_data </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__table.html">qfits_table</a> * </td>
-          <td class="paramname"><em>th</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>colnum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>selection</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const void * </td>
-          <td class="paramname"><em>null_value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Extract binary data from a column in a FITS table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">th</td><td>Allocated <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> </td></tr>
-    <tr><td class="paramname">colnum</td><td>Number of the column to extract (from 0 to colnum-1) </td></tr>
-    <tr><td class="paramname">selection</td><td>bollean array to identify selected rows </td></tr>
-    <tr><td class="paramname">null_value</td><td>Value to return when a NULL value comes </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to void *</dd></dl>
-<p>Extract a column from a FITS table and return the data as a generic void* array. The returned array type and size are determined by the column object in the <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a>.</p>
-<p>Returned array size in bytes is: nb_selected * col->atom_nb * col->atom_size</p>
-<p>NULL values are recognized and replaced by the specified value. The returned object must be deallocated with qfits_free(). </p>
-
-<p>References <a class="el" href="structqfits__col.html#ac9f510772ccdfc3543202984cbbf8d78">qfits_col::atom_dec_nb</a>, <a class="el" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">qfits_col::atom_nb</a>, <a class="el" href="structqfits__col.html#aac16a34501523b77bed062e9d89e25f4">qfits_col::atom_size</a>, <a class="el" href="structqfits__col.html#ac591d6d9f8608c920fc0cb71ef457525">qfits_col::atom_type</a>, <a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4 [...]
-
-</div>
-</div>
-<a class="anchor" id="ga7d5291d4c02f0d53938f0289a29be058"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int* qfits_query_column_nulls </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__table.html">qfits_table</a> * </td>
-          <td class="paramname"><em>th</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>colnum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const int * </td>
-          <td class="paramname"><em>selection</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>nb_vals</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int * </td>
-          <td class="paramname"><em>nb_nulls</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Detect NULL values in a column. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">th</td><td>Allocated <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> </td></tr>
-    <tr><td class="paramname">colnum</td><td>Number of the column to check (from 0 to colnum-1) </td></tr>
-    <tr><td class="paramname">selection</td><td>Array to identify selected rows </td></tr>
-    <tr><td class="paramname">nb_vals</td><td>Gives the size of the output array </td></tr>
-    <tr><td class="paramname">nb_nulls</td><td>Gives the number of detected null values </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>array with 1 for NULLs and 0 for non-NULLs The returned object must be deallocated with qfits_free(). </dd></dl>
-
-<p>References <a class="el" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">qfits_col::atom_nb</a>, <a class="el" href="structqfits__col.html#ac591d6d9f8608c920fc0cb71ef457525">qfits_col::atom_type</a>, <a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">col</a>, <a class="el" href="structqfits__table.html#a0ddd9b546ee8d8d3adf640137ebc476a">nr</a>, <a class="el" href="structqfits__col.html#ae30c1a49f9939d7f0cd1ec22b68ad553">qfits_col::nullval</a> [...]
-
-</div>
-</div>
-<a class="anchor" id="ga37432ab039e40c243b04b9c68927e47e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">unsigned char* qfits_query_column_seq </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__table.html">qfits_table</a> * </td>
-          <td class="paramname"><em>th</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>colnum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>start_ind</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nb_rows</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Extract consequtive values from a column in a FITS table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">th</td><td>Allocated <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> </td></tr>
-    <tr><td class="paramname">colnum</td><td>Number of the column to extract (from 0 to colnum-1) </td></tr>
-    <tr><td class="paramname">start_ind</td><td>Index of the first row (0 for the first) </td></tr>
-    <tr><td class="paramname">nb_rows</td><td>Number of rows to extract </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>unsigned char array Does the same as <a class="el" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67" title="Extract data from a column in a FITS table.">qfits_query_column()</a> but on a consequtive sequence of rows Spares the overhead of the selection object allocation The returned object must be deallocated with qfits_free(). </dd></dl>
-
-<p>References <a class="el" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">qfits_col::atom_nb</a>, <a class="el" href="structqfits__col.html#aac16a34501523b77bed062e9d89e25f4">qfits_col::atom_size</a>, <a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">col</a>, <a class="el" href="structqfits__table.html#a91e80cea4099f0f08e8cb5bb78c06b77">filename</a>, <a class="el" href="structqfits__table.html#a0ddd9b546ee8d8d3adf640137ebc476a">nr</a>, <a cla [...]
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gaba48a32c1d684f3d1155def221bdd8df">qfits_query_column_seq_data()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaba48a32c1d684f3d1155def221bdd8df"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void* qfits_query_column_seq_data </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__table.html">qfits_table</a> * </td>
-          <td class="paramname"><em>th</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>colnum</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>start_ind</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nb_rows</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const void * </td>
-          <td class="paramname"><em>null_value</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Extract binary data from a column in a FITS table. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">th</td><td>Allocated <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> </td></tr>
-    <tr><td class="paramname">colnum</td><td>Number of the column to extract (from 0 to colnum-1) </td></tr>
-    <tr><td class="paramname">start_ind</td><td>Index of the first row (0 for the first) </td></tr>
-    <tr><td class="paramname">nb_rows</td><td>Number of rows to extract </td></tr>
-    <tr><td class="paramname">null_value</td><td>Value to return when a NULL value comes </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to void * Does the same as <a class="el" href="group__qfits__table.html#ga2322a7004c7733d7551d94c8c2685d78" title="Extract binary data from a column in a FITS table.">qfits_query_column_data()</a> but on a consequtive sequence of rows. Spares the overhead of the selection object allocation The returned object must be deallocated with qfits_free(). </dd></dl>
-
-<p>References <a class="el" href="structqfits__col.html#ac9f510772ccdfc3543202984cbbf8d78">qfits_col::atom_dec_nb</a>, <a class="el" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">qfits_col::atom_nb</a>, <a class="el" href="structqfits__col.html#aac16a34501523b77bed062e9d89e25f4">qfits_col::atom_size</a>, <a class="el" href="structqfits__col.html#ac591d6d9f8608c920fc0cb71ef457525">qfits_col::atom_type</a>, <a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4 [...]
-
-</div>
-</div>
-<a class="anchor" id="ga501741264c6698c3625b468da65be774"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_save_table_hdrdump </td>
-          <td>(</td>
-          <td class="paramtype">const void ** </td>
-          <td class="paramname"><em>array</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="structqfits__table.html">qfits_table</a> * </td>
-          <td class="paramname"><em>table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>fh</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Save a table to a FITS file with a given FITS header. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">array</td><td>Data array. </td></tr>
-    <tr><td class="paramname">table</td><td>table </td></tr>
-    <tr><td class="paramname">fh</td><td>FITS header to insert in the output file. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>-1 in error case, 0 otherwise </dd></dl>
-
-<p>References <a class="el" href="structqfits__table.html#a91e80cea4099f0f08e8cb5bb78c06b77">filename</a>, <a class="el" href="group__qfits__md5.html#ga6cca6936b0596d532bd2272e65aa642d">qfits_datamd5()</a>, <a class="el" href="group__qfits__header.html#ga422380d3cd11eadfac3b20e59e1eaed0">qfits_header_dump()</a>, <a class="el" href="group__qfits__tools.html#ga7d24df36f71c8e27215f3eada5089b0f">qfits_replace_card()</a>, and <a class="el" href="structqfits__table.html#aee14f7bd2b26ebd2124ede [...]
-
-</div>
-</div>
-<a class="anchor" id="ga8f8c574d5cfdfcb6ccc20d5f785f703f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_table_append_xtension </td>
-          <td>(</td>
-          <td class="paramtype">FILE * </td>
-          <td class="paramname"><em>outfile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="structqfits__table.html">qfits_table</a> * </td>
-          <td class="paramname"><em>t</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const void ** </td>
-          <td class="paramname"><em>data</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Appends a std extension header + data to a FITS table file. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">outfile</td><td>Pointer to (opened) file ready for writing. </td></tr>
-    <tr><td class="paramname">t</td><td>Pointer to <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> </td></tr>
-    <tr><td class="paramname">data</td><td>Table data to write </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 if Ok, -1 otherwise</dd></dl>
-<p>Dumps a FITS table to a file. The whole table described by <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a>, and the data arrays contained in 'data' are dumped to the file. An extension header is produced with all keywords needed to describe the table, then the data is dumped to the file. The output is then padded to reach a multiple of 2880 bytes in size. Notice that no main header is produced, only the extension part. </p>
-
-<p>References <a class="el" href="structqfits__table.html#aee14f7bd2b26ebd2124ede91eb19f0f3">tab_t</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga8d3d9a97097ce0d540845264748f7527"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_table_append_xtension_hdr </td>
-          <td>(</td>
-          <td class="paramtype">FILE * </td>
-          <td class="paramname"><em>outfile</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="structqfits__table.html">qfits_table</a> * </td>
-          <td class="paramname"><em>t</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const void ** </td>
-          <td class="paramname"><em>data</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const <a class="el" href="structqfits__header.html">qfits_header</a> * </td>
-          <td class="paramname"><em>hdr</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Appends a specified extension header + data to a FITS table file. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">outfile</td><td>Pointer to (opened) file ready for writing. </td></tr>
-    <tr><td class="paramname">t</td><td>Pointer to <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> </td></tr>
-    <tr><td class="paramname">data</td><td>Table data to write </td></tr>
-    <tr><td class="paramname">hdr</td><td>Specified extension header </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 if Ok, -1 otherwise</dd></dl>
-<p>Dumps a FITS table to a file. The whole table described by <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a>, and the data arrays contained in 'data' are dumped to the file following the specified fits header. The output is then padded to reach a multiple of 2880 bytes in size. Notice that no main header is produced, only the extension part. </p>
-
-<p>References <a class="el" href="group__qfits__header.html#ga422380d3cd11eadfac3b20e59e1eaed0">qfits_header_dump()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga59b5aa7c5b59e5dae95ea2b54512103a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">void qfits_table_close </td>
-          <td>(</td>
-          <td class="paramtype"><a class="el" href="structqfits__table.html">qfits_table</a> * </td>
-          <td class="paramname"><em>t</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Free a FITS table and associated pointers. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">t</td><td><a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> to free </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>void Frees all memory associated to a <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> structure. </dd></dl>
-
-<p>References <a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">col</a>, and <a class="el" href="structqfits__table.html#af67a70e4e72ca3a75022900a1497b1a5">nc</a>.</p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gae7aafce3d040136c4fb5882ad5a6344e">qfits_table_open()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf1f20765aa86e6696aac1b34cddb5fbb"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structqfits__header.html">qfits_header</a>* qfits_table_ext_header_default </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__table.html">qfits_table</a> * </td>
-          <td class="paramname"><em>t</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Generate a default extension header to store tables. </p>
-<dl class="section return"><dt>Returns:</dt><dd>the header object </dd></dl>
-
-<p>References <a class="el" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">qfits_col::atom_nb</a>, <a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">col</a>, <a class="el" href="structqfits__table.html#af67a70e4e72ca3a75022900a1497b1a5">nc</a>, <a class="el" href="structqfits__table.html#a0ddd9b546ee8d8d3adf640137ebc476a">nr</a>, <a class="el" href="group__qfits__time.html#ga0b6bb63b7b3cdc2cd7954fdbd2844293">qfits_get_datetime_iso8601()</a>, < [...]
-
-</div>
-</div>
-<a class="anchor" id="ga2bf072737a01327972eae852b49bb5b0"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_table_field_to_string </td>
-          <td>(</td>
-          <td class="paramtype">const <a class="el" href="structqfits__table.html">qfits_table</a> * </td>
-          <td class="paramname"><em>table</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>col_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>row_id</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>use_zero_scale</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>given a col and a row, find out the string to write for display </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">table</td><td>table structure </td></tr>
-    <tr><td class="paramname">col_id</td><td>col id (0 -> nbcol-1) </td></tr>
-    <tr><td class="paramname">row_id</td><td>row id (0 -> nrow-1) </td></tr>
-    <tr><td class="paramname">use_zero_scale</td><td>Flag to use or not zero and scale </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>the string</dd></dl>
-<p>This function is highly inefficient, it should not be used in loops to display a complete table. It is more to get one field from time to time, or for debugging puposes. The returned object must be deallocated with qfits_free(). </p>
-
-<p>References <a class="el" href="structqfits__table.html#aee14f7bd2b26ebd2124ede91eb19f0f3">tab_t</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaf33bb94058ccd42957fcb2cbbd9b72fc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structqfits__table.html">qfits_table</a>* qfits_table_new </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>table_type</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>table_width</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nb_cols</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>nb_raws</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Table object constructor. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the FITS file associated to the table </td></tr>
-    <tr><td class="paramname">table_type</td><td>Type of the table (QFITS_ASCIITABLE or QFITS_BINTABLE) </td></tr>
-    <tr><td class="paramname">table_width</td><td>Width in bytes of the table </td></tr>
-    <tr><td class="paramname">nb_cols</td><td>Number of columns </td></tr>
-    <tr><td class="paramname">nb_raws</td><td>Number of raws </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>The table object The columns are also allocated. The object has to be deallocated with <a class="el" href="group__qfits__table.html#ga59b5aa7c5b59e5dae95ea2b54512103a" title="Free a FITS table and associated pointers.">qfits_table_close()</a> </dd></dl>
-
-<p>References <a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">col</a>, <a class="el" href="structqfits__table.html#a91e80cea4099f0f08e8cb5bb78c06b77">filename</a>, <a class="el" href="structqfits__table.html#af67a70e4e72ca3a75022900a1497b1a5">nc</a>, <a class="el" href="structqfits__table.html#a0ddd9b546ee8d8d3adf640137ebc476a">nr</a>, <a class="el" href="structqfits__table.html#aee14f7bd2b26ebd2124ede91eb19f0f3">tab_t</a>, and <a class="el" href="structqfi [...]
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gae7aafce3d040136c4fb5882ad5a6344e">qfits_table_open()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae7aafce3d040136c4fb5882ad5a6344e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structqfits__table.html">qfits_table</a>* qfits_table_open </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>xtnum</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Read a FITS extension. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the FITS file to examine. </td></tr>
-    <tr><td class="paramname">xtnum</td><td>Extension number to read (starting from 1). </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to newly allocated <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> structure.</dd></dl>
-<p>Read a FITS table from a given file name and extension, and return a newly allocated <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> structure. </p>
-
-<p>References <a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">col</a>, <a class="el" href="structqfits__table.html#af67a70e4e72ca3a75022900a1497b1a5">nc</a>, <a class="el" href="structqfits__table.html#a0ddd9b546ee8d8d3adf640137ebc476a">nr</a>, <a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill()</a>, <a class="el" href="group__qfits__rw.html#ga26382a339b6a5ca0843dec82dc78be28">qfits_get_datinfo()</a>, <a class=" [...]
-
-</div>
-</div>
-<a class="anchor" id="ga6074bd22a3b657c667109fac82f3e37e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structqfits__header.html">qfits_header</a>* qfits_table_prim_header_default </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Generate a default primary header to store tables. </p>
-<dl class="section return"><dt>Returns:</dt><dd>the header object </dd></dl>
-
-<p>References <a class="el" href="group__qfits__header.html#ga561679d8fc1ba9f8b6e1c619e4687154">qfits_header_append()</a>, and <a class="el" href="group__qfits__header.html#ga66374136eafc13c56561be2edfd2c9cc">qfits_header_new()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__time.html b/libqfits/html/group__qfits__time.html
deleted file mode 100644
index 0108857..0000000
--- a/libqfits/html/group__qfits__time.html
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Get date/time, possibly in ISO8601 format</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Get date/time, possibly in ISO8601 format</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga0b6bb63b7b3cdc2cd7954fdbd2844293"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__time.html#ga0b6bb63b7b3cdc2cd7954fdbd2844293">qfits_get_datetime_iso8601</a> (void)</td></tr>
-<tr class="memdesc:ga0b6bb63b7b3cdc2cd7954fdbd2844293"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current date and time as a static string.  <a href="#ga0b6bb63b7b3cdc2cd7954fdbd2844293"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module contains various utilities to get the current date/time, and possibly format it according to the ISO 8601 format. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="ga0b6bb63b7b3cdc2cd7954fdbd2844293"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_get_datetime_iso8601 </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Returns the current date and time as a static string. </p>
-<dl class="section return"><dt>Returns:</dt><dd>Pointer to statically allocated string</dd></dl>
-<p>Build and return a string containing the date of today and the current time in ISO8601 format. The returned pointer points to a statically allocated string in the function, so no need to free it. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gaf1f20765aa86e6696aac1b34cddb5fbb">qfits_table_ext_header_default()</a>.</p>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/group__qfits__tools.html b/libqfits/html/group__qfits__tools.html
deleted file mode 100644
index 7d7390e..0000000
--- a/libqfits/html/group__qfits__tools.html
+++ /dev/null
@@ -1,561 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Simple FITS access routines</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#func-members">Functions</a>  </div>
-  <div class="headertitle">
-<div class="title">Simple FITS access routines</div>  </div>
-</div><!--header-->
-<div class="contents">
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
-Functions</h2></td></tr>
-<tr class="memitem:ga1bf0f64f2d4c78a16bea9afc2702fd68"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#ga1bf0f64f2d4c78a16bea9afc2702fd68">qfits_query_hdr</a> (const char *filename, const char *keyword)</td></tr>
-<tr class="memdesc:ga1bf0f64f2d4c78a16bea9afc2702fd68"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve the value of a key in a FITS header.  <a href="#ga1bf0f64f2d4c78a16bea9afc2702fd68"></a><br/></td></tr>
-<tr class="memitem:gae2889b70d541dcd43796f1f6c352467a"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#gae2889b70d541dcd43796f1f6c352467a">qfits_query_ext</a> (const char *filename, const char *keyword, int xtnum)</td></tr>
-<tr class="memdesc:gae2889b70d541dcd43796f1f6c352467a"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve the value of a keyin a FITS extension header.  <a href="#gae2889b70d541dcd43796f1f6c352467a"></a><br/></td></tr>
-<tr class="memitem:ga584cb7b1cdbdbb78f130c18a20366146"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#ga584cb7b1cdbdbb78f130c18a20366146">qfits_query_n_ext</a> (const char *filename)</td></tr>
-<tr class="memdesc:ga584cb7b1cdbdbb78f130c18a20366146"><td class="mdescLeft"> </td><td class="mdescRight">Counts the number of extensions in a FITS file.  <a href="#ga584cb7b1cdbdbb78f130c18a20366146"></a><br/></td></tr>
-<tr class="memitem:ga170ce2b7cb25a21cb34f049fac7197bd"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#ga170ce2b7cb25a21cb34f049fac7197bd">qfits_query_nplanes</a> (const char *filename, int extnum)</td></tr>
-<tr class="memdesc:ga170ce2b7cb25a21cb34f049fac7197bd"><td class="mdescLeft"> </td><td class="mdescRight">Counts the number of planes in a FITS extension.  <a href="#ga170ce2b7cb25a21cb34f049fac7197bd"></a><br/></td></tr>
-<tr class="memitem:ga6fb825df5050fda4bc3b6903e65fbbac"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#ga6fb825df5050fda4bc3b6903e65fbbac">qfits_pretty_string</a> (const char *s)</td></tr>
-<tr class="memdesc:ga6fb825df5050fda4bc3b6903e65fbbac"><td class="mdescLeft"> </td><td class="mdescRight">Clean out a FITS string value.  <a href="#ga6fb825df5050fda4bc3b6903e65fbbac"></a><br/></td></tr>
-<tr class="memitem:gaa53de3a6fae72699f185ccb4917cc5ca"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#gaa53de3a6fae72699f185ccb4917cc5ca">qfits_is_boolean</a> (const char *s)</td></tr>
-<tr class="memdesc:gaa53de3a6fae72699f185ccb4917cc5ca"><td class="mdescLeft"> </td><td class="mdescRight">Identify if a FITS value is boolean.  <a href="#gaa53de3a6fae72699f185ccb4917cc5ca"></a><br/></td></tr>
-<tr class="memitem:ga5ba85c00493f0c641a2ca4c5d98a986b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#ga5ba85c00493f0c641a2ca4c5d98a986b">qfits_is_int</a> (const char *s)</td></tr>
-<tr class="memdesc:ga5ba85c00493f0c641a2ca4c5d98a986b"><td class="mdescLeft"> </td><td class="mdescRight">Identify if a FITS value is an int.  <a href="#ga5ba85c00493f0c641a2ca4c5d98a986b"></a><br/></td></tr>
-<tr class="memitem:gab26323633e112d41498246675d2b42b6"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#gab26323633e112d41498246675d2b42b6">qfits_is_float</a> (const char *s)</td></tr>
-<tr class="memdesc:gab26323633e112d41498246675d2b42b6"><td class="mdescLeft"> </td><td class="mdescRight">Identify if a FITS value is float.  <a href="#gab26323633e112d41498246675d2b42b6"></a><br/></td></tr>
-<tr class="memitem:gad8d941f09367844ee6317f05b474970f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#gad8d941f09367844ee6317f05b474970f">qfits_is_complex</a> (const char *s)</td></tr>
-<tr class="memdesc:gad8d941f09367844ee6317f05b474970f"><td class="mdescLeft"> </td><td class="mdescRight">Identify if a FITS value is complex.  <a href="#gad8d941f09367844ee6317f05b474970f"></a><br/></td></tr>
-<tr class="memitem:gad4a09994d041964f31d7ef3e9d42894f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#gad4a09994d041964f31d7ef3e9d42894f">qfits_is_string</a> (const char *s)</td></tr>
-<tr class="memdesc:gad4a09994d041964f31d7ef3e9d42894f"><td class="mdescLeft"> </td><td class="mdescRight">Identify if a FITS value is string.  <a href="#gad4a09994d041964f31d7ef3e9d42894f"></a><br/></td></tr>
-<tr class="memitem:gae1e84592f45fad4180a8337b41e4ea99"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#gae1e84592f45fad4180a8337b41e4ea99">qfits_get_type</a> (const char *s)</td></tr>
-<tr class="memdesc:gae1e84592f45fad4180a8337b41e4ea99"><td class="mdescLeft"> </td><td class="mdescRight">Identify the type of a FITS value given as a string.  <a href="#gae1e84592f45fad4180a8337b41e4ea99"></a><br/></td></tr>
-<tr class="memitem:gace22858611228d491326425cb8ddc9b8"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#gace22858611228d491326425cb8ddc9b8">qfits_query_card</a> (const char *filename, const char *keyword)</td></tr>
-<tr class="memdesc:gace22858611228d491326425cb8ddc9b8"><td class="mdescLeft"> </td><td class="mdescRight">Query a card in a FITS (main) header by a given key.  <a href="#gace22858611228d491326425cb8ddc9b8"></a><br/></td></tr>
-<tr class="memitem:ga7d24df36f71c8e27215f3eada5089b0f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#ga7d24df36f71c8e27215f3eada5089b0f">qfits_replace_card</a> (const char *filename, const char *keyword, const char *substitute)</td></tr>
-<tr class="memdesc:ga7d24df36f71c8e27215f3eada5089b0f"><td class="mdescLeft"> </td><td class="mdescRight">Replace a card in a FITS (main) header by a given card.  <a href="#ga7d24df36f71c8e27215f3eada5089b0f"></a><br/></td></tr>
-<tr class="memitem:gab89a775fb75f18d513aaedd92bf0303b"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__qfits__tools.html#gab89a775fb75f18d513aaedd92bf0303b">qfits_version</a> (void)</td></tr>
-<tr class="memdesc:gab89a775fb75f18d513aaedd92bf0303b"><td class="mdescLeft"> </td><td class="mdescRight">Return the current QFITS version.  <a href="#gab89a775fb75f18d513aaedd92bf0303b"></a><br/></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<p>This module offers a number of very basic low-level FITS access routines. </p>
-<hr/><h2>Function Documentation</h2>
-<a class="anchor" id="gae1e84592f45fad4180a8337b41e4ea99"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_get_type </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>s</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Identify the type of a FITS value given as a string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">s</td><td>FITS value as a string </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>integer naming the FITS type</dd></dl>
-<p>Returns the following value:</p>
-<ul>
-<li>QFITS_UNKNOWN (0) for an unknown type.</li>
-<li>QFITS_BOOLEAN (1) for a boolean type.</li>
-<li>QFITS_INT (2) for an integer type.</li>
-<li>QFITS_FLOAT (3) for a floating-point type.</li>
-<li>QFITS_COMPLEX (4) for a complex number.</li>
-<li>QFITS_STRING (5) for a FITS string. </li>
-</ul>
-
-<p>References <a class="el" href="group__qfits__tools.html#gaa53de3a6fae72699f185ccb4917cc5ca">qfits_is_boolean()</a>, <a class="el" href="group__qfits__tools.html#gad8d941f09367844ee6317f05b474970f">qfits_is_complex()</a>, <a class="el" href="group__qfits__tools.html#gab26323633e112d41498246675d2b42b6">qfits_is_float()</a>, and <a class="el" href="group__qfits__tools.html#ga5ba85c00493f0c641a2ca4c5d98a986b">qfits_is_int()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gaa53de3a6fae72699f185ccb4917cc5ca"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_is_boolean </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>s</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Identify if a FITS value is boolean. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">s</td><td>FITS value as a string </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 or 1</dd></dl>
-<p>Identifies if a FITS value is boolean. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__card.html#ga486c44c7f3bc2fe66ff335e9617a5b1b">qfits_card_build()</a>, and <a class="el" href="group__qfits__tools.html#gae1e84592f45fad4180a8337b41e4ea99">qfits_get_type()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad8d941f09367844ee6317f05b474970f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_is_complex </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>s</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Identify if a FITS value is complex. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">s</td><td>FITS value as a string </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 or 1</dd></dl>
-<p>Identifies if a FITS value is complex. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__card.html#ga486c44c7f3bc2fe66ff335e9617a5b1b">qfits_card_build()</a>, and <a class="el" href="group__qfits__tools.html#gae1e84592f45fad4180a8337b41e4ea99">qfits_get_type()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab26323633e112d41498246675d2b42b6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_is_float </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>s</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Identify if a FITS value is float. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">s</td><td>FITS value as a string </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 or 1</dd></dl>
-<p>Identifies if a FITS value is float. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__card.html#ga486c44c7f3bc2fe66ff335e9617a5b1b">qfits_card_build()</a>, and <a class="el" href="group__qfits__tools.html#gae1e84592f45fad4180a8337b41e4ea99">qfits_get_type()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga5ba85c00493f0c641a2ca4c5d98a986b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_is_int </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>s</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Identify if a FITS value is an int. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">s</td><td>FITS value as a string </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 or 1</dd></dl>
-<p>Identifies if a FITS value is an integer. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__card.html#ga486c44c7f3bc2fe66ff335e9617a5b1b">qfits_card_build()</a>, and <a class="el" href="group__qfits__tools.html#gae1e84592f45fad4180a8337b41e4ea99">qfits_get_type()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gad4a09994d041964f31d7ef3e9d42894f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_is_string </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>s</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Identify if a FITS value is string. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">s</td><td>FITS value as a string </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 or 1</dd></dl>
-<p>Identifies if a FITS value is a string. </p>
-
-</div>
-</div>
-<a class="anchor" id="ga6fb825df5050fda4bc3b6903e65fbbac"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_pretty_string </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>s</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Clean out a FITS string value. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">s</td><td>pointer to allocated FITS value string. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string</dd></dl>
-<p>From a string FITS value like 'marvin o''hara', remove head and tail quotes, replace double '' with simple ', trim blanks on each side, and return the result in a statically allocated area.</p>
-<p>Examples:</p>
-<ul>
-<li>['o''hara'] becomes [o'hara]</li>
-<li>[' H '] becomes [H]</li>
-<li>['1.0 '] becomes [1.0] </li>
-</ul>
-
-<p>Referenced by <a class="el" href="group__qfits__card.html#ga486c44c7f3bc2fe66ff335e9617a5b1b">qfits_card_build()</a>, <a class="el" href="group__qfits__table.html#ga2e65c23ba93807287cb2ae7b5e38f167">qfits_is_table()</a>, <a class="el" href="group__qfits__table.html#gae7aafce3d040136c4fb5882ad5a6344e">qfits_table_open()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gace22858611228d491326425cb8ddc9b8"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_query_card </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>keyword</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Query a card in a FITS (main) header by a given key. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the FITS file to check. </td></tr>
-    <tr><td class="paramname">keyword</td><td>Where to read a card in the header. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>Allocated string containing the card or NULL </dd></dl>
-
-<p>References <a class="el" href="group__qfits__card.html#gadc46a615b643e7f6be067a3028d372af">qfits_expand_keyword()</a>, and <a class="el" href="group__qfits__rw.html#ga98043b1322f502acab5b99afbcb8165a">qfits_get_hdrinfo()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gae2889b70d541dcd43796f1f6c352467a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_query_ext </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>keyword</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>xtnum</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Retrieve the value of a keyin a FITS extension header. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>name of the FITS file to browse. </td></tr>
-    <tr><td class="paramname">keyword</td><td>name of the FITS key to look for. </td></tr>
-    <tr><td class="paramname">xtnum</td><td>xtension number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string</dd></dl>
-<p>Same as qfits_query_hdr but for extensions. xtnum starts from 1 to the number of extensions. If xtnum is zero, this function is strictly identical to <a class="el" href="group__qfits__tools.html#ga1bf0f64f2d4c78a16bea9afc2702fd68" title="Retrieve the value of a key in a FITS header.">qfits_query_hdr()</a>. </p>
-
-<p>References <a class="el" href="group__qfits__card.html#gadc46a615b643e7f6be067a3028d372af">qfits_expand_keyword()</a>, <a class="el" href="group__qfits__rw.html#ga98043b1322f502acab5b99afbcb8165a">qfits_get_hdrinfo()</a>, and <a class="el" href="group__qfits__card.html#ga679cc3b9aee2120740a2d02f10625b98">qfits_getvalue()</a>.</p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#ga2e65c23ba93807287cb2ae7b5e38f167">qfits_is_table()</a>, <a class="el" href="group__qfits__tools.html#ga1bf0f64f2d4c78a16bea9afc2702fd68">qfits_query_hdr()</a>, <a class="el" href="group__qfits__tools.html#ga170ce2b7cb25a21cb34f049fac7197bd">qfits_query_nplanes()</a>, and <a class="el" href="group__qfits__table.html#gae7aafce3d040136c4fb5882ad5a6344e">qfits_table_open()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga1bf0f64f2d4c78a16bea9afc2702fd68"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfits_query_hdr </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>keyword</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Retrieve the value of a key in a FITS header. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the FITS file to browse </td></tr>
-    <tr><td class="paramname">keyword</td><td>Name of the keyword to find </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>pointer to statically allocated character string</dd></dl>
-<p>Provide the name of a FITS file and a keyword to look for. The input file is memory-mapped and the first keyword matching the requested one is located. The value corresponding to this keyword is copied to a statically allocated area, so do not modify it or free it.</p>
-<p>The input keyword is first converted to upper case and expanded to the HIERARCH scheme if given in the shortFITS notation.</p>
-<p>This function is pretty fast due to the mmapping. Due to buffering on most Unixes, it is possible to call many times this function in a row on the same file and do not suffer too much from performance problems. If the file contents are already in the cache, the file will not be re-opened every time.</p>
-<p>It is possible, though, to modify this function to perform several searches in a row. See the source code.</p>
-<p>Returns NULL in case the requested keyword cannot be found. </p>
-
-<p>References <a class="el" href="group__qfits__tools.html#gae2889b70d541dcd43796f1f6c352467a">qfits_query_ext()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga584cb7b1cdbdbb78f130c18a20366146"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_query_n_ext </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Counts the number of extensions in a FITS file. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the FITS file to browse. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int Counts how many extensions are in the file. Returns 0 if no extension is found, and -1 if an error occurred. </dd></dl>
-
-<p>References <a class="el" href="group__qfits__cache.html#ga404fe43b87bdb3ef2daea6871031a0bc">qfits_query()</a>.</p>
-
-<p>Referenced by <a class="el" href="group__qfits__rw.html#ga930590f9b28a90dffb66024c96251162">qfits_header_readext()</a>, <a class="el" href="group__qfits__tools.html#ga170ce2b7cb25a21cb34f049fac7197bd">qfits_query_nplanes()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga170ce2b7cb25a21cb34f049fac7197bd"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_query_nplanes </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">int </td>
-          <td class="paramname"><em>extnum</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Counts the number of planes in a FITS extension. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the FITS file to browse. </td></tr>
-    <tr><td class="paramname">extnum</td><td>Extensin number </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int Counts how many planes are in the extension. Returns 0 if no plane is found, and -1 if an error occurred. </dd></dl>
-
-<p>References <a class="el" href="group__qfits__tools.html#gae2889b70d541dcd43796f1f6c352467a">qfits_query_ext()</a>, and <a class="el" href="group__qfits__tools.html#ga584cb7b1cdbdbb78f130c18a20366146">qfits_query_n_ext()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ga7d24df36f71c8e27215f3eada5089b0f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_replace_card </td>
-          <td>(</td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>filename</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>keyword</em>, </td>
-        </tr>
-        <tr>
-          <td class="paramkey"></td>
-          <td></td>
-          <td class="paramtype">const char * </td>
-          <td class="paramname"><em>substitute</em> </td>
-        </tr>
-        <tr>
-          <td></td>
-          <td>)</td>
-          <td></td><td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Replace a card in a FITS (main) header by a given card. </p>
-<dl class="params"><dt>Parameters:</dt><dd>
-  <table class="params">
-    <tr><td class="paramname">filename</td><td>Name of the FITS file to modify. </td></tr>
-    <tr><td class="paramname">keyword</td><td>Where to substitute a card in the header. </td></tr>
-    <tr><td class="paramname">substitute</td><td>What to replace the line with. </td></tr>
-  </table>
-  </dd>
-</dl>
-<dl class="section return"><dt>Returns:</dt><dd>int 0 if Ok, -1 otherwise</dd></dl>
-<p>Replaces a whole card (80 chars) in a FITS header by a given FITS line (80 chars). The replacing line is assumed correctly formatted and containing at least 80 characters. The file is modified: it must be accessible in read/write mode.</p>
-<p>The input keyword is first converted to upper case and expanded to the HIERARCH scheme if given in the shortFITS notation.</p>
-<p>Returns 0 if everything worked Ok, -1 otherwise. </p>
-
-<p>References <a class="el" href="group__qfits__card.html#gadc46a615b643e7f6be067a3028d372af">qfits_expand_keyword()</a>, and <a class="el" href="group__qfits__rw.html#ga98043b1322f502acab5b99afbcb8165a">qfits_get_hdrinfo()</a>.</p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#ga501741264c6698c3625b468da65be774">qfits_save_table_hdrdump()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="gab89a775fb75f18d513aaedd92bf0303b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">const char* qfits_version </td>
-          <td>(</td>
-          <td class="paramtype">void </td>
-          <td class="paramname"></td><td>)</td>
-          <td></td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-
-<p>Return the current QFITS version. </p>
-<dl class="section return"><dt>Returns:</dt><dd>the QFITS version </dd></dl>
-
-</div>
-</div>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/index.html b/libqfits/html/index.html
deleted file mode 100644
index f9082ed..0000000
--- a/libqfits/html/index.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Main Page</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li class="current"><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">C Standard Library Extensions Documentation</div>  </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/jquery.js b/libqfits/html/jquery.js
deleted file mode 100644
index 63939e7..0000000
--- a/libqfits/html/jquery.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*! jQuery v1.7.1 jquery.com | jquery.org/license */
-(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close();d=cm.createElement( [...]
-{g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=argumen [...]
-f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]| [...]
-&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsBy [...]
-f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function()
-{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replac [...]
-{if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m, [...]
diff --git a/libqfits/html/md5_8h_source.html b/libqfits/html/md5_8h_source.html
deleted file mode 100644
index 4ff1453..0000000
--- a/libqfits/html/md5_8h_source.html
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: md5.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">md5.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="preprocessor">#ifndef MD5_H</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="preprocessor"></span><span class="preprocessor">#define MD5_H</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> word32 ;</div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> </div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="keyword">struct </span>MD5Context {</div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span>     word32 buf[4];</div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span>     word32 bits[2];</div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> in[64];</div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> };</div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> </div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="keywordtype">void</span> MD5Init(<span class="keyword">struct</span> MD5Context *context);</div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="keywordtype">void</span> MD5Update(<span class="keyword">struct</span> MD5Context *context, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <span class="keyword">const</span> *buf,</div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span>            <span class="keywordtype">unsigned</span> len);</div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="keywordtype">void</span> MD5Final(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> digest[16], <span class="keyword">struct</span> MD5Context *context);</div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="keywordtype">void</span> MD5Transform(word32 buf[4], word32 <span class="keyword">const</span> in[16]);</div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> </div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> * This is needed to make RSAREF happy on some MS-DOS compilers.</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="keyword">typedef</span> <span class="keyword">struct </span>MD5Context MD5_CTX;</div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> </div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="preprocessor">#endif </span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/modules.html b/libqfits/html/modules.html
deleted file mode 100644
index 7643643..0000000
--- a/libqfits/html/modules.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Modules</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">Modules</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="textblock">Here is a list of all modules:</div><div class="directory">
-<table class="directory">
-<tr id="row_0_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__md5.html" target="_self">MD5 message-digest algorithm</a></td><td class="desc"></td></tr>
-<tr id="row_1_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__byteswap.html" target="_self">Low-level byte-swapping routines</a></td><td class="desc"></td></tr>
-<tr id="row_2_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__cache.html" target="_self">FITS caching capabilities</a></td><td class="desc"></td></tr>
-<tr id="row_3_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__card.html" target="_self">Card handling functions</a></td><td class="desc"></td></tr>
-<tr id="row_4_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__error.html" target="_self">Messaging functionalities</a></td><td class="desc"></td></tr>
-<tr id="row_5_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__filename.html" target="_self">Get various names (filenames, dir names,...)</a></td><td class="desc"></td></tr>
-<tr id="row_6_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__float.html" target="_self">This module implements the qfits_isnan()</a></td><td class="desc"></td></tr>
-<tr id="row_7_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__header.html" target="_self">FITS header handling</a></td><td class="desc"></td></tr>
-<tr id="row_8_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__image.html" target="_self">Pixel loader for FITS images.</a></td><td class="desc"></td></tr>
-<tr id="row_9_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__md5.html" target="_self">FITS data block MD5 computation routine</a></td><td class="desc"></td></tr>
-<tr id="row_10_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__memory.html" target="_self">POSIX-compatible extended memory handling</a></td><td class="desc"></td></tr>
-<tr id="row_11_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__rw.html" target="_self">FITS header reading/writing</a></td><td class="desc"></td></tr>
-<tr id="row_12_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__table.html" target="_self">FITS table handling</a></td><td class="desc"></td></tr>
-<tr id="row_13_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a class="el" href="group__qfits__time.html" target="_self">Get date/time, possibly in ISO8601 format</a></td><td class="desc"></td></tr>
-<tr id="row_14_" class="even"><td class="entry"><img src="ftv2lastnode.png" alt="\" width="16" height="22" /><a class="el" href="group__qfits__tools.html" target="_self">Simple FITS access routines</a></td><td class="desc"></td></tr>
-</table>
-</div><!-- directory -->
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/nav_f.png b/libqfits/html/nav_f.png
deleted file mode 100644
index 72a58a5..0000000
Binary files a/libqfits/html/nav_f.png and /dev/null differ
diff --git a/libqfits/html/nav_g.png b/libqfits/html/nav_g.png
deleted file mode 100644
index 9681f15..0000000
Binary files a/libqfits/html/nav_g.png and /dev/null differ
diff --git a/libqfits/html/nav_h.png b/libqfits/html/nav_h.png
deleted file mode 100644
index 33389b1..0000000
Binary files a/libqfits/html/nav_h.png and /dev/null differ
diff --git a/libqfits/html/open.png b/libqfits/html/open.png
deleted file mode 100644
index 30f75c7..0000000
Binary files a/libqfits/html/open.png and /dev/null differ
diff --git a/libqfits/html/qfits__byteswap_8h_source.html b/libqfits/html/qfits__byteswap_8h_source.html
deleted file mode 100644
index bd20842..0000000
--- a/libqfits/html/qfits__byteswap_8h_source.html
+++ /dev/null
@@ -1,105 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_byteswap.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_byteswap.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_byteswap.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_BYTESWAP_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_BYTESWAP_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                        Function ANSI C prototypes</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="group__qfits__byteswap.html#ga411c432bffd5ebd38c0546edc7039c77" title="Swap a 16-bit number.">qfits_swap_bytes_16</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> w);</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__byteswap.html#ga439a631ae13f9ef98ba838b55e25af5a" title="Swap a 32-bit number.">qfits_swap_bytes_32</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dw);</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__byteswap.html#ga572c320dab274906968523e728e6e728" title="Swaps bytes in a variable of given size.">qfits_swap_bytes</a>(<span class="keywordtype">void</span> * p, <span class="keywordtype">int</span> s);</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__cache_8h_source.html b/libqfits/html/qfits__cache_8h_source.html
deleted file mode 100644
index a057fb0..0000000
--- a/libqfits/html/qfits__cache_8h_source.html
+++ /dev/null
@@ -1,114 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_cache.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_cache.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_cache.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_CACHE_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_CACHE_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#define QFITS_QUERY_N_EXT        (1<<30)</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#define QFITS_QUERY_HDR_START    (1<<29)</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#define QFITS_QUERY_DAT_START    (1<<28)</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#define QFITS_QUERY_HDR_SIZE    (1<<27)</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#define QFITS_QUERY_DAT_SIZE    (1<<26)</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__cache.html#gae327e70e1699d121d9fa22d69025556a" title="Purge the qfits cache.">qfits_cache_purge</a>(<span class="keywordtype">void</span>) ;</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__cache.html#ga404fe43b87bdb3ef2daea6871031a0bc" title="Query a FITS file offset from the cache.">qfits_query</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__card_8h_source.html b/libqfits/html/qfits__card_8h_source.html
deleted file mode 100644
index b7b9ad0..0000000
--- a/libqfits/html/qfits__card_8h_source.html
+++ /dev/null
@@ -1,101 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_card.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_card.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_card.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_CARD_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_CARD_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                        Function ANSI C prototypes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__card.html#ga486c44c7f3bc2fe66ff335e9617a5b1b" title="Write out a card to a string on 80 chars.">qfits_card_build</a>(<span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</s [...]
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__card.html#gaf7e573cc540a3f45b8d37a41a58c5460" title="Find the keyword in a key card (80 chars)">qfits_getkey</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__card.html#ga679cc3b9aee2120740a2d02f10625b98" title="Find the value in a key card (80 chars)">qfits_getvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__card.html#ga9b5f07bc890ed0026a784adf93c4f3cd" title="Find the comment in a key card (80 chars)">qfits_getcomment</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__card.html#gadc46a615b643e7f6be067a3028d372af" title="Expand a keyword from shortFITS to HIERARCH notation.">qfits_expand_keyword</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__error_8h_source.html b/libqfits/html/qfits__error_8h_source.html
deleted file mode 100644
index bcdbcd8..0000000
--- a/libqfits/html/qfits__error_8h_source.html
+++ /dev/null
@@ -1,105 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_error.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_error.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_error.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_ERROR_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_ERROR_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <stdarg.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">                               Function prototypes</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="keywordtype">void</span> qfits_warning(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...);</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="keywordtype">void</span> qfits_error(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...);</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__filename_8h_source.html b/libqfits/html/qfits__filename_8h_source.html
deleted file mode 100644
index 01fddec..0000000
--- a/libqfits/html/qfits__filename_8h_source.html
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_filename.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_filename.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_filename.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_FILENAME_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_FILENAME_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                        Function ANSI C prototypes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__filename.html#gacb8835024cc4b6353768ddb1579940cb" title="Find the directory name in the given string.">qfits_get_dir_name</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__filename.html#ga32b141cd882cc4e9225adc75fce2e2fa" title="Find out the base name of a file (i.e. without prefix path)">qfits_get_base_name</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__filename.html#gacc44fdec7ecc43c87faaff992cfb5806" title="Find out the root part of a basename (name without extension).">qfits_get_root_name</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__filename.html#ga6d9f03dd8f0fe2de7c394386e37f0659" title="Find out the extension of a file name.">qfits_get_ext_name</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__float_8h_source.html b/libqfits/html/qfits__float_8h_source.html
deleted file mode 100644
index fae7736..0000000
--- a/libqfits/html/qfits__float_8h_source.html
+++ /dev/null
@@ -1,114 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_float.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_float.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_float.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_FLOAT_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_FLOAT_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Macros</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#define qfits_isnan(n) ((sizeof(n)==sizeof(float)) ? _qfits_isnanf(n) : \</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">                        (sizeof(n)==sizeof(double)) ? _qfits_isnand(n) : -1)</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="preprocessor">#define qfits_isinf(n) ((sizeof(n)==sizeof(float)) ? _qfits_isinff(n) : \</span></div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="preprocessor">                        (sizeof(n)==sizeof(double)) ? _qfits_isinfd(n) : -1)</span></div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment">                               Function prototypes</span></div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> </div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="keywordtype">int</span> _qfits_isnanf(<span class="keywordtype">float</span>) ;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="keywordtype">int</span> _qfits_isinff(<span class="keywordtype">float</span>) ;</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="keywordtype">int</span> _qfits_isnand(<span class="keywordtype">double</span>) ;</div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="keywordtype">int</span> _qfits_isinfd(<span class="keywordtype">double</span>) ;</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__header_8h_source.html b/libqfits/html/qfits__header_8h_source.html
deleted file mode 100644
index 98953e4..0000000
--- a/libqfits/html/qfits__header_8h_source.html
+++ /dev/null
@@ -1,141 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_header.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_header.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_header.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_HEADER_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_HEADER_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <unistd.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">                                   New types</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="structqfits__header.html">   54</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> {</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>     <span class="keywordtype">void</span>    *   first ;         <span class="comment">/* Pointer to list start */</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span>     <span class="keywordtype">void</span>    *   last ;          <span class="comment">/* Pointer to list end */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>     <span class="keywordtype">int</span>         n ;             <span class="comment">/* Number of cards in list */</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>     <span class="comment">/* For efficient looping internally */</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span>     <span class="keywordtype">void</span>    *   current ;</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>     <span class="keywordtype">int</span>         current_idx ;</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> } <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> ;</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> </div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">                        Function ANSI prototypes</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> * <a class="code" href="group__qfits__header.html#ga66374136eafc13c56561be2edfd2c9cc" title="FITS header constructor.">qfits_header_new</a>(<span class="keywordtype">void</span>) ;</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> * <a class="code" href="group__qfits__header.html#ga3251cd06190404f27a8bdf5caf888c01" title="FITS header default constructor.">qfits_header_default</a>(<span class="keywordtype">void</span>) ;</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__header.html#ga7d9424e6358ddf28929c9ead23d4d347" title="Add a new card to a FITS header.">qfits_header_add</a>(<a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtyp [...]
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__header.html#gaaec8669e09dca5f346b92c03844c9f82" title="add a new card to a FITS header">qfits_header_add_after</a>(<a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywo [...]
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__header.html#ga561679d8fc1ba9f8b6e1c619e4687154" title="Append a new card to a FITS header.">qfits_header_append</a>(<a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keyw [...]
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__header.html#ga2ab695dbc2e17f35645251497d76e54e" title="Delete a card in a FITS header.">qfits_header_del</a>(<a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__header.html#ga6674ac912c68b117c04c001716140b0f" title="Sort a FITS header.">qfits_header_sort</a>(<a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> **) ;</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> * <a class="code" href="group__qfits__header.html#gaeffc1010c25e936de293be0184787b17" title="Copy a FITS header.">qfits_header_copy</a>(<span class="keyword">const</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *) ;</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__header.html#gadfe9810507edcd87749f9d2b0b0dfbc2" title="Modifies a FITS card.">qfits_header_mod</a>(<a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</sp [...]
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__header.html#gafef6f1ed212ce59e8e393f751077e543" title="qfits_header destructor">qfits_header_destroy</a>(<a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *) ;</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__header.html#ga93f06e0a4dc9a377de106de07cb7ac54" title="Return the value associated to a key, as a string.">qfits_header_getstr</a>(<span class="keyword">const</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__header.html#ga4eb87da6644379a22c99eb2cd284ddf5" title="Return the i-th key/val/com/line tuple in a header.">qfits_header_getitem</a>(<span class="keyword">const</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *, <span class="keywordtype">int</span>, <span class="keywordtype">char</span> * [...]
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>         <span class="keywordtype">char</span> *) ; </div>
-<div class="line"><a name="l00083"></a><span class="lineno">   83</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__header.html#gad1c255fa0ba92d7a196161b1d1739824" title="Return the comment associated to a key, as a string.">qfits_header_getcom</a>(<span class="keyword">const</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span> * [...]
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__header.html#gaa1d6ee802f52590e0f95f1a11c1107b7" title="Return the value associated to a key, as an int.">qfits_header_getint</a>(<span class="keyword">const</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span [...]
-<div class="line"><a name="l00085"></a><span class="lineno">   85</span> <span class="keywordtype">double</span> <a class="code" href="group__qfits__header.html#ga8c2768d848087b2204eb3ed0bfb147fa" title="Return the value associated to a key, as a double.">qfits_header_getdouble</a>(<span class="keyword">const</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span>  [...]
-<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__header.html#gae6cae963a6201a4d013ea288b3bd3a51" title="Return the value associated to a key, as a boolean (int).">qfits_header_getboolean</a>(<span class="keyword">const</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *, <span class="keyword">const</span> <span class="keywordtype">char</s [...]
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__header.html#ga422380d3cd11eadfac3b20e59e1eaed0" title="Dump a FITS header to an opened file.">qfits_header_dump</a>(<span class="keyword">const</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *, FILE *) ;</div>
-<div class="line"><a name="l00088"></a><span class="lineno">   88</span> </div>
-<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__image_8h_source.html b/libqfits/html/qfits__image_8h_source.html
deleted file mode 100644
index 09b0f8e..0000000
--- a/libqfits/html/qfits__image_8h_source.html
+++ /dev/null
@@ -1,185 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_image.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_image.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_image.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_IMAGE_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_IMAGE_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <unistd.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#define PTYPE_FLOAT        0</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#define PTYPE_INT        1</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#define PTYPE_DOUBLE    2</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/* FITS pixel depths */</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">/* FITS BITPIX=8 */</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor">#define BPP_8_UNSIGNED        (8)</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor"></span><span class="comment">/* FITS BITPIX=16 */</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor">#define BPP_16_SIGNED        (16)</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="preprocessor"></span><span class="comment">/* FITS BITPIX=32 */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="preprocessor">#define BPP_32_SIGNED        (32)</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="preprocessor"></span><span class="comment">/* FITS BITPIX=-32 */</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="preprocessor">#define BPP_IEEE_FLOAT      (-32)</span></div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="preprocessor"></span><span class="comment">/* FITS BITPIX=-64 */</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="preprocessor">#define BPP_IEEE_DOUBLE     (-64)</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="preprocessor"></span><span class="comment">/* Default BITPIX for output */</span></div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="preprocessor">#define BPP_DEFAULT         BPP_IEEE_FLOAT</span></div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="comment">                                   New types</span></div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> byte ;</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span> </div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00150"></a><span class="lineno"><a class="code" href="structqfitsloader.html">  150</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structqfitsloader.html" title="qfits loader control object">qfitsloader</a> {</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span> </div>
-<div class="line"><a name="l00153"></a><span class="lineno"><a class="code" href="structqfitsloader.html#a7432f89e962800dee98dd1096fda4bbe">  153</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsloader.html#a7432f89e962800dee98dd1096fda4bbe">_init</a> ;</div>
-<div class="line"><a name="l00154"></a><span class="lineno">  154</span>     </div>
-<div class="line"><a name="l00156"></a><span class="lineno"><a class="code" href="structqfitsloader.html#ac65772c0293a3632e27f5512e2b86213">  156</a></span>     <span class="keywordtype">char</span>    *    <a class="code" href="structqfitsloader.html#ac65772c0293a3632e27f5512e2b86213">filename</a> ;</div>
-<div class="line"><a name="l00158"></a><span class="lineno"><a class="code" href="structqfitsloader.html#a3bf50fffd45c6c1b3adb75a2ab76e6f7">  158</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsloader.html#a3bf50fffd45c6c1b3adb75a2ab76e6f7">xtnum</a> ;</div>
-<div class="line"><a name="l00160"></a><span class="lineno"><a class="code" href="structqfitsloader.html#adcb0cefd447059da1f65f4775267305a">  160</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsloader.html#adcb0cefd447059da1f65f4775267305a">pnum</a> ;</div>
-<div class="line"><a name="l00162"></a><span class="lineno"><a class="code" href="structqfitsloader.html#a4aae21aa554e7f6c59798b34c26dea1e">  162</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsloader.html#a4aae21aa554e7f6c59798b34c26dea1e">ptype</a> ;</div>
-<div class="line"><a name="l00164"></a><span class="lineno"><a class="code" href="structqfitsloader.html#a633c3df6fa87c8deb7e3b199672974dc">  164</a></span>     <span class="keywordtype">int</span>         <a class="code" href="structqfitsloader.html#a633c3df6fa87c8deb7e3b199672974dc">map</a> ;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
-<div class="line"><a name="l00167"></a><span class="lineno"><a class="code" href="structqfitsloader.html#ae4efb9ea8659659cc35080f7e90dc3de">  167</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsloader.html#ae4efb9ea8659659cc35080f7e90dc3de">exts</a> ;</div>
-<div class="line"><a name="l00169"></a><span class="lineno"><a class="code" href="structqfitsloader.html#aeba7b81df69f628afada32fe32dddde6">  169</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsloader.html#aeba7b81df69f628afada32fe32dddde6">lx</a> ;</div>
-<div class="line"><a name="l00171"></a><span class="lineno"><a class="code" href="structqfitsloader.html#a7afc84e3bb864ba88a8f9a5b72c49a7f">  171</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsloader.html#a7afc84e3bb864ba88a8f9a5b72c49a7f">ly</a> ;</div>
-<div class="line"><a name="l00173"></a><span class="lineno"><a class="code" href="structqfitsloader.html#ab1a4a1c8055e83b1cc21260e339d539b">  173</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsloader.html#ab1a4a1c8055e83b1cc21260e339d539b">np</a> ;</div>
-<div class="line"><a name="l00175"></a><span class="lineno"><a class="code" href="structqfitsloader.html#a7f9d024efa767e451de26daf5ba4ffed">  175</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsloader.html#a7f9d024efa767e451de26daf5ba4ffed">bitpix</a> ;</div>
-<div class="line"><a name="l00177"></a><span class="lineno"><a class="code" href="structqfitsloader.html#ae492fd95d5ead66006235b12a8ed8c67">  177</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsloader.html#ae492fd95d5ead66006235b12a8ed8c67">seg_start</a> ;</div>
-<div class="line"><a name="l00179"></a><span class="lineno"><a class="code" href="structqfitsloader.html#ab89fe834e26a8c6ccdbf67ee4c71def9">  179</a></span>     <span class="keywordtype">int</span>         <a class="code" href="structqfitsloader.html#ab89fe834e26a8c6ccdbf67ee4c71def9">seg_size</a> ;</div>
-<div class="line"><a name="l00181"></a><span class="lineno"><a class="code" href="structqfitsloader.html#a88c2700a244a127ee5438cbacd6a8b0f">  181</a></span>     <span class="keywordtype">double</span>        <a class="code" href="structqfitsloader.html#a88c2700a244a127ee5438cbacd6a8b0f">bscale</a> ;</div>
-<div class="line"><a name="l00183"></a><span class="lineno"><a class="code" href="structqfitsloader.html#a79bc4b4ffc7df8d63acef6945bc92289">  183</a></span>     <span class="keywordtype">double</span>        <a class="code" href="structqfitsloader.html#a79bc4b4ffc7df8d63acef6945bc92289">bzero</a> ;</div>
-<div class="line"><a name="l00184"></a><span class="lineno">  184</span> </div>
-<div class="line"><a name="l00186"></a><span class="lineno"><a class="code" href="structqfitsloader.html#a675d5fd4425de2a4cea0772d07295377">  186</a></span>     <span class="keywordtype">int</span>        *    <a class="code" href="structqfitsloader.html#a675d5fd4425de2a4cea0772d07295377">ibuf</a> ;</div>
-<div class="line"><a name="l00188"></a><span class="lineno"><a class="code" href="structqfitsloader.html#aabbef5dcffa5429c22f062024f7a2dea">  188</a></span>     <span class="keywordtype">float</span>    *    <a class="code" href="structqfitsloader.html#aabbef5dcffa5429c22f062024f7a2dea">fbuf</a> ;</div>
-<div class="line"><a name="l00190"></a><span class="lineno"><a class="code" href="structqfitsloader.html#abc565668aa520eef363c605216958093">  190</a></span>     <span class="keywordtype">double</span>    *    <a class="code" href="structqfitsloader.html#abc565668aa520eef363c605216958093">dbuf</a> ;</div>
-<div class="line"><a name="l00191"></a><span class="lineno">  191</span> </div>
-<div class="line"><a name="l00192"></a><span class="lineno">  192</span> } <a class="code" href="structqfitsloader.html" title="qfits loader control object">qfitsloader</a> ;</div>
-<div class="line"><a name="l00193"></a><span class="lineno">  193</span> </div>
-<div class="line"><a name="l00194"></a><span class="lineno">  194</span> </div>
-<div class="line"><a name="l00195"></a><span class="lineno">  195</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno"><a class="code" href="structqfitsdumper.html">  239</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structqfitsdumper.html" title="qfits dumper control object">qfitsdumper</a> {</div>
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
-<div class="line"><a name="l00242"></a><span class="lineno"><a class="code" href="structqfitsdumper.html#a6c00e4a857fb7babd7b56e5d57b0d65b">  242</a></span>     <span class="keywordtype">char</span>     *    <a class="code" href="structqfitsdumper.html#a6c00e4a857fb7babd7b56e5d57b0d65b">filename</a> ;</div>
-<div class="line"><a name="l00244"></a><span class="lineno"><a class="code" href="structqfitsdumper.html#aec1e2350cff8bff372150d6c15e20fd9">  244</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsdumper.html#aec1e2350cff8bff372150d6c15e20fd9">npix</a> ;</div>
-<div class="line"><a name="l00246"></a><span class="lineno"><a class="code" href="structqfitsdumper.html#acdcf9753f787dc03a9f7ce5dcb0bfc4e">  246</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsdumper.html#acdcf9753f787dc03a9f7ce5dcb0bfc4e">ptype</a> ;</div>
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span> </div>
-<div class="line"><a name="l00249"></a><span class="lineno"><a class="code" href="structqfitsdumper.html#afeef2d85580153a3af53afe7a7eefb9d">  249</a></span>     <span class="keywordtype">int</span>        *    <a class="code" href="structqfitsdumper.html#afeef2d85580153a3af53afe7a7eefb9d">ibuf</a> ;</div>
-<div class="line"><a name="l00251"></a><span class="lineno"><a class="code" href="structqfitsdumper.html#a4ee45b2224bccef4014771f73ab20401">  251</a></span>     <span class="keywordtype">float</span>    *    <a class="code" href="structqfitsdumper.html#a4ee45b2224bccef4014771f73ab20401">fbuf</a> ;</div>
-<div class="line"><a name="l00253"></a><span class="lineno"><a class="code" href="structqfitsdumper.html#a149090f40a5a6954ce278d140f524f00">  253</a></span>     <span class="keywordtype">double</span>    *    <a class="code" href="structqfitsdumper.html#a149090f40a5a6954ce278d140f524f00">dbuf</a> ;</div>
-<div class="line"><a name="l00254"></a><span class="lineno">  254</span> </div>
-<div class="line"><a name="l00256"></a><span class="lineno"><a class="code" href="structqfitsdumper.html#a6645789d9bc2e03d8f3a83b78569fdba">  256</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfitsdumper.html#a6645789d9bc2e03d8f3a83b78569fdba">out_ptype</a> ;</div>
-<div class="line"><a name="l00257"></a><span class="lineno">  257</span> } <a class="code" href="structqfitsdumper.html" title="qfits dumper control object">qfitsdumper</a> ;</div>
-<div class="line"><a name="l00258"></a><span class="lineno">  258</span> </div>
-<div class="line"><a name="l00259"></a><span class="lineno">  259</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00260"></a><span class="lineno">  260</span> <span class="comment">                               Function prototypes</span></div>
-<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00262"></a><span class="lineno">  262</span> </div>
-<div class="line"><a name="l00263"></a><span class="lineno">  263</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a" title="Initialize a qfitsloader control object.">qfitsloader_init</a>(<a class="code" href="structqfitsloader.html" title="qfits loader control object">qfitsloader</a> *) ;</div>
-<div class="line"><a name="l00264"></a><span class="lineno">  264</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__image.html#ga7b44eb748f6b8079c5fb270bbe78444c" title="Load a pixel buffer for one complete image.">qfits_loadpix</a>(<a class="code" href="structqfitsloader.html" title="qfits loader control object">qfitsloader</a> *) ;</div>
-<div class="line"><a name="l00265"></a><span class="lineno">  265</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f" title="Load a pixel buffer for one image window.">qfits_loadpix_window</a>(<a class="code" href="structqfitsloader.html" title="qfits loader control object">qfitsloader</a> *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <spa [...]
-<div class="line"><a name="l00266"></a><span class="lineno">  266</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__image.html#gabd911794a1a8798df0b5ad5cc1719472" title="Dump a pixel buffer to an output FITS file in append mode.">qfits_pixdump</a>(<a class="code" href="structqfitsdumper.html" title="qfits dumper control object">qfitsdumper</a> *) ;</div>
-<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
-<div class="line"><a name="l00268"></a><span class="lineno">  268</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__md5_8h_source.html b/libqfits/html/qfits__md5_8h_source.html
deleted file mode 100644
index 450526e..0000000
--- a/libqfits/html/qfits__md5_8h_source.html
+++ /dev/null
@@ -1,105 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_md5.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_md5.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_md5.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_MD5_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_MD5_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">                        Function ANSI prototypes</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__md5.html#ga6cca6936b0596d532bd2272e65aa642d" title="Compute the MD5 hash of data zones in a FITS file.">qfits_datamd5</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> </div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__memory_8h_source.html b/libqfits/html/qfits__memory_8h_source.html
deleted file mode 100644
index f151a91..0000000
--- a/libqfits/html/qfits__memory_8h_source.html
+++ /dev/null
@@ -1,129 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_memory.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_memory.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_memory.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_MEMORY_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_MEMORY_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#define qfits_malloc(s)         qfits_memory_malloc(s,      __FILE__,__LINE__)</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor"></span><span class="preprocessor">#define qfits_calloc(n,s)       qfits_memory_calloc(n,s,    __FILE__,__LINE__)</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span><span class="preprocessor">#define qfits_realloc(p,s)      qfits_memory_realloc(p,s,   __FILE__,__LINE__)</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor"></span><span class="preprocessor">#define qfits_free(p)           qfits_memory_free(p,        __FILE__,__LINE__)</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span><span class="preprocessor">#define qfits_strdup(s)         qfits_memory_strdup(s,      __FILE__,__LINE__)</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor"></span><span class="preprocessor">#define qfits_falloc(f,o,s)     qfits_memory_falloc(f,o,s,  __FILE__,__LINE__)</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="preprocessor">#define qfits_fdealloc(f,o,s)   qfits_memory_fdealloc(f,o,s,__FILE__,__LINE__)</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="comment">                               Function prototypes</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment">/* *********************************************************************** */</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/* These functions have to be called by the assiciated macro defined above */</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keywordtype">void</span> * <a class="code" href="group__qfits__memory.html#ga3f7de886609ee60fe55a310ada0d0871" title="Allocate memory.">qfits_memory_malloc</a>(<span class="keywordtype">size_t</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="keywordtype">void</span> * <a class="code" href="group__qfits__memory.html#gabe151b6ddc8cd687d96d244fa4555897" title="Allocate memory.">qfits_memory_calloc</a>(<span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="keywordtype">void</span> * <a class="code" href="group__qfits__memory.html#ga70656f7702753ca58cb908219246a5f1" title="Re-Allocate memory.">qfits_memory_realloc</a>(<span class="keywordtype">void</span> *, <span class="keywordtype">size_t</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="keywordtype">void</span>   <a class="code" href="group__qfits__memory.html#ga991bc243fb22e07909ba2374cce6599c" title="Free memory.">qfits_memory_free</a>(<span class="keywordtype">void</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__memory.html#gaa301522a5f802cd49516569fb11a00dc" title="Duplicate a string using calloc.">qfits_memory_strdup</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__memory.html#gafda029a79898b0f019bec5ca17f184ed" title="Map a file's contents to memory as a char pointer.">qfits_memory_falloc</a>(<span class="keywordtype">char</span> *, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <s [...]
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__memory.html#ga95375111742d72b8f467cec2a97c649d" title="Free memory that has been allocated with falloc.">qfits_memory_fdealloc</a>(<span class="keywordtype">void</span> *, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span clas [...]
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="comment">/* *********************************************************************** */</span></div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> </div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__memory.html#gaeddd5339de68f2edb2ab78b43d0c2ffa" title="Display memory status information.">qfits_memory_status</a>(<span class="keywordtype">void</span>) ;</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__memory.html#gabccfc4a63280b6b70ad8145668348423" title="Tell if there is still some memory allocated.">qfits_memory_is_empty</a>(<span class="keywordtype">void</span>) ;</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__rw_8h_source.html b/libqfits/html/qfits__rw_8h_source.html
deleted file mode 100644
index 44e1c9d..0000000
--- a/libqfits/html/qfits__rw_8h_source.html
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_rw.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_rw.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_rw.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_RW_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_RW_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include "qfits_header.h"</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="comment">                        Function ANSI prototypes</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> * <a class="code" href="group__qfits__rw.html#ga421b5a3c51be68732e07633657b378e3" title="Read a FITS header from a file to an internal structure.">qfits_header_read</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> * <a class="code" href="group__qfits__rw.html#ga162f1d553ce43281b82699c1ca0f14cf" title="Read a FITS header from a 'hdr' file.">qfits_header_read_hdr</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> * <a class="code" href="group__qfits__rw.html#ga6155704a411e9be7a2a1ee6b275380f7" title="Read a FITS header from a 'hdr' string.">qfits_header_read_hdr_string</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</s [...]
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> * <a class="code" href="group__qfits__rw.html#ga930590f9b28a90dffb66024c96251162" title="Read an extension header from a FITS file.">qfits_header_readext</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__rw.html#gaf048e797ef10ca202581436833b37a7d" title="Pad an existing file with zeros to a multiple of 2880.">qfits_zeropad</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__rw.html#ga7315ec6b99b4da3af2059f988ffc9c9c" title="Identify if a file is a FITS file.">qfits_is_fits</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__rw.html#ga98043b1322f502acab5b99afbcb8165a" title="Retrieve offset to start and size of a header in a FITS file.">qfits_get_hdrinfo</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *) ;</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__rw.html#ga26382a339b6a5ca0843dec82dc78be28" title="Retrieve offset to start and size of a data section in a file.">qfits_get_datinfo</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *) ;</div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> </div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__std_8h_source.html b/libqfits/html/qfits__std_8h_source.html
deleted file mode 100644
index 1c6313d..0000000
--- a/libqfits/html/qfits__std_8h_source.html
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_std.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_std.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_std.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_STD_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_STD_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="comment">/* FITS header constants */</span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#define FITS_BLOCK_SIZE     (2880)</span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#define FITS_NCARDS         (36)</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#define FITS_LINESZ         (80)</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__table_8h_source.html b/libqfits/html/qfits__table_8h_source.html
deleted file mode 100644
index 16bb445..0000000
--- a/libqfits/html/qfits__table_8h_source.html
+++ /dev/null
@@ -1,209 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_table.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_table.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_table.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_TABLE_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_TABLE_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include <unistd.h></span></div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span>     </div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include "qfits_header.h"</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> </div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">/* The following defines the maximum acceptable size for a FITS value */</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#define FITSVALSZ                    60</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#define QFITS_INVALIDTABLE            0</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_BINTABLE                1</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_ASCIITABLE            2</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="comment">                                   New types</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="keyword">typedef</span> <span class="keyword">enum</span> _TFITS_DATA_TYPE_ {</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>     TFITS_ASCII_TYPE_A,</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     TFITS_ASCII_TYPE_D,</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     TFITS_ASCII_TYPE_E,</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     TFITS_ASCII_TYPE_F,</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     TFITS_ASCII_TYPE_I,</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span>     TFITS_BIN_TYPE_A,</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     TFITS_BIN_TYPE_B,</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     TFITS_BIN_TYPE_C,</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     TFITS_BIN_TYPE_D,</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span>     TFITS_BIN_TYPE_E,</div>
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span>     TFITS_BIN_TYPE_I,</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span>     TFITS_BIN_TYPE_J,</div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     TFITS_BIN_TYPE_L,</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>     TFITS_BIN_TYPE_M,</div>
-<div class="line"><a name="l00077"></a><span class="lineno">   77</span>     TFITS_BIN_TYPE_P,</div>
-<div class="line"><a name="l00078"></a><span class="lineno">   78</span>     TFITS_BIN_TYPE_X,</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>     TFITS_BIN_TYPE_UNKNOWN</div>
-<div class="line"><a name="l00080"></a><span class="lineno">   80</span> } tfits_type ;</div>
-<div class="line"><a name="l00081"></a><span class="lineno">   81</span> </div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno">   93</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="structqfits__col.html">   94</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structqfits__col.html" title="Column object.">qfits_col</a></div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span> {</div>
-<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">  104</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">atom_nb</a> ;</div>
-<div class="line"><a name="l00105"></a><span class="lineno">  105</span> </div>
-<div class="line"><a name="l00110"></a><span class="lineno"><a class="code" href="structqfits__col.html#ac9f510772ccdfc3543202984cbbf8d78">  110</a></span>     <span class="keywordtype">int</span>         <a class="code" href="structqfits__col.html#ac9f510772ccdfc3543202984cbbf8d78">atom_dec_nb</a> ;</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span> </div>
-<div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="structqfits__col.html#aac16a34501523b77bed062e9d89e25f4">  131</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfits__col.html#aac16a34501523b77bed062e9d89e25f4">atom_size</a> ;    </div>
-<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     </div>
-<div class="line"><a name="l00138"></a><span class="lineno"><a class="code" href="structqfits__col.html#ac591d6d9f8608c920fc0cb71ef457525">  138</a></span>     tfits_type    <a class="code" href="structqfits__col.html#ac591d6d9f8608c920fc0cb71ef457525">atom_type</a> ;</div>
-<div class="line"><a name="l00139"></a><span class="lineno">  139</span> </div>
-<div class="line"><a name="l00141"></a><span class="lineno"><a class="code" href="structqfits__col.html#a9c08e400a42fa008eabc449ce00ca414">  141</a></span>     <span class="keywordtype">char</span>        <a class="code" href="structqfits__col.html#a9c08e400a42fa008eabc449ce00ca414">tlabel</a>[FITSVALSZ] ;</div>
-<div class="line"><a name="l00142"></a><span class="lineno">  142</span> </div>
-<div class="line"><a name="l00144"></a><span class="lineno"><a class="code" href="structqfits__col.html#a08967111cc77b195bf3a21354392bd06">  144</a></span>     <span class="keywordtype">char</span>        <a class="code" href="structqfits__col.html#a08967111cc77b195bf3a21354392bd06">tunit</a>[FITSVALSZ] ;</div>
-<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     </div>
-<div class="line"><a name="l00147"></a><span class="lineno"><a class="code" href="structqfits__col.html#ae30c1a49f9939d7f0cd1ec22b68ad553">  147</a></span>     <span class="keywordtype">char</span>        <a class="code" href="structqfits__col.html#ae30c1a49f9939d7f0cd1ec22b68ad553">nullval</a>[FITSVALSZ] ;</div>
-<div class="line"><a name="l00148"></a><span class="lineno">  148</span> </div>
-<div class="line"><a name="l00150"></a><span class="lineno"><a class="code" href="structqfits__col.html#ae4cf43106f6e35697fbe125b38e12e76">  150</a></span>     <span class="keywordtype">char</span>        <a class="code" href="structqfits__col.html#ae4cf43106f6e35697fbe125b38e12e76">tdisp</a>[FITSVALSZ] ;</div>
-<div class="line"><a name="l00151"></a><span class="lineno">  151</span>     </div>
-<div class="line"><a name="l00158"></a><span class="lineno"><a class="code" href="structqfits__col.html#a3c9bafa164bf35b131bfc756305bb28e">  158</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfits__col.html#a3c9bafa164bf35b131bfc756305bb28e">zero_present</a> ;    </div>
-<div class="line"><a name="l00159"></a><span class="lineno">  159</span>     <span class="keywordtype">float</span>        zero ;        </div>
-<div class="line"><a name="l00160"></a><span class="lineno">  160</span>     <span class="keywordtype">int</span>            scale_present ;</div>
-<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <span class="keywordtype">float</span>        scale ;   </div>
-<div class="line"><a name="l00162"></a><span class="lineno">  162</span> </div>
-<div class="line"><a name="l00164"></a><span class="lineno"><a class="code" href="structqfits__col.html#a0912e108e03ff4e074359e3f1ef9032f">  164</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfits__col.html#a0912e108e03ff4e074359e3f1ef9032f">off_beg</a> ;</div>
-<div class="line"><a name="l00165"></a><span class="lineno">  165</span>     </div>
-<div class="line"><a name="l00167"></a><span class="lineno"><a class="code" href="structqfits__col.html#a509c5e79f65feb58057ddd793cb58379">  167</a></span>     <span class="keywordtype">int</span>            <a class="code" href="structqfits__col.html#a509c5e79f65feb58057ddd793cb58379">readable</a> ;</div>
-<div class="line"><a name="l00168"></a><span class="lineno">  168</span> } <a class="code" href="structqfits__col.html" title="Column object.">qfits_col</a> ;</div>
-<div class="line"><a name="l00169"></a><span class="lineno">  169</span> </div>
-<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
-<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment">/*----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno"><a class="code" href="structqfits__table.html">  202</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a></div>
-<div class="line"><a name="l00203"></a><span class="lineno">  203</span> {</div>
-<div class="line"><a name="l00207"></a><span class="lineno"><a class="code" href="structqfits__table.html#a91e80cea4099f0f08e8cb5bb78c06b77">  207</a></span>     <span class="keywordtype">char</span>            <a class="code" href="structqfits__table.html#a91e80cea4099f0f08e8cb5bb78c06b77">filename</a>[512] ;</div>
-<div class="line"><a name="l00212"></a><span class="lineno"><a class="code" href="structqfits__table.html#aee14f7bd2b26ebd2124ede91eb19f0f3">  212</a></span>     <span class="keywordtype">int</span>                <a class="code" href="structqfits__table.html#aee14f7bd2b26ebd2124ede91eb19f0f3">tab_t</a> ;</div>
-<div class="line"><a name="l00214"></a><span class="lineno"><a class="code" href="structqfits__table.html#a31c46ca3eeb53ce7a1931b1b342842d6">  214</a></span>     <span class="keywordtype">int</span>                <a class="code" href="structqfits__table.html#a31c46ca3eeb53ce7a1931b1b342842d6">tab_w</a> ;            </div>
-<div class="line"><a name="l00216"></a><span class="lineno"><a class="code" href="structqfits__table.html#af67a70e4e72ca3a75022900a1497b1a5">  216</a></span>     <span class="keywordtype">int</span>                <a class="code" href="structqfits__table.html#af67a70e4e72ca3a75022900a1497b1a5">nc</a> ;            </div>
-<div class="line"><a name="l00218"></a><span class="lineno"><a class="code" href="structqfits__table.html#a0ddd9b546ee8d8d3adf640137ebc476a">  218</a></span>     <span class="keywordtype">int</span>                <a class="code" href="structqfits__table.html#a0ddd9b546ee8d8d3adf640137ebc476a">nr</a> ;</div>
-<div class="line"><a name="l00220"></a><span class="lineno"><a class="code" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">  220</a></span>     <a class="code" href="structqfits__col.html" title="Column object.">qfits_col</a>    *    <a class="code" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">col</a> ;            </div>
-<div class="line"><a name="l00221"></a><span class="lineno">  221</span> } <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> ;</div>
-<div class="line"><a name="l00222"></a><span class="lineno">  222</span> </div>
-<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment">                               Function prototypes</span></div>
-<div class="line"><a name="l00225"></a><span class="lineno">  225</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00226"></a><span class="lineno">  226</span> </div>
-<div class="line"><a name="l00227"></a><span class="lineno">  227</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__table.html#ga2e65c23ba93807287cb2ae7b5e38f167" title="Identify a file as containing a FITS table in extension.">qfits_is_table</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * filename, <span class="keywordtype">int</span> xtnum) ;</div>
-<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> * <a class="code" href="group__qfits__table.html#ga6074bd22a3b657c667109fac82f3e37e" title="Generate a default primary header to store tables.">qfits_table_prim_header_default</a>(<span class="keywordtype">void</span>) ;</div>
-<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> * <a class="code" href="group__qfits__table.html#gaf1f20765aa86e6696aac1b34cddb5fbb" title="Generate a default extension header to store tables.">qfits_table_ext_header_default</a>(<span class="keyword">const</span> <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> *) ;</div>
-<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> * <a class="code" href="group__qfits__table.html#gaf33bb94058ccd42957fcb2cbbd9b72fc" title="Table object constructor.">qfits_table_new</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>,  [...]
-<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b" title="Fill a column object with some provided informations.">qfits_col_fill</a>(<a class="code" href="structqfits__col.html" title="Column object.">qfits_col</a> *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, tfits_type, <s [...]
-<div class="line"><a name="l00232"></a><span class="lineno">  232</span>         <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>, <span class="keywordtype">float</span>, <span class="keywordtype">int</span>, <span class="keywordtype">float</span>, <span class="keywordty [...]
-<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> * <a class="code" href="group__qfits__table.html#gae7aafce3d040136c4fb5882ad5a6344e" title="Read a FITS extension.">qfits_table_open</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="keywordtype">void</span> <a class="code" href="group__qfits__table.html#ga59b5aa7c5b59e5dae95ea2b54512103a" title="Free a FITS table and associated pointers.">qfits_table_close</a>(<a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> *) ;</div>
-<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67" title="Extract data from a column in a FITS table.">qfits_query_column</a>(<span class="keyword">const</span> <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> *, <span class="keywordtype">int</span>, <span class=" [...]
-<div class="line"><a name="l00236"></a><span class="lineno">  236</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__table.html#ga37432ab039e40c243b04b9c68927e47e" title="Extract consequtive values from a column in a FITS table.">qfits_query_column_seq</a>(<span class="keyword">const</span> <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> *, <span class="keywordtype">int</sp [...]
-<div class="line"><a name="l00237"></a><span class="lineno">  237</span> <span class="keywordtype">void</span> * <a class="code" href="group__qfits__table.html#ga2322a7004c7733d7551d94c8c2685d78" title="Extract binary data from a column in a FITS table.">qfits_query_column_data</a>(<span class="keyword">const</span> <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> *, <span class="keywordtype">int</span>, <span class="keyword">const</span> <span cl [...]
-<div class="line"><a name="l00238"></a><span class="lineno">  238</span>         <span class="keyword">const</span> <span class="keywordtype">void</span> *) ;</div>
-<div class="line"><a name="l00239"></a><span class="lineno">  239</span> <span class="keywordtype">void</span> * <a class="code" href="group__qfits__table.html#gaba48a32c1d684f3d1155def221bdd8df" title="Extract binary data from a column in a FITS table.">qfits_query_column_seq_data</a>(<span class="keyword">const</span> <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, < [...]
-<div class="line"><a name="l00240"></a><span class="lineno">  240</span>         <span class="keyword">const</span> <span class="keywordtype">void</span> *) ;</div>
-<div class="line"><a name="l00241"></a><span class="lineno">  241</span> <span class="keywordtype">int</span> * <a class="code" href="group__qfits__table.html#ga7d5291d4c02f0d53938f0289a29be058" title="Detect NULL values in a column.">qfits_query_column_nulls</a>(<span class="keyword">const</span> <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> *, <span class="keywordtype">int</span>, <span class="keyword">const</span> <span class="keywordtype">i [...]
-<div class="line"><a name="l00242"></a><span class="lineno">  242</span>         <span class="keywordtype">int</span> *);</div>
-<div class="line"><a name="l00243"></a><span class="lineno">  243</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__table.html#ga501741264c6698c3625b468da65be774" title="Save a table to a FITS file with a given FITS header.">qfits_save_table_hdrdump</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> **, <span class="keyword">const</span> <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> *, </div>
-<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         <span class="keyword">const</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *) ;</div>
-<div class="line"><a name="l00245"></a><span class="lineno">  245</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__table.html#ga8f8c574d5cfdfcb6ccc20d5f785f703f" title="Appends a std extension header + data to a FITS table file.">qfits_table_append_xtension</a>(FILE *, <span class="keyword">const</span> <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> *, <span class="keyword">const</span> <span class="keywordtype">vo [...]
-<div class="line"><a name="l00246"></a><span class="lineno">  246</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__table.html#ga8d3d9a97097ce0d540845264748f7527" title="Appends a specified extension header + data to a FITS table file.">qfits_table_append_xtension_hdr</a>(FILE *, <span class="keyword">const</span> <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> *, <span class="keyword">const</span> <span class="keywo [...]
-<div class="line"><a name="l00247"></a><span class="lineno">  247</span>         <span class="keyword">const</span> <a class="code" href="structqfits__header.html" title="FITS header object.">qfits_header</a> *) ;</div>
-<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__table.html#ga2bf072737a01327972eae852b49bb5b0" title="given a col and a row, find out the string to write for display">qfits_table_field_to_string</a>(<span class="keyword">const</span> <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a> *, <span class="keywordtype">int</span>, <span class="keywordtype"> [...]
-<div class="line"><a name="l00249"></a><span class="lineno">  249</span> </div>
-<div class="line"><a name="l00250"></a><span class="lineno">  250</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__time_8h_source.html b/libqfits/html/qfits__time_8h_source.html
deleted file mode 100644
index 48a0748..0000000
--- a/libqfits/html/qfits__time_8h_source.html
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_time.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_time.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_time.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_TIME_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_TIME_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                        Function ANSI C prototypes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__time.html#ga0b6bb63b7b3cdc2cd7954fdbd2844293" title="Returns the current date and time as a static string.">qfits_get_datetime_iso8601</a>(<span class="keywordtype">void</span>) ;</div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> </div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/qfits__tools_8h_source.html b/libqfits/html/qfits__tools_8h_source.html
deleted file mode 100644
index 48107f5..0000000
--- a/libqfits/html/qfits__tools_8h_source.html
+++ /dev/null
@@ -1,135 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_tools.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="annotated.html"><span>Classes</span></a></li>
-      <li class="current"><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="files.html"><span>File List</span></a></li>
-    </ul>
-  </div>
-<div id="nav-path" class="navpath">
-  <ul>
-<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
-</div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_tools.h</div>  </div>
-</div><!--header-->
-<div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">/* $Id: qfits_tools.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment"> * This file is part of the ESO QFITS Library</span></div>
-<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment"> * Copyright (C) 2001-2004 European Southern Observatory</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
-<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment"> * (at your option) any later version.</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
-<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
-<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
-<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment"> * GNU General Public License for more details.</span></div>
-<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment"> *</span></div>
-<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
-<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
-<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
-<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00020"></a><span class="lineno">   20</span> </div>
-<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">/*</span></div>
-<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment"> * $Author: agabasch $</span></div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment"> * $Date: 2008-11-03 13:40:49 $</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment"> * $Revision: 1.1.1.1 $</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment"> * $Name: not supported by cvs2svn $</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment"> */</span></div>
-<div class="line"><a name="l00027"></a><span class="lineno">   27</span> </div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#ifndef QFITS_TOOLS_H</span></div>
-<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor"></span><span class="preprocessor">#define QFITS_TOOLS_H</span></div>
-<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">                                   Includes</span></div>
-<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00034"></a><span class="lineno">   34</span> </div>
-<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include <stdio.h></span></div>
-<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include <stdlib.h></span></div>
-<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include <string.h></span></div>
-<div class="line"><a name="l00038"></a><span class="lineno">   38</span> </div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="comment">                                   Defines</span></div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span> </div>
-<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="comment">/* Unknown type for FITS value */</span></div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#define QFITS_UNKNOWN       0</span></div>
-<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor"></span><span class="comment">/* Boolean type for FITS value */</span></div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#define QFITS_BOOLEAN       1</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor"></span><span class="comment">/* Int type for FITS value */</span></div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#define    QFITS_INT        2</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor"></span><span class="comment">/* Float type for FITS value */</span></div>
-<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#define QFITS_FLOAT         3</span></div>
-<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor"></span><span class="comment">/* Complex type for FITS value */</span></div>
-<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="preprocessor">#define QFITS_COMPLEX       4</span></div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="preprocessor"></span><span class="comment">/* String type for FITS value */</span></div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="preprocessor">#define QFITS_STRING        5</span></div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="preprocessor"></span></div>
-<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment">/*-----------------------------------------------------------------------------</span></div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">                              Function codes</span></div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment"> -----------------------------------------------------------------------------*/</span></div>
-<div class="line"><a name="l00059"></a><span class="lineno">   59</span> </div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__tools.html#ga1bf0f64f2d4c78a16bea9afc2702fd68" title="Retrieve the value of a key in a FITS header.">qfits_query_hdr</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__tools.html#gae2889b70d541dcd43796f1f6c352467a" title="Retrieve the value of a keyin a FITS extension header.">qfits_query_ext</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00062"></a><span class="lineno">   62</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__tools.html#ga584cb7b1cdbdbb78f130c18a20366146" title="Counts the number of extensions in a FITS file.">qfits_query_n_ext</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__tools.html#ga170ce2b7cb25a21cb34f049fac7197bd" title="Counts the number of planes in a FITS extension.">qfits_query_nplanes</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>) ;</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__tools.html#ga6fb825df5050fda4bc3b6903e65fbbac" title="Clean out a FITS string value.">qfits_pretty_string</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00065"></a><span class="lineno">   65</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__tools.html#gaa53de3a6fae72699f185ccb4917cc5ca" title="Identify if a FITS value is boolean.">qfits_is_boolean</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00066"></a><span class="lineno">   66</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__tools.html#ga5ba85c00493f0c641a2ca4c5d98a986b" title="Identify if a FITS value is an int.">qfits_is_int</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00067"></a><span class="lineno">   67</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__tools.html#gab26323633e112d41498246675d2b42b6" title="Identify if a FITS value is float.">qfits_is_float</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00068"></a><span class="lineno">   68</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__tools.html#gad8d941f09367844ee6317f05b474970f" title="Identify if a FITS value is complex.">qfits_is_complex</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00069"></a><span class="lineno">   69</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__tools.html#gad4a09994d041964f31d7ef3e9d42894f" title="Identify if a FITS value is string.">qfits_is_string</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00070"></a><span class="lineno">   70</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__tools.html#gae1e84592f45fad4180a8337b41e4ea99" title="Identify the type of a FITS value given as a string.">qfits_get_type</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00071"></a><span class="lineno">   71</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__tools.html#gace22858611228d491326425cb8ddc9b8" title="Query a card in a FITS (main) header by a given key.">qfits_query_card</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *) ;</div>
-<div class="line"><a name="l00072"></a><span class="lineno">   72</span> <span class="keywordtype">int</span> <a class="code" href="group__qfits__tools.html#ga7d24df36f71c8e27215f3eada5089b0f" title="Replace a card in a FITS (main) header by a given card.">qfits_replace_card</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keyword [...]
-<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__qfits__tools.html#gab89a775fb75f18d513aaedd92bf0303b" title="Return the current QFITS version.">qfits_version</a>(<span class="keywordtype">void</span>) ;</div>
-<div class="line"><a name="l00074"></a><span class="lineno">   74</span> </div>
-<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="preprocessor">#endif</span></div>
-</div><!-- fragment --></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/structqfits__col-members.html b/libqfits/html/structqfits__col-members.html
deleted file mode 100644
index 7b0ed9b..0000000
--- a/libqfits/html/structqfits__col-members.html
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Member List</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_col Member List</div>  </div>
-</div><!--header-->
-<div class="contents">
-
-<p>This is the complete list of members for <a class="el" href="structqfits__col.html">qfits_col</a>, including all inherited members.</p>
-<table class="directory">
-  <tr class="even"><td class="entry"><a class="el" href="structqfits__col.html#ac9f510772ccdfc3543202984cbbf8d78">atom_dec_nb</a></td><td class="entry"><a class="el" href="structqfits__col.html">qfits_col</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">atom_nb</a></td><td class="entry"><a class="el" href="structqfits__col.html">qfits_col</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfits__col.html#aac16a34501523b77bed062e9d89e25f4">atom_size</a></td><td class="entry"><a class="el" href="structqfits__col.html">qfits_col</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfits__col.html#ac591d6d9f8608c920fc0cb71ef457525">atom_type</a></td><td class="entry"><a class="el" href="structqfits__col.html">qfits_col</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfits__col.html#ae30c1a49f9939d7f0cd1ec22b68ad553">nullval</a></td><td class="entry"><a class="el" href="structqfits__col.html">qfits_col</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfits__col.html#a0912e108e03ff4e074359e3f1ef9032f">off_beg</a></td><td class="entry"><a class="el" href="structqfits__col.html">qfits_col</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfits__col.html#a509c5e79f65feb58057ddd793cb58379">readable</a></td><td class="entry"><a class="el" href="structqfits__col.html">qfits_col</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfits__col.html#ae4cf43106f6e35697fbe125b38e12e76">tdisp</a></td><td class="entry"><a class="el" href="structqfits__col.html">qfits_col</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfits__col.html#a9c08e400a42fa008eabc449ce00ca414">tlabel</a></td><td class="entry"><a class="el" href="structqfits__col.html">qfits_col</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfits__col.html#a08967111cc77b195bf3a21354392bd06">tunit</a></td><td class="entry"><a class="el" href="structqfits__col.html">qfits_col</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfits__col.html#a3c9bafa164bf35b131bfc756305bb28e">zero_present</a></td><td class="entry"><a class="el" href="structqfits__col.html">qfits_col</a></td><td class="entry"></td></tr>
-</table></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/structqfits__col.html b/libqfits/html/structqfits__col.html
deleted file mode 100644
index 86003b9..0000000
--- a/libqfits/html/structqfits__col.html
+++ /dev/null
@@ -1,264 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_col Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Public Attributes</a>  </div>
-  <div class="headertitle">
-<div class="title">qfits_col Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-
-<p>Column object.  
- <a href="structqfits__col.html#details">More...</a></p>
-
-<p><code>#include <<a class="el" href="qfits__table_8h_source.html">qfits_table.h</a>></code></p>
-
-<p><a href="structqfits__col-members.html">List of all members.</a></p>
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Public Attributes</h2></td></tr>
-<tr class="memitem:a21bfa8bae546d99722497c8c479980ca"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__col.html#a21bfa8bae546d99722497c8c479980ca">atom_nb</a></td></tr>
-<tr class="memitem:ac9f510772ccdfc3543202984cbbf8d78"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__col.html#ac9f510772ccdfc3543202984cbbf8d78">atom_dec_nb</a></td></tr>
-<tr class="memitem:aac16a34501523b77bed062e9d89e25f4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__col.html#aac16a34501523b77bed062e9d89e25f4">atom_size</a></td></tr>
-<tr class="memitem:ac591d6d9f8608c920fc0cb71ef457525"><td class="memItemLeft" align="right" valign="top">tfits_type </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__col.html#ac591d6d9f8608c920fc0cb71ef457525">atom_type</a></td></tr>
-<tr class="memitem:a9c08e400a42fa008eabc449ce00ca414"><td class="memItemLeft" align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__col.html#a9c08e400a42fa008eabc449ce00ca414">tlabel</a> [FITSVALSZ]</td></tr>
-<tr class="memitem:a08967111cc77b195bf3a21354392bd06"><td class="memItemLeft" align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__col.html#a08967111cc77b195bf3a21354392bd06">tunit</a> [FITSVALSZ]</td></tr>
-<tr class="memitem:ae30c1a49f9939d7f0cd1ec22b68ad553"><td class="memItemLeft" align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__col.html#ae30c1a49f9939d7f0cd1ec22b68ad553">nullval</a> [FITSVALSZ]</td></tr>
-<tr class="memitem:ae4cf43106f6e35697fbe125b38e12e76"><td class="memItemLeft" align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__col.html#ae4cf43106f6e35697fbe125b38e12e76">tdisp</a> [FITSVALSZ]</td></tr>
-<tr class="memitem:a3c9bafa164bf35b131bfc756305bb28e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__col.html#a3c9bafa164bf35b131bfc756305bb28e">zero_present</a></td></tr>
-<tr class="memitem:a0912e108e03ff4e074359e3f1ef9032f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__col.html#a0912e108e03ff4e074359e3f1ef9032f">off_beg</a></td></tr>
-<tr class="memitem:a509c5e79f65feb58057ddd793cb58379"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__col.html#a509c5e79f65feb58057ddd793cb58379">readable</a></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock"><p>Column object. </p>
-<p>This structure contains all information needed to read a column in a table. These informations come from the header. The <a class="el" href="structqfits__table.html" title="Table object.">qfits_table</a> object contains a list of <a class="el" href="structqfits__col.html" title="Column object.">qfits_col</a> objects.</p>
-<p>This structure has to be created from scratch and filled if one want to generate a FITS table. </p>
-</div><hr/><h2>Member Data Documentation</h2>
-<a class="anchor" id="ac9f510772ccdfc3543202984cbbf8d78"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_col::atom_dec_nb</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Number of decimals in a ASCII field. This value is always 0 for BIN tables </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill()</a>, <a class="el" href="group__qfits__table.html#ga2322a7004c7733d7551d94c8c2685d78">qfits_query_column_data()</a>, and <a class="el" href="group__qfits__table.html#gaba48a32c1d684f3d1155def221bdd8df">qfits_query_column_seq_data()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a21bfa8bae546d99722497c8c479980ca"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_col::atom_nb</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Number of atoms in one field. In ASCII tables, it is the number of characters in the field as defined in TFORMd keyword. In BIN tables, it is the number of atoms in each field. For type 'A', it is the number of characters. A field with two complex object will have atom_nb = 4. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill()</a>, <a class="el" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67">qfits_query_column()</a>, <a class="el" href="group__qfits__table.html#ga2322a7004c7733d7551d94c8c2685d78">qfits_query_column_data()</a>, <a class="el" href="group__qfits__table.html#ga7d5291d4c02f0d53938f0289a29be058">qfits_query_column_nulls()</a>, <a class="el" href="group__qfits__table. [...]
-
-</div>
-</div>
-<a class="anchor" id="aac16a34501523b77bed062e9d89e25f4"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_col::atom_size</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Size of one element in bytes. In ASCII tables, atom_size is the size of the element once it has been converted in its 'destination' type. For example, if "123" is contained in an ASCII table in a column defined as I type, atom_nb=3, atom_size=4. In ASCII tables:</p>
-<ul>
-<li>type 'A' : atom_size = atom_nb = number of chars</li>
-<li>type 'I', 'F' or 'E' : atom_size = 4</li>
-<li>type 'D' : atom_size = 8 In BIN tables :</li>
-<li>type 'A', 'L', 'X', 'B': atom_size = 1</li>
-<li>type 'I' : atom_size = 2</li>
-<li>type 'E', 'J', 'C', 'P' : atom_size = 4</li>
-<li>type 'D', 'M' : atom_size = 8 In ASCII table, there is one element per field. The size in bytes and in number of characters is atom_nb, and the size in bytes after conversion of the field is atom_size. In BIN tables, the size in bytes of a field is always atom_nb*atom_size. </li>
-</ul>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill()</a>, <a class="el" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67">qfits_query_column()</a>, <a class="el" href="group__qfits__table.html#ga2322a7004c7733d7551d94c8c2685d78">qfits_query_column_data()</a>, <a class="el" href="group__qfits__table.html#ga37432ab039e40c243b04b9c68927e47e">qfits_query_column_seq()</a>, and <a class="el" href="group__qfits__tabl [...]
-
-</div>
-</div>
-<a class="anchor" id="ac591d6d9f8608c920fc0cb71ef457525"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">tfits_type qfits_col::atom_type</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Type of data in the column as specified in TFORM keyword In ASCII tables : TFITS_ASCII_TYPE_* with *=A, I, F, E or D In BIN tables : TFITS_BIN_TYPE_* with *=L, X, B, I, J, A, E, D, C, M or P </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill()</a>, <a class="el" href="group__qfits__table.html#ga2322a7004c7733d7551d94c8c2685d78">qfits_query_column_data()</a>, <a class="el" href="group__qfits__table.html#ga7d5291d4c02f0d53938f0289a29be058">qfits_query_column_nulls()</a>, and <a class="el" href="group__qfits__table.html#gaba48a32c1d684f3d1155def221bdd8df">qfits_query_column_seq_data()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ae30c1a49f9939d7f0cd1ec22b68ad553"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char qfits_col::nullval[FITSVALSZ]</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Null value </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill()</a>, <a class="el" href="group__qfits__table.html#ga2322a7004c7733d7551d94c8c2685d78">qfits_query_column_data()</a>, <a class="el" href="group__qfits__table.html#ga7d5291d4c02f0d53938f0289a29be058">qfits_query_column_nulls()</a>, and <a class="el" href="group__qfits__table.html#gaba48a32c1d684f3d1155def221bdd8df">qfits_query_column_seq_data()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a0912e108e03ff4e074359e3f1ef9032f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_col::off_beg</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Offset between the beg. of the table and the beg. of the column. </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill()</a>, <a class="el" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67">qfits_query_column()</a>, and <a class="el" href="group__qfits__table.html#ga37432ab039e40c243b04b9c68927e47e">qfits_query_column_seq()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a509c5e79f65feb58057ddd793cb58379"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_col::readable</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Flag to know if the column is readable. An empty col is not readable </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill()</a>, <a class="el" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67">qfits_query_column()</a>, <a class="el" href="group__qfits__table.html#ga2322a7004c7733d7551d94c8c2685d78">qfits_query_column_data()</a>, <a class="el" href="group__qfits__table.html#ga7d5291d4c02f0d53938f0289a29be058">qfits_query_column_nulls()</a>, <a class="el" href="group__qfits__table. [...]
-
-</div>
-</div>
-<a class="anchor" id="ae4cf43106f6e35697fbe125b38e12e76"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char qfits_col::tdisp[FITSVALSZ]</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Display format </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a9c08e400a42fa008eabc449ce00ca414"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char qfits_col::tlabel[FITSVALSZ]</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Label of the column </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill()</a>, and <a class="el" href="group__qfits__table.html#gaf1f20765aa86e6696aac1b34cddb5fbb">qfits_table_ext_header_default()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a08967111cc77b195bf3a21354392bd06"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char qfits_col::tunit[FITSVALSZ]</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Unit of the data </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill()</a>, and <a class="el" href="group__qfits__table.html#gaf1f20765aa86e6696aac1b34cddb5fbb">qfits_table_ext_header_default()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a3c9bafa164bf35b131bfc756305bb28e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_col::zero_present</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>zero and scale are used when the quantity in the field does not represent a true physical quantity. Basically, thez should be used when they are present: physical_value = zero + scale * field_value They are read from TZERO and TSCAL in the header </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gabcf3b258731b0c99c64be2110c60e66b">qfits_col_fill()</a>, and <a class="el" href="group__qfits__table.html#gaf1f20765aa86e6696aac1b34cddb5fbb">qfits_table_ext_header_default()</a>.</p>
-
-</div>
-</div>
-<hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="qfits__table_8h_source.html">qfits_table.h</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/structqfits__header-members.html b/libqfits/html/structqfits__header-members.html
deleted file mode 100644
index 52faa9e..0000000
--- a/libqfits/html/structqfits__header-members.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Member List</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_header Member List</div>  </div>
-</div><!--header-->
-<div class="contents">
-
-<p>This is the complete list of members for <a class="el" href="structqfits__header.html">qfits_header</a>, including all inherited members.</p>
-<table class="directory">
-</table></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/structqfits__header.html b/libqfits/html/structqfits__header.html
deleted file mode 100644
index cbc1680..0000000
--- a/libqfits/html/structqfits__header.html
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_header Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_header Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-
-<p>FITS header object.  
- <a href="structqfits__header.html#details">More...</a></p>
-
-<p><code>#include <<a class="el" href="qfits__header_8h_source.html">qfits_header.h</a>></code></p>
-
-<p><a href="structqfits__header-members.html">List of all members.</a></p>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock"><p>FITS header object. </p>
-<p>This structure represents a FITS header in memory. It is actually no more than a thin layer on top of the keytuple object. No field in this structure should be directly modifiable by the user, only through accessor functions. </p>
-</div><hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="qfits__header_8h_source.html">qfits_header.h</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/structqfits__table-members.html b/libqfits/html/structqfits__table-members.html
deleted file mode 100644
index 2af5e40..0000000
--- a/libqfits/html/structqfits__table-members.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Member List</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfits_table Member List</div>  </div>
-</div><!--header-->
-<div class="contents">
-
-<p>This is the complete list of members for <a class="el" href="structqfits__table.html">qfits_table</a>, including all inherited members.</p>
-<table class="directory">
-  <tr class="even"><td class="entry"><a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">col</a></td><td class="entry"><a class="el" href="structqfits__table.html">qfits_table</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfits__table.html#a91e80cea4099f0f08e8cb5bb78c06b77">filename</a></td><td class="entry"><a class="el" href="structqfits__table.html">qfits_table</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfits__table.html#af67a70e4e72ca3a75022900a1497b1a5">nc</a></td><td class="entry"><a class="el" href="structqfits__table.html">qfits_table</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfits__table.html#a0ddd9b546ee8d8d3adf640137ebc476a">nr</a></td><td class="entry"><a class="el" href="structqfits__table.html">qfits_table</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfits__table.html#aee14f7bd2b26ebd2124ede91eb19f0f3">tab_t</a></td><td class="entry"><a class="el" href="structqfits__table.html">qfits_table</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfits__table.html#a31c46ca3eeb53ce7a1931b1b342842d6">tab_w</a></td><td class="entry"><a class="el" href="structqfits__table.html">qfits_table</a></td><td class="entry"></td></tr>
-</table></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/structqfits__table.html b/libqfits/html/structqfits__table.html
deleted file mode 100644
index 5cf8fe7..0000000
--- a/libqfits/html/structqfits__table.html
+++ /dev/null
@@ -1,193 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfits_table Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Public Attributes</a>  </div>
-  <div class="headertitle">
-<div class="title">qfits_table Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-
-<p>Table object.  
- <a href="structqfits__table.html#details">More...</a></p>
-
-<p><code>#include <<a class="el" href="qfits__table_8h_source.html">qfits_table.h</a>></code></p>
-
-<p><a href="structqfits__table-members.html">List of all members.</a></p>
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Public Attributes</h2></td></tr>
-<tr class="memitem:a91e80cea4099f0f08e8cb5bb78c06b77"><td class="memItemLeft" align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__table.html#a91e80cea4099f0f08e8cb5bb78c06b77">filename</a> [512]</td></tr>
-<tr class="memitem:aee14f7bd2b26ebd2124ede91eb19f0f3"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__table.html#aee14f7bd2b26ebd2124ede91eb19f0f3">tab_t</a></td></tr>
-<tr class="memitem:a31c46ca3eeb53ce7a1931b1b342842d6"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__table.html#a31c46ca3eeb53ce7a1931b1b342842d6">tab_w</a></td></tr>
-<tr class="memitem:af67a70e4e72ca3a75022900a1497b1a5"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__table.html#af67a70e4e72ca3a75022900a1497b1a5">nc</a></td></tr>
-<tr class="memitem:a0ddd9b546ee8d8d3adf640137ebc476a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__table.html#a0ddd9b546ee8d8d3adf640137ebc476a">nr</a></td></tr>
-<tr class="memitem:a9ffadeb225f372bdb8ff4d88ac747980"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structqfits__col.html">qfits_col</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfits__table.html#a9ffadeb225f372bdb8ff4d88ac747980">col</a></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock"><p>Table object. </p>
-<p>This structure contains all information needed to read a FITS table. These information come from the header. The object is created by qfits_open().</p>
-<p>To read a FITS table, here is a code example: </p>
-<div class="fragment"><div class="line">  <span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>* argv[])</div>
-<div class="line">  {</div>
-<div class="line">      <a class="code" href="structqfits__table.html" title="Table object.">qfits_table</a>     *   table ;</div>
-<div class="line">     <span class="keywordtype">int</span>                    n_ext ;</div>
-<div class="line">    <span class="keywordtype">int</span>                    i ;</div>
-<div class="line"></div>
-<div class="line">    <span class="comment">// Query the number of extensions</span></div>
-<div class="line">    n_ext = <a class="code" href="group__qfits__tools.html#ga584cb7b1cdbdbb78f130c18a20366146" title="Counts the number of extensions in a FITS file.">qfits_query_n_ext</a>(argv[1]) ;</div>
-<div class="line">    </div>
-<div class="line">    <span class="comment">// For each extension</span></div>
-<div class="line">    <span class="keywordflow">for</span> (i=0 ; i<n_ext ; i++) {</div>
-<div class="line">        <span class="comment">// Read all the infos about the current table </span></div>
-<div class="line">        table = <a class="code" href="group__qfits__table.html#gae7aafce3d040136c4fb5882ad5a6344e" title="Read a FITS extension.">qfits_table_open</a>(argv[1], i+1) ;</div>
-<div class="line">        <span class="comment">// Display the current table </span></div>
-<div class="line">        dump_extension(table, stdout, <span class="charliteral">'|'</span>, 1, 1) ;</div>
-<div class="line">    }</div>
-<div class="line">    return ;</div>
-<div class="line">  }</div>
-</div><!-- fragment --> </div><hr/><h2>Member Data Documentation</h2>
-<a class="anchor" id="a9ffadeb225f372bdb8ff4d88ac747980"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname"><a class="el" href="structqfits__col.html">qfits_col</a>* qfits_table::col</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Array of <a class="el" href="structqfits__col.html" title="Column object.">qfits_col</a> objects </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67">qfits_query_column()</a>, <a class="el" href="group__qfits__table.html#ga2322a7004c7733d7551d94c8c2685d78">qfits_query_column_data()</a>, <a class="el" href="group__qfits__table.html#ga7d5291d4c02f0d53938f0289a29be058">qfits_query_column_nulls()</a>, <a class="el" href="group__qfits__table.html#ga37432ab039e40c243b04b9c68927e47e">qfits_query_column_seq()</a>, <a class="el" href="group__qfits [...]
-
-</div>
-</div>
-<a class="anchor" id="a91e80cea4099f0f08e8cb5bb78c06b77"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char qfits_table::filename[512]</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Name of the file the table comes from or it is intended to end to </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67">qfits_query_column()</a>, <a class="el" href="group__qfits__table.html#ga37432ab039e40c243b04b9c68927e47e">qfits_query_column_seq()</a>, <a class="el" href="group__qfits__table.html#ga501741264c6698c3625b468da65be774">qfits_save_table_hdrdump()</a>, and <a class="el" href="group__qfits__table.html#gaf33bb94058ccd42957fcb2cbbd9b72fc">qfits_table_new()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="af67a70e4e72ca3a75022900a1497b1a5"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_table::nc</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Number of columns </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#ga59b5aa7c5b59e5dae95ea2b54512103a">qfits_table_close()</a>, <a class="el" href="group__qfits__table.html#gaf1f20765aa86e6696aac1b34cddb5fbb">qfits_table_ext_header_default()</a>, <a class="el" href="group__qfits__table.html#gaf33bb94058ccd42957fcb2cbbd9b72fc">qfits_table_new()</a>, and <a class="el" href="group__qfits__table.html#gae7aafce3d040136c4fb5882ad5a6344e">qfits_table_open()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a0ddd9b546ee8d8d3adf640137ebc476a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_table::nr</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Number of raws </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67">qfits_query_column()</a>, <a class="el" href="group__qfits__table.html#ga2322a7004c7733d7551d94c8c2685d78">qfits_query_column_data()</a>, <a class="el" href="group__qfits__table.html#ga7d5291d4c02f0d53938f0289a29be058">qfits_query_column_nulls()</a>, <a class="el" href="group__qfits__table.html#ga37432ab039e40c243b04b9c68927e47e">qfits_query_column_seq()</a>, <a class="el" href="group__qfits [...]
-
-</div>
-</div>
-<a class="anchor" id="aee14f7bd2b26ebd2124ede91eb19f0f3"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_table::tab_t</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Table type. Possible values: QFITS_INVALIDTABLE, QFITS_BINTABLE, QFITS_ASCIITABLE </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67">qfits_query_column()</a>, <a class="el" href="group__qfits__table.html#ga37432ab039e40c243b04b9c68927e47e">qfits_query_column_seq()</a>, <a class="el" href="group__qfits__table.html#ga501741264c6698c3625b468da65be774">qfits_save_table_hdrdump()</a>, <a class="el" href="group__qfits__table.html#ga8f8c574d5cfdfcb6ccc20d5f785f703f">qfits_table_append_xtension()</a>, <a class="el" href="group__q [...]
-
-</div>
-</div>
-<a class="anchor" id="a31c46ca3eeb53ce7a1931b1b342842d6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfits_table::tab_w</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Width in bytes of the table </p>
-
-<p>Referenced by <a class="el" href="group__qfits__table.html#gaf6ca73b2270b2ce9153b54d4f2f22e67">qfits_query_column()</a>, <a class="el" href="group__qfits__table.html#ga37432ab039e40c243b04b9c68927e47e">qfits_query_column_seq()</a>, and <a class="el" href="group__qfits__table.html#gaf33bb94058ccd42957fcb2cbbd9b72fc">qfits_table_new()</a>.</p>
-
-</div>
-</div>
-<hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="qfits__table_8h_source.html">qfits_table.h</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/structqfitsdumper-members.html b/libqfits/html/structqfitsdumper-members.html
deleted file mode 100644
index 1c9b581..0000000
--- a/libqfits/html/structqfitsdumper-members.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Member List</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfitsdumper Member List</div>  </div>
-</div><!--header-->
-<div class="contents">
-
-<p>This is the complete list of members for <a class="el" href="structqfitsdumper.html">qfitsdumper</a>, including all inherited members.</p>
-<table class="directory">
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsdumper.html#a149090f40a5a6954ce278d140f524f00">dbuf</a></td><td class="entry"><a class="el" href="structqfitsdumper.html">qfitsdumper</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfitsdumper.html#a4ee45b2224bccef4014771f73ab20401">fbuf</a></td><td class="entry"><a class="el" href="structqfitsdumper.html">qfitsdumper</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsdumper.html#a6c00e4a857fb7babd7b56e5d57b0d65b">filename</a></td><td class="entry"><a class="el" href="structqfitsdumper.html">qfitsdumper</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfitsdumper.html#afeef2d85580153a3af53afe7a7eefb9d">ibuf</a></td><td class="entry"><a class="el" href="structqfitsdumper.html">qfitsdumper</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsdumper.html#aec1e2350cff8bff372150d6c15e20fd9">npix</a></td><td class="entry"><a class="el" href="structqfitsdumper.html">qfitsdumper</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfitsdumper.html#a6645789d9bc2e03d8f3a83b78569fdba">out_ptype</a></td><td class="entry"><a class="el" href="structqfitsdumper.html">qfitsdumper</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsdumper.html#acdcf9753f787dc03a9f7ce5dcb0bfc4e">ptype</a></td><td class="entry"><a class="el" href="structqfitsdumper.html">qfitsdumper</a></td><td class="entry"></td></tr>
-</table></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/structqfitsdumper.html b/libqfits/html/structqfitsdumper.html
deleted file mode 100644
index 9355bac..0000000
--- a/libqfits/html/structqfitsdumper.html
+++ /dev/null
@@ -1,214 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfitsdumper Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Public Attributes</a>  </div>
-  <div class="headertitle">
-<div class="title">qfitsdumper Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-
-<p>qfits dumper control object  
- <a href="structqfitsdumper.html#details">More...</a></p>
-
-<p><code>#include <<a class="el" href="qfits__image_8h_source.html">qfits_image.h</a>></code></p>
-
-<p><a href="structqfitsdumper-members.html">List of all members.</a></p>
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Public Attributes</h2></td></tr>
-<tr class="memitem:a6c00e4a857fb7babd7b56e5d57b0d65b"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsdumper.html#a6c00e4a857fb7babd7b56e5d57b0d65b">filename</a></td></tr>
-<tr class="memitem:aec1e2350cff8bff372150d6c15e20fd9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsdumper.html#aec1e2350cff8bff372150d6c15e20fd9">npix</a></td></tr>
-<tr class="memitem:acdcf9753f787dc03a9f7ce5dcb0bfc4e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsdumper.html#acdcf9753f787dc03a9f7ce5dcb0bfc4e">ptype</a></td></tr>
-<tr class="memitem:afeef2d85580153a3af53afe7a7eefb9d"><td class="memItemLeft" align="right" valign="top">int * </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsdumper.html#afeef2d85580153a3af53afe7a7eefb9d">ibuf</a></td></tr>
-<tr class="memitem:a4ee45b2224bccef4014771f73ab20401"><td class="memItemLeft" align="right" valign="top">float * </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsdumper.html#a4ee45b2224bccef4014771f73ab20401">fbuf</a></td></tr>
-<tr class="memitem:a149090f40a5a6954ce278d140f524f00"><td class="memItemLeft" align="right" valign="top">double * </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsdumper.html#a149090f40a5a6954ce278d140f524f00">dbuf</a></td></tr>
-<tr class="memitem:a6645789d9bc2e03d8f3a83b78569fdba"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsdumper.html#a6645789d9bc2e03d8f3a83b78569fdba">out_ptype</a></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock"><p>qfits dumper control object </p>
-<p>This structure offers various control parameters to dump a pixel buffer to a FITS file. The buffer will be dumped as requested to the requested file in append mode. Of course, the requested file must be writeable for the operation to succeed.</p>
-<p>The following example demonstrates how to save a linear ramp sized 100x100 to a FITS file with BITPIX=16. Notice that this code only dumps the pixel buffer, no header information is provided in this case.</p>
-<div class="fragment"><div class="line">    <span class="keywordtype">int</span>   i, j ;</div>
-<div class="line">    <span class="keywordtype">int</span> * <a class="code" href="structqfitsdumper.html#afeef2d85580153a3af53afe7a7eefb9d">ibuf</a> ;</div>
-<div class="line">    <a class="code" href="structqfitsdumper.html" title="qfits dumper control object">qfitsdumper</a>    qd ;</div>
-<div class="line"></div>
-<div class="line">    <span class="comment">// Fill a buffer with 100x100 int pixels</span></div>
-<div class="line">    ibuf = malloc(100 * 100 * <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
-<div class="line">    <span class="keywordflow">for</span> (j=0 ; j<100 ; j++) {</div>
-<div class="line">        <span class="keywordflow">for</span> (i=0 ; i<100 ; i++) {</div>
-<div class="line">            ibuf[i+j*100] = i+j ;</div>
-<div class="line">        }</div>
-<div class="line">    }</div>
-<div class="line"></div>
-<div class="line">    qd.<a class="code" href="structqfitsdumper.html#a6c00e4a857fb7babd7b56e5d57b0d65b">filename</a>  = <span class="stringliteral">"out.fits"</span> ;     <span class="comment">// Output file name</span></div>
-<div class="line">    qd.<a class="code" href="structqfitsdumper.html#aec1e2350cff8bff372150d6c15e20fd9">npix</a>      = 100 * 100 ;      <span class="comment">// Number of pixels</span></div>
-<div class="line">    qd.<a class="code" href="structqfitsdumper.html#acdcf9753f787dc03a9f7ce5dcb0bfc4e">ptype</a>     = PTYPE_INT ;      <span class="comment">// Input buffer type</span></div>
-<div class="line">    qd.<a class="code" href="structqfitsdumper.html#afeef2d85580153a3af53afe7a7eefb9d">ibuf</a>      = <a class="code" href="structqfitsdumper.html#afeef2d85580153a3af53afe7a7eefb9d">ibuf</a> ;           <span class="comment">// Set buffer pointer</span></div>
-<div class="line">    qd.<a class="code" href="structqfitsdumper.html#a6645789d9bc2e03d8f3a83b78569fdba">out_ptype</a> = BPP_16_SIGNED ;  <span class="comment">// Save with BITPIX=16</span></div>
-<div class="line"></div>
-<div class="line">    <span class="comment">// Dump buffer to file (error checking omitted for clarity)</span></div>
-<div class="line">    <a class="code" href="group__qfits__image.html#gabd911794a1a8798df0b5ad5cc1719472" title="Dump a pixel buffer to an output FITS file in append mode.">qfits_pixdump</a>(&qd);</div>
-<div class="line"></div>
-<div class="line">    free(ibuf);</div>
-</div><!-- fragment --><p>If the provided output file name is "STDOUT" (all capitals), the function will dump the pixels to the stdout steam (usually the console, could have been re-directed). </p>
-</div><hr/><h2>Member Data Documentation</h2>
-<a class="anchor" id="a149090f40a5a6954ce278d140f524f00"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double* qfitsdumper::dbuf</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Pointer to input double pixel buffer </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#gabd911794a1a8798df0b5ad5cc1719472">qfits_pixdump()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a4ee45b2224bccef4014771f73ab20401"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">float* qfitsdumper::fbuf</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Pointer to input float pixel buffer </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#gabd911794a1a8798df0b5ad5cc1719472">qfits_pixdump()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a6c00e4a857fb7babd7b56e5d57b0d65b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfitsdumper::filename</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Name of the file to dump to, "STDOUT" to dump to stdout </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#gabd911794a1a8798df0b5ad5cc1719472">qfits_pixdump()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="afeef2d85580153a3af53afe7a7eefb9d"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int* qfitsdumper::ibuf</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Pointer to input integer pixel buffer </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#gabd911794a1a8798df0b5ad5cc1719472">qfits_pixdump()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="aec1e2350cff8bff372150d6c15e20fd9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsdumper::npix</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Number of pixels in the buffer to dump </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#gabd911794a1a8798df0b5ad5cc1719472">qfits_pixdump()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a6645789d9bc2e03d8f3a83b78569fdba"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsdumper::out_ptype</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Requested BITPIX in output FITS file </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#gabd911794a1a8798df0b5ad5cc1719472">qfits_pixdump()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="acdcf9753f787dc03a9f7ce5dcb0bfc4e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsdumper::ptype</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Buffer type: PTYPE_FLOAT, PTYPE_INT or PTYPE_DOUBLE </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#gabd911794a1a8798df0b5ad5cc1719472">qfits_pixdump()</a>.</p>
-
-</div>
-</div>
-<hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="qfits__image_8h_source.html">qfits_image.h</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/structqfitsloader-members.html b/libqfits/html/structqfitsloader-members.html
deleted file mode 100644
index ddf4bfe..0000000
--- a/libqfits/html/structqfitsloader-members.html
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: Member List</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="headertitle">
-<div class="title">qfitsloader Member List</div>  </div>
-</div><!--header-->
-<div class="contents">
-
-<p>This is the complete list of members for <a class="el" href="structqfitsloader.html">qfitsloader</a>, including all inherited members.</p>
-<table class="directory">
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsloader.html#a7432f89e962800dee98dd1096fda4bbe">_init</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfitsloader.html#a7f9d024efa767e451de26daf5ba4ffed">bitpix</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsloader.html#a88c2700a244a127ee5438cbacd6a8b0f">bscale</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfitsloader.html#a79bc4b4ffc7df8d63acef6945bc92289">bzero</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsloader.html#abc565668aa520eef363c605216958093">dbuf</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfitsloader.html#ae4efb9ea8659659cc35080f7e90dc3de">exts</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsloader.html#aabbef5dcffa5429c22f062024f7a2dea">fbuf</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfitsloader.html#ac65772c0293a3632e27f5512e2b86213">filename</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsloader.html#a675d5fd4425de2a4cea0772d07295377">ibuf</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfitsloader.html#aeba7b81df69f628afada32fe32dddde6">lx</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsloader.html#a7afc84e3bb864ba88a8f9a5b72c49a7f">ly</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfitsloader.html#a633c3df6fa87c8deb7e3b199672974dc">map</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsloader.html#ab1a4a1c8055e83b1cc21260e339d539b">np</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfitsloader.html#adcb0cefd447059da1f65f4775267305a">pnum</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsloader.html#a4aae21aa554e7f6c59798b34c26dea1e">ptype</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfitsloader.html#ab89fe834e26a8c6ccdbf67ee4c71def9">seg_size</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr class="even"><td class="entry"><a class="el" href="structqfitsloader.html#ae492fd95d5ead66006235b12a8ed8c67">seg_start</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-  <tr><td class="entry"><a class="el" href="structqfitsloader.html#a3bf50fffd45c6c1b3adb75a2ab76e6f7">xtnum</a></td><td class="entry"><a class="el" href="structqfitsloader.html">qfitsloader</a></td><td class="entry"></td></tr>
-</table></div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/structqfitsloader.html b/libqfits/html/structqfitsloader.html
deleted file mode 100644
index 292b856..0000000
--- a/libqfits/html/structqfitsloader.html
+++ /dev/null
@@ -1,409 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>C Standard Library Extensions: qfitsloader Struct Reference</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-  <td style="padding-left: 0.5em;">
-   <div id="projectname">C Standard Library Extensions
-    <span id="projectnumber">6.2.0</span>
-   </div>
-  </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.1.1 -->
-  <div id="navrow1" class="tabs">
-    <ul class="tablist">
-      <li><a href="index.html"><span>Main Page</span></a></li>
-      <li><a href="modules.html"><span>Modules</span></a></li>
-      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
-      <li><a href="files.html"><span>Files</span></a></li>
-    </ul>
-  </div>
-  <div id="navrow2" class="tabs2">
-    <ul class="tablist">
-      <li><a href="annotated.html"><span>Class List</span></a></li>
-      <li><a href="classes.html"><span>Class Index</span></a></li>
-      <li><a href="functions.html"><span>Class Members</span></a></li>
-    </ul>
-  </div>
-</div><!-- top -->
-<div class="header">
-  <div class="summary">
-<a href="#pub-attribs">Public Attributes</a>  </div>
-  <div class="headertitle">
-<div class="title">qfitsloader Struct Reference</div>  </div>
-</div><!--header-->
-<div class="contents">
-
-<p>qfits loader control object  
- <a href="structqfitsloader.html#details">More...</a></p>
-
-<p><code>#include <<a class="el" href="qfits__image_8h_source.html">qfits_image.h</a>></code></p>
-
-<p><a href="structqfitsloader-members.html">List of all members.</a></p>
-<table class="memberdecls">
-<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
-Public Attributes</h2></td></tr>
-<tr class="memitem:a7432f89e962800dee98dd1096fda4bbe"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#a7432f89e962800dee98dd1096fda4bbe">_init</a></td></tr>
-<tr class="memitem:ac65772c0293a3632e27f5512e2b86213"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#ac65772c0293a3632e27f5512e2b86213">filename</a></td></tr>
-<tr class="memitem:a3bf50fffd45c6c1b3adb75a2ab76e6f7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#a3bf50fffd45c6c1b3adb75a2ab76e6f7">xtnum</a></td></tr>
-<tr class="memitem:adcb0cefd447059da1f65f4775267305a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#adcb0cefd447059da1f65f4775267305a">pnum</a></td></tr>
-<tr class="memitem:a4aae21aa554e7f6c59798b34c26dea1e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#a4aae21aa554e7f6c59798b34c26dea1e">ptype</a></td></tr>
-<tr class="memitem:a633c3df6fa87c8deb7e3b199672974dc"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#a633c3df6fa87c8deb7e3b199672974dc">map</a></td></tr>
-<tr class="memitem:ae4efb9ea8659659cc35080f7e90dc3de"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#ae4efb9ea8659659cc35080f7e90dc3de">exts</a></td></tr>
-<tr class="memitem:aeba7b81df69f628afada32fe32dddde6"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#aeba7b81df69f628afada32fe32dddde6">lx</a></td></tr>
-<tr class="memitem:a7afc84e3bb864ba88a8f9a5b72c49a7f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#a7afc84e3bb864ba88a8f9a5b72c49a7f">ly</a></td></tr>
-<tr class="memitem:ab1a4a1c8055e83b1cc21260e339d539b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#ab1a4a1c8055e83b1cc21260e339d539b">np</a></td></tr>
-<tr class="memitem:a7f9d024efa767e451de26daf5ba4ffed"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#a7f9d024efa767e451de26daf5ba4ffed">bitpix</a></td></tr>
-<tr class="memitem:ae492fd95d5ead66006235b12a8ed8c67"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#ae492fd95d5ead66006235b12a8ed8c67">seg_start</a></td></tr>
-<tr class="memitem:ab89fe834e26a8c6ccdbf67ee4c71def9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#ab89fe834e26a8c6ccdbf67ee4c71def9">seg_size</a></td></tr>
-<tr class="memitem:a88c2700a244a127ee5438cbacd6a8b0f"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#a88c2700a244a127ee5438cbacd6a8b0f">bscale</a></td></tr>
-<tr class="memitem:a79bc4b4ffc7df8d63acef6945bc92289"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#a79bc4b4ffc7df8d63acef6945bc92289">bzero</a></td></tr>
-<tr class="memitem:a675d5fd4425de2a4cea0772d07295377"><td class="memItemLeft" align="right" valign="top">int * </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#a675d5fd4425de2a4cea0772d07295377">ibuf</a></td></tr>
-<tr class="memitem:aabbef5dcffa5429c22f062024f7a2dea"><td class="memItemLeft" align="right" valign="top">float * </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#aabbef5dcffa5429c22f062024f7a2dea">fbuf</a></td></tr>
-<tr class="memitem:abc565668aa520eef363c605216958093"><td class="memItemLeft" align="right" valign="top">double * </td><td class="memItemRight" valign="bottom"><a class="el" href="structqfitsloader.html#abc565668aa520eef363c605216958093">dbuf</a></td></tr>
-</table>
-<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
-<div class="textblock"><p>qfits loader control object </p>
-<p>This structure serves two purposes: input and output for the qfits pixel loading facility. To request pixels from a FITS file, you need to allocate (statically or dynamically) such a structure and fill up the input fields (filename, xtension number, etc.) to specify the pixels you want from the file.</p>
-<p>Before performing the actual load, you must pass the initialized structure to <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a" title="Initialize a qfitsloader control object.">qfitsloader_init()</a> which will check whether the operation is feasible or not (check its returned value).</p>
-<p>If the operation was deemed feasible, you can proceed to load the pixels, passing the same structure to <a class="el" href="group__qfits__image.html#ga7b44eb748f6b8079c5fb270bbe78444c" title="Load a pixel buffer for one complete image.">qfits_loadpix()</a> which will fill up the output fields of the struct. Notice that a pixel buffer will have been allocated (through malloc or mmap) and placed into the structure. You need to call free() on this pointer when you are done with it, typic [...]
-<p>The <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a" title="Initialize a qfitsloader control object.">qfitsloader_init()</a> function is also useful to probe a FITS file for useful informations, like getting the size of images in the file, the pixel depth, or data offset.</p>
-<p>Example of a code that prints out various informations about a plane to load, without actually loading it:</p>
-<div class="fragment"><div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> * argv[])</div>
-<div class="line">{</div>
-<div class="line">    <a class="code" href="structqfitsloader.html" title="qfits loader control object">qfitsloader</a>    ql ;</div>
-<div class="line"></div>
-<div class="line">    ql.<a class="code" href="structqfitsloader.html#ac65772c0293a3632e27f5512e2b86213">filename</a> = argv[1] ;</div>
-<div class="line">    ql.<a class="code" href="structqfitsloader.html#a3bf50fffd45c6c1b3adb75a2ab76e6f7">xtnum</a>    = 0 ;</div>
-<div class="line">    ql.<a class="code" href="structqfitsloader.html#adcb0cefd447059da1f65f4775267305a">pnum</a>     = 0 ;</div>
-<div class="line"></div>
-<div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a" title="Initialize a qfitsloader control object.">qfitsloader_init</a>(&ql)!=0) {</div>
-<div class="line">        printf(<span class="stringliteral">"cannot read info about %s\n"</span>, argv[1]);</div>
-<div class="line">        <span class="keywordflow">return</span> -1 ;</div>
-<div class="line">    }</div>
-<div class="line"></div>
-<div class="line">    printf(    <span class="stringliteral">"file         : %s\n"</span></div>
-<div class="line">            <span class="stringliteral">"xtnum        : %d\n"</span></div>
-<div class="line">            <span class="stringliteral">"pnum         : %d\n"</span></div>
-<div class="line">            <span class="stringliteral">"# xtensions  : %d\n"</span></div>
-<div class="line">            <span class="stringliteral">"size X       : %d\n"</span></div>
-<div class="line">            <span class="stringliteral">"size Y       : %d\n"</span></div>
-<div class="line">            <span class="stringliteral">"planes       : %d\n"</span></div>
-<div class="line">            <span class="stringliteral">"bitpix       : %d\n"</span></div>
-<div class="line">            <span class="stringliteral">"datastart    : %d\n"</span></div>
-<div class="line">            <span class="stringliteral">"datasize     : %d\n"</span></div>
-<div class="line">            <span class="stringliteral">"bscale       : %g\n"</span></div>
-<div class="line">            <span class="stringliteral">"bzero        : %g\n"</span>,</div>
-<div class="line">            ql.<a class="code" href="structqfitsloader.html#ac65772c0293a3632e27f5512e2b86213">filename</a>,</div>
-<div class="line">            ql.<a class="code" href="structqfitsloader.html#a3bf50fffd45c6c1b3adb75a2ab76e6f7">xtnum</a>,</div>
-<div class="line">            ql.<a class="code" href="structqfitsloader.html#adcb0cefd447059da1f65f4775267305a">pnum</a>,</div>
-<div class="line">            ql.<a class="code" href="structqfitsloader.html#ae4efb9ea8659659cc35080f7e90dc3de">exts</a>,</div>
-<div class="line">            ql.<a class="code" href="structqfitsloader.html#aeba7b81df69f628afada32fe32dddde6">lx</a>,</div>
-<div class="line">            ql.<a class="code" href="structqfitsloader.html#a7afc84e3bb864ba88a8f9a5b72c49a7f">ly</a>,</div>
-<div class="line">            ql.<a class="code" href="structqfitsloader.html#ab1a4a1c8055e83b1cc21260e339d539b">np</a>,</div>
-<div class="line">            ql.<a class="code" href="structqfitsloader.html#a7f9d024efa767e451de26daf5ba4ffed">bitpix</a>,</div>
-<div class="line">            ql.<a class="code" href="structqfitsloader.html#ae492fd95d5ead66006235b12a8ed8c67">seg_start</a>,</div>
-<div class="line">            ql.<a class="code" href="structqfitsloader.html#ab89fe834e26a8c6ccdbf67ee4c71def9">seg_size</a>,</div>
-<div class="line">            ql.<a class="code" href="structqfitsloader.html#a88c2700a244a127ee5438cbacd6a8b0f">bscale</a>,</div>
-<div class="line">            ql.<a class="code" href="structqfitsloader.html#a79bc4b4ffc7df8d63acef6945bc92289">bzero</a>);</div>
-<div class="line">    <span class="keywordflow">return</span> 0 ;</div>
-<div class="line">}</div>
-</div><!-- fragment --> </div><hr/><h2>Member Data Documentation</h2>
-<a class="anchor" id="a7432f89e962800dee98dd1096fda4bbe"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader::_init</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>Private field to see if structure has been initialized </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a7f9d024efa767e451de26daf5ba4ffed"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader::bitpix</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>output: BITPIX for this extension </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a88c2700a244a127ee5438cbacd6a8b0f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double qfitsloader::bscale</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>output: BSCALE found for this extension </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a79bc4b4ffc7df8d63acef6945bc92289"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double qfitsloader::bzero</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>output: BZERO found for this extension </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="abc565668aa520eef363c605216958093"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">double* qfitsloader::dbuf</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>output: Pointer to pixel buffer loaded as double values </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ae4efb9ea8659659cc35080f7e90dc3de"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader::exts</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>output: Total number of extensions found in file </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="aabbef5dcffa5429c22f062024f7a2dea"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">float* qfitsloader::fbuf</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>output: Pointer to pixel buffer loaded as float values </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ac65772c0293a3632e27f5512e2b86213"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">char* qfitsloader::filename</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>input: Name of the file you want to read pixels from </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a675d5fd4425de2a4cea0772d07295377"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int* qfitsloader::ibuf</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>output: Pointer to pixel buffer loaded as integer values </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="aeba7b81df69f628afada32fe32dddde6"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader::lx</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>output: Size in X of the requested plane </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga7b44eb748f6b8079c5fb270bbe78444c">qfits_loadpix()</a>, <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a7afc84e3bb864ba88a8f9a5b72c49a7f"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader::ly</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>output: Size in Y of the requested plane </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga7b44eb748f6b8079c5fb270bbe78444c">qfits_loadpix()</a>, <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a633c3df6fa87c8deb7e3b199672974dc"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader::map</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>input: Guarantee file copy or allow file mapping </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ab1a4a1c8055e83b1cc21260e339d539b"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader::np</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>output: Number of planes present in this extension </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="adcb0cefd447059da1f65f4775267305a"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader::pnum</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>input: Index of the plane you want, from 0 to np-1 </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a4aae21aa554e7f6c59798b34c26dea1e"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader::ptype</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>input: Pixel type you want (PTYPE_FLOAT, PTYPE_INT or PTYPE_DOUBLE) </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ab89fe834e26a8c6ccdbf67ee4c71def9"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader::seg_size</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>output: Size of the data segment (in bytes) for your request </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="ae492fd95d5ead66006235b12a8ed8c67"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader::seg_start</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>output: Start of the data segment (in bytes) for your request </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#ga88387ed921c4cd508b8e78b86c7cd23f">qfits_loadpix_window()</a>, and <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<a class="anchor" id="a3bf50fffd45c6c1b3adb75a2ab76e6f7"></a>
-<div class="memitem">
-<div class="memproto">
-      <table class="memname">
-        <tr>
-          <td class="memname">int qfitsloader::xtnum</td>
-        </tr>
-      </table>
-</div><div class="memdoc">
-<p>input: xtension number you want to read </p>
-
-<p>Referenced by <a class="el" href="group__qfits__image.html#gafa0ab253333d82171d5d17f4a36b4a2a">qfitsloader_init()</a>.</p>
-
-</div>
-</div>
-<hr/>The documentation for this struct was generated from the following file:<ul>
-<li><a class="el" href="qfits__image_8h_source.html">qfits_image.h</a></li>
-</ul>
-</div><!-- contents -->
-<!-- start footer part -->
-<hr class="footer"/><address class="footer"><small>
-Generated by  <a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.1.1
-</small></address>
-</body>
-</html>
diff --git a/libqfits/html/tab_a.png b/libqfits/html/tab_a.png
deleted file mode 100644
index 3b725c4..0000000
Binary files a/libqfits/html/tab_a.png and /dev/null differ
diff --git a/libqfits/html/tab_b.png b/libqfits/html/tab_b.png
deleted file mode 100644
index 258c141..0000000
Binary files a/libqfits/html/tab_b.png and /dev/null differ
diff --git a/libqfits/html/tab_h.png b/libqfits/html/tab_h.png
deleted file mode 100644
index 4ca9102..0000000
Binary files a/libqfits/html/tab_h.png and /dev/null differ
diff --git a/libqfits/html/tab_s.png b/libqfits/html/tab_s.png
deleted file mode 100644
index ab478c9..0000000
Binary files a/libqfits/html/tab_s.png and /dev/null differ
diff --git a/libqfits/html/tabs.css b/libqfits/html/tabs.css
deleted file mode 100644
index 2192056..0000000
--- a/libqfits/html/tabs.css
+++ /dev/null
@@ -1,59 +0,0 @@
-.tabs, .tabs2, .tabs3 {
-    background-image: url('tab_b.png');
-    width: 100%;
-    z-index: 101;
-    font-size: 13px;
-}
-
-.tabs2 {
-    font-size: 10px;
-}
-.tabs3 {
-    font-size: 9px;
-}
-
-.tablist {
-    margin: 0;
-    padding: 0;
-    display: table;
-}
-
-.tablist li {
-    float: left;
-    display: table-cell;
-    background-image: url('tab_b.png');
-    line-height: 36px;
-    list-style: none;
-}
-
-.tablist a {
-    display: block;
-    padding: 0 20px;
-    font-weight: bold;
-    background-image:url('tab_s.png');
-    background-repeat:no-repeat;
-    background-position:right;
-    color: #283A5D;
-    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
-    text-decoration: none;
-    outline: none;
-}
-
-.tabs3 .tablist a {
-    padding: 0 10px;
-}
-
-.tablist a:hover {
-    background-image: url('tab_h.png');
-    background-repeat:repeat-x;
-    color: #fff;
-    text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0);
-    text-decoration: none;
-}
-
-.tablist li.current a {
-    background-image: url('tab_a.png');
-    background-repeat:repeat-x;
-    color: #fff;
-    text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0);
-}
diff --git a/libqfits/m4macros/eso.m4 b/libqfits/m4macros/eso.m4
deleted file mode 100644
index cda3cae..0000000
--- a/libqfits/m4macros/eso.m4
+++ /dev/null
@@ -1,902 +0,0 @@
-# ESO_PROG_CC_FLAG(FLAG, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-#-----------------------------------------------------------------
-AC_DEFUN([ESO_PROG_CC_FLAG],
-[
-    AC_REQUIRE([AC_PROG_CC])
-
-    flag=`echo $1 | sed 'y%.=/+-%___p_%'`
-    AC_CACHE_CHECK([whether $CC supports -$1],
-                   [eso_cv_prog_cc_$flag],
-                   [
-                       eval "eso_cv_prog_cc_$flag=no"
-                       AC_LANG_PUSH(C)
-
-                       echo 'int main() { return 0; }' >conftest.$ac_ext
-
-                       try_compile="`$CC -$1 -c conftest.$ac_ext 2>&1`"
-                       if test -z "$try_compile"; then
-                           try_link="`$CC -$1 -o conftest$ac_exeext \
-                                    conftest.$ac_ext 2>&1`"
-                           if test -z "$try_link"; then
-                               eval "eso_cv_prog_cc_$flag=yes"
-                           fi
-                       fi
-                       rm -f conftest*
-
-                       AC_LANG_POP(C)
-                   ])
-
-    if eval "test \"`echo '$eso_cv_prog_cc_'$flag`\" = yes"; then
-        :
-        $2
-    else
-        :
-        $3
-    fi
-])
-
-
-# ESO_ENABLE_DEBUG(debug=no)
-#---------------------------
-AC_DEFUN([ESO_ENABLE_DEBUG],
-[
-    AC_REQUIRE([AC_PROG_CC])
-
-    AC_ARG_ENABLE(debug,
-                  AC_HELP_STRING([--enable-debug],
-                                 [creates debugging code [[default=$1]]]),
-                  eso_enable_debug=$enableval, eso_enable_debug=$1)
-
-    AC_CACHE_CHECK([whether debugging code should be created],
-                   eso_cv_enable_debug,
-                   eso_cv_enable_debug=$eso_enable_debug)
-
-    if test x"$eso_cv_enable_debug" = xyes; then
-
-        eso_clean_CFLAGS="`echo $CFLAGS | sed -e 's/-O[[1-9]]//g' \
-                                               -e 's/-O//g'`"
-
-        if test x"$ac_cv_prog_cc_g" = xyes; then
-            eso_clean_CFLAGS="`echo $eso_clean_CFLAGS | sed -e 's/-g//g'`"
-            CFLAGS="-g"
-        else
-            CFLAGS=""
-        fi
-
-        ESO_PROG_CC_FLAG([Wall], [CFLAGS="$CFLAGS -Wall"])
-        ESO_PROG_CC_FLAG([W], [CFLAGS="$CFLAGS -W"])
-
-        CFLAGS="$CFLAGS $eso_clean_CFLAGS"
-        ESO_DEBUG_FLAGS="-DESO_ENABLE_DEBUG"
-    else
-        CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'`"
-        ESO_DEBUG_FLAGS="-DNDEBUG"
-    fi
-
-    AC_SUBST(ESO_DEBUG_FLAGS)
-])
-
-
-# ESO_ENABLE_STRICT(strict=no)
-#-----------------------------
-AC_DEFUN([ESO_ENABLE_STRICT],
-[
-    AC_REQUIRE([AC_PROG_CC])
-
-    AC_ARG_ENABLE(strict,
-                  AC_HELP_STRING([--enable-strict],
-                                 [compiles with strict compiler options (may not work!) [[default=$1]]]),
-                  eso_enable_strict=$enableval, eso_enable_strict=$1)
-
-    AC_CACHE_CHECK([whether strict compiler options should be used],
-                   eso_cv_enable_strict,
-                   eso_cv_enable_strict=$eso_enable_strict)
-
- 
-    if test x"$eso_cv_enable_strict" = xyes; then
-        ESO_PROG_CC_FLAG([ansi], [CFLAGS="$CFLAGS -ansi"])
-        ESO_PROG_CC_FLAG([pedantic], [CFLAGS="$CFLAGS -pedantic"])
-    fi
-])
-
-
-# ESO_CHECK_DOCTOOLS
-#-------------------
-AC_DEFUN([ESO_CHECK_DOCTOOLS],
-[
-    AC_ARG_VAR([DOXYGEN], [doxygen command])
-    AC_PATH_PROG([DOXYGEN], [doxygen])
-
-    AC_ARG_VAR([LATEX], [latex command])
-    AC_PATH_PROG([LATEX], [latex])
-
-
-    if test -z "${DOXYGEN}"; then 
-        DOXYGEN=":"
-    fi
-
-    if test -z "${LATEX}"; then
-        LATEX=":"
-    fi
-
-])
-
-
-# ESO_PROG_AR
-#------------
-# Checks if ar is in the path
-AC_DEFUN([ESO_PROG_AR],
-[
-    AC_CHECK_PROG(AR, ar, ar, NONE)
-
-    if test x"$AR" = xNONE; then
-        AC_MSG_ERROR([Cannot find \'ar\'])
-    fi
-
-])
-
-
-# ESO_CHECK_EXTRA_LIBS
-#---------------------
-# Check for non-standard headers and libraries
-AC_DEFUN([ESO_CHECK_EXTRA_LIBS],
-[
-
-    AC_ARG_WITH(extra-includes,
-                AC_HELP_STRING([--with-extra-includes=DIR],
-                               [adds non standard include paths]), 
-                eso_with_extra_includes=$withval, eso_with_extra_includes=NONE)
-
-    AC_ARG_WITH(extra-libs,
-                AC_HELP_STRING([--with-extra-libs=DIR],
-                              [adds non standard library paths]), 
-                eso_with_extra_libs=$withval, eso_with_extra_libs=NONE)
-
-    AC_MSG_CHECKING([for extra includes])
-    AC_CACHE_VAL([eso_cv_with_extra_includes],
-                 [
-                     eso_cv_with_extra_includes=$eso_with_extra_includes
-                 ])
-
-    if test x"$eso_cv_with_extra_includes" != xNONE; then
-        eso_save_IFS=$IFS
-        IFS=':'
-
-        for dir in $eso_cv_with_extra_includes; do
-            EXTRA_INCLUDES="$EXTRA_INCLUDES -I$dir"
-        done
-
-        IFS=$eso_save_IFS
-        AC_MSG_RESULT(added)
-    else
-        AC_MSG_RESULT(no)
-    fi
-
-
-    AC_MSG_CHECKING([for extra libs])
-    AC_CACHE_VAL([eso_cv_with_extra_libs],
-                 [
-                     eso_cv_with_extra_libs=$eso_with_extra_libs
-                 ])
-
-    if test x"$eso_cv_with_extra_libs" != xNONE; then
-        eso_save_IFS=$IFS
-        IFS=':'
-
-        for dir in $eso_cv_with_extra_libs; do
-            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$dir"
-        done
-
-        IFS=$eso_save_IFS
-        AC_MSG_RESULT(added)
-    else
-        AC_MSG_RESULT(no)
-    fi
-
-])
-
-
-# ESO_CHECK_FUNC(FUNCTION, INCLUDES, SYMBOL)
-#-------------------------------------------
-# Checks whether a function is available and declared.
-AC_DEFUN([ESO_CHECK_FUNC],
-[
-    
-    AC_LANG_PUSH(C)
-
-    eso_save_CFLAGS="$CFLAGS"
-
-    if test x"$GCC" = xyes; then
-        CFLAGS="$CFLAGS -pedantic-errors"
-    fi
-
-    AC_CHECK_FUNC($1)
-    AC_CHECK_DECL($1, [], [], [$2])
-
-    CFLAGS="$eso_save_CFLAGS"
-
-    AC_LANG_POP(C)
-
-    if test x"$ac_cv_have_decl_$1" = xyes &&
-       test x"$ac_cv_func_$1" = xyes; then
-        AC_DEFINE($3)
-    fi
-
-])
-
-
-# ESO_FUNC_VSNPRINTF_C99
-#-----------------------
-# Check whether vsnprintf() has C99 semantics.
-AC_DEFUN([ESO_FUNC_VSNPRINTF_C99],
-[
-
-    AH_TEMPLATE([HAVE_VSNPRINTF_C99],
-                [Define if you have the C99 `vsnprintf' function.])
-
-    AC_CACHE_CHECK([whether vsnprintf has C99 semantics],
-                   [eso_cv_func_vsnprintf_c99],
-                   [
-                       AC_LANG_PUSH(C)
-
-                       eso_cppflags_save="$CPPFLAGS"
-                       eso_cflags_save="$CFLAGS"
-                       eso_ldflags_save="$LDFLAGS"
-                       eso_libs_save="$LIBS"
-
-                      if test x$GCC = xyes; then
-                          CFLAGS="$CFLAGS -pedantic-errors"
-                          CPPFLAGS="$CPPFLAGS $CFLAGS"
-                      fi
-
-                       AC_RUN_IFELSE([
-#include <stdio.h>
-#include <stdarg.h>
-
-int
-doit(char * s, ...)
-{
-    char buffer[32];
-    va_list args;
-    int q, r;
-
-    va_start(args, s);
-    q = vsnprintf(NULL, 0, s, args);
-    r = vsnprintf(buffer, 5, s, args);
-    va_end(args);
-
-    if (q != 7 || r != 7)
-      exit(1);
-
-    exit(0);
-}
-
-int
-main(void)
-{
-    doit("1234567");
-    exit(1);
-}
-                                     ], 
-                                     eso_cv_func_vsnprintf_c99=yes,
-                                     eso_cv_func_vsnprintf_c99=no,
-                                     eso_cv_func_vsnprintf_c99=no)
-
-                       CPPFLAGS="$eso_cppflags_save"
-                       CFLAGS="$eso_cflags_save"
-                       LDFLAGS="$eso_ldflags_save"
-                       LIBS="$eso_libs_save"
-
-                       AC_LANG_POP(C)
-                   ])
-
-# Note that the default is to be pessimistic in the case of cross compilation.
-# If you know that the target has a C99 vsnprintf(), you can get around this
-# by setting eso_func_vsnprintf_c99 to yes, as described in the Autoconf
-# manual.
-
-    if test x$eso_cv_func_vsnprintf_c99 = xyes; then
-        AC_DEFINE(HAVE_VSNPRINTF_C99)
-    fi
-
-])
-
-
-# ESO_CHECK_PRINTF_FORMATS
-#-------------------------
-# Checks for printf() format peculiarities.
-AC_DEFUN([ESO_CHECK_PRINTF_FORMATS],
-[
-
-    # Check if string format for NULL is `(null)'
-
-    AH_TEMPLATE([HAVE_PRINTF_STR_FMT_NULL],
-                [Define if printf outputs `(null)' when printing NULL using
-                 `%s'])
-
-    AC_RUN_IFELSE([
-#include <stdio.h>
-#include <string.h>
-
-int main()
-{
-    char s[128];
-
-    sprintf(s, "%s", NULL);
-    return strncmp(s, "(null)", 6) ? 1 : 0;
-}
-                  ],
-                  eso_have_printf_str_format_null=yes,
-                  eso_have_printf_str_format_null=no,
-                  eso_have_printf_str_format_null=no
-                 )
-
-    if test x$eso_have_printf_str_format_null = xyes; then
-        AC_DEFINE(HAVE_PRINTF_STR_FMT_NULL)
-    fi
-
-
-    # Check if pointer format for NULL is `(nil)'
-
-    AH_TEMPLATE([HAVE_PRINTF_PTR_FMT_NIL],
-                [Define if printf outputs `(nil)' when printing NULL using
-                 `%p'])
-
-    AC_RUN_IFELSE([
-#include <stdio.h>
-#include <string.h>
-
-int main()
-{
-    char s[128];
-
-    sprintf(s, "%p", NULL);
-    return strncmp(s, "(nil)", 5) ? 1 : 0;
-}
-                  ],
-                  eso_have_printf_ptr_format_nil=yes,
-                  eso_have_printf_ptr_format_nil=no,
-                  eso_have_printf_ptr_format_nil=no
-                 )
-
-    if test x$eso_have_printf_ptr_format_nil = xyes; then
-        AC_DEFINE(HAVE_PRINTF_PTR_FMT_NIL)
-    fi
-
-
-    # Check if output for `%p' is the same as `%#x'
-
-    AH_TEMPLATE([HAVE_PRINTF_PTR_FMT_ALTERNATE],
-                [Define if printf format `%p' produces the same output as
-                 `%#x' or `%#lx'])
-
-    AC_RUN_IFELSE([
-#include <stdio.h>
-#include <string.h>
-
-int main()
-{
-    char s1[128], s2[128];
-
-    sprintf(s1, "%p", s1);
-    sprintf(s2, "%#x", s1);
-    return strncmp(s1, s2, 3) ? 1 : 0;
-}
-                  ],
-                  eso_have_printf_ptr_format_alternate=yes,
-                  eso_have_printf_ptr_format_alternate=no,
-                  eso_have_printf_ptr_format_alternate=no
-                 )
-
-    if test x$eso_have_printf_ptr_format_alternate = xyes; then
-        AC_DEFINE(HAVE_PRINTF_PTR_FMT_ALTERNATE)
-    fi
-
-
-    # Check if pointers are treated as signed
-
-    AH_TEMPLATE([HAVE_PRINTF_PTR_FMT_SIGNED],
-                [Define if printf treats pointers as signed when using a sign
-                 flag])
-
-    AC_RUN_IFELSE([
-#include <stdio.h>
-
-int main()
-{
-    char s[128];
-
-    sprintf(s, "%+p", s);
-    return s[0] == '+' ? 0 : 1;
-}
-                  ],
-                  eso_have_printf_ptr_format_signed=yes,
-                  eso_have_printf_ptr_format_signed=no,
-                  eso_have_printf_ptr_format_signed=no
-                 )
-
-    if test x$eso_have_printf_ptr_format_signed = xyes; then
-        AC_DEFINE(HAVE_PRINTF_PTR_FMT_SIGNED)
-    fi
-
-
-    # Check if default precision for conversion specifier `g' is 1 (as
-    # required by ISO C) or 6.
-
-    AH_TEMPLATE([HAVE_PRINTF_FLT_FMT_G_STD],
-                [Define if printf default precision for format `g' is 1
-                 (ISO C standard) or 6])
-
-    AC_RUN_IFELSE([
-#include <stdio.h>
-
-int main()
-{
-    char s1[128], s2[128];
-    int n1, n2;
-
-    sprintf(s1, "%g%n", 1.123456, &n1);
-    sprintf(s2, "%.1g%n", 1.123456, &n2);
-    return n1 > n2 ? 1 : 0;
-}
-                  ],
-                  eso_have_printf_flt_format_g_std=yes,
-                  eso_have_printf_flt_format_g_std=no,
-                  eso_have_printf_flt_format_g_std=no
-                 )
-
-    if test x$eso_have_printf_flt_format_g_std = xyes; then
-        AC_DEFINE(HAVE_PRINTF_FLT_FMT_G_STD)
-    fi
-
-])
-
-
-# ESO_FUNC_VSNPRINTF
-#-------------------
-# Checks for vsnprintf and snprintf declaration and function.
-AC_DEFUN([ESO_FUNC_VSNPRINTF],
-[
-
-    eso_compile_snprintf=no
-
-    AH_TEMPLATE([HAVE_VSNPRINTF],
-                [Define if you have the `vsnprintf' function])
-    ESO_CHECK_FUNC(vsnprintf, [#include <stdio.h>], HAVE_VSNPRINTF)
-
-    if test x$ac_cv_func_vsnprintf = xyes &&
-       test x$ac_cv_have_decl_vsnprintf = xyes; then
-  
-        ESO_FUNC_VSNPRINTF_C99
-
-        if test x$eso_cv_func_vsnprintf_c99 != xyes; then
-            eso_compile_snprintf=yes
-        fi
-
-    else
-        eso_compile_snprintf=yes
-    fi
-            
-    if test x$eso_compile_snprintf = xyes; then
-        if test -n "$LIBTOOL"; then
-            SNPRINTF=snprintf.lo
-        else
-            SNPRINTF=snprintf.$ac_objext
-        fi
-    fi
-
-    AC_SUBST(SNPRINTF)
-
-    # The symbols defined by the following macro are only needed to setup the
-    # vsnprintf() replacement. May be useless if the vsnprintf implementation
-    # changes.
-    ESO_CHECK_PRINTF_FORMATS
-
-    AH_TEMPLATE([HAVE_SNPRINTF],
-                [Define if you have the `snprintf' function])
-    ESO_CHECK_FUNC(snprintf, [#include <stdio.h>], HAVE_SNPRINTF)
-
-])
-
-
-# ESO_FUNC_VASPRINTF
-#-------------------
-# Checks for vasprintf declaration and function.
-AC_DEFUN([ESO_FUNC_VASPRINTF],
-[
-
-    AH_TEMPLATE([HAVE_VASPRINTF],
-                [Define if you have the `vasprintf' function])
-    ESO_CHECK_FUNC(vasprintf, [#include <stdio.h>], HAVE_VASPRINTF)
-
-])
-
-
-# ESO_FUNC_FPATHCONF
-#-------------------
-# Checks for fpathconf declaration and function.
-AC_DEFUN([ESO_FUNC_FPATHCONF],
-[
-
-    AH_TEMPLATE([HAVE_FPATHCONF],
-                [Define if you have the `fpathconf' function])
-    ESO_CHECK_FUNC(fpathconf, [#include <unistd.h>], HAVE_FPATHCONF)
-
-    # If we have fpathconf we should also have pathconf, but who knows.
-    AH_TEMPLATE([HAVE_PATHCONF],
-                [Define if you have the `pathconf' function])
-    ESO_CHECK_FUNC(pathconf, [#include <unistd.h>], HAVE_PATHCONF)
-
-])
-
-
-# ESO_FUNC_SYSCONF
-#-----------------
-# Checks for sysconf declaration and function.
-AC_DEFUN([ESO_FUNC_SYSCONF],
-[
-
-    AH_TEMPLATE([HAVE_SYSCONF],
-                [Define if you have the `sysconf' function])
-    ESO_CHECK_FUNC(sysconf, [#include <unistd.h>], HAVE_SYSCONF)
-
-])
-
-
-# ESO_FUNC_GETOPT
-#----------------
-# Checks for GNU getopt_long declaration and function.
-AC_DEFUN([ESO_FUNC_GETOPT],
-[
-
-    AH_TEMPLATE([HAVE_GETOPT_LONG],
-                [Define if you have the `getopt_long' function])
-
-    ESO_CHECK_FUNC(getopt_long, [#include <getopt.h>], HAVE_GETOPT_LONG)
-
-    if test x"$ac_cv_func_getopt_long" = xno ||
-       test x"$eso_cv_have_decl_getopt_long" = xno; then
-        if test -n "$LIBTOOL"; then
-            GETOPT="getopt.lo getopt1.lo"
-        else
-            GETOPT="getopt.$ac_objext getopt1.$ac_objext"
-        fi
-    fi
-
-    AC_SUBST(GETOPT)
-
-
-])
-
-
-# ESO_FUNC_GETPWUID
-#------------------
-# Checks for getpwuid declaration and function.
-AC_DEFUN([ESO_FUNC_GETPWUID],
-[
-
-    AH_TEMPLATE([HAVE_GETPWUID],
-                [Define if you have the `getpwuid' function])
-
-    ESO_CHECK_FUNC(getpwuid, [#include <pwd.h>], HAVE_GETPWUID)
-
-])
-
-
-# ESO_FUNC_GETUID
-#----------------
-AC_DEFUN([ESO_FUNC_GETUID],
-[
-
-    AH_TEMPLATE([HAVE_GETUID],
-                [Define if you have the `getuid' function])
-
-    ESO_CHECK_FUNC(getuid, [#include <unistd.h>], HAVE_GETUID)
-
-])
-
-
-# ESO_FUNC_LSTAT
-#---------------
-AC_DEFUN([ESO_FUNC_LSTAT],
-[
-
-    AH_TEMPLATE([HAVE_LSTAT],
-                [Define if you have the `lstat' function])
-
-    ESO_CHECK_FUNC(lstat, [#include <sys/stat.h>], HAVE_LSTAT)
-
-])
-
-
-# ESO_FUNC_STRDUP
-#----------------
-AC_DEFUN([ESO_FUNC_STRDUP],
-[
-
-    AH_TEMPLATE([HAVE_STRDUP],
-                [Define if you have the `strdup' function])
-
-    ESO_CHECK_FUNC(strdup, [#include <string.h>], HAVE_STRDUP)
-
-    AH_BOTTOM([
-#ifndef HAVE_STRDUP
-#  define strdup  cx_strdup
-#endif
-              ])
-])
-
-
-# ESO_FUNC_STPCPY
-#----------------
-AC_DEFUN([ESO_FUNC_STPCPY],
-[
-
-    AH_TEMPLATE([HAVE_STPCPY],
-                [Define if you have the `stpcpy' function])
-
-    ESO_CHECK_FUNC(stpcpy, [#include <stpcpy.h>], HAVE_STPCPY)
-
-])
-
-
-# ESO_FUNC_SYMLINK
-#-----------------
-AC_DEFUN([ESO_FUNC_SYMLINK],
-[
-
-    AH_TEMPLATE([HAVE_SYMLINK],
-                [Define if you have the `symlink' function])
-
-    ESO_CHECK_FUNC(symlink, [#include <unistd.h>], HAVE_SYMLINK)
-
-])
-
-
-# ESO_FUNC_WORDEXP
-#-----------------
-AC_DEFUN([ESO_FUNC_WORDEXP],
-[
-
-    AH_TEMPLATE([HAVE_WORDEXP],
-                [Define if you have the `wordexp' function])
-
-    ESO_CHECK_FUNC(wordexp, [#include <wordexp.h>], HAVE_WORDEXP)
-
-])
-
-
-# ESO_FUNC_GETTIMEOFDAY
-#----------------------
-AC_DEFUN([ESO_FUNC_GETTIMEOFDAY],
-[
-
-    AH_TEMPLATE([HAVE_GETTIMEOFDAY],
-                [Define if you have the `gettimeofday' function])
-
-    ESO_CHECK_FUNC(gettimeofday,
-                   [
-                       #include <unistd.h>
-                       #include <sys/time.h>
-                   ],
-                   HAVE_GETTIMEOFDAY)
-])
-
-
-# ESO_FUNC_VA_COPY(symbol)
-#-------------------------
-# Check for an implementation of va_copy(). The argument which must be
-# given is the preprocessor symbol that is defined to be either va_copy
-# or __va_copy depending on the available function, provided that an
-# implementation of va_copy is available at all.
-AC_DEFUN([ESO_FUNC_VA_COPY],
-[
-
-    # Check for all three va_copy possibilities, so we get
-    # all results in config.log for bug reports.
-
-    # Check for availability of va_copy(). This is ISO C. Available with
-    # gcc since version 3.0.
-    AC_CACHE_CHECK([for an implementation of va_copy()], eso_cv_have_va_copy,
-                   [
-                       AC_RUN_IFELSE([
-#include <stdarg.h>
-
-void f(int i, ...)
-{
-    va_list args1, args2;
-    va_start (args1, i);
-    va_copy (args2, args1);
-
-    if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
-        exit (1);
-
-    va_end (args1);
-    va_end (args2);
-}
-
-int main() {
-  f(0, 42);
-  return 0;
-}
-                                     ],
-                                     eso_cv_have_va_copy=yes,
-                                     eso_cv_have_va_copy=no,
-                                     eso_cv_have_va_copy=no)
-                   ])
-
-
-    # Check for availability of __va_copy(). Some compilers provide
-    # this. Available with gcc since version 2.8.1.
-    AC_CACHE_CHECK([for an implementation of __va_copy()],
-                   eso_cv_have__va_copy,
-                   [
-                       AC_RUN_IFELSE([
-#include <stdarg.h>
-
-void f(int i, ...)
-{
-    va_list args1, args2;
-
-    va_start (args1, i);
-    __va_copy (args2, args1);
-
-    if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
-        exit (1);
-
-    va_end (args1);
-    va_end (args2);
-}
-
-int main()
-{
-    f(0, 42);
-    return 0;
-}
-                                     ],
-                                     eso_cv_have__va_copy=yes,
-                                     eso_cv_have__va_copy=no,
-                                     eso_cv_have__va_copy=no)
-
-                   ])
-
-    if test "x$eso_cv_have_va_copy" = "xyes"; then
-        eso_func_va_copy=va_copy
-    else
-        if test "x$eso_cv_have__va_copy" = "xyes"; then
-            eso_func_va_copy=__va_copy
-        fi
-    fi
-
-    AH_TEMPLATE([HAVE_VA_COPY],
-                [Define if you have an implementation of a `va_copy()' style
-                 function.])
-    AH_TEMPLATE([$1], [A `va_copy()' style function])
-
-    if test -n "$eso_func_va_copy"; then
-        AC_DEFINE_UNQUOTED([$1], $eso_func_va_copy)
-        AC_DEFINE(HAVE_VA_COPY)
-    fi
-
-    # Check whether va_lists can be copied by value
-    AC_CACHE_CHECK([whether va_lists can be copied by value],
-                   eso_cv_have_va_value_copy,
-                   [
-                       AC_RUN_IFELSE([
-#include <stdarg.h>
-
-void f(int i, ...)
-{
-    va_list args1, args2;
-    va_start (args1, i);
-    args2 = args1;
-
-    if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
-        exit (1);
-
-    va_end (args1);
-    va_end (args2);
-}
-
-int main()
-{
-  f(0, 42);
-  return 0;
-}
-                                     ],
-                                     eso_cv_have_va_value_copy=yes,
-                                     eso_cv_have_va_val_copy=no,
-                                     eso_cv_have_va_val_copy=no)
-                   ])
-
-    AH_TEMPLATE([HAVE_VA_LIST_COPY_BY_VALUE],
-                [Define if `va_lists' can be copied by value])
-    if test "x$eso_cv_have_va_value_copy" = "xyes"; then
-        AC_DEFINE(HAVE_VA_LIST_COPY_BY_VALUE)
-    fi
-
-])
-
- 
-# ESO_FUNC_REALLOC_SANITY
-#-------------------------
-# Check whether realloc(NULL,) works.
-AC_DEFUN([ESO_FUNC_REALLOC_SANITY],
-[
-    AC_CACHE_CHECK([whether realloc(NULL,) works],
-                   eso_cv_have_sane_realloc,
-                   [
-                       AC_RUN_IFELSE([
-#include <stdlib.h>
-
-int main()
-{
-    return realloc (0, sizeof (int)) == 0;
-}
-                                     ],
-                                     eso_cv_have_sane_realloc=yes,
-                                     eso_cv_have_sane_realloc=no,
-                                     eso_cv_have_sane_realloc=no)
-                   ])
-
-    AH_TEMPLATE([HAVE_WORKING_REALLOC],
-                [Define if realloc(NULL,) works])
-
-    if test x$eso_cv_have_sane_realloc = xyes; then
-        AC_DEFINE(HAVE_WORKING_REALLOC)
-    fi
-
-])
-
-
-# ESO_FIND_FILE(file, directories, variable)
-#------------------------------------------
-# Search for file in directories. Set variable to the first location
-# where file was found, if file is not found at all variable is set to NO.
-AC_DEFUN([ESO_FIND_FILE],
-[
-    $3=no
-
-    for i in $2; do
-        for j in $1; do
-
-            echo "configure: __oline__: $i/$j" >&AC_FD_CC
-
-            if test -r "$i/$j"; then
-                echo "taking that" >&AC_FD_CC
-                $3=$i
-                break 2
-            fi
-        done
-    done
-])
-
-
-# ESO_SET_LIBRARY_VERSION([CURRENT], [REVISION], [AGE])
-#------------------------------------------------------
-# Sets the libtool versioning symbols LT_CURRENT, LT_REVISION, LT_AGE.
-AC_DEFUN([ESO_SET_LIBRARY_VERSION],
-[
-
-    if test -z "$1"; then
-        LT_CURRENT=0
-    else
-        LT_CURRENT="$1"
-    fi
-
-    if test -z "$2"; then
-        LT_REVISION=0
-    else
-        LT_REVISION="$2"
-    fi
-
-    if test -z "$3"; then
-        LT_AGE=0
-    else
-        LT_AGE="$3"
-    fi
-
-    AC_SUBST(LT_CURRENT)
-    AC_SUBST(LT_REVISION)
-    AC_SUBST(LT_AGE)
-])
diff --git a/libqfits/m4macros/libtool.m4 b/libqfits/m4macros/libtool.m4
deleted file mode 100644
index 56666f0..0000000
--- a/libqfits/m4macros/libtool.m4
+++ /dev/null
@@ -1,7986 +0,0 @@
-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
-#
-#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-#                 Foundation, Inc.
-#   Written by Gordon Matzigkeit, 1996
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-m4_define([_LT_COPYING], [dnl
-#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-#                 Foundation, Inc.
-#   Written by Gordon Matzigkeit, 1996
-#
-#   This file is part of GNU Libtool.
-#
-# GNU Libtool is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of
-# the License, or (at your option) any later version.
-#
-# As a special exception to the GNU General Public License,
-# if you distribute this file as part of a program or library that
-# is built using GNU Libtool, you may include this file under the
-# same distribution terms that you use for the rest of that program.
-#
-# GNU Libtool is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Libtool; see the file COPYING.  If not, a copy
-# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
-# obtained by writing to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-])
-
-# serial 57 LT_INIT
-
-
-# LT_PREREQ(VERSION)
-# ------------------
-# Complain and exit if this libtool version is less that VERSION.
-m4_defun([LT_PREREQ],
-[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
-       [m4_default([$3],
-		   [m4_fatal([Libtool version $1 or higher is required],
-		             63)])],
-       [$2])])
-
-
-# _LT_CHECK_BUILDDIR
-# ------------------
-# Complain if the absolute build directory name contains unusual characters
-m4_defun([_LT_CHECK_BUILDDIR],
-[case `pwd` in
-  *\ * | *\	*)
-    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
-esac
-])
-
-
-# LT_INIT([OPTIONS])
-# ------------------
-AC_DEFUN([LT_INIT],
-[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
-AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
-AC_BEFORE([$0], [LT_LANG])dnl
-AC_BEFORE([$0], [LT_OUTPUT])dnl
-AC_BEFORE([$0], [LTDL_INIT])dnl
-m4_require([_LT_CHECK_BUILDDIR])dnl
-
-dnl Autoconf doesn't catch unexpanded LT_ macros by default:
-m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
-m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
-dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
-dnl unless we require an AC_DEFUNed macro:
-AC_REQUIRE([LTOPTIONS_VERSION])dnl
-AC_REQUIRE([LTSUGAR_VERSION])dnl
-AC_REQUIRE([LTVERSION_VERSION])dnl
-AC_REQUIRE([LTOBSOLETE_VERSION])dnl
-m4_require([_LT_PROG_LTMAIN])dnl
-
-_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
-
-dnl Parse OPTIONS
-_LT_SET_OPTIONS([$0], [$1])
-
-# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ltmain"
-
-# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-AC_SUBST(LIBTOOL)dnl
-
-_LT_SETUP
-
-# Only expand once:
-m4_define([LT_INIT])
-])# LT_INIT
-
-# Old names:
-AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
-AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
-dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
-
-
-# _LT_CC_BASENAME(CC)
-# -------------------
-# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
-m4_defun([_LT_CC_BASENAME],
-[for cc_temp in $1""; do
-  case $cc_temp in
-    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
-    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
-    \-*) ;;
-    *) break;;
-  esac
-done
-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
-])
-
-
-# _LT_FILEUTILS_DEFAULTS
-# ----------------------
-# It is okay to use these file commands and assume they have been set
-# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
-m4_defun([_LT_FILEUTILS_DEFAULTS],
-[: ${CP="cp -f"}
-: ${MV="mv -f"}
-: ${RM="rm -f"}
-])# _LT_FILEUTILS_DEFAULTS
-
-
-# _LT_SETUP
-# ---------
-m4_defun([_LT_SETUP],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
-AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
-
-_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
-dnl
-_LT_DECL([], [host_alias], [0], [The host system])dnl
-_LT_DECL([], [host], [0])dnl
-_LT_DECL([], [host_os], [0])dnl
-dnl
-_LT_DECL([], [build_alias], [0], [The build system])dnl
-_LT_DECL([], [build], [0])dnl
-_LT_DECL([], [build_os], [0])dnl
-dnl
-AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([LT_PATH_LD])dnl
-AC_REQUIRE([LT_PATH_NM])dnl
-dnl
-AC_REQUIRE([AC_PROG_LN_S])dnl
-test -z "$LN_S" && LN_S="ln -s"
-_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
-dnl
-AC_REQUIRE([LT_CMD_MAX_LEN])dnl
-_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
-_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
-dnl
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
-m4_require([_LT_CHECK_SHELL_FEATURES])dnl
-m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
-m4_require([_LT_CMD_RELOAD])dnl
-m4_require([_LT_CHECK_MAGIC_METHOD])dnl
-m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
-m4_require([_LT_CMD_OLD_ARCHIVE])dnl
-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
-m4_require([_LT_WITH_SYSROOT])dnl
-
-_LT_CONFIG_LIBTOOL_INIT([
-# See if we are running on zsh, and set the options which allow our
-# commands through without removal of \ escapes INIT.
-if test -n "\${ZSH_VERSION+set}" ; then
-   setopt NO_GLOB_SUBST
-fi
-])
-if test -n "${ZSH_VERSION+set}" ; then
-   setopt NO_GLOB_SUBST
-fi
-
-_LT_CHECK_OBJDIR
-
-m4_require([_LT_TAG_COMPILER])dnl
-
-case $host_os in
-aix3*)
-  # AIX sometimes has problems with the GCC collect2 program.  For some
-  # reason, if we set the COLLECT_NAMES environment variable, the problems
-  # vanish in a puff of smoke.
-  if test "X${COLLECT_NAMES+set}" != Xset; then
-    COLLECT_NAMES=
-    export COLLECT_NAMES
-  fi
-  ;;
-esac
-
-# Global variables:
-ofile=libtool
-can_build_shared=yes
-
-# All known linkers require a `.a' archive for static linking (except MSVC,
-# which needs '.lib').
-libext=a
-
-with_gnu_ld="$lt_cv_prog_gnu_ld"
-
-old_CC="$CC"
-old_CFLAGS="$CFLAGS"
-
-# Set sane defaults for various variables
-test -z "$CC" && CC=cc
-test -z "$LTCC" && LTCC=$CC
-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
-test -z "$LD" && LD=ld
-test -z "$ac_objext" && ac_objext=o
-
-_LT_CC_BASENAME([$compiler])
-
-# Only perform the check for file, if the check method requires it
-test -z "$MAGIC_CMD" && MAGIC_CMD=file
-case $deplibs_check_method in
-file_magic*)
-  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
-    _LT_PATH_MAGIC
-  fi
-  ;;
-esac
-
-# Use C for the default configuration in the libtool script
-LT_SUPPORTED_TAG([CC])
-_LT_LANG_C_CONFIG
-_LT_LANG_DEFAULT_CONFIG
-_LT_CONFIG_COMMANDS
-])# _LT_SETUP
-
-
-# _LT_PREPARE_SED_QUOTE_VARS
-# --------------------------
-# Define a few sed substitution that help us do robust quoting.
-m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
-[# Backslashify metacharacters that are still active within
-# double-quoted strings.
-sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
-
-# Same as above, but do not quote variable references.
-double_quote_subst='s/\([["`\\]]\)/\\\1/g'
-
-# Sed substitution to delay expansion of an escaped shell variable in a
-# double_quote_subst'ed string.
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
-
-# Sed substitution to delay expansion of an escaped single quote.
-delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
-
-# Sed substitution to avoid accidental globbing in evaled expressions
-no_glob_subst='s/\*/\\\*/g'
-])
-
-# _LT_PROG_LTMAIN
-# ---------------
-# Note that this code is called both from `configure', and `config.status'
-# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
-# `config.status' has no value for ac_aux_dir unless we are using Automake,
-# so we pass a copy along to make sure it has a sensible value anyway.
-m4_defun([_LT_PROG_LTMAIN],
-[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
-_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
-ltmain="$ac_aux_dir/ltmain.sh"
-])# _LT_PROG_LTMAIN
-
-
-## ------------------------------------- ##
-## Accumulate code for creating libtool. ##
-## ------------------------------------- ##
-
-# So that we can recreate a full libtool script including additional
-# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
-# in macros and then make a single call at the end using the `libtool'
-# label.
-
-
-# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
-# ----------------------------------------
-# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
-m4_define([_LT_CONFIG_LIBTOOL_INIT],
-[m4_ifval([$1],
-          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
-                     [$1
-])])])
-
-# Initialize.
-m4_define([_LT_OUTPUT_LIBTOOL_INIT])
-
-
-# _LT_CONFIG_LIBTOOL([COMMANDS])
-# ------------------------------
-# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
-m4_define([_LT_CONFIG_LIBTOOL],
-[m4_ifval([$1],
-          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
-                     [$1
-])])])
-
-# Initialize.
-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
-
-
-# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
-# -----------------------------------------------------
-m4_defun([_LT_CONFIG_SAVE_COMMANDS],
-[_LT_CONFIG_LIBTOOL([$1])
-_LT_CONFIG_LIBTOOL_INIT([$2])
-])
-
-
-# _LT_FORMAT_COMMENT([COMMENT])
-# -----------------------------
-# Add leading comment marks to the start of each line, and a trailing
-# full-stop to the whole comment if one is not present already.
-m4_define([_LT_FORMAT_COMMENT],
-[m4_ifval([$1], [
-m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
-              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
-)])
-
-
-
-## ------------------------ ##
-## FIXME: Eliminate VARNAME ##
-## ------------------------ ##
-
-
-# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
-# -------------------------------------------------------------------
-# CONFIGNAME is the name given to the value in the libtool script.
-# VARNAME is the (base) name used in the configure script.
-# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
-# VARNAME.  Any other value will be used directly.
-m4_define([_LT_DECL],
-[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
-    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
-	[m4_ifval([$1], [$1], [$2])])
-    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
-    m4_ifval([$4],
-	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
-    lt_dict_add_subkey([lt_decl_dict], [$2],
-	[tagged?], [m4_ifval([$5], [yes], [no])])])
-])
-
-
-# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
-# --------------------------------------------------------
-m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
-
-
-# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
-# ------------------------------------------------
-m4_define([lt_decl_tag_varnames],
-[_lt_decl_filter([tagged?], [yes], $@)])
-
-
-# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
-# ---------------------------------------------------------
-m4_define([_lt_decl_filter],
-[m4_case([$#],
-  [0], [m4_fatal([$0: too few arguments: $#])],
-  [1], [m4_fatal([$0: too few arguments: $#: $1])],
-  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
-  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
-  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
-])
-
-
-# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
-# --------------------------------------------------
-m4_define([lt_decl_quote_varnames],
-[_lt_decl_filter([value], [1], $@)])
-
-
-# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
-# ---------------------------------------------------
-m4_define([lt_decl_dquote_varnames],
-[_lt_decl_filter([value], [2], $@)])
-
-
-# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
-# ---------------------------------------------------
-m4_define([lt_decl_varnames_tagged],
-[m4_assert([$# <= 2])dnl
-_$0(m4_quote(m4_default([$1], [[, ]])),
-    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
-    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
-m4_define([_lt_decl_varnames_tagged],
-[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
-
-
-# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
-# ------------------------------------------------
-m4_define([lt_decl_all_varnames],
-[_$0(m4_quote(m4_default([$1], [[, ]])),
-     m4_if([$2], [],
-	   m4_quote(lt_decl_varnames),
-	m4_quote(m4_shift($@))))[]dnl
-])
-m4_define([_lt_decl_all_varnames],
-[lt_join($@, lt_decl_varnames_tagged([$1],
-			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
-])
-
-
-# _LT_CONFIG_STATUS_DECLARE([VARNAME])
-# ------------------------------------
-# Quote a variable value, and forward it to `config.status' so that its
-# declaration there will have the same value as in `configure'.  VARNAME
-# must have a single quote delimited value for this to work.
-m4_define([_LT_CONFIG_STATUS_DECLARE],
-[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
-
-
-# _LT_CONFIG_STATUS_DECLARATIONS
-# ------------------------------
-# We delimit libtool config variables with single quotes, so when
-# we write them to config.status, we have to be sure to quote all
-# embedded single quotes properly.  In configure, this macro expands
-# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
-#
-#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
-m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
-[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
-    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
-
-
-# _LT_LIBTOOL_TAGS
-# ----------------
-# Output comment and list of tags supported by the script
-m4_defun([_LT_LIBTOOL_TAGS],
-[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
-available_tags="_LT_TAGS"dnl
-])
-
-
-# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
-# -----------------------------------
-# Extract the dictionary values for VARNAME (optionally with TAG) and
-# expand to a commented shell variable setting:
-#
-#    # Some comment about what VAR is for.
-#    visible_name=$lt_internal_name
-m4_define([_LT_LIBTOOL_DECLARE],
-[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
-					   [description])))[]dnl
-m4_pushdef([_libtool_name],
-    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
-m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
-    [0], [_libtool_name=[$]$1],
-    [1], [_libtool_name=$lt_[]$1],
-    [2], [_libtool_name=$lt_[]$1],
-    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
-m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
-])
-
-
-# _LT_LIBTOOL_CONFIG_VARS
-# -----------------------
-# Produce commented declarations of non-tagged libtool config variables
-# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
-# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
-# section) are produced by _LT_LIBTOOL_TAG_VARS.
-m4_defun([_LT_LIBTOOL_CONFIG_VARS],
-[m4_foreach([_lt_var],
-    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
-    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
-
-
-# _LT_LIBTOOL_TAG_VARS(TAG)
-# -------------------------
-m4_define([_LT_LIBTOOL_TAG_VARS],
-[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
-    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
-
-
-# _LT_TAGVAR(VARNAME, [TAGNAME])
-# ------------------------------
-m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
-
-
-# _LT_CONFIG_COMMANDS
-# -------------------
-# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
-# variables for single and double quote escaping we saved from calls
-# to _LT_DECL, we can put quote escaped variables declarations
-# into `config.status', and then the shell code to quote escape them in
-# for loops in `config.status'.  Finally, any additional code accumulated
-# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
-m4_defun([_LT_CONFIG_COMMANDS],
-[AC_PROVIDE_IFELSE([LT_OUTPUT],
-	dnl If the libtool generation code has been placed in $CONFIG_LT,
-	dnl instead of duplicating it all over again into config.status,
-	dnl then we will have config.status run $CONFIG_LT later, so it
-	dnl needs to know what name is stored there:
-        [AC_CONFIG_COMMANDS([libtool],
-            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
-    dnl If the libtool generation code is destined for config.status,
-    dnl expand the accumulated commands and init code now:
-    [AC_CONFIG_COMMANDS([libtool],
-        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
-])#_LT_CONFIG_COMMANDS
-
-
-# Initialize.
-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
-[
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-sed_quote_subst='$sed_quote_subst'
-double_quote_subst='$double_quote_subst'
-delay_variable_subst='$delay_variable_subst'
-_LT_CONFIG_STATUS_DECLARATIONS
-LTCC='$LTCC'
-LTCFLAGS='$LTCFLAGS'
-compiler='$compiler_DEFAULT'
-
-# A function that is used when there is no print builtin or printf.
-func_fallback_echo ()
-{
-  eval 'cat <<_LTECHO_EOF
-\$[]1
-_LTECHO_EOF'
-}
-
-# Quote evaled strings.
-for var in lt_decl_all_varnames([[ \
-]], lt_decl_quote_varnames); do
-    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
-    *[[\\\\\\\`\\"\\\$]]*)
-      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
-      ;;
-    *)
-      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
-      ;;
-    esac
-done
-
-# Double-quote double-evaled strings.
-for var in lt_decl_all_varnames([[ \
-]], lt_decl_dquote_varnames); do
-    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
-    *[[\\\\\\\`\\"\\\$]]*)
-      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
-      ;;
-    *)
-      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
-      ;;
-    esac
-done
-
-_LT_OUTPUT_LIBTOOL_INIT
-])
-
-# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
-# ------------------------------------
-# Generate a child script FILE with all initialization necessary to
-# reuse the environment learned by the parent script, and make the
-# file executable.  If COMMENT is supplied, it is inserted after the
-# `#!' sequence but before initialization text begins.  After this
-# macro, additional text can be appended to FILE to form the body of
-# the child script.  The macro ends with non-zero status if the
-# file could not be fully written (such as if the disk is full).
-m4_ifdef([AS_INIT_GENERATED],
-[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
-[m4_defun([_LT_GENERATED_FILE_INIT],
-[m4_require([AS_PREPARE])]dnl
-[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
-[lt_write_fail=0
-cat >$1 <<_ASEOF || lt_write_fail=1
-#! $SHELL
-# Generated by $as_me.
-$2
-SHELL=\${CONFIG_SHELL-$SHELL}
-export SHELL
-_ASEOF
-cat >>$1 <<\_ASEOF || lt_write_fail=1
-AS_SHELL_SANITIZE
-_AS_PREPARE
-exec AS_MESSAGE_FD>&1
-_ASEOF
-test $lt_write_fail = 0 && chmod +x $1[]dnl
-m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
-
-# LT_OUTPUT
-# ---------
-# This macro allows early generation of the libtool script (before
-# AC_OUTPUT is called), incase it is used in configure for compilation
-# tests.
-AC_DEFUN([LT_OUTPUT],
-[: ${CONFIG_LT=./config.lt}
-AC_MSG_NOTICE([creating $CONFIG_LT])
-_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
-[# Run this file to recreate a libtool stub with the current configuration.])
-
-cat >>"$CONFIG_LT" <<\_LTEOF
-lt_cl_silent=false
-exec AS_MESSAGE_LOG_FD>>config.log
-{
-  echo
-  AS_BOX([Running $as_me.])
-} >&AS_MESSAGE_LOG_FD
-
-lt_cl_help="\
-\`$as_me' creates a local libtool stub from the current configuration,
-for use in further configure time tests before the real libtool is
-generated.
-
-Usage: $[0] [[OPTIONS]]
-
-  -h, --help      print this help, then exit
-  -V, --version   print version number, then exit
-  -q, --quiet     do not print progress messages
-  -d, --debug     don't remove temporary files
-
-Report bugs to <bug-libtool at gnu.org>."
-
-lt_cl_version="\
-m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
-m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
-configured by $[0], generated by m4_PACKAGE_STRING.
-
-Copyright (C) 2011 Free Software Foundation, Inc.
-This config.lt script is free software; the Free Software Foundation
-gives unlimited permision to copy, distribute and modify it."
-
-while test $[#] != 0
-do
-  case $[1] in
-    --version | --v* | -V )
-      echo "$lt_cl_version"; exit 0 ;;
-    --help | --h* | -h )
-      echo "$lt_cl_help"; exit 0 ;;
-    --debug | --d* | -d )
-      debug=: ;;
-    --quiet | --q* | --silent | --s* | -q )
-      lt_cl_silent=: ;;
-
-    -*) AC_MSG_ERROR([unrecognized option: $[1]
-Try \`$[0] --help' for more information.]) ;;
-
-    *) AC_MSG_ERROR([unrecognized argument: $[1]
-Try \`$[0] --help' for more information.]) ;;
-  esac
-  shift
-done
-
-if $lt_cl_silent; then
-  exec AS_MESSAGE_FD>/dev/null
-fi
-_LTEOF
-
-cat >>"$CONFIG_LT" <<_LTEOF
-_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
-_LTEOF
-
-cat >>"$CONFIG_LT" <<\_LTEOF
-AC_MSG_NOTICE([creating $ofile])
-_LT_OUTPUT_LIBTOOL_COMMANDS
-AS_EXIT(0)
-_LTEOF
-chmod +x "$CONFIG_LT"
-
-# configure is writing to config.log, but config.lt does its own redirection,
-# appending to config.log, which fails on DOS, as config.log is still kept
-# open by configure.  Here we exec the FD to /dev/null, effectively closing
-# config.log, so it can be properly (re)opened and appended to by config.lt.
-lt_cl_success=:
-test "$silent" = yes &&
-  lt_config_lt_args="$lt_config_lt_args --quiet"
-exec AS_MESSAGE_LOG_FD>/dev/null
-$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
-exec AS_MESSAGE_LOG_FD>>config.log
-$lt_cl_success || AS_EXIT(1)
-])# LT_OUTPUT
-
-
-# _LT_CONFIG(TAG)
-# ---------------
-# If TAG is the built-in tag, create an initial libtool script with a
-# default configuration from the untagged config vars.  Otherwise add code
-# to config.status for appending the configuration named by TAG from the
-# matching tagged config vars.
-m4_defun([_LT_CONFIG],
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
-_LT_CONFIG_SAVE_COMMANDS([
-  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
-  m4_if(_LT_TAG, [C], [
-    # See if we are running on zsh, and set the options which allow our
-    # commands through without removal of \ escapes.
-    if test -n "${ZSH_VERSION+set}" ; then
-      setopt NO_GLOB_SUBST
-    fi
-
-    cfgfile="${ofile}T"
-    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
-    $RM "$cfgfile"
-
-    cat <<_LT_EOF >> "$cfgfile"
-#! $SHELL
-
-# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
-# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
-#
-_LT_COPYING
-_LT_LIBTOOL_TAGS
-
-# ### BEGIN LIBTOOL CONFIG
-_LT_LIBTOOL_CONFIG_VARS
-_LT_LIBTOOL_TAG_VARS
-# ### END LIBTOOL CONFIG
-
-_LT_EOF
-
-  case $host_os in
-  aix3*)
-    cat <<\_LT_EOF >> "$cfgfile"
-# AIX sometimes has problems with the GCC collect2 program.  For some
-# reason, if we set the COLLECT_NAMES environment variable, the problems
-# vanish in a puff of smoke.
-if test "X${COLLECT_NAMES+set}" != Xset; then
-  COLLECT_NAMES=
-  export COLLECT_NAMES
-fi
-_LT_EOF
-    ;;
-  esac
-
-  _LT_PROG_LTMAIN
-
-  # We use sed instead of cat because bash on DJGPP gets confused if
-  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
-  # text mode, it properly converts lines to CR/LF.  This bash problem
-  # is reportedly fixed, but why not run on old versions too?
-  sed '$q' "$ltmain" >> "$cfgfile" \
-     || (rm -f "$cfgfile"; exit 1)
-
-  _LT_PROG_REPLACE_SHELLFNS
-
-   mv -f "$cfgfile" "$ofile" ||
-    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
-  chmod +x "$ofile"
-],
-[cat <<_LT_EOF >> "$ofile"
-
-dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
-dnl in a comment (ie after a #).
-# ### BEGIN LIBTOOL TAG CONFIG: $1
-_LT_LIBTOOL_TAG_VARS(_LT_TAG)
-# ### END LIBTOOL TAG CONFIG: $1
-_LT_EOF
-])dnl /m4_if
-],
-[m4_if([$1], [], [
-    PACKAGE='$PACKAGE'
-    VERSION='$VERSION'
-    TIMESTAMP='$TIMESTAMP'
-    RM='$RM'
-    ofile='$ofile'], [])
-])dnl /_LT_CONFIG_SAVE_COMMANDS
-])# _LT_CONFIG
-
-
-# LT_SUPPORTED_TAG(TAG)
-# ---------------------
-# Trace this macro to discover what tags are supported by the libtool
-# --tag option, using:
-#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
-AC_DEFUN([LT_SUPPORTED_TAG], [])
-
-
-# C support is built-in for now
-m4_define([_LT_LANG_C_enabled], [])
-m4_define([_LT_TAGS], [])
-
-
-# LT_LANG(LANG)
-# -------------
-# Enable libtool support for the given language if not already enabled.
-AC_DEFUN([LT_LANG],
-[AC_BEFORE([$0], [LT_OUTPUT])dnl
-m4_case([$1],
-  [C],			[_LT_LANG(C)],
-  [C++],		[_LT_LANG(CXX)],
-  [Go],			[_LT_LANG(GO)],
-  [Java],		[_LT_LANG(GCJ)],
-  [Fortran 77],		[_LT_LANG(F77)],
-  [Fortran],		[_LT_LANG(FC)],
-  [Windows Resource],	[_LT_LANG(RC)],
-  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
-    [_LT_LANG($1)],
-    [m4_fatal([$0: unsupported language: "$1"])])])dnl
-])# LT_LANG
-
-
-# _LT_LANG(LANGNAME)
-# ------------------
-m4_defun([_LT_LANG],
-[m4_ifdef([_LT_LANG_]$1[_enabled], [],
-  [LT_SUPPORTED_TAG([$1])dnl
-  m4_append([_LT_TAGS], [$1 ])dnl
-  m4_define([_LT_LANG_]$1[_enabled], [])dnl
-  _LT_LANG_$1_CONFIG($1)])dnl
-])# _LT_LANG
-
-
-m4_ifndef([AC_PROG_GO], [
-############################################################
-# NOTE: This macro has been submitted for inclusion into   #
-#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
-#  a released version of Autoconf we should remove this    #
-#  macro and use it instead.                               #
-############################################################
-m4_defun([AC_PROG_GO],
-[AC_LANG_PUSH(Go)dnl
-AC_ARG_VAR([GOC],     [Go compiler command])dnl
-AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
-_AC_ARG_VAR_LDFLAGS()dnl
-AC_CHECK_TOOL(GOC, gccgo)
-if test -z "$GOC"; then
-  if test -n "$ac_tool_prefix"; then
-    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
-  fi
-fi
-if test -z "$GOC"; then
-  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
-fi
-])#m4_defun
-])#m4_ifndef
-
-
-# _LT_LANG_DEFAULT_CONFIG
-# -----------------------
-m4_defun([_LT_LANG_DEFAULT_CONFIG],
-[AC_PROVIDE_IFELSE([AC_PROG_CXX],
-  [LT_LANG(CXX)],
-  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
-
-AC_PROVIDE_IFELSE([AC_PROG_F77],
-  [LT_LANG(F77)],
-  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
-
-AC_PROVIDE_IFELSE([AC_PROG_FC],
-  [LT_LANG(FC)],
-  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
-
-dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
-dnl pulling things in needlessly.
-AC_PROVIDE_IFELSE([AC_PROG_GCJ],
-  [LT_LANG(GCJ)],
-  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
-    [LT_LANG(GCJ)],
-    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
-      [LT_LANG(GCJ)],
-      [m4_ifdef([AC_PROG_GCJ],
-	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
-       m4_ifdef([A][M_PROG_GCJ],
-	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
-       m4_ifdef([LT_PROG_GCJ],
-	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
-
-AC_PROVIDE_IFELSE([AC_PROG_GO],
-  [LT_LANG(GO)],
-  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
-
-AC_PROVIDE_IFELSE([LT_PROG_RC],
-  [LT_LANG(RC)],
-  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
-])# _LT_LANG_DEFAULT_CONFIG
-
-# Obsolete macros:
-AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
-AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
-AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
-AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
-AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
-dnl AC_DEFUN([AC_LIBTOOL_F77], [])
-dnl AC_DEFUN([AC_LIBTOOL_FC], [])
-dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
-dnl AC_DEFUN([AC_LIBTOOL_RC], [])
-
-
-# _LT_TAG_COMPILER
-# ----------------
-m4_defun([_LT_TAG_COMPILER],
-[AC_REQUIRE([AC_PROG_CC])dnl
-
-_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
-_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
-_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
-_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
-
-# If no C compiler was specified, use CC.
-LTCC=${LTCC-"$CC"}
-
-# If no C compiler flags were specified, use CFLAGS.
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
-
-# Allow CC to be a program name with arguments.
-compiler=$CC
-])# _LT_TAG_COMPILER
-
-
-# _LT_COMPILER_BOILERPLATE
-# ------------------------
-# Check for compiler boilerplate output or warnings with
-# the simple compiler test code.
-m4_defun([_LT_COMPILER_BOILERPLATE],
-[m4_require([_LT_DECL_SED])dnl
-ac_outfile=conftest.$ac_objext
-echo "$lt_simple_compile_test_code" >conftest.$ac_ext
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_compiler_boilerplate=`cat conftest.err`
-$RM conftest*
-])# _LT_COMPILER_BOILERPLATE
-
-
-# _LT_LINKER_BOILERPLATE
-# ----------------------
-# Check for linker boilerplate output or warnings with
-# the simple link test code.
-m4_defun([_LT_LINKER_BOILERPLATE],
-[m4_require([_LT_DECL_SED])dnl
-ac_outfile=conftest.$ac_objext
-echo "$lt_simple_link_test_code" >conftest.$ac_ext
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_linker_boilerplate=`cat conftest.err`
-$RM -r conftest*
-])# _LT_LINKER_BOILERPLATE
-
-# _LT_REQUIRED_DARWIN_CHECKS
-# -------------------------
-m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
-  case $host_os in
-    rhapsody* | darwin*)
-    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
-    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
-    AC_CHECK_TOOL([LIPO], [lipo], [:])
-    AC_CHECK_TOOL([OTOOL], [otool], [:])
-    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
-    _LT_DECL([], [DSYMUTIL], [1],
-      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
-    _LT_DECL([], [NMEDIT], [1],
-      [Tool to change global to local symbols on Mac OS X])
-    _LT_DECL([], [LIPO], [1],
-      [Tool to manipulate fat objects and archives on Mac OS X])
-    _LT_DECL([], [OTOOL], [1],
-      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
-    _LT_DECL([], [OTOOL64], [1],
-      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
-
-    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
-      [lt_cv_apple_cc_single_mod=no
-      if test -z "${LT_MULTI_MODULE}"; then
-	# By default we will add the -single_module flag. You can override
-	# by either setting the environment variable LT_MULTI_MODULE
-	# non-empty at configure time, or by adding -multi_module to the
-	# link flags.
-	rm -rf libconftest.dylib*
-	echo "int foo(void){return 1;}" > conftest.c
-	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
--dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
-	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
-        _lt_result=$?
-	# If there is a non-empty error log, and "single_module"
-	# appears in it, assume the flag caused a linker warning
-        if test -s conftest.err && $GREP single_module conftest.err; then
-	  cat conftest.err >&AS_MESSAGE_LOG_FD
-	# Otherwise, if the output was created with a 0 exit code from
-	# the compiler, it worked.
-	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
-	  lt_cv_apple_cc_single_mod=yes
-	else
-	  cat conftest.err >&AS_MESSAGE_LOG_FD
-	fi
-	rm -rf libconftest.dylib*
-	rm -f conftest.*
-      fi])
-
-    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
-      [lt_cv_ld_exported_symbols_list],
-      [lt_cv_ld_exported_symbols_list=no
-      save_LDFLAGS=$LDFLAGS
-      echo "_main" > conftest.sym
-      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
-      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
-	[lt_cv_ld_exported_symbols_list=yes],
-	[lt_cv_ld_exported_symbols_list=no])
-	LDFLAGS="$save_LDFLAGS"
-    ])
-
-    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
-      [lt_cv_ld_force_load=no
-      cat > conftest.c << _LT_EOF
-int forced_loaded() { return 2;}
-_LT_EOF
-      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
-      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
-      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
-      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
-      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
-      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
-      cat > conftest.c << _LT_EOF
-int main() { return 0;}
-_LT_EOF
-      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
-      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
-      _lt_result=$?
-      if test -s conftest.err && $GREP force_load conftest.err; then
-	cat conftest.err >&AS_MESSAGE_LOG_FD
-      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
-	lt_cv_ld_force_load=yes
-      else
-	cat conftest.err >&AS_MESSAGE_LOG_FD
-      fi
-        rm -f conftest.err libconftest.a conftest conftest.c
-        rm -rf conftest.dSYM
-    ])
-    case $host_os in
-    rhapsody* | darwin1.[[012]])
-      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
-    darwin1.*)
-      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
-    darwin*) # darwin 5.x on
-      # if running on 10.5 or later, the deployment target defaults
-      # to the OS version, if on x86, and 10.4, the deployment
-      # target defaults to 10.4. Don't you love it?
-      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
-	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
-	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-	10.[[012]]*)
-	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
-	10.*)
-	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-      esac
-    ;;
-  esac
-    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
-      _lt_dar_single_mod='$single_module'
-    fi
-    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
-      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
-    else
-      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
-    fi
-    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
-      _lt_dsymutil='~$DSYMUTIL $lib || :'
-    else
-      _lt_dsymutil=
-    fi
-    ;;
-  esac
-])
-
-
-# _LT_DARWIN_LINKER_FEATURES([TAG])
-# ---------------------------------
-# Checks for linker and compiler features on darwin
-m4_defun([_LT_DARWIN_LINKER_FEATURES],
-[
-  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
-  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
-  _LT_TAGVAR(hardcode_direct, $1)=no
-  _LT_TAGVAR(hardcode_automatic, $1)=yes
-  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
-  if test "$lt_cv_ld_force_load" = "yes"; then
-    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
-    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
-                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
-  else
-    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
-  fi
-  _LT_TAGVAR(link_all_deplibs, $1)=yes
-  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
-  case $cc_basename in
-     ifort*) _lt_dar_can_shared=yes ;;
-     *) _lt_dar_can_shared=$GCC ;;
-  esac
-  if test "$_lt_dar_can_shared" = "yes"; then
-    output_verbose_link_cmd=func_echo_all
-    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
-    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
-    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
-    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
-    m4_if([$1], [CXX],
-[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
-      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
-      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
-    fi
-],[])
-  else
-  _LT_TAGVAR(ld_shlibs, $1)=no
-  fi
-])
-
-# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
-# ----------------------------------
-# Links a minimal program and checks the executable
-# for the system default hardcoded library path. In most cases,
-# this is /usr/lib:/lib, but when the MPI compilers are used
-# the location of the communication and MPI libs are included too.
-# If we don't find anything, use the default library path according
-# to the aix ld manual.
-# Store the results from the different compilers for each TAGNAME.
-# Allow to override them for all tags through lt_cv_aix_libpath.
-m4_defun([_LT_SYS_MODULE_PATH_AIX],
-[m4_require([_LT_DECL_SED])dnl
-if test "${lt_cv_aix_libpath+set}" = set; then
-  aix_libpath=$lt_cv_aix_libpath
-else
-  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
-  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
-  lt_aix_libpath_sed='[
-      /Import File Strings/,/^$/ {
-	  /^0/ {
-	      s/^0  *\([^ ]*\) *$/\1/
-	      p
-	  }
-      }]'
-  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
-  # Check for a 64-bit object if we didn't find anything.
-  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
-    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
-  fi],[])
-  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
-    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
-  fi
-  ])
-  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
-fi
-])# _LT_SYS_MODULE_PATH_AIX
-
-
-# _LT_SHELL_INIT(ARG)
-# -------------------
-m4_define([_LT_SHELL_INIT],
-[m4_divert_text([M4SH-INIT], [$1
-])])# _LT_SHELL_INIT
-
-
-
-# _LT_PROG_ECHO_BACKSLASH
-# -----------------------
-# Find how we can fake an echo command that does not interpret backslash.
-# In particular, with Autoconf 2.60 or later we add some code to the start
-# of the generated configure script which will find a shell with a builtin
-# printf (which we can use as an echo command).
-m4_defun([_LT_PROG_ECHO_BACKSLASH],
-[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
-
-AC_MSG_CHECKING([how to print strings])
-# Test print first, because it will be a builtin if present.
-if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
-   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
-  ECHO='print -r --'
-elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
-  ECHO='printf %s\n'
-else
-  # Use this function as a fallback that always works.
-  func_fallback_echo ()
-  {
-    eval 'cat <<_LTECHO_EOF
-$[]1
-_LTECHO_EOF'
-  }
-  ECHO='func_fallback_echo'
-fi
-
-# func_echo_all arg...
-# Invoke $ECHO with all args, space-separated.
-func_echo_all ()
-{
-    $ECHO "$*" 
-}
-
-case "$ECHO" in
-  printf*) AC_MSG_RESULT([printf]) ;;
-  print*) AC_MSG_RESULT([print -r]) ;;
-  *) AC_MSG_RESULT([cat]) ;;
-esac
-
-m4_ifdef([_AS_DETECT_SUGGESTED],
-[_AS_DETECT_SUGGESTED([
-  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
-    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
-    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
-    PATH=/empty FPATH=/empty; export PATH FPATH
-    test "X`printf %s $ECHO`" = "X$ECHO" \
-      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
-
-_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
-_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
-])# _LT_PROG_ECHO_BACKSLASH
-
-
-# _LT_WITH_SYSROOT
-# ----------------
-AC_DEFUN([_LT_WITH_SYSROOT],
-[AC_MSG_CHECKING([for sysroot])
-AC_ARG_WITH([sysroot],
-[  --with-sysroot[=DIR] Search for dependent libraries within DIR
-                        (or the compiler's sysroot if not specified).],
-[], [with_sysroot=no])
-
-dnl lt_sysroot will always be passed unquoted.  We quote it here
-dnl in case the user passed a directory name.
-lt_sysroot=
-case ${with_sysroot} in #(
- yes)
-   if test "$GCC" = yes; then
-     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
-   fi
-   ;; #(
- /*)
-   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
-   ;; #(
- no|'')
-   ;; #(
- *)
-   AC_MSG_RESULT([${with_sysroot}])
-   AC_MSG_ERROR([The sysroot must be an absolute path.])
-   ;;
-esac
-
- AC_MSG_RESULT([${lt_sysroot:-no}])
-_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
-[dependent libraries, and in which our libraries should be installed.])])
-
-# _LT_ENABLE_LOCK
-# ---------------
-m4_defun([_LT_ENABLE_LOCK],
-[AC_ARG_ENABLE([libtool-lock],
-  [AS_HELP_STRING([--disable-libtool-lock],
-    [avoid locking (might break parallel builds)])])
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
-
-# Some flags need to be propagated to the compiler or linker for good
-# libtool support.
-case $host in
-ia64-*-hpux*)
-  # Find out which ABI we are using.
-  echo 'int i;' > conftest.$ac_ext
-  if AC_TRY_EVAL(ac_compile); then
-    case `/usr/bin/file conftest.$ac_objext` in
-      *ELF-32*)
-	HPUX_IA64_MODE="32"
-	;;
-      *ELF-64*)
-	HPUX_IA64_MODE="64"
-	;;
-    esac
-  fi
-  rm -rf conftest*
-  ;;
-*-*-irix6*)
-  # Find out which ABI we are using.
-  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
-  if AC_TRY_EVAL(ac_compile); then
-    if test "$lt_cv_prog_gnu_ld" = yes; then
-      case `/usr/bin/file conftest.$ac_objext` in
-	*32-bit*)
-	  LD="${LD-ld} -melf32bsmip"
-	  ;;
-	*N32*)
-	  LD="${LD-ld} -melf32bmipn32"
-	  ;;
-	*64-bit*)
-	  LD="${LD-ld} -melf64bmip"
-	;;
-      esac
-    else
-      case `/usr/bin/file conftest.$ac_objext` in
-	*32-bit*)
-	  LD="${LD-ld} -32"
-	  ;;
-	*N32*)
-	  LD="${LD-ld} -n32"
-	  ;;
-	*64-bit*)
-	  LD="${LD-ld} -64"
-	  ;;
-      esac
-    fi
-  fi
-  rm -rf conftest*
-  ;;
-
-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
-s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
-  # Find out which ABI we are using.
-  echo 'int i;' > conftest.$ac_ext
-  if AC_TRY_EVAL(ac_compile); then
-    case `/usr/bin/file conftest.o` in
-      *32-bit*)
-	case $host in
-	  x86_64-*kfreebsd*-gnu)
-	    LD="${LD-ld} -m elf_i386_fbsd"
-	    ;;
-	  x86_64-*linux*)
-	    LD="${LD-ld} -m elf_i386"
-	    ;;
-	  ppc64-*linux*|powerpc64-*linux*)
-	    LD="${LD-ld} -m elf32ppclinux"
-	    ;;
-	  s390x-*linux*)
-	    LD="${LD-ld} -m elf_s390"
-	    ;;
-	  sparc64-*linux*)
-	    LD="${LD-ld} -m elf32_sparc"
-	    ;;
-	esac
-	;;
-      *64-bit*)
-	case $host in
-	  x86_64-*kfreebsd*-gnu)
-	    LD="${LD-ld} -m elf_x86_64_fbsd"
-	    ;;
-	  x86_64-*linux*)
-	    LD="${LD-ld} -m elf_x86_64"
-	    ;;
-	  ppc*-*linux*|powerpc*-*linux*)
-	    LD="${LD-ld} -m elf64ppc"
-	    ;;
-	  s390*-*linux*|s390*-*tpf*)
-	    LD="${LD-ld} -m elf64_s390"
-	    ;;
-	  sparc*-*linux*)
-	    LD="${LD-ld} -m elf64_sparc"
-	    ;;
-	esac
-	;;
-    esac
-  fi
-  rm -rf conftest*
-  ;;
-
-*-*-sco3.2v5*)
-  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
-  SAVE_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS -belf"
-  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
-    [AC_LANG_PUSH(C)
-     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
-     AC_LANG_POP])
-  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
-    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
-    CFLAGS="$SAVE_CFLAGS"
-  fi
-  ;;
-*-*solaris*)
-  # Find out which ABI we are using.
-  echo 'int i;' > conftest.$ac_ext
-  if AC_TRY_EVAL(ac_compile); then
-    case `/usr/bin/file conftest.o` in
-    *64-bit*)
-      case $lt_cv_prog_gnu_ld in
-      yes*)
-        case $host in
-        i?86-*-solaris*)
-          LD="${LD-ld} -m elf_x86_64"
-          ;;
-        sparc*-*-solaris*)
-          LD="${LD-ld} -m elf64_sparc"
-          ;;
-        esac
-        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
-        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
-          LD="${LD-ld}_sol2"
-        fi
-        ;;
-      *)
-	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
-	  LD="${LD-ld} -64"
-	fi
-	;;
-      esac
-      ;;
-    esac
-  fi
-  rm -rf conftest*
-  ;;
-esac
-
-need_locks="$enable_libtool_lock"
-])# _LT_ENABLE_LOCK
-
-
-# _LT_PROG_AR
-# -----------
-m4_defun([_LT_PROG_AR],
-[AC_CHECK_TOOLS(AR, [ar], false)
-: ${AR=ar}
-: ${AR_FLAGS=cru}
-_LT_DECL([], [AR], [1], [The archiver])
-_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
-
-AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
-  [lt_cv_ar_at_file=no
-   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
-     [echo conftest.$ac_objext > conftest.lst
-      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
-      AC_TRY_EVAL([lt_ar_try])
-      if test "$ac_status" -eq 0; then
-	# Ensure the archiver fails upon bogus file names.
-	rm -f conftest.$ac_objext libconftest.a
-	AC_TRY_EVAL([lt_ar_try])
-	if test "$ac_status" -ne 0; then
-          lt_cv_ar_at_file=@
-        fi
-      fi
-      rm -f conftest.* libconftest.a
-     ])
-  ])
-
-if test "x$lt_cv_ar_at_file" = xno; then
-  archiver_list_spec=
-else
-  archiver_list_spec=$lt_cv_ar_at_file
-fi
-_LT_DECL([], [archiver_list_spec], [1],
-  [How to feed a file listing to the archiver])
-])# _LT_PROG_AR
-
-
-# _LT_CMD_OLD_ARCHIVE
-# -------------------
-m4_defun([_LT_CMD_OLD_ARCHIVE],
-[_LT_PROG_AR
-
-AC_CHECK_TOOL(STRIP, strip, :)
-test -z "$STRIP" && STRIP=:
-_LT_DECL([], [STRIP], [1], [A symbol stripping program])
-
-AC_CHECK_TOOL(RANLIB, ranlib, :)
-test -z "$RANLIB" && RANLIB=:
-_LT_DECL([], [RANLIB], [1],
-    [Commands used to install an old-style archive])
-
-# Determine commands to create old-style static archives.
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
-old_postinstall_cmds='chmod 644 $oldlib'
-old_postuninstall_cmds=
-
-if test -n "$RANLIB"; then
-  case $host_os in
-  openbsd*)
-    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
-    ;;
-  *)
-    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
-    ;;
-  esac
-  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
-fi
-
-case $host_os in
-  darwin*)
-    lock_old_archive_extraction=yes ;;
-  *)
-    lock_old_archive_extraction=no ;;
-esac
-_LT_DECL([], [old_postinstall_cmds], [2])
-_LT_DECL([], [old_postuninstall_cmds], [2])
-_LT_TAGDECL([], [old_archive_cmds], [2],
-    [Commands used to build an old-style archive])
-_LT_DECL([], [lock_old_archive_extraction], [0],
-    [Whether to use a lock for old archive extraction])
-])# _LT_CMD_OLD_ARCHIVE
-
-
-# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
-#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
-# ----------------------------------------------------------------
-# Check whether the given compiler option works
-AC_DEFUN([_LT_COMPILER_OPTION],
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
-m4_require([_LT_DECL_SED])dnl
-AC_CACHE_CHECK([$1], [$2],
-  [$2=no
-   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
-   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
-   lt_compiler_flag="$3"
-   # Insert the option either (1) after the last *FLAGS variable, or
-   # (2) before a word containing "conftest.", or (3) at the end.
-   # Note that $ac_compile itself does not contain backslashes and begins
-   # with a dollar sign (not a hyphen), so the echo should work correctly.
-   # The option is referenced via a variable to avoid confusing sed.
-   lt_compile=`echo "$ac_compile" | $SED \
-   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
-   -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
-   (eval "$lt_compile" 2>conftest.err)
-   ac_status=$?
-   cat conftest.err >&AS_MESSAGE_LOG_FD
-   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
-   if (exit $ac_status) && test -s "$ac_outfile"; then
-     # The compiler can only warn and ignore the option if not recognized
-     # So say no if there are warnings other than the usual output.
-     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
-     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
-     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
-       $2=yes
-     fi
-   fi
-   $RM conftest*
-])
-
-if test x"[$]$2" = xyes; then
-    m4_if([$5], , :, [$5])
-else
-    m4_if([$6], , :, [$6])
-fi
-])# _LT_COMPILER_OPTION
-
-# Old name:
-AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
-
-
-# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
-#                  [ACTION-SUCCESS], [ACTION-FAILURE])
-# ----------------------------------------------------
-# Check whether the given linker option works
-AC_DEFUN([_LT_LINKER_OPTION],
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
-m4_require([_LT_DECL_SED])dnl
-AC_CACHE_CHECK([$1], [$2],
-  [$2=no
-   save_LDFLAGS="$LDFLAGS"
-   LDFLAGS="$LDFLAGS $3"
-   echo "$lt_simple_link_test_code" > conftest.$ac_ext
-   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
-     # The linker can only warn and ignore the option if not recognized
-     # So say no if there are warnings
-     if test -s conftest.err; then
-       # Append any errors to the config.log.
-       cat conftest.err 1>&AS_MESSAGE_LOG_FD
-       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
-       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
-       if diff conftest.exp conftest.er2 >/dev/null; then
-         $2=yes
-       fi
-     else
-       $2=yes
-     fi
-   fi
-   $RM -r conftest*
-   LDFLAGS="$save_LDFLAGS"
-])
-
-if test x"[$]$2" = xyes; then
-    m4_if([$4], , :, [$4])
-else
-    m4_if([$5], , :, [$5])
-fi
-])# _LT_LINKER_OPTION
-
-# Old name:
-AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
-
-
-# LT_CMD_MAX_LEN
-#---------------
-AC_DEFUN([LT_CMD_MAX_LEN],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-# find the maximum length of command line arguments
-AC_MSG_CHECKING([the maximum length of command line arguments])
-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
-  i=0
-  teststring="ABCD"
-
-  case $build_os in
-  msdosdjgpp*)
-    # On DJGPP, this test can blow up pretty badly due to problems in libc
-    # (any single argument exceeding 2000 bytes causes a buffer overrun
-    # during glob expansion).  Even if it were fixed, the result of this
-    # check would be larger than it should be.
-    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
-    ;;
-
-  gnu*)
-    # Under GNU Hurd, this test is not required because there is
-    # no limit to the length of command line arguments.
-    # Libtool will interpret -1 as no limit whatsoever
-    lt_cv_sys_max_cmd_len=-1;
-    ;;
-
-  cygwin* | mingw* | cegcc*)
-    # On Win9x/ME, this test blows up -- it succeeds, but takes
-    # about 5 minutes as the teststring grows exponentially.
-    # Worse, since 9x/ME are not pre-emptively multitasking,
-    # you end up with a "frozen" computer, even though with patience
-    # the test eventually succeeds (with a max line length of 256k).
-    # Instead, let's just punt: use the minimum linelength reported by
-    # all of the supported platforms: 8192 (on NT/2K/XP).
-    lt_cv_sys_max_cmd_len=8192;
-    ;;
-
-  mint*)
-    # On MiNT this can take a long time and run out of memory.
-    lt_cv_sys_max_cmd_len=8192;
-    ;;
-
-  amigaos*)
-    # On AmigaOS with pdksh, this test takes hours, literally.
-    # So we just punt and use a minimum line length of 8192.
-    lt_cv_sys_max_cmd_len=8192;
-    ;;
-
-  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
-    # This has been around since 386BSD, at least.  Likely further.
-    if test -x /sbin/sysctl; then
-      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
-    elif test -x /usr/sbin/sysctl; then
-      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
-    else
-      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
-    fi
-    # And add a safety zone
-    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
-    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
-    ;;
-
-  interix*)
-    # We know the value 262144 and hardcode it with a safety zone (like BSD)
-    lt_cv_sys_max_cmd_len=196608
-    ;;
-
-  os2*)
-    # The test takes a long time on OS/2.
-    lt_cv_sys_max_cmd_len=8192
-    ;;
-
-  osf*)
-    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
-    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
-    # nice to cause kernel panics so lets avoid the loop below.
-    # First set a reasonable default.
-    lt_cv_sys_max_cmd_len=16384
-    #
-    if test -x /sbin/sysconfig; then
-      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
-        *1*) lt_cv_sys_max_cmd_len=-1 ;;
-      esac
-    fi
-    ;;
-  sco3.2v5*)
-    lt_cv_sys_max_cmd_len=102400
-    ;;
-  sysv5* | sco5v6* | sysv4.2uw2*)
-    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
-    if test -n "$kargmax"; then
-      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
-    else
-      lt_cv_sys_max_cmd_len=32768
-    fi
-    ;;
-  *)
-    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
-    if test -n "$lt_cv_sys_max_cmd_len"; then
-      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
-      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
-    else
-      # Make teststring a little bigger before we do anything with it.
-      # a 1K string should be a reasonable start.
-      for i in 1 2 3 4 5 6 7 8 ; do
-        teststring=$teststring$teststring
-      done
-      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
-      # If test is not a shell built-in, we'll probably end up computing a
-      # maximum length that is only half of the actual maximum length, but
-      # we can't tell.
-      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
-	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
-	      test $i != 17 # 1/2 MB should be enough
-      do
-        i=`expr $i + 1`
-        teststring=$teststring$teststring
-      done
-      # Only check the string length outside the loop.
-      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
-      teststring=
-      # Add a significant safety factor because C++ compilers can tack on
-      # massive amounts of additional arguments before passing them to the
-      # linker.  It appears as though 1/2 is a usable value.
-      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
-    fi
-    ;;
-  esac
-])
-if test -n $lt_cv_sys_max_cmd_len ; then
-  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
-else
-  AC_MSG_RESULT(none)
-fi
-max_cmd_len=$lt_cv_sys_max_cmd_len
-_LT_DECL([], [max_cmd_len], [0],
-    [What is the maximum length of a command?])
-])# LT_CMD_MAX_LEN
-
-# Old name:
-AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
-
-
-# _LT_HEADER_DLFCN
-# ----------------
-m4_defun([_LT_HEADER_DLFCN],
-[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
-])# _LT_HEADER_DLFCN
-
-
-# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
-#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
-# ----------------------------------------------------------------
-m4_defun([_LT_TRY_DLOPEN_SELF],
-[m4_require([_LT_HEADER_DLFCN])dnl
-if test "$cross_compiling" = yes; then :
-  [$4]
-else
-  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
-  lt_status=$lt_dlunknown
-  cat > conftest.$ac_ext <<_LT_EOF
-[#line $LINENO "configure"
-#include "confdefs.h"
-
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-
-#include <stdio.h>
-
-#ifdef RTLD_GLOBAL
-#  define LT_DLGLOBAL		RTLD_GLOBAL
-#else
-#  ifdef DL_GLOBAL
-#    define LT_DLGLOBAL		DL_GLOBAL
-#  else
-#    define LT_DLGLOBAL		0
-#  endif
-#endif
-
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
-   find out it does not work in some platform. */
-#ifndef LT_DLLAZY_OR_NOW
-#  ifdef RTLD_LAZY
-#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
-#  else
-#    ifdef DL_LAZY
-#      define LT_DLLAZY_OR_NOW		DL_LAZY
-#    else
-#      ifdef RTLD_NOW
-#        define LT_DLLAZY_OR_NOW	RTLD_NOW
-#      else
-#        ifdef DL_NOW
-#          define LT_DLLAZY_OR_NOW	DL_NOW
-#        else
-#          define LT_DLLAZY_OR_NOW	0
-#        endif
-#      endif
-#    endif
-#  endif
-#endif
-
-/* When -fvisbility=hidden is used, assume the code has been annotated
-   correspondingly for the symbols needed.  */
-#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
-int fnord () __attribute__((visibility("default")));
-#endif
-
-int fnord () { return 42; }
-int main ()
-{
-  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
-  int status = $lt_dlunknown;
-
-  if (self)
-    {
-      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
-      else
-        {
-	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
-          else puts (dlerror ());
-	}
-      /* dlclose (self); */
-    }
-  else
-    puts (dlerror ());
-
-  return status;
-}]
-_LT_EOF
-  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
-    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
-    lt_status=$?
-    case x$lt_status in
-      x$lt_dlno_uscore) $1 ;;
-      x$lt_dlneed_uscore) $2 ;;
-      x$lt_dlunknown|x*) $3 ;;
-    esac
-  else :
-    # compilation failed
-    $3
-  fi
-fi
-rm -fr conftest*
-])# _LT_TRY_DLOPEN_SELF
-
-
-# LT_SYS_DLOPEN_SELF
-# ------------------
-AC_DEFUN([LT_SYS_DLOPEN_SELF],
-[m4_require([_LT_HEADER_DLFCN])dnl
-if test "x$enable_dlopen" != xyes; then
-  enable_dlopen=unknown
-  enable_dlopen_self=unknown
-  enable_dlopen_self_static=unknown
-else
-  lt_cv_dlopen=no
-  lt_cv_dlopen_libs=
-
-  case $host_os in
-  beos*)
-    lt_cv_dlopen="load_add_on"
-    lt_cv_dlopen_libs=
-    lt_cv_dlopen_self=yes
-    ;;
-
-  mingw* | pw32* | cegcc*)
-    lt_cv_dlopen="LoadLibrary"
-    lt_cv_dlopen_libs=
-    ;;
-
-  cygwin*)
-    lt_cv_dlopen="dlopen"
-    lt_cv_dlopen_libs=
-    ;;
-
-  darwin*)
-  # if libdl is installed we need to link against it
-    AC_CHECK_LIB([dl], [dlopen],
-		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
-    lt_cv_dlopen="dyld"
-    lt_cv_dlopen_libs=
-    lt_cv_dlopen_self=yes
-    ])
-    ;;
-
-  *)
-    AC_CHECK_FUNC([shl_load],
-	  [lt_cv_dlopen="shl_load"],
-      [AC_CHECK_LIB([dld], [shl_load],
-	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
-	[AC_CHECK_FUNC([dlopen],
-	      [lt_cv_dlopen="dlopen"],
-	  [AC_CHECK_LIB([dl], [dlopen],
-		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
-	    [AC_CHECK_LIB([svld], [dlopen],
-		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
-	      [AC_CHECK_LIB([dld], [dld_link],
-		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
-	      ])
-	    ])
-	  ])
-	])
-      ])
-    ;;
-  esac
-
-  if test "x$lt_cv_dlopen" != xno; then
-    enable_dlopen=yes
-  else
-    enable_dlopen=no
-  fi
-
-  case $lt_cv_dlopen in
-  dlopen)
-    save_CPPFLAGS="$CPPFLAGS"
-    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
-
-    save_LDFLAGS="$LDFLAGS"
-    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
-
-    save_LIBS="$LIBS"
-    LIBS="$lt_cv_dlopen_libs $LIBS"
-
-    AC_CACHE_CHECK([whether a program can dlopen itself],
-	  lt_cv_dlopen_self, [dnl
-	  _LT_TRY_DLOPEN_SELF(
-	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
-	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
-    ])
-
-    if test "x$lt_cv_dlopen_self" = xyes; then
-      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
-      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
-	  lt_cv_dlopen_self_static, [dnl
-	  _LT_TRY_DLOPEN_SELF(
-	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
-	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
-      ])
-    fi
-
-    CPPFLAGS="$save_CPPFLAGS"
-    LDFLAGS="$save_LDFLAGS"
-    LIBS="$save_LIBS"
-    ;;
-  esac
-
-  case $lt_cv_dlopen_self in
-  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
-  *) enable_dlopen_self=unknown ;;
-  esac
-
-  case $lt_cv_dlopen_self_static in
-  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
-  *) enable_dlopen_self_static=unknown ;;
-  esac
-fi
-_LT_DECL([dlopen_support], [enable_dlopen], [0],
-	 [Whether dlopen is supported])
-_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
-	 [Whether dlopen of programs is supported])
-_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
-	 [Whether dlopen of statically linked programs is supported])
-])# LT_SYS_DLOPEN_SELF
-
-# Old name:
-AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
-
-
-# _LT_COMPILER_C_O([TAGNAME])
-# ---------------------------
-# Check to see if options -c and -o are simultaneously supported by compiler.
-# This macro does not hard code the compiler like AC_PROG_CC_C_O.
-m4_defun([_LT_COMPILER_C_O],
-[m4_require([_LT_DECL_SED])dnl
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
-m4_require([_LT_TAG_COMPILER])dnl
-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
-  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
-  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
-   $RM -r conftest 2>/dev/null
-   mkdir conftest
-   cd conftest
-   mkdir out
-   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
-
-   lt_compiler_flag="-o out/conftest2.$ac_objext"
-   # Insert the option either (1) after the last *FLAGS variable, or
-   # (2) before a word containing "conftest.", or (3) at the end.
-   # Note that $ac_compile itself does not contain backslashes and begins
-   # with a dollar sign (not a hyphen), so the echo should work correctly.
-   lt_compile=`echo "$ac_compile" | $SED \
-   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
-   -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
-   (eval "$lt_compile" 2>out/conftest.err)
-   ac_status=$?
-   cat out/conftest.err >&AS_MESSAGE_LOG_FD
-   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
-   if (exit $ac_status) && test -s out/conftest2.$ac_objext
-   then
-     # The compiler can only warn and ignore the option if not recognized
-     # So say no if there are warnings
-     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
-     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
-     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
-       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
-     fi
-   fi
-   chmod u+w . 2>&AS_MESSAGE_LOG_FD
-   $RM conftest*
-   # SGI C++ compiler will create directory out/ii_files/ for
-   # template instantiation
-   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
-   $RM out/* && rmdir out
-   cd ..
-   $RM -r conftest
-   $RM conftest*
-])
-_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
-	[Does compiler simultaneously support -c and -o options?])
-])# _LT_COMPILER_C_O
-
-
-# _LT_COMPILER_FILE_LOCKS([TAGNAME])
-# ----------------------------------
-# Check to see if we can do hard links to lock some files if needed
-m4_defun([_LT_COMPILER_FILE_LOCKS],
-[m4_require([_LT_ENABLE_LOCK])dnl
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
-_LT_COMPILER_C_O([$1])
-
-hard_links="nottested"
-if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
-  # do not overwrite the value of need_locks provided by the user
-  AC_MSG_CHECKING([if we can lock with hard links])
-  hard_links=yes
-  $RM conftest*
-  ln conftest.a conftest.b 2>/dev/null && hard_links=no
-  touch conftest.a
-  ln conftest.a conftest.b 2>&5 || hard_links=no
-  ln conftest.a conftest.b 2>/dev/null && hard_links=no
-  AC_MSG_RESULT([$hard_links])
-  if test "$hard_links" = no; then
-    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
-    need_locks=warn
-  fi
-else
-  need_locks=no
-fi
-_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
-])# _LT_COMPILER_FILE_LOCKS
-
-
-# _LT_CHECK_OBJDIR
-# ----------------
-m4_defun([_LT_CHECK_OBJDIR],
-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
-[rm -f .libs 2>/dev/null
-mkdir .libs 2>/dev/null
-if test -d .libs; then
-  lt_cv_objdir=.libs
-else
-  # MS-DOS does not allow filenames that begin with a dot.
-  lt_cv_objdir=_libs
-fi
-rmdir .libs 2>/dev/null])
-objdir=$lt_cv_objdir
-_LT_DECL([], [objdir], [0],
-         [The name of the directory that contains temporary libtool files])dnl
-m4_pattern_allow([LT_OBJDIR])dnl
-AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
-  [Define to the sub-directory in which libtool stores uninstalled libraries.])
-])# _LT_CHECK_OBJDIR
-
-
-# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
-# --------------------------------------
-# Check hardcoding attributes.
-m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
-[AC_MSG_CHECKING([how to hardcode library paths into programs])
-_LT_TAGVAR(hardcode_action, $1)=
-if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
-   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
-   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
-
-  # We can hardcode non-existent directories.
-  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
-     # If the only mechanism to avoid hardcoding is shlibpath_var, we
-     # have to relink, otherwise we might link with an installed library
-     # when we should be linking with a yet-to-be-installed one
-     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
-     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
-    # Linking always hardcodes the temporary library directory.
-    _LT_TAGVAR(hardcode_action, $1)=relink
-  else
-    # We can link without hardcoding, and we can hardcode nonexisting dirs.
-    _LT_TAGVAR(hardcode_action, $1)=immediate
-  fi
-else
-  # We cannot hardcode anything, or else we can only hardcode existing
-  # directories.
-  _LT_TAGVAR(hardcode_action, $1)=unsupported
-fi
-AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
-
-if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
-   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
-  # Fast installation is not supported
-  enable_fast_install=no
-elif test "$shlibpath_overrides_runpath" = yes ||
-     test "$enable_shared" = no; then
-  # Fast installation is not necessary
-  enable_fast_install=needless
-fi
-_LT_TAGDECL([], [hardcode_action], [0],
-    [How to hardcode a shared library path into an executable])
-])# _LT_LINKER_HARDCODE_LIBPATH
-
-
-# _LT_CMD_STRIPLIB
-# ----------------
-m4_defun([_LT_CMD_STRIPLIB],
-[m4_require([_LT_DECL_EGREP])
-striplib=
-old_striplib=
-AC_MSG_CHECKING([whether stripping libraries is possible])
-if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
-  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
-  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
-  AC_MSG_RESULT([yes])
-else
-# FIXME - insert some real tests, host_os isn't really good enough
-  case $host_os in
-  darwin*)
-    if test -n "$STRIP" ; then
-      striplib="$STRIP -x"
-      old_striplib="$STRIP -S"
-      AC_MSG_RESULT([yes])
-    else
-      AC_MSG_RESULT([no])
-    fi
-    ;;
-  *)
-    AC_MSG_RESULT([no])
-    ;;
-  esac
-fi
-_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
-_LT_DECL([], [striplib], [1])
-])# _LT_CMD_STRIPLIB
-
-
-# _LT_SYS_DYNAMIC_LINKER([TAG])
-# -----------------------------
-# PORTME Fill in your ld.so characteristics
-m4_defun([_LT_SYS_DYNAMIC_LINKER],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-m4_require([_LT_DECL_EGREP])dnl
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
-m4_require([_LT_DECL_OBJDUMP])dnl
-m4_require([_LT_DECL_SED])dnl
-m4_require([_LT_CHECK_SHELL_FEATURES])dnl
-AC_MSG_CHECKING([dynamic linker characteristics])
-m4_if([$1],
-	[], [
-if test "$GCC" = yes; then
-  case $host_os in
-    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
-    *) lt_awk_arg="/^libraries:/" ;;
-  esac
-  case $host_os in
-    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
-    *) lt_sed_strip_eq="s,=/,/,g" ;;
-  esac
-  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
-  case $lt_search_path_spec in
-  *\;*)
-    # if the path contains ";" then we assume it to be the separator
-    # otherwise default to the standard path separator (i.e. ":") - it is
-    # assumed that no part of a normal pathname contains ";" but that should
-    # okay in the real world where ";" in dirpaths is itself problematic.
-    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
-    ;;
-  *)
-    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
-    ;;
-  esac
-  # Ok, now we have the path, separated by spaces, we can step through it
-  # and add multilib dir if necessary.
-  lt_tmp_lt_search_path_spec=
-  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
-  for lt_sys_path in $lt_search_path_spec; do
-    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
-      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
-    else
-      test -d "$lt_sys_path" && \
-	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
-    fi
-  done
-  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
-BEGIN {RS=" "; FS="/|\n";} {
-  lt_foo="";
-  lt_count=0;
-  for (lt_i = NF; lt_i > 0; lt_i--) {
-    if ($lt_i != "" && $lt_i != ".") {
-      if ($lt_i == "..") {
-        lt_count++;
-      } else {
-        if (lt_count == 0) {
-          lt_foo="/" $lt_i lt_foo;
-        } else {
-          lt_count--;
-        }
-      }
-    }
-  }
-  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
-  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
-}'`
-  # AWK program above erroneously prepends '/' to C:/dos/paths
-  # for these hosts.
-  case $host_os in
-    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
-      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
-  esac
-  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
-else
-  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
-fi])
-library_names_spec=
-libname_spec='lib$name'
-soname_spec=
-shrext_cmds=".so"
-postinstall_cmds=
-postuninstall_cmds=
-finish_cmds=
-finish_eval=
-shlibpath_var=
-shlibpath_overrides_runpath=unknown
-version_type=none
-dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
-need_lib_prefix=unknown
-hardcode_into_libs=no
-
-# when you set need_version to no, make sure it does not cause -set_version
-# flags to be left without arguments
-need_version=unknown
-
-case $host_os in
-aix3*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
-  shlibpath_var=LIBPATH
-
-  # AIX 3 has no versioning support, so we append a major version to the name.
-  soname_spec='${libname}${release}${shared_ext}$major'
-  ;;
-
-aix[[4-9]]*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  hardcode_into_libs=yes
-  if test "$host_cpu" = ia64; then
-    # AIX 5 supports IA64
-    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
-    shlibpath_var=LD_LIBRARY_PATH
-  else
-    # With GCC up to 2.95.x, collect2 would create an import file
-    # for dependence libraries.  The import file would start with
-    # the line `#! .'.  This would cause the generated library to
-    # depend on `.', always an invalid library.  This was fixed in
-    # development snapshots of GCC prior to 3.0.
-    case $host_os in
-      aix4 | aix4.[[01]] | aix4.[[01]].*)
-      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
-	   echo ' yes '
-	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
-	:
-      else
-	can_build_shared=no
-      fi
-      ;;
-    esac
-    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
-    # soname into executable. Probably we can add versioning support to
-    # collect2, so additional links can be useful in future.
-    if test "$aix_use_runtimelinking" = yes; then
-      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
-      # instead of lib<name>.a to let people know that these are not
-      # typical AIX shared libraries.
-      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-    else
-      # We preserve .a as extension for shared libraries through AIX4.2
-      # and later when we are not doing run time linking.
-      library_names_spec='${libname}${release}.a $libname.a'
-      soname_spec='${libname}${release}${shared_ext}$major'
-    fi
-    shlibpath_var=LIBPATH
-  fi
-  ;;
-
-amigaos*)
-  case $host_cpu in
-  powerpc)
-    # Since July 2007 AmigaOS4 officially supports .so libraries.
-    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-    ;;
-  m68k)
-    library_names_spec='$libname.ixlibrary $libname.a'
-    # Create ${libname}_ixlibrary.a entries in /sys/libs.
-    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
-    ;;
-  esac
-  ;;
-
-beos*)
-  library_names_spec='${libname}${shared_ext}'
-  dynamic_linker="$host_os ld.so"
-  shlibpath_var=LIBRARY_PATH
-  ;;
-
-bsdi[[45]]*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
-  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
-  # the default ld.so.conf also contains /usr/contrib/lib and
-  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
-  # libtool to hard-code these into programs
-  ;;
-
-cygwin* | mingw* | pw32* | cegcc*)
-  version_type=windows
-  shrext_cmds=".dll"
-  need_version=no
-  need_lib_prefix=no
-
-  case $GCC,$cc_basename in
-  yes,*)
-    # gcc
-    library_names_spec='$libname.dll.a'
-    # DLL is installed to $(libdir)/../bin by postinstall_cmds
-    postinstall_cmds='base_file=`basename \${file}`~
-      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
-      dldir=$destdir/`dirname \$dlpath`~
-      test -d \$dldir || mkdir -p \$dldir~
-      $install_prog $dir/$dlname \$dldir/$dlname~
-      chmod a+x \$dldir/$dlname~
-      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
-        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
-      fi'
-    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
-      dlpath=$dir/\$dldll~
-       $RM \$dlpath'
-    shlibpath_overrides_runpath=yes
-
-    case $host_os in
-    cygwin*)
-      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
-      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
-m4_if([$1], [],[
-      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
-      ;;
-    mingw* | cegcc*)
-      # MinGW DLLs use traditional 'lib' prefix
-      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
-      ;;
-    pw32*)
-      # pw32 DLLs use 'pw' prefix rather than 'lib'
-      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
-      ;;
-    esac
-    dynamic_linker='Win32 ld.exe'
-    ;;
-
-  *,cl*)
-    # Native MSVC
-    libname_spec='$name'
-    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
-    library_names_spec='${libname}.dll.lib'
-
-    case $build_os in
-    mingw*)
-      sys_lib_search_path_spec=
-      lt_save_ifs=$IFS
-      IFS=';'
-      for lt_path in $LIB
-      do
-        IFS=$lt_save_ifs
-        # Let DOS variable expansion print the short 8.3 style file name.
-        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
-        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
-      done
-      IFS=$lt_save_ifs
-      # Convert to MSYS style.
-      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
-      ;;
-    cygwin*)
-      # Convert to unix form, then to dos form, then back to unix form
-      # but this time dos style (no spaces!) so that the unix form looks
-      # like /cygdrive/c/PROGRA~1:/cygdr...
-      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
-      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
-      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
-      ;;
-    *)
-      sys_lib_search_path_spec="$LIB"
-      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
-        # It is most probably a Windows format PATH.
-        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
-      else
-        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
-      fi
-      # FIXME: find the short name or the path components, as spaces are
-      # common. (e.g. "Program Files" -> "PROGRA~1")
-      ;;
-    esac
-
-    # DLL is installed to $(libdir)/../bin by postinstall_cmds
-    postinstall_cmds='base_file=`basename \${file}`~
-      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
-      dldir=$destdir/`dirname \$dlpath`~
-      test -d \$dldir || mkdir -p \$dldir~
-      $install_prog $dir/$dlname \$dldir/$dlname'
-    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
-      dlpath=$dir/\$dldll~
-       $RM \$dlpath'
-    shlibpath_overrides_runpath=yes
-    dynamic_linker='Win32 link.exe'
-    ;;
-
-  *)
-    # Assume MSVC wrapper
-    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
-    dynamic_linker='Win32 ld.exe'
-    ;;
-  esac
-  # FIXME: first we should search . and the directory the executable is in
-  shlibpath_var=PATH
-  ;;
-
-darwin* | rhapsody*)
-  dynamic_linker="$host_os dyld"
-  version_type=darwin
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
-  soname_spec='${libname}${release}${major}$shared_ext'
-  shlibpath_overrides_runpath=yes
-  shlibpath_var=DYLD_LIBRARY_PATH
-  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
-m4_if([$1], [],[
-  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
-  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
-  ;;
-
-dgux*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  ;;
-
-freebsd* | dragonfly*)
-  # DragonFly does not have aout.  When/if they implement a new
-  # versioning mechanism, adjust this.
-  if test -x /usr/bin/objformat; then
-    objformat=`/usr/bin/objformat`
-  else
-    case $host_os in
-    freebsd[[23]].*) objformat=aout ;;
-    *) objformat=elf ;;
-    esac
-  fi
-  version_type=freebsd-$objformat
-  case $version_type in
-    freebsd-elf*)
-      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
-      need_version=no
-      need_lib_prefix=no
-      ;;
-    freebsd-*)
-      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
-      need_version=yes
-      ;;
-  esac
-  shlibpath_var=LD_LIBRARY_PATH
-  case $host_os in
-  freebsd2.*)
-    shlibpath_overrides_runpath=yes
-    ;;
-  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
-    shlibpath_overrides_runpath=yes
-    hardcode_into_libs=yes
-    ;;
-  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
-  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
-    shlibpath_overrides_runpath=no
-    hardcode_into_libs=yes
-    ;;
-  *) # from 4.6 on, and DragonFly
-    shlibpath_overrides_runpath=yes
-    hardcode_into_libs=yes
-    ;;
-  esac
-  ;;
-
-gnu*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  ;;
-
-haiku*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  dynamic_linker="$host_os runtime_loader"
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
-  hardcode_into_libs=yes
-  ;;
-
-hpux9* | hpux10* | hpux11*)
-  # Give a soname corresponding to the major version so that dld.sl refuses to
-  # link against other versions.
-  version_type=sunos
-  need_lib_prefix=no
-  need_version=no
-  case $host_cpu in
-  ia64*)
-    shrext_cmds='.so'
-    hardcode_into_libs=yes
-    dynamic_linker="$host_os dld.so"
-    shlibpath_var=LD_LIBRARY_PATH
-    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-    soname_spec='${libname}${release}${shared_ext}$major'
-    if test "X$HPUX_IA64_MODE" = X32; then
-      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
-    else
-      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
-    fi
-    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
-    ;;
-  hppa*64*)
-    shrext_cmds='.sl'
-    hardcode_into_libs=yes
-    dynamic_linker="$host_os dld.sl"
-    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
-    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-    soname_spec='${libname}${release}${shared_ext}$major'
-    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
-    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
-    ;;
-  *)
-    shrext_cmds='.sl'
-    dynamic_linker="$host_os dld.sl"
-    shlibpath_var=SHLIB_PATH
-    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-    soname_spec='${libname}${release}${shared_ext}$major'
-    ;;
-  esac
-  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
-  postinstall_cmds='chmod 555 $lib'
-  # or fails outright, so override atomically:
-  install_override_mode=555
-  ;;
-
-interix[[3-9]]*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  ;;
-
-irix5* | irix6* | nonstopux*)
-  case $host_os in
-    nonstopux*) version_type=nonstopux ;;
-    *)
-	if test "$lt_cv_prog_gnu_ld" = yes; then
-		version_type=linux # correct to gnu/linux during the next big refactor
-	else
-		version_type=irix
-	fi ;;
-  esac
-  need_lib_prefix=no
-  need_version=no
-  soname_spec='${libname}${release}${shared_ext}$major'
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
-  case $host_os in
-  irix5* | nonstopux*)
-    libsuff= shlibsuff=
-    ;;
-  *)
-    case $LD in # libtool.m4 will add one of these switches to LD
-    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
-      libsuff= shlibsuff= libmagic=32-bit;;
-    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
-      libsuff=32 shlibsuff=N32 libmagic=N32;;
-    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
-      libsuff=64 shlibsuff=64 libmagic=64-bit;;
-    *) libsuff= shlibsuff= libmagic=never-match;;
-    esac
-    ;;
-  esac
-  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
-  shlibpath_overrides_runpath=no
-  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
-  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
-  hardcode_into_libs=yes
-  ;;
-
-# No shared lib support for Linux oldld, aout, or coff.
-linux*oldld* | linux*aout* | linux*coff*)
-  dynamic_linker=no
-  ;;
-
-# This must be glibc/ELF.
-linux* | k*bsd*-gnu | kopensolaris*-gnu)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-
-  # Some binutils ld are patched to set DT_RUNPATH
-  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
-    [lt_cv_shlibpath_overrides_runpath=no
-    save_LDFLAGS=$LDFLAGS
-    save_libdir=$libdir
-    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
-	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
-    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
-      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
-	 [lt_cv_shlibpath_overrides_runpath=yes])])
-    LDFLAGS=$save_LDFLAGS
-    libdir=$save_libdir
-    ])
-  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
-
-  # This implies no fast_install, which is unacceptable.
-  # Some rework will be needed to allow for fast_install
-  # before this can be enabled.
-  hardcode_into_libs=yes
-
-  # Add ABI-specific directories to the system library path.
-  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
-
-  # Append ld.so.conf contents to the search path
-  if test -f /etc/ld.so.conf; then
-    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
-    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
-
-  fi
-
-  # We used to test for /lib/ld.so.1 and disable shared libraries on
-  # powerpc, because MkLinux only supported shared libraries with the
-  # GNU dynamic linker.  Since this was broken with cross compilers,
-  # most powerpc-linux boxes support dynamic linking these days and
-  # people can always --disable-shared, the test was removed, and we
-  # assume the GNU/Linux dynamic linker is in use.
-  dynamic_linker='GNU/Linux ld.so'
-  ;;
-
-netbsd*)
-  version_type=sunos
-  need_lib_prefix=no
-  need_version=no
-  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
-    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
-    dynamic_linker='NetBSD (a.out) ld.so'
-  else
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
-    soname_spec='${libname}${release}${shared_ext}$major'
-    dynamic_linker='NetBSD ld.elf_so'
-  fi
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  hardcode_into_libs=yes
-  ;;
-
-newsos6)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  ;;
-
-*nto* | *qnx*)
-  version_type=qnx
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  dynamic_linker='ldqnx.so'
-  ;;
-
-openbsd*)
-  version_type=sunos
-  sys_lib_dlsearch_path_spec="/usr/lib"
-  need_lib_prefix=no
-  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
-  case $host_os in
-    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
-    *)				need_version=no  ;;
-  esac
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-    case $host_os in
-      openbsd2.[[89]] | openbsd2.[[89]].*)
-	shlibpath_overrides_runpath=no
-	;;
-      *)
-	shlibpath_overrides_runpath=yes
-	;;
-      esac
-  else
-    shlibpath_overrides_runpath=yes
-  fi
-  ;;
-
-os2*)
-  libname_spec='$name'
-  shrext_cmds=".dll"
-  need_lib_prefix=no
-  library_names_spec='$libname${shared_ext} $libname.a'
-  dynamic_linker='OS/2 ld.exe'
-  shlibpath_var=LIBPATH
-  ;;
-
-osf3* | osf4* | osf5*)
-  version_type=osf
-  need_lib_prefix=no
-  need_version=no
-  soname_spec='${libname}${release}${shared_ext}$major'
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  shlibpath_var=LD_LIBRARY_PATH
-  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
-  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
-  ;;
-
-rdos*)
-  dynamic_linker=no
-  ;;
-
-solaris*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  hardcode_into_libs=yes
-  # ldd complains unless libraries are executable
-  postinstall_cmds='chmod +x $lib'
-  ;;
-
-sunos4*)
-  version_type=sunos
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
-  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  if test "$with_gnu_ld" = yes; then
-    need_lib_prefix=no
-  fi
-  need_version=yes
-  ;;
-
-sysv4 | sysv4.3*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  case $host_vendor in
-    sni)
-      shlibpath_overrides_runpath=no
-      need_lib_prefix=no
-      runpath_var=LD_RUN_PATH
-      ;;
-    siemens)
-      need_lib_prefix=no
-      ;;
-    motorola)
-      need_lib_prefix=no
-      need_version=no
-      shlibpath_overrides_runpath=no
-      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
-      ;;
-  esac
-  ;;
-
-sysv4*MP*)
-  if test -d /usr/nec ;then
-    version_type=linux # correct to gnu/linux during the next big refactor
-    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
-    soname_spec='$libname${shared_ext}.$major'
-    shlibpath_var=LD_LIBRARY_PATH
-  fi
-  ;;
-
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
-  version_type=freebsd-elf
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  hardcode_into_libs=yes
-  if test "$with_gnu_ld" = yes; then
-    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
-  else
-    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
-    case $host_os in
-      sco3.2v5*)
-        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
-	;;
-    esac
-  fi
-  sys_lib_dlsearch_path_spec='/usr/lib'
-  ;;
-
-tpf*)
-  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  ;;
-
-uts4*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  ;;
-
-*)
-  dynamic_linker=no
-  ;;
-esac
-AC_MSG_RESULT([$dynamic_linker])
-test "$dynamic_linker" = no && can_build_shared=no
-
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
-if test "$GCC" = yes; then
-  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
-fi
-
-if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
-  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
-fi
-if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
-  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
-fi
-
-_LT_DECL([], [variables_saved_for_relink], [1],
-    [Variables whose values should be saved in libtool wrapper scripts and
-    restored at link time])
-_LT_DECL([], [need_lib_prefix], [0],
-    [Do we need the "lib" prefix for modules?])
-_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
-_LT_DECL([], [version_type], [0], [Library versioning type])
-_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
-_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
-_LT_DECL([], [shlibpath_overrides_runpath], [0],
-    [Is shlibpath searched before the hard-coded library search path?])
-_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
-_LT_DECL([], [library_names_spec], [1],
-    [[List of archive names.  First name is the real one, the rest are links.
-    The last name is the one that the linker finds with -lNAME]])
-_LT_DECL([], [soname_spec], [1],
-    [[The coded name of the library, if different from the real name]])
-_LT_DECL([], [install_override_mode], [1],
-    [Permission mode override for installation of shared libraries])
-_LT_DECL([], [postinstall_cmds], [2],
-    [Command to use after installation of a shared archive])
-_LT_DECL([], [postuninstall_cmds], [2],
-    [Command to use after uninstallation of a shared archive])
-_LT_DECL([], [finish_cmds], [2],
-    [Commands used to finish a libtool library installation in a directory])
-_LT_DECL([], [finish_eval], [1],
-    [[As "finish_cmds", except a single script fragment to be evaled but
-    not shown]])
-_LT_DECL([], [hardcode_into_libs], [0],
-    [Whether we should hardcode library paths into libraries])
-_LT_DECL([], [sys_lib_search_path_spec], [2],
-    [Compile-time system search path for libraries])
-_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
-    [Run-time system search path for libraries])
-])# _LT_SYS_DYNAMIC_LINKER
-
-
-# _LT_PATH_TOOL_PREFIX(TOOL)
-# --------------------------
-# find a file program which can recognize shared library
-AC_DEFUN([_LT_PATH_TOOL_PREFIX],
-[m4_require([_LT_DECL_EGREP])dnl
-AC_MSG_CHECKING([for $1])
-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
-[case $MAGIC_CMD in
-[[\\/*] |  ?:[\\/]*])
-  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
-  ;;
-*)
-  lt_save_MAGIC_CMD="$MAGIC_CMD"
-  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
-dnl $ac_dummy forces splitting on constant user-supplied paths.
-dnl POSIX.2 word splitting is done only on the output of word expansions,
-dnl not every word.  This closes a longstanding sh security hole.
-  ac_dummy="m4_if([$2], , $PATH, [$2])"
-  for ac_dir in $ac_dummy; do
-    IFS="$lt_save_ifs"
-    test -z "$ac_dir" && ac_dir=.
-    if test -f $ac_dir/$1; then
-      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
-      if test -n "$file_magic_test_file"; then
-	case $deplibs_check_method in
-	"file_magic "*)
-	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
-	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
-	    $EGREP "$file_magic_regex" > /dev/null; then
-	    :
-	  else
-	    cat <<_LT_EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such.  This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem.  Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool at gnu.org
-
-_LT_EOF
-	  fi ;;
-	esac
-      fi
-      break
-    fi
-  done
-  IFS="$lt_save_ifs"
-  MAGIC_CMD="$lt_save_MAGIC_CMD"
-  ;;
-esac])
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
-  AC_MSG_RESULT($MAGIC_CMD)
-else
-  AC_MSG_RESULT(no)
-fi
-_LT_DECL([], [MAGIC_CMD], [0],
-	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
-])# _LT_PATH_TOOL_PREFIX
-
-# Old name:
-AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
-
-
-# _LT_PATH_MAGIC
-# --------------
-# find a file program which can recognize a shared library
-m4_defun([_LT_PATH_MAGIC],
-[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
-if test -z "$lt_cv_path_MAGIC_CMD"; then
-  if test -n "$ac_tool_prefix"; then
-    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
-  else
-    MAGIC_CMD=:
-  fi
-fi
-])# _LT_PATH_MAGIC
-
-
-# LT_PATH_LD
-# ----------
-# find the pathname to the GNU or non-GNU linker
-AC_DEFUN([LT_PATH_LD],
-[AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-m4_require([_LT_DECL_SED])dnl
-m4_require([_LT_DECL_EGREP])dnl
-m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
-
-AC_ARG_WITH([gnu-ld],
-    [AS_HELP_STRING([--with-gnu-ld],
-	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
-    [test "$withval" = no || with_gnu_ld=yes],
-    [with_gnu_ld=no])dnl
-
-ac_prog=ld
-if test "$GCC" = yes; then
-  # Check if gcc -print-prog-name=ld gives a path.
-  AC_MSG_CHECKING([for ld used by $CC])
-  case $host in
-  *-*-mingw*)
-    # gcc leaves a trailing carriage return which upsets mingw
-    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
-  *)
-    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
-  esac
-  case $ac_prog in
-    # Accept absolute paths.
-    [[\\/]]* | ?:[[\\/]]*)
-      re_direlt='/[[^/]][[^/]]*/\.\./'
-      # Canonicalize the pathname of ld
-      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
-      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
-	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
-      done
-      test -z "$LD" && LD="$ac_prog"
-      ;;
-  "")
-    # If it fails, then pretend we aren't using GCC.
-    ac_prog=ld
-    ;;
-  *)
-    # If it is relative, then search for the first ld in PATH.
-    with_gnu_ld=unknown
-    ;;
-  esac
-elif test "$with_gnu_ld" = yes; then
-  AC_MSG_CHECKING([for GNU ld])
-else
-  AC_MSG_CHECKING([for non-GNU ld])
-fi
-AC_CACHE_VAL(lt_cv_path_LD,
-[if test -z "$LD"; then
-  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
-  for ac_dir in $PATH; do
-    IFS="$lt_save_ifs"
-    test -z "$ac_dir" && ac_dir=.
-    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
-      lt_cv_path_LD="$ac_dir/$ac_prog"
-      # Check to see if the program is GNU ld.  I'd rather use --version,
-      # but apparently some variants of GNU ld only accept -v.
-      # Break only if it was the GNU/non-GNU ld that we prefer.
-      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
-      *GNU* | *'with BFD'*)
-	test "$with_gnu_ld" != no && break
-	;;
-      *)
-	test "$with_gnu_ld" != yes && break
-	;;
-      esac
-    fi
-  done
-  IFS="$lt_save_ifs"
-else
-  lt_cv_path_LD="$LD" # Let the user override the test with a path.
-fi])
-LD="$lt_cv_path_LD"
-if test -n "$LD"; then
-  AC_MSG_RESULT($LD)
-else
-  AC_MSG_RESULT(no)
-fi
-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
-_LT_PATH_LD_GNU
-AC_SUBST([LD])
-
-_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
-])# LT_PATH_LD
-
-# Old names:
-AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
-AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AM_PROG_LD], [])
-dnl AC_DEFUN([AC_PROG_LD], [])
-
-
-# _LT_PATH_LD_GNU
-#- --------------
-m4_defun([_LT_PATH_LD_GNU],
-[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
-[# I'd rather use --version here, but apparently some GNU lds only accept -v.
-case `$LD -v 2>&1 </dev/null` in
-*GNU* | *'with BFD'*)
-  lt_cv_prog_gnu_ld=yes
-  ;;
-*)
-  lt_cv_prog_gnu_ld=no
-  ;;
-esac])
-with_gnu_ld=$lt_cv_prog_gnu_ld
-])# _LT_PATH_LD_GNU
-
-
-# _LT_CMD_RELOAD
-# --------------
-# find reload flag for linker
-#   -- PORTME Some linkers may need a different reload flag.
-m4_defun([_LT_CMD_RELOAD],
-[AC_CACHE_CHECK([for $LD option to reload object files],
-  lt_cv_ld_reload_flag,
-  [lt_cv_ld_reload_flag='-r'])
-reload_flag=$lt_cv_ld_reload_flag
-case $reload_flag in
-"" | " "*) ;;
-*) reload_flag=" $reload_flag" ;;
-esac
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
-case $host_os in
-  cygwin* | mingw* | pw32* | cegcc*)
-    if test "$GCC" != yes; then
-      reload_cmds=false
-    fi
-    ;;
-  darwin*)
-    if test "$GCC" = yes; then
-      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
-    else
-      reload_cmds='$LD$reload_flag -o $output$reload_objs'
-    fi
-    ;;
-esac
-_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
-_LT_TAGDECL([], [reload_cmds], [2])dnl
-])# _LT_CMD_RELOAD
-
-
-# _LT_CHECK_MAGIC_METHOD
-# ----------------------
-# how to check for library dependencies
-#  -- PORTME fill in with the dynamic library characteristics
-m4_defun([_LT_CHECK_MAGIC_METHOD],
-[m4_require([_LT_DECL_EGREP])
-m4_require([_LT_DECL_OBJDUMP])
-AC_CACHE_CHECK([how to recognize dependent libraries],
-lt_cv_deplibs_check_method,
-[lt_cv_file_magic_cmd='$MAGIC_CMD'
-lt_cv_file_magic_test_file=
-lt_cv_deplibs_check_method='unknown'
-# Need to set the preceding variable on all platforms that support
-# interlibrary dependencies.
-# 'none' -- dependencies not supported.
-# `unknown' -- same as none, but documents that we really don't know.
-# 'pass_all' -- all dependencies passed with no checks.
-# 'test_compile' -- check by making test program.
-# 'file_magic [[regex]]' -- check by looking for files in library path
-# which responds to the $file_magic_cmd with a given extended regex.
-# If you have `file' or equivalent on your system and you're not sure
-# whether `pass_all' will *always* work, you probably want this one.
-
-case $host_os in
-aix[[4-9]]*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-beos*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-bsdi[[45]]*)
-  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
-  lt_cv_file_magic_cmd='/usr/bin/file -L'
-  lt_cv_file_magic_test_file=/shlib/libc.so
-  ;;
-
-cygwin*)
-  # func_win32_libid is a shell function defined in ltmain.sh
-  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
-  lt_cv_file_magic_cmd='func_win32_libid'
-  ;;
-
-mingw* | pw32*)
-  # Base MSYS/MinGW do not provide the 'file' command needed by
-  # func_win32_libid shell function, so use a weaker test based on 'objdump',
-  # unless we find 'file', for example because we are cross-compiling.
-  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
-  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
-    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
-    lt_cv_file_magic_cmd='func_win32_libid'
-  else
-    # Keep this pattern in sync with the one in func_win32_libid.
-    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
-    lt_cv_file_magic_cmd='$OBJDUMP -f'
-  fi
-  ;;
-
-cegcc*)
-  # use the weaker test based on 'objdump'. See mingw*.
-  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
-  lt_cv_file_magic_cmd='$OBJDUMP -f'
-  ;;
-
-darwin* | rhapsody*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-freebsd* | dragonfly*)
-  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
-    case $host_cpu in
-    i*86 )
-      # Not sure whether the presence of OpenBSD here was a mistake.
-      # Let's accept both of them until this is cleared up.
-      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
-      lt_cv_file_magic_cmd=/usr/bin/file
-      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
-      ;;
-    esac
-  else
-    lt_cv_deplibs_check_method=pass_all
-  fi
-  ;;
-
-gnu*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-haiku*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-hpux10.20* | hpux11*)
-  lt_cv_file_magic_cmd=/usr/bin/file
-  case $host_cpu in
-  ia64*)
-    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
-    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
-    ;;
-  hppa*64*)
-    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
-    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
-    ;;
-  *)
-    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
-    lt_cv_file_magic_test_file=/usr/lib/libc.sl
-    ;;
-  esac
-  ;;
-
-interix[[3-9]]*)
-  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
-  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
-  ;;
-
-irix5* | irix6* | nonstopux*)
-  case $LD in
-  *-32|*"-32 ") libmagic=32-bit;;
-  *-n32|*"-n32 ") libmagic=N32;;
-  *-64|*"-64 ") libmagic=64-bit;;
-  *) libmagic=never-match;;
-  esac
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-# This must be glibc/ELF.
-linux* | k*bsd*-gnu | kopensolaris*-gnu)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-netbsd*)
-  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
-    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
-  else
-    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
-  fi
-  ;;
-
-newos6*)
-  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
-  lt_cv_file_magic_cmd=/usr/bin/file
-  lt_cv_file_magic_test_file=/usr/lib/libnls.so
-  ;;
-
-*nto* | *qnx*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-openbsd*)
-  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
-  else
-    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
-  fi
-  ;;
-
-osf3* | osf4* | osf5*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-rdos*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-solaris*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
-sysv4 | sysv4.3*)
-  case $host_vendor in
-  motorola)
-    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
-    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
-    ;;
-  ncr)
-    lt_cv_deplibs_check_method=pass_all
-    ;;
-  sequent)
-    lt_cv_file_magic_cmd='/bin/file'
-    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
-    ;;
-  sni)
-    lt_cv_file_magic_cmd='/bin/file'
-    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
-    lt_cv_file_magic_test_file=/lib/libc.so
-    ;;
-  siemens)
-    lt_cv_deplibs_check_method=pass_all
-    ;;
-  pc)
-    lt_cv_deplibs_check_method=pass_all
-    ;;
-  esac
-  ;;
-
-tpf*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-esac
-])
-
-file_magic_glob=
-want_nocaseglob=no
-if test "$build" = "$host"; then
-  case $host_os in
-  mingw* | pw32*)
-    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
-      want_nocaseglob=yes
-    else
-      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
-    fi
-    ;;
-  esac
-fi
-
-file_magic_cmd=$lt_cv_file_magic_cmd
-deplibs_check_method=$lt_cv_deplibs_check_method
-test -z "$deplibs_check_method" && deplibs_check_method=unknown
-
-_LT_DECL([], [deplibs_check_method], [1],
-    [Method to check whether dependent libraries are shared objects])
-_LT_DECL([], [file_magic_cmd], [1],
-    [Command to use when deplibs_check_method = "file_magic"])
-_LT_DECL([], [file_magic_glob], [1],
-    [How to find potential files when deplibs_check_method = "file_magic"])
-_LT_DECL([], [want_nocaseglob], [1],
-    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
-])# _LT_CHECK_MAGIC_METHOD
-
-
-# LT_PATH_NM
-# ----------
-# find the pathname to a BSD- or MS-compatible name lister
-AC_DEFUN([LT_PATH_NM],
-[AC_REQUIRE([AC_PROG_CC])dnl
-AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
-[if test -n "$NM"; then
-  # Let the user override the test.
-  lt_cv_path_NM="$NM"
-else
-  lt_nm_to_check="${ac_tool_prefix}nm"
-  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
-    lt_nm_to_check="$lt_nm_to_check nm"
-  fi
-  for lt_tmp_nm in $lt_nm_to_check; do
-    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
-    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
-      IFS="$lt_save_ifs"
-      test -z "$ac_dir" && ac_dir=.
-      tmp_nm="$ac_dir/$lt_tmp_nm"
-      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
-	# Check to see if the nm accepts a BSD-compat flag.
-	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
-	#   nm: unknown option "B" ignored
-	# Tru64's nm complains that /dev/null is an invalid object file
-	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
-	*/dev/null* | *'Invalid file or object type'*)
-	  lt_cv_path_NM="$tmp_nm -B"
-	  break
-	  ;;
-	*)
-	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
-	  */dev/null*)
-	    lt_cv_path_NM="$tmp_nm -p"
-	    break
-	    ;;
-	  *)
-	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
-	    continue # so that we can try to find one that supports BSD flags
-	    ;;
-	  esac
-	  ;;
-	esac
-      fi
-    done
-    IFS="$lt_save_ifs"
-  done
-  : ${lt_cv_path_NM=no}
-fi])
-if test "$lt_cv_path_NM" != "no"; then
-  NM="$lt_cv_path_NM"
-else
-  # Didn't find any BSD compatible name lister, look for dumpbin.
-  if test -n "$DUMPBIN"; then :
-    # Let the user override the test.
-  else
-    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
-    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
-    *COFF*)
-      DUMPBIN="$DUMPBIN -symbols"
-      ;;
-    *)
-      DUMPBIN=:
-      ;;
-    esac
-  fi
-  AC_SUBST([DUMPBIN])
-  if test "$DUMPBIN" != ":"; then
-    NM="$DUMPBIN"
-  fi
-fi
-test -z "$NM" && NM=nm
-AC_SUBST([NM])
-_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
-
-AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
-  [lt_cv_nm_interface="BSD nm"
-  echo "int some_variable = 0;" > conftest.$ac_ext
-  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
-  (eval "$ac_compile" 2>conftest.err)
-  cat conftest.err >&AS_MESSAGE_LOG_FD
-  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
-  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
-  cat conftest.err >&AS_MESSAGE_LOG_FD
-  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
-  cat conftest.out >&AS_MESSAGE_LOG_FD
-  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
-    lt_cv_nm_interface="MS dumpbin"
-  fi
-  rm -f conftest*])
-])# LT_PATH_NM
-
-# Old names:
-AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
-AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AM_PROG_NM], [])
-dnl AC_DEFUN([AC_PROG_NM], [])
-
-# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
-# --------------------------------
-# how to determine the name of the shared library
-# associated with a specific link library.
-#  -- PORTME fill in with the dynamic library characteristics
-m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
-[m4_require([_LT_DECL_EGREP])
-m4_require([_LT_DECL_OBJDUMP])
-m4_require([_LT_DECL_DLLTOOL])
-AC_CACHE_CHECK([how to associate runtime and link libraries],
-lt_cv_sharedlib_from_linklib_cmd,
-[lt_cv_sharedlib_from_linklib_cmd='unknown'
-
-case $host_os in
-cygwin* | mingw* | pw32* | cegcc*)
-  # two different shell functions defined in ltmain.sh
-  # decide which to use based on capabilities of $DLLTOOL
-  case `$DLLTOOL --help 2>&1` in
-  *--identify-strict*)
-    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
-    ;;
-  *)
-    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
-    ;;
-  esac
-  ;;
-*)
-  # fallback: assume linklib IS sharedlib
-  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
-  ;;
-esac
-])
-sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
-test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
-
-_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
-    [Command to associate shared and link libraries])
-])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
-
-
-# _LT_PATH_MANIFEST_TOOL
-# ----------------------
-# locate the manifest tool
-m4_defun([_LT_PATH_MANIFEST_TOOL],
-[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
-test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
-AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
-  [lt_cv_path_mainfest_tool=no
-  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
-  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
-  cat conftest.err >&AS_MESSAGE_LOG_FD
-  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
-    lt_cv_path_mainfest_tool=yes
-  fi
-  rm -f conftest*])
-if test "x$lt_cv_path_mainfest_tool" != xyes; then
-  MANIFEST_TOOL=:
-fi
-_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
-])# _LT_PATH_MANIFEST_TOOL
-
-
-# LT_LIB_M
-# --------
-# check for math library
-AC_DEFUN([LT_LIB_M],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-LIBM=
-case $host in
-*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
-  # These system don't have libm, or don't need it
-  ;;
-*-ncr-sysv4.3*)
-  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
-  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
-  ;;
-*)
-  AC_CHECK_LIB(m, cos, LIBM="-lm")
-  ;;
-esac
-AC_SUBST([LIBM])
-])# LT_LIB_M
-
-# Old name:
-AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_CHECK_LIBM], [])
-
-
-# _LT_COMPILER_NO_RTTI([TAGNAME])
-# -------------------------------
-m4_defun([_LT_COMPILER_NO_RTTI],
-[m4_require([_LT_TAG_COMPILER])dnl
-
-_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
-
-if test "$GCC" = yes; then
-  case $cc_basename in
-  nvcc*)
-    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
-  *)
-    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
-  esac
-
-  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
-    lt_cv_prog_compiler_rtti_exceptions,
-    [-fno-rtti -fno-exceptions], [],
-    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
-fi
-_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
-	[Compiler flag to turn off builtin functions])
-])# _LT_COMPILER_NO_RTTI
-
-
-# _LT_CMD_GLOBAL_SYMBOLS
-# ----------------------
-m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([AC_PROG_AWK])dnl
-AC_REQUIRE([LT_PATH_NM])dnl
-AC_REQUIRE([LT_PATH_LD])dnl
-m4_require([_LT_DECL_SED])dnl
-m4_require([_LT_DECL_EGREP])dnl
-m4_require([_LT_TAG_COMPILER])dnl
-
-# Check for command to grab the raw symbol name followed by C symbol from nm.
-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
-[
-# These are sane defaults that work on at least a few old systems.
-# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
-
-# Character class describing NM global symbol codes.
-symcode='[[BCDEGRST]]'
-
-# Regexp to match symbols that can be accessed directly from C.
-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
-
-# Define system-specific variables.
-case $host_os in
-aix*)
-  symcode='[[BCDT]]'
-  ;;
-cygwin* | mingw* | pw32* | cegcc*)
-  symcode='[[ABCDGISTW]]'
-  ;;
-hpux*)
-  if test "$host_cpu" = ia64; then
-    symcode='[[ABCDEGRST]]'
-  fi
-  ;;
-irix* | nonstopux*)
-  symcode='[[BCDEGRST]]'
-  ;;
-osf*)
-  symcode='[[BCDEGQRST]]'
-  ;;
-solaris*)
-  symcode='[[BDRT]]'
-  ;;
-sco3.2v5*)
-  symcode='[[DT]]'
-  ;;
-sysv4.2uw2*)
-  symcode='[[DT]]'
-  ;;
-sysv5* | sco5v6* | unixware* | OpenUNIX*)
-  symcode='[[ABDT]]'
-  ;;
-sysv4)
-  symcode='[[DFNSTU]]'
-  ;;
-esac
-
-# If we're using GNU nm, then use its standard symbol codes.
-case `$NM -V 2>&1` in
-*GNU* | *'with BFD'*)
-  symcode='[[ABCDGIRSTW]]' ;;
-esac
-
-# Transform an extracted symbol line into a proper C declaration.
-# Some systems (esp. on ia64) link data and code symbols differently,
-# so use this general approach.
-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
-
-# Transform an extracted symbol line into symbol name and symbol address
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
-
-# Handle CRLF in mingw tool chain
-opt_cr=
-case $build_os in
-mingw*)
-  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
-  ;;
-esac
-
-# Try without a prefix underscore, then with it.
-for ac_symprfx in "" "_"; do
-
-  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
-  symxfrm="\\1 $ac_symprfx\\2 \\2"
-
-  # Write the raw and C identifiers.
-  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
-    # Fake it for dumpbin and say T for any non-static function
-    # and D for any global variable.
-    # Also find C++ and __fastcall symbols from MSVC++,
-    # which start with @ or ?.
-    lt_cv_sys_global_symbol_pipe="$AWK ['"\
-"     {last_section=section; section=\$ 3};"\
-"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
-"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
-"     \$ 0!~/External *\|/{next};"\
-"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
-"     {if(hide[section]) next};"\
-"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
-"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
-"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
-"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
-"     ' prfx=^$ac_symprfx]"
-  else
-    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
-  fi
-  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
-
-  # Check to see that the pipe works correctly.
-  pipe_works=no
-
-  rm -f conftest*
-  cat > conftest.$ac_ext <<_LT_EOF
-#ifdef __cplusplus
-extern "C" {
-#endif
-char nm_test_var;
-void nm_test_func(void);
-void nm_test_func(void){}
-#ifdef __cplusplus
-}
-#endif
-int main(){nm_test_var='a';nm_test_func();return(0);}
-_LT_EOF
-
-  if AC_TRY_EVAL(ac_compile); then
-    # Now try to grab the symbols.
-    nlist=conftest.nm
-    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
-      # Try sorting and uniquifying the output.
-      if sort "$nlist" | uniq > "$nlist"T; then
-	mv -f "$nlist"T "$nlist"
-      else
-	rm -f "$nlist"T
-      fi
-
-      # Make sure that we snagged all the symbols we need.
-      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
-	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
-	  cat <<_LT_EOF > conftest.$ac_ext
-/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
-#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
-/* DATA imports from DLLs on WIN32 con't be const, because runtime
-   relocations are performed -- see ld's documentation on pseudo-relocs.  */
-# define LT@&t at _DLSYM_CONST
-#elif defined(__osf__)
-/* This system does not cope well with relocations in const data.  */
-# define LT@&t at _DLSYM_CONST
-#else
-# define LT@&t at _DLSYM_CONST const
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-_LT_EOF
-	  # Now generate the symbol file.
-	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
-
-	  cat <<_LT_EOF >> conftest.$ac_ext
-
-/* The mapping between symbol names and symbols.  */
-LT@&t at _DLSYM_CONST struct {
-  const char *name;
-  void       *address;
-}
-lt__PROGRAM__LTX_preloaded_symbols[[]] =
-{
-  { "@PROGRAM@", (void *) 0 },
-_LT_EOF
-	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
-	  cat <<\_LT_EOF >> conftest.$ac_ext
-  {0, (void *) 0}
-};
-
-/* This works around a problem in FreeBSD linker */
-#ifdef FREEBSD_WORKAROUND
-static const void *lt_preloaded_setup() {
-  return lt__PROGRAM__LTX_preloaded_symbols;
-}
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-_LT_EOF
-	  # Now try linking the two files.
-	  mv conftest.$ac_objext conftstm.$ac_objext
-	  lt_globsym_save_LIBS=$LIBS
-	  lt_globsym_save_CFLAGS=$CFLAGS
-	  LIBS="conftstm.$ac_objext"
-	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
-	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
-	    pipe_works=yes
-	  fi
-	  LIBS=$lt_globsym_save_LIBS
-	  CFLAGS=$lt_globsym_save_CFLAGS
-	else
-	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
-	fi
-      else
-	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
-      fi
-    else
-      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
-    fi
-  else
-    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
-    cat conftest.$ac_ext >&5
-  fi
-  rm -rf conftest* conftst*
-
-  # Do not use the global_symbol_pipe unless it works.
-  if test "$pipe_works" = yes; then
-    break
-  else
-    lt_cv_sys_global_symbol_pipe=
-  fi
-done
-])
-if test -z "$lt_cv_sys_global_symbol_pipe"; then
-  lt_cv_sys_global_symbol_to_cdecl=
-fi
-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
-  AC_MSG_RESULT(failed)
-else
-  AC_MSG_RESULT(ok)
-fi
-
-# Response file support.
-if test "$lt_cv_nm_interface" = "MS dumpbin"; then
-  nm_file_list_spec='@'
-elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
-  nm_file_list_spec='@'
-fi
-
-_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
-    [Take the output of nm and produce a listing of raw symbols and C names])
-_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
-    [Transform the output of nm in a proper C declaration])
-_LT_DECL([global_symbol_to_c_name_address],
-    [lt_cv_sys_global_symbol_to_c_name_address], [1],
-    [Transform the output of nm in a C name address pair])
-_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
-    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
-    [Transform the output of nm in a C name address pair when lib prefix is needed])
-_LT_DECL([], [nm_file_list_spec], [1],
-    [Specify filename containing input files for $NM])
-]) # _LT_CMD_GLOBAL_SYMBOLS
-
-
-# _LT_COMPILER_PIC([TAGNAME])
-# ---------------------------
-m4_defun([_LT_COMPILER_PIC],
-[m4_require([_LT_TAG_COMPILER])dnl
-_LT_TAGVAR(lt_prog_compiler_wl, $1)=
-_LT_TAGVAR(lt_prog_compiler_pic, $1)=
-_LT_TAGVAR(lt_prog_compiler_static, $1)=
-
-m4_if([$1], [CXX], [
-  # C++ specific cases for pic, static, wl, etc.
-  if test "$GXX" = yes; then
-    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
-
-    case $host_os in
-    aix*)
-      # All AIX code is PIC.
-      if test "$host_cpu" = ia64; then
-	# AIX 5 now supports IA64 processor
-	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-      fi
-      ;;
-
-    amigaos*)
-      case $host_cpu in
-      powerpc)
-            # see comment about AmigaOS4 .so support
-            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
-        ;;
-      m68k)
-            # FIXME: we need at least 68020 code to build shared libraries, but
-            # adding the `-m68020' flag to GCC prevents building anything better,
-            # like `-m68040'.
-            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
-        ;;
-      esac
-      ;;
-
-    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
-      # PIC is the default for these OSes.
-      ;;
-    mingw* | cygwin* | os2* | pw32* | cegcc*)
-      # This hack is so that the source file can tell whether it is being
-      # built for inclusion in a dll (and should export symbols for example).
-      # Although the cygwin gcc ignores -fPIC, still need this for old-style
-      # (--disable-auto-import) libraries
-      m4_if([$1], [GCJ], [],
-	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
-      ;;
-    darwin* | rhapsody*)
-      # PIC is the default on this platform
-      # Common symbols not allowed in MH_DYLIB files
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
-      ;;
-    *djgpp*)
-      # DJGPP does not support shared libraries at all
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
-      ;;
-    haiku*)
-      # PIC is the default for Haiku.
-      # The "-static" flag exists, but is broken.
-      _LT_TAGVAR(lt_prog_compiler_static, $1)=
-      ;;
-    interix[[3-9]]*)
-      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
-      # Instead, we relocate shared libraries at runtime.
-      ;;
-    sysv4*MP*)
-      if test -d /usr/nec; then
-	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
-      fi
-      ;;
-    hpux*)
-      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
-      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
-      # sets the default TLS model and affects inlining.
-      case $host_cpu in
-      hppa*64*)
-	;;
-      *)
-	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
-	;;
-      esac
-      ;;
-    *qnx* | *nto*)
-      # QNX uses GNU C++, but need to define -shared option too, otherwise
-      # it will coredump.
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
-      ;;
-    *)
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
-      ;;
-    esac
-  else
-    case $host_os in
-      aix[[4-9]]*)
-	# All AIX code is PIC.
-	if test "$host_cpu" = ia64; then
-	  # AIX 5 now supports IA64 processor
-	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-	else
-	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
-	fi
-	;;
-      chorus*)
-	case $cc_basename in
-	cxch68*)
-	  # Green Hills C++ Compiler
-	  # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
-	  ;;
-	esac
-	;;
-      mingw* | cygwin* | os2* | pw32* | cegcc*)
-	# This hack is so that the source file can tell whether it is being
-	# built for inclusion in a dll (and should export symbols for example).
-	m4_if([$1], [GCJ], [],
-	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
-	;;
-      dgux*)
-	case $cc_basename in
-	  ec++*)
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-	    ;;
-	  ghcx*)
-	    # Green Hills C++ Compiler
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
-	    ;;
-	  *)
-	    ;;
-	esac
-	;;
-      freebsd* | dragonfly*)
-	# FreeBSD uses GNU C++
-	;;
-      hpux9* | hpux10* | hpux11*)
-	case $cc_basename in
-	  CC*)
-	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
-	    if test "$host_cpu" != ia64; then
-	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
-	    fi
-	    ;;
-	  aCC*)
-	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
-	    case $host_cpu in
-	    hppa*64*|ia64*)
-	      # +Z the default
-	      ;;
-	    *)
-	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
-	      ;;
-	    esac
-	    ;;
-	  *)
-	    ;;
-	esac
-	;;
-      interix*)
-	# This is c89, which is MS Visual C++ (no shared libs)
-	# Anyone wants to do a port?
-	;;
-      irix5* | irix6* | nonstopux*)
-	case $cc_basename in
-	  CC*)
-	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
-	    # CC pic flag -KPIC is the default.
-	    ;;
-	  *)
-	    ;;
-	esac
-	;;
-      linux* | k*bsd*-gnu | kopensolaris*-gnu)
-	case $cc_basename in
-	  KCC*)
-	    # KAI C++ Compiler
-	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
-	    ;;
-	  ecpc* )
-	    # old Intel C++ for x86_64 which still supported -KPIC.
-	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
-	    ;;
-	  icpc* )
-	    # Intel C++, used to be incompatible with GCC.
-	    # ICC 10 doesn't accept -KPIC any more.
-	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
-	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
-	    ;;
-	  pgCC* | pgcpp*)
-	    # Portland Group C++ compiler
-	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
-	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-	    ;;
-	  cxx*)
-	    # Compaq C++
-	    # Make sure the PIC flag is empty.  It appears that all Alpha
-	    # Linux and Compaq Tru64 Unix objects are PIC.
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
-	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
-	    ;;
-	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
-	    # IBM XL 8.0, 9.0 on PPC and BlueGene
-	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
-	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
-	    ;;
-	  *)
-	    case `$CC -V 2>&1 | sed 5q` in
-	    *Sun\ C*)
-	      # Sun C++ 5.9
-	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
-	      ;;
-	    esac
-	    ;;
-	esac
-	;;
-      lynxos*)
-	;;
-      m88k*)
-	;;
-      mvs*)
-	case $cc_basename in
-	  cxx*)
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
-	    ;;
-	  *)
-	    ;;
-	esac
-	;;
-      netbsd*)
-	;;
-      *qnx* | *nto*)
-        # QNX uses GNU C++, but need to define -shared option too, otherwise
-        # it will coredump.
-        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
-        ;;
-      osf3* | osf4* | osf5*)
-	case $cc_basename in
-	  KCC*)
-	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
-	    ;;
-	  RCC*)
-	    # Rational C++ 2.4.1
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
-	    ;;
-	  cxx*)
-	    # Digital/Compaq C++
-	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	    # Make sure the PIC flag is empty.  It appears that all Alpha
-	    # Linux and Compaq Tru64 Unix objects are PIC.
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
-	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
-	    ;;
-	  *)
-	    ;;
-	esac
-	;;
-      psos*)
-	;;
-      solaris*)
-	case $cc_basename in
-	  CC* | sunCC*)
-	    # Sun C++ 4.2, 5.x and Centerline C++
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
-	    ;;
-	  gcx*)
-	    # Green Hills C++ Compiler
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
-	    ;;
-	  *)
-	    ;;
-	esac
-	;;
-      sunos4*)
-	case $cc_basename in
-	  CC*)
-	    # Sun C++ 4.x
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
-	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-	    ;;
-	  lcc*)
-	    # Lucid
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
-	    ;;
-	  *)
-	    ;;
-	esac
-	;;
-      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
-	case $cc_basename in
-	  CC*)
-	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-	    ;;
-	esac
-	;;
-      tandem*)
-	case $cc_basename in
-	  NCC*)
-	    # NonStop-UX NCC 3.20
-	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-	    ;;
-	  *)
-	    ;;
-	esac
-	;;
-      vxworks*)
-	;;
-      *)
-	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
-	;;
-    esac
-  fi
-],
-[
-  if test "$GCC" = yes; then
-    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
-
-    case $host_os in
-      aix*)
-      # All AIX code is PIC.
-      if test "$host_cpu" = ia64; then
-	# AIX 5 now supports IA64 processor
-	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-      fi
-      ;;
-
-    amigaos*)
-      case $host_cpu in
-      powerpc)
-            # see comment about AmigaOS4 .so support
-            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
-        ;;
-      m68k)
-            # FIXME: we need at least 68020 code to build shared libraries, but
-            # adding the `-m68020' flag to GCC prevents building anything better,
-            # like `-m68040'.
-            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
-        ;;
-      esac
-      ;;
-
-    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
-      # PIC is the default for these OSes.
-      ;;
-
-    mingw* | cygwin* | pw32* | os2* | cegcc*)
-      # This hack is so that the source file can tell whether it is being
-      # built for inclusion in a dll (and should export symbols for example).
-      # Although the cygwin gcc ignores -fPIC, still need this for old-style
-      # (--disable-auto-import) libraries
-      m4_if([$1], [GCJ], [],
-	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
-      ;;
-
-    darwin* | rhapsody*)
-      # PIC is the default on this platform
-      # Common symbols not allowed in MH_DYLIB files
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
-      ;;
-
-    haiku*)
-      # PIC is the default for Haiku.
-      # The "-static" flag exists, but is broken.
-      _LT_TAGVAR(lt_prog_compiler_static, $1)=
-      ;;
-
-    hpux*)
-      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
-      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
-      # sets the default TLS model and affects inlining.
-      case $host_cpu in
-      hppa*64*)
-	# +Z the default
-	;;
-      *)
-	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
-	;;
-      esac
-      ;;
-
-    interix[[3-9]]*)
-      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
-      # Instead, we relocate shared libraries at runtime.
-      ;;
-
-    msdosdjgpp*)
-      # Just because we use GCC doesn't mean we suddenly get shared libraries
-      # on systems that don't support them.
-      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
-      enable_shared=no
-      ;;
-
-    *nto* | *qnx*)
-      # QNX uses GNU C++, but need to define -shared option too, otherwise
-      # it will coredump.
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
-      ;;
-
-    sysv4*MP*)
-      if test -d /usr/nec; then
-	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
-      fi
-      ;;
-
-    *)
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
-      ;;
-    esac
-
-    case $cc_basename in
-    nvcc*) # Cuda Compiler Driver 2.2
-      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
-      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
-        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
-      fi
-      ;;
-    esac
-  else
-    # PORTME Check for flag to pass linker flags through the system compiler.
-    case $host_os in
-    aix*)
-      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-      if test "$host_cpu" = ia64; then
-	# AIX 5 now supports IA64 processor
-	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-      else
-	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
-      fi
-      ;;
-
-    mingw* | cygwin* | pw32* | os2* | cegcc*)
-      # This hack is so that the source file can tell whether it is being
-      # built for inclusion in a dll (and should export symbols for example).
-      m4_if([$1], [GCJ], [],
-	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
-      ;;
-
-    hpux9* | hpux10* | hpux11*)
-      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
-      # not for PA HP-UX.
-      case $host_cpu in
-      hppa*64*|ia64*)
-	# +Z the default
-	;;
-      *)
-	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
-	;;
-      esac
-      # Is there a better lt_prog_compiler_static that works with the bundled CC?
-      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
-      ;;
-
-    irix5* | irix6* | nonstopux*)
-      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-      # PIC (with -KPIC) is the default.
-      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
-      ;;
-
-    linux* | k*bsd*-gnu | kopensolaris*-gnu)
-      case $cc_basename in
-      # old Intel for x86_64 which still supported -KPIC.
-      ecc*)
-	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
-        ;;
-      # icc used to be incompatible with GCC.
-      # ICC 10 doesn't accept -KPIC any more.
-      icc* | ifort*)
-	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
-	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
-        ;;
-      # Lahey Fortran 8.1.
-      lf95*)
-	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
-	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
-	;;
-      nagfor*)
-	# NAG Fortran compiler
-	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
-	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
-	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-	;;
-      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
-        # Portland Group compilers (*not* the Pentium gcc compiler,
-	# which looks to be a dead project)
-	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
-	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-        ;;
-      ccc*)
-        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-        # All Alpha code is PIC.
-        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
-        ;;
-      xl* | bgxl* | bgf* | mpixl*)
-	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
-	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
-	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
-	;;
-      *)
-	case `$CC -V 2>&1 | sed 5q` in
-	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
-	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
-	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
-	  ;;
-	*Sun\ F* | *Sun*Fortran*)
-	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
-	  ;;
-	*Sun\ C*)
-	  # Sun C 5.9
-	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	  ;;
-        *Intel*\ [[CF]]*Compiler*)
-	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
-	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
-	  ;;
-	*Portland\ Group*)
-	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
-	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-	  ;;
-	esac
-	;;
-      esac
-      ;;
-
-    newsos6)
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-      ;;
-
-    *nto* | *qnx*)
-      # QNX uses GNU C++, but need to define -shared option too, otherwise
-      # it will coredump.
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
-      ;;
-
-    osf3* | osf4* | osf5*)
-      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-      # All OSF/1 code is PIC.
-      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
-      ;;
-
-    rdos*)
-      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
-      ;;
-
-    solaris*)
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-      case $cc_basename in
-      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
-	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
-      *)
-	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
-      esac
-      ;;
-
-    sunos4*)
-      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
-      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-      ;;
-
-    sysv4 | sysv4.2uw2* | sysv4.3*)
-      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-      ;;
-
-    sysv4*MP*)
-      if test -d /usr/nec ;then
-	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
-	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-      fi
-      ;;
-
-    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
-      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
-      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-      ;;
-
-    unicos*)
-      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
-      ;;
-
-    uts4*)
-      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
-      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
-      ;;
-
-    *)
-      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
-      ;;
-    esac
-  fi
-])
-case $host_os in
-  # For platforms which do not support PIC, -DPIC is meaningless:
-  *djgpp*)
-    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
-    ;;
-  *)
-    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t at m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
-    ;;
-esac
-
-AC_CACHE_CHECK([for $compiler option to produce PIC],
-  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
-  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
-_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
-
-#
-# Check to make sure the PIC flag actually works.
-#
-if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
-  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
-    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
-    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t at m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
-    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
-     "" | " "*) ;;
-     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
-     esac],
-    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
-     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
-fi
-_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
-	[Additional compiler flags for building library objects])
-
-_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
-	[How to pass a linker flag through the compiler])
-#
-# Check to make sure the static flag actually works.
-#
-wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
-_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
-  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
-  $lt_tmp_static_flag,
-  [],
-  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
-_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
-	[Compiler flag to prevent dynamic linking])
-])# _LT_COMPILER_PIC
-
-
-# _LT_LINKER_SHLIBS([TAGNAME])
-# ----------------------------
-# See if the linker supports building shared libraries.
-m4_defun([_LT_LINKER_SHLIBS],
-[AC_REQUIRE([LT_PATH_LD])dnl
-AC_REQUIRE([LT_PATH_NM])dnl
-m4_require([_LT_PATH_MANIFEST_TOOL])dnl
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
-m4_require([_LT_DECL_EGREP])dnl
-m4_require([_LT_DECL_SED])dnl
-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
-m4_require([_LT_TAG_COMPILER])dnl
-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
-m4_if([$1], [CXX], [
-  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
-  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
-  case $host_os in
-  aix[[4-9]]*)
-    # If we're using GNU nm, then we don't want the "-C" option.
-    # -C means demangle to AIX nm, but means don't demangle with GNU nm
-    # Also, AIX nm treats weak defined symbols like other global defined
-    # symbols, whereas GNU nm marks them as "W".
-    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
-      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
-    else
-      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
-    fi
-    ;;
-  pw32*)
-    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
-    ;;
-  cygwin* | mingw* | cegcc*)
-    case $cc_basename in
-    cl*)
-      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
-      ;;
-    *)
-      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
-      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
-      ;;
-    esac
-    ;;
-  *)
-    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
-    ;;
-  esac
-], [
-  runpath_var=
-  _LT_TAGVAR(allow_undefined_flag, $1)=
-  _LT_TAGVAR(always_export_symbols, $1)=no
-  _LT_TAGVAR(archive_cmds, $1)=
-  _LT_TAGVAR(archive_expsym_cmds, $1)=
-  _LT_TAGVAR(compiler_needs_object, $1)=no
-  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
-  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
-  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
-  _LT_TAGVAR(hardcode_automatic, $1)=no
-  _LT_TAGVAR(hardcode_direct, $1)=no
-  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
-  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
-  _LT_TAGVAR(hardcode_libdir_separator, $1)=
-  _LT_TAGVAR(hardcode_minus_L, $1)=no
-  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
-  _LT_TAGVAR(inherit_rpath, $1)=no
-  _LT_TAGVAR(link_all_deplibs, $1)=unknown
-  _LT_TAGVAR(module_cmds, $1)=
-  _LT_TAGVAR(module_expsym_cmds, $1)=
-  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
-  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
-  _LT_TAGVAR(thread_safe_flag_spec, $1)=
-  _LT_TAGVAR(whole_archive_flag_spec, $1)=
-  # include_expsyms should be a list of space-separated symbols to be *always*
-  # included in the symbol list
-  _LT_TAGVAR(include_expsyms, $1)=
-  # exclude_expsyms can be an extended regexp of symbols to exclude
-  # it will be wrapped by ` (' and `)$', so one must not match beginning or
-  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
-  # as well as any symbol that contains `d'.
-  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
-  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
-  # platforms (ab)use it in PIC code, but their linkers get confused if
-  # the symbol is explicitly referenced.  Since portable code cannot
-  # rely on this symbol name, it's probably fine to never include it in
-  # preloaded symbol tables.
-  # Exclude shared library initialization/finalization symbols.
-dnl Note also adjust exclude_expsyms for C++ above.
-  extract_expsyms_cmds=
-
-  case $host_os in
-  cygwin* | mingw* | pw32* | cegcc*)
-    # FIXME: the MSVC++ port hasn't been tested in a loooong time
-    # When not using gcc, we currently assume that we are using
-    # Microsoft Visual C++.
-    if test "$GCC" != yes; then
-      with_gnu_ld=no
-    fi
-    ;;
-  interix*)
-    # we just hope/assume this is gcc and not c89 (= MSVC++)
-    with_gnu_ld=yes
-    ;;
-  openbsd*)
-    with_gnu_ld=no
-    ;;
-  esac
-
-  _LT_TAGVAR(ld_shlibs, $1)=yes
-
-  # On some targets, GNU ld is compatible enough with the native linker
-  # that we're better off using the native interface for both.
-  lt_use_gnu_ld_interface=no
-  if test "$with_gnu_ld" = yes; then
-    case $host_os in
-      aix*)
-	# The AIX port of GNU ld has always aspired to compatibility
-	# with the native linker.  However, as the warning in the GNU ld
-	# block says, versions before 2.19.5* couldn't really create working
-	# shared libraries, regardless of the interface used.
-	case `$LD -v 2>&1` in
-	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
-	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
-	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
-	  *)
-	    lt_use_gnu_ld_interface=yes
-	    ;;
-	esac
-	;;
-      *)
-	lt_use_gnu_ld_interface=yes
-	;;
-    esac
-  fi
-
-  if test "$lt_use_gnu_ld_interface" = yes; then
-    # If archive_cmds runs LD, not CC, wlarc should be empty
-    wlarc='${wl}'
-
-    # Set some defaults for GNU ld with shared library support. These
-    # are reset later if shared libraries are not supported. Putting them
-    # here allows them to be overridden if necessary.
-    runpath_var=LD_RUN_PATH
-    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
-    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
-    # ancient GNU ld didn't support --whole-archive et. al.
-    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
-      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
-    else
-      _LT_TAGVAR(whole_archive_flag_spec, $1)=
-    fi
-    supports_anon_versioning=no
-    case `$LD -v 2>&1` in
-      *GNU\ gold*) supports_anon_versioning=yes ;;
-      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
-      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
-      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
-      *\ 2.11.*) ;; # other 2.11 versions
-      *) supports_anon_versioning=yes ;;
-    esac
-
-    # See if GNU ld supports shared libraries.
-    case $host_os in
-    aix[[3-9]]*)
-      # On AIX/PPC, the GNU linker is very broken
-      if test "$host_cpu" != ia64; then
-	_LT_TAGVAR(ld_shlibs, $1)=no
-	cat <<_LT_EOF 1>&2
-
-*** Warning: the GNU linker, at least up to release 2.19, is reported
-*** to be unable to reliably create shared libraries on AIX.
-*** Therefore, libtool is disabling shared libraries support.  If you
-*** really care for shared libraries, you may want to install binutils
-*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
-*** You will then need to restart the configuration process.
-
-_LT_EOF
-      fi
-      ;;
-
-    amigaos*)
-      case $host_cpu in
-      powerpc)
-            # see comment about AmigaOS4 .so support
-            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-            _LT_TAGVAR(archive_expsym_cmds, $1)=''
-        ;;
-      m68k)
-            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
-            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
-            _LT_TAGVAR(hardcode_minus_L, $1)=yes
-        ;;
-      esac
-      ;;
-
-    beos*)
-      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
-	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
-	# Joseph Beckenbach <jrb3 at best.com> says some releases of gcc
-	# support --undefined.  This deserves some investigation.  FIXME
-	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-      else
-	_LT_TAGVAR(ld_shlibs, $1)=no
-      fi
-      ;;
-
-    cygwin* | mingw* | pw32* | cegcc*)
-      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
-      # as there is no search path for DLLs.
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
-      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
-      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
-      _LT_TAGVAR(always_export_symbols, $1)=no
-      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
-      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
-      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
-
-      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
-        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
-	# If the export-symbols file already is a .def file (1st line
-	# is EXPORTS), use it as is; otherwise, prepend...
-	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
-	  cp $export_symbols $output_objdir/$soname.def;
-	else
-	  echo EXPORTS > $output_objdir/$soname.def;
-	  cat $export_symbols >> $output_objdir/$soname.def;
-	fi~
-	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
-      else
-	_LT_TAGVAR(ld_shlibs, $1)=no
-      fi
-      ;;
-
-    haiku*)
-      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-      _LT_TAGVAR(link_all_deplibs, $1)=yes
-      ;;
-
-    interix[[3-9]]*)
-      _LT_TAGVAR(hardcode_direct, $1)=no
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
-      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
-      # Instead, shared libraries are loaded at an image base (0x10000000 by
-      # default) and relocated if they conflict, which is a slow very memory
-      # consuming and fragmenting process.  To avoid this, we pick a random,
-      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
-      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
-      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
-      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
-      ;;
-
-    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
-      tmp_diet=no
-      if test "$host_os" = linux-dietlibc; then
-	case $cc_basename in
-	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
-	esac
-      fi
-      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
-	 && test "$tmp_diet" = no
-      then
-	tmp_addflag=' $pic_flag'
-	tmp_sharedflag='-shared'
-	case $cc_basename,$host_cpu in
-        pgcc*)				# Portland Group C compiler
-	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
-	  tmp_addflag=' $pic_flag'
-	  ;;
-	pgf77* | pgf90* | pgf95* | pgfortran*)
-					# Portland Group f77 and f90 compilers
-	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
-	  tmp_addflag=' $pic_flag -Mnomain' ;;
-	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
-	  tmp_addflag=' -i_dynamic' ;;
-	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
-	  tmp_addflag=' -i_dynamic -nofor_main' ;;
-	ifc* | ifort*)			# Intel Fortran compiler
-	  tmp_addflag=' -nofor_main' ;;
-	lf95*)				# Lahey Fortran 8.1
-	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
-	  tmp_sharedflag='--shared' ;;
-	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
-	  tmp_sharedflag='-qmkshrobj'
-	  tmp_addflag= ;;
-	nvcc*)	# Cuda Compiler Driver 2.2
-	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
-	  _LT_TAGVAR(compiler_needs_object, $1)=yes
-	  ;;
-	esac
-	case `$CC -V 2>&1 | sed 5q` in
-	*Sun\ C*)			# Sun C 5.9
-	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
-	  _LT_TAGVAR(compiler_needs_object, $1)=yes
-	  tmp_sharedflag='-G' ;;
-	*Sun\ F*)			# Sun Fortran 8.3
-	  tmp_sharedflag='-G' ;;
-	esac
-	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-
-        if test "x$supports_anon_versioning" = xyes; then
-          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
-	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
-	    echo "local: *; };" >> $output_objdir/$libname.ver~
-	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
-        fi
-
-	case $cc_basename in
-	xlf* | bgf* | bgxlf* | mpixlf*)
-	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
-	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
-	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
-	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
-	  if test "x$supports_anon_versioning" = xyes; then
-	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
-	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
-	      echo "local: *; };" >> $output_objdir/$libname.ver~
-	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
-	  fi
-	  ;;
-	esac
-      else
-        _LT_TAGVAR(ld_shlibs, $1)=no
-      fi
-      ;;
-
-    netbsd*)
-      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
-	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
-	wlarc=
-      else
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-      fi
-      ;;
-
-    solaris*)
-      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
-	_LT_TAGVAR(ld_shlibs, $1)=no
-	cat <<_LT_EOF 1>&2
-
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
-*** create shared libraries on Solaris systems.  Therefore, libtool
-*** is disabling shared libraries support.  We urge you to upgrade GNU
-*** binutils to release 2.9.1 or newer.  Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-_LT_EOF
-      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-      else
-	_LT_TAGVAR(ld_shlibs, $1)=no
-      fi
-      ;;
-
-    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
-      case `$LD -v 2>&1` in
-        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
-	_LT_TAGVAR(ld_shlibs, $1)=no
-	cat <<_LT_EOF 1>&2
-
-*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
-*** reliably create shared libraries on SCO systems.  Therefore, libtool
-*** is disabling shared libraries support.  We urge you to upgrade GNU
-*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-_LT_EOF
-	;;
-	*)
-	  # For security reasons, it is highly recommended that you always
-	  # use absolute paths for naming shared libraries, and exclude the
-	  # DT_RUNPATH tag from executables and libraries.  But doing so
-	  # requires that you compile everything twice, which is a pain.
-	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
-	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
-	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-	  else
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	  fi
-	;;
-      esac
-      ;;
-
-    sunos4*)
-      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
-      wlarc=
-      _LT_TAGVAR(hardcode_direct, $1)=yes
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      ;;
-
-    *)
-      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-      else
-	_LT_TAGVAR(ld_shlibs, $1)=no
-      fi
-      ;;
-    esac
-
-    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
-      runpath_var=
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
-      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
-      _LT_TAGVAR(whole_archive_flag_spec, $1)=
-    fi
-  else
-    # PORTME fill in a description of your system's linker (not GNU ld)
-    case $host_os in
-    aix3*)
-      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
-      _LT_TAGVAR(always_export_symbols, $1)=yes
-      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
-      # Note: this linker hardcodes the directories in LIBPATH if there
-      # are no directories specified by -L.
-      _LT_TAGVAR(hardcode_minus_L, $1)=yes
-      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
-	# Neither direct hardcoding nor static linking is supported with a
-	# broken collect2.
-	_LT_TAGVAR(hardcode_direct, $1)=unsupported
-      fi
-      ;;
-
-    aix[[4-9]]*)
-      if test "$host_cpu" = ia64; then
-	# On IA64, the linker does run time linking by default, so we don't
-	# have to do anything special.
-	aix_use_runtimelinking=no
-	exp_sym_flag='-Bexport'
-	no_entry_flag=""
-      else
-	# If we're using GNU nm, then we don't want the "-C" option.
-	# -C means demangle to AIX nm, but means don't demangle with GNU nm
-	# Also, AIX nm treats weak defined symbols like other global
-	# defined symbols, whereas GNU nm marks them as "W".
-	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
-	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
-	else
-	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
-	fi
-	aix_use_runtimelinking=no
-
-	# Test if we are trying to use run time linking or normal
-	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
-	# need to do runtime linking.
-	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
-	  for ld_flag in $LDFLAGS; do
-	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
-	    aix_use_runtimelinking=yes
-	    break
-	  fi
-	  done
-	  ;;
-	esac
-
-	exp_sym_flag='-bexport'
-	no_entry_flag='-bnoentry'
-      fi
-
-      # When large executables or shared objects are built, AIX ld can
-      # have problems creating the table of contents.  If linking a library
-      # or program results in "error TOC overflow" add -mminimal-toc to
-      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
-      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
-      _LT_TAGVAR(archive_cmds, $1)=''
-      _LT_TAGVAR(hardcode_direct, $1)=yes
-      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
-      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
-      _LT_TAGVAR(link_all_deplibs, $1)=yes
-      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
-
-      if test "$GCC" = yes; then
-	case $host_os in aix4.[[012]]|aix4.[[012]].*)
-	# We only want to do this on AIX 4.2 and lower, the check
-	# below for broken collect2 doesn't work under 4.3+
-	  collect2name=`${CC} -print-prog-name=collect2`
-	  if test -f "$collect2name" &&
-	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
-	  then
-	  # We have reworked collect2
-	  :
-	  else
-	  # We have old collect2
-	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
-	  # It fails to find uninstalled libraries when the uninstalled
-	  # path is not listed in the libpath.  Setting hardcode_minus_L
-	  # to unsupported forces relinking
-	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
-	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
-	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
-	  fi
-	  ;;
-	esac
-	shared_flag='-shared'
-	if test "$aix_use_runtimelinking" = yes; then
-	  shared_flag="$shared_flag "'${wl}-G'
-	fi
-      else
-	# not using gcc
-	if test "$host_cpu" = ia64; then
-	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
-	# chokes on -Wl,-G. The following line is correct:
-	  shared_flag='-G'
-	else
-	  if test "$aix_use_runtimelinking" = yes; then
-	    shared_flag='${wl}-G'
-	  else
-	    shared_flag='${wl}-bM:SRE'
-	  fi
-	fi
-      fi
-
-      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
-      # It seems that -bexpall does not export symbols beginning with
-      # underscore (_), so it is better to generate a list of symbols to export.
-      _LT_TAGVAR(always_export_symbols, $1)=yes
-      if test "$aix_use_runtimelinking" = yes; then
-	# Warning - without using the other runtime loading flags (-brtl),
-	# -berok will link without error, but may produce a broken library.
-	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
-        # Determine the default libpath from the value encoded in an
-        # empty executable.
-        _LT_SYS_MODULE_PATH_AIX([$1])
-        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
-        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
-      else
-	if test "$host_cpu" = ia64; then
-	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
-	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
-	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
-	else
-	 # Determine the default libpath from the value encoded in an
-	 # empty executable.
-	 _LT_SYS_MODULE_PATH_AIX([$1])
-	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
-	  # Warning - without using the other run time loading flags,
-	  # -berok will link without error, but may produce a broken library.
-	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
-	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
-	  if test "$with_gnu_ld" = yes; then
-	    # We only use this code for GNU lds that support --whole-archive.
-	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
-	  else
-	    # Exported symbols can be pulled into shared objects from archives
-	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
-	  fi
-	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
-	  # This is similar to how AIX traditionally builds its shared libraries.
-	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
-	fi
-      fi
-      ;;
-
-    amigaos*)
-      case $host_cpu in
-      powerpc)
-            # see comment about AmigaOS4 .so support
-            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-            _LT_TAGVAR(archive_expsym_cmds, $1)=''
-        ;;
-      m68k)
-            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
-            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
-            _LT_TAGVAR(hardcode_minus_L, $1)=yes
-        ;;
-      esac
-      ;;
-
-    bsdi[[45]]*)
-      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
-      ;;
-
-    cygwin* | mingw* | pw32* | cegcc*)
-      # When not using gcc, we currently assume that we are using
-      # Microsoft Visual C++.
-      # hardcode_libdir_flag_spec is actually meaningless, as there is
-      # no search path for DLLs.
-      case $cc_basename in
-      cl*)
-	# Native MSVC
-	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
-	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
-	_LT_TAGVAR(always_export_symbols, $1)=yes
-	_LT_TAGVAR(file_list_spec, $1)='@'
-	# Tell ltmain to make .lib files, not .a files.
-	libext=lib
-	# Tell ltmain to make .dll files, not .so files.
-	shrext_cmds=".dll"
-	# FIXME: Setting linknames here is a bad hack.
-	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
-	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
-	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
-	  else
-	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
-	  fi~
-	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
-	  linknames='
-	# The linker will not automatically build a static lib if we build a DLL.
-	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
-	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
-	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
-	_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
-	# Don't use ranlib
-	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
-	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
-	  lt_tool_outputfile="@TOOL_OUTPUT@"~
-	  case $lt_outputfile in
-	    *.exe|*.EXE) ;;
-	    *)
-	      lt_outputfile="$lt_outputfile.exe"
-	      lt_tool_outputfile="$lt_tool_outputfile.exe"
-	      ;;
-	  esac~
-	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
-	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
-	    $RM "$lt_outputfile.manifest";
-	  fi'
-	;;
-      *)
-	# Assume MSVC wrapper
-	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
-	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
-	# Tell ltmain to make .lib files, not .a files.
-	libext=lib
-	# Tell ltmain to make .dll files, not .so files.
-	shrext_cmds=".dll"
-	# FIXME: Setting linknames here is a bad hack.
-	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
-	# The linker will automatically build a .lib file if we build a DLL.
-	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
-	# FIXME: Should let the user specify the lib program.
-	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
-	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
-	;;
-      esac
-      ;;
-
-    darwin* | rhapsody*)
-      _LT_DARWIN_LINKER_FEATURES($1)
-      ;;
-
-    dgux*)
-      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      ;;
-
-    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
-    # support.  Future versions do this automatically, but an explicit c++rt0.o
-    # does not break anything, and helps significantly (at the cost of a little
-    # extra space).
-    freebsd2.2*)
-      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
-      _LT_TAGVAR(hardcode_direct, $1)=yes
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      ;;
-
-    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
-    freebsd2.*)
-      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
-      _LT_TAGVAR(hardcode_direct, $1)=yes
-      _LT_TAGVAR(hardcode_minus_L, $1)=yes
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      ;;
-
-    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
-    freebsd* | dragonfly*)
-      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
-      _LT_TAGVAR(hardcode_direct, $1)=yes
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      ;;
-
-    hpux9*)
-      if test "$GCC" = yes; then
-	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
-      else
-	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
-      fi
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
-      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
-      _LT_TAGVAR(hardcode_direct, $1)=yes
-
-      # hardcode_minus_L: Not really in the search PATH,
-      # but as the default location of the library.
-      _LT_TAGVAR(hardcode_minus_L, $1)=yes
-      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-      ;;
-
-    hpux10*)
-      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
-      else
-	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
-      fi
-      if test "$with_gnu_ld" = no; then
-	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
-	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
-	_LT_TAGVAR(hardcode_direct, $1)=yes
-	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
-	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-	# hardcode_minus_L: Not really in the search PATH,
-	# but as the default location of the library.
-	_LT_TAGVAR(hardcode_minus_L, $1)=yes
-      fi
-      ;;
-
-    hpux11*)
-      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
-	case $host_cpu in
-	hppa*64*)
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
-	  ;;
-	ia64*)
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
-	  ;;
-	*)
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
-	  ;;
-	esac
-      else
-	case $host_cpu in
-	hppa*64*)
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
-	  ;;
-	ia64*)
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
-	  ;;
-	*)
-	m4_if($1, [], [
-	  # Older versions of the 11.00 compiler do not understand -b yet
-	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
-	  _LT_LINKER_OPTION([if $CC understands -b],
-	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
-	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
-	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
-	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
-	  ;;
-	esac
-      fi
-      if test "$with_gnu_ld" = no; then
-	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
-	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
-
-	case $host_cpu in
-	hppa*64*|ia64*)
-	  _LT_TAGVAR(hardcode_direct, $1)=no
-	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-	  ;;
-	*)
-	  _LT_TAGVAR(hardcode_direct, $1)=yes
-	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
-	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-
-	  # hardcode_minus_L: Not really in the search PATH,
-	  # but as the default location of the library.
-	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
-	  ;;
-	esac
-      fi
-      ;;
-
-    irix5* | irix6* | nonstopux*)
-      if test "$GCC" = yes; then
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-	# Try to use the -exported_symbol ld option, if it does not
-	# work, assume that -exports_file does not work either and
-	# implicitly export all symbols.
-	# This should be the same for all languages, so no per-tag cache variable.
-	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
-	  [lt_cv_irix_exported_symbol],
-	  [save_LDFLAGS="$LDFLAGS"
-	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
-	   AC_LINK_IFELSE(
-	     [AC_LANG_SOURCE(
-	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
-			      [C++], [[int foo (void) { return 0; }]],
-			      [Fortran 77], [[
-      subroutine foo
-      end]],
-			      [Fortran], [[
-      subroutine foo
-      end]])])],
-	      [lt_cv_irix_exported_symbol=yes],
-	      [lt_cv_irix_exported_symbol=no])
-           LDFLAGS="$save_LDFLAGS"])
-	if test "$lt_cv_irix_exported_symbol" = yes; then
-          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
-	fi
-      else
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
-      fi
-      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
-      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
-      _LT_TAGVAR(inherit_rpath, $1)=yes
-      _LT_TAGVAR(link_all_deplibs, $1)=yes
-      ;;
-
-    netbsd*)
-      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
-	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
-      else
-	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
-      fi
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
-      _LT_TAGVAR(hardcode_direct, $1)=yes
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      ;;
-
-    newsos6)
-      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-      _LT_TAGVAR(hardcode_direct, $1)=yes
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
-      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      ;;
-
-    *nto* | *qnx*)
-      ;;
-
-    openbsd*)
-      if test -f /usr/libexec/ld.so; then
-	_LT_TAGVAR(hardcode_direct, $1)=yes
-	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
-	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
-	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
-	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
-	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-	else
-	  case $host_os in
-	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
-	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
-	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
-	     ;;
-	   *)
-	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
-	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
-	     ;;
-	  esac
-	fi
-      else
-	_LT_TAGVAR(ld_shlibs, $1)=no
-      fi
-      ;;
-
-    os2*)
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
-      _LT_TAGVAR(hardcode_minus_L, $1)=yes
-      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
-      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
-      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
-      ;;
-
-    osf3*)
-      if test "$GCC" = yes; then
-	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-      else
-	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
-      fi
-      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
-      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
-      ;;
-
-    osf4* | osf5*)	# as osf3* with the addition of -msym flag
-      if test "$GCC" = yes; then
-	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
-      else
-	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
-	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
-
-	# Both c and cxx compiler support -rpath directly
-	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
-      fi
-      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
-      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
-      ;;
-
-    solaris*)
-      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
-      if test "$GCC" = yes; then
-	wlarc='${wl}'
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
-      else
-	case `$CC -V 2>&1` in
-	*"Compilers 5.0"*)
-	  wlarc=''
-	  _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
-	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
-	  ;;
-	*)
-	  wlarc='${wl}'
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
-	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
-	  ;;
-	esac
-      fi
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      case $host_os in
-      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
-      *)
-	# The compiler driver will combine and reorder linker options,
-	# but understands `-z linker_flag'.  GCC discards it without `$wl',
-	# but is careful enough not to reorder.
-	# Supported since Solaris 2.6 (maybe 2.5.1?)
-	if test "$GCC" = yes; then
-	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
-	else
-	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
-	fi
-	;;
-      esac
-      _LT_TAGVAR(link_all_deplibs, $1)=yes
-      ;;
-
-    sunos4*)
-      if test "x$host_vendor" = xsequent; then
-	# Use $CC to link under sequent, because it throws in some extra .o
-	# files that make .init and .fini sections work.
-	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
-      else
-	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
-      fi
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
-      _LT_TAGVAR(hardcode_direct, $1)=yes
-      _LT_TAGVAR(hardcode_minus_L, $1)=yes
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      ;;
-
-    sysv4)
-      case $host_vendor in
-	sni)
-	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
-	;;
-	siemens)
-	  ## LD is ld it makes a PLAMLIB
-	  ## CC just makes a GrossModule.
-	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
-	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
-	  _LT_TAGVAR(hardcode_direct, $1)=no
-        ;;
-	motorola)
-	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
-	;;
-      esac
-      runpath_var='LD_RUN_PATH'
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      ;;
-
-    sysv4.3*)
-      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
-      ;;
-
-    sysv4*MP*)
-      if test -d /usr/nec; then
-	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-	runpath_var=LD_RUN_PATH
-	hardcode_runpath_var=yes
-	_LT_TAGVAR(ld_shlibs, $1)=yes
-      fi
-      ;;
-
-    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
-      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
-      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      runpath_var='LD_RUN_PATH'
-
-      if test "$GCC" = yes; then
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-      else
-	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-      fi
-      ;;
-
-    sysv5* | sco3.2v5* | sco5v6*)
-      # Note: We can NOT use -z defs as we might desire, because we do not
-      # link with -lc, and that would cause any symbols used from libc to
-      # always be unresolved, which means just about no library would
-      # ever link correctly.  If we're not using GNU ld we use -z text
-      # though, which does catch some bad symbols but isn't as heavy-handed
-      # as -z defs.
-      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
-      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
-      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
-      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
-      _LT_TAGVAR(link_all_deplibs, $1)=yes
-      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
-      runpath_var='LD_RUN_PATH'
-
-      if test "$GCC" = yes; then
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-      else
-	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-      fi
-      ;;
-
-    uts4*)
-      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
-      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      ;;
-
-    *)
-      _LT_TAGVAR(ld_shlibs, $1)=no
-      ;;
-    esac
-
-    if test x$host_vendor = xsni; then
-      case $host in
-      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
-	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
-	;;
-      esac
-    fi
-  fi
-])
-AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
-test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
-
-_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
-
-_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
-_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
-_LT_DECL([], [extract_expsyms_cmds], [2],
-    [The commands to extract the exported symbol list from a shared archive])
-
-#
-# Do we need to explicitly link libc?
-#
-case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
-x|xyes)
-  # Assume -lc should be added
-  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
-
-  if test "$enable_shared" = yes && test "$GCC" = yes; then
-    case $_LT_TAGVAR(archive_cmds, $1) in
-    *'~'*)
-      # FIXME: we may have to deal with multi-command sequences.
-      ;;
-    '$CC '*)
-      # Test whether the compiler implicitly links with -lc since on some
-      # systems, -lgcc has to come before -lc. If gcc already passes -lc
-      # to ld, don't add -lc before -lgcc.
-      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
-	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
-	[$RM conftest*
-	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
-
-	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
-	  soname=conftest
-	  lib=conftest
-	  libobjs=conftest.$ac_objext
-	  deplibs=
-	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
-	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
-	  compiler_flags=-v
-	  linker_flags=-v
-	  verstring=
-	  output_objdir=.
-	  libname=conftest
-	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
-	  _LT_TAGVAR(allow_undefined_flag, $1)=
-	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
-	  then
-	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
-	  else
-	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
-	  fi
-	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
-	else
-	  cat conftest.err 1>&5
-	fi
-	$RM conftest*
-	])
-      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
-      ;;
-    esac
-  fi
-  ;;
-esac
-
-_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
-    [Whether or not to add -lc for building shared libraries])
-_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
-    [enable_shared_with_static_runtimes], [0],
-    [Whether or not to disallow shared libs when runtime libs are static])
-_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
-    [Compiler flag to allow reflexive dlopens])
-_LT_TAGDECL([], [whole_archive_flag_spec], [1],
-    [Compiler flag to generate shared objects directly from archives])
-_LT_TAGDECL([], [compiler_needs_object], [1],
-    [Whether the compiler copes with passing no objects directly])
-_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
-    [Create an old-style archive from a shared archive])
-_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
-    [Create a temporary old-style archive to link instead of a shared archive])
-_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
-_LT_TAGDECL([], [archive_expsym_cmds], [2])
-_LT_TAGDECL([], [module_cmds], [2],
-    [Commands used to build a loadable module if different from building
-    a shared archive.])
-_LT_TAGDECL([], [module_expsym_cmds], [2])
-_LT_TAGDECL([], [with_gnu_ld], [1],
-    [Whether we are building with GNU ld or not])
-_LT_TAGDECL([], [allow_undefined_flag], [1],
-    [Flag that allows shared libraries with undefined symbols to be built])
-_LT_TAGDECL([], [no_undefined_flag], [1],
-    [Flag that enforces no undefined symbols])
-_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
-    [Flag to hardcode $libdir into a binary during linking.
-    This must work even if $libdir does not exist])
-_LT_TAGDECL([], [hardcode_libdir_separator], [1],
-    [Whether we need a single "-rpath" flag with a separated argument])
-_LT_TAGDECL([], [hardcode_direct], [0],
-    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
-    DIR into the resulting binary])
-_LT_TAGDECL([], [hardcode_direct_absolute], [0],
-    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
-    DIR into the resulting binary and the resulting library dependency is
-    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
-    library is relocated])
-_LT_TAGDECL([], [hardcode_minus_L], [0],
-    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
-    into the resulting binary])
-_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
-    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
-    into the resulting binary])
-_LT_TAGDECL([], [hardcode_automatic], [0],
-    [Set to "yes" if building a shared library automatically hardcodes DIR
-    into the library and all subsequent libraries and executables linked
-    against it])
-_LT_TAGDECL([], [inherit_rpath], [0],
-    [Set to yes if linker adds runtime paths of dependent libraries
-    to runtime path list])
-_LT_TAGDECL([], [link_all_deplibs], [0],
-    [Whether libtool must link a program against all its dependency libraries])
-_LT_TAGDECL([], [always_export_symbols], [0],
-    [Set to "yes" if exported symbols are required])
-_LT_TAGDECL([], [export_symbols_cmds], [2],
-    [The commands to list exported symbols])
-_LT_TAGDECL([], [exclude_expsyms], [1],
-    [Symbols that should not be listed in the preloaded symbols])
-_LT_TAGDECL([], [include_expsyms], [1],
-    [Symbols that must always be exported])
-_LT_TAGDECL([], [prelink_cmds], [2],
-    [Commands necessary for linking programs (against libraries) with templates])
-_LT_TAGDECL([], [postlink_cmds], [2],
-    [Commands necessary for finishing linking programs])
-_LT_TAGDECL([], [file_list_spec], [1],
-    [Specify filename containing input files])
-dnl FIXME: Not yet implemented
-dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
-dnl    [Compiler flag to generate thread safe objects])
-])# _LT_LINKER_SHLIBS
-
-
-# _LT_LANG_C_CONFIG([TAG])
-# ------------------------
-# Ensure that the configuration variables for a C compiler are suitably
-# defined.  These variables are subsequently used by _LT_CONFIG to write
-# the compiler configuration to `libtool'.
-m4_defun([_LT_LANG_C_CONFIG],
-[m4_require([_LT_DECL_EGREP])dnl
-lt_save_CC="$CC"
-AC_LANG_PUSH(C)
-
-# Source file extension for C test sources.
-ac_ext=c
-
-# Object file extension for compiled C test sources.
-objext=o
-_LT_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="int some_variable = 0;"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='int main(){return(0);}'
-
-_LT_TAG_COMPILER
-# Save the default compiler, since it gets overwritten when the other
-# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
-compiler_DEFAULT=$CC
-
-# save warnings/boilerplate of simple test code
-_LT_COMPILER_BOILERPLATE
-_LT_LINKER_BOILERPLATE
-
-## CAVEAT EMPTOR:
-## There is no encapsulation within the following macros, do not change
-## the running order or otherwise move them around unless you know exactly
-## what you are doing...
-if test -n "$compiler"; then
-  _LT_COMPILER_NO_RTTI($1)
-  _LT_COMPILER_PIC($1)
-  _LT_COMPILER_C_O($1)
-  _LT_COMPILER_FILE_LOCKS($1)
-  _LT_LINKER_SHLIBS($1)
-  _LT_SYS_DYNAMIC_LINKER($1)
-  _LT_LINKER_HARDCODE_LIBPATH($1)
-  LT_SYS_DLOPEN_SELF
-  _LT_CMD_STRIPLIB
-
-  # Report which library types will actually be built
-  AC_MSG_CHECKING([if libtool supports shared libraries])
-  AC_MSG_RESULT([$can_build_shared])
-
-  AC_MSG_CHECKING([whether to build shared libraries])
-  test "$can_build_shared" = "no" && enable_shared=no
-
-  # On AIX, shared libraries and static libraries use the same namespace, and
-  # are all built from PIC.
-  case $host_os in
-  aix3*)
-    test "$enable_shared" = yes && enable_static=no
-    if test -n "$RANLIB"; then
-      archive_cmds="$archive_cmds~\$RANLIB \$lib"
-      postinstall_cmds='$RANLIB $lib'
-    fi
-    ;;
-
-  aix[[4-9]]*)
-    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
-      test "$enable_shared" = yes && enable_static=no
-    fi
-    ;;
-  esac
-  AC_MSG_RESULT([$enable_shared])
-
-  AC_MSG_CHECKING([whether to build static libraries])
-  # Make sure either enable_shared or enable_static is yes.
-  test "$enable_shared" = yes || enable_static=yes
-  AC_MSG_RESULT([$enable_static])
-
-  _LT_CONFIG($1)
-fi
-AC_LANG_POP
-CC="$lt_save_CC"
-])# _LT_LANG_C_CONFIG
-
-
-# _LT_LANG_CXX_CONFIG([TAG])
-# --------------------------
-# Ensure that the configuration variables for a C++ compiler are suitably
-# defined.  These variables are subsequently used by _LT_CONFIG to write
-# the compiler configuration to `libtool'.
-m4_defun([_LT_LANG_CXX_CONFIG],
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
-m4_require([_LT_DECL_EGREP])dnl
-m4_require([_LT_PATH_MANIFEST_TOOL])dnl
-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
-    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
-    (test "X$CXX" != "Xg++"))) ; then
-  AC_PROG_CXXCPP
-else
-  _lt_caught_CXX_error=yes
-fi
-
-AC_LANG_PUSH(C++)
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
-_LT_TAGVAR(allow_undefined_flag, $1)=
-_LT_TAGVAR(always_export_symbols, $1)=no
-_LT_TAGVAR(archive_expsym_cmds, $1)=
-_LT_TAGVAR(compiler_needs_object, $1)=no
-_LT_TAGVAR(export_dynamic_flag_spec, $1)=
-_LT_TAGVAR(hardcode_direct, $1)=no
-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
-_LT_TAGVAR(hardcode_libdir_separator, $1)=
-_LT_TAGVAR(hardcode_minus_L, $1)=no
-_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
-_LT_TAGVAR(hardcode_automatic, $1)=no
-_LT_TAGVAR(inherit_rpath, $1)=no
-_LT_TAGVAR(module_cmds, $1)=
-_LT_TAGVAR(module_expsym_cmds, $1)=
-_LT_TAGVAR(link_all_deplibs, $1)=unknown
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
-_LT_TAGVAR(reload_flag, $1)=$reload_flag
-_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
-_LT_TAGVAR(no_undefined_flag, $1)=
-_LT_TAGVAR(whole_archive_flag_spec, $1)=
-_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
-
-# Source file extension for C++ test sources.
-ac_ext=cpp
-
-# Object file extension for compiled C++ test sources.
-objext=o
-_LT_TAGVAR(objext, $1)=$objext
-
-# No sense in running all these tests if we already determined that
-# the CXX compiler isn't working.  Some variables (like enable_shared)
-# are currently assumed to apply to all compilers on this platform,
-# and will be corrupted by setting them based on a non-working compiler.
-if test "$_lt_caught_CXX_error" != yes; then
-  # Code to be used in simple compile tests
-  lt_simple_compile_test_code="int some_variable = 0;"
-
-  # Code to be used in simple link tests
-  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
-
-  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
-  _LT_TAG_COMPILER
-
-  # save warnings/boilerplate of simple test code
-  _LT_COMPILER_BOILERPLATE
-  _LT_LINKER_BOILERPLATE
-
-  # Allow CC to be a program name with arguments.
-  lt_save_CC=$CC
-  lt_save_CFLAGS=$CFLAGS
-  lt_save_LD=$LD
-  lt_save_GCC=$GCC
-  GCC=$GXX
-  lt_save_with_gnu_ld=$with_gnu_ld
-  lt_save_path_LD=$lt_cv_path_LD
-  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
-    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
-  else
-    $as_unset lt_cv_prog_gnu_ld
-  fi
-  if test -n "${lt_cv_path_LDCXX+set}"; then
-    lt_cv_path_LD=$lt_cv_path_LDCXX
-  else
-    $as_unset lt_cv_path_LD
-  fi
-  test -z "${LDCXX+set}" || LD=$LDCXX
-  CC=${CXX-"c++"}
-  CFLAGS=$CXXFLAGS
-  compiler=$CC
-  _LT_TAGVAR(compiler, $1)=$CC
-  _LT_CC_BASENAME([$compiler])
-
-  if test -n "$compiler"; then
-    # We don't want -fno-exception when compiling C++ code, so set the
-    # no_builtin_flag separately
-    if test "$GXX" = yes; then
-      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
-    else
-      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
-    fi
-
-    if test "$GXX" = yes; then
-      # Set up default GNU C++ configuration
-
-      LT_PATH_LD
-
-      # Check if GNU C++ uses GNU ld as the underlying linker, since the
-      # archiving commands below assume that GNU ld is being used.
-      if test "$with_gnu_ld" = yes; then
-        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
-        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-
-        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
-        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
-
-        # If archive_cmds runs LD, not CC, wlarc should be empty
-        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
-        #     investigate it a little bit more. (MM)
-        wlarc='${wl}'
-
-        # ancient GNU ld didn't support --whole-archive et. al.
-        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
-	  $GREP 'no-whole-archive' > /dev/null; then
-          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
-        else
-          _LT_TAGVAR(whole_archive_flag_spec, $1)=
-        fi
-      else
-        with_gnu_ld=no
-        wlarc=
-
-        # A generic and very simple default shared library creation
-        # command for GNU C++ for the case where it uses the native
-        # linker, instead of GNU ld.  If possible, this setting should
-        # overridden to take advantage of the native linker features on
-        # the platform it is being used on.
-        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
-      fi
-
-      # Commands to make compiler produce verbose output that lists
-      # what "hidden" libraries, object files and flags are used when
-      # linking a shared library.
-      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
-
-    else
-      GXX=no
-      with_gnu_ld=no
-      wlarc=
-    fi
-
-    # PORTME: fill in a description of your system's C++ link characteristics
-    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
-    _LT_TAGVAR(ld_shlibs, $1)=yes
-    case $host_os in
-      aix3*)
-        # FIXME: insert proper C++ library support
-        _LT_TAGVAR(ld_shlibs, $1)=no
-        ;;
-      aix[[4-9]]*)
-        if test "$host_cpu" = ia64; then
-          # On IA64, the linker does run time linking by default, so we don't
-          # have to do anything special.
-          aix_use_runtimelinking=no
-          exp_sym_flag='-Bexport'
-          no_entry_flag=""
-        else
-          aix_use_runtimelinking=no
-
-          # Test if we are trying to use run time linking or normal
-          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
-          # need to do runtime linking.
-          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
-	    for ld_flag in $LDFLAGS; do
-	      case $ld_flag in
-	      *-brtl*)
-	        aix_use_runtimelinking=yes
-	        break
-	        ;;
-	      esac
-	    done
-	    ;;
-          esac
-
-          exp_sym_flag='-bexport'
-          no_entry_flag='-bnoentry'
-        fi
-
-        # When large executables or shared objects are built, AIX ld can
-        # have problems creating the table of contents.  If linking a library
-        # or program results in "error TOC overflow" add -mminimal-toc to
-        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
-        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
-        _LT_TAGVAR(archive_cmds, $1)=''
-        _LT_TAGVAR(hardcode_direct, $1)=yes
-        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
-        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
-        _LT_TAGVAR(link_all_deplibs, $1)=yes
-        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
-
-        if test "$GXX" = yes; then
-          case $host_os in aix4.[[012]]|aix4.[[012]].*)
-          # We only want to do this on AIX 4.2 and lower, the check
-          # below for broken collect2 doesn't work under 4.3+
-	  collect2name=`${CC} -print-prog-name=collect2`
-	  if test -f "$collect2name" &&
-	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
-	  then
-	    # We have reworked collect2
-	    :
-	  else
-	    # We have old collect2
-	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
-	    # It fails to find uninstalled libraries when the uninstalled
-	    # path is not listed in the libpath.  Setting hardcode_minus_L
-	    # to unsupported forces relinking
-	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
-	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
-	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
-	  fi
-          esac
-          shared_flag='-shared'
-	  if test "$aix_use_runtimelinking" = yes; then
-	    shared_flag="$shared_flag "'${wl}-G'
-	  fi
-        else
-          # not using gcc
-          if test "$host_cpu" = ia64; then
-	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
-	  # chokes on -Wl,-G. The following line is correct:
-	  shared_flag='-G'
-          else
-	    if test "$aix_use_runtimelinking" = yes; then
-	      shared_flag='${wl}-G'
-	    else
-	      shared_flag='${wl}-bM:SRE'
-	    fi
-          fi
-        fi
-
-        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
-        # It seems that -bexpall does not export symbols beginning with
-        # underscore (_), so it is better to generate a list of symbols to
-	# export.
-        _LT_TAGVAR(always_export_symbols, $1)=yes
-        if test "$aix_use_runtimelinking" = yes; then
-          # Warning - without using the other runtime loading flags (-brtl),
-          # -berok will link without error, but may produce a broken library.
-          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
-          # Determine the default libpath from the value encoded in an empty
-          # executable.
-          _LT_SYS_MODULE_PATH_AIX([$1])
-          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
-
-          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
-        else
-          if test "$host_cpu" = ia64; then
-	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
-	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
-	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
-          else
-	    # Determine the default libpath from the value encoded in an
-	    # empty executable.
-	    _LT_SYS_MODULE_PATH_AIX([$1])
-	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
-	    # Warning - without using the other run time loading flags,
-	    # -berok will link without error, but may produce a broken library.
-	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
-	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
-	    if test "$with_gnu_ld" = yes; then
-	      # We only use this code for GNU lds that support --whole-archive.
-	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
-	    else
-	      # Exported symbols can be pulled into shared objects from archives
-	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
-	    fi
-	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
-	    # This is similar to how AIX traditionally builds its shared
-	    # libraries.
-	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
-          fi
-        fi
-        ;;
-
-      beos*)
-	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
-	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
-	  # Joseph Beckenbach <jrb3 at best.com> says some releases of gcc
-	  # support --undefined.  This deserves some investigation.  FIXME
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-	else
-	  _LT_TAGVAR(ld_shlibs, $1)=no
-	fi
-	;;
-
-      chorus*)
-        case $cc_basename in
-          *)
-	  # FIXME: insert proper C++ library support
-	  _LT_TAGVAR(ld_shlibs, $1)=no
-	  ;;
-        esac
-        ;;
-
-      cygwin* | mingw* | pw32* | cegcc*)
-	case $GXX,$cc_basename in
-	,cl* | no,cl*)
-	  # Native MSVC
-	  # hardcode_libdir_flag_spec is actually meaningless, as there is
-	  # no search path for DLLs.
-	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
-	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
-	  _LT_TAGVAR(always_export_symbols, $1)=yes
-	  _LT_TAGVAR(file_list_spec, $1)='@'
-	  # Tell ltmain to make .lib files, not .a files.
-	  libext=lib
-	  # Tell ltmain to make .dll files, not .so files.
-	  shrext_cmds=".dll"
-	  # FIXME: Setting linknames here is a bad hack.
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
-	  _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
-	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
-	    else
-	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
-	    fi~
-	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
-	    linknames='
-	  # The linker will not automatically build a static lib if we build a DLL.
-	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
-	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
-	  # Don't use ranlib
-	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
-	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
-	    lt_tool_outputfile="@TOOL_OUTPUT@"~
-	    case $lt_outputfile in
-	      *.exe|*.EXE) ;;
-	      *)
-		lt_outputfile="$lt_outputfile.exe"
-		lt_tool_outputfile="$lt_tool_outputfile.exe"
-		;;
-	    esac~
-	    func_to_tool_file "$lt_outputfile"~
-	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
-	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
-	      $RM "$lt_outputfile.manifest";
-	    fi'
-	  ;;
-	*)
-	  # g++
-	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
-	  # as there is no search path for DLLs.
-	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
-	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
-	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
-	  _LT_TAGVAR(always_export_symbols, $1)=no
-	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
-
-	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
-	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
-	    # If the export-symbols file already is a .def file (1st line
-	    # is EXPORTS), use it as is; otherwise, prepend...
-	    _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
-	      cp $export_symbols $output_objdir/$soname.def;
-	    else
-	      echo EXPORTS > $output_objdir/$soname.def;
-	      cat $export_symbols >> $output_objdir/$soname.def;
-	    fi~
-	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
-	  else
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	  fi
-	  ;;
-	esac
-	;;
-      darwin* | rhapsody*)
-        _LT_DARWIN_LINKER_FEATURES($1)
-	;;
-
-      dgux*)
-        case $cc_basename in
-          ec++*)
-	    # FIXME: insert proper C++ library support
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	    ;;
-          ghcx*)
-	    # Green Hills C++ Compiler
-	    # FIXME: insert proper C++ library support
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	    ;;
-          *)
-	    # FIXME: insert proper C++ library support
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	    ;;
-        esac
-        ;;
-
-      freebsd2.*)
-        # C++ shared libraries reported to be fairly broken before
-	# switch to ELF
-        _LT_TAGVAR(ld_shlibs, $1)=no
-        ;;
-
-      freebsd-elf*)
-        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
-        ;;
-
-      freebsd* | dragonfly*)
-        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
-        # conventions
-        _LT_TAGVAR(ld_shlibs, $1)=yes
-        ;;
-
-      gnu*)
-        ;;
-
-      haiku*)
-        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-        _LT_TAGVAR(link_all_deplibs, $1)=yes
-        ;;
-
-      hpux9*)
-        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
-        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
-        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-        _LT_TAGVAR(hardcode_direct, $1)=yes
-        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
-				             # but as the default
-				             # location of the library.
-
-        case $cc_basename in
-          CC*)
-            # FIXME: insert proper C++ library support
-            _LT_TAGVAR(ld_shlibs, $1)=no
-            ;;
-          aCC*)
-            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
-            # Commands to make compiler produce verbose output that lists
-            # what "hidden" libraries, object files and flags are used when
-            # linking a shared library.
-            #
-            # There doesn't appear to be a way to prevent this compiler from
-            # explicitly linking system object files so we need to strip them
-            # from the output so that they don't get included in the library
-            # dependencies.
-            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
-            ;;
-          *)
-            if test "$GXX" = yes; then
-              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
-            else
-              # FIXME: insert proper C++ library support
-              _LT_TAGVAR(ld_shlibs, $1)=no
-            fi
-            ;;
-        esac
-        ;;
-
-      hpux10*|hpux11*)
-        if test $with_gnu_ld = no; then
-	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
-	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
-
-          case $host_cpu in
-            hppa*64*|ia64*)
-              ;;
-            *)
-	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-              ;;
-          esac
-        fi
-        case $host_cpu in
-          hppa*64*|ia64*)
-            _LT_TAGVAR(hardcode_direct, $1)=no
-            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-            ;;
-          *)
-            _LT_TAGVAR(hardcode_direct, $1)=yes
-            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
-            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
-					         # but as the default
-					         # location of the library.
-            ;;
-        esac
-
-        case $cc_basename in
-          CC*)
-	    # FIXME: insert proper C++ library support
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	    ;;
-          aCC*)
-	    case $host_cpu in
-	      hppa*64*)
-	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
-	        ;;
-	      ia64*)
-	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
-	        ;;
-	      *)
-	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
-	        ;;
-	    esac
-	    # Commands to make compiler produce verbose output that lists
-	    # what "hidden" libraries, object files and flags are used when
-	    # linking a shared library.
-	    #
-	    # There doesn't appear to be a way to prevent this compiler from
-	    # explicitly linking system object files so we need to strip them
-	    # from the output so that they don't get included in the library
-	    # dependencies.
-	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
-	    ;;
-          *)
-	    if test "$GXX" = yes; then
-	      if test $with_gnu_ld = no; then
-	        case $host_cpu in
-	          hppa*64*)
-	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
-	            ;;
-	          ia64*)
-	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
-	            ;;
-	          *)
-	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
-	            ;;
-	        esac
-	      fi
-	    else
-	      # FIXME: insert proper C++ library support
-	      _LT_TAGVAR(ld_shlibs, $1)=no
-	    fi
-	    ;;
-        esac
-        ;;
-
-      interix[[3-9]]*)
-	_LT_TAGVAR(hardcode_direct, $1)=no
-	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
-	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
-	# Instead, shared libraries are loaded at an image base (0x10000000 by
-	# default) and relocated if they conflict, which is a slow very memory
-	# consuming and fragmenting process.  To avoid this, we pick a random,
-	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
-	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
-	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
-	_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
-	;;
-      irix5* | irix6*)
-        case $cc_basename in
-          CC*)
-	    # SGI C++
-	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
-
-	    # Archives containing C++ object files must be created using
-	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
-	    # necessary to make sure instantiated templates are included
-	    # in the archive.
-	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
-	    ;;
-          *)
-	    if test "$GXX" = yes; then
-	      if test "$with_gnu_ld" = no; then
-	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-	      else
-	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
-	      fi
-	    fi
-	    _LT_TAGVAR(link_all_deplibs, $1)=yes
-	    ;;
-        esac
-        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
-        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
-        _LT_TAGVAR(inherit_rpath, $1)=yes
-        ;;
-
-      linux* | k*bsd*-gnu | kopensolaris*-gnu)
-        case $cc_basename in
-          KCC*)
-	    # Kuck and Associates, Inc. (KAI) C++ Compiler
-
-	    # KCC will only create a shared library if the output file
-	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
-	    # to its proper name (with version) after linking.
-	    _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
-	    _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
-	    # Commands to make compiler produce verbose output that lists
-	    # what "hidden" libraries, object files and flags are used when
-	    # linking a shared library.
-	    #
-	    # There doesn't appear to be a way to prevent this compiler from
-	    # explicitly linking system object files so we need to strip them
-	    # from the output so that they don't get included in the library
-	    # dependencies.
-	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
-
-	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
-	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
-
-	    # Archives containing C++ object files must be created using
-	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
-	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
-	    ;;
-	  icpc* | ecpc* )
-	    # Intel C++
-	    with_gnu_ld=yes
-	    # version 8.0 and above of icpc choke on multiply defined symbols
-	    # if we add $predep_objects and $postdep_objects, however 7.1 and
-	    # earlier do not add the objects themselves.
-	    case `$CC -V 2>&1` in
-	      *"Version 7."*)
-	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
-		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-		;;
-	      *)  # Version 8.0 or newer
-	        tmp_idyn=
-	        case $host_cpu in
-		  ia64*) tmp_idyn=' -i_dynamic';;
-		esac
-	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-		;;
-	    esac
-	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
-	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
-	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
-	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
-	    ;;
-          pgCC* | pgcpp*)
-            # Portland Group C++ compiler
-	    case `$CC -V` in
-	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
-	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
-		rm -rf $tpldir~
-		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
-		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
-	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
-		rm -rf $tpldir~
-		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
-		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
-		$RANLIB $oldlib'
-	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
-		rm -rf $tpldir~
-		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
-		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
-	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
-		rm -rf $tpldir~
-		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
-		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
-	      ;;
-	    *) # Version 6 and above use weak symbols
-	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
-	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
-	      ;;
-	    esac
-
-	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
-	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
-	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
-            ;;
-	  cxx*)
-	    # Compaq C++
-	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
-	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
-
-	    runpath_var=LD_RUN_PATH
-	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
-	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
-
-	    # Commands to make compiler produce verbose output that lists
-	    # what "hidden" libraries, object files and flags are used when
-	    # linking a shared library.
-	    #
-	    # There doesn't appear to be a way to prevent this compiler from
-	    # explicitly linking system object files so we need to strip them
-	    # from the output so that they don't get included in the library
-	    # dependencies.
-	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
-	    ;;
-	  xl* | mpixl* | bgxl*)
-	    # IBM XL 8.0 on PPC, with GNU ld
-	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
-	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
-	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-	    if test "x$supports_anon_versioning" = xyes; then
-	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
-		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
-		echo "local: *; };" >> $output_objdir/$libname.ver~
-		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
-	    fi
-	    ;;
-	  *)
-	    case `$CC -V 2>&1 | sed 5q` in
-	    *Sun\ C*)
-	      # Sun C++ 5.9
-	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
-	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
-	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
-	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
-	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
-	      _LT_TAGVAR(compiler_needs_object, $1)=yes
-
-	      # Not sure whether something based on
-	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
-	      # would be better.
-	      output_verbose_link_cmd='func_echo_all'
-
-	      # Archives containing C++ object files must be created using
-	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
-	      # necessary to make sure instantiated templates are included
-	      # in the archive.
-	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
-	      ;;
-	    esac
-	    ;;
-	esac
-	;;
-
-      lynxos*)
-        # FIXME: insert proper C++ library support
-	_LT_TAGVAR(ld_shlibs, $1)=no
-	;;
-
-      m88k*)
-        # FIXME: insert proper C++ library support
-        _LT_TAGVAR(ld_shlibs, $1)=no
-	;;
-
-      mvs*)
-        case $cc_basename in
-          cxx*)
-	    # FIXME: insert proper C++ library support
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	    ;;
-	  *)
-	    # FIXME: insert proper C++ library support
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	    ;;
-	esac
-	;;
-
-      netbsd*)
-        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
-	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
-	  wlarc=
-	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
-	  _LT_TAGVAR(hardcode_direct, $1)=yes
-	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-	fi
-	# Workaround some broken pre-1.5 toolchains
-	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
-	;;
-
-      *nto* | *qnx*)
-        _LT_TAGVAR(ld_shlibs, $1)=yes
-	;;
-
-      openbsd2*)
-        # C++ shared libraries are fairly broken
-	_LT_TAGVAR(ld_shlibs, $1)=no
-	;;
-
-      openbsd*)
-	if test -f /usr/libexec/ld.so; then
-	  _LT_TAGVAR(hardcode_direct, $1)=yes
-	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
-	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
-	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
-	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
-	  fi
-	  output_verbose_link_cmd=func_echo_all
-	else
-	  _LT_TAGVAR(ld_shlibs, $1)=no
-	fi
-	;;
-
-      osf3* | osf4* | osf5*)
-        case $cc_basename in
-          KCC*)
-	    # Kuck and Associates, Inc. (KAI) C++ Compiler
-
-	    # KCC will only create a shared library if the output file
-	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
-	    # to its proper name (with version) after linking.
-	    _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
-
-	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
-	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
-
-	    # Archives containing C++ object files must be created using
-	    # the KAI C++ compiler.
-	    case $host in
-	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
-	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
-	    esac
-	    ;;
-          RCC*)
-	    # Rational C++ 2.4.1
-	    # FIXME: insert proper C++ library support
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	    ;;
-          cxx*)
-	    case $host in
-	      osf3*)
-	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
-	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
-	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
-		;;
-	      *)
-	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
-	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
-	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
-	          echo "-hidden">> $lib.exp~
-	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
-	          $RM $lib.exp'
-	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
-		;;
-	    esac
-
-	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
-
-	    # Commands to make compiler produce verbose output that lists
-	    # what "hidden" libraries, object files and flags are used when
-	    # linking a shared library.
-	    #
-	    # There doesn't appear to be a way to prevent this compiler from
-	    # explicitly linking system object files so we need to strip them
-	    # from the output so that they don't get included in the library
-	    # dependencies.
-	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
-	    ;;
-	  *)
-	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
-	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
-	      case $host in
-	        osf3*)
-	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-		  ;;
-	        *)
-	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-		  ;;
-	      esac
-
-	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
-	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
-
-	      # Commands to make compiler produce verbose output that lists
-	      # what "hidden" libraries, object files and flags are used when
-	      # linking a shared library.
-	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
-
-	    else
-	      # FIXME: insert proper C++ library support
-	      _LT_TAGVAR(ld_shlibs, $1)=no
-	    fi
-	    ;;
-        esac
-        ;;
-
-      psos*)
-        # FIXME: insert proper C++ library support
-        _LT_TAGVAR(ld_shlibs, $1)=no
-        ;;
-
-      sunos4*)
-        case $cc_basename in
-          CC*)
-	    # Sun C++ 4.x
-	    # FIXME: insert proper C++ library support
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	    ;;
-          lcc*)
-	    # Lucid
-	    # FIXME: insert proper C++ library support
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	    ;;
-          *)
-	    # FIXME: insert proper C++ library support
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	    ;;
-        esac
-        ;;
-
-      solaris*)
-        case $cc_basename in
-          CC* | sunCC*)
-	    # Sun C++ 4.2, 5.x and Centerline C++
-            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
-	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
-	    _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
-	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
-
-	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
-	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-	    case $host_os in
-	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
-	      *)
-		# The compiler driver will combine and reorder linker options,
-		# but understands `-z linker_flag'.
-	        # Supported since Solaris 2.6 (maybe 2.5.1?)
-		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
-	        ;;
-	    esac
-	    _LT_TAGVAR(link_all_deplibs, $1)=yes
-
-	    output_verbose_link_cmd='func_echo_all'
-
-	    # Archives containing C++ object files must be created using
-	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
-	    # necessary to make sure instantiated templates are included
-	    # in the archive.
-	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
-	    ;;
-          gcx*)
-	    # Green Hills C++ Compiler
-	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
-
-	    # The C++ compiler must be used to create the archive.
-	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
-	    ;;
-          *)
-	    # GNU C++ compiler with Solaris linker
-	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
-	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
-	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
-	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
-	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
-
-	        # Commands to make compiler produce verbose output that lists
-	        # what "hidden" libraries, object files and flags are used when
-	        # linking a shared library.
-	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
-	      else
-	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
-	        # platform.
-	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
-	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
-
-	        # Commands to make compiler produce verbose output that lists
-	        # what "hidden" libraries, object files and flags are used when
-	        # linking a shared library.
-	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
-	      fi
-
-	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
-	      case $host_os in
-		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
-		*)
-		  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
-		  ;;
-	      esac
-	    fi
-	    ;;
-        esac
-        ;;
-
-    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
-      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
-      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
-      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-      runpath_var='LD_RUN_PATH'
-
-      case $cc_basename in
-        CC*)
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	  ;;
-	*)
-	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	  ;;
-      esac
-      ;;
-
-      sysv5* | sco3.2v5* | sco5v6*)
-	# Note: We can NOT use -z defs as we might desire, because we do not
-	# link with -lc, and that would cause any symbols used from libc to
-	# always be unresolved, which means just about no library would
-	# ever link correctly.  If we're not using GNU ld we use -z text
-	# though, which does catch some bad symbols but isn't as heavy-handed
-	# as -z defs.
-	_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
-	_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
-	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
-	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
-	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
-	_LT_TAGVAR(link_all_deplibs, $1)=yes
-	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
-	runpath_var='LD_RUN_PATH'
-
-	case $cc_basename in
-          CC*)
-	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
-	      '"$_LT_TAGVAR(old_archive_cmds, $1)"
-	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
-	      '"$_LT_TAGVAR(reload_cmds, $1)"
-	    ;;
-	  *)
-	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
-	    ;;
-	esac
-      ;;
-
-      tandem*)
-        case $cc_basename in
-          NCC*)
-	    # NonStop-UX NCC 3.20
-	    # FIXME: insert proper C++ library support
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	    ;;
-          *)
-	    # FIXME: insert proper C++ library support
-	    _LT_TAGVAR(ld_shlibs, $1)=no
-	    ;;
-        esac
-        ;;
-
-      vxworks*)
-        # FIXME: insert proper C++ library support
-        _LT_TAGVAR(ld_shlibs, $1)=no
-        ;;
-
-      *)
-        # FIXME: insert proper C++ library support
-        _LT_TAGVAR(ld_shlibs, $1)=no
-        ;;
-    esac
-
-    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
-    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
-
-    _LT_TAGVAR(GCC, $1)="$GXX"
-    _LT_TAGVAR(LD, $1)="$LD"
-
-    ## CAVEAT EMPTOR:
-    ## There is no encapsulation within the following macros, do not change
-    ## the running order or otherwise move them around unless you know exactly
-    ## what you are doing...
-    _LT_SYS_HIDDEN_LIBDEPS($1)
-    _LT_COMPILER_PIC($1)
-    _LT_COMPILER_C_O($1)
-    _LT_COMPILER_FILE_LOCKS($1)
-    _LT_LINKER_SHLIBS($1)
-    _LT_SYS_DYNAMIC_LINKER($1)
-    _LT_LINKER_HARDCODE_LIBPATH($1)
-
-    _LT_CONFIG($1)
-  fi # test -n "$compiler"
-
-  CC=$lt_save_CC
-  CFLAGS=$lt_save_CFLAGS
-  LDCXX=$LD
-  LD=$lt_save_LD
-  GCC=$lt_save_GCC
-  with_gnu_ld=$lt_save_with_gnu_ld
-  lt_cv_path_LDCXX=$lt_cv_path_LD
-  lt_cv_path_LD=$lt_save_path_LD
-  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
-  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
-fi # test "$_lt_caught_CXX_error" != yes
-
-AC_LANG_POP
-])# _LT_LANG_CXX_CONFIG
-
-
-# _LT_FUNC_STRIPNAME_CNF
-# ----------------------
-# func_stripname_cnf prefix suffix name
-# strip PREFIX and SUFFIX off of NAME.
-# PREFIX and SUFFIX must not contain globbing or regex special
-# characters, hashes, percent signs, but SUFFIX may contain a leading
-# dot (in which case that matches only a dot).
-#
-# This function is identical to the (non-XSI) version of func_stripname,
-# except this one can be used by m4 code that may be executed by configure,
-# rather than the libtool script.
-m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
-AC_REQUIRE([_LT_DECL_SED])
-AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
-func_stripname_cnf ()
-{
-  case ${2} in
-  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
-  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
-  esac
-} # func_stripname_cnf
-])# _LT_FUNC_STRIPNAME_CNF
-
-# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
-# ---------------------------------
-# Figure out "hidden" library dependencies from verbose
-# compiler output when linking a shared library.
-# Parse the compiler output and extract the necessary
-# objects, libraries and library flags.
-m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
-AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
-# Dependencies to place before and after the object being linked:
-_LT_TAGVAR(predep_objects, $1)=
-_LT_TAGVAR(postdep_objects, $1)=
-_LT_TAGVAR(predeps, $1)=
-_LT_TAGVAR(postdeps, $1)=
-_LT_TAGVAR(compiler_lib_search_path, $1)=
-
-dnl we can't use the lt_simple_compile_test_code here,
-dnl because it contains code intended for an executable,
-dnl not a library.  It's possible we should let each
-dnl tag define a new lt_????_link_test_code variable,
-dnl but it's only used here...
-m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
-int a;
-void foo (void) { a = 0; }
-_LT_EOF
-], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
-class Foo
-{
-public:
-  Foo (void) { a = 0; }
-private:
-  int a;
-};
-_LT_EOF
-], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
-      subroutine foo
-      implicit none
-      integer*4 a
-      a=0
-      return
-      end
-_LT_EOF
-], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
-      subroutine foo
-      implicit none
-      integer a
-      a=0
-      return
-      end
-_LT_EOF
-], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
-public class foo {
-  private int a;
-  public void bar (void) {
-    a = 0;
-  }
-};
-_LT_EOF
-], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
-package foo
-func foo() {
-}
-_LT_EOF
-])
-
-_lt_libdeps_save_CFLAGS=$CFLAGS
-case "$CC $CFLAGS " in #(
-*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
-*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
-*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
-esac
-
-dnl Parse the compiler output and extract the necessary
-dnl objects, libraries and library flags.
-if AC_TRY_EVAL(ac_compile); then
-  # Parse the compiler output and extract the necessary
-  # objects, libraries and library flags.
-
-  # Sentinel used to keep track of whether or not we are before
-  # the conftest object file.
-  pre_test_object_deps_done=no
-
-  for p in `eval "$output_verbose_link_cmd"`; do
-    case ${prev}${p} in
-
-    -L* | -R* | -l*)
-       # Some compilers place space between "-{L,R}" and the path.
-       # Remove the space.
-       if test $p = "-L" ||
-          test $p = "-R"; then
-	 prev=$p
-	 continue
-       fi
-
-       # Expand the sysroot to ease extracting the directories later.
-       if test -z "$prev"; then
-         case $p in
-         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
-         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
-         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
-         esac
-       fi
-       case $p in
-       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
-       esac
-       if test "$pre_test_object_deps_done" = no; then
-	 case ${prev} in
-	 -L | -R)
-	   # Internal compiler library paths should come after those
-	   # provided the user.  The postdeps already come after the
-	   # user supplied libs so there is no need to process them.
-	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
-	     _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
-	   else
-	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
-	   fi
-	   ;;
-	 # The "-l" case would never come before the object being
-	 # linked, so don't bother handling this case.
-	 esac
-       else
-	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
-	   _LT_TAGVAR(postdeps, $1)="${prev}${p}"
-	 else
-	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
-	 fi
-       fi
-       prev=
-       ;;
-
-    *.lto.$objext) ;; # Ignore GCC LTO objects
-    *.$objext)
-       # This assumes that the test object file only shows up
-       # once in the compiler output.
-       if test "$p" = "conftest.$objext"; then
-	 pre_test_object_deps_done=yes
-	 continue
-       fi
-
-       if test "$pre_test_object_deps_done" = no; then
-	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
-	   _LT_TAGVAR(predep_objects, $1)="$p"
-	 else
-	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
-	 fi
-       else
-	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
-	   _LT_TAGVAR(postdep_objects, $1)="$p"
-	 else
-	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
-	 fi
-       fi
-       ;;
-
-    *) ;; # Ignore the rest.
-
-    esac
-  done
-
-  # Clean up.
-  rm -f a.out a.exe
-else
-  echo "libtool.m4: error: problem compiling $1 test program"
-fi
-
-$RM -f confest.$objext
-CFLAGS=$_lt_libdeps_save_CFLAGS
-
-# PORTME: override above test on systems where it is broken
-m4_if([$1], [CXX],
-[case $host_os in
-interix[[3-9]]*)
-  # Interix 3.5 installs completely hosed .la files for C++, so rather than
-  # hack all around it, let's just trust "g++" to DTRT.
-  _LT_TAGVAR(predep_objects,$1)=
-  _LT_TAGVAR(postdep_objects,$1)=
-  _LT_TAGVAR(postdeps,$1)=
-  ;;
-
-linux*)
-  case `$CC -V 2>&1 | sed 5q` in
-  *Sun\ C*)
-    # Sun C++ 5.9
-
-    # The more standards-conforming stlport4 library is
-    # incompatible with the Cstd library. Avoid specifying
-    # it if it's in CXXFLAGS. Ignore libCrun as
-    # -library=stlport4 depends on it.
-    case " $CXX $CXXFLAGS " in
-    *" -library=stlport4 "*)
-      solaris_use_stlport4=yes
-      ;;
-    esac
-
-    if test "$solaris_use_stlport4" != yes; then
-      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
-    fi
-    ;;
-  esac
-  ;;
-
-solaris*)
-  case $cc_basename in
-  CC* | sunCC*)
-    # The more standards-conforming stlport4 library is
-    # incompatible with the Cstd library. Avoid specifying
-    # it if it's in CXXFLAGS. Ignore libCrun as
-    # -library=stlport4 depends on it.
-    case " $CXX $CXXFLAGS " in
-    *" -library=stlport4 "*)
-      solaris_use_stlport4=yes
-      ;;
-    esac
-
-    # Adding this requires a known-good setup of shared libraries for
-    # Sun compiler versions before 5.6, else PIC objects from an old
-    # archive will be linked into the output, leading to subtle bugs.
-    if test "$solaris_use_stlport4" != yes; then
-      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
-    fi
-    ;;
-  esac
-  ;;
-esac
-])
-
-case " $_LT_TAGVAR(postdeps, $1) " in
-*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
-esac
- _LT_TAGVAR(compiler_lib_search_dirs, $1)=
-if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
- _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
-fi
-_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
-    [The directories searched by this compiler when creating a shared library])
-_LT_TAGDECL([], [predep_objects], [1],
-    [Dependencies to place before and after the objects being linked to
-    create a shared library])
-_LT_TAGDECL([], [postdep_objects], [1])
-_LT_TAGDECL([], [predeps], [1])
-_LT_TAGDECL([], [postdeps], [1])
-_LT_TAGDECL([], [compiler_lib_search_path], [1],
-    [The library search path used internally by the compiler when linking
-    a shared library])
-])# _LT_SYS_HIDDEN_LIBDEPS
-
-
-# _LT_LANG_F77_CONFIG([TAG])
-# --------------------------
-# Ensure that the configuration variables for a Fortran 77 compiler are
-# suitably defined.  These variables are subsequently used by _LT_CONFIG
-# to write the compiler configuration to `libtool'.
-m4_defun([_LT_LANG_F77_CONFIG],
-[AC_LANG_PUSH(Fortran 77)
-if test -z "$F77" || test "X$F77" = "Xno"; then
-  _lt_disable_F77=yes
-fi
-
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
-_LT_TAGVAR(allow_undefined_flag, $1)=
-_LT_TAGVAR(always_export_symbols, $1)=no
-_LT_TAGVAR(archive_expsym_cmds, $1)=
-_LT_TAGVAR(export_dynamic_flag_spec, $1)=
-_LT_TAGVAR(hardcode_direct, $1)=no
-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
-_LT_TAGVAR(hardcode_libdir_separator, $1)=
-_LT_TAGVAR(hardcode_minus_L, $1)=no
-_LT_TAGVAR(hardcode_automatic, $1)=no
-_LT_TAGVAR(inherit_rpath, $1)=no
-_LT_TAGVAR(module_cmds, $1)=
-_LT_TAGVAR(module_expsym_cmds, $1)=
-_LT_TAGVAR(link_all_deplibs, $1)=unknown
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
-_LT_TAGVAR(reload_flag, $1)=$reload_flag
-_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
-_LT_TAGVAR(no_undefined_flag, $1)=
-_LT_TAGVAR(whole_archive_flag_spec, $1)=
-_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
-
-# Source file extension for f77 test sources.
-ac_ext=f
-
-# Object file extension for compiled f77 test sources.
-objext=o
-_LT_TAGVAR(objext, $1)=$objext
-
-# No sense in running all these tests if we already determined that
-# the F77 compiler isn't working.  Some variables (like enable_shared)
-# are currently assumed to apply to all compilers on this platform,
-# and will be corrupted by setting them based on a non-working compiler.
-if test "$_lt_disable_F77" != yes; then
-  # Code to be used in simple compile tests
-  lt_simple_compile_test_code="\
-      subroutine t
-      return
-      end
-"
-
-  # Code to be used in simple link tests
-  lt_simple_link_test_code="\
-      program t
-      end
-"
-
-  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
-  _LT_TAG_COMPILER
-
-  # save warnings/boilerplate of simple test code
-  _LT_COMPILER_BOILERPLATE
-  _LT_LINKER_BOILERPLATE
-
-  # Allow CC to be a program name with arguments.
-  lt_save_CC="$CC"
-  lt_save_GCC=$GCC
-  lt_save_CFLAGS=$CFLAGS
-  CC=${F77-"f77"}
-  CFLAGS=$FFLAGS
-  compiler=$CC
-  _LT_TAGVAR(compiler, $1)=$CC
-  _LT_CC_BASENAME([$compiler])
-  GCC=$G77
-  if test -n "$compiler"; then
-    AC_MSG_CHECKING([if libtool supports shared libraries])
-    AC_MSG_RESULT([$can_build_shared])
-
-    AC_MSG_CHECKING([whether to build shared libraries])
-    test "$can_build_shared" = "no" && enable_shared=no
-
-    # On AIX, shared libraries and static libraries use the same namespace, and
-    # are all built from PIC.
-    case $host_os in
-      aix3*)
-        test "$enable_shared" = yes && enable_static=no
-        if test -n "$RANLIB"; then
-          archive_cmds="$archive_cmds~\$RANLIB \$lib"
-          postinstall_cmds='$RANLIB $lib'
-        fi
-        ;;
-      aix[[4-9]]*)
-	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
-	  test "$enable_shared" = yes && enable_static=no
-	fi
-        ;;
-    esac
-    AC_MSG_RESULT([$enable_shared])
-
-    AC_MSG_CHECKING([whether to build static libraries])
-    # Make sure either enable_shared or enable_static is yes.
-    test "$enable_shared" = yes || enable_static=yes
-    AC_MSG_RESULT([$enable_static])
-
-    _LT_TAGVAR(GCC, $1)="$G77"
-    _LT_TAGVAR(LD, $1)="$LD"
-
-    ## CAVEAT EMPTOR:
-    ## There is no encapsulation within the following macros, do not change
-    ## the running order or otherwise move them around unless you know exactly
-    ## what you are doing...
-    _LT_COMPILER_PIC($1)
-    _LT_COMPILER_C_O($1)
-    _LT_COMPILER_FILE_LOCKS($1)
-    _LT_LINKER_SHLIBS($1)
-    _LT_SYS_DYNAMIC_LINKER($1)
-    _LT_LINKER_HARDCODE_LIBPATH($1)
-
-    _LT_CONFIG($1)
-  fi # test -n "$compiler"
-
-  GCC=$lt_save_GCC
-  CC="$lt_save_CC"
-  CFLAGS="$lt_save_CFLAGS"
-fi # test "$_lt_disable_F77" != yes
-
-AC_LANG_POP
-])# _LT_LANG_F77_CONFIG
-
-
-# _LT_LANG_FC_CONFIG([TAG])
-# -------------------------
-# Ensure that the configuration variables for a Fortran compiler are
-# suitably defined.  These variables are subsequently used by _LT_CONFIG
-# to write the compiler configuration to `libtool'.
-m4_defun([_LT_LANG_FC_CONFIG],
-[AC_LANG_PUSH(Fortran)
-
-if test -z "$FC" || test "X$FC" = "Xno"; then
-  _lt_disable_FC=yes
-fi
-
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
-_LT_TAGVAR(allow_undefined_flag, $1)=
-_LT_TAGVAR(always_export_symbols, $1)=no
-_LT_TAGVAR(archive_expsym_cmds, $1)=
-_LT_TAGVAR(export_dynamic_flag_spec, $1)=
-_LT_TAGVAR(hardcode_direct, $1)=no
-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
-_LT_TAGVAR(hardcode_libdir_separator, $1)=
-_LT_TAGVAR(hardcode_minus_L, $1)=no
-_LT_TAGVAR(hardcode_automatic, $1)=no
-_LT_TAGVAR(inherit_rpath, $1)=no
-_LT_TAGVAR(module_cmds, $1)=
-_LT_TAGVAR(module_expsym_cmds, $1)=
-_LT_TAGVAR(link_all_deplibs, $1)=unknown
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
-_LT_TAGVAR(reload_flag, $1)=$reload_flag
-_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
-_LT_TAGVAR(no_undefined_flag, $1)=
-_LT_TAGVAR(whole_archive_flag_spec, $1)=
-_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
-
-# Source file extension for fc test sources.
-ac_ext=${ac_fc_srcext-f}
-
-# Object file extension for compiled fc test sources.
-objext=o
-_LT_TAGVAR(objext, $1)=$objext
-
-# No sense in running all these tests if we already determined that
-# the FC compiler isn't working.  Some variables (like enable_shared)
-# are currently assumed to apply to all compilers on this platform,
-# and will be corrupted by setting them based on a non-working compiler.
-if test "$_lt_disable_FC" != yes; then
-  # Code to be used in simple compile tests
-  lt_simple_compile_test_code="\
-      subroutine t
-      return
-      end
-"
-
-  # Code to be used in simple link tests
-  lt_simple_link_test_code="\
-      program t
-      end
-"
-
-  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
-  _LT_TAG_COMPILER
-
-  # save warnings/boilerplate of simple test code
-  _LT_COMPILER_BOILERPLATE
-  _LT_LINKER_BOILERPLATE
-
-  # Allow CC to be a program name with arguments.
-  lt_save_CC="$CC"
-  lt_save_GCC=$GCC
-  lt_save_CFLAGS=$CFLAGS
-  CC=${FC-"f95"}
-  CFLAGS=$FCFLAGS
-  compiler=$CC
-  GCC=$ac_cv_fc_compiler_gnu
-
-  _LT_TAGVAR(compiler, $1)=$CC
-  _LT_CC_BASENAME([$compiler])
-
-  if test -n "$compiler"; then
-    AC_MSG_CHECKING([if libtool supports shared libraries])
-    AC_MSG_RESULT([$can_build_shared])
-
-    AC_MSG_CHECKING([whether to build shared libraries])
-    test "$can_build_shared" = "no" && enable_shared=no
-
-    # On AIX, shared libraries and static libraries use the same namespace, and
-    # are all built from PIC.
-    case $host_os in
-      aix3*)
-        test "$enable_shared" = yes && enable_static=no
-        if test -n "$RANLIB"; then
-          archive_cmds="$archive_cmds~\$RANLIB \$lib"
-          postinstall_cmds='$RANLIB $lib'
-        fi
-        ;;
-      aix[[4-9]]*)
-	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
-	  test "$enable_shared" = yes && enable_static=no
-	fi
-        ;;
-    esac
-    AC_MSG_RESULT([$enable_shared])
-
-    AC_MSG_CHECKING([whether to build static libraries])
-    # Make sure either enable_shared or enable_static is yes.
-    test "$enable_shared" = yes || enable_static=yes
-    AC_MSG_RESULT([$enable_static])
-
-    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
-    _LT_TAGVAR(LD, $1)="$LD"
-
-    ## CAVEAT EMPTOR:
-    ## There is no encapsulation within the following macros, do not change
-    ## the running order or otherwise move them around unless you know exactly
-    ## what you are doing...
-    _LT_SYS_HIDDEN_LIBDEPS($1)
-    _LT_COMPILER_PIC($1)
-    _LT_COMPILER_C_O($1)
-    _LT_COMPILER_FILE_LOCKS($1)
-    _LT_LINKER_SHLIBS($1)
-    _LT_SYS_DYNAMIC_LINKER($1)
-    _LT_LINKER_HARDCODE_LIBPATH($1)
-
-    _LT_CONFIG($1)
-  fi # test -n "$compiler"
-
-  GCC=$lt_save_GCC
-  CC=$lt_save_CC
-  CFLAGS=$lt_save_CFLAGS
-fi # test "$_lt_disable_FC" != yes
-
-AC_LANG_POP
-])# _LT_LANG_FC_CONFIG
-
-
-# _LT_LANG_GCJ_CONFIG([TAG])
-# --------------------------
-# Ensure that the configuration variables for the GNU Java Compiler compiler
-# are suitably defined.  These variables are subsequently used by _LT_CONFIG
-# to write the compiler configuration to `libtool'.
-m4_defun([_LT_LANG_GCJ_CONFIG],
-[AC_REQUIRE([LT_PROG_GCJ])dnl
-AC_LANG_SAVE
-
-# Source file extension for Java test sources.
-ac_ext=java
-
-# Object file extension for compiled Java test sources.
-objext=o
-_LT_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="class foo {}"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_TAG_COMPILER
-
-# save warnings/boilerplate of simple test code
-_LT_COMPILER_BOILERPLATE
-_LT_LINKER_BOILERPLATE
-
-# Allow CC to be a program name with arguments.
-lt_save_CC=$CC
-lt_save_CFLAGS=$CFLAGS
-lt_save_GCC=$GCC
-GCC=yes
-CC=${GCJ-"gcj"}
-CFLAGS=$GCJFLAGS
-compiler=$CC
-_LT_TAGVAR(compiler, $1)=$CC
-_LT_TAGVAR(LD, $1)="$LD"
-_LT_CC_BASENAME([$compiler])
-
-# GCJ did not exist at the time GCC didn't implicitly link libc in.
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
-
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
-_LT_TAGVAR(reload_flag, $1)=$reload_flag
-_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
-
-## CAVEAT EMPTOR:
-## There is no encapsulation within the following macros, do not change
-## the running order or otherwise move them around unless you know exactly
-## what you are doing...
-if test -n "$compiler"; then
-  _LT_COMPILER_NO_RTTI($1)
-  _LT_COMPILER_PIC($1)
-  _LT_COMPILER_C_O($1)
-  _LT_COMPILER_FILE_LOCKS($1)
-  _LT_LINKER_SHLIBS($1)
-  _LT_LINKER_HARDCODE_LIBPATH($1)
-
-  _LT_CONFIG($1)
-fi
-
-AC_LANG_RESTORE
-
-GCC=$lt_save_GCC
-CC=$lt_save_CC
-CFLAGS=$lt_save_CFLAGS
-])# _LT_LANG_GCJ_CONFIG
-
-
-# _LT_LANG_GO_CONFIG([TAG])
-# --------------------------
-# Ensure that the configuration variables for the GNU Go compiler
-# are suitably defined.  These variables are subsequently used by _LT_CONFIG
-# to write the compiler configuration to `libtool'.
-m4_defun([_LT_LANG_GO_CONFIG],
-[AC_REQUIRE([LT_PROG_GO])dnl
-AC_LANG_SAVE
-
-# Source file extension for Go test sources.
-ac_ext=go
-
-# Object file extension for compiled Go test sources.
-objext=o
-_LT_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="package main; func main() { }"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='package main; func main() { }'
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_TAG_COMPILER
-
-# save warnings/boilerplate of simple test code
-_LT_COMPILER_BOILERPLATE
-_LT_LINKER_BOILERPLATE
-
-# Allow CC to be a program name with arguments.
-lt_save_CC=$CC
-lt_save_CFLAGS=$CFLAGS
-lt_save_GCC=$GCC
-GCC=yes
-CC=${GOC-"gccgo"}
-CFLAGS=$GOFLAGS
-compiler=$CC
-_LT_TAGVAR(compiler, $1)=$CC
-_LT_TAGVAR(LD, $1)="$LD"
-_LT_CC_BASENAME([$compiler])
-
-# Go did not exist at the time GCC didn't implicitly link libc in.
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
-
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
-_LT_TAGVAR(reload_flag, $1)=$reload_flag
-_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
-
-## CAVEAT EMPTOR:
-## There is no encapsulation within the following macros, do not change
-## the running order or otherwise move them around unless you know exactly
-## what you are doing...
-if test -n "$compiler"; then
-  _LT_COMPILER_NO_RTTI($1)
-  _LT_COMPILER_PIC($1)
-  _LT_COMPILER_C_O($1)
-  _LT_COMPILER_FILE_LOCKS($1)
-  _LT_LINKER_SHLIBS($1)
-  _LT_LINKER_HARDCODE_LIBPATH($1)
-
-  _LT_CONFIG($1)
-fi
-
-AC_LANG_RESTORE
-
-GCC=$lt_save_GCC
-CC=$lt_save_CC
-CFLAGS=$lt_save_CFLAGS
-])# _LT_LANG_GO_CONFIG
-
-
-# _LT_LANG_RC_CONFIG([TAG])
-# -------------------------
-# Ensure that the configuration variables for the Windows resource compiler
-# are suitably defined.  These variables are subsequently used by _LT_CONFIG
-# to write the compiler configuration to `libtool'.
-m4_defun([_LT_LANG_RC_CONFIG],
-[AC_REQUIRE([LT_PROG_RC])dnl
-AC_LANG_SAVE
-
-# Source file extension for RC test sources.
-ac_ext=rc
-
-# Object file extension for compiled RC test sources.
-objext=o
-_LT_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
-
-# Code to be used in simple link tests
-lt_simple_link_test_code="$lt_simple_compile_test_code"
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_TAG_COMPILER
-
-# save warnings/boilerplate of simple test code
-_LT_COMPILER_BOILERPLATE
-_LT_LINKER_BOILERPLATE
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-lt_save_CFLAGS=$CFLAGS
-lt_save_GCC=$GCC
-GCC=
-CC=${RC-"windres"}
-CFLAGS=
-compiler=$CC
-_LT_TAGVAR(compiler, $1)=$CC
-_LT_CC_BASENAME([$compiler])
-_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
-
-if test -n "$compiler"; then
-  :
-  _LT_CONFIG($1)
-fi
-
-GCC=$lt_save_GCC
-AC_LANG_RESTORE
-CC=$lt_save_CC
-CFLAGS=$lt_save_CFLAGS
-])# _LT_LANG_RC_CONFIG
-
-
-# LT_PROG_GCJ
-# -----------
-AC_DEFUN([LT_PROG_GCJ],
-[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
-  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
-    [AC_CHECK_TOOL(GCJ, gcj,)
-      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
-      AC_SUBST(GCJFLAGS)])])[]dnl
-])
-
-# Old name:
-AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
-
-
-# LT_PROG_GO
-# ----------
-AC_DEFUN([LT_PROG_GO],
-[AC_CHECK_TOOL(GOC, gccgo,)
-])
-
-
-# LT_PROG_RC
-# ----------
-AC_DEFUN([LT_PROG_RC],
-[AC_CHECK_TOOL(RC, windres,)
-])
-
-# Old name:
-AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([LT_AC_PROG_RC], [])
-
-
-# _LT_DECL_EGREP
-# --------------
-# If we don't have a new enough Autoconf to choose the best grep
-# available, choose the one first in the user's PATH.
-m4_defun([_LT_DECL_EGREP],
-[AC_REQUIRE([AC_PROG_EGREP])dnl
-AC_REQUIRE([AC_PROG_FGREP])dnl
-test -z "$GREP" && GREP=grep
-_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
-_LT_DECL([], [EGREP], [1], [An ERE matcher])
-_LT_DECL([], [FGREP], [1], [A literal string matcher])
-dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
-AC_SUBST([GREP])
-])
-
-
-# _LT_DECL_OBJDUMP
-# --------------
-# If we don't have a new enough Autoconf to choose the best objdump
-# available, choose the one first in the user's PATH.
-m4_defun([_LT_DECL_OBJDUMP],
-[AC_CHECK_TOOL(OBJDUMP, objdump, false)
-test -z "$OBJDUMP" && OBJDUMP=objdump
-_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
-AC_SUBST([OBJDUMP])
-])
-
-# _LT_DECL_DLLTOOL
-# ----------------
-# Ensure DLLTOOL variable is set.
-m4_defun([_LT_DECL_DLLTOOL],
-[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
-test -z "$DLLTOOL" && DLLTOOL=dlltool
-_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
-AC_SUBST([DLLTOOL])
-])
-
-# _LT_DECL_SED
-# ------------
-# Check for a fully-functional sed program, that truncates
-# as few characters as possible.  Prefer GNU sed if found.
-m4_defun([_LT_DECL_SED],
-[AC_PROG_SED
-test -z "$SED" && SED=sed
-Xsed="$SED -e 1s/^X//"
-_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
-_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
-    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
-])# _LT_DECL_SED
-
-m4_ifndef([AC_PROG_SED], [
-############################################################
-# NOTE: This macro has been submitted for inclusion into   #
-#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
-#  a released version of Autoconf we should remove this    #
-#  macro and use it instead.                               #
-############################################################
-
-m4_defun([AC_PROG_SED],
-[AC_MSG_CHECKING([for a sed that does not truncate output])
-AC_CACHE_VAL(lt_cv_path_SED,
-[# Loop through the user's path and test for sed and gsed.
-# Then use that list of sed's as ones to test for truncation.
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for lt_ac_prog in sed gsed; do
-    for ac_exec_ext in '' $ac_executable_extensions; do
-      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
-        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
-      fi
-    done
-  done
-done
-IFS=$as_save_IFS
-lt_ac_max=0
-lt_ac_count=0
-# Add /usr/xpg4/bin/sed as it is typically found on Solaris
-# along with /bin/sed that truncates output.
-for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
-  test ! -f $lt_ac_sed && continue
-  cat /dev/null > conftest.in
-  lt_ac_count=0
-  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
-  # Check for GNU sed and select it if it is found.
-  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
-    lt_cv_path_SED=$lt_ac_sed
-    break
-  fi
-  while true; do
-    cat conftest.in conftest.in >conftest.tmp
-    mv conftest.tmp conftest.in
-    cp conftest.in conftest.nl
-    echo >>conftest.nl
-    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
-    cmp -s conftest.out conftest.nl || break
-    # 10000 chars as input seems more than enough
-    test $lt_ac_count -gt 10 && break
-    lt_ac_count=`expr $lt_ac_count + 1`
-    if test $lt_ac_count -gt $lt_ac_max; then
-      lt_ac_max=$lt_ac_count
-      lt_cv_path_SED=$lt_ac_sed
-    fi
-  done
-done
-])
-SED=$lt_cv_path_SED
-AC_SUBST([SED])
-AC_MSG_RESULT([$SED])
-])#AC_PROG_SED
-])#m4_ifndef
-
-# Old name:
-AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([LT_AC_PROG_SED], [])
-
-
-# _LT_CHECK_SHELL_FEATURES
-# ------------------------
-# Find out whether the shell is Bourne or XSI compatible,
-# or has some other useful features.
-m4_defun([_LT_CHECK_SHELL_FEATURES],
-[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
-# Try some XSI features
-xsi_shell=no
-( _lt_dummy="a/b/c"
-  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
-      = c,a/b,b/c, \
-    && eval 'test $(( 1 + 1 )) -eq 2 \
-    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
-  && xsi_shell=yes
-AC_MSG_RESULT([$xsi_shell])
-_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
-
-AC_MSG_CHECKING([whether the shell understands "+="])
-lt_shell_append=no
-( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
-    >/dev/null 2>&1 \
-  && lt_shell_append=yes
-AC_MSG_RESULT([$lt_shell_append])
-_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
-
-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
-  lt_unset=unset
-else
-  lt_unset=false
-fi
-_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
-
-# test EBCDIC or ASCII
-case `echo X|tr X '\101'` in
- A) # ASCII based system
-    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
-  lt_SP2NL='tr \040 \012'
-  lt_NL2SP='tr \015\012 \040\040'
-  ;;
- *) # EBCDIC based system
-  lt_SP2NL='tr \100 \n'
-  lt_NL2SP='tr \r\n \100\100'
-  ;;
-esac
-_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
-_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
-])# _LT_CHECK_SHELL_FEATURES
-
-
-# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
-# ------------------------------------------------------
-# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
-# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
-m4_defun([_LT_PROG_FUNCTION_REPLACE],
-[dnl {
-sed -e '/^$1 ()$/,/^} # $1 /c\
-$1 ()\
-{\
-m4_bpatsubsts([$2], [$], [\\], [^\([	 ]\)], [\\\1])
-} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
-  && mv -f "$cfgfile.tmp" "$cfgfile" \
-    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-test 0 -eq $? || _lt_function_replace_fail=:
-])
-
-
-# _LT_PROG_REPLACE_SHELLFNS
-# -------------------------
-# Replace existing portable implementations of several shell functions with
-# equivalent extended shell implementations where those features are available..
-m4_defun([_LT_PROG_REPLACE_SHELLFNS],
-[if test x"$xsi_shell" = xyes; then
-  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
-    case ${1} in
-      */*) func_dirname_result="${1%/*}${2}" ;;
-      *  ) func_dirname_result="${3}" ;;
-    esac])
-
-  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
-    func_basename_result="${1##*/}"])
-
-  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
-    case ${1} in
-      */*) func_dirname_result="${1%/*}${2}" ;;
-      *  ) func_dirname_result="${3}" ;;
-    esac
-    func_basename_result="${1##*/}"])
-
-  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
-    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
-    # positional parameters, so assign one to ordinary parameter first.
-    func_stripname_result=${3}
-    func_stripname_result=${func_stripname_result#"${1}"}
-    func_stripname_result=${func_stripname_result%"${2}"}])
-
-  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
-    func_split_long_opt_name=${1%%=*}
-    func_split_long_opt_arg=${1#*=}])
-
-  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
-    func_split_short_opt_arg=${1#??}
-    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
-
-  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
-    case ${1} in
-      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
-      *)    func_lo2o_result=${1} ;;
-    esac])
-
-  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
-
-  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
-
-  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
-fi
-
-if test x"$lt_shell_append" = xyes; then
-  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
-
-  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
-    func_quote_for_eval "${2}"
-dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
-    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
-
-  # Save a `func_append' function call where possible by direct use of '+='
-  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
-    && mv -f "$cfgfile.tmp" "$cfgfile" \
-      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-  test 0 -eq $? || _lt_function_replace_fail=:
-else
-  # Save a `func_append' function call even when '+=' is not available
-  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
-    && mv -f "$cfgfile.tmp" "$cfgfile" \
-      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
-  test 0 -eq $? || _lt_function_replace_fail=:
-fi
-
-if test x"$_lt_function_replace_fail" = x":"; then
-  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
-fi
-])
-
-# _LT_PATH_CONVERSION_FUNCTIONS
-# -----------------------------
-# Determine which file name conversion functions should be used by
-# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
-# for certain cross-compile configurations and native mingw.
-m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-AC_MSG_CHECKING([how to convert $build file names to $host format])
-AC_CACHE_VAL(lt_cv_to_host_file_cmd,
-[case $host in
-  *-*-mingw* )
-    case $build in
-      *-*-mingw* ) # actually msys
-        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
-        ;;
-      *-*-cygwin* )
-        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
-        ;;
-      * ) # otherwise, assume *nix
-        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
-        ;;
-    esac
-    ;;
-  *-*-cygwin* )
-    case $build in
-      *-*-mingw* ) # actually msys
-        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
-        ;;
-      *-*-cygwin* )
-        lt_cv_to_host_file_cmd=func_convert_file_noop
-        ;;
-      * ) # otherwise, assume *nix
-        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
-        ;;
-    esac
-    ;;
-  * ) # unhandled hosts (and "normal" native builds)
-    lt_cv_to_host_file_cmd=func_convert_file_noop
-    ;;
-esac
-])
-to_host_file_cmd=$lt_cv_to_host_file_cmd
-AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
-_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
-         [0], [convert $build file names to $host format])dnl
-
-AC_MSG_CHECKING([how to convert $build file names to toolchain format])
-AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
-[#assume ordinary cross tools, or native build.
-lt_cv_to_tool_file_cmd=func_convert_file_noop
-case $host in
-  *-*-mingw* )
-    case $build in
-      *-*-mingw* ) # actually msys
-        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
-        ;;
-    esac
-    ;;
-esac
-])
-to_tool_file_cmd=$lt_cv_to_tool_file_cmd
-AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
-_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
-         [0], [convert $build files to toolchain format])dnl
-])# _LT_PATH_CONVERSION_FUNCTIONS
diff --git a/libqfits/m4macros/ltoptions.m4 b/libqfits/m4macros/ltoptions.m4
deleted file mode 100644
index 5d9acd8..0000000
--- a/libqfits/m4macros/ltoptions.m4
+++ /dev/null
@@ -1,384 +0,0 @@
-# Helper functions for option handling.                    -*- Autoconf -*-
-#
-#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
-#   Inc.
-#   Written by Gary V. Vaughan, 2004
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-# serial 7 ltoptions.m4
-
-# This is to help aclocal find these macros, as it can't see m4_define.
-AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
-
-
-# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
-# ------------------------------------------
-m4_define([_LT_MANGLE_OPTION],
-[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
-
-
-# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
-# ---------------------------------------
-# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
-# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
-# saved as a flag.
-m4_define([_LT_SET_OPTION],
-[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
-m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
-        _LT_MANGLE_DEFUN([$1], [$2]),
-    [m4_warning([Unknown $1 option `$2'])])[]dnl
-])
-
-
-# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
-# ------------------------------------------------------------
-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
-m4_define([_LT_IF_OPTION],
-[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
-
-
-# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
-# -------------------------------------------------------
-# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
-# are set.
-m4_define([_LT_UNLESS_OPTIONS],
-[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
-	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
-		      [m4_define([$0_found])])])[]dnl
-m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
-])[]dnl
-])
-
-
-# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
-# ----------------------------------------
-# OPTION-LIST is a space-separated list of Libtool options associated
-# with MACRO-NAME.  If any OPTION has a matching handler declared with
-# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
-# the unknown option and exit.
-m4_defun([_LT_SET_OPTIONS],
-[# Set options
-m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
-    [_LT_SET_OPTION([$1], _LT_Option)])
-
-m4_if([$1],[LT_INIT],[
-  dnl
-  dnl Simply set some default values (i.e off) if boolean options were not
-  dnl specified:
-  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
-  ])
-  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
-  ])
-  dnl
-  dnl If no reference was made to various pairs of opposing options, then
-  dnl we run the default mode handler for the pair.  For example, if neither
-  dnl `shared' nor `disable-shared' was passed, we enable building of shared
-  dnl archives by default:
-  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
-  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
-  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
-  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
-  		   [_LT_ENABLE_FAST_INSTALL])
-  ])
-])# _LT_SET_OPTIONS
-
-
-## --------------------------------- ##
-## Macros to handle LT_INIT options. ##
-## --------------------------------- ##
-
-# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
-# -----------------------------------------
-m4_define([_LT_MANGLE_DEFUN],
-[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
-
-
-# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
-# -----------------------------------------------
-m4_define([LT_OPTION_DEFINE],
-[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
-])# LT_OPTION_DEFINE
-
-
-# dlopen
-# ------
-LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
-])
-
-AU_DEFUN([AC_LIBTOOL_DLOPEN],
-[_LT_SET_OPTION([LT_INIT], [dlopen])
-AC_DIAGNOSE([obsolete],
-[$0: Remove this warning and the call to _LT_SET_OPTION when you
-put the `dlopen' option into LT_INIT's first parameter.])
-])
-
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
-
-
-# win32-dll
-# ---------
-# Declare package support for building win32 dll's.
-LT_OPTION_DEFINE([LT_INIT], [win32-dll],
-[enable_win32_dll=yes
-
-case $host in
-*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
-  AC_CHECK_TOOL(AS, as, false)
-  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
-  AC_CHECK_TOOL(OBJDUMP, objdump, false)
-  ;;
-esac
-
-test -z "$AS" && AS=as
-_LT_DECL([], [AS],      [1], [Assembler program])dnl
-
-test -z "$DLLTOOL" && DLLTOOL=dlltool
-_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
-
-test -z "$OBJDUMP" && OBJDUMP=objdump
-_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
-])# win32-dll
-
-AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-_LT_SET_OPTION([LT_INIT], [win32-dll])
-AC_DIAGNOSE([obsolete],
-[$0: Remove this warning and the call to _LT_SET_OPTION when you
-put the `win32-dll' option into LT_INIT's first parameter.])
-])
-
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
-
-
-# _LT_ENABLE_SHARED([DEFAULT])
-# ----------------------------
-# implement the --enable-shared flag, and supports the `shared' and
-# `disable-shared' LT_INIT options.
-# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
-m4_define([_LT_ENABLE_SHARED],
-[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
-AC_ARG_ENABLE([shared],
-    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
-	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
-    [p=${PACKAGE-default}
-    case $enableval in
-    yes) enable_shared=yes ;;
-    no) enable_shared=no ;;
-    *)
-      enable_shared=no
-      # Look at the argument we got.  We use all the common list separators.
-      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
-      for pkg in $enableval; do
-	IFS="$lt_save_ifs"
-	if test "X$pkg" = "X$p"; then
-	  enable_shared=yes
-	fi
-      done
-      IFS="$lt_save_ifs"
-      ;;
-    esac],
-    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
-
-    _LT_DECL([build_libtool_libs], [enable_shared], [0],
-	[Whether or not to build shared libraries])
-])# _LT_ENABLE_SHARED
-
-LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
-LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
-
-# Old names:
-AC_DEFUN([AC_ENABLE_SHARED],
-[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
-])
-
-AC_DEFUN([AC_DISABLE_SHARED],
-[_LT_SET_OPTION([LT_INIT], [disable-shared])
-])
-
-AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
-AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
-
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AM_ENABLE_SHARED], [])
-dnl AC_DEFUN([AM_DISABLE_SHARED], [])
-
-
-
-# _LT_ENABLE_STATIC([DEFAULT])
-# ----------------------------
-# implement the --enable-static flag, and support the `static' and
-# `disable-static' LT_INIT options.
-# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
-m4_define([_LT_ENABLE_STATIC],
-[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
-AC_ARG_ENABLE([static],
-    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
-	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
-    [p=${PACKAGE-default}
-    case $enableval in
-    yes) enable_static=yes ;;
-    no) enable_static=no ;;
-    *)
-     enable_static=no
-      # Look at the argument we got.  We use all the common list separators.
-      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
-      for pkg in $enableval; do
-	IFS="$lt_save_ifs"
-	if test "X$pkg" = "X$p"; then
-	  enable_static=yes
-	fi
-      done
-      IFS="$lt_save_ifs"
-      ;;
-    esac],
-    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
-
-    _LT_DECL([build_old_libs], [enable_static], [0],
-	[Whether or not to build static libraries])
-])# _LT_ENABLE_STATIC
-
-LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
-LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
-
-# Old names:
-AC_DEFUN([AC_ENABLE_STATIC],
-[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
-])
-
-AC_DEFUN([AC_DISABLE_STATIC],
-[_LT_SET_OPTION([LT_INIT], [disable-static])
-])
-
-AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
-AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
-
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AM_ENABLE_STATIC], [])
-dnl AC_DEFUN([AM_DISABLE_STATIC], [])
-
-
-
-# _LT_ENABLE_FAST_INSTALL([DEFAULT])
-# ----------------------------------
-# implement the --enable-fast-install flag, and support the `fast-install'
-# and `disable-fast-install' LT_INIT options.
-# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
-m4_define([_LT_ENABLE_FAST_INSTALL],
-[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
-AC_ARG_ENABLE([fast-install],
-    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
-    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
-    [p=${PACKAGE-default}
-    case $enableval in
-    yes) enable_fast_install=yes ;;
-    no) enable_fast_install=no ;;
-    *)
-      enable_fast_install=no
-      # Look at the argument we got.  We use all the common list separators.
-      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
-      for pkg in $enableval; do
-	IFS="$lt_save_ifs"
-	if test "X$pkg" = "X$p"; then
-	  enable_fast_install=yes
-	fi
-      done
-      IFS="$lt_save_ifs"
-      ;;
-    esac],
-    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
-
-_LT_DECL([fast_install], [enable_fast_install], [0],
-	 [Whether or not to optimize for fast installation])dnl
-])# _LT_ENABLE_FAST_INSTALL
-
-LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
-LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
-
-# Old names:
-AU_DEFUN([AC_ENABLE_FAST_INSTALL],
-[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
-AC_DIAGNOSE([obsolete],
-[$0: Remove this warning and the call to _LT_SET_OPTION when you put
-the `fast-install' option into LT_INIT's first parameter.])
-])
-
-AU_DEFUN([AC_DISABLE_FAST_INSTALL],
-[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
-AC_DIAGNOSE([obsolete],
-[$0: Remove this warning and the call to _LT_SET_OPTION when you put
-the `disable-fast-install' option into LT_INIT's first parameter.])
-])
-
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
-dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
-
-
-# _LT_WITH_PIC([MODE])
-# --------------------
-# implement the --with-pic flag, and support the `pic-only' and `no-pic'
-# LT_INIT options.
-# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
-m4_define([_LT_WITH_PIC],
-[AC_ARG_WITH([pic],
-    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
-	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
-    [lt_p=${PACKAGE-default}
-    case $withval in
-    yes|no) pic_mode=$withval ;;
-    *)
-      pic_mode=default
-      # Look at the argument we got.  We use all the common list separators.
-      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
-      for lt_pkg in $withval; do
-	IFS="$lt_save_ifs"
-	if test "X$lt_pkg" = "X$lt_p"; then
-	  pic_mode=yes
-	fi
-      done
-      IFS="$lt_save_ifs"
-      ;;
-    esac],
-    [pic_mode=default])
-
-test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
-
-_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
-])# _LT_WITH_PIC
-
-LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
-LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
-
-# Old name:
-AU_DEFUN([AC_LIBTOOL_PICMODE],
-[_LT_SET_OPTION([LT_INIT], [pic-only])
-AC_DIAGNOSE([obsolete],
-[$0: Remove this warning and the call to _LT_SET_OPTION when you
-put the `pic-only' option into LT_INIT's first parameter.])
-])
-
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
-
-## ----------------- ##
-## LTDL_INIT Options ##
-## ----------------- ##
-
-m4_define([_LTDL_MODE], [])
-LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
-		 [m4_define([_LTDL_MODE], [nonrecursive])])
-LT_OPTION_DEFINE([LTDL_INIT], [recursive],
-		 [m4_define([_LTDL_MODE], [recursive])])
-LT_OPTION_DEFINE([LTDL_INIT], [subproject],
-		 [m4_define([_LTDL_MODE], [subproject])])
-
-m4_define([_LTDL_TYPE], [])
-LT_OPTION_DEFINE([LTDL_INIT], [installable],
-		 [m4_define([_LTDL_TYPE], [installable])])
-LT_OPTION_DEFINE([LTDL_INIT], [convenience],
-		 [m4_define([_LTDL_TYPE], [convenience])])
diff --git a/libqfits/m4macros/ltsugar.m4 b/libqfits/m4macros/ltsugar.m4
deleted file mode 100644
index 9000a05..0000000
--- a/libqfits/m4macros/ltsugar.m4
+++ /dev/null
@@ -1,123 +0,0 @@
-# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
-#
-# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
-# Written by Gary V. Vaughan, 2004
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-# serial 6 ltsugar.m4
-
-# This is to help aclocal find these macros, as it can't see m4_define.
-AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
-
-
-# lt_join(SEP, ARG1, [ARG2...])
-# -----------------------------
-# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
-# associated separator.
-# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
-# versions in m4sugar had bugs.
-m4_define([lt_join],
-[m4_if([$#], [1], [],
-       [$#], [2], [[$2]],
-       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
-m4_define([_lt_join],
-[m4_if([$#$2], [2], [],
-       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
-
-
-# lt_car(LIST)
-# lt_cdr(LIST)
-# ------------
-# Manipulate m4 lists.
-# These macros are necessary as long as will still need to support
-# Autoconf-2.59 which quotes differently.
-m4_define([lt_car], [[$1]])
-m4_define([lt_cdr],
-[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
-       [$#], 1, [],
-       [m4_dquote(m4_shift($@))])])
-m4_define([lt_unquote], $1)
-
-
-# lt_append(MACRO-NAME, STRING, [SEPARATOR])
-# ------------------------------------------
-# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
-# Note that neither SEPARATOR nor STRING are expanded; they are appended
-# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
-# No SEPARATOR is output if MACRO-NAME was previously undefined (different
-# than defined and empty).
-#
-# This macro is needed until we can rely on Autoconf 2.62, since earlier
-# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
-m4_define([lt_append],
-[m4_define([$1],
-	   m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
-
-
-
-# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
-# ----------------------------------------------------------
-# Produce a SEP delimited list of all paired combinations of elements of
-# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
-# has the form PREFIXmINFIXSUFFIXn.
-# Needed until we can rely on m4_combine added in Autoconf 2.62.
-m4_define([lt_combine],
-[m4_if(m4_eval([$# > 3]), [1],
-       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
-[[m4_foreach([_Lt_prefix], [$2],
-	     [m4_foreach([_Lt_suffix],
-		]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
-	[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
-
-
-# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
-# -----------------------------------------------------------------------
-# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
-# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
-m4_define([lt_if_append_uniq],
-[m4_ifdef([$1],
-	  [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
-		 [lt_append([$1], [$2], [$3])$4],
-		 [$5])],
-	  [lt_append([$1], [$2], [$3])$4])])
-
-
-# lt_dict_add(DICT, KEY, VALUE)
-# -----------------------------
-m4_define([lt_dict_add],
-[m4_define([$1($2)], [$3])])
-
-
-# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
-# --------------------------------------------
-m4_define([lt_dict_add_subkey],
-[m4_define([$1($2:$3)], [$4])])
-
-
-# lt_dict_fetch(DICT, KEY, [SUBKEY])
-# ----------------------------------
-m4_define([lt_dict_fetch],
-[m4_ifval([$3],
-	m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
-    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
-
-
-# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
-# -----------------------------------------------------------------
-m4_define([lt_if_dict_fetch],
-[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
-	[$5],
-    [$6])])
-
-
-# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
-# --------------------------------------------------------------
-m4_define([lt_dict_filter],
-[m4_if([$5], [], [],
-  [lt_join(m4_quote(m4_default([$4], [[, ]])),
-           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
-		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
-])
diff --git a/libqfits/m4macros/ltversion.m4 b/libqfits/m4macros/ltversion.m4
deleted file mode 100644
index 07a8602..0000000
--- a/libqfits/m4macros/ltversion.m4
+++ /dev/null
@@ -1,23 +0,0 @@
-# ltversion.m4 -- version numbers			-*- Autoconf -*-
-#
-#   Copyright (C) 2004 Free Software Foundation, Inc.
-#   Written by Scott James Remnant, 2004
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-# @configure_input@
-
-# serial 3337 ltversion.m4
-# This file is part of GNU Libtool
-
-m4_define([LT_PACKAGE_VERSION], [2.4.2])
-m4_define([LT_PACKAGE_REVISION], [1.3337])
-
-AC_DEFUN([LTVERSION_VERSION],
-[macro_version='2.4.2'
-macro_revision='1.3337'
-_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
-_LT_DECL(, macro_revision, 0)
-])
diff --git a/libqfits/m4macros/lt~obsolete.m4 b/libqfits/m4macros/lt~obsolete.m4
deleted file mode 100644
index c573da9..0000000
--- a/libqfits/m4macros/lt~obsolete.m4
+++ /dev/null
@@ -1,98 +0,0 @@
-# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
-#
-#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
-#   Written by Scott James Remnant, 2004.
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-# serial 5 lt~obsolete.m4
-
-# These exist entirely to fool aclocal when bootstrapping libtool.
-#
-# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
-# which have later been changed to m4_define as they aren't part of the
-# exported API, or moved to Autoconf or Automake where they belong.
-#
-# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
-# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
-# using a macro with the same name in our local m4/libtool.m4 it'll
-# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
-# and doesn't know about Autoconf macros at all.)
-#
-# So we provide this file, which has a silly filename so it's always
-# included after everything else.  This provides aclocal with the
-# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
-# because those macros already exist, or will be overwritten later.
-# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
-#
-# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
-# Yes, that means every name once taken will need to remain here until
-# we give up compatibility with versions before 1.7, at which point
-# we need to keep only those names which we still refer to.
-
-# This is to help aclocal find these macros, as it can't see m4_define.
-AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
-
-m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
-m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
-m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
-m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
-m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
-m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
-m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
-m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
-m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
-m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
-m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
-m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
-m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
-m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
-m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
-m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
-m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
-m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
-m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
-m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
-m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
-m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
-m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
-m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
-m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
-m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
-m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
-m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
-m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
-m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
-m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
-m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
-m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
-m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
-m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
-m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
-m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
-m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
-m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
-m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
-m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
-m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
-m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
-m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
-m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
-m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
-m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
-m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
-m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
-m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
-m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
-m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
-m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
-m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
-m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],	[AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
-m4_ifndef([_LT_AC_PROG_CXXCPP],		[AC_DEFUN([_LT_AC_PROG_CXXCPP])])
-m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],	[AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
-m4_ifndef([_LT_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
-m4_ifndef([_LT_PROG_F77],		[AC_DEFUN([_LT_PROG_F77])])
-m4_ifndef([_LT_PROG_FC],		[AC_DEFUN([_LT_PROG_FC])])
-m4_ifndef([_LT_PROG_CXX],		[AC_DEFUN([_LT_PROG_CXX])])
diff --git a/libqfits/m4macros/qfits_memory.m4 b/libqfits/m4macros/qfits_memory.m4
deleted file mode 100644
index 4faff33..0000000
--- a/libqfits/m4macros/qfits_memory.m4
+++ /dev/null
@@ -1,63 +0,0 @@
-# QFITS CHECK MEMORY  
-#--------------------
-AC_DEFUN([QFITS_CHECK_MEMORY],
-[
-    AC_MSG_CHECKING([qfits options])
-
-    AC_ARG_ENABLE(memory-mode,
-                AC_HELP_STRING([--enable-memory-mode=M],
-                               [where M=0 switches off the internal memory
-                                handling, M=1 exits the program
-                                whenever a memory allocation fails,
-                                M=2 switches on the internal memory
-                                handling, M=3 switches on the internal memory
-                                handling and the memory debug mode]),
-                [
-                    qfits_memory_flag=yes
-                    # $enableval=yes when no argument is given
-                    qfits_memory_mode=$enableval
-                ])
-
-    AC_ARG_ENABLE(max-ptrs,
-                AC_HELP_STRING([--enable-max-ptrs=MAXPTRS],
-                               [MAXPTRS Set MAXPTRS as the maximum number of
-				pointers allowed]),
-                [
-                    qfits_max_ptrs_flag=yes
-                    qfits_max_ptrs=$enableval
-                ])
-
-    # Pending: check qfits_max_ptrs is numeric, otherwise AC_MSG_ERROR 
-    if test "x$qfits_max_ptrs_flag" = xyes ; then
-        QFITS_MAXPTRS_CFLAGS="-DQFITS_MEMORY_MAXPTRS=$qfits_max_ptrs"
-    else
-        QFITS_MAXPTRS_CFLAGS=""
-    fi
-
-    if test "x$qfits_memory_flag" = xyes ; then
-        QFITS_CFLAGS="-DQFITS_MEMORY_MODE=$qfits_memory_mode"
-        case $qfits_memory_mode in
-        yes)        
-          QFITS_CFLAGS="-DQFITS_MEMORY_MODE=0 -DQFITS_MEMORY_MAXPRS=1" 
-          break ;;
-        0|1)        
-          QFITS_CFLAGS="-DQFITS_MEMORY_MODE=$qfits_memory_mode -DQFITS_MEMORY_MAXPRS=1" 
-          break ;;
-        2)        
-          QFITS_CFLAGS="-DQFITS_MEMORY_MODE=2 $QFITS_MAXPTRS_CFLAGS" 
-          break ;;
-        3)        
-          QFITS_CFLAGS="-DQFITS_MEMORY_MODE=2 -DQFITS_MEMORY_DEBUG=2 $QFITS_MAXPTRS_CFLAGS" 
-          break ;;
-        *)
-          AC_MSG_ERROR([Option --enable-memory-mode=$qfits_memory_mode not valid. Please check!])
-          break ;;
-        esac
-
-    else
-        QFITS_CFLAGS="$QFITS_MAXPTRS_CFLAGS" 
-    fi
-
-    AC_MSG_RESULT([QFITS_CFLAGS=$QFITS_CFLAGS])
-    AC_SUBST(QFITS_CFLAGS)
-])
diff --git a/libqfits/qfits.h b/libqfits/qfits.h
deleted file mode 100644
index 650e491..0000000
--- a/libqfits/qfits.h
+++ /dev/null
@@ -1,20 +0,0 @@
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "qfits_cache.h"
-#include "qfits_filename.h"
-#include "qfits_header.h"
-#include "qfits_image.h"
-#include "qfits_md5.h"
-#include "qfits_rw.h"
-#include "qfits_std.h"
-#include "qfits_table.h"
-#include "qfits_time.h"
-#include "qfits_tools.h"
-#include "qfits_memory.h"
-
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/libqfits/src/Makefile.am b/libqfits/src/Makefile.am
deleted file mode 100644
index e4c1aa0..0000000
--- a/libqfits/src/Makefile.am
+++ /dev/null
@@ -1,44 +0,0 @@
-AUTOMAKE_OPTIONS = 1.8 foreign
-DISTCLEANFILES = *~
-
-AM_CPPFLAGS = -I$(top_srcdir)/src
-
-AM_CFLAGS = $(QFITS_CFLAGS)
-
-noinst_LTLIBRARIES = libqfits.la
-
-libqfits_la_SOURCES = qfits_byteswap.c \
-    qfits_cache.c \
-    qfits_card.c \
-    qfits_error.c \
-    qfits_filename.c \
-    qfits_float.c \
-    qfits_header.c \
-    qfits_image.c \
-    qfits_memory.c \
-    qfits_md5.c \
-    qfits_rw.c \
-    qfits_table.c \
-    qfits_time.c \
-    qfits_tools.c \
-    md5.c 
-                
-noinst_HEADERS = qfits_cache.h \
-    qfits_filename.h \
-    qfits_header.h \
-    qfits_image.h \
-    qfits_memory.h \
-    qfits_md5.h \
-    qfits_rw.h \
-    qfits_std.h \
-    qfits_table.h \
-    qfits_time.h \
-    qfits_tools.h \
-    qfits_byteswap.h \
-    qfits_card.h \
-    qfits_error.h \
-    qfits_float.h \
-    md5.h 
-
-libqfits_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
-libqfits_la_LIBADD =  -lm
diff --git a/libqfits/src/Makefile.in b/libqfits/src/Makefile.in
deleted file mode 100644
index 8f320a9..0000000
--- a/libqfits/src/Makefile.in
+++ /dev/null
@@ -1,568 +0,0 @@
-# Makefile.in generated by automake 1.11.6 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-# Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
- at SET_MAKE@
-
-
-VPATH = @srcdir@
-am__make_dryrun = \
-  { \
-    am__dry=no; \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        echo 'am--echo: ; @echo "AM"  OK' | $(MAKE) -f - 2>/dev/null \
-          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
-      *) \
-        for am__flg in $$MAKEFLAGS; do \
-          case $$am__flg in \
-            *=*|--*) ;; \
-            *n*) am__dry=yes; break;; \
-          esac; \
-        done;; \
-    esac; \
-    test $$am__dry = yes; \
-  }
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = src
-DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
-	$(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4macros/eso.m4 \
-	$(top_srcdir)/m4macros/libtool.m4 \
-	$(top_srcdir)/m4macros/ltoptions.m4 \
-	$(top_srcdir)/m4macros/ltsugar.m4 \
-	$(top_srcdir)/m4macros/ltversion.m4 \
-	$(top_srcdir)/m4macros/lt~obsolete.m4 \
-	$(top_srcdir)/m4macros/qfits_memory.m4 \
-	$(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LTLIBRARIES = $(noinst_LTLIBRARIES)
-libqfits_la_DEPENDENCIES =
-am_libqfits_la_OBJECTS = qfits_byteswap.lo qfits_cache.lo \
-	qfits_card.lo qfits_error.lo qfits_filename.lo qfits_float.lo \
-	qfits_header.lo qfits_image.lo qfits_memory.lo qfits_md5.lo \
-	qfits_rw.lo qfits_table.lo qfits_time.lo qfits_tools.lo md5.lo
-libqfits_la_OBJECTS = $(am_libqfits_la_OBJECTS)
-libqfits_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
-	$(libqfits_la_LDFLAGS) $(LDFLAGS) -o $@
-DEFAULT_INCLUDES = -I. at am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-CCLD = $(CC)
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
-	$(LDFLAGS) -o $@
-SOURCES = $(libqfits_la_SOURCES)
-DIST_SOURCES = $(libqfits_la_SOURCES)
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-HEADERS = $(noinst_HEADERS)
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DOXYGEN = @DOXYGEN@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LATEX = @LATEX@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBTOOL_DEPS = @LIBTOOL_DEPS@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-LT_AGE = @LT_AGE@
-LT_CURRENT = @LT_CURRENT@
-LT_REVISION = @LT_REVISION@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-QFITS_CFLAGS = @QFITS_CFLAGS@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-AUTOMAKE_OPTIONS = 1.8 foreign
-DISTCLEANFILES = *~
-AM_CPPFLAGS = -I$(top_srcdir)/src
-AM_CFLAGS = $(QFITS_CFLAGS)
-noinst_LTLIBRARIES = libqfits.la
-libqfits_la_SOURCES = qfits_byteswap.c \
-    qfits_cache.c \
-    qfits_card.c \
-    qfits_error.c \
-    qfits_filename.c \
-    qfits_float.c \
-    qfits_header.c \
-    qfits_image.c \
-    qfits_memory.c \
-    qfits_md5.c \
-    qfits_rw.c \
-    qfits_table.c \
-    qfits_time.c \
-    qfits_tools.c \
-    md5.c 
-
-noinst_HEADERS = qfits_cache.h \
-    qfits_filename.h \
-    qfits_header.h \
-    qfits_image.h \
-    qfits_memory.h \
-    qfits_md5.h \
-    qfits_rw.h \
-    qfits_std.h \
-    qfits_table.h \
-    qfits_time.h \
-    qfits_tools.h \
-    qfits_byteswap.h \
-    qfits_card.h \
-    qfits_error.h \
-    qfits_float.h \
-    md5.h 
-
-libqfits_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
-libqfits_la_LIBADD = -lm
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign src/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLTLIBRARIES:
-	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
-	@list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
-	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
-	  test "$$dir" != "$$p" || dir=.; \
-	  echo "rm -f \"$${dir}/so_locations\""; \
-	  rm -f "$${dir}/so_locations"; \
-	done
-libqfits.la: $(libqfits_la_OBJECTS) $(libqfits_la_DEPENDENCIES) $(EXTRA_libqfits_la_DEPENDENCIES) 
-	$(libqfits_la_LINK)  $(libqfits_la_OBJECTS) $(libqfits_la_LIBADD) $(LIBS)
-
-mostlyclean-compile:
-	-rm -f *.$(OBJEXT)
-
-distclean-compile:
-	-rm -f *.tab.c
-
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/md5.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_byteswap.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_cache.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_card.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_error.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_filename.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_float.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_header.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_image.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_md5.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_memory.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_rw.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_table.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_time.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/qfits_tools.Plo at am__quote@
-
-.c.o:
- at am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- at am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCC_FALSE@	$(COMPILE) -c $<
-
-.c.obj:
- at am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- at am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
-
-.c.lo:
- at am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- at am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
-	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
-	unique=`for i in $$list; do \
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-	  done | \
-	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
-	      END { if (nonempty) { for (i in files) print i; }; }'`; \
-	mkid -fID $$unique
-tags: TAGS
-
-TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
-		$(TAGS_FILES) $(LISP)
-	set x; \
-	here=`pwd`; \
-	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
-	unique=`for i in $$list; do \
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-	  done | \
-	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
-	      END { if (nonempty) { for (i in files) print i; }; }'`; \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: CTAGS
-CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
-		$(TAGS_FILES) $(LISP)
-	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
-	unique=`for i in $$list; do \
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-	  done | \
-	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
-	      END { if (nonempty) { for (i in files) print i; }; }'`; \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LTLIBRARIES) $(HEADERS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-	-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
-	mostlyclean-am
-
-distclean: distclean-am
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
-	distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
-	mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
-	clean-libtool clean-noinstLTLIBRARIES ctags distclean \
-	distclean-compile distclean-generic distclean-libtool \
-	distclean-tags distdir dvi dvi-am html html-am info info-am \
-	install install-am install-data install-data-am install-dvi \
-	install-dvi-am install-exec install-exec-am install-html \
-	install-html-am install-info install-info-am install-man \
-	install-pdf install-pdf-am install-ps install-ps-am \
-	install-strip installcheck installcheck-am installdirs \
-	maintainer-clean maintainer-clean-generic mostlyclean \
-	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
-	pdf pdf-am ps ps-am tags uninstall uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/libqfits/src/md5.c b/libqfits/src/md5.c
deleted file mode 100644
index a0b2fc3..0000000
--- a/libqfits/src/md5.c
+++ /dev/null
@@ -1,286 +0,0 @@
-/* $Id: md5.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <string.h> 
-
-#include "md5.h"
-
-/*-----------------------------------------------------------------------------
-                               Function prototypes
- -----------------------------------------------------------------------------*/
-
-static void byteReverse(unsigned char *buf, unsigned longs) ;
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    md5     MD5 message-digest algorithm
- *
- *  The algorithm is due to Ron Rivest.  This code was written by Colin Plumb
- *  in 1993, no copyright is claimed. This code is in the public domain; do 
- *  with it what you wish.
- *  Equivalent code is available from RSA Data Security, Inc. This code has 
- *  been tested against that, and is equivalent, except that you don't need to 
- *  include two pages of legalese with every copy.
- *  To compute the message digest of a chunk of bytes, declare an MD5Context 
- *  structure, pass it to MD5Init, call MD5Update as needed on buffers full of
- *  bytes, and then call MD5Final, which will fill a supplied 16-byte array with
- *  the digest.
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                              Function codes
- -----------------------------------------------------------------------------*/
-
-/*
- * Start MD5 accumulation.  Set bit count to 0 and buffer to mysterious
- * initialization constants.
- */
-void MD5Init(struct MD5Context *ctx)
-{
-    ctx->buf[0] = 0x67452301;
-    ctx->buf[1] = 0xefcdab89;
-    ctx->buf[2] = 0x98badcfe;
-    ctx->buf[3] = 0x10325476;
-
-    ctx->bits[0] = 0;
-    ctx->bits[1] = 0;
-}
-
-/*
- * Update context to reflect the concatenation of another buffer full
- * of bytes.
- */
-void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len)
-{
-    register word32 t;
-
-    /* Update bitcount */
-
-    t = ctx->bits[0];
-    if ((ctx->bits[0] = t + ((word32) len << 3)) < t)
-    ctx->bits[1]++;        /* Carry from low to high */
-    ctx->bits[1] += len >> 29;
-
-    t = (t >> 3) & 0x3f;    /* Bytes already in shsInfo->data */
-
-    /* Handle any leading odd-sized chunks */
-
-    if (t) {
-    unsigned char *p = (unsigned char *) ctx->in + t;
-
-    t = 64 - t;
-    if (len < t) {
-        memmove(p, buf, len);
-        return;
-    }
-    memmove(p, buf, t);
-    byteReverse(ctx->in, 16);
-    MD5Transform(ctx->buf, (word32 *) ctx->in);
-    buf += t;
-    len -= t;
-    }
-    /* Process data in 64-byte chunks */
-
-    while (len >= 64) {
-    memmove(ctx->in, buf, 64);
-    byteReverse(ctx->in, 16);
-    MD5Transform(ctx->buf, (word32 *) ctx->in);
-    buf += 64;
-    len -= 64;
-    }
-
-    /* Handle any remaining bytes of data. */
-
-    memmove(ctx->in, buf, len);
-}
-
-/*
- * Final wrapup - pad to 64-byte boundary with the bit pattern 
- * 1 0* (64-bit count of bits processed, MSB-first)
- */
-void MD5Final(unsigned char digest[16], struct MD5Context *ctx)
-{
-    unsigned int count;
-    unsigned char *p;
-
-    /* Compute number of bytes mod 64 */
-    count = (ctx->bits[0] >> 3) & 0x3F;
-
-    /* Set the first char of padding to 0x80.  This is safe since there is
-       always at least one byte free */
-    p = ctx->in + count;
-    *p++ = 0x80;
-
-    /* Bytes of padding needed to make 64 bytes */
-    count = 64 - 1 - count;
-
-    /* Pad out to 56 mod 64 */
-    if (count < 8) {
-    /* Two lots of padding:  Pad the first block to 64 bytes */
-    memset(p, 0, count);
-    byteReverse(ctx->in, 16);
-    MD5Transform(ctx->buf, (word32 *) ctx->in);
-
-    /* Now fill the next block with 56 bytes */
-    memset(ctx->in, 0, 56);
-    } else {
-    /* Pad block to 56 bytes */
-    memset(p, 0, count - 8);
-    }
-    byteReverse(ctx->in, 14);
-
-    /* Append length in bits and transform */
-    ((word32 *) ctx->in)[14] = ctx->bits[0];
-    ((word32 *) ctx->in)[15] = ctx->bits[1];
-
-    MD5Transform(ctx->buf, (word32 *) ctx->in);
-    byteReverse((unsigned char *) ctx->buf, 4);
-    memmove(digest, ctx->buf, 16);
-    memset(ctx, 0, sizeof(ctx));    /* In case it's sensitive */
-}
-
-/* The four core functions - F1 is optimized somewhat */
-
-/* #define F1(x, y, z) (x & y | ~x & z) */
-#define F1(x, y, z) (z ^ (x & (y ^ z)))
-#define F2(x, y, z) F1(z, x, y)
-#define F3(x, y, z) (x ^ y ^ z)
-#define F4(x, y, z) (y ^ (x | ~z))
-
-/* This is the central step in the MD5 algorithm. */
-#define MD5STEP(f, w, x, y, z, data, s) \
-    ( w += f(x, y, z) + data,  w = w<<s | w>>(32-s),  w += x )
-
-/*
- * The core of the MD5 algorithm, this alters an existing MD5 hash to
- * reflect the addition of 16 longwords of new data.  MD5Update blocks
- * the data and converts bytes into longwords for this routine.
- */
-void MD5Transform(word32 buf[4], word32 const in[16])
-{
-    register word32 a, b, c, d;
-
-    a = buf[0];
-    b = buf[1];
-    c = buf[2];
-    d = buf[3];
-
-    MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7);
-    MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12);
-    MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17);
-    MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22);
-    MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7);
-    MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12);
-    MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17);
-    MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22);
-    MD5STEP(F1, a, b, c, d, in[8] + 0x698098d8, 7);
-    MD5STEP(F1, d, a, b, c, in[9] + 0x8b44f7af, 12);
-    MD5STEP(F1, c, d, a, b, in[10] + 0xffff5bb1, 17);
-    MD5STEP(F1, b, c, d, a, in[11] + 0x895cd7be, 22);
-    MD5STEP(F1, a, b, c, d, in[12] + 0x6b901122, 7);
-    MD5STEP(F1, d, a, b, c, in[13] + 0xfd987193, 12);
-    MD5STEP(F1, c, d, a, b, in[14] + 0xa679438e, 17);
-    MD5STEP(F1, b, c, d, a, in[15] + 0x49b40821, 22);
-
-    MD5STEP(F2, a, b, c, d, in[1] + 0xf61e2562, 5);
-    MD5STEP(F2, d, a, b, c, in[6] + 0xc040b340, 9);
-    MD5STEP(F2, c, d, a, b, in[11] + 0x265e5a51, 14);
-    MD5STEP(F2, b, c, d, a, in[0] + 0xe9b6c7aa, 20);
-    MD5STEP(F2, a, b, c, d, in[5] + 0xd62f105d, 5);
-    MD5STEP(F2, d, a, b, c, in[10] + 0x02441453, 9);
-    MD5STEP(F2, c, d, a, b, in[15] + 0xd8a1e681, 14);
-    MD5STEP(F2, b, c, d, a, in[4] + 0xe7d3fbc8, 20);
-    MD5STEP(F2, a, b, c, d, in[9] + 0x21e1cde6, 5);
-    MD5STEP(F2, d, a, b, c, in[14] + 0xc33707d6, 9);
-    MD5STEP(F2, c, d, a, b, in[3] + 0xf4d50d87, 14);
-    MD5STEP(F2, b, c, d, a, in[8] + 0x455a14ed, 20);
-    MD5STEP(F2, a, b, c, d, in[13] + 0xa9e3e905, 5);
-    MD5STEP(F2, d, a, b, c, in[2] + 0xfcefa3f8, 9);
-    MD5STEP(F2, c, d, a, b, in[7] + 0x676f02d9, 14);
-    MD5STEP(F2, b, c, d, a, in[12] + 0x8d2a4c8a, 20);
-
-    MD5STEP(F3, a, b, c, d, in[5] + 0xfffa3942, 4);
-    MD5STEP(F3, d, a, b, c, in[8] + 0x8771f681, 11);
-    MD5STEP(F3, c, d, a, b, in[11] + 0x6d9d6122, 16);
-    MD5STEP(F3, b, c, d, a, in[14] + 0xfde5380c, 23);
-    MD5STEP(F3, a, b, c, d, in[1] + 0xa4beea44, 4);
-    MD5STEP(F3, d, a, b, c, in[4] + 0x4bdecfa9, 11);
-    MD5STEP(F3, c, d, a, b, in[7] + 0xf6bb4b60, 16);
-    MD5STEP(F3, b, c, d, a, in[10] + 0xbebfbc70, 23);
-    MD5STEP(F3, a, b, c, d, in[13] + 0x289b7ec6, 4);
-    MD5STEP(F3, d, a, b, c, in[0] + 0xeaa127fa, 11);
-    MD5STEP(F3, c, d, a, b, in[3] + 0xd4ef3085, 16);
-    MD5STEP(F3, b, c, d, a, in[6] + 0x04881d05, 23);
-    MD5STEP(F3, a, b, c, d, in[9] + 0xd9d4d039, 4);
-    MD5STEP(F3, d, a, b, c, in[12] + 0xe6db99e5, 11);
-    MD5STEP(F3, c, d, a, b, in[15] + 0x1fa27cf8, 16);
-    MD5STEP(F3, b, c, d, a, in[2] + 0xc4ac5665, 23);
-
-    MD5STEP(F4, a, b, c, d, in[0] + 0xf4292244, 6);
-    MD5STEP(F4, d, a, b, c, in[7] + 0x432aff97, 10);
-    MD5STEP(F4, c, d, a, b, in[14] + 0xab9423a7, 15);
-    MD5STEP(F4, b, c, d, a, in[5] + 0xfc93a039, 21);
-    MD5STEP(F4, a, b, c, d, in[12] + 0x655b59c3, 6);
-    MD5STEP(F4, d, a, b, c, in[3] + 0x8f0ccc92, 10);
-    MD5STEP(F4, c, d, a, b, in[10] + 0xffeff47d, 15);
-    MD5STEP(F4, b, c, d, a, in[1] + 0x85845dd1, 21);
-    MD5STEP(F4, a, b, c, d, in[8] + 0x6fa87e4f, 6);
-    MD5STEP(F4, d, a, b, c, in[15] + 0xfe2ce6e0, 10);
-    MD5STEP(F4, c, d, a, b, in[6] + 0xa3014314, 15);
-    MD5STEP(F4, b, c, d, a, in[13] + 0x4e0811a1, 21);
-    MD5STEP(F4, a, b, c, d, in[4] + 0xf7537e82, 6);
-    MD5STEP(F4, d, a, b, c, in[11] + 0xbd3af235, 10);
-    MD5STEP(F4, c, d, a, b, in[2] + 0x2ad7d2bb, 15);
-    MD5STEP(F4, b, c, d, a, in[9] + 0xeb86d391, 21);
-
-    buf[0] += a;
-    buf[1] += b;
-    buf[2] += c;
-    buf[3] += d;
-}
-
-/**@}*/
-
-/*
- * Note: this code is harmless on little-endian machines.
- */
-static void byteReverse(unsigned char *buf, unsigned longs)
-{
-    word32 t;
-    do {
-    t = (word32) ((unsigned) buf[3] << 8 | buf[2]) << 16 |
-        ((unsigned) buf[1] << 8 | buf[0]);
-    *(word32 *) buf = t;
-    buf += 4;
-    } while (--longs);
-}
diff --git a/libqfits/src/md5.h b/libqfits/src/md5.h
deleted file mode 100644
index 45d7ce4..0000000
--- a/libqfits/src/md5.h
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef MD5_H
-#define MD5_H
-
-typedef unsigned int word32 ;
-
-struct MD5Context {
-    word32 buf[4];
-    word32 bits[2];
-    unsigned char in[64];
-};
-
-void MD5Init(struct MD5Context *context);
-void MD5Update(struct MD5Context *context, unsigned char const *buf,
-           unsigned len);
-void MD5Final(unsigned char digest[16], struct MD5Context *context);
-void MD5Transform(word32 buf[4], word32 const in[16]);
-
-/*
- * This is needed to make RSAREF happy on some MS-DOS compilers.
- */
-typedef struct MD5Context MD5_CTX;
-
-#endif 
diff --git a/libqfits/src/qfits_byteswap.c b/libqfits/src/qfits_byteswap.c
deleted file mode 100644
index 2af374b..0000000
--- a/libqfits/src/qfits_byteswap.c
+++ /dev/null
@@ -1,111 +0,0 @@
-/* $Id: qfits_byteswap.c,v 1.2 2009-11-27 12:37:19 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2009-11-27 12:37:19 $
- * $Revision: 1.2 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include "config.h"
-
-#include "qfits_byteswap.h"
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_byteswap  Low-level byte-swapping routines
- *
- *  This module offers access to byte-swapping routines.
- *  Generic routines are offered that should work everywhere.
- *  Assembler is also included for x86 architectures, and dedicated
- *  assembler calls for processors > 386.
- *
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                              Function codes
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Swap a 16-bit number
-  @param    w A 16-bit (short) number to byte-swap.
-  @return   The swapped version of w, w is untouched.
-
-  This function swaps a 16-bit number, returned the swapped value without
-  modifying the passed argument. Assembler included for x86 architectures.
- */
-/*----------------------------------------------------------------------------*/
-unsigned short qfits_swap_bytes_16(unsigned short w)
-{
-    return (((w) & 0x00ff) << 8 | ((w) & 0xff00) >> 8);
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Swap a 32-bit number
-  @param    dw A 32-bit (long) number to byte-swap.
-  @return   The swapped version of dw, dw is untouched.
-
-  This function swaps a 32-bit number, returned the swapped value without
-  modifying the passed argument. Assembler included for x86 architectures
-  and optimized for processors above 386.
- */
-/*----------------------------------------------------------------------------*/
-unsigned int qfits_swap_bytes_32(unsigned int dw)
-{
-    return ((((dw) & 0xff000000) >> 24) | (((dw) & 0x00ff0000) >>  8) |
-            (((dw) & 0x0000ff00) <<  8) | (((dw) & 0x000000ff) << 24));
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Swaps bytes in a variable of given size
-  @param    p pointer to void (generic pointer)
-  @param    s size of the element to swap, pointed to by p
-  @return    void
-
-  This byte-swapper is portable and works for any even variable size.
-  It is not truly the most efficient ever, but does its job fine
-  everywhere this file compiles.
- */
-/*----------------------------------------------------------------------------*/
-void qfits_swap_bytes(void * p, int s)
-{
-    unsigned char tmp, *a, *b ;
-
-    a = (unsigned char*)p ;
-    b = a + s ;
-
-    while (a<b) {
-        tmp = *a ;
-        *a++ = *--b ;
-        *b = tmp ;
-    }
-}
-
-/**@}*/
diff --git a/libqfits/src/qfits_byteswap.h b/libqfits/src/qfits_byteswap.h
deleted file mode 100644
index 43dcce2..0000000
--- a/libqfits/src/qfits_byteswap.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* $Id: qfits_byteswap.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_BYTESWAP_H
-#define QFITS_BYTESWAP_H
-
-/*-----------------------------------------------------------------------------
-                                Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdlib.h>
-
-/*-----------------------------------------------------------------------------
-                        Function ANSI C prototypes
- -----------------------------------------------------------------------------*/
-
-unsigned short qfits_swap_bytes_16(unsigned short w);
-unsigned int qfits_swap_bytes_32(unsigned int dw);
-void qfits_swap_bytes(void * p, int s);
-
-#endif
diff --git a/libqfits/src/qfits_cache.c b/libqfits/src/qfits_cache.c
deleted file mode 100644
index bdd4699..0000000
--- a/libqfits/src/qfits_cache.c
+++ /dev/null
@@ -1,789 +0,0 @@
-/* $Id: qfits_cache.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#include "qfits_cache.h"
-
-#include "qfits_card.h"
-#include "qfits_std.h"
-#include "qfits_memory.h"
-
-/*-----------------------------------------------------------------------------
-                                   Defines
- -----------------------------------------------------------------------------*/
-
-/* Define this symbol to get debug symbols -- not recommended! */
-#define QFITS_CACHE_DEBUG    0
-#if QFITS_CACHE_DEBUG
-#define qdebug( code ) { code }
-#else
-#define qdebug( code )
-#endif
-
-/*
- * Cache size: 
- * Maximum number of FITS file informations stored in the cache.
- */
-#define QFITS_CACHESZ        128
-
-/*
- * This static definition declares the maximum possible number of
- * extensions in a FITS file. It only has effects in the qfits_cache_add
- * function where a table is statically allocated for efficiency reasons.
- * If the number of extensions grows over this limit, change the value of
- * this constant. If the number of extensions is a priori unknown but can
- * grow much larger than a predictable value, the best solution is to
- * implement a dynamic memory allocation in qfits_cache_add.
- */
-#define QFITS_MAX_EXTS            10192
-
-/*-----------------------------------------------------------------------------
-                                   New types
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/*
-  This structure stores all informations about a given FITS file.
-  It is strictly internal to this module.
- */
-/*----------------------------------------------------------------------------*/
-typedef struct _qfits_cache_cell_ {
-    char    *    name ;    /* File name     */
-    ino_t       inode ; /* Inode */
-    time_t        mtime;  /* Last modification date */
-    int            filesize; /* File size in bytes */
-    time_t        ctime;  /* Last modification date */
-
-    int            exts ;    /* # of extensions in file */
-
-    int        *    ohdr ;    /* Offsets to headers */
-    int        *    shdr ;    /* Header sizes */
-    int        *    data ;    /* Offsets to data */
-    int        *    dsiz ;    /* Data sizes */
-
-    int         fsize ; /* File size in blocks (2880 bytes) */
-} qfits_cache_cell ;
-
-static qfits_cache_cell qfits_cache[QFITS_CACHESZ] ;
-static int qfits_cache_last = -1 ;
-static int qfits_cache_entries = 0 ;
-static int qfits_cache_init = 0 ;
-
-/*-----------------------------------------------------------------------------
-                            Functions prototypes
- -----------------------------------------------------------------------------*/
-
-static void qfits_cache_activate(void);
-static int qfits_is_cached(const char * filename);
-static int qfits_cache_add(const char * name);
-static void qfits_cache_dump(void) ;
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_cache     FITS caching capabilities
- *
- * This modules implements a cache for FITS access routines.
- * The first time a FITS file is seen by the library, all corresponding
- * pointers are cached here. This speeds up multiple accesses to large
- * files by magnitudes.
- *
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                              Function codes
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Purge the qfits cache.
-  @return    void
-
-  This function is useful for programs running for a long period,
-  to clean up the cache. Ideally in a daemon, it should be called
-  by a timer at regular intervals. Notice that since the cache is
-  fairly small, you should not need to care too much about this.
- */
-/*----------------------------------------------------------------------------*/
-void qfits_cache_purge(void)
-{
-    int    i ;
-
-    qdebug(
-        printf("qfits: purging cache...\n");
-    );
-
-    for (i=0 ; i<QFITS_CACHESZ; i++) {
-        if (qfits_cache[i].name!=NULL) {
-            qfits_free(qfits_cache[i].name);
-            qfits_cache[i].name = NULL ;
-            qfits_free(qfits_cache[i].ohdr);
-            qfits_free(qfits_cache[i].data);
-            qfits_free(qfits_cache[i].shdr);
-            qfits_free(qfits_cache[i].dsiz);
-            qfits_cache_entries -- ;
-        }
-    }
-    if (qfits_cache_entries!=0) {
-        qdebug(
-            printf("qfits: internal error in cache consistency\n");
-        );
-        exit(-1);
-    }
-    qfits_cache_last = -1 ;
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Query a FITS file offset from the cache.
-  @param    filename    Name of the file to examine.
-  @param    what        What should be queried (see below).
-  @return    an integer offset, or -1 if an error occurred.
-
-  This function queries the cache for FITS offset information. If the
-  requested file name has never been seen before, it is completely parsed
-  to extract all offset informations, which are then stored in the cache.
-  The next query will get the informations from the cache, avoiding
-  a complete re-parsing of the file. This is especially useful for large
-  FITS files with lots of extensions, because querying the extensions
-  is an expensive operation.
-
-  This operation has side-effects: the cache is an automatically
-  allocated structure in memory, that can only grow. Every request
-  on a new FITS file will make it grow. The structure is pretty
-  light-weight in memory, but nonetheless this is an issue for daemon-type
-  programs which must run over long periods. The solution is to clean
-  the cache using qfits_cache_purge() at regular intervals. This is left
-  to the user of this library.
-
-  To request information about a FITS file, you must pass an integer
-  built from the following symbols:
-
-  - @c QFITS_QUERY_N_EXT
-  - @c QFITS_QUERY_HDR_START
-  - @c QFITS_QUERY_DAT_START
-  - @c QFITS_QUERY_HDR_SIZE
-  - @c QFITS_QUERY_DAT_SIZE
-
-  Querying the number of extensions present in a file is done
-  simply with:
-
-  @code
-  next = qfits_query(filename, QFITS_QUERY_N_EXT);
-  @endcode
-
-  Querying the offset to the i-th extension header is done with:
-
-  @code
-  off = qfits_query(filename, QFITS_QUERY_HDR_START | i);
-  @endcode
-
-  i.e. you must OR (|) the extension number with the
-  @c QFITS_QUERY_HDR_START symbol. Requesting offsets to extension data is
-  done in the same way:
-
-  @code
-  off = qfits_query(filename, QFITS_QUERY_DAT_START | i);
-  @endcode
-
-  Notice that extension 0 is the main header and main data part
-  of the FITS file.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_query(const char * filename, int what)
-{
-    int    rank ;
-    int    which ;
-    int    answer ;
-
-    qdebug(
-        printf("qfits: cache req %s\n", filename);
-    );
-    if ((rank=qfits_is_cached(filename))==-1) {
-        rank = qfits_cache_add(filename);
-    }
-    if (rank==-1) {
-        qdebug(
-            printf("qfits: error adding %s to cache\n", filename);
-        );
-        return -1 ;
-    }
-
-    /* See what was requested */
-    answer=-1 ;
-    if (what & QFITS_QUERY_N_EXT) {
-        answer = qfits_cache[rank].exts ;
-        qdebug(
-            printf("qfits: query n_exts\n");
-            printf("qfits: -> %d\n", answer);
-        );
-    } else if (what & QFITS_QUERY_HDR_START) {
-        which = what & (~QFITS_QUERY_HDR_START);
-        if (which>=0 && which<=qfits_cache[rank].exts) {
-            answer = qfits_cache[rank].ohdr[which] * FITS_BLOCK_SIZE ;
-        }
-        qdebug(
-            printf("qfits: query offset to header %d\n", which);
-            printf("qfits: -> %d (%d bytes)\n", answer/2880, answer);
-        );
-    } else if (what & QFITS_QUERY_DAT_START) {
-        which = what & (~QFITS_QUERY_DAT_START);
-        if (which>=0 && which<=qfits_cache[rank].exts) {
-            answer = qfits_cache[rank].data[which] * FITS_BLOCK_SIZE ;
-        }
-        qdebug(
-            printf("qfits: query offset to data %d\n", which);
-            printf("qfits: -> %d (%d bytes)\n", answer/2880, answer);
-        );
-    } else if (what & QFITS_QUERY_HDR_SIZE) {
-        which = what & (~QFITS_QUERY_HDR_SIZE);
-        if (which>=0 && which<=qfits_cache[rank].exts) {
-            answer = qfits_cache[rank].shdr[which] * FITS_BLOCK_SIZE ;
-        }
-        qdebug(
-            printf("qfits: query sizeof header %d\n", which);
-            printf("qfits: -> %d (%d bytes)\n", answer/2880, answer);
-        );
-    } else if (what & QFITS_QUERY_DAT_SIZE) {
-        which = what & (~QFITS_QUERY_DAT_SIZE);
-        if (which>=0 && which<=qfits_cache[rank].exts) {
-            answer = qfits_cache[rank].dsiz[which] * FITS_BLOCK_SIZE ;
-        }
-        qdebug(
-            printf("qfits: query sizeof data %d\n", which);
-            printf("qfits: -> %d (%d bytes)\n", answer/2880, answer);
-        );
-    }
-    return answer ;
-}
-
-/**@}*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Add pointer information about a file into the qfits cache.
-  @param    filename    Name of the file to examine.
-  @return    index to the file information in the cache, or -1 if failure.
-
-  This function picks a file name, and examines the corresponding FITS file
-  to deduce all relevant pointers in the file (byte offsets). These byte
-  offsets are later used to speed up header lookups. Example: requesting
-  some keyword information in the header of the n-th extension will first
-  fseek the file to the header start, then search from this position
-  onwards. This means that the input FITS file is only parsed for extension
-  positions once.
-
-  What this function does is:
-
-  - Open the file, read the first FITS block (@c FITS_BLOCK_SIZE bytes)
-  - Check the file is FITS (must have SIMPLE  = at top)
-  - Register start of first header at offset 0.
-  - Look for END keyword, register start of first data section
-    if NAXIS>0.
-  - If the EXTEND=T line was found, continue looking for extensions.
-  - For each consecutive extension, register extension header start
-    and extension data start.
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_cache_add(const char * filename)
-{
-    FILE    *    in ;
-    int            off_hdr[QFITS_MAX_EXTS];
-    int            off_dat[QFITS_MAX_EXTS];
-    char        buf[FITS_BLOCK_SIZE] ;
-    char    *    buf_c ;
-    int            n_blocks ;
-    int            found_it ;
-    int            xtend ;
-    int            naxis ;
-    char    *    read_val ;
-    int            last ;
-    int            end_of_file ;
-    int            data_bytes ;
-    int            skip_blocks ;
-    struct stat sta ;
-    int         seeked ;
-    int            i ;
-
-    qfits_cache_cell * qc ;
-
-    /* Initialize cache if not done yet (done only once) */
-    if (qfits_cache_init==0) {
-        qfits_cache_init++ ;
-        qfits_cache_activate();
-    }
-
-    /* Stat file to get its size */
-    if (stat(filename, &sta)!=0) {
-        qdebug(
-            printf("qfits: cannot stat file %s\n", filename);
-        );
-        return -1 ;
-    }
-
-    /* Open input file */
-    if ((in=fopen(filename, "r"))==NULL) {
-        qdebug(
-            printf("qfits: cannot open file %s\n", filename);
-        );
-        return -1 ;
-    }
-
-    /* Read first block in */
-    if (fread(buf, 1, FITS_BLOCK_SIZE, in)!=FITS_BLOCK_SIZE) {
-        qdebug(
-            printf("qfits: error reading first block from %s\n", filename);
-        );
-        fclose(in);
-        return -1 ;
-    }
-    /* Identify FITS magic number */
-    if (buf[0]!='S' ||
-        buf[1]!='I' ||
-        buf[2]!='M' ||
-        buf[3]!='P' ||
-        buf[4]!='L' ||
-        buf[5]!='E' ||
-        buf[6]!=' ' ||
-        buf[7]!=' ' ||
-        buf[8]!='=') {
-        qdebug(
-            printf("qfits: file %s is not FITS\n", filename);
-        );
-        fclose(in);
-        return -1 ;
-    }
-
-    /*
-     * Browse through file to identify primary HDU size and see if there
-     * might be some extensions. The size of the primary data zone will
-     * also be estimated from the gathering of the NAXIS?? values and
-     * BITPIX.
-     */
-
-    /* Rewind input file, END card might be in first block */
-    rewind(in);
-
-    /* Initialize all counters */
-    n_blocks = 0 ;
-    found_it = 0 ;
-    xtend = 0 ;
-    naxis = 0 ;
-    data_bytes = 1 ;
-
-    /* Start looking for END card */
-    while (found_it==0) {
-        /* Read one FITS block */
-        if (fread(buf, 1, FITS_BLOCK_SIZE, in)!=FITS_BLOCK_SIZE) {
-            qdebug(
-                printf("qfits: error reading file %s\n", filename);
-            );
-            fclose(in);
-            return -1 ;
-        }
-        n_blocks ++ ;
-        /* Browse through current block */
-        buf_c = buf ;
-        for (i=0 ; i<FITS_NCARDS ; i++) {
-
-            /* Look for BITPIX keyword */
-            if (buf_c[0]=='B' &&
-                buf_c[1]=='I' &&
-                buf_c[2]=='T' &&
-                buf_c[3]=='P' &&
-                buf_c[4]=='I' &&
-                buf_c[5]=='X' &&
-                buf_c[6]==' ') {
-                read_val = qfits_getvalue(buf_c);
-                data_bytes *= (int)atoi(read_val) / 8 ;
-                if (data_bytes<0) data_bytes *= -1 ;
-            } else
-            /* Look for NAXIS keyword */
-            if (buf_c[0]=='N' &&
-                buf_c[1]=='A' &&
-                buf_c[2]=='X' &&
-                buf_c[3]=='I' &&
-                buf_c[4]=='S') {
-
-                if (buf_c[5]==' ') {
-                    /* NAXIS keyword */
-                    read_val = qfits_getvalue(buf_c);
-                    naxis = (int)atoi(read_val);
-                } else {
-                    /* NAXIS?? keyword (axis size) */
-                    read_val = qfits_getvalue(buf_c);
-                    data_bytes *= (int)atoi(read_val);
-                }
-            } else
-            /* Look for EXTEND keyword */
-            if (buf_c[0]=='E' &&
-                buf_c[1]=='X' &&
-                buf_c[2]=='T' &&
-                buf_c[3]=='E' &&
-                buf_c[4]=='N' &&
-                buf_c[5]=='D' &&
-                buf_c[6]==' ') {
-                /* The EXTEND keyword is present: might be some extensions */
-                read_val = qfits_getvalue(buf_c);
-                if (read_val[0]=='T' || read_val[0]=='1') {
-                    xtend=1 ;
-                }
-            } else
-            /* Look for END keyword */
-            if (buf_c[0] == 'E' &&
-                buf_c[1] == 'N' &&
-                buf_c[2] == 'D' &&
-                buf_c[3] == ' ') {
-                found_it = 1 ;
-            }
-            buf_c += FITS_LINESZ ;
-        }
-    }
-
-    /*
-     * Prepare qfits cache for addition of a new entry
-     */
-    qfits_cache_last++ ;
-    /* Rotate buffer if needed */
-    if (qfits_cache_last >= QFITS_CACHESZ) {
-        qfits_cache_last = 0 ;
-    }
-    /* Alias to current pointer in cache for easier reading */
-    qc = &(qfits_cache[qfits_cache_last]);
-
-    /* Clean cache cell if needed */
-    if (qc->name!=NULL) {
-        qfits_free(qc->name) ;
-        qc->name = NULL ;
-        qfits_free(qc->ohdr);
-        qfits_free(qc->data);
-        qfits_free(qc->shdr);
-        qfits_free(qc->dsiz);
-        qfits_cache_entries -- ;
-    }
-    
-    /* Initialize cache cell */
-    qc->exts=0 ;
-    qc->name = qfits_strdup(filename);
-    qc->inode= sta.st_ino ;
-
-    /* Set first HDU offsets */
-    off_hdr[0] = 0 ;
-    off_dat[0] = n_blocks ;
-    
-    /* Last is the pointer to the last added extension, plus one. */
-    last = 1 ;
-
-    if (xtend) {
-        /* Look for extensions */
-        qdebug(
-            printf("qfits: searching for extensions in %s\n", filename);
-        );
-
-        /*
-         * Register all extension offsets
-         */
-        end_of_file = 0 ;
-        while (end_of_file==0) {
-            /*
-             * Skip the previous data section if pixels were declared
-             */
-            if (naxis>0) {
-                /* Skip as many blocks as there are declared pixels */
-                skip_blocks = data_bytes/FITS_BLOCK_SIZE ;
-                if ((data_bytes % FITS_BLOCK_SIZE)!=0) {
-                    skip_blocks ++ ;
-                }
-                seeked = fseek(in, skip_blocks*FITS_BLOCK_SIZE, SEEK_CUR);
-                if (seeked<0) {
-                    qdebug(
-                        printf("qfits: error seeking file %s\n", filename);
-                    );
-                    qfits_free(qc->name);
-                    fclose(in);
-                    return -1 ;
-                }
-                /* Increase counter of current seen blocks. */
-                n_blocks += skip_blocks ;
-            }
-            
-            /* Look for extension start */
-            found_it=0 ;
-            while ((found_it==0) && (end_of_file==0)) {
-                if (fread(buf,1,FITS_BLOCK_SIZE,in)!=FITS_BLOCK_SIZE) {
-                    /* Reached end of file */
-                    end_of_file=1 ;
-                    break ;
-                }
-                n_blocks ++ ;
-                /* Search for XTENSION at block top */
-                if (buf[0]=='X' &&
-                    buf[1]=='T' &&
-                    buf[2]=='E' &&
-                    buf[3]=='N' &&
-                    buf[4]=='S' &&
-                    buf[5]=='I' &&
-                    buf[6]=='O' &&
-                    buf[7]=='N' &&
-                    buf[8]=='=') {
-                    /* Got an extension */
-                    found_it=1 ;
-                    off_hdr[last] = n_blocks-1 ;
-                }
-            }
-            if (end_of_file) break ;
-
-            /*
-             * Look for extension END
-             * Rewind one block backwards, END might be in same section as
-             * XTENSION start.
-             */
-            if (fseek(in, -FITS_BLOCK_SIZE, SEEK_CUR)==-1) {
-                qdebug(
-                    printf("qfits: error fseeking file backwards\n");
-                ) ;
-                qfits_free(qc->name);
-                fclose(in);
-                return -1 ;
-            }
-            n_blocks -- ;
-            found_it=0 ;
-            data_bytes = 1 ;
-            naxis = 0 ;
-            while ((found_it==0) && (end_of_file==0)) {
-                if (fread(buf,1,FITS_BLOCK_SIZE,in)!=FITS_BLOCK_SIZE) {
-                    qdebug(
-                    printf("qfits: XTENSION without END in %s\n", filename);
-                    );
-                    end_of_file=1;
-                    break ;
-                }
-                n_blocks++ ;
-
-                /* Browse current block */
-                buf_c = buf ;
-                for (i=0 ; i<FITS_NCARDS ; i++) {
-                    /* Look for BITPIX keyword */
-                    if (buf_c[0]=='B' &&
-                        buf_c[1]=='I' &&
-                        buf_c[2]=='T' &&
-                        buf_c[3]=='P' &&
-                        buf_c[4]=='I' &&
-                        buf_c[5]=='X' &&
-                        buf_c[6]==' ') {
-                        read_val = qfits_getvalue(buf_c);
-                        data_bytes *= (int)atoi(read_val) / 8 ;
-                        if (data_bytes<0) data_bytes *= -1 ;
-                    } else
-                    /* Look for NAXIS keyword */
-                    if (buf_c[0]=='N' &&
-                        buf_c[1]=='A' &&
-                        buf_c[2]=='X' &&
-                        buf_c[3]=='I' &&
-                        buf_c[4]=='S') {
-
-                        if (buf_c[5]==' ') {
-                            /* NAXIS keyword */
-                            read_val = qfits_getvalue(buf_c);
-                            naxis = (int)atoi(read_val);
-                        } else {
-                            /* NAXIS?? keyword (axis size) */
-                            read_val = qfits_getvalue(buf_c);
-                            data_bytes *= (int)atoi(read_val);
-                        }
-                    } else
-                    /* Look for END keyword */
-                    if (buf_c[0]=='E' &&
-                        buf_c[1]=='N' &&
-                        buf_c[2]=='D' &&
-                        buf_c[3]==' ') {
-                        /* Got the END card */
-                        found_it=1 ;
-                        /* Update registered extension list */
-                        off_dat[last] = n_blocks ;
-                        last ++ ;
-                        qc->exts ++ ;
-                        break ;
-                    }
-                    buf_c+=FITS_LINESZ ;
-                }
-            }
-        }
-    }
-
-    /* Close file */
-    fclose(in);
-
-    /* Check last */
-    if (last >= QFITS_MAX_EXTS) {
-        return -1 ;
-    }
-    
-    /* Allocate buffers in cache */
-    qc->ohdr = qfits_malloc(last * sizeof(int));
-    qc->data = qfits_malloc(last * sizeof(int));
-    qc->shdr = qfits_malloc(last * sizeof(int));
-    qc->dsiz = qfits_malloc(last * sizeof(int));
-    /* Store retrieved pointers in the cache */
-    for (i=0 ; i<last ; i++) {
-        /* Offsets to start */
-        qc->ohdr[i] = off_hdr[i];
-        qc->data[i] = off_dat[i];
-
-        /* Sizes */
-        qc->shdr[i] = off_dat[i] - off_hdr[i]  ;
-        if (i==last-1) {    
-            qc->dsiz[i] = (sta.st_size/FITS_BLOCK_SIZE) - off_dat[i] ;
-        } else {
-            qc->dsiz[i] = off_hdr[i+1] - off_dat[i] ;
-        }
-    }
-    qc->fsize = sta.st_size / FITS_BLOCK_SIZE ;
-    /* Add last modification date */
-    qc->mtime = sta.st_mtime ;
-    qc->filesize  = sta.st_size ;
-    qc->ctime = sta.st_ctime ;
-    qfits_cache_entries ++ ;
-
-    qdebug(
-        qfits_cache_dump();
-    );
-    /* Return index of the added file in the cache */
-    return qfits_cache_last ;
-}
-
-static void qfits_cache_dump(void)
-{
-    int i, j ;
-
-    printf("qfits: dumping cache...\n");
-
-    printf("cache contains %d entries\n", qfits_cache_entries);
-    for (i=0 ; i<QFITS_CACHESZ ; i++) {
-        if (qfits_cache[i].name!=NULL) {
-            printf("qfits: -----> entry: %d\n", i);
-            printf("qfits: name  %s\n", qfits_cache[i].name);
-            printf("qfits: exts  %d\n", qfits_cache[i].exts);
-            printf("qfits: size  %d\n", qfits_cache[i].fsize);
-            printf("qfits: ohdr  %d\n"
-                   "qfits: shdr  %d\n"
-                   "qfits: data  %d\n"
-                   "qfits: dsiz  %d\n",
-                   qfits_cache[i].ohdr[0],
-                   qfits_cache[i].shdr[0],
-                   qfits_cache[i].data[0],
-                   qfits_cache[i].dsiz[0]);
-            if (qfits_cache[i].exts>0) {
-                for (j=1 ; j<=qfits_cache[i].exts ; j++) {
-                    printf("qfits: %s [%d]\n", qfits_cache[i].name, j);
-                    printf("qfits: ohdr  %d\n"
-                           "qfits: shdr  %d\n"
-                           "qfits: data  %d\n"
-                           "qfits: dsiz  %d\n",
-                           qfits_cache[i].ohdr[j],
-                           qfits_cache[i].shdr[j],
-                           qfits_cache[i].data[j],
-                           qfits_cache[i].dsiz[j]);
-                }
-            }
-        }
-    }
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    initialize cache buffer with minimum size
- */
-/*----------------------------------------------------------------------------*/
-static void qfits_cache_activate(void)
-{
-    int i ;
-    qdebug(
-        printf("qfits: activating cache...\n");
-    );
-    /* Set all slots to NULL */
-    for (i=0 ; i<QFITS_CACHESZ ; i++) {
-        qfits_cache[i].name = NULL ;
-    }
-    /* Register purge function with atexit */
-    atexit(qfits_cache_purge);
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Find out if a file is in the cache already
-  @param    filename    file name
-  @return   int 1 if in the cache, 0 if not
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_is_cached(const char * filename)
-{
-    int            i, n ;
-    struct stat sta ;
-
-    /* Stat input file */
-    if (stat(filename, &sta)!=0) {
-        return -1 ;
-    }
-    n=0 ;
-    /* Loop over all cache entries */
-    for (i=0 ; i<QFITS_CACHESZ ; i++) {
-        /* If entry is valid (name is not NULL) */
-        if (qfits_cache[i].name!=NULL) {
-            /* One more entry found */
-            n++ ;
-            /* If inode is the same */
-            if ((qfits_cache[i].inode == sta.st_ino) &&
-                (qfits_cache[i].mtime == sta.st_mtime) &&
-                (qfits_cache[i].filesize  == sta.st_size) &&
-                (qfits_cache[i].ctime == sta.st_ctime)) {
-                /* This is the requested file */
-                return i ;
-            }
-        }
-        /* Early exit: all entries have been browsed */
-        if (n>=qfits_cache_entries) {
-            return -1 ;
-        }
-    }
-    return -1 ;
-}
-
diff --git a/libqfits/src/qfits_cache.h b/libqfits/src/qfits_cache.h
deleted file mode 100644
index f5cb929..0000000
--- a/libqfits/src/qfits_cache.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/* $Id: qfits_cache.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_CACHE_H
-#define QFITS_CACHE_H
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-
-/*-----------------------------------------------------------------------------
-                                   Defines
- -----------------------------------------------------------------------------*/
-
-/** Query the number of extensions */
-#define QFITS_QUERY_N_EXT        (1<<30)
-/** Query the offset to header start */
-#define QFITS_QUERY_HDR_START    (1<<29)
-/** Query the offset to data start */
-#define QFITS_QUERY_DAT_START    (1<<28)
-/** Query header size in bytes */
-#define QFITS_QUERY_HDR_SIZE    (1<<27)
-/** Query data size in bytes */
-#define QFITS_QUERY_DAT_SIZE    (1<<26)
-
-void qfits_cache_purge(void) ;
-int qfits_query(const char *, int) ;
-
-#endif
diff --git a/libqfits/src/qfits_card.c b/libqfits/src/qfits_card.c
deleted file mode 100644
index e7ace9f..0000000
--- a/libqfits/src/qfits_card.c
+++ /dev/null
@@ -1,547 +0,0 @@
-/* $Id: qfits_card.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <unistd.h>
-
-#include "qfits_card.h"
-
-#include "qfits_tools.h"
-
-/*-----------------------------------------------------------------------------
-                                   Defines
- -----------------------------------------------------------------------------*/
-
-/* Define the following to get zillions of debug messages */
-/* #define DEBUG_FITSHEADER */
-
-/*-----------------------------------------------------------------------------
-                              Static functions
- -----------------------------------------------------------------------------*/
-
-static char * expkey_strupc(const char *) ;
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_card   Card handling functions
- *
- * This module contains various routines to help parsing a single FITS
- * card into its components: key, value, comment.
- *
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                              Function codes
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Write out a card to a string on 80 chars.
-  @param    line    Allocated output character buffer.
-  @param    key     Key to write.
-  @param    val     Value to write.
-  @param    com     Comment to write.
-  @return   void
-
-  Write out a key, value and comment into an allocated character buffer.
-  The buffer must be at least 80 chars to receive the information.
-  Formatting is done according to FITS standard.
- */
-/*----------------------------------------------------------------------------*/
-void qfits_card_build(
-        char        *   line,
-        const char  *   key,
-        const char  *   val,
-        const char  *   com)
-{
-    int     len ;
-    int     hierarch = 0 ;
-    char    cval[81];
-    char    cval2[81];
-    char    cval_q[81];
-    char    ccom[81];
-    char    safe_line[512];
-    int     i, j ;
-
-    if (line==NULL || key==NULL) return ;
-
-    /* Set the line with zeroes */
-    memset(line, ' ', 80);
-    if (key==NULL) return ;
-
-    /* END keyword*/
-    if (!strcmp(key, "END")) {
-        /* Write key and return */
-        sprintf(line, "END") ;
-        return ;
-    }
-    /* HISTORY, COMMENT and blank keywords */
-    if (!strcmp(key, "HISTORY") ||
-        !strcmp(key, "COMMENT") ||
-        !strncmp(key, "        ", 8)) {
-        /* Write key */
-        sprintf(line, "%s ", key);
-        if (val==NULL) return ;
-
-        /* There is a value to write, copy it correctly */
-        len = strlen(val);
-        /* 72 is 80 (FITS line size) - 8 (sizeof COMMENT or HISTORY) */
-        if (len>72) len=72 ;
-        strncpy(line+8, val, len);
-        return ;
-    }
-
-    /* Check for NULL values */
-    if (val==NULL) cval[0]=(char)0;
-    else if (strlen(val)<1) cval[0]=(char)0;
-    else strcpy(cval, val);
-
-    /* Check for NULL comments */
-    if (com==NULL) strcpy(ccom, "no comment");
-    else strcpy(ccom, com);
-
-    /* Set hierarch flag */
-    if (!strncmp(key, "HIERARCH", 8)) hierarch ++ ;
-
-    /* Boolean, int, float or complex */
-    if (qfits_is_int(cval) ||
-            qfits_is_float(cval) ||
-            qfits_is_boolean(cval) ||
-            qfits_is_complex(cval)) {
-        if (hierarch) sprintf(safe_line, "%-29s= %s / %s", key, cval, ccom);
-        else sprintf(safe_line, "%-8.8s= %20s / %-48s", key, cval, ccom);
-        strncpy(line, safe_line, 80);
-        line[80]=(char)0;
-        return ;
-    }
-
-    /* Blank or NULL values */
-    if (cval[0]==0) {
-        if (hierarch) {
-            sprintf(safe_line, "%-29s=                    / %s", key, ccom);
-        } else {
-        sprintf(safe_line, "%-8.8s=                      / %-48s", key, ccom);
-        }
-        strncpy(line, safe_line, 80);
-        line[80]=(char)0;
-        return ;
-    }
-
-    /* Can only be a string - Make simple quotes ['] as double [''] */
-    memset(cval_q, 0, 81);
-    strcpy(cval2, qfits_pretty_string(cval));
-    j=0 ;
-    i=0 ;
-    while (cval2[i] != (char)0) {
-        if (cval2[i]=='\'') {
-            cval_q[j]='\'';
-            j++ ;
-            cval_q[j]='\'';
-        } else {
-            cval_q[j] = cval2[i];
-        }
-        i++ ;
-        j++ ;
-    }
-
-    if (hierarch) {
-        sprintf(safe_line, "%-29s= '%s' / %s", key, cval_q, ccom);
-        if (strlen(key) + strlen(cval_q) + 3 >= 80)
-            safe_line[79] = '\'';
-    } else {
-        sprintf(safe_line, "%-8.8s= '%-8s' / %s", key, cval_q, ccom);
-    }
-    strncpy(line, safe_line, 80);
-
-    /* Null-terminate in any case */
-    line[80]=(char)0;
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Find the keyword in a key card (80 chars)    
-  @param    line allocated 80-char line from a FITS header
-  @return    statically allocated char *
-
-  Find out the part of a FITS line corresponding to the keyword.
-  Returns NULL in case of error. The returned pointer is statically
-  allocated in this function, so do not modify or try to free it.
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_getkey(const char * line)
-{
-    static char     key[81];
-    int                i ;
-
-    if (line==NULL) {
-#ifdef DEBUG_FITSHEADER
-        printf("qfits_getkey: NULL input line\n");
-#endif
-        return NULL ;
-    }
-
-    /* Special case: blank keyword */
-    if (!strncmp(line, "        ", 8)) {
-        strcpy(key, "        ");
-        return key ;
-    }
-    /* Sort out special cases: HISTORY, COMMENT, END do not have = in line */
-    if (!strncmp(line, "HISTORY ", 8)) {
-        strcpy(key, "HISTORY");
-        return key ;
-    }
-    if (!strncmp(line, "COMMENT ", 8)) {
-        strcpy(key, "COMMENT");
-        return key ;
-    }
-    if (!strncmp(line, "END ", 4)) {
-        strcpy(key, "END");
-        return key ;
-    }
-
-    memset(key, 0, 81);
-    /* General case: look for the first equal sign */
-    i=0 ;
-    while (line[i]!='=' && i<80) i++ ;
-    if (i>=80) {
-#ifdef DEBUG_FITSHEADER
-        printf("qfits_getkey: cannot find equal sign\n");
-#endif
-        return NULL ;
-    }
-    i-- ;
-    /* Equal sign found, now backtrack on blanks */
-    while (line[i]==' ' && i>=0) i-- ;
-    if (i<=0) {
-#ifdef DEBUG_FITSHEADER
-        printf("qfits_getkey: error backtracking on blanks\n");
-#endif
-        return NULL ;
-    }
-    i++ ;
-
-    /* Copy relevant characters into output buffer */
-    strncpy(key, line, i) ;
-    /* Null-terminate the string */
-    key[i+1] = (char)0;
-    return key ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Find the value in a key card (80 chars)    
-  @param    line allocated 80-char line from a FITS header
-  @return    statically allocated char *
-
-  Find out the part of a FITS line corresponding to the value.
-  Returns NULL in case of error, or if no value can be found. The
-  returned pointer is statically allocated in this function, so do not
-  modify or try to free it.
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_getvalue(const char * line)
-{
-    static char value[81] ;
-    int     i ;
-    int     from, to ;
-    int     inq ;
-
-    if (line==NULL) {
-#ifdef DEBUG_FITSHEADER
-        printf("qfits_getvalue: NULL input line\n");
-#endif
-        return NULL ;
-    }
-
-    /* Special cases */
-
-    /* END has no associated value */
-    if (!strncmp(line, "END ", 4)) {
-        return NULL ;
-    }
-    /*
-     * HISTORY has for value everything else on the line, stripping
-     * blanks before and after. Blank HISTORY is also accepted.
-     */
-    memset(value, 0, 81);
-
-    if (!strncmp(line, "HISTORY ", 8) || !strncmp(line, "        ", 8)) {
-        i=7 ;
-        /* Strip blanks from the left side */
-        while (line[i]==' ' && i<80) i++ ;
-        if (i>=80) return NULL ; /* Blank HISTORY */
-        from=i ;
-
-        /* Strip blanks from the right side */
-        to=79 ;
-        while (line[to]==' ') to-- ;
-        /* Copy relevant characters into output buffer */
-        strncpy(value, line+from, to-from+1);
-        /* Null-terminate the string */
-        value[to-from+1] = (char)0;
-        return value ;
-    } else if (!strncmp(line, "COMMENT ", 8)) {
-        /* COMMENT is like HISTORY */
-        /* Strip blanks from the left side */
-        i=7 ;
-        while (line[i]==' ' && i<80) i++ ;
-        if (i>=80) return NULL ;
-        from=i ;
-
-        /* Strip blanks from the right side */
-        to=79 ;
-        while (line[to]==' ') to-- ;
-
-        if (to<from) {
-#ifdef DEBUG_FITSHEADER
-            printf("qfits_getvalue: inconsistent value search in COMMENT\n");
-#endif
-            return NULL ;
-        }
-        /* Copy relevant characters into output buffer */
-        strncpy(value, line+from, to-from+1);
-        /* Null-terminate the string */
-        value[to-from+1] = (char)0;
-        return value ;
-    }
-    /* General case - Get past the keyword */
-    i=0 ;
-    while (line[i]!='=' && i<80) i++ ;
-    if (i>80) {
-#ifdef DEBUG_FITSHEADER
-        printf("qfits_getvalue: no equal sign found on line\n");
-#endif
-        return NULL ;
-    }
-    i++ ;
-    while (line[i]==' ' && i<80) i++ ;
-    if (i>80) {
-#ifdef DEBUG_FITSHEADER
-        printf("qfits_getvalue: no value past the equal sign\n");
-#endif
-        return NULL ;
-    }
-    from=i;
-
-    /* Now value section: Look for the first slash '/' outside a string */
-    inq = 0 ;
-    while (i<80) {
-        if (line[i]=='\'')
-            inq=!inq ;
-        if (line[i]=='/')
-            if (!inq)
-                break ;
-        i++;
-    }
-    i-- ;
-
-    /* Backtrack on blanks */
-    while (line[i]==' ' && i>=0) i-- ;
-    if (i<0) {
-#ifdef DEBUG_FITSHEADER
-        printf("qfits_getvalue: error backtracking on blanks\n");
-#endif
-        return NULL ;
-    }
-    to=i ;
-
-    if (to<from) {
-#ifdef DEBUG_FITSHEADER
-        printf("qfits_getvalue: from>to?\n");
-        printf("line=[%s]\n", line);
-#endif
-        return NULL ;
-    }
-    /* Copy relevant characters into output buffer */
-    strncpy(value, line+from, to-from+1);
-    /* Null-terminate the string */
-    value[to-from+1] = (char)0;
-    return value ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Find the comment in a key card (80 chars)    
-  @param    line allocated 80-char line from a FITS header
-  @return    statically allocated char *
-
-  Find out the part of a FITS line corresponding to the comment.
-  Returns NULL in case of error, or if no comment can be found. The
-  returned pointer is statically allocated in this function, so do not
-  modify or try to free it.
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_getcomment(const char * line)
-{
-    static char comment[81];
-    int    i ;
-    int    from, to ;
-    int    inq ;
-
-    if (line==NULL) {
-#ifdef DEBUG_FITSHEADER
-        printf("qfits_getcomment: null line in input\n");
-#endif
-        return NULL ;
-    }
-
-    /* Special cases: END, HISTORY, COMMENT and blank have no comment */
-    if (!strncmp(line, "END ", 4)) return NULL ;
-    if (!strncmp(line, "HISTORY ", 8)) return NULL ;
-    if (!strncmp(line, "COMMENT ", 8)) return NULL ;
-    if (!strncmp(line, "        ", 8)) return NULL ;
-
-    memset(comment, 0, 81);
-    /* Get past the keyword */
-    i=0 ;
-    while (line[i]!='=' && i<80) i++ ;
-    if (i>=80) {
-#ifdef DEBUG_FITSHEADER
-        printf("qfits_getcomment: no equal sign on line\n");
-#endif
-        return NULL ;
-    }
-    i++ ;
-    
-    /* Get past the value until the slash */
-    inq = 0 ;
-    while (i<80) {
-        if (line[i]=='\'')
-            inq = !inq ;
-        if (line[i]=='/')
-            if (!inq)
-                break ;
-        i++ ;
-    }
-    if (i>=80) {
-#ifdef DEBUG_FITSHEADER
-        printf("qfits_getcomment: no slash found on line\n");
-#endif
-        return NULL ;
-    }
-    i++ ;
-    /* Get past the first blanks */
-    while (line[i]==' ') i++ ;
-    from=i ;
-
-    /* Now backtrack from the end of the line to the first non-blank char */
-    to=79 ;
-    while (line[to]==' ') to-- ;
-
-    if (to<from) {
-#ifdef DEBUG_FITSHEADER
-        printf("qfits_getcomment: from>to?\n");
-#endif
-        return NULL ;
-    }
-    /* Copy relevant characters into output buffer */
-    strncpy(comment, line+from, to-from+1);
-    /* Null-terminate the string */
-    comment[to-from+1] = (char)0;
-    return comment ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Expand a keyword from shortFITS to HIERARCH notation.
-  @param    keyword        Keyword to expand.
-  @return    1 pointer to statically allocated string.
-
-  This function expands a given keyword from shortFITS to HIERARCH
-  notation, bringing it to uppercase at the same time.
-
-  Examples:
-
-  @verbatim
-  det.dit          expands to     HIERARCH ESO DET DIT
-  ins.filt1.id     expands to     HIERARCH ESO INS FILT1 ID
-  @endverbatim
-
-  If the input keyword is a regular FITS keyword (i.e. it contains
-  not dots '.') the result is identical to the input.
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_expand_keyword(const char * keyword)
-{
-    static char expanded[81];
-    char        ws[81];
-    char    *    token ;
-
-    /* Bulletproof entries */
-    if (keyword==NULL) return NULL ;
-    /* If regular keyword, copy the uppercased input and return */
-    if (strstr(keyword, ".")==NULL) {
-        strcpy(expanded, expkey_strupc(keyword));
-        return expanded ;
-    }
-    /* Regular shortFITS keyword */
-    sprintf(expanded, "HIERARCH ESO");
-    strcpy(ws, expkey_strupc(keyword));
-    token = strtok(ws, ".");
-    while (token!=NULL) {
-        strcat(expanded, " ");
-        strcat(expanded, token);
-        token = strtok(NULL, ".");
-    }
-    return expanded ;
-}
-
-/**@}*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Uppercase a string
-  @param    s   string
-  @return   string
- */
-/*----------------------------------------------------------------------------*/
-static char * expkey_strupc(const char * s)
-{
-    static char l[1024+1];
-    int i ;
-
-    if (s==NULL) return NULL ;
-    memset(l, 0, 1024+1);
-    i=0 ;
-    while (s[i] && i<1024) {
-        l[i] = (char)toupper((int)s[i]);
-        i++ ;
-    }
-    l[1024]=(char)0;
-    return l ;
-}
-
diff --git a/libqfits/src/qfits_card.h b/libqfits/src/qfits_card.h
deleted file mode 100644
index edfc3a9..0000000
--- a/libqfits/src/qfits_card.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* $Id: qfits_card.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_CARD_H
-#define QFITS_CARD_H
-
-/*-----------------------------------------------------------------------------
-                        Function ANSI C prototypes
- -----------------------------------------------------------------------------*/
-
-void qfits_card_build(char *, const char *, const char *, const char *) ;
-char * qfits_getkey(const char *) ;
-char * qfits_getvalue(const char *) ;
-char * qfits_getcomment(const char *) ;
-char * qfits_expand_keyword(const char *) ;
-
-#endif
diff --git a/libqfits/src/qfits_error.c b/libqfits/src/qfits_error.c
deleted file mode 100644
index 5561610..0000000
--- a/libqfits/src/qfits_error.c
+++ /dev/null
@@ -1,226 +0,0 @@
-/* $Id: qfits_error.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <stdarg.h>
-
-#include "qfits_error.h"
-
-/*-----------------------------------------------------------------------------
-                                   Defines
- -----------------------------------------------------------------------------*/
-
-/* Max number of error handling functions registered */
-#define QFITS_ERR_MAXERRDISP        8
-/* Max size of an error message */
-#define QFITS_ERR_MSGSIZE            1024
-
-/*-----------------------------------------------------------------------------
-                               Static declarations
- -----------------------------------------------------------------------------*/
-
-/* Type of a display function only defined for legibility here */
-typedef void (*qfits_err_dispfunc)(char *) ;
-
-/* Default display function prints out msg to stderr */
-static void qfits_err_display_stderr(char * s)
-{ fprintf(stderr, "qfits: %s\n", s); }
-
-/* Static control structure, completely private */
-static struct {
-    qfits_err_dispfunc     disp[QFITS_ERR_MAXERRDISP] ;
-    int                 n ;
-    int                    active ;
-} qfits_err_control = {{qfits_err_display_stderr}, 1, 0} ;
-
-static int qfits_err_statget(void) ;
-static int qfits_err_statset(int) ;
-static int qfits_err_register( void (*dispfn)(char*) ) ;
-static void qfits_err_main_display(char *) ;
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_error     Messaging functionalities 
- *
- *   This module is responsible for error message display. It allows
- *  to re-direct all messages to a given set of functions for display.
- *
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                              Function codes
- -----------------------------------------------------------------------------*/
-
-/* Public warning/error functions */
-void qfits_warning(const char *fmt, ...)
-{
-    char msg[QFITS_ERR_MSGSIZE] ;
-    char all[QFITS_ERR_MSGSIZE] ;
-    va_list ap ;
-
-    /* Check if display is activated */
-    if (qfits_err_control.active==0) {
-        return ;
-    }
-    va_start(ap, fmt) ;
-    vsprintf(msg, fmt, ap) ;
-    va_end(ap);
-
-    sprintf(all, "*** %s", msg);
-    qfits_err_main_display(all);
-    return ;
-}
-void qfits_error(const char *fmt, ...)
-{
-    char msg[QFITS_ERR_MSGSIZE] ;
-    char all[QFITS_ERR_MSGSIZE] ;
-    va_list ap ;
-
-    /* Check if display is activated */
-    if (qfits_err_control.active==0) {
-        return ;
-    }
-    va_start(ap, fmt) ;
-    vsprintf(msg, fmt, ap) ;
-    va_end(ap);
-
-    sprintf(all, "error: %s", msg);
-    qfits_err_main_display(all);
-    return ;
-}
-/**@}*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    used for message display
-  @param    msg     message
-  @return   nothing
-  It calls registered display functions one after another.
- */
-/*----------------------------------------------------------------------------*/
-static void qfits_err_main_display(char * msg)
-{
-    int    i ;
-
-    /* Check if there is a message in input */
-    if (msg==NULL)
-        return ;
-
-    /* Loop on all registered functions and call them */
-    for (i=0 ; i<qfits_err_control.n ; i++) {
-        if (qfits_err_control.disp[i]) {
-            qfits_err_control.disp[i](msg);
-        }
-    }
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Get the current status of error display.
-  @return    int 1 if error display is active, 0 if not.
-
-  This function returns the current error display status. If it returns 1,
-  it means that all calls to qfits_error/qfits_warning will display
-  messages using the registered functions, otherwise they do nothing.
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_err_statget(void)
-{
-    return qfits_err_control.active ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Set the current status of error display.
-  @param    sta        New status to be set.
-  @return    int giving the previous display status.
-
-  This function sets the current error display status to the required
-  value, and returns the previous value. It is useful to store the
-  previous value, in view of restoring it afterwards, e.g. to make a
-  function silent on all its errors. Example:
-
-  @code
-  int prev_stat = qfits_err_statset(0) ;
-  function_call() ;
-  qfits_err_statset(prev_stat);
-  @endcode
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_err_statset(int sta)
-{
-    int prev ;
-    prev = qfits_err_control.active ;
-    qfits_err_control.active=sta ;
-    return prev ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Register a function to display error/warning messages.
-  @param    dispfn    Display function (see doc below).
-  @return    int 0 if function was registered, -1 if not.
-
-  This function registers a display function into the error-handling
-  module. Display functions have the following prototype:
-
-  @code
-  void display_function(char * msg);
-  @endcode
-
-  They are simple functions that expect a ready-made error message
-  and return void. They can do whatever they want with the message
-  (log it to a file, send it to a GUI, to the syslog, ...). The
-  message is built using a printf-like statement in qfits_error and
-  qfits_warning, then passed to all registered display functions.
-
-  A maximum of QFITS_ERR_MAXERRDISP can be registered (see source code).
-  If the limit has been reached, this function will signal it by
-  returning -1.
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_err_register(qfits_err_dispfunc dispfn)
-{
-    if (qfits_err_control.n==QFITS_ERR_MAXERRDISP) {
-        /* Cannot register any more function */
-        return -1 ;
-    }
-    qfits_err_control.disp[qfits_err_control.n] = dispfn ;
-    qfits_err_control.n ++ ;
-    return 0 ;
-}
-
diff --git a/libqfits/src/qfits_error.h b/libqfits/src/qfits_error.h
deleted file mode 100644
index 51201ed..0000000
--- a/libqfits/src/qfits_error.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* $Id: qfits_error.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_ERROR_H
-#define QFITS_ERROR_H
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdarg.h>
-
-/*-----------------------------------------------------------------------------
-                               Function prototypes
- -----------------------------------------------------------------------------*/
-
-void qfits_warning(const char *fmt, ...);
-void qfits_error(const char *fmt, ...);
-
-#endif
diff --git a/libqfits/src/qfits_filename.c b/libqfits/src/qfits_filename.c
deleted file mode 100644
index 340f027..0000000
--- a/libqfits/src/qfits_filename.c
+++ /dev/null
@@ -1,247 +0,0 @@
-/* $Id: qfits_filename.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-#include <pwd.h>
-#include <sys/types.h>
-
-#include "qfits_filename.h"
-
-/*-----------------------------------------------------------------------------
-                                  Define
- -----------------------------------------------------------------------------*/
-
-/* Maximum size of a filename buffer */
-#define MAXNAMESZ       4096
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup   qfits_filename   Get various names (filenames, dir names,...) 
- * The following functions are useful to cut out a filename into its components.
- * All functions work with statically allocated memory, i.e. the pointers they 
- * return are not permanent but likely to be overwritten at each function call. 
- * If you need a returned value later on, you should store it into a local 
- * variable.
- * 
- * Example:
- * 
- * @code
- * char * s ;
- * s = qfits_get_dir_name("/mnt/cdrom/data/image.fits")
- * @endcode
- * 
- * s contains now "/mnt/cdrom/data" but will loose these contents at the next 
- * function call. To retain its value, you can either do:
- * 
- * @code
- * char s[1024];
- * strcpy(s, qfits_get_dir_name("/mnt/cdrom/data/image.fits"));
- * @endcode
- * 
- * or:
- *
- * @code
- * char * s;
- * s = strdup(qfits_get_dir_name("/mnt/cdrom/data/image.fits"));
- * ...
- * free(s);
- * @endcode
- *
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                              Function codes
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Find the directory name in the given string.
-  @param    filename    Full path name to scan.
-  @return   Pointer to statically allocated string.
-
-  Provide a full path name and you get in return a pointer to a statically 
-  allocated string containing the name of the directory only, without trailing 
-  slash. If the input string does not contain a slash (i.e. it is not a full 
-  path), the returned string is '.', corresponding to the current working 
-  directory. Since the returned string is statically allocated, do not try to 
-  free it or modify it.
-
-  This function does not check for the existence of the path or the file.
-
-  Examples:
-  @verbatim
-    qfits_get_dir_name("/cdrom/data/image.fits") returns "/cdrom/data"
-    qfits_get_dir_name("filename.fits") returns "."
-  @endverbatim
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_get_dir_name(const char * filename)
-{
-    static char path[MAXNAMESZ];
-    char *last_slash;
-
-    if (strlen(filename)>MAXNAMESZ) return NULL ;
-    strcpy(path, filename);
-    /* Find last '/'.  */
-    last_slash = path != NULL ? strrchr (path, '/') : NULL;
-
-    if (last_slash == path)
-    /* The last slash is the first character in the string.  We have to
-    return "/".  */
-        ++last_slash;
-    else if (last_slash != NULL && last_slash[1] == '\0')
-        /* The '/' is the last character, we have to look further.  */
-        last_slash = memchr (path, last_slash - path, '/');
-
-    if (last_slash != NULL)
-        /* Terminate the path.  */
-        last_slash[0] = '\0';
-    else
-        /* This assignment is ill-designed but the XPG specs require to
-        return a string containing "." in any case no directory part is
-        found and so a static and constant string is required.  */
-        strcpy(path, ".");
-    return path;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Find out the base name of a file (i.e. without prefix path)
-  @param    filename    Full path name to scan.
-  @return   Pointer to char within the input string.
-
-  Provide a full path name and you get in return a pointer to a statically 
-  allocated string containing the name of the file only, without prefixing 
-  directory names. If the input string does not contain a slash (i.e. it is 
-  not a full path), the returned string is a copy of the input string.
-
-  This function does not check for the existence of the path or the file.
-
-  Examples:
-  @verbatim
-    qfits_get_base_name("/cdrom/data/image.fits") returns "image.fits"
-    qfits_get_base_name("filename.fits") returns "filename.fits"
-  @endverbatim
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_get_base_name(const char *filename)
-{
-    char *p ;
-    p = strrchr (filename, '/');
-    return p ? p + 1 : (char *) filename;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Find out the root part of a basename (name without extension).
-  @param    filename    File name to scan.
-  @return   Pointer to statically allocated string.
-
-  Find out the root part of a file name, i.e. the file name without extension. 
-  Since in Unix a file name can have several dots, only a number of extensions 
-  are supported. This includes:
-
-  - .fits and .FITS
-  - .tfits and .TFITS
-  - .paf and .PAF
-  - .ascii and .ASCII
-  - .dat and .DAT
-  - .txt and .TXT
-
-  This function does not check for the existence of the path or the file.
-
-  Examples:
-  @verbatim
-    qfits_get_root_name("/cdrom/filename.fits") returns "/cdrom/filename"
-    qfits_get_root_name("filename.paf") returns "filename"
-    qfits_get_root_name("filename") returns "filename"
-    qfits_get_root_name("filename.ext") returns "filename.ext"
-  @endverbatim
-
-  Since the returned string is statically allocated in this module, do not try 
-  to free it or modify its contents.
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_get_root_name(const char * filename)
-{
-    static char path[MAXNAMESZ+1];
-    char * lastdot ;
-
-    if (strlen(filename)>MAXNAMESZ) return NULL ;
-    memset(path, MAXNAMESZ, 0);
-    strcpy(path, filename);
-    lastdot = strrchr(path, '.');
-    if (lastdot == NULL) return path ;
-    if ((!strcmp(lastdot, ".fits")) || (!strcmp(lastdot, ".FITS")) ||
-        (!strcmp(lastdot, ".paf")) || (!strcmp(lastdot, ".PAF")) ||
-        (!strcmp(lastdot, ".dat")) || (!strcmp(lastdot, ".DAT")) ||
-        (!strcmp(lastdot, ".txt")) || (!strcmp(lastdot, ".TXT")) ||
-        (!strcmp(lastdot, ".tfits")) || (!strcmp(lastdot, ".TFITS")) ||
-        (!strcmp(lastdot, ".ascii")) || (!strcmp(lastdot, ".ASCII")))
-    {
-        lastdot[0] = (char)0;
-    }
-    return path ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Find out the extension of a file name
-  @param    filename    File name without path prefix.
-  @return   Pointer to char within the input string.
-  
-  Find out the extension of a given file name. Notice that the input character 
-  string must not contain a path prefix (typically, you feed in the output of 
-  @c qfits_get_base_name).
-
-  Works with all kinds of extensions: returns the part of the string after the 
-  last dot. If no dot is found in the input string, NULL is returned.
-
-  Examples:
-  @verbatim
-    qfits_get_ext_name("filename.fits") returns "fits"
-    qfits_get_ext_name("hello.c") returns "c"
-    qfits_get_ext_name("readme") returns NULL
-  @endverbatim
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_get_ext_name(const char * filename)
-{
-    char * p;
-    p = strrchr(filename, '.');
-    return p ? p+1 : NULL ;
-}
-
-/**@}*/
diff --git a/libqfits/src/qfits_filename.h b/libqfits/src/qfits_filename.h
deleted file mode 100644
index 41dca7d..0000000
--- a/libqfits/src/qfits_filename.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* $Id: qfits_filename.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_FILENAME_H
-#define QFITS_FILENAME_H
-
-/*-----------------------------------------------------------------------------
-                        Function ANSI C prototypes
- -----------------------------------------------------------------------------*/
-
-char * qfits_get_dir_name(const char *) ;
-char * qfits_get_base_name(const char *) ;
-char * qfits_get_root_name(const char *) ;
-char * qfits_get_ext_name(const char *) ;
-
-#endif
diff --git a/libqfits/src/qfits_float.c b/libqfits/src/qfits_float.c
deleted file mode 100644
index 2a1d60a..0000000
--- a/libqfits/src/qfits_float.c
+++ /dev/null
@@ -1,242 +0,0 @@
-/* $Id: qfits_float.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include "config.h"
-
-#include "qfits_float.h"
-
-/*-----------------------------------------------------------------------------
-                                   New types
- -----------------------------------------------------------------------------*/
-
-#ifndef WORDS_BIGENDIAN
-/* Little endian ordering */
-typedef union _ieee_double_pattern_ {
-    double d ;
-    struct {
-        unsigned int lsw ;
-        unsigned int msw ;
-    } p ;
-} ieee_double_pattern ;
-#else
-/* Big endian ordering */
-typedef union _ieee_double_pattern_ {
-    double d ;
-    struct {
-        unsigned int msw ;
-        unsigned int lsw ;
-    } p ;
-} ieee_double_pattern ;
-#endif
-
-typedef union _ieee_float_pattern_ {
-    float f ;
-    int   i ;
-} ieee_float_pattern ;
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_float This module implements the qfits_isnan() 
- *                          and qfits_isinf() macros
- *
- *  The isnan() and isinf() macros are unfortunately not yet part of
- *  the standard C math library everywhere. They can usually be found
- *  in different places, if they are offered at all, and require the
- *  application to link against the math library. To avoid portability
- *  problems and linking against -lm, this module implements a fast
- *  and portable way of finding out whether a floating-point value
- *  (float or double) is a NaN or an Inf.
- *
- *  Instead of calling isnan() and isinf(), the programmer including
- *  this file should call qfits_isnan() and qfits_isinf().
- *
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                              Function codes
- -----------------------------------------------------------------------------*/
-
-int _qfits_isnanf(float f)
-{
-    ieee_float_pattern ip ;
-    int ix ;
-
-    ip.f = f ;
-    ix = ip.i ;
-    ix &= 0x7fffffff ;
-    ix = 0x7f800000 - ix ;
-    return (int)(((unsigned int)(ix))>>31);
-}
-
-int _qfits_isinff(float f)
-{
-    ieee_float_pattern ip ;
-    int ix, t ;
-
-    ip.f = f ;
-    ix = ip.i ;
-    t = ix & 0x7fffffff;
-    t ^= 0x7f800000;
-    t |= -t;
-    return ~(t >> 31) & (ix >> 30);
-}
-
-int _qfits_isnand(double d)
-{
-    ieee_double_pattern id ;
-    int hx, lx ;
-
-    id.d = d ;
-    lx = id.p.lsw ;
-    hx = id.p.msw ;
-
-    hx &= 0x7fffffff;
-    hx |= (unsigned int)(lx|(-lx))>>31;
-    hx = 0x7ff00000 - hx;
-    return (int)(((unsigned int)hx)>>31);
-}
-
-int _qfits_isinfd(double d)
-{
-    ieee_double_pattern id ;
-    int hx, lx ;
-
-    id.d = d ;
-    lx = id.p.lsw ;
-    hx = id.p.msw ;
-
-    lx |= (hx & 0x7fffffff) ^ 0x7ff00000;
-    lx |= -lx;
-    return ~(lx >> 31) & (hx >> 30);
-}
-
-/**@}*/
-
-/*
- * Test program to validate the above functions
- * Compile with:
- * % cc -o qfits_float qfits_float.c -DTEST
- */
-
-#ifdef TEST
-#include <stdio.h>
-#include <string.h>
-#include "ieeefp-compat.h"
-
-#ifndef WORDS_BIGENDIAN
-/* Little endian patterns */
-static unsigned char fnan_pat[] = {0, 0, 0xc0, 0x7f};
-static unsigned char dnan_pat[] = {0, 0, 0, 0, 0, 0, 0xf8, 0x7f};
-static unsigned char finf_pat[] = {0, 0, 0x80, 0x7f};
-static unsigned char dinf_pat[] = {0, 0, 0, 0, 0, 0, 0xf0, 0x7f};
-static unsigned char fminf_pat[] = {0, 0, 0x80, 0xff};
-/* static unsigned char dminf_pat[] = {0, 0, 0, 0, 0, 0, 0xf0, 0xff}; */
-static unsigned char dminf_pat[] = {0, 0, 0, 0, 0, 0, 0xf0, 0x7f};
-#else
-/* Big endian patterns */
-static unsigned char fnan_pat[] = {0x7f, 0xc0, 0, 0};
-static unsigned char dnan_pat[] = {0x7f, 0xf8, 0, 0, 0, 0, 0, 0};
-static unsigned char finf_pat[] = {0x7f, 0x80, 0, 0};
-static unsigned char dinf_pat[] = {0x7f, 0xf0, 0, 0, 0, 0, 0, 0};
-static unsigned char fminf_pat[] = {0xff, 0x80, 0, 0};
-static unsigned char dminf_pat[] = {0xff, 0xf0, 0, 0, 0, 0, 0, 0};
-#endif
-
-static void hexdump(void * p, int s)
-{
-    unsigned char * c ;
-    int i ;
-
-    c=(unsigned char*)p ;
-#ifndef WORDS_BIGENDIAN
-    for (i=s-1 ; i>=0 ; i--) {
-#else
-    for (i=0 ; i<s ; i++) {
-#endif
-        printf("%02x", c[i]);
-    }
-    printf("\n");
-}
-
-int main(void)
-{
-    float   f ;
-    double  d ;
-
-    printf("Testing Nan...\n");
-    memcpy(&f, fnan_pat, 4);
-    memcpy(&d, dnan_pat, 8);
-    printf("f=%g d=%g\n", f, d);
-    hexdump(&f, sizeof(float));
-    hexdump(&d, sizeof(double));
-
-    if (qfits_isnan(f)) {
-        printf("f is NaN\n");
-    }
-    if (qfits_isnan(d)) {
-        printf("d is NaN\n");
-    }
-
-    printf("Testing +Inf...\n");
-    memcpy(&f, finf_pat, 4);
-    memcpy(&d, dinf_pat, 8);
-    printf("f=%g d=%g\n", f, d);
-    hexdump(&f, sizeof(float));
-    hexdump(&d, sizeof(double));
-
-    if (qfits_isinf(f)) {
-        printf("f is Inf\n");
-    }
-    if (qfits_isinf(d)) {
-        printf("d is Inf\n");
-    }
-
-    printf("Testing -Inf...\n");
-    memcpy(&f, fminf_pat, 4);
-    memcpy(&d, dminf_pat, 8);
-    printf("f=%g d=%g\n", f, d);
-    hexdump(&f, sizeof(float));
-    hexdump(&d, sizeof(double));
-
-    if (qfits_isinf(f)) {
-        printf("f is (-)Inf\n");
-    }
-    if (qfits_isinf(d)) {
-        printf("d is (-)Inf\n");
-    }
-
-    return 0 ;
-}
-#endif
-
-
diff --git a/libqfits/src/qfits_float.h b/libqfits/src/qfits_float.h
deleted file mode 100644
index ebcddcb..0000000
--- a/libqfits/src/qfits_float.h
+++ /dev/null
@@ -1,85 +0,0 @@
-/* $Id: qfits_float.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_FLOAT_H
-#define QFITS_FLOAT_H
-
-/*-----------------------------------------------------------------------------
-                                   Macros
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Test a floating-point variable for NaN value.
-  @param    n   Number to test (float or double)
-  @return   1 if n is NaN, 0 else.
-
-  This macro is needed to support both float and double variables
-  as input parameter. It checks on the size of the input variable
-  to branch to the float or double version.
-
-  Portability is an issue for this function which is present on
-  most Unixes but not all, under various libraries (C lib on BSD,
-  Math lib on Linux, sunmath on Solaris, ...). Integrating the
-  code for this function makes qfits independent from any math
-  library.
- */
-/*----------------------------------------------------------------------------*/
-#define qfits_isnan(n) ((sizeof(n)==sizeof(float)) ? _qfits_isnanf(n) : \
-                        (sizeof(n)==sizeof(double)) ? _qfits_isnand(n) : -1)
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Test a floating-point variable for Inf value.
-  @param    n   Number to test (float or double)
-  @return   1 if n is Inf or -Inf, 0 else.
-
-  This macro is needed to support both float and double variables
-  as input parameter. It checks on the size of the input variable
-  to branch to the float or double version.
-
-  Portability is an issue for this function which is missing on most
-  Unixes. Most of the time, another function called finite() is
-  offered to perform the opposite task, but it is not consistent
-  among platforms and found in various libraries. Integrating the
-  code for this function makes qfits independent from any math
-  library.
- */
-/*----------------------------------------------------------------------------*/
-#define qfits_isinf(n) ((sizeof(n)==sizeof(float)) ? _qfits_isinff(n) : \
-                        (sizeof(n)==sizeof(double)) ? _qfits_isinfd(n) : -1)
-
-/*-----------------------------------------------------------------------------
-                               Function prototypes
- -----------------------------------------------------------------------------*/
-
-int _qfits_isnanf(float) ;
-int _qfits_isinff(float) ;
-int _qfits_isnand(double) ;
-int _qfits_isinfd(double) ;
-
-#endif
diff --git a/libqfits/src/qfits_header.c b/libqfits/src/qfits_header.c
deleted file mode 100644
index 3edc4db..0000000
--- a/libqfits/src/qfits_header.c
+++ /dev/null
@@ -1,1047 +0,0 @@
-/* $Id: qfits_header.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include "qfits_header.h"
-
-#include "qfits_tools.h"
-#include "qfits_card.h"
-#include "qfits_error.h"
-#include "qfits_memory.h"
-
-/*----------------------------------------------------------------------------*/
-/*
-  @brief    keytuple object (internal)
-
-  This structure represents a FITS card (key, val, comment) in memory.
-  A FITS header is a list of such structs. Although the struct is here
-  made public for convenience, it is not supposed to be directly used.
-  High-level FITS routines should do the job just fine, without need
-  to know about this struct.
- */
-/*----------------------------------------------------------------------------*/
-typedef struct _keytuple_ {
-
-    char    *   key ;   /** Key: unique string in a list */
-    char    *   val ;   /** Value, always as a string */
-    char    *   com ;   /** Comment associated to key */
-    char    *   lin ;   /** Initial line in FITS header if applicable */
-    int         typ ;   /** Key type */
-
-    /** Implemented as a doubly-linked list */
-    struct _keytuple_ * next ;
-    struct _keytuple_ * prev ;
-} keytuple ;
-
-/*----------------------------------------------------------------------------*/
-/**
-  @enum        keytype
-  @brief    Possible key types
-
-  This enum stores all possible types for a FITS keyword. These determine
-  the order of appearance in a header, they are a crucial point for
-  DICB (ESO) compatibility. This classification is internal to this
-  module.
- */
-/*----------------------------------------------------------------------------*/
-typedef enum _keytype_ {
-    keytype_undef            =0,
-
-    keytype_top                =1,
-
-    /* Mandatory keywords */
-    /* All FITS files */
-    keytype_bitpix            =2,
-    keytype_naxis            =3,
-
-    keytype_naxis1            =11,
-    keytype_naxis2            =12,
-    keytype_naxis3            =13,
-    keytype_naxis4            =14,
-    keytype_naxisi            =20,
-    /* Random groups only */
-    keytype_group            =30,
-    /* Extensions */
-    keytype_pcount            =31,
-    keytype_gcount            =32,
-    /* Main header */
-    keytype_extend            =33,
-    /* Images */
-    keytype_bscale            =34,
-    keytype_bzero            =35,
-    /* Tables */
-    keytype_tfields            =36,
-    keytype_tbcoli            =40,
-    keytype_tformi            =41,
-
-    /* Other primary keywords */
-    keytype_primary            =100,
-
-    /* HIERARCH ESO keywords ordered according to DICB */
-    keytype_hierarch_dpr    =200,
-    keytype_hierarch_obs    =201,
-    keytype_hierarch_tpl    =202,
-    keytype_hierarch_gen    =203,
-    keytype_hierarch_tel    =204,
-    keytype_hierarch_ins    =205,
-    keytype_hierarch_det    =206,
-    keytype_hierarch_log    =207,
-    keytype_hierarch_pro    =208,
-    /* Other HIERARCH keywords */
-    keytype_hierarch        =300,
-
-    /* HISTORY and COMMENT */
-    keytype_history            =400,
-    keytype_comment            =500,
-    /* END */
-    keytype_end                =1000
-} keytype ;
-
-/*-----------------------------------------------------------------------------
-                        Private to this module
- -----------------------------------------------------------------------------*/
-
-static keytuple * keytuple_new(const char *, const char *, const char *, 
-        const char *);
-static void keytuple_del(keytuple *);
-static void keytuple_dmp(const keytuple *);
-static keytype keytuple_type(const char *);
-static int qfits_header_makeline(char *, const keytuple *, int) ;
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_header    FITS header handling
- *
- * This file contains definition and related methods for the FITS header
- * structure. This structure is meant to remain opaque to the user, who
- * only accesses it through the dedicated functions.
- *
- * The 'keytuple' type is strictly internal to this module.
- * It describes FITS cards as tuples (key,value,comment,line), where key
- * is always a non-NULL character string, value and comment are
- * allowed to be NULL. 'line' is a string containing the line as it
- * has been read from the input FITS file (raw). It is set to NULL if
- * the card is modified later. This allows in output two options:
- * either reconstruct the FITS lines by printing key = value / comment
- * in a FITS-compliant way, or output the lines as they were found in
- * input, except for the modified ones.
- *
- * The following functions are associated methods
- * to this data structure:
- *
- * - keytuple_new()      constructor
- * - keytuple_del()      destructor
- * - keytuple_dmp()      dumps a keytuple to stdout
- *
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                              Public functions
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    FITS header constructor
-  @return    1 newly allocated (empty) qfits_header object.
-
-  This is the main constructor for a qfits_header object. It returns
-  an allocated linked-list handler with an empty card list.
- */
-/*----------------------------------------------------------------------------*/
-qfits_header * qfits_header_new(void)
-{
-    qfits_header    *    h ;    
-    h = qfits_malloc(sizeof(qfits_header));
-    h->first = NULL ;
-    h->last  = NULL ;
-    h->n = 0 ;
-
-    h->current = NULL ;
-    h->current_idx = -1 ;
-
-    return h;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    FITS header default constructor.
-  @return    1 newly allocated qfits_header object.
-
-  This is a secondary constructor for a qfits_header object. It returns
-  an allocated linked-list handler containing two cards: the first one
-  (SIMPLE=T) and the last one (END).
-
- */
-/*----------------------------------------------------------------------------*/
-qfits_header * qfits_header_default(void)
-{
-    qfits_header    *    h ;
-    h = qfits_header_new() ;
-    qfits_header_append(h, "SIMPLE", "T", "Fits format", NULL);
-    qfits_header_append(h, "END", NULL, NULL, NULL);
-    return h;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Add a new card to a FITS header
-  @param    hdr qfits_header object to modify
-  @param    key FITS key
-  @param    val FITS value
-  @param    com FITS comment
-  @param    lin FITS original line if exists
-  @return    void
-
-  This function adds a new card into a header, at the one-before-last
-  position, i.e. the entry just before the END entry if it is there.
-  The key must always be a non-NULL string, all other input parameters
-  are allowed to get NULL values.
- */
-/*----------------------------------------------------------------------------*/
-void qfits_header_add(
-        qfits_header    *   hdr,
-        const char      *   key,
-        const char      *   val,
-        const char      *   com,
-        const char      *   lin)
-{
-    keytuple    *    k ;
-    keytuple    *    kbf ;
-    keytuple    *    first ;
-    keytuple    *    last ;
-
-    if (hdr==NULL || key==NULL) return ;
-    if (hdr->n<2) return ;
-
-    first = (keytuple*)hdr->first ;
-    last  = (keytuple*)hdr->last ;
-
-    if (((keytype)first->typ != keytype_top) ||
-        ((keytype)last->typ != keytype_end)) return ;
-    
-    /* Create new key tuple */
-    k = keytuple_new(key, val, com, lin);
-
-    /* Find the last keytuple with same key type */
-    kbf = first ;
-    while (kbf!=NULL) {
-        if ((k->typ>=kbf->typ) && (k->typ<kbf->next->typ)) break ;
-        kbf = kbf->next ;
-    }
-    if (kbf==NULL) kbf = last->prev ;
-
-    /* Hook it into list */
-    k->next = kbf->next ;
-    (kbf->next)->prev = k ;
-    kbf->next = k ;
-    k->prev = kbf ;
-
-    hdr->n ++ ;
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    add a new card to a FITS header
-  @param    hdr     qfits_header object to modify
-  @param    after    Key to specify insertion place
-  @param    key     FITS key
-  @param    val     FITS value
-  @param    com     FITS comment
-  @param    lin     FITS original line if exists
-  @return    void
-
-  Adds a new card to a FITS header, after the specified key. Nothing
-  happens if the specified key is not found in the header. All fields
-  can be NULL, except after and key.
- */
-/*----------------------------------------------------------------------------*/
-void qfits_header_add_after(
-        qfits_header    *   hdr,
-        const char      *   after,
-        const char      *   key,
-        const char      *   val,
-        const char      *   com,
-        const char      *   lin)
-{
-    keytuple    *   kreq;
-    keytuple    *   k;
-    char        *   exp_after ;
-
-    if (hdr==NULL || after==NULL || key==NULL) return ;
-
-    exp_after = qfits_expand_keyword(after);
-    /* Locate where the entry is requested */
-    kreq = (keytuple*)(hdr->first) ;
-    while (kreq!=NULL) {
-        if (!strcmp(kreq->key, exp_after)) break ;
-        kreq = kreq->next ;
-    }
-    if (kreq==NULL) return ;
-    k = keytuple_new(key, val, com, lin);
-
-    k->next = kreq->next ;
-    kreq->next->prev = k ;
-    kreq->next = k ;
-    k->prev = kreq ;
-    hdr->n ++ ;
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Append a new card to a FITS header.
-  @param    hdr qfits_header object to modify
-  @param    key FITS key
-  @param    val FITS value
-  @param    com FITS comment
-  @param    lin FITS original line if exists
-  @return    void
-
-  Adds a new card in a FITS header as the last one. All fields can be
-  NULL except key.
- */
-/*----------------------------------------------------------------------------*/
-void qfits_header_append(
-        qfits_header    *   hdr,
-        const char      *   key,
-        const char      *   val,
-        const char      *   com,
-        const char      *   lin)
-{
-    keytuple    *    k;
-    keytuple    *    last ;
-
-    if (hdr==NULL || key==NULL) return ;
-
-    k = keytuple_new(key, val, com, lin);
-    if (hdr->n==0) {
-        hdr->first = hdr->last = k ;
-        hdr->n = 1 ;
-        return ;
-    }
-    last  = (keytuple*)hdr->last ;
-    last->next = k ;
-    k->prev = last ;
-    hdr->last = k ;
-    hdr->n++ ;
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Delete a card in a FITS header.
-  @param    hdr qfits_header to modify
-  @param    key specifies which card to remove
-  @return    void
-
-  Removes a card from a FITS header. The first found card that matches
-  the key is removed.
- */
-/*----------------------------------------------------------------------------*/
-void qfits_header_del(qfits_header * hdr, const char * key)
-{
-    keytuple    *   k ;
-    char        *   xkey ;
-
-    if (hdr==NULL || key==NULL) return ;
-
-    xkey = qfits_expand_keyword(key);
-    k = (keytuple*)hdr->first ;
-    while (k!=NULL) {
-        if (!strcmp(k->key, xkey)) break ;
-        k = k->next ;
-    }
-    if (k==NULL)
-        return ;
-    if(k == hdr->first) {
-        hdr->first = k->next ;
-    } else {
-        k->prev->next = k->next ;
-        k->next->prev = k->prev ;
-    }
-    keytuple_del(k);
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Modifies a FITS card.
-  @param    hdr qfits_header to modify
-  @param    key FITS key
-  @param    val FITS value
-  @param    com FITS comment
-  @return    void
-
-  Finds the first card in the header matching 'key', and replaces its
-  value and comment fields by the provided values. The initial FITS
-  line is set to NULL in the card.
- */
-/*----------------------------------------------------------------------------*/
-void qfits_header_mod(
-        qfits_header    *   hdr,
-        const char      *   key,
-        const char      *   val,
-        const char      *   com)
-{
-    keytuple    *   k ;
-    char        *   xkey ;
-
-    if (hdr==NULL || key==NULL) return ;
-
-    xkey = qfits_expand_keyword(key);
-    k = (keytuple*)hdr->first ;
-    while (k!=NULL) {
-        if (!strcmp(k->key, xkey)) break ;
-        k=k->next ;
-    }
-    if (k==NULL) return ;
-    
-    if (k->val) qfits_free(k->val);
-    if (k->com) qfits_free(k->com);
-    if (k->lin) qfits_free(k->lin);
-    k->val = NULL ;
-    k->com = NULL ;
-    k->lin = NULL ;
-    if (val) {
-        if (strlen(val)>0) k->val = qfits_strdup(val);
-    }
-    if (com) {
-        if (strlen(com)>0) k->com = qfits_strdup(com);
-    }
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Sort a FITS header
-  @param    hdr     Header to sort (modified)
-  @return   -1 in error case, 0 otherwise
- */
-/*----------------------------------------------------------------------------*/
-int qfits_header_sort(qfits_header ** hdr) 
-{
-    qfits_header    *   sorted ;
-    keytuple        *   k ;
-    keytuple        *   kbf ;
-    keytuple        *   next ;
-    keytuple        *   last ;
-
-    /* Test entries */
-    if (hdr == NULL) return -1 ;
-    if (*hdr == NULL) return -1 ;
-    if ((*hdr)->n < 2) return 0 ;
-    
-    /* Create the new FITS header */
-    sorted = qfits_header_new() ;
-
-    /* Move the first keytuple to the sorted empty header */
-    k = (keytuple*)(*hdr)->first ;
-    next = k->next ;
-    sorted->first = sorted->last = k ;
-    k->next = k->prev = NULL ;
-    sorted->n = 1 ;
-    
-    /* Loop over the other tuples */
-    while (next != NULL) {
-        k = next ;
-        next = k->next ;
-
-        /* Find k's place in sorted */
-        kbf = (keytuple*)sorted->first ;
-        while (kbf!=NULL) {
-            if (k->typ < kbf->typ) break ;
-            kbf = kbf->next ;
-        }
-        
-        /* Hook k into sorted list */
-        if (kbf == NULL) {
-            /* k is last in sorted */
-            last = sorted->last ;
-            sorted->last = k ;
-            k->next = NULL ;
-            k->prev = last ;
-            last->next = k ;
-        } else {
-            /* k goes just before kbf */
-            k->next = kbf ;
-            k->prev = kbf->prev ;
-            if (kbf->prev != NULL) (kbf->prev)->next = k ;
-            else sorted->first = k ;
-            kbf->prev = k ;
-        }
-        (sorted->n) ++ ;
-    }
-
-    /* Replace the input header by the sorted one */
-    (*hdr)->first = (*hdr)->last = NULL ;
-    qfits_header_destroy(*hdr) ;
-    *hdr = sorted ;
-    
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Copy a FITS header
-  @param    src    Header to replicate
-  @return    Pointer to newly allocated qfits_header object.
-
-  Makes a strict copy of all information contained in the source
-  header. The returned header must be freed using qfits_header_destroy.
- */
-/*----------------------------------------------------------------------------*/
-qfits_header * qfits_header_copy(const qfits_header * src)
-{
-    qfits_header    *   fh_copy ;
-    keytuple        *   k ;
-
-    if (src==NULL) return NULL ;
-
-    fh_copy = qfits_header_new();
-    k = (keytuple*)src->first ;
-    while (k!=NULL) {
-        qfits_header_append(fh_copy, k->key, k->val, k->com, k->lin) ;
-        k = k->next ;
-    }
-    return fh_copy ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    qfits_header destructor
-  @param    hdr qfits_header to deallocate
-  @return    void
-
-  Frees all memory associated to a given qfits_header object.
- */
-/*----------------------------------------------------------------------------*/
-void qfits_header_destroy(qfits_header * hdr)
-{
-    keytuple * k ;
-    keytuple * kn ;
-
-    if (hdr==NULL) return ;
-
-    k = (keytuple*)hdr->first ;
-    while (k!=NULL) {
-        kn = k->next ;
-        keytuple_del(k);
-        k = kn ;
-    }
-    qfits_free(hdr);
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Return the value associated to a key, as a string
-  @param    hdr qfits_header to parse
-  @param    key key to find
-  @return    pointer to statically allocated string
-
-  Finds the value associated to the given key and return it as a
-  string. The returned pointer is statically allocated, so do not
-  modify its contents or try to free it.
-
-  Returns NULL if no matching key is found or no value is attached.
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_header_getstr(const qfits_header * hdr, const char * key)
-{
-    keytuple    *   k ;
-    char        *   xkey ;
-
-    if (hdr==NULL || key==NULL) return NULL ;
-
-    xkey = qfits_expand_keyword(key);
-    k = (keytuple*)hdr->first ;
-    while (k!=NULL) {
-        if (!strcmp(k->key, xkey)) break ;
-        k=k->next ;
-    }
-    if (k==NULL) return NULL ;
-    return k->val ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Return the i-th key/val/com/line tuple in a header.
-  @param    hdr        Header to consider
-  @param    idx        Index of the requested card
-  @param    key        Output key
-  @param    val        Output value
-  @param    com        Output comment
-  @param    lin        Output initial line
-  @return    int 0 if Ok, -1 if error occurred.
-
-  This function is useful to browse a FITS header object card by card.
-  By iterating on the number of cards (available in the 'n' field of
-  the qfits_header struct), you can retrieve the FITS lines and their
-  components one by one. Indexes run from 0 to n-1. You can pass NULL
-  values for key, val, com or lin if you are not interested in a
-  given field.
-
-  @code
-  int i ;
-  char key[FITS_LINESZ+1] ;
-  char val[FITS_LINESZ+1] ;
-  char com[FITS_LINESZ+1] ;
-  char lin[FITS_LINESZ+1] ;
-
-  for (i=0 ; i<hdr->n ; i++) {
-      qfits_header_getitem(hdr, i, key, val, com, lin);
-    printf("card[%d] key[%s] val[%s] com[%s]\n", i, key, val, com);
-  }
-  @endcode
-
-  This function has primarily been written to interface a qfits_header
-  object to other languages (C++/Python). If you are working within a
-  C program, you should use the other header manipulation routines
-  available in this module.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_header_getitem(
-        const qfits_header  *   hdr,
-        int                     idx,
-        char                *   key,
-        char                *   val,
-        char                *   com,
-        char                *   lin)
-{
-    keytuple    *   k ;
-    int             count ;
-
-    if (hdr==NULL) return -1 ;
-    if (key==NULL && val==NULL && com==NULL && lin==NULL) return 0 ;
-    if (idx<0 || idx>hdr->n) return -1 ;
-
-    /* Get pointer to keytuple */
-    if (idx == 0) {
-	    ((qfits_header *)hdr)->current_idx = 0 ;
-	    ((qfits_header *)hdr)->current = hdr->first ;
-	    k = hdr->current ;
-	} else if (idx == hdr->current_idx + 1) {
-	    ((qfits_header *)hdr)->current = ((keytuple*) (hdr->current))->next ;
-	    ((qfits_header *)hdr)->current_idx++ ;
-	    k = hdr->current ;
-	} else {
-	    count=0 ;
-	    k = (keytuple*)hdr->first ;
-	    while (count<idx) {
-            k = k->next ;
-            count++ ;
-        }
-	}
-
-    /* Fill return values */
-    if (key!=NULL) strcpy(key, k->key);
-    if (val!=NULL) {
-        if (k->val!=NULL) strcpy(val, k->val);
-        else val[0]=0 ;
-    }
-    if (com!=NULL) {
-        if (k->com!=NULL) strcpy(com, k->com);
-        else com[0]=0 ;
-    }
-    if (lin!=NULL) {
-        if (k->lin!=NULL) strcpy(lin, k->lin);
-        else lin[0]=0 ;
-    }
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Return the comment associated to a key, as a string
-  @param    hdr qfits_header to parse
-  @param    key key to find
-  @return    pointer to statically allocated string
-
-  Finds the comment associated to the given key and return it as a
-  string. The returned pointer is statically allocated, so do not
-  modify its contents or try to free it.
-
-  Returns NULL if no matching key is found or no comment is attached.
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_header_getcom(const qfits_header * hdr, const char * key)
-{
-    keytuple    *   k ;
-    char        *   xkey ;
-
-    if (hdr==NULL || key==NULL) return NULL ;
-
-    xkey = qfits_expand_keyword(key);
-    k = (keytuple*)hdr->first ;
-    while (k!=NULL) {
-        if (!strcmp(k->key, xkey)) break ;
-        k=k->next ;
-    }
-    if (k==NULL) return NULL ;
-    return k->com ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Return the value associated to a key, as an int
-  @param    hdr qfits_header to parse
-  @param    key key to find
-  @param    errval default value to return if nothing is found
-  @return    int
-
-  Finds the value associated to the given key and return it as an
-  int. Returns errval if no matching key is found or no value is
-  attached.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_header_getint(
-        const qfits_header  *   hdr, 
-        const char          *   key, 
-        int                     errval)
-{
-    char    *   c ;
-    int         d ;
-
-    if (hdr==NULL || key==NULL) return errval ;
-
-    c = qfits_header_getstr(hdr, key);
-    if (c==NULL) return errval ;
-    if (sscanf(c, "%d", &d)!=1) return errval ;
-    return d ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Return the value associated to a key, as a double
-  @param    hdr qfits_header to parse
-  @param    key key to find
-  @param    errval default value to return if nothing is found
-  @return    double
-
-  Finds the value associated to the given key and return it as a
-  double. Returns errval if no matching key is found or no value is
-  attached.
- */
-/*----------------------------------------------------------------------------*/
-double qfits_header_getdouble(
-        const qfits_header  *   hdr, 
-        const char          *   key, 
-        double                  errval)
-{
-    char    *    c ;
-
-    if (hdr==NULL || key==NULL) return errval ;
-
-    c = qfits_header_getstr(hdr, key);
-    if (c==NULL) return errval ;
-    return atof(c);
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Return the value associated to a key, as a boolean (int).
-  @param    hdr qfits_header to parse
-  @param    key key to find
-  @param    errval default value to return if nothing is found
-  @return    int
-
-  Finds the value associated to the given key and return it as a
-  boolean. Returns errval if no matching key is found or no value is
-  attached. A boolean is here understood as an int taking the value 0
-  or 1. errval can be set to any other integer value to reflect that
-  nothing was found.
-
-  errval is returned if no matching key is found or no value is
-  attached.
-
-  A true value is any character string beginning with a 'y' (yes), a
-  't' (true) or the digit '1'. A false value is any character string
-  beginning with a 'n' (no), a 'f' (false) or the digit '0'.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_header_getboolean(
-        const qfits_header  *   hdr, 
-        const char          *   key, 
-        int                     errval)
-{
-    char    *    c ;
-    int            ret ;
-
-    if (hdr==NULL || key==NULL) return errval ;
-
-    c = qfits_header_getstr(hdr, key);
-    if (c==NULL) return errval ;
-    if (strlen(c)<1) return errval ;
-
-    if (c[0]=='y' || c[0]=='Y' || c[0]=='1' || c[0]=='t' || c[0]=='T') {
-        ret = 1 ;
-    } else if (c[0]=='n' || c[0]=='N' || c[0]=='0' || c[0]=='f' || c[0]=='F') {
-        ret = 0 ;
-    } else {
-        ret = errval ;
-    }
-    return ret;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Dump a FITS header to an opened file.
-  @param    hdr     FITS header to dump
-  @param    out     Opened file pointer
-  @return   int 0 if Ok, -1 otherwise
-  Dumps a FITS header to an opened file pointer.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_header_dump(
-        const qfits_header  *   hdr,
-        FILE                *   out)
-{
-    keytuple    *   k ;
-    char            line[81];
-    int             n_out ;    
-
-    if (hdr==NULL) return -1 ;
-    if (out==NULL) out=stdout ;
-
-    k = (keytuple*)hdr->first ;
-    n_out = 0 ;
-    while (k!=NULL) {
-        /* Make line from information in the node */
-        qfits_header_makeline(line, k, 1);
-        if ((fwrite(line, 1, 80, out))!=80) {
-            fprintf(stderr, "error dumping FITS header");
-            return -1 ;
-        }
-        n_out ++;
-        k=k->next;
-    }
-    /* If printing out to a regular file, blank pad */
-    if (out!=stdout && out!=stderr) {
-        /* Blank-pad the output */
-        memset(line, ' ', 80);
-        while (n_out % 36) {
-            fwrite(line, 1, 80, out);
-            n_out++ ;
-        }
-    }
-    return 0 ;
-}
-
-/**@}*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    keytuple constructor
-  @param    key        Key associated to key tuple (cannot be NULL).
-  @param    val        Value associated to key tuple.
-  @param    com        Comment associated to key tuple.
-  @param    lin        Initial line read from FITS header (if applicable).
-  @return    1 pointer to newly allocated keytuple.
-
-  This function is a keytuple creator. NULL values and zero-length strings
-  are valid parameters for all but the key field. The returned object must
-  be deallocated using keytuple_del().
-
- */
-/*----------------------------------------------------------------------------*/
-static keytuple * keytuple_new(
-        const char * key,
-        const char * val,
-        const char * com,
-        const char * lin)
-{
-    keytuple    *    k ;
-
-    if (key==NULL) return NULL ;
-
-    /* Allocate space for new structure */
-    k = qfits_malloc(sizeof(keytuple));
-    /* Hook a copy of the new key */
-    k->key = qfits_strdup(qfits_expand_keyword(key)) ;
-    /* Hook a copy of the value if defined */
-    k->val = NULL ;
-    if (val!=NULL) {
-        if (strlen(val)>0) k->val = qfits_strdup(val);
-    }
-    /* Hook a copy of the comment if defined */
-    k->com = NULL ;
-    if (com!=NULL) {
-        if (strlen(com)>0) k->com = qfits_strdup(com) ;
-    }
-    /* Hook a copy of the initial line if defined */
-    k->lin = NULL ;
-    if (lin!=NULL) {
-        if (strlen(lin)>0) k->lin = qfits_strdup(lin);
-    }
-    k->next = NULL ;
-    k->prev = NULL ;
-    k->typ = keytuple_type(key);
-
-    return k;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    keytuple type identification routine
-  @param    key        String representing a FITS keyword.
-  @return    A key type (see keytype enum)
-
-  This function identifies the type of a FITS keyword when given the
-  keyword as a string. Keywords are expected literally as they are
-  found in a FITS header on disk.
-
- */
-/*----------------------------------------------------------------------------*/
-static keytype keytuple_type(const char * key)
-{
-    keytype kt ;
-
-    kt = keytype_undef ;
-    /* Assign type to key tuple */
-    if (!strcmp(key, "SIMPLE") || !strcmp(key, "XTENSION")) kt = keytype_top ;
-    else if (!strcmp(key, "END"))                   kt = keytype_end ;
-    else if (!strcmp(key, "BITPIX"))                kt = keytype_bitpix ;
-    else if (!strcmp(key, "NAXIS"))                 kt = keytype_naxis ;
-    else if (!strcmp(key, "NAXIS1"))                kt = keytype_naxis1 ;
-    else if (!strcmp(key, "NAXIS2"))                kt = keytype_naxis2 ;
-    else if (!strcmp(key, "NAXIS3"))                kt = keytype_naxis3 ;
-    else if (!strcmp(key, "NAXIS4"))                kt = keytype_naxis4 ;
-    else if (!strncmp(key, "NAXIS", 5))             kt = keytype_naxisi ;
-    else if (!strcmp(key, "GROUP"))                 kt = keytype_group ;
-    else if (!strcmp(key, "PCOUNT"))                kt = keytype_pcount ;
-    else if (!strcmp(key, "GCOUNT"))                kt = keytype_gcount ;
-    else if (!strcmp(key, "EXTEND"))                kt = keytype_extend ;
-    else if (!strcmp(key, "BSCALE"))                kt = keytype_bscale ;
-    else if (!strcmp(key, "BZERO"))                 kt = keytype_bzero ;
-    else if (!strcmp(key, "TFIELDS"))               kt = keytype_tfields ;
-    else if (!strncmp(key, "TBCOL", 5))             kt = keytype_tbcoli ;
-    else if (!strncmp(key, "TFORM", 5))             kt = keytype_tformi ;
-    else if (!strncmp(key, "HIERARCH ESO DPR", 16)) kt = keytype_hierarch_dpr ;
-    else if (!strncmp(key, "HIERARCH ESO OBS", 16)) kt = keytype_hierarch_obs ;
-    else if (!strncmp(key, "HIERARCH ESO TPL", 16)) kt = keytype_hierarch_tpl ;
-    else if (!strncmp(key, "HIERARCH ESO GEN", 16)) kt = keytype_hierarch_gen ;
-    else if (!strncmp(key, "HIERARCH ESO TEL", 16)) kt = keytype_hierarch_tel ;
-    else if (!strncmp(key, "HIERARCH ESO INS", 16)) kt = keytype_hierarch_ins ;
-    else if (!strncmp(key, "HIERARCH ESO LOG", 16)) kt = keytype_hierarch_log ;
-    else if (!strncmp(key, "HIERARCH ESO PRO", 16)) kt = keytype_hierarch_pro ;
-    else if (!strncmp(key, "HIERARCH", 8))          kt = keytype_hierarch ;
-    else if (!strcmp(key, "HISTORY"))               kt = keytype_history ;
-    else if (!strcmp(key, "COMMENT"))               kt = keytype_comment ;
-    else if ((int)strlen(key)<9)                    kt = keytype_primary ;
-    return kt ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Keytuple destructor.
-  @param    k    Keytuple to deallocate.
-  @return    void
-  Keytuple destructor.
- */
-/*----------------------------------------------------------------------------*/
-static void keytuple_del(keytuple * k)
-{
-    if (k==NULL) return ;
-    if (k->key) qfits_free(k->key);
-    if (k->val) qfits_free(k->val);
-    if (k->com) qfits_free(k->com);
-    if (k->lin) qfits_free(k->lin);
-    qfits_free(k);
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Keytuple dumper.
-  @param    k    Keytuple to dump
-  @return    void
-
-  This function dumps a key tuple to stdout. It is meant for debugging
-  purposes only.
- */
-/*----------------------------------------------------------------------------*/
-static void keytuple_dmp(const keytuple * k)
-{
-    if (!k) return ;
-    printf("[%s]=[", k->key); 
-    if (k->val) printf("%s", k->val);
-    printf("]");
-    if (k->com) printf("/[%s]", k->com);
-    printf("\n");
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Build a FITS line from the information contained in a card.
-  @param    line pointer to allocated string to be filled
-  @param    node pointer to card node in qfits_header linked-list
-  @param    conservative flag to indicate conservative behaviour
-  @return    int 0 if Ok, anything else otherwise
-
-  Build a FITS line (80 chars) from the information contained in a
-  node of a qfits_header linked-list. If the mode is set to
-  conservative, the original FITS line will be used wherever present.
-  If conservative is set to 0, a new line will be formatted.
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_header_makeline(
-        char            *   line,
-        const keytuple  *   k,
-        int                 conservative)
-{
-    char blankline[81];
-    int     i ;
-
-    if (line==NULL || k==NULL) return -1 ;
-
-    /* If a previous line information is there, use it as is */
-    if (conservative) {
-        if (k->lin != NULL) {
-            memcpy(line, k->lin, 80);
-            line[80]=(char)0;
-            return 0 ;
-        }
-    }
-    /* Got to build keyword from scratch */
-    memset(blankline, 0, 81);
-    qfits_card_build(blankline, k->key, k->val, k->com);
-    memset(line, ' ', 80);
-    i=0 ;
-    while (blankline[i] != (char)0) {
-        line[i] = blankline[i] ;
-        i++ ;
-    }
-    line[80]=(char)0;
-    return 0;
-}
-
diff --git a/libqfits/src/qfits_header.h b/libqfits/src/qfits_header.h
deleted file mode 100644
index 8c9ca3f..0000000
--- a/libqfits/src/qfits_header.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/* $Id: qfits_header.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_HEADER_H
-#define QFITS_HEADER_H
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-/*-----------------------------------------------------------------------------
-                                   New types
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    FITS header object
-
-  This structure represents a FITS header in memory. It is actually no
-  more than a thin layer on top of the keytuple object. No field in this
-  structure should be directly modifiable by the user, only through
-  accessor functions.
- */
-/*----------------------------------------------------------------------------*/
-typedef struct qfits_header {
-    void    *   first ;         /* Pointer to list start */
-    void    *   last ;          /* Pointer to list end */
-    int         n ;             /* Number of cards in list */
-    /* For efficient looping internally */
-    void    *   current ;
-    int         current_idx ;
-} qfits_header ;
-
-/*-----------------------------------------------------------------------------
-                        Function ANSI prototypes
- -----------------------------------------------------------------------------*/
-
-qfits_header * qfits_header_new(void) ;
-qfits_header * qfits_header_default(void) ;
-void qfits_header_add(qfits_header *, const char *, const char *, const char *,
-        const char *) ;
-void qfits_header_add_after(qfits_header *, const char *, const char *, 
-        const char *, const char *, const char *) ;
-void qfits_header_append(qfits_header *, const char *, const char *,
-        const char *, const char *) ;
-void qfits_header_del(qfits_header *, const char *) ;
-int qfits_header_sort(qfits_header **) ;
-qfits_header * qfits_header_copy(const qfits_header *) ;
-void qfits_header_mod(qfits_header *, const char *, const char *, const char *);
-void qfits_header_destroy(qfits_header *) ;
-char * qfits_header_getstr(const qfits_header *, const char *) ;
-int qfits_header_getitem(const qfits_header *, int, char *, char *, char *, 
-        char *) ; 
-char * qfits_header_getcom(const qfits_header *, const char *) ;
-int qfits_header_getint(const qfits_header *, const char *, int) ;
-double qfits_header_getdouble(const qfits_header *, const char *, double) ;
-int qfits_header_getboolean(const qfits_header *, const char *, int) ;
-int qfits_header_dump(const qfits_header *, FILE *) ;
-
-#endif
diff --git a/libqfits/src/qfits_image.c b/libqfits/src/qfits_image.c
deleted file mode 100644
index 940f842..0000000
--- a/libqfits/src/qfits_image.c
+++ /dev/null
@@ -1,1387 +0,0 @@
-/* $Id: qfits_image.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#include "config.h"
-
-#include "qfits_image.h"
-
-#include "qfits_rw.h"
-#include "qfits_header.h"
-#include "qfits_byteswap.h"
-#include "qfits_tools.h"
-#include "qfits_error.h"
-#include "qfits_memory.h"
-
-/*-----------------------------------------------------------------------------
-                                Defines
- -----------------------------------------------------------------------------*/
-
-#define QFITSLOADERINIT_MAGIC   0xcafe
-/* Compute the number of bytes per pixel for a given BITPIX value */
-#define BYTESPERPIXEL(x)    (   ((x) == BPP_8_UNSIGNED) ?     1 : \
-                                ((x) == BPP_16_SIGNED)  ?     2 : \
-                                ((x) == BPP_32_SIGNED)  ?     4 : \
-                                ((x) == BPP_IEEE_FLOAT) ?     4 : \
-                                ((x) == BPP_IEEE_DOUBLE) ?    8 : 0 ) 
-
-/*-----------------------------------------------------------------------------
-                            Function prototypes
- -----------------------------------------------------------------------------*/
-
-static float * qfits_pixin_float(byte *, int, int, double, double) ;
-static int * qfits_pixin_int(byte *, int, int, double, double) ;
-static double * qfits_pixin_double(byte *, int, int, double, double) ;
-static byte * qfits_pixdump_float(float *, int, int) ;
-static byte * qfits_pixdump_int(int *, int, int) ;
-static byte * qfits_pixdump_double(double *, int, int) ;
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_image Pixel loader for FITS images.
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                            Function codes
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Initialize a qfitsloader control object.
-  @param    ql  qfitsloader object to initialize.
-  @return   int 0 if Ok, -1 if error occurred.
-
-  This function expects a qfitsloader object with a number of input
-  fields correctly filled in. The minimum fields to set are:
-
-  - filename: Name of the file to examine.
-  - xtnum: Extension number to examine (0 for main section).
-  - pnum: Plane number in the requested extension.
-  - map : loading mode - flag to know if the file has to be mapped
-
-  You can go ahead with these fields only if you only want to get
-  file information for this plane in this extension. If you want
-  to later load the plane, you must additionally fill the 'ptype'
-  field to a correct value (PTYPE_INT, PTYPE_FLOAT, PTYPE_DOUBLE)
-  before calling qfits_loadpix() so that it knows which conversion
-  to perform.
-
-  This function is basically a probe sent on a FITS file to ask
-  qfits if loading these data would be Ok or not. The actual loading
-  is performed by qfits_loadpix() afterwards.
- */
-/*----------------------------------------------------------------------------*/
-int qfitsloader_init(qfitsloader * ql)
-{
-    qfits_header    *   fh ;
-
-    int     n_ext ;
-    int     seg_start ;
-    int     seg_size ;
-    int     bitpix, naxis, naxis1, naxis2, naxis3 ;
-    char *  xt_type ;
-    char *  sval ;
-    struct stat sta ;
-
-    /* Check passed object is allocated */
-    if (ql==NULL) {
-        qfits_error("pixio: NULL loader");
-        return -1 ;
-    }
-    /* Object must contain a filename */
-    if (ql->filename == NULL) {
-        qfits_error("pixio: NULL filename in loader");
-        return -1 ;
-    }
-    /* Check requested file exists and contains data */
-    if (stat(ql->filename, &sta)!=0) {
-        qfits_error("no such file: %s", ql->filename);
-        return -1 ;
-    }
-    if (sta.st_size<1) {
-        qfits_error("empty file: %s", ql->filename);
-        return -1 ;
-    }
-
-    /* Requested extension number must be positive */
-    if (ql->xtnum<0) {
-        qfits_error("pixio: negative xtnum in loader");
-        return -1 ;
-    }
-    /* Requested returned pixel type must be legal */
-    if ((ql->ptype!=PTYPE_INT) &&
-        (ql->ptype!=PTYPE_FLOAT) &&
-        (ql->ptype!=PTYPE_DOUBLE)) {
-        qfits_error("pixio: invalid ptype in loader");
-        return -1 ;
-    }
-    /* Check requested file is FITS */
-    if (qfits_is_fits(ql->filename)!=1) {
-        qfits_error("pixio: not a FITS file: %s", ql->filename);
-        return -1 ;
-    }
-    /* Get number of extensions for this file */
-    n_ext = qfits_query_n_ext(ql->filename);
-    if (n_ext==-1) {
-        qfits_error("pixio: cannot get number of extensions in %s",
-                    ql->filename);
-        return -1 ;
-    }
-    /* Check requested extension falls within range */
-    if (ql->xtnum > n_ext) {
-        qfits_error("pixio: requested extension %d but file %s has %d\n",
-                    ql->xtnum,
-                    ql->filename,
-                    n_ext);
-        return -1 ;
-    }
-    ql->exts = n_ext ;
-    /* Get segment offset and size for the requested buffer */
-    if (qfits_get_datinfo(ql->filename,
-                          ql->xtnum,
-                          &seg_start,
-                          &seg_size)!=0) {
-        qfits_error("pixio: cannot get seginfo for %s extension %d",
-                    ql->filename,
-                    ql->xtnum);
-        return -1 ;
-    }
-    /* Check segment size is consistent with file size */
-    if (sta.st_size < (seg_start+seg_size)) {
-        return -1 ;
-    }
-    ql->seg_start = seg_start ;
-    ql->seg_size  = seg_size ;
-
-    /* Get file header */
-    fh = qfits_header_readext(ql->filename, ql->xtnum);
-    if (fh==NULL) {
-        qfits_error("pixio: cannot read header from ext %d in %s",
-                    ql->xtnum,
-                    ql->filename);
-        return -1 ;
-    }
-    /* If the requested image is within an extension */
-    if (ql->xtnum>0) {
-        /* Check extension is an image */
-        xt_type = qfits_header_getstr(fh, "XTENSION");
-        if (xt_type==NULL) {
-            qfits_error("pixio: cannot read extension type for ext %d in %s",
-                        ql->xtnum,
-                        ql->filename);
-            qfits_header_destroy(fh);
-            return -1 ;
-        }
-        xt_type = qfits_pretty_string(xt_type);
-        if (strcmp(xt_type, "IMAGE")) {
-            qfits_error(
-                "pixio: not an image -- extension %d in %s has type [%s]",
-                ql->xtnum,
-                ql->filename,
-                xt_type);
-            qfits_header_destroy(fh);
-            return -1 ;
-        }
-    }
-
-    /* Get file root informations */
-    bitpix = qfits_header_getint(fh, "BITPIX", -1);
-    naxis  = qfits_header_getint(fh, "NAXIS",  -1);
-    naxis1 = qfits_header_getint(fh, "NAXIS1", -1);
-    naxis2 = qfits_header_getint(fh, "NAXIS2", -1);
-    naxis3 = qfits_header_getint(fh, "NAXIS3", -1);
-
-    /* Get BSCALE and BZERO if available */
-    sval = qfits_header_getstr(fh, "BSCALE");
-    if (sval==NULL) {
-        ql->bscale = 1.0 ;
-    } else {
-        ql->bscale = atof(sval);
-    }
-    sval = qfits_header_getstr(fh, "BZERO");
-    if (sval==NULL) {
-        ql->bzero = 0.0 ;
-    } else {
-        ql->bzero = atof(sval);
-    }
-
-    /* Destroy header */
-    qfits_header_destroy(fh);
-
-    /* Check BITPIX is present */
-    if (bitpix==-1) {
-        qfits_error("pixio: missing BITPIX in file %s", ql->filename);
-        return -1 ;
-    }
-    /* Check BITPIX is valid */
-    if ((bitpix!=   8) &&
-        (bitpix!=  16) &&
-        (bitpix!=  32) &&
-        (bitpix!= -32) &&
-        (bitpix!= -64)) {
-        qfits_error("pixio: invalid BITPIX (%d) in file %s",
-                    bitpix,
-                    ql->filename);
-        return -1 ;
-    }
-    ql->bitpix = bitpix ;
-
-    /* Check NAXIS is present and valid */
-    if (naxis<0) {
-        qfits_error("pixio: no NAXIS in file %s", ql->filename);
-        return -1 ;
-    }
-    if (naxis==0) {
-        qfits_error("pixio: no pixel in ext %d of file %s",
-                    ql->xtnum,
-                    ql->filename);
-        return -1 ;
-    }
-    if (naxis>3) {
-        qfits_error("pixio: NAXIS>3 (%d) unsupported", naxis);
-        return -1 ;
-    }
-    /* NAXIS1 must always be present */
-    if (naxis1<0) {
-        qfits_error("pixio: no NAXIS1 in file %s", ql->filename);
-        return -1 ;
-    }
-    /* Update dimension fields in loader struct */
-    ql->lx = 1 ;
-    ql->ly = 1 ;
-    ql->np = 1 ;
-
-    switch (naxis) {
-        case 1:
-        ql->lx = naxis1 ;
-        break ;
-
-        case 3:
-        if (naxis3<0) {
-            qfits_error("pixio: no NAXIS3 in file %s", ql->filename);
-            return -1 ;
-        }
-        ql->np = naxis3 ;
-        /* No break statement: intended to go through next case */
-
-        case 2:
-        if (naxis2<0) {
-            qfits_error("pixio: no NAXIS2 in file %s", ql->filename);
-            return -1 ;
-        }
-        ql->ly = naxis2 ;
-        ql->lx = naxis1 ;
-        break ;
-    }
-    /* Check that requested plane number falls within range */
-    if (ql->pnum >= ql->np) {
-        qfits_error("pixio: requested plane %d but NAXIS3=%d",
-                    ql->pnum,
-                    ql->np);
-        return -1 ;
-    }
-
-    /* Everything Ok, fields have been filled along. */
-    /* Mark the structure as initialized */
-    ql->_init = QFITSLOADERINIT_MAGIC ;
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Load a pixel buffer for one complete image.
-  @param    ql  Allocated and initialized qfitsloader control object.
-  @return   int 0 if Ok, -1 if error occurred.
-  @see      qfits_loadpix_window
-*/
-/*----------------------------------------------------------------------------*/
-int qfits_loadpix(qfitsloader * ql)
-{
-    if (ql==NULL) return -1 ;
-    return qfits_loadpix_window(ql, 1, 1, ql->lx, ql->ly) ;
-}
-    
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Load a pixel buffer for one image window
-  @param    ql  Allocated and initialized qfitsloader control object.
-  @param    llx 
-  @param    lly     Position of the window (start with (1,1))
-  @param    urx 
-  @param    ury 
-  @return   int 0 if Ok, -1 if error occurred.
-
-  This function performs a load of a pixel buffer into memory. It
-  expects an allocated and initialized qfitsloader object in input.
-  See qfitsloader_init() about initializing the object.
-
-  This function will fill up the ibuf/fbuf/dbuf field, depending
-  on the requested pixel type (resp. int, float or double).
-  
-  If llx lly urx and ury do not specify the whole image, ql->map must be 0, 
-  we do not want to mmap a file an load only a part of it.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_loadpix_window(
-        qfitsloader     *   ql,
-        int                 llx,
-        int                 lly,
-        int                 urx,
-        int                 ury)
-{
-    byte    *   fptr ;
-    size_t      fsize ;
-    int         datastart ;
-    int         imagesize, window_size, linesize ;
-    FILE    *   lfile ;
-    int         dataread ;
-    int         nx, ny ;
-    int         i ;
-
-    /* Check inputs */
-    if (ql==NULL) return -1 ;
-    if (ql->_init != QFITSLOADERINIT_MAGIC) {
-        qfits_error("pixio: called with unitialized obj");
-        return -1 ;
-    }
-    if (llx>urx || lly>ury || llx<1 || lly<1 || urx>ql->lx || ury>ql->ly) {
-        qfits_error("pixio: invalid window specification");
-        return -1 ;
-    }
-
-    /* No map if only a zone is specified */
-    if (llx != 1 || lly != 1 || urx != ql->lx || ury != ql->ly) {
-        if (ql->map == 1) {
-            qfits_error("pixio: cannot mmap for a part of the image");
-            return -1 ;
-        }
-    }
-
-    /* Initialise */
-    nx = urx-llx+1 ;
-    ny = ury-lly+1 ;
-    imagesize = ql->lx * ql->ly * BYTESPERPIXEL(ql->bitpix);
-    window_size = nx * ny * BYTESPERPIXEL(ql->bitpix);
-    linesize = nx * BYTESPERPIXEL(ql->bitpix);
-    datastart = ql->seg_start + ql->pnum * imagesize ;
-
-    /* Check loading mode */
-    if (ql->map) {
-        /* Map the file in */
-        fptr = (byte*)qfits_falloc(ql->filename, datastart, &fsize);
-        if (fptr==NULL) {
-            qfits_error("pixio: cannot falloc(%s)", ql->filename);
-            return -1 ;
-        }
-    } else {
-        /* Open the file */
-        if ((lfile=fopen(ql->filename, "r"))==NULL) {
-            qfits_error("pixio: cannot open %s", ql->filename);
-            return -1 ;
-        }
-        /* Go to the start of the image */
-        if (fseek(lfile, datastart, SEEK_SET)!=0) {
-            qfits_error("pixio: cannot seek %s", ql->filename);
-            fclose(lfile);
-            return -1 ;
-        }
-        /* Go to the start of the zone */
-        if (fseek(lfile, (llx-1+(lly-1)*ql->lx)*BYTESPERPIXEL(ql->bitpix), 
-                    SEEK_CUR)!=0) {
-            qfits_error("pixio: cannot seek %s", ql->filename);
-            fclose(lfile);
-            return -1 ;
-        }
-        
-        fptr = (byte*)qfits_malloc(window_size) ;
-       
-        /* Only a window is specified */
-        if (llx != 1 || lly != 1 || urx != ql->lx || ury != ql->ly) {
-            /* Loop on the lines */
-            for (i=0 ; i<ny ; i++) {
-                /* Read the file */
-                dataread=fread(fptr+i*linesize, sizeof(byte), linesize, lfile);
-                if (dataread!=linesize) {
-                    qfits_free(fptr) ;
-                    fclose(lfile);
-                    qfits_error("pixio: cannot read from %s", ql->filename);
-                    return -1 ;
-                }
-                /* Go to the next line */
-                if (fseek(lfile,ql->lx*BYTESPERPIXEL(ql->bitpix)-linesize, 
-                           SEEK_CUR)!=0){
-                    qfits_error("pixio: cannot seek %s", ql->filename);
-                    fclose(lfile);
-                    return -1 ;
-                }
-            }
-            fclose(lfile);
-        } else {
-        /* The whole image is specified */
-            dataread = fread(fptr, sizeof(byte), window_size, lfile);
-            fclose(lfile);
-            if (dataread!=window_size) {
-                qfits_free(fptr) ;
-                qfits_error("pixio: cannot read from %s", ql->filename);
-                return -1 ;
-            }
-        }
-    }
-        
-    /* Initialize buffer pointers */
-    ql->ibuf = NULL ;
-    ql->fbuf = NULL ;
-    ql->dbuf = NULL ;
-
-    /*
-     * Special cases: mapped file is identical to requested format.
-     * This is only possible on big-endian machines, since FITS is
-     * big-endian only.
-     */
-#ifdef WORDS_BIGENDIAN
-    if (ql->ptype==PTYPE_FLOAT && ql->bitpix==-32) {
-        ql->fbuf = (float*)fptr ;
-        return 0 ;
-    }
-    if (ql->ptype==PTYPE_DOUBLE && ql->bitpix==-64) {
-        ql->dbuf = (double*)fptr ;
-        return 0 ;
-    }
-    if (ql->ptype==PTYPE_INT && ql->bitpix==32) {
-        ql->ibuf = (int*)fptr ;
-        return 0 ;
-    }
-#endif
-
-    /* General case: fallback to dedicated conversion function */
-    switch (ql->ptype) {
-        case PTYPE_FLOAT:
-        ql->fbuf = qfits_pixin_float(   fptr,
-                                        nx * ny,
-                                        ql->bitpix,
-                                        ql->bscale,
-                                        ql->bzero);
-        break ;
-
-        case PTYPE_INT:
-        ql->ibuf = qfits_pixin_int( fptr,
-                                    nx * ny,
-                                    ql->bitpix,
-                                    ql->bscale,
-                                    ql->bzero);
-        break ;
-
-        case PTYPE_DOUBLE:
-        ql->dbuf = qfits_pixin_double(  fptr,
-                                        nx * ny,
-                                        ql->bitpix,
-                                        ql->bscale,
-                                        ql->bzero);
-        break ;
-    }
-   
-    if (ql->map) {
-        qfits_fdealloc((char*)fptr, datastart, fsize) ;
-    } else {
-        qfits_free(fptr);
-    }
-
-    if (ql->ibuf==NULL && ql->fbuf==NULL && ql->dbuf==NULL) {
-        qfits_error("pixio: error during conversion");
-        return -1 ;
-    }
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Dump a pixel buffer to an output FITS file in append mode.
-  @param    qd  qfitsdumper control object.
-  @return   int 0 if Ok, -1 otherwise.
-
-  This function takes in input a qfitsdumper control object. This object
-  must be allocated beforehand and contain valid references to the data
-  to save, and how to save it.
-
-  The minimum fields to fill are:
-
-  - filename: Name of the FITS file to dump to.
-  - npix: Number of pixels in the buffer to be dumped.
-  - ptype: Type of the passed buffer (PTYPE_FLOAT, PTYPE_INT, PTYPE_DOUBLE)
-  - out_ptype: Requested FITS BITPIX for the output.
-
-  One of the following fields must point to the corresponding pixel
-  buffer:
-
-  - ibuf for an int pixel buffer (ptype=PTYPE_INT)
-  - fbuf for a float pixel buffer (ptype=PTYPE_FLOAT)
-  - dbuf for a double pixel buffer (ptype=PTYPE_DOUBLE)
-
-  This is a fairly low-level function, in the sense that it does not
-  check that the output file already contains a proper header or even
-  that the file it is appending to is indeed a FITS file. It will
-  convert the pixel buffer to the requested BITPIX type and append
-  the data to the file, without padding with zeros. See qfits_zeropad()
-  about padding.
-
-  If the given output file name is "STDOUT" (all caps), the dump
-  will be performed to stdout.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_pixdump(qfitsdumper * qd)
-{
-    FILE    *   f_out ;
-    byte    *   buf_out ;
-    int         buf_free ;
-    int         buf_sz ;
-
-    /* Check inputs */
-    if (qd==NULL) return -1 ;
-    if (qd->filename==NULL) return -1 ;
-    switch (qd->ptype) {
-        case PTYPE_FLOAT:
-        if (qd->fbuf==NULL) return -1 ;
-        break ;
-
-        case PTYPE_DOUBLE:
-        if (qd->dbuf==NULL) return -1 ;
-        break ;
-
-        case PTYPE_INT:
-        if (qd->ibuf==NULL) return -1 ;
-        break ;
-
-        default:
-        return -1 ;
-    }
-    if (qd->npix <= 0) {
-        qfits_error("Negative or NULL number of pixels specified");
-        return -1 ;
-    }
-
-    /*
-     * Special cases: input buffer is identical to requested format.
-     * This is only possible on big-endian machines, since FITS is
-     * big-endian only.
-     */
-    buf_out = NULL ;
-    buf_free = 1 ;
-#ifdef WORDS_BIGENDIAN
-    if (qd->ptype==PTYPE_FLOAT && qd->out_ptype==-32) {
-        buf_out = (byte*)qd->fbuf ;
-        buf_free=0 ;
-    } else if (qd->ptype==PTYPE_DOUBLE && qd->out_ptype==-64) {
-        buf_out = (byte*)qd->dbuf ;
-        buf_free=0 ;
-    } else if (qd->ptype==PTYPE_INT && qd->out_ptype==32) {
-        buf_out = (byte*)qd->ibuf ;
-        buf_free=0 ;
-    }
-#endif
-    buf_sz = qd->npix * BYTESPERPIXEL(qd->out_ptype);
-
-    /* General case */
-    if (buf_out==NULL) {
-        switch (qd->ptype) {
-            /* Convert buffer */
-            case PTYPE_FLOAT:
-            buf_out = qfits_pixdump_float(  qd->fbuf,
-                                            qd->npix,
-                                            qd->out_ptype);
-            break ;
-
-            /* Convert buffer */
-            case PTYPE_INT:
-            buf_out = qfits_pixdump_int(    qd->ibuf,
-                                            qd->npix,
-                                            qd->out_ptype);
-            break ;
-
-            /* Convert buffer */
-            case PTYPE_DOUBLE:
-            buf_out = qfits_pixdump_double( qd->dbuf,
-                                             qd->npix,
-                                             qd->out_ptype);
-            break ;
-        }
-    }
-    if (buf_out==NULL) {
-        qfits_error("cannot dump pixel buffer");
-        return -1 ;
-    }
-
-    /* Dump buffer */
-    if (!strncmp(qd->filename, "STDOUT", 6)) {
-        f_out = stdout ;
-    } else {
-        f_out = fopen(qd->filename, "a");
-    }
-    if (f_out==NULL) {
-        qfits_free(buf_out);
-        return -1 ;
-    }
-    fwrite(buf_out, buf_sz, 1, f_out);
-    if (buf_free) {
-        qfits_free(buf_out);
-    }
-    if (f_out!=stdout) {
-        fclose(f_out);
-    }
-    return 0 ;
-}
-
-/**@}*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Convert a float pixel buffer to a byte buffer.
-  @param    buf     Input float buffer.
-  @param    npix    Number of pixels in the input buffer.
-  @param    ptype   Requested output BITPIX type.
-  @return   1 pointer to a newly allocated byte buffer.
-
-  This function converts the given float buffer to a buffer of bytes
-  suitable for dumping to a FITS file (i.e. big-endian, in the
-  requested pixel type). The returned pointer must be deallocated
-  using the qfits_free() function.
- */
-/*----------------------------------------------------------------------------*/
-static byte * qfits_pixdump_float(float * buf, int npix, int ptype)
-{
-    byte    *   buf_out ;
-    register byte * op ;
-    int         i ;
-    int         lpix ;
-    short       spix ;
-    double      dpix ;
-
-    buf_out = qfits_malloc(npix * BYTESPERPIXEL(ptype));
-    op = buf_out ;
-    switch (ptype) {
-        case 8:
-        /* Convert from float to 8 bits */
-        for (i=0 ; i<npix ; i++) {
-            if (buf[i]>255.0) {
-                *op++ = (byte)0xff ;
-            } else if (buf[i]<0.0) {
-                *op++ = (byte)0x00 ;
-            } else {
-                *op++ = (byte)buf[i];
-            }
-        }
-        break ;
-
-        case 16:
-        /* Convert from float to 16 bits */
-        for (i=0 ; i<npix ; i++) {
-            if (buf[i]>32767.0) {
-                *op++ = (byte)0x7f ;
-                *op++ = (byte)0xff ;
-            } else if (buf[i]<-32768.0) {
-                *op++ = (byte)0x80 ;
-                *op++ = 0x00 ;
-            } else {
-                spix = (short)buf[i];
-                *op++ = (spix >> 8) ;
-                *op++ = (spix & (byte)0xff) ;
-            }
-        }
-        break ;
-
-        case 32:
-        /* Convert from float to 32 bits */
-        for (i=0 ; i<npix ; i++) {
-            if (buf[i] > 2147483647.0) {
-                *op++ = (byte)0x7f ;
-                *op++ = (byte)0xff ;
-                *op++ = (byte)0xff ;
-                *op++ = (byte)0xff ;
-            } else if (buf[i]<-2147483648.0) {
-                *op++ = (byte)0x80 ;
-                *op++ = (byte)0x00 ;
-                *op++ = (byte)0x00 ;
-                *op++ = (byte)0x00 ;
-            } else {
-                lpix = (int)buf[i] ;
-                *op++ = (byte)(lpix >> 24) ;
-                *op++ = (byte)(lpix >> 16) & 0xff ;
-                *op++ = (byte)(lpix >> 8 ) & 0xff ;
-                *op++ = (byte)(lpix) & 0xff ;
-            }
-        }
-        break ;
-
-        case -32:
-        /* Convert from float to float */
-        memcpy(op, buf, npix * sizeof(float));
-#ifndef WORDS_BIGENDIAN
-        for (i=0 ; i<npix ; i++) {
-            qfits_swap_bytes(op, 4);
-            op++ ;
-            op++ ;
-            op++ ;
-            op++ ;
-        }
-#endif
-        break ;
-
-        case -64:
-        /* Convert from float to double */
-        for (i=0 ; i<npix ; i++) {
-            dpix = (double)buf[i] ;
-#ifndef WORDS_BIGENDIAN
-            qfits_swap_bytes(&dpix, 8) ;
-#endif
-            memcpy(op, &dpix, 8);
-            op += 8 ;
-        }
-        break ;
-
-        default:
-        qfits_error("not supported yet");
-        buf_out = NULL ;
-        break ;
-    }
-    return buf_out ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Convert an int pixel buffer to a byte buffer.
-  @param    buf     Input int buffer.
-  @param    npix    Number of pixels in the input buffer.
-  @param    ptype   Requested output BITPIX type.
-  @return   1 pointer to a newly allocated byte buffer.
-
-  This function converts the given int buffer to a buffer of bytes
-  suitable for dumping to a FITS file (i.e. big-endian, in the
-  requested pixel type). The returned pointer must be deallocated
-  using the qfits_free() function.
- */
-/*----------------------------------------------------------------------------*/
-static byte * qfits_pixdump_int(int * buf, int npix, int ptype)
-{
-    byte    *   buf_out ;
-    register byte * op ;
-    int i ;
-
-    short   spix ;
-    float   fpix ;
-    double  dpix ;
-
-    buf_out = qfits_malloc(npix * BYTESPERPIXEL(ptype));
-    op = buf_out ;
-    switch (ptype) {
-        case 8:
-        /* Convert from int32 to 8 bits */
-        for (i=0 ; i<npix ; i++) {
-            if (buf[i]>255) {
-                *op++ = (byte)0xff ;
-            } else if (buf[i]<0) {
-                *op++ = (byte)0x00 ;
-            } else {
-                *op++ = (byte)buf[i] ;
-            }
-        }
-        break ;
-
-        case 16:
-        /* Convert from int32 to 16 bits */
-        for (i=0 ; i<npix ; i++) {
-            if (buf[i]>32767) {
-                spix = 32767 ;
-            } else if (buf[i]<-32768) {
-                spix = -32768 ;
-            } else {
-                spix = (short)buf[i] ;
-            }
-#ifndef WORDS_BIGENDIAN
-            qfits_swap_bytes(&spix, 2);
-#endif
-            memcpy(op, &spix, 2);
-            op += 2 ;
-        }
-        break ;
-
-        case 32:
-        /* Convert from int32 to 32 bits */
-        memcpy(op, buf, npix * sizeof(int));
-#ifndef WORDS_BIGENDIAN
-        for (i=0 ; i<npix ; i++) {
-            qfits_swap_bytes(op, 4);
-            op+=4 ;
-        }
-#endif
-        break ;
-
-        case -32:
-        /* Convert from int32 to float */
-        for (i=0 ; i<npix ; i++) {
-            fpix = (float)buf[i] ;
-#ifndef WORDS_BIGENDIAN
-            qfits_swap_bytes(&fpix, 4);
-#endif
-            memcpy(op, &fpix, 4) ;
-            op += 4 ;
-        }
-        break ;
-
-        case -64:
-        /* Convert from int32 to double */
-        for (i=0 ; i<npix ; i++) {
-            dpix = (double)buf[i] ;
-#ifndef WORDS_BIGENDIAN
-            qfits_swap_bytes(&dpix, 8) ;
-#endif
-            memcpy(op, &dpix, 8);
-            op += 8 ;
-        }
-        break ; 
-
-        default:
-        qfits_error("not supported yet");
-        buf_out = NULL ;
-        break ;
-    }
-    return buf_out ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Convert a double pixel buffer to a byte buffer.
-  @param    buf     Input double buffer.
-  @param    npix    Number of pixels in the input buffer.
-  @param    ptype   Requested output BITPIX type.
-  @return   1 pointer to a newly allocated byte buffer.
-
-  This function converts the given double buffer to a buffer of bytes
-  suitable for dumping to a FITS file (i.e. big-endian, in the
-  requested pixel type). The returned pointer must be deallocated
-  using the qfits_free() function.
- */
-/*----------------------------------------------------------------------------*/
-static byte * qfits_pixdump_double(double * buf, int npix, int ptype)
-{
-    byte    *   buf_out ;
-    register byte  * op ;
-    int i ;
-
-    short   spix ;
-    float   fpix ;
-    int     lpix ;
-
-    buf_out = qfits_malloc(npix * BYTESPERPIXEL(ptype));
-    op = buf_out ;
-    switch (ptype) {
-        case 8:
-        /* Convert from double to 8 bits */
-        for (i=0 ; i<npix ; i++) {
-            if (buf[i]>255.0) {
-                *op++ = (byte)0xff ;
-            } else if (buf[i]<0.0) {
-                *op++ = (byte)0x00 ;
-            } else {
-                *op++ = (byte)buf[i] ;
-            }
-        }
-        break ;
-
-        case 16:
-        /* Convert from double to 16 bits */
-        for (i=0 ; i<npix ; i++) {
-            if (buf[i]>32767.0) {
-                spix = 32767 ;
-            } else if (buf[i]<-32768.0) {
-                spix = -32768 ;
-            } else {
-                spix = (short)buf[i] ;
-            }
-#ifndef WORDS_BIGENDIAN
-            qfits_swap_bytes(&spix, 2);
-#endif
-            memcpy(op, &spix, 2);
-            op += 2 ;
-        }
-        break ;
-
-        case 32:
-        /* Convert from double to 32 bits */
-        for (i=0 ; i<npix ; i++) {
-            if (buf[i] > 2147483647.0) {
-                lpix = 2147483647 ;
-            } else if (buf[i] < -2147483648.0) {
-                lpix = -2147483647 ;
-            } else {
-                lpix = (int)buf[i];
-            }
-#ifndef WORDS_BIGENDIAN
-            qfits_swap_bytes(&lpix, 4);
-#endif
-            memcpy(op, &lpix, 4);
-            op += 4 ;
-        }
-        break ;
-
-        case -32:
-        /* Convert from double to float */
-        for (i=0 ; i<npix ; i++) {
-            fpix = (float)buf[i] ;
-#ifndef WORDS_BIGENDIAN
-            qfits_swap_bytes(&fpix, 4);
-#endif
-            memcpy(op, &fpix, 4) ;
-            op += 4 ;
-        }
-        break ;
-
-        case -64:
-        /* Convert from double to double */
-        memcpy(op, buf, npix * 8) ;
-#ifndef WORDS_BIGENDIAN
-        for (i=0 ; i<npix ; i++) {
-            qfits_swap_bytes(op, 8);
-            op += 8 ;
-        }
-#endif
-        break ; 
-
-        default:
-        qfits_error("not supported yet");
-        buf_out = NULL ;
-        break ;
-    }
-    return buf_out ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Load a pixel buffer as floats.
-  @param    p_source    Pointer to source buffer (as bytes).
-  @param    npix        Number of pixels to load.
-  @param    bitpix      FITS BITPIX in original file.
-  @param    bscale      FITS BSCALE in original file.
-  @param    bzero       FITS BZERO in original file.
-  @return   1 pointer to a newly allocated buffer of npix floats.
-
-  This function takes in input a pointer to a byte buffer as given
-  in the original FITS file (big-endian format). It converts the
-  buffer to an array of float (whatever representation is used for
-  floats by this platform is used) and returns the newly allocated
-  buffer, or NULL if an error occurred.
-
-  The returned buffer must be deallocated using qfits_free().
- */
-/*----------------------------------------------------------------------------*/
-static float * qfits_pixin_float(
-        byte    *   p_source,
-        int         npix,
-        int         bitpix,
-        double      bscale,
-        double      bzero)
-{
-    int         i ;
-    float   *   baseptr ;
-    float   *   p_dest ;
-    double      dpix ;
-    short       spix ;
-    int         lpix ;
-    float       fpix ;
-    byte        XLpix[8] ;
-    
-
-    baseptr = p_dest = qfits_malloc(npix * sizeof(float));
-    switch (bitpix) {
-
-        case 8:
-        /* No swapping needed */
-        for (i=0 ; i<npix ; i++) {
-            p_dest[i] = (float)((double)p_source[i] * bscale + bzero) ;
-        }
-        break ;
-
-        case 16:
-        for (i=0 ; i<npix ; i++) {
-            memcpy(&spix, p_source, 2);
-            p_source += 2 ;
-#ifndef WORDS_BIGENDIAN
-            spix = qfits_swap_bytes_16(spix);
-#endif
-            *p_dest++ = (float)(bscale * (double)spix + bzero) ;
-        }
-        break ;
-
-        case 32:
-        for (i=0 ; i<npix ; i++) {
-            memcpy(&lpix, p_source, 4);
-            p_source += 4 ;
-#ifndef WORDS_BIGENDIAN
-            lpix = qfits_swap_bytes_32(lpix);
-#endif
-            *p_dest++ = (float)(bscale * (double)lpix + bzero);
-        }
-        break ;
-
-        case -32:
-        for (i=0 ; i<npix ; i++) {
-            memcpy(&lpix, p_source, 4);
-            p_source += 4 ;
-#ifndef WORDS_BIGENDIAN
-            lpix = qfits_swap_bytes_32(lpix);
-#endif
-            memcpy(&fpix, &lpix, 4);
-            *p_dest++ = (float)((double)fpix * bscale + bzero) ;
-        }
-        break ;
-
-        case -64:
-        for (i=0 ; i<npix ; i++) {
-            XLpix[0] = *p_source ++ ;
-            XLpix[1] = *p_source ++ ;
-            XLpix[2] = *p_source ++ ;
-            XLpix[3] = *p_source ++ ;
-            XLpix[4] = *p_source ++ ;
-            XLpix[5] = *p_source ++ ;
-            XLpix[6] = *p_source ++ ;
-            XLpix[7] = *p_source ++ ;
-#ifndef WORDS_BIGENDIAN
-            qfits_swap_bytes(XLpix, 8);
-#endif
-            dpix = *((double*)XLpix) ;
-            *p_dest ++ = (float)(bscale * dpix + bzero);
-        }
-        break ;
-    }
-    return baseptr ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Load a pixel buffer as ints.
-  @param    p_source    Pointer to source buffer (as bytes).
-  @param    npix        Number of pixels to load.
-  @param    bitpix      FITS BITPIX in original file.
-  @param    bscale      FITS BSCALE in original file.
-  @param    bzero       FITS BZERO in original file.
-  @return   1 pointer to a newly allocated buffer of npix ints.
-
-  This function takes in input a pointer to a byte buffer as given
-  in the original FITS file (big-endian format). It converts the
-  buffer to an array of int (whatever representation is used for
-  int by this platform is used) and returns the newly allocated
-  buffer, or NULL if an error occurred.
-
-  The returned buffer must be deallocated using qfits_free().
- */
-/*----------------------------------------------------------------------------*/
-static int * qfits_pixin_int(
-        byte    *   p_source,
-        int         npix,
-        int         bitpix,
-        double      bscale,
-        double      bzero)
-{
-    int         i ;
-    int     *   p_dest ;
-    int     *   baseptr ;
-    double      dpix ;
-    short       spix ;
-    int         lpix ;
-    float       fpix ;
-    byte        XLpix[8] ;
-    
-    baseptr = p_dest = qfits_malloc(npix * sizeof(int));
-    switch (bitpix) {
-
-        case 8:
-        /* No swapping needed */
-        for (i=0 ; i<npix ; i++) {
-            p_dest[i] = (int)((double)p_source[i] * bscale + bzero) ;
-        }
-        break ;
-
-        case 16:
-        for (i=0 ; i<npix ; i++) {
-            memcpy(&spix, p_source, 2);
-            p_source += 2 ;
-#ifndef WORDS_BIGENDIAN
-            spix = qfits_swap_bytes_16(spix);
-#endif
-            *p_dest++ = (int)(bscale * (double)spix + bzero) ;
-        }
-        break ;
-
-        case 32:
-        for (i=0 ; i<npix ; i++) {
-            memcpy(&lpix, p_source, 4);
-            p_source += 4 ;
-#ifndef WORDS_BIGENDIAN
-            lpix = qfits_swap_bytes_32(lpix);
-#endif
-            *p_dest++ = (int)(bscale * (double)lpix + bzero);
-        }
-        break ;
-
-        case -32:
-        for (i=0 ; i<npix ; i++) {
-            memcpy(&lpix, p_source, 4);
-            p_source += 4 ;
-#ifndef WORDS_BIGENDIAN
-            lpix = qfits_swap_bytes_32(lpix);
-#endif
-            memcpy(&fpix, &lpix, 4);
-            *p_dest++ = (int)((double)fpix * bscale + bzero) ;
-        }
-        break ;
-
-        case -64:
-        for (i=0 ; i<npix ; i++) {
-            XLpix[0] = *p_source ++ ;
-            XLpix[1] = *p_source ++ ;
-            XLpix[2] = *p_source ++ ;
-            XLpix[3] = *p_source ++ ;
-            XLpix[4] = *p_source ++ ;
-            XLpix[5] = *p_source ++ ;
-            XLpix[6] = *p_source ++ ;
-            XLpix[7] = *p_source ++ ;
-#ifndef WORDS_BIGENDIAN
-            qfits_swap_bytes(XLpix, 8);
-#endif
-            dpix = *((double*)XLpix) ;
-            *p_dest ++ = (int)(bscale * dpix + bzero);
-        }
-        break ;
-    }
-    return baseptr ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Load a pixel buffer as doubles.
-  @param    p_source    Pointer to source buffer (as bytes).
-  @param    npix        Number of pixels to load.
-  @param    bitpix      FITS BITPIX in original file.
-  @param    bscale      FITS BSCALE in original file.
-  @param    bzero       FITS BZERO in original file.
-  @return   1 pointer to a newly allocated buffer of npix doubles.
-
-  This function takes in input a pointer to a byte buffer as given
-  in the original FITS file (big-endian format). It converts the
-  buffer to an array of double (whatever representation is used for
-  int by this platform is used) and returns the newly allocated
-  buffer, or NULL if an error occurred.
-
-  The returned buffer must be deallocated using qfits_free().
- */
-/*----------------------------------------------------------------------------*/
-static double * qfits_pixin_double(
-        byte    *   p_source,
-        int         npix,
-        int         bitpix,
-        double      bscale,
-        double      bzero)
-{
-    int         i ;
-    double  *   p_dest ;
-    double  *   baseptr ;
-    double      dpix ;
-    short       spix ;
-    int         lpix ;
-    float       fpix ;
-    byte        XLpix[8] ;
-    
-
-    baseptr = p_dest = qfits_malloc(npix * sizeof(double));
-    switch (bitpix) {
-
-        case 8:
-        /* No swapping needed */
-        for (i=0 ; i<npix ; i++) {
-            p_dest[i] = (double)((double)p_source[i] * bscale + bzero) ;
-        }
-        break ;
-
-        case 16:
-        for (i=0 ; i<npix ; i++) {
-            memcpy(&spix, p_source, 2);
-            p_source += 2 ;
-#ifndef WORDS_BIGENDIAN
-            spix = qfits_swap_bytes_16(spix);
-#endif
-            *p_dest++ = (double)(bscale * (double)spix + bzero) ;
-        }
-        break ;
-
-        case 32:
-        for (i=0 ; i<npix ; i++) {
-            memcpy(&lpix, p_source, 4);
-            p_source += 4 ;
-#ifndef WORDS_BIGENDIAN
-            lpix = qfits_swap_bytes_32(lpix);
-#endif
-            *p_dest++ = (double)(bscale * (double)lpix + bzero);
-        }
-        break ;
-
-        case -32:
-        for (i=0 ; i<npix ; i++) {
-            memcpy(&lpix, p_source, 4);
-            p_source += 4 ;
-#ifndef WORDS_BIGENDIAN
-            lpix = qfits_swap_bytes_32(lpix);
-#endif
-            memcpy(&fpix, &lpix, 4);
-            *p_dest++ = (double)((double)fpix * bscale + bzero) ;
-        }
-        break ;
-
-        case -64:
-        for (i=0 ; i<npix ; i++) {
-            XLpix[0] = *p_source ++ ;
-            XLpix[1] = *p_source ++ ;
-            XLpix[2] = *p_source ++ ;
-            XLpix[3] = *p_source ++ ;
-            XLpix[4] = *p_source ++ ;
-            XLpix[5] = *p_source ++ ;
-            XLpix[6] = *p_source ++ ;
-            XLpix[7] = *p_source ++ ;
-#ifndef WORDS_BIGENDIAN
-            qfits_swap_bytes(XLpix, 8);
-#endif
-            dpix = *((double*)XLpix) ;
-            *p_dest ++ = (double)(bscale * dpix + bzero);
-        }
-        break ;
-    }
-    return baseptr ;
-}
-
-/* Test code */
-#ifdef TESTPIXIO
-static void qfitsloader_dump(qfitsloader * ql)
-{
-    fprintf(stderr,
-            "file      : %s\n"
-            "xtnum     : %d\n"
-            "pnum      : %d\n"
-            "ptype     : %d\n"
-            "lx        : %d\n"
-            "ly        : %d\n"
-            "np        : %d\n"
-            "bitpix    : %d\n"
-            "seg_start : %d\n"
-            "bscale    : %g\n"
-            "bzero     : %g\n"
-            "ibuf      : %p\n"
-            "fbuf      : %p\n"
-            "dbuf      : %p\n",
-            ql->filename,
-            ql->xtnum,
-            ql->pnum,
-            ql->ptype,
-            ql->lx,
-            ql->ly,
-            ql->np,
-            ql->bitpix,
-            ql->seg_start,
-            ql->bscale,
-            ql->bzero,
-            ql->ibuf,
-            ql->fbuf,
-            ql->dbuf);
-}
-
-int main (int argc, char * argv[])
-{
-    qfitsloader ql ;
-
-    if (argc<2) {
-        printf("use: %s <FITS>\n", argv[0]);
-        return 1 ;
-    }
-
-    ql.filename = argv[1] ;
-    ql.xtnum    = 0 ;
-    ql.pnum     = 0 ;
-    ql.ptype    = PTYPE_FLOAT ;
-
-    if (qfits_loadpix(&ql)!=0) {
-        printf("error occurred during loading: abort\n");
-        return -1 ;
-    }
-    qfitsloader_dump(&ql);
-    printf("pix[0]=%g\n"
-           "pix[100]=%g\n"
-           "pix[10000]=%g\n",
-           ql.fbuf[0],
-           ql.fbuf[100],
-           ql.fbuf[10000]);
-    qfits_free(ql.fbuf);
-
-    ql.ptype   = PTYPE_INT ;
-    if (qfits_loadpix(&ql)!=0) {
-        printf("error occurred during loading: abort\n");
-        return -1 ;
-    }
-    qfitsloader_dump(&ql);
-    printf("pix[0]=%d\n"
-           "pix[100]=%d\n"
-           "pix[10000]=%d\n",
-           ql.ibuf[0],
-           ql.ibuf[100],
-           ql.ibuf[10000]);
-    qfits_free(ql.ibuf);
-
-
-    ql.ptype   = PTYPE_DOUBLE ;
-    if (qfits_loadpix(&ql)!=0) {
-        printf("error occurred during loading: abort\n");
-        return -1 ;
-    }
-    qfitsloader_dump(&ql);
-    printf("pix[0]=%g\n"
-           "pix[100]=%g\n"
-           "pix[10000]=%g\n",
-           ql.dbuf[0],
-           ql.dbuf[100],
-           ql.dbuf[10000]);
-    qfits_free(ql.dbuf);
-
-    return 0 ;
-}
-#endif
diff --git a/libqfits/src/qfits_image.h b/libqfits/src/qfits_image.h
deleted file mode 100644
index c808032..0000000
--- a/libqfits/src/qfits_image.h
+++ /dev/null
@@ -1,268 +0,0 @@
-/* $Id: qfits_image.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_IMAGE_H
-#define QFITS_IMAGE_H
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-/*-----------------------------------------------------------------------------
-                                   Defines
- -----------------------------------------------------------------------------*/
-
-/** Symbol to set returned pixel type to float */
-#define PTYPE_FLOAT        0
-/** Symbol to set returned pixel type to int */
-#define PTYPE_INT        1
-/** Symbol to set returned pixel type to double */
-#define PTYPE_DOUBLE    2
-
-/* FITS pixel depths */
-/* FITS BITPIX=8 */
-#define BPP_8_UNSIGNED        (8)
-/* FITS BITPIX=16 */
-#define BPP_16_SIGNED        (16)
-/* FITS BITPIX=32 */
-#define BPP_32_SIGNED        (32)
-/* FITS BITPIX=-32 */
-#define BPP_IEEE_FLOAT      (-32)
-/* FITS BITPIX=-64 */
-#define BPP_IEEE_DOUBLE     (-64)
-/* Default BITPIX for output */
-#define BPP_DEFAULT         BPP_IEEE_FLOAT
-
-/*-----------------------------------------------------------------------------
-                                   New types
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Alias for unsigned char
-
-  A 'byte' is just an alias for an unsigned char. It is only defined
-  for readability.
- */
-/*----------------------------------------------------------------------------*/
-typedef unsigned char byte ;
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    qfits loader control object
-
-  This structure serves two purposes: input and output for the qfits
-  pixel loading facility. To request pixels from a FITS file, you
-  need to allocate (statically or dynamically) such a structure and
-  fill up the input fields (filename, xtension number, etc.) to specify
-  the pixels you want from the file.
-
-  Before performing the actual load, you must pass the initialized
-  structure to qfitsloader_init() which will check whether the operation
-  is feasible or not (check its returned value).
-
-  If the operation was deemed feasible, you can proceed to load the pixels,
-  passing the same structure to qfits_loadpix() which will fill up the
-  output fields of the struct. Notice that a pixel buffer will have been
-  allocated (through malloc or mmap) and placed into the structure. You
-  need to call free() on this pointer when you are done with it,
-  typically in the image or cube destructor.
-
-  The qfitsloader_init() function is also useful to probe a FITS file
-  for useful informations, like getting the size of images in the file,
-  the pixel depth, or data offset.
-
-  Example of a code that prints out various informations about
-  a plane to load, without actually loading it:
-
-  @code
-int main(int argc, char * argv[])
-{
-    qfitsloader    ql ;
-
-    ql.filename = argv[1] ;
-    ql.xtnum    = 0 ;
-    ql.pnum     = 0 ;
-
-    if (qfitsloader_init(&ql)!=0) {
-        printf("cannot read info about %s\n", argv[1]);
-        return -1 ;
-    }
-
-    printf(    "file         : %s\n"
-            "xtnum        : %d\n"
-            "pnum         : %d\n"
-            "# xtensions  : %d\n"
-            "size X       : %d\n"
-            "size Y       : %d\n"
-            "planes       : %d\n"
-            "bitpix       : %d\n"
-            "datastart    : %d\n"
-            "datasize     : %d\n"
-            "bscale       : %g\n"
-            "bzero        : %g\n",
-            ql.filename,
-            ql.xtnum,
-            ql.pnum,
-            ql.exts,
-            ql.lx,
-            ql.ly,
-            ql.np,
-            ql.bitpix,
-            ql.seg_start,
-            ql.seg_size,
-            ql.bscale,
-            ql.bzero);
-    return 0 ;
-}
-  @endcode
- */
-/*----------------------------------------------------------------------------*/
-typedef struct qfitsloader {
-
-    /** Private field to see if structure has been initialized */
-    int            _init ;
-    
-    /** input: Name of the file you want to read pixels from */
-    char    *    filename ;
-    /** input: xtension number you want to read */
-    int            xtnum ;
-    /** input: Index of the plane you want, from 0 to np-1 */
-    int            pnum ;
-    /** input: Pixel type you want (PTYPE_FLOAT, PTYPE_INT or PTYPE_DOUBLE) */
-    int            ptype ;
-    /** input: Guarantee file copy or allow file mapping */
-    int         map ;
-
-    /** output: Total number of extensions found in file */
-    int            exts ;
-    /** output: Size in X of the requested plane */
-    int            lx ;
-    /** output: Size in Y of the requested plane */
-    int            ly ;
-    /** output: Number of planes present in this extension */
-    int            np ;
-    /** output: BITPIX for this extension */
-    int            bitpix ;
-    /** output: Start of the data segment (in bytes) for your request */
-    int            seg_start ;
-    /** output: Size of the data segment (in bytes) for your request */
-    int         seg_size ;
-    /** output: BSCALE found for this extension */
-    double        bscale ;
-    /** output: BZERO found for this extension */
-    double        bzero ;
-
-    /** output: Pointer to pixel buffer loaded as integer values */
-    int        *    ibuf ;
-    /** output: Pointer to pixel buffer loaded as float values */
-    float    *    fbuf ;
-    /** output: Pointer to pixel buffer loaded as double values */
-    double    *    dbuf ;
-
-} qfitsloader ;
-
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    qfits dumper control object
-
-  This structure offers various control parameters to dump a pixel
-  buffer to a FITS file. The buffer will be dumped as requested
-  to the requested file in append mode. Of course, the requested file
-  must be writeable for the operation to succeed.
-
-  The following example demonstrates how to save a linear ramp sized
-  100x100 to a FITS file with BITPIX=16. Notice that this code only
-  dumps the pixel buffer, no header information is provided in this
-  case.
-
-  @code
-    int   i, j ;
-    int * ibuf ;
-    qfitsdumper    qd ;
-
-    // Fill a buffer with 100x100 int pixels
-    ibuf = malloc(100 * 100 * sizeof(int));
-    for (j=0 ; j<100 ; j++) {
-        for (i=0 ; i<100 ; i++) {
-            ibuf[i+j*100] = i+j ;
-        }
-    }
-
-    qd.filename  = "out.fits" ;     // Output file name
-    qd.npix      = 100 * 100 ;      // Number of pixels
-    qd.ptype     = PTYPE_INT ;      // Input buffer type
-    qd.ibuf      = ibuf ;           // Set buffer pointer
-    qd.out_ptype = BPP_16_SIGNED ;  // Save with BITPIX=16
-
-    // Dump buffer to file (error checking omitted for clarity)
-    qfits_pixdump(&qd);
-
-    free(ibuf);
-  @endcode
-  
-  If the provided output file name is "STDOUT" (all capitals), the
-  function will dump the pixels to the stdout steam (usually the console,
-  could have been re-directed).
- */
-/*----------------------------------------------------------------------------*/
-typedef struct qfitsdumper {
-
-    /** Name of the file to dump to, "STDOUT" to dump to stdout */
-    char     *    filename ;
-    /** Number of pixels in the buffer to dump */
-    int            npix ;
-    /** Buffer type: PTYPE_FLOAT, PTYPE_INT or PTYPE_DOUBLE */
-    int            ptype ;
-
-    /** Pointer to input integer pixel buffer */
-    int        *    ibuf ;
-    /** Pointer to input float pixel buffer */
-    float    *    fbuf ;
-    /** Pointer to input double pixel buffer */
-    double    *    dbuf ;
-
-    /** Requested BITPIX in output FITS file */
-    int            out_ptype ;
-} qfitsdumper ;
-
-/*-----------------------------------------------------------------------------
-                               Function prototypes
- -----------------------------------------------------------------------------*/
-
-int qfitsloader_init(qfitsloader *) ;
-int qfits_loadpix(qfitsloader *) ;
-int qfits_loadpix_window(qfitsloader *, int, int, int, int) ;
-int qfits_pixdump(qfitsdumper *) ;
-
-#endif
diff --git a/libqfits/src/qfits_md5.c b/libqfits/src/qfits_md5.c
deleted file mode 100644
index 30f494c..0000000
--- a/libqfits/src/qfits_md5.c
+++ /dev/null
@@ -1,198 +0,0 @@
-/* $Id: qfits_md5.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#include "qfits_md5.h"
-
-#include "md5.h"
-#include "qfits_std.h"
-#include "qfits_error.h"
-
-/*-----------------------------------------------------------------------------
-                                   Defines
- -----------------------------------------------------------------------------*/
-
-/* Size of an MD5 hash in bytes (32 bytes are 128 bits) */
-#define MD5HASHSZ    32
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_md5   FITS data block MD5 computation routine 
- *
- * This module offers MD5 computation over all data areas of a FITS file.
- *
-*/
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                              Function code
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Compute the MD5 hash of data zones in a FITS file.
-  @param    filename    Name of the FITS file to examine.
-  @return    1 statically allocated character string, or NULL.
-
-  This function expects the name of a FITS file.
-  It will compute the MD5 hash on all data blocks in the main data section
-  and possibly extensions (including zero-padding blocks if necessary) and
-  return it as a string suitable for inclusion into a FITS keyword.
-
-  The returned string is statically allocated inside this function,
-  so do not free it or modify it. This function returns NULL in case
-  of error.
- */
-/*----------------------------------------------------------------------------*/
-const char * qfits_datamd5(const char * filename)
-{
-    static char         datamd5[MD5HASHSZ+1] ;
-    struct MD5Context    ctx ;
-    unsigned char         digest[16] ;
-    FILE             *    in ;
-    char                 buf[FITS_BLOCK_SIZE];
-    char            *    buf_c ;
-    int                    i ;
-    int                    in_header ;
-    int                    check_fits ;
-
-    /* Check entries */
-    if (filename==NULL) return NULL ;
-    /* Open input file */
-    if ((in=fopen(filename, "r"))==NULL) {
-        qfits_error("cannot open file %s", filename);
-        return NULL ;
-    }
-    /* Initialize all variables */
-    MD5Init(&ctx);
-    in_header=1 ;
-    check_fits=0 ;
-    /* Loop over input file */
-    while (fread(buf, 1, FITS_BLOCK_SIZE, in)==FITS_BLOCK_SIZE) {
-        /* First time in the loop: check the file is FITS */
-        if (check_fits==0) {
-            /* Examine first characters in block */
-            if (buf[0]!='S' ||
-                buf[1]!='I' ||
-                buf[2]!='M' ||
-                buf[3]!='P' ||
-                buf[4]!='L' ||
-                buf[5]!='E' ||
-                buf[6]!=' ' ||
-                buf[7]!=' ' ||
-                buf[8]!='=') {
-                qfits_error("file [%s] is not FITS\n", filename);
-                fclose(in);
-                return NULL ;
-            } else {
-                check_fits=1 ;
-            }
-        }
-        if (in_header) {
-            buf_c = buf ;
-            for (i=0 ; i<FITS_NCARDS ; i++) {
-                if (buf_c[0]=='E' &&
-                    buf_c[1]=='N' &&
-                    buf_c[2]=='D' &&
-                    buf_c[3]==' ') {
-                    in_header=0 ;
-                    break ;
-                }
-                buf_c += FITS_LINESZ ;
-            }
-        } else {
-            /* If current block is a data block */
-            /* Try to locate an extension header */
-            if (buf[0]=='X' &&
-                buf[1]=='T' &&
-                buf[2]=='E' &&
-                buf[3]=='N' &&
-                buf[4]=='S' &&
-                buf[5]=='I' &&
-                buf[6]=='O' &&
-                buf[7]=='N' &&
-                buf[8]=='=') {
-                in_header=1 ;
-                buf_c = buf ;
-                for (i=0 ; i<FITS_NCARDS ; i++) {
-                    /* Try to find an END marker in this block */
-                    if (buf_c[0]=='E' &&
-                        buf_c[1]=='N' &&
-                        buf_c[2]=='D' &&
-                        buf_c[3]==' ') {
-                        /* Found END marker in same block as XTENSION */
-                        in_header=0;
-                        break ;
-                    }
-                    buf_c += FITS_LINESZ ;
-                }
-            } else {
-                MD5Update(&ctx, (unsigned char *)buf, FITS_BLOCK_SIZE);
-            }
-        }
-    }
-    fclose(in);
-    if (check_fits==0) {
-        /* Never went through the read loop: file is not FITS */
-        qfits_error("file [%s] is not FITS", filename);
-        return NULL ;
-    }
-    /* Got to the end of file: summarize */
-    MD5Final(digest, &ctx);
-    /* Write digest into a string */
-    sprintf(datamd5,
-    "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
-    digest[ 0],
-    digest[ 1],
-    digest[ 2],
-    digest[ 3],
-    digest[ 4],
-    digest[ 5],
-    digest[ 6],
-    digest[ 7],
-    digest[ 8],
-    digest[ 9],
-    digest[10],
-    digest[11],
-    digest[12],
-    digest[13],
-    digest[14],
-    digest[15]);
-    return datamd5 ;
-}
-
-/**@}*/
diff --git a/libqfits/src/qfits_md5.h b/libqfits/src/qfits_md5.h
deleted file mode 100644
index 2772697..0000000
--- a/libqfits/src/qfits_md5.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* $Id: qfits_md5.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_MD5_H
-#define QFITS_MD5_H
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-/*-----------------------------------------------------------------------------
-                        Function ANSI prototypes
- -----------------------------------------------------------------------------*/
-
-const char * qfits_datamd5(const char *) ;
-
-#endif
diff --git a/libqfits/src/qfits_memory.c b/libqfits/src/qfits_memory.c
deleted file mode 100644
index 4de6008..0000000
--- a/libqfits/src/qfits_memory.c
+++ /dev/null
@@ -1,1484 +0,0 @@
-/* $Id: qfits_memory.c,v 1.2 2009-11-30 10:03:08 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2009-11-30 10:03:08 $
- * $Revision: 1.2 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <sys/mman.h>
-#include <sys/resource.h>
-
-/*-----------------------------------------------------------------------------
-                                Defines
- -----------------------------------------------------------------------------*/
-
-/*
-  This symbol sets the debug level for the memory module. Debug levels are 
-  defined as follows:
-
-  0   no debugging.
-  1   add tracing for memory leaks and diagnostics in qfits_memory_status 
-  2   add lots of debug messages
-*/
-#ifndef QFITS_MEMORY_DEBUG
-#define QFITS_MEMORY_DEBUG       0
-#endif
-
-/*
-  This symbol defines the level of usage of the memory module. 
-
-  0   Use the memory system calls.
-  1   Use the memory system calls, but exit if they are not succesfull
-  2   Fully use the memory functions
-*/
-#ifndef QFITS_MEMORY_MODE
-#define QFITS_MEMORY_MODE        2
-#endif
-
-/* Initial number of entries in memory table */
-/* If this number is big, the size of the memory table can become
-   problematic.
- */
-#ifndef QFITS_MEMORY_MAXPTRS
-#define QFITS_MEMORY_MAXPTRS     200003
-#endif
-
-/* Identify true RAM memory */
-#define MEMTYPE_RAM         'R'
-/* Identify swap memory */
-#define MEMTYPE_SWAP        'S'
-/* Identify memory-mapped file */
-#define MEMTYPE_MMAP        'M'
-
-/* Minimal page size in bytes */
-#define MEMPAGESZ           2048
-
-/* Size of temporary dir name */
-#define TMPDIRNAMESZ        1024
-
-/* Size of temporary file names */
-#define TMPFILENAMESZ       1024
-
-/* Size of source file names */
-#define SRCFILENAMESZ       64
-
-/* Size of mapped file names */
-#define MAPFILENAMESZ       256
-
-/*-----------------------------------------------------------------------------
-                                Macros
- -----------------------------------------------------------------------------*/
-
-/* Debug */
-#if (QFITS_MEMORY_DEBUG>=2)
-#define qfits_mem_debug( code ) { code }
-#else
-#define qfits_mem_debug( code )
-#endif
-
-/* A very simple hash */
-#define PTR_HASH(ptr) (((unsigned long int) ptr) % QFITS_MEMORY_MAXPTRS)
-
-/*-----------------------------------------------------------------------------
-                        Private variables
- -----------------------------------------------------------------------------*/
-
-/* Initialization flag */
-static int  qfits_memory_initialized=0 ;
-
-/* Path to temporary directory */
-static char qfits_memory_tmpdirname[TMPDIRNAMESZ] = "." ;
-
-/*----------------------------------------------------------------------------*/
-/*
-  This table holds a list pointer cells (all the ones allocated so far).
-  It is strictly internal to this source file.
- */
-/*----------------------------------------------------------------------------*/
-static struct {
-    /* Number of active cells */
-    int                 ncells ;
-    /* Total allocated memory in bytes */
-    size_t              alloc_total ;
-    /* Total allocated RAM in bytes */
-    size_t              alloc_ram ;
-    /* Total allocated VM in bytes */
-    size_t              alloc_swap ;
-    /* Peak allocation ever seen for diagnostics */
-    size_t              alloc_max ;
-    /* Peak number of pointers ever seen for diagnostics */
-    int                 max_cells ;
-
-    /* Current number of swap files */
-    int                 nswapfiles ;
-    /* Registration counter for swap files */
-    int                 file_reg ;
-
-    /* Current number of memory-mapped files */
-    int                 n_mm_files ;
-    /* Current number of mappings derived from files */
-    int                 n_mm_mappings ;
-
-#ifdef __linux__
-    /* Page size in bytes (Linux only) */
-    int                 pagesize ;
-    /* Value found for RLIMIT_DATA (Linux only) */
-    int                 rlimit_data ;
-#endif
-} qfits_memory_table ;
-
-/* Various infos about the pointers */
-/* List of pointers (outside of cells for efficiency reason) */
-static void *   qfits_memory_p_val[QFITS_MEMORY_MAXPTRS] ;
-/* Pointed size in bytes */
-static size_t   qfits_memory_p_size[QFITS_MEMORY_MAXPTRS] ;
-#if (QFITS_MEMORY_DEBUG>=1)
-/* Name of the source file where the alloc was requested */
-static char *   qfits_memory_p_filename[QFITS_MEMORY_MAXPTRS] ;
-/* Line number where the alloc was requested */
-static int      qfits_memory_p_lineno[QFITS_MEMORY_MAXPTRS] ;
-#endif
-/* Memory type: RAM, swap, or mapped file */
-static char     qfits_memory_p_memtype[QFITS_MEMORY_MAXPTRS] ;
-/* Swap memory only */
-/* Swap file ID */
-static int      qfits_memory_p_swapfileid[QFITS_MEMORY_MAXPTRS] ;
-/* Swap file descriptor */
-static int      qfits_memory_p_swapfd[QFITS_MEMORY_MAXPTRS] ;
-/* Mapped files only */
-/* Name of mapped file */
-static char     qfits_memory_p_mm_filename[QFITS_MEMORY_MAXPTRS][MAPFILENAMESZ];
-/* Hash of mapped file name for quick search */
-static unsigned qfits_memory_p_mm_hash[QFITS_MEMORY_MAXPTRS] ;
-/* Reference counter for this pointer */
-static int      qfits_memory_p_mm_refcount[QFITS_MEMORY_MAXPTRS] ;
-
-/*-----------------------------------------------------------------------------
-                    Private function prototypes 
- -----------------------------------------------------------------------------*/
-
-static unsigned qfits_memory_hash(char *) ;
-static void qfits_memory_init(void) ;
-static void qfits_memory_cleanup(void);
-static int qfits_memory_addcell(void*, size_t, const char*, int, char, int, 
-        int, char*) ;
-static int qfits_memory_remcell(int) ;
-static void qfits_memory_dumpcell(int, FILE*) ;
-static char * qfits_memory_tmpfilename(int) ;
-static char * strdup_(const char * str) ;
-void qfits_memory_status_(const char *, int) ;
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_memory     POSIX-compatible extended memory handling
- *
- * qfits_memory is a small and efficient module offering memory extension 
- * capabitilies to ANSI C programs running on POSIX-compliant systems. It
- * offers several useful features such as memory leak detection, protection for 
- * free on NULL or unallocated pointers, and virtually unlimited memory space.
- * qfits_memory requires the @c mmap() system call to be implemented in the 
- * local C library to function. This module has been tested on a number of 
- * current Unix * flavours and is reported to work fine.
- * The current limitation is the limited number of pointers it can handle at
- * the same time.
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                            Function codes
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Allocate memory.
-  @param    size        Size (in bytes) to allocate.
-  @param    filename    Name of the file where the alloc took place.
-  @param    lineno      Line number in the file.
-  @return   1 newly allocated pointer.
-
-  This function is a replacement call for malloc. It should never be called
-  directly but through a macro instead, as:
-
-  @code
-  qfits_memory_malloc(size, __FILE__, __LINE__)
-  @endcode
- */
-/*----------------------------------------------------------------------------*/
-void * qfits_memory_malloc(
-        size_t          size, 
-        const char  *   filename, 
-        int             lineno)
-{
-    void    *   ptr ;
-    char    *   fname ;
-    int         swapfileid ;
-    int         swapfd ;
-    char        wbuf[MEMPAGESZ] ;
-    int         nbufs ;
-    int         memtype ;
-    int         i ;
-    int         pos ;
-#ifdef __linux__
-    int         p ;
-#endif
-
-    /* If QFITS_MEMORY_MODE is 0 or 1, do not use the qfits_memory model  */
-    if (QFITS_MEMORY_MODE == 0) return malloc(size);
-    else if (QFITS_MEMORY_MODE == 1) {
-        ptr = malloc(size);
-        if (ptr == NULL) exit(1) ;
-        else return ptr ;
-    }
-    
-    /* Initialize table if needed */
-    if (qfits_memory_initialized==0) {
-        qfits_memory_init() ;
-        qfits_memory_initialized++ ;
-    }
-
-    /* Protect the call */
-    if (size==0) {
-        qfits_mem_debug(
-            fprintf(stderr, "qfits_mem: malloc called with 0 size - %s (%d)\n",
-                    filename, lineno);
-        );
-        return NULL ;
-    }
-
-    /* Try to allocate in memory */
-#ifdef __linux__
-    /* Linux does not honor the RLIMIT_DATA limit.
-     * The only way to limit the amount of memory taken by
-     * a process is to set RLIMIT_AS, which unfortunately also
-     * limits down the maximal amount of memory addressable with
-     * mmap() calls, making on-the-fly swap space creation useless
-     * in this module. To avoid this, the RLIMIT_DATA value
-     * is honored here with this test.
-     */
-    ptr = NULL ;
-    if (qfits_memory_table.rlimit_data<1) {
-        /* No limit set on RLIMIT_DATA: proceed with malloc */
-        ptr = malloc(size);
-    } else if (qfits_memory_table.alloc_total+size <= 
-            (size_t)qfits_memory_table.rlimit_data) {
-        /* Next allocation will still be within limits: proceed */
-        ptr = malloc(size);
-    }
-#else
-    ptr = malloc(size);
-#endif
-    if (ptr==NULL) {
-        /* No more RAM available: try to allocate private swap */
-        qfits_mem_debug(
-            fprintf(stderr, "qfits_mem: hit a NULL pointer -- swapping\n");
-        );
-
-        /* Create swap file with rights: rw-rw-rw- */
-        swapfileid = ++ qfits_memory_table.file_reg ;
-        fname = qfits_memory_tmpfilename(swapfileid);
-        swapfd = open(fname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
-        if (swapfd==-1) {
-            fprintf(stderr, "qfits_mem: cannot create swap file\n");
-            exit(-1);
-        }
-        fchmod(swapfd, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
-
-        /* Compute number of passes to insert buffer */
-        nbufs = size / MEMPAGESZ ;
-        if (size % MEMPAGESZ != 0) nbufs ++ ;
-
-        /* Dump empty buffers into file */
-        memset(wbuf, 0, MEMPAGESZ);
-        for (i=0 ; i<nbufs ; i++) {
-            if (write(swapfd, wbuf, MEMPAGESZ)==-1) {
-                perror("write");
-                fprintf(stderr,
-                        "qfits_mem: fatal error: cannot create swapfile\n");
-                close(swapfd);
-                remove(fname);
-                exit(-1);
-            }
-        }
-
-        /* mmap() the swap file */
-        ptr = (void*)mmap(0,
-                          nbufs * MEMPAGESZ,
-                          PROT_READ | PROT_WRITE,
-                          MAP_PRIVATE,
-                          swapfd,
-                          0);
-        if ((char*)ptr == (char*)-1) {
-            perror("mmap");
-            fprintf(stderr,
-                    "qfits_mem: fatal error: mmap failed for swap file\n");
-            close(swapfd);
-            remove(fname);
-            exit(-1);
-        }
-
-        qfits_mem_debug(
-            fprintf(stderr, "qfits_mem: swap [%s] created for %ld bytes\n", 
-                fname, (long)size);
-        );
-
-        memtype = MEMTYPE_SWAP ;
-        qfits_memory_table.alloc_swap += size ;
-        qfits_memory_table.nswapfiles ++ ;
-    } else {
-        /* Memory allocation succeeded */
-#ifdef __linux__
-        /*
-         * On Linux, the returned pointer might not be honored later.
-         * To make sure the returned memory is actually usable, it has to
-         * be touched. The following will touch one byte every 'pagesize'
-         * bytes to make sure all blocks are visited and properly allocated
-         * by the OS.
-         */
-        qfits_mem_debug(
-            fprintf(stderr, "qfits_mem: touching memory (Linux)\n");
-        );
-        for (p=0 ; p<(int)size ; p+=qfits_memory_table.pagesize) 
-            ((char*)ptr)[p] = 0;
-#endif
-        swapfd = -1 ;
-        swapfileid = -1 ;
-        memtype = MEMTYPE_RAM ;
-        qfits_memory_table.alloc_ram   += size ;
-    }
-    
-    /* Print out message in debug mode */
-    qfits_mem_debug(
-        fprintf(stderr, "qfits_mem: %p alloc(%ld) in %s (%d)\n",
-            ptr, (long)size, filename, lineno) ;
-    );
-
-    /* Add cell into general table */
-    pos = qfits_memory_addcell(  ptr,
-                            size,
-                            filename,
-                            lineno,
-                            memtype,
-                            swapfileid,
-                            swapfd,
-                            NULL);
-    /* Adjust size */
-    qfits_memory_table.alloc_total += size ;
-    /* Remember biggest allocated block */
-    if (qfits_memory_table.alloc_total > qfits_memory_table.alloc_max)
-        qfits_memory_table.alloc_max = qfits_memory_table.alloc_total ;
-
-    /* Insert memory stamp */
-    return (void*)ptr ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Allocate memory.
-  @param    nmemb       Number of elements to allocate.
-  @param    size        Size (in bytes) of each element.
-  @param    filename    Name of the file where the alloc took place.
-  @param    lineno      Line number in the file.
-  @return   1 newly allocated pointer.
-
-  This function is a replacement call for calloc. It should never be called
-  directly but through a macro instead, as:
-
-  @code
-  qfits_memory_calloc(nmemb, size, __FILE__, __LINE__)
-  @endcode
- */
-/*----------------------------------------------------------------------------*/
-void * qfits_memory_calloc(
-        size_t          nmemb, 
-        size_t          size, 
-        const char  *   filename, 
-        int             lineno)
-{
-    void    *   ptr ;
-
-    /* If QFITS_MEMORY_MODE is 0 or 1, do not use the qfits_memory model  */
-    if (QFITS_MEMORY_MODE == 0) return calloc(nmemb, size) ;
-    else if (QFITS_MEMORY_MODE == 1) {
-        ptr = calloc(nmemb, size) ;
-        if (ptr == NULL) exit(1) ;
-        else return ptr ;
-    }
-    
-    ptr = qfits_memory_malloc(nmemb * size, filename, lineno) ;
-    return memset(ptr, 0, nmemb * size) ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Map a file's contents to memory as a char pointer.
-  @param    name        Name of the file to map
-  @param    offs        Offset to the first mapped byte in file.
-  @param    size        Returned size of the mapped file in bytes.
-  @param    srcname     Name of the source file making the call.
-  @param    srclin      Line # where the call was made.
-  @return   A pointer to char, to be freed using qfits_memory_free().
-
-  This function takes in input the name of a file. It tries to map the file 
-  into memory and if it succeeds, returns the file's contents as a char pointer.
-  It also modifies the input size variable to be the size of the mapped file in
-  bytes. This function is normally never directly called but through the 
-  falloc() macro.
-
-  The offset indicates the starting point for the mapping, i.e. if you are not 
-  interested in mapping the whole file but only from a given place.
-
-  The returned pointer ptr must be deallocated with qfits_memory_fdealloc(ptr)
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_memory_falloc(
-        char        *   name,
-        size_t          offs,
-        size_t      *   size,
-        const char  *   srcname,
-        int             srclin)
-{
-    unsigned        mm_hash ;
-    char        *   ptr ;
-    struct stat     sta ;
-    int             fd ;
-    int             nptrs ;
-    int             i ;
-
-    /* If QFITS_MEMORY_MODE is 0 or 1, do not use the qfits_memory model  */
-    if ((QFITS_MEMORY_MODE == 0) || (QFITS_MEMORY_MODE == 1)) {
-
-        if (size!=NULL) *size = 0 ;
-
-        /* Check file's existence and compute its size */
-        if (stat(name, &sta)==-1) {
-            qfits_mem_debug(
-                fprintf(stderr, "qfits_mem: cannot stat file %s - %s (%d)\n",
-                        name, srcname, srclin);
-            );
-            if (QFITS_MEMORY_MODE == 0) return NULL ;
-            else exit(1) ;
-        }
-        /* Check offset request does not go past end of file */
-        if (offs>=(size_t)sta.st_size) {
-            qfits_mem_debug(
-                fprintf(stderr,
-                    "qfits_mem: falloc offsets larger than file size");
-            );
-            if (QFITS_MEMORY_MODE == 0) return NULL ;
-            else exit(1) ;
-        }
-
-        /* Open file */
-        if ((fd=open(name, O_RDONLY))==-1) {
-            qfits_mem_debug(
-                fprintf(stderr, "qfits_mem: cannot open file %s - %s (%d)\n",
-                        name, srcname, srclin);
-            );
-            if (QFITS_MEMORY_MODE == 0) return NULL ;
-            else exit(1) ;
-        }
-
-        /* Memory-map input file */
-        ptr = (char*)mmap(0, sta.st_size, 
-                PROT_READ | PROT_WRITE, MAP_PRIVATE,fd,0);
-        
-        /* Close file */
-        close(fd);
-        if (ptr == (char*)-1 || ptr==NULL) {
-            qfits_mem_debug(
-                perror("mmap");
-                fprintf(stderr, "qfits_mem: falloc cannot mmap file %s", name);
-            );
-            if (QFITS_MEMORY_MODE == 0) return NULL ;
-            else exit(1) ;
-        }
-
-        qfits_mem_debug(
-            fprintf(stderr,
-                    "qfits_mem: falloc mmap succeeded for [%s] - %s (%d)\n",
-                    name, srcname, srclin);
-        );
-
-        if (size!=NULL) (*size) = sta.st_size ;
-        
-        return ptr + offs ;
-    }
-
-    /* Protect the call */
-    if (size!=NULL) *size = 0 ;
-
-    /* Initialize table if needed */
-    if (qfits_memory_initialized==0) {
-        qfits_memory_init() ;
-        qfits_memory_initialized++ ;
-    }
-
-    if (qfits_memory_table.ncells>0) {
-        /* Check if file has already been mapped */
-        /* Compute hash for this name */
-        mm_hash = qfits_memory_hash(name);
-        /* Loop over all memory cells */
-        nptrs=0 ;
-        for (i=0 ; i<QFITS_MEMORY_MAXPTRS ; i++) {
-            if (qfits_memory_p_val[i]!=NULL)
-                nptrs++ ;
-            if ((qfits_memory_p_val[i]!=NULL) &&
-                (qfits_memory_p_mm_filename[i] != NULL) &&
-                (qfits_memory_p_mm_hash[i] == mm_hash)) {
-                if (!strncmp(qfits_memory_p_mm_filename[i], name,
-                             MAPFILENAMESZ)) {
-                    /* File already mapped */
-                    /* Check offset consistency wrt file size */
-                    if (offs >= qfits_memory_p_size[i]) {
-                        qfits_mem_debug(
-                            fprintf(stderr,
-                                "qfits_mem: falloc offset larger than file sz");
-                        );
-                        return NULL ;
-                    }
-                    /* Increase reference counter */
-                    qfits_memory_p_mm_refcount[i] ++ ;
-                    qfits_mem_debug(
-                        fprintf(stderr,
-                                "qfits_mem: incref on %s (%d mappings)\n",
-                                name,
-                                qfits_memory_p_mm_refcount[i]);
-                    );
-                    /* Increase number of mappings */
-                    qfits_memory_table.n_mm_mappings ++ ;
-                    /* Build up return pointer */
-                    ptr = (char*)qfits_memory_p_val[i] + offs ;
-                    /* Available size is filesize minus offset */
-                    if (size!=NULL) {
-                        *size = qfits_memory_p_size[i] - offs ;
-                    }
-                    /* Return constructed pointer as void * */
-                    return (void*)ptr ;
-                }
-            }
-            if (nptrs>=qfits_memory_table.ncells) break ;
-        }
-    }
-
-    /* First mapping attempt for this file */
-    /* Check file's existence and compute its size */
-    if (stat(name, &sta)==-1) {
-        qfits_mem_debug(
-            fprintf(stderr, "qfits_mem: cannot stat file %s - %s (%d)\n",
-                    name, srcname, srclin);
-        );
-        return NULL ;
-    }
-    /* Check offset request does not go past end of file */
-    if (offs>=(size_t)sta.st_size) {
-        qfits_mem_debug(
-            fprintf(stderr,
-                "qfits_mem: falloc offsets larger than file size");
-        );
-        return NULL ;
-    }
-
-    /* Open file */
-    if ((fd=open(name, O_RDONLY))==-1) {
-        qfits_mem_debug(
-            fprintf(stderr, "qfits_mem: cannot open file %s - %s (%d)\n",
-                    name, srcname, srclin);
-        );
-        return NULL ;
-    }
-
-    /* Memory-map input file */
-    ptr = (char*)mmap(0, sta.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE,fd,0);
-    
-    /* Close file */
-    close(fd);
-    if (ptr == (char*)-1 || ptr==NULL) {
-        qfits_mem_debug(
-            perror("mmap");
-            fprintf(stderr, "qfits_mem: falloc cannot mmap file %s", name);
-        );
-        return NULL ;
-    }
-
-    qfits_memory_table.n_mm_files ++ ;
-    qfits_memory_table.n_mm_mappings ++ ;
-    qfits_mem_debug(
-        fprintf(stderr,
-                "qfits_mem: falloc mmap succeeded for [%s] - %s (%d)\n",
-                name, srcname, srclin);
-    );
-
-    /* Add cell into general table */
-    (void) qfits_memory_addcell((void*)ptr, sta.st_size, srcname, srclin, 
-                           MEMTYPE_MMAP, -1, -1, name) ;
-
-    if (size!=NULL) (*size) = sta.st_size ;
-    
-    return ptr + offs ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Free memory that has been allocated with falloc
-  @param    ptr         Pointer to free.
-  @param    offs        Offset to the first mapped byte in file.
-  @param    size        size to unmap
-  @param    filename    Name of the file where the dealloc took place.
-  @param    lineno      Line number in the file.
-  @return   void
- */
-/*----------------------------------------------------------------------------*/
-void qfits_memory_fdealloc(
-        void        *   ptr, 
-        size_t          offs,
-        size_t          size, 
-        const char  *   filename, 
-        int             lineno)
-{
-    int     i ;
-    int     pos ;
-    char *  swapname ;
-    int     nptrs ;
-    int     ii;
-
-    /* Do nothing for a NULL pointer */
-    if (ptr==NULL) {
-        /* Output a warning */
-        fprintf(stderr, "qfits_mem: free requested on NULL ptr -- %s (%d)\n",
-                filename, lineno);
-        return ;
-    }
-    
-    /* If QFITS_MEMORY_MODE is 0 or 1, do not use the qfits_memory model  */
-    if ((QFITS_MEMORY_MODE == 0) || (QFITS_MEMORY_MODE == 1)) {
-        munmap((char*)(ptr)-offs, size) ;
-        return ;
-    }
-    
-    /* Locate pointer in main table */
-    nptrs = 0 ;
-    pos = -1 ;
-    i = PTR_HASH(ptr);
-    for (ii=0 ; ii<QFITS_MEMORY_MAXPTRS ; ii++) {
-        if (++i == QFITS_MEMORY_MAXPTRS) i = 0;
-        if (qfits_memory_p_val[i] == NULL) continue ;
-        nptrs++ ;
-        if (qfits_memory_p_val[i] == ptr) {
-            pos=i ;
-            break ;
-        }
-        if (qfits_memory_p_memtype[i]==MEMTYPE_MMAP) {
-            if (((char*)qfits_memory_p_val[i]<=(char*)ptr) &&
-                (((char*)qfits_memory_p_val[i] + 
-                  qfits_memory_p_size[i]) >= (char*)ptr)) {
-                pos = i ;
-                break ;
-            }
-        }
-        if (nptrs>=qfits_memory_table.ncells) break ;
-    }
-    if (pos==-1) {
-        fprintf(stderr,
-                "qfits_mem: %s (%d) free req. on unallocated pointer (%p)\n",
-                filename, lineno, ptr);
-        /* Pointer sent to system's free() function, maybe it should not? */
-        free(ptr);
-        return ;
-    }
-
-    /* Deallocate pointer */
-    switch (qfits_memory_p_memtype[pos]) {
-        case MEMTYPE_RAM:
-            /* --- RAM pointer */
-            /* Free normal memory pointer */
-            free(ptr);
-            qfits_memory_table.alloc_ram -= qfits_memory_p_size[pos] ;
-            break ;
-        case MEMTYPE_SWAP:
-            /* --- SWAP pointer */
-            swapname = qfits_memory_tmpfilename(qfits_memory_p_swapfileid[pos]);
-            qfits_mem_debug(
-                    fprintf(stderr, "qfits_mem: deallocating swap file [%s]\n", 
-                        swapname);
-            );
-            /* Munmap file */
-            if (munmap(ptr, qfits_memory_p_size[pos])!=0) {
-                qfits_mem_debug( perror("munmap"); );
-            }
-            /* Close swap file */
-            if (close(qfits_memory_p_swapfd[pos])==-1) {
-                qfits_mem_debug( perror("close"); );
-            }
-            /* Remove swap file */
-            if (remove(swapname)!=0) {
-                qfits_mem_debug( perror("remove"); );
-            }
-            qfits_memory_table.alloc_swap -= qfits_memory_p_size[pos] ;
-            qfits_memory_table.nswapfiles -- ;
-            break ;
-        case MEMTYPE_MMAP:
-            /* --- MEMORY-MAPPED pointer */
-            /* Decrease reference count */
-            qfits_memory_p_mm_refcount[pos] -- ;
-            /* Decrease total number of mappings */
-            qfits_memory_table.n_mm_mappings -- ;
-            /* Non-null ref count means the file stays mapped */
-            if (qfits_memory_p_mm_refcount[pos]>0) {
-                qfits_mem_debug(
-                    fprintf(stderr, "qfits_mem: decref on %s (%d mappings)\n",
-                            qfits_memory_p_mm_filename[pos],
-                            qfits_memory_p_mm_refcount[pos]);
-                );
-                return ;
-            }
-            /* Ref count reached zero: unmap the file */
-            qfits_mem_debug(
-                    fprintf(stderr,
-                        "qfits_mem: unmapping file %s\n",
-                        qfits_memory_p_mm_filename[pos]);
-            );
-            munmap((char*)qfits_memory_p_val[pos],
-                    qfits_memory_p_size[pos]);
-            /* Decrease total number of mapped files */
-            qfits_memory_table.n_mm_files -- ;
-            break ;
-        default:
-            qfits_mem_debug(
-                    fprintf(stderr, "qfits_mem: unknown memory cell type???");
-            );
-            break ;
-    }
-
-    if (qfits_memory_p_memtype[pos]!=MEMTYPE_MMAP) {
-        /* Adjust allocated totals */
-        qfits_memory_table.alloc_total -= qfits_memory_p_size[pos] ;
-
-        /* Print out message in debug mode */
-        qfits_mem_debug(
-            fprintf(stderr, "qfits_mem: free(%p) %ld bytes in %s (%d)\n",
-                    ptr,
-                    (long)qfits_memory_p_size[pos],
-                    filename,
-                    lineno);
-        );
-    }
-    /* Remove cell from main table */
-    qfits_memory_remcell(pos) ;
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Free memory.
-  @param    ptr         Pointer to free.
-  @param    filename    Name of the file where the dealloc took place.
-  @param    lineno      Line number in the file.
-  @return   void
-
-  Free the memory associated to a given pointer. Prints out a warning on stderr
-  if the requested pointer is NULL or cannot be found in the extended memory 
-  table.
- */
-/*----------------------------------------------------------------------------*/
-void qfits_memory_free(
-        void        *   ptr, 
-        const char  *   filename, 
-        int             lineno)
-{
-    int     i ;
-    int     pos ;
-    char *  swapname ;
-    int     nptrs ;
-    int     ii;
-
-    /* If QFITS_MEMORY_MODE is 0 or 1, do not use the qfits_memory model  */
-    if ((QFITS_MEMORY_MODE == 0) || (QFITS_MEMORY_MODE == 1)) {
-        free(ptr);
-        return ;
-    }
-    
-    /* Do nothing for a NULL pointer */
-    if (ptr==NULL) {
-        /* Output a warning */
-        fprintf(stderr, "qfits_mem: free requested on NULL ptr -- %s (%d)\n",
-                filename, lineno);
-        return ;
-    }
-
-    /* Locate pointer in main table */
-    nptrs = 0 ;
-    pos = -1 ;
-    i = PTR_HASH(ptr);
-    for (ii=0 ; ii<QFITS_MEMORY_MAXPTRS ; ii++) {
-        if (++i == QFITS_MEMORY_MAXPTRS) i = 0;
-        if (qfits_memory_p_val[i] == NULL) continue ;
-        nptrs++ ;
-        if (qfits_memory_p_val[i] == ptr) {
-            pos=i ;
-            break ;
-        }
-        if (qfits_memory_p_memtype[i]==MEMTYPE_MMAP) {
-            if (((char*)qfits_memory_p_val[i]<=(char*)ptr) &&
-                (((char*)qfits_memory_p_val[i] + 
-                  qfits_memory_p_size[i]) >= (char*)ptr)) {
-                pos = i ;
-                break ;
-            }
-        }
-        if (nptrs>=qfits_memory_table.ncells) break ;
-    }
-    if (pos==-1) {
-        fprintf(stderr,
-                "qfits_mem: %s (%d) free requested on unallocated ptr (%p)\n",
-                filename, lineno, ptr);
-        /* Pointer sent to system's free() function, maybe it should not? */
-        free(ptr);
-        return ;
-    }
-
-    /* Deallocate pointer */
-    switch (qfits_memory_p_memtype[pos]) {
-        case MEMTYPE_RAM:
-            /* --- RAM pointer */
-            /* Free normal memory pointer */
-            free(ptr);
-            qfits_memory_table.alloc_ram -= qfits_memory_p_size[pos] ;
-            break ;
-        case MEMTYPE_SWAP:
-            /* --- SWAP pointer */
-            swapname = qfits_memory_tmpfilename(qfits_memory_p_swapfileid[pos]);
-            qfits_mem_debug(
-                    fprintf(stderr, "qfits_mem: deallocating swap file [%s]\n", 
-                        swapname);
-            );
-            /* Munmap file */
-            if (munmap(ptr, qfits_memory_p_size[pos])!=0) {
-                qfits_mem_debug( perror("munmap"); );
-            }
-            /* Close swap file */
-            if (close(qfits_memory_p_swapfd[pos])==-1) {
-                qfits_mem_debug( perror("close"); );
-            }
-            /* Remove swap file */
-            if (remove(swapname)!=0) {
-                qfits_mem_debug( perror("remove"); );
-            }
-            qfits_memory_table.alloc_swap -= qfits_memory_p_size[pos] ;
-            qfits_memory_table.nswapfiles -- ;
-            break ;
-        case MEMTYPE_MMAP:
-            /* --- MEMORY-MAPPED pointer */
-            /* Decrease reference count */
-            qfits_memory_p_mm_refcount[pos] -- ;
-            /* Decrease total number of mappings */
-            qfits_memory_table.n_mm_mappings -- ;
-            /* Non-null ref count means the file stays mapped */
-            if (qfits_memory_p_mm_refcount[pos]>0) {
-                qfits_mem_debug(
-                    fprintf(stderr, "qfits_mem: decref on %s (%d mappings)\n",
-                            qfits_memory_p_mm_filename[pos],
-                            qfits_memory_p_mm_refcount[pos]);
-                );
-                return ;
-            }
-            /* Ref count reached zero: unmap the file */
-            qfits_mem_debug(
-                    fprintf(stderr,
-                        "qfits_mem: unmapping file %s\n",
-                        qfits_memory_p_mm_filename[pos]);
-            );
-            munmap((char*)qfits_memory_p_val[pos],
-                    qfits_memory_p_size[pos]);
-            /* Decrease total number of mapped files */
-            qfits_memory_table.n_mm_files -- ;
-            break ;
-        default:
-            qfits_mem_debug(
-                    fprintf(stderr, "qfits_mem: unknown memory cell type???");
-            );
-            break ;
-    }
-
-    if (qfits_memory_p_memtype[pos]!=MEMTYPE_MMAP) {
-        /* Adjust allocated totals */
-        qfits_memory_table.alloc_total -= qfits_memory_p_size[pos] ;
-
-        /* Print out message in debug mode */
-        qfits_mem_debug(
-            fprintf(stderr, "qfits_mem: free(%p) %ld bytes in %s (%d)\n",
-                    ptr,
-                    (long)qfits_memory_p_size[pos],
-                    filename,
-                    lineno);
-        );
-    }
-    /* Remove cell from main table */
-    qfits_memory_remcell(pos) ;
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Re-Allocate memory.
-  @param    ptr         Pointer to free.
-  @param    size        Size (in bytes) to allocate.
-  @param    filename    Name of the file where the alloc took place.
-  @param    lineno      Line number in the file.
-  @return   1 newly allocated pointer.
-
-  This function is a replacement call for realloc. It should never be called
-  directly but through a macro instead, as:
-
-  @code
-  qfits_memory_realloc(nmemb, size, __FILE__, __LINE__)
-  @endcode
- */
-/*----------------------------------------------------------------------------*/
-void * qfits_memory_realloc(
-        void        *   ptr, 
-        size_t          size, 
-        const char  *   filename, 
-        int             lineno)
-{
-    void    *   ptr2 ;
-    size_t      small_sz ;
-    size_t      ptr_sz ;
-    int         pos = -1 ;
-    int         i ;
-    
-    /* If QFITS_MEMORY_MODE is 0 or 1, do not use the qfits_memory model  */
-    if (QFITS_MEMORY_MODE == 0) return realloc(ptr, size) ;
-    else if (QFITS_MEMORY_MODE == 1) {
-        ptr2 = realloc(ptr, size) ;
-        if (ptr2 == NULL) exit(1) ;
-        else return ptr2 ;
-    }
-
-    if (ptr == NULL) return qfits_memory_malloc(size, filename, lineno) ;
-
-    /* Get the pointer size */
-    for (i=0 ; i<QFITS_MEMORY_MAXPTRS ; i++) {
-        if (qfits_memory_p_val[i] == NULL) continue ;
-        if (qfits_memory_p_val[i] == ptr) {
-            pos = i ;
-            break ;
-        }
-    }
-    if (pos==-1) {
-        fprintf(stderr,
-            "qfits_mem: %s (%d) realloc requested on unallocated ptr (%p)\n",
-            filename, lineno, ptr);
-        /* Pointer sent to system's realloc() function, maybe it should not? */
-        return realloc(ptr, size) ;
-    }
-    ptr_sz = qfits_memory_p_size[pos] ;
-    
-    /* Compute the smaller size */
-    small_sz = size < ptr_sz ? size : ptr_sz ;
-    
-    /* Allocate the new pointer */
-    ptr2 = qfits_memory_malloc(size, filename, lineno) ;
-    
-    /* Copy the common data */
-    memcpy(ptr2, ptr, small_sz) ;
-
-    /* Free the passed ptr */
-    qfits_memory_free(ptr, filename, lineno) ;
-    
-    /* Return  */
-    return ptr2 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Duplicate a string using calloc.
-  @param    s       String to duplicate.
-  @param    filename    Name of the file where the call took place.
-  @param    lineno      Line number in the file.
-  @return   1 newly allocated character string.
-
-  This function calls in turn calloc to perform the allocation. It should
-  never be called directly but only through a macro, like:
-
-  @code
-  qfits_memory_strdup(s, __FILE__, __LINE__)
-  @endcode
-
-  This function calls qfits_memory_malloc() to do the allocation.
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_memory_strdup(
-        const char  *   s, 
-        const char  *   filename, 
-        int             lineno)
-{
-    char    *   t ;
-    
-    /* If QFITS_MEMORY_MODE is 0 or 1, do not use the qfits_memory model  */
-    if (QFITS_MEMORY_MODE == 0) return strdup_(s) ;
-    else if (QFITS_MEMORY_MODE == 1) {
-        t = strdup_(s) ;
-        if (t == NULL) exit(1) ;
-        else return t ;
-    }
-
-    if (s==NULL) return NULL ;
-    t = qfits_memory_malloc(1+strlen(s), filename, lineno);
-    return strcpy(t, s);
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Display memory status information.
-  @return   void
-
-  This function is meant for debugging purposes, but it is recommended to
-  call it at the end of every executable making use of the extended memory
-  features. 
- */
-/*----------------------------------------------------------------------------*/
-void qfits_memory_status(void)
-{
-    int     i ;
-
-    /* If QFITS_MEMORY_MODE is 0 or 1, do not use the qfits_memory model  */
-    if ((QFITS_MEMORY_MODE == 0) || (QFITS_MEMORY_MODE == 1)) return ;
-    
-#if (QFITS_MEMORY_DEBUG>=1)
-    fprintf(stderr, "#----- memory diagnostics -----\n") ;
-
-    fprintf(stderr,
-            "#- Peak memory usage\n"
-            "ALL_maxalloc_kb     %ld\n"
-            "ALL_maxpointers     %d\n",
-            (long)(qfits_memory_table.alloc_max/1024),
-            qfits_memory_table.max_cells);
-    fprintf(stderr,
-            "#- Local implementation\n"
-            "TAB_ptrs            %d\n"
-            "TAB_size            %u bytes\n",
-            QFITS_MEMORY_MAXPTRS,
-            (unsigned)sizeof(qfits_memory_table));
-#ifdef __linux__
-    fprintf(stderr,
-            "#- Linux specific\n"
-            "LINUX_pagesize      %d bytes\n"
-            "LINUX_RLIMIT_DATA   %d kb\n",
-            qfits_memory_table.pagesize,
-            qfits_memory_table.rlimit_data);
-#endif
-#endif
-
-    if (qfits_memory_table.ncells<1) return ;
-    fprintf(stderr, "#----- memory diagnostics -----\n") ;
-
-    fprintf(stderr,
-            "#- ALL status\n"
-            "ALL_npointers       %d\n"
-            "ALL_size            %ld\n"
-            "ALL_maxalloc_kb     %ld\n"
-            "ALL_maxpointers     %d\n",
-            qfits_memory_table.ncells,
-            (long)qfits_memory_table.alloc_total,
-            (long)(qfits_memory_table.alloc_max/1024),
-            qfits_memory_table.max_cells);
-
-    if (qfits_memory_table.alloc_ram > 0) {
-        fprintf(stderr, 
-                "#- RAM status\n"
-                "RAM_alloc           %ld\n",
-                (long)qfits_memory_table.alloc_ram);
-    }
-    if (qfits_memory_table.alloc_swap > 0) {
-        fprintf(stderr,
-                "#- SWP status\n"
-                "SWP_alloc           %ld\n"
-                "SWP_files           %d\n",
-                (long)qfits_memory_table.alloc_swap,
-                qfits_memory_table.nswapfiles);
-    }
-
-    if (qfits_memory_table.n_mm_files>0) {
-        fprintf(stderr,
-                "#- MAP status\n"
-                "MAP_files           %d\n"
-                "MAP_mappings        %d\n",
-                qfits_memory_table.n_mm_files,
-                qfits_memory_table.n_mm_mappings);
-    }
-
-    fprintf(stderr, "#- pointer details\n");
-    for (i=0 ; i<QFITS_MEMORY_MAXPTRS; i++) {
-        qfits_memory_dumpcell(i, stderr);
-    }
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Tell if there is still some memory allocated
-  @return   1 if the memory table is tempty, 0 if no, 
-            -1 if the memory model is off
- */
-/*----------------------------------------------------------------------------*/
-int qfits_memory_is_empty(void)
-{
-    if ((QFITS_MEMORY_MODE == 0) || (QFITS_MEMORY_MODE == 1)) return -1 ;
-    if (qfits_memory_table.ncells<1) return 1 ;
-    else return 0 ;
-}
-
-/**@}*/
-
-/*
- * posted to comp.sys.next.programmer:
- * 
- *   
- * From: moser at ifor.math.ethz.ch (Dominik Moser,CLV A4,2 40 19,720 49 89)
- * Subject: Re: Compile problems (pgp 2.6.3i)
- * Date: 10 Jul 1996 06:50:42 GMT
- * Organization: Swiss Federal Institute of Technology (ETHZ)
- * References: <4rrhvj$6fr at bagan.srce.hr>
- * Message-ID: <4rvjs2$6oh at elna.ethz.ch>
- * 
- * Most systems don't have this (yet)
- 
- */
-static char * strdup_(const char * str)
-{
-    char    *   p ;
-
-    if ((p = malloc(strlen(str)+1)) == NULL)
-    return((char *) NULL);
-
-    (void) strcpy(p, str);
-
-    return(p);
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Hash a string to an unsigned value.
-  @param    key     String to hash
-  @return   1 unsigned value as a hash for the given string.
-  
-  This hash function has been taken from an Article in Dr Dobbs Journal. This 
-  is normally a collision-free function, distributing keys evenly. The key is 
-  stored anyway in the struct so that collision can be avoided by comparing the
-  key itself in last resort.
- */
-/*----------------------------------------------------------------------------*/
-static unsigned qfits_memory_hash(char * key)
-{
-    int         len ;
-    unsigned    hash ;
-    int         i ;
-
-    len = strlen(key);
-    for (hash=0, i=0 ; i<len ; i++) {
-        hash += (unsigned)key[i] ;
-        hash += (hash<<10);
-        hash ^= (hash>>6) ;
-    }
-    hash += (hash <<3);
-    hash ^= (hash >>11);
-    hash += (hash <<15);
-    return hash ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Initialize extended memory features.
-  @return   void
-
-  This function is implicitly called by the first malloc() or calloc() or 
-  strdup_() execution. It allocates a minimal number of memory cells into
-  the global extended memory table. It also install atexit routines the first 
-  time it is called, and increases the number of possible descriptors to the 
-  maximum.
- */
-/*----------------------------------------------------------------------------*/
-static void qfits_memory_init(void)
-{
-    struct rlimit rlim ;
-
-    qfits_mem_debug(
-        fprintf(stderr,
-                "qfits_mem: initializing main table size=%d ptrs (%ld bytes)\n",
-                QFITS_MEMORY_MAXPTRS,
-                (long)sizeof(qfits_memory_table));
-    );
-    /* Initialize memory table */
-    memset(&qfits_memory_table, 0, sizeof(qfits_memory_table));
-
-    /* Install cleanup routine at exit */
-    atexit(qfits_memory_cleanup);
-        
-    /* Increase number of descriptors to maximum */
-    getrlimit(RLIMIT_NOFILE, &rlim) ;
-    qfits_mem_debug(
-        fprintf(stderr, "qfits_mem: increasing from %ld to %ld file handles\n",
-                (long)rlim.rlim_cur,
-                (long)rlim.rlim_max);
-    );
-    rlim.rlim_cur = rlim.rlim_max ;
-    setrlimit(RLIMIT_NOFILE, &rlim) ;
-
-#ifdef __linux__
-    /* Get RLIMIT_DATA on Linux */
-    getrlimit(RLIMIT_DATA, &rlim);
-    qfits_memory_table.rlimit_data = rlim.rlim_cur ;
-    qfits_mem_debug(
-        fprintf(stderr, "qfits_mem: got RLIMIT_DATA=%d\n",
-                qfits_memory_table.rlimit_data);
-    );
-    /* Get page size on Linux */
-    qfits_memory_table.pagesize = getpagesize();
-
-#endif
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Removes all swap files.
-  @return   void
-
-  This routine will delete all swap files from the temporary area.
- */
-/*----------------------------------------------------------------------------*/
-static void qfits_memory_cleanup(void)
-{
-    int     reg ;
-
-    if (qfits_memory_table.file_reg>0) {
-        qfits_mem_debug(
-            fprintf(stderr, "qfits_mem: cleaning up swap files... ");
-        );
-        /*
-         * Call remove() on all possible VM files. If the file exists, it
-         * is effectively removed. It it does not, ignore the error.
-         * This is not the cleanest way of doing it, but this function is
-         * meant to be called also in cases of emergency (e.g. segfault),
-         * so it should not rely on a correct memory table.
-         */
-        for (reg=0 ; reg<qfits_memory_table.file_reg ; reg++) {
-            remove(qfits_memory_tmpfilename(reg+1));
-        }
-        qfits_mem_debug(
-            fprintf(stderr, "qfits_mem: done cleaning swap files\n");
-        );
-    }
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Add allocation cell to qfits_memory_table.
-  @param    pointer         Pointer value.
-  @param    size            Pointer size.
-  @param    filename        Name of the C source file where alloc was done.
-  @param    lineno          Line # where the allocation took place.
-  @param    memtype         Memory type: RAM or SWAP.
-  @param    swapfileid      Associated swap file ID (if any).
-  @param    swapfd          Associated swap file descriptor (if any).
-  @param    mm_filename     Mapped file name (if any)
-  @return   the index in the qfits_memory_table of the added cell
-
-  Add a memory cell in the xtended memory table to register that a new 
-  allocation took place. 
-  This call is not protected against illegal parameter values, so make sure 
-  the passed values are correct!
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_memory_addcell(
-        void        *   pointer,
-        size_t          size,
-        const char  *   filename,
-        int             lineno,
-        char            memtype,
-        int             swapfileid,
-        int             swapfd,
-        char        *   mm_filename)
-{
-    int pos, ii ;
-    
-    /* Check there is still some space left */
-    if (qfits_memory_table.ncells >= QFITS_MEMORY_MAXPTRS) {
-        fprintf(stderr, "fatal qfits_memory error: reached max pointers (%d)\n",
-                QFITS_MEMORY_MAXPTRS);
-        exit(-1);
-    }
-    /* Find an available slot */
-    pos = PTR_HASH(pointer);
-    for (ii = 0 ; ii<QFITS_MEMORY_MAXPTRS ; ii++) {
-        if (++pos == QFITS_MEMORY_MAXPTRS) pos = 0;
-        if (qfits_memory_p_val[pos] == NULL) break ;
-    }
-    qfits_mem_debug(
-            fprintf(stderr, "qfits_mem: freecell found at pos %d\n", pos);
-            );
-    
-    /* Store information */
-    qfits_memory_p_val[pos] = pointer ;
-    qfits_memory_p_size[pos] = size ;
-
-    /* Filename and line number */
-#if (QFITS_MEMORY_DEBUG>=1)
-    qfits_memory_p_filename[pos] = filename ;
-    qfits_memory_p_lineno[pos] = lineno ;
-#endif
-    
-    qfits_memory_p_memtype[pos] = memtype ;
-    qfits_memory_p_swapfileid[pos] = swapfileid ;
-    qfits_memory_p_swapfd[pos] = swapfd ;
-    
-    if (mm_filename!=NULL) {
-        strncpy(qfits_memory_p_mm_filename[pos], mm_filename,MAPFILENAMESZ);
-        qfits_memory_p_mm_hash[pos] = qfits_memory_hash(mm_filename);
-        qfits_memory_p_mm_refcount[pos] = 1 ;
-    } else {
-        qfits_memory_p_mm_filename[pos][0] = 0 ;
-        qfits_memory_p_mm_hash[pos] = 0 ;
-        qfits_memory_p_mm_refcount[pos] = 0 ;
-    }
-    qfits_memory_table.ncells ++ ;
-    if (qfits_memory_table.ncells > qfits_memory_table.max_cells)
-        qfits_memory_table.max_cells = qfits_memory_table.ncells ;
-    return pos ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Remove a memory cell from the xtended memory table.
-  @param    pos     Position of the pointer in the table.
-  @return   int 0 if Ok, -1 if error occurred.
-
-  Remove the specified cell in qfits_memory_table. 
-  This call is not protected against illegal parameter values, so make sure 
-  the passed values are correct!
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_memory_remcell(int pos)
-{
-    qfits_mem_debug(
-        fprintf(stderr, "qfits_mem: removing cell from pos %d (cached)\n", pos);
-    );
-    /* Set pointer to NULL */
-    qfits_memory_p_val[pos] = NULL ;
-    /* Decrement number of allocated pointers */
-    qfits_memory_table.ncells -- ;
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Dump a memory cell to an open file pointer.
-  @param    cell    Cell to dump.
-  @param    out     Open file pointer to dump to.
-  @return   void
-
-  This function is meant for debugging purposes only. It takes in input a
-  pointer to a memory cell and dumps it to the requested file pointer (it
-  is Ok to provide stdout or stderr as file pointers). If the passed
-  position is invalid or the table pointer is NULL, this function returns
-  immediately.
- */
-/*----------------------------------------------------------------------------*/
-static void qfits_memory_dumpcell(
-        int         pos, 
-        FILE    *   out)
-{
-    if (pos<0 || pos>=QFITS_MEMORY_MAXPTRS) return ;
-    if (qfits_memory_p_val[pos]==NULL) return ;
-
-    if (qfits_memory_p_memtype[pos] == MEMTYPE_MMAP) {
-#if (QFITS_MEMORY_DEBUG>=1)
-        fprintf(out,
-            "M(%p) - %s (%d) maps [%s] for %ld bytes",
-            qfits_memory_p_val[pos],
-            qfits_memory_p_filename[pos],
-            qfits_memory_p_lineno[pos],
-            qfits_memory_p_mm_filename[pos],
-            (long)qfits_memory_p_size[pos]);
-#else
-        fprintf(out,
-            "M(%p) maps [%s] for %ld bytes",
-            qfits_memory_p_val[pos],
-            qfits_memory_p_mm_filename[pos],
-            (long)qfits_memory_p_size[pos]);
-#endif
-    } else {
-#if (QFITS_MEMORY_DEBUG>=1)
-        fprintf(out, "%c(%p) - %s (%d) for %ld bytes",
-            qfits_memory_p_memtype[pos],
-            qfits_memory_p_val[pos],
-            qfits_memory_p_filename[pos],
-            qfits_memory_p_lineno[pos],
-            (long)qfits_memory_p_size[pos]);
-#else
-        fprintf(out, "%c(%p) for %ld bytes",
-            qfits_memory_p_memtype[pos],
-            qfits_memory_p_val[pos],
-            (long)qfits_memory_p_size[pos]);
-#endif
-    }
-    if (qfits_memory_p_memtype[pos]==MEMTYPE_SWAP) {
-        fprintf(out, " swf[%s][%d]",
-                qfits_memory_tmpfilename(qfits_memory_p_swapfileid[pos]),
-                qfits_memory_p_swapfd[pos]);
-    }
-    fprintf(out, "\n");
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Compute filename associated to a temporary file ID.
-  @param    reg     Registration number of temporary file name.
-  @return   pointer to statically allocated char string.
-
-  This function computes the valid file name associated to a temporary file
-  ID. It computes the result, stores it in an internal static string and
-  returns a pointer to it.
- */
-/*----------------------------------------------------------------------------*/
-static char * qfits_memory_tmpfilename(int reg)
-{
-    static char qfits_mem_tmpfilename[TMPFILENAMESZ] ;
-    /* Create file name using tmp directory as a base */
-    sprintf(qfits_mem_tmpfilename, "%s/vmswap_%05ld_%05x", 
-            qfits_memory_tmpdirname, (long)getpid(), reg) ;
-    return qfits_mem_tmpfilename ;
-}
diff --git a/libqfits/src/qfits_memory.h b/libqfits/src/qfits_memory.h
deleted file mode 100644
index 5ef2716..0000000
--- a/libqfits/src/qfits_memory.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/* $Id: qfits_memory.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_MEMORY_H
-#define QFITS_MEMORY_H
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-/*-----------------------------------------------------------------------------
-                                   Defines
- -----------------------------------------------------------------------------*/
-
-#define qfits_malloc(s)         qfits_memory_malloc(s,      __FILE__,__LINE__)
-#define qfits_calloc(n,s)       qfits_memory_calloc(n,s,    __FILE__,__LINE__)
-#define qfits_realloc(p,s)      qfits_memory_realloc(p,s,   __FILE__,__LINE__)
-#define qfits_free(p)           qfits_memory_free(p,        __FILE__,__LINE__)
-#define qfits_strdup(s)         qfits_memory_strdup(s,      __FILE__,__LINE__)
-#define qfits_falloc(f,o,s)     qfits_memory_falloc(f,o,s,  __FILE__,__LINE__)
-#define qfits_fdealloc(f,o,s)   qfits_memory_fdealloc(f,o,s,__FILE__,__LINE__)
-
-/*-----------------------------------------------------------------------------
-                               Function prototypes
- -----------------------------------------------------------------------------*/
-
-/* *********************************************************************** */
-/* These functions have to be called by the assiciated macro defined above */
-void * qfits_memory_malloc(size_t, const char *, int) ;
-void * qfits_memory_calloc(size_t, size_t, const char *, int) ;
-void * qfits_memory_realloc(void *, size_t, const char *, int) ;
-void   qfits_memory_free(void *, const char *, int) ;
-char * qfits_memory_strdup(const char *, const char *, int) ;
-char * qfits_memory_falloc(char *, size_t, size_t *, const char *, int) ;
-void qfits_memory_fdealloc(void *, size_t, size_t, const char *, int) ;
-/* *********************************************************************** */
-
-void qfits_memory_status(void) ;
-int qfits_memory_is_empty(void) ;
-
-#endif
diff --git a/libqfits/src/qfits_rw.c b/libqfits/src/qfits_rw.c
deleted file mode 100644
index 4e166a3..0000000
--- a/libqfits/src/qfits_rw.c
+++ /dev/null
@@ -1,522 +0,0 @@
-/* $Id: qfits_rw.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#include "qfits_rw.h"
-
-#include "qfits_cache.h"
-#include "qfits_card.h"
-#include "qfits_std.h"
-#include "qfits_tools.h"
-#include "qfits_error.h"
-#include "qfits_memory.h"
-
-/*-----------------------------------------------------------------------------
-                                Define
- -----------------------------------------------------------------------------*/
-
-/* FITS magic number */
-#define FITS_MAGIC            "SIMPLE"
-/* Size of the FITS magic number */
-#define FITS_MAGIC_SZ        6
-
-/*-----------------------------------------------------------------------------
-                        Private to this module  
- -----------------------------------------------------------------------------*/
-
-static int is_blank_line(const char *) ;
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_rw    FITS header reading/writing
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                            Function codes
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Read a FITS header from a file to an internal structure.
-  @param    filename    Name of the file to be read
-  @return   Pointer to newly allocated qfits_header or NULL in error case.
-
-  This function parses a FITS (main) header, and returns an allocated
-  qfits_header object. The qfits_header object contains a linked-list of
-  key "tuples". A key tuple contains:
-
-  - A keyword
-  - A value
-  - A comment
-  - An original FITS line (as read from the input file)
-
-  Direct access to the structure is not foreseen, use accessor
-  functions in fits_h.h
-
-  Value, comment, and original line might be NULL pointers.
- */
-/*----------------------------------------------------------------------------*/
-qfits_header * qfits_header_read(const char * filename)
-{
-    /* Forward job to readext */
-    return qfits_header_readext(filename, 0);
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Read a FITS header from a 'hdr' file.
-  @param    filename    Name of the file to be read
-  @return   Pointer to newly allocated qfits_header or NULL in error case
-
-  This function parses a 'hdr' file, and returns an allocated qfits_header 
-  object. A hdr file is an ASCII format were the header is written with a 
-  carriage return after each line. The command dfits typically displays 
-  a hdr file.
- */
-/*----------------------------------------------------------------------------*/
-qfits_header * qfits_header_read_hdr(const char * filename)
-{
-    qfits_header    *   hdr ;
-    FILE            *   in ;
-    char                line[81];
-    char            *   key,
-                    *   val,
-                    *   com ;
-    int                 i, j ;
-
-    /* Check input */
-    if (filename==NULL) return NULL ;
-
-    /* Initialise */
-    key = val = com = NULL ; 
-
-    /* Open the file */
-    if ((in=fopen(filename, "r"))==NULL) {
-        qfits_error("cannot read [%s]", filename) ;
-        return NULL ;
-    }
-    
-    /* Create the header */
-    hdr = qfits_header_new() ;
-    
-    /* Go through the file */
-    while (fgets(line, 81, in)!=NULL) {
-        for (i=0 ; i<81 ; i++) {
-            if (line[i] == '\n') {
-                for (j=i ; j<81 ; j++) line[j] = ' ' ;
-                line[80] = (char)0 ;
-                break ;
-            }
-        }
-        if (!strcmp(line, "END")) {
-            line[3] = ' ';
-            line[4] = (char)0 ;
-        }
-        
-        /* Rule out blank lines */
-        if (!is_blank_line(line)) {
-
-            /* Get key, value, comment for the current line */
-            key = qfits_getkey(line);
-            val = qfits_getvalue(line);
-            com = qfits_getcomment(line);
-
-            /* If key or value cannot be found, trigger an error */
-            if (key==NULL) {
-                qfits_header_destroy(hdr);
-                fclose(in) ;
-                return NULL ;
-            }
-            /* Append card to linked-list */
-            qfits_header_append(hdr, key, val, com, NULL);
-        }
-    }
-    fclose(in) ;
-
-    /* The last key should be 'END' */
-    if (strlen(key)!=3) {
-        qfits_header_destroy(hdr);
-        return NULL ;
-    } 
-    if (key[0]!='E' || key[1]!='N' || key[2]!='D') {
-        qfits_header_destroy(hdr);
-        return NULL ;
-    }
-    
-    return hdr ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Read a FITS header from a 'hdr' string
-  @param    hdr_str         String containing the hdr file
-  @param    nb_char         Number of characters in the string
-  @return   Pointer to newly allocated qfits_header or NULL in error case
-
-  This function parses a 'hdr' string, and returns an allocated qfits_header 
-  object. 
- */
-/*----------------------------------------------------------------------------*/
-qfits_header * qfits_header_read_hdr_string(
-        const unsigned char *   hdr_str,
-        int                     nb_char)
-{
-    qfits_header    *   hdr ;
-    char                line[81];
-    char            *   key,
-                    *   val,
-                    *   com ;
-    int                 ind ;
-    int                 i, j ;
-
-    /* Check input */
-    if (hdr_str==NULL) return NULL ;
-
-    /* Initialise */
-    key = val = com = NULL ; 
-
-    /* Create the header */
-    hdr = qfits_header_new() ;
-    
-    /* Go through the file */
-    ind = 0 ;
-    while (ind <= nb_char - 80) {
-        strncpy(line, (char*)hdr_str + ind, 80) ;
-        line[80] = (char)0 ;
-        for (i=0 ; i<81 ; i++) {
-            if (line[i] == '\n') {
-                for (j=i ; j<81 ; j++) line[j] = ' ' ;
-                line[80] = (char)0 ;
-                break ;
-            }
-        }
-        if (!strcmp(line, "END")) {
-            line[3] = ' ';
-            line[4] = (char)0 ;
-        }
-        
-        /* Rule out blank lines */
-        if (!is_blank_line(line)) {
-
-            /* Get key, value, comment for the current line */
-            key = qfits_getkey(line);
-            val = qfits_getvalue(line);
-            com = qfits_getcomment(line);
-
-            /* If key or value cannot be found, trigger an error */
-            if (key==NULL) {
-                qfits_header_destroy(hdr);
-                return NULL ;
-            }
-            /* Append card to linked-list */
-            qfits_header_append(hdr, key, val, com, NULL);
-        }
-        ind += 80 ;
-    }
-
-    /* The last key should be 'END' */
-    if (strlen(key)!=3) {
-        qfits_header_destroy(hdr);
-        return NULL ;
-    } 
-    if (key[0]!='E' || key[1]!='N' || key[2]!='D') {
-        qfits_header_destroy(hdr);
-        return NULL ;
-    }
-    
-    return hdr ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Read an extension header from a FITS file.
-  @param    filename    Name of the FITS file to read
-  @param    xtnum       Extension number to read, starting from 0.
-  @return   Newly allocated qfits_header structure.
-
-  Strictly similar to qfits_header_read() but reads headers from
-  extensions instead. If the requested xtension is 0, this function
-  returns the main header.
-
-  Returns NULL in case of error.
- */
-/*----------------------------------------------------------------------------*/
-qfits_header * qfits_header_readext(const char * filename, int xtnum)
-{
-    qfits_header*   hdr ;
-    int             n_ext ;
-    char            line[81];
-    char        *   where ;
-    char        *   start ;
-    char        *   key,
-                *   val,
-                *   com ;
-    int             seg_start ;
-    int             seg_size ;
-    size_t          size ;
-
-    /* Check input */
-    if (filename==NULL || xtnum<0)
-        return NULL ;
-
-    /* Check that there are enough extensions */
-    if (xtnum>0) {
-        n_ext = qfits_query_n_ext(filename);
-        if (xtnum>n_ext) {
-            return NULL ;
-        }
-    }
-
-    /* Get offset to the extension header */
-    if (qfits_get_hdrinfo(filename, xtnum, &seg_start, &seg_size)!=0) {
-        return NULL ;
-    }
-
-    /* Memory-map the input file */
-    start = qfits_falloc((char *)filename, seg_start, &size) ;
-    if (start==NULL) return NULL ;
-
-    hdr   = qfits_header_new() ;
-    where = start ;
-    while (1) {
-        memcpy(line, where, 80);
-        line[80] = (char)0;
-
-        /* Rule out blank lines */
-        if (!is_blank_line(line)) {
-
-            /* Get key, value, comment for the current line */
-            key = qfits_getkey(line);
-            val = qfits_getvalue(line);
-            com = qfits_getcomment(line);
-
-            /* If key or value cannot be found, trigger an error */
-            if (key==NULL) {
-                qfits_header_destroy(hdr);
-                hdr = NULL ;
-                break ;
-            }
-            /* Append card to linked-list */
-            qfits_header_append(hdr, key, val, com, line);
-            /* Check for END keyword */
-            if (strlen(key)==3)
-                if (key[0]=='E' &&
-                    key[1]=='N' &&
-                    key[2]=='D')
-                    break ;
-        }
-        where += 80 ;
-        /* If reaching the end of file, trigger an error */
-        if ((int)(where-start)>=(int)(seg_size+80)) {
-            qfits_header_destroy(hdr);
-            hdr = NULL ;
-            break ;
-        }
-    }
-    qfits_fdealloc(start, seg_start, size) ;
-    return hdr ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Pad an existing file with zeros to a multiple of 2880.
-  @param    filename    Name of the file to pad.
-  @return   void
-
-  This function simply pads an existing file on disk with enough zeros
-  for the file size to reach a multiple of 2880, as required by FITS.
- */
-/*----------------------------------------------------------------------------*/
-void qfits_zeropad(const char * filename)
-{
-    struct stat sta ;
-    int         size ;
-    int         remaining;
-    FILE    *   out ;
-    char    *   buf;
-
-    if (filename==NULL) return ;
-
-    /* Get file size in bytes */
-    if (stat(filename, &sta)!=0) {
-        return ;
-    }
-    size = (int)sta.st_size ;
-    /* Compute number of zeros to pad */
-    remaining = size % FITS_BLOCK_SIZE ;
-    if (remaining==0) return ;
-    remaining = FITS_BLOCK_SIZE - remaining ;
-
-    /* Open file, dump zeros, exit */
-    if ((out=fopen(filename, "a"))==NULL)
-        return ;
-    buf = qfits_calloc(remaining, sizeof(char));
-    fwrite(buf, 1, remaining, out);
-    fclose(out);
-    qfits_free(buf);
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Identify if a file is a FITS file.
-  @param    filename name of the file to check
-  @return   int 0, 1, or -1
-
-  Returns 1 if the file name looks like a valid FITS file. Returns
-  0 else. If the file does not exist, returns -1.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_is_fits(const char * filename)
-{
-    FILE  *   fp ;
-    char  *   magic ;
-    int       isfits ;
-
-    if (filename==NULL) return -1 ;
-    if ((fp = fopen(filename, "r"))==NULL) {
-        qfits_error("cannot open file [%s]", filename) ;
-        return -1 ;
-    }
-
-    magic = qfits_calloc(FITS_MAGIC_SZ+1, sizeof(char)) ;
-    fread(magic, 1, FITS_MAGIC_SZ, fp) ;
-    fclose(fp) ;
-    magic[FITS_MAGIC_SZ] = (char)0 ;
-    if (strstr(magic, FITS_MAGIC)!=NULL)
-        isfits = 1 ;
-    else
-        isfits = 0 ;
-    qfits_free(magic) ;
-    return isfits ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Retrieve offset to start and size of a header in a FITS file.
-  @param    filename    Name of the file to examine
-  @param    xtnum       Extension number (0 for main)
-  @param    seg_start   Segment start in bytes (output)
-  @param    seg_size    Segment size in bytes (output)
-  @return   int 0 if Ok, -1 otherwise.
-
-  This function retrieves the two most important informations about
-  a header in a FITS file: the offset to its beginning, and the size
-  of the header in bytes. Both values are returned in the passed
-  pointers to ints. It is Ok to pass NULL for any pointer if you do
-  not want to retrieve the associated value.
-
-  You must provide an extension number for the header, 0 meaning the
-  main header in the file.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_get_hdrinfo(
-        const char  *   filename,
-        int             xtnum,
-        int         *   seg_start,
-        int         *   seg_size)
-{
-    if (filename==NULL || xtnum<0 || (seg_start==NULL && seg_size==NULL)) {
-        return -1 ;
-    }
-    if (seg_start!=NULL) {
-        *seg_start = qfits_query(filename, QFITS_QUERY_HDR_START | xtnum);
-        if (*seg_start<0)
-            return -1 ;
-    }
-    if (seg_size!=NULL) {
-        *seg_size = qfits_query(filename, QFITS_QUERY_HDR_SIZE | xtnum);
-        if (*seg_size<0)
-            return -1 ;
-    }
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Retrieve offset to start and size of a data section in a file.
-  @param    filename    Name of the file to examine.
-  @param    xtnum       Extension number (0 for main).
-  @param    seg_start   Segment start in bytes (output).
-  @param    seg_size    Segment size in bytes (output).
-  @return   int 0 if Ok, -1 otherwise.
-
-  This function retrieves the two most important informations about
-  a data section in a FITS file: the offset to its beginning, and the size
-  of the section in bytes. Both values are returned in the passed
-  pointers to ints. It is Ok to pass NULL for any pointer if you do
-  not want to retrieve the associated value.
-
-  You must provide an extension number for the header, 0 meaning the
-  main header in the file.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_get_datinfo(
-        const char  *   filename,
-        int             xtnum, 
-        int         *   seg_start,
-        int         *   seg_size)
-{
-    if (filename==NULL || xtnum<0 || (seg_start==NULL && seg_size==NULL)) {
-        return -1 ;
-    }
-    if (seg_start!=NULL) {
-        *seg_start = qfits_query(filename, QFITS_QUERY_DAT_START | xtnum);
-        if (*seg_start<0)
-            return -1 ;
-    }
-    if (seg_size!=NULL) {
-        *seg_size = qfits_query(filename, QFITS_QUERY_DAT_SIZE | xtnum);
-        if (*seg_size<0)
-            return -1 ;
-    }
-    return 0 ;  
-}
-
-/**@}*/
-
-static int is_blank_line(const char * s)
-{
-    int     i ;
-
-    for (i=0 ; i<(int)strlen(s) ; i++) {
-        if (s[i]!=' ') return 0 ;
-    }
-    return 1 ;
-}   
diff --git a/libqfits/src/qfits_rw.h b/libqfits/src/qfits_rw.h
deleted file mode 100644
index f7b36af..0000000
--- a/libqfits/src/qfits_rw.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/* $Id: qfits_rw.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_RW_H
-#define QFITS_RW_H
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include "qfits_header.h"
-
-/*-----------------------------------------------------------------------------
-                        Function ANSI prototypes
- -----------------------------------------------------------------------------*/
-
-qfits_header * qfits_header_read(const char *) ;
-qfits_header * qfits_header_read_hdr(const char *) ;
-qfits_header * qfits_header_read_hdr_string(const unsigned char *, int) ;
-qfits_header * qfits_header_readext(const char *, int) ;
-void qfits_zeropad(const char *) ;
-int qfits_is_fits(const char *) ;
-int qfits_get_hdrinfo(const char *, int, int *, int *) ;
-int qfits_get_datinfo(const char *, int, int *, int *) ;
-
-#endif
diff --git a/libqfits/src/qfits_std.h b/libqfits/src/qfits_std.h
deleted file mode 100644
index 575aea1..0000000
--- a/libqfits/src/qfits_std.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/* $Id: qfits_std.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_STD_H
-#define QFITS_STD_H
-
-/*-----------------------------------------------------------------------------
-                                   Defines
- -----------------------------------------------------------------------------*/
-
-/* FITS header constants */
-
-/** FITS block size */
-#define FITS_BLOCK_SIZE     (2880)
-/** FITS number of cards per block */
-#define FITS_NCARDS         (36)
-/** FITS size of each line in bytes */
-#define FITS_LINESZ         (80)
-
-#endif
diff --git a/libqfits/src/qfits_table.c b/libqfits/src/qfits_table.c
deleted file mode 100644
index 8b1b056..0000000
--- a/libqfits/src/qfits_table.c
+++ /dev/null
@@ -1,2425 +0,0 @@
-/* $Id: qfits_table.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <ctype.h>
-
-#include "config.h"
-
-#include "qfits_table.h"
-
-#include "qfits_float.h"
-#include "qfits_std.h"
-#include "qfits_byteswap.h"
-#include "qfits_tools.h"
-#include "qfits_time.h"
-#include "qfits_rw.h"
-#include "qfits_md5.h"
-#include "qfits_error.h"
-#include "qfits_memory.h"
-
-/*-----------------------------------------------------------------------------
-                                   Define
- -----------------------------------------------------------------------------*/
-
-#define ELEMENT_MAX_DISPLAY_SIZE    50
-
-/*-----------------------------------------------------------------------------
-                               Function prototypes
- -----------------------------------------------------------------------------*/
-
-static char * qfits_bintable_field_to_string(const qfits_table *, int, int,int);
-static char * qfits_asciitable_field_to_string(const qfits_table *, int, int, 
-        int) ;
-static char * qfits_build_format(const qfits_col *) ;
-static int qfits_table_append_bin_xtension(FILE *, const qfits_table *, 
-        const void **) ;
-static int qfits_table_append_ascii_xtension(FILE *, const qfits_table *, 
-        const void **) ;
-static int qfits_table_append_data(FILE *, const qfits_table *, const void **) ;
-static int qfits_table_get_field_size(int, const qfits_col *) ;
-static int qfits_table_interpret_type(const char *, int *, int*, tfits_type *, 
-        int) ;
-static char * qfits_strstrip(const char *);
-static double qfits_str2dec(const char *, int) ;
-static int qfits_compute_table_width(const qfits_table *) ;
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_table FITS table handling 
- *
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                              Function codes
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Identify a file as containing a FITS table in extension.
-  @param    filename    Name of the FITS file to examine.
-  @param    xtnum        Extension number to check (starting from 1).
-  @return    int 1 if the extension contains a table, 0 else.
-  Examines the requested extension and identifies the presence of a FITS table.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_is_table(const char * filename, int xtnum)
-{
-    char    *    value ;
-    int            ttype ;
-    
-    ttype = QFITS_INVALIDTABLE ;
-    value = qfits_query_ext(filename, "XTENSION", xtnum);
-    if (value==NULL) return ttype ;
-    
-    value = qfits_pretty_string(value);
-    if (!strcmp(value, "TABLE")) {
-        ttype = QFITS_ASCIITABLE;
-    } else if (!strcmp(value, "BINTABLE")) {
-        ttype = QFITS_BINTABLE;
-    }
-    return ttype;
-}    
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Generate a default primary header to store tables     
-  @return    the header object    
- */
-/*----------------------------------------------------------------------------*/
-qfits_header * qfits_table_prim_header_default(void)
-{
-    qfits_header    *    fh ;
-
-    fh = qfits_header_new() ;
-
-    qfits_header_append(fh, "SIMPLE", "T", "Standard FITS file", NULL) ;
-    qfits_header_append(fh, "BITPIX", "8", "ASCII or bytes array", NULL) ;
-    qfits_header_append(fh, "NAXIS", "0", "Minimal header", NULL) ;
-    qfits_header_append(fh, "EXTEND", "T", "There may be FITS ext", NULL);
-    qfits_header_append(fh, "END", NULL, NULL, NULL) ;
-
-    return fh ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Generate a default extension header to store tables
-  @return   the header object
- */
-/*----------------------------------------------------------------------------*/
-qfits_header * qfits_table_ext_header_default(const qfits_table * t) 
-{
-    qfits_header    *   fh ;
-    qfits_col       *   curr_col ;
-    char                str_val[FITS_LINESZ] ;
-    char                str_val2[FITS_LINESZ] ;
-    char            *   date ;
-    int                 tab_width ;
-    int                 col_pos ;
-    int                 i ;
-
-    /* Compute the table width   */
-    if ((tab_width = qfits_compute_table_width(t)) == -1) {
-        qfits_error("cannot get the table width") ;
-        return NULL ;
-    }
-
-    /* Create fits header */
-    if ((fh=qfits_header_new()) == NULL) {
-        qfits_error("cannot create new fits header") ;
-        return NULL ;
-    }
-
-    /* Check the kind of table */
-    if (t->tab_t == QFITS_BINTABLE) {
-       
-        /* Write extension header */
-        qfits_header_append(fh, "XTENSION", "BINTABLE", 
-                "FITS Binary Table Extension", NULL) ;
-        qfits_header_append(fh, "BITPIX", "8", "8-bits character format", NULL);
-        qfits_header_append(fh, "NAXIS", "2","Tables are 2-D char. array",NULL);
-        sprintf(str_val, "%d", tab_width) ;
-        qfits_header_append(fh, "NAXIS1", str_val, "Bytes in row", NULL) ;
-        sprintf(str_val, "%d", (int)(t->nr)) ;        
-        qfits_header_append(fh, "NAXIS2", str_val, "No. of rows in table",NULL);
-        qfits_header_append(fh, "PCOUNT", "0", "Parameter count always 0",NULL);
-        qfits_header_append(fh, "GCOUNT", "1", "Group count always 1", NULL);
-        sprintf(str_val, "%d", (int)(t->nc)) ;
-        qfits_header_append(fh, "TFIELDS", str_val, "No. of col in table",NULL);
-        /* Columns descriptors */
-        curr_col = t->col ;
-        for (i=0 ; i<t->nc ; i++) {
-            sprintf(str_val, "TFORM%d", i+1) ;
-            sprintf(str_val2, "'%s'", qfits_build_format(curr_col)) ;
-            qfits_header_append(fh, str_val, str_val2, "Format of field", NULL);
-                    
-            sprintf(str_val, "TTYPE%d", i+1) ;
-            sprintf(str_val2, "%s", curr_col->tlabel) ;
-            qfits_header_append(fh, str_val, str_val2, "Field label", NULL) ;
-
-            sprintf(str_val, "TUNIT%d", i+1) ;
-            sprintf(str_val2, "%s", curr_col->tunit) ;
-            qfits_header_append(fh, str_val, str_val2, "Physical unit of field",
-                    NULL) ;    
-            if (curr_col->zero_present) {
-                sprintf(str_val, "TZERO%d", i+1) ;
-                sprintf(str_val2, "%f", curr_col->zero) ;
-                qfits_header_append(fh, str_val, str_val2, 
-                        "NULL value is defined", NULL) ;
-            }
-            if (curr_col->scale_present) {
-                sprintf(str_val, "TSCAL%d", i+1) ;
-                sprintf(str_val2, "%f", curr_col->scale) ;
-                qfits_header_append(fh, str_val, str_val2, "Scaling applied", 
-                        NULL);
-            }
-            curr_col++ ;
-        }
-        qfits_header_append(fh,"ORIGIN","ESO-QFITS", "Written by QFITS", NULL);
-
-        date = qfits_get_datetime_iso8601() ;
-        sprintf(str_val, "'%s'", date) ;
-        qfits_header_append(fh, "DATE", str_val, "[UTC] Date of writing", NULL);
-        qfits_header_append(fh, "END", NULL, NULL, NULL);
-    
-    } else if (t->tab_t == QFITS_ASCIITABLE) {
-    
-        /* Write extension header */
-        qfits_header_append(fh, "XTENSION", "TABLE",
-                        "FITS ASCII Table Extension", NULL) ;
-        qfits_header_append(fh, "BITPIX", "8", "8-bits character format", NULL);
-        qfits_header_append(fh, "NAXIS", "2", "ASCII table has 2 axes", NULL) ;
-               
-        /* Fill the header  */
-        sprintf(str_val, "%d", tab_width) ;
-        qfits_header_append(fh, "NAXIS1", str_val, "Characters in a row", NULL);
-        sprintf(str_val, "%d", (int)(t->nr)) ;        
-        qfits_header_append(fh, "NAXIS2", str_val, "No. of rows in table",NULL);
-        qfits_header_append(fh, "PCOUNT", "0", "No group parameters", NULL) ;    
-        qfits_header_append(fh, "GCOUNT", "1", "Only one group", NULL);
-        sprintf(str_val, "%d", (int)(t->nc)) ;
-        qfits_header_append(fh, "TFIELDS", str_val, "No. of col in table",NULL);
-        qfits_header_append(fh, "ORIGIN","ESO-QFITS","Written by QFITS",NULL);
-        date = qfits_get_datetime_iso8601() ;
-        sprintf(str_val, "'%s'", date) ;
-        qfits_header_append(fh, "DATE", str_val, "[UTC] Date of writing", NULL);
-
-        /* Columns descriptors */
-        curr_col = t->col ;
-        col_pos = 1 ;
-        for (i=0 ; i<t->nc ; i++) {
-            sprintf(str_val, "TTYPE%d", i+1) ;
-            sprintf(str_val2, "%s", curr_col->tlabel) ;
-            qfits_header_append(fh, str_val, str_val2, "Field label", NULL) ;
-            
-            sprintf(str_val, "TFORM%d", i+1) ;
-            sprintf(str_val2, "'%s'", qfits_build_format(curr_col)) ;
-            qfits_header_append(fh, str_val, str_val2, "Format of field", NULL);
-                    
-            sprintf(str_val, "TBCOL%d", i+1) ;
-            sprintf(str_val2, "%d", col_pos) ;
-            qfits_header_append(fh, str_val, str_val2,"Start column of field",
-                    NULL);
-            col_pos += curr_col->atom_nb ;
-            
-            sprintf(str_val, "TUNIT%d", i+1) ;
-            sprintf(str_val2, "%s", curr_col->tunit) ;
-            qfits_header_append(fh, str_val, str_val2, "Physical unit of field",
-                    NULL) ;    
-            if (curr_col->zero_present) {
-                sprintf(str_val, "TZERO%d", i+1) ;
-                sprintf(str_val2, "%f", curr_col->zero) ;
-                qfits_header_append(fh, str_val, str_val2, 
-                        "NULL value is defined", NULL) ;
-            }
-            if (curr_col->scale_present) {
-                sprintf(str_val, "TSCAL%d", i+1) ;
-                sprintf(str_val2, "%f", curr_col->scale) ;
-                qfits_header_append(fh, str_val, str_val2, "Scaling applied", 
-                        NULL);
-            }
-            curr_col++ ;
-        }
-        qfits_header_append(fh, "END", NULL, NULL, NULL);
-
-    } else {
-        qfits_error("Table type not known") ;
-        qfits_header_destroy(fh) ;
-        return NULL ;
-    }
-    return fh ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Table object constructor
-  @param    filename    Name of the FITS file associated to the table
-  @param    table_type    Type of the table (QFITS_ASCIITABLE or QFITS_BINTABLE)
-  @param    table_width Width in bytes of the table
-  @param    nb_cols        Number of columns
-  @param    nb_raws        Number of raws
-  @return    The table object
-  The columns are also allocated. The object has to be deallocated with 
-  qfits_table_close()
- */
-/*----------------------------------------------------------------------------*/
-qfits_table * qfits_table_new(
-        const char  *   filename,
-        int             table_type,
-        int             table_width,
-        int             nb_cols,
-        int             nb_raws)
-{
-    qfits_table    *    qt ;
-    qt = qfits_malloc(sizeof(qfits_table)) ;
-    (void)strcpy(qt->filename, filename) ;
-    qt->tab_t = table_type ;
-    qt->nc = nb_cols ;
-    qt->nr = nb_raws ;
-    qt->col = qfits_calloc(qt->nc, sizeof(qfits_col)) ;
-    qt->tab_w = table_width ;
-    
-    return qt ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Fill a column object with some provided informations
-  @param    qc      Pointer to the column that has to be filled
-  @param    unit    Unit of the data 
-  @param    label   Label of the column 
-  @param    disp    Way to display the data 
-  @param    nullval Null value
-  @param    atom_nb Number of atoms per field. According to the type, an atom 
-                      is a double, an int, a char, ... 
-  @param    atom_dec_nb Number of decimals as specified in TFORM 
-  @param    atom_size    Size in bytes of the field for ASCII tables, and of 
-                          an atom for BIN tables. ASCII tables only contain 1 
-                        atom per field (except for A type where you can of
-                        course have more than one char per field)
-  @param    atom_type    Type of data (11 types for BIN, 5 for ASCII)
-  @param    zero_present    Flag to use or not zero
-  @param    zero            Zero value
-  @param    scale_present   Flag to use or not scale
-  @param    scale           Scale value
-  @param    offset_beg  Gives the position of the column
-  @return     -1 in error case, 0 otherwise
- */
-/*----------------------------------------------------------------------------*/
-int qfits_col_fill(
-        qfits_col   *   qc,
-        int             atom_nb,
-        int             atom_dec_nb,
-        int             atom_size,
-        tfits_type      atom_type,
-        const char  *   label,
-        const char  *   unit,
-        const char  *   nullval,
-        const char  *   disp,
-        int             zero_present,
-        float           zero,
-        int             scale_present,
-        float           scale,
-        int             offset_beg)
-{
-    /* Number of atoms per column */
-    qc->atom_nb = atom_nb ;
-   
-    /* Number of decimals in a field in ASCII table (0 in BINTABLE) */
-    qc->atom_dec_nb = atom_dec_nb ;
-    
-    /* Size in bytes of an atom  */
-    qc->atom_size = atom_size ;
-    
-    /* Data type in the column */
-    qc->atom_type = atom_type ;
-    
-    /* Label of the column */
-    (void)strcpy(qc->tlabel, label) ;
-   
-    /* Unit of the column data */
-    (void)strcpy(qc->tunit, unit) ;
-    
-    /* Null value*/
-    (void)strcpy(qc->nullval, nullval) ;
-
-    /* How to display the data */
-    (void)strcpy(qc->tdisp, disp) ;
-
-    /* Default values for zero and scales */
-    qc->zero_present = zero_present ;
-    qc->scale_present = scale_present ;
-    qc->zero = zero ;
-    qc->scale = scale ;
-
-    /* Number of bytes between two consecutive fields of the same column */
-    qc->off_beg = offset_beg ;
-    
-    /* A column is a priori readable */
-    qc->readable = 1 ;
-
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Read a FITS extension.
-  @param    filename    Name of the FITS file to examine.
-  @param    xtnum        Extension number to read (starting from 1).
-  @return    Pointer to newly allocated qfits_table structure.
-
-  Read a FITS table from a given file name and extension, and return a
-  newly allocated qfits_table structure. 
- */
-/*----------------------------------------------------------------------------*/
-qfits_table * qfits_table_open(
-        const char  *   filename, 
-        int             xtnum)
-{
-    qfits_table     *   tload ;
-    qfits_col       *   curr_col ;
-    char            *   str_val ;
-    char                keyword[FITSVALSZ] ;
-    /* Table infos  */
-    int                 table_type ;
-    int                 nb_col ;
-    int                 table_width ;
-    int                 nb_raws ;
-    /* Column infos */
-    char                label[FITSVALSZ] ;
-    char                unit[FITSVALSZ] ;
-    char                disp[FITSVALSZ] ;
-    char                nullval[FITSVALSZ] ;
-    int                 atom_nb ;
-    int                 atom_dec_nb ;
-    int                 atom_size ;
-    tfits_type          atom_type ;
-    int                 offset_beg ;
-    int                 data_size ;
-    int                 theory_size ;
-    int                 zero_present ;
-    int                 scale_present ;
-    float               zero ;
-    float               scale ;
-    
-    /* For ASCII tables */
-    int                    col_pos ;    
-    int                    next_col_pos ;
-    
-    /* For X type */
-    int                    nb_bits ;
-        
-    int                    i ;
-    
-     /* See if 'filename' is a fits file  */
-    if (qfits_is_fits(filename) != 1) {
-        qfits_error("[%s] is not FITS", filename) ;
-        return NULL ;
-    }
-        
-    /* Identify a table and get the table type : ASCII or BIN */
-    if ((table_type = qfits_is_table(filename, xtnum))==0) {
-        qfits_error("[%s] extension %d is not a table", filename, xtnum) ;
-        return NULL ;
-    }
-    
-    /* Get number of columns and allocate them: nc <-> TFIELDS */
-    if ((str_val = qfits_query_ext(filename, "TFIELDS", xtnum)) == NULL) {
-        qfits_error("cannot read TFIELDS in [%s]:[%d]", filename, xtnum) ;
-        return NULL ;
-    }
-    nb_col = atoi(str_val) ;
-
-    /* Get the width in bytes of the table */
-    if ((str_val = qfits_query_ext(filename, "NAXIS1", xtnum)) == NULL) {
-        qfits_error("cannot read NAXIS1 in [%s]:[%d]", filename, xtnum) ;
-        return NULL ;
-    }
-    table_width = atoi(str_val) ;
-    
-    /* Get the number of raws */
-    if ((str_val = qfits_query_ext(filename, "NAXIS2", xtnum)) == NULL) {
-        qfits_error("cannot read NAXIS2 in [%s]:[%d]", filename, xtnum) ;
-        return NULL ;
-    }
-    nb_raws = atoi(str_val) ;
-
-    /* Create the table object */
-    tload = qfits_table_new(filename, table_type, table_width, nb_col, nb_raws);
-    
-    /* Initialize offset_beg */
-    if (qfits_get_datinfo(filename, xtnum, &offset_beg, &data_size)!=0) {
-        qfits_error("cannot find data start in [%s]:[%d]", filename, xtnum);
-        qfits_table_close(tload);
-        return NULL ;
-    }
-    
-    /* Loop on all columns and get column descriptions  */
-    curr_col = tload->col ;
-    for (i=0 ; i<tload->nc ; i++) {
-        /* label <-> TTYPE     */
-        sprintf(keyword, "TTYPE%d", i+1) ;
-        if ((str_val=qfits_query_ext(filename, keyword, xtnum)) == NULL) {
-            label[0] = (char)0 ;
-        } else strcpy(label, qfits_pretty_string(str_val)) ;
-        
-        /* unit <-> TUNIT */
-        sprintf(keyword, "TUNIT%d", i+1) ;
-        if ((str_val=qfits_query_ext(filename, keyword, xtnum)) == NULL) {
-            unit[0] = (char)0 ;
-        } else strcpy(unit, qfits_pretty_string(str_val)) ;
-
-        /* disp <-> TDISP */
-        sprintf(keyword, "TDISP%d", i+1) ;
-        if ((str_val=qfits_query_ext(filename, keyword, xtnum)) == NULL) {
-            disp[0] = (char)0 ;
-        } else strcpy(disp, qfits_pretty_string(str_val)) ;
-
-        /* nullval <-> TNULL */
-        sprintf(keyword, "TNULL%d", i+1) ;
-        if ((str_val=qfits_query_ext(filename, keyword, xtnum)) == NULL) {
-            nullval[0] = (char)0 ;
-        } else strcpy(nullval, qfits_pretty_string(str_val)) ;
-    
-        /* atom_size, atom_nb, atom_dec_nb, atom_type    <-> TFORM */
-        sprintf(keyword, "TFORM%d", i+1) ;
-        if ((str_val=qfits_query_ext(filename, keyword, xtnum))==NULL) {
-            qfits_error("cannot read [%s] in [%s]:[%d]", keyword, filename, 
-                    xtnum);
-            qfits_table_close(tload);
-            return NULL ;
-        }
-        /* Interpret the type in header */
-        if (qfits_table_interpret_type(qfits_pretty_string(str_val), 
-                        &(atom_nb), 
-                        &(atom_dec_nb),
-                        &(atom_type), 
-                        table_type) == -1) {
-            qfits_error("cannot interpret the type: %s", str_val) ;
-            qfits_table_close(tload) ;
-            return NULL ;
-        }
-        
-        /* Set atom_size */
-        switch (atom_type) {
-            case TFITS_BIN_TYPE_A:
-            case TFITS_BIN_TYPE_L:
-            case TFITS_BIN_TYPE_B:
-                atom_size = 1 ;
-                break ;
-            case TFITS_BIN_TYPE_I:
-                atom_size = 2 ;
-                break ;
-            case TFITS_BIN_TYPE_J:
-            case TFITS_BIN_TYPE_E:
-            case TFITS_ASCII_TYPE_I:
-            case TFITS_ASCII_TYPE_E:
-            case TFITS_ASCII_TYPE_F:
-                atom_size = 4 ;
-                break ;
-            case TFITS_BIN_TYPE_C:
-            case TFITS_BIN_TYPE_P:
-                atom_size = 4 ;
-                atom_nb *= 2 ;
-                break ;
-            case TFITS_BIN_TYPE_D:
-            case TFITS_ASCII_TYPE_D:
-                atom_size = 8 ;
-                break ;
-            case TFITS_BIN_TYPE_M:
-                atom_size = 8 ;
-                atom_nb *= 2 ;
-                break ;
-            case TFITS_BIN_TYPE_X:
-                atom_size = 1 ;
-                nb_bits = atom_nb ;
-                atom_nb = (int)((nb_bits - 1)/ 8) + 1 ;
-                break ;
-            case TFITS_ASCII_TYPE_A:
-                atom_size = atom_nb ;
-                break ;
-            default:
-                qfits_error("unrecognized type") ;
-                qfits_table_close(tload) ;
-                return NULL ;
-                break ;
-        }
-    
-        /* zero <-> TZERO */
-        sprintf(keyword, "TZERO%d", i+1) ;
-        if ((str_val=qfits_query_ext(filename, keyword, xtnum)) != NULL) {
-            zero = (float)atof(str_val) ;
-            zero_present = 1 ;    
-        } else {
-            zero = (float)0.0 ;
-            zero_present = 0 ;    
-        }
-        
-        /* scale <-> TSCAL */
-        sprintf(keyword, "TSCAL%d", i+1) ;
-        if ((str_val=qfits_query_ext(filename, keyword, xtnum)) != NULL) {
-            scale = (float)atof(str_val) ;
-            scale_present = 1 ;
-        } else {
-            scale = (float)1.0 ;
-            scale_present = 0 ;
-        }
-
-        /* Fill the current column object */
-        qfits_col_fill(curr_col, atom_nb, atom_dec_nb, atom_size, atom_type, 
-                label, unit, nullval, disp, zero_present, zero, scale_present, 
-                scale, offset_beg) ;
-        
-        /* Compute offset_beg but for the last column */
-        if (i < tload->nc - 1) {
-            if (table_type == QFITS_ASCIITABLE) {
-                /* column width <-> TBCOLi and TBCOLi+1 */
-                sprintf(keyword, "TBCOL%d", i+1) ;
-                if ((str_val=qfits_query_ext(filename, keyword, xtnum))==NULL) {
-                    qfits_error("cannot read [%s] in [%s]", keyword, filename);
-                    qfits_table_close(tload);
-                    return NULL ;
-                }
-                col_pos = atoi(qfits_pretty_string(str_val)) ;
-                
-                sprintf(keyword, "TBCOL%d", i+2) ;
-                if ((str_val=qfits_query_ext(filename, keyword, xtnum))==NULL){
-                    qfits_error("cannot read [%s] in [%s]", keyword, filename) ;
-                    qfits_table_close(tload) ;
-                    return NULL ;
-                }
-                next_col_pos = atoi(qfits_pretty_string(str_val)) ;
-                offset_beg += (int)(next_col_pos - col_pos) ;
-            } else if (table_type == QFITS_BINTABLE) {
-                offset_beg += atom_nb * atom_size ;
-            }
-        }
-        curr_col++ ;
-    }
-
-    /* Check that the theoritical data size is not far from the measured */
-    /* one by more than 2880 */
-    theory_size = qfits_compute_table_width(tload)*tload->nr ;
-    if (data_size < theory_size) {
-        qfits_error("Uncoherent data sizes") ;
-        qfits_table_close(tload) ;
-        return NULL ;
-    }
-    
-    /* Return  */
-    return tload ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Free a FITS table and associated pointers
-  @param    t qfits_table to free
-  @return    void
-  Frees all memory associated to a qfits_table structure.
- */
-/*----------------------------------------------------------------------------*/
-void qfits_table_close(qfits_table * t)
-{
-    if (t==NULL) return ;
-    if (t->nc>0) if (t->col!=NULL) qfits_free(t->col) ;
-    qfits_free(t);
-    return ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Extract data from a column in a FITS table
-  @param    th        Allocated qfits_table
-  @param    colnum    Number of the column to extract (from 0 to colnum-1)
-  @param    selection  boolean array to define the selected rows
-  @return    unsigned char array
-
-  If selection is NULL, select the complete column.
-  
-  Extract a column from a FITS table and return the data as a bytes 
-  array. The returned array type and size are determined by the
-  column object in the qfits_table and by the selection parameter.
-
-  Returned array size in bytes is:
-  nbselected * col->natoms * col->atom_size
-
-  Numeric types are correctly understood and byte-swapped if needed,
-  to be converted to the local machine type.
-
-  NULL values have to be handled by the caller.
-
-  The returned object must be deallocated with qfits_free().
- */
-/*----------------------------------------------------------------------------*/
-unsigned char * qfits_query_column(
-        const qfits_table   *   th,
-        int                     colnum,
-        const int           *   selection)
-{
-    char            *    start ;
-    qfits_col       *   col ;
-    int                    field_size ;
-    unsigned char   *   array ;
-    unsigned char   *   r ;
-    unsigned char   *   inbuf ;
-    int                 table_width ;
-    int                 nb_rows ;
-    size_t              size ;
-    int                 i ;
-   
-    if (th->tab_w == -1) {
-        /* Compute the table width in bytes */
-        if ((table_width = qfits_compute_table_width(th)) == -1) {
-            qfits_error("cannot compute the table width") ;
-            return NULL ;
-        }
-    } else table_width = th->tab_w ;
-   
-    /* Compute the number of selected rows */
-    nb_rows = 0 ;
-    if (selection == NULL) {
-        nb_rows = th->nr ;
-    } else {
-        for (i=0 ; i<th->nr ; i++) if (selection[i] == 1) nb_rows++ ;
-    }
-    
-    /* Pointer to requested column */
-    col = th->col + colnum ;
-
-    /* Test if column is empty */
-    if (nb_rows * col->atom_size * col->atom_nb == 0) col->readable = 0 ;
-    
-    /* Test if column is readable */
-    if (col->readable == 0)  return NULL ;
-
-    /* Compute the size in bytes of one field stored in the file */
-    if ((field_size=qfits_table_get_field_size(th->tab_t,col))==-1) return NULL;
-    
-    /* Load input file */
-    if ((start=qfits_falloc((char *)(th->filename), 0, &size))==NULL) {
-        qfits_error("cannot open table for query [%s]", th->filename);
-        return NULL ;
-    }
-   
-    /* Allocate data array */
-    array = qfits_malloc(nb_rows * field_size * sizeof(char)) ; 
-            
-    /* Position the input pointer at the begining of the column data */
-    r = array ;
-    inbuf = (unsigned char*)start + col->off_beg ;
-   
-    /* Copy the values in array */
-    if (selection == NULL) {
-        /* No selection : get the complete column */
-        for (i=0 ; i<th->nr ; i++) {
-            /* Copy all atoms on this field into array */
-            memcpy(r, inbuf, field_size);
-            r += field_size ;
-            /* Jump to next line */
-            inbuf += table_width ;
-        }
-    } else {
-        /* Get only the selected rows */
-        for (i=0 ; i<th->nr ; i++) {
-            if (selection[i] == 1) {
-                /* Copy all atoms on this field into array */
-                memcpy(r, inbuf, field_size);
-                r += field_size ;
-            }
-            /* Jump to next line */
-            inbuf += table_width ;
-        }
-    }
-    qfits_fdealloc(start, 0, size) ;
-
-    /* SWAP the bytes if necessary */
-#ifndef WORDS_BIGENDIAN
-    if (th->tab_t == QFITS_BINTABLE) {
-        r = array ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            qfits_swap_bytes(r, col->atom_size);
-            r += col->atom_size ;
-        }
-    }
-#endif
-
-     /* Return allocated and converted array */
-    return array ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Extract consequtive values from a column in a FITS table
-  @param    th        Allocated qfits_table
-  @param    colnum    Number of the column to extract (from 0 to colnum-1)
-  @param    start_ind   Index of the first row (0 for the first)
-  @param    nb_rows     Number of rows to extract
-  @return    unsigned char array
-  Does the same as qfits_query_column() but on a consequtive sequence of rows
-  Spares the overhead of the selection object allocation
-  The returned object must be deallocated with qfits_free().
- */
-/*----------------------------------------------------------------------------*/
-unsigned char * qfits_query_column_seq(
-        const qfits_table   *   th,
-        int                     colnum,
-        int                     start_ind,
-        int                     nb_rows)
-{
-    char            *   start ;
-    qfits_col       *   col ;
-    int                 field_size ;
-    unsigned char   *   array ;
-    unsigned char   *   r ;
-    unsigned char   *   inbuf ;
-    int                 table_width ;
-    size_t              size ;
-    int                 i ;
-   
-    if (th->tab_w == -1) {
-        /* Compute the table width in bytes */
-        if ((table_width = qfits_compute_table_width(th)) == -1) {
-            qfits_error("cannot compute the table width") ;
-            return NULL ;
-        }
-    } else table_width = th->tab_w ;
-  
-    /* Check the validity of start_ind and nb_rows */
-    if ((start_ind<0) || (start_ind+nb_rows>th->nr)) { 
-        qfits_error("bad start index and number of rows") ;
-        return NULL ;
-    }
-    
-    /* Pointer to requested column */
-    col = th->col + colnum ;
-
-    /* Test if column is empty */
-    if (nb_rows * col->atom_size * col->atom_nb == 0) col->readable = 0 ;
-    
-    /* Test if column is readable */
-    if (col->readable == 0)  return NULL ;
-
-    /* Compute the size in bytes of one field stored in the file */
-    if ((field_size=qfits_table_get_field_size(th->tab_t,col))==-1) return NULL;
-    
-    /* Load input file */
-    if ((start=qfits_falloc((char *)(th->filename), 0, &size))==NULL) {
-        qfits_error("cannot open table for query [%s]", th->filename);
-        return NULL ;
-    }
-   
-    /* Allocate data array */
-    array = qfits_malloc(nb_rows * field_size * sizeof(char)) ; 
-            
-    /* Position the input pointer at the begining of the column data */
-    r = array ;
-    inbuf = (unsigned char*)start + col->off_beg + table_width * start_ind ;
-   
-    /* Copy the values in array */
-    /* Get only the selected rows */
-    for (i=0 ; i<nb_rows ; i++) {
-        /* Copy all atoms on this field into array */
-        memcpy(r, inbuf, field_size);
-        r += field_size ;
-        /* Jump to next line */
-        inbuf += table_width ;
-    }
-    qfits_fdealloc(start, 0, size) ;
-
-    /* SWAP the bytes if necessary */
-#ifndef WORDS_BIGENDIAN
-    if (th->tab_t == QFITS_BINTABLE) {
-        r = array ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            qfits_swap_bytes(r, col->atom_size);
-            r += col->atom_size ;
-        }
-    }
-#endif
-
-     /* Return allocated and converted array */
-    return array ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Extract binary data from a column in a FITS table
-  @param    th        Allocated qfits_table
-  @param    colnum    Number of the column to extract (from 0 to colnum-1)
-  @param    selection  bollean array to identify selected rows
-  @param    null_value    Value to return when a NULL value comes
-  @return    Pointer to void *
-
-  Extract a column from a FITS table and return the data as a generic
-  void* array. The returned array type and size are determined by the
-  column object in the qfits_table.
-    
-  Returned array size in bytes is:
-  nb_selected * col->atom_nb * col->atom_size
-  
-  NULL values are recognized and replaced by the specified value.
-  The returned object must be deallocated with qfits_free().
- */
-/*----------------------------------------------------------------------------*/
-void * qfits_query_column_data(
-        const qfits_table   *   th,
-        int                     colnum,
-        const int           *   selection,
-        const void          *    null_value)
-{
-    void            *    out_array ;
-    qfits_col       *   col ;
-    int                 nb_rows ;
-    unsigned char    *    in_array ;
-    char            *    field ;
-
-    unsigned char        ucnull ;
-    short                snull ;
-    int                 inull ;
-    double                dnull ;
-    float                fnull ;
-
-    int                 i ;
-    
-    /* Initialize */
-    if (null_value == NULL) {
-        inull  = (int)0 ;
-        snull  = (short)0 ;
-        ucnull = (unsigned char)0 ;
-        fnull  = (float)0.0 ;
-        dnull  = (double)0.0 ;
-    } else {
-        inull  = *(int*)null_value ;
-        snull  = *(short*)null_value ;
-        ucnull = *(unsigned char*)null_value ;
-        fnull  = *(float*)null_value ;
-        dnull  = *(double*)null_value ;
-    }
-
-    /* Get the number of selected rows */
-    nb_rows = 0 ;
-    if (selection == NULL) {
-        nb_rows = th->nr ;
-    } else {
-        for (i=0 ; i<th->nr ; i++) if (selection[i] == 1) nb_rows++ ;
-    }
-
-    /* Pointer to requested column */
-    col = th->col+colnum ;
-
-    /* Test if column is readable */
-    if (col->readable == 0) return NULL ;
-    
-    /* Handle each type separately */
-    switch(col->atom_type) {
-        case TFITS_ASCII_TYPE_A:
-        out_array = (char*)qfits_query_column(th, colnum, selection) ;
-        break ;
-
-        case TFITS_ASCII_TYPE_I:
-        in_array = (unsigned char*)qfits_query_column(th, colnum, selection) ;
-        out_array = qfits_malloc(nb_rows*col->atom_size);
-        field = qfits_malloc((col->atom_nb+1)*sizeof(char)) ;
-        for (i=0 ; i<nb_rows ; i++) {
-            /* Copy all atoms of the field into 'field' */
-            memcpy(field, &in_array[i*col->atom_nb], col->atom_nb);
-            field[col->atom_nb]=(char)0 ;
-            /* Write the data in out_array */
-            /* Test if a NULL val is encoutered */
-            if (!strcmp(col->nullval, qfits_strstrip(field))) {
-                ((int*)out_array)[i] = inull ;
-            } else {
-                ((int*)out_array)[i] = (int)atoi(field) ; 
-            }
-        }
-        qfits_free(field) ;
-        qfits_free(in_array) ;
-        break ;
-            
-        case TFITS_ASCII_TYPE_E:
-        case TFITS_ASCII_TYPE_F:
-        in_array = (unsigned char*)qfits_query_column(th, colnum, selection) ;
-        out_array = qfits_malloc(nb_rows*col->atom_size);
-        field = qfits_malloc((col->atom_nb+1)*sizeof(char)) ;
-        for (i=0 ; i<nb_rows ; i++) {
-            /* Copy all atoms of the field into 'field' */
-            memcpy(field, &in_array[i*col->atom_nb], col->atom_nb);
-            field[col->atom_nb]=(char)0 ;
-            /* Write the data in out_array */
-            /* Test if a NULL val is encoutered */
-            if (!strcmp(col->nullval, qfits_strstrip(field))) {
-                ((float*)out_array)[i] = fnull ;
-            } else {
-                /* Add the decimal handling */
-                ((float*)out_array)[i]=(float)qfits_str2dec(field, 
-                                                             col->atom_dec_nb) ;
-            }
-        }
-        qfits_free(field) ;
-        qfits_free(in_array) ;
-        break ;
-            
-        case TFITS_ASCII_TYPE_D:
-        in_array = (unsigned char*)qfits_query_column(th, colnum, selection) ;
-        out_array = qfits_malloc(nb_rows*col->atom_size);
-        field = qfits_malloc((col->atom_nb+1)*sizeof(char)) ;
-        for (i=0 ; i<nb_rows ; i++) {
-            /* Copy all atoms of the field into 'field' */
-            memcpy(field, &in_array[i*col->atom_nb], col->atom_nb);
-            field[col->atom_nb]=(char)0 ;
-            /* Write the data in out_array */
-            /* Test if a NULL val is encoutered */
-            if (!strcmp(col->nullval, field)) {
-                ((double*)out_array)[i] = dnull ;
-            } else {
-                /* Add the decimal handling */
-                ((double*)out_array)[i]=qfits_str2dec(field, col->atom_dec_nb) ;
-            }
-        }
-        qfits_free(field) ;
-        qfits_free(in_array) ;
-   
-        break ;
-        case TFITS_BIN_TYPE_A:
-        case TFITS_BIN_TYPE_L:
-        out_array = (char*)qfits_query_column(th, colnum, selection) ;
-        break ;
-            
-        case TFITS_BIN_TYPE_D:
-        case TFITS_BIN_TYPE_M:
-        out_array = (double*)qfits_query_column(th, colnum, selection) ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (qfits_isnan(((double*)out_array)[i]) || 
-                    qfits_isinf(((double*)out_array)[i])) {
-                ((double*)out_array)[i] = dnull ;
-            }
-        }
-        break ;
-            
-        case TFITS_BIN_TYPE_E:
-        case TFITS_BIN_TYPE_C:
-        out_array = (float*)qfits_query_column(th, colnum, selection) ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (qfits_isnan(((float*)out_array)[i]) || 
-                    qfits_isinf(((float*)out_array)[i])) {
-                ((float*)out_array)[i] = fnull ;
-            }
-        }
-        break ;
-            
-        case TFITS_BIN_TYPE_X:
-        out_array = (unsigned char*)qfits_query_column(th, colnum, selection) ;
-        break ;
-            
-        case TFITS_BIN_TYPE_B:
-        out_array = (unsigned char*)qfits_query_column(th, colnum, selection) ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (((col->nullval)[0] != (char)0) && 
-                (atoi(col->nullval) == (int)((unsigned char*)out_array)[i])) {
-                ((unsigned char*)out_array)[i] = ucnull ;
-            }
-        }
-        break ;
-            
-        case TFITS_BIN_TYPE_I:
-        out_array = (short*)qfits_query_column(th, colnum, selection) ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (((col->nullval)[0] != (char)0) &&
-                (atoi(col->nullval)==(int)((short*)out_array)[i])) {     
-                ((short*)out_array)[i] = snull ;
-            }
-        }
-        break ;
-            
-        case TFITS_BIN_TYPE_J:
-        out_array = (int*)qfits_query_column(th, colnum, selection) ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (((col->nullval)[0] != (char)0) &&
-                (atoi(col->nullval)==((int*)out_array)[i])) {     
-                ((int*)out_array)[i] = inull ;
-            }
-        }
-        break ;
-            
-        case TFITS_BIN_TYPE_P:
-        out_array = (int*)qfits_query_column(th, colnum, selection) ;
-        break ;
-            
-        default:
-        qfits_error("unrecognized data type") ;
-        return NULL ;
-    }
-    return out_array ;    
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Extract binary data from a column in a FITS table
-  @param    th        Allocated qfits_table
-  @param    colnum    Number of the column to extract (from 0 to colnum-1)
-  @param    start_ind   Index of the first row (0 for the first)
-  @param    nb_rows     Number of rows to extract
-  @param    null_value    Value to return when a NULL value comes
-  @return    Pointer to void *
-  Does the same as qfits_query_column_data() but on a consequtive sequence 
-  of rows.  Spares the overhead of the selection object allocation
-  The returned object must be deallocated with qfits_free().
- */
-/*----------------------------------------------------------------------------*/
-void * qfits_query_column_seq_data(
-        const qfits_table   *   th,
-        int                     colnum,
-        int                     start_ind,
-        int                     nb_rows,
-        const void          *   null_value)
-{
-    void            *    out_array ;
-    qfits_col       *   col ;
-    unsigned char    *    in_array ;
-    char            *    field ;
-
-    unsigned char        ucnull ;
-    short                snull ;
-    int                 inull ;
-    double                dnull ;
-    float                fnull ;
-
-    int                 i ;
-    
-    /* Initialize */
-    if (null_value == NULL) {
-        inull  = (int)0 ;
-        snull  = (short)0 ;
-        ucnull = (unsigned char)0 ;
-        fnull  = (float)0.0 ;
-        dnull  = (double)0.0 ;
-    } else {
-        inull  = *(int*)null_value ;
-        snull  = *(short*)null_value ;
-        ucnull = *(unsigned char*)null_value ;
-        fnull  = *(float*)null_value ;
-        dnull  = *(double*)null_value ;
-    }
-
-    /* Pointer to requested column */
-    col = th->col+colnum ;
-
-    /* Test if column is readable */
-    if (col->readable == 0) return NULL ;
-    
-    /* Handle each type separately */
-    switch(col->atom_type) {
-        case TFITS_ASCII_TYPE_A:
-        out_array = (char*)qfits_query_column_seq(th, colnum, start_ind, 
-                nb_rows) ;
-        break ;
-
-        case TFITS_ASCII_TYPE_I:
-        in_array = (unsigned char*)qfits_query_column_seq(th, colnum, 
-                start_ind, nb_rows) ;
-        out_array = qfits_malloc(nb_rows*col->atom_size);
-        field = qfits_malloc((col->atom_nb+1)*sizeof(char)) ;
-        for (i=0 ; i<nb_rows ; i++) {
-            /* Copy all atoms of the field into 'field' */
-            memcpy(field, &in_array[i*col->atom_nb], col->atom_nb);
-            field[col->atom_nb]=(char)0 ;
-            /* Write the data in out_array */
-            /* Test if a NULL val is encoutered */
-            if (!strcmp(col->nullval, qfits_strstrip(field))) {
-                ((int*)out_array)[i] = inull ;
-            } else {
-                ((int*)out_array)[i] = (int)atoi(field) ; 
-            }
-        }
-        qfits_free(field) ;
-        qfits_free(in_array) ;
-        break ;
-            
-        case TFITS_ASCII_TYPE_E:
-        case TFITS_ASCII_TYPE_F:
-        in_array = (unsigned char*)qfits_query_column_seq(th, colnum,
-                start_ind, nb_rows) ;
-        out_array = qfits_malloc(nb_rows*col->atom_size);
-        field = qfits_malloc((col->atom_nb+1)*sizeof(char)) ;
-        for (i=0 ; i<nb_rows ; i++) {
-            /* Copy all atoms of the field into 'field' */
-            memcpy(field, &in_array[i*col->atom_nb], col->atom_nb);
-            field[col->atom_nb]=(char)0 ;
-            /* Write the data in out_array */
-            /* Test if a NULL val is encoutered */
-            if (!strcmp(col->nullval, qfits_strstrip(field))) {
-                ((float*)out_array)[i] = fnull ;
-            } else {
-                /* Add the decimal handling */
-                ((float*)out_array)[i]=(float)qfits_str2dec(field, 
-                                                            col->atom_dec_nb) ;
-            }
-        }
-        qfits_free(field) ;
-        qfits_free(in_array) ;
-        break ;
-            
-        case TFITS_ASCII_TYPE_D:
-        in_array = (unsigned char*)qfits_query_column_seq(th, colnum,
-                start_ind, nb_rows) ;
-        out_array = qfits_malloc(nb_rows*col->atom_size);
-        field = qfits_malloc((col->atom_nb+1)*sizeof(char)) ;
-        for (i=0 ; i<nb_rows ; i++) {
-            /* Copy all atoms of the field into 'field' */
-            memcpy(field, &in_array[i*col->atom_nb], col->atom_nb);
-            field[col->atom_nb]=(char)0 ;
-            /* Write the data in out_array */
-            /* Test if a NULL val is encoutered */
-            if (!strcmp(col->nullval, qfits_strstrip(field))) {
-                ((double*)out_array)[i] = dnull ;
-            } else {
-                /* Add the decimal handling */
-                ((double*)out_array)[i]=qfits_str2dec(field, col->atom_dec_nb) ;
-            }
-        }
-        qfits_free(field) ;
-        qfits_free(in_array) ;
-        break ;
-            
-        case TFITS_BIN_TYPE_A:
-        case TFITS_BIN_TYPE_L:
-        out_array = (char*)qfits_query_column_seq(th, colnum,
-                start_ind, nb_rows) ;
-        break ;
-            
-        case TFITS_BIN_TYPE_D:
-        case TFITS_BIN_TYPE_M:
-        out_array = (double*)qfits_query_column_seq(th, colnum,
-                start_ind, nb_rows) ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (qfits_isnan(((double*)out_array)[i]) || 
-                    qfits_isinf(((double*)out_array)[i])) {
-                ((double*)out_array)[i] = dnull ;
-            }
-        }
-        break ;
-            
-        case TFITS_BIN_TYPE_E:
-        case TFITS_BIN_TYPE_C:
-        out_array = (float*)qfits_query_column_seq(th, colnum,
-                start_ind, nb_rows) ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (qfits_isnan(((float*)out_array)[i]) || 
-                    qfits_isinf(((float*)out_array)[i])) {
-                ((float*)out_array)[i] = fnull ;
-            }
-        }
-        break ;
-            
-        case TFITS_BIN_TYPE_X:
-        out_array = (unsigned char*)qfits_query_column_seq(th, colnum,
-                start_ind, nb_rows) ;
-        break ;
-            
-        case TFITS_BIN_TYPE_B:
-        out_array = (unsigned char*)qfits_query_column_seq(th, colnum,
-                start_ind, nb_rows) ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (((col->nullval)[0] != (char)0) &&
-                (atoi(col->nullval)== (int)((unsigned char*)out_array)[i])) {
-                ((unsigned char*)out_array)[i] = ucnull ;
-            }
-        }
-        break ;
-            
-        case TFITS_BIN_TYPE_I:
-        out_array = (short*)qfits_query_column_seq(th, colnum,
-                start_ind, nb_rows) ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (((col->nullval)[0] != (char)0) &&
-                (atoi(col->nullval)==(int)((short*)out_array)[i])) {     
-                ((short*)out_array)[i] = snull ;
-            }
-        }
-        break ;
-            
-        case TFITS_BIN_TYPE_J:
-        out_array = (int*)qfits_query_column_seq(th, colnum,
-                start_ind, nb_rows) ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (((col->nullval)[0] != (char)0) &&
-                (atoi(col->nullval)==((int*)out_array)[i])) {     
-                ((int*)out_array)[i] = inull ;
-            }
-        }
-        break ;
-            
-        case TFITS_BIN_TYPE_P:
-        out_array = (int*)qfits_query_column_seq(th, colnum,
-                start_ind, nb_rows) ;
-        break ;
-            
-        default:
-        qfits_error("unrecognized data type") ;
-        return NULL ;
-    }
-    return out_array ;    
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Detect NULL values in a column
-  @param    th        Allocated qfits_table
-  @param    colnum    Number of the column to check (from 0 to colnum-1)
-  @param    selection Array to identify selected rows
-  @param    nb_vals Gives the size of the output array
-  @param    nb_nulls Gives the number of detected null values
-  @return     array with 1 for NULLs and 0 for non-NULLs    
-  The returned object must be deallocated with qfits_free().
- */
-/*----------------------------------------------------------------------------*/
-int * qfits_query_column_nulls(
-        const qfits_table   *   th,
-        int                     colnum,
-        const int           *   selection,
-        int                 *   nb_vals,
-        int                 *   nb_nulls)
-{
-    int             *    out_array ;
-    qfits_col       *   col ;
-    unsigned char    *    in_array ;
-    void            *    tmp_array ;
-    char            *    field ;
-    int                 nb_rows ;
-    int                 i ;
-
-    /* Initialize */
-    *nb_nulls = 0 ;
-    *nb_vals = 0 ;
-
-    /* Get the number of selected rows */
-    nb_rows = 0 ;
-    if (selection == NULL) {
-        nb_rows = th->nr ;
-    } else {
-       for (i=0 ; i<th->nr ; i++) if (selection[i] == 1) nb_rows++ ; 
-    }
-    
-    /* Pointer to requested column */
-    col = th->col+colnum ;
-        
-    /* Test if column is readable */
-    if (col->readable == 0) return NULL ;
-
-    /* Handle each type separately */
-    switch(col->atom_type) {
-        case TFITS_ASCII_TYPE_A:
-        case TFITS_ASCII_TYPE_D:
-        case TFITS_ASCII_TYPE_E:
-        case TFITS_ASCII_TYPE_F:
-        case TFITS_ASCII_TYPE_I:
-        in_array = (unsigned char*)qfits_query_column(th, colnum, selection) ;
-        out_array = qfits_calloc(nb_rows, sizeof(int));
-        *nb_vals = nb_rows ;
-        field = qfits_malloc((col->atom_nb+1)*sizeof(char)) ;
-        for (i=0 ; i<nb_rows ; i++) {
-            /* Copy all atoms of the field into 'field' */
-            memcpy(field, &in_array[i*col->atom_nb], col->atom_nb);
-            field[col->atom_nb]=(char)0 ;
-            /* Test if a NULL val is encoutered */
-            if (!strcmp(col->nullval, qfits_strstrip(field))) {
-                out_array[i] = 1 ;    
-                (*nb_nulls)++ ;
-            } 
-        }
-        qfits_free(field) ;
-        if (in_array != NULL) qfits_free(in_array) ;
-        break ;
-            
-        case TFITS_BIN_TYPE_A:
-        /* No NULL values */
-        out_array = qfits_calloc(nb_rows * col->atom_nb, sizeof(int)) ;
-        *nb_vals = nb_rows * col->atom_nb ;
-        break ;
-        
-        case TFITS_BIN_TYPE_L:
-        case TFITS_BIN_TYPE_X:
-        case TFITS_BIN_TYPE_P:
-        /* No NULL values */
-        out_array = qfits_calloc(nb_rows * col->atom_nb, sizeof(int)) ;
-        *nb_vals = nb_rows * col->atom_nb ;
-        break ;
-            
-        case TFITS_BIN_TYPE_D:
-        case TFITS_BIN_TYPE_M:
-        tmp_array = (double*)qfits_query_column(th, colnum, selection) ;
-        out_array = qfits_calloc(nb_rows * col->atom_nb, sizeof(int)) ;
-        *nb_vals = nb_rows * col->atom_nb ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (qfits_isnan(((double*)tmp_array)[i]) || 
-                qfits_isinf(((double*)tmp_array)[i])) {
-                out_array[i] = 1 ;
-                (*nb_nulls)++ ;
-            }
-        }
-        if (tmp_array != NULL) qfits_free(tmp_array) ;
-        break ;
-        
-        case TFITS_BIN_TYPE_E:
-        case TFITS_BIN_TYPE_C:
-        tmp_array = (float*)qfits_query_column(th, colnum, selection) ;
-        out_array = qfits_calloc(nb_rows * col->atom_nb, sizeof(int)) ;
-        *nb_vals = nb_rows * col->atom_nb ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (qfits_isnan(((float*)tmp_array)[i]) || 
-                qfits_isinf(((float*)tmp_array)[i])) {
-                out_array[i] = 1 ;
-                (*nb_nulls)++ ;
-            }
-        }
-        if (tmp_array != NULL) qfits_free(tmp_array) ;
-        break ;
-        
-        case TFITS_BIN_TYPE_B:
-        tmp_array = (unsigned char*)qfits_query_column(th, colnum, selection) ;
-        out_array = qfits_calloc(nb_rows * col->atom_nb, sizeof(int)) ;
-        *nb_vals = nb_rows * col->atom_nb ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (((col->nullval)[0] != (char)0) &&
-                (atoi(col->nullval)==(int)((unsigned char*)tmp_array)[i])) {
-                out_array[i] = 1 ;
-                (*nb_nulls)++ ;
-            }
-        }
-        if (tmp_array != NULL) qfits_free(tmp_array) ;
-        break ;
-            
-        case TFITS_BIN_TYPE_I:
-        tmp_array = (short*)qfits_query_column(th, colnum, selection) ;
-        out_array = qfits_calloc(nb_rows * col->atom_nb, sizeof(int)) ;
-        *nb_vals = nb_rows * col->atom_nb ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (((col->nullval)[0] != (char)0) &&
-                (atoi(col->nullval)==(int)((short*)tmp_array)[i])) {     
-                out_array[i] = 1 ;
-                (*nb_nulls)++ ;
-            }
-        }
-        if (tmp_array != NULL) qfits_free(tmp_array) ;
-        break ;
-            
-        case TFITS_BIN_TYPE_J:
-        tmp_array = (int*)qfits_query_column(th, colnum, selection) ;
-        out_array = qfits_calloc(nb_rows * col->atom_nb, sizeof(int)) ;
-        *nb_vals = nb_rows * col->atom_nb ;
-        for (i=0 ; i<nb_rows * col->atom_nb ; i++) {
-            if (((col->nullval)[0] != (char)0) &&
-                (atoi(col->nullval)==((int*)tmp_array)[i])) {     
-                out_array[i] = 1 ;
-                (*nb_nulls)++ ;
-            }
-        }
-        if (tmp_array != NULL) qfits_free(tmp_array) ;
-        break ;
-            
-        default:
-        qfits_error("unrecognized data type") ;
-        return NULL ;
-    }
-    return out_array ;    
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Save a table to a FITS file with a given FITS header.
-  @param    array            Data array.
-  @param    table            table
-  @param    fh              FITS header to insert in the output file.
-  @return   -1 in error case, 0 otherwise
- */
-/*----------------------------------------------------------------------------*/
-int qfits_save_table_hdrdump(
-        const void          **  array,
-        const qfits_table   *   table,
-        const qfits_header  *   fh)
-{
-    FILE        *   outfile ;
-    const char  *   md5hash ;
-    char            md5card[81];
-
-    /* Open the destination file */
-    if ((outfile = fopen(table->filename, "w")) == NULL) {
-        qfits_error("cannot open file [%s]", table->filename) ;
-        return -1 ;
-    }
-    /* Write the fits header in the file 'outname' */
-    if (qfits_header_dump(fh, outfile) == -1) {
-        qfits_error("cannot dump header in file") ;
-        fclose(outfile) ;
-        return -1 ;
-    }
-    /* Append the extension */
-    if (table->tab_t == QFITS_BINTABLE) {
-        if (qfits_table_append_bin_xtension(outfile, table, array) == -1) {
-            qfits_error("in writing fits table") ;
-            fclose(outfile) ;
-            return -1 ;
-        }
-    } else if (table->tab_t == QFITS_ASCIITABLE) {
-        if (qfits_table_append_ascii_xtension(outfile, table, array) == -1) {
-            qfits_error("in writing fits table") ;
-            fclose(outfile) ;
-            return -1 ;
-        }
-    } else {
-        qfits_error("Unrecognized table type") ;
-        fclose(outfile) ;
-        return -1 ;
-    }
-    fclose(outfile) ;
-    /* Update MD5 keyword */
-    if (strcmp(table->filename, "STDOUT")) {
-        md5hash = qfits_datamd5(table->filename);
-        if (md5hash==NULL) {
-            qfits_error("computing MD5 signature for output file %s", 
-                    table->filename);
-            return -1 ;
-        }
-        sprintf(md5card, "DATAMD5 = '%s' / MD5 checksum", md5hash);
-        qfits_replace_card(table->filename, "DATAMD5", md5card);
-    }
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Appends a std extension header + data to a FITS table file.
-  @param    outfile        Pointer to (opened) file ready for writing.
-  @param    t            Pointer to qfits_table
-  @param    data        Table data to write
-  @return    int 0 if Ok, -1 otherwise
-
-  Dumps a FITS table to a file. The whole table described by qfits_table, and 
-  the data arrays contained in 'data' are dumped to the file. An extension 
-  header is produced with all keywords needed to describe the table, then the 
-  data is dumped to the file.
-  The output is then padded to reach a multiple of 2880 bytes in size.
-  Notice that no main header is produced, only the extension part.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_table_append_xtension(
-        FILE                *   outfile,
-        const qfits_table   *   t,
-        const void          **  data)
-{
-    /* Append the extension */
-    if (t->tab_t == QFITS_BINTABLE) {
-        if (qfits_table_append_bin_xtension(outfile, t, data) == -1) {
-            qfits_error("in writing fits table") ;
-            return -1 ;
-        }
-    } else if (t->tab_t == QFITS_ASCIITABLE) {
-        if (qfits_table_append_ascii_xtension(outfile, t, data) == -1) {
-            qfits_error("in writing fits table") ;
-            return -1 ;
-        }
-    } else {
-        qfits_error("Unrecognized table type") ;
-        return -1 ;
-    }
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Appends a specified extension header + data to a FITS table file.
-  @param    outfile        Pointer to (opened) file ready for writing.
-  @param    t            Pointer to qfits_table
-  @param    data        Table data to write
-  @param    hdr         Specified extension header
-  @return    int 0 if Ok, -1 otherwise
-
-  Dumps a FITS table to a file. The whole table described by qfits_table, and 
-  the data arrays contained in 'data' are dumped to the file following the 
-  specified fits header. 
-  The output is then padded to reach a multiple of 2880 bytes in size.
-  Notice that no main header is produced, only the extension part.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_table_append_xtension_hdr(
-        FILE                *   outfile,
-        const qfits_table   *   t,
-        const void          **  data,
-        const qfits_header  *   hdr)
-{
-    /* Write the fits header in the file  */
-    if (qfits_header_dump(hdr, outfile) == -1) {
-        qfits_error("cannot dump header in file") ;
-        return -1 ;
-    }
-
-    /* Append the data to the file */
-    return qfits_table_append_data(outfile, t, data) ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    given a col and a row, find out the string to write for display
-  @param    table    table structure
-  @param    col_id    col id (0 -> nbcol-1)
-  @param    row_id    row id (0 -> nrow-1)
-  @param    use_zero_scale    Flag to use or not zero and scale
-  @return    the string
-
-  This function is highly inefficient, it should not be used in loops to
-  display a complete table. It is more to get one field from time to
-  time, or for debugging puposes.
-  The returned object must be deallocated with qfits_free().
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_table_field_to_string(
-        const qfits_table   *   table,
-        int                     col_id,
-        int                     row_id,
-        int                     use_zero_scale)
-{
-    char    *    str ;
-    
-    switch (table->tab_t) {
-        case QFITS_BINTABLE:
-            str = qfits_bintable_field_to_string(table, col_id, row_id, 
-                    use_zero_scale) ;
-            break ;
-
-        case QFITS_ASCIITABLE:
-            str = qfits_asciitable_field_to_string(table, col_id, row_id, 
-                    use_zero_scale) ;
-            break ;
-        default:
-            qfits_error("Table type not recognized") ;
-            return NULL ;
-            break ;
-    }
-    return str ;
-}
-
-/**@}*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Compute the table width in bytes from the columns infos 
-  @param    th        Allocated qfits_table
-  @return    the width (-1 in error case)
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_compute_table_width(const qfits_table * th)
-{
-    int             width ;
-    qfits_col   *   curr_col ;
-    int             i ;
-    
-    /* Initialize */
-    width = 0 ;
-    
-    /* Loop on all columns and get column descriptions  */
-    curr_col = th->col ;
-    for (i=0 ; i<th->nc ; i++) {
-        if (th->tab_t == QFITS_ASCIITABLE) {
-            width += curr_col->atom_nb ;
-        } else if (th->tab_t == QFITS_BINTABLE) {
-            width += curr_col->atom_nb * curr_col->atom_size ;
-        }
-        curr_col++ ;
-    }
-    return width ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    given a col and a row, find out the string to write for display
-  @param    table    table structure
-  @param    col_id    col id (0 -> nbcol-1)
-  @param    row_id    row id (0 -> nrow-1)
-  @param    use_zero_scale    Flag to use or not zero and scale
-  @return    the string to write
-  
-  The returned object must be deallocated with qfits_free().
-  ASCII tables specific
- */
-/*----------------------------------------------------------------------------*/
-static char * qfits_asciitable_field_to_string(
-        const qfits_table   *   table,
-        int                     col_id,
-        int                     row_id,
-        int                     use_zero_scale)
-{
-    qfits_col       *       col ;
-    char            *       ccol ;
-    int             *       icol ;
-    float           *       fcol ;
-    double          *       dcol ;
-    char                    ctmp[512];
-    char            *       stmp ;
-    int                     field_size ;
-    void            *        field ;
-    int             *       selection ;
-    
-    /* Test inputs */
-    if (table->tab_t != QFITS_ASCIITABLE) return NULL ;
-    
-    /* Initialize */
-    ctmp[0] = (char)0 ;
-
-    /* Set selection to select the requested row */
-    selection = qfits_calloc(table->nr, sizeof(int)) ;
-    selection[row_id] = 1 ;
-    
-    /* Load the column data */
-    if ((field = qfits_query_column_data(table, col_id, selection, 
-                    NULL)) == NULL) return NULL ;
-    qfits_free(selection) ;
-    
-    /* Set reference to the column */
-    col = table->col + col_id ;
-    
-    /* Compute field size and allocate stmp */
-    if (col->atom_nb > ELEMENT_MAX_DISPLAY_SIZE) field_size = col->atom_nb + 1 ;
-    else field_size = ELEMENT_MAX_DISPLAY_SIZE ;
-    stmp = qfits_malloc(field_size * sizeof(char)) ;
-    stmp[0] = (char)0 ;
- 
-    /* Get the string to write according to the type */
-    switch(col->atom_type) {
-        case TFITS_ASCII_TYPE_A:
-            ccol = (char*)field ;
-            strncpy(ctmp, ccol, col->atom_nb);
-            ctmp[col->atom_nb] = (char)0;
-            strcpy(stmp, ctmp);
-            break ;
-            
-        case TFITS_ASCII_TYPE_I:
-            icol = (int*)field ;
-            /* Two cases: use col->zero and col->scale or not */
-            if (col->zero_present && col->scale_present && use_zero_scale) {
-                sprintf(stmp, "%f", (float)(col->zero +
-                            (float)icol[0] * col->scale)) ;
-            } else {    
-                sprintf(stmp, "%d", icol[0]);
-            }
-            break ;
-            
-        case TFITS_ASCII_TYPE_E:
-        case TFITS_ASCII_TYPE_F:
-            fcol = (float*)field ;
-            /* Two cases: use col->zero and col->scale or not */
-            if (col->zero_present && col->scale_present && use_zero_scale) {
-                sprintf(stmp, "%f", (float)(col->zero +
-                            fcol[0] * col->scale)) ;
-            } else {
-                sprintf(stmp, "%f", fcol[0]);
-            }
-            break ;
-            
-        case TFITS_ASCII_TYPE_D:
-            dcol = (double*)field ;
-            /* Two cases: use col->zero and col->scale or not */
-            if (col->zero_present && col->scale_present && use_zero_scale) {
-                sprintf(stmp, "%f", (float)(col->zero +
-                        (float)dcol[0] * col->scale)) ;
-            } else {
-                sprintf(stmp, "%g", dcol[0]) ;
-            }
-            break ;
-        default:
-            qfits_warning("Type not recognized") ;
-            break ;
-    }
-
-    /* Free and return */
-    qfits_free(field) ;
-    return stmp ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Given a col and a row, find out the string to write for display
-  @param    table    table structure
-  @param    col_id    col id (0 -> nbcol-1)
-  @param    row_id    row id (0 -> nrow-1)
-  @param    use_zero_scale    Flag to use or not zero and scale
-  @return    the allocated string to write
-  
-  The returned object must be deallocated with qfits_free().
-  BIN tables specific
- */
-/*----------------------------------------------------------------------------*/
-static char * qfits_bintable_field_to_string(
-        const qfits_table   *   table,
-        int                     col_id,
-        int                     row_id,
-        int                     use_zero_scale)
-{
-    qfits_col       *       col ;
-    unsigned char   *       uccol ;
-    char            *       ccol ;
-    int             *       icol ;
-    short           *       scol ;
-    float           *       fcol ;
-    double          *       dcol ;
-    char                    ctmp[512];
-    char            *       stmp ;
-    int                     field_size ;
-    void            *        field ;
-    int             *       selection ;
-
-    int                     i ;
-
-    /* Test inputs */
-    if (table->tab_t != QFITS_BINTABLE) return NULL ;
-
-   /* Initialize */
-    ctmp[0] = (char)0 ;
-    
-    /* Set selection to select the requested row */
-    selection = qfits_calloc(table->nr, sizeof(int)) ;
-    selection[row_id] = 1 ;
-    
-    /* Load the data column */
-    if ((field = qfits_query_column_data(table, col_id, selection, 
-                    NULL)) == NULL) {
-        qfits_free(selection) ;
-        return NULL ;
-    }
-    qfits_free(selection) ;
-    
-    /* Set reference to the column */
-    col = table->col + col_id ;
-
-    /* Compute field size and allocate stmp */
-    field_size = col->atom_nb * ELEMENT_MAX_DISPLAY_SIZE ;
-    stmp = qfits_malloc(field_size * sizeof(char)) ;
-    stmp[0] = (char)0 ;
- 
-    /* Get the string to write according to the type */
-    switch(col->atom_type) {
-        case TFITS_BIN_TYPE_A:
-        ccol = (char*)field ;
-        strncpy(ctmp, ccol, col->atom_size * col->atom_nb) ;
-        ctmp[col->atom_size*col->atom_nb] = (char)0 ;
-        strcpy(stmp, ctmp) ;
-        break ;
-
-        case TFITS_BIN_TYPE_B:
-        uccol = (unsigned char*)field ;
-        /* Two cases: use col->zero and col->scale or not */
-        if (col->zero_present && col->scale_present && use_zero_scale) {
-            /* For each atom of the column */
-            for (i=0 ; i<col->atom_nb-1 ; i++) {
-                sprintf(ctmp, "%f, ", (float)(col->zero +
-                        (float)uccol[i] * col->scale)) ;
-                strcat(stmp, ctmp) ;
-            }
-            /* Handle the last atom differently: no ',' */
-            sprintf(ctmp, "%f", (float)(col->zero +
-                (float)uccol[col->atom_nb-1]*col->scale)) ;
-            strcat(stmp, ctmp) ;
-        } else {
-            /* For each atom of the column */
-            for (i=0 ; i<col->atom_nb-1 ; i++) {
-                sprintf(ctmp, "%d, ", (int)uccol[i]) ;
-                strcat(stmp, ctmp) ;
-            }
-            /* Handle the last atom differently: no ',' */
-            sprintf(ctmp,"%d",(int)uccol[col->atom_nb-1]);
-            strcat(stmp, ctmp) ;
-        }
-        break ;
-
-        case TFITS_BIN_TYPE_D:
-        case TFITS_BIN_TYPE_M:
-        dcol = (double*)field ;
-        /* Two cases: use col->zero and col->scale or not */
-        if (col->zero_present && col->scale_present && use_zero_scale) {
-            /* For each atom of the column */
-            for (i=0 ; i<col->atom_nb-1 ; i++) {
-                sprintf(ctmp, "%g, ", (double)((double)col->zero +
-                        dcol[i] * (double)col->scale)) ;
-                strcat(stmp, ctmp) ;
-            }
-            /* Handle the last atom differently: no ',' */
-            sprintf(ctmp, "%g", (double)((double)col->zero +
-                dcol[col->atom_nb-1] * (double)col->scale));
-            strcat(stmp, ctmp) ;
-        } else {
-            /* For each atom of the column */
-            for (i=0 ; i<col->atom_nb-1 ; i++) {
-                sprintf(ctmp, "%g, ", dcol[i]) ;
-                strcat(stmp, ctmp) ;
-            }
-            /* Handle the last atom differently: no ',' */
-            sprintf(ctmp, "%g", dcol[col->atom_nb-1]) ;
-            strcat(stmp, ctmp) ;
-        }
-        break ;
-
-        case TFITS_BIN_TYPE_E:
-        case TFITS_BIN_TYPE_C:
-        fcol = (float*)field ;
-        /* Two cases: use col->zero and col->scale or not */
-        if (col->zero_present && col->scale_present && use_zero_scale) {
-            /* For each atom of the column */
-            for (i=0 ; i<col->atom_nb-1 ; i++) {
-                sprintf(ctmp, "%f, ", (float)(col->zero +
-                        (float)fcol[i] * col->scale)) ;
-                strcat(stmp, ctmp) ;
-            }
-            /* Handle the last atom differently: no ',' */
-            sprintf(ctmp, "%f", (float)(col->zero +
-                (float)fcol[col->atom_nb-1] * col->scale)) ;
-            strcat(stmp, ctmp) ;
-        } else {
-            /* For each atom of the column */
-            for (i=0 ; i<col->atom_nb-1 ; i++) {
-                sprintf(ctmp, "%f, ", fcol[i]) ;
-                strcat(stmp, ctmp) ;
-            }
-            /* Handle the last atom differently: no ',' */
-            sprintf(ctmp, "%f", fcol[col->atom_nb-1]) ;
-            strcat(stmp, ctmp) ;
-        }
-        break ;
-
-        case TFITS_BIN_TYPE_I:
-        scol = (short*)field ;
-        /* Two cases: use col->zero and col->scale or not */
-        if (col->zero_present && col->scale_present && use_zero_scale) {
-            /* For each atom of the column */
-            for (i=0 ; i<col->atom_nb-1 ; i++) {
-                sprintf(ctmp, "%f, ", (float)(col->zero +
-                        (float)scol[i] * col->scale)) ;
-                strcat(stmp, ctmp) ;
-            }
-            /* Handle the last atom differently: no ',' */
-            sprintf(ctmp, "%f", (float)(col->zero +
-                (float)scol[col->atom_nb-1] * col->scale)) ;
-            strcat(stmp, ctmp) ;
-        } else {
-            /* For each atom of the column */
-            for (i=0 ; i<col->atom_nb-1 ; i++) {
-                sprintf(ctmp, "%d, ", (int)scol[i]) ;
-                strcat(stmp, ctmp) ;
-            }
-            /* Handle the last atom differently: no ',' */
-            sprintf(ctmp, "%d",(int)scol[col->atom_nb-1]);
-            strcat(stmp, ctmp) ;
-        }
-        break ;
-
-        case TFITS_BIN_TYPE_J:
-        icol = (int*)field ;
-        /* Two cases: use col->zero and col->scale or not */
-        if (col->zero_present && col->scale_present && use_zero_scale) {
-            /* For each atom of the column */
-            for (i=0 ; i<col->atom_nb-1 ; i++) {
-                sprintf(ctmp, "%f, ", (float)(col->zero +
-                        (float)icol[i] * col->scale)) ;
-                strcat(stmp, ctmp) ;
-            }
-            /* Handle the last atom differently: no ',' */
-            sprintf(ctmp, "%f", (float)(col->zero +
-                (float)icol[col->atom_nb-1] * col->scale)) ;
-            strcat(stmp, ctmp) ;
-        } else {
-            /* For each atom of the column */
-            for (i=0 ; i<col->atom_nb-1 ; i++) {
-                sprintf(ctmp, "%d, ", (int)icol[i]) ;
-                strcat(stmp, ctmp) ;
-            }
-            /* Handle the last atom differently: no ',' */
-            sprintf(ctmp, "%d",(int)icol[col->atom_nb-1]);
-            strcat(stmp, ctmp) ;
-        }
-        break ;
-
-        case TFITS_BIN_TYPE_L:
-        ccol = (char*)field ;
-        /* For each atom of the column */
-        for (i=0 ; i<col->atom_nb-1 ; i++) {
-            sprintf(ctmp, "%c, ", ccol[i]) ;
-            strcat(stmp, ctmp) ;
-        }
-        /* Handle the last atom differently: no ',' */
-        sprintf(ctmp, "%c", ccol[col->atom_nb-1]) ;
-        strcat(stmp, ctmp) ;
-        break ;
-
-        case TFITS_BIN_TYPE_X:
-        uccol = (unsigned char*)field ;
-        /* For each atom of the column */
-        for (i=0 ; i<col->atom_nb-1 ; i++) {
-            sprintf(ctmp, "%d, ", uccol[i]) ;
-            strcat(stmp, ctmp) ;
-        }
-        /* Handle the last atom differently: no ',' */
-        sprintf(ctmp, "%d", uccol[col->atom_nb-1]) ;
-        strcat(stmp, ctmp) ;
-        break ;
-
-        case TFITS_BIN_TYPE_P:
-        icol = (int*)field ;
-        /* For each atom of the column */
-        for (i=0 ; i<col->atom_nb-1 ; i++) {
-            sprintf(ctmp, "%d, ", (int)icol[i]) ;
-            strcat(stmp, ctmp) ;
-        }
-        /* Handle the last atom differently: no ',' */
-        sprintf(ctmp, "%d",(int)icol[col->atom_nb-1]);
-        strcat(stmp, ctmp) ;
-        break ;
-
-        default:
-        qfits_warning("Type not recognized") ;
-        break ;
-    }
-    qfits_free(field) ;
-    return stmp ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Remove blanks at the beginning and the end of a string.
-  @param    s   String to parse.
-  @return   ptr to statically allocated string.
-
-  This function returns a pointer to a statically allocated string,
-  which is identical to the input string, except that all blank
-  characters at the end and the beg. of the string have been removed.
-  Do not free or modify the returned string! 
-  Since the returned string is statically allocated, it will be modified at 
-  each function call (not re-entrant).
- */
-/*----------------------------------------------------------------------------*/
-static char * qfits_strstrip(const char * s)
-{
-    static char l[1024+1];
-    char * last ;
-
-    if (s==NULL) return NULL ;
-
-    while (isspace((int)*s) && *s) s++;
-
-    memset(l, 0, 1024+1);
-    strcpy(l, s);
-    last = l + strlen(l);
-    while (last > l) {
-        if (!isspace((int)*(last-1)))
-            break ;
-        last -- ;
-    }
-    *last = (char)0;
-
-    return (char*)l ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Make a double out of a string and a number of decimals    
-  @param    to_format   the string to convert
-  @param    nb_dec      the number of decimals
-  @return   the double
-  A field with 123 of type F3.1 actually contains 12.3
-  This is handled by this function.
- */
-/*----------------------------------------------------------------------------*/
-static double qfits_str2dec(
-        const char  *   to_format,
-        int             nb_dec)
-{
-    double      val ;
-    int         i ;
-    
-    /* Test entries */
-    if (to_format == NULL) return 0.00 ;
-    
-    val = (double)atof(to_format) ;
-    /* First handle case where there are no decimals or the dot is there */
-    if ((strstr(to_format, ".") == NULL) && (nb_dec > 0)) {
-        for (i=0 ; i<nb_dec ; i++) val /=10 ;
-    }
-    return val ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Parse a FITS type    
-  @param    str        string read in the FITS header (e.g. TFORM value)
-  @param    nb        pointer to the number
-  @param    dec_nb  pointer to the number of decimals
-  @param    type    pointer to the type
-  @param    table_type    Table type (BIN, ASCII, ...)
-  @return    0 if ok, -1 otherwise
-
-  This functions reads the input string and uses it to update nb and type
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_table_interpret_type(
-        const char  *   str,
-        int         *   nb,
-        int         *   dec_nb,
-        tfits_type  *   type,
-        int             table_type)
-{
-    char        type_c ;
-     
-    *dec_nb = 0 ;
-    if (table_type == QFITS_BINTABLE) {
-        if (sscanf(str, "%d%c", nb, &type_c) == 0) {
-            /* nb is 1 by default */
-            if (sscanf(str, "%c", &type_c) == 0) {
-                qfits_error("cannot interpret this type: %s", str) ;
-                return -1 ;
-            }
-            *nb = 1 ;
-        }
-        switch(type_c) {
-            case 'A': *type = TFITS_BIN_TYPE_A ; break ;
-            case 'B': *type = TFITS_BIN_TYPE_B ; break ;
-            case 'C': *type = TFITS_BIN_TYPE_C ; break ;
-            case 'D': *type = TFITS_BIN_TYPE_D ; break ;
-            case 'E': *type = TFITS_BIN_TYPE_E ; break ;
-            case 'I': *type = TFITS_BIN_TYPE_I ; break ;
-            case 'J': *type = TFITS_BIN_TYPE_J ; break ;
-            case 'L': *type = TFITS_BIN_TYPE_L ; break ;
-            case 'M': *type = TFITS_BIN_TYPE_M ; break ;
-            case 'P': *type = TFITS_BIN_TYPE_P ; break ;
-            case 'X': *type = TFITS_BIN_TYPE_X ; break ;
-            default: return -1 ; 
-        }
-    } else if (table_type == QFITS_ASCIITABLE) {
-        if (sscanf(str, "%c%d.%d", &type_c, nb, dec_nb) == 0) {
-            qfits_error("cannot interpret this type: %s", str) ;
-            return -1 ;
-        }
-        switch(type_c) {
-            case 'A': *type = TFITS_ASCII_TYPE_A ; break ;
-            case 'D': *type = TFITS_ASCII_TYPE_D ; break ;
-            case 'E': *type = TFITS_ASCII_TYPE_E ; break ;
-            case 'F': *type = TFITS_ASCII_TYPE_F ; break ;
-            case 'I': *type = TFITS_ASCII_TYPE_I ; break ;
-            default: return -1 ;
-        }
-    } else {
-        qfits_error("unrecognized table type") ;
-        return -1 ;
-    }
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Generate a FITS type string
-  @param    col        input column
-  @return    The string to write to TFORM
- */
-/*----------------------------------------------------------------------------*/
-static char * qfits_build_format(const qfits_col * col)
-{
-    static char sval[10] ;
-    int         nb ;
-        
-    switch (col->atom_type) {
-        case TFITS_ASCII_TYPE_A: 
-            nb=sprintf(sval, "A%d.%d", col->atom_nb, col->atom_dec_nb) ; break ;
-        case TFITS_ASCII_TYPE_D: 
-            nb=sprintf(sval, "D%d.%d", col->atom_nb, col->atom_dec_nb) ; break ;
-        case TFITS_ASCII_TYPE_E: 
-            nb=sprintf(sval, "E%d.%d", col->atom_nb, col->atom_dec_nb) ; break ;
-        case TFITS_ASCII_TYPE_I: 
-            nb=sprintf(sval, "I%d.%d", col->atom_nb, col->atom_dec_nb) ; break ;
-        case TFITS_ASCII_TYPE_F: 
-            nb=sprintf(sval, "F%d.%d", col->atom_nb, col->atom_dec_nb) ; break ;
-        case TFITS_BIN_TYPE_D: nb=sprintf(sval, "%dD", col->atom_nb) ; break ;
-        case TFITS_BIN_TYPE_E: nb=sprintf(sval, "%dE", col->atom_nb) ; break ;
-        case TFITS_BIN_TYPE_I: nb=sprintf(sval, "%dI", col->atom_nb) ; break ;
-        case TFITS_BIN_TYPE_A: nb=sprintf(sval, "%dA", col->atom_nb) ; break ;
-        case TFITS_BIN_TYPE_B: nb=sprintf(sval, "%dB", col->atom_nb) ; break ;
-        case TFITS_BIN_TYPE_C: nb=sprintf(sval, "%dC", 
-                                       (int)(col->atom_nb/2)) ; break ;
-        case TFITS_BIN_TYPE_J: nb=sprintf(sval, "%dJ", col->atom_nb) ; break ;
-        case TFITS_BIN_TYPE_L: nb=sprintf(sval, "%dL", col->atom_nb) ; break ;
-        case TFITS_BIN_TYPE_M: nb=sprintf(sval, "%dM", 
-                                       (int)(col->atom_nb/2)) ; break ;
-        case TFITS_BIN_TYPE_P: nb=sprintf(sval, "%dP", 
-                                       (int)(col->atom_nb/2)) ; break ;
-        case TFITS_BIN_TYPE_X: nb=sprintf(sval, "%dX", 
-                                       8*col->atom_nb) ; break ;
-        default: return NULL ;
-    }
-    sval[nb] = (char)0 ;
-    return sval ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Appends a std extension header + data to a FITS BIN table file.
-  @param    outfile        Pointer to (opened) file ready for writing.
-  @param    t            Pointer to qfits_table
-  @param    data        Table data to write
-  @return    int 0 if Ok, -1 otherwise
-
-  Dumps a FITS table to a file. The whole table described by qfits_table, and 
-  the data arrays contained in 'data' are dumped to the file. An extension 
-  header is produced with all keywords needed to describe the table, then the 
-  data is dumped to the file.
-  The output is then padded to reach a multiple of 2880 bytes in size.
-  Notice that no main header is produced, only the extension part.
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_table_append_bin_xtension(
-        FILE                *   outfile,
-        const qfits_table   *   t,
-        const void          **  data)
-{
-    qfits_header    *    fh ;
-
-    if ((fh=qfits_table_ext_header_default(t)) == NULL) {
-        qfits_error("cannot create new fits header") ;
-        return -1 ;
-    }
-
-    /* Write the fits header in the file  */
-    if (qfits_header_dump(fh, outfile) == -1) {
-        qfits_error("cannot dump header in file") ;
-        qfits_header_destroy(fh) ;
-        fclose(outfile) ;
-        return -1 ;
-    }
-    qfits_header_destroy(fh) ;
-
-    /* Append the data to the file */
-    return qfits_table_append_data(outfile, t, data) ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Appends an extension header + data to a FITS ASCII table file.
-  @param    outfile        Pointer to (opened) file ready for writing.
-  @param    t            Pointer to qfits_table
-  @param    data        Table data to write
-  @return    int 0 if Ok, -1 otherwise
-
-  Dumps a FITS table to a file. The whole table described by
-  qfits_table, and the data arrays contained in 'data' are dumped to
-  the file. An extension header is produced with all keywords needed
-  to describe the table, then the data is dumped to the file.
-
-  The output is then padded to reach a multiple of 2880 bytes in size.
-
-  Notice that no main header is produced, only the extension part.
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_table_append_ascii_xtension(
-        FILE                *   outfile,
-        const qfits_table   *   t,
-        const void          **  data)
-{
-    qfits_header    *    fh ;
-    
-    if ((fh=qfits_table_ext_header_default(t)) == NULL) {
-        qfits_error("cannot create new fits header") ;
-        return -1 ;
-    }
-
-    /* Write the fits header in the file  */
-    if (qfits_header_dump(fh, outfile) == -1) {
-        qfits_error("cannot dump header in file") ;
-        qfits_header_destroy(fh) ;
-        return -1 ;
-    }
-    qfits_header_destroy(fh) ;
-    
-    /* Append the data to the file */
-    return qfits_table_append_data(outfile, t, data) ;
-} 
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Appends data to a FITS table file.
-  @param    outfile        Pointer to (opened) file ready for writing.
-  @param    t            Pointer to qfits_table
-  @param    data        Table data to write
-  @return    int 0 if Ok, -1 otherwise
-
-  Dumps the data part of a FITS table to a file. The primary header, as well as
-  the extension header are supposed to be already there (and properly padded).
-  The output is then padded to reach a multiple of 2880 bytes in size.
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_table_append_data(
-        FILE                *   outfile, 
-        const qfits_table   *   t, 
-        const void          **  data) 
-{
-    qfits_col       *   curr_col ;
-    char                field[1024] ;
-    char            *   line ;
-    unsigned char   **  array ;
-    unsigned char   *   r ;
-    unsigned char   *   inbuf ;
-    int                 writt_char ;
-    int                 nb_blanks ;
-    int                 field_size ;
-    int                 i, j ;
-
-    /* Write DATA */
-    array = qfits_malloc(t->nc*sizeof(unsigned char *)) ;
-
-    curr_col = t->col ;
-    for (i=0 ; i<t->nc ; i++) {
-        /* Compute the field size */
-        field_size = qfits_table_get_field_size(t->tab_t, curr_col) ;
-
-        /* Copy data from data to array (unsigned char) */
-        array[i] = qfits_malloc(t->nr * field_size) ;
-        r = (unsigned char *)array[i] ;
-        inbuf = (unsigned char *)(data[i]) ;
-
-        /* Copy the data */
-        if (t->tab_t == QFITS_ASCIITABLE) {
-            /* ASCII table */
-            for (j=0 ; j<t->nr ; j++) {
-                switch(curr_col->atom_type) {
-                    case TFITS_ASCII_TYPE_A :
-                        strncpy(field, (char*)inbuf, curr_col->atom_nb) ;
-                        field[curr_col->atom_nb] = (char)0 ;
-                        inbuf += curr_col->atom_nb ;
-                        break ;
-                    case TFITS_ASCII_TYPE_D :
-                        memset(field, ' ', curr_col->atom_nb) ;
-                        sprintf(field, "%g", ((double*)data[i])[j]) ;
-                        field[curr_col->atom_nb] = (char)0 ;
-                        break ;
-                    case TFITS_ASCII_TYPE_E :
-                    case TFITS_ASCII_TYPE_F :
-                        memset(field, ' ', curr_col->atom_nb) ;
-                        sprintf(field, "%f", ((float*)data[i])[j]) ;
-                        field[curr_col->atom_nb] = (char)0 ;
-                        break ;
-                    case TFITS_ASCII_TYPE_I :
-                        memset(field, ' ', curr_col->atom_nb) ;
-                        sprintf(field, "%d", ((int*)data[i])[j]) ;
-                        field[curr_col->atom_nb] = (char)0 ;
-                        break ;
-                    default:
-                        break ;
-                }
-                memcpy(r, field, curr_col->atom_nb) ;
-                r += (curr_col->atom_nb) ;
-            }
-        } else if (t->tab_t == QFITS_BINTABLE) {
-            /* BINARY table */
-            for (j=0 ; j<t->nr ; j++) {
-                memcpy(r, inbuf, field_size) ;
-                inbuf += field_size ;
-                r += field_size ;
-            }
-
-            /* Byte swapping needed if on a little-endian machine */
-#ifndef WORDS_BIGENDIAN
-            r = array[i] ;
-            for (j=0 ; j<t->nr * curr_col->atom_nb ; j++) {
-                qfits_swap_bytes(r, curr_col->atom_size);
-                r += curr_col->atom_size ;
-            }
-#endif
-        } else return -1 ;
-        curr_col++ ;
-    }
-
-    /* Write to the outfile */
-    writt_char = 0 ;
-    for (i=0 ; i<t->nr ; i++) {
-        curr_col = t->col ;
-        for (j=0 ; j<t->nc ; j++) {
-            field_size = qfits_table_get_field_size(t->tab_t, curr_col) ;
-            r = array[j] + field_size * i ;
-            line = (char *)qfits_calloc (field_size+1, sizeof (char)) ;
-            memcpy(line, r, field_size) ;
-            line[field_size] = (char)0 ;
-            fwrite(line, 1, field_size, outfile) ;
-            writt_char += field_size ;
-            curr_col++ ;
-            qfits_free(line) ;
-        }
-    }
-
-    /* Complete with blanks to FITS_BLOCK_SIZE characters */
-    if (writt_char % FITS_BLOCK_SIZE) {
-        nb_blanks = FITS_BLOCK_SIZE - (writt_char%FITS_BLOCK_SIZE) ;
-        for (i=1 ; i<=nb_blanks ; i++) fwrite(" ", 1, 1, outfile) ;
-    }
-
-    /* Free and return  */
-    for(i=0 ; i<t->nc ; i++) {
-        if (array[i] != NULL) qfits_free(array[i]) ;
-    }
-    qfits_free(array) ;
-    return  0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Get the size in bytes of a field
-  @param    type    table type
-  @param    col     a column
-  @return   the size
- */
-/*----------------------------------------------------------------------------*/
-static int qfits_table_get_field_size(
-        int                 type,
-        const qfits_col *   col)
-{
-    int     field_size ;
-
-    switch (type) {
-        case QFITS_BINTABLE:
-            field_size = col->atom_nb * col->atom_size ;
-            break ;
-        case QFITS_ASCIITABLE:
-            field_size = col->atom_nb ;
-            break ;
-        default:
-            qfits_warning("unrecognized table type") ;
-            field_size = -1 ;
-    }
-    return field_size ;
-}
diff --git a/libqfits/src/qfits_table.h b/libqfits/src/qfits_table.h
deleted file mode 100644
index 2178199..0000000
--- a/libqfits/src/qfits_table.h
+++ /dev/null
@@ -1,250 +0,0 @@
-/* $Id: qfits_table.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_TABLE_H
-#define QFITS_TABLE_H
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-    
-#include "qfits_header.h"
-
-/*-----------------------------------------------------------------------------
-                                   Defines
- -----------------------------------------------------------------------------*/
-
-/* The following defines the maximum acceptable size for a FITS value */
-#define FITSVALSZ                    60
-
-#define QFITS_INVALIDTABLE            0
-#define QFITS_BINTABLE                1
-#define QFITS_ASCIITABLE            2
-
-/*-----------------------------------------------------------------------------
-                                   New types
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Column data type
- */ 
-/*----------------------------------------------------------------------------*/
-typedef enum _TFITS_DATA_TYPE_ {
-    TFITS_ASCII_TYPE_A,
-    TFITS_ASCII_TYPE_D,
-    TFITS_ASCII_TYPE_E,
-    TFITS_ASCII_TYPE_F,
-    TFITS_ASCII_TYPE_I,
-    TFITS_BIN_TYPE_A,
-    TFITS_BIN_TYPE_B,
-    TFITS_BIN_TYPE_C,
-    TFITS_BIN_TYPE_D,
-    TFITS_BIN_TYPE_E,
-    TFITS_BIN_TYPE_I,
-    TFITS_BIN_TYPE_J,
-    TFITS_BIN_TYPE_L,
-    TFITS_BIN_TYPE_M,
-    TFITS_BIN_TYPE_P,
-    TFITS_BIN_TYPE_X,
-    TFITS_BIN_TYPE_UNKNOWN
-} tfits_type ;
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Column object
-
-  This structure contains all information needed to read a column in a table.
-  These informations come from the header. 
-  The qfits_table object contains a list of qfits_col objects.
-
-  This structure has to be created from scratch and filled if one want to 
-  generate a FITS table.
- */
-/*----------------------------------------------------------------------------*/
-typedef struct qfits_col
-{
-    /** 
-      Number of atoms in one field.
-     In ASCII tables, it is the number of characters in the field as defined
-     in TFORM%d keyword.
-     In BIN tables, it is the number of atoms in each field. For type 'A', 
-     it is the number of characters. A field with two complex object will
-     have atom_nb = 4.
-    */
-    int            atom_nb ;
-
-    /**
-     Number of decimals in a ASCII field. 
-     This value is always 0 for BIN tables
-    */
-    int         atom_dec_nb ;
-
-    /** 
-      Size of one element in bytes. In ASCII tables, atom_size is the size
-      of the element once it has been converted in its 'destination' type.
-      For example, if "123" is contained in an ASCII table in a column 
-      defined as I type, atom_nb=3, atom_size=4.
-      In ASCII tables:
-       - type 'A' : atom_size = atom_nb = number of chars
-       - type 'I', 'F' or 'E' : atom_size = 4
-       - type 'D' : atom_size = 8
-      In BIN tables :
-       - type 'A', 'L', 'X', 'B': atom_size = 1 
-       - type 'I' : atom_size = 2
-       - type 'E', 'J', 'C', 'P' : atom_size = 4
-       - type 'D', 'M' : atom_size = 8
-      In ASCII table, there is one element per field. The size in bytes and 
-      in number of characters is atom_nb, and the size in bytes after 
-      conversion of the field is atom_size.
-      In BIN tables, the size in bytes of a field is always atom_nb*atom_size.
-     */
-    int            atom_size ;    
-    
-    /** 
-      Type of data in the column as specified in TFORM keyword 
-      In ASCII tables : TFITS_ASCII_TYPE_* with *=A, I, F, E or D 
-      In BIN tables : TFITS_BIN_TYPE_* with *=L, X, B, I, J, A, E, D, C, M or P 
-    */
-    tfits_type    atom_type ;
-
-    /** Label of the column */
-    char        tlabel[FITSVALSZ] ;
-
-    /** Unit of the data */
-    char        tunit[FITSVALSZ] ;
-    
-    /** Null value */
-    char        nullval[FITSVALSZ] ;
-
-    /** Display format */
-    char        tdisp[FITSVALSZ] ;
-    
-    /** 
-      zero and scale are used when the quantity in the field does not     
-      represent a true physical quantity. Basically, thez should be used
-      when they are present: physical_value = zero + scale * field_value 
-      They are read from TZERO and TSCAL in the header
-     */
-    int            zero_present ;    
-    float        zero ;        
-    int            scale_present ;
-    float        scale ;   
-
-    /** Offset between the beg. of the table and the beg. of the column.  */
-    int            off_beg ;
-    
-    /** Flag to know if the column is readable. An empty col is not readable */
-    int            readable ;
-} qfits_col ;
-
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Table object
-
-  This structure contains all information needed to read a FITS table.
-  These information come from the header. The object is created by 
-  qfits_open().
- 
-  To read a FITS table, here is a code example:
-  @code
-  int main(int argc, char* argv[])
-  {
-      qfits_table     *   table ;
-     int                    n_ext ;
-    int                    i ;
-
-    // Query the number of extensions
-    n_ext = qfits_query_n_ext(argv[1]) ;
-    
-    // For each extension
-    for (i=0 ; i<n_ext ; i++) {
-        // Read all the infos about the current table 
-        table = qfits_table_open(argv[1], i+1) ;
-        // Display the current table 
-        dump_extension(table, stdout, '|', 1, 1) ;
-    }
-    return ;
-  }
-  @endcode
- */
-/*----------------------------------------------------------------------------*/
-typedef struct qfits_table
-{
-    /**
-        Name of the file the table comes from or it is intended to end to
-     */
-    char            filename[512] ;
-    /** 
-        Table type. 
-        Possible values: QFITS_INVALIDTABLE, QFITS_BINTABLE, QFITS_ASCIITABLE
-     */
-    int                tab_t ;
-    /** Width in bytes of the table */
-    int                tab_w ;            
-    /** Number of columns */
-    int                nc ;            
-    /** Number of raws */
-    int                nr ;
-    /** Array of qfits_col objects */
-    qfits_col    *    col ;            
-} qfits_table ;
-
-/*-----------------------------------------------------------------------------
-                               Function prototypes
- -----------------------------------------------------------------------------*/
-
-int qfits_is_table(const char * filename, int xtnum) ;
-qfits_header * qfits_table_prim_header_default(void) ;
-qfits_header * qfits_table_ext_header_default(const qfits_table *) ;
-qfits_table * qfits_table_new(const char *, int, int, int, int) ;
-int qfits_col_fill(qfits_col *, int, int, int, tfits_type, const char *, 
-        const char *, const char *, const char *, int, float, int, float, int) ;
-qfits_table * qfits_table_open(const char *, int) ;
-void qfits_table_close(qfits_table *) ;
-unsigned char * qfits_query_column(const qfits_table *, int, const int *) ;
-unsigned char * qfits_query_column_seq(const qfits_table *, int, int, int) ;
-void * qfits_query_column_data(const qfits_table *, int, const int *, 
-        const void *) ;
-void * qfits_query_column_seq_data(const qfits_table *, int, int, int, 
-        const void *) ;
-int * qfits_query_column_nulls(const qfits_table *, int, const int *, int *, 
-        int *);
-int qfits_save_table_hdrdump(const void **, const qfits_table *, 
-        const qfits_header *) ;
-int qfits_table_append_xtension(FILE *, const qfits_table *, const void **) ;
-int qfits_table_append_xtension_hdr(FILE *, const qfits_table *, const void **,
-        const qfits_header *) ;
-char * qfits_table_field_to_string(const qfits_table *, int, int, int) ;
-
-#endif
diff --git a/libqfits/src/qfits_time.c b/libqfits/src/qfits_time.c
deleted file mode 100644
index e192141..0000000
--- a/libqfits/src/qfits_time.c
+++ /dev/null
@@ -1,240 +0,0 @@
-/* $Id: qfits_time.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <pwd.h>
-#include <unistd.h>
-#include <sys/time.h>
-
-#include "qfits_time.h"
-
-/*-----------------------------------------------------------------------------
-                                   Macros
- -----------------------------------------------------------------------------*/
-
-/* Get century from a date in long format */
-#define GET_CENTURY(d)      (int) ( (d) / 1000000L)
-/* Get century year from a date in long format */
-#define GET_CCYEAR(d)       (int) ( (d) / 10000L)
-/* Get year from a date in long format */
-#define GET_YEAR(d)         (int) (((d) % 1000000L) / 10000L)
-/* Get month from a date in long format */
-#define GET_MONTH(d)        (int) (((d) % 10000L) / 100)
-/* Get day from a date in long format */
-#define GET_DAY(d)          (int) ( (d) % 100)
-
-/* Get hours from a date in long format */
-#define GET_HOUR(t)         (int) ( (t) / 1000000L)
-/* Get minutes from a date in long format */
-#define GET_MINUTE(t)       (int) (((t) % 1000000L) / 10000L)
-/* Get seconds from a date in long format */
-#define GET_SECOND(t)       (int) (((t) % 10000L) / 100)
-/* Get centi-seconds from a date in long format */
-#define GET_CENTI(t)        (int) ( (t) % 100)
-
-/* Make date in long format from its components */
-#define MAKE_DATE(c,y,m,d)  (long) (c) * 1000000L +                          \
-                            (long) (y) * 10000L +                            \
-                            (long) (m) * 100 + (d)
-/* Make time in long format from its components */
-#define MAKE_TIME(h,m,s,c)  (long) (h) * 1000000L +                          \
-                            (long) (m) * 10000L +                            \
-                            (long) (s) * 100 + (c)
-
-/*  Interval values, specified in centiseconds */
-#define INTERVAL_CENTI      1
-#define INTERVAL_SEC        100
-#define INTERVAL_MIN        6000
-#define INTERVAL_HOUR       360000L
-#define INTERVAL_DAY        8640000L
-
-/*-----------------------------------------------------------------------------
-                            Private to this module
- -----------------------------------------------------------------------------*/
-
-static long timer_to_date(time_t time_secs) ;
-static long timer_to_time(time_t time_secs) ;
-static long qfits_time_now(void) ;
-static long qfits_date_now (void) ;
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_time  Get date/time, possibly in ISO8601 format
- *
- * This module contains various utilities to get the current date/time, 
- * and possibly format it according to the ISO 8601 format.
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                              Function codes
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Returns the current date and time as a static string.
-  @return   Pointer to statically allocated string
- 
-  Build and return a string containing the date of today and the
-  current time in ISO8601 format. The returned pointer points to a
-  statically allocated string in the function, so no need to free it.
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_get_datetime_iso8601(void)
-{
-    static char date_iso8601[20] ;
-    long        curdate ;
-    long        curtime ;
-
-    curdate  = qfits_date_now() ;
-    curtime  = qfits_time_now() ;
-
-    sprintf(date_iso8601, "%04d-%02d-%02dT%02d:%02d:%02d",
-            GET_CCYEAR(curdate),
-            GET_MONTH(curdate),
-            GET_DAY(curdate),
-            GET_HOUR(curtime),
-            GET_MINUTE(curtime),
-            GET_SECOND(curtime));
-    return date_iso8601 ;
-}
-
-/**@}*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Returns the current date as a long (CCYYMMDD).
-  @return    The current date as a long number.
-
-  Returns the current date as a long value (CCYYMMDD). Since most
-  system clocks do not return a century, this function assumes that
-  all years 80 and above are in the 20th century, and all years 00 to
-  79 are in the 21st century.  For best results, consume before 1 Jan
-  2080.
-  Example:    19 Oct 2000 is returned as 20001019
- */
-/*----------------------------------------------------------------------------*/
-static long qfits_date_now (void)
-{
-    return (timer_to_date (time (NULL)));
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Returns the current time as a long (HHMMSSCC).
-  @return    The current time as a long number.
-
-  Returns the current time as a long value (HHMMSSCC). If the system
-  clock does not return centiseconds, these are set to zero.
-
-  Example: 15:36:12.84 is returned as 15361284
- */
-/*----------------------------------------------------------------------------*/
-static long qfits_time_now(void)
-{
-    struct timeval time_struct;
-
-    gettimeofday (&time_struct, 0);
-    return (timer_to_time (time_struct.tv_sec)
-                         + time_struct.tv_usec / 10000);
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Converts a timer value to a date.
-  @param    time_secs    Current time definition in seconds.
-  @return    Current date as a long (CCYYMMDD).
-
-  Converts the supplied timer value into a long date value. Dates are
-  stored as long values: CCYYMMDD. If the supplied value is zero,
-  returns zero.  If the supplied value is out of range, returns 1
-  January, 1970 (19700101). The timer value is assumed to be UTC
-  (GMT).
- */
-/*----------------------------------------------------------------------------*/
-static long timer_to_date(time_t time_secs)
-{
-    struct tm *time_struct;
-
-    if (time_secs == 0) {
-        return 0;
-    } else {
-        /*  Convert into a long value CCYYMMDD */
-        time_struct = localtime (&time_secs);
-        if (time_struct) {
-            time_struct-> tm_year += 1900;
-            return (MAKE_DATE (    time_struct-> tm_year / 100,
-                                time_struct-> tm_year % 100,
-                                time_struct-> tm_mon + 1,
-                                time_struct-> tm_mday));
-        } else {
-            return (19700101);
-        }
-    }
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Convert a timer value to a time.
-  @param    time_secs    Current time definition in seconds.
-  @return    Current time as a long.
-
-  Converts the supplied timer value into a long time value.  Times are
-  stored as long values: HHMMSS00.  Since the timer value does not
-  hold centiseconds, these are set to zero.  If the supplied value was
-  zero or invalid, returns zero.  The timer value is assumed to be UTC
-  (GMT).
- */
-/*----------------------------------------------------------------------------*/
-static long timer_to_time(time_t time_secs)
-{
-    struct tm *time_struct;
-
-    if (time_secs == 0) {
-        return 0;
-    } else {
-        /*  Convert into a long value HHMMSS00 */
-        time_struct = localtime (&time_secs);
-        if (time_struct) {
-            return (MAKE_TIME (time_struct-> tm_hour,
-                               time_struct-> tm_min,
-                               time_struct-> tm_sec,
-                               0));
-        } else {
-            return 0;
-        }
-    }
-}
-
diff --git a/libqfits/src/qfits_time.h b/libqfits/src/qfits_time.h
deleted file mode 100644
index 35fb1b8..0000000
--- a/libqfits/src/qfits_time.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* $Id: qfits_time.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_TIME_H
-#define QFITS_TIME_H
-
-/*-----------------------------------------------------------------------------
-                        Function ANSI C prototypes
- -----------------------------------------------------------------------------*/
-
-char * qfits_get_datetime_iso8601(void) ;
-
-#endif
diff --git a/libqfits/src/qfits_tools.c b/libqfits/src/qfits_tools.c
deleted file mode 100644
index 81fd037..0000000
--- a/libqfits/src/qfits_tools.c
+++ /dev/null
@@ -1,661 +0,0 @@
-/* $Id: qfits_tools.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/mman.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <regex.h>
-
-#include "config.h"
-
-#include "qfits_tools.h"
-
-#include "qfits_card.h"
-#include "qfits_cache.h"
-#include "qfits_rw.h"
-#include "qfits_std.h"
-#include "qfits_error.h"
-#include "qfits_memory.h"
-
-/*-----------------------------------------------------------------------------
-                            Global variables
- -----------------------------------------------------------------------------*/
-
-/*
- * The following global variables are only used for regular expression
- * matching of integers and floats. These definitions are private to
- * this module.
- */
-/** A regular expression matching a floating-point number */
-static char regex_float[] =
-    "^[+-]?([0-9]+[.]?[0-9]*|[.][0-9]+)([eEdD][+-]?[0-9]+)?$";
-
-/** A regular expression matching an integer */
-static char regex_int[] = "^[+-]?[0-9]+$";
-
-/** A regular expression matching a complex number (int or float) */
-static char regex_cmp[] =
-"^[+-]?([0-9]+[.]?[0-9]*|[.][0-9]+)([eEdD][+-]?[0-9]+)?[ ]+[+-]?([0-9]+[.]?[0-9]*|[.][0-9]+)([eEdD][+-]?[0-9]+)?$";
-
-/*----------------------------------------------------------------------------*/
-/**
- * @defgroup    qfits_tools Simple FITS access routines 
- *
- *  This module offers a number of very basic low-level FITS access
- *  routines.
- */
-/*----------------------------------------------------------------------------*/
-/**@{*/
-
-/*-----------------------------------------------------------------------------
-                            Function codes
- -----------------------------------------------------------------------------*/
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Retrieve the value of a key in a FITS header
-  @param    filename    Name of the FITS file to browse
-  @param    keyword     Name of the keyword to find
-  @return   pointer to statically allocated character string
-
-  Provide the name of a FITS file and a keyword to look for. The input
-  file is memory-mapped and the first keyword matching the requested one is
-  located. The value corresponding to this keyword is copied to a
-  statically allocated area, so do not modify it or free it.
-
-  The input keyword is first converted to upper case and expanded to
-  the HIERARCH scheme if given in the shortFITS notation.
-
-  This function is pretty fast due to the mmapping. Due to buffering
-  on most Unixes, it is possible to call many times this function in a
-  row on the same file and do not suffer too much from performance
-  problems. If the file contents are already in the cache, the file
-  will not be re-opened every time.
-
-  It is possible, though, to modify this function to perform several
-  searches in a row. See the source code.
-
-  Returns NULL in case the requested keyword cannot be found.
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_query_hdr(const char * filename, const char * keyword)
-{
-    return qfits_query_ext(filename, keyword, 0);
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Retrieve the value of a keyin a FITS extension header.
-  @param    filename    name of the FITS file to browse.
-  @param    keyword     name of the FITS key to look for.
-  @param    xtnum       xtension number
-  @return   pointer to statically allocated character string
-
-  Same as qfits_query_hdr but for extensions. xtnum starts from 1 to
-  the number of extensions. If xtnum is zero, this function is 
-  strictly identical to qfits_query_hdr().
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_query_ext(const char * filename, const char * keyword, int xtnum)
-{
-    char    *   exp_key ;
-    char    *   where ;
-    char    *   start ;
-    char    *   value ;
-    char        test1, test2 ;
-    int         i ;
-    int         len ;
-    int         different ;
-    int         seg_start ;
-    int         seg_size ;
-    long        bufcount ;
-    size_t      size ;
-
-    /* Bulletproof entries */
-    if (filename==NULL || keyword==NULL || xtnum<0) return NULL ;
-
-    /* Expand keyword */
-    exp_key = qfits_expand_keyword(keyword);
-
-    /*
-     * Find out offsets to the required extension
-     * Record the xtension start and stop offsets
-     */
-    if (qfits_get_hdrinfo(filename, xtnum, &seg_start, &seg_size)==-1) {
-        return NULL ;
-    }
-
-    /*
-     * Get a hand on requested buffer
-     */
-
-    start = qfits_falloc((char *)filename, seg_start, &size);
-    if (start==NULL) return NULL ;
-
-    /*
-     * Look for keyword in header
-     */
-
-    bufcount=0 ;
-    where = start ;
-    len = (int)strlen(exp_key);
-    while (1) {
-        different=0 ;
-        for (i=0 ; i<len ; i++) {
-            if (where[i]!=exp_key[i]) {
-                different++ ;
-                break ;
-            }
-        }
-        if (!different) {
-            /* Get 2 chars after keyword */
-            test1=where[len];
-            test2=where[len+1];
-            /* If first subsequent character is the equal sign, bingo. */
-            if (test1=='=') break ;
-            /* If subsequent char is equal sign, bingo */
-            if (test1==' ' && (test2=='=' || test2==' '))
-                break ;
-        }
-        /* Watch out for header end */
-        if ((where[0]=='E') &&
-            (where[1]=='N') &&
-            (where[2]=='D') &&
-            (where[3]==' ')) {
-            /* Detected header end */
-            qfits_fdealloc(start, seg_start, size) ;
-            return NULL ;
-        }
-        /* Forward one line */
-        where += 80 ;
-        bufcount += 80 ;
-        if (bufcount>seg_size) {
-            /* File is damaged or not FITS: bailout */
-            qfits_fdealloc(start, seg_start, size) ;
-            return NULL ;
-        }
-    }
-
-    /* Found the keyword, now get its value */
-    value = qfits_getvalue(where);
-    qfits_fdealloc(start, seg_start, size) ;
-    return value;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Counts the number of extensions in a FITS file
-  @param    filename    Name of the FITS file to browse.
-  @return   int
-  Counts how many extensions are in the file. Returns 0 if no
-  extension is found, and -1 if an error occurred.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_query_n_ext(const char * filename)
-{
-    return qfits_query(filename, QFITS_QUERY_N_EXT);
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Counts the number of planes in a FITS extension.
-  @param    filename    Name of the FITS file to browse.
-  @param    extnum        Extensin number
-  @return   int
-  Counts how many planes are in the extension. Returns 0 if no plane is found, 
-  and -1 if an error occurred.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_query_nplanes(const char * filename, int extnum)
-{
-    char    *    sval ;
-    int            next ;
-    int            naxes ;
-    int            nplanes ;
-
-    /* Check file existence */
-    if (filename == NULL) return -1 ;
-    /* Check validity of extnum */
-    next = qfits_query_n_ext(filename) ;
-    if (extnum>next) {
-        qfits_error("invalid extension specified") ;
-        return -1 ;
-    }
-
-    /* Find the number of axes  */
-    naxes = 0 ;
-    if ((sval = qfits_query_ext(filename, "NAXIS", extnum)) == NULL) {
-        qfits_error("missing key in header: NAXIS");
-        return -1 ;
-    }
-    naxes = atoi(sval) ;
-
-    /* Check validity of naxes */
-    if ((naxes < 2) || (naxes > 3)) return -1 ;
-
-    /* Two dimensions cube */
-    if (naxes == 2) nplanes = 1 ;
-    else {
-        /* For 3D cubes, get the third dimension size   */
-        if ((sval = qfits_query_ext(filename, "NAXIS3", extnum))==NULL) {
-            qfits_error("missing key in header: NAXIS3");
-            return -1 ;
-        }
-        nplanes = atoi(sval);
-        if (nplanes < 1) nplanes = 0 ;
-    }
-    return nplanes ;
-}
-
-#define PRETTY_STRING_STATICBUFS    8
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Clean out a FITS string value.
-  @param    s pointer to allocated FITS value string.
-  @return   pointer to statically allocated character string
-
-  From a string FITS value like 'marvin o''hara', remove head and tail
-  quotes, replace double '' with simple ', trim blanks on each side,
-  and return the result in a statically allocated area.
-
-  Examples:
-
-  - ['o''hara'] becomes [o'hara]
-  - ['  H    '] becomes [H]
-  - ['1.0    '] becomes [1.0]
-
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_pretty_string(const char * s)
-{
-    static char     pretty_buf[PRETTY_STRING_STATICBUFS][81] ;
-    static int      flip=0 ;
-    char        *   pretty ;
-    int             i,j ;
-
-    /* bulletproof */
-    if (s==NULL) return NULL ;
-
-    /* Switch between static buffers */
-    pretty = pretty_buf[flip];
-    flip++ ;
-    if (flip==PRETTY_STRING_STATICBUFS)
-        flip=0 ;
-    
-    pretty[0] = (char)0 ;
-    if (s[0]!='\'') return (char *)s ;
-
-    /* skip first quote */
-    i=1 ;
-    j=0 ;
-    /* trim left-side blanks */
-    while (s[i]==' ') {
-        if (i==(int)strlen(s)) break ;
-        i++ ;
-    }
-    if (i>=(int)(strlen(s)-1)) return pretty ;
-    /* copy string, changing double quotes to single ones */
-    while (i<(int)strlen(s)) {
-        if (s[i]=='\'') {
-            i++ ;
-        }
-        pretty[j]=s[i];
-        i++ ;
-        j++ ;
-    }
-    /* NULL-terminate the pretty string */
-    pretty[j+1]=(char)0;
-    /* trim right-side blanks */
-    j = (int)strlen(pretty)-1;
-    while (pretty[j]==' ') j-- ;
-    pretty[j+1]=(char)0;
-    return pretty;
-}
-#undef PRETTY_STRING_STATICBUFS
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Identify if a FITS value is boolean
-  @param    s FITS value as a string
-  @return   int 0 or 1
-
-  Identifies if a FITS value is boolean.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_is_boolean(const char * s)
-{
-    if (s==NULL) return 0 ;
-    if (s[0]==0) return 0 ;
-    if ((int)strlen(s)>1) return 0 ;
-    if (s[0]=='T' || s[0]=='F') return 1 ;
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Identify if a FITS value is an int.
-  @param    s FITS value as a string
-  @return   int 0 or 1
-
-  Identifies if a FITS value is an integer.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_is_int(const char * s)
-{
-    regex_t re_int ;
-    int     status ;
-
-    if (s==NULL) return 0 ;
-    if (s[0]==0) return 0 ;
-    if (regcomp(&re_int, &regex_int[0], REG_EXTENDED|REG_NOSUB)!=0) {
-        qfits_error("internal error: compiling int rule");
-        exit(-1);
-    }
-    status = regexec(&re_int, s, 0, NULL, 0) ;
-    regfree(&re_int) ; 
-    return (status) ? 0 : 1 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Identify if a FITS value is float.
-  @param    s FITS value as a string
-  @return   int 0 or 1
-
-  Identifies if a FITS value is float.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_is_float(const char * s)
-{
-    regex_t re_float;
-    int     status ;
-
-    if (s==NULL) return 0 ;
-    if (s[0]==0) return 0 ;
-    if (regcomp(&re_float, &regex_float[0], REG_EXTENDED|REG_NOSUB)!=0) {
-        qfits_error("internal error: compiling float rule");
-        exit(-1);
-    }
-    status = regexec(&re_float, s, 0, NULL, 0) ;
-    regfree(&re_float) ; 
-    return (status) ? 0 : 1 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Identify if a FITS value is complex.
-  @param    s FITS value as a string
-  @return   int 0 or 1
-
-  Identifies if a FITS value is complex.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_is_complex(const char * s)
-{
-    regex_t re_cmp ;
-    int     status ;
-
-    if (s==NULL) return 0 ;
-    if (s[0]==0) return 0 ;
-    if (regcomp(&re_cmp, &regex_cmp[0], REG_EXTENDED|REG_NOSUB)!=0) {
-        qfits_error("internal error: compiling complex rule");
-        exit(-1);
-    }
-    status = regexec(&re_cmp, s, 0, NULL, 0) ;
-    regfree(&re_cmp) ; 
-    return (status) ? 0 : 1 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Identify if a FITS value is string.
-  @param    s FITS value as a string
-  @return   int 0 or 1
-
-  Identifies if a FITS value is a string.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_is_string(const char * s)
-{
-    if (s==NULL) return 0 ;
-    if (s[0]=='\'') return 1 ;
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Identify the type of a FITS value given as a string.
-  @param    s FITS value as a string
-  @return   integer naming the FITS type
-
-  Returns the following value:
-
-  - QFITS_UNKNOWN (0) for an unknown type.
-  - QFITS_BOOLEAN (1) for a boolean type.
-  - QFITS_INT (2) for an integer type.
-  - QFITS_FLOAT (3) for a floating-point type.
-  - QFITS_COMPLEX (4) for a complex number.
-  - QFITS_STRING (5) for a FITS string.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_get_type(const char * s)
-{
-    if (s==NULL) return QFITS_UNKNOWN ;
-    if (qfits_is_boolean(s)) return QFITS_BOOLEAN ;
-    if (qfits_is_int(s)) return QFITS_INT ;
-    if (qfits_is_float(s)) return QFITS_FLOAT ;
-    if (qfits_is_complex(s)) return QFITS_COMPLEX ;
-    return QFITS_STRING ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Query a card in a FITS (main) header by a given key
-  @param    filename    Name of the FITS file to check.
-  @param    keyword     Where to read a card in the header.
-  @return   Allocated string containing the card or NULL
- */
-/*----------------------------------------------------------------------------*/
-char * qfits_query_card(
-        const char  *   filename,
-        const char  *   keyword) 
-{
-    char    *   exp_key ;
-    int         fd ;
-    char    *   buf ;
-    char    *   buf2 ;
-    char    *   where ;
-    int         hs ;
-    char    *   card ;
-
-    /* Bulletproof entries */
-    if (filename==NULL || keyword==NULL) return NULL ;
-
-    /* Expand keyword */
-    exp_key = qfits_expand_keyword(keyword) ;
-
-    /* Memory-map the FITS header of the input file  */
-    qfits_get_hdrinfo(filename, 0, NULL, &hs) ;
-    if (hs < 1) {
-        qfits_error("error getting FITS header size for %s", filename);
-        return NULL ;
-    }
-    fd = open(filename, O_RDWR) ;
-    if (fd == -1) return NULL ;
-    buf = (char*)mmap(0,
-                      hs,
-                      PROT_READ | PROT_WRITE,
-                      MAP_SHARED,
-                      fd,
-                      0) ;
-    if (buf == (char*)-1) {
-        perror("mmap") ;
-        close(fd) ;
-        return NULL ;
-    }
-
-    /* Apply search for the input keyword */
-    buf2 = qfits_malloc(hs+1) ;
-    memcpy(buf2, buf, hs) ;
-    buf2[hs] = (char)0 ;
-    where = buf2 ;
-    do {
-        where = strstr(where, exp_key);
-        if (where == NULL) {
-            close(fd);
-            munmap(buf,hs);
-            qfits_free(buf2) ;
-            return NULL ;
-        }
-        if ((where-buf2)%80) where++ ;
-    } while ((where-buf2)%80) ;
-       
-    where = buf + (int)(where - buf2) ;
-  
-    /* Create the card */
-    card = qfits_malloc(81*sizeof(char)) ;
-    strncpy(card, where, 80) ;
-    card[80] = (char)0 ;
-
-    /* Free and return */
-    close(fd) ;
-    munmap(buf, hs) ;
-    qfits_free(buf2) ;
-    return card ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Replace a card in a FITS (main) header by a given card
-  @param    filename    Name of the FITS file to modify.
-  @param    keyword     Where to substitute a card in the header.
-  @param    substitute  What to replace the line with.
-  @return   int 0 if Ok, -1 otherwise
-
-  Replaces a whole card (80 chars) in a FITS header by a given FITS
-  line (80 chars). The replacing line is assumed correctly formatted
-  and containing at least 80 characters. The file is modified: it must
-  be accessible in read/write mode.
-
-  The input keyword is first converted to upper case and expanded to
-  the HIERARCH scheme if given in the shortFITS notation. 
-
-  Returns 0 if everything worked Ok, -1 otherwise.
- */
-/*----------------------------------------------------------------------------*/
-int qfits_replace_card(
-        const char  *   filename,
-        const char  *   keyword,
-        const char  *   substitute)
-{
-    char    *   exp_key ;
-    int         fd ;
-    char    *   buf ;
-    char    *   buf2 ;
-    char    *   where ;
-    int         hs ;
-
-
-    /* Bulletproof entries */
-    if (filename==NULL || keyword==NULL || substitute==NULL) return -1 ;
-
-    /* Expand keyword */
-    exp_key = qfits_expand_keyword(keyword);
-    /*
-     * Memory-map the FITS header of the input file 
-     */
-
-    qfits_get_hdrinfo(filename, 0, NULL, &hs) ;
-    if (hs < 1) {
-        qfits_error("error getting FITS header size for %s", filename);
-        return -1 ;
-    }
-    fd = open(filename, O_RDWR) ;
-    if (fd == -1) {
-        return -1 ;
-    }
-    buf = (char*)mmap(0,
-                      hs,
-                      PROT_READ | PROT_WRITE,
-                      MAP_SHARED,
-                      fd,
-                      0) ;
-    if (buf == (char*)-1) {
-        perror("mmap") ;
-        close(fd) ;
-        return -1 ;
-    }
-
-    /* Apply search and replace for the input keyword lists */
-    buf2 = qfits_malloc(hs+1) ;
-    memcpy(buf2, buf, hs) ;
-    buf2[hs] = (char)0 ;
-    where = buf2 ;
-    do {
-        where = strstr(where, exp_key);
-        if (where == NULL) {
-            close(fd);
-            munmap(buf,hs);
-            qfits_free(buf2) ;
-            return -1 ;
-        }
-        if ((where-buf2)%80) where++ ;
-    } while ((where-buf2)%80) ;
-       
-    where = buf + (int)(where - buf2) ;
-    
-    /* Replace current placeholder by blanks */
-    memset(where, ' ', 80);
-    /* Copy substitute into placeholder */
-    memcpy(where, substitute, strlen(substitute));
-
-    close(fd) ;
-    munmap(buf, hs) ;
-    qfits_free(buf2) ;
-    return 0 ;
-}
-
-/*----------------------------------------------------------------------------*/
-/**
-  @brief    Return the current QFITS version
-  @return   the QFITS version
- */
-/*----------------------------------------------------------------------------*/
-const char * qfits_version(void)
-{
-    return (const char *)PACKAGE_VERSION ;
-}
-
-/**@}*/
diff --git a/libqfits/src/qfits_tools.h b/libqfits/src/qfits_tools.h
deleted file mode 100644
index a516da4..0000000
--- a/libqfits/src/qfits_tools.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/* $Id: qfits_tools.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-#ifndef QFITS_TOOLS_H
-#define QFITS_TOOLS_H
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-/*-----------------------------------------------------------------------------
-                                   Defines
- -----------------------------------------------------------------------------*/
-
-/* Unknown type for FITS value */
-#define QFITS_UNKNOWN       0
-/* Boolean type for FITS value */
-#define QFITS_BOOLEAN       1
-/* Int type for FITS value */
-#define    QFITS_INT        2
-/* Float type for FITS value */
-#define QFITS_FLOAT         3
-/* Complex type for FITS value */
-#define QFITS_COMPLEX       4
-/* String type for FITS value */
-#define QFITS_STRING        5
-
-/*-----------------------------------------------------------------------------
-                              Function codes
- -----------------------------------------------------------------------------*/
-
-char * qfits_query_hdr(const char *, const char *) ;
-char * qfits_query_ext(const char *, const char *, int) ;
-int qfits_query_n_ext(const char *) ;
-int qfits_query_nplanes(const char *, int) ;
-char * qfits_pretty_string(const char *) ;
-int qfits_is_boolean(const char *) ;
-int qfits_is_int(const char *) ;
-int qfits_is_float(const char *) ;
-int qfits_is_complex(const char *) ;
-int qfits_is_string(const char *) ;
-int qfits_get_type(const char *) ;
-char * qfits_query_card(const char *, const char *) ;
-int qfits_replace_card(const char *, const char *, const char *) ;
-const char * qfits_version(void) ;
-
-#endif
diff --git a/libqfits/test/Makefile.am b/libqfits/test/Makefile.am
deleted file mode 100644
index 54ecb4b..0000000
--- a/libqfits/test/Makefile.am
+++ /dev/null
@@ -1,37 +0,0 @@
-AUTOMAKE_OPTIONS = 1.8 foreign
-DISTCLEANFILES = *~
-
-AM_CPPFLAGS = -I$(top_srcdir)/src
-
-LDADD = $(top_builddir)/src/libqfits.la
-
-check_PROGRAMS = test_pixio  \
-		test_qfits \
-		test_tfits \
-		test_xmem \
-		test_xmem_stress
-
-test_pixio_SOURCES = test_pixio.c 
-test_qfits_SOURCES = test_qfits.c  
-test_tfits_SOURCES = test_tfits.c  
-test_xmem_SOURCES = test_xmem.c
-test_xmem_stress_SOURCES = test_xmem_stress.c
-
-noinst_HEADERS = pixset.h
-
-# Add here files or directories, that will be included in the distribution
-EXTRA_DIST = test_pixio.txt \
-		test_qfits.txt \
-		test_tfits.txt \
-		asciitable.tfits \
-		bintable.tfits 
-
-
-# Test to be executed with "make check"
-# They should return 0 test passed, else error
-#	test_stress 
-TESTS = test_pixio \
-	test_qfits \
-	test_tfits \
-	test_xmem \
-	test_xmem_stress
diff --git a/libqfits/test/Makefile.in b/libqfits/test/Makefile.in
deleted file mode 100644
index da5ecce..0000000
--- a/libqfits/test/Makefile.in
+++ /dev/null
@@ -1,665 +0,0 @@
-# Makefile.in generated by automake 1.11.6 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-# Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
- at SET_MAKE@
-
-VPATH = @srcdir@
-am__make_dryrun = \
-  { \
-    am__dry=no; \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        echo 'am--echo: ; @echo "AM"  OK' | $(MAKE) -f - 2>/dev/null \
-          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
-      *) \
-        for am__flg in $$MAKEFLAGS; do \
-          case $$am__flg in \
-            *=*|--*) ;; \
-            *n*) am__dry=yes; break;; \
-          esac; \
-        done;; \
-    esac; \
-    test $$am__dry = yes; \
-  }
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-check_PROGRAMS = test_pixio$(EXEEXT) test_qfits$(EXEEXT) \
-	test_tfits$(EXEEXT) test_xmem$(EXEEXT) \
-	test_xmem_stress$(EXEEXT)
-TESTS = test_pixio$(EXEEXT) test_qfits$(EXEEXT) test_tfits$(EXEEXT) \
-	test_xmem$(EXEEXT) test_xmem_stress$(EXEEXT)
-subdir = test
-DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
-	$(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4macros/eso.m4 \
-	$(top_srcdir)/m4macros/libtool.m4 \
-	$(top_srcdir)/m4macros/ltoptions.m4 \
-	$(top_srcdir)/m4macros/ltsugar.m4 \
-	$(top_srcdir)/m4macros/ltversion.m4 \
-	$(top_srcdir)/m4macros/lt~obsolete.m4 \
-	$(top_srcdir)/m4macros/qfits_memory.m4 \
-	$(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am_test_pixio_OBJECTS = test_pixio.$(OBJEXT)
-test_pixio_OBJECTS = $(am_test_pixio_OBJECTS)
-test_pixio_LDADD = $(LDADD)
-test_pixio_DEPENDENCIES = $(top_builddir)/src/libqfits.la
-am_test_qfits_OBJECTS = test_qfits.$(OBJEXT)
-test_qfits_OBJECTS = $(am_test_qfits_OBJECTS)
-test_qfits_LDADD = $(LDADD)
-test_qfits_DEPENDENCIES = $(top_builddir)/src/libqfits.la
-am_test_tfits_OBJECTS = test_tfits.$(OBJEXT)
-test_tfits_OBJECTS = $(am_test_tfits_OBJECTS)
-test_tfits_LDADD = $(LDADD)
-test_tfits_DEPENDENCIES = $(top_builddir)/src/libqfits.la
-am_test_xmem_OBJECTS = test_xmem.$(OBJEXT)
-test_xmem_OBJECTS = $(am_test_xmem_OBJECTS)
-test_xmem_LDADD = $(LDADD)
-test_xmem_DEPENDENCIES = $(top_builddir)/src/libqfits.la
-am_test_xmem_stress_OBJECTS = test_xmem_stress.$(OBJEXT)
-test_xmem_stress_OBJECTS = $(am_test_xmem_stress_OBJECTS)
-test_xmem_stress_LDADD = $(LDADD)
-test_xmem_stress_DEPENDENCIES = $(top_builddir)/src/libqfits.la
-DEFAULT_INCLUDES = -I. at am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
-	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-CCLD = $(CC)
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
-	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
-	$(LDFLAGS) -o $@
-SOURCES = $(test_pixio_SOURCES) $(test_qfits_SOURCES) \
-	$(test_tfits_SOURCES) $(test_xmem_SOURCES) \
-	$(test_xmem_stress_SOURCES)
-DIST_SOURCES = $(test_pixio_SOURCES) $(test_qfits_SOURCES) \
-	$(test_tfits_SOURCES) $(test_xmem_SOURCES) \
-	$(test_xmem_stress_SOURCES)
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-HEADERS = $(noinst_HEADERS)
-ETAGS = etags
-CTAGS = ctags
-am__tty_colors = \
-red=; grn=; lgn=; blu=; std=
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DOXYGEN = @DOXYGEN@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LATEX = @LATEX@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBTOOL_DEPS = @LIBTOOL_DEPS@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-LT_AGE = @LT_AGE@
-LT_CURRENT = @LT_CURRENT@
-LT_REVISION = @LT_REVISION@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-QFITS_CFLAGS = @QFITS_CFLAGS@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-AUTOMAKE_OPTIONS = 1.8 foreign
-DISTCLEANFILES = *~
-AM_CPPFLAGS = -I$(top_srcdir)/src
-LDADD = $(top_builddir)/src/libqfits.la
-test_pixio_SOURCES = test_pixio.c 
-test_qfits_SOURCES = test_qfits.c  
-test_tfits_SOURCES = test_tfits.c  
-test_xmem_SOURCES = test_xmem.c
-test_xmem_stress_SOURCES = test_xmem_stress.c
-noinst_HEADERS = pixset.h
-
-# Add here files or directories, that will be included in the distribution
-EXTRA_DIST = test_pixio.txt \
-		test_qfits.txt \
-		test_tfits.txt \
-		asciitable.tfits \
-		bintable.tfits 
-
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign test/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-checkPROGRAMS:
-	@list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
-	echo " rm -f" $$list; \
-	rm -f $$list || exit $$?; \
-	test -n "$(EXEEXT)" || exit 0; \
-	list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
-	echo " rm -f" $$list; \
-	rm -f $$list
-test_pixio$(EXEEXT): $(test_pixio_OBJECTS) $(test_pixio_DEPENDENCIES) $(EXTRA_test_pixio_DEPENDENCIES) 
-	@rm -f test_pixio$(EXEEXT)
-	$(LINK) $(test_pixio_OBJECTS) $(test_pixio_LDADD) $(LIBS)
-test_qfits$(EXEEXT): $(test_qfits_OBJECTS) $(test_qfits_DEPENDENCIES) $(EXTRA_test_qfits_DEPENDENCIES) 
-	@rm -f test_qfits$(EXEEXT)
-	$(LINK) $(test_qfits_OBJECTS) $(test_qfits_LDADD) $(LIBS)
-test_tfits$(EXEEXT): $(test_tfits_OBJECTS) $(test_tfits_DEPENDENCIES) $(EXTRA_test_tfits_DEPENDENCIES) 
-	@rm -f test_tfits$(EXEEXT)
-	$(LINK) $(test_tfits_OBJECTS) $(test_tfits_LDADD) $(LIBS)
-test_xmem$(EXEEXT): $(test_xmem_OBJECTS) $(test_xmem_DEPENDENCIES) $(EXTRA_test_xmem_DEPENDENCIES) 
-	@rm -f test_xmem$(EXEEXT)
-	$(LINK) $(test_xmem_OBJECTS) $(test_xmem_LDADD) $(LIBS)
-test_xmem_stress$(EXEEXT): $(test_xmem_stress_OBJECTS) $(test_xmem_stress_DEPENDENCIES) $(EXTRA_test_xmem_stress_DEPENDENCIES) 
-	@rm -f test_xmem_stress$(EXEEXT)
-	$(LINK) $(test_xmem_stress_OBJECTS) $(test_xmem_stress_LDADD) $(LIBS)
-
-mostlyclean-compile:
-	-rm -f *.$(OBJEXT)
-
-distclean-compile:
-	-rm -f *.tab.c
-
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/test_pixio.Po at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/test_qfits.Po at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/test_tfits.Po at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/test_xmem.Po at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/test_xmem_stress.Po at am__quote@
-
-.c.o:
- at am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- at am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCC_FALSE@	$(COMPILE) -c $<
-
-.c.obj:
- at am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- at am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
-
-.c.lo:
- at am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- at am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
-	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
-	unique=`for i in $$list; do \
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-	  done | \
-	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
-	      END { if (nonempty) { for (i in files) print i; }; }'`; \
-	mkid -fID $$unique
-tags: TAGS
-
-TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
-		$(TAGS_FILES) $(LISP)
-	set x; \
-	here=`pwd`; \
-	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
-	unique=`for i in $$list; do \
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-	  done | \
-	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
-	      END { if (nonempty) { for (i in files) print i; }; }'`; \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: CTAGS
-CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
-		$(TAGS_FILES) $(LISP)
-	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
-	unique=`for i in $$list; do \
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-	  done | \
-	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
-	      END { if (nonempty) { for (i in files) print i; }; }'`; \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-check-TESTS: $(TESTS)
-	@failed=0; all=0; xfail=0; xpass=0; skip=0; \
-	srcdir=$(srcdir); export srcdir; \
-	list=' $(TESTS) '; \
-	$(am__tty_colors); \
-	if test -n "$$list"; then \
-	  for tst in $$list; do \
-	    if test -f ./$$tst; then dir=./; \
-	    elif test -f $$tst; then dir=; \
-	    else dir="$(srcdir)/"; fi; \
-	    if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
-	      all=`expr $$all + 1`; \
-	      case " $(XFAIL_TESTS) " in \
-	      *[\ \	]$$tst[\ \	]*) \
-		xpass=`expr $$xpass + 1`; \
-		failed=`expr $$failed + 1`; \
-		col=$$red; res=XPASS; \
-	      ;; \
-	      *) \
-		col=$$grn; res=PASS; \
-	      ;; \
-	      esac; \
-	    elif test $$? -ne 77; then \
-	      all=`expr $$all + 1`; \
-	      case " $(XFAIL_TESTS) " in \
-	      *[\ \	]$$tst[\ \	]*) \
-		xfail=`expr $$xfail + 1`; \
-		col=$$lgn; res=XFAIL; \
-	      ;; \
-	      *) \
-		failed=`expr $$failed + 1`; \
-		col=$$red; res=FAIL; \
-	      ;; \
-	      esac; \
-	    else \
-	      skip=`expr $$skip + 1`; \
-	      col=$$blu; res=SKIP; \
-	    fi; \
-	    echo "$${col}$$res$${std}: $$tst"; \
-	  done; \
-	  if test "$$all" -eq 1; then \
-	    tests="test"; \
-	    All=""; \
-	  else \
-	    tests="tests"; \
-	    All="All "; \
-	  fi; \
-	  if test "$$failed" -eq 0; then \
-	    if test "$$xfail" -eq 0; then \
-	      banner="$$All$$all $$tests passed"; \
-	    else \
-	      if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
-	      banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
-	    fi; \
-	  else \
-	    if test "$$xpass" -eq 0; then \
-	      banner="$$failed of $$all $$tests failed"; \
-	    else \
-	      if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
-	      banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
-	    fi; \
-	  fi; \
-	  dashes="$$banner"; \
-	  skipped=""; \
-	  if test "$$skip" -ne 0; then \
-	    if test "$$skip" -eq 1; then \
-	      skipped="($$skip test was not run)"; \
-	    else \
-	      skipped="($$skip tests were not run)"; \
-	    fi; \
-	    test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
-	      dashes="$$skipped"; \
-	  fi; \
-	  report=""; \
-	  if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
-	    report="Please report to $(PACKAGE_BUGREPORT)"; \
-	    test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
-	      dashes="$$report"; \
-	  fi; \
-	  dashes=`echo "$$dashes" | sed s/./=/g`; \
-	  if test "$$failed" -eq 0; then \
-	    col="$$grn"; \
-	  else \
-	    col="$$red"; \
-	  fi; \
-	  echo "$${col}$$dashes$${std}"; \
-	  echo "$${col}$$banner$${std}"; \
-	  test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \
-	  test -z "$$report" || echo "$${col}$$report$${std}"; \
-	  echo "$${col}$$dashes$${std}"; \
-	  test "$$failed" -eq 0; \
-	else :; fi
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-	$(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
-	$(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(HEADERS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-	-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
-	mostlyclean-am
-
-distclean: distclean-am
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
-	distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
-	mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: check-am install-am install-strip
-
-.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
-	clean-checkPROGRAMS clean-generic clean-libtool ctags \
-	distclean distclean-compile distclean-generic \
-	distclean-libtool distclean-tags distdir dvi dvi-am html \
-	html-am info info-am install install-am install-data \
-	install-data-am install-dvi install-dvi-am install-exec \
-	install-exec-am install-html install-html-am install-info \
-	install-info-am install-man install-pdf install-pdf-am \
-	install-ps install-ps-am install-strip installcheck \
-	installcheck-am installdirs maintainer-clean \
-	maintainer-clean-generic mostlyclean mostlyclean-compile \
-	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
-	tags uninstall uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/libqfits/test/asciitable.tfits b/libqfits/test/asciitable.tfits
deleted file mode 100644
index de25630..0000000
--- a/libqfits/test/asciitable.tfits
+++ /dev/null
@@ -1,156 +0,0 @@
-SIMPLE  =                    T / Standard FITS file                             BITPIX  =                    8 / No. of bits per pixel                          NAXIS   =                    0 / Minimum FITS header - no data                  EXTEND  =                    T / There may be FITS extensions                   BLOCKED =                    T / The file may be blocked                                                                                                        ORIGIN  = 'E [...]
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H                                                                                                                                                                                                                                                                                                                                                                                        [...]
\ No newline at end of file
diff --git a/libqfits/test/bintable.tfits b/libqfits/test/bintable.tfits
deleted file mode 100644
index 49b1baa..0000000
--- a/libqfits/test/bintable.tfits
+++ /dev/null
@@ -1,194 +0,0 @@
-SIMPLE  =                    T / Standard FITS file                             BITPIX  =                    8 / No. of bits per pixel                          NAXIS   =                    0 / Minimum FITS header - no data                  EXTEND  =                    T / There may be FITS extensions                   BLOCKED =                    T / The file may be blocked                                                                                                        ORIGIN  = 'E [...]
-?�  @   @@  @�  ?�      @       Ident2002��?�             ?�   @  @@  FT            
�  @   @@  @�         @       Ident2003����?�      @       �  @   @@  TF         1   ?�  @   @@  @�  ?�      �     PIdent2004��123<�~:�{�@       ?�  @   ?���FF 
= 
= 
=   8    ?�  C�;
��  @�  ?�      @        Ident2005�A�C?�      � ����?�  @    #E              ?�  @   @@  @�  �������@       Ident      QRS��      �       �  @   @@  ��TT     
=      ��~:@   @@  @�  ?�      �      EIdent2007�bc?�      @       ?�  ��;
@@   F             [...]
-Ident2008" qrs?�      @       ��  @   @@  F  
=       @   ?�  @   @@  @�  ?�      C�;
S�<z at Ident2009D@����~:�{�@       ?�  @    #EFF         �   	����@   @@  @�  �       @                 �����?�      @       ?�  @   @@  	T  	  
= 	    ]   
?�  @   @@  @�  ����������      �Ident2011�ȡ��?�      @       ?�  �  @@  
- T 
-  
-  
-    z   ?�  @   � @�  ?�      �������                           	 
- 
 
 
   	
-


 	
-


 	
-


 	
-


 	
-


 	
-


 	
-


 	
-


	 											
-	
	
	
		
- 
-
-
-
-
-
-
-
-
-	
-
-
-

-

-
-
-
 








	

-








 








	

-








 








	
-







 	
-


 	
-


                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         [...]
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H           	 
- 
 
 
               
 
 
    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H                                                                                                                                                                                                                                                                                                                                                                                        [...]
\ No newline at end of file
diff --git a/libqfits/test/pixset.h b/libqfits/test/pixset.h
deleted file mode 100644
index e5fcff0..0000000
--- a/libqfits/test/pixset.h
+++ /dev/null
@@ -1,118 +0,0 @@
-#define TEST_LX     8
-#define TEST_LY     35
-#define TEST_NPIX   (TEST_LX * TEST_LY)
-
-static float floatpix_set[TEST_NPIX] = {
--65535,  -65535,  -65535,  -65535,  -65535,  -65535,  -65535,  -65535, 
--32767,  -32767,  -32767,  -32767,  -32767,  -32767,  -32767,  -32767, 
--16383,  -16383,  -16383,  -16383,  -16383,  -16383,  -16383,  -16383, 
- -8191,   -8191,   -8191,   -8191,   -8191,   -8191,   -8191,   -8191, 
- -4095,   -4095,   -4095,   -4095,   -4095,   -4095,   -4095,   -4095, 
- -2047,   -2047,   -2047,   -2047,   -2047,   -2047,   -2047,   -2047, 
- -1023,   -1023,   -1023,   -1023,   -1023,   -1023,   -1023,   -1023, 
-  -511,    -511,    -511,    -511,    -511,    -511,    -511,    -511, 
-  -255,    -255,    -255,    -255,    -255,    -255,    -255,    -255, 
-  -127,    -127,    -127,    -127,    -127,    -127,    -127,    -127, 
-   -63,     -63,     -63,     -63,     -63,     -63,     -63,     -63, 
-   -31,     -31,     -31,     -31,     -31,     -31,     -31,     -31, 
-   -15,     -15,     -15,     -15,     -15,     -15,     -15,     -15, 
-    -7,      -7,      -7,      -7,      -7,      -7,      -7,      -7, 
-    -3,      -3,      -3,      -3,      -3,      -3,      -3,      -3, 
-    -1,      -1,      -1,      -1,      -1,      -1,      -1,      -1, 
-     0,       0,       0,       0,       0,       0,       0,       0, 
-     0,       0,       0,       0,       0,       0,       0,       0, 
-     0,       0,       0,       0,       0,       0,       0,       0, 
-     1,       1,       1,       1,       1,       1,       1,       1, 
-     3,       3,       3,       3,       3,       3,       3,       3, 
-     7,       7,       7,       7,       7,       7,       7,       7, 
-    15,      15,      15,      15,      15,      15,      15,      15, 
-    31,      31,      31,      31,      31,      31,      31,      31, 
-    63,      63,      63,      63,      63,      63,      63,      63, 
-   127,     127,     127,     127,     127,     127,     127,     127, 
-   255,     255,     255,     255,     255,     255,     255,     255, 
-   511,     511,     511,     511,     511,     511,     511,     511, 
-  1023,    1023,    1023,    1023,    1023,    1023,    1023,    1023, 
-  2047,    2047,    2047,    2047,    2047,    2047,    2047,    2047, 
-  4095,    4095,    4095,    4095,    4095,    4095,    4095,    4095, 
-  8191,    8191,    8191,    8191,    8191,    8191,    8191,    8191, 
- 16383,   16383,   16383,   16383,   16383,   16383,   16383,   16383, 
- 32767,   32767,   32767,   32767,   32767,   32767,   32767,   32767, 
- 65535,   65535,   65535,   65535,   65535,   65535,   65535,   65535
-} ;
-
-static double doublepix_set[TEST_NPIX] = {
--65535,  -65535,  -65535,  -65535,  -65535,  -65535,  -65535,  -65535, 
--32767,  -32767,  -32767,  -32767,  -32767,  -32767,  -32767,  -32767, 
--16383,  -16383,  -16383,  -16383,  -16383,  -16383,  -16383,  -16383, 
- -8191,   -8191,   -8191,   -8191,   -8191,   -8191,   -8191,   -8191, 
- -4095,   -4095,   -4095,   -4095,   -4095,   -4095,   -4095,   -4095, 
- -2047,   -2047,   -2047,   -2047,   -2047,   -2047,   -2047,   -2047, 
- -1023,   -1023,   -1023,   -1023,   -1023,   -1023,   -1023,   -1023, 
-  -511,    -511,    -511,    -511,    -511,    -511,    -511,    -511, 
-  -255,    -255,    -255,    -255,    -255,    -255,    -255,    -255, 
-  -127,    -127,    -127,    -127,    -127,    -127,    -127,    -127, 
-   -63,     -63,     -63,     -63,     -63,     -63,     -63,     -63, 
-   -31,     -31,     -31,     -31,     -31,     -31,     -31,     -31, 
-   -15,     -15,     -15,     -15,     -15,     -15,     -15,     -15, 
-    -7,      -7,      -7,      -7,      -7,      -7,      -7,      -7, 
-    -3,      -3,      -3,      -3,      -3,      -3,      -3,      -3, 
-    -1,      -1,      -1,      -1,      -1,      -1,      -1,      -1, 
-     0,       0,       0,       0,       0,       0,       0,       0, 
-     0,       0,       0,       0,       0,       0,       0,       0, 
-     0,       0,       0,       0,       0,       0,       0,       0, 
-     1,       1,       1,       1,       1,       1,       1,       1, 
-     3,       3,       3,       3,       3,       3,       3,       3, 
-     7,       7,       7,       7,       7,       7,       7,       7, 
-    15,      15,      15,      15,      15,      15,      15,      15, 
-    31,      31,      31,      31,      31,      31,      31,      31, 
-    63,      63,      63,      63,      63,      63,      63,      63, 
-   127,     127,     127,     127,     127,     127,     127,     127, 
-   255,     255,     255,     255,     255,     255,     255,     255, 
-   511,     511,     511,     511,     511,     511,     511,     511, 
-  1023,    1023,    1023,    1023,    1023,    1023,    1023,    1023, 
-  2047,    2047,    2047,    2047,    2047,    2047,    2047,    2047, 
-  4095,    4095,    4095,    4095,    4095,    4095,    4095,    4095, 
-  8191,    8191,    8191,    8191,    8191,    8191,    8191,    8191, 
- 16383,   16383,   16383,   16383,   16383,   16383,   16383,   16383, 
- 32767,   32767,   32767,   32767,   32767,   32767,   32767,   32767, 
- 65535,   65535,   65535,   65535,   65535,   65535,   65535,   65535
-} ;
-
-static int intpix_set[TEST_NPIX] = {
--65535,  -65535,  -65535,  -65535,  -65535,  -65535,  -65535,  -65535, 
--32767,  -32767,  -32767,  -32767,  -32767,  -32767,  -32767,  -32767, 
--16383,  -16383,  -16383,  -16383,  -16383,  -16383,  -16383,  -16383, 
- -8191,   -8191,   -8191,   -8191,   -8191,   -8191,   -8191,   -8191, 
- -4095,   -4095,   -4095,   -4095,   -4095,   -4095,   -4095,   -4095, 
- -2047,   -2047,   -2047,   -2047,   -2047,   -2047,   -2047,   -2047, 
- -1023,   -1023,   -1023,   -1023,   -1023,   -1023,   -1023,   -1023, 
-  -511,    -511,    -511,    -511,    -511,    -511,    -511,    -511, 
-  -255,    -255,    -255,    -255,    -255,    -255,    -255,    -255, 
-  -127,    -127,    -127,    -127,    -127,    -127,    -127,    -127, 
-   -63,     -63,     -63,     -63,     -63,     -63,     -63,     -63, 
-   -31,     -31,     -31,     -31,     -31,     -31,     -31,     -31, 
-   -15,     -15,     -15,     -15,     -15,     -15,     -15,     -15, 
-    -7,      -7,      -7,      -7,      -7,      -7,      -7,      -7, 
-    -3,      -3,      -3,      -3,      -3,      -3,      -3,      -3, 
-    -1,      -1,      -1,      -1,      -1,      -1,      -1,      -1, 
-     0,       0,       0,       0,       0,       0,       0,       0, 
-     0,       0,       0,       0,       0,       0,       0,       0, 
-     0,       0,       0,       0,       0,       0,       0,       0, 
-     1,       1,       1,       1,       1,       1,       1,       1, 
-     3,       3,       3,       3,       3,       3,       3,       3, 
-     7,       7,       7,       7,       7,       7,       7,       7, 
-    15,      15,      15,      15,      15,      15,      15,      15, 
-    31,      31,      31,      31,      31,      31,      31,      31, 
-    63,      63,      63,      63,      63,      63,      63,      63, 
-   127,     127,     127,     127,     127,     127,     127,     127, 
-   255,     255,     255,     255,     255,     255,     255,     255, 
-   511,     511,     511,     511,     511,     511,     511,     511, 
-  1023,    1023,    1023,    1023,    1023,    1023,    1023,    1023, 
-  2047,    2047,    2047,    2047,    2047,    2047,    2047,    2047, 
-  4095,    4095,    4095,    4095,    4095,    4095,    4095,    4095, 
-  8191,    8191,    8191,    8191,    8191,    8191,    8191,    8191, 
- 16383,   16383,   16383,   16383,   16383,   16383,   16383,   16383, 
- 32767,   32767,   32767,   32767,   32767,   32767,   32767,   32767, 
- 65535,   65535,   65535,   65535,   65535,   65535,   65535,   65535
-} ;
-
diff --git a/libqfits/test/test_pixio.c b/libqfits/test/test_pixio.c
deleted file mode 100644
index d19e6a8..0000000
--- a/libqfits/test/test_pixio.c
+++ /dev/null
@@ -1,608 +0,0 @@
-/* $Id: test_pixio.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*---------------------------------------------------------------------------
-                                   Includes
- ---------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <stdarg.h>
-#include <math.h>
-
-#include <sys/stat.h>
-#include <sys/types.h>
-
-#include "qfits_header.h"
-#include "qfits_image.h"
-#include "qfits_md5.h"
-#include "qfits_memory.h"
-
-/* Get test data sets */
-#include "pixset.h"
-
-/*---------------------------------------------------------------------------
-                                   Defines
- ---------------------------------------------------------------------------*/
-
-/* 5 possible values for FITS BITPIX */
-#define FITS_NBITPIX    5
-
-/* Name of temporary directory */
-#define TEST_DIRNAME    "pixio_dat"
-
-/*---------------------------------------------------------------------------
-                               Static variables
- ---------------------------------------------------------------------------*/
-/* List of all FITS BITPIX possible values */
-static int fits_bitpix[FITS_NBITPIX] = {8, 16, 32, -32, -64};
-
-/* List of all DATAMD5 signatures for the generated files */
-static char md5sigs[FITS_NBITPIX][33] =
-{
-    "980c2e1bd6f6418e000b4f2bba665e69",
-    "df8420dce7a4e6b3edb23171b9112d1d",
-    "3b50d1cf34f3f5687c8f00ebbecc74b4",
-    "f502ad23f6b250cb0f9f333c50314751",
-    "d77c59b732df2a65c036dbf2fb180ad3"
-};
-
-/*---------------------------------------------------------------------------
-                              Function codes
- ---------------------------------------------------------------------------*/
-
-/* Print out a comment */
-static void say(char * fmt, ...)
-{
-    va_list ap ;
-    fprintf(stdout, "qtest:\t\t");
-    va_start(ap, fmt);
-    vfprintf(stdout, fmt, ap);
-    va_end(ap);
-    fprintf(stdout, "\n");
-}
-
-/* Print out an error message */
-static void fail(char * fmt, ...)
-{
-    va_list ap ;
-    fprintf(stderr, "qtest: error: ");
-    va_start(ap, fmt);
-    vfprintf(stderr, fmt, ap);
-    va_end(ap);
-    fprintf(stderr, "\n");
-}
-
-
-/* Dump data to a test file */
-static int test_dumpfile(qfitsdumper * qd)
-{
-    qfits_header    *   qh ;
-    FILE            *   out ;
-    char                s_out[8];
-
-    qh = qfits_header_default();
-    qfits_header_add(qh, "NAXIS", "2", "Number of axes", NULL);
-    sprintf(s_out, "%d", TEST_LX);
-    qfits_header_add(qh, "NAXIS1", s_out, "size in x", NULL);
-    sprintf(s_out, "%d", TEST_LY);
-    qfits_header_add(qh, "NAXIS2", s_out, "size in y", NULL);
-    sprintf(s_out, "%d", qd->out_ptype);
-    qfits_header_add(qh, "BITPIX", s_out, "Bits per pixel", NULL);
-
-    out = fopen(qd->filename, "w");
-    if (out==NULL) {
-        fail("cannot create test file");
-        qfits_header_destroy(qh);
-        return 1 ;
-    }
-    if (qfits_header_dump(qh, out)!=0) {
-        fail("cannot dump header");
-        qfits_header_destroy(qh);
-        return 1 ;
-    }
-    fclose(out);
-    qfits_header_destroy(qh);
-
-    if (qfits_pixdump(qd)!=0) {
-        fail("cannot dump data section");
-        remove(qd->filename);
-        return 1 ;
-    }
-    qfits_zeropad(qd->filename);
-    return 0 ;
-}
-
-
-/*
- * For this first test, the idea is to have the same array of pixels
- * defined three times: as int, as float, and as double. Pixels in the
- * three arrays contain strictly the same values but under different data
- * types.
- * All arrays are successively dumped to all possible FITS pixel types
- * (BITPIX), yielding 5 data types per input array. A first check is to
- * ensure that all input pixel types can be dumped to all possible BITPIX
- * values.
- * The second thing to test is that FITS files with the same BITPIX have
- * the same MD5 data signature, i.e. that dumping from two different data
- * types yields the same FITS file.
- */
-
-static int test_dumpdatasets(void)
-{
-    int             err ;
-    char            filename[1024] ;
-    char        *   ptype_name ;
-    qfitsdumper     qd ;
-    int             i ;
-    const char  *   datamd5 ;
-
-    err = 0 ;
-    qd.npix  = TEST_NPIX ;
-
-    say("-----> Data dump tests");
-
-    /* Create working directory to avoid flooding the current one */
-    say("creating directory %s", TEST_DIRNAME);
-    if (mkdir(TEST_DIRNAME, 0777)!=0) {
-        fail("cannot create directory '%s'", TEST_DIRNAME);
-        return 1 ;
-    }
-    /* Set pointers to the relevant pixel buffers */
-    qd.ibuf = intpix_set ;
-    qd.fbuf = floatpix_set ;
-    qd.dbuf = doublepix_set ;
-
-    /* Create file from the int array with all possible FITS types */
-    qd.ptype = PTYPE_INT ;
-    ptype_name = "int" ;
-
-    /* Loop on all FITS types */
-    for (i=0 ; i<FITS_NBITPIX ; i++) {
-        qd.out_ptype = fits_bitpix[i];
-        sprintf(filename,
-                "%s/pixio_%s_%d.fits",
-                TEST_DIRNAME,
-                ptype_name,
-                qd.out_ptype);
-        qd.filename = filename ;
-        say("dumping data % 6s -> BITPIX=% 3d", ptype_name, qd.out_ptype);
-        if (test_dumpfile(&qd)!=0) {
-            err++ ;
-        } else {
-            /* Verify MD5 signature */
-            datamd5 = qfits_datamd5(filename);
-            if (strcmp(datamd5, md5sigs[i])) {
-                fail("MD5 signature does not match");
-                err++ ;
-            }
-        }
-    }
-
-    /* Create file from the float array with all possible FITS types */
-    qd.ptype = PTYPE_FLOAT ;
-    ptype_name = "float" ;
-
-    /* Loop on all FITS types */
-    for (i=0 ; i<FITS_NBITPIX ; i++) {
-        qd.out_ptype = fits_bitpix[i];
-        sprintf(filename,
-                "%s/pixio_%s_%d.fits",
-                TEST_DIRNAME,
-                ptype_name,
-                qd.out_ptype);
-        qd.filename = filename ;
-        say("dumping data % 6s -> BITPIX=% 3d", ptype_name, qd.out_ptype);
-        if (test_dumpfile(&qd)!=0) {
-            err++ ;
-        } else {
-            /* Verify MD5 signature */
-            datamd5 = qfits_datamd5(filename);
-            if (strcmp(datamd5, md5sigs[i])) {
-                fail("MD5 signature does not match");
-                err++ ;
-            }
-        }
-    }
-
-    /* Create file from the double array with all possible FITS types */
-    qd.ptype = PTYPE_DOUBLE ;
-    ptype_name = "double" ;
-
-    /* Loop on all FITS types */
-    for (i=0 ; i<FITS_NBITPIX ; i++) {
-        qd.out_ptype = fits_bitpix[i];
-        sprintf(filename,
-                "%s/pixio_%s_%d.fits",
-                TEST_DIRNAME,
-                ptype_name,
-                qd.out_ptype);
-        qd.filename = filename ;
-        say("dumping data % 6s -> BITPIX=% 3d", ptype_name, qd.out_ptype);
-        if (test_dumpfile(&qd)!=0) {
-            err++ ;
-        } else {
-            /* Verify MD5 signature */
-            datamd5 = qfits_datamd5(filename);
-            if (strcmp(datamd5, md5sigs[i])) {
-                fail("MD5 signature does not match");
-                err++ ;
-            }
-        }
-    }
-
-    return err ;
-}
-
-/*
- * Simple comparison function for the int array
- */
-static int check_intpix(int * arr, int bitpix)
-{
-    int i ;
-    int pix ;
-    int pixerr ;
-
-    pixerr=0 ;
-    for (i=0 ; i<TEST_NPIX ; i++) {
-        pix = intpix_set[i] ;
-        if (bitpix==8) {
-            if (intpix_set[i]<0)
-                pix=0 ;
-            else if (intpix_set[i]>255)
-                pix=255 ;
-        } else if (bitpix==16) {
-            if (intpix_set[i]<-32768) 
-                pix = -32768 ;
-            else if (intpix_set[i]>32767)
-                pix = 32767 ;
-        }
-        if (arr[i]!=pix)
-            pixerr++ ;
-    }
-    return pixerr ;
-}
-
-/*
- * Simple comparison function for the float array
- */
-static int check_floatpix(float * arr, int bitpix)
-{
-    int i ;
-    float pix ;
-    int pixerr ;
-
-    pixerr=0 ;
-    for (i=0 ; i<TEST_NPIX ; i++) {
-        pix = intpix_set[i] ;
-        if (bitpix==8) {
-            if (intpix_set[i]<0)
-                pix=0 ;
-            else if (intpix_set[i]>255)
-                pix=255 ;
-        } else if (bitpix==16) {
-            if (intpix_set[i]<-32768) 
-                pix = -32768 ;
-            else if (intpix_set[i]>32767)
-                pix = 32767 ;
-        }
-        if (fabs((double)(arr[i]-pix))>1e-7)
-            pixerr++ ;
-    }
-    return pixerr ;
-}
-
-/*
- * Simple comparison function for the double array
- */
-static int check_doublepix(double * arr, int bitpix)
-{
-    int i ;
-    double pix ;
-    int pixerr ;
-
-    pixerr=0 ;
-    for (i=0 ; i<TEST_NPIX ; i++) {
-        pix = intpix_set[i] ;
-        if (bitpix==8) {
-            if (intpix_set[i]<0)
-                pix=0 ;
-            else if (intpix_set[i]>255)
-                pix=255 ;
-        } else if (bitpix==16) {
-            if (intpix_set[i]<-32768) 
-                pix = -32768 ;
-            else if (intpix_set[i]>32767)
-                pix = 32767 ;
-        }
-        if (fabs(arr[i]-pix)>1e-7)
-            pixerr++ ;
-    }
-    return pixerr ;
-}
-
-/*
- * This second test tries to read back the data written in the first test,
- * and compares the values with what was initially sent to the files.
- */
-static int test_readdatasets(void)
-{
-    char    filename[1024];
-    int     i ;
-    qfitsloader ql ;
-    int     err, pixerr ;
-    char *  ptype_name ;
-
-    err=0 ;
-
-    say("-----> Data read tests");
-    ql.xtnum = 0 ;
-    ql.pnum  = 0 ;
-    ql.map   = 0 ;
-    
-    /* Test reading back from all files as int buffer */
-    ptype_name = "int" ;
-    ql.ptype   = PTYPE_INT ;
-
-    say("-----> int reading tests");
-    for (i=0 ; i<FITS_NBITPIX ; i++) {
-        sprintf(filename,
-                "%s/pixio_%s_%d.fits",
-                TEST_DIRNAME,
-                ptype_name,
-                fits_bitpix[i]);
-        ql.filename = filename ;
-        say("reading data from file: %s", filename);
-        /* Initialize loader */
-        if (qfitsloader_init(&ql)!=0) {
-            fail("cannot initialize loader on file %s", filename);
-            err++ ;
-        } else {
-            /* Check image size */
-            if (ql.lx!=TEST_LX || ql.ly!=TEST_LY) {
-                fail("wrong image size: %dx%d should be %dx%d",
-                     ql.lx,
-                     ql.ly,
-                     TEST_LX,
-                     TEST_LY);
-                err++ ;
-            }
-            /* Try loading pixel buffer */
-            if (qfits_loadpix(&ql)!=0) {
-                fail("cannot load pixel buffer");
-                err++ ;
-            } else {
-                /* Verify pixel values */
-                pixerr = check_intpix(ql.ibuf, fits_bitpix[i]);
-                if (pixerr) {
-                    fail("%d pixels have errors", pixerr);
-                    err += pixerr ;
-                }
-                qfits_free(ql.ibuf) ;
-            }
-        }
-    }
-
-    /* Test reading back from all files as int buffer */
-    ptype_name = "float" ;
-    ql.ptype   = PTYPE_FLOAT ;
-
-    say("-----> float reading tests");
-    for (i=0 ; i<FITS_NBITPIX ; i++) {
-        sprintf(filename,
-                "%s/pixio_%s_%d.fits",
-                TEST_DIRNAME,
-                ptype_name,
-                fits_bitpix[i]);
-        ql.filename = filename ;
-        say("reading data from file: %s", filename);
-        /* Initialize loader */
-        if (qfitsloader_init(&ql)!=0) {
-            fail("cannot initialize loader on file %s", filename);
-            err++ ;
-        } else {
-            /* Check image size */
-            if (ql.lx!=TEST_LX || ql.ly!=TEST_LY) {
-                fail("wrong image size: %dx%d should be %dx%d",
-                     ql.lx,
-                     ql.ly,
-                     TEST_LX,
-                     TEST_LY);
-                err++ ;
-            }
-            /* Try loading pixel buffer */
-            if (qfits_loadpix(&ql)!=0) {
-                fail("cannot load pixel buffer");
-                err++ ;
-            } else {
-                /* Verify pixel values */
-                pixerr = check_floatpix(ql.fbuf, fits_bitpix[i]);
-                if (pixerr) {
-                    fail("%d pixels have errors", pixerr);
-                    err += pixerr ;
-                }
-                qfits_free(ql.fbuf) ;
-            }
-        }
-    }
-
-    /* Test reading back from all files as double buffer */
-    ptype_name = "double" ;
-    ql.ptype   = PTYPE_DOUBLE ;
-
-    say("-----> double reading tests");
-    for (i=0 ; i<FITS_NBITPIX ; i++) {
-        sprintf(filename,
-                "%s/pixio_%s_%d.fits",
-                TEST_DIRNAME,
-                ptype_name,
-                fits_bitpix[i]);
-        ql.filename = filename ;
-        say("reading data from file: %s", filename);
-        /* Initialize loader */
-        if (qfitsloader_init(&ql)!=0) {
-            fail("cannot initialize loader on file %s", filename);
-            err++ ;
-        } else {
-            /* Check image size */
-            if (ql.lx!=TEST_LX || ql.ly!=TEST_LY) {
-                fail("wrong image size: %dx%d should be %dx%d",
-                     ql.lx,
-                     ql.ly,
-                     TEST_LX,
-                     TEST_LY);
-                err++ ;
-            }
-            /* Try loading pixel buffer */
-            if (qfits_loadpix(&ql)!=0) {
-                fail("cannot load pixel buffer");
-                err++ ;
-            } else {
-                /* Verify pixel values */
-                pixerr = check_doublepix(ql.dbuf, fits_bitpix[i]);
-                if (pixerr) {
-                    fail("%d pixels have errors", pixerr);
-                    err += pixerr ;
-                }
-                qfits_free(ql.dbuf) ;
-            }
-        }
-    }
-
-    /* Test reading back a window from all files as double buffer */
-    ptype_name = "double" ;
-    ql.ptype   = PTYPE_DOUBLE ;
-
-    say("-----> window double reading tests");
-    for (i=0 ; i<FITS_NBITPIX ; i++) {
-        sprintf(filename,
-                "%s/pixio_%s_%d.fits",
-                TEST_DIRNAME,
-                ptype_name,
-                fits_bitpix[i]);
-        ql.filename = filename ;
-        say("reading data from file: %s", filename);
-        /* Initialize loader */
-        if (qfitsloader_init(&ql)!=0) {
-            fail("cannot initialize loader on file %s", filename);
-            err++ ;
-        } else {
-            /* Check image size */
-            if (ql.lx!=TEST_LX || ql.ly!=TEST_LY) {
-                fail("wrong image size: %dx%d should be %dx%d",
-                     ql.lx,
-                     ql.ly,
-                     TEST_LX,
-                     TEST_LY);
-                err++ ;
-            }
-            /* Try loading pixel buffer */
-            if (qfits_loadpix_window(&ql, 4, 28, 4, 28)!=0) {
-                fail("cannot load pixel buffer");
-                err++ ;
-            } else {
-                /* Verify pixel values */
-                qfits_free(ql.dbuf) ;
-            }
-        }
-    }
-    return err ;
-}
-
-static void test_cleanup(void)
-{
-    int i ;
-    char filename[1024];
-    char * ptype_name ;
-
-    /* Delete all data files */
-    say("cleaning up data files...");
-    for (i=0 ; i<FITS_NBITPIX ; i++) {
-        ptype_name = "int" ;
-        sprintf(filename,
-                "%s/pixio_%s_%d.fits",
-                TEST_DIRNAME,
-                ptype_name,
-                fits_bitpix[i]);
-        remove(filename);
-
-        ptype_name = "float" ;
-        sprintf(filename,
-                "%s/pixio_%s_%d.fits",
-                TEST_DIRNAME,
-                ptype_name,
-                fits_bitpix[i]);
-        remove(filename);
-
-        ptype_name = "double" ;
-        sprintf(filename,
-                "%s/pixio_%s_%d.fits",
-                TEST_DIRNAME,
-                ptype_name,
-                fits_bitpix[i]);
-        remove(filename);
-    }
-    say("removing directory '%s'", TEST_DIRNAME);
-    rmdir(TEST_DIRNAME);
-}
-
-int main(int argc, char * argv[])
-{
-    int err ;
-    int i ;
-    int keep ;
-
-    keep=0 ;
-    for (i=1 ; i<argc ; i++) {
-        if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
-            printf("use: %s [options]\n"
-                   "options are:\n"
-                   "\n"
-                   "\t-k       To keep test data\n"
-                   "\n"
-                   "\n", argv[0]);
-            return 1 ;
-        } else if (!strcmp(argv[i], "-k")) {
-            keep=1 ;
-        } else {
-            printf("ignored option: %s\n", argv[i]);
-        }
-    }
-
-    err=0 ;
-    err += test_dumpdatasets();
-    err += test_readdatasets();
-
-    if (!keep) {
-        test_cleanup();
-    }
-    fprintf(stderr, "total error(s): %d\n", err);
-    return err ;
-}
-
diff --git a/libqfits/test/test_pixio.txt b/libqfits/test/test_pixio.txt
deleted file mode 100644
index 0897d4c..0000000
--- a/libqfits/test/test_pixio.txt
+++ /dev/null
@@ -1,38 +0,0 @@
-qtest:		-----> Data dump tests
-qtest:		creating directory pixio_dat
-qtest:		dumping data    int -> BITPIX=  8
-qtest:		dumping data    int -> BITPIX= 16
-qtest:		dumping data    int -> BITPIX= 32
-qtest:		dumping data    int -> BITPIX=-32
-qtest:		dumping data    int -> BITPIX=-64
-qtest:		dumping data  float -> BITPIX=  8
-qtest:		dumping data  float -> BITPIX= 16
-qtest:		dumping data  float -> BITPIX= 32
-qtest:		dumping data  float -> BITPIX=-32
-qtest:		dumping data  float -> BITPIX=-64
-qtest:		dumping data double -> BITPIX=  8
-qtest:		dumping data double -> BITPIX= 16
-qtest:		dumping data double -> BITPIX= 32
-qtest:		dumping data double -> BITPIX=-32
-qtest:		dumping data double -> BITPIX=-64
-qtest:		-----> Data read tests
-qtest:		-----> int reading tests
-qtest:		reading data from file: pixio_dat/pixio_int_8.fits
-qtest:		reading data from file: pixio_dat/pixio_int_16.fits
-qtest:		reading data from file: pixio_dat/pixio_int_32.fits
-qtest:		reading data from file: pixio_dat/pixio_int_-32.fits
-qtest:		reading data from file: pixio_dat/pixio_int_-64.fits
-qtest:		-----> float reading tests
-qtest:		reading data from file: pixio_dat/pixio_float_8.fits
-qtest:		reading data from file: pixio_dat/pixio_float_16.fits
-qtest:		reading data from file: pixio_dat/pixio_float_32.fits
-qtest:		reading data from file: pixio_dat/pixio_float_-32.fits
-qtest:		reading data from file: pixio_dat/pixio_float_-64.fits
-qtest:		-----> double reading tests
-qtest:		reading data from file: pixio_dat/pixio_double_8.fits
-qtest:		reading data from file: pixio_dat/pixio_double_16.fits
-qtest:		reading data from file: pixio_dat/pixio_double_32.fits
-qtest:		reading data from file: pixio_dat/pixio_double_-32.fits
-qtest:		reading data from file: pixio_dat/pixio_double_-64.fits
-qtest:		cleaning up data files...
-qtest:		removing directory 'pixio_dat'
diff --git a/libqfits/test/test_qfits.c b/libqfits/test/test_qfits.c
deleted file mode 100644
index 35bc84d..0000000
--- a/libqfits/test/test_qfits.c
+++ /dev/null
@@ -1,660 +0,0 @@
-/* $Id: test_qfits.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*-----------------------------------------------------------------------------
-                                   Includes
- -----------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdarg.h>
-#include <unistd.h>
-
-#include "qfits_header.h"
-#include "qfits_image.h"
-#include "qfits_tools.h"
-#include "qfits_rw.h"
-#include "qfits_md5.h"
-#include "qfits_memory.h"
-
-/*-----------------------------------------------------------------------------
-                                   Define
- -----------------------------------------------------------------------------*/
-
-#define QFITSTEST1             "QFITS.fits"
-#define QFITSTEST2             "QFITS_ext.fits"
-
-#define REFSIG                "6569daba7b124febfa0cd7813f555774"
-
-/*-----------------------------------------------------------------------------
-                                   Functions
- -----------------------------------------------------------------------------*/
-
-static float float_array_orig[] =
-{
-    1.0, 2.0, 0.0, -1.0, -2.0, 1e-4, -1e-4, 1e-6, -1e-6,
-    1.2345678, 3.1415926535, 19.71
-};
-
-static int int_array_orig[] =
-{
-    -32768, -16384, -8192, -4096, -1023, 0,
-     1023, 2048, 8191, 16387, 32767, 65536
-};
-
-static double double_array_orig[] =
-{
-    1.0, 2.0, 0.0, -1.0, -2.0, 1e-4, -1e-4, 1e-6, -1e-6,
-    1.2345678, 3.1415926535, 19.71
-};
-
-
-/* Print out a comment */
-static void say(char * fmt, ...)
-{
-    va_list ap ;
-    fprintf(stdout, "qtest:\t\t");
-    va_start(ap, fmt);
-    vfprintf(stdout, fmt, ap);
-    va_end(ap);
-    fprintf(stdout, "\n");
-}
- 
-/* Print out an error message */
-static void fail(char * fmt, ...)
-{
-    va_list ap ;
-    fprintf(stderr, "qtest: error: ");
-    va_start(ap, fmt);
-    vfprintf(stderr, fmt, ap);
-    va_end(ap);
-    fprintf(stderr, "\n");
-}
-
-/*---------------------------------------------------------------------------
-                                main
- ---------------------------------------------------------------------------*/
-
-int test_qfits_header_sort(void)
-{
-    qfits_header    *    qh ;
-    
-    /* Create header */
-    qh = qfits_header_new();
-    qfits_header_append(qh, "EXTEND", "value", "comment", NULL);
-    qfits_header_append(qh, "COMMENT", "value", "comment", NULL);
-    qfits_header_append(qh, "TFORM", "value", "comment", NULL);
-    qfits_header_append(qh, "BITPIX", "value", "comment", NULL);
-    qfits_header_append(qh, "NAXIS", "value", "comment", NULL);
-    qfits_header_append(qh, "NAXIS2", "value", "comment", NULL);
-    qfits_header_append(qh, "NAXIS1", "value", "comment", NULL);
-
-    /* Dump the header */
-    qfits_header_dump(qh, NULL) ;
-
-    /* Sort the header */
-    qfits_header_sort(&qh) ;
-
-    /* Dump the header */
-    qfits_header_dump(qh, NULL) ;
-    
-    /* Destroy the header */
-    qfits_header_destroy(qh) ;
-    return 0 ;
-}
-
-int test_qfits_filecreate(char * filename)
-{
-    qfits_header    *    qh ;
-    FILE            *    out ;
-    qfitsdumper            qd ;
-    int                    i ;
-
-    say("-----> Header creation");
-    say("Creating blank header");
-    qh = qfits_header_new();
-    if (qh==NULL) {
-        fail("qfits_header_new() failed");
-        return 1 ;
-    }
-    say("Destroying blank header");
-    /* Destroy header now */
-    qfits_header_destroy(qh);
-
-    /* Create minimal header (SIMPLE/END) */
-    say("Creating minimal header");
-    qh = qfits_header_default();
-    if (qh==NULL) {
-        fail("qfits_header_default() failed");
-        return 1 ;
-    }
-
-    say("Inserting primary keywords");
-    /* Insert XTENSION marker */
-    qfits_header_add(qh, "EXTEND", "T", "xtension might be present", NULL);
-
-    /* Insert a string */
-    qfits_header_add(qh, "KEY01", "value01", "comment 01", NULL);
-    /* Insert an int */
-    qfits_header_add(qh, "KEY02", "2", "comment 02", NULL);
-    /* Insert a double */
-    qfits_header_add(qh, "KEY03", "3.0", "comment 03", NULL);
-    /* Insert a complex */
-    qfits_header_add(qh, "KEY04", "4.0 4.2", "comment 04", NULL);
-    /* Insert a boolean */
-    qfits_header_add(qh, "KEY05", "T", "comment 05", NULL);
-
-
-    say("Inserting history keywords");
-    /* Insert HISTORY keys */
-    qfits_header_add(qh, "HISTORY", "1 history field", NULL, NULL);
-    qfits_header_add(qh, "HISTORY", "2 history field", NULL, NULL);
-    qfits_header_add(qh, "HISTORY", "3 history field", NULL, NULL);
-    qfits_header_add(qh, "HISTORY", "4 history field", NULL, NULL);
-
-    say("Inserting comment keywords");
-    /* Insert COMMENT keys */
-    qfits_header_add(qh, "COMMENT", "1 comment field", NULL, NULL);
-    qfits_header_add(qh, "COMMENT", "2 comment field", NULL, NULL);
-    qfits_header_add(qh, "COMMENT", "3 comment field", NULL, NULL);
-    qfits_header_add(qh, "COMMENT", "4 comment field", NULL, NULL);
-
-    say("Inserting hierarch keywords");
-    /* Insert HIERARCH ESO keys in reverse DICB order */
-    qfits_header_add(qh, "HIERARCH ESO NULL A", "0.0", "not DICB", NULL);
-    qfits_header_add(qh, "HIERARCH ESO NULL B", "0.0", "not DICB", NULL);
-    qfits_header_add(qh, "HIERARCH ESO NULL C", "0.0", "not DICB", NULL);
-
-    qfits_header_add(qh, "PRO.A", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "PRO.B", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "PRO.C", "0.0", "DICB compliant", NULL);
-
-    qfits_header_add(qh, "HIERARCH ESO LOG A", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "HIERARCH ESO LOG B", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "HIERARCH ESO LOG C", "0.0", "DICB compliant", NULL);
-
-    qfits_header_add(qh, "INS.A", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "INS.B", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "INS.C", "0.0", "DICB compliant", NULL);
-
-    qfits_header_add(qh, "HIERARCH ESO TEL A", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "HIERARCH ESO TEL B", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "HIERARCH ESO TEL C", "0.0", "DICB compliant", NULL);
-
-    qfits_header_add(qh, "GEN.A", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "GEN.B", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "GEN.C", "0.0", "DICB compliant", NULL);
-
-    qfits_header_add(qh, "HIERARCH ESO TPL A", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "HIERARCH ESO TPL B", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "HIERARCH ESO TPL C", "0.0", "DICB compliant", NULL);
-
-    qfits_header_add(qh, "OBS.A", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "OBS.B", "0.0", "DICB compliant", NULL);
-    qfits_header_add(qh, "OBS.C", "0.0", "DICB compliant", NULL);
-
-    say("Inserting mandatory keywords");
-    /* Insert mandatory keys in reverse order */
-    qfits_header_add(qh, "NAXIS2", "10", "NAXIS2 comment", NULL);
-    qfits_header_add(qh, "NAXIS1", "11", "NAXIS1 comment", NULL);
-    qfits_header_add(qh, "NAXIS",  "2", "NAXIS comment", NULL);
-    qfits_header_add(qh, "BITPIX",  "-32", "BITPIX comment", NULL);
-
-    /* Dump header to file */
-    say("Opening file for output");
-    out = fopen(filename, "w");
-    if (out==NULL) {
-        fail("cannot create test file");
-        qfits_header_destroy(qh);
-        return 1 ;
-    }
-    say("Dumping header to file");
-    if (qfits_header_dump(qh, out)!=0) {
-        fail("cannot dump header");
-        qfits_header_destroy(qh);
-        return 1 ;
-    }
-    say("Destroying built header");
-    qfits_header_destroy(qh);
-    fclose(out);
-
-    say("-----> Dumping pixels");
-    /* Allocate data segment and save it to FITS file */
-    qd.fbuf = qfits_malloc(11 * 10 * sizeof(float));
-    for (i=0 ; i<(11*10) ; i++) {
-        qd.fbuf[i]=i*0.2 ;
-    }
-
-    qd.filename  = filename ;
-    qd.npix      = 11 * 10 ;
-    qd.ptype     = PTYPE_FLOAT ;
-    qd.out_ptype = -32 ;
-
-    if (qfits_pixdump(&qd)!=0) {
-        fail("cannot save data to test file");
-        qfits_free(qd.fbuf);
-        return 1 ;
-    }
-    qfits_free(qd.fbuf);
-
-    /* Zero-pad the output file */
-    qfits_zeropad(filename);
-    return 0 ;
-}
-
-int check_key(qfits_header * qh, char * key, char * expval)
-{
-    char * val ;
-    int    err=0 ;
-
-    val = qfits_header_getstr(qh, key);
-    if (val==NULL) {
-        fail("missing key in header");
-        err++ ;
-    } else {
-        val = qfits_pretty_string(val);
-        if (strcmp(val, expval)) {
-            fail("wrong value for key in header");
-            err++ ;
-        }
-    }
-    return err ;
-}
-
-int test_qfitsheader_read(char * filename)
-{
-    qfits_header    *    qh ;
-    char            *    val ;
-    int                    err ;
-    int                    keytype ;
-
-    err=0 ;
-    say("-----> Header reading test");
-    /* Read header from source */
-    say("Reading header from file");
-    qh = qfits_header_read(filename);
-    if (qh==NULL) {
-        fail("cannot read test file");
-        return 1 ;
-    }
-    say("Querying mandatory keys");
-    err += check_key(qh, "SIMPLE", "T");
-    err += check_key(qh, "NAXIS", "2");
-    err += check_key(qh, "NAXIS1", "11");
-    err += check_key(qh, "NAXIS2", "10");
-    err += check_key(qh, "BITPIX", "-32");
-
-    say("Querying base keys");
-    err += check_key(qh, "KEY01", "value01");
-    err += check_key(qh, "KEY02", "2");
-    err += check_key(qh, "KEY03", "3.0");
-    err += check_key(qh, "KEY04", "4.0 4.2");
-    err += check_key(qh, "KEY05", "T");
-
-    say("Checking key types");
-    val = qfits_header_getstr(qh, "KEY01");
-    keytype = qfits_get_type(val);
-    if (keytype!=QFITS_STRING) {
-        printf("val=[%s] type is %d\n", val, keytype);
-        fail("wrong identified type for KEY01 (string)");
-        err++;
-    }
-    val = qfits_header_getstr(qh, "KEY02");
-    keytype = qfits_get_type(val);
-    if (keytype!=QFITS_INT) {
-        fail("wrong identified type for KEY02 (int)");
-        err++;
-    }
-    val = qfits_header_getstr(qh, "KEY03");
-    keytype = qfits_get_type(val);
-    if (keytype!=QFITS_FLOAT) {
-        fail("wrong identified type for KEY03 (float)");
-        err++;
-    }
-    val = qfits_header_getstr(qh, "KEY04");
-    keytype = qfits_get_type(val);
-    if (keytype!=QFITS_COMPLEX) {
-        fail("wrong identified type for KEY04 (complex)");
-        err++;
-    }
-    val = qfits_header_getstr(qh, "KEY05");
-    keytype = qfits_get_type(val);
-    if (keytype!=QFITS_BOOLEAN) {
-        fail("wrong identified type for KEY05 (boolean)");
-        err++;
-    }
-
-    say("Querying hierarch keys");
-    err += check_key(qh, "HIERARCH ESO PRO A", "0.0");
-    err += check_key(qh, "PRO.B", "0.0");
-    err += check_key(qh, "pro.c", "0.0");
-
-    err += check_key(qh, "ins.a", "0.0");
-    err += check_key(qh, "ins.b", "0.0");
-    err += check_key(qh, "ins.c", "0.0");
-
-    err += check_key(qh, "gen.a", "0.0");
-    err += check_key(qh, "gen.b", "0.0");
-    err += check_key(qh, "gen.c", "0.0");
-
-    err += check_key(qh, "obs.a", "0.0");
-    err += check_key(qh, "obs.b", "0.0");
-    err += check_key(qh, "obs.c", "0.0");
-
-    err += check_key(qh, "tpl.a", "0.0");
-    err += check_key(qh, "tpl.b", "0.0");
-    err += check_key(qh, "tpl.c", "0.0");
-
-    err += check_key(qh, "tel.a", "0.0");
-    err += check_key(qh, "tel.b", "0.0");
-    err += check_key(qh, "tel.c", "0.0");
-
-    err += check_key(qh, "log.a", "0.0");
-    err += check_key(qh, "log.b", "0.0");
-    err += check_key(qh, "log.c", "0.0");
-
-    err += check_key(qh, "null.a", "0.0");
-    err += check_key(qh, "null.b", "0.0");
-    err += check_key(qh, "null.c", "0.0");
-
-    say("Removing keys");
-
-    qfits_header_del(qh, "PRO.A");
-    qfits_header_del(qh, "pro.b");
-    qfits_header_del(qh, "HIERARCH ESO PRO C");
-
-    if (qfits_header_getstr(qh, "HIERARCH ESO PRO A")!=NULL) 
-        err ++ ;
-    if (qfits_header_getstr(qh, "PRO.B")!=NULL) 
-        err ++ ;
-    if (qfits_header_getstr(qh, "pro.c")!=NULL) 
-        err ++ ;
-
-    say("Modifying keys");
-
-    qfits_header_destroy(qh);
-    return err ;
-}
-
-int test_qfitsheader_browse(char * filename)
-{
-    qfits_header    *    qh ;
-    char key[80], val[80], com[80] ;
-    int     i ;
-    int  err ;
-
-    say("-----> Header browsing test");
-    /* Read header from source */
-    say("Reading header from file");
-    qh = qfits_header_read(filename);
-    if (qh==NULL) {
-        fail("cannot read test file");
-        return 1 ;
-    }
-
-    err=0 ;
-    for (i=0 ; i<qh->n ; i++) {
-        if (qfits_header_getitem(qh, i, key, val, com, NULL)!=0) {
-            fail("cannot read header item");
-            err++ ;
-        }
-    }
-    qfits_header_destroy(qh);
-    return err ;
-}
-
-
-int test_qfitsdata_load(char * filename)
-{
-    qfitsloader    ql ;
-    int    i ;
-    int    err ;
-    float diff ;
-
-    err=0 ;
-    say("-----> Data loading test");
-    ql.filename    = filename ;
-    ql.xtnum    = 0 ;
-    ql.pnum        = 0 ;
-    ql.ptype    = PTYPE_FLOAT ;
-    ql.map      = 1 ;
-
-    say("Initializing loader");
-    if (qfitsloader_init(&ql)!=0) {
-        fail("cannot initialize loader on test file");
-        return 1 ;
-    }
-    if (ql.lx != 11) {
-        fail("wrong size in X");
-        err++ ;
-    }
-    if (ql.ly != 10) {
-        fail("wrong size in Y");
-        err++ ;
-    }
-
-    say("Loading pixel buffer");
-    if (qfits_loadpix(&ql)!=0) {
-        fail("cannot load data from test file");
-        return 1 ;
-    }
-
-    for (i=0 ; i<(11*10) ; i++) {
-        diff = ql.fbuf[i] - (float)i * 0.2 ;
-        if (diff>1e-4) {
-            fail("diff in pix value");
-            err++ ;
-        }
-    }
-    qfits_free(ql.fbuf);
-    return err ;
-
-}
-
-int test_qfits_filecreate_ext(char * filename)
-{
-    qfits_header*    qh ;
-    qfitsdumper        qd ;
-    FILE        *    out ;
-    const char  *    sig ;
-
-    say("-----> File with multiple extensions");
-    /* Create minimal FITS header for main */
-    say("Creating default header");
-    qh = qfits_header_default() ;
-    if (qh==NULL) {
-        fail("cannot create default header");
-        return 1 ;
-    }
-    qfits_header_add(qh, "BITPIX", "8", "no data in main section", NULL);
-    qfits_header_add(qh, "NAXIS", "0", "no data in main section", NULL);
-    qfits_header_add(qh, "EXTEND", "T", "Extensions are present", NULL);
-
-    say("Dumping header to test file");
-    out = fopen(filename, "w");
-    if (out==NULL) {
-        fail("cannot create test file");
-        qfits_header_destroy(qh);
-        return 1 ;
-    }
-    qfits_header_dump(qh, out);
-    fclose(out);
-    qfits_header_destroy(qh);
-
-    say("Creating first extension with float pixels");
-    qh = qfits_header_new();
-    if (qh==NULL) {
-        fail("cannot create extension header 1");
-        return 1 ;
-    }
-    qfits_header_append(qh, "XTENSION", "T", "Ext 1", NULL);
-    qfits_header_append(qh, "BITPIX", "-32", "bpp", NULL);
-    qfits_header_append(qh, "NAXIS", "2", "axes", NULL);
-    qfits_header_append(qh, "NAXIS1", "6", "size in x", NULL);
-    qfits_header_append(qh, "NAXIS2", "2", "size in y", NULL);
-    qfits_header_append(qh, "END", NULL, NULL, NULL);
-
-    say("Dumping ext header 1 to test file");
-    out = fopen(filename, "a");
-    if (out==NULL) {
-        fail("cannot append to test file");
-        qfits_header_destroy(qh);
-        return 1 ;
-    }
-    qfits_header_dump(qh, out);
-    fclose(out);
-    qfits_header_destroy(qh);
-
-    say("Dumping float array");
-
-    qd.filename = filename ;
-    qd.npix      = 12 ;
-    qd.ptype     = PTYPE_FLOAT ;
-    qd.out_ptype = -32 ;
-    qd.fbuf         = float_array_orig ;
-
-    if (qfits_pixdump(&qd)!=0) {
-        fail("cannot save data to test file");
-        qfits_free(qd.fbuf);
-        return 1 ;
-    }
-    /* Zero-pad the output file */
-    qfits_zeropad(filename);
-
-    say("Creating second extension with int pixels");
-    qh = qfits_header_new();
-    if (qh==NULL) {
-        fail("cannot create extension header 1");
-        return 1 ;
-    }
-    qfits_header_append(qh, "XTENSION", "T", "Ext 1", NULL);
-    qfits_header_append(qh, "BITPIX", "32", "bpp", NULL);
-    qfits_header_append(qh, "NAXIS", "2", "axes", NULL);
-    qfits_header_append(qh, "NAXIS1", "6", "size in x", NULL);
-    qfits_header_append(qh, "NAXIS2", "2", "size in y", NULL);
-    qfits_header_append(qh, "END", NULL, NULL, NULL);
-
-    say("Dumping ext header 2 to test file");
-    out = fopen(filename, "a");
-    if (out==NULL) {
-        fail("cannot append to test file");
-        qfits_header_destroy(qh);
-        return 1 ;
-    }
-    qfits_header_dump(qh, out);
-    fclose(out);
-    qfits_header_destroy(qh);
-
-    say("Dumping int array");
-
-    qd.filename = filename ;
-    qd.npix      = 12 ;
-    qd.ptype     = PTYPE_INT ;
-    qd.out_ptype = 32 ;
-    qd.ibuf         = int_array_orig ;
-
-    if (qfits_pixdump(&qd)!=0) {
-        fail("cannot save data to test file");
-        qfits_free(qd.fbuf);
-        return 1 ;
-    }
-    /* Zero-pad the output file */
-    qfits_zeropad(filename);
-
-    say("Creating third extension with double pixels");
-    qh = qfits_header_new();
-    if (qh==NULL) {
-        fail("cannot create extension header 3");
-        return 1 ;
-    }
-    qfits_header_append(qh, "XTENSION", "T", "Ext 1", NULL);
-    qfits_header_append(qh, "BITPIX", "-64", "bpp", NULL);
-    qfits_header_append(qh, "NAXIS", "2", "axes", NULL);
-    qfits_header_append(qh, "NAXIS1", "6", "size in x", NULL);
-    qfits_header_append(qh, "NAXIS2", "2", "size in y", NULL);
-    qfits_header_append(qh, "END", NULL, NULL, NULL);
-
-    say("Dumping ext header 3 to test file");
-    out = fopen(filename, "a");
-    if (out==NULL) {
-        fail("cannot append to test file");
-        qfits_header_destroy(qh);
-        return 1 ;
-    }
-    qfits_header_dump(qh, out);
-    fclose(out);
-    qfits_header_destroy(qh);
-
-    say("Dumping double array");
-
-    qd.filename = filename ;
-    qd.npix      = 12 ;
-    qd.ptype     = PTYPE_DOUBLE ;
-    qd.out_ptype = -64 ;
-    qd.dbuf         = double_array_orig ;
-
-    if (qfits_pixdump(&qd)!=0) {
-        fail("cannot save data to test file");
-        qfits_free(qd.fbuf);
-        return 1 ;
-    }
-    /* Zero-pad the output file */
-    qfits_zeropad(filename);
-
-    /* Get MD5 for the test file */
-    sig = qfits_datamd5(filename);
-    if (strcmp(sig, REFSIG)) {
-        fail("test file signature does not match");
-        return 1 ;
-    }
-    say("File DATAMD5 signature is Ok");
-
-    return 0 ;
-}
-
-int main(int argc, char * argv[])
-{
-    int    err ;
-
-    err=0 ;
-
-    /* Test on simple FITS file */
-    err += test_qfits_header_sort();
-    err += test_qfits_filecreate(QFITSTEST1);
-    err += test_qfitsheader_read(QFITSTEST1);
-    err += test_qfitsheader_browse(QFITSTEST1);
-    err += test_qfitsdata_load(QFITSTEST1);
-    remove(QFITSTEST1);
-
-    /* Test on FITS file with extensions */
-    err += test_qfits_filecreate_ext(QFITSTEST2);
-    remove(QFITSTEST2);
-
-    fprintf(stderr, "total error(s): %d\n", err);
-    return err ;
-}
diff --git a/libqfits/test/test_qfits.txt b/libqfits/test/test_qfits.txt
deleted file mode 100644
index c6fc98a..0000000
--- a/libqfits/test/test_qfits.txt
+++ /dev/null
@@ -1,39 +0,0 @@
-qtest:		-----> Header creation
-qtest:		Creating blank header
-qtest:		Destroying blank header
-qtest:		Creating minimal header
-qtest:		Inserting primary keywords
-qtest:		Inserting history keywords
-qtest:		Inserting comment keywords
-qtest:		Inserting hierarch keywords
-qtest:		Inserting mandatory keywords
-qtest:		Opening file for output
-qtest:		Dumping header to file
-qtest:		Destroying built header
-qtest:		-----> Dumping pixels
-qtest:		-----> Header reading test
-qtest:		Reading header from file
-qtest:		Querying mandatory keys
-qtest:		Querying base keys
-qtest:		Checking key types
-qtest:		Querying hierarch keys
-qtest:		Removing keys
-qtest:		Modifying keys
-qtest:		-----> Header browsing test
-qtest:		Reading header from file
-qtest:		-----> Data loading test
-qtest:		Initializing loader
-qtest:		Loading pixel buffer
-qtest:		-----> File with multiple extensions
-qtest:		Creating default header
-qtest:		Dumping header to test file
-qtest:		Creating first extension with float pixels
-qtest:		Dumping ext header 1 to test file
-qtest:		Dumping float array
-qtest:		Creating second extension with int pixels
-qtest:		Dumping ext header 2 to test file
-qtest:		Dumping int array
-qtest:		Creating third extension with double pixels
-qtest:		Dumping ext header 3 to test file
-qtest:		Dumping double array
-qtest:		File DATAMD5 signature is Ok
diff --git a/libqfits/test/test_tfits.c b/libqfits/test/test_tfits.c
deleted file mode 100644
index d88196e..0000000
--- a/libqfits/test/test_tfits.c
+++ /dev/null
@@ -1,345 +0,0 @@
-/* $Id: test_tfits.c,v 1.2 2009-08-04 10:10:11 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2009-08-04 10:10:11 $
- * $Revision: 1.2 $
- * $Name: not supported by cvs2svn $
- */
-
-/*---------------------------------------------------------------------------
-                                   Includes
- ---------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <math.h>
-
-#include "qfits_header.h"
-#include "qfits_table.h"
-#include "qfits_memory.h"
-
-/*---------------------------------------------------------------------------
-                                   Define
- ---------------------------------------------------------------------------*/
-
-#define BIN_TABLE_NAME          "/bintable.tfits"
-#define ASCII_TABLE_NAME        "/asciitable.tfits"
-#define TMP_TABLE_NAME          "tmp_table.tfits"
-
-/*---------------------------------------------------------------------------
-                               Functions prototypes
- ---------------------------------------------------------------------------*/
-
-static int qfits_test_table(char *, int) ;
-static void say(char * fmt, ...) ;
-static void fail(char * fmt, ...) ;
-
-/*---------------------------------------------------------------------------
-                                Functions
- ---------------------------------------------------------------------------*/
-
-/* Print out a comment */
-static void say(char * fmt, ...)
-{
-    va_list ap ;
-    fprintf(stdout, "qtest:\t\t");
-    va_start(ap, fmt);
-    vfprintf(stdout, fmt, ap);
-    va_end(ap);
-    fprintf(stdout, "\n");
-}
- 
-/* Print out an error message */
-static void fail(char * fmt, ...)
-{
-    va_list ap ;
-    fprintf(stderr, "qtest: error: ");
-    va_start(ap, fmt);
-    vfprintf(stderr, fmt, ap);
-    va_end(ap);
-    fprintf(stderr, "\n");
-}
-
-/* Test a bin table : read it, write it, read it, and compare the 2 reads */
-static int qfits_test_table(
-        char    *    name,
-        int            extnum)
-{
-    qfits_header    *    qh ;
-    qfits_table        *    qt ;
-    void            **    one_column_table ;
-    void            *    column_after_wr ;
-    qfits_table        *    qt_tmp ;
-    int                    nb_val ;
-    int                    err ;
-    double                ddiff ;
-    int                    idiff ;
-
-    int                    i, j ;
-
-    /* Initialize */
-    err = 0 ;    
-
-    /* Create a default primary header */
-    if ((qh = qfits_table_prim_header_default()) == NULL) {
-        fail("cannot create a default primary header") ;
-        err++ ;
-        return err ;
-    }
-    
-    printf("----- %s\n", name) ;
-    /* Read the test table */
-    if ((qt = qfits_table_open(name, extnum)) == NULL) {
-        fail("cannot load infos from the input table") ;
-        qfits_header_destroy(qh) ;
-        err++ ;
-        return err ;
-    }
-    
-    /* For each column */
-    for (i=0 ; i<qt->nc ; i++) {
-        say("Test the %dth column", i+1) ;
-        /* Create the data array */
-        one_column_table = qfits_malloc(1*sizeof(void*)) ; 
-
-        /* Load the ith column data */
-        if ((one_column_table[0] = qfits_query_column_data(qt, 
-                        i, NULL, NULL)) == NULL) {
-            qfits_free(one_column_table) ;
-            /* The 6th column is empty - normal if not loaded */
-            if ((i == 5) && (qt->tab_t == QFITS_BINTABLE)) {
-                say("Column %d is empty", i+1) ;
-            } else {
-                err++ ;
-                fail("cannot load the data from the %dth column", i+1) ;
-            }
-            continue ;
-        }
-        
-        /* Create a tmp table object */
-        qt_tmp = qfits_table_new(TMP_TABLE_NAME, qt->tab_t, -1, 1, qt->nr) ;
-        qfits_col_fill(qt_tmp->col, (&(qt->col)[i])->atom_nb, 
-                (&(qt->col)[i])->atom_dec_nb, (&(qt->col)[i])->atom_size, 
-                (&(qt->col)[i])->atom_type, (&(qt->col)[i])->tlabel, 
-                (&(qt->col)[i])->tunit, (&(qt->col)[i])->nullval, 
-                (&(qt->col)[i])->tdisp, 0, 0.0, 0, 1.0, 0) ;
-            
-        /* Write a one column table */
-        if (qfits_save_table_hdrdump((const void **)one_column_table, qt_tmp, 
-                    qh) == -1) {
-            fail("cannot save a table to file") ;
-            qfits_free(one_column_table) ;
-            qfits_table_close(qt_tmp) ;
-            err++ ;
-            continue ;
-        }
-        /* Destroy the tmp table object */
-        qfits_table_close(qt_tmp) ;
-        
-        /* Read the one column table */
-        if ((qt_tmp = qfits_table_open(TMP_TABLE_NAME, 1)) == NULL) {
-            fail("cannot load infos from the generated table"); 
-            qfits_free(one_column_table) ;
-            err++ ;
-            continue ;
-        }
-    
-        /* Load the column data */
-        if ((column_after_wr = qfits_query_column_data(qt_tmp, 
-                        0, NULL, NULL)) == NULL) {
-            fail("cannot load the data from the generated table") ;
-            qfits_free(one_column_table) ;
-            qfits_table_close(qt_tmp) ;
-            err++ ;
-            continue ;
-        }
-        
-        /* Destroy the tmp table object */
-        remove(qt_tmp->filename) ;    
-        qfits_table_close(qt_tmp) ;
-
-        /* Test the diff between column_after_wr and one_column_table[0] */
-        switch ((&(qt->col)[i])->atom_type) {
-            case TFITS_BIN_TYPE_A :
-            case TFITS_BIN_TYPE_L :
-            case TFITS_ASCII_TYPE_A :
-                /* Set the number of values in the data array */
-                nb_val = qt->nr * (&(qt->col)[i])->atom_nb ;
-                idiff = strncmp((char*)column_after_wr, 
-                        (char*)one_column_table[0], nb_val) ;
-                if (idiff == 0) say("Columns are identical...ok") ;
-                else { fail("Columns are not the same") ; err++ ;}
-                break ;
-            case TFITS_BIN_TYPE_B :
-            case TFITS_BIN_TYPE_X :
-                /* Set the number of values in the data array */
-                nb_val = qt->nr * (&(qt->col)[i])->atom_nb ;
-                idiff = 0 ;
-                for (j=0 ; j<nb_val ; j++) {
-                    idiff += ((int)((unsigned char*)column_after_wr)[j] -
-                        (int)((unsigned char*)one_column_table[0])[j]) ;
-                }
-                if (idiff == 0) say("Columns are identical...ok") ;
-                else { fail("Columns are not the same") ; err++ ;}
-                break ;
-            case TFITS_BIN_TYPE_D :
-            case TFITS_BIN_TYPE_M :
-                /* Set the number of values in the data array */
-                nb_val = qt->nr * (&(qt->col)[i])->atom_nb ;
-                ddiff = 0.0 ;
-                for (j=0 ; j<nb_val ; j++) {
-                    ddiff += ((double*)column_after_wr)[j] -
-                        ((double*)one_column_table[0])[j] ;
-                }
-                if (fabs(ddiff) < 1e-6) say("Columns are identical...ok") ;
-                else { fail("Columns are not the same") ; err++ ;}
-                break ;
-            case TFITS_BIN_TYPE_E :
-            case TFITS_BIN_TYPE_C :
-                /* Set the number of values in the data array */
-                nb_val = qt->nr * (&(qt->col)[i])->atom_nb ;
-                ddiff = 0.0 ;
-                for (j=0 ; j<nb_val ; j++) {
-                    ddiff += (double)(((float*)column_after_wr)[j] -
-                        ((float*)one_column_table[0])[j]) ;
-                }
-                if (fabs(ddiff) < 1e-6) say("Columns are identical...ok") ;
-                else { fail("Columns are not the same") ; err++ ;}
-                break ;
-            case TFITS_BIN_TYPE_I :
-                /* Set the number of values in the data array */
-                nb_val = qt->nr * (&(qt->col)[i])->atom_nb ;
-                idiff = 0 ;
-                for (j=0 ; j<nb_val ; j++) {
-                    idiff += (int)(((short*)column_after_wr)[j] -
-                        ((short*)one_column_table[0])[j]) ;
-                }
-                if (idiff == 0) say("Columns are identical...ok") ;
-                else { fail("Columns are not the same") ; err++ ;}
-                break ;
-            case TFITS_BIN_TYPE_P :
-            case TFITS_BIN_TYPE_J :
-                /* Set the number of values in the data array */
-                nb_val = qt->nr * (&(qt->col)[i])->atom_nb ;
-                idiff = 0 ;
-                for (j=0 ; j<nb_val ; j++) {
-                    idiff += ((int*)column_after_wr)[j] -
-                        ((int*)one_column_table[0])[j] ;
-                }
-                if (idiff == 0) say("Columns are identical...ok") ;
-                else { fail("Columns are not the same") ; err++ ;}
-                break ;
-            case TFITS_ASCII_TYPE_E :
-            case TFITS_ASCII_TYPE_F :
-                /* Set the number of values in the data array */
-                nb_val = qt->nr ;
-                ddiff = 0.0 ;
-                for (j=0 ; j<nb_val ; j++) {
-                    ddiff += (double)(((float*)column_after_wr)[j] -
-                        ((float*)one_column_table[0])[j]) ;
-                }
-                say("Check the cumulated difference : %g", fabs(ddiff)) ; 
-                break ;
-            case TFITS_ASCII_TYPE_D :
-                /* Set the number of values in the data array */
-                nb_val = qt->nr ;
-                ddiff = 0.0 ;
-                for (j=0 ; j<nb_val ; j++) {
-                    ddiff += (double)((double*)column_after_wr)[j] -
-                        ((double*)one_column_table[0])[j] ;
-                }
-                say("Check the cumulated difference : %g", fabs(ddiff)) ; 
-                break ;
-            case TFITS_ASCII_TYPE_I :
-                /* Set the number of values in the data array */
-                nb_val = qt->nr ;
-                idiff = 0 ;
-                for (j=0 ; j<nb_val ; j++) {
-                    idiff += ((int)((unsigned char*)column_after_wr)[j] -
-                        (int)((unsigned char*)one_column_table[0])[j]) ;
-                }
-                if (idiff == 0) say("Columns are identical...ok") ;
-                else { fail("Columns are not the same") ; err++ ;}
-                break ;
-            default :
-                err++ ;
-                fail("Column type not recognized") ;
-                break ;
-        }
-    
-        /* Free */
-        qfits_free(one_column_table[0]) ;
-        qfits_free(one_column_table) ;
-        qfits_free(column_after_wr) ;
-    }
-
-    /* Delete the table */
-    qfits_table_close(qt) ;
-
-    /* Delete the fits header */
-    qfits_header_destroy(qh) ;
-
-    return err ;
-}
-
-/*---------------------------------------------------------------------------
-                                Main
- ---------------------------------------------------------------------------*/
-
-int main(int argc, char * argv[])
-{
-    int         err ;
-    char        filename[512] ;
-    char    *   srcdir ;
-
-    /* Initialize */
-    err=0 ;
-
-    /* Get the src directory */
-    srcdir = strdup(getenv("srcdir")) ;
-    
-    /* 
-     *    Test on BINARY tables
-     */
-    say("Test the BINARY table") ;
-    filename[0] = (char)0 ;
-    strcat(filename, srcdir) ;
-    strcat(filename, BIN_TABLE_NAME) ;
-    err += qfits_test_table(filename, 1) ;    
-    
-    /* 
-     *    Test on ASCII tables
-     */
-    say("Test the ASCII table") ;
-    filename[0] = (char)0 ;
-    strcat(filename, srcdir) ;
-    strcat(filename, ASCII_TABLE_NAME) ;
-    err += qfits_test_table(filename, 1) ;    
-    
-    free(srcdir) ;
-    fprintf(stderr, "total error(s): %d\n", err);
-    return err ;
-}
-
-
-
diff --git a/libqfits/test/test_tfits.txt b/libqfits/test/test_tfits.txt
deleted file mode 100644
index 6e400f2..0000000
--- a/libqfits/test/test_tfits.txt
+++ /dev/null
@@ -1,44 +0,0 @@
-qtest:		Test the BINARY table
-qtest:		Test the 1th column
-qtest:		Columns are identical...ok
-qtest:		Test the 2th column
-qtest:		Columns are identical...ok
-qtest:		Test the 3th column
-qtest:		Columns are identical...ok
-qtest:		Test the 4th column
-qtest:		Columns are identical...ok
-qtest:		Test the 5th column
-qtest:		Columns are identical...ok
-qtest:		Test the 6th column
-qtest:		Column 6 is empty
-qtest:		Test the 7th column
-qtest:		Columns are identical...ok
-qtest:		Test the 8th column
-qtest:		Columns are identical...ok
-qtest:		Test the 9th column
-qtest:		Columns are identical...ok
-qtest:		Test the 10th column
-qtest:		Columns are identical...ok
-qtest:		Test the 11th column
-qtest:		Columns are identical...ok
-qtest:		Test the 12th column
-qtest:		Columns are identical...ok
-qtest:		Test the 13th column
-qtest:		Columns are identical...ok
-qtest:		Test the ASCII table
-qtest:		Test the 1th column
-qtest:		Columns are identical...ok
-qtest:		Test the 2th column
-qtest:		Check the cumulated difference : 0.230148
-qtest:		Test the 3th column
-qtest:		Columns are identical...ok
-qtest:		Test the 4th column
-qtest:		Check the cumulated difference : 0
-qtest:		Test the 5th column
-qtest:		Check the cumulated difference : 0.140812
-qtest:		Test the 6th column
-qtest:		Columns are identical...ok
-qtest:		Test the 7th column
-qtest:		Columns are identical...ok
-qtest:		Test the 8th column
-qtest:		Columns are identical...ok
diff --git a/libqfits/test/test_xmem.c b/libqfits/test/test_xmem.c
deleted file mode 100644
index be9f74e..0000000
--- a/libqfits/test/test_xmem.c
+++ /dev/null
@@ -1,114 +0,0 @@
-/* $Id: test_xmem.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*---------------------------------------------------------------------------
-                                Includes
- ---------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <time.h>
-
-#include "qfits_memory.h"
-
-/*---------------------------------------------------------------------------
-                                Define
- ---------------------------------------------------------------------------*/
-
-#define PTRS_TOT_NB 20000
-#define PTRS_SIZE 10
-#define PTRS_TMP_NB 5
-#define ITERATIONS_NB 5000
-
-/*---------------------------------------------------------------------------
-                                Main
- ---------------------------------------------------------------------------*/
-
-int main(void)
-{
-    int     *   array[PTRS_TOT_NB] ;
-    int     *   ptr[PTRS_TMP_NB] ;
-    clock_t     chrono ;
-    double      elapsed_time ;
-    int         i, j ;
-
-    /* Start chrono */
-    chrono = clock() ;
-    
-    /* Allocate pointers */
-    printf("----- RAM allocation\n");
-    for (i=0 ; i<PTRS_TOT_NB ; i++) {
-        array[i] = qfits_malloc(PTRS_SIZE*sizeof(int));
-        array[i][0] = i ; 
-    }
-
-    /* Stop chrono */
-    elapsed_time = (double)(clock() - chrono) / (double)CLOCKS_PER_SEC ;
-    printf("\tFor allocation: %4.2f sec\n", elapsed_time) ;
-    
-    /* Some prints */
-    for (i=0 ; i<3 ; i++) {
-        printf("a[%d][0]=%d\n", i, array[i][0]);
-    }
-    printf("...\n");
-    for (i=PTRS_TOT_NB-3 ; i<PTRS_TOT_NB ; i++) {
-        printf("a[%d][0]=%d\n", i, array[i][0]);
-    }
-    
-    /* Start chrono */
-    chrono = clock() ;
-
-    /* Test improvement of allocate/deallocate loop  */
-    for (i=0 ; i<ITERATIONS_NB ; i++) {
-        for (j=0 ; j<PTRS_TMP_NB ; j++) {
-            ptr[j] = qfits_malloc(PTRS_SIZE*sizeof(int));
-        }
-        for (j=0 ; j<PTRS_TMP_NB ; j++) {
-            qfits_free(ptr[j]) ;
-        }
-    }
-    
-    /* Stop chrono */
-    elapsed_time = (double)(clock() - chrono) / (double)CLOCKS_PER_SEC ;
-    printf("\tFor the alloc/dealloc loop: %4.2f sec\n", elapsed_time) ;
-    
-    /* Start chrono */
-    chrono = clock() ;
-    
-    /* Deallocate pointers */
-    printf("----- RAM deallocation\n");
-    for (i=0 ; i<PTRS_TOT_NB ; i++) qfits_free(array[i]) ;
-    
-    /* Stop chrono */
-    elapsed_time = (double)(clock() - chrono) / (double)CLOCKS_PER_SEC ;
-    printf("\tFor deallocation: %4.2f sec\n", elapsed_time) ;
-
-    qfits_memory_status() ;
-    return 0 ;
-}
diff --git a/libqfits/test/test_xmem_stress.c b/libqfits/test/test_xmem_stress.c
deleted file mode 100644
index c0942ac..0000000
--- a/libqfits/test/test_xmem_stress.c
+++ /dev/null
@@ -1,119 +0,0 @@
-/* $Id: test_xmem_stress.c,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
- *
- * This file is part of the ESO QFITS Library
- * Copyright (C) 2001-2004 European Southern Observatory
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-/*
- * $Author: agabasch $
- * $Date: 2008-11-03 13:40:49 $
- * $Revision: 1.1.1.1 $
- * $Name: not supported by cvs2svn $
- */
-
-/*---------------------------------------------------------------------------
-                                Includes
- ---------------------------------------------------------------------------*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <time.h>
-#include <sys/resource.h>
-
-#include "qfits_memory.h"
-
-/*---------------------------------------------------------------------------
-                                Define
- ---------------------------------------------------------------------------*/
-
-#define BIGNUM  100
-
-/*---------------------------------------------------------------------------
-                                Functions
- ---------------------------------------------------------------------------*/
-
-/* Clocking variables and routines */
-static clock_t  chrono ;
-static void c_start(void)
-{
-    chrono = clock();
-}
-static void c_stop(void)
-{
-    double elapsed = (double)(clock()-chrono) / (double)CLOCKS_PER_SEC ;
-    printf("elapsed: %5.3f sec\n", elapsed);
-}
-
-
-/*
- * First stress test: allocate a large number of small memory blocks and
- * free them all in reverse order.
- */
-void stress1(void)
-{
-    int     i ;
-    int *   ip[BIGNUM] ;
-
-    for (i=0 ; i<BIGNUM ; i++) {
-        ip[i] = qfits_malloc(256*1024*sizeof(int));
-        printf("\rallocated %d", i);
-        fflush(stdout);
-    }
-    qfits_memory_status();
-    sleep(1);
-    for (i=(BIGNUM-1) ; i>=0 ; i--) {
-        qfits_free(ip[i]);
-    }
-}
-
-void stress2(void)
-{
-    int     i ;
-    int *   ip[BIGNUM] ;
-
-    for (i=0 ; i<BIGNUM ; i++) {
-        ip[i] = qfits_malloc(sizeof(int));
-    }
-    for (i=0 ; i<BIGNUM/2 ; i++) {
-        qfits_free(ip[i]);
-    }
-    for (i=0 ; i<BIGNUM/2 ; i++) {
-        ip[i] = qfits_malloc(sizeof(int));
-    }
-    for (i=0 ; i<BIGNUM ; i++) {
-        qfits_free(ip[i]);
-    }
-
-}
-
-int main(void)
-{
-    printf("Allocating/deallocating %d pointers\n", BIGNUM);
-    c_start();
-    stress1();
-    c_stop();
-
-    printf("Allocating/deallocating 1 pointer %d times\n", BIGNUM);
-    c_start();
-    stress2();
-    c_stop();
-
-    qfits_memory_status();
-    return 0 ;
-}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cpl-plugin-uves.git



More information about the debian-science-commits mailing list